jodit-pro 4.20.3 → 4.20.5

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 (352) hide show
  1. package/es2015/jodit.css +2 -2
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +8 -8
  4. package/es2015/jodit.js +90 -24
  5. package/es2015/jodit.min.css +1 -1
  6. package/es2015/jodit.min.js +7 -7
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  11. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  12. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  13. package/es2015/plugins/backup/backup.css +1 -1
  14. package/es2015/plugins/backup/backup.js +1 -1
  15. package/es2015/plugins/backup/backup.min.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.css +1 -1
  17. package/es2015/plugins/button-generator/button-generator.js +1 -1
  18. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  19. package/es2015/plugins/change-case/change-case.js +1 -1
  20. package/es2015/plugins/change-case/change-case.min.js +1 -1
  21. package/es2015/plugins/chart/chart.css +1 -1
  22. package/es2015/plugins/chart/chart.js +1 -1
  23. package/es2015/plugins/chart/chart.min.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.css +1 -1
  25. package/es2015/plugins/color-picker/color-picker.js +1 -1
  26. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  27. package/es2015/plugins/emoji/emoji.css +1 -1
  28. package/es2015/plugins/emoji/emoji.js +1 -1
  29. package/es2015/plugins/emoji/emoji.min.js +1 -1
  30. package/es2015/plugins/export-docs/export-docs.js +1 -1
  31. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  32. package/es2015/plugins/finder/finder.css +1 -1
  33. package/es2015/plugins/finder/finder.js +1 -1
  34. package/es2015/plugins/finder/finder.min.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.css +1 -1
  36. package/es2015/plugins/google-maps/google-maps.js +1 -1
  37. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  38. package/es2015/plugins/google-search/google-search.js +1 -1
  39. package/es2015/plugins/google-search/google-search.min.js +1 -1
  40. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  41. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  43. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  44. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  45. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  46. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  47. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  48. package/es2015/plugins/keyboard/keyboard.css +1 -1
  49. package/es2015/plugins/keyboard/keyboard.js +1 -1
  50. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  51. package/es2015/plugins/math/math.css +1 -1
  52. package/es2015/plugins/math/math.js +1 -1
  53. package/es2015/plugins/math/math.min.js +1 -1
  54. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  55. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  56. package/es2015/plugins/page-break/page-break.js +1 -1
  57. package/es2015/plugins/page-break/page-break.min.js +1 -1
  58. package/es2015/plugins/paste-code/paste-code.css +1 -1
  59. package/es2015/plugins/paste-code/paste-code.js +1 -1
  60. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  61. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  62. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  63. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  64. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  65. package/es2015/plugins/style/style.css +1 -1
  66. package/es2015/plugins/style/style.js +1 -1
  67. package/es2015/plugins/style/style.min.js +1 -1
  68. package/es2015/plugins/templates/templates.css +1 -1
  69. package/es2015/plugins/templates/templates.js +1 -1
  70. package/es2015/plugins/templates/templates.min.js +1 -1
  71. package/es2015/plugins/todo-list/todo-list.css +1 -1
  72. package/es2015/plugins/todo-list/todo-list.js +1 -1
  73. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  74. package/es2015/plugins/translate/translate.css +1 -1
  75. package/es2015/plugins/translate/translate.js +1 -4
  76. package/es2015/plugins/translate/translate.min.js +2 -2
  77. package/es2015/plugins/tune-block/tune-block.css +1 -1
  78. package/es2015/plugins/tune-block/tune-block.js +1 -1
  79. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  80. package/es2018/jodit.fat.min.css +1 -1
  81. package/es2018/jodit.fat.min.js +8 -8
  82. package/es2018/jodit.min.css +1 -1
  83. package/es2018/jodit.min.js +7 -7
  84. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  85. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  86. package/es2018/plugins/backup/backup.min.js +1 -1
  87. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  88. package/es2018/plugins/change-case/change-case.min.js +1 -1
  89. package/es2018/plugins/chart/chart.min.js +1 -1
  90. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  91. package/es2018/plugins/emoji/emoji.min.js +1 -1
  92. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  93. package/es2018/plugins/finder/finder.min.js +1 -1
  94. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  95. package/es2018/plugins/google-search/google-search.min.js +1 -1
  96. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  97. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  98. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  99. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  100. package/es2018/plugins/math/math.min.js +1 -1
  101. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  102. package/es2018/plugins/page-break/page-break.min.js +1 -1
  103. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  104. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  105. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  106. package/es2018/plugins/style/style.min.js +1 -1
  107. package/es2018/plugins/templates/templates.min.js +1 -1
  108. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  109. package/es2018/plugins/translate/translate.min.js +2 -2
  110. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  111. package/es2021/jodit.css +2 -2
  112. package/es2021/jodit.fat.min.css +1 -1
  113. package/es2021/jodit.fat.min.js +8 -8
  114. package/es2021/jodit.js +90 -24
  115. package/es2021/jodit.min.css +1 -1
  116. package/es2021/jodit.min.js +7 -7
  117. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  118. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  119. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  120. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  121. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  122. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  123. package/es2021/plugins/backup/backup.css +1 -1
  124. package/es2021/plugins/backup/backup.js +1 -1
  125. package/es2021/plugins/backup/backup.min.js +1 -1
  126. package/es2021/plugins/button-generator/button-generator.css +1 -1
  127. package/es2021/plugins/button-generator/button-generator.js +1 -1
  128. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  129. package/es2021/plugins/change-case/change-case.js +1 -1
  130. package/es2021/plugins/change-case/change-case.min.js +1 -1
  131. package/es2021/plugins/chart/chart.css +1 -1
  132. package/es2021/plugins/chart/chart.js +1 -1
  133. package/es2021/plugins/chart/chart.min.js +1 -1
  134. package/es2021/plugins/color-picker/color-picker.css +1 -1
  135. package/es2021/plugins/color-picker/color-picker.js +1 -1
  136. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  137. package/es2021/plugins/emoji/emoji.css +1 -1
  138. package/es2021/plugins/emoji/emoji.js +1 -1
  139. package/es2021/plugins/emoji/emoji.min.js +1 -1
  140. package/es2021/plugins/export-docs/export-docs.js +1 -1
  141. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  142. package/es2021/plugins/finder/finder.css +1 -1
  143. package/es2021/plugins/finder/finder.js +1 -1
  144. package/es2021/plugins/finder/finder.min.js +1 -1
  145. package/es2021/plugins/google-maps/google-maps.css +1 -1
  146. package/es2021/plugins/google-maps/google-maps.js +1 -1
  147. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  148. package/es2021/plugins/google-search/google-search.js +1 -1
  149. package/es2021/plugins/google-search/google-search.min.js +1 -1
  150. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  151. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  152. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  153. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  154. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  155. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  156. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  157. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  158. package/es2021/plugins/keyboard/keyboard.css +1 -1
  159. package/es2021/plugins/keyboard/keyboard.js +1 -1
  160. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  161. package/es2021/plugins/math/math.css +1 -1
  162. package/es2021/plugins/math/math.js +1 -1
  163. package/es2021/plugins/math/math.min.js +1 -1
  164. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  165. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  166. package/es2021/plugins/page-break/page-break.js +1 -1
  167. package/es2021/plugins/page-break/page-break.min.js +1 -1
  168. package/es2021/plugins/paste-code/paste-code.css +1 -1
  169. package/es2021/plugins/paste-code/paste-code.js +1 -1
  170. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  171. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  172. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  173. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  174. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  175. package/es2021/plugins/style/style.css +1 -1
  176. package/es2021/plugins/style/style.js +1 -1
  177. package/es2021/plugins/style/style.min.js +1 -1
  178. package/es2021/plugins/templates/templates.css +1 -1
  179. package/es2021/plugins/templates/templates.js +1 -1
  180. package/es2021/plugins/templates/templates.min.js +1 -1
  181. package/es2021/plugins/todo-list/todo-list.css +1 -1
  182. package/es2021/plugins/todo-list/todo-list.js +1 -1
  183. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  184. package/es2021/plugins/translate/translate.css +1 -1
  185. package/es2021/plugins/translate/translate.js +1 -4
  186. package/es2021/plugins/translate/translate.min.js +2 -2
  187. package/es2021/plugins/tune-block/tune-block.css +1 -1
  188. package/es2021/plugins/tune-block/tune-block.js +1 -1
  189. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  190. package/es2021.en/jodit.css +2 -2
  191. package/es2021.en/jodit.fat.min.css +1 -1
  192. package/es2021.en/jodit.fat.min.js +8 -8
  193. package/es2021.en/jodit.js +90 -24
  194. package/es2021.en/jodit.min.css +1 -1
  195. package/es2021.en/jodit.min.js +7 -7
  196. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  197. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  198. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  199. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  200. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  201. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  202. package/es2021.en/plugins/backup/backup.css +1 -1
  203. package/es2021.en/plugins/backup/backup.js +1 -1
  204. package/es2021.en/plugins/backup/backup.min.js +1 -1
  205. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  206. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  207. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  208. package/es2021.en/plugins/change-case/change-case.js +1 -1
  209. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  210. package/es2021.en/plugins/chart/chart.css +1 -1
  211. package/es2021.en/plugins/chart/chart.js +1 -1
  212. package/es2021.en/plugins/chart/chart.min.js +1 -1
  213. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  214. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  215. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  216. package/es2021.en/plugins/emoji/emoji.css +1 -1
  217. package/es2021.en/plugins/emoji/emoji.js +1 -1
  218. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  219. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  220. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  221. package/es2021.en/plugins/finder/finder.css +1 -1
  222. package/es2021.en/plugins/finder/finder.js +1 -1
  223. package/es2021.en/plugins/finder/finder.min.js +1 -1
  224. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  225. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  226. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  227. package/es2021.en/plugins/google-search/google-search.js +1 -1
  228. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  229. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  230. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  231. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  232. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  233. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  234. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  235. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  236. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  237. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  238. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  239. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  240. package/es2021.en/plugins/math/math.css +1 -1
  241. package/es2021.en/plugins/math/math.js +1 -1
  242. package/es2021.en/plugins/math/math.min.js +1 -1
  243. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  244. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  245. package/es2021.en/plugins/page-break/page-break.js +1 -1
  246. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  247. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  248. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  249. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  250. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  251. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  252. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  253. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  254. package/es2021.en/plugins/style/style.css +1 -1
  255. package/es2021.en/plugins/style/style.js +1 -1
  256. package/es2021.en/plugins/style/style.min.js +1 -1
  257. package/es2021.en/plugins/templates/templates.css +1 -1
  258. package/es2021.en/plugins/templates/templates.js +1 -1
  259. package/es2021.en/plugins/templates/templates.min.js +1 -1
  260. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  261. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  262. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  263. package/es2021.en/plugins/translate/translate.css +1 -1
  264. package/es2021.en/plugins/translate/translate.js +1 -4
  265. package/es2021.en/plugins/translate/translate.min.js +2 -2
  266. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  267. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  268. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  269. package/es5/jodit.css +3 -3
  270. package/es5/jodit.fat.min.css +1 -1
  271. package/es5/jodit.fat.min.js +2 -2
  272. package/es5/jodit.js +98 -24
  273. package/es5/jodit.min.css +3 -3
  274. package/es5/jodit.min.js +2 -2
  275. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  276. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  277. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  278. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  279. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  280. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  281. package/es5/plugins/backup/backup.css +1 -1
  282. package/es5/plugins/backup/backup.js +1 -1
  283. package/es5/plugins/backup/backup.min.js +1 -1
  284. package/es5/plugins/button-generator/button-generator.css +1 -1
  285. package/es5/plugins/button-generator/button-generator.js +1 -1
  286. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  287. package/es5/plugins/change-case/change-case.js +1 -1
  288. package/es5/plugins/change-case/change-case.min.js +1 -1
  289. package/es5/plugins/chart/chart.css +1 -1
  290. package/es5/plugins/chart/chart.js +1 -1
  291. package/es5/plugins/chart/chart.min.js +1 -1
  292. package/es5/plugins/color-picker/color-picker.css +1 -1
  293. package/es5/plugins/color-picker/color-picker.js +1 -1
  294. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  295. package/es5/plugins/emoji/emoji.css +1 -1
  296. package/es5/plugins/emoji/emoji.js +1 -1
  297. package/es5/plugins/emoji/emoji.min.js +1 -1
  298. package/es5/plugins/export-docs/export-docs.js +1 -1
  299. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  300. package/es5/plugins/finder/finder.css +1 -1
  301. package/es5/plugins/finder/finder.js +1 -1
  302. package/es5/plugins/finder/finder.min.js +1 -1
  303. package/es5/plugins/google-maps/google-maps.css +1 -1
  304. package/es5/plugins/google-maps/google-maps.js +1 -1
  305. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  306. package/es5/plugins/google-search/google-search.js +1 -1
  307. package/es5/plugins/google-search/google-search.min.js +1 -1
  308. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  309. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  310. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  311. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  312. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  313. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  314. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  315. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  316. package/es5/plugins/keyboard/keyboard.css +1 -1
  317. package/es5/plugins/keyboard/keyboard.js +1 -1
  318. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  319. package/es5/plugins/math/math.css +1 -1
  320. package/es5/plugins/math/math.js +1 -1
  321. package/es5/plugins/math/math.min.js +1 -1
  322. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  323. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  324. package/es5/plugins/page-break/page-break.js +1 -1
  325. package/es5/plugins/page-break/page-break.min.js +1 -1
  326. package/es5/plugins/paste-code/paste-code.css +1 -1
  327. package/es5/plugins/paste-code/paste-code.js +1 -1
  328. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  329. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  330. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  331. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  332. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  333. package/es5/plugins/style/style.css +1 -1
  334. package/es5/plugins/style/style.js +1 -1
  335. package/es5/plugins/style/style.min.js +1 -1
  336. package/es5/plugins/templates/templates.css +1 -1
  337. package/es5/plugins/templates/templates.js +1 -1
  338. package/es5/plugins/templates/templates.min.js +1 -1
  339. package/es5/plugins/todo-list/todo-list.css +1 -1
  340. package/es5/plugins/todo-list/todo-list.js +1 -1
  341. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  342. package/es5/plugins/translate/translate.css +1 -1
  343. package/es5/plugins/translate/translate.js +1 -4
  344. package/es5/plugins/translate/translate.min.js +2 -2
  345. package/es5/plugins/tune-block/tune-block.css +1 -1
  346. package/es5/plugins/tune-block/tune-block.js +1 -1
  347. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  348. package/es5/polyfills.fat.min.js +1 -1
  349. package/es5/polyfills.js +1 -1
  350. package/es5/polyfills.min.js +1 -1
  351. package/esm/plugins/translate/config.js +1 -1
  352. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.20.3
4
+ * Version: v4.20.5
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
8
  !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(self,function(){return function(){"use strict";var e,t,i,n,o,r,s={6441:function(e,t,i){i.d(t,{Config:function(){return r}});var n=i(82758);let o={};class r{static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}constructor(){this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=n.globalDocument,this.ownerWindow=n.globalWindow,this.shadowRoot=null,this.nonce="",this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.asyncStorage={},this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=n.INSERT_AS_HTML,this.enter=n.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:n.PARAGRAPH,this.defaultMode=n.MODE_WYSIWYG,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.imageDefaultAlign="normal",this.imageAlignClasses=null,this.alignClasses={},this.mediaDefaultAlign="normal",this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},`
9
- `,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,i){i.d(t,{Async:function(){return f}});var n=i(82758),o=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),u=i(70799),d=i(86068),h=i(38837),p=i(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let r=(0,o.setTimeout)(e,t,...i),s=n.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,u.isString)(e))return this.clearLabel(e);(0,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,a=!1,u=[],d=(...t)=>{if(!a){n=0;let i=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!n&&i&&d(...r),(0,o.clearTimeout)(n),n=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,a;return(...i)=>{(o=!0,a=i,t)?n||(r=()=>{o?(e(...a),o=!1,n=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,p.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,o.clearTimeout)(e)),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,n,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(i=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?i:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(o=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){i.d(t,{Async:function(){return n.Async}});var n=i(26992)},4012:function(e,t,i){i.d(t,{Component:function(){return l}});var n=i(8884),o=i(78213),r=i(580),s=i(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let n=[this.componentName];return e&&n.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(n.push("_",t),n.push("_",(0,s.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=a.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,i){i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(4012),o=i(78213),r=i(80480)},78213:function(e,t,i){i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,i){i.d(t,{ViewComponent:function(){return o}});var n=i(4012);class o extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,i){i.r(t),i.d(t,{IS_TEST:function(){return n}});let n=!1,o="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),u="Meta",d="Backspace",h="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",v="ArrowDown",b="Delete",y=[u,d,b,m,v,g,f,h,p,"F3","Tab"],_="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),w=void 0!==o&&/Mac|iPod|iPhone|iPad/.test(o.navigator.platform),k=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:S,isMin:C}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return k(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?k(t[t.length-1].src):k(o.location.href)})(),E=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.20.3","BASE_PATH",0,S,"BASE_PATH_IS_MIN",0,C,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,y,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ERROR_CODE_CONFLICT",0,409,"ES",0,"es2021","FAT_MODE",0,!1,"HOMEPAGE",0,"https://xdsoft.net/jodit/pro/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!0,"IS_IE",0,_,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,w,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:w?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,d,"KEY_DELETE",0,b,"KEY_DOWN",0,v,"KEY_END",0,"End","KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_HOME",0,"Home","KEY_LEFT",0,f,"KEY_META",0,u,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0," ","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,E,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>n=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,_?"html":"text/html","TEXT_PLAIN",0,_?"text":"text/plain","TEXT_RTF",0,_?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,o,"lang",0,{}])},20218:function(e,t,i){i.d(t,{Create:function(){return a}});var n=i(82758),o=i(2748),r=i(21537),s=i(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,r.isPlainObject)(t)?(0,r.attr)(n,t):i=t),i&&(0,r.asArray)(i).forEach(e=>o.Dom.append(n,(0,r.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});o.Dom.append(this.doc.body,t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(o.Dom.safeRemove(n),t){let e=(0,r.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&o.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,i){i.d(t,{Create:function(){return n.Create}});var n=i(20218)},45219:function(e,t,i){i.d(t,{autobind:function(){return o}});var n=i(23282);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var n=i(78213),o=i(2748),r=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){var t;let i,n=null!=(i=this.od)?i:document,r=c.get(n);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(n,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){i.d(t,{component:function(){return l},getComponentClass:function(){return c}});var n=i(82758),o=i(80568);let r=new Map,s=new WeakSet,a=new WeakSet;function l(e){class t extends e{constructor(...e){super(...e),this.constructor===t?(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready")):n.IS_PROD||s.has(this.constructor)||a.has(this.constructor)||a.add(this.constructor)}}s.add(e),s.add(t);let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function c(e){return r.get(e)}},81577:function(e,t,i){i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(91907),o=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){i.d(t,{derive:function(){return o}});var n=i(23282);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,i){i.d(t,{hook:function(){return r}});var n=i(23282),o=i(89890);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){i.d(t,{idle:function(){return s}});var n=i(91907),o=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},65478:function(e,t,i){i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var n=i(45219),o=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),u=i(31589),d=i(53213),h=i(13525),p=i(37133)},31589:function(e,t,i){i.d(t,["nonenumerable",0,(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}])},53213:function(e,t,i){i.d(t,{persistent:function(){return r}});var n=i(78213),o=i(39955);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},13525:function(e,t,i){i.d(t,{wait:function(){return s}});var n=i(78213),o=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){i.d(t,{watch:function(){return d}});var n=i(78213),o=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),u=i(37790);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,f=null==t?void 0:t.context,m=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=f;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,c),r||n.events.on(o,c),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on("change."+d.join("."),c);let p=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on("change."+d.join("."),c),c(l,i,h))},get:()=>p&&p.get?p.get.call(t):h})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){i.d(t,{Dom:function(){return y}});var n=i(82758),o=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),u=i(86068),d=i(76241),h=i(49055),p=i(38837),f=i(29960),m=i(41180),g=i(86583),v=i(89890),b=i(37790);class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o,r=e;i.s.save();do o=!1,(n=r.nextSibling)&&!y.isBlock(n)&&!y.isTag(n,"br")&&(o=!0,r=n);while(o)return y.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,n){let o=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o,r=e,s=e;i.s.save();do o=!1,(n=r.previousSibling)&&!y.isBlock(n)&&(o=!0,r=n);while(o)do o=!1,(n=s.nextSibling)&&!y.isBlock(n)&&(o=!0,s=n);while(o)return y.__wrapElements(t,i,r,s)}static wrap(e,t,i){let n=(0,c.isString)(t)?i.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,v.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)if((n=n.parentNode)===t)return;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,p.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,p.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&y.isElement(e)&&y.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){let i=y.closest(e,e=>y.isElement(e)&&e.hasAttribute("contenteditable"),t);return y.isNode(e)&&(null==i?void 0:i.getAttribute("contenteditable"))!=="false"}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,h.trim)(e.nodeValue).length;return y.isText(e)?o(e):!(y.isElement(e)&&i(e))&&y.each(e,e=>{if(y.isText(e)&&!o(e)||y.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,n.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,i){let n=i?"lastChild":"firstChild",o=i?"previousSibling":"nextSibling",r=null==e?void 0:e[n];if(!r)return null;do{if(t(r))return r;let i=r[n]||r[o];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e)i=null==r?void 0:r[o]}r=i}while(r)return null}static prev(e,t,i,n=!0){return y.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return y.find(e,t,i,!0,n)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let n=e=>y.isElement(e)&&e.classList.contains(t),o=e.parentNode;return i?y.prev(e,n,o):y.next(e,n,o)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=i?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=y.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!y.isEmptyTextNode(e)){let n=y.sibling(e,t);for(;n&&!i(n);)n=y.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,h.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,b.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,h.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i)return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return y.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,n.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,g.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,g.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,f.attr)(e,n.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return(0,d.unwrapMarkedTags)(e,null,n.TEMP_ATTR)}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(n.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(2748),o=i(70071)},70071:function(e,t,i){i.d(t,{LazyWalker:function(){return s}});var n=i(45219),o=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){i.d(t,{EventEmitter:function(){return u}});var n=i(82758),o=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class u{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","view","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,o){let c,u,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,p=i):(c=e,u=t,h=i,p=o),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,u,h,p)}),this;let f=c,m=this.__getStore(f),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(f)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{var i,o;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==p?void 0:p.top),d(f)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(o=null==p?void 0:p.capture)&&o;v.options=t,f.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(f,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=i):(o=e,r=t,s=i,l=n);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,i){let n,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,o=e,l=t):(n=e,o=t,l=i),(0,r.isArray)(n))return n.forEach(e=>{this.off(e,o,l)}),this;let u=n,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let p=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let n=h.indexOf(e,t,l);!1!==n&&(p(i[n]),i.splice(n,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,n=(0,a.isString)(e)?e:t;if("string"!=typeof n)throw(0,l.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...i]:i;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(r))this.__triggerNativeEvent(r,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){i.d(t,{Eventify:function(){return n}});class n{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let n;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{n=e(...t)})),n}constructor(){this.__map=new Map}}},57012:function(e,t,i){let n=new(i(98220)).EventEmitter;i.d(t,["eventEmitter",0,n])},3827:function(e,t,i){i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(98220),o=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){i.d(t,{observable:function(){return c}});var n=i(68345),o=i(59292),r=i(72430),s=i(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,o)=>((0,n.isArray)(t)?t.map(e=>c(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),u=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){u(["beforeChange","beforeChange."+l.join(".")],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let o=[];u(["change",...l.reduce((e,t)=>(o.push(t),e.push("change."+o.join(".")),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,i){i.d(t,{EventHandlersStore:function(){return s}});var n=i(4510),o=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,o.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,n.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}i.d(t,["defaultNameSpace",0,r])},580:function(e,t,i){i.d(t,{getContainer:function(){return w},getPopupViewRoot:function(){return k},uniqueUid:function(){return b}});var n=i(19306),o=i(72430),r=i(70799),s=i(39955),a=i(12475),l=i(29960),c=i(41180),u=i(80568),d=i(69175),h=i(41876),p=i(57012),f=i(82758),m=i(22732);let g=1,v=new Set;function b(){function e(){return Math.round(g+=10*(Math.random()+1)).toString(16)}let t=e();for(;v.has(t);)t=e();return v.add(t),t}let y=new h.PluginSystem({getContainer:w}),_=new WeakMap;function w(e,t,i="div",o=!1){let c,d=(0,r.isString)(t)?t:t?(0,u.getClassName)(t.prototype):"jodit-utils",h=_.get(e)||{},p=d+i,f=(0,s.isViewObject)(e)?e:e.j;if(!h[p]){let t=f.c;if(c=k(f.o,f.container,e.od.body),o&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;c=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let r=t.element(i,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===i||"script"===i)&&(0,l.attr)(r,"nonce",f.o.nonce),r.classList.add("jodit_theme_"+(f.o.theme||"default")),m.Dom.append(c,r),h[p]=r,e.hookStatus("beforeDestruct",()=>{f.events.off(r),m.Dom.safeRemove(r),delete h[p],Object.keys(h).length&&_.delete(e)}),_.set(e,h),f.events.fire("getContainer",r)}return h[p].classList.remove("jodit_theme_default","jodit_theme_dark"),h[p].classList.add("jodit_theme_"+(f.o.theme||"default")),h[p]}function k(e,t,i){var n,o,r;return null!=(r=null!=(o=null!=(n=e.popupRoot)?n:e.shadowRoot)?o:m.Dom.closest(t,e=>m.Dom.isHTMLElement(e)&&(m.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,c.css)(e,"position"))),i))?r:i}let S=p.eventEmitter;i.d(t,["eventEmitter",0,S,"extendLang",0,e=>{Object.keys(e).forEach(t=>{let i,n=(i=e[t],(0,o.isPlainObject)(i)&&(0,o.isPlainObject)(i.default)?i.default:i);!(0,d.isUnsafeProtoKey)(t)&&(0,o.isPlainObject)(n)&&(Object.prototype.hasOwnProperty.call(f.lang,t)&&(0,o.isPlainObject)(f.lang[t])||(f.lang[t]={}),Object.keys(n).forEach(e=>{(0,d.isUnsafeProtoKey)(e)||(f.lang[t][e]=n[e])}))})},"instances",0,{},"modules",0,{},"pluginSystem",0,y])},29999:function(e,t,i){var n=i(68345);i.d(t,["asArray",0,e=>(0,n.isArray)(e)?e:[e]])},76855:function(e,t,i){i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(29999),o=i(46559),r=i(4510)},46559:function(e,t,i){i.d(t,{splitArray:function(){return n}});function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,i){var n=i(70722),o=i(58844);i.d(t,["toArray",0,function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,i){i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(13252)},13252:function(e,t,i){i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(82758);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},54765:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(82758);function o(){let e;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return _.isPromise},isSet:function(){return w.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return S.isURL},isValidName:function(){return C.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return D.isVoid},isWindow:function(){return I.isWindow}});var n=i(54765),o=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),u=i(29673),d=i(60132),h=i(72913),p=i(19306),f=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),_=i(14773),w=i(42320),k=i(70799),S=i(26049),C=i(37508),E=i(39955),D=i(86068),I=i(52742)},12045:function(e,t,i){i.d(t,{isAbortError:function(){return n}});function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,i){i.d(t,{isArray:function(){return n}});function n(e){return Array.isArray(e)}},87612:function(e,t,i){i.d(t,{isBoolean:function(){return n}});function n(e){return"boolean"==typeof e}},59292:function(e,t,i){i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(67462);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){i.d(t,{isFunction:function(){return n}});function n(e){return"function"==typeof e}},29673:function(e,t,i){i.d(t,{isHtmlFromWord:function(){return l}});let n=/\s/,o=/\d/,r=/\w/;function s(e,t){let i=e.indexOf(t);for(;-1!==i;){let r=i+t.length;if(n.test(e.charAt(r))&&o.test(e.charAt(r+1)))return!0;i=e.indexOf(t,r)}return!1}function a(e,t){let i="style="+t,n=e.indexOf(i);for(;-1!==n;){let o=n+i.length,r=e.indexOf(t,o);if(-1===r&&(r=e.length),e.slice(o,r).includes("mso-"))return!0;n=e.indexOf(i,r)}return!1}function l(e){if(e.includes("urn:schemas-microsoft-com:office:word")||e.includes("urn:schemas-microsoft-com:office:excel"))return!0;let t=e.indexOf("<");for(;-1!==t;){if(!r.test(e.charAt(t+1))){t=e.indexOf("<",t+1);continue}let i=e.indexOf(">",t);-1===i&&(i=e.length);let o=e.slice(t,i);if("<meta"===o.slice(0,5).toLowerCase()&&function(e){if(s(e,"Microsoft Word")||s(e,"Microsoft Excel"))return!0;let t=e.toLowerCase(),i=t.indexOf("progid");return -1!==i&&(-1!==t.indexOf("word.",i)||-1!==t.indexOf("excel.",i))||t.includes("libreoffice")||t.includes("openoffice")}(o)||function(e){let t=e.indexOf("class=");for(;-1!==t;){if(t>0&&n.test(e.charAt(t-1))){let i=t+6,n=e.charAt(i);if(('"'===n||"'"===n)&&(i+=1),e.startsWith("Mso",i))return!0}t=e.indexOf("class=",t+6)}return!1}(o))return!0;t=e.indexOf("<",i)}return a(e,"'")||a(e,'"')&&e.includes("<font")}},58487:function(e,t,i){var n=i(70799);let o=/[A-Za-z]/,r=/[A-Za-z0-9]/,s=/\w/;function a(e,t){if(!o.test(e.charAt(t)))return"";let i=t+1;for(;r.test(e.charAt(i));)i+=1;return e.slice(t,i)}i.d(t,["isHTML",0,e=>(0,n.isString)(e)&&function(e){let t=new Map,i=e.indexOf("</");for(;-1!==i;){let n=a(e,i+2);""!==n&&">"===e.charAt(i+2+n.length)&&t.set(n,i),i=e.indexOf("</",i+2)}if(0===t.size)return!1;let n=-1;for(i=e.indexOf("<");-1!==i;){let o=a(e,i+1),r=i+1+o.length;if(""!==o&&!s.test(e.charAt(r))){if(n<r&&(n=e.indexOf(">",r)),-1===n)return!1;let i=t.get(o);if(void 0!==i&&i>n)return!0}i=e.indexOf("<",i+1)}return!1}(e)])},60132:function(e,t,i){i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(2748),o=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},72913:function(e,t,i){i.d(t,{isInt:function(){return r}});var n=i(29807),o=i(70799);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){i.d(t,{isJoditObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){var n=i(70799);i.d(t,["isLicense",0,e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)])},78116:function(e,t,i){i.d(t,{isMarker:function(){return o}});var n=i(2748);function o(e){return n.Dom.isMarker(e)}},70722:function(e,t,i){i.d(t,{isNativeFunction:function(){return n}});function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}},84767:function(e,t,i){i.d(t,{isNumber:function(){return n}});function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,i){i.d(t,{isNumeric:function(){return o}});var n=i(70799);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,i){i.d(t,{isPlainObject:function(){return o}});var n=i(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){i.d(t,{isPromise:function(){return n}});function n(e){return e&&"function"==typeof e.then}},42320:function(e,t,i){i.d(t,{isSet:function(){return o}});var n=i(23282);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},70799:function(e,t,i){i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(68345);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},26049:function(e,t,i){i.d(t,{isURL:function(){return o}});var n=i(82758);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){i.d(t,{isValidName:function(){return n}});function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,i){i.d(t,{isViewObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){i.d(t,{isVoid:function(){return n}});function n(e){return null==e}},52742:function(e,t,i){i.d(t,{isWindow:function(){return n}});function n(e){return null!=e&&e===e.window}},35278:function(e,t,i){i.d(t,["colorToHex",0,e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}])},32574:function(e,t,i){i.d(t,{applyStyles:function(){return h}});var n=i(82758),o=i(2748),r=i(76241),s=i(90723),a=i(49055),l=i(29960),c=i(41180),u=i(76078);function d(e){let t=e.split(";"),i=t.length-1;return t.filter((e,t)=>{let n=/^\s*([a-z-]{1,64})\s*:/i.exec(e);if(!n)return!0;let o=n[1].toLowerCase();return!(o.startsWith("mso-")||o.startsWith("border")&&t!==i)}).join(";").replace(/([0-9.]{1,32})(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function h(e){let t=(0,r.indexOfOpenTag)(e,"html");if(-1===t)return e;let i=(e=e.substring(t)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let h=n.globalDocument.createElement("iframe");(0,c.css)(h,"display","none"),o.Dom.append(n.globalDocument.body,h);let p="";try{let t=h.contentDocument||(h.contentWindow?h.contentWindow.document:null);if(t){t.open(),t.write(e),t.close();let i=(0,s.readWordListItems)(t.body);o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,l.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,u.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=d(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}(0,s.wrapWordListItems)(i),o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,l.attr)(e,"style");t&&(e.style.cssText=d(t)),(0,l.attr)(e,"style")||(0,l.attr)(e,"style",null)}}),p=t.firstChild?(0,a.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(h)}return p&&(e=p),(0,a.trim)((0,r.removeWordWrappers)(e))}},53212:function(e,t,i){i.d(t,{cleanFromWord:function(){return u}});var n=i(82758),o=i(2748),r=i(4510),s=i(76241),a=i(90723),l=i(49055),c=i(29960);function u(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[],l=(0,a.readWordListItems)(i);i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,c.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,c.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),(0,a.wrapWordListItems)(l),t=i.innerHTML}catch(e){}return t&&(e=t),e=e.split(/(\n)/).filter(l.trim).join(`
9
+ `,{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,o)}}o=r.prototype,r.prototype.controls={}},26992:function(e,t,i){i.d(t,{Async:function(){return f}});var n=i(82758),o=i(91898),r=i(12045),s=i(23282),a=i(84767),l=i(72430),c=i(14773),u=i(70799),d=i(86068),h=i(38837),p=i(93661);class f{delay(e){return this.promise(t=>this.setTimeout(t,e))}setTimeout(e,t,...i){if(this.isDestructed)return 0;let n={};(0,d.isVoid)(t)&&(t=0),(0,a.isNumber)(t)||(t=(n=t).timeout||0),n.label&&this.clearLabel(n.label);let r=(0,o.setTimeout)(e,t,...i),s=n.label||r;return this.timers.set(s,r),this.__callbacks.set(s,e),r}updateTimeout(e,t){if((0,h.assert)(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;let i=this.__callbacks.get(e);return(0,h.assert)((0,s.isFunction)(i),"Callback is not a function"),this.setTimeout(i,{label:e,timeout:t})}clearLabel(e){e&&this.timers.has(e)&&((0,o.clearTimeout)(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}clearTimeout(e){if((0,u.isString)(e))return this.clearLabel(e);(0,o.clearTimeout)(e),this.timers.delete(e),this.__callbacks.delete(e)}debounce(e,t,i=!1){let n=0,a=!1,u=[],d=(...t)=>{if(!a){n=0;let i=e(...t);if(a=!0,u.length){let e=()=>{u.forEach(e=>e()),u.length=0};(0,c.isPromise)(i)?i.finally(e):e()}}},h=(...r)=>{a=!1,t?(!n&&i&&d(...r),(0,o.clearTimeout)(n),n=this.setTimeout(()=>d(...r),(0,s.isFunction)(t)?t():t),this.timers.set(e,n)):d(...r)};return(0,l.isPlainObject)(t)&&t.promisify?(...e)=>{let t=this.promise(e=>{u.push(e)}).catch(e=>{if((0,r.isAbortError)(e))return null;throw e});return h(...e),t}:h}microDebounce(e,t=!1){let i,n=!1,o=!0;return(...r)=>{if(i=r,n){o=!0;return}o=!0,t&&(o=!1,e(...i)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&o&&e(...i)})}}throttle(e,t,i=!1){let n=null,o,r,a;return(...i)=>{(o=!0,a=i,t)?n||(r=()=>{o?(e(...a),o=!1,n=this.setTimeout(r,(0,s.isFunction)(t)?t():t),this.timers.set(r,n)):n=null})():e(...a)}}promise(e){let t=()=>{},i=new Promise((i,n)=>{t=()=>n((0,p.abort)("Abort async")),this.promisesRejections.add(t),e(i,n)});return!i.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(i.finally=e=>(i.then(e).catch(e),i)),i.finally(()=>{this.promisesRejections.delete(t)}).catch(()=>null),i.rejectCallback=t,i}promiseState(e){if(e.status)return e.status;if(!Promise.race)return new Promise(t=>{e.then(e=>(t("fulfilled"),e),e=>{throw t("rejected"),e}),this.setTimeout(()=>{t("pending")},100)});let t={};return Promise.race([e,t]).then(e=>e===t?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(e,t={timeout:100}){let i=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(i),i}requestIdlePromise(e){return this.promise(t=>{let i=this.requestIdleCallback(()=>t(i),e)})}schedulerPostTask(e,t={delay:0,priority:"user-visible"}){let i=new AbortController;if(t.signal&&t.signal.addEventListener("abort",()=>i.abort()),this.__controllers.add(i),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(e,{...t,signal:i.signal});return n.finally(()=>{this.__controllers.delete(i)}).catch(()=>null),n}return this.promise((n,o)=>{let r=this.setTimeout(()=>{try{n(e())}catch(e){o(e)}this.__controllers.delete(i)},t.delay||1);i.signal.addEventListener("abort",()=>{this.clearTimeout(r),this.__controllers.delete(i),o((0,p.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}requestAnimationFrame(e){let t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}cancelAnimationFrame(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}clear(){this.__requestsIdle.forEach(e=>this.cancelIdleCallback(e)),this.__requestsRaf.forEach(e=>this.cancelAnimationFrame(e)),this.__controllers.forEach(e=>e.abort()),this.timers.forEach(e=>(0,o.clearTimeout)(e)),this.timers.clear(),this.promisesRejections.forEach(e=>e()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var e,t,i,n,o;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(e=null==queueMicrotask?void 0:queueMicrotask.bind(window))?e:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!=(i=null==(t=window.requestIdleCallback)?void 0:t.bind(window))?i:(e,t)=>{var i;let n=Date.now();return this.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(i=null==t?void 0:t.timeout)?i:1)},this.__cancelIdleCallbackNative=null!=(o=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?o:e=>{this.clearTimeout(e)},this.isDestructed=!1}}},8884:function(e,t,i){i.d(t,{Async:function(){return n.Async}});var n=i(26992)},4012:function(e,t,i){i.d(t,{Component:function(){return l}});var n=i(8884),o=i(78213),r=i(580),s=i(21537);let a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,s.kebabCase)(((0,s.isFunction)(this.className)?this.className():"")||(0,s.getClassName)(this))),this.__componentName}getFullElName(e,t,i){let n=[this.componentName];return e&&n.push("__"+(e=e.replace(/[^a-z0-9-]/gi,"-"))),t&&(n.push("_",t),n.push("_",(0,s.isVoid)(i)?"true":i.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(e,t){return(0,s.get)(e,t||this)}get isReady(){return this.componentStatus===o.STATUSES.ready}get isDestructed(){return this.componentStatus===o.STATUSES.destructed}get isInDestruct(){return o.STATUSES.beforeDestruct===this.componentStatus||o.STATUSES.destructed===this.componentStatus}bindDestruct(e){return e.hookStatus(o.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(o.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(e){this.setStatus(e)}setStatus(e){return this.setStatusComponent(e,this)}setStatusComponent(e,t){if(e===this.__componentStatus)return;t===this&&(this.__componentStatus=e);let i=Object.getPrototypeOf(this);i&&(0,s.isFunction)(i.setStatusComponent)&&i.setStatusComponent(e,t);let n=a.get(this),o=null==n?void 0:n[e];o&&o.length&&o.forEach(e=>e(t))}hookStatus(e,t){let i=a.get(this);i||(i={},a.set(this,i)),i[e]||(i[e]=[]),i[e].push(t)}static isInstanceOf(e,t){return e instanceof t}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=o.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,r.uniqueUid)()}}l.STATUSES=o.STATUSES},91907:function(e,t,i){i.d(t,{Component:function(){return n.Component},STATUSES:function(){return o.STATUSES},ViewComponent:function(){return r.ViewComponent}});var n=i(4012),o=i(78213),r=i(80480)},78213:function(e,t,i){i.d(t,["STATUSES",0,{beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}])},80480:function(e,t,i){i.d(t,{ViewComponent:function(){return o}});var n=i(4012);class o extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(e,...t){return this.j.i18n(e,...t)}setParentView(e){return this.jodit=e,e.ow&&(this.ownerWindow=e.ow),e.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(e){super(),this.setParentView(e)}}},82758:function(e,t,i){i.r(t),i.d(t,{IS_TEST:function(){return n}});let n=!1,o="u">typeof window?window:void 0,r="u">typeof document?document:void 0,s=new Set(["ul","ol"]),a=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],l=new Set([...a,"br","hr"]),c=new Set(a),u="Meta",d="Backspace",h="Enter",p="Escape",f="ArrowLeft",m="ArrowUp",g="ArrowRight",v="ArrowDown",b="Delete",y=[u,d,b,m,v,g,f,h,p,"F3","Tab"],_="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),w=void 0!==o&&/Mac|iPod|iPhone|iPad/.test(o.navigator.platform),k=e=>{let t=e.split("/");return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:!0}:{basePath:e,isMin:!0}},{basePath:S,isMin:C}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let e=r.currentScript;if(e)return k(e.src);let t=r.querySelectorAll("script[src]");return t&&t.length?k(t[t.length-1].src):k(o.location.href)})(),E=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);i.d(t,["ACCURACY",0,10,"APP_VERSION",0,"4.20.5","BASE_PATH",0,S,"BASE_PATH_IS_MIN",0,C,"BR",0,"br","CLIPBOARD_ID",0,"clipboard","COMMAND_KEYS",0,y,"EMULATE_DBLCLICK_TIMEOUT",0,300,"ERROR_CODE_CONFLICT",0,409,"ES",0,"es2021","FAT_MODE",0,!1,"HOMEPAGE",0,"https://xdsoft.net/jodit/pro/","INSEPARABLE_TAGS",0,l,"INSERT_AS_HTML",0,"insert_as_html","INSERT_AS_TEXT",0,"insert_as_text","INSERT_CLEAR_HTML",0,"insert_clear_html","INSERT_ONLY_TEXT",0,"insert_only_text","INVISIBLE_SPACE",0,"\uFEFF","INVISIBLE_SPACE_REG_EXP",0,()=>/[\uFEFF]/g,"INVISIBLE_SPACE_REG_EXP_END",0,()=>/[\uFEFF]+$/g,"INVISIBLE_SPACE_REG_EXP_START",0,()=>/^[\uFEFF]+/g,"IS_BLOCK",0,/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,"IS_ES_MODERN",0,!0,"IS_ES_NEXT",0,!0,"IS_IE",0,_,"IS_INLINE",0,/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,"IS_MAC",0,w,"IS_PROD",0,!0,"KEY_ALIASES",0,{add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:w?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},"KEY_ALT",0,"Alt","KEY_BACKSPACE",0,d,"KEY_DELETE",0,b,"KEY_DOWN",0,v,"KEY_END",0,"End","KEY_ENTER",0,h,"KEY_ESC",0,p,"KEY_F3",0,"F3","KEY_HOME",0,"Home","KEY_LEFT",0,f,"KEY_META",0,u,"KEY_RIGHT",0,g,"KEY_SPACE",0,"Space","KEY_TAB",0,"Tab","KEY_UP",0,m,"LIST_TAGS",0,s,"MARKER_CLASS",0,"jodit-selection_marker","MODE_SOURCE",0,2,"MODE_SPLIT",0,3,"MODE_WYSIWYG",0,1,"NBSP_SPACE",0," ","NEARBY",0,5,"NO_EMPTY_TAGS",0,c,"PARAGRAPH",0,"p","PASSIVE_EVENTS",0,E,"SAFE_COUNT_CHANGE_CALL",0,10,"SET_TEST",0,()=>n=!0,"SOURCE_CONSUMER",0,"source-consumer","SPACE_REG_EXP",0,()=>/[\s\n\t\r\uFEFF\u200b]+/g,"SPACE_REG_EXP_END",0,()=>/[\s\n\t\r\uFEFF\u200b]+$/g,"SPACE_REG_EXP_START",0,()=>/^[\s\n\t\r\uFEFF\u200b]+/g,"TEMP_ATTR",0,"data-jodit-temp","TEXT_HTML",0,_?"html":"text/html","TEXT_PLAIN",0,_?"text":"text/plain","TEXT_RTF",0,_?"rtf":"text/rtf","TOKENS",0,{},"globalDocument",0,r,"globalWindow",0,o,"lang",0,{}])},20218:function(e,t,i){i.d(t,{Create:function(){return a}});var n=i(82758),o=i(2748),r=i(21537),s=i(38837);class a{get doc(){return(0,r.isFunction)(this.document)?this.document():this.document}element(e,t,i){let n=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(n),t&&((0,r.isPlainObject)(t)?(0,r.attr)(n,t):i=t),i&&(0,r.asArray)(i).forEach(e=>o.Dom.append(n,(0,r.isString)(e)?this.fromHTML(e):e)),n}div(e,t,i){let n=this.element("div",t,i);return e&&(n.className=e),n}sandbox(){var e;let t=this.element("iframe",{sandbox:"allow-same-origin"});o.Dom.append(this.doc.body,t);let i=null==(e=t.contentWindow)?void 0:e.document;if((0,s.assert)(i,"iframe.contentWindow.document"),!i)throw Error("Iframe error");return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),[i.body,t]}span(e,t,i){let n=this.element("span",t,i);return e&&(n.className=e),n}a(e,t,i){let n=this.element("a",t,i);return e&&(n.className=e),n}text(e){return this.doc.createTextNode(e)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(e,t){let i=this.div();i.innerHTML=e.toString();let n=i.firstChild===i.lastChild&&i.firstChild?i.firstChild:i;if(o.Dom.safeRemove(n),t){let e=(0,r.refs)(n);Object.keys(t).forEach(i=>{let n=e[i];n&&!1===t[i]&&o.Dom.hide(n)})}return n}applyCreateAttributes(e){if(this.createAttributes){let t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){let i=t[e.tagName.toLowerCase()];(0,r.isFunction)(i)?i(e):(0,r.isPlainObject)(i)&&(0,r.attr)(e,i)}}}constructor(e,t){this.document=e,this.createAttributes=t}}},12060:function(e,t,i){i.d(t,{Create:function(){return n.Create}});var n=i(20218)},45219:function(e,t,i){i.d(t,{autobind:function(){return o}});var n=i(23282);function o(e,t,i){if(!(0,n.isFunction)(i.value))throw TypeError(`@autobind can only be applied to methods, but "${t}" is not a function`);let o=i.value;return{configurable:!0,get(){let e=o.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}},33433:function(e,t,i){i.d(t,{cache:function(){return l},cacheHTML:function(){return c},cached:function(){return a}});var n=i(78213),o=i(2748),r=i(27613),s=i(82760);function a(e,t){let i=Object.getOwnPropertyDescriptor(e,t);return!i||(0,r.isFunction)(i.get)?null:i.value}function l(e,t,i){let n=i.get;if(!n)throw(0,s.error)("Getter property descriptor expected");i.get=function(){let e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:i.configurable,enumerable:i.enumerable,writable:!1,value:e}),e}}function c(e,t,i){let a=i.value;if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");let l=!0,c=new WeakMap;i.value=function(...e){var t;let i,n=null!=(i=this.od)?i:document,r=c.get(n);if(l&&(null==r?void 0:r.has(this.constructor)))return null==(t=r.get(this.constructor))?void 0:t.cloneNode(!0);let s=a.apply(this,e);return l&&o.Dom.isElement(s)&&(r?r.set(this.constructor,s):c.set(n,new WeakMap([[this.constructor,s]]))),l?s.cloneNode(!0):s},e.hookStatus(n.STATUSES.ready,e=>{l=!!((0,r.isViewObject)(e)?e:e.jodit).options.cache})}},87325:function(e,t,i){i.d(t,{component:function(){return l},getComponentClass:function(){return c}});var n=i(82758),o=i(80568);let r=new Map,s=new WeakSet,a=new WeakSet;function l(e){class t extends e{constructor(...e){super(...e),this.constructor===t?(this instanceof t||Object.setPrototypeOf(this,t.prototype),this.setStatus("ready")):n.IS_PROD||s.has(this.constructor)||a.has(this.constructor)||a.add(this.constructor)}}s.add(e),s.add(t);let i=(0,o.getClassName)(e.prototype);if(r.has(i)&&!n.IS_PROD)throw Error(`Component with name "${i}" is already registered`);return r.set(i,t),t}function c(e){return r.get(e)}},81577:function(e,t,i){i.d(t,{debounce:function(){return a},throttle:function(){return l}});var n=i(91907),o=i(27613),r=i(38837),s=i(89890);function a(e,t=!1,i="debounce"){return(a,l)=>{let c=a[l];if(!(0,o.isFunction)(c))throw(0,s.error)("Handler must be a Function");return a.hookStatus(n.STATUSES.ready,n=>{let{async:s}=n;(0,r.assert)(null!=s,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let a=(0,o.isFunction)(e)?e(n):e,c=(0,o.isNumber)(a)||(0,o.isPlainObject)(a)?a:n.defaultTimeout;Object.defineProperty(n,l,{configurable:!0,value:s[i](n[l].bind(n),c,t)})}),{configurable:!0,get(){return c.bind(this)}}}}function l(e,t=!1){return a(e,t,"throttle")}},55153:function(e,t,i){i.d(t,{derive:function(){return o}});var n=i(23282);function o(...e){return t=>{let i=t.prototype;for(let t=0;t<e.length;t++){let o=e[t],r=Object.getOwnPropertyNames(o.prototype);for(let e=0;e<r.length;e++){let t=r[e],s=Object.getOwnPropertyDescriptor(o.prototype,t);null!=s&&(0,n.isFunction)(s.value)&&!(0,n.isFunction)(i[t])&&Object.defineProperty(i,t,{enumerable:!0,configurable:!0,writable:!0,value:function(...e){return s.value.call(this,...e)}})}}}}},97357:function(e,t,i){i.d(t,{hook:function(){return r}});var n=i(23282),o=i(89890);function r(e){return(t,i)=>{if(!(0,n.isFunction)(t[i]))throw(0,o.error)("Handler must be a Function");t.hookStatus(e,e=>{e[i].call(e)})}}},78927:function(e,t,i){i.d(t,{idle:function(){return s}});var n=i(91907),o=i(23282),r=i(89890);function s(){return(e,t)=>{if(!(0,o.isFunction)(e[t]))throw(0,r.error)("Handler must be a Function");e.hookStatus(n.STATUSES.ready,e=>{let{async:i}=e,n=e[t];e[t]=(...t)=>i.requestIdleCallback(n.bind(e,...t))})}}},65478:function(e,t,i){i.r(t),i.d(t,{autobind:function(){return n.autobind},cache:function(){return o.cache},cacheHTML:function(){return o.cacheHTML},cached:function(){return o.cached},component:function(){return r.component},debounce:function(){return s.debounce},derive:function(){return a.derive},getComponentClass:function(){return r.getComponentClass},hook:function(){return l.hook},idle:function(){return c.idle},nonenumerable:function(){return u.nonenumerable},persistent:function(){return d.persistent},throttle:function(){return s.throttle},wait:function(){return h.wait},watch:function(){return p.watch}});var n=i(45219),o=i(33433),r=i(87325),s=i(81577),a=i(55153),l=i(97357),c=i(78927),u=i(31589),d=i(53213),h=i(13525),p=i(37133)},31589:function(e,t,i){i.d(t,["nonenumerable",0,(e,t)=>{!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})}])},53213:function(e,t,i){i.d(t,{persistent:function(){return r}});var n=i(78213),o=i(39955);function r(e,t){e.hookStatus(n.STATUSES.ready,e=>{let i=(0,o.isViewObject)(e)?e:e.jodit,n=`${i.options.namespace}${e.componentName}_prop_${t}`,r=e[t];Object.defineProperty(e,t,{get(){var e;return null!=(e=i.storage.get(n))?e:r},set(e){i.storage.set(n,e)}})})}},13525:function(e,t,i){i.d(t,{wait:function(){return s}});var n=i(78213),o=i(23282),r=i(89890);function s(e){return(t,i)=>{let s=t[i];if(!(0,o.isFunction)(s))throw(0,r.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:n}=t,o=t[i],r=0;Object.defineProperty(t,i,{configurable:!0,value:function i(...s){n.clearTimeout(r),e(t)?o.apply(t,s):r=n.setTimeout(()=>i(...s),10)}})})}}},37133:function(e,t,i){i.d(t,{watch:function(){return d}});var n=i(78213),o=i(73026),r=i(46559),s=i(23282),a=i(72430),l=i(39955),c=i(89890),u=i(37790);function d(e,t){return(i,d)=>{var h;if(!(0,s.isFunction)(i[d]))throw(0,c.error)("Handler must be a Function");let p=null==(h=null==t?void 0:t.immediately)||h,f=null==t?void 0:t.context,m=t=>{let n=(0,l.isViewObject)(t)?t:t.jodit,c=(e,...i)=>{if(!t.isInDestruct)return t[d](e,...i)};p||(c=t.async.microDebounce(c,!0)),(0,r.splitArray)(e).forEach(e=>{if(/:/.test(e)){let[i,o]=e.split(":"),r=f;i.length&&(r=t.get(i)),(0,s.isFunction)(r)&&(r=r(t)),n.events.on(r||t,o,c),r||n.events.on(o,c),t.hookStatus("beforeDestruct",()=>{n.events.off(r||t,o,c).off(o,c)});return}let r=e.split("."),[l]=r,d=r.slice(1),h=t[l];(0,a.isPlainObject)(h)&&(0,o.observable)(h).on("change."+d.join("."),c);let p=(0,u.getPropertyDescriptor)(i,l);Object.defineProperty(t,l,{configurable:!0,set(e){let i=h;i!==e&&(h=e,p&&p.set&&p.set.call(t,e),(0,a.isPlainObject)(h)&&(h=(0,o.observable)(h)).on("change."+d.join("."),c),c(l,i,h))},get:()=>p&&p.get?p.get.call(t):h})})};(0,s.isFunction)(i.hookStatus)?i.hookStatus(n.STATUSES.ready,m):m(i)}}},2748:function(e,t,i){i.d(t,{Dom:function(){return y}});var n=i(82758),o=i(4510),r=i(68345),s=i(23282),a=i(58487),l=i(42320),c=i(70799),u=i(86068),d=i(76241),h=i(49055),p=i(38837),f=i(29960),m=i(41180),g=i(86583),v=i(89890),b=i(37790);class y{static detach(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}static wrapNextInline(e,t,i){let n,o,r=e;i.s.save();do o=!1,(n=r.nextSibling)&&!y.isBlock(n)&&!y.isTag(n,"br")&&(o=!0,r=n);while(o)return y.__wrapElements(t,i,e,r)}static __wrapElements(e,t,i,n){let o=(0,c.isString)(e)?t.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(o,i);let r=i;for(;r&&(r=i.nextSibling,o.appendChild(i),i!==n&&r);)i=r;return t.s.restore(),o}static wrapInline(e,t,i){let n,o,r=e,s=e;i.s.save();do o=!1,(n=r.previousSibling)&&!y.isBlock(n)&&(o=!0,r=n);while(o)do o=!1,(n=s.nextSibling)&&!y.isBlock(n)&&(o=!0,s=n);while(o)return y.__wrapElements(t,i,r,s)}static wrap(e,t,i){let n=(0,c.isString)(t)?i.element(t):t;if(y.isNode(e)){if(!e.parentNode)throw(0,v.error)("Element should be in DOM");e.parentNode.insertBefore(n,e),n.appendChild(e)}else{let t=e.extractContents();e.insertNode(n),n.appendChild(t)}return n}static unwrap(e){let t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);y.safeRemove(e)}}static between(e,t,i){let n=e;for(;n&&n!==t&&!(e!==n&&i(n));){let e=n.firstChild||n.nextSibling;if(!e){for(;n&&!n.nextSibling;)if((n=n.parentNode)===t)return;e=null==n?void 0:n.nextSibling}n=e}}static replace(e,t,i,n=!1,r=!1){let s;if((0,a.isHTML)(t)&&((0,p.assert)(i,"Need create instance for new tag"),t=i.fromHTML(t)),(0,c.isString)(t)?((0,p.assert)(i,"Need create instance for new tag"),s=i.element(t)):s=t,!r)for(;e.firstChild;)s.appendChild(e.firstChild);return n&&y.isElement(e)&&y.isElement(s)&&(0,o.toArray)(e.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(s,e),s}static isEmptyTextNode(e){return y.isText(e)&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(e){return y.each(e,e=>y.isEmptyTextNode(e))}static isContentEditable(e,t){let i=y.closest(e,e=>y.isElement(e)&&e.hasAttribute("contenteditable"),t);return y.isNode(e)&&(null==i?void 0:i.getAttribute("contenteditable"))!=="false"}static isEmpty(e,t=n.NO_EMPTY_TAGS){let i;if(!e)return!0;i=(0,s.isFunction)(t)?t:e=>t.has(e.nodeName.toLowerCase());let o=e=>null==e.nodeValue||0===(0,h.trim)(e.nodeValue).length;return y.isText(e)?o(e):!(y.isElement(e)&&i(e))&&y.each(e,e=>{if(y.isText(e)&&!o(e)||y.isElement(e)&&i(e))return!1})}static isNode(e){return!!(e&&(0,c.isString)(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&(0,s.isFunction)(e.appendChild))}static isCell(e){return y.isNode(e)&&("TD"===e.nodeName||"TH"===e.nodeName)}static isList(e){return y.isTag(e,n.LIST_TAGS)}static isLeaf(e){return y.isTag(e,"li")}static isImage(e){return y.isNode(e)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)}static isBlock(e){return!(0,u.isVoid)(e)&&"object"==typeof e&&y.isNode(e)&&n.IS_BLOCK.test(e.nodeName)}static isText(e){return!!(e&&e.nodeType===Node.TEXT_NODE)}static isComment(e){return!!(e&&e.nodeType===Node.COMMENT_NODE)}static isElement(e){return!!y.isNode(e)&&e.nodeType===Node.ELEMENT_NODE}static isFragment(e){return!!y.isNode(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(e){var t;if(!y.isNode(e))return!1;let i=null==(t=e.ownerDocument)?void 0:t.defaultView;return e instanceof(i?i.HTMLElement:HTMLElement)}static isInlineBlock(e){return y.isElement(e)&&!/^(BR|HR)$/i.test(e.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(e,"display").toString())}static canSplitBlock(e){return!(0,u.isVoid)(e)&&y.isHTMLElement(e)&&y.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)}static first(e,t){return y.__deepMost(e,t,!1)}static last(e,t){return y.__deepMost(e,t,!0)}static __deepMost(e,t,i){let n=i?"lastChild":"firstChild",o=i?"previousSibling":"nextSibling",r=null==e?void 0:e[n];if(!r)return null;do{if(t(r))return r;let i=r[n]||r[o];if(!i&&r.parentNode!==e){do r=r.parentNode;while(r&&!r[o]&&r.parentNode!==e)i=null==r?void 0:r[o]}r=i}while(r)return null}static prev(e,t,i,n=!0){return y.find(e,t,i,!1,n)}static next(e,t,i,n=!0){return y.find(e,t,i,!0,n)}static prevWithClass(e,t){return y.__siblingWithClass(e,t,!0)}static nextWithClass(e,t){return y.__siblingWithClass(e,t,!1)}static __siblingWithClass(e,t,i){let n=e=>y.isElement(e)&&e.classList.contains(t),o=e.parentNode;return i?y.prev(e,n,o):y.next(e,n,o)}static find(e,t,i,n=!0,o=!0){let r=this.nextGen(e,i,n,o),s=r.next();for(;!s.done;){if(t(s.value))return s.value;s=r.next()}return null}static*nextGen(e,t,i=!0,n=!0){let o=[],r=e;do{let t=i?r.nextSibling:r.previousSibling;for(;t;)o.push(t),t=i?t.nextSibling:t.previousSibling;o.reverse(),yield*this.runInStack(e,o,i,n),r=r.parentNode}while(r&&r!==t)return null}static each(e,t,i=!0){let n=this.eachGen(e,i),o=n.next();for(;!o.done;){if(!1===t(o.value))return!1;o=n.next()}return!0}static eachGen(e,t=!0){return this.runInStack(e,[e],t)}static*runInStack(e,t,i,n=!0){for(;t.length;){let o=t.pop();if(n){let e=i?o.lastChild:o.firstChild;for(;e;)t.push(e),e=i?e.previousSibling:e.nextSibling}e!==o&&(yield o)}}static findWithCurrent(e,t,i,n="nextSibling",o="firstChild"){let r=e;do{if(t(r))return r||null;if(o&&r&&r[o]){let e=y.findWithCurrent(r[o],t,r,n,o);if(e)return e}for(;r&&!r[n]&&r!==i;)r=r.parentNode;r&&r[n]&&r!==i&&(r=r[n])}while(r&&r!==i)return null}static findSibling(e,t=!0,i=e=>!y.isEmptyTextNode(e)){let n=y.sibling(e,t);for(;n&&!i(n);)n=y.sibling(n,t);return n&&i(n)?n:null}static findNotEmptySibling(e,t){return y.findSibling(e,t,e=>{var t;return!y.isEmptyTextNode(e)&&!!(!y.isText(e)||(null==(t=e.nodeValue)?void 0:t.length)&&(0,h.trim)(e.nodeValue))})}static findNotEmptyNeighbor(e,t,i){return(0,b.call)(t?y.prev:y.next,e,e=>!!(e&&(!(y.isText(e)||y.isComment(e))||(0,h.trim)((null==e?void 0:e.nodeValue)||"").length)),i)}static sibling(e,t){return t?e.previousSibling:e.nextSibling}static up(e,t,i,n=!1){let o=e;if(!o)return null;do{if(t(o))return o;if(o===i||!o.parentNode)break;o=o.parentNode}while(o&&o!==i)return o===i&&n&&t(o)?o:null}static closest(e,t,i){let n,o=e=>e.toLowerCase();if((0,s.isFunction)(t))n=t;else if((0,r.isArray)(t)||(0,l.isSet)(t)){let e=(0,l.isSet)(t)?t:new Set(t.map(o));n=t=>!!(t&&e.has(o(t.nodeName)))}else n=e=>!!(e&&o(t)===o(e.nodeName));return y.up(e,n,i)}static furthest(e,t,i){let n=null,o=null==e?void 0:e.parentElement;for(;o&&o!==i;)t(o)&&(n=o),o=null==o?void 0:o.parentElement;return n}static appendChildFirst(e,t){e.firstChild!==t&&y.prepend(e,t)}static after(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e.nextSibling)}static before(e,t){var i;null==(i=e.parentNode)||i.insertBefore(t,e)}static prepend(e,t){e.insertBefore(t,e.firstChild)}static append(e,t){(0,r.isArray)(t)?t.forEach(t=>{this.append(e,t)}):e.appendChild(t)}static moveContent(e,t,i=!1,r=()=>!0){let s=(e.ownerDocument||n.globalDocument).createDocumentFragment();(0,o.toArray)(e.childNodes).filter(e=>!!r(e)||(y.safeRemove(e),!1)).forEach(e=>{s.appendChild(e)}),t.insertBefore(s,i?t.firstChild:null)}static isOrContains(e,t,i=!1){return e===t?!i:!!(t&&e&&this.up(t,t=>t===e,e,!0))}static safeRemove(...e){e.forEach(e=>y.isNode(e)&&e.parentNode&&e.parentNode.removeChild(e))}static safeInsertNode(e,t){e.collapsed||e.deleteContents();let i=y.isFragment(t)?t.lastChild:t;e.startContainer===e.endContainer&&e.collapsed&&y.isTag(e.startContainer,n.INSEPARABLE_TAGS)?y.after(e.startContainer,t):(e.insertNode(t),i&&e.setStartBefore(i)),e.collapse(!0),[t.nextSibling,t.previousSibling].forEach(e=>y.isText(e)&&!e.nodeValue&&y.safeRemove(e))}static hide(e){e&&((0,g.dataBind)(e,"__old_display",e.style.getPropertyValue("display")),e.style.setProperty("display","none"))}static show(e){if(!e)return;let t=(0,g.dataBind)(e,"__old_display");"none"===e.style.getPropertyValue("display")&&e.style.setProperty("display",t||null)}static isTag(e,t){if(Array.isArray(t))throw TypeError("Dom.isTag does not support array");if(!this.isElement(e))return!1;let i=e.tagName.toLowerCase();return t instanceof Set?t.has(i)||t.has(e.tagName.toUpperCase()):i===t||e.tagName.toUpperCase()===t}static markTemporary(e,t){return t&&(0,f.attr)(e,t),(0,f.attr)(e,n.TEMP_ATTR,!0),e}static isTemporary(e){return!!y.isElement(e)&&(y.isMarker(e)||"true"===(0,f.attr)(e,n.TEMP_ATTR))}static isMarker(e){return y.isNode(e)&&y.isTag(e,"span")&&e.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(e){return(0,d.unwrapMarkedTags)(e,null,n.TEMP_ATTR)}static temporaryList(e){let t=[];return y.each(e,e=>{y.isHTMLElement(e)&&e.hasAttribute(n.TEMP_ATTR)&&t.push(e)}),t}constructor(){throw Error("Dom is static module")}}},22732:function(e,t,i){i.d(t,{Dom:function(){return n.Dom},LazyWalker:function(){return o.LazyWalker}});var n=i(2748),o=i(70071)},70071:function(e,t,i){i.d(t,{LazyWalker:function(){return s}});var n=i(45219),o=i(2748),r=i(72757);class s extends r.Eventify{setWork(e){return this.isWorked?this.break():this.stop(),this.workNodes=o.Dom.eachGen(e,!this.options.reverse),this.isFinished=!1,this.hadAffect=!1,this._requestStarting(),this}_requestStarting(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(()=>null)}break(e){this.isWorked&&(this.stop(),this.emit("break",e))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var e;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(e=this.__schedulerController)||e.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var e;if(this.workNodes){this.isWorked=!0;let t=0,i=null!=(e=this.options.timeoutChunkSize)?e:50;for(;!this.isFinished&&t<i;){let e=this.workNodes.next();if(t+=1,this.visitNode(e.value)&&(this.hadAffect=!0),e.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(e){var t;return!!e&&(void 0===this.options.whatToShow||e.nodeType===this.options.whatToShow)&&null!=(t=this.emit("visit",e))&&t}constructor(e,t={}){super(),this.async=e,this.options=t,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"__workPerform",null)},98220:function(e,t,i){i.d(t,{EventEmitter:function(){return u}});var n=i(82758),o=i(46559),r=i(68345),s=i(23282),a=i(70799),l=i(89890),c=i(15738);class u{mute(e){return this.__mutedEvents.add(null!=e?e:"*"),this}isMuted(e){return!!(e&&this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}unmute(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}__eachEvent(e,t){(0,o.splitArray)(e).map(e=>e.trim()).forEach(e=>{let i=e.split("."),n=i[1]||c.defaultNameSpace;t.call(this,i[0],n)})}__getStore(e){if(!e)throw(0,l.error)("Need subject");if(void 0===e[this.__key]){let t=new c.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}__removeStoreFromSubject(e){void 0!==e[this.__key]&&delete e[this.__key]}__triggerNativeEvent(e,t){let i=this.__doc.createEvent("HTMLEvents");(0,a.isString)(t)?i.initEvent(t,!0,!0):(i.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","view","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(e=>{Object.defineProperty(i,e,{value:t[e],enumerable:!0})}),Object.defineProperty(i,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(i)}get current(){return this.currents[this.currents.length-1]}on(e,t,i,o){let c,u,h,p;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(c=this,u=e,h=t,p=i):(c=e,u=t,h=i,p=o),!((0,a.isString)(u)||(0,a.isStringArray)(u))||0===u.length)throw(0,l.error)("Need events names");if(!(0,s.isFunction)(h))throw(0,l.error)("Need event handler");if((0,r.isArray)(c))return c.forEach(e=>{this.on(e,u,h,p)}),this;let f=c,m=this.__getStore(f),g=this,v=function(e,...t){if(!g.isMuted(e))return h&&h.call(this,...t)};return d(f)&&(v=function(e){if(!g.isMuted(e.type)&&(g.__prepareEvent(e),h&&!1===h.call(this,e)))return e.preventDefault(),e.stopImmediatePropagation(),!1}),this.__eachEvent(u,(e,t)=>{var i,o;if(0===e.length)throw(0,l.error)("Need event name");if(!1===m.indexOf(e,t,h)){let r={event:e,originalCallback:h,syntheticCallback:v};if(m.set(e,t,r,null==p?void 0:p.top),d(f)){let t=n.PASSIVE_EVENTS.has(e)?{passive:!0,capture:null!=(i=null==p?void 0:p.capture)&&i}:null!=(o=null==p?void 0:p.capture)&&o;v.options=t,f.addEventListener(e,v,t),this.__memoryDOMSubjectToHandler(f,v)}}}),this}__memoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap.get(e)||new Set;i.add(t),this.__domEventsMap.set(e,i)}__unmemoryDOMSubjectToHandler(e,t){let i=this.__domEventsMap,n=i.get(e)||new Set;n.delete(t),n.size?i.set(e,n):i.delete(e)}one(e,t,i,n){let o,r,s,l;(0,a.isString)(e)||(0,a.isStringArray)(e)?(o=this,r=e,s=t,l=i):(o=e,r=t,s=i,l=n);let c=(...e)=>(this.off(o,r,c),s(...e));return this.on(o,r,c,l),this}off(e,t,i){let n,o,l;if((0,a.isString)(e)||(0,a.isStringArray)(e)?(n=this,o=e,l=t):(n=e,o=t,l=i),(0,r.isArray)(n))return n.forEach(e=>{this.off(e,o,l)}),this;let u=n,h=this.__getStore(u);if(!((0,a.isString)(o)||(0,a.isStringArray)(o))||0===o.length)return h.namespaces().forEach(e=>{this.off(u,"."+e)}),this.__removeStoreFromSubject(u),this;let p=e=>{var t;d(u)&&(u.removeEventListener(e.event,e.syntheticCallback,null!=(t=e.syntheticCallback.options)&&t),this.__unmemoryDOMSubjectToHandler(u,e.syntheticCallback))},f=(e,t)=>{if(""===e)return void h.events(t).forEach(e=>{""!==e&&f(e,t)});let i=h.get(e,t);if(i&&i.length)if((0,s.isFunction)(l)){let n=h.indexOf(e,t,l);!1!==n&&(p(i[n]),i.splice(n,1),i.length||h.clearEvents(t,e))}else i.forEach(p),i.length=0,h.clearEvents(t,e)};return this.__eachEvent(o,(e,t)=>{t===c.defaultNameSpace?h.namespaces().forEach(t=>{f(e,t)}):f(e,t)}),h.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(e,t){let i=(0,a.isString)(e)?this:e,n=(0,a.isString)(e)?e:t;if("string"!=typeof n)throw(0,l.error)("Need event names");let o=this.__getStore(i);this.__eachEvent(n,(e,t)=>{let n=o.get(e,t);n&&this.__stopped.push(n),t===c.defaultNameSpace&&o.namespaces(!0).forEach(t=>this.stopPropagation(i,e+"."+t))})}__removeStop(e){if(e){let t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}__isStopped(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}fire(e,t,...i){let n,o,r=(0,a.isString)(e)?this:e,s=(0,a.isString)(e)?e:t,u=(0,a.isString)(e)?[t,...i]:i;if(!d(r)&&!(0,a.isString)(s))throw(0,l.error)("Need events names");let h=this.__getStore(r);return!(0,a.isString)(s)&&d(r)?this.__triggerNativeEvent(r,t):this.__eachEvent(s,(e,t)=>{if(d(r))this.__triggerNativeEvent(r,e);else{let i=h.get(e,t);if(i)try{[...i].every(t=>!this.__isStopped(i)&&(this.currents.push(e),o=t.syntheticCallback.call(r,e,...u),this.currents.pop(),void 0!==o&&(n=o),!0))}finally{this.__removeStop(i)}t!==c.defaultNameSpace||d(r)||h.namespaces().filter(e=>e!==t).forEach(t=>{let i=this.fire.apply(this,[r,e+"."+t,...u]);void 0!==i&&(n=i)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((e,t)=>{this.off(t)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}constructor(e){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=e=>{!e.cancelBubble&&(e.composed&&(0,s.isFunction)(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(t=>{Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,e&&(this.__doc=e),this.__key+=new Date().getTime()}}function d(e){return e&&(0,s.isFunction)(e.addEventListener)}},72757:function(e,t,i){i.d(t,{Eventify:function(){return n}});class n{on(e,t){var i;return this.__map.has(e)||this.__map.set(e,new Set),null==(i=this.__map.get(e))||i.add(t),this}off(e,t){var i;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.delete(t)),this}destruct(){this.__map.clear()}emit(e,...t){var i;let n;return this.__map.has(e)&&(null==(i=this.__map.get(e))||i.forEach(e=>{n=e(...t)})),n}constructor(){this.__map=new Map}}},57012:function(e,t,i){let n=new(i(98220)).EventEmitter;i.d(t,["eventEmitter",0,n])},3827:function(e,t,i){i.d(t,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return s.EventHandlersStore},Eventify:function(){return o.Eventify},defaultNameSpace:function(){return s.defaultNameSpace},observable:function(){return r.observable}});var n=i(98220),o=i(72757),r=i(73026),s=i(15738)},73026:function(e,t,i){i.d(t,{observable:function(){return c}});var n=i(68345),o=i(59292),r=i(72430),s=i(37790);let a=Symbol("observable-object");function l(e){return void 0!==e[a]}function c(e){if(l(e))return e;let t={},i={},c=(t,o)=>((0,n.isArray)(t)?t.map(e=>c(e,o)):(i[t]||(i[t]=[]),i[t].push(o)),e),u=(o,...r)=>{if((0,n.isArray)(o))return void o.map(e=>u(e,...r));try{!t[o]&&i[o]&&(t[o]=!0,i[o].forEach(t=>t.call(e,...r)))}finally{t[o]=!1}},d=(t,i=[])=>{let n={};l(t)||(Object.defineProperty(t,a,{enumerable:!1,value:!0}),Object.keys(t).forEach(a=>{let l=i.concat(a).filter(e=>e.length);n[a]=t[a];let c=(0,s.getPropertyDescriptor)(t,a);Object.defineProperty(t,a,{set(t){let i=n[a];if(!(0,o.isFastEqual)(n[a],t)){u(["beforeChange","beforeChange."+l.join(".")],a,t),(0,r.isPlainObject)(t)&&d(t,l),c&&c.set?c.set.call(e,t):n[a]=t;let o=[];u(["change",...l.reduce((e,t)=>(o.push(t),e.push("change."+o.join(".")),e),[])],l.join("."),i,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:()=>c&&c.get?c.get.call(e):n[a],enumerable:!0,configurable:!0}),(0,r.isPlainObject)(n[a])&&d(n[a],l)}),Object.defineProperty(e,"on",{value:c}))};return d(e),e}},15738:function(e,t,i){i.d(t,{EventHandlersStore:function(){return s}});var n=i(4510),o=i(38837);let r="JoditEventDefaultNamespace";class s{get(e,t){if(this.__store.has(t)){let i=this.__store.get(t);return(0,o.assert)(i,"-"),i[e]}}indexOf(e,t,i){let n=this.get(e,t);if(n){for(let e=0;e<n.length;e+=1)if(n[e].originalCallback===i)return e}return!1}namespaces(e=!1){let t=(0,n.toArray)(this.__store.keys());return e?t.filter(e=>e!==r):t}events(e){let t=this.__store.get(e);return t?Object.keys(t):[]}set(e,t,i,n=!1){let o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),n?o[e].unshift(i):o[e].push(i)}clear(){this.__store.clear()}clearEvents(e,t){let i=this.__store.get(e);i&&i[t]&&(delete i[t],Object.keys(i).length||this.__store.delete(e))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}i.d(t,["defaultNameSpace",0,r])},580:function(e,t,i){i.d(t,{getContainer:function(){return w},getPopupViewRoot:function(){return k},uniqueUid:function(){return b}});var n=i(19306),o=i(72430),r=i(70799),s=i(39955),a=i(12475),l=i(29960),c=i(41180),u=i(80568),d=i(69175),h=i(41876),p=i(57012),f=i(82758),m=i(22732);let g=1,v=new Set;function b(){function e(){return Math.round(g+=10*(Math.random()+1)).toString(16)}let t=e();for(;v.has(t);)t=e();return v.add(t),t}let y=new h.PluginSystem({getContainer:w}),_=new WeakMap;function w(e,t,i="div",o=!1){let c,d=(0,r.isString)(t)?t:t?(0,u.getClassName)(t.prototype):"jodit-utils",h=_.get(e)||{},p=d+i,f=(0,s.isViewObject)(e)?e:e.j;if(!h[p]){let t=f.c;if(c=k(f.o,f.container,e.od.body),o&&(0,n.isJoditObject)(e)&&e.od!==e.ed){t=e.createInside;let o="style"===i?e.ed.head:e.ed.body;c=(0,n.isJoditObject)(e)&&e.o.shadowRoot?e.o.shadowRoot:o}let r=t.element(i,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});f.o.nonce&&("style"===i||"script"===i)&&(0,l.attr)(r,"nonce",f.o.nonce),r.classList.add("jodit_theme_"+(f.o.theme||"default")),m.Dom.append(c,r),h[p]=r,e.hookStatus("beforeDestruct",()=>{f.events.off(r),m.Dom.safeRemove(r),delete h[p],Object.keys(h).length&&_.delete(e)}),_.set(e,h),f.events.fire("getContainer",r)}return h[p].classList.remove("jodit_theme_default","jodit_theme_dark"),h[p].classList.add("jodit_theme_"+(f.o.theme||"default")),h[p]}function k(e,t,i){var n,o,r;return null!=(r=null!=(o=null!=(n=e.popupRoot)?n:e.shadowRoot)?o:m.Dom.closest(t,e=>m.Dom.isHTMLElement(e)&&(m.Dom.isTag(e,"dialog")||["fixed","absolute"].includes((0,c.css)(e,"position"))),i))?r:i}let S=p.eventEmitter;i.d(t,["eventEmitter",0,S,"extendLang",0,e=>{Object.keys(e).forEach(t=>{let i,n=(i=e[t],(0,o.isPlainObject)(i)&&(0,o.isPlainObject)(i.default)?i.default:i);!(0,d.isUnsafeProtoKey)(t)&&(0,o.isPlainObject)(n)&&(Object.prototype.hasOwnProperty.call(f.lang,t)&&(0,o.isPlainObject)(f.lang[t])||(f.lang[t]={}),Object.keys(n).forEach(e=>{(0,d.isUnsafeProtoKey)(e)||(f.lang[t][e]=n[e])}))})},"instances",0,{},"modules",0,{},"pluginSystem",0,y])},29999:function(e,t,i){var n=i(68345);i.d(t,["asArray",0,e=>(0,n.isArray)(e)?e:[e]])},76855:function(e,t,i){i.d(t,{asArray:function(){return n.asArray},splitArray:function(){return o.splitArray},toArray:function(){return r.toArray}});var n=i(29999),o=i(46559),r=i(4510)},46559:function(e,t,i){i.d(t,{splitArray:function(){return n}});function n(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}},4510:function(e,t,i){var n=i(70722),o=i(58844);i.d(t,["toArray",0,function(...e){var t;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(t=(0,o.reset)("Array.from"))?t:Array.from).apply(Array,e)}])},91898:function(e,t,i){i.d(t,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=i(13252)},13252:function(e,t,i){i.d(t,{clearTimeout:function(){return r},setTimeout:function(){return o}});var n=i(82758);function o(e,t,...i){return t?n.globalWindow.setTimeout(e,t,...i):(e.call(null,...i),0)}function r(e){n.globalWindow.clearTimeout(e)}},54765:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return o}});var n=i(82758);function o(){let e;try{let t=n.globalDocument.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}},27613:function(e,t,i){i.d(t,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return d.hasContainer},isAbortError:function(){return o.isAbortError},isArray:function(){return r.isArray},isBoolean:function(){return s.isBoolean},isDestructable:function(){return d.isDestructable},isEqual:function(){return a.isEqual},isFastEqual:function(){return a.isFastEqual},isFunction:function(){return l.isFunction},isHTML:function(){return c.isHTML},isHtmlFromWord:function(){return u.isHtmlFromWord},isInitable:function(){return d.isInitable},isInt:function(){return h.isInt},isJoditObject:function(){return p.isJoditObject},isLicense:function(){return f.isLicense},isMarker:function(){return m.isMarker},isNativeFunction:function(){return g.isNativeFunction},isNumber:function(){return v.isNumber},isNumeric:function(){return b.isNumeric},isPlainObject:function(){return y.isPlainObject},isPromise:function(){return _.isPromise},isSet:function(){return w.isSet},isString:function(){return k.isString},isStringArray:function(){return k.isStringArray},isURL:function(){return S.isURL},isValidName:function(){return C.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return D.isVoid},isWindow:function(){return I.isWindow}});var n=i(54765),o=i(12045),r=i(68345),s=i(87612),a=i(59292),l=i(23282),c=i(58487),u=i(29673),d=i(60132),h=i(72913),p=i(19306),f=i(45603),m=i(78116),g=i(70722),v=i(84767),b=i(29807),y=i(72430),_=i(14773),w=i(42320),k=i(70799),S=i(26049),C=i(37508),E=i(39955),D=i(86068),I=i(52742)},12045:function(e,t,i){i.d(t,{isAbortError:function(){return n}});function n(e){return!!e&&e instanceof DOMException&&"AbortError"===e.name}},68345:function(e,t,i){i.d(t,{isArray:function(){return n}});function n(e){return Array.isArray(e)}},87612:function(e,t,i){i.d(t,{isBoolean:function(){return n}});function n(e){return"boolean"==typeof e}},59292:function(e,t,i){i.d(t,{isEqual:function(){return o},isFastEqual:function(){return r}});var n=i(67462);function o(e,t){return e===t||(0,n.stringify)(e)===(0,n.stringify)(t)}function r(e,t){return e===t}},23282:function(e,t,i){i.d(t,{isFunction:function(){return n}});function n(e){return"function"==typeof e}},29673:function(e,t,i){i.d(t,{isHtmlFromWord:function(){return l}});let n=/\s/,o=/\d/,r=/\w/;function s(e,t){let i=e.indexOf(t);for(;-1!==i;){let r=i+t.length;if(n.test(e.charAt(r))&&o.test(e.charAt(r+1)))return!0;i=e.indexOf(t,r)}return!1}function a(e,t){let i="style="+t,n=e.indexOf(i);for(;-1!==n;){let o=n+i.length,r=e.indexOf(t,o);if(-1===r&&(r=e.length),e.slice(o,r).includes("mso-"))return!0;n=e.indexOf(i,r)}return!1}function l(e){if(e.includes("urn:schemas-microsoft-com:office:word")||e.includes("urn:schemas-microsoft-com:office:excel"))return!0;let t=e.indexOf("<");for(;-1!==t;){if(!r.test(e.charAt(t+1))){t=e.indexOf("<",t+1);continue}let i=e.indexOf(">",t);-1===i&&(i=e.length);let o=e.slice(t,i);if("<meta"===o.slice(0,5).toLowerCase()&&function(e){if(s(e,"Microsoft Word")||s(e,"Microsoft Excel"))return!0;let t=e.toLowerCase(),i=t.indexOf("progid");return -1!==i&&(-1!==t.indexOf("word.",i)||-1!==t.indexOf("excel.",i))||t.includes("libreoffice")||t.includes("openoffice")}(o)||function(e){let t=e.indexOf("class=");for(;-1!==t;){if(t>0&&n.test(e.charAt(t-1))){let i=t+6,n=e.charAt(i);if(('"'===n||"'"===n)&&(i+=1),e.startsWith("Mso",i))return!0}t=e.indexOf("class=",t+6)}return!1}(o))return!0;t=e.indexOf("<",i)}return a(e,"'")||a(e,'"')&&e.includes("<font")}},58487:function(e,t,i){var n=i(70799);let o=/[A-Za-z]/,r=/[A-Za-z0-9]/,s=/\w/;function a(e,t){if(!o.test(e.charAt(t)))return"";let i=t+1;for(;r.test(e.charAt(i));)i+=1;return e.slice(t,i)}i.d(t,["isHTML",0,e=>(0,n.isString)(e)&&function(e){let t=new Map,i=e.indexOf("</");for(;-1!==i;){let n=a(e,i+2);""!==n&&">"===e.charAt(i+2+n.length)&&t.set(n,i),i=e.indexOf("</",i+2)}if(0===t.size)return!1;let n=-1;for(i=e.indexOf("<");-1!==i;){let o=a(e,i+1),r=i+1+o.length;if(""!==o&&!s.test(e.charAt(r))){if(n<r&&(n=e.indexOf(">",r)),-1===n)return!1;let i=t.get(o);if(void 0!==i&&i>n)return!0}i=e.indexOf("<",i+1)}return!1}(e)])},60132:function(e,t,i){i.d(t,{hasContainer:function(){return l},isDestructable:function(){return a},isInitable:function(){return s}});var n=i(2748),o=i(23282),r=i(86068);function s(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.init)}function a(e){return!(0,r.isVoid)(e)&&(0,o.isFunction)(e.destruct)}function l(e){return!(0,r.isVoid)(e)&&n.Dom.isElement(e.container)}},72913:function(e,t,i){i.d(t,{isInt:function(){return r}});var n=i(29807),o=i(70799);function r(e){return(0,o.isString)(e)&&(0,n.isNumeric)(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},19306:function(e,t,i){i.d(t,{isJoditObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&("u">typeof Jodit&&e instanceof Jodit||e.isJodit))}},45603:function(e,t,i){var n=i(70799);i.d(t,["isLicense",0,e=>(0,n.isString)(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)])},78116:function(e,t,i){i.d(t,{isMarker:function(){return o}});var n=i(2748);function o(e){return n.Dom.isMarker(e)}},70722:function(e,t,i){i.d(t,{isNativeFunction:function(){return n}});function n(e){return!!e&&"function"===(typeof e).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(e+""))}},84767:function(e,t,i){i.d(t,{isNumber:function(){return n}});function n(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},29807:function(e,t,i){i.d(t,{isNumeric:function(){return o}});var n=i(70799);function o(e){if((0,n.isString)(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}},72430:function(e,t,i){i.d(t,{isPlainObject:function(){return o}});var n=i(52742);function o(e){return!(!e||"object"!=typeof e||e.nodeType||(0,n.isWindow)(e))&&!(e.constructor&&!({}).hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}},14773:function(e,t,i){i.d(t,{isPromise:function(){return n}});function n(e){return e&&"function"==typeof e.then}},42320:function(e,t,i){i.d(t,{isSet:function(){return o}});var n=i(23282);function o(e){return!!e&&(0,n.isFunction)(e.has)&&(0,n.isFunction)(e.add)&&(0,n.isFunction)(e.delete)}},70799:function(e,t,i){i.d(t,{isString:function(){return o},isStringArray:function(){return r}});var n=i(68345);function o(e){return"string"==typeof e}function r(e){return(0,n.isArray)(e)&&o(e[0])}},26049:function(e,t,i){i.d(t,{isURL:function(){return o}});var n=i(82758);function o(e){if(e.includes(" "))return!1;if("u">typeof URL)try{let t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}let t=n.globalDocument.createElement("a");return t.href=e,!!t.hostname}},37508:function(e,t,i){i.d(t,{isValidName:function(){return n}});function n(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}},39955:function(e,t,i){i.d(t,{isViewObject:function(){return o}});var n=i(23282);function o(e){return!!(e&&e instanceof Object&&(0,n.isFunction)(e.constructor)&&e.isView)}},86068:function(e,t,i){i.d(t,{isVoid:function(){return n}});function n(e){return null==e}},52742:function(e,t,i){i.d(t,{isWindow:function(){return n}});function n(e){return null!=e&&e===e.window}},35278:function(e,t,i){i.d(t,["colorToHex",0,e=>{if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;let t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";let i=parseInt(t[2],10),n=parseInt(t[3],10),o=(parseInt(t[4],10)|n<<8|i<<16).toString(16).toUpperCase();for(;o.length<6;)o="0"+o;return t[1]+"#"+o}])},32574:function(e,t,i){i.d(t,{applyStyles:function(){return h}});var n=i(82758),o=i(2748),r=i(76241),s=i(90723),a=i(49055),l=i(29960),c=i(41180),u=i(76078);function d(e){let t=e.split(";"),i=t.length-1;return t.filter((e,t)=>{let n=/^\s*([a-z-]{1,64})\s*:/i.exec(e);if(!n)return!0;let o=n[1].toLowerCase();return!(o.startsWith("mso-")||o.startsWith("border")&&t!==i)}).join(";").replace(/([0-9.]{1,32})(pt|cm)/gi,(e,t,i)=>{switch(i.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function h(e){let t=(0,r.indexOfOpenTag)(e,"html");if(-1===t)return e;let i=(e=e.substring(t)).toLowerCase().lastIndexOf("</html>");-1!==i&&(e=e.substring(0,i+7));let h=n.globalDocument.createElement("iframe");(0,c.css)(h,"display","none"),o.Dom.append(n.globalDocument.body,h);let p="";try{let t=h.contentDocument||(h.contentWindow?h.contentWindow.document:null);if(t){t.open(),t.write(e),t.close();let i=(0,s.readWordListItems)(t.body);o.Dom.each(t.body,e=>{o.Dom.isElement(e)&&/mso-list:\s*ignore/i.test((0,l.attr)(e,"style")||"")&&o.Dom.safeRemove(e)});try{for(let e=0;e<t.styleSheets.length;e+=1){let i=t.styleSheets[e].cssRules;for(let e=0;e<i.length;e+=1)""!==i[e].selectorText&&(0,u.$$)(i[e].selectorText,t.body).forEach(t=>{t.style.cssText=d(i[e].style.cssText+";"+t.style.cssText)})}}catch(e){if(!n.IS_PROD)throw e}(0,s.wrapWordListItems)(i),o.Dom.each(t.body,e=>{if(o.Dom.isElement(e)){let t=(0,l.attr)(e,"style");t&&(e.style.cssText=d(t)),(0,l.attr)(e,"style")||(0,l.attr)(e,"style",null)}}),p=t.firstChild?(0,a.trim)(t.body.innerHTML):""}}catch(e){}finally{o.Dom.safeRemove(h)}return p&&(e=p),(0,a.trim)((0,r.removeWordWrappers)(e))}},53212:function(e,t,i){i.d(t,{cleanFromWord:function(){return u}});var n=i(82758),o=i(2748),r=i(4510),s=i(76241),a=i(90723),l=i(49055),c=i(29960);function u(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));let t="";try{let i=n.globalDocument.createElement("div");i.innerHTML=e;let s=[],l=(0,a.readWordListItems)(i);i.firstChild&&o.Dom.each(i,e=>{if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":s.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":o.Dom.unwrap(e);break;default:if(/mso-list:\s*ignore/i.test((0,c.attr)(e,"style")||"")){s.push(e);break}(0,r.toArray)(e.attributes).forEach(t=>{-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&(0,c.attrRaw)(e,t.name,null)})}break;case Node.TEXT_NODE:break;default:s.push(e)}}),o.Dom.safeRemove.apply(null,s),(0,a.wrapWordListItems)(l),t=i.innerHTML}catch(e){}return t&&(e=t),e=e.split(/(\n)/).filter(l.trim).join(`
10
10
  `),(0,s.removeWordWrappers)(e)}},53326:function(e,t,i){i.d(t,{htmlspecialchars:function(){return o}});var n=i(82758);function o(e){let t=n.globalDocument.createElement("div");return t.textContent=e,t.innerHTML}},75275:function(e,t,i){i.d(t,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return o.cleanFromWord},htmlspecialchars:function(){return r.htmlspecialchars},indexOfClosingTag:function(){return c.indexOfClosingTag},indexOfOpenTag:function(){return c.indexOfOpenTag},nl2br:function(){return s.nl2br},removeBetween:function(){return c.removeBetween},removeEmptyMarkedTags:function(){return c.removeEmptyMarkedTags},removeTagsByPrefix:function(){return c.removeTagsByPrefix},removeWordWrappers:function(){return c.removeWordWrappers},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},stripTags:function(){return l.stripTags},unwrapMarkedTags:function(){return c.unwrapMarkedTags}});var n=i(32574),o=i(53212),r=i(53326),s=i(45971),a=i(86518),l=i(91003),c=i(76241)},45971:function(e,t,i){i.d(t,{nl2br:function(){return n}});function n(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}},86518:function(e,t,i){i.d(t,{safeHTML:function(){return l},sanitizeHTMLElement:function(){return m}});var n=i(2748),o=i(43555),r=i(29960);let s=new Set(["foreignobject","annotation-xml","desc","title"]),a=e=>!!(e&&/^(math|svg)$/i.test(e.nodeName));function l(e,t){var i;if(!n.Dom.isElement(e)&&!n.Dom.isFragment(e))return;let r=[];for(let t of(n.Dom.each(e,e=>{n.Dom.isElement(e)&&n.Dom.up(e.parentNode,a)&&r.push(e)}),r))n.Dom.isOrContains(e,t)&&function(e){if("http://www.w3.org/1999/xhtml"!==e.namespaceURI||null==n.Dom.up(e,a))return!1;for(let t=e.parentElement;t;t=t.parentElement){let e=t.nodeName.toLowerCase();if("math"===e||"svg"===e)break;if(s.has(e))return!1}return!0}(t)&&n.Dom.safeRemove(t);let l=[];for(let t of(n.Dom.each(e,e=>{n.Dom.isElement(e)&&"NOSCRIPT"===e.nodeName&&l.push(e)}),l))n.Dom.safeRemove(t);let u=null!=(i=t.removeEventAttributes)?i:t.removeOnError,d=e=>{if(n.Dom.isElement(e)&&(u&&c(e),m(e,t),t.safeLinksTarget&&"A"===e.nodeName&&"_blank"===(0,o.attr)(e,"target"))){let t=((0,o.attr)(e,"rel")||"").split(/\s+/).filter(Boolean);t.includes("noopener")||t.push("noopener"),t.includes("noreferrer")||t.push("noreferrer"),(0,o.attr)(e,"rel",t.join(" "))}};d(e),n.Dom.each(e,d)}function c(e){if(!n.Dom.isElement(e))return!1;let t=!1,i=[];for(let t=0;t<e.attributes.length;t++)e.attributes[t].name.toLowerCase().startsWith("on")&&i.push(e.attributes[t].name);for(let n of i)(0,r.attrRaw)(e,n,null),t=!0;return t}let u=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["animate","set","animatemotion","animatetransform"]),h=["values","from","to","by"],p=new Set(["iframe","frame","object","embed"]);function f(e,t){let i=e.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(i)||/^data:(?:text\/html|application\/xhtml)/.test(i))||/^data:image\/svg/.test(i)&&p.has(t)}function m(e,{safeJavaScriptLink:t,removeOnError:i,removeEventAttributes:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(e))return!1;let a=!1;s&&c(e)&&(a=!0),i&&e.hasAttribute("onerror")&&((0,o.attr)(e,"onerror",null),a=!0);let l=e.nodeName.toLowerCase(),p=(0,o.attr)(e,"href");if(t&&p&&f(p,l)){let t="u">typeof location?location.protocol:"http:";(0,o.attr)(e,"href",t+"//"+p),a=!0}if(t){for(let t of(e.hasAttribute("srcdoc")&&((0,o.attr)(e,"srcdoc",null),a=!0),u)){let i=(0,r.attrRaw)(e,t);i&&f(i,l)&&((0,o.attr)(e,t,null),a=!0)}if(d.has(l))for(let t of h){let i=(0,r.attrRaw)(e,t);i&&i.split(";").some(e=>f(e,"a"))&&((0,o.attr)(e,t,null),a=!0)}}return a}},91003:function(e,t,i){i.d(t,{stripTags:function(){return function e(t,i=document,u=null,d=!1){let h=i.createElement("div");(0,o.isString)(t)?h.innerHTML=t:n.Dom.append(h,t);let p=[];n.Dom.each(h,e=>{n.Dom.isElement(e)&&p.push(e)});let f=new Set,m=()=>{let e=i.createTextNode(d?"%%%jodit-single-br%%%":" ");return f.add(e),e};return p.forEach(t=>{if(!t.parentNode)return;if(u&&n.Dom.isTag(t,u)){let o=t.nodeName.toLowerCase(),r=n.Dom.isTag(t,c)?`%%%jodit-single-${o}%%%`:`%%%jodit-${o}%%%${e(t.innerHTML,i,u,d)}%%%/jodit-${o}%%%`;n.Dom.before(t,i.createTextNode(r)),n.Dom.safeRemove(t);return}if(n.Dom.isTag(t,l))return void n.Dom.safeRemove(t);if(!n.Dom.isTag(t,s))return;let o=t.previousSibling;n.Dom.isTag(t,a)&&o&&!f.has(o)&&!(n.Dom.isText(o)&&/\s$/.test(o.nodeValue||""))&&n.Dom.before(t,m());let r=t.nextSibling;!(n.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&n.Dom.before(r,m())}),(0,r.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(e,t,i,n)=>`<${t?"/":""}${n}>`)}}});var n=i(2748),o=i(70799),r=i(49055);let s=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr","ul","ol","li"]),a=new Set(["ul","ol"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},76241:function(e,t,i){i.d(t,{indexOfClosingTag:function(){return a},indexOfOpenTag:function(){return u},removeBetween:function(){return f},removeEmptyMarkedTags:function(){return m},removeTagsByPrefix:function(){return l},removeWordWrappers:function(){return c},unwrapMarkedTags:function(){return h}});let n=/[a-z0-9:-]/i,o=["<html","</html","<col","</col","<o:p","</o:p"];function r(e,t,i){return e.substr(t,i.length).toLowerCase()===i}function s(e,t,i){let n=e.indexOf("<",i);for(;-1!==n;){for(let i of t)if(r(e,n,i))return[n,i];n=e.indexOf("<",n+1)}return[-1,""]}function a(e,t,i){let n="</"+t+">",o=e.indexOf("</",i);for(;-1!==o;){if(r(e,o,n))return o;o=e.indexOf("</",o+2)}return -1}function l(e,t){let i=t.map(e=>e.toLowerCase()),n="",o=0;for(;;){let[t]=s(e,i,o);if(-1===t)break;let r=e.indexOf(">",t);if(-1===r)break;n+=e.slice(o,t),o=r+1}return 0===o?e:n+e.slice(o)}function c(e){return l(l(e,o),["\x3c!--"])}function u(e,t){let i="<"+t.toLowerCase(),n=0;for(;;){let[t]=s(e,[i],n);if(-1===t)return -1;let o=e.charAt(t+i.length);if(">"===o)return t;if(/\s/.test(o)){if(-1===e.indexOf(">",t))return -1;return t}n=t+1}}function d(e,t){let i=t;for(;n.test(e.charAt(i));)i+=1;return e.slice(t,i)}function h(e,t,i,n){let o=i.toLowerCase(),r=[null==t?"<":"<"+t.toLowerCase()],a=function(e){let t=new Map,i=e.indexOf("</");for(;-1!==i;){let n=d(e,i+2).toLowerCase();if(""!==n&&">"===e.charAt(i+2+n.length)){let e=t.get(n);e?e.push(i):t.set(n,[i])}i=e.indexOf("</",i+2)}return t}(e),l="",c=0;for(;;){let[i]=s(e,r,c);if(-1===i)break;let u=(null!=t?t:d(e,i+1)).toLowerCase(),h=e.indexOf(">",i);if(-1===h)break;let p=""!==u&&e.slice(i,h).toLowerCase().includes(o)?function(e,t){if(!e)return -1;let i=0,n=e.length;for(;i<n;){let o=i+n>>1;e[o]<t?i=o+1:n=o}return i<e.length?e[i]:-1}(a.get(u),h+1):-1;if(-1===p){l+=e.slice(c,i+1),c=i+1;continue}let f=e.slice(h+1,p),m=p+u.length+3;l+=e.slice(c,i),l+=""!==f&&(!n||n(f))?f:e.slice(i,m),c=m}return 0===c?e:l+e.slice(c)}function p(e,t,i){let n=t.charAt(0),o=e.indexOf(n,i);for(;-1!==o;){if(r(e,o,t))return o;o=e.indexOf(n,o+1)}return -1}function f(e,t,i,n,o=""){let r=t.toLowerCase(),s=o.toLowerCase(),a="",l=0;for(;;){let o=p(e,r,l);if(-1===o)break;let c=p(e,i,o+t.length);if(-1===c)break;if(""!==s&&!e.slice(o,c).toLowerCase().includes(s)){a+=e.slice(l,c+i.length),l=c+i.length;continue}let u=p(e,n,c+i.length);if(-1===u)break;a+=e.slice(l,o),l=u+n.length}return 0===l?e:a+e.slice(l)}function m(e,t,i){let n=t.toLowerCase(),o=i.toLowerCase(),a="</"+n+">",l="",c=0;for(;;){let[t]=s(e,["<"+n],c);if(-1===t)break;let i=e.indexOf(">",t);if(-1===i)break;if(e.slice(t,i).toLowerCase().includes(o)&&r(e,i+1,a)){l+=e.slice(c,t),c=i+1+a.length;continue}l+=e.slice(c,i+1),c=i+1}return 0===c?e:l+e.slice(c)}},90723:function(e,t,i){i.d(t,{readWordListItems:function(){return a},wrapWordListItems:function(){return l}});var n=i(2748),o=i(4510),r=i(29960);let s={i:1,v:5,x:10,l:50,c:100,d:500,m:1e3};function a(e){let t=[];return(0,o.toArray)(e.querySelectorAll("p")).forEach(e=>{let i=/mso-list:\s*l(\d+)\s+level(\d+)(?:\s+lfo(\d+))?/i.exec((0,r.attr)(e,"style")||"");if(!i)return;let a=(0,o.toArray)(e.querySelectorAll("[style]")).find(e=>/mso-list:\s*ignore/i.test((0,r.attr)(e,"style")||""));t.push({paragraph:e,list:`${i[1]}:${i[3]||""}`,level:Number(i[2]),...function(e){let t=e.replace(/\s+/g,""),i=/^\(?(?:\d+\.)*(\d+)[.)]?$/.exec(t);if(i)return{tag:"ol",listStyleType:null,start:Number(i[1])};let n=/^\(?([a-z]+|[A-Z]+)[.)]$/.exec(t);if(n){let e=n[1],t=e.toLowerCase(),i=e!==t;if(/^[ivxlcdm]+$/.test(t)&&(t.length>1||"i"===t))return{tag:"ol",listStyleType:i?"upper-roman":"lower-roman",start:function(e){let t=0;for(let i=0;i<e.length;i+=1){let n=s[e[i]];t+=(s[e[i+1]]||0)>n?-n:n}return t}(t)};if(/^([a-z])\1*$/.test(t))return{tag:"ol",listStyleType:i?"upper-alpha":"lower-alpha",start:(t.length-1)*26+t.charCodeAt(0)-96}}return{tag:"ul",listStyleType:null,start:1}}((null==a?void 0:a.textContent)||"")}),a&&function(e,t){let i=e.parentNode;for(n.Dom.safeRemove(e);i&&i!==t&&n.Dom.isElement(i)&&n.Dom.isEmpty(i);){let e=i.parentNode;n.Dom.safeRemove(i),i=e}}(a,e)}),t}function l(e){let t=[],i=e.map((t,i)=>{var o;return i>0&&(o=e[i-1],n.Dom.findSibling(t.paragraph,!0,e=>!n.Dom.isEmptyTextNode(e)&&!n.Dom.isComment(e))===o.paragraph)});e.forEach((e,s)=>{let{paragraph:a}=e;for(i[s]||(t=[]);t.length&&t[t.length-1].level>e.level;)t.pop();let l=t[t.length-1];l&&l.level===e.level&&l.list!==e.list&&(t.pop(),l=t[t.length-1]);let c=a.ownerDocument;if(!l||l.level<e.level){let i=c.createElement(e.tag);e.listStyleType&&(i.style.listStyleType=e.listStyleType),"ol"===e.tag&&1!==e.start&&(0,r.attr)(i,"start",e.start),l&&l.li?l.li.appendChild(i):n.Dom.before(a,i),l={level:e.level,list:e.list,element:i},t.push(l)}let u=c.createElement("li");(0,o.toArray)(a.attributes).forEach(e=>{"class"!==e.name&&u.setAttribute(e.name,e.value)}),u.style.removeProperty("margin-left"),u.style.removeProperty("text-indent"),(0,r.attr)(u,"style")||(0,r.attr)(u,"style",null),n.Dom.moveContent(a,u),n.Dom.safeRemove(a),l.element.appendChild(u),l.li=u})}},21537:function(e,t,i){i.r(t),i.d(t,{$$:function(){return d.$$},AnswerError:function(){return d.AnswerError},CamelCaseToKebabCase:function(){return u.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return d.ConnectionError},LimitedStack:function(){return d.LimitedStack},NUMBER_FIELDS_REG:function(){return l.NUMBER_FIELDS_REG},OptionsError:function(){return d.OptionsError},UNSAFE_PROTO_KEYS:function(){return d.UNSAFE_PROTO_KEYS},abort:function(){return d.abort},alignElement:function(){return d.alignElement},alreadyLoadedList:function(){return d.alreadyLoadedList},answer:function(){return d.answer},appendScriptAsync:function(){return d.appendScriptAsync},appendStyleAsync:function(){return d.appendStyleAsync},applyStyles:function(){return a.applyStyles},asArray:function(){return n.asArray},assert:function(){return d.assert},attr:function(){return d.attr},attrRaw:function(){return d.attrRaw},browser:function(){return d.browser},buildQuery:function(){return d.buildQuery},call:function(){return d.call},callPromise:function(){return d.callPromise},callThis:function(){return d.callThis},camelCase:function(){return u.camelCase},cleanFromWord:function(){return a.cleanFromWord},clearAlign:function(){return d.clearAlign},clearCenterAlign:function(){return d.clearCenterAlign},clearHAlign:function(){return d.clearHAlign},clearTimeout:function(){return o.clearTimeout},cns:function(){return d.cns},colorToHex:function(){return s.colorToHex},completeUrl:function(){return d.completeUrl},connection:function(){return d.connection},convertMediaUrlToVideoEmbed:function(){return d.convertMediaUrlToVideoEmbed},createMediaWrapper:function(){return d.createMediaWrapper},css:function(){return d.css},cssInline:function(){return d.cssInline},cssPath:function(){return d.cssPath},ctrlKey:function(){return d.ctrlKey},dataBind:function(){return d.dataBind},defaultLanguage:function(){return d.defaultLanguage},error:function(){return d.error},fastClone:function(){return d.fastClone},fuzzySearchIndex:function(){return u.fuzzySearchIndex},get:function(){return d.get},getAlignClasses:function(){return d.getAlignClasses},getAnchorName:function(){return d.getAnchorName},getAnchors:function(){return d.getAnchors},getCaptionWrapper:function(){return d.getCaptionWrapper},getCaptionedImage:function(){return d.getCaptionedImage},getClassName:function(){return d.getClassName},getContentWidth:function(){return c.getContentWidth},getDataTransfer:function(){return d.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getHAlign:function(){return d.getHAlign},getImageCaption:function(){return d.getImageCaption},getMediaWrapper:function(){return d.getMediaWrapper},getPropertyDescriptor:function(){return d.getPropertyDescriptor},getScrollParent:function(){return c.getScrollParent},getWrappedMedia:function(){return d.getWrappedMedia},getXPathByElement:function(){return d.getXPathByElement},hAlignElement:function(){return d.hAlignElement},hasBrowserColorPicker:function(){return r.hasBrowserColorPicker},hasContainer:function(){return r.hasContainer},htmlspecialchars:function(){return a.htmlspecialchars},humanSizeToBytes:function(){return d.humanSizeToBytes},i18n:function(){return u.i18n},inView:function(){return d.inView},indexOfClosingTag:function(){return a.indexOfClosingTag},indexOfOpenTag:function(){return a.indexOfOpenTag},innerWidth:function(){return c.innerWidth},isAbortError:function(){return r.isAbortError},isAnchor:function(){return d.isAnchor},isArray:function(){return r.isArray},isAtom:function(){return d.isAtom},isBoolean:function(){return r.isBoolean},isDestructable:function(){return r.isDestructable},isEqual:function(){return r.isEqual},isFastEqual:function(){return r.isFastEqual},isFunction:function(){return r.isFunction},isHTML:function(){return r.isHTML},isHtmlFromWord:function(){return r.isHtmlFromWord},isInitable:function(){return r.isInitable},isInt:function(){return r.isInt},isJoditObject:function(){return r.isJoditObject},isLicense:function(){return r.isLicense},isMarker:function(){return r.isMarker},isNativeFunction:function(){return r.isNativeFunction},isNumber:function(){return r.isNumber},isNumeric:function(){return r.isNumeric},isPlainObject:function(){return r.isPlainObject},isPromise:function(){return r.isPromise},isSet:function(){return r.isSet},isString:function(){return r.isString},isStringArray:function(){return r.isStringArray},isURL:function(){return r.isURL},isUnsafeProtoKey:function(){return d.isUnsafeProtoKey},isValidName:function(){return r.isValidName},isViewObject:function(){return r.isViewObject},isVoid:function(){return r.isVoid},isWindow:function(){return r.isWindow},kebabCase:function(){return u.kebabCase},keepNames:function(){return d.keepNames},keys:function(){return d.keys},loadImage:function(){return d.loadImage},loadNext:function(){return d.loadNext},loadNextStyle:function(){return d.loadNextStyle},markAsAtomic:function(){return d.markAsAtomic},markDeprecated:function(){return d.markDeprecated},markOwner:function(){return d.markOwner},memorizeExec:function(){return d.memorizeExec},nl2br:function(){return a.nl2br},normalizeColor:function(){return l.normalizeColor},normalizeCssNumericValue:function(){return l.normalizeCssNumericValue},normalizeCssValue:function(){return l.normalizeCssValue},normalizeKeyAliases:function(){return l.normalizeKeyAliases},normalizeLicense:function(){return l.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return l.normalizeSize},normalizeUrl:function(){return l.normalizeUrl},offset:function(){return c.offset},options:function(){return d.options},parseQuery:function(){return d.parseQuery},position:function(){return c.position},prepareEmbedCode:function(){return d.prepareEmbedCode},prepareMedia:function(){return d.prepareMedia},previewBox:function(){return d.previewBox},refs:function(){return d.refs},removeBetween:function(){return a.removeBetween},removeEmptyMarkedTags:function(){return a.removeEmptyMarkedTags},removeTagsByPrefix:function(){return a.removeTagsByPrefix},removeWordWrappers:function(){return a.removeWordWrappers},reset:function(){return d.reset},resolveElement:function(){return d.resolveElement},safeHTML:function(){return a.safeHTML},sanitizeHTMLElement:function(){return a.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return d.scrollIntoViewIfNeeded},set:function(){return d.set},setTimeout:function(){return o.setTimeout},size:function(){return c.size},splitArray:function(){return n.splitArray},sprintf:function(){return u.sprintf},stringify:function(){return u.stringify},stripTags:function(){return a.stripTags},toArray:function(){return n.toArray},trim:function(){return u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},trimInvEnd:function(){return u.trimInvEnd},ucfirst:function(){return u.ucfirst},unwrapMarkedTags:function(){return a.unwrapMarkedTags},wrapMedia:function(){return d.wrapMedia}});var n=i(76855),o=i(91898),r=i(27613),s=i(35278),a=i(75275),l=i(71521),c=i(56175),u=i(59007),d=i(43555)},71521:function(e,t,i){i.d(t,{NUMBER_FIELDS_REG:function(){return o.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return o.normalizeCssNumericValue},normalizeCssValue:function(){return o.normalizeCssValue},normalizeKeyAliases:function(){return r.normalizeKeyAliases},normalizeLicense:function(){return s.normalizeLicense},normalizePath:function(){return a.normalizePath},normalizeRelativePath:function(){return l.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return u.normalizeUrl}});var n=i(21224),o=i(3760),r=i(49033),s=i(12972),a=i(9992),l=i(70091),c=i(46334),u=i(37406)},21224:function(e,t,i){var n=i(35278),o=i(49055);i.d(t,["normalizeColor",0,e=>{let t=["#"],i=(0,n.colorToHex)(e);if(!i)return!1;if(3===(i=(i=(0,o.trim)(i.toUpperCase())).substring(1)).length){for(let e=0;e<3;e+=1)t.push(i[e]),t.push(i[e]);return t.join("")}return i.length>6&&(i=i.slice(0,6)),"#"+i}])},3760:function(e,t,i){i.d(t,{normalizeCssNumericValue:function(){return l},normalizeCssValue:function(){return c}});var n=i(29807),o=i(86068),r=i(35278),s=i(12475);let a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(e,t){return!(0,o.isVoid)(t)&&a.test(e)&&(0,n.isNumeric)(t.toString())?parseInt(t.toString(),10)+"px":t}function c(e,t){if("font-weight"===(0,s.kebabCase)(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&(0,r.colorToHex)(t.toString())||t}i.d(t,["NUMBER_FIELDS_REG",0,a])},49033:function(e,t,i){i.d(t,{normalizeKeyAliases:function(){return r}});var n=i(82758),o=i(49055);function r(e){let t={},i={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(e=>(0,o.trim)(e.toLowerCase())).map(e=>n.KEY_ALIASES[e]||e).sort((e,t)=>i[e]&&!i[t]?-1:!i[e]&&i[t]?1:i[e]&&i[t]?i[e]-i[t]:e>t?1:-1).filter(e=>!t[e]&&""!==e&&(t[e]=!0)).join("+")}},12972:function(e,t,i){i.d(t,["normalizeLicense",0,(e,t=8)=>{let i=[];for(;e.length;)i.push(e.substr(0,t)),e=e.substr(t);return i[1]=i[1].replace(/./g,"*"),i[2]=i[2].replace(/./g,"*"),i.join("-")}])},9992:function(e,t,i){var n=i(49055);i.d(t,["normalizePath",0,(...e)=>e.filter(e=>(0,n.trim)(e).length).map((t,i)=>(t=t.replace(/([^:])[\\/]+/g,"$1/"),i&&(t=t.replace(/^\//,"")),i!==e.length-1&&(t=t.replace(/\/$/,"")),t)).join("/")])},70091:function(e,t,i){i.d(t,["normalizeRelativePath",0,e=>e.split("/").reduce((e,t)=>{switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")])},46334:function(e,t,i){i.d(t,["normalizeSize",0,(e,t)=>/^[0-9]+$/.test(e.toString())?e+t:e.toString()])},37406:function(e,t,i){i.d(t,["normalizeUrl",0,(...e)=>e.filter(e=>e.length).map(e=>e.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")])},44506:function(e,t,i){i.d(t,["getContentWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.offsetWidth-parseInt(i.getPropertyValue("padding-left")||"0",10)-parseInt(i.getPropertyValue("padding-right")||"0",10)}])},35224:function(e,t,i){i.d(t,{getFixedPositionOffset:function(){return n}});function n(e){var t,i;let n=null==(t=e.ownerDocument)?void 0:t.defaultView,o=e.parentElement;for(;n&&o;){if(""!==(i=n.getComputedStyle(o)).transform&&"none"!==i.transform||""!==i.perspective&&"none"!==i.perspective||""!==i.filter&&"none"!==i.filter||"transform"===i.willChange||"perspective"===i.willChange||"filter"===i.willChange||"paint"===i.contain||"layout"===i.contain||"strict"===i.contain||"content"===i.contain){let e=o.getBoundingClientRect();return{x:e.left,y:e.top}}o=o.parentElement}let r=null==n?void 0:n.visualViewport;return n&&r&&(r.offsetLeft||r.offsetTop)&&1>Math.abs(r.pageLeft-n.scrollX)&&1>Math.abs(r.pageTop-n.scrollY)?{x:-Math.round(r.offsetLeft),y:-Math.round(r.offsetTop)}:{x:0,y:0}}},16442:function(e,t,i){i.d(t,{getScrollParent:function(){return function e(t){if(!t)return null;let i=o.Dom.isHTMLElement(t),s=i&&(0,r.css)(t,"overflowY");return i&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:e(t.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=i(82758),o=i(2748),r=i(43555)},56175:function(e,t,i){i.d(t,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return o.getFixedPositionOffset},getScrollParent:function(){return r.getScrollParent},innerWidth:function(){return s.innerWidth},offset:function(){return l.offset},position:function(){return c.position},size:function(){return a.size}});var n=i(44506),o=i(35224),r=i(16442),s=i(81630),a=i(21496),l=i(81284),c=i(5700)},81630:function(e,t,i){i.d(t,["innerWidth",0,(e,t)=>{let i=t.getComputedStyle(e);return e.clientWidth-(parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0"))}])},21496:function(e,t,i){i.d(t,{size:function(){return o}});var n=i(27613);function o(e){return(0,n.isString)(e)||(0,n.isArray)(e)?e.length:(0,n.isPlainObject)(e)?Object.keys(e).length:0}},81284:function(e,t,i){let n=(e,t,i,o=!1)=>{let r,s,a;try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}let l=i.body,c=i.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},u=i.defaultView||i.parentWindow,d=u.pageYOffset||c.scrollTop||l.scrollTop,h=u.pageXOffset||c.scrollLeft||l.scrollLeft,p=c.clientTop||l.clientTop||0,f=c.clientLeft||l.clientLeft||0,m=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&m){let{top:e,left:i}=n(m,t,t.od,!0);s=r.top+e,a=r.left+i}else s=r.top+d-p,a=r.left+h-f;return{top:Math.round(s),left:Math.round(a),width:r.width,height:r.height}};i.d(t,["offset",0,n])},5700:function(e,t,i){i.d(t,{position:function(){return function e(t,i,o=!1){var r,s;let a=t.getBoundingClientRect(),l=a.left,c=a.top;if((0,n.isJoditObject)(i)&&i.iframe&&i.ed.body.contains(t)&&!o){let{left:t,top:n}=e(i.iframe,i,!0);l+=t,c+=n}return{left:Math.round(l),top:Math.round(c),width:Math.round(null!=(r=t.offsetWidth)?r:a.width),height:Math.round(null!=(s=t.offsetHeight)?s:a.height)}}}});var n=i(19306)},87058:function(e,t,i){i.d(t,["camelCase",0,e=>e.replace(/([-_])(.)/g,(e,t,i)=>i.toUpperCase())])},67477:function(e,t,i){i.d(t,{fuzzySearchIndex:function(){return o}});var n=i(82758);function o(e,t,i=0,r=1){let s=0,a,l=-1,c=0,u=0;for(a=i;s<e.length&&a<t.length;)e[s].toLowerCase()===t[a].toLowerCase()?(s++,c++,u=0,-1===l&&(l=a)):s>0&&(u>=r&&t[a]!==n.INVISIBLE_SPACE?(s=0,l=-1,c=0,u=0,a--):(u++,c++)),a++;return s===e.length?[l,c]:[-1,0]}},56967:function(e,t,i){i.d(t,{i18n:function(){return c}});var n=i(82758),o=i(70799),r=i(36409),s=i(43555),a=i(6441);let l=(e,t)=>{if(!t||!t.length)return e;let i=/%([sd])/g,n=i.exec(e),o=e,r=0;for(;n&&void 0!==t[r];)o=o.replace(n[0],t[r].toString()),r+=1,n=i.exec(e);return o};function c(e,t,i){if(!(0,o.isString)(e))throw(0,s.error)("i18n: Need string in first argument");if(!e.length)return e;let c=!!(null==i?void 0:i.debugLanguage),u={},d=e=>t&&t.length?l(e,t):e,h=(0,s.defaultLanguage)(a.Config.defaultOptions.language,a.Config.defaultOptions.language),p=(0,s.defaultLanguage)(null==i?void 0:i.language,h),f=t=>{if(!t)return;if((0,o.isString)(t[e]))return d(t[e]);let i=e.toLowerCase();if((0,o.isString)(t[i]))return d(t[i]);let n=(0,r.ucfirst)(e);if((0,o.isString)(t[n]))return d(t[n])};void 0!==n.lang[p]?u=n.lang[p]:c||(u=void 0!==n.lang[h]?n.lang[h]:n.lang.en);let m=null==i?void 0:i.i18n;if(m&&m[p]){let e=f(m[p]);if(e)return e}return f(u)||(!c&&n.lang.en&&(0,o.isString)(n.lang.en[e])&&n.lang.en[e]?d(n.lang.en[e]):c?"{"+e+"}":(n.IS_PROD,d(e)))}i.d(t,["sprintf",0,l])},59007:function(e,t,i){i.d(t,{CamelCaseToKebabCase:function(){return s.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return o.fuzzySearchIndex},i18n:function(){return r.i18n},kebabCase:function(){return s.kebabCase},sprintf:function(){return r.sprintf},stringify:function(){return a.stringify},trim:function(){return l.trim},trimChars:function(){return l.trimChars},trimInv:function(){return l.trimInv},trimInvEnd:function(){return l.trimInvEnd},ucfirst:function(){return c.ucfirst}});var n=i(87058),o=i(67477),r=i(56967),s=i(12475),a=i(67462),l=i(49055),c=i(36409)},12475:function(e,t,i){i.d(t,["CamelCaseToKebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),"kebabCase",0,e=>e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()])},67462:function(e,t,i){i.d(t,{stringify:function(){return n}});function n(e,t={}){if("object"!=typeof e)return e+"";let i=new Set(t.excludeKeys),o=new WeakMap;return JSON.stringify(e,(e,t)=>{if(!i.has(e)){if("object"==typeof t&&null!=t){if(o.get(t))return"[refObject]";o.set(t,!0)}return t}},t.prettify)}},49055:function(e,t,i){i.d(t,{trim:function(){return s},trimChars:function(){return a},trimInv:function(){return l},trimInvEnd:function(){return c}});let n=/[\s\u200b]/,o=/\uFEFF/;function r(e,t){let i=0,n=e.length;for(;i<n&&t.test(e.charAt(i));)i+=1;for(;n>i&&t.test(e.charAt(n-1));)n-=1;return 0===i&&n===e.length?e:e.slice(i,n)}function s(e){return r(e,n)}function a(e,t){return r(e,RegExp(`[${t}]`))}function l(e){return r(e,o)}function c(e){let t=e.length;for(;t>0&&o.test(e.charAt(t-1));)t-=1;return t===e.length?e:e.slice(0,t)}},36409:function(e,t,i){i.d(t,{ucfirst:function(){return n}});function n(e){return e.length?e[0].toUpperCase()+e.substring(1):""}},25726:function(e,t,i){i.d(t,{alignElement:function(){return g},clearAlign:function(){return f},clearHAlign:function(){return h},getAlignClasses:function(){return u},getHAlign:function(){return p},hAlignElement:function(){return d}});var n=i(22732),o=i(68345),r=i(29960),s=i(41180),a=i(68645),l=i(61477);let c=e=>((0,o.isArray)(e)?e:[null!=e?e:""]).map(e=>e.split(/\s+/).filter(Boolean)).filter(e=>e.length);function u(e,t){var i,o,r;if(!t)return null;let s=n.Dom.isTag(t,new Set(["jodit","jodit-media"]))?t.firstElementChild:null!=(i=(0,l.getWrappedMedia)(e,t))?i:(0,a.getCaptionedImage)(e,t);return null!=(r=null==(o=e.o.alignClasses)?void 0:o[(null!=s?s:t).nodeName.toLowerCase()])?r:null}function d(e,t,i){var n;if(i){h(e,i),e.classList.add(...null!=(n=c(i[t||"normal"])[0])?n:[]);return}t&&"normal"!==t?"center"!==t?((0,s.css)(e,"float",t),(0,s.clearCenterAlign)(e)):(0,s.css)(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,s.css)(e,"float")&&-1!==["right","left"].indexOf((0,s.css)(e,"float").toString().toLowerCase())&&(0,s.css)(e,"float",""),(0,s.clearCenterAlign)(e))}function h(e,t){d(e,"normal"),t&&Object.values(t).forEach(t=>c(t).forEach(t=>e.classList.remove(...t))),["class","style"].forEach(t=>{var i;(null==(i=(0,r.attr)(e,t))?void 0:i.trim())||(0,r.attr)(e,t,null)})}function p(e,t){if(t){for(let i of["left","right","center","normal"])if(c(t[i]).some(t=>t.every(t=>e.classList.contains(t))))return i}let i=(0,s.cssInline)(e,"float").toLowerCase();return"left"===i||"right"===i?i:"block"===(0,s.css)(e,"display")&&"auto"===(0,s.cssInline)(e,"margin-left")&&"auto"===(0,s.cssInline)(e,"margin-right")?"center":"normal"}function f(e){n.Dom.each(e,e=>{n.Dom.isHTMLElement(e)&&(0,s.cssInline)(e,"textAlign")&&((0,s.css)(e,"textAlign",""),((0,r.attr)(e,"style")||"").trim().length||(0,r.attr)(e,"style",null))})}let m=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function g(e,t){if(n.Dom.isNode(t)&&n.Dom.isElement(t)){f(t);let i=m.get(e.toLowerCase());i&&(0,s.css)(t,"textAlign",i)}}},70442:function(e,t,i){i.d(t,{getAnchorName:function(){return r},getAnchors:function(){return a},isAnchor:function(){return s}});var n=i(2748),o=i(4510);function r(e){return e.id||e.getAttribute("name")||""}function s(e){return n.Dom.isTag(e,"a")&&!e.hasAttribute("href")&&!e.hasChildNodes()&&""!==r(e)}function a(e){return(0,o.toArray)(e.querySelectorAll("a")).filter(s)}},63799:function(e,t,i){i.d(t,{loadNext:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?c(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}},loadNextStyle:function(){return function e(t,i,n=0){return(0,o.isString)(i[n])?u(t,i[n]).then(()=>e(t,i,n+1)):Promise.resolve()}}});var n=i(2748),o=i(70799),r=i(29960),s=i(66292);let a=new Map,l=e=>(t,i)=>{if(a.has(i))return a.get(i);let n=e(t,i);return a.set(i,n),n},c=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,s.completeUrl)(t)});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.e.one(a,"error",o).one(a,"load",i),n.Dom.append(e.od.body,a)})),u=l((e,t)=>e.async.promise((i,o)=>{if(e.isInDestruct)return o();let a=e.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});e.o.nonce&&(0,r.attr)(a,"nonce",e.o.nonce),e.isInDestruct||e.e.on(a,"load",()=>i(a)).on(a,"error",o),(0,r.attr)(a,"href",(0,s.completeUrl)(t)),e.o.shadowRoot?n.Dom.append(e.o.shadowRoot,a):n.Dom.append(e.od.body,a)}));i.d(t,["alreadyLoadedList",0,a,"appendScriptAsync",0,c,"appendStyleAsync",0,u])},38837:function(e,t,i){i.d(t,{assert:function(){return o}});class n extends Error{constructor(e){super(e),this.name="AssertionError"}}function o(e,t){if(!e)throw new n("Assertion failed: "+t)}},29960:function(e,t,i){i.d(t,{attr:function(){return function e(t,i,l){if(!t||!(0,n.isFunction)(t.getAttribute))return null;if(!(0,r.isString)(i))return Object.keys(i).forEach(n=>{let r=i[n];(0,o.isPlainObject)(r)&&"style"===n?(0,a.css)(t,r):("className"===n&&(n="class"),e(t,n,r))}),null;let c=(0,s.CamelCaseToKebabCase)(i);if(/^-/.test(c)){let i=e(t,"data"+c);if(i)return i;c=c.substr(1)}if(void 0!==l)if(null==l)t.hasAttribute(c)&&t.removeAttribute(c);else{let e=l.toString();return"IMG"===t.nodeName&&("width"===c||"height"===c)&&(e=e.replace("px","")),t.setAttribute(c,e),e}return t.getAttribute(c)}},attrRaw:function(){return l}});var n=i(23282),o=i(72430),r=i(70799),s=i(12475),a=i(41180);function l(e,t,i){if(void 0===i)return e.getAttribute(t);if(null==i){e.hasAttribute(t)&&e.removeAttribute(t);return}e.setAttribute(t,i)}},97639:function(e,t,i){i.d(t,["browser",0,e=>{let t=navigator.userAgent.toLowerCase(),i=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||0>t.indexOf("compatible")||[];return"version"===e?i[2]:"webkit"===e?"chrome"===i[1]||"webkit"===i[1]:"ff"===e?"firefox"===i[1]:"msie"===e?"trident"===i[1]||"msie"===i[1]:i[1]===e}])},44710:function(e,t,i){var n=i(72430);let o=(e,t)=>{let i=[],r=encodeURIComponent;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)){let a=t?t+"["+s+"]":s,l=e[s];i.push((0,n.isPlainObject)(l)?o(l,a):r(a)+"="+r(l))}return i.join("&")};i.d(t,["buildQuery",0,o])},66292:function(e,t,i){var n=i(82758);i.d(t,["completeUrl",0,e=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e)])},68934:function(e,t,i){i.d(t,{ConfigDeepFlatten:function(){return function e(t){return(0,u.keys)(t,!1).reduce((i,n)=>(i[n]=(0,o.isPlainObject)(t[n])?e(t[n]):t[n],i),{})}},ConfigFlatten:function(){return d},ConfigMerge:function(){return function e(t,i){Object.keys(i).forEach(n=>{if((0,c.isUnsafeProtoKey)(n))return;let r=i[n],s=t[n];(0,o.isPlainObject)(r)&&(0,o.isPlainObject)(s)&&!(0,l.isAtom)(r)?e(s,r):t[n]=r})}},ConfigProto:function(){return function e(t,i,u=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;let d=a.Config.defaultOptions;if((0,r.isString)(t.preset)){if(void 0!==d.presets[t.preset]){let e=d.presets[t.preset];Object.keys(e).forEach(i=>{(0,s.isVoid)(t[i])&&(t[i]=e[i])})}delete t.preset}let h={};return Object.keys(t).forEach(r=>{if((0,c.isUnsafeProtoKey)(r))return;let s=t[r],a=i?i[r]:null;if((0,o.isPlainObject)(s)&&(0,o.isPlainObject)(a)&&!(0,l.isAtom)(s)){h[r]=e(s,a,u+1);return}if(0!==u&&(0,n.isArray)(s)&&!(0,l.isAtom)(s)&&(0,n.isArray)(a)){h[r]=[...s,...a.slice(s.length)];return}h[r]=s}),Object.setPrototypeOf(h,i),h}}});var n=i(68345),o=i(72430),r=i(70799),s=i(86068),a=i(6441),l=i(97735),c=i(69175),u=i(37790);function d(e){return(0,u.keys)(e,!1).reduce((t,i)=>(t[i]=e[i],t),{})}},55877:function(e,t,i){var n=i(82758),o=i(26049),r=i(82501);i.d(t,["convertMediaUrlToVideoEmbed",0,(e,{width:t=400,height:i=345}={})=>{if(!(0,o.isURL)(e))return e;let s=n.globalDocument.createElement("a");s.href=e,t||(t=400),i||(i=345);let a=s.protocol||"";switch(s.hostname){case"www.vimeo.com":case"vimeo.com":{let n=s.pathname.split("/").filter(Boolean),o=n.findIndex(e=>/^\d+$/.test(e));if(-1===o)return e;let r=n[o],l=n[o+1];return l&&0===o&&(r+="/"+l),'<iframe width="'+t+'" height="'+i+'" src="'+a+"//player.vimeo.com/video/"+r+'" frameborder="0" allowfullscreen></iframe>'}case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"music.youtube.com":case"youtu.be":case"www.youtu.be":{let n=(s.search?(0,r.parseQuery)(s.search):{}).v||s.pathname.substring(1);return(n=n.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+t+'" height="'+i+'" src="'+a+"//www.youtube.com/embed/"+n+'" frameborder="0" allowfullscreen></iframe>':e}}return e}])},41180:function(e,t,i){i.d(t,{css:function(){return l},cssInline:function(){return c}});var n=i(87612),o=i(72430),r=i(3760),s=i(87058),a=i(12475);function l(e,t,i,c=!1){if((0,n.isBoolean)(i)&&(c=i,i=void 0),(0,o.isPlainObject)(t)||void 0!==i){let n=(e,t,i)=>{void 0!==(i=(0,r.normalizeCssNumericValue)(t,i))&&(null==i||l(e,t,!0)!==(0,r.normalizeCssValue)(t,i))&&(e.style[t]=i)};if((0,o.isPlainObject)(t)){let i=Object.keys(t);for(let o=0;o<i.length;o+=1)n(e,(0,s.camelCase)(i[o]),t[i[o]])}else n(e,(0,s.camelCase)(t),i);return""}let u=(0,a.kebabCase)(t),d=e.ownerDocument||document,h=!!d&&(d.defaultView||d.parentWindow),p=e.style[t],f="";return void 0!==p&&""!==p?f=p:h&&!c&&(f=h.getComputedStyle(e).getPropertyValue(u)),r.NUMBER_FIELDS_REG.test(t)&&/^[-+]?[0-9.]+px$/.test(f.toString())&&(f=parseInt(f.toString(),10)),(0,r.normalizeCssValue)(t,f)}function c(e,t){return e.style.getPropertyValue((0,a.kebabCase)(t))}i.d(t,["clearCenterAlign",0,e=>{"block"===l(e,"display")&&l(e,"display","");let{style:t}=e;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")}])},15456:function(e,t,i){i.d(t,["ctrlKey",0,e=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}])},86583:function(e,t,i){var n=i(39955);let o=new WeakMap;i.d(t,["dataBind",0,(e,t,i)=>{let r=o.get(e);if(!r){r={},o.set(e,r);let t=null;(0,n.isViewObject)(e.j)&&(t=e.j.e),(0,n.isViewObject)(e)&&(t=e.e),t&&t.on("beforeDestruct",()=>{o.delete(e)})}return void 0===i?r[t]:(r[t]=i,i)}])},96325:function(e,t,i){var n=i(82758),o=i(70799);i.d(t,["defaultLanguage",0,(e,t="en")=>"auto"!==e&&(0,o.isString)(e)?e:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):t])},82760:function(e,t,i){i.d(t,{answer:function(){return a},connection:function(){return r},error:function(){return o},options:function(){return s}});var n=i(32880);function o(e){return TypeError(e)}function r(e){return new n.ConnectionError(e)}function s(e){return new n.OptionsError(e)}function a(e,t,i){return new n.AnswerError(e,t,i)}},93661:function(e,t,i){i.d(t,{abort:function(){return n}});function n(e="Aborted"){return new DOMException(e,"AbortError")}},5311:function(e,t,i){i.d(t,{AnswerError:function(){return n}});class n extends Error{constructor(e,t,i){super(e),this.answer=t,this.code=i,Object.setPrototypeOf(this,n.prototype)}}},86397:function(e,t,i){i.d(t,{ConnectionError:function(){return n}});class n extends Error{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},32880:function(e,t,i){i.d(t,{AnswerError:function(){return o.AnswerError},ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return n.abort}});var n=i(93661),o=i(5311),r=i(86397),s=i(57865)},57865:function(e,t,i){i.d(t,{OptionsError:function(){return n}});class n extends TypeError{constructor(e){super(e),Object.setPrototypeOf(this,n.prototype)}}},89890:function(e,t,i){i.d(t,{AnswerError:function(){return o.AnswerError},ConnectionError:function(){return o.ConnectionError},OptionsError:function(){return o.OptionsError},abort:function(){return o.abort},answer:function(){return n.answer},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=i(82760),o=i(32880)},97735:function(e,t,i){i.d(t,{fastClone:function(){return s},isAtom:function(){return o},markAsAtomic:function(){return r}});var n=i(67462);function o(e){return e&&e.isAtom}function r(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function s(e){return JSON.parse((0,n.stringify)(e))}},80568:function(e,t,i){var n=i(23282);let o=new Map;i.d(t,["getClassName",0,e=>{var t;if((0,n.isFunction)(e.className))return e.className();let i=(null==(t=e.constructor)?void 0:t.originalConstructor)||e.constructor;if(o.has(i))return o.get(i);if(i.name)return i.name;let r=new RegExp(/^\s*function\s*(\S*)\s*\(/),s=i.toString().match(r);return s?s[1]:""},"keepNames",0,o])},94643:function(e,t,i){i.d(t,{get:function(){return r}});var n=i(70799),o=i(86068);function r(e,t){if(!(0,n.isString)(e)||!e.length)return null;let i=e.split("."),r=t;try{for(let e of i){if((0,o.isVoid)(r[e]))return null;r=r[e]}}catch(e){return null}return(0,o.isVoid)(r)?null:r}},38420:function(e,t,i){i.d(t,["humanSizeToBytes",0,e=>{if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);let t=e.substr(-2,2).toUpperCase(),i=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return -1!==i.indexOf(t)?n*Math.pow(1024,i.indexOf(t)+1):parseInt(e,10)}])},68645:function(e,t,i){i.d(t,{getCaptionWrapper:function(){return l},getCaptionedImage:function(){return a},getImageCaption:function(){return s}});var n=i(2748),o=i(4510);let r=(e,t)=>n.Dom.isHTMLElement(e)&&e.nodeName.toLowerCase()===t.tag.toLowerCase()&&(!t.className||e.classList.contains(t.className));function s(e,t){var i;let n=e.o.imageCaption;return n&&r(t,n.wrapper)&&null!=(i=(0,o.toArray)(t.getElementsByTagName(n.caption.tag)).find(e=>r(e,n.caption)))?i:null}function a(e,t){let i=s(e,t);if(!i)return null;let n=t.getElementsByTagName("img");return 1!==n.length||i.contains(n[0])?null:n[0]}function l(e,t){return n.Dom.closest(t,t=>!!a(e,t),e.editor)}},43555:function(e,t,i){i.d(t,{$$:function(){return x.$$},AnswerError:function(){return v.AnswerError},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return v.ConnectionError},LimitedStack:function(){return L.LimitedStack},OptionsError:function(){return v.OptionsError},UNSAFE_PROTO_KEYS:function(){return S.UNSAFE_PROTO_KEYS},abort:function(){return v.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},answer:function(){return v.answer},appendScriptAsync:function(){return r.appendScriptAsync},appendStyleAsync:function(){return r.appendStyleAsync},assert:function(){return s.assert},attr:function(){return a.attr},attrRaw:function(){return a.attrRaw},browser:function(){return l.browser},buildQuery:function(){return c.buildQuery},call:function(){return R.call},callPromise:function(){return R.callPromise},callThis:function(){return R.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},clearHAlign:function(){return n.clearHAlign},cns:function(){return C.cns},completeUrl:function(){return u.completeUrl},connection:function(){return v.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},createMediaWrapper:function(){return E.createMediaWrapper},css:function(){return p.css},cssInline:function(){return p.cssInline},cssPath:function(){return x.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return v.error},fastClone:function(){return b.fastClone},get:function(){return y.get},getAlignClasses:function(){return n.getAlignClasses},getAnchorName:function(){return o.getAnchorName},getAnchors:function(){return o.getAnchors},getCaptionWrapper:function(){return k.getCaptionWrapper},getCaptionedImage:function(){return k.getCaptionedImage},getClassName:function(){return _.getClassName},getDataTransfer:function(){return R.getDataTransfer},getHAlign:function(){return n.getHAlign},getImageCaption:function(){return k.getImageCaption},getMediaWrapper:function(){return E.getMediaWrapper},getPropertyDescriptor:function(){return R.getPropertyDescriptor},getWrappedMedia:function(){return E.getWrappedMedia},getXPathByElement:function(){return x.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return w.humanSizeToBytes},inView:function(){return j.inView},isAnchor:function(){return o.isAnchor},isAtom:function(){return b.isAtom},isUnsafeProtoKey:function(){return S.isUnsafeProtoKey},keepNames:function(){return _.keepNames},keys:function(){return R.keys},loadImage:function(){return R.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return b.markAsAtomic},markDeprecated:function(){return C.markDeprecated},markOwner:function(){return R.markOwner},memorizeExec:function(){return R.memorizeExec},options:function(){return v.options},parseQuery:function(){return D.parseQuery},prepareEmbedCode:function(){return I.prepareEmbedCode},prepareMedia:function(){return I.prepareMedia},previewBox:function(){return T.previewBox},refs:function(){return x.refs},reset:function(){return A.reset},resolveElement:function(){return x.resolveElement},scrollIntoViewIfNeeded:function(){return j.scrollIntoViewIfNeeded},set:function(){return P.set},wrapMedia:function(){return E.wrapMedia}});var n=i(25726),o=i(70442),r=i(63799),s=i(38837),a=i(29960),l=i(97639),c=i(44710),u=i(66292),d=i(68934),h=i(55877),p=i(41180),f=i(15456),m=i(86583),g=i(96325),v=i(89890),b=i(97735),y=i(94643),_=i(80568),w=i(38420),k=i(68645),S=i(69175),C=i(95942),E=i(61477),D=i(82501),I=i(96437),T=i(11628),A=i(58844),j=i(26395),x=i(76078),P=i(3703),L=i(50535),R=i(37790)},69175:function(e,t,i){i.d(t,{isUnsafeProtoKey:function(){return o}});let n=["__proto__","constructor","prototype"];function o(e){return -1!==n.indexOf(e)}i.d(t,["UNSAFE_PROTO_KEYS",0,n])},95942:function(e,t,i){i.d(t,{markDeprecated:function(){return o}});let n=console;function o(e,t=[""],i=null){return(...o)=>(n.warn(`Method "${t[0]}" deprecated.`+(t[1]?` Use "${t[1]}" instead`:"")),e.call(i,...o))}i.d(t,["cns",0,n])},61477:function(e,t,i){i.d(t,{createMediaWrapper:function(){return a},getMediaWrapper:function(){return s},getWrappedMedia:function(){return r},wrapMedia:function(){return l}});var n=i(2748);let o=(e,t)=>n.Dom.isHTMLElement(e)&&e.nodeName.toLowerCase()===t.tag.toLowerCase()&&e.classList.contains(t.className);function r(e,t){var i;for(let[n,r]of Object.entries(null!=(i=e.o.mediaWrappers)?i:{}))if(o(t,r)){let e=t.querySelector(n);if(e)return e}return null}function s(e,t){return n.Dom.closest(t,t=>!!r(e,t),e.editor)}function a(e,t){var i;let n=null==(i=e.o.mediaWrappers)?void 0:i[t.toLowerCase()];return n?e.createInside.element(n.tag,{class:n.className,contenteditable:!1,draggable:!0}):null}function l(e,t){let i=a(e,t.nodeName);return i?(t.parentNode&&n.Dom.before(t,i),n.Dom.append(i,t),i):t}},82501:function(e,t,i){i.d(t,["parseQuery",0,e=>{let t={},i=e.substring(1).split("&");for(let e=0;e<i.length;e+=1){let n=i[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}])},96437:function(e,t,i){i.d(t,{prepareEmbedCode:function(){return s},prepareMedia:function(){return r}});var n=i(25726),o=i(61477);function r(e,t){let i=(0,o.wrapMedia)(e,t),{mediaDefaultAlign:r}=e.o;return r&&"normal"!==r&&(0,n.hAlignElement)(i,r,(0,n.getAlignClasses)(e,i)),i}function s(e,t){let i=e.createInside.div();i.innerHTML=t.trim();let n=i.firstElementChild;return n&&1===i.childNodes.length?r(e,n):t}},11628:function(e,t,i){i.d(t,{previewBox:function(){return a}});var n=i(2748),o=i(70799),r=i(29960),s=i(41180);function a(e,t,i="px",l=null){let c=[],u=function(e,t){let i=[],o=[];n.Dom.each(e.editor,e=>{n.Dom.isTag(e,"img")&&o.push(e)});try{o.forEach(o=>{let s=[(0,r.attr)(o,"width"),(0,r.attr)(o,"height"),(0,r.attr)(o,"src")];(0,r.attr)(o,{width:o.offsetWidth+t,height:o.offsetHeight+t});let a=e.createInside.a();n.Dom.append(e.ed.body,a),(0,r.attr)(a,"href",(0,r.attr)(o,"src")||""),(0,r.attr)(o,"src",a.href),n.Dom.safeRemove(a),i.push(()=>{(0,r.attr)(o,{src:s[2],width:s[0]||null,height:s[1]||null})})})}catch(e){throw i.forEach(e=>e()),i.length=0,e}return i}(e,i);try{let a=e.e.fire("beforePreviewBox",t,i);if(null!=a)return a;let u=e.c.div("jodit__preview-box jodit-context");l&&n.Dom.append(l,u),(0,s.css)(u,{position:"relative",padding:16});let d=e.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${e.i18n("Empty")}</div>`;if(e.iframe){let t=e.create.element("iframe");(0,s.css)(t,{minWidth:800,minHeight:600,border:0}),n.Dom.append(u,t);let i=t.contentWindow;if(i&&(e.e.fire("generateDocumentStructure.iframe",i.document,e),u=i.document.body,"function"==typeof ResizeObserver)){let n=!1,o=i.document.body,r=new ResizeObserver(e.async.debounce(()=>{r.unobserve(o),(0,s.css)(t,"height",o.offsetHeight+20),e.async.requestAnimationFrame(()=>{n||r.observe(o)})},100)),a=()=>{n=!0,r.unobserve(o),r.disconnect(),e.e.off("beforeDestruct",a)};c.push(a),e.e.on("beforeDestruct",a)}}else(0,s.css)(u,{minWidth:1024,minHeight:600,border:0});let h=(t,i)=>{let s=(0,o.isString)(i)?e.c.div():i;(0,o.isString)(i)&&(s.innerHTML=i);for(let e=0;e<s.childNodes.length;e+=1){let i=s.childNodes[e];if(n.Dom.isElement(i)){let e=t.ownerDocument.createElement(i.nodeName);for(let t=0;t<i.attributes.length;t+=1)(0,r.attr)(e,i.attributes[t].name,i.attributes[t].value);0===i.childNodes.length||n.Dom.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(e.textContent=i.textContent):i.innerHTML&&(e.innerHTML=i.innerHTML):h(e,i);try{n.Dom.append(t,e)}catch(e){}}else try{n.Dom.append(t,i.cloneNode(!0))}catch(e){}}};return h(u,d),e.e.fire("afterPreviewBox",u),[u,()=>{c.forEach(e=>e())}]}finally{u.forEach(e=>e())}}},58844:function(e,t,i){i.d(t,{reset:function(){return a}});var n=i(82758),o=i(23282),r=i(94643);let s={};function a(e){var t,i;if(!(e in s)){let i=n.globalDocument.createElement("iframe");try{if(i.src="about:blank",n.globalDocument.body.appendChild(i),!i.contentWindow)return null;let t=(0,r.get)(e,i.contentWindow),a=(0,r.get)(e.split(".").slice(0,-1).join("."),i.contentWindow);(0,o.isFunction)(t)&&(s[e]=t.bind(a))}catch(e){if(!n.IS_PROD)throw e}finally{null==(t=i.parentNode)||t.removeChild(i)}}return null!=(i=s[e])?i:null}},26395:function(e,t,i){i.d(t,{inView:function(){return o},scrollIntoViewIfNeeded:function(){return r}});var n=i(2748);function o(e,t,i){var n;let o=e.getBoundingClientRect(),r=e,s=o.top,a=o.height;for(;r&&r!==t&&r.parentNode;)if(s+a>(o=(r=r.parentNode).getBoundingClientRect()).bottom+1&&s>o.top||s+a<=o.top)return!1;let l=i.documentElement&&i.documentElement.clientHeight||0,c=null==(n=i.defaultView)?void 0:n.getComputedStyle(i.documentElement),u=(e="")=>e.endsWith("%")?parseFloat(e)*l/100:parseFloat(e)||0,d=u(null==c?void 0:c.scrollPaddingTop);return(s+a<=l-u(null==c?void 0:c.scrollPaddingBottom)+1||d>=s)&&s+a>=d}function r(e,t,i){if(n.Dom.isHTMLElement(e)&&!o(e,t,i)){if(t.clientHeight!==t.scrollHeight){let i=e.offsetTop+e.offsetHeight-t.clientHeight;t.scrollTop=t.scrollTop<i?i:e.offsetTop}o(e,t,i)||e.scrollIntoView({block:"nearest"})}}},76078:function(e,t,i){i.d(t,{$$:function(){return d},resolveElement:function(){return p}});var n=i(82758),o=i(2748),r=i(4510),s=i(70799),a=i(87058),l=i(29960),c=i(89890);let u=1;function d(e,t){let i;if(!n.IS_ES_NEXT&&/:scope/.test(e)&&n.IS_IE&&!(t&&t.nodeType===Node.DOCUMENT_NODE)){let n=t.id,o=n||"_selector_id_"+(Math.random()+"").slice(2)+ ++u;e=e.replace(/:scope/g,"#"+o),n||t.setAttribute("id",o),i=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}else i=t.querySelectorAll(e);return[].slice.call(i)}let h=(e,t)=>{if(!e||e.nodeType!==Node.ELEMENT_NODE||!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";let i=[].filter.call(e.parentNode.childNodes,t=>t.nodeName===e.nodeName);return h(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(i.length>1?"["+((0,r.toArray)(i).indexOf(e)+1)+"]":"")};function p(e,t){let i=e;if((0,s.isString)(e))try{i=t.querySelector(e)}catch(t){throw(0,c.error)('String "'+e+'" should be valid HTML selector')}if(!i||"object"!=typeof i||!o.Dom.isElement(i)||!i.cloneNode)throw(0,c.error)('Element "'+e+'" should be string or HTMLElement instance');return i}i.d(t,["cssPath",0,e=>{if(!o.Dom.isElement(e))return null;let t=[],i=e;for(;i&&i.nodeType===Node.ELEMENT_NODE;){let e=i.nodeName.toLowerCase();if(i.id){e+="#"+i.id,t.unshift(e);break}{let t=i,n=1;do(t=t.previousElementSibling)&&t.nodeName.toLowerCase()===e&&n++;while(t)e+=":nth-of-type("+n+")"}t.unshift(e),i=i.parentNode}return t.join(" > ")},"getXPathByElement",0,h,"refs",0,e=>{"container"in e&&(e=e.container);let t={};return o.Dom.each(e,e=>{if(o.Dom.isElement(e)&&(e.hasAttribute("ref")||e.hasAttribute("data-ref"))){let i=(0,l.attr)(e,"-ref");i&&(0,s.isString)(i)&&(t[(0,a.camelCase)(i)]=e,t[i]=e)}}),t}])},3703:function(e,t,i){i.d(t,{set:function(){return l}});var n=i(68345),o=i(29807),r=i(72430),s=i(70799),a=i(69175);function l(e,t,i){if(!(0,s.isString)(e)||!e.length)return;let l=e.split(".");if(l.some(a.isUnsafeProtoKey))return;let c=i;for(let e=0;e<l.length-1;e+=1){let t=l[e];(0,n.isArray)(c[t])||(0,r.isPlainObject)(c[t])||(c[t]=(0,o.isNumeric)(l[e+1])?[]:{}),c=c[t]}c&&(c[l[l.length-1]]=t)}},50535:function(e,t,i){i.d(t,{LimitedStack:function(){return n}});class n{push(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(e){return this.stack.find(e)}constructor(e){this.limit=e,this.stack=[]}}},37790:function(e,t,i){i.d(t,{call:function(){return a},callPromise:function(){return u},callThis:function(){return l},getPropertyDescriptor:function(){return d},markOwner:function(){return c}});var n=i(14773),o=i(86068),r=i(29960),s=i(86583);function a(e,...t){return e(...t)}function l(e,t,...i){return e.apply(t,i)}function c(e,t){(0,r.attr)(t,"data-editor_id",e.id),t.component||Object.defineProperty(t,"jodit",{value:e})}function u(e,t){return(0,n.isPromise)(e)?e.then(e=>e,()=>null).finally(t):null==t?void 0:t()}function d(e,t){let i;do i=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e);while(!i&&e)return i}i.d(t,["getDataTransfer",0,e=>{if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}},"keys",0,(e,t=!0)=>{if(t)return Object.keys(e);let i=[];for(let t in e)i.push(t);return i},"loadImage",0,(e,t)=>t.async.promise((i,n)=>{let o=new Image,r=()=>{t.e.off(o),null==n||n()},s=()=>{t.e.off(o),i(o)};t.e.one(o,"load",s).one(o,"error",r).one(o,"abort",r),o.src=e,o.complete&&s()}),"memorizeExec",0,(e,t,{control:i},n)=>{var r;let a="button"+i.command,l=null!=(r=i.args&&i.args[0])?r:(0,s.dataBind)(e,a);if((0,o.isVoid)(l))return!1;(0,s.dataBind)(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)}])},31359:function(e,t,i){i.d(t,{init:function(){return s}});var n=i(82758),o=i(60132),r=i(14041);function s(e,t,i,s,a,l,c){if((0,o.isInitable)(s))try{s.init(e)}catch(e){if(!n.IS_PROD)throw e}a.set(t,s),l.delete(t),s.hasStyle&&(0,r.loadStyle)(e,t).catch(e=>{n.IS_PROD}),s.styles&&(c(e,t,"style").innerHTML=s.styles)}},14041:function(e,t,i){i.d(t,{loadExtras:function(){return u},loadStyle:function(){return l}});var n=i(82758),o=i(12475),r=i(63799),s=i(89672);let a=new Set;async function l(e,t){let i=c(e,t,!1);if(!a.has(i))return a.add(i),(0,r.appendStyleAsync)(e,i)}function c(e,t,i){t=(0,o.kebabCase)(t);let n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(i?"js":"css")}function u(e,t,i,o){try{let n=i.filter(t=>!e.has((0,s.normalizeName)(t.name)));n.length&&n.map(e=>{let i=e.url||c(t,e.name,!0);return(0,r.appendScriptAsync)(t,i).then(o).catch(()=>null)})}catch(e){if(!n.IS_PROD)throw e}}},48591:function(e,t,i){i.d(t,{makeInstance:function(){return r}});var n=i(82758),o=i(23282);function r(e,t){try{try{return(0,o.isFunction)(t)?new t(e):t}catch(i){if((0,o.isFunction)(t)&&!t.prototype)return t(e)}}catch(e){if(!n.IS_PROD)throw e}return null}},89672:function(e,t,i){i.d(t,{normalizeName:function(){return o}});var n=i(12475);function o(e){return(0,n.kebabCase)(e).toLowerCase()}},50911:function(e,t,i){i.d(t,{Plugin:function(){return n.Plugin}});var n=i(20356);i(41876)},41876:function(e,t,i){i.d(t,{PluginSystem:function(){return p}});var n=i(82758),o=i(57012),r=i(46559),s=i(68345),a=i(60132),l=i(70799),c=i(31359),u=i(14041),d=i(48591),h=i(89672);class p{get size(){return this.__items.size}add(e,t){this.__items.set((0,h.normalizeName)(e),t),o.eventEmitter.fire(`plugin:${e}:ready`)}get(e){return this.__items.get((0,h.normalizeName)(e))}remove(e){this.__items.delete((0,h.normalizeName)(e))}__getFullPluginsList(e){let t=[];return this.__items.forEach((i,n)=>{(!e||e.has(n))&&t.push([n,i])}),t}__init(e){let{extraList:t,disableList:i,filter:o}={extraList:e.o.extraPlugins.map(e=>(0,l.isString)(e)?{name:e}:e),disableList:new Set((0,r.splitArray)(e.o.disablePlugins).map(h.normalizeName)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null},p=new Map,f={},m=new Set;e.__plugins=f;let g=()=>{if(e.isInDestruct)return;let t=!1;this.__getFullPluginsList(o).forEach(([n,o])=>{if(i.has(n)||p.has(n))return;let r=null==o?void 0:o.requires;if(r&&(0,s.isArray)(r)&&r.length){if(r.some(e=>i.has(e)))return;if(!r.every(e=>p.has(e)))return void m.add(n)}t=!0;let a=(0,d.makeInstance)(e,o);if(!a){p.set(n,null),m.delete(n);return}(0,c.init)(e,n,o,a,p,m,this.opts.getContainer),f[n]=a}),t&&(e.e.fire("updatePlugins"),g())};t&&t.length&&(0,u.loadExtras)(this.__items,e,t,g),g(),e.e.on("beforeDestruct",()=>{Object.keys(f).forEach(t=>{let i=f[t];(0,a.isDestructable)(i)&&i.destruct(e),delete f[t]}),delete e.__plugins}),n.IS_PROD||m.size}wait(e){return new Promise(t=>{if(this.get(e))return t();let i=()=>{t(),o.eventEmitter.off(`plugin:${e}:ready`,i)};o.eventEmitter.on(`plugin:${e}:ready`,i)})}constructor(e){this.opts=e,this.__items=new Map}}},20356:function(e,t,i){i.d(t,{Plugin:function(){return a}});var n=i(91907),o=i(65478),r=i(19306),s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends n.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:e,buttons:t}=this;t&&(0,r.isJoditObject)(e)&&t.forEach(t=>{e.registerButton(t)})}__afterInit(){this.__inited=!0,this.setStatus(n.STATUSES.ready),this.afterInit(this.jodit)}init(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var e;if(this.isInDestruct)return;let{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(n.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,r.isJoditObject)(t)&&(null==(e=this.buttons)||e.forEach(e=>{null==t||t.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}constructor(e){super(e),this.buttons=[],this.hasStyle=!1,this.__inited=!1,e.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}a.requires=[],s([o.autobind],a.prototype,"__afterPluginSystemInit",null),s([o.autobind],a.prototype,"__afterInit",null),s([o.autobind],a.prototype,"__beforeDestruct",null)},54079:function(e,t,i){i.d(t,{Ajax:function(){return u}});var n=i(8884),o=i(82758),r=i(45219),s=i(21537),a=i(89890),l=i(6441);i(57459);var c=i(98582);class u{className(){return"Ajax"}__buildParams(e,t){return(0,s.isPlainObject)(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):(0,s.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):(0,s.isString)(e)||e instanceof o.globalWindow.FormData||"object"==typeof e&&null!=e&&(0,s.isFunction)(e.append)?e:(0,s.buildQuery)(e)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}__hasAnswerEnvelope(){let{xhr:e}=this;if(e.responseType&&"text"!==e.responseType)return!1;let t=e.responseText;if(!t||"{"!==t[0])return!1;try{let e=JSON.parse(t);return(0,s.isPlainObject)(e)&&"success"in e}catch(e){return!1}}send(){this.__activated=!0;let{xhr:e,o:t}=this,i=this.prepareRequest();return this.__async.promise(async(n,o)=>{var r;let l=()=>{this.__isFulfilled=!0,o(a.connection("Connection error"))},u=()=>{this.__isFulfilled=!0,n(new c.Response(i,e.status,e.statusText,!e.responseType?e.responseText:e.response))};e.onload=u,e.onabort=()=>{this.__isFulfilled=!0,o(a.abort("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=e=>{var t,i;let n=0;e.lengthComputable&&(n=e.loaded/e.total*100),null==(i=(t=this.options).onProgress)||i.call(t,n)},e.onreadystatechange=()=>{var i,n;null==(n=(i=this.options).onProgress)||n.call(i,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)||this.__hasAnswerEnvelope()?u():e.statusText&&(this.__isFulfilled=!0,o(a.connection(e.statusText))))},e.withCredentials=null!=(r=t.withCredentials)&&r;let{url:d,data:h,method:p}=i;e.open(p,d,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType);let{headers:f}=t;(0,s.isFunction)(f)&&(f=await f.call(this)),f&&e.setRequestHeader&&Object.keys(f).forEach(t=>{e.setRequestHeader(t,f[t])}),this.__async.setTimeout(()=>{e.send(h?this.__buildParams(h):void 0)},0)})}async *stream(){var e;this.__activated=!0;let{xhr:t,o:i}=this,n=this.prepareRequest(),o=0,r="",l=[],c=null,u=!1,d=null,h=()=>{if(c){let e=c;c=null,e()}},p=e=>{var i;let n=t.responseText;r+=n.substring(o),o=n.length;let s=r.split(`
11
11
 
12
12
  `);for(let t of(r=e?"":null!=(i=s.pop())?i:"",s)){let e=t.trim();if(!e)continue;let i=[];for(let t of e.split(`
@@ -35,7 +35,7 @@
35
35
  <div class="${t("footer")}"></div>
36
36
  <div class="${t("resizer")}">${f.Icon.get("resize_handler")}</div>
37
37
  </div>
38
- </div>`),"rtl"===this.options.direction&&((0,h.css)(this.container,"direction","rtl"),(0,h.attr)(this.container,"dir","rtl")),this.o.zIndex&&(0,h.css)(this.container,"zIndex",this.o.zIndex.toString()),(0,h.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,p.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,p.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,p.assert)(null!=r,"header-title element does not exist");let s=this.getElm("content");(0,p.assert)(null!=s,"Content element does not exist");let c=this.getElm("footer");(0,p.assert)(null!=c,"Footer element does not exist");let d=this.getElm("header-toolbar");(0,p.assert)(null!=d,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=s,this.dialogbox_footer=c,this.dialogbox_toolbar=d,(0,h.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let g=l.pluginSystem.get("fullsize");if((0,u.isFunction)(g)&&g(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,p.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}};_.__opened=new Set,_.defaultOptions={...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0},b([s.autobind],_.prototype,"__onMouseUp",null),b([s.autobind],_.prototype,"__onHeaderMouseDown",null),b([s.autobind],_.prototype,"__onMouseMove",null),b([s.autobind],_.prototype,"__onEsc",null),b([s.autobind],_.prototype,"__onResizerMouseDown",null),b([s.autobind],_.prototype,"close",null),b([(0,s.hook)("ready")],_.prototype,"buildToolbar",null),_=n=b([s.component],_)},638:function(e,t,i){i.d(t,{Alert:function(){return n.Alert},Confirm:function(){return o.Confirm},Dialog:function(){return r.Dialog},Prompt:function(){return s.Prompt}});var n=i(71568),o=i(26866),r=i(78584),s=i(36806)},36806:function(e,t,i){i.d(t,{Prompt:function(){return l}});var n=i(2748),o=i(23282),r=i(29960),s=i(10830),a=i(78584);function l(e,t,i,l,c){let u=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),d=(0,s.Button)(u,"cancel","Cancel"),h=(0,s.Button)(u,"ok","Ok"),p=u.c.element("form",{class:"jodit-dialog_prompt"}),f=u.c.element("input",{autofocus:!0,class:"jodit-input"}),m=u.c.element("label");(0,o.isFunction)(t)&&(i=t,t=void 0),l&&(0,r.attr)(f,"placeholder",l),n.Dom.append(m,u.c.text(e)),n.Dom.append(p,m),n.Dom.append(p,f),d.onAction(u.close);let g=()=>{i&&(0,o.isFunction)(i)&&!1===i(f.value)||u.close()};return h.onAction(g),u.e.on(p,"submit",()=>(g(),!1)),u.setFooter([h,d]),u.open(p,t||"&nbsp;",!0,!0),f.focus(),void 0!==c&&c.length&&(f.value=c,f.select()),u}},41457:function(e,t,i){var n=i(22732),o=i(29960),r=i(89890),s=i(12153),a=i(32118),l=i(21735),c=i(63399),u=i(44450),d=i(20201),h=i(50050);let p="jodit-file-browser-preview",f=(e="next",t="right")=>`<div class="${p}__navigation ${p}__navigation_arrow_${e}">`+s.Icon.get("angle-"+t)+"</a>";t.default=e=>{if(!e.o.contextMenu)return()=>{};let t=(0,c.makeContextMenu)(e);return i=>{let s=(0,l.getItem)(i.target,e.container);if(!s)return;let c=s,m=e.options,g=e=>(0,o.attr)(c,e)||"";return e.async.setTimeout(()=>{let v=(0,l.elementToItem)(s,(0,a.elementsMap)(e));v&&(e.state.activeElements=[v],t.show(i.clientX,i.clientY,[!!("1"!==g("data-is-file")&&m.editImage&&(e.dataProvider.canI("ImageResize")||e.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>h.openImageEditor.call(e,g("href"),g("data-name"),g("data-path"),g("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){e.e.fire("fileRename.filebrowser",g("data-name"),g("data-path"),g("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await (0,u.deleteFile)(e,g("data-name"),g("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],(0,d.loadTree)(e).catch(e.status)}},!!m.preview&&{icon:"eye",title:"Preview",exec(){let t=e.dlg({buttons:["fullsize","dialog.close"]}),i=e.c.div(p,'<div class="jodit-icon_loader"></div>'),s=e.c.div(p+"__box"),a=e.c.fromHTML(f()),l=e.c.fromHTML(f("prev","left")),u=r=>{let u=e.c.element("img");(0,o.attr)(u,"src",r);let d=()=>{var o;e.isInDestruct||(e.e.off(u,"load"),n.Dom.detach(i),m.showPreviewNavigation&&(n.Dom.prevWithClass(c,e.files.getFullElName("item"))&&n.Dom.append(i,l),n.Dom.nextWithClass(c,e.files.getFullElName("item"))&&n.Dom.append(i,a)),n.Dom.append(i,s),n.Dom.append(s,u),t.setPosition(),null==(o=null==e?void 0:e.events)||o.fire("previewOpenedAndLoaded"))};e.e.on(u,"load",d),u.complete&&d()};e.e.on([a,l],"click",function(){if(!(c=this===a?n.Dom.nextWithClass(c,e.files.getFullElName("item")):n.Dom.prevWithClass(c,e.files.getFullElName("item"))))throw(0,r.error)("Need element");n.Dom.detach(i),n.Dom.detach(s),i.innerHTML='<div class="jodit-icon_loader"></div>',u(g("href"))}),e.e.on("beforeDestruct",()=>{t.destruct()}),t.container.classList.add(p+"__dialog"),t.setContent(i),t.setPosition(),t.open(),u(g("href")),e.events.on("beforeDestruct",()=>{t.destruct()}).fire("previewOpened")}},{icon:"download",title:"Download",exec(){let t=g("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",()=>{t.close()}).on("beforeDestruct",()=>t.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},32118:function(e,t,i){let n=new WeakMap;i.d(t,["elementsMap",0,e=>{let t=n.get(e);return t||(t={},n.set(e,t)),t}])},159:function(e,t,i){i.d(t,{FileBrowserItem:function(){return o}});var n=i(21537);class o{static create(e){return e instanceof o?e:new o(e)}get path(){return(0,n.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let e=this.time||new Date().getTime().toString(),{thumbIsAbsolute:t,source:i,thumb:o,file:r}=this.data,s=o||r;return t&&s?s:(0,n.normalizeUrl)(i.baseurl,i.path,s||"")+"?_tmst="+encodeURIComponent(e)}get fileURL(){let{name:e}=this.data,{file:t,fileIsAbsolute:i,source:o}=this.data;return void 0!==t&&(e=t),i&&e?e:(0,n.normalizeUrl)(o.baseurl,o.path,e||"")}get time(){let{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){let e=this.data;return[e.sourceName,e.name,e.file,this.time,e.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(e){this.data=e,Object.keys(e).forEach(t=>{this[t]=e[t]})}}},21735:function(e,t,i){var n=i(2748);i.d(t,["elementToItem",0,(e,t)=>{let{key:i}=e.dataset,{item:n}=t[i||""];return n},"getItem",0,(e,t,i="a")=>n.Dom.closest(e,e=>n.Dom.isTag(e,i),t)])},61251:function(e,t,i){i(57459);var n=i(2748),o=i(27613),r=i(38420),s=i(4242),a=i(6441);a.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(e,t)=>(t=t.toLowerCase(),(0,o.isString)(e))?-1!==e.toLowerCase().indexOf(t):(0,o.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,o.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t),sortBy:"changed-desc",sort(e,t,i){let[n,s]=i.toLowerCase().split("-"),a="asc"===s,l=(e,t)=>t>e?a?-1:1:e>t?a?1:-1:0;if((0,o.isString)(e))return l(e.toLowerCase(),t.toLowerCase());if(void 0===e[n]||"name"===n)return(0,o.isString)(e.name)?l(e.name.toLowerCase(),t.name.toLowerCase()):(0,o.isString)(e.file)?l(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(n){case"changed":{let i=new Date(e.changed).getTime(),n=new Date(t.changed).getTime();return a?i-n:n-i}case"size":{let i=(0,r.humanSizeToBytes)(e.size),n=(0,r.humanSizeToBytes)(t.size);return a?i-n:n-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:e=>e.success,getMessage:e=>void 0!==e.data.messages&&(0,o.isArray)(e.data.messages)?e.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,i){let n=this.options,o=this.files.getFullElName("item"),r=n.showFileName,s=n.showFileSize&&e.size,a=n.showFileChangeTime&&e.time,l="";void 0!==e.file&&(l=e.file);let c=`<div class="${o}-info">${r?`<span class="${o}-info-filename">${l}</span>`:""}${s?`<span class="${o}-info-filesize">${e.size}</span>`:""}${a?`<span class="${o}-info-filechanged">${a}</span>`:""}</div>`;return`<a
38
+ </div>`),"rtl"===this.options.direction&&((0,h.css)(this.container,"direction","rtl"),(0,h.attr)(this.container,"dir","rtl")),this.o.zIndex&&(0,h.css)(this.container,"zIndex",this.o.zIndex.toString()),(0,h.attr)(this.container,"role","dialog"),Object.defineProperty(this.container,"component",{value:this}),this.setMod("theme",this.o.theme||"default").setMod("resizable",!!this.o.resizable);let i=this.getElm("panel");(0,p.assert)(null!=i,"Panel element does not exist");let o=this.getElm("resizer");(0,p.assert)(null!=o,"Resizer element does not exist");let r=this.getElm("header-title");(0,p.assert)(null!=r,"header-title element does not exist");let s=this.getElm("content");(0,p.assert)(null!=s,"Content element does not exist");let c=this.getElm("footer");(0,p.assert)(null!=c,"Footer element does not exist");let d=this.getElm("header-toolbar");(0,p.assert)(null!=d,"header-toolbar element does not exist"),this.dialog=i,this.resizer=o,this.dialogbox_header=r,this.dialogbox_content=s,this.dialogbox_footer=c,this.dialogbox_toolbar=d,(0,h.css)(this.dialog,{maxWidth:this.options.maxWidth,minHeight:this.options.minHeight,minWidth:this.options.minWidth});let m=this.getElm("header");m&&this.e.on(m,"pointerdown touchstart",this.__onHeaderMouseDown),this.e.on(this.resizer,"mousedown touchstart",this.__onResizerMouseDown);let g=l.pluginSystem.get("fullsize");if((0,u.isFunction)(g)&&g(this),this.e.on(this.container,"close_dialog",this.close).on(this.ow,"keydown",this.__onEsc).on(this.ow,"resize",this.__onResize),this.o.closeOnClickOverlay){let e=this.getElm("overlay");(0,p.assert)(null!=e,"Overlay element does not exist"),this.e.on(e,"click",this.close)}}};_.__opened=new Set,_.defaultOptions={...m.View.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0},b([s.autobind],_.prototype,"__onMouseUp",null),b([s.autobind],_.prototype,"__onHeaderMouseDown",null),b([s.autobind],_.prototype,"__onMouseMove",null),b([s.autobind],_.prototype,"__onEsc",null),b([s.autobind],_.prototype,"__onResizerMouseDown",null),b([s.autobind],_.prototype,"close",null),b([(0,s.hook)("ready")],_.prototype,"buildToolbar",null),_=n=b([s.component],_)},638:function(e,t,i){i.d(t,{Alert:function(){return n.Alert},Confirm:function(){return o.Confirm},Dialog:function(){return r.Dialog},Prompt:function(){return s.Prompt}});var n=i(71568),o=i(26866),r=i(78584),s=i(36806)},36806:function(e,t,i){i.d(t,{Prompt:function(){return l}});var n=i(2748),o=i(23282),r=i(29960),s=i(10830),a=i(78584);function l(e,t,i,l,c){let u=this instanceof a.Dialog?this:new a.Dialog({closeOnClickOverlay:!0}),d=(0,s.Button)(u,"cancel","Cancel"),h=(0,s.Button)(u,"ok","Ok"),p=u.c.element("form",{class:"jodit-dialog_prompt"}),f=u.c.element("input",{autofocus:!0,class:"jodit-input"}),m=u.c.element("label");(0,o.isFunction)(t)&&(i=t,t=void 0),l&&(0,r.attr)(f,"placeholder",l),n.Dom.append(m,u.c.text(e)),n.Dom.append(p,m),n.Dom.append(p,f),d.onAction(u.close);let g=()=>{i&&(0,o.isFunction)(i)&&!1===i(f.value)||u.close()};return h.onAction(g),u.e.on(p,"submit",()=>(g(),!1)),u.setFooter([h,d]),u.open(p,t||"&nbsp;",!0,!0),f.focus(),void 0!==c&&c.length&&(f.value=c,f.select()),u}},41457:function(e,t,i){var n=i(22732),o=i(29960),r=i(89890),s=i(12153),a=i(32118),l=i(21735),c=i(63399),u=i(44450),d=i(20201),h=i(50050);let p="jodit-file-browser-preview",f=(e="next",t="right")=>`<div class="${p}__navigation ${p}__navigation_arrow_${e}">`+s.Icon.get("angle-"+t)+"</a>";t.default=e=>{if(!e.o.contextMenu)return()=>{};let t=(0,c.makeContextMenu)(e);return i=>{let s=(0,l.getItem)(i.target,e.container);if(!s)return;let c=s,m=e.options,g=e=>(0,o.attr)(c,e)||"";return e.async.setTimeout(()=>{let v=(0,l.elementToItem)(s,(0,a.elementsMap)(e));v&&(e.state.activeElements=[v],t.show(i.clientX,i.clientY,[!!("1"!==g("data-is-file")&&m.editImage&&(e.dataProvider.canI("ImageResize")||e.dataProvider.canI("ImageCrop")))&&{icon:"pencil",title:"Edit",exec:()=>h.openImageEditor.call(e,g("href"),g("data-name"),g("data-path"),g("data-source"))},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){e.e.fire("fileRename.filebrowser",g("data-name"),g("data-path"),g("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await (0,u.deleteFile)(e,g("data-name"),g("data-source"))}catch(t){return e.status(t)}return e.state.activeElements=[],(0,d.loadTree)(e).catch(e.status)}},!!m.preview&&{icon:"eye",title:"Preview",exec(){let t=e.dlg({buttons:["fullsize","dialog.close"]}),i=e.c.div(p,'<div class="jodit-icon_loader"></div>'),s=e.c.div(p+"__box"),a=e.c.fromHTML(f()),l=e.c.fromHTML(f("prev","left")),u=r=>{let u=e.c.element("img");(0,o.attr)(u,"src",r),(0,o.attr)(u,"alt",g("data-name"));let d=()=>{var o;e.isInDestruct||(e.e.off(u,"load error"),n.Dom.detach(i),m.showPreviewNavigation&&(n.Dom.prevWithClass(c,e.files.getFullElName("item"))&&n.Dom.append(i,l),n.Dom.nextWithClass(c,e.files.getFullElName("item"))&&n.Dom.append(i,a)),n.Dom.append(i,s),n.Dom.append(s,u),t.setPosition(),null==(o=null==e?void 0:e.events)||o.fire("previewOpenedAndLoaded"))};e.e.on(u,"load error",d),u.complete&&d()};e.e.on([a,l],"click",function(){if(!(c=this===a?n.Dom.nextWithClass(c,e.files.getFullElName("item")):n.Dom.prevWithClass(c,e.files.getFullElName("item"))))throw(0,r.error)("Need element");n.Dom.detach(i),n.Dom.detach(s),i.innerHTML='<div class="jodit-icon_loader"></div>',u(g("href"))}),e.e.on("beforeDestruct",()=>{t.destruct()}),t.container.classList.add(p+"__dialog"),t.setContent(i),t.setPosition(),t.open(),u(g("href")),e.events.on("beforeDestruct",()=>{t.destruct()}).fire("previewOpened")}},{icon:"download",title:"Download",exec(){let t=g("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",()=>{t.close()}).on("beforeDestruct",()=>t.destruct()),i.stopPropagation(),i.preventDefault(),!1}}},32118:function(e,t,i){let n=new WeakMap;i.d(t,["elementsMap",0,e=>{let t=n.get(e);return t||(t={},n.set(e,t)),t}])},159:function(e,t,i){i.d(t,{FileBrowserItem:function(){return o}});var n=i(21537);class o{static create(e){return e instanceof o?e:new o(e)}get path(){return(0,n.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){let e=this.time||new Date().getTime().toString(),{thumbIsAbsolute:t,source:i,thumb:o,file:r}=this.data,s=o||r;return t&&s?s:(0,n.normalizeUrl)(i.baseurl,i.path,s||"")+"?_tmst="+encodeURIComponent(e)}get fileURL(){let{name:e}=this.data,{file:t,fileIsAbsolute:i,source:o}=this.data;return void 0!==t&&(e=t),i&&e?e:(0,n.normalizeUrl)(o.baseurl,o.path,e||"")}get time(){let{changed:e}=this.data;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}get uniqueHashKey(){let e=this.data;return[e.sourceName,e.name,e.file,this.time,e.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}toJSON(){return this.data}constructor(e){this.data=e,Object.keys(e).forEach(t=>{this[t]=e[t]})}}},21735:function(e,t,i){var n=i(2748);i.d(t,["elementToItem",0,(e,t)=>{let{key:i}=e.dataset,{item:n}=t[i||""];return n},"getItem",0,(e,t,i="a")=>n.Dom.closest(e,e=>n.Dom.isTag(e,i),t)])},61251:function(e,t,i){i(57459);var n=i(2748),o=i(27613),r=i(38420),s=i(4242),a=i(6441);a.Config.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(e,t)=>(t=t.toLowerCase(),(0,o.isString)(e))?-1!==e.toLowerCase().indexOf(t):(0,o.isString)(e.name)?-1!==e.name.toLowerCase().indexOf(t):!(0,o.isString)(e.file)||-1!==e.file.toLowerCase().indexOf(t),sortBy:"changed-desc",sort(e,t,i){let[n,s]=i.toLowerCase().split("-"),a="asc"===s,l=(e,t)=>t>e?a?-1:1:e>t?a?1:-1:0;if((0,o.isString)(e))return l(e.toLowerCase(),t.toLowerCase());if(void 0===e[n]||"name"===n)return(0,o.isString)(e.name)?l(e.name.toLowerCase(),t.name.toLowerCase()):(0,o.isString)(e.file)?l(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(n){case"changed":{let i=new Date(e.changed).getTime(),n=new Date(t.changed).getTime();return a?i-n:n-i}case"size":{let i=(0,r.humanSizeToBytes)(e.size),n=(0,r.humanSizeToBytes)(t.size);return a?i-n:n-i}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:e=>e.success,getMessage:e=>void 0!==e.data.messages&&(0,o.isArray)(e.data.messages)?e.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(e,t,i){let n=this.options,o=this.files.getFullElName("item"),r=n.showFileName,s=n.showFileSize&&e.size,a=n.showFileChangeTime&&e.time,l="";void 0!==e.file&&(l=e.file);let c=`<div class="${o}-info">${r?`<span class="${o}-info-filename">${l}</span>`:""}${s?`<span class="${o}-info-filesize">${e.size}</span>`:""}${a?`<span class="${o}-info-filechanged">${a}</span>`:""}</div>`;return`<a
39
39
  data-jodit-file-browser-item="true"
40
40
  data-is-file="${+!e.isImage}"
41
41
  draggable="true"
@@ -113,7 +113,7 @@
113
113
  </div>`:""}
114
114
  </div>
115
115
  </div>
116
- </form>`)}])},41409:function(e,t,i){i.r(t),i.d(t,{Ajax:function(){return p.Ajax},Alert:function(){return s.Alert},Async:function(){return l.Async},AsyncStorage:function(){return A.AsyncStorage},Button:function(){return f.Button},CommitStyle:function(){return T.CommitStyle},Component:function(){return n.Component},Confirm:function(){return s.Confirm},ContextMenu:function(){return r.ContextMenu},Create:function(){return c.Create},Dialog:function(){return s.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return d.EventEmitter},EventHandlersStore:function(){return d.EventHandlersStore},Eventify:function(){return d.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return o},History:function(){return v.History},Icon:function(){return f.Icon},ImageEditor:function(){return y.ImageEditor},IndexedDBProvider:function(){return A.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return A.LocalStorageProvider},MemoryStorageProvider:function(){return A.MemoryStorageProvider},Plugin:function(){return h.Plugin},PluginSystem:function(){return I.PluginSystem},Popup:function(){return f.Popup},ProgressBar:function(){return f.ProgressBar},Prompt:function(){return s.Prompt},Response:function(){return p.Response},STATUSES:function(){return n.STATUSES},Selection:function(){return T.Selection},Snapshot:function(){return b.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return A.Storage},StorageKey:function(){return A.StorageKey},Table:function(){return k.Table},ToolbarButton:function(){return S.ToolbarButton},ToolbarCollection:function(){return C.ToolbarCollection},ToolbarContent:function(){return S.ToolbarContent},ToolbarEditorCollection:function(){return E.ToolbarEditorCollection},ToolbarSelect:function(){return S.ToolbarSelect},UIBlock:function(){return f.UIBlock},UIButton:function(){return f.UIButton},UIButtonGroup:function(){return f.UIButtonGroup},UIButtonState:function(){return f.UIButtonState},UICheckbox:function(){return f.UICheckbox},UIElement:function(){return f.UIElement},UIFileInput:function(){return f.UIFileInput},UIForm:function(){return f.UIForm},UIGroup:function(){return f.UIGroup},UIInput:function(){return f.UIInput},UIList:function(){return f.UIList},UIMessages:function(){return _.UIMessages},UISelect:function(){return f.UISelect},UISeparator:function(){return f.UISeparator},UISpacer:function(){return f.UISpacer},UITextArea:function(){return f.UITextArea},UITooltip:function(){return f.UITooltip},Uploader:function(){return D.Uploader},View:function(){return m.View},ViewComponent:function(){return n.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return A.canUseIndexedDB},canUsePersistentStorage:function(){return A.canUsePersistentStorage},clearUseIndexedDBCache:function(){return A.clearUseIndexedDBCache},defaultNameSpace:function(){return d.defaultNameSpace},observable:function(){return d.observable}});var n=i(91907),o=i(21537),r=i(80870),s=i(638),a=i(78513),l=i(8884),c=i(12060),u=i(22732),d=i(3827),h=i(50911),p=i(41601),f=i(67510),m=i(35608),g=i(84075),v=i(78818),b=i(52604),y=i(50050),_=i(1808),w=i(23512),k=i(76014),S=i(36646),C=i(11676),E=i(37426),D=i(57380),I=i(41876),T=i(59242),A=i(12081)},68389:function(e,t,i){i.d(t,{UIMessage:function(){return r}});var n=i(87325),o=i(67510);let r=class e extends o.UIElement{className(){return"UIMessage"}constructor(e,t){super(e),this.setMod("active",!0),this.setMod("variant",t.variant),this.container.textContent=t.text}};r=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],r)},1808:function(e,t,i){i.d(t,{UIMessages:function(){return l}});var n=i(87325),o=i(2748),r=i(41180),s=i(62405),a=i(68389);let l=class e extends s.UIGroup{className(){return"UIMessages"}info(e,t){this.__message(e,"info",t)}success(e,t){this.__message(e,"success",t)}error(e,t){this.__message(e,"error",t)}message(e,t,i){this.__message(e,t,i)}__message(e,t="info",i){let n=e+":"+t;if(this.__messages.has(n))return void this.async.updateTimeout(n,i||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+n);o.Dom.append(this.__box,this.container);let r=new a.UIMessage(this.j,{text:e,variant:t});this.append(r),this.__calcOffsets(),this.__messages.add(n);let s=this.__getRemoveCallback(r,n);this.j.e.on(r.container,"pointerdown",s),this.async.setTimeout(s,{label:n,timeout:i||this.options.defaultTimeout})}__getRemoveCallback(e,t){let i=n=>{n&&n.preventDefault(),e.isInDestruct||(this.async.clearTimeout(t),this.j.e.off(e.container,"pointerdown",i),this.__messages.delete(t),e.setMod("active",!1),this.async.setTimeout(()=>{this.remove(e),e.destruct(),this.__calcOffsets()},300))};return i}__calcOffsets(){let e=5;this.elements.forEach(t=>{(0,r.css)(t.container,"bottom",e+"px"),e+=t.container.offsetHeight+this.options.defaultOffset})}constructor(e,t,i={defaultTimeout:3e3,defaultOffset:5}){super(e),this.__box=t,this.options=i,this.__messages=new Set}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],l)},23512:function(e,t,i){i.d(t,{StatusBar:function(){return l}});var n=i(91907),o=i(65478),r=i(2748),s=i(14316),a=i(34176);let l=class e extends n.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var e,t;return null!=(t=null==(e=this.container)?void 0:e.offsetHeight)?t:0}findEmpty(e=!1){let t=this.getElms(e?"item-right":"item");for(let e=0;e<t.length;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){let i=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&i.classList.add(this.getFullElName("item-right")),r.Dom.append(i,e),this.container&&r.Dom.append(this.container,i),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),r.Dom.safeRemove(this.container),super.destruct())}constructor(e,t){super(e),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),r.Dom.append(t,this.container),this.hide()}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([o.component,(0,o.derive)(a.Mods,s.Elms)],l)},76014:function(e,t,i){i.d(t,{Table:function(){return d}});var n=i(91907),o=i(82758),r=i(22732),s=i(580),a=i(21537),l=i(41180);let c=new Set(["thead","tbody","tfoot"]),u=new WeakMap;class d extends n.ViewComponent{className(){return"Table"}addSelection(e){this.selected.add(e),this.__recalculateStyles();let t=r.Dom.closest(e,"table",this.j.editor);if(t){let i=d.__selectedByTable.get(t)||new Set;i.add(e),d.__selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.__recalculateStyles();let t=r.Dom.closest(e,"table",this.j.editor);if(t){let i=d.__selectedByTable.get(t);i&&(i.delete(e),i.size||d.__selectedByTable.delete(t))}}getAllSelectedCells(){return(0,a.toArray)(this.selected)}static __getSelectedCellsByTable(e){let t=d.__selectedByTable.get(e);return t?(0,a.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(e){return e.rows.length}getRowsCount(e){return d.__getRowsCount(e)}static __getColumnsCount(e){return d.__formalMatrix(e).reduce((e,t)=>Math.max(e,t.length),0)}getColumnsCount(e){return d.__getColumnsCount(e)}static __formalMatrix(e,t){let i=[[]],n=(0,a.toArray)(e.rows),o=(e,n)=>{void 0===i[n]&&(i[n]=[]);let o=e.colSpan,r=e.rowSpan,s,a,l=0;for(;i[n][l];)l+=1;for(a=0;r>a;a+=1)for(s=0;s<o;s+=1){if(void 0===i[n+a]&&(i[n+a]=[]),t&&!1===t(e,n+a,l+s,o,r))return!1;i[n+a][l+s]=e}};for(let e=0;e<n.length;e+=1){let t=(0,a.toArray)(n[e].cells);for(let n=0;n<t.length;n+=1)if(!1===o(t[n],e))return i}return i}formalMatrix(e,t){return d.__formalMatrix(e,t)}static __formalCoordinate(e,t,i=!1){let n=0,o=0,r=1,s=1;return d.__formalMatrix(e,(e,a,l,c,u)=>{if(t===e)return n=a,o=l,r=c||1,s=u||1,i&&(o+=(c||1)-1,n+=(u||1)-1),!1}),[n,o,r,s]}formalCoordinate(e,t,i=!1){return d.__formalCoordinate(e,t,i)}static __appendRow(e,t,i,n){let o;if(t)o=t.cloneNode(!0),r.Dom.each(t,e=>{if(!r.Dom.isCell(e))return;let t=(0,a.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){let i=parseInt(t,10)-1;(0,a.attr)(e,"rowspan",i>1?i:null)}}),r.Dom.each(o,e=>{r.Dom.isCell(e)&&(r.Dom.detach(e),r.Dom.append(e,n.element("br")))});else{let t=d.__getColumnsCount(e);o=n.element("tr");for(let e=0;e<t;e+=1){let e=n.element("td");r.Dom.append(e,n.element("br")),r.Dom.append(o,e)}}let s=t&&t.parentElement;if(i&&t&&!t.nextElementSibling&&r.Dom.isTag(s,"thead")){let t=d.__bodyOf(e,s,n);t.insertBefore(o,t.firstChild),d.__setCellsTag(o,"td",n)}else i&&t&&t.nextSibling?r.Dom.after(t,o):!i&&t?r.Dom.before(t,o):r.Dom.append(r.Dom.first(e,e=>r.Dom.isTag(e,"tbody"))||e,o)}static __bodyOf(e,t,i){let n=e.tBodies[0];return n||(n=i.element("tbody"),r.Dom.after(t,n)),n}static __setCellsTag(e,t,i,n){(0,a.toArray)(e.cells).forEach(e=>{let o=r.Dom.isTag(e,t)?e:r.Dom.replace(e,t,i,!0);o!==e&&(null==n||n.set(e,o)),"td"===t?(0,a.attr)(o,"scope",null):o.hasAttribute("scope")||(0,a.attr)(o,"scope","col")})}hasHeaderRow(e){var t;return!!(null==(t=e.tHead)?void 0:t.rows.length)}canToggleHeaderRow(e){let[t]=(0,a.toArray)(e.rows);return this.hasHeaderRow(e)||!!(t&&(0,a.toArray)(t.cells).every(e=>e.rowSpan<2))}toggleHeaderRow(e){let t=new Map,i=this.j.createInside,n=e.tHead;if(!this.canToggleHeaderRow(e))return t;if(n&&this.hasHeaderRow(e)){let o=d.__bodyOf(e,n,i),s=o.firstChild;(0,a.toArray)(n.rows).forEach(e=>{o.insertBefore(e,s),d.__setCellsTag(e,"td",i,t)}),r.Dom.safeRemove(n)}else{let[o]=(0,a.toArray)(e.rows),s=n||i.element("thead");n||(e.tHead=s),r.Dom.append(s,o),d.__setCellsTag(o,"th",i,t)}return t}appendRow(e,t,i){return d.__appendRow(e,t,i,this.j.createInside)}static __removeRow(e,t){let i,n=d.__formalMatrix(e),o=e.rows[t];n[t].forEach((s,l)=>{if(i=!1,t-1>=0&&n[t-1][l]===s)i=!0;else if(n[t+1]&&n[t+1][l]===s){if(s.parentNode===o&&s.parentNode.nextSibling){i=!0;let o=l+1;for(;n[t+1][o]===s;)o+=1;let a=r.Dom.next(s.parentNode,e=>r.Dom.isTag(e,"tr"),e);if(a){let e=null;for(let i=o;i<n[t+1].length;i+=1){let o=n[t+1][i];if(o&&o.parentNode===a){e=o;break}}e?r.Dom.before(e,s):r.Dom.append(a,s)}}}else r.Dom.safeRemove(s);if(i&&(s.parentNode===o||s!==n[t][l-1])){let e=s.rowSpan;(0,a.attr)(s,"rowspan",e-1>1?e-1:null)}});let s=o.parentElement;r.Dom.safeRemove(o),r.Dom.isTag(s,c)&&!s.rows.length&&r.Dom.safeRemove(s)}removeRow(e,t){return d.__removeRow(e,t)}appendColumn(e,t,i=!0){let n=d.__formalMatrix(e);if(!i&&r.Dom.isCell(t.previousElementSibling))return this.appendColumn(e,t.previousElementSibling,!0);let[,o]=d.__formalCoordinate(e,t,i),s=i?o+1:o;for(let e=0;e<n.length;){let t=n[e];if(t[o]!==t[s]||o===s){let e=this.j.createInside.element("td");r.Dom.append(e,this.j.createInside.element("br")),i?r.Dom.after(t[o],e):r.Dom.before(t[o],e),t[o].rowSpan>1&&(e.rowSpan=t[o].rowSpan)}else t[o].colSpan+=1;e+=t[o].rowSpan||1}}static __removeColumn(e,t){let i,n=d.__formalMatrix(e);n.forEach((e,o)=>{let s=e[t];if(i=!1,t-1>=0&&n[o][t-1]===s||t+1<e.length&&n[o][t+1]===s?i=!0:r.Dom.safeRemove(s),i&&(o-1<0||s!==n[o-1][t])){let e=s.colSpan;(0,a.attr)(s,"colspan",e-1>1?(e-1).toString():null)}})}removeColumn(e,t){return d.__removeColumn(e,t)}static __getSelectedBound(e,t){let i,n,o,r=[[1/0,1/0],[0,0]],s=d.__formalMatrix(e);for(i=0;i<s.length;i+=1)for(n=0;s[i]&&n<s[i].length;n+=1)t.includes(s[i][n])&&(r[0][0]=Math.min(i,r[0][0]),r[0][1]=Math.min(n,r[0][1]),r[1][0]=Math.max(i,r[1][0]),r[1][1]=Math.max(n,r[1][1]));for(i=r[0][0];i<=r[1][0];i+=1)for(o=1,n=r[0][1];n<=r[1][1];n+=1){for(;s[i]&&s[i][n-o]&&s[i][n]===s[i][n-o];)r[0][1]=Math.min(n-o,r[0][1]),r[1][1]=Math.max(n-o,r[1][1]),o+=1;for(o=1;s[i]&&s[i][n+o]&&s[i][n]===s[i][n+o];)r[0][1]=Math.min(n+o,r[0][1]),r[1][1]=Math.max(n+o,r[1][1]),o+=1;for(o=1;s[i-o]&&s[i][n]===s[i-o][n];)r[0][0]=Math.min(i-o,r[0][0]),r[1][0]=Math.max(i-o,r[1][0]),o+=1;for(o=1;s[i+o]&&s[i][n]===s[i+o][n];)r[0][0]=Math.min(i+o,r[0][0]),r[1][0]=Math.max(i+o,r[1][0]),o+=1}return r}getSelectedBound(e,t){return d.__getSelectedBound(e,t)}static __normalizeTable(e){let t=[],i=d.__formalMatrix(e);d.__removeExtraColspans(i,t),d.__removeExtraRowspans(i,t);for(let e=0;e<i.length;e+=1)for(let t=0;t<i[e].length;t+=1)void 0!==i[e][t]&&(i[e][t].hasAttribute("rowspan")&&1===i[e][t].rowSpan&&(0,a.attr)(i[e][t],"rowspan",null),i[e][t].hasAttribute("colspan")&&1===i[e][t].colSpan&&(0,a.attr)(i[e][t],"colspan",null),i[e][t].hasAttribute("class")&&!(0,a.attr)(i[e][t],"class")&&(0,a.attr)(i[e][t],"class",null));d.__unmark(t)}static __removeExtraColspans(e,t){for(let i=0;i<e[0].length;i+=1){let n=1e6,o=!1;for(let t=0;t<e.length;t+=1)if(void 0!==e[t][i]){if(e[t][i].colSpan<2){o=!0;break}n=Math.min(n,e[t][i].colSpan)}if(!o)for(let o=0;o<e.length;o+=1)void 0!==e[o][i]&&d.__mark(e[o][i],"colspan",e[o][i].colSpan-n+1,t)}}static __removeExtraRowspans(e,t){let i,n;for(i=0;i<e.length;i+=1){let o=1e6,r=!1;for(n=0;n<e[i].length;n+=1)if(void 0!==e[i][n]){if(e[i][n].rowSpan<2){r=!0;break}o=Math.min(o,e[i][n].rowSpan)}if(!r)for(n=0;n<e[i].length;n+=1)void 0!==e[i][n]&&d.__mark(e[i][n],"rowspan",e[i][n].rowSpan-o+1,t)}}normalizeTable(e){return d.__normalizeTable(e)}static __mergeSelected(e,t){let i=[],n=d.__getSelectedBound(e,d.__getSelectedCellsByTable(e)),s=0,c=null,u=0,p=0,f=0,m=new Set,g=[];n&&(n[0][0]-n[1][0]||n[0][1]-n[1][1])&&(d.__formalMatrix(e,(e,o,r,v,b)=>{o>=n[0][0]&&o<=n[1][0]&&r>=n[0][1]&&r<=n[1][1]&&(m.has(e)||(m.add(e),o===n[0][0]&&(0,l.cssInline)(e,"width")&&(s+=e.offsetWidth),""!==(0,a.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),v>1&&(p+=v-1),b>1&&(f+=b-1),c?(d.__mark(e,"remove",1,g),h(t).removeSelection(e)):(c=e,u=r)))}),p=n[1][1]-n[0][1]+1,f=n[1][0]-n[0][0]+1,c&&(p>1&&d.__mark(c,"colspan",p,g),f>1&&d.__mark(c,"rowspan",f,g),s&&(d.__mark(c,"width",(s/e.offsetWidth*100).toFixed(o.ACCURACY)+"%",g),u&&d.__setColumnWidthByDelta(e,u,0,!0,g)),c.innerHTML=i.join("<br/>")||"<br/>",h(t).addSelection(c),m.delete(c),d.__unmark(g),d.__normalizeTable(e),(0,a.toArray)(e.rows).forEach(e=>{e.cells.length||r.Dom.safeRemove(e)})))}mergeSelected(e){return d.__mergeSelected(e,this.j)}static __splitHorizontal(e,t){let i,n,o,s,a,l=[];d.__getSelectedCellsByTable(e).forEach(c=>{n=t.createInside.element("td"),r.Dom.append(n,t.createInside.element("br")),o=t.createInside.element("tr"),i=d.__formalCoordinate(e,c),c.rowSpan<2?(d.__formalMatrix(e,(e,t,n)=>{i[0]===t&&i[1]!==n&&e!==c&&d.__mark(e,"rowspan",e.rowSpan+1,l)}),r.Dom.after(r.Dom.closest(c,"tr",e),o),r.Dom.append(o,n)):(d.__mark(c,"rowspan",c.rowSpan-1,l),d.__formalMatrix(e,(t,n,o)=>{n>i[0]&&n<i[0]+c.rowSpan&&i[1]>o&&t.parentNode.rowIndex===n&&(a=t),i[0]<n&&t===c&&(s=e.rows[n])}),a?r.Dom.after(a,n):r.Dom.prepend(s,n)),c.colSpan>1&&d.__mark(n,"colspan",c.colSpan,l),d.__unmark(l),h(t).removeSelection(c)}),this.__normalizeTable(e)}splitHorizontal(e){return d.__splitHorizontal(e,this.j)}static __splitVertical(e,t){let i,n,s,a=[];d.__getSelectedCellsByTable(e).forEach(l=>{i=d.__formalCoordinate(e,l),l.colSpan<2?d.__formalMatrix(e,(e,t,n)=>{i[1]===n&&i[0]!==t&&e!==l&&d.__mark(e,"colspan",e.colSpan+1,a)}):d.__mark(l,"colspan",l.colSpan-1,a),n=t.createInside.element("td"),r.Dom.append(n,t.createInside.element("br")),l.rowSpan>1&&d.__mark(n,"rowspan",l.rowSpan,a);let c=l.offsetWidth;r.Dom.after(l,n),s=c/e.offsetWidth/2,d.__mark(l,"width",(100*s).toFixed(o.ACCURACY)+"%",a),d.__mark(n,"width",(100*s).toFixed(o.ACCURACY)+"%",a),d.__unmark(a),h(t).removeSelection(l)}),d.__normalizeTable(e)}splitVertical(e){return d.__splitVertical(e,this.j)}static __setColumnWidthByDelta(e,t,i,n,r){let s=d.__formalMatrix(e),a=0;for(let n=0;n<s.length;n+=1){let l=s[n][t];if(l.colSpan>1&&s.length>1)continue;let c=(l.offsetWidth+i)/e.offsetWidth*100;d.__mark(l,"width",c.toFixed(o.ACCURACY)+"%",r),a=n;break}for(let e=a+1;e<s.length;e+=1){let i=s[e][t];d.__mark(i,"width",null,r)}n||d.__unmark(r)}setColumnWidthByDelta(e,t,i,n,o){return d.__setColumnWidthByDelta(e,t,i,n,o)}static __mark(e,t,i,n){var o;n.push(e);let r=null!=(o=u.get(e))?o:{};r[t]=void 0===i?1:i,u.set(e,r)}static __unmark(e){e.forEach(e=>{let t=u.get(e);t&&(Object.keys(t).forEach(i=>{let n=t[i];switch(i){case"remove":r.Dom.safeRemove(e);break;case"rowspan":(0,a.attr)(e,"rowspan",(0,a.isNumber)(n)&&n>1?n:null);break;case"colspan":(0,a.attr)(e,"colspan",(0,a.isNumber)(n)&&n>1?n:null);break;case"width":null==n?(e.style.removeProperty("width"),(0,a.attr)(e,"style")||(0,a.attr)(e,"style",null)):(0,a.css)(e,"width",n.toString())}delete t[i]}),u.delete(e))})}constructor(){super(...arguments),this.selected=new Set,this.__recalculateStyles=this.async.microDebounce(()=>{let e=(0,s.getContainer)(this.j,d,"style",!0),t=[];this.selected.forEach(e=>{let i=(0,a.cssPath)(e);i&&t.push(i)});let i=t.length>1?t.map(e=>`${e}::selection,${e} ::selection`).join(",")+"{background:transparent}":"";e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`+i:""})}}d.__selectedByTable=new WeakMap;let h=e=>e.getInstance("Table",e.o)},78644:function(e,t,i){i.d(t,{ToolbarButton:function(){return j}});var n,o=i(4012),r=i(78213),s=i(82758),a=i(45219),l=i(33433),c=i(87325),u=i(37133),d=i(2748),h=i(68345),p=i(23282),f=i(19306),m=i(72430),g=i(70799),v=i(56175),b=i(87058),y=i(38837),_=i(29960),w=i(37790),k=i(62843),S=i(20014),C=i(72157),E=i(12153),D=i(56917),I=i(21491),T=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let A=new Set(["input","textarea","select"]),j=n=class e extends k.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,_.attr)(this.trigger,"aria-label",e)}}get toolbar(){let e=(0,c.getComponentClass)("ToolbarCollection");return this.closest(e)}update(){var e,t;let{control:i,state:n}=this,o=this.toolbar;if(!o)return;let r=null==(e=i.value)?void 0:e.call(i,o.jodit,this);void 0!==r&&(n.value=r),n.disabled=this.__calculateDisabledStatus(o),n.activated=this.__calculateActivatedStatus(o),null==(t=i.update)||t.call(i,o.jodit,this)}__calculateActivatedStatus(e){var t,i;return(!(0,f.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(i=(t=this.control).isActive)&&!!i.call(t,this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){var t,i;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(i=(t=this.control).isDisabled)?void 0:i.call(t,this.j,this)))||!!(e&&e.shouldBeDisabled(this))}get isToggle(){let{isActive:e,tags:t,css:i}=this.control;return!!(e||t||i)}onChangeActivated(){(0,_.attr)(this.button,"aria-pressed",this.isToggle?this.state.activated:null),this.setMod("activated",this.state.activated||null)}onChangeText(){(0,p.isFunction)(this.control.template)?(this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)),this.updateAriaLabel()):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,_.attr)(this.button,"tabindex",this.state.tabIndex),(0,_.attr)(this.trigger,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this,configurable:!0}),d.Dom.append(t,i);let n=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${e}__trigger">${E.Icon.get("chevron")}</span>`);return d.Dom.append(i,n),t}focus(){var e;null==(e=d.Dom.first(this.container,e=>d.Dom.isTag(e,"button")))||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?d.Dom.append(this.container,this.trigger):d.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,_.attr)(this.trigger,"disabled",e),(0,_.attr)(this.button,"disabled",e),(0,_.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name,this.__initIconFromControl(),e.tooltip&&(t.tooltip=(0,p.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip),t.hasTrigger=!!(e.list||e.popup&&e.exec),this.onChangeActivated()}__initIconFromControl(){var e;let{control:t,state:i}=this,{textIcons:n}=this.j.o;if(!0===n||(0,p.isFunction)(n)&&n(t.name)||t.template){i.icon=(0,k.UIButtonState)().icon,i.text=t.text||t.name;return}if(!(0,g.isString)(t.icon)&&null!=t.icon){i.icon={name:t.icon.name||t.name,iconURL:t.icon.iconURL||"",fill:t.icon.fill||"",scale:t.icon.scale};return}if(t.iconURL)i.icon.iconURL=t.iconURL;else{let n=t.icon||t.name;i.icon.name=E.Icon.exists(n)||(null==(e=this.j.o.extraIcons)?void 0:e[n])?n:""}t.iconURL||i.icon.name||(i.text=t.text||t.name)}onTriggerClick(e){var t,i,n;if(this.openedPopup)return void this.__closePopup();let{control:o}=this;if((0,_.attr)(this.trigger,"aria-expanded",!0),e.buffer={actionTrigger:this},o.list)return this.__openControlList(o);if((0,p.isFunction)(o.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,b.camelCase)(`before-${o.name}-open-popup`),this.target,o,e)){let r=null!=(n=null!=(i=null==(t=this.toolbar)?void 0:t.getTarget(this))?i:this.target)?n:null,s=o.popup(this.j,r,this.__closePopup,this);s?(e.setContent((0,g.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,v.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),(0,S.focusFormField)(e.container)):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,b.camelCase)(`after-${o.name}-open-popup`),e.container)}}onTriggerKeyDown(e){this.state.disabled||(e.key===s.KEY_DOWN?this.onButtonKeyDown(e):[s.KEY_ENTER,s.KEY_SPACE," "].includes(e.key)&&(e.preventDefault(),this.trigger.click()))}onButtonKeyDown(e){var t;e.key!==s.KEY_DOWN||this.state.disabled||!this.state.hasTrigger||e.altKey||e.ctrlKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),this.openedPopup||this.trigger.click(),null==(t=this.__popupFocusables()[0])||t.focus())}__onPopupKeyDown(e){if(!this.openedPopup||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target;if(d.Dom.isTag(t,A)&&e.key!==s.KEY_ESC)return;let i=this.__popupFocusables(),n=i.indexOf(t);switch(e.key){case s.KEY_ESC:this.__closePopup();break;case s.KEY_UP:n<=0?this.__closePopup():i[n-1].focus();break;case s.KEY_DOWN:if(!i.length)return;i[(n+1)%i.length].focus();break;default:if(!this.control.list||!this.__typeAhead(e.key,i,n))return}e.preventDefault(),e.stopPropagation()}__onEditorKeyDown(e){if(this.openedPopup&&this.control.list&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&this.__typeAhead(e.key,this.__popupFocusables(),-1))return e.preventDefault(),!1}__typeAhead(e,t,i){var n,o;let r=Date.now();if((r-this.__typedAt>1e3||t[i]!==this.__typedTo)&&(this.__typed=""),1!==e.length||" "===e&&!this.__typed)return!1;this.__typedAt=r,this.__typed+=e,this.__typedTo=t[i];let{compare:s}=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"}),a=this.__typed,l=Array.from(a).every(e=>0===s(e,a[0])),c=l?a[0]:a,u=l?i+1:Math.max(i,0);for(let e=0;e<t.length;e+=1){let i=t[(u+e)%t.length];if(0===s((null!=(o=null==(n=i.textContent)?void 0:n.trim())?o:"").slice(0,c.length),c)){i.focus(),this.__typedTo=i;break}}return!0}__popupFocusables(){let e=this.openedPopup;return e?Array.from(e.container.querySelectorAll('button:not([disabled]),a[href],input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter(e=>!!e.offsetParent):[]}__openControlList(e){var t,i,n,o,r;let s=null!=(t=this.jodit.options.controls)?t:{},a=e=>(0,C.findControlType)(e,s),l=e.list,c=this.openPopup();c.parentElement=this;let u=null==(i=e.popup)?void 0:i.call(e,this.j,null!=(r=null!=(o=null==(n=this.toolbar)?void 0:n.getTarget(this))?o:this.target)?r:null,this.__closePopup,this);if(u)return this.__openMenu(c,u);let d=(0,I.makeCollection)(this.j);d.parentElement=c,d.mode="vertical";let p=(t,i)=>{let n;if((0,g.isString)(i)&&a(i))return{name:i.toString(),...a(i)};if((0,g.isString)(t)&&a(t))return{name:t.toString(),...a(t),..."object"==typeof i?i:{}};n=t,(0,m.isPlainObject)(n)&&"title"in n&&"value"in n&&(i=t.value,t=t.title);let{childTemplate:o}=e,r={name:t.toString(),template:o&&((e,t,i)=>o(e,t,i,this)),exec:e.childExec?(t,i,n)=>{var o;return null==(o=e.childExec)?void 0:o.call(e,t,i,{...n,parentControl:e})}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,g.isString)(i)&&(r.text=i),r};d.build((0,h.isArray)(l)?l.map(p):(0,w.keys)(l,!1).map(e=>p(e,l[e])),this.target),this.__openMenu(c,d)}__openMenu(e,t){e.setContent(t).open(()=>(0,v.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&d.Dom.isNode(e.target)&&(d.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new D.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick).on("keydown",this.__onEditorKeyDown).on(this.openedPopup.container,"keydown",this.__onPopupKeyDown),this.openedPopup}__closePopup(){let e=this.openedPopup;if(!e)return;this.openedPopup=null,this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick).off("keydown",this.__onEditorKeyDown);let{activeElement:t}=this.od,i=t&&d.Dom.isOrContains(e.container,t),n=i&&d.Dom.closest(t,"form",e.container);this.state.activated=!1,e.close(),e.destruct(),this.trigger&&(0,_.attr)(this.trigger,"aria-expanded",!1),n&&(0,f.isJoditObject)(this.j)?this.j.s.focus():i&&this.focus()}onClick(e){var t,i,n,o,r,s,a;let{control:l}=this;if((0,p.isFunction)(l.exec)){let c=null!=(n=null!=(i=null==(t=this.toolbar)?void 0:t.getTarget(this))?i:this.target)?n:null,u=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==u&&!0!==u&&(null==(r=null==(o=this.j)?void 0:o.e)||r.fire("synchro"),this.parentElement&&this.parentElement.update(),this.__closePopups(),null==(a=null==(s=this.j)?void 0:s.e)||a.fire("afterExec")),!1!==u)return}return l.list?this.__openControlList(l):(0,p.isFunction)(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&((0,w.call)((0,f.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.__closePopups()))}__closePopups(){var e,t;let i=[this];for(let e=this.parentElement;e;e=e.parentElement){if(o.Component.isInstanceOf(e,D.Popup)&&e.keepOpen&&(!this.target||this.target.isConnected)){i.forEach(e=>e.__closePopup()),e.updatePosition();return}o.Component.isInstanceOf(e,n)&&i.push(e)}null==(t=null==(e=this.j)?void 0:e.e)||t.fire("closeAllPopups")}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.state={...(0,k.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.__typed="",this.__typedAt=0,this.__typedTo=null,this.openedPopup=null;let n=this.getElm("button");(0,y.assert)(n,"Element button should exists"),this.button=n,Object.defineProperty(n,"component",{value:this,configurable:!0});let o=this.getElm("trigger");(0,y.assert)(o,"Element trigger should exists"),this.trigger=o,o.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(r.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}};T([l.cacheHTML],j.prototype,"createContainer",null),T([(0,u.watch)("state.hasTrigger",{immediately:!1})],j.prototype,"onChangeHasTrigger",null),T([(0,u.watch)("trigger:click")],j.prototype,"onTriggerClick",null),T([(0,u.watch)("trigger:keydown")],j.prototype,"onTriggerKeyDown",null),T([(0,u.watch)("button:keydown")],j.prototype,"onButtonKeyDown",null),T([a.autobind],j.prototype,"__onPopupKeyDown",null),T([a.autobind],j.prototype,"__onEditorKeyDown",null),T([a.autobind],j.prototype,"onOutsideClick",null),T([a.autobind],j.prototype,"__closePopup",null),j=n=T([c.component],j)},80319:function(e,t,i){i.d(t,{ToolbarContent:function(){return l}});var n=i(65478),o=i(22732),r=i(21537),s=i(62843);let a=new Set(["input","button","select","textarea"]),l=class e extends s.UIButton{className(){return"ToolbarContent"}getRole(){return"listitem"}onChangeActivated(){}update(){var e,t,i;let{control:n}=this,s=n.getContent(this.j,this);((0,r.isString)(s)||s.parentNode!==this.container)&&(o.Dom.detach(this.container),o.Dom.append(this.container,(0,r.isString)(s)?this.j.create.fromHTML(s):s)),this.state.disabled=!!(null==(e=n.isDisabled)?void 0:e.call(n,this.j,this)),this.state.activated=!!(null==(t=n.isActive)?void 0:t.call(n,this.j,this)),null==(i=n.update)||i.call(n,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),o.Dom.each(this.container,e=>{o.Dom.isTag(e,a)&&(0,r.attr)(e,"disabled",this.state.disabled||null)})}createContainer(){return this.j.c.span(this.componentName)}constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`)}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],l)},36646:function(e,t,i){i.d(t,{ToolbarButton:function(){return n.ToolbarButton},ToolbarContent:function(){return o.ToolbarContent},ToolbarSelect:function(){return r.ToolbarSelect}});var n=i(78644),o=i(80319),r=i(83111)},83111:function(e,t,i){i.d(t,{ToolbarSelect:function(){return l}});var n=i(65478),o=i(72430),r=i(70799),s=i(29960),a=i(78644);let l=class e extends a.ToolbarButton{className(){return"ToolbarSelect"}get isToggle(){return!1}update(){var e,t,i;super.update(),this.state.icon.name="";let{list:n,data:s}=this.control;if(n){let a=this.state.value||(s&&(0,r.isString)(s.currentValue)?s.currentValue:void 0);a||(a=Object.keys(n)[0]);let l=((0,o.isPlainObject)(n)&&n[a.toString()]||a).toString();this.state.text=null!=(i=null==(t=(e=this.control).textTemplate)?void 0:t.call(e,this.jodit,l))?i:l}}updateAriaLabel(){var e;super.updateAriaLabel();let{tooltip:t}=this.state,i=null==(e=this.text.textContent)?void 0:e.trim();t&&i&&(0,s.attr)(this.button,"aria-label",`${this.jodit.i18n(t)}, ${i}`)}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],l)},11676:function(e,t,i){i.d(t,{ToolbarCollection:function(){return f}});var n=i(65478),o=i(45219),r=i(87325),s=i(97357),a=i(37133),l=i(29960),c=i(41180),u=i(82760),d=i(24536),h=i(21491),p=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let f=class e extends d.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[e]=this.buttons;return e||null}makeButton(e,t=null){return(0,h.makeButton)(this.j,e,t)}makeSelect(e,t=null){return(0,h.makeSelect)(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(e){(0,c.css)(this.container,"direction",e),(0,l.attr)(this.container,"dir",e)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,u.error)("The method is not implemented for this class.")}build(e,t=null){let i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(e){super(e),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};p([(0,a.watch)(":afterInit"),o.autobind],f.prototype,"__immediateUpdate",null),p([(0,n.debounce)(e=>e.j.defaultTimeout,!0)],f.prototype,"update",null),p([(0,s.hook)("ready")],f.prototype,"__initEvents",null),f=p([r.component],f)},37426:function(e,t,i){i.d(t,{ToolbarEditorCollection:function(){return l}});var n=i(82758),o=i(65478),r=i(22732),s=i(21537),a=i(11676);let l=class e extends a.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){let t=super.shouldBeDisabled(e);if(void 0!==t)return t;let i=void 0===e.control.mode?n.MODE_WYSIWYG:e.control.mode;return i!==n.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(e){let t,i=super.shouldBeActive(e);if(void 0!==i)return i;let n=this.j.selection?this.j.s.current():null;if(!n)return!1;if(e.control.tags){let i=e.control.tags;if(t=n,r.Dom.up(t,e=>{if(e&&-1!==i.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){let i=e.control.css;if(t=n,r.Dom.up(t,e=>{if(e&&!r.Dom.isText(e)&&!r.Dom.isComment(e))return this.checkActiveStatus(i,e)},this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){let t=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});r.Dom.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(e){super(e),this.checkActiveStatus=(e,t)=>{let i=0,n=0;return Object.keys(e).forEach(o=>{let r=e[o];(0,s.isFunction)(r)?r(this.j,(0,s.css)(t,o).toString())&&(i+=1):-1!==r.indexOf((0,s.css)(t,o).toString())&&(i+=1),n+=1}),n===i},this.prependInvisibleInput(this.container)}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([o.component],l)},21491:function(e,t,i){i.d(t,{makeButton:function(){return a},makeCollection:function(){return s},makeSelect:function(){return l}});var n=i(87325),o=i(23282),r=i(19306);function s(e,t){let i=(0,n.getComponentClass)("ToolbarCollection"),o=(0,n.getComponentClass)("ToolbarEditorCollection"),s=(0,r.isJoditObject)(e)?new o(e):new i(e);return e.o.textIcons&&s.container.classList.add("jodit_text_icons"),t&&(s.parentElement=t),e.o.toolbarButtonSize&&(s.buttonSize=e.o.toolbarButtonSize),s}function a(e,t,i=null){if((0,o.isFunction)(t.getContent))return new((0,n.getComponentClass)("ToolbarContent"))(e,t,i);let r=new((0,n.getComponentClass)("ToolbarButton"))(e,t,i);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}function l(e,t,i=null){return new((0,n.getComponentClass)("ToolbarSelect"))(e,t,i)}},80536:function(e,t,i){var n=i(68345),o=i(19306),r=i(29960),s=i(6441),a=i(2073);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,showTabInFileSelector:!0,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName:e=>`files[${e}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:e=>e,isSuccess:e=>e.success,getMessage:e=>void 0!==e.data.messages&&(0,n.isArray)(e.data.messages)?e.data.messages.join(" "):"",processFileName:(e,t,i)=>[e,t,i],process:e=>e.data,error(e){this.j.message.error(e.message,4e3)},getDisplayName:(e,t)=>e+t,defaultHandlerSuccess(e){let t=this.j||this;if(!(0,o.isJoditObject)(t))return;let{baseurl:i}=e;(0,a.getItems)(e).forEach(({file:e,isImage:n})=>{let[o,s]=n?["img","src"]:["a","href"],a=t.createInside.element(o);(0,r.attr)(a,s,i+e),"a"===o&&(a.textContent=t.o.uploader.getDisplayName.call(this,i,e)),"img"===o?t.s.insertImage(a,null,t.o.imageDefaultWidth):t.s.insertNode(a)})},defaultHandlerError(e){this.j.message.error(e.message)},promptOnExists:!0,promptOnExistsSuggestName:e=>e,contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},83987:function(e,t,i){i.d(t,{buildData:function(){return o}});var n=i(21537);function o(e,t){if((0,n.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);let i=e.ow.FormData;if(void 0!==i){if(t instanceof i||(0,n.isString)(t))return t;let e=new i;return Object.keys(t).forEach(i=>{e.append(i,t[i])}),e}return t}},74569:function(e,t,i){i.d(t,{dataURItoBlob:function(){return n}});function n(e){var t,i;let[n,...o]=e.split(","),r=o.join(","),s=null!=(i=null==(t=n.split(":")[1])?void 0:t.split(";")[0])?i:"",a=/;base64/i.test(n)?atob(r):decodeURIComponent(r),l=new Uint8Array(new ArrayBuffer(a.length));for(let e=0;e<a.length;e+=1)l[e]=a.charCodeAt(e);return new Blob([l.buffer],{type:s})}},94122:function(e,t,i){i.d(t,{ajaxInstances:function(){return r.ajaxInstances},hasFiles:function(){return a},hasItems:function(){return l},normalizeUploaderData:function(){return n.normalizeUploaderData},processOldBrowserDrag:function(){return o.processOldBrowserDrag},send:function(){return r.send},sendFiles:function(){return s.sendFiles}}),i(83987);var n=i(2073),o=i(50373),r=i(71686),s=i(80020);function a(e){return!!(e&&e.files&&e.files.length>0)}function l(e){return!!(e&&e.items&&e.items.length>0)}},2073:function(e,t,i){i.d(t,{getItems:function(){return r},normalizeUploaderData:function(){return s}});var n=i(68345),o=i(70799);function r(e){let{files:t,isImages:i,fileNames:o,items:r}=e;return(0,n.isArray)(t)?t.map((e,t)=>{let n=null==o?void 0:o[t];return{file:e,isImage:!!(null==i?void 0:i[t]),...void 0!==n?{name:n}:{}}}):null!=r?r:[]}function s(e){if(!e||"object"!=typeof e)return e;let{files:t,items:i}=e;if(!i||(0,n.isArray)(t)&&(t.length||!i.length))return{...e,items:r(e)};let s=i.map(({name:e})=>e);return{...e,files:i.map(({file:e})=>e),isImages:i.map(({isImage:e})=>e),...s.every(o.isString)?{fileNames:s}:{},items:i}}},50373:function(e,t,i){i.d(t,{processOldBrowserDrag:function(){return c}});var n=i(82758),o=i(22732),r=i(580),s=i(21537),a=i(74569),l=i(80020);function c(e,t,i,c,u){if(t&&(!t.types.length||t.types[0]!==n.TEXT_PLAIN)){let t=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});o.Dom.append((0,r.getContainer)(e.j,e.constructor),t);let n=(0,s.isJoditObject)(e.j)?e.j.s.save():null;t.focus(),e.j.async.setTimeout(()=>{let r=t.firstChild;if(o.Dom.safeRemove(t),r&&r.hasAttribute("src")){let t=(0,s.attr)(r,"src")||"";n&&(0,s.isJoditObject)(e.j)&&e.j.s.restore(),(0,l.sendFiles)(e,[(0,a.dataURItoBlob)(t)],i,c).finally(u)}},e.j.defaultTimeout)}}},80020:function(e,t,i){i.d(t,{sendFiles:function(){return u}});var n=i(82758),o=i(21537),r=i(70231),s=i(36806),a=i(2073),l=i(71686),c=i(76198);async function u(e,t,i,d,h,p){if(!t)throw(0,o.error)("Need files");let{o:f}=e,m=(0,o.toArray)(t);if(!m.length)throw(0,o.error)("Need files");let g=null==p?void 0:p.data;if(!p&&(0,o.isFunction)(f.beforeUpload)){let t;try{t=await f.beforeUpload.call(e,m)}catch(t){throw(d||f.defaultHandlerError).call(e,t),t}if(!1===t){let t=(0,o.error)("Upload canceled");throw(d||f.defaultHandlerError).call(e,t),t}if((0,o.isArray)(t)?m=t:(0,o.isPlainObject)(t)&&(0,o.isArray)(t.files)&&(m=t.files,g=t.data),!m.length)return[]}let v=[];if(f.insertImageAsBase64URI&&function(e,t,i,n,r,s){let l,c,u=[];for(c=0;c<e.length;c+=1)if((l=e[c])&&l.type){let d=l.type.match(/\/([a-z0-9]+)/i),h=d[1]?d[1].toLowerCase():"";if(!t.includes(h))continue;let p=new FileReader,{name:f}=l,m=n.j.async.promise((e,t)=>{p.onerror=t,p.onloadend=()=>{let t=(0,a.normalizeUploaderData)({baseurl:"",items:[{file:p.result,isImage:!0,name:f}]});((0,o.isFunction)(r)?r:s).call(n,t),e(t)},p.readAsDataURL(l)});u.push(m),i.push(m),e[c]=null}u.length&&Promise.all(u).then(()=>{n.j.events&&n.j.e.fire("filesWereUploaded")}).catch(()=>{})}(m,f.imagesExtensions,v,e,i,f.defaultHandlerSuccess),(m=m.filter(e=>e)).length){let t,p=new FormData;p.append(f.pathVariableName,e.path),p.append("source",e.source);for(let i=0;i<m.length;i+=1)if(t=m[i]){let n=/\.\w+$/.test(t.name),o=t.type.match(/\/([a-z0-9]+)/i),r=o&&o[1]?o[1].toLowerCase():"",s=m[i].name||Math.random().toString().replace(".","");if(!n&&r){let e=r;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(s)||(s+="."+r)}let[a,l,c]=f.processFileName.call(e,f.filesVariableName(i),m[i],s);p.append(a,l,c)}h&&h(p),f.data&&(0,o.isPlainObject)(f.data)&&Object.keys(f.data).forEach(e=>{p.append(e,f.data[e])}),g&&Object.keys(g).forEach(e=>{p.append(e,g[e])}),f.prepareData.call(e,p),v.push((0,l.send)(e,p).then(t=>{if(f.isSuccess.call(e,t))return((0,o.isFunction)(i)?i:f.defaultHandlerSuccess).call(e,(0,a.normalizeUploaderData)(f.process.call(e,t))),t;let l=new c.UploadError(f.getMessage.call(e,t),t,m,t=>{var n;return u(e,null!=(n=null==t?void 0:t.files)?n:m,i,d,h,{data:{...g,...null==t?void 0:t.data}})});return l.code===n.ERROR_CODE_CONFLICT&&f.promptOnExists?function(e,t){let{files:i}=t;if(i.length>1)return i.reduce((e,i)=>e.then(()=>t.retry({files:[i]})),Promise.resolve());let[n]=i,{j:o,o:a}=e;return new Promise(i=>{let l=!1,c=s.Prompt.call(r.Dlgs.prototype.dlg.call(o,{closeOnClickOverlay:!0}),o.i18n(t.message),o.i18n("Rename"),e=>{if(!(e=e.trim()))return!1;l=!0,i(t.retry({files:[new File([n],e,{type:n.type})]}))},o.i18n("Enter new name"),a.promptOnExistsSuggestName.call(e,n.name));c.e.on(c,"afterClose",()=>{l||i(void 0)})})}(e,l):(((0,o.isFunction)(d)?d:f.defaultHandlerError).call(e,l),t)}).then(()=>{e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(v)}},71686:function(e,t,i){i.d(t,{send:function(){return a}});var n=i(21537),o=i(41601),r=i(83987);let s=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},l=(t,i)=>{let r=new o.Ajax({xhr(){let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(i(10),t.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total;i(t*=100)}},!1)):i(100),t},method:e.o.method||"POST",data:t,url:(0,n.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),a=s.get(e);return a||(a=new Set,s.set(e,a)),a.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{r.destruct(),null==a||a.delete(r)})};return((0,n.isFunction)(e.o.customUploadFunction)&&(l=e.o.customUploadFunction),(0,n.isPromise)(i))?i.then(e=>l(e,a)).catch(t=>{e.o.error.call(e,t)}):l(i,a)}i.d(t,["ajaxInstances",0,s])},76198:function(e,t,i){i.d(t,{UploadError:function(){return o}});var n=i(89890);class o extends n.AnswerError{constructor(e,t,i,n){var r;super(e,t,null==(r=t.data)?void 0:r.code),this.files=i,this.retry=n,Object.setPrototypeOf(this,o.prototype)}}},57380:function(e,t,i){i.d(t,{Uploader:function(){return u}});var n=i(91907),o=i(82758),r=i(2748),s=i(21537),a=i(89890),l=i(6441),c=i(94122);i(80536);class u extends n.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){let n=()=>{e.classList.remove("jodit_drag_hover")},r=this,s=e=>{let s,a,l,u=e.clipboardData,d=e=>{a&&(e.append("extension",l),e.append("mimetype",a.type))};if(!o.IS_IE&&(0,c.hasFiles)(u))return(0,c.sendFiles)(r,u.files,t,i).finally(n),!1;if(o.IS_IE&&!o.IS_ES_NEXT)return(0,c.processOldBrowserDrag)(r,u,t,i,n);if((0,c.hasItems)(u)){let{items:o}=u;for(s=0;s<o.length;s+=1)if("file"===o[s].kind&&"image/png"===o[s].type){if(a=o[s].getAsFile()){let e=a.type.match(/\/([a-z0-9]+)/i);l=e[1]?e[1].toLowerCase():"",(0,c.sendFiles)(r,[a],t,i,d).finally(n)}e.preventDefault();break}}};r.j&&r.j.editor!==e?r.j.e.on(e,"paste",s):r.j.e.on("beforePaste",s),this.attachEvents(e,t,i,n)}attachEvents(e,t,i,n){let o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",e=>{e.preventDefault()}).on(e,"dragover",t=>{((0,c.hasFiles)(t.dataTransfer)||(0,c.hasItems)(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",t=>{e.classList.remove("jodit_drag_hover"),(0,c.hasFiles)(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",r=>{e.classList.remove("jodit_drag_hover"),(0,c.hasFiles)(r.dataTransfer)&&(r.preventDefault(),r.stopImmediatePropagation(),(0,c.sendFiles)(o,r.dataTransfer.files,t,i).finally(n))});let a=r.Dom.first(e,e=>{var t;return r.Dom.isTag(e,"input")&&(null==(t=(0,s.attr)(e,"type"))?void 0:t.toLowerCase())==="file"});a&&o.j.e.on(a,"change",()=>{(0,c.sendFiles)(o,a.files,t,i).then(()=>{a.value="",/safari/i.test(navigator.userAgent)||(a.type="",a.type="file")}).finally(n)})}uploadRemoteImage(e,t,i){let n=this,{o}=n,r=(0,s.isFunction)(i)?i:o.defaultHandlerError;(0,c.send)(n,{action:"fileUploadRemote",url:e}).then(e=>{var i;o.isSuccess.call(n,e)?((0,s.isFunction)(t)?t:o.defaultHandlerSuccess).call(n,(0,c.normalizeUploaderData)(o.process.call(n,e))):r.call(n,(0,a.answer)(o.getMessage.call(n,e),e,null==(i=e.data)?void 0:i.code))}).catch(e=>r.call(n,e))}upload(e){return this.async.promise((t,i)=>{let n=!1,o=e=>t=>{n=!0,e(t)};(0,c.sendFiles)(this,e,o(t),o(i)).then(()=>{n||t({baseurl:"",items:[],files:[],isImages:[]})},o(i))})}destruct(){this.setStatus(n.STATUSES.beforeDestruct);let e=c.ajaxInstances.get(this);e&&(e.forEach(e=>{try{e.destruct()}catch(e){}}),e.clear()),super.destruct()}constructor(e,t){super(e),this.path="",this.source="default",this.options=(0,s.ConfigProto)(t||{},(0,s.ConfigProto)(l.Config.defaultOptions.uploader,(0,s.isJoditObject)(e)?e.o.uploader:{}))}}},22859:function(e,t,i){var n=i(82758),o=i(22732),r=i(21537),s=i(67510),a=i(37068);s.Icon.set("palette",a.default),i.d(t,["ColorPickerWidget",0,(e,t,i)=>{var a;let l="jodit-color-picker",c=(0,r.normalizeColor)(i),u=e.c.div(l),d=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:s.Icon.get("palette"),h=e=>{let t=[];return(0,r.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${l}__group ${l}__group-${i}">`),t.push(h(e[i])),t.push("</div>")}):(0,r.isArray)(e)&&e.forEach(e=>{let i=c===e;t.push(`<button type="button" class='${l}__color-item ${i?l+"__color-item_active_true":""}' title="${e}" aria-pressed="${i}" tabindex="-1" style="background-color:${e}" data-color="${e}"></button>`)}),t.join("")},p=(0,r.isArray)(e.o.colors)?`<div class="${l}__group">${h(e.o.colors)}</div>`:h(e.o.colors);o.Dom.append(u,e.c.fromHTML(`<div class="${l}__groups">${p}</div>`));let f=(0,r.toArray)(u.querySelectorAll(`.${l}__color-item`)),m=null!=(a=f.find(e=>"true"===(0,r.attr)(e,"aria-pressed")))?a:f[0];m&&(0,r.attr)(m,"tabindex",0),o.Dom.append(u,e.c.fromHTML(`<div data-ref="extra" class="${l}__extra"></div>`));let{extra:g}=(0,r.refs)(u);o.Dom.append(g,e.c.fromHTML(`<div class="${l}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${c||""}"/></div>`));let{hexInput:v}=(0,r.refs)(u),b=null,y=()=>{let e=v.value.trim();if(e===b)return;let i=/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(e),n=/^rgba?\([\d\s.,%]+\)$/i.test(e);if(!i&&!n)return;let o=(0,r.normalizeColor)(i&&!e.startsWith("#")?"#"+e:e);o&&(0,r.isFunction)(t)&&(b=e,t(o))};e.e.on(v,"keydown",e=>{e.stopPropagation(),"Enter"===e.key&&(e.preventDefault(),y())}).on(v,"change",e=>{e.stopPropagation(),y()}),o.Dom.append(g,e.c.fromHTML(`<button type="button" class="${l}__remove" data-color="" title="${e.i18n("Remove")}">${e.o.textIcons?e.i18n("Remove"):s.Icon.get("eraser")}</button>`)),e.o.showBrowserColorPicker&&(0,r.hasBrowserColorPicker)()&&(o.Dom.append(g,e.c.fromHTML(`<div class="${l}__native">${d}<input type="color" value="#ffffff"/></div>`)),e.e.on(u,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!o.Dom.isTag(i,"input")||"color"!==i.type)return;let n=i.value||"";(0,r.isFunction)(t)&&t(n),e.preventDefault()}));let _=e=>{let t=o.Dom.closest(e,e=>o.Dom.isHTMLElement(e)&&(e.classList.contains(l+"__color-item")||e.classList.contains(l+"__remove")),u);return t?(0,r.attr)(t,"-color")||"":void 0},w=e=>{t&&(0,r.isFunction)(t)&&t(e)},k=!1;return e.e.on(u,"mousedown touchend",e=>{if(o.Dom.isTag(e.target,"input"))return void e.stopPropagation();e.stopPropagation(),e.preventDefault();let t=_(e.target);void 0!==t&&(k="mousedown"===e.type,w(t))}),e.e.on(u,"click",e=>{let t=_(e.target);void 0===t||k||w(t),k=!1}).on(u,"keydown",e=>{var t;k=!1;let i=e.target;f.includes(i)&&[n.KEY_LEFT,n.KEY_RIGHT,n.KEY_UP,n.KEY_DOWN].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),null==(t=((e,t)=>{let i=f.indexOf(e);if(t===n.KEY_LEFT||t===n.KEY_RIGHT){let o=t===n.KEY_LEFT?-1:1;return f[i+("rtl"===(0,r.css)(e,"direction")?-o:o)]}let o=t===n.KEY_DOWN,s=f.filter(t=>o?t.offsetTop>e.offsetTop:t.offsetTop<e.offsetTop);if(!s.length)return;let a=(o?Math.min:Math.max)(...s.map(e=>e.offsetTop)),l=t=>Math.abs(t.offsetLeft-e.offsetLeft);return s.filter(e=>e.offsetTop===a).reduce((e,t)=>l(t)<l(e)?t:e)})(i,e.key))||t.focus())}).on(u,"focusin",e=>{f.includes(e.target)&&f.forEach(t=>(0,r.attr)(t,"tabindex",t===e.target?0:-1))}),e.e.fire("afterGenerateColorPicker",u,g,t,c),u}])},37068:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3a9 9 0 1 0 0 18h1a2 2 0 0 0 1.5-3.3 1.7 1.7 0 0 1 1.3-2.8H18a3 3 0 0 0 3-3A9 9 0 0 0 12 3Z"/><circle cx="7" cy="10" r="0.7"/><circle cx="10" cy="6.5" r="0.7"/><circle cx="15" cy="7" r="0.7"/><circle cx="17.5" cy="11" r="0.7"/> </g> </svg> '},34793:function(e,t,i){var n=i(2748),o=i(21537),r=i(67510),s=i(38927);let a=(e,t,{label:i,accept:n})=>{let o=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(i)}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${n}" tabindex="-1" dir="auto" multiple=""/></div>`);return e.uploader.bind(o,i=>{t.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),{icon:"upload",name:"Upload",content:o}};function l(e,t,i){let r=n.Dom.first(e,e=>n.Dom.isTag(e,"input")&&(0,o.attr)(e,"name")===t);return r?(i&&(r.value=i),r.value):""}i.d(t,["FileSelectorWidget",0,(e,t,i,c,u=!0)=>{let d,h=[],p=e.o.uploader;if(t.upload&&!1!==p.showTabInFileSelector&&(p.url||p.insertImageAsBase64URI||p.customUploadFunction)){let{upload:i}=t;h.push(a(e,t=>{let n=(0,o.isFunction)(i)?i:p.defaultHandlerSuccess;(0,o.isFunction)(n)&&n.call(e,t)},u?{label:"Drop image",accept:"image/*"}:{label:"Drop file",accept:"*"}))}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){c&&c(),t.filebrowser&&e.filebrowser.open(t.filebrowser,u)}}),t.url){let s=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),a=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[s])]);i&&!n.Dom.isText(i)&&!n.Dom.isComment(i)&&(n.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(d="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],l(a.container,"url",(0,o.attr)(d,"src")),l(a.container,"text",(0,o.attr)(d,"alt")),s.state.text="Update"),i&&n.Dom.isTag(i,"a")&&(l(a.container,"url",(0,o.attr)(i,"href")),l(a.container,"text",(0,o.attr)(i,"title")),s.state.text="Update"),a.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),h.push({icon:"link",name:"URL",content:a.container})}let f=(0,s.TabsWidget)(e,h);return f.classList.add("jodit-file-selector"),f},"UploadTab",0,a])},92762:function(e,t,i){i.d(t,{ColorPickerWidget:function(){return n.ColorPickerWidget},FileSelectorWidget:function(){return o.FileSelectorWidget},TabsWidget:function(){return r.TabsWidget},UploadTab:function(){return o.UploadTab}});var n=i(22859),o=i(34793),r=i(38927)},38927:function(e,t,i){var n=i(91907),o=i(2748),r=i(23282),s=i(29960),a=i(67510),l=i(20014);i.d(t,["TabsWidget",0,(e,t,i)=>{let c=e.c.div("jodit-tabs"),u=e.c.div("jodit-tabs__wrapper"),d=e.c.div("jodit-tabs__buttons");(0,s.attr)(d,{role:"tablist","aria-orientation":"horizontal"});let h={},p=[],f="";o.Dom.append(c,d),o.Dom.append(c,u);let m=e=>{h[e]&&(p.forEach(e=>{e.state.activated=!1}),Object.values(h).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),h[e].button.state.activated=!0,h[e].tab.classList.add("jodit-tab_active"))};if(t.forEach(({icon:c,name:g,content:v})=>{let b=e.c.div("jodit-tab");(0,s.attr)(b,{role:"tabpanel"});let y=(0,a.Button)(e,c||g,g);y.state.role="tab",e.e.on(y.container,"pointerdown",e=>e.preventDefault()),f||(f=g),o.Dom.append(d,y.container),p.push(y),y.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,r.isFunction)(v)?b.classList.add("jodit-tab_empty"):o.Dom.append(b,n.Component.isInstanceOf(v,a.UIElement)?v.container:v),o.Dom.append(u,b),y.onAction(()=>(m(g),(0,r.isFunction)(v)&&!o.Dom.isElement(v)&&v.call(e),i&&(i.activeTab=g),(0,l.focusFormField)(b),!1)),h[g]={button:y,tab:b}}),m(i&&i.activeTab&&h[i.activeTab]?i.activeTab:f),i){let e=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>e,set(t){e=t,m(t)}})}return c}])},73391:function(e,t,i){var n=i(82758),o=i(580),r=i(21537),s=i(12153),a=i(6441),l=i(49399);a.Config.prototype.controls.about={exec(e){let t=e.dlg({closeOnClickOverlay:!0}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
116
+ </form>`)}])},41409:function(e,t,i){i.r(t),i.d(t,{Ajax:function(){return p.Ajax},Alert:function(){return s.Alert},Async:function(){return l.Async},AsyncStorage:function(){return A.AsyncStorage},Button:function(){return f.Button},CommitStyle:function(){return T.CommitStyle},Component:function(){return n.Component},Confirm:function(){return s.Confirm},ContextMenu:function(){return r.ContextMenu},Create:function(){return c.Create},Dialog:function(){return s.Dialog},Dom:function(){return u.Dom},EventEmitter:function(){return d.EventEmitter},EventHandlersStore:function(){return d.EventHandlersStore},Eventify:function(){return d.Eventify},FileBrowser:function(){return a.FileBrowser},Helpers:function(){return o},History:function(){return v.History},Icon:function(){return f.Icon},ImageEditor:function(){return y.ImageEditor},IndexedDBProvider:function(){return A.IndexedDBProvider},LazyWalker:function(){return u.LazyWalker},LocalStorageProvider:function(){return A.LocalStorageProvider},MemoryStorageProvider:function(){return A.MemoryStorageProvider},Plugin:function(){return h.Plugin},PluginSystem:function(){return I.PluginSystem},Popup:function(){return f.Popup},ProgressBar:function(){return f.ProgressBar},Prompt:function(){return s.Prompt},Response:function(){return p.Response},STATUSES:function(){return n.STATUSES},Selection:function(){return T.Selection},Snapshot:function(){return b.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return A.Storage},StorageKey:function(){return A.StorageKey},Table:function(){return k.Table},ToolbarButton:function(){return S.ToolbarButton},ToolbarCollection:function(){return C.ToolbarCollection},ToolbarContent:function(){return S.ToolbarContent},ToolbarEditorCollection:function(){return E.ToolbarEditorCollection},ToolbarSelect:function(){return S.ToolbarSelect},UIBlock:function(){return f.UIBlock},UIButton:function(){return f.UIButton},UIButtonGroup:function(){return f.UIButtonGroup},UIButtonState:function(){return f.UIButtonState},UICheckbox:function(){return f.UICheckbox},UIElement:function(){return f.UIElement},UIFileInput:function(){return f.UIFileInput},UIForm:function(){return f.UIForm},UIGroup:function(){return f.UIGroup},UIInput:function(){return f.UIInput},UIList:function(){return f.UIList},UIMessages:function(){return _.UIMessages},UISelect:function(){return f.UISelect},UISeparator:function(){return f.UISeparator},UISpacer:function(){return f.UISpacer},UITextArea:function(){return f.UITextArea},UITooltip:function(){return f.UITooltip},Uploader:function(){return D.Uploader},View:function(){return m.View},ViewComponent:function(){return n.ViewComponent},ViewWithToolbar:function(){return g.ViewWithToolbar},canUseIndexedDB:function(){return A.canUseIndexedDB},canUsePersistentStorage:function(){return A.canUsePersistentStorage},clearUseIndexedDBCache:function(){return A.clearUseIndexedDBCache},defaultNameSpace:function(){return d.defaultNameSpace},observable:function(){return d.observable}});var n=i(91907),o=i(21537),r=i(80870),s=i(638),a=i(78513),l=i(8884),c=i(12060),u=i(22732),d=i(3827),h=i(50911),p=i(41601),f=i(67510),m=i(35608),g=i(84075),v=i(78818),b=i(52604),y=i(50050),_=i(1808),w=i(23512),k=i(76014),S=i(36646),C=i(11676),E=i(37426),D=i(57380),I=i(41876),T=i(59242),A=i(12081)},68389:function(e,t,i){i.d(t,{UIMessage:function(){return r}});var n=i(87325),o=i(67510);let r=class e extends o.UIElement{className(){return"UIMessage"}constructor(e,t){super(e),this.setMod("active",!0),this.setMod("variant",t.variant),this.container.textContent=t.text}};r=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],r)},1808:function(e,t,i){i.d(t,{UIMessages:function(){return l}});var n=i(87325),o=i(2748),r=i(41180),s=i(62405),a=i(68389);let l=class e extends s.UIGroup{className(){return"UIMessages"}info(e,t){this.__message(e,"info",t)}success(e,t){this.__message(e,"success",t)}error(e,t){this.__message(e,"error",t)}message(e,t,i){this.__message(e,t,i)}__message(e,t="info",i){let n=e+":"+t;if(this.__messages.has(n))return void this.async.updateTimeout(n,i||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+n);o.Dom.append(this.__box,this.container);let r=new a.UIMessage(this.j,{text:e,variant:t});this.append(r),this.__calcOffsets(),this.__messages.add(n);let s=this.__getRemoveCallback(r,n);this.j.e.on(r.container,"pointerdown",s),this.async.setTimeout(s,{label:n,timeout:i||this.options.defaultTimeout})}__getRemoveCallback(e,t){let i=n=>{n&&n.preventDefault(),e.isInDestruct||(this.async.clearTimeout(t),this.j.e.off(e.container,"pointerdown",i),this.__messages.delete(t),e.setMod("active",!1),this.async.setTimeout(()=>{this.remove(e),e.destruct(),this.__calcOffsets()},300))};return i}__calcOffsets(){let e=5;this.elements.forEach(t=>{(0,r.css)(t.container,"bottom",e+"px"),e+=t.container.offsetHeight+this.options.defaultOffset})}constructor(e,t,i={defaultTimeout:3e3,defaultOffset:5}){super(e),this.__box=t,this.options=i,this.__messages=new Set}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],l)},23512:function(e,t,i){i.d(t,{StatusBar:function(){return l}});var n=i(91907),o=i(65478),r=i(2748),s=i(14316),a=i(34176);let l=class e extends n.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var e,t;return null!=(t=null==(e=this.container)?void 0:e.offsetHeight)?t:0}findEmpty(e=!1){let t=this.getElms(e?"item-right":"item");for(let e=0;e<t.length;e+=1)if(!t[e].innerHTML.trim().length)return t[e]}append(e,t=!1){let i=this.findEmpty(t)||this.j.c.div(this.getFullElName("item"));t&&i.classList.add(this.getFullElName("item-right")),r.Dom.append(i,e),this.container&&r.Dom.append(this.container,i),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(n.STATUSES.beforeDestruct),r.Dom.safeRemove(this.container),super.destruct())}constructor(e,t){super(e),this.target=t,this.mods={},this.container=e.c.div("jodit-status-bar"),r.Dom.append(t,this.container),this.hide()}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([o.component,(0,o.derive)(a.Mods,s.Elms)],l)},76014:function(e,t,i){i.d(t,{Table:function(){return d}});var n=i(91907),o=i(82758),r=i(22732),s=i(580),a=i(21537),l=i(41180);let c=new Set(["thead","tbody","tfoot"]),u=new WeakMap;class d extends n.ViewComponent{className(){return"Table"}addSelection(e){this.selected.add(e),this.__recalculateStyles();let t=r.Dom.closest(e,"table",this.j.editor);if(t){let i=d.__selectedByTable.get(t)||new Set;i.add(e),d.__selectedByTable.set(t,i)}}removeSelection(e){this.selected.delete(e),this.__recalculateStyles();let t=r.Dom.closest(e,"table",this.j.editor);if(t){let i=d.__selectedByTable.get(t);i&&(i.delete(e),i.size||d.__selectedByTable.delete(t))}}getAllSelectedCells(){return(0,a.toArray)(this.selected)}static __getSelectedCellsByTable(e){let t=d.__selectedByTable.get(e);return t?(0,a.toArray)(t):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(e){return e.rows.length}getRowsCount(e){return d.__getRowsCount(e)}static __getColumnsCount(e){return d.__formalMatrix(e).reduce((e,t)=>Math.max(e,t.length),0)}getColumnsCount(e){return d.__getColumnsCount(e)}static __formalMatrix(e,t){let i=[[]],n=(0,a.toArray)(e.rows),o=(e,n)=>{void 0===i[n]&&(i[n]=[]);let o=e.colSpan,r=e.rowSpan,s,a,l=0;for(;i[n][l];)l+=1;for(a=0;r>a;a+=1)for(s=0;s<o;s+=1){if(void 0===i[n+a]&&(i[n+a]=[]),t&&!1===t(e,n+a,l+s,o,r))return!1;i[n+a][l+s]=e}};for(let e=0;e<n.length;e+=1){let t=(0,a.toArray)(n[e].cells);for(let n=0;n<t.length;n+=1)if(!1===o(t[n],e))return i}return i}formalMatrix(e,t){return d.__formalMatrix(e,t)}static __formalCoordinate(e,t,i=!1){let n=0,o=0,r=1,s=1;return d.__formalMatrix(e,(e,a,l,c,u)=>{if(t===e)return n=a,o=l,r=c||1,s=u||1,i&&(o+=(c||1)-1,n+=(u||1)-1),!1}),[n,o,r,s]}formalCoordinate(e,t,i=!1){return d.__formalCoordinate(e,t,i)}static __appendRow(e,t,i,n){let o;if(t)o=t.cloneNode(!0),r.Dom.each(t,e=>{if(!r.Dom.isCell(e))return;let t=(0,a.attr)(e,"rowspan");if(t&&parseInt(t,10)>1){let i=parseInt(t,10)-1;(0,a.attr)(e,"rowspan",i>1?i:null)}}),r.Dom.each(o,e=>{r.Dom.isCell(e)&&(r.Dom.detach(e),r.Dom.append(e,n.element("br")))});else{let t=d.__getColumnsCount(e);o=n.element("tr");for(let e=0;e<t;e+=1){let e=n.element("td");r.Dom.append(e,n.element("br")),r.Dom.append(o,e)}}let s=t&&t.parentElement;if(i&&t&&!t.nextElementSibling&&r.Dom.isTag(s,"thead")){let t=d.__bodyOf(e,s,n);t.insertBefore(o,t.firstChild),d.__setCellsTag(o,"td",n)}else i&&t&&t.nextSibling?r.Dom.after(t,o):!i&&t?r.Dom.before(t,o):r.Dom.append(r.Dom.first(e,e=>r.Dom.isTag(e,"tbody"))||e,o)}static __bodyOf(e,t,i){let n=e.tBodies[0];return n||(n=i.element("tbody"),r.Dom.after(t,n)),n}static __setCellsTag(e,t,i,n){(0,a.toArray)(e.cells).forEach(e=>{let o=r.Dom.isTag(e,t)?e:r.Dom.replace(e,t,i,!0);o!==e&&(null==n||n.set(e,o)),"td"===t?(0,a.attr)(o,"scope",null):o.hasAttribute("scope")||(0,a.attr)(o,"scope","col")})}hasHeaderRow(e){var t;return!!(null==(t=e.tHead)?void 0:t.rows.length)}canToggleHeaderRow(e){let[t]=(0,a.toArray)(e.rows);return this.hasHeaderRow(e)||!!(t&&(0,a.toArray)(t.cells).every(e=>e.rowSpan<2))}toggleHeaderRow(e){let t=new Map,i=this.j.createInside,n=e.tHead;if(!this.canToggleHeaderRow(e))return t;if(n&&this.hasHeaderRow(e)){let o=d.__bodyOf(e,n,i),s=o.firstChild;(0,a.toArray)(n.rows).forEach(e=>{o.insertBefore(e,s),d.__setCellsTag(e,"td",i,t)}),r.Dom.safeRemove(n)}else{let[o]=(0,a.toArray)(e.rows),s=n||i.element("thead");n||(e.tHead=s),r.Dom.append(s,o),d.__setCellsTag(o,"th",i,t)}return t}appendRow(e,t,i){return d.__appendRow(e,t,i,this.j.createInside)}static __removeRow(e,t){let i,n=d.__formalMatrix(e),o=e.rows[t];n[t].forEach((s,l)=>{if(i=!1,t-1>=0&&n[t-1][l]===s)i=!0;else if(n[t+1]&&n[t+1][l]===s){if(s.parentNode===o&&s.parentNode.nextSibling){i=!0;let o=l+1;for(;n[t+1][o]===s;)o+=1;let a=r.Dom.next(s.parentNode,e=>r.Dom.isTag(e,"tr"),e);if(a){let e=null;for(let i=o;i<n[t+1].length;i+=1){let o=n[t+1][i];if(o&&o.parentNode===a){e=o;break}}e?r.Dom.before(e,s):r.Dom.append(a,s)}}}else r.Dom.safeRemove(s);if(i&&(s.parentNode===o||s!==n[t][l-1])){let e=s.rowSpan;(0,a.attr)(s,"rowspan",e-1>1?e-1:null)}});let s=o.parentElement;r.Dom.safeRemove(o),r.Dom.isTag(s,c)&&!s.rows.length&&r.Dom.safeRemove(s)}removeRow(e,t){return d.__removeRow(e,t)}appendColumn(e,t,i=!0){let n=d.__formalMatrix(e);if(!i&&r.Dom.isCell(t.previousElementSibling))return this.appendColumn(e,t.previousElementSibling,!0);let[,o]=d.__formalCoordinate(e,t,i),s=i?o+1:o;for(let e=0;e<n.length;){let t=n[e];if(t[o]!==t[s]||o===s){let e=this.j.createInside.element("td");r.Dom.append(e,this.j.createInside.element("br")),i?r.Dom.after(t[o],e):r.Dom.before(t[o],e),t[o].rowSpan>1&&(e.rowSpan=t[o].rowSpan)}else t[o].colSpan+=1;e+=t[o].rowSpan||1}}static __removeColumn(e,t){let i,n=d.__formalMatrix(e);n.forEach((e,o)=>{let s=e[t];if(i=!1,t-1>=0&&n[o][t-1]===s||t+1<e.length&&n[o][t+1]===s?i=!0:r.Dom.safeRemove(s),i&&(o-1<0||s!==n[o-1][t])){let e=s.colSpan;(0,a.attr)(s,"colspan",e-1>1?(e-1).toString():null)}})}removeColumn(e,t){return d.__removeColumn(e,t)}static __getSelectedBound(e,t){let i,n,o,r=[[1/0,1/0],[0,0]],s=d.__formalMatrix(e);for(i=0;i<s.length;i+=1)for(n=0;s[i]&&n<s[i].length;n+=1)t.includes(s[i][n])&&(r[0][0]=Math.min(i,r[0][0]),r[0][1]=Math.min(n,r[0][1]),r[1][0]=Math.max(i,r[1][0]),r[1][1]=Math.max(n,r[1][1]));for(i=r[0][0];i<=r[1][0];i+=1)for(o=1,n=r[0][1];n<=r[1][1];n+=1){for(;s[i]&&s[i][n-o]&&s[i][n]===s[i][n-o];)r[0][1]=Math.min(n-o,r[0][1]),r[1][1]=Math.max(n-o,r[1][1]),o+=1;for(o=1;s[i]&&s[i][n+o]&&s[i][n]===s[i][n+o];)r[0][1]=Math.min(n+o,r[0][1]),r[1][1]=Math.max(n+o,r[1][1]),o+=1;for(o=1;s[i-o]&&s[i][n]===s[i-o][n];)r[0][0]=Math.min(i-o,r[0][0]),r[1][0]=Math.max(i-o,r[1][0]),o+=1;for(o=1;s[i+o]&&s[i][n]===s[i+o][n];)r[0][0]=Math.min(i+o,r[0][0]),r[1][0]=Math.max(i+o,r[1][0]),o+=1}return r}getSelectedBound(e,t){return d.__getSelectedBound(e,t)}static __normalizeTable(e){let t=[],i=d.__formalMatrix(e);d.__removeExtraColspans(i,t),d.__removeExtraRowspans(i,t);for(let e=0;e<i.length;e+=1)for(let t=0;t<i[e].length;t+=1)void 0!==i[e][t]&&(i[e][t].hasAttribute("rowspan")&&1===i[e][t].rowSpan&&(0,a.attr)(i[e][t],"rowspan",null),i[e][t].hasAttribute("colspan")&&1===i[e][t].colSpan&&(0,a.attr)(i[e][t],"colspan",null),i[e][t].hasAttribute("class")&&!(0,a.attr)(i[e][t],"class")&&(0,a.attr)(i[e][t],"class",null));d.__unmark(t)}static __removeExtraColspans(e,t){for(let i=0;i<e[0].length;i+=1){let n=1e6,o=!1;for(let t=0;t<e.length;t+=1)if(void 0!==e[t][i]){if(e[t][i].colSpan<2){o=!0;break}n=Math.min(n,e[t][i].colSpan)}if(!o)for(let o=0;o<e.length;o+=1)void 0!==e[o][i]&&d.__mark(e[o][i],"colspan",e[o][i].colSpan-n+1,t)}}static __removeExtraRowspans(e,t){let i,n;for(i=0;i<e.length;i+=1){let o=1e6,r=!1;for(n=0;n<e[i].length;n+=1)if(void 0!==e[i][n]){if(e[i][n].rowSpan<2){r=!0;break}o=Math.min(o,e[i][n].rowSpan)}if(!r)for(n=0;n<e[i].length;n+=1)void 0!==e[i][n]&&d.__mark(e[i][n],"rowspan",e[i][n].rowSpan-o+1,t)}}normalizeTable(e){return d.__normalizeTable(e)}static __mergeSelected(e,t){let i=[],n=d.__getSelectedBound(e,d.__getSelectedCellsByTable(e)),s=0,c=null,u=0,p=0,f=0,m=new Set,g=[];n&&(n[0][0]-n[1][0]||n[0][1]-n[1][1])&&(d.__formalMatrix(e,(e,o,r,v,b)=>{o>=n[0][0]&&o<=n[1][0]&&r>=n[0][1]&&r<=n[1][1]&&(m.has(e)||(m.add(e),o===n[0][0]&&(0,l.cssInline)(e,"width")&&(s+=e.offsetWidth),""!==(0,a.trim)(e.innerHTML.replace(/<br(\/)?>/g,""))&&i.push(e.innerHTML),v>1&&(p+=v-1),b>1&&(f+=b-1),c?(d.__mark(e,"remove",1,g),h(t).removeSelection(e)):(c=e,u=r)))}),p=n[1][1]-n[0][1]+1,f=n[1][0]-n[0][0]+1,c&&(p>1&&d.__mark(c,"colspan",p,g),f>1&&d.__mark(c,"rowspan",f,g),s&&(d.__mark(c,"width",(s/e.offsetWidth*100).toFixed(o.ACCURACY)+"%",g),u&&d.__setColumnWidthByDelta(e,u,0,!0,g)),c.innerHTML=i.join("<br/>")||"<br/>",h(t).addSelection(c),m.delete(c),d.__unmark(g),d.__normalizeTable(e),(0,a.toArray)(e.rows).forEach(e=>{e.cells.length||r.Dom.safeRemove(e)})))}mergeSelected(e){return d.__mergeSelected(e,this.j)}static __splitHorizontal(e,t){let i,n,o,s,a,l=[];d.__getSelectedCellsByTable(e).forEach(c=>{n=t.createInside.element("td"),r.Dom.append(n,t.createInside.element("br")),o=t.createInside.element("tr"),i=d.__formalCoordinate(e,c),c.rowSpan<2?(d.__formalMatrix(e,(e,t,n)=>{i[0]===t&&i[1]!==n&&e!==c&&d.__mark(e,"rowspan",e.rowSpan+1,l)}),r.Dom.after(r.Dom.closest(c,"tr",e),o),r.Dom.append(o,n)):(d.__mark(c,"rowspan",c.rowSpan-1,l),d.__formalMatrix(e,(t,n,o)=>{n>i[0]&&n<i[0]+c.rowSpan&&i[1]>o&&t.parentNode.rowIndex===n&&(a=t),i[0]<n&&t===c&&(s=e.rows[n])}),a?r.Dom.after(a,n):r.Dom.prepend(s,n)),c.colSpan>1&&d.__mark(n,"colspan",c.colSpan,l),d.__unmark(l),h(t).removeSelection(c)}),this.__normalizeTable(e)}splitHorizontal(e){return d.__splitHorizontal(e,this.j)}static __splitVertical(e,t){let i,n,s,a=[];d.__getSelectedCellsByTable(e).forEach(l=>{i=d.__formalCoordinate(e,l),l.colSpan<2?d.__formalMatrix(e,(e,t,n)=>{i[1]===n&&i[0]!==t&&e!==l&&d.__mark(e,"colspan",e.colSpan+1,a)}):d.__mark(l,"colspan",l.colSpan-1,a),n=t.createInside.element("td"),r.Dom.append(n,t.createInside.element("br")),l.rowSpan>1&&d.__mark(n,"rowspan",l.rowSpan,a);let c=l.offsetWidth;r.Dom.after(l,n),s=c/e.offsetWidth/2,d.__mark(l,"width",(100*s).toFixed(o.ACCURACY)+"%",a),d.__mark(n,"width",(100*s).toFixed(o.ACCURACY)+"%",a),d.__unmark(a),h(t).removeSelection(l)}),d.__normalizeTable(e)}splitVertical(e){return d.__splitVertical(e,this.j)}static __setColumnWidthByDelta(e,t,i,n,r){let s=d.__formalMatrix(e),a=0;for(let n=0;n<s.length;n+=1){let l=s[n][t];if(l.colSpan>1&&s.length>1)continue;let c=(l.offsetWidth+i)/e.offsetWidth*100;d.__mark(l,"width",c.toFixed(o.ACCURACY)+"%",r),a=n;break}for(let e=a+1;e<s.length;e+=1){let i=s[e][t];d.__mark(i,"width",null,r)}n||d.__unmark(r)}setColumnWidthByDelta(e,t,i,n,o){return d.__setColumnWidthByDelta(e,t,i,n,o)}static __mark(e,t,i,n){var o;n.push(e);let r=null!=(o=u.get(e))?o:{};r[t]=void 0===i?1:i,u.set(e,r)}static __unmark(e){e.forEach(e=>{let t=u.get(e);t&&(Object.keys(t).forEach(i=>{let n=t[i];switch(i){case"remove":r.Dom.safeRemove(e);break;case"rowspan":(0,a.attr)(e,"rowspan",(0,a.isNumber)(n)&&n>1?n:null);break;case"colspan":(0,a.attr)(e,"colspan",(0,a.isNumber)(n)&&n>1?n:null);break;case"width":null==n?(e.style.removeProperty("width"),(0,a.attr)(e,"style")||(0,a.attr)(e,"style",null)):(0,a.css)(e,"width",n.toString())}delete t[i]}),u.delete(e))})}constructor(){super(...arguments),this.selected=new Set,this.__recalculateStyles=this.async.microDebounce(()=>{let e=(0,s.getContainer)(this.j,d,"style",!0),t=[];this.selected.forEach(e=>{let i=(0,a.cssPath)(e);i&&t.push(i)});let i=t.length>1?t.map(e=>`${e}::selection,${e} ::selection`).join(",")+"{background:transparent}":"";e.innerHTML=t.length?t.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`+i:""})}}d.__selectedByTable=new WeakMap;let h=e=>e.getInstance("Table",e.o)},78644:function(e,t,i){i.d(t,{ToolbarButton:function(){return j}});var n,o=i(4012),r=i(78213),s=i(82758),a=i(45219),l=i(33433),c=i(87325),u=i(37133),d=i(2748),h=i(68345),p=i(23282),f=i(19306),m=i(72430),g=i(70799),v=i(56175),b=i(87058),y=i(38837),_=i(29960),w=i(37790),k=i(62843),S=i(20014),C=i(72157),E=i(12153),D=i(56917),I=i(21491),T=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let A=new Set(["input","textarea","select"]),j=n=class e extends k.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,_.attr)(this.trigger,"aria-label",e)}}get toolbar(){let e=(0,c.getComponentClass)("ToolbarCollection");return this.closest(e)}update(){var e,t;let{control:i,state:n}=this,o=this.toolbar;if(!o)return;let r=null==(e=i.value)?void 0:e.call(i,o.jodit,this);void 0!==r&&(n.value=r),n.disabled=this.__calculateDisabledStatus(o),n.activated=this.__calculateActivatedStatus(o),null==(t=i.update)||t.call(i,o.jodit,this)}__calculateActivatedStatus(e){var t,i;return(!(0,f.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(i=(t=this.control).isActive)&&!!i.call(t,this.j,this)||!!(e&&e.shouldBeActive(this)))}__calculateDisabledStatus(e){var t,i;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(i=(t=this.control).isDisabled)?void 0:i.call(t,this.j,this)))||!!(e&&e.shouldBeDisabled(this))}get isToggle(){let{isActive:e,tags:t,css:i}=this.control;return!!(e||t||i)}onChangeActivated(){(0,_.attr)(this.button,"aria-pressed",this.isToggle?this.state.activated:null),this.setMod("activated",this.state.activated||null)}onChangeText(){(0,p.isFunction)(this.control.template)?(this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)),this.updateAriaLabel()):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,_.attr)(this.button,"tabindex",this.state.tabIndex),(0,_.attr)(this.trigger,"tabindex",this.state.tabIndex)}createContainer(){let e=this.componentName,t=this.j.c.span(e),i=super.createContainer();i.classList.remove(e),i.classList.add(e+"__button"),Object.defineProperty(i,"component",{value:this,configurable:!0}),d.Dom.append(t,i);let n=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${e}__trigger">${E.Icon.get("chevron")}</span>`);return d.Dom.append(i,n),t}focus(){var e;null==(e=d.Dom.first(this.container,e=>d.Dom.isTag(e,"button")))||e.focus()}onChangeHasTrigger(){this.state.hasTrigger?d.Dom.append(this.container,this.trigger):d.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let e=this.state.disabled?"disabled":null;(0,_.attr)(this.trigger,"disabled",e),(0,_.attr)(this.button,"disabled",e),(0,_.attr)(this.container,"disabled",e)}__initFromControl(){let{control:e,state:t}=this;this.updateSize(),t.name=e.name,this.__initIconFromControl(),e.tooltip&&(t.tooltip=(0,p.isFunction)(e.tooltip)?e.tooltip(this.j,e,this):e.tooltip),t.hasTrigger=!!(e.list||e.popup&&e.exec),this.onChangeActivated()}__initIconFromControl(){var e;let{control:t,state:i}=this,{textIcons:n}=this.j.o;if(!0===n||(0,p.isFunction)(n)&&n(t.name)||t.template){i.icon=(0,k.UIButtonState)().icon,i.text=t.text||t.name;return}if(!(0,g.isString)(t.icon)&&null!=t.icon){i.icon={name:t.icon.name||t.name,iconURL:t.icon.iconURL||"",fill:t.icon.fill||"",scale:t.icon.scale};return}if(t.iconURL)i.icon.iconURL=t.iconURL;else{let n=t.icon||t.name;i.icon.name=E.Icon.exists(n)||(null==(e=this.j.o.extraIcons)?void 0:e[n])?n:""}t.iconURL||i.icon.name||(i.text=t.text||t.name)}onTriggerClick(e){var t,i,n;if(this.openedPopup)return void this.__closePopup();let{control:o}=this;if((0,_.attr)(this.trigger,"aria-expanded",!0),e.buffer={actionTrigger:this},o.list)return this.__openControlList(o);if((0,p.isFunction)(o.popup)){let e=this.openPopup();e.parentElement=this;try{if(!1!==this.j.e.fire((0,b.camelCase)(`before-${o.name}-open-popup`),this.target,o,e)){let r=null!=(n=null!=(i=null==(t=this.toolbar)?void 0:t.getTarget(this))?i:this.target)?n:null,s=o.popup(this.j,r,this.__closePopup,this);s?(e.setContent((0,g.isString)(s)?this.j.c.fromHTML(s):s).open(()=>(0,v.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),(0,S.focusFormField)(e.container)):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire((0,b.camelCase)(`after-${o.name}-open-popup`),e.container)}}onTriggerKeyDown(e){this.state.disabled||(e.key===s.KEY_DOWN?this.onButtonKeyDown(e):[s.KEY_ENTER,s.KEY_SPACE," "].includes(e.key)&&(e.preventDefault(),this.trigger.click()))}onButtonKeyDown(e){var t;e.key!==s.KEY_DOWN||this.state.disabled||!this.state.hasTrigger||e.altKey||e.ctrlKey||e.metaKey||(e.preventDefault(),e.stopPropagation(),this.openedPopup||this.trigger.click(),null==(t=this.__popupFocusables()[0])||t.focus())}__onPopupKeyDown(e){if(!this.openedPopup||e.altKey||e.ctrlKey||e.metaKey)return;let t=e.target;if(d.Dom.isTag(t,A)&&e.key!==s.KEY_ESC)return;let i=this.__popupFocusables(),n=i.indexOf(t);switch(e.key){case s.KEY_ESC:this.__closePopup();break;case s.KEY_UP:n<=0?this.__closePopup():i[n-1].focus();break;case s.KEY_DOWN:if(!i.length)return;i[(n+1)%i.length].focus();break;default:if(!this.control.list||!this.__typeAhead(e.key,i,n))return}e.preventDefault(),e.stopPropagation()}__onEditorKeyDown(e){if(this.openedPopup&&this.control.list&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&this.__typeAhead(e.key,this.__popupFocusables(),-1))return e.preventDefault(),!1}__typeAhead(e,t,i){var n,o;let r=Date.now();if((r-this.__typedAt>1e3||t[i]!==this.__typedTo)&&(this.__typed=""),1!==e.length||" "===e&&!this.__typed)return!1;this.__typedAt=r,this.__typed+=e,this.__typedTo=t[i];let{compare:s}=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"}),a=this.__typed,l=Array.from(a).every(e=>0===s(e,a[0])),c=l?a[0]:a,u=l?i+1:Math.max(i,0);for(let e=0;e<t.length;e+=1){let i=t[(u+e)%t.length];if(0===s((null!=(o=null==(n=i.textContent)?void 0:n.trim())?o:"").slice(0,c.length),c)){i.focus(),this.__typedTo=i;break}}return!0}__popupFocusables(){let e=this.openedPopup;return e?Array.from(e.container.querySelectorAll('button:not([disabled]),a[href],input:not([disabled]):not([type="hidden"]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter(e=>!!e.offsetParent):[]}__openControlList(e){var t,i,n,o,r;let s=null!=(t=this.jodit.options.controls)?t:{},a=e=>(0,C.findControlType)(e,s),l=e.list,c=this.openPopup();c.parentElement=this;let u=null==(i=e.popup)?void 0:i.call(e,this.j,null!=(r=null!=(o=null==(n=this.toolbar)?void 0:n.getTarget(this))?o:this.target)?r:null,this.__closePopup,this);if(u)return this.__openMenu(c,u);let d=(0,I.makeCollection)(this.j);d.parentElement=c,d.mode="vertical";let p=(t,i)=>{let n;if((0,g.isString)(i)&&a(i))return{name:i.toString(),...a(i)};if((0,g.isString)(t)&&a(t))return{name:t.toString(),...a(t),..."object"==typeof i?i:{}};n=t,(0,m.isPlainObject)(n)&&"title"in n&&"value"in n&&(i=t.value,t=t.title);let{childTemplate:o}=e,r={name:t.toString(),template:o&&((e,t,i)=>o(e,t,i,this)),exec:e.childExec?(t,i,n)=>{var o;return null==(o=e.childExec)?void 0:o.call(e,t,i,{...n,parentControl:e})}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:[...e.args?e.args:[],t,i]};return(0,g.isString)(i)&&(r.text=i),r};d.build((0,h.isArray)(l)?l.map(p):(0,w.keys)(l,!1).map(e=>p(e,l[e])),this.target),this.__openMenu(c,d)}__openMenu(e,t){e.setContent(t).open(()=>(0,v.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(e){this.openedPopup&&(e&&d.Dom.isNode(e.target)&&(d.Dom.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new D.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick).on("keydown",this.__onEditorKeyDown).on(this.openedPopup.container,"keydown",this.__onPopupKeyDown),this.openedPopup}__closePopup(){let e=this.openedPopup;if(!e)return;this.openedPopup=null,this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick).off("keydown",this.__onEditorKeyDown);let{activeElement:t}=this.od,i=t&&d.Dom.isOrContains(e.container,t),n=i&&d.Dom.closest(t,"form",e.container);this.state.activated=!1,e.close(),e.destruct(),this.trigger&&(0,_.attr)(this.trigger,"aria-expanded",!1),n&&(0,f.isJoditObject)(this.j)?this.j.s.focus():i&&this.focus()}onClick(e){var t,i,n,o,r,s,a;let{control:l}=this;if((0,p.isFunction)(l.exec)){let c=null!=(n=null!=(i=null==(t=this.toolbar)?void 0:t.getTarget(this))?i:this.target)?n:null,u=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==u&&!0!==u&&(null==(r=null==(o=this.j)?void 0:o.e)||r.fire("synchro"),this.parentElement&&this.parentElement.update(),this.__closePopups(),null==(a=null==(s=this.j)?void 0:s.e)||a.fire("afterExec")),!1!==u)return}return l.list?this.__openControlList(l):(0,p.isFunction)(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&((0,w.call)((0,f.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.__closePopups()))}__closePopups(){var e,t;let i=[this];for(let e=this.parentElement;e;e=e.parentElement){if(o.Component.isInstanceOf(e,D.Popup)&&e.keepOpen&&(!this.target||this.target.isConnected)){i.forEach(e=>e.__closePopup()),e.updatePosition();return}o.Component.isInstanceOf(e,n)&&i.push(e)}null==(t=null==(e=this.j)?void 0:e.e)||t.fire("closeAllPopups")}destruct(){return this.__closePopup(),super.destruct()}constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.state={...(0,k.UIButtonState)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.__typed="",this.__typedAt=0,this.__typedTo=null,this.openedPopup=null;let n=this.getElm("button");(0,y.assert)(n,"Element button should exists"),this.button=n,Object.defineProperty(n,"component",{value:this,configurable:!0});let o=this.getElm("trigger");(0,y.assert)(o,"Element trigger should exists"),this.trigger=o,o.remove(),e.e.on([this.button,this.trigger],"mousedown",e=>e.preventDefault()),this.onAction(this.onClick),this.hookStatus(r.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),t.mods&&Object.keys(t.mods).forEach(e=>{t.mods&&this.setMod(e,t.mods[e])})}};T([l.cacheHTML],j.prototype,"createContainer",null),T([(0,u.watch)("state.hasTrigger",{immediately:!1})],j.prototype,"onChangeHasTrigger",null),T([(0,u.watch)("trigger:click")],j.prototype,"onTriggerClick",null),T([(0,u.watch)("trigger:keydown")],j.prototype,"onTriggerKeyDown",null),T([(0,u.watch)("button:keydown")],j.prototype,"onButtonKeyDown",null),T([a.autobind],j.prototype,"__onPopupKeyDown",null),T([a.autobind],j.prototype,"__onEditorKeyDown",null),T([a.autobind],j.prototype,"onOutsideClick",null),T([a.autobind],j.prototype,"__closePopup",null),j=n=T([c.component],j)},80319:function(e,t,i){i.d(t,{ToolbarContent:function(){return l}});var n=i(65478),o=i(22732),r=i(21537),s=i(62843);let a=new Set(["input","button","select","textarea"]),l=class e extends s.UIButton{className(){return"ToolbarContent"}getRole(){return"listitem"}onChangeActivated(){}update(){var e,t,i;let{control:n}=this,s=n.getContent(this.j,this);((0,r.isString)(s)||s.parentNode!==this.container)&&(o.Dom.detach(this.container),o.Dom.append(this.container,(0,r.isString)(s)?this.j.create.fromHTML(s):s)),this.state.disabled=!!(null==(e=n.isDisabled)?void 0:e.call(n,this.j,this)),this.state.activated=!!(null==(t=n.isActive)?void 0:t.call(n,this.j,this)),null==(i=n.update)||i.call(n,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),o.Dom.each(this.container,e=>{o.Dom.isTag(e,a)&&(0,r.attr)(e,"disabled",this.state.disabled||null)})}createContainer(){return this.j.c.span(this.componentName)}constructor(e,t,i=null){super(e),this.control=t,this.target=i,this.container.classList.add(`${this.componentName}_${this.clearName(t.name)}`)}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],l)},36646:function(e,t,i){i.d(t,{ToolbarButton:function(){return n.ToolbarButton},ToolbarContent:function(){return o.ToolbarContent},ToolbarSelect:function(){return r.ToolbarSelect}});var n=i(78644),o=i(80319),r=i(83111)},83111:function(e,t,i){i.d(t,{ToolbarSelect:function(){return l}});var n=i(65478),o=i(72430),r=i(70799),s=i(29960),a=i(78644);let l=class e extends a.ToolbarButton{className(){return"ToolbarSelect"}get isToggle(){return!1}update(){var e,t,i;super.update(),this.state.icon.name="";let{list:n,data:s}=this.control;if(n){let a=this.state.value||(s&&(0,r.isString)(s.currentValue)?s.currentValue:void 0);a||(a=Object.keys(n)[0]);let l=((0,o.isPlainObject)(n)&&n[a.toString()]||a).toString();this.state.text=null!=(i=null==(t=(e=this.control).textTemplate)?void 0:t.call(e,this.jodit,l))?i:l}}updateAriaLabel(){var e;super.updateAriaLabel();let{tooltip:t}=this.state,i=null==(e=this.text.textContent)?void 0:e.trim();t&&i&&(0,s.attr)(this.button,"aria-label",`${this.jodit.i18n(t)}, ${i}`)}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([n.component],l)},11676:function(e,t,i){i.d(t,{ToolbarCollection:function(){return f}});var n=i(65478),o=i(45219),r=i(87325),s=i(97357),a=i(37133),l=i(29960),c=i(41180),u=i(82760),d=i(24536),h=i(21491),p=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let f=class e extends d.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[e]=this.buttons;return e||null}makeButton(e,t=null){return(0,h.makeButton)(this.j,e,t)}makeSelect(e,t=null){return(0,h.makeSelect)(this.j,e,t)}shouldBeActive(e){}shouldBeDisabled(e){}getTarget(e){return e.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(e){(0,c.css)(this.container,"direction",e),(0,l.attr)(this.container,"dir",e)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(e){throw(0,u.error)("The method is not implemented for this class.")}build(e,t=null){let i=this.j.e.fire("beforeToolbarBuild",e);return i&&(e=i),super.build(e,t),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(e){super(e),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};p([(0,a.watch)(":afterInit"),o.autobind],f.prototype,"__immediateUpdate",null),p([(0,n.debounce)(e=>e.j.defaultTimeout,!0)],f.prototype,"update",null),p([(0,s.hook)("ready")],f.prototype,"__initEvents",null),f=p([r.component],f)},37426:function(e,t,i){i.d(t,{ToolbarEditorCollection:function(){return l}});var n=i(82758),o=i(65478),r=i(22732),s=i(21537),a=i(11676);let l=class e extends a.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(e){let t=super.shouldBeDisabled(e);if(void 0!==t)return t;let i=void 0===e.control.mode?n.MODE_WYSIWYG:e.control.mode;return i!==n.MODE_SPLIT&&i!==this.j.getRealMode()}shouldBeActive(e){let t,i=super.shouldBeActive(e);if(void 0!==i)return i;let n=this.j.selection?this.j.s.current():null;if(!n)return!1;if(e.control.tags){let i=e.control.tags;if(t=n,r.Dom.up(t,e=>{if(e&&-1!==i.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){let i=e.control.css;if(t=n,r.Dom.up(t,e=>{if(e&&!r.Dom.isText(e)&&!r.Dom.isComment(e))return this.checkActiveStatus(i,e)},this.j.editor))return!0}return!1}getTarget(e){return e.target||this.j.s.current()||null}prependInvisibleInput(e){let t=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});r.Dom.appendChildFirst(e,t)}showInline(e){this.jodit.e.fire("showInlineToolbar",e)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(e){super(e),this.checkActiveStatus=(e,t)=>{let i=0,n=0;return Object.keys(e).forEach(o=>{let r=e[o];(0,s.isFunction)(r)?r(this.j,(0,s.css)(t,o).toString())&&(i+=1):-1!==r.indexOf((0,s.css)(t,o).toString())&&(i+=1),n+=1}),n===i},this.prependInvisibleInput(this.container)}};l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s}([o.component],l)},21491:function(e,t,i){i.d(t,{makeButton:function(){return a},makeCollection:function(){return s},makeSelect:function(){return l}});var n=i(87325),o=i(23282),r=i(19306);function s(e,t){let i=(0,n.getComponentClass)("ToolbarCollection"),o=(0,n.getComponentClass)("ToolbarEditorCollection"),s=(0,r.isJoditObject)(e)?new o(e):new i(e);return e.o.textIcons&&s.container.classList.add("jodit_text_icons"),t&&(s.parentElement=t),e.o.toolbarButtonSize&&(s.buttonSize=e.o.toolbarButtonSize),s}function a(e,t,i=null){if((0,o.isFunction)(t.getContent))return new((0,n.getComponentClass)("ToolbarContent"))(e,t,i);let r=new((0,n.getComponentClass)("ToolbarButton"))(e,t,i);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}function l(e,t,i=null){let o=new((0,n.getComponentClass)("ToolbarSelect"))(e,t,i);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,o}},80536:function(e,t,i){var n=i(68345),o=i(19306),r=i(29960),s=i(6441),a=i(2073);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,showTabInFileSelector:!0,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName:e=>`files[${e}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:e=>e,isSuccess:e=>e.success,getMessage:e=>void 0!==e.data.messages&&(0,n.isArray)(e.data.messages)?e.data.messages.join(" "):"",processFileName:(e,t,i)=>[e,t,i],process:e=>e.data,error(e){this.j.message.error(e.message,4e3)},getDisplayName:(e,t)=>e+t,defaultHandlerSuccess(e){let t=this.j||this;if(!(0,o.isJoditObject)(t))return;let{baseurl:i}=e;(0,a.getItems)(e).forEach(({file:e,isImage:n})=>{let[o,s]=n?["img","src"]:["a","href"],a=t.createInside.element(o);(0,r.attr)(a,s,i+e),"a"===o&&(a.textContent=t.o.uploader.getDisplayName.call(this,i,e)),"img"===o?t.s.insertImage(a,null,t.o.imageDefaultWidth):t.s.insertNode(a)})},defaultHandlerError(e){this.j.message.error(e.message)},promptOnExists:!0,promptOnExistsSuggestName:e=>e,contentType(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},83987:function(e,t,i){i.d(t,{buildData:function(){return o}});var n=i(21537);function o(e,t){if((0,n.isFunction)(e.o.buildData))return e.o.buildData.call(e,t);let i=e.ow.FormData;if(void 0!==i){if(t instanceof i||(0,n.isString)(t))return t;let e=new i;return Object.keys(t).forEach(i=>{e.append(i,t[i])}),e}return t}},74569:function(e,t,i){i.d(t,{dataURItoBlob:function(){return n}});function n(e){var t,i;let[n,...o]=e.split(","),r=o.join(","),s=null!=(i=null==(t=n.split(":")[1])?void 0:t.split(";")[0])?i:"",a=/;base64/i.test(n)?atob(r):decodeURIComponent(r),l=new Uint8Array(new ArrayBuffer(a.length));for(let e=0;e<a.length;e+=1)l[e]=a.charCodeAt(e);return new Blob([l.buffer],{type:s})}},94122:function(e,t,i){i.d(t,{ajaxInstances:function(){return r.ajaxInstances},hasFiles:function(){return a},hasItems:function(){return l},normalizeUploaderData:function(){return n.normalizeUploaderData},processOldBrowserDrag:function(){return o.processOldBrowserDrag},send:function(){return r.send},sendFiles:function(){return s.sendFiles}}),i(83987);var n=i(2073),o=i(50373),r=i(71686),s=i(80020);function a(e){return!!(e&&e.files&&e.files.length>0)}function l(e){return!!(e&&e.items&&e.items.length>0)}},2073:function(e,t,i){i.d(t,{getItems:function(){return r},normalizeUploaderData:function(){return s}});var n=i(68345),o=i(70799);function r(e){let{files:t,isImages:i,fileNames:o,items:r}=e;return(0,n.isArray)(t)?t.map((e,t)=>{let n=null==o?void 0:o[t];return{file:e,isImage:!!(null==i?void 0:i[t]),...void 0!==n?{name:n}:{}}}):null!=r?r:[]}function s(e){if(!e||"object"!=typeof e)return e;let{files:t,items:i}=e;if(!i||(0,n.isArray)(t)&&(t.length||!i.length))return{...e,items:r(e)};let s=i.map(({name:e})=>e);return{...e,files:i.map(({file:e})=>e),isImages:i.map(({isImage:e})=>e),...s.every(o.isString)?{fileNames:s}:{},items:i}}},50373:function(e,t,i){i.d(t,{processOldBrowserDrag:function(){return c}});var n=i(82758),o=i(22732),r=i(580),s=i(21537),a=i(74569),l=i(80020);function c(e,t,i,c,u){if(t&&(!t.types.length||t.types[0]!==n.TEXT_PLAIN)){let t=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});o.Dom.append((0,r.getContainer)(e.j,e.constructor),t);let n=(0,s.isJoditObject)(e.j)?e.j.s.save():null;t.focus(),e.j.async.setTimeout(()=>{let r=t.firstChild;if(o.Dom.safeRemove(t),r&&r.hasAttribute("src")){let t=(0,s.attr)(r,"src")||"";n&&(0,s.isJoditObject)(e.j)&&e.j.s.restore(),(0,l.sendFiles)(e,[(0,a.dataURItoBlob)(t)],i,c).finally(u)}},e.j.defaultTimeout)}}},80020:function(e,t,i){i.d(t,{sendFiles:function(){return u}});var n=i(82758),o=i(21537),r=i(70231),s=i(36806),a=i(2073),l=i(71686),c=i(76198);async function u(e,t,i,d,h,p){if(!t)throw(0,o.error)("Need files");let{o:f}=e,m=(0,o.toArray)(t);if(!m.length)throw(0,o.error)("Need files");let g=null==p?void 0:p.data;if(!p&&(0,o.isFunction)(f.beforeUpload)){let t;try{t=await f.beforeUpload.call(e,m)}catch(t){throw(d||f.defaultHandlerError).call(e,t),t}if(!1===t){let t=(0,o.error)("Upload canceled");throw(d||f.defaultHandlerError).call(e,t),t}if((0,o.isArray)(t)?m=t:(0,o.isPlainObject)(t)&&(0,o.isArray)(t.files)&&(m=t.files,g=t.data),!m.length)return[]}let v=[];if(f.insertImageAsBase64URI&&function(e,t,i,n,r,s){let l,c,u=[];for(c=0;c<e.length;c+=1)if((l=e[c])&&l.type){let d=l.type.match(/\/([a-z0-9]+)/i),h=d[1]?d[1].toLowerCase():"";if(!t.includes(h))continue;let p=new FileReader,{name:f}=l,m=n.j.async.promise((e,t)=>{p.onerror=t,p.onloadend=()=>{let t=(0,a.normalizeUploaderData)({baseurl:"",items:[{file:p.result,isImage:!0,name:f}]});((0,o.isFunction)(r)?r:s).call(n,t),e(t)},p.readAsDataURL(l)});u.push(m),i.push(m),e[c]=null}u.length&&Promise.all(u).then(()=>{n.j.events&&n.j.e.fire("filesWereUploaded")}).catch(()=>{})}(m,f.imagesExtensions,v,e,i,f.defaultHandlerSuccess),(m=m.filter(e=>e)).length){let t,p=new FormData;p.append(f.pathVariableName,e.path),p.append("source",e.source);for(let i=0;i<m.length;i+=1)if(t=m[i]){let n=/\.\w+$/.test(t.name),o=t.type.match(/\/([a-z0-9]+)/i),r=o&&o[1]?o[1].toLowerCase():"",s=m[i].name||Math.random().toString().replace(".","");if(!n&&r){let e=r;["jpeg","jpg"].includes(e)&&(e="jpeg|jpg"),RegExp(".("+e+")$","i").test(s)||(s+="."+r)}let[a,l,c]=f.processFileName.call(e,f.filesVariableName(i),m[i],s);p.append(a,l,c)}h&&h(p),f.data&&(0,o.isPlainObject)(f.data)&&Object.keys(f.data).forEach(e=>{p.append(e,f.data[e])}),g&&Object.keys(g).forEach(e=>{p.append(e,g[e])}),f.prepareData.call(e,p),v.push((0,l.send)(e,p).then(t=>{if(f.isSuccess.call(e,t))return((0,o.isFunction)(i)?i:f.defaultHandlerSuccess).call(e,(0,a.normalizeUploaderData)(f.process.call(e,t))),t;let l=new c.UploadError(f.getMessage.call(e,t),t,m,t=>{var n;return u(e,null!=(n=null==t?void 0:t.files)?n:m,i,d,h,{data:{...g,...null==t?void 0:t.data}})});return l.code===n.ERROR_CODE_CONFLICT&&f.promptOnExists?function(e,t){let{files:i}=t;if(i.length>1)return i.reduce((e,i)=>e.then(()=>t.retry({files:[i]})),Promise.resolve());let[n]=i,{j:o,o:a}=e;return new Promise(i=>{let l=!1,c=s.Prompt.call(r.Dlgs.prototype.dlg.call(o,{closeOnClickOverlay:!0}),o.i18n(t.message),o.i18n("Rename"),e=>{if(!(e=e.trim()))return!1;l=!0,i(t.retry({files:[new File([n],e,{type:n.type})]}))},o.i18n("Enter new name"),a.promptOnExistsSuggestName.call(e,n.name));c.e.on(c,"afterClose",()=>{l||i(void 0)})})}(e,l):(((0,o.isFunction)(d)?d:f.defaultHandlerError).call(e,l),t)}).then(()=>{e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(v)}},71686:function(e,t,i){i.d(t,{send:function(){return a}});var n=i(21537),o=i(41601),r=i(83987);let s=new WeakMap;function a(e,t){let i=(0,r.buildData)(e,t),a=t=>{e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},l=(t,i)=>{let r=new o.Ajax({xhr(){let t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(i(10),t.upload.addEventListener("progress",e=>{if(e.lengthComputable){let t=e.loaded/e.total;i(t*=100)}},!1)):i(100),t},method:e.o.method||"POST",data:t,url:(0,n.isFunction)(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),a=s.get(e);return a||(a=new Set,s.set(e,a)),a.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(e=>e.json()).catch(e=>({success:!1,data:{messages:[e]}})).finally(()=>{r.destruct(),null==a||a.delete(r)})};return((0,n.isFunction)(e.o.customUploadFunction)&&(l=e.o.customUploadFunction),(0,n.isPromise)(i))?i.then(e=>l(e,a)).catch(t=>{e.o.error.call(e,t)}):l(i,a)}i.d(t,["ajaxInstances",0,s])},76198:function(e,t,i){i.d(t,{UploadError:function(){return o}});var n=i(89890);class o extends n.AnswerError{constructor(e,t,i,n){var r;super(e,t,null==(r=t.data)?void 0:r.code),this.files=i,this.retry=n,Object.setPrototypeOf(this,o.prototype)}}},57380:function(e,t,i){i.d(t,{Uploader:function(){return u}});var n=i(91907),o=i(82758),r=i(2748),s=i(21537),a=i(89890),l=i(6441),c=i(94122);i(80536);class u extends n.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(e){return this.path=e,this}setSource(e){return this.source=e,this}bind(e,t,i){let n=()=>{e.classList.remove("jodit_drag_hover")},r=this,s=e=>{let s,a,l,u=e.clipboardData,d=e=>{a&&(e.append("extension",l),e.append("mimetype",a.type))};if(!o.IS_IE&&(0,c.hasFiles)(u))return(0,c.sendFiles)(r,u.files,t,i).finally(n),!1;if(o.IS_IE&&!o.IS_ES_NEXT)return(0,c.processOldBrowserDrag)(r,u,t,i,n);if((0,c.hasItems)(u)){let{items:o}=u;for(s=0;s<o.length;s+=1)if("file"===o[s].kind&&"image/png"===o[s].type){if(a=o[s].getAsFile()){let e=a.type.match(/\/([a-z0-9]+)/i);l=e[1]?e[1].toLowerCase():"",(0,c.sendFiles)(r,[a],t,i,d).finally(n)}e.preventDefault();break}}};r.j&&r.j.editor!==e?r.j.e.on(e,"paste",s):r.j.e.on("beforePaste",s),this.attachEvents(e,t,i,n)}attachEvents(e,t,i,n){let o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",e=>{e.preventDefault()}).on(e,"dragover",t=>{((0,c.hasFiles)(t.dataTransfer)||(0,c.hasItems)(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",t=>{e.classList.remove("jodit_drag_hover"),(0,c.hasFiles)(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",r=>{e.classList.remove("jodit_drag_hover"),(0,c.hasFiles)(r.dataTransfer)&&(r.preventDefault(),r.stopImmediatePropagation(),(0,c.sendFiles)(o,r.dataTransfer.files,t,i).finally(n))});let a=r.Dom.first(e,e=>{var t;return r.Dom.isTag(e,"input")&&(null==(t=(0,s.attr)(e,"type"))?void 0:t.toLowerCase())==="file"});a&&o.j.e.on(a,"change",()=>{(0,c.sendFiles)(o,a.files,t,i).then(()=>{a.value="",/safari/i.test(navigator.userAgent)||(a.type="",a.type="file")}).finally(n)})}uploadRemoteImage(e,t,i){let n=this,{o}=n,r=(0,s.isFunction)(i)?i:o.defaultHandlerError;(0,c.send)(n,{action:"fileUploadRemote",url:e}).then(e=>{var i;o.isSuccess.call(n,e)?((0,s.isFunction)(t)?t:o.defaultHandlerSuccess).call(n,(0,c.normalizeUploaderData)(o.process.call(n,e))):r.call(n,(0,a.answer)(o.getMessage.call(n,e),e,null==(i=e.data)?void 0:i.code))}).catch(e=>r.call(n,e))}upload(e){return this.async.promise((t,i)=>{let n=!1,o=e=>t=>{n=!0,e(t)};(0,c.sendFiles)(this,e,o(t),o(i)).then(()=>{n||t({baseurl:"",items:[],files:[],isImages:[]})},o(i))})}destruct(){this.setStatus(n.STATUSES.beforeDestruct);let e=c.ajaxInstances.get(this);e&&(e.forEach(e=>{try{e.destruct()}catch(e){}}),e.clear()),super.destruct()}constructor(e,t){super(e),this.path="",this.source="default",this.options=(0,s.ConfigProto)(t||{},(0,s.ConfigProto)(l.Config.defaultOptions.uploader,(0,s.isJoditObject)(e)?e.o.uploader:{}))}}},22859:function(e,t,i){var n=i(82758),o=i(22732),r=i(21537),s=i(67510),a=i(37068);s.Icon.set("palette",a.default),i.d(t,["ColorPickerWidget",0,(e,t,i)=>{var a;let l="jodit-color-picker",c=(0,r.normalizeColor)(i),u=e.c.div(l),d=e.o.textIcons?`<span>${e.i18n("palette")}</span>`:s.Icon.get("palette"),h=e=>{let t=[];return(0,r.isPlainObject)(e)?Object.keys(e).forEach(i=>{t.push(`<div class="${l}__group ${l}__group-${i}">`),t.push(h(e[i])),t.push("</div>")}):(0,r.isArray)(e)&&e.forEach(e=>{let i=c===e;t.push(`<button type="button" class='${l}__color-item ${i?l+"__color-item_active_true":""}' title="${e}" aria-pressed="${i}" tabindex="-1" style="background-color:${e}" data-color="${e}"></button>`)}),t.join("")},p=(0,r.isArray)(e.o.colors)?`<div class="${l}__group">${h(e.o.colors)}</div>`:h(e.o.colors);o.Dom.append(u,e.c.fromHTML(`<div class="${l}__groups">${p}</div>`));let f=(0,r.toArray)(u.querySelectorAll(`.${l}__color-item`)),m=null!=(a=f.find(e=>"true"===(0,r.attr)(e,"aria-pressed")))?a:f[0];m&&(0,r.attr)(m,"tabindex",0),o.Dom.append(u,e.c.fromHTML(`<div data-ref="extra" class="${l}__extra"></div>`));let{extra:g}=(0,r.refs)(u);o.Dom.append(g,e.c.fromHTML(`<div class="${l}__hex"><input data-ref="hexInput" type="text" spellcheck="false" aria-label="HEX" placeholder="#FF0000" value="${c||""}"/></div>`));let{hexInput:v}=(0,r.refs)(u),b=null,y=()=>{let e=v.value.trim();if(e===b)return;let i=/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(e),n=/^rgba?\([\d\s.,%]+\)$/i.test(e);if(!i&&!n)return;let o=(0,r.normalizeColor)(i&&!e.startsWith("#")?"#"+e:e);o&&(0,r.isFunction)(t)&&(b=e,t(o))};e.e.on(v,"keydown",e=>{e.stopPropagation(),"Enter"===e.key&&(e.preventDefault(),y())}).on(v,"change",e=>{e.stopPropagation(),y()}),o.Dom.append(g,e.c.fromHTML(`<button type="button" class="${l}__remove" data-color="" title="${e.i18n("Remove")}">${e.o.textIcons?e.i18n("Remove"):s.Icon.get("eraser")}</button>`)),e.o.showBrowserColorPicker&&(0,r.hasBrowserColorPicker)()&&(o.Dom.append(g,e.c.fromHTML(`<div class="${l}__native">${d}<input type="color" value="#ffffff"/></div>`)),e.e.on(u,"change",e=>{e.stopPropagation();let i=e.target;if(!i||!i.tagName||!o.Dom.isTag(i,"input")||"color"!==i.type)return;let n=i.value||"";(0,r.isFunction)(t)&&t(n),e.preventDefault()}));let _=e=>{let t=o.Dom.closest(e,e=>o.Dom.isHTMLElement(e)&&(e.classList.contains(l+"__color-item")||e.classList.contains(l+"__remove")),u);return t?(0,r.attr)(t,"-color")||"":void 0},w=e=>{t&&(0,r.isFunction)(t)&&t(e)},k=!1;return e.e.on(u,"mousedown touchend",e=>{if(o.Dom.isTag(e.target,"input"))return void e.stopPropagation();e.stopPropagation(),e.preventDefault();let t=_(e.target);void 0!==t&&(k="mousedown"===e.type,w(t))}),e.e.on(u,"click",e=>{let t=_(e.target);void 0===t||k||w(t),k=!1}).on(u,"keydown",e=>{var t;k=!1;let i=e.target;f.includes(i)&&[n.KEY_LEFT,n.KEY_RIGHT,n.KEY_UP,n.KEY_DOWN].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),null==(t=((e,t)=>{let i=f.indexOf(e);if(t===n.KEY_LEFT||t===n.KEY_RIGHT){let o=t===n.KEY_LEFT?-1:1;return f[i+("rtl"===(0,r.css)(e,"direction")?-o:o)]}let o=t===n.KEY_DOWN,s=f.filter(t=>o?t.offsetTop>e.offsetTop:t.offsetTop<e.offsetTop);if(!s.length)return;let a=(o?Math.min:Math.max)(...s.map(e=>e.offsetTop)),l=t=>Math.abs(t.offsetLeft-e.offsetLeft);return s.filter(e=>e.offsetTop===a).reduce((e,t)=>l(t)<l(e)?t:e)})(i,e.key))||t.focus())}).on(u,"focusin",e=>{f.includes(e.target)&&f.forEach(t=>(0,r.attr)(t,"tabindex",t===e.target?0:-1))}),e.e.fire("afterGenerateColorPicker",u,g,t,c),u}])},37068:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3a9 9 0 1 0 0 18h1a2 2 0 0 0 1.5-3.3 1.7 1.7 0 0 1 1.3-2.8H18a3 3 0 0 0 3-3A9 9 0 0 0 12 3Z"/><circle cx="7" cy="10" r="0.7"/><circle cx="10" cy="6.5" r="0.7"/><circle cx="15" cy="7" r="0.7"/><circle cx="17.5" cy="11" r="0.7"/> </g> </svg> '},34793:function(e,t,i){var n=i(2748),o=i(21537),r=i(67510),s=i(38927);let a=(e,t,{label:i,accept:n})=>{let o=e.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${e.i18n(i)}</strong><span><br>${e.i18n("or click")}</span><input type="file" accept="${n}" tabindex="-1" dir="auto" multiple=""/></div>`);return e.uploader.bind(o,i=>{t.call(e,i),e.e.fire("closeAllPopups")},t=>{e.message.error(t.message),e.e.fire("closeAllPopups")}),{icon:"upload",name:"Upload",content:o}};function l(e,t,i){let r=n.Dom.first(e,e=>n.Dom.isTag(e,"input")&&(0,o.attr)(e,"name")===t);return r?(i&&(r.value=i),r.value):""}i.d(t,["FileSelectorWidget",0,(e,t,i,c,u=!0)=>{let d,h=[],p=e.o.uploader;if(t.upload&&!1!==p.showTabInFileSelector&&(p.url||p.insertImageAsBase64URI||p.customUploadFunction)){let{upload:i}=t;h.push(a(e,t=>{let n=(0,o.isFunction)(i)?i:p.defaultHandlerSuccess;(0,o.isFunction)(n)&&n.call(e,t)},u?{label:"Drop image",accept:"image/*"}:{label:"Drop file",accept:"*"}))}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){c&&c(),t.filebrowser&&e.filebrowser.open(t.filebrowser,u)}}),t.url){let s=new r.UIButton(e,{type:"submit",variant:"primary",text:"Insert"}),a=new r.UIForm(e,[new r.UIInput(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new r.UIInput(e,{name:"text",label:"Alternative text"}),new r.UIBlock(e,[s])]);i&&!n.Dom.isText(i)&&!n.Dom.isComment(i)&&(n.Dom.isTag(i,"img")||(0,o.$$)("img",i).length)&&(d="IMG"===i.tagName?i:(0,o.$$)("img",i)[0],l(a.container,"url",(0,o.attr)(d,"src")),l(a.container,"text",(0,o.attr)(d,"alt")),s.state.text="Update"),i&&n.Dom.isTag(i,"a")&&(l(a.container,"url",(0,o.attr)(i,"href")),l(a.container,"text",(0,o.attr)(i,"title")),s.state.text="Update"),a.onSubmit(i=>{(0,o.isFunction)(t.url)&&t.url.call(e,i.url,i.text)}),h.push({icon:"link",name:"URL",content:a.container})}let f=(0,s.TabsWidget)(e,h);return f.classList.add("jodit-file-selector"),f},"UploadTab",0,a])},92762:function(e,t,i){i.d(t,{ColorPickerWidget:function(){return n.ColorPickerWidget},FileSelectorWidget:function(){return o.FileSelectorWidget},TabsWidget:function(){return r.TabsWidget},UploadTab:function(){return o.UploadTab}});var n=i(22859),o=i(34793),r=i(38927)},38927:function(e,t,i){var n=i(91907),o=i(2748),r=i(23282),s=i(29960),a=i(67510),l=i(20014);i.d(t,["TabsWidget",0,(e,t,i)=>{let c=e.c.div("jodit-tabs"),u=e.c.div("jodit-tabs__wrapper"),d=e.c.div("jodit-tabs__buttons");(0,s.attr)(d,{role:"tablist","aria-orientation":"horizontal"});let h={},p=[],f="";o.Dom.append(c,d),o.Dom.append(c,u);let m=e=>{h[e]&&(p.forEach(e=>{e.state.activated=!1}),Object.values(h).forEach(({tab:e})=>e.classList.remove("jodit-tab_active")),h[e].button.state.activated=!0,h[e].tab.classList.add("jodit-tab_active"))};if(t.forEach(({icon:c,name:g,content:v})=>{let b=e.c.div("jodit-tab");(0,s.attr)(b,{role:"tabpanel"});let y=(0,a.Button)(e,c||g,g);y.state.role="tab",e.e.on(y.container,"pointerdown",e=>e.preventDefault()),f||(f=g),o.Dom.append(d,y.container),p.push(y),y.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),(0,r.isFunction)(v)?b.classList.add("jodit-tab_empty"):o.Dom.append(b,n.Component.isInstanceOf(v,a.UIElement)?v.container:v),o.Dom.append(u,b),y.onAction(()=>(m(g),(0,r.isFunction)(v)&&!o.Dom.isElement(v)&&v.call(e),i&&(i.activeTab=g),(0,l.focusFormField)(b),!1)),h[g]={button:y,tab:b}}),m(i&&i.activeTab&&h[i.activeTab]?i.activeTab:f),i){let e=i.activeTab;Object.defineProperty(i,"activeTab",{configurable:!0,enumerable:!1,get:()=>e,set(t){e=t,m(t)}})}return c}])},73391:function(e,t,i){var n=i(82758),o=i(580),r=i(21537),s=i(12153),a=i(6441),l=i(49399);a.Config.prototype.controls.about={exec(e){let t=e.dlg({closeOnClickOverlay:!0}),i=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(i("About Jodit")).setContent(`<div class="jodit-about">
117
117
  <div>${i("Jodit Editor")} v.${e.getVersion()}</div>
118
118
  <div>${i("License: %s",!(0,r.isLicense)(e.o.license)?e.o.license||"MIT":(0,r.normalizeLicense)(e.o.license))}</div>
119
119
  <div>
@@ -133,7 +133,7 @@
133
133
  <div class="&__spinner"></div>
134
134
  </div>
135
135
  </div>
136
- </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:n,aiCommonSuffixPrompt:o}=t.o.aiAssistant;this.promptInput.value=[n,(0,s.isString)(i)?i:"",o].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),r.Dom.detach(this.__results),this.__aiResult=e,r.Dom.append(this.__results,this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,r.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,a.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,a.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let n=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,a.Button)(e,{icon:{name:"ai-assistant"},name:"ai-assistant",tooltip:"Submit"}).onAction(n),this.__tryAgainButton=(0,a.Button)(e,{icon:{name:"update"},name:"update",tooltip:"Try Again",variant:"initial"}).onAction(n),this.promptInput=new a.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let o=new a.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new a.UIForm(e,[new a.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),r.Dom.detach(this.__results),r.Dom.append(this.__results,this.__spinner),this.__insertButton.focus()}),r.Dom.append(this.__buttons,o.container),r.Dom.append(this.__body,this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,o.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),c([(0,o.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),c([(0,o.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=c([n.component],u)},25187:function(e,t,i){i(73391),i(12391),i(93183),i(66707),i(41107),i(71255),i(82439),i(61323),i(93079),i(19063),i(19271),i(1255),i(575),i(11317),i(36243),i(23399),i(96111),i(2169),i(42263),i(16233),i(77469),i(23531),i(84571),i(80763),i(3215),i(70045),i(93401),i(76295),i(59483),i(91071),i(61019),i(65517),i(36911),i(20071),i(32309),i(64837),i(79799),i(31571),i(85407),i(59451),i(18363),i(8355),i(58519),i(6687),i(56113),i(9159),i(12019),i(36125),i(9881),i(28545),i(45927),i(52951),i(43809),i(7309),i(68687),i(59495),i(39627),i(767),i(43003),i(72439),i(94529),i(26551),i(96139),i(72253),i(65735),i(83671),i(3115)},36911:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(62843),u=i(2525),d=i(12153);i(50712);var h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p="jodit-wysiwyg_anchors",f=' contenteditable="false"';class m extends l.Plugin{afterInit(e){var t;let i,n,o=e.ed===e.od;o&&e.editor.classList.add(p),(0,s.getContainer)(e,"anchor","style",!0).textContent=(t=o?"."+p:"",i=["id","name"].map(e=>`.jodit-wysiwyg${t} a[${e}]:not([href]):empty::before`).join(","),n=`url("data:image/svg+xml,${encodeURIComponent(d.Icon.get("anchor"))}") center/contain no-repeat`,`${i}{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background-color:var(--jd-color-icon,#4c4c4c);-webkit-mask:${n};mask:${n};cursor:pointer;content:''}`),e.e.on("generateAnchorForm.anchor",this.__generateForm).on("clickA touchstartA",this.__onClickA,{top:!0})}__onClickA(e,t){var i;let{j:n}=this;if(!n.o.readonly&&(0,a.isAnchor)(e))return n.e.stopPropagation((0,a.camelCase)((null!=(i=null==t?void 0:t.type)?i:"click")+"_a")),n.e.fire("showPopup",e,()=>(0,a.position)(e,n),"anchor",!0),!1}onChange(){let{j:e}=this;e.isInDestruct||e.getMode()===n.MODE_SOURCE||(0,a.getAnchors)(e.editor).forEach(g)}onAfterGetValueFromEditor(e){e.value=function(e){if(!e.includes(f))return e;let t="",i=0,n=0;for(;;){let o=e.indexOf("<",n);if(-1===o)break;let r=e.indexOf(">",o);if(-1===r)break;if(e.startsWith("<a",o)&&/\s/.test(e.charAt(o+2))&&e.startsWith("</a>",r+1)){let n=e.slice(o,r),s=n.indexOf(f);-1===s||/\shref=/.test(n)||(t+=e.slice(i,o+s),i=o+s+f.length)}n=r+1}return 0===i?e:t+e.slice(i)}(e.value)}onBeforePasteInsert(e){if(r.Dom.isElement(e)||r.Dom.isFragment(e))return void this.__renameCopies(e);if(!(0,a.isString)(e)||!/<a\s/i.test(e))return;let t=this.j.createInside.element("template");if(t.innerHTML=e,this.__renameCopies(t.content))return t.innerHTML}__generateForm(e,t){let{j:i}=this,o=(0,a.isAnchor)(e)?e:null,s=new u.UIInput(i,{name:"name",ref:"name_input",label:"Anchor",required:!0}),l=[new c.UIButton(i,{name:"insert",type:"submit",variant:"primary",text:o?"Update":"Insert"})];o&&(s.value=(0,a.getAnchorName)(o),l.unshift(new c.UIButton(i,{name:"remove",variant:"default",text:"Remove"}).onAction(()=>{i.o.readonly||(i.s.restore(),r.Dom.safeRemove(o),i.synchronizeValues()),t()})));let d=new u.UIForm(i,[new u.UIBlock(i,[s]),new u.UIBlock(i,l,{align:"full"})]);return o&&(this.__dropForm(),this.__form=d,i.e.on(d.container,"keydown",e=>{e.key===n.KEY_ESC&&(t(),i.s.restore())})),d.onSubmit(()=>{if(i.o.readonly)return t(),!1;let e=s.value.trim().replace(/^#/,""),n=e?/\s/.test(e)?"The name cannot contain spaces":this.__isTaken(e,o)?"This name is already in use":"":"Please fill out this field";return n?(s.error=n,s.focus()):(i.s.restore(),o?this.__rename(o,e):this.__insert(e),i.synchronizeValues(),t()),!1}),i.async.requestIdleCallback(()=>s.focus()),d}__dropForm(){let e=this.__form;this.__form=null,e&&!e.isInDestruct&&(this.j.e.off(e.container,"keydown"),e.destruct())}__isTaken(e,t){return(0,a.toArray)(this.j.editor.querySelectorAll("[id], a[name]")).some(i=>i!==t&&(i.id===e||(0,a.isAnchor)(i)&&(0,a.attr)(i,"name")===e))}__insert(e){let{j:t}=this,i=t.createInside.element("a",{id:e}),n=t.s.range;g(i),n.collapsed||(n.collapse(!0),t.s.selectRange(n));let o=r.Dom.closest(n.startContainer,"a",t.editor);o?(r.Dom.before(o,i),t.s.setCursorAfter(i)):t.s.insertNode(i,!0,!1)}__rename(e,t){let i=(0,a.getAnchorName)(e),n=this.__isTaken(i,e);["id","name"].forEach(i=>{e.hasAttribute(i)&&(0,a.attr)(e,i,t)}),n||(0,a.toArray)(this.j.editor.querySelectorAll("a[href]")).forEach(e=>{(0,a.attr)(e,"href")==="#"+i&&(0,a.attr)(e,"href","#"+t)})}__renameCopies(e){let t=new Set((0,a.toArray)(e.querySelectorAll("[id], a[name]")).map(e=>e.id||(0,a.attr)(e,"name"))),i=new Map;return((0,a.isAnchor)(e)?[e]:(0,a.getAnchors)(e)).forEach(e=>{let n=(0,a.getAnchorName)(e);if(!this.__isTaken(n,null))return;let o=n;for(let e=2;t.has(o)||this.__isTaken(o,null);e+=1)o=`${n}-${e}`;["id","name"].forEach(t=>{e.hasAttribute(t)&&(0,a.attr)(e,t,o)}),t.add(o),i.set(n,o)}),!!i.size&&((0,a.toArray)(e.querySelectorAll("a[href]")).forEach(e=>{var t;let n=null!=(t=(0,a.attr)(e,"href"))?t:"",o="#"===n[0]&&i.get(n.slice(1));o&&(0,a.attr)(e,"href","#"+o)}),!0)}beforeDestruct(e){this.__dropForm(),e.editor.classList.remove(p),e.e.off("generateAnchorForm.anchor",this.__generateForm).off("clickA touchstartA",this.__onClickA)}constructor(){super(...arguments),this.buttons=[{name:"anchor",group:"insert"}],this.__form=null}}function g(e){"false"!==(0,a.attr)(e,"contenteditable")&&(0,a.attr)(e,"contenteditable",!1)}h([o.autobind],m.prototype,"__onClickA",null),h([(0,o.watch)([":change",":afterInit",":afterSetMode"]),(0,o.debounce)()],m.prototype,"onChange",null),h([(0,o.watch)(":afterGetValueFromEditor")],m.prototype,"onAfterGetValueFromEditor",null),h([(0,o.watch)(":beforePasteInsert")],m.prototype,"onBeforePasteInsert",null),h([o.autobind],m.prototype,"__generateForm",null),s.pluginSystem.add("anchor",m)},50712:function(e,t,i){var n=i(6441);i(24526),n.Config.prototype.controls.anchor={popup:(e,t,i)=>e.e.fire("generateAnchorForm.anchor",null,i),tooltip:"Insert anchor"},n.Config.prototype.popup.anchor=(e,t,i)=>e.e.fire("generateAnchorForm.anchor",t,i)},93183:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(23282),a=i(50911),l=i(45124);i(32496);var c=i(11338),u=i(14630),d=i(63785);class h extends a.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,r=i.selection;if(r.isFocused()||r.focus(),!r.isInsideArea)return;if((0,c.checkNotCollapsed)(i))return i.e.fire("backSpaceAfterDelete",e),!1;let a=r.range,d=i.createInside.text(n.INVISIBLE_SPACE);try{if(o.Dom.safeInsertNode(a,d),!o.Dom.isOrContains(i.editor,d))return;let c=o.Dom.closest(d,e=>o.Dom.isElement(e)&&e.hasAttribute("contenteditable")&&!o.Dom.isContentEditable(e.parentNode,i.editor),i.editor);if(c&&r.cursorInTheEdge(e,c,d)||i.e.fire("backSpaceBeforeCases",e,d))return!1;(0,l.moveNodeInsideStart)(i,d,e);let h=i.o.delete.disableCases;if(u.casesMap.some(([o,r])=>{if(!(h&&h.has(o))&&(0,s.isFunction)(r)&&r(i,d,e,t))return n.IS_PROD,!0}))return!1}catch(e){throw n.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,d),this.moveCaretToTextBefore(d),this.safeRemoveEmptyNode(d)}return!1}moveCaretToTextBefore(e){var t,i;let{jodit:n}=this,{range:r}=n.s;if(!e.parentNode)return;let s=n.ed.createRange();if(s.selectNode(e),!r.collapsed||!s.isPointInRange(r.startContainer,r.startOffset))return;let a=e.previousSibling;for(;o.Dom.isText(a)&&!/\S|\u00A0/.test(a.data);)a=a.previousSibling;let l=o.Dom.isText(a)?a:(0,d.findMostNestedNeighbor)(e,!1,n.editor,!0),c=o.Dom.closest(l,"a",n.editor);o.Dom.isText(l)&&o.Dom.isContentEditable(l,n.editor)&&(!c||o.Dom.isOrContains(c,e))&&o.Dom.closest(l,o.Dom.isBlock,n.editor)===o.Dom.closest(e,o.Dom.isBlock,n.editor)&&(r.setStart(l,null!=(i=null==(t=l.nodeValue)?void 0:t.length)?i:0),r.collapse(!0),n.s.selectRange(r))}safeRemoveEmptyNode(e){var t,i,r;let{range:s}=this.j.s;o.Dom.isText(e)&&e.nodeValue!==n.INVISIBLE_SPACE&&(null==(t=e.nodeValue)?void 0:t.startsWith(n.INVISIBLE_SPACE))?e.deleteData(0,n.INVISIBLE_SPACE.length):(s.startContainer===e&&(e.previousSibling?o.Dom.isText(e.previousSibling)?s.setStart(e.previousSibling,null!=(r=null==(i=e.previousSibling.nodeValue)?void 0:i.length)?r:0):s.setStartAfter(e.previousSibling):e.nextSibling&&(o.Dom.isText(e.nextSibling)?s.setStart(e.nextSibling,0):s.setStartBefore(e.nextSibling)),s.collapse(!0),this.j.s.selectRange(s)),o.Dom.safeRemove(e))}}h.requires=["hotkeys"],r.pluginSystem.add("backspace",h)},62845:function(e,t,i){i.d(t,{checkJoinNeighbors:function(){return s}});var n=i(82758),o=i(2748),r=i(63785);function s(e,t,i){return function e(t,i,s,h){if(function(e,t,i){let n=o.Dom.findNotEmptySibling(t,i);if(!u(e,n))return!1;let s=(0,r.getMoveFilter)(e);if(i)for(let e=t;e&&!o.Dom.isBlock(e);){let t=e.nextSibling;if(o.Dom.isTag(e,"br")){o.Dom.safeRemove(e);break}s(e)?o.Dom.append(n,e):o.Dom.safeRemove(e),e=t}else{let t=o.Dom.findNotEmptySibling(n,!1);!t||o.Dom.isBlock(t)||o.Dom.isTag(t,"br")||o.Dom.after(n,e.createInside.element("br")),o.Dom.unwrap(n)}return e.s.setCursorBefore(t),!0}(t,i,s))return!0;let p=o.Dom.findNotEmptySibling(i,s);if(u(t,function(e,t){var i;let n=e;for(;o.Dom.isElement(n)&&!o.Dom.isBlock(n);){let e=Array.from(n.childNodes).filter(e=>!o.Dom.isEmptyTextNode(e));n=null!=(i=t?e[e.length-1]:e[0])?i:null}return n===e?null:n}(p,s))&&a(p,t.editor))return e(t,i,s,h);let f=i,m=f;for(;f&&!o.Dom.findNotEmptySibling(f,s)&&f.parentElement!==t.editor;)m=f=f.parentElement;if(o.Dom.isElement(m)&&o.Dom.isContentEditable(m,t.editor)){var g,v;let u,p,f,b;if(o.Dom.up(i,o.Dom.isCell,m,!0))return!1;let y=o.Dom.findNotEmptySibling(m,s);if(y&&(a(o.Dom.furthest(i,e=>o.Dom.isElement(e)&&!o.Dom.isBlock(e)&&!o.Dom.isOrContains(e,y),t.editor),t.editor)||a(y,t.editor)))return e(t,i,s,h);if(o.Dom.isTag(y,"br"))return o.Dom.safeRemove(y),t.s.setCursorBefore(i),!0;if(s&&o.Dom.isTag(y,"table"))return t.s.setCursorBefore(i),!0;if(o.Dom.isElement(y)&&!o.Dom.isContentEditable(y,t.editor))return!1;let _=(g=m,(u=o.Dom.up(i,o.Dom.isBlock,g))?o.Dom.isLeaf(u)&&u.parentElement?u.parentElement:u:g);if(!h&&y&&function(e,t,i,r,s){if(s||o.Dom.isTag(r,"table")||o.Dom.isTag(r,n.INSEPARABLE_TAGS)||!o.Dom.isContentEditable(r,e.editor))return!1;let a=o.Dom.up(t,o.Dom.isBlock,i,!0),u=l(r,!1,e.editor);if(!a||!u||!o.Dom.isContentEditable(u,e.editor)||!(o.Dom.isLeaf(a)||o.Dom.isLeaf(u))||o.Dom.isLeaf(a.parentElement)||o.Dom.isLeaf(u.parentElement)||c(a)===c(u))return!1;let d=a.parentElement;o.Dom.isLeaf(a)&&o.Dom.isLeaf(u)?o.Dom.before(u,a):o.Dom.isLeaf(a)?o.Dom.before(u,function(e){let t=e.parentElement,i=t.cloneNode(!1),n=Array.from(t.children).indexOf(e);if(n&&(i.removeAttribute("id"),o.Dom.isTag(t,"ol"))){let e=parseInt(t.getAttribute("start")||"1",10)||1;i.setAttribute("start",e+n+"")}return o.Dom.append(i,e),i}(a)):o.Dom.before(u.parentElement,a);let h=d;for(;h&&h!==e.editor&&o.Dom.isEmpty(h);){let e=h.parentElement;o.Dom.safeRemove(h),h=e}return!0}(t,i,_,y,s))return e(t,i,s,!0)||t.s.setCursorBefore(i),!0;if(y&&(function(e,t,i,s,a){if(a||!(o.Dom.isList(i)||o.Dom.isList(s)))return!1;let l=o.Dom.up(t,o.Dom.isBlock,i,!0),c=o.Dom.isList(s)?s.firstElementChild:s;if(!l||!c||o.Dom.isTag(c,n.INSEPARABLE_TAGS)||o.Dom.isTag(c,"table"))return!1;if(!o.Dom.isEmpty(c)){let t=[];for(let e=c.firstChild;e&&!o.Dom.isBlock(e);e=e.nextSibling)t.push(e);if(!t.length)return!1;let i=(0,r.getMoveFilter)(e);t.forEach(e=>i(e)?o.Dom.append(l,e):o.Dom.safeRemove(e))}let u=c;for(;u&&u!==e.editor&&o.Dom.isEmpty(u);){let e=u.parentElement;o.Dom.safeRemove(u),u=e}return!0}(t,i,_,y,s)||(v=y,p=o.Dom.isTag(v,n.LIST_TAGS),f=o.Dom.isTag(_,n.LIST_TAGS),b=(e,t)=>t?e.firstElementChild:e.lastElementChild,f?(v=t.createInside.element(t.o.enterBlock),o.Dom.before(_,v),d(t,b(_,s),v,s)):!!v&&!!p&&!f&&d(t,_,b(v,!s),s))||function(e,t,i,n){if(o.Dom.isBlock(i)||!o.Dom.isBlock(t)||o.Dom.isList(t)||t.parentNode!==i.parentNode||Array.from(t.childNodes).some(e=>o.Dom.isBlock(e)))return!1;if(n){let i=o.Dom.findNotEmptySibling(t,!1);return!i||o.Dom.isBlock(i)||o.Dom.isTag(i,"br")||o.Dom.after(t,e.createInside.element("br")),o.Dom.unwrap(t),!0}let s=(0,r.getMoveFilter)(e);for(let e=i;e&&!o.Dom.isBlock(e);){let i=e.nextSibling;if(o.Dom.isTag(e,"br")){o.Dom.safeRemove(e);break}s(e)?o.Dom.append(t,e):o.Dom.safeRemove(e),e=i}return!0}(t,_,y,s)||d(t,_,l(function(e,t){if(!o.Dom.isTag(e,"table"))return e;let i=[];return o.Dom.each(e,e=>{o.Dom.isCell(e)&&i.push(e)}),i.length?i[t?i.length-1:0]:null}(y,s),s,t.editor),s)))return t.s.setCursorBefore(i),!0}return!1}(e,t,i,!1)}function a(e,t){if(!o.Dom.isElement(e)||o.Dom.isBlock(e))return!1;let i=e=>o.Dom.isBlock(e)&&!o.Dom.isTag(e,n.NO_EMPTY_TAGS);Array.from(e.childNodes).forEach(e=>a(e,t));let r=Array.from(e.childNodes);if(!r.some(i))return!1;let s=null;for(let l of r){if(!i(l)){s||o.Dom.isEmptyTextNode(l)||(s=e.cloneNode(!1),o.Dom.before(l,s)),s&&o.Dom.append(s,l);continue}if(s=null,o.Dom.isTag(l,n.INSEPARABLE_TAGS)||!o.Dom.isContentEditable(l,t))continue;let r=e.cloneNode(!1);o.Dom.moveContent(l,r),o.Dom.append(l,r),a(r,t)}return o.Dom.unwrap(e),!0}function l(e,t,i){let r=e;for(;r;){let e=t?r.lastChild:r.firstChild,s=e&&o.Dom.isEmptyTextNode(e)?o.Dom.findNotEmptySibling(e,t):e;if(!o.Dom.isBlock(s)||o.Dom.isTag(s,n.INSEPARABLE_TAGS)||o.Dom.isTag(s,"table")||!o.Dom.isContentEditable(s,i))break;r=s}return r}function c(e){let t=e.parentElement;for(;o.Dom.isList(t)||o.Dom.isLeaf(t);)t=t.parentElement;return t}function u(e,t){return o.Dom.isElement(t)&&o.Dom.isBlock(t)&&!o.Dom.isList(t)&&!o.Dom.isTag(t,"table")&&!o.Dom.isCell(t)&&o.Dom.isContentEditable(t,e.editor)&&!Array.from(t.childNodes).some(e=>o.Dom.isBlock(e))}function d(e,t,i,n){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!n,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&o.Dom.isEmpty(s);){let e=s.parentElement;o.Dom.safeRemove(s),s=e}return!0}return!1}},91748:function(e,t,i){i.d(t,{checkJoinTwoLists:function(){return s}});var n=i(2748),o=i(37790),r=i(63785);function s(e,t,i){let s=n.Dom.findSibling(t,i),a=n.Dom.findSibling(t,!i);if(!n.Dom.closest(t,n.Dom.isElement,e.editor)&&n.Dom.isList(s)&&n.Dom.isList(a)&&n.Dom.isTag(s.lastElementChild,"li")&&n.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,u=s.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?n.Dom.prepend:n.Dom.append,d,t),n.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),n.Dom.safeRemove(a),(0,o.call)(i?n.Dom.append:n.Dom.prepend,u,t),(0,o.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){i.d(t,{checkNotCollapsed:function(){return n}});function n(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}},73792:function(e,t,i){i.d(t,{checkRemoveChar:function(){return function e(t,i,c,u,d=!1){var h,p;let f,m=c?-1:1,g=o.Dom.sibling(i,!c),v=o.Dom.sibling(i,c),b=null,y=!1;for(v||(v=a(i,c,t.editor));v&&(o.Dom.isText(v)||o.Dom.isInlineBlock(v));){for(;o.Dom.isInlineBlock(v);)v=c?null==v?void 0:v.lastChild:null==v?void 0:v.firstChild;if(!v||o.Dom.isBlock(v))break;if(null==(h=v.nodeValue)?void 0:h.length){if(d&&l(function(e,t){let i=(0,r.toArray)(e),o=t?-1:1,s=t?i.length-1:0;for(;i[s]===n.INVISIBLE_SPACE;)s+=o;return i[s]}(v.nodeValue,c)))break;f=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?l-1:0;if(a[c]===n.INVISIBLE_SPACE)for(;a[c]===n.INVISIBLE_SPACE;)c+=i;let u=a[c];if(a[c+i]===n.INVISIBLE_SPACE){for(c+=i;a[c]===n.INVISIBLE_SPACE;)c+=i;c+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),function(e,t,i){var s;if(!e||!o.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=n.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),u}(v,c,m,g),!v.nodeValue.length&&o.Dom.isInlineBlock(v.parentNode)&&(v.nodeValue=n.INVISIBLE_SPACE)}if((null==(p=v.nodeValue)?void 0:p.length)||(b=v),!(0,r.isVoid)(f)&&f!==n.INVISIBLE_SPACE){(function(t,i,n,s,a,c){(0,r.call)(t?o.Dom.after:o.Dom.before,i,n);let u="word"===s&&!l(a);("sentence"===s||u||"word"===s&&t)&&e(c,n,t,s,u&&t)})(c,v,i,u,f,t),y=!0;break}let s=a(v,c,t.editor);b&&(o.Dom.safeRemove(b),b=null),v=s}return b&&o.Dom.safeRemove(b),y&&(function(e){let t=e.parentElement;for(;t&&o.Dom.isInlineBlock(t)&&o.Dom.isTag(t,"a");){let i=t.parentElement;o.Dom.isEmpty(t)&&(o.Dom.after(t,e),o.Dom.safeRemove(t)),t=i}}(i),(0,s.addBRInsideEmptyBlock)(t,i),t.s.setCursorBefore(i),o.Dom.isTag(i.previousSibling,"br")&&!o.Dom.findNotEmptySibling(i,!1)&&o.Dom.after(i,t.createInside.element("br"))),y}}});var n=i(82758),o=i(22732),r=i(21537),s=i(63785);function a(e,t,i){let n=o.Dom.sibling(e,t);return!n&&e.parentNode&&e.parentNode!==i&&(n=(0,s.findMostNestedNeighbor)(e,!t,i,!0))&&o.Dom.closest(e,o.Dom.isBlock,i)!==o.Dom.closest(n,o.Dom.isBlock,i)?null:n}function l(e){return" "===e||e===n.NBSP_SPACE}},87536:function(e,t,i){i.d(t,{checkRemoveContentNotEditable:function(){return a}});var n=i(22732),o=i(21537),r=i(45124),s=i(62845);function a(e,t,i){let a=t,c=n.Dom.findSibling(a,i);for(;!c&&a.parentElement&&a.parentElement!==e.editor&&!n.Dom.isCell(a.parentElement);)if(a=a.parentElement,c=n.Dom.findSibling(a,i),i&&n.Dom.isLeaf(a)&&!(n.Dom.isLeaf(c)&&l(e,c)))return!1;if(l(e,c)){if(n.Dom.isBlock(c)){let o=!(i&&n.Dom.isLeaf(c));n.Dom.safeRemove(c),o&&(0,s.checkJoinNeighbors)(e,t,i)}else(0,o.call)(i?n.Dom.before:n.Dom.after,c,t),n.Dom.safeRemove(c),(0,r.moveNodeInsideStart)(e,t,i);return(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0}return!1}function l(e,t){return n.Dom.isElement(t)&&!n.Dom.isContentEditable(t,e.editor)}},12474:function(e,t,i){i.d(t,{checkRemoveEmptyNeighbor:function(){return o}});var n=i(2748);function o(e,t,i){let o=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!o)return!1;let r=n.Dom.findNotEmptySibling(o,i);return!!(r&&n.Dom.isEmpty(r))&&(n.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},58940:function(e,t,i){i.d(t,{checkRemoveEmptyParent:function(){return s}});var n=i(82758),o=i(22732),r=i(91748);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!c||!o.Dom.isEmpty(c))return!1;do if(c&&o.Dom.isEmpty(c)&&!o.Dom.isCell(c)){o.Dom.after(c,t);let i=o.Dom.closest(c,e=>o.Dom.isElement(e)&&e!==c,e.editor);o.Dom.safeRemove(c),s=!0,c=i}else break;while(c)if(s&&(0,r.checkJoinTwoLists)(e,t,i))return!0;let u=o.Dom.findNotEmptyNeighbor(t,i,e.editor);return!u||o.Dom.isText(u)||o.Dom.isTag(u,n.INSEPARABLE_TAGS)?a(t):l(u,!i),s}},56825:function(e,t,i){i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var n=i(82758),o=i(2748),r=i(58940);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!!(o.Dom.isElement(s)&&(o.Dom.isTag(s,n.INSEPARABLE_TAGS)||o.Dom.isEmpty(s)))&&(o.Dom.safeRemove(s),o.Dom.isTag(s,"br")&&!o.Dom.findNotEmptySibling(t,!1)&&o.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),o.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},90240:function(e,t,i){i.d(t,{checkTableCell:function(){return o}});var n=i(2748);function o(e,t){let i=t.parentElement;return!!n.Dom.isCell(i)}},68034:function(e,t,i){i.d(t,{checkUnwrapFirstListItem:function(){return r}});var n=i(2748),o=i(43555);function r(e,t,i){var r;let s=n.Dom.closest(t,n.Dom.isElement,e.editor),{s:a}=e;if(n.Dom.isLeaf(s)&&(null==(r=null==s?void 0:s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,o.call)(i?n.Dom.before:n.Dom.after,r,l),n.Dom.moveContent(s,l),n.Dom.safeRemove(s),n.Dom.isEmpty(r)&&n.Dom.safeRemove(r),(0,o.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},70921:function(e,t,i){i.d(t,{checkUnwrapListItem:function(){return o}});var n=i(2748);function o(e,t,i){if(!i)return!1;let o=n.Dom.closest(t,"li",e.editor),r=o?o.parentElement:null;if(!o||!n.Dom.isList(r)||!o.previousElementSibling||n.Dom.isEmpty(o)||Array.from(o.childNodes).some(e=>n.Dom.isBlock(e))||!e.s.cursorInTheEdge(!0,o))return!1;let s=e.createInside.element(e.o.enterBlock);if(n.Dom.after(r,s),o.nextElementSibling){let e=r.cloneNode(!1);for(e.removeAttribute("id");o.nextSibling;)n.Dom.append(e,o.nextSibling);if(n.Dom.isTag(r,"ol")){let t=parseInt(r.getAttribute("start")||"1",10)||1;e.setAttribute("start",t+r.children.length-1+"")}n.Dom.after(s,e)}return n.Dom.moveContent(o,s),n.Dom.safeRemove(o),e.s.setCursorBefore(t),!0}},14630:function(e,t,i){var n=i(62845),o=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),u=i(90240),d=i(68034),h=i(70921);let p=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",o.checkJoinTwoLists],["unwrap-list-item",h.checkUnwrapListItem],["join-neighbors",n.checkJoinNeighbors],["unwrap-first-list-item",d.checkUnwrapFirstListItem]];p.map(([,e])=>e),i.d(t,["casesMap",0,p])},32496:function(e,t,i){var n=i(82758);i(6441).Config.prototype.delete={hotkeys:{delete:n.IS_MAC?["delete"]:["delete","cmd+backspace"],deleteWord:n.IS_MAC?["ctrl+delete"]:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:n.IS_MAC?[]:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(e,t,i){i.d(t,{addBRInsideEmptyBlock:function(){return s},findMostNestedNeighbor:function(){return o},getMoveFilter:function(){return r}});var n=i(22732);function o(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=n.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&n.Dom.isElement(a)&&!n.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a)return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}function s(e,t){t.parentElement!==e.editor&&n.Dom.isBlock(t.parentElement)&&n.Dom.each(t.parentElement,n.Dom.isEmptyTextNode)&&n.Dom.after(t,e.createInside.element("br"))}},41107:function(e,t,i){var n=i(580),o=i(21537),r=i(12153),s=i(6441);i(73674);var a=i(820),l=i(53651),c=i(16020),u=i(89758),d=i(98527),h=i(51855);n.pluginSystem.add("bold",function(e){let t=t=>{let i,n=s.Config.defaultOptions.controls[t],r={...n.css};Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,o.isArray)(r[e])?r[e][0]:r[e]});let a=n.tags?n.tags[0]:void 0;return e.s.commitStyle({element:a,exclude:"sub"===a?["sup"]:"sup"===a?["sub"]:[]}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",a.default).set("italic",l.default).set("strikethrough",c.default).set("subscript",u.default).set("superscript",d.default).set("underline",h.default)},73674:function(e,t,i){var n=i(6441);n.Config.prototype.controls.subscript={tags:["sub"],tooltip:"Subscript"},n.Config.prototype.controls.superscript={tags:["sup"],tooltip:"Superscript"},n.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},n.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},n.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},n.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 4h7a4 4 0 0 1 0 8H6V4Zm0 8h8a4 4 0 0 1 0 8H6v-8Z"/> </g> </svg> '},53651:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M10 4h9M5 20h9M15 4 9 20"/> </g> </svg> '},16020:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M17 6c-1-1.5-2.5-2-5-2-3 0-5 1.5-5 4 0 1.8 1.5 3 5 4s5 2.2 5 4c0 2.5-2 4-5 4-2.5 0-4-.5-5-2M3 12h18"/> </g> </svg> '},89758:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 4 9 12M12 4 3 16M16 16a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},98527:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 8 9 12M12 8 3 20M16 4a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},51855:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 3v8a6 6 0 0 0 12 0V3M4 21h16"/> </g> </svg> '},71255:function(e,t,i){var n=i(2748),o=i(580),r=i(37790),s=i(50911),a=i(12153),l=i(6441),c=i(31151);l.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){let i=e.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&o.classList.contains(t.control.args[0].toString()))}return!1},isActive(e,t){let i=e.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{o.classList.contains(e)&&(r=!0)}),!!(o&&o!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class u extends s.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,n)=>(e.s.commitStyle({attributes:{class:n}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}o.pluginSystem.add("classSpan",u),a.Icon.set("class-span",c.default)},31151:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 4H5v16h3m8-16h3v16h-3M9 15l3-7 3 7m-5-2h4"/> </g> </svg> '},82439:function(e,t,i){var n=i(65478),o=i(2748),r=i(70071),s=i(580),a=i(86518),l=i(20356);i(46776);var c=i(80973),u=i(59498),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends l.Plugin{afterInit(){this.onChangeCleanHTML()}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}onInputRemovePlaceholderBr(e){var t;this.isEditMode&&("input"!==e.type||!e.isComposing&&(null==(t=e.inputType)?void 0:t.startsWith("insert")))&&(0,u.removePlaceholderBr)(this.j)}startWalker(){let{jodit:e}=this,t=(0,u.getHash)(this.j.o.cleanHTML.allowTags),i=(0,u.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",n=>(0,u.visitNodeWalker)(e,n,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,u.removeFormatForWord)(this.j):(0,u.removeFormatForSelection)(this.j),!1}onAfterSetNativeEditorValue(){(0,a.safeHTML)(this.j.editor,this.j.o.cleanHTML)}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),this.__replaceOldTags(t),e.value=t.innerHTML,(0,a.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),o.Dom.safeRemove(i),!1}__replaceOldTags(e){let{replaceOldTags:t,disableCleanFilter:i}=this.j.o.cleanHTML;!t||(null==i?void 0:i.has("replaceOldTags"))||o.Dom.each(e,e=>{(0,c.replaceOldTags)(this.j,e,!1)})}onAfterGetValueFromEditor(e){if(this.__singleQuotesInFontFamily(e),this.__removeTrailingBr(e),!this.j.o.cleanHTML.collapseEmptyValueToEmptyString)return;let t=/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.exec(e.value.trim());t&&/^(p|div|h[1-6]|blockquote|pre)$/i.test(t[1])&&(e.value="")}__removeTrailingBr(e){if(!this.j.o.cleanHTML.removeTrailingBr||!/<br/i.test(e.value))return;let t=this.j.c.div();t.innerHTML=e.value,[t,...t.querySelectorAll("p, div, li, td, th, h1, h2, h3, h4, h5, h6, blockquote")].forEach(e=>{var t;let i=e.lastChild;if(!o.Dom.isTag(i,"br"))return;let n=i.previousSibling;!n||o.Dom.isTag(n,"br")||(!o.Dom.isText(n)||(null==(t=n.nodeValue)?void 0:t.trim())||n.previousSibling)&&o.Dom.safeRemove(i)}),e.value=t.innerHTML}__singleQuotesInFontFamily(e){this.j.o.cleanHTML.singleQuotesInFontFamily&&e.value.includes("&quot;")&&(e.value=e.value.replace(/\sstyle="([^"]*)"/gi,(e,t)=>{if(!t.includes("&quot;")||!/font-family/i.test(t))return e;let i=t.replace(/font-family\s*:(?:&quot;|[^;])*/gi,e=>e.includes("'")?e:e.replace(/&quot;/g,"'"));return e.replace(t,i)}))}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,a.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.j.e.off("safeHTML",this.onSafeHTML).off("beforeSetNativeEditorValue",this.onBeforeSetNativeEditorValue).off("afterSetNativeEditorValue",this.onAfterSetNativeEditorValue),this.walker.destruct()}constructor(e){super(e),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new r.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout}),e.e.on("safeHTML",this.onSafeHTML).on("beforeSetNativeEditorValue",this.onBeforeSetNativeEditorValue).on("afterSetNativeEditorValue",this.onAfterSetNativeEditorValue)}}d([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),d([(0,n.watch)([":input","jodit.editor:compositionend"])],h.prototype,"onInputRemovePlaceholderBr",null),d([(0,n.hook)("ready")],h.prototype,"startWalker",null),d([(0,n.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),d([n.autobind],h.prototype,"onAfterSetNativeEditorValue",null),d([n.autobind],h.prototype,"onBeforeSetNativeEditorValue",null),d([(0,n.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),d([n.autobind],h.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",h)},46776:function(e,t,i){var n=i(6441);n.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,singleQuotesInFontFamily:!0,removeTrailingBr:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},n.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"}},83447:function(e,t,i){i.d(t,{getHash:function(){return r}});var n=i(70799),o=i(49055);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,n.isString)(e)?(e.split(i).map(e=>{e=(0,o.trim)(e);let n=t.exec(e),a={};if(n){let e=n[2].split(i);n[1]&&(e.forEach(e=>{e=(0,o.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[n[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},59498:function(e,t,i){i.d(t,{getHash:function(){return n.getHash},removeFormatForSelection:function(){return o.removeFormatForSelection},removeFormatForWord:function(){return r.removeFormatForWord},removePlaceholderBr:function(){return s.removePlaceholderBr},visitNodeWalker:function(){return a.visitNodeWalker}});var n=i(83447);i(84272);var o=i(42312),r=i(70464),s=i(56385),a=i(39516)},15908:function(e,t,i){i.d(t,{isAllowedMediaEmbed:function(){return r}});let n=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,o=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function r(e){return n.test(e)||o.test(e)}},84272:function(e,t,i){i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var n=i(82758),o=i(2748);function r(e,t){let{s:i}=e,n=t;if(!n){n=e.createInside.fake();let{range:t}=i;o.Dom.safeInsertNode(t,n),t.collapse()}let r=o.Dom.furthest(n,s,e.editor);if(r)if(i.cursorOnTheLeft(r))o.Dom.before(r,n);else if(i.cursorOnTheRight(r))o.Dom.after(r,n);else{let e=i.splitSelection(r);e&&o.Dom.after(e,n)}t||(i.setCursorBefore(n),o.Dom.safeRemove(n))}function s(e){return o.Dom.isInlineBlock(e)&&!o.Dom.isTag(e,n.INSEPARABLE_TAGS)}},42312:function(e,t,i){i.d(t,{removeFormatForSelection:function(){return s}});var n=i(2748),o=i(43555),r=i(84272);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),u=s.fake(),d=s.fake();l.collapse(!0),c.collapse(!1),n.Dom.safeInsertNode(l,u),n.Dom.safeInsertNode(c,d),a.setStartBefore(u),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let h=[];n.Dom.between(u,d,e=>{(0,r.isInlineBlock)(e)&&!n.Dom.isTag(e,"a")&&h.push(e),n.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),h.forEach(e=>n.Dom.unwrap(e));let p=(e,t)=>{if(!n.Dom.findNotEmptySibling(e,t)){let n=e.parentNode;if(n&&n!==i&&(0,o.attr)(n,"style"))return(0,o.attr)(n,"style",null),p(n,t),!0}};p(u,!0)&&p(d,!1),a.setStartAfter(u),a.setEndBefore(d),t.selectRange(a),n.Dom.safeRemove(u),n.Dom.safeRemove(d)}},70464:function(e,t,i){i.d(t,{removeFormatForWord:function(){return s}});var n=i(82758),o=i(2748),r=i(42312);function s(e){let{range:t}=e.s,i=o.Dom.closest(t.startContainer,o.Dom.isBlock,e.editor);if(!i)return;let n=l(i),s=n.map(e=>o.Dom.isText(e)?e.nodeValue:" ").join(""),d=function(e,t){let i=0;for(let n of e){if(n===t.startContainer)return i+t.startOffset;let e=c(n);if(t.comparePoint(n,o.Dom.isText(n)?e:0)>0)break;i+=e}return i}(n,t);if(!a(s[d-1])||!a(s[d]))return;let h=d,p=d;for(;a(s[h-1]);)h-=1;for(;a(s[p]);)p+=1;let f=e.s.createRange();f.setStart(...u(n,h,!0)),f.setEnd(...u(n,p,!1)),e.s.selectRange(f),(0,r.removeFormatForSelection)(e);let m=e.s.createRange();m.setStart(...u(l(i),d,!1)),e.s.selectRange(m)}function a(e){return!!(e&&e!==n.INVISIBLE_SPACE&&/\S/.test(e))}function l(e){let t=[];return o.Dom.each(e,i=>{!o.Dom.closest(i,o.Dom.isBlock,e)&&(o.Dom.isText(i)||o.Dom.isTag(i,n.INSEPARABLE_TAGS))&&t.push(i)}),t}function c(e){var t,i;return o.Dom.isText(e)?null!=(i=null==(t=e.nodeValue)?void 0:t.length)?i:0:1}function u(e,t,i){var n,r;let s=0,a=null;for(let n of e){let e=c(n);if(o.Dom.isText(n)&&(t<s+e||!i&&t===s+e))return[n,t-s];o.Dom.isText(n)&&(a=n),s+=e}return[a,null!=(r=null==(n=null==a?void 0:a.nodeValue)?void 0:n.length)?r:0]}},56385:function(e,t,i){i.d(t,{removePlaceholderBr:function(){return a}});var n=i(82758),o=i(2748),r=i(49055);function s(e){let t=e.lastChild;for(;o.Dom.isText(t)&&!t.nodeValue;)t=t.previousSibling;return t}function a(e){var t;let i=o.Dom.closest(e.s.current(),o.Dom.isBlock,e.editor);if(!i||!(0,r.trim)(null!=(t=i.textContent)?t:""))return;let a=s(i);for(;o.Dom.isElement(a)&&!o.Dom.isTag(a,n.INSEPARABLE_TAGS)&&!o.Dom.isBlock(a);)a=s(a);!o.Dom.isTag(a,"br")||o.Dom.each(i,e=>{if(e!==a&&o.Dom.isElement(e)&&(o.Dom.isTag(e,n.INSEPARABLE_TAGS)||o.Dom.isBlock(e)||o.Dom.isHTMLElement(e)&&!e.isContentEditable))return!1})&&o.Dom.safeRemove(a)}},82558:function(e,t,i){i.d(t,{allowAttributes:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i,r){let s=r&&n.Dom.isElement(t)&&r[t.nodeName];if(r&&n.Dom.isElement(t)&&!0!==s){if(!s)return i;let e=t.attributes;if(e&&e.length){let n=[];for(let t=0;t<e.length;t+=1){let i=s[e[t].name];i&&(!0===i||i===e[t].value)||n.push(e[t].name)}n.length&&(i=!0),n.forEach(e=>{(0,o.attrRaw)(t,e,null)})}}return i}},1962:function(e,t,i){i.d(t,{convertUnsafeEmbeds:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!n.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,o.attr)(t,"data")||(0,o.attr)(t,"src")||(0,o.attr)(t,"movie")||"";if(!a)return n.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,o.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,o.attr)(t,"width"),height:(0,o.attr)(t,"height")}),n.Dom.replace(t,l,void 0,!1,!0),!0}},39433:function(e,t,i){i.d(t,{fillEmptyParagraph:function(){return s}});var n=i(82758),o=i(2748);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&o.Dom.isBlock(t)&&o.Dom.isEmpty(t,n.INSEPARABLE_TAGS)&&!o.Dom.isTag(t,r)){let i=e.createInside.element("br");return o.Dom.append(t,i),!0}return i}},45235:function(e,t,i){i.r(t),i.d(t,{allowAttributes:function(){return n.allowAttributes},convertUnsafeEmbeds:function(){return o.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return u.sandboxIframesInContent},sanitizeAttributes:function(){return d.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var n=i(82558),o=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),u=i(85978),d=i(384),h=i(15583),p=i(28800)},53392:function(e,t,i){i.d(t,{removeEmptyTextNode:function(){return o}});var n=i(2748);function o(e,t,i,o,r,s){return n.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),n.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){i.d(t,{removeInvTextNodes:function(){return r}});var n=i(82758),o=i(2748);function r(e,t,i,r,s,a){if(a===t||!o.Dom.isText(t)||null==t.nodeValue||!(0,n.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=o.Dom.furthest(a,o.Dom.isBlock,e.editor);return!l||o.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},80973:function(e,t,i){i.d(t,{replaceOldTags:function(){return o}});var n=i(2748);function o(e,t,i){let o=function(e,t,i){if(!i||!n.Dom.isHTMLElement(t))return t;let o=i[t.nodeName.toLowerCase()]||i[t.nodeName];if(o){let i=function(e,t){let{sel:i}=e.s;if(!(null==i?void 0:i.anchorNode)||!i.focusNode||!e.s.isFocused())return null;let{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=i;return n.Dom.isOrContains(t,o)||n.Dom.isOrContains(t,s)?e=>{i.setBaseAndExtent(o===t?e:o,r,s===t?e:s,a)}:null}(e,t),r=n.Dom.replace(t,o,e.createInside,!0,!1);return null==i||i(r),r}return t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==o||i}},95614:function(e,t,i){i.d(t,{safeLinksTarget:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!n.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,o.attr)(t,"target"))return i;let r=((0,o.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,o.attr)(t,"rel",r.join(" ")),!0):i}},85978:function(e,t,i){i.d(t,{sandboxIframesInContent:function(){return s}});var n=i(2748),o=i(29960),r=i(15908);function s(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(t)&&"IFRAME"===t.nodeName?(0,r.isAllowedMediaEmbed)((0,o.attr)(t,"src")||"")||t.hasAttribute("sandbox")?i:((0,o.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){i.d(t,{sanitizeAttributes:function(){return r}});var n=i(2748),o=i(21537);function r(e,t,i){if(!n.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,o.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},15583:function(e,t,i){i.d(t,{sanitizeStyles:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!n.Dom.isElement(t))return i;let s=(0,o.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],n=t["*"];if(!i&&!n)return null;let o=new Set;if(n)for(let e of n)o.add(e.toLowerCase());if(i)for(let e of i)o.add(e.toLowerCase());return o}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,o.attr)(t,"style",l||null),!0):i}},28800:function(e,t,i){i.d(t,{tryRemoveNode:function(){return l}});var n=i(82758),o=i(2748),r=i(49055),s=i(29960),a=i(15908);function l(e,t,i,l,c,u){return!function(e,t,i,l,c){if(!o.Dom.isText(t)){let e=t.nodeName.toUpperCase();if(l&&!l[e])return!0;let i="IFRAME"===e&&(0,a.isAllowedMediaEmbed)((0,s.attr)(t,"src")||"");if(!l&&c&&c[e]&&!i)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;let u=e.s.isCollapsed()?e.s.range.startContainer:null;return o.Dom.isElement(t)&&null!=t.nodeName.match(n.IS_INLINE)&&!o.Dom.isTemporary(t)&&!(t.hasAttribute("id")||"A"===t.nodeName&&t.hasAttribute("name"))&&0===(0,r.trimInv)(t.innerHTML).length&&(null==i||!o.Dom.isOrContains(t,i))&&(null==u||!o.Dom.isOrContains(t,u))}(e,t,u,l,c)?i:(o.Dom.safeRemove(t),!0)}},39516:function(e,t,i){i.d(t,{visitNodeWalker:function(){return s}});var n=i(82758),o=i(45235);let r=Object.keys(o);function s(e,t,i,s,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let u of r)if(!(c&&c.has(u))&&(l=(0,o[u])(e,t,l,i,s,a),n.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){var n=i(82758),o=i(33433),r=i(2748),s=i(580),a=i(21537);i(79419);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`).on(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`,t=>{var i;let o=function(e,t){if(!t||e.s.isCollapsed())return t;let i=e.s.range.commonAncestorContainer;r.Dom.isElement(i)||(i=i.parentElement);let n=t;for(;i&&i!==e.editor&&r.Dom.isElement(i)&&!r.Dom.isBlock(i);){let e=i.cloneNode(!1);e.innerHTML=n,n=e.outerHTML,i=i.parentElement}return n}(e,e.s.html),s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(n.TEXT_PLAIN,(0,a.stripTags)(o)),s.setData(n.TEXT_HTML,o)),e.buffer.set(n.CLIPBOARD_ID,o),e.e.fire("pasteStack",{html:o,action:e.o.defaultActionOnPaste||n.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==(i=null==e?void 0:e.events)||i.fire("afterCopy",o)})}destruct(e){var t,i;null==(t=(0,o.cached)(e,"buffer"))||t.set(n.CLIPBOARD_ID,""),null==(i=null==e?void 0:e.events)||i.off("."+n.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}s.pluginSystem.add("clipboard",l)},79419:function(e,t,i){var n=i(12153),o=i(6441),r=i(94775),s=i(23140),a=i(92699),l=i(10052);o.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},o.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},o.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Icon.set("copy",r.default).set("cut",s.default).set("paste",a.default).set("select-all",l.default)},94775:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="8" y="8" width="13" height="13" rx="2"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/> </g> </svg> '},23140:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="m8.2 8.2 12.3 12.3M8.2 15.8 20.5 3.5"/> </g> </svg> '},92699:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="5" width="16" height="16" rx="2"/><rect x="9" y="3" width="6" height="4" rx="1"/> </g> </svg> '},10052:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 6V3h3m4 0h4m4 0h3v3m0 4v4m0 4v3h-3m-4 0h-4m-4 0H3v-3m0-4v-4"/><rect x="7" y="7" width="10" height="10" rx="1"/> </g> </svg> '},46104:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3c-2 3.2-5.5 7-5.5 10a5.5 5.5 0 0 0 11 0c0-3-3.5-6.8-5.5-10Z"/> </g> <rect x="5" y="21" width="14" height="2" rx="1" fill="inherit" stroke="none"/> </svg> '},93079:function(e,t,i){var n=i(580),o=i(21537);i(21988),n.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,n)=>{var r;let s=(0,o.normalizeColor)(n)||"",a="background"===t?{backgroundColor:s}:{color:s},l=e.getInstance("Table",e.o).getAllSelectedCells();return l.length&&e.s.isCollapsed()?(l.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:a}})}),null==(r=e.s.sel)||r.removeAllRanges()):e.s.commitStyle({attributes:{style:a}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},21988:function(e,t,i){var n=i(2748),o=i(21537),r=i(12153),s=i(6441),a=i(92762),l=i(46104);function c(e,t,i){(0,o.css)(e,t,i),(0,o.attr)(e,"style")||(0,o.attr)(e,"style",null)}r.Icon.set("brush",l.default),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup(e,t,i){if(!(0,o.isJoditObject)(e))return;let n=e.getInstance("Table",e.o).getAllSelectedCells();if(!n.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,o=>{n.forEach(e=>{c(e,t,o)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,o.css)(n[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,o.dataBind)(t,"color"),r=(i,n)=>!!n&&n!==(0,o.css)(e.editor,i).toString()&&(t.state.icon.fill=n,!0);if(i){let e=(0,o.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=n.Dom.closest(s,n.Dom.isElement,e.editor)||e.editor,i=r("color",(0,o.css)(t,"color").toString()),a=r("background-color",(0,o.css)(t,"background-color").toString());if(i||a)return}t.state.icon.fill="",t.state.activated=!1},popup(e,t,i,r){let s="",l="",u,d=null;return t&&t!==e.editor&&n.Dom.isNode(t)&&(n.Dom.isElement(t)&&e.s.isCollapsed()&&!n.Dom.isTag(t,new Set(["br","hr"]))&&(d=t),n.Dom.up(t,e=>{if(n.Dom.isHTMLElement(e)){let t=(0,o.css)(e,"color",!0),i=(0,o.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),u=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{d?c(d,"backgroundColor",t):e.execCommand("background",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{d?c(d,"color",t):e.execCommand("forecolor",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(u=u.reverse()),(0,a.TabsWidget)(e,u,d)},exec(e,t,{button:i}){let r=(0,o.dataBind)(i,"color-mode"),s=(0,o.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&n.Dom.isNode(t)&&n.Dom.isElement(t))switch(r){case"color":c(t,"color",s);break;case"background":c(t,"backgroundColor",s)}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){var n=i(2748),o=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let u="copy-format",d=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],h=(e,t,i,n)=>{let o=(0,r.css)(i,t);return o===n[t]&&(o=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?h(e,t,i.parentNode,n):void 0),o};a.Config.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(u))e.buffer.delete(u),e.e.off(e.editor,"mouseup."+u);else{let i,o={},s=n.Dom.up(t,e=>e&&!n.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();n.Dom.append(e.editor,a),d.forEach(e=>{o[e]=(0,r.css)(a,e)}),a!==e.editor&&n.Dom.safeRemove(a);let l=(i={},s&&d.forEach(t=>{i[t]=h(e,t,s,o),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+u,()=>{e.buffer.delete(u);let t=e.s.current();t&&(n.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+u)}),e.buffer.set(u,!0)}i.update()}},isActive:e=>e.buffer.exists(u),tooltip:"Paint format"},o.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,o.extendLang)(c)}),s.Icon.set("copyformat",l.default)},57487:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="14" height="6" rx="1"/><path d="M17 6h4v7H11v3"/><rect x="9" y="16" width="4" height="6" rx="1"/> </g> </svg> '},63819:function(e){e.exports={"copy-format":"نسخ التنسيق"}},72392:function(e){e.exports={"copy-format":"Kopírovat formát"}},74551:function(e){e.exports={"copy-format":"Format kopierenт"}},2536:function(e){e.exports={"copy-format":"Copiar formato"}},52285:function(e){e.exports={"copy-format":"کپی کردن قالب"}},12117:function(e){e.exports={"copy-format":"Kopioi muotoilu"}},35140:function(e){e.exports={"copy-format":"Format de copie"}},28435:function(e){e.exports={"copy-format":"העתק עיצוב"}},98019:function(e){e.exports={"copy-format":"Formátum másolás"}},96457:function(e){e.exports={"copy-format":"salin format"}},23914:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return c},he:function(){return u},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return f},ko:function(){return m},mn:function(){return g},nl:function(){return v},pl:function(){return b},pt_br:function(){return y},ru:function(){return _},tr:function(){return w},zh_cn:function(){return k},zh_tw:function(){return S}});var n=i(63819),o=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),u=i(28435),d=i(98019),h=i(96457),p=i(33561),f=i(96545),m=i(52230),g=i(33307),v=i(71042),b=i(32172),y=i(39179),_=i(60629),w=i(68278),k=i(1172),S=i(4164)},33561:function(e){e.exports={"copy-format":"Copia il formato"}},96545:function(e){e.exports={"copy-format":"copyformat"}},52230:function(e){e.exports={"copy-format":"복사 형식"}},33307:function(e){e.exports={"copy-format":"Формат хуулах"}},71042:function(e){e.exports={"copy-format":"opmaak kopiëren"}},32172:function(e){e.exports={"copy-format":"format kopii"}},39179:function(e){e.exports={"copy-format":"Copiar formato"}},60629:function(e){e.exports={"copy-format":"Копировать формат"}},68278:function(e){e.exports={"copy-format":"Kopyalama Biçimi"}},1172:function(e){e.exports={"copy-format":"复制格式"}},4164:function(e){e.exports={"copy-format":"複製格式"}},66707:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(21537),a=i(49055),l=i(50911);let c=new Set(["img","table","jodit","iframe","hr"]),u=new Set(["pre","pre-wrap","break-spaces"]);function d(e,t){let i=0;for(;i<e.length&&" "===e.charAt(t?e.length-1-i:i);)i+=1;return 0===i?e:t?e.slice(0,e.length-i)+n.NBSP_SPACE.repeat(i):n.NBSP_SPACE.repeat(i)+e.slice(i)}function h(e,t){var i;return!e||o.Dom.isTag(e,"br")||o.Dom.isBlock(e)||o.Dom.isText(e)&&t.test(null!=(i=e.nodeValue)?i:"")}class p extends l.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,a.trim)(e.editor.textContent||"")&&!o.Dom.first(e.editor,e=>o.Dom.isTag(e,c))&&(!t||!o.Dom.closest(t,"table",e.editor))){o.Dom.detach(e.editor);let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(){let{jodit:e}=this;if(e.s.isCollapsed())return;e.s.expandSelection();let t=e.s.range;this.__moveEdgesIntoCells(t);let i=this.__clearSelectedCells(t);if(i&&t.collapsed)return e.s.selectRange(i),!1;t.deleteContents();let n=e.createInside.fake();t.insertNode(n);let r=o.Dom.findSibling(n,!0),s=o.Dom.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,s),this.__keepSpacesVisible(n),this.__keepSpacesVisibleBesideTable(n),t.setStartBefore(n),t.collapse(!0),this.__moveCursorInEditableSibling(e,r,n,t),this.__addBrInEmptyBlock(n,t),o.Dom.safeRemove(n),e.s.selectRange(null!=i?i:t),!1}__moveEdgesIntoCells(e){let{startContainer:t,startOffset:i,endContainer:n,endOffset:r}=e,s=o.Dom.isTag(t,"tr")?t.childNodes[i]:null,a=o.Dom.isTag(n,"tr")?n.childNodes[r-1]:null;o.Dom.isCell(s)&&e.setStart(s,0),o.Dom.isCell(a)&&e.setEnd(a,a.childNodes.length)}__clearSelectedCells(e){let{editor:t,createInside:i}=this.j,n=o.Dom.closest(e.startContainer,o.Dom.isCell,t),r=o.Dom.closest(e.endContainer,o.Dom.isCell,t);if(n===r)return null;let a=o.Dom.closest(n,"table",t),l=o.Dom.closest(r,"table",t),c=e.cloneRange();c.collapse(!0);let u=e.cloneRange();u.collapse(!1);let d=[],h=t=>{(0,s.toArray)(t.rows).flatMap(e=>(0,s.toArray)(e.cells)).filter(t=>e.intersectsNode(t)).forEach(t=>{let i=e.cloneRange();o.Dom.isOrContains(t,e.startContainer)||i.setStart(t,0),o.Dom.isOrContains(t,e.endContainer)||i.setEnd(t,t.childNodes.length),d.push([t,i])})};return a&&(h(a),a===l?e.collapse(!0):e.setStartAfter(a)),l&&l!==a&&(h(l),e.setEndBefore(l)),d.forEach(([e,t])=>{if(t.deleteContents(),o.Dom.isEmpty(e)){o.Dom.detach(e),o.Dom.append(e,i.element("br"));return}[c,u].filter(t=>o.Dom.isOrContains(e,t.startContainer)).forEach(e=>{let t=i.fake();e.insertNode(t),this.__keepSpacesVisible(t),e.setStartBefore(t),e.collapse(!0),o.Dom.safeRemove(t)})}),a?c:null}__moveContentInLeftSibling(e,t,i){if(t=this.__defineRightLeftBox(t),o.Dom.isTag(t,"table")){o.Dom.isBlock(i)&&o.Dom.isEmpty(i)&&o.Dom.safeRemove(i);return}if(!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)){let n=i.firstElementChild;if(!o.Dom.isEmpty(n)&&o.Dom.isBlock(t))for(o.Dom.append(t,e);n.firstChild&&!o.Dom.isBlock(n.firstChild);)o.Dom.append(t,n.firstChild);o.Dom.isEmpty(n)&&o.Dom.safeRemove(n),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i)}}__keepSpacesVisible(e){var t;let{jodit:i}=this,n=null!=(t=o.Dom.closest(e,o.Dom.isBlock,i.editor))?t:i.editor;if(u.has(i.ew.getComputedStyle(n).whiteSpace))return;let r=this.__findNeighbor(e,!0,n),s=this.__findNeighbor(e,!1,n);o.Dom.isText(r)&&h(s,/^ /)&&(r.nodeValue=d(r.nodeValue,!0)),o.Dom.isText(s)&&h(r,/ $/)&&(s.nodeValue=d(s.nodeValue,!1))}__keepSpacesVisibleBesideTable(e){let t=o.Dom.findNotEmptySibling(e,!0),i=o.Dom.findNotEmptySibling(e,!1),n=o.Dom.isTag(i,"table")?t:o.Dom.isTag(t,"table")?i:null;if(!o.Dom.isBlock(n)||o.Dom.isTag(n,"table"))return;let r=this.jodit.createInside.fake();n===t?o.Dom.append(n,r):n.insertBefore(r,n.firstChild),this.__keepSpacesVisible(r),o.Dom.safeRemove(r)}__findNeighbor(e,t,i){return(0,s.call)(t?o.Dom.prev:o.Dom.next,e,e=>{var t;return o.Dom.isText(e)?(0,s.trimInv)(null!=(t=e.nodeValue)?t:"").length>0:!o.Dom.isComment(e)&&!(o.Dom.isInlineBlock(e)&&e.firstChild)},i)}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t){let i=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let n=i.createInside.element("br");o.Dom.after(e,n),t.setStartBefore(n),t.collapse(!0)}}__moveCursorInEditableSibling(e,t,i,n){var r;if(!t||!o.Dom.isText(t)){let t=null!=(r=o.Dom.closest(i,o.Dom.isBlock,e.editor))?r:e.editor,s=o.Dom.prev(i,o.Dom.isText,t);s&&(n.setStartAfter(s),n.collapse(!0),o.Dom.safeRemove(i))}}}p.requires=["backspace"],r.pluginSystem.add("deleteCommand",p)},44586:function(e,t,i){i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){var n,o,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);var u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};(n=o||(o={}))[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING";class d extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>o.IDLE||!e||this.startDragging(e,t)}onDragStart(e){var t;if("dragstart"===e.type&&this.draggable)return!1;if(this.state>o.IDLE)return;let i=e.target;if(!this.dragList.length||!i)return;let n=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),r=s.Dom.furthest(i,n,this.j.editor)||(n(i)?i:null);r&&(s.Dom.isTag(r.parentElement,"a")&&r.parentElement.firstChild===r&&r.parentElement.lastChild===r&&(r=r.parentElement),this.startDragging(null!=(t=(0,l.getCaptionWrapper)(this.j,r))?t:r,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e),this.state=o.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,i;if(!this.draggable||this.state===o.IDLE)return;let n=e.clientX,r=e.clientY;if(this.state===o.WAIT_DRAGGING&&Math.sqrt(Math.pow(n-this.startX,2)+Math.pow(r-this.startY,2))<this.diffStep)return;this.state===o.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=o.DRAGGING),this.j.e.fire("hidePopup hideResizer");let c=this.__ghostOffset();if(!this.draggable.parentNode){let n=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX+c.left,top:e.clientY+c.top,width:null!=(t=null==n?void 0:n.offsetWidth)?t:100,height:null!=(i=null==n?void 0:n.offsetHeight)?i:100}),s.Dom.append((0,a.getContainer)(this.j,d),this.draggable)}(0,l.css)(this.draggable,{left:e.clientX+c.left,top:e.clientY+c.top}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}__ghostOffset(){let e=this.j.iframe;if(!e)return{left:0,top:0};let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=o.IDLE,this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<o.DRAGGING)return void this.onDragEnd();let e=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{s.Dom.isEmptyTextNode(e)&&s.Dom.safeRemove(e)}),t&&s.Dom.isEmpty(t)&&!s.Dom.isCell(t)&&s.Dom.safeRemove(t),s.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=o.IDLE}}u([r.autobind],d.prototype,"onStartDragElement",null),u([r.autobind],d.prototype,"onDragStart",null),u([(0,r.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([r.autobind],d.prototype,"onDragEnd",null),u([r.autobind],d.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",d)},19271:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends l.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart).on("drop.DragAndDrop",this.onDrop)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=r.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,a.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,r.Dom.isElement(t)&&t.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(i=r.Dom.first(i,e=>r.Dom.isTag(e,"img"))),r.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,a.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(r.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),n=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),n&&this.__insertFragment.call(this,n,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,a.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,a.attr)(i,t,(0,a.attr)(this.draggable,"data-src")||(0,a.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,a.attr)(i,t)||"")}else i=(0,a.dataBind)(this.draggable,"target");else if(this.getText(t)){let e=this.j.createInside.div();e.innerHTML=this.getText(t),this.j.e.fire("safeHTML",e),i=e.firstChild===e.lastChild&&e.firstChild?e.firstChild:e}return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),r.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{let t=(0,a.getDataTransfer)(e);return t?t.getData(n.TEXT_HTML)||t.getData(n.TEXT_PLAIN):null}}}u([o.autobind],d.prototype,"onDragStart",null),u([(0,o.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([o.autobind],d.prototype,"onDragEnd",null),u([o.autobind],d.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",d)},46124:function(e,t,i){i.r(t),i.d(t,{removeExtraBr:function(){return n.removeExtraBr}});var n=i(94870)},94870:function(e,t,i){i.d(t,{removeExtraBr:function(){return r}});var n=i(2748);let o=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||n.Dom.isTag(t,"br"))return;let i=n.Dom.furthest(t,n.Dom.isBlock,e.editor);if(i&&!n.Dom.isTag(i,o)){let i=n.Dom.isTag(t,"br")?t:n.Dom.findNotEmptySibling(t,!1);if(!n.Dom.isTag(i,"br")||n.Dom.findNotEmptySibling(i,!1))return;n.Dom.isOrContains(t,e.s.range.startContainer)||e.s.setCursorBefore(i),n.Dom.safeRemove(i)}}},78720:function(e,t,i){i.d(t,{checkBlockNesting:function(){return o}});var n=i(2748);function o(e,t){var i,o;if(n.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&n.Dom.isBlock(t)){let r=null,s=null!=(o=null==(i=e.s.current())?void 0:i.parentElement)?o:null;for(;s&&s!==e.editor;){if(n.Dom.isBlock(s)){let t=!r&&n.Dom.isTag(s,e.o.enter)&&n.Dom.isEmpty(s);if(e.o.dtd.blockLimits[s.nodeName.toLowerCase()]&&!t)break;r=s}s=s.parentElement}n.Dom.isLeaf(s)&&n.Dom.isList(t)&&n.Dom.isFragment(t.parentNode)&&!n.Dom.findNotEmptySibling(t,!1)&&(n.Dom.unwrap(t),r=s),r&&function(e,t){var i;let{s:o}=e;if(n.Dom.isEmpty(t)){o.setCursorAfter(t),n.Dom.safeRemove(t);return}o.cursorOnTheRight(t)?o.setCursorAfter(t):o.cursorOnTheLeft(t)?o.setCursorBefore(t):o.setCursorAfter(null!=(i=o.splitSelection(t))?i:t)}(e,r)}}},43267:function(e,t,i){i.r(t),i.d(t,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=i(78720)},9045:function(e,t,i){i(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,dd:1,details:1,dir:1,div:1,dl:1,dt:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,li:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(e,t,i){var n=i(37133),o=i(580),r=i(50911);i(9045);var s=i(46124),a=i(43267),l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends r.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(s).forEach(t=>{s[t](this.j,e)})}}l([(0,n.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),l([(0,n.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),o.pluginSystem.add("dtd",c)},575:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class u extends l.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===n.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?n.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===n.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{r.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let n=(0,c.getBlockWrapper)(i,t),o=r.Dom.isLeaf(n);if((!o||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey,n))return!1;if(n||(0,c.hasPreviousBlock)(i,t)||(n=(0,c.wrapText)(i,t)),!n)return(0,c.insertParagraph)(i,t,o?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,n))return!1;if(o&&this.__isEmptyListLeaf(n))return(0,c.processEmptyLILeaf)(i,t,n),!1;(0,c.splitFragment)(i,t,n)}finally{i.isConnected&&t.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,a.isBoolean)(t)?t:r.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",u)},41872:function(e,t,i){i.d(t,{checkBR:function(){return s}});var n=i(82758),o=i(2748),r=i(26395);function s(e,t,i,s){let l=!!o.Dom.closest(e,"pre",t.editor)||(s?o.Dom.isTag(s,"blockquote"):!!o.Dom.closest(e,"blockquote",t.editor)),c=!l&&(s?o.Dom.isCell(s):!!o.Dom.closest(e,["td","th"],t.editor));if(t.o.enter.toLowerCase()===n.BR.toLowerCase()||c||i&&!l||!i&&l){var u;let i;if(l&&(i=a(a(u=e)))&&(o.Dom.safeRemove(a(u)),o.Dom.safeRemove(i),1))return!1;let n=t.createInside.element("br");if(o.Dom.before(e,n),!o.Dom.findNotEmptySibling(n,!1)){let t=n.cloneNode();o.Dom.after(n,t),o.Dom.before(t,e)}let s=n.cloneNode();return o.Dom.before(e,s),(0,r.scrollIntoViewIfNeeded)(s,t.editor,t.ed),o.Dom.safeRemove(s),!0}return!1}function a(e){if(!e)return!1;let t=o.Dom.findSibling(e,!0);return!!t&&!!o.Dom.isTag(t,"br")&&t}},61991:function(e,t,i){i.d(t,{checkUnsplittableBox:function(){return o}});var n=i(2748);function o(e,t,i){return!!n.Dom.canSplitBlock(i)||(n.Dom.before(e,t.createInside.element("br")),!1)}},54041:function(e,t,i){i.d(t,{getBlockWrapper:function(){return function e(t,i,r=n.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(o.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a)return null}}});var n=i(82758),o=i(2748)},19057:function(e,t,i){i.d(t,{hasPreviousBlock:function(){return o}});var n=i(2748);function o(e,t){return!!n.Dom.prev(e,e=>n.Dom.isBlock(e)||n.Dom.isImage(e),t.editor)}},35399:function(e,t,i){i.d(t,{checkBR:function(){return n.checkBR},checkUnsplittableBox:function(){return o.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return u.splitFragment},wrapText:function(){return d.wrapText}});var n=i(41872),o=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),u=i(54600),d=i(5287)},44245:function(e,t,i){i.d(t,{insertParagraph:function(){return s}});var n=i(2748),o=i(29960),r=i(26395);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,c=l.element(i),u=l.element("br");return a||n.Dom.append(c,u),s&&s.cssText&&(0,o.attr)(c,"style",s.cssText),n.Dom.after(e,c),n.Dom.before(a?c:u,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){i.d(t,{moveCursorOutFromSpecialTags:function(){return o}});var n=i(2748);function o(e,t,i){let{s:o}=e,r=n.Dom.closest(t,i,e.editor);if(r){if(o.cursorOnTheRight(r,t))n.Dom.after(r,t);else{if(!o.cursorOnTheLeft(r,t))return;n.Dom.before(r,t)}let e=o.createRange();e.setStartBefore(t),o.selectRange(e)}}},65181:function(e,t,i){i.d(t,{processEmptyLILeaf:function(){return s}});var n=i(2748),o=i(76078),r=i(44245);function s(e,t,i){let s=n.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=n.Dom.isLeaf(a),c=l?a:s,u=t.s.createRange();u.setStartAfter(i),u.setEndAfter(s);let d=u.extractContents();n.Dom.after(c,e),n.Dom.safeRemove(i),(0,o.$$)("li",s).length||n.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);n.Dom.first(d,e=>n.Dom.isTag(e,"li"))&&(l?n.Dom.append(h,d):n.Dom.after(h,d))}},54600:function(e,t,i){i.d(t,{splitFragment:function(){return s}});var n=i(2748),o=i(26395),r=i(44245);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=n.Dom.isLeaf(i),u=i.tagName.toLowerCase()===l||c,d=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!u&&(d||h)){d?n.Dom.after(i,e):n.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!d&&n.Dom.prepend(i,e);return}let{scrollTop:p}=t.editor;s.splitSelection(i,e),t.editor.scrollTop!==p&&(t.editor.scrollTop=p),(0,o.scrollIntoViewIfNeeded)(i,t.editor,t.ed)}},5287:function(e,t,i){i.d(t,{wrapText:function(){return o}});var n=i(2748);function o(e,t){let i=e;n.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let o=n.Dom.wrapInline(i,t.o.enter,t);if(n.Dom.isEmpty(o)){let i=t.createInside.element("br");n.Dom.append(o,i),n.Dom.before(i,e)}return o}},11317:function(e,t,i){var n=i(2748),o=i(580),r=i(29960),s=i(6441),a=i(2073),l=i(92762);function c(e,t,i=""){if(e.s.isCollapsed())return!1;let n=e.s.wrapInTag("a");return!!n.length&&(n.forEach(e=>{(0,r.attr)(e,"href",t),i&&(0,r.attr)(e,"title",i)}),e.s.setCursorAfter(n[n.length-1]),!0)}function u(e){let{baseurl:t}=e;(0,a.getItems)(e).forEach(({file:e})=>{let i=t+e;if(c(this,i))return;let n=this.createInside.element("a",{href:i});n.textContent=this.o.uploader.getDisplayName.call(this.uploader,t,e),this.s.insertNode(n)})}s.Config.prototype.file={defaultHandlerSuccess:u},s.Config.prototype.controls.file={popup(e,t,i){let o=e.s.isCollapsed()?null:e.s.range,s=()=>{o&&e.s.selectRange(o)},d=(t,i="")=>{s(),c(e,t,i)||e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},h=null;return t&&(n.Dom.isTag(t,"a")||n.Dom.closest(t,"a",e.editor))&&(h=n.Dom.isTag(t,"a")?t:n.Dom.closest(t,"a",e.editor)),(0,l.FileSelectorWidget)(e,{filebrowser(e){(0,a.getItems)(e).forEach(({file:t})=>d(e.baseurl+t)),i()},upload(t){var i,n;s(),(null!=(n=null==(i=e.o.file)?void 0:i.defaultHandlerSuccess)?n:u).call(e,t)},url(e,t){h?((0,r.attr)(h,"href",e),(0,r.attr)(h,"title",t)):d(e,t),i()}},h,i,!1)},tags:["a"],tooltip:"Insert file"},o.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},36243:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(e){if(e.o.saveSelectionOnBlur){let t=!1;e.e.on("blur",()=>{t=!1,e.isEditorMode()&&e.s.save(!0)}).on("mousedown touchstart",()=>{t=!e.editorIsActive}).on("focus",()=>{e.isEditorMode()&&(t?e.s.removeMarkers():e.s.restore()),t=!1})}let t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=o.Dom.first(e.editor,e=>o.Dom.isText(e));break;case"end":t=o.Dom.last(e.editor,e=>o.Dom.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{if(e.o.autofocus)if(e.defaultTimeout){let i="mousedown touchstart keydown",n=()=>{e.async.clearTimeout(o),e.e.off(i,n)},o=e.async.setTimeout(()=>{e.e.off(i,n),t()},300);e.e.on(i,n)}else t()}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&o.Dom.isBlock(t.target)&&!o.Dom.isTag(t.target,n.INSEPARABLE_TAGS)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},28252:function(e,t,i){var n=i(22732),o=i(68345),r=i(49055),s=i(41180),a=i(12153),l=i(6441),c=i(4104),u=i(83709),d=i(40222);l.Config.prototype.defaultFontSizePoints="px",l.Config.prototype.font={googleFonts:{url:""}},a.Icon.set("font",c.default).set("fontsize",u.default);let h=new WeakSet;l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value(e,t){var i;let o=e.s.current(),r=o&&n.Dom.closest(o,n.Dom.isElement,e.editor),a=t.control;if(r)h.add(t);else if("select"!==a.component||h.has(t))return;let l=(null==(i=a.data)?void 0:i.cssRule)||"font-size",c=(0,s.css)(r||e.editor,l);if("font-size"===l){let t=parseFloat(c.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return c.toString()},isChildActive(e,t){var i,n;let o=t.state.value,r=null!=(n=null==(i=t.control.data)?void 0:i.normalize)?n:e=>e;return!!(o&&t.control.args&&r(t.control.args[0].toString())===r(o.toString()))},isActive(e,t){var i,n;let o=t.state.value;if(!o)return!1;let r=null!=(n=null==(i=t.control.data)?void 0:i.normalize)?n:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(o.toString()))}},l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(e,t){let[i]=t.split(",");return(0,r.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(e,t,i){let n=!1;try{n=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch(e){}return`<span data-style="${t}" style="${n?`font-family: ${t}!important;`:""}">${i}</span>`},popup:(e,t,i,n)=>!!e.o.font.googleFonts.url&&new d.UIFontPicker(e,n,i),data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(e,t){let i=e.s.current(),r=i&&n.Dom.closest(i,n.Dom.isElement,e.editor);if(r)h.add(t);else if(h.has(t))return;let a=(0,s.css)(r||e.editor,"font-family").toString(),{list:l}=t.control;return a===(0,s.css)(e.editor,"font-family").toString()&&((0,o.isArray)(l)?l.includes(""):""in(null!=l?l:{}))?"":a},tooltip:"Font family"}},40222:function(e,t,i){i.d(t,{UIFontPicker:function(){return g}});var n=i(87325),o=i(37133),r=i(2748),s=i(580),a=i(68345),l=i(29960),c=i(41180),u=i(37790),d=i(48538),h=i(41870),p=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let f=["h1","h2","h3","h4","h5","h6"],m=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]),g=class e extends d.UIElement{className(){return"UIFontPicker"}__render(){var e,t;let{control:i}=this.__button,{list:n={}}=i,o=(0,a.isArray)(n)?n.map(e=>({value:e.toString(),title:e.toString()})):(0,u.keys)(n,!1).map(e=>({value:e,title:n[e].toString()})),s=Array.from(this.__googleFonts.fonts.values(),e=>({value:this.__googleFonts.value(e),title:e.family,font:e})),l=new Map;[...s,...o].forEach(e=>l.set((0,h.firstFamily)(e.value),e));let c=new Map,d=new Map;this.__themeFonts().forEach(e=>{var t;let i=(0,h.firstFamily)(e),n=e.split(",")[0].replace(/["']/g,"").trim(),o=null!=(t=l.get(i))?t:!i||i.startsWith("-")||m.has(i)?void 0:{value:e,title:n};o&&!c.has(i)&&c.set(i,o)}),this.__usedFonts().forEach(e=>{let t=(0,h.firstFamily)(e),i=l.get(t);i&&!c.has(t)&&d.set(t,i)});let p=o.find(e=>""===e.value),f=(0,h.firstFamily)(null!=(t=null==(e=i.value)?void 0:e.call(i,this.j,this.__button))?t:"");r.Dom.detach(this.container),this.__fonts.clear(),p&&this.__append(f,[p]),this.__append(f,[...c.values()],"Theme fonts"),this.__append(f,[...d.values()],"Used fonts"),this.__append(f,o.filter(e=>e!==p),"System fonts"),this.__append(f,s,"Google Fonts"),this.__observeGoogleFonts()}__themeFonts(){let{editor:e}=this.j,t=[(0,c.css)(e,"font-family").toString()];return f.forEach(i=>{let n=this.j.createInside.element(i,{style:"display: none"});r.Dom.append(e,n),t.push((0,c.css)(n,"font-family").toString()),r.Dom.safeRemove(n)}),t}__usedFonts(){return Array.from(this.j.editor.querySelectorAll('[style*="font-family"]'),e=>e.style.fontFamily)}__append(e,t,i){if(!t.length)return;let{control:n}=this.__button,o=this.j.c.div(this.getFullElName("group"));if(i){let e=this.j.c.div(this.getFullElName("heading"),{id:`${this.getFullElName("heading")}-${(0,s.uniqueUid)()}`});e.textContent=this.i18n(i),(0,l.attr)(o,{role:"group","aria-labelledby":e.id}),r.Dom.append(o,e)}t.forEach(t=>{var i,s;let a=this.j.c.element("button",{type:"button",class:this.getFullElName("item"),"data-value":t.value,"aria-pressed":(0,h.firstFamily)(t.value)===e});t.font?(a.textContent=t.title,this.__fonts.set(a,t.font)):a.innerHTML=null!=(s=null==(i=n.childTemplate)?void 0:i.call(n,this.j,t.value,t.title,this.__button))?s:t.title,r.Dom.append(o,a)}),r.Dom.append(this.container,o)}__observeGoogleFonts(){this.j.async.requestAnimationFrame(()=>{var e;if(null==(e=this.__observer)||e.disconnect(),this.isDestructed||!this.__fonts.size)return;let t=new IntersectionObserver(e=>{let i=[];e.forEach(({isIntersecting:e,target:n})=>{let o=this.__fonts.get(n);e&&o&&(i.push(o),(0,c.css)(n,{fontFamily:this.__googleFonts.value(o)}),t.unobserve(n))}),this.__googleFonts.preview(i)},{root:this.container.parentElement,rootMargin:"0px 0px 400px 0px"});this.__fonts.forEach((e,i)=>t.observe(i)),this.__observer=t})}onMouseDown(e){e.preventDefault()}onClick(e){var t;let i=r.Dom.up(e.target,e=>r.Dom.isHTMLElement(e)&&e.hasAttribute("data-value"),this.container);if(!i)return;let n=null!=(t=(0,l.attr)(i,"data-value"))?t:"",o=this.__googleFonts.find(n),s=(0,h.firstFamily)(n)===(0,h.firstFamily)(this.__blockFont());o&&!s&&this.__googleFonts.load(o),this.j.execCommand("fontname",!1,s?"":n),this.__close()}__blockFont(){let e=r.Dom.up(this.j.s.current(),r.Dom.isBlock,this.j.editor);return(0,c.css)(null!=e?e:this.j.editor,"font-family").toString()}destruct(){var e;null==(e=this.__observer)||e.disconnect(),super.destruct()}constructor(e,t,i){super(e),this.__button=t,this.__close=i,this.__fonts=new Map,this.__observer=null,this.__googleFonts=e.getInstance(h.GoogleFonts),this.__render(),this.__googleFonts.fonts.size||this.__googleFonts.ready.then(()=>!this.isDestructed&&this.__render())}};p([(0,o.watch)("container:mousedown")],g.prototype,"onMouseDown",null),p([(0,o.watch)("container:click")],g.prototype,"onClick",null),g=p([n.component],g)},23399:function(e,t,i){var n=i(580),o=i(21537);i(28252);var r=i(41870);n.pluginSystem.add("font",function(e){if(e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"}),e.o.font.googleFonts.url){let t=e.getInstance(r.GoogleFonts),i=e.async.debounce(()=>t.loadUsed(),e.defaultTimeout);t.ready.then(i),e.e.on("afterInit afterSetMode change",i)}e.e.on("afterInit",()=>{e.iframe&&e.e.on(e.ed,"load",()=>e.e.fire("updateToolbar"),{capture:!0})});let t=(t,i,n)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,o.normalizeSize)(n,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:n}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},41870:function(e,t,i){i.d(t,{GoogleFonts:function(){return c},firstFamily:function(){return l}});var n=i(80480),o=i(2748),r=i(54079);let s={serif:"serif",monospace:"monospace"},a=new Map;function l(e){return e.split(",")[0].replace(/["']/g,"").trim().toLowerCase()}class c extends n.ViewComponent{className(){return"GoogleFonts"}find(e){return this.fonts.get(l(e))}value(e){var t;return`'${e.family}', ${null!=(t=s[e.category])?t:"sans-serif"}`}load(e){let t=this.__loadedInto(this.j.ed);if(t.has(e.family))return;t.add(e.family);let i=[["regular","0,400"],["700","0,700"],["italic","1,400"],["700italic","1,700"]].filter(([t])=>e.variants.includes(t)).map(([,e])=>e);this.__append(this.j.ed,`family=${this.__family(e)}:ital,wght@${i.join(";")}`)}loadUsed(){this.j.editor.querySelectorAll('[style*="font-family"]').forEach(e=>{let t=this.find(e.style.fontFamily);t&&this.load(t)})}preview(e){let t=this.__loadedInto(this.j.od);if(!(e=e.filter(e=>!this.__previewed.has(e.family)&&!t.has(e.family))).length)return;e.forEach(e=>this.__previewed.add(e.family));let i=e.map(e=>"family="+this.__family(e)),n=new Set(e.map(e=>e.family).join(""));this.__append(this.j.od,`${i.join("&")}&text=${encodeURIComponent([...n].join(""))}`)}__loadedInto(e){var t;let i=null!=(t=this.__loaded.get(e))?t:new Set;return this.__loaded.set(e,i),i}__family(e){return encodeURIComponent(e.family).replace(/%20/g,"+")}__append(e,t){let i=e.createElement("link");i.rel="stylesheet",i.href=`https://fonts.googleapis.com/css2?${t}&display=swap`,e.head.appendChild(i),this.__links.push(i)}destruct(){this.__links.forEach(e=>o.Dom.safeRemove(e)),super.destruct()}constructor(e){super(e),this.fonts=new Map,this.__links=[],this.__loaded=new WeakMap,this.__previewed=new Set,this.ready=(function(e,t){let i=a.get(t);if(!i){let n=new r.Ajax({url:t,method:"GET"},e.o.defaultAjaxOptions);i=n.send().then(e=>e.json()).then(({items:e})=>e.filter(e=>e.variants.includes("regular"))).catch(()=>(a.delete(t),[])).finally(()=>n.destruct()),a.set(t,i)}return i})(e,e.o.font.googleFonts.url).then(e=>{e.forEach(e=>this.fonts.set(e.family.toLowerCase(),e))})}}},4104:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m5 17 7-14 7 14M8 12h8M3 21h18"/> </g> </svg> '},83709:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2 5h9M6.5 5v15M4 20h5M19 4v16m-3-13 3-3 3 3m-6 10 3 3 3-3"/> </g> </svg> '},24630:function(e,t,i){var n=i(2748),o=i(72430),r=i(12153),s=i(6441),a=i(4932),l=i(89816);r.Icon.set("paragraph",l.default),s.Config.prototype.formatBlock={previewProperties:[]},s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,o;let r=t.control,s=e.s.current(),a=n.Dom.closest(s,n.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(o=r.data)?void 0:o.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let n=t.state.value,r=i.list;return(0,o.isPlainObject)(r)&&r[n.toString()]&&e.o.textIcons&&(t.state.text=r[n.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(e,t){var i,n;return t.state.value===(null==(n=null==(i=t.control)?void 0:i.args)?void 0:n[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,o.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0${function(e,t){let{previewProperties:i}=e.o.formatBlock;if(!i.length)return"";let o=e.createInside.element(t,{style:"display: none"});n.Dom.append(e.editor,o);let r=e.ew.getComputedStyle(o),s=parseFloat(r.fontSize)||16,l=i.map(t=>{let i=r.getPropertyValue(t);return i&&"font-family"===t&&(i=(0,a.withContentFonts)(e,i)),i?`;${t}:${i.replace(/(-?[\d.]+)px/g,(e,t)=>`${parseFloat(t)/s}em`).replace(/"/g,"'")}`:""}).join("");return n.Dom.safeRemove(o),l}(e,t)}"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},4932:function(e,t,i){i.d(t,{withContentFonts:function(){return s}});let n=new WeakMap,o=new Map,r=0;function s(e,t){let{ed:i,od:o}=e;if(i===o)return t;let s=function(e){let t=n.get(e);if(!t){let{od:i}=e,o={prefix:`jodit-preview-${++r}-`,faces:new Map,pending:!1};n.set(e,o),e.e.on("beforeDestruct",()=>o.faces.forEach(e=>i.fonts.delete(e))),t=o}return t}(e);!function(e,t){if(t.pending)return;t.pending=!0;let{ed:i,od:n}=e;Promise.all(Array.from(i.styleSheets,e=>a(e,i.baseURI))).then(i=>{t.pending=!1,e.isInDestruct||i.flat().forEach(e=>{let i=JSON.stringify(e);if(!t.faces.has(i)){let o=new FontFace(t.prefix+e.family,e.source,e.descriptors);n.fonts.add(o),t.faces.set(i,o)}})})}(e,s);let l=new Set;return i.fonts.forEach(e=>l.add(c(e.family))),t.split(",").map(e=>{let t=c(e);return l.has(t)?`"${s.prefix}${t}", ${e.trim()}`:e.trim()}).join(", ")}function a(e,t){var i;let n;try{n=e.cssRules}catch(n){let{href:t}=e;if(!t)return Promise.resolve([]);let i=o.get(t);return i||(i=fetch(t).then(e=>e.text()).then(e=>{let i=document.implementation.createHTMLDocument(""),n=i.createElement("style");return n.textContent=e,i.head.appendChild(n),n.sheet?l(n.sheet.cssRules,t):[]}).catch(()=>[]),o.set(t,i)),i}return l(n,null!=(i=e.href)?i:t)}function l(e,t){return Promise.all(Array.from(e,e=>{var i;let n;if("styleSheet"in e){let{styleSheet:i}=e;return i?a(i,t):[]}return"cssRules"in e?l(e.cssRules,t):e.cssText.startsWith("@font-face")?[(n=t=>e.style.getPropertyValue(t)||void 0,{family:c(e.style.getPropertyValue("font-family")),source:(i=e.style.getPropertyValue("src"),i.replace(/url\(\s*(["']?)(.*?)\1\s*\)/g,(e,i,n)=>{try{return`url("${new URL(n,t).href}")`}catch(t){return e}})),descriptors:{style:n("font-style"),weight:n("font-weight"),stretch:n("font-stretch"),unicodeRange:n("unicode-range")}})]:[]})).then(e=>e.flat())}function c(e){return e.replace(/["']/g,"").trim().toLowerCase()}},96111:function(e,t,i){var n=i(580);i(24630),n.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,n)=>(e.s.commitStyle({element:n}),e.synchronizeValues(),!1))})},89816:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 4H9a5 5 0 0 0 0 10h3M12 4v17M18 4v17"/> </g> </svg> '},99823:function(e,t,i){var n=i(82758),o=i(12153),r=i(6441),s=i(6950),a=i(28911);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",s.default).set("shrink",a.default),r.Config.prototype.controls.fullsize={exec(e){e.toggleFullSize()},isActive:e=>e.isFullSize,update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG}},2169:function(e,t,i){var n=i(2748),o=i(580),r=i(19306),s=i(41180);i(99823);let a=new Set;o.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,o=0,l=0,c=0,u=!1,d=()=>{let{container:n,events:r}=e;r&&(t?(u||(i=(0,s.css)(n,"height",!0),o=(0,s.css)(n,"width",!0),u=!0),(0,s.css)(n,{height:e.ow.innerHeight,width:e.ow.innerWidth})):u&&((0,s.css)(n,{height:i||"auto",width:o||"auto"}),u=!1))},h=i=>{let{container:o,events:u}=e;if(o){if(void 0===i&&(i=!o.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,o.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,r.isJoditObject)(e)&&e.toolbarContainer&&n.Dom.append(e.toolbarContainer,e.toolbar.container),(0,s.css)(e.toolbar.container,"width","auto")),i?a.add(o):a.delete(o),e.o.globalFullSize&&(1===a.size&&i||0===a.size&&!i)){i&&(l=e.ow.scrollX,c=e.ow.scrollY);let t=o.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",i),t=t.parentNode;d(),i||e.ow.scrollTo(l,c)}u.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",d),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{t&&h(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",d)})})},6950:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"/> </g> </svg> '},28911:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 8h5V3M8 8 3 3m13 0v5h5m-5 0 5-5M3 16h5v5m0-5-5 5m13 0v-5h5m-5 0 5 5"/> </g> </svg> '},78524:function(e,t,i){i(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(e,t,i){var n=i(82758),o=i(580),r=i(21537),s=i(50911);i(78524);class a extends s.Plugin{afterInit(e){(0,r.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===n.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let n=this.onKeyPress(i),o={shouldStop:!0};if(!1===this.j.e.fire(n+".hotkey",i.type,o))if(o.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),n=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&n.push(i)}),(0,r.normalizeKeyAliases)(n.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}o.pluginSystem.add("hotkeys",a)},16233:function(e,t,i){var n=i(22732),o=i(580),r=i(12153),s=i(6441),a=i(72337);r.Icon.set("hr",a.default),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tooltip:"Insert Horizontal Line"},o.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{var t;let i=e.createInside.element("hr");e.s.insertNode(i,!1,!1);let o=n.Dom.closest(i.parentElement,n.Dom.isBlock,e.editor);o&&n.Dom.isEmpty(o)&&o!==e.editor&&!(null==(t=e.o.dtd)?void 0:t.blockLimits[o.nodeName.toLowerCase()])&&(n.Dom.after(o,i),n.Dom.safeRemove(o));let r=n.Dom.findNotEmptySibling(i,!1);if(n.Dom.isBlock(r))return e.s.setCursorIn(r,!0),!1;if(r||i.parentNode!==e.editor&&!n.Dom.isBlock(n.Dom.findNotEmptySibling(i,!0)))return e.s.setCursorAfter(i),!1;let s=e.createInside.element(e.o.enter);return n.Dom.isTag(s,"br")||n.Dom.append(s,e.createInside.element("br")),n.Dom.after(i,s),e.s.setCursorIn(s),!1})})},72337:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M4 12h16"/> </g> </svg> '},50963:function(e,t,i){var n=i(6441);n.Config.prototype.iframeBaseUrl="",n.Config.prototype.iframeTitle="Jodit Editor",n.Config.prototype.iframeDoctype="<!DOCTYPE html>",n.Config.prototype.iframeDefaultSrc="about:blank",n.Config.prototype.iframeStyle="html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}",n.Config.prototype.iframeCSSLinks=[],n.Config.prototype.iframeSandbox=null},77469:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(76241);i(50963),r.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let n=e||i.iframe.contentWindow.document;if(n.open(),n.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,s.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=n.createElement("link");(0,s.attr)(t,"rel","stylesheet"),(0,s.attr)(t,"href",e),n.head&&o.Dom.append(n.head,t),i.e.on(t,"load",()=>i.e.fire("resize"))}),t.iframeStyle){let e=n.createElement("style");e.innerHTML=t.iframeStyle,n.head&&o.Dom.append(n.head,e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");(0,s.css)(i,"display","block"),i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,s.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,s.attr)(i,"sandbox",t.iframeSandbox),o.Dom.append(e.workplace,i),e.iframe=i;let r=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,s.callPromise)(r,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let r=t.editHTMLDocumentMode,l=()=>{(0,s.attr)(i.body,"contenteditable",e.getMode()!==n.MODE_SOURCE&&!e.getReadOnly()||null)},c=(e,t)=>{for(;t>0&&/\s/.test(e.charAt(t-1));)t-=1;return t},u=e=>{e=(0,a.removeBetween)(e,"<style",">","</style>","jodit-box");let t=(0,a.indexOfOpenTag)(e,"body"),i=-1;for(let n=(0,a.indexOfClosingTag)(e,"body",t+1);-1!==n;n=(0,a.indexOfClosingTag)(e,"body",n+1))i=n;if(-1!==t&&-1!==i){let n=i+7,o=e.indexOf(">",t),r=e.slice(t,n);for(let s of(-1!==o&&o<i&&(r=(e=>{e=e.replace(/min-height["'\s]*:[\s"']*[0-9]+(px|%)/i,"");let t=(t,i)=>{for(;i.test(e.charAt(t));)t+=1;return t},i=e.indexOf("contenteditable");for(;-1!==i;){let n=t(i+15,/["'\s]/);if("="===e.charAt(n)&&(n=t(n+1,/[\s"']/),e.startsWith("true",n))){n=t(n+4,/["']/);let o=i;return/["']/.test(e.charAt(o-1))&&(o-=1),o=c(e,o),e.slice(0,o)+e.slice(n)}i=e.indexOf("contenteditable",i+1)}return e})(e.slice(t,o))+e.slice(o,n)),["style","script","span"]))r=(0,a.removeBetween)(r,"<"+s,">","</"+s+">","jodit");let s=e=>(0,a.removeBetween)((0,a.removeBetween)(e,"<span",">","</span>"),"&lt;span","&gt;","&lt;/span&gt;");e=(s(e.slice(0,t))+r+s(e.slice(n))).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")}return e};if(r){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>u(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>{if(e.isLocked)return!1;if(/<(html|body)/i.test(t)){if(u(i.documentElement.outerHTML)!==u(t)){var n;let r,a;n=u(t),r=new DOMParser().parseFromString(n,"text/html"),e.e.fire("safeHTML",r.documentElement),a=(0,s.$$)("style.jodit-box",i.head),i.replaceChild(i.adoptNode(r.documentElement),i.documentElement),a.forEach(e=>o.Dom.append(i.head,e)),e.editor=i.body,l(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")}return!0}return!1},{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",l),"auto"===t.height){i.documentElement&&(0,s.css)(i.documentElement,"overflowY","hidden");let n=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,s.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",n).on([e.iframe,e.ew,i.documentElement],"load",n).on(i,"readystatechange DOMContentLoaded",n),"function"==typeof ResizeObserver){let t=new ResizeObserver(n);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},43687:function(e,t,i){i(6441).Config.prototype.imageCaption={wrapper:{tag:"figure",className:""},inner:null,caption:{tag:"figcaption",className:""}}},84571:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(41180),c=i(20356),u=i(45124);i(43687);var d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let h=["margin-top","margin-right","margin-bottom","margin-left"],p=new Set([n.KEY_UP,n.KEY_DOWN,n.KEY_LEFT,n.KEY_RIGHT]),f=/^(P|H[1-6]|PRE)$/i,m=new Set(["formatblock","insertorderedlist","insertunorderedlist"]),g="data-jodit-placeholder",v=`:where(.jodit-wysiwyg [contenteditable=false] [contenteditable=true]:focus){outline:1px solid var(--jd-color-border-selected,#1e88e5)}:where(.jodit-wysiwyg [${g}]){position:relative}:where(.jodit-wysiwyg [${g}])::before{position:absolute;top:0;right:0;left:0;padding:inherit;color:var(--jd-color-placeholder,#a5a5a5);content:attr(${g});pointer-events:none}`;class b extends c.Plugin{afterInit(e){(0,s.getContainer)(e,"imageCaption","style",!0).textContent=v,e.e.on("beforeCommandSelectall",this.__onSelectAll,{top:!0}),this.onChangePlace()}onToggleImageCaption(e,t){let i=(0,a.getCaptionWrapper)(this.j,e);if(i&&!0!==t){let t=this.__freshCaption(i);return t?this.__unrecorded(()=>this.__restore(t)):this.__uncaption(i,e),null}if(!i&&!1!==t)return this.__caption(e)}__freshCaption(e){let t=this.__fresh;return t&&t.wrapper===e&&e.parentNode===t.parent&&e.previousSibling===t.previous&&e.nextSibling===t.next&&y(e,t.image)===t.shape&&(0,a.getImageCaption)(this.j,e)===t.caption&&r.Dom.isEmpty(t.caption)?t:null}__caption(e){let t,{j:i}=this,{snapshot:n}=i.history;i.setEditorValue(),i.e.fire("internalUpdate");let o=n.make();return n.transaction(()=>{t=this.__fresh={...this.__wrap(e),before:o},i.setEditorValue()}),i.e.fire("updateToolbar"),t.caption}__unrecorded(e){let{j:t}=this;t.setEditorValue(),this.__fresh=null,t.history.snapshot.transaction(()=>{e(),t.setEditorValue()}),t.e.fire("internalUpdate"),t.e.fire("updateToolbar")}__wrap(e){var t,i;let{j:n}=this,{wrapper:o,inner:s,caption:c}=n.o.imageCaption,u=r.Dom.closest(e,"a",n.editor),d=!u||(null==(t=u.textContent)?void 0:t.trim())||1!==u.getElementsByTagName("img").length?e:u,h=[(0,a.attr)(e,"style"),(0,a.attr)(e,"class")],p=d.parentNode,f=(0,l.cssInline)(e,"width")||((i=(0,a.attr)(e,"width"))?(0,a.isNumeric)(i)?`${i}px`:i:"")||(e.offsetWidth?`${e.offsetWidth}px`:""),m=(0,a.getAlignClasses)(n,e),g=(0,a.getHAlign)(e,m);(0,a.clearHAlign)(e,m);let v=this.__create(o),b=s?this.__create(s):v,w=this.__create(c);w.appendChild(n.createInside.element("br"));let k=this.__insert(v,d);return b!==v&&r.Dom.append(v,b),r.Dom.append(b,[d,w]),_(e,v),f&&((0,a.css)(v,"width",f),(0,a.css)(e,"width","100%")),(0,a.hAlignElement)(v,g,(0,a.getAlignClasses)(n,v)),this.__mark(v),{caption:w,wrapper:v,image:e,target:d,place:p,split:k,attributes:h,parent:v.parentNode,previous:v.previousSibling,next:v.nextSibling,shape:y(v,e)}}__restore(e){var t,i;let{wrapper:n,image:o,target:s,place:l,split:c,attributes:u}=e;if(c)if(c.head||c.tail){let{sel:e}=this.j.s,n=(null==e?void 0:e.rangeCount)?e.getRangeAt(0).startContainer:null,{head:o,tail:l}=c;if(o&&!(l&&n&&r.Dom.isOrContains(l,n)))r.Dom.append(o,[s,...(0,a.toArray)(null!=(t=null==l?void 0:l.childNodes)?t:[])]),r.Dom.safeRemove(l);else if(l){let e=l.firstChild;[...(0,a.toArray)(null!=(i=null==o?void 0:o.childNodes)?i:[]),s].forEach(t=>l.insertBefore(t,e)),r.Dom.safeRemove(o)}}else r.Dom.append(l,s),r.Dom.before(n,c.block);else r.Dom.before(n,s);r.Dom.safeRemove(n),(0,a.attr)(o,{style:u[0],class:u[1]})}__uncaption(e,t){var i;let{j:o}=this,s=(0,a.getHAlign)(e,(0,a.getAlignClasses)(o,e)),c=(0,l.cssInline)(e,"width");r.Dom.safeRemove((0,a.getImageCaption)(o,e));let u=null!=(i=r.Dom.closest(t,"a",e))?i:t;if(_(e,t),c&&(0,a.css)(t,"width",c),(0,a.hAlignElement)(t,s,(0,a.getAlignClasses)(o,t)),r.Dom.isBlock(e)&&e.parentNode===o.editor&&o.o.enter.toLowerCase()!==n.BR){let t=o.createInside.element(o.o.enter);r.Dom.before(e,t),r.Dom.append(t,u)}else r.Dom.before(e,u);r.Dom.safeRemove(e)}__create({tag:e,className:t}){return this.j.createInside.element(e,t?{class:t}:{})}__insert(e,t){let{j:i}=this,n=r.Dom.isBlock(e)?r.Dom.closest(t,r.Dom.isBlock,i.editor):null;if(!n||!f.test(n.nodeName))return r.Dom.before(t,e),null;let o=i.ed.createRange();o.setStartBefore(n),o.setEndBefore(t);let s=o.extractContents();o.setStartAfter(t),o.setEndAfter(n);let[l,c]=[s,o.extractContents()].map((e,t)=>{let i=e.firstChild;return!i||r.Dom.isEmpty(i)?null:((0,a.call)(t?r.Dom.after:r.Dom.before,n,i),i)});return r.Dom.before(n,e),r.Dom.safeRemove(n),{block:n,head:l,tail:c}}__mark(e){(0,a.attr)(e,"contenteditable",!1);let t=(0,a.getImageCaption)(this.j,e);t&&((0,a.attr)(t,"contenteditable",!0),this.__placeholder(t))}__placeholder(e){let t=r.Dom.isEmpty(e)?this.j.i18n("Caption"):null;(0,a.attr)(e,g)!==t&&(0,a.attr)(e,g,t)}onChange(){let{j:e}=this;e.isInDestruct||e.getMode()===n.MODE_SOURCE||(0,a.toArray)(e.editor.getElementsByTagName(e.o.imageCaption.wrapper.tag)).forEach(t=>{r.Dom.isHTMLElement(t)&&(0,a.getCaptionedImage)(e,t)&&this.__mark(t)})}onInput(){let e=this.__caretCaption();e&&this.__placeholder(e)}onAfterGetValueFromEditor(e){if(!e.value.includes("contenteditable"))return;let{j:t}=this,i=t.c.element("template");i.innerHTML=e.value;let n=e=>(0,a.toArray)(e.querySelectorAll(t.o.imageCaption.wrapper.tag)).filter(e=>(0,a.getCaptionedImage)(t,e)),o=n(i.content),s=this.__fresh&&this.__freshCaption(this.__fresh.wrapper),l=s&&o[n(t.editor).indexOf(s.wrapper)],c=s&&l&&function(e,t,i){var n;let o=(0,a.getCaptionedImage)(e,i),{split:s}=t;if(!o)return null;let l={wrapper:i,image:o,target:null!=(n=r.Dom.closest(o,"a",i))?n:o,place:t.place,split:null,attributes:t.attributes};if(s){let e=s.head?i.previousSibling:null,n=s.tail?i.nextSibling:null;if(s.head&&!r.Dom.isHTMLElement(e)||s.tail&&!r.Dom.isHTMLElement(n))return null;let o=s.block.cloneNode(!0);l.split={block:o,head:e,tail:n},l.place=function(e,t,i){let n=[];for(let i=t;i!==e&&i.parentNode;i=i.parentNode)n.unshift((0,a.toArray)(i.parentNode.childNodes).indexOf(i));return n.reduce((e,t)=>e.childNodes[t],i)}(s.block,t.place,o)}return l}(t,s,l),u=!1;c&&(this.__restore(c),u=!0),o.forEach(e=>{[e,(0,a.getImageCaption)(t,e)].forEach(e=>["contenteditable",g].forEach(t=>{(null==e?void 0:e.hasAttribute(t))&&(e.removeAttribute(t),u=!0)}))}),u&&(e.value=i.innerHTML)}onChangePlace(){let{j:e}=this;e.e.off([e.editor,e.ow,e.ew],".imageCaption").on(e.editor,"focusout.imageCaption",this.__onFocusOut,{capture:!0}).on(e.editor,"mousedown.imageCaption",this.__onMouseDown,{capture:!0}).on([e.ow,e.ew],"mouseup.imageCaption",this.__onMouseUp)}__onMouseDown(e){this.__press=e.target}__onFocusOut(e){let t=e.target;(0,a.getImageCaption)(this.j,(0,a.getCaptionWrapper)(this.j,t))===t&&(this.__press?this.__afterPress.push(t):this.__dropBlank(t,null))}__onMouseUp(){let e=this.__press;this.__press=null,this.__afterPress.splice(0).forEach(t=>this.__dropBlank(t,e))}__dropBlank(e,t){this.j.async.setTimeout(()=>{let{j:i}=this,n=(0,a.getCaptionWrapper)(i,e),o=(0,a.getCaptionedImage)(i,n);if(!n||!o||!r.Dom.isEmpty(e)||this.__keepsFocus(e))return;let s=!!(t&&r.Dom.isOrContains(n,t)),l=this.__freshCaption(n);this.__unrecorded(()=>l?this.__restore(l):this.__uncaption(n,o)),s&&i.e.fire("recalcPositionPopup")},1)}__keepsFocus(e){let{j:t}=this,i=e.ownerDocument;if(i.activeElement===e&&(i.hasFocus()||!t.od.hasFocus()))return!0;let n=t.od.activeElement;return!!(n&&n!==t.iframe&&!r.Dom.isOrContains(t.editor,n)&&(r.Dom.isOrContains(t.container,n)||r.Dom.closest(n,e=>r.Dom.isElement(e)&&(0,a.attr)(e,"data-editor_id")===t.id,t.od.body)))}__caretCaption(){let{s:e}=this.j;if(!e.isInsideArea)return null;let t=e.range.startContainer,i=(0,a.getImageCaption)(this.j,(0,a.getCaptionWrapper)(this.j,t));return i&&r.Dom.isOrContains(i,t)?i:null}onBeforeEnter(e){let t=(null==e?void 0:e.shiftKey)?null:this.__caretCaption(),i=(0,a.getCaptionWrapper)(this.j,t);if(!i)return;let{j:n}=this;if(this.__focusEditor(),!r.Dom.isBlock(i))return void n.s.setCursorAfter(i);let o=this.__line();return r.Dom.after(i,o),n.s.setCursorIn(o),n.synchronizeValues(),!1}__focusEditor(){this.j.editor.focus({preventScroll:!0})}__line(){let{j:e}=this,t=e.createInside.element(e.o.enter);return r.Dom.isTag(t,"br")||r.Dom.append(t,e.createInside.element("br")),t}onBeforeInsertNode(e){let t=(0,a.getCaptionWrapper)(this.j,this.__caretCaption());if(!t||!((r.Dom.isElement(e)||r.Dom.isFragment(e))&&[e,...(0,a.toArray)(e.querySelectorAll("*"))].some(e=>r.Dom.isElement(e)&&(r.Dom.isBlock(e)||n.NO_EMPTY_TAGS.has(e.nodeName.toLowerCase())))))return;let{j:i}=this;if(this.__focusEditor(),!r.Dom.isBlock(t))return void i.s.setCursorAfter(t);let o=this.__line();r.Dom.after(t,o),i.s.setCursorIn(o)}onBeforeCommandDelete(){let e=this.__selectedWrapper();if(!e||!r.Dom.isBlock(e))return;let t=this.__line();return r.Dom.before(e,t),r.Dom.safeRemove(e),this.j.s.setCursorIn(t),!1}__selectedWrapper(){let{s:e}=this.j;if(!e.isInsideArea||e.isCollapsed())return null;let{startContainer:t,startOffset:i,endContainer:n,endOffset:o}=e.range,r=t.childNodes[i];return t===n&&o===i+1&&(0,a.getCaptionedImage)(this.j,r)?r:null}onKeyDown(e){var t;if(this.__arrow=null,(null==(t=e.key)?void 0:t.length)===1&&!e.ctrlKey&&!e.metaKey&&this.__selectedWrapper())return void this.j.execCommand("Delete");if(!p.has(e.key)||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||!this.j.s.isCollapsed())return;let i=this.__caretCaption();i&&(this.__arrow={key:e.key,range:this.j.s.range.cloneRange(),caption:i})}onKeyUp(e){let t=this.__arrow;if(this.__arrow=null,!t||e.key!==t.key||(0,u.isMoved)(this.j,t.range))return;let i=(0,a.getCaptionWrapper)(this.j,t.caption);if(!i)return;let o=t.key===n.KEY_DOWN||t.key===n.KEY_RIGHT,{s}=this.j;if(this.__focusEditor(),!r.Dom.isBlock(i))return void(o?s.setCursorAfter(i):s.setCursorBefore(i));let l=r.Dom.findNotEmptySibling(i,!o);if(r.Dom.isHTMLElement(l))return void s.setCursorIn(l,o);if(r.Dom.isText(l))return void(o?s.setCursorBefore(l):s.setCursorAfter(l));let c=this.__line();(0,a.call)(o?r.Dom.after:r.Dom.before,i,c),s.setCursorIn(c),this.j.synchronizeValues()}onBeforeCommand(e){let t=e.toLowerCase();if(m.has(t)&&this.__caretCaption())return!1;let i="undo"===t&&this.__fresh?this.__freshCaption(this.__fresh.wrapper):null;if(i)return this.__unrecorded(()=>{this.__restore(i),this.j.history.snapshot.restore(i.before)}),!1}__onSelectAll(){let e=this.__caretCaption();if(e)return this.j.e.stopPropagation("beforeCommandSelectall"),this.j.s.select(e,!0),!1}beforeDestruct(e){e.e.off("beforeCommandSelectall",this.__onSelectAll).off([e.editor,e.ow,e.ew],".imageCaption")}constructor(){super(...arguments),this.__fresh=null,this.__press=null,this.__afterPress=[],this.__arrow=null}}function y(e,t){return[e,t].flatMap(e=>[(0,a.attr)(e,"style"),(0,a.attr)(e,"class")]).join("|")}function _(e,t){var i;h.forEach(i=>{let n=(0,l.cssInline)(e,i);n&&((0,a.css)(t,i,n),(0,a.css)(e,i,""))}),(null==(i=(0,a.attr)(e,"style"))?void 0:i.trim())||(0,a.attr)(e,"style",null)}d([(0,o.watch)(":toggleImageCaption")],b.prototype,"onToggleImageCaption",null),d([(0,o.watch)([":change",":afterInit",":afterSetMode",":changePlace"]),(0,o.debounce)()],b.prototype,"onChange",null),d([(0,o.watch)([":input",":keyup",":afterPaste"])],b.prototype,"onInput",null),d([(0,o.watch)(":afterGetValueFromEditor")],b.prototype,"onAfterGetValueFromEditor",null),d([(0,o.watch)(":changePlace")],b.prototype,"onChangePlace",null),d([o.autobind],b.prototype,"__onMouseDown",null),d([o.autobind],b.prototype,"__onFocusOut",null),d([o.autobind],b.prototype,"__onMouseUp",null),d([(0,o.watch)(":beforeEnter")],b.prototype,"onBeforeEnter",null),d([(0,o.watch)(":beforeInsertNode")],b.prototype,"onBeforeInsertNode",null),d([(0,o.watch)(":beforeCommandDelete")],b.prototype,"onBeforeCommandDelete",null),d([(0,o.watch)(":keydown")],b.prototype,"onKeyDown",null),d([(0,o.watch)(":keyup")],b.prototype,"onKeyUp",null),d([(0,o.watch)(":beforeCommand")],b.prototype,"onBeforeCommand",null),d([o.autobind],b.prototype,"__onSelectAll",null),s.pluginSystem.add("imageCaption",b)},85745:function(e,t,i){i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(74569);i(85745);var u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d="__jodit_imageprocessor_binded",h=d+"blob-id",p="jodit-wysiwyg_image-selected",f=new Set(["img","jodit","jodit-media"]);class m extends l.Plugin{afterInit(e){e.e.on(e.ed,"selectionchange",this.onSelectionChange),(0,s.getContainer)(e,"image-processor","style",!0).textContent=`.jodit-wysiwyg.${p}::selection,.jodit-wysiwyg.${p} *:not(img)::selection{background:transparent}`}beforeDestruct(e){e.e.off(e.ed,"selectionchange",this.onSelectionChange),e.editor.classList.remove(p);let t=(0,o.cached)(e,"buffer"),i=null==t?void 0:t.get(h);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(h)}}onAfterGetValueFromEditor(e,t){if(t!==n.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(h);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}onSelectionChange(){let{jodit:e}=this;e.editor.classList.toggle(p,function(e){var t;let{sel:i}=e.s;if(!i||!i.rangeCount)return!1;let{startContainer:n,startOffset:o,endContainer:s,endOffset:l}=i.getRangeAt(0),c=n.childNodes[o];return n===s&&l===o+1&&(r.Dom.isTag(c,f)||!!(null!=(t=(0,a.getWrappedMedia)(e,c))?t:(0,a.getCaptionedImage)(e,c)))&&r.Dom.isOrContains(e.editor,n)}(e))}async afterChange(e){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(e=>{(0,a.dataBind)(e,d)||((0,a.dataBind)(e,d,!0),e.complete||t.e.on(e,"load",function i(){var n;t.isInDestruct||null==(n=t.e)||n.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){let i;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=t.src;try{i=(0,c.dataURItoBlob)(n)}catch(e){return}t.src=URL.createObjectURL(i),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(h)||{};r[t.src]=n,e.buffer.set(h,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{var i;(function(e){var t;for(let i of["previousSibling","nextSibling"]){let o=e[i];for(;r.Dom.isText(o)&&!(null==(t=o.nodeValue)?void 0:t.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""));){let e=o[i];r.Dom.safeRemove(o),o=e}}})(e),t.s.select(null!=(i=(0,a.getCaptionWrapper)(t,e))?i:e)}))})}}u([(0,o.watch)(":afterGetValueFromEditor")],m.prototype,"onAfterGetValueFromEditor",null),u([(0,o.watch)(":beforeSetElementValue")],m.prototype,"onBeforeSetElementValue",null),u([o.autobind],m.prototype,"onSelectionChange",null),u([(0,o.watch)([":change",":afterInit",":changePlace"]),(0,o.debounce)()],m.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",m)},97536:function(e,t,i){i(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,showCaptionCheckbox:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(e,t,i){var n=i(65478),o=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(62843);i(97536);var c=i(59436),u=i(53636),d=i(10263),h=i(94575),p=i(34755),f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class m extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,d.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,p.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{var i;let{sourceImage:n}=this.state,o=null!=(i=(0,s.getCaptionWrapper)(e,n))?i:n,r=e.s.createRange();r.setStartBefore(o),r.collapse(!0),e.s.removeNode(o),t.close(),e.s.selectRange(r)}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),t.e.on(t,"afterClose",()=>{let{sourceImage:t}=this.state;if(e.isInDestruct||!o.Dom.isOrContains(e.editor,t))return;let i=(0,s.getCaptionWrapper)(e,t),n=(0,s.getImageCaption)(e,i);if(n&&o.Dom.isEmpty(n))return void e.s.setCursorIn(n);let r=null!=i?i:t;if(e.o.image.selectImageAfterClose)return void e.s.select(r);let a=e.s.createRange();a.setStartAfter(r),a.collapse(!0),e.s.selectRange(a)}),t.setSize(e.o.image.dialogWidth),(0,s.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,l.Button)(e,"ok","Apply","primary"),remove:(0,l.Button)(e,"bin","Delete"),cancel:(0,l.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.__focusFirstField(),this.async.promise((e,t)=>(0,h.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,s.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__focusFirstField(){var e;let t=e=>(0,s.toArray)(e.querySelectorAll("input, select, textarea"));null==(e=t(this.form.getElm("tabsBox")).concat(t(this.form.container)).find(e=>null!=e.offsetParent))||e.focus()}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let n=i.target;if(o.Dom.isTag(n,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",n))return;t.state.sourceImage=n,t.state.image=n.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(n)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,s.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,o;Object.values(null!=(t=(0,n.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,n.cached)(this,"dialog"))||i.destruct(),null==(o=(0,n.cached)(this,"form"))||o.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageCaption:!1,imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}f([n.cache],m.prototype,"form",null),f([n.cache],m.prototype,"dialog",null),f([n.cache],m.prototype,"__buttons",null),f([(0,n.watch)("state.image")],m.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",m)},51642:function(e,t,i){i.d(t,{readAlign:function(){return o}});var n=i(25726);function o(e,t,i){let o=(0,n.getHAlign)(e,i);t.align="normal"===o?"":o}},94575:function(e,t,i){i.d(t,{readValuesFromImage:function(){return d}});var n=i(25726),o=i(29960),r=i(41180),s=i(68645),a=i(51642),l=i(75595),c=i(47749),u=i(32566);async function d(e,t){let{sourceImage:i,values:d}=t,h=(0,s.getCaptionWrapper)(e,i),p=null!=h?h:i;return d.imageCaption=!!h,(0,a.readAlign)(p,d,(0,n.getAlignClasses)(e,p)),d.borderRadius=parseInt((0,r.cssInline)(i,"border-radius")||"0",10)||0,d.id=(0,o.attr)(i,"id")||"",d.imageTitle=(0,o.attr)(i,"title")||"",d.imageAlt=(0,o.attr)(i,"alt")||"",d.style=(0,o.attr)(i,"style")||"",d.classes=((0,o.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,c.readMargins)(p,d,t),(0,l.readLink)(t,e,d),d.imageSrc=(0,o.attr)(i,"src")||"",(0,u.readSizes)(i,d,t,h)}},75595:function(e,t,i){i.d(t,{readLink:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=n.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,o.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,o.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},47749:function(e,t,i){i.d(t,{readMargins:function(){return o}});var n=i(12475);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,n.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},32566:function(e,t,i){i.d(t,{readSizes:function(){return a}});var n=i(29807),o=i(29960),r=i(41180),s=i(14415);async function a(e,t,i,a){try{await e.decode()}catch(e){}let l=(0,r.css)(null!=a?a:e,"width",!0)||(0,o.attr)(e,"width")||!1,c=(0,r.css)(e,"height",!0)||(0,o.attr)(e,"height")||!1;t.imageWidth=!1!==l?(0,s.normalSizeFromString)(l):e.offsetWidth||e.naturalWidth,(0,n.isNumeric)(t.imageWidth)?t.imageHeight=!1!==c?(0,s.normalSizeFromString)(c):e.offsetHeight||e.naturalHeight:t.imageHeight=c||"";let{imageWidth:u,imageHeight:d}=t,h=parseFloat(u.toString());if(!(0,n.isNumeric)(u)||!(0,n.isNumeric)(d)){i.sizeIsLocked=!1;return}if(!1===c){t.imageHeight=Math.round(h/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(h-parseFloat(d.toString())*i.ratio)}},59436:function(e,t,i){i.d(t,{UIImagePropertiesForm:function(){return p}});var n=i(65478),o=i(87325),r=i(2748),s=i(21537),a=i(62405),l=i(12153),c=i(92762),u=i(35105),d=i(29827),h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=class e extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
136
+ </div>`}setPrompt(e){if(e){let{jodit:t}=this,i=t.o.aiAssistant[e],{aiCommonPrefixPrompt:n,aiCommonSuffixPrompt:o}=t.o.aiAssistant;this.promptInput.value=[n,(0,s.isString)(i)?i:"",o].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(e){this.setMod("loading",!1),r.Dom.detach(this.__results),this.__aiResult=e,r.Dom.append(this.__results,this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,r.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}__toggleInsertButton(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}constructor(e,{onInsert:t,onInsertAfter:i}){super(e),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,a.Button)(e,"","Insert","primary").onAction(()=>t(this.__aiResult)),this.__insertAfterButton=(0,a.Button)(e,"","Insert After","initial").onAction(()=>i(this.__aiResult));let n=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,a.Button)(e,{icon:{name:"ai-assistant"},name:"ai-assistant",tooltip:"Submit"}).onAction(n),this.__tryAgainButton=(0,a.Button)(e,{icon:{name:"update"},name:"update",tooltip:"Try Again",variant:"initial"}).onAction(n),this.promptInput=new a.UITextArea(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});let o=new a.UIBlock(e,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new a.UIForm(e,[new a.UIBlock(e,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(t=>{this.__error.textContent="",this.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);let i=this.getFullElName("","hide","true");this.__results.classList.remove(i),this.__buttons.classList.remove(i),r.Dom.detach(this.__results),r.Dom.append(this.__results,this.__spinner),this.__insertButton.focus()}),r.Dom.append(this.__buttons,o.container),r.Dom.append(this.__body,this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,o.watch)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),c([(0,o.watch)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),c([(0,o.watch)("promptInput:change")],u.prototype,"onChangePromptValue",null),u=c([n.component],u)},25187:function(e,t,i){i(73391),i(12391),i(93183),i(66707),i(41107),i(71255),i(82439),i(61323),i(93079),i(19063),i(19271),i(1255),i(575),i(11317),i(36243),i(23399),i(96111),i(2169),i(42263),i(16233),i(77469),i(23531),i(84571),i(80763),i(3215),i(70045),i(93401),i(76295),i(59483),i(91071),i(61019),i(65517),i(36911),i(20071),i(32309),i(64837),i(79799),i(31571),i(85407),i(59451),i(18363),i(8355),i(58519),i(6687),i(56113),i(9159),i(12019),i(36125),i(9881),i(28545),i(45927),i(52951),i(43809),i(7309),i(68687),i(59495),i(39627),i(767),i(43003),i(72439),i(94529),i(26551),i(96139),i(72253),i(65735),i(83671),i(3115)},36911:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(62843),u=i(2525),d=i(12153);i(50712);var h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p="jodit-wysiwyg_anchors",f=' contenteditable="false"';class m extends l.Plugin{afterInit(e){var t;let i,n,o=e.ed===e.od;o&&e.editor.classList.add(p),(0,s.getContainer)(e,"anchor","style",!0).textContent=(t=o?"."+p:"",i=["id","name"].map(e=>`.jodit-wysiwyg${t} a[${e}]:not([href]):empty::before`).join(","),n=`url("data:image/svg+xml,${encodeURIComponent(d.Icon.get("anchor"))}") center/contain no-repeat`,`${i}{display:inline-block;width:.75em;height:1em;margin:0 .1em;vertical-align:-.15em;background-color:var(--jd-color-icon,#4c4c4c);-webkit-mask:${n};mask:${n};cursor:pointer;content:''}`),e.e.on("generateAnchorForm.anchor",this.__generateForm).on("clickA touchstartA",this.__onClickA,{top:!0})}__onClickA(e,t){var i;let{j:n}=this;if(!n.o.readonly&&(0,a.isAnchor)(e))return n.e.stopPropagation((0,a.camelCase)((null!=(i=null==t?void 0:t.type)?i:"click")+"_a")),n.e.fire("showPopup",e,()=>(0,a.position)(e,n),"anchor",!0),!1}onChange(){let{j:e}=this;e.isInDestruct||e.getMode()===n.MODE_SOURCE||(0,a.getAnchors)(e.editor).forEach(g)}onAfterGetValueFromEditor(e){e.value=function(e){if(!e.includes(f))return e;let t="",i=0,n=0;for(;;){let o=e.indexOf("<",n);if(-1===o)break;let r=e.indexOf(">",o);if(-1===r)break;if(e.startsWith("<a",o)&&/\s/.test(e.charAt(o+2))&&e.startsWith("</a>",r+1)){let n=e.slice(o,r),s=n.indexOf(f);-1===s||/\shref=/.test(n)||(t+=e.slice(i,o+s),i=o+s+f.length)}n=r+1}return 0===i?e:t+e.slice(i)}(e.value)}onBeforePasteInsert(e){if(r.Dom.isElement(e)||r.Dom.isFragment(e))return void this.__renameCopies(e);if(!(0,a.isString)(e)||!/<a\s/i.test(e))return;let t=this.j.createInside.element("template");if(t.innerHTML=e,this.__renameCopies(t.content))return t.innerHTML}__generateForm(e,t){let{j:i}=this,o=(0,a.isAnchor)(e)?e:null,s=new u.UIInput(i,{name:"name",ref:"name_input",label:"Anchor",required:!0}),l=[new c.UIButton(i,{name:"insert",type:"submit",variant:"primary",text:o?"Update":"Insert"})];o&&(s.value=(0,a.getAnchorName)(o),l.unshift(new c.UIButton(i,{name:"remove",variant:"default",text:"Remove"}).onAction(()=>{i.o.readonly||(i.s.restore(),r.Dom.safeRemove(o),i.synchronizeValues()),t()})));let d=new u.UIForm(i,[new u.UIBlock(i,[s]),new u.UIBlock(i,l,{align:"full"})]);return o&&(this.__dropForm(),this.__form=d,i.e.on(d.container,"keydown",e=>{e.key===n.KEY_ESC&&(t(),i.s.restore())})),d.onSubmit(()=>{if(i.o.readonly)return t(),!1;let e=s.value.trim().replace(/^#/,""),n=e?/\s/.test(e)?"The name cannot contain spaces":this.__isTaken(e,o)?"This name is already in use":"":"Please fill out this field";return n?(s.error=n,s.focus()):(i.s.restore(),o?this.__rename(o,e):this.__insert(e),i.synchronizeValues(),t()),!1}),i.async.requestIdleCallback(()=>s.focus()),d}__dropForm(){let e=this.__form;this.__form=null,e&&!e.isInDestruct&&(this.j.e.off(e.container,"keydown"),e.destruct())}__isTaken(e,t){return(0,a.toArray)(this.j.editor.querySelectorAll("[id], a[name]")).some(i=>i!==t&&(i.id===e||(0,a.isAnchor)(i)&&(0,a.attr)(i,"name")===e))}__insert(e){let{j:t}=this,i=t.createInside.element("a",{id:e}),n=t.s.range;g(i),n.collapsed||(n.collapse(!0),t.s.selectRange(n));let o=r.Dom.closest(n.startContainer,"a",t.editor);o?(r.Dom.before(o,i),t.s.setCursorAfter(i)):t.s.insertNode(i,!0,!1)}__rename(e,t){let i=(0,a.getAnchorName)(e),n=this.__isTaken(i,e);["id","name"].forEach(i=>{e.hasAttribute(i)&&(0,a.attr)(e,i,t)}),n||(0,a.toArray)(this.j.editor.querySelectorAll("a[href]")).forEach(e=>{(0,a.attr)(e,"href")==="#"+i&&(0,a.attr)(e,"href","#"+t)})}__renameCopies(e){let t=new Set((0,a.toArray)(e.querySelectorAll("[id], a[name]")).map(e=>e.id||(0,a.attr)(e,"name"))),i=new Map;return((0,a.isAnchor)(e)?[e]:(0,a.getAnchors)(e)).forEach(e=>{let n=(0,a.getAnchorName)(e);if(!this.__isTaken(n,null))return;let o=n;for(let e=2;t.has(o)||this.__isTaken(o,null);e+=1)o=`${n}-${e}`;["id","name"].forEach(t=>{e.hasAttribute(t)&&(0,a.attr)(e,t,o)}),t.add(o),i.set(n,o)}),!!i.size&&((0,a.toArray)(e.querySelectorAll("a[href]")).forEach(e=>{var t;let n=null!=(t=(0,a.attr)(e,"href"))?t:"",o="#"===n[0]&&i.get(n.slice(1));o&&(0,a.attr)(e,"href","#"+o)}),!0)}beforeDestruct(e){this.__dropForm(),e.editor.classList.remove(p),e.e.off("generateAnchorForm.anchor",this.__generateForm).off("clickA touchstartA",this.__onClickA)}constructor(){super(...arguments),this.buttons=[{name:"anchor",group:"insert"}],this.__form=null}}function g(e){"false"!==(0,a.attr)(e,"contenteditable")&&(0,a.attr)(e,"contenteditable",!1)}h([o.autobind],m.prototype,"__onClickA",null),h([(0,o.watch)([":change",":afterInit",":afterSetMode"]),(0,o.debounce)()],m.prototype,"onChange",null),h([(0,o.watch)(":afterGetValueFromEditor")],m.prototype,"onAfterGetValueFromEditor",null),h([(0,o.watch)(":beforePasteInsert")],m.prototype,"onBeforePasteInsert",null),h([o.autobind],m.prototype,"__generateForm",null),s.pluginSystem.add("anchor",m)},50712:function(e,t,i){var n=i(6441);i(24526),n.Config.prototype.controls.anchor={popup:(e,t,i)=>e.e.fire("generateAnchorForm.anchor",null,i),tooltip:"Insert anchor"},n.Config.prototype.popup.anchor=(e,t,i)=>e.e.fire("generateAnchorForm.anchor",t,i)},93183:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(23282),a=i(50911),l=i(45124);i(32496);var c=i(11338),u=i(14630),d=i(63785);class h extends a.Plugin{afterInit(e){e.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:e.o.delete.hotkeys.backspaceSentence})}beforeDestruct(e){e.e.off("afterCommand.delete")}onDelete(e,t="char"){let i=this.j,r=i.selection;if(r.isFocused()||r.focus(),!r.isInsideArea)return;if((0,c.checkNotCollapsed)(i))return i.e.fire("backSpaceAfterDelete",e),!1;let a=r.range,d=i.createInside.text(n.INVISIBLE_SPACE);try{if(o.Dom.safeInsertNode(a,d),!o.Dom.isOrContains(i.editor,d))return;let c=o.Dom.closest(d,e=>o.Dom.isElement(e)&&e.hasAttribute("contenteditable")&&!o.Dom.isContentEditable(e.parentNode,i.editor),i.editor);if(c&&r.cursorInTheEdge(e,c,d)||i.e.fire("backSpaceBeforeCases",e,d))return!1;(0,l.moveNodeInsideStart)(i,d,e);let h=i.o.delete.disableCases;if(u.casesMap.some(([o,r])=>{if(!(h&&h.has(o))&&(0,s.isFunction)(r)&&r(i,d,e,t))return n.IS_PROD,!0}))return!1}catch(e){throw n.IS_PROD,e}finally{i.e.fire("backSpaceAfterDelete",e,d),this.moveCaretToTextBefore(d),this.safeRemoveEmptyNode(d)}return!1}moveCaretToTextBefore(e){var t,i;let{jodit:n}=this,{range:r}=n.s;if(!e.parentNode)return;let s=n.ed.createRange();if(s.selectNode(e),!r.collapsed||!s.isPointInRange(r.startContainer,r.startOffset))return;let a=e.previousSibling;for(;o.Dom.isText(a)&&!/\S|\u00A0/.test(a.data);)a=a.previousSibling;let l=o.Dom.isText(a)?a:(0,d.findMostNestedNeighbor)(e,!1,n.editor,!0),c=o.Dom.closest(l,"a",n.editor);o.Dom.isText(l)&&o.Dom.isContentEditable(l,n.editor)&&(!c||o.Dom.isOrContains(c,e))&&o.Dom.closest(l,o.Dom.isBlock,n.editor)===o.Dom.closest(e,o.Dom.isBlock,n.editor)&&(r.setStart(l,null!=(i=null==(t=l.nodeValue)?void 0:t.length)?i:0),r.collapse(!0),n.s.selectRange(r))}safeRemoveEmptyNode(e){var t,i,r;let{range:s}=this.j.s;o.Dom.isText(e)&&e.nodeValue!==n.INVISIBLE_SPACE&&(null==(t=e.nodeValue)?void 0:t.startsWith(n.INVISIBLE_SPACE))?e.deleteData(0,n.INVISIBLE_SPACE.length):(s.startContainer===e&&(e.previousSibling?o.Dom.isText(e.previousSibling)?s.setStart(e.previousSibling,null!=(r=null==(i=e.previousSibling.nodeValue)?void 0:i.length)?r:0):s.setStartAfter(e.previousSibling):e.nextSibling&&(o.Dom.isText(e.nextSibling)?s.setStart(e.nextSibling,0):s.setStartBefore(e.nextSibling)),s.collapse(!0),this.j.s.selectRange(s)),o.Dom.safeRemove(e))}}h.requires=["hotkeys"],r.pluginSystem.add("backspace",h)},62845:function(e,t,i){i.d(t,{checkJoinNeighbors:function(){return s}});var n=i(82758),o=i(2748),r=i(63785);function s(e,t,i){return function e(t,i,s,h){if(function(e,t,i){let n=o.Dom.findNotEmptySibling(t,i);if(!u(e,n))return!1;let s=(0,r.getMoveFilter)(e);if(i)for(let e=t;e&&!o.Dom.isBlock(e);){let t=e.nextSibling;if(o.Dom.isTag(e,"br")){o.Dom.safeRemove(e);break}s(e)?o.Dom.append(n,e):o.Dom.safeRemove(e),e=t}else{let t=o.Dom.findNotEmptySibling(n,!1);!t||o.Dom.isBlock(t)||o.Dom.isTag(t,"br")||o.Dom.after(n,e.createInside.element("br")),o.Dom.unwrap(n)}return e.s.setCursorBefore(t),!0}(t,i,s))return!0;let p=o.Dom.findNotEmptySibling(i,s);if(u(t,function(e,t){var i;let n=e;for(;o.Dom.isElement(n)&&!o.Dom.isBlock(n);){let e=Array.from(n.childNodes).filter(e=>!o.Dom.isEmptyTextNode(e));n=null!=(i=t?e[e.length-1]:e[0])?i:null}return n===e?null:n}(p,s))&&a(p,t.editor))return e(t,i,s,h);let f=i,m=f;for(;f&&!o.Dom.findNotEmptySibling(f,s)&&f.parentElement!==t.editor;)m=f=f.parentElement;if(o.Dom.isElement(m)&&o.Dom.isContentEditable(m,t.editor)){var g,v;let u,p,f,b;if(o.Dom.up(i,o.Dom.isCell,m,!0))return!1;let y=o.Dom.findNotEmptySibling(m,s);if(y&&(a(o.Dom.furthest(i,e=>o.Dom.isElement(e)&&!o.Dom.isBlock(e)&&!o.Dom.isOrContains(e,y),t.editor),t.editor)||a(y,t.editor)))return e(t,i,s,h);if(o.Dom.isTag(y,"br"))return o.Dom.safeRemove(y),t.s.setCursorBefore(i),!0;if(s&&o.Dom.isTag(y,"table"))return t.s.setCursorBefore(i),!0;if(o.Dom.isElement(y)&&!o.Dom.isContentEditable(y,t.editor))return!1;let _=(g=m,(u=o.Dom.up(i,o.Dom.isBlock,g))?o.Dom.isLeaf(u)&&u.parentElement?u.parentElement:u:g);if(!h&&y&&function(e,t,i,r,s){if(s||o.Dom.isTag(r,"table")||o.Dom.isTag(r,n.INSEPARABLE_TAGS)||!o.Dom.isContentEditable(r,e.editor))return!1;let a=o.Dom.up(t,o.Dom.isBlock,i,!0),u=l(r,!1,e.editor);if(!a||!u||!o.Dom.isContentEditable(u,e.editor)||!(o.Dom.isLeaf(a)||o.Dom.isLeaf(u))||o.Dom.isLeaf(a.parentElement)||o.Dom.isLeaf(u.parentElement)||c(a)===c(u))return!1;let d=a.parentElement;o.Dom.isLeaf(a)&&o.Dom.isLeaf(u)?o.Dom.before(u,a):o.Dom.isLeaf(a)?o.Dom.before(u,function(e){let t=e.parentElement,i=t.cloneNode(!1),n=Array.from(t.children).indexOf(e);if(n&&(i.removeAttribute("id"),o.Dom.isTag(t,"ol"))){let e=parseInt(t.getAttribute("start")||"1",10)||1;i.setAttribute("start",e+n+"")}return o.Dom.append(i,e),i}(a)):o.Dom.before(u.parentElement,a);let h=d;for(;h&&h!==e.editor&&o.Dom.isEmpty(h);){let e=h.parentElement;o.Dom.safeRemove(h),h=e}return!0}(t,i,_,y,s))return e(t,i,s,!0)||t.s.setCursorBefore(i),!0;if(y&&(function(e,t,i,s,a){if(a||!(o.Dom.isList(i)||o.Dom.isList(s)))return!1;let l=o.Dom.up(t,o.Dom.isBlock,i,!0),c=o.Dom.isList(s)?s.firstElementChild:s;if(!l||!c||o.Dom.isTag(c,n.INSEPARABLE_TAGS)||o.Dom.isTag(c,"table"))return!1;if(!o.Dom.isEmpty(c)){let t=[];for(let e=c.firstChild;e&&!o.Dom.isBlock(e);e=e.nextSibling)t.push(e);if(!t.length)return!1;let i=(0,r.getMoveFilter)(e);t.forEach(e=>i(e)?o.Dom.append(l,e):o.Dom.safeRemove(e))}let u=c;for(;u&&u!==e.editor&&o.Dom.isEmpty(u);){let e=u.parentElement;o.Dom.safeRemove(u),u=e}return!0}(t,i,_,y,s)||(v=y,p=o.Dom.isTag(v,n.LIST_TAGS),f=o.Dom.isTag(_,n.LIST_TAGS),b=(e,t)=>t?e.firstElementChild:e.lastElementChild,f?(v=t.createInside.element(t.o.enterBlock),o.Dom.before(_,v),d(t,b(_,s),v,s)):!!v&&!!p&&!f&&d(t,_,b(v,!s),s))||function(e,t,i,n){if(o.Dom.isBlock(i)||!o.Dom.isBlock(t)||o.Dom.isList(t)||t.parentNode!==i.parentNode||Array.from(t.childNodes).some(e=>o.Dom.isBlock(e)))return!1;if(n){let i=o.Dom.findNotEmptySibling(t,!1);return!i||o.Dom.isBlock(i)||o.Dom.isTag(i,"br")||o.Dom.after(t,e.createInside.element("br")),o.Dom.unwrap(t),!0}let s=(0,r.getMoveFilter)(e);for(let e=i;e&&!o.Dom.isBlock(e);){let i=e.nextSibling;if(o.Dom.isTag(e,"br")){o.Dom.safeRemove(e);break}s(e)?o.Dom.append(t,e):o.Dom.safeRemove(e),e=i}return!0}(t,_,y,s)||d(t,_,l(function(e,t){if(!o.Dom.isTag(e,"table"))return e;let i=[];return o.Dom.each(e,e=>{o.Dom.isCell(e)&&i.push(e)}),i.length?i[t?i.length-1:0]:null}(y,s),s,t.editor),s)))return t.s.setCursorBefore(i),!0}return!1}(e,t,i,!1)}function a(e,t){if(!o.Dom.isElement(e)||o.Dom.isBlock(e))return!1;let i=e=>o.Dom.isBlock(e)&&!o.Dom.isTag(e,n.NO_EMPTY_TAGS);Array.from(e.childNodes).forEach(e=>a(e,t));let r=Array.from(e.childNodes);if(!r.some(i))return!1;let s=null;for(let l of r){if(!i(l)){s||o.Dom.isEmptyTextNode(l)||(s=e.cloneNode(!1),o.Dom.before(l,s)),s&&o.Dom.append(s,l);continue}if(s=null,o.Dom.isTag(l,n.INSEPARABLE_TAGS)||!o.Dom.isContentEditable(l,t))continue;let r=e.cloneNode(!1);o.Dom.moveContent(l,r),o.Dom.append(l,r),a(r,t)}return o.Dom.unwrap(e),!0}function l(e,t,i){let r=e;for(;r;){let e=t?r.lastChild:r.firstChild,s=e&&o.Dom.isEmptyTextNode(e)?o.Dom.findNotEmptySibling(e,t):e;if(!o.Dom.isBlock(s)||o.Dom.isTag(s,n.INSEPARABLE_TAGS)||o.Dom.isTag(s,"table")||!o.Dom.isContentEditable(s,i))break;r=s}return r}function c(e){let t=e.parentElement;for(;o.Dom.isList(t)||o.Dom.isLeaf(t);)t=t.parentElement;return t}function u(e,t){return o.Dom.isElement(t)&&o.Dom.isBlock(t)&&!o.Dom.isList(t)&&!o.Dom.isTag(t,"table")&&!o.Dom.isCell(t)&&o.Dom.isContentEditable(t,e.editor)&&!Array.from(t.childNodes).some(e=>o.Dom.isBlock(e))}function d(e,t,i,n){if(t&&o.Dom.isElement(i)){o.Dom.moveContent(t,i,!n,(0,r.getMoveFilter)(e));let s=t;for(;s&&s!==e.editor&&o.Dom.isEmpty(s);){let e=s.parentElement;o.Dom.safeRemove(s),s=e}return!0}return!1}},91748:function(e,t,i){i.d(t,{checkJoinTwoLists:function(){return s}});var n=i(2748),o=i(37790),r=i(63785);function s(e,t,i){let s=n.Dom.findSibling(t,i),a=n.Dom.findSibling(t,!i);if(!n.Dom.closest(t,n.Dom.isElement,e.editor)&&n.Dom.isList(s)&&n.Dom.isList(a)&&n.Dom.isTag(s.lastElementChild,"li")&&n.Dom.isTag(a.firstElementChild,"li")){let{setCursorBefore:l,setCursorAfter:c}=e.s,u=s.lastElementChild,d=a.firstElementChild;return(0,o.call)(i?n.Dom.prepend:n.Dom.append,d,t),n.Dom.moveContent(a,s,!i,(0,r.getMoveFilter)(e)),n.Dom.safeRemove(a),(0,o.call)(i?n.Dom.append:n.Dom.prepend,u,t),(0,o.call)(i?l:c,t),!0}return!1}},11338:function(e,t,i){i.d(t,{checkNotCollapsed:function(){return n}});function n(e){return!e.s.isCollapsed()&&(e.execCommand("delete",!1,!0),!0)}},73792:function(e,t,i){i.d(t,{checkRemoveChar:function(){return function e(t,i,c,u,d=!1){var h,p;let f,m=c?-1:1,g=o.Dom.sibling(i,!c),v=o.Dom.sibling(i,c),b=null,y=!1;for(v||(v=a(i,c,t.editor));v&&(o.Dom.isText(v)||o.Dom.isInlineBlock(v));){for(;o.Dom.isInlineBlock(v);)v=c?null==v?void 0:v.lastChild:null==v?void 0:v.firstChild;if(!v||o.Dom.isBlock(v))break;if(null==(h=v.nodeValue)?void 0:h.length){if(d&&l(function(e,t){let i=(0,r.toArray)(e),o=t?-1:1,s=t?i.length-1:0;for(;i[s]===n.INVISIBLE_SPACE;)s+=o;return i[s]}(v.nodeValue,c)))break;f=function(e,t,i,s){let a=(0,r.toArray)(e.nodeValue),l=a.length,c=t?l-1:0;if(a[c]===n.INVISIBLE_SPACE)for(;a[c]===n.INVISIBLE_SPACE;)c+=i;let u=a[c];if(a[c+i]===n.INVISIBLE_SPACE){for(c+=i;a[c]===n.INVISIBLE_SPACE;)c+=i;c+=t?1:-1}return a=t&&c<0?[]:a.slice(t?0:c+1,t?c:l),function(e,t,i){var s;if(!e||!o.Dom.isText(e)||(!t?/ $/:/^ /).test(null!=(s=e.nodeValue)?s:"")||!(0,r.trimInv)(e.nodeValue||"").length)for(let e=t?i.length-1:0;t?e>=0:e<i.length;e+=t?-1:1)if(" "===i[e])i[e]=n.NBSP_SPACE;else break}(s,t,a),e.nodeValue=a.join(""),u}(v,c,m,g),!v.nodeValue.length&&o.Dom.isInlineBlock(v.parentNode)&&(v.nodeValue=n.INVISIBLE_SPACE)}if((null==(p=v.nodeValue)?void 0:p.length)||(b=v),!(0,r.isVoid)(f)&&f!==n.INVISIBLE_SPACE){(function(t,i,n,s,a,c){(0,r.call)(t?o.Dom.after:o.Dom.before,i,n);let u="word"===s&&!l(a);("sentence"===s||u||"word"===s&&t)&&e(c,n,t,s,u&&t)})(c,v,i,u,f,t),y=!0;break}let s=a(v,c,t.editor);b&&(o.Dom.safeRemove(b),b=null),v=s}return b&&o.Dom.safeRemove(b),y&&(function(e){let t=e.parentElement;for(;t&&o.Dom.isInlineBlock(t)&&o.Dom.isTag(t,"a");){let i=t.parentElement;o.Dom.isEmpty(t)&&(o.Dom.after(t,e),o.Dom.safeRemove(t)),t=i}}(i),(0,s.addBRInsideEmptyBlock)(t,i),t.s.setCursorBefore(i),o.Dom.isTag(i.previousSibling,"br")&&!o.Dom.findNotEmptySibling(i,!1)&&o.Dom.after(i,t.createInside.element("br"))),y}}});var n=i(82758),o=i(22732),r=i(21537),s=i(63785);function a(e,t,i){let n=o.Dom.sibling(e,t);return!n&&e.parentNode&&e.parentNode!==i&&(n=(0,s.findMostNestedNeighbor)(e,!t,i,!0))&&o.Dom.closest(e,o.Dom.isBlock,i)!==o.Dom.closest(n,o.Dom.isBlock,i)?null:n}function l(e){return" "===e||e===n.NBSP_SPACE}},87536:function(e,t,i){i.d(t,{checkRemoveContentNotEditable:function(){return a}});var n=i(22732),o=i(21537),r=i(45124),s=i(62845);function a(e,t,i){let a=t,c=n.Dom.findSibling(a,i);for(;!c&&a.parentElement&&a.parentElement!==e.editor&&!n.Dom.isCell(a.parentElement);)if(a=a.parentElement,c=n.Dom.findSibling(a,i),i&&n.Dom.isLeaf(a)&&!(n.Dom.isLeaf(c)&&l(e,c)))return!1;if(l(e,c)){if(n.Dom.isBlock(c)){let o=!(i&&n.Dom.isLeaf(c));n.Dom.safeRemove(c),o&&(0,s.checkJoinNeighbors)(e,t,i)}else(0,o.call)(i?n.Dom.before:n.Dom.after,c,t),n.Dom.safeRemove(c),(0,r.moveNodeInsideStart)(e,t,i);return(0,o.call)(i?e.s.setCursorBefore:e.s.setCursorAfter,t),!0}return!1}function l(e,t){return n.Dom.isElement(t)&&!n.Dom.isContentEditable(t,e.editor)}},12474:function(e,t,i){i.d(t,{checkRemoveEmptyNeighbor:function(){return o}});var n=i(2748);function o(e,t,i){let o=n.Dom.closest(t,n.Dom.isElement,e.editor);if(!o)return!1;let r=n.Dom.findNotEmptySibling(o,i);return!!(r&&n.Dom.isEmpty(r))&&(n.Dom.safeRemove(r),e.s.setCursorBefore(t),!0)}},58940:function(e,t,i){i.d(t,{checkRemoveEmptyParent:function(){return s}});var n=i(82758),o=i(22732),r=i(91748);function s(e,t,i){let s=!1,{setCursorBefore:a,setCursorIn:l}=e.s,c=o.Dom.closest(t,o.Dom.isElement,e.editor);if(!c||!o.Dom.isEmpty(c))return!1;do if(c&&o.Dom.isEmpty(c)&&!o.Dom.isCell(c)){o.Dom.after(c,t);let i=o.Dom.closest(c,e=>o.Dom.isElement(e)&&e!==c,e.editor);o.Dom.safeRemove(c),s=!0,c=i}else break;while(c)if(s&&(0,r.checkJoinTwoLists)(e,t,i))return!0;let u=o.Dom.findNotEmptyNeighbor(t,i,e.editor);return!u||o.Dom.isText(u)||o.Dom.isTag(u,n.INSEPARABLE_TAGS)?a(t):l(u,!i),s}},56825:function(e,t,i){i.d(t,{checkRemoveUnbreakableElement:function(){return s}});var n=i(82758),o=i(2748),r=i(58940);function s(e,t,i){let s=o.Dom.findSibling(t,i);return!!(o.Dom.isElement(s)&&(o.Dom.isTag(s,n.INSEPARABLE_TAGS)||o.Dom.isEmpty(s)))&&(o.Dom.safeRemove(s),o.Dom.isTag(s,"br")&&!o.Dom.findNotEmptySibling(t,!1)&&o.Dom.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),o.Dom.isTag(s,"br")&&(0,r.checkRemoveEmptyParent)(e,t,i),!0)}},90240:function(e,t,i){i.d(t,{checkTableCell:function(){return o}});var n=i(2748);function o(e,t){let i=t.parentElement;return!!n.Dom.isCell(i)}},68034:function(e,t,i){i.d(t,{checkUnwrapFirstListItem:function(){return r}});var n=i(2748),o=i(43555);function r(e,t,i){var r;let s=n.Dom.closest(t,n.Dom.isElement,e.editor),{s:a}=e;if(n.Dom.isLeaf(s)&&(null==(r=null==s?void 0:s.parentElement)?void 0:r[i?"firstElementChild":"lastElementChild"])===s&&a.cursorInTheEdge(i,s)){let r=s.parentElement,l=e.createInside.element(e.o.enterBlock);return(0,o.call)(i?n.Dom.before:n.Dom.after,r,l),n.Dom.moveContent(s,l),n.Dom.safeRemove(s),n.Dom.isEmpty(r)&&n.Dom.safeRemove(r),(0,o.call)(i?a.setCursorBefore:a.setCursorAfter,t),!0}return!1}},70921:function(e,t,i){i.d(t,{checkUnwrapListItem:function(){return o}});var n=i(2748);function o(e,t,i){if(!i)return!1;let o=n.Dom.closest(t,"li",e.editor),r=o?o.parentElement:null;if(!o||!n.Dom.isList(r)||!o.previousElementSibling||n.Dom.isEmpty(o)||Array.from(o.childNodes).some(e=>n.Dom.isBlock(e))||!e.s.cursorInTheEdge(!0,o))return!1;let s=e.createInside.element(e.o.enterBlock);if(n.Dom.after(r,s),o.nextElementSibling){let e=r.cloneNode(!1);for(e.removeAttribute("id");o.nextSibling;)n.Dom.append(e,o.nextSibling);if(n.Dom.isTag(r,"ol")){let t=parseInt(r.getAttribute("start")||"1",10)||1;e.setAttribute("start",t+r.children.length-1+"")}n.Dom.after(s,e)}return n.Dom.moveContent(o,s),n.Dom.safeRemove(o),e.s.setCursorBefore(t),!0}},14630:function(e,t,i){var n=i(62845),o=i(91748),r=i(73792),s=i(87536),a=i(12474),l=i(58940),c=i(56825),u=i(90240),d=i(68034),h=i(70921);let p=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",s.checkRemoveContentNotEditable],["remove-char",r.checkRemoveChar],["table-cell",u.checkTableCell],["remove-empty-parent",l.checkRemoveEmptyParent],["remove-empty-neighbor",a.checkRemoveEmptyNeighbor],["join-two-lists",o.checkJoinTwoLists],["unwrap-list-item",h.checkUnwrapListItem],["join-neighbors",n.checkJoinNeighbors],["unwrap-first-list-item",d.checkUnwrapFirstListItem]];p.map(([,e])=>e),i.d(t,["casesMap",0,p])},32496:function(e,t,i){var n=i(82758);i(6441).Config.prototype.delete={hotkeys:{delete:n.IS_MAC?["delete"]:["delete","cmd+backspace"],deleteWord:n.IS_MAC?["ctrl+delete"]:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:n.IS_MAC?[]:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(e,t,i){i.d(t,{addBRInsideEmptyBlock:function(){return s},findMostNestedNeighbor:function(){return o},getMoveFilter:function(){return r}});var n=i(22732);function o(e,t,i,r=!1){let s=e=>t?e.firstChild:e.lastChild,a=n.Dom.findNotEmptyNeighbor(e,!t,i);if(r&&n.Dom.isElement(a)&&!n.Dom.isInlineBlock(a))return null;if(a)do{if(!s(a))return a;a=s(a)}while(a)return null}function r(e){return t=>!0!==e.e.fire("backSpaceIsMovedIgnore",t)}function s(e,t){t.parentElement!==e.editor&&n.Dom.isBlock(t.parentElement)&&n.Dom.each(t.parentElement,n.Dom.isEmptyTextNode)&&n.Dom.after(t,e.createInside.element("br"))}},41107:function(e,t,i){var n=i(580),o=i(21537),r=i(12153),s=i(6441);i(73674);var a=i(820),l=i(53651),c=i(16020),u=i(89758),d=i(98527),h=i(51855);n.pluginSystem.add("bold",function(e){let t=t=>{let i,n=s.Config.defaultOptions.controls[t],r={...n.css};Object.keys(r).forEach(e=>{i||(i={}),i[e]=(0,o.isArray)(r[e])?r[e][0]:r[e]});let a=n.tags?n.tags[0]:void 0;return e.s.commitStyle({element:a,exclude:"sub"===a?["sup"]:"sup"===a?["sub"]:[]}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(t=>{e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(t=>{e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),r.Icon.set("bold",a.default).set("italic",l.default).set("strikethrough",c.default).set("subscript",u.default).set("superscript",d.default).set("underline",h.default)},73674:function(e,t,i){var n=i(6441);n.Config.prototype.controls.subscript={tags:["sub"],tooltip:"Subscript"},n.Config.prototype.controls.superscript={tags:["sup"],tooltip:"Superscript"},n.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},n.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},n.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},n.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 4h7a4 4 0 0 1 0 8H6V4Zm0 8h8a4 4 0 0 1 0 8H6v-8Z"/> </g> </svg> '},53651:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M10 4h9M5 20h9M15 4 9 20"/> </g> </svg> '},16020:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M17 6c-1-1.5-2.5-2-5-2-3 0-5 1.5-5 4 0 1.8 1.5 3 5 4s5 2.2 5 4c0 2.5-2 4-5 4-2.5 0-4-.5-5-2M3 12h18"/> </g> </svg> '},89758:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 4 9 12M12 4 3 16M16 16a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},98527:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 8 9 12M12 8 3 20M16 4a2 2 0 0 1 4 0c0 1.5-4 3-4 5h4"/> </g> </svg> '},51855:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M6 3v8a6 6 0 0 0 12 0V3M4 21h16"/> </g> </svg> '},71255:function(e,t,i){var n=i(2748),o=i(580),r=i(37790),s=i(50911),a=i(12153),l=i(6441),c=i(31151);l.Config.prototype.controls.classSpan={command:"applyClassName",exec:r.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(e,t){let i=e.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,e.editor)||e.editor;return!!(t.control.args&&o.classList.contains(t.control.args[0].toString()))}return!1},isActive(e,t){let i=e.s.current();if(i){let o=n.Dom.closest(i,n.Dom.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach(e=>{o.classList.contains(e)&&(r=!0)}),!!(o&&o!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:(e,t,i)=>`<span class="${t}">${e.i18n(i)}</span>`,tooltip:"Insert className"};class u extends s.Plugin{afterInit(e){e.registerCommand("applyClassName",(t,i,n)=>(e.s.commitStyle({attributes:{class:n}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}o.pluginSystem.add("classSpan",u),a.Icon.set("class-span",c.default)},31151:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 4H5v16h3m8-16h3v16h-3M9 15l3-7 3 7m-5-2h4"/> </g> </svg> '},82439:function(e,t,i){var n=i(65478),o=i(2748),r=i(70071),s=i(580),a=i(86518),l=i(20356);i(46776);var c=i(80973),u=i(59498),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends l.Plugin{afterInit(){this.onChangeCleanHTML()}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}onInputRemovePlaceholderBr(e){var t;this.isEditMode&&("input"!==e.type||!e.isComposing&&(null==(t=e.inputType)?void 0:t.startsWith("insert")))&&(0,u.removePlaceholderBr)(this.j)}startWalker(){let{jodit:e}=this,t=(0,u.getHash)(this.j.o.cleanHTML.allowTags),i=(0,u.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",n=>(0,u.visitNodeWalker)(e,n,t,i,this.currentSelectionNode)).on("end",e=>{this.j.e.fire(e?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?(0,u.removeFormatForWord)(this.j):(0,u.removeFormatForSelection)(this.j),!1}onAfterSetNativeEditorValue(){(0,a.safeHTML)(this.j.editor,this.j.o.cleanHTML)}onBeforeSetNativeEditorValue(e){let[t,i]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return t.innerHTML=e.value,this.j.e.fire("safeHTML",t),this.__replaceOldTags(t),e.value=t.innerHTML,(0,a.safeHTML)(t,{safeJavaScriptLink:!0,removeOnError:!0}),o.Dom.safeRemove(i),!1}__replaceOldTags(e){let{replaceOldTags:t,disableCleanFilter:i}=this.j.o.cleanHTML;!t||(null==i?void 0:i.has("replaceOldTags"))||o.Dom.each(e,e=>{(0,c.replaceOldTags)(this.j,e,!1)})}onAfterGetValueFromEditor(e){if(this.__singleQuotesInFontFamily(e),this.__removeTrailingBr(e),!this.j.o.cleanHTML.collapseEmptyValueToEmptyString)return;let t=/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.exec(e.value.trim());t&&/^(p|div|h[1-6]|blockquote|pre)$/i.test(t[1])&&(e.value="")}__removeTrailingBr(e){if(!this.j.o.cleanHTML.removeTrailingBr||!/<br/i.test(e.value))return;let t=this.j.c.div();t.innerHTML=e.value,[t,...t.querySelectorAll("p, div, li, td, th, h1, h2, h3, h4, h5, h6, blockquote")].forEach(e=>{var t;let i=e.lastChild;if(!o.Dom.isTag(i,"br"))return;let n=i.previousSibling;!n||o.Dom.isTag(n,"br")||(!o.Dom.isText(n)||(null==(t=n.nodeValue)?void 0:t.trim())||n.previousSibling)&&o.Dom.safeRemove(i)}),e.value=t.innerHTML}__singleQuotesInFontFamily(e){this.j.o.cleanHTML.singleQuotesInFontFamily&&e.value.includes("&quot;")&&(e.value=e.value.replace(/\sstyle="([^"]*)"/gi,(e,t)=>{if(!t.includes("&quot;")||!/font-family/i.test(t))return e;let i=t.replace(/font-family\s*:(?:&quot;|[^;])*/gi,e=>e.includes("'")?e:e.replace(/&quot;/g,"'"));return e.replace(t,i)}))}onSafeHTML(e){let t=this.j.o.cleanHTML.sanitizer;t&&(e.innerHTML=t(e.innerHTML)),(0,a.safeHTML)(e,this.j.o.cleanHTML)}beforeDestruct(){this.j.e.off("safeHTML",this.onSafeHTML).off("beforeSetNativeEditorValue",this.onBeforeSetNativeEditorValue).off("afterSetNativeEditorValue",this.onAfterSetNativeEditorValue),this.walker.destruct()}constructor(e){super(e),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new r.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout}),e.e.on("safeHTML",this.onSafeHTML).on("beforeSetNativeEditorValue",this.onBeforeSetNativeEditorValue).on("afterSetNativeEditorValue",this.onAfterSetNativeEditorValue)}}d([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),d([(0,n.watch)([":input","jodit.editor:compositionend"])],h.prototype,"onInputRemovePlaceholderBr",null),d([(0,n.hook)("ready")],h.prototype,"startWalker",null),d([(0,n.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),d([n.autobind],h.prototype,"onAfterSetNativeEditorValue",null),d([n.autobind],h.prototype,"onBeforeSetNativeEditorValue",null),d([(0,n.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),d([n.autobind],h.prototype,"onSafeHTML",null),s.pluginSystem.add("cleanHtml",h)},46776:function(e,t,i){var n=i(6441);n.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,singleQuotesInFontFamily:!0,removeTrailingBr:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},n.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"}},83447:function(e,t,i){i.d(t,{getHash:function(){return r}});var n=i(70799),o=i(49055);function r(e){let t=/([^[]*)\[([^\]]+)]/,i=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,s={};return(0,n.isString)(e)?(e.split(i).map(e=>{e=(0,o.trim)(e);let n=t.exec(e),a={};if(n){let e=n[2].split(i);n[1]&&(e.forEach(e=>{e=(0,o.trim)(e);let t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),s[n[1].toUpperCase()]=a)}else s[e.toUpperCase()]=!0}),s):!!e&&(Object.keys(e).forEach(t=>{s[t.toUpperCase()]=e[t]}),s)}},59498:function(e,t,i){i.d(t,{getHash:function(){return n.getHash},removeFormatForSelection:function(){return o.removeFormatForSelection},removeFormatForWord:function(){return r.removeFormatForWord},removePlaceholderBr:function(){return s.removePlaceholderBr},visitNodeWalker:function(){return a.visitNodeWalker}});var n=i(83447);i(84272);var o=i(42312),r=i(70464),s=i(56385),a=i(39516)},15908:function(e,t,i){i.d(t,{isAllowedMediaEmbed:function(){return r}});let n=/^(https?:)?\/\/(www\.|m\.|music\.)?youtube(-nocookie)?\.com\/embed\//i,o=/^(https?:)?\/\/player\.vimeo\.com\/video\//i;function r(e){return n.test(e)||o.test(e)}},84272:function(e,t,i){i.d(t,{isInlineBlock:function(){return s},removeFormatForCollapsedSelection:function(){return r}});var n=i(82758),o=i(2748);function r(e,t){let{s:i}=e,n=t;if(!n){n=e.createInside.fake();let{range:t}=i;o.Dom.safeInsertNode(t,n),t.collapse()}let r=o.Dom.furthest(n,s,e.editor);if(r)if(i.cursorOnTheLeft(r))o.Dom.before(r,n);else if(i.cursorOnTheRight(r))o.Dom.after(r,n);else{let e=i.splitSelection(r);e&&o.Dom.after(e,n)}t||(i.setCursorBefore(n),o.Dom.safeRemove(n))}function s(e){return o.Dom.isInlineBlock(e)&&!o.Dom.isTag(e,n.INSEPARABLE_TAGS)}},42312:function(e,t,i){i.d(t,{removeFormatForSelection:function(){return s}});var n=i(2748),o=i(43555),r=i(84272);function s(e){let{s:t,editor:i,createInside:s}=e,{range:a}=t,l=a.cloneRange(),c=a.cloneRange(),u=s.fake(),d=s.fake();l.collapse(!0),c.collapse(!1),n.Dom.safeInsertNode(l,u),n.Dom.safeInsertNode(c,d),a.setStartBefore(u),a.collapse(!0),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,u),a.setEndAfter(d),a.collapse(!1),t.selectRange(a),(0,r.removeFormatForCollapsedSelection)(e,d);let h=[];n.Dom.between(u,d,e=>{(0,r.isInlineBlock)(e)&&!n.Dom.isTag(e,"a")&&h.push(e),n.Dom.isElement(e)&&(0,o.attr)(e,"style")&&(0,o.attr)(e,"style",null)}),h.forEach(e=>n.Dom.unwrap(e));let p=(e,t)=>{if(!n.Dom.findNotEmptySibling(e,t)){let n=e.parentNode;if(n&&n!==i&&(0,o.attr)(n,"style"))return(0,o.attr)(n,"style",null),p(n,t),!0}};p(u,!0)&&p(d,!1),a.setStartAfter(u),a.setEndBefore(d),t.selectRange(a),n.Dom.safeRemove(u),n.Dom.safeRemove(d)}},70464:function(e,t,i){i.d(t,{removeFormatForWord:function(){return s}});var n=i(82758),o=i(2748),r=i(42312);function s(e){let{range:t}=e.s,i=o.Dom.closest(t.startContainer,o.Dom.isBlock,e.editor);if(!i)return;let n=l(i),s=n.map(e=>o.Dom.isText(e)?e.nodeValue:" ").join(""),d=function(e,t){let i=0;for(let n of e){if(n===t.startContainer)return i+t.startOffset;let e=c(n);if(t.comparePoint(n,o.Dom.isText(n)?e:0)>0)break;i+=e}return i}(n,t);if(!a(s[d-1])||!a(s[d]))return;let h=d,p=d;for(;a(s[h-1]);)h-=1;for(;a(s[p]);)p+=1;let f=e.s.createRange();f.setStart(...u(n,h,!0)),f.setEnd(...u(n,p,!1)),e.s.selectRange(f),(0,r.removeFormatForSelection)(e);let m=e.s.createRange();m.setStart(...u(l(i),d,!1)),e.s.selectRange(m)}function a(e){return!!(e&&e!==n.INVISIBLE_SPACE&&/\S/.test(e))}function l(e){let t=[];return o.Dom.each(e,i=>{!o.Dom.closest(i,o.Dom.isBlock,e)&&(o.Dom.isText(i)||o.Dom.isTag(i,n.INSEPARABLE_TAGS))&&t.push(i)}),t}function c(e){var t,i;return o.Dom.isText(e)?null!=(i=null==(t=e.nodeValue)?void 0:t.length)?i:0:1}function u(e,t,i){var n,r;let s=0,a=null;for(let n of e){let e=c(n);if(o.Dom.isText(n)&&(t<s+e||!i&&t===s+e))return[n,t-s];o.Dom.isText(n)&&(a=n),s+=e}return[a,null!=(r=null==(n=null==a?void 0:a.nodeValue)?void 0:n.length)?r:0]}},56385:function(e,t,i){i.d(t,{removePlaceholderBr:function(){return a}});var n=i(82758),o=i(2748),r=i(49055);function s(e){let t=e.lastChild;for(;o.Dom.isText(t)&&!t.nodeValue;)t=t.previousSibling;return t}function a(e){var t;let i=o.Dom.closest(e.s.current(),o.Dom.isBlock,e.editor);if(!i||!(0,r.trim)(null!=(t=i.textContent)?t:""))return;let a=s(i);for(;o.Dom.isElement(a)&&!o.Dom.isTag(a,n.INSEPARABLE_TAGS)&&!o.Dom.isBlock(a);)a=s(a);!o.Dom.isTag(a,"br")||o.Dom.each(i,e=>{if(e!==a&&o.Dom.isElement(e)&&(o.Dom.isTag(e,n.INSEPARABLE_TAGS)||o.Dom.isBlock(e)||o.Dom.isHTMLElement(e)&&!e.isContentEditable))return!1})&&o.Dom.safeRemove(a)}},82558:function(e,t,i){i.d(t,{allowAttributes:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i,r){let s=r&&n.Dom.isElement(t)&&r[t.nodeName];if(r&&n.Dom.isElement(t)&&!0!==s){if(!s)return i;let e=t.attributes;if(e&&e.length){let n=[];for(let t=0;t<e.length;t+=1){let i=s[e[t].name];i&&(!0===i||i===e[t].value)||n.push(e[t].name)}n.length&&(i=!0),n.forEach(e=>{(0,o.attrRaw)(t,e,null)})}}return i}},1962:function(e,t,i){i.d(t,{convertUnsafeEmbeds:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=e.o.cleanHTML.convertUnsafeEmbeds;if(!r||!n.Dom.isElement(t))return i;let s=t.nodeName.toLowerCase();if(!r.includes(s))return i;let a=(0,o.attr)(t,"data")||(0,o.attr)(t,"src")||(0,o.attr)(t,"movie")||"";if(!a)return n.Dom.safeRemove(t),!0;let l=e.createInside.element("iframe");return(0,o.attr)(l,{src:a,sandbox:"",frameborder:"0",width:(0,o.attr)(t,"width"),height:(0,o.attr)(t,"height")}),n.Dom.replace(t,l,void 0,!1,!0),!0}},39433:function(e,t,i){i.d(t,{fillEmptyParagraph:function(){return s}});var n=i(82758),o=i(2748);let r=new Set(["table","tbody","thead","tfoot","tr"]);function s(e,t,i){if(e.o.cleanHTML.fillEmptyParagraph&&o.Dom.isBlock(t)&&o.Dom.isEmpty(t,n.INSEPARABLE_TAGS)&&!o.Dom.isTag(t,r)){let i=e.createInside.element("br");return o.Dom.append(t,i),!0}return i}},45235:function(e,t,i){i.r(t),i.d(t,{allowAttributes:function(){return n.allowAttributes},convertUnsafeEmbeds:function(){return o.convertUnsafeEmbeds},fillEmptyParagraph:function(){return r.fillEmptyParagraph},removeEmptyTextNode:function(){return s.removeEmptyTextNode},removeInvTextNodes:function(){return a.removeInvTextNodes},replaceOldTags:function(){return l.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return u.sandboxIframesInContent},sanitizeAttributes:function(){return d.sanitizeAttributes},sanitizeStyles:function(){return h.sanitizeStyles},tryRemoveNode:function(){return p.tryRemoveNode}});var n=i(82558),o=i(1962),r=i(39433),s=i(53392),a=i(25813),l=i(80973),c=i(95614),u=i(85978),d=i(384),h=i(15583),p=i(28800)},53392:function(e,t,i){i.d(t,{removeEmptyTextNode:function(){return o}});var n=i(2748);function o(e,t,i,o,r,s){return n.Dom.isText(t)&&!t.nodeValue?(t===s&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),n.Dom.safeRemove(t),!0):i}},25813:function(e,t,i){i.d(t,{removeInvTextNodes:function(){return r}});var n=i(82758),o=i(2748);function r(e,t,i,r,s,a){if(a===t||!o.Dom.isText(t)||null==t.nodeValue||!(0,n.INVISIBLE_SPACE_REG_EXP)().test(t.nodeValue))return i;let l=o.Dom.furthest(a,o.Dom.isBlock,e.editor);return!l||o.Dom.isOrContains(l,t)?i:(t.nodeValue=t.nodeValue.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""),t===a&&e.s.isFocused()&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||o.Dom.safeRemove(t),!0)}},80973:function(e,t,i){i.d(t,{replaceOldTags:function(){return o}});var n=i(2748);function o(e,t,i){let o=function(e,t,i){if(!i||!n.Dom.isHTMLElement(t))return t;let o=i[t.nodeName.toLowerCase()]||i[t.nodeName];if(o){let i=function(e,t){let{sel:i}=e.s;if(!(null==i?void 0:i.anchorNode)||!i.focusNode||!e.s.isFocused())return null;let{anchorNode:o,anchorOffset:r,focusNode:s,focusOffset:a}=i;return n.Dom.isOrContains(t,o)||n.Dom.isOrContains(t,s)?e=>{i.setBaseAndExtent(o===t?e:o,r,s===t?e:s,a)}:null}(e,t),r=n.Dom.replace(t,o,e.createInside,!0,!1);return null==i||i(r),r}return t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==o||i}},95614:function(e,t,i){i.d(t,{safeLinksTarget:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){if(!e.o.cleanHTML.safeLinksTarget||!n.Dom.isElement(t)||"A"!==t.nodeName||"_blank"!==(0,o.attr)(t,"target"))return i;let r=((0,o.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),s=!1;return(r.includes("noopener")||(r.push("noopener"),s=!0),r.includes("noreferrer")||(r.push("noreferrer"),s=!0),s)?((0,o.attr)(t,"rel",r.join(" ")),!0):i}},85978:function(e,t,i){i.d(t,{sandboxIframesInContent:function(){return s}});var n=i(2748),o=i(29960),r=i(15908);function s(e,t,i){return e.o.cleanHTML.sandboxIframesInContent&&n.Dom.isElement(t)&&"IFRAME"===t.nodeName?(0,r.isAllowedMediaEmbed)((0,o.attr)(t,"src")||"")||t.hasAttribute("sandbox")?i:((0,o.attr)(t,"sandbox",""),!0):i}},384:function(e,t,i){i.d(t,{sanitizeAttributes:function(){return r}});var n=i(2748),o=i(21537);function r(e,t,i){if(!n.Dom.isElement(t))return i;let r=e.options.cleanHTML;return!!(0,o.sanitizeHTMLElement)(t,{safeJavaScriptLink:r.safeJavaScriptLink,removeOnError:r.removeOnError,removeEventAttributes:r.removeEventAttributes,safeLinksTarget:r.safeLinksTarget})||i}},15583:function(e,t,i){i.d(t,{sanitizeStyles:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=e.o.cleanHTML.allowedStyles;if(!r||!n.Dom.isElement(t))return i;let s=(0,o.attr)(t,"style");if(!s)return i;let a=function(e,t){let i=t[e],n=t["*"];if(!i&&!n)return null;let o=new Set;if(n)for(let e of n)o.add(e.toLowerCase());if(i)for(let e of i)o.add(e.toLowerCase());return o}(t.nodeName.toLowerCase(),r);if(!a)return i;let l=s.split(";").map(e=>e.trim()).filter(e=>{if(!e)return!1;let t=e.indexOf(":");if(-1===t)return!1;let i=e.substring(0,t).trim().toLowerCase();return a.has(i)}).join("; ").replace(/;\s*$/,"");return l!==s?((0,o.attr)(t,"style",l||null),!0):i}},28800:function(e,t,i){i.d(t,{tryRemoveNode:function(){return l}});var n=i(82758),o=i(2748),r=i(49055),s=i(29960),a=i(15908);function l(e,t,i,l,c,u){return!function(e,t,i,l,c){if(!o.Dom.isText(t)){let e=t.nodeName.toUpperCase();if(l&&!l[e])return!0;let i="IFRAME"===e&&(0,a.isAllowedMediaEmbed)((0,s.attr)(t,"src")||"");if(!l&&c&&c[e]&&!i)return!0}if(!e.o.cleanHTML.removeEmptyElements)return!1;let u=e.s.isCollapsed()?e.s.range.startContainer:null;return o.Dom.isElement(t)&&null!=t.nodeName.match(n.IS_INLINE)&&!o.Dom.isTemporary(t)&&!(t.hasAttribute("id")||"A"===t.nodeName&&t.hasAttribute("name"))&&0===(0,r.trimInv)(t.innerHTML).length&&(null==i||!o.Dom.isOrContains(t,i))&&(null==u||!o.Dom.isOrContains(t,u))}(e,t,u,l,c)?i:(o.Dom.safeRemove(t),!0)}},39516:function(e,t,i){i.d(t,{visitNodeWalker:function(){return s}});var n=i(82758),o=i(45235);let r=Object.keys(o);function s(e,t,i,s,a){let l=!1,c=e.o.cleanHTML.disableCleanFilter;for(let u of r)if(!(c&&c.has(u))&&(l=(0,o[u])(e,t,l,i,s,a),n.IS_PROD,!t.isConnected))return!0;return l}},61323:function(e,t,i){var n=i(82758),o=i(33433),r=i(2748),s=i(580),a=i(21537);i(79419);class l{init(e){var t;null==(t=this.buttons)||t.forEach(t=>e.registerButton(t)),e.e.off(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`).on(`copy.${n.CLIPBOARD_ID} cut.${n.CLIPBOARD_ID}`,t=>{var i;let o=function(e,t){if(!t||e.s.isCollapsed())return t;let i=e.s.range.commonAncestorContainer;r.Dom.isElement(i)||(i=i.parentElement);let n=t;for(;i&&i!==e.editor&&r.Dom.isElement(i)&&!r.Dom.isBlock(i);){let e=i.cloneNode(!1);e.innerHTML=n,n=e.outerHTML,i=i.parentElement}return n}(e,e.s.html),s=(0,a.getDataTransfer)(t)||(0,a.getDataTransfer)(e.ew)||(0,a.getDataTransfer)(t.originalEvent);s&&(s.setData(n.TEXT_PLAIN,(0,a.stripTags)(o)),s.setData(n.TEXT_HTML,o)),e.buffer.set(n.CLIPBOARD_ID,o),e.e.fire("pasteStack",{html:o,action:e.o.defaultActionOnPaste||n.INSERT_AS_HTML}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null==(i=null==e?void 0:e.events)||i.fire("afterCopy",o)})}destruct(e){var t,i;null==(t=(0,o.cached)(e,"buffer"))||t.set(n.CLIPBOARD_ID,""),null==(i=null==e?void 0:e.events)||i.off("."+n.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}s.pluginSystem.add("clipboard",l)},79419:function(e,t,i){var n=i(12153),o=i(6441),r=i(94775),s=i(23140),a=i(92699),l=i(10052);o.Config.prototype.controls.cut={command:"cut",isDisabled:e=>e.s.isCollapsed(),tooltip:"Cut selection"},o.Config.prototype.controls.copy={command:"copy",isDisabled:e=>e.s.isCollapsed(),tooltip:"Copy selection"},o.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Icon.set("copy",r.default).set("cut",s.default).set("paste",a.default).set("select-all",l.default)},94775:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="8" y="8" width="13" height="13" rx="2"/><path d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"/> </g> </svg> '},23140:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <circle cx="6" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="m8.2 8.2 12.3 12.3M8.2 15.8 20.5 3.5"/> </g> </svg> '},92699:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="4" y="5" width="16" height="16" rx="2"/><rect x="9" y="3" width="6" height="4" rx="1"/> </g> </svg> '},10052:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 6V3h3m4 0h4m4 0h3v3m0 4v4m0 4v3h-3m-4 0h-4m-4 0H3v-3m0-4v-4"/><rect x="7" y="7" width="10" height="10" rx="1"/> </g> </svg> '},46104:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M12 3c-2 3.2-5.5 7-5.5 10a5.5 5.5 0 0 0 11 0c0-3-3.5-6.8-5.5-10Z"/> </g> <rect x="5" y="21" width="14" height="2" rx="1" fill="inherit" stroke="none"/> </svg> '},93079:function(e,t,i){var n=i(580),o=i(21537);i(21988),n.pluginSystem.add("color",function(e){e.registerButton({name:"brush",group:"color"});let t=(t,i,n)=>{var r;let s=(0,o.normalizeColor)(n)||"",a="background"===t?{backgroundColor:s}:{color:s},l=e.getInstance("Table",e.o).getAllSelectedCells();return l.length&&e.s.isCollapsed()?(l.forEach(t=>{e.s.select(t,!0),e.s.commitStyle({attributes:{style:a}})}),null==(r=e.s.sel)||r.removeAllRanges()):e.s.commitStyle({attributes:{style:a}}),e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)})},21988:function(e,t,i){var n=i(2748),o=i(21537),r=i(12153),s=i(6441),a=i(92762),l=i(46104);function c(e,t,i){(0,o.css)(e,t,i),(0,o.attr)(e,"style")||(0,o.attr)(e,"style",null)}r.Icon.set("brush",l.default),s.Config.prototype.controls.brushCell={isVisible:e=>!e.o.disablePlugins.includes("color"),icon:"brush",popup(e,t,i){if(!(0,o.isJoditObject)(e))return;let n=e.getInstance("Table",e.o).getAllSelectedCells();if(!n.length)return!1;let r=t=>(0,a.ColorPickerWidget)(e,o=>{n.forEach(e=>{c(e,t,o)}),e.lock(),e.synchronizeValues(),i(),e.unlock()},(0,o.css)(n[0],t));return(0,a.TabsWidget)(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])},tooltip:"Background"},s.Config.prototype.controls.brush={isVisible:e=>!e.o.disablePlugins.includes("color"),update(e,t){let i=(0,o.dataBind)(t,"color"),r=(i,n)=>!!n&&n!==(0,o.css)(e.editor,i).toString()&&(t.state.icon.fill=n,!0);if(i){let e=(0,o.dataBind)(t,"color");r("color"===e?e:"background-color",i);return}let s=e.s.current();if(s&&!t.state.disabled){let t=n.Dom.closest(s,n.Dom.isElement,e.editor)||e.editor,i=r("color",(0,o.css)(t,"color").toString()),a=r("background-color",(0,o.css)(t,"background-color").toString());if(i||a)return}t.state.icon.fill="",t.state.activated=!1},popup(e,t,i,r){let s="",l="",u,d=null;return t&&t!==e.editor&&n.Dom.isNode(t)&&(n.Dom.isElement(t)&&e.s.isCollapsed()&&!n.Dom.isTag(t,new Set(["br","hr"]))&&(d=t),n.Dom.up(t,e=>{if(n.Dom.isHTMLElement(e)){let t=(0,o.css)(e,"color",!0),i=(0,o.css)(e,"background-color",!0);if(t)return s=t.toString(),!0;if(i)return l=i.toString(),!0}},e.editor)),u=[{name:"Background",content:(0,a.ColorPickerWidget)(e,t=>{d?c(d,"backgroundColor",t):e.execCommand("background",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","background"),i()},l)},{name:"Text",content:(0,a.ColorPickerWidget)(e,t=>{d?c(d,"color",t):e.execCommand("forecolor",!1,t),(0,o.dataBind)(r,"color",t),(0,o.dataBind)(r,"color-mode","color"),i()},s)}],"background"!==e.o.colorPickerDefaultTab&&(u=u.reverse()),(0,a.TabsWidget)(e,u,d)},exec(e,t,{button:i}){let r=(0,o.dataBind)(i,"color-mode"),s=(0,o.dataBind)(i,"color");if(!r)return!1;if(t&&t!==e.editor&&n.Dom.isNode(t)&&n.Dom.isElement(t))switch(r){case"color":c(t,"color",s);break;case"background":c(t,"backgroundColor",s)}else e.execCommand("background"===r?r:"forecolor",!1,s)},tooltip:"Fill color or set the text color"}},19063:function(e,t,i){var n=i(2748),o=i(580),r=i(41180),s=i(12153),a=i(6441),l=i(57487),c=i(23914);let u="copy-format",d=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],h=(e,t,i,n)=>{let o=(0,r.css)(i,t);return o===n[t]&&(o=i.parentNode&&i!==e.editor&&i.parentNode!==e.editor?h(e,t,i.parentNode,n):void 0),o};a.Config.prototype.controls.copyformat={exec(e,t,{button:i}){if(t){if(e.buffer.exists(u))e.buffer.delete(u),e.e.off(e.editor,"mouseup."+u);else{let i,o={},s=n.Dom.up(t,e=>e&&!n.Dom.isText(e),e.editor)||e.editor,a=e.createInside.span();n.Dom.append(e.editor,a),d.forEach(e=>{o[e]=(0,r.css)(a,e)}),a!==e.editor&&n.Dom.safeRemove(a);let l=(i={},s&&d.forEach(t=>{i[t]=h(e,t,s,o),t.match(/border(Style|Color)/)&&!i.borderWidth&&(i[t]=void 0)}),i);e.e.on(e.editor,"mouseup."+u,()=>{e.buffer.delete(u);let t=e.s.current();t&&(n.Dom.isTag(t,"img")?(0,r.css)(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+u)}),e.buffer.set(u,!0)}i.update()}},isActive:e=>e.buffer.exists(u),tooltip:"Paint format"},o.pluginSystem.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),(0,o.extendLang)(c)}),s.Icon.set("copyformat",l.default)},57487:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="3" y="3" width="14" height="6" rx="1"/><path d="M17 6h4v7H11v3"/><rect x="9" y="16" width="4" height="6" rx="1"/> </g> </svg> '},63819:function(e){e.exports={"copy-format":"نسخ التنسيق"}},72392:function(e){e.exports={"copy-format":"Kopírovat formát"}},74551:function(e){e.exports={"copy-format":"Format kopierenт"}},2536:function(e){e.exports={"copy-format":"Copiar formato"}},52285:function(e){e.exports={"copy-format":"کپی کردن قالب"}},12117:function(e){e.exports={"copy-format":"Kopioi muotoilu"}},35140:function(e){e.exports={"copy-format":"Format de copie"}},28435:function(e){e.exports={"copy-format":"העתק עיצוב"}},98019:function(e){e.exports={"copy-format":"Formátum másolás"}},96457:function(e){e.exports={"copy-format":"salin format"}},23914:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n},cs_cz:function(){return o},de:function(){return r},es:function(){return s},fa:function(){return a},fi:function(){return l},fr:function(){return c},he:function(){return u},hu:function(){return d},id:function(){return h},it:function(){return p},ja:function(){return f},ko:function(){return m},mn:function(){return g},nl:function(){return v},pl:function(){return b},pt_br:function(){return y},ru:function(){return _},tr:function(){return w},zh_cn:function(){return k},zh_tw:function(){return S}});var n=i(63819),o=i(72392),r=i(74551),s=i(2536),a=i(52285),l=i(12117),c=i(35140),u=i(28435),d=i(98019),h=i(96457),p=i(33561),f=i(96545),m=i(52230),g=i(33307),v=i(71042),b=i(32172),y=i(39179),_=i(60629),w=i(68278),k=i(1172),S=i(4164)},33561:function(e){e.exports={"copy-format":"Copia il formato"}},96545:function(e){e.exports={"copy-format":"copyformat"}},52230:function(e){e.exports={"copy-format":"복사 형식"}},33307:function(e){e.exports={"copy-format":"Формат хуулах"}},71042:function(e){e.exports={"copy-format":"opmaak kopiëren"}},32172:function(e){e.exports={"copy-format":"format kopii"}},39179:function(e){e.exports={"copy-format":"Copiar formato"}},60629:function(e){e.exports={"copy-format":"Копировать формат"}},68278:function(e){e.exports={"copy-format":"Kopyalama Biçimi"}},1172:function(e){e.exports={"copy-format":"复制格式"}},4164:function(e){e.exports={"copy-format":"複製格式"}},66707:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(21537),a=i(49055),l=i(50911);let c=new Set(["img","table","jodit","iframe","hr"]),u=new Set(["pre","pre-wrap","break-spaces"]);function d(e,t){let i=0;for(;i<e.length&&" "===e.charAt(t?e.length-1-i:i);)i+=1;return 0===i?e:t?e.slice(0,e.length-i)+n.NBSP_SPACE.repeat(i):n.NBSP_SPACE.repeat(i)+e.slice(i)}function h(e,t){var i;return!e||o.Dom.isTag(e,"br")||o.Dom.isBlock(e)||o.Dom.isText(e)&&t.test(null!=(i=e.nodeValue)?i:"")}class p extends l.Plugin{afterInit(e){e.e.on("afterCommand.delete",e=>{"delete"===e&&this.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(e){e.e.off("afterCommand.delete")}__afterDeleteCommand(){let e=this.j,t=e.s.current();if(t&&o.Dom.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(0,a.trim)(e.editor.textContent||"")&&!o.Dom.first(e.editor,e=>o.Dom.isTag(e,c))&&(!t||!o.Dom.closest(t,"table",e.editor))){o.Dom.detach(e.editor);let t=e.s.setCursorIn(e.editor);e.s.removeNode(t)}}__onDeleteCommand(e,t,i){let{jodit:n}=this;if(n.s.isCollapsed())return;n.s.expandSelection();let r=n.s.range;this.__moveEdgesIntoCells(r);let s=!0===i?this.__formatTakenWhole(r):[],a=this.__clearSelectedCells(r);if(a&&r.collapsed)return n.s.selectRange(a),!1;r.deleteContents();let l=n.createInside.fake();r.insertNode(l);let c=o.Dom.findSibling(l,!0),u=o.Dom.findSibling(l,!1);return this.__moveContentInLeftSibling(l,c,u),this.__keepSpacesVisible(l),this.__keepSpacesVisibleBesideTable(l),r.setStartBefore(l),r.collapse(!0),s.length&&!a?this.__keepFormat(s,l,r):(this.__moveCursorInEditableSibling(n,c,l,r),this.__addBrInEmptyBlock(l,r)),o.Dom.safeRemove(l),n.s.selectRange(null!=a?a:r),!1}__moveEdgesIntoCells(e){let{startContainer:t,startOffset:i,endContainer:n,endOffset:r}=e,s=o.Dom.isTag(t,"tr")?t.childNodes[i]:null,a=o.Dom.isTag(n,"tr")?n.childNodes[r-1]:null;o.Dom.isCell(s)&&e.setStart(s,0),o.Dom.isCell(a)&&e.setEnd(a,a.childNodes.length)}__formatTakenWhole(e){let t=[],i=this.jodit.s.createRange(),{startContainer:n,startOffset:r}=e,a=o.Dom.isText(n)?null:n.childNodes[r];for(;o.Dom.isHTMLElement(a);){var l;if(i.selectNode(a),0>e.compareBoundaryPoints(Range.END_TO_END,i))break;if(l=a,o.Dom.isHTMLElement(l)&&!l.hasAttribute("contenteditable")&&!o.Dom.isTemporary(l)&&(/^(STRONG|B|EM|I|U|S|SUB|SUP)$/.test(l.nodeName)||o.Dom.isTag(l,"span")&&l.hasAttribute("style")))t.push(a);else if(t.length||!o.Dom.isBlock(a))break;a=(0,s.toArray)(a.childNodes).find(e=>{var t;return!o.Dom.isText(e)||(0,s.trimInv)(null!=(t=e.nodeValue)?t:"")})}return t}__keepFormat(e,t,i){let r=e.map(e=>e.cloneNode(!1));for(let e=1;e<r.length;e+=1)o.Dom.append(r[e-1],r[e]);let s=this.jodit.createInside.text(n.INVISIBLE_SPACE);o.Dom.append(r[r.length-1],s),o.Dom.before(t,r[0]),i.setStartAfter(s),i.collapse(!0)}__clearSelectedCells(e){let{editor:t,createInside:i}=this.j,n=o.Dom.closest(e.startContainer,o.Dom.isCell,t),r=o.Dom.closest(e.endContainer,o.Dom.isCell,t);if(n===r)return null;let a=o.Dom.closest(n,"table",t),l=o.Dom.closest(r,"table",t),c=e.cloneRange();c.collapse(!0);let u=e.cloneRange();u.collapse(!1);let d=[],h=t=>{(0,s.toArray)(t.rows).flatMap(e=>(0,s.toArray)(e.cells)).filter(t=>e.intersectsNode(t)).forEach(t=>{let i=e.cloneRange();o.Dom.isOrContains(t,e.startContainer)||i.setStart(t,0),o.Dom.isOrContains(t,e.endContainer)||i.setEnd(t,t.childNodes.length),d.push([t,i])})};return a&&(h(a),a===l?e.collapse(!0):e.setStartAfter(a)),l&&l!==a&&(h(l),e.setEndBefore(l)),d.forEach(([e,t])=>{if(t.deleteContents(),o.Dom.isEmpty(e)){o.Dom.detach(e),o.Dom.append(e,i.element("br"));return}[c,u].filter(t=>o.Dom.isOrContains(e,t.startContainer)).forEach(e=>{let t=i.fake();e.insertNode(t),this.__keepSpacesVisible(t),e.setStartBefore(t),e.collapse(!0),o.Dom.safeRemove(t)})}),a?c:null}__moveContentInLeftSibling(e,t,i){if(t=this.__defineRightLeftBox(t),o.Dom.isTag(t,"table")){o.Dom.isBlock(i)&&o.Dom.isEmpty(i)&&o.Dom.safeRemove(i);return}if(!o.Dom.isList(i)&&!o.Dom.isTag(i,"table")&&o.Dom.isBlock(i)&&o.Dom.isBlock(t)&&(o.Dom.append(t,e),o.Dom.moveContent(i,t),o.Dom.safeRemove(i)),o.Dom.isList(i)&&o.Dom.isLeaf(i.firstElementChild)){let n=i.firstElementChild;if(!o.Dom.isEmpty(n)&&o.Dom.isBlock(t))for(o.Dom.append(t,e);n.firstChild&&!o.Dom.isBlock(n.firstChild);)o.Dom.append(t,n.firstChild);o.Dom.isEmpty(n)&&o.Dom.safeRemove(n),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i)}}__keepSpacesVisible(e){var t;let{jodit:i}=this,n=null!=(t=o.Dom.closest(e,o.Dom.isBlock,i.editor))?t:i.editor;if(u.has(i.ew.getComputedStyle(n).whiteSpace))return;let r=this.__findNeighbor(e,!0,n),s=this.__findNeighbor(e,!1,n);o.Dom.isText(r)&&h(s,/^ /)&&(r.nodeValue=d(r.nodeValue,!0)),o.Dom.isText(s)&&h(r,/ $/)&&(s.nodeValue=d(s.nodeValue,!1))}__keepSpacesVisibleBesideTable(e){let t=o.Dom.findNotEmptySibling(e,!0),i=o.Dom.findNotEmptySibling(e,!1),n=o.Dom.isTag(i,"table")?t:o.Dom.isTag(t,"table")?i:null;if(!o.Dom.isBlock(n)||o.Dom.isTag(n,"table"))return;let r=this.jodit.createInside.fake();n===t?o.Dom.append(n,r):n.insertBefore(r,n.firstChild),this.__keepSpacesVisible(r),o.Dom.safeRemove(r)}__findNeighbor(e,t,i){return(0,s.call)(t?o.Dom.prev:o.Dom.next,e,e=>{var t;return o.Dom.isText(e)?(0,s.trimInv)(null!=(t=e.nodeValue)?t:"").length>0:!o.Dom.isComment(e)&&!(o.Dom.isInlineBlock(e)&&e.firstChild)},i)}__defineRightLeftBox(e){if(!o.Dom.isList(e))return e;let t=e.lastElementChild;return o.Dom.isLeaf(t)||(t=this.j.createInside.element("li"),o.Dom.append(e,t)),t}__addBrInEmptyBlock(e,t){let i=this.j;if(e.isConnected&&o.Dom.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){let n=i.createInside.element("br");o.Dom.after(e,n),t.setStartBefore(n),t.collapse(!0)}}__moveCursorInEditableSibling(e,t,i,n){var r;if(!t||!o.Dom.isText(t)){let t=null!=(r=o.Dom.closest(i,o.Dom.isBlock,e.editor))?r:e.editor,s=o.Dom.prev(i,o.Dom.isText,t);s&&(n.setStartAfter(s),n.collapse(!0),o.Dom.safeRemove(i))}}}p.requires=["backspace"],r.pluginSystem.add("deleteCommand",p)},44586:function(e,t,i){i(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(e,t,i){var n,o,r=i(65478),s=i(22732),a=i(580),l=i(21537),c=i(50911);i(44586);var u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};(n=o||(o={}))[n.IDLE=0]="IDLE",n[n.WAIT_DRAGGING=1]="WAIT_DRAGGING",n[n.DRAGGING=2]="DRAGGING";class d extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map(e=>e.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(e,t){this.isInDestruct||this.state>o.IDLE||!e||this.startDragging(e,t)}onDragStart(e){var t;if("dragstart"===e.type&&this.draggable)return!1;if(this.state>o.IDLE)return;let i=e.target;if(!this.dragList.length||!i)return;let n=e=>!!(e&&this.dragList.includes(e.nodeName.toLowerCase())),r=s.Dom.furthest(i,n,this.j.editor)||(n(i)?i:null);r&&(s.Dom.isTag(r.parentElement,"a")&&r.parentElement.firstChild===r&&r.parentElement.lastChild===r&&(r=r.parentElement),this.startDragging(null!=(t=(0,l.getCaptionWrapper)(this.j,r))?t:r,e))}startDragging(e,t){this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e),this.state=o.WAIT_DRAGGING,this.addDragListeners()}onDrag(e){var t,i;if(!this.draggable||this.state===o.IDLE)return;let n=e.clientX,r=e.clientY;if(this.state===o.WAIT_DRAGGING&&Math.sqrt(Math.pow(n-this.startX,2)+Math.pow(r-this.startY,2))<this.diffStep)return;this.state===o.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=o.DRAGGING),this.j.e.fire("hidePopup hideResizer");let c=this.__ghostOffset();if(!this.draggable.parentNode){let n=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX+c.left,top:e.clientY+c.top,width:null!=(t=null==n?void 0:n.offsetWidth)?t:100,height:null!=(i=null==n?void 0:n.offsetHeight)?i:100}),s.Dom.append((0,a.getContainer)(this.j,d),this.draggable)}(0,l.css)(this.draggable,{left:e.clientX+c.left,top:e.clientY+c.top}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}__ghostOffset(){let e=this.j.iframe;if(!e)return{left:0,top:0};let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=o.IDLE,this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<o.DRAGGING)return void this.onDragEnd();let e=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));let{parentElement:t}=e;this.j.s.insertNode(e,!0,!1),[e.previousSibling,e.nextSibling].forEach(e=>{s.Dom.isEmptyTextNode(e)&&s.Dom.safeRemove(e)}),t&&s.Dom.isEmpty(t)&&!s.Dom.isCell(t)&&s.Dom.safeRemove(t),s.Dom.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=o.IDLE}}u([r.autobind],d.prototype,"onStartDragElement",null),u([r.autobind],d.prototype,"onDragStart",null),u([(0,r.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([r.autobind],d.prototype,"onDragEnd",null),u([r.autobind],d.prototype,"onDrop",null),a.pluginSystem.add("dragAndDropElement",d)},19271:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(8172),u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends l.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart).on("drop.DragAndDrop",this.onDrop)}onDragStart(e){var t;let i=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=r.Dom.isOrContains(this.j.editor,i,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,a.ctrlKey)(e),this.isFragmentFromEditor){let e=this.j.s.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;t&&(this.bufferRange=t.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,t=i,r.Dom.isElement(t)&&t.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(i=r.Dom.first(i,e=>r.Dom.isTag(e,"img"))),r.Dom.isTag(i,"img")&&(this.draggable=i.cloneNode(!0),(0,a.dataBind)(this.draggable,"target",i)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}onDragEnd(){this.draggable&&(r.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;let t=this.j.s.sel,i=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),n=this.__getWorkFragment(i,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),n&&this.__insertFragment.call(this,n,i),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(e,t){let i=null;if(!this.draggable&&e)i=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){let[e,t]="1"===(0,a.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(e),(0,a.attr)(i,t,(0,a.attr)(this.draggable,"data-src")||(0,a.attr)(this.draggable,"src")||""),"a"===e&&(i.textContent=(0,a.attr)(i,t)||"")}else i=(0,a.dataBind)(this.draggable,"target");else if(this.getText(t)){let e=this.j.createInside.div();e.innerHTML=this.getText(t),this.j.e.fire("safeHTML",e),i=e.firstChild===e.lastChild&&e.firstChild?e.firstChild:e}return i}__insertFragment(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),r.Dom.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=e=>{let t=(0,a.getDataTransfer)(e);return t?t.getData(n.TEXT_HTML)||t.getData(n.TEXT_PLAIN):null}}}u([o.autobind],d.prototype,"onDragStart",null),u([(0,o.throttle)(e=>e.defaultTimeout/10)],d.prototype,"onDrag",null),u([o.autobind],d.prototype,"onDragEnd",null),u([o.autobind],d.prototype,"onDrop",null),s.pluginSystem.add("dragAndDrop",d)},46124:function(e,t,i){i.r(t),i.d(t,{removeExtraBr:function(){return n.removeExtraBr}});var n=i(94870)},94870:function(e,t,i){i.d(t,{removeExtraBr:function(){return r}});var n=i(2748);let o=new Set(["table","pre","blockquote","code"]);function r(e,t){if(!e.o.dtd.removeExtraBr||n.Dom.isTag(t,"br"))return;let i=n.Dom.furthest(t,n.Dom.isBlock,e.editor);if(i&&!n.Dom.isTag(i,o)){let i=n.Dom.isTag(t,"br")?t:n.Dom.findNotEmptySibling(t,!1);if(!n.Dom.isTag(i,"br")||n.Dom.findNotEmptySibling(i,!1))return;if(!n.Dom.isOrContains(t,e.s.range.startContainer)){let t=e.s.createRange();t.setStartBefore(i),t.collapse(!0),e.s.selectRange(t)}n.Dom.safeRemove(i)}}},78720:function(e,t,i){i.d(t,{checkBlockNesting:function(){return o}});var n=i(2748);function o(e,t){var i,o;if(n.Dom.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&n.Dom.isBlock(t)){let r=null,s=null!=(o=null==(i=e.s.current())?void 0:i.parentElement)?o:null;for(;s&&s!==e.editor;){if(n.Dom.isBlock(s)){let t=!r&&n.Dom.isTag(s,e.o.enter)&&n.Dom.isEmpty(s);if(e.o.dtd.blockLimits[s.nodeName.toLowerCase()]&&!t)break;r=s}s=s.parentElement}n.Dom.isLeaf(s)&&n.Dom.isList(t)&&n.Dom.isFragment(t.parentNode)&&!n.Dom.findNotEmptySibling(t,!1)&&(n.Dom.unwrap(t),r=s),r&&function(e,t){var i;let{s:o}=e;if(n.Dom.isEmpty(t)){o.setCursorAfter(t),n.Dom.safeRemove(t);return}o.cursorOnTheRight(t)?o.setCursorAfter(t):o.cursorOnTheLeft(t)?o.setCursorBefore(t):o.setCursorAfter(null!=(i=o.splitSelection(t))?i:t)}(e,r)}}},43267:function(e,t,i){i.r(t),i.d(t,{checkBlockNesting:function(){return n.checkBlockNesting}});var n=i(78720)},9045:function(e,t,i){i(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,dd:1,details:1,dir:1,div:1,dl:1,dt:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,li:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(e,t,i){var n=i(37133),o=i(580),r=i(50911);i(9045);var s=i(46124),a=i(43267),l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends r.Plugin{afterInit(e){}beforeDestruct(e){}__onBeforeInsertNode(e){Object.keys(a).forEach(t=>{a[t](this.j,e)})}__onAfterInsertNode(e){Object.keys(s).forEach(t=>{s[t](this.j,e)})}}l([(0,n.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),l([(0,n.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),o.pluginSystem.add("dtd",c)},575:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(87612),l=i(20356),c=i(35399);class u extends l.Plugin{afterInit(e){let t=e.o.enter.toLowerCase(),i=t===n.BR.toLowerCase();e.o.enterBlock||(e.o.enterBlock=i?n.PARAGRAPH:t),e.registerCommand("enter",(e,t,i={})=>this.onEnter(i))}onEnterKeyDown(e){if(e.key===n.KEY_ENTER){let t=this.j,i=t.e.fire("beforeEnter",e);return void 0!==i?i:(t.history.snapshot.transaction(()=>{t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e)}),t.synchronizeValues(),!1)}}onEnter(e){let{jodit:t}=this,i=t.createInside.fake();try{r.Dom.safeInsertNode(t.s.range,i),(0,c.moveCursorOutFromSpecialTags)(t,i,["a"]);let n=(0,c.getBlockWrapper)(i,t),o=r.Dom.isLeaf(n);if((!o||(null==e?void 0:e.shiftKey))&&(0,c.checkBR)(i,t,null==e?void 0:e.shiftKey,n))return!1;if(n||(0,c.hasPreviousBlock)(i,t)||(n=(0,c.wrapText)(i,t)),!n)return(0,c.insertParagraph)(i,t,o?"li":t.o.enter),!1;if(!(0,c.checkUnsplittableBox)(i,t,n))return!1;if(o&&this.__isEmptyListLeaf(n))return(0,c.processEmptyLILeaf)(i,t,n),!1;(0,c.splitFragment)(i,t,n)}finally{i.isConnected&&t.s.setCursorBefore(i),r.Dom.safeRemove(i)}}__isEmptyListLeaf(e){let t=this.j.e.fire("enterIsEmptyListLeaf",e);return(0,a.isBoolean)(t)?t:r.Dom.isEmpty(e)}beforeDestruct(e){e.e.off("keydown.enter")}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),s.pluginSystem.add("enter",u)},41872:function(e,t,i){i.d(t,{checkBR:function(){return s}});var n=i(82758),o=i(2748),r=i(26395);function s(e,t,i,s){let l=!!o.Dom.closest(e,"pre",t.editor)||(s?o.Dom.isTag(s,"blockquote"):!!o.Dom.closest(e,"blockquote",t.editor)),c=!l&&(s?o.Dom.isCell(s):!!o.Dom.closest(e,["td","th"],t.editor));if(t.o.enter.toLowerCase()===n.BR.toLowerCase()||c||i&&!l||!i&&l){var u;let i;if(l&&(i=a(a(u=e)))&&(o.Dom.safeRemove(a(u)),o.Dom.safeRemove(i),1))return!1;let n=t.createInside.element("br");if(o.Dom.before(e,n),!o.Dom.findNotEmptySibling(n,!1)){let t=n.cloneNode();o.Dom.after(n,t),o.Dom.before(t,e)}let s=n.cloneNode();return o.Dom.before(e,s),(0,r.scrollIntoViewIfNeeded)(s,t.editor,t.ed),o.Dom.safeRemove(s),!0}return!1}function a(e){if(!e)return!1;let t=o.Dom.findSibling(e,!0);return!!t&&!!o.Dom.isTag(t,"br")&&t}},61991:function(e,t,i){i.d(t,{checkUnsplittableBox:function(){return o}});var n=i(2748);function o(e,t,i){return!!n.Dom.canSplitBlock(i)||(n.Dom.before(e,t.createInside.element("br")),!1)}},54041:function(e,t,i){i.d(t,{getBlockWrapper:function(){return function e(t,i,r=n.IS_BLOCK){let s=t,a=i.editor;do{if(!s||s===a)break;if(r.test(s.nodeName)){if(o.Dom.isLeaf(s))return s;return e(s.parentNode,i,/^li$/i)||s}s=s.parentNode}while(s&&s!==a)return null}}});var n=i(82758),o=i(2748)},19057:function(e,t,i){i.d(t,{hasPreviousBlock:function(){return o}});var n=i(2748);function o(e,t){return!!n.Dom.prev(e,e=>n.Dom.isBlock(e)||n.Dom.isImage(e),t.editor)}},35399:function(e,t,i){i.d(t,{checkBR:function(){return n.checkBR},checkUnsplittableBox:function(){return o.checkUnsplittableBox},getBlockWrapper:function(){return r.getBlockWrapper},hasPreviousBlock:function(){return s.hasPreviousBlock},insertParagraph:function(){return a.insertParagraph},moveCursorOutFromSpecialTags:function(){return l.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return u.splitFragment},wrapText:function(){return d.wrapText}});var n=i(41872),o=i(61991),r=i(54041),s=i(19057),a=i(44245),l=i(91388),c=i(65181),u=i(54600),d=i(5287)},44245:function(e,t,i){i.d(t,{insertParagraph:function(){return s}});var n=i(2748),o=i(29960),r=i(26395);function s(e,t,i,s){let a="br"===i.toLowerCase(),{createInside:l}=t,c=l.element(i),u=l.element("br");return a||n.Dom.append(c,u),s&&s.cssText&&(0,o.attr)(c,"style",s.cssText),n.Dom.after(e,c),n.Dom.before(a?c:u,e),(0,r.scrollIntoViewIfNeeded)(c,t.editor,t.ed),c}},91388:function(e,t,i){i.d(t,{moveCursorOutFromSpecialTags:function(){return o}});var n=i(2748);function o(e,t,i){let{s:o}=e,r=n.Dom.closest(t,i,e.editor);if(r){if(o.cursorOnTheRight(r,t))n.Dom.after(r,t);else{if(!o.cursorOnTheLeft(r,t))return;n.Dom.before(r,t)}let e=o.createRange();e.setStartBefore(t),o.selectRange(e)}}},65181:function(e,t,i){i.d(t,{processEmptyLILeaf:function(){return s}});var n=i(2748),o=i(76078),r=i(44245);function s(e,t,i){let s=n.Dom.closest(i,["ol","ul"],t.editor);if(!s)return;let a=s.parentElement,l=n.Dom.isLeaf(a),c=l?a:s,u=t.s.createRange();u.setStartAfter(i),u.setEndAfter(s);let d=u.extractContents();n.Dom.after(c,e),n.Dom.safeRemove(i),(0,o.$$)("li",s).length||n.Dom.safeRemove(s);let h=(0,r.insertParagraph)(e,t,l?"li":t.o.enter);n.Dom.first(d,e=>n.Dom.isTag(e,"li"))&&(l?n.Dom.append(h,d):n.Dom.after(h,d))}},54600:function(e,t,i){i.d(t,{splitFragment:function(){return s}});var n=i(2748),o=i(26395),r=i(44245);function s(e,t,i){let s=t.s,{enter:a}=t.o,l=a.toLowerCase(),c=n.Dom.isLeaf(i),u=i.tagName.toLowerCase()===l||c,d=s.cursorOnTheRight(i,e),h=s.cursorOnTheLeft(i,e);if(!u&&(d||h)){d?n.Dom.after(i,e):n.Dom.before(i,e),(0,r.insertParagraph)(e,t,l),h&&!d&&n.Dom.prepend(i,e);return}let{scrollTop:p}=t.editor;s.splitSelection(i,e),t.editor.scrollTop!==p&&(t.editor.scrollTop=p),(0,o.scrollIntoViewIfNeeded)(i,t.editor,t.ed)}},5287:function(e,t,i){i.d(t,{wrapText:function(){return o}});var n=i(2748);function o(e,t){let i=e;n.Dom.up(i,e=>{e&&e.hasChildNodes()&&e!==t.editor&&(i=e)},t.editor);let o=n.Dom.wrapInline(i,t.o.enter,t);if(n.Dom.isEmpty(o)){let i=t.createInside.element("br");n.Dom.append(o,i),n.Dom.before(i,e)}return o}},11317:function(e,t,i){var n=i(2748),o=i(580),r=i(29960),s=i(6441),a=i(2073),l=i(92762);function c(e,t,i=""){if(e.s.isCollapsed())return!1;let n=e.s.wrapInTag("a");return!!n.length&&(n.forEach(e=>{(0,r.attr)(e,"href",t),i&&(0,r.attr)(e,"title",i)}),e.s.setCursorAfter(n[n.length-1]),!0)}function u(e){let{baseurl:t}=e;(0,a.getItems)(e).forEach(({file:e})=>{let i=t+e;if(c(this,i))return;let n=this.createInside.element("a",{href:i});n.textContent=this.o.uploader.getDisplayName.call(this.uploader,t,e),this.s.insertNode(n)})}s.Config.prototype.file={defaultHandlerSuccess:u},s.Config.prototype.controls.file={popup(e,t,i){let o=e.s.isCollapsed()?null:e.s.range,s=()=>{o&&e.s.selectRange(o)},d=(t,i="")=>{s(),c(e,t,i)||e.s.insertNode(e.createInside.fromHTML(`<a href="${t}" title="${i}">${i||t}</a>`))},h=null;return t&&(n.Dom.isTag(t,"a")||n.Dom.closest(t,"a",e.editor))&&(h=n.Dom.isTag(t,"a")?t:n.Dom.closest(t,"a",e.editor)),(0,l.FileSelectorWidget)(e,{filebrowser(e){(0,a.getItems)(e).forEach(({file:t})=>d(e.baseurl+t)),i()},upload(t){var i,n;s(),(null!=(n=null==(i=e.o.file)?void 0:i.defaultHandlerSuccess)?n:u).call(e,t)},url(e,t){h?((0,r.attr)(h,"href",e),(0,r.attr)(h,"title",t)):d(e,t),i()}},h,i,!1)},tags:["a"],tooltip:"Insert file"},o.pluginSystem.add("file",function(e){e.registerButton({name:"file",group:"media"})})},36243:function(e,t,i){var n=i(82758),o=i(22732),r=i(580),s=i(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(e){if(e.o.saveSelectionOnBlur){let t=!1;e.e.on("blur",()=>{t=!1,e.isEditorMode()&&e.s.save(!0)}).on("mousedown touchstart",()=>{t=!e.editorIsActive}).on("focus",()=>{e.isEditorMode()&&(t?e.s.removeMarkers():e.s.restore()),t=!1})}let t=()=>{e.s.focus();let t=null;switch(e.o.cursorAfterAutofocus){case"start":t=o.Dom.first(e.editor,e=>o.Dom.isText(e));break;case"end":t=o.Dom.last(e.editor,e=>o.Dom.isText(e))}t&&e.s.setCursorIn(t,"start"===e.o.cursorAfterAutofocus)};e.e.on("afterInit",()=>{if(e.o.autofocus)if(e.defaultTimeout){let i="mousedown touchstart keydown",n=()=>{e.async.clearTimeout(o),e.e.off(i,n)},o=e.async.setTimeout(()=>{e.e.off(i,n),t()},300);e.e.on(i,n)}else t()}),e.e.on("afterInit afterAddPlace",()=>{e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",t=>{e.isEditorMode()&&t.target&&o.Dom.isBlock(t.target)&&!o.Dom.isTag(t.target,n.INSEPARABLE_TAGS)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})})},28252:function(e,t,i){var n=i(22732),o=i(68345),r=i(49055),s=i(41180),a=i(12153),l=i(6441),c=i(4104),u=i(83709),d=i(40222);l.Config.prototype.defaultFontSizePoints="px",l.Config.prototype.font={googleFonts:{url:""}},a.Icon.set("font",c.default).set("fontsize",u.default);let h=new WeakSet;l.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:e=>e.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(e,t)=>t+e.o.defaultFontSizePoints,childTemplate:(e,t,i)=>`${i}${e.o.defaultFontSizePoints}`,tooltip:"Font size",value(e,t){var i;let o=e.s.current(),r=o&&n.Dom.closest(o,n.Dom.isElement,e.editor),a=t.control;if(r)h.add(t);else if("select"!==a.component||h.has(t))return;let l=(null==(i=a.data)?void 0:i.cssRule)||"font-size",c=(0,s.css)(r||e.editor,l);if("font-size"===l){let t=parseFloat(c.toString());return"pt"===e.o.defaultFontSizePoints?Math.round(.75*t).toString():Math.round(t).toString()}return c.toString()},isChildActive(e,t){var i,n;let o=t.state.value,r=null!=(n=null==(i=t.control.data)?void 0:i.normalize)?n:e=>e;return!!(o&&t.control.args&&r(t.control.args[0].toString())===r(o.toString()))},isActive(e,t){var i,n;let o=t.state.value;if(!o)return!1;let r=null!=(n=null==(i=t.control.data)?void 0:i.normalize)?n:e=>e,s=t.control.data.cacheListSet;return s||(s=new Set(Object.keys(t.control.list).map(r)),t.control.data.cacheListSet=s),s.has(r(o.toString()))}},l.Config.prototype.controls.font={...l.Config.prototype.controls.fontsize,command:"fontname",textTemplate(e,t){let[i]=t.split(",");return(0,r.trimChars)(i,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate(e,t,i){let n=!1;try{n=-1===t.indexOf("dings")&&document.fonts.check("16px "+t,i)}catch(e){}return`<span data-style="${t}" style="${n?`font-family: ${t}!important;`:""}">${i}</span>`},popup:(e,t,i,n)=>!!e.o.font.googleFonts.url&&new d.UIFontPicker(e,n,i),data:{cssRule:"font-family",normalize:e=>e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value(e,t){let i=e.s.current(),r=i&&n.Dom.closest(i,n.Dom.isElement,e.editor);if(r)h.add(t);else if(h.has(t))return;let a=(0,s.css)(r||e.editor,"font-family").toString(),{list:l}=t.control;return a===(0,s.css)(e.editor,"font-family").toString()&&((0,o.isArray)(l)?l.includes(""):""in(null!=l?l:{}))?"":a},tooltip:"Font family"}},40222:function(e,t,i){i.d(t,{UIFontPicker:function(){return g}});var n=i(87325),o=i(37133),r=i(2748),s=i(580),a=i(68345),l=i(29960),c=i(41180),u=i(37790),d=i(48538),h=i(41870),p=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let f=["h1","h2","h3","h4","h5","h6"],m=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]),g=class e extends d.UIElement{className(){return"UIFontPicker"}__render(){var e,t;let{control:i}=this.__button,{list:n={}}=i,o=(0,a.isArray)(n)?n.map(e=>({value:e.toString(),title:e.toString()})):(0,u.keys)(n,!1).map(e=>({value:e,title:n[e].toString()})),s=Array.from(this.__googleFonts.fonts.values(),e=>({value:this.__googleFonts.value(e),title:e.family,font:e})),l=new Map;[...s,...o].forEach(e=>l.set((0,h.firstFamily)(e.value),e));let c=new Map,d=new Map;this.__themeFonts().forEach(e=>{var t;let i=(0,h.firstFamily)(e),n=e.split(",")[0].replace(/["']/g,"").trim(),o=null!=(t=l.get(i))?t:!i||i.startsWith("-")||m.has(i)?void 0:{value:e,title:n};o&&!c.has(i)&&c.set(i,o)}),this.__usedFonts().forEach(e=>{let t=(0,h.firstFamily)(e),i=l.get(t);i&&!c.has(t)&&d.set(t,i)});let p=o.find(e=>""===e.value),f=(0,h.firstFamily)(null!=(t=null==(e=i.value)?void 0:e.call(i,this.j,this.__button))?t:"");r.Dom.detach(this.container),this.__fonts.clear(),p&&this.__append(f,[p]),this.__append(f,[...c.values()],"Theme fonts"),this.__append(f,[...d.values()],"Used fonts"),this.__append(f,o.filter(e=>e!==p),"System fonts"),this.__append(f,s,"Google Fonts"),this.__observeGoogleFonts()}__themeFonts(){let{editor:e}=this.j,t=[(0,c.css)(e,"font-family").toString()];return f.forEach(i=>{let n=this.j.createInside.element(i,{style:"display: none"});r.Dom.append(e,n),t.push((0,c.css)(n,"font-family").toString()),r.Dom.safeRemove(n)}),t}__usedFonts(){return Array.from(this.j.editor.querySelectorAll('[style*="font-family"]'),e=>e.style.fontFamily)}__append(e,t,i){if(!t.length)return;let{control:n}=this.__button,o=this.j.c.div(this.getFullElName("group"));if(i){let e=this.j.c.div(this.getFullElName("heading"),{id:`${this.getFullElName("heading")}-${(0,s.uniqueUid)()}`});e.textContent=this.i18n(i),(0,l.attr)(o,{role:"group","aria-labelledby":e.id}),r.Dom.append(o,e)}t.forEach(t=>{var i,s;let a=this.j.c.element("button",{type:"button",class:this.getFullElName("item"),"data-value":t.value,"aria-pressed":(0,h.firstFamily)(t.value)===e});t.font?(a.textContent=t.title,this.__fonts.set(a,t.font)):a.innerHTML=null!=(s=null==(i=n.childTemplate)?void 0:i.call(n,this.j,t.value,t.title,this.__button))?s:t.title,r.Dom.append(o,a)}),r.Dom.append(this.container,o)}__observeGoogleFonts(){this.j.async.requestAnimationFrame(()=>{var e;if(null==(e=this.__observer)||e.disconnect(),this.isDestructed||!this.__fonts.size)return;let t=new IntersectionObserver(e=>{let i=[];e.forEach(({isIntersecting:e,target:n})=>{let o=this.__fonts.get(n);e&&o&&(i.push(o),(0,c.css)(n,{fontFamily:this.__googleFonts.value(o)}),t.unobserve(n))}),this.__googleFonts.preview(i)},{root:this.container.parentElement,rootMargin:"0px 0px 400px 0px"});this.__fonts.forEach((e,i)=>t.observe(i)),this.__observer=t})}onMouseDown(e){e.preventDefault()}onClick(e){var t;let i=r.Dom.up(e.target,e=>r.Dom.isHTMLElement(e)&&e.hasAttribute("data-value"),this.container);if(!i)return;let n=null!=(t=(0,l.attr)(i,"data-value"))?t:"",o=this.__googleFonts.find(n),s=(0,h.firstFamily)(n)===(0,h.firstFamily)(this.__blockFont());o&&!s&&this.__googleFonts.load(o),this.j.execCommand("fontname",!1,s?"":n),this.__close()}__blockFont(){let e=r.Dom.up(this.j.s.current(),r.Dom.isBlock,this.j.editor);return(0,c.css)(null!=e?e:this.j.editor,"font-family").toString()}destruct(){var e;null==(e=this.__observer)||e.disconnect(),super.destruct()}constructor(e,t,i){super(e),this.__button=t,this.__close=i,this.__fonts=new Map,this.__observer=null,this.__googleFonts=e.getInstance(h.GoogleFonts),this.__render(),this.__googleFonts.fonts.size||this.__googleFonts.ready.then(()=>!this.isDestructed&&this.__render())}};p([(0,o.watch)("container:mousedown")],g.prototype,"onMouseDown",null),p([(0,o.watch)("container:click")],g.prototype,"onClick",null),g=p([n.component],g)},23399:function(e,t,i){var n=i(580),o=i(21537);i(28252);var r=i(41870);n.pluginSystem.add("font",function(e){if(e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"}),e.o.font.googleFonts.url){let t=e.getInstance(r.GoogleFonts),i=e.async.debounce(()=>t.loadUsed(),e.defaultTimeout);t.ready.then(i),e.e.on("afterInit afterSetMode change",i)}e.e.on("afterInit",()=>{e.iframe&&e.e.on(e.ed,"load",()=>e.e.fire("updateToolbar"),{capture:!0})});let t=(t,i,n)=>{switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:(0,o.normalizeSize)(n,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:n}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})},41870:function(e,t,i){i.d(t,{GoogleFonts:function(){return c},firstFamily:function(){return l}});var n=i(80480),o=i(2748),r=i(54079);let s={serif:"serif",monospace:"monospace"},a=new Map;function l(e){return e.split(",")[0].replace(/["']/g,"").trim().toLowerCase()}class c extends n.ViewComponent{className(){return"GoogleFonts"}find(e){return this.fonts.get(l(e))}value(e){var t;return`'${e.family}', ${null!=(t=s[e.category])?t:"sans-serif"}`}load(e){let t=this.__loadedInto(this.j.ed);if(t.has(e.family))return;t.add(e.family);let i=[["regular","0,400"],["700","0,700"],["italic","1,400"],["700italic","1,700"]].filter(([t])=>e.variants.includes(t)).map(([,e])=>e);this.__append(this.j.ed,`family=${this.__family(e)}:ital,wght@${i.join(";")}`)}loadUsed(){this.j.editor.querySelectorAll('[style*="font-family"]').forEach(e=>{let t=this.find(e.style.fontFamily);t&&this.load(t)})}preview(e){let t=this.__loadedInto(this.j.od);if(!(e=e.filter(e=>!this.__previewed.has(e.family)&&!t.has(e.family))).length)return;e.forEach(e=>this.__previewed.add(e.family));let i=e.map(e=>"family="+this.__family(e)),n=new Set(e.map(e=>e.family).join(""));this.__append(this.j.od,`${i.join("&")}&text=${encodeURIComponent([...n].join(""))}`)}__loadedInto(e){var t;let i=null!=(t=this.__loaded.get(e))?t:new Set;return this.__loaded.set(e,i),i}__family(e){return encodeURIComponent(e.family).replace(/%20/g,"+")}__append(e,t){let i=e.createElement("link");i.rel="stylesheet",i.href=`https://fonts.googleapis.com/css2?${t}&display=swap`,e.head.appendChild(i),this.__links.push(i)}destruct(){this.__links.forEach(e=>o.Dom.safeRemove(e)),super.destruct()}constructor(e){super(e),this.fonts=new Map,this.__links=[],this.__loaded=new WeakMap,this.__previewed=new Set,this.ready=(function(e,t){let i=a.get(t);if(!i){let n=new r.Ajax({url:t,method:"GET"},e.o.defaultAjaxOptions);i=n.send().then(e=>e.json()).then(({items:e})=>e.filter(e=>e.variants.includes("regular"))).catch(()=>(a.delete(t),[])).finally(()=>n.destruct()),a.set(t,i)}return i})(e,e.o.font.googleFonts.url).then(e=>{e.forEach(e=>this.fonts.set(e.family.toLowerCase(),e))})}}},4104:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m5 17 7-14 7 14M8 12h8M3 21h18"/> </g> </svg> '},83709:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M2 5h9M6.5 5v15M4 20h5M19 4v16m-3-13 3-3 3 3m-6 10 3 3 3-3"/> </g> </svg> '},24630:function(e,t,i){var n=i(2748),o=i(72430),r=i(12153),s=i(6441),a=i(4932),l=i(89816);r.Icon.set("paragraph",l.default),s.Config.prototype.formatBlock={previewProperties:[]},s.Config.prototype.controls.paragraph={command:"formatBlock",value(e,t){var i,o;let r=t.control,s=e.s.current(),a=n.Dom.closest(s,n.Dom.isBlock,e.editor);return null!=(i=null==a?void 0:a.nodeName.toLowerCase())?i:null==(o=r.data)?void 0:o.currentValue},update(e,t){let i=t.control;if(!e.s.current())return!1;let n=t.state.value,r=i.list;return(0,o.isPlainObject)(r)&&r[n.toString()]&&e.o.textIcons&&(t.state.text=r[n.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive(e,t){var i,n;return t.state.value===(null==(n=null==(i=t.control)?void 0:i.args)?void 0:n[0])},isActive:(e,t)=>t.state.value!==e.o.enter&&(0,o.isPlainObject)(t.control.list)&&!!t.control.list[t.state.value],childTemplate:(e,t,i)=>`<${t} style="margin:0;padding:0${function(e,t){let{previewProperties:i}=e.o.formatBlock;if(!i.length)return"";let o=e.createInside.element(t,{style:"display: none"});n.Dom.append(e.editor,o);let r=e.ew.getComputedStyle(o),s=parseFloat(r.fontSize)||16,l=i.map(t=>{let i=r.getPropertyValue(t);return i&&"font-family"===t&&(i=(0,a.withContentFonts)(e,i)),i?`;${t}:${i.replace(/(-?[\d.]+)px/g,(e,t)=>`${parseFloat(t)/s}em`).replace(/"/g,"'")}`:""}).join("");return n.Dom.safeRemove(o),l}(e,t)}"><span>${e.i18n(i)}</span></${t}>`,tooltip:"Insert format block"}},4932:function(e,t,i){i.d(t,{withContentFonts:function(){return s}});let n=new WeakMap,o=new Map,r=0;function s(e,t){let{ed:i,od:o}=e;if(i===o)return t;let s=function(e){let t=n.get(e);if(!t){let{od:i}=e,o={prefix:`jodit-preview-${++r}-`,faces:new Map,pending:!1};n.set(e,o),e.e.on("beforeDestruct",()=>o.faces.forEach(e=>i.fonts.delete(e))),t=o}return t}(e);!function(e,t){if(t.pending)return;t.pending=!0;let{ed:i,od:n}=e;Promise.all(Array.from(i.styleSheets,e=>a(e,i.baseURI))).then(i=>{t.pending=!1,e.isInDestruct||i.flat().forEach(e=>{let i=JSON.stringify(e);if(!t.faces.has(i)){let o=new FontFace(t.prefix+e.family,e.source,e.descriptors);n.fonts.add(o),t.faces.set(i,o)}})})}(e,s);let l=new Set;return i.fonts.forEach(e=>l.add(c(e.family))),t.split(",").map(e=>{let t=c(e);return l.has(t)?`"${s.prefix}${t}", ${e.trim()}`:e.trim()}).join(", ")}function a(e,t){var i;let n;try{n=e.cssRules}catch(n){let{href:t}=e;if(!t)return Promise.resolve([]);let i=o.get(t);return i||(i=fetch(t).then(e=>e.text()).then(e=>{let i=document.implementation.createHTMLDocument(""),n=i.createElement("style");return n.textContent=e,i.head.appendChild(n),n.sheet?l(n.sheet.cssRules,t):[]}).catch(()=>[]),o.set(t,i)),i}return l(n,null!=(i=e.href)?i:t)}function l(e,t){return Promise.all(Array.from(e,e=>{var i;let n;if("styleSheet"in e){let{styleSheet:i}=e;return i?a(i,t):[]}return"cssRules"in e?l(e.cssRules,t):e.cssText.startsWith("@font-face")?[(n=t=>e.style.getPropertyValue(t)||void 0,{family:c(e.style.getPropertyValue("font-family")),source:(i=e.style.getPropertyValue("src"),i.replace(/url\(\s*(["']?)(.*?)\1\s*\)/g,(e,i,n)=>{try{return`url("${new URL(n,t).href}")`}catch(t){return e}})),descriptors:{style:n("font-style"),weight:n("font-weight"),stretch:n("font-stretch"),unicodeRange:n("unicode-range")}})]:[]})).then(e=>e.flat())}function c(e){return e.replace(/["']/g,"").trim().toLowerCase()}},96111:function(e,t,i){var n=i(580);i(24630),n.pluginSystem.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(t,i,n)=>(e.s.commitStyle({element:n}),e.synchronizeValues(),!1))})},89816:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M20 4H9a5 5 0 0 0 0 10h3M12 4v17M18 4v17"/> </g> </svg> '},99823:function(e,t,i){var n=i(82758),o=i(12153),r=i(6441),s=i(6950),a=i(28911);r.Config.prototype.fullsize=!1,r.Config.prototype.globalFullSize=!0,o.Icon.set("fullsize",s.default).set("shrink",a.default),r.Config.prototype.controls.fullsize={exec(e){e.toggleFullSize()},isActive:e=>e.isFullSize,update(e,t){let i=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=i:t.state.icon.name=i},tooltip:"Open in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG}},2169:function(e,t,i){var n=i(2748),o=i(580),r=i(19306),s=i(41180);i(99823);let a=new Set;o.pluginSystem.add("fullsize",function(e){e.registerButton({name:"fullsize"});let t=!1,i=0,o=0,l=0,c=0,u=!1,d=()=>{let{container:n,events:r}=e;r&&(t?(u||(i=(0,s.css)(n,"height",!0),o=(0,s.css)(n,"width",!0),u=!0),(0,s.css)(n,{height:e.ow.innerHeight,width:e.ow.innerWidth})):u&&((0,s.css)(n,{height:i||"auto",width:o||"auto"}),u=!1))},h=i=>{let{container:o,events:u}=e;if(o){if(void 0===i&&(i=!o.classList.contains("jodit_fullsize")),e.setMod("fullsize",i),e.o.fullsize=i,t=i,o.classList.toggle("jodit_fullsize",i),e.toolbar&&((0,r.isJoditObject)(e)&&e.toolbarContainer&&n.Dom.append(e.toolbarContainer,e.toolbar.container),(0,s.css)(e.toolbar.container,"width","auto")),i?a.add(o):a.delete(o),e.o.globalFullSize&&(1===a.size&&i||0===a.size&&!i)){i&&(l=e.ow.scrollX,c=e.ow.scrollY);let t=o.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",i),t=t.parentNode;d(),i||e.ow.scrollTo(l,c)}u.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",d),e.e.on("afterInit afterOpen",()=>{var t;e.toggleFullSize(null==(t=null==e?void 0:e.options)?void 0:t.fullsize)}).on("toggleFullSize",h).on("beforeDestruct",()=>{t&&h(!1)}).on("beforeDestruct",()=>{e.events&&e.e.off(e.ow,"resize",d)})})},6950:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M8 3H3v5m13-5h5v5M3 16v5h5m13-5v5h-5"/> </g> </svg> '},28911:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 8h5V3M8 8 3 3m13 0v5h5m-5 0 5-5M3 16h5v5m0-5-5 5m13 0v-5h5m-5 0 5 5"/> </g> </svg> '},78524:function(e,t,i){i(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(e,t,i){var n=i(82758),o=i(580),r=i(21537),s=i(50911);i(78524);class a extends s.Plugin{afterInit(e){(0,r.keys)(e.o.commandToHotkeys,!1).forEach(t=>{let i=e.o.commandToHotkeys[t];i&&((0,r.isArray)(i)||(0,r.isString)(i))&&e.registerHotkeyToCommand(i,t)});let t=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",e=>{if(e.key===n.KEY_ESC)return this.j.e.fire("escape",e)}).on("keydown.hotkeys",i=>{let n=this.onKeyPress(i),o={shouldStop:!0};if(!1===this.j.e.fire(n+".hotkey",i.type,o))if(o.shouldStop)return t=!0,e.e.stopPropagation("keydown"),!1;else i.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(t)return t=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(e){e.events&&e.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=e=>{let t=this.specialKeys[e.which],i=(e.key||String.fromCharCode(e.which)).toLowerCase(),n=[t||i];return["alt","ctrl","shift","meta"].forEach(i=>{e[i+"Key"]&&t!==i&&n.push(i)}),(0,r.normalizeKeyAliases)(n.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}o.pluginSystem.add("hotkeys",a)},16233:function(e,t,i){var n=i(22732),o=i(580),r=i(12153),s=i(6441),a=i(72337);r.Icon.set("hr",a.default),s.Config.prototype.controls.hr={command:"insertHorizontalRule",tooltip:"Insert Horizontal Line"},o.pluginSystem.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",()=>{var t;let i=e.createInside.element("hr");e.s.insertNode(i,!1,!1);let o=n.Dom.closest(i.parentElement,n.Dom.isBlock,e.editor);o&&n.Dom.isEmpty(o)&&o!==e.editor&&!(null==(t=e.o.dtd)?void 0:t.blockLimits[o.nodeName.toLowerCase()])&&(n.Dom.after(o,i),n.Dom.safeRemove(o));let r=n.Dom.findNotEmptySibling(i,!1);if(n.Dom.isBlock(r))return e.s.setCursorIn(r,!0),!1;if(r||i.parentNode!==e.editor&&!n.Dom.isBlock(n.Dom.findNotEmptySibling(i,!0)))return e.s.setCursorAfter(i),!1;let s=e.createInside.element(e.o.enter);return n.Dom.isTag(s,"br")||n.Dom.append(s,e.createInside.element("br")),n.Dom.after(i,s),e.s.setCursorIn(s),!1})})},72337:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M4 12h16"/> </g> </svg> '},50963:function(e,t,i){var n=i(6441);n.Config.prototype.iframeBaseUrl="",n.Config.prototype.iframeTitle="Jodit Editor",n.Config.prototype.iframeDoctype="<!DOCTYPE html>",n.Config.prototype.iframeDefaultSrc="about:blank",n.Config.prototype.iframeStyle="html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}",n.Config.prototype.iframeCSSLinks=[],n.Config.prototype.iframeSandbox=null},77469:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(76241);i(50963),r.pluginSystem.add("iframe",function(e){let t=e.options;e.e.on("afterSetMode",()=>{e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",(e,i)=>{let n=e||i.iframe.contentWindow.document;if(n.open(),n.write(t.iframeDoctype+`<html dir="${t.direction}" class="jodit" lang="${(0,s.defaultLanguage)(t.language)}">`+"<head>"+`<title>${t.iframeTitle}</title>`+(t.iframeBaseUrl?`<base href="${t.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(e=>{let t=n.createElement("link");(0,s.attr)(t,"rel","stylesheet"),(0,s.attr)(t,"href",e),n.head&&o.Dom.append(n.head,t),i.e.on(t,"load",()=>i.e.fire("resize"))}),t.iframeStyle){let e=n.createElement("style");e.innerHTML=t.iframeStyle,n.head&&o.Dom.append(n.head,e)}}).on("createEditor",()=>{if(!t.iframe)return;let i=e.c.element("iframe");(0,s.css)(i,"display","block"),i.src="about:blank",i.className="jodit-wysiwyg_iframe",(0,s.attr)(i,{allowtransparency:"true",tabindex:t.tabIndex.toString(),frameborder:"0"}),null!=t.iframeSandbox&&(0,s.attr)(i,"sandbox",t.iframeSandbox),o.Dom.append(e.workplace,i),e.iframe=i;let r=e.e.fire("generateDocumentStructure.iframe",null,e);return(0,s.callPromise)(r,()=>{if(!e.iframe)return!1;let i=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;let r=t.editHTMLDocumentMode,l=()=>{(0,s.attr)(i.body,"contenteditable",e.getMode()!==n.MODE_SOURCE&&!e.getReadOnly()||null)},c=(e,t)=>{for(;t>0&&/\s/.test(e.charAt(t-1));)t-=1;return t},u=e=>{e=(0,a.removeBetween)(e,"<style",">","</style>","jodit-box");let t=(0,a.indexOfOpenTag)(e,"body"),i=-1;for(let n=(0,a.indexOfClosingTag)(e,"body",t+1);-1!==n;n=(0,a.indexOfClosingTag)(e,"body",n+1))i=n;if(-1!==t&&-1!==i){let n=i+7,o=e.indexOf(">",t),r=e.slice(t,n);for(let s of(-1!==o&&o<i&&(r=(e=>{e=e.replace(/min-height["'\s]*:[\s"']*[0-9]+(px|%)/i,"");let t=(t,i)=>{for(;i.test(e.charAt(t));)t+=1;return t},i=e.indexOf("contenteditable");for(;-1!==i;){let n=t(i+15,/["'\s]/);if("="===e.charAt(n)&&(n=t(n+1,/[\s"']/),e.startsWith("true",n))){n=t(n+4,/["']/);let o=i;return/["']/.test(e.charAt(o-1))&&(o-=1),o=c(e,o),e.slice(0,o)+e.slice(n)}i=e.indexOf("contenteditable",i+1)}return e})(e.slice(t,o))+e.slice(o,n)),["style","script","span"]))r=(0,a.removeBetween)(r,"<"+s,">","</"+s+">","jodit");let s=e=>(0,a.removeBetween)((0,a.removeBetween)(e,"<span",">","</span>"),"&lt;span","&gt;","&lt;/span&gt;");e=(s(e.slice(0,t))+r+s(e.slice(n))).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")}return e};if(r){let t=e.element.tagName;if("TEXTAREA"!==t&&"INPUT"!==t)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",()=>u(e.o.iframeDoctype+i.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:t})=>{if(e.isLocked)return!1;if(/<(html|body)/i.test(t)){if(u(i.documentElement.outerHTML)!==u(t)){var n;let r,a;n=u(t),r=new DOMParser().parseFromString(n,"text/html"),e.e.fire("safeHTML",r.documentElement),a=(0,s.$$)("style.jodit-box",i.head),i.replaceChild(i.adoptNode(r.documentElement),i.documentElement),a.forEach(e=>o.Dom.append(i.head,e)),e.editor=i.body,l(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue")}return!0}return!1},{top:!0})}if(e.editor=i.body,e.e.on("afterSetMode afterInit afterAddPlace",l),"auto"===t.height){i.documentElement&&(0,s.css)(i.documentElement,"overflowY","hidden");let n=e.async.throttle((...i)=>{e.async.requestAnimationFrame(()=>{if(e.editor&&e.iframe&&"auto"===t.height){let t=e.ew.getComputedStyle(e.editor),i=parseInt(t.marginTop||"0",10)+parseInt(t.marginBottom||"0",10);(0,s.css)(e.iframe,"height",e.editor.offsetHeight+i)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",n).on([e.iframe,e.ew,i.documentElement],"load",n).on(i,"readystatechange DOMContentLoaded",n),"function"==typeof ResizeObserver){let t=new ResizeObserver(n);t.observe(i.body),e.e.on("beforeDestruct",()=>{t.disconnect()})}}return i.documentElement&&e.e.on(i.documentElement,"mousedown touchend",()=>{e.s.isFocused()||(e.s.focus(),e.editor===i.body&&e.s.setCursorIn(i.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",t=>{var i;null==(i=e.events)||i.fire(e.ow,t)}),!1})})})},43687:function(e,t,i){i(6441).Config.prototype.imageCaption={wrapper:{tag:"figure",className:""},inner:null,caption:{tag:"figcaption",className:""}}},84571:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(41180),c=i(20356),u=i(45124);i(43687);var d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let h=["margin-top","margin-right","margin-bottom","margin-left"],p=new Set([n.KEY_UP,n.KEY_DOWN,n.KEY_LEFT,n.KEY_RIGHT]),f=/^(P|H[1-6]|PRE)$/i,m=new Set(["formatblock","insertorderedlist","insertunorderedlist"]),g="data-jodit-placeholder",v=`:where(.jodit-wysiwyg [contenteditable=false] [contenteditable=true]:focus){outline:1px solid var(--jd-color-border-selected,#1e88e5)}:where(.jodit-wysiwyg [${g}]){position:relative}:where(.jodit-wysiwyg [${g}])::before{position:absolute;top:0;right:0;left:0;padding:inherit;color:var(--jd-color-placeholder,#a5a5a5);content:attr(${g});pointer-events:none}`;class b extends c.Plugin{afterInit(e){(0,s.getContainer)(e,"imageCaption","style",!0).textContent=v,e.e.on("beforeCommandSelectall",this.__onSelectAll,{top:!0}),this.onChangePlace()}onToggleImageCaption(e,t){let i=(0,a.getCaptionWrapper)(this.j,e);if(i&&!0!==t){let t=this.__freshCaption(i);return t?this.__unrecorded(()=>this.__restore(t)):this.__uncaption(i,e),null}if(!i&&!1!==t)return this.__caption(e)}__freshCaption(e){let t=this.__fresh;return t&&t.wrapper===e&&e.parentNode===t.parent&&e.previousSibling===t.previous&&e.nextSibling===t.next&&y(e,t.image)===t.shape&&(0,a.getImageCaption)(this.j,e)===t.caption&&r.Dom.isEmpty(t.caption)?t:null}__caption(e){let t,{j:i}=this,{snapshot:n}=i.history;i.setEditorValue(),i.e.fire("internalUpdate");let o=n.make();return n.transaction(()=>{t=this.__fresh={...this.__wrap(e),before:o},i.setEditorValue()}),i.e.fire("updateToolbar"),t.caption}__unrecorded(e){let{j:t}=this;t.setEditorValue(),this.__fresh=null,t.history.snapshot.transaction(()=>{e(),t.setEditorValue()}),t.e.fire("internalUpdate"),t.e.fire("updateToolbar")}__wrap(e){var t,i;let{j:n}=this,{wrapper:o,inner:s,caption:c}=n.o.imageCaption,u=r.Dom.closest(e,"a",n.editor),d=!u||(null==(t=u.textContent)?void 0:t.trim())||1!==u.getElementsByTagName("img").length?e:u,h=[(0,a.attr)(e,"style"),(0,a.attr)(e,"class")],p=d.parentNode,f=(0,l.cssInline)(e,"width")||((i=(0,a.attr)(e,"width"))?(0,a.isNumeric)(i)?`${i}px`:i:"")||(e.offsetWidth?`${e.offsetWidth}px`:""),m=(0,a.getAlignClasses)(n,e),g=(0,a.getHAlign)(e,m);(0,a.clearHAlign)(e,m);let v=this.__create(o),b=s?this.__create(s):v,w=this.__create(c);w.appendChild(n.createInside.element("br"));let k=this.__insert(v,d);return b!==v&&r.Dom.append(v,b),r.Dom.append(b,[d,w]),_(e,v),f&&((0,a.css)(v,"width",f),(0,a.css)(e,"width","100%")),(0,a.hAlignElement)(v,g,(0,a.getAlignClasses)(n,v)),this.__mark(v),{caption:w,wrapper:v,image:e,target:d,place:p,split:k,attributes:h,parent:v.parentNode,previous:v.previousSibling,next:v.nextSibling,shape:y(v,e)}}__restore(e){var t,i;let{wrapper:n,image:o,target:s,place:l,split:c,attributes:u}=e;if(c)if(c.head||c.tail){let{sel:e}=this.j.s,n=(null==e?void 0:e.rangeCount)?e.getRangeAt(0).startContainer:null,{head:o,tail:l}=c;if(o&&!(l&&n&&r.Dom.isOrContains(l,n)))r.Dom.append(o,[s,...(0,a.toArray)(null!=(t=null==l?void 0:l.childNodes)?t:[])]),r.Dom.safeRemove(l);else if(l){let e=l.firstChild;[...(0,a.toArray)(null!=(i=null==o?void 0:o.childNodes)?i:[]),s].forEach(t=>l.insertBefore(t,e)),r.Dom.safeRemove(o)}}else r.Dom.append(l,s),r.Dom.before(n,c.block);else r.Dom.before(n,s);r.Dom.safeRemove(n),(0,a.attr)(o,{style:u[0],class:u[1]})}__uncaption(e,t){var i;let{j:o}=this,s=(0,a.getHAlign)(e,(0,a.getAlignClasses)(o,e)),c=(0,l.cssInline)(e,"width");r.Dom.safeRemove((0,a.getImageCaption)(o,e));let u=null!=(i=r.Dom.closest(t,"a",e))?i:t;if(_(e,t),c&&(0,a.css)(t,"width",c),(0,a.hAlignElement)(t,s,(0,a.getAlignClasses)(o,t)),r.Dom.isBlock(e)&&e.parentNode===o.editor&&o.o.enter.toLowerCase()!==n.BR){let t=o.createInside.element(o.o.enter);r.Dom.before(e,t),r.Dom.append(t,u)}else r.Dom.before(e,u);r.Dom.safeRemove(e)}__create({tag:e,className:t}){return this.j.createInside.element(e,t?{class:t}:{})}__insert(e,t){let{j:i}=this,n=r.Dom.isBlock(e)?r.Dom.closest(t,r.Dom.isBlock,i.editor):null;if(!n||!f.test(n.nodeName))return r.Dom.before(t,e),null;let o=i.ed.createRange();o.setStartBefore(n),o.setEndBefore(t);let s=o.extractContents();o.setStartAfter(t),o.setEndAfter(n);let[l,c]=[s,o.extractContents()].map((e,t)=>{let i=e.firstChild;return!i||r.Dom.isEmpty(i)?null:((0,a.call)(t?r.Dom.after:r.Dom.before,n,i),i)});return r.Dom.before(n,e),r.Dom.safeRemove(n),{block:n,head:l,tail:c}}__mark(e){(0,a.attr)(e,"contenteditable",!1);let t=(0,a.getImageCaption)(this.j,e);t&&((0,a.attr)(t,"contenteditable",!0),this.__placeholder(t))}__placeholder(e){let t=r.Dom.isEmpty(e)?this.j.i18n("Caption"):null;(0,a.attr)(e,g)!==t&&(0,a.attr)(e,g,t)}onChange(){let{j:e}=this;e.isInDestruct||e.getMode()===n.MODE_SOURCE||(0,a.toArray)(e.editor.getElementsByTagName(e.o.imageCaption.wrapper.tag)).forEach(t=>{r.Dom.isHTMLElement(t)&&(0,a.getCaptionedImage)(e,t)&&this.__mark(t)})}onInput(){let e=this.__caretCaption();e&&this.__placeholder(e)}onAfterGetValueFromEditor(e){if(!e.value.includes("contenteditable"))return;let{j:t}=this,i=t.c.element("template");i.innerHTML=e.value;let n=e=>(0,a.toArray)(e.querySelectorAll(t.o.imageCaption.wrapper.tag)).filter(e=>(0,a.getCaptionedImage)(t,e)),o=n(i.content),s=this.__fresh&&this.__freshCaption(this.__fresh.wrapper),l=s&&o[n(t.editor).indexOf(s.wrapper)],c=s&&l&&function(e,t,i){var n;let o=(0,a.getCaptionedImage)(e,i),{split:s}=t;if(!o)return null;let l={wrapper:i,image:o,target:null!=(n=r.Dom.closest(o,"a",i))?n:o,place:t.place,split:null,attributes:t.attributes};if(s){let e=s.head?i.previousSibling:null,n=s.tail?i.nextSibling:null;if(s.head&&!r.Dom.isHTMLElement(e)||s.tail&&!r.Dom.isHTMLElement(n))return null;let o=s.block.cloneNode(!0);l.split={block:o,head:e,tail:n},l.place=function(e,t,i){let n=[];for(let i=t;i!==e&&i.parentNode;i=i.parentNode)n.unshift((0,a.toArray)(i.parentNode.childNodes).indexOf(i));return n.reduce((e,t)=>e.childNodes[t],i)}(s.block,t.place,o)}return l}(t,s,l),u=!1;c&&(this.__restore(c),u=!0),o.forEach(e=>{[e,(0,a.getImageCaption)(t,e)].forEach(e=>["contenteditable",g].forEach(t=>{(null==e?void 0:e.hasAttribute(t))&&(e.removeAttribute(t),u=!0)}))}),u&&(e.value=i.innerHTML)}onChangePlace(){let{j:e}=this;e.e.off([e.editor,e.ow,e.ew],".imageCaption").on(e.editor,"focusout.imageCaption",this.__onFocusOut,{capture:!0}).on(e.editor,"mousedown.imageCaption",this.__onMouseDown,{capture:!0}).on([e.ow,e.ew],"mouseup.imageCaption",this.__onMouseUp)}__onMouseDown(e){this.__press=e.target}__onFocusOut(e){let t=e.target;(0,a.getImageCaption)(this.j,(0,a.getCaptionWrapper)(this.j,t))===t&&(this.__press?this.__afterPress.push(t):this.__dropBlank(t,null))}__onMouseUp(){let e=this.__press;this.__press=null,this.__afterPress.splice(0).forEach(t=>this.__dropBlank(t,e))}__dropBlank(e,t){this.j.async.setTimeout(()=>{let{j:i}=this,n=(0,a.getCaptionWrapper)(i,e),o=(0,a.getCaptionedImage)(i,n);if(!n||!o||!r.Dom.isEmpty(e)||this.__keepsFocus(e))return;let s=!!(t&&r.Dom.isOrContains(n,t)),l=this.__freshCaption(n);this.__unrecorded(()=>l?this.__restore(l):this.__uncaption(n,o)),s&&i.e.fire("recalcPositionPopup")},1)}__keepsFocus(e){let{j:t}=this,i=e.ownerDocument;if(i.activeElement===e&&(i.hasFocus()||!t.od.hasFocus()))return!0;let n=t.od.activeElement;return!!(n&&n!==t.iframe&&!r.Dom.isOrContains(t.editor,n)&&(r.Dom.isOrContains(t.container,n)||r.Dom.closest(n,e=>r.Dom.isElement(e)&&(0,a.attr)(e,"data-editor_id")===t.id,t.od.body)))}__caretCaption(){let{s:e}=this.j;if(!e.isInsideArea)return null;let t=e.range.startContainer,i=(0,a.getImageCaption)(this.j,(0,a.getCaptionWrapper)(this.j,t));return i&&r.Dom.isOrContains(i,t)?i:null}onBeforeEnter(e){let t=(null==e?void 0:e.shiftKey)?null:this.__caretCaption(),i=(0,a.getCaptionWrapper)(this.j,t);if(!i)return;let{j:n}=this;if(this.__focusEditor(),!r.Dom.isBlock(i))return void n.s.setCursorAfter(i);let o=this.__line();return r.Dom.after(i,o),n.s.setCursorIn(o),n.synchronizeValues(),!1}__focusEditor(){this.j.editor.focus({preventScroll:!0})}__line(){let{j:e}=this,t=e.createInside.element(e.o.enter);return r.Dom.isTag(t,"br")||r.Dom.append(t,e.createInside.element("br")),t}onBeforeInsertNode(e){let t=(0,a.getCaptionWrapper)(this.j,this.__caretCaption());if(!t||!((r.Dom.isElement(e)||r.Dom.isFragment(e))&&[e,...(0,a.toArray)(e.querySelectorAll("*"))].some(e=>r.Dom.isElement(e)&&(r.Dom.isBlock(e)||n.NO_EMPTY_TAGS.has(e.nodeName.toLowerCase())))))return;let{j:i}=this;if(this.__focusEditor(),!r.Dom.isBlock(t))return void i.s.setCursorAfter(t);let o=this.__line();r.Dom.after(t,o),i.s.setCursorIn(o)}onBeforeCommandDelete(){let e=this.__selectedWrapper();if(!e||!r.Dom.isBlock(e))return;let t=this.__line();return r.Dom.before(e,t),r.Dom.safeRemove(e),this.j.s.setCursorIn(t),!1}__selectedWrapper(){let{s:e}=this.j;if(!e.isInsideArea||e.isCollapsed())return null;let{startContainer:t,startOffset:i,endContainer:n,endOffset:o}=e.range,r=t.childNodes[i];return t===n&&o===i+1&&(0,a.getCaptionedImage)(this.j,r)?r:null}onKeyDown(e){var t;if(this.__arrow=null,(null==(t=e.key)?void 0:t.length)===1&&!e.ctrlKey&&!e.metaKey&&this.__selectedWrapper())return void this.j.execCommand("Delete");if(!p.has(e.key)||e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||!this.j.s.isCollapsed())return;let i=this.__caretCaption();i&&(this.__arrow={key:e.key,range:this.j.s.range.cloneRange(),caption:i})}onKeyUp(e){let t=this.__arrow;if(this.__arrow=null,!t||e.key!==t.key||(0,u.isMoved)(this.j,t.range))return;let i=(0,a.getCaptionWrapper)(this.j,t.caption);if(!i)return;let o=t.key===n.KEY_DOWN||t.key===n.KEY_RIGHT,{s}=this.j;if(this.__focusEditor(),!r.Dom.isBlock(i))return void(o?s.setCursorAfter(i):s.setCursorBefore(i));let l=r.Dom.findNotEmptySibling(i,!o);if(r.Dom.isHTMLElement(l))return void s.setCursorIn(l,o);if(r.Dom.isText(l))return void(o?s.setCursorBefore(l):s.setCursorAfter(l));let c=this.__line();(0,a.call)(o?r.Dom.after:r.Dom.before,i,c),s.setCursorIn(c),this.j.synchronizeValues()}onBeforeCommand(e){let t=e.toLowerCase();if(m.has(t)&&this.__caretCaption())return!1;let i="undo"===t&&this.__fresh?this.__freshCaption(this.__fresh.wrapper):null;if(i)return this.__unrecorded(()=>{this.__restore(i),this.j.history.snapshot.restore(i.before)}),!1}__onSelectAll(){let e=this.__caretCaption();if(e)return this.j.e.stopPropagation("beforeCommandSelectall"),this.j.s.select(e,!0),!1}beforeDestruct(e){e.e.off("beforeCommandSelectall",this.__onSelectAll).off([e.editor,e.ow,e.ew],".imageCaption")}constructor(){super(...arguments),this.__fresh=null,this.__press=null,this.__afterPress=[],this.__arrow=null}}function y(e,t){return[e,t].flatMap(e=>[(0,a.attr)(e,"style"),(0,a.attr)(e,"class")]).join("|")}function _(e,t){var i;h.forEach(i=>{let n=(0,l.cssInline)(e,i);n&&((0,a.css)(t,i,n),(0,a.css)(e,i,""))}),(null==(i=(0,a.attr)(e,"style"))?void 0:i.trim())||(0,a.attr)(e,"style",null)}d([(0,o.watch)(":toggleImageCaption")],b.prototype,"onToggleImageCaption",null),d([(0,o.watch)([":change",":afterInit",":afterSetMode",":changePlace"]),(0,o.debounce)()],b.prototype,"onChange",null),d([(0,o.watch)([":input",":keyup",":afterPaste"])],b.prototype,"onInput",null),d([(0,o.watch)(":afterGetValueFromEditor")],b.prototype,"onAfterGetValueFromEditor",null),d([(0,o.watch)(":changePlace")],b.prototype,"onChangePlace",null),d([o.autobind],b.prototype,"__onMouseDown",null),d([o.autobind],b.prototype,"__onFocusOut",null),d([o.autobind],b.prototype,"__onMouseUp",null),d([(0,o.watch)(":beforeEnter")],b.prototype,"onBeforeEnter",null),d([(0,o.watch)(":beforeInsertNode")],b.prototype,"onBeforeInsertNode",null),d([(0,o.watch)(":beforeCommandDelete")],b.prototype,"onBeforeCommandDelete",null),d([(0,o.watch)(":keydown")],b.prototype,"onKeyDown",null),d([(0,o.watch)(":keyup")],b.prototype,"onKeyUp",null),d([(0,o.watch)(":beforeCommand")],b.prototype,"onBeforeCommand",null),d([o.autobind],b.prototype,"__onSelectAll",null),s.pluginSystem.add("imageCaption",b)},85745:function(e,t,i){i(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(74569);i(85745);var u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let d="__jodit_imageprocessor_binded",h=d+"blob-id",p="jodit-wysiwyg_image-selected",f=new Set(["img","jodit","jodit-media"]);class m extends l.Plugin{afterInit(e){e.e.on(e.ed,"selectionchange",this.onSelectionChange),(0,s.getContainer)(e,"image-processor","style",!0).textContent=`.jodit-wysiwyg.${p}::selection,.jodit-wysiwyg.${p} *:not(img)::selection{background:transparent}`}beforeDestruct(e){e.e.off(e.ed,"selectionchange",this.onSelectionChange),e.editor.classList.remove(p);let t=(0,o.cached)(e,"buffer"),i=null==t?void 0:t.get(h);if(t&&i){for(let e of Object.keys(i))URL.revokeObjectURL(e);t.delete(h)}}onAfterGetValueFromEditor(e,t){if(t!==n.SOURCE_CONSUMER)return this.onBeforeSetElementValue(e)}onBeforeSetElementValue(e){let{jodit:t}=this;if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;let i=t.buffer.get(h);if(i)for(let t of Object.keys(i))for(;e.value.includes(t);)e.value=e.value.replace(t,i[t])}onSelectionChange(){let{jodit:e}=this;e.editor.classList.toggle(p,function(e){var t;let{sel:i}=e.s;if(!i||!i.rangeCount)return!1;let{startContainer:n,startOffset:o,endContainer:s,endOffset:l}=i.getRangeAt(0),c=n.childNodes[o];return n===s&&l===o+1&&(r.Dom.isTag(c,f)||!!(null!=(t=(0,a.getWrappedMedia)(e,c))?t:(0,a.getCaptionedImage)(e,c)))&&r.Dom.isOrContains(e.editor,n)}(e))}async afterChange(e){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(e=>{(0,a.dataBind)(e,d)||((0,a.dataBind)(e,d,!0),e.complete||t.e.on(e,"load",function i(){var n;t.isInDestruct||null==(n=t.e)||n.fire("resize"),t.e.off(e,"load",i)}),e.src&&/^data:/.test(e.src)&&function(e,t){let i;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=t.src;try{i=(0,c.dataURItoBlob)(n)}catch(e){return}t.src=URL.createObjectURL(i),e.e.fire("internalUpdate");let{buffer:o}=e,r=o.get(h)||{};r[t.src]=n,e.buffer.set(h,r)}(t,e),t.e.on(e,"mousedown touchstart",()=>{var i;(function(e){var t;for(let i of["previousSibling","nextSibling"]){let o=e[i];for(;r.Dom.isText(o)&&!(null==(t=o.nodeValue)?void 0:t.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),""));){let e=o[i];r.Dom.safeRemove(o),o=e}}})(e),t.s.select(null!=(i=(0,a.getCaptionWrapper)(t,e))?i:e)}))})}}u([(0,o.watch)(":afterGetValueFromEditor")],m.prototype,"onAfterGetValueFromEditor",null),u([(0,o.watch)(":beforeSetElementValue")],m.prototype,"onBeforeSetElementValue",null),u([o.autobind],m.prototype,"onSelectionChange",null),u([(0,o.watch)([":change",":afterInit",":changePlace"]),(0,o.debounce)()],m.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",m)},97536:function(e,t,i){i(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,showCaptionCheckbox:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(e,t,i){var n=i(65478),o=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(62843);i(97536);var c=i(59436),u=i(53636),d=i(10263),h=i(94575),p=i(34755),f=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class m extends a.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,u.openImageEditorDialog)(this.j,this.state),openImagePopup:e=>(0,d.openImagePopup)(this.j,this.dialog,this.state,e)})}get dialog(){let{j:e}=this,t=e.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),i=this.__buttons;return i.check.onAction(()=>{(0,p.applyValuesToImage)(e,this.state,this.state.sourceImage),e.synchronizeValues(),t.close()}),i.remove.onAction(()=>{var i;let{sourceImage:n}=this.state,o=null!=(i=(0,s.getCaptionWrapper)(e,n))?i:n,r=e.s.createRange();r.setStartBefore(o),r.collapse(!0),e.s.removeNode(o),t.close(),e.s.selectRange(r)}),i.cancel.onAction(()=>{t.close()}),t.setHeader(e.i18n("Image properties")),t.setContent(this.form),t.setFooter([[i.cancel,i.remove],i.check]),t.e.on(t,"afterClose",()=>{let{sourceImage:t}=this.state;if(e.isInDestruct||!o.Dom.isOrContains(e.editor,t))return;let i=(0,s.getCaptionWrapper)(e,t),n=(0,s.getImageCaption)(e,i);if(n&&o.Dom.isEmpty(n))return void e.s.setCursorIn(n);let r=null!=i?i:t;if(e.o.image.selectImageAfterClose)return void e.s.select(r);let a=e.s.createRange();a.setStartAfter(r),a.collapse(!0),e.s.selectRange(a)}),t.setSize(e.o.image.dialogWidth),(0,s.markOwner)(e,t.container),t}get __buttons(){let{j:e}=this;return{check:(0,l.Button)(e,"ok","Apply","primary"),remove:(0,l.Button)(e,"bin","Delete"),cancel:(0,l.Button)(e,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.__focusFirstField(),this.async.promise((e,t)=>(0,h.readValuesFromImage)(this.j,this.state).then(e,t)).catch(e=>{(0,s.isAbortError)(e)||this.dialog.message.error(e.message)}).finally(()=>this.__unlock()),!1}__focusFirstField(){var e;let t=e=>(0,s.toArray)(e.querySelectorAll("input, select, textarea"));null==(e=t(this.form.getElm("tabsBox")).concat(t(this.form.container)).find(e=>null!=e.offsetParent))||e.focus()}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(e=>e.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(e=>e.state.disabled=!1)}afterInit(e){let t=this;e.e.on("afterConstructor changePlace",()=>{e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",i=>{let n=i.target;if(o.Dom.isTag(n,"img"))if(e.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",n))return;t.state.sourceImage=n,t.state.image=n.cloneNode(!0),e.o.readonly||(i.stopImmediatePropagation(),i.preventDefault(),t.open())}else i.stopImmediatePropagation(),e.s.select(n)})}).on("openImageProperties.imageproperties",e=>{t.state.sourceImage=e,this.state.image=e.cloneNode(!0),this.open()})}async onStateValuesImageSrcChange(){let{image:e,values:t}=this.state;if(e.src)try{this.__lock();try{await e.decode()}catch(e){}if(this.state.sizeIsLocked&&(0,s.isNumeric)(t.imageWidth)){let e=parseFloat(t.imageWidth.toString());t.imageHeight=Math.round(e/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",e)}catch(e){this.j.alert(e.message)}finally{this.__unlock()}}beforeDestruct(e){var t,i,o;Object.values(null!=(t=(0,n.cached)(this,"__buttons"))?t:{}).forEach(e=>e.destruct()),null==(i=(0,n.cached)(this,"dialog"))||i.destruct(),null==(o=(0,n.cached)(this,"form"))||o.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){let{naturalWidth:e,naturalHeight:t}=this.image;return e/t||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageCaption:!1,imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}f([n.cache],m.prototype,"form",null),f([n.cache],m.prototype,"dialog",null),f([n.cache],m.prototype,"__buttons",null),f([(0,n.watch)("state.image")],m.prototype,"onStateValuesImageSrcChange",null),r.pluginSystem.add("imageProperties",m)},51642:function(e,t,i){i.d(t,{readAlign:function(){return o}});var n=i(25726);function o(e,t,i){let o=(0,n.getHAlign)(e,i);t.align="normal"===o?"":o}},94575:function(e,t,i){i.d(t,{readValuesFromImage:function(){return d}});var n=i(25726),o=i(29960),r=i(41180),s=i(68645),a=i(51642),l=i(75595),c=i(47749),u=i(32566);async function d(e,t){let{sourceImage:i,values:d}=t,h=(0,s.getCaptionWrapper)(e,i),p=null!=h?h:i;return d.imageCaption=!!h,(0,a.readAlign)(p,d,(0,n.getAlignClasses)(e,p)),d.borderRadius=parseInt((0,r.cssInline)(i,"border-radius")||"0",10)||0,d.id=(0,o.attr)(i,"id")||"",d.imageTitle=(0,o.attr)(i,"title")||"",d.imageAlt=(0,o.attr)(i,"alt")||"",d.style=(0,o.attr)(i,"style")||"",d.classes=((0,o.attr)(i,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,c.readMargins)(p,d,t),(0,l.readLink)(t,e,d),d.imageSrc=(0,o.attr)(i,"src")||"",(0,u.readSizes)(i,d,t,h)}},75595:function(e,t,i){i.d(t,{readLink:function(){return r}});var n=i(2748),o=i(29960);function r(e,t,i){let r=n.Dom.closest(e.sourceImage,"a",t.editor);r?(i.imageLink=(0,o.attr)(r,"href")||"",i.imageLinkOpenInNewTab="_blank"===(0,o.attr)(r,"target")):(i.imageLink="",i.imageLinkOpenInNewTab=!1)}},47749:function(e,t,i){i.d(t,{readMargins:function(){return o}});var n=i(12475);function o(e,t,i){let o=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(i=>{let s=e.style.getPropertyValue((0,n.kebabCase)(i));if(!s){r=!0,t[i]=0;return}/^[0-9]+(px)?$/.test(s)&&(s=parseInt(s,10)),t[i]=s,(r&&t[i]||o&&"marginTop"!==i&&t[i]!==t.marginTop)&&(o=!1)}),i.marginIsLocked=o}},32566:function(e,t,i){i.d(t,{readSizes:function(){return a}});var n=i(29807),o=i(29960),r=i(41180),s=i(14415);async function a(e,t,i,a){try{await e.decode()}catch(e){}let l=(0,r.css)(null!=a?a:e,"width",!0)||(0,o.attr)(e,"width")||!1,c=(0,r.css)(e,"height",!0)||(0,o.attr)(e,"height")||!1;t.imageWidth=!1!==l?(0,s.normalSizeFromString)(l):e.offsetWidth||e.naturalWidth,(0,n.isNumeric)(t.imageWidth)?t.imageHeight=!1!==c?(0,s.normalSizeFromString)(c):e.offsetHeight||e.naturalHeight:t.imageHeight=c||"";let{imageWidth:u,imageHeight:d}=t,h=parseFloat(u.toString());if(!(0,n.isNumeric)(u)||!(0,n.isNumeric)(d)){i.sizeIsLocked=!1;return}if(!1===c){t.imageHeight=Math.round(h/i.ratio),i.sizeIsLocked=!0;return}i.sizeIsLocked=1>Math.abs(h-parseFloat(d.toString())*i.ratio)}},59436:function(e,t,i){i.d(t,{UIImagePropertiesForm:function(){return p}});var n=i(65478),o=i(87325),r=i(2748),s=i(21537),a=i(62405),l=i(12153),c=i(92762),u=i(35105),d=i(29827),h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p=class e extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(e){let t=super.getElm(e);if(t)return t;for(let t of this.elements){let i=t.getElm(e);if(i)return i}return null}render(){return`<form>
137
137
  <div class="jodit-grid jodit-grid_xs-column">
138
138
  <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
139
139
  <div class="&__view-box">
@@ -239,7 +239,7 @@
239
239
  `.trim().split(/\s+/));i.d(t,["TLDS",0,n])},58970:function(e,t,i){i.d(t,{findTypedLink:function(){return u}});var n=i(26049),o=i(67272);let r=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,s=new Set(["(","[",'"',"'","“","‘","<"]),a=new Set([".",",",";",":","!","?",'"',"'","”","’",">"]),l={")":"(","]":"["},c=/^[a-z\d][a-z\d-]{0,62}$/i;function u(e,t,i,u){var d;let h,p,f,m,g=t;for(;g>0&&!/\s/.test(e[g-1]);)g-=1;for(;g<t&&s.has(e[g]);)g+=1;for(;t>g;){let i=e[t-1],n=l[i];if(a.has(i)||n&&!e.slice(g,t-1).includes(n))t-=1;else break}let v=(d=e.slice(g,t),h=d.replace(/^mailto:/i,""),r.test(h)?"mailto:"+h:/^www\.[^\s.]+\.\S+$/i.test(d)||(m=(f=((p=d.search(/[/?#]/))<0?d:d.slice(0,p)).split("."))[f.length-1],f.length>1&&f.every(e=>c.test(e)&&!e.endsWith("-"))&&(o.TLDS.has(m)||i.includes(m))&&!u.includes(m)&&/[a-z]/i.test(f[0]))?"https://"+d:/^[a-z][a-z\d+.-]*:\/\//i.test(d)&&(0,n.isURL)(d)?d:"");return v?[g,t,v]:null}i.d(t,["EMAIL",0,r])},757:function(e,t,i){var n=i(6441);n.Config.prototype.mediaFakeTag="jodit-media",n.Config.prototype.mediaInFakeBlock=!0,n.Config.prototype.mediaBlocks=["video","audio"],n.Config.prototype.mediaWrappers={}},20071:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(76241),a=i(43555),l=i(41180);i(757),r.pluginSystem.add("media",function(e){let t="jodit_fake_wrapper",{mediaFakeTag:i,mediaBlocks:c,mediaInFakeBlock:u,mediaWrappers:d}=e.options,h=Object.values(d);h.length&&e.e.on("afterInit",()=>{let t=e=>[...new Set(e)].join(","),i=({tag:e,className:t})=>`.jodit-wysiwyg ${e}.${t}`,o=t(h.filter(({tag:e})=>n.IS_INLINE.test(e)).map(i)),s=t(h.flatMap(e=>c.map(t=>`${i(e)}>${t}`)));(0,r.getContainer)(e,"media-wrappers","style",!0).innerHTML=(o?`:where(${o}){display:inline-block}`:"")+`${s}{pointer-events:none}`}),(u||Object.keys(d).length)&&e.e.on("afterGetValueFromEditor",e=>{e.value=(0,s.unwrapMarkedTags)(e.value,i,"data-"+t)}).on("change afterInit afterSetMode changePlace",e.async.debounce(()=>{e.isDestructed||e.getMode()===n.MODE_SOURCE||(0,a.$$)(c.join(","),e.editor).forEach(n=>{(0,a.dataBind)(n,t)||((0,a.dataBind)(n,t,!0),(n=>{var r;if(n.parentNode&&(0,a.attr)(n.parentNode,"data-jodit_iframe_wrapper"))n=n.parentNode;else if(d[n.nodeName.toLowerCase()])n=null!=(r=(0,a.getMediaWrapper)(e,n))?r:(0,a.wrapMedia)(e,n);else{if(!u)return;let r=n,s=e.createInside.element(i,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+t]:1});(0,a.attr)(s,"style",(0,a.attr)(n,"style"));let c=()=>{let e=(0,l.cssInline)(r,"width").endsWith("%");(0,l.css)(s,{display:!e&&/^inline/.test((0,l.css)(r,"display").toString())?"inline-block":"block",width:e?"":"fit-content",height:""})};c(),e.e.on(r,"changesize",c),n.parentNode&&o.Dom.before(n,s),o.Dom.append(s,n),n=s}e.e.off(n,"mousedown.select touchstart.select").on(n,"mousedown.select touchstart.select",()=>{e.s.select(n)})})(n))})},e.defaultTimeout))})},37585:function(e,t,i){var n=i(82758),o=i(21537),r=i(41180),s=i(6441),a=i(11676),l=i(21491);s.Config.prototype.mobileTapTimeout=300,s.Config.prototype.toolbarAdaptive=!0,s.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},`
240
240
  `,{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],s.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},`
241
241
  `,{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],s.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],s.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup(e,t,i,n){let s=n.control.data;return void 0===s&&(s={toolbar:(0,l.makeCollection)(e),rebuild(){var t,i;if(n){let l=e.e.fire("getDiffButtons.mobile",n.closest(a.ToolbarCollection));if(l&&s){s.toolbar.build((0,o.splitArray)(l));let n=(null==(i=null==(t=e.toolbar)?void 0:t.firstButton)?void 0:i.container.offsetWidth)||36;(0,r.css)(s.toolbar.container,"width",(n+4)*3)}}}},n.control.data=s),s.rebuild(),s.toolbar},tooltip:"Show all"}},32309:function(e,t,i){var n=i(2748),o=i(580),r=i(21537),s=i(70799),a=i(43649);i(37585);let l=e=>"|"===e||"---"===e||`
242
- `===e;function c(e,t){var i;let n=(0,a.flatButtonsSet)((0,r.splitArray)(t.o.buttons),t),o=t.getRegisteredButtonGroups(),s=!1,c=!1,u=[];for(let t of e)if((0,a.isButtonGroup)(t)){let e=[...t.buttons,...null!=(i=o[t.group])?i:[]],r=e.filter(e=>n.has(e));r.length!==e.length&&(s=!0),u.push(...r)}else l(t)?u.push(t):"dots"===t?c=!0:n.has(t)?u.push(t):s=!0;if(!s)return e;let d=[];for(let e of u)l(e)&&(0===d.length||l(d[d.length-1]))||d.push(e);for(;d.length&&l(d[d.length-1]);)d.pop();if(c){let e=(0,a.flatButtonsSet)(d,t);(0,r.toArray)(n).some(t=>!e.has(t))&&d.push("dots")}return d}o.pluginSystem.add("mobile",function(e){let t=0,i=(0,r.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let n=new Date().getTime(),o=n-t;o>e.o.mobileTapTimeout&&(t=n,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,a.flatButtonsSet)((0,r.splitArray)(e.o.buttons),e),n=(0,a.flatButtonsSet)(i,e);return(0,r.toArray)(t).reduce((e,t)=>(n.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var t;if(!e.o.toolbar)return;let o=(()=>{if(e.isFullSize)return(0,r.splitArray)(e.o.buttons);let t=function(e){var t;let{toolbar:i}=e.o;if((0,s.isString)(i)||n.Dom.isHTMLElement(i)){let t=e.toolbarContainer.offsetWidth;if(t)return t}return e.container.offsetWidth||(null!=(t=e.container.parentElement)?t:e.container).offsetWidth}(e);return t>=e.o.sizeLG?(0,r.splitArray)(e.o.buttons):t>=e.o.sizeMD?c((0,r.splitArray)(e.o.buttonsMD),e):t>=e.o.sizeSM?c((0,r.splitArray)(e.o.buttonsSM),e):c((0,r.splitArray)(e.o.buttonsXS),e)})();o.toString()!==i.toString()&&(i=o,e.e.fire("closeAllPopups"),null==(t=e.toolbar)||t.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},57951:function(e,t,i){var n=i(86583),o=i(12153),r=i(6441),s=i(13465),a=i(50267),l=i(83086);let c="start",u=(e,t,{control:i})=>{var o;let r="button"+i.command,s=null!=(o=i.args&&i.args[0])?o:(0,n.dataBind)(e,r);s===c?(0,l.openStartDialog)(e):((0,n.dataBind)(e,r,s),e.execCommand(i.command,!1,"default"===s?null:s))};o.Icon.set("ol",s.default).set("ul",a.default),r.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},r.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman",[c]:"Start at..."},exec:u,isChildDisabled(e,t){var i;return(null==(i=t.control.args)?void 0:i[0])===c&&!(0,l.closestOrderedList)(e)}}},13465:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M10.6667 6.6667h10.6666M10.6667 17.3333h10.6666" stroke-width="2.6667" stroke-linecap="butt"/><path d="m2.5 5 2.5-2v7M2.5 10h5M2.5 16a2.5 2.5 0 0 1 5 0c0 1.5-1.5 2.5-5 5h5" stroke-width="2" /> </g> </svg> '},50267:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M9.3333 5.3333h12M9.3333 12h12M9.3333 18.6667h12" stroke-width="2.6667" stroke-linecap="butt"/><path d="M4 5.3333h0M4 12h0M4 18.6667h0" stroke-width="3.2"/> </g> </svg> '},64837:function(e,t,i){var n=i(65478),o=i(580),r=i(50911);i(57951);class s extends r.Plugin{afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=i?i:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"onCommand",null),o.pluginSystem.add("orderedList",s)},83086:function(e,t,i){i.d(t,{closestOrderedList:function(){return a},openStartDialog:function(){return l}});var n=i(2748),o=i(29960),r=i(62843),s=i(2525);function a(e){let t=e.s.current();return t?n.Dom.closest(t,"ol",e.editor):null}function l(e){let t=a(e);if(!t)return;let i=e.dlg({resizable:!1,closeOnClickOverlay:!0}),n=new s.UIInput(e,{name:"start",type:"number",label:"Number for the first item",value:t.start}),l=new s.UIForm(e,[new s.UIBlock(e,[n])]);l.container.classList.add("jodit-dialog_alert"),l.onSubmit(({start:r})=>{let s=""===r?1:parseInt(r,10);if(isNaN(s))return n.focus(),!1;i.close(),(0,o.attr)(t,"start",1===s?null:s),e.synchronizeValues()}),e.s.save(),i.e.on(i,"afterClose",()=>{e.s.focus(),e.s.restore()}),i.setFooter([(0,r.Button)(e,"cancel","Cancel").onAction(()=>i.close()),(0,r.Button)(e,"ok","Apply","primary").onAction(()=>l.submit())]),i.open(l,e.i18n("Start numbering at"),!0,!0),n.focus(),n.nativeInput.select()}},71842:function(e,t,i){var n=i(82758),o=i(6441);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Clean"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}]},31571:function(e,t,i){i.d(t,{pasteFromWord:function(){return c}});var n=i(82758),o=i(65478),r=i(580),s=i(21537),a=i(50911);i(71842);var l=i(117);class c extends a.Plugin{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){let{j:n}=this,{processPasteFromWord:o,askBeforePasteFromWord:r,defaultActionOnPasteFromWord:a,defaultActionOnPaste:c,pasteFromWordActionList:u}=n.o;return!!(o&&(0,s.isHtmlFromWord)(t))&&(r?(0,l.askInsertTypeDialog)(n,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",n=>{this.insertFromWordByType(e,t,n,i)},u):this.insertFromWordByType(e,t,a||c,i),!0)}insertFromWordByType(e,t,i,o){var r;switch(i){case n.INSERT_AS_HTML:{t=(0,s.applyStyles)(t);let e=null==(r=this.j.events)?void 0:r.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e);break}case n.INSERT_AS_TEXT:t=(0,s.cleanFromWord)(t);break;case n.INSERT_ONLY_TEXT:t=(0,s.stripTags)((0,s.cleanFromWord)(t),this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText)}(0,l.pasteInsertHtml)(e,this.j,t)}}c.requires=["paste"],function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":processHTML")],c.prototype,"processWordHTML",null),r.pluginSystem.add("pasteFromWord",c)},85407:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(10830);class c extends a.Plugin{createDialog(){this.dialog=this.j.dlg();let e=(0,l.Button)(this.j,"paste","Paste","primary");e.onAction(this.paste);let t=(0,l.Button)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),o.Dom.append(this.container,this.listBox),o.Dom.append(this.container,this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{let t=e.target;return o.Dom.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,s.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),o.Dom.safeRemove(this.previewBox),o.Dom.safeRemove(this.listBox),o.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=e=>{let t=this.currentIndex;if(-1!==[n.KEY_UP,n.KEY_DOWN,n.KEY_ENTER].indexOf(e.key)){if(e.key===n.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===n.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key===n.KEY_ENTER)return void this.paste();t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}},this.selectIndex=e=>{this.listBox&&(0,s.toArray)(this.listBox.childNodes).forEach((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&o.Dom.detach(this.listBox),this.previewBox&&o.Dom.detach(this.previewBox),this.list.forEach((e,t)=>{let i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,n.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,s.attr)(i,"href","#"),(0,s.attr)(i,"data-index",t.toString()),(0,s.attr)(i,"tab-index","-1"),this.listBox&&o.Dom.append(this.listBox,i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}r.pluginSystem.add("pasteStorage",c)},84380:function(e,t,i){var n=i(82758),o=i(6441),r=i(117);o.Config.prototype.askBeforePasteHTML=!0,o.Config.prototype.processPasteHTML=!0,o.Config.prototype.scrollToPastedContent=!0,o.Config.prototype.pasteExcludeStripTags=["br","hr"],o.Config.prototype.pasteHTMLActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Insert as Text"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}],o.Config.prototype.memorizeChoiceWhenPasteFragment=!1,o.Config.prototype.nl2brInPlainText=!0;let s="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){var o;if(i.name===s)return void e.execCommand("showPasteStorage");e.s.focus();let a="",l=!0;if(navigator.clipboard){try{let e=await navigator.clipboard.read();if(e&&e.length){let t=e[0],i=(null==(o=t.types)?void 0:o.includes(n.TEXT_HTML))?n.TEXT_HTML:n.TEXT_PLAIN,r=await t.getType(i);a=await new Response(r).text()}l=!1}catch(e){n.IS_PROD}if(l)try{a=await navigator.clipboard.readText(),l=!1}catch(e){n.IS_PROD}}l&&(l=0===(a=e.buffer.get(n.CLIPBOARD_ID)||"").length);let c=e.value;l?(e.ed.execCommand("paste"),(l=c===e.value)||e.e.fire("afterPaste")):a.length?((0,r.pasteInsertHtml)(null,e,a),e.e.fire("afterPaste")):l&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},list:{[s]:"Paste Storage"},isChildDisabled:e=>2>e.e.fire("pasteStorageList")}},117:function(e,t,i){i.d(t,{askInsertTypeDialog:function(){return h},getAllTypes:function(){return d},pasteInsertHtml:function(){return u},removeGoogleDocsWrapper:function(){return c}});var n=i(82758),o=i(2748),r=i(4510),s=i(27613),a=i(76241),l=i(10830);function c(e){if(!/docs-internal-guid-/i.test(e))return e;let{body:t}=new DOMParser().parseFromString(e,"text/html");return(0,r.toArray)(t.querySelectorAll('b[id^="docs-internal-guid-"]')).forEach(o.Dom.unwrap),t.innerHTML}function u(e,t,i){var n;let r,l;if(t.isInDestruct)return;e&&"drop"===e.type&&t.s.insertCursorAtPoint(e.clientX,e.clientY);let u=t.e.fire("beforePasteInsert",i);!(0,s.isVoid)(u)&&((0,s.isString)(u)||(0,s.isNumber)(u)||o.Dom.isNode(u))&&(i=u),(0,s.isString)(i)&&(n=c(i),-1!==(r=(n=(0,a.removeTagsByPrefix)(n,["<meta"])).search(/<!--StartFragment-->/i))&&(n=n.substring(r+20)),-1!==(l=n.search(/<!--EndFragment-->/i))&&(n=n.substring(0,l)),i=n),t.s.insertHTML(i)}function d(e){let t=e.types,i="";if((0,s.isArray)(t)||"[object DOMStringList]"===({}).toString.call(t))for(let e=0;e<t.length;e+=1)i+=t[e]+";";else i=(t||n.TEXT_PLAIN).toString()+";";return i}function h(e,t,i,n,o){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,n,o))return;let r=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i)),s=o.map(({text:t,value:i})=>(0,l.Button)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{r.close(),n(i)}));r.e.on(r,"beforeClose",()=>{e.e.fire("beforeClosePasteDialog",r)}).one(r,"afterClose",()=>{e.s.isFocused()||e.s.focus(),e.e.fire("afterClosePasteDialog",r)});let a=(0,l.Button)(e,{text:"Cancel",tabIndex:0}).onAction(()=>{r.close()});return r.setFooter([...s,a]),s[0].focus(),s[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",r,t,i,n,o),r}},79799:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(20356);i(84380);var c=i(117),u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends l.Plugin{afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;let t=(0,a.getDataTransfer)(e),i=[null==t?void 0:t.getData(n.TEXT_PLAIN),null==t?void 0:t.getData(n.TEXT_HTML),null==t?void 0:t.getData(n.TEXT_RTF)];for(let t of i)if((0,a.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){let t=(0,a.getDataTransfer)(e),i=(null==t?void 0:t.getData(n.TEXT_HTML))||(null==t?void 0:t.getData(n.TEXT_PLAIN));if(t&&i&&""!==(0,a.trim)(i)){let n=this.j.e.fire("processPaste",e,i,(0,c.getAllTypes)(t));void 0!==n&&(i=n),((0,a.isString)(i)||r.Dom.isNode(i))&&this.__insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(e=>e.html===t);if(i)return this.__insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,c.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(e,t,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,a.isString)(t))switch(this.j.buffer.set(n.CLIPBOARD_ID,t),i){case n.INSERT_CLEAR_HTML:t=(0,a.cleanFromWord)((0,c.removeGoogleDocsWrapper)(t));break;case n.INSERT_ONLY_TEXT:t=(0,a.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText);break;case n.INSERT_AS_TEXT:t=(0,a.htmlspecialchars)(t),this.j.o.nl2brInPlainText&&(t=(0,a.nl2br)(t));break;default:{let n=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof n&&(t=n)}}(0,c.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===n.TEXT_PLAIN+";"&&!(0,a.isHTML)(t)){let e=(0,a.htmlspecialchars)(t);return this.j.o.nl2brInPlainText?(0,a.nl2br)(e):e}}constructor(){super(...arguments),this.pasteStack=new a.LimitedStack(20),this._isDialogOpened=!1}}u([o.autobind],d.prototype,"onPaste",null),u([o.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),s.pluginSystem.add("paste",d)},61926:function(e,t,i){var n=i(6441);n.Config.prototype.showPlaceholder=!0,n.Config.prototype.placeholder="Type something",n.Config.prototype.useInputsPlaceholder=!0},59451:function(e,t,i){i.d(t,{isEditorEmpty:function(){return d}});var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(78116),l=i(29960),c=i(41180),u=i(20356);function d(e){var t;return function(e){var t;if(!e.firstChild)return!0;let i=e.firstChild;if(r.Dom.isTag(i,"br")&&!r.Dom.next(i,Boolean,e))return!0;if(n.INSEPARABLE_TAGS.has(null==(t=i.nodeName)?void 0:t.toLowerCase())||/^(TABLE)$/i.test(i.nodeName))return!1;let o=r.Dom.next(i,e=>e&&!r.Dom.isEmptyTextNode(e),e);return r.Dom.isText(i)&&!o?r.Dom.isEmptyTextNode(i):!o&&r.Dom.each(i,e=>!(r.Dom.isLeaf(e)||r.Dom.isList(e))&&(r.Dom.isEmpty(e)||r.Dom.isTag(e,"br")))}(e)&&!(null==(t=e.textContent)?void 0:t.includes(n.NBSP_SPACE))}i(61926);class h extends u.Plugin{afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(0,c.css)(this.placeholderElm,{right:0,direction:"rtl"}),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let e=this.j;if(e.o.readonly)return;let t=0,i=0,n=e.s.current(),o=n&&r.Dom.closest(n,r.Dom.isBlock,e.editor)||e.editor,s=e.ew.getComputedStyle(o),l=e.ew.getComputedStyle(e.editor);r.Dom.append(e.workplace,this.placeholderElm);let{firstChild:u}=e.editor;if(r.Dom.isElement(u)&&!(0,a.isMarker)(u)){let n=e.ew.getComputedStyle(u);t=parseInt(n.getPropertyValue("margin-top"),10),i=parseInt(n.getPropertyValue("margin-left"),10),(0,c.css)(this.placeholderElm,{fontFamily:n.getPropertyValue("font-family"),fontSize:parseInt(n.getPropertyValue("font-size"),10),lineHeight:n.getPropertyValue("line-height")})}else(0,c.css)(this.placeholderElm,{fontFamily:s.getPropertyValue("font-family"),fontSize:parseInt(s.getPropertyValue("font-size"),10),lineHeight:s.getPropertyValue("line-height")});(0,c.css)(this.placeholderElm,{display:"block",textAlign:s.getPropertyValue("text-align"),paddingTop:parseInt(l.paddingTop,10)+"px",paddingLeft:parseInt(l.paddingLeft,10)+"px",paddingRight:parseInt(l.paddingRight,10)+"px",marginTop:Math.max(parseInt(s.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(s.getPropertyValue("margin-left"),10),i)})}hide(){r.Dom.safeRemove(this.placeholderElm)}toggle(){let e=this.j;if(e.editor&&!e.isInDestruct){if(e.getRealMode()!==n.MODE_WYSIWYG)return void this.hide();d(e.editor)?this.show():this.hide()}}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{let e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,l.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder internalChange.placeholder afterCommand.placeholder resize.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.debounce)(e=>e.defaultTimeout/10,!0)],h.prototype,"toggle",null),s.pluginSystem.add("placeholder",h)},18363:function(e,t,i){i(580).pluginSystem.add("poweredByJodit",function(e){let{o:t}=e;!t.hidePoweredByJodit&&!t.inline&&(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)&&e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML(`<a
242
+ `===e;function c(e,t){var i;let n=(0,a.flatButtonsSet)((0,r.splitArray)(t.o.buttons),t),o=t.getRegisteredButtonGroups(),s=!1,c=!1,u=[];for(let t of e)if((0,a.isButtonGroup)(t)){let e=[...t.buttons,...null!=(i=o[t.group])?i:[]],r=e.filter(e=>n.has(e));r.length!==e.length&&(s=!0),u.push(...r)}else l(t)?u.push(t):"dots"===t?c=!0:n.has(t)?u.push(t):s=!0;if(!s)return e;let d=[];for(let e of u)l(e)&&(0===d.length||l(d[d.length-1]))||d.push(e);for(;d.length&&l(d[d.length-1]);)d.pop();if(c){let e=(0,a.flatButtonsSet)(d,t);(0,r.toArray)(n).some(t=>!e.has(t))&&d.push("dots")}return d}o.pluginSystem.add("mobile",function(e){let t=0,i=(0,r.splitArray)(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",i=>{if(i.changedTouches&&i.changedTouches.length){let n=new Date().getTime(),o=n-t;o>e.o.mobileTapTimeout&&(t=n,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(i.clientX,i.clientY))}}),e.e.on("getDiffButtons.mobile",t=>{if(t===e.toolbar){let t=(0,a.flatButtonsSet)((0,r.splitArray)(e.o.buttons),e),n=(0,a.flatButtonsSet)(i,e);return(0,r.toArray)(t).reduce((e,t)=>(n.has(t)||e.push(t),e),[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var t;if(!e.o.toolbar)return;let o=(()=>{if(e.isFullSize)return(0,r.splitArray)(e.o.buttons);let t=function(e){var t;let{toolbar:i}=e.o;if((0,s.isString)(i)||n.Dom.isHTMLElement(i)){let t=e.toolbarContainer.offsetWidth;if(t)return t}return e.container.offsetWidth||(null!=(t=e.container.parentElement)?t:e.container).offsetWidth}(e);return t>=e.o.sizeLG?(0,r.splitArray)(e.o.buttons):t>=e.o.sizeMD?c((0,r.splitArray)(e.o.buttonsMD),e):t>=e.o.sizeSM?c((0,r.splitArray)(e.o.buttonsSM),e):c((0,r.splitArray)(e.o.buttonsXS),e)})();o.toString()!==i.toString()&&(i=o,e.e.fire("closeAllPopups"),null==(t=e.toolbar)||t.setRemoveButtons(e.o.removeButtons).build(i.concat(e.o.extraButtons)))}).on(e.ow,"load resize",()=>e.e.fire("recalcAdaptive"))})},57951:function(e,t,i){var n=i(86583),o=i(12153),r=i(6441),s=i(13465),a=i(50267),l=i(83086);let c="start",u=(e,t,{control:i})=>{var o;let r="button"+i.command,s=null!=(o=i.args&&i.args[0])?o:(0,n.dataBind)(e,r);s===c?(0,l.openStartDialog)(e):((0,n.dataBind)(e,r,s),e.execCommand(i.command,!1,"default"===s?null:s))};o.Icon.set("ol",s.default).set("ul",a.default),r.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},r.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman",[c]:"Start at..."},exec:u,isChildDisabled(e,t){var i;return(null==(i=t.control.args)?void 0:i[0])===c&&!(0,l.closestOrderedList)(e)}}},13465:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M10.6667 6.6667h10.6666M10.6667 17.3333h10.6666" stroke-width="2.6667" stroke-linecap="butt"/><path d="m2.5 5 2.5-2v7M2.5 10h5M2.5 16a2.5 2.5 0 0 1 5 0c0 1.5-1.5 2.5-5 5h5" stroke-width="2" /> </g> </svg> '},50267:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M9.3333 5.3333h12M9.3333 12h12M9.3333 18.6667h12" stroke-width="2.6667" stroke-linecap="butt"/><path d="M4 5.3333h0M4 12h0M4 18.6667h0" stroke-width="3.2"/> </g> </svg> '},64837:function(e,t,i){var n=i(65478),o=i(580),r=i(50911);i(57951);class s extends r.Plugin{afterInit(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(e,t,i){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=i?i:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(e){}constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],s.prototype,"onCommand",null),o.pluginSystem.add("orderedList",s)},83086:function(e,t,i){i.d(t,{closestOrderedList:function(){return a},openStartDialog:function(){return l}});var n=i(2748),o=i(29960),r=i(62843),s=i(2525);function a(e){let t=e.s.current();return t?n.Dom.closest(t,"ol",e.editor):null}function l(e){let t=a(e);if(!t)return;let i=e.dlg({resizable:!1,closeOnClickOverlay:!0}),n=new s.UIInput(e,{name:"start",type:"number",label:"Number for the first item",value:t.start}),l=new s.UIForm(e,[new s.UIBlock(e,[n])]);l.container.classList.add("jodit-dialog_alert"),l.onSubmit(({start:r})=>{let s=""===r?1:parseInt(r,10);if(isNaN(s))return n.focus(),!1;i.close(),(0,o.attr)(t,"start",1===s?null:s),e.synchronizeValues()}),e.s.save(),i.e.on(i,"afterClose",()=>{e.s.focus(),e.s.restore()}),i.setFooter([(0,r.Button)(e,"cancel","Cancel").onAction(()=>i.close()),(0,r.Button)(e,"ok","Apply","primary").onAction(()=>l.submit())]),i.open(l,e.i18n("Start numbering at"),!0,!0),n.focus(),n.nativeInput.select()}},71842:function(e,t,i){var n=i(82758),o=i(6441);o.Config.prototype.askBeforePasteFromWord=!0,o.Config.prototype.processPasteFromWord=!0,o.Config.prototype.defaultActionOnPasteFromWord=null,o.Config.prototype.pasteFromWordActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Clean"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}]},31571:function(e,t,i){i.d(t,{pasteFromWord:function(){return c}});var n=i(82758),o=i(65478),r=i(580),s=i(21537),a=i(50911);i(71842);var l=i(117);class c extends a.Plugin{afterInit(e){}beforeDestruct(e){}processWordHTML(e,t,i){let{j:n}=this,{processPasteFromWord:o,askBeforePasteFromWord:r,defaultActionOnPasteFromWord:a,defaultActionOnPaste:c,pasteFromWordActionList:u}=n.o;return!!(o&&(0,s.isHtmlFromWord)(t))&&(r?(0,l.askInsertTypeDialog)(n,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",n=>{this.insertFromWordByType(e,t,n,i)},u):this.insertFromWordByType(e,t,a||c,i),!0)}insertFromWordByType(e,t,i,o){var r;switch(i){case n.INSERT_AS_HTML:{t=(0,s.applyStyles)(t);let e=null==(r=this.j.events)?void 0:r.fire("beautifyHTML",t);(0,s.isString)(e)&&(t=e);break}case n.INSERT_AS_TEXT:t=(0,s.cleanFromWord)(t);break;case n.INSERT_ONLY_TEXT:t=(0,s.stripTags)((0,s.cleanFromWord)(t),this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText)}(0,l.pasteInsertHtml)(e,this.j,t)}}c.requires=["paste"],function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.watch)(":processHTML")],c.prototype,"processWordHTML",null),r.pluginSystem.add("pasteFromWord",c)},85407:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(21537),a=i(20356),l=i(10830);class c extends a.Plugin{createDialog(){this.dialog=this.j.dlg();let e=(0,l.Button)(this.j,"paste","Paste","primary");e.onAction(this.paste);let t=(0,l.Button)(this.j,"","Cancel");t.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),o.Dom.append(this.container,this.listBox),o.Dom.append(this.container,this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.j.e.on(this.listBox,"click dblclick",e=>{let t=e.target;return o.Dom.isTag(t,"a")&&t.hasAttribute("data-index")&&this.selectIndex(parseInt((0,s.attr)(t,"-index")||"0",10)),"dblclick"===e.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",e=>{-1!==this.list.indexOf(e)&&this.list.splice(this.list.indexOf(e),1),this.list.unshift(e),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),o.Dom.safeRemove(this.previewBox),o.Dom.safeRemove(this.listBox),o.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let e=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=e}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=e=>{let t=this.currentIndex;if(-1!==[n.KEY_UP,n.KEY_DOWN,n.KEY_ENTER].indexOf(e.key)){if(e.key===n.KEY_UP&&(0===t?t=this.list.length-1:t-=1),e.key===n.KEY_DOWN&&(t===this.list.length-1?t=0:t+=1),e.key===n.KEY_ENTER)return void this.paste();t!==this.currentIndex&&this.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()}},this.selectIndex=e=>{this.listBox&&(0,s.toArray)(this.listBox.childNodes).forEach((t,i)=>{t.classList.remove("jodit_active"),e===i&&this.previewBox&&(t.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[e],t.focus())}),this.currentIndex=e},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&o.Dom.detach(this.listBox),this.previewBox&&o.Dom.detach(this.previewBox),this.list.forEach((e,t)=>{let i=this.j.c.element("a");i.textContent=t+1+". "+e.replace((0,n.SPACE_REG_EXP)(),""),this.j.e.on(i,"keydown",this.onKeyDown),(0,s.attr)(i,"href","#"),(0,s.attr)(i,"data-index",t.toString()),(0,s.attr)(i,"tab-index","-1"),this.listBox&&o.Dom.append(this.listBox,i)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}r.pluginSystem.add("pasteStorage",c)},84380:function(e,t,i){var n=i(82758),o=i(6441),r=i(117);o.Config.prototype.askBeforePasteHTML=!0,o.Config.prototype.processPasteHTML=!0,o.Config.prototype.scrollToPastedContent=!0,o.Config.prototype.pasteExcludeStripTags=["br","hr"],o.Config.prototype.pasteHTMLActionList=[{value:n.INSERT_AS_HTML,text:"Keep"},{value:n.INSERT_AS_TEXT,text:"Insert as Text"},{value:n.INSERT_ONLY_TEXT,text:"Insert only Text"}],o.Config.prototype.memorizeChoiceWhenPasteFragment=!1,o.Config.prototype.nl2brInPlainText=!0;let s="pasteStorage";o.Config.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(e,t,{control:i}){var o;if(i.name===s)return void e.execCommand("showPasteStorage");e.s.focus();let a="",l=!0;if(navigator.clipboard){try{let e=await navigator.clipboard.read();if(e&&e.length){let t=e[0],i=(null==(o=t.types)?void 0:o.includes(n.TEXT_HTML))?n.TEXT_HTML:n.TEXT_PLAIN,r=await t.getType(i);a=await new Response(r).text()}l=!1}catch(e){n.IS_PROD}if(l)try{a=await navigator.clipboard.readText(),l=!1}catch(e){n.IS_PROD}}l&&(l=0===(a=e.buffer.get(n.CLIPBOARD_ID)||"").length);let c=e.value;l?(e.ed.execCommand("paste"),(l=c===e.value)||e.e.fire("afterPaste")):a.length?((0,r.pasteInsertHtml)(null,e,a),e.e.fire("afterPaste")):l&&e.alert("Your browser doesn't support direct access to the clipboard.",()=>void e.s.focus())},list:{[s]:"Paste Storage"},isChildDisabled:e=>2>e.e.fire("pasteStorageList")}},117:function(e,t,i){i.d(t,{askInsertTypeDialog:function(){return h},getAllTypes:function(){return d},pasteInsertHtml:function(){return u},removeGoogleDocsWrapper:function(){return c}});var n=i(82758),o=i(2748),r=i(4510),s=i(27613),a=i(76241),l=i(10830);function c(e){if(!/docs-internal-guid-/i.test(e))return e;let{body:t}=new DOMParser().parseFromString(e,"text/html");return(0,r.toArray)(t.querySelectorAll('b[id^="docs-internal-guid-"]')).forEach(o.Dom.unwrap),t.innerHTML}function u(e,t,i){var n;let r,l;if(t.isInDestruct)return;e&&"drop"===e.type&&t.s.insertCursorAtPoint(e.clientX,e.clientY);let u=t.e.fire("beforePasteInsert",i);!(0,s.isVoid)(u)&&((0,s.isString)(u)||(0,s.isNumber)(u)||o.Dom.isNode(u))&&(i=u),(0,s.isString)(i)&&(n=c(i),-1!==(r=(n=(0,a.removeTagsByPrefix)(n,["<meta"])).search(/<!--StartFragment-->/i))&&(n=n.substring(r+20)),-1!==(l=n.search(/<!--EndFragment-->/i))&&(n=n.substring(0,l)),i=n),t.s.insertHTML(i)}function d(e){let t=e.types,i="";if((0,s.isArray)(t)||"[object DOMStringList]"===({}).toString.call(t))for(let e=0;e<t.length;e+=1)i+=t[e]+";";else i=(t||n.TEXT_PLAIN).toString()+";";return i}function h(e,t,i,n,o){if(!1===e.e.fire("beforeOpenPasteDialog",t,i,n,o))return;let r=e.confirm(`<div style="word-break: normal; white-space: normal">${e.i18n(t)}</div>`,e.i18n(i)),s=o.map(({text:t,value:i})=>(0,l.Button)(e,{text:t,name:t.toLowerCase(),tabIndex:0}).onAction(()=>{r.close(),n(i)}));r.e.on(r,"beforeClose",()=>{e.e.fire("beforeClosePasteDialog",r)}).one(r,"afterClose",()=>{e.s.isFocused()||e.s.focus(),e.e.fire("afterClosePasteDialog",r)});let a=(0,l.Button)(e,{text:"Cancel",tabIndex:0}).onAction(()=>{r.close()});return r.setFooter([...s,a]),s[0].focus(),s[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",r,t,i,n,o),r}},79799:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(20356);i(84380);var c=i(117),u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends l.Plugin{afterInit(e){e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",e=>this.pasteStack.push(e)),this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}customPasteProcess(e){if(!this.j.o.processPasteHTML)return;let t=(0,a.getDataTransfer)(e),i=[null==t?void 0:t.getData(n.TEXT_PLAIN),null==t?void 0:t.getData(n.TEXT_HTML),null==t?void 0:t.getData(n.TEXT_RTF)];for(let t of i)if((0,a.isHTML)(t)&&(this.j.e.fire("processHTML",e,t,{plain:i[0],html:i[1],rtf:i[2]})||this.processHTML(e,t)))return!1}defaultPasteProcess(e){let t=(0,a.getDataTransfer)(e),i=(null==t?void 0:t.getData(n.TEXT_HTML))||(null==t?void 0:t.getData(n.TEXT_PLAIN));if(t&&i&&""!==(0,a.trim)(i)){let n=this.j.e.fire("processPaste",e,i,(0,c.getAllTypes)(t));void 0!==n&&(i=n),((0,a.isString)(i)||r.Dom.isNode(i))&&this.__insertByType(e,i,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}processHTML(e,t){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let i=this.pasteStack.find(e=>e.html===t);if(i)return this.__insertByType(e,t,i.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let i=(0,c.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",i=>{this._isDialogOpened=!1,this.__insertByType(e,t,i)},this.j.o.pasteHTMLActionList);return i&&(this._isDialogOpened=!0,i.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(e,t,i){if(this.pasteStack.push({html:t,action:i}),(0,a.isString)(t))switch(this.j.buffer.set(n.CLIPBOARD_ID,t),i){case n.INSERT_CLEAR_HTML:t=(0,a.cleanFromWord)((0,c.removeGoogleDocsWrapper)(t));break;case n.INSERT_ONLY_TEXT:t=(0,a.stripTags)(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText);break;case n.INSERT_AS_TEXT:t=(0,a.htmlspecialchars)(t),this.j.o.nl2brInPlainText&&(t=(0,a.nl2br)(t));break;default:{let n=this.j.e.fire("onCustomPasteHTMLOption",i,t,e);"string"==typeof n&&(t=n)}}(0,c.pasteInsertHtml)(e,this.j,t)}onProcessPasteReplaceNl2Br(e,t,i){if(i===n.TEXT_PLAIN+";"&&!(0,a.isHTML)(t)){let e=(0,a.htmlspecialchars)(t);return this.j.o.nl2brInPlainText?(0,a.nl2br)(e):e}}constructor(){super(...arguments),this.pasteStack=new a.LimitedStack(20),this._isDialogOpened=!1}}u([o.autobind],d.prototype,"onPaste",null),u([o.autobind],d.prototype,"onProcessPasteReplaceNl2Br",null),s.pluginSystem.add("paste",d)},61926:function(e,t,i){var n=i(6441);n.Config.prototype.showPlaceholder=!0,n.Config.prototype.placeholder="Type something",n.Config.prototype.useInputsPlaceholder=!0},59451:function(e,t,i){i.d(t,{isEditorEmpty:function(){return h}});var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(78116),l=i(70442),c=i(29960),u=i(41180),d=i(20356);function h(e){var t;return function(e){var t;if(!e.firstChild)return!0;let i=e.firstChild;if(r.Dom.isTag(i,"br")&&!r.Dom.next(i,Boolean,e))return!0;if(n.INSEPARABLE_TAGS.has(null==(t=i.nodeName)?void 0:t.toLowerCase())||/^(TABLE)$/i.test(i.nodeName))return!1;let o=r.Dom.next(i,e=>e&&!r.Dom.isEmptyTextNode(e),e);return r.Dom.isText(i)&&!o?r.Dom.isEmptyTextNode(i):!o&&r.Dom.each(i,e=>!(r.Dom.isLeaf(e)||r.Dom.isList(e)||(0,l.isAnchor)(e))&&(r.Dom.isEmpty(e)||r.Dom.isTag(e,"br")))}(e)&&!(null==(t=e.textContent)?void 0:t.includes(n.NBSP_SPACE))}i(61926);class p extends d.Plugin{afterInit(e){e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${e.i18n(e.o.placeholder)}</span>`),"rtl"===e.o.direction&&(0,u.css)(this.placeholderElm,{right:0,direction:"rtl"}),e.e.on("readonly",e=>{e?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let e=this.j;if(e.o.readonly)return;let t=0,i=0,n=e.s.current(),o=n&&r.Dom.closest(n,r.Dom.isBlock,e.editor)||e.editor,s=e.ew.getComputedStyle(o),l=e.ew.getComputedStyle(e.editor);r.Dom.append(e.workplace,this.placeholderElm);let{firstChild:c}=e.editor;if(r.Dom.isElement(c)&&!(0,a.isMarker)(c)){let n=e.ew.getComputedStyle(c);t=parseInt(n.getPropertyValue("margin-top"),10),i=parseInt(n.getPropertyValue("margin-left"),10),(0,u.css)(this.placeholderElm,{fontFamily:n.getPropertyValue("font-family"),fontSize:parseInt(n.getPropertyValue("font-size"),10),lineHeight:n.getPropertyValue("line-height")})}else(0,u.css)(this.placeholderElm,{fontFamily:s.getPropertyValue("font-family"),fontSize:parseInt(s.getPropertyValue("font-size"),10),lineHeight:s.getPropertyValue("line-height")});(0,u.css)(this.placeholderElm,{display:"block",textAlign:s.getPropertyValue("text-align"),paddingTop:parseInt(l.paddingTop,10)+"px",paddingLeft:parseInt(l.paddingLeft,10)+"px",paddingRight:parseInt(l.paddingRight,10)+"px",marginTop:Math.max(parseInt(s.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(s.getPropertyValue("margin-left"),10),i)})}hide(){r.Dom.safeRemove(this.placeholderElm)}toggle(){let e=this.j;if(e.editor&&!e.isInDestruct){if(e.getRealMode()!==n.MODE_WYSIWYG)return void this.hide();h(e.editor)?this.show():this.hide()}}beforeDestruct(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{let e=this.j;e.o.useInputsPlaceholder&&e.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,c.attr)(e.element,"placeholder")||""),e.e.fire("placeholder",this.placeholderElm.innerHTML),e.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder internalChange.placeholder afterCommand.placeholder resize.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.debounce)(e=>e.defaultTimeout/10,!0)],p.prototype,"toggle",null),s.pluginSystem.add("placeholder",p)},18363:function(e,t,i){i(580).pluginSystem.add("poweredByJodit",function(e){let{o:t}=e;!t.hidePoweredByJodit&&!t.inline&&(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)&&e.hookStatus("ready",()=>{e.statusbar.append(e.create.fromHTML(`<a
243
243
  tabindex="-1"
244
244
  style="text-transform: uppercase"
245
245
  class="jodit-status-bar-link"
@@ -275,7 +275,7 @@
275
275
  <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
276
276
  </div>
277
277
  </div>
278
- </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===n.MODE_WYSIWYG)switch(e.key){case n.KEY_ESC:this.close();break;case n.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(r.Dom.append(this.j.workplace,this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),r.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,s.position)(this.j.toolbarContainer);(0,s.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,s.css)(this.container,{top:null,left:null})}constructor(e){let t;super(e),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;let{query:i,replace:o,cancel:r,next:a,prev:l,replaceBtn:c,current:u,count:d}=(0,s.refs)(this.container);this.queryInput=i,this.replaceInput=o,this.closeButton=r,this.replaceButton=c,this.currentBox=u,this.countBox=d;let h=()=>this.close(),p=()=>void e.e.fire(this,"pressReplaceButton"),f=()=>void e.e.fire("searchNext"),m=()=>void e.e.fire("searchPrevious"),g=e=>t=>{t.detail||(t.preventDefault(),e())};e.e.on(this.closeButton,"pointerdown",()=>(h(),!1)).on(this.closeButton,"click",g(h)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(p(),!1)).on(this.replaceButton,"click",g(p)).on(a,"pointerdown",()=>(f(),!1)).on(a,"click",g(f)).on(l,"pointerdown",()=>(m(),!1)).on(l,"click",g(m)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,s.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(t=this.j.async.debounce(async t=>{t.key===n.KEY_ENTER?await e.e.fire("searchNext")&&this.close():e.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout),e=>{e.key===n.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),t(e)}))}};l([(0,o.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),l([o.autobind],c.prototype,"open",null),l([o.autobind],c.prototype,"close",null),l([(0,o.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=l([o.component],c)},55311:function(e,t,i){i(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(45124),u=i(67510),d=i(76014);i(55311);var h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p="table_processor_observer";class f extends l.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown",this.__onKeyDown,{top:!0}).on("clickEditor",this.__onClickAfterDrag,{top:!0}).on("keydown.select-cells",e=>{e.key===n.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody clickThead clickTfoot clickTable",()=>{var e;let t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&(null==(e=this.j.s.sel)||e.removeAllRanges()),!1})}__onKeyDown(e){(null==e?void 0:e.repeat)&&this.__followCaret(),this.__keyDownCell=this.__caretCell(),this.__keyDownRange=this.j.s.range.cloneRange(),this.__keyDownInLink=this.__isInLink()}__isInLink(){return!!r.Dom.closest(this.j.s.range.startContainer,"a",this.j.editor)}__caretCell(){return r.Dom.closest(this.j.s.range.startContainer,r.Dom.isCell,this.j.editor)}onKeyUp(){this.__followCaret()}__followCaret(){let e=this.__keyDownRange;if(this.__keyDownRange=null,this.j.o.readonly||!(0,c.isMoved)(this.j,e))return;let t=this.__caretCell(),i=this.__keyDownInLink&&!this.__isInLink();if(t===this.__keyDownCell&&!(t&&i))return;let n=this.__tableModule.getAllSelectedCells().length>0;if(this.unselectCells(),!t){n&&this.j.e.fire("hidePopup","cells");return}let o=r.Dom.closest(t,"table",this.j.editor);o&&(this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.fire("showPopup",o,this.__markedBound,"cells"))}__markedBound(){let e=this.__tableModule.getAllSelectedCells().filter(e=>e.isConnected).map(e=>(0,a.position)(e,this.j));if(!e.length)return{left:0,top:0,width:0,height:0};let t=Math.min(...e.map(e=>e.left)),i=Math.min(...e.map(e=>e.top));return{left:t,top:i,width:Math.max(...e.map(e=>e.left+e.width))-t,height:Math.max(...e.map(e=>e.top+e.height))-i}}onStartSelection(e,t){var i;if(this.j.o.readonly)return;let n=r.Dom.closest(e,"table",this.j.editor);return((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&n&&r.Dom.isCell(e)?(this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null==(i=this.j.s.sel)||i.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",n,this.__markedBound,"cells"):this.j.e.fire("hidePopup","cells"),!1):(this.unselectCells(),e===this.j.editor)?void 0:e&&n?(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__movedTo=e,this.__tableModule.addSelection(e),this.j.e.on(n,"mousemove.select-cells touchmove.select-cells",this.__onMove.bind(this,n)).on(n,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,n)),new Set([this.j.ew,this.j.ow]).forEach(e=>this.j.e.on(e,"mouseup.select-cells touchend.select-cells",this.__onRelease.bind(this,n))),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onMouseDown(){this.__keepMarks=!1}__onClickAfterDrag(){var e;if(this.__keepMarks)return this.__keepMarks=!1,null==(e=this.j.s.sel)||e.removeAllRanges(),this.j.e.stopPropagation("clickEditor"),!1}onPress(e){this.__inPopup=!!(e&&r.Dom.isNode(e.target)&&u.UIElement.closestElement(e.target,u.Popup))}onChange(){this.j.isLocked||this.__isSelectionMode||this.__inPopup||this.__onRemoveSelection()}__onMove(e,t){var i;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(p))return;let n=this.__cellUnder(t,e);if(!n||!this.__selectedCell||n===this.__movedTo)return;this.__movedTo=n,n!==this.__selectedCell&&this.j.lock(p),this.unselectCells();let o=this.__tableModule.getSelectedBound(e,[n,this.__selectedCell]),r=this.__tableModule.formalMatrix(e);for(let e=o[0][0];e<=o[1][0];e+=1)for(let t=o[0][1];t<=o[1][1];t+=1)this.__tableModule.addSelection(r[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(i=this.j.s.sel)||i.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation()}__onRemoveSelection(e){var t;if(!(null==(t=null==e?void 0:e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__cellUnder(e,t){var i;let n=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(e.clientX,e.clientY);return r.Dom.closest(n,e=>r.Dom.isCell(e)&&!r.Dom.closest(e,"table",t),t)}__onStopSelection(e,t){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let i=this.__cellUnder(t,e);i&&(this.__showCellsPopup(e,[i,this.__selectedCell]),this.__stopListening())}__onRelease(e,t){if(this.__isSelectionMode){this.__isSelectionMode=!1,this.j.isLockedNotBy(p)||this.j.unlock();let i=this.__tableModule.getAllSelectedCells();i.length>1&&r.Dom.isOrContains(this.j.editor,t.target)&&(this.__keepMarks=!0,this.__showCellsPopup(e,i))}this.__stopListening()}__showCellsPopup(e,t){var i,n;let o=this.__tableModule.getSelectedBound(e,t),r=this.__tableModule.formalMatrix(e),s=null==(i=r[o[1][0]])?void 0:i[o[1][1]];(null==(n=r[o[0][0]])?void 0:n[o[0][1]])&&s&&this.j.e.fire("showPopup",e,this.__markedBound,"cells")}__stopListening(){(0,a.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),new Set([this.j.ew,this.j.ow]).forEach(e=>this.j.e.off(e,"mouseup.select-cells touchend.select-cells")),this.__movedTo=null}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){let e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow|headerrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let n=r.Dom.closest(i,"table",this.j.editor);if(!n)return;switch(e){case"splitv":this.__tableModule.splitVertical(n);break;case"splitg":this.__tableModule.splitHorizontal(n);break;case"merge":this.__tableModule.mergeSelected(n);break;case"empty":t.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))});break;case"bin":this.__removeTable(n);break;case"binrow":{let e=new Set(t.map(e=>e.parentNode)),o=this.__nearestCell(n,i,(0,a.toArray)(e).map(e=>e.rowIndex),!0);e.forEach(e=>{this.__tableModule.removeRow(n,e.rowIndex)}),o&&this.j.s.setCursorIn(o)}break;case"bincolumn":{let e=new Set,o=[];t.forEach(t=>{let[,i]=this.__tableModule.formalCoordinate(n,t);e.has(i)||(o.push(i),e.add(i))});let r=this.__nearestCell(n,i,o,!1);o.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(n,e)}),r&&this.j.s.setCursorIn(r)}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(n,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(n,i.parentNode,"addrowafter"===e);break;case"headerrow":this.__toggleHeaderRow(n,t)}/^split/.test(e)&&t.forEach(e=>this.__tableModule.addSelection(e)),/^bin(row|column)$/.test(e)&&!this.__tableModule.getColumnsCount(n)&&this.__removeTable(n)}return!1}}__toggleHeaderRow(e,t){let i=this.__tableModule;this.j.s.save();let n=i.toggleHeaderRow(e);this.j.s.restore(),t.forEach(e=>{let t=n.get(e);t&&(i.removeSelection(e),i.addSelection(t))})}__nearestCell(e,t,i,n){let o=this.__tableModule.formalMatrix(e),[r,s]=this.__tableModule.formalCoordinate(e,t),a=n?r:s,l=n?o.length:o[r].length,c=e=>!i.includes(e)&&(n?o[e][s]:o[r][e])||null;for(let e=a+1;e<l;e+=1){let t=c(e);if(t)return t}for(let e=a-1;e>=0;e-=1){let t=c(e);if(t)return t}return null}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,a.alignElement)(e,t))}__removeTable(e){let t=e.parentNode,i=r.Dom.findNotEmptySibling(e,!1),n=r.Dom.findNotEmptySibling(e,!0);r.Dom.safeRemove(e),this.j.s.setCursorIn(i||n||t,!!i)}beforeDestruct(e){this.__onRemoveSelection(),this.__stopListening(),e.e.off(".select-cells").off("keydown",this.__onKeyDown).off("clickEditor",this.__onClickAfterDrag)}constructor(){super(...arguments),this.__keyDownCell=null,this.__keyDownRange=null,this.__keyDownInLink=!1,this.__selectedCell=null,this.__isSelectionMode=!1,this.__movedTo=null,this.__keepMarks=!1,this.__inPopup=!1}}f.requires=["select"],h([o.autobind],f.prototype,"__onKeyDown",null),h([(0,o.watch)(":keyup")],f.prototype,"onKeyUp",null),h([o.autobind],f.prototype,"__markedBound",null),h([o.autobind],f.prototype,"onStartSelection",null),h([(0,o.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),h([(0,o.watch)([":mousedown",":touchstart"])],f.prototype,"onMouseDown",null),h([o.autobind],f.prototype,"__onClickAfterDrag",null),h([(0,o.watch)(["ow:mousedown","ow:touchstart","ow:keydown",":mousedown",":touchstart",":keydown"])],f.prototype,"onPress",null),h([(0,o.watch)(":change")],f.prototype,"onChange",null),h([o.autobind],f.prototype,"__onRemoveSelection",null),h([o.autobind],f.prototype,"__onStopSelection",null),h([o.autobind],f.prototype,"onExecCommand",null),h([o.autobind],f.prototype,"onAfterCommand",null),s.pluginSystem.add("selectCells",f)},67215:function(e,t,i){i(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(4510),l=i(87058),c=i(49055),u=i(76078),d=i(50911),h=i(67510);i(67215);var p=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let f=`url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg'><filter id='s' x='0' y='0' width='1' height='1' color-interpolation-filters='sRGB'><feFlood flood-color='#84bbfc' flood-opacity='.6'/><feComposite in2='SourceGraphic'/></filter></svg>")}#s")`;class m extends d.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)}),e.e.on("dblclick",this.__onDblClickBesideRow,{top:!0}),e.e.on(e.ed,"selectionchange",this.__markSelectedMedia)}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.off(t+".select",this.onStartSelection)}),this.__endPressBesideRow(),e.e.off("dblclick",this.__onDblClickBesideRow),e.e.off(e.ed,"selectionchange",this.__markSelectedMedia)}__markSelectedMedia(){var e;let{s:t,editor:i,o}=this.j,a=(null==(e=t.sel)?void 0:e.rangeCount)?t.sel.getRangeAt(0):null,l=[];a&&!a.collapsed&&!o.readonly&&this.j.getMode()!==n.MODE_SOURCE&&!y(a)&&r.Dom.isOrContains(i,a.commonAncestorContainer)&&b(a,i).forEach(e=>{let t=e.querySelector("video, iframe, audio, object, embed"),i=(0,u.cssPath)(e);t&&i&&l.push(`${i}::selection,${i} ::selection{background:transparent}`,`${(0,u.cssPath)(t)}{filter:${f}}`)});let c=l.join("");c!==this.__selectedMediaStyle&&(this.__selectedMediaStyle=c,(0,s.getContainer)(this.j,m,"style",!0).textContent=c)}onStartSelection(e){let{j:t}=this,i,n=e.target;for(;void 0===i&&n&&n!==t.editor;)i=t.e.fire((0,l.camelCase)(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===i&&n===t.editor&&t.e.fire(e.type+"Editor",n,e)}onOutsidePress(e){this.__pressTarget=e.target}onOutsideClick(e){let t=e.target,i=this.__pressTarget;this.__pressTarget=null,r.Dom.up(t,e=>e===this.j.editor)||i&&h.UIElement.closestElement(i,h.Popup)||r.Dom.isNode(t)&&!t.isConnected||h.UIElement.closestElement(t,h.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&r.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){let{s:t}=this.j,i=t.range;if(!i.collapsed||0!==i.startOffset||!r.Dom.isText(i.startContainer))return;let o=i.startContainer,s=o.parentNode;if(!r.Dom.isTag(s,"li")||!r.Dom.first(s,e=>r.Dom.isTag(e,n.LIST_TAGS)))return;let a=this.j.ed.createRange();a.selectNodeContents(o);let l=a.getBoundingClientRect();e.clientX>l.right&&t.setCursorAfter(o)}__rowBeside(e){var t;let{j:i}=this,n=e.target;if(i.o.readonly||0!==e.button||e.detail>2||!r.Dom.isHTMLElement(n)||r.Dom.closest(n,r.Dom.isCell,i.editor))return null;let o=(0,a.toArray)(n.children).find(t=>{if(!r.Dom.isTag(t,"table"))return!1;let i=t.getBoundingClientRect();return e.clientX>=i.right&&e.clientY>=i.top&&e.clientY<i.bottom}),s=o?(0,a.toArray)(o.rows).filter(e=>e.cells.length):[];return o&&s.length?{table:o,row:null!=(t=s.find(t=>e.clientY<t.getBoundingClientRect().bottom))?t:s[s.length-1]}:null}onMouseDownBesideTableRow(e){let{j:t}=this,i=this.__rowBeside(e);i&&(this.__endPressBesideRow(),e.preventDefault(),this.__putCaretBesideRow(i.table,i.row),this.__pressBesideRow={row:i.row,caret:t.s.range.cloneRange()},t.e.on(t.ew,"mousemove",this.__onDragFromRow),new Set([t.ew,t.ow]).forEach(e=>t.e.on(e,"mouseup",this.__onReleaseFromRow)))}__onDragFromRow(e){var t,i;let{s:n}=this.j,o=this.__pressBesideRow;if(!o||!(1&e.buttons))return void this.__endPressBesideRow();if((null==(t=this.__rowBeside(e))?void 0:t.row)===o.row){n.isCollapsed()||n.selectRange(o.caret.cloneRange());return}let{cells:r}=o.row,s=r[r.length-1];if(n.insertCursorAtPoint(e.clientX,e.clientY)){let{startContainer:e,startOffset:t}=n.range;null==(i=n.sel)||i.setBaseAndExtent(s,s.childNodes.length,e,t)}}__onReleaseFromRow(){let e=this.__pressBesideRow;this.__endPressBesideRow(),e&&this.j.s.isCollapsed()&&this.j.s.selectRange(e.caret)}__endPressBesideRow(){let{j:e}=this;this.__pressBesideRow=null,e.e.off(e.ew,"mousemove",this.__onDragFromRow),new Set([e.ew,e.ow]).forEach(t=>e.e.off(t,"mouseup",this.__onReleaseFromRow))}__onDblClickBesideRow(e){if(this.__rowBeside(e))return this.j.e.stopPropagation("dblclick"),!1}__putCaretBesideRow(e,t){let{j:i}=this,n=(0,a.toArray)(e.rows),o=n.slice(n.indexOf(t)+1).find(e=>e.cells.length),s=e.nextSibling;for(;s&&r.Dom.isEmptyTextNode(s);)s=s.nextSibling;o?i.s.setCursorIn(o.cells[0],!0):r.Dom.isBlock(s)&&!r.Dom.isTag(s,"table")&&r.Dom.isContentEditable(s,i.editor)?i.s.setCursorIn(s,!0):i.s.setCursorAfter(e)}onClickKeepPendingFormat(){var e,t;let{s:i}=this.j,o=i.range;if(!o.collapsed||!r.Dom.isText(o.startContainer))return;let s=o.startContainer;if(o.startOffset!==(null!=(t=null==(e=s.nodeValue)?void 0:e.length)?t:0))return;let a=s.nextSibling;if(!r.Dom.isElement(a)||!a.nodeName.match(n.IS_INLINE)||!r.Dom.isEmpty(a))return;let l=a;for(;r.Dom.isElement(l.firstElementChild)&&l.firstElementChild.nodeName.match(n.IS_INLINE);)l=l.firstElementChild;i.setCursorIn(l)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:n}=t.range;0===n&&r.Dom.isText(i)&&t.select(r.Dom.closest(i,r.Dom.isBlock,this.j.editor)||i,!0)}onDblClickPastLineEnd(){let{s:e,editor:t,o:i}=this.j,n=e.range;!i.readonly&&r.Dom.isOrContains(t,n.commonAncestorContainer)&&function(e,t){let{startContainer:i,endContainer:n}=e;if(e.collapsed||(0,c.trim)(e.toString())&&(0,c.trim)(v(e.cloneContents())))return!1;let o=r.Dom.closest(i,r.Dom.isBlock,t)!==r.Dom.closest(n,r.Dom.isBlock,t),s=t=>!e.intersectsNode(t)||(r.Dom.isOrContains(t,i)||r.Dom.isOrContains(t,n)?(0,a.toArray)(t.childNodes).every(s):r.Dom.isTag(t,"br")?(o=!0,!0):r.Dom.isText(t)||function e(t){let i=(0,a.toArray)(t.childNodes);return g(t)||r.Dom.isBlock(t)&&i.some(e)&&i.every(t=>r.Dom.isEmptyTextNode(t)||e(t))}(t));return s(e.commonAncestorContainer)&&o}(n,t)&&(n.collapse(!0),e.selectRange(n))}onMouseUpOnUneditableLine(e){var t,i;let{s:n,editor:o,o:s}=this.j,{sel:a}=n;if(s.readonly||!(null==a?void 0:a.rangeCount)||a.isCollapsed)return;let l=a.getRangeAt(0).cloneRange();if(y(l))return;let u=a.anchorNode===l.startContainer&&a.anchorOffset===l.startOffset,d=b(l,o).map(e=>{var t;return null!=(t=r.Dom.closest(e,r.Dom.isBlock,o))?t:e}).filter(e=>!(0,c.trim)(v(e))),h=t=>{let i=t.getBoundingClientRect();return u?e.clientY<i.bottom:e.clientY>i.top},p=u?d.find(h):d.reverse().find(h);if(!p)return;let f=e=>r.Dom.isText(e)&&!r.Dom.isEmptyTextNode(e)||r.Dom.isTag(e,"br"),m=r.Dom.findNotEmptySibling(p,u),g=r.Dom.isBlock(m)?u?r.Dom.last(m,f):r.Dom.first(m,f):null;if(!g)return;r.Dom.isText(g)?u?l.setEnd(g,null!=(i=null==(t=g.nodeValue)?void 0:t.length)?i:0):l.setStart(g,0):u?l.setEndBefore(g):l.setStartBefore(g);let{startContainer:_,startOffset:w,endContainer:k,endOffset:S}=l;u?a.setBaseAndExtent(_,w,k,S):a.setBaseAndExtent(k,S,_,w)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:n}=this.j;!n.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&r.Dom.isNode(e.target)&&r.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"],this.__selectedMediaStyle="",this.__pressTarget=null,this.__pressBesideRow=null}}p([(0,o.watch)([":change",":readonly",":afterSetMode"]),o.autobind],m.prototype,"__markSelectedMedia",null),p([o.autobind],m.prototype,"onStartSelection",null),p([(0,o.watch)(["ow:mousedown","ow:touchstart"])],m.prototype,"onOutsidePress",null),p([(0,o.watch)("ow:click")],m.prototype,"onOutsideClick",null),p([(0,o.watch)([":beforeCommandCut"])],m.prototype,"beforeCommandCut",null),p([(0,o.watch)([":beforeCommandSelectall"])],m.prototype,"beforeCommandSelectAll",null),p([(0,o.watch)([":click"])],m.prototype,"onClickRightOfNestedListItem",null),p([(0,o.watch)(":mousedown")],m.prototype,"onMouseDownBesideTableRow",null),p([o.autobind],m.prototype,"__onDragFromRow",null),p([o.autobind],m.prototype,"__onReleaseFromRow",null),p([o.autobind],m.prototype,"__onDblClickBesideRow",null),p([(0,o.watch)([":click"])],m.prototype,"onClickKeepPendingFormat",null),p([(0,o.watch)([":click"])],m.prototype,"onTripleClickNormalizeSelection",null),p([(0,o.watch)([":dblclick"])],m.prototype,"onDblClickPastLineEnd",null),p([(0,o.watch)([":mouseup"])],m.prototype,"onMouseUpOnUneditableLine",null),p([(0,o.watch)([":copy",":cut"])],m.prototype,"onCopyNormalizeSelectionBound",null);let g=e=>r.Dom.isElement(e)&&"false"===e.getAttribute("contenteditable"),v=e=>{var t;return g(e)?"":r.Dom.isText(e)?null!=(t=e.nodeValue)?t:"":(0,a.toArray)(e.childNodes).map(v).join("")};function b(e,t){let i=e.commonAncestorContainer;return r.Dom.isElement(i)?(0,a.toArray)(i.querySelectorAll('[contenteditable="false"]')).filter(i=>{if(!e.intersectsNode(i))return!1;let n=i.ownerDocument.createRange();return n.selectNode(i),0>=e.compareBoundaryPoints(Range.START_TO_START,n)&&e.compareBoundaryPoints(Range.END_TO_END,n)>=0&&!r.Dom.closest(i.parentNode,g,t)}):[]}function y(e){let{startContainer:t,startOffset:i,endContainer:n,endOffset:o}=e;return t===n&&o-i==1&&r.Dom.isElement(t.childNodes[i])}s.pluginSystem.add("select",m)},80792:function(e,t,i){var n=i(6441);n.Config.prototype.minWidth=200,n.Config.prototype.maxWidth="100%",n.Config.prototype.minHeight=200,n.Config.prototype.maxHeight="auto",n.Config.prototype.saveHeightInStorage=!1},45927:function(e,t,i){var n=i(65478),o=i(580),r=i(84767),s=i(41180),a=i(20356);i(80792);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,s.css)(e.editor,{minHeight:"100%"}),(0,s.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,r.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(i)&&i<e&&(e=i)}(0,s.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,r.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(i)&&e>i&&(e=i)}(0,s.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){var e;let t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null==(e=this.j.statusbar)?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,s.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,r.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,s.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,r.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,s.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,s.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,r.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:o}=this.j.container;(e!==n||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}l([(0,n.throttle)()],c.prototype,"__initialize",null),l([n.autobind],c.prototype,"__setHeight",null),l([n.autobind],c.prototype,"__setWidth",null),l([n.autobind],c.prototype,"__resizeWorkspaceImd",null),o.pluginSystem.add("size",c)},36204:function(e,t,i){var n=i(82758),o=i(12153),r=i(6441),s=i(35599);r.Config.prototype.beautifyHTML=!n.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",s.default),r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec(e){e.toggleMode()},isActive:e=>e.getRealMode()===n.MODE_SOURCE,tooltip:"Change mode"}},60031:function(e,t,i){i.d(t,{AceEditor:function(){return l}});var n=i(82758),o=i(45219),r=i(2748),s=i(21537),a=i(23370);class l extends a.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let n=0;e>n;n++)i+=this.getLastColumnIndex(n),n>0&&(i+=1),t[n]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let n=1;n<t.length;n++)e>t[n]&&(i=n+1);let n=e-t[i-1]-1;return{row:i,column:n}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:n})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");r.Dom.append(this.container,t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.__onChange),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==n.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===n.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()},i=!1,o=()=>{if(!e.isInDestruct&&(e.getRealMode()===n.MODE_SOURCE||e.getMode()===n.MODE_SPLIT)){if(!this.aceExists()){i||(i=!0,(0,s.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(o).catch(()=>null));return}t()}};e.e.on("afterSetMode",o),o()}destruct(){var e,t;this.instance.off("change",this.__onChange),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=null==(e=this.j)?void 0:e.events)||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,s.isString)(t)&&(e=t)}this.__settingValue=!0;try{this.instance.setValue(e)}finally{this.__settingValue=!1}this.instance.clearSelection()}__onChange(){this.__settingValue||this.toWYSIWYG()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){e.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)},this.__settingValue=!1}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([o.autobind],l.prototype,"__onChange",null)},7483:function(e,t,i){i.d(t,{TextAreaEditor:function(){return a}});var n=i(2748),o=i(29960),r=i(41180),s=i(23370);class a extends s.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),n.Dom.append(this.container,this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,r.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){n.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(n,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,o.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,o.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{(0,r.css)(this.instance,"height","auto"),(0,r.css)(this.instance,"height",this.instance.scrollHeight)},this.j.defaultTimeout,!0)}}},52968:function(e,t,i){i.d(t,{AceEditor:function(){return n.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var n=i(60031),o=i(7483)},70022:function(e,t,i){i.d(t,{createSourceEditor:function(){return r}});var n=i(21537),o=i(52968);function r(e,t,i,r,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,s);break}default:a=new o.TextAreaEditor(t,i,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},23370:function(e,t,i){i.d(t,{SourceEditor:function(){return n}});class n{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null==(t=this.j.events)||t.on(this,"ready",e)}constructor(e,t,i,n){this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=n,this.className="",this.isReady=!1}}},52951:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911);i(36204);var c=i(70022),u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends l.Plugin{onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,n.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__filledValue=this.getMirrorValue(),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=n.INVISIBLE_SPACE;return t});e>0&&t[e]===n.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(n.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===n.MODE_SOURCE)return null==(t=this.sourceEditor)||t.selectAll(),!1}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;let t=this.j.od.activeElement;(!t||t===this.j.od.body||this.j.container.contains(t))&&(null==(e=this.sourceEditor)||e.focus())}saveSelection(){if(this.j.getRealMode()===n.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),n=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){let e,t;if(this.j.getRealMode()===n.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let i=this.getMirrorValue();try{if(i=i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",i);(0,a.isString)(e)&&(i=e)}if(t=e=i.indexOf(this.tempMarkerStart),i=i.replace(this.tempMarkerStartReg,""),-1!==e){let e=i.indexOf(this.tempMarkerEnd);-1!==e&&(t=e)}i=i.replace(this.tempMarkerEndReg,"")}finally{i=i.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(i),this.setMirrorSelectionRange(e,t),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null==(i=this.sourceEditor)||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),r.Dom.append(e.workplace,this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{r.Dom.append(e.workplace,this.mirrorContainer)}),this.sourceEditor=(0,c.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===n.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{var t;if(e.isInDestruct)return!1;let i=e.ow.html_beautify;return!!i&&!e.isInDestruct&&(null==(t=e.events)||t.off("beautifyHTML").on("beautifyHTML",e=>i(e)),!0)};if(!t()){let i=!1,o=()=>{i||e.getMode()!==n.MODE_SOURCE&&e.getMode()!==n.MODE_SPLIT||(i=!0,(0,a.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(()=>{t()&&this.beautifyUntouched()},()=>null))};e.e.on("afterSetMode.source",o),o()}}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===n.MODE_SPLIT||t.getMode()===n.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){let t=(0,c.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var i;this.takeOver(t),null==(i=e.events)||i.fire("sourceEditorReady",e)})}else null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}takeOver(e){let t=this.sourceEditor;if(!t||t===e){this.sourceEditor=e,this.syncValueFromWYSIWYG(!0);return}let i=t.getValue(),n=t.getSelectionStart(),o=t.getSelectionEnd(),r=t.isFocused,s=i===this.__filledValue;t.destruct(),this.sourceEditor=e,s?this.syncValueFromWYSIWYG(!0):(e.setValue(i),this.toWYSIWYG()),n>=0&&e.setSelectionRange(n,o),r&&e.focus()}beautifyUntouched(){var e,t;let i=this.getMirrorValue();if(this.j.o.editHTMLDocumentMode||!i||i!==this.__filledValue)return;let n=this.j.e.fire("beautifyHTML",i);if((0,a.isString)(n)&&n!==i){let i=null==(e=this.sourceEditor)?void 0:e.isFocused;this.setMirrorValue(n),this.__filledValue=this.getMirrorValue(),i&&(null==(t=this.sourceEditor)||t.focus())}}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),r.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.__filledValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionStart())?t:0},this.getSelectionEnd=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionEnd())?t:0}}}u([(0,o.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),u([o.autobind],d.prototype,"fromWYSIWYG",null),u([o.autobind],d.prototype,"toWYSIWYG",null),u([o.autobind],d.prototype,"getNormalPosition",null),u([(0,o.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),u([(0,o.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),u([(0,o.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),u([o.autobind],d.prototype,"setMirrorSelectionRange",null),u([(0,o.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),u([o.autobind],d.prototype,"syncValueFromWYSIWYG",null),s.pluginSystem.add("source",d)},35599:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m6.5 6-5 6 5 6m11-12 5 6-5 6M14 3l-4 18"/> </g> </svg> '},46614:function(e,t,i){var n=i(87612),o=i(70799),r=i(29960),s=i(86583),a=i(12153),l=i(6441),c=i(26532),u=i(93602),d=i(75259);l.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",d.default),l.Config.prototype.controls.speechRecognize={isVisible:e=>!!e.o.speechRecognize.api,isActive(e,t){let i=(0,s.dataBind)(e,"speech");return!!(null==i?void 0:i.isEnabled)},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:i,control:a}){var l;let{api:c,lang:d,continuous:h,interimResults:p,sound:f}=e.o.speechRecognize;if(!c)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){let t=new c;(m=new u.RecognizeManager(e.async,t)).lang=(0,o.isString)(d)?d:null!=(l=(0,r.attr)(e.od.documentElement,"lang"))?l:void 0,m.continuous=h,m.interimResults=p,m.sound=f,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,n.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){var n;let o=(0,s.dataBind)(e,"speech"),r=null!=(n=null==o?void 0:o[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${i}</span>`},mods:{stroke:!1}}},26532:function(e,t,i){var n=i(82758);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0;i.d(t,["SpeechRecognition",0,o])},54076:function(e,t,i){i.d(t,{execSpellCommand:function(){return n}});function n(e,t){let[i,n]=t.split("::");"open"===i.toLowerCase()&&n&&/^(javascript:|data:|vbscript:)/i.test(n.trim())||e.execCommand(i,null,n)}},93602:function(e,t,i){i.d(t,{RecognizeManager:function(){return a}});var n=i(65478),o=i(72757),r=i(37643),s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends o.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,r.closeSound)(this),a._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,a._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,r.sound)(this,{frequency:e})}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,a._instances.add(this)}}a._instances=new Set,s([n.autobind],a.prototype,"_onResults",null),s([n.autobind],a.prototype,"_onProgress",null),s([n.autobind],a.prototype,"_onError",null)},37643:function(e,t,i){i.d(t,{closeSound:function(){return s},sound:function(){return r}});var n=i(82758);let o=new WeakMap;function r(e,{sec:t=.1,frequency:i=440,gain:s=.1,type:a="sine"}={}){let l=function(e){if(!n.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let r=new i;return o.set(e,r),r}(e);if(!l)return;let c=l.createGain(),u=l.createOscillator();u.type=a,u.frequency.value=i,c.gain.value=s,u.connect(c),c.connect(l.destination),u.start(),u.stop(l.currentTime+t)}function s(e){let t=o.get(e);t&&(o.delete(e),"closed"!==t.state&&t.close())}},71705:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(e){e.exports={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"}},34945:function(e){e.exports={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(e){e.exports={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"}},59302:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"}},94141:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(e){e.exports={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",Sound:"Hang","Interim Results":"Időközi Eredmények"}},80651:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(A,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(x,2))},fi:function(){return l||(l=i.t(P,2))},fr:function(){return c||(c=i.t(L,2))},he:function(){return u||(u=i.t(R,2))},hu:function(){return d||(d=i.t(z,2))},id:function(){return h||(h=i.t(M,2))},it:function(){return p||(p=i.t(O,2))},ja:function(){return f||(f=i.t(N,2))},ko:function(){return m||(m=i.t(B,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return v||(v=i.t(H,2))},no:function(){return b||(b=i.t(U,2))},pl:function(){return y||(y=i.t(V,2))},pt_br:function(){return _||(_=i.t(W,2))},ru:function(){return w||(w=i.t(K,2))},sk:function(){return k||(k=i.t(Y,2))},tr:function(){return S||(S=i.t($,2))},ua:function(){return C||(C=i.t(G,2))},zh_cn:function(){return E||(E=i.t(J,2))},zh_tw:function(){return D||(D=i.t(q,2))}});var n,o,r,s,a,l,c,u,d,h,p,f,m,g,v,b,y,_,w,k,S,C,E,D,I=i(71705),T=i(89930),A=i(34945),j=i(63134),x=i(66835),P=i(1115),L=i(59302),R=i(94141),z=i(24877),M=i(80651),O=i(62395),N=i(16407),B=i(37272),F=i(22113),H=i(22432),U=i(17081),V=i(30798),W=i(8661),K=i(19147),Y=i(76220),$=i(93620),G=i(40372),J=i(69874),q=i(88774)},62395:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"}},19147:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},76220:function(e){e.exports={newline:"nový riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpoznávanie reči",Sound:"Zvuk","Interim Results":"Predbežné výsledky"}},93620:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"}},40372:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(e,t,i){var n=i(37133),o=i(2748),r=i(580),s=i(37790),a=i(50911);i(46614);var l=i(2303),c=i(54076),u=i(90492),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,r.extendLang)(u),(0,s.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let o=e.i18n(n);o!==n&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){o.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),o.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{o.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),o.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,r=i.current();if(i.isCollapsed()&&o.Dom.isText(r)&&o.Dom.isOrContains(t.editor,r)&&r.nodeValue){let o=r.nodeValue;r.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+e,n.setStartAfter(r),i.selectRange(n),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,c.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}}d([(0,n.watch)(":speechRecognizeProgressResult")],h.prototype,"onSpeechRecognizeProgressResult",null),d([(0,n.watch)(":speechRecognizeResult")],h.prototype,"onSpeechRecognizeResult",null),l.Jodit.plugins.add("speech-recognize",h)},75259:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="9" y="2" width="6" height="13" rx="3"/><path d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"/> </g> </svg> '},99085:function(e,t,i){var n=i(12153),o=i(6441),r=i(10937);o.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",r.default),o.Config.prototype.controls.spellcheck={isActive:e=>e.o.spellcheck,icon:r.default,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},28906:function(e){e.exports={Spellcheck:"التدقيق الإملائي"}},24351:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},32806:function(e){e.exports={Spellcheck:"Rechtschreibprüfung"}},77725:function(e){e.exports={Spellcheck:"Corrección ortográfica"}},26428:function(e){e.exports={Spellcheck:"غلطیابی املایی"}},42820:function(e){e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(e){e.exports={Spellcheck:"Vérification Orthographique"}},98370:function(e){e.exports={Spellcheck:"בדיקת איות"}},44850:function(e){e.exports={Spellcheck:"Helyesírás-ellenőrzés"}},3636:function(e){e.exports={Spellcheck:"Spellchecking"}},26529:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(A,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(x,2))},fi:function(){return l||(l=i.t(P,2))},fr:function(){return c||(c=i.t(L,2))},he:function(){return u||(u=i.t(R,2))},hu:function(){return d||(d=i.t(z,2))},id:function(){return h||(h=i.t(M,2))},it:function(){return p||(p=i.t(O,2))},ja:function(){return f||(f=i.t(N,2))},ko:function(){return m||(m=i.t(B,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return v||(v=i.t(H,2))},no:function(){return b||(b=i.t(U,2))},pl:function(){return y||(y=i.t(V,2))},pt_br:function(){return _||(_=i.t(W,2))},ru:function(){return w||(w=i.t(K,2))},sk:function(){return k||(k=i.t(Y,2))},tr:function(){return S||(S=i.t($,2))},ua:function(){return C||(C=i.t(G,2))},zh_cn:function(){return E||(E=i.t(J,2))},zh_tw:function(){return D||(D=i.t(q,2))}});var n,o,r,s,a,l,c,u,d,h,p,f,m,g,v,b,y,_,w,k,S,C,E,D,I=i(28906),T=i(24351),A=i(32806),j=i(77725),x=i(26428),P=i(42820),L=i(60373),R=i(98370),z=i(44850),M=i(3636),O=i(73220),N=i(55776),B=i(13995),F=i(6402),H=i(1879),U=i(1322),V=i(53361),W=i(70824),K=i(65140),Y=i(60407),$=i(42247),G=i(68891),J=i(63195),q=i(42107)},73220:function(e){e.exports={Spellcheck:"Controllo ortografico"}},55776:function(e){e.exports={Spellcheck:"スペルチェック"}},13995:function(e){e.exports={Spellcheck:"맞춤법 검사"}},6402:function(e){e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(e){e.exports={Spellcheck:"Spellingcontrole"}},1322:function(e){e.exports={Spellcheck:"Stavekontroll"}},53361:function(e){e.exports={Spellcheck:"Sprawdzanie pisowni"}},70824:function(e){e.exports={Spellcheck:"Verificação ortográfica"}},65140:function(e){e.exports={Spellcheck:"Проверка орфографии"}},60407:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},42247:function(e){e.exports={Spellcheck:"Yazım denetimi"}},68891:function(e){e.exports={Spellcheck:"Перевірка орфографії"}},63195:function(e){e.exports={Spellcheck:"拼写检查"}},42107:function(e){e.exports={Spellcheck:"拼字檢查"}},43809:function(e,t,i){var n=i(65478),o=i(580),r=i(29960),s=i(50911);i(99085);var a=i(26529);class l extends s.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,r.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],(0,o.extendLang)(a)}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],l.prototype,"toggleSpellcheck",null),o.pluginSystem.add("spellcheck",l)},10937:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 14 5-11 5 11M5 10h6m0 8 3 3 7-8"/> </g> </svg> '},99649:function(e,t,i){var n=i(6441);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.countTextSpaces=!1,n.Config.prototype.showWordsCounter=!0},7309:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(20356);i(99649);class a extends s.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){o.Dom.safeRemove(this.charCounter),o.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,n.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout)}}r.pluginSystem.add("stat",a)},48038:function(e,t,i){var n=i(6441);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},68687:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(20356);i(48038);let c=!n.IS_ES_NEXT&&n.IS_IE;class u extends l.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,a.offset)(e.container,e,e.od,!0),o=e.getMode()===n.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let r=e.toolbarContainer;r&&(o?this.addSticky(r):this.removeSticky(r)),e.e.fire("toggleSticky",o)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){r.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),r.Dom.before(e,this.__dummyBox)},this.addSticky=e=>{this.__isToolbarStuck||(c&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,a.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,a.css)(this.__dummyBox,{height:e.offsetHeight})},this.removeSticky=e=>{this.__isToolbarStuck&&((0,a.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.throttle)()],u.prototype,"__onScroll",null),s.pluginSystem.add("sticky",u)},87394:function(e,t,i){var n=i(2748),o=i(12153),r=i(6441),s=i(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(e,t,i){let o=e.e.fire("generateSpecialCharactersTable.symbols");if(o){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),n.Dom.append(t,o),e.e.on(o,"close_dialog",i),t}e.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.Dom.first(o,e=>n.Dom.isTag(e,"a"));t&&t.focus()}}}},20741:function(e){e.exports={symbols:"رمز"}},3958:function(e){e.exports={symbols:"symbol"}},53437:function(e){e.exports={symbols:"Symbol"}},56882:function(e){e.exports={symbols:"Símbolo"}},75703:function(e){e.exports={symbols:"سمبل"}},49759:function(e){e.exports={symbols:"Symbolit"}},44730:function(e){e.exports={symbols:"caractère"}},70945:function(e){e.exports={symbols:"תו מיוחד"}},49841:function(e){e.exports={symbols:"Szimbólum"}},33295:function(e){e.exports={symbols:"simbol"}},32824:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n||(n=i.t(E,2))},cs_cz:function(){return o||(o=i.t(D,2))},de:function(){return r||(r=i.t(I,2))},es:function(){return s||(s=i.t(T,2))},fa:function(){return a||(a=i.t(A,2))},fi:function(){return l||(l=i.t(j,2))},fr:function(){return c||(c=i.t(x,2))},he:function(){return u||(u=i.t(P,2))},hu:function(){return d||(d=i.t(L,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(z,2))},ja:function(){return f||(f=i.t(M,2))},ko:function(){return m||(m=i.t(O,2))},mn:function(){return g||(g=i.t(N,2))},nl:function(){return v||(v=i.t(B,2))},pl:function(){return b||(b=i.t(F,2))},pt_br:function(){return y||(y=i.t(H,2))},ru:function(){return _||(_=i.t(U,2))},tr:function(){return w||(w=i.t(V,2))},ua:function(){return k||(k=i.t(W,2))},zh_cn:function(){return S||(S=i.t(K,2))},zh_tw:function(){return C||(C=i.t(Y,2))}});var n,o,r,s,a,l,c,u,d,h,p,f,m,g,v,b,y,_,w,k,S,C,E=i(20741),D=i(3958),I=i(53437),T=i(56882),A=i(75703),j=i(49759),x=i(44730),P=i(70945),L=i(49841),R=i(33295),z=i(47615),M=i(83059),O=i(22396),N=i(58285),B=i(51804),F=i(53650),H=i(41369),U=i(57855),V=i(44328),W=i(91080),K=i(89702),Y=i(66434)},47615:function(e){e.exports={symbols:"Simbolo"}},83059:function(e){e.exports={symbols:"symbol"}},22396:function(e){e.exports={symbols:"기호"}},58285:function(e){e.exports={symbols:"тэмдэгт"}},51804:function(e){e.exports={symbols:"symbool"}},53650:function(e){e.exports={symbols:"symbol"}},41369:function(e){e.exports={symbols:"Símbolo"}},57855:function(e){e.exports={symbols:"символ"}},44328:function(e){e.exports={symbols:"Sembol"}},91080:function(e){e.exports={symbols:"символ"}},89702:function(e){e.exports={symbols:"符号"}},66434:function(e){e.exports={symbols:"符號"}},59495:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(43555),a=i(20356);i(87394);var l=i(32824);class c extends a.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
278
+ </div>`}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}set count(e){this.countBox.innerText=e.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(e){if(!this.isOpened)return;let{j:t}=this;if(t.getRealMode()===n.MODE_WYSIWYG)switch(e.key){case n.KEY_ESC:this.close();break;case n.KEY_F3:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}open(e,t,i=!1){this.isOpened||(r.Dom.append(this.j.workplace,this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",i);let n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),r.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(e){if(this.isOpened)if(this.setMod("sticky",e),e){let e=(0,s.position)(this.j.toolbarContainer);(0,s.css)(this.container,{top:e.top+e.height,left:e.left+e.width})}else(0,s.css)(this.container,{top:null,left:null})}constructor(e){let t;super(e),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;let{query:i,replace:o,cancel:r,next:a,prev:l,replaceBtn:c,current:u,count:d}=(0,s.refs)(this.container);this.queryInput=i,this.replaceInput=o,this.closeButton=r,this.replaceButton=c,this.currentBox=u,this.countBox=d;let h=()=>this.close(),p=()=>void e.e.fire(this,"pressReplaceButton"),f=()=>void e.e.fire("searchNext"),m=()=>void e.e.fire("searchPrevious"),g=e=>t=>{t.detail||(t.preventDefault(),e())};e.e.on(this.closeButton,"pointerdown",()=>(h(),!1)).on(this.closeButton,"click",g(h)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{e.s.isFocused()&&(e.s.removeMarkers(),this.selInfo=e.s.save())}).on(this.replaceButton,"pointerdown",()=>(p(),!1)).on(this.replaceButton,"click",g(p)).on(a,"pointerdown",()=>(f(),!1)).on(a,"click",g(f)).on(l,"pointerdown",()=>(m(),!1)).on(l,"click",g(m)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,s.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(t=this.j.async.debounce(async t=>{t.key===n.KEY_ENTER?await e.e.fire("searchNext")&&this.close():e.e.fire(this,"needUpdateCounters")},this.j.defaultTimeout),e=>{e.key===n.KEY_ENTER&&(e.preventDefault(),e.stopImmediatePropagation()),t(e)}))}};l([(0,o.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),l([o.autobind],c.prototype,"open",null),l([o.autobind],c.prototype,"close",null),l([(0,o.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=l([o.component],c)},55311:function(e,t,i){i(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911),c=i(45124),u=i(67510),d=i(76014);i(55311);var h=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let p="table_processor_observer";class f extends l.Plugin{get __tableModule(){return this.j.getInstance(d.Table,this.j.o)}afterInit(e){e.o.tableAllowCellSelection&&e.e.on("keydown",this.__onKeyDown,{top:!0}).on("clickEditor",this.__onClickAfterDrag,{top:!0}).on("keydown.select-cells",e=>{e.key===n.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(e=>e+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody clickThead clickTfoot clickTable",()=>{var e;let t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&(null==(e=this.j.s.sel)||e.removeAllRanges()),!1})}__onKeyDown(e){(null==e?void 0:e.repeat)&&this.__followCaret(),this.__keyDownCell=this.__caretCell(),this.__keyDownRange=this.j.s.range.cloneRange(),this.__keyDownInLink=this.__isInLink()}__isInLink(){return!!r.Dom.closest(this.j.s.range.startContainer,"a",this.j.editor)}__caretCell(){return r.Dom.closest(this.j.s.range.startContainer,r.Dom.isCell,this.j.editor)}onKeyUp(){this.__followCaret()}__followCaret(){let e=this.__keyDownRange;if(this.__keyDownRange=null,this.j.o.readonly||!(0,c.isMoved)(this.j,e))return;let t=this.__caretCell(),i=this.__keyDownInLink&&!this.__isInLink();if(t===this.__keyDownCell&&!(t&&i))return;let n=this.__tableModule.getAllSelectedCells().length>0;if(this.unselectCells(),!t){n&&this.j.e.fire("hidePopup","cells");return}let o=r.Dom.closest(t,"table",this.j.editor);o&&(this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.fire("showPopup",o,this.__markedBound,"cells"))}__markedBound(){let e=this.__tableModule.getAllSelectedCells().filter(e=>e.isConnected).map(e=>(0,a.position)(e,this.j));if(!e.length)return{left:0,top:0,width:0,height:0};let t=Math.min(...e.map(e=>e.left)),i=Math.min(...e.map(e=>e.top));return{left:t,top:i,width:Math.max(...e.map(e=>e.left+e.width))-t,height:Math.max(...e.map(e=>e.top+e.height))-i}}onStartSelection(e,t){var i;if(this.j.o.readonly)return;let n=r.Dom.closest(e,"table",this.j.editor);return((null==t?void 0:t.ctrlKey)||(null==t?void 0:t.metaKey))&&e!==this.j.editor&&n&&r.Dom.isCell(e)?(this.__tableModule.getAllSelectedCells().includes(e)?this.__tableModule.removeSelection(e):(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__tableModule.addSelection(e)),this.__selectedCell=e,null==(i=this.j.s.sel)||i.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",n,this.__markedBound,"cells"):this.j.e.fire("hidePopup","cells"),!1):(this.unselectCells(),e===this.j.editor)?void 0:e&&n?(e.firstChild||r.Dom.append(e,this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__movedTo=e,this.__tableModule.addSelection(e),this.j.e.on(n,"mousemove.select-cells touchmove.select-cells",this.__onMove.bind(this,n)).on(n,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,n)),new Set([this.j.ew,this.j.ow]).forEach(e=>this.j.e.on(e,"mouseup.select-cells touchend.select-cells",this.__onRelease.bind(this,n))),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onMouseDown(){this.__keepMarks=!1}__onClickAfterDrag(){var e;if(this.__keepMarks)return this.__keepMarks=!1,null==(e=this.j.s.sel)||e.removeAllRanges(),this.j.e.stopPropagation("clickEditor"),!1}onPress(e){this.__inPopup=!!(e&&r.Dom.isNode(e.target)&&u.UIElement.closestElement(e.target,u.Popup))}onChange(){this.j.isLocked||this.__isSelectionMode||this.__inPopup||this.__onRemoveSelection()}__onMove(e,t){var i;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(p))return;let n=this.__cellUnder(t,e);if(!n||!this.__selectedCell||n===this.__movedTo)return;this.__movedTo=n,n!==this.__selectedCell&&this.j.lock(p),this.unselectCells();let o=this.__tableModule.getSelectedBound(e,[n,this.__selectedCell]),r=this.__tableModule.formalMatrix(e);for(let e=o[0][0];e<=o[1][0];e+=1)for(let t=o[0][1];t<=o[1][1];t+=1)this.__tableModule.addSelection(r[e][t]);this.__tableModule.getAllSelectedCells().length>1&&(null==(i=this.j.s.sel)||i.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation()}__onRemoveSelection(e){var t;if(!(null==(t=null==e?void 0:e.buffer)?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__cellUnder(e,t){var i;let n=(null!=(i=this.j.o.shadowRoot)?i:this.j.ed).elementFromPoint(e.clientX,e.clientY);return r.Dom.closest(n,e=>r.Dom.isCell(e)&&!r.Dom.closest(e,"table",t),t)}__onStopSelection(e,t){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let i=this.__cellUnder(t,e);i&&(this.__showCellsPopup(e,[i,this.__selectedCell]),this.__stopListening())}__onRelease(e,t){if(this.__isSelectionMode){this.__isSelectionMode=!1,this.j.isLockedNotBy(p)||this.j.unlock();let i=this.__tableModule.getAllSelectedCells();i.length>1&&r.Dom.isOrContains(this.j.editor,t.target)&&(this.__keepMarks=!0,this.__showCellsPopup(e,i))}this.__stopListening()}__showCellsPopup(e,t){var i,n;let o=this.__tableModule.getSelectedBound(e,t),r=this.__tableModule.formalMatrix(e),s=null==(i=r[o[1][0]])?void 0:i[o[1][1]];(null==(n=r[o[0][0]])?void 0:n[o[0][1]])&&s&&this.j.e.fire("showPopup",e,this.__markedBound,"cells")}__stopListening(){(0,a.$$)("table",this.j.editor).forEach(e=>{this.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),new Set([this.j.ew,this.j.ow]).forEach(e=>this.j.e.off(e,"mouseup.select-cells touchend.select-cells")),this.__movedTo=null}unselectCells(e){let t=this.__tableModule,i=t.getAllSelectedCells();i.length&&i.forEach(i=>{e&&e===i||t.removeSelection(i)})}onExecCommand(e){if(/^(delete|backspace)(word|sentence)?button$/.test(e)&&this.__tableModule.getAllSelectedCells().length>1){let e=this.__tableModule.getAllSelectedCells();return e.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(e[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow|headerrow)/.test(e)){e=e.replace("table","");let t=this.__tableModule.getAllSelectedCells();if(t.length){let[i]=t;if(!i)return;let n=r.Dom.closest(i,"table",this.j.editor);if(!n)return;switch(e){case"splitv":this.__tableModule.splitVertical(n);break;case"splitg":this.__tableModule.splitHorizontal(n);break;case"merge":this.__tableModule.mergeSelected(n);break;case"empty":t.forEach(e=>{r.Dom.detach(e),r.Dom.append(e,this.j.createInside.element("br"))});break;case"bin":this.__removeTable(n);break;case"binrow":{let e=new Set(t.map(e=>e.parentNode)),o=this.__nearestCell(n,i,(0,a.toArray)(e).map(e=>e.rowIndex),!0);e.forEach(e=>{this.__tableModule.removeRow(n,e.rowIndex)}),o&&this.j.s.setCursorIn(o)}break;case"bincolumn":{let e=new Set,o=[];t.forEach(t=>{let[,i]=this.__tableModule.formalCoordinate(n,t);e.has(i)||(o.push(i),e.add(i))});let r=this.__nearestCell(n,i,o,!1);o.sort((e,t)=>t-e).forEach(e=>{this.__tableModule.removeColumn(n,e)}),r&&this.j.s.setCursorIn(r)}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(n,i,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(n,i.parentNode,"addrowafter"===e);break;case"headerrow":this.__toggleHeaderRow(n,t)}/^split/.test(e)&&t.forEach(e=>this.__tableModule.addSelection(e)),/^bin(row|column)$/.test(e)&&!this.__tableModule.getColumnsCount(n)&&this.__removeTable(n)}return!1}}__toggleHeaderRow(e,t){let i=this.__tableModule;this.j.s.save();let n=i.toggleHeaderRow(e);this.j.s.restore(),t.forEach(e=>{let t=n.get(e);t&&(i.removeSelection(e),i.addSelection(t))})}__nearestCell(e,t,i,n){let o=this.__tableModule.formalMatrix(e),[r,s]=this.__tableModule.formalCoordinate(e,t),a=n?r:s,l=n?o.length:o[r].length,c=e=>!i.includes(e)&&(n?o[e][s]:o[r][e])||null;for(let e=a+1;e<l;e+=1){let t=c(e);if(t)return t}for(let e=a-1;e>=0;e-=1){let t=c(e);if(t)return t}return null}onAfterCommand(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach(t=>(0,a.alignElement)(e,t))}__removeTable(e){let t=e.parentNode,i=r.Dom.findNotEmptySibling(e,!1),n=r.Dom.findNotEmptySibling(e,!0);r.Dom.safeRemove(e),this.j.s.setCursorIn(i||n||t,!!i)}beforeDestruct(e){this.__onRemoveSelection(),this.__stopListening(),e.e.off(".select-cells").off("keydown",this.__onKeyDown).off("clickEditor",this.__onClickAfterDrag)}constructor(){super(...arguments),this.__keyDownCell=null,this.__keyDownRange=null,this.__keyDownInLink=!1,this.__selectedCell=null,this.__isSelectionMode=!1,this.__movedTo=null,this.__keepMarks=!1,this.__inPopup=!1}}f.requires=["select"],h([o.autobind],f.prototype,"__onKeyDown",null),h([(0,o.watch)(":keyup")],f.prototype,"onKeyUp",null),h([o.autobind],f.prototype,"__markedBound",null),h([o.autobind],f.prototype,"onStartSelection",null),h([(0,o.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),h([(0,o.watch)([":mousedown",":touchstart"])],f.prototype,"onMouseDown",null),h([o.autobind],f.prototype,"__onClickAfterDrag",null),h([(0,o.watch)(["ow:mousedown","ow:touchstart","ow:keydown",":mousedown",":touchstart",":keydown"])],f.prototype,"onPress",null),h([(0,o.watch)(":change")],f.prototype,"onChange",null),h([o.autobind],f.prototype,"__onRemoveSelection",null),h([o.autobind],f.prototype,"__onStopSelection",null),h([o.autobind],f.prototype,"onExecCommand",null),h([o.autobind],f.prototype,"onAfterCommand",null),s.pluginSystem.add("selectCells",f)},67215:function(e,t,i){i(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(4510),l=i(87058),c=i(49055),u=i(76078),d=i(50911),h=i(67510);i(67215);var p=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};let f=`url("data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg'><filter id='s' x='0' y='0' width='1' height='1' color-interpolation-filters='sRGB'><feFlood flood-color='#84bbfc' flood-opacity='.6'/><feComposite in2='SourceGraphic'/></filter></svg>")}#s")`;class m extends d.Plugin{afterInit(e){this.proxyEventsList.forEach(t=>{e.e.on(t+".select",this.onStartSelection)}),e.e.on("dblclick",this.__onDblClickBesideRow,{top:!0}),e.e.on(e.ed,"selectionchange",this.__markSelectedMedia)}beforeDestruct(e){this.proxyEventsList.forEach(t=>{e.e.off(t+".select",this.onStartSelection)}),this.__endPressBesideRow(),e.e.off("dblclick",this.__onDblClickBesideRow),e.e.off(e.ed,"selectionchange",this.__markSelectedMedia)}__markSelectedMedia(){var e;let{s:t,editor:i,o}=this.j,a=(null==(e=t.sel)?void 0:e.rangeCount)?t.sel.getRangeAt(0):null,l=[];a&&!a.collapsed&&!o.readonly&&this.j.getMode()!==n.MODE_SOURCE&&!y(a)&&r.Dom.isOrContains(i,a.commonAncestorContainer)&&b(a,i).forEach(e=>{let t=e.querySelector("video, iframe, audio, object, embed"),i=(0,u.cssPath)(e);t&&i&&l.push(`${i}::selection,${i} ::selection{background:transparent}`,`${(0,u.cssPath)(t)}{filter:${f}}`)});let c=l.join("");c!==this.__selectedMediaStyle&&(this.__selectedMediaStyle=c,(0,s.getContainer)(this.j,m,"style",!0).textContent=c)}onStartSelection(e){let{j:t}=this,i,n=e.target;for(;void 0===i&&n&&n!==t.editor;)i=t.e.fire((0,l.camelCase)(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===i&&n===t.editor&&t.e.fire(e.type+"Editor",n,e)}onOutsidePress(e){this.__pressTarget=e.target}onOutsideClick(e){let t=e.target,i=this.__pressTarget;this.__pressTarget=null,r.Dom.up(t,e=>e===this.j.editor)||i&&h.UIElement.closestElement(i,h.Popup)||r.Dom.isNode(t)&&!t.isConnected||h.UIElement.closestElement(t,h.Popup)||this.j.e.fire("outsideClick",e)}beforeCommandCut(){let{s:e}=this.j;if(!e.isCollapsed()){let t=e.current();t&&r.Dom.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onClickRightOfNestedListItem(e){let{s:t}=this.j,i=t.range;if(!i.collapsed||0!==i.startOffset||!r.Dom.isText(i.startContainer))return;let o=i.startContainer,s=o.parentNode;if(!r.Dom.isTag(s,"li")||!r.Dom.first(s,e=>r.Dom.isTag(e,n.LIST_TAGS)))return;let a=this.j.ed.createRange();a.selectNodeContents(o);let l=a.getBoundingClientRect();e.clientX>l.right&&t.setCursorAfter(o)}__rowBeside(e){var t;let{j:i}=this,n=e.target;if(i.o.readonly||0!==e.button||e.detail>2||!r.Dom.isHTMLElement(n)||r.Dom.closest(n,r.Dom.isCell,i.editor))return null;let o=(0,a.toArray)(n.children).find(t=>{if(!r.Dom.isTag(t,"table"))return!1;let i=t.getBoundingClientRect();return e.clientX>=i.right&&e.clientY>=i.top&&e.clientY<i.bottom}),s=o?(0,a.toArray)(o.rows).filter(e=>e.cells.length):[];return o&&s.length?{table:o,row:null!=(t=s.find(t=>e.clientY<t.getBoundingClientRect().bottom))?t:s[s.length-1]}:null}onMouseDownBesideTableRow(e){let{j:t}=this,i=this.__rowBeside(e);i&&(this.__endPressBesideRow(),e.preventDefault(),this.__putCaretBesideRow(i.table,i.row),this.__pressBesideRow={row:i.row,caret:t.s.range.cloneRange()},t.e.on(t.ew,"mousemove",this.__onDragFromRow),new Set([t.ew,t.ow]).forEach(e=>t.e.on(e,"mouseup",this.__onReleaseFromRow)))}__onDragFromRow(e){var t,i;let{s:n}=this.j,o=this.__pressBesideRow;if(!o||!(1&e.buttons))return void this.__endPressBesideRow();if((null==(t=this.__rowBeside(e))?void 0:t.row)===o.row){n.isCollapsed()||n.selectRange(o.caret.cloneRange());return}let{cells:r}=o.row,s=r[r.length-1];if(n.insertCursorAtPoint(e.clientX,e.clientY)){let{startContainer:e,startOffset:t}=n.range;null==(i=n.sel)||i.setBaseAndExtent(s,s.childNodes.length,e,t)}}__onReleaseFromRow(){let e=this.__pressBesideRow;this.__endPressBesideRow(),e&&this.j.s.isCollapsed()&&this.j.s.selectRange(e.caret)}__endPressBesideRow(){let{j:e}=this;this.__pressBesideRow=null,e.e.off(e.ew,"mousemove",this.__onDragFromRow),new Set([e.ew,e.ow]).forEach(t=>e.e.off(t,"mouseup",this.__onReleaseFromRow))}__onDblClickBesideRow(e){if(this.__rowBeside(e))return this.j.e.stopPropagation("dblclick"),!1}__putCaretBesideRow(e,t){let{j:i}=this,n=(0,a.toArray)(e.rows),o=n.slice(n.indexOf(t)+1).find(e=>e.cells.length),s=e.nextSibling;for(;s&&r.Dom.isEmptyTextNode(s);)s=s.nextSibling;o?i.s.setCursorIn(o.cells[0],!0):r.Dom.isBlock(s)&&!r.Dom.isTag(s,"table")&&r.Dom.isContentEditable(s,i.editor)?i.s.setCursorIn(s,!0):i.s.setCursorAfter(e)}onClickKeepPendingFormat(){var e,t;let{s:i}=this.j,o=i.range;if(!o.collapsed||!r.Dom.isText(o.startContainer))return;let s=o.startContainer;if(o.startOffset!==(null!=(t=null==(e=s.nodeValue)?void 0:e.length)?t:0))return;let a=s.nextSibling;if(!r.Dom.isElement(a)||!a.nodeName.match(n.IS_INLINE)||!r.Dom.isEmpty(a))return;let l=a;for(;r.Dom.isElement(l.firstElementChild)&&l.firstElementChild.nodeName.match(n.IS_INLINE);)l=l.firstElementChild;i.setCursorIn(l)}onTripleClickNormalizeSelection(e){if(3!==e.detail||!this.j.o.select.normalizeTripleClick)return;let{s:t}=this.j,{startContainer:i,startOffset:n}=t.range;0===n&&r.Dom.isText(i)&&t.select(r.Dom.closest(i,r.Dom.isBlock,this.j.editor)||i,!0)}onDblClickPastLineEnd(){let{s:e,editor:t,o:i}=this.j,n=e.range;!i.readonly&&r.Dom.isOrContains(t,n.commonAncestorContainer)&&function(e,t){let{startContainer:i,endContainer:n}=e;if(e.collapsed||(0,c.trim)(e.toString())&&(0,c.trim)(v(e.cloneContents())))return!1;let o=r.Dom.closest(i,r.Dom.isBlock,t)!==r.Dom.closest(n,r.Dom.isBlock,t),s=t=>!e.intersectsNode(t)||(r.Dom.isOrContains(t,i)||r.Dom.isOrContains(t,n)?(0,a.toArray)(t.childNodes).every(s):r.Dom.isTag(t,"br")?(o=!0,!0):r.Dom.isText(t)||function e(t){let i=(0,a.toArray)(t.childNodes);return g(t)||r.Dom.isBlock(t)&&i.some(e)&&i.every(t=>r.Dom.isEmptyTextNode(t)||e(t))}(t));return s(e.commonAncestorContainer)&&o}(n,t)&&(n.collapse(!0),e.selectRange(n))}onMouseUpOnUneditableLine(e){var t,i;let{s:n,editor:o,o:s}=this.j,{sel:a}=n;if(s.readonly||!(null==a?void 0:a.rangeCount)||a.isCollapsed)return;let l=a.getRangeAt(0).cloneRange();if(y(l))return;let u=a.anchorNode===l.startContainer&&a.anchorOffset===l.startOffset,d=b(l,o).map(e=>{var t;return null!=(t=r.Dom.closest(e,r.Dom.isBlock,o))?t:e}).filter(e=>!(0,c.trim)(v(e))),h=t=>{let i=t.getBoundingClientRect();return u?e.clientY<i.bottom:e.clientY>i.top},p=u?d.find(h):d.reverse().find(h);if(!p)return;let f=e=>r.Dom.isText(e)&&!r.Dom.isEmptyTextNode(e)||r.Dom.isTag(e,"br"),m=r.Dom.findNotEmptySibling(p,u),g=r.Dom.isBlock(m)?u?r.Dom.last(m,f):r.Dom.first(m,f):null;if(!g)return;r.Dom.isText(g)?u?l.setEnd(g,null!=(i=null==(t=g.nodeValue)?void 0:t.length)?i:0):l.setStart(g,0):u?l.setEndBefore(g):l.setStartBefore(g);let{startContainer:_,startOffset:w,endContainer:k,endOffset:S}=l;u?a.setBaseAndExtent(_,w,k,S):a.setBaseAndExtent(k,S,_,w)}onCopyNormalizeSelectionBound(e){let{s:t,editor:i,o:n}=this.j;!n.select.normalizeSelectionBeforeCutAndCopy||t.isCollapsed()||(!e||e.isTrusted&&r.Dom.isNode(e.target)&&r.Dom.isOrContains(i,e.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"],this.__selectedMediaStyle="",this.__pressTarget=null,this.__pressBesideRow=null}}p([(0,o.watch)([":change",":readonly",":afterSetMode"]),o.autobind],m.prototype,"__markSelectedMedia",null),p([o.autobind],m.prototype,"onStartSelection",null),p([(0,o.watch)(["ow:mousedown","ow:touchstart"])],m.prototype,"onOutsidePress",null),p([(0,o.watch)("ow:click")],m.prototype,"onOutsideClick",null),p([(0,o.watch)([":beforeCommandCut"])],m.prototype,"beforeCommandCut",null),p([(0,o.watch)([":beforeCommandSelectall"])],m.prototype,"beforeCommandSelectAll",null),p([(0,o.watch)([":click"])],m.prototype,"onClickRightOfNestedListItem",null),p([(0,o.watch)(":mousedown")],m.prototype,"onMouseDownBesideTableRow",null),p([o.autobind],m.prototype,"__onDragFromRow",null),p([o.autobind],m.prototype,"__onReleaseFromRow",null),p([o.autobind],m.prototype,"__onDblClickBesideRow",null),p([(0,o.watch)([":click"])],m.prototype,"onClickKeepPendingFormat",null),p([(0,o.watch)([":click"])],m.prototype,"onTripleClickNormalizeSelection",null),p([(0,o.watch)([":dblclick"])],m.prototype,"onDblClickPastLineEnd",null),p([(0,o.watch)([":mouseup"])],m.prototype,"onMouseUpOnUneditableLine",null),p([(0,o.watch)([":copy",":cut"])],m.prototype,"onCopyNormalizeSelectionBound",null);let g=e=>r.Dom.isElement(e)&&"false"===e.getAttribute("contenteditable"),v=e=>{var t;return g(e)?"":r.Dom.isText(e)?null!=(t=e.nodeValue)?t:"":(0,a.toArray)(e.childNodes).map(v).join("")};function b(e,t){let i=e.commonAncestorContainer;return r.Dom.isElement(i)?(0,a.toArray)(i.querySelectorAll('[contenteditable="false"]')).filter(i=>{if(!e.intersectsNode(i))return!1;let n=i.ownerDocument.createRange();return n.selectNode(i),0>=e.compareBoundaryPoints(Range.START_TO_START,n)&&e.compareBoundaryPoints(Range.END_TO_END,n)>=0&&!r.Dom.closest(i.parentNode,g,t)}):[]}function y(e){let{startContainer:t,startOffset:i,endContainer:n,endOffset:o}=e;return t===n&&o-i==1&&r.Dom.isElement(t.childNodes[i])}s.pluginSystem.add("select",m)},80792:function(e,t,i){var n=i(6441);n.Config.prototype.minWidth=200,n.Config.prototype.maxWidth="100%",n.Config.prototype.minHeight=200,n.Config.prototype.maxHeight="auto",n.Config.prototype.saveHeightInStorage=!1},45927:function(e,t,i){var n=i(65478),o=i(580),r=i(84767),s=i(41180),a=i(20356);i(80792);var l=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class c extends a.Plugin{afterInit(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:e}=this;if(e.o.inline)return;let{height:t}=e.o;if(e.o.saveHeightInStorage&&"auto"!==t){let i=e.storage.get("height");i&&(t=i)}(0,s.css)(e.editor,{minHeight:"100%"}),(0,s.css)(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}__setHeight(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,r.isNumber)(e)){let{minHeight:t,maxHeight:i}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(i)&&i<e&&(e=i)}(0,s.css)(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__setWidth(e){let{clientHeight:t,clientWidth:i}=this.j.container;if((0,r.isNumber)(e)){let{minWidth:t,maxWidth:i}=this.j.o;(0,r.isNumber)(t)&&t>e&&(e=t),(0,r.isNumber)(i)&&e>i&&(e=i)}(0,s.css)(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:t,clientWidth:i})}__getNotWorkHeight(){var e;let t=this.j.toolbarContainer;return(t&&this.j.container.contains(t)?t.offsetHeight:0)+((null==(e=this.j.statusbar)?void 0:e.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:e,clientWidth:t}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let i=((0,s.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,r.isNumber)(i)&&i>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(e=>{e&&(0,s.css)(e,"minHeight",i)}),this.j.e.fire("setMinHeight",i)),(0,r.isNumber)(this.j.o.maxHeight)){let e=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,s.css)(t,"maxHeight",e)}),this.j.e.fire("setMaxHeight",e)}if(this.j.container){let e="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,s.css)(this.j.workplace,"height",e),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,r.isNumber)(e)?e+"px":e)}let{clientHeight:n,clientWidth:o}=this.j.container;(e!==n||t!==o)&&this.j.e.fire(this.j,"resize")}beforeDestruct(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}l([(0,n.throttle)()],c.prototype,"__initialize",null),l([n.autobind],c.prototype,"__setHeight",null),l([n.autobind],c.prototype,"__setWidth",null),l([n.autobind],c.prototype,"__resizeWorkspaceImd",null),o.pluginSystem.add("size",c)},36204:function(e,t,i){var n=i(82758),o=i(12153),r=i(6441),s=i(35599);r.Config.prototype.beautifyHTML=!n.IS_IE,r.Config.prototype.sourceEditor="ace",r.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},r.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],r.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.Icon.set("source",s.default),r.Config.prototype.controls.source={mode:n.MODE_SPLIT,exec(e){e.toggleMode()},isActive:e=>e.getRealMode()===n.MODE_SOURCE,tooltip:"Change mode"}},60031:function(e,t,i){i.d(t,{AceEditor:function(){return l}});var n=i(82758),o=i(45219),r=i(2748),s=i(21537),a=i(23370);class l extends a.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(e){return this.instance.session.getLine(e).length}getLastColumnIndices(){let e=this.instance.session.getLength(),t=[],i=0;for(let n=0;e>n;n++)i+=this.getLastColumnIndex(n),n>0&&(i+=1),t[n]=i;return t}getRowColumnIndices(e){let t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};let i=1;for(let n=1;n<t.length;n++)e>t[n]&&(i=n+1);let n=e-t[i-1]-1;return{row:i,column:n}}setSelectionRangeIndices(e,t){let i=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:i,end:n})}getIndexByRowColumn(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}init(e){let t=()=>{if(void 0!==this.instance||!this.aceExists())return;let t=this.j.c.div("jodit-source__mirror-fake");r.Dom.append(this.container,t);let i=e.ow.ace;this.instance=i.edit(t),"rtl"===e.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setOptions(e.o.sourceEditorNativeOptions),this.instance.setTheme(e.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.__onChange),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),e.getRealMode()!==n.MODE_WYSIWYG&&this.setValue(this.getValue());let o=this.j.async.throttle(()=>{if(e.isInDestruct||e.getMode()===n.MODE_WYSIWYG)return;let t=this.instance.isFocused();"auto"!==e.o.height?this.instance.setOption("maxLines",e.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),t&&this.focus()},2*this.j.defaultTimeout);e.e.on(e,"resize",o).on("afterResize afterSetMode",o),o(),this.onReady()},i=!1,o=()=>{if(!e.isInDestruct&&(e.getRealMode()===n.MODE_SOURCE||e.getMode()===n.MODE_SPLIT)){if(!this.aceExists()){i||(i=!0,(0,s.loadNext)(e,e.o.sourceEditorCDNUrlsJS).then(o).catch(()=>null));return}t()}};e.e.on("afterSetMode",o),o()}destruct(){var e,t;this.instance.off("change",this.__onChange),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(t=null==(e=this.j)?void 0:e.events)||t.off("aceInited.source")}setValue(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let t=this.j.e.fire("beautifyHTML",e);(0,s.isString)(t)&&(e=t)}this.__settingValue=!0;try{this.instance.setValue(e)}finally{this.__settingValue=!1}this.instance.clearSelection()}__onChange(){this.__settingValue||this.toWYSIWYG()}getValue(){return this.instance.getValue()}setReadOnly(e){this.instance.setReadOnly(e)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}getSelectionEnd(){let e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(e){let t=this.instance.selection.getCursor(),i=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:i},!1)}setSelectionRange(e,t){this.setSelectionRangeIndices(e,t)}setPlaceHolder(e){}replaceUndoManager(){let{history:e}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec(){e.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=e=>{this.j.e.fire("blur",e)},this.proxyOnFocus=e=>{this.j.e.fire("focus",e)},this.proxyOnMouseDown=e=>{this.j.e.fire("mousedown",e)},this.__settingValue=!1}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([o.autobind],l.prototype,"__onChange",null)},7483:function(e,t,i){i.d(t,{TextAreaEditor:function(){return a}});var n=i(2748),o=i(29960),r=i(41180),s=i(23370);class a extends s.SourceEditor{init(e){this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),n.Dom.append(this.container,this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",e=>{(0,r.css)(this.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",t=>{e.e.fire(t.type,t)}),this.autosize(),this.onReady()}destruct(){n.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(e){this.instance.value=e}insertRaw(e){let t=this.getValue();if(this.getSelectionStart()>=0){let i=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,i)+e+t.substring(n,t.length))}else this.setValue(t+e)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(e,t=e){this.instance.setSelectionRange(e,t)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(e){(0,o.attr)(this.instance,"placeholder",e)}setReadOnly(e){(0,o.attr)(this.instance,"readonly",e?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:e}=this.jodit;this.j.e.on(this.instance,"keydown",t=>{if((t.ctrlKey||t.metaKey)&&"z"===t.key)return t.shiftKey?e.redo():e.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{(0,r.css)(this.instance,"height","auto"),(0,r.css)(this.instance,"height",this.instance.scrollHeight)},this.j.defaultTimeout,!0)}}},52968:function(e,t,i){i.d(t,{AceEditor:function(){return n.AceEditor},TextAreaEditor:function(){return o.TextAreaEditor}});var n=i(60031),o=i(7483)},70022:function(e,t,i){i.d(t,{createSourceEditor:function(){return r}});var n=i(21537),o=i(52968);function r(e,t,i,r,s){let a;if((0,n.isFunction)(e))a=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){a=new o.AceEditor(t,i,r,s);break}default:a=new o.TextAreaEditor(t,i,r,s)}return a.init(t),a.onReadyAlways(()=>{a.setReadOnly(t.o.readonly)}),a}},23370:function(e,t,i){i.d(t,{SourceEditor:function(){return n}});class n{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(e){var t;this.isReady?e():null==(t=this.j.events)||t.on(this,"ready",e)}constructor(e,t,i,n){this.jodit=e,this.container=t,this.toWYSIWYG=i,this.fromWYSIWYG=n,this.className="",this.isReady=!1}}},52951:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(50911);i(36204);var c=i(70022),u=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class d extends l.Plugin{onInsertHTML(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(t=this.sourceEditor)||t.insertRaw(e),this.toWYSIWYG(),!1}fromWYSIWYG(e=!1){if(!this.__lock||!0===e){this.__lock=!0;let e=this.j.getEditorValue(!1,n.SOURCE_CONSUMER);e!==this.getMirrorValue()&&this.setMirrorValue(e),this.__filledValue=this.getMirrorValue(),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}getNormalPosition(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,e=>{let t="";for(let i=0;i<e.length;i+=1)t+=n.INVISIBLE_SPACE;return t});e>0&&t[e]===n.INVISIBLE_SPACE;)e--;let i=e;for(;i>0;){if("<"===t[--i]&&void 0!==t[i+1]&&t[i+1].match(/[\w/]+/i))return i;if(">"===t[i])break}return e}clnInv(e){return e.replace(n.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===n.MODE_SOURCE)return null==(t=this.sourceEditor)||t.selectAll(),!1}getMirrorValue(){var e;return(null==(e=this.sourceEditor)?void 0:e.getValue())||""}setMirrorValue(e){var t;null==(t=this.sourceEditor)||t.setValue(e)}setFocusToMirror(){var e;let t=this.j.od.activeElement;(!t||t===this.j.od.body||this.j.container.contains(t))&&(null==(e=this.sourceEditor)||e.focus())}saveSelection(){if(this.j.getRealMode()===n.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let t=this.j.s.marker(!0),i=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,i)+this.clnInv(t.outerHTML)+e.substring(i))}else{let t=this.j.s.marker(!0),i=this.j.s.marker(!1),n=this.getNormalPosition(this.getSelectionStart(),e),o=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,n)+this.clnInv(t.outerHTML)+e.slice(n,o)+this.clnInv(i.outerHTML)+e.slice(o))}this.toWYSIWYG()}}removeSelection(){let e,t;if(this.j.getRealMode()===n.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let i=this.getMirrorValue();try{if(i=i.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let e=this.j.e.fire("beautifyHTML",i);(0,a.isString)(e)&&(i=e)}if(t=e=i.indexOf(this.tempMarkerStart),i=i.replace(this.tempMarkerStartReg,""),-1!==e){let e=i.indexOf(this.tempMarkerEnd);-1!==e&&(t=e)}i=i.replace(this.tempMarkerEndReg,"")}finally{i=i.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(i),this.setMirrorSelectionRange(e,t),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(e,t){var i;null==(i=this.sourceEditor)||i.setSelectionRange(e,t)}onReadonlyReact(){var e;null==(e=this.sourceEditor)||e.setReadOnly(this.j.o.readonly)}afterInit(e){if(this.mirrorContainer=e.c.div("jodit-source"),r.Dom.append(e.workplace,this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",()=>{r.Dom.append(e.workplace,this.mirrorContainer)}),this.sourceEditor=(0,c.createSourceEditor)("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",e=>{var t;e.key===n.KEY_ESC&&(null==(t=this.sourceEditor)?void 0:t.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",e=>{var t;null==(t=this.sourceEditor)||t.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",e=>e),e.o.beautifyHTML){let t=()=>{var t;if(e.isInDestruct)return!1;let i=e.ow.html_beautify;return!!i&&!e.isInDestruct&&(null==(t=e.events)||t.off("beautifyHTML").on("beautifyHTML",e=>i(e)),!0)};if(!t()){let i=!1,o=()=>{i||e.getMode()!==n.MODE_SOURCE&&e.getMode()!==n.MODE_SPLIT||(i=!0,(0,a.loadNext)(e,e.o.beautifyHTMLCDNUrlsJS).then(()=>{t()&&this.beautifyUntouched()},()=>null))};e.e.on("afterSetMode.source",o),o()}}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}syncValueFromWYSIWYG(e=!1){let t=this.j;(t.getMode()===n.MODE_SPLIT||t.getMode()===n.MODE_SOURCE)&&this.fromWYSIWYG(e)}initSourceEditor(e){var t;if("area"!==e.o.sourceEditor){let t=(0,c.createSourceEditor)(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);t.onReadyAlways(()=>{var i;this.takeOver(t),null==(i=e.events)||i.fire("sourceEditorReady",e)})}else null==(t=this.sourceEditor)||t.onReadyAlways(()=>{var t;this.syncValueFromWYSIWYG(!0),null==(t=e.events)||t.fire("sourceEditorReady",e)})}takeOver(e){let t=this.sourceEditor;if(!t||t===e){this.sourceEditor=e,this.syncValueFromWYSIWYG(!0);return}let i=t.getValue(),n=t.getSelectionStart(),o=t.getSelectionEnd(),r=t.isFocused,s=i===this.__filledValue;t.destruct(),this.sourceEditor=e,s?this.syncValueFromWYSIWYG(!0):(e.setValue(i),this.toWYSIWYG()),n>=0&&e.setSelectionRange(n,o),r&&e.focus()}beautifyUntouched(){var e,t;let i=this.getMirrorValue();if(this.j.o.editHTMLDocumentMode||!i||i!==this.__filledValue)return;let n=this.j.e.fire("beautifyHTML",i);if((0,a.isString)(n)&&n!==i){let i=null==(e=this.sourceEditor)?void 0:e.isFocused;this.setMirrorValue(n),this.__filledValue=this.getMirrorValue(),i&&(null==(t=this.sourceEditor)||t.focus())}}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),r.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.__filledValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionStart())?t:0},this.getSelectionEnd=()=>{var e,t;return null!=(t=null==(e=this.sourceEditor)?void 0:e.getSelectionEnd())?t:0}}}u([(0,o.watch)(":insertHTML.source")],d.prototype,"onInsertHTML",null),u([o.autobind],d.prototype,"fromWYSIWYG",null),u([o.autobind],d.prototype,"toWYSIWYG",null),u([o.autobind],d.prototype,"getNormalPosition",null),u([(0,o.watch)(":beforeCommand.source")],d.prototype,"onSelectAll",null),u([(0,o.watch)(":beforeSetMode.source")],d.prototype,"saveSelection",null),u([(0,o.watch)(":afterSetMode.source")],d.prototype,"removeSelection",null),u([o.autobind],d.prototype,"setMirrorSelectionRange",null),u([(0,o.watch)(":readonly.source")],d.prototype,"onReadonlyReact",null),u([o.autobind],d.prototype,"syncValueFromWYSIWYG",null),s.pluginSystem.add("source",d)},35599:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m6.5 6-5 6 5 6m11-12 5 6-5 6M14 3l-4 18"/> </g> </svg> '},46614:function(e,t,i){var n=i(87612),o=i(70799),r=i(29960),s=i(86583),a=i(12153),l=i(6441),c=i(26532),u=i(93602),d=i(75259);l.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},a.Icon.set("speech-recognize",d.default),l.Config.prototype.controls.speechRecognize={isVisible:e=>!!e.o.speechRecognize.api,isActive(e,t){let i=(0,s.dataBind)(e,"speech");return!!(null==i?void 0:i.isEnabled)},isDisabled:e=>!e.o.speechRecognize.api,exec(e,t,{button:i,control:a}){var l;let{api:c,lang:d,continuous:h,interimResults:p,sound:f}=e.o.speechRecognize;if(!c)return void e.alert("Speech recognize API unsupported in your browser");let m=(0,s.dataBind)(e,"speech");if(!m){let t=new c;(m=new u.RecognizeManager(e.async,t)).lang=(0,o.isString)(d)?d:null!=(l=(0,r.attr)(e.od.documentElement,"lang"))?l:void 0,m.continuous=h,m.interimResults=p,m.sound=f,(0,s.dataBind)(e,"speech",m),m.on("pulse",e=>{i.setMod("pulse",e)}),m.on("result",t=>e.e.fire("speechRecognizeResult",t)),m.on("progress",t=>e.e.fire("speechRecognizeProgressResult",t)),m.on("error",t=>e.message.error(t)),e.hookStatus("beforeDestruct",()=>{(0,s.dataBind)(e,"speech",null),m.destruct()})}if(a.args){let e=a.args[0];if((0,n.isBoolean)(m[e])){m[e]=!m[e],m.isEnabled&&m.restart();return}}m.toggle(),m.isEnabled&&i.setMod("pulse",!0),i.state.activated=m.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(e,t,i){var n;let o=(0,s.dataBind)(e,"speech"),r=null!=(n=null==o?void 0:o[t])?n:e.o.speechRecognize[t];return`<span class='jodit-speech-recognize__list-item'><input ${r?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${i}</span>`}}},26532:function(e,t,i){var n=i(82758);let o=n.globalWindow?n.globalWindow.SpeechRecognition||n.globalWindow.webkitSpeechRecognition:void 0;i.d(t,["SpeechRecognition",0,o])},54076:function(e,t,i){i.d(t,{execSpellCommand:function(){return n}});function n(e,t){let[i,n]=t.split("::");"open"===i.toLowerCase()&&n&&/^(javascript:|data:|vbscript:)/i.test(n.trim())||e.execCommand(i,null,n)}},93602:function(e,t,i){i.d(t,{RecognizeManager:function(){return a}});var n=i(65478),o=i(72757),r=i(37643),s=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class a extends o.Eventify{set lang(e){this._lang=e,this._api.lang=e}get lang(){return this._lang}set continuous(e){this._continuous=e,this._api.continuous=e}get continuous(){return this._continuous}set interimResults(e){this._interimResults=e,this._api.interimResults=e}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,r.closeSound)(this),a._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,a._instances.forEach(e=>{e!==this&&e.stop()});try{this._api.start()}catch(e){this._onError(e),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(e,t){return this._api.addEventListener(e,t),this}__off(e,t){return this._api.removeEventListener(e,t),this}_onResults(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}_onProgress(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(let t=0;t<e.results.length;t++){let i=e.results.item(t);if(i.length){let{transcript:e}=i.item(0);this.__interimResults+=e}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),("language-unavailable"===e.error||"language-not-supported"===e.error)&&this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}_makeSound(e){this.sound&&(0,r.sound)(this,{frequency:e})}constructor(e,t){super(),this.async=e,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=e=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(940)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=t,a._instances.add(this)}}a._instances=new Set,s([n.autobind],a.prototype,"_onResults",null),s([n.autobind],a.prototype,"_onProgress",null),s([n.autobind],a.prototype,"_onError",null)},37643:function(e,t,i){i.d(t,{closeSound:function(){return s},sound:function(){return r}});var n=i(82758);let o=new WeakMap;function r(e,{sec:t=.1,frequency:i=440,gain:s=.1,type:a="sine"}={}){let l=function(e){if(!n.globalWindow)return null;let t=o.get(e);if(t&&"closed"!==t.state)return t;let i=n.globalWindow.AudioContext||n.globalWindow.webkitAudioContext;if(!i)return null;let r=new i;return o.set(e,r),r}(e);if(!l)return;let c=l.createGain(),u=l.createOscillator();u.type=a,u.frequency.value=i,c.gain.value=s,u.connect(c),c.connect(l.destination),u.start(),u.stop(l.currentTime+t)}function s(e){let t=o.get(e);t&&(o.delete(e),"closed"!==t.state&&t.close())}},71705:function(e){e.exports={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(e){e.exports={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"}},34945:function(e){e.exports={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(e){e.exports={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(e){e.exports={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(e){e.exports={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"}},59302:function(e){e.exports={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"}},94141:function(e){e.exports={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(e){e.exports={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",Sound:"Hang","Interim Results":"Időközi Eredmények"}},80651:function(e){e.exports={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(A,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(x,2))},fi:function(){return l||(l=i.t(P,2))},fr:function(){return c||(c=i.t(L,2))},he:function(){return u||(u=i.t(R,2))},hu:function(){return d||(d=i.t(z,2))},id:function(){return h||(h=i.t(M,2))},it:function(){return p||(p=i.t(O,2))},ja:function(){return f||(f=i.t(N,2))},ko:function(){return m||(m=i.t(B,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return v||(v=i.t(H,2))},no:function(){return b||(b=i.t(U,2))},pl:function(){return y||(y=i.t(V,2))},pt_br:function(){return _||(_=i.t(W,2))},ru:function(){return w||(w=i.t(K,2))},sk:function(){return k||(k=i.t(Y,2))},tr:function(){return S||(S=i.t($,2))},ua:function(){return C||(C=i.t(G,2))},zh_cn:function(){return E||(E=i.t(J,2))},zh_tw:function(){return D||(D=i.t(q,2))}});var n,o,r,s,a,l,c,u,d,h,p,f,m,g,v,b,y,_,w,k,S,C,E,D,I=i(71705),T=i(89930),A=i(34945),j=i(63134),x=i(66835),P=i(1115),L=i(59302),R=i(94141),z=i(24877),M=i(80651),O=i(62395),N=i(16407),B=i(37272),F=i(22113),H=i(22432),U=i(17081),V=i(30798),W=i(8661),K=i(19147),Y=i(76220),$=i(93620),G=i(40372),J=i(69874),q=i(88774)},62395:function(e){e.exports={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(e){e.exports={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(e){e.exports={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(e){e.exports={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(e){e.exports={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(e){e.exports={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(e){e.exports={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(e){e.exports={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"}},19147:function(e){e.exports={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},76220:function(e){e.exports={newline:"nový riadok",delete:"vymazať",space:"medzera","Speech Recognize":"Rozpoznávanie reči",Sound:"Zvuk","Interim Results":"Predbežné výsledky"}},93620:function(e){e.exports={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"}},40372:function(e){e.exports={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(e){e.exports={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(e){e.exports={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(e,t,i){var n=i(37133),o=i(2748),r=i(580),s=i(37790),a=i(50911);i(46614);var l=i(2303),c=i(54076),u=i(90492),d=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s};class h extends a.Plugin{afterInit(e){let{commands:t}=e.o.speechRecognize;t&&((0,r.extendLang)(u),(0,s.keys)(t,!1).forEach(i=>{i.split("|").forEach(n=>{n=n.trim().toLowerCase(),this._commandToWord[n]=t[i];let o=e.i18n(n);o!==n&&o.split("|").forEach(e=>{this._commandToWord[e.trim().toLowerCase()]=t[i].trim()})})}))}beforeDestruct(e){o.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(e){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),o.Dom.append(this.j.workplace,this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{o.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}onSpeechRecognizeResult(e){this.j.async.clearTimeout(this.__hidePopupTimeout),o.Dom.safeRemove(this.messagePopup);let{j:t}=this,{s:i}=t;if(!this._checkCommand(e)){let{range:n}=i,r=i.current();if(i.isCollapsed()&&o.Dom.isText(r)&&o.Dom.isOrContains(t.editor,r)&&r.nodeValue){let o=r.nodeValue;r.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+e,n.setStartAfter(r),i.selectRange(n),t.synchronizeValues()}else i.insertHTML(e)}}_checkCommand(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&((0,c.execSpellCommand)(this.j,this._commandToWord[e]),!0)}constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}}d([(0,n.watch)(":speechRecognizeProgressResult")],h.prototype,"onSpeechRecognizeProgressResult",null),d([(0,n.watch)(":speechRecognizeResult")],h.prototype,"onSpeechRecognizeResult",null),l.Jodit.plugins.add("speech-recognize",h)},75259:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <rect x="9" y="2" width="6" height="13" rx="3"/><path d="M5 10v2a7 7 0 0 0 14 0v-2M12 19v3m-4 0h8"/> </g> </svg> '},99085:function(e,t,i){var n=i(12153),o=i(6441),r=i(10937);o.Config.prototype.spellcheck=!1,n.Icon.set("spellcheck",r.default),o.Config.prototype.controls.spellcheck={isActive:e=>e.o.spellcheck,icon:r.default,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},28906:function(e){e.exports={Spellcheck:"التدقيق الإملائي"}},24351:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},32806:function(e){e.exports={Spellcheck:"Rechtschreibprüfung"}},77725:function(e){e.exports={Spellcheck:"Corrección ortográfica"}},26428:function(e){e.exports={Spellcheck:"غلطیابی املایی"}},42820:function(e){e.exports={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(e){e.exports={Spellcheck:"Vérification Orthographique"}},98370:function(e){e.exports={Spellcheck:"בדיקת איות"}},44850:function(e){e.exports={Spellcheck:"Helyesírás-ellenőrzés"}},3636:function(e){e.exports={Spellcheck:"Spellchecking"}},26529:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n||(n=i.t(I,2))},cs_cz:function(){return o||(o=i.t(T,2))},de:function(){return r||(r=i.t(A,2))},es:function(){return s||(s=i.t(j,2))},fa:function(){return a||(a=i.t(x,2))},fi:function(){return l||(l=i.t(P,2))},fr:function(){return c||(c=i.t(L,2))},he:function(){return u||(u=i.t(R,2))},hu:function(){return d||(d=i.t(z,2))},id:function(){return h||(h=i.t(M,2))},it:function(){return p||(p=i.t(O,2))},ja:function(){return f||(f=i.t(N,2))},ko:function(){return m||(m=i.t(B,2))},mn:function(){return g||(g=i.t(F,2))},nl:function(){return v||(v=i.t(H,2))},no:function(){return b||(b=i.t(U,2))},pl:function(){return y||(y=i.t(V,2))},pt_br:function(){return _||(_=i.t(W,2))},ru:function(){return w||(w=i.t(K,2))},sk:function(){return k||(k=i.t(Y,2))},tr:function(){return S||(S=i.t($,2))},ua:function(){return C||(C=i.t(G,2))},zh_cn:function(){return E||(E=i.t(J,2))},zh_tw:function(){return D||(D=i.t(q,2))}});var n,o,r,s,a,l,c,u,d,h,p,f,m,g,v,b,y,_,w,k,S,C,E,D,I=i(28906),T=i(24351),A=i(32806),j=i(77725),x=i(26428),P=i(42820),L=i(60373),R=i(98370),z=i(44850),M=i(3636),O=i(73220),N=i(55776),B=i(13995),F=i(6402),H=i(1879),U=i(1322),V=i(53361),W=i(70824),K=i(65140),Y=i(60407),$=i(42247),G=i(68891),J=i(63195),q=i(42107)},73220:function(e){e.exports={Spellcheck:"Controllo ortografico"}},55776:function(e){e.exports={Spellcheck:"スペルチェック"}},13995:function(e){e.exports={Spellcheck:"맞춤법 검사"}},6402:function(e){e.exports={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(e){e.exports={Spellcheck:"Spellingcontrole"}},1322:function(e){e.exports={Spellcheck:"Stavekontroll"}},53361:function(e){e.exports={Spellcheck:"Sprawdzanie pisowni"}},70824:function(e){e.exports={Spellcheck:"Verificação ortográfica"}},65140:function(e){e.exports={Spellcheck:"Проверка орфографии"}},60407:function(e){e.exports={Spellcheck:"Kontrola pravopisu"}},42247:function(e){e.exports={Spellcheck:"Yazım denetimi"}},68891:function(e){e.exports={Spellcheck:"Перевірка орфографії"}},63195:function(e){e.exports={Spellcheck:"拼写检查"}},42107:function(e){e.exports={Spellcheck:"拼字檢查"}},43809:function(e,t,i){var n=i(65478),o=i(580),r=i(29960),s=i(50911);i(99085);var a=i(26529);class l extends s.Plugin{afterInit(e){e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,r.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(e){}constructor(e){super(e),this.buttons=[{group:"state",name:"spellcheck"}],(0,o.extendLang)(a)}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([n.autobind],l.prototype,"toggleSpellcheck",null),o.pluginSystem.add("spellcheck",l)},10937:function(e,t){t.default='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="m3 14 5-11 5 11M5 10h6m0 8 3 3 7-8"/> </g> </svg> '},99649:function(e,t,i){var n=i(6441);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.countHTMLChars=!1,n.Config.prototype.countTextSpaces=!1,n.Config.prototype.showWordsCounter=!0},7309:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(20356);i(99649);class a extends s.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){o.Dom.safeRemove(this.charCounter),o.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{let e=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let t;t=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):e.replace((0,n.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",t.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",e.replace((0,n.INVISIBLE_SPACE_REG_EXP)(),"").split((0,n.SPACE_REG_EXP)()).filter(e=>e.length).length))},this.j.defaultTimeout)}}r.pluginSystem.add("stat",a)},48038:function(e,t,i){var n=i(6441);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0},68687:function(e,t,i){var n=i(82758),o=i(65478),r=i(2748),s=i(580),a=i(21537),l=i(20356);i(48038);let c=!n.IS_ES_NEXT&&n.IS_IE;class u extends l.Plugin{afterInit(e){e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:e}=this;if(!e.o.toolbarSticky||!e.o.toolbar)return;let t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,i=(0,a.offset)(e.container,e,e.od,!0),o=e.getMode()===n.MODE_WYSIWYG&&t+e.o.toolbarStickyOffset>i.top&&t+e.o.toolbarStickyOffset<i.top+i.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===o)return;let r=e.toolbarContainer;r&&(o?this.addSticky(r):this.removeSticky(r)),e.e.fire("toggleSticky",o)}__isMobile(){let{j:e}=this;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}beforeDestruct(e){r.Dom.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=e=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),r.Dom.before(e,this.__dummyBox)},this.addSticky=e=>{this.__isToolbarStuck||(c&&!this.__dummyBox&&this.__createDummy(e),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,a.css)(e,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,a.css)(this.__dummyBox,{height:e.offsetHeight})},this.removeSticky=e=>{this.__isToolbarStuck&&((0,a.css)(e,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}}!function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);r>3&&s&&Object.defineProperty(t,i,s)}([(0,o.throttle)()],u.prototype,"__onScroll",null),s.pluginSystem.add("sticky",u)},87394:function(e,t,i){var n=i(2748),o=i(12153),r=i(6441),s=i(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(e,t,i){let o=e.e.fire("generateSpecialCharactersTable.symbols");if(o){if(e.o.usePopupForSpecialCharacters){let t=e.c.div();return t.classList.add("jodit-symbols"),n.Dom.append(t,o),e.e.on(o,"close_dialog",i),t}e.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);let t=n.Dom.first(o,e=>n.Dom.isTag(e,"a"));t&&t.focus()}}}},20741:function(e){e.exports={symbols:"رمز"}},3958:function(e){e.exports={symbols:"symbol"}},53437:function(e){e.exports={symbols:"Symbol"}},56882:function(e){e.exports={symbols:"Símbolo"}},75703:function(e){e.exports={symbols:"سمبل"}},49759:function(e){e.exports={symbols:"Symbolit"}},44730:function(e){e.exports={symbols:"caractère"}},70945:function(e){e.exports={symbols:"תו מיוחד"}},49841:function(e){e.exports={symbols:"Szimbólum"}},33295:function(e){e.exports={symbols:"simbol"}},32824:function(e,t,i){i.r(t),i.d(t,{ar:function(){return n||(n=i.t(E,2))},cs_cz:function(){return o||(o=i.t(D,2))},de:function(){return r||(r=i.t(I,2))},es:function(){return s||(s=i.t(T,2))},fa:function(){return a||(a=i.t(A,2))},fi:function(){return l||(l=i.t(j,2))},fr:function(){return c||(c=i.t(x,2))},he:function(){return u||(u=i.t(P,2))},hu:function(){return d||(d=i.t(L,2))},id:function(){return h||(h=i.t(R,2))},it:function(){return p||(p=i.t(z,2))},ja:function(){return f||(f=i.t(M,2))},ko:function(){return m||(m=i.t(O,2))},mn:function(){return g||(g=i.t(N,2))},nl:function(){return v||(v=i.t(B,2))},pl:function(){return b||(b=i.t(F,2))},pt_br:function(){return y||(y=i.t(H,2))},ru:function(){return _||(_=i.t(U,2))},tr:function(){return w||(w=i.t(V,2))},ua:function(){return k||(k=i.t(W,2))},zh_cn:function(){return S||(S=i.t(K,2))},zh_tw:function(){return C||(C=i.t(Y,2))}});var n,o,r,s,a,l,c,u,d,h,p,f,m,g,v,b,y,_,w,k,S,C,E=i(20741),D=i(3958),I=i(53437),T=i(56882),A=i(75703),j=i(49759),x=i(44730),P=i(70945),L=i(49841),R=i(33295),z=i(47615),M=i(83059),O=i(22396),N=i(58285),B=i(51804),F=i(53650),H=i(41369),U=i(57855),V=i(44328),W=i(91080),K=i(89702),Y=i(66434)},47615:function(e){e.exports={symbols:"Simbolo"}},83059:function(e){e.exports={symbols:"symbol"}},22396:function(e){e.exports={symbols:"기호"}},58285:function(e){e.exports={symbols:"тэмдэгт"}},51804:function(e){e.exports={symbols:"symbool"}},53650:function(e){e.exports={symbols:"symbol"}},41369:function(e){e.exports={symbols:"Símbolo"}},57855:function(e){e.exports={symbols:"символ"}},44328:function(e){e.exports={symbols:"Sembol"}},91080:function(e){e.exports={symbols:"символ"}},89702:function(e){e.exports={symbols:"符号"}},66434:function(e){e.exports={symbols:"符號"}},59495:function(e,t,i){var n=i(82758),o=i(2748),r=i(580),s=i(43555),a=i(20356);i(87394);var l=i(32824);class c extends a.Plugin{afterInit(e){e.e.on("generateSpecialCharactersTable.symbols",()=>{let t=e.c.fromHTML(`<div class="jodit-symbols__container">
279
279
  <div class="jodit-symbols__container_table">
280
280
  <table class="jodit-symbols__table"><tbody></tbody></table>
281
281
  </div>