jodit-pro 4.14.2 → 4.14.3

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 (317) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.js +3 -3
  3. package/es2015/jodit.js +9 -5
  4. package/es2015/jodit.min.js +3 -3
  5. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  8. package/es2015/plugins/autocomplete/autocomplete.css +1 -1
  9. package/es2015/plugins/autocomplete/autocomplete.js +1 -1
  10. package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
  11. package/es2015/plugins/backup/backup.css +1 -1
  12. package/es2015/plugins/backup/backup.js +1 -1
  13. package/es2015/plugins/backup/backup.min.js +1 -1
  14. package/es2015/plugins/button-generator/button-generator.css +1 -1
  15. package/es2015/plugins/button-generator/button-generator.js +1 -1
  16. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  17. package/es2015/plugins/change-case/change-case.js +1 -1
  18. package/es2015/plugins/change-case/change-case.min.js +1 -1
  19. package/es2015/plugins/color-picker/color-picker.css +1 -1
  20. package/es2015/plugins/color-picker/color-picker.js +1 -1
  21. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  22. package/es2015/plugins/emoji/emoji.css +1 -1
  23. package/es2015/plugins/emoji/emoji.js +1 -1
  24. package/es2015/plugins/emoji/emoji.min.js +1 -1
  25. package/es2015/plugins/export-docs/export-docs.js +1 -1
  26. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  27. package/es2015/plugins/finder/finder.css +1 -1
  28. package/es2015/plugins/finder/finder.js +1 -1
  29. package/es2015/plugins/finder/finder.min.js +1 -1
  30. package/es2015/plugins/google-maps/google-maps.css +1 -1
  31. package/es2015/plugins/google-maps/google-maps.js +1 -1
  32. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  33. package/es2015/plugins/google-search/google-search.js +1 -1
  34. package/es2015/plugins/google-search/google-search.min.js +1 -1
  35. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  36. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  37. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  38. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  39. package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
  40. package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
  41. package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
  42. package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  43. package/es2015/plugins/keyboard/keyboard.css +1 -1
  44. package/es2015/plugins/keyboard/keyboard.js +1 -1
  45. package/es2015/plugins/keyboard/keyboard.min.js +1 -1
  46. package/es2015/plugins/mobile-view/mobile-view.js +1 -1
  47. package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
  48. package/es2015/plugins/page-break/page-break.js +1 -1
  49. package/es2015/plugins/page-break/page-break.min.js +1 -1
  50. package/es2015/plugins/paste-code/paste-code.css +1 -1
  51. package/es2015/plugins/paste-code/paste-code.js +1 -1
  52. package/es2015/plugins/paste-code/paste-code.min.js +1 -1
  53. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  54. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  55. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  56. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  57. package/es2015/plugins/style/style.css +1 -1
  58. package/es2015/plugins/style/style.js +1 -1
  59. package/es2015/plugins/style/style.min.js +1 -1
  60. package/es2015/plugins/templates/templates.css +1 -1
  61. package/es2015/plugins/templates/templates.js +1 -1
  62. package/es2015/plugins/templates/templates.min.js +1 -1
  63. package/es2015/plugins/todo-list/todo-list.css +1 -1
  64. package/es2015/plugins/todo-list/todo-list.js +1 -1
  65. package/es2015/plugins/todo-list/todo-list.min.js +1 -1
  66. package/es2015/plugins/translate/translate.css +1 -1
  67. package/es2015/plugins/translate/translate.js +1 -1
  68. package/es2015/plugins/translate/translate.min.js +1 -1
  69. package/es2015/plugins/tune-block/tune-block.css +1 -1
  70. package/es2015/plugins/tune-block/tune-block.js +1 -1
  71. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  72. package/es2018/jodit.fat.min.js +3 -3
  73. package/es2018/jodit.min.js +3 -3
  74. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  75. package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
  76. package/es2018/plugins/backup/backup.min.js +1 -1
  77. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  78. package/es2018/plugins/change-case/change-case.min.js +1 -1
  79. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  80. package/es2018/plugins/emoji/emoji.min.js +1 -1
  81. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  82. package/es2018/plugins/finder/finder.min.js +1 -1
  83. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  84. package/es2018/plugins/google-search/google-search.min.js +1 -1
  85. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  86. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  87. package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  88. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  89. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  90. package/es2018/plugins/page-break/page-break.min.js +1 -1
  91. package/es2018/plugins/paste-code/paste-code.min.js +1 -1
  92. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  93. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  94. package/es2018/plugins/style/style.min.js +1 -1
  95. package/es2018/plugins/templates/templates.min.js +1 -1
  96. package/es2018/plugins/todo-list/todo-list.min.js +1 -1
  97. package/es2018/plugins/translate/translate.min.js +1 -1
  98. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  99. package/es2021/jodit.css +1 -1
  100. package/es2021/jodit.fat.min.js +3 -3
  101. package/es2021/jodit.js +9 -5
  102. package/es2021/jodit.min.js +3 -3
  103. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  104. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  105. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  106. package/es2021/plugins/autocomplete/autocomplete.css +1 -1
  107. package/es2021/plugins/autocomplete/autocomplete.js +1 -1
  108. package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
  109. package/es2021/plugins/backup/backup.css +1 -1
  110. package/es2021/plugins/backup/backup.js +1 -1
  111. package/es2021/plugins/backup/backup.min.js +1 -1
  112. package/es2021/plugins/button-generator/button-generator.css +1 -1
  113. package/es2021/plugins/button-generator/button-generator.js +1 -1
  114. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  115. package/es2021/plugins/change-case/change-case.js +1 -1
  116. package/es2021/plugins/change-case/change-case.min.js +1 -1
  117. package/es2021/plugins/color-picker/color-picker.css +1 -1
  118. package/es2021/plugins/color-picker/color-picker.js +1 -1
  119. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  120. package/es2021/plugins/emoji/emoji.css +1 -1
  121. package/es2021/plugins/emoji/emoji.js +1 -1
  122. package/es2021/plugins/emoji/emoji.min.js +1 -1
  123. package/es2021/plugins/export-docs/export-docs.js +1 -1
  124. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  125. package/es2021/plugins/finder/finder.css +1 -1
  126. package/es2021/plugins/finder/finder.js +1 -1
  127. package/es2021/plugins/finder/finder.min.js +1 -1
  128. package/es2021/plugins/google-maps/google-maps.css +1 -1
  129. package/es2021/plugins/google-maps/google-maps.js +1 -1
  130. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  131. package/es2021/plugins/google-search/google-search.js +1 -1
  132. package/es2021/plugins/google-search/google-search.min.js +1 -1
  133. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  134. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  135. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  136. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  137. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  138. package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
  139. package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
  140. package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  141. package/es2021/plugins/keyboard/keyboard.css +1 -1
  142. package/es2021/plugins/keyboard/keyboard.js +1 -1
  143. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  144. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  145. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  146. package/es2021/plugins/page-break/page-break.js +1 -1
  147. package/es2021/plugins/page-break/page-break.min.js +1 -1
  148. package/es2021/plugins/paste-code/paste-code.css +1 -1
  149. package/es2021/plugins/paste-code/paste-code.js +1 -1
  150. package/es2021/plugins/paste-code/paste-code.min.js +1 -1
  151. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  152. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  153. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  154. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  155. package/es2021/plugins/style/style.css +1 -1
  156. package/es2021/plugins/style/style.js +1 -1
  157. package/es2021/plugins/style/style.min.js +1 -1
  158. package/es2021/plugins/templates/templates.css +1 -1
  159. package/es2021/plugins/templates/templates.js +1 -1
  160. package/es2021/plugins/templates/templates.min.js +1 -1
  161. package/es2021/plugins/todo-list/todo-list.css +1 -1
  162. package/es2021/plugins/todo-list/todo-list.js +1 -1
  163. package/es2021/plugins/todo-list/todo-list.min.js +1 -1
  164. package/es2021/plugins/translate/translate.css +1 -1
  165. package/es2021/plugins/translate/translate.js +1 -1
  166. package/es2021/plugins/translate/translate.min.js +1 -1
  167. package/es2021/plugins/tune-block/tune-block.css +1 -1
  168. package/es2021/plugins/tune-block/tune-block.js +1 -1
  169. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  170. package/es2021.en/jodit.css +1 -1
  171. package/es2021.en/jodit.fat.min.js +3 -3
  172. package/es2021.en/jodit.js +9 -5
  173. package/es2021.en/jodit.min.js +3 -3
  174. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  175. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  176. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  177. package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
  178. package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
  179. package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
  180. package/es2021.en/plugins/backup/backup.css +1 -1
  181. package/es2021.en/plugins/backup/backup.js +1 -1
  182. package/es2021.en/plugins/backup/backup.min.js +1 -1
  183. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  184. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  185. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  186. package/es2021.en/plugins/change-case/change-case.js +1 -1
  187. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  188. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  189. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  190. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  191. package/es2021.en/plugins/emoji/emoji.css +1 -1
  192. package/es2021.en/plugins/emoji/emoji.js +1 -1
  193. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  194. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  195. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  196. package/es2021.en/plugins/finder/finder.css +1 -1
  197. package/es2021.en/plugins/finder/finder.js +1 -1
  198. package/es2021.en/plugins/finder/finder.min.js +1 -1
  199. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  200. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  201. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  202. package/es2021.en/plugins/google-search/google-search.js +1 -1
  203. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  204. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  205. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  206. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  207. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  208. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  209. package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
  210. package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
  211. package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  212. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  213. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  214. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  215. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  216. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  217. package/es2021.en/plugins/page-break/page-break.js +1 -1
  218. package/es2021.en/plugins/page-break/page-break.min.js +1 -1
  219. package/es2021.en/plugins/paste-code/paste-code.css +1 -1
  220. package/es2021.en/plugins/paste-code/paste-code.js +1 -1
  221. package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
  222. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  223. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  224. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  225. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  226. package/es2021.en/plugins/style/style.css +1 -1
  227. package/es2021.en/plugins/style/style.js +1 -1
  228. package/es2021.en/plugins/style/style.min.js +1 -1
  229. package/es2021.en/plugins/templates/templates.css +1 -1
  230. package/es2021.en/plugins/templates/templates.js +1 -1
  231. package/es2021.en/plugins/templates/templates.min.js +1 -1
  232. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  233. package/es2021.en/plugins/todo-list/todo-list.js +1 -1
  234. package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
  235. package/es2021.en/plugins/translate/translate.css +1 -1
  236. package/es2021.en/plugins/translate/translate.js +1 -1
  237. package/es2021.en/plugins/translate/translate.min.js +1 -1
  238. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  239. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  240. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  241. package/es5/jodit.css +2 -2
  242. package/es5/jodit.fat.min.js +2 -2
  243. package/es5/jodit.js +11 -5
  244. package/es5/jodit.min.css +2 -2
  245. package/es5/jodit.min.js +2 -2
  246. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
  247. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
  248. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
  249. package/es5/plugins/autocomplete/autocomplete.css +1 -1
  250. package/es5/plugins/autocomplete/autocomplete.js +1 -1
  251. package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
  252. package/es5/plugins/backup/backup.css +1 -1
  253. package/es5/plugins/backup/backup.js +1 -1
  254. package/es5/plugins/backup/backup.min.js +1 -1
  255. package/es5/plugins/button-generator/button-generator.css +1 -1
  256. package/es5/plugins/button-generator/button-generator.js +1 -1
  257. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  258. package/es5/plugins/change-case/change-case.js +1 -1
  259. package/es5/plugins/change-case/change-case.min.js +1 -1
  260. package/es5/plugins/color-picker/color-picker.css +1 -1
  261. package/es5/plugins/color-picker/color-picker.js +1 -1
  262. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  263. package/es5/plugins/emoji/emoji.css +1 -1
  264. package/es5/plugins/emoji/emoji.js +1 -1
  265. package/es5/plugins/emoji/emoji.min.js +1 -1
  266. package/es5/plugins/export-docs/export-docs.js +1 -1
  267. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  268. package/es5/plugins/finder/finder.css +1 -1
  269. package/es5/plugins/finder/finder.js +1 -1
  270. package/es5/plugins/finder/finder.min.js +1 -1
  271. package/es5/plugins/google-maps/google-maps.css +1 -1
  272. package/es5/plugins/google-maps/google-maps.js +1 -1
  273. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  274. package/es5/plugins/google-search/google-search.js +1 -1
  275. package/es5/plugins/google-search/google-search.min.js +1 -1
  276. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  277. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  278. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  279. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  280. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  281. package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
  282. package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
  283. package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
  284. package/es5/plugins/keyboard/keyboard.css +1 -1
  285. package/es5/plugins/keyboard/keyboard.js +1 -1
  286. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  287. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  288. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  289. package/es5/plugins/page-break/page-break.js +1 -1
  290. package/es5/plugins/page-break/page-break.min.js +1 -1
  291. package/es5/plugins/paste-code/paste-code.css +1 -1
  292. package/es5/plugins/paste-code/paste-code.js +1 -1
  293. package/es5/plugins/paste-code/paste-code.min.js +1 -1
  294. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  295. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  296. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  297. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  298. package/es5/plugins/style/style.css +1 -1
  299. package/es5/plugins/style/style.js +1 -1
  300. package/es5/plugins/style/style.min.js +1 -1
  301. package/es5/plugins/templates/templates.css +1 -1
  302. package/es5/plugins/templates/templates.js +1 -1
  303. package/es5/plugins/templates/templates.min.js +1 -1
  304. package/es5/plugins/todo-list/todo-list.css +1 -1
  305. package/es5/plugins/todo-list/todo-list.js +1 -1
  306. package/es5/plugins/todo-list/todo-list.min.js +1 -1
  307. package/es5/plugins/translate/translate.css +1 -1
  308. package/es5/plugins/translate/translate.js +1 -1
  309. package/es5/plugins/translate/translate.min.js +1 -1
  310. package/es5/plugins/tune-block/tune-block.css +1 -1
  311. package/es5/plugins/tune-block/tune-block.js +1 -1
  312. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  313. package/es5/polyfills.fat.min.js +1 -1
  314. package/es5/polyfills.js +1 -1
  315. package/es5/polyfills.min.js +1 -1
  316. package/esm/plugins/license/helpers/helpers.js +1 -1
  317. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.2
4
+ * Version: v4.14.3
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -14,7 +14,7 @@
14
14
  */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}`,""])},function(t,i){t.exports=function(t){var i=[];return i.toString=function(){return this.map(function(i){var o=function(t,i){var o=t[1]||"",n=t[3];if(!n)return o;if(i&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */";return[o].concat(n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"})).concat([r]).join(`
15
15
  `)}return[o].join(`
16
16
  `)}(i,t);return i[2]?"@media "+i[2]+"{"+o+"}":o}).join("")},i.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(n[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&n[a[0]]||(o&&!a[2]?a[2]=o:o&&(a[2]="("+a[2]+") and ("+o+")"),i.push(a))}},i}}],i={};function o(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=i,o.d=function(t,i,n){o.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},o.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,i){if(1&i&&(t=o(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)o.d(n,r,(function(i){return t[i]}).bind(null,r));return n},o.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(i,"a",i),i},o.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},o.p="",o(o.s=1)}()},6441:function(t,i,o){"use strict";o.d(i,{Config:function(){return s}});var n=o(82758);let r={};class s{static get defaultOptions(){return s.__defaultOptions||(s.__defaultOptions=new s),s.__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.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:[]},`
