markdown-flow-ui 0.3.4 → 0.3.6

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 (1211) hide show
  1. package/dist/_virtual/{advancedFormat.es2.js → advancedFormat2.es.js} +1 -1
  2. package/dist/_virtual/advancedFormat2.es.js.map +1 -0
  3. package/dist/_virtual/core.cjs +1 -1
  4. package/dist/_virtual/core.es.js +1 -1
  5. package/dist/_virtual/{cose-base.es2.js → cose-base2.es.js} +1 -1
  6. package/dist/_virtual/cose-base2.es.js.map +1 -0
  7. package/dist/_virtual/{customParseFormat.es2.js → customParseFormat2.es.js} +1 -1
  8. package/dist/_virtual/customParseFormat2.es.js.map +1 -0
  9. package/dist/_virtual/cytoscape-cose-bilkent2.es.js +5 -0
  10. package/dist/_virtual/cytoscape-cose-bilkent2.es.js.map +1 -0
  11. package/dist/_virtual/{cytoscape-fcose.es2.js → cytoscape-fcose2.es.js} +1 -1
  12. package/dist/_virtual/cytoscape-fcose2.es.js.map +1 -0
  13. package/dist/_virtual/{dayjs.min2.cjs → dayjs2.min.cjs} +1 -1
  14. package/dist/_virtual/dayjs2.min.cjs.map +1 -0
  15. package/dist/_virtual/{dayjs.min.es2.js → dayjs2.min.es.js} +1 -1
  16. package/dist/_virtual/dayjs2.min.es.js.map +1 -0
  17. package/dist/_virtual/{duration.es2.js → duration2.es.js} +1 -1
  18. package/dist/_virtual/duration2.es.js.map +1 -0
  19. package/dist/_virtual/{index.es10.js → index10.es.js} +1 -1
  20. package/dist/_virtual/index10.es.js.map +1 -0
  21. package/dist/_virtual/{index.es11.js → index11.es.js} +1 -1
  22. package/dist/_virtual/index11.es.js.map +1 -0
  23. package/dist/_virtual/{index.es12.js → index12.es.js} +1 -1
  24. package/dist/_virtual/index12.es.js.map +1 -0
  25. package/dist/_virtual/{index.es9.js → index2.es.js} +1 -1
  26. package/dist/_virtual/index2.es.js.map +1 -0
  27. package/dist/_virtual/index3.cjs +1 -1
  28. package/dist/_virtual/{index.es4.js → index3.es.js} +1 -1
  29. package/dist/_virtual/index3.es.js.map +1 -0
  30. package/dist/_virtual/index4.cjs +1 -1
  31. package/dist/_virtual/{index.es3.js → index4.es.js} +1 -1
  32. package/dist/_virtual/index4.es.js.map +1 -0
  33. package/dist/_virtual/{index.es5.js → index5.es.js} +1 -1
  34. package/dist/_virtual/index5.es.js.map +1 -0
  35. package/dist/_virtual/index6.cjs +1 -1
  36. package/dist/_virtual/{index.es7.js → index6.es.js} +1 -1
  37. package/dist/_virtual/index6.es.js.map +1 -0
  38. package/dist/_virtual/index7.cjs +1 -1
  39. package/dist/_virtual/{index.es6.js → index7.es.js} +1 -1
  40. package/dist/_virtual/index7.es.js.map +1 -0
  41. package/dist/_virtual/{index.es8.js → index8.es.js} +1 -1
  42. package/dist/_virtual/index8.es.js.map +1 -0
  43. package/dist/_virtual/{index.es2.js → index9.es.js} +1 -1
  44. package/dist/_virtual/index9.es.js.map +1 -0
  45. package/dist/_virtual/{isoWeek.es2.js → isoWeek2.es.js} +1 -1
  46. package/dist/_virtual/isoWeek2.es.js.map +1 -0
  47. package/dist/_virtual/{layout-base.es2.js → layout-base2.es.js} +1 -1
  48. package/dist/_virtual/layout-base2.es.js.map +1 -0
  49. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  50. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  51. package/dist/components/ContentRender/ContentRender.d.ts +2 -0
  52. package/dist/components/ContentRender/ContentRender.es.js +513 -509
  53. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  54. package/dist/components/ContentRender/IframeSandbox.es.js +1 -1
  55. package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
  56. package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
  57. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +2 -0
  58. package/dist/components/ContentRender/MarkdownFlowInput.es.js +40 -38
  59. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  60. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  61. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  62. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +2 -1
  63. package/dist/components/ContentRender/plugins/CustomVariable.es.js +110 -90
  64. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  65. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  66. package/dist/components/ContentRender/utils/accept-placeholder.cjs +2 -0
  67. package/dist/components/ContentRender/utils/accept-placeholder.cjs.map +1 -0
  68. package/dist/components/ContentRender/utils/accept-placeholder.d.ts +3 -0
  69. package/dist/components/ContentRender/utils/accept-placeholder.es.js +10 -0
  70. package/dist/components/ContentRender/utils/accept-placeholder.es.js.map +1 -0
  71. package/dist/components/ContentRender/utils/video-markdown-run.es.js +2 -2
  72. package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
  73. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
  74. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +2 -0
  75. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +23 -21
  76. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  77. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +1 -1
  78. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -1
  79. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +1 -1
  80. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  81. package/dist/components/Slide/Slide.cjs +1 -1
  82. package/dist/components/Slide/Slide.cjs.map +1 -1
  83. package/dist/components/Slide/Slide.d.ts +2 -0
  84. package/dist/components/Slide/Slide.es.js +347 -343
  85. package/dist/components/Slide/Slide.es.js.map +1 -1
  86. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  87. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  88. package/dist/components/ui/inputGroup/textarea.es.js +1 -1
  89. package/dist/components/ui/tooltip.cjs +1 -1
  90. package/dist/components/ui/tooltip.cjs.map +1 -1
  91. package/dist/components/ui/tooltip.es.js +12 -12
  92. package/dist/index.cjs +1 -1
  93. package/dist/index.es.js +3 -3
  94. package/dist/markdown-flow-ui-lib.css +2 -2
  95. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs +1 -1
  96. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.cjs.map +1 -1
  97. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js +4 -4
  98. package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.es.js.map +1 -1
  99. package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
  100. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs +1 -1
  101. package/dist/node_modules/@codemirror/autocomplete/dist/index.cjs.map +1 -1
  102. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js +172 -159
  103. package/dist/node_modules/@codemirror/autocomplete/dist/index.es.js.map +1 -1
  104. package/dist/node_modules/@codemirror/commands/dist/index.cjs +1 -1
  105. package/dist/node_modules/@codemirror/commands/dist/index.cjs.map +1 -1
  106. package/dist/node_modules/@codemirror/commands/dist/index.es.js +376 -333
  107. package/dist/node_modules/@codemirror/commands/dist/index.es.js.map +1 -1
  108. package/dist/node_modules/@codemirror/lang-css/dist/index.es.js +3 -3
  109. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs +1 -1
  110. package/dist/node_modules/@codemirror/lang-html/dist/index.cjs.map +1 -1
  111. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js +238 -228
  112. package/dist/node_modules/@codemirror/lang-html/dist/index.es.js.map +1 -1
  113. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs +4 -4
  114. package/dist/node_modules/@codemirror/lang-javascript/dist/index.cjs.map +1 -1
  115. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js +62 -50
  116. package/dist/node_modules/@codemirror/lang-javascript/dist/index.es.js.map +1 -1
  117. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs +1 -1
  118. package/dist/node_modules/@codemirror/lang-markdown/dist/index.cjs.map +1 -1
  119. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js +237 -207
  120. package/dist/node_modules/@codemirror/lang-markdown/dist/index.es.js.map +1 -1
  121. package/dist/node_modules/@codemirror/language/dist/index.cjs +1 -1
  122. package/dist/node_modules/@codemirror/language/dist/index.cjs.map +1 -1
  123. package/dist/node_modules/@codemirror/language/dist/index.es.js +302 -296
  124. package/dist/node_modules/@codemirror/language/dist/index.es.js.map +1 -1
  125. package/dist/node_modules/@codemirror/lint/dist/index.cjs +1 -1
  126. package/dist/node_modules/@codemirror/lint/dist/index.cjs.map +1 -1
  127. package/dist/node_modules/@codemirror/lint/dist/index.es.js +281 -236
  128. package/dist/node_modules/@codemirror/lint/dist/index.es.js.map +1 -1
  129. package/dist/node_modules/@codemirror/search/dist/index.cjs +2 -2
  130. package/dist/node_modules/@codemirror/search/dist/index.cjs.map +1 -1
  131. package/dist/node_modules/@codemirror/search/dist/index.es.js +427 -454
  132. package/dist/node_modules/@codemirror/search/dist/index.es.js.map +1 -1
  133. package/dist/node_modules/@codemirror/state/dist/index.cjs +5 -5
  134. package/dist/node_modules/@codemirror/state/dist/index.cjs.map +1 -1
  135. package/dist/node_modules/@codemirror/state/dist/index.es.js +556 -509
  136. package/dist/node_modules/@codemirror/state/dist/index.es.js.map +1 -1
  137. package/dist/node_modules/@codemirror/view/dist/index.cjs +5 -5
  138. package/dist/node_modules/@codemirror/view/dist/index.cjs.map +1 -1
  139. package/dist/node_modules/@codemirror/view/dist/index.es.js +3982 -3507
  140. package/dist/node_modules/@codemirror/view/dist/index.es.js.map +1 -1
  141. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs +1 -1
  142. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.cjs.map +1 -1
  143. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js +288 -309
  144. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -1
  145. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs +1 -1
  146. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.cjs.map +1 -1
  147. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js +244 -252
  148. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -1
  149. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs +1 -1
  150. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.cjs.map +1 -1
  151. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs +1 -1
  152. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.cjs.map +1 -1
  153. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js +8 -8
  154. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -1
  155. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js +47 -47
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.es.js.map +1 -1
  157. package/dist/node_modules/@lezer/common/dist/index.cjs +1 -1
  158. package/dist/node_modules/@lezer/common/dist/index.cjs.map +1 -1
  159. package/dist/node_modules/@lezer/common/dist/index.es.js +266 -253
  160. package/dist/node_modules/@lezer/common/dist/index.es.js.map +1 -1
  161. package/dist/node_modules/@lezer/css/dist/index.cjs +1 -1
  162. package/dist/node_modules/@lezer/css/dist/index.cjs.map +1 -1
  163. package/dist/node_modules/@lezer/css/dist/index.es.js +95 -87
  164. package/dist/node_modules/@lezer/css/dist/index.es.js.map +1 -1
  165. package/dist/node_modules/@lezer/highlight/dist/index.cjs +1 -1
  166. package/dist/node_modules/@lezer/highlight/dist/index.cjs.map +1 -1
  167. package/dist/node_modules/@lezer/highlight/dist/index.es.js +150 -139
  168. package/dist/node_modules/@lezer/highlight/dist/index.es.js.map +1 -1
  169. package/dist/node_modules/@lezer/html/dist/index.cjs +1 -1
  170. package/dist/node_modules/@lezer/html/dist/index.cjs.map +1 -1
  171. package/dist/node_modules/@lezer/html/dist/index.es.js +88 -95
  172. package/dist/node_modules/@lezer/html/dist/index.es.js.map +1 -1
  173. package/dist/node_modules/@lezer/javascript/dist/index.cjs +1 -1
  174. package/dist/node_modules/@lezer/javascript/dist/index.cjs.map +1 -1
  175. package/dist/node_modules/@lezer/javascript/dist/index.es.js +49 -49
  176. package/dist/node_modules/@lezer/javascript/dist/index.es.js.map +1 -1
  177. package/dist/node_modules/@lezer/lr/dist/index.cjs +1 -1
  178. package/dist/node_modules/@lezer/lr/dist/index.cjs.map +1 -1
  179. package/dist/node_modules/@lezer/lr/dist/index.es.js +148 -137
  180. package/dist/node_modules/@lezer/lr/dist/index.es.js.map +1 -1
  181. package/dist/node_modules/@lezer/markdown/dist/index.cjs +5 -5
  182. package/dist/node_modules/@lezer/markdown/dist/index.cjs.map +1 -1
  183. package/dist/node_modules/@lezer/markdown/dist/index.es.js +305 -269
  184. package/dist/node_modules/@lezer/markdown/dist/index.es.js.map +1 -1
  185. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs +1 -1
  186. package/dist/node_modules/@marijn/find-cluster-break/src/index.cjs.map +1 -1
  187. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js +31 -31
  188. package/dist/node_modules/@marijn/find-cluster-break/src/index.es.js.map +1 -1
  189. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js +4 -3
  190. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7GRP2DOG.es.js.map +1 -1
  191. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2ZTRR5NV.es.js +1 -1
  192. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-3Z5EZCMW.es.js +1 -1
  193. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5V3GS4D5.es.js +1 -1
  194. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6AZGARVD.es.js +1 -1
  195. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6EIED4P4.es.js +1 -1
  196. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6K3QC6MW.es.js +1 -1
  197. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-6TQVIW2G.es.js +1 -1
  198. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-747NJXEK.es.js +1 -1
  199. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-I5DQTOEV.es.js +1 -1
  200. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ICYGCRZG.es.js +1 -1
  201. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-IH6LHLGP.es.js +1 -1
  202. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KI3K4JFJ.es.js +1 -1
  203. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OUJLGHUK.es.js +1 -1
  204. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UY3FDG6J.es.js +1 -1
  205. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XHIXRSVI.es.js +1 -1
  206. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js +4 -3
  207. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-OW5HDTMX.es.js.map +1 -1
  208. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js +4 -3
  209. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-NTZA5JFV.es.js.map +1 -1
  210. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js +3 -2
  211. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-4MIJSDKK.es.js.map +1 -1
  212. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js +4 -3
  213. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-A6RAGUB7.es.js.map +1 -1
  214. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js +4 -3
  215. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-AYTQ26CC.es.js.map +1 -1
  216. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js +4 -3
  217. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-WAS4IAKB.es.js.map +1 -1
  218. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js +4 -3
  219. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-RG4KPBEZ.es.js.map +1 -1
  220. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js +4 -3
  221. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-74A4TZTK.es.js.map +1 -1
  222. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js +4 -3
  223. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-HS5TGJTU.es.js.map +1 -1
  224. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js +4 -3
  225. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-LZEXJU2U.es.js.map +1 -1
  226. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js +4 -3
  227. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-WCYAUIDC.es.js.map +1 -1
  228. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js +4 -3
  229. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-Q6P3EWNA.es.js.map +1 -1
  230. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js +4 -3
  231. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-WGGIJYW6.es.js.map +1 -1
  232. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js +4 -3
  233. package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-WFR3VGLG.es.js.map +1 -1
  234. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs +1 -1
  235. package/dist/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -1
  236. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js +46 -6
  237. package/dist/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -1
  238. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +1 -1
  239. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +1 -1
  240. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +20 -16
  241. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -1
  242. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  243. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  244. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +71 -43
  245. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  246. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +1 -1
  247. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  248. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +16 -16
  249. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  250. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  251. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +184 -96
  252. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  253. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  254. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  255. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +3 -3
  256. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs +1 -1
  257. package/dist/node_modules/@radix-ui/react-id/dist/index.cjs.map +1 -1
  258. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js +10 -9
  259. package/dist/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
  260. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  261. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  262. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +14 -12
  263. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  264. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs +1 -1
  265. package/dist/node_modules/@radix-ui/react-presence/dist/index.cjs.map +1 -1
  266. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js +70 -37
  267. package/dist/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -1
  268. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  269. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  270. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +16 -14
  271. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  272. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  273. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  274. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +1 -1
  275. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  276. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  277. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +261 -250
  278. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  279. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.cjs.map +1 -0
  280. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -0
  281. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs +2 -0
  282. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -0
  283. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js +25 -0
  284. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -0
  285. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -0
  286. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -0
  287. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +2 -0
  288. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -0
  289. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +1 -1
  290. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -0
  291. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +2 -0
  292. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -0
  293. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +105 -0
  294. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -0
  295. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs +2 -0
  296. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -0
  297. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js +271 -0
  298. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -0
  299. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs +2 -0
  300. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -0
  301. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-portal/dist/index.es.js +1 -1
  302. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -0
  303. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  304. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  305. package/dist/node_modules/@radix-ui/{react-focus-scope → react-tooltip}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  306. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  307. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  308. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  309. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js +94 -7
  310. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  311. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +2 -0
  312. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -0
  313. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +16 -0
  314. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -0
  315. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +2 -0
  316. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -0
  317. package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +2 -2
  318. package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -0
  319. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +1 -1
  320. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +1 -1
  321. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +8 -6
  322. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
  323. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +1 -1
  324. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +1 -1
  325. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js +56 -39
  326. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
  327. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +1 -0
  328. package/dist/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +1 -0
  329. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +1 -1
  330. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +1 -1
  331. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs +1 -1
  332. package/dist/node_modules/@radix-ui/react-use-size/dist/index.cjs.map +1 -1
  333. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js +28 -21
  334. package/dist/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -1
  335. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  336. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  337. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +15 -15
  338. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  339. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs +2 -0
  340. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -0
  341. package/dist/node_modules/@radix-ui/{react-dialog → react-visually-hidden}/node_modules/@radix-ui/react-primitive/dist/index.es.js +1 -1
  342. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -0
  343. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
  344. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -0
  345. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js +99 -0
  346. package/dist/node_modules/@radix-ui/react-visually-hidden/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -0
  347. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs +1 -1
  348. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.cjs.map +1 -1
  349. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js +11 -13
  350. package/dist/node_modules/@uiw/codemirror-extensions-basic-setup/esm/index.es.js.map +1 -1
  351. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs +1 -1
  352. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.cjs.map +1 -1
  353. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js +20 -27
  354. package/dist/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.es.js.map +1 -1
  355. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  356. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  357. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +51 -80
  358. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  359. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs +2 -0
  360. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.cjs.map +1 -0
  361. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js +33 -0
  362. package/dist/node_modules/@uiw/react-codemirror/esm/theme/dimensionTheme.es.js.map +1 -0
  363. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs +1 -1
  364. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.cjs.map +1 -1
  365. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js +64 -98
  366. package/dist/node_modules/@uiw/react-codemirror/esm/useCodeMirror.es.js.map +1 -1
  367. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs +1 -1
  368. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.cjs.map +1 -1
  369. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js +65 -42
  370. package/dist/node_modules/@ungap/structured-clone/esm/deserialize.es.js.map +1 -1
  371. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs +1 -1
  372. package/dist/node_modules/@ungap/structured-clone/esm/serialize.cjs.map +1 -1
  373. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js +62 -58
  374. package/dist/node_modules/@ungap/structured-clone/esm/serialize.es.js.map +1 -1
  375. package/dist/node_modules/classnames/index.es.js +1 -1
  376. package/dist/node_modules/clsx/dist/clsx.cjs +1 -1
  377. package/dist/node_modules/clsx/dist/clsx.cjs.map +1 -1
  378. package/dist/node_modules/clsx/dist/clsx.es.js +7 -8
  379. package/dist/node_modules/clsx/dist/clsx.es.js.map +1 -1
  380. package/dist/node_modules/cose-base/cose-base.es.js +1 -1
  381. package/dist/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.es.js +1 -1
  382. package/dist/node_modules/cytoscape-fcose/cytoscape-fcose.es.js +1 -1
  383. package/dist/node_modules/d3-color/src/lab.cjs +1 -1
  384. package/dist/node_modules/d3-color/src/lab.cjs.map +1 -1
  385. package/dist/node_modules/d3-color/src/lab.es.js +4 -5
  386. package/dist/node_modules/d3-format/src/defaultLocale.cjs +1 -1
  387. package/dist/node_modules/d3-format/src/defaultLocale.cjs.map +1 -1
  388. package/dist/node_modules/d3-format/src/defaultLocale.es.js +3 -4
  389. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +1 -1
  390. package/dist/node_modules/d3-time-format/src/defaultLocale.cjs.map +1 -1
  391. package/dist/node_modules/d3-time-format/src/defaultLocale.es.js +2 -3
  392. package/dist/node_modules/d3-time-format/src/locale.es.js +14 -14
  393. package/dist/node_modules/d3-transition/src/selection/transition.cjs +1 -1
  394. package/dist/node_modules/d3-transition/src/selection/transition.es.js +4 -4
  395. package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +1 -1
  396. package/dist/node_modules/d3-transition/src/transition/interpolate.es.js +3 -3
  397. package/dist/node_modules/dagre-d3-es/src/dagre/layout.cjs +1 -1
  398. package/dist/node_modules/dagre-d3-es/src/dagre/layout.es.js +7 -7
  399. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.cjs +1 -1
  400. package/dist/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.es.js +4 -4
  401. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.cjs +1 -1
  402. package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.es.js +14 -14
  403. package/dist/node_modules/dagre-d3-es/src/dagre/util.cjs +1 -1
  404. package/dist/node_modules/dagre-d3-es/src/dagre/util.es.js +7 -7
  405. package/dist/node_modules/dayjs/dayjs.min.cjs +1 -1
  406. package/dist/node_modules/dayjs/dayjs.min.es.js +1 -1
  407. package/dist/node_modules/dayjs/plugin/advancedFormat.es.js +1 -1
  408. package/dist/node_modules/dayjs/plugin/customParseFormat.es.js +1 -1
  409. package/dist/node_modules/dayjs/plugin/duration.es.js +1 -1
  410. package/dist/node_modules/dayjs/plugin/isoWeek.es.js +1 -1
  411. package/dist/node_modules/decode-named-character-reference/index.dom.cjs.map +1 -1
  412. package/dist/node_modules/decode-named-character-reference/index.dom.es.js +1 -5
  413. package/dist/node_modules/decode-named-character-reference/index.dom.es.js.map +1 -1
  414. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
  415. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
  416. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs +1 -1
  417. package/dist/node_modules/hast-util-to-parse5/lib/index.cjs.map +1 -1
  418. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js +2 -2
  419. package/dist/node_modules/hast-util-to-parse5/lib/index.es.js.map +1 -1
  420. package/dist/node_modules/hast-util-to-text/lib/index.cjs +3 -3
  421. package/dist/node_modules/hast-util-to-text/lib/index.cjs.map +1 -1
  422. package/dist/node_modules/hast-util-to-text/lib/index.es.js +136 -84
  423. package/dist/node_modules/hast-util-to-text/lib/index.es.js.map +1 -1
  424. package/dist/node_modules/highlight.js/es/languages/c.cjs +1 -1
  425. package/dist/node_modules/highlight.js/es/languages/c.cjs.map +1 -1
  426. package/dist/node_modules/highlight.js/es/languages/c.es.js +122 -63
  427. package/dist/node_modules/highlight.js/es/languages/c.es.js.map +1 -1
  428. package/dist/node_modules/highlight.js/es/languages/cpp.cjs +1 -1
  429. package/dist/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -1
  430. package/dist/node_modules/highlight.js/es/languages/cpp.es.js +65 -48
  431. package/dist/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -1
  432. package/dist/node_modules/highlight.js/es/languages/css.cjs +1 -1
  433. package/dist/node_modules/highlight.js/es/languages/css.cjs.map +1 -1
  434. package/dist/node_modules/highlight.js/es/languages/css.es.js +17 -6
  435. package/dist/node_modules/highlight.js/es/languages/css.es.js.map +1 -1
  436. package/dist/node_modules/highlight.js/es/languages/go.cjs +1 -1
  437. package/dist/node_modules/highlight.js/es/languages/go.cjs.map +1 -1
  438. package/dist/node_modules/highlight.js/es/languages/go.es.js +7 -2
  439. package/dist/node_modules/highlight.js/es/languages/go.es.js.map +1 -1
  440. package/dist/node_modules/highlight.js/es/languages/java.cjs +1 -1
  441. package/dist/node_modules/highlight.js/es/languages/java.cjs.map +1 -1
  442. package/dist/node_modules/highlight.js/es/languages/java.es.js +48 -39
  443. package/dist/node_modules/highlight.js/es/languages/java.es.js.map +1 -1
  444. package/dist/node_modules/highlight.js/es/languages/javascript.cjs +1 -1
  445. package/dist/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -1
  446. package/dist/node_modules/highlight.js/es/languages/javascript.es.js +4 -2
  447. package/dist/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -1
  448. package/dist/node_modules/highlight.js/es/languages/json.cjs +1 -1
  449. package/dist/node_modules/highlight.js/es/languages/json.cjs.map +1 -1
  450. package/dist/node_modules/highlight.js/es/languages/json.es.js +15 -9
  451. package/dist/node_modules/highlight.js/es/languages/json.es.js.map +1 -1
  452. package/dist/node_modules/highlight.js/es/languages/lua.cjs +1 -1
  453. package/dist/node_modules/highlight.js/es/languages/lua.cjs.map +1 -1
  454. package/dist/node_modules/highlight.js/es/languages/lua.es.js +1 -1
  455. package/dist/node_modules/highlight.js/es/languages/lua.es.js.map +1 -1
  456. package/dist/node_modules/highlight.js/es/languages/markdown.cjs +1 -1
  457. package/dist/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -1
  458. package/dist/node_modules/highlight.js/es/languages/markdown.es.js +9 -10
  459. package/dist/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -1
  460. package/dist/node_modules/highlight.js/es/languages/php.cjs +2 -2
  461. package/dist/node_modules/highlight.js/es/languages/php.cjs.map +1 -1
  462. package/dist/node_modules/highlight.js/es/languages/php.es.js +39 -33
  463. package/dist/node_modules/highlight.js/es/languages/php.es.js.map +1 -1
  464. package/dist/node_modules/highlight.js/es/languages/python.cjs +1 -1
  465. package/dist/node_modules/highlight.js/es/languages/python.cjs.map +1 -1
  466. package/dist/node_modules/highlight.js/es/languages/python.es.js +20 -15
  467. package/dist/node_modules/highlight.js/es/languages/python.es.js.map +1 -1
  468. package/dist/node_modules/highlight.js/es/languages/rust.cjs +1 -1
  469. package/dist/node_modules/highlight.js/es/languages/rust.cjs.map +1 -1
  470. package/dist/node_modules/highlight.js/es/languages/rust.es.js +40 -26
  471. package/dist/node_modules/highlight.js/es/languages/rust.es.js.map +1 -1
  472. package/dist/node_modules/highlight.js/es/languages/scss.cjs +1 -1
  473. package/dist/node_modules/highlight.js/es/languages/scss.cjs.map +1 -1
  474. package/dist/node_modules/highlight.js/es/languages/scss.es.js +36 -25
  475. package/dist/node_modules/highlight.js/es/languages/scss.es.js.map +1 -1
  476. package/dist/node_modules/highlight.js/es/languages/shell.cjs +1 -1
  477. package/dist/node_modules/highlight.js/es/languages/shell.cjs.map +1 -1
  478. package/dist/node_modules/highlight.js/es/languages/shell.es.js +1 -1
  479. package/dist/node_modules/highlight.js/es/languages/shell.es.js.map +1 -1
  480. package/dist/node_modules/highlight.js/es/languages/typescript.cjs +1 -1
  481. package/dist/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -1
  482. package/dist/node_modules/highlight.js/es/languages/typescript.es.js +4 -2
  483. package/dist/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -1
  484. package/dist/node_modules/highlight.js/es/languages/xml.cjs +1 -1
  485. package/dist/node_modules/highlight.js/es/languages/xml.cjs.map +1 -1
  486. package/dist/node_modules/highlight.js/es/languages/xml.es.js +9 -16
  487. package/dist/node_modules/highlight.js/es/languages/xml.es.js.map +1 -1
  488. package/dist/node_modules/inline-style-parser/cjs/index.cjs +3 -0
  489. package/dist/node_modules/inline-style-parser/cjs/index.cjs.map +1 -0
  490. package/dist/node_modules/inline-style-parser/{index.es.js → cjs/index.es.js} +24 -24
  491. package/dist/node_modules/inline-style-parser/cjs/index.es.js.map +1 -0
  492. package/dist/node_modules/layout-base/layout-base.es.js +1 -1
  493. package/dist/node_modules/lowlight/lib/common.cjs +1 -1
  494. package/dist/node_modules/lowlight/lib/common.cjs.map +1 -1
  495. package/dist/node_modules/lowlight/lib/common.es.js +37 -37
  496. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs +1 -1
  497. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js +1 -1
  498. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs +2 -0
  499. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.cjs.map +1 -0
  500. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/arduino.es.js +10 -14
  501. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/arduino.es.js.map +1 -0
  502. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs +2 -0
  503. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.cjs.map +1 -0
  504. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js +378 -0
  505. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/bash.es.js.map +1 -0
  506. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs +2 -0
  507. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.cjs.map +1 -0
  508. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js +278 -0
  509. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/c.es.js.map +1 -0
  510. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs +2 -0
  511. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.cjs.map +1 -0
  512. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js +518 -0
  513. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/cpp.es.js.map +1 -0
  514. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs +2 -0
  515. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.cjs.map +1 -0
  516. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/csharp.es.js +1 -1
  517. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/csharp.es.js.map +1 -0
  518. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs +2 -0
  519. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.cjs.map +1 -0
  520. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js +930 -0
  521. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/css.es.js.map +1 -0
  522. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs +2 -0
  523. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.cjs.map +1 -0
  524. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/diff.es.js +10 -3
  525. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/diff.es.js.map +1 -0
  526. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs +2 -0
  527. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.cjs.map +1 -0
  528. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js +152 -0
  529. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/go.es.js.map +1 -0
  530. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.cjs.map +1 -0
  531. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/graphql.es.js.map +1 -0
  532. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.cjs.map +1 -0
  533. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ini.es.js.map +1 -0
  534. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs +2 -0
  535. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.cjs.map +1 -0
  536. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js +241 -0
  537. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/java.es.js.map +1 -0
  538. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs +2 -0
  539. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.cjs.map +1 -0
  540. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js +660 -0
  541. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/javascript.es.js.map +1 -0
  542. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs +2 -0
  543. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.cjs.map +1 -0
  544. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js +45 -0
  545. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/json.es.js.map +1 -0
  546. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.cjs.map +1 -0
  547. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/kotlin.es.js.map +1 -0
  548. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs +2 -0
  549. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.cjs.map +1 -0
  550. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/less.es.js +10 -4
  551. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/less.es.js.map +1 -0
  552. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs +2 -0
  553. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.cjs.map +1 -0
  554. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js +60 -0
  555. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/lua.es.js.map +1 -0
  556. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.cjs.map +1 -0
  557. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/makefile.es.js.map +1 -0
  558. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs +2 -0
  559. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.cjs.map +1 -0
  560. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js +217 -0
  561. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/markdown.es.js.map +1 -0
  562. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.cjs.map +1 -0
  563. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/objectivec.es.js.map +1 -0
  564. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.cjs.map +1 -0
  565. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/perl.es.js.map +1 -0
  566. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.cjs.map +1 -0
  567. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php-template.es.js.map +1 -0
  568. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs +3 -0
  569. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.cjs.map +1 -0
  570. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js +573 -0
  571. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/php.es.js.map +1 -0
  572. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs +2 -0
  573. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.cjs.map +1 -0
  574. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js +14 -0
  575. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/plaintext.es.js.map +1 -0
  576. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.cjs.map +1 -0
  577. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python-repl.es.js.map +1 -0
  578. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs +2 -0
  579. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.cjs.map +1 -0
  580. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js +400 -0
  581. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/python.es.js.map +1 -0
  582. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.cjs.map +1 -0
  583. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/r.es.js.map +1 -0
  584. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.cjs.map +1 -0
  585. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/ruby.es.js.map +1 -0
  586. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs +2 -0
  587. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.cjs.map +1 -0
  588. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js +306 -0
  589. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/rust.es.js.map +1 -0
  590. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs +2 -0
  591. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.cjs.map +1 -0
  592. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js +915 -0
  593. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/scss.es.js.map +1 -0
  594. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs +2 -0
  595. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.cjs.map +1 -0
  596. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js +26 -0
  597. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/shell.es.js.map +1 -0
  598. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs +2 -0
  599. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.cjs.map +1 -0
  600. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js +616 -0
  601. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/sql.es.js.map +1 -0
  602. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.cjs.map +1 -0
  603. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/swift.es.js.map +1 -0
  604. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs +2 -0
  605. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.cjs.map +1 -0
  606. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js +755 -0
  607. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/typescript.es.js.map +1 -0
  608. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.cjs.map +1 -0
  609. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/vbnet.es.js.map +1 -0
  610. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.cjs.map +1 -0
  611. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/wasm.es.js.map +1 -0
  612. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs +2 -0
  613. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.cjs.map +1 -0
  614. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js +220 -0
  615. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/xml.es.js.map +1 -0
  616. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs +2 -0
  617. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.cjs.map +1 -0
  618. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js +184 -0
  619. package/dist/node_modules/lowlight/node_modules/highlight.js/es/languages/yaml.es.js.map +1 -0
  620. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.cjs +3 -3
  621. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.cjs.map +1 -0
  622. package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/lib/core.es.js +66 -66
  623. package/dist/node_modules/lowlight/node_modules/highlight.js/lib/core.es.js.map +1 -0
  624. package/dist/node_modules/lucide-react/dist/esm/Icon.es.js +3 -3
  625. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs +1 -1
  626. package/dist/node_modules/mdast-util-find-and-replace/lib/index.cjs.map +1 -1
  627. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js +58 -56
  628. package/dist/node_modules/mdast-util-find-and-replace/lib/index.es.js.map +1 -1
  629. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs +1 -1
  630. package/dist/node_modules/mdast-util-from-markdown/lib/index.cjs.map +1 -1
  631. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js +274 -223
  632. package/dist/node_modules/mdast-util-from-markdown/lib/index.es.js.map +1 -1
  633. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs +1 -1
  634. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.cjs.map +1 -1
  635. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js +21 -17
  636. package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.es.js.map +1 -1
  637. package/dist/node_modules/mdast-util-to-hast/lib/footer.cjs.map +1 -1
  638. package/dist/node_modules/mdast-util-to-hast/lib/footer.es.js.map +1 -1
  639. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.cjs.map +1 -1
  640. package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.es.js.map +1 -1
  641. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.cjs.map +1 -1
  642. package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.es.js.map +1 -1
  643. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs +2 -2
  644. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.cjs.map +1 -1
  645. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js +7 -7
  646. package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.es.js.map +1 -1
  647. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.cjs.map +1 -1
  648. package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.es.js.map +1 -1
  649. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.cjs.map +1 -1
  650. package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.es.js.map +1 -1
  651. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.cjs.map +1 -1
  652. package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.es.js.map +1 -1
  653. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.cjs.map +1 -1
  654. package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.es.js.map +1 -1
  655. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.cjs.map +1 -1
  656. package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.es.js.map +1 -1
  657. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.cjs.map +1 -1
  658. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.es.js.map +1 -1
  659. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.cjs.map +1 -1
  660. package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.es.js.map +1 -1
  661. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.cjs.map +1 -1
  662. package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.es.js.map +1 -1
  663. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.cjs.map +1 -1
  664. package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.es.js.map +1 -1
  665. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.cjs.map +1 -1
  666. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.es.js.map +1 -1
  667. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.cjs.map +1 -1
  668. package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.es.js.map +1 -1
  669. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.cjs.map +1 -1
  670. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.es.js.map +1 -1
  671. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.cjs.map +1 -1
  672. package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.es.js.map +1 -1
  673. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.cjs.map +1 -1
  674. package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.es.js.map +1 -1
  675. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.cjs.map +1 -1
  676. package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.es.js.map +1 -1
  677. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.cjs.map +1 -1
  678. package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.es.js.map +1 -1
  679. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.cjs.map +1 -1
  680. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.es.js.map +1 -1
  681. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.cjs.map +1 -1
  682. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.es.js.map +1 -1
  683. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.cjs.map +1 -1
  684. package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.es.js.map +1 -1
  685. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.cjs.map +1 -1
  686. package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.es.js.map +1 -1
  687. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.cjs.map +1 -1
  688. package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.es.js.map +1 -1
  689. package/dist/node_modules/mdast-util-to-hast/lib/index.cjs.map +1 -1
  690. package/dist/node_modules/mdast-util-to-hast/lib/index.es.js.map +1 -1
  691. package/dist/node_modules/mdast-util-to-hast/lib/revert.cjs.map +1 -1
  692. package/dist/node_modules/mdast-util-to-hast/lib/revert.es.js.map +1 -1
  693. package/dist/node_modules/mdast-util-to-hast/lib/state.cjs.map +1 -1
  694. package/dist/node_modules/mdast-util-to-hast/lib/state.es.js.map +1 -1
  695. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.cjs.map +1 -1
  696. package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.es.js.map +1 -1
  697. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs +3 -3
  698. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.cjs.map +1 -1
  699. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js +9 -7
  700. package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.es.js.map +1 -1
  701. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs +2 -2
  702. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.cjs.map +1 -1
  703. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js +6 -6
  704. package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.es.js.map +1 -1
  705. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.cjs.map +1 -1
  706. package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.es.js.map +1 -1
  707. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs +1 -1
  708. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.cjs.map +1 -1
  709. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js +17 -29
  710. package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.es.js.map +1 -1
  711. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs +5 -5
  712. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.cjs.map +1 -1
  713. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js +12 -11
  714. package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.es.js.map +1 -1
  715. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.cjs.map +1 -1
  716. package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.es.js.map +1 -1
  717. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs +1 -1
  718. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.cjs.map +1 -1
  719. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js +14 -12
  720. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.es.js.map +1 -1
  721. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.cjs.map +1 -1
  722. package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.es.js.map +1 -1
  723. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs +1 -1
  724. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.cjs.map +1 -1
  725. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js +6 -6
  726. package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.es.js.map +1 -1
  727. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs +1 -1
  728. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.cjs.map +1 -1
  729. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js +15 -13
  730. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.es.js.map +1 -1
  731. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs +2 -1
  732. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.cjs.map +1 -1
  733. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js +42 -32
  734. package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.es.js.map +1 -1
  735. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.cjs.map +1 -1
  736. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.es.js.map +1 -1
  737. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.cjs.map +1 -1
  738. package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.es.js.map +1 -1
  739. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.cjs.map +1 -1
  740. package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.es.js.map +1 -1
  741. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs +1 -1
  742. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.cjs.map +1 -1
  743. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js +8 -6
  744. package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.es.js.map +1 -1
  745. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs +1 -1
  746. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.cjs.map +1 -1
  747. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js +17 -29
  748. package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.es.js.map +1 -1
  749. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs +1 -1
  750. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.cjs.map +1 -1
  751. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js +8 -3
  752. package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.es.js.map +1 -1
  753. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.cjs.map +1 -1
  754. package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.es.js.map +1 -1
  755. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs +2 -0
  756. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.cjs.map +1 -0
  757. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js +13 -0
  758. package/dist/node_modules/mdast-util-to-markdown/lib/util/character.es.js.map +1 -0
  759. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.cjs.map +1 -1
  760. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.es.js.map +1 -1
  761. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.cjs.map +1 -1
  762. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.es.js.map +1 -1
  763. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.cjs.map +1 -1
  764. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.es.js.map +1 -1
  765. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.cjs.map +1 -1
  766. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.es.js.map +1 -1
  767. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.cjs.map +1 -1
  768. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.es.js.map +1 -1
  769. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.cjs.map +1 -1
  770. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.es.js.map +1 -1
  771. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.cjs.map +1 -1
  772. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.es.js.map +1 -1
  773. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.cjs.map +1 -1
  774. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.es.js.map +1 -1
  775. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.cjs.map +1 -1
  776. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.es.js.map +1 -1
  777. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.cjs.map +1 -1
  778. package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.es.js.map +1 -1
  779. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs +4 -0
  780. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.cjs.map +1 -0
  781. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js +263 -0
  782. package/dist/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.es.js.map +1 -0
  783. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.cjs.map +1 -1
  784. package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.es.js.map +1 -1
  785. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs +1 -1
  786. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.cjs.map +1 -1
  787. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js +2 -2
  788. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.es.js.map +1 -1
  789. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.cjs.map +1 -1
  790. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.es.js.map +1 -1
  791. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs +1 -1
  792. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.cjs.map +1 -1
  793. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js +2 -2
  794. package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.es.js.map +1 -1
  795. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs +2 -0
  796. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.cjs.map +1 -0
  797. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js +22 -0
  798. package/dist/node_modules/mdast-util-to-markdown/lib/util/html-kind.es.js.map +1 -0
  799. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.cjs.map +1 -1
  800. package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.es.js.map +1 -1
  801. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.cjs +2 -2
  802. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VBNYF7ZC.es.js +4 -4
  803. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.cjs +1 -1
  804. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-5PPSVZJV.es.js +1 -1
  805. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.cjs +1 -1
  806. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2GRJ4B5K.es.js +1 -1
  807. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.cjs +2 -2
  808. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JQJVKLGR.es.js +4 -4
  809. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.cjs +1 -1
  810. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-NSK5VX7P.es.js +1 -1
  811. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WRU74C26.es.js +3 -3
  812. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.cjs +1 -1
  813. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-JCYQIIEL.es.js +1 -1
  814. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.cjs +1 -1
  815. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-OCEON4UE.es.js +1 -1
  816. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.cjs +3 -3
  817. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-B4RE2ZJO.es.js +4 -4
  818. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.cjs +2 -2
  819. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-JOGREHBK.es.js +4 -4
  820. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.cjs +1 -1
  821. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js +5 -4
  822. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-UKHOOZJN.es.js.map +1 -1
  823. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.cjs +1 -1
  824. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-PKOTCBZU.es.js +2 -2
  825. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs +1 -1
  826. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.cjs.map +1 -1
  827. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-FAOFIHXS.es.js +1 -1
  828. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.cjs +1 -1
  829. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-CIZ2JOQS.es.js +4 -4
  830. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.cjs +1 -1
  831. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-W5VNT64P.es.js +1 -1
  832. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.cjs +1 -1
  833. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-SI44F4Z6.es.js +1 -1
  834. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.cjs +1 -1
  835. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-OKZ733FA.es.js +1 -1
  836. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.cjs +1 -1
  837. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-UEYNNEHI.es.js +1 -1
  838. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.cjs +1 -1
  839. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-ULZ7WXOC.es.js +1 -1
  840. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.cjs +1 -1
  841. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-T6HMQDX7.es.js +2 -2
  842. package/dist/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-ELKLHX3M.es.js +4 -4
  843. package/dist/node_modules/mermaid/dist/mermaid.core.cjs +1 -1
  844. package/dist/node_modules/mermaid/dist/mermaid.core.es.js +1 -1
  845. package/dist/node_modules/micromark/lib/constructs.cjs +1 -1
  846. package/dist/node_modules/micromark/lib/constructs.es.js +13 -13
  847. package/dist/node_modules/micromark-factory-space/index.cjs +1 -1
  848. package/dist/node_modules/micromark-factory-space/index.cjs.map +1 -1
  849. package/dist/node_modules/micromark-factory-space/index.es.js +9 -9
  850. package/dist/node_modules/micromark-factory-space/index.es.js.map +1 -1
  851. package/dist/node_modules/parse5/dist/parser/index.es.js +1 -1
  852. package/dist/node_modules/parse5/dist/tokenizer/index.cjs +1 -1
  853. package/dist/node_modules/parse5/dist/tokenizer/index.cjs.map +1 -1
  854. package/dist/node_modules/parse5/dist/tokenizer/index.es.js +2 -2
  855. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.cjs.map +1 -0
  856. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode-codepoint.es.js.map +1 -0
  857. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.cjs.map +1 -0
  858. package/dist/node_modules/parse5/node_modules/entities/dist/esm/decode.es.js.map +1 -0
  859. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +1 -0
  860. package/dist/node_modules/parse5/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +1 -0
  861. package/dist/node_modules/property-information/lib/html.cjs +1 -1
  862. package/dist/node_modules/property-information/lib/html.cjs.map +1 -1
  863. package/dist/node_modules/property-information/lib/html.es.js +16 -6
  864. package/dist/node_modules/property-information/lib/html.es.js.map +1 -1
  865. package/dist/node_modules/property-information/lib/svg.cjs +1 -1
  866. package/dist/node_modules/property-information/lib/svg.cjs.map +1 -1
  867. package/dist/node_modules/property-information/lib/svg.es.js +4 -2
  868. package/dist/node_modules/property-information/lib/svg.es.js.map +1 -1
  869. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  870. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  871. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  872. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  873. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  874. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  875. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  876. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  877. package/dist/node_modules/rc-util/es/ref.es.js +1 -1
  878. package/dist/node_modules/rc-util/node_modules/react-is/index.es.js +1 -1
  879. package/dist/node_modules/react-i18next/dist/es/useTranslation.cjs +1 -1
  880. package/dist/node_modules/react-i18next/dist/es/useTranslation.es.js +7 -7
  881. package/dist/node_modules/remark-flow/dist/index.es.js +1 -1
  882. package/dist/node_modules/remark-flow/dist/interaction-parser.cjs.map +1 -1
  883. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js +2 -2
  884. package/dist/node_modules/remark-flow/dist/interaction-parser.es.js.map +1 -1
  885. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  886. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  887. package/dist/node_modules/style-mod/src/style-mod.cjs +3 -3
  888. package/dist/node_modules/style-mod/src/style-mod.cjs.map +1 -1
  889. package/dist/node_modules/style-mod/src/style-mod.es.js +37 -35
  890. package/dist/node_modules/style-mod/src/style-mod.es.js.map +1 -1
  891. package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
  892. package/dist/node_modules/style-to-object/cjs/index.cjs.map +1 -1
  893. package/dist/node_modules/style-to-object/cjs/index.es.js +15 -15
  894. package/dist/node_modules/style-to-object/cjs/index.es.js.map +1 -1
  895. package/dist/node_modules/stylis/src/Parser.cjs +1 -1
  896. package/dist/node_modules/stylis/src/Parser.cjs.map +1 -1
  897. package/dist/node_modules/stylis/src/Parser.es.js +63 -52
  898. package/dist/node_modules/stylis/src/Parser.es.js.map +1 -1
  899. package/dist/node_modules/stylis/src/Utility.cjs +1 -1
  900. package/dist/node_modules/stylis/src/Utility.cjs.map +1 -1
  901. package/dist/node_modules/stylis/src/Utility.es.js +20 -24
  902. package/dist/node_modules/stylis/src/Utility.es.js.map +1 -1
  903. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -1
  904. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  905. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js +828 -561
  906. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.es.js.map +1 -1
  907. package/dist/node_modules/ts-dedent/esm/index.cjs +5 -5
  908. package/dist/node_modules/ts-dedent/esm/index.cjs.map +1 -1
  909. package/dist/node_modules/ts-dedent/esm/index.es.js +20 -21
  910. package/dist/node_modules/ts-dedent/esm/index.es.js.map +1 -1
  911. package/dist/node_modules/unified/lib/index.es.js +1 -1
  912. package/dist/node_modules/unist-util-is/lib/index.cjs.map +1 -1
  913. package/dist/node_modules/unist-util-is/lib/index.es.js +8 -1
  914. package/dist/node_modules/unist-util-is/lib/index.es.js.map +1 -1
  915. package/dist/node_modules/unist-util-visit/lib/index.cjs +1 -1
  916. package/dist/node_modules/unist-util-visit/lib/index.cjs.map +1 -1
  917. package/dist/node_modules/unist-util-visit/lib/index.es.js +22 -12
  918. package/dist/node_modules/unist-util-visit/lib/index.es.js.map +1 -1
  919. package/dist/node_modules/unist-util-visit-parents/lib/color.cjs.map +1 -1
  920. package/dist/node_modules/unist-util-visit-parents/lib/color.es.js.map +1 -1
  921. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs +1 -1
  922. package/dist/node_modules/unist-util-visit-parents/lib/index.cjs.map +1 -1
  923. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js +72 -37
  924. package/dist/node_modules/unist-util-visit-parents/lib/index.es.js.map +1 -1
  925. package/dist/node_modules/uuid/dist/rng.cjs +2 -0
  926. package/dist/node_modules/uuid/dist/rng.cjs.map +1 -0
  927. package/dist/node_modules/uuid/dist/rng.es.js +8 -0
  928. package/dist/node_modules/uuid/dist/rng.es.js.map +1 -0
  929. package/dist/node_modules/uuid/dist/stringify.cjs.map +1 -0
  930. package/dist/node_modules/uuid/dist/stringify.es.js.map +1 -0
  931. package/dist/node_modules/uuid/dist/v4.cjs +2 -0
  932. package/dist/node_modules/uuid/dist/v4.cjs.map +1 -0
  933. package/dist/node_modules/uuid/dist/v4.es.js +16 -0
  934. package/dist/node_modules/uuid/dist/v4.es.js.map +1 -0
  935. package/dist/renderer.cjs +1 -1
  936. package/dist/renderer.es.js +3 -3
  937. package/dist/scroll.cjs +1 -1
  938. package/dist/scroll.es.js +2 -2
  939. package/package.json +18 -14
  940. package/dist/_virtual/advancedFormat.es2.js.map +0 -1
  941. package/dist/_virtual/cose-base.es2.js.map +0 -1
  942. package/dist/_virtual/customParseFormat.es2.js.map +0 -1
  943. package/dist/_virtual/cytoscape-cose-bilkent.es2.js +0 -5
  944. package/dist/_virtual/cytoscape-cose-bilkent.es2.js.map +0 -1
  945. package/dist/_virtual/cytoscape-fcose.es2.js.map +0 -1
  946. package/dist/_virtual/dayjs.min.es2.js.map +0 -1
  947. package/dist/_virtual/dayjs.min2.cjs.map +0 -1
  948. package/dist/_virtual/duration.es2.js.map +0 -1
  949. package/dist/_virtual/index.es10.js.map +0 -1
  950. package/dist/_virtual/index.es11.js.map +0 -1
  951. package/dist/_virtual/index.es12.js.map +0 -1
  952. package/dist/_virtual/index.es2.js.map +0 -1
  953. package/dist/_virtual/index.es3.js.map +0 -1
  954. package/dist/_virtual/index.es4.js.map +0 -1
  955. package/dist/_virtual/index.es5.js.map +0 -1
  956. package/dist/_virtual/index.es6.js.map +0 -1
  957. package/dist/_virtual/index.es7.js.map +0 -1
  958. package/dist/_virtual/index.es8.js.map +0 -1
  959. package/dist/_virtual/index.es9.js.map +0 -1
  960. package/dist/_virtual/isoWeek.es2.js.map +0 -1
  961. package/dist/_virtual/layout-base.es2.js.map +0 -1
  962. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +0 -2
  963. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +0 -1
  964. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +0 -25
  965. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +0 -1
  966. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.cjs.map +0 -1
  967. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.es.js.map +0 -1
  968. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  969. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  970. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  971. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  972. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.cjs.map +0 -1
  973. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.es.js.map +0 -1
  974. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +0 -2
  975. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +0 -1
  976. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +0 -1
  977. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs +0 -2
  978. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.cjs.map +0 -1
  979. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js +0 -15
  980. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-id/dist/index.es.js.map +0 -1
  981. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs +0 -2
  982. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.cjs.map +0 -1
  983. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.es.js.map +0 -1
  984. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs +0 -2
  985. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.cjs.map +0 -1
  986. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js +0 -104
  987. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.es.js.map +0 -1
  988. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  989. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  990. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  991. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  992. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  993. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  994. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  995. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs +0 -2
  996. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.cjs.map +0 -1
  997. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +0 -1
  998. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.cjs.map +0 -1
  999. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-effect-event/dist/index.es.js.map +0 -1
  1000. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs +0 -2
  1001. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.cjs.map +0 -1
  1002. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js +0 -7
  1003. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-use-layout-effect/dist/index.es.js.map +0 -1
  1004. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  1005. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  1006. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  1007. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  1008. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs +0 -2
  1009. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +0 -1
  1010. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +0 -1
  1011. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs +0 -2
  1012. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.cjs.map +0 -1
  1013. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js +0 -13
  1014. package/dist/node_modules/@radix-ui/react-focus-scope/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +0 -1
  1015. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +0 -2
  1016. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +0 -1
  1017. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +0 -220
  1018. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +0 -1
  1019. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs +0 -2
  1020. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.cjs.map +0 -1
  1021. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js +0 -50
  1022. package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.es.js.map +0 -1
  1023. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs +0 -2
  1024. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.cjs.map +0 -1
  1025. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js +0 -34
  1026. package/dist/node_modules/@radix-ui/react-slot/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +0 -1
  1027. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs +0 -2
  1028. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.cjs.map +0 -1
  1029. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js +0 -15
  1030. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +0 -1
  1031. package/dist/node_modules/entities/dist/esm/decode-codepoint.cjs.map +0 -1
  1032. package/dist/node_modules/entities/dist/esm/decode-codepoint.es.js.map +0 -1
  1033. package/dist/node_modules/entities/dist/esm/decode.cjs.map +0 -1
  1034. package/dist/node_modules/entities/dist/esm/decode.es.js.map +0 -1
  1035. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.cjs.map +0 -1
  1036. package/dist/node_modules/entities/dist/esm/generated/decode-data-html.es.js.map +0 -1
  1037. package/dist/node_modules/hast-util-is-element/lib/index.cjs +0 -2
  1038. package/dist/node_modules/hast-util-is-element/lib/index.cjs.map +0 -1
  1039. package/dist/node_modules/hast-util-is-element/lib/index.es.js +0 -66
  1040. package/dist/node_modules/hast-util-is-element/lib/index.es.js.map +0 -1
  1041. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs +0 -2
  1042. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.cjs.map +0 -1
  1043. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js +0 -13
  1044. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/index.es.js.map +0 -1
  1045. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs +0 -2
  1046. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.cjs.map +0 -1
  1047. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js +0 -62
  1048. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/aria.es.js.map +0 -1
  1049. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs +0 -2
  1050. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.cjs.map +0 -1
  1051. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js +0 -34
  1052. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/find.es.js.map +0 -1
  1053. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs +0 -2
  1054. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.cjs.map +0 -1
  1055. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js +0 -369
  1056. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/html.es.js.map +0 -1
  1057. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs +0 -2
  1058. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.cjs.map +0 -1
  1059. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js +0 -7
  1060. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/normalize.es.js.map +0 -1
  1061. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs +0 -2
  1062. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.cjs.map +0 -1
  1063. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js +0 -567
  1064. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/svg.es.js.map +0 -1
  1065. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs +0 -2
  1066. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.cjs.map +0 -1
  1067. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js +0 -8
  1068. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-insensitive-transform.es.js.map +0 -1
  1069. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs +0 -2
  1070. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.cjs.map +0 -1
  1071. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js +0 -7
  1072. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/case-sensitive-transform.es.js.map +0 -1
  1073. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs +0 -2
  1074. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.cjs.map +0 -1
  1075. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js +0 -23
  1076. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/create.es.js.map +0 -1
  1077. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs +0 -2
  1078. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.cjs.map +0 -1
  1079. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js +0 -28
  1080. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/defined-info.es.js.map +0 -1
  1081. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs +0 -2
  1082. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.cjs.map +0 -1
  1083. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js +0 -24
  1084. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/info.es.js.map +0 -1
  1085. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs +0 -2
  1086. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.cjs.map +0 -1
  1087. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js +0 -12
  1088. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/merge.es.js.map +0 -1
  1089. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs +0 -2
  1090. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.cjs.map +0 -1
  1091. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js +0 -18
  1092. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/schema.es.js.map +0 -1
  1093. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs +0 -2
  1094. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.cjs.map +0 -1
  1095. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js +0 -15
  1096. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/util/types.es.js.map +0 -1
  1097. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs +0 -2
  1098. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.cjs.map +0 -1
  1099. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js +0 -20
  1100. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xlink.es.js.map +0 -1
  1101. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs +0 -2
  1102. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.cjs.map +0 -1
  1103. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js +0 -12
  1104. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xml.es.js.map +0 -1
  1105. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs +0 -2
  1106. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.cjs.map +0 -1
  1107. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js +0 -12
  1108. package/dist/node_modules/hast-util-to-parse5/node_modules/property-information/lib/xmlns.es.js.map +0 -1
  1109. package/dist/node_modules/highlight.js/es/languages/arduino.cjs +0 -2
  1110. package/dist/node_modules/highlight.js/es/languages/arduino.cjs.map +0 -1
  1111. package/dist/node_modules/highlight.js/es/languages/arduino.es.js.map +0 -1
  1112. package/dist/node_modules/highlight.js/es/languages/csharp.cjs +0 -2
  1113. package/dist/node_modules/highlight.js/es/languages/csharp.cjs.map +0 -1
  1114. package/dist/node_modules/highlight.js/es/languages/csharp.es.js.map +0 -1
  1115. package/dist/node_modules/highlight.js/es/languages/diff.cjs +0 -2
  1116. package/dist/node_modules/highlight.js/es/languages/diff.cjs.map +0 -1
  1117. package/dist/node_modules/highlight.js/es/languages/diff.es.js.map +0 -1
  1118. package/dist/node_modules/highlight.js/es/languages/graphql.cjs.map +0 -1
  1119. package/dist/node_modules/highlight.js/es/languages/graphql.es.js.map +0 -1
  1120. package/dist/node_modules/highlight.js/es/languages/ini.cjs.map +0 -1
  1121. package/dist/node_modules/highlight.js/es/languages/ini.es.js.map +0 -1
  1122. package/dist/node_modules/highlight.js/es/languages/kotlin.cjs.map +0 -1
  1123. package/dist/node_modules/highlight.js/es/languages/kotlin.es.js.map +0 -1
  1124. package/dist/node_modules/highlight.js/es/languages/less.cjs +0 -2
  1125. package/dist/node_modules/highlight.js/es/languages/less.cjs.map +0 -1
  1126. package/dist/node_modules/highlight.js/es/languages/less.es.js.map +0 -1
  1127. package/dist/node_modules/highlight.js/es/languages/makefile.cjs.map +0 -1
  1128. package/dist/node_modules/highlight.js/es/languages/makefile.es.js.map +0 -1
  1129. package/dist/node_modules/highlight.js/es/languages/objectivec.cjs.map +0 -1
  1130. package/dist/node_modules/highlight.js/es/languages/objectivec.es.js.map +0 -1
  1131. package/dist/node_modules/highlight.js/es/languages/perl.cjs.map +0 -1
  1132. package/dist/node_modules/highlight.js/es/languages/perl.es.js.map +0 -1
  1133. package/dist/node_modules/highlight.js/es/languages/php-template.cjs.map +0 -1
  1134. package/dist/node_modules/highlight.js/es/languages/php-template.es.js.map +0 -1
  1135. package/dist/node_modules/highlight.js/es/languages/python-repl.cjs.map +0 -1
  1136. package/dist/node_modules/highlight.js/es/languages/python-repl.es.js.map +0 -1
  1137. package/dist/node_modules/highlight.js/es/languages/r.cjs.map +0 -1
  1138. package/dist/node_modules/highlight.js/es/languages/r.es.js.map +0 -1
  1139. package/dist/node_modules/highlight.js/es/languages/ruby.cjs.map +0 -1
  1140. package/dist/node_modules/highlight.js/es/languages/ruby.es.js.map +0 -1
  1141. package/dist/node_modules/highlight.js/es/languages/swift.cjs.map +0 -1
  1142. package/dist/node_modules/highlight.js/es/languages/swift.es.js.map +0 -1
  1143. package/dist/node_modules/highlight.js/es/languages/vbnet.cjs.map +0 -1
  1144. package/dist/node_modules/highlight.js/es/languages/vbnet.es.js.map +0 -1
  1145. package/dist/node_modules/highlight.js/es/languages/wasm.cjs.map +0 -1
  1146. package/dist/node_modules/highlight.js/es/languages/wasm.es.js.map +0 -1
  1147. package/dist/node_modules/highlight.js/lib/core.cjs.map +0 -1
  1148. package/dist/node_modules/highlight.js/lib/core.es.js.map +0 -1
  1149. package/dist/node_modules/inline-style-parser/index.cjs +0 -3
  1150. package/dist/node_modules/inline-style-parser/index.cjs.map +0 -1
  1151. package/dist/node_modules/inline-style-parser/index.es.js.map +0 -1
  1152. package/dist/node_modules/unist-util-find-after/lib/index.cjs +0 -2
  1153. package/dist/node_modules/unist-util-find-after/lib/index.cjs.map +0 -1
  1154. package/dist/node_modules/unist-util-find-after/lib/index.es.js +0 -33
  1155. package/dist/node_modules/unist-util-find-after/lib/index.es.js.map +0 -1
  1156. package/dist/node_modules/uuid/dist/esm-browser/native.cjs +0 -2
  1157. package/dist/node_modules/uuid/dist/esm-browser/native.cjs.map +0 -1
  1158. package/dist/node_modules/uuid/dist/esm-browser/native.es.js +0 -5
  1159. package/dist/node_modules/uuid/dist/esm-browser/native.es.js.map +0 -1
  1160. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs +0 -2
  1161. package/dist/node_modules/uuid/dist/esm-browser/rng.cjs.map +0 -1
  1162. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js +0 -14
  1163. package/dist/node_modules/uuid/dist/esm-browser/rng.es.js.map +0 -1
  1164. package/dist/node_modules/uuid/dist/esm-browser/stringify.cjs.map +0 -1
  1165. package/dist/node_modules/uuid/dist/esm-browser/stringify.es.js.map +0 -1
  1166. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs +0 -2
  1167. package/dist/node_modules/uuid/dist/esm-browser/v4.cjs.map +0 -1
  1168. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js +0 -16
  1169. package/dist/node_modules/uuid/dist/esm-browser/v4.es.js.map +0 -1
  1170. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.cjs +0 -0
  1171. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/primitive/dist/index.es.js +0 -0
  1172. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.cjs +0 -0
  1173. /package/dist/node_modules/@radix-ui/{react-dialog → react-tooltip}/node_modules/@radix-ui/react-context/dist/index.es.js +0 -0
  1174. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.cjs +0 -0
  1175. /package/dist/node_modules/@radix-ui/{react-dialog/node_modules/@radix-ui/react-use-effect-event → react-use-effect-event}/dist/index.es.js +0 -0
  1176. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.cjs.map +0 -0
  1177. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/core.es.js.map +0 -0
  1178. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.cjs +0 -0
  1179. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/graphql.es.js +0 -0
  1180. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.cjs +0 -0
  1181. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ini.es.js +0 -0
  1182. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.cjs +0 -0
  1183. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/kotlin.es.js +0 -0
  1184. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.cjs +0 -0
  1185. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/makefile.es.js +0 -0
  1186. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.cjs +0 -0
  1187. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/objectivec.es.js +0 -0
  1188. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.cjs +0 -0
  1189. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/perl.es.js +0 -0
  1190. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.cjs +0 -0
  1191. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/php-template.es.js +0 -0
  1192. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.cjs +0 -0
  1193. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/python-repl.es.js +0 -0
  1194. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.cjs +0 -0
  1195. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/r.es.js +0 -0
  1196. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.cjs +0 -0
  1197. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/ruby.es.js +0 -0
  1198. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.cjs +0 -0
  1199. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/swift.es.js +0 -0
  1200. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.cjs +0 -0
  1201. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/vbnet.es.js +0 -0
  1202. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.cjs +0 -0
  1203. /package/dist/node_modules/{highlight.js → lowlight/node_modules/highlight.js}/es/languages/wasm.es.js +0 -0
  1204. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.cjs +0 -0
  1205. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode-codepoint.es.js +0 -0
  1206. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.cjs +0 -0
  1207. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/decode.es.js +0 -0
  1208. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.cjs +0 -0
  1209. /package/dist/node_modules/{entities → parse5/node_modules/entities}/dist/esm/generated/decode-data-html.es.js +0 -0
  1210. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.cjs → stringify.cjs} +0 -0
  1211. /package/dist/node_modules/uuid/dist/{esm-browser/stringify.es.js → stringify.es.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Slide.cjs","sources":["../../../src/components/Slide/Slide.tsx"],"sourcesContent":["import React, {\n memo,\n useCallback,\n useEffect,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { ChevronLeft, GripHorizontal } from \"lucide-react\";\n\nimport { isSandboxInteractionMessage } from \"../../lib/sandboxInteraction\";\nimport { cn } from \"../../lib/utils\";\nimport { useResolvedDirection } from \"../../lib/useResolvedDirection\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport LoadingOverlayCard from \"../ui/loading-overlay-card\";\nimport ContentRender from \"../ContentRender\";\nimport type { ContentRenderProps } from \"../ContentRender/ContentRender\";\nimport IframeSandbox from \"../ContentRender/IframeSandbox\";\nimport type { OnSendContentParams } from \"../types\";\nimport type { InteractionDefaultValueOptions } from \"../../lib/interaction-defaults\";\nimport {\n isLandscapeViewport as getIsFullscreenPreferredViewport,\n isMobileDevice as getIsMobileDevice,\n subscribeMobileDeviceChange,\n} from \"../../lib/mobileDevice\";\nimport Player from \"./Player\";\nimport MarkdownSlideScaling from \"./MarkdownSlideScaling\";\nimport SubtitleOverlay from \"./SubtitleOverlay\";\nimport type {\n PlayerProps,\n SlidePlayerNavigationContext,\n SlidePlayerSubtitleJumpTarget,\n SlidePlayerSubtitleSeekRequest,\n SlidePlayerTexts,\n} from \"./Player\";\nimport type { SlidePlayerLoadingReason } from \"./Player\";\nimport type { Element } from \"./types\";\nimport useSlide from \"./useSlide\";\nimport useWakePlayerFromIframe from \"./useWakePlayerFromIframe\";\nimport { PlayerKeyboardShortcutContext } from \"./utils/playerKeyboardShortcutContext\";\nimport { activatePlayerKeyboardShortcutOwner } from \"./utils/playerKeyboardShortcuts\";\nimport {\n DEFAULT_MOBILE_VIEW_MODE,\n resolveMobileViewModeState,\n type MobileViewMode,\n} from \"./utils/mobileScreenMode\";\nimport {\n clampInteractionOverlayDragOffset,\n shouldPresentInteractionOverlay,\n shouldRenderInteractionOverlay,\n type InteractionOverlayDragBounds,\n type InteractionOverlayDragOffset,\n} from \"./utils/interactionPlayback\";\nimport { resolveMarkdownScalingMode } from \"./utils/markdownScaling\";\nimport { shouldWakePlayerControlsAfterNavigation } from \"./utils/playerNavigationContext\";\nimport { shouldAutoAdvanceIntoAppendedMarker } from \"./utils/appendedMarkerAdvance\";\nimport {\n hasUnplayedStepAudio,\n resolvePendingStepAudioKey,\n} from \"./utils/stepAudioProgress\";\nimport {\n getPlaybackSequenceTransition,\n shouldStartDefaultAudioSequence,\n} from \"./utils/playbackSequence\";\nimport {\n canReachSubtitleJumpTarget,\n hasResolvedInteractionElement,\n} from \"./utils/subtitleJumpNavigation\";\nimport {\n getPlayerCustomActionCount,\n resolvePlayerCustomActionElement,\n} from \"./utils/playerCustomActions\";\nimport { createPlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport { resolveSlideInteractionState } from \"./utils/interactionResolution\";\nimport { shouldUseAutoAdvanceToggle } from \"./utils/playerToggleMode\";\nimport {\n areImageOnlyStepIframeVisualsReady,\n DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS,\n} from \"./utils/imageOnlyStepVisualReady\";\nimport { resolveSilentStepAutoAdvanceBehavior } from \"./utils/silentStepAutoAdvance\";\nimport {\n resolveSlidePlayerLayoutState,\n resolveSlidePlayerVisibility,\n type SlidePlayerControlsVisibility,\n} from \"./utils/playerVisibility\";\nimport {\n DEFAULT_SLIDE_BUFFERING_TEXTS,\n getSlideLocaleTexts,\n type SlideBufferingReason,\n} from \"./slideI18n\";\nimport \"./slide.css\";\nexport type {\n Element,\n ElementAudioSegment,\n ElementSubtitleCue,\n SlidePlayerCustomActionContext,\n SlidePlayerCustomActions,\n} from \"./types\";\nexport type { SlidePlayerControlsVisibility } from \"./utils/playerVisibility\";\n\nconst DEFAULT_MARKER_AUTO_ADVANCE_DELAY_MS = 2000;\nconst DEFAULT_INTERACTION_OVERLAY_OPEN_DELAY_MS = 300;\nconst DEFAULT_INTERACTION_OVERLAY_FALLBACK_OFFSET_PX = 160;\nconst DEFAULT_INTERACTION_SUBTITLE_GAP_PX = 16;\nconst DEFAULT_RESOLVED_INTERACTION_AUTO_CLOSE_DELAY_MS = 3000;\nconst DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET: InteractionOverlayDragOffset = {\n x: 0,\n y: 0,\n};\nconst INTERACTION_OVERLAY_LAYOUT_EPSILON_PX = 0.5;\ntype InteractionOverlayLayoutRect = Pick<DOMRect, \"left\" | \"top\">;\nconst useIsomorphicLayoutEffect =\n typeof window === \"undefined\" ? useEffect : useLayoutEffect;\nconst INTERACTION_ACTIVITY_SELECTOR = [\n \"button\",\n \"input\",\n \"textarea\",\n '[contenteditable=\"\"]',\n '[contenteditable=\"true\"]',\n '[contenteditable=\"plaintext-only\"]',\n].join(\", \");\nconst DEFAULT_BUFFERING_REASON: SlideBufferingReason = \"waitingForAudio\";\n\nconst normalizeInteractionOverlayDragOffset = ({\n x,\n y,\n}: InteractionOverlayDragOffset): InteractionOverlayDragOffset => ({\n x: Number(x.toFixed(2)),\n y: Number(y.toFixed(2)),\n});\n\nconst hasMeaningfulInteractionOverlayLayoutDelta = (delta: number) =>\n Math.abs(delta) >= INTERACTION_OVERLAY_LAYOUT_EPSILON_PX;\n\nconst areInteractionOverlayDragOffsetsEqual = (\n first: InteractionOverlayDragOffset,\n second: InteractionOverlayDragOffset\n) =>\n Math.abs(first.x - second.x) < INTERACTION_OVERLAY_LAYOUT_EPSILON_PX &&\n Math.abs(first.y - second.y) < INTERACTION_OVERLAY_LAYOUT_EPSILON_PX;\n\nexport type { SlideBufferingReason } from \"./slideI18n\";\n\nexport type SlideBufferingTextConfig =\n string | Partial<Record<SlideBufferingReason, string>>;\n\nconst resolveBufferingTextByReason = (\n bufferingText: SlideBufferingTextConfig,\n reason: SlideBufferingReason\n) => {\n if (typeof bufferingText === \"string\") {\n return bufferingText;\n }\n\n return (\n bufferingText[reason] ??\n bufferingText[DEFAULT_BUFFERING_REASON] ??\n DEFAULT_SLIDE_BUFFERING_TEXTS[reason]\n );\n};\n\nconst mergeBufferingTextWithLocaleDefaults = (\n bufferingText: SlideBufferingTextConfig | undefined,\n localeBufferingText: Record<string, string>\n): SlideBufferingTextConfig => {\n if (typeof bufferingText === \"string\") {\n return bufferingText;\n }\n\n return {\n ...localeBufferingText,\n ...bufferingText,\n };\n};\n\nconst shouldShowBufferingOverlay = (\n reason: SlideBufferingReason | null,\n loading: boolean\n) => {\n if (!loading) {\n return false;\n }\n\n // Keep the silent preload/loading phase invisible until audio is actually playable.\n return reason !== \"loadingAudio\";\n};\n\ntype RenderSlideElementOptions = {\n replaceRootScreenHeightWithFull?: boolean;\n};\n\ninterface InteractionOverlayCardProps {\n dir?: ContentRenderProps[\"dir\"];\n lang?: string;\n content: string;\n title: string;\n dragHandleAriaLabel: string;\n locale?: MarkdownFlowLocale;\n defaultButtonText?: string;\n defaultInputText?: string;\n defaultSelectedValues?: string[];\n confirmButtonText?: string;\n copyButtonText?: string;\n copiedButtonText?: string;\n onSend?: (content: OnSendContentParams) => void;\n onDragHandlePointerCancel?: React.PointerEventHandler<HTMLButtonElement>;\n onDragHandlePointerDown?: React.PointerEventHandler<HTMLButtonElement>;\n onDragHandlePointerMove?: React.PointerEventHandler<HTMLButtonElement>;\n onDragHandlePointerUp?: React.PointerEventHandler<HTMLButtonElement>;\n readonly?: boolean;\n}\n\nexport interface SlideInteractionTexts extends Pick<\n ContentRenderProps,\n \"confirmButtonText\" | \"copyButtonText\" | \"copiedButtonText\"\n> {\n title?: string;\n /** Accessible label for the interaction panel drag handle. */\n dragHandleAriaLabel?: string;\n}\n\nexport type SlideFullscreenHeader = {\n content?: React.ReactNode;\n backAriaLabel?: string;\n onBack?: () => void;\n};\n\nconst InteractionOverlayCard = memo(\n ({\n content,\n title,\n dragHandleAriaLabel,\n locale,\n dir,\n lang,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n onSend,\n onDragHandlePointerCancel,\n onDragHandlePointerDown,\n onDragHandlePointerMove,\n onDragHandlePointerUp,\n readonly = false,\n }: InteractionOverlayCardProps) => (\n <div className=\"slide-player__interaction-card\">\n <button\n type=\"button\"\n className=\"slide-player__interaction-drag-handle\"\n aria-label={dragHandleAriaLabel}\n onPointerCancel={onDragHandlePointerCancel}\n onPointerDown={onDragHandlePointerDown}\n onPointerMove={onDragHandlePointerMove}\n onPointerUp={onDragHandlePointerUp}\n >\n <span className=\"slide-player__interaction-drag-handle-icon\">\n <GripHorizontal aria-hidden=\"true\" />\n <GripHorizontal aria-hidden=\"true\" />\n <GripHorizontal aria-hidden=\"true\" />\n </span>\n </button>\n <div className=\"slide-player__interaction-header\">\n <p className=\"slide-player__interaction-title\">{title}</p>\n </div>\n <div className=\"slide-player__interaction-body\">\n <ContentRender\n content={content}\n locale={locale}\n dir={dir}\n lang={lang}\n defaultButtonText={defaultButtonText}\n defaultInputText={defaultInputText}\n defaultSelectedValues={defaultSelectedValues}\n confirmButtonText={confirmButtonText}\n copyButtonText={copyButtonText}\n copiedButtonText={copiedButtonText}\n onSend={onSend}\n readonly={readonly}\n sandboxMode=\"content\"\n />\n </div>\n </div>\n )\n);\n\nInteractionOverlayCard.displayName = \"InteractionOverlayCard\";\n\nconst areStepElementListsEqual = (\n prevElementList: Element[],\n nextElementList: Element[]\n) =>\n prevElementList.length === nextElementList.length &&\n prevElementList.every((element, index) => {\n const nextElement = nextElementList[index];\n\n return (\n element.sequence_number === nextElement?.sequence_number &&\n element.type === nextElement?.type &&\n element.content === nextElement?.content\n );\n });\n\nconst isInteractionActivityTarget = (\n target: EventTarget | null\n): target is HTMLElement =>\n target instanceof HTMLElement &&\n Boolean(target.closest(INTERACTION_ACTIVITY_SELECTOR));\nexport interface SlideProps extends React.ComponentProps<\"section\"> {\n elementList?: Element[];\n /** Locale used for built-in UI text when a more specific text prop is not provided. */\n locale?: MarkdownFlowLocale;\n /** Enables the player runtime, including audio playback and keyboard shortcuts. */\n playerEnabled?: boolean;\n /**\n * Controls whether the player controls are always visible, always hidden, or auto-hidden.\n *\n * Use `\"hidden\"` to keep audio playback and keyboard shortcuts active while\n * hiding the visual controls.\n *\n * @example\n * ```tsx\n * <Slide playerControlsVisibility=\"hidden\" enableKeyboardShortcuts />\n * ```\n */\n playerControlsVisibility?: SlidePlayerControlsVisibility;\n playerClassName?: string;\n fullscreenHeader?: SlideFullscreenHeader;\n playerCustomActions?: PlayerProps[\"customActions\"];\n playerCustomActionPauseOnActive?: boolean;\n bufferingText?: SlideBufferingTextConfig;\n interactionTitle?: string;\n interactionTexts?: SlideInteractionTexts;\n playerTexts?: SlidePlayerTexts;\n playerAutoHideDelay?: number;\n markerAutoAdvanceDelay?: number;\n /** Shows an interactive navigation timeline for generated slide steps. */\n showSlideProgress?: boolean;\n /** Indicates that more generated slide steps may still be appended. */\n isSlideProgressGenerating?: boolean;\n /** Fired when a generated slide is selected from the progress navigation. */\n onSlideProgressNavigate?: (\n element: Element | undefined,\n index: number\n ) => void;\n interactionDefaultValueOptions?: InteractionDefaultValueOptions;\n onSend?: (content: OnSendContentParams, element?: Element) => void;\n onPlayerVisibilityChange?: (visible: boolean) => void;\n onMobileViewModeChange?: (viewMode: MobileViewMode) => void;\n onStepChange?: (element: Element | undefined, index: number) => void;\n /** Emits a low-frequency checkpoint for the active logical audio item. */\n onPlaybackCheckpoint?: (checkpoint: SlidePlaybackCheckpoint) => void;\n /** Restores one logical audio item and continues its normal playback. */\n playbackRestoreRequest?: SlidePlaybackRestoreRequest | null;\n /**\n * Enables keyboard shortcuts for existing player actions.\n *\n * Defaults to `true`. The active slide responds after users click, touch, or\n * focus the slide/player surface; ignored targets include form controls and\n * interaction overlays.\n *\n * @example\n * ```tsx\n * <Slide elementList={slides} enableKeyboardShortcuts={false} />\n * ```\n */\n enableKeyboardShortcuts?: boolean;\n enableIframeScaling?: boolean;\n /**\n * Fits Markdown-only slides to the available presentation viewport.\n *\n * Defaults to `true`. Disable this to preserve the fixed 16px article\n * typography used by standalone ContentRender.\n */\n enableMarkdownScaling?: boolean;\n disableLoadingOverlay?: boolean;\n}\n\nexport interface SlidePlaybackCheckpoint {\n audioKey: string;\n element: Element;\n isComplete: boolean;\n stepIndex: number;\n timeMs: number;\n}\n\nexport interface SlidePlaybackRestoreRequest {\n audioKey: string;\n id: number | string;\n timeMs: number;\n}\n\nconst Slide: React.FC<SlideProps> = ({\n elementList = [],\n locale,\n playerEnabled,\n playerControlsVisibility,\n playerClassName,\n fullscreenHeader,\n playerCustomActions,\n playerCustomActionPauseOnActive = true,\n bufferingText,\n interactionTitle,\n interactionTexts,\n playerTexts,\n playerAutoHideDelay = 3000,\n markerAutoAdvanceDelay = DEFAULT_MARKER_AUTO_ADVANCE_DELAY_MS,\n showSlideProgress = false,\n isSlideProgressGenerating = false,\n onSlideProgressNavigate,\n interactionDefaultValueOptions,\n onSend,\n onPlayerVisibilityChange,\n onMobileViewModeChange,\n onStepChange,\n onPlaybackCheckpoint,\n playbackRestoreRequest = null,\n enableKeyboardShortcuts = true,\n enableIframeScaling = true,\n enableMarkdownScaling = true,\n disableLoadingOverlay = false,\n className,\n dir,\n lang,\n onPointerDown,\n onFocusCapture,\n ...props\n}) => {\n const direction = dir ?? getMarkdownFlowDirection(locale);\n const language = lang ?? getMarkdownFlowLanguage(locale);\n const localeTexts = useMemo(() => getSlideLocaleTexts(locale), [locale]);\n const resolvedBufferingText = useMemo(\n () =>\n mergeBufferingTextWithLocaleDefaults(\n bufferingText,\n localeTexts.bufferingText\n ),\n [bufferingText, localeTexts.bufferingText]\n );\n const {\n playerEnabled: resolvedPlayerEnabled,\n playerControlsVisibility: resolvedPlayerControlsVisibility,\n } = resolveSlidePlayerVisibility({\n playerEnabled,\n playerControlsVisibility,\n });\n const keyboardShortcutOwnerId = useId();\n const sectionRef = useRef<HTMLElement | null>(null);\n const { resolvedDirection } = useResolvedDirection(sectionRef, direction);\n const viewportRef = useRef<HTMLDivElement | null>(null);\n const stageLayerRef = useRef<HTMLDivElement | null>(null);\n const lastElementRef = useRef<HTMLDivElement | null>(null);\n const playerHideTimerRef = useRef<number | null>(null);\n const isPointerInsidePlayerControlsRef = useRef(false);\n const autoAdvanceTimerRef = useRef<number | null>(null);\n const imageOnlyStepReadyTimeoutRef = useRef<number | null>(null);\n const interactionAutoCloseTimerRef = useRef<number | null>(null);\n const interactionOverlayOpenTimerRef = useRef<number | null>(null);\n const interactionOverlayRef = useRef<HTMLDivElement | null>(null);\n const interactionOverlayLayoutRectRef =\n useRef<InteractionOverlayLayoutRect | null>(null);\n const interactionOverlayDragRef = useRef<{\n pointerId: number;\n startClientX: number;\n startClientY: number;\n startOffset: InteractionOverlayDragOffset;\n bounds: InteractionOverlayDragBounds;\n } | null>(null);\n const prevRenderElementKeysRef = useRef<string[]>([]);\n const shouldScrollToBottomRef = useRef(false);\n const pendingInteractionOverlayStepIndexRef = useRef<number | null>(null);\n const pendingSubtitleJumpRef = useRef<{\n audioIndex: number;\n audioKey: string;\n slideIndex: number;\n timeMs: number;\n } | null>(null);\n const subtitleSeekRequestIdRef = useRef(0);\n const playbackResetKeyRef = useRef<string | null>(null);\n const appendedMarkerAdvanceStateRef = useRef({\n markerCount: 0,\n currentIndex: -1,\n canGoNext: false,\n });\n const shouldSkipDefaultAudioStartForSubtitleJumpRef = useRef(false);\n const {\n currentElementList,\n stepElementLists,\n slideElementList,\n currentIndex,\n audioList,\n audioSlideIndexes,\n currentAudioSequenceIndexes,\n currentStepHasSpeakableElement,\n currentInteractionElement,\n canGoPrev,\n canGoNext,\n handlePrev: goPrev,\n handleNext: goNext,\n handleGoTo: goTo,\n } = useSlide(elementList);\n const currentStepElement = useMemo(() => {\n if (currentIndex < 0) {\n return undefined;\n }\n\n return slideElementList[currentIndex];\n }, [currentIndex, slideElementList]);\n const currentRenderElementKeys = useMemo(\n () =>\n currentElementList.map(\n (element, index) =>\n `${element.sequence_number ?? `${element.type}-${index}`}:${String(element.is_new ?? \"\")}`\n ),\n [currentElementList]\n );\n const generatedSlideCount = slideElementList.length;\n const isSingleSlide = generatedSlideCount === 1;\n const shouldMountPlayer =\n resolvedPlayerEnabled &&\n (slideElementList.length > 0 ||\n audioList.length > 0 ||\n Boolean(currentInteractionElement));\n const keyboardShortcutContextValue = useMemo(\n () => ({\n enabled: enableKeyboardShortcuts,\n ownerId: keyboardShortcutOwnerId,\n }),\n [enableKeyboardShortcuts, keyboardShortcutOwnerId]\n );\n const activateKeyboardShortcutOwner = useCallback(() => {\n if (!enableKeyboardShortcuts || !shouldMountPlayer) {\n return;\n }\n\n activatePlayerKeyboardShortcutOwner(keyboardShortcutOwnerId);\n }, [enableKeyboardShortcuts, keyboardShortcutOwnerId, shouldMountPlayer]);\n const currentAudioSequenceKeys = useMemo(\n () =>\n currentAudioSequenceIndexes\n .map((audioIndex) => audioList[audioIndex]?.audioKey)\n .filter((audioKey): audioKey is string => Boolean(audioKey)),\n [audioList, currentAudioSequenceIndexes]\n );\n const [isPlayerVisible, setIsPlayerVisible] = useState(true);\n const [hasPlayerInteracted, setHasPlayerInteracted] = useState(false);\n const [isPlaybackRequested, setIsPlaybackRequested] = useState(true);\n const [isAutoAdvanceEnabled, setIsAutoAdvanceEnabled] = useState(true);\n const [currentAudioKey, setCurrentAudioKey] = useState<string | null>(null);\n const [pendingPlaybackRestore, setPendingPlaybackRestore] =\n useState<SlidePlaybackRestoreRequest | null>(null);\n const pendingPlaybackRestoreRef = useRef<SlidePlaybackRestoreRequest | null>(\n null\n );\n const lastPlaybackRestoreRequestIdRef = useRef<number | string | null>(null);\n const [subtitleSeekRequest, setSubtitleSeekRequest] =\n useState<SlidePlayerSubtitleSeekRequest | null>(null);\n const [isAudioLoadingVisible, setIsAudioLoadingVisible] = useState(false);\n const [audioLoadingReason, setAudioLoadingReason] =\n useState<SlideBufferingReason>(DEFAULT_BUFFERING_REASON);\n const [hasCompletedCurrentStepAudio, setHasCompletedCurrentStepAudio] =\n useState(false);\n // Audio keys already played within the current step. A step's audio arrives\n // progressively while content is still being generated, so \"completed\" has to\n // mean \"every key played\" rather than \"reached the end of the list once\".\n const playedAudioKeysRef = useRef<Set<string>>(new Set());\n const [hasCurrentAudioPlaybackStarted, setHasCurrentAudioPlaybackStarted] =\n useState(false);\n const [isSubtitleEnabled, setIsSubtitleEnabled] = useState(true);\n const [isPlayerCustomActionActive, setIsPlayerCustomActionActive] =\n useState(false);\n const [activeInteractionElement, setActiveInteractionElement] = useState<\n Element | undefined\n >();\n const [isInteractionOverlayOpen, setIsInteractionOverlayOpen] =\n useState(false);\n const [hasInteractionOverlayActivity, setHasInteractionOverlayActivity] =\n useState(false);\n const [interactionOverlayDragOffset, setInteractionOverlayDragOffset] =\n useState<InteractionOverlayDragOffset>(\n DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET\n );\n const [isInteractionOverlayDragging, setIsInteractionOverlayDragging] =\n useState(false);\n const [\n interactionOverlaySubtitleOffset,\n setInteractionOverlaySubtitleOffset,\n ] = useState(0);\n const [isBrowserFullscreen, setIsBrowserFullscreen] = useState(false);\n const isMobileDevice = useMemo(() => getIsMobileDevice(), []);\n const [mobileViewMode, setMobileViewMode] = useState<MobileViewMode>(\n DEFAULT_MOBILE_VIEW_MODE\n );\n const [hasManualMobileViewMode, setHasManualMobileViewMode] = useState(false);\n const [isViewportFullscreenPreferred, setIsViewportFullscreenPreferred] =\n useState(() =>\n isMobileDevice ? getIsFullscreenPreferredViewport() : false\n );\n const playbackTimeStore = useMemo(() => createPlaybackTimeStore(), []);\n const {\n effectiveMobileViewMode,\n isImmersiveMobileFullscreen,\n isNativeMobileFullscreen,\n shouldRotateFullscreenViewport,\n } = useMemo(\n () =>\n resolveMobileViewModeState({\n hasManualMobileViewMode,\n isMobileDevice,\n isViewportFullscreenPreferred,\n mobileViewMode,\n }),\n [\n hasManualMobileViewMode,\n isMobileDevice,\n isViewportFullscreenPreferred,\n mobileViewMode,\n ]\n );\n const previousEffectiveMobileViewModeRef = useRef(effectiveMobileViewMode);\n const {\n controlsVisible: playerControlsVisible,\n layoutReserved: playerLayoutReserved,\n } = resolveSlidePlayerLayoutState({\n isAutoVisible: isPlayerVisible,\n playerControlsVisibility: resolvedPlayerControlsVisibility,\n shouldMountPlayer,\n });\n const shouldShowFullscreenHeader =\n isImmersiveMobileFullscreen && playerControlsVisible;\n const shouldApplyFullscreenViewportPadding =\n isImmersiveMobileFullscreen && playerLayoutReserved;\n const shouldShowMobileFullscreenMask =\n isImmersiveMobileFullscreen || isNativeMobileFullscreen;\n const isDesktopBrowserFullscreen = isBrowserFullscreen && !isMobileDevice;\n const handleMobileViewModeSelect = useCallback(\n (nextViewMode: MobileViewMode) => {\n setHasManualMobileViewMode(true);\n setMobileViewMode(nextViewMode);\n },\n []\n );\n const handleMobileViewModeReset = useCallback(() => {\n // Clear manual override so the effective mode returns to the default non-fullscreen state.\n setHasManualMobileViewMode(false);\n setMobileViewMode(DEFAULT_MOBILE_VIEW_MODE);\n }, []);\n const handleFullscreenHeaderBack = useCallback(() => {\n handleMobileViewModeReset();\n fullscreenHeader?.onBack?.();\n }, [fullscreenHeader, handleMobileViewModeReset]);\n\n const clearInteractionAutoCloseTimer = useCallback(() => {\n if (interactionAutoCloseTimerRef.current === null) {\n return;\n }\n\n window.clearTimeout(interactionAutoCloseTimerRef.current);\n interactionAutoCloseTimerRef.current = null;\n }, []);\n\n const clearInteractionOverlayOpenTimer = useCallback(() => {\n if (interactionOverlayOpenTimerRef.current === null) {\n return;\n }\n\n window.clearTimeout(interactionOverlayOpenTimerRef.current);\n interactionOverlayOpenTimerRef.current = null;\n }, []);\n\n const closeInteractionOverlayForCustomAction = useCallback(() => {\n clearInteractionAutoCloseTimer();\n clearInteractionOverlayOpenTimer();\n setIsInteractionOverlayOpen(false);\n setInteractionOverlaySubtitleOffset(0);\n }, [clearInteractionAutoCloseTimer, clearInteractionOverlayOpenTimer]);\n\n const setPlayerCustomActionActive = useCallback(\n (active: boolean) => {\n if (active) {\n closeInteractionOverlayForCustomAction();\n }\n\n setIsPlayerCustomActionActive(active);\n },\n [closeInteractionOverlayForCustomAction]\n );\n const togglePlayerCustomActionActive = useCallback(() => {\n closeInteractionOverlayForCustomAction();\n setIsPlayerCustomActionActive((previousActive) => !previousActive);\n }, [closeInteractionOverlayForCustomAction]);\n const resetInteractionOverlayDragState = useCallback(() => {\n setInteractionOverlayDragOffset((previousOffset) =>\n previousOffset.x === DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET.x &&\n previousOffset.y === DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET.y\n ? previousOffset\n : DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET\n );\n setIsInteractionOverlayDragging(false);\n interactionOverlayDragRef.current = null;\n interactionOverlayLayoutRectRef.current = null;\n }, []);\n const { mountedStepStates, currentMountedStateIndex } = useMemo(() => {\n const nextMountedStepStates: Array<{\n elementList: Element[];\n sourceStepIndexes: number[];\n }> = [];\n const mountedStateIndexByStep = new Map<number, number>();\n\n stepElementLists.forEach((stepElementList, stepIndex) => {\n const existingMountedStateIndex = nextMountedStepStates.findIndex(\n (mountedStepState) =>\n areStepElementListsEqual(\n mountedStepState.elementList,\n stepElementList\n )\n );\n\n if (existingMountedStateIndex >= 0) {\n nextMountedStepStates[\n existingMountedStateIndex\n ]?.sourceStepIndexes.push(stepIndex);\n mountedStateIndexByStep.set(stepIndex, existingMountedStateIndex);\n return;\n }\n\n nextMountedStepStates.push({\n elementList: stepElementList,\n sourceStepIndexes: [stepIndex],\n });\n mountedStateIndexByStep.set(stepIndex, nextMountedStepStates.length - 1);\n });\n\n return {\n mountedStepStates: nextMountedStepStates,\n currentMountedStateIndex:\n currentIndex >= 0\n ? (mountedStateIndexByStep.get(currentIndex) ?? -1)\n : -1,\n };\n }, [currentIndex, stepElementLists]);\n const currentStepKey = useMemo(() => String(currentIndex), [currentIndex]);\n const currentAudioIndex = useMemo(() => {\n if (!currentAudioKey) {\n return -1;\n }\n\n return audioList.findIndex(\n (audioItem) => (audioItem.audioKey ?? \"\") === currentAudioKey\n );\n }, [audioList, currentAudioKey]);\n const currentAudioItem = useMemo(\n () => (currentAudioIndex >= 0 ? audioList[currentAudioIndex] : undefined),\n [audioList, currentAudioIndex]\n );\n\n useEffect(() => {\n if (\n !playbackRestoreRequest ||\n playbackRestoreRequest.id === lastPlaybackRestoreRequestIdRef.current\n ) {\n return;\n }\n\n const targetAudioIndex = audioList.findIndex(\n (audioItem) => audioItem.audioKey === playbackRestoreRequest.audioKey\n );\n if (targetAudioIndex < 0) {\n return;\n }\n\n const targetStepIndex = audioSlideIndexes[targetAudioIndex];\n if (targetStepIndex == null) {\n return;\n }\n\n lastPlaybackRestoreRequestIdRef.current = playbackRestoreRequest.id;\n setIsPlaybackRequested(true);\n setCurrentAudioKey(playbackRestoreRequest.audioKey);\n pendingPlaybackRestoreRef.current = playbackRestoreRequest;\n setPendingPlaybackRestore(playbackRestoreRequest);\n if (currentIndex !== targetStepIndex) {\n goTo(targetStepIndex);\n }\n }, [\n audioList,\n audioSlideIndexes,\n currentIndex,\n goTo,\n playbackRestoreRequest,\n ]);\n const currentSubtitleCues = currentAudioItem?.element?.subtitle_cues ?? [];\n const currentAudioSequenceStartKey = useMemo(\n () => currentAudioSequenceKeys[0] ?? \"none\",\n [currentAudioSequenceKeys]\n );\n const playerCustomActionContext = useMemo(\n () => ({\n currentElement: resolvePlayerCustomActionElement({\n currentAudioIndex,\n currentAudioSequenceIndexes,\n audioList,\n currentInteractionElement: activeInteractionElement,\n currentStepElement,\n }),\n currentIndex,\n currentStepElement,\n isActive: isPlayerCustomActionActive,\n setActive: setPlayerCustomActionActive,\n toggleActive: togglePlayerCustomActionActive,\n }),\n [\n activeInteractionElement,\n audioList,\n currentAudioIndex,\n currentAudioSequenceIndexes,\n currentIndex,\n currentStepElement,\n isPlayerCustomActionActive,\n setPlayerCustomActionActive,\n togglePlayerCustomActionActive,\n ]\n );\n const playerCustomActionCount = useMemo(\n () =>\n getPlayerCustomActionCount(\n playerCustomActions,\n playerCustomActionContext\n ),\n [playerCustomActionContext, playerCustomActions]\n );\n const hasPlayerCustomActions = playerCustomActionCount > 0;\n const isPlayerCustomActionEffectivelyActive =\n hasPlayerCustomActions && isPlayerCustomActionActive;\n const interactionOverlayStyle = useMemo(\n () =>\n ({\n \"--slide-player-custom-action-count\": String(playerCustomActionCount),\n \"--slide-player-mobile-control-count\": String(\n playerCustomActionCount + 4\n ),\n \"--slide-interaction-drag-x\": `${interactionOverlayDragOffset.x}px`,\n \"--slide-interaction-drag-y\": `${interactionOverlayDragOffset.y}px`,\n }) as React.CSSProperties,\n [\n interactionOverlayDragOffset.x,\n interactionOverlayDragOffset.y,\n playerCustomActionCount,\n ]\n );\n const hasAvailableStepAudio = currentAudioSequenceKeys.length > 0;\n const currentInteractionResetKey = useMemo(() => {\n if (!currentInteractionElement) {\n return \"none\";\n }\n\n return `${currentInteractionElement.sequence_number ?? \"none\"}:${String(\n currentInteractionElement.content ?? \"\"\n )}`;\n }, [currentInteractionElement]);\n const currentPlaybackResetKey = useMemo(\n () => [currentStepKey, currentInteractionResetKey].join(\"|\"),\n [currentInteractionResetKey, currentStepKey]\n );\n const currentPlaybackStartedResetKey = useMemo(\n () =>\n [\n currentPlaybackResetKey,\n currentAudioItem?.audioKey ?? \"none\",\n String(currentAudioIndex),\n ].join(\"|\"),\n [currentAudioIndex, currentAudioItem?.audioKey, currentPlaybackResetKey]\n );\n const currentStepAudioUrl = useMemo(() => {\n if (\n !currentAudioSequenceStartKey ||\n currentAudioSequenceStartKey === \"none\"\n ) {\n return \"\";\n }\n\n const currentStepAudioItem = audioList.find(\n (audioItem) => audioItem.audioKey === currentAudioSequenceStartKey\n );\n\n return currentStepAudioItem?.audioUrl?.trim() ?? \"\";\n }, [audioList, currentAudioSequenceStartKey]);\n const hasCurrentStepAudioUrl = Boolean(currentStepAudioUrl);\n const shouldPausePlaybackForCustomAction =\n playerCustomActionPauseOnActive && isPlayerCustomActionEffectivelyActive;\n const shouldUseSilentStepAutoAdvanceToggle = useMemo(\n () =>\n shouldUseAutoAdvanceToggle({\n canGoNext,\n currentAudioIndex,\n currentStepHasSpeakableElement,\n hasInteraction: Boolean(currentInteractionElement),\n }),\n [\n canGoNext,\n currentAudioIndex,\n currentInteractionElement,\n currentStepHasSpeakableElement,\n ]\n );\n const silentStepAutoAdvanceBehavior = useMemo(\n () =>\n resolveSilentStepAutoAdvanceBehavior({\n currentElementList,\n currentStepHasSpeakableElement,\n currentInteractionElement,\n markerAutoAdvanceDelay,\n }),\n [\n currentElementList,\n currentInteractionElement,\n currentStepHasSpeakableElement,\n markerAutoAdvanceDelay,\n ]\n );\n const silentStepAutoAdvanceDelay = silentStepAutoAdvanceBehavior.delayMs;\n const isImageOnlySilentStep =\n silentStepAutoAdvanceBehavior.usesImageOnlyDelay;\n const imageOnlyStepVisualReadyKey = useMemo(\n () => `${currentIndex}:${currentRenderElementKeys.join(\"|\")}`,\n [currentIndex, currentRenderElementKeys]\n );\n const [readyImageOnlyStepKey, setReadyImageOnlyStepKey] = useState<\n string | null\n >(null);\n const isImageOnlyStepVisualReady =\n !isImageOnlySilentStep ||\n readyImageOnlyStepKey === imageOnlyStepVisualReadyKey;\n\n const clearPlayerHideTimer = useCallback(() => {\n if (playerHideTimerRef.current === null) {\n return;\n }\n\n window.clearTimeout(playerHideTimerRef.current);\n playerHideTimerRef.current = null;\n }, []);\n\n const clearAutoAdvanceTimer = useCallback(() => {\n if (autoAdvanceTimerRef.current === null) {\n return;\n }\n\n window.clearTimeout(autoAdvanceTimerRef.current);\n autoAdvanceTimerRef.current = null;\n }, []);\n\n const clearImageOnlyStepReadyTimeout = useCallback(() => {\n if (imageOnlyStepReadyTimeoutRef.current === null) {\n return;\n }\n\n window.clearTimeout(imageOnlyStepReadyTimeoutRef.current);\n imageOnlyStepReadyTimeoutRef.current = null;\n }, []);\n\n const resetAudioSequence = useCallback(\n (\n options: {\n preservePendingSubtitleJump?: boolean;\n } = {}\n ) => {\n clearAutoAdvanceTimer();\n clearInteractionAutoCloseTimer();\n clearInteractionOverlayOpenTimer();\n clearImageOnlyStepReadyTimeout();\n setCurrentAudioKey(null);\n playbackTimeStore.reset();\n setIsAudioLoadingVisible(false);\n setAudioLoadingReason(DEFAULT_BUFFERING_REASON);\n setHasCompletedCurrentStepAudio(false);\n playedAudioKeysRef.current = new Set();\n setHasCurrentAudioPlaybackStarted(false);\n setSubtitleSeekRequest(null);\n if (!options.preservePendingSubtitleJump) {\n pendingSubtitleJumpRef.current = null;\n }\n setActiveInteractionElement(undefined);\n setIsInteractionOverlayOpen(false);\n setInteractionOverlaySubtitleOffset(0);\n },\n [\n clearAutoAdvanceTimer,\n clearImageOnlyStepReadyTimeout,\n clearInteractionAutoCloseTimer,\n clearInteractionOverlayOpenTimer,\n playbackTimeStore,\n ]\n );\n\n const requestSubtitleCueSeek = useCallback(\n (target: SlidePlayerSubtitleJumpTarget) => {\n subtitleSeekRequestIdRef.current += 1;\n setSubtitleSeekRequest({\n ...target,\n id: subtitleSeekRequestIdRef.current,\n });\n },\n []\n );\n\n const startCurrentAudioSequence = useCallback(() => {\n // Resume at the first key that has not played yet. Falling back to index 0\n // unconditionally would replay the opening segment every time late audio\n // extends the current step.\n const nextAudioKey = resolvePendingStepAudioKey(\n currentAudioSequenceKeys,\n playedAudioKeysRef.current\n );\n\n if (!nextAudioKey) {\n return false;\n }\n\n // Start the first pending audio segment for the current step immediately.\n setCurrentAudioKey(nextAudioKey);\n return true;\n }, [currentAudioSequenceKeys]);\n\n const continueAfterInteraction = useCallback(() => {\n clearInteractionAutoCloseTimer();\n clearInteractionOverlayOpenTimer();\n setIsInteractionOverlayOpen(false);\n setInteractionOverlaySubtitleOffset(0);\n\n if (startCurrentAudioSequence()) {\n return;\n }\n\n if (canGoNext) {\n goNext();\n }\n }, [\n canGoNext,\n clearInteractionAutoCloseTimer,\n clearInteractionOverlayOpenTimer,\n goNext,\n startCurrentAudioSequence,\n ]);\n\n const scheduleInteractionOverlayOpen = useCallback(\n (interactionElement?: Element) => {\n clearInteractionOverlayOpenTimer();\n\n if (!interactionElement) {\n return;\n }\n\n const openOverlay = () => {\n interactionOverlayOpenTimerRef.current = null;\n setInteractionOverlaySubtitleOffset(\n DEFAULT_INTERACTION_OVERLAY_FALLBACK_OFFSET_PX\n );\n setIsInteractionOverlayOpen(true);\n pendingInteractionOverlayStepIndexRef.current = null;\n };\n\n interactionOverlayOpenTimerRef.current = window.setTimeout(\n openOverlay,\n DEFAULT_INTERACTION_OVERLAY_OPEN_DELAY_MS\n );\n },\n [clearInteractionOverlayOpenTimer]\n );\n\n const isPlayerControlsHovered = useCallback(\n () =>\n isPointerInsidePlayerControlsRef.current ||\n Boolean(\n sectionRef.current?.querySelector(\".slide-player__controls:hover\")\n ),\n []\n );\n\n const revealPlayerControls = useCallback(\n (enableAutoHide = hasPlayerInteracted) => {\n if (!shouldMountPlayer || resolvedPlayerControlsVisibility === \"hidden\") {\n return;\n }\n\n setIsPlayerVisible(true);\n clearPlayerHideTimer();\n\n if (\n resolvedPlayerControlsVisibility === \"visible\" ||\n !enableAutoHide ||\n playerAutoHideDelay <= 0 ||\n isPlayerControlsHovered()\n ) {\n return;\n }\n\n playerHideTimerRef.current = window.setTimeout(() => {\n if (isPlayerControlsHovered()) {\n playerHideTimerRef.current = null;\n return;\n }\n\n setIsPlayerVisible(false);\n playerHideTimerRef.current = null;\n }, playerAutoHideDelay);\n },\n [\n clearPlayerHideTimer,\n hasPlayerInteracted,\n isPlayerControlsHovered,\n playerAutoHideDelay,\n resolvedPlayerControlsVisibility,\n shouldMountPlayer,\n ]\n );\n\n const hasResolvedCurrentInteraction = Boolean(\n hasResolvedInteractionElement(currentInteractionElement)\n );\n\n const shouldBlockPlaybackForInteraction =\n Boolean(currentInteractionElement) && !hasResolvedCurrentInteraction;\n\n const handlePlaybackPreferenceChange = useCallback((playing: boolean) => {\n setIsPlaybackRequested(playing);\n }, []);\n\n const syncPlaybackPreferenceBeforeNavigation = useCallback(\n (context?: SlidePlayerNavigationContext) => {\n if (context) {\n setIsPlaybackRequested(context.shouldContinuePlayback);\n }\n },\n []\n );\n\n useEffect(() => {\n // Keep silent-step autoplay aligned with the same play/pause preference as audio.\n setIsAutoAdvanceEnabled(isPlaybackRequested);\n }, [currentIndex, isPlaybackRequested, playerCustomActionPauseOnActive]);\n\n useEffect(() => {\n if (playerCustomActionPauseOnActive) {\n setPlayerCustomActionActive(false);\n }\n }, [\n currentIndex,\n playerCustomActionPauseOnActive,\n setPlayerCustomActionActive,\n ]);\n\n useEffect(() => {\n if (!hasPlayerCustomActions) {\n setIsPlayerCustomActionActive(false);\n }\n }, [hasPlayerCustomActions]);\n\n useEffect(() => {\n return () => {\n clearAutoAdvanceTimer();\n clearImageOnlyStepReadyTimeout();\n clearPlayerHideTimer();\n clearInteractionAutoCloseTimer();\n clearInteractionOverlayOpenTimer();\n };\n }, [\n clearAutoAdvanceTimer,\n clearImageOnlyStepReadyTimeout,\n clearInteractionAutoCloseTimer,\n clearInteractionOverlayOpenTimer,\n clearPlayerHideTimer,\n ]);\n\n useEffect(() => {\n if (!isImageOnlySilentStep) {\n clearImageOnlyStepReadyTimeout();\n return;\n }\n\n let cancelled = false;\n let rafId: number | null = null;\n let cleanupListeners: (() => void) | null = null;\n\n const detachListeners = () => {\n cleanupListeners?.();\n cleanupListeners = null;\n };\n\n const finishVisualReady = () => {\n if (cancelled) {\n return;\n }\n\n detachListeners();\n clearImageOnlyStepReadyTimeout();\n setReadyImageOnlyStepKey(imageOnlyStepVisualReadyKey);\n };\n\n const evaluateVisualReady = () => {\n if (cancelled) {\n return;\n }\n\n detachListeners();\n\n const activeStepContainer = stageLayerRef.current?.querySelector(\n '[data-active-step=\"true\"]'\n ) as HTMLElement | null;\n\n if (!activeStepContainer) {\n return;\n }\n\n const iframeElements = Array.from(\n activeStepContainer.querySelectorAll(\"iframe\")\n ) as HTMLIFrameElement[];\n\n if (\n iframeElements.length === 0 ||\n areImageOnlyStepIframeVisualsReady(iframeElements)\n ) {\n finishVisualReady();\n return;\n }\n\n const cleanupCallbacks: Array<() => void> = [];\n const queueRecheck = () => {\n if (cancelled) {\n return;\n }\n\n if (rafId !== null) {\n window.cancelAnimationFrame(rafId);\n }\n\n rafId = window.requestAnimationFrame(() => {\n rafId = null;\n evaluateVisualReady();\n });\n };\n const registerEvent = (\n target: EventTarget,\n eventName: string,\n listener: EventListener\n ) => {\n target.addEventListener(eventName, listener, { once: true });\n cleanupCallbacks.push(() =>\n target.removeEventListener(eventName, listener)\n );\n };\n\n iframeElements.forEach((iframeElement) => {\n const iframeDocument = iframeElement.contentDocument;\n\n if (!iframeDocument || iframeDocument.readyState !== \"complete\") {\n registerEvent(iframeElement, \"load\", queueRecheck);\n return;\n }\n\n Array.from(iframeDocument.images)\n .filter((image) => !image.complete)\n .forEach((image) => {\n registerEvent(image, \"load\", queueRecheck);\n registerEvent(image, \"error\", queueRecheck);\n });\n });\n\n cleanupListeners = () => {\n cleanupCallbacks.forEach((cleanup) => cleanup());\n };\n };\n\n rafId = window.requestAnimationFrame(() => {\n rafId = null;\n evaluateVisualReady();\n });\n\n imageOnlyStepReadyTimeoutRef.current = window.setTimeout(() => {\n finishVisualReady();\n }, DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS);\n\n return () => {\n cancelled = true;\n detachListeners();\n clearImageOnlyStepReadyTimeout();\n if (rafId !== null) {\n window.cancelAnimationFrame(rafId);\n }\n };\n }, [\n clearImageOnlyStepReadyTimeout,\n currentElementList,\n currentIndex,\n imageOnlyStepVisualReadyKey,\n isImageOnlySilentStep,\n ]);\n\n useEffect(() => {\n onPlayerVisibilityChange?.(playerControlsVisible);\n\n return () => {\n onPlayerVisibilityChange?.(false);\n };\n }, [onPlayerVisibilityChange, playerControlsVisible]);\n\n useEffect(() => {\n if (playerControlsVisible) {\n return;\n }\n\n isPointerInsidePlayerControlsRef.current = false;\n }, [playerControlsVisible]);\n\n useEffect(() => {\n if (isMobileDevice || mobileViewMode === DEFAULT_MOBILE_VIEW_MODE) {\n return;\n }\n\n setHasManualMobileViewMode(false);\n setMobileViewMode(DEFAULT_MOBILE_VIEW_MODE);\n }, [isMobileDevice, mobileViewMode]);\n\n useEffect(() => {\n if (!isMobileDevice) {\n setIsViewportFullscreenPreferred(false);\n return;\n }\n\n const syncViewportFullscreenPreference = () => {\n setIsViewportFullscreenPreferred(getIsFullscreenPreferredViewport());\n resetInteractionOverlayDragState();\n };\n const handleOrientationChange = () => {\n resetInteractionOverlayDragState();\n };\n\n syncViewportFullscreenPreference();\n window.addEventListener(\"orientationchange\", handleOrientationChange);\n window.screen?.orientation?.addEventListener?.(\n \"change\",\n handleOrientationChange\n );\n const unsubscribeMobileDeviceChange = subscribeMobileDeviceChange(\n syncViewportFullscreenPreference\n );\n\n return () => {\n unsubscribeMobileDeviceChange();\n window.removeEventListener(\"orientationchange\", handleOrientationChange);\n window.screen?.orientation?.removeEventListener?.(\n \"change\",\n handleOrientationChange\n );\n };\n }, [isMobileDevice, resetInteractionOverlayDragState]);\n\n useEffect(() => {\n onMobileViewModeChange?.(effectiveMobileViewMode);\n }, [effectiveMobileViewMode, onMobileViewModeChange]);\n\n useEffect(() => {\n if (\n previousEffectiveMobileViewModeRef.current !== effectiveMobileViewMode\n ) {\n resetInteractionOverlayDragState();\n }\n previousEffectiveMobileViewModeRef.current = effectiveMobileViewMode;\n }, [effectiveMobileViewMode, resetInteractionOverlayDragState]);\n\n useEffect(() => {\n onStepChange?.(currentStepElement, currentIndex);\n }, [currentIndex, currentStepElement, onStepChange]);\n\n useEffect(() => {\n const previousState = appendedMarkerAdvanceStateRef.current;\n const shouldAdvanceIntoAppendedMarker = shouldAutoAdvanceIntoAppendedMarker(\n {\n previousMarkerCount: previousState.markerCount,\n nextMarkerCount: slideElementList.length,\n previousIndex: previousState.currentIndex,\n previousCanGoNext: previousState.canGoNext,\n nextCanGoNext: canGoNext,\n currentAudioKey,\n hasCompletedCurrentStepAudio,\n hasResolvedCurrentInteraction,\n currentStepHasSpeakableElement,\n currentInteractionElement,\n isAutoAdvanceEnabled,\n shouldUseSilentStepAutoAdvanceToggle,\n }\n );\n\n appendedMarkerAdvanceStateRef.current = {\n markerCount: slideElementList.length,\n currentIndex,\n canGoNext,\n };\n\n if (!shouldAdvanceIntoAppendedMarker) {\n return;\n }\n\n goNext();\n }, [\n canGoNext,\n currentAudioKey,\n currentIndex,\n currentInteractionElement,\n currentStepHasSpeakableElement,\n goNext,\n hasCompletedCurrentStepAudio,\n hasResolvedCurrentInteraction,\n isAutoAdvanceEnabled,\n shouldUseSilentStepAutoAdvanceToggle,\n slideElementList.length,\n ]);\n\n useEffect(() => {\n if (!shouldMountPlayer || resolvedPlayerControlsVisibility === \"hidden\") {\n clearPlayerHideTimer();\n setIsPlayerVisible(false);\n return;\n }\n\n if (resolvedPlayerControlsVisibility === \"visible\") {\n clearPlayerHideTimer();\n setIsPlayerVisible(true);\n return;\n }\n\n if (!hasPlayerInteracted) {\n // Keep the initial player visible briefly, then hide it automatically.\n revealPlayerControls(true);\n }\n }, [\n clearPlayerHideTimer,\n hasPlayerInteracted,\n resolvedPlayerControlsVisibility,\n shouldMountPlayer,\n revealPlayerControls,\n ]);\n\n useEffect(() => {\n if (typeof window === \"undefined\") {\n return;\n }\n\n const handleSandboxInteraction = (event: MessageEvent) => {\n if (event.origin !== window.location.origin) {\n return;\n }\n\n if (!isSandboxInteractionMessage(event.data)) {\n return;\n }\n\n if (event.data.eventType !== \"click\") {\n return;\n }\n\n if (!shouldMountPlayer) {\n return;\n }\n\n // Restore player controls on explicit click/tap without waking on scroll start.\n activateKeyboardShortcutOwner();\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n };\n\n window.addEventListener(\"message\", handleSandboxInteraction);\n\n return () => {\n window.removeEventListener(\"message\", handleSandboxInteraction);\n };\n }, [activateKeyboardShortcutOwner, shouldMountPlayer, revealPlayerControls]);\n\n useWakePlayerFromIframe({\n sectionRef,\n enabled: shouldMountPlayer,\n keyboardShortcutsEnabled: enableKeyboardShortcuts,\n onKeyboardShortcut: activateKeyboardShortcutOwner,\n onWake: () => {\n activateKeyboardShortcutOwner();\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n },\n });\n\n useEffect(() => {\n if (!shouldMountPlayer) {\n resetAudioSequence();\n return;\n }\n\n // A restore request sets the target audio in an earlier effect. Without\n // this guard, the normal first-audio initializer in this same commit can\n // overwrite that target before Player receives the restore request.\n if (pendingPlaybackRestoreRef.current) {\n // Record the target context before Player finishes its restore callback.\n // The next sequence effect then sees this step as initialized instead of\n // resetting it back to the default first audio item.\n playbackResetKeyRef.current = currentPlaybackResetKey;\n return;\n }\n\n const { hasPlaybackContextChanged, shouldInitializeAudioSequence } =\n getPlaybackSequenceTransition({\n previousResetKey: playbackResetKeyRef.current,\n nextResetKey: currentPlaybackResetKey,\n currentAudioKey,\n hasCompletedCurrentStepAudio,\n });\n\n playbackResetKeyRef.current = currentPlaybackResetKey;\n\n const shouldOpenInteractionOverlayAfterAudio =\n pendingInteractionOverlayStepIndexRef.current === currentIndex &&\n Boolean(currentInteractionElement);\n const shouldPresentOverlay = shouldPresentInteractionOverlay({\n hasInteraction: Boolean(currentInteractionElement),\n shouldBlockPlaybackForInteraction,\n shouldOpenInteractionOverlayAfterAudio,\n hasPlaybackContextChanged,\n hasResolvedCurrentInteraction,\n currentStepHasSpeakableElement,\n isPlayerCustomActionActive: isPlayerCustomActionEffectivelyActive,\n });\n\n const pendingSubtitleJump = pendingSubtitleJumpRef.current;\n const shouldPreservePendingSubtitleJump =\n pendingSubtitleJump?.slideIndex === currentIndex;\n\n if (hasPlaybackContextChanged) {\n resetAudioSequence({\n preservePendingSubtitleJump: shouldPreservePendingSubtitleJump,\n });\n }\n\n if (currentElementList.length === 0 && !currentInteractionElement) {\n return;\n }\n\n if (shouldPausePlaybackForCustomAction) {\n return;\n }\n\n if (pendingSubtitleJump?.slideIndex === currentIndex) {\n if (\n !canReachSubtitleJumpTarget({\n currentIndex,\n resolvedCurrentInteractionElement: activeInteractionElement,\n slideElementList,\n targetSlideIndex: pendingSubtitleJump.slideIndex,\n })\n ) {\n // Keep the pending seek queued while the interaction overlay gates playback.\n } else {\n pendingSubtitleJumpRef.current = null;\n // The default audio-start effect still sees the pre-seek render state.\n // Skip it once so it does not replace the subtitle target audio.\n shouldSkipDefaultAudioStartForSubtitleJumpRef.current = true;\n setCurrentAudioKey(pendingSubtitleJump.audioKey);\n requestSubtitleCueSeek({\n audioIndex: pendingSubtitleJump.audioIndex,\n timeMs: pendingSubtitleJump.timeMs,\n });\n return;\n }\n }\n\n if (currentInteractionElement) {\n setActiveInteractionElement(currentInteractionElement);\n }\n\n if (shouldPresentOverlay) {\n // Delay auto-presenting the overlay so subtitles can settle above it.\n scheduleInteractionOverlayOpen(currentInteractionElement);\n return;\n }\n\n clearInteractionOverlayOpenTimer();\n pendingInteractionOverlayStepIndexRef.current = null;\n\n // A custom action may intentionally remain active without pausing ordinary\n // playback. Unresolved interactions still gate progression even while that\n // action temporarily owns the visible overlay surface.\n if (shouldBlockPlaybackForInteraction) {\n return;\n }\n\n if (!shouldInitializeAudioSequence) {\n return;\n }\n\n if (startCurrentAudioSequence()) {\n return;\n }\n\n if (currentStepHasSpeakableElement) {\n if (disableLoadingOverlay) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n setIsAudioLoadingVisible(true);\n return;\n }\n\n if (!canGoNext) {\n return;\n }\n\n if (shouldUseSilentStepAutoAdvanceToggle && !isAutoAdvanceEnabled) {\n return;\n }\n\n if (isImageOnlySilentStep && !isImageOnlyStepVisualReady) {\n return;\n }\n\n // Auto-advance silent marker-only steps so playback flow does not stall.\n autoAdvanceTimerRef.current = window.setTimeout(() => {\n autoAdvanceTimerRef.current = null;\n goNext();\n }, silentStepAutoAdvanceDelay);\n\n return () => {\n clearAutoAdvanceTimer();\n };\n }, [\n activeInteractionElement,\n canGoNext,\n clearAutoAdvanceTimer,\n currentElementList.length,\n currentIndex,\n currentInteractionElement,\n currentAudioKey,\n currentPlaybackResetKey,\n currentStepHasSpeakableElement,\n isImageOnlySilentStep,\n isImageOnlyStepVisualReady,\n silentStepAutoAdvanceDelay,\n goNext,\n hasCompletedCurrentStepAudio,\n disableLoadingOverlay,\n isAutoAdvanceEnabled,\n hasResolvedCurrentInteraction,\n isPlayerCustomActionEffectivelyActive,\n shouldBlockPlaybackForInteraction,\n clearInteractionOverlayOpenTimer,\n resetAudioSequence,\n requestSubtitleCueSeek,\n scheduleInteractionOverlayOpen,\n shouldMountPlayer,\n slideElementList,\n startCurrentAudioSequence,\n shouldPausePlaybackForCustomAction,\n shouldUseSilentStepAutoAdvanceToggle,\n ]);\n\n useEffect(() => {\n if (\n disableLoadingOverlay ||\n shouldPausePlaybackForCustomAction ||\n !currentStepHasSpeakableElement ||\n shouldBlockPlaybackForInteraction\n ) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n if (hasCompletedCurrentStepAudio) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n if (hasAvailableStepAudio) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n setAudioLoadingReason(\"waitingForAudio\");\n setIsAudioLoadingVisible(true);\n }, [\n hasAvailableStepAudio,\n currentStepHasSpeakableElement,\n hasCompletedCurrentStepAudio,\n disableLoadingOverlay,\n shouldPausePlaybackForCustomAction,\n shouldBlockPlaybackForInteraction,\n ]);\n\n // A step's audio can keep arriving after the last available segment finished,\n // because narration is synthesized while the lesson is still streaming. The\n // step-completed flag is otherwise only cleared when the reset key changes -\n // which tracks the step index and the interaction content, neither of which\n // moves while new audio is appended to the step the learner is already on.\n // Without this, everything synthesized after that first gap stays silent.\n useEffect(() => {\n if (!hasCompletedCurrentStepAudio) {\n return;\n }\n\n if (\n !hasUnplayedStepAudio(\n currentAudioSequenceKeys,\n playedAudioKeysRef.current\n )\n ) {\n return;\n }\n\n setHasCompletedCurrentStepAudio(false);\n }, [currentAudioSequenceKeys, hasCompletedCurrentStepAudio]);\n\n useEffect(() => {\n // A restore request may arrive after the slide itself mounts. Do not let\n // this independent default-start path select the first audio item while\n // the restore target is still being applied.\n if (pendingPlaybackRestoreRef.current) {\n return;\n }\n\n const shouldSkipDefaultAudioStart =\n shouldSkipDefaultAudioStartForSubtitleJumpRef.current;\n shouldSkipDefaultAudioStartForSubtitleJumpRef.current = false;\n\n if (\n !shouldStartDefaultAudioSequence({\n currentAudioKey,\n currentAudioSequenceLength: currentAudioSequenceKeys.length,\n currentStepHasSpeakableElement,\n hasCompletedCurrentStepAudio,\n shouldBlockPlaybackForInteraction,\n shouldPausePlaybackForCustomAction,\n shouldSkipDefaultAudioStart,\n })\n ) {\n return;\n }\n\n startCurrentAudioSequence();\n }, [\n currentAudioKey,\n currentAudioSequenceKeys,\n currentStepHasSpeakableElement,\n hasCompletedCurrentStepAudio,\n shouldPausePlaybackForCustomAction,\n shouldBlockPlaybackForInteraction,\n startCurrentAudioSequence,\n ]);\n\n useEffect(() => {\n if (!currentAudioKey || currentAudioIndex >= 0) {\n return;\n }\n\n setCurrentAudioKey(null);\n }, [currentAudioIndex, currentAudioKey]);\n\n useEffect(() => {\n if (currentAudioIndex >= 0) {\n return;\n }\n\n playbackTimeStore.reset();\n }, [currentAudioIndex, playbackTimeStore]);\n\n useEffect(() => {\n setHasCurrentAudioPlaybackStarted(false);\n }, [currentPlaybackStartedResetKey]);\n\n const {\n interactionDefaults,\n interactionDefaultSelectedValues,\n hasResolvedInteractionInput,\n isInteractionReadonly: resolvedInteractionReadonly,\n shouldAutoContinueInteraction,\n } = useMemo(\n () =>\n resolveSlideInteractionState(activeInteractionElement, {\n interactionDefaultValueOptions,\n }),\n [activeInteractionElement, interactionDefaultValueOptions]\n );\n\n const isInteractionReadonly =\n Boolean(activeInteractionElement?.readonly) || resolvedInteractionReadonly;\n const shouldShowInteractionOverlay = shouldRenderInteractionOverlay({\n hasActiveInteraction: Boolean(activeInteractionElement),\n isInteractionOverlayOpen,\n });\n\n const handleInteractionSend = useCallback(\n (content: OnSendContentParams) => {\n const submittedValues = [\n ...(content.selectedValues ?? []),\n content.inputText?.trim() ?? \"\",\n content.buttonText?.trim() ?? \"\",\n ].filter(Boolean);\n const resolvedUserInput = submittedValues.join(\", \");\n\n setActiveInteractionElement((prevElement) => {\n if (!prevElement || !resolvedUserInput) {\n return prevElement;\n }\n\n return {\n ...prevElement,\n user_input: resolvedUserInput,\n };\n });\n\n onSend?.(content, activeInteractionElement);\n continueAfterInteraction();\n },\n [activeInteractionElement, continueAfterInteraction, onSend]\n );\n\n useEffect(() => {\n // Keep the player icon in sync with the actual fullscreen owner.\n const syncFullscreenState = () => {\n setIsBrowserFullscreen(document.fullscreenElement === sectionRef.current);\n };\n\n syncFullscreenState();\n document.addEventListener(\"fullscreenchange\", syncFullscreenState);\n\n return () => {\n document.removeEventListener(\"fullscreenchange\", syncFullscreenState);\n };\n }, []);\n\n useEffect(() => {\n if (activeInteractionElement && isInteractionOverlayOpen) {\n return;\n }\n\n setHasInteractionOverlayActivity(false);\n }, [activeInteractionElement, isInteractionOverlayOpen]);\n\n useEffect(() => {\n resetInteractionOverlayDragState();\n }, [activeInteractionElement, resetInteractionOverlayDragState]);\n\n useEffect(() => {\n if (!shouldShowInteractionOverlay) {\n setInteractionOverlaySubtitleOffset(0);\n return;\n }\n\n const interactionOverlayElement = interactionOverlayRef.current;\n\n if (!interactionOverlayElement) {\n return;\n }\n\n const updateSubtitleOffset = () => {\n const overlayHeight = Math.ceil(\n interactionOverlayElement.getBoundingClientRect().height\n );\n\n setInteractionOverlaySubtitleOffset(\n overlayHeight + DEFAULT_INTERACTION_SUBTITLE_GAP_PX\n );\n };\n\n updateSubtitleOffset();\n\n if (typeof ResizeObserver === \"undefined\") {\n return;\n }\n\n const resizeObserver = new ResizeObserver(() => {\n updateSubtitleOffset();\n });\n\n resizeObserver.observe(interactionOverlayElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [shouldShowInteractionOverlay]);\n\n useEffect(() => {\n clearInteractionAutoCloseTimer();\n\n if (!isInteractionOverlayOpen) {\n return;\n }\n\n if (shouldAutoContinueInteraction) {\n // Auto-close passive interaction markers to keep playback moving.\n interactionAutoCloseTimerRef.current = window.setTimeout(() => {\n interactionAutoCloseTimerRef.current = null;\n\n continueAfterInteraction();\n }, DEFAULT_RESOLVED_INTERACTION_AUTO_CLOSE_DELAY_MS);\n return () => {\n clearInteractionAutoCloseTimer();\n };\n }\n\n if (hasInteractionOverlayActivity || !hasResolvedInteractionInput) {\n return;\n }\n\n // Give resolved history interactions a short revisit window before\n // playback resumes, but stop auto-closing once the learner starts editing.\n interactionAutoCloseTimerRef.current = window.setTimeout(() => {\n interactionAutoCloseTimerRef.current = null;\n\n continueAfterInteraction();\n }, DEFAULT_RESOLVED_INTERACTION_AUTO_CLOSE_DELAY_MS);\n\n return () => {\n clearInteractionAutoCloseTimer();\n };\n }, [\n clearInteractionAutoCloseTimer,\n continueAfterInteraction,\n hasInteractionOverlayActivity,\n hasResolvedInteractionInput,\n isInteractionOverlayOpen,\n shouldAutoContinueInteraction,\n ]);\n\n const renderSlideElement = (\n element?: Element,\n options: RenderSlideElementOptions = {}\n ) => {\n if (!element) {\n return null;\n }\n\n if (element.type === \"slot\") {\n return <>{element.content}</>;\n }\n\n if (element.type === \"html\") {\n return (\n <IframeSandbox\n className=\"content-render-iframe\"\n disableLoadingOverlay={disableLoadingOverlay}\n hideFullScreen\n locale={locale}\n dir={direction}\n lang={language}\n mode=\"blackboard\"\n replaceRootScreenHeightWithFull={\n options.replaceRootScreenHeightWithFull\n }\n type=\"sandbox\"\n content={element.content as string}\n enableScaling={enableIframeScaling}\n />\n );\n }\n\n return (\n <IframeSandbox\n className=\"content-render-iframe\"\n disableLoadingOverlay={disableLoadingOverlay}\n hideFullScreen\n locale={locale}\n dir={direction}\n lang={language}\n mode=\"blackboard\"\n type=\"markdown\"\n content={element.content as string}\n />\n );\n };\n\n const renderSlideElementList = (\n elementList: Element[] = [],\n isActiveStep = false\n ) => {\n if (elementList.length === 0) {\n return null;\n }\n\n const visibleElementCount = elementList.filter(\n (element) => element.is_renderable !== false\n ).length;\n const markdownScalingMode =\n isActiveStep && enableMarkdownScaling\n ? resolveMarkdownScalingMode(elementList)\n : \"disabled\";\n const lastVisibleElementIndex = elementList.reduce(\n (lastVisibleIndex, element, index) =>\n element.is_renderable !== false ? index : lastVisibleIndex,\n -1\n );\n\n return (\n <MarkdownSlideScaling\n className=\"slide-stage__content flex w-full flex-col gap-4\"\n mode={markdownScalingMode}\n >\n {elementList.map((element, index) => {\n const isPreRenderedHtml =\n element.type === \"html\" && element.is_renderable === false;\n\n return (\n <div\n key={element.sequence_number ?? `${element.type}-${index}`}\n ref={\n isActiveStep && index === lastVisibleElementIndex\n ? lastElementRef\n : null\n }\n aria-hidden={isPreRenderedHtml || undefined}\n className={cn(\n \"w-full shrink-0\",\n visibleElementCount === 1 &&\n element.is_renderable !== false &&\n \"slide-element--single\",\n isPreRenderedHtml\n ? \"pointer-events-none fixed left-[-200vw] top-0 -z-10 h-[100dvh] w-[100vw] overflow-hidden opacity-0\"\n : element.is_renderable === false && \"hidden\"\n )}\n >\n {renderSlideElement(element, {\n replaceRootScreenHeightWithFull:\n visibleElementCount === 1 &&\n element.type === \"html\" &&\n element.is_renderable !== false,\n })}\n </div>\n );\n })}\n </MarkdownSlideScaling>\n );\n };\n\n const handleFullscreen = useCallback(() => {\n const target = sectionRef.current;\n if (!target) {\n return;\n }\n\n if (document.fullscreenElement === target) {\n document.exitFullscreen().catch(() => {});\n return;\n }\n\n target.requestFullscreen?.().catch(() => {});\n }, []);\n\n const scrollStageToBottom = useCallback(() => {\n const stageLayerElement = stageLayerRef.current;\n\n if (!stageLayerElement) {\n return;\n }\n\n // Keep the latest content visible after manual player navigation.\n stageLayerElement.scrollTo({\n top: stageLayerElement.scrollHeight,\n behavior: \"smooth\",\n });\n }, []);\n\n const canJumpToSubtitleTarget = useCallback(\n (target: SlidePlayerSubtitleJumpTarget) =>\n canReachSubtitleJumpTarget({\n currentIndex,\n resolvedCurrentInteractionElement: activeInteractionElement,\n slideElementList,\n targetSlideIndex: audioSlideIndexes[target.audioIndex],\n }),\n [\n activeInteractionElement,\n audioSlideIndexes,\n currentIndex,\n slideElementList,\n ]\n );\n\n const handleSubtitleJump = useCallback(\n (\n target: SlidePlayerSubtitleJumpTarget,\n context: SlidePlayerNavigationContext\n ) => {\n const targetAudio = audioList[target.audioIndex];\n const targetAudioKey = targetAudio?.audioKey;\n const targetSlideIndex = audioSlideIndexes[target.audioIndex];\n\n if (!targetAudioKey || targetSlideIndex == null) {\n return false;\n }\n\n if (!canJumpToSubtitleTarget(target)) {\n return false;\n }\n\n syncPlaybackPreferenceBeforeNavigation(context);\n pendingInteractionOverlayStepIndexRef.current = null;\n setIsAudioLoadingVisible(false);\n setHasCompletedCurrentStepAudio(false);\n setHasCurrentAudioPlaybackStarted(false);\n\n if (shouldWakePlayerControlsAfterNavigation(context)) {\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n }\n\n if (targetSlideIndex === currentIndex) {\n pendingSubtitleJumpRef.current = null;\n resetAudioSequence();\n setCurrentAudioKey(targetAudioKey);\n requestSubtitleCueSeek(target);\n return true;\n }\n\n shouldScrollToBottomRef.current = true;\n resetAudioSequence();\n pendingSubtitleJumpRef.current = {\n audioIndex: target.audioIndex,\n audioKey: targetAudioKey,\n slideIndex: targetSlideIndex,\n timeMs: target.timeMs,\n };\n goTo(targetSlideIndex);\n\n return true;\n },\n [\n audioList,\n audioSlideIndexes,\n canJumpToSubtitleTarget,\n currentIndex,\n goTo,\n requestSubtitleCueSeek,\n resetAudioSequence,\n revealPlayerControls,\n syncPlaybackPreferenceBeforeNavigation,\n ]\n );\n\n const handlePrev = useCallback(\n (context?: SlidePlayerNavigationContext) => {\n syncPlaybackPreferenceBeforeNavigation(context);\n shouldScrollToBottomRef.current = true;\n pendingInteractionOverlayStepIndexRef.current = null;\n setIsAudioLoadingVisible(false);\n if (shouldWakePlayerControlsAfterNavigation(context)) {\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n }\n resetAudioSequence();\n goPrev();\n },\n [\n goPrev,\n resetAudioSequence,\n revealPlayerControls,\n syncPlaybackPreferenceBeforeNavigation,\n ]\n );\n\n const handleNext = useCallback(\n (context?: SlidePlayerNavigationContext) => {\n syncPlaybackPreferenceBeforeNavigation(context);\n shouldScrollToBottomRef.current = true;\n pendingInteractionOverlayStepIndexRef.current = null;\n setIsAudioLoadingVisible(false);\n if (shouldWakePlayerControlsAfterNavigation(context)) {\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n }\n resetAudioSequence();\n goNext();\n },\n [\n goNext,\n resetAudioSequence,\n revealPlayerControls,\n syncPlaybackPreferenceBeforeNavigation,\n ]\n );\n\n const handleSlideProgressNavigate = useCallback(\n (targetIndex: number, context: SlidePlayerNavigationContext) => {\n if (\n targetIndex < 0 ||\n targetIndex >= slideElementList.length ||\n targetIndex === currentIndex\n ) {\n return;\n }\n\n syncPlaybackPreferenceBeforeNavigation(context);\n shouldScrollToBottomRef.current = true;\n pendingInteractionOverlayStepIndexRef.current = null;\n setIsAudioLoadingVisible(false);\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n resetAudioSequence();\n goTo(targetIndex);\n onSlideProgressNavigate?.(slideElementList[targetIndex], targetIndex);\n },\n [\n currentIndex,\n goTo,\n onSlideProgressNavigate,\n resetAudioSequence,\n revealPlayerControls,\n slideElementList,\n syncPlaybackPreferenceBeforeNavigation,\n ]\n );\n\n const handlePlayerLoadingChange = useCallback(\n ({\n loading,\n reason,\n }: {\n loading: boolean;\n reason: SlidePlayerLoadingReason | null;\n }) => {\n if (disableLoadingOverlay) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n if (!currentStepHasSpeakableElement || hasCompletedCurrentStepAudio) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n if (loading && reason) {\n setAudioLoadingReason(reason);\n }\n setIsAudioLoadingVisible(shouldShowBufferingOverlay(reason, loading));\n },\n [\n currentStepHasSpeakableElement,\n hasCompletedCurrentStepAudio,\n disableLoadingOverlay,\n ]\n );\n\n useEffect(() => {\n if (!disableLoadingOverlay) {\n return;\n }\n\n setIsAudioLoadingVisible(false);\n }, [disableLoadingOverlay]);\n\n const handlePlayerEnded = useCallback(\n (audioIndex: number) => {\n const endedAudioKey = audioList[audioIndex]?.audioKey;\n\n if (!endedAudioKey || !currentAudioKey) {\n return;\n }\n\n if (endedAudioKey !== currentAudioKey) {\n return;\n }\n\n playedAudioKeysRef.current.add(endedAudioKey);\n\n const activeSequencePosition = currentAudioSequenceKeys.findIndex(\n (audioSequenceKey) => audioSequenceKey === endedAudioKey\n );\n if (activeSequencePosition < 0) {\n setCurrentAudioKey(null);\n return;\n }\n\n const nextSequencePosition = activeSequencePosition + 1;\n const nextAudioKey = currentAudioSequenceKeys[nextSequencePosition];\n\n if (nextAudioKey) {\n setCurrentAudioKey(nextAudioKey);\n return;\n }\n\n setCurrentAudioKey(null);\n setHasCompletedCurrentStepAudio(true);\n setIsAudioLoadingVisible(false);\n\n if (canGoNext) {\n const nextStepIndex = currentIndex + 1;\n const nextStepElement = slideElementList[nextStepIndex];\n\n if (hasCurrentStepAudioUrl && nextStepElement?.type === \"interaction\") {\n pendingInteractionOverlayStepIndexRef.current = nextStepIndex;\n }\n\n goNext();\n return;\n }\n },\n [\n audioList,\n canGoNext,\n currentIndex,\n currentAudioKey,\n currentAudioSequenceKeys,\n goNext,\n hasCurrentStepAudioUrl,\n slideElementList,\n ]\n );\n\n const handlePlayerControlsPointerEnter = useCallback(() => {\n isPointerInsidePlayerControlsRef.current = true;\n clearPlayerHideTimer();\n\n if (shouldMountPlayer) {\n setIsPlayerVisible(true);\n }\n }, [clearPlayerHideTimer, shouldMountPlayer]);\n\n const handlePlayerControlsPointerLeave = useCallback(() => {\n isPointerInsidePlayerControlsRef.current = false;\n revealPlayerControls(true);\n }, [revealPlayerControls]);\n\n const stopOverlayPropagation = useCallback(\n (\n event: React.PointerEvent<HTMLElement> | React.MouseEvent<HTMLElement>\n ) => {\n event.stopPropagation();\n\n // Keep the player visible a bit longer when users interact with the overlay.\n if (playerControlsVisible) {\n revealPlayerControls(true);\n }\n },\n [playerControlsVisible, revealPlayerControls]\n );\n\n const getInteractionOverlayDragBounds = useCallback(\n (\n overlayElement: HTMLElement,\n startOffset: InteractionOverlayDragOffset\n ): InteractionOverlayDragBounds | null => {\n const viewportElement = viewportRef.current;\n\n if (!viewportElement) {\n return null;\n }\n\n const overlayRect = overlayElement.getBoundingClientRect();\n const viewportRect = viewportElement.getBoundingClientRect();\n\n return {\n minX: startOffset.x + viewportRect.left - overlayRect.left,\n maxX: startOffset.x + viewportRect.right - overlayRect.right,\n minY: startOffset.y + viewportRect.top - overlayRect.top,\n maxY: startOffset.y + viewportRect.bottom - overlayRect.bottom,\n };\n },\n []\n );\n\n useIsomorphicLayoutEffect(() => {\n const overlayElement = interactionOverlayRef.current;\n\n if (!shouldShowInteractionOverlay || !overlayElement) {\n interactionOverlayLayoutRectRef.current = null;\n return;\n }\n\n const previousRect = interactionOverlayLayoutRectRef.current;\n const currentRect = overlayElement.getBoundingClientRect();\n\n if (!previousRect || isInteractionOverlayDragging) {\n interactionOverlayLayoutRectRef.current = {\n left: currentRect.left,\n top: currentRect.top,\n };\n return;\n }\n\n const deltaX = previousRect.left - currentRect.left;\n const deltaY = previousRect.top - currentRect.top;\n\n if (\n !hasMeaningfulInteractionOverlayLayoutDelta(deltaX) &&\n !hasMeaningfulInteractionOverlayLayoutDelta(deltaY)\n ) {\n interactionOverlayLayoutRectRef.current = {\n left: currentRect.left,\n top: currentRect.top,\n };\n return;\n }\n\n const nextOffset = {\n x: interactionOverlayDragOffset.x + deltaX,\n y: interactionOverlayDragOffset.y + deltaY,\n };\n const bounds = getInteractionOverlayDragBounds(\n overlayElement,\n interactionOverlayDragOffset\n );\n const clampedOffset = normalizeInteractionOverlayDragOffset(\n bounds\n ? clampInteractionOverlayDragOffset(nextOffset, bounds)\n : nextOffset\n );\n\n interactionOverlayLayoutRectRef.current = {\n left: currentRect.left + clampedOffset.x - interactionOverlayDragOffset.x,\n top: currentRect.top + clampedOffset.y - interactionOverlayDragOffset.y,\n };\n\n if (\n !areInteractionOverlayDragOffsetsEqual(\n clampedOffset,\n interactionOverlayDragOffset\n )\n ) {\n setInteractionOverlayDragOffset((previousOffset) =>\n areInteractionOverlayDragOffsetsEqual(previousOffset, clampedOffset)\n ? previousOffset\n : clampedOffset\n );\n }\n }, [\n getInteractionOverlayDragBounds,\n interactionOverlayDragOffset,\n isInteractionOverlayDragging,\n playerLayoutReserved,\n shouldShowInteractionOverlay,\n ]);\n\n const handleInteractionOverlayPointerDown = useCallback(\n (event: React.PointerEvent<HTMLElement>) => {\n stopOverlayPropagation(event);\n\n if (\n event.button !== 0 ||\n !event.currentTarget.isConnected ||\n !interactionOverlayRef.current\n ) {\n return;\n }\n\n const bounds = getInteractionOverlayDragBounds(\n interactionOverlayRef.current,\n interactionOverlayDragOffset\n );\n\n if (!bounds) {\n return;\n }\n\n event.preventDefault();\n if (event.currentTarget.hasPointerCapture?.(event.pointerId) !== true) {\n event.currentTarget.setPointerCapture(event.pointerId);\n }\n interactionOverlayDragRef.current = {\n pointerId: event.pointerId,\n startClientX: event.clientX,\n startClientY: event.clientY,\n startOffset: interactionOverlayDragOffset,\n bounds,\n };\n setIsInteractionOverlayDragging(true);\n },\n [\n getInteractionOverlayDragBounds,\n interactionOverlayDragOffset,\n stopOverlayPropagation,\n ]\n );\n\n const handleInteractionOverlayPointerMove = useCallback(\n (event: React.PointerEvent<HTMLElement>) => {\n const dragState = interactionOverlayDragRef.current;\n\n if (!dragState || dragState.pointerId !== event.pointerId) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n setInteractionOverlayDragOffset(\n clampInteractionOverlayDragOffset(\n {\n x: dragState.startOffset.x + event.clientX - dragState.startClientX,\n y: dragState.startOffset.y + event.clientY - dragState.startClientY,\n },\n dragState.bounds\n )\n );\n },\n []\n );\n\n const endInteractionOverlayDrag = useCallback(\n (event: React.PointerEvent<HTMLElement>) => {\n const dragState = interactionOverlayDragRef.current;\n\n if (!dragState || dragState.pointerId !== event.pointerId) {\n return;\n }\n\n event.stopPropagation();\n if (event.currentTarget.hasPointerCapture(event.pointerId)) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n interactionOverlayDragRef.current = null;\n setIsInteractionOverlayDragging(false);\n },\n []\n );\n\n const handleSurfacePointerDown = useCallback(\n (event: React.PointerEvent<HTMLElement>) => {\n activateKeyboardShortcutOwner();\n onPointerDown?.(event);\n },\n [activateKeyboardShortcutOwner, onPointerDown]\n );\n\n const handleSurfaceFocusCapture = useCallback(\n (event: React.FocusEvent<HTMLElement>) => {\n activateKeyboardShortcutOwner();\n onFocusCapture?.(event);\n },\n [activateKeyboardShortcutOwner, onFocusCapture]\n );\n\n const handleSurfaceClick = useCallback(() => {\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n }, [revealPlayerControls]);\n useEffect(() => {\n const prevKeys = prevRenderElementKeysRef.current;\n const hasStablePrefix =\n prevKeys.length > 0 &&\n prevKeys.length < currentRenderElementKeys.length &&\n prevKeys.every((key, index) => key === currentRenderElementKeys[index]);\n const appendedElements = hasStablePrefix\n ? currentElementList.slice(prevKeys.length)\n : [];\n const shouldAutoScrollToAppend = appendedElements.some(\n (element) => element.is_new === false\n );\n\n prevRenderElementKeysRef.current = currentRenderElementKeys;\n\n if (!shouldAutoScrollToAppend) {\n return;\n }\n\n const animationFrameId = window.requestAnimationFrame(() => {\n const stageLayerElement = stageLayerRef.current;\n const targetElement = lastElementRef.current;\n\n if (!stageLayerElement || !targetElement) {\n return;\n }\n\n const stageLayerRect = stageLayerElement.getBoundingClientRect();\n const targetRect = targetElement.getBoundingClientRect();\n const nextScrollTop =\n stageLayerElement.scrollTop + (targetRect.top - stageLayerRect.top);\n\n // Keep newly appended content visible when the current slide grows downward.\n stageLayerElement.scrollTo({\n top: Math.max(nextScrollTop, 0),\n behavior: \"smooth\",\n });\n });\n\n return () => {\n window.cancelAnimationFrame(animationFrameId);\n };\n }, [currentElementList, currentRenderElementKeys]);\n\n useEffect(() => {\n if (!shouldScrollToBottomRef.current) {\n return;\n }\n\n shouldScrollToBottomRef.current = false;\n\n if (currentElementList.length === 0) {\n return;\n }\n\n const animationFrameId = window.requestAnimationFrame(() => {\n scrollStageToBottom();\n });\n\n return () => {\n window.cancelAnimationFrame(animationFrameId);\n };\n }, [currentElementList, scrollStageToBottom]);\n\n return (\n <section\n ref={sectionRef}\n className={cn(\n \"relative h-full w-full\",\n isMobileDevice && \"slide--mobile-device\",\n isDesktopBrowserFullscreen && \"slide--browser-fullscreen\",\n isImmersiveMobileFullscreen && \"slide--mobile-landscape\",\n isNativeMobileFullscreen && \"slide--mobile-landscape-native\",\n className\n )}\n dir={direction}\n lang={language}\n onClick={handleSurfaceClick}\n onFocusCapture={handleSurfaceFocusCapture}\n onPointerDown={handleSurfacePointerDown}\n {...props}\n >\n {shouldShowMobileFullscreenMask ? (\n <div\n aria-hidden=\"true\"\n className=\"pointer-events-none fixed left-0 top-0 z-[9999] h-[100vh] max-h-[100vh] w-[100vw]\"\n />\n ) : null}\n\n <div\n ref={viewportRef}\n className={cn(\n \"slide__viewport relative h-full min-h-0 w-full\",\n isImmersiveMobileFullscreen && \"slide__viewport--mobile-landscape\",\n isImmersiveMobileFullscreen &&\n !shouldRotateFullscreenViewport &&\n \"slide__viewport--mobile-landscape-native\"\n )}\n >\n {shouldShowFullscreenHeader ? (\n <div className=\"slide-landscape-header\">\n <button\n aria-label={\n fullscreenHeader?.backAriaLabel ??\n localeTexts.fullscreenBackAriaLabel\n }\n className=\"slide-landscape-header__back\"\n onClick={handleFullscreenHeaderBack}\n type=\"button\"\n >\n <ChevronLeft\n className=\"slide-landscape-header__icon h-6 w-6\"\n strokeWidth={2.25}\n />\n </button>\n\n {fullscreenHeader?.content ? (\n <div className=\"min-w-0 flex-1 overflow-hidden\">\n {fullscreenHeader.content}\n </div>\n ) : null}\n </div>\n ) : null}\n\n <div\n className={cn(\n \"h-full min-h-0 w-full\",\n shouldApplyFullscreenViewportPadding &&\n \"slide__viewport-content--with-header\",\n isSingleSlide ? \"slide-content--single\" : \"grid gap-4\"\n )}\n >\n {currentElementList.length > 0 ? (\n <div className=\"slide-stage\">\n <div ref={stageLayerRef} className=\"slide-stage__layer w-full\">\n {mountedStepStates.map(\n (mountedStepState, mountedStepStateIndex) => {\n const isActiveStep =\n mountedStepStateIndex === currentMountedStateIndex;\n\n return (\n <div\n key={\n mountedStepState.sourceStepIndexes[0] ??\n mountedStepStateIndex\n }\n data-active-step={isActiveStep ? \"true\" : undefined}\n aria-hidden={!isActiveStep || undefined}\n className=\"w-full h-full\"\n style={{ display: isActiveStep ? undefined : \"none\" }}\n >\n {renderSlideElementList(\n mountedStepState.elementList,\n isActiveStep\n )}\n </div>\n );\n }\n )}\n </div>\n </div>\n ) : null}\n </div>\n\n {isAudioLoadingVisible ? (\n <LoadingOverlayCard\n message={resolveBufferingTextByReason(\n resolvedBufferingText,\n audioLoadingReason\n )}\n className=\"absolute left-1/2 top-1/2 z-[3] -translate-x-1/2 -translate-y-1/2\"\n />\n ) : null}\n\n <SubtitleOverlay\n extraBottomOffset={interactionOverlaySubtitleOffset}\n hasPlayerGap={playerLayoutReserved}\n isEnabled={isSubtitleEnabled && hasCurrentAudioPlaybackStarted}\n playbackTimeStore={playbackTimeStore}\n subtitleCues={currentSubtitleCues}\n />\n\n {shouldShowInteractionOverlay ? (\n <div\n ref={interactionOverlayRef}\n data-player-keyboard-shortcuts-ignore=\"true\"\n className={cn(\n \"slide-interaction-overlay\",\n playerLayoutReserved\n ? \"slide-interaction-overlay--with-player\"\n : \"slide-interaction-overlay--standalone\",\n isInteractionOverlayDragging &&\n \"slide-interaction-overlay--dragging\"\n )}\n onClick={stopOverlayPropagation}\n onPointerDownCapture={(event) => {\n if (isInteractionActivityTarget(event.target)) {\n setHasInteractionOverlayActivity(true);\n }\n }}\n onFocusCapture={(event) => {\n if (isInteractionActivityTarget(event.target)) {\n setHasInteractionOverlayActivity(true);\n }\n }}\n onInputCapture={(event) => {\n if (isInteractionActivityTarget(event.target)) {\n setHasInteractionOverlayActivity(true);\n }\n }}\n style={interactionOverlayStyle}\n >\n <InteractionOverlayCard\n dir={direction}\n lang={language}\n content={String(activeInteractionElement?.content ?? \"\")}\n dragHandleAriaLabel={\n interactionTexts?.dragHandleAriaLabel ??\n localeTexts.interactionTexts.dragHandleAriaLabel\n }\n locale={locale}\n defaultButtonText={interactionDefaults.buttonText ?? \"\"}\n defaultInputText={interactionDefaults.inputText ?? \"\"}\n defaultSelectedValues={interactionDefaultSelectedValues}\n confirmButtonText={\n interactionTexts?.confirmButtonText ??\n localeTexts.interactionTexts.confirmButtonText\n }\n copyButtonText={\n interactionTexts?.copyButtonText ??\n localeTexts.interactionTexts.copyButtonText\n }\n copiedButtonText={\n interactionTexts?.copiedButtonText ??\n localeTexts.interactionTexts.copiedButtonText\n }\n onSend={handleInteractionSend}\n onDragHandlePointerCancel={endInteractionOverlayDrag}\n onDragHandlePointerDown={handleInteractionOverlayPointerDown}\n onDragHandlePointerMove={handleInteractionOverlayPointerMove}\n onDragHandlePointerUp={endInteractionOverlayDrag}\n readonly={isInteractionReadonly}\n title={\n interactionTexts?.title ??\n interactionTitle ??\n localeTexts.interactionTexts.title\n }\n />\n </div>\n ) : null}\n\n {shouldMountPlayer ? (\n <PlayerKeyboardShortcutContext.Provider\n value={keyboardShortcutContextValue}\n >\n <Player\n dir={direction === \"auto\" ? resolvedDirection : direction}\n lang={language}\n audioList={audioList}\n className={cn(\n \"absolute left-1/2 z-[2] -translate-x-1/2\",\n showSlideProgress\n ? \"bottom-9\"\n : isDesktopBrowserFullscreen\n ? \"bottom-3\"\n : \"-bottom-3\",\n playerClassName,\n !playerControlsVisible && \"pointer-events-none opacity-0\"\n )}\n currentAudioIndex={currentAudioIndex}\n defaultPlaying={isPlaybackRequested}\n enableKeyboardShortcuts={enableKeyboardShortcuts}\n isPlaybackPaused={shouldPausePlaybackForCustomAction}\n isAutoAdvanceEnabled={isAutoAdvanceEnabled}\n locale={locale}\n isInteractionOpen={isInteractionOverlayOpen}\n isSubtitleEnabled={isSubtitleEnabled}\n onAutoAdvanceToggle={setIsAutoAdvanceEnabled}\n onLoadingChange={handlePlayerLoadingChange}\n onPlaybackStarted={() => {\n setHasCurrentAudioPlaybackStarted(true);\n }}\n onPlaybackCheckpoint={({ audioKey, isComplete, timeMs }) => {\n const checkpointAudioIndex = audioList.findIndex(\n (audioItem) => audioItem.audioKey === audioKey\n );\n const checkpointAudioItem =\n checkpointAudioIndex >= 0\n ? audioList[checkpointAudioIndex]\n : undefined;\n\n if (\n !checkpointAudioItem?.audioKey ||\n !checkpointAudioItem.element\n ) {\n return;\n }\n\n onPlaybackCheckpoint?.({\n audioKey: checkpointAudioItem.audioKey,\n element: checkpointAudioItem.element,\n isComplete,\n stepIndex:\n audioSlideIndexes[checkpointAudioIndex] ?? currentIndex,\n timeMs,\n });\n }}\n onPlaybackPreferenceChange={handlePlaybackPreferenceChange}\n onPlaybackTimeChange={playbackTimeStore.setTime}\n onSubtitleToggle={() => {\n setIsSubtitleEnabled((previousEnabled) => !previousEnabled);\n }}\n nextDisabled={!canGoNext}\n onEnded={handlePlayerEnded}\n onFullscreen={handleFullscreen}\n isFullscreen={isBrowserFullscreen}\n mobileViewMode={effectiveMobileViewMode}\n settingsPortalContainer={viewportRef.current}\n onMobileViewModeChange={handleMobileViewModeSelect}\n onControlsPointerEnter={handlePlayerControlsPointerEnter}\n onControlsPointerLeave={handlePlayerControlsPointerLeave}\n onNext={handleNext}\n onPrev={handlePrev}\n onSubtitleJump={handleSubtitleJump}\n canJumpToSubtitleTarget={canJumpToSubtitleTarget}\n prevDisabled={!canGoPrev}\n showControls={playerControlsVisible}\n slideProgress={\n showSlideProgress\n ? {\n ariaLabel: localeTexts.slideProgressAriaLabel,\n currentIndex,\n generatingLabel: localeTexts.slideProgressGeneratingLabel,\n isGenerating: isSlideProgressGenerating,\n onNavigate: handleSlideProgressNavigate,\n totalSteps: generatedSlideCount,\n }\n : null\n }\n subtitleSeekRequest={subtitleSeekRequest}\n playbackRestoreRequest={\n pendingPlaybackRestore &&\n pendingPlaybackRestore.audioKey === currentAudioItem?.audioKey\n ? {\n id: pendingPlaybackRestore.id,\n timeMs: pendingPlaybackRestore.timeMs,\n }\n : null\n }\n onPlaybackRestoreComplete={(requestId) => {\n if (pendingPlaybackRestoreRef.current?.id !== requestId) {\n return;\n }\n\n pendingPlaybackRestoreRef.current = null;\n setPendingPlaybackRestore(null);\n }}\n texts={playerTexts}\n customActionContext={playerCustomActionContext}\n customActions={playerCustomActions}\n useAutoAdvanceToggle={shouldUseSilentStepAutoAdvanceToggle}\n />\n </PlayerKeyboardShortcutContext.Provider>\n ) : null}\n </div>\n </section>\n );\n};\n\nexport default Slide;\n"],"names":["DEFAULT_MARKER_AUTO_ADVANCE_DELAY_MS","DEFAULT_INTERACTION_OVERLAY_OPEN_DELAY_MS","DEFAULT_INTERACTION_OVERLAY_FALLBACK_OFFSET_PX","DEFAULT_INTERACTION_SUBTITLE_GAP_PX","DEFAULT_RESOLVED_INTERACTION_AUTO_CLOSE_DELAY_MS","DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET","INTERACTION_OVERLAY_LAYOUT_EPSILON_PX","useIsomorphicLayoutEffect","useEffect","useLayoutEffect","INTERACTION_ACTIVITY_SELECTOR","DEFAULT_BUFFERING_REASON","normalizeInteractionOverlayDragOffset","x","y","hasMeaningfulInteractionOverlayLayoutDelta","delta","areInteractionOverlayDragOffsetsEqual","first","second","resolveBufferingTextByReason","bufferingText","reason","DEFAULT_SLIDE_BUFFERING_TEXTS","mergeBufferingTextWithLocaleDefaults","localeBufferingText","shouldShowBufferingOverlay","loading","InteractionOverlayCard","memo","content","title","dragHandleAriaLabel","locale","dir","lang","defaultButtonText","defaultInputText","defaultSelectedValues","confirmButtonText","copyButtonText","copiedButtonText","onSend","onDragHandlePointerCancel","onDragHandlePointerDown","onDragHandlePointerMove","onDragHandlePointerUp","readonly","jsxs","jsx","GripHorizontal","ContentRender","areStepElementListsEqual","prevElementList","nextElementList","element","index","nextElement","isInteractionActivityTarget","target","Slide","elementList","playerEnabled","playerControlsVisibility","playerClassName","fullscreenHeader","playerCustomActions","playerCustomActionPauseOnActive","interactionTitle","interactionTexts","playerTexts","playerAutoHideDelay","markerAutoAdvanceDelay","showSlideProgress","isSlideProgressGenerating","onSlideProgressNavigate","interactionDefaultValueOptions","onPlayerVisibilityChange","onMobileViewModeChange","onStepChange","onPlaybackCheckpoint","playbackRestoreRequest","enableKeyboardShortcuts","enableIframeScaling","enableMarkdownScaling","disableLoadingOverlay","className","onPointerDown","onFocusCapture","props","direction","getMarkdownFlowDirection","language","getMarkdownFlowLanguage","localeTexts","useMemo","getSlideLocaleTexts","resolvedBufferingText","resolvedPlayerEnabled","resolvedPlayerControlsVisibility","resolveSlidePlayerVisibility","keyboardShortcutOwnerId","useId","sectionRef","useRef","resolvedDirection","useResolvedDirection","viewportRef","stageLayerRef","lastElementRef","playerHideTimerRef","isPointerInsidePlayerControlsRef","autoAdvanceTimerRef","imageOnlyStepReadyTimeoutRef","interactionAutoCloseTimerRef","interactionOverlayOpenTimerRef","interactionOverlayRef","interactionOverlayLayoutRectRef","interactionOverlayDragRef","prevRenderElementKeysRef","shouldScrollToBottomRef","pendingInteractionOverlayStepIndexRef","pendingSubtitleJumpRef","subtitleSeekRequestIdRef","playbackResetKeyRef","appendedMarkerAdvanceStateRef","shouldSkipDefaultAudioStartForSubtitleJumpRef","currentElementList","stepElementLists","slideElementList","currentIndex","audioList","audioSlideIndexes","currentAudioSequenceIndexes","currentStepHasSpeakableElement","currentInteractionElement","canGoPrev","canGoNext","goPrev","goNext","goTo","useSlide","currentStepElement","currentRenderElementKeys","generatedSlideCount","isSingleSlide","shouldMountPlayer","keyboardShortcutContextValue","activateKeyboardShortcutOwner","useCallback","activatePlayerKeyboardShortcutOwner","currentAudioSequenceKeys","audioIndex","audioKey","isPlayerVisible","setIsPlayerVisible","useState","hasPlayerInteracted","setHasPlayerInteracted","isPlaybackRequested","setIsPlaybackRequested","isAutoAdvanceEnabled","setIsAutoAdvanceEnabled","currentAudioKey","setCurrentAudioKey","pendingPlaybackRestore","setPendingPlaybackRestore","pendingPlaybackRestoreRef","lastPlaybackRestoreRequestIdRef","subtitleSeekRequest","setSubtitleSeekRequest","isAudioLoadingVisible","setIsAudioLoadingVisible","audioLoadingReason","setAudioLoadingReason","hasCompletedCurrentStepAudio","setHasCompletedCurrentStepAudio","playedAudioKeysRef","hasCurrentAudioPlaybackStarted","setHasCurrentAudioPlaybackStarted","isSubtitleEnabled","setIsSubtitleEnabled","isPlayerCustomActionActive","setIsPlayerCustomActionActive","activeInteractionElement","setActiveInteractionElement","isInteractionOverlayOpen","setIsInteractionOverlayOpen","hasInteractionOverlayActivity","setHasInteractionOverlayActivity","interactionOverlayDragOffset","setInteractionOverlayDragOffset","isInteractionOverlayDragging","setIsInteractionOverlayDragging","interactionOverlaySubtitleOffset","setInteractionOverlaySubtitleOffset","isBrowserFullscreen","setIsBrowserFullscreen","isMobileDevice","getIsMobileDevice","mobileViewMode","setMobileViewMode","DEFAULT_MOBILE_VIEW_MODE","hasManualMobileViewMode","setHasManualMobileViewMode","isViewportFullscreenPreferred","setIsViewportFullscreenPreferred","getIsFullscreenPreferredViewport","playbackTimeStore","createPlaybackTimeStore","effectiveMobileViewMode","isImmersiveMobileFullscreen","isNativeMobileFullscreen","shouldRotateFullscreenViewport","resolveMobileViewModeState","previousEffectiveMobileViewModeRef","playerControlsVisible","playerLayoutReserved","resolveSlidePlayerLayoutState","shouldShowFullscreenHeader","shouldApplyFullscreenViewportPadding","shouldShowMobileFullscreenMask","isDesktopBrowserFullscreen","handleMobileViewModeSelect","nextViewMode","handleMobileViewModeReset","handleFullscreenHeaderBack","clearInteractionAutoCloseTimer","clearInteractionOverlayOpenTimer","closeInteractionOverlayForCustomAction","setPlayerCustomActionActive","active","togglePlayerCustomActionActive","previousActive","resetInteractionOverlayDragState","previousOffset","mountedStepStates","currentMountedStateIndex","nextMountedStepStates","mountedStateIndexByStep","stepElementList","stepIndex","existingMountedStateIndex","mountedStepState","currentStepKey","currentAudioIndex","audioItem","currentAudioItem","targetAudioIndex","targetStepIndex","currentSubtitleCues","currentAudioSequenceStartKey","playerCustomActionContext","resolvePlayerCustomActionElement","playerCustomActionCount","getPlayerCustomActionCount","hasPlayerCustomActions","isPlayerCustomActionEffectivelyActive","interactionOverlayStyle","hasAvailableStepAudio","currentInteractionResetKey","currentPlaybackResetKey","currentPlaybackStartedResetKey","hasCurrentStepAudioUrl","shouldPausePlaybackForCustomAction","shouldUseSilentStepAutoAdvanceToggle","shouldUseAutoAdvanceToggle","silentStepAutoAdvanceBehavior","resolveSilentStepAutoAdvanceBehavior","silentStepAutoAdvanceDelay","isImageOnlySilentStep","imageOnlyStepVisualReadyKey","readyImageOnlyStepKey","setReadyImageOnlyStepKey","isImageOnlyStepVisualReady","clearPlayerHideTimer","clearAutoAdvanceTimer","clearImageOnlyStepReadyTimeout","resetAudioSequence","options","requestSubtitleCueSeek","startCurrentAudioSequence","nextAudioKey","resolvePendingStepAudioKey","continueAfterInteraction","scheduleInteractionOverlayOpen","interactionElement","openOverlay","isPlayerControlsHovered","revealPlayerControls","enableAutoHide","hasResolvedCurrentInteraction","hasResolvedInteractionElement","shouldBlockPlaybackForInteraction","handlePlaybackPreferenceChange","playing","syncPlaybackPreferenceBeforeNavigation","context","cancelled","rafId","cleanupListeners","detachListeners","finishVisualReady","evaluateVisualReady","activeStepContainer","iframeElements","areImageOnlyStepIframeVisualsReady","cleanupCallbacks","queueRecheck","registerEvent","eventName","listener","iframeElement","iframeDocument","image","cleanup","DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS","syncViewportFullscreenPreference","handleOrientationChange","unsubscribeMobileDeviceChange","subscribeMobileDeviceChange","previousState","shouldAdvanceIntoAppendedMarker","shouldAutoAdvanceIntoAppendedMarker","handleSandboxInteraction","event","isSandboxInteractionMessage","useWakePlayerFromIframe","hasPlaybackContextChanged","shouldInitializeAudioSequence","getPlaybackSequenceTransition","shouldOpenInteractionOverlayAfterAudio","shouldPresentOverlay","shouldPresentInteractionOverlay","pendingSubtitleJump","shouldPreservePendingSubtitleJump","canReachSubtitleJumpTarget","hasUnplayedStepAudio","shouldSkipDefaultAudioStart","shouldStartDefaultAudioSequence","interactionDefaults","interactionDefaultSelectedValues","hasResolvedInteractionInput","resolvedInteractionReadonly","shouldAutoContinueInteraction","resolveSlideInteractionState","isInteractionReadonly","shouldShowInteractionOverlay","shouldRenderInteractionOverlay","handleInteractionSend","resolvedUserInput","prevElement","syncFullscreenState","interactionOverlayElement","updateSubtitleOffset","overlayHeight","resizeObserver","renderSlideElement","Fragment","IframeSandbox","renderSlideElementList","isActiveStep","visibleElementCount","markdownScalingMode","resolveMarkdownScalingMode","lastVisibleElementIndex","lastVisibleIndex","MarkdownSlideScaling","isPreRenderedHtml","cn","handleFullscreen","scrollStageToBottom","stageLayerElement","canJumpToSubtitleTarget","handleSubtitleJump","targetAudioKey","targetSlideIndex","shouldWakePlayerControlsAfterNavigation","handlePrev","handleNext","handleSlideProgressNavigate","targetIndex","handlePlayerLoadingChange","handlePlayerEnded","endedAudioKey","activeSequencePosition","audioSequenceKey","nextSequencePosition","nextStepIndex","nextStepElement","handlePlayerControlsPointerEnter","handlePlayerControlsPointerLeave","stopOverlayPropagation","getInteractionOverlayDragBounds","overlayElement","startOffset","viewportElement","overlayRect","viewportRect","previousRect","currentRect","deltaX","deltaY","nextOffset","bounds","clampedOffset","clampInteractionOverlayDragOffset","handleInteractionOverlayPointerDown","handleInteractionOverlayPointerMove","dragState","endInteractionOverlayDrag","handleSurfacePointerDown","handleSurfaceFocusCapture","handleSurfaceClick","prevKeys","shouldAutoScrollToAppend","key","animationFrameId","targetElement","stageLayerRect","targetRect","nextScrollTop","ChevronLeft","mountedStepStateIndex","LoadingOverlayCard","SubtitleOverlay","PlayerKeyboardShortcutContext","Player","isComplete","timeMs","checkpointAudioIndex","checkpointAudioItem","previousEnabled","requestId"],"mappings":"qxDA0GMA,GAAuC,IACvCC,GAA4C,IAC5CC,GAAiD,IACjDC,GAAsC,GACtCC,GAAmD,IACnDC,GAAwE,CAC5E,EAAG,EACH,EAAG,CACL,EACMC,GAAwC,GAExCC,GACJ,OAAO,OAAW,IAAcC,EAAAA,UAAYC,EAAAA,gBACxCC,GAAgC,CACpC,SACA,QACA,WACA,uBACA,2BACA,oCACF,EAAE,KAAK,IAAI,EACLC,GAAiD,kBAEjDC,GAAwC,CAAC,CAC7C,EAAAC,EACA,EAAAC,CACF,KAAmE,CACjE,EAAG,OAAOD,EAAE,QAAQ,CAAC,CAAC,EACtB,EAAG,OAAOC,EAAE,QAAQ,CAAC,CAAC,CACxB,GAEMC,GAA8CC,GAClD,KAAK,IAAIA,CAAK,GAAKV,GAEfW,GAAwC,CAC5CC,EACAC,IAEA,KAAK,IAAID,EAAM,EAAIC,EAAO,CAAC,EAAIb,IAC/B,KAAK,IAAIY,EAAM,EAAIC,EAAO,CAAC,EAAIb,GAO3Bc,GAA+B,CACnCC,EACAC,IAEI,OAAOD,GAAkB,SACpBA,EAIPA,EAAcC,CAAM,GACpBD,EAAcV,EAAwB,GACtCY,GAAAA,8BAA8BD,CAAM,EAIlCE,GAAuC,CAC3CH,EACAI,IAEI,OAAOJ,GAAkB,SACpBA,EAGF,CACL,GAAGI,EACH,GAA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oB,GAAK5S,EAC7C,OAAA2S,CAAA,CACD,CACH,EACA,2BAA4BvI,GAC5B,qBAAsBtF,GAAkB,QACxC,iBAAkB,IAAM,CACtB3B,GAAsB2P,GAAoB,CAACA,CAAe,CAC5D,EACA,aAAc,CAACvS,EACf,QAASsP,GACT,aAAcb,GACd,aAAc9K,GACd,eAAgBc,EAChB,wBAAyBvG,GAAY,QACrC,uBAAwBoH,GACxB,uBAAwBuK,GACxB,uBAAwBC,GACxB,OAAQZ,GACR,OAAQD,GACR,eAAgBJ,GAChB,wBAAAD,GACA,aAAc,CAAC7O,GACf,aAAcgF,EACd,cACE/I,GACI,CACE,UAAWqB,EAAY,uBACvB,aAAAoC,EACA,gBAAiBpC,EAAY,6BAC7B,aAAcpB,GACd,WAAYkT,GACZ,WAAY5O,EAAA,EAEd,KAEN,oBAAAyB,GACA,uBACEJ,IACAA,GAAuB,WAAakF,IAAkB,SAClD,CACE,GAAIlF,GAAuB,GAC3B,OAAQA,GAAuB,MAAA,EAEjC,KAEN,0BAA4B4Q,GAAc,CACpC1Q,GAA0B,SAAS,KAAO0Q,IAI9C1Q,GAA0B,QAAU,KACpCD,GAA0B,IAAI,EAChC,EACA,MAAOhG,GACP,oBAAqBsL,GACrB,cAAe1L,GACf,qBAAsBuM,EAAA,CAAA,CACxB,CAAA,EAEA,IAAA,CAAA,CAAA,CACN,CAAA,CAAA,CAGN"}
