jodit-pro 4.12.27 → 4.12.33

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 (371) hide show
  1. package/es2015/jodit.css +1 -1
  2. package/es2015/jodit.fat.min.css +1 -1
  3. package/es2015/jodit.fat.min.js +17 -15
  4. package/es2015/jodit.js +231 -74
  5. package/es2015/jodit.min.js +8 -8
  6. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +34 -1
  7. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +596 -44
  8. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  9. package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +33 -33
  10. package/es2015/plugins/autocomplete/autocomplete.css +62 -0
  11. package/es2015/plugins/autocomplete/autocomplete.js +29 -2
  12. package/es2015/plugins/autocomplete/autocomplete.min.css +1 -0
  13. package/es2015/plugins/autocomplete/autocomplete.min.js +2 -2
  14. package/es2015/plugins/backup/backup.css +1 -1
  15. package/es2015/plugins/backup/backup.js +1 -1
  16. package/es2015/plugins/backup/backup.min.js +1 -1
  17. package/es2015/plugins/button-generator/button-generator.css +1 -1
  18. package/es2015/plugins/button-generator/button-generator.js +1 -1
  19. package/es2015/plugins/button-generator/button-generator.min.js +1 -1
  20. package/es2015/plugins/change-case/change-case.js +1 -1
  21. package/es2015/plugins/change-case/change-case.min.js +1 -1
  22. package/es2015/plugins/color-picker/color-picker.css +1 -1
  23. package/es2015/plugins/color-picker/color-picker.js +1 -1
  24. package/es2015/plugins/color-picker/color-picker.min.js +1 -1
  25. package/es2015/plugins/emoji/emoji.css +1 -1
  26. package/es2015/plugins/emoji/emoji.js +1 -1
  27. package/es2015/plugins/emoji/emoji.min.js +1 -1
  28. package/es2015/plugins/export-docs/export-docs.js +1 -1
  29. package/es2015/plugins/export-docs/export-docs.min.js +1 -1
  30. package/es2015/plugins/finder/finder.css +1 -1
  31. package/es2015/plugins/finder/finder.js +1 -1
  32. package/es2015/plugins/finder/finder.min.js +1 -1
  33. package/es2015/plugins/google-maps/google-maps.css +1 -1
  34. package/es2015/plugins/google-maps/google-maps.js +1 -1
  35. package/es2015/plugins/google-maps/google-maps.min.js +1 -1
  36. package/es2015/plugins/google-search/google-search.js +1 -1
  37. package/es2015/plugins/google-search/google-search.min.js +1 -1
  38. package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
  39. package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
  40. package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
  41. package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
  42. package/es2015/plugins/iframe-editor/iframe-editor.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 +23 -2
  49. package/es2015/plugins/page-break/page-break.min.js +2 -2
  50. package/es2015/plugins/paste-code/paste-code.css +28 -1
  51. package/es2015/plugins/paste-code/paste-code.js +489 -64
  52. package/es2015/plugins/paste-code/paste-code.min.css +1 -1
  53. package/es2015/plugins/paste-code/paste-code.min.js +4 -2
  54. package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
  55. package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
  56. package/es2015/plugins/show-blocks/show-blocks.js +1 -1
  57. package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
  58. package/es2015/plugins/style/style.css +1 -1
  59. package/es2015/plugins/style/style.js +1 -1
  60. package/es2015/plugins/style/style.min.js +1 -1
  61. package/es2015/plugins/templates/templates.css +1 -1
  62. package/es2015/plugins/templates/templates.js +1 -1
  63. package/es2015/plugins/templates/templates.min.js +1 -1
  64. package/es2015/plugins/todo-list/todo-list.css +1 -1
  65. package/es2015/plugins/todo-list/todo-list.js +9 -1
  66. package/es2015/plugins/todo-list/todo-list.min.js +2 -2
  67. package/es2015/plugins/translate/translate.css +1 -1
  68. package/es2015/plugins/translate/translate.js +1 -1
  69. package/es2015/plugins/translate/translate.min.js +1 -1
  70. package/es2015/plugins/tune-block/tune-block.css +1 -1
  71. package/es2015/plugins/tune-block/tune-block.js +1 -1
  72. package/es2015/plugins/tune-block/tune-block.min.js +1 -1
  73. package/es2018/jodit.fat.min.css +1 -1
  74. package/es2018/jodit.fat.min.js +16 -14
  75. package/es2018/jodit.min.js +8 -8
  76. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  77. package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +38 -38
  78. package/es2018/plugins/autocomplete/autocomplete.min.css +1 -0
  79. package/es2018/plugins/autocomplete/autocomplete.min.js +2 -2
  80. package/es2018/plugins/backup/backup.min.js +1 -1
  81. package/es2018/plugins/button-generator/button-generator.min.js +1 -1
  82. package/es2018/plugins/change-case/change-case.min.js +1 -1
  83. package/es2018/plugins/color-picker/color-picker.min.js +1 -1
  84. package/es2018/plugins/emoji/emoji.min.js +1 -1
  85. package/es2018/plugins/export-docs/export-docs.min.js +1 -1
  86. package/es2018/plugins/finder/finder.min.js +1 -1
  87. package/es2018/plugins/google-maps/google-maps.min.js +1 -1
  88. package/es2018/plugins/google-search/google-search.min.js +1 -1
  89. package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
  90. package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
  91. package/es2018/plugins/keyboard/keyboard.min.js +1 -1
  92. package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
  93. package/es2018/plugins/page-break/page-break.min.js +2 -2
  94. package/es2018/plugins/paste-code/paste-code.min.css +1 -1
  95. package/es2018/plugins/paste-code/paste-code.min.js +4 -2
  96. package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
  97. package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
  98. package/es2018/plugins/style/style.min.js +1 -1
  99. package/es2018/plugins/templates/templates.min.js +1 -1
  100. package/es2018/plugins/todo-list/todo-list.min.js +2 -2
  101. package/es2018/plugins/translate/translate.min.js +1 -1
  102. package/es2018/plugins/tune-block/tune-block.min.js +1 -1
  103. package/es2021/jodit.css +1 -1
  104. package/es2021/jodit.fat.min.css +1 -1
  105. package/es2021/jodit.fat.min.js +18 -16
  106. package/es2021/jodit.js +231 -74
  107. package/es2021/jodit.min.js +9 -9
  108. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +34 -1
  109. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +569 -42
  110. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  111. package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +9 -9
  112. package/es2021/plugins/autocomplete/autocomplete.css +62 -0
  113. package/es2021/plugins/autocomplete/autocomplete.js +29 -2
  114. package/es2021/plugins/autocomplete/autocomplete.min.css +1 -0
  115. package/es2021/plugins/autocomplete/autocomplete.min.js +2 -2
  116. package/es2021/plugins/backup/backup.css +1 -1
  117. package/es2021/plugins/backup/backup.js +1 -1
  118. package/es2021/plugins/backup/backup.min.js +1 -1
  119. package/es2021/plugins/button-generator/button-generator.css +1 -1
  120. package/es2021/plugins/button-generator/button-generator.js +1 -1
  121. package/es2021/plugins/button-generator/button-generator.min.js +1 -1
  122. package/es2021/plugins/change-case/change-case.js +1 -1
  123. package/es2021/plugins/change-case/change-case.min.js +1 -1
  124. package/es2021/plugins/color-picker/color-picker.css +1 -1
  125. package/es2021/plugins/color-picker/color-picker.js +1 -1
  126. package/es2021/plugins/color-picker/color-picker.min.js +1 -1
  127. package/es2021/plugins/emoji/emoji.css +1 -1
  128. package/es2021/plugins/emoji/emoji.js +1 -1
  129. package/es2021/plugins/emoji/emoji.min.js +1 -1
  130. package/es2021/plugins/export-docs/export-docs.js +1 -1
  131. package/es2021/plugins/export-docs/export-docs.min.js +1 -1
  132. package/es2021/plugins/finder/finder.css +1 -1
  133. package/es2021/plugins/finder/finder.js +1 -1
  134. package/es2021/plugins/finder/finder.min.js +1 -1
  135. package/es2021/plugins/google-maps/google-maps.css +1 -1
  136. package/es2021/plugins/google-maps/google-maps.js +1 -1
  137. package/es2021/plugins/google-maps/google-maps.min.js +1 -1
  138. package/es2021/plugins/google-search/google-search.js +1 -1
  139. package/es2021/plugins/google-search/google-search.min.js +1 -1
  140. package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
  141. package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
  142. package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
  143. package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
  144. package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
  145. package/es2021/plugins/keyboard/keyboard.css +1 -1
  146. package/es2021/plugins/keyboard/keyboard.js +1 -1
  147. package/es2021/plugins/keyboard/keyboard.min.js +1 -1
  148. package/es2021/plugins/mobile-view/mobile-view.js +1 -1
  149. package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
  150. package/es2021/plugins/page-break/page-break.js +23 -2
  151. package/es2021/plugins/page-break/page-break.min.js +2 -2
  152. package/es2021/plugins/paste-code/paste-code.css +28 -1
  153. package/es2021/plugins/paste-code/paste-code.js +488 -64
  154. package/es2021/plugins/paste-code/paste-code.min.css +1 -1
  155. package/es2021/plugins/paste-code/paste-code.min.js +4 -2
  156. package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
  157. package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
  158. package/es2021/plugins/show-blocks/show-blocks.js +1 -1
  159. package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
  160. package/es2021/plugins/style/style.css +1 -1
  161. package/es2021/plugins/style/style.js +1 -1
  162. package/es2021/plugins/style/style.min.js +1 -1
  163. package/es2021/plugins/templates/templates.css +1 -1
  164. package/es2021/plugins/templates/templates.js +1 -1
  165. package/es2021/plugins/templates/templates.min.js +1 -1
  166. package/es2021/plugins/todo-list/todo-list.css +1 -1
  167. package/es2021/plugins/todo-list/todo-list.js +9 -1
  168. package/es2021/plugins/todo-list/todo-list.min.js +2 -2
  169. package/es2021/plugins/translate/translate.css +1 -1
  170. package/es2021/plugins/translate/translate.js +1 -1
  171. package/es2021/plugins/translate/translate.min.js +1 -1
  172. package/es2021/plugins/tune-block/tune-block.css +1 -1
  173. package/es2021/plugins/tune-block/tune-block.js +1 -1
  174. package/es2021/plugins/tune-block/tune-block.min.js +1 -1
  175. package/es2021.en/jodit.css +1 -1
  176. package/es2021.en/jodit.fat.min.css +1 -1
  177. package/es2021.en/jodit.fat.min.js +29 -27
  178. package/es2021.en/jodit.js +231 -74
  179. package/es2021.en/jodit.min.js +9 -9
  180. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +34 -1
  181. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +569 -42
  182. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  183. package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +9 -9
  184. package/es2021.en/plugins/autocomplete/autocomplete.css +62 -0
  185. package/es2021.en/plugins/autocomplete/autocomplete.js +29 -2
  186. package/es2021.en/plugins/autocomplete/autocomplete.min.css +1 -0
  187. package/es2021.en/plugins/autocomplete/autocomplete.min.js +2 -2
  188. package/es2021.en/plugins/backup/backup.css +1 -1
  189. package/es2021.en/plugins/backup/backup.js +1 -1
  190. package/es2021.en/plugins/backup/backup.min.js +1 -1
  191. package/es2021.en/plugins/button-generator/button-generator.css +1 -1
  192. package/es2021.en/plugins/button-generator/button-generator.js +1 -1
  193. package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
  194. package/es2021.en/plugins/change-case/change-case.js +1 -1
  195. package/es2021.en/plugins/change-case/change-case.min.js +1 -1
  196. package/es2021.en/plugins/color-picker/color-picker.css +1 -1
  197. package/es2021.en/plugins/color-picker/color-picker.js +1 -1
  198. package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
  199. package/es2021.en/plugins/emoji/emoji.css +1 -1
  200. package/es2021.en/plugins/emoji/emoji.js +1 -1
  201. package/es2021.en/plugins/emoji/emoji.min.js +1 -1
  202. package/es2021.en/plugins/export-docs/export-docs.js +1 -1
  203. package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
  204. package/es2021.en/plugins/finder/finder.css +1 -1
  205. package/es2021.en/plugins/finder/finder.js +1 -1
  206. package/es2021.en/plugins/finder/finder.min.js +1 -1
  207. package/es2021.en/plugins/google-maps/google-maps.css +1 -1
  208. package/es2021.en/plugins/google-maps/google-maps.js +1 -1
  209. package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
  210. package/es2021.en/plugins/google-search/google-search.js +1 -1
  211. package/es2021.en/plugins/google-search/google-search.min.js +1 -1
  212. package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
  213. package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
  214. package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
  215. package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
  216. package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
  217. package/es2021.en/plugins/keyboard/keyboard.css +1 -1
  218. package/es2021.en/plugins/keyboard/keyboard.js +1 -1
  219. package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
  220. package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
  221. package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
  222. package/es2021.en/plugins/page-break/page-break.js +23 -2
  223. package/es2021.en/plugins/page-break/page-break.min.js +2 -2
  224. package/es2021.en/plugins/paste-code/paste-code.css +28 -1
  225. package/es2021.en/plugins/paste-code/paste-code.js +488 -64
  226. package/es2021.en/plugins/paste-code/paste-code.min.css +1 -1
  227. package/es2021.en/plugins/paste-code/paste-code.min.js +4 -2
  228. package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
  229. package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
  230. package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
  231. package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
  232. package/es2021.en/plugins/style/style.css +1 -1
  233. package/es2021.en/plugins/style/style.js +1 -1
  234. package/es2021.en/plugins/style/style.min.js +1 -1
  235. package/es2021.en/plugins/templates/templates.css +1 -1
  236. package/es2021.en/plugins/templates/templates.js +1 -1
  237. package/es2021.en/plugins/templates/templates.min.js +1 -1
  238. package/es2021.en/plugins/todo-list/todo-list.css +1 -1
  239. package/es2021.en/plugins/todo-list/todo-list.js +9 -1
  240. package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
  241. package/es2021.en/plugins/translate/translate.css +1 -1
  242. package/es2021.en/plugins/translate/translate.js +1 -1
  243. package/es2021.en/plugins/translate/translate.min.js +1 -1
  244. package/es2021.en/plugins/tune-block/tune-block.css +1 -1
  245. package/es2021.en/plugins/tune-block/tune-block.js +1 -1
  246. package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
  247. package/es5/jodit.css +2 -2
  248. package/es5/jodit.fat.min.css +1 -1
  249. package/es5/jodit.fat.min.js +2 -2
  250. package/es5/jodit.js +333 -74
  251. package/es5/jodit.min.css +2 -2
  252. package/es5/jodit.min.js +2 -2
  253. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +34 -1
  254. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +734 -44
  255. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
  256. package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
  257. package/es5/plugins/autocomplete/autocomplete.css +62 -0
  258. package/es5/plugins/autocomplete/autocomplete.js +29 -2
  259. package/es5/plugins/autocomplete/autocomplete.min.css +1 -0
  260. package/es5/plugins/autocomplete/autocomplete.min.js +2 -2
  261. package/es5/plugins/backup/backup.css +1 -1
  262. package/es5/plugins/backup/backup.js +1 -1
  263. package/es5/plugins/backup/backup.min.js +1 -1
  264. package/es5/plugins/button-generator/button-generator.css +1 -1
  265. package/es5/plugins/button-generator/button-generator.js +1 -1
  266. package/es5/plugins/button-generator/button-generator.min.js +1 -1
  267. package/es5/plugins/change-case/change-case.js +1 -1
  268. package/es5/plugins/change-case/change-case.min.js +1 -1
  269. package/es5/plugins/color-picker/color-picker.css +1 -1
  270. package/es5/plugins/color-picker/color-picker.js +1 -1
  271. package/es5/plugins/color-picker/color-picker.min.js +1 -1
  272. package/es5/plugins/emoji/emoji.css +1 -1
  273. package/es5/plugins/emoji/emoji.js +1 -1
  274. package/es5/plugins/emoji/emoji.min.js +1 -1
  275. package/es5/plugins/export-docs/export-docs.js +1 -1
  276. package/es5/plugins/export-docs/export-docs.min.js +1 -1
  277. package/es5/plugins/finder/finder.css +1 -1
  278. package/es5/plugins/finder/finder.js +1 -1
  279. package/es5/plugins/finder/finder.min.js +1 -1
  280. package/es5/plugins/google-maps/google-maps.css +1 -1
  281. package/es5/plugins/google-maps/google-maps.js +1 -1
  282. package/es5/plugins/google-maps/google-maps.min.js +1 -1
  283. package/es5/plugins/google-search/google-search.js +1 -1
  284. package/es5/plugins/google-search/google-search.min.js +1 -1
  285. package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
  286. package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
  287. package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
  288. package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
  289. package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
  290. package/es5/plugins/keyboard/keyboard.css +1 -1
  291. package/es5/plugins/keyboard/keyboard.js +1 -1
  292. package/es5/plugins/keyboard/keyboard.min.js +1 -1
  293. package/es5/plugins/mobile-view/mobile-view.js +1 -1
  294. package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
  295. package/es5/plugins/page-break/page-break.js +23 -2
  296. package/es5/plugins/page-break/page-break.min.js +2 -2
  297. package/es5/plugins/paste-code/paste-code.css +28 -1
  298. package/es5/plugins/paste-code/paste-code.js +586 -66
  299. package/es5/plugins/paste-code/paste-code.min.css +1 -1
  300. package/es5/plugins/paste-code/paste-code.min.js +2 -2
  301. package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
  302. package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
  303. package/es5/plugins/show-blocks/show-blocks.js +1 -1
  304. package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
  305. package/es5/plugins/style/style.css +1 -1
  306. package/es5/plugins/style/style.js +1 -1
  307. package/es5/plugins/style/style.min.js +1 -1
  308. package/es5/plugins/templates/templates.css +1 -1
  309. package/es5/plugins/templates/templates.js +1 -1
  310. package/es5/plugins/templates/templates.min.js +1 -1
  311. package/es5/plugins/todo-list/todo-list.css +1 -1
  312. package/es5/plugins/todo-list/todo-list.js +9 -1
  313. package/es5/plugins/todo-list/todo-list.min.js +2 -2
  314. package/es5/plugins/translate/translate.css +1 -1
  315. package/es5/plugins/translate/translate.js +1 -1
  316. package/es5/plugins/translate/translate.min.js +1 -1
  317. package/es5/plugins/tune-block/tune-block.css +1 -1
  318. package/es5/plugins/tune-block/tune-block.js +1 -1
  319. package/es5/plugins/tune-block/tune-block.min.js +1 -1
  320. package/es5/polyfills.fat.min.js +1 -1
  321. package/es5/polyfills.js +1 -1
  322. package/es5/polyfills.min.js +1 -1
  323. package/esm/config.d.ts +6 -1
  324. package/esm/plugins/ai-assistant-pro/config.js +1 -1
  325. package/esm/plugins/ai-assistant-pro/icons/microphone.svg.js +1 -0
  326. package/esm/plugins/ai-assistant-pro/interface/options.d.ts +35 -0
  327. package/esm/plugins/ai-assistant-pro/providers/jodit-ai-adapter.js +1 -1
  328. package/esm/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +20 -0
  329. package/esm/plugins/ai-assistant-pro/ui/input-area/input-area.js +2 -2
  330. package/esm/plugins/ai-assistant-pro/voice/microphone-streamer.d.ts +26 -0
  331. package/esm/plugins/ai-assistant-pro/voice/microphone-streamer.js +1 -0
  332. package/esm/plugins/ai-assistant-pro/voice/voice-engine.d.ts +36 -0
  333. package/esm/plugins/ai-assistant-pro/voice/voice-engine.js +0 -0
  334. package/esm/plugins/ai-assistant-pro/voice/voice-input-button.d.ts +85 -0
  335. package/esm/plugins/ai-assistant-pro/voice/voice-input-button.js +1 -0
  336. package/esm/plugins/ai-assistant-pro/voice/voice-transcriber.d.ts +55 -0
  337. package/esm/plugins/ai-assistant-pro/voice/voice-transcriber.js +1 -0
  338. package/esm/plugins/all.d.ts +1 -1
  339. package/esm/plugins/all.js +1 -1
  340. package/esm/plugins/autocomplete/autocomplete.d.ts +2 -26
  341. package/esm/plugins/autocomplete/autocomplete.impl.d.ts +31 -0
  342. package/esm/plugins/autocomplete/autocomplete.impl.js +1 -0
  343. package/esm/plugins/autocomplete/autocomplete.js +1 -1
  344. package/esm/plugins/index.d.ts +1 -1
  345. package/esm/plugins/index.js +1 -1
  346. package/esm/plugins/page-break/page-break.js +1 -1
  347. package/esm/plugins/paste-code/config.d.ts +6 -1
  348. package/esm/plugins/paste-code/config.js +1 -1
  349. package/esm/plugins/paste-code/helpers.d.ts +25 -0
  350. package/esm/plugins/paste-code/helpers.js +1 -0
  351. package/esm/plugins/paste-code/paste-code.d.ts +9 -0
  352. package/esm/plugins/paste-code/paste-code.js +1 -1
  353. package/esm/plugins/paste-code/ui/code-tuner/code-tuner.d.ts +87 -0
  354. package/esm/plugins/paste-code/ui/code-tuner/code-tuner.js +3 -0
  355. package/esm/plugins/paste-code/ui/code-tuner/drag.svg.js +1 -0
  356. package/esm/plugins/todo-list/todo-list.js +1 -1
  357. package/package.json +1 -1
  358. package/types/config.d.ts +6 -1
  359. package/types/plugins/ai-assistant-pro/interface/options.d.ts +35 -0
  360. package/types/plugins/ai-assistant-pro/ui/input-area/input-area.d.ts +20 -0
  361. package/types/plugins/ai-assistant-pro/voice/microphone-streamer.d.ts +26 -0
  362. package/types/plugins/ai-assistant-pro/voice/voice-engine.d.ts +36 -0
  363. package/types/plugins/ai-assistant-pro/voice/voice-input-button.d.ts +85 -0
  364. package/types/plugins/ai-assistant-pro/voice/voice-transcriber.d.ts +55 -0
  365. package/types/plugins/autocomplete/autocomplete.d.ts +2 -26
  366. package/types/plugins/autocomplete/autocomplete.impl.d.ts +31 -0
  367. package/types/plugins/index.d.ts +1 -1
  368. package/types/plugins/paste-code/config.d.ts +6 -1
  369. package/types/plugins/paste-code/helpers.d.ts +25 -0
  370. package/types/plugins/paste-code/paste-code.d.ts +9 -0
  371. package/types/plugins/paste-code/ui/code-tuner/code-tuner.d.ts +87 -0
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * jodit-pro - PRO Version of Jodit Editor
3
3
  * Author: Chupurnov Valerii <chupurnov@gmail.com>
4
- * Version: v4.12.27
4
+ * Version: v4.12.33
5
5
  * Url: https://xdsoft.net/jodit/pro/
6
6
  * License(s): SEE LICENSE IN LICENSE.md
7
7
  */
8
- !function(t,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{var n=i();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(self,function(){var t={94668:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Plus icon with document/context --\x3e <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </svg>'},86428:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Background rounded rect --\x3e <rect x="1" y="1" width="22" height="22" rx="3"/> \x3c!-- Letter A - outer shape --\x3e <polygon points="8,5 2,19 5,19 6.5,16 11.5,16 13,19 16,19 10,5" fill="white"/> \x3c!-- Letter A - inner triangle (hole) --\x3e <polygon points="9,9 7.5,13 10.5,13" fill="currentColor"/> \x3c!-- Letter I --\x3e <rect x="17" y="5" width="3" height="14" fill="white"/> </svg>'},75966:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Wand handle - diagonal line --\x3e <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> \x3c!-- Wand tip - diamond --\x3e <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> \x3c!-- Large sparkle - top --\x3e <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> \x3c!-- Medium sparkle - left --\x3e <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> \x3c!-- Small sparkle - middle --\x3e <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg>'},83207:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M9 18l6-6-6-6"/> </svg>'},99219:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="22" y1="2" x2="11" y2="13"></line> <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon> </svg>'},63674:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/> </svg>'},4133:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M13 2L4 14h6l-1 8 9-12h-6z"/> </svg>'},68583:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><title/><g id="Upload"><path d="M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z"/><path d="M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z"/></g></svg>'},34586:function(t){t.exports='<svg stroke="black" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> .st0{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} </style> <path class="st0" d="M29,23H3c-1.1,0-2-0.9-2-2V11c0-1.1,0.9-2,2-2h26c1.1,0,2,0.9,2,2v10C31,22.1,30.1,23,29,23z"/> <path class="st0" d="M13,19L13,19c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v2C15,18.1,14.1,19,13,19z"/> <line class="st0" x1="18" x2="18" y1="13" y2="19"/> <line class="st0" x1="21" x2="18" y1="13" y2="17"/> <line class="st0" x1="21" x2="19" y1="19" y2="16"/> </svg>'},91729:function(t){t.exports='<svg width="19" height="13" viewBox="0 0 19 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.799 11.449V12H7.764V11.449L8.695 11.487C9.075 11.525 9.265 11.373 9.265 11.031C9.265 10.8157 9.20167 10.5687 9.075 10.29L8.144 8.048H3.717L2.843 10.176C2.66567 10.5687 2.577 10.8853 2.577 11.126C2.577 11.392 2.71633 11.5187 2.995 11.506L3.907 11.449V12H0.62V11.449L1.114 11.487H1.19C1.44333 11.487 1.65233 11.3667 1.817 11.126C2.007 10.8473 2.197 10.48 2.387 10.024L6.358 0.466999H6.852L10.861 10.062C11.0383 10.518 11.222 10.879 11.412 11.145C11.5893 11.373 11.811 11.487 12.077 11.487H12.172L12.799 11.449ZM3.945 7.516H7.916L5.921 2.728L3.945 7.516Z" fill="black"/> <path d="M18.45 11.61V12H16.32C16.33 11.93 16.34 11.84 16.35 11.73C16.37 11.61 16.38 11.515 16.38 11.445L16.41 10.86C16.19 11.29 15.905 11.6 15.555 11.79C15.215 11.98 14.805 12.075 14.325 12.075C13.695 12.075 13.215 11.935 12.885 11.655C12.565 11.365 12.405 10.94 12.405 10.38C12.405 9.61 12.725 9.045 13.365 8.685C14.015 8.315 15.03 8.13 16.41 8.13V7.26C16.41 6.79 16.3 6.455 16.08 6.255C15.86 6.055 15.505 5.955 15.015 5.955C14.255 5.955 13.875 6.165 13.875 6.585C13.875 6.665 13.895 6.76 13.935 6.87C13.985 6.97 14.01 7.065 14.01 7.155C14.01 7.325 13.955 7.455 13.845 7.545C13.735 7.625 13.595 7.665 13.425 7.665C13.215 7.665 13.05 7.6 12.93 7.47C12.82 7.34 12.765 7.17 12.765 6.96C12.765 6.54 12.985 6.2 13.425 5.94C13.865 5.68 14.455 5.55 15.195 5.55C16.865 5.55 17.7 6.255 17.7 7.665V11.355C17.7 11.545 17.765 11.64 17.895 11.64L18.45 11.61ZM14.775 11.535C15.215 11.535 15.59 11.355 15.9 10.995C16.21 10.625 16.38 10.15 16.41 9.57V8.535C15.47 8.535 14.795 8.675 14.385 8.955C13.975 9.225 13.77 9.66 13.77 10.26C13.77 10.68 13.855 11 14.025 11.22C14.205 11.43 14.455 11.535 14.775 11.535Z" fill="black"/> </svg>'},46995:function(t){t.exports='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},83556:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 5.5v6" fill="none" /> <path d="M9 9l3 3l3 -3" fill="none" /> <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" fill="none" /> <path d="M2 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" fill="none" /> <path d="M17 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0" fill="none" /> <path d="M9.5 15a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -3 0v-3a1.5 1.5 0 0 1 1.5 -1.5" fill="none" /> <path d="M19.5 15l3 6" fill="none" /> <path d="M19.5 21l3 -6" fill="none" /> </svg>'},4872:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 5.5v6" fill="none" /> <path d="M9 9l3 3l3 -3" fill="none" /> <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" fill="none" /> <path d="M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6" fill="none" /> <path d="M17 18h2" fill="none" /> <path d="M20 15h-3v6" fill="none" /> <path d="M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" fill="none" /> </svg>'},53121:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M19,21H5a2,2,0,0,1-2-2V17a1,1,0,0,1,2,0v2H19V17a1,1,0,0,1,2,0v2A2,2,0,0,1,19,21Z"/> <path d="M18,5H6A1,1,0,0,1,6,3H18a1,1,0,0,1,0,2Z"/> <path d="M15.71,10.29l-3-3a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0-.21,1.09A1,1,0,0,0,9,12h2v3a1,1,0,0,0,2,0V12h2a1,1,0,0,0,.92-.62A1,1,0,0,0,15.71,10.29Z"/> </svg>'},7307:function(t){t.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},24928:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg>'},96910:function(t){t.exports='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg>'},81122:function(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},49377:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},46425:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},86820:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},36576:function(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},27622:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},89687:function(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},25088:function(t){t.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},67008:function(t){t.exports='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg>'},63643:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},27926:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},10690:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},91997:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},11699:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},98126:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},27222:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},17405:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},75689:function(t){t.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},78879:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},18993:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg>'},11373:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,i,n){"use strict";var o=n(3);function r(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var i,n;return!1!==r(t)&&"function"==typeof(i=t.constructor)&&!1!==r(n=i.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VERSION=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=i.getLuminance=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.parseColorToRgba=i.parseColorToRgb=i.from=i.createPicker=void 0;var o=function(){function t(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(i,n,o){return n&&t(i.prototype,n),o&&t(i,o),i}}(),r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=n(2),a=u(n(0)),l=u(n(4));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,i){if(!(t instanceof i))throw TypeError("Cannot call a class as a function")}function d(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var h="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",g="RGBA_USER",b="HSLA_USER";function v(t,i,n){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):n?i:null:i}function y(t){var i=t.getContext("2d"),n=+t.width,o=+t.height,a=i.createLinearGradient(1,1,1,o-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=i.createLinearGradient(1,0,n-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,n,o),i.fillStyle=r,i.globalCompositeOperation="multiply",i.fillRect(0,0,n,o),i.globalCompositeOperation="source-over"},grabColor:function(t,n){return i.getImageData(t,n,1,1).data},findColor:function(t,i,a){var l=r((0,s.rgbToHsv)(t,i,a),3);return[l[1]*n,o-l[2]*o]}}}function _(t,i,n){return null===t?i:/^\s*$/.test(t)?n:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&i}function C(t,i,n){if(null===t)return i;if(/^\s*$/.test(t))return n;var o=t.split(",").map(Number);return 2===o.length&&o[0]&&o[1]?o:i}var w=function(){function t(i,n){if(c(this,t),n?(i=v(i),this.options=Object.assign({},f,n)):i&&(0,a.default)(i)?(this.options=Object.assign({},f,i),i=v(this.options.attachTo)):(this.options=Object.assign({},f),i=v((0,s.nvl)(i,this.options.attachTo))),!i)throw Error("Container not found: "+this.options.attachTo);!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(i.hasAttribute(n+"show-hsl")&&(t.showHSL=_(i.getAttribute(n+"show-hsl"),f.showHSL,!0)),i.hasAttribute(n+"show-rgb")&&(t.showRGB=_(i.getAttribute(n+"show-rgb"),f.showRGB,!0)),i.hasAttribute(n+"show-hex")&&(t.showHEX=_(i.getAttribute(n+"show-hex"),f.showHEX,!0)),i.hasAttribute(n+"show-alpha")&&(t.showAlpha=_(i.getAttribute(n+"show-alpha"),f.showAlpha,!0)),i.hasAttribute(n+"palette-editable")&&(t.paletteEditable=_(i.getAttribute(n+"palette-editable"),f.paletteEditable,!0)),i.hasAttribute(n+"sl-bar-size")&&(t.slBarSize=C(i.getAttribute(n+"sl-bar-size"),f.slBarSize,[232,150])),i.hasAttribute(n+"hue-bar-size")&&(t.hueBarSize=C(i.getAttribute(n+"hue-bar-size"),f.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),i.hasAttribute(n+"palette")){var o=i.getAttribute(n+"palette");switch(o){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=o.split(/[;|]/)}}i.hasAttribute(n+"color")&&(t.color=i.getAttribute(n+"color"))}(this.options,i),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,i.appendChild(this.element);var o=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(o),this.hueBarHelper=y(o),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return o(t,[{key:"setupHueCanvas",value:function(t){var i=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var n=t.getContext("2d"),o=n.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)o.addColorStop(r,"hsl("+360*r+", 100%, 50%)");n.fillStyle=o,n.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.hueBarSize[0]),r=Math.round(360*o/i.options.hueBarSize[0]);i.huePointer.style.left=o-7+"px",i.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var i=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var n=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.slBarSize[0]-1),r=(0,s.limit)(n.clientY-t.getBoundingClientRect().top,0,i.options.slBarSize[1]-1),a=i.slBarHelper.grabColor(o,r);i.slPointer.style.left=o-7+"px",i.slPointer.style.top=r-7+"px",i.onValueChanged("RGB",a)},o=function t(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){n(t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)})}},{key:"setupAlphaCanvas",value:function(t){var i=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var n=t.getContext("2d"),o=n.createLinearGradient(0,0,t.width-1,0);o.addColorStop(0,"hsla(0, 0%, 50%, 0)"),o.addColorStop(1,"hsla(0, 0%, 50%, 1)"),n.fillStyle=o,n.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.alphaBarSize[0]),r=+(o/i.options.alphaBarSize[0]).toFixed(2);i.alphaPointer.style.left=o-7+"px",i.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)})}},{key:"setupInput",value:function(t){var i=this,n=+t.min,o=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){i.onValueChanged(r,t.value)}):((h||p)&&t.addEventListener("keydown",function(a){"Up"===a.key?(t.value=(0,s.limit)(+t.value+1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,s.limit)(t.value-1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1)}),t.addEventListener("change",function(){var a=+t.value;i.onValueChanged(r,(0,s.limit)(a,n,o))}))}},{key:"setupClipboard",value:function(t){var i=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,s.parseColor)([i.R,i.G,i.B,i.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var i=this,n="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,o=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":o=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":o=s.PALETTE_MATERIAL_CHROME;break;default:o=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||o.length>0){var r=function(n,o,r){var s=t.querySelector('.a-color-picker-palette-color[data-color="'+n+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=n,s.setAttribute("data-color",n),s.title=n,t.insertBefore(s,o),i.palette[n]=!0,r&&i.onPaletteColorAdd(n)},a=function(n,o){n?(t.removeChild(n),i.palette[n.getAttribute("data-color")]=!1,o&&i.onPaletteColorRemove(n.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(i){t.removeChild(i)}),Object.keys(i.palette).forEach(function(t){i.palette[t]=!1}),o&&i.onPaletteColorRemove())};if(o.map(function(t){return(0,s.parseColor)(t,n?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(n?(0,s.parseColor)([i.R,i.G,i.B,i.A],"rgbcss4"):(0,s.rgbToHex)(i.R,i.G,i.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):i.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&i.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=i;var o=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=o[0],this.G=o[1],this.B=o[2],this.slBarHelper.setHue(i),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=i;var a=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=i;var l=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=i;var u=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=i;var c=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=i;var d=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var h=r(i,3);this.R=h[0],this.G=h[1],this.B=h[2];var p=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case g:var f=r(i,4);this.R=f[0],this.G=f[1],this.B=f[2],this.A=f[3];var v=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case b:var y=r(i,4);this.H=y[0],this.S=y[1],this.L=y[2],this.A=y[3];var _=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=_[0],this.G=_[1],this.B=_[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var C=r((0,s.cssColorToRgb)(i)||[this.R,this.G,this.B],3);this.R=C[0],this.G=C[1],this.B=C[2];var w=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=w[0],this.S=w[1],this.L=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var F=r((0,s.parseColor)(i,"rgba")||[0,0,0,1],4);this.R=F[0],this.G=F[1],this.B=F[2],this.A=F[3];var E=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=E[0],this.S=E[1],this.L=E[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=i}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",n&&n.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,i,n){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=i,this.inputL.value=n)}},{key:"updateInputRGB",value:function(t,i,n){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=i,this.inputB.value=n)}},{key:"updateInputRGBHEX",value:function(t,i,n){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,i,n))}},{key:"updatePointerH",value:function(t){var i=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=i-7+"px"}},{key:"updatePointerSL",value:function(t,i,n){var o=r((0,s.hslToRgb)(t,i,n),3),a=o[0],l=o[1],u=o[2],c=r(this.slBarHelper.findColor(a,l,u),2),d=c[0],h=c[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var i=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=i-7+"px"}}}]),t}(),F=function(){function t(i){c(this,t),this.name=i,this.listeners=[]}return o(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(i){return i!==t}):[]}},{key:"emit",value:function(t,i){for(var n=this.listeners.slice(0),o=0;o<n.length;o++)n[o].apply(i,t)}}]),t}();function E(t,i){var n=new w(t,i),o={change:new F("change"),coloradd:new F("coloradd"),colorremove:new F("colorremove")},a=!0,l={},u={get element(){return n.element},get rgb(){return[n.R,n.G,n.B]},set rgb(e){var c=r(e,3),d=c[0],h=c[1],p=c[2],f=[(0,s.limit)(d,0,255),(0,s.limit)(h,0,255),(0,s.limit)(p,0,255)];d=f[0],h=f[1],p=f[2],n.onValueChanged(g,[d,h,p,1])},get hsl(){return[n.H,n.S,n.L]},set hsl(e){var v=r(e,3),y=v[0],_=v[1],C=v[2],E=[(0,s.limit)(y,0,360),(0,s.limit)(_,0,100),(0,s.limit)(C,0,100)];y=E[0],_=E[1],C=E[2],n.onValueChanged(b,[y,_,C,1])},get rgbhex(){return this.all.hex},get rgba(){return[n.R,n.G,n.B,n.A]},set rgba(e){var k=r(e,4),S=k[0],A=k[1],D=k[2],x=k[3],I=[(0,s.limit)(S,0,255),(0,s.limit)(A,0,255),(0,s.limit)(D,0,255),(0,s.limit)(x,0,1)];S=I[0],A=I[1],D=I[2],x=I[3],n.onValueChanged(g,[S,A,D,x])},get hsla(){return[n.H,n.S,n.L,n.A]},set hsla(e){var B=r(e,4),T=B[0],j=B[1],P=B[2],L=B[3],R=[(0,s.limit)(T,0,360),(0,s.limit)(j,0,100),(0,s.limit)(P,0,100),(0,s.limit)(L,0,1)];T=R[0],j=R[1],P=R[2],L=R[3],n.onValueChanged(b,[T,j,P,L])},get color(){return this.all.toString()},set color(e){n.onValueChanged(m,e)},setColor:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.onValueChanged(m,t,{silent:i})},get all(){if(a){var M=[n.R,n.G,n.B,n.A],z=n.A<1?"rgba("+n.R+","+n.G+","+n.B+","+n.A+")":s.rgbToHex.apply(void 0,M);(l=(0,s.parseColor)(M,l)).toString=function(){return z},a=!1}return Object.assign({},l)},get onchange(){return o.change&&o.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return o.coloradd&&o.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return o.colorremove&&o.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(n.palette).filter(function(t){return n.palette[t]})},set palette(e){n.updatePalette(e)},show:function(){n.element.classList.remove("hidden")},hide:function(){n.element.classList.add("hidden")},toggle:function(){n.element.classList.toggle("hidden")},on:function(t,i){return t&&o[t]&&o[t].on(i),this},off:function(t,i){return t&&o[t]&&o[t].off(i),this},destroy:function(){o.change.off(),o.coloradd.off(),o.colorremove.off(),n.element.remove(),o=null,n=null}};return n.onchange=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];a=!0,o.change.emit([u].concat(i),u)},n.oncoloradd=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.coloradd.emit([u].concat(i),u)},n.oncolorremove=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.colorremove.emit([u].concat(i),u)},n.element.ctrl=u,u}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var k=n(5).toString(),S=document.createElement("style");S.setAttribute("type","text/css"),S.setAttribute("data-source","a-color-picker"),S.innerHTML=k,document.querySelector("head").appendChild(S)}i.createPicker=E,i.from=function(t,i){var n=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(d(t)):"string"==typeof t?[].concat(d(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,n){var o=E(t,i);return o.index=n,o});return n.on=function(t,i){return n.forEach(function(n){return n.on(t,i)}),this},n.off=function(t){return n.forEach(function(i){return i.off(t)}),this},n},i.parseColorToRgb=s.parseColorToRgb,i.parseColorToRgba=s.parseColorToRgba,i.parseColorToHsl=s.parseColorToHsl,i.parseColorToHsla=s.parseColorToHsla,i.parseColor=s.parseColor,i.rgbToHex=s.rgbToHex,i.hslToRgb=s.hslToRgb,i.rgbToHsl=s.rgbToHsl,i.rgbToHsv=s.rgbToHsv,i.rgbToInt=s.rgbToInt,i.intToRgb=s.intToRgb,i.getLuminance=s.getLuminance,i.COLOR_NAMES=s.COLOR_NAMES,i.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,i.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,i.VERSION="1.2.1"},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.nvl=i.ensureArray=i.limit=i.getLuminance=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.cssHslaToHsla=i.cssHslToHsl=i.parseColorToRgba=i.parseColorToRgb=i.cssRgbaToRgba=i.cssRgbToRgb=i.cssColorToRgba=i.cssColorToRgb=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=void 0;var o,r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=(o=n(0))&&o.__esModule?o:{default:o};function a(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function u(t,i,n){return isNaN(t*=1)||i>t?i:t>n?n:t}function c(t,i){return null==t?i:t}function d(t,i,n){var o=[u(t,0,255),u(i,0,255),u(n,0,255)];return"#"+("000000"+((t=o[0])<<16|(i=o[1])<<8|(n=o[2])).toString(16)).slice(-6)}function h(t,i,n){var o=void 0,r=void 0,s=void 0,a=[u(t,0,360)/360,u(i,0,100)/100,u(n,0,100)/100];if(t=a[0],n=a[2],0==(i=a[1]))o=r=s=n;else{var l=function(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t},c=n<.5?n*(1+i):n+i-n*i,d=2*n-c;o=l(d,c,t+1/3),r=l(d,c,t),s=l(d,c,t-1/3)}return[255*o,255*r,255*s].map(Math.round)}function p(t,i,n){var o=[u(t,0,255)/255,u(i,0,255)/255,u(n,0,255)/255],r=Math.max(t=o[0],i=o[1],n=o[2]),s=Math.min(t,i,n),a=void 0,l=void 0,c=(r+s)/2;if(r==s)a=l=0;else{var d=r-s;switch(l=c>.5?d/(2-r-s):d/(r+s),r){case t:a=(i-n)/d+6*(i<n);break;case i:a=(n-t)/d+2;break;case n:a=(t-i)/d+4}a/=6}return[360*a,100*l,100*c].map(Math.round)}function f(t,i,n){return t<<16|i<<8|n}function m(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(i||t)||[],10),o=n[3],s=n[4],a=n[5],u=n[7],c=n[8],d=n[9];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16)];if(void 0!==u)return[parseInt(u,16),parseInt(c,16),parseInt(d,16)]}}function g(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(i||t)||[],12),o=n[3],s=n[4],a=n[5],u=n[6],c=n[8],d=n[9],h=n[10],p=n[11];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16),u?+(parseInt(u+u,16)/255).toFixed(2):1];if(void 0!==c)return[parseInt(c,16),parseInt(d,16),parseInt(h,16),p?+(parseInt(p,16)/255).toFixed(2):1]}}function b(t){if(t){var i=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[u(o,0,255),u(s,0,255),u(a,0,255)]:void 0}}function v(t){if(t){var i=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[u(o,0,255),u(s,0,255),u(a,0,255),u(c(l,1),0,1)]:void 0}}function y(t){if(Array.isArray(t))return[u(t[0],0,255),u(t[1],0,255),u(t[2],0,255),u(c(t[3],1),0,1)];var i=g(t)||v(t);return i&&3===i.length&&i.push(1),i}function _(t){if(t){var i=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[u(o,0,360),u(s,0,100),u(a,0,100)]:void 0}}function C(t){if(t){var i=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[u(o,0,255),u(s,0,255),u(a,0,255),u(c(l,1),0,1)]:void 0}}function w(t){if(Array.isArray(t))return[u(t[0],0,360),u(t[1],0,100),u(t[2],0,100),u(c(t[3],1),0,1)];var i=C(t);return i&&3===i.length&&i.push(1),i}function F(t,i){switch(i){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var n=p.apply(void 0,a(t));return"hsl("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var o=p.apply(void 0,a(t));return"hsla("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hex":return d.apply(void 0,a(t));case"hexcss4":return d.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return f.apply(void 0,a(t))}}i.COLOR_NAMES=l,i.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],i.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],i.rgbToHex=d,i.hslToRgb=h,i.rgbToHsl=p,i.rgbToHsv=function(t,i,n){var o=[u(t,0,255)/255,u(i,0,255)/255,u(n,0,255)/255],r,s=Math.max(t=o[0],i=o[1],n=o[2]),a=Math.min(t,i,n),l=void 0,c=s-a;if(r=0===s?0:c/s,s==a)l=0;else{switch(s){case t:l=(i-n)/c+6*(i<n);break;case i:l=(n-t)/c+2;break;case n:l=(t-i)/c+4}l/=6}return[l,r,s]},i.rgbToInt=f,i.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},i.cssColorToRgb=m,i.cssColorToRgba=g,i.cssRgbToRgb=b,i.cssRgbaToRgba=v,i.parseColorToRgb=function(t){return Array.isArray(t)?t=[u(t[0],0,255),u(t[1],0,255),u(t[2],0,255)]:m(t)||b(t)},i.parseColorToRgba=y,i.cssHslToHsl=_,i.cssHslaToHsla=C,i.parseColorToHsl=function(t){return Array.isArray(t)?t=[u(t[0],0,360),u(t[1],0,100),u(t[2],0,100)]:_(t)},i.parseColorToHsla=w,i.parseColor=function(t,i){if(i=i||"rgb",null!=t){var n=void 0;if((n=y(t))||(n=w(t))&&(n=[].concat(a(h.apply(void 0,a(n))),[n[3]])))return(0,s.default)(i)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,i){return t[i]=F(n,i),t},i||{}):F(n,i.toString().toLowerCase())}},i.getLuminance=function(t,i,n){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i=(i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*((n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},i.limit=u,i.ensureArray=function(t){return t?Array.from(t):[]},i.nvl=c},function(t,i,n){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,i){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,i,n){var o=n(6);t.exports="string"==typeof o?o:o.toString()},function(t,i,n){(t.exports=n(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.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 n=function(t,i){var n=t[1]||"",o=t[3];if(!o)return n;if(i&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */";return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join("\n")}return[n].join("\n")}(i,t);return i[2]?"@media "+i[2]+"{"+n+"}":n}).join("")},i.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(o[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),i.push(a))}},i}}],i={};function n(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},n.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)n.d(o,r,(function(i){return t[i]}).bind(null,r));return o},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=1)}()},6441:function(t,i,n){"use strict";n.d(i,{Config:function(){return s}});var o=n(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=o.globalDocument,this.ownerWindow=o.globalWindow,this.shadowRoot=null,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.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=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.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:[]},"\n",{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,n){"use strict";n.d(i,{Async:function(){return m}});var o=n(82758),r=n(91898),s=n(12045),a=n(23282),l=n(84767),u=n(72430),c=n(14773),d=n(70799),h=n(86068),p=n(38837),f=n(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...n){if(this.isDestructed)return 0;let o={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(o=i).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,r.setTimeout)(t,i,...n),a=o.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 n=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{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,n=!1){let o=0,l=!1,d=[],h=(...i)=>{if(!l){o=0;let n=t(...i);if(l=!0,d.length){let t=()=>{d.forEach(t=>t()),d.length=0};(0,c.isPromise)(n)?n.finally(t):t()}}},p=(...s)=>{l=!1,i?(!o&&n&&h(...s),(0,r.clearTimeout)(o),o=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,o)):h(...s)};return(0,u.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 n,o=!1,r=!0;return(...s)=>{if(n=s,o){r=!0;return}r=!0,i&&(r=!1,t(...n)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&r&&t(...n)})}}throttle(t,i,n=!1){let o=null,r,s,l;return(...n)=>{(r=!0,l=n,i)?o||(s=()=>{r?(t(...l),r=!1,o=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,o)):o=null})():t(...l)}}promise(t){let i=()=>{},n=new Promise((n,o)=>{i=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(n,o)});return!n.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(n.finally=t=>(n.then(t).catch(t),n)),n.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),n.rejectCallback=i,n}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 n=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(n),n}requestIdlePromise(t){return this.promise(i=>{let n=this.requestIdleCallback(()=>i(n),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let n=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){var o,r;let s=globalThis.scheduler.postTask(t,(o=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},i),r=r={signal:n.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))}),o));return s.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),s}return this.promise((o,r)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){r(t)}this.__controllers.delete(n)},i.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(n),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,n,o,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!=(n=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?n:(t,i)=>{var n;let o=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(n=null==i?void 0:i.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(r=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,n){"use strict";n.d(i,{Async:function(){return o.Async}});var o=n(26992)},4012:function(t,i,n){"use strict";n.d(i,{Component:function(){return u}});var o=n(8884),r=n(78213),s=n(580),a=n(21537);let l=new Map;class u{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,n){let o=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),o.push(`__${t}`)),i&&(o.push("_",i),o.push("_",(0,a.isVoid)(n)?"true":n.toString())),o.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 n=Object.getPrototypeOf(this);n&&(0,a.isFunction)(n.setStatusComponent)&&n.setStatusComponent(t,i);let o=l.get(this),r=null==o?void 0:o[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let n=l.get(this);n||(n={},l.set(this,n)),n[t]||(n[t]=[]),n[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new o.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}u.STATUSES=r.STATUSES},91907:function(t,i,n){"use strict";n.d(i,{Component:function(){return o.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=n(4012),r=n(78213),s=n(80480)},78213:function(t,i,n){"use strict";n.d(i,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,n){"use strict";n.d(i,{ViewComponent:function(){return r}});var o=n(4012);class r extends o.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,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return V},APP_VERSION:function(){return o},BASE_PATH:function(){return ep},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return $},CLIPBOARD_ID:function(){return eb},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return ei},ES:function(){return r},FAT_MODE:function(){return c},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return D},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return er},INSERT_CLEAR_HTML:function(){return eo},INSERT_ONLY_TEXT:function(){return es},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 v},IS_BLOCK:function(){return E},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return X},IS_INLINE:function(){return k},IS_MAC:function(){return el},IS_PROD:function(){return l},IS_TEST:function(){return u},KEY_ALIASES:function(){return eu},KEY_ALT:function(){return L},KEY_BACKSPACE:function(){return B},KEY_DELETE:function(){return H},KEY_DOWN:function(){return O},KEY_ENTER:function(){return j},KEY_ESC:function(){return P},KEY_F3:function(){return U},KEY_LEFT:function(){return R},KEY_META:function(){return I},KEY_RIGHT:function(){return z},KEY_SPACE:function(){return N},KEY_TAB:function(){return T},KEY_UP:function(){return M},LIST_TAGS:function(){return S},MARKER_CLASS:function(){return et},MODE_SOURCE:function(){return Y},MODE_SPLIT:function(){return J},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return m},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return x},PARAGRAPH:function(){return G},PASSIVE_EVENTS:function(){return ey},SAFE_COUNT_CHANGE_CALL:function(){return ea},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return y},SPACE_REG_EXP_END:function(){return C},SPACE_REG_EXP_START:function(){return _},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Q},TEXT_PLAIN:function(){return Z},TEXT_RTF:function(){return ee},TOKENS:function(){return p},globalDocument:function(){return F},globalWindow:function(){return w},lang:function(){return eg}});let o="4.12.27",r="es2015",s=!0,a=!1,l=!0,u=!1,c=!0,d="https://xdsoft.net/jodit/pro/",h=()=>u=!0,p={},f="\uFEFF",m="\xa0",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,C=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,F="u">typeof document?document:void 0,E=/^(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,k=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,S=new Set(["ul","ol"]),A=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],D=new Set([...A,"br","hr"]),x=new Set(A),I="Meta",B="Backspace",T="Tab",j="Enter",P="Escape",L="Alt",R="ArrowLeft",M="ArrowUp",z="ArrowRight",O="ArrowDown",N="Space",H="Delete",U="F3",q=5,V=10,W=[I,B,H,M,O,z,R,j,P,U,T],$="br",G="p",K=1,Y=2,J=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Z=X?"text":"text/plain",Q=X?"html":"text/html",ee=X?"rtf":"text/rtf",et="jodit-selection_marker",ei=300,en="insert_as_html",eo="insert_clear_html",er="insert_as_text",es="insert_only_text",ea=10,el=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.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:el?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=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:ed,isMin:eh}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=F.currentScript;if(t)return ec(t.src);let i=F.querySelectorAll("script[src]");return i&&i.length?ec(i[i.length-1].src):ec(w.location.href)})(),ep=ed,ef=eh,em="data-jodit-temp",eg={},eb="clipboard",ev="source-consumer",ey=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,n){"use strict";n.d(i,{Create:function(){return l}});var o=n(82758),r=n(2748),s=n(21537),a=n(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,n){let o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),i&&((0,s.isPlainObject)(i)?(0,s.attr)(o,i):n=i),n&&(0,s.asArray)(n).forEach(t=>o.appendChild((0,s.isString)(t)?this.fromHTML(t):t)),o}div(t,i,n){let o=this.element("div",i,n);return t&&(o.className=t),o}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);let n=null==(t=i.contentWindow)?void 0:t.document;if((0,a.assert)(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,i]}span(t,i,n){let o=this.element("span",i,n);return t&&(o.className=t),o}a(t,i,n){let o=this.element("a",i,n);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let n=this.div();n.innerHTML=t.toString();let o=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(r.Dom.safeRemove(o),i){let t=(0,s.refs)(o);Object.keys(i).forEach(n=>{let o=t[n];o&&!1===i[n]&&r.Dom.hide(o)})}return o}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let n=i[t.tagName.toLowerCase()];(0,s.isFunction)(n)?n(t):(0,s.isPlainObject)(n)&&(0,s.attr)(t,n)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,n){"use strict";n.d(i,{Create:function(){return o.Create}});var o=n(20218)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.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,n){"use strict";n.d(i,{cache:function(){return u},cacheHTML:function(){return c},cached:function(){return l}});var o=n(78213),r=n(2748),s=n(27613),a=n(82760);function l(t,i){let n=Object.getOwnPropertyDescriptor(t,i);return!n||(0,s.isFunction)(n.get)?null:n.value}function u(t,i,n){let o=n.get;if(!o)throw(0,a.error)("Getter property descriptor expected");n.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:t}),t}}function c(t,i,n){let l=n.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let u=!0,c=new WeakMap;n.value=function(...t){var i;if(u&&c.has(this.constructor))return null==(i=c.get(this.constructor))?void 0:i.cloneNode(!0);let n=l.apply(this,t);return u&&r.Dom.isElement(n)&&c.set(this.constructor,n),u?n.cloneNode(!0):n},t.hookStatus(o.STATUSES.ready,t=>{u=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,n){"use strict";n.d(i,{component:function(){return a},getComponentClass:function(){return l}});var o=n(82758),r=n(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 n=(0,r.getClassName)(t.prototype);if(s.has(n)&&!o.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return s.set(n,i),i}function l(t){return s.get(t)}},81577:function(t,i,n){"use strict";n.d(i,{debounce:function(){return l},throttle:function(){return u}});var o=n(91907),r=n(27613),s=n(38837),a=n(89890);function l(t,i=!1,n="debounce"){return(l,u)=>{let c=l[u];if(!(0,r.isFunction)(c))throw(0,a.error)("Handler must be a Function");return l.hookStatus(o.STATUSES.ready,o=>{let{async:a}=o;(0,s.assert)(null!=a,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(o):t,c=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:o.defaultTimeout;Object.defineProperty(o,u,{configurable:!0,value:a[n](o[u].bind(o),c,i)})}),{configurable:!0,get(){return c.bind(this)}}}}function u(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,n){"use strict";n.d(i,{derive:function(){return r}});var o=n(23282);function r(...t){return i=>{let n=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,o.isFunction)(a.value)&&!(0,o.isFunction)(n[i])&&Object.defineProperty(n,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,n){"use strict";n.d(i,{hook:function(){return s}});var o=n(23282),r=n(89890);function s(t){return(i,n)=>{if(!(0,o.isFunction)(i[n]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[n].call(t)})}}},78927:function(t,i,n){"use strict";n.d(i,{idle:function(){return a}});var o=n(91907),r=n(23282),s=n(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:n}=t,o=t[i];t[i]=(...i)=>n.requestIdleCallback(o.bind(t,...i))})}}},65478:function(t,i,n){"use strict";n.r(i),n.d(i,{autobind:function(){return o.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 u.hook},idle:function(){return c.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 o=n(45219),r=n(33433),s=n(87325),a=n(81577),l=n(55153),u=n(97357),c=n(78927),d=n(31589),h=n(53213),p=n(13525),f=n(37133)},31589:function(t,i,n){"use strict";n.d(i,{nonenumerable:function(){return o}});let o=(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,n){"use strict";n.d(i,{persistent:function(){return s}});var o=n(78213),r=n(39955);function s(t,i){t.hookStatus(o.STATUSES.ready,t=>{let n=(0,r.isViewObject)(t)?t:t.jodit,o=`${n.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=n.storage.get(o))?t:s},set(t){n.storage.set(o,t)}})})}},13525:function(t,i,n){"use strict";n.d(i,{wait:function(){return a}});var o=n(78213),r=n(23282),s=n(89890);function a(t){return(i,n)=>{let a=i[n];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(o.STATUSES.ready,i=>{let{async:o}=i,r=i[n],s=0;Object.defineProperty(i,n,{configurable:!0,value:function n(...a){o.clearTimeout(s),t(i)?r.apply(i,a):s=o.setTimeout(()=>n(...a),10)}})})}}},37133:function(t,i,n){"use strict";n.d(i,{watch:function(){return h}});var o=n(78213),r=n(73026),s=n(46559),a=n(23282),l=n(72430),u=n(39955),c=n(89890),d=n(37790);function h(t,i){return(n,h)=>{var p;if(!(0,a.isFunction)(n[h]))throw(0,c.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 o=(0,u.isViewObject)(i)?i:i.jodit,c=(t,...n)=>{if(!i.isInDestruct)return i[h](t,...n)};f||(c=i.async.microDebounce(c,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[n,r]=t.split(":"),s=m;n.length&&(s=i.get(n)),(0,a.isFunction)(s)&&(s=s(i)),o.events.on(s||i,r,c),s||o.events.on(r,c),i.hookStatus("beforeDestruct",()=>{o.events.off(s||i,r,c).off(r,c)});return}let s=t.split("."),[u]=s,h=s.slice(1),p=i[u];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on(`change.${h.join(".")}`,c);let f=(0,d.getPropertyDescriptor)(n,u);Object.defineProperty(i,u,{configurable:!0,set(t){let n=p;n!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on(`change.${h.join(".")}`,c),c(u,n,p))},get(){return f&&f.get?f.get.call(i):p}})})};(0,a.isFunction)(n.hookStatus)?n.hookStatus(o.STATUSES.ready,g):g(n)}}},2748:function(t,i,n){"use strict";n.d(i,{Dom:function(){return y}});var o=n(82758),r=n(4510),s=n(68345),a=n(23282),l=n(58487),u=n(42320),c=n(70799),d=n(86068),h=n(49055),p=n(38837),f=n(29960),m=n(41180),g=n(86583),b=n(89890),v=n(37790);class y{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,n){let o,r=t;n.s.save();let s=!1;do s=!1,(o=r.nextSibling)&&!y.isBlock(o)&&!y.isTag(o,"br")&&(s=!0,r=o);while(s);return y.__wrapElements(i,n,t,r)}static __wrapElements(t,i,n,o){let r=(0,c.isString)(t)?i.createInside.element(t):t;n.parentNode&&n.parentNode.insertBefore(r,n);let s=n;for(;s&&(s=n.nextSibling,r.appendChild(n),n!==o&&s);)n=s;return i.s.restore(),r}static wrapInline(t,i,n){let o,r=t,s=t;n.s.save();let a=!1;do a=!1,(o=r.previousSibling)&&!y.isBlock(o)&&(a=!0,r=o);while(a);do a=!1,(o=s.nextSibling)&&!y.isBlock(o)&&(a=!0,s=o);while(a);return y.__wrapElements(i,n,r,s)}static wrap(t,i,n){let o=(0,c.isString)(i)?n.element(i):i;if(y.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let i=t.extractContents();t.insertNode(o),o.appendChild(i)}return o}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);y.safeRemove(t)}}static between(t,i,n){let o=t;for(;o&&o!==i&&!(t!==o&&n(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=null==o?void 0:o.nextSibling}o=t}}static replace(t,i,n,o=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(n,"Need create instance for new tag"),i=n.fromHTML(i)),(0,c.isString)(i)?((0,p.assert)(n,"Need create instance for new tag"),a=n.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return o&&y.isElement(t)&&y.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 y.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return y.each(t,t=>y.isEmptyTextNode(t))}static isContentEditable(t,i){return y.isNode(t)&&!y.closest(t,t=>y.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=o.NO_EMPTY_TAGS){let n;if(!t)return!0;n=(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 y.isText(t)?r(t):!(y.isElement(t)&&n(t))&&y.each(t,t=>{if(y.isText(t)&&!r(t)||y.isElement(t)&&n(t))return!1})}static isNode(t){return!!(t&&(0,c.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return y.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return y.isTag(t,o.LIST_TAGS)}static isLeaf(t){return y.isTag(t,"li")}static isImage(t){return y.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,d.isVoid)(t)&&"object"==typeof t&&y.isNode(t)&&o.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!!y.isNode(t)&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){var i;return!!y.isNode(t)&&!!((null==(i=t.ownerDocument)?void 0:i.defaultView)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){var i;if(!y.isNode(t))return!1;let n=null==(i=t.ownerDocument)?void 0:i.defaultView;return t instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(t){return y.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)&&y.isHTMLElement(t)&&y.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static first(t,i){let n=null==t?void 0:t.firstChild;if(!n)return null;do{if(i(n))return n;let o=n.firstChild;if(o||(o=n.nextSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.nextSibling)&&n.parentNode!==t);o=null==n?void 0:n.nextSibling}n=o}while(n);return null}static last(t,i){let n=null==t?void 0:t.lastChild;if(!n)return null;do{if(i(n))return n;let o=n.lastChild;if(o||(o=n.previousSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.previousSibling)&&n.parentNode!==t);o=null==n?void 0:n.previousSibling}n=o}while(n);return null}static prev(t,i,n,o=!0){return y.find(t,i,n,!1,o)}static next(t,i,n,o=!0){return y.find(t,i,n,!0,o)}static prevWithClass(t,i){return y.prev(t,t=>y.isElement(t)&&t.classList.contains(i),t.parentNode)}static nextWithClass(t,i){return y.next(t,t=>y.isElement(t)&&t.classList.contains(i),t.parentNode)}static find(t,i,n,o=!0,r=!0){let s=this.nextGen(t,n,o,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,n=!0,o=!0){let r=[],s=t;do{let i=n?s.nextSibling:s.previousSibling;for(;i;)r.unshift(i),i=n?i.nextSibling:i.previousSibling;yield*this.runInStack(t,r,n,o),s=s.parentNode}while(s&&s!==i);return null}static each(t,i,n=!0){let o=this.eachGen(t,n),r=o.next();for(;!r.done;){if(!1===i(r.value))return!1;r=o.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,n,o=!0){for(;i.length;){let r=i.pop();if(o){let t=n?r.lastChild:r.firstChild;for(;t;)i.push(t),t=n?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,n,o="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=y.findWithCurrent(s[r],i,s,o,r);if(t)return t}for(;s&&!s[o]&&s!==n;)s=s.parentNode;s&&s[o]&&s!==n&&(s=s[o])}while(s&&s!==n);return null}static findSibling(t,i=!0,n=t=>!y.isEmptyTextNode(t)){let o=y.sibling(t,i);for(;o&&!n(o);)o=y.sibling(o,i);return o&&n(o)?o:null}static findNotEmptySibling(t,i){return y.findSibling(t,i,t=>{var i;return!y.isEmptyTextNode(t)&&!!(!y.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,n){return(0,v.call)(i?y.prev:y.next,t,t=>!!(t&&(!(y.isText(t)||y.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),n)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,n,o=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===n||!r.parentNode)break;r=r.parentNode}while(r&&r!==n);return r===n&&o&&i(r)?r:null}static closest(t,i,n){let o,r=t=>t.toLowerCase();if((0,a.isFunction)(i))o=i;else if((0,s.isArray)(i)||(0,u.isSet)(i)){let t=(0,u.isSet)(i)?i:new Set(i.map(r));o=i=>!!(i&&t.has(r(i.nodeName)))}else o=t=>!!(t&&r(i)===r(t.nodeName));return y.up(t,o,n)}static furthest(t,i,n){let o=null,r=null==t?void 0:t.parentElement;for(;r&&r!==n;)i(r)&&(o=r),r=null==r?void 0:r.parentElement;return o}static appendChildFirst(t,i){let n=t.firstChild;n?n!==i&&t.insertBefore(i,n):t.appendChild(i)}static after(t,i){let{parentNode:n}=t;n&&(n.lastChild===t?n.appendChild(i):n.insertBefore(i,t.nextSibling))}static before(t,i){let{parentNode:n}=t;n&&n.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,n=!1,s=()=>!0){let a=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(y.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a)}static isOrContains(t,i,n=!1){return t===i?!n:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>y.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let n=y.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&y.isTag(t.startContainer,o.INSEPARABLE_TAGS)?y.after(t.startContainer,i):(t.insertNode(i),n&&t.setStartBefore(n)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>y.isText(t)&&!t.nodeValue&&y.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=i||"")}static isTag(t,i){if(!this.isElement(t))return!1;let n=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(i instanceof Set)return i.has(n)||i.has(o);if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");return n===i||o===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!y.isElement(t)&&(y.isMarker(t)||"true"===(0,f.attr)(t,o.TEMP_ATTR))}static isMarker(t){return y.isNode(t)&&y.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,r.toArray)(t.querySelectorAll(`[${o.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,n){"use strict";n.d(i,{Dom:function(){return o.Dom},LazyWalker:function(){return r.LazyWalker}});var o=n(2748),r=n(70071)},70071:function(t,i,n){"use strict";n.d(i,{LazyWalker:function(){return a}});var o=n(45219),r=n(2748),s=n(72757);class a extends s.Eventify{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.Dom.eachGen(t,!this.options.reverse),this.isFinished=!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(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,n=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<=n;){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.idleId=0,this.__schedulerController=null}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return d}});var o=n(82758),r=n(46559),s=n(68345),a=n(23282),l=n(70799),u=n(89890),c=n(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 n=t.split("."),o=n[1]||c.defaultNameSpace;i.call(this,n[0],o)})}__getStore(t){if(!t)throw(0,u.error)("Need subject");if(void 0===t[this.__key]){let i=new c.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]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,i){let n=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?n.initEvent(i,!0,!0):(n.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(n,t,{value:i[t],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(t,i,n,r){let c,d,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(c=this,d=t,p=i,f=n):(c=t,d=i,p=n,f=r),!((0,l.isString)(d)||(0,l.isStringArray)(d))||0===d.length)throw(0,u.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,u.error)("Need event handler");if((0,s.isArray)(c))return c.forEach(t=>{this.on(t,d,p,f)}),this;let m=c,g=this.__getStore(m),b=this,v=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(v=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 n,r;if(0===t.length)throw(0,u.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:v};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=o.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(n=null==f?void 0:f.capture)&&n}:null!=(r=null==f?void 0:f.capture)&&r;v.options=i,m.addEventListener(t,v,i),this.__memoryDOMSubjectToHandler(m,v)}}}),this}__memoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap.get(t)||new Set;n.add(i),this.__domEventsMap.set(t,n)}__unmemoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap,o=n.get(t)||new Set;o.delete(i),o.size?n.set(t,o):n.delete(t)}one(t,i,n,o){let r,s,a,u;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,u=n):(r=t,s=i,a=n,u=o);let c=(...t)=>(this.off(r,s,c),a(...t));return this.on(r,s,c,u),this}off(t,i,n){let o,r,u;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,r=t,u=i):(o=t,r=i,u=n),(0,s.isArray)(o))return o.forEach(t=>{this.off(t,r,u)}),this;let d=o,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 n=p.get(t,i);if(n&&n.length)if((0,a.isFunction)(u)){let o=p.indexOf(t,i,u);!1!==o&&(f(n[o]),n.splice(o,1),n.length||p.clearEvents(i,t))}else n.forEach(f),n.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===c.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(t,i){let n=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:i;if("string"!=typeof o)throw(0,u.error)("Need event names");let r=this.__getStore(n);this.__eachEvent(o,(t,i)=>{let o=r.get(t,i);o&&this.__stopped.push(o),i===c.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(n,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,...n){let o,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,d=(0,l.isString)(t)?[i,...n]:n;if(!h(s)&&!(0,l.isString)(a))throw(0,u.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 n=p.get(t,i);if(n)try{[...n].every(i=>!this.__isStopped(n)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...d),this.currents.pop(),void 0!==r&&(o=r),!0))}finally{this.__removeStop(n)}i!==c.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let n=this.fire.apply(this,[s,t+"."+i,...d]);void 0!==n&&(o=n)})}}),o}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=o.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,n){"use strict";n.d(i,{Eventify:function(){return o}});class o{on(t,i){var n;return this.__map.has(t)||this.__map.set(t,new Set),null==(n=this.__map.get(t))||n.add(i),this}off(t,i){var n;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var n;let o;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.forEach(t=>{o=t(...i)})),o}constructor(){this.__map=new Map}}},57012:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return o}});let o=new(n(98220)).EventEmitter},3827:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var o=n(98220),r=n(72757),s=n(73026),a=n(15738)},73026:function(t,i,n){"use strict";n.d(i,{observable:function(){return c}});var o=n(68345),r=n(59292),s=n(72430),a=n(37790);let l=Symbol("observable-object");function u(t){return void 0!==t[l]}function c(t){if(u(t))return t;let i={},n={},c=(i,r)=>((0,o.isArray)(i)?i.map(t=>c(t,r)):(n[i]||(n[i]=[]),n[i].push(r)),t),d=(r,...s)=>{if((0,o.isArray)(r))return void r.map(t=>d(t,...s));try{!i[r]&&n[r]&&(i[r]=!0,n[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,n=[])=>{let o={};u(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let u=n.concat(l).filter(t=>t.length);o[l]=i[l];let c=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set:i=>{let n=o[l];if(!(0,r.isFastEqual)(o[l],i)){d(["beforeChange",`beforeChange.${u.join(".")}`],l,i),(0,s.isPlainObject)(i)&&h(i,u),c&&c.set?c.set.call(t,i):o[l]=i;let r=[];d(["change",...u.reduce((t,i)=>(r.push(i),t.push(`change.${r.join(".")}`),t),[])],u.join("."),n,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>c&&c.get?c.get.call(t):o[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(o[l])&&h(o[l],u)}),Object.defineProperty(t,"on",{value:c}))};return h(t),t}},15738:function(t,i,n){"use strict";n.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var o=n(4510),r=n(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let n=this.__store.get(i);return(0,r.assert)(n,"-"),n[t]}}indexOf(t,i,n){let o=this.get(t,i);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===n)return t}return!1}namespaces(t=!1){let i=(0,o.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,n,o=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),o?r[t].unshift(n):r[t].push(n)}clear(){this.__store.clear()}clearEvents(t,i){let n=this.__store.get(t);n&&n[i]&&(delete n[i],Object.keys(n).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return E},extendLang:function(){return _},getContainer:function(){return w},getPopupViewRoot:function(){return F},instances:function(){return f},modules:function(){return y},pluginSystem:function(){return v},uniqueUid:function(){return b}});var o=n(19306),r=n(70799),s=n(39955),a=n(12475),l=n(41180),u=n(80568),c=n(41876),d=n(57012),h=n(82758),p=n(22732);let f={},m=1,g=new Set;function b(){function t(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let i=t();for(;g.has(i);)i=t();return g.add(i),i}let v=new c.PluginSystem({getContainer:w}),y={},_=t=>{Object.keys(t).forEach(i=>{h.lang[i]?Object.assign(h.lang[i],t[i]):h.lang[i]=t[i]})},C=new WeakMap;function w(t,i,n="div",l=!1){let c=(0,r.isString)(i)?i:i?(0,u.getClassName)(i.prototype):"jodit-utils",d=C.get(t)||{},h=c+n,f=(0,s.isViewObject)(t)?t:t.j,m=null;if(!d[h]){let i=f.c;if(m=F(f.o,f.container,t.od.body),l&&(0,o.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===n?t.ed.head:t.ed.body;m=(0,o.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(n,{className:`jodit jodit-${(0,a.kebabCase)(c)}-container jodit-box`});r.classList.add(`jodit_theme_${f.o.theme||"default"}`),m.appendChild(r),d[h]=r,t.hookStatus("beforeDestruct",()=>{f.events.off(r),p.Dom.safeRemove(r),delete d[h],Object.keys(d).length&&C.delete(t)}),C.set(t,d),f.events.fire("getContainer",r)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add(`jodit_theme_${f.o.theme||"default"}`),d[h]}function F(t,i,n){var o,r,s;return null!=(s=null!=(r=null!=(o=t.popupRoot)?o:t.shadowRoot)?r:p.Dom.closest(i,t=>p.Dom.isHTMLElement(t)&&(p.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,l.css)(t,"position"))),n))?s:n}let E=d.eventEmitter},29999:function(t,i,n){"use strict";n.d(i,{asArray:function(){return r}});var o=n(68345);let r=t=>(0,o.isArray)(t)?t:[t]},76855:function(t,i,n){"use strict";n.d(i,{asArray:function(){return o.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var o=n(29999),r=n(46559),s=n(4510)},46559:function(t,i,n){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}n.d(i,{splitArray:function(){return o}})},4510:function(t,i,n){"use strict";n.d(i,{toArray:function(){return s}});var o=n(70722),r=n(58844);let s=function(...t){var i;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=n(13252)},13252:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var o=n(82758);function r(t,i,...n){return i?o.globalWindow.setTimeout(t,i,...n):(t.call(null,...n),0)}function s(t){o.globalWindow.clearTimeout(t)}},54765:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return r}});var o=n(82758);function r(){let t=!0;try{let i=o.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return o.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 u.isFunction},isHTML:function(){return c.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 v.isNumber},isNumeric:function(){return y.isNumeric},isPlainObject:function(){return _.isPlainObject},isPromise:function(){return C.isPromise},isSet:function(){return w.isSet},isString:function(){return F.isString},isStringArray:function(){return F.isStringArray},isURL:function(){return E.isURL},isValidName:function(){return k.isValidName},isViewObject:function(){return S.isViewObject},isVoid:function(){return A.isVoid},isWindow:function(){return D.isWindow}});var o=n(54765),r=n(12045),s=n(68345),a=n(87612),l=n(59292),u=n(23282),c=n(58487),d=n(29673),h=n(60132),p=n(72913),f=n(19306),m=n(45603),g=n(78116),b=n(70722),v=n(84767),y=n(29807),_=n(72430),C=n(14773),w=n(42320),F=n(70799),E=n(26049),k=n(37508),S=n(39955),A=n(86068),D=n(52742)},12045:function(t,i,n){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}n.d(i,{isAbortError:function(){return o}})},68345:function(t,i,n){"use strict";function o(t){return Array.isArray(t)}n.d(i,{isArray:function(){return o}})},87612:function(t,i,n){"use strict";function o(t){return"boolean"==typeof t}n.d(i,{isBoolean:function(){return o}})},59292:function(t,i,n){"use strict";n.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var o=n(67462);function r(t,i){return t===i||(0,o.stringify)(t)===(0,o.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,n){"use strict";function o(t){return"function"==typeof t}n.d(i,{isFunction:function(){return o}})},29673:function(t,i,n){"use strict";function o(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/)}n.d(i,{isHtmlFromWord:function(){return o}})},58487:function(t,i,n){"use strict";n.d(i,{isHTML:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,n){"use strict";n.d(i,{hasContainer:function(){return u},isDestructable:function(){return l},isInitable:function(){return a}});var o=n(2748),r=n(23282),s=n(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 u(t){return!(0,s.isVoid)(t)&&o.Dom.isElement(t.container)}},72913:function(t,i,n){"use strict";n.d(i,{isInt:function(){return s}});var o=n(29807),r=n(70799);function s(t){return(0,r.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,n){"use strict";n.d(i,{isJoditObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.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,n){"use strict";n.d(i,{isMarker:function(){return r}});var o=n(2748);function r(t){return o.Dom.isMarker(t)}},70722:function(t,i,n){"use strict";function o(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(String(t)))}n.d(i,{isNativeFunction:function(){return o}})},84767:function(t,i,n){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}n.d(i,{isNumber:function(){return o}})},29807:function(t,i,n){"use strict";n.d(i,{isNumeric:function(){return r}});var o=n(70799);function r(t){if((0,o.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,n){"use strict";n.d(i,{isPlainObject:function(){return r}});var o=n(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,n){"use strict";function o(t){return t&&"function"==typeof t.then}n.d(i,{isPromise:function(){return o}})},42320:function(t,i,n){"use strict";n.d(i,{isSet:function(){return r}});var o=n(23282);function r(t){return!!t&&(0,o.isFunction)(t.has)&&(0,o.isFunction)(t.add)&&(0,o.isFunction)(t.delete)}},70799:function(t,i,n){"use strict";n.d(i,{isString:function(){return r},isStringArray:function(){return s}});var o=n(68345);function r(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&r(t[0])}},26049:function(t,i,n){"use strict";n.d(i,{isURL:function(){return r}});var o=n(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=o.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,n){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}n.d(i,{isValidName:function(){return o}})},39955:function(t,i,n){"use strict";n.d(i,{isViewObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,n){"use strict";function o(t){return null==t}n.d(i,{isVoid:function(){return o}})},52742:function(t,i,n){"use strict";function o(t){return null!=t&&t===t.window}n.d(i,{isWindow:function(){return o}})},35278:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o}});let o=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 n=parseInt(i[2],10),o=parseInt(i[3],10),r=(parseInt(i[4],10)|o<<8|n<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o.colorToHex}});var o=n(35278)},32574:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return u}});var o=n(82758),r=n(2748),s=n(49055),a=n(76078);function l(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,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function u(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);let i=o.globalDocument.createElement("iframe");i.style.display="none",o.globalDocument.body.appendChild(i);let n="";try{let u=i.contentDocument||(i.contentWindow?i.contentWindow.document:null);if(u){u.open(),u.write(t),u.close(),r.Dom.each(u.body,t=>{r.Dom.isElement(t)&&/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")&&r.Dom.safeRemove(t)});try{for(let t=0;t<u.styleSheets.length;t+=1){let i=u.styleSheets[t].cssRules;for(let t=0;t<i.length;t+=1)""!==i[t].selectorText&&(0,a.$$)(i[t].selectorText,u.body).forEach(n=>{n.style.cssText=l(i[t].style.cssText+";"+n.style.cssText)})}}catch(t){if(!o.IS_PROD)throw t}r.Dom.each(u.body,t=>{if(r.Dom.isElement(t)){let i=t.getAttribute("style");i&&(t.style.cssText=l(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),n=u.firstChild?(0,s.trim)(u.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(i)}return n&&(t=n),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,n){"use strict";n.d(i,{cleanFromWord:function(){return l}});var o=n(82758),r=n(2748),s=n(4510),a=n(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let n=o.globalDocument.createElement("div");n.innerHTML=t;let a=[];n.firstChild&&r.Dom.each(n,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(t.getAttribute("style")||"")){a.push(t);break}(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=n.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(t,i,n){"use strict";n.d(i,{htmlspecialchars:function(){return r}});var o=n(82758);function r(t){let i=o.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},75275:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return o.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 u.stripTags}});var o=n(32574),r=n(53212),s=n(53326),a=n(45971),l=n(86518),u=n(91003)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},86518:function(t,i,n){"use strict";n.d(i,{safeHTML:function(){return s},sanitizeHTMLElement:function(){return u}});var o=n(2748),r=n(43555);function s(t,i){var n;if(!o.Dom.isElement(t)&&!o.Dom.isFragment(t))return;let s=null!=(n=i.removeEventAttributes)?n:i.removeOnError,a=t=>{if(o.Dom.isElement(t)&&(s&&function(t){if(!o.Dom.isElement(t))return;let i=[];for(let n=0;n<t.attributes.length;n++)t.attributes[n].name.toLowerCase().startsWith("on")&&i.push(t.attributes[n].name);for(let n of i)t.removeAttribute(n)}(t),u(t,i),i.safeLinksTarget&&"A"===t.nodeName&&"_blank"===t.getAttribute("target"))){let i=(t.getAttribute("rel")||"").split(/\s+/).filter(Boolean);i.includes("noopener")||i.push("noopener"),i.includes("noreferrer")||i.push("noreferrer"),(0,r.attr)(t,"rel",i.join(" "))}};a(t),o.Dom.each(t,a)}let a=["src","data","action","formaction","poster","background","xlink:href"],l=new Set(["iframe","frame","object","embed"]);function u(t,{safeJavaScriptLink:i,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;n&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let c=t.getAttribute("href");if(i&&c&&0===c.trim().indexOf("javascript")&&((0,r.attr)(t,"href",location.protocol+"//"+c),s=!0),i){t.hasAttribute("srcdoc")&&((0,r.attr)(t,"srcdoc",null),s=!0);let i=t.nodeName.toLowerCase();for(let n of a){let o=t.getAttribute(n);o&&function(t,i){let n=t.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(n)||/^data:(?:text\/html|application\/xhtml)/.test(n))||/^data:image\/svg/.test(n)&&l.has(i)}(o,i)&&((0,r.attr)(t,n,null),s=!0)}}return s}},91003:function(t,i,n){"use strict";n.d(i,{stripTags:function(){return function t(i,n=document,d=null,h=!1){let p=n.createElement("div");return(0,r.isString)(i)?p.innerHTML=i:p.appendChild(i),(0,a.$$)("*",p).forEach(i=>{let r=i.parentNode;if(!r)return;if(d&&o.Dom.isTag(i,d)){let r=i.nodeName.toLowerCase(),s=o.Dom.isTag(i,c)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${t(i.innerHTML,n,d,h)}%%%/jodit-${r}%%%`;o.Dom.before(i,n.createTextNode(s)),o.Dom.safeRemove(i);return}if(o.Dom.isTag(i,u))return void o.Dom.safeRemove(i);if(!o.Dom.isTag(i,l))return;let s=i.nextSibling;!(o.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&r.insertBefore(n.createTextNode(h?"%%%jodit-single-br%%%":" "),s)}),(0,s.trim)(p.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,i,n,o)=>`<${i?"/":""}${o}>`)}}});var o=n(2748),r=n(70799),s=n(49055),a=n(43555);let l=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),u=new Set(["script","style"]),c=new Set(["br","hr","input"])},21537:function(t,i,n){"use strict";n.r(i),n.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 u.NUMBER_FIELDS_REG},OptionsError:function(){return h.OptionsError},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 o.asArray},assert:function(){return h.assert},attr:function(){return h.attr},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},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 c.getContentWidth},getDataTransfer:function(){return h.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return h.getPropertyDescriptor},getScrollParent:function(){return c.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 c.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},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 u.normalizeColor},normalizeCssNumericValue:function(){return u.normalizeCssNumericValue},normalizeCssValue:function(){return u.normalizeCssValue},normalizeKeyAliases:function(){return u.normalizeKeyAliases},normalizeLicense:function(){return u.normalizeLicense},normalizePath:function(){return u.normalizePath},normalizeRelativePath:function(){return u.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return u.normalizeUrl},offset:function(){return c.offset},options:function(){return h.options},parseQuery:function(){return h.parseQuery},position:function(){return c.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 c.size},splitArray:function(){return o.splitArray},sprintf:function(){return d.sprintf},stringify:function(){return d.stringify},stripTags:function(){return l.stripTags},toArray:function(){return o.toArray},trim:function(){return d.trim},trimChars:function(){return d.trimChars},trimInv:function(){return d.trimInv},ucfirst:function(){return d.ucfirst}});var o=n(76855),r=n(91898),s=n(27613),a=n(58149),l=n(75275),u=n(71521),c=n(56175),d=n(59007),h=n(43555)},71521:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return o.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 u.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return d.normalizeUrl}});var o=n(21224),r=n(3760),s=n(49033),a=n(12972),l=n(9992),u=n(70091),c=n(46334),d=n(37406)},21224:function(t,i,n){"use strict";n.d(i,{normalizeColor:function(){return s}});var o=n(35278),r=n(49055);let s=t=>{let i=["#"],n=(0,o.colorToHex)(t);if(!n)return!1;if(3===(n=(n=(0,r.trim)(n.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)i.push(n[t]),i.push(n[t]);return i.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}},3760:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return l},normalizeCssNumericValue:function(){return u},normalizeCssValue:function(){return c}});var o=n(29807),r=n(86068),s=n(35278),a=n(12475);let l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function u(t,i){return!(0,r.isVoid)(i)&&l.test(t)&&(0,o.isNumeric)(i.toString())?parseInt(i.toString(),10)+"px":i}function c(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,o.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,n){"use strict";n.d(i,{normalizeKeyAliases:function(){return s}});var o=n(82758),r=n(49055);function s(t){let i={},n={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=>o.KEY_ALIASES[t]||t).sort((t,i)=>n[t]&&!n[i]?-1:!n[t]&&n[i]?1:n[t]&&n[i]?n[t]-n[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},12972:function(t,i,n){"use strict";n.d(i,{normalizeLicense:function(){return o}});let o=(t,i=8)=>{let n=[];for(;t.length;)n.push(t.substr(0,i)),t=t.substr(i);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},9992:function(t,i,n){"use strict";n.d(i,{normalizePath:function(){return r}});var o=n(49055);let r=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((i,n)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),n&&(i=i.replace(/^\//,"")),n!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},70091:function(t,i,n){"use strict";n.d(i,{normalizeRelativePath:function(){return o}});let o=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,n){"use strict";n.d(i,{normalizeSize:function(){return o}});let o=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},37406:function(t,i,n){"use strict";n.d(i,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},35224:function(t,i,n){"use strict";function o(t){var i,n;let o=null==(i=t.ownerDocument)?void 0:i.defaultView,r=t.parentElement;for(;o&&r;){if(""!==(n=o.getComputedStyle(r)).transform&&"none"!==n.transform||""!==n.perspective&&"none"!==n.perspective||""!==n.filter&&"none"!==n.filter||"transform"===n.willChange||"perspective"===n.willChange||"filter"===n.willChange||"paint"===n.contain||"layout"===n.contain||"strict"===n.contain||"content"===n.contain){let t=r.getBoundingClientRect();return{x:t.left,y:t.top}}r=r.parentElement}return{x:0,y:0}}n.d(i,{getFixedPositionOffset:function(){return o}})},16442:function(t,i,n){"use strict";n.d(i,{getScrollParent:function(){return function t(i){if(!i)return null;let n=r.Dom.isHTMLElement(i),a=n&&(0,s.css)(i,"overflowY");return n&&"visible"!==a&&"hidden"!==a&&i.scrollHeight>=i.clientHeight?i:t(i.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=n(82758),r=n(2748),s=n(43555)},56175:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o.getContentWidth},getFixedPositionOffset:function(){return r.getFixedPositionOffset},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return a.innerWidth},offset:function(){return u.offset},position:function(){return c.position},size:function(){return l.size}});var o=n(44506),r=n(35224),s=n(16442),a=n(81630),l=n(21496),u=n(81284),c=n(5700)},81630:function(t,i,n){"use strict";n.d(i,{innerWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}},21496:function(t,i,n){"use strict";n.d(i,{size:function(){return r}});var o=n(27613);function r(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},81284:function(t,i,n){"use strict";n.d(i,{offset:function(){return o}});let o=(t,i,n,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 u=n.body,c=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},d=n.defaultView||n.parentWindow,h=d.pageYOffset||c.scrollTop||u.scrollTop,p=d.pageXOffset||c.scrollLeft||u.scrollLeft,f=c.clientTop||u.clientTop||0,m=c.clientLeft||u.clientLeft||0,g=i.iframe;if(!r&&i&&i.options&&i.o.iframe&&g){let{top:t,left:n}=o(g,i,i.od,!0);a=s.top+t,l=s.left+n}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,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),u=l.left,c=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);u+=i,c+=o}return{left:Math.round(u),top:Math.round(c),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},87058:function(t,i,n){"use strict";n.d(i,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,i,n)=>n.toUpperCase())},67477:function(t,i,n){"use strict";n.d(i,{fuzzySearchIndex:function(){return r}});var o=n(82758);function r(t,i,n=0,s=1){let a=0,l=0,u=-1,c=0,d=0;for(l=n;a<t.length&&l<i.length;)t[a].toLowerCase()===i[l].toLowerCase()?(a++,c++,d=0,-1===u&&(u=l)):a>0&&(d>=s&&i[l]!==o.INVISIBLE_SPACE?(a=0,u=-1,c=0,d=0,l--):(d++,c++)),l++;return a===t.length?[u,c]:[-1,0]}},56967:function(t,i,n){"use strict";n.d(i,{i18n:function(){return c},sprintf:function(){return u}});var o=n(82758),r=n(70799),s=n(36409),a=n(43555),l=n(6441);let u=(t,i)=>{if(!i||!i.length)return t;let n=/%([sd])/g,o=n.exec(t),r=t,s=0;for(;o&&void 0!==i[s];)r=r.replace(o[0],i[s].toString()),s+=1,o=n.exec(t);return r};function c(t,i,n){if(!(0,r.isString)(t))throw(0,a.error)("i18n: Need string in first argument");if(!t.length)return t;let c=!!(null==n?void 0:n.debugLanguage),d={},h=t=>i&&i.length?u(t,i):t,p=(0,a.defaultLanguage)(l.Config.defaultOptions.language,l.Config.defaultOptions.language),f=(0,a.defaultLanguage)(null==n?void 0:n.language,p),m=i=>{if(!i)return;if((0,r.isString)(i[t]))return h(i[t]);let n=t.toLowerCase();if((0,r.isString)(i[n]))return h(i[n]);let o=(0,s.ucfirst)(t);if((0,r.isString)(i[o]))return h(i[o])};void 0!==o.lang[f]?d=o.lang[f]:c||(d=void 0!==o.lang[p]?o.lang[p]:o.lang.en);let g=null==n?void 0:n.i18n;if(g&&g[f]){let t=m(g[f]);if(t)return t}return m(d)||(!c&&o.lang.en&&(0,r.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):c?"{"+t+"}":(o.IS_PROD,h(t)))}},59007:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return a.CamelCaseToKebabCase},camelCase:function(){return o.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 u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return c.ucfirst}});var o=n(87058),r=n(67477),s=n(56967),a=n(12475),l=n(67462),u=n(49055),c=n(36409)},12475:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return o}});let o=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,n){"use strict";function o(t,i={}){if("object"!=typeof t)return String(t);let n=new Set(i.excludeKeys),r=new WeakMap;return JSON.stringify(t,(t,i)=>{if(!n.has(t)){if("object"==typeof i&&null!=i){if(r.get(i))return"[refObject]";r.set(i,!0)}return i}},i.prettify)}n.d(i,{stringify:function(){return o}})},49055:function(t,i,n){"use strict";n.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var o=n(82758);function r(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(t,i,n){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}n.d(i,{ucfirst:function(){return o}})},25726:function(t,i,n){"use strict";n.d(i,{alignElement:function(){return l},clearAlign:function(){return a},hAlignElement:function(){return s}});var o=n(22732),r=n(41180);function s(t,i){i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}function a(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function l(t,i){if(o.Dom.isNode(i)&&o.Dom.isElement(i))switch(a(i),t.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}}},63799:function(t,i,n){"use strict";n.d(i,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return l},appendStyleAsync:function(){return u},loadNext:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?l(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}},loadNextStyle:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?u(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}}});var o=n(70799),r=n(66292);let s=new Map,a=t=>(i,n)=>{if(s.has(n))return s.get(n);let o=t(i,n);return s.set(n,o),o},l=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(i)});t.e.one(s,"error",o).one(s,"load",n),t.od.body.appendChild(s)})),u=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.isInDestruct||t.e.on(s,"load",()=>n(s)).on(s,"error",o),s.href=(0,r.completeUrl)(i),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},38837:function(t,i,n){"use strict";n.d(i,{assert:function(){return r}});class o extends Error{constructor(t){super(t),this.name="AssertionError"}}function r(t,i){if(!t)throw new o(`Assertion failed: ${i}`)}},29960:function(t,i,n){"use strict";n.d(i,{attr:function(){return function t(i,n,u){if(!i||!(0,o.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(n))return Object.keys(n).forEach(o=>{let s=n[o];(0,r.isPlainObject)(s)&&"style"===o?(0,l.css)(i,s):("className"===o&&(o="class"),t(i,o,s))}),null;let c=(0,a.CamelCaseToKebabCase)(n);if(/^-/.test(c)){let n=t(i,`data${c}`);if(n)return n;c=c.substr(1)}if(void 0!==u)if(null==u)i.hasAttribute(c)&&i.removeAttribute(c);else{let t=u.toString();return"IMG"===i.nodeName&&("width"===c||"height"===c)&&(t=t.replace("px","")),i.setAttribute(c,t),t}return i.getAttribute(c)}}});var o=n(23282),r=n(72430),s=n(70799),a=n(12475),l=n(41180)},97639:function(t,i,n){"use strict";n.d(i,{browser:function(){return o}});let o=t=>{let i=navigator.userAgent.toLowerCase(),n=/(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?n[2]:"webkit"===t?"chrome"===n[1]||"webkit"===n[1]:"ff"===t?"firefox"===n[1]:"msie"===t?"trident"===n[1]||"msie"===n[1]:n[1]===t}},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,u=t[a];n.push((0,o.isPlainObject)(u)?r(u,l):s(l)+"="+s(u))}return n.join("&")}},66292:function(t,i,n){"use strict";n.d(i,{completeUrl:function(){return r}});var o=n(82758);let r=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},68934:function(t,i,n){"use strict";n.d(i,{ConfigDeepFlatten:function(){return function t(i){return(0,c.keys)(i,!1).reduce((n,o)=>(n[o]=(0,r.isPlainObject)(i[o])?t(i[o]):i[o],n),{})}},ConfigFlatten:function(){return p},ConfigMerge:function(){return function t(i,n){Object.keys(n).forEach(o=>{if(h(o))return;let s=n[o],a=i[o];(0,r.isPlainObject)(s)&&(0,r.isPlainObject)(a)&&!(0,u.isAtom)(s)?t(a,s):i[o]=s})}},ConfigProto:function(){return function t(i,n,c=0){if(Object.getPrototypeOf(i)!==Object.prototype)return i;let d=l.Config.defaultOptions;if((0,s.isString)(i.preset)){if(void 0!==d.presets[i.preset]){let t=d.presets[i.preset];Object.keys(t).forEach(n=>{(0,a.isVoid)(i[n])&&(i[n]=t[n])})}delete i.preset}let p={};return Object.keys(i).forEach(s=>{if(h(s))return;let a=i[s],l=n?n[s]:null;if((0,r.isPlainObject)(a)&&(0,r.isPlainObject)(l)&&!(0,u.isAtom)(a)){p[s]=t(a,l,c+1);return}if(0!==c&&(0,o.isArray)(a)&&!(0,u.isAtom)(a)&&(0,o.isArray)(l)){p[s]=[...a,...l.slice(a.length)];return}p[s]=a}),Object.setPrototypeOf(p,n),p}}});var o=n(68345),r=n(72430),s=n(70799),a=n(86068),l=n(6441),u=n(97735),c=n(37790);let d=["__proto__","constructor","prototype"];function h(t){return -1!==d.indexOf(t)}function p(t){return(0,c.keys)(t,!1).reduce((i,n)=>(i[n]=t[n],i),{})}},55877:function(t,i,n){"use strict";n.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var o=n(82758),r=n(26049),s=n(82501);let a=(t,{width:i=400,height:n=345}={})=>{if(!(0,r.isURL)(t))return t;let a=o.globalDocument.createElement("a");a.href=t,i||(i=400),n||(n=345);let l=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":{let o=a.pathname.split("/").filter(Boolean),r=o.findIndex(t=>/^\d+$/.test(t));if(-1===r)return t;let s=o[r],u=o[r+1];return u&&0===r&&(s+="/"+u),'<iframe width="'+i+'" height="'+n+'" 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 o=(a.search?(0,s.parseQuery)(a.search):{}).v||a.pathname.substring(1);return(o=o.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+i+'" height="'+n+'" src="'+l+"//www.youtube.com/embed/"+o+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},41180:function(t,i,n){"use strict";n.d(i,{clearCenterAlign:function(){return c},css:function(){return u}});var o=n(87612),r=n(72430),s=n(3760),a=n(87058),l=n(12475);function u(t,i,n,c=!1){if((0,o.isBoolean)(n)&&(c=n,n=void 0),(0,r.isPlainObject)(i)||void 0!==n){let o=(t,i,n)=>{void 0!==(n=(0,s.normalizeCssNumericValue)(i,n))&&(null==n||u(t,i,!0)!==(0,s.normalizeCssValue)(i,n))&&(t.style[i]=n)};if((0,r.isPlainObject)(i)){let n=Object.keys(i);for(let r=0;r<n.length;r+=1)o(t,(0,a.camelCase)(n[r]),i[n[r]])}else o(t,(0,a.camelCase)(i),n);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&&!c&&(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)}let c=t=>{"block"===u(t,"display")&&u(t,"display","");let{style:i}=t;"auto"===i.marginLeft&&"auto"===i.marginRight&&(i.marginLeft="",i.marginRight="")}},15456:function(t,i,n){"use strict";n.d(i,{ctrlKey:function(){return o}});let o=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,n){"use strict";n.d(i,{dataBind:function(){return s}});var o=n(39955);let r=new WeakMap,s=(t,i,n)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,o.isViewObject)(t.j)&&(i=t.j.e),(0,o.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===n?s[i]:(s[i]=n,n)}},96325:function(t,i,n){"use strict";n.d(i,{defaultLanguage:function(){return s}});var o=n(82758),r=n(70799);let s=(t,i="en")=>"auto"!==t&&(0,r.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):i},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},93661:function(t,i,n){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}n.d(i,{abort:function(){return o}})},86397:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},32880:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort}});var o=n(93661),r=n(86397),s=n(57865)},57865:function(t,i,n){"use strict";n.d(i,{OptionsError:function(){return o}});class o extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},89890:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return o.connection},error:function(){return o.error},options:function(){return o.options}});var o=n(82760),r=n(32880)},97735:function(t,i,n){"use strict";n.d(i,{fastClone:function(){return a},isAtom:function(){return r},markAsAtomic:function(){return s}});var o=n(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,o.stringify)(t))}},80568:function(t,i,n){"use strict";n.d(i,{getClassName:function(){return s},keepNames:function(){return r}});var o=n(23282);let r=new Map,s=t=>{var i;if((0,o.isFunction)(t.className))return t.className();let n=(null==(i=t.constructor)?void 0:i.originalConstructor)||t.constructor;if(r.has(n))return r.get(n);if(n.name)return n.name;let s=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=n.toString().match(s);return a?a[1]:""}},94643:function(t,i,n){"use strict";n.d(i,{get:function(){return s}});var o=n(70799),r=n(86068);function s(t,i){if(!(0,o.isString)(t)||!t.length)return null;let n=t.split("."),s=i;try{for(let t of n){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,n){"use strict";n.d(i,{humanSizeToBytes:function(){return o}});let o=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let i=t.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return -1!==n.indexOf(i)?o*Math.pow(1024,n.indexOf(i)+1):parseInt(t,10)}},43555:function(t,i,n){"use strict";n.d(i,{$$:function(){return A.$$},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 x.LimitedStack},OptionsError:function(){return b.OptionsError},abort:function(){return b.abort},alignElement:function(){return o.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},browser:function(){return l.browser},buildQuery:function(){return u.buildQuery},call:function(){return I.call},callPromise:function(){return I.callPromise},callThis:function(){return I.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return w.cns},completeUrl:function(){return c.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return A.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return b.error},fastClone:function(){return v.fastClone},get:function(){return y.get},getClassName:function(){return _.getClassName},getDataTransfer:function(){return I.getDataTransfer},getPropertyDescriptor:function(){return I.getPropertyDescriptor},getXPathByElement:function(){return A.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return C.humanSizeToBytes},inView:function(){return S.inView},isAtom:function(){return v.isAtom},keepNames:function(){return _.keepNames},keys:function(){return I.keys},loadImage:function(){return I.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return w.markDeprecated},markOwner:function(){return I.markOwner},memorizeExec:function(){return I.memorizeExec},options:function(){return b.options},parseQuery:function(){return F.parseQuery},previewBox:function(){return E.previewBox},refs:function(){return A.refs},reset:function(){return k.reset},resolveElement:function(){return A.resolveElement},scrollIntoViewIfNeeded:function(){return S.scrollIntoViewIfNeeded},set:function(){return D.set}});var o=n(25726),r=n(63799),s=n(38837),a=n(29960),l=n(97639),u=n(44710),c=n(66292),d=n(68934),h=n(55877),p=n(41180),f=n(15456),m=n(86583),g=n(96325),b=n(89890),v=n(97735),y=n(94643),_=n(80568),C=n(38420),w=n(95942),F=n(82501),E=n(11628),k=n(58844),S=n(26395),A=n(76078),D=n(3703),x=n(50535),I=n(37790)},95942:function(t,i,n){"use strict";n.d(i,{cns:function(){return o},markDeprecated:function(){return r}});let o=console;function r(t,i=[""],n=null){return(...r)=>(o.warn(`Method "${i[0]}" deprecated.`+(i[1]?` Use "${i[1]}" instead`:"")),t.call(n,...r))}},82501:function(t,i,n){"use strict";n.d(i,{parseQuery:function(){return o}});let o=t=>{let i={},n=t.substring(1).split("&");for(let t=0;t<n.length;t+=1){let o=n[t].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return i}},11628:function(t,i,n){"use strict";n.d(i,{previewBox:function(){return u}});var o=n(2748),r=n(70799),s=n(29960),a=n(41180),l=n(76078);function u(t,i,n="px",c=null){let d=[],h=function(t,i){let n=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,o.Dom.safeRemove(l),n.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw n.forEach(t=>t()),n.length=0,t}return n}(t,n);try{let l=t.e.fire("beforePreviewBox",i,n);if(null!=l)return l;let u=t.c.div("jodit__preview-box jodit-context");c&&c.appendChild(u),(0,a.css)(u,{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}),u.appendChild(i);let n=i.contentWindow;if(n&&(t.e.fire("generateDocumentStructure.iframe",n.document,t),u=n.document.body,"function"==typeof ResizeObserver)){let o=!1,r=n.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(r)})},100)),a=()=>{o=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};d.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(u,{minWidth:1024,minHeight:600,border:0});let p=(i,n)=>{let a=(0,r.isString)(n)?t.c.div():n;(0,r.isString)(n)&&(a.innerHTML=n);for(let t=0;t<a.childNodes.length;t+=1){let n=a.childNodes[t];if(o.Dom.isElement(n)){let t=i.ownerDocument.createElement(n.nodeName);for(let i=0;i<n.attributes.length;i+=1)(0,s.attr)(t,n.attributes[i].nodeName,n.attributes[i].nodeValue);0===n.childNodes.length||o.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(t.textContent=n.textContent):n.innerHTML&&(t.innerHTML=n.innerHTML):p(t,n);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(n.cloneNode(!0))}catch(t){}}};return p(u,h),t.e.fire("afterPreviewBox",u),[u,()=>{d.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},58844:function(t,i,n){"use strict";n.d(i,{reset:function(){return l}});var o=n(82758),r=n(23282),s=n(94643);let a={};function l(t){var i,n;if(!(t in a)){let n=o.globalDocument.createElement("iframe");try{if(n.src="about:blank",o.globalDocument.body.appendChild(n),!n.contentWindow)return null;let i=(0,s.get)(t,n.contentWindow),l=(0,s.get)(t.split(".").slice(0,-1).join("."),n.contentWindow);(0,r.isFunction)(i)&&(a[t]=i.bind(l))}catch(t){if(!o.IS_PROD)throw t}finally{null==(i=n.parentNode)||i.removeChild(n)}}return null!=(n=a[t])?n:null}},26395:function(t,i,n){"use strict";n.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var o=n(2748);function r(t,i,n){let o=t.getBoundingClientRect(),r=t,s=o.top,a=o.height;for(;r&&r!==i&&r.parentNode;)if(!(s<=(o=(r=r.parentNode).getBoundingClientRect()).bottom)||s+a<=o.top)return!1;return s<=(n.documentElement&&n.documentElement.clientHeight||0)}function s(t,i,n){o.Dom.isHTMLElement(t)&&!r(t,i,n)&&(i.clientHeight!==i.scrollHeight&&(i.scrollTop=t.offsetTop),r(t,i,n)||t.scrollIntoView())}},76078:function(t,i,n){"use strict";n.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var o=n(82758),r=n(2748),s=n(4510),a=n(70799),l=n(87058),u=n(29960),c=n(89890);let d=1;function h(t,i){let n;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let o=i.id,r=o||"_selector_id_"+String(Math.random()).slice(2)+ ++d;t=t.replace(/:scope/g,"#"+r),o||i.setAttribute("id",r),n=i.parentNode.querySelectorAll(t),o||i.removeAttribute("id")}else n=i.querySelectorAll(t);return[].slice.call(n)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let n=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(n.length>1?"["+((0,s.toArray)(n).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let n=(0,u.attr)(i,"-ref");return n&&(0,a.isString)(n)&&(t[(0,l.camelCase)(n)]=i,t[n]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],n=t;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let t=n.nodeName.toLowerCase();if(n.id){t+="#"+n.id,i.unshift(t);break}{let i=n,o=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&o++;while(i);t+=":nth-of-type("+o+")"}i.unshift(t),n=n.parentNode}return i.join(" > ")};function g(t,i){let n=t;if((0,a.isString)(t))try{n=i.querySelector(t)}catch(i){throw(0,c.error)('String "'+t+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!r.Dom.isElement(n)||!n.cloneNode)throw(0,c.error)('Element "'+t+'" should be string or HTMLElement instance');return n}},3703:function(t,i,n){"use strict";n.d(i,{set:function(){return l}});var o=n(68345),r=n(29807),s=n(72430),a=n(70799);function l(t,i,n){if(!(0,a.isString)(t)||!t.length)return;let l=t.split("."),u=n,c=l[0];for(let t=0;t<l.length-1;t+=1)c=l[t],(0,o.isArray)(u[c])||(0,s.isPlainObject)(u[c])||(u[c]=(0,r.isNumeric)(l[t+1])?[]:{}),u=u[c];u&&(u[l[l.length-1]]=i)}},50535:function(t,i,n){"use strict";n.d(i,{LimitedStack:function(){return o}});class o{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,n){"use strict";n.d(i,{call:function(){return l},callPromise:function(){return d},callThis:function(){return u},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return g},keys:function(){return p},loadImage:function(){return h},markOwner:function(){return c},memorizeExec:function(){return f}});var o=n(14773),r=n(86068),s=n(29960),a=n(86583);function l(t,...i){return t(...i)}function u(t,i,...n){return t.apply(i,n)}function c(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,o.isPromise)(t)?t.then(t=>t,()=>null).finally(i):null==i?void 0:i()}let h=(t,i)=>i.async.promise((n,o)=>{let r=new Image,s=()=>{i.e.off(r),null==o||o()},a=()=>{i.e.off(r),n(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 n=[];for(let i in t)n.push(i);return n},f=(t,i,{control:n},o)=>{var s;let l=`button${n.command}`,u=null!=(s=n.args&&n.args[0])?s:(0,a.dataBind)(t,l);if((0,r.isVoid)(u))return!1;(0,a.dataBind)(t,l,u),o&&(u=o(u)),t.execCommand(n.command,!1,null!=u?u: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 n;do n=Object.getOwnPropertyDescriptor(t,i),t=Object.getPrototypeOf(t);while(!n&&t);return n}},31359:function(t,i,n){"use strict";n.d(i,{init:function(){return a}});var o=n(82758),r=n(60132),s=n(14041);function a(t,i,n,a,l,u,c){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(i,a),u.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{o.IS_PROD}),a.styles&&(c(t,i,"style").innerHTML=a.styles)}},14041:function(t,i,n){"use strict";n.d(i,{loadExtras:function(){return h},loadStyle:function(){return c}});var o=n(82758),r=n(12475),s=n(63799),a=n(89672);function l(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}let u=new Set;function c(t,i){var n;return(n=function*(){let n=d(t,i,!1);if(!u.has(n))return u.add(n),(0,s.appendStyleAsync)(t,n)},function(){var t=this,i=arguments;return new Promise(function(o,r){var s=n.apply(t,i);function a(t){l(s,o,r,a,u,"next",t)}function u(t){l(s,o,r,a,u,"throw",t)}a(void 0)})})()}function d(t,i,n){i=(0,r.kebabCase)(i);let o=t.minified?".min":"";return t.basePath+"plugins/"+i+"/"+i+o+"."+(n?"js":"css")}function h(t,i,n,r){try{let o=n.filter(i=>!t.has((0,a.normalizeName)(i.name)));o.length&&o.map(t=>{let n=t.url||d(i,t.name,!0);return(0,s.appendScriptAsync)(i,n).then(r).catch(()=>null)})}catch(t){if(!o.IS_PROD)throw t}}},48591:function(t,i,n){"use strict";n.d(i,{makeInstance:function(){return s}});var o=n(82758),r=n(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(n){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},89672:function(t,i,n){"use strict";n.d(i,{normalizeName:function(){return r}});var o=n(12475);function r(t){return(0,o.kebabCase)(t).toLowerCase()}},50911:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return o.Plugin}});var o=n(20356);n(41876)},41876:function(t,i,n){"use strict";n.d(i,{PluginSystem:function(){return f}});var o=n(82758),r=n(57012),s=n(46559),a=n(68345),l=n(60132),u=n(70799),c=n(31359),d=n(14041),h=n(48591),p=n(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((n,o)=>{(!t||t.has(o))&&i.push([o,n])}),i}__init(t){let{extraList:i,disableList:n,filter:r}={extraList:t.o.extraPlugins.map(t=>(0,u.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(([o,r])=>{if(n.has(o)||f.has(o))return;let s=null==r?void 0:r.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>n.has(t)))return;if(!s.every(t=>f.has(t)))return void g.add(o)}i=!0;let l=(0,h.makeInstance)(t,r);if(!l){f.set(o,null),g.delete(o);return}(0,c.init)(t,o,r,l,f,g,this.opts.getContainer),m[o]=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 n=m[i];(0,l.isDestructable)(n)&&n.destruct(t),delete m[i]}),delete t.__plugins}),o.IS_PROD||g.size}wait(t){return new Promise(i=>{if(this.get(t))return i();let n=()=>{i(),r.eventEmitter.off(`plugin:${t}:ready`,n)};r.eventEmitter.on(`plugin:${t}:ready`,n)})}constructor(t){this.opts=t,this.__items=new Map}}},20356:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return l}});var o=n(91907),r=n(65478),s=n(19306),a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class l extends o.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(o.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(o.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,n){"use strict";n.d(i,{Ajax:function(){return f}});var o=n(8884),r=n(82758),s=n(45219),a=n(21537),l=n(89890),u=n(6441);n(57459);var c=n(98582);function d(t){var i,n;function o(i,n){try{var s=t[i](n),a=s.value,l=a instanceof p;Promise.resolve(l?a.v:a).then(function(n){if(l){var u="return"===i?"return":"next";if(!a.k||n.done)return o(u,n);n=t[u](n).value}r(s.done?"return":"normal",n)},function(t){o("throw",t)})}catch(t){r("throw",t)}}function r(t,r){switch(t){case"return":i.resolve({value:r,done:!0});break;case"throw":i.reject(r);break;default:i.resolve({value:r,done:!1})}(i=i.next)?o(i.key,i.arg):n=null}this._invoke=function(t,r){return new Promise(function(s,a){var l={key:t,arg:r,resolve:s,reject:a,next:null};n?n=n.next=l:(i=n=l,o(t,r))})},"function"!=typeof t.return&&(this.return=void 0)}function h(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function p(t,i){this.v=t,this.k=i}d.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},d.prototype.next=function(t){return this._invoke("next",t)},d.prototype.throw=function(t){return this._invoke("throw",t)},d.prototype.return=function(t){return this._invoke("return",t)};class f{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,n=this.prepareRequest();return this.__async.promise((o,r)=>{var s;return(s=function*(){var s;let u=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,o(new c.Response(n,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=u,t.ontimeout=u,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,n;let o=0;t.lengthComputable&&(o=t.loaded/t.total*100),null==(n=(i=this.options).onProgress)||n.call(i,o)},t.onreadystatechange=()=>{var n,o;null==(o=(n=this.options).onProgress)||o.call(n,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}=n;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=yield 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)},function(){var t=this,i=arguments;return new Promise(function(n,o){var r=s.apply(t,i);function a(t){h(r,n,o,a,l,"next",t)}function l(t){h(r,n,o,a,l,"throw",t)}a(void 0)})}).call(this)})}stream(){var t;return(t=function*(){var t,i;this.__activated=!0;let{xhr:n,o}=this,r=this.prepareRequest(),s=0,u="",c=[],d=null,h=!1,f=null,m=()=>{if(d){let t=d;d=null,t()}},g=t=>{var i;let o=n.responseText;u+=o.substring(s),s=o.length;let r=u.split("\n\n");for(let n of(u=t?"":null!=(i=r.pop())?i:"",r)){let t=n.trim();if(!t)continue;let i=[];for(let n of t.split("\n"))n.startsWith("data: ")?i.push(n.slice(6)):n.startsWith("data:")&&i.push(n.slice(5));i.length&&c.push(i.join("\n"))}m()};n.onprogress=()=>g(!1),n.onload=()=>{g(!0),h=!0,this.__isFulfilled=!0,m()},n.onerror=()=>{f=l.connection("Connection error"),h=!0,this.__isFulfilled=!0,m()},n.onabort=()=>{f=l.abort("Abort connection"),h=!0,this.__isFulfilled=!0,m()},n.withCredentials=null!=(t=o.withCredentials)&&t;let{url:b,data:v,method:y}=r;n.open(y,b,!0),o.contentType&&n.setRequestHeader&&n.setRequestHeader("Content-type",o.contentType);let{headers:_}=o;(0,a.isFunction)(_)&&(_=yield new p(_.call(this),0)),_&&n.setRequestHeader&&Object.keys(_).forEach(t=>{n.setRequestHeader(t,_[t])}),n.send(v?this.__buildParams(v):void 0);try{for(;;)if(c.length>0)yield c.shift();else if(h)break;else yield(i=new Promise(t=>{d=t}),new p(i,0))}finally{this.__isFulfilled||this.abort()}if(f)throw f},function(){return new d(t.apply(this,arguments))}).call(this)}prepareRequest(){if(!this.o.url)throw l.error("Need URL for AJAX request");let t=this.o.url,i=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&i&&(0,a.isPlainObject)(i)){let n=t.indexOf("?");if(-1!==n){let o=(0,a.parseQuery)(t);t=t.substring(0,n)+"?"+(0,a.buildQuery)(function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},o,i))}else t+="?"+(0,a.buildQuery)(this.o.data)}let o={url:t,method:n,data:i};return f.log.splice(100),f.log.push(o),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(t,i=u.Config.prototype.defaultAjaxOptions){this.__async=new o.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,a.ConfigProto)(t||{},i),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}f.log=[],function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([s.autobind],f.prototype,"destruct",null)},57459:function(t,i,n){"use strict";n(6441).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},41601:function(t,i,n){"use strict";n.d(i,{Ajax:function(){return o.Ajax},Response:function(){return r.Response}});var o=n(54079),r=n(98582)},98582:function(t,i,n){"use strict";function o(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function r(t){return function(){var i=this,n=arguments;return new Promise(function(r,s){var a=t.apply(i,n);function l(t){o(a,r,s,l,u,"next",t)}function u(t){o(a,r,s,l,u,"throw",t)}l(void 0)})}}n.d(i,{Response:function(){return s}});class s{get url(){return this.request.url}json(){return r(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return r(function*(){return this.body}).call(this)}constructor(t,i,n,o){this.request=t,this.status=i,this.statusText=n,this.body=o}}},45124:function(t,i,n){"use strict";n.d(i,{cursorInTheEdgeOfString:function(){return a},findCorrectCurrentNode:function(){return l},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=n(82758),r=n(2748),s=n(26716);function a(t,i,n,r){var s;let a=(null==(s=t.nodeValue)?void 0:s.length)?t.nodeValue:"";if(r&&a.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>i)return!0;let l=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<i||!l&&i>0)}function l(t,i,n,o,s,a){if((t=i.startContainer.childNodes[i.startOffset])||(t=i.startContainer.childNodes[i.startOffset-1],n=!0),t&&o&&!r.Dom.isText(t)){if(!n&&r.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let i=a(t);for(;i;){if(i&&r.Dom.isText(i)){t=i;break}i=a(i)}}}if(t&&!o&&!r.Dom.isText(t)){let i=t,n=t;do i=i.firstChild,n=n.lastChild;while(i&&n&&!r.Dom.isText(i));i===n&&i&&r.Dom.isText(i)&&(t=i)}return{node:t,rightMode:n}}n(43463)},26716:function(t,i,n){"use strict";n.d(i,{moveNodeInsideStart:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n){let s=r.Dom.findSibling(i,n),a=r.Dom.findSibling(i,!n);for(;r.Dom.isElement(s)&&!r.Dom.isTag(s,o.INSEPARABLE_TAGS)&&r.Dom.isContentEditable(s,t.editor)&&(!a||!r.Dom.closest(i,r.Dom.isElement,t.editor));)n||!s.firstChild?s.appendChild(i):r.Dom.before(s.firstChild,i),s=r.Dom.sibling(i,n),a=r.Dom.sibling(i,!n)}},43463:function(t,i,n){"use strict";n.d(i,{moveTheNodeAlongTheEdgeOutward:function(){return r}});var o=n(2748);function r(t,i,n){let r=t;for(;r&&r!==n&&!(o.Dom.findSibling(r,i)||o.Dom.isBlock(r.parentElement));)(r=r.parentElement)&&r!==n&&(i?o.Dom.before(r,t):o.Dom.after(r,t))}},59242:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s.CHANGE},CommitStyle:function(){return r.CommitStyle},REPLACE:function(){return s.REPLACE},Selection:function(){return o.Selection},UNWRAP:function(){return s.UNWRAP},WRAP:function(){return s.WRAP}});var o=n(79348),r=n(25639),s=n(77361)},79348:function(t,i,n){"use strict";n.d(i,{Selection:function(){return f}});var o=n(82758),r=n(65478),s=n(2748),a=n(21537),l=n(27613),u=n(38837),c=n(43463),d=n(25639),h=n(45124),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class f{get j(){return this.jodit}errorNode(t){if(!s.Dom.isNode(t))throw(0,a.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,l.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,i=(null==t?void 0:t.rangeCount)?t.getRangeAt(0):null;return!(!i||!s.Dom.isOrContains(this.area,i.startContainer))}createRange(t=!1){let i=this.doc.createRange();return t&&this.selectRange(i),i}remove(){let t=this.sel,i=this.current();if(t&&i)for(let i=0;i<t.rangeCount;i+=1)t.getRangeAt(i).deleteContents(),t.getRangeAt(i).collapse(!0)}clear(){var t,i;(null==(t=this.sel)?void 0:t.rangeCount)&&(null==(i=this.sel)||i.removeAllRanges())}removeNode(t){if(!s.Dom.isOrContains(this.j.editor,t,!0))throw(0,a.error)("Selection.removeNode can remove only editor's children");s.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,i){this.removeMarkers();try{let n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,i);if(o)return n.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,i);(0,u.assert)(o,"Incorrect caretRangeFromPoint behaviour"),n.setStart(o.startContainer,o.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(t){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,a.$$)("span[data-"+o.MARKER_CLASS+"]",this.area)}removeMarkers(){s.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,i){let n=null;i&&(n=i.cloneRange()).collapse(t);let r=this.j.createInside.span();return r.id=o.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),r.style.lineHeight="0",r.style.display="none",s.Dom.markTemporary(r),(0,a.attr)(r,"data-"+o.MARKER_CLASS,t?"start":"end"),r.appendChild(this.j.createInside.text(o.INVISIBLE_SPACE)),n&&s.Dom.isOrContains(this.area,t?n.startContainer:n.endContainer)&&n.insertNode(r),r}restore(){let t=!1,i=t=>`span[data-${o.MARKER_CLASS}=${t?"start":"end"}]`,n=this.area.querySelector(i(!0)),r=this.area.querySelector(i(!1));if(n){if(t=this.createRange(),r)t.setStartAfter(n),s.Dom.safeRemove(n),t.setEndBefore(r),s.Dom.safeRemove(r);else{let i=n.previousSibling;s.Dom.isText(i)?t.setStart(i,i.nodeValue?i.nodeValue.length:0):t.setStartBefore(n),s.Dom.safeRemove(n),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let i=t.getRangeAt(0);(0,u.assert)(i,"Range is null");let n=i.cloneRange();n.collapse(!0);let o=this.j.createInside.fake();s.Dom.safeInsertNode(n,o),i.setStartBefore(o);let r=[o];if(!i.collapsed){let t=i.cloneRange();t.collapse(!1);let n=this.j.createInside.fake();s.Dom.safeInsertNode(t,n),i.setEndAfter(n),r.push(n)}return this.selectRange(i),r}restoreFakes(t){var i,n,o,r;let a=t.filter(t=>t.isConnected);if(!a.length)return;let[l,u]=a,c=this.createRange();c.setStartAfter(l),u&&c.setEndBefore(u),this.selectRange(c),(null==(i=l.parentNode)?void 0:i.firstChild)!==(null==(n=l.parentNode)?void 0:n.lastChild)&&s.Dom.safeRemove(l),(null==(o=null==u?void 0:u.parentNode)?void 0:o.firstChild)!==(null==(r=null==u?void 0:u.parentNode)?void 0:r.lastChild)&&s.Dom.safeRemove(u)}save(t=!1){if(this.hasMarkers)return[];let i=this.sel;if(!i||!i.rangeCount)return[];let n=[],o=i.rangeCount,r=[];for(let t=0;o>t;t+=1)if(r[t]=i.getRangeAt(t),r[t].collapsed){let i=this.marker(!0,r[t]);n[t]={startId:i.id,collapsed:!0,startMarker:i.outerHTML}}else{let i=this.marker(!0,r[t]),o=this.marker(!1,r[t]);n[t]={startId:i.id,endId:o.id,collapsed:!1,startMarker:i.outerHTML,endMarker:o.outerHTML}}if(!t){i.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(n[t].startId);if(o){if(n[t].collapsed)r[t].setStartAfter(o),r[t].collapse(!0);else if(r[t].setStartBefore(o),n[t].endId){let i=this.doc.getElementById(n[t].endId);i&&r[t].setEndAfter(i)}try{i.addRange(r[t].cloneRange())}catch(t){}}}}return n}focus(t={preventScroll:!0}){var i,n;if(!this.isFocused()){let o=(0,a.getScrollParent)(this.j.container),r=null==o?void 0:o.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),r&&(null==o?void 0:o.scrollTo)&&o.scrollTo(0,r);let l=this.sel,u=(null==l?void 0:l.rangeCount)?null==l?void 0:l.getRangeAt(0):null;if(!u||!s.Dom.isOrContains(this.area,u.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||null==(n=null==(i=this.j)?void 0:i.events)||n.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let i=0;t&&i<t.rangeCount;i+=1)if(!t.getRangeAt(i).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==o.MODE_WYSIWYG)return null;let i=this.sel;if(!i||0===i.rangeCount)return null;let n=i.getRangeAt(0),r=n.startContainer,a=!1;if(s.Dom.isTag(r,"br")&&i.isCollapsed)return r;if(!s.Dom.isText(r)){let o=(0,h.findCorrectCurrentNode)(r,n,a,i.isCollapsed,t,t=>a?t.lastChild:t.firstChild);r=o.node,a=o.rightMode}return r&&s.Dom.isOrContains(this.area,r)?r:null}insertNode(t,i=!0,n=!0){this.errorNode(t);let o=s.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let r=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),r&&r.rangeCount){let i=r.getRangeAt(0),{firstChild:n}=t;s.Dom.isOrContains(this.area,i.commonAncestorContainer)?s.Dom.safeInsertNode(i,t):this.area.appendChild(t),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var t;return null==(t=null==n?void 0:n.previousSibling)?void 0:t.lastChild}].forEach(t=>{let i=t();i&&s.Dom.isEmptyTextNode(i)&&s.Dom.safeRemove(i)})}else this.area.appendChild(t);let n=t=>{if(s.Dom.isBlock(t)){let i=t.lastChild;if(i)return n(i)}this.setCursorAfter(t)};i&&(s.Dom.isFragment(t)?o&&n(o):n(t)),this.j.o.scrollToPastedContent&&(0,a.scrollIntoViewIfNeeded)(null!=o?o:t,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",s.Dom.isFragment(t)?o:t)}insertHTML(t,i=!0){if(""===t)return;let n=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),s.Dom.isNode(t)?n.appendChild(t):n.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",n.innerHTML))&&n.lastChild){for(;n.firstChild;)n.firstChild,o.appendChild(n.firstChild);this.insertNode(o,i,!1),this.j.__imdSynchronizeValues()}}insertImage(t,i=null,n=null){let o=(0,l.isString)(t)?this.j.createInside.element("img"):t;if((0,l.isString)(t)&&o.setAttribute("src",t),null!=n){let t=n.toString();t&&"auto"!==t&&0>String(t).indexOf("px")&&0>String(t).indexOf("%")&&(t+="px"),(0,a.attr)(o,"width",t)}i&&"object"==typeof i&&(0,a.css)(o,i);let r=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",r)};this.j.e.on(o,"load",r),o.complete&&r(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){var i;let n=this.sel;if(!n||!n.rangeCount)return;let r=n.getRangeAt(0),u=r.commonAncestorContainer;s.Dom.isHTMLElement(u)||(u=u.parentElement);let c=[],d=r.startOffset,h=u.childNodes.length,p=r.startContainer===this.area?u.childNodes[d<h?d:h-1]:r.startContainer,f=r.endContainer===this.area?u.childNodes[r.endOffset-1]:r.endContainer;s.Dom.isText(p)&&p===r.startContainer&&r.startOffset===(null==(i=p.nodeValue)?void 0:i.length)&&p.nextSibling&&(p=p.nextSibling),s.Dom.isText(f)&&f===r.endContainer&&0===r.endOffset&&f.previousSibling&&(f=f.previousSibling);let m=t=>{!t||t===u||s.Dom.isEmptyTextNode(t)||(0,l.isMarker)(t)||c.push(t)};m(p),p!==f&&s.Dom.isOrContains(u,p,!0)&&s.Dom.find(p,t=>(m(t),t===f||t&&t.contains&&t.contains(f)),u,!0,!1);let g=i=>{if(s.Dom.isOrContains(this.j.editor,i,!0)){if(i.nodeName.match(/^(UL|OL)$/))return(0,a.toArray)(i.childNodes).forEach(g);if(s.Dom.isTag(i,"li"))if(i.firstChild)i=i.firstChild;else{let t=this.j.createInside.text(o.INVISIBLE_SPACE);i.appendChild(t),i=t}t(i)}};0===c.length&&(s.Dom.isEmptyTextNode(p)&&c.push(p),p.firstChild&&c.push(p.firstChild)),c.forEach(g)}cursorInTheEdge(t,i,n=null){var o;let r=!t,l=null==(o=this.sel)?void 0:o.getRangeAt(0);if(null!=n||(n=this.current(!1)),!l||!n||!s.Dom.isOrContains(i,n,!0))return null;let u=t?l.startContainer:l.endContainer,c=t?l.startOffset:l.endOffset,d=t=>!!(t&&!s.Dom.isTag(t,"br")&&!s.Dom.isEmptyTextNode(t)&&!s.Dom.isTemporary(t)&&!(s.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(s.Dom.isText(u)){if((0,h.cursorInTheEdgeOfString)(u,c,t,r))return!1}else{let t=(0,a.toArray)(u.childNodes);if(r){if(t.slice(c).some(d))return!1}else if(t.slice(0,c).some(d))return!1}let p=n;for(;p&&p!==i;){let i=s.Dom.sibling(p,t);if(!i){p=p.parentNode;continue}if((p=i)&&d(p))return!1}return!0}cursorOnTheLeft(t,i){return this.cursorInTheEdge(!0,t,i)}cursorOnTheRight(t,i){return this.cursorInTheEdge(!1,t,i)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,i){var n,o;if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let r=this.createRange(),l=null;return s.Dom.isText(t)?i?r.setStart(t,0):r.setEnd(t,null!=(o=null==(n=t.nodeValue)?void 0:n.length)?o:0):(l=this.j.createInside.fake(),i?r.setStartBefore(t):r.setEndAfter(t),r.collapse(i),s.Dom.safeInsertNode(r,l),r.selectNode(l)),r.collapse(i),this.selectRange(r),l}setCursorIn(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange(),r=t,l=t;do{if(s.Dom.isText(r)||s.Dom.isTag(r,o.INSEPARABLE_TAGS))break;l=r,r=i?r.firstChild:r.lastChild}while(r);if(!r){let t=this.j.createInside.text(o.INVISIBLE_SPACE);s.Dom.isTag(l,o.INSEPARABLE_TAGS)?r=l:(l.appendChild(t),l=t)}let u=r||l;return s.Dom.isTag(u,o.INSEPARABLE_TAGS)?i||s.Dom.isTag(u,"br")?n.setStartBefore(u):n.setEndAfter(u):n.selectNodeContents(u),n.collapse(i),this.selectRange(n),l}selectRange(t,i=!0){let n=this.sel;return i&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),n.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange();return n[i?"selectNodeContents":"selectNode"](t),this.selectRange(n)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let i=t.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return n.appendChild(i),n.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let i=this.jodit.createInside.element("font",o.INVISIBLE_SPACE);this.insertNode(i,!1,!1),t&&t[0]&&i.appendChild(t[0]),yield i,s.Dom.unwrap(i);return}for(let t of((0,a.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,a.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,a.$$)("*[data-font-size]",this.area).forEach(t=>{let i=(0,a.attr)(t,"data-font-size");i&&(t.style.fontSize=i,(0,a.attr)(t,"data-font-size",null))}),(0,a.$$)('font[size="7"]',this.area))){let{firstChild:i,lastChild:n}=t;if(i&&i===n&&(0,l.isMarker)(i)){s.Dom.unwrap(t);continue}i&&(0,l.isMarker)(i)&&s.Dom.before(t,i),n&&(0,l.isMarker)(n)&&s.Dom.after(t,n),yield t,s.Dom.unwrap(t)}}wrapInTag(t){let i=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,l.isMarker)(n.firstChild))continue;(0,l.isFunction)(t)?t(n):i.push(s.Dom.replace(n,t,this.j.createInside))}finally{let t=n.parentNode;t&&(s.Dom.unwrap(n),s.Dom.isEmpty(t)&&s.Dom.unwrap(t))}return i}commitStyle(t){(0,u.assert)((0,a.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,i){if(!this.isCollapsed())return null;let n=this.createRange(),r=this.range;n.setStartBefore(t);let a=this.cursorOnTheRight(t,i),l=this.cursorOnTheLeft(t,i),c=this.j.createInside.element("br"),d=this.j.createInside.fake(),h=d.cloneNode();try{if(a||l){i?s.Dom.before(i,c):s.Dom.safeInsertNode(r,c);let t=(t,i)=>{let n=i(t);for(;n;){let t=i(n);if(n&&(s.Dom.isTag(n,"br")||s.Dom.isEmptyTextNode(n)))s.Dom.safeRemove(n);else break;n=t}};t(c,t=>t.nextSibling),t(c,t=>t.previousSibling),s.Dom.after(c,h),s.Dom.before(c,d),a?(n.setEndBefore(c),r.setEndBefore(c)):(n.setEndAfter(c),r.setEndAfter(c))}else n.setEnd(r.startContainer,r.startOffset);let p=n.extractContents(),f=t=>s.Dom.each(t,t=>s.Dom.isEmptyTextNode(t)&&s.Dom.safeRemove(t));(0,u.assert)(t.parentNode,"Splitting fails");try{if(f(p),f(t),t.parentNode.insertBefore(p,t),!i&&a&&(null==c?void 0:c.parentNode)){let t=this.createRange();t.setStartBefore(c),this.selectRange(t)}}catch(t){if(!o.IS_PROD)throw t}let m=t=>{var i,n,o;(null==(i=null==t?void 0:t.parentNode)?void 0:i.firstChild)===(null==(n=null==t?void 0:t.parentNode)?void 0:n.lastChild)&&(null==(o=null==t?void 0:t.parentNode)||o.appendChild(c.cloneNode()))};m(d),m(h)}finally{s.Dom.safeRemove(d),s.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,i=t.cloneRange();if(!s.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let n=i=>{let n=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(i),s.Dom.safeInsertNode(o,n),(0,c.moveTheNodeAlongTheEdgeOutward)(n,i,this.j.editor),n},o=n(!0),r=n(!1);i.setStartAfter(o),i.setEndBefore(r);let l=s.Dom.findSibling(o,!1),u=s.Dom.findSibling(r,!0);if(l!==u){let t=s.Dom.isElement(l)&&s.Dom.isOrContains(l,r),n=!t&&s.Dom.isElement(u)&&s.Dom.isOrContains(u,o);if(t||n){let n=t?l:u,a=n;for(;s.Dom.isElement(n);)(n=t?n.firstElementChild:n.lastElementChild)&&(t?s.Dom.isOrContains(n,r):s.Dom.isOrContains(n,o))&&(a=n);t?i.setStart(a,0):i.setEnd(a,a.childNodes.length)}}if(this.selectRange(i),s.Dom.safeRemove(o,r),this.isCollapsed())throw(0,a.error)("Selection is collapsed");return this}constructor(t){this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}p([r.autobind],f.prototype,"createRange",null),p([r.autobind],f.prototype,"focus",null),p([r.autobind],f.prototype,"setCursorAfter",null),p([r.autobind],f.prototype,"setCursorBefore",null),p([r.autobind],f.prototype,"setCursorIn",null)},32526:function(t,i,n){"use strict";n.d(i,{extractSelectedPart:function(){return l}});var o=n(2748),r=n(78116),s=n(49055),a=n(37790);function l(t,i,n){let o=n.s.createRange(),s=(0,r.isMarker)(i.previousSibling)?i.previousSibling:i;o.setStartBefore(t),o.setEndBefore(s),u(t,o,!0);let a=(0,r.isMarker)(i.nextSibling)?i.nextSibling:i;o.setStartAfter(a),o.setEndAfter(t),u(t,o,!1)}function u(t,i,n){let r=i.extractContents();r.textContent&&(0,s.trim)(r.textContent).length||!r.firstChild||o.Dom.unwrap(r.firstChild),t.parentNode&&(0,a.call)(n?o.Dom.before:o.Dom.after,t,r)}},49996:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return a}});var o=n(82758),r=n(70799),s=n(38837);class a{setState(t){(0,s.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,i){let n=this.transitions[this.getState()][t];if(n){let t=n.call(this,i);return(0,s.assert)(t&&t!==i,"Action should return new value"),(0,s.assert)((0,r.isString)(t.next),"Value should contain the next state"),(0,s.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),o.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,i){this.transitions=i,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},23738:function(t,i,n){"use strict";n.d(i,{getSuitChild:function(){return a}});var o=n(2748),r=n(29136),s=n(97380);function a(t,i){let{firstChild:n}=i;for(;n&&!(0,r.isNormalNode)(n);)if(!(n=n.nextSibling))return null;return n&&!o.Dom.next(n,r.isNormalNode,i)&&(0,s.isSuitElement)(t,n,!1)?n:null}},44602:function(t,i,n){"use strict";n.d(i,{getSuitParent:function(){return function t(i,n,a){let{parentNode:l}=n;return l===a||!o.Dom.isHTMLElement(l)||o.Dom.next(n,r.isNormalNode,l)||o.Dom.prev(n,r.isNormalNode,l)?null:i.isElementCommit&&i.elementIsBlock&&!o.Dom.isBlock(l)?t(i,l,a):(0,s.isSuitElement)(i,l,!1)&&(!o.Dom.isBlock(l)||i.elementIsBlock)?l:i.isElementCommit&&!o.Dom.isBlock(l)?t(i,l,a):null}}});var o=n(2748),r=n(29136),s=n(97380)},22030:function(t,i,n){"use strict";n.d(i,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return d}});var o=n(82758),r=n(2748),s=n(86068),a=n(3760),l=n(38837),u=n(41180);function c(t,i){return!!(!r.Dom.isTag(t,"font")&&r.Dom.isHTMLElement(t)&&Object.keys(i).every(n=>{let o=(0,u.css)(t,n,!0);return""===o&&(""===i[n]||null==i[n])||!(0,s.isVoid)(o)&&""!==o&&!(0,s.isVoid)(i[n])&&(0,a.normalizeCssValue)(n,i[n]).toString().toLowerCase()===o.toString().toLowerCase()}))}if(o.globalDocument){let t=o.globalDocument.createElement("div");t.style.color="red",(0,l.assert)(c(t,{color:"red"}),"Style test"),(0,l.assert)(c(t,{fontSize:null}),"Style test"),(0,l.assert)(c(t,{fontSize:""}),"Style test")}function d(t,i){return!!(!r.Dom.isTag(t,"font")&&r.Dom.isHTMLElement(t)&&Object.keys(i).every(i=>""!==(0,u.css)(t,i,!0)))}if(o.globalDocument){let t=o.globalDocument.createElement("div");t.style.color="red",(0,l.assert)(d(t,{color:"red"}),"Style test"),(0,l.assert)(!d(t,{font:"Arial",color:"red"}),"Style test"),(0,l.assert)(!d(t,{border:"1px solid #ccc"}),"Style test")}},63687:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return r.FiniteStateMachine},extractSelectedPart:function(){return o.extractSelectedPart},getSuitChild:function(){return s.getSuitChild},getSuitParent:function(){return a.getSuitParent},isInsideInvisibleElement:function(){return l.isInsideInvisibleElement},suitableClosest:function(){return u.suitableClosest},toggleAttributes:function(){return d.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return h.unwrapChildren},wrap:function(){return p.wrap}});var o=n(32526),r=n(49996),s=n(23738),a=n(44602);n(22030);var l=n(64291);n(29136),n(94466);var u=n(97380),c=n(20199);n(82515);var d=n(44253),h=n(75882),p=n(19263);n(6980)},64291:function(t,i,n){"use strict";n.d(i,{isInsideInvisibleElement:function(){return r}});var o=n(2748);function r(t,i){return!!o.Dom.closest(t,["style","script"],i)}},29136:function(t,i,n){"use strict";n.d(i,{isNormalNode:function(){return s}});var o=n(2748),r=n(78116);function s(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,r.isMarker)(t))}},94466:function(t,i,n){"use strict";n.d(i,{elementsEqualAttributes:function(){return u},isSameAttributes:function(){return l}});var o=n(21496),r=n(43555),s=n(38837),a=n(22030);function l(t,i){return!((t.attributes.length||(0,o.size)(i))&&(0,o.size)(i))||((0,s.assert)(i,"Attrs must be a non-empty object"),Object.keys(i).every(n=>"class"===n||"className"===n?t.classList.contains(i[n]):"style"===n?(0,a.hasSameStyle)(t,i[n]):(0,r.attr)(t,n)===i[n]))}function u(t,i){return t.attributes.length===i.attributes.length&&Array.from(t.attributes).every(t=>i.hasAttribute(t.name)&&i.getAttribute(t.name)===t.value)}},97380:function(t,i,n){"use strict";n.d(i,{isSameStyleChild:function(){return u},isSuitElement:function(){return a},suitableClosest:function(){return l}});var o=n(2748),r=n(22030),s=n(29136);function a(t,i,n,l=!0){var u;if(!i||!(0,s.isNormalNode)(i))return!1;let{element:c,elementIsDefault:d,options:h}=t;if(o.Dom.isList(i)&&t.elementIsList)return!0;let p=o.Dom.isTag(i,c);return!!(p&&!(d&&n)||(null==(u=h.attributes)?void 0:u.style)&&(l?(0,r.hasSameStyle)(i,h.attributes.style):(0,r.hasSameStyleKeys)(i,h.attributes.style))&&!t.elementIsList)||!p&&!n&&d&&o.Dom.isInlineBlock(i)}function l(t,i,n){return o.Dom.closest(i,i=>a(t,i,!0,!1),n)}function u(t,i){var n,o;let{element:a,options:l}=t;if(!i||!(0,s.isNormalNode)(i))return!1;let u=i.nodeName.toLowerCase()===a,c=!!((null==(n=l.attributes)?void 0:n.style)&&(0,r.hasSameStyleKeys)(i,null==(o=l.attributes)?void 0:o.style));return u&&c}},20199:function(t,i,n){"use strict";n.d(i,{toggleOrderedList:function(){return c}});var o=n(2748),r=n(38837),s=n(32526),a=n(44253),l=n(77361),u=n(82515);function c(t,i,n,o){if(!i)return o;let r=i.parentElement;if(!r)return o;let s=n.e.fire(`${l._PREFIX}BeforeToggleList`,o,t,r);if(void 0!==s)return s;let c=n.e.fire.bind(n.e,`${l._PREFIX}AfterToggleList`);if(o!==l.UNWRAP){let s=(0,a.toggleAttributes)(t,i.parentElement,n,l.INITIAL,!0)===l.CHANGE;if(o===l.REPLACE||s||r.tagName.toLowerCase()!==t.element){let o=d(l.REPLACE,r,i,n,t),s=(0,u.wrapList)(t,o,n);return c(l.REPLACE,s,t),l.REPLACE}}let h=d(l.UNWRAP,r,i,n,t);return c(l.UNWRAP,h,t),l.UNWRAP}function d(t,i,n,a,u){let c=a.e.fire(`${l._PREFIX}BeforeUnwrapList`,t,i,u);return c?((0,r.assert)(o.Dom.isHTMLElement(c),`${l._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,s.extractSelectedPart)(i,n,a),(0,r.assert)(o.Dom.isHTMLElement(n.parentElement),"Element should be inside the list"),o.Dom.unwrap(n.parentElement),o.Dom.replace(n,"br"!==a.o.enter.toLowerCase()?a.o.enter:a.createInside.fragment(),a.createInside))}},82515:function(t,i,n){"use strict";n.d(i,{wrapList:function(){return l}});var o=n(2748),r=n(94466),s=n(44253),a=n(77361);function l(t,i,n){let l=n.e.fire(`${a._PREFIX}BeforeWrapList`,a.REPLACE,i,t),u=null!=l?l:o.Dom.replace(i,"li",n.createInside),c=u.previousElementSibling,d=u.nextElementSibling,h=o.Dom.isTag(c,t.element)?c:null;return null!=h||(h=o.Dom.isTag(d,t.element)?d:null),o.Dom.isList(h)&&(0,r.isSameAttributes)(h,t.options.attributes)||(h=n.createInside.element(t.element),(0,s.toggleAttributes)(t,h,n,a.INITIAL),o.Dom.before(u,h)),c===h?o.Dom.append(h,u):o.Dom.prepend(h,u),o.Dom.isTag(h.nextElementSibling,t.element)&&(0,r.elementsEqualAttributes)(h,h.nextElementSibling)&&(o.Dom.append(h,Array.from(h.nextElementSibling.childNodes)),o.Dom.safeRemove(h.nextElementSibling)),n.e.fire(`${a._PREFIX}AfterWrapList`,a.WRAP,h,t),h}},44253:function(t,i,n){"use strict";n.d(i,{toggleAttributes:function(){return g}});var o=n(82758),r=n(2748),s=n(580),a=n(27613),l=n(3760),u=n(21496),c=n(12475),d=n(43555),h=n(41180),p=n(86583),f=n(77361);let m="toggleAttributes";function g(t,i,n,v,y=!1){if(!y&&t.isApplied(i,m))return v;y||t.setApplied(i,m);let{attributes:_}=t.options;return _&&(0,u.size)(_)>0&&Object.keys(_).forEach(m=>{var g,C,w;let F=_[m];switch(m){case"style":g=v,(0,d.assert)((0,a.isPlainObject)(F)&&(0,u.size)(F),"Style must be an object"),Object.keys(F).forEach(a=>{let u=i.style.getPropertyValue((0,c.kebabCase)(a)),d=F[a];if(""!==u||null!=d){let c,m,v,_;if(c=function(t){var i;if(void 0!==(0,p.dataBind)(t,"shadowRoot"))return(0,p.dataBind)(t,"shadowRoot");let n=(0,s.getContainer)(t),r=o.globalDocument.createElement("iframe");(0,h.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);let a=null==(i=r.contentWindow)?void 0:i.document,l=a?a.body:t.od.body;return(0,p.dataBind)(t,"shadowRoot",l),l}(n),(m=n.create.element("div")).style.color=(0,h.css)(n.editor,"color"),(v=n.create.element(i.tagName.toLowerCase())).style.cssText=i.style.cssText,m.appendChild(v),c.appendChild(m),_=(0,h.css)(v,a),r.Dom.safeRemove(m),_===(0,l.normalizeCssValue)(a,d)){if(!u)return;y||(0,h.css)(i,a,null),g=b(t,i,g=f.UNSET);return}g=f.CHANGE,y||((0,h.css)(i,a,d),g=b(t,i,g))}}),v=g;break;case"className":case"class":let E;C=v,(0,d.assert)((0,a.isString)(F),"Class name must be a string"),E=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),i.classList.contains(F.toString())?(C=f.UNSET,y||(i.classList.remove(F),0===i.classList.length&&((0,d.attr)(i,"class",null),E(C,i,"class",null)))):(C=f.CHANGE,y||(i.classList.add(F),E(C,i,"class",F))),v=C;break;default:let k;w=v,(0,d.assert)((0,a.isString)(F)||(0,a.isNumber)(F)||(0,a.isBoolean)(F)||null==F,"Attribute value must be a string or number or boolean or null"),k=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),(0,d.attr)(i,m)===F?(y||(0,d.attr)(i,m,null),w=f.UNSET,y||k(w,i,m,F)):(w=f.CHANGE,y||((0,d.attr)(i,m,F),k(w,i,m,F))),v=w}}),v}function b(t,i,n){return(0,d.attr)(i,"style")||((0,d.attr)(i,"style",null),i.tagName.toLowerCase()===t.defaultTag&&(r.Dom.unwrap(i),n=f.UNWRAP)),n}},75882:function(t,i,n){"use strict";n.d(i,{unwrapChildren:function(){return l}});var o=n(2748),r=n(43555),s=n(22030),a=n(97380);function l(t,i){var n;let l,u=[],c=[],d=null==(n=t.options.attributes)?void 0:n.style;if(i.firstChild){let n=o.Dom.eachGen(i),h=n.next();for(;!h.done;){let i=h.value;(0,a.isSuitElement)(t,i,!0)&&(!d||(0,s.hasSameStyleKeys)(i,d))?(void 0===l&&(l=!0),u.push(i)):d&&(0,a.isSameStyleChild)(t,i)?(void 0===l&&(l=!1),c.push(()=>{(0,r.css)(i,Object.keys(d).reduce((t,i)=>(t[i]=null,t),{})),(0,r.attr)(i,"style")||(0,r.attr)(i,"style",null),(0,r.attr)(i,"style")||i.nodeName.toLowerCase()!==t.element||u.push(i)})):o.Dom.isEmptyTextNode(i)||void 0!==l||(l=!1),h=n.next()}}return c.forEach(t=>t()),u.forEach(o.Dom.unwrap),!!l}},6980:function(t,i,n){"use strict";n.d(i,{wrapUnwrappedText:function(){return s}});var o=n(2748),r=n(78116);function s(t,i,n){let s=n.editor,a=n.createInside,l=(t,i="previousSibling")=>{let a=t,l=t;for(;l&&!(0,r.isMarker)(l)&&!o.Dom.isTag(l,n.o.enter)&&(a=l,l=l[i]?l[i]:l.parentNode&&!o.Dom.isBlock(l.parentNode)&&l.parentNode!==s?l.parentNode:null,!o.Dom.isBlock(l)););return a},u=l(i),c=l(i,"nextSibling"),d=n.s.createRange();d.setStartBefore(u),d.setEndAfter(c);let h=d.extractContents(),p=a.element(t.element);return p.appendChild(h),o.Dom.safeInsertNode(d,p),t.elementIsBlock&&o.Dom.isEmpty(p)&&!o.Dom.isTag(p.firstElementChild,"br")&&p.appendChild(a.element("br")),p}},19263:function(t,i,n){"use strict";n.d(i,{wrap:function(){return u}});var o=n(22732),r=n(29960),s=n(41180),a=n(82515),l=n(6980);function u(t,i,n){var u,d,h;let p=(u=t,d=i,h=n,u.elementIsBlock?o.Dom.up(d,t=>o.Dom.isBlock(t)&&!o.Dom.isTag(t,c),h.editor)||(0,l.wrapUnwrappedText)(u,d,h):((0,r.attr)(d,"size",null),d));if(t.elementIsList)return(0,a.wrapList)(t,p,n);let f=o.Dom.replace(p,t.element,n.createInside,!0);return t.elementIsBlock&&((0,s.css)(f,"fontSize",null),(0,s.css)(f,"fontWeight",null),(0,r.attr)(f,"style")||(0,r.attr)(f,"style",null)),f}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"])},83632:function(t,i,n){"use strict";n.d(i,{ApplyStyle:function(){return a}});var o=n(63687),r=n(77361),s=n(55307);function a(t,i){var n;let{s:a,editor:l}=t;null==(n=l.firstChild)||n.normalize();let u=a.fakes(),c=t.s.wrapInTagGen(u),d=c.next();if(d.done)return;let h={collapsed:a.isCollapsed(),mode:r.INITIAL,element:d.value,next:s.states.START,jodit:t,style:i};for(;d&&!d.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(h.element=d.value;t.getState()!==s.states.END;)h=t.dispatch("exec",h);d=c.next()}a.restoreFakes(u)}},25639:function(t,i,n){"use strict";n.d(i,{CommitStyle:function(){return l}});var o=n(82758),r=n(87058),s=n(77361),a=n(83632);class l{isApplied(t,i){let n=this.__applyMap.get(t);return!!n&&n[i]}setApplied(t,i){var n;let o=null!=(n=this.__applyMap.get(t))?n:{};o[i]=!0,this.__applyMap.set(t,o)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:i}=this.options,n=i?Object.keys(i):[];try{n.forEach(n=>{t.e.on((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),(0,a.ApplyStyle)(t,this)}finally{n.forEach(n=>{t.e.off((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){this.options=t,this.__applyMap=new WeakMap}}},77361:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s},INITIAL:function(){return l},REPLACE:function(){return u},UNSET:function(){return a},UNWRAP:function(){return r},WRAP:function(){return o},_PREFIX:function(){return c}});let o="wrap",r="unwrap",s="change",a="unset",l="initial",u="replace",c="commitStyle"},55307:function(t,i,n){"use strict";n.d(i,{states:function(){return d},transactions:function(){return h}});var o=n(82758),r=n(2748),s=n(38837),a=n(63687),l=n(77361);function u(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}function c(t,i){return i=null!=i?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}),t}let d={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},h={[d.START]:{exec(t){let{element:i,jodit:n,style:o,mode:s,collapsed:h}=t;if((0,a.isInsideInvisibleElement)(i,n.editor)||!h&&r.Dom.isEmptyContent(i))return c(u({},t),{next:d.END});let p=(0,a.getSuitParent)(o,i,n.editor)||(0,a.getSuitChild)(o,i);if(p)return c(u({},t),{next:d.ELEMENT,element:p});let f=(0,a.suitableClosest)(o,i,n.editor);return o.elementIsList&&r.Dom.isList(f)?c(u({},t),{next:d.LIST}):f?c(u({},t),{next:d.EXTRACT}):c(u({},t),{next:s!==l.UNWRAP?d.UNWRAP_CHILDREN:d.END})}},[d.LIST]:{exec(t){let{element:i,jodit:n,mode:s}=t;if(s!==l.INITIAL&&s!==l.UNWRAP&&s!==l.REPLACE)return c(u({},t),{next:d.END});let a=r.Dom.closest(i,"li",n.editor);return a&&r.Dom.closest(i,o.LIST_TAGS,n.editor)?c(u({},t),{element:a,next:d.TOGGLE_LIST}):c(u({},t),{next:d.END})}},[d.TOGGLE_LIST]:{exec(t){return c(u({},t),{mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:d.END})}},[d.EXTRACT]:{exec(t){var i;let{element:n,jodit:o,style:l}=t,h=(0,a.suitableClosest)(l,n,o.editor);return((0,s.assert)(h,"This place should have an element"),!l.elementIsBlock&&(null==(i=l.options.attributes)?void 0:i.style)&&r.Dom.isBlock(h))?c(u({},t),{next:d.WRAP}):(l.elementIsBlock||(0,a.extractSelectedPart)(h,n,o),c(u({},t),{element:h,next:d.ELEMENT}))}},[d.UNWRAP_CHILDREN]:{exec(t){let{element:i,style:n}=t;return(0,a.unwrapChildren)(n,i)?c(u({},t),{mode:l.UNWRAP,next:d.END}):c(u({},t),{next:d.WRAP})}},[d.WRAP]:{exec(t){let{element:i,jodit:n,style:o}=t,r=(0,a.wrap)(o,i,n);return c(u({},t),{next:o.elementIsList?d.END:d.CHANGE,mode:l.WRAP,element:r})}},[d.ELEMENT]:{exec(t){let{style:i,element:n,jodit:o}=t;return(0,a.toggleAttributes)(i,n,o,l.INITIAL,!0)!==l.INITIAL?c(u({},t),{next:d.CHANGE}):r.Dom.isTag(n,i.element)?c(u({},t),{next:d.UNWRAP}):c(u({},t),{next:d.END})}},[d.CHANGE]:{exec(t){let{style:i,element:n,jodit:o,mode:s}=t,h=(0,a.toggleAttributes)(i,n,o,t.mode);return s!==l.WRAP&&h===l.UNSET&&!n.attributes.length&&r.Dom.isTag(n,i.element)?c(u({},t),{next:d.UNWRAP}):c(u({},t),{mode:h,next:d.END})}},[d.UNWRAP]:{exec(t){return t.element.attributes.length&&r.Dom.isTag(t.element,t.style.element)?c(u({},t),{next:d.REPLACE_DEFAULT}):(r.Dom.unwrap(t.element),c(u({},t),{mode:l.UNWRAP,next:d.END}))}},[d.REPLACE_DEFAULT]:{exec(t){return r.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),c(u({},t),{mode:l.REPLACE,next:d.END})}},[d.END]:{exec(t){return t}}}},97333:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return d}});var o=n(87058),r=n(2621),s=n(65638),a=n(21162),l=n(6700);function u(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function c(t){return function(){var i=this,n=arguments;return new Promise(function(o,r){var s=t.apply(i,n);function a(t){u(s,o,r,a,l,"next",t)}function l(t){u(s,o,r,a,l,"throw",t)}a(void 0)})}}class d{set(t,i){return c(function*(){let n=yield this.provider;return yield n.set((0,o.camelCase)(this.prefix+t),i),this}).call(this)}delete(t){return c(function*(){let i=yield this.provider;return yield i.delete((0,o.camelCase)(this.prefix+t)),this}).call(this)}get(t){return c(function*(){return(yield this.provider).get((0,o.camelCase)(this.prefix+t))}).call(this)}exists(t){return c(function*(){return(yield this.provider).exists((0,o.camelCase)(this.prefix+t))}).call(this)}clear(){return c(function*(){let t=yield this.provider;return yield t.clear(),this}).call(this)}close(){return c(function*(){let t=yield this.provider;"close"in t&&"function"==typeof t.close&&(yield t.close())}).call(this)}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,s.canUsePersistentStorage)(t)&&(n=new s.LocalStorageProvider(l.StorageKey+(i||""),t)):("indexedDB"===t||!0===t)&&(n=(0,r.canUseIndexedDB)().then(t=>t?new r.IndexedDBProvider(l.StorageKey+(i||""),"keyValueStore"):new a.MemoryStorageProvider)),n||(n=new a.MemoryStorageProvider),new d(Promise.resolve(n),i)}constructor(t,i){this.provider=t,this.prefix=l.StorageKey,i&&(this.prefix+=i)}}},2621:function(t,i,n){"use strict";n.d(i,{IndexedDBProvider:function(){return a},canUseIndexedDB:function(){return c},clearUseIndexedDBCache:function(){return u}});var o=n(82758);function r(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function s(t){return function(){var i=this,n=arguments;return new Promise(function(o,s){var a=t.apply(i,n);function l(t){r(a,o,s,l,u,"next",t)}function u(t){r(a,o,s,l,u,"throw",t)}l(void 0)})}}class a{getDB(){return this.dbPromise||(this.dbPromise=new Promise((t,i)=>{let n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{i(n.error)},n.onsuccess=()=>{t(n.result)},n.onupgradeneeded=t=>{let i=t.target.result;i.objectStoreNames.contains(this.storeName)||i.createObjectStore(this.storeName)}})),this.dbPromise}performTransaction(t,i){return s(function*(){try{let n=(yield this.getDB()).transaction([this.storeName],t).objectStore(this.storeName),o=i(n);return new Promise((t,i)=>{o.onsuccess=()=>{t(o.result)},o.onerror=()=>{i(o.error)}})}catch(t){return Promise.reject(t)}}).call(this)}set(t,i){return s(function*(){try{yield this.performTransaction("readwrite",n=>n.put(i,t))}catch(t){o.IS_PROD}return this}).call(this)}delete(t){return s(function*(){try{yield this.performTransaction("readwrite",i=>i.delete(t))}catch(t){}return this}).call(this)}get(t){return s(function*(){try{return yield this.performTransaction("readonly",i=>i.get(t))}catch(t){return}}).call(this)}exists(t){return s(function*(){try{let i=yield this.performTransaction("readonly",i=>i.get(t));return void 0!==i}catch(t){return!1}}).call(this)}clear(){return s(function*(){try{yield this.performTransaction("readwrite",t=>t.clear())}catch(t){}return this}).call(this)}close(){return s(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(t){}this.dbPromise=null}}).call(this)}keys(){return s(function*(){try{let t=yield this.performTransaction("readonly",t=>t.getAllKeys());return t&&"object"==typeof t&&"then"in t&&(t=yield t),t.map(t=>String(t))}catch(t){return[]}}).call(this)}values(){return s(function*(){try{let t=yield this.performTransaction("readonly",t=>t.getAll());return t&&"object"==typeof t&&"then"in t&&(t=yield t),t}catch(t){return[]}}).call(this)}entries(){return s(function*(){try{let[t,i]=yield Promise.all([this.keys(),this.values()]);return t.map((t,n)=>[t,i[n]])}catch(t){return[]}}).call(this)}constructor(t="JoditDB",i="keyValueStore"){this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=i}}let l=null;function u(){l=null}function c(){return s(function*(){if(null!=l)return l;try{if("u"<typeof indexedDB)return l=!1,!1;let t="___Jodit___"+Math.random().toString(),i=indexedDB.open(t);return l=yield new Promise(n=>{i.onerror=()=>{n(!1)},i.onsuccess=()=>{indexedDB.deleteDatabase(t),n(!0)}})}catch(t){return l=!1,!1}})()}},65638:function(t,i,n){"use strict";n.d(i,{LocalStorageProvider:function(){return r},canUsePersistentStorage:function(){return o}});let o=(t="localStorage")=>{let i=new Map;if(i.has(t))return i.get(t);let n="___Jodit___"+Math.random().toString(),o="sessionStorage"===t?sessionStorage:localStorage;try{o.setItem(n,"1");let r="1"===o.getItem(n);return o.removeItem(n),i.set(t,r),r}catch(t){}return i.set(t,!1),!1};class r{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(t,i){try{let n=this.storage.getItem(this.rootKey),o=n?JSON.parse(n):{};o[t]=i,this.storage.setItem(this.rootKey,JSON.stringify(o))}catch(t){}return this}delete(t){try{this.storage.removeItem(this.rootKey)}catch(t){}return this}get(t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};return void 0!==n[t]?n[t]:void 0}catch(t){}}exists(t){return null!=this.get(t)}clear(){try{this.storage.removeItem(this.rootKey)}catch(t){}return this}constructor(t,i="localStorage"){this.rootKey=t,this.strategy=i}}},21162:function(t,i,n){"use strict";n.d(i,{MemoryStorageProvider:function(){return o}});class o{set(t,i){return this.data.set(t,i),this}delete(t){return this.data.delete(t),this}get(t){return this.data.get(t)}exists(t){return this.data.has(t)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return r.IndexedDBProvider},LocalStorageProvider:function(){return s.LocalStorageProvider},MemoryStorageProvider:function(){return a.MemoryStorageProvider},Storage:function(){return l.Storage},StorageKey:function(){return l.StorageKey},canUseIndexedDB:function(){return r.canUseIndexedDB},canUsePersistentStorage:function(){return s.canUsePersistentStorage},clearUseIndexedDBCache:function(){return r.clearUseIndexedDBCache}});var o=n(97333),r=n(2621),s=n(65638),a=n(21162),l=n(6700)},6700:function(t,i,n){"use strict";n.d(i,{Storage:function(){return l},StorageKey:function(){return a}});var o=n(87058),r=n(65638),s=n(21162);let a="Jodit_";class l{set(t,i){return this.provider.set((0,o.camelCase)(this.prefix+t),i),this}delete(t){return this.provider.delete((0,o.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,o.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,o.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,r.canUsePersistentStorage)(t)&&(n=new r.LocalStorageProvider(a+(i||""),t)):!0===t&&(0,r.canUsePersistentStorage)("localStorage")&&(n=new r.LocalStorageProvider(a+(i||""))),n||(n=new s.MemoryStorageProvider),new l(n,i)}constructor(t,i){this.provider=t,this.prefix=a,i&&(this.prefix+=i)}}},70231:function(t,i,n){"use strict";n.d(i,{Dlgs:function(){return l}});var o=n(580),r=n(27613),s=n(37790),a=n(638);class l{dlg(t){let i=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),n=new a.Dialog(function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:i,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},t));return(0,s.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(t,i,n){return t=u(t,this),i=u(i,this),a.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,i,n)}prompt(t,i,n,o,r){return t=u(t,this),i=u(i,this),o=u(o,this),a.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o,r)}alert(t,i,n,o){return t=u(t,this),i=u(i,this),a.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o)}}function u(t,i){return(0,r.isString)(t)&&!(0,r.isHTML)(t)&&(t=i.i18n(t)),t}},14316:function(t,i,n){"use strict";n.d(i,{Elms:function(){return r}});var o=n(4510);class r{getElm(t){return this.container.querySelector(`.${this.getFullElName(t)}`)}getElms(t){return(0,o.toArray)(this.container.querySelectorAll(`.${this.getFullElName(t)}`))}}},34176:function(t,i,n){"use strict";n.d(i,{Mods:function(){return r}});var o=n(86068);class r{afterSetMod(t,i){}setMod(t,i,n){t=t.toLowerCase();let r=this.mods[t];if(r===i)return this;let s=`${this.componentName}_${t}_`,a=(n||this.container).classList;return null!=r&&a.remove(`${s}${r.toString().toLowerCase()}`),(0,o.isVoid)(i)||""===i||a.add(`${s}${i.toString().toLowerCase()}`),this.mods[t]=i,this.afterSetMod(t,i),this}getMod(t){var i;return null!=(i=this.mods[t])?i:null}}},10830:function(t,i,n){"use strict";n.d(i,{Button:function(){return v},UIButton:function(){return b},UIButtonState:function(){return g}});var o=n(78213),r=n(33433),s=n(87325),a=n(37133),l=n(2748),u=n(23282),c=n(70799),d=n(38837),h=n(29960),p=n(48538),f=n(12153),m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0}),b=class t extends p.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,d.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,d.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,h.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,h.attr)(this.container,"role",this.state.role)}updateSize(){let t=(0,s.getComponentClass)("UIList"),i=this.closest(t);if(i){this.state.size=i.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,h.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,h.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,h.attr)(this.container,"data-ref",this.state.name),(0,h.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,h.attr)(this.container,"title",t),(0,h.attr)(this.container,"aria-label",t),this.updateAriaLabel()}updateAriaLabel(){let t=this.state.text.trim().length>0,i=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,h.attr)(this.container,"aria-label",i),(0,h.attr)(this.button,"aria-label",t?null:i)}onChangeTabIndex(){(0,h.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,u.isFunction)(t)&&t(this.state.name))return;l.Dom.detach(this.icon);let i=f.Icon.makeIcon(this.j,this.state.icon);i&&this.icon.appendChild(i)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&l.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,i=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return i.appendChild(n),i.appendChild(o),i}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(i=>i.call(this,t)),this.j.e.fire(this,"click",t)}constructor(t,i){super(t),this.isButton=!0,this.state=g(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),i&&this.hookStatus(o.STATUSES.ready,()=>{this.setState(i)})}};function v(t,i,n,o){let r=new b(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,c.isString)(i)?(r.state.icon.name=i,r.state.name=i,o&&(r.state.variant=o),n&&(r.state.text=n)):r.setState(i),r}m([r.cache],b.prototype,"text",null),m([r.cache],b.prototype,"icon",null),m([(0,a.watch)("state.size",{immediately:!1})],b.prototype,"onChangeSize",null),m([(0,a.watch)("state.type",{immediately:!1})],b.prototype,"onChangeType",null),m([(0,a.watch)("state.role",{immediately:!1})],b.prototype,"onChangeRole",null),m([(0,a.watch)("parentElement")],b.prototype,"updateSize",null),m([(0,a.watch)("state.variant",{immediately:!1})],b.prototype,"onChangeStatus",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeText",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeTextSetMode",null),m([(0,a.watch)("state.disabled")],b.prototype,"onChangeDisabled",null),m([(0,a.watch)("state.activated")],b.prototype,"onChangeActivated",null),m([(0,a.watch)("state.name",{immediately:!1})],b.prototype,"onChangeName",null),m([(0,a.watch)("state.tooltip",{immediately:!1})],b.prototype,"onChangeTooltip",null),m([(0,a.watch)("state.tabIndex",{immediately:!1})],b.prototype,"onChangeTabIndex",null),m([(0,a.watch)("state.icon",{immediately:!1})],b.prototype,"onChangeIcon",null),m([r.cacheHTML],b.prototype,"createContainer",null),m([(0,a.watch)("button:click")],b.prototype,"__onActionFire",null),b=m([s.component],b)},71916:function(t,i,n){"use strict";n.d(i,{UIButtonGroup:function(){return l}});var o=n(87325),r=n(38837),s=n(10830),a=n(62405);let l=class t extends a.UIGroup{className(){return"UIButtonGroup"}render(t){return`<div>
8
+ !function(t,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{var n=i();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(self,function(){var t={94668:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Plus icon with document/context --\x3e <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </svg>'},86428:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Background rounded rect --\x3e <rect x="1" y="1" width="22" height="22" rx="3"/> \x3c!-- Letter A - outer shape --\x3e <polygon points="8,5 2,19 5,19 6.5,16 11.5,16 13,19 16,19 10,5" fill="white"/> \x3c!-- Letter A - inner triangle (hole) --\x3e <polygon points="9,9 7.5,13 10.5,13" fill="currentColor"/> \x3c!-- Letter I --\x3e <rect x="17" y="5" width="3" height="14" fill="white"/> </svg>'},75966:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"> \x3c!-- Wand handle - diagonal line --\x3e <rect x="12" y="10" width="13" height="3.5" rx="0.5" transform="rotate(45 12 12)"/> \x3c!-- Wand tip - diamond --\x3e <rect x="3" y="3" width="6" height="6" rx="1" transform="rotate(45 6 6)"/> \x3c!-- Large sparkle - top --\x3e <polygon points="15,0 16,4 15,8 14,4"/> <polygon points="11,4 15,5 19,4 15,3"/> \x3c!-- Medium sparkle - left --\x3e <polygon points="1,11 2,14 1,17 0,14"/> <polygon points="-2,14 1,15 4,14 1,13"/> \x3c!-- Small sparkle - middle --\x3e <polygon points="8,14 8.5,16 8,18 7.5,16"/> <polygon points="6,16 8,16.5 10,16 8,15.5"/> </svg>'},83207:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M9 18l6-6-6-6"/> </svg>'},99293:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <rect x="9" y="2" width="6" height="12" rx="3"></rect> <path d="M5 10v1a7 7 0 0 0 14 0v-1" fill="none"></path> <line x1="12" y1="18" x2="12" y2="22"></line> <line x1="8" y1="22" x2="16" y2="22"></line> </svg>'},99219:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <line x1="22" y1="2" x2="11" y2="13"></line> <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon> </svg>'},63674:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/> </svg>'},4133:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path d="M13 2L4 14h6l-1 8 9-12h-6z"/> </svg>'},68583:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><title/><g id="Upload"><path d="M16,26h8V50a2,2,0,0,0,2,2H38a2,2,0,0,0,2-2V26h8a2,2,0,0,0,1.4946-3.3291l-16-18a2,2,0,0,0-2.9892,0l-16,18A2,2,0,0,0,16,26ZM32,9.0107,43.5464,22H38a2,2,0,0,0-2,2V48H28V24a2,2,0,0,0-2-2H20.4536Z"/><path d="M53,42a2,2,0,0,0-2,2V54a2.0023,2.0023,0,0,1-2,2H15a2.0023,2.0023,0,0,1-2-2V44a2,2,0,0,0-4,0V54a6.0066,6.0066,0,0,0,6,6H49a6.0066,6.0066,0,0,0,6-6V44A2,2,0,0,0,53,42Z"/></g></svg>'},34586:function(t){t.exports='<svg stroke="black" viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <style type="text/css"> .st0{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} </style> <path class="st0" d="M29,23H3c-1.1,0-2-0.9-2-2V11c0-1.1,0.9-2,2-2h26c1.1,0,2,0.9,2,2v10C31,22.1,30.1,23,29,23z"/> <path class="st0" d="M13,19L13,19c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v2C15,18.1,14.1,19,13,19z"/> <line class="st0" x1="18" x2="18" y1="13" y2="19"/> <line class="st0" x1="21" x2="18" y1="13" y2="17"/> <line class="st0" x1="21" x2="19" y1="19" y2="16"/> </svg>'},91729:function(t){t.exports='<svg width="19" height="13" viewBox="0 0 19 13" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M12.799 11.449V12H7.764V11.449L8.695 11.487C9.075 11.525 9.265 11.373 9.265 11.031C9.265 10.8157 9.20167 10.5687 9.075 10.29L8.144 8.048H3.717L2.843 10.176C2.66567 10.5687 2.577 10.8853 2.577 11.126C2.577 11.392 2.71633 11.5187 2.995 11.506L3.907 11.449V12H0.62V11.449L1.114 11.487H1.19C1.44333 11.487 1.65233 11.3667 1.817 11.126C2.007 10.8473 2.197 10.48 2.387 10.024L6.358 0.466999H6.852L10.861 10.062C11.0383 10.518 11.222 10.879 11.412 11.145C11.5893 11.373 11.811 11.487 12.077 11.487H12.172L12.799 11.449ZM3.945 7.516H7.916L5.921 2.728L3.945 7.516Z" fill="black"/> <path d="M18.45 11.61V12H16.32C16.33 11.93 16.34 11.84 16.35 11.73C16.37 11.61 16.38 11.515 16.38 11.445L16.41 10.86C16.19 11.29 15.905 11.6 15.555 11.79C15.215 11.98 14.805 12.075 14.325 12.075C13.695 12.075 13.215 11.935 12.885 11.655C12.565 11.365 12.405 10.94 12.405 10.38C12.405 9.61 12.725 9.045 13.365 8.685C14.015 8.315 15.03 8.13 16.41 8.13V7.26C16.41 6.79 16.3 6.455 16.08 6.255C15.86 6.055 15.505 5.955 15.015 5.955C14.255 5.955 13.875 6.165 13.875 6.585C13.875 6.665 13.895 6.76 13.935 6.87C13.985 6.97 14.01 7.065 14.01 7.155C14.01 7.325 13.955 7.455 13.845 7.545C13.735 7.625 13.595 7.665 13.425 7.665C13.215 7.665 13.05 7.6 12.93 7.47C12.82 7.34 12.765 7.17 12.765 6.96C12.765 6.54 12.985 6.2 13.425 5.94C13.865 5.68 14.455 5.55 15.195 5.55C16.865 5.55 17.7 6.255 17.7 7.665V11.355C17.7 11.545 17.765 11.64 17.895 11.64L18.45 11.61ZM14.775 11.535C15.215 11.535 15.59 11.355 15.9 10.995C16.21 10.625 16.38 10.15 16.41 9.57V8.535C15.47 8.535 14.795 8.675 14.385 8.955C13.975 9.225 13.77 9.66 13.77 10.26C13.77 10.68 13.855 11 14.025 11.22C14.205 11.43 14.455 11.535 14.775 11.535Z" fill="black"/> </svg>'},46995:function(t){t.exports='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg>'},83556:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 5.5v6" fill="none" /> <path d="M9 9l3 3l3 -3" fill="none" /> <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" fill="none" /> <path d="M2 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" fill="none" /> <path d="M17 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0" fill="none" /> <path d="M9.5 15a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1 -3 0v-3a1.5 1.5 0 0 1 1.5 -1.5" fill="none" /> <path d="M19.5 15l3 6" fill="none" /> <path d="M19.5 21l3 -6" fill="none" /> </svg>'},4872:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M12 5.5v6" fill="none" /> <path d="M9 9l3 3l3 -3" fill="none" /> <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4" fill="none" /> <path d="M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6" fill="none" /> <path d="M17 18h2" fill="none" /> <path d="M20 15h-3v6" fill="none" /> <path d="M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1" fill="none" /> </svg>'},53121:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M19,21H5a2,2,0,0,1-2-2V17a1,1,0,0,1,2,0v2H19V17a1,1,0,0,1,2,0v2A2,2,0,0,1,19,21Z"/> <path d="M18,5H6A1,1,0,0,1,6,3H18a1,1,0,0,1,0,2Z"/> <path d="M15.71,10.29l-3-3a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0-.21,1.09A1,1,0,0,0,9,12h2v3a1,1,0,0,0,2,0V12h2a1,1,0,0,0,.92-.62A1,1,0,0,0,15.71,10.29Z"/> </svg>'},7307:function(t){t.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg>'},24928:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg>'},96910:function(t){t.exports='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg>'},81122:function(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},49377:function(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},46425:function(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},86820:function(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},36576:function(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},27622:function(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},89687:function(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'},25088:function(t){t.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'},67008:function(t){t.exports='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg>'},63643:function(t){t.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M0 6c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6zm2 0v2h2V6H2zm1 3v2h2V9H3zm-1 3v2h2v-2H2zm3 0v2h10v-2H5zm11 0v2h2v-2h-2zM6 9v2h2V9H6zm3 0v2h2V9H9zm3 0v2h2V9h-2zm3 0v2h2V9h-2zM5 6v2h2V6H5zm3 0v2h2V6H8zm3 0v2h2V6h-2zm3 0v2h4V6h-4z"/> </svg>'},27926:function(t){t.exports='<?xml version="1.0" ?><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M0 10l7-7h13v14H7l-7-7zm14.41 0l2.13-2.12-1.42-1.42L13 8.6l-2.12-2.13-1.42 1.42L11.6 10l-2.13 2.12 1.42 1.42L13 11.4l2.12 2.13 1.42-1.42L14.4 10z"/></svg>'},10690:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V24H8V15.2625H0L15 0.5Z"/> <rect x="8" y="26" width="14" height="3"/> </svg>'},91997:function(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cy="12" cx="12" r="2.2"/> <circle cy="12" cx="5" r="2.2"/> <circle cy="12" cx="19" r="2.2"/> </svg>'},11699:function(t){t.exports='<svg viewBox="0 0 30 29" xmlns="http://www.w3.org/2000/svg"> <path d="M15 0.5L30 15.2625H22V29H8V15.2625H0L15 0.5Z"/> </svg>'},98126:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M23.17 14.83l7.17 7.17h-28.34v4h28.34l-7.17 7.17 2.83 2.83 12-12-12-12-2.83 2.83zm16.83-2.83v24h4v-24h-4z"/> </svg>'},27222:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M17,24a4,4,0,0,0,4-4V4a4,4,0,0,0-4-4H7A4,4,0,0,0,3,4V20a4,4,0,0,0,4,4ZM5,20V4A2,2,0,0,1,7,2H17a2,2,0,0,1,2,2V20a2,2,0,0,1-2,2H7A2,2,0,0,1,5,20Z"/> <path d="M8,19h8a1,1,0,0,0,0-2H8a1,1,0,0,0,0,2Z"/> <path d="M11,5h2a1,1,0,0,0,0-2H11a1,1,0,0,0,0,2Z"/> </svg>'},17405:function(t){t.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5 12C2.5 11.5858 2.83579 11.25 3.25 11.25H4.75C5.16421 11.25 5.5 11.5858 5.5 12C5.5 12.4142 5.16421 12.75 4.75 12.75H3.25C2.83579 12.75 2.5 12.4142 2.5 12Z"/> <path d="M6.5 12C6.5 11.5858 6.83579 11.25 7.25 11.25H8.75C9.16421 11.25 9.5 11.5858 9.5 12C9.5 12.4142 9.16421 12.75 8.75 12.75H7.25C6.83579 12.75 6.5 12.4142 6.5 12Z" /> <path d="M10.5 12C10.5 11.5858 10.8358 11.25 11.25 11.25H12.75C13.1642 11.25 13.5 11.5858 13.5 12C13.5 12.4142 13.1642 12.75 12.75 12.75H11.25C10.8358 12.75 10.5 12.4142 10.5 12Z" /> <path d="M14.5 12C14.5 11.5858 14.8358 11.25 15.25 11.25H16.75C17.1642 11.25 17.5 11.5858 17.5 12C17.5 12.4142 17.1642 12.75 16.75 12.75H15.25C14.8358 12.75 14.5 12.4142 14.5 12Z" /> <path d="M18.5 12C18.5 11.5858 18.8358 11.25 19.25 11.25H20.75C21.1642 11.25 21.5 11.5858 21.5 12C21.5 12.4142 21.1642 12.75 20.75 12.75H19.25C18.8358 12.75 18.5 12.4142 18.5 12Z" /> <path d="M4.75 2C4.33579 2 4 2.33579 4 2.75V7C4 8.104 4.896 9 6 9H18C19.104 9 20 8.104 20 7V2.75C20 2.33579 19.6642 2 19.25 2C18.8358 2 18.5 2.33579 18.5 2.75V7C18.5 7.275 18.276 7.5 18 7.5H6C5.724 7.5 5.5 7.275 5.5 7V2.75C5.5 2.33579 5.16421 2 4.75 2Z" /> <path d="M19.25 22C19.6642 22 20 21.6642 20 21.25V17C20 15.896 19.104 15 18 15L6 15C4.896 15 4 15.896 4 17L4 21.25C4 21.6642 4.33579 22 4.75 22C5.16421 22 5.5 21.6642 5.5 21.25L5.5 17C5.5 16.725 5.724 16.5 6 16.5L18 16.5C18.276 16.5 18.5 16.725 18.5 17V21.25C18.5 21.6642 18.8358 22 19.25 22Z" /> </svg>'},75689:function(t){t.exports='<svg viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M2.5244141,23.5h18.9511719c0.4140625,0,0.75-0.3359375,0.75-0.75V4.9208984 c0-0.1992188-0.0795898-0.390625-0.2207031-0.53125L18.3198242,0.71875C18.1791992,0.5786133,17.9887695,0.5,17.7905273,0.5 H2.5244141c-0.4140625,0-0.75,0.3359375-0.75,0.75v21.5C1.7744141,23.1640625,2.1103516,23.5,2.5244141,23.5z M20.7128296,5.2197266 h-2.6986694V2.531189L20.7128296,5.2197266z M3.2744141,2h13.2397461v3.9697266c0,0.4140625,0.3359375,0.75,0.75,0.75h3.4614258V22 H3.2744141V2z" fill="#1D1D1D"/> <path d="M8.75,10.25h1.75c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8 c-0.4140625,0-0.75,0.3359375-0.75,0.75v2.75H6c-0.4140625,0-0.75,0.3359375-0.75,0.75S5.5859375,13.75,6,13.75h1.25v2.75 c0,0.4140625,0.3359375,0.75,0.75,0.75h2.5c0.4140625,0,0.75-0.3359375,0.75-0.75s-0.3359375-0.75-0.75-0.75H8.75V10.25z" fill="#1D1D1D"/> <path d="M18.5,12.25h-1.25V9.5c0-0.4140625-0.3359375-0.75-0.75-0.75H14c-0.4140625,0-0.75,0.3359375-0.75,0.75 s0.3359375,0.75,0.75,0.75h1.75v5.5H14c-0.4140625,0-0.75,0.3359375-0.75,0.75s0.3359375,0.75,0.75,0.75h2.5 c0.4140625,0,0.75-0.3359375,0.75-0.75v-2.75h1.25c0.4140625,0,0.75-0.3359375,0.75-0.75S18.9140625,12.25,18.5,12.25z" fill="#1D1D1D"/></svg>'},78879:function(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <g> <rect rx="10" height="1620" width="1620" y="79.646973" x="80" stroke-width="100" stroke-dasharray="8% 10%" fill="none"/> <path d="m1333.992706,381.692384l0,52.982419q0,21.04781 -12.98052,44.272981t-29.820114,23.22517q-35.082487,0 -37.889085,0.725787q-18.242893,4.354719 -22.452791,22.499384q-2.104949,7.983652 -2.104949,46.45034l0,836.106125q0,18.144664 -12.629695,31.208822t-30.170938,13.064158l-75.778171,0q-17.541243,0 -30.170938,-13.064158t-12.629695,-31.208822l0,-884.008038l-100.335911,0l0,884.008038q0,18.144664 -12.27887,31.208822t-30.521763,13.064158l-75.778171,0q-18.242893,0 -30.521763,-13.064158t-12.27887,-31.208822l0,-359.990137q-103.14251,-8.709439 -171.904184,-42.821407q-88.407866,-42.095621 -134.716748,-129.915795q-44.905583,-84.917028 -44.905583,-187.978721q0,-120.48057 61.745176,-207.574958q61.745176,-85.642815 146.644794,-115.400064q77.88312,-26.854103 292.587937,-26.854103l336.090221,0q17.541243,0 30.170938,13.064158t12.629695,31.208822z"/> </g> </svg>'},78955:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="3.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="2" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="14.5" width="9" height="9" rx="1.5" fill="none"/> <rect x="13" y="3.5" width="9" height="9" rx="1.5" fill="currentColor" transform="rotate(45 17.5 8)"/> </svg>'},18993:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" stroke="currentColor" stroke-width="1.5"> <rect x="2" y="2" width="20" height="9" rx="1.5" fill="none"/> <rect x="2" y="14" width="9" height="8" rx="1.5" fill="none"/> <rect x="13" y="14" width="9" height="8" rx="1.5" fill="currentColor"/> </svg>'},11373:function(t){t.exports='<svg stroke="black" stroke-linejoin="round" stroke-linecap="round" stroke-width="28" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"> \x3c!-- <rect fill="none" height="256" width="256"/>--\x3e <line fill="none" x1="130" x2="241" y1="54" y2="54"/> <line fill="none" x1="130" x2="241" y1="128" y2="128"/> <line fill="none" x1="130" x2="241" y1="202" y2="202"/> <polyline fill="none" points="92 38 57.3 70 40 54"/> <polyline fill="none" points="92 112 57.3 144 40 128"/> <polyline fill="none" points="92 186 57.3 218 40 202"/> </svg>'},74922:function(t){t.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M13.98 22L6 30l7.98 8v-6H28v-4H13.98v-6zM42 18l-7.98-8v6H20v4h14.02v6L42 18z"/> <path d="M0 0h48v48H0z" fill="none"/> </svg>'},34575:function(t){t.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"> <path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/> <path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/> </svg>'},46146:function(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,i,n){"use strict";var o=n(3);function r(t){return!0===o(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var i,n;return!1!==r(t)&&"function"==typeof(i=t.constructor)&&!1!==r(n=i.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.VERSION=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=i.getLuminance=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.parseColorToRgba=i.parseColorToRgb=i.from=i.createPicker=void 0;var o=function(){function t(t,i){for(var n=0;n<i.length;n++){var o=i[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(i,n,o){return n&&t(i.prototype,n),o&&t(i,o),i}}(),r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=n(2),a=u(n(0)),l=u(n(4));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,i){if(!(t instanceof i))throw TypeError("Cannot call a class as a function")}function d(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var h="u">typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,p="u">typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,f={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},m="COLOR",g="RGBA_USER",b="HSLA_USER";function v(t,i,n){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):n?i:null:i}function y(t){var i=t.getContext("2d"),n=+t.width,o=+t.height,a=i.createLinearGradient(1,1,1,o-1);return a.addColorStop(0,"white"),a.addColorStop(1,"black"),{setHue:function(t){var r=i.createLinearGradient(1,0,n-1,0);r.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),r.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),i.fillStyle=a,i.fillRect(0,0,n,o),i.fillStyle=r,i.globalCompositeOperation="multiply",i.fillRect(0,0,n,o),i.globalCompositeOperation="source-over"},grabColor:function(t,n){return i.getImageData(t,n,1,1).data},findColor:function(t,i,a){var l=r((0,s.rgbToHsv)(t,i,a),3);return[l[1]*n,o-l[2]*o]}}}function _(t,i,n){return null===t?i:/^\s*$/.test(t)?n:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&i}function C(t,i,n){if(null===t)return i;if(/^\s*$/.test(t))return n;var o=t.split(",").map(Number);return 2===o.length&&o[0]&&o[1]?o:i}var w=function(){function t(i,n){if(c(this,t),n?(i=v(i),this.options=Object.assign({},f,n)):i&&(0,a.default)(i)?(this.options=Object.assign({},f,i),i=v(this.options.attachTo)):(this.options=Object.assign({},f),i=v((0,s.nvl)(i,this.options.attachTo))),!i)throw Error("Container not found: "+this.options.attachTo);!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(i.hasAttribute(n+"show-hsl")&&(t.showHSL=_(i.getAttribute(n+"show-hsl"),f.showHSL,!0)),i.hasAttribute(n+"show-rgb")&&(t.showRGB=_(i.getAttribute(n+"show-rgb"),f.showRGB,!0)),i.hasAttribute(n+"show-hex")&&(t.showHEX=_(i.getAttribute(n+"show-hex"),f.showHEX,!0)),i.hasAttribute(n+"show-alpha")&&(t.showAlpha=_(i.getAttribute(n+"show-alpha"),f.showAlpha,!0)),i.hasAttribute(n+"palette-editable")&&(t.paletteEditable=_(i.getAttribute(n+"palette-editable"),f.paletteEditable,!0)),i.hasAttribute(n+"sl-bar-size")&&(t.slBarSize=C(i.getAttribute(n+"sl-bar-size"),f.slBarSize,[232,150])),i.hasAttribute(n+"hue-bar-size")&&(t.hueBarSize=C(i.getAttribute(n+"hue-bar-size"),f.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),i.hasAttribute(n+"palette")){var o=i.getAttribute(n+"palette");switch(o){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=o.split(/[;|]/)}}i.hasAttribute(n+"color")&&(t.color=i.getAttribute(n+"color"))}(this.options,i),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=l.default,i.appendChild(this.element);var o=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(o),this.hueBarHelper=y(o),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var r=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(r),this.slBarHelper=y(r),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(m,this.options.color)}return o(t,[{key:"setupHueCanvas",value:function(t){var i=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var n=t.getContext("2d"),o=n.createLinearGradient(0,0,this.options.hueBarSize[0],0),r=0;r<=1;r+=1/360)o.addColorStop(r,"hsl("+360*r+", 100%, 50%)");n.fillStyle=o,n.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var a=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.hueBarSize[0]),r=Math.round(360*o/i.options.hueBarSize[0]);i.huePointer.style.left=o-7+"px",i.onValueChanged("H",r)},l=function t(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){a(t),document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)})}},{key:"setupSlCanvas",value:function(t){var i=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var n=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.slBarSize[0]-1),r=(0,s.limit)(n.clientY-t.getBoundingClientRect().top,0,i.options.slBarSize[1]-1),a=i.slBarHelper.grabColor(o,r);i.slPointer.style.left=o-7+"px",i.slPointer.style.top=r-7+"px",i.onValueChanged("RGB",a)},o=function t(){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){n(t),document.addEventListener("mousemove",n),document.addEventListener("mouseup",o)})}},{key:"setupAlphaCanvas",value:function(t){var i=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var n=t.getContext("2d"),o=n.createLinearGradient(0,0,t.width-1,0);o.addColorStop(0,"hsla(0, 0%, 50%, 0)"),o.addColorStop(1,"hsla(0, 0%, 50%, 1)"),n.fillStyle=o,n.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var r=function(n){var o=(0,s.limit)(n.clientX-t.getBoundingClientRect().left,0,i.options.alphaBarSize[0]),r=+(o/i.options.alphaBarSize[0]).toFixed(2);i.alphaPointer.style.left=o-7+"px",i.onValueChanged("ALPHA",r)},a=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",function(t){r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",a)})}},{key:"setupInput",value:function(t){var i=this,n=+t.min,o=+t.max,r=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",function(){t.select()}),"text"===t.type?t.addEventListener("change",function(){i.onValueChanged(r,t.value)}):((h||p)&&t.addEventListener("keydown",function(a){"Up"===a.key?(t.value=(0,s.limit)(+t.value+1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1):"Down"===a.key&&(t.value=(0,s.limit)(t.value-1,n,o),i.onValueChanged(r,t.value),a.returnValue=!1)}),t.addEventListener("change",function(){var a=+t.value;i.onValueChanged(r,(0,s.limit)(a,n,o))}))}},{key:"setupClipboard",value:function(t){var i=this;t.title="click to copy",t.addEventListener("click",function(){t.value=(0,s.parseColor)([i.R,i.G,i.B,i.A],"hexcss4"),t.select(),document.execCommand("copy")})}},{key:"setPalette",value:function(t){var i=this,n="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,o=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":o=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":o=s.PALETTE_MATERIAL_CHROME;break;default:o=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||o.length>0){var r=function(n,o,r){var s=t.querySelector('.a-color-picker-palette-color[data-color="'+n+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=n,s.setAttribute("data-color",n),s.title=n,t.insertBefore(s,o),i.palette[n]=!0,r&&i.onPaletteColorAdd(n)},a=function(n,o){n?(t.removeChild(n),i.palette[n.getAttribute("data-color")]=!1,o&&i.onPaletteColorRemove(n.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function(i){t.removeChild(i)}),Object.keys(i.palette).forEach(function(t){i.palette[t]=!1}),o&&i.onPaletteColorRemove())};if(o.map(function(t){return(0,s.parseColor)(t,n?"rgbcss4":"hex")}).filter(function(t){return!!t}).forEach(function(t){return r(t)}),this.options.paletteEditable){var l=document.createElement("div");l.className="a-color-picker-palette-color a-color-picker-palette-add",l.innerHTML="+",t.appendChild(l),t.addEventListener("click",function(t){/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?a(null,!0):r(n?(0,s.parseColor)([i.R,i.G,i.B,i.A],"rgbcss4"):(0,s.rgbToHex)(i.R,i.G,i.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?a(t.target,!0):i.onValueChanged(m,t.target.getAttribute("data-color")))})}else t.addEventListener("click",function(t){/a-color-picker-palette-color/.test(t.target.className)&&i.onValueChanged(m,t.target.getAttribute("data-color"))})}else t.style.display="none"}},{key:"updatePalette",value:function(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=i;var o=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=o[0],this.G=o[1],this.B=o[2],this.slBarHelper.setHue(i),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=i;var a=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=a[0],this.G=a[1],this.B=a[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=i;var l=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=i;var u=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=i;var c=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=c[0],this.S=c[1],this.L=c[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=i;var d=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=d[0],this.S=d[1],this.L=d[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var h=r(i,3);this.R=h[0],this.G=h[1],this.B=h[2];var p=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=p[0],this.S=p[1],this.L=p[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case g:var f=r(i,4);this.R=f[0],this.G=f[1],this.B=f[2],this.A=f[3];var v=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=v[0],this.S=v[1],this.L=v[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case b:var y=r(i,4);this.H=y[0],this.S=y[1],this.L=y[2],this.A=y[3];var _=r((0,s.hslToRgb)(this.H,this.S,this.L),3);this.R=_[0],this.G=_[1],this.B=_[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var C=r((0,s.cssColorToRgb)(i)||[this.R,this.G,this.B],3);this.R=C[0],this.G=C[1],this.B=C[2];var w=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=w[0],this.S=w[1],this.L=w[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case m:var F=r((0,s.parseColor)(i,"rgba")||[0,0,0,1],4);this.R=F[0],this.G=F[1],this.B=F[2],this.A=F[3];var E=r((0,s.rgbToHsl)(this.R,this.G,this.B),3);this.H=E[0],this.S=E[1],this.L=E[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=i}1===this.A?this.preview.style.backgroundColor="rgb("+this.R+","+this.G+","+this.B+")":this.preview.style.backgroundColor="rgba("+this.R+","+this.G+","+this.B+","+this.A+")",n&&n.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value:function(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value:function(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value:function(t,i,n){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=i,this.inputL.value=n)}},{key:"updateInputRGB",value:function(t,i,n){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=i,this.inputB.value=n)}},{key:"updateInputRGBHEX",value:function(t,i,n){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,i,n))}},{key:"updatePointerH",value:function(t){var i=this.options.hueBarSize[0]*t/360;this.huePointer.style.left=i-7+"px"}},{key:"updatePointerSL",value:function(t,i,n){var o=r((0,s.hslToRgb)(t,i,n),3),a=o[0],l=o[1],u=o[2],c=r(this.slBarHelper.findColor(a,l,u),2),d=c[0],h=c[1];d>=0&&(this.slPointer.style.left=d-7+"px",this.slPointer.style.top=h-7+"px")}},{key:"updatePointerA",value:function(t){if(this.options.showAlpha){var i=this.options.alphaBarSize[0]*t;this.alphaPointer.style.left=i-7+"px"}}}]),t}(),F=function(){function t(i){c(this,t),this.name=i,this.listeners=[]}return o(t,[{key:"on",value:function(t){t&&this.listeners.push(t)}},{key:"off",value:function(t){this.listeners=t?this.listeners.filter(function(i){return i!==t}):[]}},{key:"emit",value:function(t,i){for(var n=this.listeners.slice(0),o=0;o<n.length;o++)n[o].apply(i,t)}}]),t}();function E(t,i){var n=new w(t,i),o={change:new F("change"),coloradd:new F("coloradd"),colorremove:new F("colorremove")},a=!0,l={},u={get element(){return n.element},get rgb(){return[n.R,n.G,n.B]},set rgb(e){var c=r(e,3),d=c[0],h=c[1],p=c[2],f=[(0,s.limit)(d,0,255),(0,s.limit)(h,0,255),(0,s.limit)(p,0,255)];d=f[0],h=f[1],p=f[2],n.onValueChanged(g,[d,h,p,1])},get hsl(){return[n.H,n.S,n.L]},set hsl(e){var v=r(e,3),y=v[0],_=v[1],C=v[2],E=[(0,s.limit)(y,0,360),(0,s.limit)(_,0,100),(0,s.limit)(C,0,100)];y=E[0],_=E[1],C=E[2],n.onValueChanged(b,[y,_,C,1])},get rgbhex(){return this.all.hex},get rgba(){return[n.R,n.G,n.B,n.A]},set rgba(e){var k=r(e,4),S=k[0],A=k[1],D=k[2],x=k[3],I=[(0,s.limit)(S,0,255),(0,s.limit)(A,0,255),(0,s.limit)(D,0,255),(0,s.limit)(x,0,1)];S=I[0],A=I[1],D=I[2],x=I[3],n.onValueChanged(g,[S,A,D,x])},get hsla(){return[n.H,n.S,n.L,n.A]},set hsla(e){var B=r(e,4),T=B[0],j=B[1],P=B[2],L=B[3],M=[(0,s.limit)(T,0,360),(0,s.limit)(j,0,100),(0,s.limit)(P,0,100),(0,s.limit)(L,0,1)];T=M[0],j=M[1],P=M[2],L=M[3],n.onValueChanged(b,[T,j,P,L])},get color(){return this.all.toString()},set color(e){n.onValueChanged(m,e)},setColor:function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n.onValueChanged(m,t,{silent:i})},get all(){if(a){var R=[n.R,n.G,n.B,n.A],z=n.A<1?"rgba("+n.R+","+n.G+","+n.B+","+n.A+")":s.rgbToHex.apply(void 0,R);(l=(0,s.parseColor)(R,l)).toString=function(){return z},a=!1}return Object.assign({},l)},get onchange(){return o.change&&o.change.listeners[0]},set onchange(e){this.off("change").on("change",e)},get oncoloradd(){return o.coloradd&&o.coloradd.listeners[0]},set oncoloradd(e){this.off("coloradd").on("coloradd",e)},get oncolorremove(){return o.colorremove&&o.colorremove.listeners[0]},set oncolorremove(e){this.off("colorremove").on("colorremove",e)},get palette(){return Object.keys(n.palette).filter(function(t){return n.palette[t]})},set palette(e){n.updatePalette(e)},show:function(){n.element.classList.remove("hidden")},hide:function(){n.element.classList.add("hidden")},toggle:function(){n.element.classList.toggle("hidden")},on:function(t,i){return t&&o[t]&&o[t].on(i),this},off:function(t,i){return t&&o[t]&&o[t].off(i),this},destroy:function(){o.change.off(),o.coloradd.off(),o.colorremove.off(),n.element.remove(),o=null,n=null}};return n.onchange=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];a=!0,o.change.emit([u].concat(i),u)},n.oncoloradd=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.coloradd.emit([u].concat(i),u)},n.oncolorremove=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];o.colorremove.emit([u].concat(i),u)},n.element.ctrl=u,u}if("u">typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var k=n(5).toString(),S=document.createElement("style");S.setAttribute("type","text/css"),S.setAttribute("data-source","a-color-picker"),S.innerHTML=k,document.querySelector("head").appendChild(S)}i.createPicker=E,i.from=function(t,i){var n=(t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(d(t)):"string"==typeof t?[].concat(d(document.querySelectorAll(t))):t.jquery?t.get():[]:[]).map(function(t,n){var o=E(t,i);return o.index=n,o});return n.on=function(t,i){return n.forEach(function(n){return n.on(t,i)}),this},n.off=function(t){return n.forEach(function(i){return i.off(t)}),this},n},i.parseColorToRgb=s.parseColorToRgb,i.parseColorToRgba=s.parseColorToRgba,i.parseColorToHsl=s.parseColorToHsl,i.parseColorToHsla=s.parseColorToHsla,i.parseColor=s.parseColor,i.rgbToHex=s.rgbToHex,i.hslToRgb=s.hslToRgb,i.rgbToHsl=s.rgbToHsl,i.rgbToHsv=s.rgbToHsv,i.rgbToInt=s.rgbToInt,i.intToRgb=s.intToRgb,i.getLuminance=s.getLuminance,i.COLOR_NAMES=s.COLOR_NAMES,i.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,i.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,i.VERSION="1.2.1"},function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.nvl=i.ensureArray=i.limit=i.getLuminance=i.parseColor=i.parseColorToHsla=i.parseColorToHsl=i.cssHslaToHsla=i.cssHslToHsl=i.parseColorToRgba=i.parseColorToRgb=i.cssRgbaToRgba=i.cssRgbToRgb=i.cssColorToRgba=i.cssColorToRgb=i.intToRgb=i.rgbToInt=i.rgbToHsv=i.rgbToHsl=i.hslToRgb=i.rgbToHex=i.PALETTE_MATERIAL_CHROME=i.PALETTE_MATERIAL_500=i.COLOR_NAMES=void 0;var o,r=function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,i){var n=[],o=!0,r=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done)&&(n.push(a.value),!i||n.length!==i);o=!0);}catch(t){r=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(r)throw s}}return n}(t,i);throw TypeError("Invalid attempt to destructure non-iterable instance")},s=(o=n(0))&&o.__esModule?o:{default:o};function a(t){if(Array.isArray(t)){for(var i=0,n=Array(t.length);i<t.length;i++)n[i]=t[i];return n}return Array.from(t)}var l={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function u(t,i,n){return isNaN(t*=1)||i>t?i:t>n?n:t}function c(t,i){return null==t?i:t}function d(t,i,n){var o=[u(t,0,255),u(i,0,255),u(n,0,255)];return"#"+("000000"+((t=o[0])<<16|(i=o[1])<<8|(n=o[2])).toString(16)).slice(-6)}function h(t,i,n){var o=void 0,r=void 0,s=void 0,a=[u(t,0,360)/360,u(i,0,100)/100,u(n,0,100)/100];if(t=a[0],n=a[2],0==(i=a[1]))o=r=s=n;else{var l=function(t,i,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(i-t)*n:n<.5?i:n<2/3?t+(i-t)*(2/3-n)*6:t},c=n<.5?n*(1+i):n+i-n*i,d=2*n-c;o=l(d,c,t+1/3),r=l(d,c,t),s=l(d,c,t-1/3)}return[255*o,255*r,255*s].map(Math.round)}function p(t,i,n){var o=[u(t,0,255)/255,u(i,0,255)/255,u(n,0,255)/255],r=Math.max(t=o[0],i=o[1],n=o[2]),s=Math.min(t,i,n),a=void 0,l=void 0,c=(r+s)/2;if(r==s)a=l=0;else{var d=r-s;switch(l=c>.5?d/(2-r-s):d/(r+s),r){case t:a=(i-n)/d+6*(i<n);break;case i:a=(n-t)/d+2;break;case n:a=(t-i)/d+4}a/=6}return[360*a,100*l,100*c].map(Math.round)}function f(t,i,n){return t<<16|i<<8|n}function m(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(i||t)||[],10),o=n[3],s=n[4],a=n[5],u=n[7],c=n[8],d=n[9];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16)];if(void 0!==u)return[parseInt(u,16),parseInt(c,16),parseInt(d,16)]}}function g(t){if(t){var i=l[t.toString().toLowerCase()],n=r(/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(i||t)||[],12),o=n[3],s=n[4],a=n[5],u=n[6],c=n[8],d=n[9],h=n[10],p=n[11];if(void 0!==o)return[parseInt(o+o,16),parseInt(s+s,16),parseInt(a+a,16),u?+(parseInt(u+u,16)/255).toFixed(2):1];if(void 0!==c)return[parseInt(c,16),parseInt(d,16),parseInt(h,16),p?+(parseInt(p,16)/255).toFixed(2):1]}}function b(t){if(t){var i=r(/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[u(o,0,255),u(s,0,255),u(a,0,255)]:void 0}}function v(t){if(t){var i=r(/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[u(o,0,255),u(s,0,255),u(a,0,255),u(c(l,1),0,1)]:void 0}}function y(t){if(Array.isArray(t))return[u(t[0],0,255),u(t[1],0,255),u(t[2],0,255),u(c(t[3],1),0,1)];var i=g(t)||v(t);return i&&3===i.length&&i.push(1),i}function _(t){if(t){var i=r(/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],4),n=i[0],o=i[1],s=i[2],a=i[3];return n?[u(o,0,360),u(s,0,100),u(a,0,100)]:void 0}}function C(t){if(t){var i=r(/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],6),n=i[0],o=i[1],s=i[2],a=i[3],l=i[5];return n?[u(o,0,255),u(s,0,255),u(a,0,255),u(c(l,1),0,1)]:void 0}}function w(t){if(Array.isArray(t))return[u(t[0],0,360),u(t[1],0,100),u(t[2],0,100),u(c(t[3],1),0,1)];var i=C(t);return i&&3===i.length&&i.push(1),i}function F(t,i){switch(i){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return p.apply(void 0,a(t));case"hslcss":return"hsl("+(t=p.apply(void 0,a(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var n=p.apply(void 0,a(t));return"hsl("+n[0]+", "+n[1]+", "+n[2]+", "+t[3]+")";case"hsla":return[].concat(a(p.apply(void 0,a(t))),[t[3]]);case"hslacss":var o=p.apply(void 0,a(t));return"hsla("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hex":return d.apply(void 0,a(t));case"hexcss4":return d.apply(void 0,a(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return f.apply(void 0,a(t))}}i.COLOR_NAMES=l,i.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],i.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],i.rgbToHex=d,i.hslToRgb=h,i.rgbToHsl=p,i.rgbToHsv=function(t,i,n){var o=[u(t,0,255)/255,u(i,0,255)/255,u(n,0,255)/255],r,s=Math.max(t=o[0],i=o[1],n=o[2]),a=Math.min(t,i,n),l=void 0,c=s-a;if(r=0===s?0:c/s,s==a)l=0;else{switch(s){case t:l=(i-n)/c+6*(i<n);break;case i:l=(n-t)/c+2;break;case n:l=(t-i)/c+4}l/=6}return[l,r,s]},i.rgbToInt=f,i.intToRgb=function(t){return[t>>16&255,t>>8&255,255&t]},i.cssColorToRgb=m,i.cssColorToRgba=g,i.cssRgbToRgb=b,i.cssRgbaToRgba=v,i.parseColorToRgb=function(t){return Array.isArray(t)?t=[u(t[0],0,255),u(t[1],0,255),u(t[2],0,255)]:m(t)||b(t)},i.parseColorToRgba=y,i.cssHslToHsl=_,i.cssHslaToHsla=C,i.parseColorToHsl=function(t){return Array.isArray(t)?t=[u(t[0],0,360),u(t[1],0,100),u(t[2],0,100)]:_(t)},i.parseColorToHsla=w,i.parseColor=function(t,i){if(i=i||"rgb",null!=t){var n=void 0;if((n=y(t))||(n=w(t))&&(n=[].concat(a(h.apply(void 0,a(n))),[n[3]])))return(0,s.default)(i)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(function(t,i){return t[i]=F(n,i),t},i||{}):F(n,i.toString().toLowerCase())}},i.getLuminance=function(t,i,n){return .2126*(t=(t/=255)<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i=(i/=255)<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*((n/=255)<.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},i.limit=u,i.ensureArray=function(t){return t?Array.from(t):[]},i.nvl=c},function(t,i,n){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},function(t,i){t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},function(t,i,n){var o=n(6);t.exports="string"==typeof o?o:o.toString()},function(t,i,n){(t.exports=n(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.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 n=function(t,i){var n=t[1]||"",o=t[3];if(!o)return n;if(i&&"function"==typeof btoa){var r="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */";return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join("\n")}return[n].join("\n")}(i,t);return i[2]?"@media "+i[2]+"{"+n+"}":n}).join("")},i.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var s=this[r][0];"number"==typeof s&&(o[s]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),i.push(a))}},i}}],i={};function n(o){if(i[o])return i[o].exports;var r=i[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=i,n.d=function(t,i,o){n.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:o})},n.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,i){if(1&i&&(t=n(t)),8&i||4&i&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var r in t)n.d(o,r,(function(i){return t[i]}).bind(null,r));return o},n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,"a",i),i},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},n.p="",n(n.s=1)}()},6441:function(t,i,n){"use strict";n.d(i,{Config:function(){return s}});var o=n(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=o.globalDocument,this.ownerWindow=o.globalWindow,this.shadowRoot=null,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.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=o.INSERT_AS_HTML,this.enter=o.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:o.PARAGRAPH,this.defaultMode=o.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:[]},"\n",{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,n){"use strict";n.d(i,{Async:function(){return m}});var o=n(82758),r=n(91898),s=n(12045),a=n(23282),l=n(84767),u=n(72430),c=n(14773),d=n(70799),h=n(86068),p=n(38837),f=n(93661);class m{delay(t){return this.promise(i=>this.setTimeout(i,t))}setTimeout(t,i,...n){if(this.isDestructed)return 0;let o={};(0,h.isVoid)(i)&&(i=0),(0,l.isNumber)(i)||(i=(o=i).timeout||0),o.label&&this.clearLabel(o.label);let s=(0,r.setTimeout)(t,i,...n),a=o.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 n=this.__callbacks.get(t);return(0,p.assert)((0,a.isFunction)(n),"Callback is not a function"),this.setTimeout(n,{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,n=!1){let o=0,l=!1,d=[],h=(...i)=>{if(!l){o=0;let n=t(...i);if(l=!0,d.length){let t=()=>{d.forEach(t=>t()),d.length=0};(0,c.isPromise)(n)?n.finally(t):t()}}},p=(...s)=>{l=!1,i?(!o&&n&&h(...s),(0,r.clearTimeout)(o),o=this.setTimeout(()=>h(...s),(0,a.isFunction)(i)?i():i),this.timers.set(t,o)):h(...s)};return(0,u.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 n,o=!1,r=!0;return(...s)=>{if(n=s,o){r=!0;return}r=!0,i&&(r=!1,t(...n)),o=!0,this.__queueMicrotaskNative(()=>{o=!1,!this.isDestructed&&r&&t(...n)})}}throttle(t,i,n=!1){let o=null,r,s,l;return(...n)=>{(r=!0,l=n,i)?o||(s=()=>{r?(t(...l),r=!1,o=this.setTimeout(s,(0,a.isFunction)(i)?i():i),this.timers.set(s,o)):o=null})():t(...l)}}promise(t){let i=()=>{},n=new Promise((n,o)=>{i=()=>o((0,f.abort)("Abort async")),this.promisesRejections.add(i),t(n,o)});return!n.finally&&"u">typeof process&&!o.IS_ES_NEXT&&(n.finally=t=>(n.then(t).catch(t),n)),n.finally(()=>{this.promisesRejections.delete(i)}).catch(()=>null),n.rejectCallback=i,n}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 n=this.__requestIdleCallbackNative(t,i);return this.__requestsIdle.add(n),n}requestIdlePromise(t){return this.promise(i=>{let n=this.requestIdleCallback(()=>i(n),t)})}schedulerPostTask(t,i={delay:0,priority:"user-visible"}){let n=new AbortController;if(i.signal&&i.signal.addEventListener("abort",()=>n.abort()),this.__controllers.add(n),void 0!==globalThis.scheduler){var o,r;let s=globalThis.scheduler.postTask(t,(o=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},i),r=r={signal:n.signal},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))}),o));return s.finally(()=>{this.__controllers.delete(n)}).catch(()=>null),s}return this.promise((o,r)=>{let s=this.setTimeout(()=>{try{o(t())}catch(t){r(t)}this.__controllers.delete(n)},i.delay||1);n.signal.addEventListener("abort",()=>{this.clearTimeout(s),this.__controllers.delete(n),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,n,o,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!=(n=null==(i=window.requestIdleCallback)?void 0:i.bind(window))?n:(t,i)=>{var n;let o=Date.now();return this.setTimeout(()=>{t({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-o))})},null!=(n=null==i?void 0:i.timeout)?n:1)},this.__cancelIdleCallbackNative=null!=(r=null==(o=window.cancelIdleCallback)?void 0:o.bind(window))?r:t=>{this.clearTimeout(t)},this.isDestructed=!1}}},8884:function(t,i,n){"use strict";n.d(i,{Async:function(){return o.Async}});var o=n(26992)},4012:function(t,i,n){"use strict";n.d(i,{Component:function(){return u}});var o=n(8884),r=n(78213),s=n(580),a=n(21537);let l=new Map;class u{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,n){let o=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),o.push(`__${t}`)),i&&(o.push("_",i),o.push("_",(0,a.isVoid)(n)?"true":n.toString())),o.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 n=Object.getPrototypeOf(this);n&&(0,a.isFunction)(n.setStatusComponent)&&n.setStatusComponent(t,i);let o=l.get(this),r=null==o?void 0:o[t];r&&r.length&&r.forEach(t=>t(i))}hookStatus(t,i){let n=l.get(this);n||(n={},l.set(this,n)),n[t]||(n[t]=[]),n[t].push(i)}static isInstanceOf(t,i){return t instanceof i}constructor(){this.async=new o.Async,this.ownerWindow=window,this.__componentStatus=r.STATUSES.beforeInit,this.uid="jodit-uid-"+(0,s.uniqueUid)()}}u.STATUSES=r.STATUSES},91907:function(t,i,n){"use strict";n.d(i,{Component:function(){return o.Component},STATUSES:function(){return r.STATUSES},ViewComponent:function(){return s.ViewComponent}});var o=n(4012),r=n(78213),s=n(80480)},78213:function(t,i,n){"use strict";n.d(i,{STATUSES:function(){return o}});let o={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},80480:function(t,i,n){"use strict";n.d(i,{ViewComponent:function(){return r}});var o=n(4012);class r extends o.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,n){"use strict";n.r(i),n.d(i,{ACCURACY:function(){return V},APP_VERSION:function(){return o},BASE_PATH:function(){return ep},BASE_PATH_IS_MIN:function(){return ef},BR:function(){return $},CLIPBOARD_ID:function(){return eb},COMMAND_KEYS:function(){return W},EMULATE_DBLCLICK_TIMEOUT:function(){return ei},ES:function(){return r},FAT_MODE:function(){return c},HOMEPAGE:function(){return d},INSEPARABLE_TAGS:function(){return D},INSERT_AS_HTML:function(){return en},INSERT_AS_TEXT:function(){return er},INSERT_CLEAR_HTML:function(){return eo},INSERT_ONLY_TEXT:function(){return es},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 v},IS_BLOCK:function(){return E},IS_ES_MODERN:function(){return s},IS_ES_NEXT:function(){return a},IS_IE:function(){return X},IS_INLINE:function(){return k},IS_MAC:function(){return el},IS_PROD:function(){return l},IS_TEST:function(){return u},KEY_ALIASES:function(){return eu},KEY_ALT:function(){return L},KEY_BACKSPACE:function(){return B},KEY_DELETE:function(){return H},KEY_DOWN:function(){return O},KEY_ENTER:function(){return j},KEY_ESC:function(){return P},KEY_F3:function(){return U},KEY_LEFT:function(){return M},KEY_META:function(){return I},KEY_RIGHT:function(){return z},KEY_SPACE:function(){return N},KEY_TAB:function(){return T},KEY_UP:function(){return R},LIST_TAGS:function(){return S},MARKER_CLASS:function(){return et},MODE_SOURCE:function(){return Y},MODE_SPLIT:function(){return J},MODE_WYSIWYG:function(){return K},NBSP_SPACE:function(){return m},NEARBY:function(){return q},NO_EMPTY_TAGS:function(){return x},PARAGRAPH:function(){return G},PASSIVE_EVENTS:function(){return ey},SAFE_COUNT_CHANGE_CALL:function(){return ea},SET_TEST:function(){return h},SOURCE_CONSUMER:function(){return ev},SPACE_REG_EXP:function(){return y},SPACE_REG_EXP_END:function(){return C},SPACE_REG_EXP_START:function(){return _},TEMP_ATTR:function(){return em},TEXT_HTML:function(){return Q},TEXT_PLAIN:function(){return Z},TEXT_RTF:function(){return ee},TOKENS:function(){return p},globalDocument:function(){return F},globalWindow:function(){return w},lang:function(){return eg}});let o="4.12.33",r="es2015",s=!0,a=!1,l=!0,u=!1,c=!0,d="https://xdsoft.net/jodit/pro/",h=()=>u=!0,p={},f="\uFEFF",m="\xa0",g=()=>/[\uFEFF]/g,b=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,y=()=>/[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,C=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w="u">typeof window?window:void 0,F="u">typeof document?document:void 0,E=/^(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,k=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,S=new Set(["ul","ol"]),A=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],D=new Set([...A,"br","hr"]),x=new Set(A),I="Meta",B="Backspace",T="Tab",j="Enter",P="Escape",L="Alt",M="ArrowLeft",R="ArrowUp",z="ArrowRight",O="ArrowDown",N="Space",H="Delete",U="F3",q=5,V=10,W=[I,B,H,R,O,z,M,j,P,U,T],$="br",G="p",K=1,Y=2,J=3,X="u">typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),Z=X?"text":"text/plain",Q=X?"html":"text/html",ee=X?"rtf":"text/rtf",et="jodit-selection_marker",ei=300,en="insert_as_html",eo="insert_clear_html",er="insert_as_text",es="insert_only_text",ea=10,el=void 0!==w&&/Mac|iPod|iPhone|iPad/.test(w.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:el?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},ec=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:ed,isMin:eh}=(()=>{if("u"<typeof document)return{basePath:"",isMin:!0};let t=F.currentScript;if(t)return ec(t.src);let i=F.querySelectorAll("script[src]");return i&&i.length?ec(i[i.length-1].src):ec(w.location.href)})(),ep=ed,ef=eh,em="data-jodit-temp",eg={},eb="clipboard",ev="source-consumer",ey=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},20218:function(t,i,n){"use strict";n.d(i,{Create:function(){return l}});var o=n(82758),r=n(2748),s=n(21537),a=n(38837);class l{get doc(){return(0,s.isFunction)(this.document)?this.document():this.document}element(t,i,n){let o=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(o),i&&((0,s.isPlainObject)(i)?(0,s.attr)(o,i):n=i),n&&(0,s.asArray)(n).forEach(t=>o.appendChild((0,s.isString)(t)?this.fromHTML(t):t)),o}div(t,i,n){let o=this.element("div",i,n);return t&&(o.className=t),o}sandbox(){var t;let i=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(i);let n=null==(t=i.contentWindow)?void 0:t.document;if((0,a.assert)(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,i]}span(t,i,n){let o=this.element("span",i,n);return t&&(o.className=t),o}a(t,i,n){let o=this.element("a",i,n);return t&&(o.className=t),o}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,i){let n=this.div();n.innerHTML=t.toString();let o=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(r.Dom.safeRemove(o),i){let t=(0,s.refs)(o);Object.keys(i).forEach(n=>{let o=t[n];o&&!1===i[n]&&r.Dom.hide(o)})}return o}applyCreateAttributes(t){if(this.createAttributes){let i=this.createAttributes;if(i&&i[t.tagName.toLowerCase()]){let n=i[t.tagName.toLowerCase()];(0,s.isFunction)(n)?n(t):(0,s.isPlainObject)(n)&&(0,s.attr)(t,n)}}}constructor(t,i){this.document=t,this.createAttributes=i}}},12060:function(t,i,n){"use strict";n.d(i,{Create:function(){return o.Create}});var o=n(20218)},45219:function(t,i,n){"use strict";n.d(i,{autobind:function(){return r}});var o=n(23282);function r(t,i,n){if(!(0,o.isFunction)(n.value))throw TypeError(`@autobind can only be applied to methods, but "${i}" is not a function`);let r=n.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,n){"use strict";n.d(i,{cache:function(){return u},cacheHTML:function(){return c},cached:function(){return l}});var o=n(78213),r=n(2748),s=n(27613),a=n(82760);function l(t,i){let n=Object.getOwnPropertyDescriptor(t,i);return!n||(0,s.isFunction)(n.get)?null:n.value}function u(t,i,n){let o=n.get;if(!o)throw(0,a.error)("Getter property descriptor expected");n.get=function(){let t=o.call(this);return t&&!0===t.noCache||Object.defineProperty(this,i,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:t}),t}}function c(t,i,n){let l=n.value;if(!(0,s.isFunction)(l))throw(0,a.error)("Handler must be a Function");let u=!0,c=new WeakMap;n.value=function(...t){var i;if(u&&c.has(this.constructor))return null==(i=c.get(this.constructor))?void 0:i.cloneNode(!0);let n=l.apply(this,t);return u&&r.Dom.isElement(n)&&c.set(this.constructor,n),u?n.cloneNode(!0):n},t.hookStatus(o.STATUSES.ready,t=>{u=!!((0,s.isViewObject)(t)?t:t.jodit).options.cache})}},87325:function(t,i,n){"use strict";n.d(i,{component:function(){return a},getComponentClass:function(){return l}});var o=n(82758),r=n(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 n=(0,r.getClassName)(t.prototype);if(s.has(n)&&!o.IS_PROD)throw Error(`Component with name "${n}" is already registered`);return s.set(n,i),i}function l(t){return s.get(t)}},81577:function(t,i,n){"use strict";n.d(i,{debounce:function(){return l},throttle:function(){return u}});var o=n(91907),r=n(27613),s=n(38837),a=n(89890);function l(t,i=!1,n="debounce"){return(l,u)=>{let c=l[u];if(!(0,r.isFunction)(c))throw(0,a.error)("Handler must be a Function");return l.hookStatus(o.STATUSES.ready,o=>{let{async:a}=o;(0,s.assert)(null!=a,`Component ${o.componentName||o.constructor.name} should have "async:IAsync" field`);let l=(0,r.isFunction)(t)?t(o):t,c=(0,r.isNumber)(l)||(0,r.isPlainObject)(l)?l:o.defaultTimeout;Object.defineProperty(o,u,{configurable:!0,value:a[n](o[u].bind(o),c,i)})}),{configurable:!0,get(){return c.bind(this)}}}}function u(t,i=!1){return l(t,i,"throttle")}},55153:function(t,i,n){"use strict";n.d(i,{derive:function(){return r}});var o=n(23282);function r(...t){return i=>{let n=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,o.isFunction)(a.value)&&!(0,o.isFunction)(n[i])&&Object.defineProperty(n,i,{enumerable:!0,configurable:!0,writable:!0,value:function(...t){return a.value.call(this,...t)}})}}}}},97357:function(t,i,n){"use strict";n.d(i,{hook:function(){return s}});var o=n(23282),r=n(89890);function s(t){return(i,n)=>{if(!(0,o.isFunction)(i[n]))throw(0,r.error)("Handler must be a Function");i.hookStatus(t,t=>{t[n].call(t)})}}},78927:function(t,i,n){"use strict";n.d(i,{idle:function(){return a}});var o=n(91907),r=n(23282),s=n(89890);function a(){return(t,i)=>{if(!(0,r.isFunction)(t[i]))throw(0,s.error)("Handler must be a Function");t.hookStatus(o.STATUSES.ready,t=>{let{async:n}=t,o=t[i];t[i]=(...i)=>n.requestIdleCallback(o.bind(t,...i))})}}},65478:function(t,i,n){"use strict";n.r(i),n.d(i,{autobind:function(){return o.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 u.hook},idle:function(){return c.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 o=n(45219),r=n(33433),s=n(87325),a=n(81577),l=n(55153),u=n(97357),c=n(78927),d=n(31589),h=n(53213),p=n(13525),f=n(37133)},31589:function(t,i,n){"use strict";n.d(i,{nonenumerable:function(){return o}});let o=(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,n){"use strict";n.d(i,{persistent:function(){return s}});var o=n(78213),r=n(39955);function s(t,i){t.hookStatus(o.STATUSES.ready,t=>{let n=(0,r.isViewObject)(t)?t:t.jodit,o=`${n.options.namespace}${t.componentName}_prop_${i}`,s=t[i];Object.defineProperty(t,i,{get(){var t;return null!=(t=n.storage.get(o))?t:s},set(t){n.storage.set(o,t)}})})}},13525:function(t,i,n){"use strict";n.d(i,{wait:function(){return a}});var o=n(78213),r=n(23282),s=n(89890);function a(t){return(i,n)=>{let a=i[n];if(!(0,r.isFunction)(a))throw(0,s.error)("Handler must be a Function");i.hookStatus(o.STATUSES.ready,i=>{let{async:o}=i,r=i[n],s=0;Object.defineProperty(i,n,{configurable:!0,value:function n(...a){o.clearTimeout(s),t(i)?r.apply(i,a):s=o.setTimeout(()=>n(...a),10)}})})}}},37133:function(t,i,n){"use strict";n.d(i,{watch:function(){return h}});var o=n(78213),r=n(73026),s=n(46559),a=n(23282),l=n(72430),u=n(39955),c=n(89890),d=n(37790);function h(t,i){return(n,h)=>{var p;if(!(0,a.isFunction)(n[h]))throw(0,c.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 o=(0,u.isViewObject)(i)?i:i.jodit,c=(t,...n)=>{if(!i.isInDestruct)return i[h](t,...n)};f||(c=i.async.microDebounce(c,!0)),(0,s.splitArray)(t).forEach(t=>{if(/:/.test(t)){let[n,r]=t.split(":"),s=m;n.length&&(s=i.get(n)),(0,a.isFunction)(s)&&(s=s(i)),o.events.on(s||i,r,c),s||o.events.on(r,c),i.hookStatus("beforeDestruct",()=>{o.events.off(s||i,r,c).off(r,c)});return}let s=t.split("."),[u]=s,h=s.slice(1),p=i[u];(0,l.isPlainObject)(p)&&(0,r.observable)(p).on(`change.${h.join(".")}`,c);let f=(0,d.getPropertyDescriptor)(n,u);Object.defineProperty(i,u,{configurable:!0,set(t){let n=p;n!==t&&(p=t,f&&f.set&&f.set.call(i,t),(0,l.isPlainObject)(p)&&(p=(0,r.observable)(p)).on(`change.${h.join(".")}`,c),c(u,n,p))},get(){return f&&f.get?f.get.call(i):p}})})};(0,a.isFunction)(n.hookStatus)?n.hookStatus(o.STATUSES.ready,g):g(n)}}},2748:function(t,i,n){"use strict";n.d(i,{Dom:function(){return y}});var o=n(82758),r=n(4510),s=n(68345),a=n(23282),l=n(58487),u=n(42320),c=n(70799),d=n(86068),h=n(49055),p=n(38837),f=n(29960),m=n(41180),g=n(86583),b=n(89890),v=n(37790);class y{static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapNextInline(t,i,n){let o,r=t;n.s.save();let s=!1;do s=!1,(o=r.nextSibling)&&!y.isBlock(o)&&!y.isTag(o,"br")&&(s=!0,r=o);while(s);return y.__wrapElements(i,n,t,r)}static __wrapElements(t,i,n,o){let r=(0,c.isString)(t)?i.createInside.element(t):t;n.parentNode&&n.parentNode.insertBefore(r,n);let s=n;for(;s&&(s=n.nextSibling,r.appendChild(n),n!==o&&s);)n=s;return i.s.restore(),r}static wrapInline(t,i,n){let o,r=t,s=t;n.s.save();let a=!1;do a=!1,(o=r.previousSibling)&&!y.isBlock(o)&&(a=!0,r=o);while(a);do a=!1,(o=s.nextSibling)&&!y.isBlock(o)&&(a=!0,s=o);while(a);return y.__wrapElements(i,n,r,s)}static wrap(t,i,n){let o=(0,c.isString)(i)?n.element(i):i;if(y.isNode(t)){if(!t.parentNode)throw(0,b.error)("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{let i=t.extractContents();t.insertNode(o),o.appendChild(i)}return o}static unwrap(t){let i=t.parentNode;if(i){for(;t.firstChild;)i.insertBefore(t.firstChild,t);y.safeRemove(t)}}static between(t,i,n){let o=t;for(;o&&o!==i&&!(t!==o&&n(o));){let t=o.firstChild||o.nextSibling;if(!t){for(;o&&!o.nextSibling;)o=o.parentNode;t=null==o?void 0:o.nextSibling}o=t}}static replace(t,i,n,o=!1,s=!1){let a;if((0,l.isHTML)(i)&&((0,p.assert)(n,"Need create instance for new tag"),i=n.fromHTML(i)),(0,c.isString)(i)?((0,p.assert)(n,"Need create instance for new tag"),a=n.element(i)):a=i,!s)for(;t.firstChild;)a.appendChild(t.firstChild);return o&&y.isElement(t)&&y.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 y.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(o.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return y.each(t,t=>y.isEmptyTextNode(t))}static isContentEditable(t,i){return y.isNode(t)&&!y.closest(t,t=>y.isElement(t)&&"false"===t.getAttribute("contenteditable"),i)}static isEmpty(t,i=o.NO_EMPTY_TAGS){let n;if(!t)return!0;n=(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 y.isText(t)?r(t):!(y.isElement(t)&&n(t))&&y.each(t,t=>{if(y.isText(t)&&!r(t)||y.isElement(t)&&n(t))return!1})}static isNode(t){return!!(t&&(0,c.isString)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,a.isFunction)(t.appendChild))}static isCell(t){return y.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return y.isTag(t,o.LIST_TAGS)}static isLeaf(t){return y.isTag(t,"li")}static isImage(t){return y.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,d.isVoid)(t)&&"object"==typeof t&&y.isNode(t)&&o.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!!y.isNode(t)&&t.nodeType===Node.ELEMENT_NODE}static isFragment(t){var i;return!!y.isNode(t)&&!!((null==(i=t.ownerDocument)?void 0:i.defaultView)&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){var i;if(!y.isNode(t))return!1;let n=null==(i=t.ownerDocument)?void 0:i.defaultView;return t instanceof(n?n.HTMLElement:HTMLElement)}static isInlineBlock(t){return y.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)&&y.isHTMLElement(t)&&y.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static first(t,i){let n=null==t?void 0:t.firstChild;if(!n)return null;do{if(i(n))return n;let o=n.firstChild;if(o||(o=n.nextSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.nextSibling)&&n.parentNode!==t);o=null==n?void 0:n.nextSibling}n=o}while(n);return null}static last(t,i){let n=null==t?void 0:t.lastChild;if(!n)return null;do{if(i(n))return n;let o=n.lastChild;if(o||(o=n.previousSibling),!o&&n.parentNode!==t){do n=n.parentNode;while(n&&!(null==n?void 0:n.previousSibling)&&n.parentNode!==t);o=null==n?void 0:n.previousSibling}n=o}while(n);return null}static prev(t,i,n,o=!0){return y.find(t,i,n,!1,o)}static next(t,i,n,o=!0){return y.find(t,i,n,!0,o)}static prevWithClass(t,i){return y.prev(t,t=>y.isElement(t)&&t.classList.contains(i),t.parentNode)}static nextWithClass(t,i){return y.next(t,t=>y.isElement(t)&&t.classList.contains(i),t.parentNode)}static find(t,i,n,o=!0,r=!0){let s=this.nextGen(t,n,o,r),a=s.next();for(;!a.done;){if(i(a.value))return a.value;a=s.next()}return null}static*nextGen(t,i,n=!0,o=!0){let r=[],s=t;do{let i=n?s.nextSibling:s.previousSibling;for(;i;)r.unshift(i),i=n?i.nextSibling:i.previousSibling;yield*this.runInStack(t,r,n,o),s=s.parentNode}while(s&&s!==i);return null}static each(t,i,n=!0){let o=this.eachGen(t,n),r=o.next();for(;!r.done;){if(!1===i(r.value))return!1;r=o.next()}return!0}static eachGen(t,i=!0){return this.runInStack(t,[t],i)}static*runInStack(t,i,n,o=!0){for(;i.length;){let r=i.pop();if(o){let t=n?r.lastChild:r.firstChild;for(;t;)i.push(t),t=n?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,i,n,o="nextSibling",r="firstChild"){let s=t;do{if(i(s))return s||null;if(r&&s&&s[r]){let t=y.findWithCurrent(s[r],i,s,o,r);if(t)return t}for(;s&&!s[o]&&s!==n;)s=s.parentNode;s&&s[o]&&s!==n&&(s=s[o])}while(s&&s!==n);return null}static findSibling(t,i=!0,n=t=>!y.isEmptyTextNode(t)){let o=y.sibling(t,i);for(;o&&!n(o);)o=y.sibling(o,i);return o&&n(o)?o:null}static findNotEmptySibling(t,i){return y.findSibling(t,i,t=>{var i;return!y.isEmptyTextNode(t)&&!!(!y.isText(t)||(null==(i=t.nodeValue)?void 0:i.length)&&(0,h.trim)(t.nodeValue))})}static findNotEmptyNeighbor(t,i,n){return(0,v.call)(i?y.prev:y.next,t,t=>!!(t&&(!(y.isText(t)||y.isComment(t))||(0,h.trim)((null==t?void 0:t.nodeValue)||"").length)),n)}static sibling(t,i){return i?t.previousSibling:t.nextSibling}static up(t,i,n,o=!1){let r=t;if(!r)return null;do{if(i(r))return r;if(r===n||!r.parentNode)break;r=r.parentNode}while(r&&r!==n);return r===n&&o&&i(r)?r:null}static closest(t,i,n){let o,r=t=>t.toLowerCase();if((0,a.isFunction)(i))o=i;else if((0,s.isArray)(i)||(0,u.isSet)(i)){let t=(0,u.isSet)(i)?i:new Set(i.map(r));o=i=>!!(i&&t.has(r(i.nodeName)))}else o=t=>!!(t&&r(i)===r(t.nodeName));return y.up(t,o,n)}static furthest(t,i,n){let o=null,r=null==t?void 0:t.parentElement;for(;r&&r!==n;)i(r)&&(o=r),r=null==r?void 0:r.parentElement;return o}static appendChildFirst(t,i){let n=t.firstChild;n?n!==i&&t.insertBefore(i,n):t.appendChild(i)}static after(t,i){let{parentNode:n}=t;n&&(n.lastChild===t?n.appendChild(i):n.insertBefore(i,t.nextSibling))}static before(t,i){let{parentNode:n}=t;n&&n.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,n=!1,s=()=>!0){let a=(t.ownerDocument||o.globalDocument).createDocumentFragment();(0,r.toArray)(t.childNodes).filter(t=>!!s(t)||(y.safeRemove(t),!1)).forEach(t=>{a.appendChild(t)}),n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a)}static isOrContains(t,i,n=!1){return t===i?!n:!!(i&&t&&this.up(i,i=>i===t,t,!0))}static safeRemove(...t){t.forEach(t=>y.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t))}static safeInsertNode(t,i){t.collapsed||t.deleteContents();let n=y.isFragment(i)?i.lastChild:i;t.startContainer===t.endContainer&&t.collapsed&&y.isTag(t.startContainer,o.INSEPARABLE_TAGS)?y.after(t.startContainer,i):(t.insertNode(i),n&&t.setStartBefore(n)),t.collapse(!0),[i.nextSibling,i.previousSibling].forEach(t=>y.isText(t)&&!t.nodeValue&&y.safeRemove(t))}static hide(t){t&&((0,g.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;let i=(0,g.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=i||"")}static isTag(t,i){if(!this.isElement(t))return!1;let n=t.tagName.toLowerCase(),o=t.tagName.toUpperCase();if(i instanceof Set)return i.has(n)||i.has(o);if(Array.isArray(i))throw TypeError("Dom.isTag does not support array");return n===i||o===i}static markTemporary(t,i){return i&&(0,f.attr)(t,i),(0,f.attr)(t,o.TEMP_ATTR,!0),t}static isTemporary(t){return!!y.isElement(t)&&(y.isMarker(t)||"true"===(0,f.attr)(t,o.TEMP_ATTR))}static isMarker(t){return y.isNode(t)&&y.isTag(t,"span")&&t.hasAttribute("data-"+o.MARKER_CLASS)}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,r.toArray)(t.querySelectorAll(`[${o.TEMP_ATTR}]`))}constructor(){throw Error("Dom is static module")}}},22732:function(t,i,n){"use strict";n.d(i,{Dom:function(){return o.Dom},LazyWalker:function(){return r.LazyWalker}});var o=n(2748),r=n(70071)},70071:function(t,i,n){"use strict";n.d(i,{LazyWalker:function(){return a}});var o=n(45219),r=n(2748),s=n(72757);class a extends s.Eventify{setWork(t){return this.isWorked&&this.break(),this.workNodes=r.Dom.eachGen(t,!this.options.reverse),this.isFinished=!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(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}destruct(){super.destruct(),this.stop()}__workPerform(){var t;if(this.workNodes){this.isWorked=!0;let i=0,n=null!=(t=this.options.timeoutChunkSize)?t:50;for(;!this.isFinished&&i<=n;){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.idleId=0,this.__schedulerController=null}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"__workPerform",null)},98220:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return d}});var o=n(82758),r=n(46559),s=n(68345),a=n(23282),l=n(70799),u=n(89890),c=n(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 n=t.split("."),o=n[1]||c.defaultNameSpace;i.call(this,n[0],o)})}__getStore(t){if(!t)throw(0,u.error)("Need subject");if(void 0===t[this.__key]){let i=new c.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]&&Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}__triggerNativeEvent(t,i){let n=this.__doc.createEvent("HTMLEvents");(0,l.isString)(i)?n.initEvent(i,!0,!0):(n.initEvent(i.type,i.bubbles,i.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(t=>{Object.defineProperty(n,t,{value:i[t],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:i,enumerable:!0})),t.dispatchEvent(n)}get current(){return this.currents[this.currents.length-1]}on(t,i,n,r){let c,d,p,f;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(c=this,d=t,p=i,f=n):(c=t,d=i,p=n,f=r),!((0,l.isString)(d)||(0,l.isStringArray)(d))||0===d.length)throw(0,u.error)("Need events names");if(!(0,a.isFunction)(p))throw(0,u.error)("Need event handler");if((0,s.isArray)(c))return c.forEach(t=>{this.on(t,d,p,f)}),this;let m=c,g=this.__getStore(m),b=this,v=function(t,...i){if(!b.isMuted(t))return p&&p.call(this,...i)};return h(m)&&(v=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 n,r;if(0===t.length)throw(0,u.error)("Need event name");if(!1===g.indexOf(t,i,p)){let s={event:t,originalCallback:p,syntheticCallback:v};if(g.set(t,i,s,null==f?void 0:f.top),h(m)){let i=o.PASSIVE_EVENTS.has(t)?{passive:!0,capture:null!=(n=null==f?void 0:f.capture)&&n}:null!=(r=null==f?void 0:f.capture)&&r;v.options=i,m.addEventListener(t,v,i),this.__memoryDOMSubjectToHandler(m,v)}}}),this}__memoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap.get(t)||new Set;n.add(i),this.__domEventsMap.set(t,n)}__unmemoryDOMSubjectToHandler(t,i){let n=this.__domEventsMap,o=n.get(t)||new Set;o.delete(i),o.size?n.set(t,o):n.delete(t)}one(t,i,n,o){let r,s,a,u;(0,l.isString)(t)||(0,l.isStringArray)(t)?(r=this,s=t,a=i,u=n):(r=t,s=i,a=n,u=o);let c=(...t)=>(this.off(r,s,c),a(...t));return this.on(r,s,c,u),this}off(t,i,n){let o,r,u;if((0,l.isString)(t)||(0,l.isStringArray)(t)?(o=this,r=t,u=i):(o=t,r=i,u=n),(0,s.isArray)(o))return o.forEach(t=>{this.off(t,r,u)}),this;let d=o,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 n=p.get(t,i);if(n&&n.length)if((0,a.isFunction)(u)){let o=p.indexOf(t,i,u);!1!==o&&(f(n[o]),n.splice(o,1),n.length||p.clearEvents(i,t))}else n.forEach(f),n.length=0,p.clearEvents(i,t)};return this.__eachEvent(r,(t,i)=>{i===c.defaultNameSpace?p.namespaces().forEach(i=>{m(t,i)}):m(t,i)}),p.isEmpty()&&this.__removeStoreFromSubject(d),this}stopPropagation(t,i){let n=(0,l.isString)(t)?this:t,o=(0,l.isString)(t)?t:i;if("string"!=typeof o)throw(0,u.error)("Need event names");let r=this.__getStore(n);this.__eachEvent(o,(t,i)=>{let o=r.get(t,i);o&&this.__stopped.push(o),i===c.defaultNameSpace&&r.namespaces(!0).forEach(i=>this.stopPropagation(n,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,...n){let o,r,s=(0,l.isString)(t)?this:t,a=(0,l.isString)(t)?t:i,d=(0,l.isString)(t)?[i,...n]:n;if(!h(s)&&!(0,l.isString)(a))throw(0,u.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 n=p.get(t,i);if(n)try{[...n].every(i=>!this.__isStopped(n)&&(this.currents.push(t),r=i.syntheticCallback.call(s,t,...d),this.currents.pop(),void 0!==r&&(o=r),!0))}finally{this.__removeStop(n)}i!==c.defaultNameSpace||h(s)||p.namespaces().filter(t=>t!==i).forEach(i=>{let n=this.fire.apply(this,[s,t+"."+i,...d]);void 0!==n&&(o=n)})}}),o}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=o.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,n){"use strict";n.d(i,{Eventify:function(){return o}});class o{on(t,i){var n;return this.__map.has(t)||this.__map.set(t,new Set),null==(n=this.__map.get(t))||n.add(i),this}off(t,i){var n;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.delete(i)),this}destruct(){this.__map.clear()}emit(t,...i){var n;let o;return this.__map.has(t)&&(null==(n=this.__map.get(t))||n.forEach(t=>{o=t(...i)})),o}constructor(){this.__map=new Map}}},57012:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return o}});let o=new(n(98220)).EventEmitter},3827:function(t,i,n){"use strict";n.d(i,{EventEmitter:function(){return o.EventEmitter},EventHandlersStore:function(){return a.EventHandlersStore},Eventify:function(){return r.Eventify},defaultNameSpace:function(){return a.defaultNameSpace},observable:function(){return s.observable}});var o=n(98220),r=n(72757),s=n(73026),a=n(15738)},73026:function(t,i,n){"use strict";n.d(i,{observable:function(){return c}});var o=n(68345),r=n(59292),s=n(72430),a=n(37790);let l=Symbol("observable-object");function u(t){return void 0!==t[l]}function c(t){if(u(t))return t;let i={},n={},c=(i,r)=>((0,o.isArray)(i)?i.map(t=>c(t,r)):(n[i]||(n[i]=[]),n[i].push(r)),t),d=(r,...s)=>{if((0,o.isArray)(r))return void r.map(t=>d(t,...s));try{!i[r]&&n[r]&&(i[r]=!0,n[r].forEach(i=>i.call(t,...s)))}finally{i[r]=!1}},h=(i,n=[])=>{let o={};u(i)||(Object.defineProperty(i,l,{enumerable:!1,value:!0}),Object.keys(i).forEach(l=>{let u=n.concat(l).filter(t=>t.length);o[l]=i[l];let c=(0,a.getPropertyDescriptor)(i,l);Object.defineProperty(i,l,{set:i=>{let n=o[l];if(!(0,r.isFastEqual)(o[l],i)){d(["beforeChange",`beforeChange.${u.join(".")}`],l,i),(0,s.isPlainObject)(i)&&h(i,u),c&&c.set?c.set.call(t,i):o[l]=i;let r=[];d(["change",...u.reduce((t,i)=>(r.push(i),t.push(`change.${r.join(".")}`),t),[])],u.join("."),n,(null==i?void 0:i.valueOf)?i.valueOf():i)}},get:()=>c&&c.get?c.get.call(t):o[l],enumerable:!0,configurable:!0}),(0,s.isPlainObject)(o[l])&&h(o[l],u)}),Object.defineProperty(t,"on",{value:c}))};return h(t),t}},15738:function(t,i,n){"use strict";n.d(i,{EventHandlersStore:function(){return a},defaultNameSpace:function(){return s}});var o=n(4510),r=n(38837);let s="JoditEventDefaultNamespace";class a{get(t,i){if(this.__store.has(i)){let n=this.__store.get(i);return(0,r.assert)(n,"-"),n[t]}}indexOf(t,i,n){let o=this.get(t,i);if(o){for(let t=0;t<o.length;t+=1)if(o[t].originalCallback===n)return t}return!1}namespaces(t=!1){let i=(0,o.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,n,o=!1){let r=this.__store.get(i);r||(r={},this.__store.set(i,r)),void 0===r[t]&&(r[t]=[]),o?r[t].unshift(n):r[t].push(n)}clear(){this.__store.clear()}clearEvents(t,i){let n=this.__store.get(t);n&&n[i]&&(delete n[i],Object.keys(n).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}constructor(){this.__store=new Map}}},580:function(t,i,n){"use strict";n.d(i,{eventEmitter:function(){return E},extendLang:function(){return _},getContainer:function(){return w},getPopupViewRoot:function(){return F},instances:function(){return f},modules:function(){return y},pluginSystem:function(){return v},uniqueUid:function(){return b}});var o=n(19306),r=n(70799),s=n(39955),a=n(12475),l=n(41180),u=n(80568),c=n(41876),d=n(57012),h=n(82758),p=n(22732);let f={},m=1,g=new Set;function b(){function t(){return Math.round(m+=10*(Math.random()+1)).toString(16)}let i=t();for(;g.has(i);)i=t();return g.add(i),i}let v=new c.PluginSystem({getContainer:w}),y={},_=t=>{Object.keys(t).forEach(i=>{h.lang[i]?Object.assign(h.lang[i],t[i]):h.lang[i]=t[i]})},C=new WeakMap;function w(t,i,n="div",l=!1){let c=(0,r.isString)(i)?i:i?(0,u.getClassName)(i.prototype):"jodit-utils",d=C.get(t)||{},h=c+n,f=(0,s.isViewObject)(t)?t:t.j,m=null;if(!d[h]){let i=f.c;if(m=F(f.o,f.container,t.od.body),l&&(0,o.isJoditObject)(t)&&t.od!==t.ed){i=t.createInside;let r="style"===n?t.ed.head:t.ed.body;m=(0,o.isJoditObject)(t)&&t.o.shadowRoot?t.o.shadowRoot:r}let r=i.element(n,{className:`jodit jodit-${(0,a.kebabCase)(c)}-container jodit-box`});r.classList.add(`jodit_theme_${f.o.theme||"default"}`),m.appendChild(r),d[h]=r,t.hookStatus("beforeDestruct",()=>{f.events.off(r),p.Dom.safeRemove(r),delete d[h],Object.keys(d).length&&C.delete(t)}),C.set(t,d),f.events.fire("getContainer",r)}return d[h].classList.remove("jodit_theme_default","jodit_theme_dark"),d[h].classList.add(`jodit_theme_${f.o.theme||"default"}`),d[h]}function F(t,i,n){var o,r,s;return null!=(s=null!=(r=null!=(o=t.popupRoot)?o:t.shadowRoot)?r:p.Dom.closest(i,t=>p.Dom.isHTMLElement(t)&&(p.Dom.isTag(t,"dialog")||["fixed","absolute"].includes((0,l.css)(t,"position"))),n))?s:n}let E=d.eventEmitter},29999:function(t,i,n){"use strict";n.d(i,{asArray:function(){return r}});var o=n(68345);let r=t=>(0,o.isArray)(t)?t:[t]},76855:function(t,i,n){"use strict";n.d(i,{asArray:function(){return o.asArray},splitArray:function(){return r.splitArray},toArray:function(){return s.toArray}});var o=n(29999),r=n(46559),s=n(4510)},46559:function(t,i,n){"use strict";function o(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}n.d(i,{splitArray:function(){return o}})},4510:function(t,i,n){"use strict";n.d(i,{toArray:function(){return s}});var o=n(70722),r=n(58844);let s=function(...t){var i;return((0,o.isNativeFunction)(Array.from)?Array.from:null!=(i=(0,r.reset)("Array.from"))?i:Array.from).apply(Array,t)}},91898:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return o.clearTimeout},setTimeout:function(){return o.setTimeout}});var o=n(13252)},13252:function(t,i,n){"use strict";n.d(i,{clearTimeout:function(){return s},setTimeout:function(){return r}});var o=n(82758);function r(t,i,...n){return i?o.globalWindow.setTimeout(t,i,...n):(t.call(null,...n),0)}function s(t){o.globalWindow.clearTimeout(t)}},54765:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return r}});var o=n(82758);function r(){let t=!0;try{let i=o.globalDocument.createElement("input");i.type="color",i.value="!",t="color"===i.type&&"!"!==i.value}catch(i){t=!1}return t}},27613:function(t,i,n){"use strict";n.d(i,{hasBrowserColorPicker:function(){return o.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 u.isFunction},isHTML:function(){return c.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 v.isNumber},isNumeric:function(){return y.isNumeric},isPlainObject:function(){return _.isPlainObject},isPromise:function(){return C.isPromise},isSet:function(){return w.isSet},isString:function(){return F.isString},isStringArray:function(){return F.isStringArray},isURL:function(){return E.isURL},isValidName:function(){return k.isValidName},isViewObject:function(){return S.isViewObject},isVoid:function(){return A.isVoid},isWindow:function(){return D.isWindow}});var o=n(54765),r=n(12045),s=n(68345),a=n(87612),l=n(59292),u=n(23282),c=n(58487),d=n(29673),h=n(60132),p=n(72913),f=n(19306),m=n(45603),g=n(78116),b=n(70722),v=n(84767),y=n(29807),_=n(72430),C=n(14773),w=n(42320),F=n(70799),E=n(26049),k=n(37508),S=n(39955),A=n(86068),D=n(52742)},12045:function(t,i,n){"use strict";function o(t){return!!t&&t instanceof DOMException&&"AbortError"===t.name}n.d(i,{isAbortError:function(){return o}})},68345:function(t,i,n){"use strict";function o(t){return Array.isArray(t)}n.d(i,{isArray:function(){return o}})},87612:function(t,i,n){"use strict";function o(t){return"boolean"==typeof t}n.d(i,{isBoolean:function(){return o}})},59292:function(t,i,n){"use strict";n.d(i,{isEqual:function(){return r},isFastEqual:function(){return s}});var o=n(67462);function r(t,i){return t===i||(0,o.stringify)(t)===(0,o.stringify)(i)}function s(t,i){return t===i}},23282:function(t,i,n){"use strict";function o(t){return"function"==typeof t}n.d(i,{isFunction:function(){return o}})},29673:function(t,i,n){"use strict";function o(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/)}n.d(i,{isHtmlFromWord:function(){return o}})},58487:function(t,i,n){"use strict";n.d(i,{isHTML:function(){return r}});var o=n(70799);let r=t=>(0,o.isString)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},60132:function(t,i,n){"use strict";n.d(i,{hasContainer:function(){return u},isDestructable:function(){return l},isInitable:function(){return a}});var o=n(2748),r=n(23282),s=n(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 u(t){return!(0,s.isVoid)(t)&&o.Dom.isElement(t.container)}},72913:function(t,i,n){"use strict";n.d(i,{isInt:function(){return s}});var o=n(29807),r=n(70799);function s(t){return(0,r.isString)(t)&&(0,o.isNumeric)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},19306:function(t,i,n){"use strict";n.d(i,{isJoditObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&("u">typeof Jodit&&t instanceof Jodit||t.isJodit))}},45603:function(t,i,n){"use strict";n.d(i,{isLicense:function(){return r}});var o=n(70799);let r=t=>(0,o.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,n){"use strict";n.d(i,{isMarker:function(){return r}});var o=n(2748);function r(t){return o.Dom.isMarker(t)}},70722:function(t,i,n){"use strict";function o(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(String(t)))}n.d(i,{isNativeFunction:function(){return o}})},84767:function(t,i,n){"use strict";function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}n.d(i,{isNumber:function(){return o}})},29807:function(t,i,n){"use strict";n.d(i,{isNumeric:function(){return r}});var o=n(70799);function r(t){if((0,o.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,n){"use strict";n.d(i,{isPlainObject:function(){return r}});var o=n(52742);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,o.isWindow)(t))&&!(t.constructor&&!({}).hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},14773:function(t,i,n){"use strict";function o(t){return t&&"function"==typeof t.then}n.d(i,{isPromise:function(){return o}})},42320:function(t,i,n){"use strict";n.d(i,{isSet:function(){return r}});var o=n(23282);function r(t){return!!t&&(0,o.isFunction)(t.has)&&(0,o.isFunction)(t.add)&&(0,o.isFunction)(t.delete)}},70799:function(t,i,n){"use strict";n.d(i,{isString:function(){return r},isStringArray:function(){return s}});var o=n(68345);function r(t){return"string"==typeof t}function s(t){return(0,o.isArray)(t)&&r(t[0])}},26049:function(t,i,n){"use strict";n.d(i,{isURL:function(){return r}});var o=n(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=o.globalDocument.createElement("a");return i.href=t,!!i.hostname}},37508:function(t,i,n){"use strict";function o(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}n.d(i,{isValidName:function(){return o}})},39955:function(t,i,n){"use strict";n.d(i,{isViewObject:function(){return r}});var o=n(23282);function r(t){return!!(t&&t instanceof Object&&(0,o.isFunction)(t.constructor)&&t.isView)}},86068:function(t,i,n){"use strict";function o(t){return null==t}n.d(i,{isVoid:function(){return o}})},52742:function(t,i,n){"use strict";function o(t){return null!=t&&t===t.window}n.d(i,{isWindow:function(){return o}})},35278:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o}});let o=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 n=parseInt(i[2],10),o=parseInt(i[3],10),r=(parseInt(i[4],10)|o<<8|n<<16).toString(16).toUpperCase();for(;r.length<6;)r="0"+r;return i[1]+"#"+r}},58149:function(t,i,n){"use strict";n.d(i,{colorToHex:function(){return o.colorToHex}});var o=n(35278)},32574:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return u}});var o=n(82758),r=n(2748),s=n(49055),a=n(76078);function l(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,n)=>{switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(i)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(i)).toFixed(0)+"px"}return t})}function u(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);let i=o.globalDocument.createElement("iframe");i.style.display="none",o.globalDocument.body.appendChild(i);let n="";try{let u=i.contentDocument||(i.contentWindow?i.contentWindow.document:null);if(u){u.open(),u.write(t),u.close(),r.Dom.each(u.body,t=>{r.Dom.isElement(t)&&/mso-list:\s*ignore/i.test(t.getAttribute("style")||"")&&r.Dom.safeRemove(t)});try{for(let t=0;t<u.styleSheets.length;t+=1){let i=u.styleSheets[t].cssRules;for(let t=0;t<i.length;t+=1)""!==i[t].selectorText&&(0,a.$$)(i[t].selectorText,u.body).forEach(n=>{n.style.cssText=l(i[t].style.cssText+";"+n.style.cssText)})}}catch(t){if(!o.IS_PROD)throw t}r.Dom.each(u.body,t=>{if(r.Dom.isElement(t)){let i=t.getAttribute("style");i&&(t.style.cssText=l(i)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),n=u.firstChild?(0,s.trim)(u.body.innerHTML):""}}catch(t){}finally{r.Dom.safeRemove(i)}return n&&(t=n),(0,s.trim)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},53212:function(t,i,n){"use strict";n.d(i,{cleanFromWord:function(){return l}});var o=n(82758),r=n(2748),s=n(4510),a=n(49055);function l(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let i="";try{let n=o.globalDocument.createElement("div");n.innerHTML=t;let a=[];n.firstChild&&r.Dom.each(n,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(t.getAttribute("style")||"")){a.push(t);break}(0,s.toArray)(t.attributes).forEach(i=>{-1===["src","href","rel","content"].indexOf(i.name.toLowerCase())&&t.removeAttribute(i.name)})}break;case Node.TEXT_NODE:break;default:a.push(t)}}),r.Dom.safeRemove.apply(null,a),i=n.innerHTML}catch(t){}return i&&(t=i),(t=t.split(/(\n)/).filter(a.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},53326:function(t,i,n){"use strict";n.d(i,{htmlspecialchars:function(){return r}});var o=n(82758);function r(t){let i=o.globalDocument.createElement("div");return i.textContent=t,i.innerHTML}},75275:function(t,i,n){"use strict";n.d(i,{applyStyles:function(){return o.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 u.stripTags}});var o=n(32574),r=n(53212),s=n(53326),a=n(45971),l=n(86518),u=n(91003)},45971:function(t,i,n){"use strict";function o(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}n.d(i,{nl2br:function(){return o}})},86518:function(t,i,n){"use strict";n.d(i,{safeHTML:function(){return s},sanitizeHTMLElement:function(){return u}});var o=n(2748),r=n(43555);function s(t,i){var n;if(!o.Dom.isElement(t)&&!o.Dom.isFragment(t))return;let s=null!=(n=i.removeEventAttributes)?n:i.removeOnError,a=t=>{if(o.Dom.isElement(t)&&(s&&function(t){if(!o.Dom.isElement(t))return;let i=[];for(let n=0;n<t.attributes.length;n++)t.attributes[n].name.toLowerCase().startsWith("on")&&i.push(t.attributes[n].name);for(let n of i)t.removeAttribute(n)}(t),u(t,i),i.safeLinksTarget&&"A"===t.nodeName&&"_blank"===t.getAttribute("target"))){let i=(t.getAttribute("rel")||"").split(/\s+/).filter(Boolean);i.includes("noopener")||i.push("noopener"),i.includes("noreferrer")||i.push("noreferrer"),(0,r.attr)(t,"rel",i.join(" "))}};a(t),o.Dom.each(t,a)}let a=["src","data","action","formaction","poster","background","xlink:href"],l=new Set(["iframe","frame","object","embed"]);function u(t,{safeJavaScriptLink:i,removeOnError:n}={safeJavaScriptLink:!0,removeOnError:!0}){if(!o.Dom.isElement(t))return!1;let s=!1;n&&t.hasAttribute("onerror")&&((0,r.attr)(t,"onerror",null),s=!0);let c=t.getAttribute("href");if(i&&c&&0===c.trim().indexOf("javascript")&&((0,r.attr)(t,"href",location.protocol+"//"+c),s=!0),i){t.hasAttribute("srcdoc")&&((0,r.attr)(t,"srcdoc",null),s=!0);let i=t.nodeName.toLowerCase();for(let n of a){let o=t.getAttribute(n);o&&function(t,i){let n=t.replace(/[\u0000-\u0020]+/g,"").toLowerCase();return!!(/^(?:javascript|vbscript|livescript|mocha):/.test(n)||/^data:(?:text\/html|application\/xhtml)/.test(n))||/^data:image\/svg/.test(n)&&l.has(i)}(o,i)&&((0,r.attr)(t,n,null),s=!0)}}return s}},91003:function(t,i,n){"use strict";n.d(i,{stripTags:function(){return function t(i,n=document,d=null,h=!1){let p=n.createElement("div");return(0,r.isString)(i)?p.innerHTML=i:p.appendChild(i),(0,a.$$)("*",p).forEach(i=>{let r=i.parentNode;if(!r)return;if(d&&o.Dom.isTag(i,d)){let r=i.nodeName.toLowerCase(),s=o.Dom.isTag(i,c)?`%%%jodit-single-${r}%%%`:`%%%jodit-${r}%%%${t(i.innerHTML,n,d,h)}%%%/jodit-${r}%%%`;o.Dom.before(i,n.createTextNode(s)),o.Dom.safeRemove(i);return}if(o.Dom.isTag(i,u))return void o.Dom.safeRemove(i);if(!o.Dom.isTag(i,l))return;let s=i.nextSibling;!(o.Dom.isText(s)&&/^\s/.test(s.nodeValue||""))&&s&&r.insertBefore(n.createTextNode(h?"%%%jodit-single-br%%%":" "),s)}),(0,s.trim)(p.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(t,i,n,o)=>`<${i?"/":""}${o}>`)}}});var o=n(2748),r=n(70799),s=n(49055),a=n(43555);let l=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),u=new Set(["script","style"]),c=new Set(["br","hr","input"])},21537:function(t,i,n){"use strict";n.r(i),n.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 u.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 o.asArray},assert:function(){return h.assert},attr:function(){return h.attr},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},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 c.getContentWidth},getDataTransfer:function(){return h.getDataTransfer},getFixedPositionOffset:function(){return c.getFixedPositionOffset},getPropertyDescriptor:function(){return h.getPropertyDescriptor},getScrollParent:function(){return c.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 c.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 u.normalizeColor},normalizeCssNumericValue:function(){return u.normalizeCssNumericValue},normalizeCssValue:function(){return u.normalizeCssValue},normalizeKeyAliases:function(){return u.normalizeKeyAliases},normalizeLicense:function(){return u.normalizeLicense},normalizePath:function(){return u.normalizePath},normalizeRelativePath:function(){return u.normalizeRelativePath},normalizeSize:function(){return u.normalizeSize},normalizeUrl:function(){return u.normalizeUrl},offset:function(){return c.offset},options:function(){return h.options},parseQuery:function(){return h.parseQuery},position:function(){return c.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 c.size},splitArray:function(){return o.splitArray},sprintf:function(){return d.sprintf},stringify:function(){return d.stringify},stripTags:function(){return l.stripTags},toArray:function(){return o.toArray},trim:function(){return d.trim},trimChars:function(){return d.trimChars},trimInv:function(){return d.trimInv},ucfirst:function(){return d.ucfirst}});var o=n(76855),r=n(91898),s=n(27613),a=n(58149),l=n(75275),u=n(71521),c=n(56175),d=n(59007),h=n(43555)},71521:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return r.NUMBER_FIELDS_REG},normalizeColor:function(){return o.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 u.normalizeRelativePath},normalizeSize:function(){return c.normalizeSize},normalizeUrl:function(){return d.normalizeUrl}});var o=n(21224),r=n(3760),s=n(49033),a=n(12972),l=n(9992),u=n(70091),c=n(46334),d=n(37406)},21224:function(t,i,n){"use strict";n.d(i,{normalizeColor:function(){return s}});var o=n(35278),r=n(49055);let s=t=>{let i=["#"],n=(0,o.colorToHex)(t);if(!n)return!1;if(3===(n=(n=(0,r.trim)(n.toUpperCase())).substring(1)).length){for(let t=0;t<3;t+=1)i.push(n[t]),i.push(n[t]);return i.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n}},3760:function(t,i,n){"use strict";n.d(i,{NUMBER_FIELDS_REG:function(){return l},normalizeCssNumericValue:function(){return u},normalizeCssValue:function(){return c}});var o=n(29807),r=n(86068),s=n(35278),a=n(12475);let l=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function u(t,i){return!(0,r.isVoid)(i)&&l.test(t)&&(0,o.isNumeric)(i.toString())?parseInt(i.toString(),10)+"px":i}function c(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,o.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,n){"use strict";n.d(i,{normalizeKeyAliases:function(){return s}});var o=n(82758),r=n(49055);function s(t){let i={},n={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=>o.KEY_ALIASES[t]||t).sort((t,i)=>n[t]&&!n[i]?-1:!n[t]&&n[i]?1:n[t]&&n[i]?n[t]-n[i]:t>i?1:-1).filter(t=>!i[t]&&""!==t&&(i[t]=!0)).join("+")}},12972:function(t,i,n){"use strict";n.d(i,{normalizeLicense:function(){return o}});let o=(t,i=8)=>{let n=[];for(;t.length;)n.push(t.substr(0,i)),t=t.substr(i);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")}},9992:function(t,i,n){"use strict";n.d(i,{normalizePath:function(){return r}});var o=n(49055);let r=(...t)=>t.filter(t=>(0,o.trim)(t).length).map((i,n)=>(i=i.replace(/([^:])[\\/]+/g,"$1/"),n&&(i=i.replace(/^\//,"")),n!==t.length-1&&(i=i.replace(/\/$/,"")),i)).join("/")},70091:function(t,i,n){"use strict";n.d(i,{normalizeRelativePath:function(){return o}});let o=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,n){"use strict";n.d(i,{normalizeSize:function(){return o}});let o=(t,i)=>/^[0-9]+$/.test(t.toString())?t+i:t.toString()},37406:function(t,i,n){"use strict";n.d(i,{normalizeUrl:function(){return o}});let o=(...t)=>t.filter(t=>t.length).map(t=>t.replace(/\/$/,"")).join("/").replace(/([^:])[\\/]+/g,"$1/")},44506:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.offsetWidth-parseInt(n.getPropertyValue("padding-left")||"0",10)-parseInt(n.getPropertyValue("padding-right")||"0",10)}},35224:function(t,i,n){"use strict";function o(t){var i,n;let o=null==(i=t.ownerDocument)?void 0:i.defaultView,r=t.parentElement;for(;o&&r;){if(""!==(n=o.getComputedStyle(r)).transform&&"none"!==n.transform||""!==n.perspective&&"none"!==n.perspective||""!==n.filter&&"none"!==n.filter||"transform"===n.willChange||"perspective"===n.willChange||"filter"===n.willChange||"paint"===n.contain||"layout"===n.contain||"strict"===n.contain||"content"===n.contain){let t=r.getBoundingClientRect();return{x:t.left,y:t.top}}r=r.parentElement}return{x:0,y:0}}n.d(i,{getFixedPositionOffset:function(){return o}})},16442:function(t,i,n){"use strict";n.d(i,{getScrollParent:function(){return function t(i){if(!i)return null;let n=r.Dom.isHTMLElement(i),a=n&&(0,s.css)(i,"overflowY");return n&&"visible"!==a&&"hidden"!==a&&i.scrollHeight>=i.clientHeight?i:t(i.parentNode)||o.globalDocument.scrollingElement||o.globalDocument.body}}});var o=n(82758),r=n(2748),s=n(43555)},56175:function(t,i,n){"use strict";n.d(i,{getContentWidth:function(){return o.getContentWidth},getFixedPositionOffset:function(){return r.getFixedPositionOffset},getScrollParent:function(){return s.getScrollParent},innerWidth:function(){return a.innerWidth},offset:function(){return u.offset},position:function(){return c.position},size:function(){return l.size}});var o=n(44506),r=n(35224),s=n(16442),a=n(81630),l=n(21496),u=n(81284),c=n(5700)},81630:function(t,i,n){"use strict";n.d(i,{innerWidth:function(){return o}});let o=(t,i)=>{let n=i.getComputedStyle(t);return t.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))}},21496:function(t,i,n){"use strict";n.d(i,{size:function(){return r}});var o=n(27613);function r(t){return(0,o.isString)(t)||(0,o.isArray)(t)?t.length:(0,o.isPlainObject)(t)?Object.keys(t).length:0}},81284:function(t,i,n){"use strict";n.d(i,{offset:function(){return o}});let o=(t,i,n,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 u=n.body,c=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},d=n.defaultView||n.parentWindow,h=d.pageYOffset||c.scrollTop||u.scrollTop,p=d.pageXOffset||c.scrollLeft||u.scrollLeft,f=c.clientTop||u.clientTop||0,m=c.clientLeft||u.clientLeft||0,g=i.iframe;if(!r&&i&&i.options&&i.o.iframe&&g){let{top:t,left:n}=o(g,i,i.od,!0);a=s.top+t,l=s.left+n}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,n){"use strict";n.d(i,{position:function(){return function t(i,n,r=!1){var s,a;let l=i.getBoundingClientRect(),u=l.left,c=l.top;if((0,o.isJoditObject)(n)&&n.iframe&&n.ed.body.contains(i)&&!r){let{left:i,top:o}=t(n.iframe,n,!0);u+=i,c+=o}return{left:Math.round(u),top:Math.round(c),width:Math.round(null!=(s=i.offsetWidth)?s:l.width),height:Math.round(null!=(a=i.offsetHeight)?a:l.height)}}}});var o=n(19306)},87058:function(t,i,n){"use strict";n.d(i,{camelCase:function(){return o}});let o=t=>t.replace(/([-_])(.)/g,(t,i,n)=>n.toUpperCase())},67477:function(t,i,n){"use strict";n.d(i,{fuzzySearchIndex:function(){return r}});var o=n(82758);function r(t,i,n=0,s=1){let a=0,l=0,u=-1,c=0,d=0;for(l=n;a<t.length&&l<i.length;)t[a].toLowerCase()===i[l].toLowerCase()?(a++,c++,d=0,-1===u&&(u=l)):a>0&&(d>=s&&i[l]!==o.INVISIBLE_SPACE?(a=0,u=-1,c=0,d=0,l--):(d++,c++)),l++;return a===t.length?[u,c]:[-1,0]}},56967:function(t,i,n){"use strict";n.d(i,{i18n:function(){return c},sprintf:function(){return u}});var o=n(82758),r=n(70799),s=n(36409),a=n(43555),l=n(6441);let u=(t,i)=>{if(!i||!i.length)return t;let n=/%([sd])/g,o=n.exec(t),r=t,s=0;for(;o&&void 0!==i[s];)r=r.replace(o[0],i[s].toString()),s+=1,o=n.exec(t);return r};function c(t,i,n){if(!(0,r.isString)(t))throw(0,a.error)("i18n: Need string in first argument");if(!t.length)return t;let c=!!(null==n?void 0:n.debugLanguage),d={},h=t=>i&&i.length?u(t,i):t,p=(0,a.defaultLanguage)(l.Config.defaultOptions.language,l.Config.defaultOptions.language),f=(0,a.defaultLanguage)(null==n?void 0:n.language,p),m=i=>{if(!i)return;if((0,r.isString)(i[t]))return h(i[t]);let n=t.toLowerCase();if((0,r.isString)(i[n]))return h(i[n]);let o=(0,s.ucfirst)(t);if((0,r.isString)(i[o]))return h(i[o])};void 0!==o.lang[f]?d=o.lang[f]:c||(d=void 0!==o.lang[p]?o.lang[p]:o.lang.en);let g=null==n?void 0:n.i18n;if(g&&g[f]){let t=m(g[f]);if(t)return t}return m(d)||(!c&&o.lang.en&&(0,r.isString)(o.lang.en[t])&&o.lang.en[t]?h(o.lang.en[t]):c?"{"+t+"}":(o.IS_PROD,h(t)))}},59007:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return a.CamelCaseToKebabCase},camelCase:function(){return o.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 u.trim},trimChars:function(){return u.trimChars},trimInv:function(){return u.trimInv},ucfirst:function(){return c.ucfirst}});var o=n(87058),r=n(67477),s=n(56967),a=n(12475),l=n(67462),u=n(49055),c=n(36409)},12475:function(t,i,n){"use strict";n.d(i,{CamelCaseToKebabCase:function(){return r},kebabCase:function(){return o}});let o=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,n){"use strict";function o(t,i={}){if("object"!=typeof t)return String(t);let n=new Set(i.excludeKeys),r=new WeakMap;return JSON.stringify(t,(t,i)=>{if(!n.has(t)){if("object"==typeof i&&null!=i){if(r.get(i))return"[refObject]";r.set(i,!0)}return i}},i.prettify)}n.d(i,{stringify:function(){return o}})},49055:function(t,i,n){"use strict";n.d(i,{trim:function(){return r},trimChars:function(){return s},trimInv:function(){return a}});var o=n(82758);function r(t){return t.replace((0,o.SPACE_REG_EXP_END)(),"").replace((0,o.SPACE_REG_EXP_START)(),"")}function s(t,i){return t.replace(RegExp(`[${i}]+$`),"").replace(RegExp(`^[${i}]+`),"")}function a(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,o.INVISIBLE_SPACE_REG_EXP_START)(),"")}},36409:function(t,i,n){"use strict";function o(t){return t.length?t[0].toUpperCase()+t.substring(1):""}n.d(i,{ucfirst:function(){return o}})},25726:function(t,i,n){"use strict";n.d(i,{alignElement:function(){return l},clearAlign:function(){return a},hAlignElement:function(){return s}});var o=n(22732),r=n(41180);function s(t,i){i&&"normal"!==i?"center"!==i?((0,r.css)(t,"float",i),(0,r.clearCenterAlign)(t)):(0,r.css)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.css)(t,"float")&&-1!==["right","left"].indexOf((0,r.css)(t,"float").toString().toLowerCase())&&(0,r.css)(t,"float",""),(0,r.clearCenterAlign)(t))}function a(t){o.Dom.each(t,t=>{o.Dom.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))})}function l(t,i){if(o.Dom.isNode(i)&&o.Dom.isElement(i))switch(a(i),t.toLowerCase()){case"justifyfull":i.style.textAlign="justify";break;case"justifyright":i.style.textAlign="right";break;case"justifyleft":i.style.textAlign="left";break;case"justifycenter":i.style.textAlign="center"}}},63799:function(t,i,n){"use strict";n.d(i,{alreadyLoadedList:function(){return s},appendScriptAsync:function(){return l},appendStyleAsync:function(){return u},loadNext:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?l(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}},loadNextStyle:function(){return function t(i,n,r=0){return(0,o.isString)(n[r])?u(i,n[r]).then(()=>t(i,n,r+1)):Promise.resolve()}}});var o=n(70799),r=n(66292);let s=new Map,a=t=>(i,n)=>{if(s.has(n))return s.get(n);let o=t(i,n);return s.set(n,o),o},l=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:(0,r.completeUrl)(i)});t.e.one(s,"error",o).one(s,"load",n),t.od.body.appendChild(s)})),u=a((t,i)=>t.async.promise((n,o)=>{if(t.isInDestruct)return o();let s=t.c.element("link");s.rel="stylesheet",s.media="all",s.crossOrigin="anonymous",t.isInDestruct||t.e.on(s,"load",()=>n(s)).on(s,"error",o),s.href=(0,r.completeUrl)(i),t.o.shadowRoot?t.o.shadowRoot.appendChild(s):t.od.body.appendChild(s)}))},38837:function(t,i,n){"use strict";n.d(i,{assert:function(){return r}});class o extends Error{constructor(t){super(t),this.name="AssertionError"}}function r(t,i){if(!t)throw new o(`Assertion failed: ${i}`)}},29960:function(t,i,n){"use strict";n.d(i,{attr:function(){return function t(i,n,u){if(!i||!(0,o.isFunction)(i.getAttribute))return null;if(!(0,s.isString)(n))return Object.keys(n).forEach(o=>{let s=n[o];(0,r.isPlainObject)(s)&&"style"===o?(0,l.css)(i,s):("className"===o&&(o="class"),t(i,o,s))}),null;let c=(0,a.CamelCaseToKebabCase)(n);if(/^-/.test(c)){let n=t(i,`data${c}`);if(n)return n;c=c.substr(1)}if(void 0!==u)if(null==u)i.hasAttribute(c)&&i.removeAttribute(c);else{let t=u.toString();return"IMG"===i.nodeName&&("width"===c||"height"===c)&&(t=t.replace("px","")),i.setAttribute(c,t),t}return i.getAttribute(c)}}});var o=n(23282),r=n(72430),s=n(70799),a=n(12475),l=n(41180)},97639:function(t,i,n){"use strict";n.d(i,{browser:function(){return o}});let o=t=>{let i=navigator.userAgent.toLowerCase(),n=/(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?n[2]:"webkit"===t?"chrome"===n[1]||"webkit"===n[1]:"ff"===t?"firefox"===n[1]:"msie"===t?"trident"===n[1]||"msie"===n[1]:n[1]===t}},44710:function(t,i,n){"use strict";n.d(i,{buildQuery:function(){return r}});var o=n(72430);let r=(t,i)=>{let n=[],s=encodeURIComponent;for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)){let l=i?i+"["+a+"]":a,u=t[a];n.push((0,o.isPlainObject)(u)?r(u,l):s(l)+"="+s(u))}return n.join("&")}},66292:function(t,i,n){"use strict";n.d(i,{completeUrl:function(){return r}});var o=n(82758);let r=t=>("file:"===o.globalWindow.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},68934:function(t,i,n){"use strict";n.d(i,{ConfigDeepFlatten:function(){return function t(i){return(0,d.keys)(i,!1).reduce((n,o)=>(n[o]=(0,r.isPlainObject)(i[o])?t(i[o]):i[o],n),{})}},ConfigFlatten:function(){return h},ConfigMerge:function(){return function t(i,n){Object.keys(n).forEach(o=>{if((0,c.isUnsafeProtoKey)(o))return;let s=n[o],a=i[o];(0,r.isPlainObject)(s)&&(0,r.isPlainObject)(a)&&!(0,u.isAtom)(s)?t(a,s):i[o]=s})}},ConfigProto:function(){return function t(i,n,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(n=>{(0,a.isVoid)(i[n])&&(i[n]=t[n])})}delete i.preset}let p={};return Object.keys(i).forEach(s=>{if((0,c.isUnsafeProtoKey)(s))return;let a=i[s],l=n?n[s]:null;if((0,r.isPlainObject)(a)&&(0,r.isPlainObject)(l)&&!(0,u.isAtom)(a)){p[s]=t(a,l,d+1);return}if(0!==d&&(0,o.isArray)(a)&&!(0,u.isAtom)(a)&&(0,o.isArray)(l)){p[s]=[...a,...l.slice(a.length)];return}p[s]=a}),Object.setPrototypeOf(p,n),p}}});var o=n(68345),r=n(72430),s=n(70799),a=n(86068),l=n(6441),u=n(97735),c=n(69175),d=n(37790);function h(t){return(0,d.keys)(t,!1).reduce((i,n)=>(i[n]=t[n],i),{})}},55877:function(t,i,n){"use strict";n.d(i,{convertMediaUrlToVideoEmbed:function(){return a}});var o=n(82758),r=n(26049),s=n(82501);let a=(t,{width:i=400,height:n=345}={})=>{if(!(0,r.isURL)(t))return t;let a=o.globalDocument.createElement("a");a.href=t,i||(i=400),n||(n=345);let l=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":{let o=a.pathname.split("/").filter(Boolean),r=o.findIndex(t=>/^\d+$/.test(t));if(-1===r)return t;let s=o[r],u=o[r+1];return u&&0===r&&(s+="/"+u),'<iframe width="'+i+'" height="'+n+'" 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 o=(a.search?(0,s.parseQuery)(a.search):{}).v||a.pathname.substring(1);return(o=o.replace(/^(watch|embed|shorts|live|v)\//,"").replace(/\/$/,""))?'<iframe width="'+i+'" height="'+n+'" src="'+l+"//www.youtube.com/embed/"+o+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},41180:function(t,i,n){"use strict";n.d(i,{clearCenterAlign:function(){return c},css:function(){return u}});var o=n(87612),r=n(72430),s=n(3760),a=n(87058),l=n(12475);function u(t,i,n,c=!1){if((0,o.isBoolean)(n)&&(c=n,n=void 0),(0,r.isPlainObject)(i)||void 0!==n){let o=(t,i,n)=>{void 0!==(n=(0,s.normalizeCssNumericValue)(i,n))&&(null==n||u(t,i,!0)!==(0,s.normalizeCssValue)(i,n))&&(t.style[i]=n)};if((0,r.isPlainObject)(i)){let n=Object.keys(i);for(let r=0;r<n.length;r+=1)o(t,(0,a.camelCase)(n[r]),i[n[r]])}else o(t,(0,a.camelCase)(i),n);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&&!c&&(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)}let c=t=>{"block"===u(t,"display")&&u(t,"display","");let{style:i}=t;"auto"===i.marginLeft&&"auto"===i.marginRight&&(i.marginLeft="",i.marginRight="")}},15456:function(t,i,n){"use strict";n.d(i,{ctrlKey:function(){return o}});let o=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,n){"use strict";n.d(i,{dataBind:function(){return s}});var o=n(39955);let r=new WeakMap,s=(t,i,n)=>{let s=r.get(t);if(!s){s={},r.set(t,s);let i=null;(0,o.isViewObject)(t.j)&&(i=t.j.e),(0,o.isViewObject)(t)&&(i=t.e),i&&i.on("beforeDestruct",()=>{r.delete(t)})}return void 0===n?s[i]:(s[i]=n,n)}},96325:function(t,i,n){"use strict";n.d(i,{defaultLanguage:function(){return s}});var o=n(82758),r=n(70799);let s=(t,i="en")=>"auto"!==t&&(0,r.isString)(t)?t:o.globalDocument.documentElement&&o.globalDocument.documentElement.lang?o.globalDocument.documentElement.lang:navigator.language?navigator.language.substring(0,2):i},82760:function(t,i,n){"use strict";n.d(i,{connection:function(){return s},error:function(){return r},options:function(){return a}});var o=n(32880);function r(t){return TypeError(t)}function s(t){return new o.ConnectionError(t)}function a(t){return new o.OptionsError(t)}},93661:function(t,i,n){"use strict";function o(t="Aborted"){return new DOMException(t,"AbortError")}n.d(i,{abort:function(){return o}})},86397:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return o}});class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},32880:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return s.OptionsError},abort:function(){return o.abort}});var o=n(93661),r=n(86397),s=n(57865)},57865:function(t,i,n){"use strict";n.d(i,{OptionsError:function(){return o}});class o extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}},89890:function(t,i,n){"use strict";n.d(i,{ConnectionError:function(){return r.ConnectionError},OptionsError:function(){return r.OptionsError},abort:function(){return r.abort},connection:function(){return o.connection},error:function(){return o.error},options:function(){return o.options}});var o=n(82760),r=n(32880)},97735:function(t,i,n){"use strict";n.d(i,{fastClone:function(){return a},isAtom:function(){return r},markAsAtomic:function(){return s}});var o=n(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,o.stringify)(t))}},80568:function(t,i,n){"use strict";n.d(i,{getClassName:function(){return s},keepNames:function(){return r}});var o=n(23282);let r=new Map,s=t=>{var i;if((0,o.isFunction)(t.className))return t.className();let n=(null==(i=t.constructor)?void 0:i.originalConstructor)||t.constructor;if(r.has(n))return r.get(n);if(n.name)return n.name;let s=new RegExp(/^\s*function\s*(\S*)\s*\(/),a=n.toString().match(s);return a?a[1]:""}},94643:function(t,i,n){"use strict";n.d(i,{get:function(){return s}});var o=n(70799),r=n(86068);function s(t,i){if(!(0,o.isString)(t)||!t.length)return null;let n=t.split("."),s=i;try{for(let t of n){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,n){"use strict";n.d(i,{humanSizeToBytes:function(){return o}});let o=t=>{if(/^[0-9.]+$/.test(t.toString()))return parseFloat(t);let i=t.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],o=parseFloat(t.substr(0,t.length-2));return -1!==n.indexOf(i)?o*Math.pow(1024,n.indexOf(i)+1):parseInt(t,10)}},43555:function(t,i,n){"use strict";n.d(i,{$$:function(){return D.$$},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 I.LimitedStack},OptionsError:function(){return b.OptionsError},UNSAFE_PROTO_KEYS:function(){return w.UNSAFE_PROTO_KEYS},abort:function(){return b.abort},alignElement:function(){return o.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},browser:function(){return l.browser},buildQuery:function(){return u.buildQuery},call:function(){return B.call},callPromise:function(){return B.callPromise},callThis:function(){return B.callThis},clearAlign:function(){return o.clearAlign},clearCenterAlign:function(){return p.clearCenterAlign},cns:function(){return F.cns},completeUrl:function(){return c.completeUrl},connection:function(){return b.connection},convertMediaUrlToVideoEmbed:function(){return h.convertMediaUrlToVideoEmbed},css:function(){return p.css},cssPath:function(){return D.cssPath},ctrlKey:function(){return f.ctrlKey},dataBind:function(){return m.dataBind},defaultLanguage:function(){return g.defaultLanguage},error:function(){return b.error},fastClone:function(){return v.fastClone},get:function(){return y.get},getClassName:function(){return _.getClassName},getDataTransfer:function(){return B.getDataTransfer},getPropertyDescriptor:function(){return B.getPropertyDescriptor},getXPathByElement:function(){return D.getXPathByElement},hAlignElement:function(){return o.hAlignElement},humanSizeToBytes:function(){return C.humanSizeToBytes},inView:function(){return A.inView},isAtom:function(){return v.isAtom},isUnsafeProtoKey:function(){return w.isUnsafeProtoKey},keepNames:function(){return _.keepNames},keys:function(){return B.keys},loadImage:function(){return B.loadImage},loadNext:function(){return r.loadNext},loadNextStyle:function(){return r.loadNextStyle},markAsAtomic:function(){return v.markAsAtomic},markDeprecated:function(){return F.markDeprecated},markOwner:function(){return B.markOwner},memorizeExec:function(){return B.memorizeExec},options:function(){return b.options},parseQuery:function(){return E.parseQuery},previewBox:function(){return k.previewBox},refs:function(){return D.refs},reset:function(){return S.reset},resolveElement:function(){return D.resolveElement},scrollIntoViewIfNeeded:function(){return A.scrollIntoViewIfNeeded},set:function(){return x.set}});var o=n(25726),r=n(63799),s=n(38837),a=n(29960),l=n(97639),u=n(44710),c=n(66292),d=n(68934),h=n(55877),p=n(41180),f=n(15456),m=n(86583),g=n(96325),b=n(89890),v=n(97735),y=n(94643),_=n(80568),C=n(38420),w=n(69175),F=n(95942),E=n(82501),k=n(11628),S=n(58844),A=n(26395),D=n(76078),x=n(3703),I=n(50535),B=n(37790)},69175:function(t,i,n){"use strict";n.d(i,{UNSAFE_PROTO_KEYS:function(){return o},isUnsafeProtoKey:function(){return r}});let o=["__proto__","constructor","prototype"];function r(t){return -1!==o.indexOf(t)}},95942:function(t,i,n){"use strict";n.d(i,{cns:function(){return o},markDeprecated:function(){return r}});let o=console;function r(t,i=[""],n=null){return(...r)=>(o.warn(`Method "${i[0]}" deprecated.`+(i[1]?` Use "${i[1]}" instead`:"")),t.call(n,...r))}},82501:function(t,i,n){"use strict";n.d(i,{parseQuery:function(){return o}});let o=t=>{let i={},n=t.substring(1).split("&");for(let t=0;t<n.length;t+=1){let o=n[t].split("=");i[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return i}},11628:function(t,i,n){"use strict";n.d(i,{previewBox:function(){return u}});var o=n(2748),r=n(70799),s=n(29960),a=n(41180),l=n(76078);function u(t,i,n="px",c=null){let d=[],h=function(t,i){let n=[];try{(0,l.$$)("img",t.editor).forEach(r=>{let a=[(0,s.attr)(r,"width"),(0,s.attr)(r,"height"),r.src];(0,s.attr)(r,{width:r.offsetWidth+i,height:r.offsetHeight+i});let l=t.createInside.a();t.ed.body.appendChild(l),l.href=r.src,r.src=l.href,o.Dom.safeRemove(l),n.push(()=>{var t;r.src=null!=(t=a[2])?t:"",(0,s.attr)(r,{width:a[0]||null,height:a[1]||null})})})}catch(t){throw n.forEach(t=>t()),n.length=0,t}return n}(t,n);try{let l=t.e.fire("beforePreviewBox",i,n);if(null!=l)return l;let u=t.c.div("jodit__preview-box jodit-context");c&&c.appendChild(u),(0,a.css)(u,{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}),u.appendChild(i);let n=i.contentWindow;if(n&&(t.e.fire("generateDocumentStructure.iframe",n.document,t),u=n.document.body,"function"==typeof ResizeObserver)){let o=!1,r=n.document.body,s=new ResizeObserver(t.async.debounce(()=>{s.unobserve(r),i.style.height=`${r.offsetHeight+20}px`,t.async.requestAnimationFrame(()=>{o||s.observe(r)})},100)),a=()=>{o=!0,s.unobserve(r),s.disconnect(),t.e.off("beforeDestruct",a)};d.push(a),t.e.on("beforeDestruct",a)}}else(0,a.css)(u,{minWidth:1024,minHeight:600,border:0});let p=(i,n)=>{let a=(0,r.isString)(n)?t.c.div():n;(0,r.isString)(n)&&(a.innerHTML=n);for(let t=0;t<a.childNodes.length;t+=1){let n=a.childNodes[t];if(o.Dom.isElement(n)){let t=i.ownerDocument.createElement(n.nodeName);for(let i=0;i<n.attributes.length;i+=1)(0,s.attr)(t,n.attributes[i].nodeName,n.attributes[i].nodeValue);0===n.childNodes.length||o.Dom.isTag(n,"table")?"SCRIPT"===n.nodeName?n.textContent&&(t.textContent=n.textContent):n.innerHTML&&(t.innerHTML=n.innerHTML):p(t,n);try{i.appendChild(t)}catch(t){}}else try{i.appendChild(n.cloneNode(!0))}catch(t){}}};return p(u,h),t.e.fire("afterPreviewBox",u),[u,()=>{d.forEach(t=>t())}]}finally{h.forEach(t=>t())}}},58844:function(t,i,n){"use strict";n.d(i,{reset:function(){return l}});var o=n(82758),r=n(23282),s=n(94643);let a={};function l(t){var i,n;if(!(t in a)){let n=o.globalDocument.createElement("iframe");try{if(n.src="about:blank",o.globalDocument.body.appendChild(n),!n.contentWindow)return null;let i=(0,s.get)(t,n.contentWindow),l=(0,s.get)(t.split(".").slice(0,-1).join("."),n.contentWindow);(0,r.isFunction)(i)&&(a[t]=i.bind(l))}catch(t){if(!o.IS_PROD)throw t}finally{null==(i=n.parentNode)||i.removeChild(n)}}return null!=(n=a[t])?n:null}},26395:function(t,i,n){"use strict";n.d(i,{inView:function(){return r},scrollIntoViewIfNeeded:function(){return s}});var o=n(2748);function r(t,i,n){let o=t.getBoundingClientRect(),r=t,s=o.top,a=o.height;for(;r&&r!==i&&r.parentNode;)if(!(s<=(o=(r=r.parentNode).getBoundingClientRect()).bottom)||s+a<=o.top)return!1;return s<=(n.documentElement&&n.documentElement.clientHeight||0)}function s(t,i,n){o.Dom.isHTMLElement(t)&&!r(t,i,n)&&(i.clientHeight!==i.scrollHeight&&(i.scrollTop=t.offsetTop),r(t,i,n)||t.scrollIntoView())}},76078:function(t,i,n){"use strict";n.d(i,{$$:function(){return h},cssPath:function(){return m},getXPathByElement:function(){return p},refs:function(){return f},resolveElement:function(){return g}});var o=n(82758),r=n(2748),s=n(4510),a=n(70799),l=n(87058),u=n(29960),c=n(89890);let d=1;function h(t,i){let n;if(!o.IS_ES_NEXT&&/:scope/.test(t)&&o.IS_IE&&!(i&&i.nodeType===Node.DOCUMENT_NODE)){let o=i.id,r=o||"_selector_id_"+String(Math.random()).slice(2)+ ++d;t=t.replace(/:scope/g,"#"+r),o||i.setAttribute("id",r),n=i.parentNode.querySelectorAll(t),o||i.removeAttribute("id")}else n=i.querySelectorAll(t);return[].slice.call(n)}let p=(t,i)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE||!t.parentNode||i===t)return"";if(t.id)return"//*[@id='"+t.id+"']";let n=[].filter.call(t.parentNode.childNodes,i=>i.nodeName===t.nodeName);return p(t.parentNode,i)+"/"+t.nodeName.toLowerCase()+(n.length>1?"["+((0,s.toArray)(n).indexOf(t)+1)+"]":"")},f=t=>("container"in t&&(t=t.container),h("[ref],[data-ref]",t).reduce((t,i)=>{let n=(0,u.attr)(i,"-ref");return n&&(0,a.isString)(n)&&(t[(0,l.camelCase)(n)]=i,t[n]=i),t},{})),m=t=>{if(!r.Dom.isElement(t))return null;let i=[],n=t;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let t=n.nodeName.toLowerCase();if(n.id){t+="#"+n.id,i.unshift(t);break}{let i=n,o=1;do(i=i.previousElementSibling)&&i.nodeName.toLowerCase()===t&&o++;while(i);t+=":nth-of-type("+o+")"}i.unshift(t),n=n.parentNode}return i.join(" > ")};function g(t,i){let n=t;if((0,a.isString)(t))try{n=i.querySelector(t)}catch(i){throw(0,c.error)('String "'+t+'" should be valid HTML selector')}if(!n||"object"!=typeof n||!r.Dom.isElement(n)||!n.cloneNode)throw(0,c.error)('Element "'+t+'" should be string or HTMLElement instance');return n}},3703:function(t,i,n){"use strict";n.d(i,{set:function(){return u}});var o=n(68345),r=n(29807),s=n(72430),a=n(70799),l=n(69175);function u(t,i,n){if(!(0,a.isString)(t)||!t.length)return;let u=t.split(".");if(u.some(l.isUnsafeProtoKey))return;let c=n,d=u[0];for(let t=0;t<u.length-1;t+=1)d=u[t],(0,o.isArray)(c[d])||(0,s.isPlainObject)(c[d])||(c[d]=(0,r.isNumeric)(u[t+1])?[]:{}),c=c[d];c&&(c[u[u.length-1]]=i)}},50535:function(t,i,n){"use strict";n.d(i,{LimitedStack:function(){return o}});class o{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,n){"use strict";n.d(i,{call:function(){return l},callPromise:function(){return d},callThis:function(){return u},getDataTransfer:function(){return m},getPropertyDescriptor:function(){return g},keys:function(){return p},loadImage:function(){return h},markOwner:function(){return c},memorizeExec:function(){return f}});var o=n(14773),r=n(86068),s=n(29960),a=n(86583);function l(t,...i){return t(...i)}function u(t,i,...n){return t.apply(i,n)}function c(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,o.isPromise)(t)?t.then(t=>t,()=>null).finally(i):null==i?void 0:i()}let h=(t,i)=>i.async.promise((n,o)=>{let r=new Image,s=()=>{i.e.off(r),null==o||o()},a=()=>{i.e.off(r),n(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 n=[];for(let i in t)n.push(i);return n},f=(t,i,{control:n},o)=>{var s;let l=`button${n.command}`,u=null!=(s=n.args&&n.args[0])?s:(0,a.dataBind)(t,l);if((0,r.isVoid)(u))return!1;(0,a.dataBind)(t,l,u),o&&(u=o(u)),t.execCommand(n.command,!1,null!=u?u: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 n;do n=Object.getOwnPropertyDescriptor(t,i),t=Object.getPrototypeOf(t);while(!n&&t);return n}},31359:function(t,i,n){"use strict";n.d(i,{init:function(){return a}});var o=n(82758),r=n(60132),s=n(14041);function a(t,i,n,a,l,u,c){if((0,r.isInitable)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(i,a),u.delete(i),a.hasStyle&&(0,s.loadStyle)(t,i).catch(t=>{o.IS_PROD}),a.styles&&(c(t,i,"style").innerHTML=a.styles)}},14041:function(t,i,n){"use strict";n.d(i,{loadExtras:function(){return h},loadStyle:function(){return c}});var o=n(82758),r=n(12475),s=n(63799),a=n(89672);function l(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}let u=new Set;function c(t,i){var n;return(n=function*(){let n=d(t,i,!1);if(!u.has(n))return u.add(n),(0,s.appendStyleAsync)(t,n)},function(){var t=this,i=arguments;return new Promise(function(o,r){var s=n.apply(t,i);function a(t){l(s,o,r,a,u,"next",t)}function u(t){l(s,o,r,a,u,"throw",t)}a(void 0)})})()}function d(t,i,n){i=(0,r.kebabCase)(i);let o=t.minified?".min":"";return t.basePath+"plugins/"+i+"/"+i+o+"."+(n?"js":"css")}function h(t,i,n,r){try{let o=n.filter(i=>!t.has((0,a.normalizeName)(i.name)));o.length&&o.map(t=>{let n=t.url||d(i,t.name,!0);return(0,s.appendScriptAsync)(i,n).then(r).catch(()=>null)})}catch(t){if(!o.IS_PROD)throw t}}},48591:function(t,i,n){"use strict";n.d(i,{makeInstance:function(){return s}});var o=n(82758),r=n(23282);function s(t,i){try{try{return(0,r.isFunction)(i)?new i(t):i}catch(n){if((0,r.isFunction)(i)&&!i.prototype)return i(t)}}catch(t){if(!o.IS_PROD)throw t}return null}},89672:function(t,i,n){"use strict";n.d(i,{normalizeName:function(){return r}});var o=n(12475);function r(t){return(0,o.kebabCase)(t).toLowerCase()}},50911:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return o.Plugin}});var o=n(20356);n(41876)},41876:function(t,i,n){"use strict";n.d(i,{PluginSystem:function(){return f}});var o=n(82758),r=n(57012),s=n(46559),a=n(68345),l=n(60132),u=n(70799),c=n(31359),d=n(14041),h=n(48591),p=n(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((n,o)=>{(!t||t.has(o))&&i.push([o,n])}),i}__init(t){let{extraList:i,disableList:n,filter:r}={extraList:t.o.extraPlugins.map(t=>(0,u.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(([o,r])=>{if(n.has(o)||f.has(o))return;let s=null==r?void 0:r.requires;if(s&&(0,a.isArray)(s)&&s.length){if(s.some(t=>n.has(t)))return;if(!s.every(t=>f.has(t)))return void g.add(o)}i=!0;let l=(0,h.makeInstance)(t,r);if(!l){f.set(o,null),g.delete(o);return}(0,c.init)(t,o,r,l,f,g,this.opts.getContainer),m[o]=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 n=m[i];(0,l.isDestructable)(n)&&n.destruct(t),delete m[i]}),delete t.__plugins}),o.IS_PROD||g.size}wait(t){return new Promise(i=>{if(this.get(t))return i();let n=()=>{i(),r.eventEmitter.off(`plugin:${t}:ready`,n)};r.eventEmitter.on(`plugin:${t}:ready`,n)})}constructor(t){this.opts=t,this.__items=new Map}}},20356:function(t,i,n){"use strict";n.d(i,{Plugin:function(){return l}});var o=n(91907),r=n(65478),s=n(19306),a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class l extends o.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(o.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(o.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,n){"use strict";n.d(i,{Ajax:function(){return f}});var o=n(8884),r=n(82758),s=n(45219),a=n(21537),l=n(89890),u=n(6441);n(57459);var c=n(98582);function d(t){var i,n;function o(i,n){try{var s=t[i](n),a=s.value,l=a instanceof p;Promise.resolve(l?a.v:a).then(function(n){if(l){var u="return"===i?"return":"next";if(!a.k||n.done)return o(u,n);n=t[u](n).value}r(s.done?"return":"normal",n)},function(t){o("throw",t)})}catch(t){r("throw",t)}}function r(t,r){switch(t){case"return":i.resolve({value:r,done:!0});break;case"throw":i.reject(r);break;default:i.resolve({value:r,done:!1})}(i=i.next)?o(i.key,i.arg):n=null}this._invoke=function(t,r){return new Promise(function(s,a){var l={key:t,arg:r,resolve:s,reject:a,next:null};n?n=n.next=l:(i=n=l,o(t,r))})},"function"!=typeof t.return&&(this.return=void 0)}function h(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function p(t,i){this.v=t,this.k=i}d.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},d.prototype.next=function(t){return this._invoke("next",t)},d.prototype.throw=function(t){return this._invoke("throw",t)},d.prototype.return=function(t){return this._invoke("return",t)};class f{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,n=this.prepareRequest();return this.__async.promise((o,r)=>{var s;return(s=function*(){var s;let u=()=>{this.__isFulfilled=!0,r(l.connection("Connection error"))},d=()=>{this.__isFulfilled=!0,o(new c.Response(n,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=u,t.ontimeout=u,i.responseType&&(t.responseType=i.responseType),t.onprogress=t=>{var i,n;let o=0;t.lengthComputable&&(o=t.loaded/t.total*100),null==(n=(i=this.options).onProgress)||n.call(i,o)},t.onreadystatechange=()=>{var n,o;null==(o=(n=this.options).onProgress)||o.call(n,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}=n;t.open(f,h,!0),i.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",i.contentType);let{headers:m}=i;(0,a.isFunction)(m)&&(m=yield 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)},function(){var t=this,i=arguments;return new Promise(function(n,o){var r=s.apply(t,i);function a(t){h(r,n,o,a,l,"next",t)}function l(t){h(r,n,o,a,l,"throw",t)}a(void 0)})}).call(this)})}stream(){var t;return(t=function*(){var t,i;this.__activated=!0;let{xhr:n,o}=this,r=this.prepareRequest(),s=0,u="",c=[],d=null,h=!1,f=null,m=()=>{if(d){let t=d;d=null,t()}},g=t=>{var i;let o=n.responseText;u+=o.substring(s),s=o.length;let r=u.split("\n\n");for(let n of(u=t?"":null!=(i=r.pop())?i:"",r)){let t=n.trim();if(!t)continue;let i=[];for(let n of t.split("\n"))n.startsWith("data: ")?i.push(n.slice(6)):n.startsWith("data:")&&i.push(n.slice(5));i.length&&c.push(i.join("\n"))}m()};n.onprogress=()=>g(!1),n.onload=()=>{g(!0),h=!0,this.__isFulfilled=!0,m()},n.onerror=()=>{f=l.connection("Connection error"),h=!0,this.__isFulfilled=!0,m()},n.onabort=()=>{f=l.abort("Abort connection"),h=!0,this.__isFulfilled=!0,m()},n.withCredentials=null!=(t=o.withCredentials)&&t;let{url:b,data:v,method:y}=r;n.open(y,b,!0),o.contentType&&n.setRequestHeader&&n.setRequestHeader("Content-type",o.contentType);let{headers:_}=o;(0,a.isFunction)(_)&&(_=yield new p(_.call(this),0)),_&&n.setRequestHeader&&Object.keys(_).forEach(t=>{n.setRequestHeader(t,_[t])}),n.send(v?this.__buildParams(v):void 0);try{for(;;)if(c.length>0)yield c.shift();else if(h)break;else yield(i=new Promise(t=>{d=t}),new p(i,0))}finally{this.__isFulfilled||this.abort()}if(f)throw f},function(){return new d(t.apply(this,arguments))}).call(this)}prepareRequest(){if(!this.o.url)throw l.error("Need URL for AJAX request");let t=this.o.url,i=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&i&&(0,a.isPlainObject)(i)){let n=t.indexOf("?");if(-1!==n){let o=(0,a.parseQuery)(t);t=t.substring(0,n)+"?"+(0,a.buildQuery)(function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},o,i))}else t+="?"+(0,a.buildQuery)(this.o.data)}let o={url:t,method:n,data:i};return f.log.splice(100),f.log.push(o),o}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}constructor(t,i=u.Config.prototype.defaultAjaxOptions){this.__async=new o.Async,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,a.ConfigProto)(t||{},i),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}}f.log=[],function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([s.autobind],f.prototype,"destruct",null)},57459:function(t,i,n){"use strict";n(6441).Config.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr(){return new XMLHttpRequest}}},41601:function(t,i,n){"use strict";n.d(i,{Ajax:function(){return o.Ajax},Response:function(){return r.Response}});var o=n(54079),r=n(98582)},98582:function(t,i,n){"use strict";function o(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function r(t){return function(){var i=this,n=arguments;return new Promise(function(r,s){var a=t.apply(i,n);function l(t){o(a,r,s,l,u,"next",t)}function u(t){o(a,r,s,l,u,"throw",t)}l(void 0)})}}n.d(i,{Response:function(){return s}});class s{get url(){return this.request.url}json(){return r(function*(){return JSON.parse(this.body)}).call(this)}text(){return Promise.resolve(this.body)}blob(){return r(function*(){return this.body}).call(this)}constructor(t,i,n,o){this.request=t,this.status=i,this.statusText=n,this.body=o}}},45124:function(t,i,n){"use strict";n.d(i,{cursorInTheEdgeOfString:function(){return a},findCorrectCurrentNode:function(){return l},moveNodeInsideStart:function(){return s.moveNodeInsideStart}});var o=n(82758),r=n(2748),s=n(26716);function a(t,i,n,r){var s;let a=(null==(s=t.nodeValue)?void 0:s.length)?t.nodeValue:"";if(r&&a.replace((0,o.INVISIBLE_SPACE_REG_EXP_END)(),"").length>i)return!0;let l=(0,o.INVISIBLE_SPACE_REG_EXP_START)().exec(a);return n&&(l&&l[0].length<i||!l&&i>0)}function l(t,i,n,o,s,a){if((t=i.startContainer.childNodes[i.startOffset])||(t=i.startContainer.childNodes[i.startOffset-1],n=!0),t&&o&&!r.Dom.isText(t)){if(!n&&r.Dom.isText(t.previousSibling))t=t.previousSibling;else if(s){let i=a(t);for(;i;){if(i&&r.Dom.isText(i)){t=i;break}i=a(i)}}}if(t&&!o&&!r.Dom.isText(t)){let i=t,n=t;do i=i.firstChild,n=n.lastChild;while(i&&n&&!r.Dom.isText(i));i===n&&i&&r.Dom.isText(i)&&(t=i)}return{node:t,rightMode:n}}n(43463)},26716:function(t,i,n){"use strict";n.d(i,{moveNodeInsideStart:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n){let s=r.Dom.findSibling(i,n),a=r.Dom.findSibling(i,!n);for(;r.Dom.isElement(s)&&!r.Dom.isTag(s,o.INSEPARABLE_TAGS)&&r.Dom.isContentEditable(s,t.editor)&&(!a||!r.Dom.closest(i,r.Dom.isElement,t.editor));)n||!s.firstChild?s.appendChild(i):r.Dom.before(s.firstChild,i),s=r.Dom.sibling(i,n),a=r.Dom.sibling(i,!n)}},43463:function(t,i,n){"use strict";n.d(i,{moveTheNodeAlongTheEdgeOutward:function(){return r}});var o=n(2748);function r(t,i,n){let r=t;for(;r&&r!==n&&!(o.Dom.findSibling(r,i)||o.Dom.isBlock(r.parentElement));)(r=r.parentElement)&&r!==n&&(i?o.Dom.before(r,t):o.Dom.after(r,t))}},59242:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s.CHANGE},CommitStyle:function(){return r.CommitStyle},REPLACE:function(){return s.REPLACE},Selection:function(){return o.Selection},UNWRAP:function(){return s.UNWRAP},WRAP:function(){return s.WRAP}});var o=n(79348),r=n(25639),s=n(77361)},79348:function(t,i,n){"use strict";n.d(i,{Selection:function(){return f}});var o=n(82758),r=n(65478),s=n(2748),a=n(21537),l=n(27613),u=n(38837),c=n(43463),d=n(25639),h=n(45124),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class f{get j(){return this.jodit}errorNode(t){if(!s.Dom.isNode(t))throw(0,a.error)("Parameter node must be instance of Node")}get area(){return this.j.editor}get win(){return this.j.ew}get doc(){return this.j.ed}get sel(){return this.j.o.shadowRoot&&(0,l.isFunction)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){let t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){let{sel:t}=this,i=(null==t?void 0:t.rangeCount)?t.getRangeAt(0):null;return!(!i||!s.Dom.isOrContains(this.area,i.startContainer))}createRange(t=!1){let i=this.doc.createRange();return t&&this.selectRange(i),i}remove(){let t=this.sel,i=this.current();if(t&&i)for(let i=0;i<t.rangeCount;i+=1)t.getRangeAt(i).deleteContents(),t.getRangeAt(i).collapse(!0)}clear(){var t,i;(null==(t=this.sel)?void 0:t.rangeCount)&&(null==(i=this.sel)||i.removeAllRanges())}removeNode(t){if(!s.Dom.isOrContains(this.j.editor,t,!0))throw(0,a.error)("Selection.removeNode can remove only editor's children");s.Dom.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,i){this.removeMarkers();try{let n=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){let o=this.doc.caretPositionFromPoint(t,i);if(o)return n.setStart(o.offsetNode,o.offset)}if(this.doc.caretRangeFromPoint){let o=this.doc.caretRangeFromPoint(t,i);(0,u.assert)(o,"Incorrect caretRangeFromPoint behaviour"),n.setStart(o.startContainer,o.startOffset)}})(),n.collapse(!0),this.selectRange(n),!0}catch(t){}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,a.$$)("span[data-"+o.MARKER_CLASS+"]",this.area)}removeMarkers(){s.Dom.safeRemove.apply(null,this.markers)}marker(t=!1,i){let n=null;i&&(n=i.cloneRange()).collapse(t);let r=this.j.createInside.span();return r.id=o.MARKER_CLASS+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),r.style.lineHeight="0",r.style.display="none",s.Dom.markTemporary(r),(0,a.attr)(r,"data-"+o.MARKER_CLASS,t?"start":"end"),r.appendChild(this.j.createInside.text(o.INVISIBLE_SPACE)),n&&s.Dom.isOrContains(this.area,t?n.startContainer:n.endContainer)&&n.insertNode(r),r}restore(){let t=!1,i=t=>`span[data-${o.MARKER_CLASS}=${t?"start":"end"}]`,n=this.area.querySelector(i(!0)),r=this.area.querySelector(i(!1));if(n){if(t=this.createRange(),r)t.setStartAfter(n),s.Dom.safeRemove(n),t.setEndBefore(r),s.Dom.safeRemove(r);else{let i=n.previousSibling;s.Dom.isText(i)?t.setStart(i,i.nodeValue?i.nodeValue.length:0):t.setStartBefore(n),s.Dom.safeRemove(n),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){let t=this.sel;if(!t||!t.rangeCount)return[];let i=t.getRangeAt(0);(0,u.assert)(i,"Range is null");let n=i.cloneRange();n.collapse(!0);let o=this.j.createInside.fake();s.Dom.safeInsertNode(n,o),i.setStartBefore(o);let r=[o];if(!i.collapsed){let t=i.cloneRange();t.collapse(!1);let n=this.j.createInside.fake();s.Dom.safeInsertNode(t,n),i.setEndAfter(n),r.push(n)}return this.selectRange(i),r}restoreFakes(t){var i,n,o,r;let a=t.filter(t=>t.isConnected);if(!a.length)return;let[l,u]=a,c=this.createRange();c.setStartAfter(l),u&&c.setEndBefore(u),this.selectRange(c),(null==(i=l.parentNode)?void 0:i.firstChild)!==(null==(n=l.parentNode)?void 0:n.lastChild)&&s.Dom.safeRemove(l),(null==(o=null==u?void 0:u.parentNode)?void 0:o.firstChild)!==(null==(r=null==u?void 0:u.parentNode)?void 0:r.lastChild)&&s.Dom.safeRemove(u)}save(t=!1){if(this.hasMarkers)return[];let i=this.sel;if(!i||!i.rangeCount)return[];let n=[],o=i.rangeCount,r=[];for(let t=0;o>t;t+=1)if(r[t]=i.getRangeAt(t),r[t].collapsed){let i=this.marker(!0,r[t]);n[t]={startId:i.id,collapsed:!0,startMarker:i.outerHTML}}else{let i=this.marker(!0,r[t]),o=this.marker(!1,r[t]);n[t]={startId:i.id,endId:o.id,collapsed:!1,startMarker:i.outerHTML,endMarker:o.outerHTML}}if(!t){i.removeAllRanges();for(let t=o-1;t>=0;--t){let o=this.doc.getElementById(n[t].startId);if(o){if(n[t].collapsed)r[t].setStartAfter(o),r[t].collapse(!0);else if(r[t].setStartBefore(o),n[t].endId){let i=this.doc.getElementById(n[t].endId);i&&r[t].setEndAfter(i)}try{i.addRange(r[t].cloneRange())}catch(t){}}}}return n}focus(t={preventScroll:!0}){var i,n;if(!this.isFocused()){let o=(0,a.getScrollParent)(this.j.container),r=null==o?void 0:o.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),r&&(null==o?void 0:o.scrollTo)&&o.scrollTo(0,r);let l=this.sel,u=(null==l?void 0:l.rangeCount)?null==l?void 0:l.getRangeAt(0):null;if(!u||!s.Dom.isOrContains(this.area,u.startContainer)){let t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||null==(n=null==(i=this.j)?void 0:i.events)||n.fire("focus"),!0}return!1}isCollapsed(){let t=this.sel;for(let i=0;t&&i<t.rangeCount;i+=1)if(!t.getRangeAt(i).collapsed)return!1;return!0}isFocused(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}current(t=!0){if(this.j.getRealMode()!==o.MODE_WYSIWYG)return null;let i=this.sel;if(!i||0===i.rangeCount)return null;let n=i.getRangeAt(0),r=n.startContainer,a=!1;if(s.Dom.isTag(r,"br")&&i.isCollapsed)return r;if(!s.Dom.isText(r)){let o=(0,h.findCorrectCurrentNode)(r,n,a,i.isCollapsed,t,t=>a?t.lastChild:t.firstChild);r=o.node,a=o.rightMode}return r&&s.Dom.isOrContains(this.area,r)?r:null}insertNode(t,i=!0,n=!0){this.errorNode(t);let o=s.Dom.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());let r=this.sel;this.j.history.snapshot.transaction(()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),r&&r.rangeCount){let i=r.getRangeAt(0),{firstChild:n}=t;s.Dom.isOrContains(this.area,i.commonAncestorContainer)?s.Dom.safeInsertNode(i,t):this.area.appendChild(t),[()=>null==n?void 0:n.previousSibling,()=>null==n?void 0:n.previousSibling,()=>{var t;return null==(t=null==n?void 0:n.previousSibling)?void 0:t.lastChild}].forEach(t=>{let i=t();i&&s.Dom.isEmptyTextNode(i)&&s.Dom.safeRemove(i)})}else this.area.appendChild(t);let n=t=>{if(s.Dom.isBlock(t)){let i=t.lastChild;if(i)return n(i)}this.setCursorAfter(t)};i&&(s.Dom.isFragment(t)?o&&n(o):n(t)),this.j.o.scrollToPastedContent&&(0,a.scrollIntoViewIfNeeded)(null!=o?o:t,this.j.editor,this.doc)}),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",s.Dom.isFragment(t)?o:t)}insertHTML(t,i=!0){if(""===t)return;let n=this.j.createInside.div(),o=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),s.Dom.isNode(t)?n.appendChild(t):n.innerHTML=t.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",n.innerHTML))&&n.lastChild){for(;n.firstChild;)n.firstChild,o.appendChild(n.firstChild);this.insertNode(o,i,!1),this.j.__imdSynchronizeValues()}}insertImage(t,i=null,n=null){let o=(0,l.isString)(t)?this.j.createInside.element("img"):t;if((0,l.isString)(t)&&o.setAttribute("src",t),null!=n){let t=n.toString();t&&"auto"!==t&&0>String(t).indexOf("px")&&0>String(t).indexOf("%")&&(t+="px"),(0,a.attr)(o,"width",t)}i&&"object"==typeof i&&(0,a.css)(o,i);let r=()=>{(o.naturalHeight<o.offsetHeight||o.naturalWidth<o.offsetWidth)&&(o.style.width="",o.style.height=""),o.removeEventListener("load",r)};this.j.e.on(o,"load",r),o.complete&&r(),this.insertNode(o),this.j.e.fire("afterInsertImage",o)}eachSelection(t){var i;let n=this.sel;if(!n||!n.rangeCount)return;let r=n.getRangeAt(0),u=r.commonAncestorContainer;s.Dom.isHTMLElement(u)||(u=u.parentElement);let c=[],d=r.startOffset,h=u.childNodes.length,p=r.startContainer===this.area?u.childNodes[d<h?d:h-1]:r.startContainer,f=r.endContainer===this.area?u.childNodes[r.endOffset-1]:r.endContainer;s.Dom.isText(p)&&p===r.startContainer&&r.startOffset===(null==(i=p.nodeValue)?void 0:i.length)&&p.nextSibling&&(p=p.nextSibling),s.Dom.isText(f)&&f===r.endContainer&&0===r.endOffset&&f.previousSibling&&(f=f.previousSibling);let m=t=>{!t||t===u||s.Dom.isEmptyTextNode(t)||(0,l.isMarker)(t)||c.push(t)};m(p),p!==f&&s.Dom.isOrContains(u,p,!0)&&s.Dom.find(p,t=>(m(t),t===f||t&&t.contains&&t.contains(f)),u,!0,!1);let g=i=>{if(s.Dom.isOrContains(this.j.editor,i,!0)){if(i.nodeName.match(/^(UL|OL)$/))return(0,a.toArray)(i.childNodes).forEach(g);if(s.Dom.isTag(i,"li"))if(i.firstChild)i=i.firstChild;else{let t=this.j.createInside.text(o.INVISIBLE_SPACE);i.appendChild(t),i=t}t(i)}};0===c.length&&(s.Dom.isEmptyTextNode(p)&&c.push(p),p.firstChild&&c.push(p.firstChild)),c.forEach(g)}cursorInTheEdge(t,i,n=null){var o;let r=!t,l=null==(o=this.sel)?void 0:o.getRangeAt(0);if(null!=n||(n=this.current(!1)),!l||!n||!s.Dom.isOrContains(i,n,!0))return null;let u=t?l.startContainer:l.endContainer,c=t?l.startOffset:l.endOffset,d=t=>!!(t&&!s.Dom.isTag(t,"br")&&!s.Dom.isEmptyTextNode(t)&&!s.Dom.isTemporary(t)&&!(s.Dom.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t)));if(s.Dom.isText(u)){if((0,h.cursorInTheEdgeOfString)(u,c,t,r))return!1}else{let t=(0,a.toArray)(u.childNodes);if(r){if(t.slice(c).some(d))return!1}else if(t.slice(0,c).some(d))return!1}let p=n;for(;p&&p!==i;){let i=s.Dom.sibling(p,t);if(!i){p=p.parentNode;continue}if((p=i)&&d(p))return!1}return!0}cursorOnTheLeft(t,i){return this.cursorInTheEdge(!0,t,i)}cursorOnTheRight(t,i){return this.cursorInTheEdge(!1,t,i)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,i){var n,o;if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let r=this.createRange(),l=null;return s.Dom.isText(t)?i?r.setStart(t,0):r.setEnd(t,null!=(o=null==(n=t.nodeValue)?void 0:n.length)?o:0):(l=this.j.createInside.fake(),i?r.setStartBefore(t):r.setEndAfter(t),r.collapse(i),s.Dom.safeInsertNode(r,l),r.selectNode(l)),r.collapse(i),this.selectRange(r),l}setCursorIn(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange(),r=t,l=t;do{if(s.Dom.isText(r)||s.Dom.isTag(r,o.INSEPARABLE_TAGS))break;l=r,r=i?r.firstChild:r.lastChild}while(r);if(!r){let t=this.j.createInside.text(o.INVISIBLE_SPACE);s.Dom.isTag(l,o.INSEPARABLE_TAGS)?r=l:(l.appendChild(t),l=t)}let u=r||l;return s.Dom.isTag(u,o.INSEPARABLE_TAGS)?i||s.Dom.isTag(u,"br")?n.setStartBefore(u):n.setEndAfter(u):n.selectNodeContents(u),n.collapse(i),this.selectRange(n),l}selectRange(t,i=!0){let n=this.sel;return i&&!this.isFocused()&&"focus"!==this.j.e.current&&this.focus(),n&&(n.removeAllRanges(),n.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,i=!1){if(this.errorNode(t),!s.Dom.up(t,t=>t===this.area||t&&t.parentNode===this.area,this.area))throw(0,a.error)("Node element must be in editor");let n=this.createRange();return n[i?"selectNodeContents":"selectNode"](t),this.selectRange(n)}get html(){let t=this.sel;if(t&&t.rangeCount>0){let i=t.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return n.appendChild(i),n.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){let i=this.jodit.createInside.element("font",o.INVISIBLE_SPACE);this.insertNode(i,!1,!1),t&&t[0]&&i.appendChild(t[0]),yield i,s.Dom.unwrap(i);return}for(let t of((0,a.$$)("*[style*=font-size]",this.area).forEach(t=>{(0,a.attr)(t,"data-font-size",t.style.fontSize.toString()),t.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),(0,a.$$)("*[data-font-size]",this.area).forEach(t=>{let i=(0,a.attr)(t,"data-font-size");i&&(t.style.fontSize=i,(0,a.attr)(t,"data-font-size",null))}),(0,a.$$)('font[size="7"]',this.area))){let{firstChild:i,lastChild:n}=t;if(i&&i===n&&(0,l.isMarker)(i)){s.Dom.unwrap(t);continue}i&&(0,l.isMarker)(i)&&s.Dom.before(t,i),n&&(0,l.isMarker)(n)&&s.Dom.after(t,n),yield t,s.Dom.unwrap(t)}}wrapInTag(t){let i=[];for(let n of this.wrapInTagGen())try{if(n.firstChild&&n.firstChild===n.lastChild&&(0,l.isMarker)(n.firstChild))continue;(0,l.isFunction)(t)?t(n):i.push(s.Dom.replace(n,t,this.j.createInside))}finally{let t=n.parentNode;t&&(s.Dom.unwrap(n),s.Dom.isEmpty(t)&&s.Dom.unwrap(t))}return i}commitStyle(t){(0,u.assert)((0,a.size)(t)>0,"Need to pass at least one option"),new d.CommitStyle(t).apply(this.j)}splitSelection(t,i){if(!this.isCollapsed())return null;let n=this.createRange(),r=this.range;n.setStartBefore(t);let a=this.cursorOnTheRight(t,i),l=this.cursorOnTheLeft(t,i),c=this.j.createInside.element("br"),d=this.j.createInside.fake(),h=d.cloneNode();try{if(a||l){i?s.Dom.before(i,c):s.Dom.safeInsertNode(r,c);let t=(t,i)=>{let n=i(t);for(;n;){let t=i(n);if(n&&(s.Dom.isTag(n,"br")||s.Dom.isEmptyTextNode(n)))s.Dom.safeRemove(n);else break;n=t}};t(c,t=>t.nextSibling),t(c,t=>t.previousSibling),s.Dom.after(c,h),s.Dom.before(c,d),a?(n.setEndBefore(c),r.setEndBefore(c)):(n.setEndAfter(c),r.setEndAfter(c))}else n.setEnd(r.startContainer,r.startOffset);let p=n.extractContents(),f=t=>s.Dom.each(t,t=>s.Dom.isEmptyTextNode(t)&&s.Dom.safeRemove(t));(0,u.assert)(t.parentNode,"Splitting fails");try{if(f(p),f(t),t.parentNode.insertBefore(p,t),!i&&a&&(null==c?void 0:c.parentNode)){let t=this.createRange();t.setStartBefore(c),this.selectRange(t)}}catch(t){if(!o.IS_PROD)throw t}let m=t=>{var i,n,o;(null==(i=null==t?void 0:t.parentNode)?void 0:i.firstChild)===(null==(n=null==t?void 0:t.parentNode)?void 0:n.lastChild)&&(null==(o=null==t?void 0:t.parentNode)||o.appendChild(c.cloneNode()))};m(d),m(h)}finally{s.Dom.safeRemove(d),s.Dom.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;let{range:t}=this,i=t.cloneRange();if(!s.Dom.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;let n=i=>{let n=this.j.createInside.fake(),o=t.cloneRange();return o.collapse(i),s.Dom.safeInsertNode(o,n),(0,c.moveTheNodeAlongTheEdgeOutward)(n,i,this.j.editor),n},o=n(!0),r=n(!1);i.setStartAfter(o),i.setEndBefore(r);let l=s.Dom.findSibling(o,!1),u=s.Dom.findSibling(r,!0);if(l!==u){let t=s.Dom.isElement(l)&&s.Dom.isOrContains(l,r),n=!t&&s.Dom.isElement(u)&&s.Dom.isOrContains(u,o);if(t||n){let n=t?l:u,a=n;for(;s.Dom.isElement(n);)(n=t?n.firstElementChild:n.lastElementChild)&&(t?s.Dom.isOrContains(n,r):s.Dom.isOrContains(n,o))&&(a=n);t?i.setStart(a,0):i.setEnd(a,a.childNodes.length)}}if(this.selectRange(i),s.Dom.safeRemove(o,r),this.isCollapsed())throw(0,a.error)("Selection is collapsed");return this}constructor(t){this.jodit=t,t.e.on("removeMarkers",()=>{this.removeMarkers()})}}p([r.autobind],f.prototype,"createRange",null),p([r.autobind],f.prototype,"focus",null),p([r.autobind],f.prototype,"setCursorAfter",null),p([r.autobind],f.prototype,"setCursorBefore",null),p([r.autobind],f.prototype,"setCursorIn",null)},32526:function(t,i,n){"use strict";n.d(i,{extractSelectedPart:function(){return l}});var o=n(2748),r=n(78116),s=n(49055),a=n(37790);function l(t,i,n){let o=n.s.createRange(),s=(0,r.isMarker)(i.previousSibling)?i.previousSibling:i;o.setStartBefore(t),o.setEndBefore(s),u(t,o,!0);let a=(0,r.isMarker)(i.nextSibling)?i.nextSibling:i;o.setStartAfter(a),o.setEndAfter(t),u(t,o,!1)}function u(t,i,n){let r=i.extractContents();r.textContent&&(0,s.trim)(r.textContent).length||!r.firstChild||o.Dom.unwrap(r.firstChild),t.parentNode&&(0,a.call)(n?o.Dom.before:o.Dom.after,t,r)}},49996:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return a}});var o=n(82758),r=n(70799),s=n(38837);class a{setState(t){(0,s.assert)(!this.__previewsStates.has(t),"Circled states"),this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}dispatch(t,i){let n=this.transitions[this.getState()][t];if(n){let t=n.call(this,i);return(0,s.assert)(t&&t!==i,"Action should return new value"),(0,s.assert)((0,r.isString)(t.next),"Value should contain the next state"),(0,s.assert)(t.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(t.next),o.IS_PROD||this.silent,t}throw Error(`invalid action: ${this.getState()}.${t.toString()}`)}constructor(t,i){this.transitions=i,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}}},23738:function(t,i,n){"use strict";n.d(i,{getSuitChild:function(){return a}});var o=n(2748),r=n(29136),s=n(97380);function a(t,i){let{firstChild:n}=i;for(;n&&!(0,r.isNormalNode)(n);)if(!(n=n.nextSibling))return null;return n&&!o.Dom.next(n,r.isNormalNode,i)&&(0,s.isSuitElement)(t,n,!1)?n:null}},44602:function(t,i,n){"use strict";n.d(i,{getSuitParent:function(){return function t(i,n,a){let{parentNode:l}=n;return l===a||!o.Dom.isHTMLElement(l)||o.Dom.next(n,r.isNormalNode,l)||o.Dom.prev(n,r.isNormalNode,l)?null:i.isElementCommit&&i.elementIsBlock&&!o.Dom.isBlock(l)?t(i,l,a):(0,s.isSuitElement)(i,l,!1)&&(!o.Dom.isBlock(l)||i.elementIsBlock)?l:i.isElementCommit&&!o.Dom.isBlock(l)?t(i,l,a):null}}});var o=n(2748),r=n(29136),s=n(97380)},22030:function(t,i,n){"use strict";n.d(i,{hasSameStyle:function(){return c},hasSameStyleKeys:function(){return d}});var o=n(82758),r=n(2748),s=n(86068),a=n(3760),l=n(38837),u=n(41180);function c(t,i){return!!(!r.Dom.isTag(t,"font")&&r.Dom.isHTMLElement(t)&&Object.keys(i).every(n=>{let o=(0,u.css)(t,n,!0);return""===o&&(""===i[n]||null==i[n])||!(0,s.isVoid)(o)&&""!==o&&!(0,s.isVoid)(i[n])&&(0,a.normalizeCssValue)(n,i[n]).toString().toLowerCase()===o.toString().toLowerCase()}))}if(o.globalDocument){let t=o.globalDocument.createElement("div");t.style.color="red",(0,l.assert)(c(t,{color:"red"}),"Style test"),(0,l.assert)(c(t,{fontSize:null}),"Style test"),(0,l.assert)(c(t,{fontSize:""}),"Style test")}function d(t,i){return!!(!r.Dom.isTag(t,"font")&&r.Dom.isHTMLElement(t)&&Object.keys(i).every(i=>""!==(0,u.css)(t,i,!0)))}if(o.globalDocument){let t=o.globalDocument.createElement("div");t.style.color="red",(0,l.assert)(d(t,{color:"red"}),"Style test"),(0,l.assert)(!d(t,{font:"Arial",color:"red"}),"Style test"),(0,l.assert)(!d(t,{border:"1px solid #ccc"}),"Style test")}},63687:function(t,i,n){"use strict";n.d(i,{FiniteStateMachine:function(){return r.FiniteStateMachine},extractSelectedPart:function(){return o.extractSelectedPart},getSuitChild:function(){return s.getSuitChild},getSuitParent:function(){return a.getSuitParent},isInsideInvisibleElement:function(){return l.isInsideInvisibleElement},suitableClosest:function(){return u.suitableClosest},toggleAttributes:function(){return d.toggleAttributes},toggleOrderedList:function(){return c.toggleOrderedList},unwrapChildren:function(){return h.unwrapChildren},wrap:function(){return p.wrap}});var o=n(32526),r=n(49996),s=n(23738),a=n(44602);n(22030);var l=n(64291);n(29136),n(94466);var u=n(97380),c=n(20199);n(82515);var d=n(44253),h=n(75882),p=n(19263);n(6980)},64291:function(t,i,n){"use strict";n.d(i,{isInsideInvisibleElement:function(){return r}});var o=n(2748);function r(t,i){return!!o.Dom.closest(t,["style","script"],i)}},29136:function(t,i,n){"use strict";n.d(i,{isNormalNode:function(){return s}});var o=n(2748),r=n(78116);function s(t){return!!(t&&!o.Dom.isEmptyTextNode(t)&&!o.Dom.isTemporary(t)&&!(0,r.isMarker)(t))}},94466:function(t,i,n){"use strict";n.d(i,{elementsEqualAttributes:function(){return u},isSameAttributes:function(){return l}});var o=n(21496),r=n(43555),s=n(38837),a=n(22030);function l(t,i){return!((t.attributes.length||(0,o.size)(i))&&(0,o.size)(i))||((0,s.assert)(i,"Attrs must be a non-empty object"),Object.keys(i).every(n=>"class"===n||"className"===n?t.classList.contains(i[n]):"style"===n?(0,a.hasSameStyle)(t,i[n]):(0,r.attr)(t,n)===i[n]))}function u(t,i){return t.attributes.length===i.attributes.length&&Array.from(t.attributes).every(t=>i.hasAttribute(t.name)&&i.getAttribute(t.name)===t.value)}},97380:function(t,i,n){"use strict";n.d(i,{isSameStyleChild:function(){return u},isSuitElement:function(){return a},suitableClosest:function(){return l}});var o=n(2748),r=n(22030),s=n(29136);function a(t,i,n,l=!0){var u;if(!i||!(0,s.isNormalNode)(i))return!1;let{element:c,elementIsDefault:d,options:h}=t;if(o.Dom.isList(i)&&t.elementIsList)return!0;let p=o.Dom.isTag(i,c);return!!(p&&!(d&&n)||(null==(u=h.attributes)?void 0:u.style)&&(l?(0,r.hasSameStyle)(i,h.attributes.style):(0,r.hasSameStyleKeys)(i,h.attributes.style))&&!t.elementIsList)||!p&&!n&&d&&o.Dom.isInlineBlock(i)}function l(t,i,n){return o.Dom.closest(i,i=>a(t,i,!0,!1),n)}function u(t,i){var n,o;let{element:a,options:l}=t;if(!i||!(0,s.isNormalNode)(i))return!1;let u=i.nodeName.toLowerCase()===a,c=!!((null==(n=l.attributes)?void 0:n.style)&&(0,r.hasSameStyleKeys)(i,null==(o=l.attributes)?void 0:o.style));return u&&c}},20199:function(t,i,n){"use strict";n.d(i,{toggleOrderedList:function(){return c}});var o=n(2748),r=n(38837),s=n(32526),a=n(44253),l=n(77361),u=n(82515);function c(t,i,n,o){if(!i)return o;let r=i.parentElement;if(!r)return o;let s=n.e.fire(`${l._PREFIX}BeforeToggleList`,o,t,r);if(void 0!==s)return s;let c=n.e.fire.bind(n.e,`${l._PREFIX}AfterToggleList`);if(o!==l.UNWRAP){let s=(0,a.toggleAttributes)(t,i.parentElement,n,l.INITIAL,!0)===l.CHANGE;if(o===l.REPLACE||s||r.tagName.toLowerCase()!==t.element){let o=d(l.REPLACE,r,i,n,t),s=(0,u.wrapList)(t,o,n);return c(l.REPLACE,s,t),l.REPLACE}}let h=d(l.UNWRAP,r,i,n,t);return c(l.UNWRAP,h,t),l.UNWRAP}function d(t,i,n,a,u){let c=a.e.fire(`${l._PREFIX}BeforeUnwrapList`,t,i,u);return c?((0,r.assert)(o.Dom.isHTMLElement(c),`${l._PREFIX}BeforeUnwrapList hook must return HTMLElement`),c):((0,s.extractSelectedPart)(i,n,a),(0,r.assert)(o.Dom.isHTMLElement(n.parentElement),"Element should be inside the list"),o.Dom.unwrap(n.parentElement),o.Dom.replace(n,"br"!==a.o.enter.toLowerCase()?a.o.enter:a.createInside.fragment(),a.createInside))}},82515:function(t,i,n){"use strict";n.d(i,{wrapList:function(){return l}});var o=n(2748),r=n(94466),s=n(44253),a=n(77361);function l(t,i,n){let l=n.e.fire(`${a._PREFIX}BeforeWrapList`,a.REPLACE,i,t),u=null!=l?l:o.Dom.replace(i,"li",n.createInside),c=u.previousElementSibling,d=u.nextElementSibling,h=o.Dom.isTag(c,t.element)?c:null;return null!=h||(h=o.Dom.isTag(d,t.element)?d:null),o.Dom.isList(h)&&(0,r.isSameAttributes)(h,t.options.attributes)||(h=n.createInside.element(t.element),(0,s.toggleAttributes)(t,h,n,a.INITIAL),o.Dom.before(u,h)),c===h?o.Dom.append(h,u):o.Dom.prepend(h,u),o.Dom.isTag(h.nextElementSibling,t.element)&&(0,r.elementsEqualAttributes)(h,h.nextElementSibling)&&(o.Dom.append(h,Array.from(h.nextElementSibling.childNodes)),o.Dom.safeRemove(h.nextElementSibling)),n.e.fire(`${a._PREFIX}AfterWrapList`,a.WRAP,h,t),h}},44253:function(t,i,n){"use strict";n.d(i,{toggleAttributes:function(){return g}});var o=n(82758),r=n(2748),s=n(580),a=n(27613),l=n(3760),u=n(21496),c=n(12475),d=n(43555),h=n(41180),p=n(86583),f=n(77361);let m="toggleAttributes";function g(t,i,n,v,y=!1){if(!y&&t.isApplied(i,m))return v;y||t.setApplied(i,m);let{attributes:_}=t.options;return _&&(0,u.size)(_)>0&&Object.keys(_).forEach(m=>{var g,C,w;let F=_[m];switch(m){case"style":g=v,(0,d.assert)((0,a.isPlainObject)(F)&&(0,u.size)(F),"Style must be an object"),Object.keys(F).forEach(a=>{let u=i.style.getPropertyValue((0,c.kebabCase)(a)),d=F[a];if(""!==u||null!=d){let c,m,v,_;if(c=function(t){var i;if(void 0!==(0,p.dataBind)(t,"shadowRoot"))return(0,p.dataBind)(t,"shadowRoot");let n=(0,s.getContainer)(t),r=o.globalDocument.createElement("iframe");(0,h.css)(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);let a=null==(i=r.contentWindow)?void 0:i.document,l=a?a.body:t.od.body;return(0,p.dataBind)(t,"shadowRoot",l),l}(n),(m=n.create.element("div")).style.color=(0,h.css)(n.editor,"color"),(v=n.create.element(i.tagName.toLowerCase())).style.cssText=i.style.cssText,m.appendChild(v),c.appendChild(m),_=(0,h.css)(v,a),r.Dom.safeRemove(m),_===(0,l.normalizeCssValue)(a,d)){if(!u)return;y||(0,h.css)(i,a,null),g=b(t,i,g=f.UNSET);return}g=f.CHANGE,y||((0,h.css)(i,a,d),g=b(t,i,g))}}),v=g;break;case"className":case"class":let E;C=v,(0,d.assert)((0,a.isString)(F),"Class name must be a string"),E=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),i.classList.contains(F.toString())?(C=f.UNSET,y||(i.classList.remove(F),0===i.classList.length&&((0,d.attr)(i,"class",null),E(C,i,"class",null)))):(C=f.CHANGE,y||(i.classList.add(F),E(C,i,"class",F))),v=C;break;default:let k;w=v,(0,d.assert)((0,a.isString)(F)||(0,a.isNumber)(F)||(0,a.isBoolean)(F)||null==F,"Attribute value must be a string or number or boolean or null"),k=n.e.fire.bind(n.e,`${f._PREFIX}AfterToggleAttribute`),(0,d.attr)(i,m)===F?(y||(0,d.attr)(i,m,null),w=f.UNSET,y||k(w,i,m,F)):(w=f.CHANGE,y||((0,d.attr)(i,m,F),k(w,i,m,F))),v=w}}),v}function b(t,i,n){return(0,d.attr)(i,"style")||((0,d.attr)(i,"style",null),i.tagName.toLowerCase()===t.defaultTag&&(r.Dom.unwrap(i),n=f.UNWRAP)),n}},75882:function(t,i,n){"use strict";n.d(i,{unwrapChildren:function(){return l}});var o=n(2748),r=n(43555),s=n(22030),a=n(97380);function l(t,i){var n;let l,u=[],c=[],d=null==(n=t.options.attributes)?void 0:n.style;if(i.firstChild){let n=o.Dom.eachGen(i),h=n.next();for(;!h.done;){let i=h.value;(0,a.isSuitElement)(t,i,!0)&&(!d||(0,s.hasSameStyleKeys)(i,d))?(void 0===l&&(l=!0),u.push(i)):d&&(0,a.isSameStyleChild)(t,i)?(void 0===l&&(l=!1),c.push(()=>{(0,r.css)(i,Object.keys(d).reduce((t,i)=>(t[i]=null,t),{})),(0,r.attr)(i,"style")||(0,r.attr)(i,"style",null),(0,r.attr)(i,"style")||i.nodeName.toLowerCase()!==t.element||u.push(i)})):o.Dom.isEmptyTextNode(i)||void 0!==l||(l=!1),h=n.next()}}return c.forEach(t=>t()),u.forEach(o.Dom.unwrap),!!l}},6980:function(t,i,n){"use strict";n.d(i,{wrapUnwrappedText:function(){return s}});var o=n(2748),r=n(78116);function s(t,i,n){let s=n.editor,a=n.createInside,l=(t,i="previousSibling")=>{let a=t,l=t;for(;l&&!(0,r.isMarker)(l)&&!o.Dom.isTag(l,n.o.enter)&&(a=l,l=l[i]?l[i]:l.parentNode&&!o.Dom.isBlock(l.parentNode)&&l.parentNode!==s?l.parentNode:null,!o.Dom.isBlock(l)););return a},u=l(i),c=l(i,"nextSibling"),d=n.s.createRange();d.setStartBefore(u),d.setEndAfter(c);let h=d.extractContents(),p=a.element(t.element);return p.appendChild(h),o.Dom.safeInsertNode(d,p),t.elementIsBlock&&o.Dom.isEmpty(p)&&!o.Dom.isTag(p.firstElementChild,"br")&&p.appendChild(a.element("br")),p}},19263:function(t,i,n){"use strict";n.d(i,{wrap:function(){return u}});var o=n(22732),r=n(29960),s=n(41180),a=n(82515),l=n(6980);function u(t,i,n){var u,d,h;let p=(u=t,d=i,h=n,u.elementIsBlock?o.Dom.up(d,t=>o.Dom.isBlock(t)&&!o.Dom.isTag(t,c),h.editor)||(0,l.wrapUnwrappedText)(u,d,h):((0,r.attr)(d,"size",null),d));if(t.elementIsList)return(0,a.wrapList)(t,p,n);let f=o.Dom.replace(p,t.element,n.createInside,!0);return t.elementIsBlock&&((0,s.css)(f,"fontSize",null),(0,s.css)(f,"fontWeight",null),(0,r.attr)(f,"style")||(0,r.attr)(f,"style",null)),f}let c=new Set(["td","th","tr","tbody","table","li","ul","ol"])},83632:function(t,i,n){"use strict";n.d(i,{ApplyStyle:function(){return a}});var o=n(63687),r=n(77361),s=n(55307);function a(t,i){var n;let{s:a,editor:l}=t;null==(n=l.firstChild)||n.normalize();let u=a.fakes(),c=t.s.wrapInTagGen(u),d=c.next();if(d.done)return;let h={collapsed:a.isCollapsed(),mode:r.INITIAL,element:d.value,next:s.states.START,jodit:t,style:i};for(;d&&!d.done;){let t=new o.FiniteStateMachine(s.states.START,s.transactions);for(h.element=d.value;t.getState()!==s.states.END;)h=t.dispatch("exec",h);d=c.next()}a.restoreFakes(u)}},25639:function(t,i,n){"use strict";n.d(i,{CommitStyle:function(){return l}});var o=n(82758),r=n(87058),s=n(77361),a=n(83632);class l{isApplied(t,i){let n=this.__applyMap.get(t);return!!n&&n[i]}setApplied(t,i){var n;let o=null!=(n=this.__applyMap.get(t))?n:{};o[i]=!0,this.__applyMap.set(t,o)}get elementIsList(){return!!(this.options.element&&o.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!!(this.options.element&&o.IS_BLOCK.test(this.options.element))}get isElementCommit(){return!!(this.options.element&&this.options.element!==this.options.defaultTag)}get defaultTag(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}get elementIsDefault(){return this.element===this.defaultTag}apply(t){let{hooks:i}=this.options,n=i?Object.keys(i):[];try{n.forEach(n=>{t.e.on((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),(0,a.ApplyStyle)(t,this)}finally{n.forEach(n=>{t.e.off((0,r.camelCase)(s._PREFIX+"_"+n),i[n])}),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}constructor(t){this.options=t,this.__applyMap=new WeakMap}}},77361:function(t,i,n){"use strict";n.d(i,{CHANGE:function(){return s},INITIAL:function(){return l},REPLACE:function(){return u},UNSET:function(){return a},UNWRAP:function(){return r},WRAP:function(){return o},_PREFIX:function(){return c}});let o="wrap",r="unwrap",s="change",a="unset",l="initial",u="replace",c="commitStyle"},55307:function(t,i,n){"use strict";n.d(i,{states:function(){return d},transactions:function(){return h}});var o=n(82758),r=n(2748),s=n(38837),a=n(63687),l=n(77361);function u(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}function c(t,i){return i=null!=i?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}),t}let d={START:"START",ELEMENT:"ELEMENT",UNWRAP:"UNWRAP",UNWRAP_CHILDREN:"UNWRAP_CHILDREN",CHANGE:"CHANGE",REPLACE_DEFAULT:"REPLACE_DEFAULT",LIST:"LIST",TOGGLE_LIST:"TOGGLE_LIST",WRAP:"WRAP",EXTRACT:"EXTRACT",END:"END"},h={[d.START]:{exec(t){let{element:i,jodit:n,style:o,mode:s,collapsed:h}=t;if((0,a.isInsideInvisibleElement)(i,n.editor)||!h&&r.Dom.isEmptyContent(i))return c(u({},t),{next:d.END});let p=(0,a.getSuitParent)(o,i,n.editor)||(0,a.getSuitChild)(o,i);if(p)return c(u({},t),{next:d.ELEMENT,element:p});let f=(0,a.suitableClosest)(o,i,n.editor);return o.elementIsList&&r.Dom.isList(f)?c(u({},t),{next:d.LIST}):f?c(u({},t),{next:d.EXTRACT}):c(u({},t),{next:s!==l.UNWRAP?d.UNWRAP_CHILDREN:d.END})}},[d.LIST]:{exec(t){let{element:i,jodit:n,mode:s}=t;if(s!==l.INITIAL&&s!==l.UNWRAP&&s!==l.REPLACE)return c(u({},t),{next:d.END});let a=r.Dom.closest(i,"li",n.editor);return a&&r.Dom.closest(i,o.LIST_TAGS,n.editor)?c(u({},t),{element:a,next:d.TOGGLE_LIST}):c(u({},t),{next:d.END})}},[d.TOGGLE_LIST]:{exec(t){return c(u({},t),{mode:(0,a.toggleOrderedList)(t.style,t.element,t.jodit,t.mode),next:d.END})}},[d.EXTRACT]:{exec(t){var i;let{element:n,jodit:o,style:l}=t,h=(0,a.suitableClosest)(l,n,o.editor);return((0,s.assert)(h,"This place should have an element"),!l.elementIsBlock&&(null==(i=l.options.attributes)?void 0:i.style)&&r.Dom.isBlock(h))?c(u({},t),{next:d.WRAP}):(l.elementIsBlock||(0,a.extractSelectedPart)(h,n,o),c(u({},t),{element:h,next:d.ELEMENT}))}},[d.UNWRAP_CHILDREN]:{exec(t){let{element:i,style:n}=t;return(0,a.unwrapChildren)(n,i)?c(u({},t),{mode:l.UNWRAP,next:d.END}):c(u({},t),{next:d.WRAP})}},[d.WRAP]:{exec(t){let{element:i,jodit:n,style:o}=t,r=(0,a.wrap)(o,i,n);return c(u({},t),{next:o.elementIsList?d.END:d.CHANGE,mode:l.WRAP,element:r})}},[d.ELEMENT]:{exec(t){let{style:i,element:n,jodit:o}=t;return(0,a.toggleAttributes)(i,n,o,l.INITIAL,!0)!==l.INITIAL?c(u({},t),{next:d.CHANGE}):r.Dom.isTag(n,i.element)?c(u({},t),{next:d.UNWRAP}):c(u({},t),{next:d.END})}},[d.CHANGE]:{exec(t){let{style:i,element:n,jodit:o,mode:s}=t,h=(0,a.toggleAttributes)(i,n,o,t.mode);return s!==l.WRAP&&h===l.UNSET&&!n.attributes.length&&r.Dom.isTag(n,i.element)?c(u({},t),{next:d.UNWRAP}):c(u({},t),{mode:h,next:d.END})}},[d.UNWRAP]:{exec(t){return t.element.attributes.length&&r.Dom.isTag(t.element,t.style.element)?c(u({},t),{next:d.REPLACE_DEFAULT}):(r.Dom.unwrap(t.element),c(u({},t),{mode:l.UNWRAP,next:d.END}))}},[d.REPLACE_DEFAULT]:{exec(t){return r.Dom.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),c(u({},t),{mode:l.REPLACE,next:d.END})}},[d.END]:{exec(t){return t}}}},97333:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return d}});var o=n(87058),r=n(2621),s=n(65638),a=n(21162),l=n(6700);function u(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function c(t){return function(){var i=this,n=arguments;return new Promise(function(o,r){var s=t.apply(i,n);function a(t){u(s,o,r,a,l,"next",t)}function l(t){u(s,o,r,a,l,"throw",t)}a(void 0)})}}class d{set(t,i){return c(function*(){let n=yield this.provider;return yield n.set((0,o.camelCase)(this.prefix+t),i),this}).call(this)}delete(t){return c(function*(){let i=yield this.provider;return yield i.delete((0,o.camelCase)(this.prefix+t)),this}).call(this)}get(t){return c(function*(){return(yield this.provider).get((0,o.camelCase)(this.prefix+t))}).call(this)}exists(t){return c(function*(){return(yield this.provider).exists((0,o.camelCase)(this.prefix+t))}).call(this)}clear(){return c(function*(){let t=yield this.provider;return yield t.clear(),this}).call(this)}close(){return c(function*(){let t=yield this.provider;"close"in t&&"function"==typeof t.close&&(yield t.close())}).call(this)}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,s.canUsePersistentStorage)(t)&&(n=new s.LocalStorageProvider(l.StorageKey+(i||""),t)):("indexedDB"===t||!0===t)&&(n=(0,r.canUseIndexedDB)().then(t=>t?new r.IndexedDBProvider(l.StorageKey+(i||""),"keyValueStore"):new a.MemoryStorageProvider)),n||(n=new a.MemoryStorageProvider),new d(Promise.resolve(n),i)}constructor(t,i){this.provider=t,this.prefix=l.StorageKey,i&&(this.prefix+=i)}}},2621:function(t,i,n){"use strict";n.d(i,{IndexedDBProvider:function(){return a},canUseIndexedDB:function(){return c},clearUseIndexedDBCache:function(){return u}});var o=n(82758);function r(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function s(t){return function(){var i=this,n=arguments;return new Promise(function(o,s){var a=t.apply(i,n);function l(t){r(a,o,s,l,u,"next",t)}function u(t){r(a,o,s,l,u,"throw",t)}l(void 0)})}}class a{getDB(){return this.dbPromise||(this.dbPromise=new Promise((t,i)=>{let n=indexedDB.open(this.dbName,this.DB_VERSION);n.onerror=()=>{i(n.error)},n.onsuccess=()=>{t(n.result)},n.onupgradeneeded=t=>{let i=t.target.result;i.objectStoreNames.contains(this.storeName)||i.createObjectStore(this.storeName)}})),this.dbPromise}performTransaction(t,i){return s(function*(){try{let n=(yield this.getDB()).transaction([this.storeName],t).objectStore(this.storeName),o=i(n);return new Promise((t,i)=>{o.onsuccess=()=>{t(o.result)},o.onerror=()=>{i(o.error)}})}catch(t){return Promise.reject(t)}}).call(this)}set(t,i){return s(function*(){try{yield this.performTransaction("readwrite",n=>n.put(i,t))}catch(t){o.IS_PROD}return this}).call(this)}delete(t){return s(function*(){try{yield this.performTransaction("readwrite",i=>i.delete(t))}catch(t){}return this}).call(this)}get(t){return s(function*(){try{return yield this.performTransaction("readonly",i=>i.get(t))}catch(t){return}}).call(this)}exists(t){return s(function*(){try{let i=yield this.performTransaction("readonly",i=>i.get(t));return void 0!==i}catch(t){return!1}}).call(this)}clear(){return s(function*(){try{yield this.performTransaction("readwrite",t=>t.clear())}catch(t){}return this}).call(this)}close(){return s(function*(){if(this.dbPromise){try{(yield this.dbPromise).close()}catch(t){}this.dbPromise=null}}).call(this)}keys(){return s(function*(){try{let t=yield this.performTransaction("readonly",t=>t.getAllKeys());return t&&"object"==typeof t&&"then"in t&&(t=yield t),t.map(t=>String(t))}catch(t){return[]}}).call(this)}values(){return s(function*(){try{let t=yield this.performTransaction("readonly",t=>t.getAll());return t&&"object"==typeof t&&"then"in t&&(t=yield t),t}catch(t){return[]}}).call(this)}entries(){return s(function*(){try{let[t,i]=yield Promise.all([this.keys(),this.values()]);return t.map((t,n)=>[t,i[n]])}catch(t){return[]}}).call(this)}constructor(t="JoditDB",i="keyValueStore"){this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=i}}let l=null;function u(){l=null}function c(){return s(function*(){if(null!=l)return l;try{if("u"<typeof indexedDB)return l=!1,!1;let t="___Jodit___"+Math.random().toString(),i=indexedDB.open(t);return l=yield new Promise(n=>{i.onerror=()=>{n(!1)},i.onsuccess=()=>{indexedDB.deleteDatabase(t),n(!0)}})}catch(t){return l=!1,!1}})()}},65638:function(t,i,n){"use strict";n.d(i,{LocalStorageProvider:function(){return r},canUsePersistentStorage:function(){return o}});let o=(t="localStorage")=>{let i=new Map;if(i.has(t))return i.get(t);let n="___Jodit___"+Math.random().toString(),o="sessionStorage"===t?sessionStorage:localStorage;try{o.setItem(n,"1");let r="1"===o.getItem(n);return o.removeItem(n),i.set(t,r),r}catch(t){}return i.set(t,!1),!1};class r{get storage(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}set(t,i){try{let n=this.storage.getItem(this.rootKey),o=n?JSON.parse(n):{};o[t]=i,this.storage.setItem(this.rootKey,JSON.stringify(o))}catch(t){}return this}delete(t){try{this.storage.removeItem(this.rootKey)}catch(t){}return this}get(t){try{let i=this.storage.getItem(this.rootKey),n=i?JSON.parse(i):{};return void 0!==n[t]?n[t]:void 0}catch(t){}}exists(t){return null!=this.get(t)}clear(){try{this.storage.removeItem(this.rootKey)}catch(t){}return this}constructor(t,i="localStorage"){this.rootKey=t,this.strategy=i}}},21162:function(t,i,n){"use strict";n.d(i,{MemoryStorageProvider:function(){return o}});class o{set(t,i){return this.data.set(t,i),this}delete(t){return this.data.delete(t),this}get(t){return this.data.get(t)}exists(t){return this.data.has(t)}clear(){return this.data.clear(),this}constructor(){this.data=new Map}}},12081:function(t,i,n){"use strict";n.d(i,{AsyncStorage:function(){return o.AsyncStorage},IndexedDBProvider:function(){return r.IndexedDBProvider},LocalStorageProvider:function(){return s.LocalStorageProvider},MemoryStorageProvider:function(){return a.MemoryStorageProvider},Storage:function(){return l.Storage},StorageKey:function(){return l.StorageKey},canUseIndexedDB:function(){return r.canUseIndexedDB},canUsePersistentStorage:function(){return s.canUsePersistentStorage},clearUseIndexedDBCache:function(){return r.clearUseIndexedDBCache}});var o=n(97333),r=n(2621),s=n(65638),a=n(21162),l=n(6700)},6700:function(t,i,n){"use strict";n.d(i,{Storage:function(){return l},StorageKey:function(){return a}});var o=n(87058),r=n(65638),s=n(21162);let a="Jodit_";class l{set(t,i){return this.provider.set((0,o.camelCase)(this.prefix+t),i),this}delete(t){return this.provider.delete((0,o.camelCase)(this.prefix+t)),this}get(t){return this.provider.get((0,o.camelCase)(this.prefix+t))}exists(t){return this.provider.exists((0,o.camelCase)(this.prefix+t))}clear(){return this.provider.clear(),this}static makeStorage(t=!1,i){let n;return"localStorage"===t||"sessionStorage"===t?(0,r.canUsePersistentStorage)(t)&&(n=new r.LocalStorageProvider(a+(i||""),t)):!0===t&&(0,r.canUsePersistentStorage)("localStorage")&&(n=new r.LocalStorageProvider(a+(i||""))),n||(n=new s.MemoryStorageProvider),new l(n,i)}constructor(t,i){this.provider=t,this.prefix=a,i&&(this.prefix+=i)}}},70231:function(t,i,n){"use strict";n.d(i,{Dlgs:function(){return l}});var o=n(580),r=n(27613),s=n(37790),a=n(638);class l{dlg(t){let i=(0,o.getPopupViewRoot)(this.o,this.container,this.od.body),n=new a.Dialog(function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:i,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},t));return(0,s.markOwner)(this,n.container),n.parent=this,n.bindDestruct(this)}confirm(t,i,n){return t=u(t,this),i=u(i,this),a.Confirm.call(this.dlg({closeOnClickOverlay:!0}),t,i,n)}prompt(t,i,n,o,r){return t=u(t,this),i=u(i,this),o=u(o,this),a.Prompt.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o,r)}alert(t,i,n,o){return t=u(t,this),i=u(i,this),a.Alert.call(this.dlg({closeOnClickOverlay:!0}),t,i,n,o)}}function u(t,i){return(0,r.isString)(t)&&!(0,r.isHTML)(t)&&(t=i.i18n(t)),t}},14316:function(t,i,n){"use strict";n.d(i,{Elms:function(){return r}});var o=n(4510);class r{getElm(t){return this.container.querySelector(`.${this.getFullElName(t)}`)}getElms(t){return(0,o.toArray)(this.container.querySelectorAll(`.${this.getFullElName(t)}`))}}},34176:function(t,i,n){"use strict";n.d(i,{Mods:function(){return r}});var o=n(86068);class r{afterSetMod(t,i){}setMod(t,i,n){t=t.toLowerCase();let r=this.mods[t];if(r===i)return this;let s=`${this.componentName}_${t}_`,a=(n||this.container).classList;return null!=r&&a.remove(`${s}${r.toString().toLowerCase()}`),(0,o.isVoid)(i)||""===i||a.add(`${s}${i.toString().toLowerCase()}`),this.mods[t]=i,this.afterSetMod(t,i),this}getMod(t){var i;return null!=(i=this.mods[t])?i:null}}},10830:function(t,i,n){"use strict";n.d(i,{Button:function(){return v},UIButton:function(){return b},UIButtonState:function(){return g}});var o=n(78213),r=n(33433),s=n(87325),a=n(37133),l=n(2748),u=n(23282),c=n(70799),d=n(38837),h=n(29960),p=n(48538),f=n(12153),m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let g=()=>({size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:"",scale:void 0},tooltip:"",text:"",tabIndex:void 0}),b=class t extends p.UIElement{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){let t=this.getElm("text");return(0,d.assert)(t,"Text element not found"),t}get icon(){let t=this.getElm("icon");return(0,d.assert)(t,"Icon element not found"),t}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,h.attr)(this.container,"type",this.state.type)}onChangeRole(){(0,h.attr)(this.container,"role",this.state.role)}updateSize(){let t=(0,s.getComponentClass)("UIList"),i=this.closest(t);if(i){this.state.size=i.buttonSize;return}}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text),this.updateAriaLabel()}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,h.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,h.attr)(this.container,"aria-pressed",this.state.activated)}onChangeName(){this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`),this.name=this.state.name,(0,h.attr)(this.container,"data-ref",this.state.name),(0,h.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&(0,h.attr)(this.container,"title",t),(0,h.attr)(this.container,"aria-label",t),this.updateAriaLabel()}updateAriaLabel(){let t=this.state.text.trim().length>0,i=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,h.attr)(this.container,"aria-label",i),(0,h.attr)(this.button,"aria-label",t?null:i)}onChangeTabIndex(){(0,h.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){let t=this.get("j.o.textIcons");if(!0===t||(0,u.isFunction)(t)&&t(this.state.name))return;l.Dom.detach(this.icon);let i=f.Icon.makeIcon(this.j,this.state.icon);i&&this.icon.appendChild(i)}focus(){this.container.focus()}isFocused(){let{activeElement:t}=this.od;return!!(t&&l.Dom.isOrContains(this.container,t))}createContainer(){let t=this.componentName,i=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(t+"__icon"),o=this.j.c.span(t+"__text");return i.appendChild(n),i.appendChild(o),i}destruct(){return this.j.e.off(this),this.j.e.off(this.container),super.destruct()}onAction(t){return this.actionHandlers.push(t),this}__onActionFire(t){t.buffer={actionTrigger:this},this.actionHandlers.forEach(i=>i.call(this,t)),this.j.e.fire(this,"click",t)}constructor(t,i){super(t),this.isButton=!0,this.state=g(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),i&&this.hookStatus(o.STATUSES.ready,()=>{this.setState(i)})}};function v(t,i,n,o){let r=new b(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,c.isString)(i)?(r.state.icon.name=i,r.state.name=i,o&&(r.state.variant=o),n&&(r.state.text=n)):r.setState(i),r}m([r.cache],b.prototype,"text",null),m([r.cache],b.prototype,"icon",null),m([(0,a.watch)("state.size",{immediately:!1})],b.prototype,"onChangeSize",null),m([(0,a.watch)("state.type",{immediately:!1})],b.prototype,"onChangeType",null),m([(0,a.watch)("state.role",{immediately:!1})],b.prototype,"onChangeRole",null),m([(0,a.watch)("parentElement")],b.prototype,"updateSize",null),m([(0,a.watch)("state.variant",{immediately:!1})],b.prototype,"onChangeStatus",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeText",null),m([(0,a.watch)("state.text",{immediately:!1})],b.prototype,"onChangeTextSetMode",null),m([(0,a.watch)("state.disabled")],b.prototype,"onChangeDisabled",null),m([(0,a.watch)("state.activated")],b.prototype,"onChangeActivated",null),m([(0,a.watch)("state.name",{immediately:!1})],b.prototype,"onChangeName",null),m([(0,a.watch)("state.tooltip",{immediately:!1})],b.prototype,"onChangeTooltip",null),m([(0,a.watch)("state.tabIndex",{immediately:!1})],b.prototype,"onChangeTabIndex",null),m([(0,a.watch)("state.icon",{immediately:!1})],b.prototype,"onChangeIcon",null),m([r.cacheHTML],b.prototype,"createContainer",null),m([(0,a.watch)("button:click")],b.prototype,"__onActionFire",null),b=m([s.component],b)},71916:function(t,i,n){"use strict";n.d(i,{UIButtonGroup:function(){return l}});var o=n(87325),r=n(38837),s=n(10830),a=n(62405);let l=class t extends a.UIGroup{className(){return"UIButtonGroup"}render(t){return`<div>
9
9
  <div class="&__label">~${t.label}~</div>
10
10
  <div class="&__options"></div>
11
11
  </div>`}appendChildToContainer(t){let i=this.getElm("options");(0,r.assert)(null!=i,"Options does not exist"),i.appendChild(t)}select(t){var i,n;this.elements.forEach((i,n)=>{n===t||i.state.value===t?i.state.activated=!0:this.options.radio&&(i.state.activated=!1)});let o=this.elements.filter(t=>t.state.activated).map(t=>({text:t.state.text,value:t.state.value}));this.jodit.e.fire(this,"select",o),null==(n=(i=this.options).onChange)||n.call(i,o)}constructor(t,i={radio:!0}){var n,o;super(t,null==(n=i.options)?void 0:n.map(i=>{let n=new s.UIButton(t,{text:i.text,value:i.value,variant:"primary"});return n.onAction(()=>{this.select(i.value)}),n}),i),this.options=i,this.select(null!=(o=i.value)?o:0)}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},62843:function(t,i,n){"use strict";n.d(i,{Button:function(){return o.Button},UIButton:function(){return o.UIButton},UIButtonGroup:function(){return r.UIButtonGroup},UIButtonState:function(){return o.UIButtonState},UITooltip:function(){return s.UITooltip}});var o=n(10830),r=n(71916),s=n(57340)},57340:function(t,i,n){"use strict";n.d(i,{UITooltip:function(){return g}});var o,r=n(91907),s=n(65478),a=n(22732),l=n(580),u=n(35224),c=n(5700),d=n(43555),h=n(48538),p=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let f=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],m=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],g=o=class t extends h.UIElement{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}__onAttach(t){(0,l.getContainer)(this.j,o).appendChild(this.container),this.__attachedContainers.add(t),this.__attachedContainers.add(this.j.container),this.j.e.on(t,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(t,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}__addListenersOnEnter(){if(this.__listenClose)return;this.__listenClose=!0;let t=this.j;t.e.on(t.ow,f,this.__hide).on(m,this.__hide)}__removeListenersOnLeave(){if(!this.__listenClose)return;this.__listenClose=!1;let t=this.j;t.e.off(t.ow,f,this.__hide).off(m,this.__hide)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.Dom.isHTMLElement(t.target))return;let i=(0,d.attr)(t.target,"aria-label");if(!i||(0,d.attr)(t.target,"disabled")||!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;let n=t.target;this.__open(()=>{let t=(0,c.position)(n);return{x:t.left+t.width/2,y:t.top+t.height}},i)}__open(t,i){this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);let n=this.j.o.showTooltipDelay||this.j.defaultTimeout;n?this.__delayShowTimeout=this.j.async.setTimeout(()=>this.__show(t,i),n):this.__show(t,i)}__show(t,i){this.setMod("visible",!0),this.setMod("above",!1),this.getElm("content").innerHTML=i;let n=t(),o=(0,u.getFixedPositionOffset)(this.container);(0,d.css)(this.container,{left:n.x-o.x,top:n.y-o.y});let r=(0,c.position)(this.container),s=this.j.ow.innerHeight;if(r.top+r.height>s){let t=(0,c.position)(this.__currentTarget);this.setMod("above",!0),(0,d.css)(this.container,{top:t.top-r.height-o.y})}}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",(0,d.css)(this.container,{left:-5e3}))}__hideDelay(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.__attachedContainers.forEach(t=>{this.j.e.off(t,"mouseenter.tooltip",this.__onMouseEnter).off(t,"mouseleave.tooltip",this.__onMouseLeave)}),this.__hide(),super.destruct()}constructor(t){super(t),this.__isOpened=!1,this.__attachedContainers=new Set,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||(this.j.e.on("getContainer",t=>{this.__onAttach(t)}),t.hookStatus(r.STATUSES.ready,()=>{this.__onAttach(this.j.container)}))}};p([s.autobind],g.prototype,"__onMouseLeave",null),p([s.autobind],g.prototype,"__onMouseEnter",null),p([s.autobind],g.prototype,"__hide",null),p([s.autobind],g.prototype,"__hideDelay",null),g=o=p([s.component],g)},48538:function(t,i,n){"use strict";n.d(i,{UIElement:function(){return p}});var o,r=n(91907),s=n(55153),a=n(2748),l=n(70799),u=n(29960),c=n(14316),d=n(34176),h=n(12153);let p=o=class t extends r.ViewComponent{getRole(){var t;return(null==(t=this.options)?void 0:t.role)||""}get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",()=>this.destruct()),this.updateParentElement(this)}bubble(t){let i=this.parentElement;for(;i;)t(i),i=i.parentElement;return this}updateParentElement(t){var i;return null==(i=this.__parentElement)||i.updateParentElement(t),this}get(t,i){return super.get(t,i)||this.getElm(t)}closest(t){let i="object"==typeof t?i=>i===t:i=>r.Component.isInstanceOf(i,t),n=this.__parentElement;for(;n;){if(i(n))return n;n=!n.parentElement&&n.container.parentElement?o.closestElement(n.container.parentElement,o):n.parentElement}return null}static closestElement(t,i){let n=a.Dom.up(t,t=>{if(t){let{component:n}=t;return n&&r.Component.isInstanceOf(n,i)}return!1});return n?null==n?void 0:n.component:null}update(){}appendTo(t){return t.appendChild(this.container),this}clearName(t){return t.replace(/[^a-zA-Z0-9]/g,"_")}render(t){return this.j.c.div(this.componentName)}createContainer(t){let i=this.render(t);if((0,l.isString)(i)){let t=this.parseTemplate(i);return t.classList.add(this.componentName),t}return i}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,(t,i)=>h.Icon.get(i)||"").replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(t,i)=>this.i18n(i)))}destruct(){return a.Dom.safeRemove(this.container),this.parentElement=null,super.destruct()}constructor(t,i){super(t),this.name="",this.__parentElement=null,this.mods={},this.options=i,this.container=this.createContainer(i);const n=this.getRole();n&&(0,u.attr)(this.container,"role",n),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}};p=o=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([(0,s.derive)(d.Mods,c.Elms)],p)},19070:function(t,i,n){"use strict";n.d(i,{UIBlock:function(){return a}});var o=n(87325),r=n(43555),s=n(62405);let a=class t extends s.UIGroup{className(){return"UIBlock"}constructor(t,i,n={align:"left"}){super(t,i),this.options=n,this.setMod("align",this.options.align||"left"),this.setMod("width",this.options.width||""),this.options.mod&&this.setMod(this.options.mod,!0),this.options.className&&this.container.classList.add(this.options.className),(0,r.attr)(this.container,"data-ref",n.ref),(0,r.attr)(this.container,"ref",n.ref)}};a=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],a)},86327:function(t,i,n){"use strict";n.d(i,{UIForm:function(){return c}});var o=n(4012),r=n(87325),s=n(43555),a=n(80256),l=n(12234),u=n(62405);let c=class t extends u.UIGroup{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){for(let t of this.allChildren.filter(t=>o.Component.isInstanceOf(t,a.UIInput)))if(!t.validate())return!1;for(let t of this.allChildren.filter(t=>o.Component.isInstanceOf(t,l.UISelect)))if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",()=>{let i=this.allChildren.filter(t=>o.Component.isInstanceOf(t,a.UIInput));return!!this.validate()&&(t(i.reduce((t,i)=>(t[i.state.name]=i.value,t),{})),!1)}),this}createContainer(){let t=this.j.c.element("form");return t.classList.add(this.componentName),(0,s.attr)(t,"dir",this.j.o.direction||"auto"),(0,s.attr)(t,"novalidate",""),t}constructor(...t){var i,n;super(...t),(null==(i=this.options)?void 0:i.className)&&this.container.classList.add(null==(n=this.options)?void 0:n.className)}};c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component],c)},2525:function(t,i,n){"use strict";n.d(i,{UIBlock:function(){return o.UIBlock},UICheckbox:function(){return s.UICheckbox},UIFileInput:function(){return s.UIFileInput},UIForm:function(){return r.UIForm},UIInput:function(){return s.UIInput},UISelect:function(){return s.UISelect},UITextArea:function(){return s.UITextArea}});var o=n(19070),r=n(86327),s=n(8959)},85120:function(t,i,n){"use strict";n.d(i,{UITextArea:function(){return h}});var o,r,s,a=n(65478),l=n(87325),u=n(80256);function c(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let h=s=class t extends u.UIInput{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}onChangeStateSize(){let{size:t,resizable:i}=this.state;this.nativeInput.style.resize=i?"auto":"none",this.nativeInput.rows=null!=t?t:5}constructor(t,i){super(t,i),this.state=c({},s.defaultState),Object.assign(this.state,i),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}};h.defaultState=(o=c({},u.UIInput.defaultState),r=r={size:5,resizable:!0},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))}),o),d([(0,a.watch)(["state.size","state.resizable"])],h.prototype,"onChangeStateSize",null),h=s=d([l.component],h)},17328:function(t,i,n){"use strict";n.d(i,{UICheckbox:function(){return d}});var o,r=n(65478),s=n(2748),a=n(80256);function l(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}function u(t,i){return i=null!=i?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}),t}var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let d=o=class t extends a.UIInput{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}onChangeChecked(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}onChangeNativeCheckBox(){this.state.checked=this.nativeInput.checked}onChangeSwitch(){this.setMod("switch",this.state.switch);let t=this.getElm("switch-slider");this.state.switch?(t||(t=this.j.c.div(this.getFullElName("switch-slider"))),s.Dom.after(this.nativeInput,t)):s.Dom.safeRemove(t)}constructor(t,i){super(t,u(l({},i),{type:"checkbox"})),this.state=l({},o.defaultState),Object.assign(this.state,i)}};d.defaultState=u(l({},a.UIInput.defaultState),{checked:!1,switch:!1}),c([(0,r.watch)("state.checked"),(0,r.hook)("ready")],d.prototype,"onChangeChecked",null),c([(0,r.watch)("nativeInput:change")],d.prototype,"onChangeNativeCheckBox",null),c([(0,r.watch)("state.switch"),(0,r.hook)("ready")],d.prototype,"onChangeSwitch",null),d=o=c([r.component],d)},4242:function(t,i,n){"use strict";n.d(i,{UIFileInput:function(){return l}});var o=n(87325),r=n(10830),s=n(80256);function a(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}let l=class t extends s.UIInput{className(){return"UIFileInput"}createContainer(t){this.button=new r.UIButton(this.j,{tooltip:t.tooltip,icon:{name:"plus"}});let{container:i}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(t));let{nativeInput:n}=this;return n.classList.add(this.getFullElName("input")),i.classList.add(this.componentName),i.appendChild(n),i}createNativeInput(t){return this.j.create.fromHTML(`<input
@@ -46,7 +46,7 @@
46
46
  loading="lazy"
47
47
  />
48
48
  ${s||a||l?c:""}
49
- </a>`},ajax:(o=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},u.Config.prototype.defaultAjaxOptions),r=r={url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData(t){return t},process(t){return t}},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))}),o),create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},u.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:t=>!t.dataProvider.canI("FileUpload"),getContent:(t,i)=>{let n=new l.UIFileInput(t,{tooltip:i.control.tooltip,onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",n.container),n.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:t=>!t.state.activeElements.length||!t.dataProvider.canI("FileRemove"),exec:t=>{t.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:t=>{t.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:t=>!t.state.activeElements.length,exec:t=>{t.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:t=>{let i=t.state.activeElements;return 1!==i.length||!i[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec:t=>{t.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:t=>"tiles"===t.state.view,exec:t=>{t.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:t=>"list"===t.state.view,exec:t=>{t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:(t,i)=>{let n=i.container.querySelector(".jodit-input");if(n)return n;let o=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return o.value=t.state.filterWord,t.e.on(o,"keydown mousedown",t.async.debounce(()=>{t.e.fire("filter.filebrowser",o.value)},t.defaultTimeout)),o}},sort:{isInput:!0,getContent:t=>{let i=t.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${t.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${t.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${t.i18n("Sort by name")} (⬆)</option><option value="name-desc">${t.i18n("Sort by name")} (⬇)</option><option value="size-asc">${t.i18n("Sort by size")} (⬆)</option><option value="size-desc">${t.i18n("Sort by size")} (⬇)</option></select>`);return i.value=t.state.sortBy,t.e.on("sort.filebrowser",t=>{i.value!==t&&(i.value=t)}).on(i,"change",()=>{t.e.fire("sort.filebrowser",i.value)}),i}}}},11787:function(t,i,n){"use strict";n.d(i,{DEFAULT_SOURCE_NAME:function(){return g},default:function(){return v}});var o=n(82758),r=n(45219),s=n(23282),a=n(70091),l=n(68934),u=n(89890),c=n(3703),d=n(54079),h=n(159);function p(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function f(t){return function(){var i=this,n=arguments;return new Promise(function(o,r){var s=t.apply(i,n);function a(t){p(s,o,r,a,l,"next",t)}function l(t){p(s,o,r,a,l,"throw",t)}a(void 0)})}}var m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let g="default",b=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class v{get o(){return this.options}get(t){let i=this.__ajaxInstances;if(i.has(t)){let n=i.get(t);null==n||n.abort(),i.delete(t)}let n=(0,l.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,l.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));n.prepareData&&(n.data=n.prepareData.call(this,n.data));let o=new d.Ajax(n);i.set(t,o);let r=o.send();return r.finally(()=>{o.destruct(),i.delete(t),this.progressHandler(100)}).catch(()=>null),r.then(t=>t.json()).then(t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t})}onProgress(t){this.progressHandler=t}permissions(t,i){return f(function*(){return this.o.permissions&&(this.o.permissions.data.path=t,this.o.permissions.data.source=i,this.o.permissions.url)?this.get("permissions").then(t=>{if(this.parent.isInDestruct)throw(0,u.abort)();let i=this.o.permissions.process;if(i||(i=this.o.ajax.process),i){let n=i.call(self,t);n.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,n.data.permissions),this.__currentPermissions=n.data.permissions)}return this.__currentPermissions}):null}).call(this)}canI(t){let i="allow"+t;if(!o.IS_PROD&&!b.has(i))throw(0,u.error)("Wrong action "+t);let n=this.o.permissionsPresets[i];return void 0!==n?n:null==this.__currentPermissions||void 0===this.__currentPermissions[i]||this.__currentPermissions[i]}__items(t,i,n,o){let r=this.options;return r.items?(r.items.data.path=t,r.items.data.source=i,r.items.data.mods=n,this.get("items").then(t=>{let i=this.o.items.process;return i||(i=this.o.ajax.process),i&&(t=i.call(self,t)),o(t)})):Promise.reject(Error("Set Items api options"))}items(t,i,n={}){return this.__items(t,i,n,t=>this.__generateItemsList(t.data.sources,n))}itemsEx(t,i,n={}){return this.__items(t,i,n,t=>({items:this.__generateItemsList(t.data.sources,n),loadedTotal:t.data.sources.reduce((t,i)=>t+i.files.length,0)}))}__generateItemsList(t,i={}){let n=[],o=t=>{var n;return!(null==(n=i.filterWord)?void 0:n.length)||void 0===this.o.filter||this.o.filter(t,i.filterWord)};return t.forEach(t=>{if(t.files&&t.files.length){let{sort:r}=this.o;(0,s.isFunction)(r)&&i.sortBy&&t.files.sort((t,n)=>r(t,n,i.sortBy)),t.files.forEach(r=>{var s,a;o(r)&&("folder"===r.type||!i.onlyImages||void 0===r.isImage||r.isImage)&&n.push(h.FileBrowserItem.create((s=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},r),a=a={sourceName:t.name,source:t},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(a)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(a,t))}),s)))})}}),n}tree(t,i){return f(function*(){return(t=(0,a.normalizeRelativePath)(t),this.o.folder)?(yield this.permissions(t,i),this.o.folder.data.path=t,this.o.folder.data.source=i,this.get("folder").then(t=>{let i=this.o.folder.process;return i||(i=this.o.ajax.process),i&&(t=i.call(self,t)),t.data.sources})):Promise.reject(Error("Set Folder Api options"))}).call(this)}getPathByUrl(t){return(0,c.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,u.error)(this.getMessage(t))})}createFolder(t,i,n){let{create:o}=this.o;if(!o)throw(0,u.error)("Set Create api options");return o.data.source=n,o.data.path=i,o.data.name=t,this.get("create").then(t=>{if(this.isSuccess(t))return!0;throw(0,u.error)(this.getMessage(t))})}move(t,i,n,o){let r=o?"fileMove":"folderMove",s=this.options[r];if(!s)throw(0,u.error)("Set Move api options");return s.data.from=t,s.data.path=i,s.data.source=n,this.get(r).then(t=>{if(this.isSuccess(t))return!0;throw(0,u.error)(this.getMessage(t))})}__remove(t,i,n,o){let r=this.o[t];if(!r)throw(0,u.error)(`Set "${t}" api options`);return r.data.path=i,r.data.name=n,r.data.source=o,this.get(t).then(t=>(r.process&&(t=r.process.call(this,t)),this.getMessage(t)))}fileRemove(t,i,n){return this.__remove("fileRemove",t,i,n)}folderRemove(t,i,n){return this.__remove("folderRemove",t,i,n)}__rename(t,i,n,o,r){let s=this.o[t];if(!s)throw(0,u.error)(`Set "${t}" api options`);return s.data.path=i,s.data.name=n,s.data.newname=o,s.data.source=r,this.get(t).then(t=>(s.process&&(t=s.process.call(self,t)),this.getMessage(t)))}folderRename(t,i,n,o){return this.__rename("folderRename",t,i,n,o)}fileRename(t,i,n,o){return this.__rename("fileRename",t,i,n,o)}__changeImage(t,i,n,o,r,s){this.o[t]||(this.o[t]={data:{}});let a=this.o[t];return void 0===a.data&&(a.data={action:t}),a.data.newname=r||o,s&&(a.data.box=s),a.data.path=i,a.data.name=o,a.data.source=n,this.get(t).then(t=>t.data.newPath||!0)}crop(t,i,n,o,r){return this.__changeImage("crop",t,i,n,o,r)}resize(t,i,n,o,r){return this.__changeImage("resize",t,i,n,o,r)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.__ajaxInstances.forEach(t=>t.destruct()),this.__ajaxInstances.clear()}constructor(t,i){this.parent=t,this.options=i,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=t=>{}}}m([r.autobind],v.prototype,"onProgress",null),m([r.autobind],v.prototype,"permissions",null),m([r.autobind],v.prototype,"canI",null),m([r.autobind],v.prototype,"items",null),m([r.autobind],v.prototype,"itemsEx",null),m([r.autobind],v.prototype,"tree",null),m([r.autobind],v.prototype,"getPathByUrl",null),m([r.autobind],v.prototype,"createFolder",null),m([r.autobind],v.prototype,"move",null),m([r.autobind],v.prototype,"fileRemove",null),m([r.autobind],v.prototype,"folderRemove",null),m([r.autobind],v.prototype,"folderRename",null),m([r.autobind],v.prototype,"fileRename",null),m([r.autobind],v.prototype,"crop",null),m([r.autobind],v.prototype,"resize",null),m([r.autobind],v.prototype,"getMessage",null),m([r.autobind],v.prototype,"isSuccess",null),m([r.autobind],v.prototype,"destruct",null)},63399:function(t,i,n){"use strict";n.d(i,{makeContextMenu:function(){return a},makeDataProvider:function(){return s}});var o=n(80870),r=n(11787);function s(t,i){return new r.default(t,i)}function a(t){return new o.ContextMenu(t)}},44450:function(t,i,n){"use strict";function o(t,i,n){return t.dataProvider.fileRemove(t.state.currentPath,i,n).then(n=>{t.status(n||t.i18n('File "%s" was deleted',i),!0)}).catch(t.status)}n.d(i,{deleteFile:function(){return o}})},30465:function(t,i,n){"use strict";function o(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then(i=>{i&&(t.state.elements=i,t.state.activeElements=[])}).catch(t.status).finally(()=>t.files.setMod("loading",!1))}n.d(i,{loadItems:function(){return o}})},20201:function(t,i,n){"use strict";n.d(i,{loadTree:function(){return a}});var o=n(22732),r=n(30465);function s(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function a(t){var i;return(i=function*(){t.tree.setMod("active",!0),o.Dom.detach(t.tree.container);let i=(0,r.loadItems)(t);return t.o.showFoldersPanel?(t.tree.setMod("loading",!0),Promise.all([t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then(i=>{t.state.sources=i}).catch(t.status).finally(()=>t.tree.setMod("loading",!1)),i])):(t.tree.setMod("active",!1),i)},function(){var t=this,n=arguments;return new Promise(function(o,r){var a=i.apply(t,n);function l(t){s(a,o,r,l,u,"next",t)}function u(t){s(a,o,r,l,u,"throw",t)}l(void 0)})})()}},75330:function(t,i,n){"use strict";n.d(i,{FileBrowser:function(){return F}});var o=n(91907),r=n(82758),s=n(65478),a=n(37133),l=n(3827),u=n(21537),c=n(12081),d=n(70231),h=n(84075),p=n(6441);n(61251);var f=n(30465),m=n(20201),g=n(73948),b=n(33281),v=n(94538),y=n(11787),_=n(63399),C=n(8172),w=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let F=class t extends h.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,_.makeDataProvider)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){let i=[],n=[];this.state.activeElements.forEach(t=>{let o=t.fileURL;o&&(i.push(o),n.push(t.isImage||!1))}),this.close(),(0,u.isFunction)(t)&&t({baseurl:"",files:i,isImages:n}),this.close()}return!1}}get _dialog(){var t;let i=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!=(t=this.o.headerButtons)?t:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(t=>i.events.on(i,t,()=>this.e.fire(t))),i.setSize(this.o.width,this.o.height),i}get storage(){return c.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,i){!t||(0,u.isAbortError)(t)||((0,u.isString)(t)||(t=t.message),(0,u.isString)(t)&&(0,u.trim)(t).length&&this.message.message(t,i?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,i=!1){return this.state.onlyImages=i,this.async.promise((i,n)=>{var o;if(!this.o.items||!this.o.items.url)throw(0,u.error)("Need set options.filebrowser.ajax.url");let s=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",()=>{let i=new Date().getTime();i-s<r.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(t)(),s=i}).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));let a=this.c.div();null==(o=this.toolbar)||o.appendTo(a),this.__updateToolbarButtons(),this._dialog.open(this.browser,a),this.e.fire("sort.filebrowser",this.state.sortBy),(0,m.loadTree)(this).then(i,n).finally(()=>{var t;this.isInDestruct||null==(t=this===null||void 0===this?void 0:this.e)||t.fire("fileBrowserReady.filebrowser")})}).catch(t=>{if(!(0,u.isAbortError)(t)&&!r.IS_PROD)throw t})}__getButtons(){var t;return(null!=(t=this.o.buttons)?t:[]).filter(t=>{if(!(0,u.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(t){var i;let n=this,o=null==(i=null==t?void 0:t.options)?void 0:i.uploader,r=(0,u.ConfigProto)(o||{},p.Config.defaultOptions.uploader),s=()=>(0,f.loadItems)(this);n.uploader=n.getInstance("Uploader",r),n.uploader.setPath(n.state.currentPath).setSource(n.state.currentSource).bind(n.browser,s,n.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),n.e.on("bindUploader.filebrowser",t=>{n.uploader.bind(t,s,n.errorHandler)})}destruct(){var t;!this.isInDestruct&&(null==(t=(0,s.cached)(this,"_dialog"))||t.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var t;let i=this.__getButtons();!function(t,i){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==i[n])return!1;return!0}(this.__prevButtons,i)&&(this.__prevButtons=i,null==(t=this.toolbar)||t.build(i))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new C.FileBrowserTree(this),this.files=new C.FileBrowserFiles(this),this.state=(0,l.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,u.isAbortError)(t)||(t instanceof Error?this.status(this.i18n(t.message)):this.status(this.dataProvider.getMessage(t)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(t),this.options=(0,u.ConfigProto)(t||{},p.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),b.selfListeners.call(this),g.nativeListeners.call(this),v.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,u.ConfigProto)(this.options[t],this.o.ajax))});const{storeView:i,storeSortBy:n,storeLastOpenedFolder:r}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},s=i&&this.storage.get("view");s&&null==this.o.view?this.state.view="list"===s?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const a=n&&this.storage.get("sortBy");if(a){const t=a.split("-");this.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(r){const t=this.storage.get("currentPath"),i=this.storage.get("currentSource");this.state.currentPath=null!=t?t:"",this.state.currentSource=null!=i?i:""}this.initUploader(this),this.setStatus(o.STATUSES.ready)}};w([s.cache],F.prototype,"dataProvider",null),w([s.cache],F.prototype,"_dialog",null),w([s.cache],F.prototype,"storage",null),w([s.autobind],F.prototype,"status",null),w([s.autobind],F.prototype,"open",null),w([(0,a.watch)("dataProvider:changePermissions")],F.prototype,"__updateToolbarButtons",null),F=w([(0,s.derive)(d.Dlgs)],F)},78513:function(t,i,n){"use strict";n.d(i,{FileBrowser:function(){return o.FileBrowser}});var o=n(75330)},73948:function(t,i,n){"use strict";n.d(i,{nativeListeners:function(){return c}});var o=n(29960),r=n(15456),s=n(41457),a=n(32118),l=n(21735),u=n(20201);function c(){let t=!1,i=(0,a.elementsMap)(this),n=this;n.e.on(n.tree.container,"dragstart",i=>{let o=(0,l.getItem)(i.target,n.container);o&&n.o.moveFolder&&(t=o)}).on(n.tree.container,"drop",i=>{if((n.o.moveFile||n.o.moveFolder)&&t){let r=(0,o.attr)(t,"-path")||"";if(!n.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item"))||t.classList.contains(this.files.getFullElName("item"))&&(r+=(0,o.attr)(t,"-name"),!n.o.moveFile))return!1;let s=(0,l.getItem)(i.target,n.container);s&&(n.dataProvider.move(r,(0,o.attr)(s,"-path")||"",(0,o.attr)(s,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then(()=>(0,u.loadTree)(this)).catch(n.status),t=!1)}}).on(n.files.container,"contextmenu",(0,s.default)(n)).on(n.files.container,"click",t=>{(0,r.ctrlKey)(t)||(this.state.activeElements=[])}).on(n.files.container,"click",t=>{let o=(0,l.getItem)(t.target,n.container);if(!o)return;let s=(0,l.elementToItem)(o,i);if(s)return(0,r.ctrlKey)(t)?n.state.activeElements=[...n.state.activeElements,s]:n.state.activeElements=[s],t.stopPropagation(),!1}).on(n.files.container,"dragstart",i=>{if(n.o.moveFile){let o=(0,l.getItem)(i.target,n.container);o&&(t=o)}}).on(n.container,"drop",t=>t.preventDefault())}},33281:function(t,i,n){"use strict";n.d(i,{selfListeners:function(){return d}});var o=n(21537),r=n(27613),s=n(11787),a=n(44450),l=n(30465),u=n(20201),c=n(50050);function d(){let t=this.state,i=this.dataProvider,n=this;n.e.on("view.filebrowser",i=>{i!==t.view&&(t.view=i)}).on("sort.filebrowser",i=>{i!==t.sortBy&&(t.sortBy=i,(0,l.loadItems)(n))}).on("filter.filebrowser",i=>{i!==t.filterWord&&(t.filterWord=i,(0,l.loadItems)(n))}).on("openFolder.filebrowser",t=>{let i;i=".."===t.name?t.path.split("/").filter(t=>t.length).slice(0,-1).join("/"):(0,o.normalizePath)(t.path,t.name),n.state.currentPath=i,n.state.currentSource="."===t.name?s.DEFAULT_SOURCE_NAME:t.source}).on("removeFolder.filebrowser",t=>{n.confirm("Are you sure?","Delete",o=>{o&&i.folderRemove(t.path,t.name,t.source).then(t=>(n.status(t,!0),(0,u.loadTree)(n))).catch(n.status)})}).on("renameFolder.filebrowser",t=>{n.prompt("Enter new name","Rename",o=>{if(!(0,r.isValidName)(o))return n.status(n.i18n("Enter new name")),!1;i.folderRename(t.path,t.name,o,t.source).then(t=>(n.state.activeElements=[],n.status(t,!0),(0,u.loadTree)(n))).catch(n.status)},"type name",t.name)}).on("addFolder.filebrowser",t=>{n.prompt("Enter Directory name","Create directory",o=>{i.createFolder(o,t.path,t.source).then(()=>(0,u.loadTree)(n)).catch(n.status)},"type name")}).on("fileRemove.filebrowser",()=>{n.state.activeElements.length&&n.confirm("Are you sure?","",t=>{if(t){let t=[];n.state.activeElements.forEach(i=>{t.push((0,a.deleteFile)(n,i.file||i.name||"",i.sourceName))}),n.state.activeElements=[],Promise.all(t).then(()=>(0,u.loadTree)(n).catch(n.status),n.status)}})}).on("edit.filebrowser",()=>{if(1===n.state.activeElements.length){let[t]=this.state.activeElements;c.openImageEditor.call(n,t.fileURL,t.file||"",t.path,t.sourceName)}}).on("fileRename.filebrowser",(t,o,s)=>{1===n.state.activeElements.length&&n.prompt("Enter new name","Rename",a=>{if(!(0,r.isValidName)(a))return n.status(n.i18n("Enter new name")),!1;i.fileRename(o,t,a,s).then(t=>{n.state.activeElements=[],n.status(t,!0),(0,l.loadItems)(n)}).catch(n.status)},"type name",t)}).on("update.filebrowser",()=>{(0,u.loadTree)(this).then(this.status,this.status)})}},94538:function(t,i,n){"use strict";n.d(i,{stateListeners:function(){return u}});var o=n(22732),r=n(71521),s=n(10830),a=n(32118),l=n(20201);function u(){let t=(0,a.elementsMap)(this),{state:i,files:n,create:u,options:c}=this,d=i=>{let n=i.uniqueHashKey;if(t[n])return t[n].elm;let o=u.fromHTML(c.getThumbTemplate.call(this,i,i.source,i.sourceName.toString()));return o.dataset.key=n,t[n]={item:i,elm:o},t[n].elm};i.on(["change.currentPath","change.currentSource"],this.async.debounce(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),(0,l.loadTree)(this).catch(this.status)},this.defaultTimeout)).on("beforeChange.activeElements",()=>{i.activeElements.forEach(i=>{let{elm:o}=t[i.uniqueHashKey];o&&o.classList.remove(n.getFullElName("item","active",!0))})}).on("change.activeElements",()=>{this.e.fire("changeSelection"),i.activeElements.forEach(i=>{let{elm:o}=t[i.uniqueHashKey];o&&o.classList.add(n.getFullElName("item","active",!0))})}).on("change.view",()=>{n.setMod("view",i.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",i.view)}).on("change.sortBy",()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",i.sortBy)}).on("change.elements",this.async.debounce(()=>{o.Dom.detach(n.container),i.elements.length?i.elements.forEach(t=>{this.files.container.appendChild(d(t))}):n.container.appendChild(u.div(this.componentName+"_no-files_true",this.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(()=>{o.Dom.detach(this.tree.container),i.sources.forEach(t=>{let i=t.name;if(i&&"default"!==i&&this.tree.container.appendChild(u.div(this.tree.getFullElName("source-title"),i)),t.folders.forEach(n=>{let o=u.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,r.normalizePath)(t.path,n+"/"),"data-name":n,"data-source":i,"data-source-path":t.path},u.span(this.tree.getFullElName("item-title"),n)),a=o=>s=>{this.e.fire(`${o}.filebrowser`,{name:n,path:(0,r.normalizePath)(t.path+"/"),source:i}),s.stopPropagation(),s.preventDefault()};if(this.e.on(o,"click",a("openFolder")),this.tree.container.appendChild(o),".."!==n&&"."!==n){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){let t=(0,s.Button)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});t.onAction(a("renameFolder")),o.appendChild(t.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){let t=(0,s.Button)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});t.onAction(a("removeFolder")),o.appendChild(t.container)}}}),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){let n=(0,s.Button)(this,"plus","Add folder","secondary");n.onAction(()=>{this.e.fire("addFolder",{path:(0,r.normalizePath)(t.path+"/"),source:i})}),this.tree.append(n)}})},this.defaultTimeout))}},97379:function(t,i,n){"use strict";n.d(i,{FileBrowserFiles:function(){return r}});var o=n(67510);class r extends o.UIGroup{className(){return"FileBrowserFiles"}}},8172:function(t,i,n){"use strict";n.d(i,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return r.FileBrowserTree}});var o=n(97379),r=n(8193)},8193:function(t,i,n){"use strict";n.d(i,{FileBrowserTree:function(){return r}});var o=n(67510);class r extends o.UIGroup{className(){return"FileBrowserTree"}}},92643:function(t,i,n){"use strict";n.d(i,{Command:function(){return o}});class o{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,i,n,o){this.oldValue=t,this.newValue=i,this.history=n,this.tick=o}}},78818:function(t,i,n){"use strict";n.d(i,{History:function(){return c}});var o=n(80480),r=n(81577),s=n(6441),a=n(92643),l=n(52604),u=n(57034);s.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class c extends o.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){let i=this.snapshot.make();if(!l.Snapshot.equal(i,this.startValue)){let n=new a.Command(this.startValue,i,this,this.updateTick);if(t){let t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(n)}else this.__stack.push(n);this.startValue=i,this.fireChangeStack()}}fireChangeStack(){var t;this.j&&!this.j.isInDestruct&&(null==(t=this.j.events)||t.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(t,i=new u.Stack(t.o.history.maxHistoryLength),n=new l.Snapshot(t)){super(t),this.updateTick=0,this.__stack=i,this.snapshot=n,t.o.history.enable&&t.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(t=>t+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.debounce)()],c.prototype,"onChange",null)},52604:function(t,i,n){"use strict";n.d(i,{Snapshot:function(){return a}});var o=n(91907),r=n(82758),s=n(2748);class a extends o.ViewComponent{className(){return"Snapshot"}static equal(t,i){return t.html===i.html&&JSON.stringify(t.range)===JSON.stringify(i.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;let i=t.parentNode.childNodes,n=0,o=null;for(let r=0;r<i.length;r+=1){if(!o||this.isIgnoredNode(i[r])||s.Dom.isText(o)&&s.Dom.isText(i[r])||(n+=1),i[r]===t)return n;o=i[r]}return 0}static strokeOffset(t,i){for(;s.Dom.isText(t);)t=t.previousSibling,s.Dom.isText(t)&&t.nodeValue&&(i+=t.nodeValue.length);return i}calcHierarchyLadder(t){let i=[];if(!t||!t.parentNode||!s.Dom.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!a.isIgnoredNode(t)&&i.push(a.countNodesBeforeInParent(t)),t=t.parentNode;return i.reverse()}getElementByLadder(t){let i=this.j.editor,n;for(n=0;i&&n<t.length;n+=1)i=i.childNodes[t[n]];return i}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0),this.__levelOfTransaction+=1;try{t()}catch(t){if(!r.IS_PROD)throw t}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.__getCleanedEditorValue(this.j.editor);let i=this.j.s.sel;if(i&&i.rangeCount){let n=i.getRangeAt(0),o=this.calcHierarchyLadder(n.startContainer),r=this.calcHierarchyLadder(n.endContainer),s=a.strokeOffset(n.startContainer,n.startOffset),l=a.strokeOffset(n.endContainer,n.endOffset);o.length||n.startContainer===this.j.editor||(s=0),r.length||n.endContainer===this.j.editor||(l=0),t.range={startContainer:o,startOffset:s,endContainer:r,endOffset:l}}return t}restore(t){this.transaction(()=>{let i=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(i)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){let{j:i}=this,{ow:n}=i;n.scrollTo(n.scrollX,t[0]),i.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){let i=this.j.ed.createRange();i.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),i.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(i)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),r.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return s.Dom.isText(t)&&!t.nodeValue||s.Dom.isTemporary(t)}__getCleanedEditorValue(t){let i=t.cloneNode(!0);return s.Dom.temporaryList(i).forEach(s.Dom.unwrap),i.innerHTML}constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}}},57034:function(t,i,n){"use strict";n.d(i,{Stack:function(){return o}});class o{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(t){this.commands[this.stackPosition]=t}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(t){this.size=t,this.commands=[],this.stackPosition=-1}}},62489:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(49922),a=n(72144);r.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},o.Icon.set("crop",s.default).set("resize",a.default)},49922:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> '},72144:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> '},50050:function(t,i,n){"use strict";n.d(i,{ImageEditor:function(){return C},openImageEditor:function(){return w}});var o,r=n(91907),s=n(65478),a=n(22732),l=n(4510),u=n(49055),c=n(29960),d=n(41180),h=n(76078),p=n(37790),f=n(62843),m=n(6441);n(62489);var g=n(22461),b=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let v="jodit-image-editor",y="resize",_="crop",C=o=class t extends r.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,i){return this.j.async.promise(n=>{let o=new Date().getTime();this.image=this.j.c.element("img"),(0,h.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,h.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,d.css)(this.cropHandler,"background","transparent"),this.onSave=i,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(t)?t+="&_tst="+o:t+="?_tst="+o,this.image.setAttribute("src",t),this._dialog.open();let{widthInput:r,heightInput:s}=(0,h.refs)(this.editor),l=()=>{this.isDestructed||(this.image.removeEventListener("load",l),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=this.naturalWidth.toString(),s.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,h.$$)(".jodit-icon_loader",this.editor)),this.activeTab===_&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),n(this._dialog))};this.image.addEventListener("load",l),this.image.complete&&l()})}onTitleModeClick(t){let i=t.target,n=null==i?void 0:i.parentElement;if(!n)return;(0,h.$$)(`.${v}__slider,.${v}__area`,this.editor).forEach(t=>t.classList.remove(`${v}_active`)),n.classList.add(`${v}_active`),this.activeTab=(0,c.attr)(n,"-area")||y;let o=this.editor.querySelector(`.${v}__area.${v}__area_`+this.activeTab);o&&o.classList.add(`${v}_active`),this.activeTab===_&&this.showCrop()}onChangeSizeInput(t){let i,n=t.target,{widthInput:o,heightInput:r}=(0,h.refs)(this.editor),s="widthInput"===(0,c.attr)(n,"data-ref"),a=parseInt(n.value,10),l=s?this.o.min_width:this.o.min_height,u=s?this.o.min_height:this.o.min_width;a>l&&((0,d.css)(this.image,s?"width":"height",a),this.resizeUseRatio&&(i=s?Math.round(a/this.ratio):Math.round(a*this.ratio))>u&&((0,d.css)(this.image,s?"height":"width",i),s?r.value=i.toString():o.value=i.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){this.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),this.clicked=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.activeTab===_?(this.top_x=(0,d.css)(this.cropHandler,"left"),this.top_y=(0,d.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){if(!this.clicked)return;let{widthInput:i,heightInput:n}=(0,h.refs)(this.editor);this.diff_x=t.clientX-this.start_x,this.diff_y=t.clientY-this.start_y,this.activeTab===y&&this.resizeUseRatio||this.activeTab===_&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===y?(this.new_w>this.o.resizeMinWidth&&((0,d.css)(this.image,"width",this.new_w+"px"),i.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,d.css)(this.image,"height",this.new_h+"px"),n.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,d.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,d.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,d.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,`.${v}`).off(`.${v}`),super.destruct())}constructor(t){super(t),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=y,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{let t=this.crop_box.parentNode,i=.8*t.offsetWidth,n=.8*t.offsetHeight,o=i,r=n,{naturalWidth:s,naturalHeight:a}=this;i>s&&n>a?(o=s,r=a):this.ratio>i/n?(o=i,r=i/s*a):(o=n/a*s,r=n),(0,d.css)(this.crop_box,{width:o,height:r})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();let t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=o.calcValueByPercent(t,this.o.cropDefaultWidth);let i=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=o.calcValueByPercent(i,this.o.cropDefaultHeight),(0,d.css)(this.cropHandler,{backgroundImage:"url("+(0,c.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:i/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;let t=this.cropImage.offsetWidth/this.naturalWidth,i=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,d.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,d.css)(this.cropHandler,"top")/i,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/i,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{let t=this,{widthInput:i,heightInput:n}=(0,h.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],`mousedown.${v}`,this.onResizeHandleMouseDown).on(this.j.ow,`resize.${v}`,()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")}),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${v}__slider-title`)),"click",this.onTitleModeClick).on([i,n],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:r}=(0,h.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),r&&r.addEventListener("change",()=>{this.cropUseRatio=r.checked}),t.j.e.on(t.resizeHandler,"updatesize",()=>{(0,d.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let i=(0,d.css)(t.cropHandler,"left"),n=(0,d.css)(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,r=t.cropHandler.offsetHeight;i<0&&(i=0),n<0&&(n=0),i+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-i,t.cropUseRatio&&(r=o/t.ratio)),n+r>t.cropImage.offsetHeight&&(r=t.cropImage.offsetHeight-n,t.cropUseRatio&&(o=r*t.ratio)),(0,d.css)(t.cropHandler,{width:o,height:r,left:i,top:n,backgroundPosition:-i-1+"px "+(-n-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),Object.values(t.buttons).forEach(o=>{o.onAction(()=>{let r={action:t.activeTab,box:t.activeTab===y?t.resizeBox:t.cropBox};switch(o){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",i=>{if(!(0,u.trim)(i))return t.j.alert("The name should not be empty"),!1;t.onSave(i,r,t.hide,i=>{t.j.alert(i.message)})});break;case t.buttons.save:t.onSave(void 0,r,t.hide,i=>{t.j.alert(i.message)});break;case t.buttons.reset:t.activeTab===y?((0,d.css)(t.image,{width:null,height:null}),i.value=t.naturalWidth.toString(),n.value=t.naturalHeight.toString(),t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:m.Config.defaultOptions.imageeditor;const i=this.options;this.resizeUseRatio=i.resizeUseRatio,this.cropUseRatio=i.cropUseRatio,this.buttons={reset:(0,f.Button)(this.j,"update","Reset"),save:(0,f.Button)(this.j,"save","Save"),saveas:(0,f.Button)(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=i.resize?y:_,this.editor=(0,g.form)(this.j,this.options);const{resizeBox:n,cropBox:r}=(0,h.refs)(this.editor);this.resize_box=n,this.crop_box=r,this.sizes=this.editor.querySelector(`.${v}__area.${v}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${v}__resizer`),this.cropHandler=this.editor.querySelector(`.${v}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}};function w(t,i,n,o,r,s){return this.getInstance("ImageEditor",this.o).open(t,(t,a,l,u)=>(0,p.call)("resize"===a.action?this.dataProvider.resize:this.dataProvider.crop,n,o,i,t,a.box).then(t=>{t&&(l(),r&&r("string"==typeof t?t:void 0))}).catch(t=>{u(t),s&&s(t)}))}C.calcValueByPercent=(t,i)=>{let n,o=i.toString(),r=parseFloat(t.toString());return(n=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(n=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(r*(parseFloat(n[1])/100)):r||0},b([s.autobind],C.prototype,"hide",null),b([s.autobind],C.prototype,"open",null),b([s.autobind],C.prototype,"onTitleModeClick",null),b([(0,s.debounce)(),s.autobind],C.prototype,"onChangeSizeInput",null),b([s.autobind],C.prototype,"onResizeHandleMouseDown",null),b([s.autobind],C.prototype,"onGlobalMouseUp",null),b([(0,s.throttle)(10)],C.prototype,"onGlobalMouseMove",null),C=o=b([s.component],C)},22461:function(t,i,n){"use strict";n.d(i,{form:function(){return l}});var o=n(67510);let r="jodit-image-editor",s=o.Icon.get.bind(o.Icon),a=(t,i="jodti-image-editor_active")=>t?i:"",l=(t,i)=>{let n=t.i18n.bind(t),o=(t,i,o=!0)=>`<div class="jodit-form__group">
49
+ </a>`},ajax:(o=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},u.Config.prototype.defaultAjaxOptions),r=r={url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData(t){return t},process(t){return t}},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))}),o),create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},u.Config.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:t=>!t.dataProvider.canI("FileUpload"),getContent:(t,i)=>{let n=new l.UIFileInput(t,{tooltip:i.control.tooltip,onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",n.container),n.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:t=>!t.state.activeElements.length||!t.dataProvider.canI("FileRemove"),exec:t=>{t.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:t=>{t.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:t=>!t.state.activeElements.length,exec:t=>{t.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:t=>{let i=t.state.activeElements;return 1!==i.length||!i[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec:t=>{t.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:t=>"tiles"===t.state.view,exec:t=>{t.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:t=>"list"===t.state.view,exec:t=>{t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:(t,i)=>{let n=i.container.querySelector(".jodit-input");if(n)return n;let o=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return o.value=t.state.filterWord,t.e.on(o,"keydown mousedown",t.async.debounce(()=>{t.e.fire("filter.filebrowser",o.value)},t.defaultTimeout)),o}},sort:{isInput:!0,getContent:t=>{let i=t.c.fromHTML(`<select class="jodit-input jodit-select"><option value="changed-asc">${t.i18n("Sort by changed")} (⬆)</option><option value="changed-desc">${t.i18n("Sort by changed")} (⬇)</option><option value="name-asc">${t.i18n("Sort by name")} (⬆)</option><option value="name-desc">${t.i18n("Sort by name")} (⬇)</option><option value="size-asc">${t.i18n("Sort by size")} (⬆)</option><option value="size-desc">${t.i18n("Sort by size")} (⬇)</option></select>`);return i.value=t.state.sortBy,t.e.on("sort.filebrowser",t=>{i.value!==t&&(i.value=t)}).on(i,"change",()=>{t.e.fire("sort.filebrowser",i.value)}),i}}}},11787:function(t,i,n){"use strict";n.d(i,{DEFAULT_SOURCE_NAME:function(){return g},default:function(){return v}});var o=n(82758),r=n(45219),s=n(23282),a=n(70091),l=n(68934),u=n(89890),c=n(3703),d=n(54079),h=n(159);function p(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function f(t){return function(){var i=this,n=arguments;return new Promise(function(o,r){var s=t.apply(i,n);function a(t){p(s,o,r,a,l,"next",t)}function l(t){p(s,o,r,a,l,"throw",t)}a(void 0)})}}var m=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let g="default",b=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);class v{get o(){return this.options}get(t){let i=this.__ajaxInstances;if(i.has(t)){let n=i.get(t);null==n||n.abort(),i.delete(t)}let n=(0,l.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,l.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));n.prepareData&&(n.data=n.prepareData.call(this,n.data));let o=new d.Ajax(n);i.set(t,o);let r=o.send();return r.finally(()=>{o.destruct(),i.delete(t),this.progressHandler(100)}).catch(()=>null),r.then(t=>t.json()).then(t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t})}onProgress(t){this.progressHandler=t}permissions(t,i){return f(function*(){return this.o.permissions&&(this.o.permissions.data.path=t,this.o.permissions.data.source=i,this.o.permissions.url)?this.get("permissions").then(t=>{if(this.parent.isInDestruct)throw(0,u.abort)();let i=this.o.permissions.process;if(i||(i=this.o.ajax.process),i){let n=i.call(self,t);n.data.permissions&&(this.parent.events.fire(this,"changePermissions",this.__currentPermissions,n.data.permissions),this.__currentPermissions=n.data.permissions)}return this.__currentPermissions}):null}).call(this)}canI(t){let i="allow"+t;if(!o.IS_PROD&&!b.has(i))throw(0,u.error)("Wrong action "+t);let n=this.o.permissionsPresets[i];return void 0!==n?n:null==this.__currentPermissions||void 0===this.__currentPermissions[i]||this.__currentPermissions[i]}__items(t,i,n,o){let r=this.options;return r.items?(r.items.data.path=t,r.items.data.source=i,r.items.data.mods=n,this.get("items").then(t=>{let i=this.o.items.process;return i||(i=this.o.ajax.process),i&&(t=i.call(self,t)),o(t)})):Promise.reject(Error("Set Items api options"))}items(t,i,n={}){return this.__items(t,i,n,t=>this.__generateItemsList(t.data.sources,n))}itemsEx(t,i,n={}){return this.__items(t,i,n,t=>({items:this.__generateItemsList(t.data.sources,n),loadedTotal:t.data.sources.reduce((t,i)=>t+i.files.length,0)}))}__generateItemsList(t,i={}){let n=[],o=t=>{var n;return!(null==(n=i.filterWord)?void 0:n.length)||void 0===this.o.filter||this.o.filter(t,i.filterWord)};return t.forEach(t=>{if(t.files&&t.files.length){let{sort:r}=this.o;(0,s.isFunction)(r)&&i.sortBy&&t.files.sort((t,n)=>r(t,n,i.sortBy)),t.files.forEach(r=>{var s,a;o(r)&&("folder"===r.type||!i.onlyImages||void 0===r.isImage||r.isImage)&&n.push(h.FileBrowserItem.create((s=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},r),a=a={sourceName:t.name,source:t},Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(a)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(a)).forEach(function(t){Object.defineProperty(s,t,Object.getOwnPropertyDescriptor(a,t))}),s)))})}}),n}tree(t,i){return f(function*(){return(t=(0,a.normalizeRelativePath)(t),this.o.folder)?(yield this.permissions(t,i),this.o.folder.data.path=t,this.o.folder.data.source=i,this.get("folder").then(t=>{let i=this.o.folder.process;return i||(i=this.o.ajax.process),i&&(t=i.call(self,t)),t.data.sources})):Promise.reject(Error("Set Folder Api options"))}).call(this)}getPathByUrl(t){return(0,c.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then(t=>{if(this.isSuccess(t))return t.data;throw(0,u.error)(this.getMessage(t))})}createFolder(t,i,n){let{create:o}=this.o;if(!o)throw(0,u.error)("Set Create api options");return o.data.source=n,o.data.path=i,o.data.name=t,this.get("create").then(t=>{if(this.isSuccess(t))return!0;throw(0,u.error)(this.getMessage(t))})}move(t,i,n,o){let r=o?"fileMove":"folderMove",s=this.options[r];if(!s)throw(0,u.error)("Set Move api options");return s.data.from=t,s.data.path=i,s.data.source=n,this.get(r).then(t=>{if(this.isSuccess(t))return!0;throw(0,u.error)(this.getMessage(t))})}__remove(t,i,n,o){let r=this.o[t];if(!r)throw(0,u.error)(`Set "${t}" api options`);return r.data.path=i,r.data.name=n,r.data.source=o,this.get(t).then(t=>(r.process&&(t=r.process.call(this,t)),this.getMessage(t)))}fileRemove(t,i,n){return this.__remove("fileRemove",t,i,n)}folderRemove(t,i,n){return this.__remove("folderRemove",t,i,n)}__rename(t,i,n,o,r){let s=this.o[t];if(!s)throw(0,u.error)(`Set "${t}" api options`);return s.data.path=i,s.data.name=n,s.data.newname=o,s.data.source=r,this.get(t).then(t=>(s.process&&(t=s.process.call(self,t)),this.getMessage(t)))}folderRename(t,i,n,o){return this.__rename("folderRename",t,i,n,o)}fileRename(t,i,n,o){return this.__rename("fileRename",t,i,n,o)}__changeImage(t,i,n,o,r,s){this.o[t]||(this.o[t]={data:{}});let a=this.o[t];return void 0===a.data&&(a.data={action:t}),a.data.newname=r||o,s&&(a.data.box=s),a.data.path=i,a.data.name=o,a.data.source=n,this.get(t).then(t=>t.data.newPath||!0)}crop(t,i,n,o,r){return this.__changeImage("crop",t,i,n,o,r)}resize(t,i,n,o,r){return this.__changeImage("resize",t,i,n,o,r)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.__ajaxInstances.forEach(t=>t.destruct()),this.__ajaxInstances.clear()}constructor(t,i){this.parent=t,this.options=i,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=t=>{}}}m([r.autobind],v.prototype,"onProgress",null),m([r.autobind],v.prototype,"permissions",null),m([r.autobind],v.prototype,"canI",null),m([r.autobind],v.prototype,"items",null),m([r.autobind],v.prototype,"itemsEx",null),m([r.autobind],v.prototype,"tree",null),m([r.autobind],v.prototype,"getPathByUrl",null),m([r.autobind],v.prototype,"createFolder",null),m([r.autobind],v.prototype,"move",null),m([r.autobind],v.prototype,"fileRemove",null),m([r.autobind],v.prototype,"folderRemove",null),m([r.autobind],v.prototype,"folderRename",null),m([r.autobind],v.prototype,"fileRename",null),m([r.autobind],v.prototype,"crop",null),m([r.autobind],v.prototype,"resize",null),m([r.autobind],v.prototype,"getMessage",null),m([r.autobind],v.prototype,"isSuccess",null),m([r.autobind],v.prototype,"destruct",null)},63399:function(t,i,n){"use strict";n.d(i,{makeContextMenu:function(){return a},makeDataProvider:function(){return s}});var o=n(80870),r=n(11787);function s(t,i){return new r.default(t,i)}function a(t){return new o.ContextMenu(t)}},44450:function(t,i,n){"use strict";function o(t,i,n){return t.dataProvider.fileRemove(t.state.currentPath,i,n).then(n=>{t.status(n||t.i18n('File "%s" was deleted',i),!0)}).catch(t.status)}n.d(i,{deleteFile:function(){return o}})},30465:function(t,i,n){"use strict";function o(t){return t.files.setMod("active",!0),t.files.setMod("loading",!0),t.dataProvider.items(t.state.currentPath,t.state.currentSource,{sortBy:t.state.sortBy,onlyImages:t.state.onlyImages,filterWord:t.state.filterWord}).then(i=>{i&&(t.state.elements=i,t.state.activeElements=[])}).catch(t.status).finally(()=>t.files.setMod("loading",!1))}n.d(i,{loadItems:function(){return o}})},20201:function(t,i,n){"use strict";n.d(i,{loadTree:function(){return a}});var o=n(22732),r=n(30465);function s(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function a(t){var i;return(i=function*(){t.tree.setMod("active",!0),o.Dom.detach(t.tree.container);let i=(0,r.loadItems)(t);return t.o.showFoldersPanel?(t.tree.setMod("loading",!0),Promise.all([t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then(i=>{t.state.sources=i}).catch(t.status).finally(()=>t.tree.setMod("loading",!1)),i])):(t.tree.setMod("active",!1),i)},function(){var t=this,n=arguments;return new Promise(function(o,r){var a=i.apply(t,n);function l(t){s(a,o,r,l,u,"next",t)}function u(t){s(a,o,r,l,u,"throw",t)}l(void 0)})})()}},75330:function(t,i,n){"use strict";n.d(i,{FileBrowser:function(){return F}});var o=n(91907),r=n(82758),s=n(65478),a=n(37133),l=n(3827),u=n(21537),c=n(12081),d=n(70231),h=n(84075),p=n(6441);n(61251);var f=n(30465),m=n(20201),g=n(73948),b=n(33281),v=n(94538),y=n(11787),_=n(63399),C=n(8172),w=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let F=class t extends h.ViewWithToolbar{className(){return"FileBrowser"}get dataProvider(){return(0,_.makeDataProvider)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){let i=[],n=[];this.state.activeElements.forEach(t=>{let o=t.fileURL;o&&(i.push(o),n.push(t.isImage||!1))}),this.close(),(0,u.isFunction)(t)&&t({baseurl:"",files:i,isImages:n}),this.close()}return!1}}get _dialog(){var t;let i=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!=(t=this.o.headerButtons)?t:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(t=>i.events.on(i,t,()=>this.e.fire(t))),i.setSize(this.o.width,this.o.height),i}get storage(){return c.Storage.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,i){!t||(0,u.isAbortError)(t)||((0,u.isString)(t)||(t=t.message),(0,u.isString)(t)&&(0,u.trim)(t).length&&this.message.message(t,i?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,i=!1){return this.state.onlyImages=i,this.async.promise((i,n)=>{var o;if(!this.o.items||!this.o.items.url)throw(0,u.error)("Need set options.filebrowser.ajax.url");let s=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",()=>{let i=new Date().getTime();i-s<r.EMULATE_DBLCLICK_TIMEOUT&&this.onSelect(t)(),s=i}).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));let a=this.c.div();null==(o=this.toolbar)||o.appendTo(a),this.__updateToolbarButtons(),this._dialog.open(this.browser,a),this.e.fire("sort.filebrowser",this.state.sortBy),(0,m.loadTree)(this).then(i,n).finally(()=>{var t;this.isInDestruct||null==(t=this===null||void 0===this?void 0:this.e)||t.fire("fileBrowserReady.filebrowser")})}).catch(t=>{if(!(0,u.isAbortError)(t)&&!r.IS_PROD)throw t})}__getButtons(){var t;return(null!=(t=this.o.buttons)?t:[]).filter(t=>{if(!(0,u.isString)(t))return!0;switch(t){case"filebrowser.upload":return this.dataProvider.canI("FileUpload");case"filebrowser.edit":return this.dataProvider.canI("ImageResize")||this.dataProvider.canI("ImageCrop");case"filebrowser.remove":return this.dataProvider.canI("FileRemove")}return!0})}initUploader(t){var i;let n=this,o=null==(i=null==t?void 0:t.options)?void 0:i.uploader,r=(0,u.ConfigProto)(o||{},p.Config.defaultOptions.uploader),s=()=>(0,f.loadItems)(this);n.uploader=n.getInstance("Uploader",r),n.uploader.setPath(n.state.currentPath).setSource(n.state.currentSource).bind(n.browser,s,n.errorHandler),this.state.on(["change.currentPath","change.currentSource"],()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)}),n.e.on("bindUploader.filebrowser",t=>{n.uploader.bind(t,s,n.errorHandler)})}destruct(){var t;!this.isInDestruct&&(null==(t=(0,s.cached)(this,"_dialog"))||t.destruct(),super.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}__updateToolbarButtons(){var t;let i=this.__getButtons();!function(t,i){if(t.length!==i.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==i[n])return!1;return!0}(this.__prevButtons,i)&&(this.__prevButtons=i,null==(t=this.toolbar)||t.build(i))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new C.FileBrowserTree(this),this.files=new C.FileBrowserFiles(this),this.state=(0,l.observable)({currentPath:"",currentSource:y.DEFAULT_SOURCE_NAME,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,u.isAbortError)(t)||(t instanceof Error?this.status(this.i18n(t.message)):this.status(this.dataProvider.getMessage(t)))},this.close=()=>{this._dialog.close()},this.__prevButtons=[],this.attachEvents(t),this.options=(0,u.ConfigProto)(t||{},p.Config.defaultOptions.filebrowser),this.browser.component=this,this.container=this.browser,this.o.showFoldersPanel&&this.browser.appendChild(this.tree.container),this.browser.appendChild(this.files.container),this.browser.appendChild(this.status_line),b.selfListeners.call(this),g.nativeListeners.call(this),v.stateListeners.call(this),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{null!=this.options[t]&&(this.options[t]=(0,u.ConfigProto)(this.options[t],this.o.ajax))});const{storeView:i,storeSortBy:n,storeLastOpenedFolder:r}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},s=i&&this.storage.get("view");s&&null==this.o.view?this.state.view="list"===s?"list":"tiles":this.state.view="list"===this.o.view?"list":"tiles",this.files.setMod("view",this.state.view);const a=n&&this.storage.get("sortBy");if(a){const t=a.split("-");this.state.sortBy=["changed","name","size"].includes(t[0])?a:"changed-desc"}else this.state.sortBy=this.o.sortBy||"changed-desc";if(r){const t=this.storage.get("currentPath"),i=this.storage.get("currentSource");this.state.currentPath=null!=t?t:"",this.state.currentSource=null!=i?i:""}this.initUploader(this),this.setStatus(o.STATUSES.ready)}};w([s.cache],F.prototype,"dataProvider",null),w([s.cache],F.prototype,"_dialog",null),w([s.cache],F.prototype,"storage",null),w([s.autobind],F.prototype,"status",null),w([s.autobind],F.prototype,"open",null),w([(0,a.watch)("dataProvider:changePermissions")],F.prototype,"__updateToolbarButtons",null),F=w([(0,s.derive)(d.Dlgs)],F)},78513:function(t,i,n){"use strict";n.d(i,{FileBrowser:function(){return o.FileBrowser}});var o=n(75330)},73948:function(t,i,n){"use strict";n.d(i,{nativeListeners:function(){return c}});var o=n(29960),r=n(15456),s=n(41457),a=n(32118),l=n(21735),u=n(20201);function c(){let t=!1,i=(0,a.elementsMap)(this),n=this;n.e.on(n.tree.container,"dragstart",i=>{let o=(0,l.getItem)(i.target,n.container);o&&n.o.moveFolder&&(t=o)}).on(n.tree.container,"drop",i=>{if((n.o.moveFile||n.o.moveFolder)&&t){let r=(0,o.attr)(t,"-path")||"";if(!n.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item"))||t.classList.contains(this.files.getFullElName("item"))&&(r+=(0,o.attr)(t,"-name"),!n.o.moveFile))return!1;let s=(0,l.getItem)(i.target,n.container);s&&(n.dataProvider.move(r,(0,o.attr)(s,"-path")||"",(0,o.attr)(s,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then(()=>(0,u.loadTree)(this)).catch(n.status),t=!1)}}).on(n.files.container,"contextmenu",(0,s.default)(n)).on(n.files.container,"click",t=>{(0,r.ctrlKey)(t)||(this.state.activeElements=[])}).on(n.files.container,"click",t=>{let o=(0,l.getItem)(t.target,n.container);if(!o)return;let s=(0,l.elementToItem)(o,i);if(s)return(0,r.ctrlKey)(t)?n.state.activeElements=[...n.state.activeElements,s]:n.state.activeElements=[s],t.stopPropagation(),!1}).on(n.files.container,"dragstart",i=>{if(n.o.moveFile){let o=(0,l.getItem)(i.target,n.container);o&&(t=o)}}).on(n.container,"drop",t=>t.preventDefault())}},33281:function(t,i,n){"use strict";n.d(i,{selfListeners:function(){return d}});var o=n(21537),r=n(27613),s=n(11787),a=n(44450),l=n(30465),u=n(20201),c=n(50050);function d(){let t=this.state,i=this.dataProvider,n=this;n.e.on("view.filebrowser",i=>{i!==t.view&&(t.view=i)}).on("sort.filebrowser",i=>{i!==t.sortBy&&(t.sortBy=i,(0,l.loadItems)(n))}).on("filter.filebrowser",i=>{i!==t.filterWord&&(t.filterWord=i,(0,l.loadItems)(n))}).on("openFolder.filebrowser",t=>{let i;i=".."===t.name?t.path.split("/").filter(t=>t.length).slice(0,-1).join("/"):(0,o.normalizePath)(t.path,t.name),n.state.currentPath=i,n.state.currentSource="."===t.name?s.DEFAULT_SOURCE_NAME:t.source}).on("removeFolder.filebrowser",t=>{n.confirm("Are you sure?","Delete",o=>{o&&i.folderRemove(t.path,t.name,t.source).then(t=>(n.status(t,!0),(0,u.loadTree)(n))).catch(n.status)})}).on("renameFolder.filebrowser",t=>{n.prompt("Enter new name","Rename",o=>{if(!(0,r.isValidName)(o))return n.status(n.i18n("Enter new name")),!1;i.folderRename(t.path,t.name,o,t.source).then(t=>(n.state.activeElements=[],n.status(t,!0),(0,u.loadTree)(n))).catch(n.status)},"type name",t.name)}).on("addFolder.filebrowser",t=>{n.prompt("Enter Directory name","Create directory",o=>{i.createFolder(o,t.path,t.source).then(()=>(0,u.loadTree)(n)).catch(n.status)},"type name")}).on("fileRemove.filebrowser",()=>{n.state.activeElements.length&&n.confirm("Are you sure?","",t=>{if(t){let t=[];n.state.activeElements.forEach(i=>{t.push((0,a.deleteFile)(n,i.file||i.name||"",i.sourceName))}),n.state.activeElements=[],Promise.all(t).then(()=>(0,u.loadTree)(n).catch(n.status),n.status)}})}).on("edit.filebrowser",()=>{if(1===n.state.activeElements.length){let[t]=this.state.activeElements;c.openImageEditor.call(n,t.fileURL,t.file||"",t.path,t.sourceName)}}).on("fileRename.filebrowser",(t,o,s)=>{1===n.state.activeElements.length&&n.prompt("Enter new name","Rename",a=>{if(!(0,r.isValidName)(a))return n.status(n.i18n("Enter new name")),!1;i.fileRename(o,t,a,s).then(t=>{n.state.activeElements=[],n.status(t,!0),(0,l.loadItems)(n)}).catch(n.status)},"type name",t)}).on("update.filebrowser",()=>{(0,u.loadTree)(this).then(this.status,this.status)})}},94538:function(t,i,n){"use strict";n.d(i,{stateListeners:function(){return u}});var o=n(22732),r=n(71521),s=n(10830),a=n(32118),l=n(20201);function u(){let t=(0,a.elementsMap)(this),{state:i,files:n,create:u,options:c}=this,d=i=>{let n=i.uniqueHashKey;if(t[n])return t[n].elm;let o=u.fromHTML(c.getThumbTemplate.call(this,i,i.source,i.sourceName.toString()));return o.dataset.key=n,t[n]={item:i,elm:o},t[n].elm};i.on(["change.currentPath","change.currentSource"],this.async.debounce(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeLastOpenedFolder&&this.storage.set("currentPath",this.state.currentPath).set("currentSource",this.state.currentSource),(0,l.loadTree)(this).catch(this.status)},this.defaultTimeout)).on("beforeChange.activeElements",()=>{i.activeElements.forEach(i=>{let{elm:o}=t[i.uniqueHashKey];o&&o.classList.remove(n.getFullElName("item","active",!0))})}).on("change.activeElements",()=>{this.e.fire("changeSelection"),i.activeElements.forEach(i=>{let{elm:o}=t[i.uniqueHashKey];o&&o.classList.add(n.getFullElName("item","active",!0))})}).on("change.view",()=>{n.setMod("view",i.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",i.view)}).on("change.sortBy",()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",i.sortBy)}).on("change.elements",this.async.debounce(()=>{o.Dom.detach(n.container),i.elements.length?i.elements.forEach(t=>{this.files.container.appendChild(d(t))}):n.container.appendChild(u.div(this.componentName+"_no-files_true",this.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(()=>{o.Dom.detach(this.tree.container),i.sources.forEach(t=>{let i=t.name;if(i&&"default"!==i&&this.tree.container.appendChild(u.div(this.tree.getFullElName("source-title"),i)),t.folders.forEach(n=>{let o=u.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,r.normalizePath)(t.path,n+"/"),"data-name":n,"data-source":i,"data-source-path":t.path},u.span(this.tree.getFullElName("item-title"),n)),a=o=>s=>{this.e.fire(`${o}.filebrowser`,{name:n,path:(0,r.normalizePath)(t.path+"/"),source:i}),s.stopPropagation(),s.preventDefault()};if(this.e.on(o,"click",a("openFolder")),this.tree.container.appendChild(o),".."!==n&&"."!==n){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){let t=(0,s.Button)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});t.onAction(a("renameFolder")),o.appendChild(t.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){let t=(0,s.Button)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});t.onAction(a("removeFolder")),o.appendChild(t.container)}}}),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){let n=(0,s.Button)(this,"plus","Add folder","secondary");n.onAction(()=>{this.e.fire("addFolder",{path:(0,r.normalizePath)(t.path+"/"),source:i})}),this.tree.append(n)}})},this.defaultTimeout))}},97379:function(t,i,n){"use strict";n.d(i,{FileBrowserFiles:function(){return r}});var o=n(67510);class r extends o.UIGroup{className(){return"FileBrowserFiles"}}},8172:function(t,i,n){"use strict";n.d(i,{FileBrowserFiles:function(){return o.FileBrowserFiles},FileBrowserTree:function(){return r.FileBrowserTree}});var o=n(97379),r=n(8193)},8193:function(t,i,n){"use strict";n.d(i,{FileBrowserTree:function(){return r}});var o=n(67510);class r extends o.UIGroup{className(){return"FileBrowserTree"}}},92643:function(t,i,n){"use strict";n.d(i,{Command:function(){return o}});class o{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,i,n,o){this.oldValue=t,this.newValue=i,this.history=n,this.tick=o}}},78818:function(t,i,n){"use strict";n.d(i,{History:function(){return c}});var o=n(80480),r=n(81577),s=n(6441),a=n(92643),l=n(52604),u=n(57034);s.Config.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class c extends o.ViewComponent{className(){return"History"}redo(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canRedo(){return this.__stack.canRedo()}undo(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}canUndo(){return this.__stack.canUndo()}clear(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}get length(){return this.__stack.length}get startValue(){return this.__startValue}set startValue(t){this.__startValue=t}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){let i=this.snapshot.make();if(!l.Snapshot.equal(i,this.startValue)){let n=new a.Command(this.startValue,i,this,this.updateTick);if(t){let t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(n)}else this.__stack.push(n);this.startValue=i,this.fireChangeStack()}}fireChangeStack(){var t;this.j&&!this.j.isInDestruct&&(null==(t=this.j.events)||t.fire("changeStack"))}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}constructor(t,i=new u.Stack(t.o.history.maxHistoryLength),n=new l.Snapshot(t)){super(t),this.updateTick=0,this.__stack=i,this.snapshot=n,t.o.history.enable&&t.e.on("afterAddPlace.history",()=>{this.isInDestruct||(this.startValue=this.snapshot.make(),t.events.on("internalChange internalUpdate",()=>{this.startValue=this.snapshot.make()}).on(t.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(t=>t+".history").join(" "),()=>{this.startValue.html===this.j.getNativeEditorValue()&&(this.startValue=this.snapshot.make())}).on(this,"change.history",this.onChange))})}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.debounce)()],c.prototype,"onChange",null)},52604:function(t,i,n){"use strict";n.d(i,{Snapshot:function(){return a}});var o=n(91907),r=n(82758),s=n(2748);class a extends o.ViewComponent{className(){return"Snapshot"}static equal(t,i){return t.html===i.html&&JSON.stringify(t.range)===JSON.stringify(i.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;let i=t.parentNode.childNodes,n=0,o=null;for(let r=0;r<i.length;r+=1){if(!o||this.isIgnoredNode(i[r])||s.Dom.isText(o)&&s.Dom.isText(i[r])||(n+=1),i[r]===t)return n;o=i[r]}return 0}static strokeOffset(t,i){for(;s.Dom.isText(t);)t=t.previousSibling,s.Dom.isText(t)&&t.nodeValue&&(i+=t.nodeValue.length);return i}calcHierarchyLadder(t){let i=[];if(!t||!t.parentNode||!s.Dom.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!a.isIgnoredNode(t)&&i.push(a.countNodesBeforeInParent(t)),t=t.parentNode;return i.reverse()}getElementByLadder(t){let i=this.j.editor,n;for(n=0;i&&n<t.length;n+=1)i=i.childNodes[t[n]];return i}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0),this.__levelOfTransaction+=1;try{t()}catch(t){if(!r.IS_PROD)throw t}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}make(){let t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.__getCleanedEditorValue(this.j.editor);let i=this.j.s.sel;if(i&&i.rangeCount){let n=i.getRangeAt(0),o=this.calcHierarchyLadder(n.startContainer),r=this.calcHierarchyLadder(n.endContainer),s=a.strokeOffset(n.startContainer,n.startOffset),l=a.strokeOffset(n.endContainer,n.endOffset);o.length||n.startContainer===this.j.editor||(s=0),r.length||n.endContainer===this.j.editor||(l=0),t.range={startContainer:o,startOffset:s,endContainer:r,endOffset:l}}return t}restore(t){this.transaction(()=>{let i=this.storeScrollState();this.__getCleanedEditorValue(this.j.editor)!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(i)})}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){let{j:i}=this,{ow:n}=i;n.scrollTo(n.scrollX,t[0]),i.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){let i=this.j.ed.createRange();i.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),i.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(i)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),r.IS_PROD}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return s.Dom.isText(t)&&!t.nodeValue||s.Dom.isTemporary(t)}__getCleanedEditorValue(t){let i=t.cloneNode(!0);return s.Dom.temporaryList(i).forEach(s.Dom.unwrap),i.innerHTML}constructor(){super(...arguments),this.__isBlocked=!1,this.__levelOfTransaction=0}}},57034:function(t,i,n){"use strict";n.d(i,{Stack:function(){return o}});class o{get length(){return this.commands.length}clearRedo(){this.commands.length=this.stackPosition+1}clear(){this.commands.length=0,this.stackPosition=-1}push(t){this.clearRedo(),this.commands.push(t),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}replace(t){this.commands[this.stackPosition]=t}current(){return this.commands[this.stackPosition]}undo(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}redo(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}canUndo(){return this.stackPosition>=0}canRedo(){return this.stackPosition<this.commands.length-1}constructor(t){this.size=t,this.commands=[],this.stackPosition=-1}}},62489:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(49922),a=n(72144);r.Config.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},o.Icon.set("crop",s.default).set("resize",a.default)},49922:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> '},72144:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> '},50050:function(t,i,n){"use strict";n.d(i,{ImageEditor:function(){return C},openImageEditor:function(){return w}});var o,r=n(91907),s=n(65478),a=n(22732),l=n(4510),u=n(49055),c=n(29960),d=n(41180),h=n(76078),p=n(37790),f=n(62843),m=n(6441);n(62489);var g=n(22461),b=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let v="jodit-image-editor",y="resize",_="crop",C=o=class t extends r.ViewComponent{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,i){return this.j.async.promise(n=>{let o=new Date().getTime();this.image=this.j.c.element("img"),(0,h.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.Dom.safeRemove),(0,h.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.Dom.safeRemove),(0,d.css)(this.cropHandler,"background","transparent"),this.onSave=i,this.resize_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),this.crop_box.appendChild(this.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(t)?t+="&_tst="+o:t+="?_tst="+o,this.image.setAttribute("src",t),this._dialog.open();let{widthInput:r,heightInput:s}=(0,h.refs)(this.editor),l=()=>{this.isDestructed||(this.image.removeEventListener("load",l),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=this.naturalWidth.toString(),s.value=this.naturalHeight.toString(),this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),a.Dom.safeRemove.apply(null,(0,h.$$)(".jodit-icon_loader",this.editor)),this.activeTab===_&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),n(this._dialog))};this.image.addEventListener("load",l),this.image.complete&&l()})}onTitleModeClick(t){let i=t.target,n=null==i?void 0:i.parentElement;if(!n)return;(0,h.$$)(`.${v}__slider,.${v}__area`,this.editor).forEach(t=>t.classList.remove(`${v}_active`)),n.classList.add(`${v}_active`),this.activeTab=(0,c.attr)(n,"-area")||y;let o=this.editor.querySelector(`.${v}__area.${v}__area_`+this.activeTab);o&&o.classList.add(`${v}_active`),this.activeTab===_&&this.showCrop()}onChangeSizeInput(t){let i,n=t.target,{widthInput:o,heightInput:r}=(0,h.refs)(this.editor),s="widthInput"===(0,c.attr)(n,"data-ref"),a=parseInt(n.value,10),l=s?this.o.min_width:this.o.min_height,u=s?this.o.min_height:this.o.min_width;a>l&&((0,d.css)(this.image,s?"width":"height",a),this.resizeUseRatio&&(i=s?Math.round(a/this.ratio):Math.round(a*this.ratio))>u&&((0,d.css)(this.image,s?"height":"width",i),s?r.value=i.toString():o.value=i.toString())),this.j.e.fire(this.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){this.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),this.clicked=!0,this.start_x=t.clientX,this.start_y=t.clientY,this.activeTab===_?(this.top_x=(0,d.css)(this.cropHandler,"left"),this.top_y=(0,d.css)(this.cropHandler,"top"),this.width=this.cropHandler.offsetWidth,this.height=this.cropHandler.offsetHeight):(this.width=this.image.offsetWidth,this.height=this.image.offsetHeight),this.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}onGlobalMouseUp(t){this.clicked&&(this.clicked=!1,t.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}onGlobalMouseMove(t){if(!this.clicked)return;let{widthInput:i,heightInput:n}=(0,h.refs)(this.editor);this.diff_x=t.clientX-this.start_x,this.diff_y=t.clientY-this.start_y,this.activeTab===y&&this.resizeUseRatio||this.activeTab===_&&this.cropUseRatio?this.diff_x?(this.new_w=this.width+this.diff_x,this.new_h=Math.round(this.new_w/this.ratio)):(this.new_h=this.height+this.diff_y,this.new_w=Math.round(this.new_h*this.ratio)):(this.new_w=this.width+this.diff_x,this.new_h=this.height+this.diff_y),this.activeTab===y?(this.new_w>this.o.resizeMinWidth&&((0,d.css)(this.image,"width",this.new_w+"px"),i.value=this.new_w.toString()),this.new_h>this.o.resizeMinHeight&&((0,d.css)(this.image,"height",this.new_h+"px"),n.value=this.new_h.toString()),this.j.e.fire(this.resizeHandler,"updatesize")):(this.target!==this.cropHandler?(this.top_x+this.new_w>this.cropImage.offsetWidth&&(this.new_w=this.cropImage.offsetWidth-this.top_x),this.top_y+this.new_h>this.cropImage.offsetHeight&&(this.new_h=this.cropImage.offsetHeight-this.top_y),(0,d.css)(this.cropHandler,{width:this.new_w,height:this.new_h})):(this.top_x+this.diff_x+this.cropHandler.offsetWidth>this.cropImage.offsetWidth&&(this.diff_x=this.cropImage.offsetWidth-this.top_x-this.cropHandler.offsetWidth),(0,d.css)(this.cropHandler,"left",this.top_x+this.diff_x),this.top_y+this.diff_y+this.cropHandler.offsetHeight>this.cropImage.offsetHeight&&(this.diff_y=this.cropImage.offsetHeight-this.top_y-this.cropHandler.offsetHeight),(0,d.css)(this.cropHandler,"top",this.top_y+this.diff_y)),this.j.e.fire(this.cropHandler,"updatesize"))}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.Dom.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,`.${v}`).off(`.${v}`),super.destruct())}constructor(t){super(t),this.resizeUseRatio=!0,this.cropUseRatio=!0,this.clicked=!1,this.start_x=0,this.start_y=0,this.top_x=0,this.top_y=0,this.width=0,this.height=0,this.activeTab=y,this.naturalWidth=0,this.naturalHeight=0,this.ratio=0,this.new_h=0,this.new_w=0,this.diff_x=0,this.diff_y=0,this.cropBox={x:0,y:0,w:0,h:0},this.resizeBox={w:0,h:0},this.calcCropBox=()=>{let t=this.crop_box.parentNode,i=.8*t.offsetWidth,n=.8*t.offsetHeight,o=i,r=n,{naturalWidth:s,naturalHeight:a}=this;i>s&&n>a?(o=s,r=a):this.ratio>i/n?(o=i,r=i/s*a):(o=n/a*s,r=n),(0,d.css)(this.crop_box,{width:o,height:r})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();let t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=o.calcValueByPercent(t,this.o.cropDefaultWidth);let i=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.cropUseRatio?this.new_h=this.new_w/this.ratio:this.new_h=o.calcValueByPercent(i,this.o.cropDefaultHeight),(0,d.css)(this.cropHandler,{backgroundImage:"url("+(0,c.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:i/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;let t=this.cropImage.offsetWidth/this.naturalWidth,i=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,d.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,d.css)(this.cropHandler,"top")/i,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/i,this.sizes.textContent=this.cropBox.w.toFixed(0)+"x"+this.cropBox.h.toFixed(0)},this.updateResizeBox=()=>{this.resizeBox.w=this.image.offsetWidth||this.naturalWidth,this.resizeBox.h=this.image.offsetHeight||this.naturalHeight},this.setHandlers=()=>{let t=this,{widthInput:i,heightInput:n}=(0,h.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],`mousedown.${v}`,this.onResizeHandleMouseDown).on(this.j.ow,`resize.${v}`,()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")}),t.j.e.on((0,l.toArray)(this.editor.querySelectorAll(`.${v}__slider-title`)),"click",this.onTitleModeClick).on([i,n],"input",this.onChangeSizeInput);let{keepAspectRatioResize:o,keepAspectRatioCrop:r}=(0,h.refs)(this.editor);o&&o.addEventListener("change",()=>{this.resizeUseRatio=o.checked}),r&&r.addEventListener("change",()=>{this.cropUseRatio=r.checked}),t.j.e.on(t.resizeHandler,"updatesize",()=>{(0,d.css)(t.resizeHandler,{top:0,left:0,width:t.image.offsetWidth||t.naturalWidth,height:t.image.offsetHeight||t.naturalHeight}),this.updateResizeBox()}).on(t.cropHandler,"updatesize",()=>{if(!t.cropImage)return;let i=(0,d.css)(t.cropHandler,"left"),n=(0,d.css)(t.cropHandler,"top"),o=t.cropHandler.offsetWidth,r=t.cropHandler.offsetHeight;i<0&&(i=0),n<0&&(n=0),i+o>t.cropImage.offsetWidth&&(o=t.cropImage.offsetWidth-i,t.cropUseRatio&&(r=o/t.ratio)),n+r>t.cropImage.offsetHeight&&(r=t.cropImage.offsetHeight-n,t.cropUseRatio&&(o=r*t.ratio)),(0,d.css)(t.cropHandler,{width:o,height:r,left:i,top:n,backgroundPosition:-i-1+"px "+(-n-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()}),Object.values(t.buttons).forEach(o=>{o.onAction(()=>{let r={action:t.activeTab,box:t.activeTab===y?t.resizeBox:t.cropBox};switch(o){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",i=>{if(!(0,u.trim)(i))return t.j.alert("The name should not be empty"),!1;t.j.e.fire("afterImageEditorSave",r,i),t.onSave(i,r,t.hide,i=>{t.j.alert(i.message)})});break;case t.buttons.save:t.j.e.fire("afterImageEditorSave",r),t.onSave(void 0,r,t.hide,i=>{t.j.alert(i.message)});break;case t.buttons.reset:t.activeTab===y?((0,d.css)(t.image,{width:null,height:null}),i.value=t.naturalWidth.toString(),n.value=t.naturalHeight.toString(),t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}})})},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:m.Config.defaultOptions.imageeditor;const i=this.options;this.resizeUseRatio=i.resizeUseRatio,this.cropUseRatio=i.cropUseRatio,this.buttons={reset:(0,f.Button)(this.j,"update","Reset"),save:(0,f.Button)(this.j,"save","Save"),saveas:(0,f.Button)(this.j,{icon:{name:"save"},name:"save-as",text:"Save as ..."})},this.activeTab=i.resize?y:_,this.editor=(0,g.form)(this.j,this.options);const{resizeBox:n,cropBox:r}=(0,h.refs)(this.editor);this.resize_box=n,this.crop_box=r,this.sizes=this.editor.querySelector(`.${v}__area.${v}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${v}__resizer`),this.cropHandler=this.editor.querySelector(`.${v}__croper`),this._dialog=this.j.dlg({buttons:["fullsize","dialog.close"]}),this._dialog.setContent(this.editor),this._dialog.setSize(this.o.width,this.o.height),this._dialog.setHeader([this.buttons.reset,this.buttons.save,this.buttons.saveas]),this.setHandlers()}};function w(t,i,n,o,r,s){return this.getInstance("ImageEditor",this.o).open(t,(t,a,l,u)=>(0,p.call)("resize"===a.action?this.dataProvider.resize:this.dataProvider.crop,n,o,i,t,a.box).then(t=>{t&&(l(),r&&r("string"==typeof t?t:void 0))}).catch(t=>{u(t),s&&s(t)}))}C.calcValueByPercent=(t,i)=>{let n,o=i.toString(),r=parseFloat(t.toString());return(n=/^[-+]?[0-9]+(px)?$/.exec(o))?parseInt(o,10):(n=/^([-+]?[0-9.]+)%$/.exec(o))?Math.round(r*(parseFloat(n[1])/100)):r||0},b([s.autobind],C.prototype,"hide",null),b([s.autobind],C.prototype,"open",null),b([s.autobind],C.prototype,"onTitleModeClick",null),b([(0,s.debounce)(),s.autobind],C.prototype,"onChangeSizeInput",null),b([s.autobind],C.prototype,"onResizeHandleMouseDown",null),b([s.autobind],C.prototype,"onGlobalMouseUp",null),b([(0,s.throttle)(10)],C.prototype,"onGlobalMouseMove",null),C=o=b([s.component],C)},22461:function(t,i,n){"use strict";n.d(i,{form:function(){return l}});var o=n(67510);let r="jodit-image-editor",s=o.Icon.get.bind(o.Icon),a=(t,i="jodti-image-editor_active")=>t?i:"",l=(t,i)=>{let n=t.i18n.bind(t),o=(t,i,o=!0)=>`<div class="jodit-form__group">
50
50
  <label class="jodit-switcher-wrapper">
51
51
  <span class='jodit-switcher'>
52
52
  <input ${a(o,"checked")} data-ref="${i}" type="checkbox"/>
@@ -105,7 +105,7 @@
105
105
  </div>`:""}
106
106
  </div>
107
107
  </div>
108
- </form>`)}},41409:function(t,i,n){"use strict";n.r(i),n.d(i,{Ajax:function(){return f.Ajax},Alert:function(){return a.Alert},Async:function(){return u.Async},AsyncStorage:function(){return I.AsyncStorage},Button:function(){return m.Button},CommitStyle:function(){return x.CommitStyle},Component:function(){return o.Component},Confirm:function(){return a.Confirm},ContextMenu:function(){return s.ContextMenu},Create:function(){return c.Create},Dialog:function(){return a.Dialog},Dom:function(){return d.Dom},EventEmitter:function(){return h.EventEmitter},EventHandlersStore:function(){return h.EventHandlersStore},Eventify:function(){return h.Eventify},FileBrowser:function(){return l.FileBrowser},Helpers:function(){return r},History:function(){return v.History},Icon:function(){return m.Icon},ImageEditor:function(){return _.ImageEditor},IndexedDBProvider:function(){return I.IndexedDBProvider},LazyWalker:function(){return d.LazyWalker},LocalStorageProvider:function(){return I.LocalStorageProvider},MemoryStorageProvider:function(){return I.MemoryStorageProvider},Plugin:function(){return p.Plugin},PluginSystem:function(){return D.PluginSystem},Popup:function(){return m.Popup},ProgressBar:function(){return m.ProgressBar},Prompt:function(){return a.Prompt},Response:function(){return f.Response},STATUSES:function(){return o.STATUSES},Selection:function(){return x.Selection},Snapshot:function(){return y.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return I.Storage},StorageKey:function(){return I.StorageKey},Table:function(){return F.Table},ToolbarButton:function(){return E.ToolbarButton},ToolbarCollection:function(){return k.ToolbarCollection},ToolbarContent:function(){return E.ToolbarContent},ToolbarEditorCollection:function(){return S.ToolbarEditorCollection},ToolbarSelect:function(){return E.ToolbarSelect},UIBlock:function(){return m.UIBlock},UIButton:function(){return m.UIButton},UIButtonGroup:function(){return m.UIButtonGroup},UIButtonState:function(){return m.UIButtonState},UICheckbox:function(){return m.UICheckbox},UIElement:function(){return m.UIElement},UIFileInput:function(){return m.UIFileInput},UIForm:function(){return m.UIForm},UIGroup:function(){return m.UIGroup},UIInput:function(){return m.UIInput},UIList:function(){return m.UIList},UIMessages:function(){return C.UIMessages},UISelect:function(){return m.UISelect},UISeparator:function(){return m.UISeparator},UISpacer:function(){return m.UISpacer},UITextArea:function(){return m.UITextArea},UITooltip:function(){return m.UITooltip},Uploader:function(){return A.Uploader},View:function(){return g.View},ViewComponent:function(){return o.ViewComponent},ViewWithToolbar:function(){return b.ViewWithToolbar},canUseIndexedDB:function(){return I.canUseIndexedDB},canUsePersistentStorage:function(){return I.canUsePersistentStorage},clearUseIndexedDBCache:function(){return I.clearUseIndexedDBCache},defaultNameSpace:function(){return h.defaultNameSpace},observable:function(){return h.observable}});var o=n(91907),r=n(21537),s=n(80870),a=n(638),l=n(78513),u=n(8884),c=n(12060),d=n(22732),h=n(3827),p=n(50911),f=n(41601),m=n(67510),g=n(35608),b=n(84075),v=n(78818),y=n(52604),_=n(50050),C=n(1808),w=n(23512),F=n(76014),E=n(36646),k=n(11676),S=n(37426),A=n(57380),D=n(41876),x=n(59242),I=n(12081)},68389:function(t,i,n){"use strict";n.d(i,{UIMessage:function(){return s}});var o=n(87325),r=n(67510);let s=class t extends r.UIElement{className(){return"UIMessage"}constructor(t,i){super(t),this.setMod("active",!0),this.setMod("variant",i.variant),this.container.textContent=i.text}};s=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],s)},1808:function(t,i,n){"use strict";n.d(i,{UIMessages:function(){return l}});var o=n(87325),r=n(41180),s=n(62405),a=n(68389);let l=class t extends s.UIGroup{className(){return"UIMessages"}info(t,i){this.__message(t,"info",i)}success(t,i){this.__message(t,"success",i)}error(t,i){this.__message(t,"error",i)}message(t,i,n){this.__message(t,i,n)}__message(t,i="info",n){let o=t+":"+i;if(this.__messages.has(o))return void this.async.updateTimeout(o,n||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+o);this.__box.appendChild(this.container);let r=new a.UIMessage(this.j,{text:t,variant:i});this.append(r),this.__calcOffsets(),this.__messages.add(o);let s=this.__getRemoveCallback(r,o);this.j.e.on(r.container,"pointerdown",s),this.async.setTimeout(s,{label:o,timeout:n||this.options.defaultTimeout})}__getRemoveCallback(t,i){let n=o=>{o&&o.preventDefault(),t.isInDestruct||(this.async.clearTimeout(i),this.j.e.off(t.container,"pointerdown",n),this.__messages.delete(i),t.setMod("active",!1),this.async.setTimeout(()=>{this.remove(t),t.destruct(),this.__calcOffsets()},300))};return n}__calcOffsets(){let t=5;this.elements.forEach(i=>{(0,r.css)(i.container,"bottom",t+"px"),t+=i.container.offsetHeight+this.options.defaultOffset})}constructor(t,i,n={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=i,this.options=n,this.__messages=new Set}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},23512:function(t,i,n){"use strict";n.d(i,{StatusBar:function(){return u}});var o=n(91907),r=n(65478),s=n(2748),a=n(14316),l=n(34176);let u=class t extends o.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var t,i;return null!=(i=null==(t=this.container)?void 0:t.offsetHeight)?i:0}findEmpty(t=!1){let i=this.getElms(t?"item-right":"item");for(let t=0;t<i.length;t+=1)if(!i[t].innerHTML.trim().length)return i[t]}append(t,i=!1){var n;let o=this.findEmpty(i)||this.j.c.div(this.getFullElName("item"));i&&o.classList.add(this.getFullElName("item-right")),o.appendChild(t),null==(n=this.container)||n.appendChild(o),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(o.STATUSES.beforeDestruct),s.Dom.safeRemove(this.container),super.destruct())}constructor(t,i){super(t),this.target=i,this.mods={},this.container=t.c.div("jodit-status-bar"),i.appendChild(this.container),this.hide()}};u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component,(0,r.derive)(l.Mods,a.Elms)],u)},76014:function(t,i,n){"use strict";n.d(i,{Table:function(){return d}});var o=n(91907),r=n(82758),s=n(65478),a=n(22732),l=n(580),u=n(21537);let c=new WeakMap;class d extends o.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,l.getContainer)(this.j,d,"style",!0),i=[];this.selected.forEach(t=>{let n=(0,u.cssPath)(t);n&&i.push(n)}),t.innerHTML=i.length?i.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let n=d.__selectedByTable.get(i)||new Set;n.add(t),d.__selectedByTable.set(i,n)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let n=d.__selectedByTable.get(i);n&&(n.delete(t),n.size||d.__selectedByTable.delete(i))}}getAllSelectedCells(){return(0,u.toArray)(this.selected)}static __getSelectedCellsByTable(t){let i=d.__selectedByTable.get(t);return i?(0,u.toArray)(i):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return d.__getRowsCount(t)}static __getColumnsCount(t){return d.__formalMatrix(t).reduce((t,i)=>Math.max(t,i.length),0)}getColumnsCount(t){return d.__getColumnsCount(t)}static __formalMatrix(t,i){let n=[[]],o=(0,u.toArray)(t.rows),r=(t,o)=>{void 0===n[o]&&(n[o]=[]);let r=t.colSpan,s=t.rowSpan,a,l,u=0;for(;n[o][u];)u+=1;for(l=0;s>l;l+=1)for(a=0;a<r;a+=1){if(void 0===n[o+l]&&(n[o+l]=[]),i&&!1===i(t,o+l,u+a,r,s))return!1;n[o+l][u+a]=t}};for(let t=0;t<o.length;t+=1){let i=(0,u.toArray)(o[t].cells);for(let o=0;o<i.length;o+=1)if(!1===r(i[o],t))return n}return n}formalMatrix(t,i){return d.__formalMatrix(t,i)}static __formalCoordinate(t,i,n=!1){let o=0,r=0,s=1,a=1;return d.__formalMatrix(t,(t,l,u,c,d)=>{if(i===t)return o=l,r=u,s=c||1,a=d||1,n&&(r+=(c||1)-1,o+=(d||1)-1),!1}),[o,r,s,a]}formalCoordinate(t,i,n=!1){return d.__formalCoordinate(t,i,n)}static __appendRow(t,i,n,o){var r;let s;if(i)s=i.cloneNode(!0),(0,u.$$)("td,th",i).forEach(t=>{let i=(0,u.attr)(t,"rowspan");if(i&&parseInt(i,10)>1){let n=parseInt(i,10)-1;(0,u.attr)(t,"rowspan",n>1?n:null)}}),(0,u.$$)("td,th",s).forEach(t=>{t.innerHTML=""});else{let i=d.__getColumnsCount(t);s=o.element("tr");for(let t=0;t<i;t+=1)s.appendChild(o.element("td"))}n&&i&&i.nextSibling?i.parentNode&&i.parentNode.insertBefore(s,i.nextSibling):!n&&i?i.parentNode&&i.parentNode.insertBefore(s,i):((null==(r=t.getElementsByTagName("tbody"))?void 0:r[0])||t).appendChild(s)}appendRow(t,i,n){return d.__appendRow(t,i,n,this.j.createInside)}static __removeRow(t,i){let n,o=d.__formalMatrix(t),r=t.rows[i];o[i].forEach((s,l)=>{if(n=!1,i-1>=0&&o[i-1][l]===s)n=!0;else if(o[i+1]&&o[i+1][l]===s){if(s.parentNode===r&&s.parentNode.nextSibling){n=!0;let r=l+1;for(;o[i+1][r]===s;)r+=1;let u=a.Dom.next(s.parentNode,t=>a.Dom.isTag(t,"tr"),t);if(u){let t=null;for(let n=r;n<o[i+1].length;n+=1){let r=o[i+1][n];if(r&&r.parentNode===u){t=r;break}}t?u.insertBefore(s,t):u.appendChild(s)}}}else a.Dom.safeRemove(s);if(n&&(s.parentNode===r||s!==o[i][l-1])){let t=s.rowSpan;(0,u.attr)(s,"rowspan",t-1>1?t-1:null)}}),a.Dom.safeRemove(r)}removeRow(t,i){return d.__removeRow(t,i)}appendColumn(t,i,n=!0){let o=d.__formalMatrix(t);if(!n&&a.Dom.isCell(i.previousElementSibling))return this.appendColumn(t,i.previousElementSibling,!0);let[,r]=d.__formalCoordinate(t,i,n),s=n?r+1:r;for(let t=0;t<o.length;){let i=o[t];if(i[r]!==i[s]||r===s){let t=this.j.createInside.element("td");n?a.Dom.after(i[r],t):a.Dom.before(i[r],t),i[r].rowSpan>1&&(t.rowSpan=i[r].rowSpan)}else i[r].colSpan+=1;t+=i[r].rowSpan||1}}static __removeColumn(t,i){let n,o=d.__formalMatrix(t);o.forEach((t,r)=>{let s=t[i];if(n=!1,i-1>=0&&o[r][i-1]===s||i+1<t.length&&o[r][i+1]===s?n=!0:a.Dom.safeRemove(s),n&&(r-1<0||s!==o[r-1][i])){let t=s.colSpan;(0,u.attr)(s,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,i){return d.__removeColumn(t,i)}static __getSelectedBound(t,i){let n,o,r,s=[[1/0,1/0],[0,0]],a=d.__formalMatrix(t);for(n=0;n<a.length;n+=1)for(o=0;a[n]&&o<a[n].length;o+=1)i.includes(a[n][o])&&(s[0][0]=Math.min(n,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(n,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(n=s[0][0];n<=s[1][0];n+=1)for(r=1,o=s[0][1];o<=s[1][1];o+=1){for(;a[n]&&a[n][o-r]&&a[n][o]===a[n][o-r];)s[0][1]=Math.min(o-r,s[0][1]),s[1][1]=Math.max(o-r,s[1][1]),r+=1;for(r=1;a[n]&&a[n][o+r]&&a[n][o]===a[n][o+r];)s[0][1]=Math.min(o+r,s[0][1]),s[1][1]=Math.max(o+r,s[1][1]),r+=1;for(r=1;a[n-r]&&a[n][o]===a[n-r][o];)s[0][0]=Math.min(n-r,s[0][0]),s[1][0]=Math.max(n-r,s[1][0]),r+=1;for(r=1;a[n+r]&&a[n][o]===a[n+r][o];)s[0][0]=Math.min(n+r,s[0][0]),s[1][0]=Math.max(n+r,s[1][0]),r+=1}return s}getSelectedBound(t,i){return d.__getSelectedBound(t,i)}static __normalizeTable(t){let i=[],n=d.__formalMatrix(t);d.__removeExtraColspans(n,i),d.__removeExtraRowspans(n,i);for(let t=0;t<n.length;t+=1)for(let i=0;i<n[t].length;i+=1)void 0!==n[t][i]&&(n[t][i].hasAttribute("rowspan")&&1===n[t][i].rowSpan&&(0,u.attr)(n[t][i],"rowspan",null),n[t][i].hasAttribute("colspan")&&1===n[t][i].colSpan&&(0,u.attr)(n[t][i],"colspan",null),n[t][i].hasAttribute("class")&&!(0,u.attr)(n[t][i],"class")&&(0,u.attr)(n[t][i],"class",null));d.__unmark(i)}static __removeExtraColspans(t,i){for(let n=0;n<t[0].length;n+=1){let o=1e6,r=!1;for(let i=0;i<t.length;i+=1)if(void 0!==t[i][n]){if(t[i][n].colSpan<2){r=!0;break}o=Math.min(o,t[i][n].colSpan)}if(!r)for(let r=0;r<t.length;r+=1)void 0!==t[r][n]&&d.__mark(t[r][n],"colspan",t[r][n].colSpan-o+1,i)}}static __removeExtraRowspans(t,i){let n=0,o=0;for(n=0;n<t.length;n+=1){let r=1e6,s=!1;for(o=0;o<t[n].length;o+=1)if(void 0!==t[n][o]){if(t[n][o].rowSpan<2){s=!0;break}r=Math.min(r,t[n][o].rowSpan)}if(!s)for(o=0;o<t[n].length;o+=1)void 0!==t[n][o]&&d.__mark(t[n][o],"rowspan",t[n][o].rowSpan-r+1,i)}}normalizeTable(t){return d.__normalizeTable(t)}static __mergeSelected(t,i){let n=[],o=d.__getSelectedBound(t,d.__getSelectedCellsByTable(t)),s=0,l=null,c=0,p=0,f=0,m=new Set,g=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(d.__formalMatrix(t,(t,r,a,b,v)=>{r>=o[0][0]&&r<=o[1][0]&&a>=o[0][1]&&a<=o[1][1]&&(m.has(t)||(m.add(t),r===o[0][0]&&t.style.width&&(s+=t.offsetWidth),""!==(0,u.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&n.push(t.innerHTML),b>1&&(p+=b-1),v>1&&(f+=v-1),l?(d.__mark(t,"remove",1,g),h(i).removeSelection(t)):(l=t,c=a)))}),p=o[1][1]-o[0][1]+1,f=o[1][0]-o[0][0]+1,l&&(p>1&&d.__mark(l,"colspan",p,g),f>1&&d.__mark(l,"rowspan",f,g),s&&(d.__mark(l,"width",(s/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",g),c&&d.__setColumnWidthByDelta(t,c,0,!0,g)),l.innerHTML=n.join("<br/>"),h(i).addSelection(l),m.delete(l),d.__unmark(g),d.__normalizeTable(t),(0,u.toArray)(t.rows).forEach(t=>{t.cells.length||a.Dom.safeRemove(t)})))}mergeSelected(t){return d.__mergeSelected(t,this.j)}static __splitHorizontal(t,i){let n,o,r,s,l,u=[];d.__getSelectedCellsByTable(t).forEach(c=>{(o=i.createInside.element("td")).appendChild(i.createInside.element("br")),r=i.createInside.element("tr"),n=d.__formalCoordinate(t,c),c.rowSpan<2?(d.__formalMatrix(t,(t,i,o)=>{n[0]===i&&n[1]!==o&&t!==c&&d.__mark(t,"rowspan",t.rowSpan+1,u)}),a.Dom.after(a.Dom.closest(c,"tr",t),r),r.appendChild(o)):(d.__mark(c,"rowspan",c.rowSpan-1,u),d.__formalMatrix(t,(i,o,r)=>{o>n[0]&&o<n[0]+c.rowSpan&&n[1]>r&&i.parentNode.rowIndex===o&&(l=i),n[0]<o&&i===c&&(s=t.rows[o])}),l?a.Dom.after(l,o):s.insertBefore(o,s.firstChild)),c.colSpan>1&&d.__mark(o,"colspan",c.colSpan,u),d.__unmark(u),h(i).removeSelection(c)}),this.__normalizeTable(t)}splitHorizontal(t){return d.__splitHorizontal(t,this.j)}static __splitVertical(t,i){let n,o,s,l=[];d.__getSelectedCellsByTable(t).forEach(u=>{n=d.__formalCoordinate(t,u),u.colSpan<2?d.__formalMatrix(t,(t,i,o)=>{n[1]===o&&n[0]!==i&&t!==u&&d.__mark(t,"colspan",t.colSpan+1,l)}):d.__mark(u,"colspan",u.colSpan-1,l),(o=i.createInside.element("td")).appendChild(i.createInside.element("br")),u.rowSpan>1&&d.__mark(o,"rowspan",u.rowSpan,l);let c=u.offsetWidth;a.Dom.after(u,o),s=c/t.offsetWidth/2,d.__mark(u,"width",(100*s).toFixed(r.ACCURACY)+"%",l),d.__mark(o,"width",(100*s).toFixed(r.ACCURACY)+"%",l),d.__unmark(l),h(i).removeSelection(u)}),d.__normalizeTable(t)}splitVertical(t){return d.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,i,n,o,s){let a=d.__formalMatrix(t),l=0;for(let o=0;o<a.length;o+=1){let u=a[o][i];if(u.colSpan>1&&a.length>1)continue;let c=(u.offsetWidth+n)/t.offsetWidth*100;d.__mark(u,"width",c.toFixed(r.ACCURACY)+"%",s),l=o;break}for(let t=l+1;t<a.length;t+=1){let n=a[t][i];d.__mark(n,"width",null,s)}o||d.__unmark(s)}setColumnWidthByDelta(t,i,n,o,r){return d.__setColumnWidthByDelta(t,i,n,o,r)}static __mark(t,i,n,o){var r;o.push(t);let s=null!=(r=c.get(t))?r:{};s[i]=void 0===n?1:n,c.set(t,s)}static __unmark(t){t.forEach(t=>{let i=c.get(t);i&&(Object.keys(i).forEach(n=>{let o=i[n];switch(n){case"remove":a.Dom.safeRemove(t);break;case"rowspan":(0,u.attr)(t,"rowspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,u.attr)(t,"colspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(t.style.removeProperty("width"),(0,u.attr)(t,"style")||(0,u.attr)(t,"style",null)):t.style.width=o.toString()}delete i[n]}),c.delete(t))})}constructor(){super(...arguments),this.selected=new Set}}d.__selectedByTable=new WeakMap,function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,s.debounce)()],d.prototype,"__recalculateStyles",null);let h=t=>t.getInstance("Table",t.o)},78644:function(t,i,n){"use strict";n.d(i,{ToolbarButton:function(){return D}});var o=n(78213),r=n(45219),s=n(33433),a=n(87325),l=n(37133),u=n(2748),c=n(68345),d=n(23282),h=n(19306),p=n(72430),f=n(70799),m=n(56175),g=n(87058),b=n(38837),v=n(29960),y=n(37790),_=n(62843),C=n(72157),w=n(12153),F=n(56917),E=n(21491);function k(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}function S(t,i){return i=null!=i?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}),t}var A=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let D=class t extends _.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,v.attr)(this.trigger,"aria-label",t)}}get toolbar(){let t=(0,a.getComponentClass)("ToolbarCollection");return this.closest(t)}update(){var t,i;let{control:n,state:o}=this,r=this.toolbar;if(!r)return;let s=null==(t=n.value)?void 0:t.call(n,r.jodit,this);void 0!==s&&(o.value=s),o.disabled=this.__calculateDisabledStatus(r),o.activated=this.__calculateActivatedStatus(r),null==(i=n.update)||i.call(n,r.jodit,this)}__calculateActivatedStatus(t){var i,n;return(!(0,h.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(n=(i=this.control).isActive)&&!!n.call(i,this.j,this)||!!(t&&t.shouldBeActive(this)))}__calculateDisabledStatus(t){var i,n;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(n=(i=this.control).isDisabled)?void 0:n.call(i,this.j,this)))||!!(t&&t.shouldBeDisabled(this))}onChangeActivated(){(0,v.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,d.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,v.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,i=this.j.c.span(t),n=super.createContainer();n.classList.remove(t),n.classList.add(t+"__button"),Object.defineProperty(n,"component",{value:this}),i.appendChild(n);let o=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${t}__trigger">${w.Icon.get("chevron")}</span>`);return n.appendChild(o),i}focus(){var t;null==(t=this.container.querySelector("button"))||t.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):u.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,v.attr)(this.trigger,"disabled",t),(0,v.attr)(this.button,"disabled",t),(0,v.attr)(this.container,"disabled",t)}__initFromControl(){let{control:t,state:i}=this;this.updateSize(),i.name=t.name,this.__initIconFromControl(),t.tooltip&&(i.tooltip=(0,d.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip),i.hasTrigger=!!(t.list||t.popup&&t.exec)}__initIconFromControl(){var t;let{control:i,state:n}=this,{textIcons:o}=this.j.o;if(!0===o||(0,d.isFunction)(o)&&o(i.name)||i.template){n.icon=(0,_.UIButtonState)().icon,n.text=i.text||i.name;return}if(!(0,f.isString)(i.icon)&&null!=i.icon){n.icon={name:i.icon.name||i.name,iconURL:i.icon.iconURL||"",fill:i.icon.fill||"",scale:i.icon.scale};return}if(i.iconURL)n.icon.iconURL=i.iconURL;else{let o=i.icon||i.name;n.icon.name=w.Icon.exists(o)||(null==(t=this.j.o.extraIcons)?void 0:t[o])?o:""}i.iconURL||n.icon.name||(n.text=i.text||i.name)}onTriggerClick(t){var i,n,o;if(this.openedPopup)return void this.__closePopup();let{control:r}=this;if((0,v.attr)(this.trigger,"aria-expanded",!0),t.buffer={actionTrigger:this},r.list)return this.__openControlList(r);if((0,d.isFunction)(r.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,g.camelCase)(`before-${r.name}-open-popup`),this.target,r,t)){let s=null!=(o=null!=(n=null==(i=this.toolbar)?void 0:i.getTarget(this))?n:this.target)?o:null,a=r.popup(this.j,s,this.__closePopup,this);a?t.setContent((0,f.isString)(a)?this.j.c.fromHTML(a):a).open(()=>(0,m.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,g.camelCase)(`after-${r.name}-open-popup`),t.container)}}__openControlList(t){var i;let n=null!=(i=this.jodit.options.controls)?i:{},o=t=>(0,C.findControlType)(t,n),r=t.list,s=this.openPopup(),a=(0,E.makeCollection)(this.j);s.parentElement=this,a.parentElement=s,a.mode="vertical";let l=(i,n)=>{let r;if((0,f.isString)(n)&&o(n))return k({name:n.toString()},o(n));if((0,f.isString)(i)&&o(i))return k({name:i.toString()},o(i),"object"==typeof n?n:{});r=i,(0,p.isPlainObject)(r)&&"title"in r&&"value"in r&&(n=i.value,i=i.title);let{childTemplate:s}=t,a={name:i.toString(),template:s&&((t,i,n)=>s(t,i,n,this)),exec:t.childExec?(i,n,o)=>{var r;return null==(r=t.childExec)?void 0:r.call(t,i,n,S(k({},o),{parentControl:t}))}:t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],i,n]};return(0,f.isString)(n)&&(a.text=n),a};a.build((0,c.isArray)(r)?r.map(l):(0,y.keys)(r,!1).map(t=>l(t,r[t])),this.target),s.setContent(a).open(()=>(0,m.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&u.Dom.isNode(t.target)&&(u.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new F.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null,this.trigger&&(0,v.attr)(this.trigger,"aria-expanded",!1))}onClick(t){var i,n,o,r,s,a,l;let{control:u}=this;if((0,d.isFunction)(u.exec)){let c=null!=(o=null!=(n=null==(i=this.toolbar)?void 0:i.getTarget(this))?n:this.target)?o:null,d=u.exec(this.j,c,{control:u,originalEvent:t,button:this});if(!1!==d&&!0!==d&&(null==(s=null==(r=this.j)?void 0:r.e)||s.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(l=null==(a=this.j)?void 0:a.e)||l.fire("closeAllPopups afterExec")),!1!==d)return}return u.list?this.__openControlList(u):(0,d.isFunction)(u.popup)?this.onTriggerClick(t):void((u.command||u.name)&&((0,y.call)((0,h.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),u.command||u.name,!1,u.args&&u.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(t,i,n=null){super(t),this.control=i,this.target=n,this.state=S(k({},(0,_.UIButtonState)()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),this.openedPopup=null;const r=this.getElm("button");(0,b.assert)(r,"Element button should exists"),this.button=r,Object.defineProperty(r,"component",{value:this,configurable:!0});const s=this.getElm("trigger");(0,b.assert)(s,"Element trigger should exists"),this.trigger=s,s.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(o.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),i.mods&&Object.keys(i.mods).forEach(t=>{i.mods&&this.setMod(t,i.mods[t])})}};A([s.cacheHTML],D.prototype,"createContainer",null),A([(0,l.watch)("state.hasTrigger",{immediately:!1})],D.prototype,"onChangeHasTrigger",null),A([(0,l.watch)("trigger:click")],D.prototype,"onTriggerClick",null),A([r.autobind],D.prototype,"onOutsideClick",null),A([r.autobind],D.prototype,"__closePopup",null),D=A([a.component],D)},80319:function(t,i,n){"use strict";n.d(i,{ToolbarContent:function(){return l}});var o=n(65478),r=n(22732),s=n(21537),a=n(62843);let l=class t extends a.UIButton{className(){return"ToolbarContent"}update(){var t,i,n;let{control:o}=this,a=o.getContent(this.j,this);((0,s.isString)(a)||a.parentNode!==this.container)&&(r.Dom.detach(this.container),this.container.appendChild((0,s.isString)(a)?this.j.create.fromHTML(a):a)),this.state.disabled=!!(null==(t=o.isDisabled)?void 0:t.call(o,this.j,this)),this.state.activated=!!(null==(i=o.isActive)?void 0:i.call(o,this.j,this)),null==(n=o.update)||n.call(o,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),this.container.querySelectorAll("input,button,select,textarea").forEach(t=>(0,s.attr)(t,"disabled",this.state.disabled||null))}createContainer(){return this.j.c.span(this.componentName)}constructor(t,i,n=null){super(t),this.control=i,this.target=n,this.container.classList.add(`${this.componentName}_${this.clearName(i.name)}`),(0,s.attr)(this.container,"role","content")}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},36646:function(t,i,n){"use strict";n.d(i,{ToolbarButton:function(){return o.ToolbarButton},ToolbarContent:function(){return r.ToolbarContent},ToolbarSelect:function(){return s.ToolbarSelect}});var o=n(78644),r=n(80319),s=n(83111)},83111:function(t,i,n){"use strict";n.d(i,{ToolbarSelect:function(){return l}});var o=n(65478),r=n(72430),s=n(70799),a=n(78644);let l=class t extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){var t,i,n;super.update(),this.state.icon.name="";let{list:o,data:a}=this.control;if(o){let l=this.state.value||(a&&(0,s.isString)(a.currentValue)?a.currentValue:void 0);l||(l=Object.keys(o)[0]);let u=((0,r.isPlainObject)(o)&&o[l.toString()]||l).toString();this.state.text=null!=(n=null==(i=(t=this.control).textTemplate)?void 0:i.call(t,this.jodit,u))?n:u}}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},11676:function(t,i,n){"use strict";n.d(i,{ToolbarCollection:function(){return p}});var o=n(65478),r=n(45219),s=n(87325),a=n(97357),l=n(37133),u=n(82760),c=n(24536),d=n(21491),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let p=class t extends c.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,i=null){return(0,d.makeButton)(this.j,t,i)}makeSelect(t,i=null){return(0,d.makeSelect)(this.j,t,i)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,u.error)("The method is not implemented for this class.")}build(t,i=null){let n=this.j.e.fire("beforeToolbarBuild",t);return n&&(t=n),super.build(t,i),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};h([(0,l.watch)(":afterInit"),r.autobind],p.prototype,"__immediateUpdate",null),h([(0,o.debounce)(t=>t.j.defaultTimeout,!0)],p.prototype,"update",null),h([(0,a.hook)("ready")],p.prototype,"__initEvents",null),p=h([s.component],p)},37426:function(t,i,n){"use strict";n.d(i,{ToolbarEditorCollection:function(){return u}});var o=n(82758),r=n(65478),s=n(22732),a=n(21537),l=n(11676);let u=class t extends l.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){let i=super.shouldBeDisabled(t);if(void 0!==i)return i;let n=void 0===t.control.mode?o.MODE_WYSIWYG:t.control.mode;return n!==o.MODE_SPLIT&&n!==this.j.getRealMode()}shouldBeActive(t){let i,n=super.shouldBeActive(t);if(void 0!==n)return n;let o=this.j.selection?this.j.s.current():null;if(!o)return!1;if(t.control.tags){let n=t.control.tags;if(i=o,s.Dom.up(i,t=>{if(t&&-1!==n.indexOf(t.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(t.control.css){let n=t.control.css;if(i=o,s.Dom.up(i,t=>{if(t&&!s.Dom.isText(t)&&!s.Dom.isComment(t))return this.checkActiveStatus(n,t)},this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}prependInvisibleInput(t){let i=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});s.Dom.appendChildFirst(t,i)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(t){super(t),this.checkActiveStatus=(t,i)=>{let n=0,o=0;return Object.keys(t).forEach(r=>{let s=t[r];(0,a.isFunction)(s)?s(this.j,(0,a.css)(i,r).toString())&&(n+=1):-1!==s.indexOf((0,a.css)(i,r).toString())&&(n+=1),o+=1}),o===n},this.prependInvisibleInput(this.container)}};u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component],u)},21491:function(t,i,n){"use strict";n.d(i,{makeButton:function(){return l},makeCollection:function(){return a},makeSelect:function(){return u}});var o=n(87325),r=n(23282),s=n(19306);function a(t,i){let n=(0,o.getComponentClass)("ToolbarCollection"),r=(0,o.getComponentClass)("ToolbarEditorCollection"),a=(0,s.isJoditObject)(t)?new r(t):new n(t);return t.o.textIcons&&a.container.classList.add("jodit_text_icons"),i&&(a.parentElement=i),t.o.toolbarButtonSize&&(a.buttonSize=t.o.toolbarButtonSize),a}function l(t,i,n=null){if((0,r.isFunction)(i.getContent))return new((0,o.getComponentClass)("ToolbarContent"))(t,i,n);let s=new((0,o.getComponentClass)("ToolbarButton"))(t,i,n);return s.state.tabIndex=t.o.allowTabNavigation?0:-1,s}function u(t,i,n=null){return new((0,o.getComponentClass)("ToolbarSelect"))(t,i,n)}},80536:function(t,i,n){"use strict";var o=n(68345),r=n(19306),s=n(6441);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName(t){return`files[${t}]`},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData(t){return t},isSuccess(t){return t.success},getMessage(t){return void 0!==t.data.messages&&(0,o.isArray)(t.data.messages)?t.data.messages.join(" "):""},processFileName(t,i,n){return[t,i,n]},process(t){return t.data},error(t){this.j.message.error(t.message,4e3)},getDisplayName(t,i){return t+i},defaultHandlerSuccess(t){let i=this.j||this;(0,r.isJoditObject)(i)&&t.files&&t.files.length&&t.files.forEach((n,o)=>{let[r,s]=t.isImages&&t.isImages[o]?["img","src"]:["a","href"],a=i.createInside.element(r);a.setAttribute(s,t.baseurl+n),"a"===r&&(a.textContent=i.o.uploader.getDisplayName.call(this,t.baseurl,n)),"img"===r?i.s.insertImage(a,null,i.o.imageDefaultWidth):i.s.insertNode(a)})},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},83987:function(t,i,n){"use strict";n.d(i,{buildData:function(){return r}});var o=n(21537);function r(t,i){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,i);let n=t.ow.FormData;if(void 0!==n){if(i instanceof n||(0,o.isString)(i))return i;let t=new n;return Object.keys(i).forEach(n=>{t.append(n,i[n])}),t}return i}},74569:function(t,i,n){"use strict";function o(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(new ArrayBuffer(i.length));for(let t=0;t<i.length;t+=1)o[t]=i.charCodeAt(t);return new Blob([o.buffer],{type:n})}n.d(i,{dataURItoBlob:function(){return o}})},94122:function(t,i,n){"use strict";n.d(i,{ajaxInstances:function(){return r.ajaxInstances},hasFiles:function(){return a},hasItems:function(){return l},processOldBrowserDrag:function(){return o.processOldBrowserDrag},send:function(){return r.send},sendFiles:function(){return s.sendFiles}}),n(83987);var o=n(50373),r=n(71686),s=n(80020);function a(t){return!!(t&&t.files&&t.files.length>0)}function l(t){return!!(t&&t.items&&t.items.length>0)}},50373:function(t,i,n){"use strict";n.d(i,{processOldBrowserDrag:function(){return c}});var o=n(82758),r=n(22732),s=n(580),a=n(21537),l=n(74569),u=n(80020);function c(t,i,n,c,d){if(i&&(!i.types.length||i.types[0]!==o.TEXT_PLAIN)){let i=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,s.getContainer)(t.j,t.constructor).appendChild(i);let o=(0,a.isJoditObject)(t.j)?t.j.s.save():null;i.focus(),t.j.async.setTimeout(()=>{let s=i.firstChild;if(r.Dom.safeRemove(i),s&&s.hasAttribute("src")){let i=(0,a.attr)(s,"src")||"";o&&(0,a.isJoditObject)(t.j)&&t.j.s.restore(),(0,u.sendFiles)(t,[(0,l.dataURItoBlob)(i)],n,c).finally(d)}},t.j.defaultTimeout)}}},80020:function(t,i,n){"use strict";n.d(i,{sendFiles:function(){return s}});var o=n(21537),r=n(71686);function s(t,i,n,s,a){if(!i)return Promise.reject((0,o.error)("Need files"));let{o:l}=t,u=(0,o.toArray)(i);if(!u.length)return Promise.reject((0,o.error)("Need files"));let c=[];if(l.insertImageAsBase64URI&&function(t,i,n,r,s,a){let l,u;for(u=0;u<t.length;u+=1)if((l=t[u])&&l.type){let c=l.type.match(/\/([a-z0-9]+)/i),d=c[1]?c[1].toLowerCase():"";if(!i.includes(d))continue;let h=new FileReader;n.push(r.j.async.promise((t,i)=>{h.onerror=i,h.onloadend=()=>{let i={baseurl:"",files:[h.result],isImages:[!0]};((0,o.isFunction)(s)?s:a).call(r,i),t(i)},h.readAsDataURL(l)})),t[u]=null}}(u,l.imagesExtensions,c,t,n,l.defaultHandlerSuccess),(u=u.filter(t=>t)).length){let i,d=new FormData;d.append(l.pathVariableName,t.path),d.append("source",t.source);for(let n=0;n<u.length;n+=1)if(i=u[n]){let o=/\.\w+$/.test(i.name),r=i.type.match(/\/([a-z0-9]+)/i),s=r&&r[1]?r[1].toLowerCase():"",a=u[n].name||Math.random().toString().replace(".","");if(!o&&s){let t=s;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(a)||(a+="."+s)}let[c,h,p]=l.processFileName.call(t,l.filesVariableName(n),u[n],a);d.append(c,h,p)}a&&a(d),l.data&&(0,o.isPlainObject)(l.data)&&Object.keys(l.data).forEach(t=>{d.append(t,l.data[t])}),l.prepareData.call(t,d),c.push((0,r.send)(t,d).then(i=>(l.isSuccess.call(t,i)?((0,o.isFunction)(n)?n:l.defaultHandlerSuccess).call(t,l.process.call(t,i)):((0,o.isFunction)(s)?s:l.defaultHandlerError).call(t,(0,o.error)(l.getMessage.call(t,i))),i)).then(()=>{t.j.events&&t.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},71686:function(t,i,n){"use strict";n.d(i,{ajaxInstances:function(){return a},send:function(){return l}});var o=n(21537),r=n(41601),s=n(83987);let a=new WeakMap;function l(t,i){let n=(0,s.buildData)(t,i),l=i=>{t.j.progressbar.show().progress(i),i>=100&&t.j.progressbar.hide()},u=(i,n)=>{let s=new r.Ajax({xhr:()=>{let i=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&i.upload?(n(10),i.upload.addEventListener("progress",t=>{if(t.lengthComputable){let i=t.loaded/t.total;n(i*=100)}},!1)):n(100),i},method:t.o.method||"POST",data:i,url:(0,o.isFunction)(t.o.url)?t.o.url(i):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,i),withCredentials:t.o.withCredentials||!1}),l=a.get(t);return l||(l=new Set,a.set(t,l)),l.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{s.destruct(),null==l||l.delete(s)})};return((0,o.isFunction)(t.o.customUploadFunction)&&(u=t.o.customUploadFunction),(0,o.isPromise)(n))?n.then(t=>u(t,l)).catch(i=>{t.o.error.call(t,i)}):u(n,l)}},57380:function(t,i,n){"use strict";n.d(i,{Uploader:function(){return u}});var o=n(91907),r=n(82758),s=n(21537),a=n(6441),l=n(94122);n(80536);class u extends o.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,i,n){let o=()=>{t.classList.remove("jodit_drag_hover")},s=this,a=t=>{let a,u,c,d=t.clipboardData,h=t=>{u&&(t.append("extension",c),t.append("mimetype",u.type))};if(!r.IS_IE&&(0,l.hasFiles)(d))return(0,l.sendFiles)(s,d.files,i,n).finally(o),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(s,d,i,n,o);if((0,l.hasItems)(d)){let{items:r}=d;for(a=0;a<r.length;a+=1)if("file"===r[a].kind&&"image/png"===r[a].type){if(u=r[a].getAsFile()){let t=u.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(s,[u],i,n,h).finally(o)}t.preventDefault();break}}};s.j&&s.j.editor!==t?s.j.e.on(t,"paste",a):s.j.e.on("beforePaste",a),this.attachEvents(t,i,n,o)}attachEvents(t,i,n,o){let r=this;r.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",i=>{((0,l.hasFiles)(i.dataTransfer)||(0,l.hasItems)(i.dataTransfer))&&(t.classList.add("jodit_drag_hover"),i.preventDefault())}).on(t,"dragend dragleave",i=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(i.dataTransfer)&&i.preventDefault()}).on(t,"drop",s=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(s.dataTransfer)&&(s.preventDefault(),s.stopImmediatePropagation(),(0,l.sendFiles)(r,s.dataTransfer.files,i,n).finally(o))});let s=t.querySelector("input[type=file]");s&&r.j.e.on(s,"change",()=>{(0,l.sendFiles)(r,s.files,i,n).then(()=>{s.value="",/safari/i.test(navigator.userAgent)||(s.type="",s.type="file")}).finally(o)})}uploadRemoteImage(t,i,n){let o=this,{o:r}=o,a=(0,s.isFunction)(n)?n:r.defaultHandlerError;(0,l.send)(o,{action:"fileUploadRemote",url:t}).then(t=>{r.isSuccess.call(o,t)?((0,s.isFunction)(i)?i:r.defaultHandlerSuccess).call(o,r.process.call(o,t)):a.call(o,(0,s.error)(r.getMessage.call(o,t)))}).catch(t=>a.call(o,t))}upload(t){return this.async.promise((i,n)=>{(0,l.sendFiles)(this,t,i,n)})}destruct(){this.setStatus(o.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch(t){}}),t.clear()),super.destruct()}constructor(t,i){super(t),this.path="",this.source="default",this.options=(0,s.ConfigProto)(i||{},(0,s.ConfigProto)(a.Config.defaultOptions.uploader,(0,s.isJoditObject)(t)?t.o.uploader:{}))}}},22859:function(t,i,n){"use strict";n.d(i,{ColorPickerWidget:function(){return l}});var o=n(22732),r=n(21537),s=n(67510),a=n(37068);s.Icon.set("palette",a.default);let l=(t,i,n)=>{let a="jodit-color-picker",l=(0,r.normalizeColor)(n),u=t.c.div(a),c=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:s.Icon.get("palette"),d=t=>{let i=[];return(0,r.isPlainObject)(t)?Object.keys(t).forEach(n=>{i.push(`<div class="${a}__group ${a}__group-${n}">`),i.push(d(t[n])),i.push("</div>")}):(0,r.isArray)(t)&&t.forEach(t=>{i.push(`<span class='${a}__color-item ${l===t?a+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)}),i.join("")};u.appendChild(t.c.fromHTML(`<div class="${a}__groups">${d(t.o.colors)}</div>`)),u.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${a}__extra"></div>`));let{extra:h}=(0,r.refs)(u);return t.o.showBrowserColorPicker&&(0,r.hasBrowserColorPicker)()&&(h.appendChild(t.c.fromHTML(`<div class="${a}__native">${c}<input type="color" value="#ffffff"/></div>`)),t.e.on(u,"change",t=>{t.stopPropagation();let n=t.target;if(!n||!n.tagName||!o.Dom.isTag(n,"input"))return;let s=n.value||"";(0,r.isFunction)(i)&&i(s),t.preventDefault()})),t.e.on(u,"mousedown touchend",n=>{n.stopPropagation(),n.preventDefault();let s=n.target;if((!s||!s.tagName||o.Dom.isTag(s,"svg")||o.Dom.isTag(s,"path"))&&s.parentNode&&(s=o.Dom.closest(s.parentNode,"span",t.editor)),!o.Dom.isTag(s,"span")||!s.classList.contains(a+"__color-item"))return;let l=(0,r.attr)(s,"-color")||"";i&&(0,r.isFunction)(i)&&i(l)}),t.e.fire("afterGenerateColorPicker",u,h,i,l),u}},37068:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> '},34793:function(t,i,n){"use strict";n.d(i,{FileSelectorWidget:function(){return l}});var o=n(2748),r=n(21537),s=n(67510),a=n(38927);let l=(t,i,n,l,c=!0)=>{let d,h=[],p=t.o.uploader;if(i.upload&&(p.url||p.insertImageAsBase64URI||p.customUploadFunction)){let n=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(c?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(n,n=>{let o=(0,r.isFunction)(i.upload)?i.upload:p.defaultHandlerSuccess;(0,r.isFunction)(o)&&o.call(t,n),t.e.fire("closeAllPopups")},i=>{t.message.error(i.message),t.e.fire("closeAllPopups")}),h.push({icon:"upload",name:"Upload",content:n})}if(i.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content:()=>{l&&l(),i.filebrowser&&t.filebrowser.open(i.filebrowser,c)}}),i.url){let a=new s.UIButton(t,{type:"submit",variant:"primary",text:"Insert"}),l=new s.UIForm(t,[new s.UIInput(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new s.UIInput(t,{name:"text",label:"Alternative text"}),new s.UIBlock(t,[a])]);d=null,n&&!o.Dom.isText(n)&&!o.Dom.isComment(n)&&(o.Dom.isTag(n,"img")||(0,r.$$)("img",n).length)&&(d="IMG"===n.tagName?n:(0,r.$$)("img",n)[0],u(l.container,"input[name=url]",(0,r.attr)(d,"src")),u(l.container,"input[name=text]",(0,r.attr)(d,"alt")),a.state.text="Update"),n&&o.Dom.isTag(n,"a")&&(u(l.container,"input[name=url]",(0,r.attr)(n,"href")),u(l.container,"input[name=text]",(0,r.attr)(n,"title")),a.state.text="Update"),l.onSubmit(n=>{(0,r.isFunction)(i.url)&&i.url.call(t,n.url,n.text)}),h.push({icon:"link",name:"URL",content:l.container})}return(0,a.TabsWidget)(t,h)};function u(t,i,n){let o=t.querySelector(i);return o?(n&&(o.value=n),o.value):""}},92762:function(t,i,n){"use strict";n.d(i,{ColorPickerWidget:function(){return o.ColorPickerWidget},FileSelectorWidget:function(){return r.FileSelectorWidget},TabsWidget:function(){return s.TabsWidget}});var o=n(22859),r=n(34793),s=n(38927)},38927:function(t,i,n){"use strict";n.d(i,{TabsWidget:function(){return u}});var o=n(91907),r=n(2748),s=n(23282),a=n(29960),l=n(67510);let u=(t,i,n)=>{let u=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),d=t.c.div("jodit-tabs__buttons");(0,a.attr)(d,{role:"tablist","aria-orientation":"horizontal"});let h={},p=[],f="";u.appendChild(d),u.appendChild(c);let m=t=>{h[t]&&(p.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(i.forEach(({icon:u,name:g,content:b})=>{let v=t.c.div("jodit-tab");(0,a.attr)(v,{role:"tabpanel"});let y=(0,l.Button)(t,u||g,g);y.state.role="tab",t.e.on(y.container,"pointerdown",t=>t.preventDefault()),f||(f=g),d.appendChild(y.container),p.push(y),y.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+i.length),(0,s.isFunction)(b)?v.classList.add("jodit-tab_empty"):v.appendChild(o.Component.isInstanceOf(b,l.UIElement)?b.container:b),c.appendChild(v),y.onAction(()=>(m(g),(0,s.isFunction)(b)&&!r.Dom.isElement(b)&&b.call(t),n&&(n.activeTab=g),!1)),h[g]={button:y,tab:v}}),Object.values(h).forEach(({button:t})=>{t.container.style.width=(100/i.length).toFixed(10)+"%"}),m(n&&n.activeTab&&h[n.activeTab]?n.activeTab:f),n){let t=n.activeTab;Object.defineProperty(n,"activeTab",{configurable:!0,enumerable:!1,get(){return t},set(i){t=i,m(i)}})}return u}},73391:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537),a=n(12153),l=n(6441),u=n(49399);l.Config.prototype.controls.about={exec:t=>{let i=t.dlg({closeOnClickOverlay:!0}),n=t.i18n.bind(t);i.setMod("theme",t.o.theme).setHeader(n("About Jodit")).setContent(`<div class="jodit-about">
108
+ </form>`)}},41409:function(t,i,n){"use strict";n.r(i),n.d(i,{Ajax:function(){return f.Ajax},Alert:function(){return a.Alert},Async:function(){return u.Async},AsyncStorage:function(){return I.AsyncStorage},Button:function(){return m.Button},CommitStyle:function(){return x.CommitStyle},Component:function(){return o.Component},Confirm:function(){return a.Confirm},ContextMenu:function(){return s.ContextMenu},Create:function(){return c.Create},Dialog:function(){return a.Dialog},Dom:function(){return d.Dom},EventEmitter:function(){return h.EventEmitter},EventHandlersStore:function(){return h.EventHandlersStore},Eventify:function(){return h.Eventify},FileBrowser:function(){return l.FileBrowser},Helpers:function(){return r},History:function(){return v.History},Icon:function(){return m.Icon},ImageEditor:function(){return _.ImageEditor},IndexedDBProvider:function(){return I.IndexedDBProvider},LazyWalker:function(){return d.LazyWalker},LocalStorageProvider:function(){return I.LocalStorageProvider},MemoryStorageProvider:function(){return I.MemoryStorageProvider},Plugin:function(){return p.Plugin},PluginSystem:function(){return D.PluginSystem},Popup:function(){return m.Popup},ProgressBar:function(){return m.ProgressBar},Prompt:function(){return a.Prompt},Response:function(){return f.Response},STATUSES:function(){return o.STATUSES},Selection:function(){return x.Selection},Snapshot:function(){return y.Snapshot},StatusBar:function(){return w.StatusBar},Storage:function(){return I.Storage},StorageKey:function(){return I.StorageKey},Table:function(){return F.Table},ToolbarButton:function(){return E.ToolbarButton},ToolbarCollection:function(){return k.ToolbarCollection},ToolbarContent:function(){return E.ToolbarContent},ToolbarEditorCollection:function(){return S.ToolbarEditorCollection},ToolbarSelect:function(){return E.ToolbarSelect},UIBlock:function(){return m.UIBlock},UIButton:function(){return m.UIButton},UIButtonGroup:function(){return m.UIButtonGroup},UIButtonState:function(){return m.UIButtonState},UICheckbox:function(){return m.UICheckbox},UIElement:function(){return m.UIElement},UIFileInput:function(){return m.UIFileInput},UIForm:function(){return m.UIForm},UIGroup:function(){return m.UIGroup},UIInput:function(){return m.UIInput},UIList:function(){return m.UIList},UIMessages:function(){return C.UIMessages},UISelect:function(){return m.UISelect},UISeparator:function(){return m.UISeparator},UISpacer:function(){return m.UISpacer},UITextArea:function(){return m.UITextArea},UITooltip:function(){return m.UITooltip},Uploader:function(){return A.Uploader},View:function(){return g.View},ViewComponent:function(){return o.ViewComponent},ViewWithToolbar:function(){return b.ViewWithToolbar},canUseIndexedDB:function(){return I.canUseIndexedDB},canUsePersistentStorage:function(){return I.canUsePersistentStorage},clearUseIndexedDBCache:function(){return I.clearUseIndexedDBCache},defaultNameSpace:function(){return h.defaultNameSpace},observable:function(){return h.observable}});var o=n(91907),r=n(21537),s=n(80870),a=n(638),l=n(78513),u=n(8884),c=n(12060),d=n(22732),h=n(3827),p=n(50911),f=n(41601),m=n(67510),g=n(35608),b=n(84075),v=n(78818),y=n(52604),_=n(50050),C=n(1808),w=n(23512),F=n(76014),E=n(36646),k=n(11676),S=n(37426),A=n(57380),D=n(41876),x=n(59242),I=n(12081)},68389:function(t,i,n){"use strict";n.d(i,{UIMessage:function(){return s}});var o=n(87325),r=n(67510);let s=class t extends r.UIElement{className(){return"UIMessage"}constructor(t,i){super(t),this.setMod("active",!0),this.setMod("variant",i.variant),this.container.textContent=i.text}};s=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],s)},1808:function(t,i,n){"use strict";n.d(i,{UIMessages:function(){return l}});var o=n(87325),r=n(41180),s=n(62405),a=n(68389);let l=class t extends s.UIGroup{className(){return"UIMessages"}info(t,i){this.__message(t,"info",i)}success(t,i){this.__message(t,"success",i)}error(t,i){this.__message(t,"error",i)}message(t,i,n){this.__message(t,i,n)}__message(t,i="info",n){let o=t+":"+i;if(this.__messages.has(o))return void this.async.updateTimeout(o,n||this.options.defaultTimeout);if(!this.__box)throw Error("Container is not defined: "+o);this.__box.appendChild(this.container);let r=new a.UIMessage(this.j,{text:t,variant:i});this.append(r),this.__calcOffsets(),this.__messages.add(o);let s=this.__getRemoveCallback(r,o);this.j.e.on(r.container,"pointerdown",s),this.async.setTimeout(s,{label:o,timeout:n||this.options.defaultTimeout})}__getRemoveCallback(t,i){let n=o=>{o&&o.preventDefault(),t.isInDestruct||(this.async.clearTimeout(i),this.j.e.off(t.container,"pointerdown",n),this.__messages.delete(i),t.setMod("active",!1),this.async.setTimeout(()=>{this.remove(t),t.destruct(),this.__calcOffsets()},300))};return n}__calcOffsets(){let t=5;this.elements.forEach(i=>{(0,r.css)(i.container,"bottom",t+"px"),t+=i.container.offsetHeight+this.options.defaultOffset})}constructor(t,i,n={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=i,this.options=n,this.__messages=new Set}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},23512:function(t,i,n){"use strict";n.d(i,{StatusBar:function(){return u}});var o=n(91907),r=n(65478),s=n(2748),a=n(14316),l=n(34176);let u=class t extends o.ViewComponent{className(){return"StatusBar"}hide(){this.container.classList.add("jodit_hidden")}show(){this.container.classList.remove("jodit_hidden")}get isShown(){return!this.container.classList.contains("jodit_hidden")}getHeight(){var t,i;return null!=(i=null==(t=this.container)?void 0:t.offsetHeight)?i:0}findEmpty(t=!1){let i=this.getElms(t?"item-right":"item");for(let t=0;t<i.length;t+=1)if(!i[t].innerHTML.trim().length)return i[t]}append(t,i=!1){var n;let o=this.findEmpty(i)||this.j.c.div(this.getFullElName("item"));i&&o.classList.add(this.getFullElName("item-right")),o.appendChild(t),null==(n=this.container)||n.appendChild(o),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}destruct(){this.isInDestruct||(this.setStatus(o.STATUSES.beforeDestruct),s.Dom.safeRemove(this.container),super.destruct())}constructor(t,i){super(t),this.target=i,this.mods={},this.container=t.c.div("jodit-status-bar"),i.appendChild(this.container),this.hide()}};u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component,(0,r.derive)(l.Mods,a.Elms)],u)},76014:function(t,i,n){"use strict";n.d(i,{Table:function(){return d}});var o=n(91907),r=n(82758),s=n(65478),a=n(22732),l=n(580),u=n(21537);let c=new WeakMap;class d extends o.ViewComponent{className(){return"Table"}__recalculateStyles(){let t=(0,l.getContainer)(this.j,d,"style",!0),i=[];this.selected.forEach(t=>{let n=(0,u.cssPath)(t);n&&i.push(n)}),t.innerHTML=i.length?i.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let n=d.__selectedByTable.get(i)||new Set;n.add(t),d.__selectedByTable.set(i,n)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();let i=a.Dom.closest(t,"table",this.j.editor);if(i){let n=d.__selectedByTable.get(i);n&&(n.delete(t),n.size||d.__selectedByTable.delete(i))}}getAllSelectedCells(){return(0,u.toArray)(this.selected)}static __getSelectedCellsByTable(t){let i=d.__selectedByTable.get(t);return i?(0,u.toArray)(i):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return d.__getRowsCount(t)}static __getColumnsCount(t){return d.__formalMatrix(t).reduce((t,i)=>Math.max(t,i.length),0)}getColumnsCount(t){return d.__getColumnsCount(t)}static __formalMatrix(t,i){let n=[[]],o=(0,u.toArray)(t.rows),r=(t,o)=>{void 0===n[o]&&(n[o]=[]);let r=t.colSpan,s=t.rowSpan,a,l,u=0;for(;n[o][u];)u+=1;for(l=0;s>l;l+=1)for(a=0;a<r;a+=1){if(void 0===n[o+l]&&(n[o+l]=[]),i&&!1===i(t,o+l,u+a,r,s))return!1;n[o+l][u+a]=t}};for(let t=0;t<o.length;t+=1){let i=(0,u.toArray)(o[t].cells);for(let o=0;o<i.length;o+=1)if(!1===r(i[o],t))return n}return n}formalMatrix(t,i){return d.__formalMatrix(t,i)}static __formalCoordinate(t,i,n=!1){let o=0,r=0,s=1,a=1;return d.__formalMatrix(t,(t,l,u,c,d)=>{if(i===t)return o=l,r=u,s=c||1,a=d||1,n&&(r+=(c||1)-1,o+=(d||1)-1),!1}),[o,r,s,a]}formalCoordinate(t,i,n=!1){return d.__formalCoordinate(t,i,n)}static __appendRow(t,i,n,o){var r;let s;if(i)s=i.cloneNode(!0),(0,u.$$)("td,th",i).forEach(t=>{let i=(0,u.attr)(t,"rowspan");if(i&&parseInt(i,10)>1){let n=parseInt(i,10)-1;(0,u.attr)(t,"rowspan",n>1?n:null)}}),(0,u.$$)("td,th",s).forEach(t=>{t.innerHTML=""});else{let i=d.__getColumnsCount(t);s=o.element("tr");for(let t=0;t<i;t+=1)s.appendChild(o.element("td"))}n&&i&&i.nextSibling?i.parentNode&&i.parentNode.insertBefore(s,i.nextSibling):!n&&i?i.parentNode&&i.parentNode.insertBefore(s,i):((null==(r=t.getElementsByTagName("tbody"))?void 0:r[0])||t).appendChild(s)}appendRow(t,i,n){return d.__appendRow(t,i,n,this.j.createInside)}static __removeRow(t,i){let n,o=d.__formalMatrix(t),r=t.rows[i];o[i].forEach((s,l)=>{if(n=!1,i-1>=0&&o[i-1][l]===s)n=!0;else if(o[i+1]&&o[i+1][l]===s){if(s.parentNode===r&&s.parentNode.nextSibling){n=!0;let r=l+1;for(;o[i+1][r]===s;)r+=1;let u=a.Dom.next(s.parentNode,t=>a.Dom.isTag(t,"tr"),t);if(u){let t=null;for(let n=r;n<o[i+1].length;n+=1){let r=o[i+1][n];if(r&&r.parentNode===u){t=r;break}}t?u.insertBefore(s,t):u.appendChild(s)}}}else a.Dom.safeRemove(s);if(n&&(s.parentNode===r||s!==o[i][l-1])){let t=s.rowSpan;(0,u.attr)(s,"rowspan",t-1>1?t-1:null)}}),a.Dom.safeRemove(r)}removeRow(t,i){return d.__removeRow(t,i)}appendColumn(t,i,n=!0){let o=d.__formalMatrix(t);if(!n&&a.Dom.isCell(i.previousElementSibling))return this.appendColumn(t,i.previousElementSibling,!0);let[,r]=d.__formalCoordinate(t,i,n),s=n?r+1:r;for(let t=0;t<o.length;){let i=o[t];if(i[r]!==i[s]||r===s){let t=this.j.createInside.element("td");n?a.Dom.after(i[r],t):a.Dom.before(i[r],t),i[r].rowSpan>1&&(t.rowSpan=i[r].rowSpan)}else i[r].colSpan+=1;t+=i[r].rowSpan||1}}static __removeColumn(t,i){let n,o=d.__formalMatrix(t);o.forEach((t,r)=>{let s=t[i];if(n=!1,i-1>=0&&o[r][i-1]===s||i+1<t.length&&o[r][i+1]===s?n=!0:a.Dom.safeRemove(s),n&&(r-1<0||s!==o[r-1][i])){let t=s.colSpan;(0,u.attr)(s,"colspan",t-1>1?(t-1).toString():null)}})}removeColumn(t,i){return d.__removeColumn(t,i)}static __getSelectedBound(t,i){let n,o,r,s=[[1/0,1/0],[0,0]],a=d.__formalMatrix(t);for(n=0;n<a.length;n+=1)for(o=0;a[n]&&o<a[n].length;o+=1)i.includes(a[n][o])&&(s[0][0]=Math.min(n,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(n,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(n=s[0][0];n<=s[1][0];n+=1)for(r=1,o=s[0][1];o<=s[1][1];o+=1){for(;a[n]&&a[n][o-r]&&a[n][o]===a[n][o-r];)s[0][1]=Math.min(o-r,s[0][1]),s[1][1]=Math.max(o-r,s[1][1]),r+=1;for(r=1;a[n]&&a[n][o+r]&&a[n][o]===a[n][o+r];)s[0][1]=Math.min(o+r,s[0][1]),s[1][1]=Math.max(o+r,s[1][1]),r+=1;for(r=1;a[n-r]&&a[n][o]===a[n-r][o];)s[0][0]=Math.min(n-r,s[0][0]),s[1][0]=Math.max(n-r,s[1][0]),r+=1;for(r=1;a[n+r]&&a[n][o]===a[n+r][o];)s[0][0]=Math.min(n+r,s[0][0]),s[1][0]=Math.max(n+r,s[1][0]),r+=1}return s}getSelectedBound(t,i){return d.__getSelectedBound(t,i)}static __normalizeTable(t){let i=[],n=d.__formalMatrix(t);d.__removeExtraColspans(n,i),d.__removeExtraRowspans(n,i);for(let t=0;t<n.length;t+=1)for(let i=0;i<n[t].length;i+=1)void 0!==n[t][i]&&(n[t][i].hasAttribute("rowspan")&&1===n[t][i].rowSpan&&(0,u.attr)(n[t][i],"rowspan",null),n[t][i].hasAttribute("colspan")&&1===n[t][i].colSpan&&(0,u.attr)(n[t][i],"colspan",null),n[t][i].hasAttribute("class")&&!(0,u.attr)(n[t][i],"class")&&(0,u.attr)(n[t][i],"class",null));d.__unmark(i)}static __removeExtraColspans(t,i){for(let n=0;n<t[0].length;n+=1){let o=1e6,r=!1;for(let i=0;i<t.length;i+=1)if(void 0!==t[i][n]){if(t[i][n].colSpan<2){r=!0;break}o=Math.min(o,t[i][n].colSpan)}if(!r)for(let r=0;r<t.length;r+=1)void 0!==t[r][n]&&d.__mark(t[r][n],"colspan",t[r][n].colSpan-o+1,i)}}static __removeExtraRowspans(t,i){let n=0,o=0;for(n=0;n<t.length;n+=1){let r=1e6,s=!1;for(o=0;o<t[n].length;o+=1)if(void 0!==t[n][o]){if(t[n][o].rowSpan<2){s=!0;break}r=Math.min(r,t[n][o].rowSpan)}if(!s)for(o=0;o<t[n].length;o+=1)void 0!==t[n][o]&&d.__mark(t[n][o],"rowspan",t[n][o].rowSpan-r+1,i)}}normalizeTable(t){return d.__normalizeTable(t)}static __mergeSelected(t,i){let n=[],o=d.__getSelectedBound(t,d.__getSelectedCellsByTable(t)),s=0,l=null,c=0,p=0,f=0,m=new Set,g=[];o&&(o[0][0]-o[1][0]||o[0][1]-o[1][1])&&(d.__formalMatrix(t,(t,r,a,b,v)=>{r>=o[0][0]&&r<=o[1][0]&&a>=o[0][1]&&a<=o[1][1]&&(m.has(t)||(m.add(t),r===o[0][0]&&t.style.width&&(s+=t.offsetWidth),""!==(0,u.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&n.push(t.innerHTML),b>1&&(p+=b-1),v>1&&(f+=v-1),l?(d.__mark(t,"remove",1,g),h(i).removeSelection(t)):(l=t,c=a)))}),p=o[1][1]-o[0][1]+1,f=o[1][0]-o[0][0]+1,l&&(p>1&&d.__mark(l,"colspan",p,g),f>1&&d.__mark(l,"rowspan",f,g),s&&(d.__mark(l,"width",(s/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",g),c&&d.__setColumnWidthByDelta(t,c,0,!0,g)),l.innerHTML=n.join("<br/>"),h(i).addSelection(l),m.delete(l),d.__unmark(g),d.__normalizeTable(t),(0,u.toArray)(t.rows).forEach(t=>{t.cells.length||a.Dom.safeRemove(t)})))}mergeSelected(t){return d.__mergeSelected(t,this.j)}static __splitHorizontal(t,i){let n,o,r,s,l,u=[];d.__getSelectedCellsByTable(t).forEach(c=>{(o=i.createInside.element("td")).appendChild(i.createInside.element("br")),r=i.createInside.element("tr"),n=d.__formalCoordinate(t,c),c.rowSpan<2?(d.__formalMatrix(t,(t,i,o)=>{n[0]===i&&n[1]!==o&&t!==c&&d.__mark(t,"rowspan",t.rowSpan+1,u)}),a.Dom.after(a.Dom.closest(c,"tr",t),r),r.appendChild(o)):(d.__mark(c,"rowspan",c.rowSpan-1,u),d.__formalMatrix(t,(i,o,r)=>{o>n[0]&&o<n[0]+c.rowSpan&&n[1]>r&&i.parentNode.rowIndex===o&&(l=i),n[0]<o&&i===c&&(s=t.rows[o])}),l?a.Dom.after(l,o):s.insertBefore(o,s.firstChild)),c.colSpan>1&&d.__mark(o,"colspan",c.colSpan,u),d.__unmark(u),h(i).removeSelection(c)}),this.__normalizeTable(t)}splitHorizontal(t){return d.__splitHorizontal(t,this.j)}static __splitVertical(t,i){let n,o,s,l=[];d.__getSelectedCellsByTable(t).forEach(u=>{n=d.__formalCoordinate(t,u),u.colSpan<2?d.__formalMatrix(t,(t,i,o)=>{n[1]===o&&n[0]!==i&&t!==u&&d.__mark(t,"colspan",t.colSpan+1,l)}):d.__mark(u,"colspan",u.colSpan-1,l),(o=i.createInside.element("td")).appendChild(i.createInside.element("br")),u.rowSpan>1&&d.__mark(o,"rowspan",u.rowSpan,l);let c=u.offsetWidth;a.Dom.after(u,o),s=c/t.offsetWidth/2,d.__mark(u,"width",(100*s).toFixed(r.ACCURACY)+"%",l),d.__mark(o,"width",(100*s).toFixed(r.ACCURACY)+"%",l),d.__unmark(l),h(i).removeSelection(u)}),d.__normalizeTable(t)}splitVertical(t){return d.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,i,n,o,s){let a=d.__formalMatrix(t),l=0;for(let o=0;o<a.length;o+=1){let u=a[o][i];if(u.colSpan>1&&a.length>1)continue;let c=(u.offsetWidth+n)/t.offsetWidth*100;d.__mark(u,"width",c.toFixed(r.ACCURACY)+"%",s),l=o;break}for(let t=l+1;t<a.length;t+=1){let n=a[t][i];d.__mark(n,"width",null,s)}o||d.__unmark(s)}setColumnWidthByDelta(t,i,n,o,r){return d.__setColumnWidthByDelta(t,i,n,o,r)}static __mark(t,i,n,o){var r;o.push(t);let s=null!=(r=c.get(t))?r:{};s[i]=void 0===n?1:n,c.set(t,s)}static __unmark(t){t.forEach(t=>{let i=c.get(t);i&&(Object.keys(i).forEach(n=>{let o=i[n];switch(n){case"remove":a.Dom.safeRemove(t);break;case"rowspan":(0,u.attr)(t,"rowspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"colspan":(0,u.attr)(t,"colspan",(0,u.isNumber)(o)&&o>1?o:null);break;case"width":null==o?(t.style.removeProperty("width"),(0,u.attr)(t,"style")||(0,u.attr)(t,"style",null)):t.style.width=o.toString()}delete i[n]}),c.delete(t))})}constructor(){super(...arguments),this.selected=new Set}}d.__selectedByTable=new WeakMap,function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,s.debounce)()],d.prototype,"__recalculateStyles",null);let h=t=>t.getInstance("Table",t.o)},78644:function(t,i,n){"use strict";n.d(i,{ToolbarButton:function(){return D}});var o=n(78213),r=n(45219),s=n(33433),a=n(87325),l=n(37133),u=n(2748),c=n(68345),d=n(23282),h=n(19306),p=n(72430),f=n(70799),m=n(56175),g=n(87058),b=n(38837),v=n(29960),y=n(37790),_=n(62843),C=n(72157),w=n(12153),F=n(56917),E=n(21491);function k(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}function S(t,i){return i=null!=i?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}),t}var A=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let D=class t extends _.UIButton{className(){return"ToolbarButton"}getRole(){return"listitem"}updateAriaLabel(){if(super.updateAriaLabel(),this.trigger){let t=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;(0,v.attr)(this.trigger,"aria-label",t)}}get toolbar(){let t=(0,a.getComponentClass)("ToolbarCollection");return this.closest(t)}update(){var t,i;let{control:n,state:o}=this,r=this.toolbar;if(!r)return;let s=null==(t=n.value)?void 0:t.call(n,r.jodit,this);void 0!==s&&(o.value=s),o.disabled=this.__calculateDisabledStatus(r),o.activated=this.__calculateActivatedStatus(r),null==(i=n.update)||i.call(n,r.jodit,this)}__calculateActivatedStatus(t){var i,n;return(!(0,h.isJoditObject)(this.j)||!!this.j.editorIsActive)&&(null!=(n=(i=this.control).isActive)&&!!n.call(i,this.j,this)||!!(t&&t.shouldBeActive(this)))}__calculateDisabledStatus(t){var i,n;return!!(this.j.o.disabled||this.j.o.readonly&&(!this.j.o.activeButtonsInReadOnly||!this.j.o.activeButtonsInReadOnly.includes(this.control.name))||(null==(n=(i=this.control).isDisabled)?void 0:n.call(i,this.j,this)))||!!(t&&t.shouldBeDisabled(this))}onChangeActivated(){(0,v.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,d.isFunction)(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):super.onChangeText(),this.setMod("text-icons",!!this.text.innerText.trim().length)}onChangeTabIndex(){(0,v.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){let t=this.componentName,i=this.j.c.span(t),n=super.createContainer();n.classList.remove(t),n.classList.add(t+"__button"),Object.defineProperty(n,"component",{value:this}),i.appendChild(n);let o=this.j.c.fromHTML(`<span role="button" aria-haspopup="true" aria-expanded="false" class="${t}__trigger">${w.Icon.get("chevron")}</span>`);return n.appendChild(o),i}focus(){var t;null==(t=this.container.querySelector("button"))||t.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):u.Dom.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){let t=this.state.disabled?"disabled":null;(0,v.attr)(this.trigger,"disabled",t),(0,v.attr)(this.button,"disabled",t),(0,v.attr)(this.container,"disabled",t)}__initFromControl(){let{control:t,state:i}=this;this.updateSize(),i.name=t.name,this.__initIconFromControl(),t.tooltip&&(i.tooltip=(0,d.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip),i.hasTrigger=!!(t.list||t.popup&&t.exec)}__initIconFromControl(){var t;let{control:i,state:n}=this,{textIcons:o}=this.j.o;if(!0===o||(0,d.isFunction)(o)&&o(i.name)||i.template){n.icon=(0,_.UIButtonState)().icon,n.text=i.text||i.name;return}if(!(0,f.isString)(i.icon)&&null!=i.icon){n.icon={name:i.icon.name||i.name,iconURL:i.icon.iconURL||"",fill:i.icon.fill||"",scale:i.icon.scale};return}if(i.iconURL)n.icon.iconURL=i.iconURL;else{let o=i.icon||i.name;n.icon.name=w.Icon.exists(o)||(null==(t=this.j.o.extraIcons)?void 0:t[o])?o:""}i.iconURL||n.icon.name||(n.text=i.text||i.name)}onTriggerClick(t){var i,n,o;if(this.openedPopup)return void this.__closePopup();let{control:r}=this;if((0,v.attr)(this.trigger,"aria-expanded",!0),t.buffer={actionTrigger:this},r.list)return this.__openControlList(r);if((0,d.isFunction)(r.popup)){let t=this.openPopup();t.parentElement=this;try{if(!1!==this.j.e.fire((0,g.camelCase)(`before-${r.name}-open-popup`),this.target,r,t)){let s=null!=(o=null!=(n=null==(i=this.toolbar)?void 0:i.getTarget(this))?n:this.target)?o:null,a=r.popup(this.j,s,this.__closePopup,this);a?t.setContent((0,f.isString)(a)?this.j.c.fromHTML(a):a).open(()=>(0,m.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(t){throw this.__closePopup(),t}this.j.e.fire((0,g.camelCase)(`after-${r.name}-open-popup`),t.container)}}__openControlList(t){var i;let n=null!=(i=this.jodit.options.controls)?i:{},o=t=>(0,C.findControlType)(t,n),r=t.list,s=this.openPopup(),a=(0,E.makeCollection)(this.j);s.parentElement=this,a.parentElement=s,a.mode="vertical";let l=(i,n)=>{let r;if((0,f.isString)(n)&&o(n))return k({name:n.toString()},o(n));if((0,f.isString)(i)&&o(i))return k({name:i.toString()},o(i),"object"==typeof n?n:{});r=i,(0,p.isPlainObject)(r)&&"title"in r&&"value"in r&&(n=i.value,i=i.title);let{childTemplate:s}=t,a={name:i.toString(),template:s&&((t,i,n)=>s(t,i,n,this)),exec:t.childExec?(i,n,o)=>{var r;return null==(r=t.childExec)?void 0:r.call(t,i,n,S(k({},o),{parentControl:t}))}:t.exec,data:t.data,command:t.command,isActive:t.isChildActive,value:t.value,isDisabled:t.isChildDisabled,mode:t.mode,args:[...t.args?t.args:[],i,n]};return(0,f.isString)(n)&&(a.text=n),a};a.build((0,c.isArray)(r)?r.map(l):(0,y.keys)(r,!1).map(t=>l(t,r[t])),this.target),s.setContent(a).open(()=>(0,m.position)(this.container),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&u.Dom.isNode(t.target)&&(u.Dom.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new F.Popup(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}__closePopup(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null,this.trigger&&(0,v.attr)(this.trigger,"aria-expanded",!1))}onClick(t){var i,n,o,r,s,a,l;let{control:u}=this;if((0,d.isFunction)(u.exec)){let c=null!=(o=null!=(n=null==(i=this.toolbar)?void 0:i.getTarget(this))?n:this.target)?o:null,d=u.exec(this.j,c,{control:u,originalEvent:t,button:this});if(!1!==d&&!0!==d&&(null==(s=null==(r=this.j)?void 0:r.e)||s.fire("synchro"),this.parentElement&&this.parentElement.update(),null==(l=null==(a=this.j)?void 0:a.e)||l.fire("closeAllPopups afterExec")),!1!==d)return}return u.list?this.__openControlList(u):(0,d.isFunction)(u.popup)?this.onTriggerClick(t):void((u.command||u.name)&&((0,y.call)((0,h.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),u.command||u.name,!1,u.args&&u.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}constructor(t,i,n=null){super(t),this.control=i,this.target=n,this.state=S(k({},(0,_.UIButtonState)()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),this.openedPopup=null;const r=this.getElm("button");(0,b.assert)(r,"Element button should exists"),this.button=r,Object.defineProperty(r,"component",{value:this,configurable:!0});const s=this.getElm("trigger");(0,b.assert)(s,"Element trigger should exists"),this.trigger=s,s.remove(),t.e.on([this.button,this.trigger],"mousedown",t=>t.preventDefault()),this.onAction(this.onClick),this.hookStatus(o.STATUSES.ready,()=>{this.__initFromControl(),this.update()}),i.mods&&Object.keys(i.mods).forEach(t=>{i.mods&&this.setMod(t,i.mods[t])})}};A([s.cacheHTML],D.prototype,"createContainer",null),A([(0,l.watch)("state.hasTrigger",{immediately:!1})],D.prototype,"onChangeHasTrigger",null),A([(0,l.watch)("trigger:click")],D.prototype,"onTriggerClick",null),A([r.autobind],D.prototype,"onOutsideClick",null),A([r.autobind],D.prototype,"__closePopup",null),D=A([a.component],D)},80319:function(t,i,n){"use strict";n.d(i,{ToolbarContent:function(){return l}});var o=n(65478),r=n(22732),s=n(21537),a=n(62843);let l=class t extends a.UIButton{className(){return"ToolbarContent"}update(){var t,i,n;let{control:o}=this,a=o.getContent(this.j,this);((0,s.isString)(a)||a.parentNode!==this.container)&&(r.Dom.detach(this.container),this.container.appendChild((0,s.isString)(a)?this.j.create.fromHTML(a):a)),this.state.disabled=!!(null==(t=o.isDisabled)?void 0:t.call(o,this.j,this)),this.state.activated=!!(null==(i=o.isActive)?void 0:i.call(o,this.j,this)),null==(n=o.update)||n.call(o,this.j,this),this.onChangeDisabled(),this.onChangeActivated(),super.update()}onChangeDisabled(){super.onChangeDisabled(),this.container.querySelectorAll("input,button,select,textarea").forEach(t=>(0,s.attr)(t,"disabled",this.state.disabled||null))}createContainer(){return this.j.c.span(this.componentName)}constructor(t,i,n=null){super(t),this.control=i,this.target=n,this.container.classList.add(`${this.componentName}_${this.clearName(i.name)}`),(0,s.attr)(this.container,"role","content")}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},36646:function(t,i,n){"use strict";n.d(i,{ToolbarButton:function(){return o.ToolbarButton},ToolbarContent:function(){return r.ToolbarContent},ToolbarSelect:function(){return s.ToolbarSelect}});var o=n(78644),r=n(80319),s=n(83111)},83111:function(t,i,n){"use strict";n.d(i,{ToolbarSelect:function(){return l}});var o=n(65478),r=n(72430),s=n(70799),a=n(78644);let l=class t extends a.ToolbarButton{className(){return"ToolbarSelect"}update(){var t,i,n;super.update(),this.state.icon.name="";let{list:o,data:a}=this.control;if(o){let l=this.state.value||(a&&(0,s.isString)(a.currentValue)?a.currentValue:void 0);l||(l=Object.keys(o)[0]);let u=((0,r.isPlainObject)(o)&&o[l.toString()]||l).toString();this.state.text=null!=(n=null==(i=(t=this.control).textTemplate)?void 0:i.call(t,this.jodit,u))?n:u}}};l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([o.component],l)},11676:function(t,i,n){"use strict";n.d(i,{ToolbarCollection:function(){return p}});var o=n(65478),r=n(45219),s=n(87325),a=n(97357),l=n(37133),u=n(82760),c=n(24536),d=n(21491),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let p=class t extends c.UIList{className(){return"ToolbarCollection"}getRole(){return"toolbar"}get firstButton(){let[t]=this.buttons;return t||null}makeButton(t,i=null){return(0,d.makeButton)(this.j,t,i)}makeSelect(t,i=null){return(0,d.makeSelect)(this.j,t,i)}shouldBeActive(t){}shouldBeDisabled(t){}getTarget(t){return t.target||null}__immediateUpdate(){this.isDestructed||this.j.isLocked||(super.update(),this.j.e.fire("afterUpdateToolbar",this))}update(){this.__immediateUpdate()}setDirection(t){this.container.style.direction=t,this.container.setAttribute("dir",t)}__initEvents(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}hide(){this.container.remove()}show(){this.appendTo(this.j.toolbarContainer)}showInline(t){throw(0,u.error)("The method is not implemented for this class.")}build(t,i=null){let n=this.j.e.fire("beforeToolbarBuild",t);return n&&(t=n),super.build(t,i),this}destruct(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur"}};h([(0,l.watch)(":afterInit"),r.autobind],p.prototype,"__immediateUpdate",null),h([(0,o.debounce)(t=>t.j.defaultTimeout,!0)],p.prototype,"update",null),h([(0,a.hook)("ready")],p.prototype,"__initEvents",null),p=h([s.component],p)},37426:function(t,i,n){"use strict";n.d(i,{ToolbarEditorCollection:function(){return u}});var o=n(82758),r=n(65478),s=n(22732),a=n(21537),l=n(11676);let u=class t extends l.ToolbarCollection{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){let i=super.shouldBeDisabled(t);if(void 0!==i)return i;let n=void 0===t.control.mode?o.MODE_WYSIWYG:t.control.mode;return n!==o.MODE_SPLIT&&n!==this.j.getRealMode()}shouldBeActive(t){let i,n=super.shouldBeActive(t);if(void 0!==n)return n;let o=this.j.selection?this.j.s.current():null;if(!o)return!1;if(t.control.tags){let n=t.control.tags;if(i=o,s.Dom.up(i,t=>{if(t&&-1!==n.indexOf(t.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(t.control.css){let n=t.control.css;if(i=o,s.Dom.up(i,t=>{if(t&&!s.Dom.isText(t)&&!s.Dom.isComment(t))return this.checkActiveStatus(n,t)},this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}prependInvisibleInput(t){let i=this.j.create.element("input",{name:"jodit-toolbar-focus-helper_"+this.j.id,tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});s.Dom.appendChildFirst(t,i)}showInline(t){this.jodit.e.fire("showInlineToolbar",t)}hide(){this.jodit.e.fire("hidePopup"),super.hide(),this.jodit.e.fire("toggleToolbar")}show(){super.show(),this.jodit.e.fire("toggleToolbar")}constructor(t){super(t),this.checkActiveStatus=(t,i)=>{let n=0,o=0;return Object.keys(t).forEach(r=>{let s=t[r];(0,a.isFunction)(s)?s(this.j,(0,a.css)(i,r).toString())&&(n+=1):-1!==s.indexOf((0,a.css)(i,r).toString())&&(n+=1),o+=1}),o===n},this.prependInvisibleInput(this.container)}};u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a}([r.component],u)},21491:function(t,i,n){"use strict";n.d(i,{makeButton:function(){return l},makeCollection:function(){return a},makeSelect:function(){return u}});var o=n(87325),r=n(23282),s=n(19306);function a(t,i){let n=(0,o.getComponentClass)("ToolbarCollection"),r=(0,o.getComponentClass)("ToolbarEditorCollection"),a=(0,s.isJoditObject)(t)?new r(t):new n(t);return t.o.textIcons&&a.container.classList.add("jodit_text_icons"),i&&(a.parentElement=i),t.o.toolbarButtonSize&&(a.buttonSize=t.o.toolbarButtonSize),a}function l(t,i,n=null){if((0,r.isFunction)(i.getContent))return new((0,o.getComponentClass)("ToolbarContent"))(t,i,n);let s=new((0,o.getComponentClass)("ToolbarButton"))(t,i,n);return s.state.tabIndex=t.o.allowTabNavigation?0:-1,s}function u(t,i,n=null){return new((0,o.getComponentClass)("ToolbarSelect"))(t,i,n)}},80536:function(t,i,n){"use strict";var o=n(68345),r=n(19306),s=n(6441);s.Config.prototype.enableDragAndDropFileToEditor=!0,s.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","jpeg","png","gif","webp","bmp","svg","tiff","avif"],headers:null,data:null,filesVariableName(t){return`files[${t}]`},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData(t){return t},isSuccess(t){return t.success},getMessage(t){return void 0!==t.data.messages&&(0,o.isArray)(t.data.messages)?t.data.messages.join(" "):""},processFileName(t,i,n){return[t,i,n]},process(t){return t.data},error(t){this.j.message.error(t.message,4e3)},getDisplayName(t,i){return t+i},defaultHandlerSuccess(t){let i=this.j||this;(0,r.isJoditObject)(i)&&t.files&&t.files.length&&t.files.forEach((n,o)=>{let[r,s]=t.isImages&&t.isImages[o]?["img","src"]:["a","href"],a=i.createInside.element(r);a.setAttribute(s,t.baseurl+n),"a"===r&&(a.textContent=i.o.uploader.getDisplayName.call(this,t.baseurl,n)),"img"===r?i.s.insertImage(a,null,i.o.imageDefaultWidth):i.s.insertNode(a)})},defaultHandlerError(t){this.j.message.error(t.message)},contentType(t){return(void 0===this.ow.FormData||"string"==typeof t)&&"application/x-www-form-urlencoded; charset=UTF-8"}}},83987:function(t,i,n){"use strict";n.d(i,{buildData:function(){return r}});var o=n(21537);function r(t,i){if((0,o.isFunction)(t.o.buildData))return t.o.buildData.call(t,i);let n=t.ow.FormData;if(void 0!==n){if(i instanceof n||(0,o.isString)(i))return i;let t=new n;return Object.keys(i).forEach(n=>{t.append(n,i[n])}),t}return i}},74569:function(t,i,n){"use strict";function o(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],o=new Uint8Array(new ArrayBuffer(i.length));for(let t=0;t<i.length;t+=1)o[t]=i.charCodeAt(t);return new Blob([o.buffer],{type:n})}n.d(i,{dataURItoBlob:function(){return o}})},94122:function(t,i,n){"use strict";n.d(i,{ajaxInstances:function(){return r.ajaxInstances},hasFiles:function(){return a},hasItems:function(){return l},processOldBrowserDrag:function(){return o.processOldBrowserDrag},send:function(){return r.send},sendFiles:function(){return s.sendFiles}}),n(83987);var o=n(50373),r=n(71686),s=n(80020);function a(t){return!!(t&&t.files&&t.files.length>0)}function l(t){return!!(t&&t.items&&t.items.length>0)}},50373:function(t,i,n){"use strict";n.d(i,{processOldBrowserDrag:function(){return c}});var o=n(82758),r=n(22732),s=n(580),a=n(21537),l=n(74569),u=n(80020);function c(t,i,n,c,d){if(i&&(!i.types.length||i.types[0]!==o.TEXT_PLAIN)){let i=t.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});(0,s.getContainer)(t.j,t.constructor).appendChild(i);let o=(0,a.isJoditObject)(t.j)?t.j.s.save():null;i.focus(),t.j.async.setTimeout(()=>{let s=i.firstChild;if(r.Dom.safeRemove(i),s&&s.hasAttribute("src")){let i=(0,a.attr)(s,"src")||"";o&&(0,a.isJoditObject)(t.j)&&t.j.s.restore(),(0,u.sendFiles)(t,[(0,l.dataURItoBlob)(i)],n,c).finally(d)}},t.j.defaultTimeout)}}},80020:function(t,i,n){"use strict";n.d(i,{sendFiles:function(){return s}});var o=n(21537),r=n(71686);function s(t,i,n,s,a){if(!i)return Promise.reject((0,o.error)("Need files"));let{o:l}=t,u=(0,o.toArray)(i);if(!u.length)return Promise.reject((0,o.error)("Need files"));if((0,o.isFunction)(l.beforeUpload)&&!1===l.beforeUpload.call(t,u)){let i=(0,o.error)("Upload canceled");return(s||l.defaultHandlerError).call(t,i),Promise.reject(i)}let c=[];if(l.insertImageAsBase64URI&&function(t,i,n,r,s,a){let l,u;for(u=0;u<t.length;u+=1)if((l=t[u])&&l.type){let c=l.type.match(/\/([a-z0-9]+)/i),d=c[1]?c[1].toLowerCase():"";if(!i.includes(d))continue;let h=new FileReader;n.push(r.j.async.promise((t,i)=>{h.onerror=i,h.onloadend=()=>{let i={baseurl:"",files:[h.result],isImages:[!0]};((0,o.isFunction)(s)?s:a).call(r,i),t(i)},h.readAsDataURL(l)})),t[u]=null}}(u,l.imagesExtensions,c,t,n,l.defaultHandlerSuccess),(u=u.filter(t=>t)).length){let i,d=new FormData;d.append(l.pathVariableName,t.path),d.append("source",t.source);for(let n=0;n<u.length;n+=1)if(i=u[n]){let o=/\.\w+$/.test(i.name),r=i.type.match(/\/([a-z0-9]+)/i),s=r&&r[1]?r[1].toLowerCase():"",a=u[n].name||Math.random().toString().replace(".","");if(!o&&s){let t=s;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(a)||(a+="."+s)}let[c,h,p]=l.processFileName.call(t,l.filesVariableName(n),u[n],a);d.append(c,h,p)}a&&a(d),l.data&&(0,o.isPlainObject)(l.data)&&Object.keys(l.data).forEach(t=>{d.append(t,l.data[t])}),l.prepareData.call(t,d),c.push((0,r.send)(t,d).then(i=>(l.isSuccess.call(t,i)?((0,o.isFunction)(n)?n:l.defaultHandlerSuccess).call(t,l.process.call(t,i)):((0,o.isFunction)(s)?s:l.defaultHandlerError).call(t,(0,o.error)(l.getMessage.call(t,i))),i)).then(()=>{t.j.events&&t.j.e.fire("filesWereUploaded")}))}return Promise.all(c)}},71686:function(t,i,n){"use strict";n.d(i,{ajaxInstances:function(){return a},send:function(){return l}});var o=n(21537),r=n(41601),s=n(83987);let a=new WeakMap;function l(t,i){let n=(0,s.buildData)(t,i),l=i=>{t.j.progressbar.show().progress(i),i>=100&&t.j.progressbar.hide()},u=(i,n)=>{let s=new r.Ajax({xhr:()=>{let i=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&i.upload?(n(10),i.upload.addEventListener("progress",t=>{if(t.lengthComputable){let i=t.loaded/t.total;n(i*=100)}},!1)):n(100),i},method:t.o.method||"POST",data:i,url:(0,o.isFunction)(t.o.url)?t.o.url(i):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,i),withCredentials:t.o.withCredentials||!1}),l=a.get(t);return l||(l=new Set,a.set(t,l)),l.add(s),t.j.e.one("beforeDestruct",s.destruct),s.send().then(t=>t.json()).catch(t=>({success:!1,data:{messages:[t]}})).finally(()=>{s.destruct(),null==l||l.delete(s)})};return((0,o.isFunction)(t.o.customUploadFunction)&&(u=t.o.customUploadFunction),(0,o.isPromise)(n))?n.then(t=>u(t,l)).catch(i=>{t.o.error.call(t,i)}):u(n,l)}},57380:function(t,i,n){"use strict";n.d(i,{Uploader:function(){return u}});var o=n(91907),r=n(82758),s=n(21537),a=n(6441),l=n(94122);n(80536);class u extends o.ViewComponent{get j(){return this.jodit}className(){return"Uploader"}get o(){return this.options}setPath(t){return this.path=t,this}setSource(t){return this.source=t,this}bind(t,i,n){let o=()=>{t.classList.remove("jodit_drag_hover")},s=this,a=t=>{let a,u,c,d=t.clipboardData,h=t=>{u&&(t.append("extension",c),t.append("mimetype",u.type))};if(!r.IS_IE&&(0,l.hasFiles)(d))return(0,l.sendFiles)(s,d.files,i,n).finally(o),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,l.processOldBrowserDrag)(s,d,i,n,o);if((0,l.hasItems)(d)){let{items:r}=d;for(a=0;a<r.length;a+=1)if("file"===r[a].kind&&"image/png"===r[a].type){if(u=r[a].getAsFile()){let t=u.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,l.sendFiles)(s,[u],i,n,h).finally(o)}t.preventDefault();break}}};s.j&&s.j.editor!==t?s.j.e.on(t,"paste",a):s.j.e.on("beforePaste",a),this.attachEvents(t,i,n,o)}attachEvents(t,i,n,o){let r=this;r.j.e.on(t,"dragend dragover dragenter dragleave drop",t=>{t.preventDefault()}).on(t,"dragover",i=>{((0,l.hasFiles)(i.dataTransfer)||(0,l.hasItems)(i.dataTransfer))&&(t.classList.add("jodit_drag_hover"),i.preventDefault())}).on(t,"dragend dragleave",i=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(i.dataTransfer)&&i.preventDefault()}).on(t,"drop",s=>{t.classList.remove("jodit_drag_hover"),(0,l.hasFiles)(s.dataTransfer)&&(s.preventDefault(),s.stopImmediatePropagation(),(0,l.sendFiles)(r,s.dataTransfer.files,i,n).finally(o))});let s=t.querySelector("input[type=file]");s&&r.j.e.on(s,"change",()=>{(0,l.sendFiles)(r,s.files,i,n).then(()=>{s.value="",/safari/i.test(navigator.userAgent)||(s.type="",s.type="file")}).finally(o)})}uploadRemoteImage(t,i,n){let o=this,{o:r}=o,a=(0,s.isFunction)(n)?n:r.defaultHandlerError;(0,l.send)(o,{action:"fileUploadRemote",url:t}).then(t=>{r.isSuccess.call(o,t)?((0,s.isFunction)(i)?i:r.defaultHandlerSuccess).call(o,r.process.call(o,t)):a.call(o,(0,s.error)(r.getMessage.call(o,t)))}).catch(t=>a.call(o,t))}upload(t){return this.async.promise((i,n)=>{(0,l.sendFiles)(this,t,i,n)})}destruct(){this.setStatus(o.STATUSES.beforeDestruct);let t=l.ajaxInstances.get(this);t&&(t.forEach(t=>{try{t.destruct()}catch(t){}}),t.clear()),super.destruct()}constructor(t,i){super(t),this.path="",this.source="default",this.options=(0,s.ConfigProto)(i||{},(0,s.ConfigProto)(a.Config.defaultOptions.uploader,(0,s.isJoditObject)(t)?t.o.uploader:{}))}}},22859:function(t,i,n){"use strict";n.d(i,{ColorPickerWidget:function(){return l}});var o=n(22732),r=n(21537),s=n(67510),a=n(37068);s.Icon.set("palette",a.default);let l=(t,i,n)=>{let a="jodit-color-picker",l=(0,r.normalizeColor)(n),u=t.c.div(a),c=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:s.Icon.get("palette"),d=t=>{let i=[];return(0,r.isPlainObject)(t)?Object.keys(t).forEach(n=>{i.push(`<div class="${a}__group ${a}__group-${n}">`),i.push(d(t[n])),i.push("</div>")}):(0,r.isArray)(t)&&t.forEach(t=>{i.push(`<span class='${a}__color-item ${l===t?a+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)}),i.join("")};u.appendChild(t.c.fromHTML(`<div class="${a}__groups">${d(t.o.colors)}</div>`)),u.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${a}__extra"></div>`));let{extra:h}=(0,r.refs)(u);return t.o.showBrowserColorPicker&&(0,r.hasBrowserColorPicker)()&&(h.appendChild(t.c.fromHTML(`<div class="${a}__native">${c}<input type="color" value="#ffffff"/></div>`)),t.e.on(u,"change",t=>{t.stopPropagation();let n=t.target;if(!n||!n.tagName||!o.Dom.isTag(n,"input"))return;let s=n.value||"";(0,r.isFunction)(i)&&i(s),t.preventDefault()})),t.e.on(u,"mousedown touchend",n=>{n.stopPropagation(),n.preventDefault();let s=n.target;if((!s||!s.tagName||o.Dom.isTag(s,"svg")||o.Dom.isTag(s,"path"))&&s.parentNode&&(s=o.Dom.closest(s.parentNode,"span",t.editor)),!o.Dom.isTag(s,"span")||!s.classList.contains(a+"__color-item"))return;let l=(0,r.attr)(s,"-color")||"";i&&(0,r.isFunction)(i)&&i(l)}),t.e.fire("afterGenerateColorPicker",u,h,i,l),u}},37068:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> '},34793:function(t,i,n){"use strict";n.d(i,{FileSelectorWidget:function(){return l}});var o=n(2748),r=n(21537),s=n(67510),a=n(38927);let l=(t,i,n,l,c=!0)=>{let d,h=[],p=t.o.uploader;if(i.upload&&(p.url||p.insertImageAsBase64URI||p.customUploadFunction)){let n=t.c.fromHTML(`<div class="jodit-drag-and-drop__file-box"><strong>${t.i18n(c?"Drop image":"Drop file")}</strong><span><br>${t.i18n("or click")}</span><input type="file" accept="${c?"image/*":"*"}" tabindex="-1" dir="auto" multiple=""/></div>`);t.uploader.bind(n,n=>{let o=(0,r.isFunction)(i.upload)?i.upload:p.defaultHandlerSuccess;(0,r.isFunction)(o)&&o.call(t,n),t.e.fire("closeAllPopups")},i=>{t.message.error(i.message),t.e.fire("closeAllPopups")}),h.push({icon:"upload",name:"Upload",content:n})}if(i.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content:()=>{l&&l(),i.filebrowser&&t.filebrowser.open(i.filebrowser,c)}}),i.url){let a=new s.UIButton(t,{type:"submit",variant:"primary",text:"Insert"}),l=new s.UIForm(t,[new s.UIInput(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new s.UIInput(t,{name:"text",label:"Alternative text"}),new s.UIBlock(t,[a])]);d=null,n&&!o.Dom.isText(n)&&!o.Dom.isComment(n)&&(o.Dom.isTag(n,"img")||(0,r.$$)("img",n).length)&&(d="IMG"===n.tagName?n:(0,r.$$)("img",n)[0],u(l.container,"input[name=url]",(0,r.attr)(d,"src")),u(l.container,"input[name=text]",(0,r.attr)(d,"alt")),a.state.text="Update"),n&&o.Dom.isTag(n,"a")&&(u(l.container,"input[name=url]",(0,r.attr)(n,"href")),u(l.container,"input[name=text]",(0,r.attr)(n,"title")),a.state.text="Update"),l.onSubmit(n=>{(0,r.isFunction)(i.url)&&i.url.call(t,n.url,n.text)}),h.push({icon:"link",name:"URL",content:l.container})}return(0,a.TabsWidget)(t,h)};function u(t,i,n){let o=t.querySelector(i);return o?(n&&(o.value=n),o.value):""}},92762:function(t,i,n){"use strict";n.d(i,{ColorPickerWidget:function(){return o.ColorPickerWidget},FileSelectorWidget:function(){return r.FileSelectorWidget},TabsWidget:function(){return s.TabsWidget}});var o=n(22859),r=n(34793),s=n(38927)},38927:function(t,i,n){"use strict";n.d(i,{TabsWidget:function(){return u}});var o=n(91907),r=n(2748),s=n(23282),a=n(29960),l=n(67510);let u=(t,i,n)=>{let u=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),d=t.c.div("jodit-tabs__buttons");(0,a.attr)(d,{role:"tablist","aria-orientation":"horizontal"});let h={},p=[],f="";u.appendChild(d),u.appendChild(c);let m=t=>{h[t]&&(p.forEach(t=>{t.state.activated=!1}),Object.values(h).forEach(({tab:t})=>t.classList.remove("jodit-tab_active")),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(i.forEach(({icon:u,name:g,content:b})=>{let v=t.c.div("jodit-tab");(0,a.attr)(v,{role:"tabpanel"});let y=(0,l.Button)(t,u||g,g);y.state.role="tab",t.e.on(y.container,"pointerdown",t=>t.preventDefault()),f||(f=g),d.appendChild(y.container),p.push(y),y.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+i.length),(0,s.isFunction)(b)?v.classList.add("jodit-tab_empty"):v.appendChild(o.Component.isInstanceOf(b,l.UIElement)?b.container:b),c.appendChild(v),y.onAction(()=>(m(g),(0,s.isFunction)(b)&&!r.Dom.isElement(b)&&b.call(t),n&&(n.activeTab=g),!1)),h[g]={button:y,tab:v}}),Object.values(h).forEach(({button:t})=>{t.container.style.width=(100/i.length).toFixed(10)+"%"}),m(n&&n.activeTab&&h[n.activeTab]?n.activeTab:f),n){let t=n.activeTab;Object.defineProperty(n,"activeTab",{configurable:!0,enumerable:!1,get(){return t},set(i){t=i,m(i)}})}return u}},73391:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537),a=n(12153),l=n(6441),u=n(49399);l.Config.prototype.controls.about={exec:t=>{let i=t.dlg({closeOnClickOverlay:!0}),n=t.i18n.bind(t);i.setMod("theme",t.o.theme).setHeader(n("About Jodit")).setContent(`<div class="jodit-about">
109
109
  <div>${n("Jodit Editor")} v.${t.getVersion()}</div>
110
110
  <div>${n("License: %s",!(0,s.isLicense)(t.o.license)?t.o.license||"MIT":(0,s.normalizeLicense)(t.o.license))}</div>
111
111
  <div>
@@ -125,7 +125,7 @@
125
125
  <div class="&__spinner"></div>
126
126
  </div>
127
127
  </div>
128
- </div>`}setPrompt(t){if(t){let{jodit:i}=this,n=i.o.aiAssistant[t],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:r}=i.o.aiAssistant;this.promptInput.value=[o,(0,a.isString)(n)?n:"",r].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),s.Dom.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,s.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let i=this.getFullElName("","hide","true");this.__results.classList.add(i),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}constructor(t,{onInsert:i,onInsertAfter:n}){super(t),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,l.Button)(t,"","Insert","primary").onAction(()=>i(this.__aiResult)),this.__insertAfterButton=(0,l.Button)(t,"","Insert After","initial").onAction(()=>n(this.__aiResult));const o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,l.Button)(t,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,l.Button)(t,"update","","initial").onAction(o),this.promptInput=new l.UITextArea(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new l.UIBlock(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new l.UIForm(t,[new l.UIBlock(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(i=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",i.prompt);let n=this.getFullElName("","hide","true");this.__results.classList.remove(n),this.__buttons.classList.remove(n),s.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(r.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,r.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),c([(0,r.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),c([(0,r.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=c([o.component],d)},25187:function(t,i,n){"use strict";n(73391),n(12391),n(93183),n(66707),n(41107),n(71255),n(82439),n(61323),n(93079),n(19063),n(19271),n(1255),n(575),n(11317),n(36243),n(23399),n(96111),n(2169),n(42263),n(16233),n(77469),n(23531),n(80763),n(3215),n(70045),n(93401),n(76295),n(59483),n(91071),n(61019),n(65517),n(20071),n(32309),n(64837),n(79799),n(31571),n(85407),n(59451),n(18363),n(8355),n(58519),n(6687),n(56113),n(9159),n(12019),n(36125),n(9881),n(28545),n(45927),n(52951),n(43809),n(7309),n(68687),n(59495),n(39627),n(767),n(43003),n(72439),n(26551),n(72253),n(65735),n(83671),n(3115)},93183:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(23282),l=n(50911),u=n(45124);n(32496);var c=n(11338),d=n(14630);class h extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,i="char"){let n=this.j,s=n.selection;if(s.isFocused()||s.focus(),(0,c.checkNotCollapsed)(n))return n.e.fire("backSpaceAfterDelete",t),!1;let l=s.range,h=n.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(l,h),!r.Dom.isOrContains(n.editor,h))return;if(n.e.fire("backSpaceBeforeCases",t,h)||((0,u.moveNodeInsideStart)(n,h,t),d.cases.some(r=>{if((0,a.isFunction)(r)&&r(n,h,t,i))return o.IS_PROD,!0})))return!1}catch(t){throw o.IS_PROD,t}finally{n.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){var i,n;let{range:o}=this.j.s;o.startContainer===t&&(t.previousSibling?r.Dom.isText(t.previousSibling)?o.setStart(t.previousSibling,null!=(n=null==(i=t.previousSibling.nodeValue)?void 0:i.length)?n:0):o.setStartAfter(t.previousSibling):t.nextSibling&&(r.Dom.isText(t.nextSibling)?o.setStart(t.nextSibling,0):o.setStartBefore(t.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),r.Dom.safeRemove(t)}}h.requires=["hotkeys"],s.pluginSystem.add("backspace",h)},62845:function(t,i,n){"use strict";n.d(i,{checkJoinNeighbors:function(){return a}});var o=n(82758),r=n(2748),s=n(63785);function a(t,i,n){let s=i,a=s;for(;s&&!r.Dom.findNotEmptySibling(s,n)&&s.parentElement!==t.editor;)a=s=s.parentElement;if(r.Dom.isElement(a)&&r.Dom.isContentEditable(a,t.editor)){var u,c;let s,d,h,p=r.Dom.findNotEmptySibling(a,n);if(r.Dom.isTag(p,"br"))return r.Dom.safeRemove(p),t.s.setCursorBefore(i),!0;if(p&&(u=a,c=p,s=r.Dom.isTag(c,o.LIST_TAGS),d=r.Dom.isTag(u,o.LIST_TAGS),h=(t,i)=>i?t.firstElementChild:t.lastElementChild,(d?(c=t.createInside.element(t.o.enterBlock),r.Dom.before(u,c),l(t,h(u,n),c,n)):!!c&&!!s&&!d&&l(t,u,h(c,!n),n))||l(t,a,function(t,i){if(!r.Dom.isTag(t,"table"))return t;let n=t.querySelectorAll("td,th");return n.length?n[i?n.length-1:0]:null}(p,n),n)))return t.s.setCursorBefore(i),!0}return!1}function l(t,i,n,o){if(i&&r.Dom.isElement(n)){r.Dom.moveContent(i,n,!o,(0,s.getMoveFilter)(t));let a=i;for(;a&&a!==t.editor&&r.Dom.isEmpty(a);){let t=a.parentElement;r.Dom.safeRemove(a),a=t}return!0}return!1}},91748:function(t,i,n){"use strict";n.d(i,{checkJoinTwoLists:function(){return a}});var o=n(2748),r=n(37790),s=n(63785);function a(t,i,n){let a=o.Dom.findSibling(i,n),l=o.Dom.findSibling(i,!n);if(!o.Dom.closest(i,o.Dom.isElement,t.editor)&&o.Dom.isList(a)&&o.Dom.isList(l)&&o.Dom.isTag(a.lastElementChild,"li")&&o.Dom.isTag(l.firstElementChild,"li")){let{setCursorBefore:u,setCursorAfter:c}=t.s,d=a.lastElementChild,h=l.firstElementChild;return(0,r.call)(n?o.Dom.prepend:o.Dom.append,h,i),o.Dom.moveContent(l,a,!n,(0,s.getMoveFilter)(t)),o.Dom.safeRemove(l),(0,r.call)(n?o.Dom.append:o.Dom.prepend,d,i),(0,r.call)(n?u:c,i),!0}return!1}},11338:function(t,i,n){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}n.d(i,{checkNotCollapsed:function(){return o}})},73792:function(t,i,n){"use strict";n.d(i,{checkRemoveChar:function(){return function t(i,n,a,u){var c,d,h,p;let f,m=a?-1:1,g=r.Dom.sibling(n,!a),b=r.Dom.sibling(n,a),v=null,y=!1;for(b||(b=l(n,a,i.editor));b&&(r.Dom.isText(b)||r.Dom.isInlineBlock(b));){for(;r.Dom.isInlineBlock(b);)b=a?null==b?void 0:b.lastChild:null==b?void 0:b.firstChild;if(!b)break;if((null==(c=b.nodeValue)?void 0:c.length)&&(f=function(t,i,n,a){let l=(0,s.toArray)(t.nodeValue),u=l.length,c=i?u-1:0;if(l[c]===o.INVISIBLE_SPACE)for(;l[c]===o.INVISIBLE_SPACE;)c+=n;let d=l[c];if(l[c+n]===o.INVISIBLE_SPACE){for(c+=n;l[c]===o.INVISIBLE_SPACE;)c+=n;c+=i?1:-1}return l=i&&c<0?[]:l.slice(i?0:c+1,i?c:u),function(t,i,n){var a;if(!t||!r.Dom.isText(t)||(!i?/ $/:/^ /).test(null!=(a=t.nodeValue)?a:"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=i?n.length-1:0;i?t>=0:t<n.length;t+=i?-1:1)if(" "===n[t])n[t]=o.NBSP_SPACE;else break}(a,i,l),t.nodeValue=l.join(""),d}(b,a,m,g),!b.nodeValue.length&&r.Dom.isInlineBlock(b.parentNode)&&(b.nodeValue=o.INVISIBLE_SPACE)),(null==(d=b.nodeValue)?void 0:d.length)||(v=b),!(0,s.isVoid)(f)&&f!==o.INVISIBLE_SPACE){h=b,p=f,(0,s.call)(a?r.Dom.after:r.Dom.before,h,n),("sentence"===u||"word"===u&&" "!==p&&p!==o.NBSP_SPACE)&&t(i,n,a,u),y=!0;break}let _=l(b,a,i.editor);v&&(r.Dom.safeRemove(v),v=null),b=_}return v&&(r.Dom.safeRemove(v),v=null),y&&(function(t){let i=t.parentElement;for(;i&&r.Dom.isInlineBlock(i)&&r.Dom.isTag(i,"a");){let n=i.parentElement;r.Dom.isEmpty(i)&&(r.Dom.after(i,t),r.Dom.safeRemove(i)),i=n}}(n),n.parentElement!==i.editor&&r.Dom.isBlock(n.parentElement)&&r.Dom.each(n.parentElement,r.Dom.isEmptyTextNode)&&r.Dom.after(n,i.createInside.element("br")),i.s.setCursorBefore(n),r.Dom.isTag(n.previousSibling,"br")&&!r.Dom.findNotEmptySibling(n,!1)&&r.Dom.after(n,i.createInside.element("br"))),y}}});var o=n(82758),r=n(22732),s=n(21537),a=n(63785);function l(t,i,n){let o=r.Dom.sibling(t,i);return!o&&t.parentNode&&t.parentNode!==n&&(o=(0,a.findMostNestedNeighbor)(t,!i,n,!0))&&r.Dom.closest(t,"li",n)!==r.Dom.closest(o,"li",n)?null:o}},87536:function(t,i,n){"use strict";n.d(i,{checkRemoveContentNotEditable:function(){return a}});var o=n(22732),r=n(21537),s=n(45124);function a(t,i,n){let a=o.Dom.findSibling(i,n);return!a&&i.parentElement&&i.parentElement!==t.editor&&(a=o.Dom.findSibling(i.parentElement,n)),!(!o.Dom.isElement(a)||o.Dom.isContentEditable(a,t.editor))&&((0,r.call)(n?o.Dom.before:o.Dom.after,a,i),o.Dom.safeRemove(a),(0,s.moveNodeInsideStart)(t,i,n),(0,r.call)(n?t.s.setCursorBefore:t.s.setCursorAfter,i),!0)}},12474:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyNeighbor:function(){return r}});var o=n(2748);function r(t,i,n){let r=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!r)return!1;let s=o.Dom.findNotEmptySibling(r,n);return!!(s&&o.Dom.isEmpty(s))&&(o.Dom.safeRemove(s),t.s.setCursorBefore(i),!0)}},58940:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyParent:function(){return a}});var o=n(82758),r=n(22732),s=n(91748);function a(t,i,n){let a=!1,{setCursorBefore:l,setCursorIn:u}=t.s,c=r.Dom.closest(i,r.Dom.isElement,t.editor);if(!c||!r.Dom.isEmpty(c))return!1;let d=r.Dom.findNotEmptyNeighbor(i,n,t.editor);do if(c&&r.Dom.isEmpty(c)&&!r.Dom.isCell(c)){r.Dom.after(c,i);let n=r.Dom.closest(c,t=>r.Dom.isElement(t)&&t!==c,t.editor);r.Dom.safeRemove(c),a=!0,c=n}else break;while(c);return!!(a&&(0,s.checkJoinTwoLists)(t,i,n))||(!d||r.Dom.isText(d)||r.Dom.isTag(d,o.INSEPARABLE_TAGS)?l(i):u(d,!n),a)}},56825:function(t,i,n){"use strict";n.d(i,{checkRemoveUnbreakableElement:function(){return a}});var o=n(82758),r=n(2748),s=n(58940);function a(t,i,n){let a=r.Dom.findSibling(i,n);return!!(r.Dom.isElement(a)&&(r.Dom.isTag(a,o.INSEPARABLE_TAGS)||r.Dom.isEmpty(a)))&&(r.Dom.safeRemove(a),r.Dom.isTag(a,"br")&&!r.Dom.findNotEmptySibling(i,!1)&&r.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),r.Dom.isTag(a,"br")&&(0,s.checkRemoveEmptyParent)(t,i,n),!0)}},90240:function(t,i,n){"use strict";n.d(i,{checkTableCell:function(){return r}});var o=n(2748);function r(t,i){let n=i.parentElement;return!!o.Dom.isCell(n)}},68034:function(t,i,n){"use strict";n.d(i,{checkUnwrapFirstListItem:function(){return s}});var o=n(2748),r=n(43555);function s(t,i,n){var s;let a=o.Dom.closest(i,o.Dom.isElement,t.editor),{s:l}=t;if(o.Dom.isLeaf(a)&&(null==(s=null==a?void 0:a.parentElement)?void 0:s[n?"firstElementChild":"lastElementChild"])===a&&l.cursorInTheEdge(n,a)){let s=a.parentElement,u=t.createInside.element(t.o.enterBlock);return(0,r.call)(n?o.Dom.before:o.Dom.after,s,u),o.Dom.moveContent(a,u),o.Dom.safeRemove(a),o.Dom.isEmpty(s)&&o.Dom.safeRemove(s),(0,r.call)(n?l.setCursorBefore:l.setCursorAfter,i),!0}return!1}},14630:function(t,i,n){"use strict";n.d(i,{cases:function(){return p}});var o=n(62845),r=n(91748),s=n(73792),a=n(87536),l=n(12474),u=n(58940),c=n(56825),d=n(90240),h=n(68034);let p=[c.checkRemoveUnbreakableElement,a.checkRemoveContentNotEditable,s.checkRemoveChar,d.checkTableCell,u.checkRemoveEmptyParent,l.checkRemoveEmptyNeighbor,r.checkJoinTwoLists,o.checkJoinNeighbors,h.checkUnwrapFirstListItem]},32496:function(t,i,n){"use strict";n(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(t,i,n){"use strict";n.d(i,{findMostNestedNeighbor:function(){return r},getMoveFilter:function(){return s}});var o=n(22732);function r(t,i,n,s=!1){let a=t=>i?t.firstChild:t.lastChild,l=o.Dom.findNotEmptyNeighbor(t,!i,n);if(s&&o.Dom.isElement(l)&&!o.Dom.isInlineBlock(l))return null;if(l)do{if(!a(l))return l;l=a(l)}while(l);return null}function s(t){return i=>!0!==t.e.fire("backSpaceIsMovedIgnore",i)}},41107:function(t,i,n){"use strict";var o=n(580),r=n(21537),s=n(12153),a=n(6441);n(73674);var l=n(820),u=n(53651),c=n(16020),d=n(89758),h=n(98527),p=n(51855);o.pluginSystem.add("bold",function(t){let i=i=>{let n,o=a.Config.defaultOptions.controls[i],s=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},o.css);return Object.keys(s).forEach(t=>{n||(n={}),n[t]=(0,r.isArray)(s[t])?s[t][0]:s[t]}),t.s.commitStyle({element:o.tags?o.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(i=>{t.registerButton({name:i,group:"font-style"})}),["superscript","subscript"].forEach(i=>{t.registerButton({name:i,group:"script"})}),t.registerCommand("bold",{exec:i,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:i,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:i,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:i}).registerCommand("subscript",{exec:i}).registerCommand("superscript",{exec:i})}),s.Icon.set("bold",l.default).set("italic",u.default).set("strikethrough",c.default).set("subscript",d.default).set("superscript",h.default).set("underline",p.default)},73674:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> '},53651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},16020:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> '},89758:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> '},98527:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> '},51855:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},71255:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(37790),a=n(50911),l=n(12153),u=n(6441),c=n(31151);u.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:(t,i)=>{let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor;return!!(i.control.args&&r.classList.contains(i.control.args[0].toString()))}return!1},isActive:(t,i)=>{let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor,s=!1;return i.control.list&&Object.keys(i.control.list).forEach(t=>{r.classList.contains(t)&&(s=!0)}),!!(r&&r!==t.editor&&void 0!==i.control.list&&s)}return!1},childTemplate:(t,i,n)=>`<span class="${i}">${t.i18n(n)}</span>`,tooltip:"Insert className"};class d extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(i,n,o)=>(t.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}r.pluginSystem.add("classSpan",d),l.Icon.set("class-span",c.default)},31151:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},82439:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(70071),a=n(580),l=n(86518),u=n(20356);n(46776);var c=n(59498),d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){let{jodit:t}=this,i=(0,c.getHash)(this.j.o.cleanHTML.allowTags),n=(0,c.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",o=>(0,c.visitNodeWalker)(t,o,i,n,this.currentSelectionNode)).on("end",t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?(0,c.removeFormatForCollapsedSelection)(this.j):(0,c.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(t){let[i,n]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return i.innerHTML=t.value,this.j.e.fire("safeHTML",i),t.value=i.innerHTML,(0,l.safeHTML)(i,{safeJavaScriptLink:!0,removeOnError:!0}),r.Dom.safeRemove(n),!1}onSafeHTML(t){let i=this.j.o.cleanHTML.sanitizer;i&&(t.innerHTML=i(t.innerHTML)),(0,l.safeHTML)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new s.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}d([(0,o.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),d([(0,o.hook)("ready")],h.prototype,"startWalker",null),d([(0,o.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),d([(0,o.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),d([(0,o.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),a.pluginSystem.add("cleanHtml",h)},46776:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(44330);r.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},r.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},o.Icon.set("eraser",s.default)},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},83447:function(t,i,n){"use strict";n.d(i,{getHash:function(){return s}});var o=n(70799),r=n(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,o.isString)(t)?(t.split(n).map(t=>{t=(0,r.trim)(t);let o=i.exec(t),l={};if(o){let t=o[2].split(n);o[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[o[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},59498:function(t,i,n){"use strict";n.d(i,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return r.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return a.visitNodeWalker}});var o=n(83447),r=n(84272),s=n(42312),a=n(39516)},84272:function(t,i,n){"use strict";n.d(i,{isInlineBlock:function(){return a},removeFormatForCollapsedSelection:function(){return s}});var o=n(82758),r=n(2748);function s(t,i){let{s:n}=t,o=i;if(!o){o=t.createInside.fake();let{range:i}=n;r.Dom.safeInsertNode(i,o),i.collapse()}let s=r.Dom.furthest(o,a,t.editor);if(s)if(n.cursorOnTheLeft(s))r.Dom.before(s,o);else if(n.cursorOnTheRight(s))r.Dom.after(s,o);else{let t=n.splitSelection(s);t&&r.Dom.after(t,o)}i||(n.setCursorBefore(o),r.Dom.safeRemove(o))}function a(t){return r.Dom.isInlineBlock(t)&&!r.Dom.isTag(t,o.INSEPARABLE_TAGS)}},42312:function(t,i,n){"use strict";n.d(i,{removeFormatForSelection:function(){return a}});var o=n(2748),r=n(43555),s=n(84272);function a(t){let{s:i,editor:n,createInside:a}=t,{range:l}=i,u=l.cloneRange(),c=l.cloneRange(),d=a.fake(),h=a.fake();u.collapse(!0),c.collapse(!1),o.Dom.safeInsertNode(u,d),o.Dom.safeInsertNode(c,h),l.setStartBefore(d),l.collapse(!0),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,d),l.setEndAfter(h),l.collapse(!1),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,h);let p=[];o.Dom.between(d,h,t=>{(0,s.isInlineBlock)(t)&&!o.Dom.isTag(t,"a")&&p.push(t),o.Dom.isElement(t)&&(0,r.attr)(t,"style")&&(0,r.attr)(t,"style",null)}),p.forEach(t=>o.Dom.unwrap(t));let f=(t,i)=>{if(!o.Dom.findNotEmptySibling(t,i)){let o=t.parentNode;if(o&&o!==n&&(0,r.attr)(o,"style"))return(0,r.attr)(o,"style",null),f(o,i),!0}};f(d,!0)&&f(h,!1),l.setStartAfter(d),l.setEndBefore(h),i.selectRange(l),o.Dom.safeRemove(d),o.Dom.safeRemove(h)}},82558:function(t,i,n){"use strict";n.d(i,{allowAttributes:function(){return r}});var o=n(2748);function r(t,i,n,r){let s=r&&o.Dom.isElement(i)&&r[i.nodeName];if(r&&o.Dom.isElement(i)&&!0!==s){if(!s)return n;let t=i.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let n=s[t[i].name];n&&(!0===n||n===t[i].value)||o.push(t[i].name)}o.length&&(n=!0),o.forEach(t=>{i.removeAttribute(t)})}}return n}},1962:function(t,i,n){"use strict";n.d(i,{convertUnsafeEmbeds:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=t.o.cleanHTML.convertUnsafeEmbeds;if(!s||!o.Dom.isElement(i))return n;let a=i.nodeName.toLowerCase();if(!s.includes(a))return n;let l=(0,r.attr)(i,"data")||(0,r.attr)(i,"src")||(0,r.attr)(i,"movie")||"";if(!l)return o.Dom.safeRemove(i),!0;let u=t.createInside.element("iframe");return(0,r.attr)(u,{src:l,sandbox:"",frameborder:"0",width:(0,r.attr)(i,"width"),height:(0,r.attr)(i,"height")}),o.Dom.replace(i,u,void 0,!1,!0),!0}},39433:function(t,i,n){"use strict";n.d(i,{fillEmptyParagraph:function(){return a}});var o=n(82758),r=n(2748);let s=new Set(["table","tbody","thead","tfoot","tr"]);function a(t,i,n){if(t.o.cleanHTML.fillEmptyParagraph&&r.Dom.isBlock(i)&&r.Dom.isEmpty(i,o.INSEPARABLE_TAGS)&&!r.Dom.isTag(i,s)){let n=t.createInside.element("br");return i.appendChild(n),!0}return n}},45235:function(t,i,n){"use strict";n.r(i),n.d(i,{allowAttributes:function(){return o.allowAttributes},convertUnsafeEmbeds:function(){return r.convertUnsafeEmbeds},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return a.removeEmptyTextNode},removeInvTextNodes:function(){return l.removeInvTextNodes},replaceOldTags:function(){return u.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return d.sandboxIframesInContent},sanitizeAttributes:function(){return h.sanitizeAttributes},sanitizeStyles:function(){return p.sanitizeStyles},tryRemoveNode:function(){return f.tryRemoveNode}});var o=n(82558),r=n(1962),s=n(39433),a=n(53392),l=n(25813),u=n(80973),c=n(95614),d=n(85978),h=n(384),p=n(15583),f=n(28800)},53392:function(t,i,n){"use strict";n.d(i,{removeEmptyTextNode:function(){return r}});var o=n(2748);function r(t,i,n,r,s,a){return o.Dom.isText(i)&&!i.nodeValue?(i===a&&t.s.isCollapsed()&&t.s.setCursorAfter(i),o.Dom.safeRemove(i),!0):n}},25813:function(t,i,n){"use strict";n.d(i,{removeInvTextNodes:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n,s,a,l){if(l===i||!r.Dom.isText(i)||null==i.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(i.nodeValue))return n;let u=r.Dom.furthest(l,r.Dom.isBlock,t.editor);return!u||r.Dom.isOrContains(u,i)?n:(i.nodeValue=i.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),i===l&&t.s.isCollapsed()&&t.s.setCursorAfter(i),i.nodeValue||r.Dom.safeRemove(i),!0)}},80973:function(t,i,n){"use strict";n.d(i,{replaceOldTags:function(){return r}});var o=n(2748);function r(t,i,n){let r=function(t,i,n){if(!n||!o.Dom.isHTMLElement(i))return i;let r=n[i.nodeName.toLowerCase()]||n[i.nodeName];return r?o.Dom.replace(i,r,t.createInside,!0,!1):i}(t,i,t.o.cleanHTML.replaceOldTags);return i!==r?(i=r,!0):n}},95614:function(t,i,n){"use strict";n.d(i,{safeLinksTarget:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){if(!t.o.cleanHTML.safeLinksTarget||!o.Dom.isElement(i)||"A"!==i.nodeName||"_blank"!==(0,r.attr)(i,"target"))return n;let s=((0,r.attr)(i,"rel")||"").split(/\s+/).filter(Boolean),a=!1;return(s.includes("noopener")||(s.push("noopener"),a=!0),s.includes("noreferrer")||(s.push("noreferrer"),a=!0),a)?((0,r.attr)(i,"rel",s.join(" ")),!0):n}},85978:function(t,i,n){"use strict";n.d(i,{sandboxIframesInContent:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){return t.o.cleanHTML.sandboxIframesInContent&&o.Dom.isElement(i)&&"IFRAME"===i.nodeName?i.hasAttribute("sandbox")?n:((0,r.attr)(i,"sandbox",""),!0):n}},384:function(t,i,n){"use strict";n.d(i,{sanitizeAttributes:function(){return s}});var o=n(2748),r=n(21537);function s(t,i,n){if(!o.Dom.isElement(i))return n;let s=t.options.cleanHTML;return!!(0,r.sanitizeHTMLElement)(i,{safeJavaScriptLink:s.safeJavaScriptLink,removeOnError:s.removeOnError,removeEventAttributes:s.removeEventAttributes,safeLinksTarget:s.safeLinksTarget})||n}},15583:function(t,i,n){"use strict";n.d(i,{sanitizeStyles:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=t.o.cleanHTML.allowedStyles;if(!s||!o.Dom.isElement(i))return n;let a=(0,r.attr)(i,"style");if(!a)return n;let l=function(t,i){let n=i[t],o=i["*"];if(!n&&!o)return null;let r=new Set;if(o)for(let t of o)r.add(t.toLowerCase());if(n)for(let t of n)r.add(t.toLowerCase());return r}(i.nodeName.toLowerCase(),s);if(!l)return n;let u=a.split(";").map(t=>t.trim()).filter(t=>{if(!t)return!1;let i=t.indexOf(":");if(-1===i)return!1;let n=t.substring(0,i).trim().toLowerCase();return l.has(n)}).join("; ").replace(/;\s*$/,"");return u!==a?((0,r.attr)(i,"style",u||null),!0):n}},28800:function(t,i,n){"use strict";n.d(i,{tryRemoveNode:function(){return a}});var o=n(82758),r=n(2748),s=n(49055);function a(t,i,n,a,l,u){return!function(t,i,n,a,l){if(!r.Dom.isText(i)&&(a&&!a[i.nodeName]||!a&&l&&l[i.nodeName]))return!0;if(!t.o.cleanHTML.removeEmptyElements)return!1;let u=t.s.isCollapsed()?t.s.range.startContainer:null;return r.Dom.isElement(i)&&null!=i.nodeName.match(o.IS_INLINE)&&!r.Dom.isTemporary(i)&&0===(0,s.trimInv)(i.innerHTML).length&&(null==n||!r.Dom.isOrContains(i,n))&&(null==u||!r.Dom.isOrContains(i,u))}(t,i,u,a,l)?n:(r.Dom.safeRemove(i),!0)}},39516:function(t,i,n){"use strict";n.d(i,{visitNodeWalker:function(){return a}});var o=n(82758),r=n(45235);let s=Object.keys(r);function a(t,i,n,a,l){let u=!1,c=t.o.cleanHTML.disableCleanFilter;for(let d of s)if(!(c&&c.has(d))&&(u=(0,r[d])(t,i,u,n,a,l),o.IS_PROD,!i.isConnected))return!0;return u}},61323:function(t,i,n){"use strict";var o=n(82758),r=n(33433),s=n(2748),a=n(580),l=n(21537);n(79419);class u{init(t){var i;null==(i=this.buttons)||i.forEach(i=>t.registerButton(i)),t.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,i=>{var n;let r=function(t,i){if(!i||t.s.isCollapsed())return i;let n=t.s.range.commonAncestorContainer;s.Dom.isElement(n)||(n=n.parentElement);let o=i;for(;n&&n!==t.editor&&s.Dom.isElement(n)&&!s.Dom.isBlock(n);){let t=n.cloneNode(!1);t.innerHTML=o,o=t.outerHTML,n=n.parentElement}return o}(t,t.s.html),a=(0,l.getDataTransfer)(i)||(0,l.getDataTransfer)(t.ew)||(0,l.getDataTransfer)(i.originalEvent);a&&(a.setData(o.TEXT_PLAIN,(0,l.stripTags)(r)),a.setData(o.TEXT_HTML,r)),t.buffer.set(o.CLIPBOARD_ID,r),t.e.fire("pasteStack",{html:r,action:t.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===i.type&&(t.s.remove(),t.s.focus()),i.preventDefault(),null==(n=null==t?void 0:t.events)||n.fire("afterCopy",r)})}destruct(t){var i,n;null==(i=(0,r.cached)(t,"buffer"))||i.set(o.CLIPBOARD_ID,""),null==(n=null==t?void 0:t.events)||n.off("."+o.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}a.pluginSystem.add("clipboard",u)},79419:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(94775),a=n(23140),l=n(92699),u=n(10052);r.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},r.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",s.default).set("cut",a.default).set("paste",l.default).set("select-all",u.default)},94775:function(t,i){"use strict";i.default='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> '},23140:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> '},92699:function(t,i){"use strict";i.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},10052:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},93079:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(21988),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let i=(i,n,o)=>{var s;let a=(0,r.normalizeColor)(o)||"",l="background"===i?{backgroundColor:a}:{color:a},u=t.getInstance("Table",t.o).getAllSelectedCells();return u.length&&t.s.isCollapsed()?(u.forEach(i=>{t.s.select(i,!0),t.s.commitStyle({attributes:{style:l}})}),null==(s=t.s.sel)||s.removeAllRanges()):t.s.commitStyle({attributes:{style:l}}),t.synchronizeValues(),!1};t.registerCommand("forecolor",i).registerCommand("background",i)})},21988:function(t,i,n){"use strict";var o=n(2748),r=n(21537),s=n(12153),a=n(6441),l=n(92762),u=n(46104);s.Icon.set("brush",u.default),a.Config.prototype.controls.brushCell={isVisible:t=>!t.o.disablePlugins.includes("color"),icon:"brush",popup:(t,i,n)=>{if(!(0,r.isJoditObject)(t))return;let o=t.getInstance("Table",t.o).getAllSelectedCells();if(!o.length)return!1;let s=i=>(0,l.ColorPickerWidget)(t,s=>{o.forEach(t=>{(0,r.css)(t,i,s)}),t.lock(),t.synchronizeValues(),n(),t.unlock()},(0,r.css)(o[0],i));return(0,l.TabsWidget)(t,[{name:"Background",content:s("background-color")},{name:"Text",content:s("color")},{name:"Border",content:s("border-color")}])},tooltip:"Background"},a.Config.prototype.controls.brush={isVisible:t=>!t.o.disablePlugins.includes("color"),update(t,i){let n=(0,r.dataBind)(i,"color"),s=(n,o)=>!!o&&o!==(0,r.css)(t.editor,n).toString()&&(i.state.icon.fill=o,!0);if(n){let t=(0,r.dataBind)(i,"color");s("color"===t?t:"background-color",n);return}let a=t.s.current();if(a&&!i.state.disabled){let i=o.Dom.closest(a,o.Dom.isElement,t.editor)||t.editor,n=s("color",(0,r.css)(i,"color").toString()),l=s("background-color",(0,r.css)(i,"background-color").toString());if(n||l)return}i.state.icon.fill="",i.state.activated=!1},popup:(t,i,n,s)=>{let a="",u="",c=[],d=null;return i&&i!==t.editor&&o.Dom.isNode(i)&&(o.Dom.isElement(i)&&t.s.isCollapsed()&&!o.Dom.isTag(i,new Set(["br","hr"]))&&(d=i),o.Dom.up(i,t=>{if(o.Dom.isHTMLElement(t)){let i=(0,r.css)(t,"color",!0),n=(0,r.css)(t,"background-color",!0);if(i)return a=i.toString(),!0;if(n)return u=n.toString(),!0}},t.editor)),c=[{name:"Background",content:(0,l.ColorPickerWidget)(t,i=>{d?d.style.backgroundColor=i:t.execCommand("background",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","background"),n()},u)},{name:"Text",content:(0,l.ColorPickerWidget)(t,i=>{d?d.style.color=i:t.execCommand("forecolor",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","color"),n()},a)}],"background"!==t.o.colorPickerDefaultTab&&(c=c.reverse()),(0,l.TabsWidget)(t,c,d)},exec(t,i,{button:n}){let s=(0,r.dataBind)(n,"color-mode"),a=(0,r.dataBind)(n,"color");if(!s)return!1;if(i&&i!==t.editor&&o.Dom.isNode(i)&&o.Dom.isElement(i))switch(s){case"color":i.style.color=a;break;case"background":i.style.backgroundColor=a}else t.execCommand("background"===s?s:"forecolor",!1,a)},tooltip:"Fill color or set the text color"}},19063:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(41180),a=n(12153),l=n(6441),u=n(57487),c=n(23914);let d="copy-format",h=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(t,i,n,o)=>{let r=(0,s.css)(n,i);return r===o[i]&&(r=n.parentNode&&n!==t.editor&&n.parentNode!==t.editor?p(t,i,n.parentNode,o):void 0),r};l.Config.prototype.controls.copyformat={exec:(t,i,{button:n})=>{if(i){if(t.buffer.exists(d))t.buffer.delete(d),t.e.off(t.editor,"mouseup."+d);else{let n,r={},a=o.Dom.up(i,t=>t&&!o.Dom.isText(t),t.editor)||t.editor,l=t.createInside.span();t.editor.appendChild(l),h.forEach(t=>{r[t]=(0,s.css)(l,t)}),l!==t.editor&&o.Dom.safeRemove(l);let u=(n={},a&&h.forEach(i=>{n[i]=p(t,i,a,r),i.match(/border(Style|Color)/)&&!n.borderWidth&&(n[i]=void 0)}),n);t.e.on(t.editor,"mouseup."+d,()=>{t.buffer.delete(d);let i=t.s.current();i&&(o.Dom.isTag(i,"img")?(0,s.css)(i,u):t.s.commitStyle({attributes:{style:u}})),t.e.off(t.editor,"mouseup."+d)}),t.buffer.set(d,!0)}n.update()}},isActive:t=>t.buffer.exists(d),tooltip:"Paint format"},r.pluginSystem.add("copyformat",function(t){t.registerButton({name:"copyformat",group:"clipboard"}),(0,r.extendLang)(c)}),a.Icon.set("copyformat",u.default)},57487:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> '},63819:function(t,i){"use strict";i.default={"copy-format":"نسخ التنسيق"}},72392:function(t,i){"use strict";i.default={"copy-format":"Kop\xedrovat form\xe1t"}},74551:function(t,i){"use strict";i.default={"copy-format":"Format kopierenт"}},2536:function(t,i){"use strict";i.default={"copy-format":"Copiar formato"}},52285:function(t,i){"use strict";i.default={"copy-format":"کپی کردن قالب"}},12117:function(t,i){"use strict";i.default={"copy-format":"Kopioi muotoilu"}},35140:function(t,i){"use strict";i.default={"copy-format":"Format de copie"}},28435:function(t,i){"use strict";i.default={"copy-format":"העתק עיצוב"}},98019:function(t,i){"use strict";i.default={"copy-format":"Form\xe1tum m\xe1sol\xe1s"}},96457:function(t,i){"use strict";i.default={"copy-format":"salin format"}},23914:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o.default},cs_cz:function(){return r.default},de:function(){return s.default},es:function(){return a.default},fa:function(){return l.default},fi:function(){return u.default},fr:function(){return c.default},he:function(){return d.default},hu:function(){return h.default},id:function(){return p.default},it:function(){return f.default},ja:function(){return m.default},ko:function(){return g.default},mn:function(){return b.default},nl:function(){return v.default},pl:function(){return y.default},pt_br:function(){return _.default},ru:function(){return C.default},tr:function(){return w.default},zh_cn:function(){return F.default},zh_tw:function(){return E.default}});var o=n(63819),r=n(72392),s=n(74551),a=n(2536),l=n(52285),u=n(12117),c=n(35140),d=n(28435),h=n(98019),p=n(96457),f=n(33561),m=n(96545),g=n(52230),b=n(33307),v=n(71042),y=n(32172),_=n(39179),C=n(60629),w=n(68278),F=n(1172),E=n(4164)},33561:function(t,i){"use strict";i.default={"copy-format":"Copia il formato"}},96545:function(t,i){"use strict";i.default={"copy-format":"copyformat"}},52230:function(t,i){"use strict";i.default={"copy-format":"복사 형식"}},33307:function(t,i){"use strict";i.default={"copy-format":"Формат хуулах"}},71042:function(t,i){"use strict";i.default={"copy-format":"opmaak kopi\xebren"}},32172:function(t,i){"use strict";i.default={"copy-format":"format kopii"}},39179:function(t,i){"use strict";i.default={"copy-format":"Copiar formato"}},60629:function(t,i){"use strict";i.default={"copy-format":"Копировать формат"}},68278:function(t,i){"use strict";i.default={"copy-format":"Kopyalama Bi\xe7imi"}},1172:function(t,i){"use strict";i.default={"copy-format":"复制格式"}},4164:function(t,i){"use strict";i.default={"copy-format":"複製格式"}},66707:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(21537),a=n(49055),l=n(50911);class u extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,i=t.s.current();if(i&&o.Dom.isTag(i.firstChild,"br")&&t.s.removeNode(i.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!i||!o.Dom.closest(i,"table",t.editor))){t.editor.innerHTML="";let i=t.s.setCursorIn(t.editor);t.s.removeNode(i)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let i=t.s.range;i.deleteContents();let n=t.createInside.fake();i.insertNode(n);let r=o.Dom.findSibling(n,!0),s=o.Dom.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,s),i.setStartBefore(n),i.collapse(!0),this.__moveCursorInEditableSibling(t,r,n,i),this.__addBrInEmptyBlock(n,s,i),o.Dom.safeRemove(n),t.s.selectRange(i),!1}__moveContentInLeftSibling(t,i,n){i=this.__defineRightLeftBox(i),!o.Dom.isList(n)&&!o.Dom.isTag(n,"table")&&o.Dom.isBlock(n)&&o.Dom.isBlock(i)&&(o.Dom.append(i,t),o.Dom.moveContent(n,i),o.Dom.safeRemove(n)),o.Dom.isList(n)&&o.Dom.isLeaf(n.firstElementChild)&&o.Dom.isEmpty(n.firstElementChild)&&o.Dom.safeRemove(n.firstElementChild)}__defineRightLeftBox(t){if(!o.Dom.isList(t))return t;let i=t.lastElementChild;return o.Dom.isLeaf(i)||(i=this.j.createInside.element("li"),o.Dom.append(t,i)),i}__addBrInEmptyBlock(t,i,n){let r=this.j;if(t.isConnected&&o.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let i=r.createInside.element("br");o.Dom.after(t,i),n.setStartBefore(i),n.collapse(!0)}if(o.Dom.isTag(i,"table")){let t=(0,s.$$)("td,th",i).shift();o.Dom.isCell(t)&&o.Dom.isEmpty(t)&&o.Dom.append(t,r.createInside.element("br"))}}__moveCursorInEditableSibling(t,i,n,r){var s;if(!i||!o.Dom.isText(i)){let i=null!=(s=o.Dom.closest(n,o.Dom.isBlock,t.editor))?s:t.editor,a=o.Dom.prev(n,o.Dom.isText,i);a&&(r.setStartAfter(a),r.collapse(!0),o.Dom.safeRemove(n))}}}u.requires=["backspace"],r.pluginSystem.add("deleteCommand",u)},44586:function(t,i,n){"use strict";n(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(t,i,n){"use strict";var o,r,s=n(65478),a=n(22732),l=n(580),u=n(21537),c=n(50911);n(44586);var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};(o=r||(r={}))[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING";class h extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,u.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(t,i){this.isInDestruct||this.state>r.IDLE||!t||this.startDragging(t,i)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>r.IDLE)return;let i=t.target;if(!this.dragList.length||!i)return;let n=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),o=a.Dom.furthest(i,n,this.j.editor)||(n(i)?i:null);o&&(a.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startDragging(o,t))}startDragging(t,i){this.startX=i.clientX,this.startY=i.clientY,this.isCopyMode=(0,u.ctrlKey)(i),this.draggable=t.cloneNode(!0),(0,u.dataBind)(this.draggable,"target",t),this.state=r.WAIT_DRAGGING,this.addDragListeners()}onDrag(t){var i,n;if(!this.draggable||this.state===r.IDLE)return;let o=t.clientX,s=t.clientY;if(!(this.state===r.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(s-this.startY,2))<this.diffStep)){if(this.state===r.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=r.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let o=(0,u.dataBind)(this.draggable,"target");(0,u.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:null!=(i=null==o?void 0:o.offsetWidth)?i:100,height:null!=(n=null==o?void 0:o.offsetHeight)?n:100}),(0,l.getContainer)(this.j,h).appendChild(this.draggable)}(0,u.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=r.IDLE,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<r.DRAGGING)return void this.onDragEnd();let t=(0,u.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:i}=t;this.j.s.insertNode(t,!0,!1),[t.previousSibling,t.nextSibling].forEach(t=>{a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)}),i&&a.Dom.isEmpty(i)&&!a.Dom.isCell(i)&&a.Dom.safeRemove(i),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=r.IDLE}}d([s.autobind],h.prototype,"onStartDragElement",null),d([s.autobind],h.prototype,"onDragStart",null),d([(0,s.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),d([s.autobind],h.prototype,"onDragEnd",null),d([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",h)},19271:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(50911),c=n(8172),d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var i;let n=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=s.Dom.isOrContains(this.j.editor,n,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,l.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,i=t&&t.rangeCount?t.getRangeAt(0):null;i&&(this.bufferRange=i.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,i=n,s.Dom.isElement(i)&&i.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(n=n.querySelector("img")),s.Dom.isTag(n,"img")&&(this.draggable=n.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",n)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let i=this.j.s.sel,n=this.bufferRange||(i&&i.rangeCount?i.getRangeAt(0):null),o=this.__getWorkFragment(n,t);i&&i.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),o&&this.__insertFragment.call(this,o,n),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,i){let n=null;if(!this.draggable&&t)n=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,i]="1"===(0,l.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];n=this.j.createInside.element(t),(0,l.attr)(n,i,(0,l.attr)(this.draggable,"data-src")||(0,l.attr)(this.draggable,"src")||""),"a"===t&&(n.textContent=(0,l.attr)(n,i)||"")}else n=(0,l.dataBind)(this.draggable,"target");else this.getText(i)&&(n=this.j.createInside.fromHTML(this.getText(i)));return n}__insertFragment(t,i){this.j.s.insertNode(t,!1,!1),i&&t.firstChild&&t.lastChild&&(i.setStartBefore(t.firstChild),i.setEndAfter(t.lastChild),this.j.s.selectRange(i),this.j.e.fire("synchro")),s.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{let i=(0,l.getDataTransfer)(t);return i?i.getData(o.TEXT_HTML)||i.getData(o.TEXT_PLAIN):null}}}d([r.autobind],h.prototype,"onDragStart",null),d([(0,r.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),d([r.autobind],h.prototype,"onDragEnd",null),d([r.autobind],h.prototype,"onDrop",null),a.pluginSystem.add("dragAndDrop",h)},46124:function(t,i,n){"use strict";n.r(i),n.d(i,{removeExtraBr:function(){return o.removeExtraBr}});var o=n(94870)},94870:function(t,i,n){"use strict";n.d(i,{removeExtraBr:function(){return s}});var o=n(2748);let r=new Set(["table","pre","blockquote","code"]);function s(t,i){if(!t.o.dtd.removeExtraBr||o.Dom.isTag(i,"br"))return;let n=o.Dom.furthest(i,o.Dom.isBlock,t.editor);if(n&&!o.Dom.isTag(n,r)){let n=o.Dom.isTag(i,"br")?i:o.Dom.findNotEmptySibling(i,!1);if(!o.Dom.isTag(n,"br")||o.Dom.findNotEmptySibling(n,!1))return;t.s.setCursorBefore(n),o.Dom.safeRemove(n)}}},78720:function(t,i,n){"use strict";n.d(i,{checkBlockNesting:function(){return r}});var o=n(2748);function r(t,i){var n,r;if(o.Dom.isFragment(i)&&(i=i.firstChild),t.o.dtd.checkBlockNesting&&o.Dom.isBlock(i)){let i=null,s=null!=(r=null==(n=t.s.current())?void 0:n.parentElement)?r:null;for(;s&&s!==t.editor;){if(o.Dom.isBlock(s)){if(t.o.dtd.blockLimits[s.nodeName.toLowerCase()])break;i=s}s=s.parentElement}i&&(t.s.setCursorAfter(i),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i))}}},43267:function(t,i,n){"use strict";n.r(i),n.d(i,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=n(78720)},9045:function(t,i,n){"use strict";n(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(t,i,n){"use strict";var o=n(37133),r=n(580),s=n(50911);n(9045);var a=n(46124),l=n(43267),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class c extends s.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(i=>{l[i](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(i=>{a[i](this.j,t)})}}u([(0,o.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),u([(0,o.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",c)},575:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(87612),u=n(20356),c=n(35399);class d extends u.Plugin{afterInit(t){let i=t.o.enter.toLowerCase(),n=i===o.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=n?o.PARAGRAPH:i),t.registerCommand("enter",(t,i,n={})=>this.onEnter(n))}onEnterKeyDown(t){if(t.key===o.KEY_ENTER){let i=this.j,n=i.e.fire("beforeEnter",t);return void 0!==n?n:(i.history.snapshot.transaction(()=>{i.s.isCollapsed()||i.execCommand("Delete"),i.s.focus(),this.onEnter(t),i.e.fire("afterEnter",t)}),i.synchronizeValues(),!1)}}onEnter(t){let{jodit:i}=this,n=i.createInside.fake();try{s.Dom.safeInsertNode(i.s.range,n),(0,c.moveCursorOutFromSpecialTags)(i,n,["a"]);let o=(0,c.getBlockWrapper)(n,i),r=s.Dom.isLeaf(o);if((!r||(null==t?void 0:t.shiftKey))&&(0,c.checkBR)(n,i,null==t?void 0:t.shiftKey))return!1;if(o||(0,c.hasPreviousBlock)(n,i)||(o=(0,c.wrapText)(n,i)),!o)return(0,c.insertParagraph)(n,i,r?"li":i.o.enter),!1;if(!(0,c.checkUnsplittableBox)(n,i,o))return!1;if(r&&this.__isEmptyListLeaf(o))return(0,c.processEmptyLILeaf)(n,i,o),!1;(0,c.splitFragment)(n,i,o)}finally{n.isConnected&&i.s.setCursorBefore(n),s.Dom.safeRemove(n)}}__isEmptyListLeaf(t){let i=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.isBoolean)(i)?i:s.Dom.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",d)},41872:function(t,i,n){"use strict";n.d(i,{checkBR:function(){return a}});var o=n(82758),r=n(2748),s=n(26395);function a(t,i,n){let a=!!r.Dom.closest(t,["pre","blockquote"],i.editor),u=!a&&r.Dom.closest(t,["td","th"],i.editor);if(i.o.enter.toLowerCase()===o.BR.toLowerCase()||u||n&&!a||!n&&a){var c;let n;if(a&&(n=l(l(c=t)))&&(r.Dom.safeRemove(l(c)),r.Dom.safeRemove(n),1))return!1;let o=i.createInside.element("br");if(r.Dom.before(t,o),!r.Dom.findNotEmptySibling(o,!1)){let i=o.cloneNode();r.Dom.after(o,i),r.Dom.before(i,t)}return(0,s.scrollIntoViewIfNeeded)(o,i.editor,i.ed),!0}return!1}function l(t){if(!t)return!1;let i=r.Dom.findSibling(t,!0);return!!i&&!!r.Dom.isTag(i,"br")&&i}},61991:function(t,i,n){"use strict";n.d(i,{checkUnsplittableBox:function(){return r}});var o=n(2748);function r(t,i,n){return!!o.Dom.canSplitBlock(n)||(o.Dom.before(t,i.createInside.element("br")),!1)}},54041:function(t,i,n){"use strict";n.d(i,{getBlockWrapper:function(){return function t(i,n,s=o.IS_BLOCK){let a=i,l=n.editor;do{if(!a||a===l)break;if(s.test(a.nodeName)){if(r.Dom.isLeaf(a))return a;return t(a.parentNode,n,/^li$/i)||a}a=a.parentNode}while(a&&a!==l);return null}}});var o=n(82758),r=n(2748)},19057:function(t,i,n){"use strict";n.d(i,{hasPreviousBlock:function(){return r}});var o=n(2748);function r(t,i){return!!o.Dom.prev(t,t=>o.Dom.isBlock(t)||o.Dom.isImage(t),i.editor)}},35399:function(t,i,n){"use strict";n.d(i,{checkBR:function(){return o.checkBR},checkUnsplittableBox:function(){return r.checkUnsplittableBox},getBlockWrapper:function(){return s.getBlockWrapper},hasPreviousBlock:function(){return a.hasPreviousBlock},insertParagraph:function(){return l.insertParagraph},moveCursorOutFromSpecialTags:function(){return u.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return d.splitFragment},wrapText:function(){return h.wrapText}});var o=n(41872),r=n(61991),s=n(54041),a=n(19057),l=n(44245),u=n(91388),c=n(65181),d=n(54600),h=n(5287)},44245:function(t,i,n){"use strict";n.d(i,{insertParagraph:function(){return a}});var o=n(2748),r=n(29960),s=n(26395);function a(t,i,n,a){let l="br"===n.toLowerCase(),{createInside:u}=i,c=u.element(n),d=u.element("br");return l||c.appendChild(d),a&&a.cssText&&(0,r.attr)(c,"style",a.cssText),o.Dom.after(t,c),o.Dom.before(l?c:d,t),(0,s.scrollIntoViewIfNeeded)(c,i.editor,i.ed),c}},91388:function(t,i,n){"use strict";n.d(i,{moveCursorOutFromSpecialTags:function(){return r}});var o=n(2748);function r(t,i,n){let{s:r}=t,s=o.Dom.closest(i,n,t.editor);s&&(r.cursorOnTheRight(s,i)?o.Dom.after(s,i):r.cursorOnTheLeft(s,i)&&o.Dom.before(s,i))}},65181:function(t,i,n){"use strict";n.d(i,{processEmptyLILeaf:function(){return a}});var o=n(2748),r=n(76078),s=n(44245);function a(t,i,n){let a=o.Dom.closest(n,["ol","ul"],i.editor);if(!a)return;let l=a.parentElement,u=o.Dom.isLeaf(l),c=u?l:a,d=i.s.createRange();d.setStartAfter(n),d.setEndAfter(a);let h=d.extractContents();o.Dom.after(c,t),o.Dom.safeRemove(n),(0,r.$$)("li",a).length||o.Dom.safeRemove(a);let p=(0,s.insertParagraph)(t,i,u?"li":i.o.enter);h.querySelector("li")&&(u?p.appendChild(h):o.Dom.after(p,h))}},54600:function(t,i,n){"use strict";n.d(i,{splitFragment:function(){return a}});var o=n(2748),r=n(26395),s=n(44245);function a(t,i,n){let a=i.s,{enter:l}=i.o,u=l.toLowerCase(),c=o.Dom.isLeaf(n),d=n.tagName.toLowerCase()===u||c,h=a.cursorOnTheRight(n,t),p=a.cursorOnTheLeft(n,t);if(!d&&(h||p)){h?o.Dom.after(n,t):o.Dom.before(n,t),(0,s.insertParagraph)(t,i,u),p&&!h&&o.Dom.prepend(n,t);return}let f=a.splitSelection(n,t);(0,r.scrollIntoViewIfNeeded)(f,i.editor,i.ed)}},5287:function(t,i,n){"use strict";n.d(i,{wrapText:function(){return r}});var o=n(2748);function r(t,i){let n=t;o.Dom.up(n,t=>{t&&t.hasChildNodes()&&t!==i.editor&&(n=t)},i.editor);let r=o.Dom.wrapInline(n,i.o.enter,i);if(o.Dom.isEmpty(r)){let n=i.createInside.element("br");r.appendChild(n),o.Dom.before(n,t)}return r}},11317:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(29960),a=n(6441),l=n(92762);a.Config.prototype.controls.file={popup:(t,i,n)=>{let r=(i,n="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${i}" title="${n}">${n||i}</a>`))},a=null;return i&&(o.Dom.isTag(i,"a")||o.Dom.closest(i,"a",t.editor))&&(a=o.Dom.isTag(i,"a")?i:o.Dom.closest(i,"a",t.editor)),(0,l.FileSelectorWidget)(t,{filebrowser:t=>{t.files&&t.files.forEach(i=>r(t.baseurl+i)),n()},upload:!0,url:(t,i)=>{a?((0,s.attr)(a,"href",t),(0,s.attr)(a,"title",i)):r(t,i),n()}},a,n,!1)},tags:["a"],tooltip:"Insert file"},r.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},36243:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.isEditorMode()&&t.s.restore()});let i=()=>{t.s.focus();let i=null;switch(t.o.cursorAfterAutofocus){case"start":i=o.Dom.first(t.editor,t=>o.Dom.isText(t));break;case"end":i=o.Dom.last(t.editor,t=>o.Dom.isText(t))}i&&t.s.setCursorIn(i,"start"===t.o.cursorAfterAutofocus)};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(i,300):i())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",i=>{t.isEditorMode()&&i.target&&o.Dom.isBlock(i.target)&&!i.target.childNodes.length&&(t.editor===i.target?t.s.focus():t.s.setCursorIn(i.target))})})})},28252:function(t,i,n){"use strict";var o,r,s=n(22732),a=n(49055),l=n(41180),u=n(12153),c=n(6441),d=n(4104),h=n(83709);c.Config.prototype.defaultFontSizePoints="px",u.Icon.set("font",d.default).set("fontsize",h.default),c.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:t=>t.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,i)=>i+t.o.defaultFontSizePoints,childTemplate:(t,i,n)=>`${n}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value:(t,i)=>{var n;let o=t.s.current();if(!o)return;let r=s.Dom.closest(o,s.Dom.isElement,t.editor);if(!r)return;let a=(null==(n=i.control.data)?void 0:n.cssRule)||"font-size",u=(0,l.css)(r,a);if("font-size"===a){let i=parseFloat(u.toString());return"pt"===t.o.defaultFontSizePoints?Math.round(.75*i).toString():Math.round(i).toString()}return u.toString()},isChildActive:(t,i)=>{var n,o;let r=i.state.value,s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t;return!!(r&&i.control.args&&s(i.control.args[0].toString())===s(r.toString()))},isActive:(t,i)=>{var n,o;let r=i.state.value;if(!r)return!1;let s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t,a=i.control.data.cacheListSet;return a||(a=new Set(Object.keys(i.control.list).map(s)),i.control.data.cacheListSet=a),a.has(s(r.toString()))}},c.Config.prototype.controls.font=(o=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},c.Config.prototype.controls.fontsize),r=r={command:"fontname",textTemplate:(t,i)=>{let[n]=i.split(",");return(0,a.trimChars)(n,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:(t,i,n)=>{let o=!1;try{o=-1===i.indexOf("dings")&&document.fonts.check(`16px ${i}`,n)}catch(t){}return`<span data-style="${i}" style="${o?`font-family: ${i}!important;`:""}">${n}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},tooltip:"Font family"},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))}),o)},23399:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(28252),o.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let i=(i,n,o)=>{switch(i){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,r.normalizeSize)(o,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:o}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",i).registerCommand("fontname",i)})},4104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> '},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},24630:function(t,i,n){"use strict";var o=n(2748),r=n(72430),s=n(12153),a=n(6441),l=n(89816);s.Icon.set("paragraph",l.default),a.Config.prototype.controls.paragraph={command:"formatBlock",value(t,i){var n,r;let s=i.control,a=t.s.current(),l=o.Dom.closest(a,o.Dom.isBlock,t.editor);return null!=(n=null==l?void 0:l.nodeName.toLowerCase())?n:null==(r=s.data)?void 0:r.currentValue},update(t,i){let n=i.control;if(!t.s.current())return!1;let o=i.state.value,s=n.list;return(0,r.isPlainObject)(s)&&s[o.toString()]&&t.o.textIcons&&(i.state.text=s[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(t,i)=>{var n,o;return i.state.value===(null==(o=null==(n=i.control)?void 0:n.args)?void 0:o[0])},isActive:(t,i)=>i.state.value!==t.o.enter&&(0,r.isPlainObject)(i.control.list)&&!!i.control.list[i.state.value],childTemplate:(t,i,n)=>`<${i} style="margin:0;padding:0"><span>${t.i18n(n)}</span></${i}>`,tooltip:"Insert format block"}},96111:function(t,i,n){"use strict";var o=n(580);n(24630),o.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(i,n,o)=>(t.s.commitStyle({element:o}),t.synchronizeValues(),!1))})},89816:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '},99823:function(t,i,n){"use strict";var o=n(82758),r=n(12153),s=n(6441),a=n(6950),l=n(28911);s.Config.prototype.fullsize=!1,s.Config.prototype.globalFullSize=!0,r.Icon.set("fullsize",a.default).set("shrink",l.default),s.Config.prototype.controls.fullsize={exec:t=>{t.toggleFullSize()},update(t,i){let n=t.isFullSize?"shrink":"fullsize";i.state.activated=t.isFullSize,t.o.textIcons?i.state.text=n:i.state.icon.name=n},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},2169:function(t,i,n){"use strict";var o=n(580),r=n(19306),s=n(41180);n(99823);let a=new Set;o.pluginSystem.add("fullsize",function(t){t.registerButton({name:"fullsize"});let i=!1,n=0,o=0,l=!1,u=()=>{let{container:r,events:a}=t;a&&(i?(l||(n=(0,s.css)(r,"height",!0),o=(0,s.css)(r,"width",!0),l=!0),(0,s.css)(r,{height:t.ow.innerHeight,width:t.ow.innerWidth})):l&&((0,s.css)(r,{height:n||"auto",width:o||"auto"}),l=!1))},c=n=>{var o;let{container:l,events:c}=t;if(l){if(void 0===n&&(n=!l.classList.contains("jodit_fullsize")),t.setMod("fullsize",n),t.o.fullsize=n,i=n,l.classList.toggle("jodit_fullsize",n),t.toolbar&&((0,r.isJoditObject)(t)&&(null==(o=t.toolbarContainer)||o.appendChild(t.toolbar.container)),(0,s.css)(t.toolbar.container,"width","auto")),n?a.add(l):a.delete(l),t.o.globalFullSize&&(1===a.size&&n||0===a.size&&!n)){let t=l.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",n),t=t.parentNode;u()}c.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",u),t.e.on("afterInit afterOpen",()=>{var i;t.toggleFullSize(null==(i=null==t?void 0:t.options)?void 0:i.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{i&&c(!1)}).on("beforeDestruct",()=>{t.events&&t.e.off(t.ow,"resize",u)})})},6950:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},28911:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},78524:function(t,i,n){"use strict";n(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537),a=n(50911);n(78524);class l extends a.Plugin{afterInit(t){(0,s.keys)(t.o.commandToHotkeys,!1).forEach(i=>{let n=t.o.commandToHotkeys[i];n&&((0,s.isArray)(n)||(0,s.isString)(n))&&t.registerHotkeyToCommand(n,i)});let i=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===o.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",n=>{let o=this.onKeyPress(n),r={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",n.type,r))if(r.shouldStop)return i=!0,t.e.stopPropagation("keydown"),!1;else n.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(i)return i=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=t=>{let i=this.specialKeys[t.which],n=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[i||n];return["alt","ctrl","shift","meta"].forEach(n=>{t[n+"Key"]&&i!==n&&o.push(n)}),(0,s.normalizeKeyAliases)(o.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}r.pluginSystem.add("hotkeys",l)},16233:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(12153),a=n(6441),l=n(72337);s.Icon.set("hr",l.default),a.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},r.pluginSystem.add("hr",function(t){t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",()=>{let i=t.createInside.element("hr");t.s.insertNode(i,!1,!1);let n=o.Dom.closest(i.parentElement,o.Dom.isBlock,t.editor);n&&o.Dom.isEmpty(n)&&n!==t.editor&&(o.Dom.after(n,i),o.Dom.safeRemove(n));let r=o.Dom.next(i,o.Dom.isBlock,t.editor,!1);return r||(r=t.createInside.element(t.o.enter),o.Dom.after(i,r)),t.s.setCursorIn(r),!1})})},72337:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},50963:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},77469:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537);n(50963),r.pluginSystem.add("iframe",function(t){let i=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,n)=>{let o=t||n.iframe.contentWindow.document;if(o.open(),o.write(i.iframeDoctype+`<html dir="${i.direction}" class="jodit" lang="${(0,s.defaultLanguage)(i.language)}">`+"<head>"+`<title>${i.iframeTitle}</title>`+(i.iframeBaseUrl?`<base href="${i.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),i.iframeCSSLinks&&i.iframeCSSLinks.forEach(t=>{let i=o.createElement("link");(0,s.attr)(i,"rel","stylesheet"),(0,s.attr)(i,"href",t),o.head&&o.head.appendChild(i)}),i.iframeStyle){let t=o.createElement("style");t.innerHTML=i.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!i.iframe)return;let n=t.c.element("iframe");n.style.display="block",n.src="about:blank",n.className="jodit-wysiwyg_iframe",(0,s.attr)(n,{allowtransparency:"true",tabindex:i.tabIndex.toString(),frameborder:"0"}),null!=i.iframeSandbox&&(0,s.attr)(n,"sandbox",i.iframeSandbox),t.workplace.appendChild(n),t.iframe=n;let r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(r,()=>{if(!t.iframe)return!1;let n=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let r=i.editHTMLDocumentMode,a=()=>{(0,s.attr)(n.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},l=t=>{let i=/<body.*<\/body>/im,n="{%%BODY%%}",o=i.exec(t);return o&&(t=t.replace(i,n).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(n,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(r){let i=t.element.tagName;if("TEXTAREA"!==i&&"INPUT"!==i)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>l(t.o.iframeDoctype+n.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:i})=>!t.isLocked&&(/<(html|body)/i.test(i)?l(n.documentElement.outerHTML)!==l(i)&&(n.open(),n.write(t.o.iframeDoctype+l(i)),n.close(),t.editor=n.body,t.e.fire("safeHTML",t.editor),a(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):n.body.innerHTML=i,!0),{top:!0})}if(t.editor=n.body,t.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===i.height){n.documentElement&&(n.documentElement.style.overflowY="hidden");let o=t.async.throttle((...n)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===i.height){let i=t.ew.getComputedStyle(t.editor),n=parseInt(i.marginTop||"0",10)+parseInt(i.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+n)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,n.documentElement],"load",o).on(n,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let i=new ResizeObserver(o);i.observe(n.body),t.e.on("beforeDestruct",()=>{i.disconnect()})}}return n.documentElement&&t.e.on(n.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===n.body&&t.s.setCursorIn(n.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",i=>{var n;null==(n=t.events)||n.fire(t.ow,i)}),!1})})})},85745:function(t,i,n){"use strict";n(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(580),a=n(21537),l=n(50911);function u(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}n(85745);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let d="__jodit_imageprocessor_binded",h=d+"blob-id";class p extends l.Plugin{afterInit(t){}beforeDestruct(t){let i=(0,r.cached)(t,"buffer"),n=null==i?void 0:i.get(h);if(i&&n){for(let t of Object.keys(n))URL.revokeObjectURL(t);i.delete(h)}}onAfterGetValueFromEditor(t,i){if(i!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){let{jodit:i}=this;if(!i.o.imageProcessor.replaceDataURIToBlobIdInView)return;let n=i.buffer.get(h);if(n)for(let i of Object.keys(n))for(;t.value.includes(i);)t.value=t.value.replace(i,n[i])}afterChange(t){var i;return(i=function*(){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(i=>{(0,a.dataBind)(i,d)||((0,a.dataBind)(i,d,!0),i.complete||t.e.on(i,"load",function n(){var o;t.isInDestruct||null==(o=t.e)||o.fire("resize"),t.e.off(i,"load",n)}),i.src&&/^data:/.test(i.src)&&function(t,i){if(!t.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=i.src,o=function(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(i.length),r=new Uint8Array(o);for(let t=0;t<i.length;t++)r[t]=i.charCodeAt(t);return new Blob([o],{type:n})}(n);i.src=URL.createObjectURL(o),t.e.fire("internalUpdate");let{buffer:r}=t,s=r.get(h)||{};s[i.src]=n,t.buffer.set(h,s)}(t,i),t.e.on(i,"mousedown touchstart",()=>{t.s.select(i)}))})},function(){var t=this,n=arguments;return new Promise(function(o,r){var s=i.apply(t,n);function a(t){u(s,o,r,a,l,"next",t)}function l(t){u(s,o,r,a,l,"throw",t)}a(void 0)})}).call(this)}}c([(0,r.watch)(":afterGetValueFromEditor")],p.prototype,"onAfterGetValueFromEditor",null),c([(0,r.watch)(":beforeSetElementValue")],p.prototype,"onBeforeSetElementValue",null),c([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],p.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",p)},97536:function(t,i,n){"use strict";n(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(20356),u=n(62843);n(97536);var c=n(59436),d=n(53636),h=n(10263),p=n(94575),f=n(34755);function m(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}var g=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class b extends l.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,h.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,i=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),n=this.__buttons;return n.check.onAction(()=>{(0,f.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),i.close()}),n.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),i.close()}),n.cancel.onAction(()=>{i.close()}),i.setHeader(t.i18n("Image properties")),i.setContent(this.form),i.setFooter([[n.cancel,n.remove],n.check]),t.e.on(i,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),i.setSize(t.o.image.dialogWidth),(0,a.markOwner)(t,i.container),i}get __buttons(){let{j:t}=this;return{check:(0,u.Button)(t,"ok","Apply","primary"),remove:(0,u.Button)(t,"bin","Delete"),cancel:(0,u.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,i)=>(0,p.readValuesFromImage)(this.j,this.state).then(t,i)).catch(t=>{(0,a.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let i=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",n=>{let o=n.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;i.state.sourceImage=o,i.state.image=o.cloneNode(!0),t.o.readonly||(n.stopImmediatePropagation(),n.preventDefault(),i.open())}else n.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{i.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}onStateValuesImageSrcChange(){var t;return(t=function*(){let{image:t,values:i}=this.state;if(t.src)try{this.__lock();try{yield t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,a.isNumeric)(i.imageWidth)){let t=parseFloat(i.imageWidth.toString());i.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}},function(){var i=this,n=arguments;return new Promise(function(o,r){var s=t.apply(i,n);function a(t){m(s,o,r,a,l,"next",t)}function l(t){m(s,o,r,a,l,"throw",t)}a(void 0)})}).call(this)}beforeDestruct(t){var i,n,r;Object.values(null!=(i=(0,o.cached)(this,"__buttons"))?i:{}).forEach(t=>t.destruct()),null==(n=(0,o.cached)(this,"dialog"))||n.destruct(),null==(r=(0,o.cached)(this,"form"))||r.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:i}=this.image;return t/i||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}g([o.cache],b.prototype,"form",null),g([o.cache],b.prototype,"dialog",null),g([o.cache],b.prototype,"__buttons",null),g([(0,o.watch)("state.image")],b.prototype,"onStateValuesImageSrcChange",null),s.pluginSystem.add("imageProperties",b)},51642:function(t,i,n){"use strict";n.d(i,{readAlign:function(){return r}});var o=n(41180);function r(t,i){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?i.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?i.align="center":i.align=""}},94575:function(t,i,n){"use strict";n.d(i,{readValuesFromImage:function(){return c}});var o=n(29960),r=n(51642),s=n(75595),a=n(47749),l=n(32566);function u(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function c(t,i){var n;return(n=function*(){let{sourceImage:n,values:u}=i;return(0,r.readAlign)(n,u),u.borderRadius=parseInt(n.style.borderRadius||"0",10)||0,u.id=(0,o.attr)(n,"id")||"",u.imageTitle=(0,o.attr)(n,"title")||"",u.imageAlt=(0,o.attr)(n,"alt")||"",u.style=(0,o.attr)(n,"style")||"",u.classes=((0,o.attr)(n,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(n,u,i),(0,s.readLink)(i,t,u),u.imageSrc=(0,o.attr)(n,"src")||"",(0,l.readSizes)(n,u,i)},function(){var t=this,i=arguments;return new Promise(function(o,r){var s=n.apply(t,i);function a(t){u(s,o,r,a,l,"next",t)}function l(t){u(s,o,r,a,l,"throw",t)}a(void 0)})})()}},75595:function(t,i,n){"use strict";n.d(i,{readLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=o.Dom.closest(t.sourceImage,"a",i.editor);s?(n.imageLink=(0,r.attr)(s,"href")||"",n.imageLinkOpenInNewTab="_blank"===(0,r.attr)(s,"target")):(n.imageLink="",n.imageLinkOpenInNewTab=!1)}},47749:function(t,i,n){"use strict";n.d(i,{readMargins:function(){return r}});var o=n(12475);function r(t,i,n){let r=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{let a=t.style.getPropertyValue((0,o.kebabCase)(n));if(!a){s=!0,i[n]=0;return}/^[0-9]+(px)?$/.test(a)&&(a=parseInt(a,10)),i[n]=a,(s&&i[n]||r&&"marginTop"!==n&&i[n]!==i.marginTop)&&(r=!1)}),n.marginIsLocked=r}},32566:function(t,i,n){"use strict";n.d(i,{readSizes:function(){return u}});var o=n(29807),r=n(29960),s=n(41180),a=n(14415);function l(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function u(t,i,n){var u;return(u=function*(){try{yield t.decode()}catch(t){}let l=(0,s.css)(t,"width",!0)||(0,r.attr)(t,"width")||!1,u=(0,s.css)(t,"height",!0)||(0,r.attr)(t,"height")||!1;i.imageWidth=!1!==l?(0,a.normalSizeFromString)(l):t.offsetWidth||t.naturalWidth,(0,o.isNumeric)(i.imageWidth)?i.imageHeight=!1!==u?(0,a.normalSizeFromString)(u):t.offsetHeight||t.naturalHeight:i.imageHeight=u||"";let{imageWidth:c,imageHeight:d}=i,h=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(d)){n.sizeIsLocked=!1;return}if(!1===u){i.imageHeight=Math.round(h/n.ratio),n.sizeIsLocked=!0;return}n.sizeIsLocked=1>Math.abs(h-parseFloat(d.toString())*n.ratio)},function(){var t=this,i=arguments;return new Promise(function(n,o){var r=u.apply(t,i);function s(t){l(r,n,o,s,a,"next",t)}function a(t){l(r,n,o,s,a,"throw",t)}s(void 0)})})()}},59436:function(t,i,n){"use strict";n.d(i,{UIImagePropertiesForm:function(){return p}});var o=n(65478),r=n(87325),s=n(21537),a=n(62405),l=n(12153),u=n(92762),c=n(35105),d=n(29827),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let p=class t extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let i=super.getElm(t);if(i)return i;for(let i of this.elements){let n=i.getElm(t);if(n)return n}return null}render(){return`<form>
128
+ </div>`}setPrompt(t){if(t){let{jodit:i}=this,n=i.o.aiAssistant[t],{aiCommonPrefixPrompt:o,aiCommonSuffixPrompt:r}=i.o.aiAssistant;this.promptInput.value=[o,(0,a.isString)(n)?n:"",r].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),s.Dom.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,s.Dom.detach(this.__results),this.__toggleSubmitButton(!1);let i=this.getFullElName("","hide","true");this.__results.classList.add(i),this.__toggleInsertButton(!0)}onChangePromptValue(){this.__toggleSubmitButton(!this.promptInput.value)}__toggleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}__toggleInsertButton(t){this.__insertButton.state.disabled=t,this.__insertAfterButton.state.disabled=t}constructor(t,{onInsert:i,onInsertAfter:n}){super(t),this.__aiResult="",this.__error=this.getElm("error"),this.__body=this.getElm("body"),this.__buttons=this.getElm("buttons"),this.__results=this.getElm("results"),this.__spinner=this.getElm("spinner"),this.__insertButton=(0,l.Button)(t,"","Insert","primary").onAction(()=>i(this.__aiResult)),this.__insertAfterButton=(0,l.Button)(t,"","Insert After","initial").onAction(()=>n(this.__aiResult));const o=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toggleInsertButton(!0),this.__toggleSubmitButton(!0))};this.__submitButton=(0,l.Button)(t,"ai-assistant","").onAction(o),this.__tryAgainButton=(0,l.Button)(t,"update","","initial").onAction(o),this.promptInput=new l.UITextArea(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const r=new l.UIBlock(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new l.UIForm(t,[new l.UIBlock(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit(i=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",i.prompt);let n=this.getFullElName("","hide","true");this.__results.classList.remove(n),this.__buttons.classList.remove(n),s.Dom.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()}),this.__buttons.appendChild(r.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}};c([(0,r.watch)(":ai-assistant-response")],d.prototype,"onAiAssistentResponse",null),c([(0,r.watch)(":ai-assistant-error")],d.prototype,"onAiAssistentError",null),c([(0,r.watch)("promptInput:change")],d.prototype,"onChangePromptValue",null),d=c([o.component],d)},25187:function(t,i,n){"use strict";n(73391),n(12391),n(93183),n(66707),n(41107),n(71255),n(82439),n(61323),n(93079),n(19063),n(19271),n(1255),n(575),n(11317),n(36243),n(23399),n(96111),n(2169),n(42263),n(16233),n(77469),n(23531),n(80763),n(3215),n(70045),n(93401),n(76295),n(59483),n(91071),n(61019),n(65517),n(20071),n(32309),n(64837),n(79799),n(31571),n(85407),n(59451),n(18363),n(8355),n(58519),n(6687),n(56113),n(9159),n(12019),n(36125),n(9881),n(28545),n(45927),n(52951),n(43809),n(7309),n(68687),n(59495),n(39627),n(767),n(43003),n(72439),n(26551),n(72253),n(65735),n(83671),n(3115)},93183:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(23282),l=n(50911),u=n(45124);n(32496);var c=n(11338),d=n(14630);class h extends l.Plugin{afterInit(t){t.registerCommand("deleteButton",{exec:()=>this.onDelete(!1),hotkeys:t.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:()=>this.onDelete(!0),hotkeys:t.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:()=>this.onDelete(!1,"word"),hotkeys:t.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:()=>this.onDelete(!0,"word"),hotkeys:t.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:()=>this.onDelete(!1,"sentence"),hotkeys:t.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:()=>this.onDelete(!0,"sentence"),hotkeys:t.o.delete.hotkeys.backspaceSentence})}beforeDestruct(t){t.e.off("afterCommand.delete")}onDelete(t,i="char"){let n=this.j,s=n.selection;if(s.isFocused()||s.focus(),(0,c.checkNotCollapsed)(n))return n.e.fire("backSpaceAfterDelete",t),!1;let l=s.range,h=n.createInside.text(o.INVISIBLE_SPACE);try{if(r.Dom.safeInsertNode(l,h),!r.Dom.isOrContains(n.editor,h))return;if(n.e.fire("backSpaceBeforeCases",t,h))return!1;(0,u.moveNodeInsideStart)(n,h,t);let s=n.o.delete.disableCases;if(d.casesMap.some(([r,l])=>{if(!(s&&s.has(r))&&(0,a.isFunction)(l)&&l(n,h,t,i))return o.IS_PROD,!0}))return!1}catch(t){throw o.IS_PROD,t}finally{n.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){var i,n;let{range:o}=this.j.s;o.startContainer===t&&(t.previousSibling?r.Dom.isText(t.previousSibling)?o.setStart(t.previousSibling,null!=(n=null==(i=t.previousSibling.nodeValue)?void 0:i.length)?n:0):o.setStartAfter(t.previousSibling):t.nextSibling&&(r.Dom.isText(t.nextSibling)?o.setStart(t.nextSibling,0):o.setStartBefore(t.nextSibling)),o.collapse(!0),this.j.s.selectRange(o)),r.Dom.safeRemove(t)}}h.requires=["hotkeys"],s.pluginSystem.add("backspace",h)},62845:function(t,i,n){"use strict";n.d(i,{checkJoinNeighbors:function(){return a}});var o=n(82758),r=n(2748),s=n(63785);function a(t,i,n){let s=i,a=s;for(;s&&!r.Dom.findNotEmptySibling(s,n)&&s.parentElement!==t.editor;)a=s=s.parentElement;if(r.Dom.isElement(a)&&r.Dom.isContentEditable(a,t.editor)){var u,c;let s,d,h,p=r.Dom.findNotEmptySibling(a,n);if(r.Dom.isTag(p,"br"))return r.Dom.safeRemove(p),t.s.setCursorBefore(i),!0;if(p&&(u=a,c=p,s=r.Dom.isTag(c,o.LIST_TAGS),d=r.Dom.isTag(u,o.LIST_TAGS),h=(t,i)=>i?t.firstElementChild:t.lastElementChild,(d?(c=t.createInside.element(t.o.enterBlock),r.Dom.before(u,c),l(t,h(u,n),c,n)):!!c&&!!s&&!d&&l(t,u,h(c,!n),n))||l(t,a,function(t,i){if(!r.Dom.isTag(t,"table"))return t;let n=t.querySelectorAll("td,th");return n.length?n[i?n.length-1:0]:null}(p,n),n)))return t.s.setCursorBefore(i),!0}return!1}function l(t,i,n,o){if(i&&r.Dom.isElement(n)){r.Dom.moveContent(i,n,!o,(0,s.getMoveFilter)(t));let a=i;for(;a&&a!==t.editor&&r.Dom.isEmpty(a);){let t=a.parentElement;r.Dom.safeRemove(a),a=t}return!0}return!1}},91748:function(t,i,n){"use strict";n.d(i,{checkJoinTwoLists:function(){return a}});var o=n(2748),r=n(37790),s=n(63785);function a(t,i,n){let a=o.Dom.findSibling(i,n),l=o.Dom.findSibling(i,!n);if(!o.Dom.closest(i,o.Dom.isElement,t.editor)&&o.Dom.isList(a)&&o.Dom.isList(l)&&o.Dom.isTag(a.lastElementChild,"li")&&o.Dom.isTag(l.firstElementChild,"li")){let{setCursorBefore:u,setCursorAfter:c}=t.s,d=a.lastElementChild,h=l.firstElementChild;return(0,r.call)(n?o.Dom.prepend:o.Dom.append,h,i),o.Dom.moveContent(l,a,!n,(0,s.getMoveFilter)(t)),o.Dom.safeRemove(l),(0,r.call)(n?o.Dom.append:o.Dom.prepend,d,i),(0,r.call)(n?u:c,i),!0}return!1}},11338:function(t,i,n){"use strict";function o(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}n.d(i,{checkNotCollapsed:function(){return o}})},73792:function(t,i,n){"use strict";n.d(i,{checkRemoveChar:function(){return function t(i,n,a,u){var c,d,h,p;let f,m=a?-1:1,g=r.Dom.sibling(n,!a),b=r.Dom.sibling(n,a),v=null,y=!1;for(b||(b=l(n,a,i.editor));b&&(r.Dom.isText(b)||r.Dom.isInlineBlock(b));){for(;r.Dom.isInlineBlock(b);)b=a?null==b?void 0:b.lastChild:null==b?void 0:b.firstChild;if(!b)break;if((null==(c=b.nodeValue)?void 0:c.length)&&(f=function(t,i,n,a){let l=(0,s.toArray)(t.nodeValue),u=l.length,c=i?u-1:0;if(l[c]===o.INVISIBLE_SPACE)for(;l[c]===o.INVISIBLE_SPACE;)c+=n;let d=l[c];if(l[c+n]===o.INVISIBLE_SPACE){for(c+=n;l[c]===o.INVISIBLE_SPACE;)c+=n;c+=i?1:-1}return l=i&&c<0?[]:l.slice(i?0:c+1,i?c:u),function(t,i,n){var a;if(!t||!r.Dom.isText(t)||(!i?/ $/:/^ /).test(null!=(a=t.nodeValue)?a:"")||!(0,s.trimInv)(t.nodeValue||"").length)for(let t=i?n.length-1:0;i?t>=0:t<n.length;t+=i?-1:1)if(" "===n[t])n[t]=o.NBSP_SPACE;else break}(a,i,l),t.nodeValue=l.join(""),d}(b,a,m,g),!b.nodeValue.length&&r.Dom.isInlineBlock(b.parentNode)&&(b.nodeValue=o.INVISIBLE_SPACE)),(null==(d=b.nodeValue)?void 0:d.length)||(v=b),!(0,s.isVoid)(f)&&f!==o.INVISIBLE_SPACE){h=b,p=f,(0,s.call)(a?r.Dom.after:r.Dom.before,h,n),("sentence"===u||"word"===u&&" "!==p&&p!==o.NBSP_SPACE)&&t(i,n,a,u),y=!0;break}let _=l(b,a,i.editor);v&&(r.Dom.safeRemove(v),v=null),b=_}return v&&(r.Dom.safeRemove(v),v=null),y&&(function(t){let i=t.parentElement;for(;i&&r.Dom.isInlineBlock(i)&&r.Dom.isTag(i,"a");){let n=i.parentElement;r.Dom.isEmpty(i)&&(r.Dom.after(i,t),r.Dom.safeRemove(i)),i=n}}(n),n.parentElement!==i.editor&&r.Dom.isBlock(n.parentElement)&&r.Dom.each(n.parentElement,r.Dom.isEmptyTextNode)&&r.Dom.after(n,i.createInside.element("br")),i.s.setCursorBefore(n),r.Dom.isTag(n.previousSibling,"br")&&!r.Dom.findNotEmptySibling(n,!1)&&r.Dom.after(n,i.createInside.element("br"))),y}}});var o=n(82758),r=n(22732),s=n(21537),a=n(63785);function l(t,i,n){let o=r.Dom.sibling(t,i);return!o&&t.parentNode&&t.parentNode!==n&&(o=(0,a.findMostNestedNeighbor)(t,!i,n,!0))&&r.Dom.closest(t,"li",n)!==r.Dom.closest(o,"li",n)?null:o}},87536:function(t,i,n){"use strict";n.d(i,{checkRemoveContentNotEditable:function(){return a}});var o=n(22732),r=n(21537),s=n(45124);function a(t,i,n){let a=o.Dom.findSibling(i,n);return!a&&i.parentElement&&i.parentElement!==t.editor&&(a=o.Dom.findSibling(i.parentElement,n)),!(!o.Dom.isElement(a)||o.Dom.isContentEditable(a,t.editor))&&((0,r.call)(n?o.Dom.before:o.Dom.after,a,i),o.Dom.safeRemove(a),(0,s.moveNodeInsideStart)(t,i,n),(0,r.call)(n?t.s.setCursorBefore:t.s.setCursorAfter,i),!0)}},12474:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyNeighbor:function(){return r}});var o=n(2748);function r(t,i,n){let r=o.Dom.closest(i,o.Dom.isElement,t.editor);if(!r)return!1;let s=o.Dom.findNotEmptySibling(r,n);return!!(s&&o.Dom.isEmpty(s))&&(o.Dom.safeRemove(s),t.s.setCursorBefore(i),!0)}},58940:function(t,i,n){"use strict";n.d(i,{checkRemoveEmptyParent:function(){return a}});var o=n(82758),r=n(22732),s=n(91748);function a(t,i,n){let a=!1,{setCursorBefore:l,setCursorIn:u}=t.s,c=r.Dom.closest(i,r.Dom.isElement,t.editor);if(!c||!r.Dom.isEmpty(c))return!1;let d=r.Dom.findNotEmptyNeighbor(i,n,t.editor);do if(c&&r.Dom.isEmpty(c)&&!r.Dom.isCell(c)){r.Dom.after(c,i);let n=r.Dom.closest(c,t=>r.Dom.isElement(t)&&t!==c,t.editor);r.Dom.safeRemove(c),a=!0,c=n}else break;while(c);return!!(a&&(0,s.checkJoinTwoLists)(t,i,n))||(!d||r.Dom.isText(d)||r.Dom.isTag(d,o.INSEPARABLE_TAGS)?l(i):u(d,!n),a)}},56825:function(t,i,n){"use strict";n.d(i,{checkRemoveUnbreakableElement:function(){return a}});var o=n(82758),r=n(2748),s=n(58940);function a(t,i,n){let a=r.Dom.findSibling(i,n);return!!(r.Dom.isElement(a)&&(r.Dom.isTag(a,o.INSEPARABLE_TAGS)||r.Dom.isEmpty(a)))&&(r.Dom.safeRemove(a),r.Dom.isTag(a,"br")&&!r.Dom.findNotEmptySibling(i,!1)&&r.Dom.after(i,t.createInside.element("br")),t.s.setCursorBefore(i),r.Dom.isTag(a,"br")&&(0,s.checkRemoveEmptyParent)(t,i,n),!0)}},90240:function(t,i,n){"use strict";n.d(i,{checkTableCell:function(){return r}});var o=n(2748);function r(t,i){let n=i.parentElement;return!!o.Dom.isCell(n)}},68034:function(t,i,n){"use strict";n.d(i,{checkUnwrapFirstListItem:function(){return s}});var o=n(2748),r=n(43555);function s(t,i,n){var s;let a=o.Dom.closest(i,o.Dom.isElement,t.editor),{s:l}=t;if(o.Dom.isLeaf(a)&&(null==(s=null==a?void 0:a.parentElement)?void 0:s[n?"firstElementChild":"lastElementChild"])===a&&l.cursorInTheEdge(n,a)){let s=a.parentElement,u=t.createInside.element(t.o.enterBlock);return(0,r.call)(n?o.Dom.before:o.Dom.after,s,u),o.Dom.moveContent(a,u),o.Dom.safeRemove(a),o.Dom.isEmpty(s)&&o.Dom.safeRemove(s),(0,r.call)(n?l.setCursorBefore:l.setCursorAfter,i),!0}return!1}},14630:function(t,i,n){"use strict";n.d(i,{casesMap:function(){return p}});var o=n(62845),r=n(91748),s=n(73792),a=n(87536),l=n(12474),u=n(58940),c=n(56825),d=n(90240),h=n(68034);let p=[["remove-unbreakable",c.checkRemoveUnbreakableElement],["remove-not-editable",a.checkRemoveContentNotEditable],["remove-char",s.checkRemoveChar],["table-cell",d.checkTableCell],["remove-empty-parent",u.checkRemoveEmptyParent],["remove-empty-neighbor",l.checkRemoveEmptyNeighbor],["join-two-lists",r.checkJoinTwoLists],["join-neighbors",o.checkJoinNeighbors],["unwrap-first-list-item",h.checkUnwrapFirstListItem]];p.map(([,t])=>t)},32496:function(t,i,n){"use strict";n(6441).Config.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}}},63785:function(t,i,n){"use strict";n.d(i,{findMostNestedNeighbor:function(){return r},getMoveFilter:function(){return s}});var o=n(22732);function r(t,i,n,s=!1){let a=t=>i?t.firstChild:t.lastChild,l=o.Dom.findNotEmptyNeighbor(t,!i,n);if(s&&o.Dom.isElement(l)&&!o.Dom.isInlineBlock(l))return null;if(l)do{if(!a(l))return l;l=a(l)}while(l);return null}function s(t){return i=>!0!==t.e.fire("backSpaceIsMovedIgnore",i)}},41107:function(t,i,n){"use strict";var o=n(580),r=n(21537),s=n(12153),a=n(6441);n(73674);var l=n(820),u=n(53651),c=n(16020),d=n(89758),h=n(98527),p=n(51855);o.pluginSystem.add("bold",function(t){let i=i=>{let n,o=a.Config.defaultOptions.controls[i],s=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},o.css);return Object.keys(s).forEach(t=>{n||(n={}),n[t]=(0,r.isArray)(s[t])?s[t][0]:s[t]}),t.s.commitStyle({element:o.tags?o.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(i=>{t.registerButton({name:i,group:"font-style"})}),["superscript","subscript"].forEach(i=>{t.registerButton({name:i,group:"script"})}),t.registerCommand("bold",{exec:i,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:i,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:i,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:i}).registerCommand("subscript",{exec:i}).registerCommand("superscript",{exec:i})}),s.Icon.set("bold",l.default).set("italic",u.default).set("strikethrough",c.default).set("subscript",d.default).set("superscript",h.default).set("underline",p.default)},73674:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},o.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},o.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},o.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},o.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},o.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},820:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> '},53651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> '},16020:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> '},89758:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> '},98527:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> '},51855:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '},71255:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(37790),a=n(50911),l=n(12153),u=n(6441),c=n(31151);u.Config.prototype.controls.classSpan={command:"applyClassName",exec:s.memorizeExec,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:(t,i)=>{let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor;return!!(i.control.args&&r.classList.contains(i.control.args[0].toString()))}return!1},isActive:(t,i)=>{let n=t.s.current();if(n){let r=o.Dom.closest(n,o.Dom.isElement,t.editor)||t.editor,s=!1;return i.control.list&&Object.keys(i.control.list).forEach(t=>{r.classList.contains(t)&&(s=!0)}),!!(r&&r!==t.editor&&void 0!==i.control.list&&s)}return!1},childTemplate:(t,i,n)=>`<span class="${i}">${t.i18n(n)}</span>`,tooltip:"Insert className"};class d extends a.Plugin{afterInit(t){t.registerCommand("applyClassName",(i,n,o)=>(t.s.commitStyle({attributes:{class:o}}),!1))}beforeDestruct(){}constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}}r.pluginSystem.add("classSpan",d),l.Icon.set("class-span",c.default)},31151:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '},82439:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(70071),a=n(580),l=n(86518),u=n(20356);n(46776);var c=n(59498),d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;let t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){let{jodit:t}=this,i=(0,c.getHash)(this.j.o.cleanHTML.allowTags),n=(0,c.getHash)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",o=>(0,c.visitNodeWalker)(t,o,i,n,this.currentSelectionNode)).on("end",t=>{this.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}beforeCommand(t){if("removeformat"===t.toLowerCase())return this.j.s.isCollapsed()?(0,c.removeFormatForCollapsedSelection)(this.j):(0,c.removeFormatForSelection)(this.j),!1}onBeforeSetNativeEditorValue(t){let[i,n]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.od.implementation.createHTMLDocument("").body];return i.innerHTML=t.value,this.j.e.fire("safeHTML",i),t.value=i.innerHTML,(0,l.safeHTML)(i,{safeJavaScriptLink:!0,removeOnError:!0}),r.Dom.safeRemove(n),!1}onAfterGetValueFromEditor(t){this.j.o.cleanHTML.collapseEmptyValueToEmptyString&&/^<([a-z][a-z0-9]*)\b[^>]*>(?:<br\/?>)?<\/\1>$/i.test(t.value.trim())&&(t.value="")}onSafeHTML(t){let i=this.j.o.cleanHTML.sanitizer;i&&(t.innerHTML=i(t.innerHTML)),(0,l.safeHTML)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new s.LazyWalker(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}}d([(0,o.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),d([(0,o.hook)("ready")],h.prototype,"startWalker",null),d([(0,o.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),d([(0,o.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),d([(0,o.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),d([(0,o.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),a.pluginSystem.add("cleanHtml",h)},46776:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(44330);r.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,collapseEmptyValueToEmptyString:!1,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script,iframe,object,embed",useIframeSandbox:!1,removeOnError:!0,removeEventAttributes:!0,safeJavaScriptLink:!0,safeLinksTarget:!0,allowedStyles:!1,sanitizer:!1,sandboxIframesInContent:!0,convertUnsafeEmbeds:["object","embed"],disableCleanFilter:null},r.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},o.Icon.set("eraser",s.default)},44330:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> '},83447:function(t,i,n){"use strict";n.d(i,{getHash:function(){return s}});var o=n(70799),r=n(49055);function s(t){let i=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,s=/^(.*)[\s]*=[\s]*(.*)$/,a={};return(0,o.isString)(t)?(t.split(n).map(t=>{t=(0,r.trim)(t);let o=i.exec(t),l={};if(o){let t=o[2].split(n);o[1]&&(t.forEach(t=>{t=(0,r.trim)(t);let i=s.exec(t);i?l[i[1]]=i[2]:l[t]=!0}),a[o[1].toUpperCase()]=l)}else a[t.toUpperCase()]=!0}),a):!!t&&(Object.keys(t).forEach(i=>{a[i.toUpperCase()]=t[i]}),a)}},59498:function(t,i,n){"use strict";n.d(i,{getHash:function(){return o.getHash},removeFormatForCollapsedSelection:function(){return r.removeFormatForCollapsedSelection},removeFormatForSelection:function(){return s.removeFormatForSelection},visitNodeWalker:function(){return a.visitNodeWalker}});var o=n(83447),r=n(84272),s=n(42312),a=n(39516)},84272:function(t,i,n){"use strict";n.d(i,{isInlineBlock:function(){return a},removeFormatForCollapsedSelection:function(){return s}});var o=n(82758),r=n(2748);function s(t,i){let{s:n}=t,o=i;if(!o){o=t.createInside.fake();let{range:i}=n;r.Dom.safeInsertNode(i,o),i.collapse()}let s=r.Dom.furthest(o,a,t.editor);if(s)if(n.cursorOnTheLeft(s))r.Dom.before(s,o);else if(n.cursorOnTheRight(s))r.Dom.after(s,o);else{let t=n.splitSelection(s);t&&r.Dom.after(t,o)}i||(n.setCursorBefore(o),r.Dom.safeRemove(o))}function a(t){return r.Dom.isInlineBlock(t)&&!r.Dom.isTag(t,o.INSEPARABLE_TAGS)}},42312:function(t,i,n){"use strict";n.d(i,{removeFormatForSelection:function(){return a}});var o=n(2748),r=n(43555),s=n(84272);function a(t){let{s:i,editor:n,createInside:a}=t,{range:l}=i,u=l.cloneRange(),c=l.cloneRange(),d=a.fake(),h=a.fake();u.collapse(!0),c.collapse(!1),o.Dom.safeInsertNode(u,d),o.Dom.safeInsertNode(c,h),l.setStartBefore(d),l.collapse(!0),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,d),l.setEndAfter(h),l.collapse(!1),i.selectRange(l),(0,s.removeFormatForCollapsedSelection)(t,h);let p=[];o.Dom.between(d,h,t=>{(0,s.isInlineBlock)(t)&&!o.Dom.isTag(t,"a")&&p.push(t),o.Dom.isElement(t)&&(0,r.attr)(t,"style")&&(0,r.attr)(t,"style",null)}),p.forEach(t=>o.Dom.unwrap(t));let f=(t,i)=>{if(!o.Dom.findNotEmptySibling(t,i)){let o=t.parentNode;if(o&&o!==n&&(0,r.attr)(o,"style"))return(0,r.attr)(o,"style",null),f(o,i),!0}};f(d,!0)&&f(h,!1),l.setStartAfter(d),l.setEndBefore(h),i.selectRange(l),o.Dom.safeRemove(d),o.Dom.safeRemove(h)}},82558:function(t,i,n){"use strict";n.d(i,{allowAttributes:function(){return r}});var o=n(2748);function r(t,i,n,r){let s=r&&o.Dom.isElement(i)&&r[i.nodeName];if(r&&o.Dom.isElement(i)&&!0!==s){if(!s)return n;let t=i.attributes;if(t&&t.length){let o=[];for(let i=0;i<t.length;i+=1){let n=s[t[i].name];n&&(!0===n||n===t[i].value)||o.push(t[i].name)}o.length&&(n=!0),o.forEach(t=>{i.removeAttribute(t)})}}return n}},1962:function(t,i,n){"use strict";n.d(i,{convertUnsafeEmbeds:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=t.o.cleanHTML.convertUnsafeEmbeds;if(!s||!o.Dom.isElement(i))return n;let a=i.nodeName.toLowerCase();if(!s.includes(a))return n;let l=(0,r.attr)(i,"data")||(0,r.attr)(i,"src")||(0,r.attr)(i,"movie")||"";if(!l)return o.Dom.safeRemove(i),!0;let u=t.createInside.element("iframe");return(0,r.attr)(u,{src:l,sandbox:"",frameborder:"0",width:(0,r.attr)(i,"width"),height:(0,r.attr)(i,"height")}),o.Dom.replace(i,u,void 0,!1,!0),!0}},39433:function(t,i,n){"use strict";n.d(i,{fillEmptyParagraph:function(){return a}});var o=n(82758),r=n(2748);let s=new Set(["table","tbody","thead","tfoot","tr"]);function a(t,i,n){if(t.o.cleanHTML.fillEmptyParagraph&&r.Dom.isBlock(i)&&r.Dom.isEmpty(i,o.INSEPARABLE_TAGS)&&!r.Dom.isTag(i,s)){let n=t.createInside.element("br");return i.appendChild(n),!0}return n}},45235:function(t,i,n){"use strict";n.r(i),n.d(i,{allowAttributes:function(){return o.allowAttributes},convertUnsafeEmbeds:function(){return r.convertUnsafeEmbeds},fillEmptyParagraph:function(){return s.fillEmptyParagraph},removeEmptyTextNode:function(){return a.removeEmptyTextNode},removeInvTextNodes:function(){return l.removeInvTextNodes},replaceOldTags:function(){return u.replaceOldTags},safeLinksTarget:function(){return c.safeLinksTarget},sandboxIframesInContent:function(){return d.sandboxIframesInContent},sanitizeAttributes:function(){return h.sanitizeAttributes},sanitizeStyles:function(){return p.sanitizeStyles},tryRemoveNode:function(){return f.tryRemoveNode}});var o=n(82558),r=n(1962),s=n(39433),a=n(53392),l=n(25813),u=n(80973),c=n(95614),d=n(85978),h=n(384),p=n(15583),f=n(28800)},53392:function(t,i,n){"use strict";n.d(i,{removeEmptyTextNode:function(){return r}});var o=n(2748);function r(t,i,n,r,s,a){return o.Dom.isText(i)&&!i.nodeValue?(i===a&&t.s.isCollapsed()&&t.s.setCursorAfter(i),o.Dom.safeRemove(i),!0):n}},25813:function(t,i,n){"use strict";n.d(i,{removeInvTextNodes:function(){return s}});var o=n(82758),r=n(2748);function s(t,i,n,s,a,l){if(l===i||!r.Dom.isText(i)||null==i.nodeValue||!(0,o.INVISIBLE_SPACE_REG_EXP)().test(i.nodeValue))return n;let u=r.Dom.furthest(l,r.Dom.isBlock,t.editor);return!u||r.Dom.isOrContains(u,i)?n:(i.nodeValue=i.nodeValue.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),""),i===l&&t.s.isCollapsed()&&t.s.setCursorAfter(i),i.nodeValue||r.Dom.safeRemove(i),!0)}},80973:function(t,i,n){"use strict";n.d(i,{replaceOldTags:function(){return r}});var o=n(2748);function r(t,i,n){let r=function(t,i,n){if(!n||!o.Dom.isHTMLElement(i))return i;let r=n[i.nodeName.toLowerCase()]||n[i.nodeName];return r?o.Dom.replace(i,r,t.createInside,!0,!1):i}(t,i,t.o.cleanHTML.replaceOldTags);return i!==r?(i=r,!0):n}},95614:function(t,i,n){"use strict";n.d(i,{safeLinksTarget:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){if(!t.o.cleanHTML.safeLinksTarget||!o.Dom.isElement(i)||"A"!==i.nodeName||"_blank"!==(0,r.attr)(i,"target"))return n;let s=((0,r.attr)(i,"rel")||"").split(/\s+/).filter(Boolean),a=!1;return(s.includes("noopener")||(s.push("noopener"),a=!0),s.includes("noreferrer")||(s.push("noreferrer"),a=!0),a)?((0,r.attr)(i,"rel",s.join(" ")),!0):n}},85978:function(t,i,n){"use strict";n.d(i,{sandboxIframesInContent:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){return t.o.cleanHTML.sandboxIframesInContent&&o.Dom.isElement(i)&&"IFRAME"===i.nodeName?i.hasAttribute("sandbox")?n:((0,r.attr)(i,"sandbox",""),!0):n}},384:function(t,i,n){"use strict";n.d(i,{sanitizeAttributes:function(){return s}});var o=n(2748),r=n(21537);function s(t,i,n){if(!o.Dom.isElement(i))return n;let s=t.options.cleanHTML;return!!(0,r.sanitizeHTMLElement)(i,{safeJavaScriptLink:s.safeJavaScriptLink,removeOnError:s.removeOnError,removeEventAttributes:s.removeEventAttributes,safeLinksTarget:s.safeLinksTarget})||n}},15583:function(t,i,n){"use strict";n.d(i,{sanitizeStyles:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=t.o.cleanHTML.allowedStyles;if(!s||!o.Dom.isElement(i))return n;let a=(0,r.attr)(i,"style");if(!a)return n;let l=function(t,i){let n=i[t],o=i["*"];if(!n&&!o)return null;let r=new Set;if(o)for(let t of o)r.add(t.toLowerCase());if(n)for(let t of n)r.add(t.toLowerCase());return r}(i.nodeName.toLowerCase(),s);if(!l)return n;let u=a.split(";").map(t=>t.trim()).filter(t=>{if(!t)return!1;let i=t.indexOf(":");if(-1===i)return!1;let n=t.substring(0,i).trim().toLowerCase();return l.has(n)}).join("; ").replace(/;\s*$/,"");return u!==a?((0,r.attr)(i,"style",u||null),!0):n}},28800:function(t,i,n){"use strict";n.d(i,{tryRemoveNode:function(){return a}});var o=n(82758),r=n(2748),s=n(49055);function a(t,i,n,a,l,u){return!function(t,i,n,a,l){if(!r.Dom.isText(i)&&(a&&!a[i.nodeName]||!a&&l&&l[i.nodeName]))return!0;if(!t.o.cleanHTML.removeEmptyElements)return!1;let u=t.s.isCollapsed()?t.s.range.startContainer:null;return r.Dom.isElement(i)&&null!=i.nodeName.match(o.IS_INLINE)&&!r.Dom.isTemporary(i)&&0===(0,s.trimInv)(i.innerHTML).length&&(null==n||!r.Dom.isOrContains(i,n))&&(null==u||!r.Dom.isOrContains(i,u))}(t,i,u,a,l)?n:(r.Dom.safeRemove(i),!0)}},39516:function(t,i,n){"use strict";n.d(i,{visitNodeWalker:function(){return a}});var o=n(82758),r=n(45235);let s=Object.keys(r);function a(t,i,n,a,l){let u=!1,c=t.o.cleanHTML.disableCleanFilter;for(let d of s)if(!(c&&c.has(d))&&(u=(0,r[d])(t,i,u,n,a,l),o.IS_PROD,!i.isConnected))return!0;return u}},61323:function(t,i,n){"use strict";var o=n(82758),r=n(33433),s=n(2748),a=n(580),l=n(21537);n(79419);class u{init(t){var i;null==(i=this.buttons)||i.forEach(i=>t.registerButton(i)),t.e.off(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`).on(`copy.${o.CLIPBOARD_ID} cut.${o.CLIPBOARD_ID}`,i=>{var n;let r=function(t,i){if(!i||t.s.isCollapsed())return i;let n=t.s.range.commonAncestorContainer;s.Dom.isElement(n)||(n=n.parentElement);let o=i;for(;n&&n!==t.editor&&s.Dom.isElement(n)&&!s.Dom.isBlock(n);){let t=n.cloneNode(!1);t.innerHTML=o,o=t.outerHTML,n=n.parentElement}return o}(t,t.s.html),a=(0,l.getDataTransfer)(i)||(0,l.getDataTransfer)(t.ew)||(0,l.getDataTransfer)(i.originalEvent);a&&(a.setData(o.TEXT_PLAIN,(0,l.stripTags)(r)),a.setData(o.TEXT_HTML,r)),t.buffer.set(o.CLIPBOARD_ID,r),t.e.fire("pasteStack",{html:r,action:t.o.defaultActionOnPaste||o.INSERT_AS_HTML}),"cut"===i.type&&(t.s.remove(),t.s.focus()),i.preventDefault(),null==(n=null==t?void 0:t.events)||n.fire("afterCopy",r)})}destruct(t){var i,n;null==(i=(0,r.cached)(t,"buffer"))||i.set(o.CLIPBOARD_ID,""),null==(n=null==t?void 0:t.events)||n.off("."+o.CLIPBOARD_ID)}constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}}a.pluginSystem.add("clipboard",u)},79419:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(94775),a=n(23140),l=n(92699),u=n(10052);r.Config.prototype.controls.cut={command:"cut",isDisabled:t=>t.s.isCollapsed(),tooltip:"Cut selection"},r.Config.prototype.controls.copy={command:"copy",isDisabled:t=>t.s.isCollapsed(),tooltip:"Copy selection"},r.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},o.Icon.set("copy",s.default).set("cut",a.default).set("paste",l.default).set("select-all",u.default)},94775:function(t,i){"use strict";i.default='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> '},23140:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> '},92699:function(t,i){"use strict";i.default='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> '},10052:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> '},46104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '},93079:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(21988),o.pluginSystem.add("color",function(t){t.registerButton({name:"brush",group:"color"});let i=(i,n,o)=>{var s;let a=(0,r.normalizeColor)(o)||"",l="background"===i?{backgroundColor:a}:{color:a},u=t.getInstance("Table",t.o).getAllSelectedCells();return u.length&&t.s.isCollapsed()?(u.forEach(i=>{t.s.select(i,!0),t.s.commitStyle({attributes:{style:l}})}),null==(s=t.s.sel)||s.removeAllRanges()):t.s.commitStyle({attributes:{style:l}}),t.synchronizeValues(),!1};t.registerCommand("forecolor",i).registerCommand("background",i)})},21988:function(t,i,n){"use strict";var o=n(2748),r=n(21537),s=n(12153),a=n(6441),l=n(92762),u=n(46104);s.Icon.set("brush",u.default),a.Config.prototype.controls.brushCell={isVisible:t=>!t.o.disablePlugins.includes("color"),icon:"brush",popup:(t,i,n)=>{if(!(0,r.isJoditObject)(t))return;let o=t.getInstance("Table",t.o).getAllSelectedCells();if(!o.length)return!1;let s=i=>(0,l.ColorPickerWidget)(t,s=>{o.forEach(t=>{(0,r.css)(t,i,s)}),t.lock(),t.synchronizeValues(),n(),t.unlock()},(0,r.css)(o[0],i));return(0,l.TabsWidget)(t,[{name:"Background",content:s("background-color")},{name:"Text",content:s("color")},{name:"Border",content:s("border-color")}])},tooltip:"Background"},a.Config.prototype.controls.brush={isVisible:t=>!t.o.disablePlugins.includes("color"),update(t,i){let n=(0,r.dataBind)(i,"color"),s=(n,o)=>!!o&&o!==(0,r.css)(t.editor,n).toString()&&(i.state.icon.fill=o,!0);if(n){let t=(0,r.dataBind)(i,"color");s("color"===t?t:"background-color",n);return}let a=t.s.current();if(a&&!i.state.disabled){let i=o.Dom.closest(a,o.Dom.isElement,t.editor)||t.editor,n=s("color",(0,r.css)(i,"color").toString()),l=s("background-color",(0,r.css)(i,"background-color").toString());if(n||l)return}i.state.icon.fill="",i.state.activated=!1},popup:(t,i,n,s)=>{let a="",u="",c=[],d=null;return i&&i!==t.editor&&o.Dom.isNode(i)&&(o.Dom.isElement(i)&&t.s.isCollapsed()&&!o.Dom.isTag(i,new Set(["br","hr"]))&&(d=i),o.Dom.up(i,t=>{if(o.Dom.isHTMLElement(t)){let i=(0,r.css)(t,"color",!0),n=(0,r.css)(t,"background-color",!0);if(i)return a=i.toString(),!0;if(n)return u=n.toString(),!0}},t.editor)),c=[{name:"Background",content:(0,l.ColorPickerWidget)(t,i=>{d?d.style.backgroundColor=i:t.execCommand("background",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","background"),n()},u)},{name:"Text",content:(0,l.ColorPickerWidget)(t,i=>{d?d.style.color=i:t.execCommand("forecolor",!1,i),(0,r.dataBind)(s,"color",i),(0,r.dataBind)(s,"color-mode","color"),n()},a)}],"background"!==t.o.colorPickerDefaultTab&&(c=c.reverse()),(0,l.TabsWidget)(t,c,d)},exec(t,i,{button:n}){let s=(0,r.dataBind)(n,"color-mode"),a=(0,r.dataBind)(n,"color");if(!s)return!1;if(i&&i!==t.editor&&o.Dom.isNode(i)&&o.Dom.isElement(i))switch(s){case"color":i.style.color=a;break;case"background":i.style.backgroundColor=a}else t.execCommand("background"===s?s:"forecolor",!1,a)},tooltip:"Fill color or set the text color"}},19063:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(41180),a=n(12153),l=n(6441),u=n(57487),c=n(23914);let d="copy-format",h=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],p=(t,i,n,o)=>{let r=(0,s.css)(n,i);return r===o[i]&&(r=n.parentNode&&n!==t.editor&&n.parentNode!==t.editor?p(t,i,n.parentNode,o):void 0),r};l.Config.prototype.controls.copyformat={exec:(t,i,{button:n})=>{if(i){if(t.buffer.exists(d))t.buffer.delete(d),t.e.off(t.editor,"mouseup."+d);else{let n,r={},a=o.Dom.up(i,t=>t&&!o.Dom.isText(t),t.editor)||t.editor,l=t.createInside.span();t.editor.appendChild(l),h.forEach(t=>{r[t]=(0,s.css)(l,t)}),l!==t.editor&&o.Dom.safeRemove(l);let u=(n={},a&&h.forEach(i=>{n[i]=p(t,i,a,r),i.match(/border(Style|Color)/)&&!n.borderWidth&&(n[i]=void 0)}),n);t.e.on(t.editor,"mouseup."+d,()=>{t.buffer.delete(d);let i=t.s.current();i&&(o.Dom.isTag(i,"img")?(0,s.css)(i,u):t.s.commitStyle({attributes:{style:u}})),t.e.off(t.editor,"mouseup."+d)}),t.buffer.set(d,!0)}n.update()}},isActive:t=>t.buffer.exists(d),tooltip:"Paint format"},r.pluginSystem.add("copyformat",function(t){t.registerButton({name:"copyformat",group:"clipboard"}),(0,r.extendLang)(c)}),a.Icon.set("copyformat",u.default)},57487:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> '},63819:function(t,i){"use strict";i.default={"copy-format":"نسخ التنسيق"}},72392:function(t,i){"use strict";i.default={"copy-format":"Kop\xedrovat form\xe1t"}},74551:function(t,i){"use strict";i.default={"copy-format":"Format kopierenт"}},2536:function(t,i){"use strict";i.default={"copy-format":"Copiar formato"}},52285:function(t,i){"use strict";i.default={"copy-format":"کپی کردن قالب"}},12117:function(t,i){"use strict";i.default={"copy-format":"Kopioi muotoilu"}},35140:function(t,i){"use strict";i.default={"copy-format":"Format de copie"}},28435:function(t,i){"use strict";i.default={"copy-format":"העתק עיצוב"}},98019:function(t,i){"use strict";i.default={"copy-format":"Form\xe1tum m\xe1sol\xe1s"}},96457:function(t,i){"use strict";i.default={"copy-format":"salin format"}},23914:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o.default},cs_cz:function(){return r.default},de:function(){return s.default},es:function(){return a.default},fa:function(){return l.default},fi:function(){return u.default},fr:function(){return c.default},he:function(){return d.default},hu:function(){return h.default},id:function(){return p.default},it:function(){return f.default},ja:function(){return m.default},ko:function(){return g.default},mn:function(){return b.default},nl:function(){return v.default},pl:function(){return y.default},pt_br:function(){return _.default},ru:function(){return C.default},tr:function(){return w.default},zh_cn:function(){return F.default},zh_tw:function(){return E.default}});var o=n(63819),r=n(72392),s=n(74551),a=n(2536),l=n(52285),u=n(12117),c=n(35140),d=n(28435),h=n(98019),p=n(96457),f=n(33561),m=n(96545),g=n(52230),b=n(33307),v=n(71042),y=n(32172),_=n(39179),C=n(60629),w=n(68278),F=n(1172),E=n(4164)},33561:function(t,i){"use strict";i.default={"copy-format":"Copia il formato"}},96545:function(t,i){"use strict";i.default={"copy-format":"copyformat"}},52230:function(t,i){"use strict";i.default={"copy-format":"복사 형식"}},33307:function(t,i){"use strict";i.default={"copy-format":"Формат хуулах"}},71042:function(t,i){"use strict";i.default={"copy-format":"opmaak kopi\xebren"}},32172:function(t,i){"use strict";i.default={"copy-format":"format kopii"}},39179:function(t,i){"use strict";i.default={"copy-format":"Copiar formato"}},60629:function(t,i){"use strict";i.default={"copy-format":"Копировать формат"}},68278:function(t,i){"use strict";i.default={"copy-format":"Kopyalama Bi\xe7imi"}},1172:function(t,i){"use strict";i.default={"copy-format":"复制格式"}},4164:function(t,i){"use strict";i.default={"copy-format":"複製格式"}},66707:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(21537),a=n(49055),l=n(50911);class u extends l.Plugin{afterInit(t){t.e.on("afterCommand.delete",t=>{"delete"===t&&this.__afterDeleteCommand()}),t.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}beforeDestruct(t){t.e.off("afterCommand.delete")}__afterDeleteCommand(){let t=this.j,i=t.s.current();if(i&&o.Dom.isTag(i.firstChild,"br")&&t.s.removeNode(i.firstChild),!(0,a.trim)(t.editor.textContent||"")&&!t.editor.querySelector("img,table,jodit,iframe,hr")&&(!i||!o.Dom.closest(i,"table",t.editor))){t.editor.innerHTML="";let i=t.s.setCursorIn(t.editor);t.s.removeNode(i)}}__onDeleteCommand(){let{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();let i=t.s.range;i.deleteContents();let n=t.createInside.fake();i.insertNode(n);let r=o.Dom.findSibling(n,!0),s=o.Dom.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,s),i.setStartBefore(n),i.collapse(!0),this.__moveCursorInEditableSibling(t,r,n,i),this.__addBrInEmptyBlock(n,s,i),o.Dom.safeRemove(n),t.s.selectRange(i),!1}__moveContentInLeftSibling(t,i,n){i=this.__defineRightLeftBox(i),!o.Dom.isList(n)&&!o.Dom.isTag(n,"table")&&o.Dom.isBlock(n)&&o.Dom.isBlock(i)&&(o.Dom.append(i,t),o.Dom.moveContent(n,i),o.Dom.safeRemove(n)),o.Dom.isList(n)&&o.Dom.isLeaf(n.firstElementChild)&&o.Dom.isEmpty(n.firstElementChild)&&o.Dom.safeRemove(n.firstElementChild)}__defineRightLeftBox(t){if(!o.Dom.isList(t))return t;let i=t.lastElementChild;return o.Dom.isLeaf(i)||(i=this.j.createInside.element("li"),o.Dom.append(t,i)),i}__addBrInEmptyBlock(t,i,n){let r=this.j;if(t.isConnected&&o.Dom.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){let i=r.createInside.element("br");o.Dom.after(t,i),n.setStartBefore(i),n.collapse(!0)}if(o.Dom.isTag(i,"table")){let t=(0,s.$$)("td,th",i).shift();o.Dom.isCell(t)&&o.Dom.isEmpty(t)&&o.Dom.append(t,r.createInside.element("br"))}}__moveCursorInEditableSibling(t,i,n,r){var s;if(!i||!o.Dom.isText(i)){let i=null!=(s=o.Dom.closest(n,o.Dom.isBlock,t.editor))?s:t.editor,a=o.Dom.prev(n,o.Dom.isText,i);a&&(r.setStartAfter(a),r.collapse(!0),o.Dom.safeRemove(n))}}}u.requires=["backspace"],r.pluginSystem.add("deleteCommand",u)},44586:function(t,i,n){"use strict";n(6441).Config.prototype.draggableTags=["img","jodit-media","jodit"]},1255:function(t,i,n){"use strict";var o,r,s=n(65478),a=n(22732),l=n(580),u=n(21537),c=n(50911);n(44586);var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};(o=r||(r={}))[o.IDLE=0]="IDLE",o[o.WAIT_DRAGGING=1]="WAIT_DRAGGING",o[o.DRAGGING=2]="DRAGGING";class h extends c.Plugin{afterInit(){this.dragList=this.j.o.draggableTags?(0,u.splitArray)(this.j.o.draggableTags).filter(Boolean).map(t=>t.toLowerCase()):[],this.j.e.on("startDragElement",this.onStartDragElement),this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onStartDragElement(t,i){this.isInDestruct||this.state>r.IDLE||!t||this.startDragging(t,i)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>r.IDLE)return;let i=t.target;if(!this.dragList.length||!i)return;let n=t=>!!(t&&this.dragList.includes(t.nodeName.toLowerCase())),o=a.Dom.furthest(i,n,this.j.editor)||(n(i)?i:null);o&&(a.Dom.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startDragging(o,t))}startDragging(t,i){this.startX=i.clientX,this.startY=i.clientY,this.isCopyMode=(0,u.ctrlKey)(i),this.draggable=t.cloneNode(!0),(0,u.dataBind)(this.draggable,"target",t),this.state=r.WAIT_DRAGGING,this.addDragListeners()}onDrag(t){var i,n;if(!this.draggable||this.state===r.IDLE)return;let o=t.clientX,s=t.clientY;if(!(this.state===r.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(s-this.startY,2))<this.diffStep)){if(this.state===r.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=r.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){let o=(0,u.dataBind)(this.draggable,"target");(0,u.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:null!=(i=null==o?void 0:o.offsetWidth)?i:100,height:null!=(n=null==o?void 0:o.offsetHeight)?n:100}),(0,l.getContainer)(this.j,h).appendChild(this.draggable)}(0,u.css)(this.draggable,{left:t.clientX,top:t.clientY}),this.j.s.insertCursorAtPoint(t.clientX,t.clientY)}}onDragEnd(){!this.isInDestruct&&(this.removeDragListeners(),this.j.unlock(),this.state=r.IDLE,this.draggable&&(a.Dom.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||this.state<r.DRAGGING)return void this.onDragEnd();let t=(0,u.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));let{parentElement:i}=t;this.j.s.insertNode(t,!0,!1),[t.previousSibling,t.nextSibling].forEach(t=>{a.Dom.isEmptyTextNode(t)&&a.Dom.safeRemove(t)}),i&&a.Dom.isEmpty(i)&&!a.Dom.isCell(i)&&a.Dom.safeRemove(i),a.Dom.isTag(t,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",t),this.j.e.fire("synchro")}addDragListeners(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}removeDragListeners(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}beforeDestruct(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart).off("startDragElement",this.onStartDragElement),this.removeDragListeners()}constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=r.IDLE}}d([s.autobind],h.prototype,"onStartDragElement",null),d([s.autobind],h.prototype,"onDragStart",null),d([(0,s.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),d([s.autobind],h.prototype,"onDragEnd",null),d([s.autobind],h.prototype,"onDrop",null),l.pluginSystem.add("dragAndDropElement",h)},19271:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(50911),c=n(8172),d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){var i;let n=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=s.Dom.isOrContains(this.j.editor,n,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,l.ctrlKey)(t),this.isFragmentFromEditor){let t=this.j.s.sel,i=t&&t.rangeCount?t.getRangeAt(0):null;i&&(this.bufferRange=i.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,i=n,s.Dom.isElement(i)&&i.classList.contains(c.FileBrowserFiles.prototype.getFullElName("item"))&&(n=n.querySelector("img")),s.Dom.isTag(n,"img")&&(this.draggable=n.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",n)),this.addDragListeners()}addDragListeners(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}removeDragListeners(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}onDrag(t){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),t.preventDefault(),t.stopPropagation())}onDragEnd(){this.draggable&&(s.Dom.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}onDrop(t){if(!t.dataTransfer||!t.dataTransfer.files||!t.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",t),t.preventDefault(),t.stopPropagation(),!1;let i=this.j.s.sel,n=this.bufferRange||(i&&i.rangeCount?i.getRangeAt(0):null),o=this.__getWorkFragment(n,t);i&&i.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),o&&this.__insertFragment.call(this,o,n),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}__getWorkFragment(t,i){let n=null;if(!this.draggable&&t)n=this.isCopyMode?t.cloneContents():t.extractContents();else if(this.draggable)if(this.isCopyMode){let[t,i]="1"===(0,l.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];n=this.j.createInside.element(t),(0,l.attr)(n,i,(0,l.attr)(this.draggable,"data-src")||(0,l.attr)(this.draggable,"src")||""),"a"===t&&(n.textContent=(0,l.attr)(n,i)||"")}else n=(0,l.dataBind)(this.draggable,"target");else this.getText(i)&&(n=this.j.createInside.fromHTML(this.getText(i)));return n}__insertFragment(t,i){this.j.s.insertNode(t,!1,!1),i&&t.firstChild&&t.lastChild&&(i.setStartBefore(t.firstChild),i.setEndAfter(t.lastChild),this.j.s.selectRange(i),this.j.e.fire("synchro")),s.Dom.isTag(t,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",t)}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{let i=(0,l.getDataTransfer)(t);return i?i.getData(o.TEXT_HTML)||i.getData(o.TEXT_PLAIN):null}}}d([r.autobind],h.prototype,"onDragStart",null),d([(0,r.throttle)(t=>t.defaultTimeout/10)],h.prototype,"onDrag",null),d([r.autobind],h.prototype,"onDragEnd",null),d([r.autobind],h.prototype,"onDrop",null),a.pluginSystem.add("dragAndDrop",h)},46124:function(t,i,n){"use strict";n.r(i),n.d(i,{removeExtraBr:function(){return o.removeExtraBr}});var o=n(94870)},94870:function(t,i,n){"use strict";n.d(i,{removeExtraBr:function(){return s}});var o=n(2748);let r=new Set(["table","pre","blockquote","code"]);function s(t,i){if(!t.o.dtd.removeExtraBr||o.Dom.isTag(i,"br"))return;let n=o.Dom.furthest(i,o.Dom.isBlock,t.editor);if(n&&!o.Dom.isTag(n,r)){let n=o.Dom.isTag(i,"br")?i:o.Dom.findNotEmptySibling(i,!1);if(!o.Dom.isTag(n,"br")||o.Dom.findNotEmptySibling(n,!1))return;t.s.setCursorBefore(n),o.Dom.safeRemove(n)}}},78720:function(t,i,n){"use strict";n.d(i,{checkBlockNesting:function(){return r}});var o=n(2748);function r(t,i){var n,r;if(o.Dom.isFragment(i)&&(i=i.firstChild),t.o.dtd.checkBlockNesting&&o.Dom.isBlock(i)){let i=null,s=null!=(r=null==(n=t.s.current())?void 0:n.parentElement)?r:null;for(;s&&s!==t.editor;){if(o.Dom.isBlock(s)){if(t.o.dtd.blockLimits[s.nodeName.toLowerCase()])break;i=s}s=s.parentElement}i&&(t.s.setCursorAfter(i),o.Dom.isEmpty(i)&&o.Dom.safeRemove(i))}}},43267:function(t,i,n){"use strict";n.r(i),n.d(i,{checkBlockNesting:function(){return o.checkBlockNesting}});var o=n(78720)},9045:function(t,i,n){"use strict";n(6441).Config.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}}},65735:function(t,i,n){"use strict";var o=n(37133),r=n(580),s=n(50911);n(9045);var a=n(46124),l=n(43267),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class c extends s.Plugin{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach(i=>{l[i](this.j,t)})}__onAfterInsertNode(t){Object.keys(a).forEach(i=>{a[i](this.j,t)})}}u([(0,o.watch)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),u([(0,o.watch)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),r.pluginSystem.add("dtd",c)},575:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(87612),u=n(20356),c=n(35399);class d extends u.Plugin{afterInit(t){let i=t.o.enter.toLowerCase(),n=i===o.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=n?o.PARAGRAPH:i),t.registerCommand("enter",(t,i,n={})=>this.onEnter(n))}onEnterKeyDown(t){if(t.key===o.KEY_ENTER){let i=this.j,n=i.e.fire("beforeEnter",t);return void 0!==n?n:(i.history.snapshot.transaction(()=>{i.s.isCollapsed()||i.execCommand("Delete"),i.s.focus(),this.onEnter(t),i.e.fire("afterEnter",t)}),i.synchronizeValues(),!1)}}onEnter(t){let{jodit:i}=this,n=i.createInside.fake();try{s.Dom.safeInsertNode(i.s.range,n),(0,c.moveCursorOutFromSpecialTags)(i,n,["a"]);let o=(0,c.getBlockWrapper)(n,i),r=s.Dom.isLeaf(o);if((!r||(null==t?void 0:t.shiftKey))&&(0,c.checkBR)(n,i,null==t?void 0:t.shiftKey))return!1;if(o||(0,c.hasPreviousBlock)(n,i)||(o=(0,c.wrapText)(n,i)),!o)return(0,c.insertParagraph)(n,i,r?"li":i.o.enter),!1;if(!(0,c.checkUnsplittableBox)(n,i,o))return!1;if(r&&this.__isEmptyListLeaf(o))return(0,c.processEmptyLILeaf)(n,i,o),!1;(0,c.splitFragment)(n,i,o)}finally{n.isConnected&&i.s.setCursorBefore(n),s.Dom.safeRemove(n)}}__isEmptyListLeaf(t){let i=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.isBoolean)(i)?i:s.Dom.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":keydown.enter")],d.prototype,"onEnterKeyDown",null),a.pluginSystem.add("enter",d)},41872:function(t,i,n){"use strict";n.d(i,{checkBR:function(){return a}});var o=n(82758),r=n(2748),s=n(26395);function a(t,i,n){let a=!!r.Dom.closest(t,["pre","blockquote"],i.editor),u=!a&&r.Dom.closest(t,["td","th"],i.editor);if(i.o.enter.toLowerCase()===o.BR.toLowerCase()||u||n&&!a||!n&&a){var c;let n;if(a&&(n=l(l(c=t)))&&(r.Dom.safeRemove(l(c)),r.Dom.safeRemove(n),1))return!1;let o=i.createInside.element("br");if(r.Dom.before(t,o),!r.Dom.findNotEmptySibling(o,!1)){let i=o.cloneNode();r.Dom.after(o,i),r.Dom.before(i,t)}return(0,s.scrollIntoViewIfNeeded)(o,i.editor,i.ed),!0}return!1}function l(t){if(!t)return!1;let i=r.Dom.findSibling(t,!0);return!!i&&!!r.Dom.isTag(i,"br")&&i}},61991:function(t,i,n){"use strict";n.d(i,{checkUnsplittableBox:function(){return r}});var o=n(2748);function r(t,i,n){return!!o.Dom.canSplitBlock(n)||(o.Dom.before(t,i.createInside.element("br")),!1)}},54041:function(t,i,n){"use strict";n.d(i,{getBlockWrapper:function(){return function t(i,n,s=o.IS_BLOCK){let a=i,l=n.editor;do{if(!a||a===l)break;if(s.test(a.nodeName)){if(r.Dom.isLeaf(a))return a;return t(a.parentNode,n,/^li$/i)||a}a=a.parentNode}while(a&&a!==l);return null}}});var o=n(82758),r=n(2748)},19057:function(t,i,n){"use strict";n.d(i,{hasPreviousBlock:function(){return r}});var o=n(2748);function r(t,i){return!!o.Dom.prev(t,t=>o.Dom.isBlock(t)||o.Dom.isImage(t),i.editor)}},35399:function(t,i,n){"use strict";n.d(i,{checkBR:function(){return o.checkBR},checkUnsplittableBox:function(){return r.checkUnsplittableBox},getBlockWrapper:function(){return s.getBlockWrapper},hasPreviousBlock:function(){return a.hasPreviousBlock},insertParagraph:function(){return l.insertParagraph},moveCursorOutFromSpecialTags:function(){return u.moveCursorOutFromSpecialTags},processEmptyLILeaf:function(){return c.processEmptyLILeaf},splitFragment:function(){return d.splitFragment},wrapText:function(){return h.wrapText}});var o=n(41872),r=n(61991),s=n(54041),a=n(19057),l=n(44245),u=n(91388),c=n(65181),d=n(54600),h=n(5287)},44245:function(t,i,n){"use strict";n.d(i,{insertParagraph:function(){return a}});var o=n(2748),r=n(29960),s=n(26395);function a(t,i,n,a){let l="br"===n.toLowerCase(),{createInside:u}=i,c=u.element(n),d=u.element("br");return l||c.appendChild(d),a&&a.cssText&&(0,r.attr)(c,"style",a.cssText),o.Dom.after(t,c),o.Dom.before(l?c:d,t),(0,s.scrollIntoViewIfNeeded)(c,i.editor,i.ed),c}},91388:function(t,i,n){"use strict";n.d(i,{moveCursorOutFromSpecialTags:function(){return r}});var o=n(2748);function r(t,i,n){let{s:r}=t,s=o.Dom.closest(i,n,t.editor);s&&(r.cursorOnTheRight(s,i)?o.Dom.after(s,i):r.cursorOnTheLeft(s,i)&&o.Dom.before(s,i))}},65181:function(t,i,n){"use strict";n.d(i,{processEmptyLILeaf:function(){return a}});var o=n(2748),r=n(76078),s=n(44245);function a(t,i,n){let a=o.Dom.closest(n,["ol","ul"],i.editor);if(!a)return;let l=a.parentElement,u=o.Dom.isLeaf(l),c=u?l:a,d=i.s.createRange();d.setStartAfter(n),d.setEndAfter(a);let h=d.extractContents();o.Dom.after(c,t),o.Dom.safeRemove(n),(0,r.$$)("li",a).length||o.Dom.safeRemove(a);let p=(0,s.insertParagraph)(t,i,u?"li":i.o.enter);h.querySelector("li")&&(u?p.appendChild(h):o.Dom.after(p,h))}},54600:function(t,i,n){"use strict";n.d(i,{splitFragment:function(){return a}});var o=n(2748),r=n(26395),s=n(44245);function a(t,i,n){let a=i.s,{enter:l}=i.o,u=l.toLowerCase(),c=o.Dom.isLeaf(n),d=n.tagName.toLowerCase()===u||c,h=a.cursorOnTheRight(n,t),p=a.cursorOnTheLeft(n,t);if(!d&&(h||p)){h?o.Dom.after(n,t):o.Dom.before(n,t),(0,s.insertParagraph)(t,i,u),p&&!h&&o.Dom.prepend(n,t);return}let f=a.splitSelection(n,t);(0,r.scrollIntoViewIfNeeded)(f,i.editor,i.ed)}},5287:function(t,i,n){"use strict";n.d(i,{wrapText:function(){return r}});var o=n(2748);function r(t,i){let n=t;o.Dom.up(n,t=>{t&&t.hasChildNodes()&&t!==i.editor&&(n=t)},i.editor);let r=o.Dom.wrapInline(n,i.o.enter,i);if(o.Dom.isEmpty(r)){let n=i.createInside.element("br");r.appendChild(n),o.Dom.before(n,t)}return r}},11317:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(29960),a=n(6441),l=n(92762);a.Config.prototype.controls.file={popup:(t,i,n)=>{let r=(i,n="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${i}" title="${n}">${n||i}</a>`))},a=null;return i&&(o.Dom.isTag(i,"a")||o.Dom.closest(i,"a",t.editor))&&(a=o.Dom.isTag(i,"a")?i:o.Dom.closest(i,"a",t.editor)),(0,l.FileSelectorWidget)(t,{filebrowser:t=>{t.files&&t.files.forEach(i=>r(t.baseurl+i)),n()},upload:!0,url:(t,i)=>{a?((0,s.attr)(a,"href",t),(0,s.attr)(a,"title",i)):r(t,i),n()}},a,n,!1)},tags:["a"],tooltip:"Insert file"},r.pluginSystem.add("file",function(t){t.registerButton({name:"file",group:"media"})})},36243:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(6441);s.Config.prototype.autofocus=!1,s.Config.prototype.cursorAfterAutofocus="end",s.Config.prototype.saveSelectionOnBlur=!0,r.pluginSystem.add("focus",function(t){t.o.saveSelectionOnBlur&&t.e.on("blur",()=>{t.isEditorMode()&&t.s.save(!0)}).on("focus",()=>{t.isEditorMode()&&t.s.restore()});let i=()=>{t.s.focus();let i=null;switch(t.o.cursorAfterAutofocus){case"start":i=o.Dom.first(t.editor,t=>o.Dom.isText(t));break;case"end":i=o.Dom.last(t.editor,t=>o.Dom.isText(t))}i&&t.s.setCursorIn(i,"start"===t.o.cursorAfterAutofocus)};t.e.on("afterInit",()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(i,300):i())}),t.e.on("afterInit afterAddPlace",()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",i=>{t.isEditorMode()&&i.target&&o.Dom.isBlock(i.target)&&!i.target.childNodes.length&&(t.editor===i.target?t.s.focus():t.s.setCursorIn(i.target))})})})},28252:function(t,i,n){"use strict";var o,r,s=n(22732),a=n(49055),l=n(41180),u=n(12153),c=n(6441),d=n(4104),h=n(83709);c.Config.prototype.defaultFontSizePoints="px",u.Icon.set("font",d.default).set("fontsize",h.default),c.Config.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalize:t=>t.toString().replace(/(px|pt)$/i,"")},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:(t,i)=>i+t.o.defaultFontSizePoints,childTemplate:(t,i,n)=>`${n}${t.o.defaultFontSizePoints}`,tooltip:"Font size",value:(t,i)=>{var n;let o=t.s.current();if(!o)return;let r=s.Dom.closest(o,s.Dom.isElement,t.editor);if(!r)return;let a=(null==(n=i.control.data)?void 0:n.cssRule)||"font-size",u=(0,l.css)(r,a);if("font-size"===a){let i=parseFloat(u.toString());return"pt"===t.o.defaultFontSizePoints?Math.round(.75*i).toString():Math.round(i).toString()}return u.toString()},isChildActive:(t,i)=>{var n,o;let r=i.state.value,s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t;return!!(r&&i.control.args&&s(i.control.args[0].toString())===s(r.toString()))},isActive:(t,i)=>{var n,o;let r=i.state.value;if(!r)return!1;let s=null!=(o=null==(n=i.control.data)?void 0:n.normalize)?o:t=>t,a=i.control.data.cacheListSet;return a||(a=new Set(Object.keys(i.control.list).map(s)),i.control.data.cacheListSet=a),a.has(s(r.toString()))}},c.Config.prototype.controls.font=(o=function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({},c.Config.prototype.controls.fontsize),r=r={command:"fontname",textTemplate:(t,i)=>{let[n]=i.split(",");return(0,a.trimChars)(n,"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:(t,i,n)=>{let o=!1;try{o=-1===i.indexOf("dings")&&document.fonts.check(`16px ${i}`,n)}catch(t){}return`<span data-style="${i}" style="${o?`font-family: ${i}!important;`:""}">${n}</span>`},data:{cssRule:"font-family",normalize:t=>t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")},value:t=>{let i=t.s.current();if(!i)return;let n=s.Dom.closest(i,s.Dom.isElement,t.editor);if(!n)return;let o=(0,l.css)(n,"font-family").toString();return o===(0,l.css)(t.editor,"font-family").toString()?"":o},tooltip:"Font family"},Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(r)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(r,t))}),o)},23399:function(t,i,n){"use strict";var o=n(580),r=n(21537);n(28252),o.pluginSystem.add("font",function(t){t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});let i=(i,n,o)=>{switch(i){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,r.normalizeSize)(o,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:o}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",i).registerCommand("fontname",i)})},4104:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> '},83709:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '},24630:function(t,i,n){"use strict";var o=n(2748),r=n(72430),s=n(12153),a=n(6441),l=n(89816);s.Icon.set("paragraph",l.default),a.Config.prototype.controls.paragraph={command:"formatBlock",value(t,i){var n,r;let s=i.control,a=t.s.current(),l=o.Dom.closest(a,o.Dom.isBlock,t.editor);return null!=(n=null==l?void 0:l.nodeName.toLowerCase())?n:null==(r=s.data)?void 0:r.currentValue},update(t,i){let n=i.control;if(!t.s.current())return!1;let o=i.state.value,s=n.list;return(0,r.isPlainObject)(s)&&s[o.toString()]&&t.o.textIcons&&(i.state.text=s[o.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:(t,i)=>{var n,o;return i.state.value===(null==(o=null==(n=i.control)?void 0:n.args)?void 0:o[0])},isActive:(t,i)=>i.state.value!==t.o.enter&&(0,r.isPlainObject)(i.control.list)&&!!i.control.list[i.state.value],childTemplate:(t,i,n)=>`<${i} style="margin:0;padding:0"><span>${t.i18n(n)}</span></${i}>`,tooltip:"Insert format block"}},96111:function(t,i,n){"use strict";var o=n(580);n(24630),o.pluginSystem.add("formatBlock",function(t){t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",(i,n,o)=>(t.s.commitStyle({element:o}),t.synchronizeValues(),!1))})},89816:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '},99823:function(t,i,n){"use strict";var o=n(82758),r=n(12153),s=n(6441),a=n(6950),l=n(28911);s.Config.prototype.fullsize=!1,s.Config.prototype.globalFullSize=!0,r.Icon.set("fullsize",a.default).set("shrink",l.default),s.Config.prototype.controls.fullsize={exec:t=>{t.toggleFullSize()},update(t,i){let n=t.isFullSize?"shrink":"fullsize";i.state.activated=t.isFullSize,t.o.textIcons?i.state.text=n:i.state.icon.name=n},tooltip:"Open in fullsize",mode:o.MODE_SOURCE+o.MODE_WYSIWYG}},2169:function(t,i,n){"use strict";var o=n(580),r=n(19306),s=n(41180);n(99823);let a=new Set;o.pluginSystem.add("fullsize",function(t){t.registerButton({name:"fullsize"});let i=!1,n=0,o=0,l=!1,u=()=>{let{container:r,events:a}=t;a&&(i?(l||(n=(0,s.css)(r,"height",!0),o=(0,s.css)(r,"width",!0),l=!0),(0,s.css)(r,{height:t.ow.innerHeight,width:t.ow.innerWidth})):l&&((0,s.css)(r,{height:n||"auto",width:o||"auto"}),l=!1))},c=n=>{var o;let{container:l,events:c}=t;if(l){if(void 0===n&&(n=!l.classList.contains("jodit_fullsize")),t.setMod("fullsize",n),t.o.fullsize=n,i=n,l.classList.toggle("jodit_fullsize",n),t.toolbar&&((0,r.isJoditObject)(t)&&(null==(o=t.toolbarContainer)||o.appendChild(t.toolbar.container)),(0,s.css)(t.toolbar.container,"width","auto")),n?a.add(l):a.delete(l),t.o.globalFullSize&&(1===a.size&&n||0===a.size&&!n)){let t=l.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",n),t=t.parentNode;u()}c.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",u),t.e.on("afterInit afterOpen",()=>{var i;t.toggleFullSize(null==(i=null==t?void 0:t.options)?void 0:i.fullsize)}).on("toggleFullSize",c).on("beforeDestruct",()=>{i&&c(!1)}).on("beforeDestruct",()=>{t.events&&t.e.off(t.ow,"resize",u)})})},6950:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> '},28911:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '},78524:function(t,i,n){"use strict";n(6441).Config.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8","cmd+shift+8"],selectall:["ctrl+a","cmd+a"]}},42263:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537),a=n(50911);n(78524);class l extends a.Plugin{afterInit(t){(0,s.keys)(t.o.commandToHotkeys,!1).forEach(i=>{let n=t.o.commandToHotkeys[i];n&&((0,s.isArray)(n)||(0,s.isString)(n))&&t.registerHotkeyToCommand(n,i)});let i=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",t=>{if(t.key===o.KEY_ESC)return this.j.e.fire("escape",t)}).on("keydown.hotkeys",n=>{let o=this.onKeyPress(n),r={shouldStop:!0};if(!1===this.j.e.fire(o+".hotkey",n.type,r))if(r.shouldStop)return i=!0,t.e.stopPropagation("keydown"),!1;else n.preventDefault()},{top:!0}).on("keyup.hotkeys",()=>{if(i)return i=!1,t.e.stopPropagation("keyup"),!1},{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}constructor(){super(...arguments),this.onKeyPress=t=>{let i=this.specialKeys[t.which],n=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[i||n];return["alt","ctrl","shift","meta"].forEach(n=>{t[n+"Key"]&&i!==n&&o.push(n)}),(0,s.normalizeKeyAliases)(o.join("+"))},this.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}}}r.pluginSystem.add("hotkeys",l)},16233:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(12153),a=n(6441),l=n(72337);s.Icon.set("hr",l.default),a.Config.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},r.pluginSystem.add("hr",function(t){t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",()=>{let i=t.createInside.element("hr");t.s.insertNode(i,!1,!1);let n=o.Dom.closest(i.parentElement,o.Dom.isBlock,t.editor);n&&o.Dom.isEmpty(n)&&n!==t.editor&&(o.Dom.after(n,i),o.Dom.safeRemove(n));let r=o.Dom.next(i,o.Dom.isBlock,t.editor,!1);return r||(r=t.createInside.element(t.o.enter),o.Dom.after(i,r)),t.s.setCursorIn(r),!1})})},72337:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '},50963:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.iframeBaseUrl="",o.Config.prototype.iframeTitle="Jodit Editor",o.Config.prototype.iframeDoctype="<!DOCTYPE html>",o.Config.prototype.iframeDefaultSrc="about:blank",o.Config.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',o.Config.prototype.iframeCSSLinks=[],o.Config.prototype.iframeSandbox=null},77469:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(21537);n(50963),r.pluginSystem.add("iframe",function(t){let i=t.options;t.e.on("afterSetMode",()=>{t.isEditorMode()&&t.s.focus()}).on("generateDocumentStructure.iframe",(t,n)=>{let o=t||n.iframe.contentWindow.document;if(o.open(),o.write(i.iframeDoctype+`<html dir="${i.direction}" class="jodit" lang="${(0,s.defaultLanguage)(i.language)}">`+"<head>"+`<title>${i.iframeTitle}</title>`+(i.iframeBaseUrl?`<base href="${i.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),o.close(),i.iframeCSSLinks&&i.iframeCSSLinks.forEach(t=>{let i=o.createElement("link");(0,s.attr)(i,"rel","stylesheet"),(0,s.attr)(i,"href",t),o.head&&o.head.appendChild(i)}),i.iframeStyle){let t=o.createElement("style");t.innerHTML=i.iframeStyle,o.head&&o.head.appendChild(t)}}).on("createEditor",()=>{if(!i.iframe)return;let n=t.c.element("iframe");n.style.display="block",n.src="about:blank",n.className="jodit-wysiwyg_iframe",(0,s.attr)(n,{allowtransparency:"true",tabindex:i.tabIndex.toString(),frameborder:"0"}),null!=i.iframeSandbox&&(0,s.attr)(n,"sandbox",i.iframeSandbox),t.workplace.appendChild(n),t.iframe=n;let r=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,s.callPromise)(r,()=>{if(!t.iframe)return!1;let n=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;let r=i.editHTMLDocumentMode,a=()=>{(0,s.attr)(n.body,"contenteditable",t.getMode()!==o.MODE_SOURCE&&!t.getReadOnly()||null)},l=t=>{let i=/<body.*<\/body>/im,n="{%%BODY%%}",o=i.exec(t);return o&&(t=t.replace(i,n).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(n,o[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),t};if(r){let i=t.element.tagName;if("TEXTAREA"!==i&&"INPUT"!==i)throw(0,s.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",()=>l(t.o.iframeDoctype+n.documentElement.outerHTML)).on("beforeSetNativeEditorValue",({value:i})=>!t.isLocked&&(/<(html|body)/i.test(i)?l(n.documentElement.outerHTML)!==l(i)&&(n.open(),n.write(t.o.iframeDoctype+l(i)),n.close(),t.editor=n.body,t.e.fire("safeHTML",t.editor),a(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):n.body.innerHTML=i,!0),{top:!0})}if(t.editor=n.body,t.e.on("afterSetMode afterInit afterAddPlace",a),"auto"===i.height){n.documentElement&&(n.documentElement.style.overflowY="hidden");let o=t.async.throttle((...n)=>{t.async.requestAnimationFrame(()=>{if(t.editor&&t.iframe&&"auto"===i.height){let i=t.ew.getComputedStyle(t.editor),n=parseInt(i.marginTop||"0",10)+parseInt(i.marginBottom||"0",10);(0,s.css)(t.iframe,"height",t.editor.offsetHeight+n)}})},t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",o).on([t.iframe,t.ew,n.documentElement],"load",o).on(n,"readystatechange DOMContentLoaded",o),"function"==typeof ResizeObserver){let i=new ResizeObserver(o);i.observe(n.body),t.e.on("beforeDestruct",()=>{i.disconnect()})}}return n.documentElement&&t.e.on(n.documentElement,"mousedown touchend",()=>{t.s.isFocused()||(t.s.focus(),t.editor===n.body&&t.s.setCursorIn(n.body))}).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",i=>{var n;null==(n=t.events)||n.fire(t.ow,i)}),!1})})})},85745:function(t,i,n){"use strict";n(6441).Config.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},80763:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(580),a=n(21537),l=n(50911);function u(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}n(85745);var c=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let d="__jodit_imageprocessor_binded",h=d+"blob-id";class p extends l.Plugin{afterInit(t){}beforeDestruct(t){let i=(0,r.cached)(t,"buffer"),n=null==i?void 0:i.get(h);if(i&&n){for(let t of Object.keys(n))URL.revokeObjectURL(t);i.delete(h)}}onAfterGetValueFromEditor(t,i){if(i!==o.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){let{jodit:i}=this;if(!i.o.imageProcessor.replaceDataURIToBlobIdInView)return;let n=i.buffer.get(h);if(n)for(let i of Object.keys(n))for(;t.value.includes(i);)t.value=t.value.replace(i,n[i])}afterChange(t){var i;return(i=function*(){let{jodit:t}=this;t.editor&&(0,a.$$)("img",t.editor).forEach(i=>{(0,a.dataBind)(i,d)||((0,a.dataBind)(i,d,!0),i.complete||t.e.on(i,"load",function n(){var o;t.isInDestruct||null==(o=t.e)||o.fire("resize"),t.e.off(i,"load",n)}),i.src&&/^data:/.test(i.src)&&function(t,i){if(!t.o.imageProcessor.replaceDataURIToBlobIdInView||"u"<typeof ArrayBuffer||"u"<typeof URL)return;let n=i.src,o=function(t){let i=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(i.length),r=new Uint8Array(o);for(let t=0;t<i.length;t++)r[t]=i.charCodeAt(t);return new Blob([o],{type:n})}(n);i.src=URL.createObjectURL(o),t.e.fire("internalUpdate");let{buffer:r}=t,s=r.get(h)||{};s[i.src]=n,t.buffer.set(h,s)}(t,i),t.e.on(i,"mousedown touchstart",()=>{t.s.select(i)}))})},function(){var t=this,n=arguments;return new Promise(function(o,r){var s=i.apply(t,n);function a(t){u(s,o,r,a,l,"next",t)}function l(t){u(s,o,r,a,l,"throw",t)}a(void 0)})}).call(this)}}c([(0,r.watch)(":afterGetValueFromEditor")],p.prototype,"onAfterGetValueFromEditor",null),c([(0,r.watch)(":beforeSetElementValue")],p.prototype,"onBeforeSetElementValue",null),c([(0,r.watch)([":change",":afterInit",":changePlace"]),(0,r.debounce)()],p.prototype,"afterChange",null),s.pluginSystem.add("imageProcessor",p)},97536:function(t,i,n){"use strict";n(6441).Config.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0}},3215:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(20356),u=n(62843);n(97536);var c=n(59436),d=n(53636),h=n(10263),p=n(94575),f=n(34755);function m(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}var g=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class b extends l.Plugin{get form(){return new c.UIImagePropertiesForm(this.j,this.state,this.activeTabState,{openImageEditor:()=>(0,d.openImageEditorDialog)(this.j,this.state),openImagePopup:t=>(0,h.openImagePopup)(this.j,this.dialog,this.state,t)})}get dialog(){let{j:t}=this,i=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),n=this.__buttons;return n.check.onAction(()=>{(0,f.applyValuesToImage)(t,this.state,this.state.sourceImage),t.synchronizeValues(),i.close()}),n.remove.onAction(()=>{t.s.removeNode(this.state.sourceImage),i.close()}),n.cancel.onAction(()=>{i.close()}),i.setHeader(t.i18n("Image properties")),i.setContent(this.form),i.setFooter([[n.cancel,n.remove],n.check]),t.e.on(i,"afterClose",()=>{this.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(this.state.sourceImage)}),i.setSize(t.o.image.dialogWidth),(0,a.markOwner)(t,i.container),i}get __buttons(){let{j:t}=this;return{check:(0,u.Button)(t,"ok","Apply","primary"),remove:(0,u.Button)(t,"bin","Delete"),cancel:(0,u.Button)(t,"cancel","Cancel")}}open(){return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((t,i)=>(0,p.readValuesFromImage)(this.j,this.state).then(t,i)).catch(t=>{(0,a.isAbortError)(t)||this.dialog.message.error(t.message)}).finally(()=>this.__unlock()),!1}__lock(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(t=>t.state.disabled=!0)}__unlock(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(t=>t.state.disabled=!1)}afterInit(t){let i=this;t.e.on("afterConstructor changePlace",()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",n=>{let o=n.target;if(r.Dom.isTag(o,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",o))return;i.state.sourceImage=o,i.state.image=o.cloneNode(!0),t.o.readonly||(n.stopImmediatePropagation(),n.preventDefault(),i.open())}else n.stopImmediatePropagation(),t.s.select(o)})}).on("openImageProperties.imageproperties",t=>{i.state.sourceImage=t,this.state.image=t.cloneNode(!0),this.open()})}onStateValuesImageSrcChange(){var t;return(t=function*(){let{image:t,values:i}=this.state;if(t.src)try{this.__lock();try{yield t.decode()}catch(t){}if(this.state.sizeIsLocked&&(0,a.isNumeric)(i.imageWidth)){let t=parseFloat(i.imageWidth.toString());i.imageHeight=Math.round(t/this.state.ratio)}this.j.e.fire("updateImageProperties.imageproperties",t)}catch(t){this.j.alert(t.message)}finally{this.__unlock()}},function(){var i=this,n=arguments;return new Promise(function(o,r){var s=t.apply(i,n);function a(t){m(s,o,r,a,l,"next",t)}function l(t){m(s,o,r,a,l,"throw",t)}a(void 0)})}).call(this)}beforeDestruct(t){var i,n,r;Object.values(null!=(i=(0,o.cached)(this,"__buttons"))?i:{}).forEach(t=>t.destruct()),null==(n=(0,o.cached)(this,"dialog"))||n.destruct(),null==(r=(0,o.cached)(this,"form"))||r.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}constructor(){super(...arguments),this.state={image:new Image,sourceImage:new Image,get ratio(){const{naturalWidth:t,naturalHeight:i}=this.image;return t/i||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},this.activeTabState={activeTab:"Image"}}}g([o.cache],b.prototype,"form",null),g([o.cache],b.prototype,"dialog",null),g([o.cache],b.prototype,"__buttons",null),g([(0,o.watch)("state.image")],b.prototype,"onStateValuesImageSrcChange",null),s.pluginSystem.add("imageProperties",b)},51642:function(t,i,n){"use strict";n.d(i,{readAlign:function(){return r}});var o=n(41180);function r(t,i){t.style.cssFloat&&-1!==["left","right"].indexOf(t.style.cssFloat.toLowerCase())?i.align=(0,o.css)(t,"float"):"block"===(0,o.css)(t,"display")&&"auto"===t.style.marginLeft&&"auto"===t.style.marginRight?i.align="center":i.align=""}},94575:function(t,i,n){"use strict";n.d(i,{readValuesFromImage:function(){return c}});var o=n(29960),r=n(51642),s=n(75595),a=n(47749),l=n(32566);function u(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function c(t,i){var n;return(n=function*(){let{sourceImage:n,values:u}=i;return(0,r.readAlign)(n,u),u.borderRadius=parseInt(n.style.borderRadius||"0",10)||0,u.id=(0,o.attr)(n,"id")||"",u.imageTitle=(0,o.attr)(n,"title")||"",u.imageAlt=(0,o.attr)(n,"alt")||"",u.style=(0,o.attr)(n,"style")||"",u.classes=((0,o.attr)(n,"class")||"").replace(/jodit_focused_image[\s]*/,""),(0,a.readMargins)(n,u,i),(0,s.readLink)(i,t,u),u.imageSrc=(0,o.attr)(n,"src")||"",(0,l.readSizes)(n,u,i)},function(){var t=this,i=arguments;return new Promise(function(o,r){var s=n.apply(t,i);function a(t){u(s,o,r,a,l,"next",t)}function l(t){u(s,o,r,a,l,"throw",t)}a(void 0)})})()}},75595:function(t,i,n){"use strict";n.d(i,{readLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n){let s=o.Dom.closest(t.sourceImage,"a",i.editor);s?(n.imageLink=(0,r.attr)(s,"href")||"",n.imageLinkOpenInNewTab="_blank"===(0,r.attr)(s,"target")):(n.imageLink="",n.imageLinkOpenInNewTab=!1)}},47749:function(t,i,n){"use strict";n.d(i,{readMargins:function(){return r}});var o=n(12475);function r(t,i,n){let r=!0,s=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(n=>{let a=t.style.getPropertyValue((0,o.kebabCase)(n));if(!a){s=!0,i[n]=0;return}/^[0-9]+(px)?$/.test(a)&&(a=parseInt(a,10)),i[n]=a,(s&&i[n]||r&&"marginTop"!==n&&i[n]!==i.marginTop)&&(r=!1)}),n.marginIsLocked=r}},32566:function(t,i,n){"use strict";n.d(i,{readSizes:function(){return u}});var o=n(29807),r=n(29960),s=n(41180),a=n(14415);function l(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function u(t,i,n){var u;return(u=function*(){try{yield t.decode()}catch(t){}let l=(0,s.css)(t,"width",!0)||(0,r.attr)(t,"width")||!1,u=(0,s.css)(t,"height",!0)||(0,r.attr)(t,"height")||!1;i.imageWidth=!1!==l?(0,a.normalSizeFromString)(l):t.offsetWidth||t.naturalWidth,(0,o.isNumeric)(i.imageWidth)?i.imageHeight=!1!==u?(0,a.normalSizeFromString)(u):t.offsetHeight||t.naturalHeight:i.imageHeight=u||"";let{imageWidth:c,imageHeight:d}=i,h=parseFloat(c.toString());if(!(0,o.isNumeric)(c)||!(0,o.isNumeric)(d)){n.sizeIsLocked=!1;return}if(!1===u){i.imageHeight=Math.round(h/n.ratio),n.sizeIsLocked=!0;return}n.sizeIsLocked=1>Math.abs(h-parseFloat(d.toString())*n.ratio)},function(){var t=this,i=arguments;return new Promise(function(n,o){var r=u.apply(t,i);function s(t){l(r,n,o,s,a,"next",t)}function a(t){l(r,n,o,s,a,"throw",t)}s(void 0)})})()}},59436:function(t,i,n){"use strict";n.d(i,{UIImagePropertiesForm:function(){return p}});var o=n(65478),r=n(87325),s=n(21537),a=n(62405),l=n(12153),u=n(92762),c=n(35105),d=n(29827),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let p=class t extends a.UIGroup{className(){return"UIImagePropertiesForm"}appendChildToContainer(){}getElm(t){let i=super.getElm(t);if(i)return i;for(let i of this.elements){let n=i.getElm(t);if(n)return n}return null}render(){return`<form>
129
129
  <div class="jodit-grid jodit-grid_xs-column">
130
130
  <div class="jodit_col-lg-2-5 jodit_col-xs-5-5">
131
131
  <div class="&__view-box">
@@ -204,7 +204,7 @@
204
204
  >
205
205
  <label>~Border radius~</label>
206
206
  <input type="number" class="jodit-input &__borderRadius"/>
207
- </div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let t=this.getElm("align");this.state.values.align=t.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let t=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(t.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let t=this.getElm("id");this.state.values.id=t.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let t=this.getElm("style");this.state.values.style=t.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let t=this.getElm("classes");this.state.values.classes=t.value}onLockMarginClick(t){this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}onChangeMarginIsLocked(){let t=this.getElm("marginBottom"),i=this.getElm("marginRight"),n=this.getElm("marginLeft"),o=this.getElm("lockMargin");if([i,t,n].forEach(t=>{(0,u.attr)(t,"disabled",this.state.marginIsLocked||null)}),o.innerHTML=d.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let t=this.state.values.marginTop;this.state.values.marginRight=t,this.state.values.marginBottom=t,this.state.values.marginLeft=t}}onStateValuesMarginChange(){let t=this.getElm("marginTop"),i=this.getElm("marginRight"),n=this.getElm("marginBottom"),o=this.getElm("marginLeft");t.value=this.state.values.marginTop.toString(),i.value=this.state.values.marginRight.toString(),n.value=this.state.values.marginBottom.toString(),o.value=this.state.values.marginLeft.toString()}onChangeMargin(){let t=this.getElm("marginTop"),i=this.getElm("marginRight"),n=this.getElm("marginBottom"),o=this.getElm("marginLeft");this.state.values.marginTop=(0,h.normalSizeFromString)(t.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,h.normalSizeFromString)(i.value),this.state.values.marginBottom=(0,h.normalSizeFromString)(n.value),this.state.values.marginLeft=(0,h.normalSizeFromString)(o.value))}hideFieldByOptions(){let t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([i,n])=>{let o=this.getElm(n);(0,a.css)(o,"display",t[i]?null:"none")})}constructor(t,i,n){super(t,{availableClasses:t.o.image.availableClasses}),this.state=i,this.handlers=n}};p([(0,r.hook)("ready"),(0,s.watch)("state.values.align")],f.prototype,"onStateAlignChange",null),p([(0,s.watch)("align:change")],f.prototype,"onChangeAlign",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.borderRadius")],f.prototype,"onStateValuesBorderRadiusChange",null),p([(0,s.watch)("borderRadius:change")],f.prototype,"onChangeBorderRadius",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.id")],f.prototype,"onStateValuesIdChange",null),p([(0,s.watch)("id:change")],f.prototype,"onChangeId",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.style")],f.prototype,"onStateValuesStyleChange",null),p([(0,s.watch)("style:change")],f.prototype,"onChangeStyle",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.classes")],f.prototype,"onStateValuesClassesChange",null),p([(0,s.watch)("classes:change")],f.prototype,"onChangClasses",null),p([(0,s.watch)("lockMargin:click")],f.prototype,"onLockMarginClick",null),p([(0,r.hook)("ready"),(0,s.watch)("state.marginIsLocked")],f.prototype,"onChangeMarginIsLocked",null),p([(0,r.hook)("ready"),(0,s.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],f.prototype,"onStateValuesMarginChange",null),p([(0,s.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],f.prototype,"onChangeMargin",null),p([(0,r.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=p([o.component],f)},53636:function(t,i,n){"use strict";n.d(i,{openImageEditorDialog:function(){return a}});var o=n(70799),r=n(29960),s=n(50050);function a(t,i){let n=(0,r.attr)(i.image,"src")||"",a=t.c.element("a"),l=()=>{if(a.host!==location.host)return void t.confirm("You can only edit your own images. Download this image on the host?",n=>{n&&t.uploader&&t.uploader.uploadRemoteImage(a.href.toString(),n=>{t.alert("The image has been successfully uploaded to the host!",()=>{(0,o.isString)(n.newfilename)&&(i.values.imageSrc=n.baseurl+n.newfilename)})},i=>{t.alert("There was an error loading %s",i.message)})})};a.href=n,t.filebrowser.dataProvider.getPathByUrl(a.href.toString()).then(o=>{s.openImageEditor.call(t.filebrowser,a.href,o.name,o.path,o.source,t=>{let o=new Date().getTime(),r=t||n;i.values.imageSrc=r+(-1!==r.indexOf("?")?"":"?")+"&_tmp="+o.toString()},i=>{t.alert(i.message)})}).catch(i=>{t.alert(i.message,l)})}},10263:function(t,i,n){"use strict";n.d(i,{openImagePopup:function(){return u}});var o=n(68345),r=n(5700),s=n(56917),a=n(34793);function l(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function u(t,i,n,u){let c=new s.Popup(i),d=()=>{c.close(),c.destruct()};c.setContent((0,a.FileSelectorWidget)(t,{upload:t=>{t.files&&t.files.length&&(n.values.imageSrc=t.baseurl+t.files[0]),d()},filebrowser:t=>{var i;return(i=function*(){t&&(0,o.isArray)(t.files)&&t.files.length&&(n.values.imageSrc=t.files[0],d())},function(){var t=this,n=arguments;return new Promise(function(o,r){var s=i.apply(t,n);function a(t){l(s,o,r,a,u,"next",t)}function u(t){l(s,o,r,a,u,"throw",t)}a(void 0)})})()}},n.image,d)).open(()=>(0,r.position)(u))}},14415:function(t,i,n){"use strict";n.d(i,{normalSizeFromString:function(){return s},normalSizeToString:function(){return a}});var o=n(84767),r=n(49055);let s=t=>/^[-+]?[0-9.]+(px)?$/.test(t.toString())?parseFloat(t.toString()):t,a=t=>(0,o.isNumber)(t)?t?t+"px":t.toString():(t=(0,r.trim)(t),/^[0-9]+$/.test(t)?t+"px":t)},34755:function(t,i,n){"use strict";n.d(i,{applyValuesToImage:function(){return u}});var o=n(2748),r=n(43555),s=n(29615),a=n(14721),l=n(87602);function u(t,i,n){let{style:u,imageSrc:c,borderRadius:d,imageTitle:h,imageAlt:p,imageLink:f,imageWidth:m,imageHeight:g,marginTop:b,marginRight:v,marginBottom:y,marginLeft:_,imageLinkOpenInNewTab:C,align:w,classes:F,id:E}=i.values,k=t.o;(k.image.editStyle&&(0,r.attr)(n,"style",u||null),c)?((0,r.attr)(n,"src",c),n.style.borderRadius=d?d+"px":"",(0,r.attr)(n,"title",h||null),(0,r.attr)(n,"alt",p||null),(0,s.applyLink)(t,n,f,C),(0,l.applySize)(n,m,g,i.sizeIsLocked),t.o.image.editMargins&&(0,a.applyMargin)(t,b,v,y,_,n,i.marginIsLocked),k.image.editClass&&(0,r.attr)(n,"class",F||null),k.image.editId&&(0,r.attr)(n,"id",E||null),k.image.editAlign&&(0,r.hAlignElement)(n,w)):o.Dom.safeRemove(n)}},29615:function(t,i,n){"use strict";n.d(i,{applyLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n,s){let a=o.Dom.closest(i,"a",t.editor);if(n){if(a||(a=o.Dom.wrap(i,"a",t.createInside)),(0,r.attr)(a,"href",n),(0,r.attr)(a,"target",s?"_blank":null),!s){let t=((0,r.attr)(a,"rel")||"").split(/\s+/).filter(t=>t&&"noopener"!==t&&"noreferrer"!==t);(0,r.attr)(a,"rel",t.length?t.join(" "):null)}}else a&&a.parentNode&&a.parentNode.replaceChild(i,a)}},14721:function(t,i,n){"use strict";n.d(i,{applyMargin:function(){return s}});var o=n(41180),r=n(14415);function s(t,i,n,s,a,l,u){let c=[i,n,s,a],d=(t,i)=>{let n=(0,o.css)(l,t),s=(0,r.normalSizeToString)(i);n.toString()!==s.toString()&&(0,o.css)(l,t,s)};if(u)d("margin",i);else{let t=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((i,n)=>{d(t[n],i)})}}},87602:function(t,i,n){"use strict";n.d(i,{applySize:function(){return l}});var o=n(29807),r=n(29960),s=n(41180),a=n(14415);function l(t,i,n,l){if(i!==t.offsetWidth||n!==t.offsetHeight){let u=i?(0,a.normalSizeToString)(i):null,c=n?(0,a.normalSizeToString)(n):null;(0,s.css)(t,{width:u,height:u&&l?null:c}),(0,r.attr)(t,"width",u&&(0,o.isNumeric)(i)&&(0,r.attr)(t,"width")?u:null),(!(0,r.attr)(t,"width")||l)&&(c=null),(0,r.attr)(t,"height",c)}}},23531:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(21537),a=n(29960),l=n(12153),u=n(6441),c=n(92762),d=n(25179);function h(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}l.Icon.set("image",d.default),u.Config.prototype.controls.image={popup:(t,i,n)=>{let r=null;return i&&!o.Dom.isText(i)&&o.Dom.isHTMLElement(i)&&(o.Dom.isTag(i,"img")||(0,s.$$)("img",i).length)&&(r=o.Dom.isTag(i,"img")?i:(0,s.$$)("img",i)[0]),t.s.save(),(0,c.FileSelectorWidget)(t,{filebrowser:i=>{t.s.restore(),i.files&&i.files.forEach(n=>t.s.insertImage(i.baseurl+n,null,t.o.imageDefaultWidth)),n()},upload:!0,url:(i,o)=>{var s;return(s=function*(){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(i)&&(i="//"+i);let s=r||t.createInside.element("img");(0,a.attr)(s,"src",i),(0,a.attr)(s,"alt",o),r||(yield t.s.insertImage(s,null,t.o.imageDefaultWidth)),n()},function(){var t=this,i=arguments;return new Promise(function(n,o){var r=s.apply(t,i);function a(t){h(r,n,o,a,l,"next",t)}function l(t){h(r,n,o,a,l,"throw",t)}a(void 0)})})()}},r,n)},tags:["img"],tooltip:"Insert Image"},r.pluginSystem.add("image",function(t){t.registerButton({name:"image",group:"media"})})},25179:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> '},54389:function(t,i,n){"use strict";var o=n(22732),r=n(12153),s=n(6441),a=n(78614),l=n(86835),u=n(302);r.Icon.set("indent",a.default).set("outdent",l.default),s.Config.prototype.controls.indent={tooltip:"Increase Indent"},s.Config.prototype.controls.outdent={isDisabled:t=>{var i;let n=t.s.current();if(!n)return!0;if(null==(i=t.o.tab)?void 0:i.tabInsideLiInsertNewList){let i=o.Dom.closest(n,"li",t.editor);if(i){let n=o.Dom.closest(i,["ul","ol"],t.editor);if(n&&o.Dom.closest(n,"li",t.editor))return!1}}let r=o.Dom.closest(n,o.Dom.isBlock,t.editor);if(r){let i=(0,u.getKey)(t.o.direction,r);return!r.style[i]||0>=parseInt(r.style[i],10)}return!0},tooltip:"Decrease Indent"},s.Config.prototype.indentMargin=10},302:function(t,i,n){"use strict";n.d(i,{getKey:function(){return r}});var o=n(2748);let r=(t,i)=>`${o.Dom.isCell(i)?"padding":"margin"}${"rtl"===t?"Right":"Left"}`},78614:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},86835:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},70045:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(43555);n(54389);var l=n(302);let u=(t,i,n,o)=>{if(!i||t.has(i))return;let r=(0,l.getKey)(n.o.direction,i);t.add(i);let s=i.style[r]?parseInt(i.style[r],10):0;s+=n.o.indentMargin*("outdent"===o?-1:1),i.style[r]=s>0?s+"px":"",(0,a.attr)(i,"style")||(0,a.attr)(i,"style",null)};s.pluginSystem.add("indent",function(t){t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let i=i=>{let n=new Set,{enter:s,enterBlock:l}=t.o,c=s.toLowerCase()===o.BR,d=t.s.current();return c&&t.s.isCollapsed()&&d?u(n,r.Dom.wrapNextInline(d,l,t),t,i):(t.s.eachSelection(o=>{t.s.save();let d=!!o&&r.Dom.up(o,r.Dom.isBlock,t.editor);if(!d&&o&&(d=(0,a.call)(c?r.Dom.wrapNextInline:r.Dom.wrapInline,o,c?l:s.toLowerCase(),t)),!d)return t.s.restore(),!1;u(n,d,t,i),t.s.restore()}),t.synchronizeValues()),!1};t.registerCommand("indent",{exec:i,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:i,hotkeys:["ctrl+[","cmd+["]})})},46448:function(t,i,n){"use strict";n(73391),n(93183),n(66707),n(41107),n(93079),n(575),n(23399),n(96111),n(42263),n(77469),n(23531),n(93401),n(65517),n(64837),n(59451),n(18363),n(6687),n(45927),n(7309),n(43003),n(72253),n(65735)},24526:function(t,i,n){"use strict";var o=n(27613),r=n(12153),s=n(6441),a=n(61122),l=n(62e3),u=n(66789),c=n(20882),d=n(14306),h=n(24231),p=n(75393),f=n(14862),m=n(96257),g=n(9914),b=n(53696),v=n(33489);s.Config.prototype.toolbarInline=!0,s.Config.prototype.toolbarInlineForSelection=!1,s.Config.prototype.toolbarInlineDisableFor=[],s.Config.prototype.toolbarInlineDisabledButtons=["source"],r.Icon.set("addcolumn",h.default).set("addrow",p.default).set("merge",f.default).set("th",b.default).set("splitg",m.default).set("splitv",g.default).set("th-list",v.default),l.default.forEach(t=>{(0,o.isString)(t)||!t.name||s.Config.prototype.controls[t.name]||(s.Config.prototype.controls[t.name]=t)}),s.Config.prototype.popup={a:a.default,img:c.default,cells:l.default,toolbar:d.default,jodit:u.default,iframe:u.default,"jodit-media":u.default,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},61122:function(t,i,n){"use strict";var o=n(29960);i.default=[{name:"eye",tooltip:"Open link",exec:(t,i)=>{let n=(0,o.attr)(i,"href");i&&n&&/^(https?:|mailto:|tel:)/i.test(n.trim())&&!/^(javascript:|data:|vbscript:)/i.test(n.trim())&&t.ow.open(n)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},62e3:function(t,i,n){"use strict";var o=n(27613),r=n(41180);let s=t=>t.args&&(0,o.isString)(t.args[0])?t.args[0].toLowerCase():"";i.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(t,i,n)=>n,exec:(t,i,{control:n})=>{let o=s(n);t.getInstance("Table",t.o).getAllSelectedCells().forEach(t=>{(0,r.css)(t,"vertical-align","normal"===o?"":o)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:(t,i,{control:n})=>{if(!(0,o.isJoditObject)(t))return;if(!n.args)return!1;let r=s(n);t.execCommand(r,!1,i)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:(t,i,{control:n})=>{if(!(0,o.isJoditObject)(t))return;if(!n.args)return!1;let r=s(n);t.execCommand(r,!1,i)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:(t,i,{control:n})=>{if(!(0,o.isJoditObject)(t))return;if(!n.args)return!1;let r=s(n);t.execCommand(r,!1,i),t.e.fire("hidePopup")},tooltip:"Delete"}]},66789:function(t,i,n){"use strict";i.default=[{name:"bin",tooltip:"Delete",exec:(t,i)=>{i&&t.s.removeNode(i)}},n(20882).align]},20882:function(t,i,n){"use strict";n.d(i,{align:function(){return l}});var o=n(22732),r=n(70799),s=n(25726),a=n(41180);let l={name:"left",childTemplate:(t,i,n)=>n,list:["Left","Right","Center","Normal"],exec:(t,i,{control:n})=>{if(!o.Dom.isTag(i,new Set(["img","jodit","jodit-media"])))return;let a=n.args&&(0,r.isString)(n.args[0])?n.args[0].toLowerCase():"";if(!a)return!1;(0,s.hAlignElement)(i,a),o.Dom.isTag(i,new Set(["jodit","jodit-media"]))&&i.firstElementChild&&(0,s.hAlignElement)(i.firstElementChild,a),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};i.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec:(t,i)=>{i&&t.s.removeNode(i)}},{name:"pencil",exec(t,i){"img"===i.tagName.toLowerCase()&&t.e.fire("openImageProperties",i)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:(t,i,{control:n})=>{if(!o.Dom.isTag(i,"img"))return;let s=n.args&&(0,r.isString)(n.args[0])?n.args[0].toLowerCase():"";if(!s)return!1;(0,a.css)(i,"vertical-align","normal"===s?"":s),t.e.fire("recalcPositionPopup")}},l]},14306:function(t,i){"use strict";i.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},24231:function(t,i){"use strict";i.default='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> '},75393:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> '},14862:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> '},96257:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},9914:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},33489:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> '},53696:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> '},93401:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(21537),l=n(50911),u=n(67510),c=n(61259),d=n(21491);n(24526);var h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class p extends l.Plugin{get popup(){return new c.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let i=this.elmsList,n=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,i,this.j.editor);if(n&&this.canShowPopupForType(n.nodeName.toLowerCase()))return this.showPopup(()=>(0,a.position)(n,this.j),n.nodeName.toLowerCase(),n),!1}showPopup(t,i,n){if(i=i.toLowerCase(),!this.canShowPopupForType(i))return!1;if(this.type!==i||n!==this.previousTarget){let t;this.previousTarget=n;let o=this.j.o.popup[i];if(t=(0,a.isFunction)(o)?o(this.j,n,this.popup.close):o,(0,a.isArray)(t)){let i=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(i.length?t.filter(t=>{let n=(0,a.isString)(t)?t:t.name;return!i.includes(null!=n?n:"")}):t,n),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container}this.popup.setContent(t),this.type=i}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,a.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let i=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!i&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,a.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",i=>{if(this.toolbar===i){let i=this.toolbar.getButtonsNames();return(0,a.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let n=(0,a.isString)(t)?t:t.name;return n&&"|"!==n&&"\n"!==n&&!i.includes(n)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(t,i,n)=>{this.showPopup(i,n||((0,a.isString)(t)?t:t.nodeName),(0,a.isString)(t)?void 0:t)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).on([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).on("closeAllPopups",this.__onCloseAllPopups),this.addListenersForElements()}__onDocumentMouseDown(t){this.popup.isOpened&&"selection"===this.type&&t.target&&u.UIElement.closestElement(t.target,c.Popup)&&(this.__reopenSelectionPopup=!0)}__onCloseAllPopups(){!this.__reopenSelectionPopup||(this.__reopenSelectionPopup=!1,this.j.o.toolbarInlineForSelection&&this.j.async.setTimeout(()=>{let t=this.j.s.sel;t&&!t.isCollapsed&&this.showPopup(()=>this.__selectionBound(),"selection")},1))}__selectionBound(){let t=this.j.s.range.getBoundingClientRect(),{left:i,top:n}=t;if(this.j.iframe){let t=(0,a.position)(this.j.iframe,this.j,!0);i+=t.left,n+=t.top}return{left:i,top:n,width:t.width,height:t.height}}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&u.UIElement.closestElement(t.target,c.Popup))return;let{snapRange:i}=this,{range:n}=this.j.s;(!i||n.collapsed||n.startContainer!==i.startContainer||n.startOffset!==i.startOffset||n.endContainer!==i.endContainer||n.endOffset!==i.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let t="selection",i=this.j.s.sel,n=this.j.s.range;if((null==i?void 0:i.isCollapsed)||this.isSelectedTarget(n)){this.type===t&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>this.__selectionBound(),t)}isSelectedTarget(t){let i=t.startContainer;return r.Dom.isElement(i)&&i===t.endContainer&&r.Dom.isTag(i.childNodes[t.startOffset],new Set((0,a.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).off([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).off("closeAllPopups",this.__onCloseAllPopups),this.removeListenersForElements()}_eventsList(){let t=this.elmsList;return t.map(t=>(0,a.camelCase)(`click_${t}`)).concat(t.map(t=>(0,a.camelCase)(`touchstart_${t}`))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup(()=>{if(t)return t;let{range:i}=this.j.s;return i.getBoundingClientRect()},"toolbar")}constructor(){super(...arguments),this.type=null,this.__reopenSelectionPopup=!1,this.snapRange=null,this.elmsList=(0,a.keys)(this.j.o.popup,!1).filter(t=>!this.isExcludedTarget(t))}}p.requires=["select"],h([o.cache],p.prototype,"popup",null),h([o.cache],p.prototype,"toolbar",null),h([o.autobind],p.prototype,"onClick",null),h([(0,o.wait)(t=>!t.j.isLocked)],p.prototype,"showPopup",null),h([(0,o.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),o.autobind],p.prototype,"hidePopup",null),h([(0,o.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),h([o.autobind],p.prototype,"__onDocumentMouseDown",null),h([o.autobind],p.prototype,"__onCloseAllPopups",null),h([o.autobind],p.prototype,"onSelectionStart",null),h([o.autobind],p.prototype,"onSelectionEnd",null),h([(0,o.debounce)(t=>t.defaultTimeout)],p.prototype,"onSelectionChange",null),h([o.autobind],p.prototype,"showInlineToolbar",null),s.pluginSystem.add("inlinePopup",p)},76295:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(21537),a=n(25726),l=n(41180),u=n(12153),c=n(6441),d=n(5567);u.Icon.set("justify",d.default),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(t,i){let n=i.control,r=t.s.current();if(r){let a=o.Dom.closest(r,o.Dom.isBlock,t.editor)||t.editor,u=(0,l.css)(a,"text-align").toString();n.defaultValue&&-1!==n.defaultValue.indexOf(u)&&(u="left");let{list:c,data:d}=n;d&&d.currentValue!==u&&c&&((0,s.isPlainObject)(c)?c[u]:c.includes(u))&&(t.o.textIcons||"select"===n.component?i.state.text=u:i.state.icon.name=u,d.currentValue=u)}},isActive:(t,i)=>{let n=t.s.current();if(!n||!i.control.defaultValue)return!1;let r=o.Dom.closest(n,o.Dom.isBlock,t.editor)||t.editor;return -1===i.control.defaultValue.indexOf((0,l.css)(r,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},r.pluginSystem.add("justify",function(t){t.registerButton({name:"align",group:"indent"});let i=i=>(t.s.focus(),t.s.eachSelection(n=>{if(!n)return;let r=o.Dom.up(n,o.Dom.isBlock,t.editor);r||(r=o.Dom.wrapInline(n,t.o.enterBlock,t)),(0,a.alignElement)(i,r)}),!1);t.registerCommand("justifyfull",i),t.registerCommand("justifyright",i),t.registerCommand("justifyleft",i),t.registerCommand("justifycenter",i)})},5567:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '},59483:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(50911);class u extends l.Plugin{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){var i;if(t.key!==o.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:n,endOffset:r}=this.j.selection.range;if(s.Dom.isText(n)&&(null==(i=n.nodeValue)?void 0:i.length)===r){let{parentNode:t}=n;s.Dom.isInlineBlock(t)&&!s.Dom.findNotEmptyNeighbor(t,!1,this.j.editor)&&s.Dom.after(t,this.j.createInside.text(o.NBSP_SPACE))}}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":keydown")],u.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",u)},57288:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},91071:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(580),a=n(50911);n(57288);var l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends a.Plugin{afterInit(t){let{limitWords:i,limitChars:n}=t.o;if(t&&(i||n)){let i=null;t.e.off(".limit").on("beforePaste.limit",()=>{i=t.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&i)return t.history.snapshot.restore(i),t.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(t){return!(t&&(o.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){var i;let{jodit:n}=this,{limitWords:r,limitChars:s}=n.o,a=n.o.limitHTML?n.value:n.text,l=this.__splitWords(a);if(r&&(i=l.length,t?i>r:i>=r))return n.e.fire("denyWords.limit limit.limit"),!0;let u=n.o.countTextSpaces?a.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,"").length:l.join("").length,c=!!(s&&(t?u>s:u>=s));return c&&n.e.fire("denyChars.limit limit.limit"),c}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,i){let{jodit:n}=this;this.__shouldDenyInput(!0)&&(n.value=i)}__splitWords(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(t=>t.length)}beforeDestruct(t){t.e.off(".limit")}}l([r.autobind],u.prototype,"checkPreventKeyPressOrPaste",null),l([r.autobind],u.prototype,"checkPreventChanging",null),s.pluginSystem.add("limit",u)},26295:function(t,i,n){"use strict";var o=n(21537),r=n(12153),s=n(6441),a=n(53259);s.Config.prototype.defaultLineHeight=null,r.Icon.set("line-height",a.default),s.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,i,{control:n})=>(0,o.memorizeExec)(t,i,{control:n},t=>t)}},80084:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ارتفاع الخط"}},76725:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"V\xfdška č\xe1ry"}},71724:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Zeilenh\xf6he"}},46295:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altura de la l\xednea"}},70190:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ارتفاع خط"}},67206:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Rivin korkeus"}},85723:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Hauteur de ligne"}},61072:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"גובה שורה"}},30592:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Vonal magass\xe1ga"}},89194:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Tinggi baris"}},28143:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return u},fr:function(){return c},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},pl:function(){return y},pt_br:function(){return _},ru:function(){return C},tr:function(){return w},ua:function(){return F},zh_cn:function(){return E},zh_tw:function(){return k}});var o=n(80084),r=n(76725),s=n(71724),a=n(46295),l=n(70190),u=n(67206),c=n(85723),d=n(61072),h=n(30592),p=n(89194),f=n(51834),m=n(5082),g=n(80105),b=n(26556),v=n(98689),y=n(42727),_=n(43646),C=n(53822),w=n(41817),F=n(69625),E=n(28973),k=n(19033)},51834:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altezza linea"}},5082:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ラインの高さ"}},80105:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"선 높이"}},26556:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Зураасны өндөр"}},98689:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Lijnhoogte"}},42727:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Wysokość linii"}},43646:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altura da linha"}},53822:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Высота линии"}},41817:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"\xc7izgi y\xfcksekliği"}},69625:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Висота лінії"}},28973:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"线高"}},19033:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"行高"}},61019:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(50911);n(26295);var u=n(28143);class c extends l.Plugin{afterInit(t){(0,a.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,i,n){let o,{s,createInside:l,editor:u,o:c}=this.j;s.isFocused()||s.focus(),s.save();let d=t=>{let i=r.Dom.closest(t,r.Dom.isBlock,u);i||(i=r.Dom.wrap(t,c.enter,l));let s=(0,a.css)(i,"lineHeight");void 0===o&&(o=s.toString()!==n.toString()),(0,a.css)(i,"lineHeight",o?n:null)};try{if(s.isCollapsed()){let t=l.fake();s.insertNode(t,!1,!1),d(t),r.Dom.safeRemove(t)}else s.eachSelection(d)}finally{s.restore()}}beforeDestruct(t){(0,a.css)(t.editor,{lineHeight:null})}constructor(t){super(t),this.buttons=[{name:"lineHeight",group:"font"}],(0,s.extendLang)(u)}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],c.prototype,"applyLineHeight",null),s.pluginSystem.add("lineHeight",c)},53259:function(t,i){"use strict";i.default='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '},5827:function(t,i,n){"use strict";var o=n(2748),r=n(12153),s=n(6441),a=n(27190),l=n(42345),u=n(10411);s.Config.prototype.link={formTemplate:u.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,openInNewTabCheckboxDefaultChecked:!1,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},r.Icon.set("link",a.default).set("unlink",l.default),s.Config.prototype.controls.unlink={exec:(t,i)=>{let n=o.Dom.closest(i,"a",t.editor);n&&o.Dom.unwrap(n),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive:t=>{let i=t.s.current();return!!(i&&o.Dom.closest(i,"a",t.editor))},popup:(t,i,n)=>t.e.fire("generateLinkForm.link",i,n),tags:["a"],tooltip:"Insert link"}},27190:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> '},42345:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> '},65517:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(21537),l=n(50911);n(5827);var u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class c extends l.Plugin{afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.__onDblClickOnLink),t.e.on(t.editor,"click.link",this.__onClickReadOnlyLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{let i=t.dlg({resizable:!1}),n=this.__generateForm(t.s.current(),()=>{i.close()});n.container.classList.add("jodit-dialog_alert"),i.setContent(n),i.open(),t.async.requestIdleCallback(()=>{let{url_input:t}=(0,a.refs)(n.container);null==t||t.focus()})},hotkeys:t.o.link.hotkeys})}__onDblClickOnLink(t){if(!r.Dom.isTag(t.target,"a"))return;let i=(0,a.attr)(t.target,"href");i&&(location.href=i,t.preventDefault())}onProcessPasteLink(t,i){var n,o,r,s;let{jodit:l}=this;if((0,a.isURL)(i)&&l.o.link.processPastedLink){if(l.e.stopPropagation("processPaste"),l.o.link.processVideoLink){let t=(0,a.call)(null!=(o=null==(n=l.o.video)?void 0:n.parseUrlToVideoEmbed)?o:a.convertMediaUrlToVideoEmbed,i,{width:null==(r=l.o.video)?void 0:r.defaultWidth,height:null==(s=l.o.video)?void 0:s.defaultHeight});if(t!==i)return l.createInside.fromHTML(t)}if(l.s.isCollapsed()){let t=l.createInside.element("a");return(0,a.attr)(t,"href",i),t.textContent=i,l.e.fire("applyLink",l,t,null),t}return l.s.commitStyle({element:"a",attributes:{href:i}}),!0}}__generateForm(t,i){let n,{jodit:o}=this,s=o.i18n.bind(o),{openInNewTabCheckbox:l,openInNewTabCheckboxDefaultChecked:u,noFollowCheckbox:c,formTemplate:d,formClassName:h,modeClassName:p}=o.o.link,f=d(o),m=(0,a.isString)(f)?o.c.fromHTML(f,{target_checkbox_box:l,nofollow_checkbox_box:c}):f,g=r.Dom.isElement(m)?m:m.container,b=(0,a.refs)(g),{insert:v,unlink:y,content_input_box:_}=b,{target_checkbox:C,nofollow_checkbox:w,url_input:F}=b,E=r.Dom.isImage(t),{content_input:k}=b,{className_input:S}=b,{className_select:A}=b;k||(k=o.c.element("input",{type:"hidden",ref:"content_input"})),h&&g.classList.add(h),E&&r.Dom.hide(_);let D=()=>n?n.innerText:(0,a.stripTags)(o.s.range.cloneContents(),o.ed);n=!!(t&&r.Dom.closest(t,"a",o.editor))&&r.Dom.closest(t,"a",o.editor),!E&&t&&(k.value=D()),n?(F.value=(0,a.attr)(n,"href")||"",p&&function(t,i,n,o){switch(t){case"input":i&&(i.value=(0,a.attr)(n,"class")||"");break;case"select":if(o){for(let t=0;t<o.selectedOptions.length;t++){let i=o.options.item(t);i&&(i.selected=!1)}((0,a.attr)(n,"class")||"").split(/\s+/).filter(t=>t.trim().length>0).forEach(t=>{if(t)for(let i=0;i<o.options.length;i++){let n=o.options.item(i);(null==n?void 0:n.value)&&n.value.split(/\s+/).map(t=>t.trim()).includes(t)&&(n.selected=!0)}})}}}(p,S,n,A),l&&C&&(C.checked="_blank"===(0,a.attr)(n,"target")),c&&w&&(w.checked=((0,a.attr)(n,"rel")||"").split(/\s+/).includes("nofollow")),v.textContent=s("Update")):(r.Dom.hide(y),l&&C&&(C.checked=u)),o.editor.normalize();let x=o.history.snapshot.make();y&&o.e.on(y,"click",t=>{o.s.restore(),o.history.snapshot.restore(x),n&&r.Dom.unwrap(n),o.synchronizeValues(),i(),t.preventDefault()});let I=()=>{let t;if(!F.value.trim().length)return F.focus(),F.classList.add("jodit_error"),!1;o.s.restore(),o.s.removeMarkers(),o.editor.normalize(),o.history.snapshot.restore(x);let s=D()!==k.value.trim(),u=o.createInside;if(n&&r.Dom.isOrContains(o.editor,n))t=[n];else{if(o.s.isCollapsed()){let i=u.element("a");o.s.insertNode(i,!1,!1),t=[i]}else{let i=o.s.current();t=r.Dom.isTag(i,"img")?[r.Dom.wrap(i,"a",u)]:o.s.wrapInTag("a")}t.forEach(t=>o.s.select(t))}return t.forEach(t=>{var i;let n;if((0,a.attr)(t,"href",F.value),function(t,i,n,o){var r;if(t&&(null!=i?i:n)){if("input"===t)""===i.value&&o.hasAttribute("class")&&(0,a.attr)(o,"class",null),""!==i.value&&(0,a.attr)(o,"class",i.value);else if("select"===t){o.hasAttribute("class")&&(0,a.attr)(o,"class",null);for(let t=0;t<n.selectedOptions.length;t++){let i=null==(r=n.selectedOptions.item(t))?void 0:r.value;i&&i.split(/\s+/).filter(t=>t.trim().length>0).forEach(t=>{o.classList.add(t)})}}}}(p,S,A,t),E||(i=k,n=t.textContent,i.value.trim().length?s&&(n=i.value):n=F.value,n!==t.textContent&&(t.textContent=n)),l&&C&&(0,a.attr)(t,"target",C.checked?"_blank":null),c&&w){let i=((0,a.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),n=i.includes("nofollow");w.checked&&!n?i.push("nofollow"):!w.checked&&n&&i.splice(i.indexOf("nofollow"),1),(0,a.attr)(t,"rel",i.length?i.join(" "):null)}o.e.fire("applyLink",o,t,m)}),o.synchronizeValues(),i(),!1};return r.Dom.isElement(m)?o.e.on(m,"submit",t=>(t.preventDefault(),t.stopImmediatePropagation(),I(),!1)):m.onSubmit(I),m}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(t.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(t){let{jodit:i}=this;i.o.readonly&&i.o.link.preventReadOnlyNavigation&&r.Dom.isTag(t.target,"a")&&t.preventDefault()}constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}}u([o.autobind],c.prototype,"__onDblClickOnLink",null),u([o.autobind],c.prototype,"onProcessPasteLink",null),u([o.autobind],c.prototype,"__generateForm",null),u([o.autobind],c.prototype,"__onClickReadOnlyLink",null),s.pluginSystem.add("link",c)},10411:function(t,i,n){"use strict";n.d(i,{formTemplate:function(){return s}});var o=n(62843),r=n(2525);let s=t=>{let{openInNewTabCheckbox:i,noFollowCheckbox:n,modeClassName:s,selectSizeClassName:a,selectMultipleClassName:l,selectOptionsClassName:u}=t.o.link;return new r.UIForm(t,[new r.UIBlock(t,[new r.UIInput(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new r.UIBlock(t,[new r.UIInput(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),s?new r.UIBlock(t,["input"===s?new r.UIInput(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===s?new r.UISelect(t,{name:"className",ref:"className_select",label:"Class name",size:a,multiple:l,options:u}):null]):null,i?new r.UICheckbox(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,n?new r.UICheckbox(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new r.UIBlock(t,[new o.UIButton(t,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},757:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.mediaFakeTag="jodit-media",o.Config.prototype.mediaInFakeBlock=!0,o.Config.prototype.mediaBlocks=["video","audio"]},20071:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(43555);n(757),r.pluginSystem.add("media",function(t){let i="jodit_fake_wrapper",{mediaFakeTag:n,mediaBlocks:r,mediaInFakeBlock:a}=t.options;a&&t.e.on("afterGetValueFromEditor",t=>{let o=RegExp(`<${n}[^>]+data-${i}[^>]+>([^]+?)</${n}>`,"ig");o.test(t.value)&&(t.value=t.value.replace(o,"$1"))}).on("change afterInit afterSetMode changePlace",t.async.debounce(()=>{t.isDestructed||t.getMode()===o.MODE_SOURCE||(0,s.$$)(r.join(","),t.editor).forEach(o=>{if(!(0,s.dataBind)(o,i)){(0,s.dataBind)(o,i,!0);var r=o;if(r.parentNode&&(0,s.attr)(r.parentNode,"data-jodit_iframe_wrapper"))r=r.parentNode;else{let o=t.createInside.element(n,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${i}`]:1});(0,s.attr)(o,"style",(0,s.attr)(r,"style")),o.style.display="inline-block"===r.style.display?"inline-block":"block",o.style.width=r.offsetWidth+"px",o.style.height=r.offsetHeight+"px",r.parentNode&&r.parentNode.insertBefore(o,r),o.appendChild(r),r=o}t.e.off(r,"mousedown.select touchstart.select").on(r,"mousedown.select touchstart.select",()=>{t.s.setCursorAfter(r)})}})},t.defaultTimeout))})},37585:function(t,i,n){"use strict";var o=n(82758),r=n(21537),s=n(6441),a=n(11676),l=n(21491);s.Config.prototype.mobileTapTimeout=300,s.Config.prototype.toolbarAdaptive=!0,s.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],s.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],s.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],s.Config.prototype.controls.dots={mode:o.MODE_SOURCE+o.MODE_WYSIWYG,popup:(t,i,n,o)=>{let s=o.control.data;return void 0===s&&(s={toolbar:(0,l.makeCollection)(t),rebuild:()=>{var i,n;if(o){let l=t.e.fire("getDiffButtons.mobile",o.closest(a.ToolbarCollection));if(l&&s){s.toolbar.build((0,r.splitArray)(l));let o=(null==(n=null==(i=t.toolbar)?void 0:i.firstButton)?void 0:n.container.offsetWidth)||36;s.toolbar.container.style.width=(o+4)*3+"px"}}}},o.control.data=s),s.rebuild(),s.toolbar},tooltip:"Show all"}},32309:function(t,i,n){"use strict";var o=n(580),r=n(21537),s=n(43649);n(37585),o.pluginSystem.add("mobile",function(t){let i=0,n=(0,r.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",n=>{if(n.changedTouches&&n.changedTouches.length){let o=new Date().getTime(),r=o-i;r>t.o.mobileTapTimeout&&(i=o,r<1.5*t.o.mobileTapTimeout&&t.s.insertCursorAtPoint(n.clientX,n.clientY))}}),t.e.on("getDiffButtons.mobile",i=>{if(i===t.toolbar){let i=(0,s.flatButtonsSet)((0,r.splitArray)(t.o.buttons),t),o=(0,s.flatButtonsSet)(n,t);return(0,r.toArray)(i).reduce((t,i)=>(o.has(i)||t.push(i),t),[])}}),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var i,o;if(!t.o.toolbar)return;let s=(null!=(i=t.container.parentElement)?i:t.container).offsetWidth,a=t.isFullSize||s>=t.o.sizeLG?(0,r.splitArray)(t.o.buttons):s>=t.o.sizeMD?(0,r.splitArray)(t.o.buttonsMD):s>=t.o.sizeSM?(0,r.splitArray)(t.o.buttonsSM):(0,r.splitArray)(t.o.buttonsXS);a.toString()!==n.toString()&&(n=a,t.e.fire("closeAllPopups"),null==(o=t.toolbar)||o.setRemoveButtons(t.o.removeButtons).build(n.concat(t.o.extraButtons)))}).on(t.ow,"load resize",()=>t.e.fire("recalcAdaptive"))})},57951:function(t,i,n){"use strict";var o=n(86583),r=n(12153),s=n(6441),a=n(13465),l=n(50267);let u=(t,i,{control:n})=>{var r;let s=`button${n.command}`,a=null!=(r=n.args&&n.args[0])?r:(0,o.dataBind)(t,s);(0,o.dataBind)(t,s,a),t.execCommand(n.command,!1,"default"===a?null:a)};r.Icon.set("ol",a.default).set("ul",l.default),s.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},s.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:u}},13465:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},50267:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},64837:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(50911);n(57951);class a extends s.Plugin{afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,i,n){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:null!=n?n:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"onCommand",null),r.pluginSystem.add("orderedList",a)},71842:function(t,i,n){"use strict";var o=n(82758),r=n(6441);r.Config.prototype.askBeforePasteFromWord=!0,r.Config.prototype.processPasteFromWord=!0,r.Config.prototype.defaultActionOnPasteFromWord=null,r.Config.prototype.pasteFromWordActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Clean"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}]},31571:function(t,i,n){"use strict";n.d(i,{pasteFromWord:function(){return c}});var o=n(82758),r=n(65478),s=n(580),a=n(21537),l=n(50911);n(71842);var u=n(117);class c extends l.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,i,n){let{j:o}=this,{processPasteFromWord:r,askBeforePasteFromWord:s,defaultActionOnPasteFromWord:l,defaultActionOnPaste:c,pasteFromWordActionList:d}=o.o;return!!(r&&(0,a.isHtmlFromWord)(i))&&(s?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,i,o,n)},d):this.insertFromWordByType(t,i,l||c,n),!0)}insertFromWordByType(t,i,n,r){var s;switch(n){case o.INSERT_AS_HTML:{i=(0,a.applyStyles)(i);let t=null==(s=this.j.events)?void 0:s.fire("beautifyHTML",i);(0,a.isString)(t)&&(i=t);break}case o.INSERT_AS_TEXT:i=(0,a.cleanFromWord)(i);break;case o.INSERT_ONLY_TEXT:i=(0,a.stripTags)((0,a.cleanFromWord)(i),this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText)}(0,u.pasteInsertHtml)(t,this.j,i)}}c.requires=["paste"],function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":processHTML")],c.prototype,"processWordHTML",null),s.pluginSystem.add("pasteFromWord",c)},85407:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(21537),l=n(20356),u=n(10830);class c extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let t=(0,u.Button)(this.j,"paste","Paste","primary");t.onAction(this.paste);let i=(0,u.Button)(this.j,"","Cancel");i.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,i]),this.j.e.on(this.listBox,"click dblclick",t=>{let i=t.target;return r.Dom.isTag(i,"a")&&i.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(i,"-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",t=>{-1!==this.list.indexOf(t)&&this.list.splice(this.list.indexOf(t),1),this.list.unshift(t),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),r.Dom.safeRemove(this.previewBox),r.Dom.safeRemove(this.listBox),r.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=t=>{let i=this.currentIndex;if(-1!==[o.KEY_UP,o.KEY_DOWN,o.KEY_ENTER].indexOf(t.key)){if(t.key===o.KEY_UP&&(0===i?i=this.list.length-1:i-=1),t.key===o.KEY_DOWN&&(i===this.list.length-1?i=0:i+=1),t.key===o.KEY_ENTER)return void this.paste();i!==this.currentIndex&&this.selectIndex(i),t.stopImmediatePropagation(),t.preventDefault()}},this.selectIndex=t=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((i,n)=>{i.classList.remove("jodit_active"),t===n&&this.previewBox&&(i.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],i.focus())}),this.currentIndex=t},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((t,i)=>{let n=this.j.c.element("a");n.textContent=i+1+". "+t.replace((0,o.SPACE_REG_EXP)(),""),this.j.e.on(n,"keydown",this.onKeyDown),(0,a.attr)(n,"href","#"),(0,a.attr)(n,"data-index",i.toString()),(0,a.attr)(n,"tab-index","-1"),this.listBox&&this.listBox.appendChild(n)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}s.pluginSystem.add("pasteStorage",c)},84380:function(t,i,n){"use strict";var o=n(82758),r=n(6441),s=n(117);function a(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}r.Config.prototype.askBeforePasteHTML=!0,r.Config.prototype.processPasteHTML=!0,r.Config.prototype.scrollToPastedContent=!0,r.Config.prototype.pasteExcludeStripTags=["br","hr"],r.Config.prototype.pasteHTMLActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Insert as Text"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}],r.Config.prototype.memorizeChoiceWhenPasteFragment=!1,r.Config.prototype.nl2brInPlainText=!0;let l="pasteStorage";r.Config.prototype.controls.paste={tooltip:"Paste from clipboard",exec(t,i,n){var r;return(r=function*(t,i,{control:n}){var r;if(n.name===l)return void t.execCommand("showPasteStorage");t.s.focus();let a="",u=!0;if(navigator.clipboard){try{let t=yield navigator.clipboard.read();if(t&&t.length){let i=t[0],n=(null==(r=i.types)?void 0:r.includes(o.TEXT_HTML))?o.TEXT_HTML:o.TEXT_PLAIN,s=yield i.getType(n);a=yield new Response(s).text()}u=!1}catch(t){o.IS_PROD}if(u)try{a=yield navigator.clipboard.readText(),u=!1}catch(t){o.IS_PROD}}u&&(u=0===(a=t.buffer.get(o.CLIPBOARD_ID)||"").length);let c=t.value;u?(t.ed.execCommand("paste"),(u=c===t.value)||t.e.fire("afterPaste")):a.length?((0,s.pasteInsertHtml)(null,t,a),t.e.fire("afterPaste")):u&&t.alert("Your browser doesn't support direct access to the clipboard.",()=>void t.s.focus())},function(){var t=this,i=arguments;return new Promise(function(n,o){var s=r.apply(t,i);function l(t){a(s,n,o,l,u,"next",t)}function u(t){a(s,n,o,l,u,"throw",t)}l(void 0)})}).apply(this,arguments)},list:{[l]:"Paste Storage"},isChildDisabled(t){return 2>t.e.fire("pasteStorageList")}}},117:function(t,i,n){"use strict";n.d(i,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return u},pasteInsertHtml:function(){return l}});var o=n(82758),r=n(2748),s=n(27613),a=n(10830);function l(t,i,n){var o;let a,l;if(i.isInDestruct)return;t&&"drop"===t.type&&i.s.insertCursorAtPoint(t.clientX,t.clientY);let u=i.e.fire("beforePasteInsert",n);!(0,s.isVoid)(u)&&((0,s.isString)(u)||(0,s.isNumber)(u)||r.Dom.isNode(u))&&(n=u),(0,s.isString)(n)&&(-1!==(a=(o=(o=n).replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i))&&(o=o.substring(a+20)),-1!==(l=o.search(/<!--EndFragment-->/i))&&(o=o.substring(0,l)),n=o),i.s.insertHTML(n)}function u(t){let i=t.types,n="";if((0,s.isArray)(i)||"[object DOMStringList]"===({}).toString.call(i))for(let t=0;t<i.length;t+=1)n+=i[t]+";";else n=(i||o.TEXT_PLAIN).toString()+";";return n}function c(t,i,n,o,r){if(!1===t.e.fire("beforeOpenPasteDialog",i,n,o,r))return;let s=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(i)}</div>`,t.i18n(n)),l=r.map(({text:i,value:n})=>(0,a.Button)(t,{text:i,name:i.toLowerCase(),tabIndex:0}).onAction(()=>{s.close(),o(n)}));s.e.one(s,"afterClose",()=>{t.s.isFocused()||t.s.focus()});let u=(0,a.Button)(t,{text:"Cancel",tabIndex:0}).onAction(()=>{s.close()});return s.setFooter([...l,u]),l[0].focus(),l[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",s,i,n,o,r),s}},79799:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(20356);n(84380);var c=n(117),d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",t=>this.pasteStack.push(t)),this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(t){t.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(t){try{if(!1===this.customPasteProcess(t)||!1===this.j.e.fire("beforePaste",t))return t.preventDefault(),!1;this.defaultPasteProcess(t)}finally{this.j.e.fire("afterPaste",t)}}customPasteProcess(t){if(!this.j.o.processPasteHTML)return;let i=(0,l.getDataTransfer)(t),n=[null==i?void 0:i.getData(o.TEXT_PLAIN),null==i?void 0:i.getData(o.TEXT_HTML),null==i?void 0:i.getData(o.TEXT_RTF)];for(let i of n)if((0,l.isHTML)(i)&&(this.j.e.fire("processHTML",t,i,{plain:n[0],html:n[1],rtf:n[2]})||this.processHTML(t,i)))return!1}defaultPasteProcess(t){let i=(0,l.getDataTransfer)(t),n=(null==i?void 0:i.getData(o.TEXT_HTML))||(null==i?void 0:i.getData(o.TEXT_PLAIN));if(i&&n&&""!==(0,l.trim)(n)){let o=this.j.e.fire("processPaste",t,n,(0,c.getAllTypes)(i));void 0!==o&&(n=o),((0,l.isString)(n)||s.Dom.isNode(n))&&this.__insertByType(t,n,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,i){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let n=this.pasteStack.find(t=>t.html===i);if(n)return this.__insertByType(t,i,n.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let n=(0,c.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",n=>{this._isDialogOpened=!1,this.__insertByType(t,i,n)},this.j.o.pasteHTMLActionList);return n&&(this._isDialogOpened=!0,n.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(t,i,n){if(this.pasteStack.push({html:i,action:n}),(0,l.isString)(i))switch(this.j.buffer.set(o.CLIPBOARD_ID,i),n){case o.INSERT_CLEAR_HTML:i=(0,l.cleanFromWord)(i);break;case o.INSERT_ONLY_TEXT:i=(0,l.stripTags)(i,this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText);break;case o.INSERT_AS_TEXT:i=(0,l.htmlspecialchars)(i),this.j.o.nl2brInPlainText&&(i=(0,l.nl2br)(i));break;default:{let o=this.j.e.fire("onCustomPasteHTMLOption",n,i,t);"string"==typeof o&&(i=o)}}(0,c.pasteInsertHtml)(t,this.j,i)}onProcessPasteReplaceNl2Br(t,i,n){if(n===o.TEXT_PLAIN+";"&&!(0,l.isHTML)(i)){let t=(0,l.htmlspecialchars)(i);return this.j.o.nl2brInPlainText?(0,l.nl2br)(t):t}}constructor(){super(...arguments),this.pasteStack=new l.LimitedStack(20),this._isDialogOpened=!1}}d([r.autobind],h.prototype,"onPaste",null),d([r.autobind],h.prototype,"onProcessPasteReplaceNl2Br",null),a.pluginSystem.add("paste",h)},61926:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.showPlaceholder=!0,o.Config.prototype.placeholder="Type something",o.Config.prototype.useInputsPlaceholder=!0},59451:function(t,i,n){"use strict";n.d(i,{isEditorEmpty:function(){return h}});var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(78116),u=n(29960),c=n(41180),d=n(20356);function h(t){var i;if(!t.firstChild)return!0;let n=t.firstChild;if(o.INSEPARABLE_TAGS.has(null==(i=n.nodeName)?void 0:i.toLowerCase())||/^(TABLE)$/i.test(n.nodeName))return!1;let r=s.Dom.next(n,t=>t&&!s.Dom.isEmptyTextNode(t),t);return s.Dom.isText(n)&&!r?s.Dom.isEmptyTextNode(n):!r&&s.Dom.each(n,t=>!(s.Dom.isLeaf(t)||s.Dom.isList(t))&&(s.Dom.isEmpty(t)||s.Dom.isTag(t,"br")))}n(61926);class p extends d.Plugin{afterInit(t){t.o.showPlaceholder&&(this.placeholderElm=t.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${t.i18n(t.o.placeholder)}</span>`),"rtl"===t.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),t.e.on("readonly",t=>{t?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let t=this.j;if(t.o.readonly)return;let i=0,n=0,o=t.s.current(),r=o&&s.Dom.closest(o,s.Dom.isBlock,t.editor)||t.editor,a=t.ew.getComputedStyle(r),u=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);let{firstChild:d}=t.editor;if(s.Dom.isElement(d)&&!(0,l.isMarker)(d)){let o=t.ew.getComputedStyle(d);i=parseInt(o.getPropertyValue("margin-top"),10),n=parseInt(o.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(a.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=a.getPropertyValue("line-height");(0,c.css)(this.placeholderElm,{display:"block",textAlign:a.getPropertyValue("text-align"),paddingTop:parseInt(u.paddingTop,10)+"px",paddingLeft:parseInt(u.paddingLeft,10)+"px",paddingRight:parseInt(u.paddingRight,10)+"px",marginTop:Math.max(parseInt(a.getPropertyValue("margin-top"),10),i),marginLeft:Math.max(parseInt(a.getPropertyValue("margin-left"),10),n)})}hide(){s.Dom.safeRemove(this.placeholderElm)}toggle(){let t=this.j;if(t.editor&&!t.isInDestruct){if(t.getRealMode()!==o.MODE_WYSIWYG)return void this.hide();h(t.editor)?this.show():this.hide()}}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{let t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,u.attr)(t.element,"placeholder")||""),t.e.fire("placeholder",this.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.debounce)(t=>t.defaultTimeout/10,!0)],p.prototype,"toggle",null),a.pluginSystem.add("placeholder",p)},18363:function(t,i,n){"use strict";n(580).pluginSystem.add("poweredByJodit",function(t){let{o:i}=t;!i.hidePoweredByJodit&&!i.inline&&(i.showCharsCounter||i.showWordsCounter||i.showXPathInStatusbar)&&t.hookStatus("ready",()=>{t.statusbar.append(t.create.fromHTML(`<a
207
+ </div>`}onStateAlignChange(){this.getElm("align").value=this.state.values.align}onChangeAlign(){let t=this.getElm("align");this.state.values.align=t.value}onStateValuesBorderRadiusChange(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}onChangeBorderRadius(){let t=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(t.value)}onStateValuesIdChange(){this.getElm("id").value=this.state.values.id}onChangeId(){let t=this.getElm("id");this.state.values.id=t.value}onStateValuesStyleChange(){this.getElm("style").value=this.state.values.style}onChangeStyle(){let t=this.getElm("style");this.state.values.style=t.value}onStateValuesClassesChange(){this.getElm("classes").value=this.state.values.classes}onChangClasses(){let t=this.getElm("classes");this.state.values.classes=t.value}onLockMarginClick(t){this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}onChangeMarginIsLocked(){let t=this.getElm("marginBottom"),i=this.getElm("marginRight"),n=this.getElm("marginLeft"),o=this.getElm("lockMargin");if([i,t,n].forEach(t=>{(0,u.attr)(t,"disabled",this.state.marginIsLocked||null)}),o.innerHTML=d.Icon.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){let t=this.state.values.marginTop;this.state.values.marginRight=t,this.state.values.marginBottom=t,this.state.values.marginLeft=t}}onStateValuesMarginChange(){let t=this.getElm("marginTop"),i=this.getElm("marginRight"),n=this.getElm("marginBottom"),o=this.getElm("marginLeft");t.value=this.state.values.marginTop.toString(),i.value=this.state.values.marginRight.toString(),n.value=this.state.values.marginBottom.toString(),o.value=this.state.values.marginLeft.toString()}onChangeMargin(){let t=this.getElm("marginTop"),i=this.getElm("marginRight"),n=this.getElm("marginBottom"),o=this.getElm("marginLeft");this.state.values.marginTop=(0,h.normalSizeFromString)(t.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=(0,h.normalSizeFromString)(i.value),this.state.values.marginBottom=(0,h.normalSizeFromString)(n.value),this.state.values.marginLeft=(0,h.normalSizeFromString)(o.value))}hideFieldByOptions(){let t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(([i,n])=>{let o=this.getElm(n);(0,a.css)(o,"display",t[i]?null:"none")})}constructor(t,i,n){super(t,{availableClasses:t.o.image.availableClasses}),this.state=i,this.handlers=n}};p([(0,r.hook)("ready"),(0,s.watch)("state.values.align")],f.prototype,"onStateAlignChange",null),p([(0,s.watch)("align:change")],f.prototype,"onChangeAlign",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.borderRadius")],f.prototype,"onStateValuesBorderRadiusChange",null),p([(0,s.watch)("borderRadius:change")],f.prototype,"onChangeBorderRadius",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.id")],f.prototype,"onStateValuesIdChange",null),p([(0,s.watch)("id:change")],f.prototype,"onChangeId",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.style")],f.prototype,"onStateValuesStyleChange",null),p([(0,s.watch)("style:change")],f.prototype,"onChangeStyle",null),p([(0,r.hook)("ready"),(0,s.watch)("state.values.classes")],f.prototype,"onStateValuesClassesChange",null),p([(0,s.watch)("classes:change")],f.prototype,"onChangClasses",null),p([(0,s.watch)("lockMargin:click")],f.prototype,"onLockMarginClick",null),p([(0,r.hook)("ready"),(0,s.watch)("state.marginIsLocked")],f.prototype,"onChangeMarginIsLocked",null),p([(0,r.hook)("ready"),(0,s.watch)(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],f.prototype,"onStateValuesMarginChange",null),p([(0,s.watch)(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],f.prototype,"onChangeMargin",null),p([(0,r.hook)("ready")],f.prototype,"hideFieldByOptions",null),f=p([o.component],f)},53636:function(t,i,n){"use strict";n.d(i,{openImageEditorDialog:function(){return a}});var o=n(70799),r=n(29960),s=n(50050);function a(t,i){let n=(0,r.attr)(i.image,"src")||"",a=t.c.element("a"),l=()=>{if(a.host!==location.host)return void t.confirm("You can only edit your own images. Download this image on the host?",n=>{n&&t.uploader&&t.uploader.uploadRemoteImage(a.href.toString(),n=>{t.alert("The image has been successfully uploaded to the host!",()=>{(0,o.isString)(n.newfilename)&&(i.values.imageSrc=n.baseurl+n.newfilename)})},i=>{t.alert("There was an error loading %s",i.message)})})};a.href=n,t.filebrowser.dataProvider.getPathByUrl(a.href.toString()).then(o=>{s.openImageEditor.call(t.filebrowser,a.href,o.name,o.path,o.source,t=>{let o=new Date().getTime(),r=t||n;i.values.imageSrc=r+(-1!==r.indexOf("?")?"":"?")+"&_tmp="+o.toString()},i=>{t.alert(i.message)})}).catch(i=>{t.alert(i.message,l)})}},10263:function(t,i,n){"use strict";n.d(i,{openImagePopup:function(){return u}});var o=n(68345),r=n(5700),s=n(56917),a=n(34793);function l(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function u(t,i,n,u){let c=new s.Popup(i),d=()=>{c.close(),c.destruct()};c.setContent((0,a.FileSelectorWidget)(t,{upload:t=>{t.files&&t.files.length&&(n.values.imageSrc=t.baseurl+t.files[0]),d()},filebrowser:t=>{var i;return(i=function*(){t&&(0,o.isArray)(t.files)&&t.files.length&&(n.values.imageSrc=t.files[0],d())},function(){var t=this,n=arguments;return new Promise(function(o,r){var s=i.apply(t,n);function a(t){l(s,o,r,a,u,"next",t)}function u(t){l(s,o,r,a,u,"throw",t)}a(void 0)})})()}},n.image,d)).open(()=>(0,r.position)(u))}},14415:function(t,i,n){"use strict";n.d(i,{normalSizeFromString:function(){return s},normalSizeToString:function(){return a}});var o=n(84767),r=n(49055);let s=t=>/^[-+]?[0-9.]+(px)?$/.test(t.toString())?parseFloat(t.toString()):t,a=t=>(0,o.isNumber)(t)?t?t+"px":t.toString():(t=(0,r.trim)(t),/^[0-9]+$/.test(t)?t+"px":t)},34755:function(t,i,n){"use strict";n.d(i,{applyValuesToImage:function(){return u}});var o=n(2748),r=n(43555),s=n(29615),a=n(14721),l=n(87602);function u(t,i,n){let{style:u,imageSrc:c,borderRadius:d,imageTitle:h,imageAlt:p,imageLink:f,imageWidth:m,imageHeight:g,marginTop:b,marginRight:v,marginBottom:y,marginLeft:_,imageLinkOpenInNewTab:C,align:w,classes:F,id:E}=i.values,k=t.o;(k.image.editStyle&&(0,r.attr)(n,"style",u||null),c)?((0,r.attr)(n,"src",c),n.style.borderRadius=d?d+"px":"",(0,r.attr)(n,"title",h||null),(0,r.attr)(n,"alt",p||null),(0,s.applyLink)(t,n,f,C),(0,l.applySize)(n,m,g,i.sizeIsLocked),t.o.image.editMargins&&(0,a.applyMargin)(t,b,v,y,_,n,i.marginIsLocked),k.image.editClass&&(0,r.attr)(n,"class",F||null),k.image.editId&&(0,r.attr)(n,"id",E||null),k.image.editAlign&&(0,r.hAlignElement)(n,w)):o.Dom.safeRemove(n)}},29615:function(t,i,n){"use strict";n.d(i,{applyLink:function(){return s}});var o=n(2748),r=n(29960);function s(t,i,n,s){let a=o.Dom.closest(i,"a",t.editor);if(n){if(a||(a=o.Dom.wrap(i,"a",t.createInside)),(0,r.attr)(a,"href",n),(0,r.attr)(a,"target",s?"_blank":null),!s){let t=((0,r.attr)(a,"rel")||"").split(/\s+/).filter(t=>t&&"noopener"!==t&&"noreferrer"!==t);(0,r.attr)(a,"rel",t.length?t.join(" "):null)}}else a&&a.parentNode&&a.parentNode.replaceChild(i,a)}},14721:function(t,i,n){"use strict";n.d(i,{applyMargin:function(){return s}});var o=n(41180),r=n(14415);function s(t,i,n,s,a,l,u){let c=[i,n,s,a],d=(t,i)=>{let n=(0,o.css)(l,t),s=(0,r.normalSizeToString)(i);n.toString()!==s.toString()&&(0,o.css)(l,t,s)};if(u)d("margin",i);else{let t=["margin-top","margin-right","margin-bottom","margin-left"];c.forEach((i,n)=>{d(t[n],i)})}}},87602:function(t,i,n){"use strict";n.d(i,{applySize:function(){return l}});var o=n(29807),r=n(29960),s=n(41180),a=n(14415);function l(t,i,n,l){if(i!==t.offsetWidth||n!==t.offsetHeight){let u=i?(0,a.normalSizeToString)(i):null,c=n?(0,a.normalSizeToString)(n):null;(0,s.css)(t,{width:u,height:u&&l?null:c}),(0,r.attr)(t,"width",u&&(0,o.isNumeric)(i)&&(0,r.attr)(t,"width")?u:null),(!(0,r.attr)(t,"width")||l)&&(c=null),(0,r.attr)(t,"height",c)}}},23531:function(t,i,n){"use strict";var o=n(22732),r=n(580),s=n(21537),a=n(29960),l=n(12153),u=n(6441),c=n(92762),d=n(25179);function h(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}l.Icon.set("image",d.default),u.Config.prototype.controls.image={popup:(t,i,n)=>{let r=null;return i&&!o.Dom.isText(i)&&o.Dom.isHTMLElement(i)&&(o.Dom.isTag(i,"img")||(0,s.$$)("img",i).length)&&(r=o.Dom.isTag(i,"img")?i:(0,s.$$)("img",i)[0]),t.s.save(),(0,c.FileSelectorWidget)(t,{filebrowser:i=>{t.s.restore(),i.files&&i.files.forEach(n=>t.s.insertImage(i.baseurl+n,null,t.o.imageDefaultWidth)),n()},upload:!0,url:(i,o)=>{var s;return(s=function*(){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(i)&&(i="//"+i);let s=r||t.createInside.element("img");(0,a.attr)(s,"src",i),(0,a.attr)(s,"alt",o),r||(yield t.s.insertImage(s,null,t.o.imageDefaultWidth)),n()},function(){var t=this,i=arguments;return new Promise(function(n,o){var r=s.apply(t,i);function a(t){h(r,n,o,a,l,"next",t)}function l(t){h(r,n,o,a,l,"throw",t)}a(void 0)})})()}},r,n)},tags:["img"],tooltip:"Insert Image"},r.pluginSystem.add("image",function(t){t.registerButton({name:"image",group:"media"})})},25179:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> '},54389:function(t,i,n){"use strict";var o=n(22732),r=n(12153),s=n(6441),a=n(78614),l=n(86835),u=n(302);r.Icon.set("indent",a.default).set("outdent",l.default),s.Config.prototype.controls.indent={tooltip:"Increase Indent"},s.Config.prototype.controls.outdent={isDisabled:t=>{var i;let n=t.s.current();if(!n)return!0;if(null==(i=t.o.tab)?void 0:i.tabInsideLiInsertNewList){let i=o.Dom.closest(n,"li",t.editor);if(i){let n=o.Dom.closest(i,["ul","ol"],t.editor);if(n&&o.Dom.closest(n,"li",t.editor))return!1}}let r=o.Dom.closest(n,o.Dom.isBlock,t.editor);if(r){let i=(0,u.getKey)(t.o.direction,r);return!r.style[i]||0>=parseInt(r.style[i],10)}return!0},tooltip:"Decrease Indent"},s.Config.prototype.indentMargin=10},302:function(t,i,n){"use strict";n.d(i,{getKey:function(){return r}});var o=n(2748);let r=(t,i)=>`${o.Dom.isCell(i)?"padding":"margin"}${"rtl"===t?"Right":"Left"}`},78614:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},86835:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},70045:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(43555);n(54389);var l=n(302);let u=(t,i,n,o)=>{if(!i||t.has(i))return;let r=(0,l.getKey)(n.o.direction,i);t.add(i);let s=i.style[r]?parseInt(i.style[r],10):0;s+=n.o.indentMargin*("outdent"===o?-1:1),i.style[r]=s>0?s+"px":"",(0,a.attr)(i,"style")||(0,a.attr)(i,"style",null)};s.pluginSystem.add("indent",function(t){t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});let i=i=>{let n=new Set,{enter:s,enterBlock:l}=t.o,c=s.toLowerCase()===o.BR,d=t.s.current();return c&&t.s.isCollapsed()&&d?u(n,r.Dom.wrapNextInline(d,l,t),t,i):(t.s.eachSelection(o=>{t.s.save();let d=!!o&&r.Dom.up(o,r.Dom.isBlock,t.editor);if(!d&&o&&(d=(0,a.call)(c?r.Dom.wrapNextInline:r.Dom.wrapInline,o,c?l:s.toLowerCase(),t)),!d)return t.s.restore(),!1;u(n,d,t,i),t.s.restore()}),t.synchronizeValues()),!1};t.registerCommand("indent",{exec:i,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:i,hotkeys:["ctrl+[","cmd+["]})})},46448:function(t,i,n){"use strict";n(73391),n(93183),n(66707),n(41107),n(93079),n(575),n(23399),n(96111),n(42263),n(77469),n(23531),n(93401),n(65517),n(64837),n(59451),n(18363),n(6687),n(45927),n(7309),n(43003),n(72253),n(65735)},24526:function(t,i,n){"use strict";var o=n(27613),r=n(12153),s=n(6441),a=n(61122),l=n(62e3),u=n(66789),c=n(20882),d=n(14306),h=n(24231),p=n(75393),f=n(14862),m=n(96257),g=n(9914),b=n(53696),v=n(33489);s.Config.prototype.toolbarInline=!0,s.Config.prototype.toolbarInlineForSelection=!1,s.Config.prototype.toolbarInlineDisableFor=[],s.Config.prototype.toolbarInlineDisabledButtons=["source"],r.Icon.set("addcolumn",h.default).set("addrow",p.default).set("merge",f.default).set("th",b.default).set("splitg",m.default).set("splitv",g.default).set("th-list",v.default),l.default.forEach(t=>{(0,o.isString)(t)||!t.name||s.Config.prototype.controls[t.name]||(s.Config.prototype.controls[t.name]=t)}),s.Config.prototype.popup={a:a.default,img:c.default,cells:l.default,toolbar:d.default,jodit:u.default,iframe:u.default,"jodit-media":u.default,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},61122:function(t,i,n){"use strict";var o=n(29960);i.default=[{name:"eye",tooltip:"Open link",exec:(t,i)=>{let n=(0,o.attr)(i,"href");i&&n&&/^(https?:|mailto:|tel:)/i.test(n.trim())&&!/^(javascript:|data:|vbscript:)/i.test(n.trim())&&t.ow.open(n)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},62e3:function(t,i,n){"use strict";var o=n(27613),r=n(41180);let s=t=>t.args&&(0,o.isString)(t.args[0])?t.args[0].toLowerCase():"";i.default=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:(t,i,n)=>n,exec:(t,i,{control:n})=>{let o=s(n);t.getInstance("Table",t.o).getAllSelectedCells().forEach(t=>{(0,r.css)(t,"vertical-align","normal"===o?"":o)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:(t,i,{control:n})=>{if(!(0,o.isJoditObject)(t))return;if(!n.args)return!1;let r=s(n);t.execCommand(r,!1,i)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:(t,i,{control:n})=>{if(!(0,o.isJoditObject)(t))return;if(!n.args)return!1;let r=s(n);t.execCommand(r,!1,i)},tooltip:"Add row"},{name:"deleteTable",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:(t,i,{control:n})=>{if(!(0,o.isJoditObject)(t))return;if(!n.args)return!1;let r=s(n);t.execCommand(r,!1,i),t.e.fire("hidePopup")},tooltip:"Delete"}]},66789:function(t,i,n){"use strict";i.default=[{name:"bin",tooltip:"Delete",exec:(t,i)=>{i&&t.s.removeNode(i)}},n(20882).align]},20882:function(t,i,n){"use strict";n.d(i,{align:function(){return l}});var o=n(22732),r=n(70799),s=n(25726),a=n(41180);let l={name:"left",childTemplate:(t,i,n)=>n,list:["Left","Right","Center","Normal"],exec:(t,i,{control:n})=>{if(!o.Dom.isTag(i,new Set(["img","jodit","jodit-media"])))return;let a=n.args&&(0,r.isString)(n.args[0])?n.args[0].toLowerCase():"";if(!a)return!1;(0,s.hAlignElement)(i,a),o.Dom.isTag(i,new Set(["jodit","jodit-media"]))&&i.firstElementChild&&(0,s.hAlignElement)(i.firstElementChild,a),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};i.default=[{name:"delete",icon:"bin",tooltip:"Delete",exec:(t,i)=>{i&&t.s.removeNode(i)}},{name:"pencil",exec(t,i){"img"===i.tagName.toLowerCase()&&t.e.fire("openImageProperties",i)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:(t,i,{control:n})=>{if(!o.Dom.isTag(i,"img"))return;let s=n.args&&(0,r.isString)(n.args[0])?n.args[0].toLowerCase():"";if(!s)return!1;(0,a.css)(i,"vertical-align","normal"===s?"":s),t.e.fire("recalcPositionPopup")}},l]},14306:function(t,i){"use strict";i.default=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},24231:function(t,i){"use strict";i.default='<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> '},75393:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> '},14862:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> '},96257:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},9914:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> '},33489:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> '},53696:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> '},93401:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(21537),l=n(50911),u=n(67510),c=n(61259),d=n(21491);n(24526);var h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class p extends l.Plugin{get popup(){return new c.Popup(this.jodit,!1)}get toolbar(){return(0,d.makeCollection)(this.jodit,this.popup)}onClick(t){let i=this.elmsList,n=r.Dom.isTag(t,"img")?t:r.Dom.closest(t,i,this.j.editor);if(n&&this.canShowPopupForType(n.nodeName.toLowerCase()))return this.showPopup(()=>(0,a.position)(n,this.j),n.nodeName.toLowerCase(),n),!1}showPopup(t,i,n){if(i=i.toLowerCase(),!this.canShowPopupForType(i))return!1;if(this.type!==i||n!==this.previousTarget){let t;this.previousTarget=n;let o=this.j.o.popup[i];if(t=(0,a.isFunction)(o)?o(this.j,n,this.popup.close):o,(0,a.isArray)(t)){let i=this.j.o.toolbarInlineDisabledButtons;this.toolbar.build(i.length?t.filter(t=>{let n=(0,a.isString)(t)?t:t.name;return!i.includes(null!=n?n:"")}):t,n),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,t=this.toolbar.container}this.popup.setContent(t),this.type=i}return this.popup.open(t),!0}hidePopup(t){this.popup.isOpened&&(!(0,a.isString)(t)||t===this.type)&&this.popup.close()}onOutsideClick(){this.popup.close()}canShowPopupForType(t){let i=this.j.o.popup[t.toLowerCase()];return!this.j.o.readonly&&!!this.j.o.toolbarInline&&!!i&&!this.isExcludedTarget(t)}isExcludedTarget(t){return(0,a.splitArray)(this.j.o.toolbarInlineDisableFor).map(t=>t.toLowerCase()).includes(t.toLowerCase())}afterInit(t){this.j.e.on("getDiffButtons.mobile",i=>{if(this.toolbar===i){let i=this.toolbar.getButtonsNames();return(0,a.toArray)(t.registeredButtons).filter(t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name)).filter(t=>{let n=(0,a.isString)(t)?t:t.name;return n&&"|"!==n&&"\n"!==n&&!i.includes(n)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(t,i,n)=>{this.showPopup(i,n||((0,a.isString)(t)?t:t.nodeName),(0,a.isString)(t)?void 0:t)}).on("mousedown keydown",this.onSelectionStart).on("change",()=>{this.popup.isOpened&&this.previousTarget&&!this.previousTarget.parentNode&&(this.hidePopup(),this.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).on([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).on("closeAllPopups",this.__onCloseAllPopups),this.addListenersForElements()}__onDocumentMouseDown(t){this.popup.isOpened&&"selection"===this.type&&t.target&&u.UIElement.closestElement(t.target,c.Popup)&&(this.__reopenSelectionPopup=!0)}__onCloseAllPopups(){!this.__reopenSelectionPopup||(this.__reopenSelectionPopup=!1,this.j.o.toolbarInlineForSelection&&this.j.async.setTimeout(()=>{let t=this.j.s.sel;t&&!t.isCollapsed&&this.showPopup(()=>this.__selectionBound(),"selection")},1))}__selectionBound(){let t=this.j.s.range.getBoundingClientRect(),{left:i,top:n}=t;if(this.j.iframe){let t=(0,a.position)(this.j.iframe,this.j,!0);i+=t.left,n+=t.top}return{left:i,top:n,width:t.width,height:t.height}}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&u.UIElement.closestElement(t.target,c.Popup))return;let{snapRange:i}=this,{range:n}=this.j.s;(!i||n.collapsed||n.startContainer!==i.startContainer||n.startOffset!==i.startOffset||n.endContainer!==i.endContainer||n.endOffset!==i.endOffset)&&this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;let t="selection",i=this.j.s.sel,n=this.j.s.range;if((null==i?void 0:i.isCollapsed)||this.isSelectedTarget(n)){this.type===t&&this.popup.isOpened&&this.hidePopup();return}this.j.s.current()&&this.showPopup(()=>this.__selectionBound(),t)}isSelectedTarget(t){let i=t.startContainer;return r.Dom.isElement(i)&&i===t.endContainer&&r.Dom.isTag(i.childNodes[t.startOffset],new Set((0,a.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd).off([this.j.ew,this.j.ow],"mousedown touchstart",this.__onDocumentMouseDown).off("closeAllPopups",this.__onCloseAllPopups),this.removeListenersForElements()}_eventsList(){let t=this.elmsList;return t.map(t=>(0,a.camelCase)(`click_${t}`)).concat(t.map(t=>(0,a.camelCase)(`touchstart_${t}`))).join(" ")}addListenersForElements(){this.j.e.on(this._eventsList(),this.onClick)}removeListenersForElements(){this.j.e.off(this._eventsList(),this.onClick)}showInlineToolbar(t){this.showPopup(()=>{if(t)return t;let{range:i}=this.j.s;return i.getBoundingClientRect()},"toolbar")}constructor(){super(...arguments),this.type=null,this.__reopenSelectionPopup=!1,this.snapRange=null,this.elmsList=(0,a.keys)(this.j.o.popup,!1).filter(t=>!this.isExcludedTarget(t))}}p.requires=["select"],h([o.cache],p.prototype,"popup",null),h([o.cache],p.prototype,"toolbar",null),h([o.autobind],p.prototype,"onClick",null),h([(0,o.wait)(t=>!t.j.isLocked)],p.prototype,"showPopup",null),h([(0,o.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),o.autobind],p.prototype,"hidePopup",null),h([(0,o.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),h([o.autobind],p.prototype,"__onDocumentMouseDown",null),h([o.autobind],p.prototype,"__onCloseAllPopups",null),h([o.autobind],p.prototype,"onSelectionStart",null),h([o.autobind],p.prototype,"onSelectionEnd",null),h([(0,o.debounce)(t=>t.defaultTimeout)],p.prototype,"onSelectionChange",null),h([o.autobind],p.prototype,"showInlineToolbar",null),s.pluginSystem.add("inlinePopup",p)},76295:function(t,i,n){"use strict";var o=n(2748),r=n(580),s=n(21537),a=n(25726),l=n(41180),u=n(12153),c=n(6441),d=n(5567);u.Icon.set("justify",d.default),c.Config.prototype.controls.align={name:"left",tooltip:"Align",update(t,i){let n=i.control,r=t.s.current();if(r){let a=o.Dom.closest(r,o.Dom.isBlock,t.editor)||t.editor,u=(0,l.css)(a,"text-align").toString();n.defaultValue&&-1!==n.defaultValue.indexOf(u)&&(u="left");let{list:c,data:d}=n;d&&d.currentValue!==u&&c&&((0,s.isPlainObject)(c)?c[u]:c.includes(u))&&(t.o.textIcons||"select"===n.component?i.state.text=u:i.state.icon.name=u,d.currentValue=u)}},isActive:(t,i)=>{let n=t.s.current();if(!n||!i.control.defaultValue)return!1;let r=o.Dom.closest(n,o.Dom.isBlock,t.editor)||t.editor;return -1===i.control.defaultValue.indexOf((0,l.css)(r,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},c.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},c.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},c.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},c.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},r.pluginSystem.add("justify",function(t){t.registerButton({name:"align",group:"indent"});let i=i=>(t.s.focus(),t.s.eachSelection(n=>{if(!n)return;let r=o.Dom.up(n,o.Dom.isBlock,t.editor);r||(r=o.Dom.wrapInline(n,t.o.enterBlock,t)),(0,a.alignElement)(i,r)}),!1);t.registerCommand("justifyfull",i),t.registerCommand("justifyright",i),t.registerCommand("justifyleft",i),t.registerCommand("justifycenter",i)})},5567:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '},59483:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(50911);class u extends l.Plugin{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){var i;if(t.key!==o.KEY_RIGHT||!this.j.selection.isCollapsed())return;let{endContainer:n,endOffset:r}=this.j.selection.range;if(s.Dom.isText(n)&&(null==(i=n.nodeValue)?void 0:i.length)===r){let{parentNode:t}=n;s.Dom.isInlineBlock(t)&&!s.Dom.findNotEmptyNeighbor(t,!1,this.j.editor)&&s.Dom.after(t,this.j.createInside.text(o.NBSP_SPACE))}}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":keydown")],u.prototype,"onKeyDownArrow",null),a.pluginSystem.add("keyArrowOutside",u)},57288:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.limitWords=!1,o.Config.prototype.limitChars=!1,o.Config.prototype.limitHTML=!1},91071:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(580),a=n(50911);n(57288);var l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends a.Plugin{afterInit(t){let{limitWords:i,limitChars:n}=t.o;if(t&&(i||n)){let i=null;t.e.off(".limit").on("beforePaste.limit",()=>{i=t.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",()=>{if(this.__shouldDenyInput(!0)&&i)return t.history.snapshot.restore(i),t.e.fire("denyPaste.limit"),!1})}}shouldPreventInsertHTML(t){return!(t&&(o.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){var i;let{jodit:n}=this,{limitWords:r,limitChars:s}=n.o,a=n.o.limitHTML?n.value:n.text,l=this.__splitWords(a);if(r&&(i=l.length,t?i>r:i>=r))return n.e.fire("denyWords.limit limit.limit"),!0;let u=n.o.countTextSpaces?a.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,"").length:l.join("").length,c=!!(s&&(t?u>s:u>=s));return c&&n.e.fire("denyChars.limit limit.limit"),c}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,i){let{jodit:n}=this;this.__shouldDenyInput(!0)&&(n.value=i)}__splitWords(t){return t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(t=>t.length)}beforeDestruct(t){t.e.off(".limit")}}l([r.autobind],u.prototype,"checkPreventKeyPressOrPaste",null),l([r.autobind],u.prototype,"checkPreventChanging",null),s.pluginSystem.add("limit",u)},26295:function(t,i,n){"use strict";var o=n(21537),r=n(12153),s=n(6441),a=n(53259);s.Config.prototype.defaultLineHeight=null,r.Icon.set("line-height",a.default),s.Config.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:(t,i,{control:n})=>(0,o.memorizeExec)(t,i,{control:n},t=>t)}},80084:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ارتفاع الخط"}},76725:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"V\xfdška č\xe1ry"}},71724:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Zeilenh\xf6he"}},46295:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altura de la l\xednea"}},70190:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ارتفاع خط"}},67206:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Rivin korkeus"}},85723:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Hauteur de ligne"}},61072:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"גובה שורה"}},30592:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Vonal magass\xe1ga"}},89194:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Tinggi baris"}},28143:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return u},fr:function(){return c},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},pl:function(){return y},pt_br:function(){return _},ru:function(){return C},tr:function(){return w},ua:function(){return F},zh_cn:function(){return E},zh_tw:function(){return k}});var o=n(80084),r=n(76725),s=n(71724),a=n(46295),l=n(70190),u=n(67206),c=n(85723),d=n(61072),h=n(30592),p=n(89194),f=n(51834),m=n(5082),g=n(80105),b=n(26556),v=n(98689),y=n(42727),_=n(43646),C=n(53822),w=n(41817),F=n(69625),E=n(28973),k=n(19033)},51834:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altezza linea"}},5082:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"ラインの高さ"}},80105:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"선 높이"}},26556:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Зураасны өндөр"}},98689:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Lijnhoogte"}},42727:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Wysokość linii"}},43646:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Altura da linha"}},53822:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Высота линии"}},41817:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"\xc7izgi y\xfcksekliği"}},69625:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"Висота лінії"}},28973:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"线高"}},19033:function(t,i,n){"use strict";n.r(i),i.default={"Line height":"行高"}},61019:function(t,i,n){"use strict";var o=n(65478),r=n(2748),s=n(580),a=n(21537),l=n(50911);n(26295);var u=n(28143);class c extends l.Plugin{afterInit(t){(0,a.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,i,n){let o,{s,createInside:l,editor:u,o:c}=this.j;s.isFocused()||s.focus(),s.save();let d=t=>{let i=r.Dom.closest(t,r.Dom.isBlock,u);i||(i=r.Dom.wrap(t,c.enter,l));let s=(0,a.css)(i,"lineHeight");void 0===o&&(o=s.toString()!==n.toString()),(0,a.css)(i,"lineHeight",o?n:null)};try{if(s.isCollapsed()){let t=l.fake();s.insertNode(t,!1,!1),d(t),r.Dom.safeRemove(t)}else s.eachSelection(d)}finally{s.restore()}}beforeDestruct(t){(0,a.css)(t.editor,{lineHeight:null})}constructor(t){super(t),this.buttons=[{name:"lineHeight",group:"font"}],(0,s.extendLang)(u)}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],c.prototype,"applyLineHeight",null),s.pluginSystem.add("lineHeight",c)},53259:function(t,i){"use strict";i.default='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '},5827:function(t,i,n){"use strict";var o=n(2748),r=n(12153),s=n(6441),a=n(27190),l=n(42345),u=n(10411);s.Config.prototype.link={formTemplate:u.formTemplate,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,openInNewTabCheckboxDefaultChecked:!1,ariaLabelInput:!1,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},r.Icon.set("link",a.default).set("unlink",l.default),s.Config.prototype.controls.unlink={exec:(t,i)=>{let n=o.Dom.closest(i,"a",t.editor);n&&o.Dom.unwrap(n),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},s.Config.prototype.controls.link={isActive:t=>{let i=t.s.current();return!!(i&&o.Dom.closest(i,"a",t.editor))},popup:(t,i,n)=>t.e.fire("generateLinkForm.link",i,n),tags:["a"],tooltip:"Insert link"}},27190:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> '},42345:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> '},65517:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(21537),l=n(50911);n(5827);var u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class c extends l.Plugin{afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.__onDblClickOnLink),t.e.on(t.editor,"click.link",this.__onClickReadOnlyLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{let i=t.dlg({resizable:!1}),n=this.__generateForm(t.s.current(),()=>{i.close()});n.container.classList.add("jodit-dialog_alert"),i.setContent(n),i.open(),t.async.requestIdleCallback(()=>{let{url_input:t}=(0,a.refs)(n.container);null==t||t.focus()})},hotkeys:t.o.link.hotkeys})}__onDblClickOnLink(t){if(!r.Dom.isTag(t.target,"a"))return;let i=(0,a.attr)(t.target,"href");i&&(location.href=i,t.preventDefault())}onProcessPasteLink(t,i){var n,o,r,s;let{jodit:l}=this;if((0,a.isURL)(i)&&l.o.link.processPastedLink){if(l.e.stopPropagation("processPaste"),l.o.link.processVideoLink){let t=(0,a.call)(null!=(o=null==(n=l.o.video)?void 0:n.parseUrlToVideoEmbed)?o:a.convertMediaUrlToVideoEmbed,i,{width:null==(r=l.o.video)?void 0:r.defaultWidth,height:null==(s=l.o.video)?void 0:s.defaultHeight});if(t!==i)return l.createInside.fromHTML(t)}if(l.s.isCollapsed()){let t=l.createInside.element("a");return(0,a.attr)(t,"href",i),t.textContent=i,l.e.fire("applyLink",l,t,null),t}return l.s.commitStyle({element:"a",attributes:{href:i}}),!0}}__generateForm(t,i){let n,{jodit:o}=this,s=o.i18n.bind(o),{openInNewTabCheckbox:l,openInNewTabCheckboxDefaultChecked:u,noFollowCheckbox:c,formTemplate:d,formClassName:h,modeClassName:p}=o.o.link,f=d(o),m=(0,a.isString)(f)?o.c.fromHTML(f,{target_checkbox_box:l,nofollow_checkbox_box:c}):f,g=r.Dom.isElement(m)?m:m.container,b=(0,a.refs)(g),{insert:v,unlink:y,content_input_box:_}=b,{target_checkbox:C,nofollow_checkbox:w,url_input:F}=b,E=r.Dom.isImage(t),{content_input:k}=b,{className_input:S}=b,{className_select:A}=b,{aria_label_input:D}=b;k||(k=o.c.element("input",{type:"hidden",ref:"content_input"})),h&&g.classList.add(h),E&&r.Dom.hide(_);let x=()=>n?n.innerText:(0,a.stripTags)(o.s.range.cloneContents(),o.ed);n=!!(t&&r.Dom.closest(t,"a",o.editor))&&r.Dom.closest(t,"a",o.editor),!E&&t&&(k.value=x()),D&&(D.value=n&&(0,a.attr)(n,"aria-label")||""),n?(F.value=(0,a.attr)(n,"href")||"",p&&function(t,i,n,o){switch(t){case"input":i&&(i.value=(0,a.attr)(n,"class")||"");break;case"select":if(o){for(let t=0;t<o.selectedOptions.length;t++){let i=o.options.item(t);i&&(i.selected=!1)}((0,a.attr)(n,"class")||"").split(/\s+/).filter(t=>t.trim().length>0).forEach(t=>{if(t)for(let i=0;i<o.options.length;i++){let n=o.options.item(i);(null==n?void 0:n.value)&&n.value.split(/\s+/).map(t=>t.trim()).includes(t)&&(n.selected=!0)}})}}}(p,S,n,A),l&&C&&(C.checked="_blank"===(0,a.attr)(n,"target")),c&&w&&(w.checked=((0,a.attr)(n,"rel")||"").split(/\s+/).includes("nofollow")),v.textContent=s("Update")):(r.Dom.hide(y),l&&C&&(C.checked=u)),o.editor.normalize();let I=o.history.snapshot.make();y&&o.e.on(y,"click",t=>{o.s.restore(),o.history.snapshot.restore(I),n&&r.Dom.unwrap(n),o.synchronizeValues(),i(),t.preventDefault()});let B=()=>{let t;if(!F.value.trim().length)return F.focus(),F.classList.add("jodit_error"),!1;o.s.restore(),o.s.removeMarkers(),o.editor.normalize(),o.history.snapshot.restore(I);let s=x()!==k.value.trim(),u=o.createInside;if(n&&r.Dom.isOrContains(o.editor,n))t=[n];else{if(o.s.isCollapsed()){let i=u.element("a");o.s.insertNode(i,!1,!1),t=[i]}else{let i=o.s.current();t=r.Dom.isTag(i,"img")?[r.Dom.wrap(i,"a",u)]:o.s.wrapInTag("a")}t.forEach(t=>o.s.select(t))}return t.forEach(t=>{var i;let n;if((0,a.attr)(t,"href",F.value),function(t,i,n,o){var r;if(t&&(null!=i?i:n)){if("input"===t)""===i.value&&o.hasAttribute("class")&&(0,a.attr)(o,"class",null),""!==i.value&&(0,a.attr)(o,"class",i.value);else if("select"===t){o.hasAttribute("class")&&(0,a.attr)(o,"class",null);for(let t=0;t<n.selectedOptions.length;t++){let i=null==(r=n.selectedOptions.item(t))?void 0:r.value;i&&i.split(/\s+/).filter(t=>t.trim().length>0).forEach(t=>{o.classList.add(t)})}}}}(p,S,A,t),E||(i=k,n=t.textContent,i.value.trim().length?s&&(n=i.value):n=F.value,n!==t.textContent&&(t.textContent=n)),l&&C&&(0,a.attr)(t,"target",C.checked?"_blank":null),c&&w){let i=((0,a.attr)(t,"rel")||"").split(/\s+/).filter(Boolean),n=i.includes("nofollow");w.checked&&!n?i.push("nofollow"):!w.checked&&n&&i.splice(i.indexOf("nofollow"),1),(0,a.attr)(t,"rel",i.length?i.join(" "):null)}if(D){let i=D.value.trim();(0,a.attr)(t,"aria-label",i||null)}o.e.fire("applyLink",o,t,m)}),o.synchronizeValues(),i(),!1};return r.Dom.isElement(m)?o.e.on(m,"submit",t=>(t.preventDefault(),t.stopImmediatePropagation(),B(),!1)):m.onSubmit(B),m}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(t.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}__onClickReadOnlyLink(t){let{jodit:i}=this;i.o.readonly&&i.o.link.preventReadOnlyNavigation&&r.Dom.isTag(t.target,"a")&&t.preventDefault()}constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}}u([o.autobind],c.prototype,"__onDblClickOnLink",null),u([o.autobind],c.prototype,"onProcessPasteLink",null),u([o.autobind],c.prototype,"__generateForm",null),u([o.autobind],c.prototype,"__onClickReadOnlyLink",null),s.pluginSystem.add("link",c)},10411:function(t,i,n){"use strict";n.d(i,{formTemplate:function(){return s}});var o=n(62843),r=n(2525);let s=t=>{let{openInNewTabCheckbox:i,noFollowCheckbox:n,ariaLabelInput:s,modeClassName:a,selectSizeClassName:l,selectMultipleClassName:u,selectOptionsClassName:c}=t.o.link;return new r.UIForm(t,[new r.UIBlock(t,[new r.UIInput(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),s?new r.UIBlock(t,[new r.UIInput(t,{name:"ariaLabel",ref:"aria_label_input",label:"Aria label"})]):null,new r.UIBlock(t,[new r.UIInput(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),a?new r.UIBlock(t,["input"===a?new r.UIInput(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===a?new r.UISelect(t,{name:"className",ref:"className_select",label:"Class name",size:l,multiple:u,options:c}):null]):null,i?new r.UICheckbox(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,n?new r.UICheckbox(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new r.UIBlock(t,[new o.UIButton(t,{name:"unlink",variant:"default",text:"Unlink"}),new o.UIButton(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},757:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.mediaFakeTag="jodit-media",o.Config.prototype.mediaInFakeBlock=!0,o.Config.prototype.mediaBlocks=["video","audio"]},20071:function(t,i,n){"use strict";var o=n(82758),r=n(580),s=n(43555);n(757),r.pluginSystem.add("media",function(t){let i="jodit_fake_wrapper",{mediaFakeTag:n,mediaBlocks:r,mediaInFakeBlock:a}=t.options;a&&t.e.on("afterGetValueFromEditor",t=>{let o=RegExp(`<${n}[^>]+data-${i}[^>]+>([^]+?)</${n}>`,"ig");o.test(t.value)&&(t.value=t.value.replace(o,"$1"))}).on("change afterInit afterSetMode changePlace",t.async.debounce(()=>{t.isDestructed||t.getMode()===o.MODE_SOURCE||(0,s.$$)(r.join(","),t.editor).forEach(o=>{if(!(0,s.dataBind)(o,i)){(0,s.dataBind)(o,i,!0);var r=o;if(r.parentNode&&(0,s.attr)(r.parentNode,"data-jodit_iframe_wrapper"))r=r.parentNode;else{let o=t.createInside.element(n,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,[`data-${i}`]:1});(0,s.attr)(o,"style",(0,s.attr)(r,"style")),o.style.display="inline-block"===r.style.display?"inline-block":"block",o.style.width=r.offsetWidth+"px",o.style.height=r.offsetHeight+"px",r.parentNode&&r.parentNode.insertBefore(o,r),o.appendChild(r),r=o}t.e.off(r,"mousedown.select touchstart.select").on(r,"mousedown.select touchstart.select",()=>{t.s.setCursorAfter(r)})}})},t.defaultTimeout))})},37585:function(t,i,n){"use strict";var o=n(82758),r=n(21537),s=n(6441),a=n(11676),l=n(21491);s.Config.prototype.mobileTapTimeout=300,s.Config.prototype.toolbarAdaptive=!0,s.Config.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],s.Config.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],s.Config.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],s.Config.prototype.controls.dots={mode:o.MODE_SOURCE+o.MODE_WYSIWYG,popup:(t,i,n,o)=>{let s=o.control.data;return void 0===s&&(s={toolbar:(0,l.makeCollection)(t),rebuild:()=>{var i,n;if(o){let l=t.e.fire("getDiffButtons.mobile",o.closest(a.ToolbarCollection));if(l&&s){s.toolbar.build((0,r.splitArray)(l));let o=(null==(n=null==(i=t.toolbar)?void 0:i.firstButton)?void 0:n.container.offsetWidth)||36;s.toolbar.container.style.width=(o+4)*3+"px"}}}},o.control.data=s),s.rebuild(),s.toolbar},tooltip:"Show all"}},32309:function(t,i,n){"use strict";var o=n(580),r=n(21537),s=n(43649);n(37585),o.pluginSystem.add("mobile",function(t){let i=0,n=(0,r.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",n=>{if(n.changedTouches&&n.changedTouches.length){let o=new Date().getTime(),r=o-i;r>t.o.mobileTapTimeout&&(i=o,r<1.5*t.o.mobileTapTimeout&&t.s.insertCursorAtPoint(n.clientX,n.clientY))}}),t.e.on("getDiffButtons.mobile",i=>{if(i===t.toolbar){let i=(0,s.flatButtonsSet)((0,r.splitArray)(t.o.buttons),t),o=(0,s.flatButtonsSet)(n,t);return(0,r.toArray)(i).reduce((t,i)=>(o.has(i)||t.push(i),t),[])}}),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",()=>{var i,o;if(!t.o.toolbar)return;let s=(null!=(i=t.container.parentElement)?i:t.container).offsetWidth,a=t.isFullSize||s>=t.o.sizeLG?(0,r.splitArray)(t.o.buttons):s>=t.o.sizeMD?(0,r.splitArray)(t.o.buttonsMD):s>=t.o.sizeSM?(0,r.splitArray)(t.o.buttonsSM):(0,r.splitArray)(t.o.buttonsXS);a.toString()!==n.toString()&&(n=a,t.e.fire("closeAllPopups"),null==(o=t.toolbar)||o.setRemoveButtons(t.o.removeButtons).build(n.concat(t.o.extraButtons)))}).on(t.ow,"load resize",()=>t.e.fire("recalcAdaptive"))})},57951:function(t,i,n){"use strict";var o=n(86583),r=n(12153),s=n(6441),a=n(13465),l=n(50267);let u=(t,i,{control:n})=>{var r;let s=`button${n.command}`,a=null!=(r=n.args&&n.args[0])?r:(0,o.dataBind)(t,s);(0,o.dataBind)(t,s,a),t.execCommand(n.command,!1,"default"===a?null:a)};r.Icon.set("ol",a.default).set("ul",l.default),s.Config.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},s.Config.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:u}},13465:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},50267:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '},64837:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(50911);n(57951);class a extends s.Plugin{afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,i,n){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:null!=n?n:null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],a.prototype,"onCommand",null),r.pluginSystem.add("orderedList",a)},71842:function(t,i,n){"use strict";var o=n(82758),r=n(6441);r.Config.prototype.askBeforePasteFromWord=!0,r.Config.prototype.processPasteFromWord=!0,r.Config.prototype.defaultActionOnPasteFromWord=null,r.Config.prototype.pasteFromWordActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Clean"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}]},31571:function(t,i,n){"use strict";n.d(i,{pasteFromWord:function(){return c}});var o=n(82758),r=n(65478),s=n(580),a=n(21537),l=n(50911);n(71842);var u=n(117);class c extends l.Plugin{afterInit(t){}beforeDestruct(t){}processWordHTML(t,i,n){let{j:o}=this,{processPasteFromWord:r,askBeforePasteFromWord:s,defaultActionOnPasteFromWord:l,defaultActionOnPaste:c,pasteFromWordActionList:d}=o.o;return!!(r&&(0,a.isHtmlFromWord)(i))&&(s?(0,u.askInsertTypeDialog)(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",o=>{this.insertFromWordByType(t,i,o,n)},d):this.insertFromWordByType(t,i,l||c,n),!0)}insertFromWordByType(t,i,n,r){var s;switch(n){case o.INSERT_AS_HTML:{i=(0,a.applyStyles)(i);let t=null==(s=this.j.events)?void 0:s.fire("beautifyHTML",i);(0,a.isString)(t)&&(i=t);break}case o.INSERT_AS_TEXT:i=(0,a.cleanFromWord)(i);break;case o.INSERT_ONLY_TEXT:i=(0,a.stripTags)((0,a.cleanFromWord)(i),this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText)}(0,u.pasteInsertHtml)(t,this.j,i)}}c.requires=["paste"],function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.watch)(":processHTML")],c.prototype,"processWordHTML",null),s.pluginSystem.add("pasteFromWord",c)},85407:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(21537),l=n(20356),u=n(10830);class c extends l.Plugin{createDialog(){this.dialog=this.j.dlg();let t=(0,u.Button)(this.j,"paste","Paste","primary");t.onAction(this.paste);let i=(0,u.Button)(this.j,"","Cancel");i.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,i]),this.j.e.on(this.listBox,"click dblclick",t=>{let i=t.target;return r.Dom.isTag(i,"a")&&i.hasAttribute("data-index")&&this.selectIndex(parseInt((0,a.attr)(i,"-index")||"0",10)),"dblclick"===t.type&&this.paste(),!1})}afterInit(){this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",()=>this.list.length).on("afterCopy.paste-storage",t=>{-1!==this.list.indexOf(t)&&this.list.splice(this.list.indexOf(t),1),this.list.unshift(t),this.list.length>5&&(this.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}beforeDestruct(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),r.Dom.safeRemove(this.previewBox),r.Dom.safeRemove(this.listBox),r.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}constructor(){super(...arguments),this.currentIndex=0,this.list=[],this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.paste=()=>{if(this.j.s.focus(),this.j.s.insertHTML(this.list[this.currentIndex]),0!==this.currentIndex){let t=this.list[0];this.list[0]=this.list[this.currentIndex],this.list[this.currentIndex]=t}this.dialog&&this.dialog.close(),this.j.synchronizeValues(),this.j.e.fire("afterPaste")},this.onKeyDown=t=>{let i=this.currentIndex;if(-1!==[o.KEY_UP,o.KEY_DOWN,o.KEY_ENTER].indexOf(t.key)){if(t.key===o.KEY_UP&&(0===i?i=this.list.length-1:i-=1),t.key===o.KEY_DOWN&&(i===this.list.length-1?i=0:i+=1),t.key===o.KEY_ENTER)return void this.paste();i!==this.currentIndex&&this.selectIndex(i),t.stopImmediatePropagation(),t.preventDefault()}},this.selectIndex=t=>{this.listBox&&(0,a.toArray)(this.listBox.childNodes).forEach((i,n)=>{i.classList.remove("jodit_active"),t===n&&this.previewBox&&(i.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],i.focus())}),this.currentIndex=t},this.showDialog=()=>{this.list.length<2||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach((t,i)=>{let n=this.j.c.element("a");n.textContent=i+1+". "+t.replace((0,o.SPACE_REG_EXP)(),""),this.j.e.on(n,"keydown",this.onKeyDown),(0,a.attr)(n,"href","#"),(0,a.attr)(n,"data-index",i.toString()),(0,a.attr)(n,"tab-index","-1"),this.listBox&&this.listBox.appendChild(n)}),this.dialog&&this.dialog.open(),this.j.async.setTimeout(()=>{this.selectIndex(0)},100))}}}s.pluginSystem.add("pasteStorage",c)},84380:function(t,i,n){"use strict";var o=n(82758),r=n(6441),s=n(117);function a(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}r.Config.prototype.askBeforePasteHTML=!0,r.Config.prototype.processPasteHTML=!0,r.Config.prototype.scrollToPastedContent=!0,r.Config.prototype.pasteExcludeStripTags=["br","hr"],r.Config.prototype.pasteHTMLActionList=[{value:o.INSERT_AS_HTML,text:"Keep"},{value:o.INSERT_AS_TEXT,text:"Insert as Text"},{value:o.INSERT_ONLY_TEXT,text:"Insert only Text"}],r.Config.prototype.memorizeChoiceWhenPasteFragment=!1,r.Config.prototype.nl2brInPlainText=!0;let l="pasteStorage";r.Config.prototype.controls.paste={tooltip:"Paste from clipboard",exec(t,i,n){var r;return(r=function*(t,i,{control:n}){var r;if(n.name===l)return void t.execCommand("showPasteStorage");t.s.focus();let a="",u=!0;if(navigator.clipboard){try{let t=yield navigator.clipboard.read();if(t&&t.length){let i=t[0],n=(null==(r=i.types)?void 0:r.includes(o.TEXT_HTML))?o.TEXT_HTML:o.TEXT_PLAIN,s=yield i.getType(n);a=yield new Response(s).text()}u=!1}catch(t){o.IS_PROD}if(u)try{a=yield navigator.clipboard.readText(),u=!1}catch(t){o.IS_PROD}}u&&(u=0===(a=t.buffer.get(o.CLIPBOARD_ID)||"").length);let c=t.value;u?(t.ed.execCommand("paste"),(u=c===t.value)||t.e.fire("afterPaste")):a.length?((0,s.pasteInsertHtml)(null,t,a),t.e.fire("afterPaste")):u&&t.alert("Your browser doesn't support direct access to the clipboard.",()=>void t.s.focus())},function(){var t=this,i=arguments;return new Promise(function(n,o){var s=r.apply(t,i);function l(t){a(s,n,o,l,u,"next",t)}function u(t){a(s,n,o,l,u,"throw",t)}l(void 0)})}).apply(this,arguments)},list:{[l]:"Paste Storage"},isChildDisabled(t){return 2>t.e.fire("pasteStorageList")}}},117:function(t,i,n){"use strict";n.d(i,{askInsertTypeDialog:function(){return c},getAllTypes:function(){return u},pasteInsertHtml:function(){return l}});var o=n(82758),r=n(2748),s=n(27613),a=n(10830);function l(t,i,n){var o;let a,l;if(i.isInDestruct)return;t&&"drop"===t.type&&i.s.insertCursorAtPoint(t.clientX,t.clientY);let u=i.e.fire("beforePasteInsert",n);!(0,s.isVoid)(u)&&((0,s.isString)(u)||(0,s.isNumber)(u)||r.Dom.isNode(u))&&(n=u),(0,s.isString)(n)&&(-1!==(a=(o=(o=n).replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i))&&(o=o.substring(a+20)),-1!==(l=o.search(/<!--EndFragment-->/i))&&(o=o.substring(0,l)),n=o),i.s.insertHTML(n)}function u(t){let i=t.types,n="";if((0,s.isArray)(i)||"[object DOMStringList]"===({}).toString.call(i))for(let t=0;t<i.length;t+=1)n+=i[t]+";";else n=(i||o.TEXT_PLAIN).toString()+";";return n}function c(t,i,n,o,r){if(!1===t.e.fire("beforeOpenPasteDialog",i,n,o,r))return;let s=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(i)}</div>`,t.i18n(n)),l=r.map(({text:i,value:n})=>(0,a.Button)(t,{text:i,name:i.toLowerCase(),tabIndex:0}).onAction(()=>{s.close(),o(n)}));s.e.one(s,"afterClose",()=>{t.s.isFocused()||t.s.focus()});let u=(0,a.Button)(t,{text:"Cancel",tabIndex:0}).onAction(()=>{s.close()});return s.setFooter([...l,u]),l[0].focus(),l[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",s,i,n,o,r),s}},79799:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(20356);n(84380);var c=n(117),d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",t=>this.pasteStack.push(t)),this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}beforeDestruct(t){t.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}onPaste(t){try{if(!1===this.customPasteProcess(t)||!1===this.j.e.fire("beforePaste",t))return t.preventDefault(),!1;this.defaultPasteProcess(t)}finally{this.j.e.fire("afterPaste",t)}}customPasteProcess(t){if(!this.j.o.processPasteHTML)return;let i=(0,l.getDataTransfer)(t),n=[null==i?void 0:i.getData(o.TEXT_PLAIN),null==i?void 0:i.getData(o.TEXT_HTML),null==i?void 0:i.getData(o.TEXT_RTF)];for(let i of n)if((0,l.isHTML)(i)&&(this.j.e.fire("processHTML",t,i,{plain:n[0],html:n[1],rtf:n[2]})||this.processHTML(t,i)))return!1}defaultPasteProcess(t){let i=(0,l.getDataTransfer)(t),n=(null==i?void 0:i.getData(o.TEXT_HTML))||(null==i?void 0:i.getData(o.TEXT_PLAIN));if(i&&n&&""!==(0,l.trim)(n)){let o=this.j.e.fire("processPaste",t,n,(0,c.getAllTypes)(i));void 0!==o&&(n=o),((0,l.isString)(n)||s.Dom.isNode(n))&&this.__insertByType(t,n,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,i){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){let n=this.pasteStack.find(t=>t.html===i);if(n)return this.__insertByType(t,i,n.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;let n=(0,c.askInsertTypeDialog)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",n=>{this._isDialogOpened=!1,this.__insertByType(t,i,n)},this.j.o.pasteHTMLActionList);return n&&(this._isDialogOpened=!0,n.e.on("beforeClose",()=>{this._isDialogOpened=!1})),!0}__insertByType(t,i,n){if(this.pasteStack.push({html:i,action:n}),(0,l.isString)(i))switch(this.j.buffer.set(o.CLIPBOARD_ID,i),n){case o.INSERT_CLEAR_HTML:i=(0,l.cleanFromWord)(i);break;case o.INSERT_ONLY_TEXT:i=(0,l.stripTags)(i,this.j.ed,new Set(this.j.o.pasteExcludeStripTags),this.j.o.nl2brInPlainText);break;case o.INSERT_AS_TEXT:i=(0,l.htmlspecialchars)(i),this.j.o.nl2brInPlainText&&(i=(0,l.nl2br)(i));break;default:{let o=this.j.e.fire("onCustomPasteHTMLOption",n,i,t);"string"==typeof o&&(i=o)}}(0,c.pasteInsertHtml)(t,this.j,i)}onProcessPasteReplaceNl2Br(t,i,n){if(n===o.TEXT_PLAIN+";"&&!(0,l.isHTML)(i)){let t=(0,l.htmlspecialchars)(i);return this.j.o.nl2brInPlainText?(0,l.nl2br)(t):t}}constructor(){super(...arguments),this.pasteStack=new l.LimitedStack(20),this._isDialogOpened=!1}}d([r.autobind],h.prototype,"onPaste",null),d([r.autobind],h.prototype,"onProcessPasteReplaceNl2Br",null),a.pluginSystem.add("paste",h)},61926:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.showPlaceholder=!0,o.Config.prototype.placeholder="Type something",o.Config.prototype.useInputsPlaceholder=!0},59451:function(t,i,n){"use strict";n.d(i,{isEditorEmpty:function(){return h}});var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(78116),u=n(29960),c=n(41180),d=n(20356);function h(t){var i;if(!t.firstChild)return!0;let n=t.firstChild;if(o.INSEPARABLE_TAGS.has(null==(i=n.nodeName)?void 0:i.toLowerCase())||/^(TABLE)$/i.test(n.nodeName))return!1;let r=s.Dom.next(n,t=>t&&!s.Dom.isEmptyTextNode(t),t);return s.Dom.isText(n)&&!r?s.Dom.isEmptyTextNode(n):!r&&s.Dom.each(n,t=>!(s.Dom.isLeaf(t)||s.Dom.isList(t))&&(s.Dom.isEmpty(t)||s.Dom.isTag(t,"br")))}n(61926);class p extends d.Plugin{afterInit(t){t.o.showPlaceholder&&(this.placeholderElm=t.c.fromHTML(`<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">${t.i18n(t.o.placeholder)}</span>`),"rtl"===t.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),t.e.on("readonly",t=>{t?this.hide():this.toggle()}).on("changePlace",this.addEvents),this.addEvents())}show(){let t=this.j;if(t.o.readonly)return;let i=0,n=0,o=t.s.current(),r=o&&s.Dom.closest(o,s.Dom.isBlock,t.editor)||t.editor,a=t.ew.getComputedStyle(r),u=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);let{firstChild:d}=t.editor;if(s.Dom.isElement(d)&&!(0,l.isMarker)(d)){let o=t.ew.getComputedStyle(d);i=parseInt(o.getPropertyValue("margin-top"),10),n=parseInt(o.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(a.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=a.getPropertyValue("line-height");(0,c.css)(this.placeholderElm,{display:"block",textAlign:a.getPropertyValue("text-align"),paddingTop:parseInt(u.paddingTop,10)+"px",paddingLeft:parseInt(u.paddingLeft,10)+"px",paddingRight:parseInt(u.paddingRight,10)+"px",marginTop:Math.max(parseInt(a.getPropertyValue("margin-top"),10),i),marginLeft:Math.max(parseInt(a.getPropertyValue("margin-left"),10),n)})}hide(){s.Dom.safeRemove(this.placeholderElm)}toggle(){let t=this.j;if(t.editor&&!t.isInDestruct){if(t.getRealMode()!==o.MODE_WYSIWYG)return void this.hide();h(t.editor)?this.show():this.hide()}}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}constructor(){super(...arguments),this.addNativeListeners=()=>{this.j.e.off(this.j.editor,"input.placeholder keydown.placeholder").on(this.j.editor,"input.placeholder keydown.placeholder",this.toggle)},this.addEvents=()=>{let t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,u.attr)(t.element,"placeholder")||""),t.e.fire("placeholder",this.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",this.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",this.toggle).on(window,"load",this.toggle),this.addNativeListeners(),this.toggle()}}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.debounce)(t=>t.defaultTimeout/10,!0)],p.prototype,"toggle",null),a.pluginSystem.add("placeholder",p)},18363:function(t,i,n){"use strict";n(580).pluginSystem.add("poweredByJodit",function(t){let{o:i}=t;!i.hidePoweredByJodit&&!i.inline&&(i.showCharsCounter||i.showWordsCounter||i.showXPathInStatusbar)&&t.hookStatus("ready",()=>{t.statusbar.append(t.create.fromHTML(`<a
208
208
  tabindex="-1"
209
209
  style="text-transform: uppercase"
210
210
  class="jodit-status-bar-link"
@@ -239,7 +239,7 @@
239
239
  <button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>
240
240
  </div>
241
241
  </div>
242
- </div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=t.toString()}set count(t){this.countBox.innerText=t.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(t){if(!this.isOpened)return;let{j:i}=this;if(i.getRealMode()===o.MODE_WYSIWYG)switch(t.key){case o.KEY_ESC:this.close();break;case o.KEY_F3:this.queryInput.value&&(i.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,i,n=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",n);let o=null!=t?t:(this.j.s.sel||"").toString();o&&(this.queryInput.value=o),i&&(this.replaceInput.value=i),this.setMod("empty-query",!o.length),this.j.e.fire(this,"needUpdateCounters"),o?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),s.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){let t=(0,a.position)(this.j.toolbarContainer);(0,a.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,a.css)(this.container,{top:null,left:null})}constructor(t){var i;super(t),i=this,this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:n,replace:r,cancel:s,next:l,prev:c,replaceBtn:d,current:h,count:p}=(0,a.refs)(this.container);this.queryInput=n,this.replaceInput=r,this.closeButton=s,this.replaceButton=d,this.currentBox=h,this.countBox=p,t.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())}).on(this.replaceButton,"pointerdown",()=>(t.e.fire(this,"pressReplaceButton"),!1)).on(l,"pointerdown",()=>(t.e.fire("searchNext"),!1)).on(c,"pointerdown",()=>(t.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,a.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(()=>{let n=this.j.async.debounce(n=>{var r;return(r=function*(){n.key===o.KEY_ENTER?(yield t.e.fire("searchNext"))&&i.close():t.e.fire(i,"needUpdateCounters")},function(){var t=this,i=arguments;return new Promise(function(n,o){var s=r.apply(t,i);function a(t){u(s,n,o,a,l,"next",t)}function l(t){u(s,n,o,a,l,"throw",t)}a(void 0)})})()},this.j.defaultTimeout);return t=>{t.key===o.KEY_ENTER&&(t.preventDefault(),t.stopImmediatePropagation()),n(t)}})())}};c([(0,r.watch)([":keydown","queryInput:keydown"])],d.prototype,"onEditorKeyDown",null),c([r.autobind],d.prototype,"open",null),c([r.autobind],d.prototype,"close",null),c([(0,r.watch)(":toggleSticky")],d.prototype,"calcSticky",null),d=c([r.component],d)},55311:function(t,i,n){"use strict";n(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(50911),c=n(76014);n(55311);var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let h="table_processor_observer",p="onMoveTableSelectCell";class f extends u.Plugin{get __tableModule(){return this.j.getInstance(c.Table,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",t=>{t.key===o.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(t=>t+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{var t;let i=this.__tableModule.getAllSelectedCells().length;if(i)return i>1&&(null==(t=this.j.s.sel)||t.removeAllRanges()),!1})}onStartSelection(t){if(this.j.o.readonly||(this.unselectCells(),t===this.j.editor))return;let i=s.Dom.closest(t,"table",this.j.editor);if(t&&i)return t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(i,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,i),{label:p,timeout:this.j.defaultTimeout/2})).on(i,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,i)),!1}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,i){var n,o;let r;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(h))return;let a=(null!=(n=this.j.o.shadowRoot)?n:this.j.ed).elementFromPoint(i.clientX,i.clientY);if(!a)return;let l=s.Dom.closest(a,["td","th"],t);if(!l||!this.__selectedCell)return;l!==this.__selectedCell&&this.j.lock(h),this.unselectCells();let u=this.__tableModule.getSelectedBound(t,[l,this.__selectedCell]),c=this.__tableModule.formalMatrix(t);for(let t=u[0][0];t<=u[1][0];t+=1)for(let i=u[0][1];i<=u[1][1];i+=1)this.__tableModule.addSelection(c[t][i]);this.__tableModule.getAllSelectedCells().length>1&&(null==(o=this.j.s.sel)||o.removeAllRanges()),this.j.e.fire("hidePopup"),i.stopPropagation(),r=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),l.appendChild(r),this.j.async.setTimeout(()=>{var t;null==(t=r.parentNode)||t.removeChild(r)},this.j.defaultTimeout/5)}__onRemoveSelection(t){var i;if(!(null==(i=null==t?void 0:t.buffer)?void 0:i.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(t,i){var n,o,r;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let a=(null!=(n=this.j.o.shadowRoot)?n:this.j.ed).elementFromPoint(i.clientX,i.clientY);if(!a)return;let u=s.Dom.closest(a,["td","th"],t);if(!u)return;let c=s.Dom.closest(u,"table",t);if(c&&c!==t)return;let d=this.__tableModule.getSelectedBound(t,[u,this.__selectedCell]),h=this.__tableModule.formalMatrix(t),f=null==(o=h[d[1][0]])?void 0:o[d[1][1]],m=null==(r=h[d[0][0]])?void 0:r[d[0][1]];m&&f&&(this.j.e.fire("showPopup",t,()=>{let t=(0,l.position)(m,this.j),i=(0,l.position)(f,this.j);return{left:t.left,top:t.top,width:i.left-t.left+i.width,height:i.top-t.top+i.height}},"cells"),(0,l.$$)("table",this.j.editor).forEach(t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p))}unselectCells(t){let i=this.__tableModule,n=i.getAllSelectedCells();n.length&&n.forEach(n=>{t&&t===n||i.removeSelection(n)})}onExecCommand(t){if(/^(delete|backspace)(word|sentence)?button$/.test(t)&&this.__tableModule.getAllSelectedCells().length>1){let t=this.__tableModule.getAllSelectedCells();return t.forEach(t=>{s.Dom.detach(t),t.appendChild(this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(t[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");let i=this.__tableModule.getAllSelectedCells();if(i.length){let[n]=i;if(!n)return;let o=s.Dom.closest(n,"table",this.j.editor);if(!o)return;switch(t){case"splitv":this.__tableModule.splitVertical(o);break;case"splitg":this.__tableModule.splitHorizontal(o);break;case"merge":this.__tableModule.mergeSelected(o);break;case"empty":i.forEach(t=>s.Dom.detach(t));break;case"bin":s.Dom.safeRemove(o);break;case"binrow":new Set(i.map(t=>t.parentNode)).forEach(t=>{this.__tableModule.removeRow(o,t.rowIndex)});break;case"bincolumn":{let t=new Set,n=[];i.forEach(i=>{let[,r]=this.__tableModule.formalCoordinate(o,i);t.has(r)||(n.push(r),t.add(r))}),n.sort((t,i)=>i-t).forEach(t=>{this.__tableModule.removeColumn(o,t)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(o,n,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(o,n.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach(i=>(0,l.alignElement)(t,i))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}}f.requires=["select"],d([r.autobind],f.prototype,"onStartSelection",null),d([(0,r.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),d([(0,r.watch)(":change")],f.prototype,"onChange",null),d([r.autobind],f.prototype,"__onRemoveSelection",null),d([r.autobind],f.prototype,"__onStopSelection",null),d([r.autobind],f.prototype,"onExecCommand",null),d([r.autobind],f.prototype,"onAfterCommand",null),a.pluginSystem.add("selectCells",f)},67215:function(t,i,n){"use strict";n(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(87058),u=n(50911),c=n(67510);n(67215);var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{afterInit(t){this.proxyEventsList.forEach(i=>{t.e.on(i+".select",this.onStartSelection)})}beforeDestruct(t){this.proxyEventsList.forEach(i=>{t.e.on(i+".select",this.onStartSelection)})}onStartSelection(t){let{j:i}=this,n,o=t.target;for(;void 0===n&&o&&o!==i.editor;)n=i.e.fire((0,l.camelCase)(t.type+"_"+o.nodeName.toLowerCase()),o,t),o=o.parentElement;"click"===t.type&&void 0===n&&o===i.editor&&i.e.fire(t.type+"Editor",o,t)}onOutsideClick(t){let i=t.target;s.Dom.up(i,t=>t===this.j.editor)||c.UIElement.closestElement(i,c.Popup)||this.j.e.fire("outsideClick",t)}beforeCommandCut(){let{s:t}=this.j;if(!t.isCollapsed()){let i=t.current();i&&s.Dom.isOrContains(this.j.editor,i)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:t}=this.j;return t.focus(),t.select(this.j.editor,!0),t.expandSelection(),!1}onClickRightOfNestedListItem(t){let{s:i}=this.j,n=i.range;if(!n.collapsed||0!==n.startOffset||!s.Dom.isText(n.startContainer))return;let o=n.startContainer,r=o.parentNode;if(!s.Dom.isTag(r,"li")||!(r.querySelector("ul")||r.querySelector("ol")))return;let a=this.j.ed.createRange();a.selectNodeContents(o);let l=a.getBoundingClientRect();t.clientX>l.right&&i.setCursorAfter(o)}onClickKeepPendingFormat(){var t,i;let{s:n}=this.j,r=n.range;if(!r.collapsed||!s.Dom.isText(r.startContainer))return;let a=r.startContainer;if(r.startOffset!==(null!=(i=null==(t=a.nodeValue)?void 0:t.length)?i:0))return;let l=a.nextSibling;if(!s.Dom.isElement(l)||!l.nodeName.match(o.IS_INLINE)||!s.Dom.isEmpty(l))return;let u=l;for(;s.Dom.isElement(u.firstElementChild)&&u.firstElementChild.nodeName.match(o.IS_INLINE);)u=u.firstElementChild;n.setCursorIn(u)}onTripleClickNormalizeSelection(t){if(3!==t.detail||!this.j.o.select.normalizeTripleClick)return;let{s:i}=this.j,{startContainer:n,startOffset:o}=i.range;0===o&&s.Dom.isText(n)&&i.select(s.Dom.closest(n,s.Dom.isBlock,this.j.editor)||n,!0)}onCopyNormalizeSelectionBound(t){let{s:i,editor:n,o}=this.j;!o.select.normalizeSelectionBeforeCutAndCopy||i.isCollapsed()||(!t||t.isTrusted&&s.Dom.isNode(t.target)&&s.Dom.isOrContains(n,t.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}}d([r.autobind],h.prototype,"onStartSelection",null),d([(0,r.watch)("ow:click")],h.prototype,"onOutsideClick",null),d([(0,r.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),d([(0,r.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),d([(0,r.watch)([":click"])],h.prototype,"onClickRightOfNestedListItem",null),d([(0,r.watch)([":click"])],h.prototype,"onClickKeepPendingFormat",null),d([(0,r.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),d([(0,r.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",h)},80792:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.minWidth=200,o.Config.prototype.maxWidth="100%",o.Config.prototype.minHeight=200,o.Config.prototype.maxHeight="auto",o.Config.prototype.saveHeightInStorage=!1},45927:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(84767),a=n(41180),l=n(20356);n(80792);var u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class c extends l.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:t}=this;if(t.o.inline)return;let{height:i}=t.o;if(t.o.saveHeightInStorage&&"auto"!==i){let n=t.storage.get("height");n&&(i=n)}(0,a.css)(t.editor,{minHeight:"100%"}),(0,a.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(i),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minHeight:i,maxHeight:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&n<t&&(t=n)}(0,a.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__setWidth(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minWidth:i,maxWidth:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&t>n&&(t=n)}(0,a.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__getNotWorkHeight(){var t,i;return((null==(t=this.j.toolbarContainer)?void 0:t.offsetHeight)||0)+((null==(i=this.j.statusbar)?void 0:i.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:i}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let n=((0,a.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,s.isNumber)(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,a.css)(t,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),(0,s.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(i=>{i&&(0,a.css)(i,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,a.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,s.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:r}=this.j.container;(t!==o||i!==r)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}u([(0,o.throttle)()],c.prototype,"__initialize",null),u([o.autobind],c.prototype,"__setHeight",null),u([o.autobind],c.prototype,"__setWidth",null),u([o.autobind],c.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",c)},36204:function(t,i,n){"use strict";var o=n(82758),r=n(12153),s=n(6441),a=n(35599);s.Config.prototype.beautifyHTML=!o.IS_IE,s.Config.prototype.sourceEditor="ace",s.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},s.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],s.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],r.Icon.set("source",a.default),s.Config.prototype.controls.source={mode:o.MODE_SPLIT,exec:t=>{t.toggleMode()},isActive:t=>t.getRealMode()===o.MODE_SOURCE,tooltip:"Change mode"}},60031:function(t,i,n){"use strict";n.d(i,{AceEditor:function(){return a}});var o=n(82758),r=n(21537),s=n(23370);class a extends s.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),i=[],n=0;for(let o=0;t>o;o++)n+=this.getLastColumnIndex(o),o>0&&(n+=1),i[o]=n;return i}getRowColumnIndices(t){let i=this.getLastColumnIndices();if(t<=i[0])return{row:0,column:t};let n=1;for(let o=1;o<i.length;o++)t>i[o]&&(n=o+1);let o=t-i[n-1]-1;return{row:n,column:o}}setSelectionRangeIndices(t,i){let n=this.getRowColumnIndices(t),o=this.getRowColumnIndices(i);this.instance.getSelection().setSelectionRange({start:n,end:o})}getIndexByRowColumn(t,i){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+i}init(t){let i=()=>{if(void 0!==this.instance||!this.aceExists())return;let i=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(i);let n=t.ow.ace;this.instance=n.edit(i),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let r=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===o.MODE_WYSIWYG)return;let i=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),i&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()},n=()=>{t.isInDestruct||t.getRealMode()!==o.MODE_SOURCE&&t.getMode()!==o.MODE_SPLIT||(this.fromWYSIWYG(),i())};t.e.on("afterSetMode",n),n(),this.aceExists()||(0,r.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(n).catch(()=>null)}destruct(){var t,i;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(i=null==(t=this.j)?void 0:t.events)||i.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let i=this.j.e.fire("beautifyHTML",t);(0,r.isString)(i)&&(t=i)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let i=this.instance.selection.getCursor(),n=this.instance.session.insert(i,t);this.instance.selection.setRange({start:i,end:n},!1)}setSelectionRange(t,i){this.setSelectionRangeIndices(t,i)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{t.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=t=>{this.j.e.fire("blur",t)},this.proxyOnFocus=t=>{this.j.e.fire("focus",t)},this.proxyOnMouseDown=t=>{this.j.e.fire("mousedown",t)}}}},7483:function(t,i,n){"use strict";n.d(i,{TextAreaEditor:function(){return l}});var o=n(2748),r=n(29960),s=n(41180),a=n(23370);class l extends a.SourceEditor{init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===t.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",t=>{(0,s.css)(this.instance,"minHeight",t)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",i=>{t.e.fire(i.type,i)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){let i=this.getValue();if(this.getSelectionStart()>=0){let n=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(i.substring(0,n)+t+i.substring(o,i.length))}else this.setValue(i+t)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,i=t){this.instance.setSelectionRange(t,i)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){(0,r.attr)(this.instance,"placeholder",t)}setReadOnly(t){(0,r.attr)(this.instance,"readonly",t?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",i=>{if((i.ctrlKey||i.metaKey)&&"z"===i.key)return i.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout,!0)}}},52968:function(t,i,n){"use strict";n.d(i,{AceEditor:function(){return o.AceEditor},TextAreaEditor:function(){return r.TextAreaEditor}});var o=n(60031),r=n(7483)},70022:function(t,i,n){"use strict";n.d(i,{createSourceEditor:function(){return s}});var o=n(21537),r=n(52968);function s(t,i,n,s,a){let l;if((0,o.isFunction)(t))l=t(i);else switch(t){case"ace":if(!i.o.shadowRoot){l=new r.AceEditor(i,n,s,a);break}default:l=new r.TextAreaEditor(i,n,s,a)}return l.init(i),l.onReadyAlways(()=>{l.setReadOnly(i.o.readonly)}),l}},23370:function(t,i,n){"use strict";n.d(i,{SourceEditor:function(){return o}});class o{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){var i;this.isReady?t():null==(i=this.j.events)||i.on(this,"ready",t)}constructor(t,i,n,o){this.jodit=t,this.container=i,this.toWYSIWYG=n,this.fromWYSIWYG=o,this.className="",this.isReady=!1}}},52951:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(50911);n(36204);var c=n(70022),d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{onInsertHTML(t){var i;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(i=this.sourceEditor)||i.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;let t=this.j.getEditorValue(!1,o.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,i){for(i=i.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,t=>{let i="";for(let n=0;n<t.length;n+=1)i+=o.INVISIBLE_SPACE;return i});t>0&&i[t]===o.INVISIBLE_SPACE;)t--;let n=t;for(;n>0;){if("<"===i[--n]&&void 0!==i[n+1]&&i[n+1].match(/[\w/]+/i))return n;if(">"===i[n])break}return t}clnInv(t){return t.replace(o.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){var i;if("selectall"===t.toLowerCase()&&this.j.getRealMode()===o.MODE_SOURCE)return null==(i=this.sourceEditor)||i.selectAll(),!1}getMirrorValue(){var t;return(null==(t=this.sourceEditor)?void 0:t.getValue())||""}setMirrorValue(t){var i;null==(i=this.sourceEditor)||i.setValue(t)}setFocusToMirror(){var t;let i=this.j.od.activeElement;(!i||i===this.j.od.body||this.j.container.contains(i))&&(null==(t=this.sourceEditor)||t.focus())}saveSelection(){if(this.j.getRealMode()===o.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let i=this.j.s.marker(!0),n=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,n)+this.clnInv(i.outerHTML)+t.substring(n))}else{let i=this.j.s.marker(!0),n=this.j.s.marker(!1),o=this.getNormalPosition(this.getSelectionStart(),t),r=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,o)+this.clnInv(i.outerHTML)+t.slice(o,r)+this.clnInv(n.outerHTML)+t.slice(r))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===o.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let t=this.getMirrorValue(),i=0,n=0;try{if(t=t.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let i=this.j.e.fire("beautifyHTML",t);(0,l.isString)(i)&&(t=i)}if(n=i=t.indexOf(this.tempMarkerStart),t=t.replace(this.tempMarkerStartReg,""),-1!==i){let i=t.indexOf(this.tempMarkerEnd);-1!==i&&(n=i)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(i,n),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,i){var n;null==(n=this.sourceEditor)||n.setSelectionRange(t,i)}onReadonlyReact(){var t;null==(t=this.sourceEditor)||t.setReadOnly(this.j.o.readonly)}afterInit(t){if(this.mirrorContainer=t.c.div("jodit-source"),t.workplace.appendChild(this.mirrorContainer),t.e.on("afterAddPlace changePlace afterInit",()=>{t.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=(0,c.createSourceEditor)("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",t=>{var i;t.key===o.KEY_ESC&&(null==(i=this.sourceEditor)?void 0:i.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),t.e.on("placeholder.source",t=>{var i;null==(i=this.sourceEditor)||i.setPlaceHolder(t)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",t=>t),t.o.beautifyHTML){let i=()=>{var i;if(t.isInDestruct)return!1;let n=t.ow.html_beautify;return!!n&&!t.isInDestruct&&(null==(i=t.events)||i.off("beautifyHTML").on("beautifyHTML",t=>n(t)),!0)};i()||(0,l.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(i,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){let i=this.j;(i.getMode()===o.MODE_SPLIT||i.getMode()===o.MODE_SOURCE)&&this.fromWYSIWYG(t)}initSourceEditor(t){var i;if("area"!==t.o.sourceEditor){let i=(0,c.createSourceEditor)(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);i.onReadyAlways(()=>{var n,o;null==(n=this.sourceEditor)||n.destruct(),this.sourceEditor=i,this.syncValueFromWYSIWYG(!0),null==(o=t.events)||o.fire("sourceEditorReady",t)})}else null==(i=this.sourceEditor)||i.onReadyAlways(()=>{var i;this.syncValueFromWYSIWYG(!0),null==(i=t.events)||i.fire("sourceEditorReady",t)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),s.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var t,i;return null!=(i=null==(t=this.sourceEditor)?void 0:t.getSelectionStart())?i:0},this.getSelectionEnd=()=>{var t,i;return null!=(i=null==(t=this.sourceEditor)?void 0:t.getSelectionEnd())?i:0}}}d([(0,r.watch)(":insertHTML.source")],h.prototype,"onInsertHTML",null),d([r.autobind],h.prototype,"fromWYSIWYG",null),d([r.autobind],h.prototype,"toWYSIWYG",null),d([r.autobind],h.prototype,"getNormalPosition",null),d([(0,r.watch)(":beforeCommand.source")],h.prototype,"onSelectAll",null),d([(0,r.watch)(":beforeSetMode.source")],h.prototype,"saveSelection",null),d([(0,r.watch)(":afterSetMode.source")],h.prototype,"removeSelection",null),d([r.autobind],h.prototype,"setMirrorSelectionRange",null),d([(0,r.watch)(":readonly.source")],h.prototype,"onReadonlyReact",null),d([r.autobind],h.prototype,"syncValueFromWYSIWYG",null),a.pluginSystem.add("source",h)},35599:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> '},46614:function(t,i,n){"use strict";var o=n(87612),r=n(70799),s=n(29960),a=n(86583),l=n(12153),u=n(6441),c=n(26532),d=n(93602),h=n(75259);u.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},l.Icon.set("speech-recognize",h.default),u.Config.prototype.controls.speechRecognize={isVisible(t){return!!t.o.speechRecognize.api},isActive(t,i){let n=(0,a.dataBind)(t,"speech");return!!(null==n?void 0:n.isEnabled)},isDisabled(t){return!t.o.speechRecognize.api},exec(t,i,{button:n,control:l}){var u;let{api:c,lang:h,continuous:p,interimResults:f,sound:m}=t.o.speechRecognize;if(!c)return void t.alert("Speech recognize API unsupported in your browser");let g=(0,a.dataBind)(t,"speech");if(!g){let i=new c;(g=new d.RecognizeManager(t.async,i)).lang=(0,r.isString)(h)?h:null!=(u=(0,s.attr)(t.od.documentElement,"lang"))?u:void 0,g.continuous=p,g.interimResults=f,g.sound=m,(0,a.dataBind)(t,"speech",g),g.on("pulse",t=>{n.setMod("pulse",t)}),g.on("result",i=>t.e.fire("speechRecognizeResult",i)),g.on("progress",i=>t.e.fire("speechRecognizeProgressResult",i)),g.on("error",i=>t.message.error(i)),t.hookStatus("beforeDestruct",()=>{(0,a.dataBind)(t,"speech",null),g.destruct()})}if(l.args){let t=l.args[0];if((0,o.isBoolean)(g[t])){g[t]=!g[t],g.isEnabled&&g.restart();return}}g.toggle(),g.isEnabled&&n.setMod("pulse",!0),n.state.activated=g.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(t,i,n){var o;let r=(0,a.dataBind)(t,"speech"),s=null!=(o=null==r?void 0:r[i])?o:t.o.speechRecognize[i];return`<span class='jodit-speech-recognize__list-item'><input ${s?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${n}</span>`},mods:{stroke:!1}}},85567:function(t,i,n){"use strict";n.d(i,{PII:function(){return o},WARN:function(){return r}});let o=440,r=940},26532:function(t,i,n){"use strict";n.d(i,{SpeechRecognition:function(){return r}});var o=n(82758);let r=o.globalWindow?o.globalWindow.SpeechRecognition||o.globalWindow.webkitSpeechRecognition:void 0},54076:function(t,i,n){"use strict";function o(t,i){let[n,o]=i.split("::");"open"===n.toLowerCase()&&o&&/^(javascript:|data:|vbscript:)/i.test(o.trim())||t.execCommand(n,null,o)}n.d(i,{execSpellCommand:function(){return o}})},93602:function(t,i,n){"use strict";n.d(i,{RecognizeManager:function(){return u}});var o=n(65478),r=n(72757),s=n(37643),a=n(85567),l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends r.Eventify{set lang(t){this._lang=t,this._api.lang=t}get lang(){return this._lang}set continuous(t){this._continuous=t,this._api.continuous=t}get continuous(){return this._continuous}set interimResults(t){this._interimResults=t,this._api.interimResults=t}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,s.closeSound)(this),u._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,u._instances.forEach(t=>{t!==this&&t.stop()});try{this._api.start()}catch(t){this._onError(t),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(t,i){return this._api.addEventListener(t,i),this}__off(t,i){return this._api.removeEventListener(t,i),this}_onResults(t){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(a.PII),this.restart()}_onProgress(t){if(this._isEnabled&&(this.__interimResults="",t.results)){for(let i=0;i<t.results.length;i++){let n=t.results.item(i);if(n.length){let{transcript:t}=n.item(0);this.__interimResults+=t}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(t){"voice-unavailable"===t.error&&this.emit("error","Voice unavailable"),"not-allowed"===t.error&&this.emit("error","Not allowed"),("language-unavailable"===t.error||"language-not-supported"===t.error)&&this.emit("error","Language unavailable"),this._makeSound(a.WARN),this.emit("pulse",!1),this.stop()}_makeSound(t){this.sound&&(0,s.sound)(this,{frequency:t})}constructor(t,i){super(),this.async=t,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=t=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(a.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=i,u._instances.add(this)}}u._instances=new Set,l([o.autobind],u.prototype,"_onResults",null),l([o.autobind],u.prototype,"_onProgress",null),l([o.autobind],u.prototype,"_onError",null)},37643:function(t,i,n){"use strict";n.d(i,{closeSound:function(){return l},sound:function(){return a}});var o=n(82758),r=n(85567);let s=new WeakMap;function a(t,{sec:i=.1,frequency:n=r.PII,gain:l=.1,type:u="sine"}={}){let c=function(t){if(!o.globalWindow)return null;let i=s.get(t);if(i&&"closed"!==i.state)return i;let n=o.globalWindow.AudioContext||o.globalWindow.webkitAudioContext;if(!n)return null;let r=new n;return s.set(t,r),r}(t);if(!c)return;let d=c.createGain(),h=c.createOscillator();h.type=u,h.frequency.value=n,d.gain.value=l,h.connect(d),d.connect(c.destination),h.start(),h.stop(c.currentTime+i)}function l(t){let i=s.get(t);i&&(s.delete(t),"closed"!==i.state&&i.close())}},71705:function(t,i,n){"use strict";n.r(i),i.default={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(t,i,n){"use strict";n.r(i),i.default={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},34945:function(t,i,n){"use strict";n.r(i),i.default={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(t,i,n){"use strict";n.r(i),i.default={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(t,i,n){"use strict";n.r(i),i.default={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(t,i,n){"use strict";n.r(i),i.default={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},59302:function(t,i,n){"use strict";n.r(i),i.default={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},94141:function(t,i,n){"use strict";n.r(i),i.default={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(t,i,n){"use strict";n.r(i),i.default={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},80651:function(t,i,n){"use strict";n.r(i),i.default={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return u},fr:function(){return c},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},no:function(){return y},pl:function(){return _},pt_br:function(){return C},ru:function(){return w},tr:function(){return F},ua:function(){return E},zh_cn:function(){return k},zh_tw:function(){return S}});var o=n(71705),r=n(89930),s=n(34945),a=n(63134),l=n(66835),u=n(1115),c=n(59302),d=n(94141),h=n(24877),p=n(80651),f=n(62395),m=n(16407),g=n(37272),b=n(22113),v=n(22432),y=n(17081),_=n(30798),C=n(8661),w=n(19147),F=n(93620),E=n(40372),k=n(69874),S=n(88774)},62395:function(t,i,n){"use strict";n.r(i),i.default={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(t,i,n){"use strict";n.r(i),i.default={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(t,i,n){"use strict";n.r(i),i.default={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(t,i,n){"use strict";n.r(i),i.default={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(t,i,n){"use strict";n.r(i),i.default={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(t,i,n){"use strict";n.r(i),i.default={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(t,i,n){"use strict";n.r(i),i.default={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(t,i,n){"use strict";n.r(i),i.default={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},19147:function(t,i,n){"use strict";n.r(i),i.default={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},93620:function(t,i,n){"use strict";n.r(i),i.default={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},40372:function(t,i,n){"use strict";n.r(i),i.default={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(t,i,n){"use strict";n.r(i),i.default={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(t,i,n){"use strict";n.r(i),i.default={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(t,i,n){"use strict";var o=n(37133),r=n(2748),s=n(580),a=n(37790),l=n(50911);n(46614);var u=n(2303),c=n(54076),d=n(90492),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class p extends l.Plugin{afterInit(t){let{commands:i}=t.o.speechRecognize;i&&((0,s.extendLang)(d),(0,a.keys)(i,!1).forEach(n=>{n.split("|").forEach(o=>{o=o.trim().toLowerCase(),this._commandToWord[o]=i[n];let r=t.i18n(o);r!==o&&r.split("|").forEach(t=>{this._commandToWord[t.trim().toLowerCase()]=i[n].trim()})})}))}beforeDestruct(t){r.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(t){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{r.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=t+"|"}onSpeechRecognizeResult(t){this.j.async.clearTimeout(this.__hidePopupTimeout),r.Dom.safeRemove(this.messagePopup);let{j:i}=this,{s:n}=i;if(!this._checkCommand(t)){let{range:o}=n,s=n.current();if(n.isCollapsed()&&r.Dom.isText(s)&&r.Dom.isOrContains(i.editor,s)&&s.nodeValue){let r=s.nodeValue;s.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+t,o.setStartAfter(s),n.selectRange(o),i.synchronizeValues()}else n.insertHTML(t)}}_checkCommand(t){return t=t.toLowerCase().replace(/\./g,""),!!this._commandToWord[t]&&((0,c.execSpellCommand)(this.j,this._commandToWord[t]),!0)}constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}}h([(0,o.watch)(":speechRecognizeProgressResult")],p.prototype,"onSpeechRecognizeProgressResult",null),h([(0,o.watch)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),u.Jodit.plugins.add("speech-recognize",p)},75259:function(t,i){"use strict";i.default='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '},99085:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(10937);r.Config.prototype.spellcheck=!1,o.Icon.set("spellcheck",s.default),r.Config.prototype.controls.spellcheck={isActive(t){return t.o.spellcheck},icon:s.default,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},28906:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"التدقيق الإملائي"}},24351:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Kontrola pravopisu"}},32806:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Rechtschreibpr\xfcfung"}},77725:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},26428:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"غلطیابی املایی"}},42820:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"V\xe9rification Orthographique"}},98370:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"בדיקת איות"}},44850:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},3636:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Spellchecking"}},26529:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return u},fr:function(){return c},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},no:function(){return y},pl:function(){return _},pt_br:function(){return C},ru:function(){return w},tr:function(){return F},ua:function(){return E},zh_cn:function(){return k},zh_tw:function(){return S}});var o=n(28906),r=n(24351),s=n(32806),a=n(77725),l=n(26428),u=n(42820),c=n(60373),d=n(98370),h=n(44850),p=n(3636),f=n(73220),m=n(55776),g=n(13995),b=n(6402),v=n(1879),y=n(1322),_=n(53361),C=n(70824),w=n(65140),F=n(42247),E=n(68891),k=n(63195),S=n(42107)},73220:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Controllo ortografico"}},55776:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"スペルチェック"}},13995:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"맞춤법 검사"}},6402:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Spellingcontrole"}},1322:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Stavekontroll"}},53361:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Sprawdzanie pisowni"}},70824:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},65140:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Проверка орфографии"}},42247:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Yazım denetimi"}},68891:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Перевірка орфографії"}},63195:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"拼写检查"}},42107:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"拼字檢查"}},43809:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(29960),a=n(50911);n(99085);var l=n(26529);class u extends a.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,s.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,r.extendLang)(l)}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],u.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",u)},10937:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> '},99649:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},7309:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(20356);n(99649);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){r.Dom.safeRemove(this.charCounter),r.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{let t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let i;i=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",i.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout)}}s.pluginSystem.add("stat",l)},48038:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},68687:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(20356);n(48038);let c=!o.IS_ES_NEXT&&o.IS_IE;class d extends u.Plugin{afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;let i=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,n=(0,l.offset)(t.container,t,t.od,!0),r=t.getMode()===o.MODE_WYSIWYG&&i+t.o.toolbarStickyOffset>n.top&&i+t.o.toolbarStickyOffset<n.top+n.height&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===r)return;let s=t.toolbarContainer;s&&(r?this.addSticky(s):this.removeSticky(s)),t.e.fire("toggleSticky",r)}__isMobile(){let{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){s.Dom.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=t=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,t)},this.addSticky=t=>{this.__isToolbarStuck||(c&&!this.__dummyBox&&this.__createDummy(t),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,l.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,l.css)(this.__dummyBox,{height:t.offsetHeight})},this.removeSticky=t=>{this.__isToolbarStuck&&((0,l.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.throttle)()],d.prototype,"__onScroll",null),a.pluginSystem.add("sticky",d)},87394:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(t,i,n)=>{let o=t.e.fire("generateSpecialCharactersTable.symbols");if(o){if(t.o.usePopupForSpecialCharacters){let i=t.c.div();return i.classList.add("jodit-symbols"),i.appendChild(o),t.e.on(o,"close_dialog",n),i}t.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);let i=o.querySelector("a");i&&i.focus()}}}},20741:function(t,i,n){"use strict";n.r(i),i.default={symbols:"رمز"}},3958:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},53437:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Symbol"}},56882:function(t,i,n){"use strict";n.r(i),i.default={symbols:"S\xedmbolo"}},75703:function(t,i,n){"use strict";n.r(i),i.default={symbols:"سمبل"}},49759:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Symbolit"}},44730:function(t,i,n){"use strict";n.r(i),i.default={symbols:"caract\xe8re"}},70945:function(t,i,n){"use strict";n.r(i),i.default={symbols:"תו מיוחד"}},49841:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Szimb\xf3lum"}},33295:function(t,i,n){"use strict";n.r(i),i.default={symbols:"simbol"}},32824:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return u},fr:function(){return c},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},pl:function(){return y},pt_br:function(){return _},ru:function(){return C},tr:function(){return w},ua:function(){return F},zh_cn:function(){return E},zh_tw:function(){return k}});var o=n(20741),r=n(3958),s=n(53437),a=n(56882),l=n(75703),u=n(49759),c=n(44730),d=n(70945),h=n(49841),p=n(33295),f=n(47615),m=n(83059),g=n(22396),b=n(58285),v=n(51804),y=n(53650),_=n(41369),C=n(57855),w=n(44328),F=n(91080),E=n(89702),k=n(66434)},47615:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Simbolo"}},83059:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},22396:function(t,i,n){"use strict";n.r(i),i.default={symbols:"기호"}},58285:function(t,i,n){"use strict";n.r(i),i.default={symbols:"тэмдэгт"}},51804:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbool"}},53650:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},41369:function(t,i,n){"use strict";n.r(i),i.default={symbols:"S\xedmbolo"}},57855:function(t,i,n){"use strict";n.r(i),i.default={symbols:"символ"}},44328:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Sembol"}},91080:function(t,i,n){"use strict";n.r(i),i.default={symbols:"символ"}},89702:function(t,i,n){"use strict";n.r(i),i.default={symbols:"符号"}},66434:function(t,i,n){"use strict";n.r(i),i.default={symbols:"符號"}},59495:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(43555),l=n(20356);n(87394);var u=n(32824);class c extends l.Plugin{afterInit(t){t.e.on("generateSpecialCharactersTable.symbols",()=>{let i=t.c.fromHTML(`<div class="jodit-symbols__container">
242
+ </div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=t.toString()}set count(t){this.countBox.innerText=t.toString()}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}onEditorKeyDown(t){if(!this.isOpened)return;let{j:i}=this;if(i.getRealMode()===o.MODE_WYSIWYG)switch(t.key){case o.KEY_ESC:this.close();break;case o.KEY_F3:this.queryInput.value&&(i.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,i,n=!1){this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",n);let o=null!=t?t:(this.j.s.sel||"").toString();o&&(this.queryInput.value=o),i&&(this.replaceInput.value=i),this.setMod("empty-query",!o.length),this.j.e.fire(this,"needUpdateCounters"),o?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),s.Dom.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){let t=(0,a.position)(this.j.toolbarContainer);(0,a.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,a.css)(this.container,{top:null,left:null})}constructor(t){var i;super(t),i=this,this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:n,replace:r,cancel:s,next:l,prev:c,replaceBtn:d,current:h,count:p}=(0,a.refs)(this.container);this.queryInput=n,this.replaceInput=r,this.closeButton=s,this.replaceButton=d,this.currentBox=h,this.countBox=p,t.e.on(this.closeButton,"pointerdown",()=>(this.close(),!1)).on(this.queryInput,"input",()=>{this.currentIndex=0}).on(this.queryInput,"pointerdown",()=>{t.s.isFocused()&&(t.s.removeMarkers(),this.selInfo=t.s.save())}).on(this.replaceButton,"pointerdown",()=>(t.e.fire(this,"pressReplaceButton"),!1)).on(l,"pointerdown",()=>(t.e.fire("searchNext"),!1)).on(c,"pointerdown",()=>(t.e.fire("searchPrevious"),!1)).on(this.queryInput,"input",()=>{this.setMod("empty-query",!(0,a.trim)(this.queryInput.value).length)}).on(this.queryInput,"keydown",(()=>{let n=this.j.async.debounce(n=>{var r;return(r=function*(){n.key===o.KEY_ENTER?(yield t.e.fire("searchNext"))&&i.close():t.e.fire(i,"needUpdateCounters")},function(){var t=this,i=arguments;return new Promise(function(n,o){var s=r.apply(t,i);function a(t){u(s,n,o,a,l,"next",t)}function l(t){u(s,n,o,a,l,"throw",t)}a(void 0)})})()},this.j.defaultTimeout);return t=>{t.key===o.KEY_ENTER&&(t.preventDefault(),t.stopImmediatePropagation()),n(t)}})())}};c([(0,r.watch)([":keydown","queryInput:keydown"])],d.prototype,"onEditorKeyDown",null),c([r.autobind],d.prototype,"open",null),c([r.autobind],d.prototype,"close",null),c([(0,r.watch)(":toggleSticky")],d.prototype,"calcSticky",null),d=c([r.component],d)},55311:function(t,i,n){"use strict";n(6441).Config.prototype.tableAllowCellSelection=!0},28545:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(50911),c=n(76014);n(55311);var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};let h="table_processor_observer",p="onMoveTableSelectCell";class f extends u.Plugin{get __tableModule(){return this.j.getInstance(c.Table,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",t=>{t.key===o.KEY_TAB&&this.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(t=>t+".select-cells").join(" "),this.onStartSelection).on("clickTr clickTbody",()=>{var t;let i=this.__tableModule.getAllSelectedCells().length;if(i)return i>1&&(null==(t=this.j.s.sel)||t.removeAllRanges()),!1})}onStartSelection(t,i){var n;if(this.j.o.readonly)return;let o=s.Dom.closest(t,"table",this.j.editor);return((null==i?void 0:i.ctrlKey)||(null==i?void 0:i.metaKey))&&t!==this.j.editor&&o&&s.Dom.isCell(t)?(this.__tableModule.getAllSelectedCells().includes(t)?this.__tableModule.removeSelection(t):(t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__tableModule.addSelection(t)),this.__selectedCell=t,null==(n=this.j.s.sel)||n.removeAllRanges(),this.__tableModule.getAllSelectedCells().length?this.j.e.fire("showPopup",o,()=>(0,l.position)(t,this.j),"cells"):this.j.e.fire("hidePopup","cells"),!1):(this.unselectCells(),t===this.j.editor)?void 0:t&&o?(t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(o,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,o),{label:p,timeout:this.j.defaultTimeout/2})).on(o,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,o)),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,i){var n,o;let r;if(this.j.o.readonly&&!this.j.isLocked||this.j.isLockedNotBy(h))return;let a=(null!=(n=this.j.o.shadowRoot)?n:this.j.ed).elementFromPoint(i.clientX,i.clientY);if(!a)return;let l=s.Dom.closest(a,["td","th"],t);if(!l||!this.__selectedCell)return;l!==this.__selectedCell&&this.j.lock(h),this.unselectCells();let u=this.__tableModule.getSelectedBound(t,[l,this.__selectedCell]),c=this.__tableModule.formalMatrix(t);for(let t=u[0][0];t<=u[1][0];t+=1)for(let i=u[0][1];i<=u[1][1];i+=1)this.__tableModule.addSelection(c[t][i]);this.__tableModule.getAllSelectedCells().length>1&&(null==(o=this.j.s.sel)||o.removeAllRanges()),this.j.e.fire("hidePopup"),i.stopPropagation(),r=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),l.appendChild(r),this.j.async.setTimeout(()=>{var t;null==(t=r.parentNode)||t.removeChild(r)},this.j.defaultTimeout/5)}__onRemoveSelection(t){var i;if(!(null==(i=null==t?void 0:t.buffer)?void 0:i.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length){this.j.unlock(),this.unselectCells(),this.j.e.fire("hidePopup","cells");return}this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(t,i){var n,o,r;if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();let a=(null!=(n=this.j.o.shadowRoot)?n:this.j.ed).elementFromPoint(i.clientX,i.clientY);if(!a)return;let u=s.Dom.closest(a,["td","th"],t);if(!u)return;let c=s.Dom.closest(u,"table",t);if(c&&c!==t)return;let d=this.__tableModule.getSelectedBound(t,[u,this.__selectedCell]),h=this.__tableModule.formalMatrix(t),f=null==(o=h[d[1][0]])?void 0:o[d[1][1]],m=null==(r=h[d[0][0]])?void 0:r[d[0][1]];m&&f&&(this.j.e.fire("showPopup",t,()=>{let t=(0,l.position)(m,this.j),i=(0,l.position)(f,this.j);return{left:t.left,top:t.top,width:i.left-t.left+i.width,height:i.top-t.top+i.height}},"cells"),(0,l.$$)("table",this.j.editor).forEach(t=>{this.j.e.off(t,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(p))}unselectCells(t){let i=this.__tableModule,n=i.getAllSelectedCells();n.length&&n.forEach(n=>{t&&t===n||i.removeSelection(n)})}onExecCommand(t){if(/^(delete|backspace)(word|sentence)?button$/.test(t)&&this.__tableModule.getAllSelectedCells().length>1){let t=this.__tableModule.getAllSelectedCells();return t.forEach(t=>{s.Dom.detach(t),t.appendChild(this.j.createInside.element("br"))}),this.unselectCells(),this.j.s.setCursorIn(t[0]),this.j.synchronizeValues(),!1}if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");let i=this.__tableModule.getAllSelectedCells();if(i.length){let[n]=i;if(!n)return;let o=s.Dom.closest(n,"table",this.j.editor);if(!o)return;switch(t){case"splitv":this.__tableModule.splitVertical(o);break;case"splitg":this.__tableModule.splitHorizontal(o);break;case"merge":this.__tableModule.mergeSelected(o);break;case"empty":i.forEach(t=>s.Dom.detach(t));break;case"bin":s.Dom.safeRemove(o);break;case"binrow":new Set(i.map(t=>t.parentNode)).forEach(t=>{this.__tableModule.removeRow(o,t.rowIndex)});break;case"bincolumn":{let t=new Set,n=[];i.forEach(i=>{let[,r]=this.__tableModule.formalCoordinate(o,i);t.has(r)||(n.push(r),t.add(r))}),n.sort((t,i)=>i-t).forEach(t=>{this.__tableModule.removeColumn(o,t)})}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(o,n,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(o,n.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach(i=>(0,l.alignElement)(t,i))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}}f.requires=["select"],d([r.autobind],f.prototype,"onStartSelection",null),d([(0,r.watch)(":outsideClick")],f.prototype,"onOutsideClick",null),d([(0,r.watch)(":change")],f.prototype,"onChange",null),d([r.autobind],f.prototype,"__onRemoveSelection",null),d([r.autobind],f.prototype,"__onStopSelection",null),d([r.autobind],f.prototype,"onExecCommand",null),d([r.autobind],f.prototype,"onAfterCommand",null),a.pluginSystem.add("selectCells",f)},67215:function(t,i,n){"use strict";n(6441).Config.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0}},9881:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(87058),u=n(50911),c=n(67510);n(67215);var d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{afterInit(t){this.proxyEventsList.forEach(i=>{t.e.on(i+".select",this.onStartSelection)})}beforeDestruct(t){this.proxyEventsList.forEach(i=>{t.e.on(i+".select",this.onStartSelection)})}onStartSelection(t){let{j:i}=this,n,o=t.target;for(;void 0===n&&o&&o!==i.editor;)n=i.e.fire((0,l.camelCase)(t.type+"_"+o.nodeName.toLowerCase()),o,t),o=o.parentElement;"click"===t.type&&void 0===n&&o===i.editor&&i.e.fire(t.type+"Editor",o,t)}onOutsideClick(t){let i=t.target;s.Dom.up(i,t=>t===this.j.editor)||c.UIElement.closestElement(i,c.Popup)||this.j.e.fire("outsideClick",t)}beforeCommandCut(){let{s:t}=this.j;if(!t.isCollapsed()){let i=t.current();i&&s.Dom.isOrContains(this.j.editor,i)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectAll(){let{s:t}=this.j;return t.focus(),t.select(this.j.editor,!0),t.expandSelection(),!1}onClickRightOfNestedListItem(t){let{s:i}=this.j,n=i.range;if(!n.collapsed||0!==n.startOffset||!s.Dom.isText(n.startContainer))return;let o=n.startContainer,r=o.parentNode;if(!s.Dom.isTag(r,"li")||!(r.querySelector("ul")||r.querySelector("ol")))return;let a=this.j.ed.createRange();a.selectNodeContents(o);let l=a.getBoundingClientRect();t.clientX>l.right&&i.setCursorAfter(o)}onClickKeepPendingFormat(){var t,i;let{s:n}=this.j,r=n.range;if(!r.collapsed||!s.Dom.isText(r.startContainer))return;let a=r.startContainer;if(r.startOffset!==(null!=(i=null==(t=a.nodeValue)?void 0:t.length)?i:0))return;let l=a.nextSibling;if(!s.Dom.isElement(l)||!l.nodeName.match(o.IS_INLINE)||!s.Dom.isEmpty(l))return;let u=l;for(;s.Dom.isElement(u.firstElementChild)&&u.firstElementChild.nodeName.match(o.IS_INLINE);)u=u.firstElementChild;n.setCursorIn(u)}onTripleClickNormalizeSelection(t){if(3!==t.detail||!this.j.o.select.normalizeTripleClick)return;let{s:i}=this.j,{startContainer:n,startOffset:o}=i.range;0===o&&s.Dom.isText(n)&&i.select(s.Dom.closest(n,s.Dom.isBlock,this.j.editor)||n,!0)}onCopyNormalizeSelectionBound(t){let{s:i,editor:n,o}=this.j;!o.select.normalizeSelectionBeforeCutAndCopy||i.isCollapsed()||(!t||t.isTrusted&&s.Dom.isNode(t.target)&&s.Dom.isOrContains(n,t.target))&&this.jodit.s.expandSelection()}constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}}d([r.autobind],h.prototype,"onStartSelection",null),d([(0,r.watch)("ow:click")],h.prototype,"onOutsideClick",null),d([(0,r.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),d([(0,r.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectAll",null),d([(0,r.watch)([":click"])],h.prototype,"onClickRightOfNestedListItem",null),d([(0,r.watch)([":click"])],h.prototype,"onClickKeepPendingFormat",null),d([(0,r.watch)([":click"])],h.prototype,"onTripleClickNormalizeSelection",null),d([(0,r.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),a.pluginSystem.add("select",h)},80792:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.minWidth=200,o.Config.prototype.maxWidth="100%",o.Config.prototype.minHeight=200,o.Config.prototype.maxHeight="auto",o.Config.prototype.saveHeightInStorage=!1},45927:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(84767),a=n(41180),l=n(20356);n(80792);var u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class c extends l.Plugin{afterInit(t){t.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(t.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__immediateInitialize()}__initialize(){this.__immediateInitialize()}__immediateInitialize(){let{j:t}=this;if(t.o.inline)return;let{height:i}=t.o;if(t.o.saveHeightInStorage&&"auto"!==i){let n=t.storage.get("height");n&&(i=n)}(0,a.css)(t.editor,{minHeight:"100%"}),(0,a.css)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(i),this.__setWidth(t.o.width))}__setHeight(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minHeight:i,maxHeight:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&n<t&&(t=n)}(0,a.css)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__setWidth(t){let{clientHeight:i,clientWidth:n}=this.j.container;if((0,s.isNumber)(t)){let{minWidth:i,maxWidth:n}=this.j.o;(0,s.isNumber)(i)&&i>t&&(t=i),(0,s.isNumber)(n)&&t>n&&(t=n)}(0,a.css)(this.j.container,"width",t),this.__resizeWorkspaceImd({clientHeight:i,clientWidth:n})}__getNotWorkHeight(){var t,i;return((null==(t=this.j.toolbarContainer)?void 0:t.offsetHeight)||0)+((null==(i=this.j.statusbar)?void 0:i.getHeight())||0)+2}__resizeWorkspaceImd({clientHeight:t,clientWidth:i}=this.j.container){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline||!this.j.container||!this.j.container.parentNode)return;let n=((0,a.css)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,s.isNumber)(n)&&n>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(t=>{t&&(0,a.css)(t,"minHeight",n)}),this.j.e.fire("setMinHeight",n)),(0,s.isNumber)(this.j.o.maxHeight)){let t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(i=>{i&&(0,a.css)(i,"maxHeight",t)}),this.j.e.fire("setMaxHeight",t)}if(this.j.container){let t="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";(0,a.css)(this.j.workplace,"height",t),this.j.container.style.setProperty("--jd-jodit-workplace-height",(0,s.isNumber)(t)?t+"px":t)}let{clientHeight:o,clientWidth:r}=this.j.container;(t!==o||i!==r)&&this.j.e.fire(this.j,"resize")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}}u([(0,o.throttle)()],c.prototype,"__initialize",null),u([o.autobind],c.prototype,"__setHeight",null),u([o.autobind],c.prototype,"__setWidth",null),u([o.autobind],c.prototype,"__resizeWorkspaceImd",null),r.pluginSystem.add("size",c)},36204:function(t,i,n){"use strict";var o=n(82758),r=n(12153),s=n(6441),a=n(35599);s.Config.prototype.beautifyHTML=!o.IS_IE,s.Config.prototype.sourceEditor="ace",s.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},s.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.43.3/ace.js"],s.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],r.Icon.set("source",a.default),s.Config.prototype.controls.source={mode:o.MODE_SPLIT,exec:t=>{t.toggleMode()},isActive:t=>t.getRealMode()===o.MODE_SOURCE,tooltip:"Change mode"}},60031:function(t,i,n){"use strict";n.d(i,{AceEditor:function(){return a}});var o=n(82758),r=n(21537),s=n(23370);class a extends s.SourceEditor{aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){let t=this.instance.session.getLength(),i=[],n=0;for(let o=0;t>o;o++)n+=this.getLastColumnIndex(o),o>0&&(n+=1),i[o]=n;return i}getRowColumnIndices(t){let i=this.getLastColumnIndices();if(t<=i[0])return{row:0,column:t};let n=1;for(let o=1;o<i.length;o++)t>i[o]&&(n=o+1);let o=t-i[n-1]-1;return{row:n,column:o}}setSelectionRangeIndices(t,i){let n=this.getRowColumnIndices(t),o=this.getRowColumnIndices(i);this.instance.getSelection().setSelectionRange({start:n,end:o})}getIndexByRowColumn(t,i){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+i}init(t){let i=()=>{if(void 0!==this.instance||!this.aceExists())return;let i=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(i);let n=t.ow.ace;this.instance=n.edit(i),"rtl"===t.o.direction&&(this.instance.setOption("rtlText",!0),this.instance.setOption("rtl",!0)),this.instance.setTheme(t.o.sourceEditorNativeOptions.theme),this.instance.renderer.setShowGutter(t.o.sourceEditorNativeOptions.showGutter),this.instance.getSession().setMode(t.o.sourceEditorNativeOptions.mode),this.instance.setHighlightActiveLine(t.o.sourceEditorNativeOptions.highlightActiveLine),this.instance.getSession().setUseWrapMode(!0),this.instance.setOption("indentedSoftWrap",!1),this.instance.setOption("wrap",t.o.sourceEditorNativeOptions.wrap),this.instance.getSession().setUseWorker(!1),this.instance.$blockScrolling=1/0,this.instance.on("change",this.toWYSIWYG),this.instance.on("focus",this.proxyOnFocus),this.instance.on("mousedown",this.proxyOnMouseDown),this.instance.on("blur",this.proxyOnBlur),t.getRealMode()!==o.MODE_WYSIWYG&&this.setValue(this.getValue());let r=this.j.async.throttle(()=>{if(t.isInDestruct||t.getMode()===o.MODE_WYSIWYG)return;let i=this.instance.isFocused();"auto"!==t.o.height?this.instance.setOption("maxLines",t.workplace.offsetHeight/this.instance.renderer.lineHeight):this.instance.setOption("maxLines",1/0),this.instance.resize(),i&&this.focus()},2*this.j.defaultTimeout);t.e.on(t,"resize",r).on("afterResize afterSetMode",r),r(),this.onReady()},n=()=>{t.isInDestruct||t.getRealMode()!==o.MODE_SOURCE&&t.getMode()!==o.MODE_SPLIT||(this.fromWYSIWYG(),i())};t.e.on("afterSetMode",n),n(),this.aceExists()||(0,r.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then(n).catch(()=>null)}destruct(){var t,i;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null==(i=null==(t=this.j)?void 0:t.events)||i.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let i=this.j.e.fire("beautifyHTML",t);(0,r.isString)(i)&&(t=i)}this.instance.setValue(t),this.instance.clearSelection()}getValue(){return this.instance.getValue()}setReadOnly(t){this.instance.setReadOnly(t)}get isFocused(){return this.instance.isFocused()}focus(){this.instance.container.focus(),this.instance.focus()}blur(){this.instance.blur()}getSelectionStart(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){let t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){let i=this.instance.selection.getCursor(),n=this.instance.session.insert(i,t);this.instance.selection.setRange({start:i,end:n},!1)}setSelectionRange(t,i){this.setSelectionRangeIndices(t,i)}setPlaceHolder(t){}replaceUndoManager(){let{history:t}=this.jodit;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:()=>{t.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:()=>{t.redo()}})}constructor(){super(...arguments),this.className="jodit_ace_editor",this.proxyOnBlur=t=>{this.j.e.fire("blur",t)},this.proxyOnFocus=t=>{this.j.e.fire("focus",t)},this.proxyOnMouseDown=t=>{this.j.e.fire("mousedown",t)}}}},7483:function(t,i,n){"use strict";n.d(i,{TextAreaEditor:function(){return l}});var o=n(2748),r=n(29960),s=n(41180),a=n(23370);class l extends a.SourceEditor{init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===t.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),t.e.on(this.instance,"mousedown keydown touchstart input",t.async.debounce(this.toWYSIWYG,t.defaultTimeout)).on("setMinHeight.source",t=>{(0,s.css)(this.instance,"minHeight",t)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus blur",i=>{t.e.fire(i.type,i)}),this.autosize(),this.onReady()}destruct(){o.Dom.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){let i=this.getValue();if(this.getSelectionStart()>=0){let n=this.getSelectionStart(),o=this.getSelectionEnd();this.setValue(i.substring(0,n)+t+i.substring(o,i.length))}else this.setValue(i+t)}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,i=t){this.instance.setSelectionRange(t,i)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){(0,r.attr)(this.instance,"placeholder",t)}setReadOnly(t){(0,r.attr)(this.instance,"readonly",t?"true":null)}selectAll(){this.instance.select()}replaceUndoManager(){let{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",i=>{if((i.ctrlKey||i.metaKey)&&"z"===i.key)return i.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1})}constructor(){super(...arguments),this.autosize=this.j.async.debounce(()=>{this.instance.style.height="auto",this.instance.style.height=this.instance.scrollHeight+"px"},this.j.defaultTimeout,!0)}}},52968:function(t,i,n){"use strict";n.d(i,{AceEditor:function(){return o.AceEditor},TextAreaEditor:function(){return r.TextAreaEditor}});var o=n(60031),r=n(7483)},70022:function(t,i,n){"use strict";n.d(i,{createSourceEditor:function(){return s}});var o=n(21537),r=n(52968);function s(t,i,n,s,a){let l;if((0,o.isFunction)(t))l=t(i);else switch(t){case"ace":if(!i.o.shadowRoot){l=new r.AceEditor(i,n,s,a);break}default:l=new r.TextAreaEditor(i,n,s,a)}return l.init(i),l.onReadyAlways(()=>{l.setReadOnly(i.o.readonly)}),l}},23370:function(t,i,n){"use strict";n.d(i,{SourceEditor:function(){return o}});class o{get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){var i;this.isReady?t():null==(i=this.j.events)||i.on(this,"ready",t)}constructor(t,i,n,o){this.jodit=t,this.container=i,this.toWYSIWYG=n,this.fromWYSIWYG=o,this.className="",this.isReady=!1}}},52951:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(50911);n(36204);var c=n(70022),d=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class h extends u.Plugin{onInsertHTML(t){var i;if(!this.j.o.readonly&&!this.j.isEditorMode())return null==(i=this.sourceEditor)||i.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;let t=this.j.getEditorValue(!1,o.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;let t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,i){for(i=i.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,t=>{let i="";for(let n=0;n<t.length;n+=1)i+=o.INVISIBLE_SPACE;return i});t>0&&i[t]===o.INVISIBLE_SPACE;)t--;let n=t;for(;n>0;){if("<"===i[--n]&&void 0!==i[n+1]&&i[n+1].match(/[\w/]+/i))return n;if(">"===i[n])break}return t}clnInv(t){return t.replace(o.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){var i;if("selectall"===t.toLowerCase()&&this.j.getRealMode()===o.MODE_SOURCE)return null==(i=this.sourceEditor)||i.selectAll(),!1}getMirrorValue(){var t;return(null==(t=this.sourceEditor)?void 0:t.getValue())||""}setMirrorValue(t){var i;null==(i=this.sourceEditor)||i.setValue(t)}setFocusToMirror(){var t;let i=this.j.od.activeElement;(!i||i===this.j.od.body||this.j.container.contains(i))&&(null==(t=this.sourceEditor)||t.focus())}saveSelection(){if(this.j.getRealMode()===o.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;let t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){let i=this.j.s.marker(!0),n=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,n)+this.clnInv(i.outerHTML)+t.substring(n))}else{let i=this.j.s.marker(!0),n=this.j.s.marker(!1),o=this.getNormalPosition(this.getSelectionStart(),t),r=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,o)+this.clnInv(i.outerHTML)+t.slice(o,r)+this.clnInv(n.outerHTML)+t.slice(r))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===o.MODE_WYSIWYG){this.__lock=!0,this.j.s.restore(),this.__lock=!1;return}let t=this.getMirrorValue(),i=0,n=0;try{if(t=t.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){let i=this.j.e.fire("beautifyHTML",t);(0,l.isString)(i)&&(t=i)}if(n=i=t.indexOf(this.tempMarkerStart),t=t.replace(this.tempMarkerStartReg,""),-1!==i){let i=t.indexOf(this.tempMarkerEnd);-1!==i&&(n=i)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(i,n),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,i){var n;null==(n=this.sourceEditor)||n.setSelectionRange(t,i)}onReadonlyReact(){var t;null==(t=this.sourceEditor)||t.setReadOnly(this.j.o.readonly)}afterInit(t){if(this.mirrorContainer=t.c.div("jodit-source"),t.workplace.appendChild(this.mirrorContainer),t.e.on("afterAddPlace changePlace afterInit",()=>{t.workplace.appendChild(this.mirrorContainer)}),this.sourceEditor=(0,c.createSourceEditor)("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",t=>{var i;t.key===o.KEY_ESC&&(null==(i=this.sourceEditor)?void 0:i.isFocused)&&this.sourceEditor.blur()}),this.onReadonlyReact(),t.e.on("placeholder.source",t=>{var i;null==(i=this.sourceEditor)||i.setPlaceHolder(t)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",t=>t),t.o.beautifyHTML){let i=()=>{var i;if(t.isInDestruct)return!1;let n=t.ow.html_beautify;return!!n&&!t.isInDestruct&&(null==(i=t.events)||i.off("beautifyHTML").on("beautifyHTML",t=>n(t)),!0)};i()||(0,l.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(i,()=>null)}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){let i=this.j;(i.getMode()===o.MODE_SPLIT||i.getMode()===o.MODE_SOURCE)&&this.fromWYSIWYG(t)}initSourceEditor(t){var i;if("area"!==t.o.sourceEditor){let i=(0,c.createSourceEditor)(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);i.onReadyAlways(()=>{var n,o;null==(n=this.sourceEditor)||n.destruct(),this.sourceEditor=i,this.syncValueFromWYSIWYG(!0),null==(o=t.events)||o.fire("sourceEditorReady",t)})}else null==(i=this.sourceEditor)||i.onReadyAlways(()=>{var i;this.syncValueFromWYSIWYG(!0),null==(i=t.events)||i.fire("sourceEditorReady",t)})}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),s.Dom.safeRemove(this.mirrorContainer)}constructor(){super(...arguments),this.buttons=[{name:"source",group:"source"}],this.__lock=!1,this.__oldMirrorValue="",this.tempMarkerStart="{start-jodit-selection}",this.tempMarkerStartReg=/{start-jodit-selection}/g,this.tempMarkerEnd="{end-jodit-selection}",this.tempMarkerEndReg=/{end-jodit-selection}/g,this.getSelectionStart=()=>{var t,i;return null!=(i=null==(t=this.sourceEditor)?void 0:t.getSelectionStart())?i:0},this.getSelectionEnd=()=>{var t,i;return null!=(i=null==(t=this.sourceEditor)?void 0:t.getSelectionEnd())?i:0}}}d([(0,r.watch)(":insertHTML.source")],h.prototype,"onInsertHTML",null),d([r.autobind],h.prototype,"fromWYSIWYG",null),d([r.autobind],h.prototype,"toWYSIWYG",null),d([r.autobind],h.prototype,"getNormalPosition",null),d([(0,r.watch)(":beforeCommand.source")],h.prototype,"onSelectAll",null),d([(0,r.watch)(":beforeSetMode.source")],h.prototype,"saveSelection",null),d([(0,r.watch)(":afterSetMode.source")],h.prototype,"removeSelection",null),d([r.autobind],h.prototype,"setMirrorSelectionRange",null),d([(0,r.watch)(":readonly.source")],h.prototype,"onReadonlyReact",null),d([r.autobind],h.prototype,"syncValueFromWYSIWYG",null),a.pluginSystem.add("source",h)},35599:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> '},46614:function(t,i,n){"use strict";var o=n(87612),r=n(70799),s=n(29960),a=n(86583),l=n(12153),u=n(6441),c=n(26532),d=n(93602),h=n(75259);u.Config.prototype.speechRecognize={api:void 0!==c.SpeechRecognition?c.SpeechRecognition:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},l.Icon.set("speech-recognize",h.default),u.Config.prototype.controls.speechRecognize={isVisible(t){return!!t.o.speechRecognize.api},isActive(t,i){let n=(0,a.dataBind)(t,"speech");return!!(null==n?void 0:n.isEnabled)},isDisabled(t){return!t.o.speechRecognize.api},exec(t,i,{button:n,control:l}){var u;let{api:c,lang:h,continuous:p,interimResults:f,sound:m}=t.o.speechRecognize;if(!c)return void t.alert("Speech recognize API unsupported in your browser");let g=(0,a.dataBind)(t,"speech");if(!g){let i=new c;(g=new d.RecognizeManager(t.async,i)).lang=(0,r.isString)(h)?h:null!=(u=(0,s.attr)(t.od.documentElement,"lang"))?u:void 0,g.continuous=p,g.interimResults=f,g.sound=m,(0,a.dataBind)(t,"speech",g),g.on("pulse",t=>{n.setMod("pulse",t)}),g.on("result",i=>t.e.fire("speechRecognizeResult",i)),g.on("progress",i=>t.e.fire("speechRecognizeProgressResult",i)),g.on("error",i=>t.message.error(i)),t.hookStatus("beforeDestruct",()=>{(0,a.dataBind)(t,"speech",null),g.destruct()})}if(l.args){let t=l.args[0];if((0,o.isBoolean)(g[t])){g[t]=!g[t],g.isEnabled&&g.restart();return}}g.toggle(),g.isEnabled&&n.setMod("pulse",!0),n.state.activated=g.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(t,i,n){var o;let r=(0,a.dataBind)(t,"speech"),s=null!=(o=null==r?void 0:r[i])?o:t.o.speechRecognize[i];return`<span class='jodit-speech-recognize__list-item'><input ${s?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${n}</span>`},mods:{stroke:!1}}},85567:function(t,i,n){"use strict";n.d(i,{PII:function(){return o},WARN:function(){return r}});let o=440,r=940},26532:function(t,i,n){"use strict";n.d(i,{SpeechRecognition:function(){return r}});var o=n(82758);let r=o.globalWindow?o.globalWindow.SpeechRecognition||o.globalWindow.webkitSpeechRecognition:void 0},54076:function(t,i,n){"use strict";function o(t,i){let[n,o]=i.split("::");"open"===n.toLowerCase()&&o&&/^(javascript:|data:|vbscript:)/i.test(o.trim())||t.execCommand(n,null,o)}n.d(i,{execSpellCommand:function(){return o}})},93602:function(t,i,n){"use strict";n.d(i,{RecognizeManager:function(){return u}});var o=n(65478),r=n(72757),s=n(37643),a=n(85567),l=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class u extends r.Eventify{set lang(t){this._lang=t,this._api.lang=t}get lang(){return this._lang}set continuous(t){this._continuous=t,this._api.continuous=t}get continuous(){return this._continuous}set interimResults(t){this._interimResults=t,this._api.interimResults=t}get interimResults(){return this._interimResults}destruct(){this.stop(),(0,s.closeSound)(this),u._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){if(!this._isEnabled){this._isEnabled=!0,u._instances.forEach(t=>{t!==this&&t.stop()});try{this._api.start()}catch(t){this._onError(t),this.stop();return}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}stop(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}toggle(){this._isEnabled?this.stop():this.start()}restart(){this.stop(),this.start()}__on(t,i){return this._api.addEventListener(t,i),this}__off(t,i){return this._api.removeEventListener(t,i),this}_onResults(t){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(a.PII),this.restart()}_onProgress(t){if(this._isEnabled&&(this.__interimResults="",t.results)){for(let i=0;i<t.results.length;i++){let n=t.results.item(i);if(n.length){let{transcript:t}=n.item(0);this.__interimResults+=t}}this.__interimResults&&this.emit("progress",this.__interimResults)}}_onError(t){"voice-unavailable"===t.error&&this.emit("error","Voice unavailable"),"not-allowed"===t.error&&this.emit("error","Not allowed"),("language-unavailable"===t.error||"language-not-supported"===t.error)&&this.emit("error","Language unavailable"),this._makeSound(a.WARN),this.emit("pulse",!1),this.stop()}_makeSound(t){this.sound&&(0,s.sound)(this,{frequency:t})}constructor(t,i){super(),this.async=t,this._continuous=!1,this._interimResults=!1,this.sound=!0,this._isEnabled=!1,this._restartTimeout=0,this._onSpeechStart=t=>{this._isEnabled&&(this.async.clearTimeout(this._restartTimeout),this._restartTimeout=this.async.setTimeout(()=>{this.restart(),this.emit("pulse",!1),this._makeSound(a.WARN)},5e3),this.emit("pulse",!0))},this.__interimResults="",this._api=i,u._instances.add(this)}}u._instances=new Set,l([o.autobind],u.prototype,"_onResults",null),l([o.autobind],u.prototype,"_onProgress",null),l([o.autobind],u.prototype,"_onError",null)},37643:function(t,i,n){"use strict";n.d(i,{closeSound:function(){return l},sound:function(){return a}});var o=n(82758),r=n(85567);let s=new WeakMap;function a(t,{sec:i=.1,frequency:n=r.PII,gain:l=.1,type:u="sine"}={}){let c=function(t){if(!o.globalWindow)return null;let i=s.get(t);if(i&&"closed"!==i.state)return i;let n=o.globalWindow.AudioContext||o.globalWindow.webkitAudioContext;if(!n)return null;let r=new n;return s.set(t,r),r}(t);if(!c)return;let d=c.createGain(),h=c.createOscillator();h.type=u,h.frequency.value=n,d.gain.value=l,h.connect(d),d.connect(c.destination),h.start(),h.stop(c.currentTime+i)}function l(t){let i=s.get(t);i&&(s.delete(t),"closed"!==i.state&&i.close())}},71705:function(t,i,n){"use strict";n.r(i),i.default={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"}},89930:function(t,i,n){"use strict";n.r(i),i.default={newline:"ř\xe1dek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpozn\xe1n\xed Řeči",Sound:"Zvuk","Interim Results":"Průběžn\xe9 V\xfdsledky"}},34945:function(t,i,n){"use strict";n.r(i),i.default={newline:"Zeilenumbruch",delete:"l\xf6schen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"}},63134:function(t,i,n){"use strict";n.r(i),i.default={newline:"nueva l\xednea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"}},66835:function(t,i,n){"use strict";n.r(i),i.default={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"}},1115:function(t,i,n){"use strict";n.r(i),i.default={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"\xc4\xe4ni","Interim Results":"V\xe4litulokset"}},59302:function(t,i,n){"use strict";n.r(i),i.default={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"R\xe9sultats Interm\xe9diaires"}},94141:function(t,i,n){"use strict";n.r(i),i.default={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"}},24877:function(t,i,n){"use strict";n.r(i),i.default={newline:"\xfajsor",delete:"t\xf6rl\xe9s",space:"t\xe9r","Speech Recognize":"A Besz\xe9d Felismeri",Sound:"Hang","Interim Results":"Idők\xf6zi Eredm\xe9nyek"}},80651:function(t,i,n){"use strict";n.r(i),i.default={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"}},90492:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return u},fr:function(){return c},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},no:function(){return y},pl:function(){return _},pt_br:function(){return C},ru:function(){return w},tr:function(){return F},ua:function(){return E},zh_cn:function(){return k},zh_tw:function(){return S}});var o=n(71705),r=n(89930),s=n(34945),a=n(63134),l=n(66835),u=n(1115),c=n(59302),d=n(94141),h=n(24877),p=n(80651),f=n(62395),m=n(16407),g=n(37272),b=n(22113),v=n(22432),y=n(17081),_=n(30798),C=n(8661),w=n(19147),F=n(93620),E=n(40372),k=n(69874),S=n(88774)},62395:function(t,i,n){"use strict";n.r(i),i.default={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"}},16407:function(t,i,n){"use strict";n.r(i),i.default={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"}},37272:function(t,i,n){"use strict";n.r(i),i.default={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"}},22113:function(t,i,n){"use strict";n.r(i),i.default={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"}},22432:function(t,i,n){"use strict";n.r(i),i.default={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"}},17081:function(t,i,n){"use strict";n.r(i),i.default={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"}},30798:function(t,i,n){"use strict";n.r(i),i.default={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"}},8661:function(t,i,n){"use strict";n.r(i),i.default={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provis\xf3rios"}},19147:function(t,i,n){"use strict";n.r(i),i.default={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"}},93620:function(t,i,n){"use strict";n.r(i),i.default={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonu\xe7lar"}},40372:function(t,i,n){"use strict";n.r(i),i.default={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"}},69874:function(t,i,n){"use strict";n.r(i),i.default={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"}},88774:function(t,i,n){"use strict";n.r(i),i.default={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"}},3115:function(t,i,n){"use strict";var o=n(37133),r=n(2748),s=n(580),a=n(37790),l=n(50911);n(46614);var u=n(2303),c=n(54076),d=n(90492),h=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class p extends l.Plugin{afterInit(t){let{commands:i}=t.o.speechRecognize;i&&((0,s.extendLang)(d),(0,a.keys)(i,!1).forEach(n=>{n.split("|").forEach(o=>{o=o.trim().toLowerCase(),this._commandToWord[o]=i[n];let r=t.i18n(o);r!==o&&r.split("|").forEach(t=>{this._commandToWord[t.trim().toLowerCase()]=i[n].trim()})})}))}beforeDestruct(t){r.Dom.safeRemove(this.messagePopup)}onSpeechRecognizeProgressResult(t){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(()=>{r.Dom.safeRemove(this.messagePopup)},1e3),this.messagePopup.innerText=t+"|"}onSpeechRecognizeResult(t){this.j.async.clearTimeout(this.__hidePopupTimeout),r.Dom.safeRemove(this.messagePopup);let{j:i}=this,{s:n}=i;if(!this._checkCommand(t)){let{range:o}=n,s=n.current();if(n.isCollapsed()&&r.Dom.isText(s)&&r.Dom.isOrContains(i.editor,s)&&s.nodeValue){let r=s.nodeValue;s.nodeValue=r+(/[\u00A0 ]\uFEFF*$/.test(r)?"":" ")+t,o.setStartAfter(s),n.selectRange(o),i.synchronizeValues()}else n.insertHTML(t)}}_checkCommand(t){return t=t.toLowerCase().replace(/\./g,""),!!this._commandToWord[t]&&((0,c.execSpellCommand)(this.j,this._commandToWord[t]),!0)}constructor(){super(...arguments),this.buttons=[{group:"state",name:"speechRecognize"}],this._commandToWord={}}}h([(0,o.watch)(":speechRecognizeProgressResult")],p.prototype,"onSpeechRecognizeProgressResult",null),h([(0,o.watch)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),u.Jodit.plugins.add("speech-recognize",p)},75259:function(t,i){"use strict";i.default='<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '},99085:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(10937);r.Config.prototype.spellcheck=!1,o.Icon.set("spellcheck",s.default),r.Config.prototype.controls.spellcheck={isActive(t){return t.o.spellcheck},icon:s.default,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},28906:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"التدقيق الإملائي"}},24351:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Kontrola pravopisu"}},32806:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Rechtschreibpr\xfcfung"}},77725:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Correcci\xf3n ortogr\xe1fica"}},26428:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"غلطیابی املایی"}},42820:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Oikeinkirjoituksen tarkistus"}},60373:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"V\xe9rification Orthographique"}},98370:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"בדיקת איות"}},44850:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Helyes\xedr\xe1s-ellenőrz\xe9s"}},3636:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Spellchecking"}},26529:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return u},fr:function(){return c},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},no:function(){return y},pl:function(){return _},pt_br:function(){return C},ru:function(){return w},tr:function(){return F},ua:function(){return E},zh_cn:function(){return k},zh_tw:function(){return S}});var o=n(28906),r=n(24351),s=n(32806),a=n(77725),l=n(26428),u=n(42820),c=n(60373),d=n(98370),h=n(44850),p=n(3636),f=n(73220),m=n(55776),g=n(13995),b=n(6402),v=n(1879),y=n(1322),_=n(53361),C=n(70824),w=n(65140),F=n(42247),E=n(68891),k=n(63195),S=n(42107)},73220:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Controllo ortografico"}},55776:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"スペルチェック"}},13995:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"맞춤법 검사"}},6402:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Дүрмийн алдаа шалгах"}},1879:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Spellingcontrole"}},1322:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Stavekontroll"}},53361:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Sprawdzanie pisowni"}},70824:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Verifica\xe7\xe3o ortogr\xe1fica"}},65140:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Проверка орфографии"}},42247:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Yazım denetimi"}},68891:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"Перевірка орфографії"}},63195:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"拼写检查"}},42107:function(t,i,n){"use strict";n.r(i),i.default={Spellcheck:"拼字檢查"}},43809:function(t,i,n){"use strict";var o=n(65478),r=n(580),s=n(29960),a=n(50911);n(99085);var l=n(26529);class u extends a.Plugin{afterInit(t){t.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),t.registerCommand("toggleSpellcheck",()=>{this.jodit.o.spellcheck=!this.jodit.o.spellcheck,this.toggleSpellcheck(),this.j.e.fire("updateToolbar")})}toggleSpellcheck(){(0,s.attr)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,r.extendLang)(l)}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([o.autobind],u.prototype,"toggleSpellcheck",null),r.pluginSystem.add("spellcheck",u)},10937:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> '},99649:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.showCharsCounter=!0,o.Config.prototype.countHTMLChars=!1,o.Config.prototype.countTextSpaces=!1,o.Config.prototype.showWordsCounter=!0},7309:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(20356);n(99649);class l extends a.Plugin{afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){r.Dom.safeRemove(this.charCounter),r.Dom.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}constructor(){super(...arguments),this.charCounter=null,this.wordCounter=null,this.reInit=()=>{this.j.o.showCharsCounter&&this.charCounter&&this.j.statusbar.append(this.charCounter,!0),this.j.o.showWordsCounter&&this.wordCounter&&this.j.statusbar.append(this.wordCounter,!0),this.j.e.off("change keyup",this.calc).on("change keyup",this.calc),this.calc()},this.calc=this.j.async.throttle(()=>{let t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){let i;i=this.j.o.countHTMLChars?this.j.value:this.j.o.countTextSpaces?t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").replace(/[\r\n]/g,""):t.replace((0,o.SPACE_REG_EXP)(),""),this.charCounter.textContent=this.j.i18n("Chars: %d",i.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,o.INVISIBLE_SPACE_REG_EXP)(),"").split((0,o.SPACE_REG_EXP)()).filter(t=>t.length).length))},this.j.defaultTimeout)}}s.pluginSystem.add("stat",l)},48038:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.toolbarSticky=!0,o.Config.prototype.toolbarDisableStickyForMobile=!0,o.Config.prototype.toolbarStickyOffset=0},68687:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(2748),a=n(580),l=n(21537),u=n(20356);n(48038);let c=!o.IS_ES_NEXT&&o.IS_IE;class d extends u.Plugin{afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",()=>this.__isToolbarStuck)}__onScroll(){let{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;let i=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,n=(0,l.offset)(t.container,t,t.od,!0),r=t.getMode()===o.MODE_WYSIWYG&&i+t.o.toolbarStickyOffset>n.top&&i+t.o.toolbarStickyOffset<n.top+n.height&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===r)return;let s=t.toolbarContainer;s&&(r?this.addSticky(s):this.removeSticky(s)),t.e.fire("toggleSticky",r)}__isMobile(){let{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){s.Dom.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}constructor(){super(...arguments),this.__isToolbarStuck=!1,this.__createDummy=t=>{this.__dummyBox=this.j.c.div(),this.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),this.j.container.insertBefore(this.__dummyBox,t)},this.addSticky=t=>{this.__isToolbarStuck||(c&&!this.__dummyBox&&this.__createDummy(t),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,l.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,l.css)(this.__dummyBox,{height:t.offsetHeight})},this.removeSticky=t=>{this.__isToolbarStuck&&((0,l.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}}!function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);s>3&&a&&Object.defineProperty(i,n,a)}([(0,r.throttle)()],d.prototype,"__onScroll",null),a.pluginSystem.add("sticky",d)},87394:function(t,i,n){"use strict";var o=n(12153),r=n(6441),s=n(5119);r.Config.prototype.usePopupForSpecialCharacters=!1,r.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],o.Icon.set("symbols",s.default),r.Config.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:(t,i,n)=>{let o=t.e.fire("generateSpecialCharactersTable.symbols");if(o){if(t.o.usePopupForSpecialCharacters){let i=t.c.div();return i.classList.add("jodit-symbols"),i.appendChild(o),t.e.on(o,"close_dialog",n),i}t.alert(o,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);let i=o.querySelector("a");i&&i.focus()}}}},20741:function(t,i,n){"use strict";n.r(i),i.default={symbols:"رمز"}},3958:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},53437:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Symbol"}},56882:function(t,i,n){"use strict";n.r(i),i.default={symbols:"S\xedmbolo"}},75703:function(t,i,n){"use strict";n.r(i),i.default={symbols:"سمبل"}},49759:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Symbolit"}},44730:function(t,i,n){"use strict";n.r(i),i.default={symbols:"caract\xe8re"}},70945:function(t,i,n){"use strict";n.r(i),i.default={symbols:"תו מיוחד"}},49841:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Szimb\xf3lum"}},33295:function(t,i,n){"use strict";n.r(i),i.default={symbols:"simbol"}},32824:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return o},cs_cz:function(){return r},de:function(){return s},es:function(){return a},fa:function(){return l},fi:function(){return u},fr:function(){return c},he:function(){return d},hu:function(){return h},id:function(){return p},it:function(){return f},ja:function(){return m},ko:function(){return g},mn:function(){return b},nl:function(){return v},pl:function(){return y},pt_br:function(){return _},ru:function(){return C},tr:function(){return w},ua:function(){return F},zh_cn:function(){return E},zh_tw:function(){return k}});var o=n(20741),r=n(3958),s=n(53437),a=n(56882),l=n(75703),u=n(49759),c=n(44730),d=n(70945),h=n(49841),p=n(33295),f=n(47615),m=n(83059),g=n(22396),b=n(58285),v=n(51804),y=n(53650),_=n(41369),C=n(57855),w=n(44328),F=n(91080),E=n(89702),k=n(66434)},47615:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Simbolo"}},83059:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},22396:function(t,i,n){"use strict";n.r(i),i.default={symbols:"기호"}},58285:function(t,i,n){"use strict";n.r(i),i.default={symbols:"тэмдэгт"}},51804:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbool"}},53650:function(t,i,n){"use strict";n.r(i),i.default={symbols:"symbol"}},41369:function(t,i,n){"use strict";n.r(i),i.default={symbols:"S\xedmbolo"}},57855:function(t,i,n){"use strict";n.r(i),i.default={symbols:"символ"}},44328:function(t,i,n){"use strict";n.r(i),i.default={symbols:"Sembol"}},91080:function(t,i,n){"use strict";n.r(i),i.default={symbols:"символ"}},89702:function(t,i,n){"use strict";n.r(i),i.default={symbols:"符号"}},66434:function(t,i,n){"use strict";n.r(i),i.default={symbols:"符號"}},59495:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(43555),l=n(20356);n(87394);var u=n(32824);class c extends l.Plugin{afterInit(t){t.e.on("generateSpecialCharactersTable.symbols",()=>{let i=t.c.fromHTML(`<div class="jodit-symbols__container">
243
243
  <div class="jodit-symbols__container_table">
244
244
  <table class="jodit-symbols__table"><tbody></tbody></table>
245
245
  </div>
@@ -253,13 +253,13 @@
253
253
  tabindex="-1"
254
254
  >${t.o.specialCharacters[i]}</a>`);l.push(s),r.appendChild(s),n.appendChild(r)}s.appendChild(n)}let u=this;return t.e.on(l,"focus",function(){n.innerHTML=this.innerHTML}).on(l,"mousedown",function(i){r.Dom.isTag(this,"a")&&(t.s.focus(),t.s.insertHTML(this.innerHTML),(null==i?void 0:i.shiftKey)||t.e.fire(this,"close_dialog"),i&&i.preventDefault(),i&&i.stopImmediatePropagation())}).on(l,"mouseenter",function(){r.Dom.isTag(this,"a")&&this.focus()}).on(l,"keydown",i=>{let n=i.target;if(r.Dom.isTag(n,"a")){let r,s=parseInt((0,a.attr)(n,"-index")||"0",10),c=parseInt((0,a.attr)(n,"data-index-j")||"0",10);switch(i.key){case o.KEY_UP:case o.KEY_DOWN:void 0===l[r=i.key===o.KEY_UP?s-u.__countInRow:s+u.__countInRow]&&(r=i.key===o.KEY_UP?Math.floor(l.length/u.__countInRow)*u.__countInRow+c:c)>l.length-1&&(r-=u.__countInRow),l[r]&&l[r].focus();break;case o.KEY_RIGHT:case o.KEY_LEFT:void 0===l[r=i.key===o.KEY_LEFT?s-1:s+1]&&(r=i.key===o.KEY_LEFT?l.length-1:0),l[r]&&l[r].focus();break;case o.KEY_ENTER:t.e.fire(n,"mousedown"),i.stopImmediatePropagation(),i.preventDefault()}}}),i})}beforeDestruct(t){t.e.off("generateSpecialCharactersTable.symbols")}constructor(t){super(t),this.buttons=[{name:"symbols",group:"insert"}],this.__countInRow=17,(0,s.extendLang)(u)}}s.pluginSystem.add("symbols",c)},5119:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '},47686:function(t,i,n){"use strict";n.d(i,{onTabInsideLi:function(){return o.onTabInsideLi}});var o=n(26658)},26658:function(t,i,n){"use strict";n.d(i,{onTabInsideLi:function(){return s}});var o=n(2748),r=n(38837);function s(t,i=!1){let n,a,l,u;if(!t.o.tab.tabInsideLiInsertNewList)return!1;let[c,d]=(n=t.createInside.fake(),a=t.createInside.fake(),(l=t.s.range.cloneRange()).collapse(!0),l.insertNode(n),(u=t.s.range.cloneRange()).collapse(!1),u.insertNode(a),[n,a]);try{let n,s,a,l,u,d=!!(n=o.Dom.closest(c,"li",t.editor))&&(!!i||!!o.Dom.isLeaf(n.previousElementSibling))&&(!i||!!o.Dom.closest(n,"li",t.editor))&&n;if(!d||!(s=o.Dom.closest(c,"li",t.editor))||s!==d&&!d.contains(s))return!1;let h=o.Dom.closest(d,["ol","ul"],t.editor);if(!h||i&&!o.Dom.closest(h,"li",t.editor))return!1;return i?function(t,i,n){let s=o.Dom.closest(i,"li",t.editor);(0,r.assert)(s,"tab parent li is null");let a=Array.from(i.children).filter(t=>o.Dom.isLeaf(t));o.Dom.after(s,n);let l=a.indexOf(n);if((0===l||1===a.length)&&o.Dom.safeRemove(i),l!==a.length-1){let t=i.cloneNode();o.Dom.append(n,t);for(let i=l+1;i<a.length;i+=1)o.Dom.append(t,a[i])}}(t,h,d):(a=d.previousElementSibling,(0,r.assert)(a,"tab previousElementSibling is null"),l=a.lastElementChild,(u=o.Dom.isTag(l,h.tagName)?l:t.createInside.element(h.tagName,Array.from(h.attributes).reduce((t,i)=>(t[i.name]=i.value,t),{}))).appendChild(d),l!==u&&a.appendChild(u)),!0}finally{let i=t.s.createRange();i.setStartAfter(c),i.setEndBefore(d),t.s.selectRange(i),o.Dom.safeRemove(c),o.Dom.safeRemove(d)}}},66288:function(t,i,n){"use strict";n(6441).Config.prototype.tab={tabInsideLiInsertNewList:!0}},767:function(t,i,n){"use strict";var o=n(82758),r=n(65478),s=n(580),a=n(50911);n(66288);var l=n(47686),u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class c extends a.Plugin{afterInit(t){}__onTab(t){if(t.key===o.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){let i=(0,l.onTabInsideLi)(this.j,t);return i&&this.j.e.fire("afterTab",t),i}beforeDestruct(t){}}u([(0,r.watch)(":keydown.tab")],c.prototype,"__onTab",null),u([(0,r.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),s.pluginSystem.add("tab",c)},72439:function(t,i,n){"use strict";var o=n(82758),r=n(2748),s=n(580),a=n(21537),l=n(76014);let u=new Set([o.KEY_TAB,o.KEY_LEFT,o.KEY_RIGHT,o.KEY_UP,o.KEY_DOWN]);s.pluginSystem.add("tableKeyboardNavigation",function(t){t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",i=>{let{key:n}=i,s=function(t,i){if(!u.has(i))return;let n=t.s.current();if(!n)return;let s=r.Dom.up(n,r.Dom.isCell,t.editor);if(!s)return;let{range:l}=t.s;if(i!==o.KEY_TAB&&n!==s){let t=i===o.KEY_RIGHT||i===o.KEY_DOWN,u=(0,a.call)(t?r.Dom.next:r.Dom.prev,n,t=>i===o.KEY_UP||i===o.KEY_DOWN?r.Dom.isTag(t,"br"):!!t,s);if(!t&&(u||i!==o.KEY_UP&&r.Dom.isText(n)&&0!==l.startOffset)||t&&(u||i!==o.KEY_DOWN&&r.Dom.isText(n)&&n.nodeValue&&l.startOffset!==n.nodeValue.length))return}return s}(t,n);if(!s)return;let c=t.getInstance(l.Table,t.o),d=r.Dom.closest(s,"table",t.editor),h=null,p=n===o.KEY_LEFT||i.shiftKey,f=()=>(0,a.call)(p?r.Dom.prev:r.Dom.next,s,r.Dom.isCell,d);switch(n){case o.KEY_TAB:case o.KEY_LEFT:(h=f())||(c.appendRow(d,!!p&&d.querySelector("tr"),!p),h=f());break;case o.KEY_UP:case o.KEY_DOWN:{let t=c.formalMatrix(d),[i,r]=c.formalCoordinate(d,s);n===o.KEY_UP?void 0!==t[i-1]&&(h=t[i-1][r]):void 0!==t[i+1]&&(h=t[i+1][r])}}if(h){if(t.e.fire("hidePopup hideResizer"),h.firstChild)n===o.KEY_TAB?t.s.select(h,!0):t.s.setCursorIn(h,n===o.KEY_RIGHT||n===o.KEY_DOWN);else{let i=t.createInside.element("br");h.appendChild(i),t.s.setCursorBefore(i)}return t.synchronizeValues(),!1}})})},40329:function(t,i,n){"use strict";var o=n(22732),r=n(21537),s=n(43555),a=n(12153),l=n(6441),u=n(6091);l.Config.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},a.Icon.set("table",u.default),l.Config.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:(t,i,n,a)=>{t.editor.normalize();let l=t.history.snapshot.make(),u=a.control,c=u.data&&u.data.rows?u.data.rows:10,d=u.data&&u.data.cols?u.data.cols:10,h=t.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+(()=>{if(!t.o.table.useExtraClassesOptions)return"";let i=[];if(u.data){let t=u.data.classList;Object.keys(t).forEach(n=>{i.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${n}" type="checkbox"/>${t[n]}</label>`)})}return i.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),p=h.querySelectorAll("span")[0],f=h.querySelectorAll("span")[1],m=h.querySelector(".jodit-form__container"),g=h.querySelector(".jodit-form__options"),b=[],v=c*d;for(let i=0;i<v;i+=1)b[i]||b.push(t.c.element("span",{dataIndex:i}));if(t.e.on(m,"mousemove",(t,i)=>{let n=t.target;if(!o.Dom.isTag(n,"span"))return;let r=void 0===i||isNaN(i)?parseInt((0,s.attr)(n,"-index")||"0",10):i||0,a=Math.ceil((r+1)/d),l=r%d+1;for(let t=0;t<b.length;t+=1)l>=t%d+1&&a>=Math.ceil((t+1)/d)?b[t].className="jodit_hovered":b[t].className="";f.textContent=l.toString(),p.textContent=a.toString()}).on(m,"touchstart mousedown",i=>{let a=i.target;if(i.preventDefault(),i.stopImmediatePropagation(),!o.Dom.isTag(a,"span"))return;let u=parseInt((0,s.attr)(a,"-index")||"0",10),c=Math.ceil((u+1)/d),h=u%d+1,p=t.createInside,f=p.element("tbody"),m=p.element("table");m.appendChild(f);let b=null,v,y;for(let t=1;c>=t;t+=1){v=p.element("tr");for(let t=1;t<=h;t+=1)y=p.element("td"),b||(b=y),(0,r.css)(y,"width",(100/h).toFixed(4)+"%"),y.appendChild(p.element("br")),v.appendChild(p.text("\n")),v.appendChild(p.text(" ")),v.appendChild(y);f.appendChild(p.text("\n")),f.appendChild(v)}(0,r.$$)("input[type=checkbox]:checked",g).forEach(t=>{t.value.split(/[\s]+/).forEach(t=>{m.classList.add(t)})}),t.s.restore(),t.s.removeMarkers(),t.editor.normalize(),t.history.snapshot.restore(l);let _=o.Dom.furthest(t.s.current(),o.Dom.isBlock,t.editor);if(_&&o.Dom.isEmpty(_))o.Dom.replace(_,m,void 0,!1,!0);else if(_){let i=p.text("\n");if(t.o.table.splitBlockOnInsertTable){let n=t.s.range;n.collapse(!1),n.insertNode(i),n.collapse(!1),t.s.selectRange(n);let r=t.s.splitSelection(_,i);r?o.Dom.after(r,m):o.Dom.after(_,m)}else o.Dom.after(_,i),o.Dom.after(i,m)}else t.s.insertNode(m,!1);b&&(t.s.setCursorIn(b),(0,r.scrollIntoViewIfNeeded)(b,t.editor,t.ed)),n()}),a&&a.parentElement){for(let i=0;i<c;i+=1){let n=t.c.div();for(let t=0;t<d;t+=1)n.appendChild(b[i*d+t]);m.appendChild(n)}b[0]&&(b[0].className="hovered")}return h},tooltip:"Insert table"}},43003:function(t,i,n){"use strict";var o=n(580);n(40329),o.pluginSystem.add("table",function(t){t.registerButton({name:"table",group:"insert"})})},6091:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '},14984:function(t,i,n){"use strict";var o=n(21537),r=n(62843),s=n(2525),a=n(12153),l=n(6441),u=n(92762),c=n(37775);l.Config.prototype.video={parseUrlToVideoEmbed:o.convertMediaUrlToVideoEmbed,defaultWidth:400,defaultHeight:345},a.Icon.set("video",c.default),l.Config.prototype.controls.video={popup:(t,i,n)=>{let a=new s.UIForm(t,[new s.UIBlock(t,[new s.UIInput(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new s.UIBlock(t,[(0,r.Button)(t,"","Insert","primary").onAction(()=>a.submit())])]),l=new s.UIForm(t,[new s.UIBlock(t,[new s.UITextArea(t,{name:"code",required:!0,label:"Embed code"})]),new s.UIBlock(t,[(0,r.Button)(t,"","Insert","primary").onAction(()=>l.submit())])]),c=[],d=i=>{t.s.restore(),t.s.insertHTML(i),n()};return t.s.save(),c.push({icon:"link",name:"Link",content:a.container},{icon:"source",name:"Code",content:l.container}),a.onSubmit(i=>{var n,r,s,a;d((0,o.call)(null!=(r=null==(n=t.o.video)?void 0:n.parseUrlToVideoEmbed)?r:o.convertMediaUrlToVideoEmbed,i.url,{width:null==(s=t.o.video)?void 0:s.defaultWidth,height:null==(a=t.o.video)?void 0:a.defaultHeight}))}),l.onSubmit(t=>{d(t.code)}),(0,u.TabsWidget)(t,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},26551:function(t,i,n){"use strict";var o=n(580);n(14984),o.pluginSystem.add("video",function(t){t.registerButton({name:"video",group:"media"})})},37775:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '},96967:function(t,i,n){"use strict";n(6441).Config.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},72253:function(t,i,n){"use strict";var o=n(65478),r=n(22732),s=n(580),a=n(70799),l=n(50911);n(96967);var u=function(t,i,n,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,n,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(a=(s<3?r(a):s>3?r(i,n,a):r(i,n))||a);return s>3&&a&&Object.defineProperty(i,n,a),a};class c extends l.Plugin{afterInit(t){"br"!==t.o.enter.toLowerCase()&&t.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}beforeDestruct(t){t.e.off(".wtn")}postProcessSetEditorValue(){let{jodit:t}=this;if(!t.isEditorMode())return;let i=t.editor.firstChild,n=!1;for(;i;){if(i=function(t,i){let n=t,o=t;do if(r.Dom.isElement(o)&&r.Dom.isLeaf(o)&&!r.Dom.isList(o.parentElement)){let t=r.Dom.findNotEmptySibling(o,!1);r.Dom.isTag(n,"ul")?n.appendChild(o):n=r.Dom.wrap(o,"ul",i.createInside),o=t}else break;while(o);return n}(i,t),this.isSuitableStart(i)){n||t.s.save(),n=!0;let o=t.createInside.element(t.o.enter);for(r.Dom.before(i,o);i&&this.isSuitable(i);){let t=i.nextSibling;o.appendChild(i),i=t}o.normalize(),i=o}i=i&&i.nextSibling}n&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){let{jodit:t}=this,i="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&i)return;let n=t.createInside.element(t.o.enter),o=t.createInside.element("br");r.Dom.append(n,o),r.Dom.append(t.editor,n),(t.s.isFocused()||"backSpaceAfterDelete"===t.e.current)&&t.s.setCursorBefore(o),t.e.fire("internalChange")}constructor(){super(...arguments),this.isSuitableStart=t=>{var i;return r.Dom.isText(t)&&(0,a.isString)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||(null==(i=t.parentNode)?void 0:i.firstChild)===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!r.Dom.isTemporary(t)},this.isSuitable=t=>r.Dom.isText(t)||this.isNotWrapped(t),this.isNotWrapped=t=>r.Dom.isElement(t)&&!(r.Dom.isBlock(t)||r.Dom.isTag(t,this.j.o.wrapNodes.exclude))}}u([o.autobind],c.prototype,"postProcessSetEditorValue",null),u([o.autobind],c.prototype,"preprocessInput",null),s.pluginSystem.add("wrapNodes",c)},86012:function(t,i,n){"use strict";n(6441).Config.prototype.showXPathInStatusbar=!0},83671:function(t,i,n){"use strict";var o=n(82758),r=n(22732),s=n(580),a=n(49055),l=n(29960),u=n(76078),c=n(50911),d=n(80870),h=n(21491);n(86012);class p extends c.Plugin{afterInit(){if(this.j.o.showXPathInStatusbar){this.container=this.j.c.div("jodit-xpath"),(0,l.attr)(this.container,"role","list");let t=()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===o.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),this.appendSelectAll()))};this.j.e.off(".xpath").on("pointerup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",t),t(),this.calcPath()}}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),r.Dom.safeRemove(this.container),delete this.menu,delete this.container}constructor(){super(...arguments),this.onContext=(t,i)=>(this.menu||(this.menu=new d.ContextMenu(this.j)),this.menu.show(i.clientX,i.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?r.Dom.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,i)=>{this.j.s.focus();let n=(0,l.attr)(i.target,"-path")||"/";if("/"===n)return this.j.execCommand("selectall"),!1;try{let t=this.j.ed.evaluate(n,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch(t){}return this.j.s.select(t),!1},this.tpl=(t,i,n,o)=>{let r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${i}" title="${o}" tabindex="-1"'>${(0,a.trim)(n)}</a></span>`),s=r.firstChild;return this.j.e.on(s,"click",this.onSelectPath.bind(this,t)).on(s,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,h.makeButton)(this.j,function(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){var o;o=n[i],i in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o})}return t}({name:"selectall"},this.j.o.controls.selectall)),this.selectAllButton.state.size="tiny",this.container&&this.container.insertBefore(this.selectAllButton.container,this.container.firstChild)},this.calcPathImd=()=>{if(this.isDestructed)return;let t=this.j.s.current();if(this.container&&(this.container.innerHTML=o.INVISIBLE_SPACE),t){let i,n,o;r.Dom.up(t,t=>{t&&this.j.editor!==t&&!r.Dom.isText(t)&&!r.Dom.isComment(t)&&(i=t.nodeName.toLowerCase(),n=(0,u.getXPathByElement)(t,this.j.editor).replace(/^\//,""),o=this.tpl(t,n,i,this.j.i18n("Select %s",i)),this.container&&this.container.insertBefore(o,this.container.firstChild))},this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout,!0)}}s.pluginSystem.add("xpath",p)},78173:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},16260:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> '},37663:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},51036:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> '},31554:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> '},18309:function(t,i){"use strict";i.default='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> '},99762:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> '},7903:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> '},58032:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> '},52507:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> '},43478:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> '},60097:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> '},49155:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> '},17555:function(t,i,n){"use strict";n.r(i),n.d(i,{angle_down:function(){return o.default},angle_left:function(){return r.default},angle_right:function(){return s.default},angle_up:function(){return a.default},bin:function(){return l.default},cancel:function(){return u.default},center:function(){return c.default},check:function(){return d.default},chevron:function(){return h.default},dots:function(){return p.default},eye:function(){return f.default},file:function(){return m.default},folder:function(){return g.default},info_circle:function(){return b.default},left:function(){return v.default},lock:function(){return y.default},ok:function(){return _.default},pencil:function(){return C.default},plus:function(){return w.default},resize_handler:function(){return F.default},right:function(){return E.default},save:function(){return k.default},settings:function(){return S.default},unlock:function(){return A.default},update:function(){return D.default},upload:function(){return x.default},valign:function(){return I.default}});var o=n(78173),r=n(16260),s=n(37663),a=n(51036),l=n(31554),u=n(18309),c=n(99762),d=n(7903),h=n(58032),p=n(52507),f=n(43478),m=n(60097),g=n(49155),b=n(17176),v=n(57882),y=n(58908),_=n(24829),C=n(4038),w=n(45575),F=n(84858),E=n(445),k=n(36886),S=n(10766),A=n(33651),D=n(20362),x=n(12202),I=n(80152)},17176:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> '},57882:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},58908:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> '},24829:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> '},4038:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> '},45575:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> '},84858:function(t,i){"use strict";i.default='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> '},445:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> '},36886:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> '},10766:function(t,i){"use strict";i.default='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> '},33651:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> '},20362:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> '},12202:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> '},80152:function(t,i){"use strict";i.default='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> '},62357:function(t,i,n){"use strict";n.d(i,{UIRange:function(){return d}});var o=n(82749),r=n(56075),s=n(11886),a=n(31635),l=n(65478),u=n(21537),c=n(67510);class d extends c.UIInput{className(){return"UIRange"}appendUIRange(){let t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);let i=this.j.create.div(this.getFullElName("handle"));t.appendChild(i);let n=this.j.create.div(this.getFullElName("log")),o=this.getElm("label");o&&o.appendChild(n)}onDragStart(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;let i=this.getElm("slider");(0,u.assert)(null!=i,"slider element does not exists"),this.width=i.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(t){let{min:i,max:n,step:o=1}=this.state,r=(t.clientX-this.startX)/this.width*(this.state.max-this.state.min),s=this.startValue+r;s<i&&(s=i),s>n&&(s=n),s=Math.round(s/o)*o,this.value=s.toFixed(10)}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){let t=this.getElm("handle"),i=parseFloat(this.value)||0;(0,u.assert)(null!=t,"Handle element does not exist"),(0,u.css)(t,{left:(i-this.state.min)/(this.state.max-this.state.min)*100+"%"});let n=this.getElm("log");(0,u.assert)(null!=n,"log element does not exist"),n.innerText=i.toString()}destruct(){return this.onDragEnd(),super.destruct()}constructor(t,i){super(t,(0,s._)((0,r._)({},i),{type:"hidden"})),(0,o._)(this,"state",(0,s._)((0,r._)({},c.UIInput.defaultState),{min:0,max:100,step:1})),(0,o._)(this,"startValue",0),(0,o._)(this,"startX",0),(0,o._)(this,"width",100),Object.assign(this.state,i),this.appendUIRange(),this.onChangeSelfValue()}}(0,a.__decorate)([(0,l.watch)(["handle:mousedown","handle:touchstart"])],d.prototype,"onDragStart",null),(0,a.__decorate)([l.autobind],d.prototype,"onDrag",null),(0,a.__decorate)([(0,l.watch)(["j.ow:mouseup","j.ow:touchend"])],d.prototype,"onDragEnd",null),(0,a.__decorate)([(0,l.watch)(":change")],d.prototype,"onChangeSelfValue",null),d=(0,a.__decorate)([l.component],d)},31356:function(t,i,n){"use strict";n.d(i,{ListReconciler:function(){return o}});class o{static reconcile(t,i,n){let{getId:o,isEqual:r=(t,i)=>o(t)===o(i),preserveOrder:s=!0}=n,a=new Map,l=new Map;t.forEach((t,i)=>{let n=o(t);a.set(n,t),l.set(n,i)});let u=new Map,c=new Map;i.forEach((t,i)=>{let n=o(t);u.set(n,t),c.set(n,i)});let d=[],h=[],p=[],f=[];return i.forEach((t,i)=>{let n=o(t),u=a.get(n);u?!r(u,t)||s&&l.get(n)!==i?h.push({oldItem:u,newItem:t,index:s?i:l.get(n)}):f.push(u):d.push(t)}),t.forEach(t=>{let i=o(t);u.has(i)||p.push(t)}),{toCreate:d,toUpdate:h,toRemove:p,unchanged:f}}static applyResult(t,i,n={}){i.toRemove.forEach(i=>{let o=t.indexOf(i);if(-1!==o){var r;null==(r=n.onRemove)||r.call(n,i,o),t.splice(o,1)}}),i.toUpdate.forEach(({oldItem:i,newItem:o,index:r})=>{let s=t.indexOf(i);if(-1!==s){var a;null==(a=n.onUpdate)||a.call(n,i,o,r),t[s]=o}}),i.toCreate.forEach(i=>{var o;null==(o=n.onCreate)||o.call(n,i,t.length),t.push(i)})}}},2692:function(t,i,n){"use strict";n.d(i,{JoditPro:function(){return u}});var o=n(77688),r=n(82758),s=n(63799),a=n(41180),l=n(86019);class u extends l.Jodit{static make(t,i){return new this(t,i)}beforeInitHook(){if(r.IS_PROD&&!r.IS_TEST&&this.o.loadExternalConfig)return(0,s.appendScriptAsync)(this,this.basePath+"config.js")}afterInitHook(){(0,o._)(function*(){if((yield this.e.fire("checkReserve",location.host))!=="normal"){if(this.isInDestruct)return;let t=this.c.div("",'Trial version. Buy <a href="https://xdsoft.net/jodit/pro/">Jodit Pro</a>');r.IS_TEST||r.IS_PROD,(0,a.css)(t,{position:"absolute",color:"red",right:10,bottom:10}),this.addDisclaimer(t)}}).call(this).catch(()=>null),super.afterInitHook()}getVersion(){return"PRO "+r.APP_VERSION}}},41810:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(56075),a=n(11886),l=n(31635);n(66645);var u=n(86449),c=n(21020),d=n(46166),h=n(62895),p=n(55487),f=n(27769),m=n(58579),g=n(63805),b=n(82758),v=n(65478),y=n(580),_=n(21537),C=n(50911),w=n(2692),F=n(18549),E=n(54747);class k extends C.Plugin{get state(){return this.stateManager.state}get toolRegistry(){return new p.ToolRegistry(this.j)}get permissionManager(){return new c.PermissionManager(this.j,this.toolRegistry)}get apiClient(){return new u.APIClient(this.j,this.toolRegistry)}get storage(){let{storage:t,storageKey:i,maxConversations:n}=this.j.o.aiAssistantPro;if("string"==typeof t){let o=(0,h.createStorageProvider)(t,i);return new h.WebStorageConversationStorage(o,n)}return t}get stateManager(){return new d.StateManager(this.j)}get mainPanel(){return new f.UIMainPanel(this.j,this.stateManager.state,this.j.o.aiAssistantPro,t=>{let i=this.stateManager.getCurrentConversation();i&&this.stateManager.setCurrentConversation((0,s._)({},i,t))})}get dialog(){let t=this.j.dlg({resizable:this.j.o.aiAssistantPro.resizable,eventEmmiter:this.j.e});return t.e.on(t,"afterClose",()=>{this.j.e.fire("closeAIAssistantPro.ai-assistant-pro")}),t}setupTextAutocomplete(){let{textAutocompleteEnabled:t,textAutocompleteApiRequest:i,textAutocompleteMinQueryLength:n,textAutocompleteMaxSuggestions:r,textAutocompleteDebounceMs:l,textAutocompleteCacheTTL:u,textAutocompleteCacheMaxSize:c}=this.j.o.aiAssistantPro;if(!t||!i)return;this.j.o.autocomplete=(0,a._)((0,s._)({},this.j.o.autocomplete),{displayMode:"inline"});let d=this.textAutocompleteCache,h=null;this.textAutocompleteSource=t=>{if(t.length<n)return[];let s=`${t}:${r}`;if(u>0){let t=d.get(s);if(t&&Date.now()-t.ts<u)return t.data.map(t=>({value:t,title:t}))}h&&clearTimeout(h);let a=new AbortController;return new Promise(n=>{h=setTimeout(()=>(0,o._)(function*(){try{let o=yield i(t,r,a.signal);if(Array.isArray(o)){let t=o.slice(0,r);if(u>0){if(d.size>=c){let t=d.keys().next().value;null!=t&&d.delete(t)}d.set(s,{ts:Date.now(),data:t})}n(t.map(t=>({value:t,title:t})));return}n([])}catch(t){n([])}})(),l)})},this.j.e.fire("registerAutocompleteSource",this.textAutocompleteSource)}afterInit(){(0,y.extendLang)(g),this.setupEventListeners(),this.setupTextAutocomplete(),this.j.async.promise(t=>{let{initiallyOpened:i,persistOpenState:n}=this.j.o.aiAssistantPro,o=i;n?this.storage.getGlobalSettings().then(t=>{if((null==t?void 0:t.isOpen)!=null&&(o=t.isOpen),o)return this.openAssistant()}).catch(()=>null).finally(()=>t(void 0)):t(void 0)}).catch(()=>null)}__loadData(){return this.__initedPromise?this.__initedPromise:this.isDestructed?Promise.reject():(this.__initedPromise=this.j.async.promise(t=>{this.loadInitialData().then(t)}).catch(()=>null),this.__initedPromise)}loadInitialData(){return(0,o._)(function*(){this.mainPanel.setMod("ready",!0),yield(0,m.loadInitialData)(this.j,this.storage,this.stateManager),yield this.restorePendingToolCalls()}).call(this)}restorePendingToolCalls(){return(0,o._)(function*(){let t=this.stateManager.getCurrentConversation();if(!t)return;let i=(0,m.findMessagesWithPendingToolCalls)(t);if(0!==i.length)for(let t of i)yield this.handleToolCalls(t.id)}).call(this)}setupEventListeners(){this.j.e.on("selectConversation.ai-assistant-pro",t=>(0,o._)(function*(){try{yield this.__loadData(),yield(0,m.handleConversationSelect)(t,this.storage,this.stateManager)}catch(t){b.IS_PROD}}).call(this)),this.j.e.on("newConversation.ai-assistant-pro",()=>(0,o._)(function*(){yield this.__loadData();let t=(0,m.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature);this.stateManager.setCurrentConversation(t)}).call(this)),this.j.e.on("deleteConversation.ai-assistant-pro",t=>(0,o._)(function*(){yield this.__loadData(),yield this.deleteConversation(t)}).call(this)),this.j.e.on("renameConversation.ai-assistant-pro",(t,i)=>(0,o._)(function*(){yield this.__loadData(),yield this.renameConversation(t,i)}).call(this)),this.j.e.on("backToList.ai-assistant-pro",()=>(0,o._)(function*(){yield this.__loadData(),yield(0,m.handleBackToList)(this.storage,this.stateManager)}).call(this)),this.j.e.on("removeContext.ai-assistant-pro",t=>(0,o._)(function*(){yield this.__loadData(),this.stateManager.removeSelectionContext(t)}).call(this)),this.j.e.on("approveToolCall.ai-assistant-pro",(t,i)=>(0,o._)(function*(){try{yield this.__loadData();let n=yield(0,m.handleToolApproval)(t,i,this.stateManager,this.permissionManager,this.storage);if(n){let t=this.stateManager.getCurrentConversation();if(!t)return;let i=t.messages.find(t=>{var i;return null==(i=t.toolCalls)?void 0:i.some(t=>t.id===n.id)});if(!i)return;yield this.executeToolCall(i.id,n)}}catch(t){if((0,_.isAbortError)(t))return;this.stateManager.setError(t instanceof Error?t.message:String(t))}}).call(this)),this.j.e.on("denyToolCall.ai-assistant-pro",t=>(0,o._)(function*(){yield this.__loadData(),yield(0,m.handleToolDenial)(this.j,t,this.stateManager,this.storage)}).call(this)),this.j.e.on("abortRequest.ai-assistant-pro",()=>(0,o._)(function*(){yield this.__loadData(),this.apiClient.abort(),this.stateManager.setLoading(!1)}).call(this))}__applyTheme(){(0,m.applyTheme)(this.j,this.stateManager.state.theme,this.stateManager.state.displayMode,this.mainPanel.container,this.dialog)}openAssistant(){return(0,o._)(function*(){if(this.stateManager.isOpen()){this.stateManager.close(),yield this.__closeInContainer();return}yield this.__loadData(),this.isDestructed||(this.stateManager.open(),yield this.__openInContainer(),this.j.o.aiAssistantPro.includeSelectionByDefault&&!this.j.s.isCollapsed()&&this.addCurrentSelectionToContext())}).call(this)}__openInContainer(){return(0,o._)(function*(){let{resizable:t,allowClose:i,flightPanelHeight:n}=this.j.o.aiAssistantPro,{displayMode:o="right",panelWidth:r,panelHeight:s}=this.stateManager.state;switch(this.__applyTheme(),this.mainPanel.setMod("displayMode",o),this.mainPanel.setMod("allowClose",i),this.mainPanel.setParentView("dialog"===o||"flight"===o?this.dialog:this.j),this.__openedMode=o,o){case"dialog":this.dialog.setSize(r,s).open().setContent(this.mainPanel.container);break;case"flight":F.UIFlightPosition.install(this.mainPanel,this.j.container,{panelHeight:n,containerClassName:this.getFullElName("flight-container")});break;default:t&&(E.UIResize.remove(this.mainPanel),E.UIResize.install(this.mainPanel,(0,m.invertMode)(o),{handleClassName:this.getFullElName("ai-assistent-resize-handle"),onResize:({newSize:t})=>{let i="left"===o||"right"===o?t:r,n="top"===o||"bottom"===o?t:s;return this.stateManager.state.panelWidth=i,this.stateManager.state.panelHeight=n,!0}})),this.j.currentPlace.slots[o].appendChild(this.mainPanel.container),(0,m.resizeInPanelView)(this.j,o,r,s)}}).call(this)}__onResizeInPanelView(){let{displayMode:t,panelWidth:i,panelHeight:n}=this.stateManager.state;(0,m.resizeInPanelView)(this.j,t,i,n)}__closeInContainer(){return(0,o._)(function*(){let{displayMode:t}=yield this.stateManager.state;switch(this.__openedMode!==t&&"dialog"===this.__openedMode&&this.dialog.close(),this.__openedMode!==t&&"flight"===this.__openedMode&&this.__closeFlightMode(),t){case"dialog":this.dialog.close();break;case"flight":this.__closeFlightMode();break;default:this.mainPanel.container.remove()}}).call(this)}__closeFlightMode(){F.UIFlightPosition.remove(this.mainPanel)}__onSavedStateChange(){var t;let i=this.stateManager.state;return this.storage.saveGlobalSettings((0,s._)({displayMode:i.displayMode,panelWidth:i.panelWidth,panelHeight:i.panelHeight,theme:i.theme,defaultModel:i.defaultModel,defaultTemperature:i.defaultTemperature,currentConversationId:null==(t=i.currentConversation)?void 0:t.id},this.j.o.aiAssistantPro.persistOpenState?{isOpen:i.isOpen}:{}))}closeAssistant(){return(0,o._)(function*(){this.stateManager.isOpen()&&(yield this.__loadData(),this.stateManager.close(),this.__closeInContainer())}).call(this)}addCurrentSelectionToContext(){return(0,o._)(function*(){yield this.__loadData();let t=(0,m.getCurrentSelectionContext)(this.j);t&&this.stateManager.addSelectionContext(t)}).call(this)}executeQuickCommand(t){return(0,o._)(function*(){let i,{quickCommandsSilentMode:n,quickCommandsDisplayMode:o}=this.j.o.aiAssistantPro,r=this.j.o.aiAssistant;if(r&&r[t]&&(0,_.isString)(r[t])&&(i=r[t]),!i)return void this.j.e.fire("error",`Command not found: ${t}`);let s=this.j.s.isCollapsed()?this.j.value:this.j.s.html;if(!s)return;let a=(null==r?void 0:r.aiCommonPrefixPrompt)||"",l=(null==r?void 0:r.aiCommonSuffixPrompt)||"",u=`${a}${i}${l}
255
255
 
256
- ${s}`.trim();n?yield this.__executeQuickCommandSilent(u,s):yield this.__executeQuickCommandWithPanel(u,o)}).call(this)}__executeQuickCommandSilent(t,i){return(0,o._)(function*(){yield this.__loadData(),this.j.progressbar.show().progress(100);try{let i=(0,m.createUserMessage)(t),n=(0,m.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature,[i]),o=yield this.apiClient.sendRequest(n.id,n.messages,null,[],n.options);if("final"===o.mode){let t=o.response.content;t&&this.j.s.insertHTML(t)}}catch(t){(0,_.isAbortError)(t)||this.j.e.fire("error",t)}finally{this.j.progressbar.hide()}}).call(this)}__executeQuickCommandWithPanel(t,i){return(0,o._)(function*(){yield this.__loadData();let n=this.stateManager.state.displayMode;this.stateManager.state.displayMode=i;let o=(0,m.getCurrentSelectionContext)(this.j);o&&this.stateManager.addSelectionContext(o),this.stateManager.isOpen()||(yield this.openAssistant()),yield this.sendMessage(t),this.stateManager.state.displayMode=n}).call(this)}sendMessage(t){return(0,o._)(function*(){yield this.__loadData();let i=this.stateManager.getCurrentConversation(),n=this.stateManager.getEditingMessageId();if(n&&i){let t=i.messages.findIndex(t=>t.id===n);if(-1!==t){let n=i.messages.slice(0,t),o=(0,a._)((0,s._)({},i),{messages:n,updatedAt:Date.now()});this.stateManager.setCurrentConversation(o),yield this.storage.save(o),this.stateManager.clearEditingMessage(),i=o}}i||(i=(0,m.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature),this.stateManager.setCurrentConversation(i));let o=null;t.trim()&&(o=(0,m.createUserMessage)(t),i.title||(i=(0,a._)((0,s._)({},i),{title:t})),i=(0,a._)((0,s._)({},i),{updated:Date.now(),messages:[...i.messages,o]})),this.stateManager.setCurrentConversation((0,s._)({},i)),o&&this.j.e.fire("messageSent.ai-assistant-pro",o),this.stateManager.setLoading(!0),this.stateManager.clearError();try{yield this.sendRequestToAI(0),this.stateManager.clearSelectionContexts()}catch(t){if((0,_.isAbortError)(t))return;this.stateManager.setError(t instanceof Error?t.message:String(t))}finally{this.stateManager.setLoading(!1)}}).call(this)}sendRequestToAI(t=0){return(0,o._)(function*(){let i,n,o=this.j.o.aiAssistantPro.maxRecursionToolCallDepth;if(t>=o)throw Error(`Max recursion depth ${o} reached for tool calls`);let r=this.stateManager.getCurrentConversation();if(!r)return;let a=(0,m.findParentMessageId)(r),[l]=yield Promise.all([this.apiClient.sendRequest(r.id,r.messages,a,this.stateManager.getSelectionContexts(),r.options),this.storage.save(r)]);if("stream"===l.mode){let t=yield(0,m.processStreamingResponse)(this.stateManager,l,r);i=t.aiMessage,n=t.index,r=t.conversation}else{let t=(0,m.processFinalResponse)(l,r);i=t.aiMessage,n=t.index,r=t.conversation}r=yield(0,m.processArtifacts)(this.j,i,r,n),this.j.e.fire("messageReceived.ai-assistant-pro",i),this.stateManager.setCurrentConversation((0,s._)({},r)),yield this.storage.save(r),yield this.handleToolCalls(i.id,t)}).call(this)}deleteConversation(t){return(0,o._)(function*(){yield this.__loadData(),yield(0,m.deleteConversationWithCleanup)(this.j,t,this.storage,this.stateManager,this.permissionManager)}).call(this)}renameConversation(t,i){return(0,o._)(function*(){var n;let o=yield this.storage.get(t);if(!o)return;let r=(0,a._)((0,s._)({},o),{title:i,updated:Date.now()});yield this.storage.save(r),(null==(n=this.state.currentConversation)?void 0:n.id)===t&&this.stateManager.setCurrentConversation(r);let l=yield this.storage.list();this.stateManager.setConversations(l)}).call(this)}searchConversations(t){return(0,o._)(function*(){yield this.__loadData(),yield(0,m.handleConversationSearch)(t,this.storage,this.stateManager)}).call(this)}handleToolCalls(t,i=0){return(0,o._)(function*(){let n=this.stateManager.getCurrentConversation();if(!n)return;let o=n.messages.find(i=>i.id===t);if(!o)return;let r=o.toolCalls;if(!r||0===r.length)return;let s=r.filter(t=>!(0,m.isTerminalToolCallStatus)(t.status));if(0===s.length)return;let{approved:a,needsPermission:l}=this.permissionManager.filterToolCalls(s,n.permissions);for(let n of(this.stateManager.setPendingToolCalls(l),a))yield this.executeToolCall(t,n,i)}).call(this)}executeToolCall(t,i,n=0){return(0,o._)(function*(){let o=this.stateManager.getCurrentConversation();if(!o)return;let r=yield(0,m.executeToolCall)(this.j,i,this.toolRegistry),l=o.messages.findIndex(i=>i.id===t);if(-1===l)return;let u=o.messages[l],c=o.messages.slice();c[l]=(0,m.updateToolCallInMessage)(u,r),o=(0,a._)((0,s._)({},o),{messages:c,updated:Date.now()}),this.stateManager.setCurrentConversation(o),(0,m.areAllToolCallsExecuted)(o)&&(yield this.sendRequestToAI(n+1))}).call(this)}copyMessage(t){return(0,o._)(function*(){let i=this.stateManager.getCurrentConversation();if(!i)return;let n=i.messages.find(i=>i.id===t);if(n)try{yield navigator.clipboard.writeText(n.content),this.j.message.success("Message copied to clipboard")}catch(t){this.j.e.fire("error",Error("Failed to copy message"))}}).call(this)}restartFromMessage(t){return(0,o._)(function*(){let i=this.stateManager.getCurrentConversation();if(!i)return;let n=i.messages.findIndex(i=>i.id===t);if(-1===n)return;let o=i.messages[n];if("user"!==o.role)return;yield this.__loadData();let r=i.messages.slice(0,n),l=(0,a._)((0,s._)({},i),{messages:r,updatedAt:Date.now()});this.stateManager.setCurrentConversation(l),yield this.storage.save(l),yield this.sendMessage(o.content)}).call(this)}editMessage(t){return(0,o._)(function*(){let i=this.stateManager.getCurrentConversation();if(!i)return;let n=i.messages.find(i=>i.id===t);n&&"user"===n.role&&(this.stateManager.setEditingMessageId(t),this.mainPanel.inputArea.setValue(n.content),this.mainPanel.inputArea.focus())}).call(this)}cancelEditMessage(){this.stateManager.isEditingMessage()&&(this.stateManager.clearEditingMessage(),this.mainPanel.inputArea.setValue(""))}deleteMessage(t){return(0,o._)(function*(){yield this.__loadData();let i=this.stateManager.getCurrentConversation();if(!i||-1===i.messages.findIndex(i=>i.id===t))return;let n=i.messages.filter(i=>i.id!==t),o=(0,a._)((0,s._)({},i),{messages:n,updatedAt:Date.now()});this.stateManager.setCurrentConversation(o),yield this.storage.save(o)}).call(this)}beforeDestruct(){var t,i,n,o,r,s,a,l;this.textAutocompleteSource&&(this.j.e.fire("unregisterAutocompleteSource",this.textAutocompleteSource),this.textAutocompleteSource=null),this.textAutocompleteCache.clear(),this.__closeFlightMode(),null==(t=(0,v.cached)(this,"toolRegistry"))||t.destruct(),null==(i=(0,v.cached)(this,"permissionManager"))||i.destruct(),null==(n=(0,v.cached)(this,"apiClient"))||n.destruct(),null==(o=(0,v.cached)(this,"stateManager"))||o.destruct(),null==(r=(0,v.cached)(this,"mainPanel"))||r.destruct(),null==(s=(0,v.cached)(this,"dialog"))||s.destruct(),null==(l=(0,v.cached)(this,"storage"))||null==(a=l.close)||a.call(l)}constructor(...t){super(...t),(0,r._)(this,"buttons",[{name:"aiAssistantPro",group:"insert"},{name:"aiCommandsPro",group:"insert"}]),(0,r._)(this,"textAutocompleteSource",null),(0,r._)(this,"textAutocompleteCache",new Map),(0,r._)(this,"__initedPromise",null),(0,r._)(this,"__openedMode",null)}}(0,r._)(k,"requires",["license","autocomplete"]),(0,l.__decorate)([v.cache],k.prototype,"toolRegistry",null),(0,l.__decorate)([v.cache],k.prototype,"permissionManager",null),(0,l.__decorate)([v.cache],k.prototype,"apiClient",null),(0,l.__decorate)([v.cache],k.prototype,"storage",null),(0,l.__decorate)([v.cache],k.prototype,"stateManager",null),(0,l.__decorate)([v.cache],k.prototype,"mainPanel",null),(0,l.__decorate)([v.cache],k.prototype,"dialog",null),(0,l.__decorate)([(0,v.watch)("state.theme")],k.prototype,"__applyTheme",null),(0,l.__decorate)([(0,v.watch)(":openAIAssistantPro.ai-assistant-pro")],k.prototype,"openAssistant",null),(0,l.__decorate)([(0,v.watch)([":resize","state.panelWidth","state.panelHeight"])],k.prototype,"__onResizeInPanelView",null),(0,l.__decorate)([(0,v.watch)(["state.isOpen","state.displayMode","state.panelWidth","state.panelHeight","state.theme","state.defaultModel","state.defaultTemperature","state.currentConversation"]),(0,v.debounce)()],k.prototype,"__onSavedStateChange",null),(0,l.__decorate)([(0,v.watch)(":closeAIAssistantPro.ai-assistant-pro")],k.prototype,"closeAssistant",null),(0,l.__decorate)([(0,v.watch)(":addContextToAIAssistant.ai-assistant-pro")],k.prototype,"addCurrentSelectionToContext",null),(0,l.__decorate)([(0,v.watch)(":executeQuickCommand.ai-assistant-pro")],k.prototype,"executeQuickCommand",null),(0,l.__decorate)([(0,v.watch)(":sendMessage.ai-assistant-pro")],k.prototype,"sendMessage",null),(0,l.__decorate)([(0,v.watch)(":searchConversations.ai-assistant-pro")],k.prototype,"searchConversations",null),(0,l.__decorate)([(0,v.watch)(":copyMessage.ai-assistant-pro")],k.prototype,"copyMessage",null),(0,l.__decorate)([(0,v.watch)(":restartFromMessage.ai-assistant-pro")],k.prototype,"restartFromMessage",null),(0,l.__decorate)([(0,v.watch)(":editMessage.ai-assistant-pro")],k.prototype,"editMessage",null),(0,l.__decorate)([(0,v.watch)(":cancelEditMessage.ai-assistant-pro")],k.prototype,"cancelEditMessage",null),(0,l.__decorate)([(0,v.watch)(":deleteMessage.ai-assistant-pro")],k.prototype,"deleteMessage",null),k=(0,l.__decorate)([v.component],k),w.JoditPro.plugins.add("aiAssistantPro",k)},66645:function(t,i,n){"use strict";var o,r=n(77688),s=n(56075),a=n(11886),l=n(47373),u=n(94668),c=n.n(u),d=n(86428),h=n.n(d),p=n(75966),f=n.n(p),m=n(83207),g=n.n(m),b=n(99219),v=n.n(b),y=n(63674),_=n.n(y),C=n(4133),w=n.n(C),F=n(94454),E=n(53835),k=n(6441),S=n(12153),A=n(31974),D=n(72573);S.Icon.set("ai-assistant-pro",h()).set("ai-commands-pro",f()).set("ai-add-context",c()).set("send",v()).set("tool-bolt",w()).set("chevron-right",g()).set("shield",_()),k.Config.prototype.aiAssistantPro={displayMode:"right",panelWidth:400,panelHeight:500,flightPanelHeight:250,dialogFullSize:!1,resizable:!0,apiMode:"incremental",apiRequest:null,maxRetries:3,requestTimeout:3e5,retryDelay:1e3,maxRecursionToolCallDepth:1e3,enabledTools:(0,E.getToolNames)(),customTools:[],toolPermissions:{},autoApproveTools:["readDocument","readBlocks","readSelection","insertHTML","addHTML"],alwaysDenyTools:[],defaultPermissionScope:"conversation",storage:"indexedDB",maxConversations:50,storageKey:"jodit-ai-assistant-pro",showConversationList:!0,enableMarkdown:!0,enableCodeHighlight:!0,maxMessageHeight:400,placeholderText:"Ask AI assistant...",sendShortcut:"Ctrl+Enter",showTimestamps:!0,formatTimestamp:(t,i)=>{let n=new Date(t),o=new Date().getTime()-n.getTime();return o<6e4?i("Just now"):o<36e5?i("%dm ago",Math.floor(o/6e4)):o<864e5?i("%dh ago",Math.floor(o/36e5)):n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},formatMessageContent:(t,i)=>D.marked.parse(t,{breaks:!0,gfm:!0}),showAvatars:!0,showTypingIndicator:!0,includeSelectionByDefault:!0,maxContextRanges:5,showContextPreview:!0,sendOnEnter:!0,instructions:void 0,includeEditorMetadata:!1,autoOpen:!0,rememberLastConversation:!0,autoFocusInput:!0,closeAfterInsert:!1,enableSoundNotifications:!1,debug:!1,textAutocompleteEnabled:!1,textAutocompleteApiRequest:null,textAutocompleteMinQueryLength:3,textAutocompleteMaxSuggestions:3,textAutocompleteDebounceMs:500,textAutocompleteCacheTTL:3e4,textAutocompleteCacheMaxSize:50,quickCommandsSilentMode:!1,quickCommandsDisplayMode:"flight",showCopyMessageAction:!0,showRestartMessageAction:!0,showEditMessageAction:!0,showDeleteMessageAction:!0,dialogSettings:{},allowEditDialogSettings:!1,allowEditDisplayMode:!0,allowEditPanelWidth:!0,initiallyOpened:!1,allowClose:!0,persistOpenState:!0,theme:"parent",allowEditTheme:!0,uploadBase64Artifact(t,i){return(0,r._)(function*(){if("image"===t.type&&t.data&&"base64"===t.data.kind)try{let n=(0,l.base64ToFile)(t.data.base64,t.id,t.mimeType),o=yield i.uploader.upload([n]);return(0,a._)((0,s._)({},t),{data:{kind:"url",url:o.baseurl+o.files[0]},metadata:(0,a._)((0,s._)({},t.metadata),{filename:o.files[0]})})}catch(t){i.e.fire("error",t)}return t})()},getAIProviderOptions(t,i){return(0,F.getAIProviderOptions)(t,i)},registerAIProvider(t,i){(0,F.registerAIProvider)(t,i)}},k.Config.prototype.controls.aiAssistantPro={icon:"ai-assistant-pro",tooltip:"AI Assistant",hotkeys:["ctrl+shift+a","cmd+shift+a"],exec(t){t.e.fire("openAIAssistantPro.ai-assistant-pro")},isDisabled(t){return!t.o.aiAssistantPro.apiRequest},getLabel(t){return t.o.aiAssistantPro.apiRequest?"AI Assistant":"AI Assistant (not configured)"}},k.Config.prototype.controls.aiAddContext={icon:"ai-add-context",tooltip:"Add to AI Context",exec(t){t.e.fire("addContextToAIAssistant")},isDisabled(t){return!t.o.aiAssistantPro.apiRequest||t.s.isCollapsed()}},k.Config.prototype.controls.aiCommandsPro={icon:"ai-commands-pro",tooltip:"AI Commands",isDisabled(t){return!t.o.aiAssistantPro.apiRequest},list:A.aiAssitentCommands,exec(t,i,{control:n}){t.e.fire("executeQuickCommand.ai-assistant-pro",n.name)}};let x=(null==(o=k.Config.prototype.tuneBlock)?void 0:o.popup)||{},I={};["p","h1","h2","h3","h4","h5","h6","div","section","article","pre","blockquote","ul","ol","li","table","tr","td","th","img","figure"].forEach(t=>{let i=x[t]||["tune.up","tune.remove","tune.down"];I[t]=[...i,"|","aiAddContext"]}),k.Config.prototype.tuneBlock&&(k.Config.prototype.tuneBlock.popup=(0,s._)({},x,I))},6689:function(t,i,n){"use strict";n.d(i,{throwIfAborted:function(){return r}});var o=n(93661);function r(t){if(t.aborted)throw(0,o.abort)()}},61872:function(t,i,n){"use strict";n.d(i,{processArtifacts:function(){return d},processFinalResponse:function(){return c},processStreamingResponse:function(){return u}});var o=n(89929),r=n(77688),s=n(56075),a=n(11886),l=n(61558);function u(t,i,n){return(0,r._)(function*(){let r=(0,l.createAIMessage)(),u=-1;var c,d=!1,h=!1;try{for(var p,f=(0,o._)(i.stream);d=!(p=yield f.next()).done;d=!1){let i=p.value;switch(i.type){case"created":r=(0,a._)((0,s._)({},r),{id:i.response.responseId,content:""}),u=n.messages.length;break;case"text-delta":r=(0,a._)((0,s._)({},r),{content:r.content+i.delta});break;case"completed":r=(0,a._)((0,s._)({},r),{id:i.response.responseId,toolCalls:i.response.toolCalls||[],artifacts:i.response.artifacts||[]});break;case"error":{let t=(0,l.createErrorMessage)(i.error);r=(0,a._)((0,s._)({},r),{id:t.id,content:t.content})}}if(r.id){let i=n.messages.slice();i[u>=0?u:n.messages.length]=r,n=(0,a._)((0,s._)({},n),{messages:i,updated:Date.now()}),t.setCurrentConversation(n)}}}catch(t){h=!0,c=t}finally{try{d&&null!=f.return&&(yield f.return())}finally{if(h)throw c}}return{aiMessage:r,index:u,conversation:n}})()}function c(t,i){let n=(0,a._)((0,s._)({},(0,l.createAIMessage)()),{id:t.response.responseId,content:t.response.content,toolCalls:t.response.toolCalls||[],artifacts:t.response.artifacts||[]}),o=i.messages.slice();return o.push(n),{aiMessage:n,index:(i=(0,a._)((0,s._)({},i),{messages:o,updated:Date.now()})).messages.length-1,conversation:i}}function d(t,i,n,o){return(0,r._)(function*(){if(i.artifacts&&i.artifacts.length>0){let r=n.messages.slice();return r[o]=(0,a._)((0,s._)({},r[o]),{artifacts:yield(0,l.uploadArtifacts)(t,i.artifacts)}),(0,a._)((0,s._)({},n),{messages:r,updated:Date.now()})}return n})()}},49459:function(t,i,n){"use strict";function o(t,i,n={}){let r=t[i];if("string"!=typeof r||!n.allowEmpty&&""===r)throw Error(`Parameter "${i}" is required and must be a${n.allowEmpty?"":" non-empty"} string`);return r}n.d(i,{requireString:function(){return o}})},44526:function(t,i,n){"use strict";n.d(i,{resolveBlock:function(){return r}});var o=n(22732);function r(t,{selector:i,index:n,requireExactlyOne:s=!1}={}){let a=null!=i&&""!==i.trim(),l=null!=n;if(s&&a===l)throw Error("Either index or selector must be provided, but not both");if(!a&&!l)throw Error("Block identifier is required");if(a){if("string"!=typeof i)throw Error("Selector must be a string");let n=t.editor.querySelector(i);if(!n)throw Error(`No element found matching selector "${i}"`);if(!o.Dom.isElement(n))throw Error(`Selector "${i}" does not point to an element node`);return{element:n,identifier:`with selector "${i}"`}}if("number"!=typeof n)throw Error("Block index must be a number");let u=Array.from(t.editor.children);if(n<0||n>=u.length)throw Error(`Block index ${n} is out of range. Document has ${u.length} blocks`);let c=u[n];if(!o.Dom.isElement(c))throw Error(`Block at index ${n} is not a valid element`);return{element:c,identifier:`at index ${n}`}}},70308:function(t,i,n){"use strict";n.d(i,{areAllToolCallsExecuted:function(){return u},createNewConversation:function(){return r},findMessagesWithPendingToolCalls:function(){return c},findParentMessageId:function(){return s},isTerminalToolCallStatus:function(){return l}});var o=n(21064);function r(t,i,n,s=[]){let a=t.o.aiAssistantPro,l={id:(0,o.generateConversationId)(),created:Date.now(),updated:Date.now(),messages:s,permissions:[],options:{model:null!=i?i:a.defaultModel,temperature:null!=n?n:a.defaultTemperature}};return t.e.fire("conversationCreated.ai-assistant-pro",l),l}function s(t){for(let i=t.messages.length-1;i>=0;i--){let n=t.messages[i];if("assistant"===n.role&&!n.id.startsWith("error_"))return n.id}return null}let a=new Set(["executed","denied","error"]);function l(t){return a.has(t)}function u(t){let i=t.messages[t.messages.length-1];return!!(null==i?void 0:i.toolCalls)&&i.toolCalls.every(t=>l(t.status))}function c(t){return t.messages.filter(t=>t.toolCalls&&t.toolCalls.length>0&&t.toolCalls.some(t=>!l(t.status)))}},473:function(t,i,n){"use strict";n.d(i,{handleBackToList:function(){return h},handleConversationSearch:function(){return p},handleConversationSelect:function(){return d},handleToolApproval:function(){return u},handleToolDenial:function(){return c}});var o=n(77688),r=n(56075),s=n(11886),a=n(79078),l=n(82758);function u(t,i,n,a,l){return(0,o._)(function*(){let o=n.getPendingToolCalls().find(i=>i.id===t);if(!o)return null;let u=a.grantPermission(o.name,i),c=n.getCurrentConversation();return c&&(c.permissions.push(u),yield l.save(c)),n.removePendingToolCall(t),(0,s._)((0,r._)({},o),{status:"approved"})})()}function c(t,i,n,l){return(0,o._)(function*(){let o=n.getPendingToolCalls().find(t=>t.id===i);if(!o)return;let u=n.getCurrentConversation();if(!u)return;let c=u.messages.findIndex(t=>{var n;return null==(n=t.toolCalls)?void 0:n.find(t=>t.id===i)});if(-1===c)return;let d=u.messages[c],h=(0,s._)((0,r._)({},o),{result:{error:"Tool call denied by user."},status:"denied"}),p=(0,a.updateToolCallInMessage)(d,h),f=[...u.messages];f[c]=p,u=(0,s._)((0,r._)({},u),{messages:f,updated:Date.now()}),n.setCurrentConversation(u),yield l.save(u),t.e.fire("toolCallDenied.ai-assistant-pro",o),n.removePendingToolCall(i)})()}function d(t,i,n){return(0,o._)(function*(){try{n.setLoading(!0);let o=yield i.get(t);if(!o)throw Error("Conversation not found: "+t);n.setCurrentConversation((0,r._)({},o))}catch(t){l.IS_PROD}finally{n.setLoading(!1)}})()}function h(t,i){return(0,o._)(function*(){i.setView("conversationList");try{i.setLoading(!0);let n=yield t.list().catch(()=>[]);i.setConversations(n)}finally{i.setLoading(!1)}})()}function p(t,i,n){return(0,o._)(function*(){n.setLoading(!0);try{let o=yield i.list(t||void 0);n.setConversations(o),n.setView("conversationList")}finally{n.setLoading(!1)}})()}},58579:function(t,i,n){"use strict";n.d(i,{applyTheme:function(){return d.applyTheme},areAllToolCallsExecuted:function(){return r.areAllToolCallsExecuted},createNewConversation:function(){return r.createNewConversation},createUserMessage:function(){return a.createUserMessage},deleteConversationWithCleanup:function(){return c.deleteConversationWithCleanup},executeToolCall:function(){return h.executeToolCall},findMessagesWithPendingToolCalls:function(){return r.findMessagesWithPendingToolCalls},findParentMessageId:function(){return r.findParentMessageId},getCurrentSelectionContext:function(){return u.getCurrentSelectionContext},handleBackToList:function(){return s.handleBackToList},handleConversationSearch:function(){return s.handleConversationSearch},handleConversationSelect:function(){return s.handleConversationSelect},handleToolApproval:function(){return s.handleToolApproval},handleToolDenial:function(){return s.handleToolDenial},invertMode:function(){return l.invertMode},isTerminalToolCallStatus:function(){return r.isTerminalToolCallStatus},loadInitialData:function(){return c.loadInitialData},processArtifacts:function(){return o.processArtifacts},processFinalResponse:function(){return o.processFinalResponse},processStreamingResponse:function(){return o.processStreamingResponse},resizeInPanelView:function(){return l.resizeInPanelView},updateToolCallInMessage:function(){return h.updateToolCallInMessage}});var o=n(61872),r=n(70308),s=n(473),a=n(61558),l=n(71050),u=n(15927),c=n(56110),d=n(53014),h=n(79078)},61558:function(t,i,n){"use strict";n.d(i,{createAIMessage:function(){return a},createErrorMessage:function(){return l},createUserMessage:function(){return s},uploadArtifacts:function(){return u}});var o=n(77688),r=n(21064);function s(t){return{id:(0,r.generateMessageId)(),role:"user",content:t,timestamp:Date.now()}}function a(){return{id:"",role:"assistant",content:"",artifacts:[],timestamp:Date.now(),toolCalls:[]}}function l(t){return{id:"error_"+(0,r.generateMessageId)(),role:"assistant",content:`❌ Error: ${t.message}`,timestamp:Date.now(),toolCalls:[],artifacts:[]}}function u(t,i){return(0,o._)(function*(){if(!i||0===i.length)return i;let n=t.o.aiAssistantPro.uploadBase64Artifact;return n?Promise.all(i.map(i=>(0,o._)(function*(){var o;return null!=(o=n(i,t))?o:i})())):i})()}},71050:function(t,i,n){"use strict";n.d(i,{invertMode:function(){return r},resizeInPanelView:function(){return s}});var o=n(41180);function r(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top"}}function s(t,i,n,s){var a,l,u,c;if("dialog"===i||"flight"===i)return;("left"===i||"right"===i)&&(null==(u=t.currentPlace.slots[r(i)])||u.style.setProperty(`--jd-slot-${r(i)}-width`,"auto"),null==(c=t.currentPlace.slots[i])||c.style.setProperty(`--jd-slot-${i}-width`,`${n}px`));let d=null!=(a=(0,o.css)(t.currentPlace.workplace,"height"))?a:0;null==(l=t.currentPlace.slots[i])||l.style.setProperty("min-height",`${Math.min(d,s)}px`)}},15927:function(t,i,n){"use strict";function o(t){if(t.s.isCollapsed())return null;let i=t.s.html,n=t.s.range;return{html:i,rangeInfo:{startContainer:n.startContainer.nodeName,startOffset:n.startOffset,endContainer:n.endContainer.nodeName,endOffset:n.endOffset}}}n.d(i,{getCurrentSelectionContext:function(){return o}})},56110:function(t,i,n){"use strict";n.d(i,{deleteConversationWithCleanup:function(){return s},loadInitialData:function(){return a}});var o=n(77688),r=n(82758);function s(t,i,n,r,s){return(0,o._)(function*(){try{r.setLoading(!0),yield n.delete(i),r.removeConversation(i),s.clearConversationPermissions(i);let o=r.getCurrentConversation();(null==o?void 0:o.id)===i&&r.setCurrentConversation(null);let a=yield n.list();r.setConversations(a),r.setView(0===a.length?"welcome":"conversationList"),t.e.fire("conversationDeleted.ai-assistant-pro",i)}catch(i){t.alert(t.i18n("Failed to delete conversation")+": "+((null==i?void 0:i.message)||"Unknown error"))}finally{r.setLoading(!1)}})()}function a(t,i,n){return(0,o._)(function*(){n.setLoading(!0);try{let[r,s]=yield Promise.all([i.list().catch(()=>[]),i.getGlobalSettings().catch(()=>null)]);if(n.setConversations(r),s&&n.setSavedState(s),0===r.length)n.setView("welcome");else if(t.o.aiAssistantPro.rememberLastConversation&&(null==s?void 0:s.currentConversationId)){var o;let t=null!=(o=r.find(t=>t.id===s.currentConversationId))?o:r[0],a=yield i.get(t.id);a?n.setCurrentConversation(a):n.setView("conversationList")}else n.setView("conversationList")}catch(t){r.IS_PROD,n.setView("welcome")}finally{n.setLoading(!1)}})()}},53014:function(t,i,n){"use strict";n.d(i,{applyTheme:function(){return s}});let o=["jodit_theme_dark","jodit-ai-assistant-pro_theme_dark","jodit-dialog_theme_dark"],r=["jodit_theme_light","jodit-ai-assistant-pro_theme_light","jodit-dialog_theme_light"];function s(t,i,n,s,a){let l;if(null==s||s.classList.remove(...o),null==s||s.classList.remove(...r),"dialog"===n){let t=null==a?void 0:a.container;null==t||t.classList.remove(...o),null==t||t.classList.remove(...r)}if(l="dark"===i?o:r,null==s||s.classList.add(...l),"dialog"===n){let t=null==a?void 0:a.container;null==t||t.classList.add(...l)}}},79078:function(t,i,n){"use strict";n.d(i,{executeToolCall:function(){return a},updateToolCallInMessage:function(){return l}});var o=n(77688),r=n(56075),s=n(11886);function a(t,i,n){return(0,o._)(function*(){let o;try{let t=new AbortController().signal,a=yield n.executeTool(i.name,i.arguments,t);o=(0,s._)((0,r._)({},i),{result:{result:a},status:"executed"})}catch(n){o=(0,s._)((0,r._)({},i),{result:{error:n instanceof Error?n.message:String(n)},status:"error"}),t.e.fire("toolCallFailed.ai-assistant-pro",o)}return t.e.fire("toolCallExecuted.ai-assistant-pro",o,{toolCallId:o.id,result:o.result}),o})()}function l(t,i){var n,o;let a=null==(o=t.toolCalls)?void 0:o.findIndex(t=>t.id===i.id);if(null==a||-1===a)return t;let l=[...null!=(n=null==t?void 0:t.toolCalls)?n:[]];return l[a]=i,(0,s._)((0,r._)({},t),{toolCalls:l})}},86449:function(t,i,n){"use strict";n.d(i,{APIClient:function(){return c}});var o=n(77688),r=n(82749),s=n(56075),a=n(11886),l=n(82758),u=n(21537);class c{sendRequest(t,i,n,r,s){return(0,o._)(function*(){let{apiRequest:o,requestTimeout:a,maxRetries:c}=this.jodit.o.aiAssistantPro;if(!o)throw Error("AI Assistant Pro callback is not configured");let d=new AbortController;this.abortControllers.add(d);try{let h=this.buildRequestContext(t,i,n,r,s),p=null;for(let t=0;c>=t;t++)try{if(d.signal.aborted)throw(0,u.abort)();let t=setTimeout(()=>{d.abort()},a);try{let i=yield o(h,d.signal);return clearTimeout(t),this.validateResponse(i),i}catch(i){throw clearTimeout(t),i}}catch(i){if(p=i,l.IS_PROD,c>t){let i=this.calculateRetryDelay(t);yield this.sleep(i)}else throw i}throw p||Error("API request failed after all retries")}finally{this.abortControllers.delete(d)}}).call(this)}abort(){this.abortControllers.forEach(t=>{t.abort()}),this.abortControllers.clear()}isInProgress(){return this.abortControllers.size>0}buildRequestContext(t,i,n,o,r){let l,{apiMode:u,instructions:c}=this.jodit.o.aiAssistantPro,d={mode:u,conversationId:t,tools:this.toolRegistry.getAllTools(),selectionContexts:o,conversationOptions:r,instructions:c};if("full"===u)l=i;else if(n){let t=i.findIndex(t=>t.id===n);l=-1!==t?i.slice(t+1):i,d=(0,a._)((0,s._)({},d),{parentMessageId:n})}else l=i;return(0,a._)((0,s._)({},d),{messages:this.expandToolMessages(l,i.find(t=>t.id===n))})}expandToolMessages(t,i){let n=[];for(let i of t)n.push(i),this.expandToolResultsMessage(i,n);return i&&this.expandToolResultsMessage(i,n),n}expandToolResultsMessage(t,i){if(t.toolCalls&&t.toolCalls.length>0)for(let o of t.toolCalls){var n;let r=null!=(n=o.result)?n:{error:"result not found"};if(i.find(t=>t.id===`${o.id}-result`))continue;let s={id:`${o.id}-result`,role:"tool",content:r.error?`Error: ${r.error}`:JSON.stringify(r.result),timestamp:t.timestamp,toolResults:[{toolCallId:o.id,result:r}]};i.push(s)}}validateResponse(t){if("final"!==t.mode)return;let i=t.response;if(!i)throw Error("API returned empty response");if(!i.responseId)throw Error("API response missing responseId");if(void 0===i.content)throw Error("API response missing content");if(void 0===i.finished)throw Error("API response missing finished flag");if(i.toolCalls){if(!Array.isArray(i.toolCalls))throw Error("API response toolCalls must be an array");i.toolCalls.forEach((t,i)=>{if(!t.id)throw Error(`Tool call at index ${i} is missing id`);if(!t.name)throw Error(`Tool call at index ${i} is missing name`);if(!t.arguments||"object"!=typeof t.arguments)throw Error(`Tool call at index ${i} has invalid arguments`)})}}calculateRetryDelay(t){let{retryDelay:i}=this.jodit.o.aiAssistantPro;return i*Math.pow(2,t)+Math.random()*i}sleep(t){return new Promise(i=>setTimeout(i,t))}destruct(){this.abort()}constructor(t,i){(0,r._)(this,"jodit",void 0),(0,r._)(this,"toolRegistry",void 0),(0,r._)(this,"abortControllers",void 0),this.jodit=t,this.toolRegistry=i,this.abortControllers=new Set}}},47373:function(t,i,n){"use strict";function o(t,i,n="image/png"){let r=atob(t),s=r.length,a=new Uint8Array(s);for(let t=0;s>t;t++)a[t]=r.charCodeAt(t);return new File([new Blob([a],{type:n})],i,{type:n})}n.d(i,{base64ToFile:function(){return o}})},21020:function(t,i,n){"use strict";n.d(i,{PermissionManager:function(){return a}});var o=n(82749),r=n(56075),s=n(11886);class a{requiresPermission(t){let{autoApproveTools:i,alwaysDenyTools:n}=this.jodit.o.aiAssistantPro;if(n.includes(t))return!0;if(i.includes(t))return!1;let o=this.toolRegistry.getTool(t);return!o||o.requiresPermission}isAutoDenied(t){let{alwaysDenyTools:i}=this.jodit.o.aiAssistantPro;return i.includes(t)}isAutoApproved(t){let{autoApproveTools:i}=this.jodit.o.aiAssistantPro;return i.includes(t)}checkPermission(t,i){if(this.isAutoApproved(t))return{toolName:t,granted:!0,grantedAt:Date.now(),scope:"once"};if(this.isAutoDenied(t))return null;let n=this.permanentPermissions.get(t);return n&&n.granted?n:i.find(i=>i.toolName===t&&i.granted)||null}grantPermission(t,i){let n={toolName:t,granted:!0,grantedAt:Date.now(),scope:i};return"forever"===i&&(this.permanentPermissions.set(t,n),this.savePermanentPermissions()),n}denyPermission(t){return{toolName:t,granted:!1,grantedAt:Date.now(),scope:"once"}}filterToolCalls(t,i){let n=[],o=[],a=[];for(let l of t){if(this.isAutoDenied(l.name)){a.push((0,s._)((0,r._)({},l),{status:"denied"}));continue}if(this.isAutoApproved(l.name)){n.push((0,s._)((0,r._)({},l),{status:"approved"}));continue}let t=this.checkPermission(l.name,i);t&&t.granted?n.push((0,s._)((0,r._)({},l),{status:"approved"})):this.requiresPermission(l.name)?(this.jodit.e.fire("permissionRequested.ai-assistant-pro",l.name),o.push((0,s._)((0,r._)({},l),{status:"pending"}))):n.push((0,s._)((0,r._)({},l),{status:"approved"}))}return{approved:n,needsPermission:o,denied:a}}clearConversationPermissions(t){}loadPermanentPermissions(){try{let t=localStorage.getItem(this.PERMANENT_PERMISSIONS_KEY);t&&JSON.parse(t).forEach(t=>{"forever"===t.scope&&t.granted&&this.permanentPermissions.set(t.toolName,t)})}catch(t){}}savePermanentPermissions(){try{let t=Array.from(this.permanentPermissions.values());localStorage.setItem(this.PERMANENT_PERMISSIONS_KEY,JSON.stringify(t))}catch(t){}}clearPermanentPermissions(){this.permanentPermissions.clear(),localStorage.removeItem(this.PERMANENT_PERMISSIONS_KEY)}getPermanentPermissions(){return Array.from(this.permanentPermissions.values())}revokePermanentPermission(t){this.permanentPermissions.delete(t),this.savePermanentPermissions()}destruct(){this.permanentPermissions.clear()}constructor(t,i){(0,o._)(this,"jodit",void 0),(0,o._)(this,"toolRegistry",void 0),(0,o._)(this,"permanentPermissions",void 0),(0,o._)(this,"PERMANENT_PERMISSIONS_KEY",void 0),this.jodit=t,this.toolRegistry=i,this.permanentPermissions=new Map,this.PERMANENT_PERMISSIONS_KEY="jodit-permissions.ai-assistant-pro",this.loadPermanentPermissions()}}},46166:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return a}});var o=n(82749),r=n(56075),s=n(11886);class a{createInitialState(){return{isOpen:!1,currentView:"welcome",currentConversation:null,conversations:[],isLoading:!1,error:null,pendingToolCalls:[],selectionContexts:[],abortController:null,editingMessageId:null,theme:this.jodit.o.aiAssistantPro.theme||"parent",displayMode:this.jodit.o.aiAssistantPro.displayMode,panelWidth:this.jodit.o.aiAssistantPro.panelWidth,panelHeight:this.jodit.o.aiAssistantPro.panelHeight,defaultModel:this.jodit.o.aiAssistantPro.defaultModel,defaultTemperature:this.jodit.o.aiAssistantPro.defaultTemperature}}open(){this.state.isOpen=!0,this.jodit.e.fire("open.ai-assistant-pro",this.state.currentConversation)}close(){this.state.isOpen=!1,this.jodit.e.fire("close.ai-assistant-pro")}isOpen(){return this.state.isOpen}setView(t){this.state.currentView=t,this.jodit.e.fire("viewChanged.ai-assistant-pro",t)}getView(){return this.state.currentView}setConversations(t){this.state.conversations=t}setSavedState(t){t.theme&&(this.state.theme=t.theme),t.displayMode&&(this.state.displayMode=t.displayMode),t.panelWidth&&(this.state.panelWidth=t.panelWidth),t.panelHeight&&(this.state.panelHeight=t.panelHeight),t.defaultModel&&(this.state.defaultModel=t.defaultModel),t.defaultTemperature&&(this.state.defaultTemperature=t.defaultTemperature)}getConversations(){return this.state.conversations}setCurrentConversation(t){if(this.state.currentConversation===t)throw Error("Conversation is already current");this.state.currentConversation=t||null,t&&(this.setView("conversation"),this.jodit.e.fire("conversationSwitched.ai-assistant-pro",t))}getCurrentConversation(){return this.state.currentConversation}removeConversation(t){let i=this.state.conversations.filter(i=>i.id!==t);this.setConversations(i)}setLoading(t){this.state.isLoading=t}isLoading(){return this.state.isLoading}setError(t){this.state.error=t,t&&this.jodit.e.fire("error.ai-assistant-pro",Error(t))}getError(){return this.state.error}clearError(){this.setError(null)}setPendingToolCalls(t){this.state.pendingToolCalls=t}getPendingToolCalls(){return this.state.pendingToolCalls}addPendingToolCall(t){let i=[...this.state.pendingToolCalls,t];this.setPendingToolCalls(i)}removePendingToolCall(t){let i=this.state.pendingToolCalls.filter(i=>i.id!==t);this.setPendingToolCalls(i)}updateToolCallStatus(t,i){let n=this.state.pendingToolCalls.map(n=>n.id===t?(0,s._)((0,r._)({},n),{status:i}):n);this.setPendingToolCalls(n)}setSelectionContexts(t){this.state.selectionContexts=t}getSelectionContexts(){return this.state.selectionContexts}addSelectionContext(t){let{maxContextRanges:i}=this.jodit.o.aiAssistantPro,n=[...this.state.selectionContexts,t];n.length>i&&(n=n.slice(-i)),this.setSelectionContexts(n),this.jodit.e.fire("contextAdded.ai-assistant-pro",t)}removeSelectionContext(t){let i=this.state.selectionContexts.filter((i,n)=>n!==t);this.setSelectionContexts(i),this.jodit.e.fire("contextRemoved.ai-assistant-pro",t)}clearSelectionContexts(){this.setSelectionContexts([])}setAbortController(t){this.state.abortController=t}getAbortController(){return this.state.abortController}setEditingMessageId(t){this.state.editingMessageId=t}getEditingMessageId(){return this.state.editingMessageId}isEditingMessage(){return null!=this.state.editingMessageId}clearEditingMessage(){this.setEditingMessageId(null)}reset(){this.state=this.createInitialState()}destruct(){this.state.abortController&&this.state.abortController.abort(),this.reset()}constructor(t){(0,o._)(this,"jodit",void 0),(0,o._)(this,"state",void 0),this.jodit=t,this.state=this.createInitialState()}}},62895:function(t,i,n){"use strict";n.d(i,{WebStorageConversationStorage:function(){return o.WebStorageConversationStorage},createStorageProvider:function(){return o.createStorageProvider}});var o=n(21064)},21064:function(t,i,n){"use strict";n.d(i,{WebStorageConversationStorage:function(){return l},createStorageProvider:function(){return u},generateConversationId:function(){return c},generateMessageId:function(){return d}});var o=n(77688),r=n(82749),s=n(56075),a=n(97333);class l{close(){return this.storage.close()}getConversationKey(t){return`conv:${t}`}getAllKeys(){return(0,o._)(function*(){let t=yield this.storage.get("__conversation_index__");return t&&Array.isArray(t)?t:[]}).call(this)}updateIndex(t){return(0,o._)(function*(){yield this.storage.set("__conversation_index__",t)}).call(this)}addToIndex(t){return(0,o._)(function*(){let i=yield this.getAllKeys();i.includes(t)||(i.push(t),yield this.updateIndex(i))}).call(this)}removeFromIndex(t){return(0,o._)(function*(){let i=(yield this.getAllKeys()).filter(i=>i!==t);yield this.updateIndex(i)}).call(this)}list(t){return(0,o._)(function*(){try{let o=yield this.getAllKeys(),r=[],s=null==t?void 0:t.toLowerCase().trim();for(let t of o){var i,n;let o=yield this.get(t);if(o){if(s){let t=null==(n=o.title)?void 0:n.toLowerCase().includes(s),i=!t&&o.messages.some(t=>t.content.toLowerCase().includes(s));if(!t&&!i)continue}r.push({id:o.id,title:null!=(i=o.title)?i:"",created:o.created,updated:o.updated,messageCount:o.messages.length})}}return r.sort((t,i)=>i.updated-t.updated),r}catch(t){return[]}}).call(this)}get(t){return(0,o._)(function*(){try{let i=this.getConversationKey(t);return(yield this.storage.get(i))||null}catch(t){return null}}).call(this)}save(t){return(0,o._)(function*(){try{if(0===t.messages.length)throw Error("Conversation must have at least one message.");let i=yield this.getAllKeys();i.length>=this.maxConversations&&!i.includes(t.id)&&(yield this.evictOldest());let n=this.getConversationKey(t.id);yield this.storage.set(n,t),yield this.addToIndex(t.id)}catch(i){if((null==i?void 0:i.name)==="QuotaExceededError"||(null==i?void 0:i.code)===22||(null==i?void 0:i.code)===1014){yield this.evictOldest();try{let i=this.getConversationKey(t.id);yield this.storage.set(i,t),yield this.addToIndex(t.id)}catch(t){throw Error("Storage quota exceeded. Please delete some conversations.")}}else throw Error(`Failed to save conversation: ${(null==i?void 0:i.message)||"Unknown error"}`)}}).call(this)}delete(t){return(0,o._)(function*(){try{let i=this.getConversationKey(t);yield this.storage.delete(i),yield this.removeFromIndex(t)}catch(t){}}).call(this)}clear(){return(0,o._)(function*(){try{for(let t of yield this.getAllKeys()){let i=this.getConversationKey(t);yield this.storage.delete(i)}yield this.updateIndex([])}catch(t){}}).call(this)}evictOldest(){return(0,o._)(function*(){try{let t=yield this.list();if(0===t.length)return;t.sort((t,i)=>t.updated-i.updated);let i=t[0];yield this.delete(i.id)}catch(t){}}).call(this)}getGlobalSettings(){return(0,o._)(function*(){try{return(yield this.storage.get("global-settings"))||null}catch(t){return null}}).call(this)}saveGlobalSettings(t){return(0,o._)(function*(){try{let i=yield this.getGlobalSettings(),n=(0,s._)({},i,t);yield this.storage.set("global-settings",n)}catch(t){throw Error("Failed to save global settings")}}).call(this)}constructor(t,i){(0,r._)(this,"storage",void 0),(0,r._)(this,"maxConversations",void 0),this.storage=t,this.maxConversations=i}}function u(t,i){return a.AsyncStorage.makeStorage(t,i)}function c(){return`conv_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function d(){return`msg_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}},55487:function(t,i,n){"use strict";n.d(i,{ToolRegistry:function(){return l}});var o=n(77688),r=n(82749),s=n(56075),a=n(53835);class l{registerBuiltInTools(t){t.forEach(t=>{let i=a.BUILT_IN_TOOLS[t];i&&this.tools.set(t,i)})}registerCustomTools(t){t.forEach(t=>{this.validateToolDefinition(t),this.tools.set(t.name,t)})}validateToolDefinition(t){if(!t.name||"string"!=typeof t.name)throw Error("Tool must have a valid name");if(!t.description||"string"!=typeof t.description)throw Error(`Tool "${t.name}" must have a description`);if(!Array.isArray(t.parameters))throw Error(`Tool "${t.name}" must have a parameters array`);if("function"!=typeof t.execute)throw Error(`Tool "${t.name}" must have an execute function`);t.parameters.forEach(i=>{if(!i.name||"string"!=typeof i.name)throw Error(`Tool "${t.name}" has a parameter without a valid name`);if(!i.type)throw Error(`Tool "${t.name}" parameter "${i.name}" must have a type`);if("boolean"!=typeof i.required)throw Error(`Tool "${t.name}" parameter "${i.name}" must specify if it's required`)})}getAllTools(){return Array.from(this.tools.values())}getTool(t){return this.tools.get(t)}hasTool(t){return this.tools.has(t)}getToolNames(){return Array.from(this.tools.keys())}executeTool(t,i,n){return(0,o._)(function*(){let o=this.getTool(t);if(!o)throw Error(`Tool "${t}" not found`);let r=this.applyDefaults(o,i);this.validateArguments(o,r);try{return yield o.execute(this.jodit,r,n)}catch(t){if((null==t?void 0:t.name)==="AbortError"||n.aborted)throw Error("Tool execution was aborted");throw t}}).call(this)}validateArguments(t,i){let n=Object.keys(i);for(let i of t.parameters.filter(t=>t.required).map(t=>t.name))if(!n.includes(i))throw Error(`Tool "${t.name}" requires parameter "${i}"`);for(let[n,o]of Object.entries(i)){let i=t.parameters.find(t=>t.name===n);if(!i){this.jodit.o.aiAssistantPro.debug;continue}let r=Array.isArray(o)?"array":"object"==typeof o&&null!=o?"object":typeof o;if(i.type!==r&&!("number"===i.type&&"string"===r&&!isNaN(Number(o))))throw Error(`Tool "${t.name}" parameter "${n}" expects type "${i.type}" but got "${r}"`);if(i.enum&&i.enum.length>0&&!i.enum.includes(o))throw Error(`Tool "${t.name}" parameter "${n}" must be one of: ${i.enum.join(", ")}`)}}applyDefaults(t,i){let n=(0,s._)({},i);for(let i of t.parameters)void 0===n[i.name]&&void 0!==i.default&&(n[i.name]=i.default);return n}destruct(){this.tools.clear()}constructor(t){(0,r._)(this,"jodit",void 0),(0,r._)(this,"tools",void 0),this.jodit=t,this.tools=new Map,this.registerBuiltInTools(t.o.aiAssistantPro.enabledTools||[]),this.registerCustomTools(t.o.aiAssistantPro.customTools||[])}}},26612:function(t){t.exports={"AI Assistant":"AI Assistant","AI Assistant Pro":"AI Assistant Pro","Welcome to AI Assistant":"Welcome to AI Assistant","Start your first conversation":"Start your first conversation","Tip: Select text in editor to add context":"Tip: Select text in editor to add context","New Chat":"New Chat","Search conversations...":"Search conversations...","No conversations yet":"No conversations yet","Ask me anything...":"Ask me anything...","Ask a follow-up...":"Ask a follow-up...","Reply...":"Reply...","Type your message...":"Type your message...",Send:"Send",Cancel:"Cancel",Retry:"Retry",Insert:"Insert",Copy:"Copy",Edit:"Edit",Delete:"Delete",New:"New",Back:"Back","Permission Required":"Permission Required",Approve:"Approve",Deny:"Deny",Once:"Once","This conversation":"This conversation",Always:"Always","The AI wants to execute:":"The AI wants to execute:","This will modify your document content.":"This will modify your document content.","Executing...":"Executing...","Completed successfully":"Completed successfully",Failed:"Failed","Pending approval":"Pending approval","Denied by user":"Denied by user","Tool Result":"Tool Result","Tool Execution Error":"Tool Execution Error",Context:"Context",Contexts:"Contexts","Add to AI Context":"Add to AI Context",Remove:"Remove","Clear all":"Clear all","An error occurred":"An error occurred","Request failed":"Request failed","Connection error":"Connection error","AI Assistant is not configured":"AI Assistant is not configured","Thinking...":"Thinking...","Generating response...":"Generating response...",insertHTML:"Insert HTML",readDocument:"Read Document",readBlock:"Read Block",replaceInDocument:"Replace in Document",replaceInBlock:"Replace in Block",getSelection:"Get Selection","Just now":"Just now",Conversation:"Conversation","New Conversation":"New Conversation",Yesterday:"Yesterday","Delete conversation":"Delete conversation","Are you sure you want to delete this conversation?":"Are you sure you want to delete this conversation?","Failed to delete conversation":"Failed to delete conversation"}},63805:function(t,i,n){"use strict";n.r(i),n.d(i,{en:function(){return r.a},ru:function(){return a.a}});var o=n(26612),r=n.n(o),s=n(55790),a=n.n(s)},55790:function(t){t.exports={"AI Assistant":"AI Ассистент","AI Assistant Pro":"AI Ассистент Pro","Welcome to AI Assistant":"Добро пожаловать в AI Ассистент","Start your first conversation":"Начните первый диалог","Tip: Select text in editor to add context":"Подсказка: Выделите текст в редакторе для добавления контекста","New chat":"Новый чат","Search conversations...":"Поиск диалогов...","No conversations yet":"Пока нет диалогов","Ask me anything...":"Спросите меня о чем угодно...","Ask a follow-up...":"Задайте дополнительный вопрос...","Reply...":"Ответить...","Type your message...":"Введите ваше сообщение...",Send:"Отправить",Cancel:"Отмена",Retry:"Повторить",Insert:"Вставить",Copy:"Копировать",Edit:"Редактировать",Delete:"Удалить",New:"Новый",Back:"Назад","Permission Required":"Требуется разрешение",Approve:"Разрешить",Deny:"Отклонить",Once:"Один раз","This conversation":"Этот диалог",Always:"Всегда","The AI wants to execute:":"AI хочет выполнить:","This will modify your document content.":"Это изменит содержимое вашего документа.","Executing...":"Выполняется...","Completed successfully":"Успешно выполнено",Failed:"Ошибка","Pending approval":"Ожидает разрешения","Denied by user":"Отклонено пользователем","Tool Result":"Результат инструмента","Tool Execution Error":"Ошибка выполнения инструмента",Context:"Контекст",Contexts:"Контексты","Add to AI Context":"Добавить в контекст AI",Remove:"Удалить","Clear all":"Очистить все","An error occurred":"Произошла ошибка","Request failed":"Запрос не выполнен","Connection error":"Ошибка соединения","AI Assistant is not configured":"AI Ассистент не настроен","Thinking...":"Думаю...","Generating response...":"Генерирую ответ...",insertHTML:"Вставить HTML",readDocument:"Прочитать документ",readBlock:"Прочитать блок",replaceInDocument:"Заменить в документе",replaceInBlock:"Заменить в блоке",getSelection:"Получить выделение","Just now":"Только что",Conversation:"Диалог","New Conversation":"Новый диалог",Yesterday:"Вчера","Delete conversation":"Удалить диалог","Are you sure you want to delete this conversation?":"Вы уверены, что хотите удалить этот диалог?","Failed to delete conversation":"Не удалось удалить диалог",Settings:"Настройки","General Settings":"Общие настройки","Conversation Settings":"Настройки диалога","Display Mode":"Режим отображения","Panel Width":"Ширина панели",Theme:"Тема",Model:"Модель",Temperature:"Температура",Close:"Закрыть",Dialog:"Модальное окно",Left:"Левая панель",Right:"Правая панель",Top:"Верхняя панель",Bottom:"Нижняя панель",Inherit:"Наследовать от редактора",Light:"Светлая тема",Dark:"Тёмная тема","%dm ago":"%dм назад","%dh ago":"%dч назад"}},94454:function(t,i,n){"use strict";n.d(i,{getAIProviderOptions:function(){return o.getAIProviderOptions},registerAIProvider:function(){return o.registerAIProvider}}),n(82923);var o=n(58211)},82923:function(t,i,n){"use strict";var o=n(89929),r=n(77688),s=n(86127),a=n(56075),l=n(11886),u=n(25415),c=n(58211),d=n(54079);(0,c.registerAIProvider)("jodit-ai-adapter",t=>{var i;let n=t.url.replace(/\/+$/,""),c=null!=(i=t.provider)?i:"openai",h=!1!==t.stream;return{apiMode:"incremental",maxRetries:0,textAutocompleteEnabled:!0,textAutocompleteApiRequest:(i,o,s)=>(0,r._)(function*(){var r;let a=new d.Ajax({url:`${n}/ai/autocomplete?query=${encodeURIComponent(i)}&key=${encodeURIComponent(t.apiKey)}`,method:"POST",contentType:"application/json",data:{provider:c,context:{maxSuggestions:o}}});s.addEventListener("abort",()=>a.abort(),{once:!0});let l=yield a.send(),u=yield l.json();return u.success&&(null==(r=u.result)?void 0:r.suggestions)?u.result.suggestions:[]})(),apiRequest:(i,p)=>(0,r._)(function*(){let r=new d.Ajax({url:`${n}/ai/request?key=${encodeURIComponent(t.apiKey)}`,method:"POST",contentType:"application/json",data:{provider:c,context:h?(0,l._)((0,a._)({},i),{metadata:(0,l._)((0,a._)({},i.metadata),{stream:!0})}):i}});if(p&&p.addEventListener("abort",()=>r.abort(),{once:!0}),!h){let t=yield r.send();return{mode:"final",response:(yield t.json()).result}}let f=r.stream();return{mode:"stream",stream:(0,u._)(function*(){var t,i=!1,n=!1;try{for(var r,a=(0,o._)(f);i=!(r=yield(0,s._)(a.next())).done;i=!1){let t=r.value;yield JSON.parse(t)}}catch(i){n=!0,t=i}finally{try{i&&null!=a.return&&(yield(0,s._)(a.return()))}finally{if(n)throw t}}})()}})()}})},58211:function(t,i,n){"use strict";n.d(i,{getAIProviderOptions:function(){return r},registerAIProvider:function(){return s}});let o=new Map;function r(t,i){let n=o.get(t);if(!n)throw Error(`AI provider "${t}" is not registered. Available providers: ${[...o.keys()].join(", ")}`);return n(i)}function s(t,i){o.set(t,i)}},65374:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="addHTML",r="Add HTML content to the beginning or end of the document",s=[{name:"html",type:"string",description:"HTML content to add",required:!0},{name:"position",type:"string",description:'Where to add: "start" adds at the beginning of the document, "end" appends to the end',required:!1,default:"end"}],a=!0},686:function(t,i,n){"use strict";n.d(i,{execute:function(){return l}});var o=n(77688),r=n(6689),s=n(49459),a=n(22732);function l(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"html",{allowEmpty:!0}),{position:l="end"}=i;if(!o.trim())return{success:!0,message:"Nothing to add: HTML is empty"};(0,r.throwIfAborted)(n);try{let i=t.createInside.fragment(),n=t.createInside.div();for(n.innerHTML=o;n.firstChild;)i.appendChild(n.firstChild);return"start"===l?a.Dom.prepend(t.editor,i):a.Dom.append(t.editor,i),t.synchronizeValues(),{success:!0,message:`Added ${o.length} characters of HTML at the ${"start"===l?"beginning":"end"} of the document`}}catch(t){throw Error(`Failed to add HTML: ${(null==t?void 0:t.message)||"Unknown error"}`)}})()}},78907:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(65374),a=n(686);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},73943:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="applyFormat",r="Apply or remove inline formatting to the current selection (bold, italic, underline, etc.) or to a specific block",s=[{name:"element",type:"string",description:'HTML element to wrap selection (e.g., "strong", "em", "u", "span")',required:!1},{name:"attributes",type:"object",description:'Attributes to apply (e.g., {"className": "highlight"}, {"style": {"color": "red"}})',required:!1},{name:"remove",type:"boolean",description:"If true, remove the formatting instead of applying it",required:!1,default:!1},{name:"blockIndex",type:"number",description:"Zero-based index of the block to format (if not using current selection)",required:!1},{name:"selector",type:"string",description:"CSS selector to find the block to format (if not using current selection)",required:!1}],a=!0},19127:function(t,i,n){"use strict";n.d(i,{execute:function(){return u}});var o=n(77688),r=n(56075),s=n(11886),a=n(6689),l=n(44526);function u(t,i,n){return(0,o._)(function*(){let{element:o,attributes:u,remove:c,blockIndex:d,selector:h}=i;if((0,a.throwIfAborted)(n),!o&&!u)throw Error('Either "element" or "attributes" must be provided');if(t.s.restore(),void 0!==d||h){let{element:i}=(0,l.resolveBlock)(t,{selector:h,index:d});t.s.select(i)}if(t.s.isCollapsed())throw Error("No selection found. Please select text to format");try{let i={};return o&&(i.element=o),u&&(i.attributes=u),c?t.s.commitStyle((0,s._)((0,r._)({},i),{mode:"remove"})):t.s.commitStyle(i),t.synchronizeValues(),{success:!0,message:c?"Formatting removed successfully":"Formatting applied successfully"}}catch(t){throw Error(`Failed to ${c?"remove":"apply"} formatting: ${t.message}`)}})()}},39296:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(73943),a=n(19127);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},53835:function(t,i,n){"use strict";n.d(i,{BUILT_IN_TOOLS:function(){return f},getToolNames:function(){return m}});var o=n(78907),r=n(39296),s=n(16745),a=n(78717),l=n(5618),u=n(90991),c=n(2020),d=n(12570),h=n(95323),p=n(97603);let f={readDocument:l.default,readBlocks:a.default,readSelection:u.default,writeDocument:p.default,replaceSelection:h.default,replaceBlock:c.default,replaceInDocument:d.default,insertHTML:s.default,addHTML:o.default,applyFormat:r.default};function m(){return Object.keys(f)}},56732:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="insertHTML",r="Insert or replace HTML content at the current cursor position in the editor",s=[{name:"html",type:"string",description:"HTML content to insert",required:!0},{name:"replace",type:"boolean",description:"If true, replaces current selection. If false, inserts at cursor",required:!1,default:!1}],a=!0},39592:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(49459);function a(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"html",{allowEmpty:!0}),{replace:a}=i;if(!o.trim())return{success:!0,message:"Nothing to insert: HTML is empty"};(0,r.throwIfAborted)(n);try{return t.s.focus(),a&&!t.s.isCollapsed()&&t.s.remove(),t.s.insertHTML(o),t.synchronizeValues(),{success:!0,message:`Inserted ${o.length} characters of HTML`}}catch(t){throw Error(`Failed to insert HTML: ${(null==t?void 0:t.message)||"Unknown error"}`)}})()}},16745:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(56732),a=n(39592);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},75352:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="readBlocks",r="Read blocks from the editor with optional filtering and pagination",s=[{name:"offset",type:"number",description:"Number of blocks to skip from the beginning (default: 0)",required:!1,default:0},{name:"limit",type:"number",description:"Maximum number of blocks to return (default: all)",required:!1},{name:"query",type:"string",description:"Filter blocks by text content",required:!1}],a=!1},91140:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(22732);function a(t,i,n){return(0,o._)(function*(){let{offset:o,limit:a,query:l}=i;(0,r.throwIfAborted)(n);let u=[];Array.from(t.editor.children).forEach((t,i)=>{s.Dom.isElement(t)&&u.push({blockIndex:i,tagName:t.tagName.toLowerCase(),content:t.innerHTML,textContent:t.textContent||"",classList:Array.from(t.classList)})});let c=u;if(l&&"string"==typeof l){let t=l.toLowerCase();c=u.filter(i=>i.textContent.toLowerCase().includes(t)||i.tagName.includes(t)||i.content.toLowerCase().includes(t))}let d=Math.max(0,Math.min("number"==typeof o?o:0,c.length)),h=void 0!==a?Math.min(d+a,c.length):c.length;return{blocks:c.slice(d,h),total:u.length,offset:d,limit:void 0!==a?a:void 0}})()}},78717:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(75352),a=n(91140);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},93809:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="readDocument",r="Read the entire content of the editor document in HTML format",s=[{name:"start",type:"number",description:"Start character position (default: 0)",required:!1,default:0},{name:"end",type:"number",description:"End character position (default: length of document)",required:!1},{name:"aroundSelection",type:"boolean",description:"If true, return only the maximum block around the current selection",required:!1,default:!1}],a=!1},28157:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(22732);function a(t,i,n){return(0,o._)(function*(){let{start:o,end:a,aroundSelection:l}=i;(0,r.throwIfAborted)(n);let u=t.value,c=u.length;if(l&&!t.s.isCollapsed()){let i=t.s.range.commonAncestorContainer;for(;i&&i!==t.editor;){if(s.Dom.isElement(i)&&i.parentNode===t.editor){u=i.outerHTML;break}i=i.parentNode}return{html:u,length:c}}let d=void 0!==a?Math.min(a,c):c,h=Math.max(0,Math.min("number"==typeof o?o:0,c));return(h>0||c>d)&&(u=u.substring(h,d)),{html:u,length:c,start:h,end:d}})()}},5618:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(93809),a=n(28157);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},52826:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="readSelection",r="Get information about the current selection including HTML content and optional context",s=[{name:"contextCharsBefore",type:"number",description:"Number of characters to include before the selection",required:!1,default:0},{name:"contextCharsAfter",type:"number",description:"Number of characters to include after the selection",required:!1,default:0}],a=!1},85130:function(t,i,n){"use strict";n.d(i,{execute:function(){return s}});var o=n(77688),r=n(6689);function s(t,i,n){return(0,o._)(function*(){let{contextCharsBefore:o,contextCharsAfter:s}=i;if((0,r.throwIfAborted)(n),t.s.restore(),t.s.isCollapsed())return{hasSelection:!1};let a=t.s.html,l=t.s.range,u=l.toString(),c={hasSelection:!0,html:a,text:u,startContainer:l.startContainer.nodeName,endContainer:l.endContainer.nodeName};if(o>0||s>0){let i=t.editor.textContent||"",n=i.substring(0,i.indexOf(u)),r=i.substring(i.indexOf(u)+u.length);o>0&&(c.contextBefore=n.slice(-o)),s>0&&(c.contextAfter=r.slice(0,s))}return c})()}},90991:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(52826),a=n(85130);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},96675:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="replaceBlock",r="Replace a specific block in the document by its index or CSS selector with new HTML content",s=[{name:"index",type:"number",description:"Zero-based index of the block to replace (use either index or selector, not both)",required:!1},{name:"selector",type:"string",description:'CSS selector to find the block to replace (e.g., "h1", ".my-class", "#my-id"). Use either selector or index, not both',required:!1},{name:"html",type:"string",description:"HTML content for the new block",required:!0}],a=!0},3091:function(t,i,n){"use strict";n.d(i,{execute:function(){return u}});var o=n(77688),r=n(6689),s=n(49459),a=n(44526),l=n(22732);function u(t,i,n){return(0,o._)(function*(){let{index:o,selector:u}=i,c=(0,s.requireString)(i,"html");if((0,r.throwIfAborted)(n),void 0===o&&!u||void 0!==o&&u)throw Error("Either index or selector must be provided, but not both");let{element:d,identifier:h}=(0,a.resolveBlock)(t,{selector:u,index:o,requireExactlyOne:!0});try{var p;let i=t.createInside.div();i.innerHTML=c;let n=i.firstChild;if(!n||!l.Dom.isElement(n))throw Error("Invalid HTML: must contain at least one element");return null==(p=d.parentNode)||p.replaceChild(n,d),t.synchronizeValues(),{success:!0,message:`Block ${h} replaced successfully`}}catch(t){throw Error(`Failed to replace block ${h}: ${t.message}`)}})()}},2020:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(96675),a=n(3091);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},62553:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="replaceInDocument",r="Find and replace text or HTML patterns throughout the entire document",s=[{name:"search",type:"string",description:"Text or pattern to search for",required:!0},{name:"replace",type:"string",description:"Replacement text or HTML",required:!0},{name:"useRegex",type:"boolean",description:"If true, treats search as a regular expression",required:!1,default:!1},{name:"useSelector",type:"string",description:"CSS selector to narrow down the search scope to specific elements",required:!1}],a=!0},56293:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(49459);function a(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"search"),a=(0,s.requireString)(i,"replace",{allowEmpty:!0}),{useRegex:l,useSelector:u}=i;(0,r.throwIfAborted)(n);try{let i;t.s.focus(),t.s.save();let s=0;if(u){let c=function(t,i,n,o,s,a){let l=t.editor.querySelectorAll(s);if(0===l.length)return{replacements:0,message:`No elements found matching selector "${s}"`};let u=0;return l.forEach(t=>{(0,r.throwIfAborted)(a);let s=t.innerHTML,l=s;if(o)try{let t=RegExp(i,"g");s=s.replace(t,()=>(u++,n))}catch(t){throw Error(`Invalid regex pattern: ${(null==t?void 0:t.message)||"Unknown error"}`)}else{let t=i.length,o=0;for(;-1!==(o=s.indexOf(i,o));)(0,r.throwIfAborted)(a),s=s.substring(0,o)+n+s.substring(o+t),o+=n.length,u++}s!==l&&(t.innerHTML=s)}),u>0&&(t.synchronizeValues(),t.s.restore()),{replacements:u}}(t,o,a,l,u,n);s=c.replacements,i=c.message}else s=function(t,i,n,o,s,a){let l=0,u=i;if(s)try{let t=RegExp(n,"g");u=u.replace(t,()=>(l++,o))}catch(t){throw Error(`Invalid regex pattern: ${(null==t?void 0:t.message)||"Unknown error"}`)}else{let t=n.length,i=0;for(;-1!==(i=u.indexOf(n,i));)(0,r.throwIfAborted)(a),u=u.substring(0,i)+o+u.substring(i+t),i+=o.length,l++}return l>0&&(t.value=u,t.s.restore(),t.synchronizeValues()),l}(t,t.value,o,a,l,n);return{replacements:s,message:i||(s>0?`Replaced ${s} occurrence(s)`:"No matches found")}}catch(i){throw t.s.restore(),Error(`Failed to replace in document: ${(null==i?void 0:i.message)||"Unknown error"}`)}})()}},12570:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(62553),a=n(56293);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},70750:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="replaceSelection",r="Replace the current selection with new HTML content",s=[{name:"html",type:"string",description:"HTML content to insert in place of the selection",required:!0},{name:"collapseToEnd",type:"boolean",description:"Move cursor to the end of the inserted content",required:!1,default:!0}],a=!0},36142:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(49459);function a(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"html"),{collapseToEnd:a}=i;(0,r.throwIfAborted)(n);try{if(t.s.restore(),t.s.insertHTML(o),a){let i=t.s.range;i.collapse(!1),t.s.selectRange(i)}return t.e.fire("change"),{success:!0,message:"Selection replaced successfully"}}catch(t){throw Error(`Failed to replace selection: ${t.message}`)}})()}},95323:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(70750),a=n(36142);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},90022:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="writeDocument",r="Write (replace) the entire document content with new HTML",s=[{name:"html",type:"string",description:"HTML content to set as the document",required:!0}],a=!0},79766:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(49459);function a(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"html",{allowEmpty:!0});(0,r.throwIfAborted)(n);try{return t.s.focus(),t.value=o,t.synchronizeValues(),{success:!0,message:`Document content was replaced with provided HTML(${o.length} characters)`}}catch(t){throw Error(`Failed to replace HTML: ${(null==t?void 0:t.message)||"Unknown error"}`)}})()}},97603:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(90022),a=n(79766);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},80453:function(t,i,n){"use strict";n.d(i,{UIConversationListItem:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(67510),l=n(62843),u=n(80870);class c extends a.UIElement{className(){return"UIConversationListItem"}render(){return'<div class="jodit-ui-conversation-list__item"></div>'}setActive(t){this.isActive=t,this.updateContent()}updateContent(){let t=this.container;t.innerHTML="",t.setAttribute("data-id",this.conversation.id),this.isActive?t.classList.add("jodit-ui-conversation-list__item_active"):t.classList.remove("jodit-ui-conversation-list__item_active");let i=this.j.c.div("jodit-ui-conversation-list__item-avatar");i.textContent="AI",t.appendChild(i);let n=this.j.c.div("jodit-ui-conversation-list__item-wrapper"),o=this.j.c.div("jodit-ui-conversation-list__item-content"),r=this.j.c.div("jodit-ui-conversation-list__item-title");if(r.textContent=this.conversation.title,this.titleElement=r,o.appendChild(r),this.opts.showTimestamps){let t=this.j.c.div("jodit-ui-conversation-list__item-meta");t.textContent=this.opts.formatTimestamp(this.conversation.updated,this.j.i18n.bind(this.j)),o.appendChild(t)}if(n.appendChild(o),this.conversation.messageCount>0){let t=this.j.c.div("jodit-ui-conversation-list__item-badge");t.textContent=String(this.conversation.messageCount),n.appendChild(t)}t.appendChild(n),this.actionsButton||(this.actionsButton=new l.UIButton(this.j,{icon:{name:"dots"},tooltip:"Actions",name:"conversationActions",size:"tiny"}),this.actionsButton.container.classList.add("jodit-ui-conversation-list__item-actions"),this.actionsButton.onAction(t=>{t.stopPropagation(),this.showActionsMenu(t)})),t.appendChild(this.actionsButton.container)}onClick(){this.isRenaming||this.j.e.fire("selectConversation.ai-assistant-pro",this.conversation.id)}showActionsMenu(t){if(!this.contextMenu||!this.actionsButton)return;let i=this.actionsButton.container.getBoundingClientRect();this.contextMenu.show(i.left,i.bottom,[{title:"Rename",icon:"pencil",exec:()=>{this.startInlineRename()}},{title:"Delete",icon:"bin",exec:()=>{this.onDelete()}}]),t.stopPropagation()}startInlineRename(){if(this.isRenaming||!this.titleElement)return;this.isRenaming=!0;let t=this.titleElement,i=this.conversation.title,n=this.j.c.element("input");n.type="text",n.value=i,n.className="jodit-ui-conversation-list__item-title-input",t.textContent="",t.appendChild(n),n.focus(),n.select();let o=()=>{if(!this.isRenaming)return;let o=n.value.trim();this.isRenaming=!1,o&&o!==i?(t.textContent=o,this.j.e.fire("renameConversation.ai-assistant-pro",this.conversation.id,o)):t.textContent=i};this.j.e.on(n,"blur",o),this.j.e.on(n,"keydown",o=>{"Enter"===o.key&&(o.preventDefault(),n.blur()),"Escape"===o.key&&(this.isRenaming=!1,t.textContent=i)}),this.j.e.on(n,"click",t=>{t.stopPropagation()})}onDelete(){this.j.e.fire("deleteConversation.ai-assistant-pro",this.conversation.id)}destruct(){var t,i;null==(t=this.actionsButton)||t.destruct(),null==(i=this.contextMenu)||i.destruct(),super.destruct()}constructor(t,i,n=!1,r){super(t),(0,o._)(this,"opts",void 0),(0,o._)(this,"conversation",void 0),(0,o._)(this,"isActive",void 0),(0,o._)(this,"actionsButton",void 0),(0,o._)(this,"contextMenu",void 0),(0,o._)(this,"titleElement",void 0),(0,o._)(this,"isRenaming",void 0),this.opts=r,this.actionsButton=null,this.contextMenu=null,this.titleElement=null,this.isRenaming=!1,this.conversation=i,this.isActive=n,this.contextMenu=new u.ContextMenu(this.j),this.updateContent()}}(0,r.__decorate)([(0,s.watch)("container:click")],c.prototype,"onClick",null),(0,r.__decorate)([s.autobind],c.prototype,"showActionsMenu",null),(0,r.__decorate)([s.autobind],c.prototype,"startInlineRename",null),(0,r.__decorate)([s.autobind],c.prototype,"onDelete",null),c=(0,r.__decorate)([s.component],c)},68365:function(t,i,n){"use strict";n.d(i,{UIConversationList:function(){return d}});var o=n(82749),r=n(31635),s=n(31356),a=n(80453),l=n(65478),u=n(80256),c=n(62405);class d extends c.UIGroup{className(){return"UIConversationList"}render(){return`<div class="&__container">
256
+ ${s}`.trim();n?yield this.__executeQuickCommandSilent(u,s):yield this.__executeQuickCommandWithPanel(u,o)}).call(this)}__executeQuickCommandSilent(t,i){return(0,o._)(function*(){yield this.__loadData(),this.j.progressbar.show().progress(100);try{let i=(0,m.createUserMessage)(t),n=(0,m.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature,[i]),o=yield this.apiClient.sendRequest(n.id,n.messages,null,[],n.options);if("final"===o.mode){let t=o.response.content;t&&this.j.s.insertHTML(t)}}catch(t){(0,_.isAbortError)(t)||this.j.e.fire("error",t)}finally{this.j.progressbar.hide()}}).call(this)}__executeQuickCommandWithPanel(t,i){return(0,o._)(function*(){yield this.__loadData();let n=this.stateManager.state.displayMode;this.stateManager.state.displayMode=i;let o=(0,m.getCurrentSelectionContext)(this.j);o&&this.stateManager.addSelectionContext(o),this.stateManager.isOpen()||(yield this.openAssistant()),yield this.sendMessage(t),this.stateManager.state.displayMode=n}).call(this)}sendMessage(t){return(0,o._)(function*(){yield this.__loadData();let i=this.stateManager.getCurrentConversation(),n=this.stateManager.getEditingMessageId();if(n&&i){let t=i.messages.findIndex(t=>t.id===n);if(-1!==t){let n=i.messages.slice(0,t),o=(0,a._)((0,s._)({},i),{messages:n,updatedAt:Date.now()});this.stateManager.setCurrentConversation(o),yield this.storage.save(o),this.stateManager.clearEditingMessage(),i=o}}i||(i=(0,m.createNewConversation)(this.j,this.state.defaultModel,this.state.defaultTemperature),this.stateManager.setCurrentConversation(i));let o=null;t.trim()&&(o=(0,m.createUserMessage)(t),i.title||(i=(0,a._)((0,s._)({},i),{title:t})),i=(0,a._)((0,s._)({},i),{updated:Date.now(),messages:[...i.messages,o]})),this.stateManager.setCurrentConversation((0,s._)({},i)),o&&this.j.e.fire("messageSent.ai-assistant-pro",o),this.stateManager.setLoading(!0),this.stateManager.clearError();try{yield this.sendRequestToAI(0),this.stateManager.clearSelectionContexts()}catch(t){if((0,_.isAbortError)(t))return;this.stateManager.setError(t instanceof Error?t.message:String(t))}finally{this.stateManager.setLoading(!1)}}).call(this)}sendRequestToAI(t=0){return(0,o._)(function*(){let i,n,o=this.j.o.aiAssistantPro.maxRecursionToolCallDepth;if(t>=o)throw Error(`Max recursion depth ${o} reached for tool calls`);let r=this.stateManager.getCurrentConversation();if(!r)return;let a=(0,m.findParentMessageId)(r),[l]=yield Promise.all([this.apiClient.sendRequest(r.id,r.messages,a,this.stateManager.getSelectionContexts(),r.options),this.storage.save(r)]);if("stream"===l.mode){let t=yield(0,m.processStreamingResponse)(this.stateManager,l,r);i=t.aiMessage,n=t.index,r=t.conversation}else{let t=(0,m.processFinalResponse)(l,r);i=t.aiMessage,n=t.index,r=t.conversation}r=yield(0,m.processArtifacts)(this.j,i,r,n),this.j.e.fire("messageReceived.ai-assistant-pro",i),this.stateManager.setCurrentConversation((0,s._)({},r)),yield this.storage.save(r),yield this.handleToolCalls(i.id,t)}).call(this)}deleteConversation(t){return(0,o._)(function*(){yield this.__loadData(),yield(0,m.deleteConversationWithCleanup)(this.j,t,this.storage,this.stateManager,this.permissionManager)}).call(this)}renameConversation(t,i){return(0,o._)(function*(){var n;let o=yield this.storage.get(t);if(!o)return;let r=(0,a._)((0,s._)({},o),{title:i,updated:Date.now()});yield this.storage.save(r),(null==(n=this.state.currentConversation)?void 0:n.id)===t&&this.stateManager.setCurrentConversation(r);let l=yield this.storage.list();this.stateManager.setConversations(l)}).call(this)}searchConversations(t){return(0,o._)(function*(){yield this.__loadData(),yield(0,m.handleConversationSearch)(t,this.storage,this.stateManager)}).call(this)}handleToolCalls(t,i=0){return(0,o._)(function*(){let n=this.stateManager.getCurrentConversation();if(!n)return;let o=n.messages.find(i=>i.id===t);if(!o)return;let r=o.toolCalls;if(!r||0===r.length)return;let s=r.filter(t=>!(0,m.isTerminalToolCallStatus)(t.status));if(0===s.length)return;let{approved:a,needsPermission:l}=this.permissionManager.filterToolCalls(s,n.permissions);for(let n of(this.stateManager.setPendingToolCalls(l),a))yield this.executeToolCall(t,n,i)}).call(this)}executeToolCall(t,i,n=0){return(0,o._)(function*(){let o=this.stateManager.getCurrentConversation();if(!o)return;let r=yield(0,m.executeToolCall)(this.j,i,this.toolRegistry),l=o.messages.findIndex(i=>i.id===t);if(-1===l)return;let u=o.messages[l],c=o.messages.slice();c[l]=(0,m.updateToolCallInMessage)(u,r),o=(0,a._)((0,s._)({},o),{messages:c,updated:Date.now()}),this.stateManager.setCurrentConversation(o),(0,m.areAllToolCallsExecuted)(o)&&(yield this.sendRequestToAI(n+1))}).call(this)}copyMessage(t){return(0,o._)(function*(){let i=this.stateManager.getCurrentConversation();if(!i)return;let n=i.messages.find(i=>i.id===t);if(n)try{yield navigator.clipboard.writeText(n.content),this.j.message.success("Message copied to clipboard")}catch(t){this.j.e.fire("error",Error("Failed to copy message"))}}).call(this)}restartFromMessage(t){return(0,o._)(function*(){let i=this.stateManager.getCurrentConversation();if(!i)return;let n=i.messages.findIndex(i=>i.id===t);if(-1===n)return;let o=i.messages[n];if("user"!==o.role)return;yield this.__loadData();let r=i.messages.slice(0,n),l=(0,a._)((0,s._)({},i),{messages:r,updatedAt:Date.now()});this.stateManager.setCurrentConversation(l),yield this.storage.save(l),yield this.sendMessage(o.content)}).call(this)}editMessage(t){return(0,o._)(function*(){let i=this.stateManager.getCurrentConversation();if(!i)return;let n=i.messages.find(i=>i.id===t);n&&"user"===n.role&&(this.stateManager.setEditingMessageId(t),this.mainPanel.inputArea.setValue(n.content),this.mainPanel.inputArea.focus())}).call(this)}cancelEditMessage(){this.stateManager.isEditingMessage()&&(this.stateManager.clearEditingMessage(),this.mainPanel.inputArea.setValue(""))}deleteMessage(t){return(0,o._)(function*(){yield this.__loadData();let i=this.stateManager.getCurrentConversation();if(!i||-1===i.messages.findIndex(i=>i.id===t))return;let n=i.messages.filter(i=>i.id!==t),o=(0,a._)((0,s._)({},i),{messages:n,updatedAt:Date.now()});this.stateManager.setCurrentConversation(o),yield this.storage.save(o)}).call(this)}beforeDestruct(){var t,i,n,o,r,s,a,l;this.textAutocompleteSource&&(this.j.e.fire("unregisterAutocompleteSource",this.textAutocompleteSource),this.textAutocompleteSource=null),this.textAutocompleteCache.clear(),this.__closeFlightMode(),null==(t=(0,v.cached)(this,"toolRegistry"))||t.destruct(),null==(i=(0,v.cached)(this,"permissionManager"))||i.destruct(),null==(n=(0,v.cached)(this,"apiClient"))||n.destruct(),null==(o=(0,v.cached)(this,"stateManager"))||o.destruct(),null==(r=(0,v.cached)(this,"mainPanel"))||r.destruct(),null==(s=(0,v.cached)(this,"dialog"))||s.destruct(),null==(l=(0,v.cached)(this,"storage"))||null==(a=l.close)||a.call(l)}constructor(...t){super(...t),(0,r._)(this,"buttons",[{name:"aiAssistantPro",group:"insert"},{name:"aiCommandsPro",group:"insert"}]),(0,r._)(this,"textAutocompleteSource",null),(0,r._)(this,"textAutocompleteCache",new Map),(0,r._)(this,"__initedPromise",null),(0,r._)(this,"__openedMode",null)}}(0,r._)(k,"requires",["license","autocomplete"]),(0,l.__decorate)([v.cache],k.prototype,"toolRegistry",null),(0,l.__decorate)([v.cache],k.prototype,"permissionManager",null),(0,l.__decorate)([v.cache],k.prototype,"apiClient",null),(0,l.__decorate)([v.cache],k.prototype,"storage",null),(0,l.__decorate)([v.cache],k.prototype,"stateManager",null),(0,l.__decorate)([v.cache],k.prototype,"mainPanel",null),(0,l.__decorate)([v.cache],k.prototype,"dialog",null),(0,l.__decorate)([(0,v.watch)("state.theme")],k.prototype,"__applyTheme",null),(0,l.__decorate)([(0,v.watch)(":openAIAssistantPro.ai-assistant-pro")],k.prototype,"openAssistant",null),(0,l.__decorate)([(0,v.watch)([":resize","state.panelWidth","state.panelHeight"])],k.prototype,"__onResizeInPanelView",null),(0,l.__decorate)([(0,v.watch)(["state.isOpen","state.displayMode","state.panelWidth","state.panelHeight","state.theme","state.defaultModel","state.defaultTemperature","state.currentConversation"]),(0,v.debounce)()],k.prototype,"__onSavedStateChange",null),(0,l.__decorate)([(0,v.watch)(":closeAIAssistantPro.ai-assistant-pro")],k.prototype,"closeAssistant",null),(0,l.__decorate)([(0,v.watch)(":addContextToAIAssistant.ai-assistant-pro")],k.prototype,"addCurrentSelectionToContext",null),(0,l.__decorate)([(0,v.watch)(":executeQuickCommand.ai-assistant-pro")],k.prototype,"executeQuickCommand",null),(0,l.__decorate)([(0,v.watch)(":sendMessage.ai-assistant-pro")],k.prototype,"sendMessage",null),(0,l.__decorate)([(0,v.watch)(":searchConversations.ai-assistant-pro")],k.prototype,"searchConversations",null),(0,l.__decorate)([(0,v.watch)(":copyMessage.ai-assistant-pro")],k.prototype,"copyMessage",null),(0,l.__decorate)([(0,v.watch)(":restartFromMessage.ai-assistant-pro")],k.prototype,"restartFromMessage",null),(0,l.__decorate)([(0,v.watch)(":editMessage.ai-assistant-pro")],k.prototype,"editMessage",null),(0,l.__decorate)([(0,v.watch)(":cancelEditMessage.ai-assistant-pro")],k.prototype,"cancelEditMessage",null),(0,l.__decorate)([(0,v.watch)(":deleteMessage.ai-assistant-pro")],k.prototype,"deleteMessage",null),k=(0,l.__decorate)([v.component],k),w.JoditPro.plugins.add("aiAssistantPro",k)},66645:function(t,i,n){"use strict";var o,r=n(77688),s=n(56075),a=n(11886),l=n(47373),u=n(94668),c=n.n(u),d=n(86428),h=n.n(d),p=n(75966),f=n.n(p),m=n(83207),g=n.n(m),b=n(99293),v=n.n(b),y=n(99219),_=n.n(y),C=n(63674),w=n.n(C),F=n(4133),E=n.n(F),k=n(94454),S=n(53835),A=n(6441),D=n(12153),x=n(31974),I=n(72573);D.Icon.set("ai-assistant-pro",h()).set("ai-commands-pro",f()).set("ai-add-context",c()).set("send",_()).set("microphone",v()).set("tool-bolt",E()).set("chevron-right",g()).set("shield",w()),A.Config.prototype.aiAssistantPro={displayMode:"right",panelWidth:400,panelHeight:500,flightPanelHeight:250,dialogFullSize:!1,resizable:!0,apiMode:"incremental",apiRequest:null,maxRetries:3,requestTimeout:3e5,retryDelay:1e3,maxRecursionToolCallDepth:1e3,enabledTools:(0,S.getToolNames)(),customTools:[],toolPermissions:{},autoApproveTools:["readDocument","readBlocks","readSelection","insertHTML","addHTML"],alwaysDenyTools:[],defaultPermissionScope:"conversation",storage:"indexedDB",maxConversations:50,storageKey:"jodit-ai-assistant-pro",showConversationList:!0,enableMarkdown:!0,enableCodeHighlight:!0,maxMessageHeight:400,placeholderText:"Ask AI assistant...",sendShortcut:"Ctrl+Enter",showTimestamps:!0,formatTimestamp:(t,i)=>{let n=new Date(t),o=new Date().getTime()-n.getTime();return o<6e4?i("Just now"):o<36e5?i("%dm ago",Math.floor(o/6e4)):o<864e5?i("%dh ago",Math.floor(o/36e5)):n.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})},formatMessageContent:(t,i)=>I.marked.parse(t,{breaks:!0,gfm:!0}),showAvatars:!0,showTypingIndicator:!0,includeSelectionByDefault:!0,maxContextRanges:5,showContextPreview:!0,sendOnEnter:!0,instructions:void 0,includeEditorMetadata:!1,autoOpen:!0,rememberLastConversation:!0,autoFocusInput:!0,voiceInputEnabled:!1,closeAfterInsert:!1,enableSoundNotifications:!1,debug:!1,textAutocompleteEnabled:!1,textAutocompleteApiRequest:null,textAutocompleteMinQueryLength:3,textAutocompleteMaxSuggestions:3,textAutocompleteDebounceMs:500,textAutocompleteCacheTTL:3e4,textAutocompleteCacheMaxSize:50,quickCommandsSilentMode:!1,quickCommandsDisplayMode:"flight",showCopyMessageAction:!0,showRestartMessageAction:!0,showEditMessageAction:!0,showDeleteMessageAction:!0,dialogSettings:{},allowEditDialogSettings:!1,allowEditDisplayMode:!0,allowEditPanelWidth:!0,initiallyOpened:!1,allowClose:!0,persistOpenState:!0,theme:"parent",allowEditTheme:!0,uploadBase64Artifact(t,i){return(0,r._)(function*(){if("image"===t.type&&t.data&&"base64"===t.data.kind)try{let n=(0,l.base64ToFile)(t.data.base64,t.id,t.mimeType),o=yield i.uploader.upload([n]);return(0,a._)((0,s._)({},t),{data:{kind:"url",url:o.baseurl+o.files[0]},metadata:(0,a._)((0,s._)({},t.metadata),{filename:o.files[0]})})}catch(t){i.e.fire("error",t)}return t})()},getAIProviderOptions(t,i){return(0,k.getAIProviderOptions)(t,i)},registerAIProvider(t,i){(0,k.registerAIProvider)(t,i)}},A.Config.prototype.controls.aiAssistantPro={icon:"ai-assistant-pro",tooltip:"AI Assistant",hotkeys:["ctrl+shift+a","cmd+shift+a"],exec(t){t.e.fire("openAIAssistantPro.ai-assistant-pro")},isDisabled(t){return!t.o.aiAssistantPro.apiRequest},getLabel(t){return t.o.aiAssistantPro.apiRequest?"AI Assistant":"AI Assistant (not configured)"}},A.Config.prototype.controls.aiAddContext={icon:"ai-add-context",tooltip:"Add to AI Context",exec(t){t.e.fire("addContextToAIAssistant")},isDisabled(t){return!t.o.aiAssistantPro.apiRequest||t.s.isCollapsed()}},A.Config.prototype.controls.aiCommandsPro={icon:"ai-commands-pro",tooltip:"AI Commands",isDisabled(t){return!t.o.aiAssistantPro.apiRequest},list:x.aiAssitentCommands,exec(t,i,{control:n}){t.e.fire("executeQuickCommand.ai-assistant-pro",n.name)}};let B=(null==(o=A.Config.prototype.tuneBlock)?void 0:o.popup)||{},T={};["p","h1","h2","h3","h4","h5","h6","div","section","article","pre","blockquote","ul","ol","li","table","tr","td","th","img","figure"].forEach(t=>{let i=B[t]||["tune.up","tune.remove","tune.down"];T[t]=[...i,"|","aiAddContext"]}),A.Config.prototype.tuneBlock&&(A.Config.prototype.tuneBlock.popup=(0,s._)({},B,T))},6689:function(t,i,n){"use strict";n.d(i,{throwIfAborted:function(){return r}});var o=n(93661);function r(t){if(t.aborted)throw(0,o.abort)()}},61872:function(t,i,n){"use strict";n.d(i,{processArtifacts:function(){return d},processFinalResponse:function(){return c},processStreamingResponse:function(){return u}});var o=n(89929),r=n(77688),s=n(56075),a=n(11886),l=n(61558);function u(t,i,n){return(0,r._)(function*(){let r=(0,l.createAIMessage)(),u=-1;var c,d=!1,h=!1;try{for(var p,f=(0,o._)(i.stream);d=!(p=yield f.next()).done;d=!1){let i=p.value;switch(i.type){case"created":r=(0,a._)((0,s._)({},r),{id:i.response.responseId,content:""}),u=n.messages.length;break;case"text-delta":r=(0,a._)((0,s._)({},r),{content:r.content+i.delta});break;case"completed":r=(0,a._)((0,s._)({},r),{id:i.response.responseId,toolCalls:i.response.toolCalls||[],artifacts:i.response.artifacts||[]});break;case"error":{let t=(0,l.createErrorMessage)(i.error);r=(0,a._)((0,s._)({},r),{id:t.id,content:t.content})}}if(r.id){let i=n.messages.slice();i[u>=0?u:n.messages.length]=r,n=(0,a._)((0,s._)({},n),{messages:i,updated:Date.now()}),t.setCurrentConversation(n)}}}catch(t){h=!0,c=t}finally{try{d&&null!=f.return&&(yield f.return())}finally{if(h)throw c}}return{aiMessage:r,index:u,conversation:n}})()}function c(t,i){let n=(0,a._)((0,s._)({},(0,l.createAIMessage)()),{id:t.response.responseId,content:t.response.content,toolCalls:t.response.toolCalls||[],artifacts:t.response.artifacts||[]}),o=i.messages.slice();return o.push(n),{aiMessage:n,index:(i=(0,a._)((0,s._)({},i),{messages:o,updated:Date.now()})).messages.length-1,conversation:i}}function d(t,i,n,o){return(0,r._)(function*(){if(i.artifacts&&i.artifacts.length>0){let r=n.messages.slice();return r[o]=(0,a._)((0,s._)({},r[o]),{artifacts:yield(0,l.uploadArtifacts)(t,i.artifacts)}),(0,a._)((0,s._)({},n),{messages:r,updated:Date.now()})}return n})()}},49459:function(t,i,n){"use strict";function o(t,i,n={}){let r=t[i];if("string"!=typeof r||!n.allowEmpty&&""===r)throw Error(`Parameter "${i}" is required and must be a${n.allowEmpty?"":" non-empty"} string`);return r}n.d(i,{requireString:function(){return o}})},44526:function(t,i,n){"use strict";n.d(i,{resolveBlock:function(){return r}});var o=n(22732);function r(t,{selector:i,index:n,requireExactlyOne:s=!1}={}){let a=null!=i&&""!==i.trim(),l=null!=n;if(s&&a===l)throw Error("Either index or selector must be provided, but not both");if(!a&&!l)throw Error("Block identifier is required");if(a){if("string"!=typeof i)throw Error("Selector must be a string");let n=t.editor.querySelector(i);if(!n)throw Error(`No element found matching selector "${i}"`);if(!o.Dom.isElement(n))throw Error(`Selector "${i}" does not point to an element node`);return{element:n,identifier:`with selector "${i}"`}}if("number"!=typeof n)throw Error("Block index must be a number");let u=Array.from(t.editor.children);if(n<0||n>=u.length)throw Error(`Block index ${n} is out of range. Document has ${u.length} blocks`);let c=u[n];if(!o.Dom.isElement(c))throw Error(`Block at index ${n} is not a valid element`);return{element:c,identifier:`at index ${n}`}}},70308:function(t,i,n){"use strict";n.d(i,{areAllToolCallsExecuted:function(){return u},createNewConversation:function(){return r},findMessagesWithPendingToolCalls:function(){return c},findParentMessageId:function(){return s},isTerminalToolCallStatus:function(){return l}});var o=n(21064);function r(t,i,n,s=[]){let a=t.o.aiAssistantPro,l={id:(0,o.generateConversationId)(),created:Date.now(),updated:Date.now(),messages:s,permissions:[],options:{model:null!=i?i:a.defaultModel,temperature:null!=n?n:a.defaultTemperature}};return t.e.fire("conversationCreated.ai-assistant-pro",l),l}function s(t){for(let i=t.messages.length-1;i>=0;i--){let n=t.messages[i];if("assistant"===n.role&&!n.id.startsWith("error_"))return n.id}return null}let a=new Set(["executed","denied","error"]);function l(t){return a.has(t)}function u(t){let i=t.messages[t.messages.length-1];return!!(null==i?void 0:i.toolCalls)&&i.toolCalls.every(t=>l(t.status))}function c(t){return t.messages.filter(t=>t.toolCalls&&t.toolCalls.length>0&&t.toolCalls.some(t=>!l(t.status)))}},473:function(t,i,n){"use strict";n.d(i,{handleBackToList:function(){return h},handleConversationSearch:function(){return p},handleConversationSelect:function(){return d},handleToolApproval:function(){return u},handleToolDenial:function(){return c}});var o=n(77688),r=n(56075),s=n(11886),a=n(79078),l=n(82758);function u(t,i,n,a,l){return(0,o._)(function*(){let o=n.getPendingToolCalls().find(i=>i.id===t);if(!o)return null;let u=a.grantPermission(o.name,i),c=n.getCurrentConversation();return c&&(c.permissions.push(u),yield l.save(c)),n.removePendingToolCall(t),(0,s._)((0,r._)({},o),{status:"approved"})})()}function c(t,i,n,l){return(0,o._)(function*(){let o=n.getPendingToolCalls().find(t=>t.id===i);if(!o)return;let u=n.getCurrentConversation();if(!u)return;let c=u.messages.findIndex(t=>{var n;return null==(n=t.toolCalls)?void 0:n.find(t=>t.id===i)});if(-1===c)return;let d=u.messages[c],h=(0,s._)((0,r._)({},o),{result:{error:"Tool call denied by user."},status:"denied"}),p=(0,a.updateToolCallInMessage)(d,h),f=[...u.messages];f[c]=p,u=(0,s._)((0,r._)({},u),{messages:f,updated:Date.now()}),n.setCurrentConversation(u),yield l.save(u),t.e.fire("toolCallDenied.ai-assistant-pro",o),n.removePendingToolCall(i)})()}function d(t,i,n){return(0,o._)(function*(){try{n.setLoading(!0);let o=yield i.get(t);if(!o)throw Error("Conversation not found: "+t);n.setCurrentConversation((0,r._)({},o))}catch(t){l.IS_PROD}finally{n.setLoading(!1)}})()}function h(t,i){return(0,o._)(function*(){i.setView("conversationList");try{i.setLoading(!0);let n=yield t.list().catch(()=>[]);i.setConversations(n)}finally{i.setLoading(!1)}})()}function p(t,i,n){return(0,o._)(function*(){n.setLoading(!0);try{let o=yield i.list(t||void 0);n.setConversations(o),n.setView("conversationList")}finally{n.setLoading(!1)}})()}},58579:function(t,i,n){"use strict";n.d(i,{applyTheme:function(){return d.applyTheme},areAllToolCallsExecuted:function(){return r.areAllToolCallsExecuted},createNewConversation:function(){return r.createNewConversation},createUserMessage:function(){return a.createUserMessage},deleteConversationWithCleanup:function(){return c.deleteConversationWithCleanup},executeToolCall:function(){return h.executeToolCall},findMessagesWithPendingToolCalls:function(){return r.findMessagesWithPendingToolCalls},findParentMessageId:function(){return r.findParentMessageId},getCurrentSelectionContext:function(){return u.getCurrentSelectionContext},handleBackToList:function(){return s.handleBackToList},handleConversationSearch:function(){return s.handleConversationSearch},handleConversationSelect:function(){return s.handleConversationSelect},handleToolApproval:function(){return s.handleToolApproval},handleToolDenial:function(){return s.handleToolDenial},invertMode:function(){return l.invertMode},isTerminalToolCallStatus:function(){return r.isTerminalToolCallStatus},loadInitialData:function(){return c.loadInitialData},processArtifacts:function(){return o.processArtifacts},processFinalResponse:function(){return o.processFinalResponse},processStreamingResponse:function(){return o.processStreamingResponse},resizeInPanelView:function(){return l.resizeInPanelView},updateToolCallInMessage:function(){return h.updateToolCallInMessage}});var o=n(61872),r=n(70308),s=n(473),a=n(61558),l=n(71050),u=n(15927),c=n(56110),d=n(53014),h=n(79078)},61558:function(t,i,n){"use strict";n.d(i,{createAIMessage:function(){return a},createErrorMessage:function(){return l},createUserMessage:function(){return s},uploadArtifacts:function(){return u}});var o=n(77688),r=n(21064);function s(t){return{id:(0,r.generateMessageId)(),role:"user",content:t,timestamp:Date.now()}}function a(){return{id:"",role:"assistant",content:"",artifacts:[],timestamp:Date.now(),toolCalls:[]}}function l(t){return{id:"error_"+(0,r.generateMessageId)(),role:"assistant",content:`❌ Error: ${t.message}`,timestamp:Date.now(),toolCalls:[],artifacts:[]}}function u(t,i){return(0,o._)(function*(){if(!i||0===i.length)return i;let n=t.o.aiAssistantPro.uploadBase64Artifact;return n?Promise.all(i.map(i=>(0,o._)(function*(){var o;return null!=(o=n(i,t))?o:i})())):i})()}},71050:function(t,i,n){"use strict";n.d(i,{invertMode:function(){return r},resizeInPanelView:function(){return s}});var o=n(41180);function r(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top"}}function s(t,i,n,s){var a,l,u,c;if("dialog"===i||"flight"===i)return;("left"===i||"right"===i)&&(null==(u=t.currentPlace.slots[r(i)])||u.style.setProperty(`--jd-slot-${r(i)}-width`,"auto"),null==(c=t.currentPlace.slots[i])||c.style.setProperty(`--jd-slot-${i}-width`,`${n}px`));let d=null!=(a=(0,o.css)(t.currentPlace.workplace,"height"))?a:0;null==(l=t.currentPlace.slots[i])||l.style.setProperty("min-height",`${Math.min(d,s)}px`)}},15927:function(t,i,n){"use strict";function o(t){if(t.s.isCollapsed())return null;let i=t.s.html,n=t.s.range;return{html:i,rangeInfo:{startContainer:n.startContainer.nodeName,startOffset:n.startOffset,endContainer:n.endContainer.nodeName,endOffset:n.endOffset}}}n.d(i,{getCurrentSelectionContext:function(){return o}})},56110:function(t,i,n){"use strict";n.d(i,{deleteConversationWithCleanup:function(){return s},loadInitialData:function(){return a}});var o=n(77688),r=n(82758);function s(t,i,n,r,s){return(0,o._)(function*(){try{r.setLoading(!0),yield n.delete(i),r.removeConversation(i),s.clearConversationPermissions(i);let o=r.getCurrentConversation();(null==o?void 0:o.id)===i&&r.setCurrentConversation(null);let a=yield n.list();r.setConversations(a),r.setView(0===a.length?"welcome":"conversationList"),t.e.fire("conversationDeleted.ai-assistant-pro",i)}catch(i){t.alert(t.i18n("Failed to delete conversation")+": "+((null==i?void 0:i.message)||"Unknown error"))}finally{r.setLoading(!1)}})()}function a(t,i,n){return(0,o._)(function*(){n.setLoading(!0);try{let[r,s]=yield Promise.all([i.list().catch(()=>[]),i.getGlobalSettings().catch(()=>null)]);if(n.setConversations(r),s&&n.setSavedState(s),0===r.length)n.setView("welcome");else if(t.o.aiAssistantPro.rememberLastConversation&&(null==s?void 0:s.currentConversationId)){var o;let t=null!=(o=r.find(t=>t.id===s.currentConversationId))?o:r[0],a=yield i.get(t.id);a?n.setCurrentConversation(a):n.setView("conversationList")}else n.setView("conversationList")}catch(t){r.IS_PROD,n.setView("welcome")}finally{n.setLoading(!1)}})()}},53014:function(t,i,n){"use strict";n.d(i,{applyTheme:function(){return s}});let o=["jodit_theme_dark","jodit-ai-assistant-pro_theme_dark","jodit-dialog_theme_dark"],r=["jodit_theme_light","jodit-ai-assistant-pro_theme_light","jodit-dialog_theme_light"];function s(t,i,n,s,a){let l;if(null==s||s.classList.remove(...o),null==s||s.classList.remove(...r),"dialog"===n){let t=null==a?void 0:a.container;null==t||t.classList.remove(...o),null==t||t.classList.remove(...r)}if(l="dark"===i?o:r,null==s||s.classList.add(...l),"dialog"===n){let t=null==a?void 0:a.container;null==t||t.classList.add(...l)}}},79078:function(t,i,n){"use strict";n.d(i,{executeToolCall:function(){return a},updateToolCallInMessage:function(){return l}});var o=n(77688),r=n(56075),s=n(11886);function a(t,i,n){return(0,o._)(function*(){let o;try{let t=new AbortController().signal,a=yield n.executeTool(i.name,i.arguments,t);o=(0,s._)((0,r._)({},i),{result:{result:a},status:"executed"})}catch(n){o=(0,s._)((0,r._)({},i),{result:{error:n instanceof Error?n.message:String(n)},status:"error"}),t.e.fire("toolCallFailed.ai-assistant-pro",o)}return t.e.fire("toolCallExecuted.ai-assistant-pro",o,{toolCallId:o.id,result:o.result}),o})()}function l(t,i){var n,o;let a=null==(o=t.toolCalls)?void 0:o.findIndex(t=>t.id===i.id);if(null==a||-1===a)return t;let l=[...null!=(n=null==t?void 0:t.toolCalls)?n:[]];return l[a]=i,(0,s._)((0,r._)({},t),{toolCalls:l})}},86449:function(t,i,n){"use strict";n.d(i,{APIClient:function(){return c}});var o=n(77688),r=n(82749),s=n(56075),a=n(11886),l=n(82758),u=n(21537);class c{sendRequest(t,i,n,r,s){return(0,o._)(function*(){let{apiRequest:o,requestTimeout:a,maxRetries:c}=this.jodit.o.aiAssistantPro;if(!o)throw Error("AI Assistant Pro callback is not configured");let d=new AbortController;this.abortControllers.add(d);try{let h=this.buildRequestContext(t,i,n,r,s),p=null;for(let t=0;c>=t;t++)try{if(d.signal.aborted)throw(0,u.abort)();let t=setTimeout(()=>{d.abort()},a);try{let i=yield o(h,d.signal);return clearTimeout(t),this.validateResponse(i),i}catch(i){throw clearTimeout(t),i}}catch(i){if(p=i,l.IS_PROD,c>t){let i=this.calculateRetryDelay(t);yield this.sleep(i)}else throw i}throw p||Error("API request failed after all retries")}finally{this.abortControllers.delete(d)}}).call(this)}abort(){this.abortControllers.forEach(t=>{t.abort()}),this.abortControllers.clear()}isInProgress(){return this.abortControllers.size>0}buildRequestContext(t,i,n,o,r){let l,{apiMode:u,instructions:c}=this.jodit.o.aiAssistantPro,d={mode:u,conversationId:t,tools:this.toolRegistry.getAllTools(),selectionContexts:o,conversationOptions:r,instructions:c};if("full"===u)l=i;else if(n){let t=i.findIndex(t=>t.id===n);l=-1!==t?i.slice(t+1):i,d=(0,a._)((0,s._)({},d),{parentMessageId:n})}else l=i;return(0,a._)((0,s._)({},d),{messages:this.expandToolMessages(l,i.find(t=>t.id===n))})}expandToolMessages(t,i){let n=[];for(let i of t)n.push(i),this.expandToolResultsMessage(i,n);return i&&this.expandToolResultsMessage(i,n),n}expandToolResultsMessage(t,i){if(t.toolCalls&&t.toolCalls.length>0)for(let o of t.toolCalls){var n;let r=null!=(n=o.result)?n:{error:"result not found"};if(i.find(t=>t.id===`${o.id}-result`))continue;let s={id:`${o.id}-result`,role:"tool",content:r.error?`Error: ${r.error}`:JSON.stringify(r.result),timestamp:t.timestamp,toolResults:[{toolCallId:o.id,result:r}]};i.push(s)}}validateResponse(t){if("final"!==t.mode)return;let i=t.response;if(!i)throw Error("API returned empty response");if(!i.responseId)throw Error("API response missing responseId");if(void 0===i.content)throw Error("API response missing content");if(void 0===i.finished)throw Error("API response missing finished flag");if(i.toolCalls){if(!Array.isArray(i.toolCalls))throw Error("API response toolCalls must be an array");i.toolCalls.forEach((t,i)=>{if(!t.id)throw Error(`Tool call at index ${i} is missing id`);if(!t.name)throw Error(`Tool call at index ${i} is missing name`);if(!t.arguments||"object"!=typeof t.arguments)throw Error(`Tool call at index ${i} has invalid arguments`)})}}calculateRetryDelay(t){let{retryDelay:i}=this.jodit.o.aiAssistantPro;return i*Math.pow(2,t)+Math.random()*i}sleep(t){return new Promise(i=>setTimeout(i,t))}destruct(){this.abort()}constructor(t,i){(0,r._)(this,"jodit",void 0),(0,r._)(this,"toolRegistry",void 0),(0,r._)(this,"abortControllers",void 0),this.jodit=t,this.toolRegistry=i,this.abortControllers=new Set}}},47373:function(t,i,n){"use strict";function o(t,i,n="image/png"){let r=atob(t),s=r.length,a=new Uint8Array(s);for(let t=0;s>t;t++)a[t]=r.charCodeAt(t);return new File([new Blob([a],{type:n})],i,{type:n})}n.d(i,{base64ToFile:function(){return o}})},21020:function(t,i,n){"use strict";n.d(i,{PermissionManager:function(){return a}});var o=n(82749),r=n(56075),s=n(11886);class a{requiresPermission(t){let{autoApproveTools:i,alwaysDenyTools:n}=this.jodit.o.aiAssistantPro;if(n.includes(t))return!0;if(i.includes(t))return!1;let o=this.toolRegistry.getTool(t);return!o||o.requiresPermission}isAutoDenied(t){let{alwaysDenyTools:i}=this.jodit.o.aiAssistantPro;return i.includes(t)}isAutoApproved(t){let{autoApproveTools:i}=this.jodit.o.aiAssistantPro;return i.includes(t)}checkPermission(t,i){if(this.isAutoApproved(t))return{toolName:t,granted:!0,grantedAt:Date.now(),scope:"once"};if(this.isAutoDenied(t))return null;let n=this.permanentPermissions.get(t);return n&&n.granted?n:i.find(i=>i.toolName===t&&i.granted)||null}grantPermission(t,i){let n={toolName:t,granted:!0,grantedAt:Date.now(),scope:i};return"forever"===i&&(this.permanentPermissions.set(t,n),this.savePermanentPermissions()),n}denyPermission(t){return{toolName:t,granted:!1,grantedAt:Date.now(),scope:"once"}}filterToolCalls(t,i){let n=[],o=[],a=[];for(let l of t){if(this.isAutoDenied(l.name)){a.push((0,s._)((0,r._)({},l),{status:"denied"}));continue}if(this.isAutoApproved(l.name)){n.push((0,s._)((0,r._)({},l),{status:"approved"}));continue}let t=this.checkPermission(l.name,i);t&&t.granted?n.push((0,s._)((0,r._)({},l),{status:"approved"})):this.requiresPermission(l.name)?(this.jodit.e.fire("permissionRequested.ai-assistant-pro",l.name),o.push((0,s._)((0,r._)({},l),{status:"pending"}))):n.push((0,s._)((0,r._)({},l),{status:"approved"}))}return{approved:n,needsPermission:o,denied:a}}clearConversationPermissions(t){}loadPermanentPermissions(){try{let t=localStorage.getItem(this.PERMANENT_PERMISSIONS_KEY);t&&JSON.parse(t).forEach(t=>{"forever"===t.scope&&t.granted&&this.permanentPermissions.set(t.toolName,t)})}catch(t){}}savePermanentPermissions(){try{let t=Array.from(this.permanentPermissions.values());localStorage.setItem(this.PERMANENT_PERMISSIONS_KEY,JSON.stringify(t))}catch(t){}}clearPermanentPermissions(){this.permanentPermissions.clear(),localStorage.removeItem(this.PERMANENT_PERMISSIONS_KEY)}getPermanentPermissions(){return Array.from(this.permanentPermissions.values())}revokePermanentPermission(t){this.permanentPermissions.delete(t),this.savePermanentPermissions()}destruct(){this.permanentPermissions.clear()}constructor(t,i){(0,o._)(this,"jodit",void 0),(0,o._)(this,"toolRegistry",void 0),(0,o._)(this,"permanentPermissions",void 0),(0,o._)(this,"PERMANENT_PERMISSIONS_KEY",void 0),this.jodit=t,this.toolRegistry=i,this.permanentPermissions=new Map,this.PERMANENT_PERMISSIONS_KEY="jodit-permissions.ai-assistant-pro",this.loadPermanentPermissions()}}},46166:function(t,i,n){"use strict";n.d(i,{StateManager:function(){return a}});var o=n(82749),r=n(56075),s=n(11886);class a{createInitialState(){return{isOpen:!1,currentView:"welcome",currentConversation:null,conversations:[],isLoading:!1,error:null,pendingToolCalls:[],selectionContexts:[],abortController:null,editingMessageId:null,theme:this.jodit.o.aiAssistantPro.theme||"parent",displayMode:this.jodit.o.aiAssistantPro.displayMode,panelWidth:this.jodit.o.aiAssistantPro.panelWidth,panelHeight:this.jodit.o.aiAssistantPro.panelHeight,defaultModel:this.jodit.o.aiAssistantPro.defaultModel,defaultTemperature:this.jodit.o.aiAssistantPro.defaultTemperature}}open(){this.state.isOpen=!0,this.jodit.e.fire("open.ai-assistant-pro",this.state.currentConversation)}close(){this.state.isOpen=!1,this.jodit.e.fire("close.ai-assistant-pro")}isOpen(){return this.state.isOpen}setView(t){this.state.currentView=t,this.jodit.e.fire("viewChanged.ai-assistant-pro",t)}getView(){return this.state.currentView}setConversations(t){this.state.conversations=t}setSavedState(t){t.theme&&(this.state.theme=t.theme),t.displayMode&&(this.state.displayMode=t.displayMode),t.panelWidth&&(this.state.panelWidth=t.panelWidth),t.panelHeight&&(this.state.panelHeight=t.panelHeight),t.defaultModel&&(this.state.defaultModel=t.defaultModel),t.defaultTemperature&&(this.state.defaultTemperature=t.defaultTemperature)}getConversations(){return this.state.conversations}setCurrentConversation(t){if(this.state.currentConversation===t)throw Error("Conversation is already current");this.state.currentConversation=t||null,t&&(this.setView("conversation"),this.jodit.e.fire("conversationSwitched.ai-assistant-pro",t))}getCurrentConversation(){return this.state.currentConversation}removeConversation(t){let i=this.state.conversations.filter(i=>i.id!==t);this.setConversations(i)}setLoading(t){this.state.isLoading=t}isLoading(){return this.state.isLoading}setError(t){this.state.error=t,t&&this.jodit.e.fire("error.ai-assistant-pro",Error(t))}getError(){return this.state.error}clearError(){this.setError(null)}setPendingToolCalls(t){this.state.pendingToolCalls=t}getPendingToolCalls(){return this.state.pendingToolCalls}addPendingToolCall(t){let i=[...this.state.pendingToolCalls,t];this.setPendingToolCalls(i)}removePendingToolCall(t){let i=this.state.pendingToolCalls.filter(i=>i.id!==t);this.setPendingToolCalls(i)}updateToolCallStatus(t,i){let n=this.state.pendingToolCalls.map(n=>n.id===t?(0,s._)((0,r._)({},n),{status:i}):n);this.setPendingToolCalls(n)}setSelectionContexts(t){this.state.selectionContexts=t}getSelectionContexts(){return this.state.selectionContexts}addSelectionContext(t){let{maxContextRanges:i}=this.jodit.o.aiAssistantPro,n=[...this.state.selectionContexts,t];n.length>i&&(n=n.slice(-i)),this.setSelectionContexts(n),this.jodit.e.fire("contextAdded.ai-assistant-pro",t)}removeSelectionContext(t){let i=this.state.selectionContexts.filter((i,n)=>n!==t);this.setSelectionContexts(i),this.jodit.e.fire("contextRemoved.ai-assistant-pro",t)}clearSelectionContexts(){this.setSelectionContexts([])}setAbortController(t){this.state.abortController=t}getAbortController(){return this.state.abortController}setEditingMessageId(t){this.state.editingMessageId=t}getEditingMessageId(){return this.state.editingMessageId}isEditingMessage(){return null!=this.state.editingMessageId}clearEditingMessage(){this.setEditingMessageId(null)}reset(){this.state=this.createInitialState()}destruct(){this.state.abortController&&this.state.abortController.abort(),this.reset()}constructor(t){(0,o._)(this,"jodit",void 0),(0,o._)(this,"state",void 0),this.jodit=t,this.state=this.createInitialState()}}},62895:function(t,i,n){"use strict";n.d(i,{WebStorageConversationStorage:function(){return o.WebStorageConversationStorage},createStorageProvider:function(){return o.createStorageProvider}});var o=n(21064)},21064:function(t,i,n){"use strict";n.d(i,{WebStorageConversationStorage:function(){return l},createStorageProvider:function(){return u},generateConversationId:function(){return c},generateMessageId:function(){return d}});var o=n(77688),r=n(82749),s=n(56075),a=n(97333);class l{close(){return this.storage.close()}getConversationKey(t){return`conv:${t}`}getAllKeys(){return(0,o._)(function*(){let t=yield this.storage.get("__conversation_index__");return t&&Array.isArray(t)?t:[]}).call(this)}updateIndex(t){return(0,o._)(function*(){yield this.storage.set("__conversation_index__",t)}).call(this)}addToIndex(t){return(0,o._)(function*(){let i=yield this.getAllKeys();i.includes(t)||(i.push(t),yield this.updateIndex(i))}).call(this)}removeFromIndex(t){return(0,o._)(function*(){let i=(yield this.getAllKeys()).filter(i=>i!==t);yield this.updateIndex(i)}).call(this)}list(t){return(0,o._)(function*(){try{let o=yield this.getAllKeys(),r=[],s=null==t?void 0:t.toLowerCase().trim();for(let t of o){var i,n;let o=yield this.get(t);if(o){if(s){let t=null==(n=o.title)?void 0:n.toLowerCase().includes(s),i=!t&&o.messages.some(t=>t.content.toLowerCase().includes(s));if(!t&&!i)continue}r.push({id:o.id,title:null!=(i=o.title)?i:"",created:o.created,updated:o.updated,messageCount:o.messages.length})}}return r.sort((t,i)=>i.updated-t.updated),r}catch(t){return[]}}).call(this)}get(t){return(0,o._)(function*(){try{let i=this.getConversationKey(t);return(yield this.storage.get(i))||null}catch(t){return null}}).call(this)}save(t){return(0,o._)(function*(){try{if(0===t.messages.length)throw Error("Conversation must have at least one message.");let i=yield this.getAllKeys();i.length>=this.maxConversations&&!i.includes(t.id)&&(yield this.evictOldest());let n=this.getConversationKey(t.id);yield this.storage.set(n,t),yield this.addToIndex(t.id)}catch(i){if((null==i?void 0:i.name)==="QuotaExceededError"||(null==i?void 0:i.code)===22||(null==i?void 0:i.code)===1014){yield this.evictOldest();try{let i=this.getConversationKey(t.id);yield this.storage.set(i,t),yield this.addToIndex(t.id)}catch(t){throw Error("Storage quota exceeded. Please delete some conversations.")}}else throw Error(`Failed to save conversation: ${(null==i?void 0:i.message)||"Unknown error"}`)}}).call(this)}delete(t){return(0,o._)(function*(){try{let i=this.getConversationKey(t);yield this.storage.delete(i),yield this.removeFromIndex(t)}catch(t){}}).call(this)}clear(){return(0,o._)(function*(){try{for(let t of yield this.getAllKeys()){let i=this.getConversationKey(t);yield this.storage.delete(i)}yield this.updateIndex([])}catch(t){}}).call(this)}evictOldest(){return(0,o._)(function*(){try{let t=yield this.list();if(0===t.length)return;t.sort((t,i)=>t.updated-i.updated);let i=t[0];yield this.delete(i.id)}catch(t){}}).call(this)}getGlobalSettings(){return(0,o._)(function*(){try{return(yield this.storage.get("global-settings"))||null}catch(t){return null}}).call(this)}saveGlobalSettings(t){return(0,o._)(function*(){try{let i=yield this.getGlobalSettings(),n=(0,s._)({},i,t);yield this.storage.set("global-settings",n)}catch(t){throw Error("Failed to save global settings")}}).call(this)}constructor(t,i){(0,r._)(this,"storage",void 0),(0,r._)(this,"maxConversations",void 0),this.storage=t,this.maxConversations=i}}function u(t,i){return a.AsyncStorage.makeStorage(t,i)}function c(){return`conv_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}function d(){return`msg_${Date.now()}_${Math.random().toString(36).substring(2,11)}`}},55487:function(t,i,n){"use strict";n.d(i,{ToolRegistry:function(){return l}});var o=n(77688),r=n(82749),s=n(56075),a=n(53835);class l{registerBuiltInTools(t){t.forEach(t=>{let i=a.BUILT_IN_TOOLS[t];i&&this.tools.set(t,i)})}registerCustomTools(t){t.forEach(t=>{this.validateToolDefinition(t),this.tools.set(t.name,t)})}validateToolDefinition(t){if(!t.name||"string"!=typeof t.name)throw Error("Tool must have a valid name");if(!t.description||"string"!=typeof t.description)throw Error(`Tool "${t.name}" must have a description`);if(!Array.isArray(t.parameters))throw Error(`Tool "${t.name}" must have a parameters array`);if("function"!=typeof t.execute)throw Error(`Tool "${t.name}" must have an execute function`);t.parameters.forEach(i=>{if(!i.name||"string"!=typeof i.name)throw Error(`Tool "${t.name}" has a parameter without a valid name`);if(!i.type)throw Error(`Tool "${t.name}" parameter "${i.name}" must have a type`);if("boolean"!=typeof i.required)throw Error(`Tool "${t.name}" parameter "${i.name}" must specify if it's required`)})}getAllTools(){return Array.from(this.tools.values())}getTool(t){return this.tools.get(t)}hasTool(t){return this.tools.has(t)}getToolNames(){return Array.from(this.tools.keys())}executeTool(t,i,n){return(0,o._)(function*(){let o=this.getTool(t);if(!o)throw Error(`Tool "${t}" not found`);let r=this.applyDefaults(o,i);this.validateArguments(o,r);try{return yield o.execute(this.jodit,r,n)}catch(t){if((null==t?void 0:t.name)==="AbortError"||n.aborted)throw Error("Tool execution was aborted");throw t}}).call(this)}validateArguments(t,i){let n=Object.keys(i);for(let i of t.parameters.filter(t=>t.required).map(t=>t.name))if(!n.includes(i))throw Error(`Tool "${t.name}" requires parameter "${i}"`);for(let[n,o]of Object.entries(i)){let i=t.parameters.find(t=>t.name===n);if(!i){this.jodit.o.aiAssistantPro.debug;continue}let r=Array.isArray(o)?"array":"object"==typeof o&&null!=o?"object":typeof o;if(i.type!==r&&!("number"===i.type&&"string"===r&&!isNaN(Number(o))))throw Error(`Tool "${t.name}" parameter "${n}" expects type "${i.type}" but got "${r}"`);if(i.enum&&i.enum.length>0&&!i.enum.includes(o))throw Error(`Tool "${t.name}" parameter "${n}" must be one of: ${i.enum.join(", ")}`)}}applyDefaults(t,i){let n=(0,s._)({},i);for(let i of t.parameters)void 0===n[i.name]&&void 0!==i.default&&(n[i.name]=i.default);return n}destruct(){this.tools.clear()}constructor(t){(0,r._)(this,"jodit",void 0),(0,r._)(this,"tools",void 0),this.jodit=t,this.tools=new Map,this.registerBuiltInTools(t.o.aiAssistantPro.enabledTools||[]),this.registerCustomTools(t.o.aiAssistantPro.customTools||[])}}},26612:function(t){t.exports={"AI Assistant":"AI Assistant","AI Assistant Pro":"AI Assistant Pro","Welcome to AI Assistant":"Welcome to AI Assistant","Start your first conversation":"Start your first conversation","Tip: Select text in editor to add context":"Tip: Select text in editor to add context","New Chat":"New Chat","Search conversations...":"Search conversations...","No conversations yet":"No conversations yet","Ask me anything...":"Ask me anything...","Ask a follow-up...":"Ask a follow-up...","Reply...":"Reply...","Type your message...":"Type your message...",Send:"Send",Cancel:"Cancel",Retry:"Retry",Insert:"Insert",Copy:"Copy",Edit:"Edit",Delete:"Delete",New:"New",Back:"Back","Permission Required":"Permission Required",Approve:"Approve",Deny:"Deny",Once:"Once","This conversation":"This conversation",Always:"Always","The AI wants to execute:":"The AI wants to execute:","This will modify your document content.":"This will modify your document content.","Executing...":"Executing...","Completed successfully":"Completed successfully",Failed:"Failed","Pending approval":"Pending approval","Denied by user":"Denied by user","Tool Result":"Tool Result","Tool Execution Error":"Tool Execution Error",Context:"Context",Contexts:"Contexts","Add to AI Context":"Add to AI Context",Remove:"Remove","Clear all":"Clear all","An error occurred":"An error occurred","Request failed":"Request failed","Connection error":"Connection error","AI Assistant is not configured":"AI Assistant is not configured","Thinking...":"Thinking...","Generating response...":"Generating response...",insertHTML:"Insert HTML",readDocument:"Read Document",readBlock:"Read Block",replaceInDocument:"Replace in Document",replaceInBlock:"Replace in Block",getSelection:"Get Selection","Just now":"Just now",Conversation:"Conversation","New Conversation":"New Conversation",Yesterday:"Yesterday","Delete conversation":"Delete conversation","Are you sure you want to delete this conversation?":"Are you sure you want to delete this conversation?","Failed to delete conversation":"Failed to delete conversation"}},63805:function(t,i,n){"use strict";n.r(i),n.d(i,{en:function(){return r.a},ru:function(){return a.a}});var o=n(26612),r=n.n(o),s=n(55790),a=n.n(s)},55790:function(t){t.exports={"AI Assistant":"AI Ассистент","AI Assistant Pro":"AI Ассистент Pro","Welcome to AI Assistant":"Добро пожаловать в AI Ассистент","Start your first conversation":"Начните первый диалог","Tip: Select text in editor to add context":"Подсказка: Выделите текст в редакторе для добавления контекста","New chat":"Новый чат","Search conversations...":"Поиск диалогов...","No conversations yet":"Пока нет диалогов","Ask me anything...":"Спросите меня о чем угодно...","Ask a follow-up...":"Задайте дополнительный вопрос...","Reply...":"Ответить...","Type your message...":"Введите ваше сообщение...",Send:"Отправить",Cancel:"Отмена",Retry:"Повторить",Insert:"Вставить",Copy:"Копировать",Edit:"Редактировать",Delete:"Удалить",New:"Новый",Back:"Назад","Permission Required":"Требуется разрешение",Approve:"Разрешить",Deny:"Отклонить",Once:"Один раз","This conversation":"Этот диалог",Always:"Всегда","The AI wants to execute:":"AI хочет выполнить:","This will modify your document content.":"Это изменит содержимое вашего документа.","Executing...":"Выполняется...","Completed successfully":"Успешно выполнено",Failed:"Ошибка","Pending approval":"Ожидает разрешения","Denied by user":"Отклонено пользователем","Tool Result":"Результат инструмента","Tool Execution Error":"Ошибка выполнения инструмента",Context:"Контекст",Contexts:"Контексты","Add to AI Context":"Добавить в контекст AI",Remove:"Удалить","Clear all":"Очистить все","An error occurred":"Произошла ошибка","Request failed":"Запрос не выполнен","Connection error":"Ошибка соединения","AI Assistant is not configured":"AI Ассистент не настроен","Thinking...":"Думаю...","Generating response...":"Генерирую ответ...",insertHTML:"Вставить HTML",readDocument:"Прочитать документ",readBlock:"Прочитать блок",replaceInDocument:"Заменить в документе",replaceInBlock:"Заменить в блоке",getSelection:"Получить выделение","Just now":"Только что",Conversation:"Диалог","New Conversation":"Новый диалог",Yesterday:"Вчера","Delete conversation":"Удалить диалог","Are you sure you want to delete this conversation?":"Вы уверены, что хотите удалить этот диалог?","Failed to delete conversation":"Не удалось удалить диалог",Settings:"Настройки","General Settings":"Общие настройки","Conversation Settings":"Настройки диалога","Display Mode":"Режим отображения","Panel Width":"Ширина панели",Theme:"Тема",Model:"Модель",Temperature:"Температура",Close:"Закрыть",Dialog:"Модальное окно",Left:"Левая панель",Right:"Правая панель",Top:"Верхняя панель",Bottom:"Нижняя панель",Inherit:"Наследовать от редактора",Light:"Светлая тема",Dark:"Тёмная тема","%dm ago":"%dм назад","%dh ago":"%dч назад"}},94454:function(t,i,n){"use strict";n.d(i,{getAIProviderOptions:function(){return o.getAIProviderOptions},registerAIProvider:function(){return o.registerAIProvider}}),n(82923);var o=n(58211)},82923:function(t,i,n){"use strict";var o=n(89929),r=n(77688),s=n(86127),a=n(56075),l=n(11886),u=n(25415),c=n(58211),d=n(54079);(0,c.registerAIProvider)("jodit-ai-adapter",t=>{var i;let n=t.url.replace(/\/+$/,""),c=null!=(i=t.provider)?i:"openai",h=!1!==t.stream;return{apiMode:"incremental",maxRetries:0,voiceInputEnabled:!0,voiceInputUrl:`${n.replace(/^http/,"ws")}/v1/ai/transcribe`,voiceInputApiKey:t.apiKey,textAutocompleteEnabled:!0,textAutocompleteApiRequest:(i,o,s)=>(0,r._)(function*(){var r;let a=new d.Ajax({url:`${n}/ai/autocomplete?query=${encodeURIComponent(i)}&key=${encodeURIComponent(t.apiKey)}`,method:"POST",contentType:"application/json",data:{provider:c,context:{maxSuggestions:o}}});s.addEventListener("abort",()=>a.abort(),{once:!0});let l=yield a.send(),u=yield l.json();return u.success&&(null==(r=u.result)?void 0:r.suggestions)?u.result.suggestions:[]})(),apiRequest:(i,p)=>(0,r._)(function*(){let r=new d.Ajax({url:`${n}/ai/request?key=${encodeURIComponent(t.apiKey)}`,method:"POST",contentType:"application/json",data:{provider:c,context:h?(0,l._)((0,a._)({},i),{metadata:(0,l._)((0,a._)({},i.metadata),{stream:!0})}):i}});if(p&&p.addEventListener("abort",()=>r.abort(),{once:!0}),!h){let t=yield r.send();return{mode:"final",response:(yield t.json()).result}}let f=r.stream();return{mode:"stream",stream:(0,u._)(function*(){var t,i=!1,n=!1;try{for(var r,a=(0,o._)(f);i=!(r=yield(0,s._)(a.next())).done;i=!1){let t=r.value;yield JSON.parse(t)}}catch(i){n=!0,t=i}finally{try{i&&null!=a.return&&(yield(0,s._)(a.return()))}finally{if(n)throw t}}})()}})()}})},58211:function(t,i,n){"use strict";n.d(i,{getAIProviderOptions:function(){return r},registerAIProvider:function(){return s}});let o=new Map;function r(t,i){let n=o.get(t);if(!n)throw Error(`AI provider "${t}" is not registered. Available providers: ${[...o.keys()].join(", ")}`);return n(i)}function s(t,i){o.set(t,i)}},65374:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="addHTML",r="Add HTML content to the beginning or end of the document",s=[{name:"html",type:"string",description:"HTML content to add",required:!0},{name:"position",type:"string",description:'Where to add: "start" adds at the beginning of the document, "end" appends to the end',required:!1,default:"end"}],a=!0},686:function(t,i,n){"use strict";n.d(i,{execute:function(){return l}});var o=n(77688),r=n(6689),s=n(49459),a=n(22732);function l(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"html",{allowEmpty:!0}),{position:l="end"}=i;if(!o.trim())return{success:!0,message:"Nothing to add: HTML is empty"};(0,r.throwIfAborted)(n);try{let i=t.createInside.fragment(),n=t.createInside.div();for(n.innerHTML=o;n.firstChild;)i.appendChild(n.firstChild);return"start"===l?a.Dom.prepend(t.editor,i):a.Dom.append(t.editor,i),t.synchronizeValues(),{success:!0,message:`Added ${o.length} characters of HTML at the ${"start"===l?"beginning":"end"} of the document`}}catch(t){throw Error(`Failed to add HTML: ${(null==t?void 0:t.message)||"Unknown error"}`)}})()}},78907:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(65374),a=n(686);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},73943:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="applyFormat",r="Apply or remove inline formatting to the current selection (bold, italic, underline, etc.) or to a specific block",s=[{name:"element",type:"string",description:'HTML element to wrap selection (e.g., "strong", "em", "u", "span")',required:!1},{name:"attributes",type:"object",description:'Attributes to apply (e.g., {"className": "highlight"}, {"style": {"color": "red"}})',required:!1},{name:"remove",type:"boolean",description:"If true, remove the formatting instead of applying it",required:!1,default:!1},{name:"blockIndex",type:"number",description:"Zero-based index of the block to format (if not using current selection)",required:!1},{name:"selector",type:"string",description:"CSS selector to find the block to format (if not using current selection)",required:!1}],a=!0},19127:function(t,i,n){"use strict";n.d(i,{execute:function(){return u}});var o=n(77688),r=n(56075),s=n(11886),a=n(6689),l=n(44526);function u(t,i,n){return(0,o._)(function*(){let{element:o,attributes:u,remove:c,blockIndex:d,selector:h}=i;if((0,a.throwIfAborted)(n),!o&&!u)throw Error('Either "element" or "attributes" must be provided');if(t.s.restore(),void 0!==d||h){let{element:i}=(0,l.resolveBlock)(t,{selector:h,index:d});t.s.select(i)}if(t.s.isCollapsed())throw Error("No selection found. Please select text to format");try{let i={};return o&&(i.element=o),u&&(i.attributes=u),c?t.s.commitStyle((0,s._)((0,r._)({},i),{mode:"remove"})):t.s.commitStyle(i),t.synchronizeValues(),{success:!0,message:c?"Formatting removed successfully":"Formatting applied successfully"}}catch(t){throw Error(`Failed to ${c?"remove":"apply"} formatting: ${t.message}`)}})()}},39296:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(73943),a=n(19127);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},53835:function(t,i,n){"use strict";n.d(i,{BUILT_IN_TOOLS:function(){return f},getToolNames:function(){return m}});var o=n(78907),r=n(39296),s=n(16745),a=n(78717),l=n(5618),u=n(90991),c=n(2020),d=n(12570),h=n(95323),p=n(97603);let f={readDocument:l.default,readBlocks:a.default,readSelection:u.default,writeDocument:p.default,replaceSelection:h.default,replaceBlock:c.default,replaceInDocument:d.default,insertHTML:s.default,addHTML:o.default,applyFormat:r.default};function m(){return Object.keys(f)}},56732:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="insertHTML",r="Insert or replace HTML content at the current cursor position in the editor",s=[{name:"html",type:"string",description:"HTML content to insert",required:!0},{name:"replace",type:"boolean",description:"If true, replaces current selection. If false, inserts at cursor",required:!1,default:!1}],a=!0},39592:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(49459);function a(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"html",{allowEmpty:!0}),{replace:a}=i;if(!o.trim())return{success:!0,message:"Nothing to insert: HTML is empty"};(0,r.throwIfAborted)(n);try{return t.s.focus(),a&&!t.s.isCollapsed()&&t.s.remove(),t.s.insertHTML(o),t.synchronizeValues(),{success:!0,message:`Inserted ${o.length} characters of HTML`}}catch(t){throw Error(`Failed to insert HTML: ${(null==t?void 0:t.message)||"Unknown error"}`)}})()}},16745:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(56732),a=n(39592);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},75352:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="readBlocks",r="Read blocks from the editor with optional filtering and pagination",s=[{name:"offset",type:"number",description:"Number of blocks to skip from the beginning (default: 0)",required:!1,default:0},{name:"limit",type:"number",description:"Maximum number of blocks to return (default: all)",required:!1},{name:"query",type:"string",description:"Filter blocks by text content",required:!1}],a=!1},91140:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(22732);function a(t,i,n){return(0,o._)(function*(){let{offset:o,limit:a,query:l}=i;(0,r.throwIfAborted)(n);let u=[];Array.from(t.editor.children).forEach((t,i)=>{s.Dom.isElement(t)&&u.push({blockIndex:i,tagName:t.tagName.toLowerCase(),content:t.innerHTML,textContent:t.textContent||"",classList:Array.from(t.classList)})});let c=u;if(l&&"string"==typeof l){let t=l.toLowerCase();c=u.filter(i=>i.textContent.toLowerCase().includes(t)||i.tagName.includes(t)||i.content.toLowerCase().includes(t))}let d=Math.max(0,Math.min("number"==typeof o?o:0,c.length)),h=void 0!==a?Math.min(d+a,c.length):c.length;return{blocks:c.slice(d,h),total:u.length,offset:d,limit:void 0!==a?a:void 0}})()}},78717:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(75352),a=n(91140);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},93809:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="readDocument",r="Read the entire content of the editor document in HTML format",s=[{name:"start",type:"number",description:"Start character position (default: 0)",required:!1,default:0},{name:"end",type:"number",description:"End character position (default: length of document)",required:!1},{name:"aroundSelection",type:"boolean",description:"If true, return only the maximum block around the current selection",required:!1,default:!1}],a=!1},28157:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(22732);function a(t,i,n){return(0,o._)(function*(){let{start:o,end:a,aroundSelection:l}=i;(0,r.throwIfAborted)(n);let u=t.value,c=u.length;if(l&&!t.s.isCollapsed()){let i=t.s.range.commonAncestorContainer;for(;i&&i!==t.editor;){if(s.Dom.isElement(i)&&i.parentNode===t.editor){u=i.outerHTML;break}i=i.parentNode}return{html:u,length:c}}let d=void 0!==a?Math.min(a,c):c,h=Math.max(0,Math.min("number"==typeof o?o:0,c));return(h>0||c>d)&&(u=u.substring(h,d)),{html:u,length:c,start:h,end:d}})()}},5618:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(93809),a=n(28157);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},52826:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="readSelection",r="Get information about the current selection including HTML content and optional context",s=[{name:"contextCharsBefore",type:"number",description:"Number of characters to include before the selection",required:!1,default:0},{name:"contextCharsAfter",type:"number",description:"Number of characters to include after the selection",required:!1,default:0}],a=!1},85130:function(t,i,n){"use strict";n.d(i,{execute:function(){return s}});var o=n(77688),r=n(6689);function s(t,i,n){return(0,o._)(function*(){let{contextCharsBefore:o,contextCharsAfter:s}=i;if((0,r.throwIfAborted)(n),t.s.restore(),t.s.isCollapsed())return{hasSelection:!1};let a=t.s.html,l=t.s.range,u=l.toString(),c={hasSelection:!0,html:a,text:u,startContainer:l.startContainer.nodeName,endContainer:l.endContainer.nodeName};if(o>0||s>0){let i=t.editor.textContent||"",n=i.substring(0,i.indexOf(u)),r=i.substring(i.indexOf(u)+u.length);o>0&&(c.contextBefore=n.slice(-o)),s>0&&(c.contextAfter=r.slice(0,s))}return c})()}},90991:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(52826),a=n(85130);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},96675:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="replaceBlock",r="Replace a specific block in the document by its index or CSS selector with new HTML content",s=[{name:"index",type:"number",description:"Zero-based index of the block to replace (use either index or selector, not both)",required:!1},{name:"selector",type:"string",description:'CSS selector to find the block to replace (e.g., "h1", ".my-class", "#my-id"). Use either selector or index, not both',required:!1},{name:"html",type:"string",description:"HTML content for the new block",required:!0}],a=!0},3091:function(t,i,n){"use strict";n.d(i,{execute:function(){return u}});var o=n(77688),r=n(6689),s=n(49459),a=n(44526),l=n(22732);function u(t,i,n){return(0,o._)(function*(){let{index:o,selector:u}=i,c=(0,s.requireString)(i,"html");if((0,r.throwIfAborted)(n),void 0===o&&!u||void 0!==o&&u)throw Error("Either index or selector must be provided, but not both");let{element:d,identifier:h}=(0,a.resolveBlock)(t,{selector:u,index:o,requireExactlyOne:!0});try{var p;let i=t.createInside.div();i.innerHTML=c;let n=i.firstChild;if(!n||!l.Dom.isElement(n))throw Error("Invalid HTML: must contain at least one element");return null==(p=d.parentNode)||p.replaceChild(n,d),t.synchronizeValues(),{success:!0,message:`Block ${h} replaced successfully`}}catch(t){throw Error(`Failed to replace block ${h}: ${t.message}`)}})()}},2020:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(96675),a=n(3091);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},62553:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="replaceInDocument",r="Find and replace text or HTML patterns throughout the entire document",s=[{name:"search",type:"string",description:"Text or pattern to search for",required:!0},{name:"replace",type:"string",description:"Replacement text or HTML",required:!0},{name:"useRegex",type:"boolean",description:"If true, treats search as a regular expression",required:!1,default:!1},{name:"useSelector",type:"string",description:"CSS selector to narrow down the search scope to specific elements",required:!1}],a=!0},56293:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(49459);function a(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"search"),a=(0,s.requireString)(i,"replace",{allowEmpty:!0}),{useRegex:l,useSelector:u}=i;(0,r.throwIfAborted)(n);try{let i;t.s.focus(),t.s.save();let s=0;if(u){let c=function(t,i,n,o,s,a){let l=t.editor.querySelectorAll(s);if(0===l.length)return{replacements:0,message:`No elements found matching selector "${s}"`};let u=0;return l.forEach(t=>{(0,r.throwIfAborted)(a);let s=t.innerHTML,l=s;if(o)try{let t=RegExp(i,"g");s=s.replace(t,()=>(u++,n))}catch(t){throw Error(`Invalid regex pattern: ${(null==t?void 0:t.message)||"Unknown error"}`)}else{let t=i.length,o=0;for(;-1!==(o=s.indexOf(i,o));)(0,r.throwIfAborted)(a),s=s.substring(0,o)+n+s.substring(o+t),o+=n.length,u++}s!==l&&(t.innerHTML=s)}),u>0&&(t.synchronizeValues(),t.s.restore()),{replacements:u}}(t,o,a,l,u,n);s=c.replacements,i=c.message}else s=function(t,i,n,o,s,a){let l=0,u=i;if(s)try{let t=RegExp(n,"g");u=u.replace(t,()=>(l++,o))}catch(t){throw Error(`Invalid regex pattern: ${(null==t?void 0:t.message)||"Unknown error"}`)}else{let t=n.length,i=0;for(;-1!==(i=u.indexOf(n,i));)(0,r.throwIfAborted)(a),u=u.substring(0,i)+o+u.substring(i+t),i+=o.length,l++}return l>0&&(t.value=u,t.s.restore(),t.synchronizeValues()),l}(t,t.value,o,a,l,n);return{replacements:s,message:i||(s>0?`Replaced ${s} occurrence(s)`:"No matches found")}}catch(i){throw t.s.restore(),Error(`Failed to replace in document: ${(null==i?void 0:i.message)||"Unknown error"}`)}})()}},12570:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(62553),a=n(56293);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},70750:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="replaceSelection",r="Replace the current selection with new HTML content",s=[{name:"html",type:"string",description:"HTML content to insert in place of the selection",required:!0},{name:"collapseToEnd",type:"boolean",description:"Move cursor to the end of the inserted content",required:!1,default:!0}],a=!0},36142:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(49459);function a(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"html"),{collapseToEnd:a}=i;(0,r.throwIfAborted)(n);try{if(t.s.restore(),t.s.insertHTML(o),a){let i=t.s.range;i.collapse(!1),t.s.selectRange(i)}return t.e.fire("change"),{success:!0,message:"Selection replaced successfully"}}catch(t){throw Error(`Failed to replace selection: ${t.message}`)}})()}},95323:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(70750),a=n(36142);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},90022:function(t,i,n){"use strict";n.r(i),n.d(i,{description:function(){return r},name:function(){return o},parameters:function(){return s},requiresPermission:function(){return a}});let o="writeDocument",r="Write (replace) the entire document content with new HTML",s=[{name:"html",type:"string",description:"HTML content to set as the document",required:!0}],a=!0},79766:function(t,i,n){"use strict";n.d(i,{execute:function(){return a}});var o=n(77688),r=n(6689),s=n(49459);function a(t,i,n){return(0,o._)(function*(){let o=(0,s.requireString)(i,"html",{allowEmpty:!0});(0,r.throwIfAborted)(n);try{return t.s.focus(),t.value=o,t.synchronizeValues(),{success:!0,message:`Document content was replaced with provided HTML(${o.length} characters)`}}catch(t){throw Error(`Failed to replace HTML: ${(null==t?void 0:t.message)||"Unknown error"}`)}})()}},97603:function(t,i,n){"use strict";var o=n(56075),r=n(11886),s=n(90022),a=n(79766);i.default=(0,r._)((0,o._)({},s),{execute:a.execute})},80453:function(t,i,n){"use strict";n.d(i,{UIConversationListItem:function(){return c}});var o=n(82749),r=n(31635),s=n(65478),a=n(67510),l=n(62843),u=n(80870);class c extends a.UIElement{className(){return"UIConversationListItem"}render(){return'<div class="jodit-ui-conversation-list__item"></div>'}setActive(t){this.isActive=t,this.updateContent()}updateContent(){let t=this.container;t.innerHTML="",t.setAttribute("data-id",this.conversation.id),this.isActive?t.classList.add("jodit-ui-conversation-list__item_active"):t.classList.remove("jodit-ui-conversation-list__item_active");let i=this.j.c.div("jodit-ui-conversation-list__item-avatar");i.textContent="AI",t.appendChild(i);let n=this.j.c.div("jodit-ui-conversation-list__item-wrapper"),o=this.j.c.div("jodit-ui-conversation-list__item-content"),r=this.j.c.div("jodit-ui-conversation-list__item-title");if(r.textContent=this.conversation.title,this.titleElement=r,o.appendChild(r),this.opts.showTimestamps){let t=this.j.c.div("jodit-ui-conversation-list__item-meta");t.textContent=this.opts.formatTimestamp(this.conversation.updated,this.j.i18n.bind(this.j)),o.appendChild(t)}if(n.appendChild(o),this.conversation.messageCount>0){let t=this.j.c.div("jodit-ui-conversation-list__item-badge");t.textContent=String(this.conversation.messageCount),n.appendChild(t)}t.appendChild(n),this.actionsButton||(this.actionsButton=new l.UIButton(this.j,{icon:{name:"dots"},tooltip:"Actions",name:"conversationActions",size:"tiny"}),this.actionsButton.container.classList.add("jodit-ui-conversation-list__item-actions"),this.actionsButton.onAction(t=>{t.stopPropagation(),this.showActionsMenu(t)})),t.appendChild(this.actionsButton.container)}onClick(){this.isRenaming||this.j.e.fire("selectConversation.ai-assistant-pro",this.conversation.id)}showActionsMenu(t){if(!this.contextMenu||!this.actionsButton)return;let i=this.actionsButton.container.getBoundingClientRect();this.contextMenu.show(i.left,i.bottom,[{title:"Rename",icon:"pencil",exec:()=>{this.startInlineRename()}},{title:"Delete",icon:"bin",exec:()=>{this.onDelete()}}]),t.stopPropagation()}startInlineRename(){if(this.isRenaming||!this.titleElement)return;this.isRenaming=!0;let t=this.titleElement,i=this.conversation.title,n=this.j.c.element("input");n.type="text",n.value=i,n.className="jodit-ui-conversation-list__item-title-input",t.textContent="",t.appendChild(n),n.focus(),n.select();let o=()=>{if(!this.isRenaming)return;let o=n.value.trim();this.isRenaming=!1,o&&o!==i?(t.textContent=o,this.j.e.fire("renameConversation.ai-assistant-pro",this.conversation.id,o)):t.textContent=i};this.j.e.on(n,"blur",o),this.j.e.on(n,"keydown",o=>{"Enter"===o.key&&(o.preventDefault(),n.blur()),"Escape"===o.key&&(this.isRenaming=!1,t.textContent=i)}),this.j.e.on(n,"click",t=>{t.stopPropagation()})}onDelete(){this.j.e.fire("deleteConversation.ai-assistant-pro",this.conversation.id)}destruct(){var t,i;null==(t=this.actionsButton)||t.destruct(),null==(i=this.contextMenu)||i.destruct(),super.destruct()}constructor(t,i,n=!1,r){super(t),(0,o._)(this,"opts",void 0),(0,o._)(this,"conversation",void 0),(0,o._)(this,"isActive",void 0),(0,o._)(this,"actionsButton",void 0),(0,o._)(this,"contextMenu",void 0),(0,o._)(this,"titleElement",void 0),(0,o._)(this,"isRenaming",void 0),this.opts=r,this.actionsButton=null,this.contextMenu=null,this.titleElement=null,this.isRenaming=!1,this.conversation=i,this.isActive=n,this.contextMenu=new u.ContextMenu(this.j),this.updateContent()}}(0,r.__decorate)([(0,s.watch)("container:click")],c.prototype,"onClick",null),(0,r.__decorate)([s.autobind],c.prototype,"showActionsMenu",null),(0,r.__decorate)([s.autobind],c.prototype,"startInlineRename",null),(0,r.__decorate)([s.autobind],c.prototype,"onDelete",null),c=(0,r.__decorate)([s.component],c)},68365:function(t,i,n){"use strict";n.d(i,{UIConversationList:function(){return d}});var o=n(82749),r=n(31635),s=n(31356),a=n(80453),l=n(65478),u=n(80256),c=n(62405);class d extends c.UIGroup{className(){return"UIConversationList"}render(){return`<div class="&__container">
257
257
  <div class="&__header"></div>
258
258
  <div class="&__search">
259
259
  <div class="&__search-loader"></div>
260
260
  </div>
261
261
  <div class="&__list"></div>
262
- </div>`}afterRender(){this.createControls(),this.listContainer=this.getElm("list")}appendChildToContainer(t){this.listContainer&&this.listContainer.appendChild(t)}createControls(){let t=this.getElm("search");this.searchInput=new u.UIInput(this.j,{name:"search",placeholder:"Search conversations...",icon:"search",clearButton:!0}),this.j.e.on(this.searchInput.nativeInput,"input",this.onSearch),t.appendChild(this.searchInput.container)}setConversations(t){this.buildList(t)}setActiveConversation(t){this.activeConversationId=t,this.elements.forEach(i=>{i.setActive(i.conversation.id===t)})}onSearch(){let t=this.searchInput.value.trim();this.j.e.fire("searchConversations.ai-assistant-pro",t)}buildList(t){let i=this.elements.map(t=>t.conversation),n=s.ListReconciler.reconcile(i,t,{getId:t=>t.id,isEqual:(t,i)=>t.id===i.id&&t.updated===i.updated,preserveOrder:!0});n.toRemove.forEach(t=>{let i=this.conversationItems.get(t.id);i&&(-1!==this.elements.indexOf(i)&&(this.remove(i),i.destruct()),this.conversationItems.delete(t.id))}),n.toUpdate.forEach(({newItem:t,index:i})=>{let n=this.conversationItems.get(t.id);if(n){let o=t.id===this.activeConversationId;n.setActive(o),this.elements.indexOf(n)!==i&&i<this.elements.length&&(this.remove(n),this.append(n,i))}}),n.toCreate.forEach(i=>{let n=i.id===this.activeConversationId,o=new a.UIConversationListItem(this.j,i,n,this.opts);this.conversationItems.set(i.id,o);let r=t.indexOf(i);this.append(o,r)}),n.unchanged.forEach(t=>{let i=this.conversationItems.get(t.id);if(i){let n=t.id===this.activeConversationId;i.setActive(n)}})}setLoading(t){this.setMod("loading",t)}setParentView(t){var i;return null==(i=this.searchInput)||i.setParentView(t),super.setParentView(t)}destruct(){var t;null==(t=this.searchInput)||t.destruct(),super.destruct()}constructor(t,i){super(t),(0,o._)(this,"opts",void 0),(0,o._)(this,"searchInput",void 0),(0,o._)(this,"activeConversationId",void 0),(0,o._)(this,"listContainer",void 0),(0,o._)(this,"conversationItems",void 0),this.opts=i,this.searchInput=null,this.activeConversationId=null,this.conversationItems=new Map}}(0,r.__decorate)([(0,l.hook)("ready")],d.prototype,"afterRender",null),(0,r.__decorate)([(0,l.debounce)()],d.prototype,"onSearch",null),d=(0,r.__decorate)([l.component],d)},63227:function(t,i,n){"use strict";n.d(i,{UIInputArea:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(38837),l=n(67510),u=n(62843),c=n(85120);class d extends l.UIElement{className(){return"UIInputArea"}setParentView(t){var i,n,o;return null==(i=this.textarea)||i.setParentView(t),null==(n=this.sendButton)||n.setParentView(t),null==(o=this.stopButton)||o.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
262
+ </div>`}afterRender(){this.createControls(),this.listContainer=this.getElm("list")}appendChildToContainer(t){this.listContainer&&this.listContainer.appendChild(t)}createControls(){let t=this.getElm("search");this.searchInput=new u.UIInput(this.j,{name:"search",placeholder:"Search conversations...",icon:"search",clearButton:!0}),this.j.e.on(this.searchInput.nativeInput,"input",this.onSearch),t.appendChild(this.searchInput.container)}setConversations(t){this.buildList(t)}setActiveConversation(t){this.activeConversationId=t,this.elements.forEach(i=>{i.setActive(i.conversation.id===t)})}onSearch(){let t=this.searchInput.value.trim();this.j.e.fire("searchConversations.ai-assistant-pro",t)}buildList(t){let i=this.elements.map(t=>t.conversation),n=s.ListReconciler.reconcile(i,t,{getId:t=>t.id,isEqual:(t,i)=>t.id===i.id&&t.updated===i.updated,preserveOrder:!0});n.toRemove.forEach(t=>{let i=this.conversationItems.get(t.id);i&&(-1!==this.elements.indexOf(i)&&(this.remove(i),i.destruct()),this.conversationItems.delete(t.id))}),n.toUpdate.forEach(({newItem:t,index:i})=>{let n=this.conversationItems.get(t.id);if(n){let o=t.id===this.activeConversationId;n.setActive(o),this.elements.indexOf(n)!==i&&i<this.elements.length&&(this.remove(n),this.append(n,i))}}),n.toCreate.forEach(i=>{let n=i.id===this.activeConversationId,o=new a.UIConversationListItem(this.j,i,n,this.opts);this.conversationItems.set(i.id,o);let r=t.indexOf(i);this.append(o,r)}),n.unchanged.forEach(t=>{let i=this.conversationItems.get(t.id);if(i){let n=t.id===this.activeConversationId;i.setActive(n)}})}setLoading(t){this.setMod("loading",t)}setParentView(t){var i;return null==(i=this.searchInput)||i.setParentView(t),super.setParentView(t)}destruct(){var t;null==(t=this.searchInput)||t.destruct(),super.destruct()}constructor(t,i){super(t),(0,o._)(this,"opts",void 0),(0,o._)(this,"searchInput",void 0),(0,o._)(this,"activeConversationId",void 0),(0,o._)(this,"listContainer",void 0),(0,o._)(this,"conversationItems",void 0),this.opts=i,this.searchInput=null,this.activeConversationId=null,this.conversationItems=new Map}}(0,r.__decorate)([(0,l.hook)("ready")],d.prototype,"afterRender",null),(0,r.__decorate)([(0,l.debounce)()],d.prototype,"onSearch",null),d=(0,r.__decorate)([l.component],d)},63227:function(t,i,n){"use strict";n.d(i,{UIInputArea:function(){return h}});var o=n(82749),r=n(31635),s=n(66330),a=n(65478),l=n(38837),u=n(67510),c=n(62843),d=n(85120);class h extends u.UIElement{className(){return"UIInputArea"}setParentView(t){var i,n,o,r;return null==(i=this.textarea)||i.setParentView(t),null==(n=this.sendButton)||n.setParentView(t),null==(o=this.stopButton)||o.setParentView(t),null==(r=this.voiceButton)||r.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
263
263
  <div class="&__context-badges"></div>
264
264
  <div class="&__loading-indicator">
265
265
  <span class="&__loading-dot"></span>
@@ -270,7 +270,7 @@ ${s}`.trim();n?yield this.__executeQuickCommandSilent(u,s):yield this.__executeQ
270
270
  <div class="&__textarea-wrapper"></div>
271
271
  <div class="&__buttons"></div>
272
272
  </div>
273
- </div>`}onInputRowClick(){if(this.textarea!==this.j.od.activeElement){var t;null==(t=this.textarea)||t.focus()}}afterRender(){this.contextBadges=this.getElm("context-badges"),this.createControls(),this.attachHandlers()}createControls(){let t=this.getElm("textarea-wrapper"),i=this.getElm("buttons");this.textarea=new c.UITextArea(this.j,{name:"message",placeholder:this.options.placeholderText,resizable:!1}),t.appendChild(this.textarea.container),this.sendButton=new u.UIButton(this.j,{name:"send-message",icon:{name:"send"},variant:"initial",size:"middle"}),this.stopButton=new u.UIButton(this.j,{name:"abort-message",icon:{name:"cancel"},variant:"default",size:"middle"}),this.stopButton.container.style.display="none",i.appendChild(this.sendButton.container),i.appendChild(this.stopButton.container)}attachHandlers(){this.j.e.on(this.sendButton,"click",this.onSend),this.j.e.on(this.stopButton,"click",this.onStop),this.j.e.on(this.textarea.nativeInput,"keydown",t=>{let{sendShortcut:i,sendOnEnter:n}=this.options;if("Ctrl+Enter"===i&&t.ctrlKey&&"Enter"===t.key){t.preventDefault(),this.onSend();return}"Escape"===t.key?this.j.e.fire("cancelEditMessage.ai-assistant-pro"):"Enter"===t.key&&(n?t.shiftKey||(t.preventDefault(),this.onSend()):t.shiftKey&&(t.preventDefault(),this.onSend()))})}onSend(){var t;let i=null==(t=this.textarea)?void 0:t.value.trim();!i||this.isLoading||(this.j.e.fire("sendMessage.ai-assistant-pro",i),this.textarea&&(this.textarea.value="",this.textarea.nativeInput.focus()))}onStop(){this.j.e.fire("abortRequest.ai-assistant-pro")}setContexts(t){this.contexts=t,this.updateContextBadges()}updateContextBadges(){if(this.contextBadges.innerHTML="",0===this.contexts.length){this.contextBadges.style.display="none";return}this.contextBadges.style.display="",this.contexts.forEach((t,i)=>{let n=this.createContextBadge(t,i);this.contextBadges.appendChild(n)})}createContextBadge(t,i){let n=this.j.c.div(this.getFullElName("context-badge")),o=this.j.c.span(),r=t.html.replace(/<[^>]*>/g,"").substring(0,20);o.textContent=void 0!==t.blockIndex?`Block ${t.blockIndex}: ${r}...`:`${r}...`;let s=this.j.c.span(this.getFullElName("context-remove"));return s.textContent="\xd7",s.setAttribute("data-index",String(i)),this.j.e.on(s,"click",()=>{this.j.e.fire("removeContext.ai-assistant-pro",i)}),n.appendChild(o),n.appendChild(s),n}setLoading(t){this.isLoading=t;let{sendButton:i,stopButton:n,textarea:o}=this;(0,a.assert)(i&&n&&o,"Buttons must be initialized"),o.setMod("disabled",t),i.setMod("disabled",t),this.setMod("loading",t),t?(i.container.style.display="none",n.container.style.display=""):(i.container.style.display="",n.container.style.display="none")}focus(){var t;null==(t=this.textarea)||t.nativeInput.focus()}setValue(t){this.textarea&&(this.textarea.value=t)}getValue(){var t;return(null==(t=this.textarea)?void 0:t.value.trim())||""}destruct(){var t,i,n;null==(t=this.textarea)||t.destruct(),null==(i=this.sendButton)||i.destruct(),null==(n=this.stopButton)||n.destruct(),super.destruct()}constructor(t,i){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"textarea",void 0),(0,o._)(this,"sendButton",void 0),(0,o._)(this,"stopButton",void 0),(0,o._)(this,"contextBadges",void 0),(0,o._)(this,"contexts",void 0),(0,o._)(this,"isLoading",void 0),this.options=i,this.textarea=null,this.sendButton=null,this.stopButton=null,this.contexts=[],this.isLoading=!1}}(0,r.__decorate)([(0,s.watch)("input-row:click")],d.prototype,"onInputRowClick",null),(0,r.__decorate)([(0,s.hook)("ready")],d.prototype,"afterRender",null),(0,r.__decorate)([s.autobind],d.prototype,"onSend",null),(0,r.__decorate)([s.autobind],d.prototype,"onStop",null),d=(0,r.__decorate)([s.component],d)},27769:function(t,i,n){"use strict";n.d(i,{UIMainPanel:function(){return o.UIMainPanel}});var o=n(51251)},51251:function(t,i,n){"use strict";n.d(i,{UIMainPanel:function(){return v}});var o=n(77688),r=n(82749),s=n(31635),a=n(68365),l=n(63227),u=n(86563),c=n(93677),d=n(48705),h=n(55885),p=n(65478),f=n(2748),m=n(67510),g=n(62843),b=n(80870);class v extends m.UIElement{className(){return"UIMainPanel"}setParentView(t){var i,n,o,r,s,a;return null==(i=this.welcomeScreen)||i.setParentView(t),null==(n=this.conversationList)||n.setParentView(t),null==(o=this.messageList)||o.setParentView(t),null==(r=this.inputArea)||r.setParentView(t),null==(s=this.permissionRequest)||s.setParentView(t),null==(a=this.settingsButton)||a.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
273
+ </div>`}onInputRowClick(){if(this.textarea!==this.j.od.activeElement){var t;null==(t=this.textarea)||t.focus()}}afterRender(){this.contextBadges=this.getElm("context-badges"),this.createControls(),this.attachHandlers(),this.autosize()}autosize(){var t;let i=null==(t=this.textarea)?void 0:t.nativeInput;i&&(i.style.height="auto",i.style.height=`${Math.min(i.scrollHeight,160)}px`,i.style.overflowY=i.scrollHeight>160?"auto":"hidden")}createControls(){let t=this.getElm("textarea-wrapper"),i=this.getElm("buttons");this.textarea=new d.UITextArea(this.j,{name:"message",placeholder:this.options.placeholderText,resizable:!1}),t.appendChild(this.textarea.container),this.sendButton=new c.UIButton(this.j,{name:"send-message",icon:{name:"send"},variant:"initial",size:"middle"}),this.stopButton=new c.UIButton(this.j,{name:"abort-message",icon:{name:"cancel"},variant:"default",size:"middle"}),this.stopButton.container.style.display="none",this.options.voiceInputEnabled&&(this.voiceButton=new s.VoiceInputButton(this.j,{url:this.options.voiceInputUrl,apiKey:this.options.voiceInputApiKey,defaultModel:this.options.voiceInputDefaultModel,language:this.options.voiceInputLanguage,silenceTimeoutMs:this.options.voiceInputSilenceTimeoutMs,autoSendSilenceMs:this.options.voiceInputAutoSendSilenceMs,api:this.options.voiceInputApi},{getValue:()=>{var t,i;return null!=(t=null==(i=this.textarea)?void 0:i.nativeInput.value)?t:""},setValue:(t,i)=>{if(this.textarea){if(this.textarea.value=t,void 0!==i){let t=this.textarea.nativeInput;t.selectionStart=i,t.selectionEnd=i}this.autosize()}},getSelection:()=>{var t,i,n;let o=null==(n=this.textarea)?void 0:n.nativeInput;if(!o)return{start:0,end:0};let r=o.value.length;return{start:null!=(t=o.selectionStart)?t:r,end:null!=(i=o.selectionEnd)?i:r}},focus:()=>this.focus(),send:()=>this.onSend()}),i.appendChild(this.voiceButton.container)),i.appendChild(this.sendButton.container),i.appendChild(this.stopButton.container)}attachHandlers(){this.j.e.on(this.sendButton,"click",this.onSend),this.j.e.on(this.stopButton,"click",this.onStop),this.j.e.on(this.textarea.nativeInput,"input",()=>this.autosize()),this.j.e.on(this.textarea.nativeInput,"keydown",t=>{let{sendShortcut:i,sendOnEnter:n}=this.options;if("Ctrl+Enter"===i&&t.ctrlKey&&"Enter"===t.key){t.preventDefault(),this.onSend();return}"Escape"===t.key?this.j.e.fire("cancelEditMessage.ai-assistant-pro"):"Enter"===t.key&&(n?t.shiftKey||(t.preventDefault(),this.onSend()):t.shiftKey&&(t.preventDefault(),this.onSend()))})}onSend(){var t;let i=null==(t=this.textarea)?void 0:t.value.trim();!i||this.isLoading||(this.j.e.fire("sendMessage.ai-assistant-pro",i),this.textarea&&(this.textarea.value="",this.autosize(),this.textarea.nativeInput.focus()))}onStop(){this.j.e.fire("abortRequest.ai-assistant-pro")}setContexts(t){this.contexts=t,this.updateContextBadges()}updateContextBadges(){if(this.contextBadges.innerHTML="",0===this.contexts.length){this.contextBadges.style.display="none";return}this.contextBadges.style.display="",this.contexts.forEach((t,i)=>{let n=this.createContextBadge(t,i);this.contextBadges.appendChild(n)})}createContextBadge(t,i){let n=this.j.c.div(this.getFullElName("context-badge")),o=this.j.c.span(),r=t.html.replace(/<[^>]*>/g,"").substring(0,20);o.textContent=void 0!==t.blockIndex?`Block ${t.blockIndex}: ${r}...`:`${r}...`;let s=this.j.c.span(this.getFullElName("context-remove"));return s.textContent="\xd7",s.setAttribute("data-index",String(i)),this.j.e.on(s,"click",()=>{this.j.e.fire("removeContext.ai-assistant-pro",i)}),n.appendChild(o),n.appendChild(s),n}setLoading(t){this.isLoading=t;let{sendButton:i,stopButton:n,textarea:o}=this;(0,l.assert)(i&&n&&o,"Buttons must be initialized"),o.setMod("disabled",t),i.setMod("disabled",t),this.setMod("loading",t),t?(i.container.style.display="none",n.container.style.display=""):(i.container.style.display="",n.container.style.display="none")}focus(){var t;null==(t=this.textarea)||t.nativeInput.focus()}setValue(t){this.textarea&&(this.textarea.value=t,this.autosize())}getValue(){var t;return(null==(t=this.textarea)?void 0:t.value.trim())||""}destruct(){var t,i,n,o;null==(t=this.textarea)||t.destruct(),null==(i=this.sendButton)||i.destruct(),null==(n=this.stopButton)||n.destruct(),null==(o=this.voiceButton)||o.destruct(),super.destruct()}constructor(t,i){super(t),(0,o._)(this,"options",void 0),(0,o._)(this,"textarea",void 0),(0,o._)(this,"sendButton",void 0),(0,o._)(this,"stopButton",void 0),(0,o._)(this,"voiceButton",void 0),(0,o._)(this,"contextBadges",void 0),(0,o._)(this,"contexts",void 0),(0,o._)(this,"isLoading",void 0),this.options=i,this.textarea=null,this.sendButton=null,this.stopButton=null,this.voiceButton=null,this.contexts=[],this.isLoading=!1}}(0,r.__decorate)([(0,a.watch)("input-row:click")],h.prototype,"onInputRowClick",null),(0,r.__decorate)([(0,a.hook)("ready")],h.prototype,"afterRender",null),(0,r.__decorate)([a.autobind],h.prototype,"onSend",null),(0,r.__decorate)([a.autobind],h.prototype,"onStop",null),h=(0,r.__decorate)([a.component],h)},27769:function(t,i,n){"use strict";n.d(i,{UIMainPanel:function(){return o.UIMainPanel}});var o=n(51251)},51251:function(t,i,n){"use strict";n.d(i,{UIMainPanel:function(){return v}});var o=n(77688),r=n(82749),s=n(31635),a=n(68365),l=n(63227),u=n(86563),c=n(93677),d=n(48705),h=n(55885),p=n(65478),f=n(2748),m=n(67510),g=n(62843),b=n(80870);class v extends m.UIElement{className(){return"UIMainPanel"}setParentView(t){var i,n,o,r,s,a;return null==(i=this.welcomeScreen)||i.setParentView(t),null==(n=this.conversationList)||n.setParentView(t),null==(o=this.messageList)||o.setParentView(t),null==(r=this.inputArea)||r.setParentView(t),null==(s=this.permissionRequest)||s.setParentView(t),null==(a=this.settingsButton)||a.setParentView(t),super.setParentView(t)}render(){return`<div class="&__container">
274
274
  <div class="&__header">
275
275
  <div class="&__header-left"></div>
276
276
  <div class="&__header-title"></div>
@@ -305,7 +305,7 @@ ${s}`.trim();n?yield this.__executeQuickCommandSilent(u,s):yield this.__executeQ
305
305
  <div class="&__title">~Welcome to AI Assistant~</div>
306
306
  <div class="&__subtitle">~Start your first conversation~</div>
307
307
  <div class="&__tip">~Tip: Select text in editor to add context~</div>
308
- </div>`}}a=(0,o.__decorate)([r.component],a)},44864:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(56075),a=n(31635);n(53586);var l=n(83725),u=n(64199),c=n(82758),d=n(65478),h=n(2748),p=n(21537),f=n(50911),m=n(56917),g=n(2692);class b extends f.Plugin{get list(){let t=new l.Autocomplete(this.jodit);return t.setDisplayMode(this.jodit.o.autocomplete.displayMode),t}get popup(){let t=new m.Popup(this.jodit);return t.setMod("padding",!1),t.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&t.setMod("autocomplete-inline",!0),this.jodit.e.on(t,"beforeClose",()=>{this.list.currentSelection=0}),t}afterInit(t){t.e.on("select.autocomplete",i=>{let n=i.value;(0,p.isFunction)(i.insertValueRenderer)&&(n=i.insertValueRenderer(i)),h.Dom.isNode(n)||(n=t.createInside.fromHTML(n)),(0,u.replaceTextLeftOfCursorAfterSpace)(t.s.range,n),this.j.s.setCursorAfter(n),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(t){this.sources.push(t)}unregisterAutocompleteSource(t){let i=this.sources.indexOf(t);-1!==i&&this.sources.splice(i,1)}static isControlKey(t){return t===c.KEY_DOWN||t===c.KEY_UP||t===c.KEY_ENTER||t===c.KEY_TAB}onKeyDown(t){return(0,o._)(function*(){var i,n;if(t.key===c.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:o}=this.j;if(b.isControlKey(t.key)||!o.isInsideArea||!o.isCollapsed)return;let r=(null==(i=this.j.s.sel)?void 0:i.rangeCount)?null==(n=this.j.s.sel)?void 0:n.getRangeAt(0):null,s=r&&(0,u.getTextLeftOfCursor)(r).split(" ").pop();if(s&&(0,p.trim)(s).length){let t=yield this.onAutoComplete(s);if(t.length)return this.openPopup(t)}this.popup.isOpened&&this.popup.close()}).call(this)}onKeyControlDown(t){if(this.popup.isOpened&&b.isControlKey(t.key)){switch(t.key){case c.KEY_DOWN:this.list.selectNext();break;case c.KEY_UP:this.list.selectPrevious();break;case c.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(t.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}onAutoComplete(t){return(0,o._)(function*(){let i=[];return yield Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(n=>(0,o._)(function*(){i.push(...yield this.resolveFeed(t,n))}).call(this))),i}).call(this)}resolveFeed(t,i,n){return(0,o._)(function*(){let o;if((0,p.isPromise)(i)&&(i=yield i),(0,p.isFunction)(i))o=yield i(t);else if((0,p.isArray)(i)){let n=i,{isMatchedQuery:r}=this.j.o.autocomplete;o=n.filter(i=>(0,p.isString)(i)?r(t,i):r(t,i.value)).map(t=>(0,p.isString)(t)?{title:t,value:t}:t)}else o=yield this.resolveFeed(t,i.feed,i);if(this.j.isDestructed)return[];if(o&&(0,p.isArray)(o)){let{itemRenderer:t,insertValueRenderer:i,maxItems:r}=this.j.o.autocomplete;return(o=o.map(o=>{var r,a;return(0,s._)({itemRenderer:null!=(r=null==n?void 0:n.itemRenderer)?r:t,insertValueRenderer:null!=(a=null==n?void 0:n.insertValueRenderer)?a:i},o)})).slice(0,r)}return[]}).call(this)}openPopup(t){this.list.build(t),this.popup.open(()=>{let{j:t}=this,i=t.s.range.getBoundingClientRect(),n={left:i.left,top:i.top,height:i.height,width:i.width};if(t.o.iframe&&t.iframe){let i=(0,p.position)(t.iframe,t);n.top+=i.top,n.left+=i.left}return n})}beforeDestruct(t){t.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...t){super(...t),(0,r._)(this,"hasStyle",!g.JoditPro.fatMode),(0,r._)(this,"sources",[])}}(0,r._)(b,"requires",["enter","license"]),(0,a.__decorate)([d.cache],b.prototype,"list",null),(0,a.__decorate)([d.cache],b.prototype,"popup",null),(0,a.__decorate)([d.autobind],b.prototype,"registerAutocompleteSource",null),(0,a.__decorate)([d.autobind],b.prototype,"unregisterAutocompleteSource",null),(0,a.__decorate)([(0,d.debounce)()],b.prototype,"onKeyDown",null),(0,a.__decorate)([d.autobind],b.prototype,"onKeyControlDown",null),(0,a.__decorate)([d.autobind],b.prototype,"onEnter",null),(0,a.__decorate)([d.autobind],b.prototype,"onAutoComplete",null),(0,a.__decorate)([d.autobind],b.prototype,"resolveFeed",null),g.JoditPro.plugins.add("autocomplete",b)},53586:function(t,i,n){"use strict";n(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(t,i)=>0===i.toLowerCase().indexOf(t.toLowerCase()),itemRenderer:t=>{var i;return null!=(i=t.title)?i:t.value},insertValueRenderer:t=>t.value+"&nbsp;"}},64199:function(t,i,n){"use strict";n.d(i,{getTextLeftOfCursor:function(){return r},replaceTextLeftOfCursorAfterSpace:function(){return s}});var o=n(2748);function r(t){var i,n,r,s;let{startContainer:a,startOffset:l}=t;if(o.Dom.isText(a))return null!=(i=null==(n=a.nodeValue)?void 0:n.substr(0,l))?i:"";let u=a.childNodes[l];if(!u)return"";if(o.Dom.isText(u))return null!=(r=u.nodeValue)?r:"";let c=o.Dom.findNotEmptyNeighbor(u,!0,a);return o.Dom.isText(c)&&null!=(s=u.nodeValue)?s:""}function s(t,i){var n,r,s;let{startContainer:a,startOffset:l}=t;if(!o.Dom.isText(a)&&(a=a.childNodes[l-1],o.Dom.isText(a)&&(l=null!=(n=null==(r=a.nodeValue)?void 0:r.length)?n:0)),o.Dom.isText(a)){let n=null!=(s=a.nodeValue)?s:"",o=n.substring(0,l),r=n.substring(l),u=o.split(" ");u[u.length-1]="";let c=u.join(" ");a.nodeValue=c+r,t.setStart(a,c.length),t.insertNode(i);return}}},83725:function(t,i,n){"use strict";n.d(i,{Autocomplete:function(){return c}});var o=n(82749),r=n(31635),s=n(31356),a=n(35934),l=n(65478),u=n(62405);class c extends u.UIGroup{className(){return"Autocomplete"}setDisplayMode(t){this.displayMode=t,this.setMod("displayMode",t)}onChangeSelection(){this.elements.forEach(t=>{t.setMod("active",!1),t.showShortcut(!1)});let t=this.elements[this.currentSelection];t&&(t.setMod("active",!0),"inline"===this.displayMode&&t.showShortcut(!0),t.container.scrollIntoView(!1))}build(t){var i;let n=null==(i=this.elements[this.currentSelection])?void 0:i.item.value,o=t=>t.value,r=s.ListReconciler.reconcile(this.__previousList,t,{getId:o}),l=new Set;r.toRemove.forEach(t=>{let i=o(t);if(l.has(i))return;l.add(i);let n=this.itemsMap.get(i);n&&(-1!==this.elements.indexOf(n)&&(this.remove(n),n.destruct()),this.itemsMap.delete(t.value))}),r.toCreate.forEach(i=>{let n=o(i);if(l.has(n))return;l.add(n);let r=new a.AutocompleteItem(this.jodit,i,i=>{this.currentSelection=t.findIndex(t=>o(t)===i),this.select()});this.itemsMap.set(n,r);let s=t.indexOf(i);this.append(r,s)}),r.toUpdate.forEach(({newItem:t,index:i})=>{let n=o(t);if(l.has(n))return;l.add(n);let r=this.itemsMap.get(n);r&&(r.item=t,this.elements.indexOf(r)!==i&&i<this.elements.length&&(this.remove(r),this.append(r,i)))});let u=this.currentSelection;this.currentSelection=Math.max(0,t.findIndex(t=>o(t)===n)),u===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...t]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...t){super(...t),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),(0,o._)(this,"displayMode","list"),(0,o._)(this,"__previousList",[]),(0,o._)(this,"itemsMap",new Map)}}(0,r.__decorate)([(0,l.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,r.__decorate)([l.component],c)},35934:function(t,i,n){"use strict";n.d(i,{AutocompleteItem:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(27613),l=n(48538);class u extends l.UIElement{className(){return"AutocompleteItem"}showShortcut(t){if(t&&!this.shortcutElm){let t=this.j.c.element("span");t.className="jodit-autocomplete-item__shortcut",t.innerText="tab",this.container.appendChild(t),this.shortcutElm=t}else!t&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(t){t.preventDefault(),t.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(t,i,n){super(t),(0,o._)(this,"item",void 0),(0,o._)(this,"onClick",void 0),(0,o._)(this,"value",void 0),(0,o._)(this,"shortcutElm",void 0),this.item=i,this.onClick=n,this.value="",this.shortcutElm=null;const{container:r}=this;if(this.value=i.value,(0,a.isFunction)(i.itemRenderer)){const t=i.itemRenderer(i);(0,a.isString)(t)?r.innerHTML=t:r.appendChild(t)}else{var s;r.innerText=null!=(s=i.title)?s:i.value}}}(0,r.__decorate)([(0,s.watch)("container:mousedown container:touchstart")],u.prototype,"onClickPrevent",null),(0,r.__decorate)([(0,s.watch)("container:click")],u.prototype,"onClickHandler",null),u=(0,r.__decorate)([s.component],u)},61328:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(31635);n(57056);var a=n(29243),l=n(64262),u=n(65478),c=n(50911),d=n(67510),h=n(2692);class p extends c.Plugin{afterInit(t){t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});let i=()=>{this.timeout=t.async.setTimeout(()=>{this.onSaveBackup(),i()},1e3*t.o.backup.interval)};i(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",()=>{this.onSaveBackup()})}prepareDialog(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()}onSaveBackup(){this.__storage.add({created:new Date,html:this.j.value})}onOpenBackupDialog(){return(0,o._)(function*(){this.prepareDialog();let{__dialog:t}=this;if(!t)return;t.open().setModal(!0);let i=yield this.__storage.items();this.__box.build([{created:new Date,html:this.j.value},...i]),t.calcAutoSize(),t.setPosition()}).call(this)}onSelectItem(t){var i;null==(i=this.__dialog)||i.close(),this.j.value=t.html,this.j.s.focus()}addButtonsToDialog(){var t;let{jodit:i}=this,n=(0,d.Button)(i,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),o=(0,d.Button)(i,{variant:"secondary",tabIndex:0,text:"Cancel"}),r=(0,d.Button)(i,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});n.onAction(()=>{this.__box.chooseSelected()}),o.onAction(()=>{var t;null==(t=this.__dialog)||t.close()}),r.onAction(()=>{i.confirm("Are you sure?",void 0,t=>{if(t){var i;this.__storage.clear(),null==(i=this.__dialog)||i.close()}})});let s=new d.UIBlock(i,[r,o,n]);s.container.style.margin="0",s.container.style.justifyContent="flex-end",s.container.style.width="100%",null==(t=this.__dialog)||t.setFooter(s)}beforeDestruct(){var t;let{j:i}=this;i.async.clearTimeout(this.timeout),i.e.off(this.__box,"choose",this.onSelectItem).off(i.ow,"beforeunload.backup"),this.__box.destruct(),null==(t=this.__dialog)||t.destruct()}constructor(...t){var i;super(...t),(0,r._)(this,"hasStyle",!h.JoditPro.fatMode),(0,r._)(this,"buttons",[{name:"backup.restore",group:"history"}]),(0,r._)(this,"__box",new l.UIBackupBox(this.j)),(0,r._)(this,"__dialog",null),(0,r._)(this,"__storage",null!=(i=this.jodit.o.backup.remoteStore)?i:new a.DefaultStorage(this.jodit)),(0,r._)(this,"timeout",0)}}(0,r._)(p,"requires",["license"]),(0,s.__decorate)([u.autobind],p.prototype,"onSaveBackup",null),(0,s.__decorate)([u.autobind],p.prototype,"onOpenBackupDialog",null),(0,s.__decorate)([u.autobind],p.prototype,"onSelectItem",null),h.JoditPro.plugins.add("backup",p)},57056:function(t,i,n){"use strict";var o=n(68583),r=n.n(o),s=n(29402),a=n(6441),l=n(580),u=n(12153);a.Config.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},a.Config.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec(t){t.execCommand("openBackupDialog")}}},u.Icon.set("restore",r()),(0,l.extendLang)(s)},29402:function(t,i,n){"use strict";n.r(i)},29243:function(t,i,n){"use strict";n.d(i,{DefaultStorage:function(){return s}});var o=n(77688),r=n(82749);class s{add(t){return(0,o._)(function*(){if(!t.html.trim().length)return!1;let i=this.jodit.storage.get(this.key)||[];return!i.find(i=>i.html===t.html)&&(i.unshift(t),i.length>this.jodit.o.backup.limit&&(i.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,i),!1)}).call(this)}items(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}clear(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}constructor(t){(0,r._)(this,"jodit",void 0),(0,r._)(this,"key",void 0),this.jodit=t,this.key="backup.default.storage"}}},64262:function(t,i,n){"use strict";n.d(i,{UIBackupBox:function(){return u}});var o=n(82749),r=n(31635),s=n(6183),a=n(65478),l=n(48538);class u extends l.UIElement{className(){return"UIBackupBox"}build(t){this.preview.innerHTML="",this.list.build(t)}destruct(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),super.destruct()}onSelectItem(t){this.latestSelected=t,this.preview.innerHTML=t.html||`<div class="${this.getFullElName("empty")}">${this.j.i18n("Empty")}</div>`}onChooseItem(t){this.j.e.fire(this,"choose",t)}chooseSelected(){this.onChooseItem(this.latestSelected)}constructor(t){super(t),(0,o._)(this,"list",new s.UIBackupList(this.j)),(0,o._)(this,"preview",this.j.c.div(this.getFullElName("preview"))),(0,o._)(this,"latestSelected",void 0),this.container.appendChild(this.list.container),this.container.appendChild(this.preview),this.list.container.classList.add(this.getFullElName("list")),t.e.on(this.list,"select",this.onSelectItem).on(this.list,"choose",this.onChooseItem)}}(0,r.__decorate)([a.autobind],u.prototype,"onSelectItem",null),(0,r.__decorate)([a.autobind],u.prototype,"onChooseItem",null),u=(0,r.__decorate)([a.component],u)},38512:function(t,i,n){"use strict";n.d(i,{UIBackupItem:function(){return a}});var o=n(82749),r=n(21537),s=n(67510);class a extends s.UIElement{className(){return"UIBackupItem"}formatDate(t){let i=new Date,n=(0,r.isString)(t)?new Date(t):t,o=(i.getTime()-n.getTime())/1e3;return(0,r.isFunction)(this.j.o.backup.formatDate)?this.j.o.backup.formatDate(n):o<.2?this.j.i18n("Current"):o<60?this.j.i18n("Less minute"):o<=3600?this.j.i18n("%s minutes ago",Math.floor(o/60)):o<=86400?this.j.i18n("%s hours ago",Math.floor(o/3600)):`${n.toDateString()} ${n.toLocaleTimeString()}`}focus(){this.container.focus()}constructor(t,i){super(t),(0,o._)(this,"data",void 0),this.data=i,this.container.innerHTML=this.formatDate(i.created),(0,r.attr)(this.container,"tabIndex",0)}}},6183:function(t,i,n){"use strict";n.d(i,{UIBackupList:function(){return d}});var o=n(82749),r=n(31635),s=n(38512),a=n(82758),l=n(65478),u=n(21537),c=n(67510);class d extends c.UIGroup{className(){return"UIBackupList"}createContainer(t){let i=super.createContainer(t);return(0,u.attr)(i,"tabIndex","-1"),i}build(t){this.clear(),t.forEach((t,i)=>{let n=new s.UIBackupItem(this.jodit,t);this.append(n),this.j.e.on(n.container,"focus",()=>this.onSelect(i)).on(n.container,"click",()=>this.onSelect(i)).on(n.container,"dblclick",()=>this.onChoose(i))}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}onChangeCurrentSelection(t,i,n){var o,r,s;null==(o=this.elements[i])||o.setMod("active",!1),null==(r=this.elements[n])||r.setMod("active",!0),null==(s=this.elements[n])||s.focus(),this.j.e.fire(this,"select",this.elements[n].data)}onSelect(t){this.currentSelection=t}onChoose(t){this.j.e.fire(this,"choose",this.elements[null!=t?t:this.currentSelection].data)}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}constructor(t){super(t),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),t.e.on(this.container,"keydown",t=>{switch(t.key){case a.KEY_ENTER:t.preventDefault(),t.stopPropagation(),this.onChoose(this.currentSelection);break;case a.KEY_DOWN:this.selectNext();break;case a.KEY_UP:this.selectPrevious()}})}}(0,r.__decorate)([(0,l.watch)("currentSelection")],d.prototype,"onChangeCurrentSelection",null),(0,r.__decorate)([l.autobind],d.prototype,"onSelect",null),(0,r.__decorate)([l.autobind],d.prototype,"onChoose",null),d=(0,r.__decorate)([l.component],d)},45632:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(82158);var s=n(82520),a=n(35987),l=n(65478),u=n(2748),c=n(50911),d=n(62843),h=n(78584),p=n(2692);class f extends c.Plugin{afterInit(t){t.e.on("toggleButtonGenerator",this.toggleButtonGenerator).on("isButtonGeneratorOpened",()=>{var t;return null==(t=this.__dialog)?void 0:t.isOpened})}toggleButtonGenerator(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__ui=new a.UIButtonGenerator(this.__dialog),this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730,700)),t&&!u.Dom.isTag(t,new Set(["button","a"]))&&(t=void 0);let i=this.__ui,n=this.__dialog;n.isOpened?n.close():(t&&s.UIGButton.extractStyle(i.state,t),i.target=t,i.update(),n.setFooter([(0,d.Button)(n,"cancel","Cancel","default").onAction(()=>n.close()),(0,d.Button)(n,"ok",t?"Update":"Insert","primary").onAction(()=>{t||(t=this.j.createInside.element(i.state.href?"a":"button"),this.j.s.insertNode(t,!0,!1)),s.UIGButton.applyStyle(i.state,t),t.className=i.state.className||"",this.jodit.e.fire("synchro"),n.close()})]).open())}onDblClick(t){u.Dom.isTag(t.target,"button")&&this.toggleButtonGenerator(t.target)}beforeDestruct(t){var i;null==(i=this.__dialog)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"form",name:"buttonGenerator"}]),(0,o._)(this,"__dialog",void 0),(0,o._)(this,"__ui",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([l.autobind],f.prototype,"toggleButtonGenerator",null),(0,r.__decorate)([(0,l.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("button-generator",f)},82158:function(t,i,n){"use strict";var o=n(34586),r=n.n(o),s=n(6441),a=n(68345);s.Config.prototype.controls.buttonGenerator={tooltip:"Button generator",icon:r(),isActive(t){return!!t.e.fire("isButtonGeneratorOpened")},exec:(t,i)=>{t.e.fire("toggleButtonGenerator",i)}},s.Config.prototype.popup.button=["buttonGenerator"],(0,a.isArray)(s.Config.prototype.popup.a)&&s.Config.prototype.popup.a.push("buttonGenerator")},82520:function(t,i,n){"use strict";n.d(i,{UIGButton:function(){return p}});var o=n(82749),r=n(56075),s=n(11886),a=n(31635),l=n(65478),u=n(21537),c=n(27613),d=n(38837),h=n(67510);class p extends h.UIElement{className(){return"UIGButton"}__updateStyles(){let{style:t}=this,i=this.getElm("button");(0,d.assert)(null!=i,"button element does not exist");let n=this.getElm("wrapper");(0,d.assert)(null!=n,"wrapper element does not exist"),n.style.backgroundColor=t.previewBgColor,p.applyStyle(t,i)}static applyStyle(t,i){let n=t=>(0,c.isString)(t)?t:t+"px";i.innerText=t.text||"css",i.setAttribute("href",t.href),(0,u.css)(i,{background:t.solid?null:`linear-gradient(to bottom, ${t.bgStart} 5%, ${t.bgEnd} 100%)`,backgroundColor:t.bgStart,borderRadius:n(t.borderRadius),border:`${n(t.borderSize)} solid ${t.borderColor}`,display:"inline-block",cursor:"pointer",color:t.fontColor,fontFamily:t.fontFamily,fontSize:n(t.fontSize),fontWeight:t.fontWeight?"bold":null,fontStyle:t.fontItalic?"italic":null,padding:`${n(t.paddingY)} ${n(t.paddingX)}`,textDecoration:"none"}),(0,u.css)(i,{textShadow:t.textShadow?[t.textShadowOffsetX,t.textShadowOffsetY,t.textShadowBlurRadius,t.textShadowColor].map(n).join(" "):null}),(0,u.css)(i,{boxShadow:t.boxShadow?[t.boxShadowInset?"inset":"",t.boxShadowOffsetX,t.boxShadowOffsetY,t.boxShadowBlurRadius,t.boxShadowSpreadRadius,t.boxShadowColor].map(n).join(" "):null})}update(){this.__updateStyles()}render(){return`<div>
308
+ </div>`}}a=(0,o.__decorate)([r.component],a)},88710:function(t,i,n){"use strict";n.d(i,{MicrophoneStreamer:function(){return s}});var o=n(77688),r=n(82749);class s{start(){return(0,o._)(function*(){if(this.running=!0,this.stream=yield navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0}}),!this.running)return void this.stopTracks();let t=new AudioContext;if("suspended"===t.state&&(yield t.resume()),!this.running)return void t.close();let i=t.createMediaStreamSource(this.stream),n=t.createScriptProcessor(4096,1,1),o=t.createGain();o.gain.value=0,n.onaudioprocess=t=>{if(!this.running)return;let i=function(t){let i=new Int16Array(t.length);for(let n=0;n<t.length;n++){let o=Math.max(-1,Math.min(1,t[n]));i[n]=o<0?32768*o:32767*o}return i}(function(t,i){if(24e3>=i)return t;let n=i/24e3,o=Math.round(t.length/n),r=new Float32Array(o);for(let i=0;o>i;i++)r[i]=t[Math.min(Math.round(i*n),t.length-1)];return r}(t.inputBuffer.getChannelData(0),t.inputBuffer.sampleRate));this.onFrame(i)},i.connect(n),n.connect(o),o.connect(t.destination),this.audioCtx=t,this.source=i,this.processor=n,this.zeroGain=o}).call(this)}stop(){var t,i;this.running=!1,this.processor&&(this.processor.onaudioprocess=null,this.processor.disconnect(),this.processor=null),null==(t=this.zeroGain)||t.disconnect(),null==(i=this.source)||i.disconnect(),this.zeroGain=null,this.source=null,this.audioCtx&&(this.audioCtx.close(),this.audioCtx=null),this.stopTracks()}stopTracks(){var t;null==(t=this.stream)||t.getTracks().forEach(t=>t.stop()),this.stream=null}constructor(t){(0,r._)(this,"onFrame",void 0),(0,r._)(this,"stream",void 0),(0,r._)(this,"audioCtx",void 0),(0,r._)(this,"processor",void 0),(0,r._)(this,"source",void 0),(0,r._)(this,"zeroGain",void 0),(0,r._)(this,"running",void 0),this.onFrame=t,this.stream=null,this.audioCtx=null,this.processor=null,this.source=null,this.zeroGain=null,this.running=!1}}},66330:function(t,i,n){"use strict";n.d(i,{VoiceInputButton:function(){return l}});var o=n(82749),r=n(56075),s=n(20466),a=n(62843);class l{get container(){return this.button.container}setParentView(t){this.button.setParentView(t)}start(){let t,i={onInterim:t=>{this.clearAutoSend(),this.insertPhrase(t)},onFinal:t=>{this.insertPhrase(t),this.phraseActive=!1,this.scheduleAutoSend()},onError:()=>this.reset(),onEnd:()=>this.reset()};if(this.config.api)t=this.config.api(i);else{let{url:n,apiKey:o}=this.config;if(!n||!o)return;t=new s.VoiceTranscriber((0,r._)({url:n,apiKey:o,model:this.config.defaultModel,language:this.config.language,silenceMs:this.config.silenceTimeoutMs},i))}this.phraseActive=!1,this.engine=t,this.listening=!0,this.setActive(!0),t.start()}reset(){this.clearAutoSend(),this.setActive(!1),this.phraseActive=!1,this.listening=!1,this.engine=null,this.io.focus()}scheduleAutoSend(){this.clearAutoSend();let t=this.config.autoSendSilenceMs;null!=t&&(this.autoSendTimer=this.jodit.async.setTimeout(()=>{this.autoSendTimer=0,this.io.send()},t))}clearAutoSend(){this.autoSendTimer&&(this.jodit.async.clearTimeout(this.autoSendTimer),this.autoSendTimer=0)}setActive(t){this.button.container.classList.toggle("jodit-ai-voice-active",t)}insertPhrase(t){if(!this.phraseActive){this.phraseActive=!0;let{start:t,end:i}=this.io.getSelection(),n=this.io.getValue();this.before=n.slice(0,t),this.after=n.slice(i)}let i=(this.before.length>0&&!/\s$/.test(this.before)?" ":"")+t,n=this.before.length+i.length;this.io.setValue(this.before+i+this.after,n)}destruct(){var t;this.clearAutoSend(),this.jodit.e.off("sendMessage.ai-assistant-pro",this.onPromptSent),null==(t=this.engine)||t.stop(),this.engine=null,this.button.destruct()}constructor(t,i,n){(0,o._)(this,"jodit",void 0),(0,o._)(this,"config",void 0),(0,o._)(this,"io",void 0),(0,o._)(this,"button",void 0),(0,o._)(this,"engine",void 0),(0,o._)(this,"listening",void 0),(0,o._)(this,"phraseActive",void 0),(0,o._)(this,"before",void 0),(0,o._)(this,"after",void 0),(0,o._)(this,"autoSendTimer",void 0),(0,o._)(this,"onPromptSent",void 0),(0,o._)(this,"toggle",void 0),this.jodit=t,this.config=i,this.io=n,this.engine=null,this.listening=!1,this.phraseActive=!1,this.before="",this.after="",this.autoSendTimer=0,this.onPromptSent=()=>{this.phraseActive=!1},this.toggle=()=>{if(this.listening){var t;null==(t=this.engine)||t.stop(),this.reset();return}this.start()},this.button=new a.UIButton(t,{name:"voice-input",icon:{name:"microphone"},variant:"initial",size:"middle"}),this.button.container.setAttribute("title","Dictate"),this.button.container.setAttribute("data-ref","voiceInputButton"),this.jodit.e.on(this.button,"click",this.toggle),this.jodit.e.on("sendMessage.ai-assistant-pro",this.onPromptSent)}}},20466:function(t,i,n){"use strict";n.d(i,{VoiceTranscriber:function(){return s}});var o=n(82749),r=n(88710);class s{get isActive(){return this.running}start(){let t;if(this.running)return;this.running=!0;try{let i=new URL(this.options.url);i.searchParams.set("key",this.options.apiKey),this.options.model&&i.searchParams.set("model",this.options.model),this.options.language&&i.searchParams.set("language",this.options.language),void 0!==this.options.silenceMs&&i.searchParams.set("silence",String(this.options.silenceMs)),t=i.toString()}catch(t){this.fail("Invalid transcription URL");return}let i=new WebSocket(t);i.binaryType="arraybuffer",this.ws=i,i.addEventListener("message",t=>this.onMessage(t)),i.addEventListener("error",()=>this.fail("Transcription connection error")),i.addEventListener("close",()=>this.finish())}stop(){var t;this.running&&(this.running=!1,null==(t=this.streamer)||t.stop(),this.streamer=null,this.ws&&(this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING)&&this.ws.close())}onMessage(t){var i,n,o,r,s,a,l;let u;if("string"==typeof t.data){try{u=JSON.parse(t.data)}catch(t){return}switch(u.type){case"ready":null==(i=(n=this.options).onReady)||i.call(n),this.startAudio();break;case"delta":u.text&&(null==(o=(r=this.options).onInterim)||o.call(r,u.text));break;case"final":u.text&&(null==(s=(a=this.options).onFinal)||s.call(a,u.text));break;case"error":this.fail(null!=(l=u.message)?l:"Transcription error")}}}startAudio(){if(!this.running||this.streamer)return;let t=new r.MicrophoneStreamer(t=>{var i;(null==(i=this.ws)?void 0:i.readyState)===WebSocket.OPEN&&this.ws.send(t)});this.streamer=t,t.start().catch(()=>{this.fail("Microphone access denied")})}fail(t){var i,n;null==(i=(n=this.options).onError)||i.call(n,t),this.stop()}finish(){var t,i,n;let o=this.running;this.running=!1,null==(t=this.streamer)||t.stop(),this.streamer=null,o&&(null==(i=(n=this.options).onEnd)||i.call(n))}constructor(t){(0,o._)(this,"options",void 0),(0,o._)(this,"ws",void 0),(0,o._)(this,"streamer",void 0),(0,o._)(this,"running",void 0),this.options=t,this.ws=null,this.streamer=null,this.running=!1}}},49934:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(56075),a=n(31635);n(53586);var l=n(83725),u=n(64199),c=n(82758),d=n(65478),h=n(2748),p=n(21537),f=n(50911),m=n(56917),g=n(2692);class b extends f.Plugin{get list(){let t=new l.Autocomplete(this.jodit);return t.setDisplayMode(this.jodit.o.autocomplete.displayMode),t}get popup(){let t=new m.Popup(this.jodit);return t.setMod("padding",!1),t.setContent(this.list.container),"inline"===this.jodit.o.autocomplete.displayMode&&t.setMod("autocomplete-inline",!0),this.jodit.e.on(t,"beforeClose",()=>{this.list.currentSelection=0}),t}afterInit(t){t.e.on("select.autocomplete",i=>{let n=i.value;(0,p.isFunction)(i.insertValueRenderer)&&(n=i.insertValueRenderer(i)),h.Dom.isNode(n)||(n=t.createInside.fromHTML(n)),(0,u.replaceTextLeftOfCursorAfterSpace)(t.s.range,n),this.j.s.setCursorAfter(n),this.j.synchronizeValues(),this.popup.close()}).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource).on("unregisterAutocompleteSource.autocomplete",this.unregisterAutocompleteSource)}registerAutocompleteSource(t){this.sources.push(t)}unregisterAutocompleteSource(t){let i=this.sources.indexOf(t);-1!==i&&this.sources.splice(i,1)}static isControlKey(t){return t===c.KEY_DOWN||t===c.KEY_UP||t===c.KEY_ENTER||t===c.KEY_TAB}onKeyDown(t){return(0,o._)(function*(){var i,n;if(t.key===c.KEY_ESC){this.popup.isOpened&&this.popup.close();return}let{s:o}=this.j;if(b.isControlKey(t.key)||!o.isInsideArea||!o.isCollapsed)return;let r=(null==(i=this.j.s.sel)?void 0:i.rangeCount)?null==(n=this.j.s.sel)?void 0:n.getRangeAt(0):null,s=r&&(0,u.getTextLeftOfCursor)(r).split(" ").pop();if(s&&(0,p.trim)(s).length){let t=yield this.onAutoComplete(s);if(t.length)return this.openPopup(t)}this.popup.isOpened&&this.popup.close()}).call(this)}onKeyControlDown(t){if(this.popup.isOpened&&b.isControlKey(t.key)){switch(t.key){case c.KEY_DOWN:this.list.selectNext();break;case c.KEY_UP:this.list.selectPrevious();break;case c.KEY_TAB:this.list.select()}return this.j.e.stopPropagation(t.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}onAutoComplete(t){return(0,o._)(function*(){let i=[];return yield Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map(n=>(0,o._)(function*(){i.push(...yield this.resolveFeed(t,n))}).call(this))),i}).call(this)}resolveFeed(t,i,n){return(0,o._)(function*(){let o;if((0,p.isPromise)(i)&&(i=yield i),(0,p.isFunction)(i))o=yield i(t);else if((0,p.isArray)(i)){let n=i,{isMatchedQuery:r}=this.j.o.autocomplete;o=n.filter(i=>(0,p.isString)(i)?r(t,i):r(t,i.value)).map(t=>(0,p.isString)(t)?{title:t,value:t}:t)}else o=yield this.resolveFeed(t,i.feed,i);if(this.j.isDestructed)return[];if(o&&(0,p.isArray)(o)){let{itemRenderer:t,insertValueRenderer:i,maxItems:r}=this.j.o.autocomplete;return(o=o.map(o=>{var r,a;return(0,s._)({itemRenderer:null!=(r=null==n?void 0:n.itemRenderer)?r:t,insertValueRenderer:null!=(a=null==n?void 0:n.insertValueRenderer)?a:i},o)})).slice(0,r)}return[]}).call(this)}openPopup(t){this.list.build(t),this.popup.open(()=>{let{j:t}=this,i=t.s.range.getBoundingClientRect(),n={left:i.left,top:i.top,height:i.height,width:i.width};if(t.o.iframe&&t.iframe){let i=(0,p.position)(t.iframe,t);n.top+=i.top,n.left+=i.left}return n})}beforeDestruct(t){t.e.off(this.list).off(this.popup).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}constructor(...t){super(...t),(0,r._)(this,"hasStyle",!g.JoditPro.fatMode),(0,r._)(this,"sources",[])}}(0,r._)(b,"requires",["enter","license"]),(0,a.__decorate)([d.cache],b.prototype,"list",null),(0,a.__decorate)([d.cache],b.prototype,"popup",null),(0,a.__decorate)([d.autobind],b.prototype,"registerAutocompleteSource",null),(0,a.__decorate)([d.autobind],b.prototype,"unregisterAutocompleteSource",null),(0,a.__decorate)([(0,d.debounce)()],b.prototype,"onKeyDown",null),(0,a.__decorate)([d.autobind],b.prototype,"onKeyControlDown",null),(0,a.__decorate)([d.autobind],b.prototype,"onEnter",null),(0,a.__decorate)([d.autobind],b.prototype,"onAutoComplete",null),(0,a.__decorate)([d.autobind],b.prototype,"resolveFeed",null),g.JoditPro.plugins.add("autocomplete",b)},53586:function(t,i,n){"use strict";n(6441).Config.prototype.autocomplete={displayMode:"list",sources:[],maxItems:50,isMatchedQuery:(t,i)=>0===i.toLowerCase().indexOf(t.toLowerCase()),itemRenderer:t=>{var i;return null!=(i=t.title)?i:t.value},insertValueRenderer:t=>t.value+"&nbsp;"}},64199:function(t,i,n){"use strict";n.d(i,{getTextLeftOfCursor:function(){return r},replaceTextLeftOfCursorAfterSpace:function(){return s}});var o=n(2748);function r(t){var i,n,r,s;let{startContainer:a,startOffset:l}=t;if(o.Dom.isText(a))return null!=(i=null==(n=a.nodeValue)?void 0:n.substr(0,l))?i:"";let u=a.childNodes[l];if(!u)return"";if(o.Dom.isText(u))return null!=(r=u.nodeValue)?r:"";let c=o.Dom.findNotEmptyNeighbor(u,!0,a);return o.Dom.isText(c)&&null!=(s=u.nodeValue)?s:""}function s(t,i){var n,r,s;let{startContainer:a,startOffset:l}=t;if(!o.Dom.isText(a)&&(a=a.childNodes[l-1],o.Dom.isText(a)&&(l=null!=(n=null==(r=a.nodeValue)?void 0:r.length)?n:0)),o.Dom.isText(a)){let n=null!=(s=a.nodeValue)?s:"",o=n.substring(0,l),r=n.substring(l),u=o.split(" ");u[u.length-1]="";let c=u.join(" ");a.nodeValue=c+r,t.setStart(a,c.length),t.insertNode(i);return}}},83725:function(t,i,n){"use strict";n.d(i,{Autocomplete:function(){return c}});var o=n(82749),r=n(31635),s=n(31356),a=n(35934),l=n(65478),u=n(62405);class c extends u.UIGroup{className(){return"Autocomplete"}setDisplayMode(t){this.displayMode=t,this.setMod("displayMode",t)}onChangeSelection(){this.elements.forEach(t=>{t.setMod("active",!1),t.showShortcut(!1)});let t=this.elements[this.currentSelection];t&&(t.setMod("active",!0),"inline"===this.displayMode&&t.showShortcut(!0),t.container.scrollIntoView(!1))}build(t){var i;let n=null==(i=this.elements[this.currentSelection])?void 0:i.item.value,o=t=>t.value,r=s.ListReconciler.reconcile(this.__previousList,t,{getId:o}),l=new Set;r.toRemove.forEach(t=>{let i=o(t);if(l.has(i))return;l.add(i);let n=this.itemsMap.get(i);n&&(-1!==this.elements.indexOf(n)&&(this.remove(n),n.destruct()),this.itemsMap.delete(t.value))}),r.toCreate.forEach(i=>{let n=o(i);if(l.has(n))return;l.add(n);let r=new a.AutocompleteItem(this.jodit,i,i=>{this.currentSelection=t.findIndex(t=>o(t)===i),this.select()});this.itemsMap.set(n,r);let s=t.indexOf(i);this.append(r,s)}),r.toUpdate.forEach(({newItem:t,index:i})=>{let n=o(t);if(l.has(n))return;l.add(n);let r=this.itemsMap.get(n);r&&(r.item=t,this.elements.indexOf(r)!==i&&i<this.elements.length&&(this.remove(r),this.append(r,i)))});let u=this.currentSelection;this.currentSelection=Math.max(0,t.findIndex(t=>o(t)===n)),u===this.currentSelection&&this.onChangeSelection(),this.__previousList=[...t]}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}constructor(...t){super(...t),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),(0,o._)(this,"displayMode","list"),(0,o._)(this,"__previousList",[]),(0,o._)(this,"itemsMap",new Map)}}(0,r.__decorate)([(0,l.watch)("currentSelection")],c.prototype,"onChangeSelection",null),c=(0,r.__decorate)([l.component],c)},35934:function(t,i,n){"use strict";n.d(i,{AutocompleteItem:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(27613),l=n(48538);class u extends l.UIElement{className(){return"AutocompleteItem"}showShortcut(t){if(t&&!this.shortcutElm){let t=this.j.c.element("span");t.className="jodit-autocomplete-item__shortcut",t.innerText="tab",this.container.appendChild(t),this.shortcutElm=t}else!t&&this.shortcutElm&&(this.shortcutElm.remove(),this.shortcutElm=null)}onClickPrevent(t){t.preventDefault(),t.stopPropagation()}onClickHandler(){this.onClick(this.value)}constructor(t,i,n){super(t),(0,o._)(this,"item",void 0),(0,o._)(this,"onClick",void 0),(0,o._)(this,"value",void 0),(0,o._)(this,"shortcutElm",void 0),this.item=i,this.onClick=n,this.value="",this.shortcutElm=null;const{container:r}=this;if(this.value=i.value,(0,a.isFunction)(i.itemRenderer)){const t=i.itemRenderer(i);(0,a.isString)(t)?r.innerHTML=t:r.appendChild(t)}else{var s;r.innerText=null!=(s=i.title)?s:i.value}}}(0,r.__decorate)([(0,s.watch)("container:mousedown container:touchstart")],u.prototype,"onClickPrevent",null),(0,r.__decorate)([(0,s.watch)("container:click")],u.prototype,"onClickHandler",null),u=(0,r.__decorate)([s.component],u)},61328:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(31635);n(57056);var a=n(29243),l=n(64262),u=n(65478),c=n(50911),d=n(67510),h=n(2692);class p extends c.Plugin{afterInit(t){t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});let i=()=>{this.timeout=t.async.setTimeout(()=>{this.onSaveBackup(),i()},1e3*t.o.backup.interval)};i(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",()=>{this.onSaveBackup()})}prepareDialog(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()}onSaveBackup(){this.__storage.add({created:new Date,html:this.j.value})}onOpenBackupDialog(){return(0,o._)(function*(){this.prepareDialog();let{__dialog:t}=this;if(!t)return;t.open().setModal(!0);let i=yield this.__storage.items();this.__box.build([{created:new Date,html:this.j.value},...i]),t.calcAutoSize(),t.setPosition()}).call(this)}onSelectItem(t){var i;null==(i=this.__dialog)||i.close(),this.j.value=t.html,this.j.s.focus()}addButtonsToDialog(){var t;let{jodit:i}=this,n=(0,d.Button)(i,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),o=(0,d.Button)(i,{variant:"secondary",tabIndex:0,text:"Cancel"}),r=(0,d.Button)(i,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});n.onAction(()=>{this.__box.chooseSelected()}),o.onAction(()=>{var t;null==(t=this.__dialog)||t.close()}),r.onAction(()=>{i.confirm("Are you sure?",void 0,t=>{if(t){var i;this.__storage.clear(),null==(i=this.__dialog)||i.close()}})});let s=new d.UIBlock(i,[r,o,n]);s.container.style.margin="0",s.container.style.justifyContent="flex-end",s.container.style.width="100%",null==(t=this.__dialog)||t.setFooter(s)}beforeDestruct(){var t;let{j:i}=this;i.async.clearTimeout(this.timeout),i.e.off(this.__box,"choose",this.onSelectItem).off(i.ow,"beforeunload.backup"),this.__box.destruct(),null==(t=this.__dialog)||t.destruct()}constructor(...t){var i;super(...t),(0,r._)(this,"hasStyle",!h.JoditPro.fatMode),(0,r._)(this,"buttons",[{name:"backup.restore",group:"history"}]),(0,r._)(this,"__box",new l.UIBackupBox(this.j)),(0,r._)(this,"__dialog",null),(0,r._)(this,"__storage",null!=(i=this.jodit.o.backup.remoteStore)?i:new a.DefaultStorage(this.jodit)),(0,r._)(this,"timeout",0)}}(0,r._)(p,"requires",["license"]),(0,s.__decorate)([u.autobind],p.prototype,"onSaveBackup",null),(0,s.__decorate)([u.autobind],p.prototype,"onOpenBackupDialog",null),(0,s.__decorate)([u.autobind],p.prototype,"onSelectItem",null),h.JoditPro.plugins.add("backup",p)},57056:function(t,i,n){"use strict";var o=n(68583),r=n.n(o),s=n(29402),a=n(6441),l=n(580),u=n(12153);a.Config.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},a.Config.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec(t){t.execCommand("openBackupDialog")}}},u.Icon.set("restore",r()),(0,l.extendLang)(s)},29402:function(t,i,n){"use strict";n.r(i)},29243:function(t,i,n){"use strict";n.d(i,{DefaultStorage:function(){return s}});var o=n(77688),r=n(82749);class s{add(t){return(0,o._)(function*(){if(!t.html.trim().length)return!1;let i=this.jodit.storage.get(this.key)||[];return!i.find(i=>i.html===t.html)&&(i.unshift(t),i.length>this.jodit.o.backup.limit&&(i.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,i),!1)}).call(this)}items(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}clear(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}constructor(t){(0,r._)(this,"jodit",void 0),(0,r._)(this,"key",void 0),this.jodit=t,this.key="backup.default.storage"}}},64262:function(t,i,n){"use strict";n.d(i,{UIBackupBox:function(){return u}});var o=n(82749),r=n(31635),s=n(6183),a=n(65478),l=n(48538);class u extends l.UIElement{className(){return"UIBackupBox"}build(t){this.preview.innerHTML="",this.list.build(t)}destruct(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),super.destruct()}onSelectItem(t){this.latestSelected=t,this.preview.innerHTML=t.html||`<div class="${this.getFullElName("empty")}">${this.j.i18n("Empty")}</div>`}onChooseItem(t){this.j.e.fire(this,"choose",t)}chooseSelected(){this.onChooseItem(this.latestSelected)}constructor(t){super(t),(0,o._)(this,"list",new s.UIBackupList(this.j)),(0,o._)(this,"preview",this.j.c.div(this.getFullElName("preview"))),(0,o._)(this,"latestSelected",void 0),this.container.appendChild(this.list.container),this.container.appendChild(this.preview),this.list.container.classList.add(this.getFullElName("list")),t.e.on(this.list,"select",this.onSelectItem).on(this.list,"choose",this.onChooseItem)}}(0,r.__decorate)([a.autobind],u.prototype,"onSelectItem",null),(0,r.__decorate)([a.autobind],u.prototype,"onChooseItem",null),u=(0,r.__decorate)([a.component],u)},38512:function(t,i,n){"use strict";n.d(i,{UIBackupItem:function(){return a}});var o=n(82749),r=n(21537),s=n(67510);class a extends s.UIElement{className(){return"UIBackupItem"}formatDate(t){let i=new Date,n=(0,r.isString)(t)?new Date(t):t,o=(i.getTime()-n.getTime())/1e3;return(0,r.isFunction)(this.j.o.backup.formatDate)?this.j.o.backup.formatDate(n):o<.2?this.j.i18n("Current"):o<60?this.j.i18n("Less minute"):o<=3600?this.j.i18n("%s minutes ago",Math.floor(o/60)):o<=86400?this.j.i18n("%s hours ago",Math.floor(o/3600)):`${n.toDateString()} ${n.toLocaleTimeString()}`}focus(){this.container.focus()}constructor(t,i){super(t),(0,o._)(this,"data",void 0),this.data=i,this.container.innerHTML=this.formatDate(i.created),(0,r.attr)(this.container,"tabIndex",0)}}},6183:function(t,i,n){"use strict";n.d(i,{UIBackupList:function(){return d}});var o=n(82749),r=n(31635),s=n(38512),a=n(82758),l=n(65478),u=n(21537),c=n(67510);class d extends c.UIGroup{className(){return"UIBackupList"}createContainer(t){let i=super.createContainer(t);return(0,u.attr)(i,"tabIndex","-1"),i}build(t){this.clear(),t.forEach((t,i)=>{let n=new s.UIBackupItem(this.jodit,t);this.append(n),this.j.e.on(n.container,"focus",()=>this.onSelect(i)).on(n.container,"click",()=>this.onSelect(i)).on(n.container,"dblclick",()=>this.onChoose(i))}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}onChangeCurrentSelection(t,i,n){var o,r,s;null==(o=this.elements[i])||o.setMod("active",!1),null==(r=this.elements[n])||r.setMod("active",!0),null==(s=this.elements[n])||s.focus(),this.j.e.fire(this,"select",this.elements[n].data)}onSelect(t){this.currentSelection=t}onChoose(t){this.j.e.fire(this,"choose",this.elements[null!=t?t:this.currentSelection].data)}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}constructor(t){super(t),(0,o._)(this,"elements",[]),(0,o._)(this,"currentSelection",-1),t.e.on(this.container,"keydown",t=>{switch(t.key){case a.KEY_ENTER:t.preventDefault(),t.stopPropagation(),this.onChoose(this.currentSelection);break;case a.KEY_DOWN:this.selectNext();break;case a.KEY_UP:this.selectPrevious()}})}}(0,r.__decorate)([(0,l.watch)("currentSelection")],d.prototype,"onChangeCurrentSelection",null),(0,r.__decorate)([l.autobind],d.prototype,"onSelect",null),(0,r.__decorate)([l.autobind],d.prototype,"onChoose",null),d=(0,r.__decorate)([l.component],d)},45632:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(82158);var s=n(82520),a=n(35987),l=n(65478),u=n(2748),c=n(50911),d=n(62843),h=n(78584),p=n(2692);class f extends c.Plugin{afterInit(t){t.e.on("toggleButtonGenerator",this.toggleButtonGenerator).on("isButtonGeneratorOpened",()=>{var t;return null==(t=this.__dialog)?void 0:t.isOpened})}toggleButtonGenerator(t){this.__dialog||(this.__dialog=new h.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__ui=new a.UIButtonGenerator(this.__dialog),this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730,700)),t&&!u.Dom.isTag(t,new Set(["button","a"]))&&(t=void 0);let i=this.__ui,n=this.__dialog;n.isOpened?n.close():(t&&s.UIGButton.extractStyle(i.state,t),i.target=t,i.update(),n.setFooter([(0,d.Button)(n,"cancel","Cancel","default").onAction(()=>n.close()),(0,d.Button)(n,"ok",t?"Update":"Insert","primary").onAction(()=>{t||(t=this.j.createInside.element(i.state.href?"a":"button"),this.j.s.insertNode(t,!0,!1)),s.UIGButton.applyStyle(i.state,t),t.className=i.state.className||"",this.jodit.e.fire("synchro"),n.close()})]).open())}onDblClick(t){u.Dom.isTag(t.target,"button")&&this.toggleButtonGenerator(t.target)}beforeDestruct(t){var i;null==(i=this.__dialog)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"form",name:"buttonGenerator"}]),(0,o._)(this,"__dialog",void 0),(0,o._)(this,"__ui",void 0)}}(0,o._)(f,"requires",["license","color-picker"]),(0,r.__decorate)([l.autobind],f.prototype,"toggleButtonGenerator",null),(0,r.__decorate)([(0,l.watch)(":dblclick")],f.prototype,"onDblClick",null),p.JoditPro.plugins.add("button-generator",f)},82158:function(t,i,n){"use strict";var o=n(34586),r=n.n(o),s=n(6441),a=n(68345);s.Config.prototype.controls.buttonGenerator={tooltip:"Button generator",icon:r(),isActive(t){return!!t.e.fire("isButtonGeneratorOpened")},exec:(t,i)=>{t.e.fire("toggleButtonGenerator",i)}},s.Config.prototype.popup.button=["buttonGenerator"],(0,a.isArray)(s.Config.prototype.popup.a)&&s.Config.prototype.popup.a.push("buttonGenerator")},82520:function(t,i,n){"use strict";n.d(i,{UIGButton:function(){return p}});var o=n(82749),r=n(56075),s=n(11886),a=n(31635),l=n(65478),u=n(21537),c=n(27613),d=n(38837),h=n(67510);class p extends h.UIElement{className(){return"UIGButton"}__updateStyles(){let{style:t}=this,i=this.getElm("button");(0,d.assert)(null!=i,"button element does not exist");let n=this.getElm("wrapper");(0,d.assert)(null!=n,"wrapper element does not exist"),n.style.backgroundColor=t.previewBgColor,p.applyStyle(t,i)}static applyStyle(t,i){let n=t=>(0,c.isString)(t)?t:t+"px";i.innerText=t.text||"css",i.setAttribute("href",t.href),(0,u.css)(i,{background:t.solid?null:`linear-gradient(to bottom, ${t.bgStart} 5%, ${t.bgEnd} 100%)`,backgroundColor:t.bgStart,borderRadius:n(t.borderRadius),border:`${n(t.borderSize)} solid ${t.borderColor}`,display:"inline-block",cursor:"pointer",color:t.fontColor,fontFamily:t.fontFamily,fontSize:n(t.fontSize),fontWeight:t.fontWeight?"bold":null,fontStyle:t.fontItalic?"italic":null,padding:`${n(t.paddingY)} ${n(t.paddingX)}`,textDecoration:"none"}),(0,u.css)(i,{textShadow:t.textShadow?[t.textShadowOffsetX,t.textShadowOffsetY,t.textShadowBlurRadius,t.textShadowColor].map(n).join(" "):null}),(0,u.css)(i,{boxShadow:t.boxShadow?[t.boxShadowInset?"inset":"",t.boxShadowOffsetX,t.boxShadowOffsetY,t.boxShadowBlurRadius,t.boxShadowSpreadRadius,t.boxShadowColor].map(n).join(" "):null})}update(){this.__updateStyles()}render(){return`<div>
309
309
  <div class='&__wrapper'>
310
310
  <button class='&__button'>css</button>
311
311
  </div>
@@ -573,7 +573,7 @@ ${s}`.trim();n?yield this.__executeQuickCommandSilent(u,s):yield this.__executeQ
573
573
  </div>`}appendChildToContainer(){}constructor(t,i,n){super(t),(0,r._)(this,"options",void 0),(0,r._)(this,"drawingManager",void 0),(0,r._)(this,"toolbar",void 0),(0,r._)(this,"state",void 0),(0,r._)(this,"mapElements",void 0),(0,r._)(this,"apiLoaded",void 0),(0,r._)(this,"mapInitialized",void 0),(0,r._)(this,"map",void 0),(0,r._)(this,"layers",void 0),this.options=n,this.toolbar=new y.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,m.uniqueUid)()+new Date().toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,i),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const o=this.getElm("map-palette");(0,g.assert)(null!=o,"palette element does not exists"),o.appendChild(this.toolbar.container)}}(0,l.__decorate)([(0,h.hook)("ready")],C.prototype,"onReady",null),(0,l.__decorate)([(0,f.watch)("?:changeCreateMode.gm")],C.prototype,"changeCreateMode",null),(0,l.__decorate)([(0,f.watch)("state.mode")],C.prototype,"onChangeMode",null),(0,l.__decorate)([(0,f.watch)("state.elements")],C.prototype,"onChangeElementsList",null),(0,l.__decorate)([(0,f.watch)("state.center"),(0,p.wait)(t=>t.mapInitialized),(0,d.debounce)()],C.prototype,"onChangeCenter",null),(0,l.__decorate)([(0,f.watch)("state.zoom"),(0,d.debounce)()],C.prototype,"onChangeZoom",null),(0,l.__decorate)([(0,f.watch)("state.controls")],C.prototype,"onChangeControls",null),(0,l.__decorate)([(0,f.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,p.wait)(t=>t.mapInitialized),(0,d.debounce)()],C.prototype,"onChangeBound",null),(0,l.__decorate)([(0,f.watch)("state.size"),(0,d.debounce)()],C.prototype,"onChangeSize",null),(0,l.__decorate)([(0,f.watch)("state.type")],C.prototype,"onChangeMapType",null),(0,l.__decorate)([(0,f.watch)("state.layer")],C.prototype,"onChangeLayer",null)},22125:function(t,i,n){"use strict";n.d(i,{addNewInState:function(){return s}});var o=n(56075),r=n(67912);function s(t){var i,n,s,a,l,u,c,d;switch(this.state.mode){case"polyline":case"polygon":{let{mode:i}=this.state;this.state.elements=[...this.state.elements,(0,o._)({type:i,coordinates:(0,r.pathToArray)(t.getPath())},this.options.googleMaps.map.defaultStates[i])];break}case"circle":this.state.elements=[...this.state.elements,(0,o._)({type:this.state.mode,coordinates:[null!=(i=null==(s=t.getCenter())?void 0:s.lat())?i:0,null!=(n=null==(a=t.getCenter())?void 0:a.lng())?n:0],radius:t.getRadius()},this.options.googleMaps.map.defaultStates.circle)];break;case"marker":this.state.elements=[...this.state.elements,(0,o._)({type:this.state.mode,coordinates:[null!=(l=null==(c=t.getPosition())?void 0:c.lat())?l:0,null!=(u=null==(d=t.getPosition())?void 0:d.lng())?u:0]},this.options.googleMaps.map.defaultStates.marker)]}}},1475:function(t,i,n){"use strict";n.d(i,{initOrUpdateElementFromState:function(){return c}});var o=n(53454),r=n(11079),s=n(72690),a=n(580),l=n(12153),u=n(67912);function c(t,i){let n,c=this.mapElements[i];if(c){if(c.state.type===t.type)return s.updateStateAndGme.call(this,t,i);c.gme.setMap(null)}switch(t.type){case"text":n=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":n=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?l.Icon.get(t.icon):void 0,map:this.map});break;case"polyline":case"polygon":{let i=(0,u.arrayToPath)(t.coordinates);n=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:i,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":var d;n=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!=(d=t.fillOpacity)?d:1})}let h={type:t.type,uid:(0,a.uniqueUid)(),state:t,gme:n};"dragend radius_changed center_changed".split(" ").forEach(t=>n.addListener(t,()=>o.onChangeGeometries.call(this,h,i))),("polygon"===h.type||"polyline"===h.type)&&"insert_at set_at remove_at".split(" ").forEach(t=>h.gme.getPath().addListener(t,()=>o.onChangeGeometries.call(this,h,i))),n.addListener("click",()=>r.openPropsDialog.call(this,h,i)),this.mapElements[i]=h}},53454:function(t,i,n){"use strict";n.d(i,{onChangeGeometries:function(){return l}});var o=n(56075),r=n(11886),s=n(72690),a=n(67912);function l(t,i){var n,l,u,c;switch(t.type){case"polyline":case"polygon":{let n=(0,a.pathToArray)(t.gme.getPath()),l=(0,r._)((0,o._)({},t.state),{coordinates:n});s.updateStateAndGme.call(this,l,i,!0);break}case"marker":{let a=t.gme.getPosition(),u=(0,r._)((0,o._)({},t.state),{coordinates:[null!=(n=null==a?void 0:a.lat())?n:0,null!=(l=null==a?void 0:a.lng())?l:0]});s.updateStateAndGme.call(this,u,i,!0);break}case"circle":{let n=t.gme.getCenter(),a=(0,r._)((0,o._)({},t.state),{radius:t.gme.getRadius(),coordinates:[null!=(u=null==n?void 0:n.lat())?u:0,null!=(c=null==n?void 0:n.lng())?c:0]});s.updateStateAndGme.call(this,a,i,!0)}}}},11079:function(t,i,n){"use strict";n.d(i,{openPropsDialog:function(){return c}});var o=n(56075),r=n(11886),s=n(47660),a=n(72690),l=n(90835);function u(){let t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",()=>{this.setMod("info-opened",!0)}),t.addListener("closeclick",()=>{this.setMod("info-opened",!1)}),t}function c(t,i){let n;switch(this.state.mode="hand",t.type){case"polyline":n=new l.UIPolylineEditor(this.jodit,t.state,this.options);break;case"marker":n=new l.UIMarkerEditor(this.jodit,t.state,this.options);break;case"circle":case"polygon":n=new l.UIPolygonEditor(this.jodit,t.state,this.options)}if(!n)return;this.append(n),this.j.e.on(n,"bin",()=>{s.removeElement.call(this,t)}).on(n,"change",(n,s)=>{a.updateStateAndGme.call(this,(0,r._)((0,o._)({},t.state),{[n]:s}),i)});let c=u.call(this);if("polygon"===t.type||"polyline"===t.type){let i=t.gme.getPath().getAt(0);c.setPosition(i)}"circle"===t.type&&c.setPosition(t.gme.getCenter()),c.setContent(n.container),c.open(this.map,t.gme),c.addListener("closeclick",()=>{n&&(this.remove(n),n.destruct())})}},47660:function(t,i,n){"use strict";function o(t){let i=this.mapElements.indexOf(t);-1!==i&&(this.mapElements[i].gme.setMap(null),this.mapElements.splice(i,1),this.state.elements.splice(i,1),this.state.elements=[...this.state.elements])}n.d(i,{removeElement:function(){return o}})},72690:function(t,i,n){"use strict";n.d(i,{updateStateAndGme:function(){return r}});var o=n(67912);function r(t,i,n=!1){let s=this.mapElements[i];if(s.state===t||s.state.type!==t.type)return;let a=s.state;if(!n){let i;for(i in t){let n=t[i],r=a[i];if(null!=n&&(null==r||n.toString()!==r.toString()))switch(i){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(s.type){case"polyline":case"circle":case"polygon":s.gme.setOptions({[i]:n})}break;case"coordinates":switch(s.type){case"polygon":case"polyline":s.gme.setPath((0,o.arrayToPath)(n))}}}}s.state=t,this.state.elements[i]=t}},8073:function(t,i,n){"use strict";n.d(i,{UIMapsControlsForm:function(){return c}});var o=n(82749),r=n(56075),s=n(11886),a=n(31635),l=n(87325),u=n(67510);class c extends u.UIForm{className(){return"UIMapsControlsForm"}onChangeSize(t,i){this.state.controls=(0,s._)((0,r._)({},this.state.controls),{[t]:"true"===i})}constructor(t,i){super(t),(0,o._)(this,"state",void 0),this.state=i;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(i=>new u.UICheckbox(t,{label:n[i],name:i,checked:this.state.controls[i],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,i)})))}}c=(0,a.__decorate)([l.component],c)},83039:function(t,i,n){"use strict";n.d(i,{UIMapsPropsForm:function(){return u}});var o=n(82749),r=n(31635),s=n(65478),a=n(76078),l=n(67510);class u extends l.UIForm{className(){return"UIMapsPropsForm"}onChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==i?void 0:i.value,10)||0]}onExternalChangeSize(){let{width:t,height:i}=(0,a.refs)(this.container),[n,o]=this.state.size;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container);this.state.center=[parseFloat(null==t?void 0:t.value)||0,parseFloat(null==i?void 0:i.value)||0]}onExternalChangeCenter(){let{lat:t,lng:i}=(0,a.refs)(this.container),[n,o]=this.state.center;n.toString()!==t.value&&(t.value=n.toString()),o.toString()!==i.value&&(i.value=o.toString())}onExternalChangeType(){let{mapType:t}=(0,a.refs)(this.container);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){let{layer:t}=(0,a.refs)(this.container);this.state.layer!==t.value&&(t.value=this.state.layer)}constructor(t,i){var n;super(t),(0,o._)(this,"state",void 0),this.state=i;const[r,s]=i.size,[a,u]=i.center;this.append([new l.UIInput(t,{label:"Width",name:"width",value:r,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Height",name:"height",value:s,type:"number",onChange:this.onChangeSize}),new l.UIInput(t,{label:"Latitude",name:"lat",value:a,onChange:this.onChangeCenter}),new l.UIInput(t,{label:"Longitude",name:"lng",value:u,onChange:this.onChangeCenter}),new l.UISelect(t,{label:"Map type",value:i.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:t=>{i.type=t}}),new l.UISelect(t,{label:"Layer",value:null!=(n=i.layer)?n:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:t=>{i.layer=t}})])}}(0,r.__decorate)([s.autobind],u.prototype,"onChangeSize",null),(0,r.__decorate)([(0,s.watch)("state.size")],u.prototype,"onExternalChangeSize",null),(0,r.__decorate)([s.autobind],u.prototype,"onChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.center"])],u.prototype,"onExternalChangeCenter",null),(0,r.__decorate)([(0,s.watch)(["state.type"])],u.prototype,"onExternalChangeType",null),(0,r.__decorate)([(0,s.watch)(["state.layer"])],u.prototype,"onExternalChangeLayer",null),u=(0,r.__decorate)([s.component],u)},11093:function(t,i,n){"use strict";n.d(i,{UIWysiwyg:function(){return c}});var o=n(56075),r=n(31635),s=n(87325),a=n(38837),l=n(48538),u=n(2692);class c extends l.UIElement{className(){return"UIWysiwyg"}render(){return`<div>
574
574
  <div class='&__label'>~Info~</div>
575
575
  <div class='&__editor'></div>
576
- </div>`}constructor(t,i,n,r){super(t);const s=this.getElm("editor");(0,a.assert)(null!=s,"editor element does not exist");const l=u.JoditPro.make(s,(0,o._)({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));l.value=n,l.e.on("change",()=>r(l.value))}}c=(0,r.__decorate)([s.component],c)},40650:function(t,i,n){"use strict";var o=n(82749),r=n(25088),s=n.n(r),a=n(6441),l=n(21537),u=n(50911),c=n(59451),d=n(2692);a.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled(t){return(0,c.isEditorEmpty)(t.editor)},command:"startSearch"};class h extends u.Plugin{afterInit(t){t.registerCommand("startSearch",{exec:()=>{var i,n,o;let r,{s}=t;if(r=s.isCollapsed()?null==(n=s.current())||null==(i=n.parentElement)?void 0:i.innerText:null==(o=s.sel)?void 0:o.toString()){let t="https://www.google.com/search?q="+encodeURIComponent((0,l.trim)(r));window.open(t,"_blank")}}})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"google",group:"search"}])}}(0,o._)(h,"requires",["license"]),d.JoditPro.plugins.add("google-search",h)},36347:function(t,i,n){"use strict";n(6441).Config.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]}},46958:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(36347);var s=n(65478),a=n(2748),l=n(29960),u=n(20356),c=n(2692);class d extends u.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(){var t;if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:i}=this,n=i.ed.createNodeIterator(i.editor,NodeFilter.SHOW_TEXT);null==(t=this.abortController)||t.abort(),this.workLoop(n)}runWorker(t){let i;this.j.e.mute();let n=0,{processInChunkCount:o}=this.j.o.highlightSignature;try{do{if(n+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&o>n)}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:n}=this,o=n.o.highlightSignature;for(let n in o.schema){let r=RegExp(n);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=o.schema[n](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:n}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,n,o){var r;let{j:s}=this,{range:l}=s.s,u=l.startContainer===t,c=l.startOffset,d=null!=(r=n.index)?r:0;t.nodeValue=i.substring(0,d);let h=i.substring(d+n[0].length);if(h.length){let i=s.createInside.text(h);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),u&&this.restoreCursorPosition(c,t,o.firstChild,o.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 n of i)if(n&&n.nodeValue){let i=n.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(n,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{var i;let n=(0,l.attr)(t,"dataHighlightSchema");if(!n)return;let o=RegExp(n),r=null!=(i=t.innerText)?i:"";(!o.test(r)||r.replace(o,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,o._)(this,"abortController",null)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],d.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],d.prototype,"runWorker",null),c.JoditPro.plugins.add("highlight-signature",d)},88092:function(t,i,n){"use strict";var o=n(67008),r=n.n(o),s=n(6441),a=n(2748),l=n(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,n){"use strict";var o=n(82749),r=n(31635);n(88092);var s=n(29744),a=n(65478),l=n(22732),u=n(21537),c=n(50911),d=n(62843),h=n(41409),p=n(2692);class f extends c.Plugin{afterInit(t){t.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(t){var i,n,o,r,a;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 c=new s.UIIframeEditor(this.__dialog,{src:null!=(i=null==t?void 0:t.src)?i:"",name:null!=(n=null==t?void 0:t.name)?n:"",title:null!=(o=null==t?void 0:t.title)?o:"",frameBorder:(null==t?void 0:t.frameBorder)==="1"||(null==t?void 0:t.frameBorder)==="yes",width:null!=(r=null==t?void 0:t.offsetWidth)?r:700,height:null!=(a=null==t?void 0:t.offsetHeight)?a:400});this.__dialog.setContent(c);let p=this.__dialog;p.isOpened?p.close():(p.setFooter([(0,d.Button)(p,"cancel","Cancel","default").onAction(()=>p.close()),(0,d.Button)(p,"ok",t?"Update":"Insert","primary").onAction(()=>{if(!c.srcField.value){c.srcField.validate(),c.srcField.focus();return}t||(t=this.j.createInside.element("iframe"),this.j.s.insertNode(t,!0,!1)),t.className=c.state.className||"",(0,u.attr)(t,{src:c.state.src,title:c.state.title,name:c.state.name,frameborder:c.state.frameBorder?"1":"0",width:c.state.width,height:c.state.height}),l.Dom.isTag(t.parentElement,"jodit")&&(0,u.css)(t.parentElement,{width:c.state.width,height:c.state.height}),this.jodit.e.fire("synchro"),p.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{c.srcField.focus()}))}onDblClick(t){l.Dom.isTag(t.target,"iframe")&&this.toggleEditor(t.target)}beforeDestruct(t){var i;null==(i=this.__dialog)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"buttons",[{group:"form",name:"iframeEditor"}]),(0,o._)(this,"__dialog",void 0)}}(0,o._)(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,n){"use strict";n.d(i,{UIIframeEditor:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,o._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,o._)(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)},12373:function(t,i,n){"use strict";n(25187),n(58858),n(21246),n(44864),n(3115),n(41810),n(61328),n(45632),n(8390),n(29528),n(85174),n(90882),n(97068),n(482),n(40650),n(46958),n(1050),n(95618),n(74398),n(79850),n(41406),n(47682),n(75554),n(61886),n(19374),n(73098),n(13152)},41113:function(t,i,n){"use strict";var o=n(63643),r=n.n(o),s=n(6441);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ \xb1","1 ! \xa7","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\xf1ol",keys:[["\xba ` ~","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","\xa1 = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\xe7 \xc7 \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xf1 \xd1 ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ \xb1","1 ! \xa7","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","\xfc \xdc [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xf6 \xd6 ;","\xe4 \xc4 ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ \xb1","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"T\xfcrk\xe7e",keys:[['" \xe9` ~',"1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","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","ğ Ğ","\xfc \xdc",", \\ |"],["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","\xf6 \xd6 <","\xe7 \xc7 >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ \xb1","1 ! \xa7","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 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","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){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(41113);var s=n(25241),a=n(6441),l=n(65478),u=n(27613),c=n(50911),d=n(67510),h=n(41409),p=n(2692);class f extends c.Plugin{afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>{var t;return null==(t=this.__keyboard)?void 0:t.isOpened})}insertChar(t,i,n){this.j.s.insertNode(this.j.createInside.text(n))}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:n,layoutList:o}=this.j.o.keyboard;if(i){let i=new d.UISelect(this.__keyboard,{value:t.state.currentLayout,options:n.map(t=>{var i,n;return{text:null!=(i=null==(n=o[t])?void 0:n.title)?i: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){var i;null==(i=this.__keyboard)||i.destruct()}constructor(t){super(t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"insert",name:"keyboard"}]),(0,o._)(this,"__keyboard",void 0);const{extraKeyButtons:i,extraKeyGroup:n}=t.o.keyboard;i.length&&i.forEach((i,o)=>{let r=(0,u.isString)(i)?i:i.key,s=(0,u.isString)(i)||!i.hotkeys?[`ctrl+${o+1}`]:i.hotkeys;t.registerButton({name:`extraKeyboardButtons.${r}`,group:n});let{extraKeyboardButtons:l}=a.Config.defaultOptions.controls;l[r]={name:r,tooltip:r,args:[r],hotkeys:s,command:"insertChar"}})}}(0,o._)(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,n){"use strict";n.d(i,{UIKeyboard:function(){return _}});var o=n(82749),r=n(31635),s=n(82758),a=n(65478),l=n(43555),u=n(67510),c=n(27926),d=n.n(c),h=n(10690),p=n.n(h),f=n(91997),m=n.n(f),g=n(11699),b=n.n(g),v=n(98126),y=n.n(v);class _ extends u.UIElement{className(){return"UIKeyboard"}render(){let{layout:t,keySize:i}=this.j.options.keyboard,n=t.length;return`<div>${(()=>{let o=[];for(let r=0;n>r;r+=1){let n=[];for(let o=0;o<t[r].length;o+=1)n.push(`<div style="width:${i*t[r][o]}px;height:${i}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${n.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){let{currentLayout:t,options:i,shift:n,caps:o}=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(" "),u=l[0];n&&(u=l[1]),!n&&o&&l[1]&&_.isLetter(l[0])&&(u=l[1]),i&&(u=l[2]),this.setKeyValue(s,null!=u?u:l[0]),s+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,i){let n=this._keys[t];if(!n)return;let o=!1,{options:r,shift:s,caps:a}=this.state;switch(i){case"Caps":o=a;break;case"Options":o=r;break;case"Shift":o=s}n.innerHTML=_.decorate(i),n.classList.toggle(this.getFullElName("key","active",!0),o),(0,l.attr)(n,"-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 n=t.target;if(!n||!n.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,n.classList.add(this.getFullElName("key","pressed",!0));let o=(0,l.attr)(n,"-key");switch(o){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:o,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),o&&this.j.s.insertNode(this.j.createInside.text(o))}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 u.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return p();case"Options":return m();case"Tab":return y();default:return t}}constructor(t){super(t),(0,o._)(this,"state",{caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet}),(0,o._)(this,"_keys",this.getElms("key")),(0,o._)(this,"pressed",!1),(0,o._)(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,n){"use strict";n.d(i,{isAllowedSubdomain:function(){return r},validateLicense:function(){return function t(i,n){var o;let s;if(o=i=String(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(o)||r(n))return!0;let a=(s=n.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 u=n.split(".");return u.shift(),u.length>1&&t(i,u.join("."))}}});let o=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function r(t){return o.some(i=>new RegExp(i.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(t))}},21246:function(t,i,n){"use strict";n.d(i,{license:function(){return h}});var o=n(77688),r=n(38882),s=n(82758),a=n(2748),l=n(87612),u=n(70799),c=n(20356),d=n(2692);class h extends c.Plugin{static make(t){return new h(t)}afterInit(t){this.j.e.on("checkReserve",t=>(0,o._)(function*(){let i=this.j.o.license;if((0,r.isAllowedSubdomain)(t))return"normal";if(!i||!(0,u.isString)(i))return"";let n=(0,r.validateLicense)(i,t);return n||s.IS_TEST||(n=yield this.validateLicenseRemote(i,t)),n?"normal":""}).call(this))}beforeDestruct(t){}validateLicenseRemote(t,i){return(0,o._)(function*(){let n="validateJoditLicenseRemote",o=this.j.storage.get(n);if(o&&(0,r.validateLicense)(o,i))return!0;let s=document.createElement("script");return s.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(t)}&host=${encodeURIComponent(i)}`,this.j.async.promise(t=>{let o=!1,u=i=>{o||(o=!0,a.Dom.safeRemove(s),t(i))};window.onJoditResolveKeyCode=t=>{if((0,l.isBoolean)(t))return u(t);(0,r.validateLicense)(t,i)?(this.j.storage.set(n,t),u(!0)):u(!1)},s.onerror=()=>u(!0),document.body.appendChild(s),this.j.async.setTimeout(()=>u(!0),5e3)})}).call(this)}}d.JoditPro.plugins.add("license",h)},29606:function(t,i,n){"use strict";n.d(i,{dataBindCurrentKey:function(){return c},dataBindStoredKey:function(){return u}});var o=n(27222),r=n.n(o),s=n(6441),a=n(29807),l=n(86583);s.Config.prototype.mobileView={mode:"default"};let u="buttonmobileSView",c="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,c)&&"default"!==(0,l.dataBind)(t,c),isChildActive:(t,i)=>{var n,o;let r=null==(o=i.control)||null==(n=o.args)?void 0:n[0];return(0,a.isNumeric)(r)&&(r=Number(r)),((0,l.dataBind)(t,c)||"default")===r},exec:t=>!!(0,l.dataBind)(t,u)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,u)),childExec:(t,i,{button:n})=>{var o,r;let s=null==(r=n.control)||null==(o=r.args)?void 0:o[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(s)?Number(s):s)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(29606),a=n(65478),l=n(43555),u=n(50911),c=n(2692);class d extends u.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,n,o)=>{this.__currentMode===o&&(o="default"),this.__currentMode=o,(0,l.dataBind)(t,s.dataBindCurrentKey,o),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,o),"default"===o?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:o,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,o._)(this,"__currentMode","default")}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=(0,r.__decorate)([a.component],d),c.JoditPro.plugins.add("mobileView",d)},13109:function(t,i,n){"use strict";var o=n(17405),r=n.n(o),s=n(64889),a=n(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] {
576
+ </div>`}constructor(t,i,n,r){super(t);const s=this.getElm("editor");(0,a.assert)(null!=s,"editor element does not exist");const l=u.JoditPro.make(s,(0,o._)({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));l.value=n,l.e.on("change",()=>r(l.value))}}c=(0,r.__decorate)([s.component],c)},40650:function(t,i,n){"use strict";var o=n(82749),r=n(25088),s=n.n(r),a=n(6441),l=n(21537),u=n(50911),c=n(59451),d=n(2692);a.Config.prototype.controls.google={tooltip:"Google search",icon:s(),isDisabled(t){return(0,c.isEditorEmpty)(t.editor)},command:"startSearch"};class h extends u.Plugin{afterInit(t){t.registerCommand("startSearch",{exec:()=>{var i,n,o;let r,{s}=t;if(r=s.isCollapsed()?null==(n=s.current())||null==(i=n.parentElement)?void 0:i.innerText:null==(o=s.sel)?void 0:o.toString()){let t="https://www.google.com/search?q="+encodeURIComponent((0,l.trim)(r));window.open(t,"_blank")}}})}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"google",group:"search"}])}}(0,o._)(h,"requires",["license"]),d.JoditPro.plugins.add("google-search",h)},36347:function(t,i,n){"use strict";n(6441).Config.prototype.highlightSignature={processDelay:0,processInChunkCount:300,schema:{},excludeTags:["pre"]}},46958:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(36347);var s=n(65478),a=n(2748),l=n(29960),u=n(20356),c=n(2692);class d extends u.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(){var t;if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();let{j:i}=this,n=i.ed.createNodeIterator(i.editor,NodeFilter.SHOW_TEXT);null==(t=this.abortController)||t.abort(),this.workLoop(n)}runWorker(t){let i;this.j.e.mute();let n=0,{processInChunkCount:o}=this.j.o.highlightSignature;try{do{if(n+=1,!(i=t.nextNode())||this.checkNormalizing(i))return;this.checkReplaceSchemas(i)}while(i&&o>n)}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:n}=this,o=n.o.highlightSignature;for(let n in o.schema){let r=RegExp(n);if(r.test(i)){let s=i.match(r);if(!s||void 0===s.index)continue;let l=o.schema[n](this.j,s);if(l){a.Dom.markTemporary(l,{dataHighlightSchema:n}),this.replaceMatchedTextToElm(t,i,s,l);return}}}}replaceMatchedTextToElm(t,i,n,o){var r;let{j:s}=this,{range:l}=s.s,u=l.startContainer===t,c=l.startOffset,d=null!=(r=n.index)?r:0;t.nodeValue=i.substring(0,d);let h=i.substring(d+n[0].length);if(h.length){let i=s.createInside.text(h);a.Dom.after(t,i)}o.innerText=n[0],a.Dom.after(t,o),u&&this.restoreCursorPosition(c,t,o.firstChild,o.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 n of i)if(n&&n.nodeValue){let i=n.nodeValue;if(i.length>=t){let i=this.j.s.createRange();i.setStart(n,t),this.j.s.selectRange(i,!1);break}t-=i.length}}checkUtilsBoxToSchema(){a.Dom.temporaryList(this.j.editor).forEach(t=>{var i;let n=(0,l.attr)(t,"dataHighlightSchema");if(!n)return;let o=RegExp(n),r=null!=(i=t.innerText)?i:"";(!o.test(r)||r.replace(o,"").length)&&(this.j.s.save(),a.Dom.unwrap(t),this.j.s.restore())})}constructor(...t){super(...t),(0,o._)(this,"abortController",null)}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,s.debounce)()],d.prototype,"walkNodes",null),(0,r.__decorate)([s.autobind],d.prototype,"runWorker",null),c.JoditPro.plugins.add("highlight-signature",d)},88092:function(t,i,n){"use strict";var o=n(67008),r=n.n(o),s=n(6441),a=n(2748),l=n(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,n){"use strict";var o=n(82749),r=n(31635);n(88092);var s=n(29744),a=n(65478),l=n(22732),u=n(21537),c=n(50911),d=n(62843),h=n(41409),p=n(2692);class f extends c.Plugin{afterInit(t){t.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(t){var i,n,o,r,a;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 c=new s.UIIframeEditor(this.__dialog,{src:null!=(i=null==t?void 0:t.src)?i:"",name:null!=(n=null==t?void 0:t.name)?n:"",title:null!=(o=null==t?void 0:t.title)?o:"",frameBorder:(null==t?void 0:t.frameBorder)==="1"||(null==t?void 0:t.frameBorder)==="yes",width:null!=(r=null==t?void 0:t.offsetWidth)?r:700,height:null!=(a=null==t?void 0:t.offsetHeight)?a:400});this.__dialog.setContent(c);let p=this.__dialog;p.isOpened?p.close():(p.setFooter([(0,d.Button)(p,"cancel","Cancel","default").onAction(()=>p.close()),(0,d.Button)(p,"ok",t?"Update":"Insert","primary").onAction(()=>{if(!c.srcField.value){c.srcField.validate(),c.srcField.focus();return}t||(t=this.j.createInside.element("iframe"),this.j.s.insertNode(t,!0,!1)),t.className=c.state.className||"",(0,u.attr)(t,{src:c.state.src,title:c.state.title,name:c.state.name,frameborder:c.state.frameBorder?"1":"0",width:c.state.width,height:c.state.height}),l.Dom.isTag(t.parentElement,"jodit")&&(0,u.css)(t.parentElement,{width:c.state.width,height:c.state.height}),this.jodit.e.fire("synchro"),p.close()})]).open(),this.jodit.async.requestIdleCallback(()=>{c.srcField.focus()}))}onDblClick(t){l.Dom.isTag(t.target,"iframe")&&this.toggleEditor(t.target)}beforeDestruct(t){var i;null==(i=this.__dialog)||i.destruct()}constructor(...t){super(...t),(0,o._)(this,"buttons",[{group:"form",name:"iframeEditor"}]),(0,o._)(this,"__dialog",void 0)}}(0,o._)(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,n){"use strict";n.d(i,{UIIframeEditor:function(){return l}});var o=n(82749),r=n(31635),s=n(87325),a=n(67510);class l extends a.UIGroup{className(){return"UIIframeEditor"}constructor(t,i){super(t),(0,o._)(this,"state",{src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""}),(0,o._)(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)},12373:function(t,i,n){"use strict";n(25187),n(58858),n(21246),n(49934),n(3115),n(41810),n(61328),n(45632),n(8390),n(29528),n(85174),n(90882),n(97068),n(482),n(40650),n(46958),n(1050),n(95618),n(74398),n(79850),n(41406),n(47682),n(75554),n(61886),n(19374),n(73098),n(13152)},41113:function(t,i,n){"use strict";var o=n(63643),r=n.n(o),s=n(6441);s.Config.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ \xb1","1 ! \xa7","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\xf1ol",keys:[["\xba ` ~","1 ! \xa7","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","\xa1 = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\xe7 \xc7 \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xf1 \xd1 ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ \xb1","1 ! \xa7","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","\xfc \xdc [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","\xf6 \xd6 ;","\xe4 \xc4 ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ \xb1","1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"T\xfcrk\xe7e",keys:[['" \xe9` ~',"1 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","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","ğ Ğ","\xfc \xdc",", \\ |"],["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","\xf6 \xd6 <","\xe7 \xc7 >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ \xb1","1 ! \xa7","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 ! \xa7",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ \xb1","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){return!!t.e.fire("isKeyboardOpened")},command:"toggleKeyboard"},s.Config.prototype.controls.extraKeyboardButtons={}},95618:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(41113);var s=n(25241),a=n(6441),l=n(65478),u=n(27613),c=n(50911),d=n(67510),h=n(41409),p=n(2692);class f extends c.Plugin{afterInit(t){t.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),t.e.on("isKeyboardOpened",()=>{var t;return null==(t=this.__keyboard)?void 0:t.isOpened})}insertChar(t,i,n){this.j.s.insertNode(this.j.createInside.text(n))}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:n,layoutList:o}=this.j.o.keyboard;if(i){let i=new d.UISelect(this.__keyboard,{value:t.state.currentLayout,options:n.map(t=>{var i,n;return{text:null!=(i=null==(n=o[t])?void 0:n.title)?i: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){var i;null==(i=this.__keyboard)||i.destruct()}constructor(t){super(t),(0,o._)(this,"hasStyle",!p.JoditPro.fatMode),(0,o._)(this,"buttons",[{group:"insert",name:"keyboard"}]),(0,o._)(this,"__keyboard",void 0);const{extraKeyButtons:i,extraKeyGroup:n}=t.o.keyboard;i.length&&i.forEach((i,o)=>{let r=(0,u.isString)(i)?i:i.key,s=(0,u.isString)(i)||!i.hotkeys?[`ctrl+${o+1}`]:i.hotkeys;t.registerButton({name:`extraKeyboardButtons.${r}`,group:n});let{extraKeyboardButtons:l}=a.Config.defaultOptions.controls;l[r]={name:r,tooltip:r,args:[r],hotkeys:s,command:"insertChar"}})}}(0,o._)(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,n){"use strict";n.d(i,{UIKeyboard:function(){return _}});var o=n(82749),r=n(31635),s=n(82758),a=n(65478),l=n(43555),u=n(67510),c=n(27926),d=n.n(c),h=n(10690),p=n.n(h),f=n(91997),m=n.n(f),g=n(11699),b=n.n(g),v=n(98126),y=n.n(v);class _ extends u.UIElement{className(){return"UIKeyboard"}render(){let{layout:t,keySize:i}=this.j.options.keyboard,n=t.length;return`<div>${(()=>{let o=[];for(let r=0;n>r;r+=1){let n=[];for(let o=0;o<t[r].length;o+=1)n.push(`<div style="width:${i*t[r][o]}px;height:${i}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${n.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){let{currentLayout:t,options:i,shift:n,caps:o}=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(" "),u=l[0];n&&(u=l[1]),!n&&o&&l[1]&&_.isLetter(l[0])&&(u=l[1]),i&&(u=l[2]),this.setKeyValue(s,null!=u?u:l[0]),s+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(t,i){let n=this._keys[t];if(!n)return;let o=!1,{options:r,shift:s,caps:a}=this.state;switch(i){case"Caps":o=a;break;case"Options":o=r;break;case"Shift":o=s}n.innerHTML=_.decorate(i),n.classList.toggle(this.getFullElName("key","active",!0),o),(0,l.attr)(n,"-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 n=t.target;if(!n||!n.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,n.classList.add(this.getFullElName("key","pressed",!0));let o=(0,l.attr)(n,"-key");switch(o){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:o,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),o&&this.j.s.insertNode(this.j.createInside.text(o))}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 u.Icon.get("enter");case"Backspace":return d();case"Shift":return b();case"Caps":return p();case"Options":return m();case"Tab":return y();default:return t}}constructor(t){super(t),(0,o._)(this,"state",{caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet}),(0,o._)(this,"_keys",this.getElms("key")),(0,o._)(this,"pressed",!1),(0,o._)(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,n){"use strict";n.d(i,{isAllowedSubdomain:function(){return r},validateLicense:function(){return function t(i,n){var o;let s;if(o=i=String(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(o)||r(n))return!0;let a=(s=n.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 u=n.split(".");return u.shift(),u.length>1&&t(i,u.join("."))}}});let o=["*127.0.0.*","*localhost*","*simple*","staging.","*.dev.","*.test.","*.stg.","stg.*","test.*","beta.*","*demo.*","*test.*","acceptatie.*"];function r(t){return o.some(i=>new RegExp(i.replace(/\*/g,"%ANY%").replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&").replace(/%ANY%/g,".*")).test(t))}},21246:function(t,i,n){"use strict";n.d(i,{license:function(){return h}});var o=n(77688),r=n(38882),s=n(82758),a=n(2748),l=n(87612),u=n(70799),c=n(20356),d=n(2692);class h extends c.Plugin{static make(t){return new h(t)}afterInit(t){this.j.e.on("checkReserve",t=>(0,o._)(function*(){let i=this.j.o.license;if((0,r.isAllowedSubdomain)(t))return"normal";if(!i||!(0,u.isString)(i))return"";let n=(0,r.validateLicense)(i,t);return n||s.IS_TEST||(n=yield this.validateLicenseRemote(i,t)),n?"normal":""}).call(this))}beforeDestruct(t){}validateLicenseRemote(t,i){return(0,o._)(function*(){let n="validateJoditLicenseRemote",o=this.j.storage.get(n);if(o&&(0,r.validateLicense)(o,i))return!0;let s=document.createElement("script");return s.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(t)}&host=${encodeURIComponent(i)}`,this.j.async.promise(t=>{let o=!1,u=i=>{o||(o=!0,a.Dom.safeRemove(s),t(i))};window.onJoditResolveKeyCode=t=>{if((0,l.isBoolean)(t))return u(t);(0,r.validateLicense)(t,i)?(this.j.storage.set(n,t),u(!0)):u(!1)},s.onerror=()=>u(!0),document.body.appendChild(s),this.j.async.setTimeout(()=>u(!0),5e3)})}).call(this)}}d.JoditPro.plugins.add("license",h)},29606:function(t,i,n){"use strict";n.d(i,{dataBindCurrentKey:function(){return c},dataBindStoredKey:function(){return u}});var o=n(27222),r=n.n(o),s=n(6441),a=n(29807),l=n(86583);s.Config.prototype.mobileView={mode:"default"};let u="buttonmobileSView",c="buttonmobileCView";s.Config.prototype.controls.mobileView={tooltip:"Mobile View",icon:r(),command:"mobileView",isActive:t=>(0,l.dataBind)(t,c)&&"default"!==(0,l.dataBind)(t,c),isChildActive:(t,i)=>{var n,o;let r=null==(o=i.control)||null==(n=o.args)?void 0:n[0];return(0,a.isNumeric)(r)&&(r=Number(r)),((0,l.dataBind)(t,c)||"default")===r},exec:t=>!!(0,l.dataBind)(t,u)&&void t.execCommand("mobileView",!1,(0,l.dataBind)(t,u)),childExec:(t,i,{button:n})=>{var o,r;let s=null==(r=n.control)||null==(o=r.args)?void 0:o[0];t.execCommand("mobileView",!1,(0,a.isNumeric)(s)?Number(s):s)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}}},74398:function(t,i,n){"use strict";var o=n(82749),r=n(31635),s=n(29606),a=n(65478),l=n(43555),u=n(50911),c=n(2692);class d extends u.Plugin{className(){return"MobileView"}afterInit(t){t.registerCommand("mobileView",{exec:(i,n,o)=>{this.__currentMode===o&&(o="default"),this.__currentMode=o,(0,l.dataBind)(t,s.dataBindCurrentKey,o),"default"!==this.__currentMode&&(0,l.dataBind)(t,s.dataBindStoredKey,o),"default"===o?(0,l.css)(this.jodit.currentPlace.slots.center,{width:null,margin:null}):(0,l.css)(this.j.currentPlace.slots.center,{width:o,margin:"0 auto"})}}),t.events.on("beforeSetMode",()=>{})}__beforeSetMode(){"default"!==this.__currentMode&&this.j.execCommand("mobileView",!1,"default")}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"mobileView",group:"state"}]),(0,o._)(this,"__currentMode","default")}}(0,o._)(d,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":beforeSetMode.mobileView")],d.prototype,"__beforeSetMode",null),d=(0,r.__decorate)([a.component],d),c.JoditPro.plugins.add("mobileView",d)},13109:function(t,i,n){"use strict";var o=n(17405),r=n.n(o),s=n(64889),a=n(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] {
577
577
  display: flex;
578
578
  height: 24px;
579
579
  box-sizing: border-box;
@@ -590,13 +590,15 @@ ${s}`.trim();n?yield this.__executeQuickCommandSilent(u,s):yield this.__executeQ
590
590
 
591
591
  [data-jodit-page-break]:active {
592
592
  border-color: #818181;
593
- }`},79850:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(13109);var s=n(64889),a=n(65478),l=n(22732),u=n(21537),c=n(50911),d=n(2692);class h extends c.Plugin{className(){return"PageBreak"}afterInit(t){t.registerCommand("insertPageBreak",()=>{let i=t.createInside.div("",{});this.decoratePageBreak(i),t.s.insertNode(i,!1,!1);let n=i.parentNode;for(;n&&n!==t.editor&&(l.Dom.after(n,i),!l.Dom.isBlock(n));)n=i.parentNode;t.s.setCursorAfter(i),t.setEditorValue()})}decoratePageBreak(t){(0,u.attr)(t,{"data-jodit-page-break":!0,contenteditable:!1}),t.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){(0,u.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(t=>{l.Dom.isEmpty(t)&&!(0,u.attr)(t,"data-jodit-page-break")&&this.decoratePageBreak(t)})}onAfterGetValueFromEditor(t){t.value=t.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}constructor(...t){super(...t),(0,o._)(this,"styles",s.default),(0,o._)(this,"buttons",[{name:"pageBreak",group:"insert"}])}}(0,o._)(h,"requires",["license"]),(0,r.__decorate)([(0,a.watch)([":change",":afterSetMode"]),(0,a.debounce)()],h.prototype,"onChange",null),(0,r.__decorate)([(0,a.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),d.JoditPro.plugins.add("pageBreak",h)},83967:function(t,i,n){"use strict";var o=n(75689),r=n.n(o),s=n(6441),a=n(53326);s.Config.prototype.controls.pasteCode={icon:r(),tooltip:"Paste code",command:"pasteCode"},s.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight(t,i){return"u">typeof Prism?Prism.highlight(t,Prism.languages[i]||Prism.languages.plain,i):(0,a.htmlspecialchars)(t)},isLangLoaded(t){return"html"===t||"u">typeof Prism&&!!Prism.languages[t]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${t}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(t,i,n)=>`<pre class="language-${i}">${(0,a.htmlspecialchars)(n)}</pre>`,languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}},41406:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(31635);n(83967);var a=n(82758),l=n(65478),u=n(21537),c=n(87612),d=n(53326),h=n(50911),p=n(67510),f=n(41409),m=n(2692);class g extends h.Plugin{className(){return"pasteCode"}afterInit(t){t.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),t.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(t,i,n){let o=this.j,r=this.__createForm(),{code:s,language:a}=(0,u.refs)(r.container);t&&(a.value=t),i&&(s.value=i),o.async.requestIdleCallback(()=>{s.focus()}),o.s.save(),this.__createDialog(()=>{if(r.validate()){o.s.restore();let t=o.createInside.fromHTML(o.o.pasteCode.insertTemplate(o,a.value,s.value));if(n)f.Dom.replace(n,t,o.createInside,!1,!0);else{let i=o.s.current(),n=f.Dom.up(i,f.Dom.isBlock,o.editor);n&&!f.Dom.isCell(n)?f.Dom.after(n,t):o.s.insertNode(t)}this.__imdOnChange();return}return!1},()=>{o.s.restore()}).setContent(r.container).open(!0)}beforeDestruct(t){}__createForm(){let{jodit:t}=this;return new p.UIForm(t,[new p.UISelect(t,{name:"language",label:"Language",value:t.o.pasteCode.defaultLanguage,options:t.o.pasteCode.languages,required:!0}),new p.UITextArea(t,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(t,i){let n=new f.Dialog({language:this.j.o.language});return n.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,p.Button)(n,"","Cancel","default").onAction(()=>{n.close(),i()}),(0,p.Button)(n,"save","Save","primary").onAction(()=>{n.close(),t()})]),n}__onChange(){this.__imdOnChange()}__imdOnChange(){(0,u.$$)("pre",this.j.editor).forEach(t=>{(0,u.attr)(t,"contenteditable")||((0,u.attr)(t,"contenteditable",!1),this.__highlightCode(t).catch(()=>null))})}__highlightCode(t){return(0,o._)(function*(){let i=this.__parseLanguage(t),{highlight:n}=yield this.__initHighlightLibLoading(i),o=t;t.firstElementChild===t.lastElementChild&&f.Dom.isTag(t.firstElementChild,"code")&&(o=t.firstElementChild),o.innerHTML=n(o.innerText,i)}).call(this)}onPreEdit(t){let i=f.Dom.isNode(t)&&f.Dom.isTag(t,"pre")?t:f.Dom.closest(t.target,"pre",this.j.editor);if(i){let t=this.__parseLanguage(i);this.__openCodeEditDialog(t,i.innerText,i)}}__parseLanguage(t){let i=null,n=t=>t.classList.forEach(t=>{if(/language-/.test(t)){let n=/language-(.*)/.exec(t);n&&n[1]&&(i=n[1])}});return n(t),null==i&&t.firstElementChild===t.lastElementChild&&f.Dom.isTag(t.firstElementChild,"code")&&n(t.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(i||"html")}onAfterGetValueFromEditor(t){let i=(t,i,n,o,r,s)=>`${i.trim()}${o}${(0,d.htmlspecialchars)((0,u.stripTags)(r,this.j.ed,new Set(["br"])))}${s}`;t.value=t.value.replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>\\s*<code[^>]*>)(.*?)(<\\/code>\\s*<\\/pre>)","gis"),i).replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>)(.*?)(<\\/pre>)","gis"),i)}constructor(...t){var i;super(...t),i=this,(0,r._)(this,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,r._)(this,"__highlightLibJSIsLoaded",!1),(0,r._)(this,"__loadLanguage",new Map),(0,r._)(this,"__initHighlightLibLoading",t=>(0,o._)(function*(){let{globalHighlightLib:n,highlightLib:{css:o,js:r,langUrl:s,highlight:l,isLangLoaded:d,beforeLibLoad:h,afterLibLoad:p}}=i.j.o.pasteCode;return i.__highlightLibJSIsLoaded||n||(i.__highlightLibJSIsLoaded=Promise.resolve(null==h?void 0:h()).then(()=>b(i.async,Promise.allSettled([(0,u.loadNextStyle)(i.jodit,o).catch(()=>null),(0,u.loadNext)(i.jodit,r).catch(()=>null)]))).then(()=>null==p?void 0:p())),(0,c.isBoolean)(i.__highlightLibJSIsLoaded)||(yield i.__highlightLibJSIsLoaded),!t||d(t)||n||(i.__loadLanguage.has(t)||(a.IS_PROD,i.__loadLanguage.set(t,b(i.async,(0,u.appendScriptAsync)(i.jodit,s(t)).catch(()=>null)))),yield i.__loadLanguage.get(t)),{highlight:l}})())}}function b(t,i){return t.promise((t,n)=>{i.then(t).catch(n)}).catch(()=>null)}(0,r._)(g,"requires",["license"]),(0,s.__decorate)([l.autobind],g.prototype,"__openCodeEditDialog",null),(0,s.__decorate)([(0,l.watch)(["?:change","?:afterInit"]),(0,l.debounce)()],g.prototype,"__onChange",null),(0,s.__decorate)([(0,l.watch)(["?:dblclick","?:editPreInPasteCode"])],g.prototype,"onPreEdit",null),(0,s.__decorate)([(0,l.watch)("?:afterGetValueFromEditor")],g.prototype,"onAfterGetValueFromEditor",null),g=(0,s.__decorate)([l.component],g),m.JoditPro.plugins.add("paste-code",g)},20823:function(t,i,n){"use strict";n.d(i,{cleanStyles:function(){return r}});let o={"text-justify":["inter-ideograph"]};function r(t){return t.isElement&&t.attributes.style&&Object.keys(o).forEach(i=>{let n=o[i];if(t.style.has(i)){var r;n.includes(null==(r=t.style.get(i))?void 0:r.toString())&&t.style.set(i,null)}}),t}},47064:function(t,i,n){"use strict";n.d(i,{clearAttributes:function(){return r}});let o=["cellspacing","cellpadding","border","v:shapes","o:spid"];function r(t){if(/^OLE_LINK\d+$/.test(t.attributes.name)&&(t.attributes.name=null,0===t.length))return t.remove(),null;for(let i of("_GoBack"===t.attributes.name&&(t.attributes.name=null),o))t.attributes[i]&&(t.attributes[i]=null);return t}},41157:function(t,i,n){"use strict";n.d(i,{clearClassName:function(){return r}});var o=n(49055);let r=t=>(t.attributes.class&&(t.attributes.class=t.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,o.trim)(t.attributes.class)||(t.attributes.class=null)),t)},53585:function(t,i,n){"use strict";n.d(i,{convertStyleUnitToPixels:function(){return r}});var o=n(43712);let r=(t,{jodit:i})=>{if(!i.o.pasteFromWord.convertUnitsToPixel)return t;let{style:n}=t;return n.forEach(t=>{let i=n.get(t);i&&n.set(t,i.toString().replace(/\d+(\.\d+)?(pt|cm)/g,t=>(0,o.convertUnitToPx)(t)+"px"))}),t}},80591:function(t,i,n){"use strict";n.d(i,{convertToList:function(){return u}});var o=n(82758),r=n(10058),s=n(97420),a=n(31269),l=n(43712);function u(t){if((0,s.isPseudoLeaf)(t)){t.name="li",t.style.set("text-indent",null);let p=c(t),f=/[\da-np-zA-NP-Z].?/.test(p)?"ol":"ul",m=function(t,i){for(let i in r.listStyleMap)if(RegExp(i).test(t))return r.listStyleMap[i];return"ol"===i?"decimal":"disc"}(p,f);t.attributes[r.TYPE_KEY]=f,t.attributes[r.STYLE_KEY]=m,(0,a.calcListLevels)(t),function(t){for(;t;){let i=t.previousElement;if(!((0,s.isLeaf)(i)||(0,s.isList)(i)))break;if((0,s.isLeaf)(i)){if(t.attributes[r.LEVEL_KEY]<i.attributes[r.LEVEL_KEY]||t.attributes[r.LEVEL_KEY]===i.attributes[r.LEVEL_KEY]&&t.parent&&(0,s.isSameType)(t,t.parent))break;i.append(t);continue}if(t.attributes[r.LEVEL_KEY]<i.attributes[r.LEVEL_KEY]||t.attributes[r.LEVEL_KEY]===i.attributes[r.LEVEL_KEY]&&!(0,s.isSameType)(t,i))break;i.append(t)}}(t);let{parent:g}=t;if(!(0,s.isList)(g)||!(0,s.isSameType)(t,g)){var i,n,o,u,d,h;let a,c=(i=t,n=f,o=p,u=m,(a=i.wrap(n)).attributes.start=(0,l.calcStartBySymbol)(o),a.attributes[r.LEVEL_KEY]=i.attributes[r.LEVEL_KEY],a.attributes[r.STYLE_KEY]=i.attributes[r.STYLE_KEY],a.attributes[r.STYLE_VALID_KEY]=i.attributes[r.STYLE_KEY],a.style.set(r.STYLE_CSS_KEY,u),(0,s.isList)(a)&&(null==(d=a.parent)?void 0:d.name)!=="li"&&("disc"===a.style.get(r.STYLE_CSS_KEY)||"decimal"===a.style.get(r.STYLE_CSS_KEY))&&a.style.set(r.STYLE_CSS_KEY,null),a);if((0,s.isList)(g)){c.remove(),null==(h=g.lastElement)||h.append(c)}}}return t}let c=t=>t.textBetween(t=>t.isComment&&/\[if.*supportLists.*]/.test((0,s.html)(t)),t=>t.isComment&&/\[endif]/.test((0,s.html)(t))).replace(/&nbsp;/g,"").replace((0,o.SPACE_REG_EXP)(),"")},64693:function(t,i,n){"use strict";n.d(i,{cases:function(){return b}});var o=n(20823),r=n(47064),s=n(41157),a=n(53585),l=n(80591),u=n(98940),c=n(72621),d=n(1580),h=n(18616),p=n(84021),f=n(69994),m=n(76059),g=n(21357);let b=[d.processImage,u.markPageBreakElements,p.removeExtraTags,m.replaceOldTags,r.clearAttributes,l.convertToList,h.processLinks,f.removeInsideComment,a.convertStyleUnitToPixels,s.clearClassName,c.normalizeImageProps,g.removeWidthFromTableCell,o.cleanStyles]},98940:function(t,i,n){"use strict";n.d(i,{markPageBreakElements:function(){return o}});let o=t=>((t.isElement&&"always"===t.style.get("page-break-before")||"page"===t.style.get("break-before"))&&(t.attributes["jd-safe"]=!0,t.style.add("page-break-before","always"),t.isSingle&&(t.name="div")),t)},72621:function(t,i,n){"use strict";n.d(i,{normalizeImageProps:function(){return o}});let o=t=>(t.isElement&&"img"===t.name&&(t.attributes.align&&(t.style.add("float",t.attributes.align),t.attributes.align=null),t.attributes.hspace&&(t.style.add("marginLeft",t.attributes.hspace+"px"),t.style.add("marginRight",t.attributes.hspace+"px"),t.attributes.hspace=null)),t)},1580:function(t,i,n){"use strict";n.d(i,{processImage:function(){return r}});var o=n(21537);let r=(t,i)=>{if(i.rtf&&"#comment"===t.name&&t.attributes.nodeValue&&-1!==t.attributes.nodeValue.indexOf("<v:shape")){i.shapes||(i.shapes={});let n=i.jodit.create.fromHTML(t.attributes.nodeValue);return(0,o.toArray)(n.getElementsByTagName("v:shape")).forEach(t=>{i.shapes[t.id]=t.getAttribute("o:spid")}),t}if("img"!==t.name)return t;if(i.rtf&&t.attributes["v:shapes"]){var n,r;let o=null==(n=i.shapes)?void 0:n[t.attributes["v:shapes"]];if(o){let n=null!=(r=i.imageMap)?r:{};i.imageMap||(i.imageMap=n,s(i.rtf,"i","\\shppict",i.imageMap),s(i.rtf,"s","\\shp{",i.imageMap));let a=n[o.substring(7)];if(a){let i=[],n=a.hex.match(/[0-9a-f]{2}/gi);if(n){for(let t=0;t<n.length;t++){let o=parseInt(n[t],16);i.push(String.fromCharCode(o))}t.attributes.src="data:"+a.type+";base64,"+btoa(i.join(""))}}}}return t};function s(t,i,n,o){for(let r of t.split(n)){let t=r.split("shplid");if(1<t.length){let n,r=t[1],s="";for(let t=0;t<r.length&&!/[{ \r\n\\]/.test(r[t]);t++)s+=r[t];let a=r.split("bliptag");if(a&&a.length<2)continue;let l=null;if(a[0].indexOf("pngblip")?l="image/png":-1!==a[0].indexOf("jpegblip")&&(l="image/jpeg"),!l)continue;let u=a[1].split("}");if(u&&u.length<2)continue;if(2<u.length&&u[0].includes("blipuid"))n=u[1].split(" ");else{if((n=u[0].split(" "))&&n.length<2)continue;n.shift()}o[i+s]={hex:n.join(""),type:l}}}}},18616:function(t,i,n){"use strict";n.d(i,{processLinks:function(){return o}});let o=(t,i)=>{var n;let o=null!=(n=i.links)?n:{};if(t.attributes.href&&t.attributes.href.match(/#.+$/)&&(o[t.attributes.href.match(/#(.+)$/)[1]]=t),t.attributes.name&&o[t.attributes.name]){let i=o[t.attributes.name];i.attributes.href=i.attributes.href.replace(/.*#(.*)$/,"#$1")}return i.links=o,t}},84021:function(t,i,n){"use strict";n.d(i,{removeExtraTags:function(){return r}});let o=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function r(t){return"none"===t.style.get("display")||0===t.length&&"span"===t.name||o.has(t.name)?(t.remove(),null):t}},69994:function(t,i,n){"use strict";n.d(i,{removeInsideComment:function(){return s}});var o=n(99658);let r=0;function s(t){return(t.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,o.html)(t))&&(r++,t.remove()),t.isComment&&r>0&&(0,o.html)(t).includes("[endif]")&&(r=r>0?r-1:0,t.remove()),r&&(t.isText||"img"===t.name&&(!t.attributes.src||/^file:/.test(t.attributes.src))))?(t.remove(),null):t}},76059:function(t,i,n){"use strict";n.d(i,{replaceOldTags:function(){return r}});let o={i:"em",b:"strong"};function r(t){let{name:i}=t;return i in o&&(t.name=o[i]),t}},21357:function(t,i,n){"use strict";n.d(i,{removeWidthFromTableCell:function(){return o}});let o=t=>(t.attributes.width&&("th"===t.name||"td"===t.name)&&(t.attributes.width=null),t)},13085:function(t,i,n){"use strict";n(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(t,i,n){"use strict";n.d(i,{LEVEL_KEY:function(){return o},STYLE_CSS_KEY:function(){return l},STYLE_KEY:function(){return s},STYLE_VALID_KEY:function(){return a},TYPE_KEY:function(){return r},listStyleMap:function(){return u}});let o="jd-list-level",r="jd-list-type",s="jd-list-style-type",a="data-list-style-type",l="list-style-type",u={"\xb7":"disc",o:"circle","\xa7":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},18594:function(t,i,n){"use strict";n.d(i,{isLeaf:function(){return a},isList:function(){return s},isPseudoLeaf:function(){return l},isSameType:function(){return u}});var o=n(99658),r=n(10058);function s(t){return!!(t&&("ol"===t.name||"ul"===t.name))}function a(t){return!!(t&&"li"===t.name)}function l(t){return"li"!==t.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(t.attributes.style)||/msolistparagraph/i.test(t.attributes.class)&&!!t.find(t=>t.isComment&&(0,o.html)(t).includes("supportLists")).length}function u(t,i){let n=t.attributes[r.TYPE_KEY],o=t.attributes[r.STYLE_KEY];return i.name===n&&i.attributes[r.STYLE_KEY]===o&&t.attributes[r.LEVEL_KEY]===i.attributes[r.LEVEL_KEY]}},42968:function(t,i,n){"use strict";n.d(i,{JElement:function(){return d}});var o=n(82749),r=n(99658),s=n(40273),a=n(82758),l=n(2748),u=n(38837);let c=new Set(a.INSEPARABLE_TAGS);class d{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(t,i=null){return new d(t,i)}wrap(t){var i;(0,u.assert)(null!=this.parent,"You can't wrap the root element");let n=d.make(document.createElement(t),this.parent),o=null!=(i=this.parent.children.indexOf(this))?i:-1;return -1===o?this.parent.append(n):this.parent.children[o]=n,n.append(this),n}append(t){return(0,u.assert)(t!==this,"Forbidden to add to yourself"),t.remove(),this.children.push(t),t.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:t}=this.parent,i=t.indexOf(this);if(-1!==i){for(let n=i-1;n>=0;n-=1)if(t[n].isElement)return t[n]}return null}get lastElement(){let{children:t}=this;for(let i=t.length-1;i>=0;i-=1)if(t[i].isElement)return t[i];return null}get previous(){var t,i,n;return null!=(t=null!=(i=this.sibling(!1))?i:null==(n=this.parent)?void 0:n.previous)?t:null}get next(){var t,i,n;return null!=(t=null!=(i=this.sibling(!0))?i:null==(n=this.parent)?void 0:n.next)?t:null}sibling(t){if(!this.parent)return null;let{children:i}=this.parent,n=i.indexOf(this);return -1!==n&&i[n+(t?1:-1)]?i[n+(t?1:-1)]:null}forEach(t,i=!1){for(let n of[...this.children])if(!1===t(n)||i&&!1===n.forEach(t,!0))return!1}find(t,i=!0){let n=[];return this.forEach(i=>{t(i)&&n.push(i)},i),n}map(t){return this.children.map(t)}remove(){var t,i;let n=null==(t=this.parent)?void 0:t.children.indexOf(this);return null!=n&&-1!==n&&(null==(i=this.parent)||i.children.splice(n,1)),this}textBetween(t,i){let n=!1,o=[];return this.forEach(s=>{if(!n&&t(s)&&(n=!0),n&&s.isText&&o.push((0,r.html)(s)),n&&i(s))return!1},!0),o.join("")}constructor(t,i){(0,o._)(this,"parent",void 0),(0,o._)(this,"name",void 0),(0,o._)(this,"type",void 0),(0,o._)(this,"attributes",void 0),(0,o._)(this,"style",void 0),(0,o._)(this,"children",void 0),this.parent=i,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=function(t){let i={};if(l.Dom.isElement(t))for(let n=0,o=t.attributes;n<o.length;n+=1)i[o[n].name]=o[n].value;else i.nodeValue=t.nodeValue;return i}(t),this.style=new s.Style(this.attributes.style),this.children=[],t.childNodes.forEach(t=>this.children.push(d.make(t,this)))}}},97420:function(t,i,n){"use strict";n.d(i,{JElement:function(){return r.JElement},html:function(){return s.html},innerHTML:function(){return s.innerHTML},isLeaf:function(){return o.isLeaf},isList:function(){return o.isList},isPseudoLeaf:function(){return o.isPseudoLeaf},isSameType:function(){return o.isSameType}});var o=n(18594),r=n(42968),s=n(99658)},99658:function(t,i,n){"use strict";n.d(i,{html:function(){return a},innerHTML:function(){return u}});var o=n(82758),r=n(87612),s=n(49055);function a(t,i=()=>!0,n=!0,r){switch(!0){case t.isComment:case t.isText:{if(!i(t))return"";let{nodeValue:n}=t.attributes;return t.isComment?`<!--${n}-->`:n}case t.isElement:{let{attributes:o}=t,s=u(t,i,n,r);if(!t.attributes["jd-safe"]&&n&&0===s.replace(/[\n\t]/g,"").length&&!t.isSingle)return"";let a=Object.keys(o).map(t=>"style"===t||null==o[t]||/^jd-/.test(t)?"":`${t}="${c(o[t])}"`).filter(Boolean),{str:d}=t.style,h=c(d(t=>l(t,r)));if(h&&a.push(`style="${h}"`),n&&0===a.length&&["span","a"].includes(t.name))return s;let p=a.length?" "+a.join(" "):"";if(!i(t))return s;return t.isSingle?`<${t.name}${p}/>`:`<${t.name}${p}>${s}</${t.name}>`}default:if(!o.IS_PROD)throw Error("Need implementation for this type")}return""}function l(t,i){if(!i)return!0;if(l.cache.has(i)){var n;let o=null==(n=l.cache.get(i))?void 0:n.get(t);if((0,r.isBoolean)(o))return o}let o=i.some(i=>new RegExp(i).test(t)),s=l.cache.get(i)||new Map;return s.set(t,o),l.cache.set(i,s),o}function u(t,i=()=>!0,n=!0,o){let r=t.map(t=>a(t,i,n,o)).join("");return"p"===t.name&&0===(0,s.trim)(r).length&&(r="&nbsp;"),r}function c(t){return t.toString().replace(/"/g,"&quot;")}l.cache=new WeakMap},40273:function(t,i,n){"use strict";n.d(i,{Style:function(){return d}});var o=n(82749),r=n(31635),s=n(45219),a=n(70799),l=n(12475),u=n(49055),c=n(43712);class d{get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach(i=>t(i))}clear(){this._data={}}set(t,i){this._data[t]=i}get(t){var i;return null!=(i=this._data[t])?i:null}has(t){return void 0!==this._data[t]}add(t,i){return this._data=h(this.str()+";"+`${t}:${i}`),this}str(t=t=>!0){let i=Object.keys(this._data).filter(i=>i&&!/^mso-/.test(i)&&t(i)&&null!=this.get(i)),n=t=>(0,a.isString)(t)?/^0[a-z]+$/i.test(t)?"0":t:t.toString();return(["padding","margin"].forEach(t=>{if(this._data[t]){let o=i.indexOf(t),r=(0,c.calcMarginParts)(this._data[t]);["top","right","bottom","left"].forEach((s,a)=>{let l=`${t}-${s}`,u=this._data[l];null!=u&&(i.indexOf(l)<o||n(r[a])===n(u))&&-1!==i.indexOf(l)&&i.splice(i.indexOf(l),1)})}}),i.length)?i.map(t=>`${(0,l.kebabCase)(t)}:${this.get(t)}`).join(";"):""}constructor(t){(0,o._)(this,"_data",void 0),this._data=h(t)}}function h(t){return(function(t){let i={},n=[];for(let o=t.length-1;o>=0;o-=1){let r=t[o][0];i[r]||(i[r]=!0,n.unshift(t[o]))}return n})((null!=t?t:"").replace(/&quot;/g,'"').split(";").filter(Boolean).map(t=>(0,u.trim)(t).split(":").map(u.trim))).reduce((t,[i,n])=>(i&&n&&(t[i]=n),t),{})}(0,r.__decorate)([s.autobind],d.prototype,"forEach",null),(0,r.__decorate)([s.autobind],d.prototype,"clear",null),(0,r.__decorate)([s.autobind],d.prototype,"set",null),(0,r.__decorate)([s.autobind],d.prototype,"get",null),(0,r.__decorate)([s.autobind],d.prototype,"has",null),(0,r.__decorate)([s.autobind],d.prototype,"add",null),(0,r.__decorate)([s.autobind],d.prototype,"str",null)},51586:function(t,i,n){"use strict";n.d(i,{applyStylesPro:function(){return u}});var o=n(19606),r=n(2748),s=n(29960),a=n(76078),l=n(97420);function u(t,i,n,c=""){let d=document.createElement("iframe");d.style.display="none",document.body.appendChild(d);try{var h,p;let r=null!=(h=d.contentDocument)?h:null==(p=d.contentWindow)?void 0:p.document;if(!r)return i;r.open(),r.write(i),r.close();let u="jd-style";for(let t=0;t<r.styleSheets.length;t+=1)try{let i=r.styleSheets[t].cssRules;for(let t=0;t<i.length;t+=1)i[t].selectorText&&(0,a.$$)(i[t].selectorText,r.body).forEach(n=>{(0,s.attr)(n,u)||((0,s.attr)(n,u,(0,s.attr)(n,"style")||""),(0,s.attr)(n,"style","")),(0,s.attr)(n,"style",`${(0,s.attr)(n,"style")};${i[t].style.cssText}`)})}catch(t){}return(0,a.$$)(`[${u}]`,r.body).forEach(t=>{(0,s.attr)(t,"style",`${(0,s.attr)(t,"style")};${(0,s.attr)(t,u)}`)}),(0,o.transformWordToHtml)(t,l.JElement.make(r.body),n,c)}finally{r.Dom.safeRemove(d)}}},31269:function(t,i,n){"use strict";n.d(i,{calcListLevels:function(){return a}});var o=n(43712),r=n(10058),s=n(97420);function a(t){if(void 0!==t.attributes[r.LEVEL_KEY])return;let i=[(0,o.realPixelIndent)(t)],n=[t],a=t.next;for(;a;){if(a.isElement&&!a.attributes[r.LEVEL_KEY]&&(0,s.isPseudoLeaf)(a)){let t=(0,o.realPixelIndent)(a);t&&(i.push(t),n.push(a))}a=a.next}let l=Math.min(...i.filter(t=>t>0)),u=i.map(t=>Math.ceil(t/10));-1!==u.indexOf(0)&&(u=u.map(t=>t+1)),n.forEach((t,i)=>{t.attributes[r.LEVEL_KEY]=u[i],t.style.add("margin-left",`${Math.max((0,o.realPixelIndent)(t)-10*u[i]/l*40,0)}px`)})}},43712:function(t,i,n){"use strict";let o;function r(t){if(!t)return[0,0,0,0];let i=t.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(i.length){case 2:return[0,1,0,1].map(t=>i[t]);case 3:return[0,1,2,1].map(t=>i[t]);case 4:return[0,1,2,3].map(t=>i[t]);default:return[0,0,0,0].map(t=>i[t])}}function s(t){if("number"==typeof t)return t;if(/%$/.test(t))return 0;o||(Object.assign((o=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(o),setTimeout(()=>{null==o||o.remove(),o=null}));let i=0>parseFloat(t);i&&(t=t.replace("-","")),o.style.width=t;let n=o.clientWidth;return i?-n:n}function a(t){let{style:i}=t,n=i.keys.filter(t=>/margin/.test(t)),o=Math.max(n.indexOf("margin-left"),n.indexOf("margin")),a=o>0?n[o]:"margin-left";return s("margin"===a?r(i.get("margin"))[3]||0:i.get(a)||0)}function l(t){return/\d.\d/.test(t)?t.split(".").pop()||null:/^\d/.test(t)?(parseInt(t,10)||1).toString():null}n.d(i,{calcMarginParts:function(){return r},calcStartBySymbol:function(){return l},convertUnitToPx:function(){return s},realPixelIndent:function(){return a}})},30717:function(t,i,n){"use strict";n.d(i,{applyStylesPro:function(){return o.applyStylesPro}});var o=n(51586);n(31269),n(19606)},19606:function(t,i,n){"use strict";n.d(i,{transformWordToHtml:function(){return a}});var o=n(49055),r=n(64693),s=n(97420);function a(t,i,n,a){let l={jodit:t,rtf:a};return i.forEach(function t(i){if(i){for(let t of r.cases)if(null==(i=t(i,l)))break;null==i||i.forEach(t)}}),n&&i.forEach(t=>{t.style.clear()},!0),(0,o.trim)((0,s.innerHTML)(i,t=>!t.isComment,!0,t.o.pasteFromWord.allowedStyleProps))}},58858:function(t,i,n){"use strict";var o=n(82749);n(13085);var r=n(30717),s=n(82758),a=n(70799),l=n(117),u=n(31571),c=n(2692);class d extends u.pasteFromWord{insertFromWordByType(t,i,n,o){if(this.j.o.pasteFromWord.enable&&(n===s.INSERT_AS_HTML||n===s.INSERT_AS_TEXT)){if(i=(0,r.applyStylesPro)(this.j,i,n===s.INSERT_AS_TEXT,o.rtf),this.j.o.beautifyHTML){var u;let t=null==(u=this.j.events)?void 0:u.fire("beautifyHTML",i);(0,a.isString)(t)&&(i=t)}(0,l.pasteInsertHtml)(t,this.j,i);return}return super.insertFromWordByType(t,i,n,o)}}(0,o._)(d,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",d)},12324:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},o.Config.prototype.controls.showBlocks={isActive(t){return!!t.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"}},7085:function(t){t.exports={"Show Blocks":"تظهر كتل"}},42350:function(t){t.exports={"Show Blocks":"Uk\xe1zat Bloky"}},53189:function(t){t.exports={"Show Blocks":"Zeigen Bl\xf6cke"}},48154:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},59551:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},41858:function(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},78777:function(t){t.exports={"Show Blocks":"תראה רחובות"}},25321:function(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},27847:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},45198:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return r.a},cs_cz:function(){return a.a},de:function(){return u.a},es:function(){return d.a},fa:function(){return p.a},fr:function(){return m.a},he:function(){return b.a},hu:function(){return y.a},id:function(){return C.a},it:function(){return F.a},ja:function(){return k.a},ko:function(){return A.a},nl:function(){return x.a},pl:function(){return B.a},pt_br:function(){return j.a},ru:function(){return L.a},tr:function(){return M.a},zh_cn:function(){return O.a},zh_tw:function(){return H.a}});var o=n(7085),r=n.n(o),s=n(42350),a=n.n(s),l=n(53189),u=n.n(l),c=n(48154),d=n.n(c),h=n(59551),p=n.n(h),f=n(41858),m=n.n(f),g=n(78777),b=n.n(g),v=n(25321),y=n.n(v),_=n(27847),C=n.n(_),w=n(23287),F=n.n(w),E=n(73035),k=n.n(E),S=n(97028),A=n.n(S),D=n(26436),x=n.n(D),I=n(6602),B=n.n(I),T=n(86401),j=n.n(T),P=n(54023),L=n.n(P),R=n(8432),M=n.n(R),z=n(58366),O=n.n(z),N=n(46954),H=n.n(N)},23287:function(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},73035:function(t){t.exports={"Show Blocks":"ショーのブロック"}},97028:function(t){t.exports={"Show Blocks":"쇼 블록"}},26436:function(t){t.exports={"Show Blocks":"Toon Blokken"}},6602:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},86401:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},54023:function(t){t.exports={"Show Blocks":"Показать Блоки"}},8432:function(t){t.exports={"Show Blocks":"Haritayı Blokları"}},58366:function(t){t.exports={"Show Blocks":"显示块"}},46954:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},47682:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(12324);var s=n(45198),a=n(78879),l=n.n(a),u=n(65478),c=n(2748),d=n(580),h=n(50911),p=n(12153),f=n(2692);class m extends h.Plugin{get style(){return(0,d.getContainer)(this.jodit,m,"style",!0)}enable(){this.isEnabled=!0;let t=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:i,color:n}=this.j.o.showBlocks;this.style.innerHTML=i.map(i=>{var o;return`${t} ${i}{
593
+ }`},79850:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(13109);var s=n(64889),a=n(65478),l=n(22732),u=n(21537),c=n(50911),d=n(2692);class h extends c.Plugin{className(){return"PageBreak"}afterInit(t){this.onChange(),t.registerCommand("insertPageBreak",()=>{let i=t.createInside.div("",{});this.decoratePageBreak(i),t.s.insertNode(i,!1,!1);let n=new Set(["td","th","tr","tbody","thead","tfoot","caption","colgroup","table"]),o=i.parentNode;for(;o&&o!==t.editor&&(l.Dom.after(o,i),!l.Dom.isBlock(o)||l.Dom.isTag(o,n));)o=i.parentNode;t.s.setCursorAfter(i),t.setEditorValue()})}decoratePageBreak(t){(0,u.attr)(t,{"data-jodit-page-break":!0,contenteditable:!1}),t.innerText=this.j.i18n("Page break")}beforeDestruct(){}onChange(){(0,u.$$)('[style*="page-break-after"],[style*="page-break-before"]',this.j.editor).forEach(t=>{l.Dom.isEmpty(t)&&!(0,u.attr)(t,"data-jodit-page-break")&&this.decoratePageBreak(t)})}onAfterGetValueFromEditor(t){t.value=t.value.replace(/<div[^>]+data-jodit-page-break[^>]+>[^]*?<\/div>/gi,this.j.o.pageBreak.separator)}constructor(...t){super(...t),(0,o._)(this,"styles",s.default),(0,o._)(this,"buttons",[{name:"pageBreak",group:"insert"}])}}(0,o._)(h,"requires",["license"]),(0,r.__decorate)([(0,a.watch)([":change",":afterSetMode"]),(0,a.debounce)()],h.prototype,"onChange",null),(0,r.__decorate)([(0,a.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),d.JoditPro.plugins.add("pageBreak",h)},83967:function(t,i,n){"use strict";var o=n(35960),r=n(75689),s=n.n(r),a=n(6441),l=n(22732),u=n(53326);a.Config.prototype.controls.pasteCode={icon:s(),tooltip:"Paste code",command:"pasteCode"},a.Config.prototype.controls.codeBlock={edit:{icon:"pencil",tooltip:"Edit code",exec:(t,i)=>{t.e.fire("editPreInPasteCode",i)}},copy:{icon:"copy",tooltip:"Copy code",exec:(t,i)=>{l.Dom.isTag(i,"pre")&&(0,o.copyCodeToClipboard)(t,i)}},remove:{icon:"bin",tooltip:"Delete",exec:(t,i)=>{l.Dom.safeRemove(i),t.e.fire("synchro"),t.e.fire("hideCodeTuner.pasteCode")}}},a.Config.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{beforeLibLoad(){window.Prism=window.Prism||{},window.Prism.manual=!0},highlight(t,i){return"u">typeof Prism?Prism.highlight(t,Prism.languages[i]||Prism.languages.plain,i):(0,u.htmlspecialchars)(t)},isLangLoaded(t){return"html"===t||"u">typeof Prism&&!!Prism.languages[t]},js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js","https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"],langUrl:t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-${t}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(t,i,n)=>`<pre class="language-${i}">${(0,u.htmlspecialchars)(n)}</pre>`,popup:["codeBlock.edit","codeBlock.copy","|","codeBlock.remove"],languages:[{value:"plaintext",text:"Plain"},{value:"html",text:"HTML/XML"},{value:"bash",text:"Bash"},{value:"php",text:"PHP"},{value:"javascript",text:"JavaScript"},{value:"typescript",text:"TypeScript"},{value:"jsx",text:"JSX"},{value:"java",text:"Java"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"},{value:"sql",text:"SQL"},{value:"docker",text:"Docker"},{value:"http",text:"HTTP"},{value:"ini",text:"INI"},{value:"yaml",text:"YAML"},{value:"json",text:"JSON"},{value:"json5",text:"JSON5"},{value:"makefile",text:"Makefile"},{value:"swift",text:"Swift"}],dialog:{width:700,height:600}}},35960:function(t,i,n){"use strict";n.d(i,{copyCodeToClipboard:function(){return u},languageTitle:function(){return a},parseLanguage:function(){return s},setPreLanguage:function(){return l}});var o=n(22732);function r(t){return t.firstElementChild===t.lastElementChild&&o.Dom.isTag(t.firstElementChild,"code")?t.firstElementChild:t}function s(t,i){let n=null,o=t=>t.classList.forEach(t=>{let i=/^language-(.+)/.exec(t);i&&i[1]&&(n=i[1])});o(i);let s=r(i);return null==n&&s!==i&&o(s),t.o.pasteCode.canonicalLanguageCode(n||"html")}function a(t,i){let n=t.o.pasteCode.languages.find(t=>String(t.value)===i);return t.i18n(String(n?n.text:i))}function l(t,i,n){let o=t=>Array.from(t.classList).forEach(i=>{/^language-/.test(i)&&t.classList.remove(i)});o(i);let s=r(i);s!==i&&o(s),s.classList.add(`language-${n}`),t.e.fire("rehighlightPasteCode",i),t.e.fire("synchro")}function u(t,i){let n=i.innerText,{navigator:r}=t.ow;if(r&&r.clipboard&&r.clipboard.writeText)r.clipboard.writeText(n).catch(()=>null);else{let i=t.create.element("textarea");i.value=n,i.style.position="fixed",i.style.opacity="0",t.od.body.appendChild(i),i.select();try{t.od.execCommand("copy")}catch(t){}o.Dom.safeRemove(i)}t.e.fire("afterCopyCode.pasteCode",n)}},41406:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(31635);n(83967);var a=n(24397),l=n(35960),u=n(82758),c=n(65478),d=n(21537),h=n(87612),p=n(53326),f=n(50911),m=n(67510),g=n(41409),b=n(2692);class v extends f.Plugin{className(){return"pasteCode"}afterInit(t){t.registerCommand("pasteCode",()=>this.__openCodeEditDialog()),this.__codeTuner=new a.UICodeTuner(t),t.async.requestIdleCallback(()=>this.__initHighlightLibLoading())}__openCodeEditDialog(t,i,n){let o=this.j,r=this.__createForm(),{code:s,language:a}=(0,d.refs)(r.container);t&&(a.value=t),i&&(s.value=i),o.async.requestIdleCallback(()=>{s.focus()}),o.s.save(),this.__createDialog(()=>{if(r.validate()){o.s.restore();let t=o.createInside.fromHTML(o.o.pasteCode.insertTemplate(o,a.value,s.value));if(n)g.Dom.replace(n,t,o.createInside,!1,!0);else{let i=o.s.current(),n=g.Dom.up(i,g.Dom.isBlock,o.editor);n&&!g.Dom.isCell(n)?g.Dom.after(n,t):o.s.insertNode(t)}this.__imdOnChange();return}return!1},()=>{o.s.restore()}).setContent(r.container).open(!0)}beforeDestruct(t){var i;null==(i=this.__codeTuner)||i.destruct()}onRehighlightPasteCode(t){g.Dom.isTag(t,"pre")&&((0,d.attr)(t,"contenteditable",!1),this.__highlightCode(t).catch(()=>null))}__createForm(){let{jodit:t}=this;return new m.UIForm(t,[new m.UISelect(t,{name:"language",label:"Language",value:t.o.pasteCode.defaultLanguage,options:t.o.pasteCode.languages,required:!0}),new m.UITextArea(t,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}__createDialog(t,i){let n=new g.Dialog({language:this.j.o.language});return n.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([(0,m.Button)(n,"","Cancel","default").onAction(()=>{n.close(),i()}),(0,m.Button)(n,"save","Save","primary").onAction(()=>{n.close(),t()})]),n}__onChange(){this.__imdOnChange()}__imdOnChange(){(0,d.$$)("pre",this.j.editor).forEach(t=>{(0,d.attr)(t,"contenteditable")||((0,d.attr)(t,"contenteditable",!1),this.__highlightCode(t).catch(()=>null))})}__highlightCode(t){return(0,o._)(function*(){let i=this.__parseLanguage(t),{highlight:n}=yield this.__initHighlightLibLoading(i),o=t;t.firstElementChild===t.lastElementChild&&g.Dom.isTag(t.firstElementChild,"code")&&(o=t.firstElementChild),o.innerHTML=n(o.innerText,i)}).call(this)}onPreEdit(t){let i=g.Dom.isNode(t)&&g.Dom.isTag(t,"pre")?t:g.Dom.closest(t.target,"pre",this.j.editor);if(i){let t=this.__parseLanguage(i);this.__openCodeEditDialog(t,i.innerText,i)}}__parseLanguage(t){return(0,l.parseLanguage)(this.jodit,t)}onAfterGetValueFromEditor(t){let i=(t,i,n,o,r,s)=>`${i.trim()}${o}${(0,p.htmlspecialchars)((0,d.stripTags)(r,this.j.ed,new Set(["br"])))}${s}`;t.value=t.value.replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>\\s*<code[^>]*>)(.*?)(<\\/code>\\s*<\\/pre>)","gis"),i).replace(RegExp("(<pre[^>]*)contenteditable\\s*=\\s*(['\"]?)false\\2([^>]*>)(.*?)(<\\/pre>)","gis"),i)}constructor(...t){var i;super(...t),i=this,(0,r._)(this,"buttons",[{name:"pasteCode",group:"clipboard"}]),(0,r._)(this,"__codeTuner",void 0),(0,r._)(this,"__highlightLibJSIsLoaded",!1),(0,r._)(this,"__loadLanguage",new Map),(0,r._)(this,"__initHighlightLibLoading",t=>(0,o._)(function*(){let{globalHighlightLib:n,highlightLib:{css:o,js:r,langUrl:s,highlight:a,isLangLoaded:l,beforeLibLoad:c,afterLibLoad:p}}=i.j.o.pasteCode;return i.__highlightLibJSIsLoaded||n||(i.__highlightLibJSIsLoaded=Promise.resolve(null==c?void 0:c()).then(()=>y(i.async,Promise.allSettled([(0,d.loadNextStyle)(i.jodit,o).catch(()=>null),(0,d.loadNext)(i.jodit,r).catch(()=>null)]))).then(()=>null==p?void 0:p())),(0,h.isBoolean)(i.__highlightLibJSIsLoaded)||(yield i.__highlightLibJSIsLoaded),!t||l(t)||n||(i.__loadLanguage.has(t)||(u.IS_PROD,i.__loadLanguage.set(t,y(i.async,(0,d.appendScriptAsync)(i.jodit,s(t)).catch(()=>null)))),yield i.__loadLanguage.get(t)),{highlight:a}})())}}function y(t,i){return t.promise((t,n)=>{i.then(t).catch(n)}).catch(()=>null)}(0,r._)(v,"requires",["license"]),(0,s.__decorate)([c.autobind],v.prototype,"__openCodeEditDialog",null),(0,s.__decorate)([(0,c.watch)("?:rehighlightPasteCode")],v.prototype,"onRehighlightPasteCode",null),(0,s.__decorate)([(0,c.watch)(["?:change","?:afterInit"]),(0,c.debounce)()],v.prototype,"__onChange",null),(0,s.__decorate)([(0,c.watch)(["?:dblclick","?:editPreInPasteCode"])],v.prototype,"onPreEdit",null),(0,s.__decorate)([(0,c.watch)("?:afterGetValueFromEditor")],v.prototype,"onAfterGetValueFromEditor",null),v=(0,s.__decorate)([c.component],v),b.JoditPro.plugins.add("paste-code",v)},24397:function(t,i,n){"use strict";n.d(i,{UICodeTuner:function(){return h}});var o=n(82749),r=n(31635),s=n(35960),a=n(65478),l=n(22732),u=n(21537),c=n(67510),d=n(21491);class h extends c.UIElement{className(){return"UICodeTuner"}render(){return`<div>
594
+ <div class="&__anchor" title="~Drag to move the code block~"></div>
595
+ </div>`}onEditorMouseMove(t){let i=l.Dom.closest(t.target,"pre",this.j.editor);i&&(this.__cancelHide(),this.show(i))}onEditorClick(t){let i=l.Dom.closest(t.target,"pre",this.j.editor);i?(this.__cancelHide(),this.show(i),this.openToolbar()):this.forceHide()}show(t){this.currentBlock=t,this.isShown||(this.isShown=!0,null==this.container.parentNode&&this.j.od.body.appendChild(this.container),this.j.e.on(this.j.ow,"mousemove",this.__onPointerMove),this.j.e.on(this.j.ow,"scroll resize",this.__onReposition).on(this.j.editor,"scroll",this.__onReposition)),this.calcPosition()}hide(){this.popup.isOpened||this.forceHide()}onOutsideClick(t){t&&l.Dom.isOrContains(this.container,t.target)||this.forceHide()}forceHide(){this.__cancelHide(),this.isShown&&(this.isShown=!1,this.j.e.off(this.j.ow,"mousemove",this.__onPointerMove).off(this.j.ow,"scroll resize",this.__onReposition).off(this.j.editor,"scroll",this.__onReposition),this.popup.close(),l.Dom.safeRemove(this.container))}__onPointerMove(t){this.isShown&&!this.popup.isOpened&&(this.__inActiveZone(t.clientX,t.clientY)?this.__cancelHide():this.__scheduleHide())}__inActiveZone(t,i){let n=(0,u.position)(this.currentBlock,this.j);return t>=n.left-16-6-6&&t<=n.left+n.width&&i>=n.top-6&&i<=n.top+n.height+6}__scheduleHide(){this.__hideTimer||(this.__hideTimer=this.j.async.setTimeout(()=>{this.__hideTimer=0,this.hide()},150))}__cancelHide(){this.__hideTimer&&(this.j.async.clearTimeout(this.__hideTimer),this.__hideTimer=0)}__onReposition(){if(this.isShown){if(!this.j.editor.contains(this.currentBlock))return void this.forceHide();this.calcPosition()}}onEditorChange(){this.__onReposition()}calcPosition(){let t=(0,u.position)(this.currentBlock,this.j);(0,u.css)(this.container,{left:Math.round(t.left-16-6),top:Math.round(t.top+4)}),this.popup.isOpened&&this.popup.updatePosition()}openToolbar(){this.toolbar.build([this.__languageControl(),...this.j.o.pasteCode.popup],this.currentBlock),this.popup.setContent(this.toolbar.container),this.popup.isOpened?this.popup.updatePosition():this.popup.open(()=>(0,u.position)(this.currentBlock,this.j))}__languageControl(){let t={};return this.j.o.pasteCode.languages.forEach(i=>{t[String(i.value)]=String(i.text)}),{name:"language",list:t,tooltip:"Language",text:(0,s.languageTitle)(this.j,(0,s.parseLanguage)(this.j,this.currentBlock)),childTemplate:(t,i,n)=>this.j.i18n(n),update:(t,i)=>{let n=i.target;l.Dom.isTag(n,"pre")&&i.setState({text:(0,s.languageTitle)(this.j,(0,s.parseLanguage)(this.j,n)),icon:{name:""}})},childExec:(t,i,{control:n})=>{let o=String(n.args&&n.args[0]||"plaintext");l.Dom.isTag(i,"pre")&&((0,s.setPreLanguage)(this.j,i,o),this.j.e.fire("hideCodeTuner.pasteCode"))}}}onAnchorMouseDown(t){t.preventDefault(),this.popup.close(),this.j.e.fire("startDragElement",this.currentBlock,t)}destruct(){this.forceHide(),this.popup.destruct(),super.destruct()}constructor(...t){super(...t),(0,o._)(this,"toolbar",(0,d.makeCollection)(this.j,this)),(0,o._)(this,"popup",new c.Popup(this.j,!1)),(0,o._)(this,"isShown",!1),(0,o._)(this,"__hideTimer",0),(0,o._)(this,"currentBlock",void 0)}}(0,r.__decorate)([(0,a.watch)("j.editor:mousemove"),(0,a.throttle)(50)],h.prototype,"onEditorMouseMove",null),(0,r.__decorate)([(0,a.watch)("j.editor:click")],h.prototype,"onEditorClick",null),(0,r.__decorate)([(0,a.watch)(":outsideClick")],h.prototype,"onOutsideClick",null),(0,r.__decorate)([(0,a.watch)(":hideCodeTuner.pasteCode")],h.prototype,"forceHide",null),(0,r.__decorate)([a.autobind],h.prototype,"__onPointerMove",null),(0,r.__decorate)([a.autobind],h.prototype,"__onReposition",null),(0,r.__decorate)([(0,a.watch)(":change :resize :afterSetMode"),(0,a.throttle)(10)],h.prototype,"onEditorChange",null),(0,r.__decorate)([(0,a.watch)("anchor:mousedown")],h.prototype,"onAnchorMouseDown",null),h=(0,r.__decorate)([a.component],h)},20823:function(t,i,n){"use strict";n.d(i,{cleanStyles:function(){return r}});let o={"text-justify":["inter-ideograph"]};function r(t){return t.isElement&&t.attributes.style&&Object.keys(o).forEach(i=>{let n=o[i];if(t.style.has(i)){var r;n.includes(null==(r=t.style.get(i))?void 0:r.toString())&&t.style.set(i,null)}}),t}},47064:function(t,i,n){"use strict";n.d(i,{clearAttributes:function(){return r}});let o=["cellspacing","cellpadding","border","v:shapes","o:spid"];function r(t){if(/^OLE_LINK\d+$/.test(t.attributes.name)&&(t.attributes.name=null,0===t.length))return t.remove(),null;for(let i of("_GoBack"===t.attributes.name&&(t.attributes.name=null),o))t.attributes[i]&&(t.attributes[i]=null);return t}},41157:function(t,i,n){"use strict";n.d(i,{clearClassName:function(){return r}});var o=n(49055);let r=t=>(t.attributes.class&&(t.attributes.class=t.attributes.class.replace(/(el\d+)|(font\d+)|msonormal|msolistparagraph\w*/gi,""),(0,o.trim)(t.attributes.class)||(t.attributes.class=null)),t)},53585:function(t,i,n){"use strict";n.d(i,{convertStyleUnitToPixels:function(){return r}});var o=n(43712);let r=(t,{jodit:i})=>{if(!i.o.pasteFromWord.convertUnitsToPixel)return t;let{style:n}=t;return n.forEach(t=>{let i=n.get(t);i&&n.set(t,i.toString().replace(/\d+(\.\d+)?(pt|cm)/g,t=>(0,o.convertUnitToPx)(t)+"px"))}),t}},80591:function(t,i,n){"use strict";n.d(i,{convertToList:function(){return u}});var o=n(82758),r=n(10058),s=n(97420),a=n(31269),l=n(43712);function u(t){if((0,s.isPseudoLeaf)(t)){t.name="li",t.style.set("text-indent",null);let p=c(t),f=/[\da-np-zA-NP-Z].?/.test(p)?"ol":"ul",m=function(t,i){for(let i in r.listStyleMap)if(RegExp(i).test(t))return r.listStyleMap[i];return"ol"===i?"decimal":"disc"}(p,f);t.attributes[r.TYPE_KEY]=f,t.attributes[r.STYLE_KEY]=m,(0,a.calcListLevels)(t),function(t){for(;t;){let i=t.previousElement;if(!((0,s.isLeaf)(i)||(0,s.isList)(i)))break;if((0,s.isLeaf)(i)){if(t.attributes[r.LEVEL_KEY]<i.attributes[r.LEVEL_KEY]||t.attributes[r.LEVEL_KEY]===i.attributes[r.LEVEL_KEY]&&t.parent&&(0,s.isSameType)(t,t.parent))break;i.append(t);continue}if(t.attributes[r.LEVEL_KEY]<i.attributes[r.LEVEL_KEY]||t.attributes[r.LEVEL_KEY]===i.attributes[r.LEVEL_KEY]&&!(0,s.isSameType)(t,i))break;i.append(t)}}(t);let{parent:g}=t;if(!(0,s.isList)(g)||!(0,s.isSameType)(t,g)){var i,n,o,u,d,h;let a,c=(i=t,n=f,o=p,u=m,(a=i.wrap(n)).attributes.start=(0,l.calcStartBySymbol)(o),a.attributes[r.LEVEL_KEY]=i.attributes[r.LEVEL_KEY],a.attributes[r.STYLE_KEY]=i.attributes[r.STYLE_KEY],a.attributes[r.STYLE_VALID_KEY]=i.attributes[r.STYLE_KEY],a.style.set(r.STYLE_CSS_KEY,u),(0,s.isList)(a)&&(null==(d=a.parent)?void 0:d.name)!=="li"&&("disc"===a.style.get(r.STYLE_CSS_KEY)||"decimal"===a.style.get(r.STYLE_CSS_KEY))&&a.style.set(r.STYLE_CSS_KEY,null),a);if((0,s.isList)(g)){c.remove(),null==(h=g.lastElement)||h.append(c)}}}return t}let c=t=>t.textBetween(t=>t.isComment&&/\[if.*supportLists.*]/.test((0,s.html)(t)),t=>t.isComment&&/\[endif]/.test((0,s.html)(t))).replace(/&nbsp;/g,"").replace((0,o.SPACE_REG_EXP)(),"")},64693:function(t,i,n){"use strict";n.d(i,{cases:function(){return b}});var o=n(20823),r=n(47064),s=n(41157),a=n(53585),l=n(80591),u=n(98940),c=n(72621),d=n(1580),h=n(18616),p=n(84021),f=n(69994),m=n(76059),g=n(21357);let b=[d.processImage,u.markPageBreakElements,p.removeExtraTags,m.replaceOldTags,r.clearAttributes,l.convertToList,h.processLinks,f.removeInsideComment,a.convertStyleUnitToPixels,s.clearClassName,c.normalizeImageProps,g.removeWidthFromTableCell,o.cleanStyles]},98940:function(t,i,n){"use strict";n.d(i,{markPageBreakElements:function(){return o}});let o=t=>((t.isElement&&"always"===t.style.get("page-break-before")||"page"===t.style.get("break-before"))&&(t.attributes["jd-safe"]=!0,t.style.add("page-break-before","always"),t.isSingle&&(t.name="div")),t)},72621:function(t,i,n){"use strict";n.d(i,{normalizeImageProps:function(){return o}});let o=t=>(t.isElement&&"img"===t.name&&(t.attributes.align&&(t.style.add("float",t.attributes.align),t.attributes.align=null),t.attributes.hspace&&(t.style.add("marginLeft",t.attributes.hspace+"px"),t.style.add("marginRight",t.attributes.hspace+"px"),t.attributes.hspace=null)),t)},1580:function(t,i,n){"use strict";n.d(i,{processImage:function(){return r}});var o=n(21537);let r=(t,i)=>{if(i.rtf&&"#comment"===t.name&&t.attributes.nodeValue&&-1!==t.attributes.nodeValue.indexOf("<v:shape")){i.shapes||(i.shapes={});let n=i.jodit.create.fromHTML(t.attributes.nodeValue);return(0,o.toArray)(n.getElementsByTagName("v:shape")).forEach(t=>{i.shapes[t.id]=t.getAttribute("o:spid")}),t}if("img"!==t.name)return t;if(i.rtf&&t.attributes["v:shapes"]){var n,r;let o=null==(n=i.shapes)?void 0:n[t.attributes["v:shapes"]];if(o){let n=null!=(r=i.imageMap)?r:{};i.imageMap||(i.imageMap=n,s(i.rtf,"i","\\shppict",i.imageMap),s(i.rtf,"s","\\shp{",i.imageMap));let a=n[o.substring(7)];if(a){let i=[],n=a.hex.match(/[0-9a-f]{2}/gi);if(n){for(let t=0;t<n.length;t++){let o=parseInt(n[t],16);i.push(String.fromCharCode(o))}t.attributes.src="data:"+a.type+";base64,"+btoa(i.join(""))}}}}return t};function s(t,i,n,o){for(let r of t.split(n)){let t=r.split("shplid");if(1<t.length){let n,r=t[1],s="";for(let t=0;t<r.length&&!/[{ \r\n\\]/.test(r[t]);t++)s+=r[t];let a=r.split("bliptag");if(a&&a.length<2)continue;let l=null;if(a[0].indexOf("pngblip")?l="image/png":-1!==a[0].indexOf("jpegblip")&&(l="image/jpeg"),!l)continue;let u=a[1].split("}");if(u&&u.length<2)continue;if(2<u.length&&u[0].includes("blipuid"))n=u[1].split(" ");else{if((n=u[0].split(" "))&&n.length<2)continue;n.shift()}o[i+s]={hex:n.join(""),type:l}}}}},18616:function(t,i,n){"use strict";n.d(i,{processLinks:function(){return o}});let o=(t,i)=>{var n;let o=null!=(n=i.links)?n:{};if(t.attributes.href&&t.attributes.href.match(/#.+$/)&&(o[t.attributes.href.match(/#(.+)$/)[1]]=t),t.attributes.name&&o[t.attributes.name]){let i=o[t.attributes.name];i.attributes.href=i.attributes.href.replace(/.*#(.*)$/,"#$1")}return i.links=o,t}},84021:function(t,i,n){"use strict";n.d(i,{removeExtraTags:function(){return r}});let o=new Set(["o:p","xml","script","meta","link","v:imagedata","style"]);function r(t){return"none"===t.style.get("display")||0===t.length&&"span"===t.name||o.has(t.name)?(t.remove(),null):t}},69994:function(t,i,n){"use strict";n.d(i,{removeInsideComment:function(){return s}});var o=n(99658);let r=0;function s(t){return(t.isComment&&/\[if.*(supportLists|gte vml).*]/.test((0,o.html)(t))&&(r++,t.remove()),t.isComment&&r>0&&(0,o.html)(t).includes("[endif]")&&(r=r>0?r-1:0,t.remove()),r&&(t.isText||"img"===t.name&&(!t.attributes.src||/^file:/.test(t.attributes.src))))?(t.remove(),null):t}},76059:function(t,i,n){"use strict";n.d(i,{replaceOldTags:function(){return r}});let o={i:"em",b:"strong"};function r(t){let{name:i}=t;return i in o&&(t.name=o[i]),t}},21357:function(t,i,n){"use strict";n.d(i,{removeWidthFromTableCell:function(){return o}});let o=t=>(t.attributes.width&&("th"===t.name||"td"===t.name)&&(t.attributes.width=null),t)},13085:function(t,i,n){"use strict";n(6441).Config.prototype.pasteFromWord={enable:!1,convertUnitsToPixel:!1,allowedStyleProps:["background","background-color","border","border-.*","color","float","font-family","font-size","font-style","font-weight","height","line-height","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","padding","text-align","text-justify","text-decoration","text-indent","vertical-align","width"]}},10058:function(t,i,n){"use strict";n.d(i,{LEVEL_KEY:function(){return o},STYLE_CSS_KEY:function(){return l},STYLE_KEY:function(){return s},STYLE_VALID_KEY:function(){return a},TYPE_KEY:function(){return r},listStyleMap:function(){return u}});let o="jd-list-level",r="jd-list-type",s="jd-list-style-type",a="data-list-style-type",l="list-style-type",u={"\xb7":"disc",o:"circle","\xa7":"square","[ivx]":"lower-roman","[IVX]":"upper-roman","[a-z]":"lower-alpha","[A-Z]":"upper-alpha","\\d":"decimal"}},18594:function(t,i,n){"use strict";n.d(i,{isLeaf:function(){return a},isList:function(){return s},isPseudoLeaf:function(){return l},isSameType:function(){return u}});var o=n(99658),r=n(10058);function s(t){return!!(t&&("ol"===t.name||"ul"===t.name))}function a(t){return!!(t&&"li"===t.name)}function l(t){return"li"!==t.name&&/mso-list:\s*l\d+ level\d+ lfo\d+/i.test(t.attributes.style)||/msolistparagraph/i.test(t.attributes.class)&&!!t.find(t=>t.isComment&&(0,o.html)(t).includes("supportLists")).length}function u(t,i){let n=t.attributes[r.TYPE_KEY],o=t.attributes[r.STYLE_KEY];return i.name===n&&i.attributes[r.STYLE_KEY]===o&&t.attributes[r.LEVEL_KEY]===i.attributes[r.LEVEL_KEY]}},42968:function(t,i,n){"use strict";n.d(i,{JElement:function(){return d}});var o=n(82749),r=n(99658),s=n(40273),a=n(82758),l=n(2748),u=n(38837);let c=new Set(a.INSEPARABLE_TAGS);class d{get isText(){return this.type===Node.TEXT_NODE}get isElement(){return this.type===Node.ELEMENT_NODE}get isComment(){return this.type===Node.COMMENT_NODE}get isSingle(){return c.has(this.name)}get length(){return this.children.length}static make(t,i=null){return new d(t,i)}wrap(t){var i;(0,u.assert)(null!=this.parent,"You can't wrap the root element");let n=d.make(document.createElement(t),this.parent),o=null!=(i=this.parent.children.indexOf(this))?i:-1;return -1===o?this.parent.append(n):this.parent.children[o]=n,n.append(this),n}append(t){return(0,u.assert)(t!==this,"Forbidden to add to yourself"),t.remove(),this.children.push(t),t.parent=this,this}get previousElement(){if(!this.parent)return null;let{children:t}=this.parent,i=t.indexOf(this);if(-1!==i){for(let n=i-1;n>=0;n-=1)if(t[n].isElement)return t[n]}return null}get lastElement(){let{children:t}=this;for(let i=t.length-1;i>=0;i-=1)if(t[i].isElement)return t[i];return null}get previous(){var t,i,n;return null!=(t=null!=(i=this.sibling(!1))?i:null==(n=this.parent)?void 0:n.previous)?t:null}get next(){var t,i,n;return null!=(t=null!=(i=this.sibling(!0))?i:null==(n=this.parent)?void 0:n.next)?t:null}sibling(t){if(!this.parent)return null;let{children:i}=this.parent,n=i.indexOf(this);return -1!==n&&i[n+(t?1:-1)]?i[n+(t?1:-1)]:null}forEach(t,i=!1){for(let n of[...this.children])if(!1===t(n)||i&&!1===n.forEach(t,!0))return!1}find(t,i=!0){let n=[];return this.forEach(i=>{t(i)&&n.push(i)},i),n}map(t){return this.children.map(t)}remove(){var t,i;let n=null==(t=this.parent)?void 0:t.children.indexOf(this);return null!=n&&-1!==n&&(null==(i=this.parent)||i.children.splice(n,1)),this}textBetween(t,i){let n=!1,o=[];return this.forEach(s=>{if(!n&&t(s)&&(n=!0),n&&s.isText&&o.push((0,r.html)(s)),n&&i(s))return!1},!0),o.join("")}constructor(t,i){(0,o._)(this,"parent",void 0),(0,o._)(this,"name",void 0),(0,o._)(this,"type",void 0),(0,o._)(this,"attributes",void 0),(0,o._)(this,"style",void 0),(0,o._)(this,"children",void 0),this.parent=i,this.name=t.nodeName.toLowerCase(),this.type=t.nodeType,this.attributes=function(t){let i={};if(l.Dom.isElement(t))for(let n=0,o=t.attributes;n<o.length;n+=1)i[o[n].name]=o[n].value;else i.nodeValue=t.nodeValue;return i}(t),this.style=new s.Style(this.attributes.style),this.children=[],t.childNodes.forEach(t=>this.children.push(d.make(t,this)))}}},97420:function(t,i,n){"use strict";n.d(i,{JElement:function(){return r.JElement},html:function(){return s.html},innerHTML:function(){return s.innerHTML},isLeaf:function(){return o.isLeaf},isList:function(){return o.isList},isPseudoLeaf:function(){return o.isPseudoLeaf},isSameType:function(){return o.isSameType}});var o=n(18594),r=n(42968),s=n(99658)},99658:function(t,i,n){"use strict";n.d(i,{html:function(){return a},innerHTML:function(){return u}});var o=n(82758),r=n(87612),s=n(49055);function a(t,i=()=>!0,n=!0,r){switch(!0){case t.isComment:case t.isText:{if(!i(t))return"";let{nodeValue:n}=t.attributes;return t.isComment?`<!--${n}-->`:n}case t.isElement:{let{attributes:o}=t,s=u(t,i,n,r);if(!t.attributes["jd-safe"]&&n&&0===s.replace(/[\n\t]/g,"").length&&!t.isSingle)return"";let a=Object.keys(o).map(t=>"style"===t||null==o[t]||/^jd-/.test(t)?"":`${t}="${c(o[t])}"`).filter(Boolean),{str:d}=t.style,h=c(d(t=>l(t,r)));if(h&&a.push(`style="${h}"`),n&&0===a.length&&["span","a"].includes(t.name))return s;let p=a.length?" "+a.join(" "):"";if(!i(t))return s;return t.isSingle?`<${t.name}${p}/>`:`<${t.name}${p}>${s}</${t.name}>`}default:if(!o.IS_PROD)throw Error("Need implementation for this type")}return""}function l(t,i){if(!i)return!0;if(l.cache.has(i)){var n;let o=null==(n=l.cache.get(i))?void 0:n.get(t);if((0,r.isBoolean)(o))return o}let o=i.some(i=>new RegExp(i).test(t)),s=l.cache.get(i)||new Map;return s.set(t,o),l.cache.set(i,s),o}function u(t,i=()=>!0,n=!0,o){let r=t.map(t=>a(t,i,n,o)).join("");return"p"===t.name&&0===(0,s.trim)(r).length&&(r="&nbsp;"),r}function c(t){return t.toString().replace(/"/g,"&quot;")}l.cache=new WeakMap},40273:function(t,i,n){"use strict";n.d(i,{Style:function(){return d}});var o=n(82749),r=n(31635),s=n(45219),a=n(70799),l=n(12475),u=n(49055),c=n(43712);class d{get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach(i=>t(i))}clear(){this._data={}}set(t,i){this._data[t]=i}get(t){var i;return null!=(i=this._data[t])?i:null}has(t){return void 0!==this._data[t]}add(t,i){return this._data=h(this.str()+";"+`${t}:${i}`),this}str(t=t=>!0){let i=Object.keys(this._data).filter(i=>i&&!/^mso-/.test(i)&&t(i)&&null!=this.get(i)),n=t=>(0,a.isString)(t)?/^0[a-z]+$/i.test(t)?"0":t:t.toString();return(["padding","margin"].forEach(t=>{if(this._data[t]){let o=i.indexOf(t),r=(0,c.calcMarginParts)(this._data[t]);["top","right","bottom","left"].forEach((s,a)=>{let l=`${t}-${s}`,u=this._data[l];null!=u&&(i.indexOf(l)<o||n(r[a])===n(u))&&-1!==i.indexOf(l)&&i.splice(i.indexOf(l),1)})}}),i.length)?i.map(t=>`${(0,l.kebabCase)(t)}:${this.get(t)}`).join(";"):""}constructor(t){(0,o._)(this,"_data",void 0),this._data=h(t)}}function h(t){return(function(t){let i={},n=[];for(let o=t.length-1;o>=0;o-=1){let r=t[o][0];i[r]||(i[r]=!0,n.unshift(t[o]))}return n})((null!=t?t:"").replace(/&quot;/g,'"').split(";").filter(Boolean).map(t=>(0,u.trim)(t).split(":").map(u.trim))).reduce((t,[i,n])=>(i&&n&&(t[i]=n),t),{})}(0,r.__decorate)([s.autobind],d.prototype,"forEach",null),(0,r.__decorate)([s.autobind],d.prototype,"clear",null),(0,r.__decorate)([s.autobind],d.prototype,"set",null),(0,r.__decorate)([s.autobind],d.prototype,"get",null),(0,r.__decorate)([s.autobind],d.prototype,"has",null),(0,r.__decorate)([s.autobind],d.prototype,"add",null),(0,r.__decorate)([s.autobind],d.prototype,"str",null)},51586:function(t,i,n){"use strict";n.d(i,{applyStylesPro:function(){return u}});var o=n(19606),r=n(2748),s=n(29960),a=n(76078),l=n(97420);function u(t,i,n,c=""){let d=document.createElement("iframe");d.style.display="none",document.body.appendChild(d);try{var h,p;let r=null!=(h=d.contentDocument)?h:null==(p=d.contentWindow)?void 0:p.document;if(!r)return i;r.open(),r.write(i),r.close();let u="jd-style";for(let t=0;t<r.styleSheets.length;t+=1)try{let i=r.styleSheets[t].cssRules;for(let t=0;t<i.length;t+=1)i[t].selectorText&&(0,a.$$)(i[t].selectorText,r.body).forEach(n=>{(0,s.attr)(n,u)||((0,s.attr)(n,u,(0,s.attr)(n,"style")||""),(0,s.attr)(n,"style","")),(0,s.attr)(n,"style",`${(0,s.attr)(n,"style")};${i[t].style.cssText}`)})}catch(t){}return(0,a.$$)(`[${u}]`,r.body).forEach(t=>{(0,s.attr)(t,"style",`${(0,s.attr)(t,"style")};${(0,s.attr)(t,u)}`)}),(0,o.transformWordToHtml)(t,l.JElement.make(r.body),n,c)}finally{r.Dom.safeRemove(d)}}},31269:function(t,i,n){"use strict";n.d(i,{calcListLevels:function(){return a}});var o=n(43712),r=n(10058),s=n(97420);function a(t){if(void 0!==t.attributes[r.LEVEL_KEY])return;let i=[(0,o.realPixelIndent)(t)],n=[t],a=t.next;for(;a;){if(a.isElement&&!a.attributes[r.LEVEL_KEY]&&(0,s.isPseudoLeaf)(a)){let t=(0,o.realPixelIndent)(a);t&&(i.push(t),n.push(a))}a=a.next}let l=Math.min(...i.filter(t=>t>0)),u=i.map(t=>Math.ceil(t/10));-1!==u.indexOf(0)&&(u=u.map(t=>t+1)),n.forEach((t,i)=>{t.attributes[r.LEVEL_KEY]=u[i],t.style.add("margin-left",`${Math.max((0,o.realPixelIndent)(t)-10*u[i]/l*40,0)}px`)})}},43712:function(t,i,n){"use strict";let o;function r(t){if(!t)return[0,0,0,0];let i=t.match(/(0|auto|(-?[.\d]+(?:\w+|%)))/g)||["0px"];switch(i.length){case 2:return[0,1,0,1].map(t=>i[t]);case 3:return[0,1,2,1].map(t=>i[t]);case 4:return[0,1,2,3].map(t=>i[t]);default:return[0,0,0,0].map(t=>i[t])}}function s(t){if("number"==typeof t)return t;if(/%$/.test(t))return 0;o||(Object.assign((o=document.createElement("div")).style,{position:"absolute",left:"-9999px",top:"-9999px",margin:"0",padding:"0",border:"0"}),document.body.append(o),setTimeout(()=>{null==o||o.remove(),o=null}));let i=0>parseFloat(t);i&&(t=t.replace("-","")),o.style.width=t;let n=o.clientWidth;return i?-n:n}function a(t){let{style:i}=t,n=i.keys.filter(t=>/margin/.test(t)),o=Math.max(n.indexOf("margin-left"),n.indexOf("margin")),a=o>0?n[o]:"margin-left";return s("margin"===a?r(i.get("margin"))[3]||0:i.get(a)||0)}function l(t){return/\d.\d/.test(t)?t.split(".").pop()||null:/^\d/.test(t)?(parseInt(t,10)||1).toString():null}n.d(i,{calcMarginParts:function(){return r},calcStartBySymbol:function(){return l},convertUnitToPx:function(){return s},realPixelIndent:function(){return a}})},30717:function(t,i,n){"use strict";n.d(i,{applyStylesPro:function(){return o.applyStylesPro}});var o=n(51586);n(31269),n(19606)},19606:function(t,i,n){"use strict";n.d(i,{transformWordToHtml:function(){return a}});var o=n(49055),r=n(64693),s=n(97420);function a(t,i,n,a){let l={jodit:t,rtf:a};return i.forEach(function t(i){if(i){for(let t of r.cases)if(null==(i=t(i,l)))break;null==i||i.forEach(t)}}),n&&i.forEach(t=>{t.style.clear()},!0),(0,o.trim)((0,s.innerHTML)(i,t=>!t.isComment,!0,t.o.pasteFromWord.allowedStyleProps))}},58858:function(t,i,n){"use strict";var o=n(82749);n(13085);var r=n(30717),s=n(82758),a=n(70799),l=n(117),u=n(31571),c=n(2692);class d extends u.pasteFromWord{insertFromWordByType(t,i,n,o){if(this.j.o.pasteFromWord.enable&&(n===s.INSERT_AS_HTML||n===s.INSERT_AS_TEXT)){if(i=(0,r.applyStylesPro)(this.j,i,n===s.INSERT_AS_TEXT,o.rtf),this.j.o.beautifyHTML){var u;let t=null==(u=this.j.events)?void 0:u.fire("beautifyHTML",i);(0,a.isString)(t)&&(i=t)}(0,l.pasteInsertHtml)(t,this.j,i);return}return super.insertFromWordByType(t,i,n,o)}}(0,o._)(d,"requires",["license"]),c.JoditPro.plugins.remove("pasteFromWord"),c.JoditPro.plugins.add("pasteFromWordPro",d)},12324:function(t,i,n){"use strict";var o=n(6441);o.Config.prototype.showBlocks={enable:!1,color:"#ccc",tagList:["html","body","div","span","applet","object","iframe","h1","h2","h3","h4","h5","h6","p","blockquote","pre","a","abbr","acronym","address","big","cite","code","del","dfn","em","img","ins","kbd","q","s","samp","small","strike","strong","sub","sup","tt","var","b","u","i","center","dl","dt","dd","fieldset","form","label","legend","caption","th","td","li","ol","ul","article","aside","canvas","details","embed","figure","figcaption","footer","header","hgroup","menu","nav","output","ruby","section","summary","time","mark","audio","video"]},o.Config.prototype.controls.showBlocks={isActive(t){return!!t.e.fire("showBlocksEnabled")},tooltip:"Show Blocks",command:"toggleShowBlocks"}},7085:function(t){t.exports={"Show Blocks":"تظهر كتل"}},42350:function(t){t.exports={"Show Blocks":"Uk\xe1zat Bloky"}},53189:function(t){t.exports={"Show Blocks":"Zeigen Bl\xf6cke"}},48154:function(t){t.exports={"Show Blocks":"Mostrar Bloques"}},59551:function(t){t.exports={"Show Blocks":"نشان می دهد بلوک"}},41858:function(t){t.exports={"Show Blocks":"Afficher Les Blocs"}},78777:function(t){t.exports={"Show Blocks":"תראה רחובות"}},25321:function(t){t.exports={"Show Blocks":"Mutasd Meg Blokkok"}},27847:function(t){t.exports={"Show Blocks":"Menunjukkan Blok"}},45198:function(t,i,n){"use strict";n.r(i),n.d(i,{ar:function(){return r.a},cs_cz:function(){return a.a},de:function(){return u.a},es:function(){return d.a},fa:function(){return p.a},fr:function(){return m.a},he:function(){return b.a},hu:function(){return y.a},id:function(){return C.a},it:function(){return F.a},ja:function(){return k.a},ko:function(){return A.a},nl:function(){return x.a},pl:function(){return B.a},pt_br:function(){return j.a},ru:function(){return L.a},tr:function(){return R.a},zh_cn:function(){return O.a},zh_tw:function(){return H.a}});var o=n(7085),r=n.n(o),s=n(42350),a=n.n(s),l=n(53189),u=n.n(l),c=n(48154),d=n.n(c),h=n(59551),p=n.n(h),f=n(41858),m=n.n(f),g=n(78777),b=n.n(g),v=n(25321),y=n.n(v),_=n(27847),C=n.n(_),w=n(23287),F=n.n(w),E=n(73035),k=n.n(E),S=n(97028),A=n.n(S),D=n(26436),x=n.n(D),I=n(6602),B=n.n(I),T=n(86401),j=n.n(T),P=n(54023),L=n.n(P),M=n(8432),R=n.n(M),z=n(58366),O=n.n(z),N=n(46954),H=n.n(N)},23287:function(t){t.exports={"Show Blocks":"Visualizza Blocchi"}},73035:function(t){t.exports={"Show Blocks":"ショーのブロック"}},97028:function(t){t.exports={"Show Blocks":"쇼 블록"}},26436:function(t){t.exports={"Show Blocks":"Toon Blokken"}},6602:function(t){t.exports={"Show Blocks":"Pokaż Bloki"}},86401:function(t){t.exports={"Show Blocks":"Mostrar Blocos"}},54023:function(t){t.exports={"Show Blocks":"Показать Блоки"}},8432:function(t){t.exports={"Show Blocks":"Haritayı Blokları"}},58366:function(t){t.exports={"Show Blocks":"显示块"}},46954:function(t){t.exports={"Show Blocks":"แสดงช่วงตึก"}},47682:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(12324);var s=n(45198),a=n(78879),l=n.n(a),u=n(65478),c=n(2748),d=n(580),h=n(50911),p=n(12153),f=n(2692);class m extends h.Plugin{get style(){return(0,d.getContainer)(this.jodit,m,"style",!0)}enable(){this.isEnabled=!0;let t=this.j.o.iframe?"body":".jodit-wysiwyg",{tagList:i,color:n}=this.j.o.showBlocks;this.style.innerHTML=i.map(i=>{var o;return`${t} ${i}{
594
596
  outline: 1px dashed ${n};
595
597
  background-image: url("${o='<svg xmlns="http://www.w3.org/2000/svg" width="50px"><text dominant-baseline="hanging" text-anchor="end" style="fill: '+n+';font: 10px sans-serif" x="50px" y="0">'+i+"</text></svg>",`data:image/svg+xml;utf8,${escape(o)}`}");
596
598
  background-position: top 2px ${"rtl"===this.j.o.direction?"left":"right"} 4px;
597
599
  background-repeat: no-repeat;
598
600
  position: relative;
599
- }`}).join("")}disable(){this.isEnabled=!1;let t=(0,u.cached)(this,"style");t&&(t.innerHTML="")}toggle(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}afterInit(t){t.e.on("showBlocksEnabled",()=>this.isEnabled),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}beforeDestruct(t){this.disable(),c.Dom.safeRemove((0,u.cached)(this,"style"))}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"showBlocks",group:"state"}]),(0,o._)(this,"isEnabled",!1),(0,d.extendLang)(s),p.Icon.set("showBlocks",l())}}(0,o._)(m,"requires",["license"]),(0,r.__decorate)([u.cache],m.prototype,"style",null),(0,r.__decorate)([u.autobind],m.prototype,"enable",null),(0,r.__decorate)([u.autobind],m.prototype,"disable",null),(0,r.__decorate)([u.autobind],m.prototype,"toggle",null),f.JoditPro.plugins.add("show-blocks",m)},28609:function(t,i,n){"use strict";var o=n(69341),r=n(5440),s=n(78955),a=n.n(s),l=n(6441);l.Config.prototype.customStyles={definitions:[]},l.Config.prototype.controls.style={tooltip:"Styles",icon:a(),isDisabled(t){return!t.o.customStyles.definitions.length},isActive(t){let i=t.o.customStyles.definitions;return!!i.length&&null!=(0,o.detectActiveStyle)(t,i)},update(t,i){var n;let r=t.o.customStyles.definitions;if(!r.length)return;let s=(0,o.detectActiveStyle)(t,r),a=(null==(n=i.control)?void 0:n.component)==="select";(t.o.textIcons||a)&&(s?i.state.text=s.name:i.state.text=a?t.i18n("Styles"):"")},exec(){return!1},popup(t,i,n){let o=t.o.customStyles.definitions;if(!o.length)return!1;t.s.current()||t.s.focus(),t.s.save();let s=(0,r.buildStylePopup)(t,o,()=>{t.s.restore(),n()});return t.e.one("beforePopupClose",()=>{t.s.restore()}),s}}},31105:function(t,i,n){"use strict";n.d(i,{applyStyle:function(){return c}});var o=n(69341),r=n(82758),s=n(2748);function a(t,i){let n=t.s.current();if(!n)return null;if(r.IS_BLOCK.test(i.element))return s.Dom.closest(n,s.Dom.isBlock,t.editor);let o=s.Dom.isElement(n)?n:n.parentNode;for(;o&&o!==t.editor;){if(s.Dom.isElement(o)&&o.nodeName.toLowerCase()===i.element)return o;o=o.parentNode}return null}function l(t,i){for(let n of i)t.classList.remove(n);""===t.className&&t.removeAttribute("class")}function u(t){var i;if(t.attributes)return{element:t.element,attributes:t.attributes};let n=null==(i=t.classes)?void 0:i.filter(Boolean)[0];return n?{element:t.element,attributes:{class:n}}:{element:t.element}}function c(t,i,n){let c=(0,o.detectActiveStyle)(t,n);(!c||r.IS_BLOCK.test(c.element)!==r.IS_BLOCK.test(i.element)||(t.s.commitStyle(u(c)),c.attributes||function(t,i){var n;let o=null==(n=i.classes)?void 0:n.filter(Boolean);if(!o||o.length<=1)return;let u=t.s.current();if(u)if(r.IS_BLOCK.test(i.element)){let i=s.Dom.closest(u,s.Dom.isBlock,t.editor);i&&l(i,o.slice(1))}else{let n=a(t,i);n&&(l(n,o.slice(1)),"span"!==n.nodeName.toLowerCase()||n.attributes.length||s.Dom.unwrap(n))}}(t,c),c!==i))&&(t.s.commitStyle(u(i)),i.attributes||function(t,i){var n;let o=null==(n=i.classes)?void 0:n.filter(Boolean);if(!o||o.length<=1)return;let r=a(t,i);if(r)for(let t=1;t<o.length;t++)r.classList.add(o[t])}(t,i))}},8060:function(t,i,n){"use strict";n.d(i,{classifyDefinitions:function(){return r}});var o=n(82758);function r(t){let i=[],n=[];for(let r of t)o.IS_BLOCK.test(r.element)?i.push(r):n.push(r);let r=[];return i.length&&r.push({title:"Block styles",definitions:i}),n.length&&r.push({title:"Text styles",definitions:n}),r}},69341:function(t,i,n){"use strict";n.d(i,{detectActiveStyle:function(){return u}});var o=n(82758),r=n(2748),s=n(29960),a=n(41180);function l(t,i){var n;if(t.nodeName.toLowerCase()!==i.element)return!1;if(i.attributes){for(let[n,o]of Object.entries(i.attributes))if(null!=o){if("class"===n){if("string"==typeof o&&!t.classList.contains(o))return!1}else if("style"===n){if("object"==typeof o&&null!=o){for(let[i,n]of Object.entries(o))if(null!=n&&(0,a.css)(t,i,!0)!==String(n))return!1}}else if((0,s.attr)(t,n)!==String(o))return!1}return!0}let o=null==(n=i.classes)?void 0:n.filter(Boolean);return null==o||!o.length||o.every(i=>t.classList.contains(i))}function u(t,i){let n=t.s.current();if(!n)return null;for(let s of i)if(o.IS_BLOCK.test(s.element)){let i=r.Dom.closest(n,r.Dom.isBlock,t.editor);if(i&&l(i,s))return s}else{let i=r.Dom.isElement(n)?n:n.parentNode;for(;i&&i!==t.editor;){if(r.Dom.isElement(i)&&l(i,s))return s;i=i.parentNode}}return null}},75554:function(t,i,n){"use strict";var o=n(82749);n(28609);var r=n(50911),s=n(2692);class a extends r.Plugin{afterInit(t){}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"style",group:"font"}])}}(0,o._)(a,"requires",["license"]),s.JoditPro.plugins.add("style",a)},5440:function(t,i,n){"use strict";n.d(i,{buildStylePopup:function(){return u}});var o=n(31105),r=n(8060),s=n(69341),a=n(29960);let l="jodit-style-popup";function u(t,i,n){let u=(0,r.classifyDefinitions)(i),c=(0,s.detectActiveStyle)(t,i),d=t.c.div(l);for(let r of u){let s=t.c.div(`${l}__group-title`);s.textContent=t.i18n(r.title),d.appendChild(s);let u=t.c.div(`${l}__grid`);for(let s of r.definitions){let r=t.c.element("button");r.type="button",r.className=`${l}__card`+(c===s?` ${l}__card_active_true`:"");let d=t.c.div(`${l}__card-preview`),f=t.c.element(s.element);if(s.attributes)(0,a.attr)(f,s.attributes);else{var h,p;for(let t of null!=(h=null==(p=s.classes)?void 0:p.filter(Boolean))?h:[])f.classList.add(t)}f.textContent=s.name,d.appendChild(f),r.appendChild(d);let m=t.c.div(`${l}__card-label`);m.textContent=s.name,r.appendChild(m),t.e.on(r,"click",()=>{t.s.focus(),(0,o.applyStyle)(t,s,i),t.synchronizeValues(),n()}),u.appendChild(r)}d.appendChild(u)}return d}},58475:function(t,i,n){"use strict";var o=n(54296),r=n(18993),s=n.n(r),a=n(6441);a.Config.prototype.contentTemplates={definitions:[]},a.Config.prototype.controls.templates={tooltip:"Templates",icon:s(),isDisabled(t){return!t.o.contentTemplates.definitions.length},exec(){return!1},popup(t,i,n){let r=t.o.contentTemplates.definitions;if(!r.length)return!1;t.s.current()||t.s.focus(),t.s.save();let s=(0,o.buildTemplatesPopup)(t,r,()=>{t.s.restore(),n()});return t.e.one("beforePopupClose",()=>{t.s.restore()}),s}}},61886:function(t,i,n){"use strict";var o=n(82749);n(58475);var r=n(50911),s=n(2692);class a extends r.Plugin{afterInit(t){}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"templates",group:"insert"}])}}(0,o._)(a,"requires",["license"]),s.JoditPro.plugins.add("templates",a)},54296:function(t,i,n){"use strict";n.d(i,{buildTemplatesPopup:function(){return r}});let o="jodit-templates-popup";function r(t,i,n){let r=t.c.div(o);for(let s of i){let i=t.c.element("button");i.type="button",i.className=`${o}__card`;let a=t.c.div(`${o}__card-preview`);if(s.image){let i=t.c.element("img");i.src=s.image,i.alt=s.title,a.appendChild(i)}else{let i=t.c.div(`${o}__card-preview-inner`);i.innerHTML=s.html,a.appendChild(i)}i.appendChild(a);let l=t.c.div(`${o}__card-info`),u=t.c.div(`${o}__card-title`);u.textContent=s.title,l.appendChild(u);let c=t.c.div(`${o}__card-description`);c.textContent=s.description,l.appendChild(c),i.appendChild(l),t.e.on(i,"click",()=>{t.s.focus(),t.s.insertHTML(s.html),t.synchronizeValues(),n()}),r.appendChild(i)}return r}},64839:function(t,i,n){"use strict";var o=n(11373),r=n.n(o),s=n(6441),a=n(2748),l=n(12153);s.Config.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:t=>t.createInside.element("input",{type:"checkbox",tabindex:-1})},s.Config.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(t){let i=t.s.current();return!!(i&&a.Dom.closest(i,t=>a.Dom.isElement(t)&&a.Dom.isTag(t,"ul")&&t.classList.contains("todo-list"),t.editor))}},l.Icon.set("todo-list",r())},19374:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(64839);var s=n(82758),a=n(65478),l=n(2748),u=n(43555),c=n(50911),d=n(59242),h=n(2692);class p extends c.Plugin{afterInit(t){t.registerCommand("todoList",this.onCommand)}onCommand(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1}__prependInputLabel(t){let{jodit:i}=this,{labelClassName:n,inputFactory:o}=this.j.o.todoList;if(t.querySelector("label."+n))return;let r=i.createInside.element("label",{contenteditable:"false",class:n}),s=o(i);r.appendChild(s),l.Dom.prepend(t,r)}__afterToggleList(t,i){return(t===d.CHANGE||t===d.REPLACE)&&this.__isOwnCommand?this.__appendInputs(i):t===d.UNWRAP||t===d.REPLACE||t===d.CHANGE?this.__removeInputs(i):void 0}__appendInputs(t){t.querySelectorAll("li").forEach(this.__prependInputLabel)}__removeInputs(t){let{labelClassName:i}=this.j.o.todoList;t.querySelectorAll("label."+i).forEach(l.Dom.safeRemove)}__beforeToggleOrderedList(t,i,n){var o;let r="__beforeToggleOrderedList";if(t!==d.REPLACE&&(i.classList.contains(this.j.o.todoList.className)||n.isApplied(i,r))&&("ul"===n.element||"ol"===n.element)&&(null==(o=n.options.attributes)?void 0:o.class)!==this.j.o.todoList.className){let t=l.Dom.replace(i,n.element,this.jodit.createInside);return n.setApplied(t,r),this.__removeInputs(t),t}}__afterEnter(){(0,u.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}__afterTab(){(0,u.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(l.Dom.safeRemove)}__changeSelection(t){let i=this.j.s.current();this.isTodoLeafLabel(i)&&(t.preventDefault(),t.stopPropagation(),this.j.s.setCursorAfter(i))}__isEmptyListLeaf(t){return l.Dom.isEmpty(t,t=>!("input"===t.nodeName.toLowerCase()&&this.isTodoLeafLabel(t.parentElement))&&s.NO_EMPTY_TAGS.has(t.tagName.toLowerCase()))}__backSpaceBeforeCases(t,i){if(t){let t=l.Dom.findNotEmptySibling(i,!0);this.isTodoLeafLabel(t)&&l.Dom.safeRemove(t)}}__isInvisibleForCursor(t){if(this.isTodoLeafLabel(t))return!0}__backSpaceAfterDelete(){let{labelClassName:t}=this.j.o.todoList;(0,u.$$)("label."+t,this.jodit.editor).forEach(t=>{t.closest("ul."+this.j.o.todoList.className)?t.previousSibling&&t.parentElement&&l.Dom.prepend(t.parentElement,t):l.Dom.safeRemove(t)})}__afterWrapList(t,i){t===d.WRAP&&this.__appendInputs(i)}__onClickInput(t){let i=t.target;i&&l.Dom.isTag(i,"input")&&"checkbox"===i.type&&this.isTodoLeafLabel(i.parentElement)&&(0,u.attr)(i,"checked",i.checked?"checked":null)}isTodoLeafLabel(t){let{labelClassName:i}=this.j.o.todoList;return l.Dom.isHTMLElement(t)&&t.classList.contains(i)}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"todoList",group:"list"}]),(0,o._)(this,"__isOwnCommand",!1)}}(0,o._)(p,"requires",["license"]),(0,r.__decorate)([a.autobind],p.prototype,"onCommand",null),(0,r.__decorate)([a.autobind],p.prototype,"__prependInputLabel",null),(0,r.__decorate)([(0,a.watch)(":commitStyleAfterToggleList")],p.prototype,"__afterToggleList",null),(0,r.__decorate)([(0,a.watch)(":commitStyleBeforeUnwrapList")],p.prototype,"__beforeToggleOrderedList",null),(0,r.__decorate)([(0,a.watch)(":afterEnter")],p.prototype,"__afterEnter",null),(0,r.__decorate)([(0,a.watch)(":afterTab")],p.prototype,"__afterTab",null),(0,r.__decorate)([(0,a.watch)("j.ed:selectionchange"),(0,a.watch)(":afterEnter")],p.prototype,"__changeSelection",null),(0,r.__decorate)([(0,a.watch)(":enterIsEmptyListLeaf")],p.prototype,"__isEmptyListLeaf",null),(0,r.__decorate)([(0,a.watch)(":backSpaceBeforeCases")],p.prototype,"__backSpaceBeforeCases",null),(0,r.__decorate)([(0,a.watch)(":backSpaceIsMovedIgnore"),(0,a.watch)(":isInvisibleForCursor")],p.prototype,"__isInvisibleForCursor",null),(0,r.__decorate)([(0,a.watch)(":backSpaceAfterDelete")],p.prototype,"__backSpaceAfterDelete",null),(0,r.__decorate)([a.autobind],p.prototype,"__afterWrapList",null),(0,r.__decorate)([(0,a.watch)(":click")],p.prototype,"__onClickInput",null),(0,r.__decorate)([a.autobind],p.prototype,"isTodoLeafLabel",null),h.JoditPro.plugins.add("todo-list",p)},20104:function(t,i,n){"use strict";var o=n(74922),r=n.n(o),s=n(34575),a=n.n(s),l=n(6441),u=n(12153);l.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},cloudProviderOptions:{url:"https://cloud.xdsoft.net",key:""},defaultSourceLang:"",defaultTargetLang:"de"},l.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,i,{control:n}){t.execCommand("translate"+n.name)},mods:{stroke:!1}}},u.Icon.set("translate",a()).set("translate-swap",r())},50090:function(t,i,n){"use strict";n.d(i,{CloudTranslateProvider:function(){return l}});var o=n(82749),r=n(82758),s=n(38837),a=n(80942);class l{__fetch(t,i={}){let n=this.jodit.o.translate.cloudProviderOptions;return(0,s.assert)(n,"Set cloudProviderOptions"),this.jodit.fetch(n.url+t+"?key="+n.key,{method:"POST",data:i,contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){r.IS_PROD}})}translate(t,i,n){let o={text:t,targetLanguageCode:n};return i&&(o.sourceLanguageCode=i),this.__fetch("/v1/translate",o).then(t=>({text:t.text}))}supportedLanguages(){return Promise.resolve({langs:a.languages})}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t}}},27834:function(t,i,n){"use strict";n.d(i,{GoogleTranslateProvider:function(){return c}});var o=n(82749),r=n(56075),s=n(11886),a=n(82758),l=n(38837),u=n(80942);class c{__fetch(t,i={}){let n=this.jodit.o.translate.googleProviderOptions;return(0,l.assert)(n,"Set googleProviderOptions"),this.jodit.fetch(n.url+"?key="+n.key,{method:"POST",data:(0,s._)((0,r._)({},i),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){a.IS_PROD}})}translate(t,i,n){let o={q:t,target:n,format:"html"};return i&&(o.source=i),this.__fetch("translate",o).then(t=>({text:t.data.translations[0].translatedText}))}supportedLanguages(){return Promise.resolve({langs:u.languages})}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t}}},80942:function(t,i,n){"use strict";n.d(i,{languages:function(){return o}});let o={"Detect language":"auto",Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},73534:function(t,i,n){"use strict";n.d(i,{getSelectionFragments:function(){return r}});var o=n(2748);function r(t){let i=[],n=t.s.expandSelection().sel;if(!n||0===n.rangeCount||n.isCollapsed)return i;t.s.range.commonAncestorContainer.normalize();let r=t.s.range,{commonAncestorContainer:u,startContainer:c,endContainer:d,startOffset:h,endOffset:p}=r;if(c===d){if(o.Dom.isText(c))return[a(c,h,p)];if(p-h==1){let t=c.childNodes[h];return o.Dom.isText(t)?[a(t,0,t.nodeValue.length)]:[l(t)]}if(0===h&&c.childNodes.length===p)return[l(c)];for(let t=h;t<p;t++){let n=c.childNodes[t];o.Dom.isText(n)?i.push(a(n,0,n.nodeValue.length)):i.push(l(n))}return i}let f=new Set,m=t.ed.createTreeWalker(u,NodeFilter.SHOW_ALL,{acceptNode:t=>!r.intersectsNode(t)||o.Dom.closest(t,t=>t&&f.has(t),u)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),g=m.nextNode();for(;g;){if(o.Dom.isElement(g)&&s(r,g))f.add(g),i.push(l(g));else if(o.Dom.isText(g)&&s(r,g))i.push(a(g,0,g.nodeValue.length));else if(o.Dom.isText(g)){let t=0,n=g.nodeValue.length;g===c&&(t=h),g===d&&(n=p),i.push(a(g,t,n))}g=m.nextNode()}return i}let s=(t,i)=>{let n=document.createRange();try{n.selectNodeContents(i)}catch(t){n.selectNode(i)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,n)&&t.compareBoundaryPoints(Range.END_TO_END,n)>=0};function a(t,i,n){return{text:t.nodeValue.slice(i,n),replace:o=>{t.nodeValue=t.nodeValue.slice(0,i)+o+t.nodeValue.slice(n)}}}function l(t){return{text:t.innerHTML,replace:i=>{t.innerHTML=i}}}},73098:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(31635);n(20104);var a=n(50090),l=n(27834),u=n(33124),c=n(73534),d=n(65478),h=n(23282),p=n(70799),f=n(38837),m=n(50911),g=n(10830),b=n(2692);class v extends m.Plugin{__getProvider(){let{provider:t}=this.jodit.options.translate;if((0,p.isString)(t))switch(t){case"google":return new l.GoogleTranslateProvider(this.j);case"cloud":return new a.CloudTranslateProvider(this.j);default:throw Error("Unknown provider")}return(0,f.assert)((0,h.isFunction)(t),"Provider must be a function"),t(this.jodit)}afterInit(t){let i=this.__getProvider();t.registerCommand("translateOptions",{exec:()=>(0,o._)(function*(){let n=this.state,o=t.dlg();o.setHeader("Translate options");let r=yield i.supportedLanguages(),s="source"in r?r.source.langs:r.langs,a="target"in r?r.target.langs:r.langs,l=new u.UITranslateSettings(o,this.state,{sourceList:s,targetList:a,onChange(t){n=t}});o.setContent(l),o.setFooter([(0,g.Button)(t,"cancel","Cancel").onAction(()=>o.close()),(0,g.Button)(t,"ok","Save","primary").onAction(()=>{this.state=n,o.close()})]),l.bindDestruct(o),o.setSize(500,400).open(!0)}).call(this),hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:()=>{let n=(0,c.getSelectionFragments)(t).filter(t=>t.text.trim().length>0);if(!n.length)return void t.message.error("Select text for translate");let o=this.state.sourceLang&&"auto"!==this.state.sourceLang?this.state.sourceLang:"",r=this.state.targetLang;return Promise.all(n.map(n=>{i.translate(n.text,o,r).then(t=>{n.replace(t.text)}).catch(i=>{t.message.error((0,p.isString)(i)?i:i.message)})})).then(()=>{t.synchronizeValues()})},hotkeys:t.o.translate.hotkeys.translateSelection})}beforeDestruct(t){}constructor(...t){super(...t),(0,r._)(this,"buttons",[{name:"translate.translate",group:"insert"}]),(0,r._)(this,"state",{sourceLang:this.jodit.o.translate.defaultSourceLang||"en",targetLang:this.jodit.o.translate.defaultTargetLang})}}(0,r._)(v,"requires",["license"]),(0,s.__decorate)([d.persistent],v.prototype,"state",void 0),b.JoditPro.plugins.add("translate",v)},67082:function(t,i,n){"use strict";n.d(i,{UITranslateList:function(){return p}});var o=n(82749),r=n(31635),s=n(82758),a=n(65478),l=n(2748),u=n(21537),c=n(29960),d=n(48538),h=n(80256);class p extends d.UIElement{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){let i=[];return(Array.isArray(t.list)?t.list:Object.keys(t.list).map(i=>({title:i,code:t.list[i]}))).forEach(t=>{let n=t.code;i.push(`<a role='button' tabindex='0' class='&__item' data-lang='${n}'>
601
+ }`}).join("")}disable(){this.isEnabled=!1;let t=(0,u.cached)(this,"style");t&&(t.innerHTML="")}toggle(){this.isEnabled?this.disable():this.enable(),this.j.e.fire("updateToolbar")}afterInit(t){t.e.on("showBlocksEnabled",()=>this.isEnabled),t.registerCommand("enableShowBlocks",this.enable).registerCommand("disableShowBlocks",this.disable).registerCommand("toggleShowBlocks",this.toggle),this.j.o.showBlocks.enable&&this.enable()}beforeDestruct(t){this.disable(),c.Dom.safeRemove((0,u.cached)(this,"style"))}constructor(t){super(t),(0,o._)(this,"buttons",[{name:"showBlocks",group:"state"}]),(0,o._)(this,"isEnabled",!1),(0,d.extendLang)(s),p.Icon.set("showBlocks",l())}}(0,o._)(m,"requires",["license"]),(0,r.__decorate)([u.cache],m.prototype,"style",null),(0,r.__decorate)([u.autobind],m.prototype,"enable",null),(0,r.__decorate)([u.autobind],m.prototype,"disable",null),(0,r.__decorate)([u.autobind],m.prototype,"toggle",null),f.JoditPro.plugins.add("show-blocks",m)},28609:function(t,i,n){"use strict";var o=n(69341),r=n(5440),s=n(78955),a=n.n(s),l=n(6441);l.Config.prototype.customStyles={definitions:[]},l.Config.prototype.controls.style={tooltip:"Styles",icon:a(),isDisabled(t){return!t.o.customStyles.definitions.length},isActive(t){let i=t.o.customStyles.definitions;return!!i.length&&null!=(0,o.detectActiveStyle)(t,i)},update(t,i){var n;let r=t.o.customStyles.definitions;if(!r.length)return;let s=(0,o.detectActiveStyle)(t,r),a=(null==(n=i.control)?void 0:n.component)==="select";(t.o.textIcons||a)&&(s?i.state.text=s.name:i.state.text=a?t.i18n("Styles"):"")},exec(){return!1},popup(t,i,n){let o=t.o.customStyles.definitions;if(!o.length)return!1;t.s.current()||t.s.focus(),t.s.save();let s=(0,r.buildStylePopup)(t,o,()=>{t.s.restore(),n()});return t.e.one("beforePopupClose",()=>{t.s.restore()}),s}}},31105:function(t,i,n){"use strict";n.d(i,{applyStyle:function(){return c}});var o=n(69341),r=n(82758),s=n(2748);function a(t,i){let n=t.s.current();if(!n)return null;if(r.IS_BLOCK.test(i.element))return s.Dom.closest(n,s.Dom.isBlock,t.editor);let o=s.Dom.isElement(n)?n:n.parentNode;for(;o&&o!==t.editor;){if(s.Dom.isElement(o)&&o.nodeName.toLowerCase()===i.element)return o;o=o.parentNode}return null}function l(t,i){for(let n of i)t.classList.remove(n);""===t.className&&t.removeAttribute("class")}function u(t){var i;if(t.attributes)return{element:t.element,attributes:t.attributes};let n=null==(i=t.classes)?void 0:i.filter(Boolean)[0];return n?{element:t.element,attributes:{class:n}}:{element:t.element}}function c(t,i,n){let c=(0,o.detectActiveStyle)(t,n);(!c||r.IS_BLOCK.test(c.element)!==r.IS_BLOCK.test(i.element)||(t.s.commitStyle(u(c)),c.attributes||function(t,i){var n;let o=null==(n=i.classes)?void 0:n.filter(Boolean);if(!o||o.length<=1)return;let u=t.s.current();if(u)if(r.IS_BLOCK.test(i.element)){let i=s.Dom.closest(u,s.Dom.isBlock,t.editor);i&&l(i,o.slice(1))}else{let n=a(t,i);n&&(l(n,o.slice(1)),"span"!==n.nodeName.toLowerCase()||n.attributes.length||s.Dom.unwrap(n))}}(t,c),c!==i))&&(t.s.commitStyle(u(i)),i.attributes||function(t,i){var n;let o=null==(n=i.classes)?void 0:n.filter(Boolean);if(!o||o.length<=1)return;let r=a(t,i);if(r)for(let t=1;t<o.length;t++)r.classList.add(o[t])}(t,i))}},8060:function(t,i,n){"use strict";n.d(i,{classifyDefinitions:function(){return r}});var o=n(82758);function r(t){let i=[],n=[];for(let r of t)o.IS_BLOCK.test(r.element)?i.push(r):n.push(r);let r=[];return i.length&&r.push({title:"Block styles",definitions:i}),n.length&&r.push({title:"Text styles",definitions:n}),r}},69341:function(t,i,n){"use strict";n.d(i,{detectActiveStyle:function(){return u}});var o=n(82758),r=n(2748),s=n(29960),a=n(41180);function l(t,i){var n;if(t.nodeName.toLowerCase()!==i.element)return!1;if(i.attributes){for(let[n,o]of Object.entries(i.attributes))if(null!=o){if("class"===n){if("string"==typeof o&&!t.classList.contains(o))return!1}else if("style"===n){if("object"==typeof o&&null!=o){for(let[i,n]of Object.entries(o))if(null!=n&&(0,a.css)(t,i,!0)!==String(n))return!1}}else if((0,s.attr)(t,n)!==String(o))return!1}return!0}let o=null==(n=i.classes)?void 0:n.filter(Boolean);return null==o||!o.length||o.every(i=>t.classList.contains(i))}function u(t,i){let n=t.s.current();if(!n)return null;for(let s of i)if(o.IS_BLOCK.test(s.element)){let i=r.Dom.closest(n,r.Dom.isBlock,t.editor);if(i&&l(i,s))return s}else{let i=r.Dom.isElement(n)?n:n.parentNode;for(;i&&i!==t.editor;){if(r.Dom.isElement(i)&&l(i,s))return s;i=i.parentNode}}return null}},75554:function(t,i,n){"use strict";var o=n(82749);n(28609);var r=n(50911),s=n(2692);class a extends r.Plugin{afterInit(t){}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"style",group:"font"}])}}(0,o._)(a,"requires",["license"]),s.JoditPro.plugins.add("style",a)},5440:function(t,i,n){"use strict";n.d(i,{buildStylePopup:function(){return u}});var o=n(31105),r=n(8060),s=n(69341),a=n(29960);let l="jodit-style-popup";function u(t,i,n){let u=(0,r.classifyDefinitions)(i),c=(0,s.detectActiveStyle)(t,i),d=t.c.div(l);for(let r of u){let s=t.c.div(`${l}__group-title`);s.textContent=t.i18n(r.title),d.appendChild(s);let u=t.c.div(`${l}__grid`);for(let s of r.definitions){let r=t.c.element("button");r.type="button",r.className=`${l}__card`+(c===s?` ${l}__card_active_true`:"");let d=t.c.div(`${l}__card-preview`),f=t.c.element(s.element);if(s.attributes)(0,a.attr)(f,s.attributes);else{var h,p;for(let t of null!=(h=null==(p=s.classes)?void 0:p.filter(Boolean))?h:[])f.classList.add(t)}f.textContent=s.name,d.appendChild(f),r.appendChild(d);let m=t.c.div(`${l}__card-label`);m.textContent=s.name,r.appendChild(m),t.e.on(r,"click",()=>{t.s.focus(),(0,o.applyStyle)(t,s,i),t.synchronizeValues(),n()}),u.appendChild(r)}d.appendChild(u)}return d}},58475:function(t,i,n){"use strict";var o=n(54296),r=n(18993),s=n.n(r),a=n(6441);a.Config.prototype.contentTemplates={definitions:[]},a.Config.prototype.controls.templates={tooltip:"Templates",icon:s(),isDisabled(t){return!t.o.contentTemplates.definitions.length},exec(){return!1},popup(t,i,n){let r=t.o.contentTemplates.definitions;if(!r.length)return!1;t.s.current()||t.s.focus(),t.s.save();let s=(0,o.buildTemplatesPopup)(t,r,()=>{t.s.restore(),n()});return t.e.one("beforePopupClose",()=>{t.s.restore()}),s}}},61886:function(t,i,n){"use strict";var o=n(82749);n(58475);var r=n(50911),s=n(2692);class a extends r.Plugin{afterInit(t){}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"templates",group:"insert"}])}}(0,o._)(a,"requires",["license"]),s.JoditPro.plugins.add("templates",a)},54296:function(t,i,n){"use strict";n.d(i,{buildTemplatesPopup:function(){return r}});let o="jodit-templates-popup";function r(t,i,n){let r=t.c.div(o);for(let s of i){let i=t.c.element("button");i.type="button",i.className=`${o}__card`;let a=t.c.div(`${o}__card-preview`);if(s.image){let i=t.c.element("img");i.src=s.image,i.alt=s.title,a.appendChild(i)}else{let i=t.c.div(`${o}__card-preview-inner`);i.innerHTML=s.html,a.appendChild(i)}i.appendChild(a);let l=t.c.div(`${o}__card-info`),u=t.c.div(`${o}__card-title`);u.textContent=s.title,l.appendChild(u);let c=t.c.div(`${o}__card-description`);c.textContent=s.description,l.appendChild(c),i.appendChild(l),t.e.on(i,"click",()=>{t.s.focus(),t.s.insertHTML(s.html),t.synchronizeValues(),n()}),r.appendChild(i)}return r}},64839:function(t,i,n){"use strict";var o=n(11373),r=n.n(o),s=n(6441),a=n(2748),l=n(12153);s.Config.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:t=>t.createInside.element("input",{type:"checkbox",tabindex:-1})},s.Config.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(t){let i=t.s.current();return!!(i&&a.Dom.closest(i,t=>a.Dom.isElement(t)&&a.Dom.isTag(t,"ul")&&t.classList.contains("todo-list"),t.editor))}},l.Icon.set("todo-list",r())},19374:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(64839);var s=n(82758),a=n(65478),l=n(2748),u=n(43555),c=n(50911),d=n(59242),h=n(2692);class p extends c.Plugin{afterInit(t){t.registerCommand("todoList",this.onCommand)}onCommand(){try{this.__isOwnCommand=!0,this.jodit.s.commitStyle({element:"ul",attributes:{class:this.j.o.todoList.className},hooks:{afterWrapList:this.__afterWrapList,afterToggleAttribute:this.__afterWrapList}})}finally{this.__isOwnCommand=!1}return!1}__prependInputLabel(t){let{jodit:i}=this,{labelClassName:n,inputFactory:o}=this.j.o.todoList;if(t.querySelector("label."+n))return;1===t.children.length&&l.Dom.isTag(t.firstElementChild,"p")&&l.Dom.unwrap(t.firstElementChild);let r=i.createInside.element("label",{contenteditable:"false",class:n}),s=o(i);r.appendChild(s),l.Dom.prepend(t,r)}__afterToggleList(t,i){return(t===d.CHANGE||t===d.REPLACE)&&this.__isOwnCommand?this.__appendInputs(i):t===d.UNWRAP||t===d.REPLACE||t===d.CHANGE?this.__removeInputs(i):void 0}__appendInputs(t){t.querySelectorAll("li").forEach(this.__prependInputLabel)}__removeInputs(t){let{labelClassName:i}=this.j.o.todoList;t.querySelectorAll("label."+i).forEach(l.Dom.safeRemove)}__beforeToggleOrderedList(t,i,n){var o;let r="__beforeToggleOrderedList";if(t!==d.REPLACE&&(i.classList.contains(this.j.o.todoList.className)||n.isApplied(i,r))&&("ul"===n.element||"ol"===n.element)&&(null==(o=n.options.attributes)?void 0:o.class)!==this.j.o.todoList.className){let t=l.Dom.replace(i,n.element,this.jodit.createInside);return n.setApplied(t,r),this.__removeInputs(t),t}}__afterEnter(){(0,u.$$)("ul."+this.j.o.todoList.className+" li",this.jodit.editor).forEach(this.__prependInputLabel)}__afterTab(){(0,u.$$)("ul:not(."+this.j.o.todoList.className+") > li > label",this.jodit.editor).filter(this.isTodoLeafLabel).forEach(l.Dom.safeRemove)}__changeSelection(t){let i=this.j.s.current();this.isTodoLeafLabel(i)&&(t.preventDefault(),t.stopPropagation(),this.j.s.setCursorAfter(i))}__isEmptyListLeaf(t){return l.Dom.isEmpty(t,t=>!("input"===t.nodeName.toLowerCase()&&this.isTodoLeafLabel(t.parentElement))&&s.NO_EMPTY_TAGS.has(t.tagName.toLowerCase()))}__backSpaceBeforeCases(t,i){if(t){let t=l.Dom.findNotEmptySibling(i,!0);this.isTodoLeafLabel(t)&&l.Dom.safeRemove(t)}}__isInvisibleForCursor(t){if(this.isTodoLeafLabel(t))return!0}__backSpaceAfterDelete(){let{labelClassName:t}=this.j.o.todoList;(0,u.$$)("label."+t,this.jodit.editor).forEach(t=>{t.closest("ul."+this.j.o.todoList.className)?t.previousSibling&&t.parentElement&&l.Dom.prepend(t.parentElement,t):l.Dom.safeRemove(t)})}__afterWrapList(t,i){t===d.WRAP&&this.__appendInputs(i)}__onClickInput(t){let i=t.target;i&&l.Dom.isTag(i,"input")&&"checkbox"===i.type&&this.isTodoLeafLabel(i.parentElement)&&(0,u.attr)(i,"checked",i.checked?"checked":null)}isTodoLeafLabel(t){let{labelClassName:i}=this.j.o.todoList;return l.Dom.isHTMLElement(t)&&t.classList.contains(i)}beforeDestruct(t){}constructor(...t){super(...t),(0,o._)(this,"buttons",[{name:"todoList",group:"list"}]),(0,o._)(this,"__isOwnCommand",!1)}}(0,o._)(p,"requires",["license"]),(0,r.__decorate)([a.autobind],p.prototype,"onCommand",null),(0,r.__decorate)([a.autobind],p.prototype,"__prependInputLabel",null),(0,r.__decorate)([(0,a.watch)(":commitStyleAfterToggleList")],p.prototype,"__afterToggleList",null),(0,r.__decorate)([(0,a.watch)(":commitStyleBeforeUnwrapList")],p.prototype,"__beforeToggleOrderedList",null),(0,r.__decorate)([(0,a.watch)(":afterEnter")],p.prototype,"__afterEnter",null),(0,r.__decorate)([(0,a.watch)(":afterTab")],p.prototype,"__afterTab",null),(0,r.__decorate)([(0,a.watch)("j.ed:selectionchange"),(0,a.watch)(":afterEnter")],p.prototype,"__changeSelection",null),(0,r.__decorate)([(0,a.watch)(":enterIsEmptyListLeaf")],p.prototype,"__isEmptyListLeaf",null),(0,r.__decorate)([(0,a.watch)(":backSpaceBeforeCases")],p.prototype,"__backSpaceBeforeCases",null),(0,r.__decorate)([(0,a.watch)(":backSpaceIsMovedIgnore"),(0,a.watch)(":isInvisibleForCursor")],p.prototype,"__isInvisibleForCursor",null),(0,r.__decorate)([(0,a.watch)(":backSpaceAfterDelete")],p.prototype,"__backSpaceAfterDelete",null),(0,r.__decorate)([a.autobind],p.prototype,"__afterWrapList",null),(0,r.__decorate)([(0,a.watch)(":click")],p.prototype,"__onClickInput",null),(0,r.__decorate)([a.autobind],p.prototype,"isTodoLeafLabel",null),h.JoditPro.plugins.add("todo-list",p)},20104:function(t,i,n){"use strict";var o=n(74922),r=n.n(o),s=n(34575),a=n.n(s),l=n(6441),u=n(12153);l.Config.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},cloudProviderOptions:{url:"https://cloud.xdsoft.net",key:""},defaultSourceLang:"",defaultTargetLang:"de"},l.Config.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,i,{control:n}){t.execCommand("translate"+n.name)},mods:{stroke:!1}}},u.Icon.set("translate",a()).set("translate-swap",r())},50090:function(t,i,n){"use strict";n.d(i,{CloudTranslateProvider:function(){return l}});var o=n(82749),r=n(82758),s=n(38837),a=n(80942);class l{__fetch(t,i={}){let n=this.jodit.o.translate.cloudProviderOptions;return(0,s.assert)(n,"Set cloudProviderOptions"),this.jodit.fetch(n.url+t+"?key="+n.key,{method:"POST",data:i,contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){r.IS_PROD}})}translate(t,i,n){let o={text:t,targetLanguageCode:n};return i&&(o.sourceLanguageCode=i),this.__fetch("/v1/translate",o).then(t=>({text:t.text}))}supportedLanguages(){return Promise.resolve({langs:a.languages})}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t}}},27834:function(t,i,n){"use strict";n.d(i,{GoogleTranslateProvider:function(){return c}});var o=n(82749),r=n(56075),s=n(11886),a=n(82758),l=n(38837),u=n(80942);class c{__fetch(t,i={}){let n=this.jodit.o.translate.googleProviderOptions;return(0,l.assert)(n,"Set googleProviderOptions"),this.jodit.fetch(n.url+"?key="+n.key,{method:"POST",data:(0,s._)((0,r._)({},i),{ui:this.jodit.o.language}),contentType:"application/json; charset=utf-8",withCredentials:!1}).then(t=>t.json()).catch(t=>{try{this.jodit.message.error(t.json().message)}catch(t){a.IS_PROD}})}translate(t,i,n){let o={q:t,target:n,format:"html"};return i&&(o.source=i),this.__fetch("translate",o).then(t=>({text:t.data.translations[0].translatedText}))}supportedLanguages(){return Promise.resolve({langs:u.languages})}constructor(t){(0,o._)(this,"jodit",void 0),this.jodit=t}}},80942:function(t,i,n){"use strict";n.d(i,{languages:function(){return o}});let o={"Detect language":"auto",Afrikaans:"af",Albanian:"sq",Amharic:"am",Arabic:"ar",Armenian:"hy","Assamese*":"as","Aymara*":"ay",Azerbaijani:"az","Bambara*":"bm",Basque:"eu",Belarusian:"be",Bengali:"bn","Bhojpuri*":"bho",Bosnian:"bs",Bulgarian:"bg",Catalan:"ca",Cebuano:"ceb","Chinese (Simplified)":"zh-CN","Chinese (Traditional)":"zh-TW",Corsican:"co",Croatian:"hr",Czech:"cs",Danish:"da","Dhivehi*":"dv","Dogri*":"doi",Dutch:"nl",English:"en",Esperanto:"eo",Estonian:"et","Ewe*":"ee","Filipino (Tagalog)":"fil",Finnish:"fi",French:"fr",Frisian:"fy",Galician:"gl",Georgian:"ka",German:"de",Greek:"el","Guarani*":"gn",Gujarati:"gu","Haitian Creole":"ht",Hausa:"ha",Hawaiian:"haw",Hebrew:"he",Hindi:"hi",Hmong:"hmn",Hungarian:"hu",Icelandic:"is",Igbo:"ig","Ilocano*":"ilo",Indonesian:"id",Irish:"ga",Italian:"it",Japanese:"ja",Kannada:"kn",Kazakh:"kk",Khmer:"km",Kinyarwanda:"rw","Konkani*":"gom",Korean:"ko","Krio*":"kri",Kurdish:"ku","Kurdish (Sorani)*":"ckb",Kyrgyz:"ky",Lao:"lo",Latin:"la",Latvian:"lv","Lingala*":"ln",Lithuanian:"lt","Luganda*":"lg",Luxembourgish:"lb",Macedonian:"mk","Maithili*":"mai",Malagasy:"mg",Malay:"ms",Malayalam:"ml",Maltese:"mt",Maori:"mi",Marathi:"mr","Meiteilon (Manipuri)*":"mni-Mtei",Mizo:"lus",Mongolian:"mn","Myanmar (Burmese)":"my",Nepali:"ne",Norwegian:"no","Nyanja (Chichewa)":"ny","Odia (Oriya)":"or","Oromo*":"om",Pashto:"ps",Persian:"fa",Polish:"pl",Portuguese:"pt",Punjabi:"pa","Quechua*":"qu",Romanian:"ro",Russian:"ru",Samoan:"sm","Sanskrit*":"sa","Scots Gaelic":"gd","Sepedi*":"nso",Serbian:"sr",Sesotho:"st",Shona:"sn",Sindhi:"sd","Sinhala (Sinhalese)":"si",Slovak:"sk",Slovenian:"sl",Somali:"so",Spanish:"es",Sundanese:"su",Swahili:"sw",Swedish:"sv","Tagalog (Filipino)":"tl",Tajik:"tg",Tamil:"ta",Tatar:"tt",Telugu:"te",Thai:"th","Tigrinya*":"ti","Tsonga*":"ts",Turkish:"tr",Turkmen:"tk","Twi (Akan)*":"ak",Ukrainian:"uk",Urdu:"ur",Uyghur:"ug",Uzbek:"uz",Vietnamese:"vi",Welsh:"cy",Xhosa:"xh",Yiddish:"yi",Yoruba:"yo",Zulu:"zu"}},73534:function(t,i,n){"use strict";n.d(i,{getSelectionFragments:function(){return r}});var o=n(2748);function r(t){let i=[],n=t.s.expandSelection().sel;if(!n||0===n.rangeCount||n.isCollapsed)return i;t.s.range.commonAncestorContainer.normalize();let r=t.s.range,{commonAncestorContainer:u,startContainer:c,endContainer:d,startOffset:h,endOffset:p}=r;if(c===d){if(o.Dom.isText(c))return[a(c,h,p)];if(p-h==1){let t=c.childNodes[h];return o.Dom.isText(t)?[a(t,0,t.nodeValue.length)]:[l(t)]}if(0===h&&c.childNodes.length===p)return[l(c)];for(let t=h;t<p;t++){let n=c.childNodes[t];o.Dom.isText(n)?i.push(a(n,0,n.nodeValue.length)):i.push(l(n))}return i}let f=new Set,m=t.ed.createTreeWalker(u,NodeFilter.SHOW_ALL,{acceptNode:t=>!r.intersectsNode(t)||o.Dom.closest(t,t=>t&&f.has(t),u)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),g=m.nextNode();for(;g;){if(o.Dom.isElement(g)&&s(r,g))f.add(g),i.push(l(g));else if(o.Dom.isText(g)&&s(r,g))i.push(a(g,0,g.nodeValue.length));else if(o.Dom.isText(g)){let t=0,n=g.nodeValue.length;g===c&&(t=h),g===d&&(n=p),i.push(a(g,t,n))}g=m.nextNode()}return i}let s=(t,i)=>{let n=document.createRange();try{n.selectNodeContents(i)}catch(t){n.selectNode(i)}return 0>=t.compareBoundaryPoints(Range.START_TO_START,n)&&t.compareBoundaryPoints(Range.END_TO_END,n)>=0};function a(t,i,n){return{text:t.nodeValue.slice(i,n),replace:o=>{t.nodeValue=t.nodeValue.slice(0,i)+o+t.nodeValue.slice(n)}}}function l(t){return{text:t.innerHTML,replace:i=>{t.innerHTML=i}}}},73098:function(t,i,n){"use strict";var o=n(77688),r=n(82749),s=n(31635);n(20104);var a=n(50090),l=n(27834),u=n(33124),c=n(73534),d=n(65478),h=n(23282),p=n(70799),f=n(38837),m=n(50911),g=n(10830),b=n(2692);class v extends m.Plugin{__getProvider(){let{provider:t}=this.jodit.options.translate;if((0,p.isString)(t))switch(t){case"google":return new l.GoogleTranslateProvider(this.j);case"cloud":return new a.CloudTranslateProvider(this.j);default:throw Error("Unknown provider")}return(0,f.assert)((0,h.isFunction)(t),"Provider must be a function"),t(this.jodit)}afterInit(t){let i=this.__getProvider();t.registerCommand("translateOptions",{exec:()=>(0,o._)(function*(){let n=this.state,o=t.dlg();o.setHeader("Translate options");let r=yield i.supportedLanguages(),s="source"in r?r.source.langs:r.langs,a="target"in r?r.target.langs:r.langs,l=new u.UITranslateSettings(o,this.state,{sourceList:s,targetList:a,onChange(t){n=t}});o.setContent(l),o.setFooter([(0,g.Button)(t,"cancel","Cancel").onAction(()=>o.close()),(0,g.Button)(t,"ok","Save","primary").onAction(()=>{this.state=n,o.close()})]),l.bindDestruct(o),o.setSize(500,400).open(!0)}).call(this),hotkeys:t.o.translate.hotkeys.translateOptions}).registerCommand("translate",{exec:()=>{let n=(0,c.getSelectionFragments)(t).filter(t=>t.text.trim().length>0);if(!n.length)return void t.message.error("Select text for translate");let o=this.state.sourceLang&&"auto"!==this.state.sourceLang?this.state.sourceLang:"",r=this.state.targetLang;return Promise.all(n.map(n=>{i.translate(n.text,o,r).then(t=>{n.replace(t.text)}).catch(i=>{t.message.error((0,p.isString)(i)?i:i.message)})})).then(()=>{t.synchronizeValues()})},hotkeys:t.o.translate.hotkeys.translateSelection})}beforeDestruct(t){}constructor(...t){super(...t),(0,r._)(this,"buttons",[{name:"translate.translate",group:"insert"}]),(0,r._)(this,"state",{sourceLang:this.jodit.o.translate.defaultSourceLang||"en",targetLang:this.jodit.o.translate.defaultTargetLang})}}(0,r._)(v,"requires",["license"]),(0,s.__decorate)([d.persistent],v.prototype,"state",void 0),b.JoditPro.plugins.add("translate",v)},67082:function(t,i,n){"use strict";n.d(i,{UITranslateList:function(){return p}});var o=n(82749),r=n(31635),s=n(82758),a=n(65478),l=n(2748),u=n(21537),c=n(29960),d=n(48538),h=n(80256);class p extends d.UIElement{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){let i=[];return(Array.isArray(t.list)?t.list:Object.keys(t.list).map(i=>({title:i,code:t.list[i]}))).forEach(t=>{let n=t.code;i.push(`<a role='button' tabindex='0' class='&__item' data-lang='${n}'>
600
602
  <span class='&__item-key'>${n}</span>
601
603
  <span class='&__item-title'>${this.j.i18n(t.title)}</span>
602
604
  </a>`)}),`<div class='&'>
@@ -611,7 +613,7 @@ ${s}`.trim();n?yield this.__executeQuickCommandSilent(u,s):yield this.__executeQ
611
613
  </div>`}__onSwap(){let t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange((0,r._)({},this.state))}constructor(t,i,n){var s,a;super(t),(0,o._)(this,"state",void 0),(0,o._)(this,"options",void 0),(0,o._)(this,"__sourceList",void 0),(0,o._)(this,"__targetList",void 0),this.state=i,this.options=n,this.__sourceList=new u.UITranslateList(t,{list:n.sourceList,active:i.sourceLang,onChange:t=>{this.state.sourceLang=t,this.options.onChange((0,r._)({},this.state))}}),null==(s=this.getElm("source-list"))||s.appendChild(this.__sourceList.container),this.__targetList=new u.UITranslateList(t,{list:n.targetList,active:i.targetLang,onChange:t=>{this.state.targetLang=t,this.options.onChange((0,r._)({},this.state))}}),null==(a=this.getElm("target-list"))||a.appendChild(this.__targetList.container)}}(0,s.__decorate)([(0,a.watch)("arrow-swap:click")],c.prototype,"__onSwap",null),c=(0,s.__decorate)([a.component],c)},8256:function(t,i,n){"use strict";var o=n(6441),r=n(22732),s=n(21537);let a=["tune.up","tune.remove","tune.down"],l=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...a];function u(t){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+t.toUpperCase()+"</text></svg>",isActive(i,n){var o;return(null==n||null==(o=n.target)?void 0:o.tagName.toLowerCase())===t},exec(i,n){if(n){i.selection.save();let o=r.Dom.replace(n,t,i.createInside);i.selection.restore(),i.e.fire("synchro"),i.e.fire("afterExecTune.tune",o)}return!0}}}function c(t){let i=t?"previousSibling":"nextSibling";return{icon:t?"angle-up":"angle-down",isDisabled(t,n){var o;return!(null==n||null==(o=n.target)?void 0:o[i])},exec(n,o){let a=null==o?void 0:o[i];return o&&a&&(n.selection.save(),(0,s.call)(t?r.Dom.before:r.Dom.after,a,o),n.selection.restore()),n.e.fire("synchro"),n.e.fire("afterExecTune.tune"),!0}}}o.Config.prototype.tuneBlock={popup:{p:a,table:a,img:a,blockquote:a,div:a,pre:["tune.editPre",...a],h1:l,h2:l,h3:l,h4:l,h5:l,h6:l}},o.Config.prototype.controls.tune={h1:u("h1"),h2:u("h2"),h3:u("h3"),h4:u("h4"),h5:u("h5"),h6:u("h6"),up:c(!0),down:c(!1),editPre:{icon:"pencil",exec(t,i){t.e.fire("editPreInPasteCode",i)}},remove:{icon:"bin",exec(t,i){r.Dom.safeRemove(i),t.e.fire("synchro"),t.e.fire("closeTuner.tune"),t.e.fire("hideTuner.tune")}}}},13152:function(t,i,n){"use strict";var o=n(82749),r=n(31635);n(8256);var s=n(40104),a=n(65478),l=n(50911),u=n(2692);class c extends l.Plugin{afterInit(t){this.tuner=new s.UITuner(t)}hideTuner(){this.tuner.hide()}onChangeSelection(){this.j.s.isCollapsed()||this.hideTuner()}onClickInBlock(t){this.j.s.isCollapsed()&&this.tuner.show()}beforeDestruct(t){this.tuner.destruct()}constructor(...t){super(...t),(0,o._)(this,"tuner",void 0)}}(0,o._)(c,"requires",["license"]),(0,r.__decorate)([(0,a.watch)(":outsideClick :keydown")],c.prototype,"hideTuner",null),(0,r.__decorate)([(0,a.watch)("j.ed:selectionchange"),(0,a.debounce)()],c.prototype,"onChangeSelection",null),(0,r.__decorate)([(0,a.watch)(":click")],c.prototype,"onClickInBlock",null),u.JoditPro.plugins.add("tune-block",c)},40104:function(t,i,n){"use strict";n.d(i,{UITuner:function(){return d}});var o=n(82749),r=n(31635),s=n(65478),a=n(22732),l=n(21537),u=n(67510),c=n(21491);class d extends u.UIElement{className(){return"UITuner"}render(){return`<div>
612
614
  <div class='&__handle' title='~Click to tune~'/>
613
615
  </div>`}show(){let t=this.j.s.current();if(!t)return this.hide();let i=a.Dom.isBlock(t)?t:a.Dom.closest(t,t=>!!(t&&this.j.o.tuneBlock.popup[t.nodeName.toLowerCase()]),this.j.editor);if(!i||i===this.j.editor||!this.j.o.tuneBlock.popup[i.tagName.toLowerCase()])return this.hide();this.currentBlock=i,this.isShown=!0,this.closeToolbar(),this.calcPosition(),this.container.parentNode||this.j.workplace.append(this.container)}hide(){this.isShown&&(this.isShown=!1,a.Dom.safeRemove(this.container),this.closeToolbar())}onEditorScroll(){this.isShown&&this.calcPosition()}calcPosition(){let t=(0,l.css)(this.j.editor,"marginLeft"),i=(0,l.css)(this.j.editor,"paddingLeft"),n=(0,l.css)(this.j.editor,"marginTop"),o=this.currentBlock.offsetWidth-15+t+i,r=this.currentBlock.offsetTop-this.j.editor.scrollTop+n;(0,l.css)(this.container,{transform:`translate3d(${o}px, ${r}px, 0)`}),this.popup.isOpened&&this.popup.updatePosition()}onAfterExecTune(t){t&&(this.currentBlock=t),this.calcPosition(),this.openToolbar()}onClickPrevent(t){t.preventDefault(),t.stopPropagation()}onTargetClick(){this.toggleToolbar()}openToolbar(){if(this.setMod("opened",!0),this.toolbar.build(this.j.o.tuneBlock.popup[this.currentBlock.tagName.toLowerCase()],this.currentBlock),this.popup.setContent(this.toolbar.container),!this.popup.isOpened){let t=this.getElm("handle");(0,l.assert)(null!=t,"Handle element does not exist"),this.popup.open(()=>(0,l.position)(t))}}closeToolbar(){this.setMod("opened",!1),this.popup.close()}toggleToolbar(){this.getMod("opened")?this.closeToolbar():this.openToolbar()}constructor(...t){super(...t),(0,o._)(this,"isShown",!1),(0,o._)(this,"toolbar",(0,c.makeCollection)(this.j,this)),(0,o._)(this,"popup",new u.Popup(this.j,!1)),(0,o._)(this,"currentBlock",void 0)}}(0,r.__decorate)([(0,s.watch)(":hideTuner.tune")],d.prototype,"hide",null),(0,r.__decorate)([(0,s.watch)("j.editor:scroll"),(0,s.throttle)(10)],d.prototype,"onEditorScroll",null),(0,r.__decorate)([(0,s.watch)(":afterExecTune.tune"),(0,s.idle)()],d.prototype,"onAfterExecTune",null),(0,r.__decorate)([(0,s.watch)("container:click container:mousedown")],d.prototype,"onClickPrevent",null),(0,r.__decorate)([(0,s.watch)("handle:click")],d.prototype,"onTargetClick",null),(0,r.__decorate)([(0,s.watch)(":closeTuner.tune")],d.prototype,"closeToolbar",null),d=(0,r.__decorate)([s.component],d)},18549:function(t,i,n){"use strict";n.d(i,{UIFlightPosition:function(){return s}});var o=n(2748);let r=new WeakMap;class s{static install(t,i,n={}){this.remove(t);let{panelHeight:o=250,containerClassName:s,toolbarSelector:a=".jodit-toolbar__box",gap:l=16}=n,u=t.j.c.div("jodit-flight-position");s&&u.classList.add(s),u.style.setProperty("--flight-panel-height",`${o}px`),u.appendChild(t.container),document.body.appendChild(u);let c={toolbarSelector:a,gap:l},d=()=>{this.updatePosition(u,i,c)},h=new ResizeObserver(d);h.observe(i),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",d,{passive:!0}),r.set(t,{container:u,anchor:i,onScroll:d,resizeObserver:h,options:c}),this.updatePosition(u,i,c)}static updatePosition(t,i,n){let{toolbarSelector:o,gap:r}=n,s=i.getBoundingClientRect(),a=window.innerHeight,l=t.offsetHeight||250;t.style.left=`${s.left}px`,t.style.width=`${s.width}px`;let u=i.querySelector(o),c=u?u.getBoundingClientRect().bottom:s.top,d=s.bottom-c,h=s.bottom<=a;l<=d?h?(t.style.top="auto",t.style.bottom=`${a-s.bottom+r}px`):(t.style.top="auto",t.style.bottom=`${r}px`):(t.style.bottom="auto",t.style.top=`${c}px`)}static remove(t){let i=r.get(t);if(i){if(window.removeEventListener("scroll",i.onScroll),window.removeEventListener("resize",i.onScroll),i.resizeObserver.disconnect(),t.container.parentNode===i.container){var n;null==(n=i.container.parentNode)||n.insertBefore(t.container,i.container)}o.Dom.safeRemove(i.container),r.delete(t)}}static isInstalled(t){return r.has(t)}static setPanelHeight(t,i){let n=r.get(t);n&&n.container.style.setProperty("--flight-panel-height",`${i}px`)}static refresh(t){let i=r.get(t);i&&this.updatePosition(i.container,i.anchor,i.options)}}},54747:function(t,i,n){"use strict";n.d(i,{UIResize:function(){return s}});var o=n(2748),r=n(41180);class s{static remove(t){t.container.classList.remove("jodit-ui-resize"),o.Dom.safeRemove(t.container.querySelector(".jodit-ui-resize__handle"))}static install(t,i,n={}){var o;t.container.classList.add("jodit-ui-resize"),"static"===(0,r.css)(t.container,"position")&&(0,r.css)(t.container,"position","relative");let s=t.j.c.div("jodit-ui-resize__handle");s.classList.add("jodit-ui-resize__handle_type_"+i),n.handleClassName&&s.classList.add(n.handleClassName),t.container.appendChild(s),t.j.e.on(s,"mousedown touchstart",this.onStartResize.bind(this,t,i,null!=(o=n.onResize)?o:()=>void 0))}static onStartResize(t,i,n,o){let r={x:o.clientX,y:o.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight,direction:i},s=t.j.async.throttle(this.onResize.bind(this,t,r,n),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",s).one(t.j.ow,"mouseup touchend",this.onEndResize.bind(this,t,s))}static onResize(t,i,n,o){let s,a=["left","right"].includes(i.direction),l=t.container.parentElement;l&&(s=a?i.w+(o.clientX-i.x)*("right"===i.direction?1:-1):i.h+(o.clientY-i.y)*("top"===i.direction?-1:1),!0!==(null==n?void 0:n({newSize:s}))&&(0,r.css)(t.container,a?"width":"height",s/(a?l.offsetWidth:l.offsetHeight)*100+"%"))}static onEndResize(t,i,n){t.j.e.off(t.j.ow,"mousemove touchmove",i),t.j.unlock()}}},36469:function(t,i,n){"use strict";n.d(i,{UISelectItems:function(){return s}});var o=n(2748),r=n(41180);class s{static remove(t){o.Dom.safeRemove(t.container.querySelector(".jodit-ui-select-items")),t.j.e.off(t.container,"mousedown.uiselectitems touchstart.uiselectitems")}static install(t){let i=t.j.c.div("jodit-ui-select-items");t.j.e.on(t.container,"mousedown.uiselectitems touchstart.uiselectitems",this.onStartSelect.bind(this,t,i))}static onStartSelect(t,i,n){if(n.target!==t.container)return;(0,r.css)(i,{width:0,height:0}),t.container.appendChild(i);let o={x:n.clientX,y:n.clientY,w:t.container.offsetWidth,h:t.container.offsetHeight},s=t.j.async.throttle(this.onSelect.bind(this,t,i,o),t.j.defaultTimeout/10);t.j.lock(),t.j.e.on(t.j.ow,"mousemove touchmove",s).one(t.j.ow,"mouseup touchend",this.onEndSelect.bind(this,t,i,s)),t.onSelectItems({left:o.x,top:o.y,width:0,height:0})}static onSelect(t,i,n,o){let s={left:n.x>o.clientX?o.clientX:n.x,top:n.y>o.clientY?o.clientY:n.y,width:Math.abs(n.x-o.clientX),height:Math.abs(n.y-o.clientY)};(0,r.css)(i,s),t.onSelectItems(s)}static onEndSelect(t,i,n,r){o.Dom.safeRemove(i),t.j.e.off(t.j.ow,"mousemove touchmove",n),t.j.unlock()}}},39066:function(t,i,n){"use strict";n.d(i,{_:function(){return r}});var o=n(21806);function r(t){var i,n;function r(i,n){try{var a=t[i](n),l=a.value,u=l instanceof o._;Promise.resolve(u?l.v:l).then(function(n){if(u){var o="return"===i?"return":"next";if(!l.k||n.done)return r(o,n);n=t[o](n).value}s(a.done?"return":"normal",n)},function(t){r("throw",t)})}catch(t){s("throw",t)}}function s(t,o){switch(t){case"return":i.resolve({value:o,done:!0});break;case"throw":i.reject(o);break;default:i.resolve({value:o,done:!1})}(i=i.next)?r(i.key,i.arg):n=null}this._invoke=function(t,o){return new Promise(function(s,a){var l={key:t,arg:o,resolve:s,reject:a,next:null};n?n=n.next=l:(i=n=l,r(t,o))})},"function"!=typeof t.return&&(this.return=void 0)}r.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(t){return this._invoke("next",t)},r.prototype.throw=function(t){return this._invoke("throw",t)},r.prototype.return=function(t){return this._invoke("return",t)}},89929:function(t,i,n){"use strict";function o(t){var i,n,o,s=2;for("u">typeof Symbol&&(n=Symbol.asyncIterator,o=Symbol.iterator);s--;){if(n&&null!=(i=t[n]))return i.call(t);if(o&&null!=(i=t[o]))return new r(i.call(t));n="@@asyncIterator",o="@@iterator"}throw TypeError("Object is not async iterable")}function r(t){function i(t){if(Object(t)!==t)return Promise.reject(TypeError(t+" is not an object."));var i=t.done;return Promise.resolve(t.value).then(function(t){return{value:t,done:i}})}return(r=function(t){this.s=t,this.n=t.next}).prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):i(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):i(n.apply(this.s,arguments))}},new r(t)}n.d(i,{_:function(){return o}})},77688:function(t,i,n){"use strict";function o(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function r(t){return function(){var i=this,n=arguments;return new Promise(function(r,s){var a=t.apply(i,n);function l(t){o(a,r,s,l,u,"next",t)}function u(t){o(a,r,s,l,u,"throw",t)}l(void 0)})}}n.d(i,{_:function(){return r}})},86127:function(t,i,n){"use strict";n.d(i,{_:function(){return r}});var o=n(21806);function r(t){return new o._(t,0)}},82749:function(t,i,n){"use strict";function o(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}n.d(i,{_:function(){return o}})},56075:function(t,i,n){"use strict";n.d(i,{_:function(){return r}});var o=n(82749);function r(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(i){(0,o._)(t,i,n[i])})}return t}},11886:function(t,i,n){"use strict";function o(t,i){return i=null!=i?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}),t}n.d(i,{_:function(){return o}})},21806:function(t,i,n){"use strict";function o(t,i){this.v=t,this.k=i}n.d(i,{_:function(){return o}})},25415:function(t,i,n){"use strict";n.d(i,{_:function(){return r}});var o=n(39066);function r(t){return function(){return new o._(t.apply(this,arguments))}}},72573:function(t,i,n){"use strict";function o(t,i,n,o,r,s,a){try{var l=t[s](a),u=l.value}catch(t){n(t);return}l.done?i(u):Promise.resolve(u).then(o,r)}function r(t){return function(){var i=this,n=arguments;return new Promise(function(r,s){var a=t.apply(i,n);function l(t){o(a,r,s,l,u,"next",t)}function u(t){o(a,r,s,l,u,"throw",t)}l(void 0)})}}function s(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function a(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),o.forEach(function(i){s(t,i,n[i])})}return t}function l(t,i){return i=null!=i?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):(function(t){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i.push.apply(i,n)}return i})(Object(i)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}),t}function u(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(i,{marked:function(){return eI}});var c,d=u(),h={exec:()=>null};function p(t,i=""){let n="string"==typeof t?t:t.source,o={replace:(t,i)=>{let r="string"==typeof i?i:i.source;return r=r.replace(m.caret,"$1"),n=n.replace(t,r),o},getRegex:()=>new RegExp(n,i)};return o}var f=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch(t){return!1}})(),m={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376-\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0560-\\u0588\\u05D0-\\u05EA\\u05EF-\\u05F2\\u0620-\\u064A\\u066E-\\u066F\\u0671-\\u06D3\\u06D5\\u06E5-\\u06E6\\u06EE-\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4-\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u0860-\\u086A\\u0870-\\u0887\\u0889-\\u088F\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F-\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC-\\u09DD\\u09DF-\\u09E1\\u09F0-\\u09F1\\u09FC\\u0A05-\\u0A0A\\u0A0F-\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32-\\u0A33\\u0A35-\\u0A36\\u0A38-\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2-\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0-\\u0AE1\\u0AF9\\u0B05-\\u0B0C\\u0B0F-\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32-\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C-\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99-\\u0B9A\\u0B9C\\u0B9E-\\u0B9F\\u0BA3-\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58-\\u0C5A\\u0C5C-\\u0C5D\\u0C60-\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDC-\\u0CDE\\u0CE0-\\u0CE1\\u0CF1-\\u0CF2\\u0D04-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D54-\\u0D56\\u0D5F-\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32-\\u0E33\\u0E40-\\u0E46\\u0E81-\\u0E82\\u0E84\\u0E86-\\u0E8A\\u0E8C-\\u0EA3\\u0EA5\\u0EA7-\\u0EB0\\u0EB2-\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065-\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16F1-\\u16F8\\u1700-\\u1711\\u171F-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1878\\u1880-\\u1884\\u1887-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4C\\u1B83-\\u1BA0\\u1BAE-\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1C80-\\u1C8A\\u1C90-\\u1CBA\\u1CBD-\\u1CBF\\u1CE9-\\u1CEC\\u1CEE-\\u1CF3\\u1CF5-\\u1CF6\\u1CFA\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183-\\u2184\\u2C00-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3006\\u3031-\\u3035\\u303B-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312F\\u3131-\\u318E\\u31A0-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A-\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6E5\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7DC\\uA7F1-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA8FD-\\uA8FE\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5-\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB69\\uAB70-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40-\\uFB41\\uFB43-\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC\\u{10000}-\\u{1000B}\\u{1000D}-\\u{10026}\\u{10028}-\\u{1003A}\\u{1003C}-\\u{1003D}\\u{1003F}-\\u{1004D}\\u{10050}-\\u{1005D}\\u{10080}-\\u{100FA}\\u{10280}-\\u{1029C}\\u{102A0}-\\u{102D0}\\u{10300}-\\u{1031F}\\u{1032D}-\\u{10340}\\u{10342}-\\u{10349}\\u{10350}-\\u{10375}\\u{10380}-\\u{1039D}\\u{103A0}-\\u{103C3}\\u{103C8}-\\u{103CF}\\u{10400}-\\u{1049D}\\u{104B0}-\\u{104D3}\\u{104D8}-\\u{104FB}\\u{10500}-\\u{10527}\\u{10530}-\\u{10563}\\u{10570}-\\u{1057A}\\u{1057C}-\\u{1058A}\\u{1058C}-\\u{10592}\\u{10594}-\\u{10595}\\u{10597}-\\u{105A1}\\u{105A3}-\\u{105B1}\\u{105B3}-\\u{105B9}\\u{105BB}-\\u{105BC}\\u{105C0}-\\u{105F3}\\u{10600}-\\u{10736}\\u{10740}-\\u{10755}\\u{10760}-\\u{10767}\\u{10780}-\\u{10785}\\u{10787}-\\u{107B0}\\u{107B2}-\\u{107BA}\\u{10800}-\\u{10805}\\u{10808}\\u{1080A}-\\u{10835}\\u{10837}-\\u{10838}\\u{1083C}\\u{1083F}-\\u{10855}\\u{10860}-\\u{10876}\\u{10880}-\\u{1089E}\\u{108E0}-\\u{108F2}\\u{108F4}-\\u{108F5}\\u{10900}-\\u{10915}\\u{10920}-\\u{10939}\\u{10940}-\\u{10959}\\u{10980}-\\u{109B7}\\u{109BE}-\\u{109BF}\\u{10A00}\\u{10A10}-\\u{10A13}\\u{10A15}-\\u{10A17}\\u{10A19}-\\u{10A35}\\u{10A60}-\\u{10A7C}\\u{10A80}-\\u{10A9C}\\u{10AC0}-\\u{10AC7}\\u{10AC9}-\\u{10AE4}\\u{10B00}-\\u{10B35}\\u{10B40}-\\u{10B55}\\u{10B60}-\\u{10B72}\\u{10B80}-\\u{10B91}\\u{10C00}-\\u{10C48}\\u{10C80}-\\u{10CB2}\\u{10CC0}-\\u{10CF2}\\u{10D00}-\\u{10D23}\\u{10D4A}-\\u{10D65}\\u{10D6F}-\\u{10D85}\\u{10E80}-\\u{10EA9}\\u{10EB0}-\\u{10EB1}\\u{10EC2}-\\u{10EC7}\\u{10F00}-\\u{10F1C}\\u{10F27}\\u{10F30}-\\u{10F45}\\u{10F70}-\\u{10F81}\\u{10FB0}-\\u{10FC4}\\u{10FE0}-\\u{10FF6}\\u{11003}-\\u{11037}\\u{11071}-\\u{11072}\\u{11075}\\u{11083}-\\u{110AF}\\u{110D0}-\\u{110E8}\\u{11103}-\\u{11126}\\u{11144}\\u{11147}\\u{11150}-\\u{11172}\\u{11176}\\u{11183}-\\u{111B2}\\u{111C1}-\\u{111C4}\\u{111DA}\\u{111DC}\\u{11200}-\\u{11211}\\u{11213}-\\u{1122B}\\u{1123F}-\\u{11240}\\u{11280}-\\u{11286}\\u{11288}\\u{1128A}-\\u{1128D}\\u{1128F}-\\u{1129D}\\u{1129F}-\\u{112A8}\\u{112B0}-\\u{112DE}\\u{11305}-\\u{1130C}\\u{1130F}-\\u{11310}\\u{11313}-\\u{11328}\\u{1132A}-\\u{11330}\\u{11332}-\\u{11333}\\u{11335}-\\u{11339}\\u{1133D}\\u{11350}\\u{1135D}-\\u{11361}\\u{11380}-\\u{11389}\\u{1138B}\\u{1138E}\\u{11390}-\\u{113B5}\\u{113B7}\\u{113D1}\\u{113D3}\\u{11400}-\\u{11434}\\u{11447}-\\u{1144A}\\u{1145F}-\\u{11461}\\u{11480}-\\u{114AF}\\u{114C4}-\\u{114C5}\\u{114C7}\\u{11580}-\\u{115AE}\\u{115D8}-\\u{115DB}\\u{11600}-\\u{1162F}\\u{11644}\\u{11680}-\\u{116AA}\\u{116B8}\\u{11700}-\\u{1171A}\\u{11740}-\\u{11746}\\u{11800}-\\u{1182B}\\u{118A0}-\\u{118DF}\\u{118FF}-\\u{11906}\\u{11909}\\u{1190C}-\\u{11913}\\u{11915}-\\u{11916}\\u{11918}-\\u{1192F}\\u{1193F}\\u{11941}\\u{119A0}-\\u{119A7}\\u{119AA}-\\u{119D0}\\u{119E1}\\u{119E3}\\u{11A00}\\u{11A0B}-\\u{11A32}\\u{11A3A}\\u{11A50}\\u{11A5C}-\\u{11A89}\\u{11A9D}\\u{11AB0}-\\u{11AF8}\\u{11BC0}-\\u{11BE0}\\u{11C00}-\\u{11C08}\\u{11C0A}-\\u{11C2E}\\u{11C40}\\u{11C72}-\\u{11C8F}\\u{11D00}-\\u{11D06}\\u{11D08}-\\u{11D09}\\u{11D0B}-\\u{11D30}\\u{11D46}\\u{11D60}-\\u{11D65}\\u{11D67}-\\u{11D68}\\u{11D6A}-\\u{11D89}\\u{11D98}\\u{11DB0}-\\u{11DDB}\\u{11EE0}-\\u{11EF2}\\u{11F02}\\u{11F04}-\\u{11F10}\\u{11F12}-\\u{11F33}\\u{11FB0}\\u{12000}-\\u{12399}\\u{12480}-\\u{12543}\\u{12F90}-\\u{12FF0}\\u{13000}-\\u{1342F}\\u{13441}-\\u{13446}\\u{13460}-\\u{143FA}\\u{14400}-\\u{14646}\\u{16100}-\\u{1611D}\\u{16800}-\\u{16A38}\\u{16A40}-\\u{16A5E}\\u{16A70}-\\u{16ABE}\\u{16AD0}-\\u{16AED}\\u{16B00}-\\u{16B2F}\\u{16B40}-\\u{16B43}\\u{16B63}-\\u{16B77}\\u{16B7D}-\\u{16B8F}\\u{16D40}-\\u{16D6C}\\u{16E40}-\\u{16E7F}\\u{16EA0}-\\u{16EB8}\\u{16EBB}-\\u{16ED3}\\u{16F00}-\\u{16F4A}\\u{16F50}\\u{16F93}-\\u{16F9F}\\u{16FE0}-\\u{16FE1}\\u{16FE3}\\u{16FF2}-\\u{16FF3}\\u{17000}-\\u{18CD5}\\u{18CFF}-\\u{18D1E}\\u{18D80}-\\u{18DF2}\\u{1AFF0}-\\u{1AFF3}\\u{1AFF5}-\\u{1AFFB}\\u{1AFFD}-\\u{1AFFE}\\u{1B000}-\\u{1B122}\\u{1B132}\\u{1B150}-\\u{1B152}\\u{1B155}\\u{1B164}-\\u{1B167}\\u{1B170}-\\u{1B2FB}\\u{1BC00}-\\u{1BC6A}\\u{1BC70}-\\u{1BC7C}\\u{1BC80}-\\u{1BC88}\\u{1BC90}-\\u{1BC99}\\u{1D400}-\\u{1D454}\\u{1D456}-\\u{1D49C}\\u{1D49E}-\\u{1D49F}\\u{1D4A2}\\u{1D4A5}-\\u{1D4A6}\\u{1D4A9}-\\u{1D4AC}\\u{1D4AE}-\\u{1D4B9}\\u{1D4BB}\\u{1D4BD}-\\u{1D4C3}\\u{1D4C5}-\\u{1D505}\\u{1D507}-\\u{1D50A}\\u{1D50D}-\\u{1D514}\\u{1D516}-\\u{1D51C}\\u{1D51E}-\\u{1D539}\\u{1D53B}-\\u{1D53E}\\u{1D540}-\\u{1D544}\\u{1D546}\\u{1D54A}-\\u{1D550}\\u{1D552}-\\u{1D6A5}\\u{1D6A8}-\\u{1D6C0}\\u{1D6C2}-\\u{1D6DA}\\u{1D6DC}-\\u{1D6FA}\\u{1D6FC}-\\u{1D714}\\u{1D716}-\\u{1D734}\\u{1D736}-\\u{1D74E}\\u{1D750}-\\u{1D76E}\\u{1D770}-\\u{1D788}\\u{1D78A}-\\u{1D7A8}\\u{1D7AA}-\\u{1D7C2}\\u{1D7C4}-\\u{1D7CB}\\u{1DF00}-\\u{1DF1E}\\u{1DF25}-\\u{1DF2A}\\u{1E030}-\\u{1E06D}\\u{1E100}-\\u{1E12C}\\u{1E137}-\\u{1E13D}\\u{1E14E}\\u{1E290}-\\u{1E2AD}\\u{1E2C0}-\\u{1E2EB}\\u{1E4D0}-\\u{1E4EB}\\u{1E5D0}-\\u{1E5ED}\\u{1E5F0}\\u{1E6C0}-\\u{1E6DE}\\u{1E6E0}-\\u{1E6E2}\\u{1E6E4}-\\u{1E6E5}\\u{1E6E7}-\\u{1E6ED}\\u{1E6F0}-\\u{1E6F4}\\u{1E6FE}-\\u{1E6FF}\\u{1E7E0}-\\u{1E7E6}\\u{1E7E8}-\\u{1E7EB}\\u{1E7ED}-\\u{1E7EE}\\u{1E7F0}-\\u{1E7FE}\\u{1E800}-\\u{1E8C4}\\u{1E900}-\\u{1E943}\\u{1E94B}\\u{1EE00}-\\u{1EE03}\\u{1EE05}-\\u{1EE1F}\\u{1EE21}-\\u{1EE22}\\u{1EE24}\\u{1EE27}\\u{1EE29}-\\u{1EE32}\\u{1EE34}-\\u{1EE37}\\u{1EE39}\\u{1EE3B}\\u{1EE42}\\u{1EE47}\\u{1EE49}\\u{1EE4B}\\u{1EE4D}-\\u{1EE4F}\\u{1EE51}-\\u{1EE52}\\u{1EE54}\\u{1EE57}\\u{1EE59}\\u{1EE5B}\\u{1EE5D}\\u{1EE5F}\\u{1EE61}-\\u{1EE62}\\u{1EE64}\\u{1EE67}-\\u{1EE6A}\\u{1EE6C}-\\u{1EE72}\\u{1EE74}-\\u{1EE77}\\u{1EE79}-\\u{1EE7C}\\u{1EE7E}\\u{1EE80}-\\u{1EE89}\\u{1EE8B}-\\u{1EE9B}\\u{1EEA1}-\\u{1EEA3}\\u{1EEA5}-\\u{1EEA9}\\u{1EEAB}-\\u{1EEBB}\\u{20000}-\\u{2A6DF}\\u{2A700}-\\u{2B81D}\\u{2B820}-\\u{2CEAD}\\u{2CEB0}-\\u{2EBE0}\\u{2EBF0}-\\u{2EE5D}\\u{2F800}-\\u{2FA1D}\\u{30000}-\\u{3134A}\\u{31350}-\\u{33479}\\u0030-\\u0039\\u00B2-\\u00B3\\u00B9\\u00BC-\\u00BE\\u0660-\\u0669\\u06F0-\\u06F9\\u07C0-\\u07C9\\u0966-\\u096F\\u09E6-\\u09EF\\u09F4-\\u09F9\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0B72-\\u0B77\\u0BE6-\\u0BF2\\u0C66-\\u0C6F\\u0C78-\\u0C7E\\u0CE6-\\u0CEF\\u0D58-\\u0D5E\\u0D66-\\u0D78\\u0DE6-\\u0DEF\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F33\\u1040-\\u1049\\u1090-\\u1099\\u1369-\\u137C\\u16EE-\\u16F0\\u17E0-\\u17E9\\u17F0-\\u17F9\\u1810-\\u1819\\u1946-\\u194F\\u19D0-\\u19DA\\u1A80-\\u1A89\\u1A90-\\u1A99\\u1B50-\\u1B59\\u1BB0-\\u1BB9\\u1C40-\\u1C49\\u1C50-\\u1C59\\u2070\\u2074-\\u2079\\u2080-\\u2089\\u2150-\\u2182\\u2185-\\u2189\\u2460-\\u249B\\u24EA-\\u24FF\\u2776-\\u2793\\u2CFD\\u3007\\u3021-\\u3029\\u3038-\\u303A\\u3192-\\u3195\\u3220-\\u3229\\u3248-\\u324F\\u3251-\\u325F\\u3280-\\u3289\\u32B1-\\u32BF\\uA620-\\uA629\\uA6E6-\\uA6EF\\uA830-\\uA835\\uA8D0-\\uA8D9\\uA900-\\uA909\\uA9D0-\\uA9D9\\uA9F0-\\uA9F9\\uAA50-\\uAA59\\uABF0-\\uABF9\\uFF10-\\uFF19\\u{10107}-\\u{10133}\\u{10140}-\\u{10178}\\u{1018A}-\\u{1018B}\\u{102E1}-\\u{102FB}\\u{10320}-\\u{10323}\\u{10341}\\u{1034A}\\u{103D1}-\\u{103D5}\\u{104A0}-\\u{104A9}\\u{10858}-\\u{1085F}\\u{10879}-\\u{1087F}\\u{108A7}-\\u{108AF}\\u{108FB}-\\u{108FF}\\u{10916}-\\u{1091B}\\u{109BC}-\\u{109BD}\\u{109C0}-\\u{109CF}\\u{109D2}-\\u{109FF}\\u{10A40}-\\u{10A48}\\u{10A7D}-\\u{10A7E}\\u{10A9D}-\\u{10A9F}\\u{10AEB}-\\u{10AEF}\\u{10B58}-\\u{10B5F}\\u{10B78}-\\u{10B7F}\\u{10BA9}-\\u{10BAF}\\u{10CFA}-\\u{10CFF}\\u{10D30}-\\u{10D39}\\u{10D40}-\\u{10D49}\\u{10E60}-\\u{10E7E}\\u{10F1D}-\\u{10F26}\\u{10F51}-\\u{10F54}\\u{10FC5}-\\u{10FCB}\\u{11052}-\\u{1106F}\\u{110F0}-\\u{110F9}\\u{11136}-\\u{1113F}\\u{111D0}-\\u{111D9}\\u{111E1}-\\u{111F4}\\u{112F0}-\\u{112F9}\\u{11450}-\\u{11459}\\u{114D0}-\\u{114D9}\\u{11650}-\\u{11659}\\u{116C0}-\\u{116C9}\\u{116D0}-\\u{116E3}\\u{11730}-\\u{1173B}\\u{118E0}-\\u{118F2}\\u{11950}-\\u{11959}\\u{11BF0}-\\u{11BF9}\\u{11C50}-\\u{11C6C}\\u{11D50}-\\u{11D59}\\u{11DA0}-\\u{11DA9}\\u{11DE0}-\\u{11DE9}\\u{11F50}-\\u{11F59}\\u{11FC0}-\\u{11FD4}\\u{12400}-\\u{1246E}\\u{16130}-\\u{16139}\\u{16A60}-\\u{16A69}\\u{16AC0}-\\u{16AC9}\\u{16B50}-\\u{16B59}\\u{16B5B}-\\u{16B61}\\u{16D70}-\\u{16D79}\\u{16E80}-\\u{16E96}\\u{16FF4}-\\u{16FF6}\\u{1CCF0}-\\u{1CCF9}\\u{1D2C0}-\\u{1D2D3}\\u{1D2E0}-\\u{1D2F3}\\u{1D360}-\\u{1D378}\\u{1D7CE}-\\u{1D7FF}\\u{1E140}-\\u{1E149}\\u{1E2F0}-\\u{1E2F9}\\u{1E4F0}-\\u{1E4F9}\\u{1E5F1}-\\u{1E5FA}\\u{1E8C7}-\\u{1E8CF}\\u{1E950}-\\u{1E959}\\u{1EC71}-\\u{1ECAB}\\u{1ECAD}-\\u{1ECAF}\\u{1ECB1}-\\u{1ECB4}\\u{1ED01}-\\u{1ED2D}\\u{1ED2F}-\\u{1ED3D}\\u{1F100}-\\u{1F10C}\\u{1FBF0}-\\u{1FBF9}]","u"),escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}>`)},g=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,b=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,v=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,y=p(v).replace(/bull/g,b).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),_=p(v).replace(/bull/g,b).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),C=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,F=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",w).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),E=p(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,b).getRegex(),k="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",S=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,A=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",S).replace("tag",k).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),D=p(C).replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k).getRegex(),x={blockquote:p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",D).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:F,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:g,html:A,lheading:y,list:E,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:D,table:h,text:/^[^\n]+/},I=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k).getRegex(),B=l(a({},x),{lheading:_,table:I,paragraph:p(C).replace("hr",g).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",I).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",k).getRegex()}),T=l(a({},x),{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",S).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:h,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(C).replace("hr",g).replace("heading",` *#{1,6} *[^
614
- ]`).replace("lheading",y).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),j=/^( {2,}|\\)\n(?!\s*$)/,P=RegExp("[\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),L=RegExp("[\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),R=RegExp("[^\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),M=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,L).getRegex(),z=RegExp("(?!~)[\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),O=RegExp("(?!~)[\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),N=RegExp("(?:[^\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]|~)","u"),H=RegExp("(?![*_])[\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),U=RegExp("(?![*_])[\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),q=RegExp("(?:[^\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]|[*_])","u"),V=p(/link|precode-code|html/,"g").replace("link",RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",f?"(?<!`)()":"(^^|[^`])").replace("code",RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),W=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$=p(W,"u").replace(/punct/g,P).getRegex(),G=p(W,"u").replace(/punct/g,z).getRegex(),K="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Y=p(K,"gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,L).replace(/punct/g,P).getRegex(),J=p(K,"gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,O).replace(/punct/g,z).getRegex(),X=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,R).replace(/punctSpace/g,L).replace(/punct/g,P).getRegex(),Z=p(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,H).getRegex(),Q=p("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,q).replace(/punctSpace/g,U).replace(/punct/g,H).getRegex(),ee=p(/\\(punct)/,"gu").replace(/punct/g,P).getRegex(),et=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ei=p(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),en=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ei).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,er=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),es=p(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",w).getRegex(),ea=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",w).getRegex(),el=p("reflink|nolink(?!\\()","g").replace("reflink",es).replace("nolink",ea).getRegex(),eu=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ec={_backpedal:h,anyPunctuation:ee,autolink:et,blockSkip:V,br:j,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:h,delLDelim:h,delRDelim:h,emStrongLDelim:$,emStrongRDelimAst:Y,emStrongRDelimUnd:X,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:er,nolink:ea,punctuation:M,reflink:es,reflinkSearch:el,tag:en,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:h},ed=l(a({},ec),{link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()}),eh=l(a({},ec),{emStrongRDelimAst:J,emStrongLDelim:G,delLDelim:Z,delRDelim:Q,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",eu).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",eu).getRegex()}),ep=l(a({},eh),{br:p(j).replace("{2,}","*").getRegex(),text:p(eh.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),ef={normal:x,gfm:B,pedantic:T},em={normal:ec,gfm:eh,breaks:ep,pedantic:ed},eg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eb=t=>eg[t];function ev(t,i){if(i){if(m.escapeTest.test(t))return t.replace(m.escapeReplace,eb)}else if(m.escapeTestNoEncode.test(t))return t.replace(m.escapeReplaceNoEncode,eb);return t}function ey(t){try{t=encodeURI(t).replace(m.percentDecode,"%")}catch(t){return null}return t}function e_(t,i){var n;let o=t.replace(m.findPipe,(t,i,n)=>{let o=!1,r=i;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"}).split(m.splitPipe),r=0;if(o[0].trim()||o.shift(),!(o.length>0)||(null==(n=o.at(-1))?void 0:n.trim())||o.pop(),i)if(o.length>i)o.splice(i);else for(;o.length<i;)o.push("");for(;r<o.length;r++)o[r]=o[r].trim().replace(m.slashPipe,"|");return o}function eC(t,i,n){let o=t.length;if(0===o)return"";let r=0;for(;r<o;){let s=t.charAt(o-r-1);if(s!==i||n)if(s!==i&&n)r++;else break;else r++}return t.slice(0,o-r)}function ew(t,i,n,o,r){let s=i.href,a=i.title||null,l=t[1].replace(r.other.outputLinkReplace,"$1");o.state.inLink=!0;let u={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:s,title:a,text:l,tokens:o.inlineTokens(l)};return o.state.inLink=!1,u}var eF=class{space(t){let i=this.rules.block.newline.exec(t);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(t){let i=this.rules.block.code.exec(t);if(i){let t=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?t:eC(t,`
616
+ ]`).replace("lheading",y).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),j=/^( {2,}|\\)\n(?!\s*$)/,P=RegExp("[\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),L=RegExp("[\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),M=RegExp("[^\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),R=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,L).getRegex(),z=RegExp("(?!~)[\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),O=RegExp("(?!~)[\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),N=RegExp("(?:[^\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]|~)","u"),H=RegExp("(?![*_])[\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),U=RegExp("(?![*_])[\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]","u"),q=RegExp("(?:[^\\s\\u0021-\\u0023\\u0025-\\u002A\\u002C-\\u002F\\u003A-\\u003B\\u003F-\\u0040\\u005B-\\u005D\\u005F\\u007B\\u007D\\u00A1\\u00A7\\u00AB\\u00B6-\\u00B7\\u00BB\\u00BF\\u037E\\u0387\\u055A-\\u055F\\u0589-\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3-\\u05F4\\u0609-\\u060A\\u060C-\\u060D\\u061B\\u061D-\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964-\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C77\\u0C84\\u0DF4\\u0E4F\\u0E5A-\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9-\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166E\\u169B-\\u169C\\u16EB-\\u16ED\\u1735-\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944-\\u1945\\u1A1E-\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B4E-\\u1B4F\\u1B5A-\\u1B60\\u1B7D-\\u1B7F\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E-\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D-\\u207E\\u208D-\\u208E\\u2308-\\u230B\\u2329-\\u232A\\u2768-\\u2775\\u27C5-\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC-\\u29FD\\u2CF9-\\u2CFC\\u2CFE-\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4F\\u2E52-\\u2E5D\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE-\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE-\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E-\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE-\\uA9DF\\uAA5C-\\uAA5F\\uAADE-\\uAADF\\uAAF0-\\uAAF1\\uABEB\\uFD3E-\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A-\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A-\\uFF1B\\uFF1F-\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65\\u{10100}-\\u{10102}\\u{1039F}\\u{103D0}\\u{1056F}\\u{10857}\\u{1091F}\\u{1093F}\\u{10A50}-\\u{10A58}\\u{10A7F}\\u{10AF0}-\\u{10AF6}\\u{10B39}-\\u{10B3F}\\u{10B99}-\\u{10B9C}\\u{10D6E}\\u{10EAD}\\u{10ED0}\\u{10F55}-\\u{10F59}\\u{10F86}-\\u{10F89}\\u{11047}-\\u{1104D}\\u{110BB}-\\u{110BC}\\u{110BE}-\\u{110C1}\\u{11140}-\\u{11143}\\u{11174}-\\u{11175}\\u{111C5}-\\u{111C8}\\u{111CD}\\u{111DB}\\u{111DD}-\\u{111DF}\\u{11238}-\\u{1123D}\\u{112A9}\\u{113D4}-\\u{113D5}\\u{113D7}-\\u{113D8}\\u{1144B}-\\u{1144F}\\u{1145A}-\\u{1145B}\\u{1145D}\\u{114C6}\\u{115C1}-\\u{115D7}\\u{11641}-\\u{11643}\\u{11660}-\\u{1166C}\\u{116B9}\\u{1173C}-\\u{1173E}\\u{1183B}\\u{11944}-\\u{11946}\\u{119E2}\\u{11A3F}-\\u{11A46}\\u{11A9A}-\\u{11A9C}\\u{11A9E}-\\u{11AA2}\\u{11B00}-\\u{11B09}\\u{11BE1}\\u{11C41}-\\u{11C45}\\u{11C70}-\\u{11C71}\\u{11EF7}-\\u{11EF8}\\u{11F43}-\\u{11F4F}\\u{11FFF}\\u{12470}-\\u{12474}\\u{12FF1}-\\u{12FF2}\\u{16A6E}-\\u{16A6F}\\u{16AF5}\\u{16B37}-\\u{16B3B}\\u{16B44}\\u{16D6D}-\\u{16D6F}\\u{16E97}-\\u{16E9A}\\u{16FE2}\\u{1BC9F}\\u{1DA87}-\\u{1DA8B}\\u{1E5FF}\\u{1E95E}-\\u{1E95F}\\u0024\\u002B\\u003C-\\u003E\\u005E\\u0060\\u007C\\u007E\\u00A2-\\u00A6\\u00A8-\\u00A9\\u00AC\\u00AE-\\u00B1\\u00B4\\u00B8\\u00D7\\u00F7\\u02C2-\\u02C5\\u02D2-\\u02DF\\u02E5-\\u02EB\\u02ED\\u02EF-\\u02FF\\u0375\\u0384-\\u0385\\u03F6\\u0482\\u058D-\\u058F\\u0606-\\u0608\\u060B\\u060E-\\u060F\\u06DE\\u06E9\\u06FD-\\u06FE\\u07F6\\u07FE-\\u07FF\\u0888\\u09F2-\\u09F3\\u09FA-\\u09FB\\u0AF1\\u0B70\\u0BF3-\\u0BFA\\u0C7F\\u0D4F\\u0D79\\u0E3F\\u0F01-\\u0F03\\u0F13\\u0F15-\\u0F17\\u0F1A-\\u0F1F\\u0F34\\u0F36\\u0F38\\u0FBE-\\u0FC5\\u0FC7-\\u0FCC\\u0FCE-\\u0FCF\\u0FD5-\\u0FD8\\u109E-\\u109F\\u1390-\\u1399\\u166D\\u17DB\\u1940\\u19DE-\\u19FF\\u1B61-\\u1B6A\\u1B74-\\u1B7C\\u1FBD\\u1FBF-\\u1FC1\\u1FCD-\\u1FCF\\u1FDD-\\u1FDF\\u1FED-\\u1FEF\\u1FFD-\\u1FFE\\u2044\\u2052\\u207A-\\u207C\\u208A-\\u208C\\u20A0-\\u20C1\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u214F\\u218A-\\u218B\\u2190-\\u2307\\u230C-\\u2328\\u232B-\\u2429\\u2440-\\u244A\\u249C-\\u24E9\\u2500-\\u2767\\u2794-\\u27C4\\u27C7-\\u27E5\\u27F0-\\u2982\\u2999-\\u29D7\\u29DC-\\u29FB\\u29FE-\\u2B73\\u2B76-\\u2BFF\\u2CE5-\\u2CEA\\u2E50-\\u2E51\\u2E80-\\u2E99\\u2E9B-\\u2EF3\\u2F00-\\u2FD5\\u2FF0-\\u2FFF\\u3004\\u3012-\\u3013\\u3020\\u3036-\\u3037\\u303E-\\u303F\\u309B-\\u309C\\u3190-\\u3191\\u3196-\\u319F\\u31C0-\\u31E5\\u31EF\\u3200-\\u321E\\u322A-\\u3247\\u3250\\u3260-\\u327F\\u328A-\\u32B0\\u32C0-\\u33FF\\u4DC0-\\u4DFF\\uA490-\\uA4C6\\uA700-\\uA716\\uA720-\\uA721\\uA789-\\uA78A\\uA828-\\uA82B\\uA836-\\uA839\\uAA77-\\uAA79\\uAB5B\\uAB6A-\\uAB6B\\uFB29\\uFBB2-\\uFBD2\\uFD40-\\uFD4F\\uFD90-\\uFD91\\uFDC8-\\uFDCF\\uFDFC-\\uFDFF\\uFE62\\uFE64-\\uFE66\\uFE69\\uFF04\\uFF0B\\uFF1C-\\uFF1E\\uFF3E\\uFF40\\uFF5C\\uFF5E\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE\\uFFFC-\\uFFFD\\u{10137}-\\u{1013F}\\u{10179}-\\u{10189}\\u{1018C}-\\u{1018E}\\u{10190}-\\u{1019C}\\u{101A0}\\u{101D0}-\\u{101FC}\\u{10877}-\\u{10878}\\u{10AC8}\\u{10D8E}-\\u{10D8F}\\u{10ED1}-\\u{10ED8}\\u{1173F}\\u{11FD5}-\\u{11FF1}\\u{16B3C}-\\u{16B3F}\\u{16B45}\\u{1BC9C}\\u{1CC00}-\\u{1CCEF}\\u{1CCFA}-\\u{1CCFC}\\u{1CD00}-\\u{1CEB3}\\u{1CEBA}-\\u{1CED0}\\u{1CEE0}-\\u{1CEF0}\\u{1CF50}-\\u{1CFC3}\\u{1D000}-\\u{1D0F5}\\u{1D100}-\\u{1D126}\\u{1D129}-\\u{1D164}\\u{1D16A}-\\u{1D16C}\\u{1D183}-\\u{1D184}\\u{1D18C}-\\u{1D1A9}\\u{1D1AE}-\\u{1D1EA}\\u{1D200}-\\u{1D241}\\u{1D245}\\u{1D300}-\\u{1D356}\\u{1D6C1}\\u{1D6DB}\\u{1D6FB}\\u{1D715}\\u{1D735}\\u{1D74F}\\u{1D76F}\\u{1D789}\\u{1D7A9}\\u{1D7C3}\\u{1D800}-\\u{1D9FF}\\u{1DA37}-\\u{1DA3A}\\u{1DA6D}-\\u{1DA74}\\u{1DA76}-\\u{1DA83}\\u{1DA85}-\\u{1DA86}\\u{1E14F}\\u{1E2FF}\\u{1ECAC}\\u{1ECB0}\\u{1ED2E}\\u{1EEF0}-\\u{1EEF1}\\u{1F000}-\\u{1F02B}\\u{1F030}-\\u{1F093}\\u{1F0A0}-\\u{1F0AE}\\u{1F0B1}-\\u{1F0BF}\\u{1F0C1}-\\u{1F0CF}\\u{1F0D1}-\\u{1F0F5}\\u{1F10D}-\\u{1F1AD}\\u{1F1E6}-\\u{1F202}\\u{1F210}-\\u{1F23B}\\u{1F240}-\\u{1F248}\\u{1F250}-\\u{1F251}\\u{1F260}-\\u{1F265}\\u{1F300}-\\u{1F6D8}\\u{1F6DC}-\\u{1F6EC}\\u{1F6F0}-\\u{1F6FC}\\u{1F700}-\\u{1F7D9}\\u{1F7E0}-\\u{1F7EB}\\u{1F7F0}\\u{1F800}-\\u{1F80B}\\u{1F810}-\\u{1F847}\\u{1F850}-\\u{1F859}\\u{1F860}-\\u{1F887}\\u{1F890}-\\u{1F8AD}\\u{1F8B0}-\\u{1F8BB}\\u{1F8C0}-\\u{1F8C1}\\u{1F8D0}-\\u{1F8D8}\\u{1F900}-\\u{1FA57}\\u{1FA60}-\\u{1FA6D}\\u{1FA70}-\\u{1FA7C}\\u{1FA80}-\\u{1FA8A}\\u{1FA8E}-\\u{1FAC6}\\u{1FAC8}\\u{1FACD}-\\u{1FADC}\\u{1FADF}-\\u{1FAEA}\\u{1FAEF}-\\u{1FAF8}\\u{1FB00}-\\u{1FB92}\\u{1FB94}-\\u{1FBEF}\\u{1FBFA}]|[*_])","u"),V=p(/link|precode-code|html/,"g").replace("link",RegExp("\\[(?:[^\\[\\]`]|(?<a>`+)[^`]+\\k<a>(?!`))*?\\]\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)]|\\((?:\\\\[\\s\\S]|[^\\\\\\(\\)])*\\))*\\)")).replace("precode-",f?"(?<!`)()":"(^^|[^`])").replace("code",RegExp("(?<b>`+)[^`]+\\k<b>(?!`)")).replace("html",/<(?! )[^<>]*?>/).getRegex(),W=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$=p(W,"u").replace(/punct/g,P).getRegex(),G=p(W,"u").replace(/punct/g,z).getRegex(),K="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Y=p(K,"gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,P).getRegex(),J=p(K,"gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,O).replace(/punct/g,z).getRegex(),X=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,M).replace(/punctSpace/g,L).replace(/punct/g,P).getRegex(),Z=p(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,H).getRegex(),Q=p("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,q).replace(/punctSpace/g,U).replace(/punct/g,H).getRegex(),ee=p(/\\(punct)/,"gu").replace(/punct/g,P).getRegex(),et=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ei=p(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),en=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ei).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),eo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,er=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",eo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),es=p(/^!?\[(label)\]\[(ref)\]/).replace("label",eo).replace("ref",w).getRegex(),ea=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",w).getRegex(),el=p("reflink|nolink(?!\\()","g").replace("reflink",es).replace("nolink",ea).getRegex(),eu=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ec={_backpedal:h,anyPunctuation:ee,autolink:et,blockSkip:V,br:j,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:h,delLDelim:h,delRDelim:h,emStrongLDelim:$,emStrongRDelimAst:Y,emStrongRDelimUnd:X,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:er,nolink:ea,punctuation:R,reflink:es,reflinkSearch:el,tag:en,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:h},ed=l(a({},ec),{link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",eo).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",eo).getRegex()}),eh=l(a({},ec),{emStrongRDelimAst:J,emStrongLDelim:G,delLDelim:Z,delRDelim:Q,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",eu).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",eu).getRegex()}),ep=l(a({},eh),{br:p(j).replace("{2,}","*").getRegex(),text:p(eh.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),ef={normal:x,gfm:B,pedantic:T},em={normal:ec,gfm:eh,breaks:ep,pedantic:ed},eg={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},eb=t=>eg[t];function ev(t,i){if(i){if(m.escapeTest.test(t))return t.replace(m.escapeReplace,eb)}else if(m.escapeTestNoEncode.test(t))return t.replace(m.escapeReplaceNoEncode,eb);return t}function ey(t){try{t=encodeURI(t).replace(m.percentDecode,"%")}catch(t){return null}return t}function e_(t,i){var n;let o=t.replace(m.findPipe,(t,i,n)=>{let o=!1,r=i;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"}).split(m.splitPipe),r=0;if(o[0].trim()||o.shift(),!(o.length>0)||(null==(n=o.at(-1))?void 0:n.trim())||o.pop(),i)if(o.length>i)o.splice(i);else for(;o.length<i;)o.push("");for(;r<o.length;r++)o[r]=o[r].trim().replace(m.slashPipe,"|");return o}function eC(t,i,n){let o=t.length;if(0===o)return"";let r=0;for(;r<o;){let s=t.charAt(o-r-1);if(s!==i||n)if(s!==i&&n)r++;else break;else r++}return t.slice(0,o-r)}function ew(t,i,n,o,r){let s=i.href,a=i.title||null,l=t[1].replace(r.other.outputLinkReplace,"$1");o.state.inLink=!0;let u={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:s,title:a,text:l,tokens:o.inlineTokens(l)};return o.state.inLink=!1,u}var eF=class{space(t){let i=this.rules.block.newline.exec(t);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(t){let i=this.rules.block.code.exec(t);if(i){let t=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?t:eC(t,`
615
617
  `)}}}fences(t){let i=this.rules.block.fences.exec(t);if(i){let t=i[0],n=function(t,i,n){let o=t.match(n.other.indentCodeCompensation);if(null===o)return i;let r=o[1];return i.split(`
616
618
  `).map(t=>{let i=t.match(n.other.beginningSpace);if(null===i)return t;let[o]=i;return o.length>=r.length?t.slice(r.length):t}).join(`
617
619
  `)}(t,i[3]||"",this.rules);return{type:"code",raw:t,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:n}}}heading(t){let i=this.rules.block.heading.exec(t);if(i){let t=i[2].trim();if(this.rules.other.endingHash.test(t)){let i=eC(t,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(t=i.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let i=this.rules.block.hr.exec(t);if(i)return{type:"hr",raw:eC(i[0],`