17
- `,{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,r)}}r=s.prototype,s.prototype.controls={}},26992:function(t,i,o){"use strict";o.d(i,{Async:function(){return m}});var n=o(82758),r=o(91898),s=o(12045),a=o(23282),l=o(84767),c=o(72430),u=o(14773),d=o(70799),h=o(86068),p=o(38837),f=o(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...o){if(this.isDestructed)return 0;let n={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(n=i).timeout||0),n.label&&this.clearLabel(n.label);let s=(0,r.setTimeout)(t,i,...o),a=n.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let o=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(o),"Callback is not a function"),this.setTimeout(o,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,d.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,o=!1){let n=0,l=!1,d=[],h=(...i)=>{if(!l){n=0;let o=t(...i);if(l=!0,d.length){let t=()=>{d.forEach(t=>t()),d.length=0};(0,u.isPromise)(o)?o.finally(t):t()}}},p=(...s)=>{l=!1,i?(!n&&o&&h(...s),(0,r.clearTimeout)(n),n=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,n)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{d.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let o,n=!1,r=!0;return(...s)=>{if(o=s,n){r=!0;return}r=!0,i&&(r=!1,t(...o)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&r&&t(...o)})}}throttle(t,i,o=!1){let n=null,r,s,l;return(...o)=>{(r=!0,l=o,i)?n||(s=()=>{r?(t(...l),r=!1,n=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,n)):n=null})():t(...l)}}promise(t){let i=()=>{},o=new Promise((o,n)=>{i=()=>n((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(o,n)});return!o.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(o.finally=t=>(o.then(t).catch(t),o)),o.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),o.rejectCallback=i,o}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let o=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(o),o}requestIdlePromise(t){return this.promise(i=>{let o=this.requestIdleCallback(()=>i(o),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let o=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>o.abort()),this.__controllers.add(o),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(t,{...i,signal:o.signal});return n.finally(()=>{this.__controllers.delete(o)}).catch(()=>null),n}return this.promise((n,r)=>{let s=this.setTimeout(()=>{try{n(t())}catch(t){r(t)}this.__controllers.delete(o)},i.delay||1);o.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(o),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,o,n,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t: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!=(o=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?o:(t,i)=>{var o;let n=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(o=null==i?void 0:i.timeout)?o:1)},this.__cancelIdleCallbackNative=null!=(r=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,o){"use strict";o.d(i,{Async:function(){return n.Async}});var n=o(26992)},4012:function(t,i,o){"use strict";o.d(i,{Component:function(){return c}});var n=o(8884),r=o(78213),s=o(580),a=o(21537);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,i,o){let n=[this.componentName];return t&&n.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),i&&(n.push("_",i),n.push("_",(0,a.isVoid)(o)?"true":o.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,i){return(0,a.get)(t,i||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,i){if(t===this.__componentStatus)return;i===this&&(this.__componentStatus=t);let o=Object.getPrototypeOf(this);o&&(0,a.isFunction)(o.setStatusComponent)&&o.setStatusComponent(t,i);let n=l.get(this),r=null==n?void 0:n[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let o=l.get(this);o||(o={},l.set(this,o)),o[t]||(o[t]=[]),o[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}c.STATUSES=r.STATUSES},91907:function(t,i,o){"use strict";o.d(i,{Component:function(){return n.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var n=o(4012),r=o(78213),s=o(80480)},78213:function(t,i,o){"use strict";o.d(i,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,o){"use strict";o.d(i,{ViewComponent:function(){return r}});var n=o(4012);class r extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...i){return this.j.i18n(t,...i)}setParentView(t){return this.jodit=t,t.ow&&(this.ownerWindow=t.ow),t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),this.setParentView(t)}}},82758:function(t,i,o){"use strict";o.r(i),o.d(i,{ACCURACY:function(){return W},APP_VERSION:function(){return n},BASE_PATH:function(){return ef},BASE_PATH_IS_MIN:function(){return em},BR:function(){return G},CLIPBOARD_ID:function(){return ev},COMMAND_KEYS:function(){return $},EMULATE_DBLCLICK_TIMEOUT:function(){return eo},ES:function(){return r},FAT_MODE:function(){return u},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return j},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return es},INSERT_CLEAR_HTML:function(){return er},INSERT_ONLY_TEXT:function(){return ea},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return y},IS_BLOCK:function(){return x},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return Z},IS_INLINE:function(){return I},IS_MAC:function(){return ec},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return eu},KEY_ALT:function(){return z},KEY_BACKSPACE:function(){return P},KEY_DELETE:function(){return U},KEY_DOWN:function(){return F},KEY_ENTER:function(){return M},KEY_ESC:function(){return R},KEY_F3:function(){return q},KEY_LEFT:function(){return B},KEY_META:function(){return A},KEY_RIGHT:function(){return O},KEY_SPACE:function(){return H},KEY_TAB:function(){return L},KEY_UP:function(){return N},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ei},MODE_SOURCE:function(){return J},MODE_SPLIT:function(){return X},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return m},NEARBY:function(){return V},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return K},PASSIVE_EVENTS:function(){return ew},SAFE_COUNT_CHANGE_CALL:function(){return el},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ey},SPACE_REG_EXP:function(){return w},SPACE_REG_EXP_END:function(){return k},SPACE_REG_EXP_START:function(){return _},TEMP_ATTR:function(){return eg},TEXT_HTML:function(){return ee},TEXT_PLAIN:function(){return Q},TEXT_RTF:function(){return et},TOKENS:function(){return p},globalDocument:function(){return S},globalWindow:function(){return C},lang:function(){return eb}});let n="4.14.2",r="es2021",s=!0,a=!0,l=!0,c=!1,u=!0,d="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,y=()=>/^[\uFEFF]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,k=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,C="u">typeof window?window:void 0,S="u">typeof document?document:void 0,x=/^(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,I=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],j=new Set([...T,"br","hr"]),D=new Set(T),A="Meta",P="Backspace",L="Tab",M="Enter",R="Escape",z="Alt",B="ArrowLeft",N="ArrowUp",O="ArrowRight",F="ArrowDown",H="Space",U="Delete",q="F3",V=5,W=10,$=[A,P,U,N,F,O,B,M,R,q,L],G="br",K="p",Y=1,J=2,X=3,Z="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Q=Z?"text":"text/plain",ee=Z?"html":"text/html",et=Z?"rtf":"text/rtf",ei="jodit-selection_marker",eo=300,en="insert_as_html",er="insert_clear_html",es="insert_as_text",ea="insert_only_text",el=10,ec=void 0!==C&&/Mac|iPod|iPhone|iPad/.test(C.navigator.platform),eu={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ec?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ed=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:eh,isMin:ep}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return ed(t.src);let i=S.querySelectorAll("script[src]");return i&&i.length?ed(i[i.length-1].src):ed(C.location.href)})(),ef=eh,em=ep,eg="data-jodit-temp",eb={},ev="clipboard",ey="source-consumer",ew=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,o){"use strict";o.d(i,{Create:function(){return l}});var n=o(82758),r=o(2748),s=o(21537),a=o(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,o){let n=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(n),i&&((0,s.isPlainObject)(i)?(0,s.attr)(n,i):o=i),o&&(0,s.asArray)(o).forEach(t=>r.Dom.append(n,(0,s.isString)(t)?this.fromHTML(t):t)),n}div(t,i,o){let n=this.element("div",i,o);return t&&(n.className=t),n}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});r.Dom.append(this.doc.body,i);let o=null==(t=i.contentWindow)?void 0:t.document;if((0,a.assert)(o,"iframe.contentWindow.document"),!o)throw Error("Iframe error");return o.open(),o.write("<!DOCTYPE html><html><head></head><body></body></html>"),o.close(),[o.body,i]}span(t,i,o){let n=this.element("span",i,o);return t&&(n.className=t),n}a(t,i,o){let n=this.element("a",i,o);return t&&(n.className=t),n}text(t){return this.doc.createTextNode(t)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let o=this.div();o.innerHTML=t.toString();let n=o.firstChild===o.lastChild&&o.firstChild?o.firstChild:o;if(r.Dom.safeRemove(n),i){let t=(0,s.refs)(n);Object.keys(i).forEach(o=>{let n=t[o];n&&!1===i[o]&&r.Dom.hide(n)})}return n}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let o=i[t.tagName.toLowerCase()];(0,s.isFunction)(o)?o(t):(0,s.isPlainObject)(o)&&(0,s.attr)(t,o)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,o){"use strict";o.d(i,{Create:function(){return n.Create}});var n=o(20218)},45219:function(t,i,o){"use strict";o.d(i,{autobind:function(){return r}});var n=o(23282);function r(t,i,o){if(!(0,n.isFunction)(o.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=o.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},33433:function(t,i,o){"use strict";o.d(i,{cache:function(){return c},cacheHTML:function(){return u},cached:function(){return l}});var n=o(78213),r=o(2748),s=o(27613),a=o(82760);function l(t,i){let o=Object.getOwnPropertyDescriptor(t,i);return!o||(0,s.isFunction)(o.get)?null:o.value}function c(t,i,o){let n=o.get;if(!n)throw(0,a.error)("Getter property descriptor expected");o.get=function(){let t=n.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:o.configurable,enumerable:o.enumerable,writable:!1,value:t}),t}}function u(t,i,o){let l=o.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let c=!0,u=new WeakMap;o.value=function(...t){var i;let o,n=null!=(o=this.od)?o:document,s=u.get(n);if(c&&(null==s?void 0:s.has(this.constructor)))return null==(i=s.get(this.constructor))?void 0:i.cloneNode(!0);let a=l.apply(this,t);return c&&r.Dom.isElement(a)&&(s?s.set(this.constructor,a):u.set(n,new WeakMap([[this.constructor,a]]))),c?a.cloneNode(!0):a},t.hookStatus(n.STATUSES.ready,t=>{c=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,o){"use strict";o.d(i,{component:function(){return a},getComponentClass:function(){return l}});var n=o(82758),r=o(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let o=(0,r.getClassName)(t.prototype);if(s.has(o)&&!n.IS_PROD)throw Error(`Component with name "${o}" is already registered`);return s.set(o,i),i}function l(t){return s.get(t)}},81577:function(t,i,o){"use strict";o.d(i,{debounce:function(){return l},throttle:function(){return c}});var n=o(91907),r=o(27613),s=o(38837),a=o(89890);function l(t,i=!1,o="debounce"){return(l,c)=>{let u=l[c];if(!(0,r.isFunction)(u))throw(0,a.error)("Handler must be a Function");return l.hookStatus(n.STATUSES.ready,n=>{let{async:a}=n;(0,s.assert)(null!=a,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(n):t,u=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:n.defaultTimeout;Object.defineProperty(n,c,{configurable:!0,value:a[o](n[c].bind(n),u,i)})}),{configurable:!0,get(){return u.bind(this)}}}}function c(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,o){"use strict";o.d(i,{derive:function(){return r}});var n=o(23282);function r(...t){return i=>{let o=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,n.isFunction)(a.value)&&!(0,n.isFunction)(o[i])&&Object.defineProperty(o,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,o){"use strict";o.d(i,{hook:function(){return s}});var n=o(23282),r=o(89890);function s(t){return(i,o)=>{if(!(0,n.isFunction)(i[o]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[o].call(t)})}}},78927:function(t,i,o){"use strict";o.d(i,{idle:function(){return a}});var n=o(91907),r=o(23282),s=o(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:o}=t,n=t[i];t[i]=(...i)=>o.requestIdleCallback(n.bind(t,...i))})}}},65478:function(t,i,o){"use strict";o.r(i),o.d(i,{autobind:function(){return n.autobind},cache:function(){return r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return s.component},debounce:function(){return a.debounce},derive:function(){return l.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return c.hook},idle:function(){return u.idle},nonenumerable:function(){return d.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return a.throttle},wait:function(){return p.wait},watch:function(){return f.watch}});var n=o(45219),r=o(33433),s=o(87325),a=o(81577),l=o(55153),c=o(97357),u=o(78927),d=o(31589),h=o(53213),p=o(13525),f=o(37133)},31589:function(t,i,o){"use strict";o.d(i,{nonenumerable:function(){return n}});let n=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},53213:function(t,i,o){"use strict";o.d(i,{persistent:function(){return s}});var n=o(78213),r=o(39955);function s(t,i){t.hookStatus(n.STATUSES.ready,t=>{let o=(0,r.isViewObject)(t)?t:t.jodit,n=`${o.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=o.storage.get(n))?t:s},set(t){o.storage.set(n,t)}})})}},13525:function(t,i,o){"use strict";o.d(i,{wait:function(){return a}});var n=o(78213),r=o(23282),s=o(89890);function a(t){return(i,o)=>{let a=i[o];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(n.STATUSES.ready,i=>{let{async:n}=i,r=i[o],s=0;Object.defineProperty(i,o,{configurable:!0,value:function o(...a){n.clearTimeout(s),t(i)?r.apply(i,a):s=n.setTimeout(()=>o(...a),10)}})})}}},37133:function(t,i,o){"use strict";o.d(i,{watch:function(){return h}});var n=o(78213),r=o(73026),s=o(46559),a=o(23282),l=o(72430),c=o(39955),u=o(89890),d=o(37790);function h(t,i){return(o,h)=>{var p;if(!(0,a.isFunction)(o[h]))throw(0,u.error)("Handler must be a Function");let f=null==(p=null==i?void 0:i.immediately)||p,m=null==i?void 0:i.context,g=i=>{let n=(0,c.isViewObject)(i)?i:i.jodit,u=(t,...o)=>{if(!i.isInDestruct)return i[h](t,...o)};f||(u=i.async.microDebounce(u,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[o,r]=t.split(":"),s=m;o.length&&(s=i.get(o)),(0,a.isFunction)(s)&&(s=s(i)),n.events.on(s||i,r,u),s||n.events.on(r,u),i.hookStatus("beforeDestruct",()=>{n.events.off(s||i,r,u).off(r,u)});return}let s=t.split("."),[c]=s,h=s.slice(1),p=i[c];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on("change."+h.join("."),u);let f=(0,d.getPropertyDescriptor)(o,c);Object.defineProperty(i,c,{configurable:!0,set(t){let o=p;o!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on("change."+h.join("."),u),u(c,o,p))},get:()=>f&&f.get?f.get.call(i):p})})};(0,a.isFunction)(o.hookStatus)?o.hookStatus(n.STATUSES.ready,g):g(o)}}},2748:function(t,i,o){"use strict";o.d(i,{Dom:function(){return _}});var n=o(82758),r=o(4510),s=o(68345),a=o(23282),l=o(58487),c=o(42320),u=o(70799),d=o(86068),h=o(49055),p=o(38837),f=o(29960),m=o(41180),g=o(86583),b=o(89890),y=o(37790);let w=RegExp(`<([a-z]+)[^>]+${n.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class _{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,o){let n,r=t;o.s.save();let s=!1;do s=!1,(n=r.nextSibling)&&!_.isBlock(n)&&!_.isTag(n,"br")&&(s=!0,r=n);while(s)return _.__wrapElements(i,o,t,r)}static __wrapElements(t,i,o,n){let r=(0,u.isString)(t)?i.createInside.element(t):t;o.parentNode&&o.parentNode.insertBefore(r,o);let s=o;for(;s&&(s=o.nextSibling,r.appendChild(o),o!==n&&s);)o=s;return i.s.restore(),r}static wrapInline(t,i,o){let n,r=t,s=t;o.s.save();let a=!1;do a=!1,(n=r.previousSibling)&&!_.isBlock(n)&&(a=!0,r=n);while(a)do a=!1,(n=s.nextSibling)&&!_.isBlock(n)&&(a=!0,s=n);while(a)return _.__wrapElements(i,o,r,s)}static wrap(t,i,o){let n=(0,u.isString)(i)?o.element(i):i;if(_.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(n,t),n.appendChild(t)}else{let i=t.extractContents();t.insertNode(n),n.appendChild(i)}return n}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);_.safeRemove(t)}}static between(t,i,o){let n=t;for(;n&&n!==i&&!(t!==n&&o(n));){let t=n.firstChild||n.nextSibling;if(!t){for(;n&&!n.nextSibling;)if((n=n.parentNode)===i)return;t=null==n?void 0:n.nextSibling}n=t}}static replace(t,i,o,n=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(o,"Need create instance for new tag"),i=o.fromHTML(i)),(0,u.isString)(i)?((0,p.assert)(o,"Need create instance for new tag"),a=o.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return n&&_.isElement(t)&&_.isElement(a)&&(0,r.toArray)(t.attributes).forEach(t=>{a.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return _.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return _.each(t,t=>_.isEmptyTextNode(t))}static isContentEditable(t,i){return _.isNode(t)&&!_.closest(t,t=>_.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=n.NO_EMPTY_TAGS){let o;if(!t)return!0;o=(0,a.isFunction)(i)?i:t=>i.has(t.nodeName.toLowerCase());let r=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return _.isText(t)?r(t):!(_.isElement(t)&&o(t))&&_.each(t,t=>{if(_.isText(t)&&!r(t)||_.isElement(t)&&o(t))return!1})}static isNode(t){return!!(t&&(0,u.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return _.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return _.isTag(t,n.LIST_TAGS)}static isLeaf(t){return _.isTag(t,"li")}static isImage(t){return _.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,d.isVoid)(t)&&"object"==typeof t&&_.isNode(t)&&n.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){return!!_.isNode(t)&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){return!!_.isNode(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(t){var i;if(!_.isNode(t))return!1;let o=null==(i=t.ownerDocument)?void 0:i.defaultView;return t instanceof(o?o.HTMLElement:HTMLElement)}static isInlineBlock(t){return _.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(t,"display").toString())}static canSplitBlock(t){return!(0,d.isVoid)(t)&&_.isHTMLElement(t)&&_.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static first(t,i){return _.__deepMost(t,i,!1)}static last(t,i){return _.__deepMost(t,i,!0)}static __deepMost(t,i,o){let n=o?"lastChild":"firstChild",r=o?"previousSibling":"nextSibling",s=null==t?void 0:t[n];if(!s)return null;do{if(i(s))return s;let o=s[n]||s[r];if(!o&&s.parentNode!==t){do s=s.parentNode;while(s&&!s[r]&&s.parentNode!==t)o=null==s?void 0:s[r]}s=o}while(s)return null}static prev(t,i,o,n=!0){return _.find(t,i,o,!1,n)}static next(t,i,o,n=!0){return _.find(t,i,o,!0,n)}static prevWithClass(t,i){return _.__siblingWithClass(t,i,!0)}static nextWithClass(t,i){return _.__siblingWithClass(t,i,!1)}static __siblingWithClass(t,i,o){let n=t=>_.isElement(t)&&t.classList.contains(i),r=t.parentNode;return o?_.prev(t,n,r):_.next(t,n,r)}static find(t,i,o,n=!0,r=!0){let s=this.nextGen(t,o,n,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,o=!0,n=!0){let r=[],s=t;do{let i=o?s.nextSibling:s.previousSibling;for(;i;)r.push(i),i=o?i.nextSibling:i.previousSibling;r.reverse(),yield*this.runInStack(t,r,o,n),s=s.parentNode}while(s&&s!==i)return null}static each(t,i,o=!0){let n=this.eachGen(t,o),r=n.next();for(;!r.done;){if(!1===i(r.value))return!1;r=n.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,o,n=!0){for(;i.length;){let r=i.pop();if(n){let t=o?r.lastChild:r.firstChild;for(;t;)i.push(t),t=o?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,o,n="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=_.findWithCurrent(s[r],i,s,n,r);if(t)return t}for(;s&&!s[n]&&s!==o;)s=s.parentNode;s&&s[n]&&s!==o&&(s=s[n])}while(s&&s!==o)return null}static findSibling(t,i=!0,o=t=>!_.isEmptyTextNode(t)){let n=_.sibling(t,i);for(;n&&!o(n);)n=_.sibling(n,i);return n&&o(n)?n:null}static findNotEmptySibling(t,i){return _.findSibling(t,i,t=>{var i;return!_.isEmptyTextNode(t)&&!!(!_.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,o){return(0,y.call)(i?_.prev:_.next,t,t=>!!(t&&(!(_.isText(t)||_.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),o)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,o,n=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===o||!r.parentNode)break;r=r.parentNode}while(r&&r!==o)return r===o&&n&&i(r)?r:null}static closest(t,i,o){let n,r=t=>t.toLowerCase();if((0,a.isFunction)(i))n=i;else if((0,s.isArray)(i)||(0,c.isSet)(i)){let t=(0,c.isSet)(i)?i:new Set(i.map(r));n=i=>!!(i&&t.has(r(i.nodeName)))}else n=t=>!!(t&&r(i)===r(t.nodeName));return _.up(t,n,o)}static furthest(t,i,o){let n=null,r=null==t?void 0:t.parentElement;for(;r&&r!==o;)i(r)&&(n=r),r=null==r?void 0:r.parentElement;return n}static appendChildFirst(t,i){t.firstChild!==i&&_.prepend(t,i)}static after(t,i){var o;null==(o=t.parentNode)||o.insertBefore(i,t.nextSibling)}static before(t,i){var o;null==(o=t.parentNode)||o.insertBefore(i,t)}static prepend(t,i){t.insertBefore(i,t.firstChild)}static append(t,i){(0,s.isArray)(i)?i.forEach(i=>{this.append(t,i)}):t.appendChild(i)}static moveContent(t,i,o=!1,s=()=>!0){let a=(t.ownerDocument||n.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(_.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),i.insertBefore(a,o?i.firstChild:null)}static isOrContains(t,i,o=!1){return t===i?!o:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>_.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let o=_.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&_.isTag(t.startContainer,n.INSEPARABLE_TAGS)?_.after(t.startContainer,i):(t.insertNode(i),o&&t.setStartBefore(o)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>_.isText(t)&&!t.nodeValue&&_.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.getPropertyValue("display")),t.style.setProperty("display","none"))}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.getPropertyValue("display")&&t.style.setProperty("display",i||null)}static isTag(t,i){if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");if(!this.isElement(t))return!1;let o=t.tagName.toLowerCase();return i instanceof Set?i.has(o)||i.has(t.tagName.toUpperCase()):o===i||t.tagName.toUpperCase()===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,n.TEMP_ATTR,!0),t}static isTemporary(t){return!!_.isElement(t)&&(_.isMarker(t)||"true"===(0,f.attr)(t,n.TEMP_ATTR))}static isMarker(t){return _.isNode(t)&&_.isTag(t,"span")&&t.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(w,"$2")}static temporaryList(t){let i=[];return _.each(t,t=>{_.isHTMLElement(t)&&t.hasAttribute(n.TEMP_ATTR)&&i.push(t)}),i}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,o){"use strict";o.d(i,{Dom:function(){return n.Dom},LazyWalker:function(){return r.LazyWalker}});var n=o(2748),r=o(70071)},70071:function(t,i,o){"use strict";o.d(i,{LazyWalker:function(){return a}});var n=o(45219),r=o(2748),s=o(72757);class a extends s.Eventify{setWork(t){return this.isWorked?this.break():this.stop(),this.workNodes=r.Dom.eachGen(t,!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(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var t;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(t=this.__schedulerController)||t.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,o=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<o;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);s>3&&a&&Object.defineProperty(i,o,a)}([n.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,o){"use strict";o.d(i,{EventEmitter:function(){return d}});var n=o(82758),r=o(46559),s=o(68345),a=o(23282),l=o(70799),c=o(89890),u=o(15738);class d{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,i){(0,r.splitArray)(t).map(t=>t.trim()).forEach(t=>{let o=t.split("."),n=o[1]||u.defaultNameSpace;i.call(this,o[0],n)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let i=new u.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&delete t[this.__key]}__triggerNativeEvent(t,i){let o=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?o.initEvent(i,!0,!0):(o.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(o,t,{value:i[t],enumerable:!0})}),Object.defineProperty(o,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(o)}get current(){return this.currents[this.currents.length-1]}on(t,i,o,r){let u,d,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(u=this,d=t,p=i,f=o):(u=t,d=i,p=o,f=r),!((0,l.isString)(d)||(0,l.isStringArray)(d))||0===d.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,c.error)("Need event handler");if((0,s.isArray)(u))return u.forEach(t=>{this.on(t,d,p,f)}),this;let m=u,g=this.__getStore(m),b=this,y=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(y=function(t){if(!b.isMuted(t.type)&&(b.__prepareEvent(t),p&&!1===p.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(d,(t,i)=>{var o,r;if(0===t.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:y};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=n.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(o=null==f?void 0:f.capture)&&o}:null!=(r=null==f?void 0:f.capture)&&r;y.options=i,m.addEventListener(t,y,i),this.__memoryDOMSubjectToHandler(m,y)}}}),this}__memoryDOMSubjectToHandler(t,i){let o=this.__domEventsMap.get(t)||new Set;o.add(i),this.__domEventsMap.set(t,o)}__unmemoryDOMSubjectToHandler(t,i){let o=this.__domEventsMap,n=o.get(t)||new Set;n.delete(i),n.size?o.set(t,n):o.delete(t)}one(t,i,o,n){let r,s,a,c;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,c=o):(r=t,s=i,a=o,c=n);let u=(...t)=>(this.off(r,s,u),a(...t));return this.on(r,s,u,c),this}off(t,i,o){let n,r,c;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,r=t,c=i):(n=t,r=i,c=o),(0,s.isArray)(n))return n.forEach(t=>{this.off(t,r,c)}),this;let d=n,p=this.__getStore(d);if(!((0,l.isString)(r)||(0,l.isStringArray)(r))||0===r.length)return p.namespaces().forEach(t=>{this.off(d,"."+t)}),this.__removeStoreFromSubject(d),this;let f=t=>{var i;h(d)&&(d.removeEventListener(t.event,t.syntheticCallback,null!=(i=t.syntheticCallback.options)&&i),this.__unmemoryDOMSubjectToHandler(d,t.syntheticCallback))},m=(t,i)=>{if(""===t)return void p.events(i).forEach(t=>{""!==t&&m(t,i)});let o=p.get(t,i);if(o&&o.length)if((0,a.isFunction)(c)){let n=p.indexOf(t,i,c);!1!==n&&(f(o[n]),o.splice(n,1),o.length||p.clearEvents(i,t))}else o.forEach(f),o.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===u.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(t,i){let o=(0,l.isString)(t)?this:t,n=(0,l.isString)(t)?t:i;if("string"!=typeof n)throw(0,c.error)("Need event names");let r=this.__getStore(o);this.__eachEvent(n,(t,i)=>{let n=r.get(t,i);n&&this.__stopped.push(n),i===u.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(o,t+"."+i))})}__removeStop(t){if(t){let i=this.__stopped.indexOf(t);-1!==i&&this.__stopped.splice(0,i+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,i,...o){let n,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,d=(0,l.isString)(t)?[i,...o]:o;if(!h(s)&&!(0,l.isString)(a))throw(0,c.error)("Need events names");let p=this.__getStore(s);return!(0,l.isString)(a)&&h(s)?this.__triggerNativeEvent(s,i):this.__eachEvent(a,(t,i)=>{if(h(s))this.__triggerNativeEvent(s,t);else{let o=p.get(t,i);if(o)try{[...o].every(i=>!this.__isStopped(o)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...d),this.currents.pop(),void 0!==r&&(n=r),!0))}finally{this.__removeStop(o)}i!==u.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let o=this.fire.apply(this,[s,t+"."+i,...d]);void 0!==o&&(n=o)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,i)=>{this.off(i)}),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(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(i=>{Object.defineProperty(t,i,{value:t.changedTouches[0][i],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=new Date().getTime()}}function h(t){return t&&(0,a.isFunction)(t.addEventListener)}},72757:function(t,i,o){"use strict";o.d(i,{Eventify:function(){return n}});class n{on(t,i){var o;return this.__map.has(t)||this.__map.set(t,new Set),null==(o=this.__map.get(t))||o.add(i),this}off(t,i){var o;return this.__map.has(t)&&(null==(o=this.__map.get(t))||o.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var o;let n;return this.__map.has(t)&&(null==(o=this.__map.get(t))||o.forEach(t=>{n=t(...i)})),n}constructor(){this.__map=new Map}}},57012:function(t,i,o){"use strict";o.d(i,{eventEmitter:function(){return n}});let n=new(o(98220)).EventEmitter},3827:function(t,i,o){"use strict";o.d(i,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var n=o(98220),r=o(72757),s=o(73026),a=o(15738)},73026:function(t,i,o){"use strict";o.d(i,{observable:function(){return u}});var n=o(68345),r=o(59292),s=o(72430),a=o(37790);let l=Symbol("observable-object");function c(t){return void 0!==t[l]}function u(t){if(c(t))return t;let i={},o={},u=(i,r)=>((0,n.isArray)(i)?i.map(t=>u(t,r)):(o[i]||(o[i]=[]),o[i].push(r)),t),d=(r,...s)=>{if((0,n.isArray)(r))return void r.map(t=>d(t,...s));try{!i[r]&&o[r]&&(i[r]=!0,o[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,o=[])=>{let n={};c(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let c=o.concat(l).filter(t=>t.length);n[l]=i[l];let u=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set(i){let o=n[l];if(!(0,r.isFastEqual)(n[l],i)){d(["beforeChange","beforeChange."+c.join(".")],l,i),(0,s.isPlainObject)(i)&&h(i,c),u&&u.set?u.set.call(t,i):n[l]=i;let r=[];d(["change",...c.reduce((t,i)=>(r.push(i),t.push("change."+r.join(".")),t),[])],c.join("."),o,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>u&&u.get?u.get.call(t):n[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(n[l])&&h(n[l],c)}),Object.defineProperty(t,"on",{value:u}))};return h(t),t}},15738:function(t,i,o){"use strict";o.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var n=o(4510),r=o(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let o=this.__store.get(i);return(0,r.assert)(o,"-"),o[t]}}indexOf(t,i,o){let n=this.get(t,i);if(n){for(let t=0;t<n.length;t+=1)if(n[t].originalCallback===o)return t}return!1}namespaces(t=!1){let i=(0,n.toArray)(this.__store.keys());return t?i.filter(t=>t!==s):i}events(t){let i=this.__store.get(t);return i?Object.keys(i):[]}set(t,i,o,n=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),n?r[t].unshift(o):r[t].push(o)}clear(){this.__store.clear()}clearEvents(t,i){let o=this.__store.get(t);o&&o[i]&&(delete o[i],Object.keys(o).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,o){"use strict";o.d(i,{eventEmitter:function(){return I},extendLang:function(){return k},getContainer:function(){return S},getPopupViewRoot:function(){return x},instances:function(){return m},modules:function(){return _},pluginSystem:function(){return w},uniqueUid:function(){return y}});var n=o(19306),r=o(70799),s=o(39955),a=o(12475),l=o(29960),c=o(41180),u=o(80568),d=o(41876),h=o(57012),p=o(82758),f=o(22732);let m={},g=1,b=new Set;function y(){function t(){return Math.round(g+=10*(Math.random()+1)).toString(16)}let i=t();for(;b.has(i);)i=t();return b.add(i),i}let w=new d.PluginSystem({getContainer:S}),_={},k=t=>{Object.keys(t).forEach(i=>{p.lang[i]?Object.assign(p.lang[i],t[i]):p.lang[i]=t[i]})},C=new WeakMap;function S(t,i,o="div",c=!1){let d=(0,r.isString)(i)?i:i?(0,u.getClassName)(i.prototype):"jodit-utils",h=C.get(t)||{},p=d+o,m=(0,s.isViewObject)(t)?t:t.j,g=null;if(!h[p]){let i=m.c;if(g=x(m.o,m.container,t.od.body),c&&(0,n.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===o?t.ed.head:t.ed.body;g=(0,n.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(o,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});m.o.nonce&&("style"===o||"script"===o)&&(0,l.attr)(r,"nonce",m.o.nonce),r.classList.add("jodit_theme_"+(m.o.theme||"default")),f.Dom.append(g,r),h[p]=r,t.hookStatus("beforeDestruct",()=>{m.events.off(r),f.Dom.safeRemove(r),delete h[p],Object.keys(h).length&&C.delete(t)}),C.set(t,h),m.events.fire("getContainer",r)}return h[p].classList.remove("jodit_theme_default","jodit_theme_dark"),h[p].classList.add("jodit_theme_"+(m.o.theme||"default")),h[p]}function x(t,i,o){var n,r,s;return null!=(s=null!=(r=null!=(n=t.popupRoot)?n:t.shadowRoot)?r:f.Dom.closest(i,t=>f.Dom.isHTMLElement(t)&&(f.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,c.css)(t,"position"))),o))?s:o}let I=h.eventEmitter},29999:function(t,i,o){"use strict";o.d(i,{asArray:function(){return r}});var n=o(68345);let r=t=>(0,n.isArray)(t)?t:[t]},76855:function(t,i,o){"use strict";o.d(i,{asArray:function(){return n.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var n=o(29999),r=o(46559),s=o(4510)},46559:function(t,i,o){"use strict";function n(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}o.d(i,{splitArray:function(){return n}})},4510:function(t,i,o){"use strict";o.d(i,{toArray:function(){return s}});var n=o(70722),r=o(58844);let s=function(...t){var i;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,o){"use strict";o.d(i,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=o(13252)},13252:function(t,i,o){"use strict";o.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var n=o(82758);function r(t,i,...o){return i?n.globalWindow.setTimeout(t,i,...o):(t.call(null,...o),0)}function s(t){n.globalWindow.clearTimeout(t)}},54765:function(t,i,o){"use strict";o.d(i,{hasBrowserColorPicker:function(){return r}});var n=o(82758);function r(){let t=!0;try{let i=n.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,o){"use strict";o.d(i,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return y.isNumber},isNumeric:function(){return w.isNumeric},isPlainObject:function(){return _.isPlainObject},isPromise:function(){return k.isPromise},isSet:function(){return C.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return x.isURL},isValidName:function(){return I.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return j.isWindow}});var n=o(54765),r=o(12045),s=o(68345),a=o(87612),l=o(59292),c=o(23282),u=o(58487),d=o(29673),h=o(60132),p=o(72913),f=o(19306),m=o(45603),g=o(78116),b=o(70722),y=o(84767),w=o(29807),_=o(72430),k=o(14773),C=o(42320),S=o(70799),x=o(26049),I=o(37508),E=o(39955),T=o(86068),j=o(52742)},12045:function(t,i,o){"use strict";function n(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}o.d(i,{isAbortError:function(){return n}})},68345:function(t,i,o){"use strict";function n(t){return Array.isArray(t)}o.d(i,{isArray:function(){return n}})},87612:function(t,i,o){"use strict";function n(t){return"boolean"==typeof t}o.d(i,{isBoolean:function(){return n}})},59292:function(t,i,o){"use strict";o.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var n=o(67462);function r(t,i){return t===i||(0,n.stringify)(t)===(0,n.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,o){"use strict";function n(t){return"function"==typeof t}o.d(i,{isFunction:function(){return n}})},29673:function(t,i,o){"use strict";function n(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==t.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==t.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==t.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==t.search(/style='[^']*mso-/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}o.d(i,{isHtmlFromWord:function(){return n}})},58487:function(t,i,o){"use strict";o.d(i,{isHTML:function(){return r}});var n=o(70799);let r=t=>(0,n.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,o){"use strict";o.d(i,{hasContainer:function(){return c},isDestructable:function(){return l},isInitable:function(){return a}});var n=o(2748),r=o(23282),s=o(86068);function a(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.init)}function l(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.destruct)}function c(t){return!(0,s.isVoid)(t)&&n.Dom.isElement(t.container)}},72913:function(t,i,o){"use strict";o.d(i,{isInt:function(){return s}});var n=o(29807),r=o(70799);function s(t){return(0,r.isString)(t)&&(0,n.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,o){"use strict";o.d(i,{isJoditObject:function(){return r}});var n=o(23282);function r(t){return!!(t&&t instanceof Object&&(0,n.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,o){"use strict";o.d(i,{isLicense:function(){return r}});var n=o(70799);let r=t=>(0,n.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},78116:function(t,i,o){"use strict";o.d(i,{isMarker:function(){return r}});var n=o(2748);function r(t){return n.Dom.isMarker(t)}},70722:function(t,i,o){"use strict";function n(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===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(t+""))}o.d(i,{isNativeFunction:function(){return n}})},84767:function(t,i,o){"use strict";function n(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}o.d(i,{isNumber:function(){return n}})},29807:function(t,i,o){"use strict";o.d(i,{isNumeric:function(){return r}});var n=o(70799);function r(t){if((0,n.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},72430:function(t,i,o){"use strict";o.d(i,{isPlainObject:function(){return r}});var n=o(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,n.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,o){"use strict";function n(t){return t&&"function"==typeof t.then}o.d(i,{isPromise:function(){return n}})},42320:function(t,i,o){"use strict";o.d(i,{isSet:function(){return r}});var n=o(23282);function r(t){return!!t&&(0,n.isFunction)(t.has)&&(0,n.isFunction)(t.add)&&(0,n.isFunction)(t.delete)}},70799:function(t,i,o){"use strict";o.d(i,{isString:function(){return r},isStringArray:function(){return s}});var n=o(68345);function r(t){return"string"==typeof t}function s(t){return(0,n.isArray)(t)&&r(t[0])}},26049:function(t,i,o){"use strict";o.d(i,{isURL:function(){return r}});var n=o(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=n.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,o){"use strict";function n(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}o.d(i,{isValidName:function(){return n}})},39955:function(t,i,o){"use strict";o.d(i,{isViewObject:function(){return r}});var n=o(23282);function r(t){return!!(t&&t instanceof Object&&(0,n.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,o){"use strict";function n(t){return null==t}o.d(i,{isVoid:function(){return n}})},52742:function(t,i,o){"use strict";function n(t){return null!=t&&t===t.window}o.d(i,{isWindow:function(){return n}})},35278:function(t,i,o){"use strict";o.d(i,{colorToHex:function(){return n}});let n=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!i)return"#000000";let o=parseInt(i[2],10),n=parseInt(i[3],10),r=(parseInt(i[4],10)|n<<8|o<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,o){"use strict";o.d(i,{colorToHex:function(){return n.colorToHex}});var n=o(35278)},32574:function(t,i,o){"use strict";o.d(i,{applyStyles:function(){return d}});var n=o(82758),r=o(2748),s=o(49055),a=o(29960),l=o(41180),c=o(76078);function u(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,i,o)=>{switch(o.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function d(t){let i=/<html(?:\s[^>]*)?>/i.exec(t);if(!i)return t;let o=(t=t.substring(i.index)).toLowerCase().lastIndexOf("</html>");-1!==o&&(t=t.substring(0,o+7));let d=n.globalDocument.createElement("iframe");(0,l.css)(d,"display","none"),r.Dom.append(n.globalDocument.body,d);let h="";try{let i=d.contentDocument||(d.contentWindow?d.contentWindow.document:null);if(i){i.open(),i.write(t),i.close(),r.Dom.each(i.body,t=>{r.Dom.isElement(t)&&/mso-list:\s*ignore/i.test((0,a.attr)(t,"style")||"")&&r.Dom.safeRemove(t)});try{for(let t=0;t<i.styleSheets.length;t+=1){let o=i.styleSheets[t].cssRules;for(let t=0;t<o.length;t+=1)""!==o[t].selectorText&&(0,c.$$)(o[t].selectorText,i.body).forEach(i=>{i.style.cssText=u(o[t].style.cssText+";"+i.style.cssText)})}}catch(t){if(!n.IS_PROD)throw t}r.Dom.each(i.body,t=>{if(r.Dom.isElement(t)){let i=(0,a.attr)(t,"style");i&&(t.style.cssText=u(i)),(0,a.attr)(t,"style")||(0,a.attr)(t,"style",null)}}),h=i.firstChild?(0,s.trim)(i.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(d)}return h&&(t=h),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,o){"use strict";o.d(i,{cleanFromWord:function(){return c}});var n=o(82758),r=o(2748),s=o(4510),a=o(49055),l=o(29960);function c(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let o=n.globalDocument.createElement("div");o.innerHTML=t;let a=[];o.firstChild&&r.Dom.each(o,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:if(/mso-list:\s*ignore/i.test((0,l.attr)(t,"style")||"")){a.push(t);break}(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&(0,l.attrRaw)(t,i.name,null)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=o.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join(`
17
+ `,{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,r)}}r=s.prototype,s.prototype.controls={}},26992:function(t,i,o){"use strict";o.d(i,{Async:function(){return m}});var n=o(82758),r=o(91898),s=o(12045),a=o(23282),l=o(84767),c=o(72430),u=o(14773),d=o(70799),h=o(86068),p=o(38837),f=o(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...o){if(this.isDestructed)return 0;let n={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(n=i).timeout||0),n.label&&this.clearLabel(n.label);let s=(0,r.setTimeout)(t,i,...o),a=n.label||s;return this.timers.set(a,s),this.__callbacks.set(a,t),s}updateTimeout(t,i){if((0,p.assert)(t&&this.timers.has(t),"Label does not exist"),!t||!this.timers.has(t))return null;let o=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(o),"Callback is not a function"),this.setTimeout(o,{label:t,timeout:i})}clearLabel(t){t&&this.timers.has(t)&&((0,r.clearTimeout)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,d.isString)(t))return this.clearLabel(t);(0,r.clearTimeout)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,i,o=!1){let n=0,l=!1,d=[],h=(...i)=>{if(!l){n=0;let o=t(...i);if(l=!0,d.length){let t=()=>{d.forEach(t=>t()),d.length=0};(0,u.isPromise)(o)?o.finally(t):t()}}},p=(...s)=>{l=!1,i?(!n&&o&&h(...s),(0,r.clearTimeout)(n),n=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,n)):h(...s)};return(0,c.isPlainObject)(i)&&i.promisify?(...t)=>{let i=this.promise(t=>{d.push(t)}).catch(t=>{if((0,s.isAbortError)(t))return null;throw t});return p(...t),i}:p}microDebounce(t,i=!1){let o,n=!1,r=!0;return(...s)=>{if(o=s,n){r=!0;return}r=!0,i&&(r=!1,t(...o)),n=!0,this.__queueMicrotaskNative(()=>{n=!1,!this.isDestructed&&r&&t(...o)})}}throttle(t,i,o=!1){let n=null,r,s,l;return(...o)=>{(r=!0,l=o,i)?n||(s=()=>{r?(t(...l),r=!1,n=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,n)):n=null})():t(...l)}}promise(t){let i=()=>{},o=new Promise((o,n)=>{i=()=>n((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(o,n)});return!o.finally&&"u">typeof process&&!n.IS_ES_NEXT&&(o.finally=t=>(o.then(t).catch(t),o)),o.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),o.rejectCallback=i,o}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise(i=>{t.then(t=>(i("fulfilled"),t),t=>{throw i("rejected"),t}),this.setTimeout(()=>{i("pending")},100)});let i={};return Promise.race([t,i]).then(t=>t===i?"pending":"fulfilled",()=>"rejected")}requestIdleCallback(t,i={timeout:100}){let o=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(o),o}requestIdlePromise(t){return this.promise(i=>{let o=this.requestIdleCallback(()=>i(o),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let o=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>o.abort()),this.__controllers.add(o),void 0!==globalThis.scheduler){let n=globalThis.scheduler.postTask(t,{...i,signal:o.signal});return n.finally(()=>{this.__controllers.delete(o)}).catch(()=>null),n}return this.promise((n,r)=>{let s=this.setTimeout(()=>{try{n(t())}catch(t){r(t)}this.__controllers.delete(o)},i.delay||1);o.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(o),r((0,f.abort)())})})}schedulerYield(){return this.schedulerPostTask(()=>{},{priority:"user-visible"})}cancelIdleCallback(t){return this.__requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){let i=requestAnimationFrame(t);return this.__requestsRaf.add(i),i}cancelAnimationFrame(t){this.__requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.__requestsIdle.forEach(t=>this.cancelIdleCallback(t)),this.__requestsRaf.forEach(t=>this.cancelAnimationFrame(t)),this.__controllers.forEach(t=>t.abort()),this.timers.forEach(t=>(0,r.clearTimeout)(this.timers.get(t))),this.timers.clear(),this.promisesRejections.forEach(t=>t()),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}constructor(){var t,i,o,n,r;this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!=(t=null==queueMicrotask?void 0:queueMicrotask.bind(window))?t: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!=(o=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?o:(t,i)=>{var o;let n=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-n))})},null!=(o=null==i?void 0:i.timeout)?o:1)},this.__cancelIdleCallbackNative=null!=(r=null==(n=window.cancelIdleCallback)?void 0:n.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,o){"use strict";o.d(i,{Async:function(){return n.Async}});var n=o(26992)},4012:function(t,i,o){"use strict";o.d(i,{Component:function(){return c}});var n=o(8884),r=o(78213),s=o(580),a=o(21537);let l=new Map;class c{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,a.kebabCase)(((0,a.isFunction)(this.className)?this.className():"")||(0,a.getClassName)(this))),this.__componentName}getFullElName(t,i,o){let n=[this.componentName];return t&&n.push("__"+(t=t.replace(/[^a-z0-9-]/gi,"-"))),i&&(n.push("_",i),n.push("_",(0,a.isVoid)(o)?"true":o.toString())),n.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,i){return(0,a.get)(t,i||this)}get isReady(){return this.componentStatus===r.STATUSES.ready}get isDestructed(){return this.componentStatus===r.STATUSES.destructed}get isInDestruct(){return r.STATUSES.beforeDestruct===this.componentStatus||r.STATUSES.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(r.STATUSES.beforeDestruct,()=>!this.isInDestruct&&this.destruct()),this}destruct(){this.setStatus(r.STATUSES.destructed),this.async&&(this.async.destruct(),this.async=void 0),l.get(this)&&l.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,i){if(t===this.__componentStatus)return;i===this&&(this.__componentStatus=t);let o=Object.getPrototypeOf(this);o&&(0,a.isFunction)(o.setStatusComponent)&&o.setStatusComponent(t,i);let n=l.get(this),r=null==n?void 0:n[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let o=l.get(this);o||(o={},l.set(this,o)),o[t]||(o[t]=[]),o[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new n.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}c.STATUSES=r.STATUSES},91907:function(t,i,o){"use strict";o.d(i,{Component:function(){return n.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var n=o(4012),r=o(78213),s=o(80480)},78213:function(t,i,o){"use strict";o.d(i,{STATUSES:function(){return n}});let n={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,o){"use strict";o.d(i,{ViewComponent:function(){return r}});var n=o(4012);class r extends n.Component{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...i){return this.j.i18n(t,...i)}setParentView(t){return this.jodit=t,t.ow&&(this.ownerWindow=t.ow),t.components.add(this),this}destruct(){return this.j.components.delete(this),super.destruct()}constructor(t){super(),this.setParentView(t)}}},82758:function(t,i,o){"use strict";o.r(i),o.d(i,{ACCURACY:function(){return W},APP_VERSION:function(){return n},BASE_PATH:function(){return ef},BASE_PATH_IS_MIN:function(){return em},BR:function(){return G},CLIPBOARD_ID:function(){return ev},COMMAND_KEYS:function(){return $},EMULATE_DBLCLICK_TIMEOUT:function(){return eo},ES:function(){return r},FAT_MODE:function(){return u},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return j},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return es},INSERT_CLEAR_HTML:function(){return er},INSERT_ONLY_TEXT:function(){return ea},INVISIBLE_SPACE:function(){return f},INVISIBLE_SPACE_REG_EXP:function(){return g},INVISIBLE_SPACE_REG_EXP_END:function(){return b},INVISIBLE_SPACE_REG_EXP_START:function(){return y},IS_BLOCK:function(){return x},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return Z},IS_INLINE:function(){return I},IS_MAC:function(){return ec},IS_PROD:function(){return l},IS_TEST:function(){return c},KEY_ALIASES:function(){return eu},KEY_ALT:function(){return z},KEY_BACKSPACE:function(){return P},KEY_DELETE:function(){return U},KEY_DOWN:function(){return F},KEY_ENTER:function(){return M},KEY_ESC:function(){return R},KEY_F3:function(){return q},KEY_LEFT:function(){return B},KEY_META:function(){return A},KEY_RIGHT:function(){return O},KEY_SPACE:function(){return H},KEY_TAB:function(){return L},KEY_UP:function(){return N},LIST_TAGS:function(){return E},MARKER_CLASS:function(){return ei},MODE_SOURCE:function(){return J},MODE_SPLIT:function(){return X},MODE_WYSIWYG:function(){return Y},NBSP_SPACE:function(){return m},NEARBY:function(){return V},NO_EMPTY_TAGS:function(){return D},PARAGRAPH:function(){return K},PASSIVE_EVENTS:function(){return ew},SAFE_COUNT_CHANGE_CALL:function(){return el},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ey},SPACE_REG_EXP:function(){return w},SPACE_REG_EXP_END:function(){return k},SPACE_REG_EXP_START:function(){return _},TEMP_ATTR:function(){return eg},TEXT_HTML:function(){return ee},TEXT_PLAIN:function(){return Q},TEXT_RTF:function(){return et},TOKENS:function(){return p},globalDocument:function(){return S},globalWindow:function(){return C},lang:function(){return eb}});let n="4.14.3",r="es2021",s=!0,a=!0,l=!0,c=!1,u=!0,d="https://xdsoft.net/jodit/pro/",h=()=>c=!0,p={},f="\uFEFF",m=" ",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,y=()=>/^[\uFEFF]+/g,w=()=>/[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,k=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,C="u">typeof window?window:void 0,S="u">typeof document?document:void 0,x=/^(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,I=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,E=new Set(["ul","ol"]),T=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],j=new Set([...T,"br","hr"]),D=new Set(T),A="Meta",P="Backspace",L="Tab",M="Enter",R="Escape",z="Alt",B="ArrowLeft",N="ArrowUp",O="ArrowRight",F="ArrowDown",H="Space",U="Delete",q="F3",V=5,W=10,$=[A,P,U,N,F,O,B,M,R,q,L],G="br",K="p",Y=1,J=2,X=3,Z="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Q=Z?"text":"text/plain",ee=Z?"html":"text/html",et=Z?"rtf":"text/rtf",ei="jodit-selection_marker",eo=300,en="insert_as_html",er="insert_clear_html",es="insert_as_text",ea="insert_only_text",el=10,ec=void 0!==C&&/Mac|iPod|iPhone|iPad/.test(C.navigator.platform),eu={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ec?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ed=t=>{let i=t.split("/");return/\.js/.test(i[i.length-1])?{basePath:i.slice(0,i.length-1).join("/")+"/",isMin:!0}:{basePath:t,isMin:!0}},{basePath:eh,isMin:ep}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=S.currentScript;if(t)return ed(t.src);let i=S.querySelectorAll("script[src]");return i&&i.length?ed(i[i.length-1].src):ed(C.location.href)})(),ef=eh,em=ep,eg="data-jodit-temp",eb={},ev="clipboard",ey="source-consumer",ew=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,o){"use strict";o.d(i,{Create:function(){return l}});var n=o(82758),r=o(2748),s=o(21537),a=o(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,o){let n=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(n),i&&((0,s.isPlainObject)(i)?(0,s.attr)(n,i):o=i),o&&(0,s.asArray)(o).forEach(t=>r.Dom.append(n,(0,s.isString)(t)?this.fromHTML(t):t)),n}div(t,i,o){let n=this.element("div",i,o);return t&&(n.className=t),n}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});r.Dom.append(this.doc.body,i);let o=null==(t=i.contentWindow)?void 0:t.document;if((0,a.assert)(o,"iframe.contentWindow.document"),!o)throw Error("Iframe error");return o.open(),o.write("<!DOCTYPE html><html><head></head><body></body></html>"),o.close(),[o.body,i]}span(t,i,o){let n=this.element("span",i,o);return t&&(n.className=t),n}a(t,i,o){let n=this.element("a",i,o);return t&&(n.className=t),n}text(t){return this.doc.createTextNode(t)}fake(){return this.text(n.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let o=this.div();o.innerHTML=t.toString();let n=o.firstChild===o.lastChild&&o.firstChild?o.firstChild:o;if(r.Dom.safeRemove(n),i){let t=(0,s.refs)(n);Object.keys(i).forEach(o=>{let n=t[o];n&&!1===i[o]&&r.Dom.hide(n)})}return n}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let o=i[t.tagName.toLowerCase()];(0,s.isFunction)(o)?o(t):(0,s.isPlainObject)(o)&&(0,s.attr)(t,o)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,o){"use strict";o.d(i,{Create:function(){return n.Create}});var n=o(20218)},45219:function(t,i,o){"use strict";o.d(i,{autobind:function(){return r}});var n=o(23282);function r(t,i,o){if(!(0,n.isFunction)(o.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=o.value;return{configurable:!0,get(){let t=r.bind(this);return Object.defineProperty(this,i,{value:t,configurable:!0,writable:!0}),t}}}},33433:function(t,i,o){"use strict";o.d(i,{cache:function(){return c},cacheHTML:function(){return u},cached:function(){return l}});var n=o(78213),r=o(2748),s=o(27613),a=o(82760);function l(t,i){let o=Object.getOwnPropertyDescriptor(t,i);return!o||(0,s.isFunction)(o.get)?null:o.value}function c(t,i,o){let n=o.get;if(!n)throw(0,a.error)("Getter property descriptor expected");o.get=function(){let t=n.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:o.configurable,enumerable:o.enumerable,writable:!1,value:t}),t}}function u(t,i,o){let l=o.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let c=!0,u=new WeakMap;o.value=function(...t){var i;let o,n=null!=(o=this.od)?o:document,s=u.get(n);if(c&&(null==s?void 0:s.has(this.constructor)))return null==(i=s.get(this.constructor))?void 0:i.cloneNode(!0);let a=l.apply(this,t);return c&&r.Dom.isElement(a)&&(s?s.set(this.constructor,a):u.set(n,new WeakMap([[this.constructor,a]]))),c?a.cloneNode(!0):a},t.hookStatus(n.STATUSES.ready,t=>{c=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,o){"use strict";o.d(i,{component:function(){return a},getComponentClass:function(){return l}});var n=o(82758),r=o(80568);let s=new Map;function a(t){class i extends t{constructor(...t){super(...t),this.constructor===i&&(this instanceof i||Object.setPrototypeOf(this,i.prototype),this.setStatus("ready"))}}let o=(0,r.getClassName)(t.prototype);if(s.has(o)&&!n.IS_PROD)throw Error(`Component with name "${o}" is already registered`);return s.set(o,i),i}function l(t){return s.get(t)}},81577:function(t,i,o){"use strict";o.d(i,{debounce:function(){return l},throttle:function(){return c}});var n=o(91907),r=o(27613),s=o(38837),a=o(89890);function l(t,i=!1,o="debounce"){return(l,c)=>{let u=l[c];if(!(0,r.isFunction)(u))throw(0,a.error)("Handler must be a Function");return l.hookStatus(n.STATUSES.ready,n=>{let{async:a}=n;(0,s.assert)(null!=a,`Component ${n.componentName||n.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(n):t,u=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:n.defaultTimeout;Object.defineProperty(n,c,{configurable:!0,value:a[o](n[c].bind(n),u,i)})}),{configurable:!0,get(){return u.bind(this)}}}}function c(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,o){"use strict";o.d(i,{derive:function(){return r}});var n=o(23282);function r(...t){return i=>{let o=i.prototype;for(let i=0;i<t.length;i++){let r=t[i],s=Object.getOwnPropertyNames(r.prototype);for(let t=0;t<s.length;t++){let i=s[t],a=Object.getOwnPropertyDescriptor(r.prototype,i);null!=a&&(0,n.isFunction)(a.value)&&!(0,n.isFunction)(o[i])&&Object.defineProperty(o,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,o){"use strict";o.d(i,{hook:function(){return s}});var n=o(23282),r=o(89890);function s(t){return(i,o)=>{if(!(0,n.isFunction)(i[o]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[o].call(t)})}}},78927:function(t,i,o){"use strict";o.d(i,{idle:function(){return a}});var n=o(91907),r=o(23282),s=o(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(n.STATUSES.ready,t=>{let{async:o}=t,n=t[i];t[i]=(...i)=>o.requestIdleCallback(n.bind(t,...i))})}}},65478:function(t,i,o){"use strict";o.r(i),o.d(i,{autobind:function(){return n.autobind},cache:function(){return r.cache},cacheHTML:function(){return r.cacheHTML},cached:function(){return r.cached},component:function(){return s.component},debounce:function(){return a.debounce},derive:function(){return l.derive},getComponentClass:function(){return s.getComponentClass},hook:function(){return c.hook},idle:function(){return u.idle},nonenumerable:function(){return d.nonenumerable},persistent:function(){return h.persistent},throttle:function(){return a.throttle},wait:function(){return p.wait},watch:function(){return f.watch}});var n=o(45219),r=o(33433),s=o(87325),a=o(81577),l=o(55153),c=o(97357),u=o(78927),d=o(31589),h=o(53213),p=o(13525),f=o(37133)},31589:function(t,i,o){"use strict";o.d(i,{nonenumerable:function(){return n}});let n=(t,i)=>{!1!==(Object.getOwnPropertyDescriptor(t,i)||{}).enumerable&&Object.defineProperty(t,i,{enumerable:!1,set(t){Object.defineProperty(this,i,{enumerable:!1,writable:!0,value:t})}})}},53213:function(t,i,o){"use strict";o.d(i,{persistent:function(){return s}});var n=o(78213),r=o(39955);function s(t,i){t.hookStatus(n.STATUSES.ready,t=>{let o=(0,r.isViewObject)(t)?t:t.jodit,n=`${o.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=o.storage.get(n))?t:s},set(t){o.storage.set(n,t)}})})}},13525:function(t,i,o){"use strict";o.d(i,{wait:function(){return a}});var n=o(78213),r=o(23282),s=o(89890);function a(t){return(i,o)=>{let a=i[o];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(n.STATUSES.ready,i=>{let{async:n}=i,r=i[o],s=0;Object.defineProperty(i,o,{configurable:!0,value:function o(...a){n.clearTimeout(s),t(i)?r.apply(i,a):s=n.setTimeout(()=>o(...a),10)}})})}}},37133:function(t,i,o){"use strict";o.d(i,{watch:function(){return h}});var n=o(78213),r=o(73026),s=o(46559),a=o(23282),l=o(72430),c=o(39955),u=o(89890),d=o(37790);function h(t,i){return(o,h)=>{var p;if(!(0,a.isFunction)(o[h]))throw(0,u.error)("Handler must be a Function");let f=null==(p=null==i?void 0:i.immediately)||p,m=null==i?void 0:i.context,g=i=>{let n=(0,c.isViewObject)(i)?i:i.jodit,u=(t,...o)=>{if(!i.isInDestruct)return i[h](t,...o)};f||(u=i.async.microDebounce(u,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[o,r]=t.split(":"),s=m;o.length&&(s=i.get(o)),(0,a.isFunction)(s)&&(s=s(i)),n.events.on(s||i,r,u),s||n.events.on(r,u),i.hookStatus("beforeDestruct",()=>{n.events.off(s||i,r,u).off(r,u)});return}let s=t.split("."),[c]=s,h=s.slice(1),p=i[c];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on("change."+h.join("."),u);let f=(0,d.getPropertyDescriptor)(o,c);Object.defineProperty(i,c,{configurable:!0,set(t){let o=p;o!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on("change."+h.join("."),u),u(c,o,p))},get:()=>f&&f.get?f.get.call(i):p})})};(0,a.isFunction)(o.hookStatus)?o.hookStatus(n.STATUSES.ready,g):g(o)}}},2748:function(t,i,o){"use strict";o.d(i,{Dom:function(){return _}});var n=o(82758),r=o(4510),s=o(68345),a=o(23282),l=o(58487),c=o(42320),u=o(70799),d=o(86068),h=o(49055),p=o(38837),f=o(29960),m=o(41180),g=o(86583),b=o(89890),y=o(37790);let w=RegExp(`<([a-z]+)[^>]+${n.TEMP_ATTR}[^>]*>(.+?)</\\1>`,"gi");class _{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,o){let n,r=t;o.s.save();let s=!1;do s=!1,(n=r.nextSibling)&&!_.isBlock(n)&&!_.isTag(n,"br")&&(s=!0,r=n);while(s)return _.__wrapElements(i,o,t,r)}static __wrapElements(t,i,o,n){let r=(0,u.isString)(t)?i.createInside.element(t):t;o.parentNode&&o.parentNode.insertBefore(r,o);let s=o;for(;s&&(s=o.nextSibling,r.appendChild(o),o!==n&&s);)o=s;return i.s.restore(),r}static wrapInline(t,i,o){let n,r=t,s=t;o.s.save();let a=!1;do a=!1,(n=r.previousSibling)&&!_.isBlock(n)&&(a=!0,r=n);while(a)do a=!1,(n=s.nextSibling)&&!_.isBlock(n)&&(a=!0,s=n);while(a)return _.__wrapElements(i,o,r,s)}static wrap(t,i,o){let n=(0,u.isString)(i)?o.element(i):i;if(_.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(n,t),n.appendChild(t)}else{let i=t.extractContents();t.insertNode(n),n.appendChild(i)}return n}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);_.safeRemove(t)}}static between(t,i,o){let n=t;for(;n&&n!==i&&!(t!==n&&o(n));){let t=n.firstChild||n.nextSibling;if(!t){for(;n&&!n.nextSibling;)if((n=n.parentNode)===i)return;t=null==n?void 0:n.nextSibling}n=t}}static replace(t,i,o,n=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(o,"Need create instance for new tag"),i=o.fromHTML(i)),(0,u.isString)(i)?((0,p.assert)(o,"Need create instance for new tag"),a=o.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return n&&_.isElement(t)&&_.isElement(a)&&(0,r.toArray)(t.attributes).forEach(t=>{a.setAttribute(t.name,t.value)}),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return _.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return _.each(t,t=>_.isEmptyTextNode(t))}static isContentEditable(t,i){return _.isNode(t)&&!_.closest(t,t=>_.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=n.NO_EMPTY_TAGS){let o;if(!t)return!0;o=(0,a.isFunction)(i)?i:t=>i.has(t.nodeName.toLowerCase());let r=t=>null==t.nodeValue||0===(0,h.trim)(t.nodeValue).length;return _.isText(t)?r(t):!(_.isElement(t)&&o(t))&&_.each(t,t=>{if(_.isText(t)&&!r(t)||_.isElement(t)&&o(t))return!1})}static isNode(t){return!!(t&&(0,u.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return _.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return _.isTag(t,n.LIST_TAGS)}static isLeaf(t){return _.isTag(t,"li")}static isImage(t){return _.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,d.isVoid)(t)&&"object"==typeof t&&_.isNode(t)&&n.IS_BLOCK.test(t.nodeName)}static isText(t){return!!(t&&t.nodeType===Node.TEXT_NODE)}static isComment(t){return!!(t&&t.nodeType===Node.COMMENT_NODE)}static isElement(t){return!!_.isNode(t)&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){return!!_.isNode(t)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}static isHTMLElement(t){var i;if(!_.isNode(t))return!1;let o=null==(i=t.ownerDocument)?void 0:i.defaultView;return t instanceof(o?o.HTMLElement:HTMLElement)}static isInlineBlock(t){return _.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf((0,m.css)(t,"display").toString())}static canSplitBlock(t){return!(0,d.isVoid)(t)&&_.isHTMLElement(t)&&_.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static first(t,i){return _.__deepMost(t,i,!1)}static last(t,i){return _.__deepMost(t,i,!0)}static __deepMost(t,i,o){let n=o?"lastChild":"firstChild",r=o?"previousSibling":"nextSibling",s=null==t?void 0:t[n];if(!s)return null;do{if(i(s))return s;let o=s[n]||s[r];if(!o&&s.parentNode!==t){do s=s.parentNode;while(s&&!s[r]&&s.parentNode!==t)o=null==s?void 0:s[r]}s=o}while(s)return null}static prev(t,i,o,n=!0){return _.find(t,i,o,!1,n)}static next(t,i,o,n=!0){return _.find(t,i,o,!0,n)}static prevWithClass(t,i){return _.__siblingWithClass(t,i,!0)}static nextWithClass(t,i){return _.__siblingWithClass(t,i,!1)}static __siblingWithClass(t,i,o){let n=t=>_.isElement(t)&&t.classList.contains(i),r=t.parentNode;return o?_.prev(t,n,r):_.next(t,n,r)}static find(t,i,o,n=!0,r=!0){let s=this.nextGen(t,o,n,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,o=!0,n=!0){let r=[],s=t;do{let i=o?s.nextSibling:s.previousSibling;for(;i;)r.push(i),i=o?i.nextSibling:i.previousSibling;r.reverse(),yield*this.runInStack(t,r,o,n),s=s.parentNode}while(s&&s!==i)return null}static each(t,i,o=!0){let n=this.eachGen(t,o),r=n.next();for(;!r.done;){if(!1===i(r.value))return!1;r=n.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,o,n=!0){for(;i.length;){let r=i.pop();if(n){let t=o?r.lastChild:r.firstChild;for(;t;)i.push(t),t=o?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,o,n="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=_.findWithCurrent(s[r],i,s,n,r);if(t)return t}for(;s&&!s[n]&&s!==o;)s=s.parentNode;s&&s[n]&&s!==o&&(s=s[n])}while(s&&s!==o)return null}static findSibling(t,i=!0,o=t=>!_.isEmptyTextNode(t)){let n=_.sibling(t,i);for(;n&&!o(n);)n=_.sibling(n,i);return n&&o(n)?n:null}static findNotEmptySibling(t,i){return _.findSibling(t,i,t=>{var i;return!_.isEmptyTextNode(t)&&!!(!_.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,o){return(0,y.call)(i?_.prev:_.next,t,t=>!!(t&&(!(_.isText(t)||_.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),o)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,o,n=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===o||!r.parentNode)break;r=r.parentNode}while(r&&r!==o)return r===o&&n&&i(r)?r:null}static closest(t,i,o){let n,r=t=>t.toLowerCase();if((0,a.isFunction)(i))n=i;else if((0,s.isArray)(i)||(0,c.isSet)(i)){let t=(0,c.isSet)(i)?i:new Set(i.map(r));n=i=>!!(i&&t.has(r(i.nodeName)))}else n=t=>!!(t&&r(i)===r(t.nodeName));return _.up(t,n,o)}static furthest(t,i,o){let n=null,r=null==t?void 0:t.parentElement;for(;r&&r!==o;)i(r)&&(n=r),r=null==r?void 0:r.parentElement;return n}static appendChildFirst(t,i){t.firstChild!==i&&_.prepend(t,i)}static after(t,i){var o;null==(o=t.parentNode)||o.insertBefore(i,t.nextSibling)}static before(t,i){var o;null==(o=t.parentNode)||o.insertBefore(i,t)}static prepend(t,i){t.insertBefore(i,t.firstChild)}static append(t,i){(0,s.isArray)(i)?i.forEach(i=>{this.append(t,i)}):t.appendChild(i)}static moveContent(t,i,o=!1,s=()=>!0){let a=(t.ownerDocument||n.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(_.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),i.insertBefore(a,o?i.firstChild:null)}static isOrContains(t,i,o=!1){return t===i?!o:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>_.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let o=_.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&_.isTag(t.startContainer,n.INSEPARABLE_TAGS)?_.after(t.startContainer,i):(t.insertNode(i),o&&t.setStartBefore(o)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>_.isText(t)&&!t.nodeValue&&_.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.getPropertyValue("display")),t.style.setProperty("display","none"))}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.getPropertyValue("display")&&t.style.setProperty("display",i||null)}static isTag(t,i){if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");if(!this.isElement(t))return!1;let o=t.tagName.toLowerCase();return i instanceof Set?i.has(o)||i.has(t.tagName.toUpperCase()):o===i||t.tagName.toUpperCase()===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,n.TEMP_ATTR,!0),t}static isTemporary(t){return!!_.isElement(t)&&(_.isMarker(t)||"true"===(0,f.attr)(t,n.TEMP_ATTR))}static isMarker(t){return _.isNode(t)&&_.isTag(t,"span")&&t.hasAttribute("data-"+n.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(w,"$2")}static temporaryList(t){let i=[];return _.each(t,t=>{_.isHTMLElement(t)&&t.hasAttribute(n.TEMP_ATTR)&&i.push(t)}),i}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,o){"use strict";o.d(i,{Dom:function(){return n.Dom},LazyWalker:function(){return r.LazyWalker}});var n=o(2748),r=o(70071)},70071:function(t,i,o){"use strict";o.d(i,{LazyWalker:function(){return a}});var n=o(45219),r=o(2748),s=o(72757);class a extends s.Eventify{setWork(t){return this.isWorked?this.break():this.stop(),this.workNodes=r.Dom.eachGen(t,!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(t){this.isWorked&&(this.stop(),this.emit("break",t))}end(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}stop(){var t;this.isWorked=!1,this.isFinished=!0,this.workNodes=null,null==(t=this.__schedulerController)||t.abort(),this.__schedulerController=null}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,o=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<o;){let t=this.workNodes.next();if(i+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}visitNode(t){var i;return!!t&&(void 0===this.options.whatToShow||t.nodeType===this.options.whatToShow)&&null!=(i=this.emit("visit",t))&&i}constructor(t,i={}){super(),this.async=t,this.options=i,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.__schedulerController=null}}!function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);s>3&&a&&Object.defineProperty(i,o,a)}([n.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,o){"use strict";o.d(i,{EventEmitter:function(){return d}});var n=o(82758),r=o(46559),s=o(68345),a=o(23282),l=o(70799),c=o(89890),u=o(15738);class d{mute(t){return this.__mutedEvents.add(null!=t?t:"*"),this}isMuted(t){return!!(t&&this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(null!=t?t:"*"),this}__eachEvent(t,i){(0,r.splitArray)(t).map(t=>t.trim()).forEach(t=>{let o=t.split("."),n=o[1]||u.defaultNameSpace;i.call(this,o[0],n)})}__getStore(t){if(!t)throw(0,c.error)("Need subject");if(void 0===t[this.__key]){let i=new u.EventHandlersStore;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:i})}return t[this.__key]}__removeStoreFromSubject(t){void 0!==t[this.__key]&&delete t[this.__key]}__triggerNativeEvent(t,i){let o=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?o.initEvent(i,!0,!0):(o.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(o,t,{value:i[t],enumerable:!0})}),Object.defineProperty(o,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(o)}get current(){return this.currents[this.currents.length-1]}on(t,i,o,r){let u,d,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(u=this,d=t,p=i,f=o):(u=t,d=i,p=o,f=r),!((0,l.isString)(d)||(0,l.isStringArray)(d))||0===d.length)throw(0,c.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,c.error)("Need event handler");if((0,s.isArray)(u))return u.forEach(t=>{this.on(t,d,p,f)}),this;let m=u,g=this.__getStore(m),b=this,y=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(y=function(t){if(!b.isMuted(t.type)&&(b.__prepareEvent(t),p&&!1===p.call(this,t)))return t.preventDefault(),t.stopImmediatePropagation(),!1}),this.__eachEvent(d,(t,i)=>{var o,r;if(0===t.length)throw(0,c.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:y};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=n.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(o=null==f?void 0:f.capture)&&o}:null!=(r=null==f?void 0:f.capture)&&r;y.options=i,m.addEventListener(t,y,i),this.__memoryDOMSubjectToHandler(m,y)}}}),this}__memoryDOMSubjectToHandler(t,i){let o=this.__domEventsMap.get(t)||new Set;o.add(i),this.__domEventsMap.set(t,o)}__unmemoryDOMSubjectToHandler(t,i){let o=this.__domEventsMap,n=o.get(t)||new Set;n.delete(i),n.size?o.set(t,n):o.delete(t)}one(t,i,o,n){let r,s,a,c;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,c=o):(r=t,s=i,a=o,c=n);let u=(...t)=>(this.off(r,s,u),a(...t));return this.on(r,s,u,c),this}off(t,i,o){let n,r,c;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(n=this,r=t,c=i):(n=t,r=i,c=o),(0,s.isArray)(n))return n.forEach(t=>{this.off(t,r,c)}),this;let d=n,p=this.__getStore(d);if(!((0,l.isString)(r)||(0,l.isStringArray)(r))||0===r.length)return p.namespaces().forEach(t=>{this.off(d,"."+t)}),this.__removeStoreFromSubject(d),this;let f=t=>{var i;h(d)&&(d.removeEventListener(t.event,t.syntheticCallback,null!=(i=t.syntheticCallback.options)&&i),this.__unmemoryDOMSubjectToHandler(d,t.syntheticCallback))},m=(t,i)=>{if(""===t)return void p.events(i).forEach(t=>{""!==t&&m(t,i)});let o=p.get(t,i);if(o&&o.length)if((0,a.isFunction)(c)){let n=p.indexOf(t,i,c);!1!==n&&(f(o[n]),o.splice(n,1),o.length||p.clearEvents(i,t))}else o.forEach(f),o.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===u.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(t,i){let o=(0,l.isString)(t)?this:t,n=(0,l.isString)(t)?t:i;if("string"!=typeof n)throw(0,c.error)("Need event names");let r=this.__getStore(o);this.__eachEvent(n,(t,i)=>{let n=r.get(t,i);n&&this.__stopped.push(n),i===u.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(o,t+"."+i))})}__removeStop(t){if(t){let i=this.__stopped.indexOf(t);-1!==i&&this.__stopped.splice(0,i+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,i,...o){let n,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,d=(0,l.isString)(t)?[i,...o]:o;if(!h(s)&&!(0,l.isString)(a))throw(0,c.error)("Need events names");let p=this.__getStore(s);return!(0,l.isString)(a)&&h(s)?this.__triggerNativeEvent(s,i):this.__eachEvent(a,(t,i)=>{if(h(s))this.__triggerNativeEvent(s,t);else{let o=p.get(t,i);if(o)try{[...o].every(i=>!this.__isStopped(o)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...d),this.currents.pop(),void 0!==r&&(n=r),!0))}finally{this.__removeStop(o)}i!==u.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let o=this.fire.apply(this,[s,t+"."+i,...d]);void 0!==o&&(n=o)})}}),n}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((t,i)=>{this.off(i)}),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(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=n.globalDocument,this.__prepareEvent=t=>{!t.cancelBubble&&(t.composed&&(0,a.isFunction)(t.composedPath)&&t.composedPath()[0]&&Object.defineProperty(t,"target",{value:t.composedPath()[0],configurable:!0,enumerable:!0}),t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(i=>{Object.defineProperty(t,i,{value:t.changedTouches[0][i],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&this.__doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:()=>this.__doc.defaultView.clipboardData,configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=new Date().getTime()}}function h(t){return t&&(0,a.isFunction)(t.addEventListener)}},72757:function(t,i,o){"use strict";o.d(i,{Eventify:function(){return n}});class n{on(t,i){var o;return this.__map.has(t)||this.__map.set(t,new Set),null==(o=this.__map.get(t))||o.add(i),this}off(t,i){var o;return this.__map.has(t)&&(null==(o=this.__map.get(t))||o.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var o;let n;return this.__map.has(t)&&(null==(o=this.__map.get(t))||o.forEach(t=>{n=t(...i)})),n}constructor(){this.__map=new Map}}},57012:function(t,i,o){"use strict";o.d(i,{eventEmitter:function(){return n}});let n=new(o(98220)).EventEmitter},3827:function(t,i,o){"use strict";o.d(i,{EventEmitter:function(){return n.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var n=o(98220),r=o(72757),s=o(73026),a=o(15738)},73026:function(t,i,o){"use strict";o.d(i,{observable:function(){return u}});var n=o(68345),r=o(59292),s=o(72430),a=o(37790);let l=Symbol("observable-object");function c(t){return void 0!==t[l]}function u(t){if(c(t))return t;let i={},o={},u=(i,r)=>((0,n.isArray)(i)?i.map(t=>u(t,r)):(o[i]||(o[i]=[]),o[i].push(r)),t),d=(r,...s)=>{if((0,n.isArray)(r))return void r.map(t=>d(t,...s));try{!i[r]&&o[r]&&(i[r]=!0,o[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,o=[])=>{let n={};c(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let c=o.concat(l).filter(t=>t.length);n[l]=i[l];let u=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set(i){let o=n[l];if(!(0,r.isFastEqual)(n[l],i)){d(["beforeChange","beforeChange."+c.join(".")],l,i),(0,s.isPlainObject)(i)&&h(i,c),u&&u.set?u.set.call(t,i):n[l]=i;let r=[];d(["change",...c.reduce((t,i)=>(r.push(i),t.push("change."+r.join(".")),t),[])],c.join("."),o,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>u&&u.get?u.get.call(t):n[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(n[l])&&h(n[l],c)}),Object.defineProperty(t,"on",{value:u}))};return h(t),t}},15738:function(t,i,o){"use strict";o.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var n=o(4510),r=o(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let o=this.__store.get(i);return(0,r.assert)(o,"-"),o[t]}}indexOf(t,i,o){let n=this.get(t,i);if(n){for(let t=0;t<n.length;t+=1)if(n[t].originalCallback===o)return t}return!1}namespaces(t=!1){let i=(0,n.toArray)(this.__store.keys());return t?i.filter(t=>t!==s):i}events(t){let i=this.__store.get(t);return i?Object.keys(i):[]}set(t,i,o,n=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),n?r[t].unshift(o):r[t].push(o)}clear(){this.__store.clear()}clearEvents(t,i){let o=this.__store.get(t);o&&o[i]&&(delete o[i],Object.keys(o).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,o){"use strict";o.d(i,{eventEmitter:function(){return I},extendLang:function(){return k},getContainer:function(){return S},getPopupViewRoot:function(){return x},instances:function(){return m},modules:function(){return _},pluginSystem:function(){return w},uniqueUid:function(){return y}});var n=o(19306),r=o(70799),s=o(39955),a=o(12475),l=o(29960),c=o(41180),u=o(80568),d=o(41876),h=o(57012),p=o(82758),f=o(22732);let m={},g=1,b=new Set;function y(){function t(){return Math.round(g+=10*(Math.random()+1)).toString(16)}let i=t();for(;b.has(i);)i=t();return b.add(i),i}let w=new d.PluginSystem({getContainer:S}),_={},k=t=>{Object.keys(t).forEach(i=>{p.lang[i]?Object.assign(p.lang[i],t[i]):p.lang[i]=t[i]})},C=new WeakMap;function S(t,i,o="div",c=!1){let d=(0,r.isString)(i)?i:i?(0,u.getClassName)(i.prototype):"jodit-utils",h=C.get(t)||{},p=d+o,m=(0,s.isViewObject)(t)?t:t.j,g=null;if(!h[p]){let i=m.c;if(g=x(m.o,m.container,t.od.body),c&&(0,n.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===o?t.ed.head:t.ed.body;g=(0,n.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(o,{className:`jodit jodit-${(0,a.kebabCase)(d)}-container jodit-box`});m.o.nonce&&("style"===o||"script"===o)&&(0,l.attr)(r,"nonce",m.o.nonce),r.classList.add("jodit_theme_"+(m.o.theme||"default")),f.Dom.append(g,r),h[p]=r,t.hookStatus("beforeDestruct",()=>{m.events.off(r),f.Dom.safeRemove(r),delete h[p],Object.keys(h).length&&C.delete(t)}),C.set(t,h),m.events.fire("getContainer",r)}return h[p].classList.remove("jodit_theme_default","jodit_theme_dark"),h[p].classList.add("jodit_theme_"+(m.o.theme||"default")),h[p]}function x(t,i,o){var n,r,s;return null!=(s=null!=(r=null!=(n=t.popupRoot)?n:t.shadowRoot)?r:f.Dom.closest(i,t=>f.Dom.isHTMLElement(t)&&(f.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,c.css)(t,"position"))),o))?s:o}let I=h.eventEmitter},29999:function(t,i,o){"use strict";o.d(i,{asArray:function(){return r}});var n=o(68345);let r=t=>(0,n.isArray)(t)?t:[t]},76855:function(t,i,o){"use strict";o.d(i,{asArray:function(){return n.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var n=o(29999),r=o(46559),s=o(4510)},46559:function(t,i,o){"use strict";function n(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}o.d(i,{splitArray:function(){return n}})},4510:function(t,i,o){"use strict";o.d(i,{toArray:function(){return s}});var n=o(70722),r=o(58844);let s=function(...t){var i;return((0,n.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,o){"use strict";o.d(i,{clearTimeout:function(){return n.clearTimeout},setTimeout:function(){return n.setTimeout}});var n=o(13252)},13252:function(t,i,o){"use strict";o.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var n=o(82758);function r(t,i,...o){return i?n.globalWindow.setTimeout(t,i,...o):(t.call(null,...o),0)}function s(t){n.globalWindow.clearTimeout(t)}},54765:function(t,i,o){"use strict";o.d(i,{hasBrowserColorPicker:function(){return r}});var n=o(82758);function r(){let t=!0;try{let i=n.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,o){"use strict";o.d(i,{hasBrowserColorPicker:function(){return n.hasBrowserColorPicker},hasContainer:function(){return h.hasContainer},isAbortError:function(){return r.isAbortError},isArray:function(){return s.isArray},isBoolean:function(){return a.isBoolean},isDestructable:function(){return h.isDestructable},isEqual:function(){return l.isEqual},isFastEqual:function(){return l.isFastEqual},isFunction:function(){return c.isFunction},isHTML:function(){return u.isHTML},isHtmlFromWord:function(){return d.isHtmlFromWord},isInitable:function(){return h.isInitable},isInt:function(){return p.isInt},isJoditObject:function(){return f.isJoditObject},isLicense:function(){return m.isLicense},isMarker:function(){return g.isMarker},isNativeFunction:function(){return b.isNativeFunction},isNumber:function(){return y.isNumber},isNumeric:function(){return w.isNumeric},isPlainObject:function(){return _.isPlainObject},isPromise:function(){return k.isPromise},isSet:function(){return C.isSet},isString:function(){return S.isString},isStringArray:function(){return S.isStringArray},isURL:function(){return x.isURL},isValidName:function(){return I.isValidName},isViewObject:function(){return E.isViewObject},isVoid:function(){return T.isVoid},isWindow:function(){return j.isWindow}});var n=o(54765),r=o(12045),s=o(68345),a=o(87612),l=o(59292),c=o(23282),u=o(58487),d=o(29673),h=o(60132),p=o(72913),f=o(19306),m=o(45603),g=o(78116),b=o(70722),y=o(84767),w=o(29807),_=o(72430),k=o(14773),C=o(42320),S=o(70799),x=o(26049),I=o(37508),E=o(39955),T=o(86068),j=o(52742)},12045:function(t,i,o){"use strict";function n(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}o.d(i,{isAbortError:function(){return n}})},68345:function(t,i,o){"use strict";function n(t){return Array.isArray(t)}o.d(i,{isArray:function(){return n}})},87612:function(t,i,o){"use strict";function n(t){return"boolean"==typeof t}o.d(i,{isBoolean:function(){return n}})},59292:function(t,i,o){"use strict";o.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var n=o(67462);function r(t,i){return t===i||(0,n.stringify)(t)===(0,n.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,o){"use strict";function n(t){return"function"==typeof t}o.d(i,{isFunction:function(){return n}})},29673:function(t,i,o){"use strict";function n(t){return -1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/<meta[^>]*?ProgId[^>]*?(Word|Excel)\./i)||-1!==t.search(/<meta[^>]*?(LibreOffice|OpenOffice)/i)||-1!==t.search(/urn:schemas-microsoft-com:office:(word|excel)/)||-1!==t.search(/<\w[^>]*\sclass=("|')?Mso/)||-1!==t.search(/style='[^']*mso-/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}o.d(i,{isHtmlFromWord:function(){return n}})},58487:function(t,i,o){"use strict";o.d(i,{isHTML:function(){return r}});var n=o(70799);let r=t=>(0,n.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,o){"use strict";o.d(i,{hasContainer:function(){return c},isDestructable:function(){return l},isInitable:function(){return a}});var n=o(2748),r=o(23282),s=o(86068);function a(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.init)}function l(t){return!(0,s.isVoid)(t)&&(0,r.isFunction)(t.destruct)}function c(t){return!(0,s.isVoid)(t)&&n.Dom.isElement(t.container)}},72913:function(t,i,o){"use strict";o.d(i,{isInt:function(){return s}});var n=o(29807),r=o(70799);function s(t){return(0,r.isString)(t)&&(0,n.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,o){"use strict";o.d(i,{isJoditObject:function(){return r}});var n=o(23282);function r(t){return!!(t&&t instanceof Object&&(0,n.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,o){"use strict";o.d(i,{isLicense:function(){return r}});var n=o(70799);let r=t=>(0,n.isString)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},78116:function(t,i,o){"use strict";o.d(i,{isMarker:function(){return r}});var n=o(2748);function r(t){return n.Dom.isMarker(t)}},70722:function(t,i,o){"use strict";function n(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===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(t+""))}o.d(i,{isNativeFunction:function(){return n}})},84767:function(t,i,o){"use strict";function n(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}o.d(i,{isNumber:function(){return n}})},29807:function(t,i,o){"use strict";o.d(i,{isNumeric:function(){return r}});var n=o(70799);function r(t){if((0,n.isString)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},72430:function(t,i,o){"use strict";o.d(i,{isPlainObject:function(){return r}});var n=o(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,n.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,o){"use strict";function n(t){return t&&"function"==typeof t.then}o.d(i,{isPromise:function(){return n}})},42320:function(t,i,o){"use strict";o.d(i,{isSet:function(){return r}});var n=o(23282);function r(t){return!!t&&(0,n.isFunction)(t.has)&&(0,n.isFunction)(t.add)&&(0,n.isFunction)(t.delete)}},70799:function(t,i,o){"use strict";o.d(i,{isString:function(){return r},isStringArray:function(){return s}});var n=o(68345);function r(t){return"string"==typeof t}function s(t){return(0,n.isArray)(t)&&r(t[0])}},26049:function(t,i,o){"use strict";o.d(i,{isURL:function(){return r}});var n=o(82758);function r(t){if(t.includes(" "))return!1;if("u">typeof URL)try{let i=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(i.protocol)}catch(t){return!1}let i=n.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,o){"use strict";function n(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}o.d(i,{isValidName:function(){return n}})},39955:function(t,i,o){"use strict";o.d(i,{isViewObject:function(){return r}});var n=o(23282);function r(t){return!!(t&&t instanceof Object&&(0,n.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,o){"use strict";function n(t){return null==t}o.d(i,{isVoid:function(){return n}})},52742:function(t,i,o){"use strict";function n(t){return null!=t&&t===t.window}o.d(i,{isWindow:function(){return n}})},35278:function(t,i,o){"use strict";o.d(i,{colorToHex:function(){return n}});let n=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;let i=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!i)return"#000000";let o=parseInt(i[2],10),n=parseInt(i[3],10),r=(parseInt(i[4],10)|n<<8|o<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,o){"use strict";o.d(i,{colorToHex:function(){return n.colorToHex}});var n=o(35278)},32574:function(t,i,o){"use strict";o.d(i,{applyStyles:function(){return d}});var n=o(82758),r=o(2748),s=o(49055),a=o(29960),l=o(41180),c=o(76078);function u(t){return t.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(t,i,o)=>{switch(o.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function d(t){let i=/<html(?:\s[^>]*)?>/i.exec(t);if(!i)return t;let o=(t=t.substring(i.index)).toLowerCase().lastIndexOf("</html>");-1!==o&&(t=t.substring(0,o+7));let d=n.globalDocument.createElement("iframe");(0,l.css)(d,"display","none"),r.Dom.append(n.globalDocument.body,d);let h="";try{let i=d.contentDocument||(d.contentWindow?d.contentWindow.document:null);if(i){i.open(),i.write(t),i.close(),r.Dom.each(i.body,t=>{r.Dom.isElement(t)&&/mso-list:\s*ignore/i.test((0,a.attr)(t,"style")||"")&&r.Dom.safeRemove(t)});try{for(let t=0;t<i.styleSheets.length;t+=1){let o=i.styleSheets[t].cssRules;for(let t=0;t<o.length;t+=1)""!==o[t].selectorText&&(0,c.$$)(o[t].selectorText,i.body).forEach(i=>{i.style.cssText=u(o[t].style.cssText+";"+i.style.cssText)})}}catch(t){if(!n.IS_PROD)throw t}r.Dom.each(i.body,t=>{if(r.Dom.isElement(t)){let i=(0,a.attr)(t,"style");i&&(t.style.cssText=u(i)),(0,a.attr)(t,"style")||(0,a.attr)(t,"style",null)}}),h=i.firstChild?(0,s.trim)(i.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(d)}return h&&(t=h),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,o){"use strict";o.d(i,{cleanFromWord:function(){return c}});var n=o(82758),r=o(2748),s=o(4510),a=o(49055),l=o(29960);function c(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let o=n.globalDocument.createElement("div");o.innerHTML=t;let a=[];o.firstChild&&r.Dom.each(o,t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":a.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.Dom.unwrap(t);break;default:if(/mso-list:\s*ignore/i.test((0,l.attr)(t,"style")||"")){a.push(t);break}(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&(0,l.attrRaw)(t,i.name,null)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=o.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join(`
18
18
  `)).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(t,i,o){"use strict";o.d(i,{htmlspecialchars:function(){return r}});var n=o(82758);function r(t){let i=n.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},75275:function(t,i,o){"use strict";o.d(i,{applyStyles:function(){return n.applyStyles},cleanFromWord:function(){return r.cleanFromWord},htmlspecialchars:function(){return s.htmlspecialchars},nl2br:function(){return a.nl2br},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},stripTags:function(){return c.stripTags}});var n=o(32574),r=o(53212),s=o(53326),a=o(45971),l=o(86518),c=o(91003)},45971:function(t,i,o){"use strict";function n(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}o.d(i,{nl2br:function(){return n}})},86518:function(t,i,o){"use strict";o.d(i,{safeHTML:function(){return c},sanitizeHTMLElement:function(){return p}});var n=o(2748),r=o(43555),s=o(29960);let a=new Set(["foreignobject","annotation-xml","desc","title"]),l=t=>!!(t&&/^(math|svg)$/i.test(t.nodeName));function c(t,i){var o;if(!n.Dom.isElement(t)&&!n.Dom.isFragment(t))return;let c=[];for(let i of(n.Dom.each(t,t=>{n.Dom.isElement(t)&&n.Dom.up(t.parentNode,l)&&c.push(t)}),c))n.Dom.isOrContains(t,i)&&function(t){if("http://www.w3.org/1999/xhtml"!==t.namespaceURI||null==n.Dom.up(t,l))return!1;for(let i=t.parentElement;i;i=i.parentElement){let t=i.nodeName.toLowerCase();if("math"===t||"svg"===t)break;if(a.has(t))return!1}return!0}(i)&&n.Dom.safeRemove(i);let u=null!=(o=i.removeEventAttributes)?o:i.removeOnError,d=t=>{if(n.Dom.isElement(t)&&(u&&function(t){if(!n.Dom.isElement(t))return;let i=[];for(let o=0;o<t.attributes.length;o++)t.attributes[o].name.toLowerCase().startsWith("on")&&i.push(t.attributes[o].name);for(let o of i)(0,s.attrRaw)(t,o,null)}(t),p(t,i),i.safeLinksTarget&&"A"===t.nodeName&&"_blank"===(0,r.attr)(t,"target"))){let i=((0,r.attr)(t,"rel")||"").split(/\s+/).filter(Boolean);i.includes("noopener")||i.push("noopener"),i.includes("noreferrer")||i.push("noreferrer"),(0,r.attr)(t,"rel",i.join(" "))}};d(t),n.Dom.each(t,d)}let u=["src","data","action","formaction","poster","background","xlink:href"],d=new Set(["iframe","frame","object","embed"]);function h(t,i){let o=t.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(o)||/^data:(?:text\/html|application\/xhtml)/.test(o))||/^data:image\/svg/.test(o)&&d.has(i)}function p(t,{safeJavaScriptLink:i,removeOnError:o}={safeJavaScriptLink:!0,removeOnError:!0}){if(!n.Dom.isElement(t))return!1;let a=!1;o&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),a=!0);let l=t.nodeName.toLowerCase(),c=(0,r.attr)(t,"href");if(i&&c&&h(c,l)){let i="u">typeof location?location.protocol:"http:";(0,r.attr)(t,"href",i+"//"+c),a=!0}if(i)for(let i of(t.hasAttribute("srcdoc")&&((0,r.attr)(t,"srcdoc",null),a=!0),u)){let o=(0,s.attrRaw)(t,i);o&&h(o,l)&&((0,r.attr)(t,i,null),a=!0)}return a}},91003:function(t,i,o){"use strict";o.d(i,{stripTags:function(){return function t(i,o=document,u=null,d=!1){let h=o.createElement("div");(0,r.isString)(i)?h.innerHTML=i:n.Dom.append(h,i);let p=[];return n.Dom.each(h,t=>{n.Dom.isElement(t)&&p.push(t)}),p.forEach(i=>{if(!i.parentNode)return;if(u&&n.Dom.isTag(i,u)){let r=i.nodeName.toLowerCase(),s=n.Dom.isTag(i,c)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${t(i.innerHTML,o,u,d)}%%%/jodit-${r}%%%`;n.Dom.before(i,o.createTextNode(s)),n.Dom.safeRemove(i);return}if(n.Dom.isTag(i,l))return void n.Dom.safeRemove(i);if(!n.Dom.isTag(i,a))return;let r=i.nextSibling;!(n.Dom.isText(r)&&/^\s/.test(r.nodeValue||""))&&r&&n.Dom.before(r,o.createTextNode(d?"%%%jodit-single-br%%%":" "))}),(0,s.trim)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,i,o,n)=>`<${i?"/":""}${n}>`)}}});var n=o(2748),r=o(70799),s=o(49055);let a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"])},21537:function(t,i,o){"use strict";o.r(i),o.d(i,{$$:function(){return h.$$},CamelCaseToKebabCase:function(){return d.CamelCaseToKebabCase},ConfigDeepFlatten:function(){return h.ConfigDeepFlatten},ConfigFlatten:function(){return h.ConfigFlatten},ConfigMerge:function(){return h.ConfigMerge},ConfigProto:function(){return h.ConfigProto},ConnectionError:function(){return h.ConnectionError},LimitedStack:function(){return h.LimitedStack},NUMBER_FIELDS_REG:function(){return c.NUMBER_FIELDS_REG},OptionsError:function(){return h.OptionsError},UNSAFE_PROTO_KEYS:function(){return h.UNSAFE_PROTO_KEYS},abort:function(){return h.abort},alignElement:function(){return h.alignElement},alreadyLoadedList:function(){return h.alreadyLoadedList},appendScriptAsync:function(){return h.appendScriptAsync},appendStyleAsync:function(){return h.appendStyleAsync},applyStyles:function(){return l.applyStyles},asArray:function(){return n.asArray},assert:function(){return h.assert},attr:function(){return h.attr},attrRaw:function(){return h.attrRaw},browser:function(){return h.browser},buildQuery:function(){return h.buildQuery},call:function(){return h.call},callPromise:function(){return h.callPromise},callThis:function(){return h.callThis},camelCase:function(){return d.camelCase},cleanFromWord:function(){return l.cleanFromWord},clearAlign:function(){return h.clearAlign},clearCenterAlign:function(){return h.clearCenterAlign},clearTimeout:function(){return r.clearTimeout},cns:function(){return h.cns},colorToHex:function(){return a.colorToHex},completeUrl:function(){return h.completeUrl},connection:function(){return h.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return h.css},cssInline:function(){return h.cssInline},cssPath:function(){return h.cssPath},ctrlKey:function(){return h.ctrlKey},dataBind:function(){return h.dataBind},defaultLanguage:function(){return h.defaultLanguage},error:function(){return h.error},fastClone:function(){return h.fastClone},fuzzySearchIndex:function(){return d.fuzzySearchIndex},get:function(){return h.get},getClassName:function(){return h.getClassName},getContentWidth:function(){return u.getContentWidth},getDataTransfer:function(){return h.getDataTransfer},getFixedPositionOffset:function(){return u.getFixedPositionOffset},getPropertyDescriptor:function(){return h.getPropertyDescriptor},getScrollParent:function(){return u.getScrollParent},getXPathByElement:function(){return h.getXPathByElement},hAlignElement:function(){return h.hAlignElement},hasBrowserColorPicker:function(){return s.hasBrowserColorPicker},hasContainer:function(){return s.hasContainer},htmlspecialchars:function(){return l.htmlspecialchars},humanSizeToBytes:function(){return h.humanSizeToBytes},i18n:function(){return d.i18n},inView:function(){return h.inView},innerWidth:function(){return u.innerWidth},isAbortError:function(){return s.isAbortError},isArray:function(){return s.isArray},isAtom:function(){return h.isAtom},isBoolean:function(){return s.isBoolean},isDestructable:function(){return s.isDestructable},isEqual:function(){return s.isEqual},isFastEqual:function(){return s.isFastEqual},isFunction:function(){return s.isFunction},isHTML:function(){return s.isHTML},isHtmlFromWord:function(){return s.isHtmlFromWord},isInitable:function(){return s.isInitable},isInt:function(){return s.isInt},isJoditObject:function(){return s.isJoditObject},isLicense:function(){return s.isLicense},isMarker:function(){return s.isMarker},isNativeFunction:function(){return s.isNativeFunction},isNumber:function(){return s.isNumber},isNumeric:function(){return s.isNumeric},isPlainObject:function(){return s.isPlainObject},isPromise:function(){return s.isPromise},isSet:function(){return s.isSet},isString:function(){return s.isString},isStringArray:function(){return s.isStringArray},isURL:function(){return s.isURL},isUnsafeProtoKey:function(){return h.isUnsafeProtoKey},isValidName:function(){return s.isValidName},isViewObject:function(){return s.isViewObject},isVoid:function(){return s.isVoid},isWindow:function(){return s.isWindow},kebabCase:function(){return d.kebabCase},keepNames:function(){return h.keepNames},keys:function(){return h.keys},loadImage:function(){return h.loadImage},loadNext:function(){return h.loadNext},loadNextStyle:function(){return h.loadNextStyle},markAsAtomic:function(){return h.markAsAtomic},markDeprecated:function(){return h.markDeprecated},markOwner:function(){return h.markOwner},memorizeExec:function(){return h.memorizeExec},nl2br:function(){return l.nl2br},normalizeColor:function(){return c.normalizeColor},normalizeCssNumericValue:function(){return c.normalizeCssNumericValue},normalizeCssValue:function(){return c.normalizeCssValue},normalizeKeyAliases:function(){return c.normalizeKeyAliases},normalizeLicense:function(){return c.normalizeLicense},normalizePath:function(){return c.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return c.normalizeUrl},offset:function(){return u.offset},options:function(){return h.options},parseQuery:function(){return h.parseQuery},position:function(){return u.position},previewBox:function(){return h.previewBox},refs:function(){return h.refs},reset:function(){return h.reset},resolveElement:function(){return h.resolveElement},safeHTML:function(){return l.safeHTML},sanitizeHTMLElement:function(){return l.sanitizeHTMLElement},scrollIntoViewIfNeeded:function(){return h.scrollIntoViewIfNeeded},set:function(){return h.set},setTimeout:function(){return r.setTimeout},size:function(){return u.size},splitArray:function(){return n.splitArray},sprintf:function(){return d.sprintf},stringify:function(){return d.stringify},stripTags:function(){return l.stripTags},toArray:function(){return n.toArray},trim:function(){return d.trim},trimChars:function(){return d.trimChars},trimInv:function(){return d.trimInv},ucfirst:function(){return d.ucfirst}});var n=o(76855),r=o(91898),s=o(27613),a=o(58149),l=o(75275),c=o(71521),u=o(56175),d=o(59007),h=o(43555)},71521:function(t,i,o){"use strict";o.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return n.normalizeColor},normalizeCssNumericValue:function(){return r.normalizeCssNumericValue},normalizeCssValue:function(){return r.normalizeCssValue},normalizeKeyAliases:function(){return s.normalizeKeyAliases},normalizeLicense:function(){return a.normalizeLicense},normalizePath:function(){return l.normalizePath},normalizeRelativePath:function(){return c.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return d.normalizeUrl}});var n=o(21224),r=o(3760),s=o(49033),a=o(12972),l=o(9992),c=o(70091),u=o(46334),d=o(37406)},21224:function(t,i,o){"use strict";o.d(i,{normalizeColor:function(){return s}});var n=o(35278),r=o(49055);let s=t=>{let i=["#"],o=(0,n.colorToHex)(t);if(!o)return!1;if(3===(o=(o=(0,r.trim)(o.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)i.push(o[t]),i.push(o[t]);return i.join("")}return o.length>6&&(o=o.slice(0,6)),"#"+o}},3760:function(t,i,o){"use strict";o.d(i,{NUMBER_FIELDS_REG:function(){return l},normalizeCssNumericValue:function(){return c},normalizeCssValue:function(){return u}});var n=o(29807),r=o(86068),s=o(35278),a=o(12475);let l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function c(t,i){return!(0,r.isVoid)(i)&&l.test(t)&&(0,n.isNumeric)(i.toString())?parseInt(i.toString(),10)+"px":i}function u(t,i){if("font-weight"===(0,a.kebabCase)(t)){switch(i.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,n.isNumeric)(i)?Number(i):i}return/color/i.test(t)&&/^rgb/i.test(i.toString())&&(0,s.colorToHex)(i.toString())||i}},49033:function(t,i,o){"use strict";o.d(i,{normalizeKeyAliases:function(){return s}});var n=o(82758),r=o(49055);function s(t){let i={},o={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(t=>(0,r.trim)(t.toLowerCase())).map(t=>n.KEY_ALIASES[t]||t).sort((t,i)=>o[t]&&!o[i]?-1:!o[t]&&o[i]?1:o[t]&&o[i]?o[t]-o[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},12972:function(t,i,o){"use strict";o.d(i,{normalizeLicense:function(){return n}});let n=(t,i=8)=>{let o=[];for(;t.length;)o.push(t.substr(0,i)),t=t.substr(i);return o[1]=o[1].replace(/./g,"*"),o[2]=o[2].replace(/./g,"*"),o.join("-")}},9992:function(t,i,o){"use strict";o.d(i,{normalizePath:function(){return r}});var n=o(49055);let r=(...t)=>t.filter(t=>(0,n.trim)(t).length).map((i,o)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),o&&(i=i.replace(/^\//,"")),o!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},70091:function(t,i,o){"use strict";o.d(i,{normalizeRelativePath:function(){return n}});let n=t=>t.split("/").reduce((t,i)=>{switch(i){case"":case".":break;case"..":t.pop();break;default:t.push(i)}return t},[]).join("/")+(t.endsWith("/")?"/":"")},46334:function(t,i,o){"use strict";o.d(i,{normalizeSize:function(){return n}});let n=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},37406:function(t,i,o){"use strict";o.d(i,{normalizeUrl:function(){return n}});let n=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(t,i,o){"use strict";o.d(i,{getContentWidth:function(){return n}});let n=(t,i)=>{let o=i.getComputedStyle(t);return t.offsetWidth-parseInt(o.getPropertyValue("padding-left")||"0",10)-parseInt(o.getPropertyValue("padding-right")||"0",10)}},35224:function(t,i,o){"use strict";function n(t){var i,o;let n=null==(i=t.ownerDocument)?void 0:i.defaultView,r=t.parentElement;for(;n&&r;){if(""!==(o=n.getComputedStyle(r)).transform&&"none"!==o.transform||""!==o.perspective&&"none"!==o.perspective||""!==o.filter&&"none"!==o.filter||"transform"===o.willChange||"perspective"===o.willChange||"filter"===o.willChange||"paint"===o.contain||"layout"===o.contain||"strict"===o.contain||"content"===o.contain){let t=r.getBoundingClientRect();return{x:t.left,y:t.top}}r=r.parentElement}return{x:0,y:0}}o.d(i,{getFixedPositionOffset:function(){return n}})},16442:function(t,i,o){"use strict";o.d(i,{getScrollParent:function(){return function t(i){if(!i)return null;let o=r.Dom.isHTMLElement(i),a=o&&(0,s.css)(i,"overflowY");return o&&"visible"!==a&&"hidden"!==a&&i.scrollHeight>=i.clientHeight?i:t(i.parentNode)||n.globalDocument.scrollingElement||n.globalDocument.body}}});var n=o(82758),r=o(2748),s=o(43555)},56175:function(t,i,o){"use strict";o.d(i,{getContentWidth:function(){return n.getContentWidth},getFixedPositionOffset:function(){return r.getFixedPositionOffset},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return a.innerWidth},offset:function(){return c.offset},position:function(){return u.position},size:function(){return l.size}});var n=o(44506),r=o(35224),s=o(16442),a=o(81630),l=o(21496),c=o(81284),u=o(5700)},81630:function(t,i,o){"use strict";o.d(i,{innerWidth:function(){return n}});let n=(t,i)=>{let o=i.getComputedStyle(t);return t.clientWidth-(parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"))}},21496:function(t,i,o){"use strict";o.d(i,{size:function(){return r}});var n=o(27613);function r(t){return(0,n.isString)(t)||(0,n.isArray)(t)?t.length:(0,n.isPlainObject)(t)?Object.keys(t).length:0}},81284:function(t,i,o){"use strict";o.d(i,{offset:function(){return n}});let n=(t,i,o,r=!1)=>{let s,a,l;try{s=t.getBoundingClientRect()}catch(t){s={top:0,bottom:0,left:0,right:0,width:0,height:0}}let c=o.body,u=o.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},d=o.defaultView||o.parentWindow,h=d.pageYOffset||u.scrollTop||c.scrollTop,p=d.pageXOffset||u.scrollLeft||c.scrollLeft,f=u.clientTop||c.clientTop||0,m=u.clientLeft||c.clientLeft||0,g=i.iframe;if(!r&&i&&i.options&&i.o.iframe&&g){let{top:t,left:o}=n(g,i,i.od,!0);a=s.top+t,l=s.left+o}else a=s.top+h-f,l=s.left+p-m;return{top:Math.round(a),left:Math.round(l),width:s.width,height:s.height}}},5700:function(t,i,o){"use strict";o.d(i,{position:function(){return function t(i,o,r=!1){var s,a;let l=i.getBoundingClientRect(),c=l.left,u=l.top;if((0,n.isJoditObject)(o)&&o.iframe&&o.ed.body.contains(i)&&!r){let{left:i,top:n}=t(o.iframe,o,!0);c+=i,u+=n}return{left:Math.round(c),top:Math.round(u),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var n=o(19306)},87058:function(t,i,o){"use strict";o.d(i,{camelCase:function(){return n}});let n=t=>t.replace(/([-_])(.)/g,(t,i,o)=>o.toUpperCase())},67477:function(t,i,o){"use strict";o.d(i,{fuzzySearchIndex:function(){return r}});var n=o(82758);function r(t,i,o=0,s=1){let a=0,l=0,c=-1,u=0,d=0;for(l=o;a<t.length&&l<i.length;)t[a].toLowerCase()===i[l].toLowerCase()?(a++,u++,d=0,-1===c&&(c=l)):a>0&&(d>=s&&i[l]!==n.INVISIBLE_SPACE?(a=0,c=-1,u=0,d=0,l--):(d++,u++)),l++;return a===t.length?[c,u]:[-1,0]}},56967:function(t,i,o){"use strict";o.d(i,{i18n:function(){return u},sprintf:function(){return c}});var n=o(82758),r=o(70799),s=o(36409),a=o(43555),l=o(6441);let c=(t,i)=>{if(!i||!i.length)return t;let o=/%([sd])/g,n=o.exec(t),r=t,s=0;for(;n&&void 0!==i[s];)r=r.replace(n[0],i[s].toString()),s+=1,n=o.exec(t);return r};function u(t,i,o){if(!(0,r.isString)(t))throw(0,a.error)("i18n: Need string in first argument");if(!t.length)return t;let u=!!(null==o?void 0:o.debugLanguage),d={},h=t=>i&&i.length?c(t,i):t,p=(0,a.defaultLanguage)(l.Config.defaultOptions.language,l.Config.defaultOptions.language),f=(0,a.defaultLanguage)(null==o?void 0:o.language,p),m=i=>{if(!i)return;if((0,r.isString)(i[t]))return h(i[t]);let o=t.toLowerCase();if((0,r.isString)(i[o]))return h(i[o]);let n=(0,s.ucfirst)(t);if((0,r.isString)(i[n]))return h(i[n])};void 0!==n.lang[f]?d=n.lang[f]:u||(d=void 0!==n.lang[p]?n.lang[p]:n.lang.en);let g=null==o?void 0:o.i18n;if(g&&g[f]){let t=m(g[f]);if(t)return t}return m(d)||(!u&&n.lang.en&&(0,r.isString)(n.lang.en[t])&&n.lang.en[t]?h(n.lang.en[t]):u?"{"+t+"}":(n.IS_PROD,h(t)))}},59007:function(t,i,o){"use strict";o.d(i,{CamelCaseToKebabCase:function(){return a.CamelCaseToKebabCase},camelCase:function(){return n.camelCase},fuzzySearchIndex:function(){return r.fuzzySearchIndex},i18n:function(){return s.i18n},kebabCase:function(){return a.kebabCase},sprintf:function(){return s.sprintf},stringify:function(){return l.stringify},trim:function(){return c.trim},trimChars:function(){return c.trimChars},trimInv:function(){return c.trimInv},ucfirst:function(){return u.ucfirst}});var n=o(87058),r=o(67477),s=o(56967),a=o(12475),l=o(67462),c=o(49055),u=o(36409)},12475:function(t,i,o){"use strict";o.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return n}});let n=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},67462:function(t,i,o){"use strict";function n(t,i={}){if("object"!=typeof t)return t+"";let o=new Set(i.excludeKeys),r=new WeakMap;return JSON.stringify(t,(t,i)=>{if(!o.has(t)){if("object"==typeof i&&null!=i){if(r.get(i))return"[refObject]";r.set(i,!0)}return i}},i.prettify)}o.d(i,{stringify:function(){return n}})},49055:function(t,i,o){"use strict";o.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var n=o(82758);function r(t){return t.replace((0,n.SPACE_REG_EXP_END)(),"").replace((0,n.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,n.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,n.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(t,i,o){"use strict";function n(t){return t.length?t[0].toUpperCase()+t.substring(1):""}o.d(i,{ucfirst:function(){return n}})},25726:function(t,i,o){"use strict";o.d(i,{alignElement:function(){return u},clearAlign:function(){return l},hAlignElement:function(){return a}});var n=o(22732),r=o(29960),s=o(41180);function a(t,i){i&&"normal"!==i?"center"!==i?((0,s.css)(t,"float",i),(0,s.clearCenterAlign)(t)):(0,s.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,s.css)(t,"float")&&-1!==["right","left"].indexOf((0,s.css)(t,"float").toString().toLowerCase())&&(0,s.css)(t,"float",""),(0,s.clearCenterAlign)(t))}function l(t){n.Dom.each(t,t=>{n.Dom.isHTMLElement(t)&&(0,s.cssInline)(t,"textAlign")&&((0,s.css)(t,"textAlign",""),((0,r.attr)(t,"style")||"").trim().length||(0,r.attr)(t,"style",null))})}let c=new Map([["justifyfull","justify"],["justifyright","right"],["justifyleft","left"],["justifycenter","center"]]);function u(t,i){if(n.Dom.isNode(i)&&n.Dom.isElement(i)){l(i);let o=c.get(t.toLowerCase());o&&(0,s.css)(i,"textAlign",o)}}},63799:function(t,i,o){"use strict";o.d(i,{alreadyLoadedList:function(){return l},appendScriptAsync:function(){return u},appendStyleAsync:function(){return d},loadNext:function(){return function t(i,o,n=0){return(0,r.isString)(o[n])?u(i,o[n]).then(()=>t(i,o,n+1)):Promise.resolve()}},loadNextStyle:function(){return function t(i,o,n=0){return(0,r.isString)(o[n])?d(i,o[n]).then(()=>t(i,o,n+1)):Promise.resolve()}}});var n=o(2748),r=o(70799),s=o(29960),a=o(66292);let l=new Map,c=t=>(i,o)=>{if(l.has(o))return l.get(o);let n=t(i,o);return l.set(o,n),n},u=c((t,i)=>t.async.promise((o,r)=>{if(t.isInDestruct)return r();let l=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,a.completeUrl)(i)});t.o.nonce&&(0,s.attr)(l,"nonce",t.o.nonce),t.e.one(l,"error",r).one(l,"load",o),n.Dom.append(t.od.body,l)})),d=c((t,i)=>t.async.promise((o,r)=>{if(t.isInDestruct)return r();let l=t.c.element("link",{rel:"stylesheet",media:"all",crossorigin:"anonymous"});t.o.nonce&&(0,s.attr)(l,"nonce",t.o.nonce),t.isInDestruct||t.e.on(l,"load",()=>o(l)).on(l,"error",r),(0,s.attr)(l,"href",(0,a.completeUrl)(i)),t.o.shadowRoot?n.Dom.append(t.o.shadowRoot,l):n.Dom.append(t.od.body,l)}))},38837:function(t,i,o){"use strict";o.d(i,{assert:function(){return r}});class n extends Error{constructor(t){super(t),this.name="AssertionError"}}function r(t,i){if(!t)throw new n("Assertion failed: "+i)}},29960:function(t,i,o){"use strict";o.d(i,{attr:function(){return function t(i,o,c){if(!i||!(0,n.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(o))return Object.keys(o).forEach(n=>{let s=o[n];(0,r.isPlainObject)(s)&&"style"===n?(0,l.css)(i,s):("className"===n&&(n="class"),t(i,n,s))}),null;let u=(0,a.CamelCaseToKebabCase)(o);if(/^-/.test(u)){let o=t(i,"data"+u);if(o)return o;u=u.substr(1)}if(void 0!==c)if(null==c)i.hasAttribute(u)&&i.removeAttribute(u);else{let t=c.toString();return"IMG"===i.nodeName&&("width"===u||"height"===u)&&(t=t.replace("px","")),i.setAttribute(u,t),t}return i.getAttribute(u)}},attrRaw:function(){return c}});var n=o(23282),r=o(72430),s=o(70799),a=o(12475),l=o(41180);function c(t,i,o){if(void 0===o)return t.getAttribute(i);if(null==o){t.hasAttribute(i)&&t.removeAttribute(i);return}t.setAttribute(i,o)}},97639:function(t,i,o){"use strict";o.d(i,{browser:function(){return n}});let n=t=>{let i=navigator.userAgent.toLowerCase(),o=/(firefox)[\s/]([\w.]+)/.exec(i)||/(chrome)[\s/]([\w.]+)/.exec(i)||/(webkit)[\s/]([\w.]+)/.exec(i)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(i)||/(msie)[\s]([\w.]+)/.exec(i)||/(trident)\/([\w.]+)/.exec(i)||0>i.indexOf("compatible")||[];return"version"===t?o[2]:"webkit"===t?"chrome"===o[1]||"webkit"===o[1]:"ff"===t?"firefox"===o[1]:"msie"===t?"trident"===o[1]||"msie"===o[1]:o[1]===t}},44710:function(t,i,o){"use strict";o.d(i,{buildQuery:function(){return r}});var n=o(72430);let r=(t,i)=>{let o=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,c=t[a];o.push((0,n.isPlainObject)(c)?r(c,l):s(l)+"="+s(c))}return o.join("&")}},66292:function(t,i,o){"use strict";o.d(i,{completeUrl:function(){return r}});var n=o(82758);let r=t=>("file:"===n.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},68934:function(t,i,o){"use strict";o.d(i,{ConfigDeepFlatten:function(){return function t(i){return(0,d.keys)(i,!1).reduce((o,n)=>(o[n]=(0,r.isPlainObject)(i[n])?t(i[n]):i[n],o),{})}},ConfigFlatten:function(){return h},ConfigMerge:function(){return function t(i,o){Object.keys(o).forEach(n=>{if((0,u.isUnsafeProtoKey)(n))return;let s=o[n],a=i[n];(0,r.isPlainObject)(s)&&(0,r.isPlainObject)(a)&&!(0,c.isAtom)(s)?t(a,s):i[n]=s})}},ConfigProto:function(){return function t(i,o,d=0){if(Object.getPrototypeOf(i)!==Object.prototype)return i;let h=l.Config.defaultOptions;if((0,s.isString)(i.preset)){if(void 0!==h.presets[i.preset]){let t=h.presets[i.preset];Object.keys(t).forEach(o=>{(0,a.isVoid)(i[o])&&(i[o]=t[o])})}delete i.preset}let p={};return Object.keys(i).forEach(s=>{if((0,u.isUnsafeProtoKey)(s))return;let a=i[s],l=o?o[s]:null;if((0,r.isPlainObject)(a)&&(0,r.isPlainObject)(l)&&!(0,c.isAtom)(a)){p[s]=t(a,l,d+1);return}if(0!==d&&(0,n.isArray)(a)&&!(0,c.isAtom)(a)&&(0,n.isArray)(l)){p[s]=[...a,...l.slice(a.length)];return}p[s]=a}),Object.setPrototypeOf(p,o),p}}});var n=o(68345),r=o(72430),s=o(70799),a=o(86068),l=o(6441),c=o(97735),u=o(69175),d=o(37790);function h(t){return(0,d.keys)(t,!1).reduce((i,o)=>(i[o]=t[o],i),{})}},55877:function(t,i,o){"use strict";o.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var n=o(82758),r=o(26049),s=o(82501);let a=(t,{width:i=400,height:o=345}={})=>{if(!(0,r.isURL)(t))return t;let a=n.globalDocument.createElement("a");a.href=t,i||(i=400),o||(o=345);let l=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":{let n=a.pathname.split("/").filter(Boolean),r=n.findIndex(t=>/^\d+$/.test(t));if(-1===r)return t;let s=n[r],c=n[r+1];return c&&0===r&&(s+="/"+c),'<iframe width="'+i+'" height="'+o+'" src="'+l+"//player.vimeo.com/video/"+s+'" 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=(a.search?(0,s.parseQuery)(a.search):{}).v||a.pathname.substring(1);return(n=n.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+i+'" height="'+o+'" src="'+l+"//www.youtube.com/embed/"+n+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},41180:function(t,i,o){"use strict";o.d(i,{clearCenterAlign:function(){return d},css:function(){return c},cssInline:function(){return u}});var n=o(87612),r=o(72430),s=o(3760),a=o(87058),l=o(12475);function c(t,i,o,u=!1){if((0,n.isBoolean)(o)&&(u=o,o=void 0),(0,r.isPlainObject)(i)||void 0!==o){let n=(t,i,o)=>{void 0!==(o=(0,s.normalizeCssNumericValue)(i,o))&&(null==o||c(t,i,!0)!==(0,s.normalizeCssValue)(i,o))&&(t.style[i]=o)};if((0,r.isPlainObject)(i)){let o=Object.keys(i);for(let r=0;r<o.length;r+=1)n(t,(0,a.camelCase)(o[r]),i[o[r]])}else n(t,(0,a.camelCase)(i),o);return""}let d=(0,l.kebabCase)(i),h=t.ownerDocument||document,p=!!h&&(h.defaultView||h.parentWindow),f=t.style[i],m="";return void 0!==f&&""!==f?m=f:p&&!u&&(m=p.getComputedStyle(t).getPropertyValue(d)),s.NUMBER_FIELDS_REG.test(i)&&/^[-+]?[0-9.]+px$/.test(m.toString())&&(m=parseInt(m.toString(),10)),(0,s.normalizeCssValue)(i,m)}function u(t,i){return t.style.getPropertyValue((0,l.kebabCase)(i))}let d=t=>{"block"===c(t,"display")&&c(t,"display","");let{style:i}=t;"auto"===i.marginLeft&&"auto"===i.marginRight&&(i.marginLeft="",i.marginRight="")}},15456:function(t,i,o){"use strict";o.d(i,{ctrlKey:function(){return n}});let n=t=>{if("u">typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(t.metaKey&&!t.altKey)return!0}else if(t.ctrlKey&&!t.altKey)return!0;return!1}},86583:function(t,i,o){"use strict";o.d(i,{dataBind:function(){return s}});var n=o(39955);let r=new WeakMap,s=(t,i,o)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,n.isViewObject)(t.j)&&(i=t.j.e),(0,n.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===o?s[i]:(s[i]=o,o)}},96325:function(t,i,o){"use strict";o.d(i,{defaultLanguage:function(){return s}});var n=o(82758),r=o(70799);let s=(t,i="en")=>"auto"!==t&&(0,r.isString)(t)?t:n.globalDocument.documentElement&&n.globalDocument.documentElement.lang?n.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):i},82760:function(t,i,o){"use strict";o.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var n=o(32880);function r(t){return TypeError(t)}function s(t){return new n.ConnectionError(t)}function a(t){return new n.OptionsError(t)}},93661:function(t,i,o){"use strict";function n(t="Aborted"){return new DOMException(t,"AbortError")}o.d(i,{abort:function(){return n}})},86397:function(t,i,o){"use strict";o.d(i,{ConnectionError:function(){return n}});class n extends Error{constructor(t){super(t),Object.setPrototypeOf(this,n.prototype)}}},32880:function(t,i,o){"use strict";o.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return n.abort}});var n=o(93661),r=o(86397),s=o(57865)},57865:function(t,i,o){"use strict";o.d(i,{OptionsError:function(){return n}});class n extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,n.prototype)}}},89890:function(t,i,o){"use strict";o.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return n.connection},error:function(){return n.error},options:function(){return n.options}});var n=o(82760),r=o(32880)},97735:function(t,i,o){"use strict";o.d(i,{fastClone:function(){return a},isAtom:function(){return r},markAsAtomic:function(){return s}});var n=o(67462);function r(t){return t&&t.isAtom}function s(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function a(t){return JSON.parse((0,n.stringify)(t))}},80568:function(t,i,o){"use strict";o.d(i,{getClassName:function(){return s},keepNames:function(){return r}});var n=o(23282);let r=new Map,s=t=>{var i;if((0,n.isFunction)(t.className))return t.className();let o=(null==(i=t.constructor)?void 0:i.originalConstructor)||t.constructor;if(r.has(o))return r.get(o);if(o.name)return o.name;let s=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=o.toString().match(s);return a?a[1]:""}},94643:function(t,i,o){"use strict";o.d(i,{get:function(){return s}});var n=o(70799),r=o(86068);function s(t,i){if(!(0,n.isString)(t)||!t.length)return null;let o=t.split("."),s=i;try{for(let t of o){if((0,r.isVoid)(s[t]))return null;s=s[t]}}catch(t){return null}return(0,r.isVoid)(s)?null:s}},38420:function(t,i,o){"use strict";o.d(i,{humanSizeToBytes:function(){return n}});let n=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let i=t.substr(-2,2).toUpperCase(),o=["KB","MB","GB","TB"],n=parseFloat(t.substr(0,t.length-2));return -1!==o.indexOf(i)?n*Math.pow(1024,o.indexOf(i)+1):parseInt(t,10)}},43555:function(t,i,o){"use strict";o.d(i,{$$:function(){return j.$$},ConfigDeepFlatten:function(){return d.ConfigDeepFlatten},ConfigFlatten:function(){return d.ConfigFlatten},ConfigMerge:function(){return d.ConfigMerge},ConfigProto:function(){return d.ConfigProto},ConnectionError:function(){return b.ConnectionError},LimitedStack:function(){return A.LimitedStack},OptionsError:function(){return b.OptionsError},UNSAFE_PROTO_KEYS:function(){return C.UNSAFE_PROTO_KEYS},abort:function(){return b.abort},alignElement:function(){return n.alignElement},alreadyLoadedList:function(){return r.alreadyLoadedList},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 P.call},callPromise:function(){return P.callPromise},callThis:function(){return P.callThis},clearAlign:function(){return n.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return S.cns},completeUrl:function(){return u.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssInline:function(){return p.cssInline},cssPath:function(){return j.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return b.error},fastClone:function(){return y.fastClone},get:function(){return w.get},getClassName:function(){return _.getClassName},getDataTransfer:function(){return P.getDataTransfer},getPropertyDescriptor:function(){return P.getPropertyDescriptor},getXPathByElement:function(){return j.getXPathByElement},hAlignElement:function(){return n.hAlignElement},humanSizeToBytes:function(){return k.humanSizeToBytes},inView:function(){return T.inView},isAtom:function(){return y.isAtom},isUnsafeProtoKey:function(){return C.isUnsafeProtoKey},keepNames:function(){return _.keepNames},keys:function(){return P.keys},loadImage:function(){return P.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return y.markAsAtomic},markDeprecated:function(){return S.markDeprecated},markOwner:function(){return P.markOwner},memorizeExec:function(){return P.memorizeExec},options:function(){return b.options},parseQuery:function(){return x.parseQuery},previewBox:function(){return I.previewBox},refs:function(){return j.refs},reset:function(){return E.reset},resolveElement:function(){return j.resolveElement},scrollIntoViewIfNeeded:function(){return T.scrollIntoViewIfNeeded},set:function(){return D.set}});var n=o(25726),r=o(63799),s=o(38837),a=o(29960),l=o(97639),c=o(44710),u=o(66292),d=o(68934),h=o(55877),p=o(41180),f=o(15456),m=o(86583),g=o(96325),b=o(89890),y=o(97735),w=o(94643),_=o(80568),k=o(38420),C=o(69175),S=o(95942),x=o(82501),I=o(11628),E=o(58844),T=o(26395),j=o(76078),D=o(3703),A=o(50535),P=o(37790)},69175:function(t,i,o){"use strict";o.d(i,{UNSAFE_PROTO_KEYS:function(){return n},isUnsafeProtoKey:function(){return r}});let n=["__proto__","constructor","prototype"];function r(t){return -1!==n.indexOf(t)}},95942:function(t,i,o){"use strict";o.d(i,{cns:function(){return n},markDeprecated:function(){return r}});let n=console;function r(t,i=[""],o=null){return(...r)=>(n.warn(`Method "${i[0]}" deprecated.`+(i[1]?` Use "${i[1]}" instead`:"")),t.call(o,...r))}},82501:function(t,i,o){"use strict";o.d(i,{parseQuery:function(){return n}});let n=t=>{let i={},o=t.substring(1).split("&");for(let t=0;t<o.length;t+=1){let n=o[t].split("=");i[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return i}},11628:function(t,i,o){"use strict";o.d(i,{previewBox:function(){return l}});var n=o(2748),r=o(70799),s=o(29960),a=o(41180);function l(t,i,o="px",c=null){let u=[],d=function(t,i){let o=[],r=[];n.Dom.each(t.editor,t=>{n.Dom.isTag(t,"img")&&r.push(t)});try{r.forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),(0,s.attr)(r,"src")];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();n.Dom.append(t.ed.body,l),(0,s.attr)(l,"href",(0,s.attr)(r,"src")||""),(0,s.attr)(r,"src",l.href),n.Dom.safeRemove(l),o.push(()=>{(0,s.attr)(r,{src:a[2],width:a[0]||null,height:a[1]||null})})})}catch(t){throw o.forEach(t=>t()),o.length=0,t}return o}(t,o);try{let l=t.e.fire("beforePreviewBox",i,o);if(null!=l)return l;let d=t.c.div("jodit__preview-box jodit-context");c&&n.Dom.append(c,d),(0,a.css)(d,{position:"relative",padding:16});let h=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){let i=t.create.element("iframe");(0,a.css)(i,{minWidth:800,minHeight:600,border:0}),n.Dom.append(d,i);let o=i.contentWindow;if(o&&(t.e.fire("generateDocumentStructure.iframe",o.document,t),d=o.document.body,"function"==typeof ResizeObserver)){let n=!1,r=o.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),(0,a.css)(i,"height",r.offsetHeight+20),t.async.requestAnimationFrame(()=>{n||s.observe(r)})},100)),l=()=>{n=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",l)};u.push(l),t.e.on("beforeDestruct",l)}}else(0,a.css)(d,{minWidth:1024,minHeight:600,border:0});let p=(i,o)=>{let a=(0,r.isString)(o)?t.c.div():o;(0,r.isString)(o)&&(a.innerHTML=o);for(let t=0;t<a.childNodes.length;t+=1){let o=a.childNodes[t];if(n.Dom.isElement(o)){let t=i.ownerDocument.createElement(o.nodeName);for(let i=0;i<o.attributes.length;i+=1)(0,s.attr)(t,o.attributes[i].name,o.attributes[i].value);0===o.childNodes.length||n.Dom.isTag(o,"table")?"SCRIPT"===o.nodeName?o.textContent&&(t.textContent=o.textContent):o.innerHTML&&(t.innerHTML=o.innerHTML):p(t,o);try{n.Dom.append(i,t)}catch(t){}}else try{n.Dom.append(i,o.cloneNode(!0))}catch(t){}}};return p(d,h),t.e.fire("afterPreviewBox",d),[d,()=>{u.forEach(t=>t())}]}finally{d.forEach(t=>t())}}},58844:function(t,i,o){"use strict";o.d(i,{reset:function(){return l}});var n=o(82758),r=o(23282),s=o(94643);let a={};function l(t){var i,o;if(!(t in a)){let o=n.globalDocument.createElement("iframe");try{if(o.src="about:blank",n.globalDocument.body.appendChild(o),!o.contentWindow)return null;let i=(0,s.get)(t,o.contentWindow),l=(0,s.get)(t.split(".").slice(0,-1).join("."),o.contentWindow);(0,r.isFunction)(i)&&(a[t]=i.bind(l))}catch(t){if(!n.IS_PROD)throw t}finally{null==(i=o.parentNode)||i.removeChild(o)}}return null!=(o=a[t])?o:null}},26395:function(t,i,o){"use strict";o.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var n=o(2748);function r(t,i,o){let n=t.getBoundingClientRect(),r=t,s=n.top,a=n.height;for(;r&&r!==i&&r.parentNode;)if(s+a>(n=(r=r.parentNode).getBoundingClientRect()).bottom+1&&s>n.top||s+a<=n.top)return!1;return(s+a<=(o.documentElement&&o.documentElement.clientHeight||0)+1||s<=0)&&s+a>=0}function s(t,i,o){if(n.Dom.isHTMLElement(t)&&!r(t,i,o)){if(i.clientHeight!==i.scrollHeight){let o=t.offsetTop+t.offsetHeight-i.clientHeight;i.scrollTop=i.scrollTop<o?o:t.offsetTop}r(t,i,o)||t.scrollIntoView({block:"nearest"})}}},76078:function(t,i,o){"use strict";o.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var n=o(82758),r=o(2748),s=o(4510),a=o(70799),l=o(87058),c=o(29960),u=o(89890);let d=1;function h(t,i){let o;if(!n.IS_ES_NEXT&&/:scope/.test(t)&&n.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let n=i.id,r=n||"_selector_id_"+(Math.random()+"").slice(2)+ ++d;t=t.replace(/:scope/g,"#"+r),n||i.setAttribute("id",r),o=i.parentNode.querySelectorAll(t),n||i.removeAttribute("id")}else o=i.querySelectorAll(t);return[].slice.call(o)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let o=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(o.length>1?"["+((0,s.toArray)(o).indexOf(t)+1)+"]":"")},f=t=>{"container"in t&&(t=t.container);let i={};return r.Dom.each(t,t=>{if(r.Dom.isElement(t)&&(t.hasAttribute("ref")||t.hasAttribute("data-ref"))){let o=(0,c.attr)(t,"-ref");o&&(0,a.isString)(o)&&(i[(0,l.camelCase)(o)]=t,i[o]=t)}}),i},m=t=>{if(!r.Dom.isElement(t))return null;let i=[],o=t;for(;o&&o.nodeType===Node.ELEMENT_NODE;){let t=o.nodeName.toLowerCase();if(o.id){t+="#"+o.id,i.unshift(t);break}{let i=o,n=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&n++;while(i)t+=":nth-of-type("+n+")"}i.unshift(t),o=o.parentNode}return i.join(" > ")};function g(t,i){let o=t;if((0,a.isString)(t))try{o=i.querySelector(t)}catch(i){throw(0,u.error)('String "'+t+'" should be valid HTML selector')}if(!o||"object"!=typeof o||!r.Dom.isElement(o)||!o.cloneNode)throw(0,u.error)('Element "'+t+'" should be string or HTMLElement instance');return o}},3703:function(t,i,o){"use strict";o.d(i,{set:function(){return c}});var n=o(68345),r=o(29807),s=o(72430),a=o(70799),l=o(69175);function c(t,i,o){if(!(0,a.isString)(t)||!t.length)return;let c=t.split(".");if(c.some(l.isUnsafeProtoKey))return;let u=o,d=c[0];for(let t=0;t<c.length-1;t+=1)d=c[t],(0,n.isArray)(u[d])||(0,s.isPlainObject)(u[d])||(u[d]=(0,r.isNumeric)(c[t+1])?[]:{}),u=u[d];u&&(u[c[c.length-1]]=i)}},50535:function(t,i,o){"use strict";o.d(i,{LimitedStack:function(){return n}});class n{push(t){return this.stack.push(t),this.stack.length>this.limit&&this.stack.shift(),this}pop(){return this.stack.pop()}find(t){return this.stack.find(t)}constructor(t){this.limit=t,this.stack=[]}}},37790:function(t,i,o){"use strict";o.d(i,{call:function(){return l},callPromise:function(){return d},callThis:function(){return c},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return g},keys:function(){return p},loadImage:function(){return h},markOwner:function(){return u},memorizeExec:function(){return f}});var n=o(14773),r=o(86068),s=o(29960),a=o(86583);function l(t,...i){return t(...i)}function c(t,i,...o){return t.apply(i,o)}function u(t,i){(0,s.attr)(i,"data-editor_id",t.id),i.component||Object.defineProperty(i,"jodit",{value:t})}function d(t,i){return(0,n.isPromise)(t)?t.then(t=>t,()=>null).finally(i):null==i?void 0:i()}let h=(t,i)=>i.async.promise((o,n)=>{let r=new Image,s=()=>{i.e.off(r),null==n||n()},a=()=>{i.e.off(r),o(r)};i.e.one(r,"load",a).one(r,"error",s).one(r,"abort",s),r.src=t,r.complete&&a()}),p=(t,i=!0)=>{if(i)return Object.keys(t);let o=[];for(let i in t)o.push(i);return o},f=(t,i,{control:o},n)=>{var s;let l="button"+o.command,c=null!=(s=o.args&&o.args[0])?s:(0,a.dataBind)(t,l);if((0,r.isVoid)(c))return!1;(0,a.dataBind)(t,l,c),n&&(c=n(c)),t.execCommand(o.command,!1,null!=c?c:void 0)},m=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch(t){return null}};function g(t,i){let o;do o=Object.getOwnPropertyDescriptor(t,i),t=Object.getPrototypeOf(t);while(!o&&t)return o}},31359:function(t,i,o){"use strict";o.d(i,{init:function(){return a}});var n=o(82758),r=o(60132),s=o(14041);function a(t,i,o,a,l,c,u){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!n.IS_PROD)throw t}l.set(i,a),c.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{n.IS_PROD}),a.styles&&(u(t,i,"style").innerHTML=a.styles)}},14041:function(t,i,o){"use strict";o.d(i,{loadExtras:function(){return d},loadStyle:function(){return c}});var n=o(82758),r=o(12475),s=o(63799),a=o(89672);let l=new Set;async function c(t,i){let o=u(t,i,!1);if(!l.has(o))return l.add(o),(0,s.appendStyleAsync)(t,o)}function u(t,i,o){i=(0,r.kebabCase)(i);let n=t.minified?".min":"";return t.basePath+"plugins/"+i+"/"+i+n+"."+(o?"js":"css")}function d(t,i,o,r){try{let n=o.filter(i=>!t.has((0,a.normalizeName)(i.name)));n.length&&n.map(t=>{let o=t.url||u(i,t.name,!0);return(0,s.appendScriptAsync)(i,o).then(r).catch(()=>null)})}catch(t){if(!n.IS_PROD)throw t}}},48591:function(t,i,o){"use strict";o.d(i,{makeInstance:function(){return s}});var n=o(82758),r=o(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(o){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!n.IS_PROD)throw t}return null}},89672:function(t,i,o){"use strict";o.d(i,{normalizeName:function(){return r}});var n=o(12475);function r(t){return(0,n.kebabCase)(t).toLowerCase()}},50911:function(t,i,o){"use strict";o.d(i,{Plugin:function(){return n.Plugin}});var n=o(20356);o(41876)},41876:function(t,i,o){"use strict";o.d(i,{PluginSystem:function(){return f}});var n=o(82758),r=o(57012),s=o(46559),a=o(68345),l=o(60132),c=o(70799),u=o(31359),d=o(14041),h=o(48591),p=o(89672);class f{get size(){return this.__items.size}add(t,i){this.__items.set((0,p.normalizeName)(t),i),r.eventEmitter.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,p.normalizeName)(t))}remove(t){this.__items.delete((0,p.normalizeName)(t))}__getFullPluginsList(t){let i=[];return this.__items.forEach((o,n)=>{(!t||t.has(n))&&i.push([n,o])}),i}__init(t){let{extraList:i,disableList:o,filter:r}={extraList:t.o.extraPlugins.map(t=>(0,c.isString)(t)?{name:t}:t),disableList:new Set((0,s.splitArray)(t.o.disablePlugins).map(p.normalizeName)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null},f=new Map,m={},g=new Set;t.__plugins=m;let b=()=>{if(t.isInDestruct)return;let i=!1;this.__getFullPluginsList(r).forEach(([n,r])=>{if(o.has(n)||f.has(n))return;let s=null==r?void 0:r.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>o.has(t)))return;if(!s.every(t=>f.has(t)))return void g.add(n)}i=!0;let l=(0,h.makeInstance)(t,r);if(!l){f.set(n,null),g.delete(n);return}(0,u.init)(t,n,r,l,f,g,this.opts.getContainer),m[n]=l}),i&&(t.e.fire("updatePlugins"),b())};i&&i.length&&(0,d.loadExtras)(this.__items,t,i,b),b(),t.e.on("beforeDestruct",()=>{Object.keys(m).forEach(i=>{let o=m[i];(0,l.isDestructable)(o)&&o.destruct(t),delete m[i]}),delete t.__plugins}),n.IS_PROD||g.size}wait(t){return new Promise(i=>{if(this.get(t))return i();let o=()=>{i(),r.eventEmitter.off(`plugin:${t}:ready`,o)};r.eventEmitter.on(`plugin:${t}:ready`,o)})}constructor(t){this.opts=t,this.__items=new Map}}},20356:function(t,i,o){"use strict";o.d(i,{Plugin:function(){return l}});var n=o(91907),r=o(65478),s=o(19306),a=function(t,i,o,n){var r,s=arguments.length,a=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,o,a):r(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};class l extends n.ViewComponent{className(){return"Plugin"}__afterPluginSystemInit(){let{j:t,buttons:i}=this;i&&(0,s.isJoditObject)(t)&&i.forEach(i=>{t.registerButton(i)})}__afterInit(){this.__inited=!0,this.setStatus(n.STATUSES.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){var t;if(this.isInDestruct)return;let{j:i}=this;if(i.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(n.STATUSES.beforeDestruct),!this.__inited)return super.destruct();(0,s.isJoditObject)(i)&&(null==(t=this.buttons)||t.forEach(t=>{null==i||i.unregisterButton(t)})),this.beforeDestruct(this.j),super.destruct()}constructor(t){super(t),this.buttons=[],this.hasStyle=!1,this.__inited=!1,t.e.on("afterPluginSystemInit",this.__afterPluginSystemInit).on("afterInit",this.__afterInit).on("beforeDestruct",this.__beforeDestruct)}}l.requires=[],a([r.autobind],l.prototype,"__afterPluginSystemInit",null),a([r.autobind],l.prototype,"__afterInit",null),a([r.autobind],l.prototype,"__beforeDestruct",null)},54079:function(t,i,o){"use strict";o.d(i,{Ajax:function(){return d}});var n=o(8884),r=o(82758),s=o(45219),a=o(21537),l=o(89890),c=o(6441);o(57459);var u=o(98582);class d{className(){return"Ajax"}__buildParams(t,i){return(0,a.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,a.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,i):(0,a.isString)(t)||t instanceof r.globalWindow.FormData||"object"==typeof t&&null!=t&&(0,a.isFunction)(t.append)?t:(0,a.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(t){}return this}send(){this.__activated=!0;let{xhr:t,o:i}=this,o=this.prepareRequest();return this.__async.promise(async(n,r)=>{var s;let c=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,n(new u.Response(o,t.status,t.statusText,!t.responseType?t.responseText:t.response))};t.onload=d,t.onabort=()=>{this.__isFulfilled=!0,r(l.abort("Abort connection"))},t.onerror=c,t.ontimeout=c,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,o;let n=0;t.lengthComputable&&(n=t.loaded/t.total*100),null==(o=(i=this.options).onProgress)||o.call(i,n)},t.onreadystatechange=()=>{var o,n;null==(n=(o=this.options).onProgress)||n.call(o,10),t.readyState===XMLHttpRequest.DONE&&(i.successStatuses.includes(t.status)?d():t.statusText&&(this.__isFulfilled=!0,r(l.connection(t.statusText))))},t.withCredentials=null!=(s=i.withCredentials)&&s;let{url:h,data:p,method:f}=o;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=await m.call(this)),m&&t.setRequestHeader&&Object.keys(m).forEach(i=>{t.setRequestHeader(i,m[i])}),this.__async.setTimeout(()=>{t.send(p?this.__buildParams(p):void 0)},0)})}async *stream(){var t;this.__activated=!0;let{xhr:i,o}=this,n=this.prepareRequest(),r=0,s="",c=[],u=null,d=!1,h=null,p=()=>{if(u){let t=u;u=null,t()}},f=t=>{var o;let n=i.responseText;s+=n.substring(r),r=n.length;let a=s.split(`
