markdown-flow-ui 0.2.13 → 0.2.15

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 (475) hide show
  1. package/README.md +7 -0
  2. package/dist/_virtual/index.es3.js +5 -4
  3. package/dist/_virtual/index.es3.js.map +1 -1
  4. package/dist/_virtual/index.es4.js +4 -5
  5. package/dist/_virtual/index.es4.js.map +1 -1
  6. package/dist/_virtual/index3.cjs +1 -1
  7. package/dist/_virtual/index4.cjs +1 -1
  8. package/dist/assets/markdown-flow-ui.css +10 -1
  9. package/dist/components/ContentRender/CodeBlock.cjs +1 -1
  10. package/dist/components/ContentRender/CodeBlock.cjs.map +1 -1
  11. package/dist/components/ContentRender/CodeBlock.d.ts +5 -0
  12. package/dist/components/ContentRender/CodeBlock.es.js +41 -38
  13. package/dist/components/ContentRender/CodeBlock.es.js.map +1 -1
  14. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  15. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  16. package/dist/components/ContentRender/ContentRender.d.ts +9 -4
  17. package/dist/components/ContentRender/ContentRender.es.js +389 -298
  18. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  19. package/dist/components/ContentRender/IframeSandbox.cjs +7 -7
  20. package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
  21. package/dist/components/ContentRender/IframeSandbox.d.ts +5 -1
  22. package/dist/components/ContentRender/IframeSandbox.es.js +311 -266
  23. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  24. package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
  25. package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
  26. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +5 -1
  27. package/dist/components/ContentRender/MarkdownFlowInput.es.js +37 -32
  28. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  29. package/dist/components/ContentRender/SandboxApp.cjs +2 -2
  30. package/dist/components/ContentRender/SandboxApp.cjs.map +1 -1
  31. package/dist/components/ContentRender/SandboxApp.d.ts +5 -1
  32. package/dist/components/ContentRender/SandboxApp.es.js +108 -103
  33. package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
  34. package/dist/components/ContentRender/blackboard-vendor.d.ts +1 -1
  35. package/dist/components/ContentRender/contentRenderI18n.cjs +1 -1
  36. package/dist/components/ContentRender/contentRenderI18n.cjs.map +1 -1
  37. package/dist/components/ContentRender/contentRenderI18n.d.ts +6 -1
  38. package/dist/components/ContentRender/contentRenderI18n.es.js +5 -56
  39. package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -1
  40. package/dist/components/ContentRender/contentRenderI18n.test.d.ts +1 -0
  41. package/dist/components/ContentRender/index.cjs +1 -1
  42. package/dist/components/ContentRender/index.d.ts +11 -11
  43. package/dist/components/ContentRender/index.es.js +1 -2
  44. package/dist/components/ContentRender/index.es.js.map +1 -1
  45. package/dist/components/ContentRender/locales/contentRender.json.cjs +2 -0
  46. package/dist/components/ContentRender/locales/contentRender.json.cjs.map +1 -0
  47. package/dist/components/ContentRender/locales/contentRender.json.d.ts +90 -0
  48. package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -0
  49. package/dist/components/ContentRender/locales/contentRender.json.es.js.map +1 -0
  50. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  51. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  52. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +7 -3
  53. package/dist/components/ContentRender/plugins/CustomVariable.es.js +165 -151
  54. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  55. package/dist/components/ContentRender/plugins/MermaidChart.cjs +1 -1
  56. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  57. package/dist/components/ContentRender/plugins/MermaidChart.d.ts +1 -0
  58. package/dist/components/ContentRender/plugins/MermaidChart.es.js +68 -44
  59. package/dist/components/ContentRender/plugins/MermaidChart.es.js.map +1 -1
  60. package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
  61. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
  62. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +12 -4
  63. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +51 -39
  64. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  65. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs +1 -1
  66. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
  67. package/dist/components/MarkdownFlow/ScrollToBottomButton.d.ts +31 -1
  68. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js +46 -17
  69. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
  70. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +2 -0
  71. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -0
  72. package/dist/components/MarkdownFlow/ScrollToBottomControl.d.ts +18 -0
  73. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +47 -0
  74. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -0
  75. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs +1 -1
  76. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs.map +1 -1
  77. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -1
  78. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js +33 -52
  79. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js.map +1 -1
  80. package/dist/components/MarkdownFlow/index.cjs +1 -1
  81. package/dist/components/MarkdownFlow/index.d.ts +9 -6
  82. package/dist/components/MarkdownFlow/index.es.js +6 -6
  83. package/dist/components/MarkdownFlow/index.es.js.map +1 -1
  84. package/dist/components/MarkdownFlow/useScrollToBottom.cjs +1 -1
  85. package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
  86. package/dist/components/MarkdownFlow/useScrollToBottom.d.ts +40 -8
  87. package/dist/components/MarkdownFlow/useScrollToBottom.es.js +352 -83
  88. package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
  89. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  90. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  91. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +5 -3
  92. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +371 -324
  93. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  94. package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs +1 -1
  95. package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs.map +1 -1
  96. package/dist/components/MarkdownFlowEditor/components/CustomDialog.d.ts +10 -0
  97. package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js +22 -19
  98. package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js.map +1 -1
  99. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +1 -1
  100. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +1 -1
  101. package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +8 -0
  102. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +19 -15
  103. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +1 -1
  104. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
  105. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  106. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +4 -1
  107. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +99 -93
  108. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
  109. package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs +1 -1
  110. package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs.map +1 -1
  111. package/dist/components/MarkdownFlowEditor/components/ImageInject.d.ts +1 -1
  112. package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js +183 -182
  113. package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js.map +1 -1
  114. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +1 -1
  115. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +1 -1
  116. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +1 -1
  117. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +107 -103
  118. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +1 -1
  119. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
  120. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
  121. package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +1 -1
  122. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +106 -106
  123. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
  124. package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs +1 -1
  125. package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs.map +1 -1
  126. package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js +64 -63
  127. package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js.map +1 -1
  128. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs +1 -1
  129. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs.map +1 -1
  130. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js +13 -13
  131. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js.map +1 -1
  132. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +1 -1
  133. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +1 -1
  134. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +12 -12
  135. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +1 -1
  136. package/dist/components/MarkdownFlowEditor/editor-context.d.ts +1 -1
  137. package/dist/components/MarkdownFlowEditor/editorI18n.cjs +1 -1
  138. package/dist/components/MarkdownFlowEditor/editorI18n.cjs.map +1 -1
  139. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +290 -0
  140. package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -8
  141. package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
  142. package/dist/components/MarkdownFlowEditor/editorI18n.test.d.ts +1 -0
  143. package/dist/components/MarkdownFlowEditor/index.d.ts +6 -6
  144. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +2 -0
  145. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs.map +1 -0
  146. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +72 -0
  147. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +140 -0
  148. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -0
  149. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  150. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -0
  151. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +118 -114
  152. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
  153. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  154. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -0
  155. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +118 -114
  156. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
  157. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +2 -0
  158. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs.map +1 -0
  159. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +72 -0
  160. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +140 -0
  161. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -0
  162. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  163. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -0
  164. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +70 -66
  165. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
  166. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
  167. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
  168. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +40 -35
  169. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
  170. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
  171. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
  172. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
  173. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +27 -23
  174. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
  175. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs +2 -0
  176. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs.map +1 -0
  177. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.d.ts +7 -0
  178. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js +12 -0
  179. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js.map +1 -0
  180. package/dist/components/MarkdownFlowEditor/utils.d.ts +1 -1
  181. package/dist/components/Slide/MarkdownSlideScaling.cjs +1 -1
  182. package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
  183. package/dist/components/Slide/MarkdownSlideScaling.d.ts +1 -1
  184. package/dist/components/Slide/MarkdownSlideScaling.es.js +20 -20
  185. package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
  186. package/dist/components/Slide/MobilePlayerSettingsSheet.cjs +1 -1
  187. package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.map +1 -1
  188. package/dist/components/Slide/MobilePlayerSettingsSheet.d.ts +7 -2
  189. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +61 -57
  190. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js.map +1 -1
  191. package/dist/components/Slide/Player.cjs +1 -1
  192. package/dist/components/Slide/Player.cjs.map +1 -1
  193. package/dist/components/Slide/Player.d.ts +6 -6
  194. package/dist/components/Slide/Player.es.js +547 -541
  195. package/dist/components/Slide/Player.es.js.map +1 -1
  196. package/dist/components/Slide/Slide.cjs +1 -1
  197. package/dist/components/Slide/Slide.cjs.map +1 -1
  198. package/dist/components/Slide/Slide.d.ts +14 -12
  199. package/dist/components/Slide/Slide.es.js +745 -726
  200. package/dist/components/Slide/Slide.es.js.map +1 -1
  201. package/dist/components/Slide/SubtitleOverlay.cjs +1 -1
  202. package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
  203. package/dist/components/Slide/SubtitleOverlay.d.ts +2 -2
  204. package/dist/components/Slide/SubtitleOverlay.es.js +17 -17
  205. package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
  206. package/dist/components/Slide/diff-utils.d.ts +1 -1
  207. package/dist/components/Slide/index.d.ts +12 -12
  208. package/dist/components/Slide/locales/slide.json.cjs +2 -0
  209. package/dist/components/Slide/locales/slide.json.cjs.map +1 -0
  210. package/dist/components/Slide/locales/slide.json.d.ts +205 -0
  211. package/dist/components/Slide/locales/slide.json.es.js +11 -0
  212. package/dist/components/Slide/locales/slide.json.es.js.map +1 -0
  213. package/dist/components/Slide/slideI18n.cjs +1 -1
  214. package/dist/components/Slide/slideI18n.cjs.map +1 -1
  215. package/dist/components/Slide/slideI18n.d.ts +6 -3
  216. package/dist/components/Slide/slideI18n.es.js +10 -155
  217. package/dist/components/Slide/slideI18n.es.js.map +1 -1
  218. package/dist/components/Slide/useSlide.d.ts +1 -1
  219. package/dist/components/Slide/utils/appendedMarkerAdvance.d.ts +1 -1
  220. package/dist/components/Slide/utils/audioSegments.d.ts +1 -1
  221. package/dist/components/Slide/utils/interactionResolution.d.ts +2 -2
  222. package/dist/components/Slide/utils/listenModeElementList.d.ts +2 -2
  223. package/dist/components/Slide/utils/markdownScaling.d.ts +1 -1
  224. package/dist/components/Slide/utils/playerCustomActions.d.ts +2 -2
  225. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs +1 -1
  226. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs.map +1 -1
  227. package/dist/components/Slide/utils/playerKeyboardShortcuts.d.ts +1 -1
  228. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js +20 -20
  229. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js.map +1 -1
  230. package/dist/components/Slide/utils/runStreamFixture.d.ts +1 -1
  231. package/dist/components/Slide/utils/segmentSeek.d.ts +1 -1
  232. package/dist/components/Slide/utils/silentStepAutoAdvance.d.ts +1 -1
  233. package/dist/components/Slide/utils/streamingNavigation.d.ts +1 -1
  234. package/dist/components/Slide/utils/subtitleCue.d.ts +1 -1
  235. package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +1 -1
  236. package/dist/components/index.d.ts +22 -18
  237. package/dist/components/ui/button.cjs +1 -1
  238. package/dist/components/ui/button.cjs.map +1 -1
  239. package/dist/components/ui/button.es.js +12 -13
  240. package/dist/components/ui/button.es.js.map +1 -1
  241. package/dist/components/ui/checkbox.cjs +1 -1
  242. package/dist/components/ui/checkbox.cjs.map +1 -1
  243. package/dist/components/ui/checkbox.es.js +35 -35
  244. package/dist/components/ui/checkbox.es.js.map +1 -1
  245. package/dist/components/ui/dialog.cjs +1 -1
  246. package/dist/components/ui/dialog.cjs.map +1 -1
  247. package/dist/components/ui/dialog.d.ts +5 -1
  248. package/dist/components/ui/dialog.es.js +37 -37
  249. package/dist/components/ui/dialog.es.js.map +1 -1
  250. package/dist/components/ui/input.cjs +1 -1
  251. package/dist/components/ui/input.cjs.map +1 -1
  252. package/dist/components/ui/input.es.js +4 -4
  253. package/dist/components/ui/input.es.js.map +1 -1
  254. package/dist/components/ui/inputGroup/button.cjs +1 -1
  255. package/dist/components/ui/inputGroup/button.cjs.map +1 -1
  256. package/dist/components/ui/inputGroup/button.es.js +9 -10
  257. package/dist/components/ui/inputGroup/button.es.js.map +1 -1
  258. package/dist/components/ui/inputGroup/input-group.cjs +1 -1
  259. package/dist/components/ui/inputGroup/input-group.cjs.map +1 -1
  260. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  261. package/dist/components/ui/inputGroup/input-group.es.js +10 -10
  262. package/dist/components/ui/inputGroup/input-group.es.js.map +1 -1
  263. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  264. package/dist/components/ui/inputGroup/textarea.cjs.map +1 -1
  265. package/dist/components/ui/inputGroup/textarea.es.js +3 -3
  266. package/dist/components/ui/inputGroup/textarea.es.js.map +1 -1
  267. package/dist/components/ui/loading-overlay-card.cjs +2 -2
  268. package/dist/components/ui/loading-overlay-card.cjs.map +1 -1
  269. package/dist/components/ui/loading-overlay-card.es.js +11 -11
  270. package/dist/components/ui/loading-overlay-card.es.js.map +1 -1
  271. package/dist/components/ui/popover.cjs +1 -1
  272. package/dist/components/ui/popover.cjs.map +1 -1
  273. package/dist/components/ui/popover.es.js +6 -6
  274. package/dist/components/ui/popover.es.js.map +1 -1
  275. package/dist/components/ui/tooltip.cjs +1 -1
  276. package/dist/components/ui/tooltip.cjs.map +1 -1
  277. package/dist/components/ui/tooltip.es.js +16 -16
  278. package/dist/components/ui/tooltip.es.js.map +1 -1
  279. package/dist/editor.d.ts +2 -2
  280. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  281. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  282. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  283. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  284. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  285. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  286. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  287. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  288. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  289. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  290. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  291. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  292. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  293. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  294. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  295. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  296. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  297. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  298. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  299. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  300. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  301. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  302. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  303. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  304. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  305. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  306. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  307. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  308. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  309. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  310. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  311. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  312. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  313. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  314. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  315. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  316. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  317. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  318. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  319. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  320. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  321. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  322. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  323. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  324. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  325. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  326. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  327. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  328. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  329. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  330. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  331. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  332. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  333. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  334. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  335. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  336. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  337. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  338. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  339. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  340. package/dist/index.cjs +1 -1
  341. package/dist/index.d.ts +2 -2
  342. package/dist/index.es.js +22 -19
  343. package/dist/index.es.js.map +1 -1
  344. package/dist/lib/locale.cjs +1 -1
  345. package/dist/lib/locale.cjs.map +1 -1
  346. package/dist/lib/locale.d.ts +5 -1
  347. package/dist/lib/locale.es.js +26 -13
  348. package/dist/lib/locale.es.js.map +1 -1
  349. package/dist/lib/locale.test.d.ts +1 -0
  350. package/dist/lib/useDetachedLanguage.cjs +2 -0
  351. package/dist/lib/useDetachedLanguage.cjs.map +1 -0
  352. package/dist/lib/useDetachedLanguage.d.ts +3 -0
  353. package/dist/lib/useDetachedLanguage.es.js +25 -0
  354. package/dist/lib/useDetachedLanguage.es.js.map +1 -0
  355. package/dist/lib/useResolvedDirection.cjs +2 -0
  356. package/dist/lib/useResolvedDirection.cjs.map +1 -0
  357. package/dist/lib/useResolvedDirection.d.ts +6 -0
  358. package/dist/lib/useResolvedDirection.es.js +37 -0
  359. package/dist/lib/useResolvedDirection.es.js.map +1 -0
  360. package/dist/markdown-flow-ui-lib.css +1 -1
  361. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
  362. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  363. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +6 -6
  364. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -1
  365. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  366. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  367. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +21 -21
  368. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  369. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
  370. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  371. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +100 -100
  372. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
  373. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  374. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  375. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +38 -38
  376. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  377. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  378. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  379. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +9 -9
  380. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
  381. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
  382. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
  383. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +95 -95
  384. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
  385. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
  386. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  387. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +48 -48
  388. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
  389. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  390. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  391. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +6 -6
  392. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  393. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  394. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  395. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +9 -9
  396. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  397. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  398. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  399. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +17 -17
  400. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  401. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  402. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  403. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +100 -100
  404. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  405. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  406. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  407. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +6 -6
  408. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  409. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  410. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  411. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +27 -27
  412. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  413. package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.cjs → chevrons-down.cjs} +2 -2
  414. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -0
  415. package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.es.js → chevrons-down.es.js} +6 -3
  416. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -0
  417. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  418. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  419. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  420. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  421. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  422. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  423. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  424. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  425. package/dist/node_modules/react-markdown/lib/index.cjs +1 -1
  426. package/dist/node_modules/react-markdown/lib/index.cjs.map +1 -1
  427. package/dist/node_modules/react-markdown/lib/index.es.js +39 -39
  428. package/dist/node_modules/react-markdown/lib/index.es.js.map +1 -1
  429. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  430. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  431. package/dist/renderer.cjs +1 -1
  432. package/dist/renderer.d.ts +18 -17
  433. package/dist/renderer.es.js +20 -17
  434. package/dist/renderer.es.js.map +1 -1
  435. package/dist/scroll.cjs +2 -0
  436. package/dist/scroll.cjs.map +1 -0
  437. package/dist/scroll.d.ts +6 -0
  438. package/dist/scroll.es.js +9 -0
  439. package/dist/scroll.es.js.map +1 -0
  440. package/dist/slide.d.ts +3 -3
  441. package/package.json +13 -2
  442. package/dist/_virtual/jsx-runtime.cjs +0 -2
  443. package/dist/_virtual/jsx-runtime.cjs.map +0 -1
  444. package/dist/_virtual/jsx-runtime.es.js +0 -6
  445. package/dist/_virtual/jsx-runtime.es.js.map +0 -1
  446. package/dist/_virtual/jsx-runtime.es2.js +0 -5
  447. package/dist/_virtual/jsx-runtime.es2.js.map +0 -1
  448. package/dist/_virtual/jsx-runtime2.cjs +0 -2
  449. package/dist/_virtual/jsx-runtime2.cjs.map +0 -1
  450. package/dist/_virtual/react-jsx-runtime.development.cjs +0 -2
  451. package/dist/_virtual/react-jsx-runtime.development.cjs.map +0 -1
  452. package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
  453. package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
  454. package/dist/_virtual/react-jsx-runtime.production.cjs +0 -2
  455. package/dist/_virtual/react-jsx-runtime.production.cjs.map +0 -1
  456. package/dist/_virtual/react-jsx-runtime.production.es.js +0 -5
  457. package/dist/_virtual/react-jsx-runtime.production.es.js.map +0 -1
  458. package/dist/lib/localeTextMap.cjs +0 -2
  459. package/dist/lib/localeTextMap.cjs.map +0 -1
  460. package/dist/lib/localeTextMap.es.js +0 -5
  461. package/dist/lib/localeTextMap.es.js.map +0 -1
  462. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs.map +0 -1
  463. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.es.js.map +0 -1
  464. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
  465. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
  466. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -409
  467. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
  468. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
  469. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
  470. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -36
  471. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +0 -1
  472. package/dist/node_modules/react/jsx-runtime.cjs +0 -2
  473. package/dist/node_modules/react/jsx-runtime.cjs.map +0 -1
  474. package/dist/node_modules/react/jsx-runtime.es.js +0 -11
  475. package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