1
+ {"version":3,"file":"Slide.cjs","sources":["../../../src/components/Slide/Slide.tsx"],"sourcesContent":["import React, {\n memo,\n useCallback,\n useEffect,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { ChevronLeft, GripHorizontal } from \"lucide-react\";\n\nimport { isSandboxInteractionMessage } from \"../../lib/sandboxInteraction\";\nimport { cn } from \"../../lib/utils\";\nimport { useResolvedDirection } from \"../../lib/useResolvedDirection\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport LoadingOverlayCard from \"../ui/loading-overlay-card\";\nimport ContentRender from \"../ContentRender\";\nimport type { ContentRenderProps } from \"../ContentRender/ContentRender\";\nimport IframeSandbox from \"../ContentRender/IframeSandbox\";\nimport type { OnSendContentParams } from \"../types\";\nimport type { InteractionDefaultValueOptions } from \"../../lib/interaction-defaults\";\nimport {\n isLandscapeViewport as getIsFullscreenPreferredViewport,\n isMobileDevice as getIsMobileDevice,\n subscribeMobileDeviceChange,\n} from \"../../lib/mobileDevice\";\nimport Player from \"./Player\";\nimport MarkdownSlideScaling from \"./MarkdownSlideScaling\";\nimport SubtitleOverlay from \"./SubtitleOverlay\";\nimport type {\n PlayerProps,\n SlidePlayerNavigationContext,\n SlidePlayerSubtitleJumpTarget,\n SlidePlayerSubtitleSeekRequest,\n SlidePlayerTexts,\n} from \"./Player\";\nimport type { SlidePlayerLoadingReason } from \"./Player\";\nimport type { Element } from \"./types\";\nimport useSlide from \"./useSlide\";\nimport useWakePlayerFromIframe from \"./useWakePlayerFromIframe\";\nimport { PlayerKeyboardShortcutContext } from \"./utils/playerKeyboardShortcutContext\";\nimport { activatePlayerKeyboardShortcutOwner } from \"./utils/playerKeyboardShortcuts\";\nimport {\n DEFAULT_MOBILE_VIEW_MODE,\n resolveMobileViewModeState,\n type MobileViewMode,\n} from \"./utils/mobileScreenMode\";\nimport {\n clampInteractionOverlayDragOffset,\n shouldPresentInteractionOverlay,\n shouldRenderInteractionOverlay,\n type InteractionOverlayDragBounds,\n type InteractionOverlayDragOffset,\n} from \"./utils/interactionPlayback\";\nimport { resolveMarkdownScalingMode } from \"./utils/markdownScaling\";\nimport { shouldWakePlayerControlsAfterNavigation } from \"./utils/playerNavigationContext\";\nimport { shouldAutoAdvanceIntoAppendedMarker } from \"./utils/appendedMarkerAdvance\";\nimport {\n hasUnplayedStepAudio,\n resolvePendingStepAudioKey,\n} from \"./utils/stepAudioProgress\";\nimport {\n getPlaybackSequenceTransition,\n shouldStartDefaultAudioSequence,\n} from \"./utils/playbackSequence\";\nimport {\n canReachSubtitleJumpTarget,\n hasResolvedInteractionElement,\n} from \"./utils/subtitleJumpNavigation\";\nimport {\n getPlayerCustomActionCount,\n resolvePlayerCustomActionElement,\n} from \"./utils/playerCustomActions\";\nimport { createPlaybackTimeStore } from \"./utils/playbackTimeStore\";\nimport { resolveSlideInteractionState } from \"./utils/interactionResolution\";\nimport { shouldUseAutoAdvanceToggle } from \"./utils/playerToggleMode\";\nimport {\n areImageOnlyStepIframeVisualsReady,\n DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS,\n} from \"./utils/imageOnlyStepVisualReady\";\nimport { resolveSilentStepAutoAdvanceBehavior } from \"./utils/silentStepAutoAdvance\";\nimport {\n resolveSlidePlayerLayoutState,\n resolveSlidePlayerVisibility,\n type SlidePlayerControlsVisibility,\n} from \"./utils/playerVisibility\";\nimport {\n DEFAULT_SLIDE_BUFFERING_TEXTS,\n getSlideLocaleTexts,\n type SlideBufferingReason,\n} from \"./slideI18n\";\nimport \"./slide.css\";\nexport type {\n Element,\n ElementAudioSegment,\n ElementSubtitleCue,\n SlidePlayerCustomActionContext,\n SlidePlayerCustomActions,\n} from \"./types\";\nexport type { SlidePlayerControlsVisibility } from \"./utils/playerVisibility\";\n\nconst DEFAULT_MARKER_AUTO_ADVANCE_DELAY_MS = 2000;\nconst DEFAULT_INTERACTION_OVERLAY_OPEN_DELAY_MS = 300;\nconst DEFAULT_INTERACTION_OVERLAY_FALLBACK_OFFSET_PX = 160;\nconst DEFAULT_INTERACTION_SUBTITLE_GAP_PX = 16;\nconst DEFAULT_RESOLVED_INTERACTION_AUTO_CLOSE_DELAY_MS = 3000;\nconst DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET: InteractionOverlayDragOffset = {\n x: 0,\n y: 0,\n};\nconst INTERACTION_OVERLAY_LAYOUT_EPSILON_PX = 0.5;\ntype InteractionOverlayLayoutRect = Pick<DOMRect, \"left\" | \"top\">;\nconst useIsomorphicLayoutEffect =\n typeof window === \"undefined\" ? useEffect : useLayoutEffect;\nconst INTERACTION_ACTIVITY_SELECTOR = [\n \"button\",\n \"input\",\n \"textarea\",\n '[contenteditable=\"\"]',\n '[contenteditable=\"true\"]',\n '[contenteditable=\"plaintext-only\"]',\n].join(\", \");\nconst DEFAULT_BUFFERING_REASON: SlideBufferingReason = \"waitingForAudio\";\n\nconst normalizeInteractionOverlayDragOffset = ({\n x,\n y,\n}: InteractionOverlayDragOffset): InteractionOverlayDragOffset => ({\n x: Number(x.toFixed(2)),\n y: Number(y.toFixed(2)),\n});\n\nconst hasMeaningfulInteractionOverlayLayoutDelta = (delta: number) =>\n Math.abs(delta) >= INTERACTION_OVERLAY_LAYOUT_EPSILON_PX;\n\nconst areInteractionOverlayDragOffsetsEqual = (\n first: InteractionOverlayDragOffset,\n second: InteractionOverlayDragOffset\n) =>\n Math.abs(first.x - second.x) < INTERACTION_OVERLAY_LAYOUT_EPSILON_PX &&\n Math.abs(first.y - second.y) < INTERACTION_OVERLAY_LAYOUT_EPSILON_PX;\n\nexport type { SlideBufferingReason } from \"./slideI18n\";\n\nexport type SlideBufferingTextConfig =\n string | Partial<Record<SlideBufferingReason, string>>;\n\nconst resolveBufferingTextByReason = (\n bufferingText: SlideBufferingTextConfig,\n reason: SlideBufferingReason\n) => {\n if (typeof bufferingText === \"string\") {\n return bufferingText;\n }\n\n return (\n bufferingText[reason] ??\n bufferingText[DEFAULT_BUFFERING_REASON] ??\n DEFAULT_SLIDE_BUFFERING_TEXTS[reason]\n );\n};\n\nconst mergeBufferingTextWithLocaleDefaults = (\n bufferingText: SlideBufferingTextConfig | undefined,\n localeBufferingText: Record<string, string>\n): SlideBufferingTextConfig => {\n if (typeof bufferingText === \"string\") {\n return bufferingText;\n }\n\n return {\n ...localeBufferingText,\n ...bufferingText,\n };\n};\n\nconst shouldShowBufferingOverlay = (\n reason: SlideBufferingReason | null,\n loading: boolean\n) => {\n if (!loading) {\n return false;\n }\n\n // Keep the silent preload/loading phase invisible until audio is actually playable.\n return reason !== \"loadingAudio\";\n};\n\ntype RenderSlideElementOptions = {\n replaceRootScreenHeightWithFull?: boolean;\n};\n\ninterface InteractionOverlayCardProps {\n onPlaceholderAccepted?: () => void;\n dir?: ContentRenderProps[\"dir\"];\n lang?: string;\n content: string;\n title: string;\n dragHandleAriaLabel: string;\n locale?: MarkdownFlowLocale;\n defaultButtonText?: string;\n defaultInputText?: string;\n defaultSelectedValues?: string[];\n confirmButtonText?: string;\n copyButtonText?: string;\n copiedButtonText?: string;\n onSend?: (content: OnSendContentParams) => void;\n onDragHandlePointerCancel?: React.PointerEventHandler<HTMLButtonElement>;\n onDragHandlePointerDown?: React.PointerEventHandler<HTMLButtonElement>;\n onDragHandlePointerMove?: React.PointerEventHandler<HTMLButtonElement>;\n onDragHandlePointerUp?: React.PointerEventHandler<HTMLButtonElement>;\n readonly?: boolean;\n}\n\nexport interface SlideInteractionTexts extends Pick<\n ContentRenderProps,\n \"confirmButtonText\" | \"copyButtonText\" | \"copiedButtonText\"\n> {\n title?: string;\n /** Accessible label for the interaction panel drag handle. */\n dragHandleAriaLabel?: string;\n}\n\nexport type SlideFullscreenHeader = {\n content?: React.ReactNode;\n backAriaLabel?: string;\n onBack?: () => void;\n};\n\nconst InteractionOverlayCard = memo(\n ({\n content,\n title,\n dragHandleAriaLabel,\n locale,\n dir,\n lang,\n defaultButtonText,\n defaultInputText,\n defaultSelectedValues,\n confirmButtonText,\n copyButtonText,\n copiedButtonText,\n onSend,\n onPlaceholderAccepted,\n onDragHandlePointerCancel,\n onDragHandlePointerDown,\n onDragHandlePointerMove,\n onDragHandlePointerUp,\n readonly = false,\n }: InteractionOverlayCardProps) => (\n <div className=\"slide-player__interaction-card\">\n <button\n type=\"button\"\n className=\"slide-player__interaction-drag-handle\"\n aria-label={dragHandleAriaLabel}\n onPointerCancel={onDragHandlePointerCancel}\n onPointerDown={onDragHandlePointerDown}\n onPointerMove={onDragHandlePointerMove}\n onPointerUp={onDragHandlePointerUp}\n >\n <span className=\"slide-player__interaction-drag-handle-icon\">\n <GripHorizontal aria-hidden=\"true\" />\n <GripHorizontal aria-hidden=\"true\" />\n <GripHorizontal aria-hidden=\"true\" />\n </span>\n </button>\n <div className=\"slide-player__interaction-header\">\n <p className=\"slide-player__interaction-title\">{title}</p>\n </div>\n <div className=\"slide-player__interaction-body\">\n <ContentRender\n content={content}\n locale={locale}\n dir={dir}\n lang={lang}\n defaultButtonText={defaultButtonText}\n defaultInputText={defaultInputText}\n defaultSelectedValues={defaultSelectedValues}\n confirmButtonText={confirmButtonText}\n copyButtonText={copyButtonText}\n copiedButtonText={copiedButtonText}\n onSend={onSend}\n onPlaceholderAccepted={onPlaceholderAccepted}\n readonly={readonly}\n sandboxMode=\"content\"\n />\n </div>\n </div>\n )\n);\n\nInteractionOverlayCard.displayName = \"InteractionOverlayCard\";\n\nconst areStepElementListsEqual = (\n prevElementList: Element[],\n nextElementList: Element[]\n) =>\n prevElementList.length === nextElementList.length &&\n prevElementList.every((element, index) => {\n const nextElement = nextElementList[index];\n\n return (\n element.sequence_number === nextElement?.sequence_number &&\n element.type === nextElement?.type &&\n element.content === nextElement?.content\n );\n });\n\nconst isInteractionActivityTarget = (\n target: EventTarget | null\n): target is HTMLElement =>\n target instanceof HTMLElement &&\n Boolean(target.closest(INTERACTION_ACTIVITY_SELECTOR));\nexport interface SlideProps extends React.ComponentProps<\"section\"> {\n elementList?: Element[];\n /** Locale used for built-in UI text when a more specific text prop is not provided. */\n locale?: MarkdownFlowLocale;\n /** Enables the player runtime, including audio playback and keyboard shortcuts. */\n playerEnabled?: boolean;\n /**\n * Controls whether the player controls are always visible, always hidden, or auto-hidden.\n *\n * Use `\"hidden\"` to keep audio playback and keyboard shortcuts active while\n * hiding the visual controls.\n *\n * @example\n * ```tsx\n * <Slide playerControlsVisibility=\"hidden\" enableKeyboardShortcuts />\n * ```\n */\n playerControlsVisibility?: SlidePlayerControlsVisibility;\n playerClassName?: string;\n fullscreenHeader?: SlideFullscreenHeader;\n playerCustomActions?: PlayerProps[\"customActions\"];\n playerCustomActionPauseOnActive?: boolean;\n bufferingText?: SlideBufferingTextConfig;\n interactionTitle?: string;\n interactionTexts?: SlideInteractionTexts;\n playerTexts?: SlidePlayerTexts;\n playerAutoHideDelay?: number;\n markerAutoAdvanceDelay?: number;\n /** Shows an interactive navigation timeline for generated slide steps. */\n showSlideProgress?: boolean;\n /** Indicates that more generated slide steps may still be appended. */\n isSlideProgressGenerating?: boolean;\n /** Fired when a generated slide is selected from the progress navigation. */\n onSlideProgressNavigate?: (\n element: Element | undefined,\n index: number\n ) => void;\n interactionDefaultValueOptions?: InteractionDefaultValueOptions;\n onSend?: (content: OnSendContentParams, element?: Element) => void;\n /** Observes an accepted interaction Tab completion without receiving text. */\n onPlaceholderAccepted?: () => void;\n onPlayerVisibilityChange?: (visible: boolean) => void;\n onMobileViewModeChange?: (viewMode: MobileViewMode) => void;\n onStepChange?: (element: Element | undefined, index: number) => void;\n /** Emits a low-frequency checkpoint for the active logical audio item. */\n onPlaybackCheckpoint?: (checkpoint: SlidePlaybackCheckpoint) => void;\n /** Restores one logical audio item and continues its normal playback. */\n playbackRestoreRequest?: SlidePlaybackRestoreRequest | null;\n /**\n * Enables keyboard shortcuts for existing player actions.\n *\n * Defaults to `true`. The active slide responds after users click, touch, or\n * focus the slide/player surface; ignored targets include form controls and\n * interaction overlays.\n *\n * @example\n * ```tsx\n * <Slide elementList={slides} enableKeyboardShortcuts={false} />\n * ```\n */\n enableKeyboardShortcuts?: boolean;\n enableIframeScaling?: boolean;\n /**\n * Fits Markdown-only slides to the available presentation viewport.\n *\n * Defaults to `true`. Disable this to preserve the fixed 16px article\n * typography used by standalone ContentRender.\n */\n enableMarkdownScaling?: boolean;\n disableLoadingOverlay?: boolean;\n}\n\nexport interface SlidePlaybackCheckpoint {\n audioKey: string;\n element: Element;\n isComplete: boolean;\n stepIndex: number;\n timeMs: number;\n}\n\nexport interface SlidePlaybackRestoreRequest {\n audioKey: string;\n id: number | string;\n timeMs: number;\n}\n\nconst Slide: React.FC<SlideProps> = ({\n elementList = [],\n locale,\n playerEnabled,\n playerControlsVisibility,\n playerClassName,\n fullscreenHeader,\n playerCustomActions,\n playerCustomActionPauseOnActive = true,\n bufferingText,\n interactionTitle,\n interactionTexts,\n playerTexts,\n playerAutoHideDelay = 3000,\n markerAutoAdvanceDelay = DEFAULT_MARKER_AUTO_ADVANCE_DELAY_MS,\n showSlideProgress = false,\n isSlideProgressGenerating = false,\n onSlideProgressNavigate,\n interactionDefaultValueOptions,\n onSend,\n onPlaceholderAccepted,\n onPlayerVisibilityChange,\n onMobileViewModeChange,\n onStepChange,\n onPlaybackCheckpoint,\n playbackRestoreRequest = null,\n enableKeyboardShortcuts = true,\n enableIframeScaling = true,\n enableMarkdownScaling = true,\n disableLoadingOverlay = false,\n className,\n dir,\n lang,\n onPointerDown,\n onFocusCapture,\n ...props\n}) => {\n const direction = dir ?? getMarkdownFlowDirection(locale);\n const language = lang ?? getMarkdownFlowLanguage(locale);\n const localeTexts = useMemo(() => getSlideLocaleTexts(locale), [locale]);\n const resolvedBufferingText = useMemo(\n () =>\n mergeBufferingTextWithLocaleDefaults(\n bufferingText,\n localeTexts.bufferingText\n ),\n [bufferingText, localeTexts.bufferingText]\n );\n const {\n playerEnabled: resolvedPlayerEnabled,\n playerControlsVisibility: resolvedPlayerControlsVisibility,\n } = resolveSlidePlayerVisibility({\n playerEnabled,\n playerControlsVisibility,\n });\n const keyboardShortcutOwnerId = useId();\n const sectionRef = useRef<HTMLElement | null>(null);\n const { resolvedDirection } = useResolvedDirection(sectionRef, direction);\n const viewportRef = useRef<HTMLDivElement | null>(null);\n const stageLayerRef = useRef<HTMLDivElement | null>(null);\n const lastElementRef = useRef<HTMLDivElement | null>(null);\n const playerHideTimerRef = useRef<number | null>(null);\n const isPointerInsidePlayerControlsRef = useRef(false);\n const autoAdvanceTimerRef = useRef<number | null>(null);\n const imageOnlyStepReadyTimeoutRef = useRef<number | null>(null);\n const interactionAutoCloseTimerRef = useRef<number | null>(null);\n const interactionOverlayOpenTimerRef = useRef<number | null>(null);\n const interactionOverlayRef = useRef<HTMLDivElement | null>(null);\n const interactionOverlayLayoutRectRef =\n useRef<InteractionOverlayLayoutRect | null>(null);\n const interactionOverlayDragRef = useRef<{\n pointerId: number;\n startClientX: number;\n startClientY: number;\n startOffset: InteractionOverlayDragOffset;\n bounds: InteractionOverlayDragBounds;\n } | null>(null);\n const prevRenderElementKeysRef = useRef<string[]>([]);\n const shouldScrollToBottomRef = useRef(false);\n const pendingInteractionOverlayStepIndexRef = useRef<number | null>(null);\n const pendingSubtitleJumpRef = useRef<{\n audioIndex: number;\n audioKey: string;\n slideIndex: number;\n timeMs: number;\n } | null>(null);\n const subtitleSeekRequestIdRef = useRef(0);\n const playbackResetKeyRef = useRef<string | null>(null);\n const appendedMarkerAdvanceStateRef = useRef({\n markerCount: 0,\n currentIndex: -1,\n canGoNext: false,\n });\n const shouldSkipDefaultAudioStartForSubtitleJumpRef = useRef(false);\n const {\n currentElementList,\n stepElementLists,\n slideElementList,\n currentIndex,\n audioList,\n audioSlideIndexes,\n currentAudioSequenceIndexes,\n currentStepHasSpeakableElement,\n currentInteractionElement,\n canGoPrev,\n canGoNext,\n handlePrev: goPrev,\n handleNext: goNext,\n handleGoTo: goTo,\n } = useSlide(elementList);\n const currentStepElement = useMemo(() => {\n if (currentIndex < 0) {\n return undefined;\n }\n\n return slideElementList[currentIndex];\n }, [currentIndex, slideElementList]);\n const currentRenderElementKeys = useMemo(\n () =>\n currentElementList.map(\n (element, index) =>\n `${element.sequence_number ?? `${element.type}-${index}`}:${String(element.is_new ?? \"\")}`\n ),\n [currentElementList]\n );\n const generatedSlideCount = slideElementList.length;\n const isSingleSlide = generatedSlideCount === 1;\n const shouldMountPlayer =\n resolvedPlayerEnabled &&\n (slideElementList.length > 0 ||\n audioList.length > 0 ||\n Boolean(currentInteractionElement));\n const keyboardShortcutContextValue = useMemo(\n () => ({\n enabled: enableKeyboardShortcuts,\n ownerId: keyboardShortcutOwnerId,\n }),\n [enableKeyboardShortcuts, keyboardShortcutOwnerId]\n );\n const activateKeyboardShortcutOwner = useCallback(() => {\n if (!enableKeyboardShortcuts || !shouldMountPlayer) {\n return;\n }\n\n activatePlayerKeyboardShortcutOwner(keyboardShortcutOwnerId);\n }, [enableKeyboardShortcuts, keyboardShortcutOwnerId, shouldMountPlayer]);\n const currentAudioSequenceKeys = useMemo(\n () =>\n currentAudioSequenceIndexes\n .map((audioIndex) => audioList[audioIndex]?.audioKey)\n .filter((audioKey): audioKey is string => Boolean(audioKey)),\n [audioList, currentAudioSequenceIndexes]\n );\n const [isPlayerVisible, setIsPlayerVisible] = useState(true);\n const [hasPlayerInteracted, setHasPlayerInteracted] = useState(false);\n const [isPlaybackRequested, setIsPlaybackRequested] = useState(true);\n const [isAutoAdvanceEnabled, setIsAutoAdvanceEnabled] = useState(true);\n const [currentAudioKey, setCurrentAudioKey] = useState<string | null>(null);\n const [pendingPlaybackRestore, setPendingPlaybackRestore] =\n useState<SlidePlaybackRestoreRequest | null>(null);\n const pendingPlaybackRestoreRef = useRef<SlidePlaybackRestoreRequest | null>(\n null\n );\n const lastPlaybackRestoreRequestIdRef = useRef<number | string | null>(null);\n const [subtitleSeekRequest, setSubtitleSeekRequest] =\n useState<SlidePlayerSubtitleSeekRequest | null>(null);\n const [isAudioLoadingVisible, setIsAudioLoadingVisible] = useState(false);\n const [audioLoadingReason, setAudioLoadingReason] =\n useState<SlideBufferingReason>(DEFAULT_BUFFERING_REASON);\n const [hasCompletedCurrentStepAudio, setHasCompletedCurrentStepAudio] =\n useState(false);\n // Audio keys already played within the current step. A step's audio arrives\n // progressively while content is still being generated, so \"completed\" has to\n // mean \"every key played\" rather than \"reached the end of the list once\".\n const playedAudioKeysRef = useRef<Set<string>>(new Set());\n const [hasCurrentAudioPlaybackStarted, setHasCurrentAudioPlaybackStarted] =\n useState(false);\n const [isSubtitleEnabled, setIsSubtitleEnabled] = useState(true);\n const [isPlayerCustomActionActive, setIsPlayerCustomActionActive] =\n useState(false);\n const [activeInteractionElement, setActiveInteractionElement] = useState<\n Element | undefined\n >();\n const [isInteractionOverlayOpen, setIsInteractionOverlayOpen] =\n useState(false);\n const [hasInteractionOverlayActivity, setHasInteractionOverlayActivity] =\n useState(false);\n const [interactionOverlayDragOffset, setInteractionOverlayDragOffset] =\n useState<InteractionOverlayDragOffset>(\n DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET\n );\n const [isInteractionOverlayDragging, setIsInteractionOverlayDragging] =\n useState(false);\n const [\n interactionOverlaySubtitleOffset,\n setInteractionOverlaySubtitleOffset,\n ] = useState(0);\n const [isBrowserFullscreen, setIsBrowserFullscreen] = useState(false);\n const isMobileDevice = useMemo(() => getIsMobileDevice(), []);\n const [mobileViewMode, setMobileViewMode] = useState<MobileViewMode>(\n DEFAULT_MOBILE_VIEW_MODE\n );\n const [hasManualMobileViewMode, setHasManualMobileViewMode] = useState(false);\n const [isViewportFullscreenPreferred, setIsViewportFullscreenPreferred] =\n useState(() =>\n isMobileDevice ? getIsFullscreenPreferredViewport() : false\n );\n const playbackTimeStore = useMemo(() => createPlaybackTimeStore(), []);\n const {\n effectiveMobileViewMode,\n isImmersiveMobileFullscreen,\n isNativeMobileFullscreen,\n shouldRotateFullscreenViewport,\n } = useMemo(\n () =>\n resolveMobileViewModeState({\n hasManualMobileViewMode,\n isMobileDevice,\n isViewportFullscreenPreferred,\n mobileViewMode,\n }),\n [\n hasManualMobileViewMode,\n isMobileDevice,\n isViewportFullscreenPreferred,\n mobileViewMode,\n ]\n );\n const previousEffectiveMobileViewModeRef = useRef(effectiveMobileViewMode);\n const {\n controlsVisible: playerControlsVisible,\n layoutReserved: playerLayoutReserved,\n } = resolveSlidePlayerLayoutState({\n isAutoVisible: isPlayerVisible,\n playerControlsVisibility: resolvedPlayerControlsVisibility,\n shouldMountPlayer,\n });\n const shouldShowFullscreenHeader =\n isImmersiveMobileFullscreen && playerControlsVisible;\n const shouldApplyFullscreenViewportPadding =\n isImmersiveMobileFullscreen && playerLayoutReserved;\n const shouldShowMobileFullscreenMask =\n isImmersiveMobileFullscreen || isNativeMobileFullscreen;\n const isDesktopBrowserFullscreen = isBrowserFullscreen && !isMobileDevice;\n const handleMobileViewModeSelect = useCallback(\n (nextViewMode: MobileViewMode) => {\n setHasManualMobileViewMode(true);\n setMobileViewMode(nextViewMode);\n },\n []\n );\n const handleMobileViewModeReset = useCallback(() => {\n // Clear manual override so the effective mode returns to the default non-fullscreen state.\n setHasManualMobileViewMode(false);\n setMobileViewMode(DEFAULT_MOBILE_VIEW_MODE);\n }, []);\n const handleFullscreenHeaderBack = useCallback(() => {\n handleMobileViewModeReset();\n fullscreenHeader?.onBack?.();\n }, [fullscreenHeader, handleMobileViewModeReset]);\n\n const clearInteractionAutoCloseTimer = useCallback(() => {\n if (interactionAutoCloseTimerRef.current === null) {\n return;\n }\n\n window.clearTimeout(interactionAutoCloseTimerRef.current);\n interactionAutoCloseTimerRef.current = null;\n }, []);\n\n const clearInteractionOverlayOpenTimer = useCallback(() => {\n if (interactionOverlayOpenTimerRef.current === null) {\n return;\n }\n\n window.clearTimeout(interactionOverlayOpenTimerRef.current);\n interactionOverlayOpenTimerRef.current = null;\n }, []);\n\n const closeInteractionOverlayForCustomAction = useCallback(() => {\n clearInteractionAutoCloseTimer();\n clearInteractionOverlayOpenTimer();\n setIsInteractionOverlayOpen(false);\n setInteractionOverlaySubtitleOffset(0);\n }, [clearInteractionAutoCloseTimer, clearInteractionOverlayOpenTimer]);\n\n const setPlayerCustomActionActive = useCallback(\n (active: boolean) => {\n if (active) {\n closeInteractionOverlayForCustomAction();\n }\n\n setIsPlayerCustomActionActive(active);\n },\n [closeInteractionOverlayForCustomAction]\n );\n const togglePlayerCustomActionActive = useCallback(() => {\n closeInteractionOverlayForCustomAction();\n setIsPlayerCustomActionActive((previousActive) => !previousActive);\n }, [closeInteractionOverlayForCustomAction]);\n const resetInteractionOverlayDragState = useCallback(() => {\n setInteractionOverlayDragOffset((previousOffset) =>\n previousOffset.x === DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET.x &&\n previousOffset.y === DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET.y\n ? previousOffset\n : DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET\n );\n setIsInteractionOverlayDragging(false);\n interactionOverlayDragRef.current = null;\n interactionOverlayLayoutRectRef.current = null;\n }, []);\n const { mountedStepStates, currentMountedStateIndex } = useMemo(() => {\n const nextMountedStepStates: Array<{\n elementList: Element[];\n sourceStepIndexes: number[];\n }> = [];\n const mountedStateIndexByStep = new Map<number, number>();\n\n stepElementLists.forEach((stepElementList, stepIndex) => {\n const existingMountedStateIndex = nextMountedStepStates.findIndex(\n (mountedStepState) =>\n areStepElementListsEqual(\n mountedStepState.elementList,\n stepElementList\n )\n );\n\n if (existingMountedStateIndex >= 0) {\n nextMountedStepStates[\n existingMountedStateIndex\n ]?.sourceStepIndexes.push(stepIndex);\n mountedStateIndexByStep.set(stepIndex, existingMountedStateIndex);\n return;\n }\n\n nextMountedStepStates.push({\n elementList: stepElementList,\n sourceStepIndexes: [stepIndex],\n });\n mountedStateIndexByStep.set(stepIndex, nextMountedStepStates.length - 1);\n });\n\n return {\n mountedStepStates: nextMountedStepStates,\n currentMountedStateIndex:\n currentIndex >= 0\n ? (mountedStateIndexByStep.get(currentIndex) ?? -1)\n : -1,\n };\n }, [currentIndex, stepElementLists]);\n const currentStepKey = useMemo(() => String(currentIndex), [currentIndex]);\n const currentAudioIndex = useMemo(() => {\n if (!currentAudioKey) {\n return -1;\n }\n\n return audioList.findIndex(\n (audioItem) => (audioItem.audioKey ?? \"\") === currentAudioKey\n );\n }, [audioList, currentAudioKey]);\n const currentAudioItem = useMemo(\n () => (currentAudioIndex >= 0 ? audioList[currentAudioIndex] : undefined),\n [audioList, currentAudioIndex]\n );\n\n useEffect(() => {\n if (\n !playbackRestoreRequest ||\n playbackRestoreRequest.id === lastPlaybackRestoreRequestIdRef.current\n ) {\n return;\n }\n\n const targetAudioIndex = audioList.findIndex(\n (audioItem) => audioItem.audioKey === playbackRestoreRequest.audioKey\n );\n if (targetAudioIndex < 0) {\n return;\n }\n\n const targetStepIndex = audioSlideIndexes[targetAudioIndex];\n if (targetStepIndex == null) {\n return;\n }\n\n lastPlaybackRestoreRequestIdRef.current = playbackRestoreRequest.id;\n setIsPlaybackRequested(true);\n setCurrentAudioKey(playbackRestoreRequest.audioKey);\n pendingPlaybackRestoreRef.current = playbackRestoreRequest;\n setPendingPlaybackRestore(playbackRestoreRequest);\n if (currentIndex !== targetStepIndex) {\n goTo(targetStepIndex);\n }\n }, [\n audioList,\n audioSlideIndexes,\n currentIndex,\n goTo,\n playbackRestoreRequest,\n ]);\n const currentSubtitleCues = currentAudioItem?.element?.subtitle_cues ?? [];\n const currentAudioSequenceStartKey = useMemo(\n () => currentAudioSequenceKeys[0] ?? \"none\",\n [currentAudioSequenceKeys]\n );\n const playerCustomActionContext = useMemo(\n () => ({\n currentElement: resolvePlayerCustomActionElement({\n currentAudioIndex,\n currentAudioSequenceIndexes,\n audioList,\n currentInteractionElement: activeInteractionElement,\n currentStepElement,\n }),\n currentIndex,\n currentStepElement,\n isActive: isPlayerCustomActionActive,\n setActive: setPlayerCustomActionActive,\n toggleActive: togglePlayerCustomActionActive,\n }),\n [\n activeInteractionElement,\n audioList,\n currentAudioIndex,\n currentAudioSequenceIndexes,\n currentIndex,\n currentStepElement,\n isPlayerCustomActionActive,\n setPlayerCustomActionActive,\n togglePlayerCustomActionActive,\n ]\n );\n const playerCustomActionCount = useMemo(\n () =>\n getPlayerCustomActionCount(\n playerCustomActions,\n playerCustomActionContext\n ),\n [playerCustomActionContext, playerCustomActions]\n );\n const hasPlayerCustomActions = playerCustomActionCount > 0;\n const isPlayerCustomActionEffectivelyActive =\n hasPlayerCustomActions && isPlayerCustomActionActive;\n const interactionOverlayStyle = useMemo(\n () =>\n ({\n \"--slide-player-custom-action-count\": String(playerCustomActionCount),\n \"--slide-player-mobile-control-count\": String(\n playerCustomActionCount + 4\n ),\n \"--slide-interaction-drag-x\": `${interactionOverlayDragOffset.x}px`,\n \"--slide-interaction-drag-y\": `${interactionOverlayDragOffset.y}px`,\n }) as React.CSSProperties,\n [\n interactionOverlayDragOffset.x,\n interactionOverlayDragOffset.y,\n playerCustomActionCount,\n ]\n );\n const hasAvailableStepAudio = currentAudioSequenceKeys.length > 0;\n const currentInteractionResetKey = useMemo(() => {\n if (!currentInteractionElement) {\n return \"none\";\n }\n\n return `${currentInteractionElement.sequence_number ?? \"none\"}:${String(\n currentInteractionElement.content ?? \"\"\n )}`;\n }, [currentInteractionElement]);\n const currentPlaybackResetKey = useMemo(\n () => [currentStepKey, currentInteractionResetKey].join(\"|\"),\n [currentInteractionResetKey, currentStepKey]\n );\n const currentPlaybackStartedResetKey = useMemo(\n () =>\n [\n currentPlaybackResetKey,\n currentAudioItem?.audioKey ?? \"none\",\n String(currentAudioIndex),\n ].join(\"|\"),\n [currentAudioIndex, currentAudioItem?.audioKey, currentPlaybackResetKey]\n );\n const currentStepAudioUrl = useMemo(() => {\n if (\n !currentAudioSequenceStartKey ||\n currentAudioSequenceStartKey === \"none\"\n ) {\n return \"\";\n }\n\n const currentStepAudioItem = audioList.find(\n (audioItem) => audioItem.audioKey === currentAudioSequenceStartKey\n );\n\n return currentStepAudioItem?.audioUrl?.trim() ?? \"\";\n }, [audioList, currentAudioSequenceStartKey]);\n const hasCurrentStepAudioUrl = Boolean(currentStepAudioUrl);\n const shouldPausePlaybackForCustomAction =\n playerCustomActionPauseOnActive && isPlayerCustomActionEffectivelyActive;\n const shouldUseSilentStepAutoAdvanceToggle = useMemo(\n () =>\n shouldUseAutoAdvanceToggle({\n canGoNext,\n currentAudioIndex,\n currentStepHasSpeakableElement,\n hasInteraction: Boolean(currentInteractionElement),\n }),\n [\n canGoNext,\n currentAudioIndex,\n currentInteractionElement,\n currentStepHasSpeakableElement,\n ]\n );\n const silentStepAutoAdvanceBehavior = useMemo(\n () =>\n resolveSilentStepAutoAdvanceBehavior({\n currentElementList,\n currentStepHasSpeakableElement,\n currentInteractionElement,\n markerAutoAdvanceDelay,\n }),\n [\n currentElementList,\n currentInteractionElement,\n currentStepHasSpeakableElement,\n markerAutoAdvanceDelay,\n ]\n );\n const silentStepAutoAdvanceDelay = silentStepAutoAdvanceBehavior.delayMs;\n const isImageOnlySilentStep =\n silentStepAutoAdvanceBehavior.usesImageOnlyDelay;\n const imageOnlyStepVisualReadyKey = useMemo(\n () => `${currentIndex}:${currentRenderElementKeys.join(\"|\")}`,\n [currentIndex, currentRenderElementKeys]\n );\n const [readyImageOnlyStepKey, setReadyImageOnlyStepKey] = useState<\n string | null\n >(null);\n const isImageOnlyStepVisualReady =\n !isImageOnlySilentStep ||\n readyImageOnlyStepKey === imageOnlyStepVisualReadyKey;\n\n const clearPlayerHideTimer = useCallback(() => {\n if (playerHideTimerRef.current === null) {\n return;\n }\n\n window.clearTimeout(playerHideTimerRef.current);\n playerHideTimerRef.current = null;\n }, []);\n\n const clearAutoAdvanceTimer = useCallback(() => {\n if (autoAdvanceTimerRef.current === null) {\n return;\n }\n\n window.clearTimeout(autoAdvanceTimerRef.current);\n autoAdvanceTimerRef.current = null;\n }, []);\n\n const clearImageOnlyStepReadyTimeout = useCallback(() => {\n if (imageOnlyStepReadyTimeoutRef.current === null) {\n return;\n }\n\n window.clearTimeout(imageOnlyStepReadyTimeoutRef.current);\n imageOnlyStepReadyTimeoutRef.current = null;\n }, []);\n\n const resetAudioSequence = useCallback(\n (\n options: {\n preservePendingSubtitleJump?: boolean;\n } = {}\n ) => {\n clearAutoAdvanceTimer();\n clearInteractionAutoCloseTimer();\n clearInteractionOverlayOpenTimer();\n clearImageOnlyStepReadyTimeout();\n setCurrentAudioKey(null);\n playbackTimeStore.reset();\n setIsAudioLoadingVisible(false);\n setAudioLoadingReason(DEFAULT_BUFFERING_REASON);\n setHasCompletedCurrentStepAudio(false);\n playedAudioKeysRef.current = new Set();\n setHasCurrentAudioPlaybackStarted(false);\n setSubtitleSeekRequest(null);\n if (!options.preservePendingSubtitleJump) {\n pendingSubtitleJumpRef.current = null;\n }\n setActiveInteractionElement(undefined);\n setIsInteractionOverlayOpen(false);\n setInteractionOverlaySubtitleOffset(0);\n },\n [\n clearAutoAdvanceTimer,\n clearImageOnlyStepReadyTimeout,\n clearInteractionAutoCloseTimer,\n clearInteractionOverlayOpenTimer,\n playbackTimeStore,\n ]\n );\n\n const requestSubtitleCueSeek = useCallback(\n (target: SlidePlayerSubtitleJumpTarget) => {\n subtitleSeekRequestIdRef.current += 1;\n setSubtitleSeekRequest({\n ...target,\n id: subtitleSeekRequestIdRef.current,\n });\n },\n []\n );\n\n const startCurrentAudioSequence = useCallback(() => {\n // Resume at the first key that has not played yet. Falling back to index 0\n // unconditionally would replay the opening segment every time late audio\n // extends the current step.\n const nextAudioKey = resolvePendingStepAudioKey(\n currentAudioSequenceKeys,\n playedAudioKeysRef.current\n );\n\n if (!nextAudioKey) {\n return false;\n }\n\n // Start the first pending audio segment for the current step immediately.\n setCurrentAudioKey(nextAudioKey);\n return true;\n }, [currentAudioSequenceKeys]);\n\n const continueAfterInteraction = useCallback(() => {\n clearInteractionAutoCloseTimer();\n clearInteractionOverlayOpenTimer();\n setIsInteractionOverlayOpen(false);\n setInteractionOverlaySubtitleOffset(0);\n\n if (startCurrentAudioSequence()) {\n return;\n }\n\n if (canGoNext) {\n goNext();\n }\n }, [\n canGoNext,\n clearInteractionAutoCloseTimer,\n clearInteractionOverlayOpenTimer,\n goNext,\n startCurrentAudioSequence,\n ]);\n\n const scheduleInteractionOverlayOpen = useCallback(\n (interactionElement?: Element) => {\n clearInteractionOverlayOpenTimer();\n\n if (!interactionElement) {\n return;\n }\n\n const openOverlay = () => {\n interactionOverlayOpenTimerRef.current = null;\n setInteractionOverlaySubtitleOffset(\n DEFAULT_INTERACTION_OVERLAY_FALLBACK_OFFSET_PX\n );\n setIsInteractionOverlayOpen(true);\n pendingInteractionOverlayStepIndexRef.current = null;\n };\n\n interactionOverlayOpenTimerRef.current = window.setTimeout(\n openOverlay,\n DEFAULT_INTERACTION_OVERLAY_OPEN_DELAY_MS\n );\n },\n [clearInteractionOverlayOpenTimer]\n );\n\n const isPlayerControlsHovered = useCallback(\n () =>\n isPointerInsidePlayerControlsRef.current ||\n Boolean(\n sectionRef.current?.querySelector(\".slide-player__controls:hover\")\n ),\n []\n );\n\n const revealPlayerControls = useCallback(\n (enableAutoHide = hasPlayerInteracted) => {\n if (!shouldMountPlayer || resolvedPlayerControlsVisibility === \"hidden\") {\n return;\n }\n\n setIsPlayerVisible(true);\n clearPlayerHideTimer();\n\n if (\n resolvedPlayerControlsVisibility === \"visible\" ||\n !enableAutoHide ||\n playerAutoHideDelay <= 0 ||\n isPlayerControlsHovered()\n ) {\n return;\n }\n\n playerHideTimerRef.current = window.setTimeout(() => {\n if (isPlayerControlsHovered()) {\n playerHideTimerRef.current = null;\n return;\n }\n\n setIsPlayerVisible(false);\n playerHideTimerRef.current = null;\n }, playerAutoHideDelay);\n },\n [\n clearPlayerHideTimer,\n hasPlayerInteracted,\n isPlayerControlsHovered,\n playerAutoHideDelay,\n resolvedPlayerControlsVisibility,\n shouldMountPlayer,\n ]\n );\n\n const hasResolvedCurrentInteraction = Boolean(\n hasResolvedInteractionElement(currentInteractionElement)\n );\n\n const shouldBlockPlaybackForInteraction =\n Boolean(currentInteractionElement) && !hasResolvedCurrentInteraction;\n\n const handlePlaybackPreferenceChange = useCallback((playing: boolean) => {\n setIsPlaybackRequested(playing);\n }, []);\n\n const syncPlaybackPreferenceBeforeNavigation = useCallback(\n (context?: SlidePlayerNavigationContext) => {\n if (context) {\n setIsPlaybackRequested(context.shouldContinuePlayback);\n }\n },\n []\n );\n\n useEffect(() => {\n // Keep silent-step autoplay aligned with the same play/pause preference as audio.\n setIsAutoAdvanceEnabled(isPlaybackRequested);\n }, [currentIndex, isPlaybackRequested, playerCustomActionPauseOnActive]);\n\n useEffect(() => {\n if (playerCustomActionPauseOnActive) {\n setPlayerCustomActionActive(false);\n }\n }, [\n currentIndex,\n playerCustomActionPauseOnActive,\n setPlayerCustomActionActive,\n ]);\n\n useEffect(() => {\n if (!hasPlayerCustomActions) {\n setIsPlayerCustomActionActive(false);\n }\n }, [hasPlayerCustomActions]);\n\n useEffect(() => {\n return () => {\n clearAutoAdvanceTimer();\n clearImageOnlyStepReadyTimeout();\n clearPlayerHideTimer();\n clearInteractionAutoCloseTimer();\n clearInteractionOverlayOpenTimer();\n };\n }, [\n clearAutoAdvanceTimer,\n clearImageOnlyStepReadyTimeout,\n clearInteractionAutoCloseTimer,\n clearInteractionOverlayOpenTimer,\n clearPlayerHideTimer,\n ]);\n\n useEffect(() => {\n if (!isImageOnlySilentStep) {\n clearImageOnlyStepReadyTimeout();\n return;\n }\n\n let cancelled = false;\n let rafId: number | null = null;\n let cleanupListeners: (() => void) | null = null;\n\n const detachListeners = () => {\n cleanupListeners?.();\n cleanupListeners = null;\n };\n\n const finishVisualReady = () => {\n if (cancelled) {\n return;\n }\n\n detachListeners();\n clearImageOnlyStepReadyTimeout();\n setReadyImageOnlyStepKey(imageOnlyStepVisualReadyKey);\n };\n\n const evaluateVisualReady = () => {\n if (cancelled) {\n return;\n }\n\n detachListeners();\n\n const activeStepContainer = stageLayerRef.current?.querySelector(\n '[data-active-step=\"true\"]'\n ) as HTMLElement | null;\n\n if (!activeStepContainer) {\n return;\n }\n\n const iframeElements = Array.from(\n activeStepContainer.querySelectorAll(\"iframe\")\n ) as HTMLIFrameElement[];\n\n if (\n iframeElements.length === 0 ||\n areImageOnlyStepIframeVisualsReady(iframeElements)\n ) {\n finishVisualReady();\n return;\n }\n\n const cleanupCallbacks: Array<() => void> = [];\n const queueRecheck = () => {\n if (cancelled) {\n return;\n }\n\n if (rafId !== null) {\n window.cancelAnimationFrame(rafId);\n }\n\n rafId = window.requestAnimationFrame(() => {\n rafId = null;\n evaluateVisualReady();\n });\n };\n const registerEvent = (\n target: EventTarget,\n eventName: string,\n listener: EventListener\n ) => {\n target.addEventListener(eventName, listener, { once: true });\n cleanupCallbacks.push(() =>\n target.removeEventListener(eventName, listener)\n );\n };\n\n iframeElements.forEach((iframeElement) => {\n const iframeDocument = iframeElement.contentDocument;\n\n if (!iframeDocument || iframeDocument.readyState !== \"complete\") {\n registerEvent(iframeElement, \"load\", queueRecheck);\n return;\n }\n\n Array.from(iframeDocument.images)\n .filter((image) => !image.complete)\n .forEach((image) => {\n registerEvent(image, \"load\", queueRecheck);\n registerEvent(image, \"error\", queueRecheck);\n });\n });\n\n cleanupListeners = () => {\n cleanupCallbacks.forEach((cleanup) => cleanup());\n };\n };\n\n rafId = window.requestAnimationFrame(() => {\n rafId = null;\n evaluateVisualReady();\n });\n\n imageOnlyStepReadyTimeoutRef.current = window.setTimeout(() => {\n finishVisualReady();\n }, DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS);\n\n return () => {\n cancelled = true;\n detachListeners();\n clearImageOnlyStepReadyTimeout();\n if (rafId !== null) {\n window.cancelAnimationFrame(rafId);\n }\n };\n }, [\n clearImageOnlyStepReadyTimeout,\n currentElementList,\n currentIndex,\n imageOnlyStepVisualReadyKey,\n isImageOnlySilentStep,\n ]);\n\n useEffect(() => {\n onPlayerVisibilityChange?.(playerControlsVisible);\n\n return () => {\n onPlayerVisibilityChange?.(false);\n };\n }, [onPlayerVisibilityChange, playerControlsVisible]);\n\n useEffect(() => {\n if (playerControlsVisible) {\n return;\n }\n\n isPointerInsidePlayerControlsRef.current = false;\n }, [playerControlsVisible]);\n\n useEffect(() => {\n if (isMobileDevice || mobileViewMode === DEFAULT_MOBILE_VIEW_MODE) {\n return;\n }\n\n setHasManualMobileViewMode(false);\n setMobileViewMode(DEFAULT_MOBILE_VIEW_MODE);\n }, [isMobileDevice, mobileViewMode]);\n\n useEffect(() => {\n if (!isMobileDevice) {\n setIsViewportFullscreenPreferred(false);\n return;\n }\n\n const syncViewportFullscreenPreference = () => {\n setIsViewportFullscreenPreferred(getIsFullscreenPreferredViewport());\n resetInteractionOverlayDragState();\n };\n const handleOrientationChange = () => {\n resetInteractionOverlayDragState();\n };\n\n syncViewportFullscreenPreference();\n window.addEventListener(\"orientationchange\", handleOrientationChange);\n window.screen?.orientation?.addEventListener?.(\n \"change\",\n handleOrientationChange\n );\n const unsubscribeMobileDeviceChange = subscribeMobileDeviceChange(\n syncViewportFullscreenPreference\n );\n\n return () => {\n unsubscribeMobileDeviceChange();\n window.removeEventListener(\"orientationchange\", handleOrientationChange);\n window.screen?.orientation?.removeEventListener?.(\n \"change\",\n handleOrientationChange\n );\n };\n }, [isMobileDevice, resetInteractionOverlayDragState]);\n\n useEffect(() => {\n onMobileViewModeChange?.(effectiveMobileViewMode);\n }, [effectiveMobileViewMode, onMobileViewModeChange]);\n\n useEffect(() => {\n if (\n previousEffectiveMobileViewModeRef.current !== effectiveMobileViewMode\n ) {\n resetInteractionOverlayDragState();\n }\n previousEffectiveMobileViewModeRef.current = effectiveMobileViewMode;\n }, [effectiveMobileViewMode, resetInteractionOverlayDragState]);\n\n useEffect(() => {\n onStepChange?.(currentStepElement, currentIndex);\n }, [currentIndex, currentStepElement, onStepChange]);\n\n useEffect(() => {\n const previousState = appendedMarkerAdvanceStateRef.current;\n const shouldAdvanceIntoAppendedMarker = shouldAutoAdvanceIntoAppendedMarker(\n {\n previousMarkerCount: previousState.markerCount,\n nextMarkerCount: slideElementList.length,\n previousIndex: previousState.currentIndex,\n previousCanGoNext: previousState.canGoNext,\n nextCanGoNext: canGoNext,\n currentAudioKey,\n hasCompletedCurrentStepAudio,\n hasResolvedCurrentInteraction,\n currentStepHasSpeakableElement,\n currentInteractionElement,\n isAutoAdvanceEnabled,\n shouldUseSilentStepAutoAdvanceToggle,\n }\n );\n\n appendedMarkerAdvanceStateRef.current = {\n markerCount: slideElementList.length,\n currentIndex,\n canGoNext,\n };\n\n if (!shouldAdvanceIntoAppendedMarker) {\n return;\n }\n\n goNext();\n }, [\n canGoNext,\n currentAudioKey,\n currentIndex,\n currentInteractionElement,\n currentStepHasSpeakableElement,\n goNext,\n hasCompletedCurrentStepAudio,\n hasResolvedCurrentInteraction,\n isAutoAdvanceEnabled,\n shouldUseSilentStepAutoAdvanceToggle,\n slideElementList.length,\n ]);\n\n useEffect(() => {\n if (!shouldMountPlayer || resolvedPlayerControlsVisibility === \"hidden\") {\n clearPlayerHideTimer();\n setIsPlayerVisible(false);\n return;\n }\n\n if (resolvedPlayerControlsVisibility === \"visible\") {\n clearPlayerHideTimer();\n setIsPlayerVisible(true);\n return;\n }\n\n if (!hasPlayerInteracted) {\n // Keep the initial player visible briefly, then hide it automatically.\n revealPlayerControls(true);\n }\n }, [\n clearPlayerHideTimer,\n hasPlayerInteracted,\n resolvedPlayerControlsVisibility,\n shouldMountPlayer,\n revealPlayerControls,\n ]);\n\n useEffect(() => {\n if (typeof window === \"undefined\") {\n return;\n }\n\n const handleSandboxInteraction = (event: MessageEvent) => {\n if (event.origin !== window.location.origin) {\n return;\n }\n\n if (!isSandboxInteractionMessage(event.data)) {\n return;\n }\n\n if (event.data.eventType !== \"click\") {\n return;\n }\n\n if (!shouldMountPlayer) {\n return;\n }\n\n // Restore player controls on explicit click/tap without waking on scroll start.\n activateKeyboardShortcutOwner();\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n };\n\n window.addEventListener(\"message\", handleSandboxInteraction);\n\n return () => {\n window.removeEventListener(\"message\", handleSandboxInteraction);\n };\n }, [activateKeyboardShortcutOwner, shouldMountPlayer, revealPlayerControls]);\n\n useWakePlayerFromIframe({\n sectionRef,\n enabled: shouldMountPlayer,\n keyboardShortcutsEnabled: enableKeyboardShortcuts,\n onKeyboardShortcut: activateKeyboardShortcutOwner,\n onWake: () => {\n activateKeyboardShortcutOwner();\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n },\n });\n\n useEffect(() => {\n if (!shouldMountPlayer) {\n resetAudioSequence();\n return;\n }\n\n // A restore request sets the target audio in an earlier effect. Without\n // this guard, the normal first-audio initializer in this same commit can\n // overwrite that target before Player receives the restore request.\n if (pendingPlaybackRestoreRef.current) {\n // Record the target context before Player finishes its restore callback.\n // The next sequence effect then sees this step as initialized instead of\n // resetting it back to the default first audio item.\n playbackResetKeyRef.current = currentPlaybackResetKey;\n return;\n }\n\n const { hasPlaybackContextChanged, shouldInitializeAudioSequence } =\n getPlaybackSequenceTransition({\n previousResetKey: playbackResetKeyRef.current,\n nextResetKey: currentPlaybackResetKey,\n currentAudioKey,\n hasCompletedCurrentStepAudio,\n });\n\n playbackResetKeyRef.current = currentPlaybackResetKey;\n\n const shouldOpenInteractionOverlayAfterAudio =\n pendingInteractionOverlayStepIndexRef.current === currentIndex &&\n Boolean(currentInteractionElement);\n const shouldPresentOverlay = shouldPresentInteractionOverlay({\n hasInteraction: Boolean(currentInteractionElement),\n shouldBlockPlaybackForInteraction,\n shouldOpenInteractionOverlayAfterAudio,\n hasPlaybackContextChanged,\n hasResolvedCurrentInteraction,\n currentStepHasSpeakableElement,\n isPlayerCustomActionActive: isPlayerCustomActionEffectivelyActive,\n });\n\n const pendingSubtitleJump = pendingSubtitleJumpRef.current;\n const shouldPreservePendingSubtitleJump =\n pendingSubtitleJump?.slideIndex === currentIndex;\n\n if (hasPlaybackContextChanged) {\n resetAudioSequence({\n preservePendingSubtitleJump: shouldPreservePendingSubtitleJump,\n });\n }\n\n if (currentElementList.length === 0 && !currentInteractionElement) {\n return;\n }\n\n if (shouldPausePlaybackForCustomAction) {\n return;\n }\n\n if (pendingSubtitleJump?.slideIndex === currentIndex) {\n if (\n !canReachSubtitleJumpTarget({\n currentIndex,\n resolvedCurrentInteractionElement: activeInteractionElement,\n slideElementList,\n targetSlideIndex: pendingSubtitleJump.slideIndex,\n })\n ) {\n // Keep the pending seek queued while the interaction overlay gates playback.\n } else {\n pendingSubtitleJumpRef.current = null;\n // The default audio-start effect still sees the pre-seek render state.\n // Skip it once so it does not replace the subtitle target audio.\n shouldSkipDefaultAudioStartForSubtitleJumpRef.current = true;\n setCurrentAudioKey(pendingSubtitleJump.audioKey);\n requestSubtitleCueSeek({\n audioIndex: pendingSubtitleJump.audioIndex,\n timeMs: pendingSubtitleJump.timeMs,\n });\n return;\n }\n }\n\n if (currentInteractionElement) {\n setActiveInteractionElement(currentInteractionElement);\n }\n\n if (shouldPresentOverlay) {\n // Delay auto-presenting the overlay so subtitles can settle above it.\n scheduleInteractionOverlayOpen(currentInteractionElement);\n return;\n }\n\n clearInteractionOverlayOpenTimer();\n pendingInteractionOverlayStepIndexRef.current = null;\n\n // A custom action may intentionally remain active without pausing ordinary\n // playback. Unresolved interactions still gate progression even while that\n // action temporarily owns the visible overlay surface.\n if (shouldBlockPlaybackForInteraction) {\n return;\n }\n\n if (!shouldInitializeAudioSequence) {\n return;\n }\n\n if (startCurrentAudioSequence()) {\n return;\n }\n\n if (currentStepHasSpeakableElement) {\n if (disableLoadingOverlay) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n setIsAudioLoadingVisible(true);\n return;\n }\n\n if (!canGoNext) {\n return;\n }\n\n if (shouldUseSilentStepAutoAdvanceToggle && !isAutoAdvanceEnabled) {\n return;\n }\n\n if (isImageOnlySilentStep && !isImageOnlyStepVisualReady) {\n return;\n }\n\n // Auto-advance silent marker-only steps so playback flow does not stall.\n autoAdvanceTimerRef.current = window.setTimeout(() => {\n autoAdvanceTimerRef.current = null;\n goNext();\n }, silentStepAutoAdvanceDelay);\n\n return () => {\n clearAutoAdvanceTimer();\n };\n }, [\n activeInteractionElement,\n canGoNext,\n clearAutoAdvanceTimer,\n currentElementList.length,\n currentIndex,\n currentInteractionElement,\n currentAudioKey,\n currentPlaybackResetKey,\n currentStepHasSpeakableElement,\n isImageOnlySilentStep,\n isImageOnlyStepVisualReady,\n silentStepAutoAdvanceDelay,\n goNext,\n hasCompletedCurrentStepAudio,\n disableLoadingOverlay,\n isAutoAdvanceEnabled,\n hasResolvedCurrentInteraction,\n isPlayerCustomActionEffectivelyActive,\n shouldBlockPlaybackForInteraction,\n clearInteractionOverlayOpenTimer,\n resetAudioSequence,\n requestSubtitleCueSeek,\n scheduleInteractionOverlayOpen,\n shouldMountPlayer,\n slideElementList,\n startCurrentAudioSequence,\n shouldPausePlaybackForCustomAction,\n shouldUseSilentStepAutoAdvanceToggle,\n ]);\n\n useEffect(() => {\n if (\n disableLoadingOverlay ||\n shouldPausePlaybackForCustomAction ||\n !currentStepHasSpeakableElement ||\n shouldBlockPlaybackForInteraction\n ) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n if (hasCompletedCurrentStepAudio) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n if (hasAvailableStepAudio) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n setAudioLoadingReason(\"waitingForAudio\");\n setIsAudioLoadingVisible(true);\n }, [\n hasAvailableStepAudio,\n currentStepHasSpeakableElement,\n hasCompletedCurrentStepAudio,\n disableLoadingOverlay,\n shouldPausePlaybackForCustomAction,\n shouldBlockPlaybackForInteraction,\n ]);\n\n // A step's audio can keep arriving after the last available segment finished,\n // because narration is synthesized while the lesson is still streaming. The\n // step-completed flag is otherwise only cleared when the reset key changes -\n // which tracks the step index and the interaction content, neither of which\n // moves while new audio is appended to the step the learner is already on.\n // Without this, everything synthesized after that first gap stays silent.\n useEffect(() => {\n if (!hasCompletedCurrentStepAudio) {\n return;\n }\n\n if (\n !hasUnplayedStepAudio(\n currentAudioSequenceKeys,\n playedAudioKeysRef.current\n )\n ) {\n return;\n }\n\n setHasCompletedCurrentStepAudio(false);\n }, [currentAudioSequenceKeys, hasCompletedCurrentStepAudio]);\n\n useEffect(() => {\n // A restore request may arrive after the slide itself mounts. Do not let\n // this independent default-start path select the first audio item while\n // the restore target is still being applied.\n if (pendingPlaybackRestoreRef.current) {\n return;\n }\n\n const shouldSkipDefaultAudioStart =\n shouldSkipDefaultAudioStartForSubtitleJumpRef.current;\n shouldSkipDefaultAudioStartForSubtitleJumpRef.current = false;\n\n if (\n !shouldStartDefaultAudioSequence({\n currentAudioKey,\n currentAudioSequenceLength: currentAudioSequenceKeys.length,\n currentStepHasSpeakableElement,\n hasCompletedCurrentStepAudio,\n shouldBlockPlaybackForInteraction,\n shouldPausePlaybackForCustomAction,\n shouldSkipDefaultAudioStart,\n })\n ) {\n return;\n }\n\n startCurrentAudioSequence();\n }, [\n currentAudioKey,\n currentAudioSequenceKeys,\n currentStepHasSpeakableElement,\n hasCompletedCurrentStepAudio,\n shouldPausePlaybackForCustomAction,\n shouldBlockPlaybackForInteraction,\n startCurrentAudioSequence,\n ]);\n\n useEffect(() => {\n if (!currentAudioKey || currentAudioIndex >= 0) {\n return;\n }\n\n setCurrentAudioKey(null);\n }, [currentAudioIndex, currentAudioKey]);\n\n useEffect(() => {\n if (currentAudioIndex >= 0) {\n return;\n }\n\n playbackTimeStore.reset();\n }, [currentAudioIndex, playbackTimeStore]);\n\n useEffect(() => {\n setHasCurrentAudioPlaybackStarted(false);\n }, [currentPlaybackStartedResetKey]);\n\n const {\n interactionDefaults,\n interactionDefaultSelectedValues,\n hasResolvedInteractionInput,\n isInteractionReadonly: resolvedInteractionReadonly,\n shouldAutoContinueInteraction,\n } = useMemo(\n () =>\n resolveSlideInteractionState(activeInteractionElement, {\n interactionDefaultValueOptions,\n }),\n [activeInteractionElement, interactionDefaultValueOptions]\n );\n\n const isInteractionReadonly =\n Boolean(activeInteractionElement?.readonly) || resolvedInteractionReadonly;\n const shouldShowInteractionOverlay = shouldRenderInteractionOverlay({\n hasActiveInteraction: Boolean(activeInteractionElement),\n isInteractionOverlayOpen,\n });\n\n const handleInteractionSend = useCallback(\n (content: OnSendContentParams) => {\n const submittedValues = [\n ...(content.selectedValues ?? []),\n content.inputText?.trim() ?? \"\",\n content.buttonText?.trim() ?? \"\",\n ].filter(Boolean);\n const resolvedUserInput = submittedValues.join(\", \");\n\n setActiveInteractionElement((prevElement) => {\n if (!prevElement || !resolvedUserInput) {\n return prevElement;\n }\n\n return {\n ...prevElement,\n user_input: resolvedUserInput,\n };\n });\n\n onSend?.(content, activeInteractionElement);\n continueAfterInteraction();\n },\n [activeInteractionElement, continueAfterInteraction, onSend]\n );\n\n useEffect(() => {\n // Keep the player icon in sync with the actual fullscreen owner.\n const syncFullscreenState = () => {\n setIsBrowserFullscreen(document.fullscreenElement === sectionRef.current);\n };\n\n syncFullscreenState();\n document.addEventListener(\"fullscreenchange\", syncFullscreenState);\n\n return () => {\n document.removeEventListener(\"fullscreenchange\", syncFullscreenState);\n };\n }, []);\n\n useEffect(() => {\n if (activeInteractionElement && isInteractionOverlayOpen) {\n return;\n }\n\n setHasInteractionOverlayActivity(false);\n }, [activeInteractionElement, isInteractionOverlayOpen]);\n\n useEffect(() => {\n resetInteractionOverlayDragState();\n }, [activeInteractionElement, resetInteractionOverlayDragState]);\n\n useEffect(() => {\n if (!shouldShowInteractionOverlay) {\n setInteractionOverlaySubtitleOffset(0);\n return;\n }\n\n const interactionOverlayElement = interactionOverlayRef.current;\n\n if (!interactionOverlayElement) {\n return;\n }\n\n const updateSubtitleOffset = () => {\n const overlayHeight = Math.ceil(\n interactionOverlayElement.getBoundingClientRect().height\n );\n\n setInteractionOverlaySubtitleOffset(\n overlayHeight + DEFAULT_INTERACTION_SUBTITLE_GAP_PX\n );\n };\n\n updateSubtitleOffset();\n\n if (typeof ResizeObserver === \"undefined\") {\n return;\n }\n\n const resizeObserver = new ResizeObserver(() => {\n updateSubtitleOffset();\n });\n\n resizeObserver.observe(interactionOverlayElement);\n\n return () => {\n resizeObserver.disconnect();\n };\n }, [shouldShowInteractionOverlay]);\n\n useEffect(() => {\n clearInteractionAutoCloseTimer();\n\n if (!isInteractionOverlayOpen) {\n return;\n }\n\n if (shouldAutoContinueInteraction) {\n // Auto-close passive interaction markers to keep playback moving.\n interactionAutoCloseTimerRef.current = window.setTimeout(() => {\n interactionAutoCloseTimerRef.current = null;\n\n continueAfterInteraction();\n }, DEFAULT_RESOLVED_INTERACTION_AUTO_CLOSE_DELAY_MS);\n return () => {\n clearInteractionAutoCloseTimer();\n };\n }\n\n if (hasInteractionOverlayActivity || !hasResolvedInteractionInput) {\n return;\n }\n\n // Give resolved history interactions a short revisit window before\n // playback resumes, but stop auto-closing once the learner starts editing.\n interactionAutoCloseTimerRef.current = window.setTimeout(() => {\n interactionAutoCloseTimerRef.current = null;\n\n continueAfterInteraction();\n }, DEFAULT_RESOLVED_INTERACTION_AUTO_CLOSE_DELAY_MS);\n\n return () => {\n clearInteractionAutoCloseTimer();\n };\n }, [\n clearInteractionAutoCloseTimer,\n continueAfterInteraction,\n hasInteractionOverlayActivity,\n hasResolvedInteractionInput,\n isInteractionOverlayOpen,\n shouldAutoContinueInteraction,\n ]);\n\n const renderSlideElement = (\n element?: Element,\n options: RenderSlideElementOptions = {}\n ) => {\n if (!element) {\n return null;\n }\n\n if (element.type === \"slot\") {\n return <>{element.content}</>;\n }\n\n if (element.type === \"html\") {\n return (\n <IframeSandbox\n className=\"content-render-iframe\"\n disableLoadingOverlay={disableLoadingOverlay}\n hideFullScreen\n locale={locale}\n dir={direction}\n lang={language}\n mode=\"blackboard\"\n replaceRootScreenHeightWithFull={\n options.replaceRootScreenHeightWithFull\n }\n type=\"sandbox\"\n content={element.content as string}\n enableScaling={enableIframeScaling}\n />\n );\n }\n\n return (\n <IframeSandbox\n className=\"content-render-iframe\"\n disableLoadingOverlay={disableLoadingOverlay}\n hideFullScreen\n locale={locale}\n dir={direction}\n lang={language}\n mode=\"blackboard\"\n type=\"markdown\"\n content={element.content as string}\n />\n );\n };\n\n const renderSlideElementList = (\n elementList: Element[] = [],\n isActiveStep = false\n ) => {\n if (elementList.length === 0) {\n return null;\n }\n\n const visibleElementCount = elementList.filter(\n (element) => element.is_renderable !== false\n ).length;\n const markdownScalingMode =\n isActiveStep && enableMarkdownScaling\n ? resolveMarkdownScalingMode(elementList)\n : \"disabled\";\n const lastVisibleElementIndex = elementList.reduce(\n (lastVisibleIndex, element, index) =>\n element.is_renderable !== false ? index : lastVisibleIndex,\n -1\n );\n\n return (\n <MarkdownSlideScaling\n className=\"slide-stage__content flex w-full flex-col gap-4\"\n mode={markdownScalingMode}\n >\n {elementList.map((element, index) => {\n const isPreRenderedHtml =\n element.type === \"html\" && element.is_renderable === false;\n\n return (\n <div\n key={element.sequence_number ?? `${element.type}-${index}`}\n ref={\n isActiveStep && index === lastVisibleElementIndex\n ? lastElementRef\n : null\n }\n aria-hidden={isPreRenderedHtml || undefined}\n className={cn(\n \"w-full shrink-0\",\n visibleElementCount === 1 &&\n element.is_renderable !== false &&\n \"slide-element--single\",\n isPreRenderedHtml\n ? \"pointer-events-none fixed left-[-200vw] top-0 -z-10 h-[100dvh] w-[100vw] overflow-hidden opacity-0\"\n : element.is_renderable === false && \"hidden\"\n )}\n >\n {renderSlideElement(element, {\n replaceRootScreenHeightWithFull:\n visibleElementCount === 1 &&\n element.type === \"html\" &&\n element.is_renderable !== false,\n })}\n </div>\n );\n })}\n </MarkdownSlideScaling>\n );\n };\n\n const handleFullscreen = useCallback(() => {\n const target = sectionRef.current;\n if (!target) {\n return;\n }\n\n if (document.fullscreenElement === target) {\n document.exitFullscreen().catch(() => {});\n return;\n }\n\n target.requestFullscreen?.().catch(() => {});\n }, []);\n\n const scrollStageToBottom = useCallback(() => {\n const stageLayerElement = stageLayerRef.current;\n\n if (!stageLayerElement) {\n return;\n }\n\n // Keep the latest content visible after manual player navigation.\n stageLayerElement.scrollTo({\n top: stageLayerElement.scrollHeight,\n behavior: \"smooth\",\n });\n }, []);\n\n const canJumpToSubtitleTarget = useCallback(\n (target: SlidePlayerSubtitleJumpTarget) =>\n canReachSubtitleJumpTarget({\n currentIndex,\n resolvedCurrentInteractionElement: activeInteractionElement,\n slideElementList,\n targetSlideIndex: audioSlideIndexes[target.audioIndex],\n }),\n [\n activeInteractionElement,\n audioSlideIndexes,\n currentIndex,\n slideElementList,\n ]\n );\n\n const handleSubtitleJump = useCallback(\n (\n target: SlidePlayerSubtitleJumpTarget,\n context: SlidePlayerNavigationContext\n ) => {\n const targetAudio = audioList[target.audioIndex];\n const targetAudioKey = targetAudio?.audioKey;\n const targetSlideIndex = audioSlideIndexes[target.audioIndex];\n\n if (!targetAudioKey || targetSlideIndex == null) {\n return false;\n }\n\n if (!canJumpToSubtitleTarget(target)) {\n return false;\n }\n\n syncPlaybackPreferenceBeforeNavigation(context);\n pendingInteractionOverlayStepIndexRef.current = null;\n setIsAudioLoadingVisible(false);\n setHasCompletedCurrentStepAudio(false);\n setHasCurrentAudioPlaybackStarted(false);\n\n if (shouldWakePlayerControlsAfterNavigation(context)) {\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n }\n\n if (targetSlideIndex === currentIndex) {\n pendingSubtitleJumpRef.current = null;\n resetAudioSequence();\n setCurrentAudioKey(targetAudioKey);\n requestSubtitleCueSeek(target);\n return true;\n }\n\n shouldScrollToBottomRef.current = true;\n resetAudioSequence();\n pendingSubtitleJumpRef.current = {\n audioIndex: target.audioIndex,\n audioKey: targetAudioKey,\n slideIndex: targetSlideIndex,\n timeMs: target.timeMs,\n };\n goTo(targetSlideIndex);\n\n return true;\n },\n [\n audioList,\n audioSlideIndexes,\n canJumpToSubtitleTarget,\n currentIndex,\n goTo,\n requestSubtitleCueSeek,\n resetAudioSequence,\n revealPlayerControls,\n syncPlaybackPreferenceBeforeNavigation,\n ]\n );\n\n const handlePrev = useCallback(\n (context?: SlidePlayerNavigationContext) => {\n syncPlaybackPreferenceBeforeNavigation(context);\n shouldScrollToBottomRef.current = true;\n pendingInteractionOverlayStepIndexRef.current = null;\n setIsAudioLoadingVisible(false);\n if (shouldWakePlayerControlsAfterNavigation(context)) {\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n }\n resetAudioSequence();\n goPrev();\n },\n [\n goPrev,\n resetAudioSequence,\n revealPlayerControls,\n syncPlaybackPreferenceBeforeNavigation,\n ]\n );\n\n const handleNext = useCallback(\n (context?: SlidePlayerNavigationContext) => {\n syncPlaybackPreferenceBeforeNavigation(context);\n shouldScrollToBottomRef.current = true;\n pendingInteractionOverlayStepIndexRef.current = null;\n setIsAudioLoadingVisible(false);\n if (shouldWakePlayerControlsAfterNavigation(context)) {\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n }\n resetAudioSequence();\n goNext();\n },\n [\n goNext,\n resetAudioSequence,\n revealPlayerControls,\n syncPlaybackPreferenceBeforeNavigation,\n ]\n );\n\n const handleSlideProgressNavigate = useCallback(\n (targetIndex: number, context: SlidePlayerNavigationContext) => {\n if (\n targetIndex < 0 ||\n targetIndex >= slideElementList.length ||\n targetIndex === currentIndex\n ) {\n return;\n }\n\n syncPlaybackPreferenceBeforeNavigation(context);\n shouldScrollToBottomRef.current = true;\n pendingInteractionOverlayStepIndexRef.current = null;\n setIsAudioLoadingVisible(false);\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n resetAudioSequence();\n goTo(targetIndex);\n onSlideProgressNavigate?.(slideElementList[targetIndex], targetIndex);\n },\n [\n currentIndex,\n goTo,\n onSlideProgressNavigate,\n resetAudioSequence,\n revealPlayerControls,\n slideElementList,\n syncPlaybackPreferenceBeforeNavigation,\n ]\n );\n\n const handlePlayerLoadingChange = useCallback(\n ({\n loading,\n reason,\n }: {\n loading: boolean;\n reason: SlidePlayerLoadingReason | null;\n }) => {\n if (disableLoadingOverlay) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n if (!currentStepHasSpeakableElement || hasCompletedCurrentStepAudio) {\n setIsAudioLoadingVisible(false);\n return;\n }\n\n if (loading && reason) {\n setAudioLoadingReason(reason);\n }\n setIsAudioLoadingVisible(shouldShowBufferingOverlay(reason, loading));\n },\n [\n currentStepHasSpeakableElement,\n hasCompletedCurrentStepAudio,\n disableLoadingOverlay,\n ]\n );\n\n useEffect(() => {\n if (!disableLoadingOverlay) {\n return;\n }\n\n setIsAudioLoadingVisible(false);\n }, [disableLoadingOverlay]);\n\n const handlePlayerEnded = useCallback(\n (audioIndex: number) => {\n const endedAudioKey = audioList[audioIndex]?.audioKey;\n\n if (!endedAudioKey || !currentAudioKey) {\n return;\n }\n\n if (endedAudioKey !== currentAudioKey) {\n return;\n }\n\n playedAudioKeysRef.current.add(endedAudioKey);\n\n const activeSequencePosition = currentAudioSequenceKeys.findIndex(\n (audioSequenceKey) => audioSequenceKey === endedAudioKey\n );\n if (activeSequencePosition < 0) {\n setCurrentAudioKey(null);\n return;\n }\n\n const nextSequencePosition = activeSequencePosition + 1;\n const nextAudioKey = currentAudioSequenceKeys[nextSequencePosition];\n\n if (nextAudioKey) {\n setCurrentAudioKey(nextAudioKey);\n return;\n }\n\n setCurrentAudioKey(null);\n setHasCompletedCurrentStepAudio(true);\n setIsAudioLoadingVisible(false);\n\n if (canGoNext) {\n const nextStepIndex = currentIndex + 1;\n const nextStepElement = slideElementList[nextStepIndex];\n\n if (hasCurrentStepAudioUrl && nextStepElement?.type === \"interaction\") {\n pendingInteractionOverlayStepIndexRef.current = nextStepIndex;\n }\n\n goNext();\n return;\n }\n },\n [\n audioList,\n canGoNext,\n currentIndex,\n currentAudioKey,\n currentAudioSequenceKeys,\n goNext,\n hasCurrentStepAudioUrl,\n slideElementList,\n ]\n );\n\n const handlePlayerControlsPointerEnter = useCallback(() => {\n isPointerInsidePlayerControlsRef.current = true;\n clearPlayerHideTimer();\n\n if (shouldMountPlayer) {\n setIsPlayerVisible(true);\n }\n }, [clearPlayerHideTimer, shouldMountPlayer]);\n\n const handlePlayerControlsPointerLeave = useCallback(() => {\n isPointerInsidePlayerControlsRef.current = false;\n revealPlayerControls(true);\n }, [revealPlayerControls]);\n\n const stopOverlayPropagation = useCallback(\n (\n event: React.PointerEvent<HTMLElement> | React.MouseEvent<HTMLElement>\n ) => {\n event.stopPropagation();\n\n // Keep the player visible a bit longer when users interact with the overlay.\n if (playerControlsVisible) {\n revealPlayerControls(true);\n }\n },\n [playerControlsVisible, revealPlayerControls]\n );\n\n const getInteractionOverlayDragBounds = useCallback(\n (\n overlayElement: HTMLElement,\n startOffset: InteractionOverlayDragOffset\n ): InteractionOverlayDragBounds | null => {\n const viewportElement = viewportRef.current;\n\n if (!viewportElement) {\n return null;\n }\n\n const overlayRect = overlayElement.getBoundingClientRect();\n const viewportRect = viewportElement.getBoundingClientRect();\n\n return {\n minX: startOffset.x + viewportRect.left - overlayRect.left,\n maxX: startOffset.x + viewportRect.right - overlayRect.right,\n minY: startOffset.y + viewportRect.top - overlayRect.top,\n maxY: startOffset.y + viewportRect.bottom - overlayRect.bottom,\n };\n },\n []\n );\n\n useIsomorphicLayoutEffect(() => {\n const overlayElement = interactionOverlayRef.current;\n\n if (!shouldShowInteractionOverlay || !overlayElement) {\n interactionOverlayLayoutRectRef.current = null;\n return;\n }\n\n const previousRect = interactionOverlayLayoutRectRef.current;\n const currentRect = overlayElement.getBoundingClientRect();\n\n if (!previousRect || isInteractionOverlayDragging) {\n interactionOverlayLayoutRectRef.current = {\n left: currentRect.left,\n top: currentRect.top,\n };\n return;\n }\n\n const deltaX = previousRect.left - currentRect.left;\n const deltaY = previousRect.top - currentRect.top;\n\n if (\n !hasMeaningfulInteractionOverlayLayoutDelta(deltaX) &&\n !hasMeaningfulInteractionOverlayLayoutDelta(deltaY)\n ) {\n interactionOverlayLayoutRectRef.current = {\n left: currentRect.left,\n top: currentRect.top,\n };\n return;\n }\n\n const nextOffset = {\n x: interactionOverlayDragOffset.x + deltaX,\n y: interactionOverlayDragOffset.y + deltaY,\n };\n const bounds = getInteractionOverlayDragBounds(\n overlayElement,\n interactionOverlayDragOffset\n );\n const clampedOffset = normalizeInteractionOverlayDragOffset(\n bounds\n ? clampInteractionOverlayDragOffset(nextOffset, bounds)\n : nextOffset\n );\n\n interactionOverlayLayoutRectRef.current = {\n left: currentRect.left + clampedOffset.x - interactionOverlayDragOffset.x,\n top: currentRect.top + clampedOffset.y - interactionOverlayDragOffset.y,\n };\n\n if (\n !areInteractionOverlayDragOffsetsEqual(\n clampedOffset,\n interactionOverlayDragOffset\n )\n ) {\n setInteractionOverlayDragOffset((previousOffset) =>\n areInteractionOverlayDragOffsetsEqual(previousOffset, clampedOffset)\n ? previousOffset\n : clampedOffset\n );\n }\n }, [\n getInteractionOverlayDragBounds,\n interactionOverlayDragOffset,\n isInteractionOverlayDragging,\n playerLayoutReserved,\n shouldShowInteractionOverlay,\n ]);\n\n const handleInteractionOverlayPointerDown = useCallback(\n (event: React.PointerEvent<HTMLElement>) => {\n stopOverlayPropagation(event);\n\n if (\n event.button !== 0 ||\n !event.currentTarget.isConnected ||\n !interactionOverlayRef.current\n ) {\n return;\n }\n\n const bounds = getInteractionOverlayDragBounds(\n interactionOverlayRef.current,\n interactionOverlayDragOffset\n );\n\n if (!bounds) {\n return;\n }\n\n event.preventDefault();\n if (event.currentTarget.hasPointerCapture?.(event.pointerId) !== true) {\n event.currentTarget.setPointerCapture(event.pointerId);\n }\n interactionOverlayDragRef.current = {\n pointerId: event.pointerId,\n startClientX: event.clientX,\n startClientY: event.clientY,\n startOffset: interactionOverlayDragOffset,\n bounds,\n };\n setIsInteractionOverlayDragging(true);\n },\n [\n getInteractionOverlayDragBounds,\n interactionOverlayDragOffset,\n stopOverlayPropagation,\n ]\n );\n\n const handleInteractionOverlayPointerMove = useCallback(\n (event: React.PointerEvent<HTMLElement>) => {\n const dragState = interactionOverlayDragRef.current;\n\n if (!dragState || dragState.pointerId !== event.pointerId) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n setInteractionOverlayDragOffset(\n clampInteractionOverlayDragOffset(\n {\n x: dragState.startOffset.x + event.clientX - dragState.startClientX,\n y: dragState.startOffset.y + event.clientY - dragState.startClientY,\n },\n dragState.bounds\n )\n );\n },\n []\n );\n\n const endInteractionOverlayDrag = useCallback(\n (event: React.PointerEvent<HTMLElement>) => {\n const dragState = interactionOverlayDragRef.current;\n\n if (!dragState || dragState.pointerId !== event.pointerId) {\n return;\n }\n\n event.stopPropagation();\n if (event.currentTarget.hasPointerCapture(event.pointerId)) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n interactionOverlayDragRef.current = null;\n setIsInteractionOverlayDragging(false);\n },\n []\n );\n\n const handleSurfacePointerDown = useCallback(\n (event: React.PointerEvent<HTMLElement>) => {\n activateKeyboardShortcutOwner();\n onPointerDown?.(event);\n },\n [activateKeyboardShortcutOwner, onPointerDown]\n );\n\n const handleSurfaceFocusCapture = useCallback(\n (event: React.FocusEvent<HTMLElement>) => {\n activateKeyboardShortcutOwner();\n onFocusCapture?.(event);\n },\n [activateKeyboardShortcutOwner, onFocusCapture]\n );\n\n const handleSurfaceClick = useCallback(() => {\n setHasPlayerInteracted(true);\n revealPlayerControls(true);\n }, [revealPlayerControls]);\n useEffect(() => {\n const prevKeys = prevRenderElementKeysRef.current;\n const hasStablePrefix =\n prevKeys.length > 0 &&\n prevKeys.length < currentRenderElementKeys.length &&\n prevKeys.every((key, index) => key === currentRenderElementKeys[index]);\n const appendedElements = hasStablePrefix\n ? currentElementList.slice(prevKeys.length)\n : [];\n const shouldAutoScrollToAppend = appendedElements.some(\n (element) => element.is_new === false\n );\n\n prevRenderElementKeysRef.current = currentRenderElementKeys;\n\n if (!shouldAutoScrollToAppend) {\n return;\n }\n\n const animationFrameId = window.requestAnimationFrame(() => {\n const stageLayerElement = stageLayerRef.current;\n const targetElement = lastElementRef.current;\n\n if (!stageLayerElement || !targetElement) {\n return;\n }\n\n const stageLayerRect = stageLayerElement.getBoundingClientRect();\n const targetRect = targetElement.getBoundingClientRect();\n const nextScrollTop =\n stageLayerElement.scrollTop + (targetRect.top - stageLayerRect.top);\n\n // Keep newly appended content visible when the current slide grows downward.\n stageLayerElement.scrollTo({\n top: Math.max(nextScrollTop, 0),\n behavior: \"smooth\",\n });\n });\n\n return () => {\n window.cancelAnimationFrame(animationFrameId);\n };\n }, [currentElementList, currentRenderElementKeys]);\n\n useEffect(() => {\n if (!shouldScrollToBottomRef.current) {\n return;\n }\n\n shouldScrollToBottomRef.current = false;\n\n if (currentElementList.length === 0) {\n return;\n }\n\n const animationFrameId = window.requestAnimationFrame(() => {\n scrollStageToBottom();\n });\n\n return () => {\n window.cancelAnimationFrame(animationFrameId);\n };\n }, [currentElementList, scrollStageToBottom]);\n\n return (\n <section\n ref={sectionRef}\n className={cn(\n \"relative h-full w-full\",\n isMobileDevice && \"slide--mobile-device\",\n isDesktopBrowserFullscreen && \"slide--browser-fullscreen\",\n isImmersiveMobileFullscreen && \"slide--mobile-landscape\",\n isNativeMobileFullscreen && \"slide--mobile-landscape-native\",\n className\n )}\n dir={direction}\n lang={language}\n onClick={handleSurfaceClick}\n onFocusCapture={handleSurfaceFocusCapture}\n onPointerDown={handleSurfacePointerDown}\n {...props}\n >\n {shouldShowMobileFullscreenMask ? (\n <div\n aria-hidden=\"true\"\n className=\"pointer-events-none fixed left-0 top-0 z-[9999] h-[100vh] max-h-[100vh] w-[100vw]\"\n />\n ) : null}\n\n <div\n ref={viewportRef}\n className={cn(\n \"slide__viewport relative h-full min-h-0 w-full\",\n isImmersiveMobileFullscreen && \"slide__viewport--mobile-landscape\",\n isImmersiveMobileFullscreen &&\n !shouldRotateFullscreenViewport &&\n \"slide__viewport--mobile-landscape-native\"\n )}\n >\n {shouldShowFullscreenHeader ? (\n <div className=\"slide-landscape-header\">\n <button\n aria-label={\n fullscreenHeader?.backAriaLabel ??\n localeTexts.fullscreenBackAriaLabel\n }\n className=\"slide-landscape-header__back\"\n onClick={handleFullscreenHeaderBack}\n type=\"button\"\n >\n <ChevronLeft\n className=\"slide-landscape-header__icon h-6 w-6\"\n strokeWidth={2.25}\n />\n </button>\n\n {fullscreenHeader?.content ? (\n <div className=\"min-w-0 flex-1 overflow-hidden\">\n {fullscreenHeader.content}\n </div>\n ) : null}\n </div>\n ) : null}\n\n <div\n className={cn(\n \"h-full min-h-0 w-full\",\n shouldApplyFullscreenViewportPadding &&\n \"slide__viewport-content--with-header\",\n isSingleSlide ? \"slide-content--single\" : \"grid gap-4\"\n )}\n >\n {currentElementList.length > 0 ? (\n <div className=\"slide-stage\">\n <div ref={stageLayerRef} className=\"slide-stage__layer w-full\">\n {mountedStepStates.map(\n (mountedStepState, mountedStepStateIndex) => {\n const isActiveStep =\n mountedStepStateIndex === currentMountedStateIndex;\n\n return (\n <div\n key={\n mountedStepState.sourceStepIndexes[0] ??\n mountedStepStateIndex\n }\n data-active-step={isActiveStep ? \"true\" : undefined}\n aria-hidden={!isActiveStep || undefined}\n className=\"w-full h-full\"\n style={{ display: isActiveStep ? undefined : \"none\" }}\n >\n {renderSlideElementList(\n mountedStepState.elementList,\n isActiveStep\n )}\n </div>\n );\n }\n )}\n </div>\n </div>\n ) : null}\n </div>\n\n {isAudioLoadingVisible ? (\n <LoadingOverlayCard\n message={resolveBufferingTextByReason(\n resolvedBufferingText,\n audioLoadingReason\n )}\n className=\"absolute left-1/2 top-1/2 z-[3] -translate-x-1/2 -translate-y-1/2\"\n />\n ) : null}\n\n <SubtitleOverlay\n extraBottomOffset={interactionOverlaySubtitleOffset}\n hasPlayerGap={playerLayoutReserved}\n isEnabled={isSubtitleEnabled && hasCurrentAudioPlaybackStarted}\n playbackTimeStore={playbackTimeStore}\n subtitleCues={currentSubtitleCues}\n />\n\n {shouldShowInteractionOverlay ? (\n <div\n ref={interactionOverlayRef}\n data-player-keyboard-shortcuts-ignore=\"true\"\n className={cn(\n \"slide-interaction-overlay\",\n playerLayoutReserved\n ? \"slide-interaction-overlay--with-player\"\n : \"slide-interaction-overlay--standalone\",\n isInteractionOverlayDragging &&\n \"slide-interaction-overlay--dragging\"\n )}\n onClick={stopOverlayPropagation}\n onPointerDownCapture={(event) => {\n if (isInteractionActivityTarget(event.target)) {\n setHasInteractionOverlayActivity(true);\n }\n }}\n onFocusCapture={(event) => {\n if (isInteractionActivityTarget(event.target)) {\n setHasInteractionOverlayActivity(true);\n }\n }}\n onInputCapture={(event) => {\n if (isInteractionActivityTarget(event.target)) {\n setHasInteractionOverlayActivity(true);\n }\n }}\n style={interactionOverlayStyle}\n >\n <InteractionOverlayCard\n dir={direction}\n lang={language}\n content={String(activeInteractionElement?.content ?? \"\")}\n dragHandleAriaLabel={\n interactionTexts?.dragHandleAriaLabel ??\n localeTexts.interactionTexts.dragHandleAriaLabel\n }\n locale={locale}\n defaultButtonText={interactionDefaults.buttonText ?? \"\"}\n defaultInputText={interactionDefaults.inputText ?? \"\"}\n defaultSelectedValues={interactionDefaultSelectedValues}\n confirmButtonText={\n interactionTexts?.confirmButtonText ??\n localeTexts.interactionTexts.confirmButtonText\n }\n copyButtonText={\n interactionTexts?.copyButtonText ??\n localeTexts.interactionTexts.copyButtonText\n }\n copiedButtonText={\n interactionTexts?.copiedButtonText ??\n localeTexts.interactionTexts.copiedButtonText\n }\n onSend={handleInteractionSend}\n onPlaceholderAccepted={onPlaceholderAccepted}\n onDragHandlePointerCancel={endInteractionOverlayDrag}\n onDragHandlePointerDown={handleInteractionOverlayPointerDown}\n onDragHandlePointerMove={handleInteractionOverlayPointerMove}\n onDragHandlePointerUp={endInteractionOverlayDrag}\n readonly={isInteractionReadonly}\n title={\n interactionTexts?.title ??\n interactionTitle ??\n localeTexts.interactionTexts.title\n }\n />\n </div>\n ) : null}\n\n {shouldMountPlayer ? (\n <PlayerKeyboardShortcutContext.Provider\n value={keyboardShortcutContextValue}\n >\n <Player\n dir={direction === \"auto\" ? resolvedDirection : direction}\n lang={language}\n audioList={audioList}\n className={cn(\n \"absolute left-1/2 z-[2] -translate-x-1/2\",\n showSlideProgress\n ? \"bottom-9\"\n : isDesktopBrowserFullscreen\n ? \"bottom-3\"\n : \"-bottom-3\",\n playerClassName,\n !playerControlsVisible && \"pointer-events-none opacity-0\"\n )}\n currentAudioIndex={currentAudioIndex}\n defaultPlaying={isPlaybackRequested}\n enableKeyboardShortcuts={enableKeyboardShortcuts}\n isPlaybackPaused={shouldPausePlaybackForCustomAction}\n isAutoAdvanceEnabled={isAutoAdvanceEnabled}\n locale={locale}\n isInteractionOpen={isInteractionOverlayOpen}\n isSubtitleEnabled={isSubtitleEnabled}\n onAutoAdvanceToggle={setIsAutoAdvanceEnabled}\n onLoadingChange={handlePlayerLoadingChange}\n onPlaybackStarted={() => {\n setHasCurrentAudioPlaybackStarted(true);\n }}\n onPlaybackCheckpoint={({ audioKey, isComplete, timeMs }) => {\n const checkpointAudioIndex = audioList.findIndex(\n (audioItem) => audioItem.audioKey === audioKey\n );\n const checkpointAudioItem =\n checkpointAudioIndex >= 0\n ? audioList[checkpointAudioIndex]\n : undefined;\n\n if (\n !checkpointAudioItem?.audioKey ||\n !checkpointAudioItem.element\n ) {\n return;\n }\n\n onPlaybackCheckpoint?.({\n audioKey: checkpointAudioItem.audioKey,\n element: checkpointAudioItem.element,\n isComplete,\n stepIndex:\n audioSlideIndexes[checkpointAudioIndex] ?? currentIndex,\n timeMs,\n });\n }}\n onPlaybackPreferenceChange={handlePlaybackPreferenceChange}\n onPlaybackTimeChange={playbackTimeStore.setTime}\n onSubtitleToggle={() => {\n setIsSubtitleEnabled((previousEnabled) => !previousEnabled);\n }}\n nextDisabled={!canGoNext}\n onEnded={handlePlayerEnded}\n onFullscreen={handleFullscreen}\n isFullscreen={isBrowserFullscreen}\n mobileViewMode={effectiveMobileViewMode}\n settingsPortalContainer={viewportRef.current}\n onMobileViewModeChange={handleMobileViewModeSelect}\n onControlsPointerEnter={handlePlayerControlsPointerEnter}\n onControlsPointerLeave={handlePlayerControlsPointerLeave}\n onNext={handleNext}\n onPrev={handlePrev}\n onSubtitleJump={handleSubtitleJump}\n canJumpToSubtitleTarget={canJumpToSubtitleTarget}\n prevDisabled={!canGoPrev}\n showControls={playerControlsVisible}\n slideProgress={\n showSlideProgress\n ? {\n ariaLabel: localeTexts.slideProgressAriaLabel,\n currentIndex,\n generatingLabel: localeTexts.slideProgressGeneratingLabel,\n isGenerating: isSlideProgressGenerating,\n onNavigate: handleSlideProgressNavigate,\n totalSteps: generatedSlideCount,\n }\n : null\n }\n subtitleSeekRequest={subtitleSeekRequest}\n playbackRestoreRequest={\n pendingPlaybackRestore &&\n pendingPlaybackRestore.audioKey === currentAudioItem?.audioKey\n ? {\n id: pendingPlaybackRestore.id,\n timeMs: pendingPlaybackRestore.timeMs,\n }\n : null\n }\n onPlaybackRestoreComplete={(requestId) => {\n if (pendingPlaybackRestoreRef.current?.id !== requestId) {\n return;\n }\n\n pendingPlaybackRestoreRef.current = null;\n setPendingPlaybackRestore(null);\n }}\n texts={playerTexts}\n customActionContext={playerCustomActionContext}\n customActions={playerCustomActions}\n useAutoAdvanceToggle={shouldUseSilentStepAutoAdvanceToggle}\n />\n </PlayerKeyboardShortcutContext.Provider>\n ) : null}\n </div>\n </section>\n );\n};\n\nexport default Slide;\n"],"names":["DEFAULT_MARKER_AUTO_ADVANCE_DELAY_MS","DEFAULT_INTERACTION_OVERLAY_OPEN_DELAY_MS","DEFAULT_INTERACTION_OVERLAY_FALLBACK_OFFSET_PX","DEFAULT_INTERACTION_SUBTITLE_GAP_PX","DEFAULT_RESOLVED_INTERACTION_AUTO_CLOSE_DELAY_MS","DEFAULT_INTERACTION_OVERLAY_DRAG_OFFSET","INTERACTION_OVERLAY_LAYOUT_EPSILON_PX","useIsomorphicLayoutEffect","useEffect","useLayoutEffect","INTERACTION_ACTIVITY_SELECTOR","DEFAULT_BUFFERING_REASON","normalizeInteractionOverlayDragOffset","x","y","hasMeaningfulInteractionOverlayLayoutDelta","delta","areInteractionOverlayDragOffsetsEqual","first","second","resolveBufferingTextByReason","bufferingText","reason","DEFAULT_SLIDE_BUFFERING_TEXTS","mergeBufferingTextWithLocaleDefaults","localeBufferingText","shouldShowBufferingOverlay","loading","InteractionOverlayCard","memo","content","title","dragHandleAriaLabel","locale","dir","lang","defaultButtonText","defaultInputText","defaultSelectedValues","confirmButtonText","copyButtonText","copiedButtonText","onSend","onPlaceholderAccepted","onDragHandlePointerCancel","onDragHandlePointerDown","onDragHandlePointerMove","onDragHandlePointerUp","readonly","jsxs","jsx","GripHorizontal","ContentRender","areStepElementListsEqual","prevElementList","nextElementList","element","index","nextElement","isInteractionActivityTarget","target","Slide","elementList","playerEnabled","playerControlsVisibility","playerClassName","fullscreenHeader","playerCustomActions","playerCustomActionPauseOnActive","interactionTitle","interactionTexts","playerTexts","playerAutoHideDelay","markerAutoAdvanceDelay","showSlideProgress","isSlideProgressGenerating","onSlideProgressNavigate","interactionDefaultValueOptions","onPlayerVisibilityChange","onMobileViewModeChange","onStepChange","onPlaybackCheckpoint","playbackRestoreRequest","enableKeyboardShortcuts","enableIframeScaling","enableMarkdownScaling","disableLoadingOverlay","className","onPointerDown","onFocusCapture","props","direction","getMarkdownFlowDirection","language","getMarkdownFlowLanguage","localeTexts","useMemo","getSlideLocaleTexts","resolvedBufferingText","resolvedPlayerEnabled","resolvedPlayerControlsVisibility","resolveSlidePlayerVisibility","keyboardShortcutOwnerId","useId","sectionRef","useRef","resolvedDirection","useResolvedDirection","viewportRef","stageLayerRef","lastElementRef","playerHideTimerRef","isPointerInsidePlayerControlsRef","autoAdvanceTimerRef","imageOnlyStepReadyTimeoutRef","interactionAutoCloseTimerRef","interactionOverlayOpenTimerRef","interactionOverlayRef","interactionOverlayLayoutRectRef","interactionOverlayDragRef","prevRenderElementKeysRef","shouldScrollToBottomRef","pendingInteractionOverlayStepIndexRef","pendingSubtitleJumpRef","subtitleSeekRequestIdRef","playbackResetKeyRef","appendedMarkerAdvanceStateRef","shouldSkipDefaultAudioStartForSubtitleJumpRef","currentElementList","stepElementLists","slideElementList","currentIndex","audioList","audioSlideIndexes","currentAudioSequenceIndexes","currentStepHasSpeakableElement","currentInteractionElement","canGoPrev","canGoNext","goPrev","goNext","goTo","useSlide","currentStepElement","currentRenderElementKeys","generatedSlideCount","isSingleSlide","shouldMountPlayer","keyboardShortcutContextValue","activateKeyboardShortcutOwner","useCallback","activatePlayerKeyboardShortcutOwner","currentAudioSequenceKeys","audioIndex","audioKey","isPlayerVisible","setIsPlayerVisible","useState","hasPlayerInteracted","setHasPlayerInteracted","isPlaybackRequested","setIsPlaybackRequested","isAutoAdvanceEnabled","setIsAutoAdvanceEnabled","currentAudioKey","setCurrentAudioKey","pendingPlaybackRestore","setPendingPlaybackRestore","pendingPlaybackRestoreRef","lastPlaybackRestoreRequestIdRef","subtitleSeekRequest","setSubtitleSeekRequest","isAudioLoadingVisible","setIsAudioLoadingVisible","audioLoadingReason","setAudioLoadingReason","hasCompletedCurrentStepAudio","setHasCompletedCurrentStepAudio","playedAudioKeysRef","hasCurrentAudioPlaybackStarted","setHasCurrentAudioPlaybackStarted","isSubtitleEnabled","setIsSubtitleEnabled","isPlayerCustomActionActive","setIsPlayerCustomActionActive","activeInteractionElement","setActiveInteractionElement","isInteractionOverlayOpen","setIsInteractionOverlayOpen","hasInteractionOverlayActivity","setHasInteractionOverlayActivity","interactionOverlayDragOffset","setInteractionOverlayDragOffset","isInteractionOverlayDragging","setIsInteractionOverlayDragging","interactionOverlaySubtitleOffset","setInteractionOverlaySubtitleOffset","isBrowserFullscreen","setIsBrowserFullscreen","isMobileDevice","getIsMobileDevice","mobileViewMode","setMobileViewMode","DEFAULT_MOBILE_VIEW_MODE","hasManualMobileViewMode","setHasManualMobileViewMode","isViewportFullscreenPreferred","setIsViewportFullscreenPreferred","getIsFullscreenPreferredViewport","playbackTimeStore","createPlaybackTimeStore","effectiveMobileViewMode","isImmersiveMobileFullscreen","isNativeMobileFullscreen","shouldRotateFullscreenViewport","resolveMobileViewModeState","previousEffectiveMobileViewModeRef","playerControlsVisible","playerLayoutReserved","resolveSlidePlayerLayoutState","shouldShowFullscreenHeader","shouldApplyFullscreenViewportPadding","shouldShowMobileFullscreenMask","isDesktopBrowserFullscreen","handleMobileViewModeSelect","nextViewMode","handleMobileViewModeReset","handleFullscreenHeaderBack","clearInteractionAutoCloseTimer","clearInteractionOverlayOpenTimer","closeInteractionOverlayForCustomAction","setPlayerCustomActionActive","active","togglePlayerCustomActionActive","previousActive","resetInteractionOverlayDragState","previousOffset","mountedStepStates","currentMountedStateIndex","nextMountedStepStates","mountedStateIndexByStep","stepElementList","stepIndex","existingMountedStateIndex","mountedStepState","currentStepKey","currentAudioIndex","audioItem","currentAudioItem","targetAudioIndex","targetStepIndex","currentSubtitleCues","currentAudioSequenceStartKey","playerCustomActionContext","resolvePlayerCustomActionElement","playerCustomActionCount","getPlayerCustomActionCount","hasPlayerCustomActions","isPlayerCustomActionEffectivelyActive","interactionOverlayStyle","hasAvailableStepAudio","currentInteractionResetKey","currentPlaybackResetKey","currentPlaybackStartedResetKey","hasCurrentStepAudioUrl","shouldPausePlaybackForCustomAction","shouldUseSilentStepAutoAdvanceToggle","shouldUseAutoAdvanceToggle","silentStepAutoAdvanceBehavior","resolveSilentStepAutoAdvanceBehavior","silentStepAutoAdvanceDelay","isImageOnlySilentStep","imageOnlyStepVisualReadyKey","readyImageOnlyStepKey","setReadyImageOnlyStepKey","isImageOnlyStepVisualReady","clearPlayerHideTimer","clearAutoAdvanceTimer","clearImageOnlyStepReadyTimeout","resetAudioSequence","options","requestSubtitleCueSeek","startCurrentAudioSequence","nextAudioKey","resolvePendingStepAudioKey","continueAfterInteraction","scheduleInteractionOverlayOpen","interactionElement","openOverlay","isPlayerControlsHovered","revealPlayerControls","enableAutoHide","hasResolvedCurrentInteraction","hasResolvedInteractionElement","shouldBlockPlaybackForInteraction","handlePlaybackPreferenceChange","playing","syncPlaybackPreferenceBeforeNavigation","context","cancelled","rafId","cleanupListeners","detachListeners","finishVisualReady","evaluateVisualReady","activeStepContainer","iframeElements","areImageOnlyStepIframeVisualsReady","cleanupCallbacks","queueRecheck","registerEvent","eventName","listener","iframeElement","iframeDocument","image","cleanup","DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS","syncViewportFullscreenPreference","handleOrientationChange","unsubscribeMobileDeviceChange","subscribeMobileDeviceChange","previousState","shouldAdvanceIntoAppendedMarker","shouldAutoAdvanceIntoAppendedMarker","handleSandboxInteraction","event","isSandboxInteractionMessage","useWakePlayerFromIframe","hasPlaybackContextChanged","shouldInitializeAudioSequence","getPlaybackSequenceTransition","shouldOpenInteractionOverlayAfterAudio","shouldPresentOverlay","shouldPresentInteractionOverlay","pendingSubtitleJump","shouldPreservePendingSubtitleJump","canReachSubtitleJumpTarget","hasUnplayedStepAudio","shouldSkipDefaultAudioStart","shouldStartDefaultAudioSequence","interactionDefaults","interactionDefaultSelectedValues","hasResolvedInteractionInput","resolvedInteractionReadonly","shouldAutoContinueInteraction","resolveSlideInteractionState","isInteractionReadonly","shouldShowInteractionOverlay","shouldRenderInteractionOverlay","handleInteractionSend","resolvedUserInput","prevElement","syncFullscreenState","interactionOverlayElement","updateSubtitleOffset","overlayHeight","resizeObserver","renderSlideElement","Fragment","IframeSandbox","renderSlideElementList","isActiveStep","visibleElementCount","markdownScalingMode","resolveMarkdownScalingMode","lastVisibleElementIndex","lastVisibleIndex","MarkdownSlideScaling","isPreRenderedHtml","cn","handleFullscreen","scrollStageToBottom","stageLayerElement","canJumpToSubtitleTarget","handleSubtitleJump","targetAudioKey","targetSlideIndex","shouldWakePlayerControlsAfterNavigation","handlePrev","handleNext","handleSlideProgressNavigate","targetIndex","handlePlayerLoadingChange","handlePlayerEnded","endedAudioKey","activeSequencePosition","audioSequenceKey","nextSequencePosition","nextStepIndex","nextStepElement","handlePlayerControlsPointerEnter","handlePlayerControlsPointerLeave","stopOverlayPropagation","getInteractionOverlayDragBounds","overlayElement","startOffset","viewportElement","overlayRect","viewportRect","previousRect","currentRect","deltaX","deltaY","nextOffset","bounds","clampedOffset","clampInteractionOverlayDragOffset","handleInteractionOverlayPointerDown","handleInteractionOverlayPointerMove","dragState","endInteractionOverlayDrag","handleSurfacePointerDown","handleSurfaceFocusCapture","handleSurfaceClick","prevKeys","shouldAutoScrollToAppend","key","animationFrameId","targetElement","stageLayerRect","targetRect","nextScrollTop","ChevronLeft","mountedStepStateIndex","LoadingOverlayCard","SubtitleOverlay","PlayerKeyboardShortcutContext","Player","isComplete","timeMs","checkpointAudioIndex","checkpointAudioItem","previousEnabled","requestId"],"mappings":"qxDA0GMA,GAAuC,IACvCC,GAA4C,IAC5CC,GAAiD,IACjDC,GAAsC,GACtCC,GAAmD,IACnDC,GAAwE,CAC5E,EAAG,EACH,EAAG,CACL,EACMC,GAAwC,GAExCC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