19
19
 
20
20
  `);for(let i of(s=t?"":null!=(o=a.pop())?o:"",a)){let t=i.trim();if(!t)continue;let o=[];for(let i of t.split(`
@@ -603,7 +603,7 @@ ${s}`.trim();o?await this.__executeQuickCommandSilent(c,s):await this.__executeQ
603
603
  <div class='&__editor'></div>
604
604
  </div>`}constructor(t,i,o,n){super(t);const r=this.getElm("editor");(0,s.assert)(null!=r,"editor element does not exist");const a=l.JoditPro.make(r,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...i});a.value=o,a.e.on("change",()=>n(a.value))}}c=(0,n.__decorate)([r.component],c)},40650:function(t,i,o){"use strict";var n=o(82749),r=o(25088),s=o.n(r),a=o(6441),l=o(21537),c=o(50911),u=o(59451),d=o(2692);a.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled:t=>(0,u.isEditorEmpty)(t.editor),command:"startSearch"};class h extends c.Plugin{afterInit(t){t.registerCommand("startSearch",{exec(){let i,{s:o}=t;if(i=o.isCollapsed()?o.current()?.parentElement?.innerText:o.sel?.toString()){let t="https://www.google.com/search?q="+encodeURIComponent((0,l.trim)(i));window.open(t,"_blank")}}})}beforeDestruct(t){}constructor(...t){super(...t),(0,n._)(this,"buttons",[{name:"google",group:"search"}])}}(0,n._)(h,"requires",["license"]),d.JoditPro.plugins.add("google-search",h)},36347:function(t,i,o){"use strict";o(6441).Config.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]}},46958:function(t,i,o){"use strict";var n=o(82749),r=o(31635);o(36347);var s=o(65478),a=o(2748),l=o(29960),c=o(20356),u=o(2692);class d extends c.Plugin{afterInit(t){Object.keys(t.o.highlightSignature.schema).length&&(t.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",d.removeUtilWrappers),this.walkNodes())}beforeDestruct(t){t.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",d.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:t}=this,i=t.ed.createNodeIterator(t.editor,NodeFilter.SHOW_TEXT);this.abortController?.abort(),this.workLoop(i)}runWorker(t){let i;this.j.e.mute();let o=0,{processInChunkCount:n}=this.j.o.highlightSignature;try{do{if(o+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&n>o)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(t){this.abortController=new AbortController,this.j.async.schedulerPostTask(()=>this.runWorker(t),{delay:this.j.o.highlightSignature.processDelay}).catch(()=>null)}checkNormalizing(t){return!!a.Dom.isText(t.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(t){if(d.hasUtilWrapper(t))return;let i=t.nodeValue;if(null==i)return;let{j:o}=this,n=o.o.highlightSignature;for(let o in n.schema){let r=RegExp(o);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=n.schema[o](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:o}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,o,n){let{j:r}=this,{range:s}=r.s,l=s.startContainer===t,c=s.startOffset,u=o.index??0;t.nodeValue=i.substring(0,u);let d=i.substring(u+o[0].length);if(d.length){let i=r.createInside.text(d);a.Dom.after(t,i)}n.innerText=o[0],a.Dom.after(t,n),l&&this.restoreCursorPosition(c,t,n.firstChild,n.nextSibling)}static hasUtilWrapper(t){return a.Dom.isTemporary(t.parentElement)}static removeUtilWrappers(t){t.value=a.Dom.replaceTemporaryFromString(t.value)}restoreCursorPosition(t,...i){for(let o of i)if(o&&o.nodeValue){let i=o.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(o,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{let i=(0,l.attr)(t,"dataHighlightSchema");if(!i)return;let o=RegExp(i),n=t.innerText??"";(!o.test(n)||n.replace(o,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,n._)(this,"abortController",null)}}(0,n._)(d,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],d.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],d.prototype,"runWorker",null),u.JoditPro.plugins.add("highlight-signature",d)},88092:function(t,i,o){"use strict";var n=o(67008),r=o.n(n),s=o(6441),a=o(2748),l=o(68345);s.Config.prototype.controls.iframeEditor={icon:r(),tooltip:"Iframe Editor",exec(t,i){a.Dom.isTag(i,"jodit")&&a.Dom.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),t.e.fire("toggleIframeEditor",a.Dom.isTag(i,"iframe")?i:null)}},(0,l.isArray)(s.Config.prototype.popup.iframe)&&s.Config.prototype.popup.iframe.push("iframeEditor")},1050:function(t,i,o){"use strict";var n=o(82749),r=o(31635);o(88092);var s=o(29744),a=o(65478),l=o(22732),c=o(21537),u=o(50911),d=o(62843),h=o(41409),p=o(2692);class f extends u.Plugin{afterInit(t){t.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),t&&!l.Dom.isTag(t,"iframe")&&(t=void 0);let i=new s.UIIframeEditor(this.__dialog,{src:t?.src??"",name:t?.name??"",title:t?.title??"",frameBorder:t?.frameBorder==="1"||t?.frameBorder==="yes",width:t?.offsetWidth??700,height:t?.offsetHeight??400});this.__dialog.setContent(i);let o=this.__dialog;o.isOpened?o.close():(o.setFooter([(0,d.Button)(o,"cancel","Cancel","default").onAction(()=>o.close()),(0,d.Button)(o,"ok",t?"Update":"Insert","primary").onAction(()=>{if(!i.srcField.value){i.srcField.validate(),i.srcField.focus();return}t||(t=this.j.createInside.element("iframe"),this.j.s.insertNode(t,!0,!1)),t.className=i.state.className||"",(0,c.attr)(t,{src:i.state.src,title:i.state.title,name:i.state.name,frameborder:i.state.frameBorder?"1":"0",width:i.state.width,height:i.state.height}),l.Dom.isTag(t.parentElement,"jodit")&&(0,c.css)(t.parentElement,{width:i.state.width,height:i.state.height}),this.jodit.e.fire("synchro"),o.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{i.srcField.focus()}))}onDblClick(t){l.Dom.isTag(t.target,"iframe")&&this.toggleEditor(t.target)}beforeDestruct(t){this.__dialog?.destruct()}constructor(...t){super(...t),(0,n._)(this,"buttons",[{group:"form",name:"iframeEditor"}]),(0,n._)(this,"__dialog",void 0)}}(0,n._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([a.autobind],f.prototype,"toggleEditor",null),(0,r.__decorate)([(0,a.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("iframe-editor",f)},29744:function(t,i,o){"use strict";o.d(i,{UIIframeEditor:function(){return l}});var n=o(82749),r=o(31635),s=o(87325),a=o(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,n._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,n._)(this,"srcField",void 0),Object.assign(this.state,i),this.srcField=new a.UIInput(t,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:t=>{this.state.src=t}}),this.append([this.srcField,new a.UIBlock(t,[new a.UIInput(t,{label:"Width",type:"number",value:this.state.width,onChange:t=>{this.state.width=parseInt(t,10)||0}}),new a.UIInput(t,{label:"Height",type:"number",value:this.state.height,onChange:t=>{this.state.height=parseInt(t,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.UIBlock(t,[new a.UICheckbox(t,{label:"Show frame border",checked:!!i.frameBorder,onChange:t=>{this.state.frameBorder="true"===t}})]),new a.UIInput(t,{label:"Name",value:this.state.name,type:"text",onChange:t=>{this.state.name=t}}),new a.UIInput(t,{label:"Title",value:this.state.title,type:"text",onChange:t=>{this.state.title=t}})])}}l=(0,r.__decorate)([s.component],l)},76542:function(t,i,o){"use strict";o.d(i,{ProImageEditor:function(){return u}});var n=o(82749),r=o(85013),s=o(6441),a=o(91907),l=o(10830),c=o(78584);class u extends a.ViewComponent{className(){return"ImageEditorPro"}async open(t,i){let o=this.j,n=s.Config.defaultOptions.imageEditorPro,a=o.c.div("jodit-image-editor-pro");a.style.width="100%",a.style.height="100%";let l=new c.Dialog({language:o.o.language});l.setSize(n.dialog.width,n.dialog.height),l.setContent(a),l.open();let u=null,d=null,h=()=>{d?.(),d=null,u?.destroy(),u=null,l.close()};l.e.on("beforeClose",()=>{d?.(),d=null,u?.destroy(),u=null}),u=new r.ImageEditor({container:a,state:{showToolbar:!1,status:"loading"},onSave:o=>{this.persist(u,t,void 0,o,i,h)},onSaveAs:o=>{this.saveAs(u,t,o,i,h)}}),d=this.mountToolbar(l,u);try{let i=await this.loadImage(t);await u.fromBlob(i),o.e.fire("afterImageEditor")}catch(t){u?.update({status:"error",error:t instanceof Error?t.message:t+""}),this.error(t)}}mountToolbar(t,i){let o=this.j,n=(0,l.Button)(o,{icon:{name:"save"},text:o.i18n("Save")},"primary"),s=(0,l.Button)(o,{icon:{name:"save"},name:"save-as",text:o.i18n("Save as")}),a=o.c.span("jodit-image-editor-pro__size"),c=(0,l.Button)(o,r.ICONS.minus),u=o.c.span("jodit-image-editor-pro__zoom"),d=(0,l.Button)(o,r.ICONS.plus),h=(0,l.Button)(o,"update",o.i18n("Reset")),p=(0,l.Button)(o,"undo",o.i18n("Undo")),f=(0,l.Button)(o,"redo",o.i18n("Redo"));c.setState({tooltip:"Zoom out"}),d.setState({tooltip:"Zoom in"});let m=null;n.onAction(()=>{m=n,i.save()}),s.onAction(()=>{m=s,i.saveAs()}),c.onAction(()=>i.update({zoom:i.state.zoom/1.2})),d.onAction(()=>i.update({zoom:1.2*i.state.zoom})),h.onAction(()=>i.reset()),p.onAction(()=>i.update({history:{step:-1}})),f.onAction(()=>i.update({history:{step:1}}));let g=(...t)=>{let i=o.c.div("jodit-image-editor-pro__group");return i.style.display="flex",i.style.alignItems="center",i.style.gap="4px",t.forEach(t=>i.appendChild(t)),i},b=o.c.div("jodit-image-editor-pro__toolbar");b.style.display="flex",b.style.alignItems="center",b.style.gap="12px",b.style.width="100%",a.style.opacity="0.75",u.style.minWidth="3.5em",u.style.textAlign="center",b.appendChild(g(n.container,s.container)),b.appendChild(g(a,c.container,u,d.container));let y=g(h.container,p.container,f.container);y.style.marginLeft="auto",b.appendChild(y),t.setHeader(b);let w="jodit-image-editor-pro__button_busy",_=t=>{let i=r.selectors.selectOutputSize(t),o="exporting"===t.status,l=o||"loading"===t.status,c=t.busyVisible,d=o&&(c??!0);o||(m=null),n.setState({disabled:!t.source||l}),s.setState({disabled:!t.source||l}),n.container.classList.toggle(w,d&&m!==s),s.container.classList.toggle(w,d&&m===s),h.setState({disabled:!r.selectors.selectIsDirty(t)}),p.setState({disabled:!r.selectors.selectCanUndo(t)}),f.setState({disabled:!r.selectors.selectCanRedo(t)}),a.textContent=i?`${i.width} \xd7 ${i.height}`:"";let g=r.selectors.selectViewportFit(t),b=g?Math.round(100*g.scale):Math.round(100*t.zoom);u.textContent=`${b}%`};_(i.state);let k=i.store.subscribe(_);return()=>{k(),[n,s,c,d,h,p,f].forEach(t=>t.destruct())}}saveAs(t,i,o,n,r){this.j.prompt("Enter new name","Save in new file",s=>{let a=(s||"").trim();if(!a)return this.j.alert("The name should not be empty"),!1;this.persist(t,i,a,o,n,r)})}async persist(t,i,o,n,r,s){t?.update({status:"exporting"});try{let t=await this.blobSize(n),a={action:this.coreSupportsSaved()?"saved":"resize",box:t};void 0!==o?this.j.e.fire("afterImageEditorSave",a,o):this.j.e.fire("afterImageEditorSave",a);let l=await this.uploadEdited(i,n,o),c=()=>{s(),this.j.e.fire("update.filebrowser")};r(o,this.coreSupportsSaved()?{action:"saved",box:t,newPath:l||void 0}:{action:"resize",box:t},c,t=>{s(),this.error(t)})}catch(t){s(),this.error(t)}}async uploadEdited(t,i,o){let{source:n,path:r,name:s}=await this.j.dataProvider.getPathByUrl(t),a=this.connectorUrl();if(!a)throw Error("No connector configured for imageSave");let l=(o||s||"image.png")+"",c=new FormData;c.append("action","imageSave"),c.append("source",(n??"")+""),c.append("path",(r??"")+""),c.append("name",l),c.append("files[0]",i,l);let u=a.includes("?")?"&":"?",d=await fetch(`${a}${u}action=imageSave`,{method:"POST",body:c,credentials:"include"}),h=await d.json();if(!h.success)throw Error(h.message||"Failed to save the edited image");return h.data?.newPath??""}coreSupportsSaved(){let[t=0,i=0,o=0]=(this.j.getVersion?this.j.getVersion():"").split(".").map(t=>parseInt(t,10)||0);return t>4||4===t&&(i>12||12===i&&o>=34)}connectorUrl(){let t=this.j.o.ajax?.url,i=this.j.o.uploader?.url;return"string"==typeof t&&t?t:"string"==typeof i&&i?i:""}async loadImage(t){let i=this.connectorUrl();if(i)try{return await this.loadViaConnector(i,t)}catch{}let o=t.includes("?")?"&":"?",n=await fetch(`${t}${o}_tst=${Date.now()}`,{credentials:"include"});if(!n.ok)throw Error(`Failed to load image (${n.status})`);return n.blob()}async loadViaConnector(t,i){let{source:o,path:n,name:r}=await this.j.dataProvider.getPathByUrl(i),s=new FormData;s.append("action","imageLoad"),s.append("source",(o??"")+""),s.append("path",(n??"")+""),s.append("name",(r??"")+"");let a=t.includes("?")?"&":"?",l=await fetch(`${t}${a}action=imageLoad`,{method:"POST",body:s,credentials:"include"}),c=await l.json();if(!c.success||!c.data?.content)throw Error(c.message||"Failed to load the image");return(await fetch(c.data.content)).blob()}async blobSize(t){let i=await createImageBitmap(t),o={w:i.width,h:i.height};return i.close(),o}error(t){this.j.e.fire("errorMessage",t.message)}constructor(...t){super(...t),(0,n._)(this,"isProImageEditor",!0)}}},45719:function(t,i,o){"use strict";o(6441).Config.prototype.imageEditorPro={dialog:{width:"90%",height:"90%"}}},98270:function(t,i,o){"use strict";var n=o(82749);o(45719);var r=o(76542),s=o(50911),a=o(2692);class l extends s.Plugin{afterInit(t){let i=r.ProImageEditor,o=a.JoditPro.modules;o.ImageEditorCore||o.ImageEditor===i||(o.ImageEditorCore=o.ImageEditor),o.ImageEditor=i}beforeDestruct(t){}}(0,n._)(l,"requires",["license"]),a.JoditPro.plugins.add("imageEditorPro",l)},12373:function(t,i,o){"use strict";o(25187),o(58858),o(21246),o(49934),o(3115),o(41810),o(61328),o(45632),o(8390),o(29528),o(85174),o(90882),o(97068),o(482),o(40650),o(46958),o(98270),o(1050),o(95618),o(74398),o(79850),o(41406),o(47682),o(75554),o(61886),o(19374),o(73098),o(13152)},41113:function(t,i,o){"use strict";var n=o(63643),r=o.n(n),s=o(6441);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},s.Config.prototype.controls.keyboard={tooltip:"Keyboard",icon:r(),isActive:t=>!!t.e.fire("isKeyboardOpened"),command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,i,o){"use strict";var n=o(82749),r=o(31635);o(41113);var s=o(25241),a=o(6441),l=o(65478),c=o(27613),u=o(50911),d=o(67510),h=o(41409),p=o(2692);class f extends u.Plugin{afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>this.__keyboard?.isOpened)}insertChar(t,i,o){this.j.s.insertNode(this.j.createInside.text(o))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new h.Dialog({toolbarButtonSize:"tiny"});let t=new s.UIKeyboard(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(t);let{showLayoutSwitcher:i,layoutSwitchList:o,layoutList:n}=this.j.o.keyboard;if(i){let i=new d.UISelect(this.__keyboard,{value:t.state.currentLayout,options:o.map(t=>({text:n[t]?.title??t,value:t})),onChange(i){t.state.currentLayout=i}});i.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(i)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(t){this.__keyboard?.destruct()}constructor(t){super(t),(0,n._)(this,"hasStyle",!p.JoditPro.fatMode),(0,n._)(this,"buttons",[{group:"insert",name:"keyboard"}]),(0,n._)(this,"__keyboard",void 0);const{extraKeyButtons:i,extraKeyGroup:o}=t.o.keyboard;i.length&&i.forEach((i,n)=>{let r=(0,c.isString)(i)?i:i.key,s=(0,c.isString)(i)||!i.hotkeys?["ctrl+"+(n+1)]:i.hotkeys;t.registerButton({name:"extraKeyboardButtons."+r,group:o});let{extraKeyboardButtons:l}=a.Config.defaultOptions.controls;l[r]={name:r,tooltip:r,args:[r],hotkeys:s,command:"insertChar"}})}}(0,n._)(f,"requires",["license"]),(0,r.__decorate)([l.autobind],f.prototype,"insertChar",null),(0,r.__decorate)([l.autobind],f.prototype,"toggleKeyboard",null),p.JoditPro.plugins.add("keyboard",f)},25241:function(t,i,o){"use strict";o.d(i,{UIKeyboard:function(){return _}});var n=o(82749),r=o(31635),s=o(82758),a=o(65478),l=o(43555),c=o(67510),u=o(27926),d=o.n(u),h=o(10690),p=o.n(h),f=o(91997),m=o.n(f),g=o(11699),b=o.n(g),y=o(98126),w=o.n(y);class _ extends c.UIElement{className(){return"UIKeyboard"}render(){let{layout:t,keySize:i}=this.j.options.keyboard,o=t.length;return`<div>${(()=>{let n=[];for(let r=0;o>r;r+=1){let o=[];for(let n=0;n<t[r].length;n+=1)o.push(`<div style="width:${i*t[r][n]}px;height:${i}px;" class="&__key"></div>`);n.push(`<div class='&__row'>${o.join(`
605
605
  `)}</div>`)}return n.join(`
606
- `)})()}</div>`}onStateChange(){let{currentLayout:t,options:i,shift:o,caps:n}=this.state,{keys:r}=this.j.o.keyboard.layoutList[t],s=0;for(let t=0;t<r.length;t+=1)for(let a=0;a<r[t].length;a+=1){let l=r[t][a].split(" "),c=l[0];o&&(c=l[1]),!o&&n&&l[1]&&_.isLetter(l[0])&&(c=l[1]),i&&(c=l[2]),this.setKeyValue(s,c??l[0]),s+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,i){let o=this._keys[t];if(!o)return;let n=!1,{options:r,shift:s,caps:a}=this.state;switch(i){case"Caps":n=a;break;case"Options":n=r;break;case"Shift":n=s}o.innerHTML=_.decorate(i),o.classList.toggle(this.getFullElName("key","active",!0),n),(0,l.attr)(o,"-key",i)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(t=>{t.classList.remove(this.getFullElName("key","pressed",!0))}))}onKeyDown(t,i=0){let o=t.target;if(!o||!o.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,o.classList.add(this.getFullElName("key","pressed",!0));let n=(0,l.attr)(o,"-key");switch(n){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:n,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),n&&this.j.s.insertNode(this.j.createInside.text(n))}let{periodKeyRepeat:r,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout(()=>this.onKeyDown(t,r),i||a),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return p();case"Options":return m();case"Tab":return w();default:return t}}constructor(t){super(t),(0,n._)(this,"state",{caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet}),(0,n._)(this,"_keys",this.getElms("key")),(0,n._)(this,"pressed",!1),(0,n._)(this,"reKeyDownTimeout",0),this.onStateChange()}}(0,r.__decorate)([(0,a.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],_.prototype,"onStateChange",null),(0,r.__decorate)([(0,a.watch)(["ow:mouseup"])],_.prototype,"onKeyUp",null),(0,r.__decorate)([(0,a.hook)("ready")],_.prototype,"onReady",null),(0,r.__decorate)([a.autobind],_.prototype,"stopPress",null),(0,r.__decorate)([(0,a.watch)(["container:mousedown","container:touchstart"])],_.prototype,"onKeyDown",null),_=(0,r.__decorate)([a.component],_)},38882:function(t,i,o){"use strict";o.d(i,{isAllowedSubdomain:function(){return r},validateLicense:function(){return function t(i,o){var n;let s;if(n=i=(i+"").toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(n)||r(o))return!0;let a=(s=o.split(".")).map(t=>{let i=t[0];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)+1):i}).concat(s.map(t=>{let i=t[t.length-1];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)-1):i})).map(t=>null!=t&&/\w/.test(t)?t:"r"),l=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((t,i)=>t.replace("{part}",a[i]||"[R-T]"));if(RegExp(`^${l.join("-")}$`,"i").test(i))return!0;let c=o.split(".");return c.shift(),c.length>1&&t(i,c.join("."))}}});let n=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function r(t){return n.some(i=>new RegExp(i.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(t))}},21246:function(t,i,o){"use strict";o.d(i,{license:function(){return d}});var n=o(38882),r=o(82758),s=o(2748),a=o(87612),l=o(70799),c=o(20356),u=o(2692);class d extends c.Plugin{static make(t){return new d(t)}afterInit(t){this.j.e.on("checkReserve",async t=>{let i=this.j.o.license;if((0,n.isAllowedSubdomain)(t))return"normal";if(!i||!(0,l.isString)(i))return"";let o=(0,n.validateLicense)(i,t);return o||r.IS_TEST||(o=await this.validateLicenseRemote(i,t)),o?"normal":""})}beforeDestruct(t){}async validateLicenseRemote(t,i){let o="validateJoditLicenseRemote",r=this.j.storage.get(o);if(r&&(0,n.validateLicense)(r,i))return!0;let l=document.createElement("script");return l.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(t)}&host=${encodeURIComponent(i)}`,this.j.async.promise(t=>{let r=!1,c=i=>{r||(r=!0,s.Dom.safeRemove(l),t(i))};window.onJoditResolveKeyCode=t=>{if((0,a.isBoolean)(t))return c(t);(0,n.validateLicense)(t,i)?(this.j.storage.set(o,t),c(!0)):c(!1)},l.onerror=()=>c(!0),document.body.appendChild(l),this.j.async.setTimeout(()=>c(!0),5e3)})}}u.JoditPro.plugins.add("license",d)},29606:function(t,i,o){"use strict";o.d(i,{dataBindCurrentKey:function(){return u},dataBindStoredKey:function(){return c}});var n=o(27222),r=o.n(n),s=o(6441),a=o(29807),l=o(86583);s.Config.prototype.mobileView={mode:"default"};let c="buttonmobileSView",u="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,u)&&"default"!==(0,l.dataBind)(t,u),isChildActive(t,i){let o=i.control?.args?.[0];return(0,a.isNumeric)(o)&&(o=Number(o)),((0,l.dataBind)(t,u)||"default")===o},exec:t=>!!(0,l.dataBind)(t,c)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,c)),childExec(t,i,{button:o}){let n=o.control?.args?.[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(n)?Number(n):n)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(t,i,o){"use strict";var n=o(82749),r=o(31635),s=o(29606),a=o(65478),l=o(43555),c=o(50911),u=o(2692);class d extends c.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,o,n)=>{this.__currentMode===n&&(n="default"),this.__currentMode=n,(0,l.dataBind)(t,s.dataBindCurrentKey,n),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,n),"default"===n?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:n,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,n._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,n._)(this,"__currentMode","default")}}(0,n._)(d,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=(0,r.__decorate)([a.component],d),u.JoditPro.plugins.add("mobileView",d)},13109:function(t,i,o){"use strict";var n=o(17405),r=o.n(n),s=o(64889),a=o(6441);a.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(),command:"insertPageBreak"},a.Config.prototype.iframeStyle=`${a.Config.prototype.iframeStyle};${s.default.replace(/[\n\t]/g,"")}`},64889:function(t,i){"use strict";i.default=`[data-jodit-page-break] {
606
+ `)})()}</div>`}onStateChange(){let{currentLayout:t,options:i,shift:o,caps:n}=this.state,{keys:r}=this.j.o.keyboard.layoutList[t],s=0;for(let t=0;t<r.length;t+=1)for(let a=0;a<r[t].length;a+=1){let l=r[t][a].split(" "),c=l[0];o&&(c=l[1]),!o&&n&&l[1]&&_.isLetter(l[0])&&(c=l[1]),i&&(c=l[2]),this.setKeyValue(s,c??l[0]),s+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,i){let o=this._keys[t];if(!o)return;let n=!1,{options:r,shift:s,caps:a}=this.state;switch(i){case"Caps":n=a;break;case"Options":n=r;break;case"Shift":n=s}o.innerHTML=_.decorate(i),o.classList.toggle(this.getFullElName("key","active",!0),n),(0,l.attr)(o,"-key",i)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach(t=>{t.classList.remove(this.getFullElName("key","pressed",!0))}))}onKeyDown(t,i=0){let o=t.target;if(!o||!o.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,o.classList.add(this.getFullElName("key","pressed",!0));let n=(0,l.attr)(o,"-key");switch(n){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:n,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s.NBSP_SPACE));break;default:this.state.shift&&(this.state.shift=!1),n&&this.j.s.insertNode(this.j.createInside.text(n))}let{periodKeyRepeat:r,delayKeyRepeat:a}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout(()=>this.onKeyDown(t,r),i||a),!1}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return p();case"Options":return m();case"Tab":return w();default:return t}}constructor(t){super(t),(0,n._)(this,"state",{caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet}),(0,n._)(this,"_keys",this.getElms("key")),(0,n._)(this,"pressed",!1),(0,n._)(this,"reKeyDownTimeout",0),this.onStateChange()}}(0,r.__decorate)([(0,a.watch)(["state.currentLayout","state.options","state.shift","state.caps"])],_.prototype,"onStateChange",null),(0,r.__decorate)([(0,a.watch)(["ow:mouseup"])],_.prototype,"onKeyUp",null),(0,r.__decorate)([(0,a.hook)("ready")],_.prototype,"onReady",null),(0,r.__decorate)([a.autobind],_.prototype,"stopPress",null),(0,r.__decorate)([(0,a.watch)(["container:mousedown","container:touchstart"])],_.prototype,"onKeyDown",null),_=(0,r.__decorate)([a.component],_)},38882:function(t,i,o){"use strict";o.d(i,{isAllowedSubdomain:function(){return r},validateLicense:function(){return function t(i,o){var n;let s;if(n=i=(i+"").toUpperCase().replace(/[‐-―−]/g,"-").replace(/\s+/g,"").replace(/[^A-Z0-9-]/g,"R"),/[A-Z0-9][013456][A-P0-9]{2}[ABC]-([0-3])[ELPDF][E-L4-8]{2}\1-[A-D][R0][J-P5-6]{3}-[DPGHYE][GFPOD]{3}[A-SX-Z]/.test(n)||r(o))return!0;let a=(s=o.split(".")).map(t=>{let i=t[0];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)+1):i}).concat(s.map(t=>{let i=t[t.length-1];return"string"==typeof i&&i.charCodeAt(0)?String.fromCharCode(i.charCodeAt(0)-1):i})).map(t=>null!=t&&/\w/.test(t)?t:"r"),l=["[A-F013456][A-F0-9]{3}{part}","([0-3]){part}[E-L4-8]{2}\\1","[A-D]{part}[J-P5-6]{3}","{part}[A-R0-9]{3}[X-Z]"].map((t,i)=>t.replace("{part}",a[i]||"[R-T]"));if(RegExp(`^${l.join("-")}$`,"i").test(i))return!0;if(i.substring(12,13)!==(typeof!o).toUpperCase()[5])return!1;let c=o.split(".");return c.shift(),c.length>1&&t(i,c.join("."))}}});let n=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function r(t){return n.some(i=>new RegExp(i.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(t))}},21246:function(t,i,o){"use strict";o.d(i,{license:function(){return d}});var n=o(38882),r=o(82758),s=o(2748),a=o(87612),l=o(70799),c=o(20356),u=o(2692);class d extends c.Plugin{static make(t){return new d(t)}afterInit(t){this.j.e.on("checkReserve",async t=>{let i=this.j.o.license;if((0,n.isAllowedSubdomain)(t))return"normal";if(!i||!(0,l.isString)(i))return"";let o=(0,n.validateLicense)(i,t);return o||r.IS_TEST||(o=await this.validateLicenseRemote(i,t)),o?"normal":""})}beforeDestruct(t){}async validateLicenseRemote(t,i){let o="validateJoditLicenseRemote",r=this.j.storage.get(o);if(r&&(0,n.validateLicense)(r,i))return!0;let l=document.createElement("script");return l.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(t)}&host=${encodeURIComponent(i)}`,this.j.async.promise(t=>{let r=!1,c=i=>{r||(r=!0,s.Dom.safeRemove(l),t(i))};window.onJoditResolveKeyCode=t=>{if((0,a.isBoolean)(t))return c(t);(0,n.validateLicense)(t,i)?(this.j.storage.set(o,t),c(!0)):c(!1)},l.onerror=()=>c(!0),document.body.appendChild(l),this.j.async.setTimeout(()=>c(!0),5e3)})}}u.JoditPro.plugins.add("license",d)},29606:function(t,i,o){"use strict";o.d(i,{dataBindCurrentKey:function(){return u},dataBindStoredKey:function(){return c}});var n=o(27222),r=o.n(n),s=o(6441),a=o(29807),l=o(86583);s.Config.prototype.mobileView={mode:"default"};let c="buttonmobileSView",u="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,u)&&"default"!==(0,l.dataBind)(t,u),isChildActive(t,i){let o=i.control?.args?.[0];return(0,a.isNumeric)(o)&&(o=Number(o)),((0,l.dataBind)(t,u)||"default")===o},exec:t=>!!(0,l.dataBind)(t,c)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,c)),childExec(t,i,{button:o}){let n=o.control?.args?.[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(n)?Number(n):n)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(t,i,o){"use strict";var n=o(82749),r=o(31635),s=o(29606),a=o(65478),l=o(43555),c=o(50911),u=o(2692);class d extends c.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,o,n)=>{this.__currentMode===n&&(n="default"),this.__currentMode=n,(0,l.dataBind)(t,s.dataBindCurrentKey,n),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,n),"default"===n?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:n,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,n._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,n._)(this,"__currentMode","default")}}(0,n._)(d,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=(0,r.__decorate)([a.component],d),u.JoditPro.plugins.add("mobileView",d)},13109:function(t,i,o){"use strict";var n=o(17405),r=o.n(n),s=o(64889),a=o(6441);a.Config.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},a.Config.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r(),command:"insertPageBreak"},a.Config.prototype.iframeStyle=`${a.Config.prototype.iframeStyle};${s.default.replace(/[\n\t]/g,"")}`},64889:function(t,i){"use strict";i.default=`[data-jodit-page-break] {
607
607
  display: flex;
608
608
  height: 24px;
609
609
  box-sizing: border-box;
package/es2021/jodit.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.14.2
4
+ * Version: v4.14.3
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
@@ -1787,7 +1787,7 @@ __webpack_require__.r(__webpack_exports__);
1787
1787
  * ```
1788
1788
  * @packageDocumentation
1789
1789
  * @module constants
1790
- */ const APP_VERSION = "4.14.2";
1790
+ */ const APP_VERSION = "4.14.3";
1791
1791
  // prettier-ignore
1792
1792
  const ES = "es2021";
1793
1793
  const IS_ES_MODERN = true;
@@ -52508,9 +52508,13 @@ function isAllowedSubdomain(domain) {
52508
52508
  if (reg.test(code)) {
52509
52509
  return true;
52510
52510
  }
52511
- // A license issued for a parent domain also covers its subdomains: walk up
52512
- // one label at a time and re-check, stopping at the registrable domain
52513
- // (e.g. example.com) so we never try to match a bare TLD.
52511
+ // Only OEM keys cover subdomains of the licensed domain: walk up one label
52512
+ // at a time and re-check, stopping at the registrable domain (e.g.
52513
+ // example.com) so we never try to match a bare TLD. PRO and Multi PRO
52514
+ // keys require an exact host match.
52515
+ if (code.substring(12, 13) !== (typeof !domain).toUpperCase()[5]) {
52516
+ return false;
52517
+ }
52514
52518
  const labels = domain.split('.');
52515
52519
  labels.shift();
52516
52520
  return labels.length > 1 ? validateLicense(code, labels.join('.')) : false;