@@ -1,54 +1,57 @@
1
- import { j as n } from "../../_virtual/jsx-runtime.es.js";
2
- import rr, { memo as nr, useId as ur, useContext as sr, useRef as o, useState as Fe, useMemo as te, useCallback as r, useEffect as S } from "react";
3
- import { cn as Lt } from "../../lib/utils.es.js";
4
- import lr from "./MobilePlayerSettingsSheet.es.js";
5
- import { getSlidePlayerTexts as ar } from "./slideI18n.es.js";
6
- import { DEFAULT_MOBILE_VIEW_MODE as cr } from "./utils/mobileScreenMode.es.js";
7
- import { hasReachedAudioEnd as ir } from "./utils/audioCompletion.es.js";
8
- import { PlayerKeyboardShortcutContext as or } from "./utils/playerKeyboardShortcutContext.es.js";
9
- import { activatePlayerKeyboardShortcutOwner as fr, registerPlayerKeyboardShortcutOwner as dr, isActivePlayerKeyboardShortcutOwner as mr, getPlayerKeyboardShortcutAction as pr, shouldIgnorePlayerKeyboardShortcutEvent as hr } from "./utils/playerKeyboardShortcuts.es.js";
10
- import { resolveAudioPlaybackSourceType as yr } from "./utils/playbackSource.es.js";
11
- import { shouldKeepPlayingAfterNavigation as br } from "./utils/playbackPreference.es.js";
12
- import { toPlayerCustomActionList as Sr } from "./utils/playerCustomActions.es.js";
13
- import { suppressPlayerControlsWakeAfterNavigation as Pe } from "./utils/playerNavigationContext.es.js";
14
- import { isPlaybackTimeCoveredBySegments as vt, resolveSegmentSeekTarget as gr } from "./utils/segmentSeek.es.js";
15
- import { getSortedAudioSegments as At } from "./utils/audioSegments.es.js";
16
- import { getSubtitleCueJumpTarget as _r, shouldClearSubtitleCueJumpTarget as xr } from "./utils/subtitleCue.es.js";
1
+ import { jsxs as X, jsx as a, Fragment as cr } from "react/jsx-runtime";
2
+ import or, { memo as fr, useId as dr, useContext as mr, useRef as o, useState as He, useMemo as re, useCallback as r, useEffect as S } from "react";
3
+ import { getMarkdownFlowDirection as pr, getMarkdownFlowLanguage as hr } from "../../lib/locale.es.js";
4
+ import { useDetachedLanguage as yr } from "../../lib/useDetachedLanguage.es.js";
5
+ import { useResolvedDirection as br } from "../../lib/useResolvedDirection.es.js";
6
+ import { cn as Ft } from "../../lib/utils.es.js";
7
+ import Sr from "./MobilePlayerSettingsSheet.es.js";
8
+ import { getSlidePlayerTexts as gr } from "./slideI18n.es.js";
9
+ import { DEFAULT_MOBILE_VIEW_MODE as _r } from "./utils/mobileScreenMode.es.js";
10
+ import { hasReachedAudioEnd as kr } from "./utils/audioCompletion.es.js";
11
+ import { PlayerKeyboardShortcutContext as wr } from "./utils/playerKeyboardShortcutContext.es.js";
12
+ import { activatePlayerKeyboardShortcutOwner as Mr, registerPlayerKeyboardShortcutOwner as Cr, isActivePlayerKeyboardShortcutOwner as Lr, getPlayerKeyboardShortcutAction as vr, shouldIgnorePlayerKeyboardShortcutEvent as Tr } from "./utils/playerKeyboardShortcuts.es.js";
13
+ import { resolveAudioPlaybackSourceType as xr } from "./utils/playbackSource.es.js";
14
+ import { shouldKeepPlayingAfterNavigation as Ar } from "./utils/playbackPreference.es.js";
15
+ import { toPlayerCustomActionList as Nr } from "./utils/playerCustomActions.es.js";
16
+ import { suppressPlayerControlsWakeAfterNavigation as $e } from "./utils/playerNavigationContext.es.js";
17
+ import { isPlaybackTimeCoveredBySegments as Ut, resolveSegmentSeekTarget as Rr } from "./utils/segmentSeek.es.js";
18
+ import { getSortedAudioSegments as Pt } from "./utils/audioSegments.es.js";
19
+ import { getSubtitleCueJumpTarget as Er, shouldClearSubtitleCueJumpTarget as Kr } from "./utils/subtitleCue.es.js";
17
20
  /* empty css */
