@oiz/stzh-components 2.5.0-alpha-carousel → 2.5.0-alpha

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 (847) hide show
  1. package/dist/cjs/{app-globals-d7bd37fe.js → app-globals-0c3558c0.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/overlay-utils-00d640c8.js +19 -0
  4. package/dist/cjs/stzh-accordion-item.cjs.entry.js +36 -2
  5. package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-actionset.cjs.entry.js +1 -1
  8. package/dist/cjs/stzh-anchornav.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-badge_3.cjs.entry.js +12 -4
  13. package/dist/cjs/stzh-buttongroup.cjs.entry.js +23 -0
  14. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-card_3.cjs.entry.js +12 -10
  16. package/dist/cjs/stzh-carousel.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-chart.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-checkbox.cjs.entry.js +11 -3
  20. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-chip_2.cjs.entry.js +11 -3
  22. package/dist/cjs/stzh-components.cjs.js +2 -2
  23. package/dist/cjs/stzh-contact.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-container.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-datalist_2.cjs.entry.js +25 -9
  27. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +15 -6
  28. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +19 -6
  31. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-dialog.cjs.entry.js +3 -5
  33. package/dist/cjs/stzh-dropdown.cjs.entry.js +14 -3
  34. package/dist/cjs/stzh-fieldset.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
  36. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +4 -2
  37. package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
  38. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
  39. package/dist/cjs/stzh-header.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  41. package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
  42. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +2 -2
  44. package/dist/cjs/stzh-input.cjs.entry.js +10 -3
  45. package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
  46. package/dist/cjs/stzh-langnav.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-link.cjs.entry.js +10 -2
  48. package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
  49. package/dist/cjs/stzh-list.cjs.entry.js +1 -1
  50. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  51. package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
  52. package/dist/cjs/stzh-menu_2.cjs.entry.js +11 -3
  53. package/dist/cjs/stzh-message.cjs.entry.js +2 -2
  54. package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-olmap.cjs.entry.js +53 -7
  57. package/dist/cjs/stzh-overlay.cjs.entry.js +3 -5
  58. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  60. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  62. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  64. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +1 -1
  65. package/dist/cjs/stzh-progressbar.cjs.entry.js +1 -1
  66. package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
  67. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  68. package/dist/cjs/stzh-row.cjs.entry.js +1 -1
  69. package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
  70. package/dist/cjs/stzh-section.cjs.entry.js +1 -1
  71. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-show.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-sitemap.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
  75. package/dist/cjs/stzh-sortable.cjs.entry.js +1 -1
  76. package/dist/cjs/stzh-space.cjs.entry.js +1 -1
  77. package/dist/cjs/stzh-status.cjs.entry.js +1 -1
  78. package/dist/cjs/stzh-sticky.cjs.entry.js +1 -1
  79. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  80. package/dist/cjs/stzh-text.cjs.entry.js +1 -1
  81. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  82. package/dist/cjs/stzh-toggle.cjs.entry.js +11 -3
  83. package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
  84. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  85. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +11 -2
  86. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +1 -1
  87. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +1 -1
  88. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
  89. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  90. package/dist/collection/assets/i18n/de.json +1 -0
  91. package/dist/collection/assets/i18n/en.json +1 -0
  92. package/dist/collection/assets/icons/mono/mail.svg +1 -1
  93. package/dist/collection/assets/media/olmap/marker-active.png +0 -0
  94. package/dist/collection/assets/media/olmap/marker-position.png +0 -0
  95. package/dist/collection/assets/media/olmap/marker.png +0 -0
  96. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles-Basic.css +881 -881
  97. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles-Button.css +75 -75
  98. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles.css +977 -977
  99. package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.css +2 -2
  100. package/dist/collection/collection-manifest.json +1 -0
  101. package/dist/collection/components/stzh-accordion/stzh-accordion.css +2 -0
  102. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +2 -0
  103. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +73 -1
  104. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +1 -1
  105. package/dist/collection/components/stzh-actions/stzh-actions.css +2 -0
  106. package/dist/collection/components/stzh-actionset/stzh-actionset.css +2 -0
  107. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +4 -2
  108. package/dist/collection/components/stzh-appnav/stzh-appnav.css +6 -3
  109. package/dist/collection/components/stzh-appointments/stzh-appointments.css +2 -0
  110. package/dist/collection/components/stzh-audio/stzh-audio.css +2 -0
  111. package/dist/collection/components/stzh-badge/stzh-badge.css +4 -2
  112. package/dist/collection/components/stzh-button/stzh-button.css +9 -3
  113. package/dist/collection/components/stzh-button/stzh-button.js +9 -1
  114. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +123 -0
  115. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.js +25 -0
  116. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.stories.js +57 -0
  117. package/dist/collection/components/stzh-calendar/stzh-calendar.css +8 -3
  118. package/dist/collection/components/stzh-card/stzh-card.css +12 -7
  119. package/dist/collection/components/stzh-card-list/stzh-card-list.css +2 -0
  120. package/dist/collection/components/stzh-carousel/stzh-carousel.css +2 -7
  121. package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +20 -18
  122. package/dist/collection/components/stzh-cell/stzh-cell.css +2 -0
  123. package/dist/collection/components/stzh-chart/stzh-chart.css +4 -0
  124. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +6 -1
  125. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +11 -3
  126. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +2 -0
  127. package/dist/collection/components/stzh-chip/stzh-chip.css +10 -6
  128. package/dist/collection/components/stzh-chip/stzh-chip.js +9 -1
  129. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +2 -0
  130. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +9 -7
  131. package/dist/collection/components/stzh-clamp/stzh-clamp.css +4 -0
  132. package/dist/collection/components/stzh-contact/stzh-contact.css +2 -0
  133. package/dist/collection/components/stzh-container/stzh-container.css +2 -0
  134. package/dist/collection/components/stzh-cspace/stzh-cspace.css +2 -0
  135. package/dist/collection/components/stzh-datalist/stzh-datalist.css +2 -0
  136. package/dist/collection/components/stzh-datalist/stzh-datalist.js +1 -1
  137. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +4 -1
  138. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +8 -13
  139. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +65 -7
  140. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +2 -0
  141. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +2 -1
  142. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +28 -4
  143. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +59 -10
  144. package/dist/collection/components/stzh-datatable/stzh-datatable.css +4 -0
  145. package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +2 -0
  146. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +6 -1
  147. package/dist/collection/components/stzh-details/stzh-details.css +2 -0
  148. package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -0
  149. package/dist/collection/components/stzh-dialog/stzh-dialog.js +2 -4
  150. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +8 -3
  151. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +14 -3
  152. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +2 -0
  153. package/dist/collection/components/stzh-figure/stzh-figure.css +2 -0
  154. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +2 -0
  155. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +9 -1
  156. package/dist/collection/components/stzh-footer/stzh-footer.css +5 -1
  157. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +91 -51
  158. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +1 -1
  159. package/dist/collection/components/stzh-header/stzh-header.css +2 -0
  160. package/dist/collection/components/stzh-heading/stzh-heading.css +2 -0
  161. package/dist/collection/components/stzh-hr/stzh-hr.css +2 -0
  162. package/dist/collection/components/stzh-hspace/stzh-hspace.css +2 -0
  163. package/dist/collection/components/stzh-icon/stzh-icon.css +2 -0
  164. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +1 -1
  165. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  166. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.css +2 -0
  167. package/dist/collection/components/stzh-input/stzh-input.css +2 -1
  168. package/dist/collection/components/stzh-input/stzh-input.js +9 -2
  169. package/dist/collection/components/stzh-invert/stzh-invert.css +79 -18
  170. package/dist/collection/components/stzh-invert/stzh-invert.stories.js +31 -7
  171. package/dist/collection/components/stzh-langnav/stzh-langnav.css +2 -0
  172. package/dist/collection/components/stzh-link/stzh-link.css +10 -8
  173. package/dist/collection/components/stzh-link/stzh-link.js +9 -1
  174. package/dist/collection/components/stzh-list/stzh-list.css +2 -0
  175. package/dist/collection/components/stzh-list-item/stzh-list-item.css +2 -0
  176. package/dist/collection/components/stzh-loader/stzh-loader.css +2 -0
  177. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +2 -0
  178. package/dist/collection/components/stzh-menu/stzh-menu.css +2 -0
  179. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +6 -2
  180. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +9 -1
  181. package/dist/collection/components/stzh-message/stzh-message.css +8 -54
  182. package/dist/collection/components/stzh-message/stzh-message.js +1 -1
  183. package/dist/collection/components/stzh-metanav/stzh-metanav.css +6 -10
  184. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +2 -0
  185. package/dist/collection/components/stzh-olmap/assets/compass.svg +6 -0
  186. package/dist/collection/components/stzh-olmap/stzh-olmap.css +106 -46
  187. package/dist/collection/components/stzh-olmap/stzh-olmap.js +91 -10
  188. package/dist/collection/components/stzh-overlay/stzh-overlay.css +2 -0
  189. package/dist/collection/components/stzh-overlay/stzh-overlay.js +2 -4
  190. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +2 -0
  191. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +2 -0
  192. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +2 -0
  193. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +40 -14
  194. package/dist/collection/components/stzh-popover/stzh-popover.css +2 -0
  195. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +39 -13
  196. package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +2 -0
  197. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +4 -1
  198. package/dist/collection/components/stzh-radio/stzh-radio.css +6 -1
  199. package/dist/collection/components/stzh-radio/stzh-radio.js +11 -3
  200. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +2 -0
  201. package/dist/collection/components/stzh-ratio/stzh-ratio.css +2 -0
  202. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +4 -0
  203. package/dist/collection/components/stzh-richtext/stzh-richtext.css +5 -1
  204. package/dist/collection/components/stzh-row/stzh-row.css +2 -0
  205. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +2 -0
  206. package/dist/collection/components/stzh-section/stzh-section.css +2 -0
  207. package/dist/collection/components/stzh-share/stzh-share.css +2 -0
  208. package/dist/collection/components/stzh-show/stzh-show.css +2 -0
  209. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +2 -0
  210. package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +4 -1
  211. package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +3 -8
  212. package/dist/collection/components/stzh-sortable/stzh-sortable.css +2 -0
  213. package/dist/collection/components/stzh-space/stzh-space.css +2 -0
  214. package/dist/collection/components/stzh-status/stzh-status.css +2 -0
  215. package/dist/collection/components/stzh-sticky/stzh-sticky.css +2 -0
  216. package/dist/collection/components/stzh-table/stzh-table.css +4 -0
  217. package/dist/collection/components/stzh-text/stzh-text.css +17 -0
  218. package/dist/collection/components/stzh-text/stzh-text.stories.js +10 -0
  219. package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +2 -0
  220. package/dist/collection/components/stzh-toggle/stzh-toggle.css +6 -1
  221. package/dist/collection/components/stzh-toggle/stzh-toggle.js +11 -3
  222. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +2 -0
  223. package/dist/collection/components/stzh-upload/stzh-upload.css +4 -0
  224. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -1
  225. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +28 -1
  226. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +2 -0
  227. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +2 -0
  228. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +2 -0
  229. package/dist/collection/components/stzh-vspace/stzh-vspace.css +2 -0
  230. package/dist/collection/pages/egov.stories.js +69 -56
  231. package/dist/collection/pages/meinkonto.stories.js +71 -69
  232. package/dist/collection/pages/microsite.stories.js +13 -11
  233. package/dist/collection/pages/website.stories.js +14 -12
  234. package/dist/collection/utils/overlay-utils.js +15 -0
  235. package/dist/components/index.d.ts +1 -0
  236. package/dist/components/index.js +2 -1
  237. package/dist/components/overlay-utils.js +17 -0
  238. package/dist/components/stzh-accordion-item.js +36 -2
  239. package/dist/components/stzh-accordion.js +1 -1
  240. package/dist/components/stzh-actions.js +1 -1
  241. package/dist/components/stzh-actionset2.js +1 -1
  242. package/dist/components/stzh-anchornav.js +1 -1
  243. package/dist/components/stzh-appnav.js +1 -1
  244. package/dist/components/stzh-appointments.js +1 -1
  245. package/dist/components/stzh-audio.js +1 -1
  246. package/dist/components/stzh-badge2.js +1 -1
  247. package/dist/components/stzh-button2.js +10 -2
  248. package/dist/components/stzh-buttongroup.d.ts +11 -0
  249. package/dist/components/stzh-buttongroup.js +36 -0
  250. package/dist/components/stzh-calendar2.js +1 -1
  251. package/dist/components/stzh-card-list2.js +1 -1
  252. package/dist/components/stzh-card2.js +1 -1
  253. package/dist/components/stzh-carousel.js +1 -1
  254. package/dist/components/stzh-cell.js +1 -1
  255. package/dist/components/stzh-chart.js +1 -1
  256. package/dist/components/stzh-checkbox.js +12 -4
  257. package/dist/components/stzh-checkboxgroup.js +1 -1
  258. package/dist/components/stzh-chip-select2.js +10 -8
  259. package/dist/components/stzh-chip2.js +10 -2
  260. package/dist/components/stzh-clamp2.js +1 -1
  261. package/dist/components/stzh-contact.js +21 -15
  262. package/dist/components/stzh-container.js +1 -1
  263. package/dist/components/stzh-cspace.js +1 -1
  264. package/dist/components/stzh-datalist-item2.js +42 -17
  265. package/dist/components/stzh-datalist2.js +17 -11
  266. package/dist/components/stzh-datamessagelist-item.js +20 -8
  267. package/dist/components/stzh-datamessagelist.js +1 -1
  268. package/dist/components/stzh-datatable.js +1 -1
  269. package/dist/components/stzh-datepicker2.js +7 -2
  270. package/dist/components/stzh-details.js +1 -1
  271. package/dist/components/stzh-dialog.js +3 -5
  272. package/dist/components/stzh-dropdown2.js +14 -3
  273. package/dist/components/stzh-fieldset.js +1 -1
  274. package/dist/components/stzh-figure.js +1 -1
  275. package/dist/components/stzh-flyingfocus.js +5 -3
  276. package/dist/components/stzh-footer.js +1 -1
  277. package/dist/components/stzh-ghettobox2.js +15 -3
  278. package/dist/components/stzh-header.js +1 -1
  279. package/dist/components/stzh-heading2.js +1 -1
  280. package/dist/components/stzh-hr.js +1 -1
  281. package/dist/components/stzh-hspace.js +1 -1
  282. package/dist/components/stzh-icon-sprite.js +2 -2
  283. package/dist/components/stzh-icon2.js +1 -1
  284. package/dist/components/stzh-input2.js +10 -3
  285. package/dist/components/stzh-invert.js +1 -1
  286. package/dist/components/stzh-langnav.js +1 -1
  287. package/dist/components/stzh-link2.js +10 -2
  288. package/dist/components/stzh-list-item.js +1 -1
  289. package/dist/components/stzh-list.js +1 -1
  290. package/dist/components/stzh-loader2.js +1 -1
  291. package/dist/components/stzh-loadingbar.js +1 -1
  292. package/dist/components/stzh-menu-item2.js +10 -2
  293. package/dist/components/stzh-menu2.js +1 -1
  294. package/dist/components/stzh-message.js +15 -3
  295. package/dist/components/stzh-metanav.js +1 -1
  296. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  297. package/dist/components/stzh-olmap.js +55 -8
  298. package/dist/components/stzh-overlay.js +3 -5
  299. package/dist/components/stzh-page-skiplinks.js +1 -1
  300. package/dist/components/stzh-pagebottom.js +1 -1
  301. package/dist/components/stzh-pagetitle-hero.js +1 -1
  302. package/dist/components/stzh-pagetitle.js +1 -1
  303. package/dist/components/stzh-popover2.js +1 -1
  304. package/dist/components/stzh-portal-mitwirken.js +1 -1
  305. package/dist/components/stzh-progressbar-item2.js +1 -1
  306. package/dist/components/stzh-progressbar.js +1 -1
  307. package/dist/components/stzh-radio2.js +12 -4
  308. package/dist/components/stzh-radiogroup2.js +1 -1
  309. package/dist/components/stzh-ratio.js +1 -1
  310. package/dist/components/stzh-readspeaker.js +1 -1
  311. package/dist/components/stzh-richtext2.js +1 -1
  312. package/dist/components/stzh-row.js +1 -1
  313. package/dist/components/stzh-saptcha.js +1 -1
  314. package/dist/components/stzh-section.js +1 -1
  315. package/dist/components/stzh-share2.js +1 -1
  316. package/dist/components/stzh-show.js +1 -1
  317. package/dist/components/stzh-sitemap.js +19 -13
  318. package/dist/components/stzh-skiplink.js +1 -1
  319. package/dist/components/stzh-sortable2.js +1 -1
  320. package/dist/components/stzh-space.js +1 -1
  321. package/dist/components/stzh-status2.js +1 -1
  322. package/dist/components/stzh-sticky.js +1 -1
  323. package/dist/components/stzh-table.js +1 -1
  324. package/dist/components/stzh-text2.js +1 -1
  325. package/dist/components/stzh-textandimage.js +1 -1
  326. package/dist/components/stzh-toggle.js +12 -4
  327. package/dist/components/stzh-tooltip2.js +1 -1
  328. package/dist/components/stzh-upload.js +1 -1
  329. package/dist/components/stzh-vbz-linechip2.js +12 -2
  330. package/dist/components/stzh-vbz-majorticker.js +1 -1
  331. package/dist/components/stzh-vbz-ticker.js +1 -1
  332. package/dist/components/stzh-visuallyhidden.js +1 -1
  333. package/dist/components/stzh-vspace.js +1 -1
  334. package/dist/esm/{app-globals-62e1178d.js → app-globals-a58b5d2d.js} +1 -1
  335. package/dist/esm/loader.js +2 -2
  336. package/dist/esm/overlay-utils-33021971.js +17 -0
  337. package/dist/esm/stzh-accordion-item.entry.js +36 -2
  338. package/dist/esm/stzh-accordion.entry.js +1 -1
  339. package/dist/esm/stzh-actions.entry.js +1 -1
  340. package/dist/esm/stzh-actionset.entry.js +1 -1
  341. package/dist/esm/stzh-anchornav.entry.js +1 -1
  342. package/dist/esm/stzh-appnav.entry.js +1 -1
  343. package/dist/esm/stzh-appointments.entry.js +1 -1
  344. package/dist/esm/stzh-audio.entry.js +1 -1
  345. package/dist/esm/stzh-badge_3.entry.js +12 -4
  346. package/dist/esm/stzh-buttongroup.entry.js +19 -0
  347. package/dist/esm/stzh-calendar.entry.js +1 -1
  348. package/dist/esm/stzh-card_3.entry.js +12 -10
  349. package/dist/esm/stzh-carousel.entry.js +1 -1
  350. package/dist/esm/stzh-cell.entry.js +1 -1
  351. package/dist/esm/stzh-chart.entry.js +1 -1
  352. package/dist/esm/stzh-checkbox.entry.js +12 -4
  353. package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
  354. package/dist/esm/stzh-chip_2.entry.js +11 -3
  355. package/dist/esm/stzh-components.js +2 -2
  356. package/dist/esm/stzh-contact.entry.js +1 -1
  357. package/dist/esm/stzh-container.entry.js +1 -1
  358. package/dist/esm/stzh-cspace.entry.js +1 -1
  359. package/dist/esm/stzh-datalist_2.entry.js +25 -9
  360. package/dist/esm/stzh-datamessagelist-item.entry.js +15 -6
  361. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  362. package/dist/esm/stzh-datatable.entry.js +1 -1
  363. package/dist/esm/stzh-datepicker_3.entry.js +19 -6
  364. package/dist/esm/stzh-details.entry.js +1 -1
  365. package/dist/esm/stzh-dialog.entry.js +3 -5
  366. package/dist/esm/stzh-dropdown.entry.js +14 -3
  367. package/dist/esm/stzh-fieldset.entry.js +1 -1
  368. package/dist/esm/stzh-figure.entry.js +1 -1
  369. package/dist/esm/stzh-flyingfocus.entry.js +4 -2
  370. package/dist/esm/stzh-footer.entry.js +1 -1
  371. package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
  372. package/dist/esm/stzh-header.entry.js +1 -1
  373. package/dist/esm/stzh-heading.entry.js +1 -1
  374. package/dist/esm/stzh-hr.entry.js +1 -1
  375. package/dist/esm/stzh-hspace.entry.js +1 -1
  376. package/dist/esm/stzh-icon-sprite.entry.js +2 -2
  377. package/dist/esm/stzh-input.entry.js +10 -3
  378. package/dist/esm/stzh-invert.entry.js +1 -1
  379. package/dist/esm/stzh-langnav.entry.js +1 -1
  380. package/dist/esm/stzh-link.entry.js +10 -2
  381. package/dist/esm/stzh-list-item.entry.js +1 -1
  382. package/dist/esm/stzh-list.entry.js +1 -1
  383. package/dist/esm/stzh-loader.entry.js +1 -1
  384. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  385. package/dist/esm/stzh-menu_2.entry.js +11 -3
  386. package/dist/esm/stzh-message.entry.js +2 -2
  387. package/dist/esm/stzh-metanav.entry.js +1 -1
  388. package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
  389. package/dist/esm/stzh-olmap.entry.js +53 -7
  390. package/dist/esm/stzh-overlay.entry.js +3 -5
  391. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  392. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  393. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  394. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  395. package/dist/esm/stzh-popover.entry.js +1 -1
  396. package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
  397. package/dist/esm/stzh-progressbar-item.entry.js +1 -1
  398. package/dist/esm/stzh-progressbar.entry.js +1 -1
  399. package/dist/esm/stzh-ratio.entry.js +1 -1
  400. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  401. package/dist/esm/stzh-row.entry.js +1 -1
  402. package/dist/esm/stzh-saptcha.entry.js +1 -1
  403. package/dist/esm/stzh-section.entry.js +1 -1
  404. package/dist/esm/stzh-share.entry.js +1 -1
  405. package/dist/esm/stzh-show.entry.js +1 -1
  406. package/dist/esm/stzh-sitemap.entry.js +1 -1
  407. package/dist/esm/stzh-skiplink.entry.js +1 -1
  408. package/dist/esm/stzh-sortable.entry.js +1 -1
  409. package/dist/esm/stzh-space.entry.js +1 -1
  410. package/dist/esm/stzh-status.entry.js +1 -1
  411. package/dist/esm/stzh-sticky.entry.js +1 -1
  412. package/dist/esm/stzh-table.entry.js +1 -1
  413. package/dist/esm/stzh-text.entry.js +1 -1
  414. package/dist/esm/stzh-textandimage.entry.js +1 -1
  415. package/dist/esm/stzh-toggle.entry.js +12 -4
  416. package/dist/esm/stzh-tooltip.entry.js +1 -1
  417. package/dist/esm/stzh-upload.entry.js +1 -1
  418. package/dist/esm/stzh-vbz-linechip.entry.js +11 -2
  419. package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
  420. package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
  421. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  422. package/dist/esm/stzh-vspace.entry.js +1 -1
  423. package/dist/esm-es5/{app-globals-62e1178d.js → app-globals-a58b5d2d.js} +1 -1
  424. package/dist/esm-es5/loader.js +1 -1
  425. package/dist/esm-es5/overlay-utils-33021971.js +1 -0
  426. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  427. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  428. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  429. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  430. package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
  431. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  432. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  433. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  434. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  435. package/dist/esm-es5/stzh-buttongroup.entry.js +1 -0
  436. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  437. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  438. package/dist/esm-es5/stzh-carousel.entry.js +1 -1
  439. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  440. package/dist/esm-es5/stzh-chart.entry.js +1 -1
  441. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  442. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  443. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  444. package/dist/esm-es5/stzh-components.js +1 -1
  445. package/dist/esm-es5/stzh-contact.entry.js +1 -1
  446. package/dist/esm-es5/stzh-container.entry.js +1 -1
  447. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  448. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  449. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  450. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  451. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  452. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  453. package/dist/esm-es5/stzh-details.entry.js +1 -1
  454. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  455. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  456. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  457. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  458. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  459. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  460. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  461. package/dist/esm-es5/stzh-header.entry.js +1 -1
  462. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  463. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  464. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  465. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  466. package/dist/esm-es5/stzh-input.entry.js +1 -1
  467. package/dist/esm-es5/stzh-invert.entry.js +1 -1
  468. package/dist/esm-es5/stzh-langnav.entry.js +1 -1
  469. package/dist/esm-es5/stzh-link.entry.js +1 -1
  470. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  471. package/dist/esm-es5/stzh-list.entry.js +1 -1
  472. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  473. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  474. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  475. package/dist/esm-es5/stzh-message.entry.js +1 -1
  476. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  477. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  478. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  479. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  480. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  481. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  482. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  483. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  484. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  485. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  486. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  487. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  488. package/dist/esm-es5/stzh-ratio.entry.js +1 -1
  489. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  490. package/dist/esm-es5/stzh-row.entry.js +1 -1
  491. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  492. package/dist/esm-es5/stzh-section.entry.js +1 -1
  493. package/dist/esm-es5/stzh-share.entry.js +1 -1
  494. package/dist/esm-es5/stzh-show.entry.js +1 -1
  495. package/dist/esm-es5/stzh-sitemap.entry.js +1 -1
  496. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  497. package/dist/esm-es5/stzh-sortable.entry.js +1 -1
  498. package/dist/esm-es5/stzh-space.entry.js +1 -1
  499. package/dist/esm-es5/stzh-status.entry.js +1 -1
  500. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  501. package/dist/esm-es5/stzh-table.entry.js +1 -1
  502. package/dist/esm-es5/stzh-text.entry.js +1 -1
  503. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  504. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  505. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  506. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  507. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  508. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  509. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  510. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  511. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  512. package/dist/stzh-components/assets/i18n/de.json +1 -0
  513. package/dist/stzh-components/assets/i18n/en.json +1 -0
  514. package/dist/stzh-components/assets/icons/mono/mail.svg +1 -1
  515. package/dist/stzh-components/assets/media/olmap/marker-active.png +0 -0
  516. package/dist/stzh-components/assets/media/olmap/marker-position.png +0 -0
  517. package/dist/stzh-components/assets/media/olmap/marker.png +0 -0
  518. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +1 -1
  519. package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  520. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles-Basic.css +881 -881
  521. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles-Button.css +75 -75
  522. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles.css +977 -977
  523. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.css +2 -2
  524. package/dist/stzh-components/p-00d91505.entry.js +1 -0
  525. package/dist/stzh-components/p-00e99280.entry.js +1 -0
  526. package/dist/stzh-components/p-035a0f82.system.entry.js +1 -0
  527. package/dist/stzh-components/{p-8f577bc6.system.entry.js → p-0688fe3a.system.entry.js} +1 -1
  528. package/dist/stzh-components/p-06e2b01d.system.entry.js +1 -0
  529. package/dist/stzh-components/p-077a1368.entry.js +1 -0
  530. package/dist/stzh-components/{p-6e3231ce.entry.js → p-0aeaba03.entry.js} +1 -1
  531. package/dist/stzh-components/{p-f4c0d928.entry.js → p-0b5226e2.entry.js} +2 -2
  532. package/dist/stzh-components/p-0bebedd4.entry.js +1 -0
  533. package/dist/stzh-components/p-0ecd29c5.system.entry.js +1 -0
  534. package/dist/stzh-components/p-10041557.entry.js +1 -0
  535. package/dist/stzh-components/p-12bebf6e.entry.js +1 -0
  536. package/dist/stzh-components/p-13017524.system.entry.js +1 -0
  537. package/dist/stzh-components/p-13f024e3.system.entry.js +1 -0
  538. package/dist/stzh-components/p-1434d4f7.system.entry.js +1 -0
  539. package/dist/stzh-components/p-1457ac31.system.entry.js +1 -0
  540. package/dist/stzh-components/p-17761054.system.entry.js +1 -0
  541. package/dist/stzh-components/p-17b3570a.entry.js +1 -0
  542. package/dist/stzh-components/p-180e8516.system.entry.js +1 -0
  543. package/dist/stzh-components/p-18c9a3e1.system.entry.js +1 -0
  544. package/dist/stzh-components/p-198b8305.system.entry.js +1 -0
  545. package/dist/stzh-components/p-1abd7bf8.entry.js +1 -0
  546. package/dist/stzh-components/{p-e54ef44f.system.entry.js → p-1b197c5e.system.entry.js} +1 -1
  547. package/dist/stzh-components/p-1ed06318.entry.js +1 -0
  548. package/dist/stzh-components/p-1fc11b81.entry.js +1 -0
  549. package/dist/stzh-components/p-206f5f74.system.entry.js +1 -0
  550. package/dist/stzh-components/p-222d9dd1.system.entry.js +1 -0
  551. package/dist/stzh-components/p-25496f49.system.entry.js +1 -0
  552. package/dist/stzh-components/p-25d95c73.entry.js +1 -0
  553. package/dist/stzh-components/p-294acb66.system.entry.js +1 -0
  554. package/dist/stzh-components/p-2a9e7099.system.entry.js +1 -0
  555. package/dist/stzh-components/{p-12564ee4.entry.js → p-2b1b9b7f.entry.js} +1 -1
  556. package/dist/stzh-components/p-309b73e1.entry.js +1 -0
  557. package/dist/stzh-components/{p-6dbf976b.entry.js → p-318ebb9e.entry.js} +1 -1
  558. package/dist/stzh-components/p-320273c3.system.entry.js +1 -0
  559. package/dist/stzh-components/{p-af9aac53.entry.js → p-3680ed9c.entry.js} +1 -1
  560. package/dist/stzh-components/p-36fbc15e.system.entry.js +1 -0
  561. package/dist/stzh-components/p-373e5bb9.system.entry.js +1 -0
  562. package/dist/stzh-components/{p-77320d20.entry.js → p-39871486.entry.js} +1 -1
  563. package/dist/stzh-components/{p-8c371d1d.system.entry.js → p-39f6243c.system.entry.js} +2 -2
  564. package/dist/stzh-components/p-3a3d196e.system.entry.js +1 -0
  565. package/dist/stzh-components/p-3a57e4ab.entry.js +1 -0
  566. package/dist/stzh-components/{p-6ee87986.entry.js → p-3b2d7678.entry.js} +1 -1
  567. package/dist/stzh-components/{p-884793dd.system.entry.js → p-3c75c708.system.entry.js} +1 -1
  568. package/dist/stzh-components/p-3cdbb1ed.js +1 -0
  569. package/dist/stzh-components/p-3d00dad8.entry.js +1 -0
  570. package/dist/stzh-components/p-3e8bba03.system.entry.js +1 -0
  571. package/dist/stzh-components/p-406c9413.entry.js +9 -0
  572. package/dist/stzh-components/{p-f725921a.entry.js → p-40f7ceb9.entry.js} +1 -1
  573. package/dist/stzh-components/p-42b69706.system.entry.js +1 -0
  574. package/dist/stzh-components/p-444af671.system.entry.js +1 -0
  575. package/dist/stzh-components/p-47bf4999.system.entry.js +1 -0
  576. package/dist/stzh-components/p-47c70501.system.entry.js +1 -0
  577. package/dist/stzh-components/p-4909551f.system.entry.js +1 -0
  578. package/dist/stzh-components/p-509c7218.system.entry.js +1 -0
  579. package/dist/stzh-components/p-526144dc.entry.js +1 -0
  580. package/dist/stzh-components/p-529951e9.system.entry.js +1 -0
  581. package/dist/stzh-components/p-5373c40e.system.entry.js +1 -0
  582. package/dist/stzh-components/p-5538ecd9.entry.js +1 -0
  583. package/dist/stzh-components/p-57f2b7d4.entry.js +1 -0
  584. package/dist/stzh-components/p-5859f81f.system.entry.js +1 -0
  585. package/dist/stzh-components/p-595f202a.entry.js +1 -0
  586. package/dist/stzh-components/p-5ab2ae81.system.entry.js +1 -0
  587. package/dist/stzh-components/{p-b9adebdc.entry.js → p-5efd5a1d.entry.js} +1 -1
  588. package/dist/stzh-components/p-5f33f681.entry.js +1 -0
  589. package/dist/stzh-components/p-6022d291.entry.js +1 -0
  590. package/dist/stzh-components/{p-4f8085e5.entry.js → p-61d68434.entry.js} +1 -1
  591. package/dist/stzh-components/p-61e701ce.system.entry.js +1 -0
  592. package/dist/stzh-components/p-65833306.system.entry.js +1 -0
  593. package/dist/stzh-components/p-663287a8.entry.js +1 -0
  594. package/dist/stzh-components/p-66ea8863.system.js +1 -0
  595. package/dist/stzh-components/{p-3fc51ad1.system.entry.js → p-670495df.system.entry.js} +1 -1
  596. package/dist/stzh-components/p-673d68e7.system.entry.js +1 -0
  597. package/dist/stzh-components/p-6a7152dd.system.entry.js +1 -0
  598. package/dist/stzh-components/p-6a911d9c.system.entry.js +1 -0
  599. package/dist/stzh-components/p-6b05235b.system.entry.js +1 -0
  600. package/dist/stzh-components/p-6bdbad44.entry.js +1 -0
  601. package/dist/stzh-components/p-6c6380a8.entry.js +1 -0
  602. package/dist/stzh-components/p-6ef3c304.system.entry.js +1 -0
  603. package/dist/stzh-components/{p-6a109ce9.system.entry.js → p-6f4d7926.system.entry.js} +1 -1
  604. package/dist/stzh-components/p-7142e816.system.entry.js +1 -0
  605. package/dist/stzh-components/p-72a71f30.system.entry.js +1 -0
  606. package/dist/stzh-components/{p-cd59cead.system.js → p-72f050c1.system.js} +1 -1
  607. package/dist/stzh-components/{p-88fbb2fc.system.entry.js → p-73ce3c9b.system.entry.js} +8 -8
  608. package/dist/stzh-components/{p-bc2af057.entry.js → p-73d779a3.entry.js} +1 -1
  609. package/dist/stzh-components/p-7413b79d.entry.js +1 -0
  610. package/dist/stzh-components/p-74831964.entry.js +1 -0
  611. package/dist/stzh-components/{p-155ecf6c.entry.js → p-75693b7f.entry.js} +1 -1
  612. package/dist/stzh-components/p-770a5d07.system.entry.js +1 -0
  613. package/dist/stzh-components/p-788e2455.system.entry.js +1 -0
  614. package/dist/stzh-components/p-7a95f89c.system.entry.js +1 -0
  615. package/dist/stzh-components/p-7b887b10.system.entry.js +1 -0
  616. package/dist/stzh-components/p-7bc49298.system.entry.js +1 -0
  617. package/dist/stzh-components/p-7c1e4ff7.system.entry.js +1 -0
  618. package/dist/stzh-components/{p-0a408348.entry.js → p-7f442c8f.entry.js} +1 -1
  619. package/dist/stzh-components/{p-b4db3558.js → p-8276a3a5.js} +1 -1
  620. package/dist/stzh-components/p-843301ca.entry.js +1 -0
  621. package/dist/stzh-components/p-84ee50a5.system.entry.js +1 -0
  622. package/dist/stzh-components/p-87eb2a8d.entry.js +1 -0
  623. package/dist/stzh-components/p-8aaef773.entry.js +1 -0
  624. package/dist/stzh-components/p-8b02b816.entry.js +1 -0
  625. package/dist/stzh-components/p-8d5fd36f.entry.js +1 -0
  626. package/dist/stzh-components/p-8f996d7e.system.entry.js +1 -0
  627. package/dist/stzh-components/p-90053b06.system.entry.js +1 -0
  628. package/dist/stzh-components/p-90a3867e.entry.js +1 -0
  629. package/dist/stzh-components/p-91ea8f3b.entry.js +1 -0
  630. package/dist/stzh-components/p-92332dae.entry.js +1 -0
  631. package/dist/stzh-components/p-929a0532.entry.js +1 -0
  632. package/dist/stzh-components/p-9443ef45.system.entry.js +1 -0
  633. package/dist/stzh-components/p-9522b7c7.entry.js +1 -0
  634. package/dist/stzh-components/p-9a990d3c.entry.js +1 -0
  635. package/dist/stzh-components/{p-5b162e4f.entry.js → p-9b9b579b.entry.js} +1 -1
  636. package/dist/stzh-components/{p-4da7ebff.entry.js → p-9d996db9.entry.js} +1 -1
  637. package/dist/stzh-components/p-a0aeb3d6.system.entry.js +1 -0
  638. package/dist/stzh-components/p-a26d3e2d.entry.js +1 -0
  639. package/dist/stzh-components/p-a3781fae.entry.js +1 -0
  640. package/dist/stzh-components/p-a3d99e8f.entry.js +1 -0
  641. package/dist/stzh-components/{p-8eda017e.entry.js → p-a51184fb.entry.js} +1 -1
  642. package/dist/stzh-components/p-a63df129.system.entry.js +1 -0
  643. package/dist/stzh-components/p-a6c76983.system.entry.js +1 -0
  644. package/dist/stzh-components/p-a70423e5.system.entry.js +1 -0
  645. package/dist/stzh-components/{p-d5514e5b.system.entry.js → p-a8205b50.system.entry.js} +2 -2
  646. package/dist/stzh-components/p-a89d05d3.entry.js +1 -0
  647. package/dist/stzh-components/p-a89e510c.entry.js +1 -0
  648. package/dist/stzh-components/p-ab66cdf8.entry.js +1 -0
  649. package/dist/stzh-components/p-ac6df3e4.system.entry.js +1 -0
  650. package/dist/stzh-components/p-ad85c5c6.entry.js +1 -0
  651. package/dist/stzh-components/p-b0d74781.entry.js +1 -0
  652. package/dist/stzh-components/p-b42a99f2.entry.js +1 -0
  653. package/dist/stzh-components/p-b7509be8.system.entry.js +1 -0
  654. package/dist/stzh-components/p-b7e7b956.entry.js +1 -0
  655. package/dist/stzh-components/p-b9a687f5.system.entry.js +1 -0
  656. package/dist/stzh-components/p-bbacd4b6.system.entry.js +1 -0
  657. package/dist/stzh-components/p-bd275bc1.system.entry.js +1 -0
  658. package/dist/stzh-components/p-bfeae490.entry.js +1 -0
  659. package/dist/stzh-components/p-bfece369.system.entry.js +1 -0
  660. package/dist/stzh-components/p-c164e020.system.entry.js +1 -0
  661. package/dist/stzh-components/p-c28d19c7.entry.js +1 -0
  662. package/dist/stzh-components/p-c4619b1f.entry.js +9 -0
  663. package/dist/stzh-components/p-c7263e0f.system.entry.js +1 -0
  664. package/dist/stzh-components/p-ca7ec43f.system.entry.js +1 -0
  665. package/dist/stzh-components/p-cb8d0d64.system.entry.js +1 -0
  666. package/dist/stzh-components/p-cd3c2a3a.system.entry.js +1 -0
  667. package/dist/stzh-components/p-cd7d91be.system.entry.js +1 -0
  668. package/dist/stzh-components/p-cfe82456.entry.js +1 -0
  669. package/dist/stzh-components/p-d0236fd5.entry.js +1 -0
  670. package/dist/stzh-components/{p-8b16550d.entry.js → p-d332af6f.entry.js} +1 -1
  671. package/dist/stzh-components/{p-48dee587.entry.js → p-d34653bd.entry.js} +1 -1
  672. package/dist/stzh-components/p-d46116ce.system.entry.js +1 -0
  673. package/dist/stzh-components/p-d7d424bc.entry.js +1 -0
  674. package/dist/stzh-components/{p-ae7255f6.entry.js → p-d9be7a41.entry.js} +1 -1
  675. package/dist/stzh-components/p-d9f5bb65.system.entry.js +1 -0
  676. package/dist/stzh-components/p-dbe89e81.system.entry.js +1 -0
  677. package/dist/stzh-components/p-dc970ea6.system.entry.js +1 -0
  678. package/dist/stzh-components/p-dde56464.system.js +1 -0
  679. package/dist/stzh-components/p-de151e4f.system.entry.js +1 -0
  680. package/dist/stzh-components/p-df617d8e.system.entry.js +1 -0
  681. package/dist/stzh-components/p-dfeb38f7.entry.js +1 -0
  682. package/dist/stzh-components/p-e18f5e43.system.entry.js +1 -0
  683. package/dist/stzh-components/p-e3576ccb.entry.js +1 -0
  684. package/dist/stzh-components/p-e5318901.system.entry.js +1 -0
  685. package/dist/stzh-components/p-e5e7548f.entry.js +1 -0
  686. package/dist/stzh-components/p-e993dfe4.entry.js +1 -0
  687. package/dist/stzh-components/p-ea1b0a82.entry.js +1 -0
  688. package/dist/stzh-components/{p-59793ef8.system.entry.js → p-ea5b9340.entry.js} +1 -1
  689. package/dist/stzh-components/p-ebc2b991.system.entry.js +1 -0
  690. package/dist/stzh-components/{p-aa2c81e6.system.entry.js → p-ec7f15c8.system.entry.js} +1 -1
  691. package/dist/stzh-components/p-ecd1ca5a.entry.js +1 -0
  692. package/dist/stzh-components/p-ee8becb5.entry.js +1 -0
  693. package/dist/stzh-components/p-f202e06c.entry.js +1 -0
  694. package/dist/stzh-components/p-f41788fc.entry.js +1 -0
  695. package/dist/stzh-components/p-f683c9d0.entry.js +1 -0
  696. package/dist/stzh-components/p-f867f814.entry.js +1 -0
  697. package/dist/stzh-components/p-fb6952f1.system.entry.js +1 -0
  698. package/dist/stzh-components/p-fb71ade8.entry.js +1 -0
  699. package/dist/stzh-components/stzh-components.css +1 -1
  700. package/dist/stzh-components/stzh-components.esm.js +1 -1
  701. package/dist/stzh-components/stzh-components.js +1 -1
  702. package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +1 -0
  703. package/dist/types/components.d.ts +83 -14
  704. package/dist/types/index.d.ts +14 -0
  705. package/dist/types/utils/overlay-utils.d.ts +5 -0
  706. package/dist/vscode-data.json +39 -7
  707. package/package.json +1 -1
  708. package/dist/stzh-components/p-013d269a.system.entry.js +0 -1
  709. package/dist/stzh-components/p-0759cd7e.entry.js +0 -1
  710. package/dist/stzh-components/p-0930004d.entry.js +0 -1
  711. package/dist/stzh-components/p-0a2de4e8.entry.js +0 -1
  712. package/dist/stzh-components/p-0c779613.system.entry.js +0 -1
  713. package/dist/stzh-components/p-0e690e3e.system.entry.js +0 -1
  714. package/dist/stzh-components/p-0f882e26.system.entry.js +0 -1
  715. package/dist/stzh-components/p-0ffd0de8.system.entry.js +0 -1
  716. package/dist/stzh-components/p-10b4fedd.system.entry.js +0 -1
  717. package/dist/stzh-components/p-12e03b78.system.entry.js +0 -1
  718. package/dist/stzh-components/p-14729939.entry.js +0 -1
  719. package/dist/stzh-components/p-1494b502.entry.js +0 -1
  720. package/dist/stzh-components/p-14d5a56d.entry.js +0 -1
  721. package/dist/stzh-components/p-16b3d4ee.system.entry.js +0 -1
  722. package/dist/stzh-components/p-205f5111.system.entry.js +0 -1
  723. package/dist/stzh-components/p-20bd79d0.entry.js +0 -1
  724. package/dist/stzh-components/p-215d2cf6.system.entry.js +0 -1
  725. package/dist/stzh-components/p-25d8a9c0.system.entry.js +0 -1
  726. package/dist/stzh-components/p-263fd0bb.system.entry.js +0 -1
  727. package/dist/stzh-components/p-2674dc69.system.entry.js +0 -1
  728. package/dist/stzh-components/p-2c42ae68.entry.js +0 -1
  729. package/dist/stzh-components/p-2e6ef670.entry.js +0 -1
  730. package/dist/stzh-components/p-2ed20db5.entry.js +0 -1
  731. package/dist/stzh-components/p-31b995e8.entry.js +0 -1
  732. package/dist/stzh-components/p-322e74e9.system.entry.js +0 -1
  733. package/dist/stzh-components/p-353294ce.entry.js +0 -1
  734. package/dist/stzh-components/p-396697db.system.entry.js +0 -1
  735. package/dist/stzh-components/p-3af95b5d.entry.js +0 -1
  736. package/dist/stzh-components/p-3b00d8b8.entry.js +0 -1
  737. package/dist/stzh-components/p-3f676d99.system.entry.js +0 -1
  738. package/dist/stzh-components/p-3f80ce87.entry.js +0 -1
  739. package/dist/stzh-components/p-40798ed2.entry.js +0 -1
  740. package/dist/stzh-components/p-418e04f7.system.entry.js +0 -1
  741. package/dist/stzh-components/p-4453449f.entry.js +0 -1
  742. package/dist/stzh-components/p-44d10402.system.entry.js +0 -1
  743. package/dist/stzh-components/p-454e50f8.system.entry.js +0 -1
  744. package/dist/stzh-components/p-46d07ed7.entry.js +0 -1
  745. package/dist/stzh-components/p-470182bb.system.entry.js +0 -1
  746. package/dist/stzh-components/p-47175c6f.system.entry.js +0 -1
  747. package/dist/stzh-components/p-48d40c7c.system.entry.js +0 -1
  748. package/dist/stzh-components/p-48e79dc0.system.entry.js +0 -1
  749. package/dist/stzh-components/p-4a60b27f.entry.js +0 -1
  750. package/dist/stzh-components/p-4acb6752.system.entry.js +0 -1
  751. package/dist/stzh-components/p-4b995fe4.system.entry.js +0 -1
  752. package/dist/stzh-components/p-51b53e68.entry.js +0 -1
  753. package/dist/stzh-components/p-552d0e82.system.entry.js +0 -1
  754. package/dist/stzh-components/p-558f336d.system.entry.js +0 -1
  755. package/dist/stzh-components/p-57235597.system.entry.js +0 -1
  756. package/dist/stzh-components/p-5a4aef52.entry.js +0 -1
  757. package/dist/stzh-components/p-617ece76.system.entry.js +0 -1
  758. package/dist/stzh-components/p-655e3c46.system.entry.js +0 -1
  759. package/dist/stzh-components/p-6606e17e.system.entry.js +0 -1
  760. package/dist/stzh-components/p-6659b6f6.system.entry.js +0 -1
  761. package/dist/stzh-components/p-66692130.entry.js +0 -1
  762. package/dist/stzh-components/p-6722e89a.system.entry.js +0 -1
  763. package/dist/stzh-components/p-6769b9a8.system.entry.js +0 -1
  764. package/dist/stzh-components/p-67ae4994.entry.js +0 -1
  765. package/dist/stzh-components/p-6a26c9eb.system.entry.js +0 -1
  766. package/dist/stzh-components/p-6bc7f44a.entry.js +0 -1
  767. package/dist/stzh-components/p-6deb516e.entry.js +0 -1
  768. package/dist/stzh-components/p-70f85be3.system.entry.js +0 -1
  769. package/dist/stzh-components/p-77d0a54b.system.entry.js +0 -1
  770. package/dist/stzh-components/p-7f1b7b44.system.entry.js +0 -1
  771. package/dist/stzh-components/p-7ff1640c.entry.js +0 -1
  772. package/dist/stzh-components/p-80f497d8.system.entry.js +0 -1
  773. package/dist/stzh-components/p-814e5ae7.entry.js +0 -9
  774. package/dist/stzh-components/p-821ca4af.system.entry.js +0 -1
  775. package/dist/stzh-components/p-8361c9d8.system.entry.js +0 -1
  776. package/dist/stzh-components/p-838b0542.entry.js +0 -1
  777. package/dist/stzh-components/p-862e7723.system.entry.js +0 -1
  778. package/dist/stzh-components/p-86336227.entry.js +0 -1
  779. package/dist/stzh-components/p-919cf183.entry.js +0 -1
  780. package/dist/stzh-components/p-94918f2a.system.entry.js +0 -1
  781. package/dist/stzh-components/p-949f7885.system.js +0 -1
  782. package/dist/stzh-components/p-95bfbf67.system.entry.js +0 -1
  783. package/dist/stzh-components/p-99d85a97.entry.js +0 -1
  784. package/dist/stzh-components/p-9a94b249.system.entry.js +0 -1
  785. package/dist/stzh-components/p-9ed30a9f.entry.js +0 -1
  786. package/dist/stzh-components/p-9f29e6c3.entry.js +0 -1
  787. package/dist/stzh-components/p-a0b2739a.entry.js +0 -1
  788. package/dist/stzh-components/p-a1727d35.entry.js +0 -1
  789. package/dist/stzh-components/p-a2121744.system.entry.js +0 -1
  790. package/dist/stzh-components/p-a22ac109.entry.js +0 -1
  791. package/dist/stzh-components/p-a2df0ea1.entry.js +0 -1
  792. package/dist/stzh-components/p-a3bf419d.entry.js +0 -1
  793. package/dist/stzh-components/p-a47e205f.entry.js +0 -1
  794. package/dist/stzh-components/p-a693ab41.entry.js +0 -1
  795. package/dist/stzh-components/p-abf13db9.system.entry.js +0 -1
  796. package/dist/stzh-components/p-acf59d10.entry.js +0 -1
  797. package/dist/stzh-components/p-ad62a793.system.entry.js +0 -1
  798. package/dist/stzh-components/p-ad816fd9.entry.js +0 -1
  799. package/dist/stzh-components/p-ad96eb50.entry.js +0 -1
  800. package/dist/stzh-components/p-ae673b30.system.entry.js +0 -1
  801. package/dist/stzh-components/p-af05718d.system.entry.js +0 -1
  802. package/dist/stzh-components/p-b395bed5.system.entry.js +0 -1
  803. package/dist/stzh-components/p-b4c28bf5.entry.js +0 -1
  804. package/dist/stzh-components/p-b61f7404.entry.js +0 -1
  805. package/dist/stzh-components/p-b9bd42e6.system.entry.js +0 -1
  806. package/dist/stzh-components/p-b9f784e4.system.entry.js +0 -1
  807. package/dist/stzh-components/p-bada7caa.system.entry.js +0 -1
  808. package/dist/stzh-components/p-bcfba21f.entry.js +0 -1
  809. package/dist/stzh-components/p-bd1a5d6d.system.entry.js +0 -1
  810. package/dist/stzh-components/p-be68b323.entry.js +0 -1
  811. package/dist/stzh-components/p-c457dad2.system.entry.js +0 -1
  812. package/dist/stzh-components/p-c80a9d50.entry.js +0 -1
  813. package/dist/stzh-components/p-c87e9b71.entry.js +0 -1
  814. package/dist/stzh-components/p-c9940c35.entry.js +0 -1
  815. package/dist/stzh-components/p-cab1a192.entry.js +0 -1
  816. package/dist/stzh-components/p-cd979ce9.system.entry.js +0 -1
  817. package/dist/stzh-components/p-ce5db779.system.entry.js +0 -1
  818. package/dist/stzh-components/p-d29fd401.entry.js +0 -1
  819. package/dist/stzh-components/p-d585e8fd.system.entry.js +0 -1
  820. package/dist/stzh-components/p-d5994419.system.entry.js +0 -1
  821. package/dist/stzh-components/p-d6e5f396.system.entry.js +0 -1
  822. package/dist/stzh-components/p-dd1bb919.entry.js +0 -1
  823. package/dist/stzh-components/p-de76e01b.entry.js +0 -1
  824. package/dist/stzh-components/p-e085a0a0.entry.js +0 -1
  825. package/dist/stzh-components/p-e1501622.system.entry.js +0 -1
  826. package/dist/stzh-components/p-e2d80ee3.entry.js +0 -1
  827. package/dist/stzh-components/p-e3afc8f7.entry.js +0 -1
  828. package/dist/stzh-components/p-e4aa12ba.system.entry.js +0 -1
  829. package/dist/stzh-components/p-e54f66ea.system.entry.js +0 -1
  830. package/dist/stzh-components/p-e59c2adc.system.entry.js +0 -1
  831. package/dist/stzh-components/p-e7909de9.system.entry.js +0 -1
  832. package/dist/stzh-components/p-e8feb92e.system.entry.js +0 -1
  833. package/dist/stzh-components/p-e9994d05.system.entry.js +0 -1
  834. package/dist/stzh-components/p-eb16ad0d.entry.js +0 -9
  835. package/dist/stzh-components/p-eb1ea7f0.entry.js +0 -1
  836. package/dist/stzh-components/p-eb7773f3.entry.js +0 -1
  837. package/dist/stzh-components/p-ec87506f.entry.js +0 -1
  838. package/dist/stzh-components/p-ee20b95b.system.entry.js +0 -1
  839. package/dist/stzh-components/p-eed126cf.system.entry.js +0 -1
  840. package/dist/stzh-components/p-f122e15d.system.entry.js +0 -1
  841. package/dist/stzh-components/p-f27d1a06.system.entry.js +0 -1
  842. package/dist/stzh-components/p-f2deda0a.entry.js +0 -1
  843. package/dist/stzh-components/p-f449f909.entry.js +0 -1
  844. package/dist/stzh-components/p-f7bb76d8.system.entry.js +0 -1
  845. package/dist/stzh-components/p-f7e18135.entry.js +0 -1
  846. package/dist/stzh-components/p-f9ab0433.entry.js +0 -1
  847. package/dist/stzh-components/p-fe1c8047.system.entry.js +0 -1
@@ -31,4 +31,4 @@ const Es=(t,s)=>"method"===s.kind&&s.descriptor&&!("value"in s.descriptor)?{...s
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
- */}function Ss(t){return Cs({...t,state:!0})}var Ms=Symbol("@vidstack/media-provider-discovery"),$s=class extends ks{constructor(){super(),this._disconnectDisposal=new B,this._logger=void 0,this.loading="visible",this._attemptingAutoplay=!1,this.controllerQueue=new Et,this._store=Gt(),this._state=Dt(this._store),this.connectedQueue=Ct(this),this.mediaQueue=new Et,this.screenOrientationController=new St(this),this.fullscreenController=new zt(this,this.screenOrientationController),ot(this,"vds-media-provider-connect",{register:Ms});const t=function(...t){return new class{constructor(t,s={},i=(()=>!0),e){this._host=t,this._callback=i,this._logger=e,this._skipInitial=!1,this._unobservedUpdate=!1;const{target:h,skipInitial:n,...r}=s;this._target=h??void 0,this._skipInitial=n??this._skipInitial,window.IntersectionObserver&&(this._observer=new IntersectionObserver((t=>{const s=this._unobservedUpdate;this._unobservedUpdate=!1,this._skipInitial&&s||(this.handleChanges(t),this._host.requestUpdate())}),r),t.addController(this))}handleChanges(t){this.value=this._callback(t,this._observer)}hostConnected(){this._target&&this.observe(this._target)}hostDisconnected(){this._disconnect()}async hostUpdated(){const t=this._observer.takeRecords();t.length&&this.handleChanges(t)}observe(t){return this._observer.observe(t),this._unobservedUpdate=!0,()=>{this._observer.unobserve(t)}}_disconnect(){this._observer.disconnect()}}(...t)}(this,{target:this,threshold:0},(s=>{/(visible|lazy)/.test(this.loading)?s[0]?.isIntersecting&&(this.startLoadingMedia(),t.hostDisconnected()):t.hostDisconnected()}))}connectedCallback(){super.connectedCallback(),this._logMediaEvents(),window.requestAnimationFrame((()=>{tt(this.canLoadPoster)&&(this.canLoadPoster=!0)}))}firstUpdated(t){super.firstUpdated(t),this.dispatchEvent(Y("vds-fullscreen-support-change",{detail:this.canFullscreen})),this.canLoad||"eager"===this.loading?window?.requestAnimationFrame((()=>{this.startLoadingMedia()})):"idle"===this.loading&&Rt((()=>{this.startLoadingMedia()}))}render(){return E`<slot @slotchange="${this.handleDefaultSlotChange}"></slot>`}disconnectedCallback(){this._updateMediaStoreOnDisconnect(this._store),this.mediaQueue.destroy(),this._disconnectDisposal.empty(),super.disconnectedCallback(),qt((()=>{qt((()=>{this.isConnected||this.destroy()}))}))}_updateMediaStoreOnDisconnect(t){t.paused.set(!0),t.playing.set(!1),t.seeking.set(!1),t.waiting.set(!1),t.fullscreen.set(!1)}destroy(){this.isConnected&&this.disconnectedCallback(),this.dispatchEvent(Y("vds-destroy"))}_logMediaEvents(){}get volume(){return this._getVolume()}set volume(t){this.mediaQueue.queue("volume",(()=>{const s=this.volume,i=bt(0,t,1);s!==i&&(this._setVolume(i),this.requestUpdate("volume",s))}))}get paused(){return this._getPaused()}set paused(t){this.mediaQueue.queue("paused",(()=>{if(this.paused!==t)try{t?this.pause():this.play(),this.requestUpdate("paused",!t)}catch(Cs){this._logger?.error("paused-change-fail",Cs)}}))}get currentTime(){return this._getCurrentTime()}set currentTime(t){this.mediaQueue.queue("current-time",(()=>{const s=this.currentTime;s!==t&&(this._setCurrentTime(t),this.requestUpdate("currentTime",s))}))}get muted(){return this._getMuted()}set muted(t){this.mediaQueue.queue("muted",(()=>{const s=this.muted;s!==t&&(this._setMuted(t),this.requestUpdate("muted",s))}))}get poster(){return this.state.poster}set poster(t){const s=this.poster;s!==t&&(this.dispatchEvent(Y("vds-poster-change",{detail:t})),this.requestUpdate("poster",s))}get loop(){return this.state.loop}set loop(t){const s=this.loop;s!==t&&(this.dispatchEvent(Y("vds-loop-change",{detail:t})),this.requestUpdate("loop",s))}get controls(){return this.state.controls}set controls(t){const s=this.controls;s!==t&&(this.dispatchEvent(Y("vds-controls-change",{detail:t})),this.requestUpdate("controls",s))}get canLoad(){return this.state.canLoad}startLoadingMedia(){this.state.canPlay||this.dispatchEvent(Y("vds-can-load"))}_throwIfNotReadyForPlayback(){if(!this.state.canPlay)throw Error("Media is not ready - wait for `vds-can-play` event.")}async _resetPlaybackIfEnded(){if(this.state.ended&&0!==this.state.currentTime)return this._setCurrentTime(0)}_throwIfNotVideoView(){if("video"!==this.state.viewType)throw Error("Player is currently not in a video view.")}async _handleMediaReady({event:t,duration:s}){this.state.canPlay||(this.dispatchEvent(Y("vds-can-play",{triggerEvent:t,detail:{duration:s}})),this.mediaQueue.start(),await this._attemptAutoplay())}_handleCurrentSrcChange(t,s){this.state.currentSrc!==t&&(this.mediaQueue.stop(),this.dispatchEvent(Y("vds-current-src-change",{detail:t,triggerEvent:s})))}get autoplay(){return this.state.autoplay}set autoplay(t){this.autoplay!==t&&(this.dispatchEvent(Y("vds-autoplay-change",{detail:t})),this.requestUpdate("autoplay",!t)),this._attemptAutoplay()}get _canAttemptAutoplay(){return this.state.canPlay&&this.state.autoplay&&!this.state.started}async _attemptAutoplay(){if(this._canAttemptAutoplay){this._attemptingAutoplay=!0;try{await this.play(),this.dispatchEvent(Y("vds-autoplay",{detail:{muted:this.muted}}))}catch(t){this.dispatchEvent(Y("vds-autoplay-fail",{detail:{muted:this.muted,error:t}})),this.requestUpdate()}this._attemptingAutoplay=!1}}get controller(){return this._controller}get logLevel(){return this._controller?.logLevel??"silent"}set logLevel(t){}get idleDelay(){return this._controller?.idleDelay??0}set idleDelay(t){this.controllerQueue.queue("idle-delay",(()=>{this._controller.idleDelay=t}))}attachMediaController(t,s){this._controller=t,this._store=t._store,this._state=t.state,this.controllerQueue.start(),s((()=>{this.controllerQueue.destroy(),this._store=Gt(),this._state=Dt(this._store),this._controller&&(At(this._controller._store,this._store),this._updateMediaStoreOnDisconnect(this._controller._store)),this._controller=void 0}))}dispatchEvent(t){return!this._controller&&t.type.startsWith("vds-")&&"vds-destroy"!==t.type?(this.controllerQueue.queue(t.type,(()=>{super.dispatchEvent(t)})),!1):super.dispatchEvent(t)}store(){return this._store}get state(){return this._state}get canFullscreen(){return this.fullscreenController.isSupported}get fullscreen(){return this.fullscreenController.isFullscreen}get fullscreenOrientation(){return this.fullscreenController.screenOrientationLock}set fullscreenOrientation(t){const s=this.fullscreenController.screenOrientationLock;s!==t&&(this.fullscreenController.screenOrientationLock=t,this.requestUpdate("fullscreen-orientation",s))}enterFullscreen(){return this.fullscreenController.enterFullscreen()}exitFullscreen(){return this.fullscreenController.exitFullscreen()}};hs([Cs({type:Number})],$s.prototype,"volume",1),hs([Cs({type:Boolean})],$s.prototype,"paused",1),hs([Cs({type:Number})],$s.prototype,"currentTime",1),hs([Cs({type:Boolean})],$s.prototype,"muted",1),hs([Cs()],$s.prototype,"poster",1),hs([Cs({type:Boolean})],$s.prototype,"loop",1),hs([Cs({type:Boolean})],$s.prototype,"controls",1),hs([Ss()],$s.prototype,"canLoadPoster",2),hs([Cs({attribute:"loading"})],$s.prototype,"loading",2),hs([Cs({type:Boolean})],$s.prototype,"autoplay",1),hs([Cs({attribute:"log-level"})],$s.prototype,"logLevel",1),hs([Cs({attribute:"idle-delay",type:Number})],$s.prototype,"idleDelay",1),hs([Cs({attribute:"fullscreen-orientation"})],$s.prototype,"fullscreenOrientation",1);var Ts=class{constructor(t,s,i){this._host=t,this._store=s,this._mediaProps=i,this._disposal=new B,this._host.addController({hostConnected:this._hostConnected.bind(this),hostDisconnected:this._hostDisconnected.bind(this)})}_hostConnected(){Rt((()=>{for(const t of this._mediaProps){const s=this._store[t];if(s){const i=this._getMediaAttrName(t),e=s.subscribe((s=>{window?.requestAnimationFrame((()=>{this._handleValueChange(t,i,s)}))}));this._disposal.add(e)}}}))}_hostDisconnected(){for(const t of this._mediaProps)this._handleDisconnect(t,this._getMediaAttrName(t));this._disposal.empty()}_getMediaAttrName(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},Ps=class extends Ts{_handleValueChange(t,s,i){window.requestAnimationFrame((()=>{Lt(this._host,s,et(i)||it(i)?String(i):!!i)}))}_handleDisconnect(t,s){this._host.removeAttribute(s)}},Fs=class extends Ts{_handleValueChange(t,s,i){window.requestAnimationFrame((()=>{this._host.style.setProperty(this._getCssPropName(s),et(i)||it(i)?String(i):null)}))}_getCssPropName(t){return`--vds-${t}`}_handleDisconnect(t,s){this._host.style.setProperty(this._getCssPropName(s),null)}},As=Symbol("@vidstack/media-discovery"),Ds=class extends ks{constructor(){super(),this.controller=new class{constructor(t){var s,i,e,h,n,r,o;this._host=t,this._disconnectDisposal=new B,this.providerQueue=new Et,this.providerDisposal=new B,this._logController=void 0,this._logger=void 0,this._providerContext=Yt.provide(this._host),this._mediaStoreProvider=ts.provide(this._host),this.state=Dt(this._store),this._userIdleController=new class{constructor(t,s){this._host=t,this._mediaStore=s,this._idle=!1,this._mediaPaused=!1,this._idlingPaused=!1,this._disposal=new B,this.delay=2e3,t.addController(this)}get paused(){return this._idlingPaused||this._mediaPaused}set paused(t){this._idlingPaused=t,this._handleIdleChange()}hostConnected(){this._disposal.add(this._mediaStore.paused.subscribe((t=>{this._mediaPaused=t,this._handleIdleChange()}))),["pointerdown","pointermove","focus","keydown"].forEach((t=>{const s=I(this._host,t,this._handleIdleChange.bind(this));this._disposal.add(s)}))}hostDisconnected(){this._disposal.empty(),this._stopIdleTimer()}_handleIdleChange(){this.paused?this._stopIdleTimer():this._startIdleTimer()}_startIdleTimer(){this._stopIdleTimer(),this._idleTimeout=window.setTimeout((()=>{this._dispatchIdleChange(!this.paused)}),this.delay)}_stopIdleTimer(){window.clearTimeout(this._idleTimeout),this._dispatchIdleChange(!1)}_dispatchIdleChange(t){this._idle!==t&&(this._host.dispatchEvent(Y("vds-user-idle-change",{detail:t})),this._idle=t)}}(this._host,this._store),this._handleIdleChange=H(this._host,"vds-user-idle-change",(t=>{this._store.userIdle.set(t.detail),this._satisfyMediaRequest("userIdle",t)})),this._pendingMediaRequests={loading:[],play:[],pause:[],volume:[],fullscreen:[],seeked:[],seeking:[],userIdle:[]},this._handleStartLoadingRequest=H(this._host,"vds-start-loading",this._createMediaRequestHandler("loading",(t=>{this.state.canLoad||(this._pendingMediaRequests.loading.push(t),this._provider.startLoadingMedia())}))),this._handleMuteRequest=H(this._host,"vds-mute-request",this._createMediaRequestHandler("muted",(t=>{this.state.muted||(this._pendingMediaRequests.volume.push(t),this.provider.muted=!0)}))),this._handleUnmuteRequest=H(this._host,"vds-unmute-request",this._createMediaRequestHandler("muted",(t=>{this.state.muted&&(this._pendingMediaRequests.volume.push(t),this.provider.muted=!1,0===this.state.volume&&(this._pendingMediaRequests.volume.push(t),this.provider.volume=.25))}))),this._handlePlayRequest=H(this._host,"vds-play-request",this._createMediaRequestHandler("paused",(t=>{this.state.paused&&(this._pendingMediaRequests.play.push(t),this.provider.paused=!1)}))),this._handlePauseRequest=H(this._host,"vds-pause-request",this._createMediaRequestHandler("paused",(t=>{this.state.paused||(this._pendingMediaRequests.pause.push(t),this.provider.paused=!0)}))),this._isSeekingRequestPending=!1,this._handleSeekingRequest=H(this._host,"vds-seeking-request",this._createMediaRequestHandler("seeking",(t=>{this._stopWaiting(),this._pendingMediaRequests.seeking.push(t),this._isSeekingRequestPending=!0,this._store.seeking.set(!0)}))),this._handleSeekRequest=H(this._host,"vds-seek-request",this._createMediaRequestHandler("seeking",(t=>{this.store.ended&&(this._isReplay=!0),this._pendingMediaRequests.seeked.push(t),this._isSeekingRequestPending=!1;let s=t.detail;this.state.duration-t.detail<.25&&(s=this.state.duration),this.provider.currentTime=s}))),this._handleVolumeChangeRequest=H(this._host,"vds-volume-change-request",this._createMediaRequestHandler("volume",(t=>{const s=t.detail;this.state.volume!==s&&(this._pendingMediaRequests.volume.push(t),this.provider.volume=s,s>0&&this.state.muted&&(this._pendingMediaRequests.volume.push(t),this.provider.muted=!1))}))),this._handleEnterFullscreenRequest=H(this._host,"vds-enter-fullscreen-request",this._createMediaRequestHandler("fullscreen",(async t=>{this.state.fullscreen||("media"===(t.detail??"media")&&this._host.canFullscreen?(this._pendingMediaRequests.fullscreen.push(t),await(this._host.enterFullscreen?.())):this.provider&&(this._pendingMediaRequests.fullscreen.push(t),await this.provider.enterFullscreen()))}))),this._handleExitFullscreenRequest=H(this._host,"vds-exit-fullscreen-request",this._createMediaRequestHandler("fullscreen",(async t=>{this.state.fullscreen&&("media"===(t.detail??"media")&&this._host.canFullscreen?(this._pendingMediaRequests.fullscreen.push(t),await(this._host.exitFullscreen?.())):this.provider&&(this._pendingMediaRequests.fullscreen.push(t),await this.provider.exitFullscreen()))}))),this._handleResumeIdlingRequest=H(this._host,"vds-resume-user-idle-request",(t=>{this._mediaRequestEventGateway(t)&&(this._pendingMediaRequests.userIdle.push(t),this._userIdleController.paused=!1)})),this._handlePauseIdlingRequest=H(this._host,"vds-pause-user-idle-request",(t=>{this._mediaRequestEventGateway(t)&&(this._pendingMediaRequests.userIdle.push(t),this._userIdleController.paused=!0)})),this._handleShowPosterRequest=H(this._host,"vds-show-poster-request",this._createMediaRequestHandler("poster",(()=>{this._provider.canLoadPoster=!0}))),this._handleHidePosterRequest=H(this._host,"vds-hide-poster-request",this._createMediaRequestHandler("poster",(()=>{this._provider.canLoadPoster=!1}))),this._handleLoopRequest=this._createMediaRequestHandler("loop",(()=>{window.requestAnimationFrame((async()=>{try{this._isLooping=!0,this._isReplay=!0,await this._provider.play()}catch(Cs){this._isReplay=!1,this._isLooping=!1}}))})),this._handleFullscreenChange=H(this._host,"vds-fullscreen-change",(t=>{this._store.fullscreen.set(t.detail),t.target===this._host&&(this._satisfyMediaRequest("fullscreen",t),this._provider?.dispatchEvent(Y("vds-fullscreen-change",{detail:t.detail,triggerEvent:t})))})),this._handleFullscreenError=H(this._host,"vds-fullscreen-error",(t=>{t.target===this._host&&(this._satisfyMediaRequest("fullscreen",t),this._provider?.dispatchEvent(Y("vds-fullscreen-error",{detail:t.detail,triggerEvent:t})))})),this._isReplay=!1,this._isLooping=!1,this._firingWaiting=!1,this._mediaEvents=[],this._handleSeeking=j((t=>{this._mediaEvents.push(t),this._store.seeking.set(!0),this._store.currentTime.set(t.detail),this._satisfyMediaRequest("seeking",t)}),150,{leading:!0}),this._fireWaiting=(s=()=>{if(!this._originalWaitingEvent)return;this._firingWaiting=!0;const t=Y("vds-waiting",this._originalWaitingEvent);this._mediaEvents.push(t),this._store.waiting.set(!0),this._store.playing.set(!1),this._provider?.dispatchEvent(t),this._originalWaitingEvent=void 0,this._firingWaiting=!1},i=300,h=null,n=null,o=function(){if(!i)return s.apply(this,arguments);var t=this,o=arguments,a=e&&!h;return r(),n=function(){s.apply(t,o)},h=setTimeout((function(){if(h=null,!a){var t=n;return n=null,t()}}),i),a?n():void 0},o.cancel=r=function(){h&&(clearTimeout(h),n=null,h=null)},o.flush=function(){var t=n;r(),t&&t()},o),this._skipInitialSrcChange=!0,function(t,s,i){const e={host:t,callback:i};t.addController({hostConnected:()=>{for(const{element:e,onDisconnect:h}of function(t,s){return Array.from(rt.get(s)??[]).filter((({element:s})=>t!==s&&t.contains(s)))}(t,s))i(e,h);nt.set(s,(nt.get(s)??new Set).add(e))},hostDisconnected:()=>{nt.get(s)?.delete(e)}})}(t,Ms,((t,s)=>{this.attachMediaProvider(t,s)})),t.addController({hostConnected:()=>{this.state.canPlay||this._host.setAttribute("aria-busy","true")},hostDisconnected:()=>{this._clearMediaStateTracking(),this._clearPendingMediaRequests(),this.providerQueue.destroy(),this.providerDisposal.empty(),this._skipInitialSrcChange=!0,this._disconnectDisposal.empty()}})}get logLevel(){return this._logController?.logLevel??"silent"}set logLevel(t){}get provider(){return this._provider}attachMediaProvider(t,s){st(this.provider)&&this.provider!==t&&(this._handleMediaProviderDisconnect(),this._provider=t,this._providerContext.value.set(t),At(this._provider._store,this._store),this._attachMediaEventListeners(),t.attachMediaController(this,(t=>this._disconnectDisposal.add(t))),this._flushMediaProviderConnectedQueue(),s(this._handleMediaProviderDisconnect.bind(this)))}_handleMediaProviderDisconnect(){st(this.provider)||(this._stopWaiting(),this.providerQueue.destroy(),this.providerDisposal.empty(),this._provider=void 0,this._providerContext.value.set(void 0),function(t){for(const s of Mt(Zt))t[s].set(Zt[s])}(this._store),this._store.viewType.set("unknown"))}_flushMediaProviderConnectedQueue(){this.providerQueue.start(),this.providerDisposal.add((()=>{this.providerQueue.stop()}))}get store(){return this._mediaStoreProvider.value}get _store(){return this._mediaStoreProvider.value}get idleDelay(){return this._userIdleController.delay}set idleDelay(t){this._userIdleController.delay=t}_clearPendingMediaRequests(){Mt(this._pendingMediaRequests).forEach((t=>{this._pendingMediaRequests[t]=[]}))}_satisfyMediaRequest(t,s){const i=this._pendingMediaRequests[t].shift();i&&(s.requestEvent=i,X(s,i))}_mediaRequestEventGateway(t){return t.stopPropagation(),!0}_createMediaRequestHandler(t,s){return i=>{this._mediaRequestEventGateway(i)&&(this._provider?s(i):this.providerQueue.queue(t,(()=>{s(i)})))}}_attachMediaEventListeners(){if(!this._provider)return;const t={"vds-can-load":this._handleCanLoad,"vds-load-start":this._handleLoadStart,"vds-loaded-data":this._handleLoadedData,"vds-loaded-metadata":this._handleLoadedMetadata,"vds-can-play":this._handleCanPlay,"vds-can-play-through":this._handleCanPlayThrough,"vds-current-src-change":this._handleCurrentSrcChange,"vds-autoplay":this._handleAutoplay,"vds-autoplay-fail":this._handleAutoplayFail,"vds-loop-request":this._handleLoopRequest,"vds-play":this._handlePlay,"vds-play-fail":this._handlePlayFail,"vds-playing":this._handlePlaying,"vds-pause":this._handlePause,"vds-time-update":this._handleTimeUpdate,"vds-volume-change":this._handleVolumeChange,"vds-seeking":this._handleSeeking,"vds-seeked":this._handleSeeked,"vds-waiting":this._handleWaiting,"vds-ended":this._handleEnded,"vds-autoplay-change":this._handleAutoplayChange,"vds-error":this._handleError,"vds-fullscreen-support-change":this._handleFullscreenSupportChange,"vds-poster-change":this._handlePosterChange,"vds-loop-change":this._handleLoopChange,"vds-playsinline-change":this._handlePlaysinlineChange,"vds-controls-change":this._handleControlsChange,"vds-media-type-change":this._handleMediaTypeChange,"vds-view-type-change":this._handleViewTypeChange,"vds-duration-change":this._handleDurationChange,"vds-progress":this._handleProgress,"vds-src-change":this._handleSrcChange};for(const s of Mt(t)){const i=t[s].bind(this);this.providerDisposal.add(I(this._provider,s,i))}}_clearMediaStateTracking(){this._isReplay=!1,this._isLooping=!1,this._firingWaiting=!1,this._originalWaitingEvent=void 0,this._mediaEvents=[]}_findLastMediaEvent(t){return this._mediaEvents[this._mediaEvents.map((t=>t.type)).lastIndexOf(t)]}_handleCanLoad(t){this._store.canLoad.set(!0),this._mediaEvents.push(t),this._satisfyMediaRequest("loading",t)}_updateMetadata(t){this._store.currentSrc.set(t.currentSrc),this._store.mediaType.set(t.mediaType),this._store.viewType.set(t.viewType)}_handleLoadStart(t){this._updateMetadata(t.detail),this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-src-change")),X(t,this._findLastMediaEvent("vds-can-load"))}_handleLoadedData(t){this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-load-start"))}_handleLoadedMetadata(t){this._updateMetadata(t.detail),this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-load-start"))}_handleCanPlay(t){this._mediaEvents.push(t),"loadedmetadata"!==t.triggerEvent?.type&&X(t,this._findLastMediaEvent("vds-loaded-metadata")),this._store.canPlay.set(!0),this._store.duration.set(t.detail.duration),this._host.setAttribute("aria-busy","false")}_handleCanPlayThrough(t){this._store.canPlay.set(!0),this._store.duration.set(t.detail.duration),X(t,this._findLastMediaEvent("vds-can-play"))}_handleAutoplay(t){this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-play")),X(t,this._findLastMediaEvent("vds-can-play")),this._store.autoplayError.set(void 0)}_handleAutoplayFail(t){X(t,this._findLastMediaEvent("vds-play-fail")),X(t,this._findLastMediaEvent("vds-can-play")),this._store.autoplayError.set(t.detail),this._clearMediaStateTracking()}_handlePlay(t){if(!this._isLooping&&this.state.paused){if(this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-waiting")),this._satisfyMediaRequest("play",t),this._store.paused.set(!1),this._store.autoplayError.set(void 0),this.state.ended||this._isReplay){this._isReplay=!1,this._store.ended.set(!1);const s=Y("vds-replay",{triggerEvent:t});this._provider?.dispatchEvent(s)}}else t.stopImmediatePropagation()}_handlePlayFail(t){this._mediaEvents.push(t),this._stopWaiting(),X(t,this._findLastMediaEvent("vds-play")),this._store.paused.set(!0),this._store.playing.set(!1),this._satisfyMediaRequest("play",t),this._clearMediaStateTracking()}_handlePlaying(t){this._mediaEvents.push(t);const s=this._findLastMediaEvent("vds-play");if(s?(X(t,this._findLastMediaEvent("vds-waiting")),X(t,s)):X(t,this._findLastMediaEvent("vds-seeked")),this._stopWaiting(),this._clearMediaStateTracking(),this._store.paused.set(!1),this._store.playing.set(!0),this._store.seeking.set(!1),this._store.ended.set(!1),this._isLooping)return t.stopImmediatePropagation(),void(this._isLooping=!1);this.state.started||(this._store.started.set(!0),this._provider?.dispatchEvent(Y("vds-started",{triggerEvent:t})))}_handlePause(t){this._isLooping?t.stopImmediatePropagation():(X(t,this._findLastMediaEvent("vds-seeked")),this._satisfyMediaRequest("pause",t),this._store.paused.set(!0),this._store.playing.set(!1),this._store.seeking.set(!1),this._stopWaiting(),this._clearMediaStateTracking())}_handleTimeUpdate(t){const{currentTime:s,played:i}=t.detail;this._store.currentTime.set(s),this._store.played.set(i),this._store.waiting.set(!1)}_handleVolumeChange(t){this._store.volume.set(t.detail.volume),this._store.muted.set(t.detail.muted||0===t.detail.volume),this._satisfyMediaRequest("volume",t)}_handleSeeked(t){this._isSeekingRequestPending?(this._store.seeking.set(!0),t.stopImmediatePropagation()):this.state.seeking&&(this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-waiting")),X(t,this._findLastMediaEvent("vds-seeking")),this.state.paused&&this._stopWaiting(),this._store.seeking.set(!1),t.detail!==this.state.duration&&this._store.ended.set(!1),this._store.currentTime.set(t.detail),this._satisfyMediaRequest("seeked",t))}_stopWaiting(){this._fireWaiting.cancel(),this._store.waiting.set(!1)}_handleWaiting(t){this._firingWaiting||(t.stopImmediatePropagation(),this._originalWaitingEvent=t,this._fireWaiting())}_handleEnded(t){this._isLooping?t.stopImmediatePropagation():(this._stopWaiting(),this._store.paused.set(!0),this._store.playing.set(!1),this._store.seeking.set(!1),this._store.ended.set(!0),this._clearMediaStateTracking())}_handleAutoplayChange(t){this._store.autoplay.set(t.detail)}_handleCurrentSrcChange(t){var s;this._store.currentSrc.set(t.detail),this._skipInitialSrcChange?this._skipInitialSrcChange=!1:(this._clearMediaStateTracking(),Mt(s=this._store).forEach((t=>{Qt.has(t)||s[t].set(s[t].initialValue)})),this._host.setAttribute("aria-busy","true"))}_handleError(t){this._store.error.set(t.detail)}_handleFullscreenSupportChange(t){this._store.canFullscreen.set(t.detail)}_handlePosterChange(t){this._store.poster.set(t.detail)}_handleLoopChange(t){this._store.loop.set(t.detail)}_handlePlaysinlineChange(t){this._store.playsinline.set(t.detail)}_handleControlsChange(t){this._store.controls.set(t.detail)}_handleMediaTypeChange(t){this._store.mediaType.set(t.detail)}_handleDurationChange(t){const s=t.detail;this._store.duration.set(isNaN(s)?0:s)}_handleProgress(t){const{buffered:s,seekable:i}=t.detail,e=0===s.length?0:s.end(s.length-1),h=0===i.length?0:i.end(i.length-1);this._store.buffered.set(s),this._store.bufferedAmount.set(e),this._store.seekable.set(i),this._store.seekableAmount.set(h)}_handleSrcChange(t){this._store.src.set(t.detail)}_handleViewTypeChange(t){this._store.viewType.set(t.detail)}}(this),this.__mediaFullscreen=!1,this.__mediaIsVideoView=!1,this.__mediaPlaysinline=!1,this.screenOrientationController=new St(this),this.fullscreenController=new zt(this,this.screenOrientationController),ot(this,"vds-media-connect",{register:As}),ss(this,"fullscreen",(t=>{this.__mediaFullscreen=t})),ss(this,"viewType",(t=>{this.__mediaIsVideoView="video"===t})),ss(this,"playsinline",(t=>{this.__mediaPlaysinline=t})),this._bindMediaAttributes(),this._bindMediaCSSProperties()}static get styles(){return[ds`:host{display:inline-block;position:relative;contain:content}:host([hidden]){display:none}`]}get provider(){return this.controller.provider}update(t){Lt(this,"hide-ui",this._shouldHideMediaUI()),super.update(t)}render(){return E`<slot></slot>`}get canFullscreen(){return this.fullscreenController.isSupported}get fullscreen(){return this.fullscreenController.isFullscreen}get fullscreenOrientation(){return this.fullscreenController.screenOrientationLock}set fullscreenOrientation(t){const s=this.fullscreenController.screenOrientationLock;s!==t&&(this.fullscreenController.screenOrientationLock=t,this.requestUpdate("fullscreen-orientation",s))}enterFullscreen(){return this.fullscreenController.enterFullscreen()}exitFullscreen(){return this.fullscreenController.exitFullscreen()}_bindMediaAttributes(){!function(...t){new Ps(...t)}(this,this.controller.store,["autoplay","autoplayError","canLoad","canPlay","canFullscreen","ended","error","fullscreen","userIdle","loop","mediaType","muted","paused","playing","playsinline","seeking","started","viewType","waiting"])}_bindMediaCSSProperties(){!function(...t){new Fs(...t)}(this,this.controller.store,["bufferedAmount","currentTime","duration","seekableAmount"])}_shouldHideMediaUI(){return dt&&this.__mediaIsVideoView&&(!this.__mediaPlaysinline||this.__mediaFullscreen)}};hs([Ss()],Ds.prototype,"__mediaFullscreen",2),hs([Ss()],Ds.prototype,"__mediaIsVideoView",2),hs([Ss()],Ds.prototype,"__mediaPlaysinline",2),hs([Cs({attribute:"fullscreen-orientation"})],Ds.prototype,"fullscreenOrientation",1),Ot("vds-media",Ds);var qs=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Os=/\.(mp4|og[gv]|webm|mov|m4v|avi)($|\?)/i,Ls=class extends $s{constructor(){super(...arguments),this.preload="metadata",this._timeRAF=void 0,this._hasMediaElementConnected=!1,this._mediaElementDisposal=new B,this._isMediaWaiting=!1,this._ignoreNextAbortEvent=!1,this._ignoreNextEmptiedEvent=!1}get mediaElement(){return this._mediaElement}disconnectedCallback(){this._isMediaWaiting=!1,super.disconnectedCallback(),this._cancelTimeUpdates()}destroy(){this.mediaElement&&(this.mediaElement.pause(),this.mediaElement.src="",this.mediaElement.innerHTML="",this.mediaElement.load()),super.destroy()}_cancelTimeUpdates(){it(this._timeRAF)&&window.cancelAnimationFrame(this._timeRAF),this._timeRAF=void 0}_requestTimeUpdates(){tt(this._timeRAF)&&this._requestTimeUpdate()}_requestTimeUpdate(){const t=this.mediaElement?.currentTime??0;this.state.currentTime!==t&&this._updateCurrentTime(t),this._timeRAF=window.requestAnimationFrame((()=>{tt(this._timeRAF)||this._requestTimeUpdate()}))}_updateCurrentTime(t,s){this.dispatchEvent(Y("vds-time-update",{detail:{currentTime:Math.min(t,this.mediaElement?.duration??0),played:this.mediaElement.played},triggerEvent:s}))}handleDefaultSlotChange(){this._handleMediaElementDisconnect(),this._handleMediaElementConnect()}get _canMediaElementConnect(){return this.canLoad&&!st(this.mediaElement)&&!this._hasMediaElementConnected}_findSlottedMediaElement(){const t=function(t){const s=t.shadowRoot?.querySelector("slot:not([name])"),i=s?.assignedNodes({flatten:!0})??[];return Array.prototype.filter.call(i,(t=>t.nodeType==Node.ELEMENT_NODE))}(this)[0];/^(audio|video)$/i.test(t?.tagName??""),this._mediaElement=t??void 0}_handleMediaElementConnect(){window.requestAnimationFrame((()=>{if(this._findSlottedMediaElement(),!this._canMediaElementConnect)return;const t=this.mediaElement;t.hasAttribute("loop")&&(this.loop=!0),t.removeAttribute("loop"),t.removeAttribute("poster"),Lt(t,"controls",this.controls),!this.state.canFullscreen&&this.fullscreenController.isSupported&&this.dispatchEvent(Y("vds-fullscreen-support-change",{detail:this.canFullscreen})),this._attachMediaEventListeners(),this._observePlaysinline(),this._observeMediaSources(),this.canLoadPoster&&this.poster.length>0&&t.getAttribute("poster")!==this.poster&&t.setAttribute("poster",this.poster),this._startPreloadingMedia(),this._hasMediaElementConnected=!0,this._disconnectDisposal.add(this._handleMediaElementDisconnect.bind(this))}))}_handleMediaElementDisconnect(){this._cancelTimeUpdates(),window.requestAnimationFrame((()=>{this._mediaElementDisposal.empty(),this._mediaElement=void 0})),this._hasMediaElementConnected=!1}startLoadingMedia(){super.startLoadingMedia(),this._handleMediaElementConnect()}_startPreloadingMedia(){if(this.state.canPlay)return;this.mediaElement.setAttribute("preload",this.preload);const t=this.mediaElement.networkState>=1;this._ignoreNextAbortEvent=t,this._ignoreNextEmptiedEvent=t,this.mediaElement.load(),setTimeout((()=>{this._ignoreNextAbortEvent=!1,this._ignoreNextEmptiedEvent=!1}),0)}_observePlaysinline(){const t=()=>this.mediaElement.hasAttribute("playsinline");this._handlePlaysinlineChange(t());const s=new MutationObserver((()=>this._handlePlaysinlineChange(t())));s.observe(this.mediaElement,{attributeFilter:["playsinline"]}),this._mediaElementDisposal.add((()=>s.disconnect()))}_handlePlaysinlineChange(t){this.dispatchEvent(Y("vds-playsinline-change",{detail:t}))}_observeMediaSources(){this._handleSrcChange(this._getMediaSources());const t=new MutationObserver((()=>this._handleSrcChange(this._getMediaSources())));t.observe(this.mediaElement,{attributeFilter:["src"],subtree:!0}),this._mediaElementDisposal.add((()=>t.disconnect()))}_handleSrcChange(t){var s,i;(s=this.state.src).length===(i=t).length&&s.every(((t,s)=>t===i[s]))||this.dispatchEvent(Y("vds-src-change",{detail:t}))}_getMediaSources(){const t=[this.mediaElement?.src,...Array.from(this.mediaElement?.querySelectorAll("source")??[]).map((t=>t.src))].filter(Boolean);return Array.from(new Set(t))}_getMediaMetadata(){return{src:this.state.src,currentSrc:this.mediaElement.currentSrc,duration:this.mediaElement.duration||0,poster:this.mediaElement.poster,mediaType:this._getMediaType(),viewType:this.state.viewType}}_attachMediaEventListeners(){if(st(this.mediaElement))return;const t={abort:this._handleAbort,canplay:this._handleCanPlay,canplaythrough:this._handleCanPlayThrough,durationchange:this._handleDurationChange,emptied:this._handleEmptied,ended:this._handleEnded,error:this._handleError,loadeddata:this._handleLoadedData,loadedmetadata:this._handleLoadedMetadata,loadstart:this._handleLoadStart,pause:this._handlePause,play:this._handlePlay,playing:this._handlePlaying,progress:this._handleProgress,ratechange:this._handleRateChange,seeked:this._handleSeeked,seeking:this._handleSeeking,stalled:this._handleStalled,suspend:this._handleSuspend,volumechange:this._handleVolumeChange,waiting:this._handleWaiting};Mt(t).forEach((s=>{const i=t[s].bind(this),e=I(this.mediaElement,s,(async t=>{await i(t)}));this._mediaElementDisposal.add(e)}))}_handleAbort(t){this._ignoreNextAbortEvent||(this.dispatchEvent(Y("vds-abort",{triggerEvent:t})),this._handleCurrentSrcChange("",t))}_handleCanPlay(t){this._handleMediaReady({event:t,duration:this.mediaElement.duration})}_handleCanPlayThrough(t){this.state.started||this.dispatchEvent(Y("vds-can-play-through",{triggerEvent:t,detail:{duration:this.mediaElement.duration}}))}_handleLoadStart(t){this._handleCurrentSrcChange(this.mediaElement.currentSrc,t),""!==this.mediaElement.currentSrc?this.dispatchEvent(Y("vds-load-start",{triggerEvent:t,detail:this._getMediaMetadata()})):this._handleAbort()}_handleEmptied(t){this._ignoreNextEmptiedEvent||this.dispatchEvent(Y("vds-emptied",{triggerEvent:t}))}_handleLoadedData(t){this.dispatchEvent(Y("vds-loaded-data",{triggerEvent:t}))}_handleLoadedMetadata(t){this.dispatchEvent(Y("vds-volume-change",{detail:{volume:this.mediaElement.volume,muted:this.mediaElement.muted}})),this.dispatchEvent(Y("vds-loaded-metadata",{triggerEvent:t,detail:this._getMediaMetadata()}))}_determineMediaType(t){this.dispatchEvent(Y("vds-media-type-change",{detail:this._getMediaType(),triggerEvent:t}))}_handlePlay(t){const s=Y("vds-play",{triggerEvent:t});s.autoplay=this._attemptingAutoplay,this.dispatchEvent(s)}_handlePause(t){(1!==this.mediaElement.readyState||this._isMediaWaiting)&&(this._isMediaWaiting=!1,this._cancelTimeUpdates(),this.dispatchEvent(Y("vds-pause",{triggerEvent:t})))}_handlePlaying(t){this._isMediaWaiting=!1;const s=Y("vds-playing",{triggerEvent:t});this.dispatchEvent(s),this._requestTimeUpdates()}_handleDurationChange(t){this.mediaElement.ended&&this._updateCurrentTime(this.mediaElement.duration,t),this.dispatchEvent(Y("vds-duration-change",{detail:this.mediaElement.duration,triggerEvent:t}))}_handleProgress(t){this.dispatchEvent(Y("vds-progress",{triggerEvent:t,detail:{buffered:this.mediaElement.buffered,seekable:this.mediaElement.seekable}}))}_handleRateChange(t){throw Error("Not implemented")}_handleSeeking(t){this.dispatchEvent(Y("vds-seeking",{detail:this.mediaElement.currentTime,triggerEvent:t}))}_handleSeeked(t){const s=Y("vds-seeked",{detail:this.mediaElement.currentTime,triggerEvent:t});this.dispatchEvent(s);const i=this.mediaElement.currentTime;if(Math.trunc(i)===Math.trunc(this.mediaElement.duration)&&wt(this.mediaElement.duration)>wt(i)&&(this._updateCurrentTime(this.mediaElement.duration,t),!this.mediaElement.ended))try{this.play()}catch(Cs){}}_handleStalled(t){this.dispatchEvent(Y("vds-stalled",{triggerEvent:t})),this.mediaElement.readyState<3&&(this._isMediaWaiting=!0,this.dispatchEvent(Y("vds-waiting",{triggerEvent:t})))}_handleVolumeChange(t){this.dispatchEvent(Y("vds-volume-change",{detail:{volume:this.mediaElement.volume,muted:this.mediaElement.muted},triggerEvent:t}))}_handleWaiting(t){this.mediaElement.readyState<3&&(this._isMediaWaiting=!0,this.dispatchEvent(Y("vds-waiting",{triggerEvent:t})))}_handleSuspend(t){const s=Y("vds-suspend",{triggerEvent:t});this.dispatchEvent(s)}_handleEnded(t){this._cancelTimeUpdates(),this._updateCurrentTime(this.mediaElement.duration,t);const s=Y("vds-end",{triggerEvent:t});this.dispatchEvent(s),this.state.loop?this._handleLoop():this.dispatchEvent(Y("vds-ended",{triggerEvent:t}))}_handleLoop(){st(this.controls)&&(this.mediaElement.controls=!1),this.dispatchEvent(Y("vds-loop-request"))}_handleError(t){const s=this.mediaElement.error;s&&this.dispatchEvent(Y("vds-error",{detail:{message:s.message,code:s.code,mediaError:s},triggerEvent:t}))}_getPaused(){return this.mediaElement?.paused??!0}_getVolume(){return this.mediaElement?.volume??1}_setVolume(t){this.mediaElement.volume=t}_getCurrentTime(){return this.mediaElement?.currentTime??0}_setCurrentTime(t){this.mediaElement.currentTime!==t&&(this.mediaElement.currentTime=t)}_getMuted(){return this.mediaElement?.muted??!1}_setMuted(t){this.mediaElement.muted=t}async play(){try{return this._throwIfNotReadyForPlayback(),await this._resetPlaybackIfEnded(),this.mediaElement?.play()}catch(t){const s=Y("vds-play-fail");throw s.autoplay=this._attemptingAutoplay,s.error=t,t}}async pause(){return this.mediaElement?.pause()}_getMediaType(){return qs.test(t=this.state.currentSrc)?"audio":Os.test(t)?"video":"unknown";var t}};hs([Cs()],Ls.prototype,"preload",2),Ot("vds-audio",class extends Ls{static get styles(){return[ds`:host{display:inline-block}:host([hidden]){display:none}`]}connectedCallback(){super.connectedCallback(),this.dispatchEvent(Y("vds-view-type-change",{detail:"audio"}))}});var Vs=ds`:host{display:table;contain:content;user-select:none;cursor:pointer;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host(:focus){outline:0}:host(:focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}:host(.focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}`,Ns=class extends ks{constructor(){super(),this.pressed=!1,this.disabled=!1,this._handleButtonClickCapture=H(this,"click",(t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),{capture:!0}),kt(this),["pointerup","keydown"].forEach((t=>{H(this,t,(t=>{this.disabled||Ut(t)&&!function(t){return Ut(t)&&("Enter"===t.key||" "===t.key)}(t)||this._handleButtonClick(t)}))}))}static get styles(){return[Vs]}static get parts(){return[]}connectedCallback(){super.connectedCallback(),Vt(this,"tabindex","0"),Vt(this,"role","button"),this._updateAriaPressedAttr()}updated(t){t.has("pressed")&&this._updateAriaPressedAttr()}_updateAriaPressedAttr(){Lt(this,"aria-pressed",this.pressed?"true":"false")}render(){return this._renderDefaultSlot()}_renderDefaultSlot(){return E`<slot></slot>`}_handleButtonClick(t){this.pressed=!this.pressed}};hs([Cs({type:Boolean})],Ns.prototype,"pressed",2),hs([Cs({type:Boolean,reflect:!0})],Ns.prototype,"disabled",2);var Rs=class{constructor(t){t?(this._target=t,this._createLogger(t),this._requests=Ct(t)):this._requests=new Et}startLoading(t){this._dispatchRequest("vds-start-loading",{triggerEvent:t})}play(t){this._dispatchRequest("vds-play-request",{triggerEvent:t})}pause(t){this._dispatchRequest("vds-pause-request",{triggerEvent:t})}mute(t){this._dispatchRequest("vds-mute-request",{triggerEvent:t})}unmute(t){this._dispatchRequest("vds-unmute-request",{triggerEvent:t})}enterFullscreen(t,s){this._dispatchRequest("vds-enter-fullscreen-request",{triggerEvent:s,detail:t})}exitFullscreen(t,s){this._dispatchRequest("vds-exit-fullscreen-request",{triggerEvent:s,detail:t})}seeking(t,s){this._dispatchRequest("vds-seeking-request",{detail:t,triggerEvent:s})}seek(t,s){this._dispatchRequest("vds-seek-request",{detail:t,triggerEvent:s})}changeVolume(t,s){this._dispatchRequest("vds-volume-change-request",{detail:t,triggerEvent:s})}resumeUserIdle(t){this._dispatchRequest("vds-resume-user-idle-request",{triggerEvent:t})}pauseUserIdle(t){this._dispatchRequest("vds-pause-user-idle-request",{triggerEvent:t})}showPoster(t){this._dispatchRequest("vds-show-poster-request",{triggerEvent:t})}hidePoster(t){this._dispatchRequest("vds-hide-poster-request",{triggerEvent:t})}setTarget(t){this._target!==t&&(this._target=t,t?(this._createLogger(t),this._requests.start()):this._requests.stop())}_dispatchRequest(t,s){this._requests.queue(t,(()=>{const i=Y(t,{...s,bubbles:!0,composed:!0});this._target?.dispatchEvent(i)}))}_createLogger(t){}};Ot("vds-play-button",class extends Ns{constructor(){super(),this._mediaRemote=new Rs(this),ss(this,"paused",(t=>{this.pressed=!t,Lt(this,"paused",t)}))}connectedCallback(){super.connectedCallback(),Vt(this,"aria-label","Play")}_handleButtonClick(t){this.disabled||(this.pressed?this._mediaRemote.pause(t):this._mediaRemote.play(t))}}),Ot("vds-mute-button",class extends Ns{constructor(){super(),this._mediaRemote=new Rs(this),this._volume=1,this._muted=!1,ss(this,"volume",(t=>{this._volume=t,this._handleMutedChange()})),ss(this,"muted",(t=>{this._muted=t,this._handleMutedChange()}))}connectedCallback(){super.connectedCallback(),Vt(this,"aria-label","Mute")}_handleMutedChange(){const t=this._muted||0===this._volume;this.pressed=t,Lt(this,"muted",t)}_handleButtonClick(t){this.disabled||(this.pressed?this._mediaRemote.unmute(t):this._mediaRemote.mute(t))}});var Us=Z((function(){const t=Tt(!1),s=Tt(!1);return{value:Tt(50),pointerValue:Tt(0),min:Tt(0),max:Tt(100),dragging:t,pointing:s,interactive:Pt([t,s],(([t,s])=>t||s))}})),js=ds`*{box-sizing:border-box;touch-action:none}:host{display:block;contain:layout;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host(:focus){outline:0}:host(:focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}:host(.focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}`,Is=(t=>(t[t.Left=-1]="Left",t[t.ArrowLeft=-1]="ArrowLeft",t[t.Up=-1]="Up",t[t.ArrowUp=-1]="ArrowUp",t[t.Right=1]="Right",t[t.ArrowRight=1]="ArrowRight",t[t.Down=1]="Down",t[t.ArrowDown=1]="ArrowDown",t))(Is||{}),Bs=class extends ks{constructor(){super(),this._sliderStoreProvider=Us.provide(this),this.disabled=!1,this.value=50,this._step=1,this._keyboardStep=1,this.shiftKeyMultiplier=5,this.customValueText=!1,this._mediaRemote=new Rs(this),this._disconnectDisposal=new B,this._handlePointerEnter=H(this,"pointerenter",(()=>{this.disabled||(this.setAttribute("pointing",""),this.store.pointing.set(!0))})),this._handlePointerMove=H(this,"pointermove",(t=>{if(this.disabled||this.isDragging)return;const s=this._getValueBasedOnThumbPosition(t);this.store.pointerValue.set(s),this._dispatchPointerValueChange(t)})),this._handlePointerLeave=H(this,"pointerleave",(()=>{this.disabled||(this.removeAttribute("pointing"),this.store.pointing.set(!1))})),this._handlePointerDown=H(this,"pointerdown",(t=>{this.disabled||(this._startDragging(t),this._onDrag(t))})),this._handleKeydown=H(this,"keydown",(t=>{if(this.disabled)return;const{key:s,shiftKey:i}=t;if(!Object.keys(Is).includes(s))return;const e=i?this.keyboardStep*this.shiftKeyMultiplier:this.keyboardStep,h=Number(Is[s]);this.value=this._getClampedValue(this.step*((this.value+e*h)/this.step)),this._dispatchValueChange(t)})),this._handleFillValueChange=H(this,"vds-slider-value-change",this._updateFillCSSProps.bind(this)),this._handlePointerValueChange=H(this,"vds-slider-pointer-value-change",this._updatePointerCSSProps.bind(this)),this._onDrag=Wt((t=>{if(this.disabled||!this.isDragging)return;const s=this._getValueBasedOnThumbPosition(t);this.store.pointerValue.set(s),this._dispatchPointerValueChange(t)})),this._handleDocumentPointerUp=H(this,"pointerup",(t=>{!this.disabled&&this.isDragging&&this._stopDragging(t)}),{target:document}),this._handleDocumentTouchMove=H(this,"touchmove",(t=>{!this.disabled&&this.isDragging&&t.preventDefault()}),{target:document,passive:!1}),this._handleDocumentPointerMove=H(this,"pointermove",(t=>{!this.disabled&&this.isDragging&&this._onDrag(t)}),{target:document}),this._lastDispatchedValue=this.value,this._dispatchValueChange=Wt((t=>{this.value!==this._lastDispatchedValue&&(this.dispatchEvent(Y("vds-slider-value-change",{detail:this.value,triggerEvent:t})),this._lastDispatchedValue=this.value)})),this._lastDispatchedPointerValue=this.pointerValue,this._dispatchPointerValueChange=Wt((t=>{this.pointerValue!==this._lastDispatchedPointerValue&&(["vds-slider-pointer-value-change",this.isDragging&&"vds-slider-drag-value-change"].forEach((s=>{s&&this.dispatchEvent(Y(s,{detail:this.pointerValue,triggerEvent:t}))})),this._lastDispatchedPointerValue=this.pointerValue)})),kt(this)}static get styles(){return[js]}static get parts(){return[]}get store(){return this._sliderStoreProvider.value}get min(){return Ft(this.store.min)}set min(t){this.store.min.set(t)}get max(){return Ft(this.store.max)}set max(t){this.store.max.set(t)}get step(){return this._step}set step(t){this._step=t}get keyboardStep(){return this._keyboardStep}set keyboardStep(t){this._keyboardStep=t}get isDragging(){return Ft(this.store.dragging)}get fillRate(){const t=this.max-this.min;return t>0?(this.value-this.min)/t:0}get fillPercent(){return 100*this.fillRate}get pointerValue(){return Ft(this.store.pointerValue)}get pointerRate(){const t=this.max-this.min;return t>0?(this.pointerValue-this.min)/t:0}get pointerPercent(){return 100*this.pointerRate}connectedCallback(){super.connectedCallback(),this._setupAriaAttrs(),this._updateFillCSSProps(),this._updatePointerCSSProps(),this._disconnectDisposal.add(this.store.interactive.subscribe((t=>{Lt(this,"interactive",t)})))}willUpdate(t){(t.has("value")||t.has("min")||t.has("max"))&&(this.value=this._getClampedValue(this.value),this.store.value.set(this.value),this._updateFillCSSProps(),this._dispatchValueChange()),t.has("disabled")&&this.disabled&&(this.store.dragging.set(!1),this.store.pointing.set(!1),this.removeAttribute("dragging"),this.removeAttribute("pointing"),this.removeAttribute("interactive"),Lt(this,"aria-disabled",this.disabled)),this.customValueText||this._updateAriaValueAttrs(),super.willUpdate(t)}disconnectedCallback(){this._onDrag.cancel(),this._disconnectDisposal.empty(),super.disconnectedCallback()}_updateFillCSSProps(){Nt(this,"fill-value",`${this.value}`),Nt(this,"fill-rate",`${this.fillRate}`),Nt(this,"fill-percent",`${this.fillPercent}%`)}_updatePointerCSSProps(){Nt(this,"pointer-value",`${this.pointerValue}`),Nt(this,"pointer-rate",`${this.pointerRate}`),Nt(this,"pointer-percent",`${this.pointerPercent}%`)}render(){return this._renderSlider()}_renderSlider(){return E`${this._renderDefaultSlot()}`}_renderDefaultSlot(){return E`<slot></slot>`}_setupAriaAttrs(){Vt(this,"role","slider"),Vt(this,"tabindex","0"),Vt(this,"aria-orientation","horizontal"),Vt(this,"autocomplete","off")}_updateAriaValueAttrs(){this.setAttribute("aria-valuemin",this._getValueMin()),this.setAttribute("aria-valuenow",this._getValueNow()),this.setAttribute("aria-valuemax",this._getValueMax()),this.setAttribute("aria-valuetext",this._getValueText())}_getValueMin(){return String(this.min)}_getValueNow(){return String(this.value)}_getValueMax(){return String(this.max)}_getValueText(){return`${_t(this.value/this.max*100,2)}%`}_startDragging(t){if(this.isDragging)return;this.store.dragging.set(!0),this.setAttribute("dragging","");const s=this._getValueBasedOnThumbPosition(t);this.store.pointerValue.set(s),this._dispatchPointerValueChange(t),this.dispatchEvent(Y("vds-slider-drag-start",{triggerEvent:t,detail:this.value})),this._mediaRemote.pauseUserIdle(t)}_stopDragging(t){if(!this.isDragging)return;this.store.dragging.set(!1),this._dispatchValueChange.cancel(),this.removeAttribute("dragging");const s=this._getValueBasedOnThumbPosition(t);this.value=s,this.store.pointerValue.set(s),this._dispatchValueChange(t),this._dispatchPointerValueChange(t),this.dispatchEvent(Y("vds-slider-drag-end",{triggerEvent:t,detail:this.value})),this._mediaRemote.resumeUserIdle(t)}_getClampedValue(t){return bt(this.min,_t(t,wt(this.step)),this.max)}_getValueFromRate(t){const s=bt(0,t,1),i=Math.round((this.max-this.min)*s/this.step);return this.min+this.step*i}_getValueBasedOnThumbPosition(t){const s=t.clientX,{left:i,width:e}=this.getBoundingClientRect();return this._getValueFromRate((s-i)/e)}};hs([Cs({type:Number})],Bs.prototype,"min",1),hs([Cs({type:Number})],Bs.prototype,"max",1),hs([Cs({reflect:!0,type:Boolean})],Bs.prototype,"disabled",2),hs([Cs({type:Number})],Bs.prototype,"value",2),hs([Cs({type:Number})],Bs.prototype,"step",1),hs([Cs({attribute:"keyboard-step",type:Number})],Bs.prototype,"keyboardStep",1),hs([Cs({attribute:"shift-key-multiplier",type:Number})],Bs.prototype,"shiftKeyMultiplier",2),hs([Cs({type:Boolean,attribute:"custom-value-text"})],Bs.prototype,"customValueText",2);var Hs=ds``,Ws=class extends Bs{constructor(){super(),this._step=.1,this.value=0,this.valueText="{currentTime} out of {duration}",this.pauseWhileDragging=!1,this.seekingRequestThrottle=100,this.__mediaDuration=0,this.__mediaPaused=!0,this._handleSliderDragStart=H(this,"vds-slider-drag-start",(t=>{this._togglePlaybackWhileDragging(t)})),this._handleSliderValueChange=H(this,"vds-slider-value-change",(t=>{Ut(t.originEvent)&&(this._dispatchSeekingRequest.cancel(),this._mediaRemote.seek(this.value,t))})),this._handleSliderDragValueChange=H(this,"vds-slider-drag-value-change",(t=>{this._dispatchSeekingRequest(t)})),this._handleSliderDragEnd=H(this,"vds-slider-drag-end",(t=>{this._dispatchSeekingRequest.cancel(),this._mediaRemote.seek(this.value,t),this._togglePlaybackWhileDragging(t)})),this._dispatchSeekingRequest=j((t=>{this._mediaRemote.seeking(this.value,t)}),this.seekingRequestThrottle),this._wasPlayingBeforeDragStart=!1,ss(this,"currentTime",(t=>{this.value=t})),ss(this,"duration",(t=>{this.__mediaDuration=t,this.requestUpdate("max")})),ss(this,"paused",(t=>{this.__mediaPaused=t}))}static get styles(){return[super.styles,Hs]}connectedCallback(){super.connectedCallback(),Vt(this,"aria-label","Media time")}get min(){return 0}set min(t){}get max(){return this.__mediaDuration}set max(t){}update(t){t.has("disabled")&&this.disabled&&this._dispatchSeekingRequest.cancel(),super.update(t)}disconnectedCallback(){this._dispatchSeekingRequest.cancel(),super.disconnectedCallback()}_getValueMin(){return"0%"}_getValueNow(){return`${Math.round(this.fillPercent)}%`}_getValueText(){return this.valueText.replace("{currentTime}",Ht(this.value)).replace("{duration}",Ht(this.__mediaDuration))}_getValueMax(){return"100%"}_togglePlaybackWhileDragging(t){this.pauseWhileDragging&&(this.isDragging&&!this.__mediaPaused?(this._wasPlayingBeforeDragStart=!0,this._mediaRemote.pause(t)):this._wasPlayingBeforeDragStart&&!this.isDragging&&this.__mediaPaused&&(this._wasPlayingBeforeDragStart=!1,this._mediaRemote.play(t)))}};hs([Cs({attribute:!1,state:!0})],Ws.prototype,"value",2),hs([Cs({attribute:!1})],Ws.prototype,"min",1),hs([Cs({attribute:!1})],Ws.prototype,"max",1),hs([Cs({attribute:"value-text"})],Ws.prototype,"valueText",2),hs([Cs({attribute:"pause-while-dragging",type:Boolean})],Ws.prototype,"pauseWhileDragging",2),hs([Cs({attribute:"seeking-request-throttle",type:Number})],Ws.prototype,"seekingRequestThrottle",2),hs([Ss()],Ws.prototype,"__mediaDuration",2),hs([Ss()],Ws.prototype,"__mediaPaused",2),Ot("vds-time-slider",Ws);var Ys=class extends Bs{constructor(){super(),this.value=100,this._handleSliderValueChange=H(this,"vds-slider-value-change",this._changeVolume.bind(this)),this._handleSliderDragValueChange=H(this,"vds-slider-drag-value-change",this._changeVolume.bind(this)),ss(this,"volume",(t=>{this.value=100*t}))}connectedCallback(){super.connectedCallback(),Vt(this,"aria-label","Media volume")}get min(){return 0}set min(t){}get max(){return 100}set max(t){}_changeVolume(t){const s=_t(t.detail/100,3);this._mediaRemote.changeVolume(s,t)}};hs([Cs({attribute:!1})],Ys.prototype,"min",1),hs([Cs({attribute:!1})],Ys.prototype,"max",1),hs([Cs({attribute:!1,state:!0})],Ys.prototype,"value",2),Ot("vds-volume-slider",Ys);var Ks=class extends ks{constructor(){super(...arguments),this._disposal=new B,this._sliderStoreConsumer=Us.consume(this),this.__value=0,this.type="current",this.showHours=!1,this.padHours=!1,this.decimalPlaces=2}static get styles(){return[ds`:host{display:inline-block;contain:content}:host([hidden]){display:none}`]}get _sliderStore(){return this._sliderStoreConsumer.value}connectedCallback(){super.connectedCallback(),this._handleTypeChange()}update(t){(t.has("type")||t.has("format"))&&this._handleTypeChange(),super.update(t)}disconnectedCallback(){this._disposal.empty(),super.disconnectedCallback()}render(){return E`${this._getValueText()}`}_handleTypeChange(){this._disposal.empty();const t=this._sliderStore["current"===this.type?"value":"pointerValue"],s=("percent"===this.format?this._createPercentStore(t):t).subscribe((t=>{this.__value=t}));this._disposal.add(s)}_createPercentStore(t){return Pt([t,this._sliderStore.min,this._sliderStore.max],(([t,s,i])=>t/(i-s)*100))}_getValueText(){switch(this.format){case"percent":return this._getPercentFormat();case"time":return this._getTimeFormat();default:return`${this.__value}`}}_getPercentFormat(){return`${_t(this.__value,this.decimalPlaces)}%`}_getTimeFormat(){return Bt(this.__value,this.padHours,this.showHours)}};hs([Ss()],Ks.prototype,"__value",2),hs([Cs()],Ks.prototype,"type",2),hs([Cs()],Ks.prototype,"format",2),hs([Cs({attribute:"show-hours",type:Boolean})],Ks.prototype,"showHours",2),hs([Cs({attribute:"pad-hours",type:Boolean})],Ks.prototype,"padHours",2),hs([Cs({attribute:"decimal-places",type:Number})],Ks.prototype,"decimalPlaces",2),Ot("vds-slider-value-text",Ks);var Xs=class extends ks{constructor(){super(...arguments),this._disposal=new B,this._mediaStoreConsumer=ts.consume(this),this.__seconds=0,this.type="current",this.showHours=!1,this.padHours=!1,this.remainder=!1}static get styles(){return[ds`:host{display:inline-block;contain:content}:host([hidden]){display:none}`]}get _mediaStore(){return this._mediaStoreConsumer.value}connectedCallback(){super.connectedCallback(),this._handleTypeChange()}update(t){(t.has("type")||t.has("remainder"))&&this._handleTypeChange(),super.update(t)}disconnectedCallback(){this._disposal.empty(),super.disconnectedCallback()}render(){return E`${this._getFormattedTime()}`}_handleTypeChange(){this._disposal.empty();const t=this._getTypeStore(),s=(this.remainder?this._createRemainderStore(t):t).subscribe((t=>{this.__seconds=t}));this._disposal.add(s)}_getTypeStore(){switch(this.type){case"buffered":return this._mediaStore.bufferedAmount;case"seekable":return this._mediaStore.seekableAmount;case"duration":return this._mediaStore.duration;default:return this._mediaStore.currentTime}}_createRemainderStore(t){return Pt([t,this._mediaStore.duration],(([t,s])=>Math.max(0,s-t)))}_getFormattedTime(){return Bt(this.__seconds,this.padHours,this.showHours)}};hs([Ss()],Xs.prototype,"__seconds",2),hs([Cs()],Xs.prototype,"type",2),hs([Cs({attribute:"show-hours",type:Boolean})],Xs.prototype,"showHours",2),hs([Cs({attribute:"pad-hours",type:Boolean})],Xs.prototype,"padHours",2),hs([Cs({type:Boolean})],Xs.prototype,"remainder",2),Ot("vds-time",Xs);const Js=class{constructor(i){t(this,i),this.stzhPlay=s(this,"stzhPlay",7),this.stzhPlaying=s(this,"stzhPlaying",7),this.stzhPause=s(this,"stzhPause",7),this.stzhReplay=s(this,"stzhReplay",7),this.stzhEnd=s(this,"stzhEnd",7),this.stzhEnded=s(this,"stzhEnded",7),this.stzhError=s(this,"stzhError",7),this.localization=void 0,this.src="",this.preload="none",this.transcript="",this.transcriptShown=!1}async play(){this.vsdAudioElement.play()}async pause(){this.vsdAudioElement.pause()}async componentWillLoad(){this.localization||(this.localization=await r(this.element,"audio"))}render(){const t=!!this.transcript||n(this.element,"transcript");return i(e,null,i("vds-media",{class:{"stzh-audio":!0}},i("vds-audio",{class:"stzh-audio__audio",ref:t=>this.vsdAudioElement=t,"onVds-play":()=>{this.stzhPlay.emit({component:"stzh-audio"})},"onVds-playing":()=>{this.stzhPlaying.emit({component:"stzh-audio"})},"onVds-end":()=>{this.stzhEnd.emit({component:"stzh-audio"})},"onVds-ended":()=>{this.stzhEnded.emit({component:"stzh-audio"})},"onVds-replay":()=>{this.stzhReplay.emit({component:"stzh-audio"})},"onVds-error":t=>{this.stzhError.emit({component:"stzh-audio",originalEvent:t})}},i("audio",{preload:this.preload,src:this.src},i("slot",null))),i("div",{class:"stzh-audio__controls"},i("div",{class:"stzh-audio__loader-overlay"},i("stzh-loader",{class:"stzh-audio__loader",label:this.localization.loading,"hide-label":!0})),i("div",{class:"stzh-audio__controls-top"},i("vds-time-slider",{class:"stzh-audio__slider is-time"},i("div",{class:"stzh-audio__slider-track"}),i("div",{class:"stzh-audio__slider-track is-fill"}),i("div",{class:"stzh-audio__slider-thumb-container"},i("div",{class:"stzh-audio__slider-thumb"})),i("div",{class:"stzh-audio__media-preview-container"},i("vds-slider-value-text",{class:"stzh-audio__slider-text",type:"pointer",format:"time"})))),i("div",{class:"stzh-audio__controls-bottom"},i("stzh-tooltip",null,i("vds-play-button",{class:"stzh-audio__button is-play"},i("stzh-icon",{class:"stzh-audio__played",name:"play-filled"}),i("stzh-icon",{class:"stzh-audio__paused",name:"pause-filled"})),i("span",{slot:"content"},i("span",{class:"stzh-audio__played"},this.localization.play),i("span",{class:"stzh-audio__paused"},this.localization.pause))),i("div",{class:"stzh-audio__time"},i("vds-time",{type:"current"}),i("span",{class:"stzh-audio__time-separator"},"/"),i("vds-time",{type:"duration"})),i("stzh-tooltip",null,i("vds-mute-button",{class:"stzh-audio__button is-mute"},i("stzh-icon",{class:"stzh-audio__muted",name:"volume-medium"}),i("stzh-icon",{class:"stzh-audio__unmuted",name:"silent-mode"})),i("span",{slot:"content"},i("span",{class:"stzh-audio__muted"},this.localization.mute),i("span",{class:"stzh-audio__unmuted"},this.localization.unmute))),i("vds-volume-slider",{class:"stzh-audio__slider is-volume"},i("div",{class:"stzh-audio__slider-track"}),i("div",{class:"stzh-audio__slider-track is-fill"}),i("div",{class:"stzh-audio__slider-thumb-container"},i("div",{class:"stzh-audio__slider-thumb"})),i("div",{class:"stzh-audio__media-preview-container"},i("vds-slider-value-text",{class:"stzh-audio__slider-text",type:"pointer",format:"percent"}))),t&&i("stzh-tooltip",{content:this.transcriptShown?this.localization.hideTranscript:this.localization.showTranscript},i("button",{class:{"stzh-audio__button is-transcript":!0,"is-active":this.transcriptShown},onClick:()=>this.transcriptShown=!this.transcriptShown},i("stzh-icon",{name:"transcript"}))),i("stzh-tooltip",{content:this.localization.download},i("a",{class:"stzh-audio__button is-download",href:this.src,download:""},i("stzh-icon",{name:"download"}))))),i("div",{class:"stzh-audio__transcript",hidden:!this.transcriptShown},i("stzh-text",null,this.transcript?this.transcript:i("slot",{name:"transcript"})))))}get element(){return h(this)}};Js.style=".sc-stzh-audio-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-audio-h{display:none}.sc-stzh-audio-h *.sc-stzh-audio,.sc-stzh-audio-h *.sc-stzh-audio::before,.sc-stzh-audio-h *.sc-stzh-audio::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-audio.sc-stzh-audio{display:block;contain:none}.stzh-audio__audio.sc-stzh-audio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-audio__controls.sc-stzh-audio{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.stzh-audio__controls-top.sc-stzh-audio{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--stzh-space-small)}.stzh-audio__controls-bottom.sc-stzh-audio{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-audio__controls.sc-stzh-audio,.stzh-audio__transcript.sc-stzh-audio{border:0.0625rem solid var(--stzh-base-border-color);padding:var(--stzh-space-medium) var(--stzh-space-xlarge)}.stzh-audio__controls.sc-stzh-audio{padding-bottom:var(--stzh-space-xsmall)}.stzh-audio__button.sc-stzh-audio{width:2.5rem;height:2.5rem;display:grid;place-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:var(--stzh-button-border-radius);-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);-webkit-transition-property:color, background-color;transition-property:color, background-color;color:var(--stzh-color-grey55)}.stzh-audio__button.is-play.sc-stzh-audio,.stzh-audio__button.is-mute.sc-stzh-audio,.stzh-audio__button.is-transcript.sc-stzh-audio{margin-right:var(--stzh-space-xsmall)}.stzh-audio__button.is-active.sc-stzh-audio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-audio__button.sc-stzh-audio:hover{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-audio__transcript.sc-stzh-audio{border-top:none}.stzh-audio__loader-overlay.sc-stzh-audio{display:grid;place-items:center;position:absolute;z-index:3;top:0;left:0;width:100%;height:100%;background-color:var(--stzh-color-white);opacity:0;visibility:hidden}.stzh-audio__time.sc-stzh-audio{font-size:var(--stzh-font-curve-p2-default-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-p2-default-text-line-height, var(--stzh-font-micro-text-line-height));display:-ms-inline-flexbox;display:inline-flex;margin-right:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-audio__time.sc-stzh-audio{font-size:var(--stzh-font-curve-p2-medium-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p2-medium-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p2-medium-text-letter-spacing)}}@media screen and (max-width: 599px){.stzh-audio__time.sc-stzh-audio{margin-right:auto}}.stzh-audio__time-separator.sc-stzh-audio{margin:0 var(--stzh-space-xxsmall)}.stzh-audio__slider.sc-stzh-audio{--height:1.1875rem;--thumb-width:0.8125rem;--track-height:0.3125rem;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:var(--height);border-radius:var(--stzh-button-border-radius)}.stzh-audio__slider.is-time.sc-stzh-audio{-ms-flex-positive:1;flex-grow:1}.stzh-audio__slider.is-volume.sc-stzh-audio{width:20%;min-width:5rem;max-width:6.875rem;display:none}@media screen and (min-width: 600px){.stzh-audio__slider.is-volume.sc-stzh-audio{display:-ms-flexbox;display:flex;margin-right:auto}}.stzh-audio__slider-track.sc-stzh-audio{width:100%;height:var(--track-height);position:absolute;top:50%;left:0;z-index:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);border-radius:0.25rem;background-color:var(--stzh-color-grey25)}.stzh-audio__slider-track.is-fill.sc-stzh-audio{background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transform-origin:left center;transform-origin:left center;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:calc(var(--vds-fill-rate) * 100%);z-index:1}.stzh-audio__slider-thumb-container.sc-stzh-audio{position:absolute;top:0;left:var(--vds-fill-percent);width:var(--thumb-width);height:100%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:2}.stzh-audio__slider[dragging].sc-stzh-audio .stzh-audio__slider-thumb-container.sc-stzh-audio{left:var(--vds-pointer-percent)}.stzh-audio__slider-thumb.sc-stzh-audio{position:absolute;top:50%;left:0;width:var(--thumb-width);height:var(--thumb-width);border-radius:50%;background-color:var(--stzh-color-white);-webkit-box-shadow:0 0 0 0.0625rem rgba(0, 0, 0, 0.25);box-shadow:0 0 0 0.0625rem rgba(0, 0, 0, 0.25);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.stzh-audio__media-preview-container.sc-stzh-audio{--width:2.625rem;--width-half:calc(var(--width) / 2);--top:-1.5rem;--left-clamp:max(var(--width-half), var(--vds-pointer-percent));--right-clamp:calc(100% - var(--width-half));--left:min(var(--left-clamp), var(--right-clamp));display:grid;place-items:center;position:absolute;width:var(--width);top:var(--top);left:var(--left);width:var(--width);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:var(--stzh-z-index-popover);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-tooltip-border-radius);background-color:var(--stzh-color-white)}@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-audio__media-preview-container.sc-stzh-audio{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}.stzh-audio__slider[pointing].sc-stzh-audio .stzh-audio__media-preview-container.sc-stzh-audio{opacity:1}.stzh-audio__slider-text.sc-stzh-audio{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-audio[hide-ui].sc-stzh-audio .stzh-audio__controls.sc-stzh-audio{opacity:0;visibility:hidden}.stzh-audio[autoplay-error].sc-stzh-audio .stzh-audio__controls.sc-stzh-audio{opacity:1}.stzh-audio.sc-stzh-audio:not([can-play]) .stzh-audio__loader-overlay.sc-stzh-audio,.stzh-audio[waiting].sc-stzh-audio .stzh-audio__loader-overlay.sc-stzh-audio{opacity:0.8;visibility:visible}.stzh-audio[paused].sc-stzh-audio .stzh-audio__paused.sc-stzh-audio{display:none}.stzh-audio.sc-stzh-audio:not([paused]) .stzh-audio__played.sc-stzh-audio{display:none}.stzh-audio[muted].sc-stzh-audio .stzh-audio__muted.sc-stzh-audio{display:none}.stzh-audio.sc-stzh-audio:not([muted]) .stzh-audio__unmuted.sc-stzh-audio{display:none}";export{Js as stzh_audio}
34
+ */}function Ss(t){return Cs({...t,state:!0})}var Ms=Symbol("@vidstack/media-provider-discovery"),$s=class extends ks{constructor(){super(),this._disconnectDisposal=new B,this._logger=void 0,this.loading="visible",this._attemptingAutoplay=!1,this.controllerQueue=new Et,this._store=Gt(),this._state=Dt(this._store),this.connectedQueue=Ct(this),this.mediaQueue=new Et,this.screenOrientationController=new St(this),this.fullscreenController=new zt(this,this.screenOrientationController),ot(this,"vds-media-provider-connect",{register:Ms});const t=function(...t){return new class{constructor(t,s={},i=(()=>!0),e){this._host=t,this._callback=i,this._logger=e,this._skipInitial=!1,this._unobservedUpdate=!1;const{target:h,skipInitial:n,...r}=s;this._target=h??void 0,this._skipInitial=n??this._skipInitial,window.IntersectionObserver&&(this._observer=new IntersectionObserver((t=>{const s=this._unobservedUpdate;this._unobservedUpdate=!1,this._skipInitial&&s||(this.handleChanges(t),this._host.requestUpdate())}),r),t.addController(this))}handleChanges(t){this.value=this._callback(t,this._observer)}hostConnected(){this._target&&this.observe(this._target)}hostDisconnected(){this._disconnect()}async hostUpdated(){const t=this._observer.takeRecords();t.length&&this.handleChanges(t)}observe(t){return this._observer.observe(t),this._unobservedUpdate=!0,()=>{this._observer.unobserve(t)}}_disconnect(){this._observer.disconnect()}}(...t)}(this,{target:this,threshold:0},(s=>{/(visible|lazy)/.test(this.loading)?s[0]?.isIntersecting&&(this.startLoadingMedia(),t.hostDisconnected()):t.hostDisconnected()}))}connectedCallback(){super.connectedCallback(),this._logMediaEvents(),window.requestAnimationFrame((()=>{tt(this.canLoadPoster)&&(this.canLoadPoster=!0)}))}firstUpdated(t){super.firstUpdated(t),this.dispatchEvent(Y("vds-fullscreen-support-change",{detail:this.canFullscreen})),this.canLoad||"eager"===this.loading?window?.requestAnimationFrame((()=>{this.startLoadingMedia()})):"idle"===this.loading&&Rt((()=>{this.startLoadingMedia()}))}render(){return E`<slot @slotchange="${this.handleDefaultSlotChange}"></slot>`}disconnectedCallback(){this._updateMediaStoreOnDisconnect(this._store),this.mediaQueue.destroy(),this._disconnectDisposal.empty(),super.disconnectedCallback(),qt((()=>{qt((()=>{this.isConnected||this.destroy()}))}))}_updateMediaStoreOnDisconnect(t){t.paused.set(!0),t.playing.set(!1),t.seeking.set(!1),t.waiting.set(!1),t.fullscreen.set(!1)}destroy(){this.isConnected&&this.disconnectedCallback(),this.dispatchEvent(Y("vds-destroy"))}_logMediaEvents(){}get volume(){return this._getVolume()}set volume(t){this.mediaQueue.queue("volume",(()=>{const s=this.volume,i=bt(0,t,1);s!==i&&(this._setVolume(i),this.requestUpdate("volume",s))}))}get paused(){return this._getPaused()}set paused(t){this.mediaQueue.queue("paused",(()=>{if(this.paused!==t)try{t?this.pause():this.play(),this.requestUpdate("paused",!t)}catch(Cs){this._logger?.error("paused-change-fail",Cs)}}))}get currentTime(){return this._getCurrentTime()}set currentTime(t){this.mediaQueue.queue("current-time",(()=>{const s=this.currentTime;s!==t&&(this._setCurrentTime(t),this.requestUpdate("currentTime",s))}))}get muted(){return this._getMuted()}set muted(t){this.mediaQueue.queue("muted",(()=>{const s=this.muted;s!==t&&(this._setMuted(t),this.requestUpdate("muted",s))}))}get poster(){return this.state.poster}set poster(t){const s=this.poster;s!==t&&(this.dispatchEvent(Y("vds-poster-change",{detail:t})),this.requestUpdate("poster",s))}get loop(){return this.state.loop}set loop(t){const s=this.loop;s!==t&&(this.dispatchEvent(Y("vds-loop-change",{detail:t})),this.requestUpdate("loop",s))}get controls(){return this.state.controls}set controls(t){const s=this.controls;s!==t&&(this.dispatchEvent(Y("vds-controls-change",{detail:t})),this.requestUpdate("controls",s))}get canLoad(){return this.state.canLoad}startLoadingMedia(){this.state.canPlay||this.dispatchEvent(Y("vds-can-load"))}_throwIfNotReadyForPlayback(){if(!this.state.canPlay)throw Error("Media is not ready - wait for `vds-can-play` event.")}async _resetPlaybackIfEnded(){if(this.state.ended&&0!==this.state.currentTime)return this._setCurrentTime(0)}_throwIfNotVideoView(){if("video"!==this.state.viewType)throw Error("Player is currently not in a video view.")}async _handleMediaReady({event:t,duration:s}){this.state.canPlay||(this.dispatchEvent(Y("vds-can-play",{triggerEvent:t,detail:{duration:s}})),this.mediaQueue.start(),await this._attemptAutoplay())}_handleCurrentSrcChange(t,s){this.state.currentSrc!==t&&(this.mediaQueue.stop(),this.dispatchEvent(Y("vds-current-src-change",{detail:t,triggerEvent:s})))}get autoplay(){return this.state.autoplay}set autoplay(t){this.autoplay!==t&&(this.dispatchEvent(Y("vds-autoplay-change",{detail:t})),this.requestUpdate("autoplay",!t)),this._attemptAutoplay()}get _canAttemptAutoplay(){return this.state.canPlay&&this.state.autoplay&&!this.state.started}async _attemptAutoplay(){if(this._canAttemptAutoplay){this._attemptingAutoplay=!0;try{await this.play(),this.dispatchEvent(Y("vds-autoplay",{detail:{muted:this.muted}}))}catch(t){this.dispatchEvent(Y("vds-autoplay-fail",{detail:{muted:this.muted,error:t}})),this.requestUpdate()}this._attemptingAutoplay=!1}}get controller(){return this._controller}get logLevel(){return this._controller?.logLevel??"silent"}set logLevel(t){}get idleDelay(){return this._controller?.idleDelay??0}set idleDelay(t){this.controllerQueue.queue("idle-delay",(()=>{this._controller.idleDelay=t}))}attachMediaController(t,s){this._controller=t,this._store=t._store,this._state=t.state,this.controllerQueue.start(),s((()=>{this.controllerQueue.destroy(),this._store=Gt(),this._state=Dt(this._store),this._controller&&(At(this._controller._store,this._store),this._updateMediaStoreOnDisconnect(this._controller._store)),this._controller=void 0}))}dispatchEvent(t){return!this._controller&&t.type.startsWith("vds-")&&"vds-destroy"!==t.type?(this.controllerQueue.queue(t.type,(()=>{super.dispatchEvent(t)})),!1):super.dispatchEvent(t)}store(){return this._store}get state(){return this._state}get canFullscreen(){return this.fullscreenController.isSupported}get fullscreen(){return this.fullscreenController.isFullscreen}get fullscreenOrientation(){return this.fullscreenController.screenOrientationLock}set fullscreenOrientation(t){const s=this.fullscreenController.screenOrientationLock;s!==t&&(this.fullscreenController.screenOrientationLock=t,this.requestUpdate("fullscreen-orientation",s))}enterFullscreen(){return this.fullscreenController.enterFullscreen()}exitFullscreen(){return this.fullscreenController.exitFullscreen()}};hs([Cs({type:Number})],$s.prototype,"volume",1),hs([Cs({type:Boolean})],$s.prototype,"paused",1),hs([Cs({type:Number})],$s.prototype,"currentTime",1),hs([Cs({type:Boolean})],$s.prototype,"muted",1),hs([Cs()],$s.prototype,"poster",1),hs([Cs({type:Boolean})],$s.prototype,"loop",1),hs([Cs({type:Boolean})],$s.prototype,"controls",1),hs([Ss()],$s.prototype,"canLoadPoster",2),hs([Cs({attribute:"loading"})],$s.prototype,"loading",2),hs([Cs({type:Boolean})],$s.prototype,"autoplay",1),hs([Cs({attribute:"log-level"})],$s.prototype,"logLevel",1),hs([Cs({attribute:"idle-delay",type:Number})],$s.prototype,"idleDelay",1),hs([Cs({attribute:"fullscreen-orientation"})],$s.prototype,"fullscreenOrientation",1);var Ts=class{constructor(t,s,i){this._host=t,this._store=s,this._mediaProps=i,this._disposal=new B,this._host.addController({hostConnected:this._hostConnected.bind(this),hostDisconnected:this._hostDisconnected.bind(this)})}_hostConnected(){Rt((()=>{for(const t of this._mediaProps){const s=this._store[t];if(s){const i=this._getMediaAttrName(t),e=s.subscribe((s=>{window?.requestAnimationFrame((()=>{this._handleValueChange(t,i,s)}))}));this._disposal.add(e)}}}))}_hostDisconnected(){for(const t of this._mediaProps)this._handleDisconnect(t,this._getMediaAttrName(t));this._disposal.empty()}_getMediaAttrName(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},Ps=class extends Ts{_handleValueChange(t,s,i){window.requestAnimationFrame((()=>{Lt(this._host,s,et(i)||it(i)?String(i):!!i)}))}_handleDisconnect(t,s){this._host.removeAttribute(s)}},Fs=class extends Ts{_handleValueChange(t,s,i){window.requestAnimationFrame((()=>{this._host.style.setProperty(this._getCssPropName(s),et(i)||it(i)?String(i):null)}))}_getCssPropName(t){return`--vds-${t}`}_handleDisconnect(t,s){this._host.style.setProperty(this._getCssPropName(s),null)}},As=Symbol("@vidstack/media-discovery"),Ds=class extends ks{constructor(){super(),this.controller=new class{constructor(t){var s,i,e,h,n,r,o;this._host=t,this._disconnectDisposal=new B,this.providerQueue=new Et,this.providerDisposal=new B,this._logController=void 0,this._logger=void 0,this._providerContext=Yt.provide(this._host),this._mediaStoreProvider=ts.provide(this._host),this.state=Dt(this._store),this._userIdleController=new class{constructor(t,s){this._host=t,this._mediaStore=s,this._idle=!1,this._mediaPaused=!1,this._idlingPaused=!1,this._disposal=new B,this.delay=2e3,t.addController(this)}get paused(){return this._idlingPaused||this._mediaPaused}set paused(t){this._idlingPaused=t,this._handleIdleChange()}hostConnected(){this._disposal.add(this._mediaStore.paused.subscribe((t=>{this._mediaPaused=t,this._handleIdleChange()}))),["pointerdown","pointermove","focus","keydown"].forEach((t=>{const s=I(this._host,t,this._handleIdleChange.bind(this));this._disposal.add(s)}))}hostDisconnected(){this._disposal.empty(),this._stopIdleTimer()}_handleIdleChange(){this.paused?this._stopIdleTimer():this._startIdleTimer()}_startIdleTimer(){this._stopIdleTimer(),this._idleTimeout=window.setTimeout((()=>{this._dispatchIdleChange(!this.paused)}),this.delay)}_stopIdleTimer(){window.clearTimeout(this._idleTimeout),this._dispatchIdleChange(!1)}_dispatchIdleChange(t){this._idle!==t&&(this._host.dispatchEvent(Y("vds-user-idle-change",{detail:t})),this._idle=t)}}(this._host,this._store),this._handleIdleChange=H(this._host,"vds-user-idle-change",(t=>{this._store.userIdle.set(t.detail),this._satisfyMediaRequest("userIdle",t)})),this._pendingMediaRequests={loading:[],play:[],pause:[],volume:[],fullscreen:[],seeked:[],seeking:[],userIdle:[]},this._handleStartLoadingRequest=H(this._host,"vds-start-loading",this._createMediaRequestHandler("loading",(t=>{this.state.canLoad||(this._pendingMediaRequests.loading.push(t),this._provider.startLoadingMedia())}))),this._handleMuteRequest=H(this._host,"vds-mute-request",this._createMediaRequestHandler("muted",(t=>{this.state.muted||(this._pendingMediaRequests.volume.push(t),this.provider.muted=!0)}))),this._handleUnmuteRequest=H(this._host,"vds-unmute-request",this._createMediaRequestHandler("muted",(t=>{this.state.muted&&(this._pendingMediaRequests.volume.push(t),this.provider.muted=!1,0===this.state.volume&&(this._pendingMediaRequests.volume.push(t),this.provider.volume=.25))}))),this._handlePlayRequest=H(this._host,"vds-play-request",this._createMediaRequestHandler("paused",(t=>{this.state.paused&&(this._pendingMediaRequests.play.push(t),this.provider.paused=!1)}))),this._handlePauseRequest=H(this._host,"vds-pause-request",this._createMediaRequestHandler("paused",(t=>{this.state.paused||(this._pendingMediaRequests.pause.push(t),this.provider.paused=!0)}))),this._isSeekingRequestPending=!1,this._handleSeekingRequest=H(this._host,"vds-seeking-request",this._createMediaRequestHandler("seeking",(t=>{this._stopWaiting(),this._pendingMediaRequests.seeking.push(t),this._isSeekingRequestPending=!0,this._store.seeking.set(!0)}))),this._handleSeekRequest=H(this._host,"vds-seek-request",this._createMediaRequestHandler("seeking",(t=>{this.store.ended&&(this._isReplay=!0),this._pendingMediaRequests.seeked.push(t),this._isSeekingRequestPending=!1;let s=t.detail;this.state.duration-t.detail<.25&&(s=this.state.duration),this.provider.currentTime=s}))),this._handleVolumeChangeRequest=H(this._host,"vds-volume-change-request",this._createMediaRequestHandler("volume",(t=>{const s=t.detail;this.state.volume!==s&&(this._pendingMediaRequests.volume.push(t),this.provider.volume=s,s>0&&this.state.muted&&(this._pendingMediaRequests.volume.push(t),this.provider.muted=!1))}))),this._handleEnterFullscreenRequest=H(this._host,"vds-enter-fullscreen-request",this._createMediaRequestHandler("fullscreen",(async t=>{this.state.fullscreen||("media"===(t.detail??"media")&&this._host.canFullscreen?(this._pendingMediaRequests.fullscreen.push(t),await(this._host.enterFullscreen?.())):this.provider&&(this._pendingMediaRequests.fullscreen.push(t),await this.provider.enterFullscreen()))}))),this._handleExitFullscreenRequest=H(this._host,"vds-exit-fullscreen-request",this._createMediaRequestHandler("fullscreen",(async t=>{this.state.fullscreen&&("media"===(t.detail??"media")&&this._host.canFullscreen?(this._pendingMediaRequests.fullscreen.push(t),await(this._host.exitFullscreen?.())):this.provider&&(this._pendingMediaRequests.fullscreen.push(t),await this.provider.exitFullscreen()))}))),this._handleResumeIdlingRequest=H(this._host,"vds-resume-user-idle-request",(t=>{this._mediaRequestEventGateway(t)&&(this._pendingMediaRequests.userIdle.push(t),this._userIdleController.paused=!1)})),this._handlePauseIdlingRequest=H(this._host,"vds-pause-user-idle-request",(t=>{this._mediaRequestEventGateway(t)&&(this._pendingMediaRequests.userIdle.push(t),this._userIdleController.paused=!0)})),this._handleShowPosterRequest=H(this._host,"vds-show-poster-request",this._createMediaRequestHandler("poster",(()=>{this._provider.canLoadPoster=!0}))),this._handleHidePosterRequest=H(this._host,"vds-hide-poster-request",this._createMediaRequestHandler("poster",(()=>{this._provider.canLoadPoster=!1}))),this._handleLoopRequest=this._createMediaRequestHandler("loop",(()=>{window.requestAnimationFrame((async()=>{try{this._isLooping=!0,this._isReplay=!0,await this._provider.play()}catch(Cs){this._isReplay=!1,this._isLooping=!1}}))})),this._handleFullscreenChange=H(this._host,"vds-fullscreen-change",(t=>{this._store.fullscreen.set(t.detail),t.target===this._host&&(this._satisfyMediaRequest("fullscreen",t),this._provider?.dispatchEvent(Y("vds-fullscreen-change",{detail:t.detail,triggerEvent:t})))})),this._handleFullscreenError=H(this._host,"vds-fullscreen-error",(t=>{t.target===this._host&&(this._satisfyMediaRequest("fullscreen",t),this._provider?.dispatchEvent(Y("vds-fullscreen-error",{detail:t.detail,triggerEvent:t})))})),this._isReplay=!1,this._isLooping=!1,this._firingWaiting=!1,this._mediaEvents=[],this._handleSeeking=j((t=>{this._mediaEvents.push(t),this._store.seeking.set(!0),this._store.currentTime.set(t.detail),this._satisfyMediaRequest("seeking",t)}),150,{leading:!0}),this._fireWaiting=(s=()=>{if(!this._originalWaitingEvent)return;this._firingWaiting=!0;const t=Y("vds-waiting",this._originalWaitingEvent);this._mediaEvents.push(t),this._store.waiting.set(!0),this._store.playing.set(!1),this._provider?.dispatchEvent(t),this._originalWaitingEvent=void 0,this._firingWaiting=!1},i=300,h=null,n=null,o=function(){if(!i)return s.apply(this,arguments);var t=this,o=arguments,a=e&&!h;return r(),n=function(){s.apply(t,o)},h=setTimeout((function(){if(h=null,!a){var t=n;return n=null,t()}}),i),a?n():void 0},o.cancel=r=function(){h&&(clearTimeout(h),n=null,h=null)},o.flush=function(){var t=n;r(),t&&t()},o),this._skipInitialSrcChange=!0,function(t,s,i){const e={host:t,callback:i};t.addController({hostConnected:()=>{for(const{element:e,onDisconnect:h}of function(t,s){return Array.from(rt.get(s)??[]).filter((({element:s})=>t!==s&&t.contains(s)))}(t,s))i(e,h);nt.set(s,(nt.get(s)??new Set).add(e))},hostDisconnected:()=>{nt.get(s)?.delete(e)}})}(t,Ms,((t,s)=>{this.attachMediaProvider(t,s)})),t.addController({hostConnected:()=>{this.state.canPlay||this._host.setAttribute("aria-busy","true")},hostDisconnected:()=>{this._clearMediaStateTracking(),this._clearPendingMediaRequests(),this.providerQueue.destroy(),this.providerDisposal.empty(),this._skipInitialSrcChange=!0,this._disconnectDisposal.empty()}})}get logLevel(){return this._logController?.logLevel??"silent"}set logLevel(t){}get provider(){return this._provider}attachMediaProvider(t,s){st(this.provider)&&this.provider!==t&&(this._handleMediaProviderDisconnect(),this._provider=t,this._providerContext.value.set(t),At(this._provider._store,this._store),this._attachMediaEventListeners(),t.attachMediaController(this,(t=>this._disconnectDisposal.add(t))),this._flushMediaProviderConnectedQueue(),s(this._handleMediaProviderDisconnect.bind(this)))}_handleMediaProviderDisconnect(){st(this.provider)||(this._stopWaiting(),this.providerQueue.destroy(),this.providerDisposal.empty(),this._provider=void 0,this._providerContext.value.set(void 0),function(t){for(const s of Mt(Zt))t[s].set(Zt[s])}(this._store),this._store.viewType.set("unknown"))}_flushMediaProviderConnectedQueue(){this.providerQueue.start(),this.providerDisposal.add((()=>{this.providerQueue.stop()}))}get store(){return this._mediaStoreProvider.value}get _store(){return this._mediaStoreProvider.value}get idleDelay(){return this._userIdleController.delay}set idleDelay(t){this._userIdleController.delay=t}_clearPendingMediaRequests(){Mt(this._pendingMediaRequests).forEach((t=>{this._pendingMediaRequests[t]=[]}))}_satisfyMediaRequest(t,s){const i=this._pendingMediaRequests[t].shift();i&&(s.requestEvent=i,X(s,i))}_mediaRequestEventGateway(t){return t.stopPropagation(),!0}_createMediaRequestHandler(t,s){return i=>{this._mediaRequestEventGateway(i)&&(this._provider?s(i):this.providerQueue.queue(t,(()=>{s(i)})))}}_attachMediaEventListeners(){if(!this._provider)return;const t={"vds-can-load":this._handleCanLoad,"vds-load-start":this._handleLoadStart,"vds-loaded-data":this._handleLoadedData,"vds-loaded-metadata":this._handleLoadedMetadata,"vds-can-play":this._handleCanPlay,"vds-can-play-through":this._handleCanPlayThrough,"vds-current-src-change":this._handleCurrentSrcChange,"vds-autoplay":this._handleAutoplay,"vds-autoplay-fail":this._handleAutoplayFail,"vds-loop-request":this._handleLoopRequest,"vds-play":this._handlePlay,"vds-play-fail":this._handlePlayFail,"vds-playing":this._handlePlaying,"vds-pause":this._handlePause,"vds-time-update":this._handleTimeUpdate,"vds-volume-change":this._handleVolumeChange,"vds-seeking":this._handleSeeking,"vds-seeked":this._handleSeeked,"vds-waiting":this._handleWaiting,"vds-ended":this._handleEnded,"vds-autoplay-change":this._handleAutoplayChange,"vds-error":this._handleError,"vds-fullscreen-support-change":this._handleFullscreenSupportChange,"vds-poster-change":this._handlePosterChange,"vds-loop-change":this._handleLoopChange,"vds-playsinline-change":this._handlePlaysinlineChange,"vds-controls-change":this._handleControlsChange,"vds-media-type-change":this._handleMediaTypeChange,"vds-view-type-change":this._handleViewTypeChange,"vds-duration-change":this._handleDurationChange,"vds-progress":this._handleProgress,"vds-src-change":this._handleSrcChange};for(const s of Mt(t)){const i=t[s].bind(this);this.providerDisposal.add(I(this._provider,s,i))}}_clearMediaStateTracking(){this._isReplay=!1,this._isLooping=!1,this._firingWaiting=!1,this._originalWaitingEvent=void 0,this._mediaEvents=[]}_findLastMediaEvent(t){return this._mediaEvents[this._mediaEvents.map((t=>t.type)).lastIndexOf(t)]}_handleCanLoad(t){this._store.canLoad.set(!0),this._mediaEvents.push(t),this._satisfyMediaRequest("loading",t)}_updateMetadata(t){this._store.currentSrc.set(t.currentSrc),this._store.mediaType.set(t.mediaType),this._store.viewType.set(t.viewType)}_handleLoadStart(t){this._updateMetadata(t.detail),this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-src-change")),X(t,this._findLastMediaEvent("vds-can-load"))}_handleLoadedData(t){this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-load-start"))}_handleLoadedMetadata(t){this._updateMetadata(t.detail),this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-load-start"))}_handleCanPlay(t){this._mediaEvents.push(t),"loadedmetadata"!==t.triggerEvent?.type&&X(t,this._findLastMediaEvent("vds-loaded-metadata")),this._store.canPlay.set(!0),this._store.duration.set(t.detail.duration),this._host.setAttribute("aria-busy","false")}_handleCanPlayThrough(t){this._store.canPlay.set(!0),this._store.duration.set(t.detail.duration),X(t,this._findLastMediaEvent("vds-can-play"))}_handleAutoplay(t){this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-play")),X(t,this._findLastMediaEvent("vds-can-play")),this._store.autoplayError.set(void 0)}_handleAutoplayFail(t){X(t,this._findLastMediaEvent("vds-play-fail")),X(t,this._findLastMediaEvent("vds-can-play")),this._store.autoplayError.set(t.detail),this._clearMediaStateTracking()}_handlePlay(t){if(!this._isLooping&&this.state.paused){if(this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-waiting")),this._satisfyMediaRequest("play",t),this._store.paused.set(!1),this._store.autoplayError.set(void 0),this.state.ended||this._isReplay){this._isReplay=!1,this._store.ended.set(!1);const s=Y("vds-replay",{triggerEvent:t});this._provider?.dispatchEvent(s)}}else t.stopImmediatePropagation()}_handlePlayFail(t){this._mediaEvents.push(t),this._stopWaiting(),X(t,this._findLastMediaEvent("vds-play")),this._store.paused.set(!0),this._store.playing.set(!1),this._satisfyMediaRequest("play",t),this._clearMediaStateTracking()}_handlePlaying(t){this._mediaEvents.push(t);const s=this._findLastMediaEvent("vds-play");if(s?(X(t,this._findLastMediaEvent("vds-waiting")),X(t,s)):X(t,this._findLastMediaEvent("vds-seeked")),this._stopWaiting(),this._clearMediaStateTracking(),this._store.paused.set(!1),this._store.playing.set(!0),this._store.seeking.set(!1),this._store.ended.set(!1),this._isLooping)return t.stopImmediatePropagation(),void(this._isLooping=!1);this.state.started||(this._store.started.set(!0),this._provider?.dispatchEvent(Y("vds-started",{triggerEvent:t})))}_handlePause(t){this._isLooping?t.stopImmediatePropagation():(X(t,this._findLastMediaEvent("vds-seeked")),this._satisfyMediaRequest("pause",t),this._store.paused.set(!0),this._store.playing.set(!1),this._store.seeking.set(!1),this._stopWaiting(),this._clearMediaStateTracking())}_handleTimeUpdate(t){const{currentTime:s,played:i}=t.detail;this._store.currentTime.set(s),this._store.played.set(i),this._store.waiting.set(!1)}_handleVolumeChange(t){this._store.volume.set(t.detail.volume),this._store.muted.set(t.detail.muted||0===t.detail.volume),this._satisfyMediaRequest("volume",t)}_handleSeeked(t){this._isSeekingRequestPending?(this._store.seeking.set(!0),t.stopImmediatePropagation()):this.state.seeking&&(this._mediaEvents.push(t),X(t,this._findLastMediaEvent("vds-waiting")),X(t,this._findLastMediaEvent("vds-seeking")),this.state.paused&&this._stopWaiting(),this._store.seeking.set(!1),t.detail!==this.state.duration&&this._store.ended.set(!1),this._store.currentTime.set(t.detail),this._satisfyMediaRequest("seeked",t))}_stopWaiting(){this._fireWaiting.cancel(),this._store.waiting.set(!1)}_handleWaiting(t){this._firingWaiting||(t.stopImmediatePropagation(),this._originalWaitingEvent=t,this._fireWaiting())}_handleEnded(t){this._isLooping?t.stopImmediatePropagation():(this._stopWaiting(),this._store.paused.set(!0),this._store.playing.set(!1),this._store.seeking.set(!1),this._store.ended.set(!0),this._clearMediaStateTracking())}_handleAutoplayChange(t){this._store.autoplay.set(t.detail)}_handleCurrentSrcChange(t){var s;this._store.currentSrc.set(t.detail),this._skipInitialSrcChange?this._skipInitialSrcChange=!1:(this._clearMediaStateTracking(),Mt(s=this._store).forEach((t=>{Qt.has(t)||s[t].set(s[t].initialValue)})),this._host.setAttribute("aria-busy","true"))}_handleError(t){this._store.error.set(t.detail)}_handleFullscreenSupportChange(t){this._store.canFullscreen.set(t.detail)}_handlePosterChange(t){this._store.poster.set(t.detail)}_handleLoopChange(t){this._store.loop.set(t.detail)}_handlePlaysinlineChange(t){this._store.playsinline.set(t.detail)}_handleControlsChange(t){this._store.controls.set(t.detail)}_handleMediaTypeChange(t){this._store.mediaType.set(t.detail)}_handleDurationChange(t){const s=t.detail;this._store.duration.set(isNaN(s)?0:s)}_handleProgress(t){const{buffered:s,seekable:i}=t.detail,e=0===s.length?0:s.end(s.length-1),h=0===i.length?0:i.end(i.length-1);this._store.buffered.set(s),this._store.bufferedAmount.set(e),this._store.seekable.set(i),this._store.seekableAmount.set(h)}_handleSrcChange(t){this._store.src.set(t.detail)}_handleViewTypeChange(t){this._store.viewType.set(t.detail)}}(this),this.__mediaFullscreen=!1,this.__mediaIsVideoView=!1,this.__mediaPlaysinline=!1,this.screenOrientationController=new St(this),this.fullscreenController=new zt(this,this.screenOrientationController),ot(this,"vds-media-connect",{register:As}),ss(this,"fullscreen",(t=>{this.__mediaFullscreen=t})),ss(this,"viewType",(t=>{this.__mediaIsVideoView="video"===t})),ss(this,"playsinline",(t=>{this.__mediaPlaysinline=t})),this._bindMediaAttributes(),this._bindMediaCSSProperties()}static get styles(){return[ds`:host{display:inline-block;position:relative;contain:content}:host([hidden]){display:none}`]}get provider(){return this.controller.provider}update(t){Lt(this,"hide-ui",this._shouldHideMediaUI()),super.update(t)}render(){return E`<slot></slot>`}get canFullscreen(){return this.fullscreenController.isSupported}get fullscreen(){return this.fullscreenController.isFullscreen}get fullscreenOrientation(){return this.fullscreenController.screenOrientationLock}set fullscreenOrientation(t){const s=this.fullscreenController.screenOrientationLock;s!==t&&(this.fullscreenController.screenOrientationLock=t,this.requestUpdate("fullscreen-orientation",s))}enterFullscreen(){return this.fullscreenController.enterFullscreen()}exitFullscreen(){return this.fullscreenController.exitFullscreen()}_bindMediaAttributes(){!function(...t){new Ps(...t)}(this,this.controller.store,["autoplay","autoplayError","canLoad","canPlay","canFullscreen","ended","error","fullscreen","userIdle","loop","mediaType","muted","paused","playing","playsinline","seeking","started","viewType","waiting"])}_bindMediaCSSProperties(){!function(...t){new Fs(...t)}(this,this.controller.store,["bufferedAmount","currentTime","duration","seekableAmount"])}_shouldHideMediaUI(){return dt&&this.__mediaIsVideoView&&(!this.__mediaPlaysinline||this.__mediaFullscreen)}};hs([Ss()],Ds.prototype,"__mediaFullscreen",2),hs([Ss()],Ds.prototype,"__mediaIsVideoView",2),hs([Ss()],Ds.prototype,"__mediaPlaysinline",2),hs([Cs({attribute:"fullscreen-orientation"})],Ds.prototype,"fullscreenOrientation",1),Ot("vds-media",Ds);var qs=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Os=/\.(mp4|og[gv]|webm|mov|m4v|avi)($|\?)/i,Ls=class extends $s{constructor(){super(...arguments),this.preload="metadata",this._timeRAF=void 0,this._hasMediaElementConnected=!1,this._mediaElementDisposal=new B,this._isMediaWaiting=!1,this._ignoreNextAbortEvent=!1,this._ignoreNextEmptiedEvent=!1}get mediaElement(){return this._mediaElement}disconnectedCallback(){this._isMediaWaiting=!1,super.disconnectedCallback(),this._cancelTimeUpdates()}destroy(){this.mediaElement&&(this.mediaElement.pause(),this.mediaElement.src="",this.mediaElement.innerHTML="",this.mediaElement.load()),super.destroy()}_cancelTimeUpdates(){it(this._timeRAF)&&window.cancelAnimationFrame(this._timeRAF),this._timeRAF=void 0}_requestTimeUpdates(){tt(this._timeRAF)&&this._requestTimeUpdate()}_requestTimeUpdate(){const t=this.mediaElement?.currentTime??0;this.state.currentTime!==t&&this._updateCurrentTime(t),this._timeRAF=window.requestAnimationFrame((()=>{tt(this._timeRAF)||this._requestTimeUpdate()}))}_updateCurrentTime(t,s){this.dispatchEvent(Y("vds-time-update",{detail:{currentTime:Math.min(t,this.mediaElement?.duration??0),played:this.mediaElement.played},triggerEvent:s}))}handleDefaultSlotChange(){this._handleMediaElementDisconnect(),this._handleMediaElementConnect()}get _canMediaElementConnect(){return this.canLoad&&!st(this.mediaElement)&&!this._hasMediaElementConnected}_findSlottedMediaElement(){const t=function(t){const s=t.shadowRoot?.querySelector("slot:not([name])"),i=s?.assignedNodes({flatten:!0})??[];return Array.prototype.filter.call(i,(t=>t.nodeType==Node.ELEMENT_NODE))}(this)[0];/^(audio|video)$/i.test(t?.tagName??""),this._mediaElement=t??void 0}_handleMediaElementConnect(){window.requestAnimationFrame((()=>{if(this._findSlottedMediaElement(),!this._canMediaElementConnect)return;const t=this.mediaElement;t.hasAttribute("loop")&&(this.loop=!0),t.removeAttribute("loop"),t.removeAttribute("poster"),Lt(t,"controls",this.controls),!this.state.canFullscreen&&this.fullscreenController.isSupported&&this.dispatchEvent(Y("vds-fullscreen-support-change",{detail:this.canFullscreen})),this._attachMediaEventListeners(),this._observePlaysinline(),this._observeMediaSources(),this.canLoadPoster&&this.poster.length>0&&t.getAttribute("poster")!==this.poster&&t.setAttribute("poster",this.poster),this._startPreloadingMedia(),this._hasMediaElementConnected=!0,this._disconnectDisposal.add(this._handleMediaElementDisconnect.bind(this))}))}_handleMediaElementDisconnect(){this._cancelTimeUpdates(),window.requestAnimationFrame((()=>{this._mediaElementDisposal.empty(),this._mediaElement=void 0})),this._hasMediaElementConnected=!1}startLoadingMedia(){super.startLoadingMedia(),this._handleMediaElementConnect()}_startPreloadingMedia(){if(this.state.canPlay)return;this.mediaElement.setAttribute("preload",this.preload);const t=this.mediaElement.networkState>=1;this._ignoreNextAbortEvent=t,this._ignoreNextEmptiedEvent=t,this.mediaElement.load(),setTimeout((()=>{this._ignoreNextAbortEvent=!1,this._ignoreNextEmptiedEvent=!1}),0)}_observePlaysinline(){const t=()=>this.mediaElement.hasAttribute("playsinline");this._handlePlaysinlineChange(t());const s=new MutationObserver((()=>this._handlePlaysinlineChange(t())));s.observe(this.mediaElement,{attributeFilter:["playsinline"]}),this._mediaElementDisposal.add((()=>s.disconnect()))}_handlePlaysinlineChange(t){this.dispatchEvent(Y("vds-playsinline-change",{detail:t}))}_observeMediaSources(){this._handleSrcChange(this._getMediaSources());const t=new MutationObserver((()=>this._handleSrcChange(this._getMediaSources())));t.observe(this.mediaElement,{attributeFilter:["src"],subtree:!0}),this._mediaElementDisposal.add((()=>t.disconnect()))}_handleSrcChange(t){var s,i;(s=this.state.src).length===(i=t).length&&s.every(((t,s)=>t===i[s]))||this.dispatchEvent(Y("vds-src-change",{detail:t}))}_getMediaSources(){const t=[this.mediaElement?.src,...Array.from(this.mediaElement?.querySelectorAll("source")??[]).map((t=>t.src))].filter(Boolean);return Array.from(new Set(t))}_getMediaMetadata(){return{src:this.state.src,currentSrc:this.mediaElement.currentSrc,duration:this.mediaElement.duration||0,poster:this.mediaElement.poster,mediaType:this._getMediaType(),viewType:this.state.viewType}}_attachMediaEventListeners(){if(st(this.mediaElement))return;const t={abort:this._handleAbort,canplay:this._handleCanPlay,canplaythrough:this._handleCanPlayThrough,durationchange:this._handleDurationChange,emptied:this._handleEmptied,ended:this._handleEnded,error:this._handleError,loadeddata:this._handleLoadedData,loadedmetadata:this._handleLoadedMetadata,loadstart:this._handleLoadStart,pause:this._handlePause,play:this._handlePlay,playing:this._handlePlaying,progress:this._handleProgress,ratechange:this._handleRateChange,seeked:this._handleSeeked,seeking:this._handleSeeking,stalled:this._handleStalled,suspend:this._handleSuspend,volumechange:this._handleVolumeChange,waiting:this._handleWaiting};Mt(t).forEach((s=>{const i=t[s].bind(this),e=I(this.mediaElement,s,(async t=>{await i(t)}));this._mediaElementDisposal.add(e)}))}_handleAbort(t){this._ignoreNextAbortEvent||(this.dispatchEvent(Y("vds-abort",{triggerEvent:t})),this._handleCurrentSrcChange("",t))}_handleCanPlay(t){this._handleMediaReady({event:t,duration:this.mediaElement.duration})}_handleCanPlayThrough(t){this.state.started||this.dispatchEvent(Y("vds-can-play-through",{triggerEvent:t,detail:{duration:this.mediaElement.duration}}))}_handleLoadStart(t){this._handleCurrentSrcChange(this.mediaElement.currentSrc,t),""!==this.mediaElement.currentSrc?this.dispatchEvent(Y("vds-load-start",{triggerEvent:t,detail:this._getMediaMetadata()})):this._handleAbort()}_handleEmptied(t){this._ignoreNextEmptiedEvent||this.dispatchEvent(Y("vds-emptied",{triggerEvent:t}))}_handleLoadedData(t){this.dispatchEvent(Y("vds-loaded-data",{triggerEvent:t}))}_handleLoadedMetadata(t){this.dispatchEvent(Y("vds-volume-change",{detail:{volume:this.mediaElement.volume,muted:this.mediaElement.muted}})),this.dispatchEvent(Y("vds-loaded-metadata",{triggerEvent:t,detail:this._getMediaMetadata()}))}_determineMediaType(t){this.dispatchEvent(Y("vds-media-type-change",{detail:this._getMediaType(),triggerEvent:t}))}_handlePlay(t){const s=Y("vds-play",{triggerEvent:t});s.autoplay=this._attemptingAutoplay,this.dispatchEvent(s)}_handlePause(t){(1!==this.mediaElement.readyState||this._isMediaWaiting)&&(this._isMediaWaiting=!1,this._cancelTimeUpdates(),this.dispatchEvent(Y("vds-pause",{triggerEvent:t})))}_handlePlaying(t){this._isMediaWaiting=!1;const s=Y("vds-playing",{triggerEvent:t});this.dispatchEvent(s),this._requestTimeUpdates()}_handleDurationChange(t){this.mediaElement.ended&&this._updateCurrentTime(this.mediaElement.duration,t),this.dispatchEvent(Y("vds-duration-change",{detail:this.mediaElement.duration,triggerEvent:t}))}_handleProgress(t){this.dispatchEvent(Y("vds-progress",{triggerEvent:t,detail:{buffered:this.mediaElement.buffered,seekable:this.mediaElement.seekable}}))}_handleRateChange(t){throw Error("Not implemented")}_handleSeeking(t){this.dispatchEvent(Y("vds-seeking",{detail:this.mediaElement.currentTime,triggerEvent:t}))}_handleSeeked(t){const s=Y("vds-seeked",{detail:this.mediaElement.currentTime,triggerEvent:t});this.dispatchEvent(s);const i=this.mediaElement.currentTime;if(Math.trunc(i)===Math.trunc(this.mediaElement.duration)&&wt(this.mediaElement.duration)>wt(i)&&(this._updateCurrentTime(this.mediaElement.duration,t),!this.mediaElement.ended))try{this.play()}catch(Cs){}}_handleStalled(t){this.dispatchEvent(Y("vds-stalled",{triggerEvent:t})),this.mediaElement.readyState<3&&(this._isMediaWaiting=!0,this.dispatchEvent(Y("vds-waiting",{triggerEvent:t})))}_handleVolumeChange(t){this.dispatchEvent(Y("vds-volume-change",{detail:{volume:this.mediaElement.volume,muted:this.mediaElement.muted},triggerEvent:t}))}_handleWaiting(t){this.mediaElement.readyState<3&&(this._isMediaWaiting=!0,this.dispatchEvent(Y("vds-waiting",{triggerEvent:t})))}_handleSuspend(t){const s=Y("vds-suspend",{triggerEvent:t});this.dispatchEvent(s)}_handleEnded(t){this._cancelTimeUpdates(),this._updateCurrentTime(this.mediaElement.duration,t);const s=Y("vds-end",{triggerEvent:t});this.dispatchEvent(s),this.state.loop?this._handleLoop():this.dispatchEvent(Y("vds-ended",{triggerEvent:t}))}_handleLoop(){st(this.controls)&&(this.mediaElement.controls=!1),this.dispatchEvent(Y("vds-loop-request"))}_handleError(t){const s=this.mediaElement.error;s&&this.dispatchEvent(Y("vds-error",{detail:{message:s.message,code:s.code,mediaError:s},triggerEvent:t}))}_getPaused(){return this.mediaElement?.paused??!0}_getVolume(){return this.mediaElement?.volume??1}_setVolume(t){this.mediaElement.volume=t}_getCurrentTime(){return this.mediaElement?.currentTime??0}_setCurrentTime(t){this.mediaElement.currentTime!==t&&(this.mediaElement.currentTime=t)}_getMuted(){return this.mediaElement?.muted??!1}_setMuted(t){this.mediaElement.muted=t}async play(){try{return this._throwIfNotReadyForPlayback(),await this._resetPlaybackIfEnded(),this.mediaElement?.play()}catch(t){const s=Y("vds-play-fail");throw s.autoplay=this._attemptingAutoplay,s.error=t,t}}async pause(){return this.mediaElement?.pause()}_getMediaType(){return qs.test(t=this.state.currentSrc)?"audio":Os.test(t)?"video":"unknown";var t}};hs([Cs()],Ls.prototype,"preload",2),Ot("vds-audio",class extends Ls{static get styles(){return[ds`:host{display:inline-block}:host([hidden]){display:none}`]}connectedCallback(){super.connectedCallback(),this.dispatchEvent(Y("vds-view-type-change",{detail:"audio"}))}});var Vs=ds`:host{display:table;contain:content;user-select:none;cursor:pointer;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host(:focus){outline:0}:host(:focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}:host(.focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}`,Ns=class extends ks{constructor(){super(),this.pressed=!1,this.disabled=!1,this._handleButtonClickCapture=H(this,"click",(t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),{capture:!0}),kt(this),["pointerup","keydown"].forEach((t=>{H(this,t,(t=>{this.disabled||Ut(t)&&!function(t){return Ut(t)&&("Enter"===t.key||" "===t.key)}(t)||this._handleButtonClick(t)}))}))}static get styles(){return[Vs]}static get parts(){return[]}connectedCallback(){super.connectedCallback(),Vt(this,"tabindex","0"),Vt(this,"role","button"),this._updateAriaPressedAttr()}updated(t){t.has("pressed")&&this._updateAriaPressedAttr()}_updateAriaPressedAttr(){Lt(this,"aria-pressed",this.pressed?"true":"false")}render(){return this._renderDefaultSlot()}_renderDefaultSlot(){return E`<slot></slot>`}_handleButtonClick(t){this.pressed=!this.pressed}};hs([Cs({type:Boolean})],Ns.prototype,"pressed",2),hs([Cs({type:Boolean,reflect:!0})],Ns.prototype,"disabled",2);var Rs=class{constructor(t){t?(this._target=t,this._createLogger(t),this._requests=Ct(t)):this._requests=new Et}startLoading(t){this._dispatchRequest("vds-start-loading",{triggerEvent:t})}play(t){this._dispatchRequest("vds-play-request",{triggerEvent:t})}pause(t){this._dispatchRequest("vds-pause-request",{triggerEvent:t})}mute(t){this._dispatchRequest("vds-mute-request",{triggerEvent:t})}unmute(t){this._dispatchRequest("vds-unmute-request",{triggerEvent:t})}enterFullscreen(t,s){this._dispatchRequest("vds-enter-fullscreen-request",{triggerEvent:s,detail:t})}exitFullscreen(t,s){this._dispatchRequest("vds-exit-fullscreen-request",{triggerEvent:s,detail:t})}seeking(t,s){this._dispatchRequest("vds-seeking-request",{detail:t,triggerEvent:s})}seek(t,s){this._dispatchRequest("vds-seek-request",{detail:t,triggerEvent:s})}changeVolume(t,s){this._dispatchRequest("vds-volume-change-request",{detail:t,triggerEvent:s})}resumeUserIdle(t){this._dispatchRequest("vds-resume-user-idle-request",{triggerEvent:t})}pauseUserIdle(t){this._dispatchRequest("vds-pause-user-idle-request",{triggerEvent:t})}showPoster(t){this._dispatchRequest("vds-show-poster-request",{triggerEvent:t})}hidePoster(t){this._dispatchRequest("vds-hide-poster-request",{triggerEvent:t})}setTarget(t){this._target!==t&&(this._target=t,t?(this._createLogger(t),this._requests.start()):this._requests.stop())}_dispatchRequest(t,s){this._requests.queue(t,(()=>{const i=Y(t,{...s,bubbles:!0,composed:!0});this._target?.dispatchEvent(i)}))}_createLogger(t){}};Ot("vds-play-button",class extends Ns{constructor(){super(),this._mediaRemote=new Rs(this),ss(this,"paused",(t=>{this.pressed=!t,Lt(this,"paused",t)}))}connectedCallback(){super.connectedCallback(),Vt(this,"aria-label","Play")}_handleButtonClick(t){this.disabled||(this.pressed?this._mediaRemote.pause(t):this._mediaRemote.play(t))}}),Ot("vds-mute-button",class extends Ns{constructor(){super(),this._mediaRemote=new Rs(this),this._volume=1,this._muted=!1,ss(this,"volume",(t=>{this._volume=t,this._handleMutedChange()})),ss(this,"muted",(t=>{this._muted=t,this._handleMutedChange()}))}connectedCallback(){super.connectedCallback(),Vt(this,"aria-label","Mute")}_handleMutedChange(){const t=this._muted||0===this._volume;this.pressed=t,Lt(this,"muted",t)}_handleButtonClick(t){this.disabled||(this.pressed?this._mediaRemote.unmute(t):this._mediaRemote.mute(t))}});var Us=Z((function(){const t=Tt(!1),s=Tt(!1);return{value:Tt(50),pointerValue:Tt(0),min:Tt(0),max:Tt(100),dragging:t,pointing:s,interactive:Pt([t,s],(([t,s])=>t||s))}})),js=ds`*{box-sizing:border-box;touch-action:none}:host{display:block;contain:layout;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}:host([hidden]){display:none}:host(:focus){outline:0}:host(:focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}:host(.focus-visible){outline:1px auto Highlight;outline:1px auto -webkit-focus-ring-color}`,Is=(t=>(t[t.Left=-1]="Left",t[t.ArrowLeft=-1]="ArrowLeft",t[t.Up=-1]="Up",t[t.ArrowUp=-1]="ArrowUp",t[t.Right=1]="Right",t[t.ArrowRight=1]="ArrowRight",t[t.Down=1]="Down",t[t.ArrowDown=1]="ArrowDown",t))(Is||{}),Bs=class extends ks{constructor(){super(),this._sliderStoreProvider=Us.provide(this),this.disabled=!1,this.value=50,this._step=1,this._keyboardStep=1,this.shiftKeyMultiplier=5,this.customValueText=!1,this._mediaRemote=new Rs(this),this._disconnectDisposal=new B,this._handlePointerEnter=H(this,"pointerenter",(()=>{this.disabled||(this.setAttribute("pointing",""),this.store.pointing.set(!0))})),this._handlePointerMove=H(this,"pointermove",(t=>{if(this.disabled||this.isDragging)return;const s=this._getValueBasedOnThumbPosition(t);this.store.pointerValue.set(s),this._dispatchPointerValueChange(t)})),this._handlePointerLeave=H(this,"pointerleave",(()=>{this.disabled||(this.removeAttribute("pointing"),this.store.pointing.set(!1))})),this._handlePointerDown=H(this,"pointerdown",(t=>{this.disabled||(this._startDragging(t),this._onDrag(t))})),this._handleKeydown=H(this,"keydown",(t=>{if(this.disabled)return;const{key:s,shiftKey:i}=t;if(!Object.keys(Is).includes(s))return;const e=i?this.keyboardStep*this.shiftKeyMultiplier:this.keyboardStep,h=Number(Is[s]);this.value=this._getClampedValue(this.step*((this.value+e*h)/this.step)),this._dispatchValueChange(t)})),this._handleFillValueChange=H(this,"vds-slider-value-change",this._updateFillCSSProps.bind(this)),this._handlePointerValueChange=H(this,"vds-slider-pointer-value-change",this._updatePointerCSSProps.bind(this)),this._onDrag=Wt((t=>{if(this.disabled||!this.isDragging)return;const s=this._getValueBasedOnThumbPosition(t);this.store.pointerValue.set(s),this._dispatchPointerValueChange(t)})),this._handleDocumentPointerUp=H(this,"pointerup",(t=>{!this.disabled&&this.isDragging&&this._stopDragging(t)}),{target:document}),this._handleDocumentTouchMove=H(this,"touchmove",(t=>{!this.disabled&&this.isDragging&&t.preventDefault()}),{target:document,passive:!1}),this._handleDocumentPointerMove=H(this,"pointermove",(t=>{!this.disabled&&this.isDragging&&this._onDrag(t)}),{target:document}),this._lastDispatchedValue=this.value,this._dispatchValueChange=Wt((t=>{this.value!==this._lastDispatchedValue&&(this.dispatchEvent(Y("vds-slider-value-change",{detail:this.value,triggerEvent:t})),this._lastDispatchedValue=this.value)})),this._lastDispatchedPointerValue=this.pointerValue,this._dispatchPointerValueChange=Wt((t=>{this.pointerValue!==this._lastDispatchedPointerValue&&(["vds-slider-pointer-value-change",this.isDragging&&"vds-slider-drag-value-change"].forEach((s=>{s&&this.dispatchEvent(Y(s,{detail:this.pointerValue,triggerEvent:t}))})),this._lastDispatchedPointerValue=this.pointerValue)})),kt(this)}static get styles(){return[js]}static get parts(){return[]}get store(){return this._sliderStoreProvider.value}get min(){return Ft(this.store.min)}set min(t){this.store.min.set(t)}get max(){return Ft(this.store.max)}set max(t){this.store.max.set(t)}get step(){return this._step}set step(t){this._step=t}get keyboardStep(){return this._keyboardStep}set keyboardStep(t){this._keyboardStep=t}get isDragging(){return Ft(this.store.dragging)}get fillRate(){const t=this.max-this.min;return t>0?(this.value-this.min)/t:0}get fillPercent(){return 100*this.fillRate}get pointerValue(){return Ft(this.store.pointerValue)}get pointerRate(){const t=this.max-this.min;return t>0?(this.pointerValue-this.min)/t:0}get pointerPercent(){return 100*this.pointerRate}connectedCallback(){super.connectedCallback(),this._setupAriaAttrs(),this._updateFillCSSProps(),this._updatePointerCSSProps(),this._disconnectDisposal.add(this.store.interactive.subscribe((t=>{Lt(this,"interactive",t)})))}willUpdate(t){(t.has("value")||t.has("min")||t.has("max"))&&(this.value=this._getClampedValue(this.value),this.store.value.set(this.value),this._updateFillCSSProps(),this._dispatchValueChange()),t.has("disabled")&&this.disabled&&(this.store.dragging.set(!1),this.store.pointing.set(!1),this.removeAttribute("dragging"),this.removeAttribute("pointing"),this.removeAttribute("interactive"),Lt(this,"aria-disabled",this.disabled)),this.customValueText||this._updateAriaValueAttrs(),super.willUpdate(t)}disconnectedCallback(){this._onDrag.cancel(),this._disconnectDisposal.empty(),super.disconnectedCallback()}_updateFillCSSProps(){Nt(this,"fill-value",`${this.value}`),Nt(this,"fill-rate",`${this.fillRate}`),Nt(this,"fill-percent",`${this.fillPercent}%`)}_updatePointerCSSProps(){Nt(this,"pointer-value",`${this.pointerValue}`),Nt(this,"pointer-rate",`${this.pointerRate}`),Nt(this,"pointer-percent",`${this.pointerPercent}%`)}render(){return this._renderSlider()}_renderSlider(){return E`${this._renderDefaultSlot()}`}_renderDefaultSlot(){return E`<slot></slot>`}_setupAriaAttrs(){Vt(this,"role","slider"),Vt(this,"tabindex","0"),Vt(this,"aria-orientation","horizontal"),Vt(this,"autocomplete","off")}_updateAriaValueAttrs(){this.setAttribute("aria-valuemin",this._getValueMin()),this.setAttribute("aria-valuenow",this._getValueNow()),this.setAttribute("aria-valuemax",this._getValueMax()),this.setAttribute("aria-valuetext",this._getValueText())}_getValueMin(){return String(this.min)}_getValueNow(){return String(this.value)}_getValueMax(){return String(this.max)}_getValueText(){return`${_t(this.value/this.max*100,2)}%`}_startDragging(t){if(this.isDragging)return;this.store.dragging.set(!0),this.setAttribute("dragging","");const s=this._getValueBasedOnThumbPosition(t);this.store.pointerValue.set(s),this._dispatchPointerValueChange(t),this.dispatchEvent(Y("vds-slider-drag-start",{triggerEvent:t,detail:this.value})),this._mediaRemote.pauseUserIdle(t)}_stopDragging(t){if(!this.isDragging)return;this.store.dragging.set(!1),this._dispatchValueChange.cancel(),this.removeAttribute("dragging");const s=this._getValueBasedOnThumbPosition(t);this.value=s,this.store.pointerValue.set(s),this._dispatchValueChange(t),this._dispatchPointerValueChange(t),this.dispatchEvent(Y("vds-slider-drag-end",{triggerEvent:t,detail:this.value})),this._mediaRemote.resumeUserIdle(t)}_getClampedValue(t){return bt(this.min,_t(t,wt(this.step)),this.max)}_getValueFromRate(t){const s=bt(0,t,1),i=Math.round((this.max-this.min)*s/this.step);return this.min+this.step*i}_getValueBasedOnThumbPosition(t){const s=t.clientX,{left:i,width:e}=this.getBoundingClientRect();return this._getValueFromRate((s-i)/e)}};hs([Cs({type:Number})],Bs.prototype,"min",1),hs([Cs({type:Number})],Bs.prototype,"max",1),hs([Cs({reflect:!0,type:Boolean})],Bs.prototype,"disabled",2),hs([Cs({type:Number})],Bs.prototype,"value",2),hs([Cs({type:Number})],Bs.prototype,"step",1),hs([Cs({attribute:"keyboard-step",type:Number})],Bs.prototype,"keyboardStep",1),hs([Cs({attribute:"shift-key-multiplier",type:Number})],Bs.prototype,"shiftKeyMultiplier",2),hs([Cs({type:Boolean,attribute:"custom-value-text"})],Bs.prototype,"customValueText",2);var Hs=ds``,Ws=class extends Bs{constructor(){super(),this._step=.1,this.value=0,this.valueText="{currentTime} out of {duration}",this.pauseWhileDragging=!1,this.seekingRequestThrottle=100,this.__mediaDuration=0,this.__mediaPaused=!0,this._handleSliderDragStart=H(this,"vds-slider-drag-start",(t=>{this._togglePlaybackWhileDragging(t)})),this._handleSliderValueChange=H(this,"vds-slider-value-change",(t=>{Ut(t.originEvent)&&(this._dispatchSeekingRequest.cancel(),this._mediaRemote.seek(this.value,t))})),this._handleSliderDragValueChange=H(this,"vds-slider-drag-value-change",(t=>{this._dispatchSeekingRequest(t)})),this._handleSliderDragEnd=H(this,"vds-slider-drag-end",(t=>{this._dispatchSeekingRequest.cancel(),this._mediaRemote.seek(this.value,t),this._togglePlaybackWhileDragging(t)})),this._dispatchSeekingRequest=j((t=>{this._mediaRemote.seeking(this.value,t)}),this.seekingRequestThrottle),this._wasPlayingBeforeDragStart=!1,ss(this,"currentTime",(t=>{this.value=t})),ss(this,"duration",(t=>{this.__mediaDuration=t,this.requestUpdate("max")})),ss(this,"paused",(t=>{this.__mediaPaused=t}))}static get styles(){return[super.styles,Hs]}connectedCallback(){super.connectedCallback(),Vt(this,"aria-label","Media time")}get min(){return 0}set min(t){}get max(){return this.__mediaDuration}set max(t){}update(t){t.has("disabled")&&this.disabled&&this._dispatchSeekingRequest.cancel(),super.update(t)}disconnectedCallback(){this._dispatchSeekingRequest.cancel(),super.disconnectedCallback()}_getValueMin(){return"0%"}_getValueNow(){return`${Math.round(this.fillPercent)}%`}_getValueText(){return this.valueText.replace("{currentTime}",Ht(this.value)).replace("{duration}",Ht(this.__mediaDuration))}_getValueMax(){return"100%"}_togglePlaybackWhileDragging(t){this.pauseWhileDragging&&(this.isDragging&&!this.__mediaPaused?(this._wasPlayingBeforeDragStart=!0,this._mediaRemote.pause(t)):this._wasPlayingBeforeDragStart&&!this.isDragging&&this.__mediaPaused&&(this._wasPlayingBeforeDragStart=!1,this._mediaRemote.play(t)))}};hs([Cs({attribute:!1,state:!0})],Ws.prototype,"value",2),hs([Cs({attribute:!1})],Ws.prototype,"min",1),hs([Cs({attribute:!1})],Ws.prototype,"max",1),hs([Cs({attribute:"value-text"})],Ws.prototype,"valueText",2),hs([Cs({attribute:"pause-while-dragging",type:Boolean})],Ws.prototype,"pauseWhileDragging",2),hs([Cs({attribute:"seeking-request-throttle",type:Number})],Ws.prototype,"seekingRequestThrottle",2),hs([Ss()],Ws.prototype,"__mediaDuration",2),hs([Ss()],Ws.prototype,"__mediaPaused",2),Ot("vds-time-slider",Ws);var Ys=class extends Bs{constructor(){super(),this.value=100,this._handleSliderValueChange=H(this,"vds-slider-value-change",this._changeVolume.bind(this)),this._handleSliderDragValueChange=H(this,"vds-slider-drag-value-change",this._changeVolume.bind(this)),ss(this,"volume",(t=>{this.value=100*t}))}connectedCallback(){super.connectedCallback(),Vt(this,"aria-label","Media volume")}get min(){return 0}set min(t){}get max(){return 100}set max(t){}_changeVolume(t){const s=_t(t.detail/100,3);this._mediaRemote.changeVolume(s,t)}};hs([Cs({attribute:!1})],Ys.prototype,"min",1),hs([Cs({attribute:!1})],Ys.prototype,"max",1),hs([Cs({attribute:!1,state:!0})],Ys.prototype,"value",2),Ot("vds-volume-slider",Ys);var Ks=class extends ks{constructor(){super(...arguments),this._disposal=new B,this._sliderStoreConsumer=Us.consume(this),this.__value=0,this.type="current",this.showHours=!1,this.padHours=!1,this.decimalPlaces=2}static get styles(){return[ds`:host{display:inline-block;contain:content}:host([hidden]){display:none}`]}get _sliderStore(){return this._sliderStoreConsumer.value}connectedCallback(){super.connectedCallback(),this._handleTypeChange()}update(t){(t.has("type")||t.has("format"))&&this._handleTypeChange(),super.update(t)}disconnectedCallback(){this._disposal.empty(),super.disconnectedCallback()}render(){return E`${this._getValueText()}`}_handleTypeChange(){this._disposal.empty();const t=this._sliderStore["current"===this.type?"value":"pointerValue"],s=("percent"===this.format?this._createPercentStore(t):t).subscribe((t=>{this.__value=t}));this._disposal.add(s)}_createPercentStore(t){return Pt([t,this._sliderStore.min,this._sliderStore.max],(([t,s,i])=>t/(i-s)*100))}_getValueText(){switch(this.format){case"percent":return this._getPercentFormat();case"time":return this._getTimeFormat();default:return`${this.__value}`}}_getPercentFormat(){return`${_t(this.__value,this.decimalPlaces)}%`}_getTimeFormat(){return Bt(this.__value,this.padHours,this.showHours)}};hs([Ss()],Ks.prototype,"__value",2),hs([Cs()],Ks.prototype,"type",2),hs([Cs()],Ks.prototype,"format",2),hs([Cs({attribute:"show-hours",type:Boolean})],Ks.prototype,"showHours",2),hs([Cs({attribute:"pad-hours",type:Boolean})],Ks.prototype,"padHours",2),hs([Cs({attribute:"decimal-places",type:Number})],Ks.prototype,"decimalPlaces",2),Ot("vds-slider-value-text",Ks);var Xs=class extends ks{constructor(){super(...arguments),this._disposal=new B,this._mediaStoreConsumer=ts.consume(this),this.__seconds=0,this.type="current",this.showHours=!1,this.padHours=!1,this.remainder=!1}static get styles(){return[ds`:host{display:inline-block;contain:content}:host([hidden]){display:none}`]}get _mediaStore(){return this._mediaStoreConsumer.value}connectedCallback(){super.connectedCallback(),this._handleTypeChange()}update(t){(t.has("type")||t.has("remainder"))&&this._handleTypeChange(),super.update(t)}disconnectedCallback(){this._disposal.empty(),super.disconnectedCallback()}render(){return E`${this._getFormattedTime()}`}_handleTypeChange(){this._disposal.empty();const t=this._getTypeStore(),s=(this.remainder?this._createRemainderStore(t):t).subscribe((t=>{this.__seconds=t}));this._disposal.add(s)}_getTypeStore(){switch(this.type){case"buffered":return this._mediaStore.bufferedAmount;case"seekable":return this._mediaStore.seekableAmount;case"duration":return this._mediaStore.duration;default:return this._mediaStore.currentTime}}_createRemainderStore(t){return Pt([t,this._mediaStore.duration],(([t,s])=>Math.max(0,s-t)))}_getFormattedTime(){return Bt(this.__seconds,this.padHours,this.showHours)}};hs([Ss()],Xs.prototype,"__seconds",2),hs([Cs()],Xs.prototype,"type",2),hs([Cs({attribute:"show-hours",type:Boolean})],Xs.prototype,"showHours",2),hs([Cs({attribute:"pad-hours",type:Boolean})],Xs.prototype,"padHours",2),hs([Cs({type:Boolean})],Xs.prototype,"remainder",2),Ot("vds-time",Xs);const Js=class{constructor(i){t(this,i),this.stzhPlay=s(this,"stzhPlay",7),this.stzhPlaying=s(this,"stzhPlaying",7),this.stzhPause=s(this,"stzhPause",7),this.stzhReplay=s(this,"stzhReplay",7),this.stzhEnd=s(this,"stzhEnd",7),this.stzhEnded=s(this,"stzhEnded",7),this.stzhError=s(this,"stzhError",7),this.localization=void 0,this.src="",this.preload="none",this.transcript="",this.transcriptShown=!1}async play(){this.vsdAudioElement.play()}async pause(){this.vsdAudioElement.pause()}async componentWillLoad(){this.localization||(this.localization=await r(this.element,"audio"))}render(){const t=!!this.transcript||n(this.element,"transcript");return i(e,null,i("vds-media",{class:{"stzh-audio":!0}},i("vds-audio",{class:"stzh-audio__audio",ref:t=>this.vsdAudioElement=t,"onVds-play":()=>{this.stzhPlay.emit({component:"stzh-audio"})},"onVds-playing":()=>{this.stzhPlaying.emit({component:"stzh-audio"})},"onVds-end":()=>{this.stzhEnd.emit({component:"stzh-audio"})},"onVds-ended":()=>{this.stzhEnded.emit({component:"stzh-audio"})},"onVds-replay":()=>{this.stzhReplay.emit({component:"stzh-audio"})},"onVds-error":t=>{this.stzhError.emit({component:"stzh-audio",originalEvent:t})}},i("audio",{preload:this.preload,src:this.src},i("slot",null))),i("div",{class:"stzh-audio__controls"},i("div",{class:"stzh-audio__loader-overlay"},i("stzh-loader",{class:"stzh-audio__loader",label:this.localization.loading,"hide-label":!0})),i("div",{class:"stzh-audio__controls-top"},i("vds-time-slider",{class:"stzh-audio__slider is-time"},i("div",{class:"stzh-audio__slider-track"}),i("div",{class:"stzh-audio__slider-track is-fill"}),i("div",{class:"stzh-audio__slider-thumb-container"},i("div",{class:"stzh-audio__slider-thumb"})),i("div",{class:"stzh-audio__media-preview-container"},i("vds-slider-value-text",{class:"stzh-audio__slider-text",type:"pointer",format:"time"})))),i("div",{class:"stzh-audio__controls-bottom"},i("stzh-tooltip",null,i("vds-play-button",{class:"stzh-audio__button is-play"},i("stzh-icon",{class:"stzh-audio__played",name:"play-filled"}),i("stzh-icon",{class:"stzh-audio__paused",name:"pause-filled"})),i("span",{slot:"content"},i("span",{class:"stzh-audio__played"},this.localization.play),i("span",{class:"stzh-audio__paused"},this.localization.pause))),i("div",{class:"stzh-audio__time"},i("vds-time",{type:"current"}),i("span",{class:"stzh-audio__time-separator"},"/"),i("vds-time",{type:"duration"})),i("stzh-tooltip",null,i("vds-mute-button",{class:"stzh-audio__button is-mute"},i("stzh-icon",{class:"stzh-audio__muted",name:"volume-medium"}),i("stzh-icon",{class:"stzh-audio__unmuted",name:"silent-mode"})),i("span",{slot:"content"},i("span",{class:"stzh-audio__muted"},this.localization.mute),i("span",{class:"stzh-audio__unmuted"},this.localization.unmute))),i("vds-volume-slider",{class:"stzh-audio__slider is-volume"},i("div",{class:"stzh-audio__slider-track"}),i("div",{class:"stzh-audio__slider-track is-fill"}),i("div",{class:"stzh-audio__slider-thumb-container"},i("div",{class:"stzh-audio__slider-thumb"})),i("div",{class:"stzh-audio__media-preview-container"},i("vds-slider-value-text",{class:"stzh-audio__slider-text",type:"pointer",format:"percent"}))),t&&i("stzh-tooltip",{content:this.transcriptShown?this.localization.hideTranscript:this.localization.showTranscript},i("button",{class:{"stzh-audio__button is-transcript":!0,"is-active":this.transcriptShown},onClick:()=>this.transcriptShown=!this.transcriptShown},i("stzh-icon",{name:"transcript"}))),i("stzh-tooltip",{content:this.localization.download},i("a",{class:"stzh-audio__button is-download",href:this.src,download:""},i("stzh-icon",{name:"download"}))))),i("div",{class:"stzh-audio__transcript",hidden:!this.transcriptShown},i("stzh-text",null,this.transcript?this.transcript:i("slot",{name:"transcript"})))))}get element(){return h(this)}};Js.style=".sc-stzh-audio-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-audio-h{display:none}.sc-stzh-audio-h *.sc-stzh-audio,.sc-stzh-audio-h *.sc-stzh-audio::before,.sc-stzh-audio-h *.sc-stzh-audio::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-audio.sc-stzh-audio{display:block;contain:none}.stzh-audio__audio.sc-stzh-audio{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-audio__controls.sc-stzh-audio{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.stzh-audio__controls-top.sc-stzh-audio{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--stzh-space-small)}.stzh-audio__controls-bottom.sc-stzh-audio{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.stzh-audio__controls.sc-stzh-audio,.stzh-audio__transcript.sc-stzh-audio{border:0.0625rem solid var(--stzh-base-border-color);padding:var(--stzh-space-medium) var(--stzh-space-xlarge)}.stzh-audio__controls.sc-stzh-audio{padding-bottom:var(--stzh-space-xsmall)}.stzh-audio__button.sc-stzh-audio{width:2.5rem;height:2.5rem;display:grid;place-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:var(--stzh-button-border-radius);-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);-webkit-transition-property:color, background-color;transition-property:color, background-color;color:var(--stzh-color-grey55)}.stzh-audio__button.is-play.sc-stzh-audio,.stzh-audio__button.is-mute.sc-stzh-audio,.stzh-audio__button.is-transcript.sc-stzh-audio{margin-right:var(--stzh-space-xsmall)}.stzh-audio__button.is-active.sc-stzh-audio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-audio__button.sc-stzh-audio:hover{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-audio__transcript.sc-stzh-audio{border-top:none}.stzh-audio__loader-overlay.sc-stzh-audio{display:grid;place-items:center;position:absolute;z-index:3;top:0;left:0;width:100%;height:100%;background-color:var(--stzh-color-white);opacity:0;visibility:hidden}.stzh-audio__time.sc-stzh-audio{font-size:var(--stzh-font-curve-p2-default-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-p2-default-text-line-height, var(--stzh-font-micro-text-line-height));display:-ms-inline-flexbox;display:inline-flex;margin-right:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-audio__time.sc-stzh-audio{font-size:var(--stzh-font-curve-p2-medium-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p2-medium-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p2-medium-text-letter-spacing)}}@media screen and (max-width: 599px){.stzh-audio__time.sc-stzh-audio{margin-right:auto}}.stzh-audio__time-separator.sc-stzh-audio{margin:0 var(--stzh-space-xxsmall)}.stzh-audio__slider.sc-stzh-audio{--height:1.1875rem;--thumb-width:0.8125rem;--track-height:0.3125rem;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:var(--height);border-radius:var(--stzh-button-border-radius)}.stzh-audio__slider.is-time.sc-stzh-audio{-ms-flex-positive:1;flex-grow:1}.stzh-audio__slider.is-volume.sc-stzh-audio{width:20%;min-width:5rem;max-width:6.875rem;display:none}@media screen and (min-width: 600px){.stzh-audio__slider.is-volume.sc-stzh-audio{display:-ms-flexbox;display:flex;margin-right:auto}}.stzh-audio__slider-track.sc-stzh-audio{width:100%;height:var(--track-height);position:absolute;top:50%;left:0;z-index:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);border-radius:0.25rem;background-color:var(--stzh-color-grey25)}.stzh-audio__slider-track.is-fill.sc-stzh-audio{background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transform-origin:left center;transform-origin:left center;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:calc(var(--vds-fill-rate) * 100%);z-index:1}.stzh-audio__slider-thumb-container.sc-stzh-audio{position:absolute;top:0;left:var(--vds-fill-percent);width:var(--thumb-width);height:100%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:2}.stzh-audio__slider[dragging].sc-stzh-audio .stzh-audio__slider-thumb-container.sc-stzh-audio{left:var(--vds-pointer-percent)}.stzh-audio__slider-thumb.sc-stzh-audio{position:absolute;top:50%;left:0;width:var(--thumb-width);height:var(--thumb-width);border-radius:50%;background-color:var(--stzh-color-white);-webkit-box-shadow:0 0 0 0.0625rem rgba(0, 0, 0, 0.25);box-shadow:0 0 0 0.0625rem rgba(0, 0, 0, 0.25);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.stzh-audio__media-preview-container.sc-stzh-audio{--width:2.625rem;--width-half:calc(var(--width) / 2);--top:-1.5rem;--left-clamp:max(var(--width-half), var(--vds-pointer-percent));--right-clamp:calc(100% - var(--width-half));--left:min(var(--left-clamp), var(--right-clamp));display:grid;place-items:center;position:absolute;width:var(--width);top:var(--top);left:var(--left);width:var(--width);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:var(--stzh-z-index-popover);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-tooltip-border-radius);background-color:var(--stzh-color-white)}@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-audio__media-preview-container.sc-stzh-audio{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}.stzh-audio__slider[pointing].sc-stzh-audio .stzh-audio__media-preview-container.sc-stzh-audio{opacity:1}.stzh-audio__slider-text.sc-stzh-audio{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}.stzh-audio[hide-ui].sc-stzh-audio .stzh-audio__controls.sc-stzh-audio{opacity:0;visibility:hidden}.stzh-audio[autoplay-error].sc-stzh-audio .stzh-audio__controls.sc-stzh-audio{opacity:1}.stzh-audio.sc-stzh-audio:not([can-play]) .stzh-audio__loader-overlay.sc-stzh-audio,.stzh-audio[waiting].sc-stzh-audio .stzh-audio__loader-overlay.sc-stzh-audio{opacity:0.8;visibility:visible}.stzh-audio[paused].sc-stzh-audio .stzh-audio__paused.sc-stzh-audio{display:none}.stzh-audio.sc-stzh-audio:not([paused]) .stzh-audio__played.sc-stzh-audio{display:none}.stzh-audio[muted].sc-stzh-audio .stzh-audio__muted.sc-stzh-audio{display:none}.stzh-audio.sc-stzh-audio:not([muted]) .stzh-audio__unmuted.sc-stzh-audio{display:none}";export{Js as stzh_audio}
@@ -0,0 +1 @@
1
+ import{r,h as s,c as t,g as o}from"./p-99a3742a.js";const e=class{constructor(s){r(this,s)}render(){return s(t,null,s("div",{class:{"stzh-hr":!0}}))}get element(){return o(this)}};e.style=".sc-stzh-hr-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-hr-h{display:none}.sc-stzh-hr-h *.sc-stzh-hr,.sc-stzh-hr-h *.sc-stzh-hr::before,.sc-stzh-hr-h *.sc-stzh-hr::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-hr-h{--border-color:var(--stzh-base-border-color)}.stzh-hr.sc-stzh-hr{display:-ms-flexbox;display:flex;height:0.0625rem;background-color:var(--border-color)}";export{e as stzh_hr}
@@ -0,0 +1 @@
1
+ import{r as i,h as s,c as e,g as a}from"./p-99a3742a.js";import{p as t}from"./p-77a00e55.js";const d=class{constructor(s){i(this,s),this.mikro=void 0,this.small=void 0,this.medium=void 0,this.large=void 0,this.ultra=void 0,this.hideFromDate=void 0}hideFromDateWatcher(i){this._hideFromDate="string"==typeof i?t(i):i}componentWillLoad(){this.hideFromDateWatcher(this.hideFromDate)}render(){return s(e,{hidden:this._hideFromDate&&Date.now()>=this._hideFromDate.getTime()},s("slot",null))}get element(){return a(this)}static get watchers(){return{hideFromDate:["hideFromDateWatcher"]}}};d.style=":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host{--show-display:block;--hide-display:none;display:var(--hide-display)}:host([mikro]){display:var(--show-display)}:host([mikro=false]){display:var(--hide-display)}@media screen and (min-width: 600px){:host([small]){display:var(--show-display)}}@media screen and (min-width: 600px){:host([small=false]){display:var(--hide-display)}}@media screen and (min-width: 1024px){:host([medium]){display:var(--show-display)}}@media screen and (min-width: 1024px){:host([medium=false]){display:var(--hide-display)}}@media screen and (min-width: 1260px){:host([large]){display:var(--show-display)}}@media screen and (min-width: 1260px){:host([large=false]){display:var(--hide-display)}}@media screen and (min-width: 1440px){:host([ultra]){display:var(--show-display)}}@media screen and (min-width: 1440px){:host([ultra=false]){display:var(--hide-display)}}";export{d as stzh_show}
@@ -1 +1 @@
1
- import{r as t,e as s,h as i,c as e,g as h}from"./p-99a3742a.js";import{i as a}from"./p-5c697491.js";import{w as o}from"./p-df2bb358.js";import{s as n,a as r,b as c}from"./p-5011f10c.js";const d=[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],l={duration:300,easing:"linear"},z=[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],p={duration:300,easing:"linear"};let b=0;const g=class{constructor(i){t(this,i),this.stzhOpen=s(this,"stzhOpen",7),this.stzhOpened=s(this,"stzhOpened",7),this.stzhClose=s(this,"stzhClose",7),this.stzhClosed=s(this,"stzhClosed",7),this.toggledByMethod=!1,this.onClickTrigger=()=>{this.toggle()},this.open=!1}async openWatcher(t){if(this.triggerElement){if(this.triggerElement.firstElementChild){const s=a(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(s?"a11y-expanded":"aria-expanded",t?"true":"false")}t?(this.toggledByMethod&&this.stzhOpen.emit({component:"stzh-accordion-item"}),await n(this.bodyElement),this.bodyElement.hidden=!1,await r(this.bodyElement,c(d,this.bodyElement.scrollHeight),l),this.bodyElement.style.height="auto",this.bodyElement.style.overflow="visible",this.toggledByMethod&&this.stzhOpened.emit({component:"stzh-accordion-item"})):(this.toggledByMethod&&this.stzhClose.emit({component:"stzh-accordion-item"}),await n(this.bodyElement),this.bodyElement.style.overflow="hidden",await r(this.bodyElement,c(z,this.bodyElement.scrollHeight),p),this.bodyElement.hidden=!0,this.bodyElement.style.height="0px",this.toggledByMethod&&this.stzhClosed.emit({component:"stzh-accordion-item"})),this.toggledByMethod=!1}}async show(){if(!this.open)return this.toggledByMethod=!0,this.open=!0,o(this.element,"stzhOpened")}async hide(){if(this.open)return this.toggledByMethod=!0,this.open=!1,o(this.element,"stzhClosed")}async toggle(){return this.open?await this.hide():await this.show()}componentWillLoad(){this.detailsId="stzh-details-"+b++}componentDidLoad(){if(this.bodyElement.hidden=!this.open,this.bodyElement.style.height=this.open?"auto":"0px",this.bodyElement.style.overflow=this.open?"visible":"hidden",this.triggerElement.firstElementChild){const t=a(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(t?"a11y-controls":"aria-controls",`${this.detailsId}-content`),this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded",this.open?"true":"false")}}connectedCallback(){var t;let s=null===(t=this.triggerElement)||void 0===t?void 0:t.firstElementChild;s||(s=Array.from(this.element.children).find((t=>!t.hasAttribute("slot")))),s&&s.addEventListener("click",this.onClickTrigger)}disconnectedCallback(){this.triggerElement&&this.triggerElement.firstElementChild&&this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger)}render(){return i(e,null,i("div",{class:{"stzh-details":!0,"stzh-details--is-open":this.open}},i("div",{ref:t=>this.triggerElement=t,class:"stzh-details__trigger"},i("slot",null)),i("div",{id:`${this.detailsId}-content`,ref:t=>this.bodyElement=t,class:"stzh-details__content","aria-labelledby":`${this.detailsId}-header`},i("div",{class:"stzh-details__content-inner"},i("slot",{name:"content"})))))}get element(){return h(this)}static get watchers(){return{open:["openWatcher"]}}};g.style=".sc-stzh-details-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-details-h{display:none}.sc-stzh-details-h *.sc-stzh-details,.sc-stzh-details-h *.sc-stzh-details::before,.sc-stzh-details-h *.sc-stzh-details::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-details-h{display:contents;--content-padding:0;--content-background:transparent;--content-grid-column:inherit;--content-border-bottom:none}.stzh-details.sc-stzh-details,.stzh-details__trigger.sc-stzh-details{display:contents}.stzh-details__content.sc-stzh-details{overflow:hidden;background-color:var(--content-background);grid-column:var(--content-grid-column);border-bottom:var(--content-border-bottom)}.stzh-details__content-inner.sc-stzh-details{padding:var(--content-padding)}";export{g as stzh_details}
1
+ import{r as t,e as s,h as i,c as e,g as h}from"./p-99a3742a.js";import{i as a}from"./p-5c697491.js";import{w as n}from"./p-df2bb358.js";import{s as o,a as r,b as c}from"./p-5011f10c.js";const d=[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],l={duration:300,easing:"linear"},z=[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],p={duration:300,easing:"linear"};let b=0;const g=class{constructor(i){t(this,i),this.stzhOpen=s(this,"stzhOpen",7),this.stzhOpened=s(this,"stzhOpened",7),this.stzhClose=s(this,"stzhClose",7),this.stzhClosed=s(this,"stzhClosed",7),this.toggledByMethod=!1,this.onClickTrigger=()=>{this.toggle()},this.open=!1}async openWatcher(t){if(this.triggerElement){if(this.triggerElement.firstElementChild){const s=a(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(s?"a11y-expanded":"aria-expanded",t?"true":"false")}t?(this.toggledByMethod&&this.stzhOpen.emit({component:"stzh-accordion-item"}),await o(this.bodyElement),this.bodyElement.hidden=!1,await r(this.bodyElement,c(d,this.bodyElement.scrollHeight),l),this.bodyElement.style.height="auto",this.bodyElement.style.overflow="visible",this.toggledByMethod&&this.stzhOpened.emit({component:"stzh-accordion-item"})):(this.toggledByMethod&&this.stzhClose.emit({component:"stzh-accordion-item"}),await o(this.bodyElement),this.bodyElement.style.overflow="hidden",await r(this.bodyElement,c(z,this.bodyElement.scrollHeight),p),this.bodyElement.hidden=!0,this.bodyElement.style.height="0px",this.toggledByMethod&&this.stzhClosed.emit({component:"stzh-accordion-item"})),this.toggledByMethod=!1}}async show(){if(!this.open)return this.toggledByMethod=!0,this.open=!0,n(this.element,"stzhOpened")}async hide(){if(this.open)return this.toggledByMethod=!0,this.open=!1,n(this.element,"stzhClosed")}async toggle(){return this.open?await this.hide():await this.show()}componentWillLoad(){this.detailsId="stzh-details-"+b++}componentDidLoad(){if(this.bodyElement.hidden=!this.open,this.bodyElement.style.height=this.open?"auto":"0px",this.bodyElement.style.overflow=this.open?"visible":"hidden",this.triggerElement.firstElementChild){const t=a(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(t?"a11y-controls":"aria-controls",`${this.detailsId}-content`),this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded",this.open?"true":"false")}}connectedCallback(){var t;let s=null===(t=this.triggerElement)||void 0===t?void 0:t.firstElementChild;s||(s=Array.from(this.element.children).find((t=>!t.hasAttribute("slot")))),s&&s.addEventListener("click",this.onClickTrigger)}disconnectedCallback(){this.triggerElement&&this.triggerElement.firstElementChild&&this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger)}render(){return i(e,null,i("div",{class:{"stzh-details":!0,"stzh-details--is-open":this.open}},i("div",{ref:t=>this.triggerElement=t,class:"stzh-details__trigger"},i("slot",null)),i("div",{id:`${this.detailsId}-content`,ref:t=>this.bodyElement=t,class:"stzh-details__content","aria-labelledby":`${this.detailsId}-header`},i("div",{class:"stzh-details__content-inner"},i("slot",{name:"content"})))))}get element(){return h(this)}static get watchers(){return{open:["openWatcher"]}}};g.style=".sc-stzh-details-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-details-h{display:none}.sc-stzh-details-h *.sc-stzh-details,.sc-stzh-details-h *.sc-stzh-details::before,.sc-stzh-details-h *.sc-stzh-details::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-details-h{display:contents;--content-padding:0;--content-background:transparent;--content-grid-column:inherit;--content-border-bottom:none}.stzh-details.sc-stzh-details,.stzh-details__trigger.sc-stzh-details{display:contents}.stzh-details__content.sc-stzh-details{overflow:hidden;background-color:var(--content-background);grid-column:var(--content-grid-column);border-bottom:var(--content-border-bottom)}.stzh-details__content-inner.sc-stzh-details{padding:var(--content-padding)}";export{g as stzh_details}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function r(e){try{l(s.next(e))}catch(t){o(t)}}function a(e){try{l(s["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(r,a)}l((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},s,i,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(a){if(s)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(n=0)),n)try{if(s=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(l){a=[6,l];i=0}finally{s=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-36e72c1d.system.js","./p-d4b7a303.system.js"],(function(e){"use strict";var t,n,s,i,o,r,a;return{setters:[function(e){t=e.r;n=e.h;s=e.c;i=e.e;o=e.F;r=e.g},function(e){a=e.h}],execute:function(){var l=".sc-stzh-menu-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-menu-h{display:none}.sc-stzh-menu-h *.sc-stzh-menu,.sc-stzh-menu-h *.sc-stzh-menu::before,.sc-stzh-menu-h *.sc-stzh-menu::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-menu-h .sc-stzh-menu-s>stzh-hr{margin-top:var(--stzh-space-xsmall);margin-bottom:var(--stzh-space-xsmall)}.stzh-menu.sc-stzh-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";var c=e("stzh_menu",function(){function e(e){t(this,e)}e.prototype.render=function(){return n(s,{role:"menu"},n("div",{class:"stzh-menu"},n("slot",null)))};return e}());c.style=l;var h=".sc-stzh-menu-item-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-menu-item-h{display:none}.sc-stzh-menu-item-h *.sc-stzh-menu-item,.sc-stzh-menu-item-h *.sc-stzh-menu-item::before,.sc-stzh-menu-item-h *.sc-stzh-menu-item::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-menu-item-h{--height:var(--stzh-menu-item-height);--color:var(--stzh-color-grey70);--background-color:transparent;--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-grey70);--hover-background-color:var(--stzh-color-grey5)}[active].sc-stzh-menu-item-h:not([active=false]){--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-color-primary8)}[disabled].sc-stzh-menu-item-h:not([disabled=false]){--color:var(--stzh-color-white);--background-color:var(--stzh-color-grey13);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-grey13)}.sc-stzh-menu-item-h .sc-stzh-menu-item-s>stzh-icon,.stzh-menu-item__icon.sc-stzh-menu-item{--size:var(--icon-size)}.stzh-menu-item.sc-stzh-menu-item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);font-family:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-text-decoration-line:none;text-decoration-line:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--color);background-color:var(--background-color);width:100%;height:var(--height);line-height:var(--height);-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);-webkit-transition-property:color, background-color, border-color;transition-property:color, background-color, border-color;cursor:pointer}.stzh-menu-item.sc-stzh-menu-item:hover{color:var(--hover-color);background-color:var(--hover-background-color)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:1em}.stzh-menu-item__badge.sc-stzh-menu-item{position:absolute;z-index:1;top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item+.stzh-menu-item__text.sc-stzh-menu-item:not(:empty){margin-left:var(--stzh-space-xsmall)}.stzh-menu-item__text.sc-stzh-menu-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-menu-item--is-disabled.sc-stzh-menu-item{cursor:not-allowed}";var u=e("stzh_menu_item",function(){function e(e){var n=this;t(this,e);this.stzhFocus=i(this,"stzhFocus",7);this.stzhBlur=i(this,"stzhBlur",7);this.focusedByInput=false;this.onRootFocus=function(){if(!n.focusedByInput){n.setFocus()}n.focusedByInput=false};this.onFocus=function(e){n.focusedByInput=true;var t=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(t);n.stzhFocus.emit({component:"stzh-menu-item",originalEvent:e})};this.onBlur=function(e){var t=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});n.element.dispatchEvent(t);n.stzhBlur.emit({component:"stzh-menu-item",originalEvent:e})};this.badge="";this.badgeType="default";this.badgeEmpty=false;this.disabled=false;this.active=false;this.icon="";this.label="";this.href="";this.target="";this.a11yLabel=undefined}e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.menuItem.focus();return[2]}))}))};e.prototype.renderInner=function(e){return n(o,null,e&&n("div",{class:"stzh-menu-item__icon-wrapper"},this.icon?n("stzh-icon",{class:"stzh-menu-item__icon",name:this.icon}):n("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&n("stzh-badge",{class:"stzh-menu-item__badge",label:this.badge,type:this.badgeType})),n("div",{class:"stzh-menu-item__text"},this.label?this.label:n("slot",null)))};e.prototype.render=function(){var e=this;var t=a(this.element,"icon")||!!this.icon;var i={"stzh-menu-item":true,"stzh-menu-item--has-icon":t,"stzh-menu-item--has-badge":!!this.badge,"stzh-menu-item--is-disabled":this.disabled,"stzh-menu-item--is-active":this.active};return n(s,{role:"menuitem",tabindex:this.disabled?null:"-1",onFocus:this.onRootFocus},this.href?n("a",{ref:function(t){return e.menuItem=t},href:this.disabled?null:this.href,target:this.target,class:i,"aria-label":this.a11yLabel,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(t)):n("button",{ref:function(t){return e.menuItem=t},class:i,type:"button",disabled:this.disabled,"aria-label":this.a11yLabel,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(t)))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());u.style=h}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,o){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function s(t){try{l(o.next(t))}catch(e){r(e)}}function a(t){try{l(o["throw"](t))}catch(e){r(e)}}function l(t){t.done?i(t.value):n(t.value).then(s,a)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,n,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(a){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(o=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;n=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(l){a=[6,l];n=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-36e72c1d.system.js","./p-0ce8b383.system.js","./p-9e30ee4a.system.js","./p-d4b7a303.system.js","./p-a408bfba.system.js","./p-5318ba20.system.js","./p-5494f37d.system.js"],(function(t){"use strict";var e,i,o,n,r,s,a,l,h,c,p,d,u,g,f,m,v,z;return{setters:[function(t){e=t.r;i=t.e;o=t.h;n=t.c;r=t.g},function(t){s=t.c;a=t.a;l=t.A;h=t.o;c=t.f;p=t.s;d=t.b},function(t){u=t.c},function(t){g=t.i},function(t){f=t.f},function(t){m=t.w},function(t){v=t.s;z=t.a}],execute:function(){var b=".sc-stzh-tooltip-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-tooltip-h{display:none}.sc-stzh-tooltip-h *.sc-stzh-tooltip,.sc-stzh-tooltip-h *.sc-stzh-tooltip::before,.sc-stzh-tooltip-h *.sc-stzh-tooltip::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-tooltip-h{--width:var(--stzh-tooltip-width);--min-width:var(--stzh-tooltip-min-width);--max-width:var(--stzh-tooltip-max-width);--padding:var(--stzh-tooltip-padding);--border-radius:var(--stzh-tooltip-border-radius)}.stzh-tooltip__arrow.sc-stzh-tooltip{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-tooltip--placement-bottom.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-bottom-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{top:0;-webkit-transform:translateY(-0.5rem);transform:translateY(-0.5rem)}.stzh-tooltip--placement-top.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-top-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{bottom:0;-webkit-transform:translateY(0.5rem) rotate(180deg);transform:translateY(0.5rem) rotate(180deg)}.stzh-tooltip--placement-left.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-left-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{right:0;-webkit-transform:translateX(0.75rem) rotate(90deg);transform:translateX(0.75rem) rotate(90deg)}.stzh-tooltip--placement-right.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-start.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip,.stzh-tooltip--placement-right-end.sc-stzh-tooltip .stzh-tooltip__arrow.sc-stzh-tooltip{left:0;-webkit-transform:translateX(-0.75rem) rotate(-90deg);transform:translateX(-0.75rem) rotate(-90deg)}.stzh-tooltip__content.sc-stzh-tooltip{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:absolute;z-index:var(--stzh-z-index-popover);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--border-radius);background-color:var(--stzh-color-white);width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-tooltip__content.sc-stzh-tooltip{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}.stzh-tooltip__content-slot.sc-stzh-tooltip{padding:var(--padding)}.stzh-tooltip__close.sc-stzh-tooltip{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background-color:transparent;padding:0;position:absolute;top:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-xxsmall);padding-bottom:var(--stzh-space-xxxsmall);color:var(--stzh-base-lead-color);border-radius:var(--stzh-button-border-radius)}.stzh-tooltip__icon.sc-stzh-tooltip{--size:var(--stzh-icon-size-xxsmall)}.stzh-tooltip__vhidden.sc-stzh-tooltip{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}";var y={keyframes:[{opacity:"0"},{opacity:"1"}],options:{duration:100,easing:"linear"}};var w={keyframes:[{opacity:"1"},{opacity:"0"}],options:{duration:200,easing:"linear"}};var _={ESC:27};var E=0;var x=t("stzh_tooltip",function(){function t(t){var o=this;e(this,t);this.stzhOpen=i(this,"stzhOpen",7);this.stzhOpened=i(this,"stzhOpened",7);this.stzhClose=i(this,"stzhClose",7);this.stzhClosed=i(this,"stzhClosed",7);this.toggledByMethod=false;this.isHovering=false;this.onEscKey=function(t){if(t.keyCode===_.ESC){o.hide()}};this.computePosition=function(){return __awaiter(o,void 0,void 0,(function(){var t,e,i,o,n,r,a,l,u;return __generator(this,(function(g){switch(g.label){case 0:if(!this.open){return[2]}return[4,s(this.triggerElement.firstElementChild,this.contentElement,{strategy:this.strategy,placement:this.placement,middleware:[h({mainAxis:this.distance,crossAxis:this.skidding}),c({padding:5}),p({padding:5}),d({element:this.arrowElement,padding:5})]})];case 1:t=g.sent(),e=t.x,i=e===void 0?0:e,o=t.y,n=o===void 0?0:o,r=t.strategy,a=r===void 0?"absolute":r,l=t.placement,u=t.middlewareData;this.middlewareData=u;this.computedPlacement=l;Object.assign(this.contentElement.style,{position:a,left:"".concat(i,"px"),top:"".concat(n,"px")});Object.assign(this.arrowElement.style,{left:i!=null?"".concat(u.arrow.x,"px"):"",top:n!=null?"".concat(u.arrow.y,"px"):""});return[2]}}))}))};this.onClickTrigger=function(){if(o.hasTrigger("click")){o.toggle()}};this.onMouseEnterTrigger=function(){if(o.hasTrigger("hover")){o.isHovering=true;o.show()}};this.onMouseLeaveTrigger=function(){if(o.hasTrigger("hover")){o.isHovering=false;document.addEventListener("mousemove",o.onMouseMoveDocument)}};this.onFocusTrigger=function(){if(o.hasTrigger("focus")){o.show()}};this.onBlurTrigger=function(){if(o.hasTrigger("focus")){o.hide()}};this.onMouseMoveDocument=function(t){var e=t.clientX,i=t.clientY;if(!o.computedPlacement){return true}var n=o.computedPlacement.split("-")[0];var r=o.middlewareData.offset;var s=o.contentElement.getBoundingClientRect();if(!r){return true}var a=n==="bottom"?r.y:0;var l=n==="top"?r.y:0;var h=n==="right"?r.x:0;var c=n==="left"?r.x:0;var p=s.top-i>a;var d=i-s.bottom>l;var u=s.left-e>h;var g=e-s.right>c;if(p||d||u||g){document.removeEventListener("mousemove",o.onMouseMoveDocument);if(!o.isHovering){o.hide()}}};this.open=false;this.label="";this.content="";this.placement="bottom";this.strategy="absolute";this.skidding=0;this.distance=16;this.interactive=false;this.trigger="hover focus";this.localization=undefined;this.computedPlacement=undefined}t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open){return[2]}this.toggledByMethod=true;this.open=true;return[2,m(this.element,"stzhOpened")]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open){return[2]}this.toggledByMethod=true;this.open=false;return[2,m(this.element,"stzhClosed")]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.open)return[3,2];return[4,this.hide()];case 1:return[2,t.sent()];case 2:return[4,this.show()];case 3:return[2,t.sent()]}}))}))};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.computePosition()];case 1:return[2,t.sent()]}}))}))};t.prototype.openWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!this.contentElement){return[2]}if(!t)return[3,3];if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-tooltip"})}return[4,v(this.contentElement)];case 1:e.sent();this.contentElement.style.willChange="transform, opacity, position, top, left, bottom, right";this.contentElement.hidden=false;return[4,z(this.contentElement,y.keyframes,y.options)];case 2:e.sent();if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-tooltip"})}return[3,6];case 3:if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-tooltip"})}return[4,v(this.contentElement)];case 4:e.sent();return[4,z(this.contentElement,w.keyframes,w.options)];case 5:e.sent();this.contentElement.hidden=true;this.contentElement.style.willChange="auto";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-tooltip"})}e.label=6;case 6:this.toggledByMethod=false;return[2]}}))}))};t.prototype.triggerWatcher=function(t){this._trigger=t.split(" ")};t.prototype.handleDocumentClick=function(t){if(!this.open){return}var e=t.target!==this.contentElement&&this.contentElement.contains(t.target)===false;var i=t.target===this.triggerElement||this.triggerElement.contains(t.target);if(e&&!i&&this.hasTrigger("click")){this.hide()}};t.prototype.hasTrigger=function(t){return this._trigger.indexOf(t)>-1};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.id="stzh-tooltip-".concat(E++);this.triggerWatcher(this.trigger);if(!!this.localization)return[3,2];t=this;return[4,f(this.element,"tooltip")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidRender=function(){this.computePosition();var t=g(this.triggerElement.firstElementChild);if(this.hasTrigger("click")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded",this.open?"true":"false");if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-describedby")||this.triggerElement.firstElementChild.getAttribute("aria-describedby")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-describedby":"aria-describedby","".concat(this.id,"-trigger-description"))}if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-label")||this.triggerElement.firstElementChild.getAttribute("aria-label")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-label":"aria-label",this.label)}}else{if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-describedby")||this.triggerElement.firstElementChild.getAttribute("aria-describedby")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-describedby":"aria-describedby","".concat(this.id,"-content"))}}if(this.trap){this.open?this.trap.activate():this.trap.deactivate()}};t.prototype.componentDidUpdate=function(){if(this.trap){this.trap.updateContainerElements(this.contentElement)}};t.prototype.componentDidLoad=function(){this.autoUpdateCleanup=a(this.element,this.contentElement,this.computePosition);if(this.interactive){this.trap=u(this.contentElement,{fallbackFocus:this.contentElement,clickOutsideDeactivates:true,returnFocusOnDeactivate:true});if(this.open){this.trap.activate()}}this.contentElement.hidden=!this.open};t.prototype.connectedCallback=function(){var t;var e=(t=this.triggerElement)===null||t===void 0?void 0:t.firstElementChild;if(!e){var i=Array.from(this.element.children).find((function(t){return!t.hasAttribute("slot")}));e=i}if(e){e.addEventListener("click",this.onClickTrigger);e.addEventListener("mouseenter",this.onMouseEnterTrigger);e.addEventListener("mouseleave",this.onMouseLeaveTrigger);e.addEventListener("focusin",this.onFocusTrigger);e.addEventListener("focusout",this.onBlurTrigger)}};t.prototype.disconnectedCallback=function(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.triggerElement&&this.triggerElement.firstElementChild){this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger);this.triggerElement.firstElementChild.removeEventListener("mouseenter",this.onMouseEnterTrigger);this.triggerElement.firstElementChild.removeEventListener("mouseleave",this.onMouseLeaveTrigger);this.triggerElement.firstElementChild.removeEventListener("focusin",this.onFocusTrigger);this.triggerElement.firstElementChild.removeEventListener("focusout",this.onBlurTrigger)}};t.prototype.render=function(){var t;var e=this;var i=(t={"stzh-tooltip":true},t["stzh-tooltip--open"]=this.open,t["stzh-tooltip--placement-".concat(this.computedPlacement)]=!!this.computedPlacement,t);return o(n,null,o("div",{class:i},o("div",{class:"stzh-tooltip__trigger",ref:function(t){return e.triggerElement=t}},o("slot",null)),this.hasTrigger("click")&&o("div",{class:"stzh-tooltip__vhidden",id:"".concat(this.id,"-trigger-description")},this.localization.open),o("div",{class:"stzh-tooltip__content",id:"".concat(this.id,"-content"),ref:function(t){return e.contentElement=t},tabindex:"-1","aria-labelledby":this.label?"".concat(this.id,"-label"):null,"aria-hidden":this.open?"false":"true",onKeyDown:this.onEscKey,onMouseEnter:this.onMouseEnterTrigger,onMouseLeave:this.onMouseLeaveTrigger,onFocusin:this.onFocusTrigger,onFocusout:this.onBlurTrigger},o("div",{class:"stzh-tooltip__arrow",ref:function(t){return e.arrowElement=t},innerHTML:l}),this.label&&o("h2",{id:"".concat(this.id,"-label"),class:"stzh-tooltip__vhidden"},this.label),this.hasTrigger("click")&&o("button",{class:"stzh-tooltip__close",onClick:function(){return e.hide()},type:"button"},o("stzh-icon",{name:"close",class:"stzh-tooltip__icon"}),o("span",{class:"stzh-tooltip__vhidden"},this.localization.close)),o("div",{class:"stzh-tooltip__content-slot"},this.content?this.content:o("slot",{name:"content"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openWatcher"],trigger:["triggerWatcher"]}},enumerable:false,configurable:true});return t}());x.style=b}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-36e72c1d.system.js","./p-d4b7a303.system.js"],(function(e){"use strict";var s,r,t,n,i;return{setters:[function(e){s=e.r;r=e.h;t=e.c;n=e.g},function(e){i=e.s}],execute:function(){var o=":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-readspeaker{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}.stzh-readspeaker[hidden]{display:none}.stzh-readspeaker *,.stzh-readspeaker *::before,.stzh-readspeaker *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.stzh-readspeaker .rsbtn_play{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-readspeaker .rsbtn_classic.rsexpanded .rsbtn_exp.rsimg{float:left;padding-bottom:0;-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover)}.rsbtn_classic.rsexpanded{position:absolute;max-width:100%;z-index:var(--stzh-z-index-sticky)}.rsbtn_classic.rsexpanded,.rsbtn_classic.rsexpanded *,.rsbtn_classic.rsexpanded *::after,.rsbtn_classic.rsexpanded *::before{-webkit-box-sizing:initial;box-sizing:initial}.rsbtn_classic.rsexpanded .rsbtn_playerarea{padding:0.625rem;border:none}.rsbtn_classic.rsexpanded .rsbtn_closer.rsimg{right:0.625rem;top:0.625rem}.rsbtn_classic.rsexpanded .rsbtn_settings .rsbtn_btnlabel.rsimg,.rsbtn_classic.rsexpanded .rsbtn_dl .rsbtn_btnlabel,.rsbtn_classic.rsexpanded .rsbtn_powered .rsbtn_btnlabel{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);height:auto}.rsbtn_classic.rsexpanded .rsbtn_bottomlinks{margin-top:0.3125rem}.rsbtn_classic.rsexpanded .rsbtn_topbar>*,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_icon,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_stop,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_pause,.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_volume,.rsbtn_classic.rsexpanded .rsbtn_closer,.rsbtn_classic.rsexpanded .rsbtn_progress_container.rsimg{border:0.375rem solid var(--stzh-color-grey13);border-radius:0.3125rem}.rsbtn_classic.rsexpanded .rsbtn_exp.rsimg .rsbtn_icon{border:0.3125rem solid var(--stzh-color-grey13)}.rsbtn_classic.rsexpanded .rsbtn_progress_container.rsimg{border:0.4375rem solid var(--stzh-color-grey13)}.rsbtn_classic.rsexpanded .rsbtn_topbar{margin-right:2.5rem}.rsbtn_classic.rspopup.rscompact{z-index:var(--stzh-z-index-sticky);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border:none;padding:0.625rem}.rsbtn_classic.rspopup.rscompact .rsbtn_play{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:1.25rem;height:1.25rem}.rsbtn_classic.rspopup.rscompact .rsbtn_play .rsbtn_left,.rsbtn_classic.rspopup.rscompact .rsbtn_play .rsbtn_right{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.rsbtn_classic.rspopup.rscompact .rsbtn_exp .rsbtn_separator{height:0.0625rem}";var a=e("stzh_readspeaker",function(){function e(e){var r=this;s(this,e);this.onLinkClick=function(){r.readspeakerLink.click()};this.init=function(){r.addClickEvents();var e=r.element.querySelectorAll("stzh-link, stzh-button");e.forEach((function(e){e.addEventListener("click",r.onLinkClick);i(e,{icon:"volume-medium"})}))};this.href=undefined;this.eventId=undefined}e.prototype.addClickEvents=function(){if(window.ReadSpeaker){window.ReadSpeaker.init()}if(window.rspkr&&window.rspkr.ui){window.rspkr.ui.addClickEvents()}};e.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}};e.prototype.render=function(){var e=this;var s={"stzh-readspeaker":true};return r(t,null,r("div",{class:s},r("slot",null),r("div",{class:"rs_skip rsbtn_classic rs_preserve right"},r("a",{"aria-hidden":"true",tabindex:"-1",rel:"nofollow",class:"rsbtn_play icon read",href:this.href,"data-rsevent-id":this.eventId,ref:function(s){return e.readspeakerLink=s}},r("span",{class:"rsbtn_text"},r("span",null,"readspeakerlink"))))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());a.style=o}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,s,i){function n(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,o){function r(e){try{h(i.next(e))}catch(t){o(t)}}function a(e){try{h(i["throw"](e))}catch(t){o(t)}}function h(e){e.done?s(e.value):n(e.value).then(r,a)}h((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return h([e,t])}}function h(a){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(s=0)),s)try{if(i=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:s.label++;return{value:a[1],done:false};case 5:s.label++;n=a[1];a=[0];continue;case 7:a=s.ops.pop();s.trys.pop();continue;default:if(!(o=s.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){s=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(a[0]===6&&s.label<o[1]){s.label=o[1];o=a;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(a);break}if(o[2])s.ops.pop();s.trys.pop();continue}a=t.call(e,s)}catch(h){a=[6,h];n=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-36e72c1d.system.js","./p-5db542ae.system.js","./p-a408bfba.system.js","./p-3a73b8b5.system.js"],(function(e){"use strict";var t,s,i,n,o,r,a;return{setters:[function(e){t=e.r;s=e.e;i=e.h;n=e.c;o=e.g},function(e){r=e.j},function(e){a=e.f},function(){}],execute:function(){var h=".sc-stzh-message-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-message-h{display:none}.sc-stzh-message-h *.sc-stzh-message,.sc-stzh-message-h *.sc-stzh-message::before,.sc-stzh-message-h *.sc-stzh-message::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-message-h{--background-color:var(--stzh-color-white);--icon-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--close-color:var(--stzh-color-grey70);--label-color:var(--stzh-base-color);--description-color:var(--stzh-base-color);--priority-high-link-color:var(--stzh-base-invert-color);--priority-high-link-hover-color:var(--stzh-base-invert-color)}[type=success].sc-stzh-message-h{--label-color:var(--stzh-color-truegreen);--icon-color:var(--stzh-color-truegreen)}[type=warning].sc-stzh-message-h{--label-color:var(--stzh-color-warning);--icon-color:var(--stzh-color-warning)}[type=error].sc-stzh-message-h{--label-color:var(--stzh-color-error);--icon-color:var(--stzh-color-error)}.stzh-message.sc-stzh-message{padding:var(--stzh-space-medium);position:relative;display:-ms-flexbox;display:flex;-webkit-box-shadow:var(--stzh-box-shadow-message);box-shadow:var(--stzh-box-shadow-message);background-color:var(--background-color);border-radius:var(--stzh-button-border-radius)}@media screen and (min-width: 1024px){.stzh-message.sc-stzh-message{padding:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-message.sc-stzh-message{padding:var(--stzh-space-xlarge)}}.stzh-message__content.sc-stzh-message{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 600px){.stzh-message__content.sc-stzh-message{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}}.stzh-message__icon-wrapper.sc-stzh-message{display:-ms-flexbox;display:flex}.stzh-message__icon.sc-stzh-message{--size:var(--stzh-icon-size-large);color:var(--icon-color)}@media screen and (min-width: 600px){.stzh-message__text-wrapper.sc-stzh-message{-ms-flex-positive:1;flex-grow:1;margin-left:var(--stzh-space-small)}}.stzh-message__label.sc-stzh-message{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h4-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-h4-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-h4-default-text-letter-spacing);margin-top:var(--stzh-space-small);color:var(--label-color)}@media screen and (min-width: 1024px){.stzh-message__label.sc-stzh-message{font-size:var(--stzh-font-curve-h4-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h4-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-h4-medium-text-letter-spacing)}}@media screen and (min-width: 600px){.stzh-message__label.sc-stzh-message{margin-top:0}}.stzh-message__description.sc-stzh-message{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);color:var(--description-color)}@media screen and (min-width: 1024px){.stzh-message__description.sc-stzh-message{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-message__link.sc-stzh-message:not(:empty){margin-top:var(--stzh-space-large)}}.stzh-message__description.sc-stzh-message:empty+.stzh-message__link.sc-stzh-message{margin-top:0}.stzh-message__close[variant=tertiary].sc-stzh-message{--color:var(--close-color);position:absolute;top:0;right:0}";var c="stzh-components-message-close";var l=e("stzh_message",function(){function e(e){var i=this;t(this,e);this.stzhOpen=s(this,"stzhOpen",7);this.stzhClose=s(this,"stzhClose",7);this.onCloseButtonClick=function(){i.hide()};this.label="";this.description="";this.closeKey="";this.type="info";this.hideClose=false;this.localization=undefined;this.open=true}e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;this.stzhOpen.emit({component:"stzh-message"});return[2]}))}))};e.prototype.hide=function(e){if(e===void 0){e=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;this.stzhClose.emit({component:"stzh-message"});if(this.closeKey&&e){r.set("".concat(c,"-").concat(this.closeKey),Date.now().toString())}return[2]}))}))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(s){switch(s.label){case 0:if(this.closeKey){e=r.get("".concat(c,"-").concat(this.closeKey));if(e){this.hide(false)}}if(!!this.localization)return[3,2];t=this;return[4,a(this.element,"message")];case 1:t.localization=s.sent();s.label=2;case 2:return[2]}}))}))};e.prototype.render=function(){var e;var t=(e={"stzh-message":true,"stzh-message--has-close-hidden":this.hideClose},e["stzh-message--type-".concat(this.type)]=!!this.type,e);return i(n,{hidden:!this.open},i("div",{class:t},i("div",{class:"stzh-message__content"},i("div",{class:"stzh-message__icon-wrapper"},i("stzh-icon",{class:"stzh-message__icon",name:this.type==="info"&&"info-help"||this.type==="success"&&"checkmark-circle"||this.type==="warning"&&"warning"||this.type==="error"&&"important-warning"})),i("div",{class:"stzh-message__text-wrapper"},i("div",{class:"stzh-message__label"},this.label),i("div",{class:"stzh-message__description"},this.description?this.description:i("slot",null)),i("div",{class:"stzh-message__link"},i("slot",{name:"link"})))),!this.hideClose&&i("stzh-button",{class:"stzh-message__close",onClick:this.onCloseButtonClick,a11yLabel:this.localization.close,variant:"tertiary",size:"small",iconOnly:true,icon:"close"})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());l.style=h}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,r,i){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function s(e){try{h(i.next(e))}catch(t){a(t)}}function n(e){try{h(i["throw"](e))}catch(t){a(t)}}function h(e){e.done?r(e.value):o(e.value).then(s,n)}h((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,s;return s={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function n(e){return function(t){return h([e,t])}}function h(n){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,n[0]&&(r=0)),r)try{if(i=1,o&&(a=n[0]&2?o["return"]:n[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,n[1])).done)return a;if(o=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:r.label++;return{value:n[1],done:false};case 5:r.label++;o=n[1];n=[0];continue;case 7:n=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){r=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){r.label=n[1];break}if(n[0]===6&&r.label<a[1]){r.label=a[1];a=n;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(n);break}if(a[2])r.ops.pop();r.trys.pop();continue}n=t.call(e,r)}catch(h){n=[6,h];o=0}finally{i=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};System.register(["./p-36e72c1d.system.js","./p-d4b7a303.system.js","./p-176db2fe.system.js"],(function(e){"use strict";var t,r,i,o,a,s,n,h,l;return{setters:[function(e){t=e.r;r=e.h;i=e.c;o=e.g},function(e){a=e.s;s=e.h},function(e){n=e.a;h=e.r;l=e.m}],execute:function(){var c=function(e){if(e){var t=function(e){return[].slice.call(e)},r=0,i=1,o=2,a=3,s=[],n=null,h="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(n),n=e.requestAnimationFrame((function(){return c(s.filter((function(e){return e.dirty&&e.active})))}))}:function(){},l=function(e){return function(){s.forEach((function(t){return t.dirty=e})),h()}},c=function(e){e.filter((function(e){return!e.styleComputed})).forEach((function(e){e.styleComputed=d(e)})),e.filter(u).forEach(v);var t=e.filter(z);t.forEach(g),t.forEach((function(e){v(e),p(e)})),t.forEach(m)},p=function(e){return e.dirty=r},g=function(e){e.availableWidth=e.element.parentNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.currentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.currentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFontSize===e.minSize?"normal":"nowrap"},z=function(e){return e.dirty!==o||e.dirty===o&&e.element.parentNode.clientWidth!==e.availableWidth},d=function(t){var r=e.getComputedStyle(t.element,null);return t.currentFontSize=parseFloat(r.getPropertyValue("font-size")),t.display=r.getPropertyValue("display"),t.whiteSpace=r.getPropertyValue("white-space"),!0},u=function(e){var t=!1;return!e.preStyleTestCompleted&&(/inline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace&&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},v=function(e){e.element.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element.style.fontSize=e.currentFontSize+"px"},m=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSize,scaleFactor:e.currentFontSize/e.previousFontSize}}))},f=function(e,t){return function(){e.dirty=t,e.active&&h()}},b=function(e){return function(){s=s.filter((function(t){return t.element!==e.element})),e.observeMutations&&e.observer.disconnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.display=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize}},x=function(e){return function(){e.active||(e.active=!0,h())}},w=function(e){return function(){return e.active=!1}},_=function(e){e.observeMutations&&(e.observer=new MutationObserver(f(e,i)),e.observer.observe(e.element,e.observeMutations))},y={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},k=null,S=function(){e.clearTimeout(k),k=e.setTimeout(l(o),W.observeWindowDelay)},F=["resize","orientationchange"];return Object.defineProperty(W,"observeWindow",{set:function(t){var r="".concat(t?"add":"remove","EventListener");F.forEach((function(t){e[r](t,S)}))}}),W.observeWindow=!0,W.observeWindowDelay=100,W.fitAll=l(a),W}function E(e,t){var r=Object.assign({},y,t),i=e.map((function(e){var t=Object.assign({},r,{element:e,active:!0});return function(e){e.originalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display,fontSize:e.element.style.fontSize},_(e),e.newbie=!0,e.dirty=!0,s.push(e)}(t),{element:e,fit:f(t,a),unfreeze:x(t),freeze:w(t),unsubscribe:b(t)}}));return h(),i}function W(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?E(t(document.querySelectorAll(e)),r):E([e],r)[0]}}("undefined"==typeof window?null:window);var p=".sc-stzh-pagetitle-hero-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-hero-h{display:none}.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::before,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>img[slot=image],.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>[slot=image] img{display:block;position:absolute;width:100%;height:100%;top:0;left:0;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter]{--color:var(--stzh-base-invert-color);--border-color:var(--stzh-base-invert-color);--remove-color:var(--stzh-base-invert-color);--background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--counter-color:var(--stzh-color-white56);--icon-color:var(--stzh-base-invert-color);--hover-color:var(--stzh-base-invert-color);--hover-border:0.0625rem solid transparent;--hover-background-color:var(--stzh-color-white16);--hover-remove-color:var(--stzh-base-invert-color);--hover-remove-background-color:var(--stzh-color-white16);--hover-counter-color:var(--stzh-base-invert-color);--hover-icon-color:var(--stzh-base-invert-color)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter][non-interactive]:not([non-interactive=false]){--hover-color:var(--color);--hover-border-color:var(--border-color);--hover-background-color:var(--background-color);--hover-icon-color:var(--icon-color);--hover-counter-color:var(--counter-color)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][active]:not([active=false]){--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:transparent;--remove-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--background-color:var(--stzh-base-invert-color);--icon-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--counter-color:var(--stzh-color-primary60op);--hover-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-border-color:transparent;--hover-background-color:var(--stzh-color-white72);--hover-remove-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-remove-background-color:var(--stzh-color-white16);--hover-icon-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-counter-color:var(--stzh-color-primary60op)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][disabled]:not([disabled=false]){--color:var(--stzh-color-white32);--border-color:var(--stzh-color-white32);--remove-color:var(--stzh-color-white32);--background-color:transparent;--icon-color:var(--stzh-color-white32);--counter-color:var(--stzh-color-white16);--hover-color:var(--stzh-color-white32);--hover-border-color:var(--stzh-color-white32);--hover-background-color:transparent;--hover-remove-color:var(--stzh-color-white32);--hover-remove-background-color:transparent;--hover-icon-color:var(--stzh-color-white32);--hover-counter-color:var(--stzh-color-white16)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag]:not(:last-child){margin-right:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero.sc-stzh-pagetitle-hero{padding-top:var(--stzh-space-xxlarge)}}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero{list-style:none;padding:0;margin:0;display:-ms-flexbox;display:flex}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero:not(:empty){margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{position:absolute;left:0;top:0}}@media screen and (max-width: 1023px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero:not(:empty){margin:var(--stzh-space-xlarge) 0}}.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{--stzh-flyingfocus-color:var(--stzh-base-invert-color);--stzh-base-color:var(--stzh-base-invert-color);--stzh-base-lead-color:var(--stzh-base-invert-color);--stzh-base-border-color:var(--stzh-base-invert-color);--stzh-heading-color:var(--stzh-base-invert-color);--stzh-link-color:var(--stzh-base-invert-color);--stzh-link-hover-color:var(--stzh-base-invert-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:1;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding:var(--stzh-space-xxxlarge) var(--stzh-space-xlarge);margin-top:calc(var(--stzh-space-xxxlarge) * -1)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xxxxlarge) var(--stzh-space-xxlarge);margin-top:calc(var(--stzh-space-big) * -1)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin:var(--stzh-space-big) 0;width:50%;margin-left:-8.3333333333%}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xbig)}}.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-white);margin:0;font-size:1.875rem;line-height:1.107;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:normal;word-break:normal;word-break:break-word}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-size:2.8125rem}}.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-h3-default-text-letter-spacing);margin-top:var(--stzh-space-xlarge);color:var(--stzh-color-white)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-text-line-height, var(--stzh-font-deci-text-line-height));letter-spacing:var(--stzh-font-curve-h3-small-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-text-line-height, var(--stzh-font-regular-text-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxxlarge);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 600px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row;flex-direction:row}}.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{position:relative;-ms-flex-negative:0;flex-shrink:0;background-color:var(--stzh-color-grey5);margin-left:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2);margin-right:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{width:58.3333333333%;margin-left:0;margin-right:0}}.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{position:relative;width:100%;height:0;padding-bottom:75%}@media screen and (min-width: 600px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:56.25%}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:75%}}.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin:0 auto;margin-bottom:var(--stzh-space-large)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge);max-width:66.6666666667%}}.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin-right:-8.3333333333%}}.stzh-pagetitle-hero--has-no-lead.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:column;flex-direction:column;margin-top:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{width:100%;margin:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xlarge);margin-bottom:var(--stzh-space-xlarge);position:static}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxlarge)}}";var g=e("stzh_pagetitle_hero",function(){function e(e){var r=this;t(this,e);this.init=function(){var e=r.element.querySelector('stzh-link[slot="back-link"], [slot="back-link"] stzh-link');var t=r.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text');var i=r.element.querySelectorAll('stzh-chip[slot="tag"], [slot="tag"] stzh-chip');if(e){a(e,{icon:"arrow-left-circle"})}t.forEach((function(e){a(e,{lead:true})}));i.forEach((function(e){a(e,{role:"listitem"})}))};this.reinitFitty=function(){r.destroyFitty();var e=l("small").matches;r.fitty=c(r.mainTitleElement,{minSize:e?45:32,maxSize:e?96:64})};this.heading="";this.leadAuthor="";this.subtitle=""}e.prototype.destroyFitty=function(){if(this.fitty){this.fitty.unsubscribe();this.fitty=null}};e.prototype.componentWillUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.destroyFitty();return[2]}))}))};e.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.fitty){return[2]}this.reinitFitty();return[2]}))}))};e.prototype.connectedCallback=function(){this.init();n(this.reinitFitty);this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}h(this.reinitFitty);this.destroyFitty()};e.prototype.render=function(){var e=this;var t=s(this.element,"image");var o=s(this.element,"lead");var a=s(this.element,"back-link");var n={"stzh-pagetitle-hero":true,"stzh-pagetitle-hero--has-no-image":!t,"stzh-pagetitle-hero--has-no-lead":!o,"stzh-pagetitle-hero--has-back-link":a};return r(i,null,r("div",{class:n},r("div",{class:"stzh-pagetitle-hero__header"},r("div",{class:"stzh-pagetitle-hero__back-link"},r("slot",{name:"back-link"})),r("div",{class:"stzh-pagetitle-hero__image-wrapper"},r("div",{class:"stzh-pagetitle-hero__image-ratio"}),r("slot",{name:"image"})),r("div",{class:"stzh-pagetitle-hero__title-wrapper"},r("div",{class:"stzh-pagetitle-hero__tags",role:"list"},r("slot",{name:"tag"})),r("div",{class:"stzh-pagetitle-hero__title-parent"},r("h1",{ref:function(t){return e.mainTitleElement=t},class:"stzh-pagetitle-hero__title"},this.heading)),this.subtitle&&r("div",{class:"stzh-pagetitle-hero__subtitle"},this.subtitle))),r("div",{class:"stzh-pagetitle-hero__lead"},r("slot",{name:"lead"}),r("div",{class:"stzh-pagetitle-hero__lead-author"},this.leadAuthor))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());g.style=p}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-36e72c1d.system.js"],(function(e){"use strict";var s,a,t;return{setters:[function(e){s=e.r;a=e.h;t=e.c}],execute:function(){var i=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}:host{--space:var(--stzh-space-default);--around:0;display:-ms-flexbox;display:flex;clear:both}:host::after{content:"";display:table;clear:both}:host ::slotted(*){max-width:100%;padding:calc((var(--space) / 2) * var(--around));margin:calc((var(--space) / 2) * (1 - var(--around)))}:host ::slotted(stzh-vspace),:host ::slotted(stzh-hspace),:host ::slotted(stzh-row),:host ::slotted(stzh-container),:host ::slotted(stzh-section){-ms-flex-item-align:stretch;align-self:stretch;-ms-flex-positive:1;flex-grow:1}:host(:empty){--around:1;width:var(--space);height:var(--space)}:host([around]:not([around=false])){--around:1}:host([border=top]),:host([border=top-bottom]){border-top:0.0625rem solid var(--stzh-base-border-color)}:host([border=bottom]),:host([border=top-bottom]){border-bottom:0.0625rem solid var(--stzh-base-border-color)}:host([border=left]),:host([border=left-right]){border-left:0.0625rem solid var(--stzh-base-border-color)}:host([border=right]),:host([border=left-right]){border-right:0.0625rem solid var(--stzh-base-border-color)}:host([curve=tiny]){--space:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){:host([curve=tiny]){--space:var(--stzh-space-small)}}@media screen and (min-width: 1260px){:host([curve=tiny]){--space:var(--stzh-space-medium)}}:host([curve=small]){--space:var(--stzh-space-small)}@media screen and (min-width: 1024px){:host([curve=small]){--space:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){:host([curve=small]){--space:var(--stzh-space-large)}}:host([curve=regular]){--space:var(--stzh-space-medium)}@media screen and (min-width: 1024px){:host([curve=regular]){--space:var(--stzh-space-large)}}@media screen and (min-width: 1260px){:host([curve=regular]){--space:var(--stzh-space-xlarge)}}:host([curve=medium]){--space:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){:host([curve=medium]){--space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){:host([curve=medium]){--space:var(--stzh-space-xxxlarge)}}:host([curve=large]){--space:var(--stzh-space-xxlarge)}@media screen and (min-width: 1024px){:host([curve=large]){--space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){:host([curve=large]){--space:var(--stzh-space-xxxxlarge)}}:host([curve=big]){--space:var(--stzh-space-xxxlarge)}@media screen and (min-width: 600px){:host([curve=big]){--space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){:host([curve=big]){--space:var(--stzh-space-big)}}@media screen and (min-width: 1260px){:host([curve=big]){--space:var(--stzh-space-xbig)}}:host([curve=huge]){--space:var(--stzh-space-xxxxlarge)}@media screen and (min-width: 600px){:host([curve=huge]){--space:var(--stzh-space-big)}}@media screen and (min-width: 1024px){:host([curve=huge]){--space:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){:host([curve=huge]){--space:var(--stzh-space-huge)}}:host([size=xxxsmall]){--space:var(--stzh-space-xxxsmall)}:host([size=xxsmall]){--space:var(--stzh-space-xxsmall)}:host([size=xsmall]){--space:var(--stzh-space-xsmall)}:host([size=small]){--space:var(--stzh-space-small)}:host([size=medium]){--space:var(--stzh-space-medium)}:host([size=large]){--space:var(--stzh-space-large)}:host([size=xlarge]){--space:var(--stzh-space-xlarge)}:host([size=xxlarge]){--space:var(--stzh-space-xxlarge)}:host([size=xxxlarge]){--space:var(--stzh-space-xxxlarge)}:host([size=xxxxlarge]){--space:var(--stzh-space-xxxxlarge)}:host([size=big]){--space:var(--stzh-space-big)}:host([size=xbig]){--space:var(--stzh-space-xbig)}:host([size=huge]){--space:var(--stzh-space-huge)}:host([size=xhuge]){--space:var(--stzh-space-xhuge)}:host([size=none]){--space:var(--stzh-space-none)}:host([size=default]){--space:var(--stzh-space-default)}@media screen and (min-width: 600px){:host([size-small=xxxsmall]){--space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 600px){:host([size-small=xxsmall]){--space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 600px){:host([size-small=xsmall]){--space:var(--stzh-space-xsmall)}}@media screen and (min-width: 600px){:host([size-small=small]){--space:var(--stzh-space-small)}}@media screen and (min-width: 600px){:host([size-small=medium]){--space:var(--stzh-space-medium)}}@media screen and (min-width: 600px){:host([size-small=large]){--space:var(--stzh-space-large)}}@media screen and (min-width: 600px){:host([size-small=xlarge]){--space:var(--stzh-space-xlarge)}}@media screen and (min-width: 600px){:host([size-small=xxlarge]){--space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 600px){:host([size-small=xxxlarge]){--space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 600px){:host([size-small=xxxxlarge]){--space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 600px){:host([size-small=big]){--space:var(--stzh-space-big)}}@media screen and (min-width: 600px){:host([size-small=xbig]){--space:var(--stzh-space-xbig)}}@media screen and (min-width: 600px){:host([size-small=huge]){--space:var(--stzh-space-huge)}}@media screen and (min-width: 600px){:host([size-small=xhuge]){--space:var(--stzh-space-xhuge)}}@media screen and (min-width: 600px){:host([size-small=none]){--space:var(--stzh-space-none)}}@media screen and (min-width: 600px){:host([size-small=default]){--space:var(--stzh-space-default)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxsmall]){--space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=xxsmall]){--space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=xsmall]){--space:var(--stzh-space-xsmall)}}@media screen and (min-width: 800px){:host([size-smallheader=small]){--space:var(--stzh-space-small)}}@media screen and (min-width: 800px){:host([size-smallheader=medium]){--space:var(--stzh-space-medium)}}@media screen and (min-width: 800px){:host([size-smallheader=large]){--space:var(--stzh-space-large)}}@media screen and (min-width: 800px){:host([size-smallheader=xlarge]){--space:var(--stzh-space-xlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxlarge]){--space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxlarge]){--space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=xxxxlarge]){--space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 800px){:host([size-smallheader=big]){--space:var(--stzh-space-big)}}@media screen and (min-width: 800px){:host([size-smallheader=xbig]){--space:var(--stzh-space-xbig)}}@media screen and (min-width: 800px){:host([size-smallheader=huge]){--space:var(--stzh-space-huge)}}@media screen and (min-width: 800px){:host([size-smallheader=xhuge]){--space:var(--stzh-space-xhuge)}}@media screen and (min-width: 800px){:host([size-smallheader=none]){--space:var(--stzh-space-none)}}@media screen and (min-width: 800px){:host([size-smallheader=default]){--space:var(--stzh-space-default)}}@media screen and (min-width: 1024px){:host([size-medium=xxxsmall]){--space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1024px){:host([size-medium=xxsmall]){--space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1024px){:host([size-medium=xsmall]){--space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1024px){:host([size-medium=small]){--space:var(--stzh-space-small)}}@media screen and (min-width: 1024px){:host([size-medium=medium]){--space:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){:host([size-medium=large]){--space:var(--stzh-space-large)}}@media screen and (min-width: 1024px){:host([size-medium=xlarge]){--space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxlarge]){--space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxxlarge]){--space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=xxxxlarge]){--space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1024px){:host([size-medium=big]){--space:var(--stzh-space-big)}}@media screen and (min-width: 1024px){:host([size-medium=xbig]){--space:var(--stzh-space-xbig)}}@media screen and (min-width: 1024px){:host([size-medium=huge]){--space:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){:host([size-medium=xhuge]){--space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1024px){:host([size-medium=none]){--space:var(--stzh-space-none)}}@media screen and (min-width: 1024px){:host([size-medium=default]){--space:var(--stzh-space-default)}}@media screen and (min-width: 1260px){:host([size-large=xxxsmall]){--space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1260px){:host([size-large=xxsmall]){--space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1260px){:host([size-large=xsmall]){--space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1260px){:host([size-large=small]){--space:var(--stzh-space-small)}}@media screen and (min-width: 1260px){:host([size-large=medium]){--space:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){:host([size-large=large]){--space:var(--stzh-space-large)}}@media screen and (min-width: 1260px){:host([size-large=xlarge]){--space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxlarge]){--space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxxlarge]){--space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){:host([size-large=xxxxlarge]){--space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1260px){:host([size-large=big]){--space:var(--stzh-space-big)}}@media screen and (min-width: 1260px){:host([size-large=xbig]){--space:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){:host([size-large=huge]){--space:var(--stzh-space-huge)}}@media screen and (min-width: 1260px){:host([size-large=xhuge]){--space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1260px){:host([size-large=none]){--space:var(--stzh-space-none)}}@media screen and (min-width: 1260px){:host([size-large=default]){--space:var(--stzh-space-default)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxsmall]){--space:var(--stzh-space-xxxsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=xxsmall]){--space:var(--stzh-space-xxsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=xsmall]){--space:var(--stzh-space-xsmall)}}@media screen and (min-width: 1440px){:host([size-ultra=small]){--space:var(--stzh-space-small)}}@media screen and (min-width: 1440px){:host([size-ultra=medium]){--space:var(--stzh-space-medium)}}@media screen and (min-width: 1440px){:host([size-ultra=large]){--space:var(--stzh-space-large)}}@media screen and (min-width: 1440px){:host([size-ultra=xlarge]){--space:var(--stzh-space-xlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxlarge]){--space:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxlarge]){--space:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=xxxxlarge]){--space:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 1440px){:host([size-ultra=big]){--space:var(--stzh-space-big)}}@media screen and (min-width: 1440px){:host([size-ultra=xbig]){--space:var(--stzh-space-xbig)}}@media screen and (min-width: 1440px){:host([size-ultra=huge]){--space:var(--stzh-space-huge)}}@media screen and (min-width: 1440px){:host([size-ultra=xhuge]){--space:var(--stzh-space-xhuge)}}@media screen and (min-width: 1440px){:host([size-ultra=none]){--space:var(--stzh-space-none)}}@media screen and (min-width: 1440px){:host([size-ultra=default]){--space:var(--stzh-space-default)}}.stzh-space{-ms-flex-positive:1;flex-grow:1;width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:start;align-items:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:calc((var(--space) / -2) * var(--around));margin:calc((var(--space) / -2) * (1 - var(--around)));}.stzh-space--is-around{padding:calc((var(--space) / 2) * var(--around));margin:calc((var(--space) / 2) * (1 - var(--around)))}.stzh-space--justify-center{-ms-flex-pack:center;justify-content:center}.stzh-space--justify-end{-ms-flex-pack:end;justify-content:flex-end}.stzh-space--justify-between{-ms-flex-pack:justify;justify-content:space-between}.stzh-space--justify-around{-ms-flex-pack:distribute;justify-content:space-around}.stzh-space--justify-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.stzh-space--items-end{-ms-flex-align:end;align-items:flex-end}.stzh-space--items-center{-ms-flex-align:center;align-items:center}.stzh-space--items-baseline{-ms-flex-align:baseline;align-items:baseline}.stzh-space--items-stretch{-ms-flex-align:stretch;align-items:stretch}';var r=e("stzh_space",function(){function e(e){s(this,e);this.curve="none";this.size="inherit";this.sizeSmall="inherit";this.sizeMedium="inherit";this.sizeLarge="inherit";this.sizeUltra="inherit";this.justify="start";this.items="start";this.around=false;this.border="none"}e.prototype.render=function(){var e;return a(t,null,a("div",{class:(e={"stzh-space":true,"stzh-space--is-around":this.around},e["stzh-space--justify-".concat(this.justify)]=!!this.justify,e["stzh-space--items-".concat(this.items)]=!!this.items,e)},a("slot",null)))};return e}());r.style=i}}}));
@@ -1 +1 @@
1
- import{r as t,h as s,c as e,g as a}from"./p-99a3742a.js";import{s as i,h}from"./p-5c697491.js";const l=class{constructor(s){t(this,s),this.init=()=>{const t=this.element.querySelectorAll('stzh-heading[slot="heading"], [slot="heading"] stzh-heading'),s=this.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text'),e=this.element.querySelectorAll('stzh-link[slot="action-left"], stzh-link[slot="action-right"], [slot="action-left"] stzh-link, [slot="action-right"] stzh-link'),a=this.element.querySelectorAll('stzh-link[slot="action-right"], [slot="action-right"] stzh-link');t.forEach((t=>{i(t,{withBorder:!0})})),s.forEach((t=>{i(t,{lead:!0})})),a.forEach((t=>{i(t,{icon:"web-link"})})),e.forEach((t=>{i(t,{size:"small"})}))}}connectedCallback(){this.init(),this.observer=new MutationObserver(this.init),this.observer.observe(this.element,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer&&this.observer.disconnect()}render(){const t=h(this.element,"heading"),a=h(this.element,"image"),i=h(this.element,"lead"),l=h(this.element,"action-left"),n=h(this.element,"action-right");return s(e,null,s("div",{class:{"stzh-pagetitle":!0,"stzh-pagetitle--has-heading":t,"stzh-pagetitle--has-image":a,"stzh-pagetitle--has-lead":i,"stzh-pagetitle--has-action":l||n,"stzh-pagetitle--has-action-left":l,"stzh-pagetitle--has-action-right":n}},s("slot",{name:"heading"}),s("div",{class:"stzh-pagetitle__actions"},s("slot",{name:"action-left"}),s("slot",{name:"action-right"})),s("slot",{name:"image"}),s("slot",{name:"lead"})))}get element(){return a(this)}};l.style=".sc-stzh-pagetitle-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-h{display:none}.sc-stzh-pagetitle-h *.sc-stzh-pagetitle,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::before,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-xlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle__actions.sc-stzh-pagetitle{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";export{l as stzh_pagetitle}
1
+ import{r as t,h as s,c as e,g as a}from"./p-99a3742a.js";import{s as i,h}from"./p-5c697491.js";const l=class{constructor(s){t(this,s),this.init=()=>{const t=this.element.querySelectorAll('stzh-heading[slot="heading"], [slot="heading"] stzh-heading'),s=this.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text'),e=this.element.querySelectorAll('stzh-link[slot="action-left"], stzh-link[slot="action-right"], [slot="action-left"] stzh-link, [slot="action-right"] stzh-link'),a=this.element.querySelectorAll('stzh-link[slot="action-right"], [slot="action-right"] stzh-link');t.forEach((t=>{i(t,{withBorder:!0})})),s.forEach((t=>{i(t,{lead:!0})})),a.forEach((t=>{i(t,{icon:"web-link"})})),e.forEach((t=>{i(t,{size:"small"})}))}}connectedCallback(){this.init(),this.observer=new MutationObserver(this.init),this.observer.observe(this.element,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer&&this.observer.disconnect()}render(){const t=h(this.element,"heading"),a=h(this.element,"image"),i=h(this.element,"lead"),l=h(this.element,"action-left"),n=h(this.element,"action-right");return s(e,null,s("div",{class:{"stzh-pagetitle":!0,"stzh-pagetitle--has-heading":t,"stzh-pagetitle--has-image":a,"stzh-pagetitle--has-lead":i,"stzh-pagetitle--has-action":l||n,"stzh-pagetitle--has-action-left":l,"stzh-pagetitle--has-action-right":n}},s("slot",{name:"heading"}),s("div",{class:"stzh-pagetitle__actions"},s("slot",{name:"action-left"}),s("slot",{name:"action-right"})),s("slot",{name:"image"}),s("slot",{name:"lead"})))}get element(){return a(this)}};l.style=".sc-stzh-pagetitle-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-h{display:none}.sc-stzh-pagetitle-h *.sc-stzh-pagetitle,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::before,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-xlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle__actions.sc-stzh-pagetitle{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";export{l as stzh_pagetitle}