18
- import kr from "../../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js";
19
- import wr from "../../node_modules/lucide-react/dist/esm/icons/volume-2.es.js";
20
- import Mr from "../../node_modules/lucide-react/dist/esm/icons/skip-back.es.js";
21
- import Cr from "../../node_modules/lucide-react/dist/esm/icons/skip-forward.es.js";
22
- import Tr from "../../node_modules/lucide-react/dist/esm/icons/rewind.es.js";
23
- import Lr from "../../node_modules/lucide-react/dist/esm/icons/fast-forward.es.js";
24
- import vr from "../../node_modules/lucide-react/dist/esm/icons/captions.es.js";
25
- import Ar from "../../node_modules/lucide-react/dist/esm/icons/captions-off.es.js";
26
- import jr from "../../node_modules/lucide-react/dist/esm/icons/scan-line.es.js";
27
- import Nr from "../../node_modules/lucide-react/dist/esm/icons/maximize.es.js";
28
- import Rr from "../../node_modules/lucide-react/dist/esm/icons/file-pen-line.es.js";
29
- const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
30
- if (typeof window > "u" || !f || jt.has(f))
21
+ import Fr from "../../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js";
22
+ import Ur from "../../node_modules/lucide-react/dist/esm/icons/volume-2.es.js";
23
+ import Pr from "../../node_modules/lucide-react/dist/esm/icons/skip-back.es.js";
24
+ import Wr from "../../node_modules/lucide-react/dist/esm/icons/skip-forward.es.js";
25
+ import Br from "../../node_modules/lucide-react/dist/esm/icons/rewind.es.js";
26
+ import Or from "../../node_modules/lucide-react/dist/esm/icons/fast-forward.es.js";
27
+ import Vr from "../../node_modules/lucide-react/dist/esm/icons/captions.es.js";
28
+ import Hr from "../../node_modules/lucide-react/dist/esm/icons/captions-off.es.js";
29
+ import $r from "../../node_modules/lucide-react/dist/esm/icons/scan-line.es.js";
30
+ import Dr from "../../node_modules/lucide-react/dist/esm/icons/maximize.es.js";
31
+ import Jr from "../../node_modules/lucide-react/dist/esm/icons/file-pen-line.es.js";
32
+ const Wt = /* @__PURE__ */ new Map(), Bt = (f) => {
33
+ if (typeof window > "u" || !f || Wt.has(f))
31
34
  return;
32
35
  const d = window.document.createElement("audio");
33
- d.preload = "auto", d.setAttribute("playsinline", "true"), d.src = f, d.load(), jt.set(f, d);
34
- }, Er = (f, d) => d !== null && d.audioList === f && d.subtitleCueLists.length === f.length && f.every((a, _) => {
35
- const x = a.element?.subtitle_cues;
36
- return d.subtitleCueLists[_] === x && d.subtitleCueLengths[_] === (x?.length ?? 0);
37
- }), Kr = (f) => {
36
+ d.preload = "auto", d.setAttribute("playsinline", "true"), d.src = f, d.load(), Wt.set(f, d);
37
+ }, Zr = (f, d) => d !== null && d.audioList === f && d.subtitleCueLists.length === f.length && f.every((s, k) => {
38
+ const w = s.element?.subtitle_cues;
39
+ return d.subtitleCueLists[k] === w && d.subtitleCueLengths[k] === (w?.length ?? 0);
40
+ }), jr = (f) => {
38
41
  const d = f.map(
39
- (a) => a.element?.subtitle_cues
42
+ (s) => s.element?.subtitle_cues
40
43
  );
41
44
  return {
42
45
  audioList: f,
43
46
  subtitleCueLists: d,
44
47
  subtitleCueLengths: d.map(
45
- (a) => a?.length ?? 0
48
+ (s) => s?.length ?? 0
46
49
  ),
47
- tracks: d.map((a) => ({
48
- subtitleCues: a ?? []
50
+ tracks: d.map((s) => ({
51
+ subtitleCues: s ?? []
49
52
  }))
50
53
  };
51
- }, Ur = () => /* @__PURE__ */ n.jsxs(
54
+ }, zr = () => /* @__PURE__ */ X(
52
55
  "svg",
53
56
  {
54
57
  xmlns: "http://www.w3.org/2000/svg",
@@ -57,17 +60,17 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
57
60
  viewBox: "0 0 34 34",
58
61
  fill: "none",
59
62
  children: [
60
- /* @__PURE__ */ n.jsx(
63
+ /* @__PURE__ */ a(
61
64
  "path",
62
65
  {
63
66
  d: "M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",
64
67
  fill: "#0A0A0A"
65
68
  }
66
69
  ),
67
- /* @__PURE__ */ n.jsx("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
70
+ /* @__PURE__ */ a("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
68
71
  ]
69
72
  }
70
- ), Fr = () => /* @__PURE__ */ n.jsxs(
73
+ ), Yr = () => /* @__PURE__ */ X(
71
74
  "svg",
72
75
  {
73
76
  xmlns: "http://www.w3.org/2000/svg",
@@ -76,718 +79,721 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
76
79
  viewBox: "0 0 34 34",
77
80
  fill: "none",
78
81
  children: [
79
- /* @__PURE__ */ n.jsx(
82
+ /* @__PURE__ */ a(
80
83
  "path",
81
84
  {
82
85
  d: "M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",
83
86
  fill: "#0A0A0A"
84
87
  }
85
88
  ),
86
- /* @__PURE__ */ n.jsx("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
89
+ /* @__PURE__ */ a("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
87
90
  ]
88
91
  }
89
- ), J = {
92
+ ), V = {
90
93
  fullscreen: "F",
91
94
  next: "→",
92
95
  nextSubtitle: "Shift+→",
93
96
  notes: "N",
94
- playback: "Space",
95
97
  previous: "←",
96
98
  previousSubtitle: "Shift+←",
97
99
  subtitle: "C"
98
- }, Pr = 250, Wr = (f, d) => f ? `${f} (${d})` : d, Br = ({
100
+ }, Gr = 250, Qr = (f, d) => f ? `${f} (${d})` : d, Xr = ({
99
101
  audioList: f = [],
100
102
  className: d,
101
- currentAudioIndex: a = -1,
102
- defaultPlaying: _ = !0,
103
- isPlaybackPaused: x = !1,
103
+ currentAudioIndex: s = -1,
104
+ defaultPlaying: k = !0,
105
+ isPlaybackPaused: w = !1,
104
106
  isAutoAdvanceEnabled: Z = !0,
105
- useAutoAdvanceToggle: F = !1,
106
- onLoadingChange: We,
107
- onPlaybackPreferenceChange: Be,
108
- onPlaybackStarted: Oe,
109
- onPlaybackTimeChange: oe,
110
- onSubtitleToggle: re,
111
- onPrev: fe,
112
- onNext: de,
113
- onSubtitleJump: me,
114
- canJumpToSubtitleTarget: Te,
115
- onFullscreen: ne,
116
- isFullscreen: Ve = !1,
117
- mobileViewMode: Rt = cr,
118
- settingsPortalContainer: Et,
119
- onMobileViewModeChange: He,
120
- onEnded: $e,
121
- onAutoAdvanceToggle: Je,
122
- onInteractionToggle: pe,
123
- hasInteraction: Le = !1,
124
- isInteractionOpen: ue = !1,
125
- isSubtitleEnabled: ve = !0,
126
- prevDisabled: Ae = !1,
127
- nextDisabled: je = !1,
128
- showControls: Ne = !0,
129
- onControlsPointerEnter: Kt,
130
- onControlsPointerLeave: Ut,
131
- enableKeyboardShortcuts: Ft = !0,
132
- subtitleSeekRequest: O = null,
133
- customActions: Ze,
134
- customActionContext: ze,
135
- locale: Ye,
136
- texts: De,
137
- onFocusCapture: Ge,
138
- onPointerDown: Qe,
139
- ...Pt
107
+ useAutoAdvanceToggle: P = !1,
108
+ onLoadingChange: De,
109
+ onPlaybackPreferenceChange: Je,
110
+ onPlaybackStarted: Ze,
111
+ onPlaybackTimeChange: fe,
112
+ onSubtitleToggle: ne,
113
+ onPrev: de,
114
+ onNext: me,
115
+ onSubtitleJump: pe,
116
+ canJumpToSubtitleTarget: Ae,
117
+ onFullscreen: ue,
118
+ isFullscreen: je = !1,
119
+ mobileViewMode: Ot = _r,
120
+ settingsPortalContainer: Vt,
121
+ onMobileViewModeChange: ze,
122
+ onEnded: Ye,
123
+ onAutoAdvanceToggle: Ge,
124
+ onInteractionToggle: he,
125
+ hasInteraction: Ne = !1,
126
+ isInteractionOpen: le = !1,
127
+ isSubtitleEnabled: Re = !0,
128
+ prevDisabled: Ee = !1,
129
+ nextDisabled: Ke = !1,
130
+ showControls: Fe = !0,
131
+ onControlsPointerEnter: Ht,
132
+ onControlsPointerLeave: $t,
133
+ enableKeyboardShortcuts: Dt = !0,
134
+ subtitleSeekRequest: H = null,
135
+ customActions: Qe,
136
+ customActionContext: Xe,
137
+ locale: ye,
138
+ texts: qe,
139
+ onFocusCapture: Ie,
140
+ onPointerDown: et,
141
+ ...Ue
140
142
  }) => {
141
- const Wt = ur(), Xe = sr(or), M = o(null), qe = o(ue), E = o(null), Ie = o(null), K = o(0), m = o(null), he = o(void 0), j = o([]), se = o(
142
- F ? Z : _
143
- ), le = o(!1), et = o(!1), k = o(!1), U = o(null), z = o(null), v = o(!1), c = o(!1), w = o(null), N = o(!1), Y = o(null), ye = o(0), tt = o(() => {
144
- }), be = o(null), ae = o(null), rt = o(null), nt = o(null), P = o("unknown"), [Se, h] = Fe(_), [ut, X] = Fe(!1), [q, Bt] = Fe({
143
+ const Pe = Ue.dir ?? pr(ye), tt = Ue.lang ?? hr(ye), Jt = dr(), rt = mr(wr), g = o(null), { resolvedDirection: nt, readDirection: ut } = br(g, Pe), be = nt === "rtl", Zt = yr(g, tt), lt = o(le), K = o(null), at = o(null), F = o(0), m = o(null), Se = o(void 0), N = o([]), ae = o(
144
+ P ? Z : k
145
+ ), se = o(!1), st = o(!1), M = o(!1), U = o(null), j = o(null), x = o(!1), c = o(!1), C = o(null), R = o(!1), z = o(null), ge = o(0), it = o(() => {
146
+ }), _e = o(null), ie = o(null), ct = o(null), ot = o(null), W = o("unknown"), [ke, h] = He(k), [ft, q] = He(!1), [I, jt] = He({
145
147
  next: !1,
146
148
  previous: !1
147
- }), D = Xe?.ownerId ?? Wt, W = Ft && (Xe?.enabled ?? !0), p = a >= 0 ? f[a] : void 0, T = p?.audioUrl, st = p?.audioSegments, Ot = st?.length ?? 0, R = te(
148
- () => At(p),
149
- [p, Ot, st]
149
+ }), Y = rt?.ownerId ?? Jt, B = Dt && (rt?.enabled ?? !0), p = s >= 0 ? f[s] : void 0, v = p?.audioUrl, dt = p?.audioSegments, zt = dt?.length ?? 0, E = re(
150
+ () => Pt(p),
151
+ [p, zt, dt]
150
152
  );
151
- let ge = nt.current;
152
- Er(f, ge) || (ge = Kr(f), nt.current = ge);
153
- const lt = ge.tracks, at = te(
154
- () => Sr(Ze, ze),
155
- [ze, Ze]
156
- ), ct = at.length + 7, Vt = te(
153
+ let we = ot.current;
154
+ Zr(f, we) || (we = jr(f), ot.current = we);
155
+ const mt = we.tracks, pt = re(
156
+ () => Nr(Qe, Xe),
157
+ [Xe, Qe]
158
+ ), ht = pt.length + 7, Yt = re(
157
159
  () => ({
158
- "--slide-player-mobile-control-count": String(ct)
160
+ "--slide-player-mobile-control-count": String(ht)
159
161
  }),
160
- [ct]
161
- ), i = te(
162
+ [ht]
163
+ ), i = re(
162
164
  () => ({
163
- ...ar(Ye),
164
- ...De
165
+ ...gr(ye),
166
+ ...qe
165
167
  }),
166
- [Ye, De]
167
- ), Re = te(() => p ? p.audioKey ?? `${String(p.sequenceNumber ?? "none")}:${String(p.audioUrl ?? "")}` : "none", [p]), Ht = F ? Z : Se, it = F ? Z ? i.pauseAutoplayLabel : i.playAutoplayLabel : Se ? i.pauseLabel : i.playLabel, ot = Ve ? i.exitFullscreenLabel : i.enterFullscreenLabel, V = r(
168
- (e, t, s) => ({
169
- ariaKeyShortcuts: W ? s : void 0,
170
- title: W ? Wr(e, t) : e
168
+ [ye, qe]
169
+ ), We = re(() => p ? p.audioKey ?? `${String(p.sequenceNumber ?? "none")}:${String(p.audioUrl ?? "")}` : "none", [p]), Gt = P ? Z : ke, yt = P ? Z ? i.pauseAutoplayLabel : i.playAutoplayLabel : ke ? i.pauseLabel : i.playLabel, bt = je ? i.exitFullscreenLabel : i.enterFullscreenLabel, $ = r(
170
+ (e, t, u) => ({
171
+ ariaKeyShortcuts: B ? u : void 0,
172
+ title: B ? Qr(e, t) : e
171
173
  }),
172
- [W]
173
- ), ft = V(
174
+ [B]
175
+ ), St = $(
174
176
  i.subtitleToggleAriaLabel,
175
- J.subtitle,
177
+ V.subtitle,
176
178
  "c"
177
- ), dt = V(
179
+ ), gt = $(
178
180
  i.previousLabel,
179
- J.previous,
180
- "ArrowLeft"
181
- ), mt = V(
181
+ be ? V.next : V.previous,
182
+ be ? "ArrowRight" : "ArrowLeft"
183
+ ), _t = $(
182
184
  i.previousSubtitleLabel,
183
- J.previousSubtitle,
185
+ V.previousSubtitle,
184
186
  "Shift+ArrowLeft"
185
- ), pt = V(
186
- it,
187
- J.playback,
187
+ ), kt = $(
188
+ yt,
189
+ i.playbackShortcutLabel,
188
190
  "Space"
189
- ), ht = V(
191
+ ), wt = $(
190
192
  i.nextLabel,
191
- J.next,
192
- "ArrowRight"
193
- ), yt = V(
193
+ be ? V.previous : V.next,
194
+ be ? "ArrowLeft" : "ArrowRight"
195
+ ), Mt = $(
194
196
  i.nextSubtitleLabel,
195
- J.nextSubtitle,
197
+ V.nextSubtitle,
196
198
  "Shift+ArrowRight"
197
- ), bt = V(
198
- ot,
199
- J.fullscreen,
199
+ ), Ct = $(
200
+ bt,
201
+ V.fullscreen,
200
202
  "f"
201
- ), St = V(
203
+ ), Lt = $(
202
204
  i.notesLabel,
203
- J.notes,
205
+ V.notes,
204
206
  "n"
205
- ), _e = r(() => {
206
- W && fr(D);
207
- }, [D, W]), $t = r(
207
+ ), Me = r(() => {
208
+ B && Mr(Y);
209
+ }, [Y, B]), Qt = r(
208
210
  (e) => {
209
- _e(), Qe?.(e);
211
+ Me(), et?.(e);
210
212
  },
211
- [_e, Qe]
212
- ), Jt = r(
213
+ [Me, et]
214
+ ), Xt = r(
213
215
  (e) => {
214
- _e(), Ge?.(e);
216
+ Me(), Ie?.(e);
215
217
  },
216
- [_e, Ge]
218
+ [Me, Ie]
217
219
  );
218
220
  S(() => {
219
- he.current = p;
221
+ Se.current = p;
220
222
  }, [p]), S(() => {
221
- se.current = F ? Z : _;
222
- }, [_, Z, F]), S(() => {
223
- Ne || X(!1);
224
- }, [Ne]), S(() => {
225
- !qe.current && ue && X(!1), qe.current = ue;
226
- }, [ue]), S(() => {
227
- j.current = R;
228
- }, [R]), S(() => {
229
- const e = p?.audioUrl, t = a >= 0 ? f[a + 1]?.audioUrl : void 0;
230
- Nt(e), Nt(t);
231
- }, [f, p?.audioUrl, a]);
223
+ ae.current = P ? Z : k;
224
+ }, [k, Z, P]), S(() => {
225
+ Fe || q(!1);
226
+ }, [Fe]), S(() => {
227
+ !lt.current && le && q(!1), lt.current = le;
228
+ }, [le]), S(() => {
229
+ N.current = E;
230
+ }, [E]), S(() => {
231
+ const e = p?.audioUrl, t = s >= 0 ? f[s + 1]?.audioUrl : void 0;
232
+ Bt(e), Bt(t);
233
+ }, [f, p?.audioUrl, s]);
232
234
  const l = r(
233
235
  (e, t = null) => {
234
- et.current === e && (!e || t === null) || (et.current = e, We?.({
236
+ st.current === e && (!e || t === null) || (st.current = e, De?.({
235
237
  loading: e,
236
238
  reason: e ? t : null
237
239
  }));
238
240
  },
239
- [We]
240
- ), B = r(
241
+ [De]
242
+ ), O = r(
241
243
  (e) => {
242
- se.current = e, Be?.(e);
244
+ ae.current = e, Je?.(e);
243
245
  },
244
- [Be]
245
- ), G = r(() => F ? {
246
- shouldContinuePlayback: se.current
246
+ [Je]
247
+ ), G = r(() => P ? {
248
+ shouldContinuePlayback: ae.current
247
249
  } : {
248
- shouldContinuePlayback: br({
249
- defaultPlaying: se.current,
250
- isPausedByUser: k.current
250
+ shouldContinuePlayback: Ar({
251
+ defaultPlaying: ae.current,
252
+ isPausedByUser: M.current
251
253
  })
252
- }, [F]), gt = r((e) => e instanceof DOMException ? e.name === "NotAllowedError" || e.name === "SecurityError" : !1, []), H = r(() => _ && !x && !k.current && P.current !== "blocked", [_, x]), _t = r((e) => e ? e.startsWith("data:") ? e : `data:audio/mpeg;base64,${e}` : "", []), xt = r(() => {
254
+ }, [P]), vt = r((e) => e instanceof DOMException ? e.name === "NotAllowedError" || e.name === "SecurityError" : !1, []), D = r(() => k && !w && !M.current && W.current !== "blocked", [k, w]), Tt = r((e) => e ? e.startsWith("data:") ? e : `data:audio/mpeg;base64,${e}` : "", []), xt = r(() => {
253
255
  const e = m.current;
254
- return e == null || e <= 0 ? 0 : j.current.slice(0, e).reduce(
255
- (t, s) => t + Math.max(Number(s.duration_ms ?? 0), 0),
256
+ return e == null || e <= 0 ? 0 : N.current.slice(0, e).reduce(
257
+ (t, u) => t + Math.max(Number(u.duration_ms ?? 0), 0),
256
258
  0
257
259
  ) / 1e3;
258
- }, []), Q = r((e) => e <= 0 ? 0 : j.current.slice(0, e).reduce(
259
- (t, s) => t + Math.max(Number(s.duration_ms ?? 0), 0),
260
+ }, []), Q = r((e) => e <= 0 ? 0 : N.current.slice(0, e).reduce(
261
+ (t, u) => t + Math.max(Number(u.duration_ms ?? 0), 0),
260
262
  0
261
- ), []), xe = r(
262
- (e, t) => !e || x ? !1 : e.audioUrl ? !0 : vt(
263
- At(e),
263
+ ), []), Ce = r(
264
+ (e, t) => !e || w ? !1 : e.audioUrl ? !0 : Ut(
265
+ Pt(e),
264
266
  t
265
267
  ),
266
- [x]
268
+ [w]
267
269
  ), ce = r(
268
- (e, t, s = {}) => {
269
- const u = _r({
270
- currentAudioIndex: a,
270
+ (e, t, u = {}) => {
271
+ const n = Er({
272
+ currentAudioIndex: s,
271
273
  currentTimeMs: t,
272
274
  direction: e,
273
- excludeTarget: s.excludeTarget,
274
- tracks: lt
275
+ excludeTarget: u.excludeTarget,
276
+ tracks: mt
275
277
  });
276
- return !u || !xe(
277
- f[u.audioIndex],
278
- u.timeMs
279
- ) || u.audioIndex !== a && (!me || Te && !Te(u)) ? null : u;
278
+ return !n || !Ce(
279
+ f[n.audioIndex],
280
+ n.timeMs
281
+ ) || n.audioIndex !== s && (!pe || Ae && !Ae(n)) ? null : n;
280
282
  },
281
283
  [
282
284
  f,
283
- Te,
284
- xe,
285
- a,
286
- me,
287
- lt
285
+ Ae,
286
+ Ce,
287
+ s,
288
+ pe,
289
+ mt
288
290
  ]
289
- ), Ee = r(
291
+ ), Be = r(
290
292
  (e, t = !1) => {
291
- const s = Math.max(Number(e), 0);
292
- if (!t && be.current !== null && Math.abs(
293
- s - be.current
294
- ) < Pr)
293
+ const u = Math.max(Number(e), 0);
294
+ if (!t && _e.current !== null && Math.abs(
295
+ u - _e.current
296
+ ) < Gr)
295
297
  return;
296
- be.current = s;
297
- const u = {
298
- previous: ce("previous", s) !== null,
299
- next: ce("next", s) !== null
298
+ _e.current = u;
299
+ const n = {
300
+ previous: ce("previous", u) !== null,
301
+ next: ce("next", u) !== null
300
302
  };
301
- Bt((b) => b.previous === u.previous && b.next === u.next ? b : u);
303
+ jt((b) => b.previous === n.previous && b.next === n.next ? b : n);
302
304
  },
303
305
  [ce]
304
306
  );
305
307
  S(() => {
306
- tt.current = Ee, Ee(ye.current, !0);
307
- }, [Ee]);
308
- const ke = r(() => {
309
- const e = M.current;
310
- return e ? U.current === "segment" ? Q(K.current) + Math.max(e.currentTime, 0) * 1e3 : w.current !== null && e.readyState === 0 ? w.current * 1e3 : Math.max(e.currentTime, 0) * 1e3 : m.current != null ? Q(m.current) : 0;
311
- }, [Q]), C = r(
308
+ it.current = Be, Be(ge.current, !0);
309
+ }, [Be]);
310
+ const Le = r(() => {
311
+ const e = g.current;
312
+ return e ? U.current === "segment" ? Q(F.current) + Math.max(e.currentTime, 0) * 1e3 : C.current !== null && e.readyState === 0 ? C.current * 1e3 : Math.max(e.currentTime, 0) * 1e3 : m.current != null ? Q(m.current) : 0;
313
+ }, [Q]), L = r(
312
314
  (e) => {
313
315
  const t = Math.max(e, 0);
314
- ye.current !== t && (ye.current = t, xr({
315
- currentAudioIndex: a,
316
+ ge.current !== t && (ge.current = t, Kr({
317
+ currentAudioIndex: s,
316
318
  currentTimeMs: t,
317
- target: ae.current
318
- }) && (ae.current = null), oe?.(t), tt.current(t));
319
+ target: ie.current
320
+ }) && (ie.current = null), fe?.(t), it.current(t));
319
321
  },
320
- [a, oe]
322
+ [s, fe]
321
323
  ), y = r(() => {
322
- C(ke());
323
- }, [ke, C]), g = r(() => {
324
- typeof window > "u" || Y.current === null || (window.cancelAnimationFrame(Y.current), Y.current = null);
325
- }, []), kt = r(() => {
326
- if (typeof window > "u" || Y.current !== null)
324
+ L(Le());
325
+ }, [Le, L]), _ = r(() => {
326
+ typeof window > "u" || z.current === null || (window.cancelAnimationFrame(z.current), z.current = null);
327
+ }, []), At = r(() => {
328
+ if (typeof window > "u" || z.current !== null)
327
329
  return;
328
330
  const e = () => {
329
331
  y();
330
- const t = M.current;
332
+ const t = g.current;
331
333
  if (!t || t.paused || t.ended) {
332
- Y.current = null;
334
+ z.current = null;
333
335
  return;
334
336
  }
335
- Y.current = window.requestAnimationFrame(e);
337
+ z.current = window.requestAnimationFrame(e);
336
338
  };
337
- Y.current = window.requestAnimationFrame(e);
338
- }, [y]), I = r(() => {
339
- const e = M.current;
340
- e && (g(), c.current = !1, k.current = !1, le.current = !1, U.current = null, w.current = null, v.current = !1, N.current = !1, z.current = null, e.pause(), e.removeAttribute("src"), e.load(), E.current = null, K.current = 0, m.current = null, C(0), h(!1), l(!1));
341
- }, [C, g, l]), L = r(
339
+ z.current = window.requestAnimationFrame(e);
340
+ }, [y]), ee = r(() => {
341
+ const e = g.current;
342
+ e && (_(), c.current = !1, M.current = !1, se.current = !1, U.current = null, C.current = null, x.current = !1, R.current = !1, j.current = null, e.pause(), e.removeAttribute("src"), e.load(), K.current = null, F.current = 0, m.current = null, L(0), h(!1), l(!1));
343
+ }, [L, _, l]), T = r(
342
344
  (e) => {
343
- const t = M.current;
345
+ const t = g.current;
344
346
  if (!t)
345
347
  return !1;
346
- const s = t.play();
347
- return s && typeof s.then == "function" && s.then(() => {
348
- P.current === "unknown" && (P.current = "auto"), c.current = !1, N.current = !1;
349
- }).catch((u) => {
350
- P.current === "unknown" && gt(u) && (P.current = "blocked", c.current = !1, l(!1)), N.current = !1, h(!1);
348
+ const u = t.play();
349
+ return u && typeof u.then == "function" && u.then(() => {
350
+ W.current === "unknown" && (W.current = "auto"), c.current = !1, R.current = !1;
351
+ }).catch((n) => {
352
+ W.current === "unknown" && vt(n) && (W.current = "blocked", c.current = !1, l(!1)), R.current = !1, h(!1);
351
353
  }), !0;
352
354
  },
353
- [gt, l]
355
+ [vt, l]
354
356
  ), A = r(
355
- (e, t, s = {}) => {
356
- const u = M.current, b = j.current[e];
357
- if (!u || !b)
357
+ (e, t, u = {}) => {
358
+ const n = g.current, b = N.current[e];
359
+ if (!n || !b)
358
360
  return !1;
359
- const $ = _t(b.audio_data), Ce = Math.max(
360
- Number(s.seekTimeSeconds ?? 0),
361
+ const J = Tt(b.audio_data), xe = Math.max(
362
+ Number(u.seekTimeSeconds ?? 0),
361
363
  0
362
364
  );
363
- K.current = e, m.current = null, v.current = !1, N.current = !0, z.current = "segment", C(
364
- Q(e) + Ce * 1e3
365
+ F.current = e, m.current = null, x.current = !1, R.current = !0, j.current = "segment", L(
366
+ Q(e) + xe * 1e3
365
367
  );
366
- const Tt = s.shouldResume ?? H();
367
- c.current = Tt, l(!1);
368
- const tr = E.current !== $;
369
- return U.current = "segment", tr && (u.pause(), u.removeAttribute("src"), u.load(), E.current = $, u.src = $, u.load()), w.current = Ce, u.readyState > 0 && (u.currentTime = Ce, w.current = null), Tt ? L(`start-segment:${t}`) : (c.current = !1, N.current = !1, u.pause(), h(!1), !0);
368
+ const Kt = u.shouldResume ?? D();
369
+ c.current = Kt, l(!1);
370
+ const ir = K.current !== J;
371
+ return U.current = "segment", ir && (n.pause(), n.removeAttribute("src"), n.load(), K.current = J, n.src = J, n.load()), C.current = xe, n.readyState > 0 && (n.currentTime = xe, C.current = null), Kt ? T(`start-segment:${t}`) : (c.current = !1, R.current = !1, n.pause(), h(!1), !0);
370
372
  },
371
373
  [
372
- H,
373
- _t,
374
+ D,
375
+ Tt,
374
376
  Q,
375
- C,
376
377
  L,
378
+ T,
377
379
  l
378
380
  ]
379
- ), we = r(
381
+ ), ve = r(
380
382
  (e) => {
381
- const t = M.current;
382
- if (!t || !p || x)
383
+ const t = g.current;
384
+ if (!t || !p || w)
383
385
  return !1;
384
- const s = Math.max(Number(e), 0), u = !t.paused && !t.ended || c.current || N.current || m.current !== null && se.current && !k.current, b = vt(
385
- j.current,
386
- s
387
- ) ? gr(
388
- j.current,
389
- s
386
+ const u = Math.max(Number(e), 0), n = !t.paused && !t.ended || c.current || R.current || m.current !== null && ae.current && !M.current, b = Ut(
387
+ N.current,
388
+ u
389
+ ) ? Rr(
390
+ N.current,
391
+ u
390
392
  ) : null;
391
- if (be.current = null, g(), c.current = u, l(!1), u && (P.current = "manual", k.current = !1, B(!0)), b && (U.current === "segment" || !T))
393
+ if (_e.current = null, _(), c.current = n, l(!1), n && (W.current = "manual", M.current = !1, O(!0)), b && (U.current === "segment" || !v))
392
394
  return A(
393
395
  b.segmentIndex,
394
396
  "subtitle-seek-segment",
395
397
  {
396
398
  seekTimeSeconds: b.segmentTimeSeconds,
397
- shouldResume: u
399
+ shouldResume: n
398
400
  }
399
401
  );
400
- if (T) {
401
- const $ = s / 1e3;
402
- return E.current !== T && (t.pause(), t.removeAttribute("src"), t.load(), E.current = T, U.current = "url", z.current = "url", t.src = T, t.load()), w.current = $, C(s), t.readyState > 0 && (t.currentTime = $, w.current = null), u ? L("subtitle-seek-url") : (c.current = !1, t.pause(), h(!1), !0);
402
+ if (v) {
403
+ const J = u / 1e3;
404
+ return K.current !== v && (t.pause(), t.removeAttribute("src"), t.load(), K.current = v, U.current = "url", j.current = "url", t.src = v, t.load()), C.current = J, L(u), t.readyState > 0 && (t.currentTime = J, C.current = null), n ? T("subtitle-seek-url") : (c.current = !1, t.pause(), h(!1), !0);
403
405
  }
404
406
  return !1;
405
407
  },
406
408
  [
407
409
  p,
408
- T,
409
- x,
410
- C,
411
- A,
412
- g,
410
+ v,
411
+ w,
413
412
  L,
413
+ A,
414
+ _,
415
+ T,
414
416
  l,
415
- B
417
+ O
416
418
  ]
417
- ), ie = r(
419
+ ), oe = r(
418
420
  (e) => {
419
421
  const t = ce(
420
422
  e,
421
- ke(),
423
+ Le(),
422
424
  {
423
- excludeTarget: e === "previous" ? ae.current : null
425
+ excludeTarget: e === "previous" ? ie.current : null
424
426
  }
425
427
  );
426
428
  if (t === null)
427
429
  return !1;
428
- if (t.audioIndex === a) {
429
- const u = we(t.timeMs);
430
- return u && (ae.current = t), u;
430
+ if (t.audioIndex === s) {
431
+ const n = ve(t.timeMs);
432
+ return n && (ie.current = t), n;
431
433
  }
432
- const s = !!me?.(
434
+ const u = !!pe?.(
433
435
  t,
434
- Pe(G())
436
+ $e(G())
435
437
  );
436
- return s && (ae.current = t), s;
438
+ return u && (ie.current = t), u;
437
439
  },
438
440
  [
439
- a,
440
- ke,
441
+ s,
442
+ Le,
441
443
  G,
442
444
  ce,
443
- me,
444
- we
445
+ pe,
446
+ ve
445
447
  ]
446
- ), ee = r(
448
+ ), te = r(
447
449
  (e) => {
448
- g(), c.current = !1, v.current = !1, N.current = !1, y(), h(!1), l(!1), a >= 0 && $e?.(a);
450
+ _(), c.current = !1, x.current = !1, R.current = !1, y(), h(!1), l(!1), s >= 0 && Ye?.(s);
449
451
  },
450
452
  [
451
- a,
452
- $e,
453
- g,
453
+ s,
454
+ Ye,
455
+ _,
454
456
  y,
455
457
  l
456
458
  ]
457
- ), Me = r(
459
+ ), Te = r(
458
460
  (e) => {
459
- const t = M.current;
460
- return !t || U.current !== "url" || !ir({
461
+ const t = g.current;
462
+ return !t || U.current !== "url" || !kr({
461
463
  currentTimeSeconds: Math.max(t.currentTime, 0),
462
464
  durationSeconds: t.duration
463
- }) ? !1 : (c.current = !1, t.pause(), ee(e), !0);
465
+ }) ? !1 : (c.current = !1, t.pause(), te(e), !0);
464
466
  },
465
- [ee]
466
- ), wt = r(() => {
467
- const e = K.current + 1, t = j.current, s = t[e], u = he.current, b = t.some(($) => $.is_final);
468
- if (s) {
467
+ [te]
468
+ ), Nt = r(() => {
469
+ const e = F.current + 1, t = N.current, u = t[e], n = Se.current, b = t.some((J) => J.is_final);
470
+ if (u) {
469
471
  A(e, "ended");
470
472
  return;
471
473
  }
472
- if (u?.isAudioStreaming || !b) {
473
- K.current = e, m.current = e, v.current = !0, c.current = _, C(Q(e)), h(!1), l(!0, "waitingForMoreAudio");
474
+ if (n?.isAudioStreaming || !b) {
475
+ F.current = e, m.current = e, x.current = !0, c.current = k, L(Q(e)), h(!1), l(!0, "waitingForMoreAudio");
474
476
  return;
475
477
  }
476
- ee("segments-completed");
478
+ te("segments-completed");
477
479
  }, [
478
- _,
479
- ee,
480
+ k,
481
+ te,
480
482
  Q,
481
- C,
483
+ L,
482
484
  A,
483
485
  l
484
486
  ]);
485
487
  S(() => {
486
- if (Ie.current === Re)
488
+ if (at.current === We)
487
489
  return;
488
- Ie.current = Re, K.current = 0, m.current = null, v.current = !1, k.current = !1, le.current = !1, c.current = !1, N.current = !1, U.current = null, z.current = null, E.current = null, g(), C(0), l(!1);
489
- const e = M.current;
490
+ at.current = We, F.current = 0, m.current = null, x.current = !1, M.current = !1, se.current = !1, c.current = !1, R.current = !1, U.current = null, j.current = null, K.current = null, _(), L(0), l(!1);
491
+ const e = g.current;
490
492
  e && (e.pause(), e.removeAttribute("src"), e.load(), h(!1));
491
493
  }, [
492
- a,
493
- Re,
494
- R.length,
495
- T,
496
- C,
497
- g,
494
+ s,
495
+ We,
496
+ E.length,
497
+ v,
498
+ L,
499
+ _,
498
500
  l
499
501
  ]), S(() => {
500
- const e = M.current;
502
+ const e = g.current;
501
503
  if (e) {
502
- if (x) {
503
- le.current = !!(he.current && !k.current && (!e.paused || c.current || m.current !== null)), c.current = !1, l(!1), e.pause(), h(!1);
504
+ if (w) {
505
+ se.current = !!(Se.current && !M.current && (!e.paused || c.current || m.current !== null)), c.current = !1, l(!1), e.pause(), h(!1);
504
506
  return;
505
507
  }
506
- if (!(!le.current || !he.current || k.current)) {
507
- if (le.current = !1, m.current !== null) {
508
- if (m.current < j.current.length) {
508
+ if (!(!se.current || !Se.current || M.current)) {
509
+ if (se.current = !1, m.current !== null) {
510
+ if (m.current < N.current.length) {
509
511
  A(m.current, "external-resume");
510
512
  return;
511
513
  }
512
514
  c.current = !0, l(!0, "waitingForMoreAudio");
513
515
  return;
514
516
  }
515
- if (!E.current && j.current.length > 0) {
517
+ if (!K.current && N.current.length > 0) {
516
518
  A(
517
519
  Math.min(
518
- K.current,
519
- j.current.length - 1
520
+ F.current,
521
+ N.current.length - 1
520
522
  ),
521
523
  "external-resume-init"
522
524
  );
523
525
  return;
524
526
  }
525
- e.paused && (c.current = !0, L("external-resume"));
527
+ e.paused && (c.current = !0, T("external-resume"));
526
528
  }
527
529
  }
528
530
  }, [
529
- x,
531
+ w,
530
532
  A,
531
- L,
533
+ T,
532
534
  l
533
535
  ]), S(() => {
534
- const e = M.current;
536
+ const e = g.current;
535
537
  if (!e)
536
538
  return;
537
539
  if (!p) {
538
- I();
540
+ ee();
539
541
  return;
540
542
  }
541
- if (x) {
543
+ if (w) {
542
544
  c.current = !1, l(!1), e.pause(), h(!1);
543
545
  return;
544
546
  }
545
- const t = yr({
547
+ const t = xr({
546
548
  activeSourceType: U.current,
547
- hasAudioUrl: !!T,
548
- segmentCount: R.length,
549
- preferredSourceType: z.current,
549
+ hasAudioUrl: !!v,
550
+ segmentCount: E.length,
551
+ preferredSourceType: j.current,
550
552
  waitingSegmentIndex: m.current
551
553
  });
552
- if (t && z.current !== t && (z.current = t), t === "url" && T) {
553
- const s = E.current !== T, u = H();
554
- if (s) {
554
+ if (t && j.current !== t && (j.current = t), t === "url" && v) {
555
+ const u = K.current !== v, n = D();
556
+ if (u) {
555
557
  const b = m.current !== null ? xt() : 0;
556
- e.pause(), e.removeAttribute("src"), e.load(), E.current = T, U.current = "url", e.src = T, e.load(), w.current = b, C(b * 1e3), e.readyState > 0 && (e.currentTime = b, w.current = null);
558
+ e.pause(), e.removeAttribute("src"), e.load(), K.current = v, U.current = "url", e.src = v, e.load(), C.current = b, L(b * 1e3), e.readyState > 0 && (e.currentTime = b, C.current = null);
557
559
  }
558
- if (c.current = u, v.current = !1, N.current = !1, l(!1), !u) {
560
+ if (c.current = n, x.current = !1, R.current = !1, l(!1), !n) {
559
561
  c.current = !1, e.pause(), h(!1);
560
562
  return;
561
563
  }
562
- L(s ? "sync-url-init" : "sync-url");
564
+ T(u ? "sync-url-init" : "sync-url");
563
565
  return;
564
566
  }
565
567
  if (t === "segment" && m.current !== null) {
566
- if (m.current < R.length) {
567
- if (k.current) {
568
+ if (m.current < E.length) {
569
+ if (M.current) {
568
570
  h(!1), l(!1);
569
571
  return;
570
572
  }
571
573
  A(m.current, "wait-resume");
572
574
  return;
573
575
  }
574
- v.current = !0, c.current = H(), h(!1), l(H());
576
+ x.current = !0, c.current = D(), h(!1), l(D());
575
577
  return;
576
578
  }
577
- if (t === "segment" && !R.length) {
579
+ if (t === "segment" && !E.length) {
578
580
  if (p.isAudioStreaming) {
579
- m.current = K.current, v.current = !0, c.current = H(), h(!1), l(H());
581
+ m.current = F.current, x.current = !0, c.current = D(), h(!1), l(D());
580
582
  return;
581
583
  }
582
- I();
584
+ ee();
583
585
  return;
584
586
  }
585
- if (t === "segment" && !E.current) {
587
+ if (t === "segment" && !K.current) {
586
588
  A(
587
589
  Math.min(
588
- K.current,
589
- R.length - 1
590
+ F.current,
591
+ E.length - 1
590
592
  ),
591
593
  "effect-init"
592
594
  );
593
595
  return;
594
596
  }
595
597
  if (t !== "segment") {
596
- I();
598
+ ee();
597
599
  return;
598
600
  }
599
- if (!_ || k.current) {
601
+ if (!k || M.current) {
600
602
  c.current = !1, e.pause(), h(!1);
601
603
  return;
602
604
  }
603
- e.paused && (c.current = !0, L("sync-paused-retry"));
605
+ e.paused && (c.current = !0, T("sync-paused-retry"));
604
606
  }, [
605
607
  p,
606
- a,
607
- R,
608
- T,
609
- _,
610
- x,
611
- H,
612
- C,
613
- I,
614
- A,
608
+ s,
609
+ E,
610
+ v,
611
+ k,
612
+ w,
613
+ D,
615
614
  L,
615
+ ee,
616
+ A,
617
+ T,
616
618
  xt,
617
619
  l
618
620
  ]), S(() => {
619
- if (!O || O.id === rt.current || O.audioIndex !== a)
621
+ if (!H || H.id === ct.current || H.audioIndex !== s)
620
622
  return;
621
- const e = f[O.audioIndex];
622
- xe(e, O.timeMs) && (rt.current = O.id, we(O.timeMs));
623
+ const e = f[H.audioIndex];
624
+ Ce(e, H.timeMs) && (ct.current = H.id, ve(H.timeMs));
623
625
  }, [
624
626
  f,
625
- xe,
626
- a,
627
- we,
628
- O
629
- ]), S(() => I, [I]), S(() => g, [g]);
630
- const Zt = r(() => {
631
- y(), kt(), h(!0), l(!1), Oe?.();
627
+ Ce,
628
+ s,
629
+ ve,
630
+ H
631
+ ]), S(() => ee, [ee]), S(() => _, [_]);
632
+ const qt = r(() => {
633
+ y(), At(), h(!0), l(!1), Ze?.();
632
634
  }, [
633
- Oe,
634
- kt,
635
+ Ze,
636
+ At,
635
637
  y,
636
638
  l
637
- ]), zt = r(() => {
638
- v.current || N.current || (g(), y(), h(!1));
639
- }, [a, g, y]), Yt = r(() => {
640
- const e = M.current;
641
- e && w.current !== null && (e.currentTime = w.current, w.current = null), y(), !Me("canplay-seek-finished") && (!c.current || !_ || L("canplay"));
639
+ ]), It = r(() => {
640
+ x.current || R.current || (_(), y(), h(!1));
641
+ }, [s, _, y]), er = r(() => {
642
+ const e = g.current;
643
+ e && C.current !== null && (e.currentTime = C.current, C.current = null), y(), !Te("canplay-seek-finished") && (!c.current || !k || T("canplay"));
642
644
  }, [
643
- a,
644
- _,
645
- Me,
645
+ s,
646
+ k,
647
+ Te,
646
648
  y,
647
- L
648
- ]), Dt = r(() => {
649
- const e = M.current;
650
- e && w.current !== null && (e.currentTime = w.current, w.current = null), y(), Me("metadata-seek-finished");
651
- }, [a, Me, y]), Gt = r(() => {
649
+ T
650
+ ]), tr = r(() => {
651
+ const e = g.current;
652
+ e && C.current !== null && (e.currentTime = C.current, C.current = null), y(), Te("metadata-seek-finished");
653
+ }, [s, Te, y]), rr = r(() => {
652
654
  y();
653
- }, [y]), Qt = r(() => {
654
- v.current || l(!0, "loadingAudio");
655
- }, [l]), Xt = r(() => {
656
- if (v.current) {
655
+ }, [y]), nr = r(() => {
656
+ x.current || l(!0, "loadingAudio");
657
+ }, [l]), ur = r(() => {
658
+ if (x.current) {
657
659
  l(!0, "waitingForMoreAudio");
658
660
  return;
659
661
  }
660
662
  l(!0, "loadingAudio");
661
- }, [l]), Mt = r(() => {
663
+ }, [l]), Rt = r(() => {
662
664
  y();
663
- }, [y]), qt = r(() => {
664
- const e = U.current === "url" || j.current.length === 0;
665
- if (g(), N.current = !1, e) {
666
- ee("url-ended");
665
+ }, [y]), lr = r(() => {
666
+ const e = U.current === "url" || N.current.length === 0;
667
+ if (_(), R.current = !1, e) {
668
+ te("url-ended");
667
669
  return;
668
670
  }
669
- wt();
670
- }, [ee, wt, g]), It = r(() => {
671
- g(), y(), h(!1), l(!1);
672
- }, [g, y, l]), er = r(
671
+ Nt();
672
+ }, [te, Nt, _]), ar = r(() => {
673
+ _(), y(), h(!1), l(!1);
674
+ }, [_, y, l]), sr = r(
673
675
  (e) => {
674
- He?.(e), X(!1);
676
+ ze?.(e), q(!1);
675
677
  },
676
- [He]
677
- ), Ke = r(() => {
678
- if (F) {
678
+ [ze]
679
+ ), Oe = r(() => {
680
+ if (P) {
679
681
  const t = !Z;
680
- return B(t), Je?.(t), !0;
682
+ return O(t), Ge?.(t), !0;
681
683
  }
682
- const e = M.current;
683
- return x || !e || !p ? !1 : m.current !== null ? Se ? (B(!1), c.current = !1, k.current = !0, m.current = null, v.current = !1, h(!1), l(!1), e.pause(), !0) : (B(!0), P.current = "manual", k.current = !1, c.current = !0, l(!0, "waitingForMoreAudio"), !0) : !e.src && R.length > 0 ? (B(!0), P.current = "manual", k.current = !1, A(
684
+ const e = g.current;
685
+ return w || !e || !p ? !1 : m.current !== null ? ke ? (O(!1), c.current = !1, M.current = !0, m.current = null, x.current = !1, h(!1), l(!1), e.pause(), !0) : (O(!0), W.current = "manual", M.current = !1, c.current = !0, l(!0, "waitingForMoreAudio"), !0) : !e.src && E.length > 0 ? (O(!0), W.current = "manual", M.current = !1, A(
684
686
  Math.min(
685
- K.current,
686
- R.length - 1
687
+ F.current,
688
+ E.length - 1
687
689
  ),
688
690
  "toggle"
689
- ), !0) : e.paused ? (B(!0), P.current = "manual", k.current = !1, c.current = !0, L("toggle-resume"), !0) : (B(!1), c.current = !1, k.current = !0, e.pause(), !0);
691
+ ), !0) : e.paused ? (O(!0), W.current = "manual", M.current = !1, c.current = !0, T("toggle-resume"), !0) : (O(!1), c.current = !1, M.current = !0, e.pause(), !0);
690
692
  }, [
691
693
  p,
692
- R.length,
694
+ E.length,
693
695
  Z,
694
- x,
695
- Se,
696
- Je,
696
+ w,
697
+ ke,
698
+ Ge,
697
699
  A,
698
- L,
700
+ T,
699
701
  l,
700
- B,
701
- F
702
+ O,
703
+ P
702
704
  ]);
703
705
  S(() => {
704
- if (W)
705
- return dr(D);
706
- }, [D, W]);
707
- const Ue = te(
706
+ if (B)
707
+ return Cr(Y);
708
+ }, [Y, B]);
709
+ const Ve = re(
708
710
  () => ({
709
- fullscreen: () => ne ? (ne(), !0) : !1,
710
- interaction: () => pe ? (Le && pe(), !0) : !1,
711
- next: () => de ? (je || de(
712
- Pe(G())
711
+ fullscreen: () => ue ? (ue(), !0) : !1,
712
+ interaction: () => he ? (Ne && he(), !0) : !1,
713
+ next: () => me ? (Ke || me(
714
+ $e(G())
713
715
  ), !0) : !1,
714
- nextSubtitle: () => q.next ? ie("next") : !0,
715
- previous: () => fe ? (Ae || fe(
716
- Pe(G())
716
+ nextSubtitle: () => I.next ? oe("next") : !0,
717
+ previous: () => de ? (Ee || de(
718
+ $e(G())
717
719
  ), !0) : !1,
718
- previousSubtitle: () => q.previous ? ie("previous") : !0,
719
- subtitle: () => re ? (re(), !0) : !1,
720
- togglePlayback: () => (Ke(), !0)
720
+ previousSubtitle: () => I.previous ? oe("previous") : !0,
721
+ subtitle: () => ne ? (ne(), !0) : !1,
722
+ togglePlayback: () => (Oe(), !0)
721
723
  }),
722
724
  [
723
725
  G,
724
- Le,
725
- ie,
726
- je,
727
- ne,
728
- pe,
726
+ Ne,
727
+ oe,
728
+ Ke,
729
+ ue,
730
+ he,
731
+ me,
729
732
  de,
730
- fe,
731
- re,
732
- Ae,
733
- q.next,
734
- q.previous,
735
- Ke
733
+ ne,
734
+ Ee,
735
+ I.next,
736
+ I.previous,
737
+ Oe
736
738
  ]
737
- ), Ct = o(Ue);
739
+ ), Et = o(Ve);
738
740
  return S(() => {
739
- Ct.current = Ue;
740
- }, [Ue]), S(() => {
741
- if (!W || typeof document > "u")
741
+ Et.current = Ve;
742
+ }, [Ve]), S(() => {
743
+ if (!B || typeof document > "u")
742
744
  return;
743
745
  const e = (t) => {
744
- if (!mr(D))
746
+ if (!Lr(Y))
745
747
  return;
746
- const s = pr(t);
747
- if (!s || hr(t, s))
748
+ const u = vr(t, ut());
749
+ if (!u || Tr(t, u))
748
750
  return;
749
- let u = !1;
750
- const b = Ct.current[s];
751
- u = b(), u && t.preventDefault();
751
+ let n = !1;
752
+ const b = Et.current[u];
753
+ n = b(), n && t.preventDefault();
752
754
  };
753
755
  return document.addEventListener("keydown", e), () => {
754
756
  document.removeEventListener("keydown", e);
755
757
  };
756
- }, [D, W]), S(() => {
757
- oe?.(ye.current);
758
- }, [oe]), /* @__PURE__ */ n.jsxs(
758
+ }, [Y, ut, B]), S(() => {
759
+ fe?.(ge.current);
760
+ }, [fe]), /* @__PURE__ */ X(
759
761
  "div",
760
762
  {
761
- ...Pt,
762
- "data-slide-player-shortcut-owner": D,
763
- className: Lt("slide-player", d),
764
- onFocusCapture: Jt,
765
- onPointerDown: $t,
763
+ ...Ue,
764
+ dir: Pe,
765
+ lang: tt,
766
+ "data-slide-player-shortcut-owner": Y,
767
+ className: Ft("slide-player", d),
768
+ onFocusCapture: Xt,
769
+ onPointerDown: Qt,
766
770
  children: [
767
- /* @__PURE__ */ n.jsx(
771
+ /* @__PURE__ */ a(
768
772
  "audio",
769
773
  {
770
- ref: M,
774
+ ref: g,
771
775
  preload: "auto",
772
776
  playsInline: !0,
773
- onLoadStart: Qt,
774
- onLoadedMetadata: Dt,
775
- onCanPlay: Yt,
776
- onPlay: Zt,
777
- onPause: zt,
778
- onWaiting: Xt,
779
- onSeeking: Mt,
780
- onSeeked: Mt,
781
- onTimeUpdate: Gt,
782
- onEnded: qt,
783
- onError: It
777
+ onLoadStart: nr,
778
+ onLoadedMetadata: tr,
779
+ onCanPlay: er,
780
+ onPlay: qt,
781
+ onPause: It,
782
+ onWaiting: ur,
783
+ onSeeking: Rt,
784
+ onSeeked: Rt,
785
+ onTimeUpdate: rr,
786
+ onEnded: lr,
787
+ onError: ar
784
788
  }
785
789
  ),
786
- Ne ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
787
- /* @__PURE__ */ n.jsx(
788
- lr,
790
+ Fe ? /* @__PURE__ */ X(cr, { children: [
791
+ /* @__PURE__ */ a(
792
+ Sr,
789
793
  {
790
- container: Et,
794
+ container: Vt,
795
+ dir: Pe ?? nt,
796
+ lang: Zt,
791
797
  labels: {
792
798
  closeSettings: i.closeSettingsLabel,
793
799
  fullscreen: i.fullscreenLabel,
@@ -798,38 +804,38 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
798
804
  subtitleToggle: i.subtitleToggleAriaLabel,
799
805
  title: i.settingsTitle
800
806
  },
801
- isSubtitleEnabled: ve,
802
- onClose: () => X(!1),
803
- onOpenChange: X,
804
- onSubtitleToggle: re ?? (() => {
807
+ isSubtitleEnabled: Re,
808
+ onClose: () => q(!1),
809
+ onOpenChange: q,
810
+ onSubtitleToggle: ne ?? (() => {
805
811
  }),
806
- onViewModeChange: er,
807
- open: ut,
808
- viewMode: Rt
812
+ onViewModeChange: sr,
813
+ open: ft,
814
+ viewMode: Ot
809
815
  }
810
816
  ),
811
- /* @__PURE__ */ n.jsxs(
817
+ /* @__PURE__ */ X(
812
818
  "div",
813
819
  {
814
820
  className: "slide-player__controls",
815
- onPointerEnter: Kt,
816
- onPointerLeave: Ut,
817
- style: Vt,
821
+ onPointerEnter: Ht,
822
+ onPointerLeave: $t,
823
+ style: Yt,
818
824
  children: [
819
- /* @__PURE__ */ n.jsxs("div", { className: "slide-player__group", children: [
820
- /* @__PURE__ */ n.jsx(
825
+ /* @__PURE__ */ X("div", { className: "slide-player__group", children: [
826
+ /* @__PURE__ */ a(
821
827
  "button",
822
828
  {
823
- "aria-expanded": ut,
829
+ "aria-expanded": ft,
824
830
  "aria-haspopup": "dialog",
825
831
  "aria-label": i.moreOptionsAriaLabel,
826
832
  className: "slide-player__action slide-player__action--mobile-more",
827
833
  onClick: () => {
828
- X((e) => !e);
834
+ q((e) => !e);
829
835
  },
830
836
  type: "button",
831
- children: /* @__PURE__ */ n.jsx(
832
- kr,
837
+ children: /* @__PURE__ */ a(
838
+ Fr,
833
839
  {
834
840
  className: "slide-player__icon",
835
841
  strokeWidth: 2.25
@@ -837,58 +843,58 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
837
843
  )
838
844
  }
839
845
  ),
840
- /* @__PURE__ */ n.jsx(
846
+ /* @__PURE__ */ a(
841
847
  "button",
842
848
  {
843
849
  "aria-label": i.volumeAriaLabel,
844
850
  className: "hidden",
845
851
  type: "button",
846
- children: /* @__PURE__ */ n.jsx(wr, { className: "slide-player__icon", strokeWidth: 2.25 })
852
+ children: /* @__PURE__ */ a(Ur, { className: "slide-player__icon", strokeWidth: 2.25 })
847
853
  }
848
854
  ),
849
- /* @__PURE__ */ n.jsx(
855
+ /* @__PURE__ */ a(
850
856
  "button",
851
857
  {
852
- "aria-label": it,
853
- "aria-keyshortcuts": pt.ariaKeyShortcuts,
858
+ "aria-label": yt,
859
+ "aria-keyshortcuts": kt.ariaKeyShortcuts,
854
860
  className: "slide-player__toggle slide-player__toggle--playback",
855
861
  onClick: () => {
856
- Ke();
862
+ Oe();
857
863
  },
858
- title: pt.title,
864
+ title: kt.title,
859
865
  type: "button",
860
- children: Ht ? /* @__PURE__ */ n.jsx(Ur, {}) : /* @__PURE__ */ n.jsx(Fr, {})
866
+ children: Gt ? /* @__PURE__ */ a(zr, {}) : /* @__PURE__ */ a(Yr, {})
861
867
  }
862
868
  ),
863
- /* @__PURE__ */ n.jsx(
869
+ /* @__PURE__ */ a(
864
870
  "button",
865
871
  {
866
- "aria-keyshortcuts": dt.ariaKeyShortcuts,
872
+ "aria-keyshortcuts": gt.ariaKeyShortcuts,
867
873
  "aria-label": i.previousLabel,
868
874
  className: "slide-player__action slide-player__action--prev",
869
- disabled: Ae,
875
+ disabled: Ee,
870
876
  onClick: () => {
871
- fe?.(G());
877
+ de?.(G());
872
878
  },
873
- title: dt.title,
879
+ title: gt.title,
874
880
  type: "button",
875
- children: /* @__PURE__ */ n.jsx(Mr, { className: "slide-player__icon", strokeWidth: 2.25 })
881
+ children: /* @__PURE__ */ a(Pr, { className: "slide-player__icon", strokeWidth: 2.25 })
876
882
  }
877
883
  ),
878
- /* @__PURE__ */ n.jsx(
884
+ /* @__PURE__ */ a(
879
885
  "button",
880
886
  {
881
- "aria-keyshortcuts": ht.ariaKeyShortcuts,
887
+ "aria-keyshortcuts": wt.ariaKeyShortcuts,
882
888
  "aria-label": i.nextLabel,
883
889
  className: "slide-player__action slide-player__action--next",
884
- disabled: je,
890
+ disabled: Ke,
885
891
  onClick: () => {
886
- de?.(G());
892
+ me?.(G());
887
893
  },
888
- title: ht.title,
894
+ title: wt.title,
889
895
  type: "button",
890
- children: /* @__PURE__ */ n.jsx(
891
- Cr,
896
+ children: /* @__PURE__ */ a(
897
+ Wr,
892
898
  {
893
899
  className: "slide-player__icon",
894
900
  strokeWidth: 2.25
@@ -896,35 +902,35 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
896
902
  )
897
903
  }
898
904
  ),
899
- /* @__PURE__ */ n.jsx(
905
+ /* @__PURE__ */ a(
900
906
  "button",
901
907
  {
902
- "aria-keyshortcuts": mt.ariaKeyShortcuts,
908
+ "aria-keyshortcuts": _t.ariaKeyShortcuts,
903
909
  "aria-label": i.previousSubtitleLabel,
904
910
  className: "slide-player__action slide-player__action--prev-subtitle",
905
- disabled: !q.previous,
911
+ disabled: !I.previous,
906
912
  onClick: () => {
907
- ie("previous");
913
+ oe("previous");
908
914
  },
909
- title: mt.title,
915
+ title: _t.title,
910
916
  type: "button",
911
- children: /* @__PURE__ */ n.jsx(Tr, { className: "slide-player__icon", strokeWidth: 2.25 })
917
+ children: /* @__PURE__ */ a(Br, { className: "slide-player__icon", strokeWidth: 2.25 })
912
918
  }
913
919
  ),
914
- /* @__PURE__ */ n.jsx(
920
+ /* @__PURE__ */ a(
915
921
  "button",
916
922
  {
917
- "aria-keyshortcuts": yt.ariaKeyShortcuts,
923
+ "aria-keyshortcuts": Mt.ariaKeyShortcuts,
918
924
  "aria-label": i.nextSubtitleLabel,
919
925
  className: "slide-player__action slide-player__action--next-subtitle",
920
- disabled: !q.next,
926
+ disabled: !I.next,
921
927
  onClick: () => {
922
- ie("next");
928
+ oe("next");
923
929
  },
924
- title: yt.title,
930
+ title: Mt.title,
925
931
  type: "button",
926
- children: /* @__PURE__ */ n.jsx(
927
- Lr,
932
+ children: /* @__PURE__ */ a(
933
+ Or,
928
934
  {
929
935
  className: "slide-player__icon",
930
936
  strokeWidth: 2.25
@@ -932,18 +938,18 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
932
938
  )
933
939
  }
934
940
  ),
935
- /* @__PURE__ */ n.jsx(
941
+ /* @__PURE__ */ a(
936
942
  "button",
937
943
  {
938
944
  "aria-label": i.subtitleToggleAriaLabel,
939
- "aria-keyshortcuts": ft.ariaKeyShortcuts,
940
- "aria-pressed": ve,
945
+ "aria-keyshortcuts": St.ariaKeyShortcuts,
946
+ "aria-pressed": Re,
941
947
  className: "slide-player__action slide-player__action--subtitle",
942
- onClick: re,
943
- title: ft.title,
948
+ onClick: ne,
949
+ title: St.title,
944
950
  type: "button",
945
- children: ve ? /* @__PURE__ */ n.jsx(vr, { className: "slide-player__icon", strokeWidth: 2.25 }) : /* @__PURE__ */ n.jsx(
946
- Ar,
951
+ children: Re ? /* @__PURE__ */ a(Vr, { className: "slide-player__icon", strokeWidth: 2.25 }) : /* @__PURE__ */ a(
952
+ Hr,
947
953
  {
948
954
  className: "slide-player__icon",
949
955
  strokeWidth: 2.25
@@ -951,23 +957,23 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
951
957
  )
952
958
  }
953
959
  ),
954
- ne ? /* @__PURE__ */ n.jsx(
960
+ ue ? /* @__PURE__ */ a(
955
961
  "button",
956
962
  {
957
- "aria-label": ot,
958
- "aria-keyshortcuts": bt.ariaKeyShortcuts,
963
+ "aria-label": bt,
964
+ "aria-keyshortcuts": Ct.ariaKeyShortcuts,
959
965
  className: "slide-player__action slide-player__action--fullscreen",
960
- onClick: ne,
961
- title: bt.title,
966
+ onClick: ue,
967
+ title: Ct.title,
962
968
  type: "button",
963
- children: Ve ? /* @__PURE__ */ n.jsx(
964
- jr,
969
+ children: je ? /* @__PURE__ */ a(
970
+ $r,
965
971
  {
966
972
  className: "slide-player__icon",
967
973
  strokeWidth: 2.25
968
974
  }
969
- ) : /* @__PURE__ */ n.jsx(
970
- Nr,
975
+ ) : /* @__PURE__ */ a(
976
+ Dr,
971
977
  {
972
978
  className: "slide-player__icon",
973
979
  strokeWidth: 2.25
@@ -976,24 +982,24 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
976
982
  }
977
983
  ) : null
978
984
  ] }),
979
- /* @__PURE__ */ n.jsx("div", { className: "slide-player__separator" }),
980
- /* @__PURE__ */ n.jsxs("div", { className: "slide-player__group", children: [
981
- at.map((e, t) => /* @__PURE__ */ n.jsx(rr.Fragment, { children: e }, `custom-action-${t}`)),
982
- /* @__PURE__ */ n.jsx(
985
+ /* @__PURE__ */ a("div", { className: "slide-player__separator" }),
986
+ /* @__PURE__ */ X("div", { className: "slide-player__group", children: [
987
+ pt.map((e, t) => /* @__PURE__ */ a(or.Fragment, { children: e }, `custom-action-${t}`)),
988
+ /* @__PURE__ */ a(
983
989
  "button",
984
990
  {
985
991
  "aria-label": i.notesLabel,
986
- "aria-keyshortcuts": St.ariaKeyShortcuts,
987
- className: Lt(
992
+ "aria-keyshortcuts": Lt.ariaKeyShortcuts,
993
+ className: Ft(
988
994
  "slide-player__action slide-player__action--notes",
989
- ue && "slide-player__action--active"
995
+ le && "slide-player__action--active"
990
996
  ),
991
- disabled: !Le,
992
- onClick: pe,
993
- title: St.title,
997
+ disabled: !Ne,
998
+ onClick: he,
999
+ title: Lt.title,
994
1000
  type: "button",
995
- children: /* @__PURE__ */ n.jsx(
996
- Rr,
1001
+ children: /* @__PURE__ */ a(
1002
+ Jr,
997
1003
  {
998
1004
  className: "slide-player__icon",
999
1005
  strokeWidth: 2.25
@@ -1009,9 +1015,9 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
1009
1015
  ]
1010
1016
  }
1011
1017
  );
1012
- }, Or = nr(Br);
1013
- Or.displayName = "Player";
1018
+ }, qr = fr(Xr);
1019
+ qr.displayName = "Player";
1014
1020
  export {
1015
- Or as default
1021
+ qr as default
1016
1022
  };
1017
1023
  //# sourceMappingURL=Player.es.js.map