jodit 4.0.18 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (574) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +72 -9
  3. package/es2015/jodit.css +3504 -3426
  4. package/es2015/jodit.fat.min.css +1 -1
  5. package/es2015/jodit.fat.min.js +3 -3
  6. package/es2015/jodit.js +12107 -6610
  7. package/es2015/jodit.min.css +1 -1
  8. package/es2015/jodit.min.js +3 -3
  9. package/es2015/plugins/debug/debug.js +14 -14
  10. package/es2015/plugins/debug/debug.min.js +3 -3
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +2 -2
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +117 -122
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +3 -3
  14. package/es2018/jodit.css +3504 -3426
  15. package/es2018/jodit.fat.min.css +1 -1
  16. package/es2018/jodit.fat.min.js +3 -3
  17. package/es2018/jodit.js +12078 -6581
  18. package/es2018/jodit.min.css +1 -1
  19. package/es2018/jodit.min.js +3 -3
  20. package/es2018/plugins/debug/debug.js +14 -14
  21. package/es2018/plugins/debug/debug.min.js +3 -3
  22. package/es2018/plugins/speech-recognize/speech-recognize.css +2 -2
  23. package/es2018/plugins/speech-recognize/speech-recognize.js +117 -122
  24. package/es2018/plugins/speech-recognize/speech-recognize.min.js +3 -3
  25. package/es2021/jodit.css +3504 -3426
  26. package/es2021/jodit.fat.min.css +1 -1
  27. package/es2021/jodit.fat.min.js +3 -3
  28. package/es2021/jodit.js +12078 -6581
  29. package/es2021/jodit.min.css +1 -1
  30. package/es2021/jodit.min.js +3 -3
  31. package/es2021/plugins/debug/debug.js +14 -14
  32. package/es2021/plugins/debug/debug.min.js +3 -3
  33. package/es2021/plugins/speech-recognize/speech-recognize.css +2 -2
  34. package/es2021/plugins/speech-recognize/speech-recognize.js +117 -122
  35. package/es2021/plugins/speech-recognize/speech-recognize.min.js +3 -3
  36. package/es2021.en/jodit.css +3504 -3426
  37. package/es2021.en/jodit.fat.min.css +1 -1
  38. package/es2021.en/jodit.fat.min.js +3 -3
  39. package/es2021.en/jodit.js +11825 -6381
  40. package/es2021.en/jodit.min.css +1 -1
  41. package/es2021.en/jodit.min.js +3 -3
  42. package/es2021.en/plugins/debug/debug.js +14 -14
  43. package/es2021.en/plugins/debug/debug.min.js +3 -3
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.css +2 -2
  45. package/es2021.en/plugins/speech-recognize/speech-recognize.js +76 -81
  46. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +3 -3
  47. package/es5/jodit.css +4207 -4114
  48. package/es5/jodit.fat.min.css +1 -1
  49. package/es5/jodit.fat.min.js +3 -3
  50. package/es5/jodit.js +7620 -7279
  51. package/es5/jodit.min.css +5 -5
  52. package/es5/jodit.min.js +3 -3
  53. package/es5/plugins/debug/debug.js +16 -16
  54. package/es5/plugins/debug/debug.min.js +3 -3
  55. package/es5/plugins/speech-recognize/speech-recognize.css +2 -2
  56. package/es5/plugins/speech-recognize/speech-recognize.js +122 -127
  57. package/es5/plugins/speech-recognize/speech-recognize.min.js +3 -3
  58. package/esm/config.d.ts +6 -19
  59. package/esm/config.js +18 -5
  60. package/esm/core/async/async.js +4 -4
  61. package/esm/core/component/component.d.ts +2 -2
  62. package/esm/core/component/component.js +4 -4
  63. package/esm/core/component/index.d.ts +1 -1
  64. package/esm/core/component/index.js +1 -1
  65. package/esm/core/constants.d.ts +1 -0
  66. package/esm/core/constants.js +2 -1
  67. package/esm/core/create/create.d.ts +3 -2
  68. package/esm/core/create/create.js +5 -4
  69. package/esm/core/decorators/autobind/autobind.d.ts +6 -0
  70. package/esm/core/decorators/autobind/autobind.js +6 -0
  71. package/esm/core/decorators/cache/cache.d.ts +2 -2
  72. package/esm/core/decorators/cache/cache.js +4 -4
  73. package/esm/core/decorators/debounce/debounce.d.ts +1 -1
  74. package/esm/core/decorators/debounce/debounce.js +2 -2
  75. package/esm/core/decorators/index.d.ts +3 -3
  76. package/esm/core/decorators/index.js +3 -3
  77. package/esm/core/decorators/wait/wait.js +1 -1
  78. package/esm/core/decorators/watch/watch.js +3 -3
  79. package/esm/core/dom/dom.js +2 -2
  80. package/esm/core/dom/lazy-walker.js +1 -1
  81. package/esm/core/event-emitter/event-emitter.js +4 -4
  82. package/esm/core/event-emitter/observable.d.ts +1 -1
  83. package/esm/core/event-emitter/observable.js +1 -1
  84. package/esm/core/event-emitter/store.js +1 -1
  85. package/esm/core/global.d.ts +1 -1
  86. package/esm/core/global.js +7 -7
  87. package/esm/core/helpers/array/as-array.d.ts +1 -1
  88. package/esm/core/helpers/array/to-array.js +1 -1
  89. package/esm/core/helpers/checker/index.d.ts +3 -3
  90. package/esm/core/helpers/checker/index.js +3 -3
  91. package/esm/core/helpers/checker/is-imp-interface.js +1 -1
  92. package/esm/core/helpers/checker/is-marker.js +1 -1
  93. package/esm/core/helpers/checker/is-url.d.ts +1 -1
  94. package/esm/core/helpers/checker/is-url.js +1 -1
  95. package/esm/core/helpers/checker/is-view-object.d.ts +1 -1
  96. package/esm/core/helpers/checker/is-view-object.js +1 -1
  97. package/esm/core/helpers/html/apply-styles.js +2 -2
  98. package/esm/core/helpers/html/clean-from-word.js +1 -1
  99. package/esm/core/helpers/html/index.d.ts +2 -2
  100. package/esm/core/helpers/html/index.js +2 -2
  101. package/esm/core/helpers/html/safe-html.js +1 -1
  102. package/esm/core/helpers/html/strip-tags.d.ts +1 -1
  103. package/esm/core/helpers/html/strip-tags.js +2 -2
  104. package/esm/core/helpers/index.d.ts +1 -1
  105. package/esm/core/helpers/index.js +1 -1
  106. package/esm/core/helpers/normalize/index.d.ts +2 -2
  107. package/esm/core/helpers/normalize/index.js +2 -2
  108. package/esm/core/helpers/normalize/normalize-css-value.js +2 -2
  109. package/esm/core/helpers/normalize/normalize-key-aliases.js +1 -1
  110. package/esm/core/helpers/size/get-scroll-parent.js +1 -1
  111. package/esm/core/helpers/size/index.d.ts +1 -1
  112. package/esm/core/helpers/size/index.js +1 -1
  113. package/esm/core/helpers/string/i18n.js +3 -3
  114. package/esm/core/helpers/string/trim.js +1 -1
  115. package/esm/core/helpers/utils/append-script.js +1 -1
  116. package/esm/core/helpers/utils/attr.js +1 -1
  117. package/esm/core/helpers/utils/config-proto.js +3 -3
  118. package/esm/core/helpers/utils/css.js +2 -2
  119. package/esm/core/helpers/utils/data-bind.d.ts +1 -1
  120. package/esm/core/helpers/utils/index.d.ts +1 -1
  121. package/esm/core/helpers/utils/index.js +1 -1
  122. package/esm/core/helpers/utils/print.js +2 -2
  123. package/esm/core/helpers/utils/reset.js +2 -2
  124. package/esm/core/helpers/utils/selector.d.ts +7 -6
  125. package/esm/core/helpers/utils/selector.js +6 -8
  126. package/esm/core/helpers/utils/set.js +2 -2
  127. package/esm/core/helpers/utils/utils.d.ts +4 -4
  128. package/esm/core/helpers/utils/utils.js +2 -2
  129. package/esm/core/plugin/helpers/init-instance.d.ts +1 -1
  130. package/esm/core/plugin/helpers/init-instance.js +3 -3
  131. package/esm/core/plugin/helpers/load.js +2 -2
  132. package/esm/core/plugin/helpers/make-instance.js +1 -1
  133. package/esm/core/plugin/index.d.ts +1 -1
  134. package/esm/core/plugin/index.js +1 -1
  135. package/esm/core/plugin/plugin-system.js +5 -5
  136. package/esm/core/plugin/plugin.js +1 -1
  137. package/esm/core/request/ajax.d.ts +1 -1
  138. package/esm/core/request/ajax.js +5 -5
  139. package/esm/core/selection/helpers/move-node-inside-start.js +1 -1
  140. package/esm/core/selection/index.d.ts +1 -1
  141. package/esm/core/selection/index.js +1 -1
  142. package/esm/core/selection/selection.js +5 -5
  143. package/esm/core/selection/style/api/extract.js +2 -2
  144. package/esm/core/selection/style/api/finite-state-machine.js +3 -2
  145. package/esm/core/selection/style/api/get-suit-child.d.ts +1 -1
  146. package/esm/core/selection/style/api/get-suit-parent.d.ts +1 -1
  147. package/esm/core/selection/style/api/has-same-style.js +2 -2
  148. package/esm/core/selection/style/api/index.d.ts +5 -5
  149. package/esm/core/selection/style/api/index.js +5 -5
  150. package/esm/core/selection/style/api/is-same-attributes.js +1 -1
  151. package/esm/core/selection/style/api/is-suit-element.d.ts +1 -1
  152. package/esm/core/selection/style/api/is-suit-element.js +1 -1
  153. package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
  154. package/esm/core/selection/style/api/list/toggle-ordered-list.js +1 -1
  155. package/esm/core/selection/style/api/list/wrap-list.d.ts +1 -1
  156. package/esm/core/selection/style/api/list/wrap-list.js +1 -1
  157. package/esm/core/selection/style/api/toggle-attributes.d.ts +1 -1
  158. package/esm/core/selection/style/api/toggle-attributes.js +6 -6
  159. package/esm/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
  160. package/esm/core/selection/style/api/wrap.d.ts +1 -1
  161. package/esm/core/selection/style/api/wrap.js +1 -1
  162. package/esm/core/selection/style/apply-style.d.ts +1 -1
  163. package/esm/core/selection/style/apply-style.js +1 -1
  164. package/esm/core/selection/style/commit-style.d.ts +2 -2
  165. package/esm/core/selection/style/commit-style.js +1 -1
  166. package/esm/core/selection/style/transactions.d.ts +1 -1
  167. package/esm/core/selection/style/transactions.js +3 -4
  168. package/esm/core/storage/index.d.ts +1 -1
  169. package/esm/core/storage/index.js +1 -1
  170. package/esm/core/traits/dlgs.d.ts +1 -1
  171. package/esm/core/traits/dlgs.js +1 -1
  172. package/esm/core/traits/mods.d.ts +1 -1
  173. package/esm/core/ui/button/button/button.d.ts +4 -4
  174. package/esm/core/ui/button/button/button.js +8 -11
  175. package/esm/core/ui/button/group/group.d.ts +1 -1
  176. package/esm/core/ui/button/group/group.js +2 -5
  177. package/esm/core/ui/button/tooltip/tooltip.d.ts +1 -1
  178. package/esm/core/ui/button/tooltip/tooltip.js +4 -9
  179. package/esm/core/ui/element.d.ts +1 -1
  180. package/esm/core/ui/element.js +4 -4
  181. package/esm/core/ui/form/block/block.d.ts +1 -1
  182. package/esm/core/ui/form/block/block.js +2 -5
  183. package/esm/core/ui/form/form.d.ts +1 -1
  184. package/esm/core/ui/form/form.js +5 -4
  185. package/esm/core/ui/form/index.d.ts +1 -1
  186. package/esm/core/ui/form/index.js +1 -1
  187. package/esm/core/ui/form/inputs/area/area.d.ts +2 -2
  188. package/esm/core/ui/form/inputs/area/area.js +2 -5
  189. package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
  190. package/esm/core/ui/form/inputs/checkbox/checkbox.js +2 -5
  191. package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
  192. package/esm/core/ui/form/inputs/file/file.js +1 -4
  193. package/esm/core/ui/form/inputs/index.d.ts +2 -2
  194. package/esm/core/ui/form/inputs/index.js +2 -2
  195. package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
  196. package/esm/core/ui/form/inputs/input/input.js +5 -8
  197. package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
  198. package/esm/core/ui/form/inputs/select/select.js +1 -4
  199. package/esm/core/ui/group/group.d.ts +2 -3
  200. package/esm/core/ui/group/group.js +3 -8
  201. package/esm/core/ui/group/list.d.ts +2 -2
  202. package/esm/core/ui/group/list.js +4 -7
  203. package/esm/core/ui/group/separator.d.ts +0 -3
  204. package/esm/core/ui/group/separator.js +1 -1
  205. package/esm/core/ui/group/spacer.d.ts +0 -3
  206. package/esm/core/ui/group/spacer.js +1 -1
  207. package/esm/core/ui/helpers/get-strong-control-types.js +2 -2
  208. package/esm/core/ui/icon.js +3 -3
  209. package/esm/core/ui/index.d.ts +3 -3
  210. package/esm/core/ui/index.js +3 -3
  211. package/esm/core/ui/popup/popup.d.ts +1 -1
  212. package/esm/core/ui/popup/popup.js +4 -9
  213. package/esm/core/ui/progress-bar/progress-bar.d.ts +1 -1
  214. package/esm/core/ui/progress-bar/progress-bar.js +0 -5
  215. package/esm/core/view/view-with-toolbar.d.ts +5 -5
  216. package/esm/core/view/view-with-toolbar.js +11 -13
  217. package/esm/core/view/view.d.ts +6 -6
  218. package/esm/core/view/view.js +15 -8
  219. package/esm/index.d.ts +2 -7
  220. package/esm/index.js +11 -4
  221. package/esm/jodit.d.ts +7 -7
  222. package/esm/jodit.js +16 -17
  223. package/esm/languages.js +2 -2
  224. package/esm/modules/context-menu/context-menu.d.ts +3 -3
  225. package/esm/modules/context-menu/context-menu.js +4 -9
  226. package/esm/modules/dialog/alert.js +2 -2
  227. package/esm/modules/dialog/confirm.js +1 -1
  228. package/esm/modules/dialog/dialog.d.ts +2 -2
  229. package/esm/modules/dialog/dialog.js +9 -12
  230. package/esm/modules/dialog/index.d.ts +2 -2
  231. package/esm/modules/dialog/index.js +2 -2
  232. package/esm/modules/dialog/prompt.js +1 -1
  233. package/esm/modules/file-browser/builders/context-menu.d.ts +1 -1
  234. package/esm/modules/file-browser/builders/context-menu.js +3 -3
  235. package/esm/modules/file-browser/config.d.ts +3 -0
  236. package/esm/modules/file-browser/config.js +2 -5
  237. package/esm/modules/file-browser/data-provider.d.ts +1 -1
  238. package/esm/modules/file-browser/data-provider.js +2 -2
  239. package/esm/modules/file-browser/file-browser.d.ts +3 -3
  240. package/esm/modules/file-browser/file-browser.js +13 -16
  241. package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -1
  242. package/esm/modules/file-browser/listeners/native-listeners.js +1 -1
  243. package/esm/modules/file-browser/listeners/self-listeners.js +4 -4
  244. package/esm/modules/file-browser/ui/files/files.d.ts +1 -1
  245. package/esm/modules/file-browser/ui/tree/tree.d.ts +1 -1
  246. package/esm/modules/history/history.d.ts +1 -1
  247. package/esm/modules/history/history.js +3 -3
  248. package/esm/modules/history/snapshot.js +1 -1
  249. package/esm/modules/image-editor/config.js +1 -1
  250. package/esm/modules/image-editor/image-editor.d.ts +2 -2
  251. package/esm/modules/image-editor/image-editor.js +4 -9
  252. package/esm/modules/index.d.ts +13 -12
  253. package/esm/modules/index.js +13 -12
  254. package/esm/modules/messages/message.js +1 -1
  255. package/esm/modules/messages/messages.d.ts +1 -1
  256. package/esm/modules/messages/messages.js +1 -6
  257. package/esm/modules/status-bar/status-bar.d.ts +3 -3
  258. package/esm/modules/status-bar/status-bar.js +3 -8
  259. package/esm/modules/table/table.js +3 -3
  260. package/esm/modules/toolbar/button/button.d.ts +2 -2
  261. package/esm/modules/toolbar/button/button.js +9 -14
  262. package/esm/modules/toolbar/button/content.d.ts +1 -1
  263. package/esm/modules/toolbar/button/content.js +3 -6
  264. package/esm/modules/toolbar/button/select/select.d.ts +1 -1
  265. package/esm/modules/toolbar/button/select/select.js +0 -3
  266. package/esm/modules/toolbar/collection/collection.d.ts +4 -4
  267. package/esm/modules/toolbar/collection/collection.js +3 -8
  268. package/esm/modules/toolbar/collection/editor-collection.d.ts +1 -1
  269. package/esm/modules/toolbar/collection/editor-collection.js +2 -5
  270. package/esm/modules/toolbar/factory.js +2 -2
  271. package/esm/modules/uploader/config.js +1 -1
  272. package/esm/modules/uploader/helpers/index.d.ts +2 -2
  273. package/esm/modules/uploader/helpers/index.js +2 -2
  274. package/esm/modules/uploader/helpers/process-old-browser-drag.js +1 -1
  275. package/esm/modules/uploader/helpers/send.js +1 -2
  276. package/esm/modules/uploader/uploader.d.ts +1 -1
  277. package/esm/modules/uploader/uploader.js +3 -8
  278. package/esm/modules/widget/color-picker/color-picker.d.ts +3 -3
  279. package/esm/modules/widget/color-picker/color-picker.js +4 -9
  280. package/esm/modules/widget/file-selector/file-selector.js +2 -2
  281. package/esm/modules/widget/index.d.ts +1 -1
  282. package/esm/modules/widget/index.js +1 -1
  283. package/esm/modules/widget/tabs/tabs.d.ts +1 -1
  284. package/esm/modules/widget/tabs/tabs.js +2 -7
  285. package/esm/plugins/about/about.d.ts +0 -5
  286. package/esm/plugins/about/about.js +3 -8
  287. package/esm/plugins/add-new-line/add-new-line.d.ts +1 -1
  288. package/esm/plugins/add-new-line/add-new-line.js +2 -7
  289. package/esm/plugins/add-new-line/config.js +1 -1
  290. package/esm/plugins/ai-assistant/ai-assistant.d.ts +27 -0
  291. package/esm/plugins/ai-assistant/ai-assistant.js +104 -0
  292. package/esm/plugins/ai-assistant/ai-assistant.svg.js +1 -0
  293. package/esm/plugins/ai-assistant/chat-bot.svg.js +1 -0
  294. package/esm/plugins/ai-assistant/config.d.ts +72 -0
  295. package/esm/plugins/ai-assistant/config.js +94 -0
  296. package/esm/plugins/ai-assistant/langs/en.d.ts +9 -0
  297. package/esm/plugins/ai-assistant/langs/en.js +14 -0
  298. package/esm/plugins/ai-assistant/langs/es.d.ts +40 -0
  299. package/esm/plugins/ai-assistant/langs/es.js +45 -0
  300. package/esm/plugins/ai-assistant/langs/index.d.ts +8 -0
  301. package/esm/plugins/ai-assistant/langs/index.js +8 -0
  302. package/esm/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
  303. package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +141 -0
  304. package/esm/plugins/backspace/backspace.js +5 -5
  305. package/esm/plugins/backspace/cases/check-join-neighbors.js +2 -2
  306. package/esm/plugins/backspace/cases/check-remove-char.js +2 -2
  307. package/esm/plugins/backspace/cases/check-remove-empty-parent.js +1 -1
  308. package/esm/plugins/backspace/cases/check-remove-unbreakable-element.js +1 -1
  309. package/esm/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
  310. package/esm/plugins/backspace/cases/check-unwrap-first-list-item.js +1 -1
  311. package/esm/plugins/backspace/cases/index.d.ts +1 -1
  312. package/esm/plugins/backspace/cases/index.js +6 -6
  313. package/esm/plugins/bold/bold.js +4 -4
  314. package/esm/plugins/class-span/class-span.js +3 -3
  315. package/esm/plugins/clean-html/clean-html.js +5 -5
  316. package/esm/plugins/clean-html/config.js +1 -1
  317. package/esm/plugins/clean-html/helpers/get-hash.js +1 -1
  318. package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js +1 -1
  319. package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.js +1 -1
  320. package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
  321. package/esm/plugins/clean-html/helpers/visitor/filters/index.js +2 -2
  322. package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +1 -1
  323. package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
  324. package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.js +1 -1
  325. package/esm/plugins/clipboard/clipboard.js +1 -1
  326. package/esm/plugins/clipboard/config.js +1 -1
  327. package/esm/plugins/color/color.js +1 -1
  328. package/esm/plugins/color/config.js +3 -3
  329. package/esm/plugins/copy-format/copy-format.js +2 -2
  330. package/esm/plugins/delete/delete.js +2 -2
  331. package/esm/plugins/drag-and-drop/drag-and-drop.js +2 -2
  332. package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +3 -3
  333. package/esm/plugins/dtd/dtd.js +3 -3
  334. package/esm/plugins/enter/enter.js +5 -5
  335. package/esm/plugins/enter/helpers/check-br.js +2 -2
  336. package/esm/plugins/enter/helpers/index.d.ts +2 -2
  337. package/esm/plugins/enter/helpers/index.js +2 -2
  338. package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
  339. package/esm/plugins/enter/helpers/split-fragment.js +1 -1
  340. package/esm/plugins/file/file.js +2 -2
  341. package/esm/plugins/focus/focus.js +1 -1
  342. package/esm/plugins/font/config.js +4 -4
  343. package/esm/plugins/font/font.js +1 -1
  344. package/esm/plugins/format-block/config.js +2 -2
  345. package/esm/plugins/fullsize/config.d.ts +0 -3
  346. package/esm/plugins/fullsize/config.js +1 -4
  347. package/esm/plugins/fullsize/fullsize.d.ts +1 -1
  348. package/esm/plugins/fullsize/fullsize.js +2 -7
  349. package/esm/plugins/hotkeys/hotkeys.js +2 -2
  350. package/esm/plugins/hr/hr.js +1 -1
  351. package/esm/plugins/iframe/iframe.js +2 -2
  352. package/esm/plugins/image/image.js +3 -3
  353. package/esm/plugins/image-processor/image-processor.js +3 -3
  354. package/esm/plugins/image-properties/image-properties.d.ts +1 -1
  355. package/esm/plugins/image-properties/image-properties.js +6 -11
  356. package/esm/plugins/indent/config.js +2 -2
  357. package/esm/plugins/indent/indent.js +1 -1
  358. package/esm/plugins/index.d.ts +1 -0
  359. package/esm/plugins/inline-popup/config/config.js +9 -11
  360. package/esm/plugins/inline-popup/config/items/img.js +1 -1
  361. package/esm/plugins/inline-popup/inline-popup.d.ts +1 -1
  362. package/esm/plugins/inline-popup/inline-popup.js +6 -11
  363. package/esm/plugins/justify/justify.js +3 -3
  364. package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
  365. package/esm/plugins/limit/limit.js +1 -1
  366. package/esm/plugins/line-height/config.js +1 -1
  367. package/esm/plugins/line-height/line-height.js +3 -3
  368. package/esm/plugins/link/config.d.ts +1 -1
  369. package/esm/plugins/link/config.js +2 -2
  370. package/esm/plugins/link/link.js +2 -2
  371. package/esm/plugins/link/template.js +1 -1
  372. package/esm/plugins/media/media.js +1 -1
  373. package/esm/plugins/mobile/config.d.ts +3 -0
  374. package/esm/plugins/mobile/config.js +2 -5
  375. package/esm/plugins/mobile/mobile.js +1 -1
  376. package/esm/plugins/ordered-list/config.js +1 -1
  377. package/esm/plugins/ordered-list/ordered-list.js +1 -1
  378. package/esm/plugins/paste/config.js +3 -1
  379. package/esm/plugins/paste/helpers.js +2 -2
  380. package/esm/plugins/paste/paste.js +4 -4
  381. package/esm/plugins/paste-from-word/config.js +1 -1
  382. package/esm/plugins/paste-from-word/paste-from-word.d.ts +1 -1
  383. package/esm/plugins/paste-from-word/paste-from-word.js +3 -3
  384. package/esm/plugins/paste-storage/paste-storage.d.ts +1 -6
  385. package/esm/plugins/paste-storage/paste-storage.js +2 -7
  386. package/esm/plugins/placeholder/placeholder.d.ts +1 -1
  387. package/esm/plugins/placeholder/placeholder.js +5 -10
  388. package/esm/plugins/preview/preview.d.ts +1 -1
  389. package/esm/plugins/preview/preview.js +1 -6
  390. package/esm/plugins/print/print.js +4 -5
  391. package/esm/plugins/redo-undo/redo-undo.js +2 -2
  392. package/esm/plugins/resize-cells/resize-cells.d.ts +1 -1
  393. package/esm/plugins/resize-cells/resize-cells.js +2 -7
  394. package/esm/plugins/resize-handler/resize-handler.js +3 -3
  395. package/esm/plugins/resizer/resizer.d.ts +1 -1
  396. package/esm/plugins/resizer/resizer.js +3 -9
  397. package/esm/plugins/search/config.js +2 -2
  398. package/esm/plugins/search/helpers/index.d.ts +1 -1
  399. package/esm/plugins/search/helpers/index.js +1 -1
  400. package/esm/plugins/search/search.d.ts +1 -1
  401. package/esm/plugins/search/search.js +6 -6
  402. package/esm/plugins/search/ui/search.d.ts +1 -1
  403. package/esm/plugins/search/ui/search.js +2 -5
  404. package/esm/plugins/select/select.js +3 -3
  405. package/esm/plugins/select-cells/select-cells.js +4 -4
  406. package/esm/plugins/size/config.js +1 -1
  407. package/esm/plugins/size/size.d.ts +1 -1
  408. package/esm/plugins/size/size.js +2 -7
  409. package/esm/plugins/source/config.js +1 -1
  410. package/esm/plugins/source/editor/engines/area.js +1 -1
  411. package/esm/plugins/source/editor/engines/index.d.ts +1 -1
  412. package/esm/plugins/source/editor/engines/index.js +1 -1
  413. package/esm/plugins/source/source.d.ts +1 -1
  414. package/esm/plugins/source/source.js +4 -9
  415. package/esm/plugins/speech-recognize/config.js +3 -3
  416. package/esm/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
  417. package/esm/plugins/speech-recognize/helpers/recognize-manager.js +2 -2
  418. package/esm/plugins/speech-recognize/speech-recognize.d.ts +1 -1
  419. package/esm/plugins/speech-recognize/speech-recognize.js +5 -10
  420. package/esm/plugins/spellcheck/config.js +1 -1
  421. package/esm/plugins/spellcheck/spellcheck.js +3 -3
  422. package/esm/plugins/stat/stat.js +1 -1
  423. package/esm/plugins/sticky/sticky.d.ts +1 -1
  424. package/esm/plugins/sticky/sticky.js +3 -8
  425. package/esm/plugins/symbols/config.js +1 -1
  426. package/esm/plugins/symbols/symbols.d.ts +1 -1
  427. package/esm/plugins/symbols/symbols.js +3 -8
  428. package/esm/plugins/tab/tab.js +3 -3
  429. package/esm/plugins/table/config.js +2 -2
  430. package/esm/plugins/table/table.d.ts +1 -1
  431. package/esm/plugins/table/table.js +0 -5
  432. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
  433. package/esm/plugins/video/config.js +3 -3
  434. package/esm/plugins/wrap-nodes/config.d.ts +1 -1
  435. package/esm/plugins/wrap-nodes/wrap-nodes.js +3 -3
  436. package/esm/plugins/xpath/xpath.d.ts +1 -6
  437. package/esm/plugins/xpath/xpath.js +4 -9
  438. package/esm/polyfills.d.ts +10 -0
  439. package/esm/types/view.d.ts +1 -1
  440. package/package.json +2 -2
  441. package/types/config.d.ts +6 -19
  442. package/types/core/component/component.d.ts +2 -2
  443. package/types/core/component/index.d.ts +1 -1
  444. package/types/core/constants.d.ts +1 -0
  445. package/types/core/create/create.d.ts +3 -2
  446. package/types/core/decorators/autobind/autobind.d.ts +6 -0
  447. package/types/core/decorators/cache/cache.d.ts +2 -2
  448. package/types/core/decorators/debounce/debounce.d.ts +1 -1
  449. package/types/core/decorators/index.d.ts +3 -3
  450. package/types/core/event-emitter/observable.d.ts +1 -1
  451. package/types/core/global.d.ts +1 -1
  452. package/types/core/helpers/array/as-array.d.ts +1 -1
  453. package/types/core/helpers/checker/index.d.ts +3 -3
  454. package/types/core/helpers/checker/is-url.d.ts +1 -1
  455. package/types/core/helpers/checker/is-view-object.d.ts +1 -1
  456. package/types/core/helpers/html/index.d.ts +2 -2
  457. package/types/core/helpers/html/strip-tags.d.ts +1 -1
  458. package/types/core/helpers/index.d.ts +1 -1
  459. package/types/core/helpers/normalize/index.d.ts +2 -2
  460. package/types/core/helpers/size/index.d.ts +1 -1
  461. package/types/core/helpers/utils/data-bind.d.ts +1 -1
  462. package/types/core/helpers/utils/index.d.ts +1 -1
  463. package/types/core/helpers/utils/selector.d.ts +7 -6
  464. package/types/core/helpers/utils/utils.d.ts +4 -4
  465. package/types/core/plugin/helpers/init-instance.d.ts +1 -1
  466. package/types/core/plugin/index.d.ts +1 -1
  467. package/types/core/request/ajax.d.ts +1 -1
  468. package/types/core/selection/index.d.ts +1 -1
  469. package/types/core/selection/style/api/get-suit-child.d.ts +1 -1
  470. package/types/core/selection/style/api/get-suit-parent.d.ts +1 -1
  471. package/types/core/selection/style/api/index.d.ts +5 -5
  472. package/types/core/selection/style/api/is-suit-element.d.ts +1 -1
  473. package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
  474. package/types/core/selection/style/api/list/wrap-list.d.ts +1 -1
  475. package/types/core/selection/style/api/toggle-attributes.d.ts +1 -1
  476. package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
  477. package/types/core/selection/style/api/wrap.d.ts +1 -1
  478. package/types/core/selection/style/apply-style.d.ts +1 -1
  479. package/types/core/selection/style/commit-style.d.ts +2 -2
  480. package/types/core/selection/style/transactions.d.ts +1 -1
  481. package/types/core/storage/index.d.ts +1 -1
  482. package/types/core/traits/dlgs.d.ts +1 -1
  483. package/types/core/traits/mods.d.ts +1 -1
  484. package/types/core/ui/button/button/button.d.ts +4 -4
  485. package/types/core/ui/button/group/group.d.ts +1 -1
  486. package/types/core/ui/button/tooltip/tooltip.d.ts +1 -1
  487. package/types/core/ui/element.d.ts +1 -1
  488. package/types/core/ui/form/block/block.d.ts +1 -1
  489. package/types/core/ui/form/form.d.ts +1 -1
  490. package/types/core/ui/form/index.d.ts +1 -1
  491. package/types/core/ui/form/inputs/area/area.d.ts +2 -2
  492. package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
  493. package/types/core/ui/form/inputs/file/file.d.ts +1 -1
  494. package/types/core/ui/form/inputs/index.d.ts +2 -2
  495. package/types/core/ui/form/inputs/input/input.d.ts +1 -1
  496. package/types/core/ui/form/inputs/select/select.d.ts +1 -1
  497. package/types/core/ui/group/group.d.ts +2 -3
  498. package/types/core/ui/group/list.d.ts +2 -2
  499. package/types/core/ui/group/separator.d.ts +0 -3
  500. package/types/core/ui/group/spacer.d.ts +0 -3
  501. package/types/core/ui/index.d.ts +3 -3
  502. package/types/core/ui/popup/popup.d.ts +1 -1
  503. package/types/core/ui/progress-bar/progress-bar.d.ts +1 -1
  504. package/types/core/view/view-with-toolbar.d.ts +5 -5
  505. package/types/core/view/view.d.ts +6 -6
  506. package/types/index.d.ts +2 -7
  507. package/types/jodit.d.ts +7 -7
  508. package/types/modules/context-menu/context-menu.d.ts +3 -3
  509. package/types/modules/dialog/dialog.d.ts +2 -2
  510. package/types/modules/dialog/index.d.ts +2 -2
  511. package/types/modules/file-browser/builders/context-menu.d.ts +1 -1
  512. package/types/modules/file-browser/config.d.ts +3 -0
  513. package/types/modules/file-browser/data-provider.d.ts +1 -1
  514. package/types/modules/file-browser/file-browser.d.ts +3 -3
  515. package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -1
  516. package/types/modules/file-browser/ui/files/files.d.ts +1 -1
  517. package/types/modules/file-browser/ui/tree/tree.d.ts +1 -1
  518. package/types/modules/history/history.d.ts +1 -1
  519. package/types/modules/image-editor/image-editor.d.ts +2 -2
  520. package/types/modules/index.d.ts +13 -12
  521. package/types/modules/messages/messages.d.ts +1 -1
  522. package/types/modules/status-bar/status-bar.d.ts +3 -3
  523. package/types/modules/toolbar/button/button.d.ts +2 -2
  524. package/types/modules/toolbar/button/content.d.ts +1 -1
  525. package/types/modules/toolbar/button/select/select.d.ts +1 -1
  526. package/types/modules/toolbar/collection/collection.d.ts +4 -4
  527. package/types/modules/toolbar/collection/editor-collection.d.ts +1 -1
  528. package/types/modules/uploader/helpers/index.d.ts +2 -2
  529. package/types/modules/uploader/uploader.d.ts +1 -1
  530. package/types/modules/widget/color-picker/color-picker.d.ts +3 -3
  531. package/types/modules/widget/index.d.ts +1 -1
  532. package/types/modules/widget/tabs/tabs.d.ts +1 -1
  533. package/types/plugins/about/about.d.ts +0 -5
  534. package/types/plugins/add-new-line/add-new-line.d.ts +1 -1
  535. package/types/plugins/ai-assistant/ai-assistant.d.ts +27 -0
  536. package/types/plugins/ai-assistant/config.d.ts +72 -0
  537. package/types/plugins/ai-assistant/langs/en.d.ts +9 -0
  538. package/types/plugins/ai-assistant/langs/es.d.ts +40 -0
  539. package/types/plugins/ai-assistant/langs/index.d.ts +8 -0
  540. package/types/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
  541. package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
  542. package/types/plugins/backspace/cases/index.d.ts +1 -1
  543. package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
  544. package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
  545. package/types/plugins/enter/helpers/index.d.ts +2 -2
  546. package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
  547. package/types/plugins/fullsize/config.d.ts +0 -3
  548. package/types/plugins/fullsize/fullsize.d.ts +1 -1
  549. package/types/plugins/image-properties/image-properties.d.ts +1 -1
  550. package/types/plugins/index.d.ts +1 -0
  551. package/types/plugins/inline-popup/inline-popup.d.ts +1 -1
  552. package/types/plugins/link/config.d.ts +1 -1
  553. package/types/plugins/mobile/config.d.ts +3 -0
  554. package/types/plugins/paste-from-word/paste-from-word.d.ts +1 -1
  555. package/types/plugins/paste-storage/paste-storage.d.ts +1 -6
  556. package/types/plugins/placeholder/placeholder.d.ts +1 -1
  557. package/types/plugins/preview/preview.d.ts +1 -1
  558. package/types/plugins/resize-cells/resize-cells.d.ts +1 -1
  559. package/types/plugins/resizer/resizer.d.ts +1 -1
  560. package/types/plugins/search/helpers/index.d.ts +1 -1
  561. package/types/plugins/search/search.d.ts +1 -1
  562. package/types/plugins/search/ui/search.d.ts +1 -1
  563. package/types/plugins/size/size.d.ts +1 -1
  564. package/types/plugins/source/editor/engines/index.d.ts +1 -1
  565. package/types/plugins/source/source.d.ts +1 -1
  566. package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
  567. package/types/plugins/speech-recognize/speech-recognize.d.ts +1 -1
  568. package/types/plugins/sticky/sticky.d.ts +1 -1
  569. package/types/plugins/symbols/symbols.d.ts +1 -1
  570. package/types/plugins/table/table.d.ts +1 -1
  571. package/types/plugins/wrap-nodes/config.d.ts +1 -1
  572. package/types/plugins/xpath/xpath.d.ts +1 -6
  573. package/types/polyfills.d.ts +10 -0
  574. package/types/types/view.d.ts +1 -1
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
2
+ * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.0.18
4
+ * Version: v4.1.3
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
 
9
9
 
10
- ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("{}"));else if("function"==typeof define&&define.amd)define(["{}"],e);else{var s="object"==typeof exports?e(require("{}")):e(t["{}"]);for(var i in s)("object"==typeof exports?exports:t)[i]=s[i]}})(self,(function(t){return function(){var e={75887(t,e,s){"use strict";function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,i(t)}function r(t,e,s){var r=s.value;if("function"!=typeof r)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(i(r)));var o=!1;return{configurable:!0,get(){if(o||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof r)return r;var s=r.bind(this);return o=!0,Object.defineProperty(this,e,{configurable:!0,get(){return s},set(t){r=t,delete this[e]}}),o=!1,s},set(t){r=t}}}function o(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var s=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof s.value&&Object.defineProperty(t.prototype,e,r(t,e,s))}})),t}function n(){return 1===arguments.length?o.apply(void 0,arguments):r.apply(void 0,arguments)}s.d(e,{ZP(){return n}})},37446(t,e,s){"use strict";s.d(e,{D(){return r}});var i=s(62924);class r{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="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,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=i.INSERT_AS_HTML,this.enter=i.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:i.PARAGRAPH,this.defaultMode=i.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.showBrowserColorPicker=!0}static get defaultOptions(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions}}r.prototype.controls={}},84951(t,e,s){"use strict";s.d(e,{e(){return u}});var i=s(78037),r=s(69099),o=s(45564),n=s(59862),a=s(2926),l=s(32952),c=(s(52378),s(41240)),h=s(62924);class u{constructor(){this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=window.requestIdleCallback?.bind(window)??((t,e)=>{const s=Date.now();return this.setTimeout((()=>{t({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-s))}})}),e?.timeout??1)}),this.__cancelIdleCallbackNative=window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)}),this.isDestructed=!1}delay(t){return this.promise((e=>this.setTimeout(e,t)))}setTimeout(t,e,...s){if(this.isDestructed)return 0;let r={};(0,c.n)(e)&&(e=0),(0,l.h)(e)||(r=e,e=r.timeout||0),r.label&&this.clearLabel(r.label);const o=(0,i.i)(t,e,...s),n=r.label||o;return this.timers.set(n,o),this.__callbacks.set(n,t),o}updateTimeout(t,e){if(!t||!this.timers.has(t))return null;const s=this.__callbacks.get(t);return this.setTimeout(s,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,i.g)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,a.H)(t))return this.clearLabel(t);(0,i.g)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,s=!1){let a=0,l=!1;const c=[],h=(...e)=>{if(!l){a=0;const s=t(...e);if(l=!0,c.length){const t=()=>{c.forEach((t=>t())),c.length=0};(0,n.t)(s)?s.finally(t):t()}}},u=(...o)=>{l=!1,e?(!a&&s&&h(...o),(0,i.g)(a),a=this.setTimeout((()=>h(...o)),(0,r.m)(e)?e():e),this.timers.set(t,a)):h(...o)};return(0,o.P)(e)&&e.promisify?(...t)=>{const e=this.promise((t=>{c.push(t)}));return u(...t),e}:u}microDebounce(t,e=!1){let s,i=!1,r=!0;return(...o)=>{s=o,i?r=!0:(r=!0,e&&(r=!1,t(...s)),i=!0,this.__queueMicrotaskNative((()=>{i=!1,this.isDestructed||r&&t(...s)})))}}throttle(t,e,s=!1){let i,o,n,a=null;return(...s)=>{i=!0,n=s,e?a||(o=()=>{i?(t(...n),i=!1,a=this.setTimeout(o,(0,r.m)(e)?e():e),this.timers.set(o,a)):a=null},o()):t(...n)}}promise(t){let e=()=>{};const s=new Promise(((s,i)=>(this.promisesRejections.add(i),e=()=>i(Error("Reject promise")),t(s,i))));return s.finally||"undefined"==typeof process||h.IS_ES_NEXT||(s.finally=t=>(s.then(t).catch(t),s)),s.finally((()=>{this.promisesRejections.delete(e)})).catch((()=>null)),s.rejectCallback=e,s}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise((e=>{t.then((t=>(e("fulfilled"),t)),(t=>{throw e("rejected"),t})),this.setTimeout((()=>{e("pending")}),100)}));const e={};return Promise.race([t,e]).then((t=>t===e?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(t,e){const s=this.requestIdleCallbackNative(t,e);return this.requestsIdle.add(s),s}requestIdlePromise(t){return this.promise((e=>{const s=this.requestIdleCallback((()=>e(s)),t)}))}cancelIdleCallback(t){return this.requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){const e=requestAnimationFrame(t);return this.requestsRaf.add(e),e}cancelAnimationFrame(t){this.requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.requestsIdle.forEach((t=>this.cancelIdleCallback(t))),this.requestsRaf.forEach((t=>this.cancelAnimationFrame(t))),this.timers.forEach((t=>(0,i.g)(this.timers.get(t)))),this.timers.clear(),this.promisesRejections.forEach((t=>t())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},76731(t,e,s){"use strict";s.d(e,{e(){return i.e}});var i=s(84951)},91003(t,e,s){"use strict";s.d(e,{w(){return l}});var i=s(76974),r=s(79102),o=s(74028),n=s(76731);const a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,i.kebabCase)(((0,i.isFunction)(this.className)?this.className():"")||(0,i.getClassName)(this))),this.__componentName}getFullElName(t,e,s){const r=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),r.push("__"+t)),e&&(r.push("_",e),r.push("_",(0,i.isVoid)(s)?"true":""+s)),r.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,i.get)(t,e||this)}get isReady(){return this.componentStatus===o.n.ready}get isDestructed(){return this.componentStatus===o.n.destructed}get isInDestruct(){return o.n.beforeDestruct===this.componentStatus||o.n.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(o.n.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}constructor(){this.async=new n.e,this.ownerWindow=window,this.__componentStatus=o.n.beforeInit,this.uid="jodit-uid-"+(0,r.fe)()}destruct(){this.setStatus(o.n.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);const s=Object.getPrototypeOf(this);s&&(0,i.isFunction)(s.setStatusComponent)&&s.setStatusComponent(t,e);const r=a.get(this),o=r?.[t];o&&o.length&&o.forEach((t=>t(e)))}hookStatus(t,e){let s=a.get(this);s||(s={},a.set(this,s)),s[t]||(s[t]=[]),s[t].push(e)}static isInstanceOf(t,e){return t instanceof e}}l.STATUSES=o.n},2581(t,e,s){"use strict";s.d(e,{Hr(){return o.H},n$(){return i.n},wA(){return r.w}});var i=s(74028),r=s(91003),o=s(47604)},74028(t,e,s){"use strict";s.d(e,{n(){return i}});const i={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},47604(t,e,s){"use strict";s.d(e,{H(){return r}});var i=s(91003);class r extends i.w{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}constructor(t){super(),this.setParentView(t)}destruct(){return this.j.components.delete(this),super.destruct()}}},62924(t,e,s){"use strict";s.r(e),s.d(e,{ACCURACY(){return B},APP_VERSION(){return i},BASE_PATH(){return nt},BR(){return F},CLIPBOARD_ID(){return ct},COMMAND_KEYS(){return H},EMULATE_DBLCLICK_TIMEOUT(){return Z},ES(){return r},FAT_MODE(){return c},HOMEPAGE(){return h},INSEPARABLE_TAGS(){return E},INSERT_AS_HTML(){return Q},INSERT_AS_TEXT(){return et},INSERT_CLEAR_HTML(){return tt},INSERT_ONLY_TEXT(){return st},INVISIBLE_SPACE(){return d},INVISIBLE_SPACE_REG_EXP(){return f},INVISIBLE_SPACE_REG_EXP_END(){return m},INVISIBLE_SPACE_REG_EXP_START(){return g},IS_BLOCK(){return y},IS_ES_MODERN(){return o},IS_ES_NEXT(){return n},IS_IE(){return Y},IS_INLINE(){return w},IS_MAC(){return rt},IS_PROD(){return a},IS_TEST(){return l},KEY_ALIASES(){return ot},KEY_ALT(){return M},KEY_BACKSPACE(){return I},KEY_DELETE(){return q},KEY_DOWN(){return P},KEY_ENTER(){return k},KEY_ESC(){return L},KEY_F3(){return A},KEY_LEFT(){return z},KEY_META(){return j},KEY_RIGHT(){return N},KEY_SPACE(){return R},KEY_TAB(){return T},KEY_UP(){return D},LIST_TAGS(){return C},MARKER_CLASS(){return K},MODE_SOURCE(){return $},MODE_SPLIT(){return U},MODE_WYSIWYG(){return V},NBSP_SPACE(){return p},NEARBY(){return O},NO_EMPTY_TAGS(){return x},PARAGRAPH(){return W},PASSIVE_EVENTS(){return ut},SAFE_COUNT_CHANGE_CALL(){return it},SET_TEST(){return u},SOURCE_CONSUMER(){return ht},SPACE_REG_EXP(){return v},SPACE_REG_EXP_END(){return _},SPACE_REG_EXP_START(){return b},TEMP_ATTR(){return at},TEXT_HTML(){return X},TEXT_PLAIN(){return G},TEXT_RTF(){return J},lang(){return lt}});const i="4.0.18",r="es2021",o=!0,n=!0,a=!0;let l=!1;const c=!0,h="https://xdsoft.net/jodit/",u=()=>l=!0,d="\ufeff",p=" ",f=()=>/[\uFEFF]/g,m=()=>/[\uFEFF]+$/g,g=()=>/^[\uFEFF]+/g,v=()=>/[\s\n\t\r\uFEFF\u200b]+/g,b=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,y=/^(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,w=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,C=new Set(["ul","ol"]),S=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],E=new Set([...S,"br","hr"]),x=new Set(S),j="Meta",I="Backspace",T="Tab",k="Enter",L="Escape",M="Alt",z="ArrowLeft",D="ArrowUp",N="ArrowRight",P="ArrowDown",R="Space",q="Delete",A="F3",O=5,B=10,H=[j,I,q,D,P,N,z,k,L,A,T],F="br",W="p",V=1,$=2,U=3,Y="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),G=Y?"text":"text/plain",X=Y?"html":"text/html",J=Y?"rtf":"text/rtf",K="jodit-selection_marker",Z=300,Q="insert_as_html",tt="insert_clear_html",et="insert_as_text",st="insert_only_text",it=10,rt="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),ot={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:rt?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},nt=(()=>{if("undefined"==typeof document)return"";const t=document.currentScript,e=t=>{const e=t.split("/");return/\.js/.test(e[e.length-1])?e.slice(0,e.length-1).join("/")+"/":t};if(t)return e(t.src);const s=document.querySelectorAll("script[src]");return s&&s.length?e(s[s.length-1].src):window.location.href})(),at="data-jodit-temp",lt={},ct="clipboard",ht="source-consumer",ut=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},29536(t,e,s){"use strict";s.d(e,{Q(){return n}});var i=s(76974),r=(s(52378),s(9162)),o=s(62924);class n{get doc(){return(0,i.isFunction)(this.document)?this.document():this.document}constructor(t,e){this.document=t,this.createAttributes=e}element(t,e,s){const r=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(r),e&&((0,i.isPlainObject)(e)?(0,i.attr)(r,e):s=e),s&&(0,i.asArray)(s).forEach((t=>r.appendChild((0,i.isString)(t)?this.fromHTML(t):t))),r}div(t,e,s){const i=this.element("div",e,s);return t&&(i.className=t),i}sandbox(){const t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);const e=t.contentWindow?.document;if(!e)throw Error("Iframe error");return e.open(),e.write("<!DOCTYPE html><html><head></head><body></body></html>"),e.close(),[e.body,t]}span(t,e,s){const i=this.element("span",e,s);return t&&(i.className=t),i}a(t,e,s){const i=this.element("a",e,s);return t&&(i.className=t),i}text(t){return this.doc.createTextNode(t)}fake(){return this.text(o.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){const s=this.div();s.innerHTML=""+t;const o=s.firstChild===s.lastChild&&s.firstChild?s.firstChild:s;if(r.i.safeRemove(o),e){const t=(0,i.refs)(o);Object.keys(e).forEach((s=>{const i=t[s];i&&!1===e[s]&&r.i.hide(i)}))}return o}applyCreateAttributes(t){if(this.createAttributes){const e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){const s=e[t.tagName.toLowerCase()];(0,i.isFunction)(s)?s(t):(0,i.isPlainObject)(s)&&(0,i.attr)(t,s)}}}}},2652(t,e,s){"use strict";s.d(e,{Q(){return i.Q}});var i=s(29536)},63301(t,e,s){"use strict";s.d(e,{F(){return a},R(){return l}});var i=s(78157),r=s(60701),o=s(9162),n=s(74028);function a(t,e,s){const i=s.get;if(!i)throw(0,r.vU)("Getter property descriptor expected");s.get=function(){const t=i.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:s.configurable,enumerable:s.enumerable,writable:!1,value:t}),t}}function l(t,e,s){const a=s.value;if(!(0,i.mf)(a))throw(0,r.vU)("Handler must be a Function");let l=!0;const c=new WeakMap;s.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor)?.cloneNode(!0);const e=a.apply(this,t);return l&&o.i.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(n.n.ready,(t=>{const e=(0,i.f2)(t)?t:t.jodit;l=!!e.options.cache}))}},75042(t,e,s){"use strict";function i(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}s.d(e,{w(){return i}})},62294(t,e,s){"use strict";s.d(e,{D(){return n},P(){return a}});var i=s(78157),r=s(2581),o=s(60701);function n(t,e=!1,s="debounce"){return(n,a)=>{const l=n[a];if(!(0,i.mf)(l))throw(0,o.vU)("Handler must be a Function");return n.hookStatus(r.n$.ready,(r=>{const{async:o}=r,n=(0,i.mf)(t)?t(r):t,l=(0,i.hj)(n)||(0,i.PO)(n)?n:r.defaultTimeout;Object.defineProperty(r,a,{configurable:!0,value:o[s](r[a].bind(r),l,e)})})),{configurable:!0,get(){return l.bind(this)}}}}function a(t,e=!1){return n(t,e,"throttle")}s(52378)},17174(t,e,s){"use strict";s.d(e,{s(){return r}});var i=s(69099);function r(...t){return e=>{const s=e.prototype;for(let e=0;t.length>e;e++){const r=t[e],o=Object.getOwnPropertyNames(r.prototype);for(let t=0;o.length>t;t++){const e=o[t],n=Object.getOwnPropertyDescriptor(r.prototype,e);null!=n&&(0,i.m)(n.value)&&!(0,i.m)(s[e])&&Object.defineProperty(s,e,{enumerable:!0,configurable:!0,writable:!0,value(...t){return n.value.call(this,...t)}})}}}}},41592(t,e,s){"use strict";s.d(e,{z(){return o}});var i=s(69099),r=s(60701);function o(t){return(e,s)=>{if(!(0,i.m)(e[s]))throw(0,r.vU)("Handler must be a Function");e.hookStatus(t,(t=>{t[s].call(t)}))}}},3944(t,e,s){"use strict";s.d(e,{N(){return n}});var i=s(2581),r=s(69099),o=s(60701);function n(){return(t,e)=>{if(!(0,r.m)(t[e]))throw(0,o.vU)("Handler must be a Function");t.hookStatus(i.n$.ready,(t=>{const{async:s}=t,i=t[e];t[e]=(...e)=>s.requestIdleCallback(i.bind(t,...e))}))}}},13666(t,e,s){"use strict";s.r(e),s.d(e,{autobind(){return p.ZP},cache(){return i.F},cacheHTML(){return i.R},component(){return r.w},debounce(){return o.D},derive(){return d.s},getPropertyDescriptor(){return u.w7},hook(){return a.z},idle(){return n.N},nonenumerable(){return l.h},persistent(){return c.a},throttle(){return o.P},wait(){return h.D},watch(){return u.YP}});var i=s(63301),r=s(75042),o=s(62294),n=s(3944),a=s(41592),l=s(22718),c=s(14217),h=s(89087),u=s(69082),d=s(17174),p=s(75887)},22718(t,e,s){"use strict";s.d(e,{h(){return i}});const i=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})}},14217(t,e,s){"use strict";s.d(e,{a(){return o}});var i=s(74028),r=s(31470);function o(t,e){t.hookStatus(i.n.ready,(t=>{const s=(0,r.f)(t)?t:t.jodit,i=`${s.options.namespace}${t.componentName}_prop_${e}`,o=t[e];Object.defineProperty(t,e,{get:()=>s.storage.get(i)??o,set(t){s.storage.set(i,t)}})}))}},89087(t,e,s){"use strict";s.d(e,{D(){return n}});var i=s(69099),r=s(60701),o=s(74028);function n(t){return(e,s)=>{if(!(0,i.m)(e[s]))throw(0,r.vU)("Handler must be a Function");e.hookStatus(o.n.ready,(e=>{const{async:i}=e,r=e[s];let o=0;Object.defineProperty(e,s,{configurable:!0,value:function s(...n){i.clearTimeout(o),t(e)?r.apply(e,n):o=i.setTimeout((()=>s(...n)),10)}})}))}}},69082(t,e,s){"use strict";s.d(e,{YP(){return u},w7(){return h}});var i=s(69099),r=s(45564),o=s(31470),n=s(16313),a=s(74028),l=s(83893),c=s(60701);function h(t,e){let s;do{s=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t)}while(!s&&t);return s}function u(t,e){return(s,u)=>{if(!(0,i.m)(s[u]))throw(0,c.vU)("Handler must be a Function");const d=e?.immediately??!0,p=e?.context,f=e=>{const a=(0,o.f)(e)?e:e.jodit;let c=(t,...s)=>{if(!e.isInDestruct)return e[u](t,...s)};d||(c=e.async.microDebounce(c,!0)),(0,l.C)(t).forEach((t=>{if(/:/.test(t)){const[s,r]=t.split(":");let o=p;return s.length&&(o=e.get(s)),(0,i.m)(o)&&(o=o(e)),a.events.on(o||e,r,c),o||a.events.on(r,c),void e.hookStatus("beforeDestruct",(()=>{a.events.off(o||e,r,c).off(r,c)}))}const o=t.split("."),[l]=o,u=o.slice(1);let d=e[l];(0,r.P)(d)&&(0,n.L)(d).on("change."+u.join("."),c);const f=h(s,l);Object.defineProperty(e,l,{configurable:!0,set(t){const s=d;s!==t&&(d=t,f&&f.set&&f.set.call(e,t),(0,r.P)(d)&&(d=(0,n.L)(d),d.on("change."+u.join("."),c)),c(l,s,d))},get:()=>f&&f.get?f.get.call(e):d})}))};(0,i.m)(s.hookStatus)?s.hookStatus(a.n.ready,f):f(s)}}},9162(t,e,s){"use strict";s.d(e,{i(){return l}});var i=s(62924),r=s(78157),o=s(24174),n=s(76562),a=s(86284);class l{constructor(){throw Error("Dom is static module")}static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapInline(t,e,s){let i,o=t,n=t;s.s.save();let a=!1;do{a=!1,i=o.previousSibling,i&&!l.isBlock(i)&&(a=!0,o=i)}while(a);do{a=!1,i=n.nextSibling,i&&!l.isBlock(i)&&(a=!0,n=i)}while(a);const c=(0,r.HD)(e)?s.createInside.element(e):e;o.parentNode&&o.parentNode.insertBefore(c,o);let h=o;for(;h&&(h=o.nextSibling,c.appendChild(o),o!==n&&h);)o=h;return s.s.restore(),c}static wrap(t,e,s){const i=(0,r.HD)(e)?s.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)("Element should be in DOM");t.parentNode.insertBefore(i,t),i.appendChild(t)}else{const e=t.extractContents();t.insertNode(i),i.appendChild(e)}return i}static unwrap(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,s){let i=t;for(;i&&i!==e&&(t===i||!s(i));){let t=i.firstChild||i.nextSibling;if(!t){for(;i&&!i.nextSibling;)i=i.parentNode;t=i?.nextSibling}i=t}}static replace(t,e,s,i=!1,n=!1){(0,r.FP)(e)&&(e=s.fromHTML(e));const a=(0,r.HD)(e)?s.element(e):e;if(!n)for(;t.firstChild;)a.appendChild(t.firstChild);return i&&l.isElement(t)&&l.isElement(a)&&(0,o.q)(t.attributes).forEach((t=>{a.setAttribute(t.name,t.value)})),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return l.each(t,(t=>l.isEmptyTextNode(t)))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,(t=>l.isElement(t)&&"false"===t.getAttribute("contenteditable")),e)}static isEmpty(t,e=i.NO_EMPTY_TAGS){if(!t)return!0;let s;s=(0,r.mf)(e)?e:t=>e.has(t.nodeName.toLowerCase());const o=t=>null==t.nodeValue||0===(0,n.fy)(t.nodeValue).length;return l.isText(t)?o(t):!(l.isElement(t)&&s(t))&&l.each(t,(t=>{if(l.isText(t)&&!o(t)||l.isElement(t)&&s(t))return!1}))}static isNode(t){return!!(t&&(0,r.HD)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,r.mf)(t.appendChild))}static isCell(t){return l.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return l.isTag(t,i.LIST_TAGS)}static isLeaf(t){return l.isTag(t,"li")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,r.nj)(t)&&"object"==typeof t&&l.isNode(t)&&i.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){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.ELEMENT_NODE)}static isFragment(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(""+(0,a.css)(t,"display"))}static canSplitBlock(t){return!(0,r.nj)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let s=t?.lastChild;if(!s)return null;do{if(e(s))return s;let i=s.lastChild;if(i||(i=s.previousSibling),!i&&s.parentNode!==t){do{s=s.parentNode}while(s&&!s?.previousSibling&&s.parentNode!==t);i=s?.previousSibling}s=i}while(s);return null}static prev(t,e,s,i=!0){return l.find(t,e,s,!1,i)}static next(t,e,s,i=!0){return l.find(t,e,s,!0,i)}static prevWithClass(t,e){return l.prev(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static nextWithClass(t,e){return l.next(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static find(t,e,s,i=!0,r=!0){const o=this.nextGen(t,s,i,r);let n=o.next();for(;!n.done;){if(e(n.value))return n.value;n=o.next()}return null}static*nextGen(t,e,s=!0,i=!0){const r=[];let o=t;do{let e=s?o.nextSibling:o.previousSibling;for(;e;)r.unshift(e),e=s?e.nextSibling:e.previousSibling;yield*this.runInStack(t,r,s,i),o=o.parentNode}while(o&&o!==e);return null}static each(t,e,s=!0){const i=this.eachGen(t,s);let r=i.next();for(;!r.done;){if(!1===e(r.value))return!1;r=i.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,s,i=!0){for(;e.length;){const r=e.pop();if(i){let t=s?r.lastChild:r.firstChild;for(;t;)e.push(t),t=s?t.previousSibling:t.nextSibling}t!==r&&(yield r)}}static findWithCurrent(t,e,s,i="nextSibling",r="firstChild"){let o=t;do{if(e(o))return o||null;if(r&&o&&o[r]){const t=l.findWithCurrent(o[r],e,o,i,r);if(t)return t}for(;o&&!o[i]&&o!==s;)o=o.parentNode;o&&o[i]&&o!==s&&(o=o[i])}while(o&&o!==s);return null}static findSibling(t,e=!0,s=(t=>!l.isEmptyTextNode(t))){let i=l.sibling(t,e);for(;i&&!s(i);)i=l.sibling(i,e);return i&&s(i)?i:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,(t=>!l.isEmptyTextNode(t)&&!!(!l.isText(t)||t.nodeValue?.length&&(0,n.fy)(t.nodeValue))))}static findNotEmptyNeighbor(t,e,s){return(0,a.call)(e?l.prev:l.next,t,(t=>!(!t||(l.isText(t)||l.isComment(t))&&!(0,n.fy)(t?.nodeValue||"").length)),s)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,s,i=!1){let r=t;if(!r)return null;do{if(e(r))return r;if(r===s||!r.parentNode)break;r=r.parentNode}while(r&&r!==s);return r===s&&i&&e(r)?r:null}static closest(t,e,s){let i;const o=t=>t.toLowerCase();if((0,r.mf)(e))i=e;else if((0,r.kJ)(e)||(0,r.DM)(e)){const t=(0,r.DM)(e)?e:new Set(e.map(o));i=e=>!(!e||!t.has(o(e.nodeName)))}else i=t=>!(!t||o(e)!==o(t.nodeName));return l.up(t,i,s)}static furthest(t,e,s){let i=null,r=t?.parentElement;for(;r&&r!==s;)e(r)&&(i=r),r=r?.parentElement;return i}static appendChildFirst(t,e){const s=t.firstChild;s?s!==e&&t.insertBefore(e,s):t.appendChild(e)}static after(t,e){const{parentNode:s}=t;s&&(s.lastChild===t?s.appendChild(e):s.insertBefore(e,t.nextSibling))}static before(t,e){const{parentNode:s}=t;s&&s.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,r.kJ)(e)?e.forEach((e=>{this.append(t,e)})):t.appendChild(e)}static moveContent(t,e,s=!1,i=(()=>!0)){const r=(t.ownerDocument||document).createDocumentFragment();(0,o.q)(t.childNodes).filter((t=>!!i(t)||(l.safeRemove(t),!1))).forEach((t=>{r.appendChild(t)})),s&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}static isOrContains(t,e,s=!1){return t===e?!s:!!(e&&t&&this.up(e,(e=>e===t),t,!0))}static safeRemove(...t){t.forEach((t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();const s=l.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&l.isTag(t.startContainer,i.INSEPARABLE_TAGS)?l.after(t.startContainer,e):(t.insertNode(e),s&&t.setStartBefore(s)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach((t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t)))}static hide(t){t&&((0,a.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;const e=(0,a.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;const s=t.tagName.toLowerCase(),i=t.tagName.toUpperCase();if(e instanceof Set)return e.has(s)||e.has(i);if(Array.isArray(e))throw new TypeError("Dom.isTag does not support array");return s===e||i===e}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,i.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,r._V)(t)||"true"===(0,a.attr)(t,i.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,a.$$)(`[${i.TEMP_ATTR}]`,t)}}},46879(t,e,s){"use strict";s.d(e,{b(){return r.b},i(){return i.i}});var i=s(9162),r=s(31818)},31818(t,e,s){"use strict";s.d(e,{b(){return a}});var i=s(97582),r=s(3569),o=s(13666),n=s(9162);class a extends r.a{setWork(t){return this.isWorked&&this.break(),this.workNodes=n.i.eachGen(t,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}constructor(t,e={}){super(),this.async=t,this.options=e,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}startIdleRequest(){this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:this.options.timeout??10})}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(t){if(this.workNodes){this.isWorked=!0;let e=0;const s=this.options.timeoutChunkSize??50;for(;!this.isFinished&&(t.timeRemaining()>0||t.didTimeout&&s>=e);){const t=this.workNodes.next();if(e+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(t){return!(!t||void 0!==this.options.whatToShow&&t.nodeType!==this.options.whatToShow)&&(this.emit("visit",t)??!1)}}(0,i.gn)([o.autobind],a.prototype,"workPerform",null)},43010(t,e,s){"use strict";s.d(e,{v(){return h}});var i=s(2926),r=s(69099),o=s(63738),n=s(60701),a=s(83893),l=s(62924),c=s(50669);class h{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!(!t||!this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,a.C)(t).map((t=>t.trim())).forEach((t=>{const s=t.split(".");e.call(this,s[0],s[1]||c.r)}))}__getStore(t){if(!t)throw(0,n.vU)("Need subject");if(void 0===t[this.__key]){const e=new c.D;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}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,e){const s=this.__doc.createEvent("HTMLEvents");(0,i.H)(e)?s.initEvent(e,!0,!0):(s.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((t=>{Object.defineProperty(s,t,{value:e[t],enumerable:!0})})),Object.defineProperty(s,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(s)}get current(){return this.currents[this.currents.length-1]}on(t,e,s,a){let c,h,d,p;if((0,i.H)(t)||(0,i.G)(t)?(c=this,h=t,d=e,p=s):(c=t,h=e,d=s,p=a),!(0,i.H)(h)&&!(0,i.G)(h)||0===h.length)throw(0,n.vU)("Need events names");if(!(0,r.m)(d))throw(0,n.vU)("Need event handler");if((0,o.k)(c))return c.forEach((t=>{this.on(t,h,d,p)})),this;const f=c,m=this.__getStore(f),g=this;let v=function(t,...e){if(!g.isMuted(t))return d&&d.call(this,...e)};return u(f)&&(v=function(t){if(!g.isMuted(t.type))return g.__prepareEvent(t),d&&!1===d.call(this,t)?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(h,((t,e)=>{if(0===t.length)throw(0,n.vU)("Need event name");if(!1===m.indexOf(t,e,d)&&(m.set(t,e,{event:t,originalCallback:d,syntheticCallback:v},p?.top),u(f))){const e=l.PASSIVE_EVENTS.has(t)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;v.options=e,f.addEventListener(t,v,e),this.__memoryDOMSubjectToHandler(f,v)}})),this}__memoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap.get(t)||new Set;s.add(e),this.__domEventsMap.set(t,s)}__unmemoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap,i=s.get(t)||new Set;i.delete(e),i.size?s.set(t,i):s.delete(t)}one(t,e,s,r){let o,n,a,l;(0,i.H)(t)||(0,i.G)(t)?(o=this,n=t,a=e,l=s):(o=t,n=e,a=s,l=r);const c=(...t)=>(this.off(o,n,c),a(...t));return this.on(o,n,c,l),this}off(t,e,s){let n,a,l;if((0,i.H)(t)||(0,i.G)(t)?(n=this,a=t,l=e):(n=t,a=e,l=s),(0,o.k)(n))return n.forEach((t=>{this.off(t,a,l)})),this;const h=n,d=this.__getStore(h);if(!(0,i.H)(a)&&!(0,i.G)(a)||0===a.length)return d.namespaces().forEach((t=>{this.off(h,"."+t)})),this.__removeStoreFromSubject(h),this;const p=t=>{u(h)&&(h.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(h,t.syntheticCallback))},f=(t,e)=>{if(""===t)return void d.events(e).forEach((t=>{""!==t&&f(t,e)}));const s=d.get(t,e);if(s&&s.length)if((0,r.m)(l)){const i=d.indexOf(t,e,l);!1!==i&&(p(s[i]),s.splice(i,1),s.length||d.clearEvents(e,t))}else s.forEach(p),s.length=0,d.clearEvents(e,t)};return this.__eachEvent(a,((t,e)=>{e===c.r?d.namespaces().forEach((e=>{f(t,e)})):f(t,e)})),d.isEmpty()&&this.__removeStoreFromSubject(h),this}stopPropagation(t,e){const s=(0,i.H)(t)?this:t,r=(0,i.H)(t)?t:e;if("string"!=typeof r)throw(0,n.vU)("Need event names");const o=this.__getStore(s);this.__eachEvent(r,((t,e)=>{const i=o.get(t,e);i&&this.__stopped.push(i),e===c.r&&o.namespaces(!0).forEach((e=>this.stopPropagation(s,t+"."+e)))}))}__removeStop(t){if(t){const e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...s){let r,o;const a=(0,i.H)(t)?this:t,l=(0,i.H)(t)?t:e,h=(0,i.H)(t)?[e,...s]:s;if(!u(a)&&!(0,i.H)(l))throw(0,n.vU)("Need events names");const d=this.__getStore(a);return!(0,i.H)(l)&&u(a)?this.__triggerNativeEvent(a,e):this.__eachEvent(l,((t,e)=>{if(u(a))this.__triggerNativeEvent(a,t);else{const s=d.get(t,e);if(s)try{[...s].every((e=>!this.__isStopped(s)&&(this.currents.push(t),o=e.syntheticCallback.call(a,t,...h),this.currents.pop(),void 0!==o&&(r=o),!0)))}finally{this.__removeStop(s)}e!==c.r||u(a)||d.namespaces().filter((t=>t!==e)).forEach((e=>{const s=this.fire.call(this,a,t+"."+e,...h);void 0!==s&&(r=s)}))}})),r}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=document,this.__prepareEvent=t=>{t.cancelBubble||(t.composed&&(0,r.m)(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((e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],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()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(((t,e)=>{this.off(e)})),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function u(t){return(0,r.m)(t.addEventListener)}},3569(t,e,s){"use strict";s.d(e,{a(){return i}});class i{constructor(){this.__map=new Map}on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let s;return this.__map.has(t)&&this.__map.get(t)?.forEach((t=>{s=t(...e)})),s}}},47981(t,e,s){"use strict";s.d(e,{DG(){return n.D},LO(){return o.L},aN(){return r.a},rO(){return n.r},vp(){return i.v}});var i=s(43010),r=s(3569),o=s(16313),n=s(50669)},16313(t,e,s){"use strict";s.d(e,{L(){return c}});var i=s(63738),r=s(97195),o=s(45564),n=s(69082);const a=Symbol("observable-object");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;const e={},s={},c=(e,r)=>(0,i.k)(e)?(e.map((t=>c(t,r))),t):(s[e]||(s[e]=[]),s[e].push(r),t),h=(r,...o)=>{if((0,i.k)(r))r.map((t=>h(t,...o)));else try{!e[r]&&s[r]&&(e[r]=!0,s[r].forEach((e=>e.call(t,...o))))}finally{e[r]=!1}},u=(e,s=[])=>{const i={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach((a=>{const l=a,c=s.concat(l).filter((t=>t.length));i[l]=e[l];const d=(0,n.w7)(e,l);Object.defineProperty(e,l,{set(e){const s=i[l];if(!(0,r.L)(i[l],e)){h(["beforeChange","beforeChange."+c.join(".")],l,e),(0,o.P)(e)&&u(e,c),d&&d.set?d.set.call(t,e):i[l]=e;const r=[];h(["change",...c.reduce(((t,e)=>(r.push(e),t.push("change."+r.join(".")),t)),[])],c.join("."),s,e?.valueOf?e.valueOf():e)}},get(){return d&&d.get?d.get.call(t):i[l]},enumerable:!0,configurable:!0}),(0,o.P)(i[l])&&u(i[l],c)})),Object.defineProperty(t,"on",{value:c}))};return u(t),t}},50669(t,e,s){"use strict";s.d(e,{D(){return o},r(){return r}}),s(52378);var i=s(24174);const r="JoditEventDefaultNamespace";class o{constructor(){this.__store=new Map}get(t,e){if(this.__store.has(e))return this.__store.get(e)[t]}indexOf(t,e,s){const i=this.get(t,e);if(i)for(let t=0;i.length>t;t+=1)if(i[t].originalCallback===s)return t;return!1}namespaces(t=!1){const e=(0,i.q)(this.__store.keys());return t?e.filter((t=>t!==r)):e}events(t){const e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,s,i=!1){let r=this.__store.get(e);r||(r={},this.__store.set(e,r)),void 0===r[t]&&(r[t]=[]),i?r[t].unshift(s):r[t].push(s)}clear(){this.__store.clear()}clearEvents(t,e){const s=this.__store.get(t);s&&s[e]&&(delete s[e],Object.keys(s).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}}},79102(t,e,s){"use strict";s.d(e,{TB(){return w},ZO(){return y},as(){return d},fe(){return m},pw(){return g},qz(){return v},xl(){return b}});var i=s(41978),r=s(46879),o=s(47981),n=s(8133),a=s(31470),l=s(4306),c=s(13929),h=s(62924),u=s(2926);const d={};let p=1;const f=new Set;function m(){function t(){return p+=10*(Math.random()+1),Math.round(p).toString(16)}let e=t();for(;f.has(e);)e=t();return f.add(e),e}const g=new i.h,v={},b=t=>{Object.keys(t).forEach((e=>{h.lang[e]?Object.assign(h.lang[e],t[e]):h.lang[e]=t[e]}))},_=new WeakMap;function y(t,e,s="div",i=!1){const o=(0,u.H)(e)?e:e?(0,l.g)(e.prototype):"jodit-utils",h=_.get(t)||{},d=o+s,p=(0,a.f)(t)?t:t.j;if(!h[d]){let e=p.c,a=(0,n.Z)(t)&&t.o.shadowRoot?t.o.shadowRoot:t.od.body;if(i&&(0,n.Z)(t)&&t.od!==t.ed){e=t.createInside;const i="style"===s?t.ed.head:t.ed.body;a=(0,n.Z)(t)&&t.o.shadowRoot?t.o.shadowRoot:i}const l=e.element(s,{className:`jodit jodit-${(0,c.G)(o)}-container jodit-box`});l.classList.add("jodit_theme_"+(p.o.theme||"default")),a.appendChild(l),h[d]=l,t.hookStatus("beforeDestruct",(()=>{r.i.safeRemove(l),delete h[d],Object.keys(h).length&&_.delete(t)})),_.set(t,h)}return h[d].classList.remove("jodit_theme_default","jodit_theme_dark"),h[d].classList.add("jodit_theme_"+(p.o.theme||"default")),h[d]}const w=new o.vp},67119(t,e,s){"use strict";s.d(e,{_(){return r}});var i=s(63738);const r=t=>(0,i.k)(t)?t:[t]},8131(t,e,s){"use strict";s.d(e,{C1(){return r.C},_2(){return i._},qo(){return o.q}});var i=s(67119),r=s(83893),o=s(24174)},83893(t,e,s){"use strict";function i(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}s.d(e,{C(){return i}})},24174(t,e,s){"use strict";s.d(e,{q(){return o}});var i=s(25074),r=s(79240);const o=(...t)=>((0,r.Q)(Array.from)?Array.from:(0,i.m)("Array.from")??Array.from).apply(Array,t)},16684(t,e,s){"use strict";s.d(e,{g(){return i.g},i(){return i.i}});var i=s(78037)},78037(t,e,s){"use strict";function i(t,e,...s){return e?window.setTimeout(t,e,...s):(t.call(null,...s),0)}function r(t){window.clearTimeout(t)}s.d(e,{g(){return r},i(){return i}})},4623(t,e,s){"use strict";function i(){let t=!0;try{const e=document.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}s.d(e,{E(){return i}})},78157(t,e,s){"use strict";s.d(e,{A1(){return m.A},DM(){return o.D},EO(){return i.E},FJ(){return x.F},FP(){return c.F},GI(){return w.G},GN(){return d.G},Gu(){return u.Gu},HD(){return w.H},I4(){return h.I},LP(){return a.L},PO(){return _.P},PX(){return C.P},QC(){return g.Q},Xy(){return a.X},Z$(){return u.Z$},Zt(){return u.Zt},Zu(){return p.Z},_V(){return j._},f2(){return f.f},hj(){return v.h},jn(){return n.j},kE(){return b.k},kJ(){return r.k},mf(){return l.m},nj(){return E.n},r1(){return S.r},tI(){return y.t}});var i=s(4623),r=s(63738),o=s(31133),n=s(88751),a=s(97195),l=s(69099),c=s(18871),h=s(37309),u=s(90406),d=s(38652),p=s(8133),f=s(31470),m=s(36144),g=s(79240),v=s(32952),b=s(57947),_=s(45564),y=s(59862),w=s(2926),C=s(62268),S=s(77442),E=s(41240),x=s(90318),j=s(29894)},63738(t,e,s){"use strict";function i(t){return Array.isArray(t)}s.d(e,{k(){return i}})},88751(t,e,s){"use strict";function i(t){return"boolean"==typeof t}s.d(e,{j(){return i}})},97195(t,e,s){"use strict";s.d(e,{L(){return o},X(){return r}});var i=s(12582);function r(t,e){return t===e||(0,i.P)(t)===(0,i.P)(e)}function o(t,e){return t===e}},69099(t,e,s){"use strict";function i(t){return"function"==typeof t}s.d(e,{m(){return i}})},37309(t,e,s){"use strict";function i(t){return-1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}s.d(e,{I(){return i}})},18871(t,e,s){"use strict";s.d(e,{F(){return r}});var i=s(2926);const r=t=>(0,i.H)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},90406(t,e,s){"use strict";s.d(e,{Gu(){return n},Z$(){return a},Zt(){return l}});var i=s(69099),r=s(9162),o=s(41240);function n(t){return!(0,o.n)(t)&&(0,i.m)(t.init)}function a(t){return!(0,o.n)(t)&&(0,i.m)(t.destruct)}function l(t){return!(0,o.n)(t)&&r.i.isElement(t.container)}},38652(t,e,s){"use strict";s.d(e,{G(){return o}});var i=s(57947),r=s(2926);function o(t){return(0,r.H)(t)&&(0,i.k)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},8133(t,e,s){"use strict";s.d(e,{Z(){return r}});var i=s(69099);function r(t){return!!(t&&t instanceof Object&&(0,i.m)(t.constructor)&&("undefined"!=typeof Jodit&&t instanceof Jodit||t.isJodit))}},36144(t,e,s){"use strict";s.d(e,{A(){return r}});var i=s(2926);const r=t=>(0,i.H)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},29894(t,e,s){"use strict";s.d(e,{_(){return o}});var i=s(9162),r=s(62924);function o(t){return i.i.isNode(t)&&i.i.isTag(t,"span")&&t.hasAttribute("data-"+r.MARKER_CLASS)}},79240(t,e,s){"use strict";function i(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}s.d(e,{Q(){return i}})},32952(t,e,s){"use strict";function i(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}s.d(e,{h(){return i}})},57947(t,e,s){"use strict";s.d(e,{k(){return r}});var i=s(2926);function r(t){if((0,i.H)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},45564(t,e,s){"use strict";s.d(e,{P(){return r}});var i=s(90318);function r(t){return!(!t||"object"!=typeof t||t.nodeType||(0,i.F)(t)||t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},59862(t,e,s){"use strict";function i(t){return t&&"function"==typeof t.then}s.d(e,{t(){return i}})},31133(t,e,s){"use strict";s.d(e,{D(){return r}});var i=s(69099);function r(t){return!!t&&(0,i.m)(t.has)&&(0,i.m)(t.add)&&(0,i.m)(t.delete)}},2926(t,e,s){"use strict";s.d(e,{G(){return o},H(){return r}});var i=s(63738);function r(t){return"string"==typeof t}function o(t){return(0,i.k)(t)&&r(t[0])}},62268(t,e,s){"use strict";function i(t){if(t.includes(" "))return!1;if("undefined"!=typeof URL)try{const e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}const e=document.createElement("a");return e.href=t,!!e.hostname}s.d(e,{P(){return i}})},77442(t,e,s){"use strict";function i(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}s.d(e,{r(){return i}})},31470(t,e,s){"use strict";s.d(e,{f(){return r}});var i=s(69099);function r(t){return!!(t&&t instanceof Object&&(0,i.m)(t.constructor)&&t.isView)}},41240(t,e,s){"use strict";function i(t){return null==t}s.d(e,{n(){return i}})},90318(t,e,s){"use strict";function i(t){return null!=t&&t===t.window}s.d(e,{F(){return i}})},34781(t,e,s){"use strict";s.d(e,{h(){return i}});const i=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;const e=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!e)return"#000000";const s=parseInt(e[2],10),i=parseInt(e[3],10);let r=(parseInt(e[4],10)|i<<8|s<<16).toString(16).toUpperCase();for(;6>r.length;)r="0"+r;return e[1]+"#"+r}},68806(t,e,s){"use strict";s.d(e,{h(){return i.h}});var i=s(34781)},37639(t,e,s){"use strict";s.d(e,{Z(){return l}});var i=s(9162),r=s(93789),o=s(76562),n=s(62924);function a(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,e,s)=>{switch(s.toLowerCase()){case"pt":return(1.328*parseFloat(e)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(e)).toFixed(0)+"px"}return t}))}function l(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);const e=document.createElement("iframe");e.style.display="none",document.body.appendChild(e);let s="",l=[];try{const c=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(c){c.open(),c.write(t),c.close();try{for(let t=0;c.styleSheets.length>t;t+=1){const e=c.styleSheets[t].cssRules;for(let t=0;e.length>t;t+=1)""!==e[t].selectorText&&(l=(0,r.$$)(e[t].selectorText,c.body),l.forEach((s=>{s.style.cssText=a(e[t].style.cssText+";"+s.style.cssText)})))}}catch(t){if(!n.IS_PROD)throw t}i.i.each(c.body,(t=>{if(i.i.isElement(t)){const e=t,s=e.getAttribute("style");s&&(e.style.cssText=a(s)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}})),s=c.firstChild?(0,o.fy)(c.body.innerHTML):""}}catch{}finally{i.i.safeRemove(e)}return s&&(t=s),(0,o.fy)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},38334(t,e,s){"use strict";s.d(e,{p(){return n}});var i=s(9162),r=s(76562),o=s(24174);function n(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let e="";try{const s=document.createElement("div");s.innerHTML=t;const r=[];s.firstChild&&i.i.each(s,(t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":r.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":i.i.unwrap(t);break;default:(0,o.q)(t.attributes).forEach((e=>{-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)}))}break;case Node.TEXT_NODE:break;default:r.push(t)}})),i.i.safeRemove.apply(null,r),e=s.innerHTML}catch(t){}return e&&(t=e),(t=t.split(/(\n)/).filter(r.fy).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},52186(t,e,s){"use strict";function i(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}s.d(e,{$(){return i}})},83814(t,e,s){"use strict";s.d(e,{$_(){return o.$},Zs(){return i.Z},eV(){return a.e},hU(){return l.h},nA(){return a.n},oN(){return n.o},pQ(){return r.p}});var i=s(37639),r=s(38334),o=s(52186),n=s(44058),a=s(45838),l=s(94901)},94901(t,e,s){"use strict";function i(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}s.d(e,{h(){return i}})},45838(t,e,s){"use strict";s.d(e,{e(){return o},n(){return n}});var i=s(86284),r=s(9162);function o(t,e){(r.i.isElement(t)||r.i.isFragment(t))&&(e.removeOnError&&(n(t),(0,i.$$)("[onerror]",t).forEach((t=>n(t,e)))),e.safeJavaScriptLink&&(n(t),(0,i.$$)('a[href^="javascript"]',t).forEach((t=>n(t,e)))))}function n(t,{safeJavaScriptLink:e,removeOnError:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!r.i.isElement(t))return!1;let o=!1;s&&t.hasAttribute("onerror")&&((0,i.attr)(t,"onerror",null),o=!0);const n=t.getAttribute("href");return e&&n&&0===n.trim().indexOf("javascript")&&((0,i.attr)(t,"href",location.protocol+"//"+n),o=!0),o}},44058(t,e,s){"use strict";s.d(e,{o(){return h}});var i=s(2926),r=s(86284),o=s(76562),n=s(9162);const a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"]);function h(t,e=document,s=null){const u=e.createElement("div");return(0,i.H)(t)?u.innerHTML=t:u.appendChild(t),(0,r.$$)("*",u).forEach((t=>{const i=t.parentNode;if(!i)return;if(s&&n.i.isTag(t,s)){const i=t.nodeName.toLowerCase(),r=n.i.isTag(t,c)?`%%%jodit-single-${i}%%%`:`%%%jodit-${i}%%%${h(t.innerHTML,e,s)}%%%/jodit-${i}%%%`;return n.i.before(t,e.createTextNode(r)),void n.i.safeRemove(t)}if(n.i.isTag(t,l))return void n.i.safeRemove(t);if(!n.i.isTag(t,a))return;const r=t.nextSibling;n.i.isText(r)&&/^\s/.test(r.nodeValue||"")||r&&i.insertBefore(e.createTextNode(" "),r)})),(0,o.fy)(u.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,((t,e,s,i)=>`<${e?"/":""}${i}>`))}},76974(t,e,s){"use strict";s.r(e),s.d(e,{CamelCaseToKebabCase(){return p.gP},NUMBER_FIELDS_REG(){return u.DO},applyStyles(){return h.Zs},asArray(){return n._2},camelCase(){return p.eV},cleanFromWord(){return h.pQ},clearTimeout(){return a.g},colorToHex(){return c.h},fuzzySearchIndex(){return p.Qy},getContentWidth(){return d.FK},getScrollParent(){return d.rP},hasBrowserColorPicker(){return l.EO},hasContainer(){return l.Zt},htmlspecialchars(){return h.$_},i18n(){return p.ag},innerWidth(){return d.x9},isArray(){return l.kJ},isBoolean(){return l.jn},isDestructable(){return l.Z$},isEqual(){return l.Xy},isFastEqual(){return l.LP},isFunction(){return l.mf},isHTML(){return l.FP},isHtmlFromWord(){return l.I4},isInitable(){return l.Gu},isInt(){return l.GN},isJoditObject(){return l.Zu},isLicense(){return l.A1},isMarker(){return l._V},isNativeFunction(){return l.QC},isNumber(){return l.hj},isNumeric(){return l.kE},isPlainObject(){return l.PO},isPromise(){return l.tI},isSet(){return l.DM},isString(){return l.HD},isStringArray(){return l.GI},isURL(){return l.PX},isValidName(){return l.r1},isViewObject(){return l.f2},isVoid(){return l.nj},isWindow(){return l.FJ},kebabCase(){return p.GL},nl2br(){return h.hU},normalizeColor(){return u.ut},normalizeCssNumericValue(){return u.xI},normalizeCssValue(){return u.Zh},normalizeKeyAliases(){return u.T2},normalizeLicense(){return u.Pd},normalizePath(){return u.AH},normalizeRelativePath(){return u.Jf},normalizeSize(){return u.aC},normalizeUrl(){return u.D5},offset(){return d.cv},position(){return d.eL},safeHTML(){return h.eV},sanitizeHTMLElement(){return h.nA},setTimeout(){return a.i},size(){return d.dp},splitArray(){return n.C1},sprintf(){return p.gB},stringify(){return p.Pz},stripTags(){return h.oN},toArray(){return n.qo},trim(){return p.fy},trimChars(){return p.cE},trimInv(){return p.as},ucfirst(){return p.Ps}});var i=s(86284),r={};for(var o in i)"default"!==o&&(r[o]=(t=>i[t]).bind(0,o));s.d(e,r);var n=s(8131),a=s(16684),l=s(78157),c=s(68806),h=s(83814),u=s(12368),d=s(19475),p=s(13104)},12368(t,e,s){"use strict";s.d(e,{AH(){return o.A},D5(){return l.D},DO(){return c.DO},Jf(){return n.J},Pd(){return r.P},T2(){return i.T},Zh(){return c.Zh},aC(){return a.a},ut(){return h.u},xI(){return c.xI}});var i=s(64254),r=s(34104),o=s(3340),n=s(64967),a=s(55837),l=s(60743),c=s(21642),h=s(14618)},14618(t,e,s){"use strict";s.d(e,{u(){return o}});var i=s(34781),r=s(76562);const o=t=>{const e=["#"];let s=(0,i.h)(t);if(!s)return!1;if(s=(0,r.fy)(s.toUpperCase()),s=s.substring(1),3===s.length){for(let t=0;3>t;t+=1)e.push(s[t]),e.push(s[t]);return e.join("")}return s.length>6&&(s=s.slice(0,6)),"#"+s}},21642(t,e,s){"use strict";s.d(e,{DO(){return a},Zh(){return c},xI(){return l}});var i=s(57947),r=s(13929),o=s(34781),n=s(41240);const a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,n.n)(e)&&a.test(t)&&(0,i.k)(""+e)?parseInt(""+e,10)+"px":e}function c(t,e){if("font-weight"===(0,r.G)(t)){switch((""+e).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,i.k)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(""+e)&&(0,o.h)(""+e)||e}},64254(t,e,s){"use strict";s.d(e,{T(){return o}});var i=s(76562),r=s(62924);function o(t){const e={},s={meta:1,ctrl:2,control:2,alt:3,shift:4};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((t=>(0,i.fy)(t.toLowerCase()))).map((t=>r.KEY_ALIASES[t]||t)).sort(((t,e)=>s[t]&&!s[e]?-1:!s[t]&&s[e]?1:s[t]&&s[e]?s[t]-s[e]:t>e?1:-1)).filter((t=>!e[t]&&""!==t&&(e[t]=!0))).join("+")}},34104(t,e,s){"use strict";s.d(e,{P(){return i}});const i=(t,e=8)=>{const s=[];for(;t.length;)s.push(t.substr(0,e)),t=t.substr(e);return s[1]=s[1].replace(/./g,"*"),s[2]=s[2].replace(/./g,"*"),s.join("-")}},3340(t,e,s){"use strict";s.d(e,{A(){return r}});var i=s(76562);const r=(...t)=>t.filter((t=>(0,i.fy)(t).length)).map(((e,s)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),s&&(e=e.replace(/^\//,"")),s!==t.length-1&&(e=e.replace(/\/$/,"")),e))).join("/")},64967(t,e,s){"use strict";s.d(e,{J(){return i}});const i=t=>t.split("/").reduce(((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t}),[]).join("/")+(t.endsWith("/")?"/":"")},55837(t,e,s){"use strict";s.d(e,{a(){return i}});const i=(t,e)=>/^[0-9]+$/.test(""+t)?t+e:""+t},60743(t,e,s){"use strict";s.d(e,{D(){return i}});const i=(...t)=>t.filter((t=>t.length)).map((t=>t.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/")},95935(t,e,s){"use strict";s.d(e,{F(){return i}});const i=(t,e)=>{const s=t=>parseInt(t,10),i=e.getComputedStyle(t);return t.offsetWidth-s(i.getPropertyValue("padding-left")||"0")-s(i.getPropertyValue("padding-right")||"0")}},89222(t,e,s){"use strict";s.d(e,{r(){return o}});var i=s(86284),r=s(9162);function o(t){if(!t)return null;const e=r.i.isHTMLElement(t),s=e&&(0,i.css)(t,"overflowY");return e&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:o(t.parentNode)||document.scrollingElement||document.body}},19475(t,e,s){"use strict";s.d(e,{FK(){return i.F},cv(){return n.c},dp(){return l.d},eL(){return a.F},rP(){return r.r},x9(){return o.x}});var i=s(95935),r=s(89222),o=s(20818),n=s(65643),a=s(31080),l=s(31982)},20818(t,e,s){"use strict";s.d(e,{x(){return i}});const i=(t,e)=>{const s=e.getComputedStyle(t);let i=t.clientWidth;return i-=parseFloat(s.paddingLeft||"0")+parseFloat(s.paddingRight||"0"),i}},31982(t,e,s){"use strict";s.d(e,{d(){return r}});var i=s(78157);function r(t){return(0,i.HD)(t)||(0,i.kJ)(t)?t.length:(0,i.PO)(t)?Object.keys(t).length:0}},65643(t,e,s){"use strict";s.d(e,{c(){return i}});const i=(t,e,s,r=!1)=>{let o;try{o=t.getBoundingClientRect()}catch(t){o={top:0,bottom:0,left:0,right:0,width:0,height:0}}const n=s.body,a=s.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},l=s.defaultView||s.parentWindow,c=l.pageYOffset||a.scrollTop||n.scrollTop,h=l.pageXOffset||a.scrollLeft||n.scrollLeft,u=a.clientTop||n.clientTop||0,d=a.clientLeft||n.clientLeft||0;let p,f;const m=e.iframe;if(!r&&e&&e.options&&e.o.iframe&&m){const{top:t,left:s}=i(m,e,e.od,!0);p=o.top+t,f=o.left+s}else p=o.top+c-u,f=o.left+h-d;return{top:Math.round(p),left:Math.round(f),width:o.width,height:o.height}}},31080(t,e,s){"use strict";s.d(e,{F(){return r}});var i=s(8133);function r(t,e,s=!1){const o=t.getBoundingClientRect();let n=o.left,a=o.top;if((0,i.Z)(e)&&e.iframe&&e.ed.body.contains(t)&&!s){const{left:t,top:s}=r(e.iframe,e,!0);n+=t,a+=s}return{left:Math.round(n),top:Math.round(a),width:Math.round(t.offsetWidth),height:Math.round(t.offsetHeight)}}},33683(t,e,s){"use strict";s.d(e,{e(){return i}});const i=t=>t.replace(/([-_])(.)/g,((t,e,s)=>s.toUpperCase()))},29133(t,e,s){"use strict";s.d(e,{Q(){return r}});var i=s(62924);function r(t,e,s=0,r=1){let o=0,n=0,a=-1,l=0,c=0;for(n=s;t.length>o&&e.length>n;)t[o].toLowerCase()===e[n].toLowerCase()?(o++,l++,c=0,-1===a&&(a=n)):o>0&&(r>c||e[n]===i.INVISIBLE_SPACE?(c++,l++):(o=0,a=-1,l=0,c=0,n--)),n++;return o===t.length?[a,l]:[-1,0]}},68484(t,e,s){"use strict";s.d(e,{a(){return c},g(){return l}});var i=s(37446),r=s(86284),o=s(2926),n=s(2343),a=s(62924);const l=(t,e)=>{if(!e||!e.length)return t;const s=/%([sd])/g;let i=s.exec(t),r=t,o=0;for(;i&&void 0!==e[o];)r=r.replace(i[0],""+e[o]),o+=1,i=s.exec(t);return r};function c(t,e,s){if(!(0,o.H)(t))throw(0,r.error)("i18n: Need string in first argument");if(!t.length)return t;const c=!!s?.debugLanguage;let h={};const u=t=>e&&e.length?l(t,e):t,d=(0,r.defaultLanguage)(i.D.defaultOptions.language,i.D.defaultOptions.language),p=(0,r.defaultLanguage)(s?.language,d),f=e=>{if(!e)return;if((0,o.H)(e[t]))return u(e[t]);const s=t.toLowerCase();if((0,o.H)(e[s]))return u(e[s]);const i=(0,n.P)(t);return(0,o.H)(e[i])?u(e[i]):void 0};void 0!==a.lang[p]?h=a.lang[p]:c||(h=void 0!==a.lang[d]?a.lang[d]:a.lang.en);const m=s?.i18n;if(m&&m[p]){const t=f(m[p]);if(t)return t}return f(h)||(!c&&a.lang.en&&(0,o.H)(a.lang.en[t])&&a.lang.en[t]?u(a.lang.en[t]):c?"{"+t+"}":u(t))}},13104(t,e,s){"use strict";s.d(e,{GL(){return n.G},Ps(){return c.P},Pz(){return a.P},Qy(){return r.Q},ag(){return o.a},as(){return l.as},cE(){return l.cE},eV(){return i.e},fy(){return l.fy},gB(){return o.g},gP(){return n.g}});var i=s(33683),r=s(29133),o=s(68484),n=s(13929),a=s(12582),l=s(76562),c=s(2343)},13929(t,e,s){"use strict";s.d(e,{G(){return i},g(){return r}});const i=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()},12582(t,e,s){"use strict";function i(t,e={}){if("object"!=typeof t)return t+"";const s=new Set(e.excludeKeys),i=new WeakMap;return JSON.stringify(t,((t,e)=>{if(!s.has(t)){if("object"==typeof e&&null!=e){if(i.get(e))return"[refObject]";i.set(e,!0)}return e}}),e.prettify)}s.d(e,{P(){return i}})},76562(t,e,s){"use strict";s.d(e,{as(){return n},cE(){return o},fy(){return r}});var i=s(62924);function r(t){return t.replace((0,i.SPACE_REG_EXP_END)(),"").replace((0,i.SPACE_REG_EXP_START)(),"")}function o(t,e){return t.replace(RegExp(`[${e}]+$`),"").replace(RegExp(`^[${e}]+`),"")}function n(t){return t.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,i.INVISIBLE_SPACE_REG_EXP_START)(),"")}},2343(t,e,s){"use strict";function i(t){return t.length?t[0].toUpperCase()+t.substring(1):""}s.d(e,{P(){return i}})},13931(t,e,s){"use strict";s.d(e,{E3(){return a},wL(){return n},zC(){return o}});var i=s(46879),r=s(71737);function o(t,e){e&&"normal"!==e?"center"!==e?((0,r.i)(t,"float",e),(0,r.b)(t)):(0,r.i)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,r.i)(t,"float")&&-1!==["right","left"].indexOf((""+(0,r.i)(t,"float")).toLowerCase())&&(0,r.i)(t,"float",""),(0,r.b)(t))}function n(t){i.i.each(t,(t=>{i.i.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))}))}function a(t,e){if(i.i.isNode(e)&&i.i.isElement(e))switch(n(e),t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}}},92665(t,e,s){"use strict";s.d(e,{GX(){return h},JL(){return a},Nf(){return l},wY(){return c}});var i=s(55313),r=s(2926);const o=new Map,n=t=>async(e,s)=>{if(o.has(s))return o.get(s);const i=t(e,s);return o.set(s,i),i},a=n(((t,e)=>t.async.promise(((s,r)=>{if(t.isInDestruct)return r();const o=t.c.element("script",{type:"text/javascript",async:!0,src:(0,i.W)(e)});t.od.body.appendChild(o),t.e.on(o,"error",r).on(o,"load",s)})))),l=n(((t,e)=>t.async.promise(((s,r)=>{if(t.isInDestruct)return r();const o=t.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",!t.isInDestruct&&t.e.on(o,"load",(()=>s(o))).on(o,"error",r),o.href=(0,i.W)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(o):t.od.body.appendChild(o)}))));function c(t,e,s=0){return(0,r.H)(e[s])?a(t,e[s]).then((()=>c(t,e,s+1))):Promise.resolve()}function h(t,e,s=0){return(0,r.H)(e[s])?l(t,e[s]).then((()=>h(t,e,s+1))):Promise.resolve()}},23144(t,e,s){"use strict";s.d(e,{L(){return n}});var i=s(78157),r=s(13929),o=s(71737);function n(t,e,s){if(!t||!(0,i.mf)(t.getAttribute))return null;if(!(0,i.HD)(e))return Object.keys(e).forEach((s=>{const r=e[s];(0,i.PO)(r)&&"style"===s?(0,o.i)(t,r):("className"===s&&(s="class"),n(t,s,r))})),null;let a=(0,r.g)(e);if(/^-/.test(a)){const e=n(t,"data"+a);if(e)return e;a=a.substr(1)}if(void 0!==s){if(null!=s){let e=""+s;return"IMG"!==t.nodeName||"width"!==a&&"height"!==a||(e=e.replace("px","")),t.setAttribute(a,e),e}t.hasAttribute(a)&&t.removeAttribute(a)}return t.getAttribute(a)}},67600(t,e,s){"use strict";s.d(e,{X(){return i}});const i=t=>{const e=navigator.userAgent.toLowerCase(),s=/(firefox)[\s/]([\w.]+)/.exec(e)||/(chrome)[\s/]([\w.]+)/.exec(e)||/(webkit)[\s/]([\w.]+)/.exec(e)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(e)||/(msie)[\s]([\w.]+)/.exec(e)||/(trident)\/([\w.]+)/.exec(e)||0>e.indexOf("compatible")||[];return"version"===t?s[2]:"webkit"===t?"chrome"===s[1]||"webkit"===s[1]:"ff"===t?"firefox"===s[1]:"msie"===t?"trident"===s[1]||"msie"===s[1]:s[1]===t}},36990(t,e,s){"use strict";s.d(e,{X(){return r}});var i=s(45564);const r=(t,e)=>{const s=[],o=encodeURIComponent;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const a=e?e+"["+n+"]":n,l=t[n];s.push((0,i.P)(l)?r(l,a):o(a)+"="+o(l))}return s.join("&")}},55313(t,e,s){"use strict";s.d(e,{W(){return i}});const i=t=>("file:"===window.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},45301(t,e,s){"use strict";s.d(e,{I(){return h},t(){return u}});var i=s(65098),r=s(63738),o=s(45564),n=s(2926),a=s(41240),l=s(37446),c=s(87398);function h(t,e,s=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;const c=l.D.defaultOptions;if((0,n.H)(t.preset)){if(void 0!==c.presets[t.preset]){const e=c.presets[t.preset];Object.keys(e).forEach((s=>{(0,a.n)(t[s])&&(t[s]=e[s])}))}delete t.preset}const u={};return Object.keys(t).forEach((n=>{const a=t[n],l=e?e[n]:null;u[n]=(0,o.P)(a)&&(0,o.P)(l)&&!(0,i.J8)(a)?h(a,l,s+1):0!==s&&(0,r.k)(a)&&!(0,i.J8)(a)&&(0,r.k)(l)?[...a,...l.slice(a.length)]:a})),Object.setPrototypeOf(u,e),u}function u(t){return(0,c.XP)(t,!1).reduce(((e,s)=>(e[s]=t[s],e)),{})}},13691(t,e,s){"use strict";s.d(e,{U(){return o}});var i=s(62268),r=s(14370);const o=(t,e=400,s=345)=>{if(!(0,i.P)(t))return t;const o=document.createElement("a"),n=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;o.href=t,e||(e=400),s||(s=345);const a=o.protocol||"";switch(o.hostname){case"www.vimeo.com":case"vimeo.com":return n.test(t)?t.replace(n,'<iframe width="'+e+'" height="'+s+'" src="'+a+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{const i=o.search?(0,r.m)(o.search):{v:o.pathname.substr(1)};return i.v?'<iframe width="'+e+'" height="'+s+'" src="'+a+"//www.youtube.com/embed/"+i.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},71737(t,e,s){"use strict";s.d(e,{b(){return c},i(){return l}});var i=s(45564),r=s(88751),o=s(21642),n=s(33683),a=s(13929);function l(t,e,s,c=!1){if((0,r.j)(s)&&(c=s,s=void 0),(0,i.P)(e)||void 0!==s){const r=(t,e,s)=>{void 0===(s=(0,o.xI)(e,s))||null!=s&&l(t,e,!0)===(0,o.Zh)(e,s)||(t.style[e]=s)};if((0,i.P)(e)){const s=Object.keys(e);for(let i=0;s.length>i;i+=1)r(t,(0,n.e)(s[i]),e[s[i]])}else r(t,(0,n.e)(e),s);return""}const h=(0,a.G)(e),u=t.ownerDocument||document,d=!!u&&(u.defaultView||u.parentWindow),p=t.style[e];let f="";return void 0!==p&&""!==p?f=p:d&&!c&&(f=d.getComputedStyle(t).getPropertyValue(h)),o.DO.test(e)&&/^[-+]?[0-9.]+px$/.test(""+f)&&(f=parseInt(""+f,10)),(0,o.Zh)(e,f)}const c=t=>{"block"===l(t,"display")&&l(t,"display","");const{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},83098(t,e,s){"use strict";s.d(e,{k(){return i}});const i=t=>{if("undefined"!=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}},25920(t,e,s){"use strict";s.d(e,{q(){return o}});var i=s(31470);const r=new WeakMap,o=(t,e,s)=>{let o=r.get(t);if(!o){o={},r.set(t,o);let e=null;(0,i.f)(t.j)&&(e=t.j.e),(0,i.f)(t)&&(e=t.e),e&&e.on("beforeDestruct",(()=>{r.delete(t)}))}return void 0===s?o[e]:(o[e]=s,s)}},94299(t,e,s){"use strict";s.d(e,{X(){return r}});var i=s(2926);const r=(t,e="en")=>"auto"!==t&&(0,i.H)(t)?t:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},60701(t,e,s){"use strict";s.d(e,{JG(){return c},PQ(){return h},YM(){return l},ZI(){return a},vU(){return n}});var i=s(3848),r=s(45610),o=s(41523);function n(t){return new TypeError(t)}function a(t){return new i.h(t)}function l(t){return new r.t(t)}function c(t){return new o._(t)}function h(t){return t instanceof o._}},41523(t,e,s){"use strict";s.d(e,{_(){return i}});class i extends Error{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}},3848(t,e,s){"use strict";s.d(e,{h(){return i}});class i extends Error{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}},24459(t,e,s){"use strict";s.d(e,{_L(){return i._},hY(){return r.h},tW(){return o.t}});var i=s(41523),r=s(3848),o=s(45610)},45610(t,e,s){"use strict";s.d(e,{t(){return i}});class i extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,i.prototype)}}},40840(t,e,s){"use strict";s.d(e,{JG(){return i.JG},PQ(){return i.PQ},YM(){return i.YM},ZI(){return i.ZI},_L(){return r._L},hY(){return r.hY},tW(){return r.tW},vU(){return i.vU}});var i=s(60701),r=s(24459)},65098(t,e,s){"use strict";s.d(e,{J8(){return r},V8(){return n},XT(){return o}});var i=s(12582);function r(t){return t&&t.isAtom}function o(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function n(t){return JSON.parse((0,i.P)(t))}},4306(t,e,s){"use strict";s.d(e,{g(){return o},k(){return r}});var i=s(69099);const r=new Map,o=t=>{if((0,i.m)(t.className))return t.className();const e=t.constructor?.originalConstructor||t.constructor;if(r.has(e))return r.get(e);if(e.name)return e.name;const s=RegExp(/^\s*function\s*(\S*)\s*\(/),o=(""+e).match(s);return o?o[1]:""}},25021(t,e,s){"use strict";s.d(e,{U(){return o}});var i=s(2926),r=s(41240);function o(t,e){if(!(0,i.H)(t)||!t.length)return null;const s=t.split(".");let o=e;try{for(const t of s){if((0,r.n)(o[t]))return null;o=o[t]}}catch{return null}return(0,r.n)(o)?null:o}},48871(t,e,s){"use strict";s.d(e,{w(){return i}});const i=t=>{if(/^[0-9.]+$/.test(""+t))return parseFloat(t);const e=t.substr(-2,2).toUpperCase(),s=["KB","MB","GB","TB"],i=parseFloat(t.substr(0,t.length-2));return-1!==s.indexOf(e)?i*Math.pow(1024,s.indexOf(e)+1):parseInt(t,10)}},86284(t,e,s){"use strict";s.r(e),s.d(e,{$$(){return T.$$},AbortError(){return b._L},ConfigFlatten(){return d.t},ConfigProto(){return d.I},ConnectionError(){return b.hY},LimitedStack(){return L.l},OptionsError(){return b.tW},abort(){return b.JG},alignElement(){return i.E3},appendScriptAsync(){return o.JL},appendStyleAsync(){return o.Nf},attr(){return r.L},browser(){return c.X},buildQuery(){return h.X},call(){return M.RE},callPromise(){return M.C6},clearAlign(){return i.wL},clearCenterAlign(){return f.b},cns(){return S.H},completeUrl(){return u.W},connection(){return b.ZI},convertMediaUrlToVideoEmbed(){return p.U},css(){return f.i},cssPath(){return T.iN},ctrlKey(){return m.k},dataBind(){return g.q},defaultLanguage(){return v.X},error(){return b.vU},fastClone(){return _.V8},get(){return y.U},getClassName(){return w.g},getDataTransfer(){return M.qu},getXPathByElement(){return T.BR},hAlignElement(){return i.zC},humanSizeToBytes(){return C.w},inView(){return I.j},isAbort(){return b.PQ},isAtom(){return _.J8},keepNames(){return w.k},keys(){return M.XP},loadImage(){return M.po},loadNext(){return o.wY},loadNextStyle(){return o.GX},markAsAtomic(){return _.XT},markDeprecated(){return S.Q},markOwner(){return M.MN},memorizeExec(){return M.u3},options(){return b.YM},parseQuery(){return E.m},previewBox(){return x.$},refs(){return T.xL},reset(){return j.m},resolveElement(){return T.W2},scrollIntoViewIfNeeded(){return I.n},set(){return k.t}});var i=s(13931),r=s(23144),o=s(92665),n=s(52378),a={};for(var l in n)0>["default","alignElement","clearAlign","hAlignElement","attr","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(l)&&(a[l]=(t=>n[t]).bind(0,l));s.d(e,a);var c=s(67600),h=s(36990),u=s(55313),d=s(45301),p=s(13691),f=s(71737),m=s(83098),g=s(25920),v=s(94299),b=s(40840),_=s(65098),y=s(25021),w=s(4306),C=s(48871),S=s(41242),E=s(14370),x=s(90006),j=s(25074),I=s(18068),T=s(93789),k=s(49155),L=s(56114),M=s(87398)},41242(t,e,s){"use strict";s.d(e,{H(){return i},Q(){return r}});const i=console;function r(t,e=[""],s=null){return(...r)=>(i.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(s,...r))}},14370(t,e,s){"use strict";s.d(e,{m(){return i}});const i=t=>{const e={},s=t.substring(1).split("&");for(let t=0;s.length>t;t+=1){const i=s[t].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return e}},90006(t,e,s){"use strict";s.d(e,{$(){return l}});var i=s(2926),r=s(9162),o=s(71737),n=s(23144),a=s(93789);function l(t,e,s="px",l=null){const c=[],h=((t,e)=>{const s=[];try{(0,a.$$)("img",t.editor).forEach((i=>{const o=[(0,n.L)(i,"width"),(0,n.L)(i,"height"),i.src];(0,n.L)(i,{width:i.offsetWidth+e,height:i.offsetHeight+e});const a=t.createInside.a();t.ed.body.appendChild(a),a.href=i.src,i.src=a.href,r.i.safeRemove(a),s.push((()=>{i.src=o[2]??"",(0,n.L)(i,{width:o[0]||null,height:o[1]||null})}))}))}catch(t){throw s.forEach((t=>t())),s.length=0,t}return s})(t,s);try{const a=t.e.fire("beforePreviewBox",e,s);if(null!=a)return a;let h=t.c.div("jodit__preview-box jodit-context");l&&l.appendChild(h),(0,o.i)(h,{position:"relative",padding:16});const u=t.value||`<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>${t.i18n("Empty")}</div>`;if(t.iframe){const e=t.create.element("iframe");(0,o.i)(e,{minWidth:800,minHeight:600,border:0}),h.appendChild(e);const s=e.contentWindow;if(s&&(t.e.fire("generateDocumentStructure.iframe",s.document,t),h=s.document.body,"function"==typeof ResizeObserver)){let i=!1;const r=s.document.body,o=new ResizeObserver(t.async.debounce((()=>{o.unobserve(r),e.style.height=r.offsetHeight+20+"px",t.async.requestAnimationFrame((()=>{!i&&o.observe(r)}))}),100)),n=()=>{i=!0,o.unobserve(r),o.disconnect(),t.e.off("beforeDestruct",n)};c.push(n),t.e.on("beforeDestruct",n)}}else(0,o.i)(h,{minWidth:1024,minHeight:600,border:0});const d=(e,s)=>{const o=(0,i.H)(s)?t.c.div():s;(0,i.H)(s)&&(o.innerHTML=s);for(let t=0;o.childNodes.length>t;t+=1){const s=o.childNodes[t];if(r.i.isElement(s)){const t=e.ownerDocument.createElement(s.nodeName);for(let e=0;s.attributes.length>e;e+=1)(0,n.L)(t,s.attributes[e].nodeName,s.attributes[e].nodeValue);0===s.childNodes.length||r.i.isTag(s,"table")?"SCRIPT"===s.nodeName?s.textContent&&(t.textContent=s.textContent):s.innerHTML&&(t.innerHTML=s.innerHTML):d(t,s);try{e.appendChild(t)}catch{}}else try{e.appendChild(s.cloneNode(!0))}catch{}}};return d(h,u),t.e.fire("afterPreviewBox",h),[h,()=>{c.forEach((t=>t()))}]}finally{h.forEach((t=>t()))}}},25074(t,e,s){"use strict";s.d(e,{m(){return a}});var i=s(25021),r=s(69099),o=s(62924);const n={};function a(t){if(!(t in n)){const e=document.createElement("iframe");try{if(e.src="about:blank",document.body.appendChild(e),!e.contentWindow)return null;const s=(0,i.U)(t,e.contentWindow),o=(0,i.U)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,r.m)(s)&&(n[t]=s.bind(o))}catch(t){if(!o.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return n[t]??null}},18068(t,e,s){"use strict";s.d(e,{j(){return r},n(){return o}});var i=s(9162);function r(t,e,s){let i=t.getBoundingClientRect(),r=t;const o=i.top,n=i.height;for(;r&&r!==e&&r.parentNode;){if(r=r.parentNode,i=r.getBoundingClientRect(),o>i.bottom)return!1;if(i.top>=o+n)return!1}return(s.documentElement&&s.documentElement.clientHeight||0)>=o}function o(t,e,s){i.i.isHTMLElement(t)&&!r(t,e,s)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),r(t,e,s)||t.scrollIntoView())}},93789(t,e,s){"use strict";s.d(e,{$$(){return d},BR(){return p},W2(){return g},iN(){return m},xL(){return f}});var i=s(62924),r=s(2926),o=s(86284),n=s(9162),a=s(33683),l=s(24174),c=s(18970),h=s(91003);let u=1;function d(t,e){let s;if(i.IS_ES_NEXT||!/:scope/.test(t)||!i.IS_IE||e&&e.nodeType===Node.DOCUMENT_NODE)s=e.querySelectorAll(t);else{const i=e.id,r=i||"_selector_id_"+(Math.random()+"").slice(2)+(u++,u);t=t.replace(/:scope/g,"#"+r),!i&&e.setAttribute("id",r),s=e.parentNode.querySelectorAll(t),i||e.removeAttribute("id")}return[].slice.call(s)}const p=(t,e)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE)return"";if(!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";const s=[].filter.call(t.parentNode.childNodes,(e=>e.nodeName===t.nodeName));return p(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(s.length>1?"["+((0,l.q)(s).indexOf(t)+1)+"]":"")},f=t=>(h.w.isInstanceOf(t,c.u)&&(t=t.container),d("[ref],[data-ref]",t).reduce(((t,e)=>{const s=(0,o.attr)(e,"-ref");return s&&(0,r.H)(s)&&(t[(0,a.e)(s)]=e,t[s]=e),t}),{})),m=t=>{if(!n.i.isElement(t))return null;const e=[];let s=t;for(;s&&s.nodeType===Node.ELEMENT_NODE;){let t=s.nodeName.toLowerCase();if(s.id){t+="#"+s.id,e.unshift(t);break}{let e=s,i=1;do{e=e.previousElementSibling,e&&e.nodeName.toLowerCase()===t&&i++}while(e);t+=":nth-of-type("+i+")"}e.unshift(t),s=s.parentNode}return e.join(" > ")};function g(t,e){let s=t;if((0,r.H)(t))try{s=e.querySelector(t)}catch{throw(0,o.error)('String "'+t+'" should be valid HTML selector')}if(!s||"object"!=typeof s||!n.i.isElement(s)||!s.cloneNode)throw(0,o.error)('Element "'+t+'" should be string or HTMLElement instance');return s}},49155(t,e,s){"use strict";s.d(e,{t(){return a}});var i=s(2926),r=s(57947),o=s(63738),n=s(45564);function a(t,e,s){if(!(0,i.H)(t)||!t.length)return;const a=t.split(".");let l=s,c=a[0];for(let t=0;a.length-1>t;t+=1)c=a[t],(0,o.k)(l[c])||(0,n.P)(l[c])||(l[c]=(0,r.k)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},56114(t,e,s){"use strict";s.d(e,{l(){return i}});class i{constructor(t){this.limit=t,this.stack=[]}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)}}},87398(t,e,s){"use strict";s.d(e,{C6(){return c},MN(){return l},RE(){return a},XP(){return u},po(){return h},qu(){return p},u3(){return d}});var i=s(59862),r=s(41240),o=s(25920),n=s(23144);function a(t,...e){return t(...e)}function l(t,e){(0,n.L)(e,"data-editor_id",t.id),!e.component&&Object.defineProperty(e,"jodit",{value:t})}function c(t,e){return(0,i.t)(t)?t.then((t=>t),(()=>null)).finally(e):e()}const h=(t,e)=>e.async.promise(((s,i)=>{const r=new Image,o=()=>{e.e.off(r),i?.()},n=()=>{e.e.off(r),s(r)};e.e.one(r,"load",n).one(r,"error",o).one(r,"abort",o),r.src=t,r.complete&&n()})),u=(t,e=!0)=>{if(e)return Object.keys(t);const s=[];for(const e in t)s.push(e);return s},d=(t,e,{control:s},i)=>{const n="button"+s.command;let a=(s.args&&s.args[0])??(0,o.q)(t,n);if((0,r.n)(a))return!1;(0,o.q)(t,n,a),i&&(a=i(a)),t.execCommand(s.command,!1,a??void 0)},p=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch{return null}}},97800(t,e,s){"use strict";s.d(e,{S(){return a}});var i=s(78157),r=s(3223),o=s(62924),n=s(79102);function a(t,e,s,a,l,c){if((0,i.Gu)(a))try{a.init(t)}catch(t){if(!o.IS_PROD)throw t}l.set(e,a),c.delete(e),a.hasStyle&&(0,r.X)(t,e).catch((t=>{})),a.styles&&((0,n.ZO)(t,e,"style").innerHTML=a.styles)}},3223(t,e,s){"use strict";s.d(e,{X(){return l},z(){return h}});var i=s(92665),r=s(13929),o=s(19653),n=s(62924);const a=new Set;async function l(t,e){const s=c(t,e,!1);if(!a.has(s))return a.add(s),(0,i.Nf)(t,s)}function c(t,e,s){return e=(0,r.G)(e),t.basePath+"plugins/"+e+"/"+e+"."+(s?"js":"css")}function h(t,e,s,r){try{const n=s.filter((e=>!t.has((0,o.B)(e.name))));n.length&&((t,e,s)=>{e.map((e=>{const r=e.url||c(t,e.name,!0);return(0,i.JL)(t,r).then(s).catch((()=>null))}))})(e,n,r)}catch(t){if(!n.IS_PROD)throw t}}},7561(t,e,s){"use strict";s.d(e,{a(){return o}});var i=s(69099),r=s(62924);function o(t,e){try{try{return(0,i.m)(e)?new e(t):e}catch(s){if((0,i.m)(e)&&!e.prototype)return e(t)}}catch(t){if(!r.IS_PROD)throw t}return null}},19653(t,e,s){"use strict";s.d(e,{B(){return r}});var i=s(13929);function r(t){return(0,i.G)(t).toLowerCase()}},7331(t,e,s){"use strict";s.d(e,{S(){return i.S}}),s(41978);var i=s(97651)},41978(t,e,s){"use strict";s.d(e,{h(){return h}});var i=s(78157),r=s(8131),o=s(79102),n=s(3223),a=s(19653),l=s(7561),c=s(97800);s(62924);class h{constructor(){this.__items=new Map}add(t,e){this.__items.set((0,a.B)(t),e),o.TB.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,a.B)(t))}remove(t){this.__items.delete((0,a.B)(t))}__getFullPluginsList(t){const e=[];return this.__items.forEach(((s,i)=>{t&&!t.has(i)||e.push([i,s])})),e}__init(t){const{extraList:e,disableList:s,filter:o}=(t=>({extraList:t.o.extraPlugins.map((t=>(0,i.HD)(t)?{name:t}:t)),disableList:new Set((0,r.C1)(t.o.disablePlugins).map(a.B)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null}))(t),h=new Map,u={},d=new Set;t.__plugins=u;const p=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(o).forEach((([r,o])=>{if(s.has(r)||h.has(r))return;const n=o?.requires;if(n&&(0,i.kJ)(n)&&n.length){if(n.some((t=>s.has(t))))return;if(!n.every((t=>h.has(t))))return void d.add(r)}e=!0;const a=(0,l.a)(t,o);if(!a)return h.set(r,null),void d.delete(r);(0,c.S)(t,r,o,a,h,d),u[r]=a})),e&&(t.e.fire("updatePlugins"),p())};e&&e.length&&(0,n.z)(this.__items,t,e,p),p(),((t,e)=>{t.e.on("beforeDestruct",(()=>{Object.keys(e).forEach((s=>{const r=e[s];(0,i.Z$)(r)&&r.destruct(t),delete e[s]})),delete t.__plugins}))})(t,u)}wait(t){return new Promise((e=>{if(this.get(t))return e();const s=()=>{e(),o.TB.off(`plugin:${t}:ready`,s)};o.TB.on(`plugin:${t}:ready`,s)}))}}},97651(t,e,s){"use strict";s.d(e,{S(){return a}});var i=s(97582),r=s(2581),o=s(13666),n=s(8133);class a extends r.Hr{className(){return"Plugin"}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)}__afterPluginSystemInit(){const{j:t,buttons:e}=this;e&&(0,n.Z)(t)&&e.forEach((e=>{t.registerButton(e)}))}__afterInit(){this.__inited=!0,this.setStatus(r.n$.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;const{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(r.n$.beforeDestruct),!this.__inited)return super.destruct();(0,n.Z)(t)&&this.buttons?.forEach((e=>{t?.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}}a.requires=[],(0,i.gn)([o.autobind],a.prototype,"__afterPluginSystemInit",null),(0,i.gn)([o.autobind],a.prototype,"__afterInit",null),(0,i.gn)([o.autobind],a.prototype,"__beforeDestruct",null)},29471(t,e,s){"use strict";s.d(e,{t(){return h}});var i=s(97582),r=s(37446),o=s(76974),n=s(60701),a=s(76731),l=s(13666),c=s(72504);s(58453);class h{className(){return"Ajax"}constructor(t,e=r.D.prototype.defaultAjaxOptions){this.__async=new a.e,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,o.ConfigProto)(t||{},e),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}__buildParams(t,e){return(0,o.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,o.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,e):(0,o.isString)(t)||t instanceof window.FormData||"object"==typeof t&&null!=t&&(0,o.isFunction)(t.append)?t:(0,o.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}send(){this.__activated=!0;const{xhr:t,o:e}=this,s=this.prepareRequest();return this.__async.promise((async(i,r)=>{const a=()=>{this.__isFulfilled=!0,r(n.ZI("Connection error"))},l=()=>{this.__isFulfilled=!0,i(new c.H(s,t.status,t.statusText,t.responseType?t.response:t.responseText))};t.onload=l,t.onabort=()=>{this.__isFulfilled=!0,r(n.JG("Abort connection"))},t.onerror=a,t.ontimeout=a,e.responseType&&(t.responseType=e.responseType),t.onprogress=t=>{let e=0;t.lengthComputable&&(e=t.loaded/t.total*100),this.options.onProgress?.(e)},t.onreadystatechange=()=>{this.options.onProgress?.(10),t.readyState===XMLHttpRequest.DONE&&(e.successStatuses.includes(t.status)?l():t.statusText&&(this.__isFulfilled=!0,r(n.ZI(t.statusText))))},t.withCredentials=e.withCredentials??!1;const{url:h,data:u,method:d}=s;t.open(d,h,!0),e.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",e.contentType);let{headers:p}=e;(0,o.isFunction)(p)&&(p=await p.call(this)),p&&t.setRequestHeader&&Object.keys(p).forEach((e=>{t.setRequestHeader(e,p[e])})),this.__async.setTimeout((()=>{t.send(u?this.__buildParams(u):void 0)}),0)}))}prepareRequest(){if(!this.o.url)throw n.vU("Need URL for AJAX request");let t=this.o.url;const e=this.o.data,s=(this.o.method||"get").toLowerCase();if("get"===s&&e&&(0,o.isPlainObject)(e)){const s=t.indexOf("?");if(-1!==s){const i=(0,o.parseQuery)(t);t=t.substring(0,s)+"?"+(0,o.buildQuery)({...i,...e})}else t+="?"+(0,o.buildQuery)(this.o.data)}const i={url:t,method:s,data:e};return h.log.splice(100),h.log.push(i),i}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}h.log=[],(0,i.gn)([l.autobind],h.prototype,"destruct",null)},58453(t,e,s){"use strict";s(37446).D.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:()=>new XMLHttpRequest}},60072(t,e,s){"use strict";s.d(e,{H(){return r.H},t(){return i.t}});var i=s(29471),r=s(72504)},72504(t,e,s){"use strict";s.d(e,{H(){return i}});class i{get url(){return this.request.url}constructor(t,e,s,i){this.request=t,this.status=e,this.statusText=s,this.body=i}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}}},9105(t,e,s){"use strict";s.d(e,{F(){return i.F}});var i=s(1658);s(60258)},1658(t,e,s){"use strict";s.d(e,{F(){return o}});var i=s(9162),r=s(62924);function o(t,e,s){let o=i.i.findSibling(e,s),n=i.i.findSibling(e,!s);for(;i.i.isElement(o)&&!i.i.isTag(o,r.INSEPARABLE_TAGS)&&i.i.isContentEditable(o,t.editor)&&(!n||!i.i.closest(e,i.i.isElement,t.editor));)s||!o.firstChild?o.appendChild(e):i.i.before(o.firstChild,e),o=i.i.sibling(e,s),n=i.i.sibling(e,!s)}},60258(t,e,s){"use strict";s.d(e,{f(){return r}});var i=s(9162);function r(t,e,s){let r=t;for(;r&&r!==s;){if(i.i.findSibling(r,e))return;if(i.i.isBlock(r.parentElement))break;r=r.parentElement,r&&r!==s&&(e?i.i.before(r,t):i.i.after(r,t))}}},64815(t,e,s){"use strict";s.d(e,{J5(){return i.J5},Nc(){return i.Nc},Qu(){return i.Qu},RP(){return i.RP},Y1(){return r.Y},_X(){return i._X},p(){return i.p}});var i=s(41254),r=s(46998)},46998(t,e,s){"use strict";s.d(e,{Y(){return u}});var i=s(97582),r=s(62924),o=s(9162),n=s(76974),a=s(13666),l=s(60258),c=(s(52378),s(78157)),h=s(41254);class u{constructor(t){this.jodit=t,t.e.on("removeMarkers",(()=>{this.removeMarkers()}))}get j(){return this.jodit}errorNode(t){if(!o.i.isNode(t))throw(0,n.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,c.mf)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!o.i.isOrContains(this.area,e.startContainer))}createRange(t=!1){const e=this.doc.createRange();return t&&this.selectRange(e),e}remove(){const t=this.sel,e=this.current();if(t&&e)for(let e=0;t.rangeCount>e;e+=1)t.getRangeAt(e).deleteContents(),t.getRangeAt(e).collapse(!0)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!o.i.isOrContains(this.j.editor,t,!0))throw(0,n.error)("Selection.removeNode can remove only editor's children");o.i.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{const s=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const i=this.doc.caretPositionFromPoint(t,e);if(i)return void s.setStart(i.offsetNode,i.offset)}if(this.doc.caretRangeFromPoint){const i=this.doc.caretRangeFromPoint(t,e);s.setStart(i.startContainer,i.startOffset)}})(),s.collapse(!0),this.selectRange(s),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,n.$$)("span[data-"+r.MARKER_CLASS+"]",this.area)}removeMarkers(){o.i.safeRemove.apply(null,this.markers)}marker(t=!1,e){let s=null;e&&(s=e.cloneRange(),s.collapse(t));const i=this.j.createInside.span();return i.id=r.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),i.style.lineHeight="0",i.style.display="none",o.i.markTemporary(i),(0,n.attr)(i,"data-"+r.MARKER_CLASS,t?"start":"end"),i.appendChild(this.j.createInside.text(r.INVISIBLE_SPACE)),s&&o.i.isOrContains(this.area,t?s.startContainer:s.endContainer)&&s.insertNode(i),i}restore(){let t=!1;const e=t=>`span[data-${r.MARKER_CLASS}=${t?"start":"end"}]`,s=this.area.querySelector(e(!0)),i=this.area.querySelector(e(!1));if(s){if(t=this.createRange(),i)t.setStartAfter(s),o.i.safeRemove(s),t.setEndBefore(i),o.i.safeRemove(i);else{const e=s.previousSibling;o.i.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(s),o.i.safeRemove(s),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){const t=this.sel;if(!t||!t.rangeCount)return[];const e=t.getRangeAt(0),s=e.cloneRange();s.collapse(!0);const i=this.j.createInside.fake();o.i.safeInsertNode(s,i),e.setStartBefore(i);const r=[i];if(!e.collapsed){const t=e.cloneRange();t.collapse(!1);const s=this.j.createInside.fake();o.i.safeInsertNode(t,s),e.setEndAfter(s),r.push(s)}return this.selectRange(e),r}restoreFakes(t){const e=t.filter((t=>t.isConnected));if(!e.length)return;const[s,i]=e,r=this.createRange();r.setStartAfter(s),i&&r.setEndBefore(i),this.selectRange(r),s.parentNode?.firstChild!==s.parentNode?.lastChild&&o.i.safeRemove(s),i?.parentNode?.firstChild!==i?.parentNode?.lastChild&&o.i.safeRemove(i)}save(t=!1){if(this.hasMarkers)return[];const e=this.sel;if(!e||!e.rangeCount)return[];const s=[],i=e.rangeCount,r=[];for(let t=0;i>t;t+=1)if(r[t]=e.getRangeAt(t),r[t].collapsed){const e=this.marker(!0,r[t]);s[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{const e=this.marker(!0,r[t]),i=this.marker(!1,r[t]);s[t]={startId:e.id,endId:i.id,collapsed:!1,startMarker:e.outerHTML,endMarker:i.outerHTML}}if(!t){e.removeAllRanges();for(let t=i-1;t>=0;--t){const i=this.doc.getElementById(s[t].startId);if(i){if(s[t].collapsed)r[t].setStartAfter(i),r[t].collapse(!0);else if(r[t].setStartBefore(i),s[t].endId){const e=this.doc.getElementById(s[t].endId);e&&r[t].setEndAfter(e)}try{e.addRange(r[t].cloneRange())}catch{}}}}return s}focus(t={preventScroll:!0}){if(!this.isFocused()){const e=(0,n.getScrollParent)(this.j.container),s=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),s&&e?.scrollTo&&e.scrollTo(0,s);const i=this.sel,r=i?.rangeCount?i?.getRangeAt(0):null;if(!r||!o.i.isOrContains(this.area,r.startContainer)){const t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}isCollapsed(){const t=this.sel;for(let e=0;t&&t.rangeCount>e;e+=1)if(!t.getRangeAt(e).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()===r.MODE_WYSIWYG){const e=this.sel;if(!e||0===e.rangeCount)return null;const s=e.getRangeAt(0);let i=s.startContainer,r=!1;const n=t=>r?t.lastChild:t.firstChild;if(o.i.isTag(i,"br")&&e.isCollapsed)return i;if(!o.i.isText(i)){if(i=s.startContainer.childNodes[s.startOffset],i||(i=s.startContainer.childNodes[s.startOffset-1],r=!0),i&&e.isCollapsed&&!o.i.isText(i))if(!r&&o.i.isText(i.previousSibling))i=i.previousSibling;else if(t){let t=n(i);for(;t;){if(t&&o.i.isText(t)){i=t;break}t=n(t)}}if(i&&!e.isCollapsed&&!o.i.isText(i)){let t=i,e=i;do{t=t.firstChild,e=e.lastChild}while(t&&e&&!o.i.isText(t));t===e&&t&&o.i.isText(t)&&(i=t)}}if(i&&o.i.isOrContains(this.area,i))return i}return null}insertNode(t,e=!0,s=!0){this.errorNode(t);const i=o.i.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const r=this.sel;this.j.history.snapshot.transaction((()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),r&&r.rangeCount){const e=r.getRangeAt(0);o.i.isOrContains(this.area,e.commonAncestorContainer)?o.i.safeInsertNode(e,t):this.area.appendChild(t)}else this.area.appendChild(t);const s=t=>{if(o.i.isBlock(t)){const e=t.lastChild;if(e)return s(e)}this.setCursorAfter(t)};e&&(o.i.isFragment(t)?i&&s(i):s(t)),this.j.o.scrollToPastedContent&&(0,n.scrollIntoViewIfNeeded)(i??t,this.j.editor,this.doc)})),s&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",o.i.isFragment(t)?i:t)}insertHTML(t,e=!0){if(""===t)return;const s=this.j.createInside.div(),i=this.j.createInside.fragment();let r;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),o.i.isNode(t)?s.appendChild(t):s.innerHTML=""+t,(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",s.innerHTML))&&(r=s.lastChild,r)){for(;s.firstChild;)r=s.firstChild,i.appendChild(s.firstChild);this.insertNode(i,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,s=null){const i=(0,c.HD)(t)?this.j.createInside.element("img"):t;if((0,c.HD)(t)&&i.setAttribute("src",t),null!=s){let t=""+s;t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,n.call)(this.j.o.resizer.forImageChangeAttributes?n.attr:n.css,i,"width",t)}e&&"object"==typeof e&&(0,n.css)(i,e);const r=()=>{(i.offsetHeight>i.naturalHeight||i.offsetWidth>i.naturalWidth)&&(i.style.width="",i.style.height=""),i.removeEventListener("load",r)};this.j.e.on(i,"load",r),i.complete&&r(),this.insertNode(i),this.j.e.fire("afterInsertImage",i)}eachSelection(t){const e=this.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0);let i=s.commonAncestorContainer;o.i.isHTMLElement(i)||(i=i.parentElement);const a=[],l=s.startOffset,h=i.childNodes.length;let u=s.startContainer===this.area?i.childNodes[h>l?l:h-1]:s.startContainer,d=s.endContainer===this.area?i.childNodes[s.endOffset-1]:s.endContainer;o.i.isText(u)&&u===s.startContainer&&s.startOffset===u.nodeValue?.length&&u.nextSibling&&(u=u.nextSibling),o.i.isText(d)&&d===s.endContainer&&0===s.endOffset&&d.previousSibling&&(d=d.previousSibling);const p=t=>{!t||t===i||o.i.isEmptyTextNode(t)||(0,c._V)(t)||a.push(t)};p(u),u!==d&&o.i.isOrContains(i,u,!0)&&o.i.find(u,(t=>(p(t),t===d||t&&t.contains&&t.contains(d))),i,!0,!1);const f=e=>{if(o.i.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,n.toArray)(e.childNodes).forEach(f);if(o.i.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{const t=this.j.createInside.text(r.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===a.length&&o.i.isEmptyTextNode(u)&&a.push(u),0===a.length&&u.firstChild&&a.push(u.firstChild),a.forEach(f)}}cursorInTheEdge(t,e,s=null){const i=!t,a=this.sel?.getRangeAt(0);if(s??=this.current(!1),!a||!s||!o.i.isOrContains(e,s,!0))return null;const l=t?a.startContainer:a.endContainer,c=t?a.startOffset:a.endOffset,h=t=>!(!t||o.i.isTag(t,"br")||o.i.isEmptyTextNode(t)||o.i.isTemporary(t)||o.i.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t));if(o.i.isText(l)){const e=l.nodeValue?.length?l.nodeValue:"";if(i&&e.replace((0,r.INVISIBLE_SPACE_REG_EXP_END)(),"").length>c)return!1;const s=(0,r.INVISIBLE_SPACE_REG_EXP_START)().exec(e);if(t&&(s&&c>s[0].length||!s&&c>0))return!1}else{const t=(0,n.toArray)(l.childNodes);if(i){if(t.slice(c).some(h))return!1}else if(t.slice(0,c).some(h))return!1}let u=s;for(;u&&u!==e;){const e=o.i.sibling(u,t);if(e){if(u=e,u&&h(u))return!1}else u=u.parentNode}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!o.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,n.error)("Node element must be in editor");const s=this.createRange();let i=null;return o.i.isText(t)?e?s.setStart(t,0):s.setEnd(t,t.nodeValue?.length??0):(i=this.j.createInside.fake(),e?s.setStartBefore(t):s.setEndAfter(t),s.collapse(e),o.i.safeInsertNode(s,i),s.selectNode(i)),s.collapse(e),this.selectRange(s),i}setCursorIn(t,e=!1){if(this.errorNode(t),!o.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,n.error)("Node element must be in editor");const s=this.createRange();let i=t,a=t;do{if(o.i.isText(i)||o.i.isTag(i,r.INSEPARABLE_TAGS))break;a=i,i=e?i.firstChild:i.lastChild}while(i);if(!i){const t=this.j.createInside.text(r.INVISIBLE_SPACE);o.i.isTag(a,r.INSEPARABLE_TAGS)?i=a:(a.appendChild(t),a=t)}const l=i||a;return o.i.isTag(l,r.INSEPARABLE_TAGS)?(e||o.i.isTag(l,"br")?s.setStartBefore(l):s.setEndAfter(l),s.collapse(e)):(s.selectNodeContents(l),s.collapse(e)),this.selectRange(s),a}selectRange(t,e=!0){const s=this.sel;return e&&!this.isFocused()&&this.focus(),s&&(s.removeAllRanges(),s.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!o.i.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,n.error)("Node element must be in editor");const s=this.createRange();return s[e?"selectNodeContents":"selectNode"](t),this.selectRange(s)}get html(){const t=this.sel;if(t&&t.rangeCount>0){const e=t.getRangeAt(0).cloneContents(),s=this.j.createInside.div();return s.appendChild(e),s.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){const e=this.jodit.createInside.element("font",r.INVISIBLE_SPACE);return this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,void o.i.unwrap(e)}(0,n.$$)("*[style*=font-size]",this.area).forEach((t=>{(0,n.attr)(t,"data-font-size",""+t.style.fontSize),t.style.removeProperty("font-size")})),this.j.nativeExecCommand("fontsize",!1,"7"),(0,n.$$)("*[data-font-size]",this.area).forEach((t=>{const e=(0,n.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,n.attr)(t,"data-font-size",null))}));const e=(0,n.$$)('font[size="7"]',this.area);for(const t of e){const{firstChild:e,lastChild:s}=t;e&&e===s&&(0,c._V)(e)||(e&&(0,c._V)(e)&&o.i.before(t,e),s&&(0,c._V)(s)&&o.i.after(t,s),yield t),o.i.unwrap(t)}}wrapInTag(t){const e=[];for(const s of this.wrapInTagGen())try{if(s.firstChild&&s.firstChild===s.lastChild&&(0,c._V)(s.firstChild))continue;(0,c.mf)(t)?t(s):e.push(o.i.replace(s,t,this.j.createInside))}finally{const t=s.parentNode;t&&(o.i.unwrap(s),o.i.isEmpty(t)&&o.i.unwrap(t))}return e}commitStyle(t){new h.RP(t).apply(this.j)}splitSelection(t,e){if(!this.isCollapsed())return null;const s=this.createRange(),i=this.range;s.setStartBefore(t);const n=this.cursorOnTheRight(t,e),a=this.cursorOnTheLeft(t,e),l=this.j.createInside.element("br"),c=this.j.createInside.fake(),h=c.cloneNode();try{if(n||a){e?o.i.before(e,l):o.i.safeInsertNode(i,l);const t=(t,e)=>{let s=e(t);for(;s;){const t=e(s);if(!s||!o.i.isTag(s,"br")&&!o.i.isEmptyTextNode(s))break;o.i.safeRemove(s),s=t}};t(l,(t=>t.nextSibling)),t(l,(t=>t.previousSibling)),o.i.after(l,h),o.i.before(l,c),n?(s.setEndBefore(l),i.setEndBefore(l)):(s.setEndAfter(l),i.setEndAfter(l))}else s.setEnd(i.startContainer,i.startOffset);const u=s.extractContents(),d=t=>o.i.each(t,(t=>o.i.isEmptyTextNode(t)&&o.i.safeRemove(t)));try{if(d(u),d(t),t.parentNode.insertBefore(u,t),!e&&n&&l?.parentNode){const t=this.createRange();t.setStartBefore(l),this.selectRange(t)}}catch(t){if(!r.IS_PROD)throw t}const p=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(l.cloneNode())};p(c),p(h)}finally{o.i.safeRemove(c),o.i.safeRemove(h)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:t}=this,e=t.cloneRange();if(!o.i.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;const s=e=>{const s=this.j.createInside.fake(),i=t.cloneRange();return i.collapse(e),o.i.safeInsertNode(i,s),(0,l.f)(s,e,this.j.editor),s},i=s(!0),r=s(!1);e.setStartAfter(i),e.setEndBefore(r);const a=o.i.findSibling(i,!1),c=o.i.findSibling(r,!0);if(a!==c){const t=o.i.isElement(a)&&o.i.isOrContains(a,r),s=!t&&o.i.isElement(c)&&o.i.isOrContains(c,i);if(t||s){let s=t?a:c,n=s;for(;o.i.isElement(s);)s=t?s.firstElementChild:s.lastElementChild,s&&o.i.isOrContains(s,t?r:i)&&(n=s);t?e.setStart(n,0):e.setEnd(n,n.childNodes.length)}}if(this.selectRange(e),o.i.safeRemove(i,r),this.isCollapsed())throw(0,n.error)("Selection is collapsed");return this}}(0,i.gn)([a.autobind],u.prototype,"createRange",null),(0,i.gn)([a.autobind],u.prototype,"focus",null),(0,i.gn)([a.autobind],u.prototype,"setCursorAfter",null),(0,i.gn)([a.autobind],u.prototype,"setCursorBefore",null),(0,i.gn)([a.autobind],u.prototype,"setCursorIn",null)},76785(t,e,s){"use strict";s.d(e,{i(){return a}});var i=s(87398),r=s(76562),o=s(9162),n=s(29894);function a(t,e,s){const i=s.s.createRange(),r=(0,n._)(e.previousSibling)?e.previousSibling:e;i.setStartBefore(t),i.setEndBefore(r),l(t,i,!0);const o=(0,n._)(e.nextSibling)?e.nextSibling:e;i.setStartAfter(o),i.setEndAfter(t),l(t,i,!1)}function l(t,e,s){const n=e.extractContents();n.textContent&&(0,r.fy)(n.textContent).length||!n.firstChild||o.i.unwrap(n.firstChild),t.parentNode&&(0,i.RE)(s?o.i.before:o.i.after,t,n)}},71413(t,e,s){"use strict";s.d(e,{_(){return i}}),s(52378),s(62924);class i{setState(t){this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}constructor(t,e){this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}dispatch(t,e){const s=this.transitions[this.getState()][t];if(s){const t=s.call(this,e);return this.setState(t.next),t}throw Error(`invalid action: ${this.getState()}.${""+t}`)}}},95135(t,e,s){"use strict";s.d(e,{e(){return n}});var i=s(9162),r=s(68004),o=s(26978);function n(t,e){let{firstChild:s}=e;for(;s&&!(0,r.c)(s);)if(s=s.nextSibling,!s)return null;return s&&!i.i.next(s,r.c,e)&&(0,o.fB)(t,s,!1)?s:null}},8953(t,e,s){"use strict";s.d(e,{H(){return n}});var i=s(9162),r=s(68004),o=s(26978);function n(t,e,s){const{parentNode:a}=e;return a===s||!i.i.isHTMLElement(a)||i.i.next(e,r.c,a)||i.i.prev(e,r.c,a)?null:t.isElementCommit&&t.elementIsBlock&&!i.i.isBlock(a)?n(t,a,s):!(0,o.fB)(t,a,!1)||i.i.isBlock(a)&&!t.elementIsBlock?t.isElementCommit&&!i.i.isBlock(a)?n(t,a,s):null:a}},74485(t,e,s){"use strict";s.d(e,{Y(){return l},k(){return a}});var i=s(71737),r=s(41240),o=s(21642),n=s(9162);function a(t,e){return!(n.i.isTag(t,"font")||!n.i.isHTMLElement(t)||!Object.keys(e).every((s=>{const n=(0,i.i)(t,s,!0);return""===n&&(""===e[s]||null==e[s])||!(0,r.n)(n)&&""!==n&&!(0,r.n)(e[s])&&(""+(0,o.Zh)(s,e[s])).toLowerCase()===(""+n).toLowerCase()})))}function l(t,e){return!(n.i.isTag(t,"font")||!n.i.isHTMLElement(t)||!Object.keys(e).every((e=>""!==(0,i.i)(t,e,!0))))}s(52378),document.createElement("div").style.color="red",document.createElement("div").style.color="red"},93e3(t,e,s){"use strict";s.d(e,{D_(){return c.D},HB(){return l.H},JL(){return r.J},Mh(){return d.M},QS(){return h.Q},_H(){return n._},e(){return a.e},iN(){return i.i},ig(){return o.i},pe(){return h.p},qb(){return u.qb},re(){return p.r}});var i=s(79982),r=s(62621),o=(s(51738),s(74485),s(76785)),n=s(71413),a=s(95135),l=s(8953),c=s(88381),h=s(90203),u=(s(68004),s(26978)),d=s(13381),p=s(72570);s(11738)},88381(t,e,s){"use strict";s.d(e,{D(){return r}});var i=s(9162);function r(t,e){return!!i.i.closest(t,["style","script"],e)}},68004(t,e,s){"use strict";s.d(e,{c(){return o}});var i=s(9162),r=s(29894);function o(t){return!(!t||i.i.isEmptyTextNode(t)||i.i.isTemporary(t)||(0,r._)(t))}},90203(t,e,s){"use strict";s.d(e,{Q(){return n},p(){return a}});var i=s(86284),r=s(31982),o=(s(52378),s(74485));function n(t,e){return!t.attributes.length&&!(0,r.d)(e)||!(0,r.d)(e)||Object.keys(e).every((s=>"class"===s||"className"===s?t.classList.contains(e[s]):"style"===s?(0,o.k)(t,e[s]):(0,i.attr)(t,s)===e[s]))}function a(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every((t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value))}},26978(t,e,s){"use strict";s.d(e,{Dd(){return l},fB(){return n},qb(){return a}});var i=s(9162),r=s(68004),o=s(74485);function n(t,e,s,n=!0){if(!e||!(0,r.c)(e))return!1;const{element:a,elementIsDefault:l,options:c}=t;if(i.i.isList(e)&&t.elementIsList)return!0;const h=i.i.isTag(e,a);return!(!h||l&&s)||!(!c.attributes?.style||!(n?(0,o.k)(e,c.attributes.style):(0,o.Y)(e,c.attributes.style))||t.elementIsList)||!h&&!s&&l&&i.i.isInlineBlock(e)}function a(t,e,s){return i.i.closest(e,(e=>n(t,e,!0,!1)),s)}function l(t,e){const{element:s,options:i}=t;if(!e||!(0,r.c)(e))return!1;const n=e.nodeName.toLowerCase()===s,a=!(!i.attributes?.style||!(0,o.Y)(e,i.attributes?.style));return n&&a}},62621(t,e,s){"use strict";s.d(e,{J(){return l}});var i=s(9162),r=(s(52378),s(76785)),o=s(41254),n=s(79982),a=s(51738);function l(t,e,s,i){if(!e)return i;const r=e.parentElement;if(!r)return i;const l=s.e.fire(o.IM+"BeforeToggleList",i,t,r);if(void 0!==l)return l;const h=s.e.fire.bind(s.e,o.IM+"AfterToggleList");if(i!==o.Nc){const l=(0,n.i)(t,e.parentElement,s,o._X,!0)===o.Ve;if(i===o.J5||l||r.tagName.toLowerCase()!==t.element){const i=c(o.J5,r,e,s,t),n=(0,a.h)(t,i,s);return h(o.J5,n,t),o.J5}}const u=c(o.Nc,r,e,s,t);return h(o.Nc,u,t),o.Nc}function c(t,e,s,n,a){return n.e.fire(o.IM+"BeforeUnwrapList",t,e,a)||((0,r.i)(e,s,n),i.i.unwrap(s.parentElement),i.i.replace(s,n.o.enter,n.createInside))}},51738(t,e,s){"use strict";s.d(e,{h(){return n}});var i=s(46879),r=s(41254),o=s(93e3);function n(t,e,s){const n=s.e.fire(r.IM+"BeforeWrapList",r.J5,e,t)??i.i.replace(e,"li",s.createInside),a=n.previousElementSibling,l=n.nextElementSibling;let c=i.i.isTag(a,t.element)?a:null;return c??=i.i.isTag(l,t.element)?l:null,i.i.isList(c)&&(0,o.QS)(c,t.options.attributes)||(c=s.createInside.element(t.element),(0,o.iN)(t,c,s,r._X),i.i.before(n,c)),a===c?i.i.append(c,n):i.i.prepend(c,n),i.i.isTag(c.nextElementSibling,t.element)&&(0,o.pe)(c,c.nextElementSibling)&&(i.i.append(c,Array.from(c.nextElementSibling.childNodes)),i.i.safeRemove(c.nextElementSibling)),s.e.fire(r.IM+"AfterWrapList",r.Qu,c,t),c}},79982(t,e,s){"use strict";s.d(e,{i(){return p}});var i=s(86284),r=s(71737),o=s(25920),n=s(13929),a=s(21642),l=s(31982),c=s(9162),h=s(41254),u=s(79102);s(78157);const d="toggleAttributes";function p(t,e,s,p,m=!1){if(!m&&t.isApplied(e,d))return p;!m&&t.setApplied(e,d);const{attributes:g}=t.options;return g&&(0,l.d)(g)>0&&Object.keys(g).forEach((l=>{const d=g[l];switch(l){case"style":p=((t,e,s,i,l,d)=>(Object.keys(s).forEach((p=>{const m=i.style.getPropertyValue((0,n.G)(p)),g=s[p];if(""!==m||null!=g){if(((t,e,s)=>{const i=t.create.element(e.tagName.toLowerCase());i.style.cssText=e.style.cssText;const n=(t=>{if(void 0!==(0,o.q)(t,"shadowRoot"))return(0,o.q)(t,"shadowRoot");const e=(0,u.ZO)(t),s=document.createElement("iframe");(0,r.i)(s,{width:0,height:0,position:"absolute",border:0}),s.src="about:blank",e.appendChild(s);const i=s.contentWindow?.document,n=i?i.body:t.od.body;return(0,o.q)(t,"shadowRoot",n),n})(t);n.appendChild(i);const a=(0,r.i)(i,s);return c.i.safeRemove(i),a})(e,i,p)===(0,a.Zh)(p,g)){if(!m)return;return!l&&(0,r.i)(i,p,null),void(d=f(t,i,d=h.p))}d=h.Ve,l||((0,r.i)(i,p,g),d=f(t,i,d))}})),d))(t,s,d,e,m,p);break;case"className":case"class":p=((t,e,s,r,o)=>{const n=t.e.fire.bind(t.e,h.IM+"AfterToggleAttribute");return s.classList.contains(""+e)?(r=h.p,o||(s.classList.remove(e),0===s.classList.length&&((0,i.attr)(s,"class",null),n(r,s,"class",null)))):(r=h.Ve,o||(s.classList.add(e),n(r,s,"class",e))),r})(s,d,e,p,m);break;default:p=((t,e,s,r,o,n)=>{const a=t.e.fire.bind(t.e,h.IM+"AfterToggleAttribute");return(0,i.attr)(s,r)===e?(!o&&(0,i.attr)(s,r,null),n=h.p,!o&&a(n,s,r,e),n):(n=h.Ve,o||((0,i.attr)(s,r,e),a(n,s,r,e)),n)})(s,d,e,l,m,p)}})),p}function f(t,e,s){return(0,i.attr)(e,"style")||((0,i.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(c.i.unwrap(e),s=h.Nc)),s}},13381(t,e,s){"use strict";s.d(e,{M(){return a}});var i=s(9162),r=s(86284),o=s(74485),n=s(26978);function a(t,e){const s=[],a=[];let l;const c=t.options.attributes?.style;if(e.firstChild){const h=i.i.eachGen(e);let u=h.next();for(;!u.done;){const e=u.value;!(0,n.fB)(t,e,!0)||c&&!(0,o.Y)(e,c)?c&&(0,n.Dd)(t,e)?(void 0===l&&(l=!1),a.push((()=>{(0,r.css)(e,Object.keys(c).reduce(((t,e)=>(t[e]=null,t)),{})),(0,r.attr)(e,"style")||(0,r.attr)(e,"style",null),(0,r.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||s.push(e)}))):i.i.isEmptyTextNode(e)||void 0===l&&(l=!1):(void 0===l&&(l=!0),s.push(e)),u=h.next()}}return a.forEach((t=>t())),s.forEach(i.i.unwrap),!!l}},11738(t,e,s){"use strict";s.d(e,{h(){return o}});var i=s(9162),r=s(29894);function o(t,e,s){const o=s.editor,n=s.createInside,a=(t,e="previousSibling")=>{let n=t,a=t;for(;a&&!(0,r._)(a)&&!i.i.isTag(a,s.o.enter)&&(n=a,a=a[e]?a[e]:a.parentNode&&!i.i.isBlock(a.parentNode)&&a.parentNode!==o?a.parentNode:null,!i.i.isBlock(a)););return n},l=a(e),c=a(e,"nextSibling"),h=s.s.createRange();h.setStartBefore(l),h.setEndAfter(c);const u=h.extractContents(),d=n.element(t.element);return d.appendChild(u),i.i.safeInsertNode(h,d),t.elementIsBlock&&i.i.isEmpty(d)&&!i.i.isTag(d.firstElementChild,"br")&&d.appendChild(n.element("br")),d}},72570(t,e,s){"use strict";s.d(e,{r(){return a}});var i=s(46879),r=s(23144),o=s(11738),n=s(51738);function a(t,e,s){const a=((t,e,s)=>t.elementIsBlock?i.i.up(e,(t=>i.i.isBlock(t)&&!i.i.isTag(t,l)),s.editor)||(0,o.h)(t,e,s):((0,r.L)(e,"size",null),e))(t,e,s);return t.elementIsList?(0,n.h)(t,a,s):i.i.replace(a,t.element,s.createInside,!0)}const l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},86314(t,e,s){"use strict";s.d(e,{Y(){return n}});var i=s(93e3),r=s(77532),o=s(41254);function n(t,e){const{s,editor:n}=t;n.firstChild?.normalize();const a=s.fakes(),l=t.s.wrapInTagGen(a);let c=l.next();if(c.done)return;let h={collapsed:s.isCollapsed(),mode:o._X,element:c.value,next:r.$.START,jodit:t,style:e};for(;c&&!c.done;){const t=new i._H(r.$.START,r.d);for(h.element=c.value;t.getState()!==r.$.END;)h=t.dispatch("exec",h);c=l.next()}s.restoreFakes(a)}},41254(t,e,s){"use strict";s.d(e,{IM(){return d},J5(){return u},Nc(){return a},Qu(){return n},RP(){return p},Ve(){return l},_X(){return h},p(){return c}});var i=s(62924),r=s(33683),o=s(86314);const n="wrap",a="unwrap",l="change",c="unset",h="initial",u="replace",d="commitStyle";class p{isApplied(t,e){const s=this.__applyMap.get(t);return!!s&&s[e]}setApplied(t,e){const s=this.__applyMap.get(t)??{};s[e]=!0,this.__applyMap.set(t,s)}get elementIsList(){return!(!this.options.element||!i.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!(!this.options.element||!i.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}constructor(t){this.options=t,this.__applyMap=new WeakMap}apply(t){const{hooks:e}=this.options;try{e&&Object.keys(e).forEach((s=>{t.e.on((0,r.e)(d+"_"+s),e[s])})),(0,o.Y)(t,this)}finally{e&&Object.keys(e).forEach((s=>{t.e.off((0,r.e)(d+"_"+s),e[s])})),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}}},77532(t,e,s){"use strict";s.d(e,{$(){return a},d(){return l}});var i=s(64815),r=s(93e3),o=s(9162),n=(s(52378),s(62924));const a={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"},l={[a.START]:{exec(t){const{element:e,jodit:s,style:n,mode:l,collapsed:c}=t;if((0,r.D_)(e,s.editor)||!c&&o.i.isEmptyContent(e))return{...t,next:a.END};const h=(0,r.HB)(n,e,s.editor)||(0,r.e)(n,e);if(h)return{...t,next:a.ELEMENT,element:h};const u=(0,r.qb)(n,e,s.editor);return n.elementIsList&&o.i.isList(u)?{...t,next:a.LIST}:u?{...t,next:a.EXTRACT}:{...t,next:l!==i.Nc?a.UNWRAP_CHILDREN:a.END}}},[a.LIST]:{exec(t){const{element:e,jodit:s,mode:r}=t;if(r!==i._X&&r!==i.Nc&&r!==i.J5)return{...t,next:a.END};const l=o.i.closest(e,"li",s.editor);return l&&o.i.closest(e,n.LIST_TAGS,s.editor)?{...t,element:l,next:a.TOGGLE_LIST}:{...t,next:a.END}}},[a.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,r.JL)(t.style,t.element,t.jodit,t.mode),next:a.END})},[a.EXTRACT]:{exec(t){const{element:e,jodit:s,style:i}=t,o=(0,r.qb)(i,e,s.editor);return i.elementIsBlock||(0,r.ig)(o,e,s),{...t,element:o,next:a.ELEMENT}}},[a.UNWRAP_CHILDREN]:{exec(t){const{element:e,style:s}=t;return(0,r.Mh)(s,e)?{...t,mode:i.Nc,next:a.END}:{...t,next:a.WRAP}}},[a.WRAP]:{exec(t){const{element:e,jodit:s,style:o}=t,n=(0,r.re)(o,e,s);return{...t,next:o.elementIsList?a.END:a.CHANGE,mode:i.Qu,element:n}}},[a.ELEMENT]:{exec(t){const{style:e,element:s,jodit:n}=t;return(0,r.iN)(e,s,n,i._X,!0)!==i._X?{...t,next:a.CHANGE}:o.i.isTag(s,e.element)?{...t,next:a.UNWRAP}:{...t,next:a.END}}},[a.CHANGE]:{exec(t){const{style:e,element:s,jodit:n,mode:l}=t,c=(0,r.iN)(e,s,n,t.mode);return l!==i.Qu&&c===i.p&&!s.attributes.length&&o.i.isTag(s,e.element)?{...t,next:a.UNWRAP}:{...t,mode:c,next:a.END}}},[a.UNWRAP]:{exec:t=>t.element.attributes.length&&o.i.isTag(t.element,t.style.element)?{...t,next:a.REPLACE_DEFAULT}:(o.i.unwrap(t.element),{...t,mode:i.Nc,next:a.END})},[a.REPLACE_DEFAULT]:{exec:t=>(o.i.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:i.J5,next:a.END})},[a.END]:{exec:t=>t}}},65186(t,e,s){"use strict";s.d(e,{L(){return i},P(){return r}});const i=(()=>{let t;return()=>(void 0===t&&(t=(()=>{const t="___Jodit___"+Math.random();try{localStorage.setItem(t,"1");const e="1"===localStorage.getItem(t);return localStorage.removeItem(t),e}catch{}return!1})()),t)})();class r{set(t,e){try{const s=localStorage.getItem(this.rootKey),i=s?JSON.parse(s):{};i[t]=e,localStorage.setItem(this.rootKey,JSON.stringify(i))}catch{}return this}delete(t){try{localStorage.removeItem(this.rootKey)}catch{}return this}get(t){try{const e=localStorage.getItem(this.rootKey),s=e?JSON.parse(e):{};return void 0!==s[t]?s[t]:null}catch{}}exists(t){return null!=this.get(t)}constructor(t){this.rootKey=t}clear(){try{localStorage.removeItem(this.rootKey)}catch{}return this}}},70959(t,e,s){"use strict";s.d(e,{m(){return i}});class i{constructor(){this.data=new Map}set(t,e){return this.data.set(t,e),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}}},81039(t,e,s){"use strict";s.d(e,{Ke(){return i.K}}),s(65186);var i=s(83747)},83747(t,e,s){"use strict";s.d(e,{K(){return a}});var i=s(33683),r=s(65186),o=s(70959);const n="Jodit_";class a{set(t,e){return this.provider.set((0,i.e)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,i.e)(this.prefix+t)),this}get(t){return this.provider.get((0,i.e)(this.prefix+t))}exists(t){return this.provider.exists((0,i.e)(this.prefix+t))}clear(){return this.provider.clear(),this}constructor(t,e){this.provider=t,this.prefix=n,e&&(this.prefix+=e)}static makeStorage(t=!1,e){let s;return t&&(0,r.L)()&&(s=new r.P(n+e)),s||(s=new o.m),new a(s,e)}}},42297(t,e,s){"use strict";s.d(e,{l(){return n}});var i=s(39093),r=s(78157),o=s(87398);class n{dlg(t){const e=new i.Vq({language:this.o.language,shadowRoot:this.o.shadowRoot,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,o.MN)(this,e.container),e.parent=this,e.bindDestruct(this)}confirm(t,e,s){return t=a(t,this),e=a(e,this),i.I4.call(this.dlg({closeOnClickOverlay:!0}),t,e,s)}prompt(t,e,s,r,o){return t=a(t,this),e=a(e,this),r=a(r,this),i.NL.call(this.dlg({closeOnClickOverlay:!0}),t,e,s,r,o)}alert(t,e,s,r){return t=a(t,this),e=a(e,this),i.bZ.call(this.dlg({closeOnClickOverlay:!0}),t,e,s,r)}}function a(t,e){return(0,r.HD)(t)&&!(0,r.FP)(t)&&(t=e.i18n(t)),t}},23839(t,e,s){"use strict";s.d(e,{F(){return r}});var i=s(24174);class r{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,i.q)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},53795(t,e,s){"use strict";s.d(e,{$(){return r}});var i=s(41240);class r{afterSetMod(t,e){}setMod(t,e,s){t=t.toLowerCase();const r=this.mods[t];if(r===e)return this;const o=`${this.componentName}_${t}_`,n=(s||this.container).classList;return null!=r&&n.remove(`${o}${(""+r).toLowerCase()}`),!(0,i.n)(e)&&""!==e&&n.add(`${o}${(""+e).toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},22003(t,e,s){"use strict";s.d(e,{Yc(){return p},y3(){return f},zx(){return m}});var i=s(97582),r=s(18970),o=s(9162),n=s(86284),a=s(2926),l=s(69099),c=s(30052),h=s(7628),u=s(13666),d=s(74028);const p=()=>({size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});let f=class t extends r.u{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){return this.getElm("text")}get icon(){return this.getElm("icon")}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,n.attr)(this.container,"type",this.state.type)}updateSize(){const t=this.closest(h.b);t&&(this.state.size=t.buttonSize)}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,n.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,n.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,n.attr)(this.container,"data-ref",this.state.name),(0,n.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,n.attr)(this.container,"title",this.state.tooltip),(0,n.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,n.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const t=this.get("j.o.textIcons");if(!0===t||(0,l.m)(t)&&t(this.state.name))return;o.i.detach(this.icon);const e=c.J.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){const{activeElement:t}=this.od;return!(!t||!o.i.isOrContains(this.container,t))}createContainer(){const t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),s=this.j.c.span(t+"__icon"),i=this.j.c.span(t+"__text");return e.appendChild(s),e.appendChild(i),e}constructor(t,e){super(t),this.isButton=!0,this.state=p(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(d.n.ready,(()=>{this.setState(e)}))}destruct(){return 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((e=>e.call(this,t)))}};function m(t,e,s,i){const r=new f(t);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,a.H)(e)?(r.state.icon.name=e,r.state.name=e,i&&(r.state.variant=i),s&&(r.state.text=s)):r.setState(e),r}(0,i.gn)([u.cache],f.prototype,"text",null),(0,i.gn)([u.cache],f.prototype,"icon",null),(0,i.gn)([(0,u.watch)("state.size",{immediately:!1})],f.prototype,"onChangeSize",null),(0,i.gn)([(0,u.watch)("state.type",{immediately:!1})],f.prototype,"onChangeType",null),(0,i.gn)([(0,u.watch)("parentElement")],f.prototype,"updateSize",null),(0,i.gn)([(0,u.watch)("state.variant",{immediately:!1})],f.prototype,"onChangeStatus",null),(0,i.gn)([(0,u.watch)("state.text",{immediately:!1})],f.prototype,"onChangeText",null),(0,i.gn)([(0,u.watch)("state.text",{immediately:!1})],f.prototype,"onChangeTextSetMode",null),(0,i.gn)([(0,u.watch)("state.disabled")],f.prototype,"onChangeDisabled",null),(0,i.gn)([(0,u.watch)("state.activated")],f.prototype,"onChangeActivated",null),(0,i.gn)([(0,u.watch)("state.name",{immediately:!1})],f.prototype,"onChangeName",null),(0,i.gn)([(0,u.watch)("state.tooltip",{immediately:!1})],f.prototype,"onChangeTooltip",null),(0,i.gn)([(0,u.watch)("state.tabIndex",{immediately:!1})],f.prototype,"onChangeTabIndex",null),(0,i.gn)([(0,u.watch)("state.icon",{immediately:!1})],f.prototype,"onChangeIcon",null),(0,i.gn)([u.cacheHTML],f.prototype,"createContainer",null),(0,i.gn)([(0,u.watch)("button:click")],f.prototype,"__onActionFire",null),f=(0,i.gn)([u.component],f)},40740(t,e,s){"use strict";s.d(e,{B(){return a}});var i=s(97582),r=s(82622),o=s(75042),n=s(22003);s(52378);let a=class t extends r.q{className(){return"UIButtonGroup"}render(t){return`<div>\n\t\t\t<div class="&__label">~${t.label}~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>`}appendChildToContainer(t){this.getElm("options").appendChild(t)}constructor(t,e={radio:!0}){super(t,e.options?.map((e=>{const s=new n.y3(t,{text:e.text,value:e.value,variant:"primary"});return s.onAction((()=>{this.select(e.value)})),s})),e),this.options=e,this.select(e.value??0)}select(t){this.elements.forEach(((e,s)=>{s===t||e.state.value===t?e.state.activated=!0:this.options.radio&&(e.state.activated=!1)}));const e=this.elements.filter((t=>t.state.activated)).map((t=>({text:t.state.text,value:t.state.value})));this.jodit.e.fire(this,"select",e),this.options.onChange?.(e)}};a=(0,i.gn)([o.w],a)},64856(t,e,s){"use strict";s.d(e,{BO(){return r.B},Ne(){return o.N},Yc(){return i.Yc},y3(){return i.y3},zx(){return i.zx}});var i=s(22003),r=s(40740),o=s(13878)},13878(t,e,s){"use strict";s.d(e,{N(){return d}});var i,r=s(97582),o=s(86284),n=s(79102),a=s(13666),l=s(18970),c=s(46879),h=s(31080),u=s(2581);let d=i=class t extends l.u{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}constructor(t){super(t),this.__isOpened=!1,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||t.hookStatus(u.n$.ready,(()=>{(0,n.ZO)(t,i).appendChild(this.container),t.e.on(t.container,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0})}))}__addListenersOnClose(){if(this.__listenClose)return;this.__listenClose=!0;const t=this.j;t.e.on(t.ow,"scroll.tooltip",this.__hide).on(t.container,"mouseleave.tooltip",this.__hide).on(["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","closeAllPopups.tooltip"],this.__hide).on(t.container,"mouseleave",this.__onMouseLeave,{capture:!0})}__removeListenersOnClose(){if(!this.__listenClose)return;this.__listenClose=!1;const t=this.j;t.e.off(t.ow,"scroll.tooltip",this.__hide).off(["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","closeAllPopups.tooltip"],this.__hide).off(t.container,"mouseleave.tooltip",this.__onMouseLeave)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!c.i.isHTMLElement(t.target))return;const e=(0,o.attr)(t.target,"aria-label");if(!e)return;if((0,o.attr)(t.target,"disabled"))return;if(!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;const s=(0,h.F)(t.target);this.__addListenersOnClose(),this.__delayOpen((()=>({x:s.left+s.width/2,y:s.top+s.height})),e)}__delayOpen(t,e){const s=this.j.o.showTooltipDelay||this.j.defaultTimeout;this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout),this.__delayShowTimeout=this.j.async.setTimeout((()=>this.__open(t,e)),{timeout:s,label:"tooltip"})}__open(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e,this.__isOpened=!0,this.__setPosition(t)}__setPosition(t){const e=t();(0,o.css)(this.container,{left:e.x,top:e.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnClose(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),(0,o.css)(this.container,{left:-5e3}))}__hideDelay(){this.__isOpened&&(this.j.async.clearTimeout(this.__delayShowTimeout),this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.j.e.off(this.j.container,"mouseenter",this.__onMouseEnter),this.__hide(),super.destruct()}};(0,r.gn)([a.autobind],d.prototype,"__onMouseLeave",null),(0,r.gn)([a.autobind],d.prototype,"__onMouseEnter",null),(0,r.gn)([a.autobind],d.prototype,"__delayOpen",null),(0,r.gn)([a.autobind],d.prototype,"__hide",null),(0,r.gn)([a.autobind],d.prototype,"__hideDelay",null),d=i=(0,r.gn)([a.component],d)},18970(t,e,s){"use strict";s.d(e,{u(){return d}});var i,r=s(97582),o=s(2581),n=s(9162),a=s(53795),l=s(23839),c=s(2926),h=s(30052),u=s(17174);let d=i=class t extends o.Hr{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",(()=>this.destruct())),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){const e="object"==typeof t?e=>e===t:e=>o.wA.isInstanceOf(e,t);let s=this.__parentElement;for(;s;){if(e(s))return s;s=!s.parentElement&&s.container.parentElement?i.closestElement(s.container.parentElement,i):s.parentElement}return null}static closestElement(t,e){const s=n.i.up(t,(t=>{if(t){const{component:s}=t;return s&&o.wA.isInstanceOf(s,e)}return!1}));return s?s?.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){const e=this.render(t);if((0,c.H)(e)){const t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,((t,e)=>h.J.get(e)||"")).replace(/&__/g,this.componentName+"__").replace(/~([^~]+?)~/g,((t,e)=>this.i18n(e))))}constructor(t,e){super(t),this.name="",this.__parentElement=null,this.mods={},this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}destruct(){return n.i.safeRemove(this.container),this.parentElement=null,super.destruct()}};d=i=(0,r.gn)([(0,u.s)(a.$,l.F)],d)},15543(t,e,s){"use strict";s.d(e,{e(){return a}});var i=s(97582),r=s(82622),o=s(86284),n=s(75042);let a=class t extends r.q{className(){return"UIBlock"}constructor(t,e,s={align:"left"}){super(t,e),this.options=s,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,o.attr)(this.container,"data-ref",s.ref),(0,o.attr)(this.container,"ref",s.ref)}};a=(0,i.gn)([n.w],a)},99048(t,e,s){"use strict";s.d(e,{x(){return h}});var i=s(97582),r=s(82622),o=s(87451),n=s(58942),a=s(86284),l=s(75042),c=s(91003);let h=class t extends r.q{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){const t=this.allChildren.filter((t=>c.w.isInstanceOf(t,o.u)));for(const e of t)if(!e.validate())return!1;const e=this.allChildren.filter((t=>c.w.isInstanceOf(t,n.C)));for(const t of e)if(!t.validate())return!1;return!0}onSubmit(t){this.j.e.on(this.container,"submit",(()=>{const e=this.allChildren.filter((t=>c.w.isInstanceOf(t,o.u)));return!!this.validate()&&(t(e.reduce(((t,e)=>(t[e.state.name]=e.value,t)),{})),!1)}))}createContainer(){const t=this.j.c.element("form");return t.classList.add(this.componentName),(0,a.attr)(t,"dir",this.j.o.direction||"auto"),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}};h=(0,i.gn)([l.w],h)},79e3(t,e,s){"use strict";s.d(e,{Cj(){return r.Cj},GJ(){return r.GJ},Z(){return r.Z},eC(){return o.e},mA(){return r.mA},u3(){return r.u3},x4(){return i.x}});var i=s(99048),r=s(75878),o=s(15543)},92919(t,e,s){"use strict";s.d(e,{G(){return l}});var i,r=s(97582),o=s(87451),n=s(75042),a=s(13666);let l=i=class t extends o.u{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}constructor(t,e){super(t,e),this.state={...i.defaultState},Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}onChangeStateSize(){const{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}};l.defaultState={...o.u.defaultState,size:5,resizable:!0},(0,r.gn)([(0,a.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=i=(0,r.gn)([n.w],l)},45637(t,e,s){"use strict";s.d(e,{m(){return l}});var i,r=s(97582),o=s(87451),n=s(13666),a=s(9162);let l=i=class t extends o.u{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}constructor(t,e){super(t,{...e,type:"checkbox"}),this.state={...i.defaultState},Object.assign(this.state,e)}onChangeChecked(){this.value=""+this.state.checked,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"))),a.i.after(this.nativeInput,t)):a.i.safeRemove(t)}};l.defaultState={...o.u.defaultState,checked:!1,switch:!1},(0,r.gn)([(0,n.watch)("state.checked"),(0,n.hook)("ready")],l.prototype,"onChangeChecked",null),(0,r.gn)([(0,n.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,r.gn)([(0,n.watch)("state.switch"),(0,n.hook)("ready")],l.prototype,"onChangeSwitch",null),l=i=(0,r.gn)([n.component],l)},21447(t,e,s){"use strict";s.d(e,{Z(){return a}});var i=s(97582),r=s(87451),o=s(75042),n=s(22003);let a=class t extends r.u{className(){return"UIFileInput"}createContainer(t){this.button=new n.y3(this.j,{icon:{name:"plus"}});const{container:e}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(t));const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),e.classList.add(this.componentName),e.appendChild(s),e}createNativeInput(t){return this.j.create.fromHTML(`<input\n\t\t\ttype="file"\n\t\t\taccept="${t.onlyImages?"image/*":"*"}"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>`)}constructor(t,e){super(t,{type:"file",...e}),this.state={...r.u.defaultState,type:"file",onlyImages:!0}}};a=(0,i.gn)([o.w],a)},75878(t,e,s){"use strict";s.d(e,{Cj(){return n.C},GJ(){return r.G},Z(){return a.Z},mA(){return o.m},u3(){return i.u}});var i=s(87451),r=s(92919),o=s(45637),n=s(58942),a=s(21447)},87451(t,e,s){"use strict";s.d(e,{u(){return d}});var i,r=s(97582),o=s(18970),n=s(86284),a=s(24174),l=s(9162),c=s(13666),h=s(30052),u=s(13839);let d=i=class t extends o.u{className(){return"UIInput"}onChangeClear(){this.state.clearButton?l.i.after(this.nativeInput,this.clearButton):l.i.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;const t=this.nativeInput,{name:e,icon:s,type:i,ref:r,required:o,placeholder:a,autocomplete:c,label:u}=this.state;(0,n.attr)(t,"name",e),(0,n.attr)(t,"type",i),(0,n.attr)(t,"data-ref",r||e),(0,n.attr)(t,"ref",r||e),(0,n.attr)(t,"required",o||null),(0,n.attr)(t,"autocomplete",c?null:"off"),(0,n.attr)(t,"placeholder",a?this.j.i18n(a):""),s&&h.J.exists(s)?(l.i.before(t,this.icon),this.icon.innerHTML=h.J.get(s)):l.i.safeRemove(this.icon),u?(l.i.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(u)):l.i.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(u.g.required),this.state.validators?.forEach((t=>{const e=u.g[t];e&&this.validators.add(e)}))}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):l.i.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){const t=""+this.state.value;t!==this.value&&(this.value=t)}onChangeValue(){const{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){return this.error="",(0,a.q)(this.validators).every((t=>t(this)))}createContainer(t){const e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),this.wrapper.appendChild(s),e.appendChild(this.wrapper),(0,n.attr)(s,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}constructor(t,e){super(t,e),this.label=this.j.c.span(this.getFullElName("label")),this.icon=this.j.c.span(this.getFullElName("icon")),this.clearButton=this.j.c.span(this.getFullElName("clear"),h.J.get("cancel")),this.state={...i.defaultState},this.__errorBox=this.j.c.span(this.getFullElName("error")),this.validators=new Set([]),void 0!==e?.value&&(e.value=""+e.value),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",(t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()})).on(this.nativeInput,"input",(()=>{this.state.clearButton=!!this.value.length})),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",(()=>{this.onChangeFocus()})).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}};d.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},(0,r.gn)([(0,c.watch)("state.clearButton")],d.prototype,"onChangeClear",null),(0,r.gn)([(0,c.watch)("state.className")],d.prototype,"onChangeClassName",null),(0,r.gn)([(0,c.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,c.debounce)()],d.prototype,"onChangeState",null),(0,r.gn)([(0,c.watch)("state.value")],d.prototype,"onChangeStateValue",null),(0,r.gn)([c.autobind],d.prototype,"onChangeValue",null),d=i=(0,r.gn)([c.component],d)},58942(t,e,s){"use strict";s.d(e,{C(){return c}});var i,r=s(97582),o=s(23144),n=s(75042),a=s(87451),l=s(13839);let c=i=class t extends a.u{className(){return"UISelect"}createContainer(t){const e=super.createContainer(t),{j:s}=this,{nativeInput:i}=this,r=()=>s.create.element("option");if(void 0!==t.placeholder){const e=r();e.value="",e.text=s.i18n(t.placeholder),i.add(e)}return t.options?.forEach((t=>{const e=r();e.value=""+t.value,e.text=s.i18n(t.text),i.add(e)})),t.size&&t.size>0&&(0,o.L)(i,"size",t.size),t.multiple&&(0,o.L)(i,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.g.required),this.validators.add(l.s.C))}constructor(t,e){super(t,e),this.state={...i.defaultState},Object.assign(this.state,e)}};c.defaultState={...a.u.defaultState,options:[],size:1,multiple:!1},c=i=(0,r.gn)([n.w],c)},13839(t,e,s){"use strict";s.d(e,{g(){return i},s(){return r}});var i=s(72209),r=s(50251)},72209(t,e,s){"use strict";s.r(e),s.d(e,{required(){return o},url(){return n}});var i=s(62268),r=s(76562);const o=t=>!!(0,r.fy)(t.value).length||(t.error="Please fill out this field",!1),n=t=>!!(0,i.P)((0,r.fy)(t.value))||(t.error="Please enter a web address",!1)},50251(t,e,s){"use strict";s.d(e,{C(){return r}});var i=s(76562);const r=t=>!!(0,i.fy)(t.value).length||(t.error="Please fill out this field",!1)},82622(t,e,s){"use strict";s.d(e,{q(){return h}});var i,r=s(97582),o=s(18970),n=s(13666),a=s(76974),l=(s(52378),s(9162)),c=s(91003);let h=i=class t extends o.u{className(){return"UIGroup"}get allChildren(){const t=[],e=[...this.elements];for(;e.length;){const s=e.shift();(0,a.isArray)(s)?e.push(...s):c.w.isInstanceOf(s,i)?e.push(...s.elements):s&&t.push(s)}return t}update(){this.elements.forEach((t=>t.update())),this.setMod("size",this.buttonSize)}append(t,e){return(0,a.isArray)(t)?(t.forEach((t=>this.append(t,e))),this):(this.elements.push(t),t.name&&t.container.classList.add(this.getFullElName(t.name)),e?this.getElm(e).appendChild(t.container):this.appendChildToContainer(t.container),t.parentElement=this,this)}afterSetMod(t,e){this.syncMod&&this.elements.forEach((s=>s.setMod(t,e)))}appendChildToContainer(t){this.container.appendChild(t)}remove(t){const e=this.elements.indexOf(t);return-1!==e&&(this.elements.splice(e,1),l.i.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach((t=>t.destruct())),this.elements.length=0,this}constructor(t,e,s){super(t,s),this.options=s,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach((t=>t&&this.append(t))),s?.name&&(this.name=s.name)}destruct(){return this.clear(),super.destruct()}};(0,r.gn)([(0,n.watch)("buttonSize")],h.prototype,"update",null),h=i=(0,r.gn)([n.component],h)},27503(t,e,s){"use strict";s.d(e,{WT(){return n.W},bz(){return r.b},lU(){return o.l},qe(){return i.q}});var i=s(82622),r=s(7628),o=s(33127),n=s(96489)},7628(t,e,s){"use strict";s.d(e,{b(){return f}});var i=s(97582),r=s(91640),o=s(13666),n=s(82622),a=s(33127),l=s(96489),c=s(22003),h=s(79392),u=s(90160),d=s(83893),p=s(91003);let f=class t extends n.q{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}constructor(t){super(t),this.mode="horizontal",this.removeButtons=[]}makeGroup(){return new n.q(this.jodit)}get buttons(){return this.allChildren.filter((t=>p.w.isInstanceOf(t,c.y3)))}getButtonsNames(){return this.buttons.map((t=>t instanceof c.y3&&t.state.name||"")).filter((t=>""!==t))}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){t=(0,d.C)(t),this.clear();let s,i=!1,o=this.makeGroup();this.append(o),o.setMod("line",!0);const n=t=>{let r=null;switch(t.name){case"\n":o=this.makeGroup(),o.setMod("line",!0),s=this.makeGroup(),o.append(s),this.append(o);break;case"|":i||(i=!0,r=new a.l(this.j));break;case"---":{s.setMod("before-spacer",!0);const t=new l.W(this.j);o.append(t),s=this.makeGroup(),o.append(s),i=!1;break}default:i=!1,r="select"===t.component?this.makeSelect(t,e):this.makeButton(t,e)}r&&(s||(s=this.makeGroup(),o.append(s)),s.append(r))},c=t=>!this.removeButtons.includes(t.name);return t.forEach((t=>{if((0,h.A)(t)){const e=t.buttons.filter((t=>t));e.length&&(s=this.makeGroup(),s.setMod("separated",!0).setMod("group",t.group),o.append(s),(0,r.Q)(e,this.j.o.controls).filter(c).forEach(n))}else{s||(s=this.makeGroup(),o.append(s));const e=(0,u.Y)(t,this.j.o.controls);c(e)&&n(e)}})),this.update(),this}makeSelect(t,e){throw Error("Not implemented behaviour")}makeButton(t,e){return new c.y3(this.j,{name:t.name})}};(0,i.gn)([(0,o.watch)("mode"),(0,o.hook)("ready")],f.prototype,"__onChangeMode",null),f=(0,i.gn)([o.component],f)},33127(t,e,s){"use strict";s.d(e,{l(){return n}});var i=s(97582),r=s(18970),o=s(75042);let n=class t extends r.u{className(){return"UISeparator"}};n=(0,i.gn)([o.w],n)},96489(t,e,s){"use strict";s.d(e,{W(){return n}});var i=s(97582),r=s(18970),o=s(75042);let n=class t extends r.u{className(){return"UISpacer"}};n=(0,i.gn)([o.w],n)},79392(t,e,s){"use strict";s.d(e,{A(){return r},q(){return o}});var i=s(63738);const r=t=>(0,i.k)(t.buttons);function o(t,e){const s=e.getRegisteredButtonGroups();return new Set(t.reduce(((t,e)=>(r(e)?t=t.concat([...e.buttons,...s[e.group]??[]]):t.push(e),t)),[]))}},90160(t,e,s){"use strict";s.d(e,{Y(){return o},z(){return n}});var i=s(76974),r=s(37446);function o(t,e){let s;return e||(e=r.D.defaultOptions.controls),(0,i.isString)(t)?s=n(t,e)||{name:t,command:t,tooltip:t}:(s={name:"empty",...(0,i.ConfigFlatten)(t)},void 0!==e[s.name]&&(s={...(0,i.ConfigFlatten)(e[s.name]),...(0,i.ConfigFlatten)(s)})),s}function n(t,e){let[s,r]=t.split(/\./),o=e;null!=r?void 0!==e[s]&&(o=e[s]):r=s;const n=o[r]?.list;return o[r]?{name:r,...(0,i.ConfigFlatten)(o[r]),list:(0,i.isArray)(n)?n.reduce(((t,e)=>(t[e]=e,t)),{}):n}:void 0}},91640(t,e,s){"use strict";s.d(e,{Q(){return a}});var i=s(90160),r=s(37446),o=s(63738),n=s(86284);function a(t,e){return((0,o.k)(t)?t:(0,n.keys)(t,!1).map((e=>(0,n.ConfigProto)({name:e},t[e]||{})))).map((t=>(0,i.Y)(t,e||r.D.defaultOptions.controls)))}},30052(t,e,s){"use strict";s.d(e,{J(){return o}});var i=s(71737),r=s(76974);s(62924);class o{static getIcon(t){return/<svg/i.test(t)?t:o.icons[t]||o.icons[t.replace(/-/g,"_")]||o.icons[t.replace(/_/g,"-")]||o.icons[(0,r.camelCase)(t)]||o.icons[(0,r.kebabCase)(t)]||o.icons[t.toLowerCase()]}static exists(t){return void 0!==this.getIcon(t)}static get(t,e="<span></span>"){return this.getIcon(t)||e}static set(t,e){return this.icons[t.replace("_","-")]=e,this}static makeIcon(t,e){if(!e)return;let s;const{name:r,iconURL:n,fill:a}=e,l=r.replace(/[^a-zA-Z0-9]/g,"_");let c;/<svg/.test(r)||(c=t.o.getIcon?.(r,l));const h=`${r}${n}${a}${c??""}`;if(t.o.cache&&this.__cache.has(h))return this.__cache.get(h)?.cloneNode(!0);if(n)s=t.c.span(),(0,i.i)(s,"backgroundImage","url("+n.replace("{basePath}",t?.basePath||"")+")");else{const e=c||o.get(r,"")||t.o.extraIcons?.[r];e&&(s=t.c.fromHTML(e.trim()),/^<svg/i.test(r)||s.classList.add("jodit-icon_"+l))}return s&&(s.classList.add("jodit-icon"),s.style.fill=a,t.o.cache&&this.__cache.set(h,s.cloneNode(!0))),s}}o.icons={},o.__cache=new Map},14712(t,e,s){"use strict";s.d(e,{BO(){return r.BO},Cj(){return a.Cj},GI(){return o.G},GJ(){return a.GJ},JO(){return l.J},Ne(){return r.Ne},WT(){return n.WT},Yc(){return r.Yc},Z(){return a.Z},bz(){return n.bz},eC(){return a.eC},ko(){return c.k},lU(){return n.lU},mA(){return a.mA},qe(){return n.qe},u1(){return i.u},u3(){return a.u3},x4(){return a.x4},y3(){return r.y3},zx(){return r.zx}});var i=s(18970),r=s(64856),o=s(8855),n=s(27503),a=s(79e3),l=s(30052),c=s(4892)},8855(t,e,s){"use strict";s.d(e,{G(){return i.G}});var i=s(80397)},80397(t,e,s){"use strict";s.d(e,{G(){return d}});var i=s(97582),r=s(9162),o=s(76974),n=(s(52378),s(82622)),a=s(18970),l=s(13666),c=s(91003),h=s(79102);const u=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class d extends n.q{className(){return"Popup"}appendChildToContainer(t){this.getElm("content").appendChild(t)}updateParentElement(t){return t!==this&&c.w.isInstanceOf(t,d)&&(this.__childrenPopups.forEach((e=>{!t.closest(e)&&e.isOpened&&e.close()})),this.__childrenPopups.has(t)||this.j.e.on(t,"beforeClose",(()=>{this.__childrenPopups.delete(t)})),this.__childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){if(this.allChildren.length)throw Error("Remove children");if(c.w.isInstanceOf(t,a.u))this.append(t);else{const e=(0,o.isString)(t)?this.j.c.fromHTML(t):t;this.appendChildToContainer(e)}return this.updatePosition(),this}open(t,e=!1,s){if((0,o.markOwner)(this.jodit,this.container),this.container.classList.add("jodit_theme_"+this.jodit.o.theme),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=e?this.getKeepBound(t):t,s)s.appendChild(this.container);else{const t=(0,h.ZO)(this.jodit,d);s!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;const t=t=>{const e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(""+e,10)),!0)},{j:e}=this;if(t(e))return;let s=this.parentElement;for(;s;){if(t(e))return;if(s.container.style.zIndex)return void this.setZIndex(1+parseInt(""+s.container.style.zIndex,10));if(!s.parentElement&&s.container.parentElement){const t=a.u.closestElement(s.container.parentElement,a.u);if(t){s=t;continue}}s=s.parentElement}}getKeepBound(t){const e=t(),s=this.od.elementFromPoint(e.left,e.top);if(!s)return t;const i=r.i.isHTMLElement(s)?s:s.parentElement,n=(0,o.position)(i,this.j);return()=>{const e=t(),s=(0,o.position)(i,this.j);return{...e,top:e.top+(s.top-n.top),left:e.left+(s.left-n.left)}}}updatePosition(){if(!this.isOpened)return this;const[t,e]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,o.position)(this.container,this.j));return this.setMod("strategy",e),(0,o.css)(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach((t=>t.updatePosition())),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(t,e,s,i=this.strategy){const r={left:t.left,right:t.left-(s.width-t.width)},n={bottom:t.top+t.height,top:t.top-s.height},a=Object.keys(r).reduce(((t,e)=>t.concat(Object.keys(n).map((t=>`${e}${(0,o.ucfirst)(t)}`)))),[]),l=t=>{const[e,i]=(0,o.kebabCase)(t).split("-");return{left:r[e],top:n[i],width:s.width,height:s.height}},c=t=>{let e=null;return e=d.boxInView(l(i),t)?i:a.find((e=>{if(d.boxInView(l(e),t))return e}))||null,e};let h=c((0,o.position)(this.j.container,this.j));return h&&d.boxInView(l(h),e)||(h=c(e)||h||i),[l(h),h]}static boxInView(t,e){return!(-2>t.top-e.top||-2>t.left-e.left||-2>e.top+e.height-(t.top+t.height)||-2>e.left+e.width-(t.left+t.width))}close(){return this.isOpened?(this.isOpened=!1,this.__childrenPopups.forEach((t=>t.close())),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),r.i.safeRemove(this.container),this):this}__closeOnOutsideClick(t){this.isOpened&&!this.isOwnClick(t)&&this.close()}isOwnClick(t){if(!t.target)return!1;const e=a.u.closestElement(t.target,d);return!(!e||this!==e&&!e.closest(this))}__addGlobalListeners(){const t=this.__throttleUpdatePosition,e=this.ow;h.TB.on("closeAllPopups",this.close),this.smart&&this.j.e.on(u,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),r.i.up(this.j.container,(e=>{e&&this.j.e.on(e,"scroll mousewheel",t)}))}__removeGlobalListeners(){const t=this.__throttleUpdatePosition,e=this.ow;h.TB.off("closeAllPopups",this.close),this.smart&&this.j.e.off(u,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),this.j.container.isConnected&&r.i.up(this.j.container,(e=>{e&&this.j.e.off(e,"scroll mousewheel",t)}))}setZIndex(t){this.container.style.zIndex=""+t}constructor(t,e=!0){super(t),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,o.attr)(this.container,"role","popup")}render(){return'<div>\n\t\t\t<div class="&__content"></div>\n\t\t</div>'}destruct(){return this.close(),super.destruct()}}(0,i.gn)([l.autobind],d.prototype,"updatePosition",null),(0,i.gn)([(0,l.throttle)(10),l.autobind],d.prototype,"__throttleUpdatePosition",null),(0,i.gn)([l.autobind],d.prototype,"close",null),(0,i.gn)([l.autobind],d.prototype,"__closeOnOutsideClick",null)},4892(t,e,s){"use strict";s.d(e,{k(){return o}});var i=s(9162),r=s(18970);class o extends r.u{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return i.i.safeRemove(this.container),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}},94530(t,e,s){"use strict";s.d(e,{C(){return p}});var i=s(97582),r=s(21731),o=s(78157),n=s(8131),a=s(86284),l=s(46879),c=s(55027),h=s(2581),u=s(79392),d=s(13666);class p extends r.G{get toolbarContainer(){return this.o.fullsize||!(0,o.HD)(this.o.toolbar)&&!l.i.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&l.i.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer):(0,a.resolveElement)(this.o.toolbar,this.o.shadowRoot||this.od)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;const t=this.o.buttons?(0,n.C1)(this.o.buttons):[];this.toolbar?.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){this.registeredButtons.add(t);const e=t.group??"other";return this.groupToButtons[e]||(this.groupToButtons[e]=[]),null!=t.position?this.groupToButtons[e][t.position]=t.name:this.groupToButtons[e].push(t.name),this}unregisterButton(t){this.registeredButtons.delete(t);const e=t.group??"other",s=this.groupToButtons[e];if(s){const i=s.indexOf(t.name);-1!==i&&s.splice(i,1),0===s.length&&delete this.groupToButtons[e]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map((t=>(0,u.A)(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t))}constructor(t,e=!1){super(t,e),this.toolbar=(0,c.RP)(this),this.__defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.isJodit=e,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}destruct(){this.isDestructed||(this.setStatus(h.n$.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}}(0,i.gn)([(0,d.watch)(":rebuildToolbar")],p.prototype,"buildToolbar",null),(0,i.gn)([d.autobind],p.prototype,"beforeToolbarBuild",null)},21731(t,e,s){"use strict";s.d(e,{G(){return m}});var i,r=s(97582),o=s(81039),n=s(76974),a=s(62924),l=s(27801),c=s(79102),h=s(13666),u=s(53795),d=s(23839),p=s(47981),f=s(30463);let m=i=class t extends l.Component{get basePath(){return this.o.basePath?this.o.basePath:a.BASE_PATH}get defaultTimeout(){return(0,n.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return o.Ke.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(t){return new f.D(this,t)}get storage(){return o.Ke.makeStorage(!0,this.id)}get c(){return this.create}get container(){return this.__container}set container(t){this.__container=t}get e(){return this.events}get progressbar(){return new l.ProgressBar(this)}get options(){return this.__options}set options(t){this.__options=t}get o(){return this.options}i18n(t,...e){return(0,n.i18n)(t,e,this.options)}toggleFullSize(t){void 0===t&&(t=!this.__isFullSize),t!==this.__isFullSize&&(this.__isFullSize=t,this.e.fire("toggleFullSize",t))}get isLocked(){return""!==this.__whoLocked}lock(t="any"){return!this.isLocked&&(this.__whoLocked=t,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return i.version}static getVersion(){return i.version}initOptions(t){this.options=(0,n.ConfigProto)(t||{},(0,n.ConfigProto)(this.options||{},i.defaultOptions))}initOwners(){this.ownerWindow=this.o.ownerWindow??window}attachEvents(t){if(!t)return;const e=t?.events;e&&Object.keys(e).forEach((t=>this.e.on(t,e[t])))}constructor(t,e=!1){super(),this.isJodit=e,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=i.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=t=>this.isLocked&&this.__whoLocked!==t,this.__modulesInstances=new Map,this.id=""+(new Date).getTime(),this.initOptions(t),this.initOwners(),this.events=new p.vp(this.od),this.create=new l.Create(this.od),this.container=this.c.div("jodit "+this.componentName)}getInstance(t,e){const s=(0,n.isFunction)(t)?t.prototype.className():t,i=this.e.fire((0,n.camelCase)("getInstance_"+s),e);if(i)return i;const r=(0,n.isFunction)(t)?t:c.qz[s],o=this.__modulesInstances;if(!(0,n.isFunction)(r))throw(0,n.error)("Need real module name");if(!o.has(s)){const t=r.prototype instanceof l.ViewComponent?new r(this,e):new r(e);this.components.add(t),o.set(s,t)}return o.get(s)}addDisclaimer(t){this.container.appendChild(t)}beforeDestruct(){this.e.fire(l.STATUSES.beforeDestruct,this),this.components.forEach((t=>{(0,n.isDestructable)(t)&&!t.isInDestruct&&t.destruct()})),this.components.clear()}destruct(){this.isDestructed||(this.progressbar.destruct(),this.message.destruct(),this.events&&(this.events.destruct(),this.events=void 0),this.buffer&&this.buffer.clear(),l.Dom.safeRemove(this.container),super.destruct())}};m.ES=a.ES,m.version=a.APP_VERSION,m.esNext=a.IS_ES_NEXT,m.esModern=a.IS_ES_MODERN,(0,r.gn)([h.cache],m.prototype,"buffer",null),(0,r.gn)([h.cache],m.prototype,"message",null),(0,r.gn)([h.cache],m.prototype,"storage",null),(0,r.gn)([h.cache],m.prototype,"c",null),(0,r.gn)([h.cache],m.prototype,"e",null),(0,r.gn)([h.cache],m.prototype,"progressbar",null),(0,r.gn)([(0,h.hook)(l.STATUSES.beforeDestruct)],m.prototype,"beforeDestruct",null),m=i=(0,r.gn)([(0,h.derive)(u.$,d.F)],m),m.defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"}},44380(t,e,s){"use strict";s.d(e,{h(){return Jodit}});var i,r=s(97582),o=s(37446),n=s(62924),a=s(27801),l=s(76974),c=s(79102),h=s(13666),u=s(42297),d=s(60072);const p="data-jodit-default-style-display",f="data-jodit-default-classes";let Jodit=i=class Jodit extends a.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise((t=>{this.hookStatus("ready",(()=>t(this)))}))}static get ready(){return new Promise((t=>{c.TB.on("oditready",t)}))}get text(){if(this.editor)return this.editor.innerText||"";const t=this.createInside.div();return t.innerHTML=this.getElementValue(),t.innerText||""}get defaultTimeout(){return(0,l.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:o.D.defaultOptions.defaultTimeout}static atom(t){return(0,l.markAsAtomic)(t)}static make(t,e){return new this(t,e)}static isJoditAssigned(t){return t&&(0,l.isJoditObject)(t.component)&&!t.component.isInDestruct}static get defaultOptions(){return o.D.defaultOptions}get createInside(){return new a.Create((()=>this.ed),this.o.createAttributes)}__setPlaceField(t,e){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[t]=e}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(t){this.__setPlaceField("editor",t)}get container(){return this.currentPlace.container}set container(t){this.__setPlaceField("container",t)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(t){this.__setPlaceField("iframe",t)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(t){this.__setPlaceField("editorWindow",t)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(t){this.__setPlaceField("options",t)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){const t=this,e=(0,l.ConfigProto)({defaultTimeout:t.defaultTimeout,uploader:t.o.uploader,language:t.o.language,license:t.o.license,theme:t.o.theme,shadowRoot:t.o.shadowRoot,defaultCallback(e){e.files&&e.files.length&&e.files.forEach(((s,i)=>{const r=e.baseurl+s;e.isImages&&e.isImages[i]?t.s.insertImage(r,null,t.o.imageDefaultWidth):t.s.insertNode(t.createInside.fromHTML(`<a href='${r}' title='${r}'>${r}</a>`))}))}},this.o.filebrowser);return t.getInstance("FileBrowser",e)}get mode(){return this.__mode}set mode(t){this.setMode(t)}getNativeEditorValue(){const t=this.e.fire("beforeGetNativeEditorValue");return(0,l.isString)(t)?t:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(t){const e={value:t};this.e.fire("beforeSetNativeEditorValue",e)||this.editor&&(this.editor.innerHTML=e.value)}get value(){return this.getEditorValue()}set value(t){this.setEditorValue(t),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(t=!0,e){let s;if(s=this.e.fire("beforeGetValueFromEditor",e),void 0!==s)return s;s=this.getNativeEditorValue().replace(n.INVISIBLE_SPACE_REG_EXP(),""),t&&(s=s.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===s&&(s="");const i={value:s};return this.e.fire("afterGetValueFromEditor",i,e),i.value}setEditorValue(t){const e=this.e.fire("beforeSetValueToEditor",t);if(!1===e)return;if((0,l.isString)(e)&&(t=e),!this.editor)return void(void 0!==t&&this.__setElementValue(t));if(!(0,l.isString)(t)&&!(0,l.isVoid)(t))throw(0,l.error)("value must be string");(0,l.isVoid)(t)||this.getNativeEditorValue()===t||this.setNativeEditorValue(t),this.e.fire("postProcessSetEditorValue");const s=this.getElementValue(),i=this.getEditorValue();if(!this.__isSilentChange&&s!==i&&n.SAFE_COUNT_CHANGE_CALL>this.__callChangeCount){this.__setElementValue(i),this.__callChangeCount+=1;try{this.history.__upTick(),this.e.fire("change",i,s),this.e.fire(this.history,"change",i,s)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(t){if(!(0,l.isString)(t))throw(0,l.error)("value must be string");if(this.element!==this.container&&t!==this.getElementValue()){const e={value:t},s=this.e.fire("beforeSetElementValue",e);(0,l.callPromise)(s,(()=>{void 0!==this.element.value?this.element.value=e.value:this.element.innerHTML=e.value,this.e.fire("afterSetElementValue",e)}))}}registerCommand(t,e,s){const i=t.toLowerCase();let r=this.commands.get(i);if(void 0===r&&(r=[],this.commands.set(i,r)),r.push(e),!(0,l.isFunction)(e)){const r=this.o.commandToHotkeys[i]||this.o.commandToHotkeys[t]||e.hotkeys;r&&this.registerHotkeyToCommand(r,i,s?.stopPropagation)}return this}registerHotkeyToCommand(t,e,s=!0){const i=(0,l.asArray)(t).map(l.normalizeKeyAliases).map((t=>t+".hotkey")).join(" ");this.e.off(i).on(i,((t,i)=>(i&&(i.shouldStop=s??!0),this.execCommand(e))))}execCommand(t,e,s,...i){if(this.s.isFocused()||this.s.focus(),this.o.readonly&&!this.o.allowCommandsInReadOnly.includes(t))return;let r;if(t=t.toLowerCase(),r=this.e.fire("beforeCommand"+(0,l.ucfirst)(t),e,s,...i),!1!==r&&(r=this.e.fire("beforeCommand",t,e,s,...i)),!1!==r&&(r=this.__execCustomCommands(t,e,s,...i)),!1!==r){this.s.focus();try{r=this.nativeExecCommand(t,e,s)}catch(t){if(!n.IS_PROD)throw t}}return this.e.fire("afterCommand",t,e,s),this.__imdSynchronizeValues(),r}nativeExecCommand(t,e,s){this.__isSilentChange=!0;try{return this.ed.execCommand(t,e,s)}finally{this.__isSilentChange=!1}}__execCustomCommands(t,e,s,...i){t=t.toLowerCase();const r=this.commands.get(t);if(void 0!==r){let o;return r.forEach((r=>{let n;n=(0,l.isFunction)(r)?r:r.exec;const a=n.call(this,t,e,s,...i);void 0!==a&&(o=a)})),o}}lock(t="any"){return!!super.lock(t)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===n.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==n.MODE_SPLIT)return this.getMode();const t=this.od.activeElement;return t&&(t===this.iframe||a.Dom.isOrContains(this.editor,t)||a.Dom.isOrContains(this.toolbar.container,t))?n.MODE_WYSIWYG:n.MODE_SOURCE}setMode(t){const e=this.getMode(),s={mode:parseInt(""+t,10)},i=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",s)&&(this.__mode=[n.MODE_SOURCE,n.MODE_WYSIWYG,n.MODE_SPLIT].includes(s.mode)?s.mode:n.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),i.forEach((t=>{this.container.classList.remove(t)})),this.container.classList.add(i[this.mode-1]),e!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let t=this.getMode();[n.MODE_SOURCE,n.MODE_WYSIWYG,this.o.useSplitMode?n.MODE_SPLIT:9].includes(t+1)?t+=1:t=n.MODE_WYSIWYG,this.setMode(t)}setDisabled(t){this.o.disabled=t;const e=this.__wasReadOnly;this.setReadOnly(t||e),this.__wasReadOnly=e,this.editor&&(this.editor.setAttribute("aria-disabled",""+t),this.container.classList.toggle("jodit_disabled",t),this.e.fire("disabled",t))}getDisabled(){return this.o.disabled}setReadOnly(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.o.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",t))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==n.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(t){this.options=(0,l.ConfigProto)(t||{},o.D.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}constructor(t,e){super(e,!0),this.isJodit=!0,this.commands=new Map,this.__selectionLocked=null,this.__wasReadOnly=!1,this.editorIsActive=!1,this.__mode=n.MODE_WYSIWYG,this.__callChangeCount=0,this.__isSilentChange=!1,this.__elementToPlace=new Map;try{const e=(0,l.resolveElement)(t,this.o.shadowRoot||this.od);if(i.isJoditAssigned(e))return e.component}catch(t){throw this.destruct(),t}this.setStatus(a.STATUSES.beforeInit),this.id=(0,l.attr)((0,l.resolveElement)(t,this.o.shadowRoot||this.od),"id")||""+(new Date).getTime(),c.as[this.id]=this,this.attachEvents(e),this.e.on(this.ow,"resize",(()=>{this.e&&this.e.fire("resize")})),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new a.Selection(this);const s=this.beforeInitHook();(0,l.callPromise)(s,(()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),c.pw.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",(()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)})),this.places.length=0;const s=this.addPlace(t,e);c.as[this.id]=this,(0,l.callPromise)(s,(()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,l.callPromise)(this.afterInitHook(),(()=>{this.setStatus(a.STATUSES.ready),this.e.fire("afterConstructor",this)})))}))}))}addPlace(t,e){const s=(0,l.resolveElement)(t,this.o.shadowRoot||this.od);this.attachEvents(e),s.attributes&&(0,l.toArray)(s.attributes).forEach((t=>{const s=t.name;let i=t.value;void 0===o.D.defaultOptions[s]||e&&void 0!==e[s]||(-1!==["readonly","disabled"].indexOf(s)&&(i=""===i||"true"===i),/^[0-9]+(\.)?([0-9]+)?$/.test(""+i)&&(i=Number(i)),this.options[s]=i)}));let i=this.c.div("jodit-container");i.classList.add("jodit"),i.classList.add("jodit-container"),i.classList.add("jodit_theme_"+(this.o.theme||"default")),m(this.o.className,i),this.o.containerStyle&&(0,l.css)(i,this.o.containerStyle);const{styleValues:r}=this.o;Object.keys(r).forEach((t=>{const e=(0,l.kebabCase)(t);i.style.setProperty("--jd-"+e,r[t])})),i.setAttribute("contenteditable","false");let n=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(s.nodeName)&&(i=s,s.setAttribute(f,""+s.className),n=i.innerHTML,i.innerHTML=""),i.classList.add("jodit_inline"),i.classList.add("jodit-container")),s!==i&&(s.style.display&&s.setAttribute(p,s.style.display),s.style.display="none");const c=this.c.div("jodit-workplace",{contenteditable:!1});i.appendChild(c),s.parentNode&&s!==i&&s.parentNode.insertBefore(i,s),Object.defineProperty(s,"component",{enumerable:!1,configurable:!0,value:this});const h=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});c.appendChild(h);const u={editor:h,element:s,container:i,workplace:c,statusbar:new a.StatusBar(this,i),options:this.isReady?(0,l.ConfigProto)(e||{},o.D.defaultOptions):this.options,history:new a.History(this),editorWindow:this.ow};this.__elementToPlace.set(h,u),this.setCurrentPlace(u),this.places.push(u),this.setNativeEditorValue(this.getElementValue());const d=this.__initEditor(n),g=this.options;return(0,l.callPromise)(d,(()=>{g.enableDragAndDropFileToEditor&&g.uploader&&(g.uploader.url||g.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,u),this.e.fire("afterAddPlace",u)}))}addDisclaimer(t){this.workplace.appendChild(t)}setCurrentPlace(t){this.currentPlace!==t&&(this.isEditorMode()||this.setMode(n.MODE_WYSIWYG),this.currentPlace=t,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",t))}__initEditor(t){const e=this.__createEditor();return(0,l.callPromise)(e,(()=>{if(this.isInDestruct)return;if(this.element!==this.container){const t=this.getElementValue();t!==this.getEditorValue()&&this.setEditorValue(t)}else null!=t&&this.setEditorValue(t);let e=this.o.defaultMode;if(this.o.saveModeInStorage){const t=this.storage.get("jodit_default_mode");"string"==typeof t&&(e=parseInt(t,10))}this.setMode(e),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}}))}__createEditor(){const t=this.editor,e=this.e.fire("createEditor",this);return(0,l.callPromise)(e,(()=>{if(!this.isInDestruct){if((!1===e||(0,l.isPromise)(e))&&a.Dom.safeRemove(t),m(this.o.editorClassName,this.editor),this.o.style&&(0,l.css)(this.editor,this.o.style),this.e.on("synchro",(()=>{this.setEditorValue()})).on("focus",(()=>{this.editorIsActive=!0})).on("blur",(()=>this.editorIsActive=!1)),this.__prepareWYSIWYGEditor(),this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.container.style.direction=t,this.container.setAttribute("dir",t),this.toolbar.setDirection(t)}this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce((()=>{this.e&&this.e.fire(this.element,"change")}),this.defaultTimeout))}}))}__prepareWYSIWYGEditor(){const{editor:t}=this;if(this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=t,this.editor.setAttribute("dir",t)}this.e.on(t,"mousedown touchstart focus",(()=>{const e=this.__elementToPlace.get(t);e&&this.setCurrentPlace(e)})).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",(t=>{if(!this.o.readonly&&!this.__isSilentChange&&!(t instanceof this.ew.KeyboardEvent&&t.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(t.type,t))return!1;this.synchronizeValues()}}))}fetch(t,e){const s=new d.t({url:t,...e},this.o.defaultAjaxOptions),i=()=>{this.e.off("beforeDestruct",i),this.progressbar.progress(100).hide(),s.destruct()};this.e.one("beforeDestruct",i),this.progressbar.show().progress(30);const r=s.send();return r.finally(i).catch((()=>null)),r}destruct(){if(this.isInDestruct)return;this.setStatus(a.STATUSES.beforeDestruct),this.__elementToPlace.clear(),this.storage.clear(),this.buffer.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);const t=this.editor?this.getEditorValue():"";this.places.forEach((({container:e,workplace:s,statusbar:i,element:r,iframe:o,editor:n,history:c})=>{if(r){if(r!==e)if(r.hasAttribute(p)){const t=(0,l.attr)(r,p);t&&(r.style.display=t,r.removeAttribute(p))}else r.style.display="";else r.hasAttribute(f)&&(r.className=(0,l.attr)(r,f)||"",r.removeAttribute(f));r.hasAttribute("style")&&!(0,l.attr)(r,"style")&&r.removeAttribute("style"),i.destruct(),this.e.off(e),this.e.off(r),this.e.off(n),a.Dom.safeRemove(s),a.Dom.safeRemove(n),e!==r&&a.Dom.safeRemove(e),Object.defineProperty(r,"component",{enumerable:!1,configurable:!0,value:null}),a.Dom.safeRemove(o),e===r&&(r.innerHTML=t),c.destruct()}})),this.places.length=0,this.currentPlace={},delete c.as[this.id],super.destruct()}};function m(t,e){t&&t.split(/\s+/).forEach((t=>e.classList.add(t)))}Jodit.fatMode=n.FAT_MODE,Jodit.plugins=c.pw,Jodit.modules=c.qz,Jodit.ns=c.qz,Jodit.decorators={},Jodit.constants=n,Jodit.instances=c.as,Jodit.lang=n.lang,Jodit.core={Plugin:a.Plugin},(0,r.gn)([h.cache],Jodit.prototype,"createInside",null),(0,r.gn)([h.cache],Jodit.prototype,"message",null),(0,r.gn)([h.cache],Jodit.prototype,"s",null),(0,r.gn)([h.cache],Jodit.prototype,"uploader",null),(0,r.gn)([h.cache],Jodit.prototype,"filebrowser",null),(0,r.gn)([(0,h.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,r.gn)([(0,h.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,r.gn)([h.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=i=(0,r.gn)([(0,h.derive)(u.l)],Jodit)},10602(t,e,s){"use strict";var i=s(63738),r=s(90544),o=s(45143),n=s.n(o),a=s(75125);let l={};l={ar:n(),cs_cz:n(),de:n(),en:r,es:n(),fi:n(),fr:n(),he:n(),hu:n(),id:n(),it:n(),ja:n(),ko:n(),mn:n(),nl:n(),pl:n(),pt_br:n(),ru:n(),tr:n(),zh_cn:n(),zh_tw:n()};const c=t=>t?t.default||t:{},h={};(0,i.k)(c(a))&&c(a).forEach(((t,e)=>{h[e]=t})),Object.keys(l).forEach((t=>{const e=c(l[t]);(0,i.k)(e)?(l[t]={},e.forEach(((e,s)=>{l[t][h[s]]=e}))):l[t]=e})),e.Z=l},39021(t,e,s){"use strict";s.d(e,{x(){return l}});var i=s(97582),r=s(8855),o=s(64856),n=s(78157),a=s(75042);let l=class t extends r.G{className(){return"ContextMenu"}show(t,e,s){const i=this;i.clear(),(0,n.kJ)(s)&&(s.forEach((t=>{if(!t)return;const e=(0,o.zx)(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction((e=>(t.exec?.call(i,e),i.clear(),i.close(),!1))),this.append(e)})),this.open((()=>({left:t,top:e,width:0,height:0})),!0))}};l=(0,i.gn)([a.w],l)},6625(t,e,s){"use strict";s.d(e,{b(){return l}});var i=s(69099),r=s(67119),o=s(9162),n=s(22003),a=s(52364);function l(t,e,s,l="jodit-dialog_alert"){(0,i.m)(e)&&(s=e,e=void 0);const c=this instanceof a.V?this:new a.V({closeOnClickOverlay:!0}),h=c.c.div(l),u=(0,n.zx)(c,"ok","Ok");return(0,r._)(t).forEach((t=>{h.appendChild(o.i.isNode(t)?t:c.c.fromHTML(t))})),u.onAction((()=>{s&&(0,i.m)(s)&&!1===s(c)||c.close()})),c.setFooter([u]),c.open(h,e||"&nbsp;",!0,!0),u.focus(),c}},21655(t,e,s){"use strict";s.d(e,{I(){return n}});var i=s(52364),r=s(69099),o=s(22003);function n(t,e,s){const n=this instanceof i.V?this:new i.V({closeOnClickOverlay:!0}),a=n.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=n.c.element("label");(0,r.m)(e)&&(s=e,e=void 0),l.appendChild(n.c.fromHTML(t)),a.appendChild(l);const c=t=>()=>{s&&!1===s(t)||n.close()},h=(0,o.zx)(n,"cancel","Cancel"),u=(0,o.zx)(n,"ok","Yes");return h.onAction(c(!1)),u.onAction(c(!0)),n.e.on(a,"submit",(()=>(c(!0)(),!1))),n.setFooter([u,h]),n.open(a,e||"&nbsp;",!0,!0),u.focus(),n}},52364(t,e,s){"use strict";s.d(e,{V(){return v}});var i,r=s(97582),o=s(37446),n=s(62924),a=s(78157),l=s(8131),c=s(86284),h=(s(52378),s(94530)),u=s(9162),d=s(2581),p=s(79102),f=s(13666),m=s(21731),g=s(14712);o.D.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},o.D.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};let v=i=class t extends h.C{className(){return"Dialog"}get destination(){return this.o.shadowRoot??this.od.body}setElements(t,e){const s=[];(0,l._2)(e).forEach((e=>{if((0,a.kJ)(e)){const i=this.c.div(this.getFullElName("column"));return s.push(i),t.appendChild(i),this.setElements(i,e)}let i;i=(0,a.HD)(e)?this.c.fromHTML(e):(0,a.Zt)(e)?e.container:e,s.push(i),i.parentNode!==t&&t.appendChild(i)})),(0,l.qo)(t.childNodes).forEach((e=>{-1===s.indexOf(e)&&t.removeChild(e)}))}onMouseUp(){(this.draggable||this.resizable)&&(this.removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}onHeaderMouseDown(t){const e=t.target;!this.o.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,c.css)(this.dialog,"left"),this.startPoint.y=(0,c.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startMove"))}onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}onEsc(t){if(this.o.closeOnEsc&&this.isOpened&&t.key===n.KEY_ESC&&!0!==this.getMod("static")){const e=this.getMaxZIndexDialog();e?e.close():this.close(),t.stopImmediatePropagation()}}onResizerMouseDown(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}addGlobalResizeListeners(){const t=this;t.e.on(t.ow,"pointermove touchmove",t.onMouseMove).on(t.ow,"pointerup touchend",t.onMouseUp)}removeGlobalResizeListeners(){const t=this;t.e.off(t.ow,"mousemove pointermove",t.onMouseMove).off(t.ow,"mouseup pointerup",t.onMouseUp)}setSize(t,e){return null==t&&(t=this.dialog.offsetWidth),null==e&&(e=this.dialog.offsetHeight),(0,c.css)(this.dialog,{width:t,height:e}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,e){let s=this.ow.innerWidth/2-this.dialog.offsetWidth/2,i=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>s&&(s=0),0>i&&(i=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-s)>100||Math.abs(e-i)>100),this.dialog.style.left=(t||s)+"px",this.dialog.style.top=(e||i)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,c.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t,e,s=0,i=this;return(0,c.$$)(".jodit-dialog",this.destination).forEach((r=>{t=r.component,e=parseInt((0,c.css)(r,"zIndex"),10),t.isOpened&&!isNaN(e)&&e>s&&(i=t,s=e)})),i}setMaxZIndex(){if(this.getMod("static"))return;let t=20000004,e=0;(0,c.$$)(".jodit-dialog",this.destination).forEach((s=>{e=parseInt((0,c.css)(s,"zIndex"),10),t=Math.max(isNaN(e)?0:e,t)})),this.container.style.zIndex=""+(t+1)}toggleFullSize(t){(0,a.nj)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,e,s,i){if(p.TB.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,a.jn)(t)&&(s=t),(0,a.jn)(e)&&(i=e),this.destroyAfterClose=!0===s;const r=(0,a.jn)(t)?void 0:t,o=(0,a.jn)(e)?void 0:e;return void 0!==o&&this.setHeader(o),r&&this.setContent(r),this.setMod("active",!0),this.isOpened=!0,this.setModal(i),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;const{e:t}=this;return!1===t.fire(this,"beforeClose")||!1===t.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),u.i.safeRemove(this.container),this.removeGlobalResizeListeners(),t.fire(this,"afterClose"),t.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}constructor(t={}){super(t),this.destroyAfterClose=!1,this.moved=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1;const e=this;e.options=(0,c.ConfigProto)(t,(0,c.ConfigProto)(o.D.prototype.dialog,i.defaultOptions)),u.i.safeRemove(e.container);const s=this.getFullElName.bind(this);e.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">\n\t\t\t\t<div class="${s("overlay")}"></div>\n\t\t\t\t<div class="${this.getFullElName("panel")}">\n\t\t\t\t\t<div class="${s("header")}">\n\t\t\t\t\t\t<div class="${s("header-title")}"></div>\n\t\t\t\t\t\t<div class="${s("header-toolbar")}"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${s("content")}"></div>\n\t\t\t\t\t<div class="${s("footer")}"></div>\n\t\t\t\t\t<div class="${s("resizer")}">${g.JO.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),this.o.zIndex&&(this.container.style.zIndex=""+this.o.zIndex),(0,c.attr)(e.container,"role","dialog"),Object.defineProperty(e.container,"component",{value:this}),e.setMod("theme",e.o.theme||"default").setMod("resizable",!!e.o.resizable);const r=e.getElm("panel"),n=e.getElm("resizer"),l=e.getElm("header-title"),h=e.getElm("content"),d=e.getElm("footer"),f=e.getElm("header-toolbar");this.dialog=r,this.resizer=n,this.dialogbox_header=l,this.dialogbox_content=h,this.dialogbox_footer=d,this.dialogbox_toolbar=f,(0,c.css)(e.dialog,{maxWidth:e.options.maxWidth,minHeight:e.options.minHeight,minWidth:e.options.minWidth});const m=e.getElm("header");m&&e.e.on(m,"pointerdown touchstart",e.onHeaderMouseDown),e.e.on(e.resizer,"mousedown touchstart",e.onResizerMouseDown);const v=p.pw.get("fullsize");if((0,a.mf)(v)&&v(e),this.e.on(e.container,"close_dialog",e.close).on(this.ow,"keydown",this.onEsc).on(this.ow,"resize",this.onResize),this.o.closeOnClickOverlay){const t=e.getElm("overlay");this.e.on(t,"click",e.close)}}buildToolbar(){this.o.buttons&&this.toolbar.build((0,l.C1)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(d.n$.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.onEsc).off(this.ow,"resize",this.onResize)),super.destruct())}};(0,r.gn)([f.autobind],v.prototype,"onMouseUp",null),(0,r.gn)([f.autobind],v.prototype,"onHeaderMouseDown",null),(0,r.gn)([f.autobind],v.prototype,"onMouseMove",null),(0,r.gn)([f.autobind],v.prototype,"onEsc",null),(0,r.gn)([f.autobind],v.prototype,"onResizerMouseDown",null),(0,r.gn)([f.autobind],v.prototype,"close",null),(0,r.gn)([(0,f.hook)("ready")],v.prototype,"buildToolbar",null),v=i=(0,r.gn)([f.component],v),v.defaultOptions={...m.G.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}},39093(t,e,s){"use strict";s.d(e,{I4(){return n.I},NL(){return o.N},Vq(){return i.V},bZ(){return r.b}});var i=s(52364),r=s(6625),o=s(12894),n=s(21655)},12894(t,e,s){"use strict";s.d(e,{N(){return a}});var i=s(22003),r=s(69099),o=s(23144),n=s(52364);function a(t,e,s,a,l){const c=this instanceof n.V?this:new n.V({closeOnClickOverlay:!0}),h=(0,i.zx)(c,"cancel","Cancel"),u=(0,i.zx)(c,"ok","Ok"),d=c.c.element("form",{class:"jodit-dialog_prompt"}),p=c.c.element("input",{autofocus:!0,class:"jodit-input"}),f=c.c.element("label");(0,r.m)(e)&&(s=e,e=void 0),a&&(0,o.L)(p,"placeholder",a),f.appendChild(c.c.text(t)),d.appendChild(f),d.appendChild(p),h.onAction(c.close);const m=()=>{s&&(0,r.m)(s)&&!1===s(p.value)||c.close()};return u.onAction(m),c.e.on(d,"submit",(()=>(m(),!1))),c.setFooter([u,h]),c.open(d,e||"&nbsp;",!0,!0),p.focus(),void 0!==l&&l.length&&(p.value=l,p.select()),c}},96962(t,e,s){"use strict";var i=s(46879),r=s(86284),o=s(30052),n=s(59210),a=s(17331),l=s(76068),c=s(16612),h=s(66636),u=s(83007);const d="jodit-file-browser-preview",p=(t="next",e="right")=>`<div class="${d}__navigation ${d}__navigation_arrow_${t}">`+o.J.get("angle-"+e)+"</a>";e.Z=t=>{if(!t.o.contextMenu)return()=>{};const e=(0,a.L)(t);return s=>{const o=(0,u.rV)(s.target,t.container);if(!o)return;let a=o;const f=t.options,m=t=>(0,r.attr)(a,t)||"";return t.async.setTimeout((()=>{const g=(0,u.iU)(o,(0,l.d)(t));g&&(t.state.activeElements=[g],e.show(s.clientX,s.clientY,[!("1"===m("data-is-file")||!f.editImage||!t.dataProvider.canI("ImageResize")&&!t.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec(){return n.r.call(t,m("href"),m("data-name"),m("data-path"),m("data-source"))}},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",m("data-name"),m("data-path"),m("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await(0,h._)(t,m("data-name"),m("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],(0,c.Q)(t).catch(t.status)}},!!f.preview&&{icon:"eye",title:"Preview",exec(){const e=t.dlg({buttons:["fullsize","dialog.close"]}),s=t.c.div(d,'<div class="jodit-icon_loader"></div>'),o=t.c.div(d+"__box"),n=t.c.fromHTML(p()),l=t.c.fromHTML(p("prev","left")),c=r=>{const c=t.c.element("img");c.setAttribute("src",r);const h=()=>{t.isInDestruct||(t.e.off(c,"load"),i.i.detach(s),f.showPreviewNavigation&&(i.i.prevWithClass(a,t.files.getFullElName("item"))&&s.appendChild(l),i.i.nextWithClass(a,t.files.getFullElName("item"))&&s.appendChild(n)),s.appendChild(o),o.appendChild(c),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(c,"load",h),c.complete&&h()};t.e.on([n,l],"click",(function(){if(a=this===n?i.i.nextWithClass(a,t.files.getFullElName("item")):i.i.prevWithClass(a,t.files.getFullElName("item")),!a)throw(0,r.error)("Need element");i.i.detach(s),i.i.detach(o),s.innerHTML='<div class="jodit-icon_loader"></div>',c(m("href"))})),t.e.on("beforeDestruct",(()=>{e.destruct()})),e.container.classList.add(d+"__dialog"),e.setContent(s),e.setPosition(),e.open(),c(m("href")),t.events.on("beforeDestruct",(()=>{e.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const e=m("href");e&&t.ow.open(e)}}]))}),t.defaultTimeout),t.e.on("beforeClose",(()=>{e.close()})).on("beforeDestruct",(()=>e.destruct())),s.stopPropagation(),s.preventDefault(),!1}}},76068(t,e,s){"use strict";s.d(e,{d(){return r}});const i=new WeakMap,r=t=>{let e=i.get(t);return e||(e={},i.set(t,e)),e}},97373(t,e,s){"use strict";s.d(e,{Z(){return r}});var i=s(76974);class r{constructor(t){this.data=t,Object.keys(t).forEach((e=>{this[e]=t[e]}))}static create(t){return t instanceof r?t:new r(t)}get path(){return(0,i.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const t=this.time||""+(new Date).getTime(),{thumbIsAbsolute:e,source:s,thumb:r,file:o}=this.data,n=r||o;return e&&n?n:(0,i.normalizeUrl)(s.baseurl,s.path,n||"")+"?_tmst="+encodeURIComponent(t)}get fileURL(){let{name:t}=this.data;const{file:e,fileIsAbsolute:s,source:r}=this.data;return void 0!==e&&(t=e),s&&t?t:(0,i.normalizeUrl)(r.baseurl,r.path,t||"")}get time(){const{changed:t}=this.data;return t&&("number"==typeof t?new Date(t).toLocaleString():t)||""}get uniqueHashKey(){const t=this.data;let e=[t.sourceName,t.name,t.file,this.time,t.thumb].join("_");return e=e.toLowerCase().replace(/[^0-9a-z\-.]/g,"-"),e}toJSON(){return this.data}}},35267(t,e,s){"use strict";var i=s(37446),r=s(78157),o=s(21447),n=s(48871);i.D.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,r.HD)(t)?-1!==t.toLowerCase().indexOf(e):(0,r.HD)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,r.HD)(t.file)||-1!==t.file.toLowerCase().indexOf(e)),sortBy:"changed-desc",sort(t,e,s){const[i,o]=s.toLowerCase().split("-"),a="asc"===o,l=(t,e)=>e>t?a?-1:1:t>e?a?1:-1:0;if((0,r.HD)(t))return l(t.toLowerCase(),e.toLowerCase());if(void 0===t[i]||"name"===i)return(0,r.HD)(t.name)?l(t.name.toLowerCase(),e.name.toLowerCase()):(0,r.HD)(t.file)?l(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(i){case"changed":{const s=new Date(t.changed).getTime(),i=new Date(e.changed).getTime();return a?s-i:i-s}case"size":{const s=(0,n.w)(t.size),i=(0,n.w)(e.size);return a?s-i:i-s}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,r.kJ)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,s){const i=this.options,r=this.files.getFullElName("item"),o=i.showFileName,n=i.showFileSize&&t.size,a=i.showFileChangeTime&&t.time;let l="";return void 0!==t.file&&(l=t.file),`<a\n\t\t\tdata-jodit-file-browser-item="true"\n\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\tdraggable="true"\n\t\t\tclass="${r}"\n\t\t\thref="${t.fileURL}"\n\t\t\tdata-source="${s}"\n\t\t\tdata-path="${t.path}"\n\t\t\tdata-name="${l}"\n\t\t\ttitle="${l}"\n\t\t\tdata-url="${t.fileURL}">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\t\t\tdata-src="${t.fileURL}"\n\t\t\t\t\tsrc="${t.imageURL}"\n\t\t\t\t\talt="${l}"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t${o||n||a?`<div class="${r}-info">${o?`<span class="${r}-info-filename">${l}</span>`:""}${n?`<span class="${r}-info-filesize">${t.size}</span>`:""}${a?`<span class="${r}-info-filechanged">${a}</span>`:""}</div>`:""}\n\t\t\t</a>`},ajax:{...i.D.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:t=>t,process:t=>t},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"}}},i.D.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,isDisabled(t){return!t.dataProvider.canI("FileUpload")},getContent(t){const e=new o.Z(t,{onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",e.container),e.container}},remove:{icon:"bin",isDisabled(t){return!t.state.activeElements.length||!t.dataProvider.canI("FileRemove")},exec(t){t.e.fire("fileRemove.filebrowser")}},update:{exec(t){t.e.fire("update.filebrowser")}},select:{icon:"check",isDisabled(t){return!t.state.activeElements.length},exec(t){t.e.fire("select.filebrowser")}},edit:{icon:"pencil",isDisabled(t){const e=t.state.activeElements;return 1!==e.length||!e[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec(t){t.e.fire("edit.filebrowser")}},tiles:{icon:"th",isActive(t){return"tiles"===t.state.view},exec(t){t.e.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive(t){return"list"===t.state.view},exec(t){t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(t,e){const s=e.container.querySelector(".jodit-input");if(s)return s;const i=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return i.value=t.state.filterWord,t.e.on(i,"keydown mousedown",t.async.debounce((()=>{t.e.fire("filter.filebrowser",i.value)}),t.defaultTimeout)),i}},sort:{isInput:!0,getContent(t){const e=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 e.value=t.state.sortBy,t.e.on("sort.filebrowser",(t=>{e.value!==t&&(e.value=t)})).on(e,"change",(()=>{t.e.fire("sort.filebrowser",e.value)})),e}}}},82901(t,e,s){"use strict";s.d(e,{J(){return c}});var i=s(97582),r=s(76974),o=s(60072),n=s(13666),a=s(97373),l=s(62924);const c="default",h=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);let u=class t{constructor(t,e){this.parent=t,this.options=e,this.__currentPermissions=null,this.ajaxInstances=new Map,this.progressHandler=t=>{}}get o(){return this.options}get(t){const e=this.ajaxInstances;if(e.has(t)){const s=e.get(t);s?.abort(),e.delete(t)}const s=(0,r.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,r.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));s.prepareData&&(s.data=s.prepareData.call(this,s.data));const i=new o.t(s);e.set(t,i);const n=i.send();return n.finally((()=>{i.destruct(),e.delete(t),this.progressHandler(100)})).catch((()=>null)),n.then((t=>t.json())).then((t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t}))}onProgress(t){this.progressHandler=t}async permissions(t,e){return this.o.permissions?(this.o.permissions.data.path=t,this.o.permissions.data.source=e,this.o.permissions.url?this.get("permissions").then((t=>{let e=this.o.permissions.process;if(e||(e=this.o.ajax.process),e){const s=e.call(self,t);s.data.permissions&&(this.__currentPermissions=s.data.permissions)}return this.__currentPermissions})):null):null}canI(t){const e="allow"+t;if(!l.IS_PROD&&!h.has(e))throw(0,r.error)("Wrong action "+t);const s=this.o.permissionsPresets[e];return void 0!==s?s:null==this.__currentPermissions||void 0===this.__currentPermissions[e]||this.__currentPermissions[e]}__items(t,e,s,i){const r=this.options;return r.items?(r.items.data.path=t,r.items.data.source=e,r.items.data.mods=s,this.get("items").then((t=>{let e=this.o.items.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),i(t)}))):Promise.reject(Error("Set Items api options"))}items(t,e,s={}){return this.__items(t,e,s,(t=>this.generateItemsList(t.data.sources,s)))}itemsEx(t,e,s={}){return this.__items(t,e,s,(t=>{return{items:this.generateItemsList(t.data.sources,s),loadedTotal:(e=t.data.sources,e.reduce(((t,e)=>t+e.files.length),0))};var e}))}generateItemsList(t,e={}){const s=[],i=t=>!e.filterWord?.length||void 0===this.o.filter||this.o.filter(t,e.filterWord);return t.forEach((t=>{if(t.files&&t.files.length){const{sort:o}=this.o;(0,r.isFunction)(o)&&e.sortBy&&t.files.sort(((t,s)=>o(t,s,e.sortBy))),t.files.forEach((r=>{i(r)&&(t=>"folder"===t.type||!e.onlyImages||void 0===t.isImage||t.isImage)(r)&&s.push(a.Z.create({...r,sourceName:t.name,source:t}))}))}})),s}async tree(t,e){return t=(0,r.normalizeRelativePath)(t),this.o.folder?(await this.permissions(t,e),this.o.folder.data.path=t,this.o.folder.data.source=e,this.get("folder").then((t=>{let e=this.o.folder.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),t.data.sources}))):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(t){return(0,r.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then((t=>{if(this.isSuccess(t))return t.data;throw(0,r.error)(this.getMessage(t))}))}createFolder(t,e,s){const{create:i}=this.o;if(!i)throw(0,r.error)("Set Create api options");return i.data.source=s,i.data.path=e,i.data.name=t,this.get("create").then((t=>{if(this.isSuccess(t))return!0;throw(0,r.error)(this.getMessage(t))}))}move(t,e,s,i){const o=i?"fileMove":"folderMove",n=this.options[o];if(!n)throw(0,r.error)("Set Move api options");return n.data.from=t,n.data.path=e,n.data.source=s,this.get(o).then((t=>{if(this.isSuccess(t))return!0;throw(0,r.error)(this.getMessage(t))}))}remove(t,e,s,i){const o=this.o[t];if(!o)throw(0,r.error)(`Set "${t}" api options`);return o.data.path=e,o.data.name=s,o.data.source=i,this.get(t).then((t=>(o.process&&(t=o.process.call(this,t)),this.getMessage(t))))}fileRemove(t,e,s){return this.remove("fileRemove",t,e,s)}folderRemove(t,e,s){return this.remove("folderRemove",t,e,s)}rename(t,e,s,i,o){const n=this.o[t];if(!n)throw(0,r.error)(`Set "${t}" api options`);return n.data.path=e,n.data.name=s,n.data.newname=i,n.data.source=o,this.get(t).then((t=>(n.process&&(t=n.process.call(self,t)),this.getMessage(t))))}folderRename(t,e,s,i){return this.rename("folderRename",t,e,s,i)}fileRename(t,e,s,i){return this.rename("fileRename",t,e,s,i)}changeImage(t,e,s,i,r,o){this.o[t]||(this.o[t]={data:{}});const n=this.o[t];return void 0===n.data&&(n.data={action:t}),n.data.newname=r||i,o&&(n.data.box=o),n.data.path=e,n.data.name=i,n.data.source=s,this.get(t).then((()=>!0))}crop(t,e,s,i,r){return this.changeImage("crop",t,e,s,i,r)}resize(t,e,s,i,r){return this.changeImage("resize",t,e,s,i,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()}};u=(0,i.gn)([n.autobind],u),e.Z=u},17331(t,e,s){"use strict";s.d(e,{L(){return n},S(){return o}});var i=s(39021),r=s(82901);function o(t,e){return new r.Z(t,e)}function n(t){return new i.x(t)}},66636(t,e,s){"use strict";function i(t,e,s){return t.dataProvider.fileRemove(t.state.currentPath,e,s).then((s=>{t.status(s||t.i18n('File "%s" was deleted',e),!0)})).catch(t.status)}s.d(e,{_(){return i}})},94996(t,e,s){"use strict";function i(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((e=>{e&&(t.state.elements=e,t.state.activeElements=[])})).catch(t.status).finally((()=>t.files.setMod("loading",!1)))}s.d(e,{X(){return i}})},16612(t,e,s){"use strict";s.d(e,{Q(){return o}});var i=s(46879),r=s(94996);async function o(t){t.tree.setMod("active",!0),i.i.detach(t.tree.container);const e=(0,r.X)(t);if(t.o.showFoldersPanel){t.tree.setMod("loading",!0);const s=t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then((e=>{t.state.sources=e})).catch(t.status).finally((()=>t.tree.setMod("loading",!1)));return Promise.all([s,e])}return t.tree.setMod("active",!1),e}},60301(t,e,s){"use strict";s.d(e,{f(){return w}});var i=s(97582),r=s(37446),o=s(62924),n=s(81039),a=s(76974),l=s(17331),c=s(34423),h=s(83007),u=s(45711),d=s(82901),p=s(13666),f=s(40158),m=s(47981),g=s(16612),v=s(94996),b=s(2581),_=s(42297),y=s(94530);s(35267);let w=class t extends y.C{className(){return"FileBrowser"}get dataProvider(){return(0,l.S)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){const e=[],s=[];this.state.activeElements.forEach((t=>{const i=t.fileURL;i&&(e.push(i),s.push(t.isImage||!1))})),this.close();const i={baseurl:"",files:e,isImages:s};(0,a.isFunction)(t)&&t(i),this.close()}return!1}}get _dialog(){const t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach((e=>t.events.on(t,e,(()=>this.e.fire(e))))),t.setSize(this.o.width,this.o.height),t}get storage(){return n.Ke.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){t&&!(0,a.isAbort)(t)&&((0,a.isString)(t)||(t=t.message),(0,a.isString)(t)&&(0,a.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise(((e,s)=>{if(!this.o.items||!this.o.items.url)throw(0,a.error)("Need set options.filebrowser.ajax.url");let i=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",(()=>{const e=(new Date).getTime();o.EMULATE_DBLCLICK_TIMEOUT>e-i&&this.onSelect(t)(),i=e})).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));const r=this.c.div();this.toolbar?.build(this.__getButtons()).appendTo(r),this._dialog.open(this.browser,r),this.e.fire("sort.filebrowser",this.state.sortBy),(0,g.Q)(this).then(e,s)})).catch((t=>{if(!o.IS_PROD)throw t}))}__getButtons(){return(this.o.buttons??[]).filter((t=>{if(!(0,a.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){const e=this,s=t?.options?.uploader,i=(0,a.ConfigProto)(s||{},r.D.defaultOptions.uploader),o=()=>(0,v.X)(this);e.uploader=e.getInstance("Uploader",i),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,o,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)})),e.e.on("bindUploader.filebrowser",(t=>{e.uploader.bind(t,o,e.errorHandler)}))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new f.q(this),this.files=new f.s(this),this.state=(0,m.LO)({currentPath:"",currentSource:d.J,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,a.isAbort)(t)||this.status(t instanceof Error?this.i18n(t.message):this.dataProvider.getMessage(t))},this.close=()=>{this._dialog.close()},this.attachEvents(t);const e=this;e.options=(0,a.ConfigProto)(t||{},r.D.defaultOptions.filebrowser),e.browser.component=this,e.container=e.browser,e.o.showFoldersPanel&&e.browser.appendChild(e.tree.container),e.browser.appendChild(e.files.container),e.browser.appendChild(e.status_line),u.N.call(e),h.j9.call(e),c.A.call(e),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((t=>{null!=this.options[t]&&(this.options[t]=(0,a.ConfigProto)(this.options[t],this.o.ajax))}));const{storeView:s,storeSortBy:i,storeLastOpenedFolder:o}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},n=s&&this.storage.get("view");e.state.view=n&&null==this.o.view?"list"===n?"list":"tiles":"list"===e.o.view?"list":"tiles",e.files.setMod("view",e.state.view);const l=i&&e.storage.get("sortBy");if(l){const t=l.split("-");e.state.sortBy=["changed","name","size"].includes(t[0])?l:"changed-desc"}else e.state.sortBy=e.o.sortBy||"changed-desc";if(o){const t=e.storage.get("currentPath"),s=e.storage.get("currentSource");e.state.currentPath=t??"",e.state.currentSource=s??""}e.initUploader(e),e.setStatus(b.n$.ready)}destruct(){this.isInDestruct||(super.destruct(),this._dialog.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}};(0,i.gn)([p.cache],w.prototype,"dataProvider",null),(0,i.gn)([p.cache],w.prototype,"_dialog",null),(0,i.gn)([p.cache],w.prototype,"storage",null),(0,i.gn)([p.autobind],w.prototype,"status",null),(0,i.gn)([p.autobind],w.prototype,"open",null),w=(0,i.gn)([(0,p.derive)(_.l)],w)},90033(t,e,s){"use strict";s.d(e,{f(){return i.f}});var i=s(60301)},83007(t,e,s){"use strict";s.d(e,{iU(){return c},j9(){return h},rV(){return l}});var i=s(76974),r=s(46879),o=s(96962),n=s(76068),a=s(16612);const l=(t,e,s="a")=>r.i.closest(t,(t=>r.i.isTag(t,s)),e),c=(t,e)=>{const{key:s}=t.dataset,{item:i}=e[s||""];return i};function h(){let t=!1;const e=(0,n.d)(this),s=this;s.e.on(s.tree.container,"dragstart",(e=>{const i=l(e.target,s.container);i&&s.o.moveFolder&&(t=i)})).on(s.tree.container,"drop",(e=>{if((s.o.moveFile||s.o.moveFolder)&&t){let r=(0,i.attr)(t,"-path")||"";if(!s.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item")))return!1;if(t.classList.contains(this.files.getFullElName("item"))&&(r+=(0,i.attr)(t,"-name"),!s.o.moveFile))return!1;const o=l(e.target,s.container);if(!o)return;s.dataProvider.move(r,(0,i.attr)(o,"-path")||"",(0,i.attr)(o,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then((()=>(0,a.Q)(this))).catch(s.status),t=!1}})).on(s.files.container,"contextmenu",(0,o.Z)(s)).on(s.files.container,"click",(t=>{(0,i.ctrlKey)(t)||(this.state.activeElements=[])})).on(s.files.container,"click",(t=>{const r=l(t.target,s.container);if(!r)return;const o=c(r,e);return o?(s.state.activeElements=(0,i.ctrlKey)(t)?[...s.state.activeElements,o]:[o],t.stopPropagation(),!1):void 0})).on(s.files.container,"dragstart",(e=>{if(s.o.moveFile){const i=l(e.target,s.container);if(!i)return;t=i}})).on(s.container,"drop",(t=>t.preventDefault()))}},45711(t,e,s){"use strict";s.d(e,{N(){return h}});var i=s(78157),r=s(76974),o=s(59210),n=s(82901),a=s(16612),l=s(94996),c=s(66636);function h(){const t=this.state,e=this.dataProvider,s=this;s.e.on("view.filebrowser",(e=>{e!==t.view&&(t.view=e)})).on("sort.filebrowser",(e=>{e!==t.sortBy&&(t.sortBy=e,(0,l.X)(s))})).on("filter.filebrowser",(e=>{e!==t.filterWord&&(t.filterWord=e,(0,l.X)(s))})).on("openFolder.filebrowser",(t=>{let e;e=".."===t.name?t.path.split("/").filter((t=>t.length)).slice(0,-1).join("/"):(0,r.normalizePath)(t.path,t.name),s.state.currentPath=e,s.state.currentSource="."===t.name?n.J:t.source})).on("removeFolder.filebrowser",(t=>{s.confirm("Are you sure?","Delete",(i=>{i&&e.folderRemove(t.path,t.name,t.source).then((t=>(s.status(t,!0),(0,a.Q)(s)))).catch(s.status)}))})).on("renameFolder.filebrowser",(t=>{s.prompt("Enter new name","Rename",(r=>{if(!(0,i.r1)(r))return s.status(s.i18n("Enter new name")),!1;e.folderRename(t.path,t.name,r,t.source).then((t=>(s.state.activeElements=[],s.status(t,!0),(0,a.Q)(s)))).catch(s.status)}),"type name",t.name)})).on("addFolder.filebrowser",(t=>{s.prompt("Enter Directory name","Create directory",(i=>{e.createFolder(i,t.path,t.source).then((()=>(0,a.Q)(s))).catch(s.status)}),"type name")})).on("fileRemove.filebrowser",(()=>{s.state.activeElements.length&&s.confirm("Are you sure?","",(t=>{if(t){const t=[];s.state.activeElements.forEach((e=>{t.push((0,c._)(s,e.file||e.name||"",e.sourceName))})),s.state.activeElements=[],Promise.all(t).then((()=>(0,a.Q)(s).catch(s.status)),s.status)}}))})).on("edit.filebrowser",(()=>{if(1===s.state.activeElements.length){const[t]=this.state.activeElements;o.r.call(s,t.fileURL,t.file||"",t.path,t.sourceName)}})).on("fileRename.filebrowser",((t,r,o)=>{1===s.state.activeElements.length&&s.prompt("Enter new name","Rename",(n=>{if(!(0,i.r1)(n))return s.status(s.i18n("Enter new name")),!1;e.fileRename(r,t,n,o).then((t=>{s.state.activeElements=[],s.status(t,!0),(0,l.X)(s)})).catch(s.status)}),"type name",t)})).on("update.filebrowser",(()=>{(0,a.Q)(this).then(this.status,this.status)}))}},34423(t,e,s){"use strict";s.d(e,{A(){return l}});var i=s(46879),r=s(12368),o=s(22003),n=s(76068),a=s(16612);function l(){const t=(0,n.d)(this),{state:e,files:s,create:l,options:c}=this,h=e=>{const s=e.uniqueHashKey;if(t[s])return t[s].elm;const i=l.fromHTML(c.getThumbTemplate.call(this,e,e.source,""+e.sourceName));return i.dataset.key=s,t[s]={item:e,elm:i},t[s].elm};e.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,a.Q)(this).catch(this.status)}),this.defaultTimeout)).on("beforeChange.activeElements",(()=>{e.activeElements.forEach((e=>{const i=e.uniqueHashKey,{elm:r}=t[i];r&&r.classList.remove(s.getFullElName("item","active",!0))}))})).on("change.activeElements",(()=>{this.e.fire("changeSelection"),e.activeElements.forEach((e=>{const i=e.uniqueHashKey,{elm:r}=t[i];r&&r.classList.add(s.getFullElName("item","active",!0))}))})).on("change.view",(()=>{s.setMod("view",e.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",e.view)})).on("change.sortBy",(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",e.sortBy)})).on("change.elements",this.async.debounce((()=>{i.i.detach(s.container),e.elements.length?e.elements.forEach((t=>{this.files.container.appendChild(h(t))})):s.container.appendChild(l.div(this.componentName+"_no-files_true",this.i18n("There are no files")))}),this.defaultTimeout)).on("change.sources",this.async.debounce((()=>{i.i.detach(this.tree.container),e.sources.forEach((t=>{const e=t.name;if(e&&"default"!==e&&this.tree.container.appendChild(l.div(this.tree.getFullElName("source-title"),e)),t.folders.forEach((s=>{const i=l.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,r.AH)(t.path,s+"/"),"data-name":s,"data-source":e,"data-source-path":t.path},l.span(this.tree.getFullElName("item-title"),s)),n=i=>o=>{this.e.fire(i+".filebrowser",{name:s,path:(0,r.AH)(t.path+"/"),source:e}),o.stopPropagation(),o.preventDefault()};if(this.e.on(i,"click",n("openFolder")),this.tree.container.appendChild(i),".."!==s&&"."!==s){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){const t=(0,o.zx)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});t.onAction(n("renameFolder")),i.appendChild(t.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){const t=(0,o.zx)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});t.onAction(n("removeFolder")),i.appendChild(t.container)}}})),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){const s=(0,o.zx)(this,"plus","Add folder","secondary");s.onAction((()=>{this.e.fire("addFolder",{path:(0,r.AH)(t.path+"/"),source:e})})),this.tree.append(s)}}))}),this.defaultTimeout))}},32163(t,e,s){"use strict";s.d(e,{s(){return r}});var i=s(14712);class r extends i.qe{className(){return"FileBrowserFiles"}}},40158(t,e,s){"use strict";s.d(e,{q(){return r.q},s(){return i.s}});var i=s(32163),r=s(57285)},57285(t,e,s){"use strict";s.d(e,{q(){return r}});var i=s(14712);class r extends i.qe{className(){return"FileBrowserTree"}}},56653(t,e,s){"use strict";s.d(e,{m(){return i}});class i{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,e,s,i){this.oldValue=t,this.newValue=e,this.history=s,this.tick=i}}},79737(t,e,s){"use strict";s.d(e,{A(){return h}});var i=s(97582),r=s(37446),o=s(2581),n=s(53771),a=s(1027),l=s(56653),c=s(13666);r.D.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class h extends o.Hr{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}constructor(t,e=new a.K(t.o.history.maxHistoryLength),s=new n.a(t)){super(t),this.updateTick=0,this.__stack=e,this.snapshot=s,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))}))}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){const e=this.snapshot.make();if(!n.a.equal(e,this.startValue)){const s=new l.m(this.startValue,e,this,this.updateTick);if(t){const t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(s)}else this.__stack.push(s);this.startValue=e,this.fireChangeStack()}}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}}(0,i.gn)([(0,c.debounce)()],h.prototype,"onChange",null)},53771(t,e,s){"use strict";s.d(e,{a(){return n}});var i=s(2581),r=s(46879),o=s(62924);class n extends i.Hr{constructor(){super(...arguments),this.__isBlocked=!1}className(){return"Snapshot"}static equal(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;const e=t.parentNode.childNodes;let s=0,i=null;for(let o=0;e.length>o;o+=1){if(!i||this.isIgnoredNode(e[o])||r.i.isText(i)&&r.i.isText(e[o])||(s+=1),e[o]===t)return s;i=e[o]}return 0}static strokeOffset(t,e){for(;r.i.isText(t);)r.i.isText(t=t.previousSibling)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){const e=[];if(!t||!t.parentNode||!r.i.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!n.isIgnoredNode(t)&&e.push(n.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e,s=this.j.editor;for(e=0;s&&t.length>e;e+=1)s=s.childNodes[t[e]];return s}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0);try{t()}catch(t){if(!o.IS_PROD)throw t}this.__block(!1)}make(){const t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.removeJoditSelection(this.j.editor);const e=this.j.s.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0),i=this.calcHierarchyLadder(s.startContainer),r=this.calcHierarchyLadder(s.endContainer);let o=n.strokeOffset(s.startContainer,s.startOffset),a=n.strokeOffset(s.endContainer,s.endOffset);i.length||s.startContainer===this.j.editor||(o=0),r.length||s.endContainer===this.j.editor||(a=0),t.range={startContainer:i,startOffset:o,endContainer:r,endOffset:a}}return t}restore(t){this.transaction((()=>{const e=this.storeScrollState();this.j.getNativeEditorValue()!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)}))}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){const{j:e}=this,{ow:s}=e;s.scrollTo(s.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){const e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild)}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return r.i.isText(t)&&!t.nodeValue||r.i.isTemporary(t)}removeJoditSelection(t){const e=t.cloneNode(!0);return e.querySelectorAll(`[${o.TEMP_ATTR}]`).forEach(r.i.unwrap),e.innerHTML}}},1027(t,e,s){"use strict";s.d(e,{K(){return i}});class i{constructor(t){this.size=t,this.commands=[],this.stackPosition=-1}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.commands.length-1>this.stackPosition}}},55344(t,e,s){"use strict";var i=s(37446),r=s(30052),o=s(3125),n=s.n(o),a=s(54209),l=s.n(a);i.D.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%"},r.J.set("crop",n()).set("resize",l())},59210(t,e,s){"use strict";s.d(e,{r(){return g},v(){return m}});var i,r=s(97582),o=s(37446),n=s(2581),a=s(76974),l=s(46879),c=s(64856),h=s(4521),u=s(13666);s(55344);const d="jodit-image-editor",p="resize",f="crop";let m=i=class t extends n.Hr{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise((s=>{const i=(new Date).getTime();this.image=this.j.c.element("img"),(0,a.$$)("img,.jodit-icon_loader",this.resize_box).forEach(l.i.safeRemove),(0,a.$$)("img,.jodit-icon_loader",this.crop_box).forEach(l.i.safeRemove),(0,a.css)(this.cropHandler,"background","transparent"),this.onSave=e,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"})),this.image.setAttribute("src",t+=/\?/.test(t)?"&_tst="+i:"?_tst="+i),this._dialog.open();const{widthInput:r,heightInput:o}=(0,a.refs)(this.editor),n=()=>{this.isDestructed||(this.image.removeEventListener("load",n),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,r.value=""+this.naturalWidth,o.value=""+this.naturalHeight,this.ratio=this.naturalWidth/this.naturalHeight,this.resize_box.appendChild(this.image),this.cropImage=this.image.cloneNode(!0),this.crop_box.appendChild(this.cropImage),l.i.safeRemove.apply(null,(0,a.$$)(".jodit-icon_loader",this.editor)),this.activeTab===f&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),s(this._dialog))};this.image.addEventListener("load",n),this.image.complete&&n()}))}onTitleModeClick(t){const e=this,s=t.target,i=s?.parentElement;if(!i)return;(0,a.$$)(`.${d}__slider,.${d}__area`,e.editor).forEach((t=>t.classList.remove(d+"_active"))),i.classList.add(d+"_active"),this.activeTab=(0,a.attr)(i,"-area")||p;const r=e.editor.querySelector(`.${d}__area.${d}__area_`+e.activeTab);r&&r.classList.add(d+"_active"),e.activeTab===f&&e.showCrop()}onChangeSizeInput(t){const e=this,s=t.target,{widthInput:i,heightInput:r}=(0,a.refs)(this.editor),o="widthInput"===(0,a.attr)(s,"data-ref"),n=parseInt(s.value,10),l=o?e.o.min_height:e.o.min_width;let c;n>(o?e.o.min_width:e.o.min_height)&&((0,a.css)(e.image,o?"width":"height",n),e.resizeUseRatio&&(c=Math.round(o?n/e.ratio:n*e.ratio),c>l&&((0,a.css)(e.image,o?"height":"width",c),o?r.value=""+c:i.value=""+c))),this.j.e.fire(e.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){const e=this;e.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),e.clicked=!0,e.start_x=t.clientX,e.start_y=t.clientY,e.activeTab===f?(e.top_x=(0,a.css)(e.cropHandler,"left"),e.top_y=(0,a.css)(e.cropHandler,"top"),e.width=e.cropHandler.offsetWidth,e.height=e.cropHandler.offsetHeight):(e.width=e.image.offsetWidth,e.height=e.image.offsetHeight),e.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){const e=this;if(!e.clicked)return;const{widthInput:s,heightInput:i}=(0,a.refs)(this.editor);e.diff_x=t.clientX-e.start_x,e.diff_y=t.clientY-e.start_y,e.activeTab===p&&e.resizeUseRatio||e.activeTab===f&&e.cropUseRatio?e.diff_x?(e.new_w=e.width+e.diff_x,e.new_h=Math.round(e.new_w/e.ratio)):(e.new_h=e.height+e.diff_y,e.new_w=Math.round(e.new_h*e.ratio)):(e.new_w=e.width+e.diff_x,e.new_h=e.height+e.diff_y),e.activeTab===p?(e.new_w>e.o.resizeMinWidth&&((0,a.css)(e.image,"width",e.new_w+"px"),s.value=""+e.new_w),e.new_h>e.o.resizeMinHeight&&((0,a.css)(e.image,"height",e.new_h+"px"),i.value=""+e.new_h),this.j.e.fire(e.resizeHandler,"updatesize")):(e.target!==e.cropHandler?(e.top_x+e.new_w>e.cropImage.offsetWidth&&(e.new_w=e.cropImage.offsetWidth-e.top_x),e.top_y+e.new_h>e.cropImage.offsetHeight&&(e.new_h=e.cropImage.offsetHeight-e.top_y),(0,a.css)(e.cropHandler,{width:e.new_w,height:e.new_h})):(e.top_x+e.diff_x+e.cropHandler.offsetWidth>e.cropImage.offsetWidth&&(e.diff_x=e.cropImage.offsetWidth-e.top_x-e.cropHandler.offsetWidth),(0,a.css)(e.cropHandler,"left",e.top_x+e.diff_x),e.top_y+e.diff_y+e.cropHandler.offsetHeight>e.cropImage.offsetHeight&&(e.diff_y=e.cropImage.offsetHeight-e.top_y-e.cropHandler.offsetHeight),(0,a.css)(e.cropHandler,"top",e.top_y+e.diff_y)),this.j.e.fire(e.cropHandler,"updatesize"))}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=p,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=()=>{const t=this.crop_box.parentNode,e=.8*t.offsetWidth,s=.8*t.offsetHeight;let i=e,r=s;const{naturalWidth:o,naturalHeight:n}=this;e>o&&s>n?(i=o,r=n):this.ratio>e/s?(i=e,r=n*(e/o)):(i=o*(s/n),r=s),(0,a.css)(this.crop_box,{width:i,height:r})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();const t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=i.calcValueByPercent(t,this.o.cropDefaultWidth);const e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.new_h=this.cropUseRatio?this.new_w/this.ratio:i.calcValueByPercent(e,this.o.cropDefaultHeight),(0,a.css)(this.cropHandler,{backgroundImage:"url("+(0,a.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;const t=this.cropImage.offsetWidth/this.naturalWidth,e=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,a.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,a.css)(this.cropHandler,"top")/e,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/e,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=()=>{const t=this,{widthInput:e,heightInput:s}=(0,a.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+d,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+d,(()=>{this.j.e.fire(t.resizeHandler,"updatesize"),t.showCrop(),this.j.e.fire(t.cropHandler,"updatesize")})),t.j.e.on((0,a.toArray)(this.editor.querySelectorAll(`.${d}__slider-title`)),"click",this.onTitleModeClick).on([e,s],"input",this.onChangeSizeInput);const{keepAspectRatioResize:i,keepAspectRatioCrop:r}=(0,a.refs)(this.editor);i&&i.addEventListener("change",(()=>{this.resizeUseRatio=i.checked})),r&&r.addEventListener("change",(()=>{this.cropUseRatio=r.checked})),t.j.e.on(t.resizeHandler,"updatesize",(()=>{(0,a.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 e=(0,a.css)(t.cropHandler,"left"),s=(0,a.css)(t.cropHandler,"top"),i=t.cropHandler.offsetWidth,r=t.cropHandler.offsetHeight;0>e&&(e=0),0>s&&(s=0),e+i>t.cropImage.offsetWidth&&(i=t.cropImage.offsetWidth-e,t.cropUseRatio&&(r=i/t.ratio)),s+r>t.cropImage.offsetHeight&&(r=t.cropImage.offsetHeight-s,t.cropUseRatio&&(i=r*t.ratio)),(0,a.css)(t.cropHandler,{width:i,height:r,left:e,top:s,backgroundPosition:-e-1+"px "+(-s-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()})),Object.values(t.buttons).forEach((i=>{i.onAction((()=>{const r={action:t.activeTab,box:t.activeTab===p?t.resizeBox:t.cropBox};switch(i){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",(e=>{if(!(0,a.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,r,t.hide,(e=>{t.j.alert(e.message)}))}));break;case t.buttons.save:t.onSave(void 0,r,t.hide,(e=>{t.j.alert(e.message)}));break;case t.buttons.reset:t.activeTab===p?((0,a.css)(t.image,{width:null,height:null}),e.value=""+t.naturalWidth,s.value=""+t.naturalHeight,t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}}))}))},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:o.D.defaultOptions.imageeditor;const e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:(0,c.zx)(this.j,"update","Reset"),save:(0,c.zx)(this.j,"save","Save"),saveas:(0,c.zx)(this.j,"save","Save as ...")},this.activeTab=e.resize?p:f,this.editor=(0,h.c)(this.j,this.options);const{resizeBox:s,cropBox:r}=(0,a.refs)(this.editor);this.resize_box=s,this.crop_box=r,this.sizes=this.editor.querySelector(`.${d}__area.${d}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${d}__resizer`),this.cropHandler=this.editor.querySelector(`.${d}__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()}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),l.i.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,"."+d).off("."+d),super.destruct())}};function g(t,e,s,i,r,o){return this.getInstance("ImageEditor",this.o).open(t,((t,n,l,c)=>(0,a.call)("resize"===n.action?this.dataProvider.resize:this.dataProvider.crop,s,i,e,t,n.box).then((t=>{t&&(l(),r&&r())})).catch((t=>{c(t),o&&o(t)}))))}m.calcValueByPercent=(t,e)=>{const s=""+e,i=parseFloat(""+t);let r;return r=/^[-+]?[0-9]+(px)?$/.exec(s),r?parseInt(s,10):(r=/^([-+]?[0-9.]+)%$/.exec(s),r?Math.round(i*(parseFloat(r[1])/100)):i||0)},(0,r.gn)([u.autobind],m.prototype,"hide",null),(0,r.gn)([u.autobind],m.prototype,"open",null),(0,r.gn)([u.autobind],m.prototype,"onTitleModeClick",null),(0,r.gn)([(0,u.debounce)(),u.autobind],m.prototype,"onChangeSizeInput",null),(0,r.gn)([u.autobind],m.prototype,"onResizeHandleMouseDown",null),(0,r.gn)([u.autobind],m.prototype,"onGlobalMouseUp",null),(0,r.gn)([(0,u.throttle)(10)],m.prototype,"onGlobalMouseMove",null),m=i=(0,r.gn)([u.component],m)},4521(t,e,s){"use strict";s.d(e,{c(){return a}});var i=s(14712);const r="jodit-image-editor",o=i.JO.get.bind(i.JO),n=(t,e="jodti-image-editor_active")=>t?e:"",a=(t,e)=>{const s=t.i18n.bind(t),i=(t,e,i=!0)=>`<div class="jodit-form__group">\n\t\t\t<label>${s(t)}</label>\n\n\t\t\t<label class='jodit-switcher'>\n\t\t\t\t<input ${n(i,"checked")} data-ref="${e}" type="checkbox"/>\n\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t</label>\n\t</div>`;return t.create.fromHTML(`<form class="${r} jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div class="${r}__area ${r}__area_resize ${r}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${r}__box"></div>\n\t\t\t\t\t\t\t<div class="${r}__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div class="${r}__area ${r}__area_crop ${n(!e.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${r}__box">\n\t\t\t\t\t\t\t\t<div class="${r}__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="${r}__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div data-area="resize" class="${r}__slider ${r}_active">\n\t\t\t\t\t\t\t<div class="${r}__slider-title">\n\t\t\t\t\t\t\t\t${o("resize")}\n\t\t\t\t\t\t\t\t${s("Resize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${r}__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Width")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Height")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${i("Keep Aspect Ratio","keepAspectRatioResize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div data-area="crop" class="${r}__slider ${n(!e.resize)}'">\n\t\t\t\t\t\t\t<div class="${r}__slider-title">\n\t\t\t\t\t\t\t\t${o("crop")}\n\t\t\t\t\t\t\t\t${s("Crop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${r}__slider-content">\n\t\t\t\t\t\t\t\t${i("Keep Aspect Ratio","keepAspectRatioCrop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t</div>\n\t</form>`)}},27801(t,e,s){"use strict";s.r(e),s.d(e,{Ajax(){return o.t},Alert(){return l.bZ},Async(){return r.e},Button(){return d.zx},CommitStyle(){return y.RP},Component(){return n.wA},Confirm(){return l.I4},ContextMenu(){return a.x},Create(){return u.Q},Dialog(){return l.Vq},Dom(){return c.i},EventEmitter(){return i.vp},EventHandlersStore(){return i.DG},Eventify(){return i.aN},FileBrowser(){return m.f},Helpers(){return g},History(){return b.A},Icon(){return d.JO},ImageEditor(){return v.v},LazyWalker(){return c.b},Plugin(){return h.S},PluginSystem(){return T.h},Popup(){return d.GI},ProgressBar(){return d.ko},Prompt(){return l.NL},Response(){return o.H},STATUSES(){return n.n$},Selection(){return y.Y1},Snapshot(){return _.a},StatusBar(){return w.A},Table(){return C.i},ToolbarButton(){return x.hA},ToolbarCollection(){return E.n},ToolbarContent(){return x.c_},ToolbarEditorCollection(){return S.N},ToolbarSelect(){return x.vT},UIBlock(){return d.eC},UIButton(){return d.y3},UIButtonGroup(){return d.BO},UIButtonState(){return d.Yc},UICheckbox(){return d.mA},UIElement(){return d.u1},UIFileInput(){return d.Z},UIForm(){return d.x4},UIGroup(){return d.qe},UIInput(){return d.u3},UIList(){return d.bz},UIMessages(){return I.D},UISelect(){return d.Cj},UISeparator(){return d.lU},UISpacer(){return d.WT},UITextArea(){return d.GJ},UITooltip(){return d.Ne},Uploader(){return j.Q},View(){return p.G},ViewComponent(){return n.Hr},ViewWithToolbar(){return f.C},defaultNameSpace(){return i.rO},observable(){return i.LO}});var i=s(47981),r=s(76731),o=s(60072),n=s(2581),a=s(39021),l=s(39093),c=s(46879),h=s(7331),u=s(2652),d=s(14712),p=s(21731),f=s(94530),m=s(90033),g=s(76974),v=s(59210),b=s(79737),_=s(53771),y=s(64815),w=s(54408),C=s(45979),S=s(97725),E=s(32596),x=s(2976),j=s(84315),I=s(30463),T=s(41978)},4411(t,e,s){"use strict";s.d(e,{q(){return n}});var i=s(97582),r=s(14712),o=s(75042);let n=class t extends r.u1{className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}};n=(0,i.gn)([o.w],n)},30463(t,e,s){"use strict";s.d(e,{D(){return l}});var i=s(97582),r=s(71737),o=s(82622),n=s(75042),a=s(4411);let l=class t extends o.q{className(){return"UIMessages"}constructor(t,e,s={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=e,this.options=s,this.__messages=new Set}info(t,e){this.__message(t,"info",e)}success(t,e){this.__message(t,"success",e)}error(t,e){this.__message(t,"error",e)}message(t,e,s){this.__message(t,e,s)}__message(t,e="info",s){const i=t+":"+e;if(this.__messages.has(i))return void this.async.updateTimeout(i,s||this.options.defaultTimeout);this.__box.appendChild(this.container);const r=new a.q(this.j,{text:t,variant:e});this.append(r),this.__calcOffsets(),this.__messages.add(i);const o=this.__getRemoveCallback(r,i);this.j.e.on(r.container,"pointerdown",o),this.async.setTimeout(o,{label:i,timeout:s||this.options.defaultTimeout})}__getRemoveCallback(t,e){const s=i=>{i&&i.preventDefault(),t.isInDestruct||(this.async.clearTimeout(e),this.j.e.off(t.container,"pointerdown",s),this.__messages.delete(e),t.setMod("active",!1),this.async.setTimeout((()=>{this.remove(t),t.destruct(),this.__calcOffsets()}),300))};return s}__calcOffsets(){let t=5;this.elements.forEach((e=>{(0,r.i)(e.container,"bottom",t+"px"),t+=e.container.offsetHeight+this.options.defaultOffset}))}};l=(0,i.gn)([n.w],l)},54408(t,e,s){"use strict";s.d(e,{A(){return c}});var i=s(97582),r=s(2581),o=s(9162),n=s(53795),a=s(23839),l=s(13666);let c=class t extends r.Hr{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(){return this.container?.offsetHeight??0}findEmpty(t=!1){const e=this.getElms(t?"item-right":"item");for(let t=0;e.length>t;t+=1)if(!e[t].innerHTML.trim().length)return e[t]}append(t,e=!1){const s=this.findEmpty(e)||this.j.c.div(this.getFullElName("item"));e&&s.classList.add(this.getFullElName("item-right")),s.appendChild(t),this.container?.appendChild(s),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}constructor(t,e){super(t),this.target=e,this.mods={},this.container=t.c.div("jodit-status-bar"),e.appendChild(this.container),this.hide()}destruct(){this.isInDestruct||(this.setStatus(r.n$.beforeDestruct),o.i.safeRemove(this.container),super.destruct())}};c=(0,i.gn)([l.component,(0,l.derive)(n.$,a.F)],c)},45979(t,e,s){"use strict";s.d(e,{i(){return u}});var i=s(97582),r=s(62924),o=s(46879),n=s(76974),a=s(2581),l=s(79102),c=s(13666);const h=new WeakMap;class u extends a.Hr{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}__recalculateStyles(){const t=(0,l.ZO)(this.j,u,"style",!0),e=[];this.selected.forEach((t=>{const s=(0,n.cssPath)(t);s&&e.push(s)})),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();const e=o.i.closest(t,"table",this.j.editor);if(e){const s=u.__selectedByTable.get(e)||new Set;s.add(t),u.__selectedByTable.set(e,s)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();const e=o.i.closest(t,"table",this.j.editor);if(e){const s=u.__selectedByTable.get(e);s&&(s.delete(t),s.size||u.__selectedByTable.delete(e))}}getAllSelectedCells(){return(0,n.toArray)(this.selected)}static __getSelectedCellsByTable(t){const e=u.__selectedByTable.get(t);return e?(0,n.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return u.__getRowsCount(t)}static __getColumnsCount(t){return u.__formalMatrix(t).reduce(((t,e)=>Math.max(t,e.length)),0)}getColumnsCount(t){return u.__getColumnsCount(t)}static __formalMatrix(t,e){const s=[[]],i=(0,n.toArray)(t.rows),r=(t,i)=>{void 0===s[i]&&(s[i]=[]);const r=t.colSpan,o=t.rowSpan;let n,a,l=0;for(;s[i][l];)l+=1;for(a=0;o>a;a+=1)for(n=0;r>n;n+=1){if(void 0===s[i+a]&&(s[i+a]=[]),e&&!1===e(t,i+a,l+n,r,o))return!1;s[i+a][l+n]=t}};for(let t=0;i.length>t;t+=1){const e=(0,n.toArray)(i[t].cells);for(let i=0;e.length>i;i+=1)if(!1===r(e[i],t))return s}return s}formalMatrix(t,e){return u.__formalMatrix(t,e)}static __formalCoordinate(t,e,s=!1){let i=0,r=0,o=1,n=1;return u.__formalMatrix(t,((t,a,l,c,h)=>{if(e===t)return i=a,r=l,o=c||1,n=h||1,s&&(r+=(c||1)-1,i+=(h||1)-1),!1})),[i,r,o,n]}formalCoordinate(t,e,s=!1){return u.__formalCoordinate(t,e,s)}static __appendRow(t,e,s,i){let r;if(e)r=e.cloneNode(!0),(0,n.$$)("td,th",e).forEach((t=>{const e=(0,n.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){const s=parseInt(e,10)-1;(0,n.attr)(t,"rowspan",s>1?s:null)}})),(0,n.$$)("td,th",r).forEach((t=>{t.innerHTML=""}));else{const e=u.__getColumnsCount(t);r=i.element("tr");for(let t=0;e>t;t+=1)r.appendChild(i.element("td"))}s&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(r,e.nextSibling):!s&&e?e.parentNode&&e.parentNode.insertBefore(r,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(r)}appendRow(t,e,s){return u.__appendRow(t,e,s,this.j.createInside)}static __removeRow(t,e){const s=u.__formalMatrix(t);let i;const r=t.rows[e];s[e].forEach(((a,l)=>{if(i=!1,0>e-1||s[e-1][l]!==a)if(s[e+1]&&s[e+1][l]===a){if(a.parentNode===r&&a.parentNode.nextSibling){i=!0;let r=l+1;for(;s[e+1][r]===a;)r+=1;const n=o.i.next(a.parentNode,(t=>o.i.isTag(t,"tr")),t);n&&(s[e+1][r]?n.insertBefore(a,s[e+1][r]):n.appendChild(a))}}else o.i.safeRemove(a);else i=!0;if(i&&(a.parentNode===r||a!==s[e][l-1])){const t=a.rowSpan;(0,n.attr)(a,"rowspan",t-1>1?t-1:null)}})),o.i.safeRemove(r)}removeRow(t,e){return u.__removeRow(t,e)}static __appendColumn(t,e,s,i){const r=u.__formalMatrix(t);let a;for((void 0===e||0>e)&&(e=u.__getColumnsCount(t)-1),a=0;r.length>a;a+=1){const t=i.element("td"),l=r[a][e];let c=!1;s?(r[a]&&l&&e+1>=r[a].length||l!==r[a][e+1])&&(l.nextSibling?o.i.before(l.nextSibling,t):l.parentNode&&l.parentNode.appendChild(t),c=!0):(0>e-1||r[a][e]!==r[a][e-1]&&r[a][e].parentNode)&&(o.i.before(r[a][e],t),c=!0),c||(0,n.attr)(r[a][e],"colspan",parseInt((0,n.attr)(r[a][e],"colspan")||"1",10)+1)}}appendColumn(t,e,s){return u.__appendColumn(t,e,s,this.j.createInside)}static __removeColumn(t,e){const s=u.__formalMatrix(t);let i;s.forEach(((t,r)=>{const a=t[e];if(i=!1,0>e-1||s[r][e-1]!==a?t.length>e+1&&s[r][e+1]===a?i=!0:o.i.safeRemove(a):i=!0,i&&(0>r-1||a!==s[r-1][e])){const t=a.colSpan;(0,n.attr)(a,"colspan",t-1>1?""+(t-1):null)}}))}removeColumn(t,e){return u.__removeColumn(t,e)}static __getSelectedBound(t,e){const s=[[1/0,1/0],[0,0]],i=u.__formalMatrix(t);let r,o,n;for(r=0;i.length>r;r+=1)for(o=0;i[r]&&i[r].length>o;o+=1)e.includes(i[r][o])&&(s[0][0]=Math.min(r,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(r,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(r=s[0][0];s[1][0]>=r;r+=1)for(n=1,o=s[0][1];s[1][1]>=o;o+=1){for(;i[r]&&i[r][o-n]&&i[r][o]===i[r][o-n];)s[0][1]=Math.min(o-n,s[0][1]),s[1][1]=Math.max(o-n,s[1][1]),n+=1;for(n=1;i[r]&&i[r][o+n]&&i[r][o]===i[r][o+n];)s[0][1]=Math.min(o+n,s[0][1]),s[1][1]=Math.max(o+n,s[1][1]),n+=1;for(n=1;i[r-n]&&i[r][o]===i[r-n][o];)s[0][0]=Math.min(r-n,s[0][0]),s[1][0]=Math.max(r-n,s[1][0]),n+=1;for(n=1;i[r+n]&&i[r][o]===i[r+n][o];)s[0][0]=Math.min(r+n,s[0][0]),s[1][0]=Math.max(r+n,s[1][0]),n+=1}return s}getSelectedBound(t,e){return u.__getSelectedBound(t,e)}static __normalizeTable(t){let e,s,i,r;const o=[],a=u.__formalMatrix(t);for(s=0;a[0].length>s;s+=1){for(i=1e6,r=!1,e=0;a.length>e;e+=1)if(void 0!==a[e][s]){if(2>a[e][s].colSpan){r=!0;break}i=Math.min(i,a[e][s].colSpan)}if(!r)for(e=0;a.length>e;e+=1)void 0!==a[e][s]&&u.__mark(a[e][s],"colspan",a[e][s].colSpan-i+1,o)}for(e=0;a.length>e;e+=1){for(i=1e6,r=!1,s=0;a[e].length>s;s+=1)if(void 0!==a[e][s]){if(2>a[e][s].rowSpan){r=!0;break}i=Math.min(i,a[e][s].rowSpan)}if(!r)for(s=0;a[e].length>s;s+=1)void 0!==a[e][s]&&u.__mark(a[e][s],"rowspan",a[e][s].rowSpan-i+1,o)}for(e=0;a.length>e;e+=1)for(s=0;a[e].length>s;s+=1)void 0!==a[e][s]&&(a[e][s].hasAttribute("rowspan")&&1===a[e][s].rowSpan&&(0,n.attr)(a[e][s],"rowspan",null),a[e][s].hasAttribute("colspan")&&1===a[e][s].colSpan&&(0,n.attr)(a[e][s],"colspan",null),a[e][s].hasAttribute("class")&&!(0,n.attr)(a[e][s],"class")&&(0,n.attr)(a[e][s],"class",null));u.__unmark(o)}normalizeTable(t){return u.__normalizeTable(t)}static __mergeSelected(t,e){const s=[],i=u.__getSelectedBound(t,u.__getSelectedCellsByTable(t));let a,l=0,c=null,h=0,p=0,f=0;const m=new Set,g=[];i&&(i[0][0]-i[1][0]||i[0][1]-i[1][1])&&(u.__formalMatrix(t,((t,r,o,v,b)=>{if(!(i[0][0]>r||r>i[1][0]||i[0][1]>o||o>i[1][1])){if(a=t,m.has(a))return;m.add(a),r===i[0][0]&&a.style.width&&(l+=a.offsetWidth),""!==(0,n.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&s.push(t.innerHTML),v>1&&(p+=v-1),b>1&&(f+=b-1),c?(u.__mark(a,"remove",1,g),d(e).removeSelection(a)):(c=t,h=o)}})),p=i[1][1]-i[0][1]+1,f=i[1][0]-i[0][0]+1,c&&(p>1&&u.__mark(c,"colspan",p,g),f>1&&u.__mark(c,"rowspan",f,g),l&&(u.__mark(c,"width",(l/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",g),h&&u.__setColumnWidthByDelta(t,h,0,!0,g)),c.innerHTML=s.join("<br/>"),d(e).addSelection(c),m.delete(c),u.__unmark(g),u.__normalizeTable(t),(0,n.toArray)(t.rows).forEach(((t,e)=>{t.cells.length||o.i.safeRemove(t)}))))}mergeSelected(t){return u.__mergeSelected(t,this.j)}static __splitHorizontal(t,e){let s,i,r,n,a;const l=[];u.__getSelectedCellsByTable(t).forEach((c=>{i=e.createInside.element("td"),i.appendChild(e.createInside.element("br")),r=e.createInside.element("tr"),s=u.__formalCoordinate(t,c),2>c.rowSpan?(u.__formalMatrix(t,((t,e,i)=>{s[0]===e&&s[1]!==i&&t!==c&&u.__mark(t,"rowspan",t.rowSpan+1,l)})),o.i.after(o.i.closest(c,"tr",t),r),r.appendChild(i)):(u.__mark(c,"rowspan",c.rowSpan-1,l),u.__formalMatrix(t,((e,i,r)=>{i>s[0]&&s[0]+c.rowSpan>i&&s[1]>r&&e.parentNode.rowIndex===i&&(a=e),i>s[0]&&e===c&&(n=t.rows[i])})),a?o.i.after(a,i):n.insertBefore(i,n.firstChild)),c.colSpan>1&&u.__mark(i,"colspan",c.colSpan,l),u.__unmark(l),d(e).removeSelection(c)})),this.__normalizeTable(t)}splitHorizontal(t){return u.__splitHorizontal(t,this.j)}static __splitVertical(t,e){let s,i,n;const a=[];u.__getSelectedCellsByTable(t).forEach((l=>{s=u.__formalCoordinate(t,l),2>l.colSpan?u.__formalMatrix(t,((t,e,i)=>{s[1]===i&&s[0]!==e&&t!==l&&u.__mark(t,"colspan",t.colSpan+1,a)})):u.__mark(l,"colspan",l.colSpan-1,a),i=e.createInside.element("td"),i.appendChild(e.createInside.element("br")),l.rowSpan>1&&u.__mark(i,"rowspan",l.rowSpan,a);const c=l.offsetWidth;o.i.after(l,i),n=c/t.offsetWidth/2,u.__mark(l,"width",(100*n).toFixed(r.ACCURACY)+"%",a),u.__mark(i,"width",(100*n).toFixed(r.ACCURACY)+"%",a),u.__unmark(a),d(e).removeSelection(l)})),u.__normalizeTable(t)}splitVertical(t){return u.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,e,s,i,o){const n=u.__formalMatrix(t);let a=0;for(let i=0;n.length>i;i+=1){const l=n[i][e];if(1>=l.colSpan||1>=n.length){u.__mark(l,"width",((l.offsetWidth+s)/t.offsetWidth*100).toFixed(r.ACCURACY)+"%",o),a=i;break}}for(let t=a+1;n.length>t;t+=1)u.__mark(n[t][e],"width",null,o);i||u.__unmark(o)}setColumnWidthByDelta(t,e,s,i,r){return u.__setColumnWidthByDelta(t,e,s,i,r)}static __mark(t,e,s,i){i.push(t);const r=h.get(t)??{};r[e]=void 0===s?1:s,h.set(t,r)}static __unmark(t){t.forEach((t=>{const e=h.get(t);e&&(Object.keys(e).forEach((s=>{const i=e[s];switch(s){case"remove":o.i.safeRemove(t);break;case"rowspan":(0,n.attr)(t,"rowspan",(0,n.isNumber)(i)&&i>1?i:null);break;case"colspan":(0,n.attr)(t,"colspan",(0,n.isNumber)(i)&&i>1?i:null);break;case"width":null==i?(t.style.removeProperty("width"),(0,n.attr)(t,"style")||(0,n.attr)(t,"style",null)):t.style.width=""+i}delete e[s]})),h.delete(t))}))}}u.__selectedByTable=new WeakMap,(0,i.gn)([(0,c.debounce)()],u.prototype,"__recalculateStyles",null);const d=t=>t.getInstance("Table",t.o)},40932(t,e,s){"use strict";s.d(e,{h(){return f}});var i=s(97582),r=s(64856),o=s(13666),n=s(46879),a=s(80397),l=s(55027),c=s(76974),h=s(30052),u=s(32596),d=s(74028),p=s(90160);let f=class t extends r.y3{className(){return"ToolbarButton"}get toolbar(){return this.closest(u.n)}update(){const{control:t,state:e}=this,s=this.closest(u.n);if(!s)return;const i=t.value?.(s.jodit,this);void 0!==i&&(e.value=i),e.disabled=this.__calculateDisabledStatus(s),e.activated=this.__calculateActivatedStatus(s),t.update?.(s.jodit,this)}__calculateActivatedStatus(t){return!((0,c.isJoditObject)(this.j)&&!this.j.editorIsActive||!this.control.isActive?.(this.j,this)&&(!t||!t.shouldBeActive(this)))}__calculateDisabledStatus(t){return!(!this.j.o.disabled&&(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))&&!this.control.isDisabled?.(this.j,this)&&(!t||!t.shouldBeDisabled(this)))}onChangeActivated(){(0,c.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,c.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,c.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){const t=this.componentName,e=this.j.c.span(t),s=super.createContainer();(0,c.attr)(e,"role","listitem"),s.classList.remove(t),s.classList.add(t+"__button"),Object.defineProperty(s,"component",{value:this}),e.appendChild(s);const i=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${h.J.get("chevron")}</span>`);return s.appendChild(i),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):n.i.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const t=this.state.disabled?"disabled":null;(0,c.attr)(this.trigger,"disabled",t),(0,c.attr)(this.button,"disabled",t),(0,c.attr)(this.container,"disabled",t)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.state={...(0,r.Yc)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const i=this.getElm("button");this.button=i,Object.defineProperty(i,"component",{value:this,configurable:!0});const o=this.getElm("trigger");this.trigger=o,o.remove(),t.e.on([this.button,this.trigger],"mousedown",(t=>t.preventDefault())),this.onAction(this.onClick),this.hookStatus(d.n.ready,(()=>{this.__initFromControl(),this.update()})),e.mods&&Object.keys(e.mods).forEach((t=>{e.mods&&this.setMod(t,e.mods[t])}))}__initFromControl(){const{control:t,state:e}=this;this.updateSize(),e.name=t.name;const{textIcons:s}=this.j.o;if(!0===s||(0,c.isFunction)(s)&&s(t.name)||t.template)e.icon=(0,r.Yc)().icon,e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{const s=t.icon||t.name;e.icon.name=h.J.exists(s)||this.j.o.extraIcons?.[s]?s:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=this.j.i18n((0,c.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),e.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(t){if(this.openedPopup)return void this.__closePopup();const{control:e}=this;if(t.buffer={actionTrigger:this},e.list)return this.__openControlList(e);if((0,c.isFunction)(e.popup)){const t=this.openPopup();if(t.parentElement=this,!1!==this.j.e.fire((0,c.camelCase)(`before-${e.name}-open-popup`),this.target,e,t)){const s=this.toolbar?.getTarget(this)??this.target??null,i=e.popup(this.j,s,this.__closePopup,this);i&&t.setContent((0,c.isString)(i)?this.j.c.fromHTML(i):i).open((()=>(0,c.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0)}this.j.e.fire((0,c.camelCase)(`after-${e.name}-open-popup`),t.container)}}__openControlList(t){const e=this.jodit.options.controls??{},s=t=>(0,p.z)(t,e),i=t.list,r=this.openPopup(),o=(0,l.RP)(this.j);r.parentElement=this,o.parentElement=r,o.mode="vertical";const n=(e,i)=>{if((0,c.isString)(i)&&s(i))return{name:""+i,...s(i)};if((0,c.isString)(e)&&s(e))return{name:""+e,...s(e),..."object"==typeof i?i:{}};(t=>(0,c.isPlainObject)(t)&&"title"in t&&"value"in t)(e)&&(i=e.value,e=e.title);const{childTemplate:r}=t,o={name:""+e,template:r&&((t,e,s)=>r(t,e,s,this)),exec:t.childExec?(e,s,i)=>t.childExec?.(e,s,{...i,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:[],e,i]};return(0,c.isString)(i)&&(o.text=i),o};o.build((0,c.isArray)(i)?i.map(n):(0,c.keys)(i,!1).map((t=>n(t,i[t]))),this.target),r.setContent(o).open((()=>(0,c.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&n.i.isNode(t.target)&&(n.i.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new a.G(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)}onClick(t){const{control:e}=this;if((0,c.isFunction)(e.exec)){const s=this.toolbar?.getTarget(this)??this.target??null,i=e.exec(this.j,s,{control:e,originalEvent:t,button:this});if(!1!==i&&!0!==i&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==i)return}return e.list?this.__openControlList(e):(0,c.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,c.call)((0,c.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),e.command||e.name,!1,e.args&&e.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}};(0,i.gn)([o.cacheHTML],f.prototype,"createContainer",null),(0,i.gn)([(0,o.watch)("state.hasTrigger",{immediately:!1})],f.prototype,"onChangeHasTrigger",null),(0,i.gn)([(0,o.watch)("trigger:click")],f.prototype,"onTriggerClick",null),(0,i.gn)([o.autobind],f.prototype,"onOutsideClick",null),(0,i.gn)([o.autobind],f.prototype,"__closePopup",null),f=(0,i.gn)([o.component],f)},16977(t,e,s){"use strict";s.d(e,{c(){return l}});var i=s(97582),r=s(64856),o=s(46879),n=s(76974),a=s(13666);let l=class t extends r.y3{className(){return"ToolbarContent"}update(){const t=this.control.getContent(this.j,this);((0,n.isString)(t)||t.parentNode!==this.container)&&(o.i.detach(this.container),this.container.appendChild((0,n.isString)(t)?this.j.create.fromHTML(t):t)),super.update()}createContainer(){return this.j.c.span(this.componentName)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.container.classList.add(`${this.componentName}_${this.clearName(e.name)}`),(0,n.attr)(this.container,"role","content")}};l=(0,i.gn)([a.component],l)},2976(t,e,s){"use strict";s.d(e,{c_(){return r.c},hA(){return i.h},vT(){return o.v}});var i=s(40932),r=s(16977),o=s(38178)},38178(t,e,s){"use strict";s.d(e,{v(){return a}});var i=s(97582),r=s(13666),o=s(2926),n=s(40932);let a=class t extends n.h{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";const{list:t,data:e}=this.control;if(t){let s=this.state.value||(e&&(0,o.H)(e.currentValue)?e.currentValue:void 0);s||(s=Object.keys(t)[0]);const i=""+(t[""+s]||s);this.state.text=this.control.textTemplate?.(this.jodit,i)??i}}};a=(0,i.gn)([r.component],a)},32596(t,e,s){"use strict";s.d(e,{n(){return l}});var i=s(97582),r=s(60701),o=s(14712),n=s(13666),a=s(55027);let l=class t extends o.bz{className(){return"ToolbarCollection"}get firstButton(){const[t]=this.buttons;return t||null}makeButton(t,e=null){return(0,a.gu)(this.j,t,e)}makeSelect(t,e=null){return(0,a.OT)(this.j,t,e)}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)}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",this.__tooltip=new o.Ne(this.jodit)}__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,r.vU)("The method is not implemented for this class.")}build(t,e=null){const s=this.j.e.fire("beforeToolbarBuild",t);return s&&(t=s),super.build(t,e),this}destruct(){this.isDestructed||(this.__tooltip?.destruct(),this.__tooltip=null,this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}};(0,i.gn)([n.autobind],l.prototype,"__immediateUpdate",null),(0,i.gn)([(0,n.debounce)()],l.prototype,"update",null),(0,i.gn)([(0,n.hook)("ready")],l.prototype,"__initEvents",null),l=(0,i.gn)([n.component],l)},97725(t,e,s){"use strict";s.d(e,{N(){return c}});var i=s(97582),r=s(32596),o=s(62924),n=s(46879),a=s(76974),l=s(13666);let c=class t extends r.n{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){const e=super.shouldBeDisabled(t);if(void 0!==e)return e;const s=void 0===t.control.mode?o.MODE_WYSIWYG:t.control.mode;return!(s===o.MODE_SPLIT||s===this.j.getRealMode())}shouldBeActive(t){const e=super.shouldBeActive(t);if(void 0!==e)return e;const s=this.j.selection?this.j.s.current():null;if(!s)return!1;let i;if(t.control.tags){const e=t.control.tags;if(i=s,n.i.up(i,(t=>{if(t&&-1!==e.indexOf(t.nodeName.toLowerCase()))return!0}),this.j.editor))return!0}if(t.control.css){const e=t.control.css;if(i=s,n.i.up(i,(t=>{if(t&&!n.i.isText(t)&&!n.i.isComment(t))return this.checkActiveStatus(e,t)}),this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}constructor(t){super(t),this.checkActiveStatus=(t,e)=>{let s=0,i=0;return Object.keys(t).forEach((r=>{const o=t[r];(0,a.isFunction)(o)?o(this.j,""+(0,a.css)(e,r))&&(s+=1):-1!==o.indexOf(""+(0,a.css)(e,r))&&(s+=1),i+=1})),i===s},this.prependInvisibleInput(this.container)}prependInvisibleInput(t){const e=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});n.i.appendChildFirst(t,e)}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")}};c=(0,i.gn)([l.component],c)},55027(t,e,s){"use strict";s.d(e,{OT(){return u},RP(){return c},gu(){return h}});var i=s(76974),r=s(32596),o=s(97725),n=s(40932),a=s(16977),l=s(38178);function c(t,e){const s=(0,i.isJoditObject)(t)?new o.N(t):new r.n(t);return t.o.textIcons&&s.container.classList.add("jodit_text_icons"),e&&(s.parentElement=e),t.o.toolbarButtonSize&&(s.buttonSize=t.o.toolbarButtonSize),s}function h(t,e,s=null){if((0,i.isFunction)(e.getContent))return new a.c(t,e,s);const r=new n.h(t,e,s);return r.state.tabIndex=t.o.allowTabNavigation?0:-1,r}function u(t,e,s=null){return new l.v(t,e,s)}},75771(t,e,s){"use strict";var i=s(37446),r=s(63738),o=s(8133);i.D.prototype.enableDragAndDropFileToEditor=!0,i.D.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:t=>`files[${t}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:t=>t,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,r.k)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,e,s)=>[t,e,s],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,e)=>t+e,defaultHandlerSuccess(t){const e=this.j||this;(0,o.Z)(e)&&t.files&&t.files.length&&t.files.forEach(((s,i)=>{const[r,o]=t.isImages&&t.isImages[i]?["img","src"]:["a","href"],n=e.createInside.element(r);n.setAttribute(o,t.baseurl+s),"a"===r&&(n.textContent=e.o.uploader.getDisplayName.call(this,t.baseurl,s)),"img"===r?e.s.insertImage(n,null,e.o.imageDefaultWidth):e.s.insertNode(n)}))},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"}}},79762(t,e,s){"use strict";s.d(e,{i(){return r}});var i=s(76974);function r(t,e){if((0,i.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);const s=t.ow.FormData;if(void 0!==s){if(e instanceof s)return e;if((0,i.isString)(e))return e;const t=new s,r=e;return Object.keys(r).forEach((e=>{t.append(e,r[e])})),t}return e}},16907(t,e,s){"use strict";function i(t){const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i);for(let t=0;e.length>t;t+=1)r[t]=e.charCodeAt(t);return new Blob([r],{type:s})}s.d(e,{O(){return i}})},33726(t,e,s){"use strict";s.d(e,{Ap(){return o.A},OP(){return r.O},g0(){return i.g},il(){return n.i},lW(){return o.l},nw(){return a},tc(){return l}});var i=s(93665),r=s(16907),o=(s(79762),s(49094)),n=s(73665);function a(t){return!!(t&&t.files&&t.files.length>0)}function l(t){return!!(t&&t.items&&t.items.length>0)}},93665(t,e,s){"use strict";s.d(e,{g(){return l}});var i=s(62924),r=s(79102),o=s(76974),n=s(46879),a=s(33726);function l(t,e,s,l,c){if(e&&(!e.types.length||e.types[0]!==i.TEXT_PLAIN)){const e=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,r.ZO)(t.j,t.constructor).appendChild(e);const i=(0,o.isJoditObject)(t.j)?t.j.s.save():null,h=()=>i&&(0,o.isJoditObject)(t.j)&&t.j.s.restore();e.focus(),t.j.async.setTimeout((()=>{const i=e.firstChild;if(n.i.safeRemove(e),i&&i.hasAttribute("src")){const e=(0,o.attr)(i,"src")||"";h(),(0,a.il)(t,[(0,a.OP)(e)],s,l).finally(c)}}),t.j.defaultTimeout)}}},73665(t,e,s){"use strict";s.d(e,{i(){return o}});var i=s(76974),r=s(49094);function o(t,e,s,o,n){if(!e)return Promise.reject((0,i.error)("Need files"));const{o:a}=t;let l=(0,i.toArray)(e);if(!l.length)return Promise.reject((0,i.error)("Need files"));const c=[];if(a.insertImageAsBase64URI){let e,r;for(r=0;l.length>r;r+=1)if(e=l[r],e&&e.type){const o=e.type.match(/\/([a-z0-9]+)/i),n=o[1]?o[1].toLowerCase():"";if(a.imagesExtensions.includes(n)){const o=new FileReader;c.push(t.j.async.promise(((r,n)=>{o.onerror=n,o.onloadend=()=>{const e={baseurl:"",files:[o.result],isImages:[!0]};((0,i.isFunction)(s)?s:a.defaultHandlerSuccess).call(t,e),r(e)},o.readAsDataURL(e)}))),l[r]=null}}}if(l=l.filter((t=>t)),l.length){const e=new FormData;let h;e.append(a.pathVariableName,t.path),e.append("source",t.source);for(let s=0;l.length>s;s+=1)if(h=l[s],h){const i=/\.[\d\w]+$/.test(h.name),r=h.type.match(/\/([a-z0-9]+)/i),o=r&&r[1]?r[1].toLowerCase():"";let n=l[s].name||(""+Math.random()).replace(".","");if(!i&&o){let t=o;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(n)||(n+="."+o)}const[c,u,d]=a.processFileName.call(t,a.filesVariableName(s),l[s],n);e.append(c,u,d)}n&&n(e),a.data&&(0,i.isPlainObject)(a.data)&&Object.keys(a.data).forEach((t=>{e.append(t,a.data[t])})),a.prepareData.call(t,e),c.push((0,r.l)(t,e).then((e=>a.isSuccess.call(t,e)?(((0,i.isFunction)(s)?s:a.defaultHandlerSuccess).call(t,a.process.call(t,e)),e):(((0,i.isFunction)(o)?o:a.defaultHandlerError).call(t,(0,i.error)(a.getMessage.call(t,e))),e))).then((()=>{t.j.events&&t.j.e.fire("filesWereUploaded")})))}return Promise.all(c)}},49094(t,e,s){"use strict";s.d(e,{A(){return n},l(){return a}});var i=s(60072),r=s(76974),o=s(79762);const n=new WeakMap;function a(t,e){const s=(0,o.i)(t,e),a=e=>{const s=new i.t({xhr(){const e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(t.j.progressbar.show().progress(10),e.upload.addEventListener("progress",(e=>{if(e.lengthComputable){let s=e.loaded/e.total;s*=100,t.j.progressbar.show().progress(s),100>s||t.j.progressbar.hide()}}),!1)):t.j.progressbar.hide(),e},method:t.o.method||"POST",data:e,url:(0,r.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1});let o=n.get(t);return o||(o=new Set,n.set(t,o)),o.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(),o?.delete(s)}))};return(0,r.isPromise)(s)?s.then(a).catch((e=>{t.o.error.call(t,e)})):a(s)}},84315(t,e,s){"use strict";s.d(e,{Q(){return l}});var i=s(37446),r=s(62924),o=s(76974),n=s(2581),a=s(33726);s(75771);class l extends n.Hr{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,e,s){const i=()=>{t.classList.remove("jodit_drag_hover")},o=this,n=t=>{let n,l,c;const h=t.clipboardData,u=t=>{l&&(t.append("extension",c),t.append("mimetype",l.type))};if(!r.IS_IE&&(0,a.nw)(h))return(0,a.il)(o,h.files,e,s).finally(i),!1;if(r.IS_IE&&!r.IS_ES_NEXT)return(0,a.g0)(o,h,e,s,i);if((0,a.tc)(h)){const{items:r}=h;for(n=0;r.length>n;n+=1)if("file"===r[n].kind&&"image/png"===r[n].type){if(l=r[n].getAsFile(),l){const t=l.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,a.il)(o,[l],e,s,u).finally(i)}t.preventDefault();break}}};o.j&&o.j.editor!==t?o.j.e.on(t,"paste",n):o.j.e.on("beforePaste",n),this.attachEvents(t,e,s,i)}attachEvents(t,e,s,i){const r=this;r.j.e.on(t,"dragend dragover dragenter dragleave drop",(t=>{t.preventDefault()})).on(t,"dragover",(e=>{((0,a.nw)(e.dataTransfer)||(0,a.tc)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())})).on(t,"dragend dragleave",(e=>{t.classList.remove("jodit_drag_hover"),(0,a.nw)(e.dataTransfer)&&e.preventDefault()})).on(t,"drop",(o=>{t.classList.remove("jodit_drag_hover"),(0,a.nw)(o.dataTransfer)&&(o.preventDefault(),o.stopImmediatePropagation(),(0,a.il)(r,o.dataTransfer.files,e,s).finally(i))}));const o=t.querySelector("input[type=file]");o&&r.j.e.on(o,"change",(()=>{(0,a.il)(r,o.files,e,s).then((()=>{o.value="",/safari/i.test(navigator.userAgent)||(o.type="",o.type="file")})).finally(i)}))}uploadRemoteImage(t,e,s){const i=this,{o:r}=i,n=(0,o.isFunction)(s)?s:r.defaultHandlerError;(0,a.lW)(i,{action:"fileUploadRemote",url:t}).then((t=>{r.isSuccess.call(i,t)?((0,o.isFunction)(e)?e:r.defaultHandlerSuccess).call(i,r.process.call(i,t)):n.call(i,(0,o.error)(r.getMessage.call(i,t)))})).catch((t=>n.call(i,t)))}constructor(t,e){super(t),this.path="",this.source="default",this.options=(0,o.ConfigProto)(e||{},(0,o.ConfigProto)(i.D.defaultOptions.uploader,(0,o.isJoditObject)(t)?t.o.uploader:{}))}destruct(){this.setStatus(n.n$.beforeDestruct);const t=a.Ap.get(this);t&&(t.forEach((t=>{try{t.destruct()}catch{}})),t.clear()),super.destruct()}}},59867(t,e,s){"use strict";s.d(e,{Y(){return a}});var i=s(76974),r=s(14712),o=s(46879),n=s(45394);r.JO.set("palette",s.n(n)());const a=(t,e,s)=>{const n="jodit-color-picker",a=(0,i.normalizeColor)(s),l=t.c.div(n),c=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:r.JO.get("palette"),h=t=>{const e=[];return(0,i.isPlainObject)(t)?Object.keys(t).forEach((s=>{e.push(`<div class="${n}__group ${n}__group-${s}">`),e.push(h(t[s])),e.push("</div>")})):(0,i.isArray)(t)&&t.forEach((t=>{e.push(`<span class='${n}__color-item ${a===t?n+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)})),e.join("")};l.appendChild(t.c.fromHTML(`<div class="${n}__groups">${h(t.o.colors)}</div>`)),l.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${n}__extra"></div>`));const{extra:u}=(0,i.refs)(l);return t.o.showBrowserColorPicker&&(0,i.hasBrowserColorPicker)()&&(u.appendChild(t.c.fromHTML(`<div class="${n}__native">${c}<input type="color" value="#ffffff"/></div>`)),t.e.on(l,"change",(t=>{t.stopPropagation();const s=t.target;if(!s||!s.tagName||!o.i.isTag(s,"input"))return;const r=s.value||"";(0,i.isFunction)(e)&&e(r),t.preventDefault()}))),t.e.on(l,"mousedown touchend",(s=>{s.stopPropagation(),s.preventDefault();let r=s.target;if(r&&r.tagName&&!o.i.isTag(r,"svg")&&!o.i.isTag(r,"path")||!r.parentNode||(r=o.i.closest(r.parentNode,"span",t.editor)),!o.i.isTag(r,"span")||!r.classList.contains(n+"__color-item"))return;const a=(0,i.attr)(r,"-color")||"";e&&(0,i.isFunction)(e)&&e(a)})),t.e.fire("afterGenerateColorPicker",l,u,e,a),l}},64569(t,e,s){"use strict";s.d(e,{o(){return a}});var i=s(76974),r=s(9162),o=s(14712),n=s(5436);const a=(t,e,s,a,c=!0)=>{let h;const u=[];if(e.upload&&t.o.uploader&&(t.o.uploader.url||t.o.uploader.insertImageAsBase64URI)){const s=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(s,(s=>{const r=(0,i.isFunction)(e.upload)?e.upload:t.o.uploader.defaultHandlerSuccess;(0,i.isFunction)(r)&&r.call(t,s),t.e.fire("closeAllPopups")}),(e=>{t.message.error(e.message),t.e.fire("closeAllPopups")})),u.push({icon:"upload",name:"Upload",content:s})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&u.push({icon:"folder",name:"Browse",content(){a&&a(),e.filebrowser&&t.filebrowser.open(e.filebrowser,c)}}),e.url){const n=new o.y3(t,{type:"submit",variant:"primary",text:"Insert"}),a=new o.x4(t,[new o.u3(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new o.u3(t,{name:"text",label:"Alternative text"}),new o.eC(t,[n])]);h=null,!s||r.i.isText(s)||r.i.isComment(s)||!r.i.isTag(s,"img")&&!(0,i.$$)("img",s).length||(h="IMG"===s.tagName?s:(0,i.$$)("img",s)[0],l(a.container,"input[name=url]",(0,i.attr)(h,"src")),l(a.container,"input[name=text]",(0,i.attr)(h,"alt")),n.state.text="Update"),s&&r.i.isTag(s,"a")&&(l(a.container,"input[name=url]",(0,i.attr)(s,"href")),l(a.container,"input[name=text]",(0,i.attr)(s,"title")),n.state.text="Update"),a.onSubmit((s=>{(0,i.isFunction)(e.url)&&e.url.call(t,s.url,s.text)})),u.push({icon:"link",name:"URL",content:a.container})}return(0,n.I)(t,u)};function l(t,e,s){const i=t.querySelector(e);return i?(s&&(i.value=s),i.value):""}},6658(t,e,s){"use strict";s.d(e,{IL(){return r.I},YW(){return i.Y},ov(){return o.o}});var i=s(59867),r=s(5436),o=s(64569)},5436(t,e,s){"use strict";s.d(e,{I(){return l}});var i=s(76974),r=s(69099),o=s(14712),n=s(2581),a=s(9162);const l=(t,e,s)=>{const l=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),h=t.c.div("jodit-tabs__buttons"),u={},d=[];let p="",f=0;l.appendChild(h),l.appendChild(c);const m=t=>{u[t]&&(d.forEach((t=>{t.state.activated=!1})),(0,i.$$)(".jodit-tab",c).forEach((t=>{t.classList.remove("jodit-tab_active")})),u[t].button.state.activated=!0,u[t].tab.classList.add("jodit-tab_active"))};if(e.forEach((({icon:i,name:l,content:g})=>{const v=t.c.div("jodit-tab"),b=(0,o.zx)(t,i||l,l);t.e.on(b.container,"mousedown",(t=>t.preventDefault())),p||(p=l),h.appendChild(b.container),d.push(b),b.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,r.m)(g)?v.appendChild(t.c.div("jodit-tab_empty")):v.appendChild(n.wA.isInstanceOf(g,o.u1)?g.container:g),c.appendChild(v),b.onAction((()=>(m(l),(0,r.m)(g)&&!a.i.isElement(g)&&g.call(t),s&&(s.__activeTab=l),!1))),u[l]={button:b,tab:v},f+=1})),!f)return l;if((0,i.$$)("a",h).forEach((t=>{t.style.width=(100/f).toFixed(10)+"%"})),m(s&&s.__activeTab&&u[s.__activeTab]?s.__activeTab:p),s){let t=s.__activeTab;Object.defineProperty(s,"__activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,m(e)}})}return l}},74772(t,e,s){"use strict";var i=s(37446),r=s(76974),o=s(62924),n=s(79102),a=s(30052),l=s(34953),c=s.n(l);i.D.prototype.controls.about={exec(t){const e=t.dlg({closeOnClickOverlay:!0}),s=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(s("About Jodit")).setContent(`<div class="jodit-about">\n\t\t\t\t\t<div>${s("Jodit Editor")} v.${t.getVersion()}</div>\n\t\t\t\t\t<div>${s("License: %s",(0,r.isLicense)(t.o.license)?(0,r.normalizeLicense)(t.o.license):"MIT")}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="${o.HOMEPAGE}" target="_blank">${o.HOMEPAGE}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">${s("Jodit User's Guide")}</a>\n\t\t\t\t\t\t${s("contains detailed help for using")}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>${s("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>\n\t\t\t\t</div>`),(0,r.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:o.MODE_SOURCE+o.MODE_WYSIWYG},n.pw.add("about",(t=>{t.registerButton({name:"about",group:"info"})})),a.J.set("about",c())},68845(t,e,s){"use strict";var i=s(97582),r=s(27801),o=s(76974),n=s(13666),a=s(79102);s(83542);const l="addnewline";class c extends r.Plugin{constructor(){super(...arguments),this.__line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${r.Icon.get("enter")}</span></div>`),this.__isMatchedTag=t=>!(!t||!this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase())),this.__isBeforeContent=!1,this.__lineInFocus=!1,this.__isShown=!1,this.__hideForce=()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,r.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))},this.__canGetFocus=t=>null!=t&&r.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName),this.__onClickLine=t=>{const e=this.j,s=e.createInside.element(e.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===e.editor?r.Dom.prepend(e.editor,s):this.__current.parentNode.insertBefore(s,this.__current):e.editor.appendChild(s),e.s.setCursorIn(s),(0,o.scrollIntoViewIfNeeded)(s,e.editor,e.ed),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",(t=>{t.stopPropagation()})).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",(()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0})).on(this.__line,"mouseleave",(()=>{this.__lineInFocus=!1})).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){const t=this.j;t.e.off(t.editor,"."+l).off(t.container,"."+l).on([t.ow,t.ew,t.editor],"scroll."+l,this.__hideForce).on(t.editor,"click."+l,this.__hide).on(t.container,"mouseleave."+l,this.__hide).on(t.editor,"mousemove."+l,this.__onMouseMove)}onDblClickEditor(t){const e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){const s=(0,o.offset)(e.editor,e,e.ed),i=t.pageY-e.ew.scrollX,r=e.createInside.element(e.o.enter);Math.abs(i-(s.height+s.top))>Math.abs(i-s.top)&&e.editor.firstChild?e.editor.insertBefore(r,e.editor.firstChild):e.editor.appendChild(r),e.s.setCursorIn(r),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){const e=this.j;let s=e.ed.elementFromPoint(t.clientX,t.clientY);if(!r.Dom.isHTMLElement(s)||!r.Dom.isOrContains(e.editor,s))return;if(e.editor===s||this.__isMatchedTag(s)||(s=r.Dom.closest(s,this.__isMatchedTag,e.editor)),!s)return void this.__hide();if(this.__isMatchedTag(s)){const t=r.Dom.up(s,r.Dom.isBlock,e.editor);t&&t!==e.editor&&(s=t)}const i=(0,o.position)(s,this.j);let n=!1,{clientY:a,clientX:l}=t;if(this.j.iframe){const{top:t,left:e}=(0,o.position)(this.j.iframe,this.j,!0);a+=t,l+=e}const c=this.j.o.addNewLineDeltaShow;Math.abs(a-i.top)>c?Math.abs(a-(i.top+i.height))>c||(n=i.top+i.height,this.__isBeforeContent=!1):(n=i.top,this.__isBeforeContent=!0);const h=e.editor===s;!1!==n&&(h&&!this.__isBeforeContent||!h&&!(0,o.call)(this.__isBeforeContent?r.Dom.prev:r.Dom.next,s,this.__canGetFocus,e.editor))?(this.__line.style.top=n+"px",this.__current=s,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",l-i.left-10+"px")):(this.__current=!1,this.__hide())}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),r.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+l).off(this.j.container,"."+l)}}(0,i.gn)([(0,n.watch)(":lock")],c.prototype,"onLock",null),(0,i.gn)([n.autobind],c.prototype,"__hide",null),(0,i.gn)([(0,n.watch)(":dblclick")],c.prototype,"onDblClickEditor",null),(0,i.gn)([(0,n.throttle)((t=>t.defaultTimeout))],c.prototype,"__onMouseMove",null),a.pw.add("addNewLine",c)},83542(t,e,s){"use strict";var i=s(37446),r=s(30052),o=s(89529),n=s.n(o);i.D.prototype.addNewLine=!0,i.D.prototype.addNewLineOnDBLClick=!0,i.D.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],i.D.prototype.addNewLineDeltaShow=20,r.J.set("enter",n())},12487(t,e,s){"use strict";var i=s(7331),r=s(46879),o=s(62924),n=s(69099),a=s(9105),l=s(79102),c=s(86687),h=s(50447);s(82997);class u extends i.S{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,e="char"){const s=this.j,i=s.selection;if(i.isFocused()||i.focus(),(0,h.F)(s))return!1;const l=i.range,u=s.createInside.text(o.INVISIBLE_SPACE);try{if(r.i.safeInsertNode(l,u),!r.i.isOrContains(s.editor,u))return;if(s.e.fire("backSpaceBeforeCases",t,u))return!1;if((0,a.F)(s,u,t),c.c.some((i=>{if((0,n.m)(i)&&i(s,u,t,e))return!0})))return!1}catch(t){throw t}finally{s.e.fire("backSpaceAfterDelete",t,u),this.safeRemoveEmptyNode(u)}return!1}safeRemoveEmptyNode(t){const{range:e}=this.j.s;e.startContainer===t&&(t.previousSibling?r.i.isText(t.previousSibling)?e.setStart(t.previousSibling,t.previousSibling.nodeValue?.length??0):e.setStartAfter(t.previousSibling):t.nextSibling&&(r.i.isText(t.nextSibling)?e.setStart(t.nextSibling,0):e.setStartBefore(t.nextSibling)),e.collapse(!0),this.j.s.selectRange(e)),r.i.safeRemove(t)}}u.requires=["hotkeys"],l.pw.add("backspace",u)},47688(t,e,s){"use strict";s.d(e,{g(){return n}});var i=s(9162),r=s(24794),o=s(62924);function n(t,e,s){let r=e,n=r;for(;r&&!i.i.findNotEmptySibling(r,s)&&r.parentElement!==t.editor;)r=r.parentElement,n=r;if(i.i.isElement(n)&&i.i.isContentEditable(n,t.editor)){const r=i.i.findNotEmptySibling(n,s);if(r&&(((t,e,s,r)=>{const n=i.i.isTag(s,o.LIST_TAGS),l=i.i.isTag(e,o.LIST_TAGS),c=(t,e)=>e?t.firstElementChild:t.lastElementChild;return l?(s=t.createInside.element(t.o.enterBlock),i.i.before(e,s),a(t,c(e,r),s,r)):!(!s||!n||l)&&a(t,e,c(s,!r),r)})(t,n,r,s)||a(t,n,r,s)))return t.s.setCursorBefore(e),!0}return!1}function a(t,e,s,o){if(e&&i.i.isElement(s)){i.i.moveContent(e,s,!o,(0,r.U)(t));let n=e;for(;n&&n!==t.editor&&i.i.isEmpty(n);){const t=n.parentElement;i.i.safeRemove(n),n=t}return!0}return!1}},78075(t,e,s){"use strict";s.d(e,{W(){return n}});var i=s(9162),r=s(87398),o=s(24794);function n(t,e,s){const n=i.i.findSibling(e,s),a=i.i.findSibling(e,!s);if(!i.i.closest(e,i.i.isElement,t.editor)&&i.i.isList(n)&&i.i.isList(a)&&i.i.isTag(n.lastElementChild,"li")&&i.i.isTag(a.firstElementChild,"li")){const{setCursorBefore:l,setCursorAfter:c}=t.s,h=n.lastElementChild;return(0,r.RE)(s?i.i.prepend:i.i.append,a.firstElementChild,e),i.i.moveContent(a,n,!s,(0,o.U)(t)),i.i.safeRemove(a),(0,r.RE)(s?i.i.append:i.i.prepend,h,e),(0,r.RE)(s?l:c,e),!0}return!1}},50447(t,e,s){"use strict";function i(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}s.d(e,{F(){return i}})},23232(t,e,s){"use strict";s.d(e,{p(){return a}});var i=s(46879),r=s(76974),o=s(62924),n=s(24794);function a(t,e,s,l){const c=s?-1:1,h=i.i.sibling(e,!s);let u,d=i.i.sibling(e,s),p=null,f=!1;const m=e=>{let r=i.i.sibling(e,s);return!r&&e.parentNode&&e.parentNode!==t.editor&&(r=(0,n.G)(e,!s,t.editor,!0)),r};for(d||(d=m(e));d&&(i.i.isText(d)||i.i.isInlineBlock(d));){for(;i.i.isInlineBlock(d);)d=s?d?.lastChild:d?.firstChild;if(!d)break;if(d.nodeValue?.length){let t=(0,r.toArray)(d.nodeValue);const e=t.length;let n=s?e-1:0;if(t[n]===o.INVISIBLE_SPACE)for(;t[n]===o.INVISIBLE_SPACE;)n+=c;if(u=t[n],t[n+c]===o.INVISIBLE_SPACE){for(n+=c;t[n]===o.INVISIBLE_SPACE;)n+=c;n+=s?1:-1}if(t=s&&0>n?[]:t.slice(s?0:n+1,s?n:e),!h||!i.i.isText(h)||(s?/^ /:/ $/).test(h.nodeValue??"")||!(0,r.trimInv)(h.nodeValue||"").length)for(let e=s?t.length-1:0;(s?e>=0:t.length>e)&&" "===t[e];e+=s?-1:1)t[e]=o.NBSP_SPACE;d.nodeValue=t.join("")}if(d.nodeValue?.length||(p=d),!(0,r.isVoid)(u)&&u!==o.INVISIBLE_SPACE){f=!0,(0,r.call)(s?i.i.after:i.i.before,d,e),("sentence"===l||"word"===l&&" "!==u&&u!==o.NBSP_SPACE)&&a(t,e,s,l);break}const n=m(d);p&&(i.i.safeRemove(p),p=null),d=n}return p&&(i.i.safeRemove(p),p=null),f&&(((t,e)=>{let s=t.parentElement;for(;s&&i.i.isInlineBlock(s)&&i.i.isTag(s,"a");){const e=s.parentElement;i.i.isEmpty(s)&&(i.i.after(s,t),i.i.safeRemove(s)),s=e}})(e),((t,e)=>{e.parentElement!==t.editor&&i.i.isBlock(e.parentElement)&&i.i.each(e.parentElement,i.i.isEmptyTextNode)&&i.i.after(e,t.createInside.element("br"))})(t,e),t.s.setCursorBefore(e),i.i.isTag(e.previousSibling,"br")&&!i.i.findNotEmptySibling(e,!1)&&i.i.after(e,t.createInside.element("br"))),f}},20928(t,e,s){"use strict";s.d(e,{W(){return n}});var i=s(46879),r=s(76974),o=s(9105);function n(t,e,s){let n=i.i.findSibling(e,s);return!n&&e.parentElement&&e.parentElement!==t.editor&&(n=i.i.findSibling(e.parentElement,s)),!(!i.i.isElement(n)||i.i.isContentEditable(n,t.editor)||((0,r.call)(s?i.i.before:i.i.after,n,e),i.i.safeRemove(n),(0,o.F)(t,e,s),(0,r.call)(s?t.s.setCursorBefore:t.s.setCursorAfter,e),0))}},23958(t,e,s){"use strict";s.d(e,{L(){return r}});var i=s(9162);function r(t,e,s){const r=i.i.closest(e,i.i.isElement,t.editor);if(!r)return!1;const o=i.i.findNotEmptySibling(r,s);return!(!o||!i.i.isEmpty(o)||(i.i.safeRemove(o),t.s.setCursorBefore(e),0))}},72629(t,e,s){"use strict";s.d(e,{J(){return n}});var i=s(46879),r=s(62924),o=s(78075);function n(t,e,s){let n=!1;const{setCursorBefore:a,setCursorIn:l}=t.s;let c=i.i.closest(e,i.i.isElement,t.editor);if(!c||!i.i.isEmpty(c))return!1;const h=i.i.findNotEmptyNeighbor(e,s,t.editor);do{if(!c||!i.i.isEmpty(c)||i.i.isCell(c))break;{i.i.after(c,e);const s=i.i.closest(c,(t=>i.i.isElement(t)&&t!==c),t.editor);i.i.safeRemove(c),n=!0,c=s}}while(c);return!(!n||!(0,o.W)(t,e,s))||(!h||i.i.isText(h)||i.i.isTag(h,r.INSEPARABLE_TAGS)?a(e):l(h,!s),n)}},38434(t,e,s){"use strict";s.d(e,{a(){return n}});var i=s(9162),r=s(62924),o=s(72629);function n(t,e,s){const n=i.i.findSibling(e,s);return!(!i.i.isElement(n)||!i.i.isTag(n,r.INSEPARABLE_TAGS)&&!i.i.isEmpty(n)||(i.i.safeRemove(n),i.i.isTag(n,"br")&&!i.i.findNotEmptySibling(e,!1)&&i.i.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),i.i.isTag(n,"br")&&(0,o.J)(t,e,s),0))}},92511(t,e,s){"use strict";s.d(e,{R(){return r}});var i=s(9162);function r(t,e){return!!i.i.isCell(e.parentElement)}},54556(t,e,s){"use strict";s.d(e,{k(){return o}});var i=s(9162),r=s(86284);function o(t,e,s){const o=i.i.closest(e,i.i.isElement,t.editor),{s:n}=t;if(i.i.isLeaf(o)&&o?.parentElement?.[s?"firstElementChild":"lastElementChild"]===o&&n.cursorInTheEdge(s,o)){const a=o.parentElement,l=t.createInside.element(t.o.enterBlock);return(0,r.call)(s?i.i.before:i.i.after,a,l),i.i.moveContent(o,l),i.i.safeRemove(o),i.i.isEmpty(a)&&i.i.safeRemove(a),(0,r.call)(s?n.setCursorBefore:n.setCursorAfter,e),!0}return!1}},86687(t,e,s){"use strict";s.d(e,{c(){return d}});var i=s(38434),r=s(20928),o=s(23232),n=s(92511),a=s(72629),l=s(23958),c=s(78075),h=s(47688),u=s(54556);const d=[i.a,r.W,o.p,n.R,a.J,l.L,c.W,h.g,u.k]},82997(t,e,s){"use strict";s(37446).D.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"]}}},24794(t,e,s){"use strict";s.d(e,{G(){return r},U(){return o}});var i=s(46879);function r(t,e,s,r=!1){const o=t=>e?t.firstChild:t.lastChild;let n=i.i.findNotEmptyNeighbor(t,!e,s);if(r&&i.i.isElement(n)&&!i.i.isInlineBlock(n))return null;if(n)do{if(!o(n))return n;n=o(n)}while(n);return null}function o(t){return e=>!0!==t.e.fire("backSpaceIsMovedIgnore",e)}},59232(t,e,s){"use strict";var i=s(37446),r=s(76974),o=s(79102),n=s(30052),a=s(53315),l=s.n(a),c=s(70600),h=s.n(c),u=s(53523),d=s.n(u),p=s(6582),f=s.n(p),m=s(30770),g=s.n(m),v=s(96181),b=s.n(v);s(45600),o.pw.add("bold",(t=>{const e=e=>{const s=i.D.defaultOptions.controls[e],o={...s.css};let n;return Object.keys(o).forEach((t=>{n||(n={}),n[t]=(0,r.isArray)(o[t])?o[t][0]:o[t]})),t.s.commitStyle({element:s.tags?s.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach((e=>{t.registerButton({name:e,group:"font-style"})})),["superscript","subscript"].forEach((e=>{t.registerButton({name:e,group:"script"})})),t.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})})),n.J.set("bold",l()).set("italic",h()).set("strikethrough",d()).set("subscript",f()).set("superscript",g()).set("underline",b())},45600(t,e,s){"use strict";var i=s(37446);i.D.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},i.D.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},i.D.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},i.D.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},i.D.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},i.D.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},9611(t,e,s){"use strict";var i=s(7331),r=s(37446),o=s(9162),n=s(87398),a=s(79102),l=s(30052),c=s(43208),h=s.n(c);r.D.prototype.controls.classSpan={command:"applyClassName",exec:n.u3,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,e){const s=t.s.current();if(s){const i=o.i.closest(s,o.i.isElement,t.editor)||t.editor;return!(!e.control.args||!i.classList.contains(""+e.control.args[0]))}return!1},isActive(t,e){const s=t.s.current();if(s){const i=o.i.closest(s,o.i.isElement,t.editor)||t.editor;let r=!1;return e.control.list&&Object.keys(e.control.list).forEach((t=>{i.classList.contains(t)&&(r=!0)})),!(!i||i===t.editor||void 0===e.control.list||!r)}return!1},childTemplate(t,e,s){return`<span class="${e}">${t.i18n(s)}</span>`},tooltip:"Insert className"},a.pw.add("classSpan",class u extends i.S{constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}afterInit(t){t.registerCommand("applyClassName",((e,s,i)=>(t.s.commitStyle({attributes:{class:i}}),!1)))}beforeDestruct(){}}),l.J.set("class-span",h())},80586(t,e,s){"use strict";var i=s(97582),r=s(45838),o=s(97651),n=s(13666),a=s(31818),l=s(79102),c=s(9162),h=s(94270);s(29573);class u extends o.S{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new a.b(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;const t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){const{jodit:t}=this,e=(0,h.XR)(this.j.o.cleanHTML.allowTags),s=(0,h.XR)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",(i=>(0,h.s_)(t,i,e,s,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,h.sK)(this.j):(0,h.qZ)(this.j),!1}onBeforeSetNativeEditorValue(t){const[e,s]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()];return e.innerHTML=t.value,this.onSafeHTML(e),t.value=e.innerHTML,(0,r.e)(e,{safeJavaScriptLink:!0,removeOnError:!0}),c.i.safeRemove(s),!1}onSafeHTML(t){(0,r.e)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}}(0,i.gn)([(0,n.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],u.prototype,"onChangeCleanHTML",null),(0,i.gn)([(0,n.hook)("ready")],u.prototype,"startWalker",null),(0,i.gn)([(0,n.watch)(":beforeCommand")],u.prototype,"beforeCommand",null),(0,i.gn)([(0,n.watch)(":beforeSetNativeEditorValue")],u.prototype,"onBeforeSetNativeEditorValue",null),(0,i.gn)([(0,n.watch)(":safeHTML")],u.prototype,"onSafeHTML",null),l.pw.add("cleanHtml",u)},29573(t,e,s){"use strict";var i=s(37446),r=s(30052),o=s(28218),n=s.n(o);i.D.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},i.D.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},r.J.set("eraser",n())},37213(t,e,s){"use strict";s.d(e,{X(){return o}});var i=s(76562),r=s(2926);function o(t){const e=/([^[]*)\[([^\]]+)]/,s=/[\s]*,[\s]*/,o=/^(.*)[\s]*=[\s]*(.*)$/,n={};return(0,r.H)(t)?(t.split(s).map((t=>{t=(0,i.fy)(t);const r=e.exec(t),a={},l=t=>{t=(0,i.fy)(t);const e=o.exec(t);e?a[e[1]]=e[2]:a[t]=!0};if(r){const t=r[2].split(s);r[1]&&(t.forEach(l),n[r[1].toUpperCase()]=a)}else n[t.toUpperCase()]=!0})),n):!!t&&(Object.keys(t).forEach((e=>{n[e.toUpperCase()]=t[e]})),n)}},94270(t,e,s){"use strict";s.d(e,{XR(){return i.X},qZ(){return o.q},sK(){return r.s},s_(){return n.s}});var i=s(37213),r=s(3688),o=s(83837),n=s(90455)},3688(t,e,s){"use strict";s.d(e,{r(){return n},s(){return o}});var i=s(9162),r=s(62924);function o(t,e){const{s}=t;let r=e;if(!r){r=t.createInside.fake();const{range:e}=s;i.i.safeInsertNode(e,r),e.collapse()}const o=i.i.furthest(r,n,t.editor);if(o)if(s.cursorOnTheLeft(o))i.i.before(o,r);else if(s.cursorOnTheRight(o))i.i.after(o,r);else{const t=s.splitSelection(o);t&&i.i.after(t,r)}e||(s.setCursorBefore(r),i.i.safeRemove(r))}function n(t){return i.i.isInlineBlock(t)&&!i.i.isTag(t,r.INSEPARABLE_TAGS)}},83837(t,e,s){"use strict";s.d(e,{q(){return n}});var i=s(9162),r=s(86284),o=s(3688);function n(t){const{s:e,editor:s,createInside:n}=t,{range:a}=e,l=a.cloneRange(),c=a.cloneRange(),h=n.fake(),u=n.fake();l.collapse(!0),c.collapse(!1),i.i.safeInsertNode(l,h),i.i.safeInsertNode(c,u),a.setStartBefore(h),a.collapse(!0),e.selectRange(a),(0,o.s)(t,h),a.setEndAfter(u),a.collapse(!1),e.selectRange(a),(0,o.s)(t,u);const d=[];i.i.between(h,u,(t=>{(0,o.r)(t)&&!i.i.isTag(t,"a")&&d.push(t),i.i.isElement(t)&&(0,r.attr)(t,"style")&&(0,r.attr)(t,"style",null)})),d.forEach((t=>i.i.unwrap(t)));const p=(t,e)=>{if(!i.i.findNotEmptySibling(t,e)){const i=t.parentNode;if(i&&i!==s&&(0,r.attr)(i,"style"))return(0,r.attr)(i,"style",null),p(i,e),!0}};p(h,!0)&&p(u,!1),a.setStartAfter(h),a.setEndBefore(u),e.selectRange(a),i.i.safeRemove(h),i.i.safeRemove(u)}},27098(t,e,s){"use strict";s.d(e,{b(){return r}});var i=s(9162);function r(t,e,s,r){if(r&&i.i.isElement(e)&&!0!==r[e.nodeName]){const t=e.attributes;if(t&&t.length){const i=[];for(let s=0;t.length>s;s+=1){const o=r[e.nodeName][t[s].name];(!o||!0!==o&&o!==t[s].value)&&i.push(t[s].name)}i.length&&(s=!0),i.forEach((t=>{e.removeAttribute(t)}))}}return s}},60901(t,e,s){"use strict";s.d(e,{_(){return o}});var i=s(9162),r=s(62924);function o(t,e,s){if(t.o.cleanHTML.fillEmptyParagraph&&i.i.isBlock(e)&&i.i.isEmpty(e,r.INSEPARABLE_TAGS)){const s=t.createInside.element("br");return e.appendChild(s),!0}return s}},24129(t,e,s){"use strict";s.r(e),s.d(e,{allowAttributes(){return r.b},fillEmptyParagraph(){return o._},removeEmptyTextNode(){return a.W},removeInvTextNodes(){return l.e},replaceOldTags(){return i.G},sanitizeAttributes(){return c.F},tryRemoveNode(){return n.P}});var i=s(6200),r=s(27098),o=s(60901),n=s(63604),a=s(47133),l=s(33589),c=s(52846)},47133(t,e,s){"use strict";s.d(e,{W(){return r}});var i=s(9162);function r(t,e,s,r,o,n){return i.i.isText(e)&&!e.nodeValue?(e===n&&t.s.isCollapsed()&&t.s.setCursorAfter(e),i.i.safeRemove(e),!0):s}},33589(t,e,s){"use strict";s.d(e,{e(){return o}});var i=s(62924),r=s(9162);function o(t,e,s,o,n,a){if(a===e||!r.i.isText(e)||null==e.nodeValue)return s;if(!(0,i.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return s;const l=r.i.furthest(a,r.i.isBlock,t.editor);return!l||r.i.isOrContains(l,e)?s:(e.nodeValue=e.nodeValue.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),""),e===a&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||r.i.safeRemove(e),!0)}},6200(t,e,s){"use strict";s.d(e,{G(){return r}});var i=s(9162);function r(t,e,s){const r=((t,e,s)=>{if(!s||!i.i.isHTMLElement(e))return e;const r=s[e.nodeName.toLowerCase()]||s[e.nodeName];return r?i.i.replace(e,r,t.createInside,!0,!1):e})(t,e,t.o.cleanHTML.replaceOldTags);return e!==r?(e=r,!0):s}},52846(t,e,s){"use strict";s.d(e,{F(){return o}});var i=s(9162),r=s(76974);function o(t,e,s){return!(!i.i.isElement(e)||!(0,r.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||s}},63604(t,e,s){"use strict";s.d(e,{P(){return n}});var i=s(9162),r=s(62924),o=s(76562);function n(t,e,s,n,a,l){return((t,e,s,n,a)=>!(i.i.isText(e)||!(n&&!n[e.nodeName]||a&&a[e.nodeName]))||t.o.cleanHTML.removeEmptyElements&&i.i.isElement(e)&&null!=e.nodeName.match(r.IS_INLINE)&&!i.i.isTemporary(e)&&0===(0,o.fy)(e.innerHTML).length&&(null==s||!i.i.isOrContains(e,s)))(t,e,l,n,a)?(i.i.safeRemove(e),!0):s}},90455(t,e,s){"use strict";s.d(e,{s(){return o}});var i=s(24129);s(62924);const r=Object.keys(i);function o(t,e,s,o,n){let a=!1;const l=t.o.cleanHTML.disableCleanFilter;for(const c of r)if(!(l&&l.has(c)||(a=(0,i[c])(t,e,a,s,o,n),e.isConnected)))return!0;return a}},59657(t,e,s){"use strict";var i=s(62924),r=s(76974),o=s(79102);s(74908),o.pw.add("clipboard",class n{constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}init(t){this.buttons?.forEach((e=>t.registerButton(e))),t.e.off(`copy.${i.CLIPBOARD_ID} cut.${i.CLIPBOARD_ID}`).on(`copy.${i.CLIPBOARD_ID} cut.${i.CLIPBOARD_ID}`,(e=>{const s=t.s.html,o=(0,r.getDataTransfer)(e)||(0,r.getDataTransfer)(t.ew)||(0,r.getDataTransfer)(e.originalEvent);o&&(o.setData(i.TEXT_PLAIN,(0,r.stripTags)(s)),o.setData(i.TEXT_HTML,s)),t.buffer.set(i.CLIPBOARD_ID,s),t.e.fire("pasteStack",{html:s,action:t.o.defaultActionOnPaste||i.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",s)}))}destruct(t){t?.buffer?.set(i.CLIPBOARD_ID,""),t?.events?.off("."+i.CLIPBOARD_ID)}})},74908(t,e,s){"use strict";var i=s(37446),r=s(30052),o=s(48872),n=s.n(o),a=s(43574),l=s.n(a),c=s(68707),h=s.n(c),u=s(15806),d=s.n(u);i.D.prototype.controls.cut={command:"cut",isDisabled(t){return t.s.isCollapsed()},tooltip:"Cut selection"},i.D.prototype.controls.copy={command:"copy",isDisabled(t){return t.s.isCollapsed()},tooltip:"Copy selection"},i.D.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},r.J.set("copy",n()).set("cut",l()).set("paste",h()).set("select-all",d())},13949(t,e,s){"use strict";var i=s(76974),r=s(79102);s(92552),r.pw.add("color",(t=>{t.registerButton({name:"brush",group:"color"});const e=(e,s,r)=>{const o=(0,i.normalizeColor)(r);switch(e){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:o||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:o||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)}))},92552(t,e,s){"use strict";var i=s(37446),r=s(76974),o=s(6658),n=s(30052),a=s(9162),l=s(89371);n.J.set("brush",s.n(l)()),i.D.prototype.controls.brush={update(t,e){const s=(0,r.dataBind)(e,"color"),i=(s,i)=>{i&&i!==""+(0,r.css)(t.editor,s)&&(e.state.icon.fill=i)};if(s){const t=(0,r.dataBind)(e,"color");return void i("color"===t?t:"background-color",s)}const o=t.s.current();if(o&&!e.state.disabled){const e=a.i.closest(o,a.i.isElement,t.editor)||t.editor;i("color",""+(0,r.css)(e,"color")),i("background-color",""+(0,r.css)(e,"background-color"))}e.state.icon.fill="",e.state.activated=!1},popup(t,e,s,i){let n="",l="",c=[],h=null;return e&&e!==t.editor&&a.i.isNode(e)&&(a.i.isElement(e)&&t.s.isCollapsed()&&!a.i.isTag(e,new Set(["br","hr"]))&&(h=e),a.i.up(e,(t=>{if(a.i.isHTMLElement(t)){const e=(0,r.css)(t,"color",!0),s=(0,r.css)(t,"background-color",!0);if(e)return n=""+e,!0;if(s)return l=""+s,!0}}),t.editor)),c=[{name:"Background",content:(0,o.YW)(t,(e=>{h?h.style.backgroundColor=e:t.execCommand("background",!1,e),(0,r.dataBind)(i,"color",e),(0,r.dataBind)(i,"color-mode","background"),s()}),l)},{name:"Text",content:(0,o.YW)(t,(e=>{h?h.style.color=e:t.execCommand("forecolor",!1,e),(0,r.dataBind)(i,"color",e),(0,r.dataBind)(i,"color-mode","color"),s()}),n)}],"background"!==t.o.colorPickerDefaultTab&&(c=c.reverse()),(0,o.IL)(t,c,h)},exec(t,e,{button:s}){const i=(0,r.dataBind)(s,"color-mode"),o=(0,r.dataBind)(s,"color");if(!i)return!1;if(e&&e!==t.editor&&a.i.isNode(e)&&a.i.isElement(e))switch(i){case"color":e.style.color=o;break;case"background":e.style.backgroundColor=o}else t.execCommand("background"===i?i:"forecolor",!1,o)},tooltip:"Fill color or set the text color"}},12706(t,e,s){"use strict";var i=s(37446),r=s(9162),o=s(71737),n=s(79102),a=s(30052),l=s(79031),c=s.n(l),h=s(60338);const u="copy-format",d=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],p=(t,e,s,i)=>{let r=(0,o.i)(s,e);return r===i[e]&&(r=s.parentNode&&s!==t.editor&&s.parentNode!==t.editor?p(t,e,s.parentNode,i):void 0),r};i.D.prototype.controls.copyformat={exec(t,e,{button:s}){if(e){if(t.buffer.exists(u))t.buffer.delete(u),t.e.off(t.editor,"mouseup."+u);else{const s={},i=r.i.up(e,(t=>t&&!r.i.isText(t)),t.editor)||t.editor,n=t.createInside.span();t.editor.appendChild(n),d.forEach((t=>{s[t]=(0,o.i)(n,t)})),n!==t.editor&&r.i.safeRemove(n);const a=((t,e,s)=>{const i={};return e&&d.forEach((r=>{i[r]=p(t,r,e,s),r.match(/border(Style|Color)/)&&!i.borderWidth&&(i[r]=void 0)})),i})(t,i,s),l=()=>{t.buffer.delete(u);const e=t.s.current();e&&(r.i.isTag(e,"img")?(0,o.i)(e,a):t.s.commitStyle({attributes:{style:a}})),t.e.off(t.editor,"mouseup."+u)};t.e.on(t.editor,"mouseup."+u,l),t.buffer.set(u,!0)}s.update()}},isActive(t){return t.buffer.exists(u)},tooltip:"Paint format"},n.pw.add("copyformat",(t=>{t.registerButton({name:"copyformat",group:"clipboard"}),(0,n.xl)(h)})),a.J.set("copyformat",c())},60338(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return r.a},cs_cz(){return r.a},de(){return r.a},es(){return r.a},fa(){return r.a},fi(){return r.a},fr(){return r.a},he(){return r.a},hu(){return r.a},id(){return r.a},it(){return r.a},ja(){return r.a},ko(){return r.a},mn(){return r.a},nl(){return r.a},pl(){return r.a},pt_br(){return r.a},ru(){return r.a},tr(){return r.a},zh_cn(){return r.a},zh_tw(){return r.a}});var i=s(45143),r=s.n(i)},19913(t,e,s){"use strict";var i=s(7331),r=s(46879),o=s(76562),n=s(79102),a=s(76974);class l extends i.S{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(){const t=this.j,e=t.s.current();if(e&&r.i.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!((0,o.fy)(t.editor.textContent||"")||t.editor.querySelector("img,table,jodit,iframe,hr")||e&&r.i.closest(e,"table",t.editor))){t.editor.innerHTML="";const e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){const{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();const e=t.s.range;e.deleteContents();const s=t.createInside.fake();e.insertNode(s);const i=r.i.findSibling(s,!0),o=r.i.findSibling(s,!1);return this.__moveContentInLeftSibling(s,i,o),e.setStartBefore(s),e.collapse(!0),this.__moveCursorInEditableSibling(t,i,s,e),this.__addBrInEmptyBlock(s,o,e),r.i.safeRemove(s),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,s){e=this.__defineRightLeftBox(e),!r.i.isList(s)&&!r.i.isTag(s,"table")&&r.i.isBlock(s)&&r.i.isBlock(e)&&(r.i.append(e,t),r.i.moveContent(s,e),r.i.safeRemove(s)),r.i.isList(s)&&r.i.isLeaf(s.firstElementChild)&&r.i.isEmpty(s.firstElementChild)&&r.i.safeRemove(s.firstElementChild)}__defineRightLeftBox(t){if(!r.i.isList(t))return t;let e=t.lastElementChild;return r.i.isLeaf(e)||(e=this.j.createInside.element("li"),r.i.append(t,e)),e}__addBrInEmptyBlock(t,e,s){const i=this.j;if(t.isConnected&&r.i.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){const e=i.createInside.element("br");r.i.after(t,e),s.setStartBefore(e),s.collapse(!0)}if(r.i.isTag(e,"table")){const t=(0,a.$$)("td,th",e).shift();r.i.isCell(t)&&r.i.isEmpty(t)&&r.i.append(t,i.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,s,i){if(!e||!r.i.isText(e)){const e=r.i.closest(s,r.i.isBlock,t.editor)??t.editor,o=r.i.prev(s,r.i.isText,e);o&&(i.setStartAfter(o),i.collapse(!0),r.i.safeRemove(s))}}}l.requires=["backspace"],n.pw.add("deleteCommand",l)},98549(t,e,s){"use strict";s(37446).D.prototype.draggableTags=["img","jodit-media","jodit"]},10682(t,e,s){"use strict";var i,r=s(97582),o=s(76974),n=s(7331),a=s(46879),l=s(79102),c=s(13666);s(98549),(t=>{t[t.IDLE=0]="IDLE",t[t.WAIT_DRAGGING=1]="WAIT_DRAGGING",t[t.DRAGGING=2]="DRAGGING"})(i||(i={}));class h extends n.S{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=i.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?(0,o.splitArray)(this.j.o.draggableTags).filter(Boolean).map((t=>t.toLowerCase())):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>i.IDLE)return;const e=t.target;if(!this.dragList.length||!e)return;const s=t=>!(!t||!this.dragList.includes(t.nodeName.toLowerCase()));let r=a.i.furthest(e,s,this.j.editor)||(s(e)?e:null);r&&(a.i.isTag(r.parentElement,"a")&&r.parentElement.firstChild===r&&r.parentElement.lastChild===r&&(r=r.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,o.ctrlKey)(t),this.draggable=r.cloneNode(!0),(0,o.dataBind)(this.draggable,"target",r),this.state=i.WAIT_DRAGGING,this.addDragListeners())}onDrag(t){if(!this.draggable||this.state===i.IDLE)return;const e=t.clientY;if(this.state!==i.WAIT_DRAGGING||Math.sqrt(Math.pow(t.clientX-this.startX,2)+Math.pow(e-this.startY,2))>=this.diffStep){if(this.state===i.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=i.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){const e=(0,o.dataBind)(this.draggable,"target");(0,o.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,l.ZO)(this.j,h).appendChild(this.draggable)}(0,o.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=i.IDLE,this.draggable&&(a.i.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||i.DRAGGING>this.state)return void this.onDragEnd();let t=(0,o.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));const{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&a.i.isEmpty(e)&&!a.i.isCell(e)&&a.i.safeRemove(e),a.i.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),this.removeDragListeners()}}(0,r.gn)([c.autobind],h.prototype,"onDragStart",null),(0,r.gn)([(0,c.throttle)((t=>t.defaultTimeout/10))],h.prototype,"onDrag",null),(0,r.gn)([c.autobind],h.prototype,"onDragEnd",null),(0,r.gn)([c.autobind],h.prototype,"onDrop",null),l.pw.add("dragAndDropElement",h)},28802(t,e,s){"use strict";var i=s(97582),r=s(62924),o=s(9162),n=s(76974),a=s(7331),l=s(13666),c=s(79102),h=s(40158);class u extends a.S{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{const e=(0,n.getDataTransfer)(t);return e?e.getData(r.TEXT_HTML)||e.getData(r.TEXT_PLAIN):null}}afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){let e=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=o.i.isOrContains(this.j.editor,e,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,n.ctrlKey)(t),this.isFragmentFromEditor){const t=this.j.s.sel,e=t&&t.rangeCount?t.getRangeAt(0):null;e&&(this.bufferRange=e.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,(t=>o.i.isElement(t)&&t.classList.contains(h.s.prototype.getFullElName("item")))(e)&&(e=e.querySelector("img")),o.i.isTag(e,"img")&&(this.draggable=e.cloneNode(!0),(0,n.dataBind)(this.draggable,"target",e)),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&&(o.i.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;const e=this.j.s.sel,s=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null);let i=null;if(!this.draggable&&s)i=this.isCopyMode?s.cloneContents():s.extractContents();else if(this.draggable)if(this.isCopyMode){const[t,e]="1"===(0,n.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];i=this.j.createInside.element(t),i.setAttribute(e,(0,n.attr)(this.draggable,"data-src")||(0,n.attr)(this.draggable,"src")||""),"a"===t&&(i.textContent=(0,n.attr)(i,e)||"")}else i=(0,n.dataBind)(this.draggable,"target");else this.getText(t)&&(i=this.j.createInside.fromHTML(this.getText(t)));e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),i&&(this.j.s.insertNode(i,!1,!1),s&&i.firstChild&&i.lastChild&&(s.setStartBefore(i.firstChild),s.setEndAfter(i.lastChild),this.j.s.selectRange(s),this.j.e.fire("synchro")),o.i.isTag(i,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",i)),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}(0,i.gn)([l.autobind],u.prototype,"onDragStart",null),(0,i.gn)([(0,l.throttle)((t=>t.defaultTimeout/10))],u.prototype,"onDrag",null),(0,i.gn)([l.autobind],u.prototype,"onDragEnd",null),(0,i.gn)([l.autobind],u.prototype,"onDrop",null),c.pw.add("dragAndDrop",u)},48467(t,e,s){"use strict";s.r(e),s.d(e,{removeExtraBr(){return i.U}});var i=s(52879)},52879(t,e,s){"use strict";s.d(e,{U(){return o}});var i=s(9162);const r=new Set(["table","pre","blockquote","code"]);function o(t,e){if(!t.o.dtd.removeExtraBr||i.i.isTag(e,"br"))return;const s=i.i.furthest(e,i.i.isBlock,t.editor);if(s&&!i.i.isTag(s,r)){const s=i.i.isTag(e,"br")?e:i.i.findNotEmptySibling(e,!1);if(!i.i.isTag(s,"br"))return;t.s.setCursorBefore(s),i.i.safeRemove(s)}}},69686(t,e,s){"use strict";s.d(e,{H(){return r}});var i=s(9162);function r(t,e){if(i.i.isFragment(e)&&(e=e.firstChild),t.o.dtd.checkBlockNesting&&i.i.isBlock(e)){const e=i.i.furthest(t.s.current(),i.i.isBlock,t.editor);e&&!t.o.dtd.blockLimits[e.tagName.toLowerCase()]&&(t.s.setCursorAfter(e),i.i.isEmpty(e)&&i.i.safeRemove(e))}}},79585(t,e,s){"use strict";s.r(e),s.d(e,{checkBlockNesting(){return i.H}});var i=s(69686)},51373(t,e,s){"use strict";s(37446).D.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}}},10796(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(79102),n=s(69082),a=(s(51373),s(79585)),l=s(48467);class c extends r.S{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(a).forEach((e=>{a[e](this.j,t)}))}__onAfterInsertNode(t){Object.keys(l).forEach((e=>{l[e](this.j,t)}))}}(0,i.gn)([(0,n.YP)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),(0,i.gn)([(0,n.YP)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),o.pw.add("dtd",c)},43839(t,e,s){"use strict";var i=s(97582),r=s(9162),o=s(97651),n=s(62924),a=s(13666),l=s(88751),c=s(84834),h=s(79102);class u extends o.S{afterInit(t){const e=t.o.enter.toLowerCase(),s=e===n.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=s?n.PARAGRAPH:e),t.registerCommand("enter",((t,e,s={})=>this.onEnter(s)))}onEnterKeyDown(t){if(t.key===n.KEY_ENTER){const e=this.j,s=e.e.fire("beforeEnter",t);return void 0!==s?s:(e.s.isCollapsed()||e.execCommand("Delete"),e.s.focus(),this.onEnter(t),e.e.fire("afterEnter",t),e.synchronizeValues(),!1)}}onEnter(t){const{jodit:e}=this,s=e.createInside.fake();try{r.i.safeInsertNode(e.s.range,s),(0,c.ku)(e,s,["a"]);let i=(0,c.pW)(s,e);const o=r.i.isLeaf(i);if((!o||t?.shiftKey)&&(0,c.vs)(s,e,t?.shiftKey))return!1;if(i||(0,c.VP)(s,e)||(i=(0,c.lD)(s,e)),!i)return(0,c.Vz)(s,e,o?"li":e.o.enter),!1;if(!(0,c.IG)(s,e,i))return!1;if(o&&this.__isEmptyListLeaf(i))return(0,c.t7)(s,e,i),!1;(0,c.gX)(s,e,i)}finally{s.isConnected&&e.s.setCursorBefore(s),r.i.safeRemove(s)}}__isEmptyListLeaf(t){const e=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.j)(e)?e:r.i.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}(0,i.gn)([(0,a.watch)(":keydown.enter")],u.prototype,"onEnterKeyDown",null),h.pw.add("enter",u)},28705(t,e,s){"use strict";s.d(e,{v(){return n}});var i=s(9162),r=s(18068),o=s(62924);function n(t,e,s){const n=!!i.i.closest(t,["pre","blockquote"],e.editor);if(e.o.enter.toLowerCase()===o.BR.toLowerCase()||s&&!n||!s&&n){if(n&&(t=>{const e=a(a(t));return!!e&&(i.i.safeRemove(a(t)),i.i.safeRemove(e),!0)})(t))return!1;const s=e.createInside.element("br");if(i.i.before(t,s),!i.i.findNotEmptySibling(s,!1)){const e=s.cloneNode();i.i.after(s,e),i.i.before(e,t)}return(0,r.n)(s,e.editor,e.ed),!0}return!1}function a(t){if(!t)return!1;const e=i.i.findSibling(t,!0);return!(!e||!i.i.isTag(e,"br"))&&e}},77910(t,e,s){"use strict";s.d(e,{I(){return r}});var i=s(9162);function r(t,e,s){return!!i.i.canSplitBlock(s)||(i.i.before(t,e.createInside.element("br")),!1)}},6985(t,e,s){"use strict";s.d(e,{p(){return o}});var i=s(62924),r=s(9162);function o(t,e,s=i.IS_BLOCK){let n=t;const a=e.editor;do{if(!n||n===a)break;if(s.test(n.nodeName))return r.i.isLeaf(n)?n:o(n.parentNode,e,/^li$/i)||n;n=n.parentNode}while(n&&n!==a);return null}},68690(t,e,s){"use strict";s.d(e,{V(){return r}});var i=s(9162);function r(t,e){return!!i.i.prev(t,(t=>i.i.isBlock(t)||i.i.isImage(t)),e.editor)}},84834(t,e,s){"use strict";s.d(e,{IG(){return r.I},VP(){return a.V},Vz(){return l.V},gX(){return c.g},ku(){return u.k},lD(){return h.l},pW(){return n.p},t7(){return o.t},vs(){return i.v}});var i=s(28705),r=s(77910),o=s(20275),n=s(6985),a=s(68690),l=s(9502),c=s(78048),h=s(48631),u=s(72110)},9502(t,e,s){"use strict";s.d(e,{V(){return o}});var i=s(9162),r=s(18068);function o(t,e,s,o){const n="br"===s.toLowerCase(),{createInside:a}=e,l=a.element(s),c=a.element("br");return n||l.appendChild(c),o&&o.cssText&&l.setAttribute("style",o.cssText),i.i.after(t,l),i.i.before(n?l:c,t),(0,r.n)(l,e.editor,e.ed),l}},72110(t,e,s){"use strict";s.d(e,{k(){return r}});var i=s(9162);function r(t,e,s){const{s:r}=t,o=i.i.closest(e,s,t.editor);o&&(r.cursorOnTheRight(o,e)?i.i.after(o,e):r.cursorOnTheLeft(o,e)&&i.i.before(o,e))}},20275(t,e,s){"use strict";s.d(e,{t(){return n}});var i=s(9162),r=s(93789),o=s(9502);function n(t,e,s){const n=i.i.closest(s,["ol","ul"],e.editor);if(!n)return;const a=n.parentElement,l=i.i.isLeaf(a),c=l?a:n,h=e.s.createRange();h.setStartAfter(s),h.setEndAfter(n);const u=h.extractContents();i.i.after(c,t),i.i.safeRemove(s),(0,r.$$)("li",n).length||i.i.safeRemove(n);const d=(0,o.V)(t,e,l?"li":e.o.enter);u.querySelector("li")&&(l?d.appendChild(u):i.i.after(d,u))}},78048(t,e,s){"use strict";s.d(e,{g(){return n}});var i=s(18068),r=s(9162),o=s(9502);function n(t,e,s){const n=e.s,{enter:a}=e.o,l=a.toLowerCase(),c=r.i.isLeaf(s),h=s.tagName.toLowerCase()===l||c,u=n.cursorOnTheRight(s,t),d=n.cursorOnTheLeft(s,t);if(!h&&(u||d))return u?r.i.after(s,t):r.i.before(s,t),(0,o.V)(t,e,l),void(d&&!u&&r.i.prepend(s,t));const p=n.splitSelection(s,t);(0,i.n)(p,e.editor,e.ed)}},48631(t,e,s){"use strict";s.d(e,{l(){return r}});var i=s(9162);function r(t,e){let s=t;i.i.up(s,(t=>{t&&t.hasChildNodes()&&t!==e.editor&&(s=t)}),e.editor);const r=i.i.wrapInline(s,e.o.enter,e);if(i.i.isEmpty(r)){const s=e.createInside.element("br");r.appendChild(s),i.i.before(s,t)}return r}},67905(t,e,s){"use strict";var i=s(37446),r=s(9162),o=s(6658),n=s(79102);i.D.prototype.controls.file={popup(t,e,s){const i=(e,s="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${s}">${s||e}</a>`))};let n=null;return e&&(r.i.isTag(e,"a")||r.i.closest(e,"a",t.editor))&&(n=r.i.isTag(e,"a")?e:r.i.closest(e,"a",t.editor)),(0,o.ov)(t,{filebrowser(t){t.files&&t.files.forEach((e=>i(t.baseurl+e))),s()},upload:!0,url(t,e){n?(n.setAttribute("href",t),n.setAttribute("title",e)):i(t,e),s()}},n,s,!1)},tags:["a"],tooltip:"Insert file"},n.pw.add("file",(t=>{t.registerButton({name:"file",group:"media"})}))},50833(t,e,s){"use strict";var i=s(37446),r=s(46879),o=s(79102);i.D.prototype.autofocus=!1,i.D.prototype.cursorAfterAutofocus="end",i.D.prototype.saveSelectionOnBlur=!0,o.pw.add("focus",(t=>{t.o.saveSelectionOnBlur&&t.e.on("blur",(()=>{t.isEditorMode()&&t.s.save(!0)})).on("focus",(()=>{t.s.restore()}));const e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){const e=r.i.last(t.editor,(t=>r.i.isText(t)));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",(()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())})),t.e.on("afterInit afterAddPlace",(()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",(e=>{t.isEditorMode()&&e.target&&r.i.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))}))}))}))},74083(t,e,s){"use strict";var i=s(37446),r=s(71737),o=s(30052),n=s(51416),a=s.n(n),l=s(84209),c=s.n(l),h=s(46879),u=s(76562);i.D.prototype.defaultFontSizePoints="px",o.J.set("font",c()).set("fontsize",a()),i.D.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise(t,e){return/pt$/i.test(t)&&"pt"===e.o.defaultFontSizePoints?t.replace(/pt$/i,""):t}},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate(t,e){return e+t.o.defaultFontSizePoints},childTemplate(t,e,s){return`${s}${t.o.defaultFontSizePoints}`},tooltip:"Font size",value(t,e){const s=t.s.current();if(!s)return;const i=h.i.closest(s,h.i.isElement,t.editor);if(!i)return;const o=e.control;return""+(0,r.i)(i,o.data?.cssRule||"font-size")},isChildActive(t,e){const s=e.state.value,i=e.control.data?.normalize??(t=>t);return!(!s||!e.control.args||i(""+e.control.args[0])!==i(""+s))},isActive(t,e){const s=e.state.value;if(!s)return!1;const i=e.control.data?.normalize??(t=>t);let r=e.control.data.cacheListSet;if(!r){const t=Object.keys(e.control.list).map(i);r=new Set(t),e.control.data.cacheListSet=r}return r.has(i(""+s))}},i.D.prototype.controls.font={...i.D.prototype.controls.fontsize,command:"fontname",textTemplate(t,e){const[s]=e.split(",");return(0,u.cE)(s,"\"'")},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,e,s){let i=!1;try{i=-1===e.indexOf("dings")&&document.fonts.check("16px "+e,s)}catch{}return`<span data-style="${e}" style="${i?`font-family: ${e}!important;`:""}">${s}</span>`},data:{cssRule:"font-family",normalize(t){return t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")}},tooltip:"Font family"}},95768(t,e,s){"use strict";var i=s(76974),r=s(79102);s(74083),r.pw.add("font",(t=>{t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});const e=(e,s,r)=>{switch(e){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,i.normalizeSize)(r,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:r}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)}))},67393(t,e,s){"use strict";var i=s(30052),r=s(37446),o=s(46879),n=s(59940);i.J.set("paragraph",s.n(n)()),r.D.prototype.controls.paragraph={command:"formatBlock",value(t,e){const s=e.control,i=t.s.current(),r=o.i.closest(i,o.i.isBlock,t.editor);return r?.nodeName.toLowerCase()??s.data?.currentValue},update(t,e){const s=e.control;if(!t.s.current())return!1;const i=e.state.value,r=s.list;return r&&r[""+i]&&t.o.textIcons&&(e.state.text=""+r[""+i]),!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,e){return!(e.state.value!==e.control?.args?.[0])},isActive(t,e){return e.state.value!==t.o.enter&&!!e.control.list?.[e.state.value]},childTemplate(t,e,s){return`<${e} style="margin:0;padding:0"><span>${t.i18n(s)}</span></${e}>`},tooltip:"Insert format block"}},33631(t,e,s){"use strict";var i=s(79102);s(67393),i.pw.add("formatBlock",(t=>{t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",((e,s,i)=>(t.s.commitStyle({element:i}),t.synchronizeValues(),!1)))}))},59222(t,e,s){"use strict";var i=s(37446),r=s(62924),o=s(30052),n=s(7764),a=s.n(n),l=s(32108),c=s.n(l);i.D.prototype.fullsize=!1,i.D.prototype.globalFullSize=!0,o.J.set("fullsize",a()).set("shrink",c()),i.D.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){const s=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=s:e.state.icon.name=s},tooltip:"Open in fullsize",mode:r.MODE_SOURCE+r.MODE_WYSIWYG}},32255(t,e,s){"use strict";var i=s(71737),r=s(8133),o=s(79102);s(59222);const n=new Set;o.pw.add("fullsize",(t=>{t.registerButton({name:"fullsize"});let e=!1,s=0,o=0,a=!1;const l=()=>{const{container:r,events:n}=t;n&&(e?(s=(0,i.i)(r,"height",!0),o=(0,i.i)(r,"width",!0),(0,i.i)(r,{height:t.ow.innerHeight,width:t.ow.innerWidth}),a=!0):a&&(0,i.i)(r,{height:s||"auto",width:o||"auto"}))},c=s=>{const{container:o,events:a}=t;if(o){if(void 0===s&&(s=!o.classList.contains("jodit_fullsize")),t.setMod("fullsize",s),t.o.fullsize=s,e=s,o.classList.toggle("jodit_fullsize",s),t.toolbar&&((0,r.Z)(t)&&t.toolbarContainer?.appendChild(t.toolbar.container),(0,i.i)(t.toolbar.container,"width","auto")),s?n.add(o):n.delete(o),t.o.globalFullSize&&(1===n.size&&s||0===n.size&&!s)){let t=o.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",s),t=t.parentNode;l()}a.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",l),t.e.on("afterInit afterOpen",(()=>{t.toggleFullSize(t?.options?.fullsize)})).on("toggleFullSize",c).on("beforeDestruct",(()=>{e&&c(!1)})).on("beforeDestruct",(()=>{t.events&&t.e.off(t.ow,"resize",l)}))}))},14463(t,e,s){"use strict";s(37446).D.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"]}},88766(t,e,s){"use strict";var i=s(7331),r=s(76974),o=s(62924),n=s(79102);s(14463),n.pw.add("hotkeys",class a extends i.S{constructor(){super(...arguments),this.onKeyPress=t=>{const e=this.specialKeys[t.which],s=(t.key||String.fromCharCode(t.which)).toLowerCase(),i=[e||s];return["alt","ctrl","shift","meta"].forEach((s=>{t[s+"Key"]&&e!==s&&i.push(s)})),(0,r.normalizeKeyAliases)(i.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:"'"}}afterInit(t){(0,r.keys)(t.o.commandToHotkeys,!1).forEach((e=>{const s=t.o.commandToHotkeys[e];s&&((0,r.isArray)(s)||(0,r.isString)(s))&&t.registerHotkeyToCommand(s,e)}));let e=!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",(s=>{const i=this.onKeyPress(s),r={shouldStop:!0};if(!1===this.j.e.fire(i+".hotkey",s.type,r)){if(r.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;s.preventDefault()}}),{top:!0}).on("keyup.hotkeys",(()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1}),{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}})},16719(t,e,s){"use strict";var i=s(37446),r=s(46879),o=s(79102),n=s(30052),a=s(8223);n.J.set("hr",s.n(a)()),i.D.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},o.pw.add("hr",(t=>{t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",(()=>{const e=t.createInside.element("hr");t.s.insertNode(e,!1,!1);const s=r.i.closest(e.parentElement,r.i.isBlock,t.editor);s&&r.i.isEmpty(s)&&s!==t.editor&&(r.i.after(s,e),r.i.safeRemove(s));let i=r.i.next(e,r.i.isBlock,t.editor,!1);return i||(i=t.createInside.element(t.o.enter),r.i.after(e,i)),t.s.setCursorIn(i),!1}))}))},38280(t,e,s){"use strict";var i=s(37446);i.D.prototype.iframeBaseUrl="",i.D.prototype.iframeTitle="Jodit Editor",i.D.prototype.iframeDoctype="<!DOCTYPE html>",i.D.prototype.iframeDefaultSrc="about:blank",i.D.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}',i.D.prototype.iframeCSSLinks=[]},4406(t,e,s){"use strict";var i=s(76974),r=s(62924),o=s(79102);s(38280),o.pw.add("iframe",(t=>{const e=t.options;t.e.on("afterSetMode",(()=>{t.isEditorMode()&&t.s.focus()})).on("generateDocumentStructure.iframe",((t,s)=>{const r=t||s.iframe.contentWindow.document;if(r.open(),r.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,i.defaultLanguage)(e.language)}"><head>`+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),r.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach((t=>{const e=r.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),r.head&&r.head.appendChild(e)})),e.iframeStyle){const t=r.createElement("style");t.innerHTML=e.iframeStyle,r.head&&r.head.appendChild(t)}})).on("createEditor",(()=>{if(!e.iframe)return;const s=t.c.element("iframe");s.style.display="block",s.src="about:blank",s.className="jodit-wysiwyg_iframe",s.setAttribute("allowtransparency","true"),s.setAttribute("tabindex",""+e.tabIndex),s.setAttribute("frameborder","0"),t.workplace.appendChild(s),t.iframe=s;const o=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,i.callPromise)(o,(()=>{if(!t.iframe)return!1;const s=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;const o=()=>{(0,i.attr)(s.body,"contenteditable",t.getMode()!==r.MODE_SOURCE&&!t.getReadOnly()||null)},n=t=>{const e=/<body.*<\/body>/im,s="{%%BODY%%}",i=e.exec(t);return i&&(t=t.replace(e,s).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(s,i[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(e.editHTMLDocumentMode){const e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,i.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",(()=>n(t.o.iframeDoctype+s.documentElement.outerHTML))).on("beforeSetNativeEditorValue",(({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?n(s.documentElement.outerHTML)!==n(e)&&(s.open(),s.write(t.o.iframeDoctype+n(e)),s.close(),t.editor=s.body,t.e.fire("safeHTML",t.editor),o(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):s.body.innerHTML=e,!0)),{top:!0})}if(t.editor=s.body,t.e.on("afterSetMode afterInit afterAddPlace",o),"auto"===e.height){s.documentElement&&(s.documentElement.style.overflowY="hidden");const r=t.async.throttle(((...s)=>{t.async.requestAnimationFrame((()=>{if(t.editor&&t.iframe&&"auto"===e.height){const e=t.ew.getComputedStyle(t.editor);(0,i.css)(t.iframe,"height",t.editor.offsetHeight+(parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10)))}}))}),t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",r).on([t.iframe,t.ew,s.documentElement],"load",r).on(s,"readystatechange DOMContentLoaded",r),"function"==typeof ResizeObserver){const e=new ResizeObserver(r);e.observe(s.body),t.e.on("beforeDestruct",(()=>{e.disconnect()}))}}return s.documentElement&&t.e.on(s.documentElement,"mousedown touchend",(()=>{t.s.isFocused()||(t.s.focus(),t.editor===s.body&&t.s.setCursorIn(s.body))})).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(e=>{t.events?.fire(t.ow,e)})),!1}))}))}))},97731(t,e,s){"use strict";s(37446).D.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},58991(t,e,s){"use strict";var i=s(97582),r=s(76974),o=s(7331),n=s(13666),a=s(62924),l=s(79102);s(97731);const c="__jodit_imageprocessor_binded",h=c+"blob-id";class u extends o.S{afterInit(t){}beforeDestruct(t){const e=t.buffer.get(h);if(e){const s=Object.keys(e);for(const t of s)URL.revokeObjectURL(t);t.buffer.delete(h)}}onAfterGetValueFromEditor(t,e){if(e!==a.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){const{jodit:e}=this;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;const s=e.buffer.get(h);if(s){const e=Object.keys(s);for(const i of e)for(;t.value.includes(i);)t.value=t.value.replace(i,s[i])}}async afterChange(t){const{jodit:e}=this;e.editor&&(0,r.$$)("img",e.editor).forEach((t=>{(0,r.dataBind)(t,c)||((0,r.dataBind)(t,c,!0),t.complete||e.e.on(t,"load",(function s(){!e.isInDestruct&&e.e?.fire("resize"),e.e.off(t,"load",s)})),t.src&&/^data:/.test(t.src)&&((t,e)=>{if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;if("undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;const s=e.src,i=(t=>{const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),r=new Uint8Array(i);for(let t=0;e.length>t;t++)r[t]=e.charCodeAt(t);return new Blob([i],{type:s})})(s);e.src=URL.createObjectURL(i),t.e.fire("internalUpdate");const{buffer:r}=t,o=r.get(h)||{};o[e.src]=s,t.buffer.set(h,o)})(e,t),e.e.on(t,"mousedown touchstart",(()=>{e.s.select(t)})))}))}}(0,i.gn)([(0,n.watch)(":afterGetValueFromEditor")],u.prototype,"onAfterGetValueFromEditor",null),(0,i.gn)([(0,n.watch)(":beforeSetElementValue")],u.prototype,"onBeforeSetElementValue",null),(0,i.gn)([(0,n.watch)([":change",":afterInit",":changePlace"]),(0,n.debounce)()],u.prototype,"afterChange",null),l.pw.add("imageProcessor",u)},98139(t,e,s){"use strict";s(37446).D.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}},47(t,e,s){"use strict";var i=s(97582),r=s(27801),o=s(76974),n=s(6658),a=s(64856),l=s(13666),c=s(59210),h=s(79102),u=s(54079),d=s(89980),p=s(5150);s(98139);const f=t=>(t=(0,o.trim)(t),/^[0-9]+$/.test(t)?t+"px":t),m=t=>/^[-+]?[0-9.]+px$/.test(""+t)?parseFloat(""+t):t;class g extends r.Plugin{constructor(){super(...arguments),this.state={image:new Image,get ratio(){return this.image.naturalWidth/this.image.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0},this.activeTabState={__activeTab:"Image"}}onChangeMarginIsLocked(){if(!this.form)return;const{marginRight:t,marginBottom:e,marginLeft:s,lockMargin:i}=(0,o.refs)(this.form);[t,e,s].forEach((t=>{(0,o.attr)(t,"disabled",this.state.marginIsLocked||null)})),i.innerHTML=r.Icon.get(this.state.marginIsLocked?"lock":"unlock")}onChangeSizeIsLocked(){if(!this.form)return;const{lockSize:t,imageWidth:e}=(0,o.refs)(this.form);t.innerHTML=r.Icon.get(this.state.sizeIsLocked?"lock":"unlock"),t.classList.remove("jodit-properties__lock"),t.classList.remove("jodit-properties__unlock"),t.classList.add(this.state.sizeIsLocked?"jodit-properties__lock":"jodit-properties__unlock"),this.j.e.fire(e,"change")}open(){return this.makeForm(),this.activeTabState.__activeTab="Image",this.j.e.fire("hidePopup"),(0,o.markOwner)(this.j,this.dialog.container),this.state.marginIsLocked=!0,this.state.sizeIsLocked=!0,this.onChangeMarginIsLocked(),this.onChangeSizeIsLocked(),this.updateValues(),this.dialog.open().setModal(!0).setPosition(),!1}makeForm(){if(this.dialog)return;this.dialog=this.j.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]});const t=this.j,e=t.o,s=t.i18n.bind(t),i={check:(0,a.zx)(t,"ok","Apply","primary"),remove:(0,a.zx)(t,"bin","Delete")};t.e.on(this.dialog,"afterClose",(()=>{this.state.image.parentNode&&e.image.selectImageAfterClose&&t.s.select(this.state.image)})),i.remove.onAction((()=>{t.s.removeNode(this.state.image),this.dialog.close()}));const{dialog:r}=this;r.setHeader(s("Image properties"));const l=(0,u.c)(t);this.form=l,r.setContent(l);const{tabsBox:c}=(0,o.refs)(this.form);c&&c.appendChild((0,n.IL)(t,[{name:"Image",content:(0,d.t)(t)},{name:"Advanced",content:(0,p.G)(t)}],this.activeTabState)),i.check.onAction(this.onApply);const{changeImage:h,editImage:f}=(0,o.refs)(this.form);t.e.on(h,"click",this.openImagePopup),e.image.useImageEditor&&t.e.on(f,"click",this.openImageEditor);const{lockSize:m,lockMargin:g,imageWidth:v,imageHeight:b}=(0,o.refs)(l);m&&t.e.on(m,"click",(()=>{this.state.sizeIsLocked=!this.state.sizeIsLocked})),t.e.on(g,"click",(t=>{this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}));const _=t=>{if(!(0,o.isNumeric)(v.value)||!(0,o.isNumeric)(b.value))return;const e=parseFloat(v.value),s=parseFloat(b.value);t.target===v?b.value=""+Math.round(e/this.state.ratio):v.value=""+Math.round(s*this.state.ratio)};t.e.on([v,b],"change keydown mousedown paste",(e=>{this.state.sizeIsLocked&&t.async.setTimeout(_.bind(this,e),{timeout:t.defaultTimeout,label:"image-properties-changeSize"})})),r.setFooter([i.remove,i.check]),r.setSize(this.j.o.image.dialogWidth)}updateValues(){const t=this.j.o,{image:e}=this.state,{marginTop:s,marginRight:i,marginBottom:n,marginLeft:a,lockMargin:l,imageSrc:c,id:h,classes:u,align:d,style:p,imageTitle:f,imageAlt:g,borderRadius:v,imageLink:b,imageWidth:_,imageHeight:y,imageLinkOpenInNewTab:w,imageViewSrc:C,lockSize:S}=(0,o.refs)(this.form);(()=>{l.checked=this.state.marginIsLocked,S.checked=this.state.sizeIsLocked})(),c.value=(0,o.attr)(e,"src")||"",C&&(0,o.attr)(C,"src",(0,o.attr)(e,"src")||""),(()=>{f.value=(0,o.attr)(e,"title")||"",g.value=(0,o.attr)(e,"alt")||"";const t=r.Dom.closest(e,"a",this.j.editor);t?(b.value=(0,o.attr)(t,"href")||"",w.checked="_blank"===(0,o.attr)(t,"target")):(b.value="",w.checked=!1)})(),(()=>{const t=(0,o.attr)(e,"width")||(0,o.css)(e,"width",!0)||!1,s=(0,o.attr)(e,"height")||(0,o.css)(e,"height",!0)||!1;_.value=!1!==t?""+m(t):""+e.offsetWidth,y.value=!1!==s?""+m(s):""+e.offsetHeight,this.state.sizeIsLocked=(()=>!(!(0,o.isNumeric)(_.value)||!(0,o.isNumeric)(y.value))&&1>Math.abs(parseFloat(_.value)-parseFloat(y.value)*this.state.ratio))()})(),(()=>{if(!t.image.editMargins)return;let r=!0,l=!1;[s,i,n,a].forEach((t=>{const i=(0,o.attr)(t,"data-ref")||"";let n=e.style.getPropertyValue((0,o.kebabCase)(i));if(!n)return l=!0,void(t.value="");/^[0-9]+(px)?$/.test(n)&&(n=parseInt(n,10)),t.value=""+n||"",(l&&t.value||r&&"marginTop"!==i&&t.value!==s.value)&&(r=!1)})),this.state.marginIsLocked=r})(),u.value=((0,o.attr)(e,"class")||"").replace(/jodit_focused_image[\s]*/,""),h.value=(0,o.attr)(e,"id")||"",v.value=""+(parseInt(e.style.borderRadius||"0",10)||"0"),e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?d.value=(0,o.css)(e,"float"):"block"===(0,o.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight&&(d.value="center"),p.value=(0,o.attr)(e,"style")||""}onApply(){const{style:t,imageSrc:e,borderRadius:s,imageTitle:i,imageAlt:n,imageLink:a,imageWidth:l,imageHeight:c,marginTop:h,marginRight:u,marginBottom:d,marginLeft:p,imageLinkOpenInNewTab:m,align:g,classes:v,id:b}=(0,o.refs)(this.form),_=this.j.o,{image:y}=this.state;if(_.image.editStyle&&(0,o.attr)(y,"style",t.value||null),!e.value)return r.Dom.safeRemove(y),void this.dialog.close();(0,o.attr)(y,"src",e.value),y.style.borderRadius="0"!==s.value&&/^[0-9]+$/.test(s.value)?s.value+"px":"",(0,o.attr)(y,"title",i.value||null),(0,o.attr)(y,"alt",n.value||null);let w=r.Dom.closest(y,"a",this.j.editor);if(a.value?(w||(w=r.Dom.wrap(y,"a",this.j.createInside)),(0,o.attr)(w,"href",a.value),(0,o.attr)(w,"target",m.checked?"_blank":null)):w&&w.parentNode&&w.parentNode.replaceChild(y,w),l.value!==""+y.offsetWidth||c.value!==""+y.offsetHeight){const t=(0,o.trim)(l.value)?f(l.value):null,e=(0,o.trim)(c.value)?f(c.value):null;(0,o.css)(y,{width:t,height:e}),(0,o.attr)(y,"width",(0,o.attr)(y,"width")?t:null),(0,o.attr)(y,"height",(0,o.attr)(y,"height")?e:null)}const C=[h,u,d,p];_.image.editMargins&&(this.state.marginIsLocked?(0,o.css)(y,"margin",f(h.value)):C.forEach((t=>{const e=(0,o.attr)(t,"data-ref")||"";(0,o.css)(y,e,f(t.value))}))),_.image.editClass&&(0,o.attr)(y,"class",v.value||null),_.image.editId&&(0,o.attr)(y,"id",b.value||null),_.image.editAlign&&(0,o.hAlignElement)(y,g.value),this.j.synchronizeValues(),this.dialog.close()}openImageEditor(){const t=(0,o.attr)(this.state.image,"src")||"",e=this.j.c.element("a"),s=()=>{e.host===location.host||this.j.confirm("You can only edit your own images. Download this image on the host?",(t=>{t&&this.j.uploader&&this.j.uploader.uploadRemoteImage(""+e.href,(t=>{this.j.alert("The image has been successfully uploaded to the host!",(()=>{(0,o.isString)(t.newfilename)&&((0,o.attr)(this.state.image,"src",t.baseurl+t.newfilename),this.updateValues())}))}),(t=>{this.j.alert("There was an error loading %s",t.message)}))}))};e.href=t,this.j.filebrowser.dataProvider.getPathByUrl(""+e.href).then((s=>{c.r.call(this.j.filebrowser,e.href,s.name,s.path,s.source,(()=>{const e=(new Date).getTime();(0,o.attr)(this.state.image,"src",t+(-1!==t.indexOf("?")?"":"?")+"&_tmp="+e),this.updateValues()}),(t=>{this.j.alert(t.message)}))})).catch((t=>{this.j.alert(t.message,s)}))}openImagePopup(t){const e=new r.Popup(this.j),{changeImage:s}=(0,o.refs)(this.form);e.setZIndex(this.dialog.getZIndex()+1),e.setContent((0,n.ov)(this.j,{upload:t=>{t.files&&t.files.length&&(0,o.attr)(this.state.image,"src",t.baseurl+t.files[0]),this.updateValues(),e.close()},filebrowser:t=>{t&&(0,o.isArray)(t.files)&&t.files.length&&((0,o.attr)(this.state.image,"src",t.files[0]),e.close(),this.updateValues())}},this.state.image,e.close)).open((()=>(0,o.position)(s))),t.stopPropagation()}afterInit(t){const e=this;t.e.on("afterConstructor changePlace",(()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",(s=>{const i=s.target;if(r.Dom.isTag(i,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",i))return;e.state.image=i,t.o.readonly||(s.stopImmediatePropagation(),s.preventDefault(),e.open())}else s.stopImmediatePropagation(),t.s.select(i)}))})).on("openImageProperties.imageproperties",(t=>{this.state.image=t,this.open()}))}beforeDestruct(t){this.dialog&&this.dialog.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}}(0,i.gn)([(0,l.watch)("state.marginIsLocked")],g.prototype,"onChangeMarginIsLocked",null),(0,i.gn)([(0,l.watch)("state.sizeIsLocked")],g.prototype,"onChangeSizeIsLocked",null),(0,i.gn)([l.autobind],g.prototype,"onApply",null),(0,i.gn)([l.autobind],g.prototype,"openImageEditor",null),(0,i.gn)([l.autobind],g.prototype,"openImagePopup",null),h.pw.add("imageProperties",g)},54079(t,e,s){"use strict";s.d(e,{c(){return r}});var i=s(30052);function r(t){const{showPreview:e,editSize:s}=t.o.image,r=i.J.get.bind(i.J);return t.c.fromHTML(`<form class="jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="jodit-properties_view_box">\n\t\t\t\t\t<div style="${e?"":"display:none"}" class="jodit-properties_image_view">\n\t\t\t\t\t\t<img data-ref="imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="${s?"":"display:none"}" class="jodit-form__group jodit-properties_image_sizes">\n\t\t\t\t\t\t<input data-ref="imageWidth" type="text" class="jodit-input"/>\n\t\t\t\t\t\t<a data-ref="lockSize" class="jodit-properties__lock">${r("lock")}</a>\n\t\t\t\t\t\t<input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>\n\t\t</div>\n\t</form>`)}},89980(t,e,s){"use strict";s.d(e,{t(){return r}});var i=s(30052);function r(t){const e=t.o,s=t.i18n.bind(t),r=i.J.get.bind(i.J),o=e.filebrowser.ajax.url||e.uploader.url,n=e.image.useImageEditor;return t.c.fromHTML(`<div style="${e.image.editSrc?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Src")}</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input data-ref="imageSrc" class="jodit-input" type="text"/>\n\t\t\t\t<div\n\t\t\t\t\tclass="jodit-input_group-buttons"\n\t\t\t\t\tstyle="${o?"":"display: none"}"\n\t\t\t\t>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="changeImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t>${r("image")}</a>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="editImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t\tstyle="${n?"":"display: none"}"\n\t\t\t\t\t\t>${r("crop")}</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div style="${e.image.editTitle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Title")}</label>\n\t\t\t<input data-ref="imageTitle" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editAlt?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Alternative")}</label>\n\t\t\t<input data-ref="imageAlt" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Link")}</label>\n\t\t\t<input data-ref="imageLink" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>\n\t\t\t\t<span>${s("Open link in new tab")}</span>\n\t\t\t</label>\n\t\t</div>`)}},5150(t,e,s){"use strict";s.d(e,{G(){return r}});var i=s(30052);function r(t){const e=t.o,s=t.i18n.bind(t),r=i.J.get.bind(i.J),o=[];return e.image.availableClasses.length>0?(o.push('<select data-ref="classes" class="jodit-input jodit-select">'),e.image.availableClasses.forEach((t=>{o.push("string"==typeof t?`<option value="${t}">${t}</option>`:`<option value="${t[0]}">${t[1]}</option>`)})),o.push("</select>")):o.push('<input data-ref="classes" type="text" class="jodit-input"/>'),t.c.fromHTML(`<div style="${e.image.editMargins?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Margins")}</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="${s("top")}"/>\n\t\t\t\t<a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">${r("lock")}</a>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="${s("right")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="${s("bottom")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="${s("left")}"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${e.image.editAlign?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${s("Align")}</label>\n\t\t\t<select data-ref="align" class="jodit-select">\n\t\t\t\t<option value="">${s("--Not Set--")}</option>\n\t\t\t\t<option value="left">${s("Left")}</option>\n\t\t\t\t<option value="center">${s("Center")}</option>\n\t\t\t\t<option value="right">${s("Right")}</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div style="${e.image.editStyle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Styles")}</label>\n\t\t\t<input data-ref="style" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editClass?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Classes")}</label>\n\t\t\t${o.join("")}\n\t\t</div>\n\t\t<div style="${e.image.editId?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>Id</label>\n\t\t\t<input data-ref="id" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${e.image.editBorderRadius?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${s("Border radius")}</label>\n\t\t\t\t<input data-ref="borderRadius" type="number" class="jodit-input"/>\n\t\t</div>`)}},11226(t,e,s){"use strict";var i=s(46879),r=s(76974),o=s(6658),n=s(37446),a=s(79102),l=s(30052),c=s(51382);l.J.set("image",s.n(c)()),n.D.prototype.controls.image={popup(t,e,s){let n=null;return e&&!i.i.isText(e)&&i.i.isHTMLElement(e)&&(i.i.isTag(e,"img")||(0,r.$$)("img",e).length)&&(n=i.i.isTag(e,"img")?e:(0,r.$$)("img",e)[0]),t.s.save(),(0,o.ov)(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach((s=>t.s.insertImage(e.baseurl+s,null,t.o.imageDefaultWidth))),s()},upload:!0,async url(e,i){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);const r=n||t.createInside.element("img");r.setAttribute("src",e),r.setAttribute("alt",i),n||await t.s.insertImage(r,null,t.o.imageDefaultWidth),s()}},n,s)},tags:["img"],tooltip:"Insert Image"},a.pw.add("image",(t=>{t.registerButton({name:"image",group:"media"})}))},18016(t,e,s){"use strict";var i=s(37446),r=s(46879),o=s(30052),n=s(64258),a=s(30863),l=s.n(a),c=s(89721),h=s.n(c);o.J.set("indent",l()).set("outdent",h()),i.D.prototype.controls.indent={tooltip:"Increase Indent"},i.D.prototype.controls.outdent={isDisabled(t){const e=t.s.current();if(e){const s=r.i.closest(e,r.i.isBlock,t.editor);if(s){const e=(0,n.k)(t.o.direction,s);return!s.style[e]||0>=parseInt(s.style[e],10)}}return!0},tooltip:"Decrease Indent"},i.D.prototype.indentMargin=10},64258(t,e,s){"use strict";s.d(e,{k(){return r}});var i=s(9162);const r=(t,e)=>`${i.i.isCell(e)?"padding":"margin"}${"rtl"===t?"Right":"Left"}`},31423(t,e,s){"use strict";var i=s(62924),r=s(46879),o=s(76974),n=s(79102),a=(s(18016),s(64258));n.pw.add("indent",(t=>{t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});const e=e=>{const s=[];return t.s.eachSelection((n=>{t.s.save();let l=!!n&&r.i.up(n,r.i.isBlock,t.editor);const{enter:c}=t.o;if(!l&&n&&(l=r.i.wrapInline(n,c!==i.BR?c:i.PARAGRAPH,t)),!l)return t.s.restore(),!1;const h=s.includes(l);if(l&&!h){const i=(0,a.k)(t.o.direction,l);s.push(l);let r=l.style[i]?parseInt(l.style[i],10):0;r+=t.o.indentMargin*("outdent"===e?-1:1),l.style[i]=r>0?r+"px":"",(0,o.attr)(l,"style")||(0,o.attr)(l,"style",null)}t.s.restore()})),t.synchronizeValues(),!1};t.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})}))},14219(t,e,s){"use strict";s(74772),s(68845),s(12487),s(19913),s(59232),s(9611),s(80586),s(59657),s(13949),s(12706),s(28802),s(10682),s(43839),s(67905),s(50833),s(95768),s(33631),s(32255),s(88766),s(16719),s(4406),s(11226),s(58991),s(47),s(31423),s(63066),s(49201),s(95434),s(59174),s(52527),s(52183),s(69019),s(86899),s(73602),s(90302),s(7202),s(49724),s(66768),s(60153),s(4733),s(64020),s(72735),s(56866),s(53794),s(68135),s(78014),s(94895),s(31541),s(92831),s(1759),s(51370),s(71583),s(75210),s(1720),s(41012),s(98457),s(62),s(79745),s(45777),s(10796),s(4269),s(71327)},95508(t,e,s){"use strict";var i=s(37446),r=s(30052),o=s(10147),n=s.n(o),a=s(14165),l=s.n(a),c=s(42516),h=s.n(c),u=s(68315),d=s.n(u),p=s(80554),f=s.n(p),m=s(10328),g=s.n(m),v=s(69187),b=s.n(v),_=s(62029),y=s(15432),w=s(11754),C=s(78658),S=s(54182);i.D.prototype.toolbarInline=!0,i.D.prototype.toolbarInlineForSelection=!1,i.D.prototype.toolbarInlineDisableFor=[],i.D.prototype.toolbarInlineDisabledButtons=["source"],r.J.set("addcolumn",n()).set("addrow",l()).set("merge",h()).set("th",d()).set("splitg",f()).set("splitv",g()).set("th-list",b()),i.D.prototype.popup={a:_.Z,img:y.Z,cells:w.Z,toolbar:C.Z,jodit:S.Z,iframe:S.Z,"jodit-media":S.Z,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},62029(t,e,s){"use strict";var i=s(23144);e.Z=[{name:"eye",tooltip:"Open link",exec(t,e){const s=(0,i.L)(e,"href");e&&s&&t.ow.open(s)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},11754(t,e,s){"use strict";var i=s(78157),r=s(71737),o=s(6658);const n=t=>t.args&&(0,i.HD)(t.args[0])?t.args[0].toLowerCase():"";e.Z=[{name:"brush",popup(t,e,s){if(!(0,i.Zu)(t))return;const n=t.getInstance("Table",t.o).getAllSelectedCells();if(!n.length)return!1;const a=e=>(0,o.YW)(t,(i=>{n.forEach((t=>{(0,r.i)(t,e,i)})),t.lock(),t.synchronizeValues(),s(),t.unlock()}),(0,r.i)(n[0],e));return(0,o.IL)(t,[{name:"Background",content:a("background-color")},{name:"Text",content:a("color")},{name:"Border",content:a("border-color")}])},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate(t,e,s){return s},exec(t,e,{control:s}){const i=n(s);t.getInstance("Table",t.o).getAllSelectedCells().forEach((t=>{(0,r.i)(t,"vertical-align","normal"===i?"":i)}))},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,e,{control:s}){if(!(0,i.Zu)(t))return;const r=n(s);t.execCommand(r,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:s}){if(!(0,i.Zu)(t))return;const r=n(s);t.execCommand(r,!1,e)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(t,e,{control:s}){if(!(0,i.Zu)(t))return;const r=n(s);t.execCommand(r,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}]},54182(t,e,s){"use strict";var i=s(15432);e.Z=[{name:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},i.A]},15432(t,e,s){"use strict";s.d(e,{A(){return a}});var i=s(46879),r=s(2926),o=s(71737),n=s(13931);const a={name:"left",childTemplate(t,e,s){return s},list:["Left","Right","Center","Normal"],exec(t,e,{control:s}){if(!i.i.isTag(e,new Set(["img","jodit","jodit-media"])))return;const o=s.args&&(0,r.H)(s.args[0])?s.args[0].toLowerCase():"";if(!o)return!1;(0,n.zC)(e,o),i.i.isTag(e,new Set(["jodit","jodit-media"]))&&e.firstElementChild&&(0,n.zC)(e.firstElementChild,o),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};e.Z=[{name:"delete",icon:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},{name:"pencil",exec(t,e){"img"===e.tagName.toLowerCase()&&t.e.fire("openImageProperties",e)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(t,e,{control:s}){if(!i.i.isTag(e,"img"))return;const n=s.args&&(0,r.H)(s.args[0])?s.args[0].toLowerCase():"";if(!n)return!1;(0,o.i)(e,"vertical-align","normal"===n?"":n),t.e.fire("recalcPositionPopup")}},a]},78658(t,e){"use strict";e.Z=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},63066(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(55027),n=s(8855),a=s(76974),l=s(46879),c=s(14712),h=s(13666),u=s(79102);s(95508);class d extends r.S{constructor(){super(...arguments),this.type=null,this.snapRange=null,this.elmsList=(0,a.keys)(this.j.o.popup,!1).filter((t=>!this.isExcludedTarget(t)))}get popup(){return new n.G(this.jodit,!1)}get toolbar(){return(0,o.RP)(this.jodit,this.popup)}onClick(t){const e=this.elmsList,s=l.i.isTag(t,"img")?t:l.i.closest(t,e,this.j.editor);if(s&&this.canShowPopupForType(s.nodeName.toLowerCase()))return this.showPopup((()=>(0,a.position)(s,this.j)),s.nodeName.toLowerCase(),s),!1}showPopup(t,e,s){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||s!==this.previousTarget){this.previousTarget=s;const t=this.j.o.popup[e];let i;i=(0,a.isFunction)(t)?t(this.j,s,this.popup.close):t,(0,a.isArray)(i)&&(this.toolbar.build(i,s),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,i=this.toolbar.container),this.popup.setContent(i),this.type=e}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){const e=this.j.o.popup[t.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!e||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",(e=>{if(this.toolbar===e){const e=this.toolbar.getButtonsNames();return(0,a.toArray)(t.registeredButtons).filter((t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name))).filter((t=>{const s=(0,a.isString)(t)?t:t.name;return s&&"|"!==s&&"\n"!==s&&!e.includes(s)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",((t,e,s)=>{this.showPopup(e,s||((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),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&c.u1.closestElement(t.target,n.G))return;const{snapRange:e}=this,{range:s}=this.j.s;e&&!s.collapsed&&s.startContainer===e.startContainer&&s.startOffset===e.startOffset&&s.endContainer===e.endContainer&&s.endOffset===e.endOffset||this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;const t="selection",e=this.j.s.sel,s=this.j.s.range;e?.isCollapsed||this.isSelectedTarget(s)||this.tableModule.getAllSelectedCells().length?this.type===t&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((()=>s.getBoundingClientRect()),t)}isSelectedTarget(t){const e=t.startContainer;return l.i.isElement(e)&&e===t.endContainer&&l.i.isTag(e.childNodes[t.startOffset],new Set((0,a.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}get tableModule(){return this.j.getInstance("Table",this.j.o)}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){const 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;const{range:e}=this.j.s;return e.getBoundingClientRect()}),"toolbar")}}d.requires=["select"],(0,i.gn)([h.cache],d.prototype,"popup",null),(0,i.gn)([h.cache],d.prototype,"toolbar",null),(0,i.gn)([h.autobind],d.prototype,"onClick",null),(0,i.gn)([(0,h.wait)((t=>!t.j.isLocked))],d.prototype,"showPopup",null),(0,i.gn)([(0,h.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),h.autobind],d.prototype,"hidePopup",null),(0,i.gn)([(0,h.watch)(":outsideClick")],d.prototype,"onOutsideClick",null),(0,i.gn)([h.autobind],d.prototype,"onSelectionStart",null),(0,i.gn)([h.autobind],d.prototype,"onSelectionEnd",null),(0,i.gn)([(0,h.debounce)((t=>t.defaultTimeout))],d.prototype,"onSelectionChange",null),(0,i.gn)([h.autobind],d.prototype,"showInlineToolbar",null),u.pw.add("inlinePopup",d)},49201(t,e,s){"use strict";var i=s(37446),r=s(9162),o=s(71737),n=s(13931),a=s(79102),l=s(30052),c=s(94484);l.J.set("justify",s.n(c)()),i.D.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){const s=e.control,i=t.s.current();if(i){const n=r.i.closest(i,r.i.isBlock,t.editor)||t.editor;let a=""+(0,o.i)(n,"text-align");s.defaultValue&&-1!==s.defaultValue.indexOf(a)&&(a="left"),s.data&&s.data.currentValue!==a&&s.list&&s.list[a]&&(t.o.textIcons||"select"===s.component?e.state.text=a:e.state.icon.name=a,s.data.currentValue=a)}},isActive(t,e){const s=t.s.current();if(!s||!e.control.defaultValue)return!1;const i=r.i.closest(s,r.i.isBlock,t.editor)||t.editor;return-1===e.control.defaultValue.indexOf(""+(0,o.i)(i,"text-align"))},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},i.D.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},i.D.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},i.D.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},i.D.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},a.pw.add("justify",(t=>{t.registerButton({name:"align",group:"indent"});const e=e=>(t.s.focus(),t.s.eachSelection((s=>{if(!s)return;let i=r.i.up(s,r.i.isBlock,t.editor);i||(i=r.i.wrapInline(s,t.o.enterBlock,t)),(0,n.E3)(e,i)})),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)}))},95434(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(13666),n=s(62924),a=s(9162),l=s(79102);class c extends r.S{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==n.KEY_RIGHT||!this.j.selection.isCollapsed())return;const{endContainer:e,endOffset:s}=this.j.selection.range;if(a.i.isText(e)&&e.nodeValue?.length===s){const{parentNode:t}=e;a.i.isInlineBlock(t)&&!a.i.findNotEmptyNeighbor(t,!1,this.j.editor)&&a.i.after(t,this.j.createInside.text(n.NBSP_SPACE))}}}(0,i.gn)([(0,o.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),l.pw.add("keyArrowOutside",c)},54555(t,e,s){"use strict";var i=s(37446);i.D.prototype.limitWords=!1,i.D.prototype.limitChars=!1,i.D.prototype.limitHTML=!1},59174(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(62924),n=s(13666),a=s(79102);s(54555);class l extends r.S{afterInit(t){const{limitWords:e,limitChars:s}=t.o;if(t&&(e||s)){let e=null;t.e.off(".limit").on("beforePaste.limit",(()=>{e=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)&&e)return t.history.snapshot.restore(e),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){const{jodit:e}=this,{limitWords:s,limitChars:i}=e.o,r=this.__splitWords(e.o.limitHTML?e.value:e.text);if(s&&c(r.length,s,t))return e.e.fire("denyWords.limit limit.limit"),!0;const o=!(!i||!c(r.join("").length,i,t));return o&&e.e.fire("denyChars.limit limit.limit"),o}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){const{jodit:s}=this;this.__shouldDenyInput(!0)&&(s.value=e)}__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")}}function c(t,e,s){return s?t>e:t>=e}(0,i.gn)([n.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,i.gn)([n.autobind],l.prototype,"checkPreventChanging",null),a.pw.add("limit",l)},43664(t,e,s){"use strict";var i=s(37446),r=s(76974),o=s(30052),n=s(30165),a=s.n(n);i.D.prototype.defaultLineHeight=null,o.J.set("line-height",a()),i.D.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,e,{control:s}){return(0,r.memorizeExec)(t,e,{control:s},(t=>t))}}},94519(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(45143)},52527(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(76974),n=s(13666),a=s(9162),l=s(79102),c=s(94519);s(43664);class h extends r.S{constructor(t){super(t),this.buttons=[{name:"lineHeight",group:"font"}],(0,l.xl)(c)}afterInit(t){(0,o.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,e,s){const{s:i,createInside:r,editor:n,o:l}=this.j;let c;i.isFocused()||i.focus(),i.save();const h=t=>{let e=a.i.closest(t,a.i.isBlock,n);e||(e=a.i.wrap(t,l.enter,r));const i=(0,o.css)(e,"lineHeight");void 0===c&&(c=""+i!=""+s),(0,o.css)(e,"lineHeight",c?s:null)};try{if(i.isCollapsed()){const t=r.fake();i.insertNode(t,!1,!1),h(t),a.i.safeRemove(t)}else i.eachSelection(h)}finally{i.restore()}}beforeDestruct(t){(0,o.css)(t.editor,{lineHeight:null})}}(0,i.gn)([n.autobind],h.prototype,"applyLineHeight",null),l.pw.add("lineHeight",h)},93584(t,e,s){"use strict";var i=s(37446),r=s(88134),o=s(9162),n=s(30052),a=s(10530),l=s.n(a),c=s(52401),h=s.n(c);i.D.prototype.link={formTemplate:r.t,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},n.J.set("link",l()).set("unlink",h()),i.D.prototype.controls.unlink={exec(t,e){const s=o.i.closest(e,"a",t.editor);s&&o.i.unwrap(s),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},i.D.prototype.controls.link={isActive(t){const e=t.s.current();return!(!e||!o.i.closest(e,"a",t.editor))},popup(t,e,s){return t.e.fire("generateLinkForm.link",e,s)},tags:["a"],tooltip:"Insert link"}},52183(t,e,s){"use strict";var i=s(97582),r=s(46879),o=s(76974),n=s(7331),a=s(13666),l=s(79102);s(93584);class c extends n.S{constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.onDblClickOnLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{const e=t.dlg({resizable:!1}),s=this.__generateForm(t.s.current(),(()=>{e.close()}));s.container.classList.add("jodit-dialog_alert"),e.setContent(s),e.open(),t.async.requestIdleCallback((()=>{const{url_input:t}=(0,o.refs)(s.container);t?.focus()}))},hotkeys:t.o.link.hotkeys})}onDblClickOnLink(t){if(!r.i.isTag(t.target,"a"))return;const e=(0,o.attr)(t.target,"href");e&&(location.href=e,t.preventDefault())}onProcessPasteLink(t,e){const{jodit:s}=this;if((0,o.isURL)(e)&&s.o.link.processPastedLink){if(s.e.stopPropagation("processPaste"),s.o.link.processVideoLink){const t=(0,o.convertMediaUrlToVideoEmbed)(e);if(t!==e)return s.createInside.fromHTML(t)}if(s.s.isCollapsed()){const t=s.createInside.element("a");return t.setAttribute("href",e),t.textContent=e,s.e.fire("applyLink",s,t,null),t}return s.s.commitStyle({element:"a",attributes:{href:e}}),!0}}__generateForm(t,e){const{jodit:s}=this,i=s.i18n.bind(s),{openInNewTabCheckbox:n,noFollowCheckbox:a,formTemplate:l,formClassName:c,modeClassName:h}=s.o.link,u=l(s),d=(0,o.isString)(u)?s.c.fromHTML(u,{target_checkbox_box:n,nofollow_checkbox_box:a}):u,p=r.i.isElement(d)?d:d.container,f=(0,o.refs)(p),{insert:m,unlink:g,content_input_box:v}=f,{target_checkbox:b,nofollow_checkbox:_,url_input:y}=f,w=r.i.isImage(t);let{content_input:C}=f;const{className_input:S}=f,{className_select:E}=f;let x;C||(C=s.c.element("input",{type:"hidden",ref:"content_input"})),c&&p.classList.add(c),w&&r.i.hide(v);const j=()=>x?x.innerText:(0,o.stripTags)(s.s.range.cloneContents(),s.ed);if(x=!(!t||!r.i.closest(t,"a",s.editor))&&r.i.closest(t,"a",s.editor),!w&&t&&(C.value=j()),x){if(y.value=(0,o.attr)(x,"href")||"",h)switch(h){case"input":S&&(S.value=(0,o.attr)(x,"class")||"");break;case"select":if(E){for(let t=0;E.selectedOptions.length>t;t++){const e=E.options.item(t);e&&(e.selected=!1)}((0,o.attr)(x,"class")||"").split(" ").forEach((t=>{if(t)for(let e=0;E.options.length>e;e++){const s=E.options.item(e);s?.value&&s.value===t&&(s.selected=!0)}}))}}n&&b&&(b.checked="_blank"===(0,o.attr)(x,"target")),a&&_&&(_.checked="nofollow"===(0,o.attr)(x,"rel")),m.textContent=i("Update")}else r.i.hide(g);s.editor.normalize();const I=s.history.snapshot.make();g&&s.e.on(g,"click",(t=>{s.s.restore(),s.history.snapshot.restore(I),x&&r.i.unwrap(x),s.synchronizeValues(),e(),t.preventDefault()}));const T=()=>{if(!y.value.trim().length)return y.focus(),y.classList.add("jodit_error"),!1;let t;s.s.restore(),s.s.removeMarkers(),s.editor.normalize(),s.history.snapshot.restore(I);const i=j()!==C.value.trim(),l=s.createInside;if(x)t=[x];else{if(s.s.isCollapsed()){const e=l.element("a");s.s.insertNode(e,!1,!1),t=[e]}else{const e=s.s.current();t=r.i.isTag(e,"img")?[r.i.wrap(e,"a",l)]:s.s.wrapInTag("a")}t.forEach((t=>s.s.select(t)))}return t.forEach((t=>{if((0,o.attr)(t,"href",y.value),h&&(S??E))if("input"===h)""===S.value&&t.hasAttribute("class")&&(0,o.attr)(t,"class",null),""!==S.value&&(0,o.attr)(t,"class",S.value);else if("select"===h){t.hasAttribute("class")&&(0,o.attr)(t,"class",null);for(let e=0;E.selectedOptions.length>e;e++){const s=E.selectedOptions.item(e)?.value;s&&t.classList.add(s)}}if(!w){let e=t.textContent;C.value.trim().length?i&&(e=C.value):e=y.value,e!==t.textContent&&(t.textContent=e)}n&&b&&(0,o.attr)(t,"target",b.checked?"_blank":null),a&&_&&(0,o.attr)(t,"rel",_.checked?"nofollow":null),s.e.fire("applyLink",s,t,d)})),s.synchronizeValues(),e(),!1};return r.i.isElement(d)?s.e.on(d,"submit",(t=>(t.preventDefault(),t.stopImmediatePropagation(),T(),!1))):d.onSubmit(T),d}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.onDblClickOnLink).off("processPaste.link",this.onProcessPasteLink)}}(0,i.gn)([a.autobind],c.prototype,"onDblClickOnLink",null),(0,i.gn)([a.autobind],c.prototype,"onProcessPasteLink",null),(0,i.gn)([a.autobind],c.prototype,"__generateForm",null),l.pw.add("link",c)},88134(t,e,s){"use strict";s.d(e,{t(){return o}});var i=s(79e3),r=s(64856);const o=t=>{const{openInNewTabCheckbox:e,noFollowCheckbox:s,modeClassName:o,selectSizeClassName:n,selectMultipleClassName:a,selectOptionsClassName:l}=t.o.link;return new i.x4(t,[new i.eC(t,[new i.u3(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new i.eC(t,[new i.u3(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),o?new i.eC(t,["input"===o?new i.u3(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===o?new i.Cj(t,{name:"className",ref:"className_select",label:"Class name",size:n,multiple:a,options:l}):null]):null,e?new i.mA(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,s?new i.mA(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new i.eC(t,[new r.y3(t,{name:"unlink",variant:"default",text:"Unlink"}),new r.y3(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},55681(t,e,s){"use strict";var i=s(37446);i.D.prototype.mediaFakeTag="jodit-media",i.D.prototype.mediaInFakeBlock=!0,i.D.prototype.mediaBlocks=["video","audio"]},69019(t,e,s){"use strict";var i=s(62924),r=s(86284),o=s(79102);s(55681),o.pw.add("media",(t=>{const e="jodit_fake_wrapper",{mediaFakeTag:s,mediaBlocks:o,mediaInFakeBlock:n}=t.options;n&&t.e.on("afterGetValueFromEditor",(t=>{const i=RegExp(`<${s}[^>]+data-${e}[^>]+>([^]+?)</${s}>`,"ig");i.test(t.value)&&(t.value=t.value.replace(i,"$1"))})).on("change afterInit afterSetMode changePlace",t.async.debounce((()=>{t.isDestructed||t.getMode()===i.MODE_SOURCE||(0,r.$$)(o.join(","),t.editor).forEach((i=>{(0,r.dataBind)(i,e)||((0,r.dataBind)(i,e,!0),(i=>{if(i.parentNode&&(0,r.attr)(i.parentNode,"data-jodit_iframe_wrapper"))i=i.parentNode;else{const o=t.createInside.element(s,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+e]:1});(0,r.attr)(o,"style",(0,r.attr)(i,"style")),o.style.display="inline-block"===i.style.display?"inline-block":"block",o.style.width=i.offsetWidth+"px",o.style.height=i.offsetHeight+"px",i.parentNode&&i.parentNode.insertBefore(o,i),o.appendChild(i),i=o}t.e.off(i,"mousedown.select touchstart.select").on(i,"mousedown.select touchstart.select",(()=>{t.s.setCursorAfter(i)}))})(i))}))}),t.defaultTimeout))}))},91357(t,e,s){"use strict";var i=s(37446),r=s(62924),o=s(55027),n=s(76974),a=s(32596);i.D.prototype.mobileTapTimeout=300,i.D.prototype.toolbarAdaptive=!0,i.D.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"],i.D.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"],i.D.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],i.D.prototype.controls.dots={mode:r.MODE_SOURCE+r.MODE_WYSIWYG,popup(t,e,s,i){let r=i.control.data;return void 0===r&&(r={toolbar:(0,o.RP)(t),rebuild(){if(i){const e=t.e.fire("getDiffButtons.mobile",i.closest(a.n));e&&r&&(r.toolbar.build((0,n.splitArray)(e)),r.toolbar.container.style.width=3*((t.toolbar?.firstButton?.container.offsetWidth||36)+4)+"px")}}},i.control.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"}},86899(t,e,s){"use strict";var i=s(76974),r=s(79392),o=s(79102);s(91357),o.pw.add("mobile",(t=>{let e=0,s=(0,i.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",(s=>{if(s.changedTouches&&s.changedTouches.length){const i=(new Date).getTime(),r=i-e;r>t.o.mobileTapTimeout&&(e=i,1.5*t.o.mobileTapTimeout>r&&t.s.insertCursorAtPoint(s.clientX,s.clientY))}})),t.e.on("getDiffButtons.mobile",(e=>{if(e===t.toolbar){const e=(0,r.q)((0,i.splitArray)(t.o.buttons),t),o=(0,r.q)(s,t);return(0,i.toArray)(e).reduce(((t,e)=>(o.has(e)||t.push(e),t)),[])}})),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(()=>{if(!t.o.toolbar)return;const e=(t.container.parentElement??t.container).offsetWidth,r=(0,i.splitArray)(t.isFullSize||e>=t.o.sizeLG?t.o.buttons:t.o.sizeMD>e?t.o.sizeSM>e?t.o.buttonsXS:t.o.buttonsSM:t.o.buttonsMD);""+r!=""+s&&(s=r,t.e.fire("closeAllPopups"),t.toolbar?.setRemoveButtons(t.o.removeButtons).build(s.concat(t.o.extraButtons)))})).on(t.ow,"load resize",(()=>t.e.fire("recalcAdaptive")))}))},5163(t,e,s){"use strict";var i=s(37446),r=s(25920),o=s(30052),n=s(44931),a=s.n(n),l=s(29845),c=s.n(l);const h=(t,e,{control:s})=>{const i="button"+s.command,o=(s.args&&s.args[0])??(0,r.q)(t,i);(0,r.q)(t,i,o),t.execCommand(s.command,!1,"default"===o?null:o)};o.J.set("ol",a()).set("ul",c()),i.D.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:h},i.D.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:h}},73602(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(13666),n=s(79102);s(5163);class a extends r.S{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,s){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:s??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}}(0,i.gn)([o.autobind],a.prototype,"onCommand",null),n.pw.add("orderedList",a)},36659(t,e,s){"use strict";var i=s(37446),r=s(62924);i.D.prototype.askBeforePasteFromWord=!0,i.D.prototype.processPasteFromWord=!0,i.D.prototype.defaultActionOnPasteFromWord=null,i.D.prototype.pasteFromWordActionList=[{value:r.INSERT_AS_HTML,text:"Keep"},{value:r.INSERT_AS_TEXT,text:"Clean"},{value:r.INSERT_ONLY_TEXT,text:"Insert only Text"}]},7202(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(76974),n=s(62924),a=s(13666),l=s(81310),c=s(79102);s(36659);class h extends r.S{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,s){const{j:i}=this,{processPasteFromWord:r,askBeforePasteFromWord:n,defaultActionOnPasteFromWord:a,defaultActionOnPaste:c,pasteFromWordActionList:h}=i.o;return!(!r||!(0,o.isHtmlFromWord)(e)||(n?(0,l.$t)(i,"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",(i=>{this.insertFromWordByType(t,e,i,s)}),h):this.insertFromWordByType(t,e,a||c,s),0))}insertFromWordByType(t,e,s,i){switch(s){case n.INSERT_AS_HTML:{e=(0,o.applyStyles)(e);const t=this.j.events?.fire("beautifyHTML",e);(0,o.isString)(t)&&(e=t);break}case n.INSERT_AS_TEXT:e=(0,o.cleanFromWord)(e);break;case n.INSERT_ONLY_TEXT:e=(0,o.stripTags)((0,o.cleanFromWord)(e))}(0,l.kU)(t,this.j,e)}}h.requires=["paste"],(0,i.gn)([(0,a.watch)(":processHTML")],h.prototype,"processWordHTML",null),c.pw.add("pasteFromWord",h)},49724(t,e,s){"use strict";var i=s(62924),r=s(97651),o=s(9162),n=s(76974),a=s(22003);s(79102).pw.add("pasteStorage",class l extends r.S{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){const 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 e=this.currentIndex;-1!==[i.KEY_UP,i.KEY_DOWN,i.KEY_ENTER].indexOf(t.key)&&(t.key===i.KEY_UP&&(0===e?e=this.list.length-1:e-=1),t.key===i.KEY_DOWN&&(e===this.list.length-1?e=0:e+=1),t.key!==i.KEY_ENTER?(e!==this.currentIndex&&this.selectIndex(e),t.stopImmediatePropagation(),t.preventDefault()):this.paste())},this.selectIndex=t=>{this.listBox&&(0,n.toArray)(this.listBox.childNodes).forEach(((e,s)=>{e.classList.remove("jodit_active"),t===s&&this.previewBox&&(e.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],e.focus())})),this.currentIndex=t},this.showDialog=()=>{2>this.list.length||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach(((t,e)=>{const s=this.j.c.element("a");s.textContent=e+1+". "+t.replace((0,i.SPACE_REG_EXP)(),""),this.j.e.on(s,"keydown",this.onKeyDown),(0,n.attr)(s,"href","#"),(0,n.attr)(s,"data-index",""+e),(0,n.attr)(s,"tab-index","-1"),this.listBox&&this.listBox.appendChild(s)})),this.dialog&&this.dialog.open(),this.j.async.setTimeout((()=>{this.selectIndex(0)}),100))}}createDialog(){this.dialog=this.j.dlg();const t=(0,a.zx)(this.j,"paste","Paste","primary");t.onAction(this.paste);const e=(0,a.zx)(this.j,"","Cancel");e.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,e]),this.j.e.on(this.listBox,"click dblclick",(t=>{const e=t.target;return o.i.isTag(e,"a")&&e.hasAttribute("data-index")&&this.selectIndex(parseInt((0,n.attr)(e,"-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"),o.i.safeRemove(this.previewBox),o.i.safeRemove(this.listBox),o.i.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}})},11432(t,e,s){"use strict";var i=s(62924),r=s(37446),o=s(81310);r.D.prototype.askBeforePasteHTML=!0,r.D.prototype.processPasteHTML=!0,r.D.prototype.scrollToPastedContent=!0,r.D.prototype.pasteExcludeStripTags=["br","hr"],r.D.prototype.pasteHTMLActionList=[{value:i.INSERT_AS_HTML,text:"Keep"},{value:i.INSERT_AS_TEXT,text:"Insert as Text"},{value:i.INSERT_ONLY_TEXT,text:"Insert only Text"}],r.D.prototype.memorizeChoiceWhenPasteFragment=!1,r.D.prototype.nl2brInPlainText=!0;const n="pasteStorage";r.D.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,e,{control:s}){if(s.name===n)return void t.execCommand("showPasteStorage");t.s.focus();let r="",a=!0;if(navigator.clipboard){try{const t=await navigator.clipboard.read();if(t&&t.length){const e=await t[0].getType(i.TEXT_PLAIN);r=await new Response(e).text()}a=!1}catch(t){}if(a)try{r=await navigator.clipboard.readText(),a=!1}catch(t){}}a&&(r=t.buffer.get(i.CLIPBOARD_ID)||"",a=0===r.length);const l=t.value;a?(t.ed.execCommand("paste"),a=l===t.value,!a&&t.e.fire("afterPaste")):r.length?((0,o.kU)(null,t,r),t.e.fire("afterPaste")):a&&t.alert("Your browser doesn't support direct access to the clipboard.",(()=>{t.s.focus()}))},list:{[n]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")}},81310(t,e,s){"use strict";s.d(e,{$t(){return c},ZH(){return l},kU(){return a}});var i=s(78157),r=s(9162),o=s(62924),n=s(22003);function a(t,e,s){if(e.isInDestruct)return;(t=>!(!t||"drop"!==t.type))(t)&&e.s.insertCursorAtPoint(t.clientX,t.clientY);const o=e.e.fire("beforePasteInsert",s);!(0,i.nj)(o)&&((0,i.HD)(o)||(0,i.hj)(o)||r.i.isNode(o))&&(s=o),(0,i.HD)(s)&&(s=(t=>{const e=(t=t.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==e&&(t=t.substring(e+20));const s=t.search(/<!--EndFragment-->/i);return-1!==s&&(t=t.substring(0,s)),t})(s)),e.s.insertHTML(s)}function l(t){const e=t.types;let s="";if((0,i.kJ)(e)||"[object DOMStringList]"==={}.toString.call(e))for(let t=0;e.length>t;t+=1)s+=e[t]+";";else s=(e||o.TEXT_PLAIN)+";";return s}function c(t,e,s,i,r){if(!1===t.e.fire("beforeOpenPasteDialog",e,s,i,r))return;const o=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(s)),a=r.map((({text:e,value:s})=>(0,n.zx)(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction((()=>{o.close(),i(s)}))));o.e.one(o,"afterClose",(()=>{t.s.isFocused()||t.s.focus()}));const l=(0,n.zx)(t,{text:"Cancel",tabIndex:0}).onAction((()=>{o.close()}));return o.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",o,e,s,i,r),o}},90302(t,e,s){"use strict";var i=s(97582),r=s(97651),o=s(62924),n=s(9162),a=s(13666),l=s(76974),c=s(79102),h=s(81310);s(11432);class u extends r.S{constructor(){super(...arguments),this.pasteStack=new l.LimitedStack(20),this._isDialogOpened=!1}afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(t=>this.pasteStack.push(t))),t.o.nl2brInPlainText&&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;const e=(0,l.getDataTransfer)(t),s=[e?.getData(o.TEXT_PLAIN),e?.getData(o.TEXT_HTML),e?.getData(o.TEXT_RTF)];for(const e of s)if((0,l.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,{plain:s[0],html:s[1],rtf:s[2]})||this.processHTML(t,e)))return!1}defaultPasteProcess(t){const e=(0,l.getDataTransfer)(t);let s=e?.getData(o.TEXT_HTML)||e?.getData(o.TEXT_PLAIN);if(e&&s&&""!==(0,l.trim)(s)){const i=this.j.e.fire("processPaste",t,s,(0,h.ZH)(e));void 0!==i&&(s=i),((0,l.isString)(s)||n.i.isNode(s))&&this.__insertByType(t,s,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){const s=this.pasteStack.find((t=>t.html===e));if(s)return this.__insertByType(t,e,s.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;const s=(0,h.$t)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(s=>{this._isDialogOpened=!1,this.__insertByType(t,e,s)}),this.j.o.pasteHTMLActionList);return s&&(this._isDialogOpened=!0,s.e.on("beforeClose",(()=>{this._isDialogOpened=!1}))),!0}__insertByType(t,e,s){if(this.pasteStack.push({html:e,action:s}),(0,l.isString)(e))switch(this.j.buffer.set(o.CLIPBOARD_ID,e),s){case o.INSERT_CLEAR_HTML:e=(0,l.cleanFromWord)(e);break;case o.INSERT_ONLY_TEXT:e=(0,l.stripTags)(e,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case o.INSERT_AS_TEXT:e=(0,l.htmlspecialchars)(e)}(0,h.kU)(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,s){if(s===o.TEXT_PLAIN+";"&&!(0,l.isHTML)(e))return(0,l.nl2br)(e)}}(0,i.gn)([a.autobind],u.prototype,"onPaste",null),(0,i.gn)([a.autobind],u.prototype,"onProcessPasteReplaceNl2Br",null),c.pw.add("paste",u)},67797(t,e,s){"use strict";var i=s(37446);i.D.prototype.showPlaceholder=!0,i.D.prototype.placeholder="Type something",i.D.prototype.useInputsPlaceholder=!0},66768(t,e,s){"use strict";var i=s(97582),r=s(62924),o=s(23144),n=s(71737),a=s(29894),l=s(9162),c=s(97651),h=s(13666),u=s(79102);s(67797);class d extends c.S{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=()=>{const t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,o.L)(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()}}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(){const t=this.j;if(t.o.readonly)return;let e=0,s=0;const i=t.s.current(),r=i&&l.i.closest(i,l.i.isBlock,t.editor)||t.editor,o=t.ew.getComputedStyle(r),c=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);const{firstChild:h}=t.editor;if(l.i.isElement(h)&&!(0,a._)(h)){const i=t.ew.getComputedStyle(h);e=parseInt(i.getPropertyValue("margin-top"),10),s=parseInt(i.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height");(0,n.i)(this.placeholderElm,{display:"block",textAlign:o.getPropertyValue("text-align"),paddingTop:parseInt(c.paddingTop,10)+"px",paddingLeft:parseInt(c.paddingLeft,10)+"px",paddingRight:parseInt(c.paddingRight,10)+"px",marginTop:Math.max(parseInt(o.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(o.getPropertyValue("margin-left"),10),s)})}hide(){l.i.safeRemove(this.placeholderElm)}toggle(){const t=this.j;t.editor&&!t.isInDestruct&&(t.getRealMode()===r.MODE_WYSIWYG&&(t=>{if(!t.firstChild)return!0;const e=t.firstChild;if(r.INSEPARABLE_TAGS.has(e.nodeName?.toLowerCase())||/^(TABLE)$/i.test(e.nodeName))return!1;const s=l.i.next(e,(t=>t&&!l.i.isEmptyTextNode(t)),t);return l.i.isText(e)&&!s?l.i.isEmptyTextNode(e):!s&&l.i.each(e,(t=>!(l.i.isLeaf(t)||l.i.isList(t))&&(l.i.isEmpty(t)||l.i.isTag(t,"br"))))})(t.editor)?this.show():this.hide())}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}}(0,i.gn)([(0,h.debounce)((t=>t.defaultTimeout/10),!0)],d.prototype,"toggle",null),u.pw.add("placeholder",d)},60153(t,e,s){"use strict";s(79102).pw.add("poweredByJodit",(t=>{const{o:e}=t;e.hidePoweredByJodit||e.inline||!(e.showCharsCounter||e.showWordsCounter||e.showXPathInStatusbar)||t.hookStatus("ready",(()=>{t.statusbar.append(t.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)}))}))},4733(t,e,s){"use strict";var i=s(62924),r=s(90006),o=s(79102);s(37446).D.prototype.controls.preview={icon:"eye",command:"preview",mode:i.MODE_SOURCE+i.MODE_WYSIWYG,tooltip:"Preview"},o.pw.add("preview",(t=>{t.registerButton({name:"preview"}),t.registerCommand("preview",((e,s,i)=>{const o=t.dlg();o.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);const[,n]=(0,r.$)(t,i,"px",o.getElm("content"));o.e.on(o,"afterClose",n)}))}))},4487(t,e,s){"use strict";s.d(e,{a(){return r}});var i=s(24174);function r(t){const e=(t,e=t.ownerDocument.styleSheets)=>(0,i.q)(e).map((t=>{try{return(0,i.q)(t.cssRules)}catch{}return[]})).flat().filter((e=>{try{return!(!e||!t.matches(e.selectorText))}catch{}return!1}));class s{constructor(s,i,r){this.css={};const o=r||{},n=e=>{const s=e.selectorText.split(",").map((t=>t.trim())).sort().join(",");0==!!this.css[s]&&(this.css[s]={});const i=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;i.length>e;e++){if(!i[e])continue;const r=i[e].split(":");r[0]=r[0].trim(),r[1]=r[1].trim(),this.css[s][r[0]]=r[1].replace(/var\(([^)]+)\)/g,((e,s)=>{const[i,r]=s.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(i.trim())||r||e).trim()}))}};(()=>{const r=s.innerHeight,a=i.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,(()=>NodeFilter.FILTER_ACCEPT));for(;a.nextNode();){const t=a.currentNode;if(r>t.getBoundingClientRect().top||o.scanFullPage){const s=e(t);if(s)for(let t=0;s.length>t;t++)n(s[t])}}})()}generateCSS(){let t="";for(const e in this.css)if(!/:not\(/.test(e)){t+=e+" { ";for(const s in this.css[e])t+=s+": "+this.css[e][s]+"; ";t+="}\n"}return t}}try{return new s(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},64020(t,e,s){"use strict";var i=s(37446),r=s(79102),o=s(46879),n=s(94299),a=s(62924),l=s(30052),c=s(90006),h=s(4487),u=s(27526);l.J.set("print",s.n(u)()),i.D.prototype.controls.print={exec(t){const e=t.create.element("iframe");Object.assign(e.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,r.ZO)(t,i.D).appendChild(e);const s=()=>{t.e.off(t.ow,"mousemove",s),o.i.safeRemove(e)},a=e.contentWindow;if(a){t.e.on(a,"onbeforeunload onafterprint",s).on(t.ow,"mousemove",s),t.o.iframe?(t.e.fire("generateDocumentStructure.iframe",a.document,t),a.document.body.innerHTML=t.value):(a.document.write('<!doctype html><html lang="'+(0,n.X)(t.o.language)+'"><head><title></title></head><style>'+(0,h.a)(t)+"</style><body></body></html>"),a.document.close(),(0,c.$)(t,void 0,"px",a.document.body));const e=a.document.createElement("style");e.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",a.document.head.appendChild(e),a.focus(),a.print()}},mode:a.MODE_SOURCE+a.MODE_WYSIWYG,tooltip:"Print"},r.pw.add("print",(t=>{t.registerButton({name:"print"})}))},72735(t,e,s){"use strict";var i=s(37446),r=s(62924),o=s(97651),n=s(79102),a=s(30052),l=s(52390),c=s.n(l),h=s(28825),u=s.n(h);a.J.set("redo",c()).set("undo",u()),i.D.prototype.controls.redo={mode:r.MODE_SPLIT,isDisabled(t){return!t.history.canRedo()},tooltip:"Redo"},i.D.prototype.controls.undo={mode:r.MODE_SPLIT,isDisabled(t){return!t.history.canUndo()},tooltip:"Undo"},n.pw.add("redoUndo",class d extends o.S{constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}beforeDestruct(){}afterInit(t){const e=e=>(t.history[e](),!1);t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})}})},92835(t,e,s){"use strict";s(37446).D.prototype.tableAllowCellResize=!0},56866(t,e,s){"use strict";var i=s(97582),r=s(62924),o=s(27801),n=s(76974),a=s(13666),l=s(9162),c=s(79102);s(92835);const h="table_processor_observer-resize";class u extends o.Plugin{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",(()=>{this.j.async.clearTimeout(this.hideTimeout)})))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout((()=>{l.i.safeRemove(this.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(t){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=t.clientX,this.j.lock(h),this.resizeHandler.classList.add("jodit-table-resizer_moved");let e,s=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)s=this.workTable.parentNode.getBoundingClientRect(),this.minX=s.left,this.maxX=this.minX+s.width;else{const t=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,((s,i,o)=>{t[1]===o&&(e=s.getBoundingClientRect(),this.minX=Math.max(e.left+r.NEARBY/2,this.minX)),t[1]+(this.isRTL?-1:1)===o&&(e=s.getBoundingClientRect(),this.maxX=Math.min(e.left+e.width-r.NEARBY/2,this.maxX))}))}return!1}onMouseMove(t){if(!this.drag)return;this.j.e.fire("closeAllPopups");let e=t.clientX;const s=(0,n.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>e&&(e=this.minX),e>this.maxX&&(e=this.maxX),this.resizeDelta=e-this.startX+(this.j.o.iframe?s.left:0),this.resizeHandler.style.left=e-(this.j.o.iframe?0:s.left)+"px";const i=this.j.s.sel;i&&i.removeAllRanges()}onMouseUp(t){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==t.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const t=this.resizeDelta,e=[],s=this.module;s.setColumnWidthByDelta(this.workTable,s.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,e);const i=(0,n.call)(this.isRTL?l.i.prev:l.i.next,this.workCell,l.i.isCell,this.workCell.parentNode);s.setColumnWidthByDelta(this.workTable,s.formalCoordinate(this.workTable,i)[1],-t,!1,e)}resizeTable(){const t=this.resizeDelta*(this.isRTL?-1:1),e=this.workTable.offsetWidth,s=(0,n.getContentWidth)(this.workTable.parentNode,this.j.ew),i=!this.wholeTable;if(this.isRTL?!i:i)this.workTable.style.width=(e+t)/s*100+"%";else{const i=this.isRTL?"marginRight":"marginLeft",r=parseInt(this.j.ew.getComputedStyle(this.workTable)[i]||"0",10);this.workTable.style.width=(e-t)/s*100+"%",this.workTable.style[i]=(r+t)/s*100+"%"}}setWorkCell(t,e=null){this.wholeTable=e,this.workCell=t,this.workTable=l.i.up(t,(t=>l.i.isTag(t,"table")),this.j.editor)}calcHandlePosition(t,e,s=0,i=0){const o=(0,n.offset)(e,this.j,this.j.ed);if(s>r.NEARBY&&o.width-r.NEARBY>s)return void this.hideResizeHandle();const a=(0,n.offset)(this.j.workplace,this.j,this.j.od,!0),c=(0,n.offset)(t,this.j,this.j.ed);if(this.resizeHandler.style.left=(s>r.NEARBY?o.left+o.width:o.left)-a.left+i+"px",Object.assign(this.resizeHandler.style,{height:c.height+"px",top:c.top-a.top+"px"}),this.showResizeHandle(),s>r.NEARBY){const t=(0,n.call)(this.isRTL?l.i.prev:l.i.next,e,l.i.isCell,e.parentNode);this.setWorkCell(e,!!t&&null)}else{const t=(0,n.call)(this.isRTL?l.i.next:l.i.prev,e,l.i.isCell,e.parentNode);this.setWorkCell(t||e,!t||null)}}afterInit(t){t.o.tableAllowCellResize&&t.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(()=>{(0,n.$$)("table",t.editor).forEach(this.observe)})).on(this.j.ow,"scroll.resize-cells",(()=>{if(!this.drag)return;const e=l.i.up(this.workCell,(t=>l.i.isTag(t,"table")),t.editor);if(e){const t=e.getBoundingClientRect();this.resizeHandler.style.top=t.top+"px"}})).on("beforeSetMode.resize-cells",(()=>{const e=this.module;e.getAllSelectedCells().forEach((s=>{e.removeSelection(s),e.normalizeTable(l.i.closest(s,"table",t.editor))}))}))}observe(t){(0,n.dataBind)(t,h)||((0,n.dataBind)(t,h,!0),this.j.e.on(t,"mouseleave.resize-cells",(t=>{this.resizeHandler&&this.resizeHandler!==t.relatedTarget&&this.hideResizeHandle()})).on(t,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle((e=>{if(this.j.isLocked)return;const s=l.i.up(e.target,l.i.isCell,t);s&&this.calcHandlePosition(t,s,e.offsetX)}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(t){t.events&&(t.e.off(this.j.ow,".resize-cells"),t.e.off(".resize-cells"))}}(0,i.gn)([a.autobind],u.prototype,"onHandleMouseDown",null),(0,i.gn)([a.autobind],u.prototype,"onMouseMove",null),(0,i.gn)([a.autobind],u.prototype,"onMouseUp",null),(0,i.gn)([a.autobind],u.prototype,"observe",null),c.pw.add("resizeCells",u)},83925(t,e,s){"use strict";var i=s(37446);i.D.prototype.allowResizeX=!1,i.D.prototype.allowResizeY=!0},53794(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(46879),n=s(13666),a=s(14712),l=s(79102);s(83925);let c=class t extends r.S{constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div("jodit-editor__resize",a.JO.get("resize_handler"))}afterInit(t){const{height:e,width:s,allowResizeX:i}=t.o;let{allowResizeY:r}=t.o;"auto"===e&&"auto"!==s&&(r=!1),"auto"===e&&"auto"===s||!i&&!r||(t.statusbar.setMod("resize-handle",!0),t.e.on("toggleFullSize.resizeHandler",(()=>{this.handle.style.display=t.isFullSize?"none":"block"})).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(t.ow,"mouseup touchend",this.onHandleResizeEnd),t.container.appendChild(this.handle))}onHandleResizeStart(t){this.isResized=!0,this.start.x=t.clientX,this.start.y=t.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),t.preventDefault()}onHandleResize(t){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+t.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+t.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){o.i.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}};c.requires=["size"],c=(0,i.gn)([n.autobind],c),l.pw.add("resizeHandler",c)},13617(t,e,s){"use strict";var i=s(37446);i.D.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),i.D.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},68135(t,e,s){"use strict";var i=s(97582),r=s(62924),o=s(9162),n=s(76974),a=s(97651),l=s(79102),c=s(13666);s(13617);const h="__jodit-resizer_binded";class u extends a.S{constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResizeMode=!1,this.isShown=!1,this.startX=0,this.startY=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>`),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=t=>{this.isResizeMode||this.element===t&&this.isShown||(this.element=t,this.show(),o.i.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const t=this.getWorkplacePosition(),e=(0,n.offset)(this.element,this.j,this.j.ed),s=parseInt(this.rect.style.left||"0",10),i=e.top-t.top,r=e.left-t.left;parseInt(this.rect.style.top||"0",10)===i&&s===r&&this.rect.offsetWidth===this.element.offsetWidth&&this.rect.offsetHeight===this.element.offsetHeight||((0,n.css)(this.rect,{top:i,left:r,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(s)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}afterInit(t){(0,n.$$)("div",this.rect).forEach((e=>{t.e.on(e,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,e))})),l.TB.on("hideHelpers",this.hide),t.e.on("readonly",(t=>{t&&this.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(t=>{const e=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;e.test(t.value)&&(t.value=t.value.replace(e,"$1"))})),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(t){let e=t.target;const{editor:s,options:{allowResizeTags:i}}=this.j;for(;e&&e!==s;){if(o.i.isTag(e,i))return this.__bind(e),void this.onClickElement(e);e=e.parentNode}}addEventListeners(){const t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",(t=>{this.isShown&&t.key===r.KEY_DELETE&&this.element&&!o.i.isTag(this.element,"table")&&this.onDelete(t)})).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",(()=>{this.isShown&&!this.isResizeMode&&this.hide()})).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(t,e){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=e.clientX,this.startY=e.clientY,this.pointerX=e.clientX,this.pointerY=e.clientY;const{j:s}=this;s.e.fire("hidePopup"),s.lock(this.LOCK_KEY),s.e.on(s.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){const{j:t}=this;t.unlock(),this.isResizeMode=!1,this.isAltMode=!1,t.synchronizeValues(),t.e.off(t.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(t){if(this.isResizeMode){if(!this.element)return;let e,s;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){const i=this.getWorkplacePosition();e=t.clientX+i.left-this.startX,s=t.clientY+i.top-this.startY}else e=this.pointerX-this.startX,s=this.pointerY-this.startY;const i=this.handle.className;let r=0,a=0;const l=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===l||l&&o.i.isTag(this.element,l))?(e?(r=this.width+(i.match(/left/)?-1:1)*e,a=Math.round(r/this.ratio)):(a=this.height+(i.match(/top/)?-1:1)*s,r=Math.round(a*this.ratio)),r>(0,n.innerWidth)(this.j.editor,this.j.ow)&&(r=(0,n.innerWidth)(this.j.editor,this.j.ow),a=Math.round(r/this.ratio))):(r=this.width+(i.match(/left/)?-1:1)*e,a=this.height+(i.match(/top/)?-1:1)*s),r>this.j.o.resizer.min_width&&this.applySize(this.element,"width",this.rect.parentNode.offsetWidth>r?r:"100%"),a>this.j.o.resizer.min_height&&this.applySize(this.element,"height",a),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===r.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(t){if(this.isShown){if(!this.isResizeMode)return this.hide();t.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,n.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(t,e,s){const i=o.i.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;i&&(0,n.attr)(t,e,s),i&&!t.style[e]||(0,n.css)(t,e,s)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(o.i.safeRemove(this.element),this.hide(),t.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,n.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(t){if(!o.i.isHTMLElement(t)||!this.j.o.allowResizeTags.has(t.tagName.toLowerCase())||(0,n.dataBind)(t,h))return;let e;if((0,n.dataBind)(t,h,!0),o.i.isTag(t,"iframe")){const s=t;o.i.isHTMLElement(t.parentNode)&&(0,n.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(e=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,n.attr)(e,"style",(0,n.attr)(t,"style")),(0,n.css)(e,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t),this.j.e.on(e,"click",(()=>{(0,n.attr)(e,"data-jodit-wrapper_active",!0)})),t=e),this.j.e.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",(()=>{this.j.s.select(t)})).off(t,"changesize").on(t,"changesize",(()=>{s.setAttribute("width",t.offsetWidth+"px"),s.setAttribute("height",t.offsetHeight+"px")}))}this.j.e.on(t,"dragstart",this.hide),!r.IS_ES_NEXT&&r.IS_IE&&this.j.e.on(t,"mousedown",(e=>{o.i.isTag(t,"img")&&e.preventDefault()}))}showSizeViewer(t,e){this.j.o.resizer.showSize&&(this.sizeViewer.offsetWidth>t||this.sizeViewer.offsetHeight>e?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${e}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,n.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=""+(0,n.css)(this.j.container,"zIndex")),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,o.i.safeRemove(this.rect),(0,n.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach((t=>(0,n.attr)(t,"data-jodit-wrapper_active",!1))))}beforeDestruct(t){this.hide(),l.TB.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}}(0,i.gn)([(0,c.watch)(":click")],u.prototype,"onEditorClick",null),(0,i.gn)([c.autobind],u.prototype,"onStartResizing",null),(0,i.gn)([c.autobind],u.prototype,"onEndResizing",null),(0,i.gn)([c.autobind],u.prototype,"onResize",null),(0,i.gn)([c.autobind],u.prototype,"onKeyDown",null),(0,i.gn)([c.autobind],u.prototype,"onKeyUp",null),(0,i.gn)([c.autobind],u.prototype,"onClickOutside",null),(0,i.gn)([(0,c.watch)(":change")],u.prototype,"__onChangeEditor",null),(0,i.gn)([c.autobind],u.prototype,"__bind",null),(0,i.gn)([c.autobind,(0,c.watch)(":hideResizer")],u.prototype,"hide",null),l.pw.add("resizer",u)},40548(t,e,s){"use strict";var i=s(37446),r=s(30052),o=s(27681),n=s.n(o);i.D.prototype.useSearch=!0,i.D.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:void 0!==window.Highlight},r.J.set("search",n()),i.D.prototype.controls.find={tooltip:"Find",icon:"search",exec(t,e,{control:s}){switch(s.args&&s.args[0]){case"findPrevious":t.e.fire("searchPrevious");break;case"findNext":t.e.fire("searchNext");break;case"replace":t.execCommand("openReplaceDialog");break;default:t.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate(t,e,s){return s}}},73893(t,e,s){"use strict";s.d(e,{AG(){return n},Fb(){return c},TW(){return a},sG(){return l}});var i=s(9162),r=s(93789);const o="jd-tmp-selection";function n(t,e,s,r,n){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue)return;if(t.o.search.useCustomHighlightAPI&&void 0!==window.Highlight){const i=[e,...s].map((e=>{const s=t.selection.createRange();return s.setStart(e.startContainer,e.startOffset),s.setEnd(e.endContainer,e.endOffset),s})),r=new Highlight(...i);return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",r),void(s.length=0)}const a=r.element("span",{[o]:!0});i.i.markTemporary(a);const l=e.startContainer.nodeValue;let c=0;if(0!==e.startOffset){const t=r.text(l.substring(0,e.startOffset));e.startContainer.nodeValue=l.substring(e.startOffset),i.i.before(e.startContainer,t),e.startContainer===e.endContainer&&(c=e.startOffset,e.endOffset-=c),e.startOffset=0}const h=e.endContainer.nodeValue;if(e.endOffset!==h.length){const t=r.text(h.substring(e.endOffset));e.endContainer.nodeValue=h.substring(0,e.endOffset),i.i.after(e.endContainer,t);for(const i of s){if(i.startContainer!==e.endContainer)break;i.startContainer=t,i.startOffset=i.startOffset-e.endOffset-c,i.endContainer===e.endContainer&&(i.endContainer=t,i.endOffset=i.endOffset-e.endOffset-c)}e.endOffset=e.endContainer.nodeValue.length}let u=e.startContainer;do{if(!u)break;if(!i.i.isText(u)||i.i.isElement(d=u.parentNode)&&d.hasAttribute(o)||i.i.wrap(u,a.cloneNode(),r),u===e.endContainer)break;let t=u.firstChild||u.nextSibling;if(!t){for(;u&&!u.nextSibling&&u!==n;)u=u.parentNode;t=u?.nextSibling}u=t}while(u&&u!==n);var d}function a(t){return(0,r.$$)(`[${o}]`,t)}function l(t){a(t).forEach((t=>i.i.unwrap(t)))}function c(t){return t.replace(RegExp(`<span[^>]+${o}[^>]+>(.*?)</span>`,"g"),"$1")}},8521(t,e,s){"use strict";s.d(e,{AG(){return r.AG},Al(){return i.A},Fb(){return r.Fb},TW(){return r.TW},sG(){return r.sG}});var i=s(135),r=s(73893)},135(t,e,s){"use strict";s.d(e,{A(){return r}});var i=s(29133);class r{constructor(t=i.Q){this.searchIndex=t,this.queue=[],this.value=""}add(t){const e=(t.nodeValue??"").toLowerCase();if(!e.length)return;const s=this.value.length;this.queue.push({startIndex:s,endIndex:s+e.length,node:t}),this.value+=e}ranges(t,e=0){const s=[];let i=e,r=0,o=0;do{if([i,r]=this.searchIndex(t,this.value,i),-1!==i){let t,e,n=0,a=0;for(let s=o;this.queue.length>s;s+=1)if(!t&&this.queue[s].endIndex>i&&(t=this.queue[s].node,n=i-this.queue[s].startIndex),t&&this.queue[s].endIndex>=i+r){e=this.queue[s].node,a=i+r-this.queue[s].startIndex,o=s;break}t&&e&&s.push({startContainer:t,startOffset:n,endContainer:e,endOffset:a}),i+=r}}while(-1!==i);return 0===s.length?null:s}}},78014(t,e,s){"use strict";var i=s(97582),r=s(46879),o=s(7331),n=s(13666),a=s(37661),l=s(76974),c=s(79102),h=s(8521);s(40548),s(62924);class u extends o.S{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.previousQuery="",this.drawPromise=null,this.walker=null,this.walkerCount=null,this.cache={},this.wrapFrameRequest=0}get ui(){return new a.y(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(t){let e=r.i.closest(t,r.i.isElement,this.j.editor);e||(e=r.i.prev(t,r.i.isElement,this.j.editor)),e&&e!==this.j.editor&&(0,l.scrollIntoViewIfNeeded)(e,this.j.editor,this.j.ed)}async calcCounts(t){return(await this.findQueryBounds(t,"walkerCount")).length}async findQueryBounds(t,e){let s=this[e];return s&&s.break(),s=new r.b(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[e]=s,this.find(s,t).catch((t=>[]))}async findAndReplace(t){const e=await this.findQueryBounds(t,"walker");if(!e.length)return!1;let s=this.findCurrentIndexInRanges(e,this.j.s.range);-1===s&&(s=0);const i=e[s];if(i){try{const e=this.j.ed.createRange();e.setStart(i.startContainer,i.startOffset),e.setEnd(i.endContainer,i.endOffset),e.deleteContents();const o=this.j.createInside.text(this.ui.replace);r.i.safeInsertNode(e,o),(0,h.sG)(this.j.editor),this.j.s.setCursorAfter(o),this.tryScrollToElement(o),this.cache={},this.ui.currentIndex=s,await this.findAndSelect(t,!0).catch((t=>null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(t,e){const s=await this.findQueryBounds(t,"walker");if(!s.length)return!1;this.previousQuery===t&&(0,h.TW)(this.j.editor).length||(this.drawPromise?.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),(0,h.sG)(this.j.editor),this.drawPromise=this.__drawSelectionRanges(s)),this.previousQuery=t;let i=this.ui.currentIndex-1;i=-1===i?0:e?i===s.length-1?0:i+1:0===i?s.length-1:i-1,this.ui.currentIndex=i+1;const r=s[i];if(r){const t=this.j.ed.createRange();try{t.setStart(r.startContainer,r.startOffset),t.setEnd(r.endContainer,r.endOffset),this.j.s.selectRange(t)}catch(t){}return this.tryScrollToElement(r.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(t,e){return t.findIndex((t=>t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.startContainer&&t.endOffset===e.endOffset))}async isValidCache(t){return(await t).every((t=>t.startContainer.isConnected&&(t.startContainer.nodeValue?.length??0)>=t.startOffset&&t.endContainer.isConnected&&(t.endContainer.nodeValue?.length??0)>=t.endOffset))}async find(t,e){if(!e.length)return[];const s=this.cache[e];return s&&await this.isValidCache(s)?s:(this.cache[e]=this.j.async.promise((s=>{const i=new h.Al(this.j.o.search.fuzzySearch);t.on("break",(()=>{s([])})).on("visit",(t=>(r.i.isText(t)&&i.add(t),!1))).on("end",(()=>{s(i.ranges(e)??[])})).setWork(this.j.editor)})),this.cache[e])}__drawSelectionRanges(t){const{async:e,createInside:s,editor:i}=this.j;e.cancelAnimationFrame(this.wrapFrameRequest);const r=[...t];let o,n=0;return e.promise((t=>{const a=()=>{do{o=r.shift(),o&&(0,h.AG)(this.j,o,r,s,i),n+=1}while(o&&5>=n);r.length?this.wrapFrameRequest=e.requestAnimationFrame(a):t()};a()}))}onAfterGetValueFromEditor(t){t.value=(0,h.Fb)(t.value)}afterInit(t){if(t.o.useSearch){const e=this;t.e.on("beforeSetMode.search",(()=>{this.ui.close()})).on(this.ui,"afterClose",(()=>{(0,h.sG)(t.editor),this.ui.currentIndex=0,this.ui.count=0,this.cache={}})).on("click",(()=>{this.ui.currentIndex=0,(0,h.sG)(t.editor)})).on("change.search",(()=>{this.cache={}})).on("keydown.search mousedown.search",t.async.debounce((()=>{this.ui.selInfo&&(t.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()}),t.defaultTimeout)).on("searchNext.search searchPrevious.search",(()=>(this.ui.isOpened||this.ui.open(),e.findAndSelect(e.ui.query,"searchNext"===t.e.current).catch((t=>{}))))).on("search.search",((t,s=!0)=>(this.ui.currentIndex=0,e.findAndSelect(t||"",s).catch((t=>{}))))),t.registerCommand("search",{exec(t,s,i=!0){return s&&e.findAndSelect(s,i).catch((t=>{})),!1}}).registerCommand("openSearchDialog",{exec(t,s){return e.ui.open(s),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec(s,i,r){return t.o.readonly||e.ui.open(i,r,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(t){this.ui.destruct(),t.e.off(".search")}}(0,i.gn)([n.cache],u.prototype,"ui",null),(0,i.gn)([(0,n.watch)("ui:needUpdateCounters")],u.prototype,"updateCounters",null),(0,i.gn)([(0,n.watch)("ui:pressReplaceButton")],u.prototype,"onPressReplaceButton",null),(0,i.gn)([n.autobind],u.prototype,"findQueryBounds",null),(0,i.gn)([n.autobind],u.prototype,"findAndReplace",null),(0,i.gn)([n.autobind],u.prototype,"findAndSelect",null),(0,i.gn)([n.autobind],u.prototype,"find",null),(0,i.gn)([(0,n.watch)(":afterGetValueFromEditor")],u.prototype,"onAfterGetValueFromEditor",null),c.pw.add("search",u)},37661(t,e,s){"use strict";s.d(e,{y(){return c}});var i=s(97582),r=s(14712),o=s(76974),n=s(62924),a=s(13666),l=s(46879);let c=class t extends r.u1{className(){return"UISearch"}render(){return`<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${r.JO.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${r.JO.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${r.JO.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=""+t}set count(t){this.countBox.innerText=""+t}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}constructor(t){super(t),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:e,replace:s,cancel:i,next:r,prev:a,replaceBtn:l,current:c,count:h}=(0,o.refs)(this.container);this.queryInput=e,this.replaceInput=s,this.closeButton=i,this.replaceButton=l,this.currentBox=c,this.countBox=h,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(r,"pointerdown",(()=>(t.e.fire("searchNext"),!1))).on(a,"pointerdown",(()=>(t.e.fire("searchPrevious"),!1))).on(this.queryInput,"input",(()=>{this.setMod("empty-query",!(0,o.trim)(this.queryInput.value).length)})).on(this.queryInput,"keydown",this.j.async.debounce((e=>{e.key===n.KEY_ENTER?(e.preventDefault(),e.stopImmediatePropagation(),t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")}),this.j.defaultTimeout))}onEditorKeyDown(t){if(!this.isOpened)return;const{j:e}=this;if(e.getRealMode()===n.MODE_WYSIWYG)switch(t.key){case n.KEY_ESC:this.close();break;case n.KEY_F3:this.queryInput.value&&(e.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,e,s=!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",s);const i=t??""+(this.j.s.sel||"");i&&(this.queryInput.value=i),e&&(this.replaceInput.value=e),this.setMod("empty-query",!i.length),this.j.e.fire(this,"needUpdateCounters"),i?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),l.i.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){const t=(0,o.position)(this.j.toolbarContainer);(0,o.css)(this.container,{top:t.top+t.height,left:t.left+t.width})}else(0,o.css)(this.container,{top:null,left:null})}};(0,i.gn)([(0,a.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),(0,i.gn)([a.autobind],c.prototype,"open",null),(0,i.gn)([a.autobind],c.prototype,"close",null),(0,i.gn)([(0,a.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=(0,i.gn)([a.component],c)},87876(t,e,s){"use strict";s(37446).D.prototype.tableAllowCellSelection=!0},31541(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(45979),n=s(9162),a=s(76974),l=s(62924),c=s(13666),h=s(79102);s(87876);const u="table_processor_observer",d="onMoveTableSelectCell";class p extends r.S{constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}get __tableModule(){return this.j.getInstance(o.i,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",(t=>{t.key===l.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",(()=>{const t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&this.j.s.sel?.removeAllRanges(),!1}))}onStartSelection(t){if(this.j.o.readonly)return;if(this.unselectCells(),t===this.j.editor)return;const e=n.i.closest(t,"table",this.j.editor);return t&&e?(t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(e,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,e),{label:d,timeout:this.j.defaultTimeout/2})).on(e,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,e)),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,e){if(this.j.o.readonly&&!this.j.isLocked)return;if(this.j.isLockedNotBy(u))return;const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const i=n.i.closest(s,["td","th"],t);if(!i||!this.__selectedCell)return;i!==this.__selectedCell&&this.j.lock(u),this.unselectCells();const r=this.__tableModule.getSelectedBound(t,[i,this.__selectedCell]),o=this.__tableModule.formalMatrix(t);for(let t=r[0][0];r[1][0]>=t;t+=1)for(let e=r[0][1];r[1][1]>=e;e+=1)this.__tableModule.addSelection(o[t][e]);this.__tableModule.getAllSelectedCells().length>1&&this.j.s.sel?.removeAllRanges(),this.j.e.fire("hidePopup"),e.stopPropagation(),(()=>{const t=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');i.appendChild(t),this.j.async.setTimeout((()=>{t.parentNode?.removeChild(t)}),this.j.defaultTimeout/5)})()}__onRemoveSelection(t){if(!t?.buffer?.actionTrigger&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(t,e){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const i=n.i.closest(s,["td","th"],t);if(!i)return;const r=n.i.closest(i,"table",t);if(r&&r!==t)return;const o=this.__tableModule.getSelectedBound(t,[i,this.__selectedCell]),l=this.__tableModule.formalMatrix(t),c=l[o[1][0]][o[1][1]],h=l[o[0][0]][o[0][1]];this.j.e.fire("showPopup",t,(()=>{const t=(0,a.position)(h,this.j),e=(0,a.position)(c,this.j);return{left:t.left,top:t.top,width:e.left-t.left+e.width,height:e.top-t.top+e.height}}),"cells"),(0,a.$$)("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(d)}unselectCells(t){const e=this.__tableModule,s=e.getAllSelectedCells();s.length&&s.forEach((s=>{t&&t===s||e.removeSelection(s)}))}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");const e=this.__tableModule.getAllSelectedCells();if(e.length){const[s]=e;if(!s)return;const i=n.i.closest(s,"table",this.j.editor);if(!i)return;switch(t){case"splitv":this.__tableModule.splitVertical(i);break;case"splitg":this.__tableModule.splitHorizontal(i);break;case"merge":this.__tableModule.mergeSelected(i);break;case"empty":e.forEach((t=>n.i.detach(t)));break;case"bin":n.i.safeRemove(i);break;case"binrow":new Set(e.map((t=>t.parentNode))).forEach((t=>{this.__tableModule.removeRow(i,t.rowIndex)}));break;case"bincolumn":{const t=new Set;e.reduce(((e,s)=>(t.has(s.cellIndex)||(e.push(s),t.add(s.cellIndex)),e)),[]).forEach((t=>{this.__tableModule.removeColumn(i,t.cellIndex)}))}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(i,s.cellIndex,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(i,s.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach((e=>(0,a.alignElement)(t,e)))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}}p.requires=["select"],(0,i.gn)([c.autobind],p.prototype,"onStartSelection",null),(0,i.gn)([(0,c.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,i.gn)([(0,c.watch)(":change")],p.prototype,"onChange",null),(0,i.gn)([c.autobind],p.prototype,"__onRemoveSelection",null),(0,i.gn)([c.autobind],p.prototype,"__onStopSelection",null),(0,i.gn)([c.autobind],p.prototype,"onExecCommand",null),(0,i.gn)([c.autobind],p.prototype,"onAfterCommand",null),h.pw.add("selectCells",p)},55214(t,e,s){"use strict";s(37446).D.prototype.select={normalizeSelectionBeforeCutAndCopy:!1}},94895(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(13666),n=s(33683),a=s(9162),l=s(14712),c=s(79102);s(55214);class h extends r.S{constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}afterInit(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}beforeDestruct(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}onStartSelection(t){const{j:e}=this;let s,i=t.target;for(;void 0===s&&i&&i!==e.editor;)s=e.e.fire((0,n.e)(t.type+"_"+i.nodeName.toLowerCase()),i,t),i=i.parentElement;"click"===t.type&&void 0===s&&i===e.editor&&e.e.fire(t.type+"Editor",i,t)}onOutsideClick(t){const e=t.target;a.i.up(e,(t=>t===this.j.editor))||l.u1.closestElement(e,l.GI)||this.j.e.fire("outsideClick",t)}beforeCommandCut(t){const{s:e}=this.j;if(!e.isCollapsed()){const t=e.current();t&&a.i.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectall(t){const{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onCopyNormalizeSelectionBound(t){const{s:e,editor:s,o:i}=this.j;i.select.normalizeSelectionBeforeCutAndCopy&&!e.isCollapsed()&&(!t||t.isTrusted&&a.i.isNode(t.target)&&a.i.isOrContains(s,t.target))&&this.jodit.s.expandSelection()}}(0,i.gn)([o.autobind],h.prototype,"onStartSelection",null),(0,i.gn)([(0,o.watch)("ow:click")],h.prototype,"onOutsideClick",null),(0,i.gn)([(0,o.watch)([":beforeCommandCut"])],h.prototype,"beforeCommandCut",null),(0,i.gn)([(0,o.watch)([":beforeCommandSelectall"])],h.prototype,"beforeCommandSelectall",null),(0,i.gn)([(0,o.watch)([":copy",":cut"])],h.prototype,"onCopyNormalizeSelectionBound",null),c.pw.add("select",h)},25453(t,e,s){"use strict";var i=s(37446);i.D.prototype.minWidth=200,i.D.prototype.maxWidth="100%",i.D.prototype.minHeight=200,i.D.prototype.maxHeight="auto",i.D.prototype.saveHeightInStorage=!1},92831(t,e,s){"use strict";var i=s(97582),r=s(32952),o=s(71737),n=s(97651),a=s(13666),l=s(79102);s(25453);let c=class t extends n.S{constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}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.__initialize()}__initialize(){const{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){const s=t.storage.get("height");s&&(e=s)}(0,o.i)(t.editor,{minHeight:"100%"}),(0,o.i)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(e),this.__setWidth(t.o.width))}__setHeight(t){if((0,r.h)(t)){const{minHeight:e,maxHeight:s}=this.j.o;(0,r.h)(e)&&e>t&&(t=e),(0,r.h)(s)&&t>s&&(t=s)}(0,o.i)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd()}__setWidth(t){if((0,r.h)(t)){const{minWidth:e,maxWidth:s}=this.j.o;(0,r.h)(e)&&e>t&&(t=e),(0,r.h)(s)&&t>s&&(t=s)}(0,o.i)(this.j.container,"width",t),this.__resizeWorkspaceImd()}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd(){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline)return;if(!this.j.container||!this.j.container.parentNode)return;const t=((0,o.i)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,r.h)(t)&&t>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,o.i)(e,"minHeight",t)})),this.j.e.fire("setMinHeight",t)),(0,r.h)(this.j.o.maxHeight)){const t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,o.i)(e,"maxHeight",t)})),this.j.e.fire("setMaxHeight",t)}this.j.container&&(0,o.i)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}};(0,i.gn)([(0,a.throttle)()],c.prototype,"__initialize",null),(0,i.gn)([a.autobind],c.prototype,"__resizeWorkspaceImd",null),c=(0,i.gn)([a.autobind],c),l.pw.add("size",c)},80763(t,e,s){"use strict";var i=s(37446),r=s(62924),o=s(30052),n=s(61097),a=s.n(n);i.D.prototype.beautifyHTML=!r.IS_IE,i.D.prototype.sourceEditor="ace",i.D.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},i.D.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],i.D.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],o.J.set("source",a()),i.D.prototype.controls.source={mode:r.MODE_SPLIT,exec(t){t.toggleMode()},isActive(t){return t.getRealMode()===r.MODE_SOURCE},tooltip:"Change mode"}},81176(t,e,s){"use strict";s.d(e,{F(){return n}});var i=s(62924),r=s(76974),o=s(12025);class n extends o.b{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)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){const t=this.instance.session.getLength(),e=[];let s=0;for(let i=0;t>i;i++)s+=this.getLastColumnIndex(i),i>0&&(s+=1),e[i]=s;return e}getRowColumnIndices(t){const e=this.getLastColumnIndices();if(e[0]>=t)return{row:0,column:t};let s=1;for(let i=1;e.length>i;i++)t>e[i]&&(s=i+1);return{row:s,column:t-e[s-1]-1}}setSelectionRangeIndices(t,e){const s=this.getRowColumnIndices(t),i=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:s,end:i})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){const e=()=>{if(void 0!==this.instance||!this.aceExists())return;const e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e),this.instance=t.ow.ace.edit(e),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()!==i.MODE_WYSIWYG&&this.setValue(this.getValue());const s=this.j.async.debounce((()=>{t.isInDestruct||(this.instance.setOption("maxLines","auto"!==t.o.height?t.workplace.offsetHeight/this.instance.renderer.lineHeight:1/0),this.instance.resize())}),2*this.j.defaultTimeout);t.e.on("afterResize afterSetMode",s),s(),this.onReady()};t.e.on("afterSetMode",(()=>{t.getRealMode()!==i.MODE_SOURCE&&t.getMode()!==i.MODE_SPLIT||(this.fromWYSIWYG(),e())})),e(),this.aceExists()||(0,r.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then((()=>{t.isInDestruct||e()})).catch((()=>null))}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const e=this.j.e.fire("beautifyHTML",t);(0,r.isString)(e)&&(t=e)}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.focus()}blur(){this.instance.blur()}getSelectionStart(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){const e=this.instance.selection.getCursor(),s=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:s},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){const{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()}})}}},40481(t,e,s){"use strict";s.d(e,{Y(){return n}});var i=s(71737),r=s(9162),o=s(12025);class n extends o.b{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)}init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror"}),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,i.i)(this.instance,"minHeight",t)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(e=>{t.e.fire(e.type,e)})),this.autosize(),this.onReady()}destruct(){r.i.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){const e=this.getValue();if(0>this.getSelectionStart())this.setValue(e+t);else{const s=this.getSelectionStart(),i=this.getSelectionEnd();this.setValue(e.substring(0,s)+t+e.substring(i,e.length))}}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){const{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",(e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1}))}}},91887(t,e,s){"use strict";s.d(e,{F(){return r.F},Y(){return i.Y}});var i=s(40481),r=s(81176)},30786(t,e,s){"use strict";s.d(e,{l(){return o}});var i=s(76974),r=s(91887);function o(t,e,s,o,n){let a;if((0,i.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new r.F(e,s,o,n);break}default:a=new r.Y(e,s,o,n)}return a.init(e),a.onReadyAlways((()=>{a.setReadOnly(e.o.readonly)})),a}},12025(t,e,s){"use strict";s.d(e,{b(){return i}});class i{constructor(t,e,s,i){this.jodit=t,this.container=e,this.toWYSIWYG=s,this.fromWYSIWYG=i,this.className="",this.isReady=!1}get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}}},1759(t,e,s){"use strict";var i=s(97582),r=s(62924),o=s(7331),n=s(9162),a=s(76974),l=s(13666),c=s(79102),h=s(30786);s(80763);class u extends o.S{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=()=>this.sourceEditor?.getSelectionStart()??0,this.getSelectionEnd=()=>this.sourceEditor?.getSelectionEnd()??0}onInsertHTML(t){if(!this.j.o.readonly&&!this.j.isEditorMode())return this.sourceEditor?.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;const t=this.j.getEditorValue(!1,r.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;const t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,e){for(e=e.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,(t=>{let e="";for(let s=0;t.length>s;s+=1)e+=r.INVISIBLE_SPACE;return e}));t>0&&e[t]===r.INVISIBLE_SPACE;)t--;let s=t;for(;s>0;){if(s--,"<"===e[s]&&void 0!==e[s+1]&&e[s+1].match(/[\w/]+/i))return s;if(">"===e[s])return t}return t}clnInv(t){return t.replace(r.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){if("selectall"===t.toLowerCase()&&this.j.getRealMode()===r.MODE_SOURCE)return this.sourceEditor?.selectAll(),!1}getMirrorValue(){return this.sourceEditor?.getValue()||""}setMirrorValue(t){this.sourceEditor?.setValue(t)}setFocusToMirror(){this.sourceEditor?.focus()}saveSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;const t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const e=this.j.s.marker(!0),s=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,s)+this.clnInv(e.outerHTML)+t.substring(s))}else{const e=this.j.s.marker(!0),s=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),t),r=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,i)+this.clnInv(e.outerHTML)+t.slice(i,r)+this.clnInv(s.outerHTML)+t.slice(r))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===r.MODE_WYSIWYG)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);let t=this.getMirrorValue(),e=0,s=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){const e=this.j.e.fire("beautifyHTML",t);(0,a.isString)(e)&&(t=e)}if(e=t.indexOf(this.tempMarkerStart),s=e,t=t.replace(this.tempMarkerStartReg,""),-1!==e){const e=t.indexOf(this.tempMarkerEnd);-1!==e&&(s=e)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(e,s),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,e){this.sourceEditor?.setSelectionRange(t,e)}onReadonlyReact(){this.sourceEditor?.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,h.l)("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",(t=>{t.key===r.KEY_ESC&&this.sourceEditor?.isFocused&&this.sourceEditor.blur()})),this.onReadonlyReact(),t.e.on("placeholder.source",(t=>{this.sourceEditor?.setPlaceHolder(t)})).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",(t=>t)),t.o.beautifyHTML){const e=()=>{if(t.isInDestruct)return!1;const e=t.ow.html_beautify;return!(!e||t.isInDestruct||(t.events?.off("beautifyHTML").on("beautifyHTML",(t=>e(t))),0))};e()||(0,a.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(e,(()=>null))}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){const e=this.j;e.getMode()!==r.MODE_SPLIT&&e.getMode()!==r.MODE_SOURCE||this.fromWYSIWYG(t)}initSourceEditor(t){if("area"!==t.o.sourceEditor){const e=(0,h.l)(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);e.onReadyAlways((()=>{this.sourceEditor?.destruct(),this.sourceEditor=e,this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}else this.sourceEditor?.onReadyAlways((()=>{this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),n.i.safeRemove(this.mirrorContainer)}}(0,i.gn)([(0,l.watch)(":insertHTML.source")],u.prototype,"onInsertHTML",null),(0,i.gn)([l.autobind],u.prototype,"fromWYSIWYG",null),(0,i.gn)([l.autobind],u.prototype,"toWYSIWYG",null),(0,i.gn)([l.autobind],u.prototype,"getNormalPosition",null),(0,i.gn)([(0,l.watch)(":beforeCommand.source")],u.prototype,"onSelectAll",null),(0,i.gn)([(0,l.watch)(":beforeSetMode.source")],u.prototype,"saveSelection",null),(0,i.gn)([(0,l.watch)(":afterSetMode.source")],u.prototype,"removeSelection",null),(0,i.gn)([l.autobind],u.prototype,"setMirrorSelectionRange",null),(0,i.gn)([(0,l.watch)(":readonly.source")],u.prototype,"onReadonlyReact",null),(0,i.gn)([l.autobind],u.prototype,"syncValueFromWYSIWYG",null),c.pw.add("source",u)},92880(t,e,s){"use strict";var i=s(37446),r=s(25920),o=s(88751),n=s(30052),a=s(30043),l=s(17439),c=s(55106),h=s.n(c);i.D.prototype.speechRecognize={api:l.M,sound:!0,continuous:!0,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"}},n.J.set("speech-recognize",h()),i.D.prototype.controls.speechRecognize={isActive(t,e){const s=(0,r.q)(t,"speech");return!!s?.isEnabled},isDisabled:t=>!t.o.speechRecognize.api,exec(t,e,{button:s,control:i}){const{api:n,lang:l,continuous:c,interimResults:h,sound:u}=t.o.speechRecognize;if(!n)return void t.alert("Speech recognize API unsupported in your browser");let d=(0,r.q)(t,"speech");if(!d){const e=new n;d=new a.v(t.async,e),d.lang=l,d.continuous=c,d.interimResults=h,d.sound=u,(0,r.q)(t,"speech",d),d.on("pulse",(t=>{s.setMod("pulse",t)})),d.on("result",(e=>t.e.fire("speechRecognizeResult",e))),d.on("progress",(e=>t.e.fire("speechRecognizeProgressResult",e))),s.hookStatus("beforeDestruct",(()=>{d.destruct()}))}if(i.args){const t=i.args[0];if((0,o.j)(d[t]))return d[t]=!d[t],void(d.isEnabled&&d.restart())}d.toggle(),s.state.activated=d.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(t,e,s){const i=(0,r.q)(t,"speech");return`<span class='jodit-speech-recognize__list-item'><input ${i?.[e]??t.o.speechRecognize[e]?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${s}</span>`},mods:{stroke:!1}}},16618(t,e,s){"use strict";s.d(e,{n(){return i},u(){return r}});const i=440,r=940},17439(t,e,s){"use strict";s.d(e,{M(){return i}});const i=window.SpeechRecognition||window.webkitSpeechRecognition},87885(t,e,s){"use strict";function i(t,e){const[s,i]=e.split("::");t.execCommand(s,null,i)}s.d(e,{c(){return i}})},30043(t,e,s){"use strict";s.d(e,{v(){return c}});var i,r=s(97582),o=s(3569),n=s(13666),a=s(16618),l=s(55486);let c=i=class t extends o.a{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}constructor(t,e){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.u)}),5e3),this.emit("pulse",!0))},this._progressTimeout=0,this._api=e,i._instances.add(this)}destruct(){this.stop(),i._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){this._isEnabled||(this._isEnabled=!0,i._instances.forEach((t=>{t!==this&&t.stop()})),this._api.start(),this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onResult))}stop(){if(this._isEnabled){try{this._api.abort(),this._api.stop()}catch{}this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onResult),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,e){return this._api.addEventListener(t,e),this}__off(t,e){return this._api.removeEventListener(t,e),this}_onResult(t){if(!this._isEnabled)return;this.async.clearTimeout(this._progressTimeout);const e=t.results.item(t.resultIndex),{transcript:s}=e.item(0),i=()=>{try{this.async.clearTimeout(this._restartTimeout),this.emit("result",s)}catch{}this.restart(),this.emit("pulse",!1),this._makeSound(a.n)};if(!1===e.isFinal)return this.emit("progress",s),void(this._progressTimeout=this.async.setTimeout(i,500));i()}_onError(){this._isEnabled&&(this._makeSound(a.u),this.emit("pulse",!1),this.restart())}_makeSound(t){this.sound&&(0,l.e)({frequency:t})}};c._instances=new Set,c=i=(0,r.gn)([n.autobind],c)},55486(t,e,s){"use strict";s.d(e,{e(){return r}});var i=s(16618);function r({sec:t=.1,frequency:e=i.n,gain:s=.1,type:r="sine"}={}){if(void 0===window.AudioContext&&void 0===window.webkitAudioContext)return;const o=new(window.AudioContext||window.webkitAudioContext),n=o.createGain(),a=o.createOscillator();a.type=r,a.frequency.value=e,a.connect(n),n.connect(o.destination),a.start(),a.stop(o.currentTime+t),n.gain.value=s}},75813(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(45143)},71327(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(69082),n=s(87398),a=s(79102),l=s(9162),c=s(62294),h=s(44380),u=s(87885),d=s(75813);s(92880);class p extends r.S{constructor(t){super(t),this._commandToWord={},t.o.speechRecognize.api&&t.registerButton({group:"state",name:"speechRecognize"})}afterInit(t){const{commands:e}=t.o.speechRecognize;e&&((0,a.xl)(d),(0,n.XP)(e,!1).forEach((s=>{s.split("|").forEach((i=>{i=i.trim().toLowerCase(),this._commandToWord[i]=e[s];const r=t.i18n(i);r!==i&&r.split("|").forEach((t=>{this._commandToWord[t.trim().toLowerCase()]=e[s].trim()}))}))})))}beforeDestruct(t){}onSpeechRecognizeProgressResult(t){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.setTimeout((()=>{l.i.safeRemove(this.messagePopup)}),{label:"onSpeechRecognizeProgressResult",timeout:1e3}),this.messagePopup.innerText=t+"|"}onSpeechRecognizeResult(t){const{j:e}=this,{s}=e;if(l.i.safeRemove(this.messagePopup),!this._checkCommand(t)){const{range:i}=s,r=s.current();if(s.isCollapsed()&&l.i.isText(r)&&l.i.isOrContains(e.editor,r)&&r.nodeValue){const o=r.nodeValue;r.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+t,i.setStartAfter(r),s.selectRange(i),e.synchronizeValues()}else s.insertHTML(t)}}_checkCommand(t){return t=t.toLowerCase().replace(/\./g,""),!!this._commandToWord[t]&&((0,u.c)(this.j,this._commandToWord[t]),!0)}}(0,i.gn)([(0,o.YP)(":speechRecognizeProgressResult"),(0,c.D)()],p.prototype,"onSpeechRecognizeProgressResult",null),(0,i.gn)([(0,o.YP)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),h.h.plugins.add("speech-recognize",p)},94733(t,e,s){"use strict";var i=s(37446),r=s(30052),o=s(31398),n=s.n(o);i.D.prototype.spellcheck=!1,r.J.set("spellcheck",n()),i.D.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:n(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},88528(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(45143)},51370(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(23144),n=s(13666),a=s(79102),l=s(88528);s(94733);class c extends r.S{constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,a.xl)(l)}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,o.L)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}}(0,i.gn)([n.autobind],c.prototype,"toggleSpellcheck",null),a.pw.add("spellcheck",c)},80441(t,e,s){"use strict";var i=s(37446);i.D.prototype.showCharsCounter=!0,i.D.prototype.countHTMLChars=!1,i.D.prototype.showWordsCounter=!0},71583(t,e,s){"use strict";var i=s(62924),r=s(97651),o=s(9162),n=s(79102);s(80441),n.pw.add("stat",class a extends r.S{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((()=>{const t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){const e=this.j.o.countHTMLChars?this.j.value:t.replace((0,i.SPACE_REG_EXP)(),"");this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),"").split((0,i.SPACE_REG_EXP)()).filter((t=>t.length)).length))}),this.j.defaultTimeout)}afterInit(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}beforeDestruct(){o.i.safeRemove(this.charCounter),o.i.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}})},51210(t,e,s){"use strict";var i=s(37446);i.D.prototype.toolbarSticky=!0,i.D.prototype.toolbarDisableStickyForMobile=!0,i.D.prototype.toolbarStickyOffset=0},75210(t,e,s){"use strict";var i=s(97582),r=s(62924),o=s(97651),n=s(9162),a=s(76974),l=s(13666),c=s(79102);s(51210);const h=!r.IS_ES_NEXT&&r.IS_IE;class u extends o.S{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||(h&&!this.__dummyBox&&this.__createDummy(t),this.j.container.classList.add("jodit_sticky"),this.__isToolbarStuck=!0),(0,a.css)(t,{top:this.j.o.toolbarStickyOffset||null,width:this.j.container.offsetWidth-2}),this.__dummyBox&&(0,a.css)(this.__dummyBox,{height:t.offsetHeight})},this.removeSticky=t=>{this.__isToolbarStuck&&((0,a.css)(t,{width:"",top:""}),this.j.container.classList.remove("jodit_sticky"),this.__isToolbarStuck=!1)}}afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",(()=>this.__isToolbarStuck))}__onScroll(){const{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;const e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,s=(0,a.offset)(t.container,t,t.od,!0),i=t.getMode()===r.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>s.top&&s.top+s.height>e+t.o.toolbarStickyOffset&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===i)return;const o=t.toolbarContainer;o&&(i?this.addSticky(o):this.removeSticky(o)),t.e.fire("toggleSticky",i)}__isMobile(){const{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){n.i.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}(0,i.gn)([(0,l.throttle)()],u.prototype,"__onScroll",null),c.pw.add("sticky",u)},22583(t,e,s){"use strict";var i=s(37446),r=s(30052),o=s(1296),n=s.n(o);i.D.prototype.usePopupForSpecialCharacters=!1,i.D.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;"],r.J.set("symbols",n()),i.D.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,s){const i=t.e.fire("generateSpecialCharactersTable.symbols");if(i){if(t.o.usePopupForSpecialCharacters){const e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(i),t.e.on(i,"close_dialog",s),e}{t.alert(i,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);const e=i.querySelector("a");e&&e.focus()}}}}},70997(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i},cs_cz(){return i},de(){return i},es(){return i},fa(){return i},fi(){return i},fr(){return i},he(){return i},hu(){return i},id(){return i},it(){return i},ja(){return i},ko(){return i},mn(){return i},nl(){return i},pl(){return i},pt_br(){return i},ru(){return i},tr(){return i},zh_cn(){return i},zh_tw(){return i}});var i=s(45143)},1720(t,e,s){"use strict";var i=s(62924),r=s(97651),o=s(9162),n=s(86284),a=s(79102),l=s(70997);s(22583),a.pw.add("symbols",class c extends r.S{constructor(t){super(t),this.buttons=[{name:"symbols",group:"insert"}],this.countInRow=17,(0,a.xl)(l)}afterInit(t){t.e.on("generateSpecialCharactersTable.symbols",(()=>{const e=t.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),s=e.querySelector(".jodit-symbols__preview"),r=e.querySelector("table").tBodies[0],a=[];for(let e=0;t.o.specialCharacters.length>e;){const s=t.c.element("tr");for(let i=0;this.countInRow>i&&t.o.specialCharacters.length>e;i+=1,e+=1){const r=t.c.element("td"),o=t.c.fromHTML(`<a\n\t\t\t\t\t\t\t\t\tdata-index="${e}"\n\t\t\t\t\t\t\t\t\tdata-index-j="${i}"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>${t.o.specialCharacters[e]}</a>`);a.push(o),r.appendChild(o),s.appendChild(r)}r.appendChild(s)}const l=this;return t.e.on(a,"focus",(function(){s.innerHTML=this.innerHTML})).on(a,"mousedown",(function(e){o.i.isTag(this,"a")&&(t.s.focus(),t.s.insertHTML(this.innerHTML),t.e.fire(this,"close_dialog"),e&&e.preventDefault(),e&&e.stopImmediatePropagation())})).on(a,"mouseenter",(function(){o.i.isTag(this,"a")&&this.focus()})).on(a,"keydown",(e=>{const s=e.target;if(o.i.isTag(s,"a")){const r=parseInt((0,n.attr)(s,"-index")||"0",10),o=parseInt((0,n.attr)(s,"data-index-j")||"0",10);let c;switch(e.key){case i.KEY_UP:case i.KEY_DOWN:c=e.key===i.KEY_UP?r-l.countInRow:r+l.countInRow,void 0===a[c]&&(c=e.key===i.KEY_UP?Math.floor(a.length/l.countInRow)*l.countInRow+o:o,c>a.length-1&&(c-=l.countInRow)),a[c]&&a[c].focus();break;case i.KEY_RIGHT:case i.KEY_LEFT:c=e.key===i.KEY_LEFT?r-1:r+1,void 0===a[c]&&(c=e.key===i.KEY_LEFT?a.length-1:0),a[c]&&a[c].focus();break;case i.KEY_ENTER:t.e.fire(s,"mousedown"),e.stopImmediatePropagation(),e.preventDefault()}}})),e}))}beforeDestruct(t){t.e.off("generateSpecialCharactersTable.symbols")}})},74095(t,e,s){"use strict";s.d(e,{a(){return i.a}});var i=s(95580)},95580(t,e,s){"use strict";s.d(e,{a(){return r}});var i=s(9162);function r(t,e=!1){if(!t.o.tab.tabInsideLiInsertNewList)return!1;const[s,r]=(t=>{const e=t.createInside.fake(),s=t.createInside.fake(),i=t.s.range.cloneRange();i.collapse(!0),i.insertNode(e);const r=t.s.range.cloneRange();return r.collapse(!1),r.insertNode(s),[e,s]})(t);try{const r=((t,e,s)=>{const r=i.i.closest(e,"li",t.editor);return!!r&&!(!s&&!i.i.isLeaf(r.previousElementSibling))&&!(s&&!i.i.closest(r,"li",t.editor))&&r})(t,s,e);if(!r)return!1;if(!((t,e,s)=>{const r=i.i.closest(s,"li",e.editor);return!(!r||r!==t&&!t.contains(r))})(r,t,s))return!1;const o=i.i.closest(r,["ol","ul"],t.editor);return!(!o||e&&!i.i.closest(o,"li",t.editor)||(e?((t,e,s)=>{const r=i.i.closest(e,"li",t.editor),o=Array.from(e.children).filter((t=>i.i.isLeaf(t)));i.i.after(r,s);const n=o.indexOf(s);if(0!==n&&1!==o.length||i.i.safeRemove(e),n!==o.length-1){const t=e.cloneNode();i.i.append(s,t);for(let e=n+1;o.length>e;e+=1)i.i.append(t,o[e])}})(t,o,r):((t,e,s)=>{const r=s.previousElementSibling,o=r.lastElementChild,n=i.i.isTag(o,e.tagName)?o:t.createInside.element(e.tagName,Array.from(e.attributes).reduce(((t,e)=>(t[e.name]=e.value,t)),{}));n.appendChild(s),o!==n&&r.appendChild(n)})(t,o,r),0))}finally{const e=t.s.createRange();e.setStartAfter(s),e.setEndBefore(r),t.s.selectRange(e),i.i.safeRemove(s),i.i.safeRemove(r)}return!1}s(52378)},98786(t,e,s){"use strict";s(37446).D.prototype.tab={tabInsideLiInsertNewList:!0}},41012(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(13666),n=s(62924),a=s(79102),l=s(74095);s(98786);class c extends r.S{afterInit(t){}__onTab(t){if(t.key===n.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){const e=(0,l.a)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,i.gn)([(0,o.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,i.gn)([(0,o.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),a.pw.add("tab",c)},62(t,e,s){"use strict";var i=s(62924),r=s(9162),o=s(45979),n=s(79102),a=s(76974);const l=new Set([i.KEY_TAB,i.KEY_LEFT,i.KEY_RIGHT,i.KEY_UP,i.KEY_DOWN]);n.pw.add("tableKeyboardNavigation",(t=>{t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(e=>{const{key:s}=e;if(!l.has(s))return;const n=t.s.current();if(!n)return;const c=r.i.up(n,r.i.isCell,t.editor);if(!c)return;const{range:h}=t.s;if(s!==i.KEY_TAB&&n!==c){const t=s===i.KEY_RIGHT||s===i.KEY_DOWN,e=(0,a.call)(t?r.i.next:r.i.prev,n,(t=>s===i.KEY_UP||s===i.KEY_DOWN?r.i.isTag(t,"br"):!!t),c);if(!t&&(e||s!==i.KEY_UP&&r.i.isText(n)&&0!==h.startOffset)||t&&(e||s!==i.KEY_DOWN&&r.i.isText(n)&&n.nodeValue&&h.startOffset!==n.nodeValue.length))return}const u=t.getInstance(o.i,t.o),d=r.i.closest(c,"table",t.editor);let p=null;const f=s===i.KEY_LEFT||e.shiftKey,m=()=>(0,a.call)(f?r.i.prev:r.i.next,c,r.i.isCell,d);switch(s){case i.KEY_TAB:case i.KEY_LEFT:p=m(),p||(u.appendRow(d,!!f&&d.querySelector("tr"),!f),p=m());break;case i.KEY_UP:case i.KEY_DOWN:{const t=u.formalMatrix(d),[e,r]=u.formalCoordinate(d,c);s===i.KEY_UP?void 0!==t[e-1]&&(p=t[e-1][r]):void 0!==t[e+1]&&(p=t[e+1][r])}}if(p){if(t.e.fire("hidePopup hideResizer"),p.firstChild)s===i.KEY_TAB?t.s.select(p,!0):t.s.setCursorIn(p,s===i.KEY_RIGHT||s===i.KEY_DOWN);else{const e=t.createInside.element("br");p.appendChild(e),t.s.setCursorBefore(e)}return t.synchronizeValues(),!1}}))}))},27793(t,e,s){"use strict";var i=s(37446),r=s(46879),o=s(86284),n=s(76974),a=s(30052),l=s(18508),c=s.n(l);i.D.prototype.table={selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},a.J.set("table",c()),i.D.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,e,s,i){const a=i.control,l=a.data&&a.data.rows?a.data.rows:10,c=a.data&&a.data.cols?a.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"";const e=[];if(a.data){const t=a.data.classList;Object.keys(t).forEach((s=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${s}" type="checkbox"/>${t[s]}</label>`)}))}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),u=h.querySelectorAll("span")[0],d=h.querySelectorAll("span")[1],p=h.querySelector(".jodit-form__container"),f=h.querySelector(".jodit-form__options"),m=[],g=l*c;for(let e=0;g>e;e+=1)m[e]||m.push(t.c.element("span",{dataIndex:e}));if(t.e.on(p,"mousemove",((t,e)=>{const s=t.target;if(!r.i.isTag(s,"span"))return;const i=void 0===e||isNaN(e)?parseInt((0,o.attr)(s,"-index")||"0",10):e||0,n=Math.ceil((i+1)/c),a=i%c+1;for(let t=0;m.length>t;t+=1)m[t].className=t%c+1>a||Math.ceil((t+1)/c)>n?"":"jodit_hovered";d.textContent=""+a,u.textContent=""+n})).on(p,"touchstart mousedown",(e=>{const i=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!r.i.isTag(i,"span"))return;const a=parseInt((0,o.attr)(i,"-index")||"0",10),l=Math.ceil((a+1)/c),h=a%c+1,u=t.createInside,d=u.element("tbody"),p=u.element("table");p.appendChild(d);let m,g,v=null;for(let t=1;l>=t;t+=1){m=u.element("tr");for(let t=1;h>=t;t+=1)g=u.element("td"),v||(v=g),(0,n.css)(g,"width",(100/h).toFixed(4)+"%"),g.appendChild(u.element("br")),m.appendChild(u.text("\n")),m.appendChild(u.text("\t")),m.appendChild(g);d.appendChild(u.text("\n")),d.appendChild(m)}(0,n.$$)("input[type=checkbox]:checked",f).forEach((t=>{t.value.split(/[\s]+/).forEach((t=>{p.classList.add(t)}))})),t.editor.firstChild&&t.s.insertNode(u.text("\n"),!1,!1),t.s.insertNode(p,!1),v&&(t.s.setCursorIn(v),(0,n.scrollIntoViewIfNeeded)(v,t.editor,t.ed)),s()})),i&&i.parentElement){for(let e=0;l>e;e+=1){const s=t.c.div();for(let t=0;c>t;t+=1)s.appendChild(m[e*c+t]);p.appendChild(s)}m[0]&&(m[0].className="hovered")}return h},tooltip:"Insert table"}},98457(t,e,s){"use strict";var i=s(79102);s(27793),i.pw.add("table",(t=>{t.registerButton({name:"table",group:"insert"})}))},84901(t,e,s){"use strict";var i=s(37446),r=s(6658),o=s(76974),n=s(79e3),a=s(64856),l=s(30052),c=s(97627);l.J.set("video",s.n(c)()),i.D.prototype.controls.video={popup(t,e,s){const i=new n.x4(t,[new n.eC(t,[new n.u3(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new n.eC(t,[(0,a.zx)(t,"","Insert","primary").onAction((()=>i.submit()))])]),l=new n.x4(t,[new n.eC(t,[new n.GJ(t,{name:"code",required:!0,label:"Embed code"})]),new n.eC(t,[(0,a.zx)(t,"","Insert","primary").onAction((()=>l.submit()))])]),c=[],h=e=>{t.s.restore(),t.s.insertHTML(e),s()};return t.s.save(),c.push({icon:"link",name:"Link",content:i.container},{icon:"source",name:"Code",content:l.container}),i.onSubmit((t=>{h((0,o.convertMediaUrlToVideoEmbed)(t.url))})),l.onSubmit((t=>{h(t.code)})),(0,r.IL)(t,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},79745(t,e,s){"use strict";var i=s(79102);s(84901),i.pw.add("video",(t=>{t.registerButton({name:"video",group:"media"})}))},16332(t,e,s){"use strict";s(37446).D.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},45777(t,e,s){"use strict";var i=s(97582),r=s(7331),o=s(46879),n=s(2926),a=s(13666),l=s(79102);s(16332);class c extends r.S{constructor(){super(...arguments),this.isSuitableStart=t=>o.i.isText(t)&&(0,n.H)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||t.parentNode?.firstChild===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!o.i.isTemporary(t),this.isSuitable=t=>o.i.isText(t)||this.isNotWrapped(t),this.isNotWrapped=t=>o.i.isElement(t)&&!(o.i.isBlock(t)||o.i.isTag(t,this.j.o.wrapNodes.exclude))}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(){const{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,s=!1;for(;e;){if(e=h(e,t),this.isSuitableStart(e)){s||t.s.save(),s=!0;const i=t.createInside.element(t.o.enter);for(o.i.before(e,i);e&&this.isSuitable(e);){const t=e.nextSibling;i.appendChild(e),e=t}i.normalize(),e=i}e=e&&e.nextSibling}s&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){const{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;const s=t.createInside.element(t.o.enter),i=t.createInside.element("br");o.i.append(s,i),o.i.append(t.editor,s),t.s.isFocused()&&t.s.setCursorBefore(i),t.e.fire("internalChange")}}function h(t,e){let s=t,i=t;do{if(!o.i.isElement(i)||!o.i.isLeaf(i)||o.i.isList(i.parentElement))break;{const t=o.i.findNotEmptySibling(i,!1);o.i.isTag(s,"ul")?s.appendChild(i):s=o.i.wrap(i,"ul",e.createInside),i=t}}while(i);return s}(0,i.gn)([a.autobind],c.prototype,"postProcessSetEditorValue",null),(0,i.gn)([a.autobind],c.prototype,"preprocessInput",null),l.pw.add("wrapNodes",c)},15440(t,e,s){"use strict";s(37446).D.prototype.showXPathInStatusbar=!0},4269(t,e,s){"use strict";var i=s(62924),r=s(39021),o=s(46879),n=s(76974),a=s(7331),l=s(55027),c=s(79102);s(15440),c.pw.add("xpath",class h extends a.S{constructor(){super(...arguments),this.onContext=(t,e)=>(this.menu||(this.menu=new r.x(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?o.i.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,e)=>{this.j.s.focus();const s=(0,n.attr)(e.target,"-path")||"/";if("/"===s)return this.j.execCommand("selectall"),!1;try{const t=this.j.ed.evaluate(s,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1},this.tpl=(t,e,s,i)=>{const r=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${i}" tabindex="-1"'>${(0,n.trim)(s)}</a></span>`),o=r.firstChild;return this.j.e.on(o,"click",this.onSelectPath.bind(this,t)).on(o,"contextmenu",this.onContext.bind(this,t)),r},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,l.gu)(this.j,{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;const t=this.j.s.current();if(this.container&&(this.container.innerHTML=i.INVISIBLE_SPACE),t){let e,s,i;o.i.up(t,(t=>{!t||this.j.editor===t||o.i.isText(t)||o.i.isComment(t)||(e=t.nodeName.toLowerCase(),s=(0,n.getXPathByElement)(t,this.j.editor).replace(/^\//,""),i=this.tpl(t,s,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(i,this.container.firstChild))}),this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",(()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===i.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=i.INVISIBLE_SPACE),this.appendSelectAll()))})),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),o.i.safeRemove(this.container),delete this.menu,delete this.container}})},20874(t,e,s){"use strict";s.r(e),s.d(e,{angle_down(){return r.a},angle_left(){return n.a},angle_right(){return l.a},angle_up(){return h.a},bin(){return d.a},cancel(){return f.a},center(){return g.a},check(){return b.a},chevron(){return y.a},dots(){return C.a},eye(){return E.a},file(){return j.a},folder(){return T.a},info_circle(){return L.a},left(){return z.a},lock(){return N.a},ok(){return R.a},pencil(){return A.a},plus(){return B.a},resize_handler(){return F.a},right(){return V.a},save(){return U.a},settings(){return G.a},unlock(){return J.a},update(){return Z.a},upload(){return tt.a},valign(){return st.a}});var i=s(39123),r=s.n(i),o=s(76331),n=s.n(o),a=s(52326),l=s.n(a),c=s(23689),h=s.n(c),u=s(99017),d=s.n(u),p=s(271),f=s.n(p),m=s(25570),g=s.n(m),v=s(20865),b=s.n(v),_=s(29777),y=s.n(_),w=s(49220),C=s.n(w),S=s(32336),E=s.n(S),x=s(23384),j=s.n(x),I=s(85588),T=s.n(I),k=s(76962),L=s.n(k),M=s(52614),z=s.n(M),D=s(78808),N=s.n(D),P=s(36553),R=s.n(P),q=s(48103),A=s.n(q),O=s(4434),B=s.n(O),H=s(55810),F=s.n(H),W=s(18375),V=s.n(W),$=s(60300),U=s.n($),Y=s(71287),G=s.n(Y),X=s(39428),J=s.n(X),K=s(92472),Z=s.n(K),Q=s(60828),tt=s.n(Q),et=s(86354),st=s.n(et)},90544(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},75125(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","Open in new tab","Open in fullsize","Clear Formatting","Fill color or set the text color","Redo","Undo","Bold","Italic","Insert Unordered List","Insert Ordered List","Align Center","Align Justify","Align Left","Align Right","Insert Horizontal Line","Insert Image","Insert file","Insert youtube/vimeo video","Insert link","Font size","Font family","Insert format block","Normal","Heading 1","Heading 2","Heading 3","Heading 4","Quote","Code","Insert","Insert table","Decrease Indent","Increase Indent","Select Special Character","Insert Special Character","Paint format","Change mode","Margins","top","right","bottom","left","Styles","Classes","Align","Right","Center","Left","--Not Set--","Src","Title","Alternative","Link","Open link in new tab","Image","file","Advanced","Image properties","Cancel","Ok","File Browser","Error on load list","Error on load folders","Are you sure?","Enter Directory name","Create directory","type name","Drop image","Drop file","or click","Alternative text","Upload","Browse","Background","Text","Top","Middle","Bottom","Insert column before","Insert column after","Insert row above","Insert row below","Delete table","Delete row","Delete column","Empty cell","Chars: %d","Words: %d","Strike through","Underline","superscript","subscript","Cut selection","Select all","Break","Search for","Replace with","Replace","Paste","Choose Content to Paste","source","bold","italic","brush","link","undo","redo","table","image","eraser","paragraph","fontsize","video","font","about","print","underline","strikethrough","indent","outdent","fullsize","shrink","hr","ul","ol","cut","selectall","Embed code","Open link","Edit link","No follow","Unlink","Update","pencil","Eye"," URL","Edit","Horizontal align","Filter","Sort by changed","Sort by name","Sort by size","Add folder","Reset","Save","Save as ...","Resize","Crop","Width","Height","Keep Aspect Ratio","Yes","No","Remove","Select","Select %s","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as HTML","Keep","Insert as Text","Insert only Text","You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!","palette","There are no files","Rename","Enter new name","preview","download","Paste from clipboard","Your browser doesn't support direct access to the clipboard.","Copy selection","copy","Border radius","Show all","Apply","Please fill out this field","Please enter a web address","Default","Circle","Dot","Quadrate","Find","Find Previous","Find Next","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","Clean","Insert className","Press Alt for custom resizing"]},3125(t){t.exports='<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>'},54209(t){t.exports='<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>'},45394(t){t.exports='<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>'},34953(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},89529(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},53315(t){t.exports='<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>'},70600(t){t.exports='<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>'},53523(t){t.exports='<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>'},6582(t){t.exports='<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>'},30770(t){t.exports='<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>'},96181(t){t.exports='<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>'},43208(t){t.exports='<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>'},28218(t){t.exports='<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>'},48872(t){t.exports='<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>'},43574(t){t.exports='<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>'},68707(t){t.exports='<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>'},15806(t){t.exports='<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>'},89371(t){t.exports='<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>'},79031(t){t.exports='<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>'},84209(t){t.exports='<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>'},51416(t){t.exports='<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>'},59940(t){t.exports='<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>'},7764(t){t.exports='<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>'},32108(t){t.exports='<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>'},8223(t){t.exports='<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>'},51382(t){t.exports='<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>'},30863(t){t.exports='<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>'},89721(t){t.exports='<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>'},10147(t){t.exports='<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>'},14165(t){t.exports='<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>'},42516(t){t.exports='<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>'},80554(t){t.exports='<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>'},10328(t){t.exports='<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>'},69187(t){t.exports='<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>'},68315(t){t.exports='<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>'},94484(t){t.exports='<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>'},30165(t){t.exports='<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>'},10530(t){t.exports='<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>'},52401(t){t.exports='<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>'},44931(t){t.exports='<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>'},29845(t){t.exports='<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>'},27526(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},52390(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},28825(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},27681(t){t.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},61097(t){t.exports='<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>'},55106(t){t.exports='<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>'},31398(t){t.exports='<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>'},1296(t){t.exports='<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>'},18508(t){t.exports='<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>'},97627(t){t.exports='<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>'},39123(t){t.exports='<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>'},76331(t){t.exports='<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>'},52326(t){t.exports='<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>'},23689(t){t.exports='<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>'},99017(t){t.exports='<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>'},271(t){t.exports='<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>'},25570(t){t.exports='<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>'},20865(t){t.exports='<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>'},29777(t){t.exports='<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>'},49220(t){t.exports='<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>'},32336(t){t.exports='<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>'},23384(t){t.exports='<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>'},85588(t){t.exports='<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>'},76962(t){t.exports='<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>'},52614(t){t.exports='<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>'},78808(t){t.exports='<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>'},36553(t){t.exports='<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>'},48103(t){t.exports='<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>'},4434(t){t.exports='<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>'},55810(t){t.exports='<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>'},18375(t){t.exports='<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>'},60300(t){t.exports='<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>'},71287(t){t.exports='<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>'},39428(t){t.exports='<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>'},92472(t){t.exports='<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>'},60828(t){t.exports='<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>'},86354(t){t.exports='<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>'},52378(t){"use strict";t.exports={assert(){}}},45143(e){"use strict";e.exports=t},97582(t,e,s){"use strict";function i(t,e,s,i){var r,o=arguments.length,n=3>o?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(3>o?r(n):o>3?r(e,s,n):r(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n}s.d(e,{gn(){return i}}),"function"==typeof SuppressedError&&SuppressedError}},s={};function i(t){var r=s[t];if(void 0!==r)return r.exports;var o=s[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";i.r(r),i.d(r,{CommitMode(){return h},Jodit(){return e.h}});var t=i(62924),e=i(44380),s=i(10602),o=i(78157),n=i(13666),a=i(27801),l=i(20874);i(14219),Object.keys(t).forEach((s=>{e.h[s]=t[s]}));const c=t=>"__esModule"!==t;Object.keys(l).filter(c).forEach((t=>{a.Icon.set(t.replace("_","-"),l[t])})),Object.keys(a).filter(c).forEach((t=>{const s=a[t],i=(0,o.mf)(s.prototype?.className)?s.prototype.className():t;(0,o.HD)(i)&&(e.h.modules[i]=s)})),Object.keys(n).filter(c).forEach((t=>{e.h.decorators[t]=n[t]})),["Confirm","Alert","Prompt"].forEach((t=>{e.h[t]=a[t]})),Object.keys(s.Z).filter(c).forEach((t=>{e.h.lang[t]=s.Z[t]}));class h{}})(),r}()}));
10
+ ((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e(require("{}"));else if("function"==typeof define&&define.amd)define(["{}"],e);else{var s="object"==typeof exports?e(require("{}")):e(t["{}"]);for(var r in s)("object"==typeof exports?exports:t)[r]=s[r]}})(self,(function(t){return function(){var e={26318(t,e,s){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,r(t)}function i(t,e,s){var i=s.value;if("function"!=typeof i)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(r(i)));var o=!1;return{configurable:!0,get(){if(o||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof i)return i;var s=i.bind(this);return o=!0,Object.defineProperty(this,e,{configurable:!0,get(){return s},set(t){i=t,delete this[e]}}),o=!1,s},set(t){i=t}}}function o(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var s=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof s.value&&Object.defineProperty(t.prototype,e,i(t,e,s))}})),t}function n(){return 1===arguments.length?o.apply(void 0,arguments):i.apply(void 0,arguments)}s.d(e,{Ay(){return n}})},92687(){"use strict";"document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",s="prototype",r=t.Element[s],i=Object,o=String[s].trim||function(){return this.replace(/^\s+|\s+$/g,"")},n=Array[s].indexOf||function(t){for(var e=0,s=this.length;s>e;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},l=(t,e)=>{if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return n.call(t,e)},c=function(t){for(var e=o.call(t.getAttribute("class")||""),s=e?e.split(/\s+/):[],r=0,i=s.length;i>r;r++)this.push(s[r]);this._updateClassName=function(){t.setAttribute("class",""+this)}},u=c[s]=[],h=function(){return new c(this)};if(a[s]=Error[s],u.item=function(t){return this[t]||null},u.contains=function(t){return-1!==l(this,t+="")},u.add=function(){var t,e=arguments,s=0,r=e.length,i=!1;do{-1===l(this,t=e[s]+"")&&(this.push(t),i=!0)}while(++s<r);i&&this._updateClassName()},u.remove=function(){var t,e,s=arguments,r=0,i=s.length,o=!1;do{for(e=l(this,t=s[r]+"");-1!==e;)this.splice(e,1),o=!0,e=l(this,t)}while(++r<i);o&&this._updateClassName()},u.toggle=function(t,e){var s=this.contains(t+=""),r=s?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!s},u.toString=function(){return this.join(" ")},i.defineProperty){var d={get:h,enumerable:!0,configurable:!0};try{i.defineProperty(r,e,d)}catch(t){void 0!==t.number&&-2146823252!==t.number||(d.enumerable=!1,i.defineProperty(r,e,d))}}else i[s].__defineGetter__&&r.__defineGetter__(e,h)}}(window.self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var s,r=arguments.length;for(s=0;r>s;s++)e.call(this,t=arguments[s])}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var s=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:s.call(this,t)}}t=null}())},8489(t,e,s){"use strict";t.exports=s(48743).polyfill()},48743(t,e,s){"use strict";t.exports=function(){function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:t=>"[object Array]"===Object.prototype.toString.call(t),r=0,i=void 0,o=void 0,n=(t,e)=>{p[r]=t,p[r+1]=e,2===(r+=2)&&(o?o(f):y())},a="undefined"!=typeof window?window:void 0,l=a||{},c=l.MutationObserver||l.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return()=>t(f,1)}var p=Array(1e3);function f(){for(var t=0;r>t;t+=2)(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0;r=0}var m,g,v,b,y=void 0;function _(t,e){var s=this,r=new this.constructor(S);void 0===r[C]&&N(r);var i=s._state;if(i){var o=arguments[i-1];n((()=>z(i,r,o,s._result)))}else M(s,r,t,e);return r}function w(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(S);return j(e,t),e}y=u?()=>process.nextTick(f):c?(g=0,v=new c(f),b=document.createTextNode(""),v.observe(b,{characterData:!0}),()=>{b.data=g=++g%2}):h?((m=new MessageChannel).port1.onmessage=f,()=>m.port2.postMessage(0)):void 0===a?(()=>{try{var t=Function("return this")().require("vertx");return void 0!==(i=t.runOnLoop||t.runOnContext)?()=>{i(f)}:d()}catch(t){return d()}})():d();var C=Math.random().toString(36).substring(2);function S(){}var E=void 0,T=1,x=2;function I(e,s,r){s.constructor===e.constructor&&r===_&&s.constructor.resolve===w?((t,e)=>{e._state===T?L(t,e._result):e._state===x?A(t,e._result):M(e,void 0,(e=>j(t,e)),(e=>A(t,e)))})(e,s):void 0===r?L(e,s):t(r)?((t,e,s)=>{n((t=>{var r=!1,i=((s,i,o,n)=>{try{s.call(i,(s=>{r||(r=!0,e!==s?j(t,s):L(t,s))}),(e=>{r||(r=!0,A(t,e))}))}catch(t){return t}})(s,e);!r&&i&&(r=!0,A(t,i))}),t)})(e,s,r):L(e,s)}function j(t,e){if(t===e)A(t,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=e),null===r||"object"!==i&&"function"!==i)L(t,e);else{var s=void 0;try{s=e.then}catch(e){return void A(t,e)}I(t,e,s)}var r,i}function k(t){t._onerror&&t._onerror(t._result),P(t)}function L(t,e){t._state===E&&(t._result=e,t._state=T,0!==t._subscribers.length&&n(P,t))}function A(t,e){t._state===E&&(t._state=x,t._result=e,n(k,t))}function M(t,e,s,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+T]=s,i[o+x]=r,0===o&&t._state&&n(P,t)}function P(t){var e=t._subscribers,s=t._state;if(0!==e.length){for(var r=void 0,i=void 0,o=t._result,n=0;e.length>n;n+=3)i=e[n+s],(r=e[n])?z(s,r,i,o):i(o);t._subscribers.length=0}}function z(e,s,r,i){var o=t(r),n=void 0,a=void 0,l=!0;if(o){try{n=r(i)}catch(t){l=!1,a=t}if(s===n)return void A(s,new TypeError("A promises callback cannot return that same promise."))}else n=i;s._state!==E||(o&&l?j(s,n):!1===l?A(s,a):e===T?L(s,n):e===x&&A(s,n))}var R=0;function N(t){t[C]=R++,t._state=void 0,t._result=void 0,t._subscribers=[]}var O=function(){function t(t,s){this._instanceConstructor=t,this.promise=new t(S),this.promise[C]||N(this.promise),e(s)?(this.length=s.length,this._remaining=s.length,this._result=Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(s),0===this._remaining&&L(this.promise,this._result))):A(this.promise,Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===E&&t.length>e;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var s=this._instanceConstructor,r=s.resolve;if(r===w){var i=void 0,o=void 0,n=!1;try{i=t.then}catch(t){n=!0,o=t}if(i===_&&t._state!==E)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(s===q){var a=new s(S);n?A(a,o):I(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new s((e=>e(t))),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,s){var r=this.promise;r._state===E&&(this._remaining--,t===x?A(r,s):this._result[e]=s),0===this._remaining&&L(r,this._result)},t.prototype._willSettleAt=function(t,e){var s=this;M(t,void 0,(t=>s._settledAt(T,e,t)),(t=>s._settledAt(x,e,t)))},t}(),q=function(){function e(t){this[C]=R++,this._result=this._state=void 0,this._subscribers=[],S!==t&&("function"!=typeof t&&(()=>{throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof e?((t,e)=>{try{e((e=>{j(t,e)}),(e=>{A(t,e)}))}catch(e){A(t,e)}})(this,t):(()=>{throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var s=this,r=s.constructor;return t(e)?s.then((t=>r.resolve(e()).then((()=>t))),(t=>r.resolve(e()).then((()=>{throw t})))):s.then(e,e)},e}();return q.prototype.then=_,q.all=function(t){return new O(this,t).promise},q.race=function(t){var s=this;return e(t)?new s(((e,r)=>{for(var i=t.length,o=0;i>o;o++)s.resolve(t[o]).then(e,r)})):new s(((t,e)=>e(new TypeError("You must pass an array to race."))))},q.resolve=w,q.reject=function(t){var e=new this(S);return A(e,t),e},q._setScheduler=t=>{o=t},q._setAsap=t=>{n=t},q._asap=n,q.polyfill=()=>{var t=void 0;if(void 0!==s.g)t=s.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=q},q.Promise=q,q}()},36115(t,e,s){"use strict";s.d(e,{T(){return i}});var r=s(17352);class i{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="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,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=r.INSERT_AS_HTML,this.enter=r.PARAGRAPH,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:r.PARAGRAPH,this.defaultMode=r.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.showBrowserColorPicker=!0}static get defaultOptions(){return i.__defaultOptions||(i.__defaultOptions=new i),i.__defaultOptions}}i.prototype.controls={}},86302(t,e,s){"use strict";s.d(e,{j(){return h}});var r=s(17352),i=s(59146),o=s(69052),n=s(2461),a=s(25376),l=s(92039),c=s(98253),u=s(35642);s(28712);class h{constructor(){this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=queueMicrotask?.bind(window)??Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.requestsIdle=new Set,this.requestsRaf=new Set,this.requestIdleCallbackNative=window.requestIdleCallback?.bind(window)??((t,e)=>{const s=Date.now();return this.setTimeout((()=>{t({didTimeout:!1,timeRemaining(){return Math.max(0,50-(Date.now()-s))}})}),e?.timeout??1)}),this.__cancelIdleCallbackNative=window.cancelIdleCallback?.bind(window)??(t=>{this.clearTimeout(t)}),this.isDestructed=!1}delay(t){return this.promise((e=>this.setTimeout(e,t)))}setTimeout(t,e,...s){if(this.isDestructed)return 0;let r={};(0,u.R)(e)&&(e=0),(0,n.E)(e)||(r=e,e=r.timeout||0),r.label&&this.clearLabel(r.label);const o=(0,i.w)(t,e,...s),a=r.label||o;return this.timers.set(a,o),this.__callbacks.set(a,t),o}updateTimeout(t,e){if(!t||!this.timers.has(t))return null;const s=this.__callbacks.get(t);return this.setTimeout(s,{label:t,timeout:e})}clearLabel(t){t&&this.timers.has(t)&&((0,i.D)(this.timers.get(t)),this.timers.delete(t),this.__callbacks.delete(t))}clearTimeout(t){if((0,c.K)(t))return this.clearLabel(t);(0,i.D)(t),this.timers.delete(t),this.__callbacks.delete(t)}debounce(t,e,s=!1){let r=0,n=!1;const c=[],u=(...e)=>{if(!n){r=0;const s=t(...e);if(n=!0,c.length){const t=()=>{c.forEach((t=>t())),c.length=0};(0,l.y)(s)?s.finally(t):t()}}},h=(...a)=>{n=!1,e?(!r&&s&&u(...a),(0,i.D)(r),r=this.setTimeout((()=>u(...a)),(0,o.T)(e)?e():e),this.timers.set(t,r)):u(...a)};return(0,a.Q)(e)&&e.promisify?(...t)=>{const e=this.promise((t=>{c.push(t)}));return h(...t),e}:h}microDebounce(t,e=!1){let s,r=!1,i=!0;return(...o)=>{s=o,r?i=!0:(i=!0,e&&(i=!1,t(...s)),r=!0,this.__queueMicrotaskNative((()=>{r=!1,this.isDestructed||i&&t(...s)})))}}throttle(t,e,s=!1){let r,i,n,a=null;return(...s)=>{r=!0,n=s,e?a||(i=()=>{r?(t(...n),r=!1,a=this.setTimeout(i,(0,o.T)(e)?e():e),this.timers.set(i,a)):a=null},i()):t(...n)}}promise(t){let e=()=>{};const s=new Promise(((s,r)=>(this.promisesRejections.add(r),e=()=>r(Error("Reject promise")),t(s,r))));return s.finally||"undefined"==typeof process||r.IS_ES_NEXT||(s.finally=t=>(s.then(t).catch(t),s)),s.finally((()=>{this.promisesRejections.delete(e)})).catch((()=>null)),s.rejectCallback=e,s}promiseState(t){if(t.status)return t.status;if(!Promise.race)return new Promise((e=>{t.then((t=>(e("fulfilled"),t)),(t=>{throw e("rejected"),t})),this.setTimeout((()=>{e("pending")}),100)}));const e={};return Promise.race([t,e]).then((t=>t===e?"pending":"fulfilled"),(()=>"rejected"))}requestIdleCallback(t,e){const s=this.requestIdleCallbackNative(t,e);return this.requestsIdle.add(s),s}requestIdlePromise(t){return this.promise((e=>{const s=this.requestIdleCallback((()=>e(s)),t)}))}cancelIdleCallback(t){return this.requestsIdle.delete(t),this.__cancelIdleCallbackNative(t)}requestAnimationFrame(t){const e=requestAnimationFrame(t);return this.requestsRaf.add(e),e}cancelAnimationFrame(t){this.requestsRaf.delete(t),cancelAnimationFrame(t)}clear(){this.requestsIdle.forEach((t=>this.cancelIdleCallback(t))),this.requestsRaf.forEach((t=>this.cancelAnimationFrame(t))),this.timers.forEach((t=>(0,i.D)(this.timers.get(t)))),this.timers.clear(),this.promisesRejections.forEach((t=>t())),this.promisesRejections.clear()}destruct(){this.clear(),this.isDestructed=!0}}},64890(t,e,s){"use strict";s.d(e,{j(){return r.j}});var r=s(86302)},37474(t,e,s){"use strict";s.d(e,{u(){return l}});var r=s(64890),i=s(64567),o=s(56298),n=s(65147);const a=new Map;class l{get componentName(){return this.__componentName||(this.__componentName="jodit-"+(0,n.kebabCase)(((0,n.isFunction)(this.className)?this.className():"")||(0,n.getClassName)(this))),this.__componentName}getFullElName(t,e,s){const r=[this.componentName];return t&&(t=t.replace(/[^a-z0-9-]/gi,"-"),r.push("__"+t)),e&&(r.push("_",e),r.push("_",(0,n.isVoid)(s)?"true":""+s)),r.join("")}get ownerDocument(){return this.ow.document}get od(){return this.ownerDocument}get ow(){return this.ownerWindow}get(t,e){return(0,n.get)(t,e||this)}get isReady(){return this.componentStatus===i.f.ready}get isDestructed(){return this.componentStatus===i.f.destructed}get isInDestruct(){return i.f.beforeDestruct===this.componentStatus||i.f.destructed===this.componentStatus}bindDestruct(t){return t.hookStatus(i.f.beforeDestruct,(()=>!this.isInDestruct&&this.destruct())),this}constructor(){this.async=new r.j,this.ownerWindow=window,this.__componentStatus=i.f.beforeInit,this.uid="jodit-uid-"+(0,o.w9)()}destruct(){this.setStatus(i.f.destructed),this.async&&(this.async.destruct(),this.async=void 0),a.get(this)&&a.delete(this),this.ownerWindow=void 0}get componentStatus(){return this.__componentStatus}set componentStatus(t){this.setStatus(t)}setStatus(t){return this.setStatusComponent(t,this)}setStatusComponent(t,e){if(t===this.__componentStatus)return;e===this&&(this.__componentStatus=t);const s=Object.getPrototypeOf(this);s&&(0,n.isFunction)(s.setStatusComponent)&&s.setStatusComponent(t,e);const r=a.get(this),i=r?.[t];i&&i.length&&i.forEach((t=>t(e)))}hookStatus(t,e){let s=a.get(this);s||(s={},a.set(this,s)),s[t]||(s[t]=[]),s[t].push(e)}static isInstanceOf(t,e){return t instanceof e}}l.STATUSES=i.f},77753(t,e,s){"use strict";s.d(e,{f(){return i.f},uA(){return r.u},vG(){return o.v}});var r=s(37474),i=s(64567),o=s(7982)},64567(t,e,s){"use strict";s.d(e,{f(){return r}});const r={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"}},7982(t,e,s){"use strict";s.d(e,{v(){return i}});var r=s(37474);class i extends r.u{get j(){return this.jodit}get defaultTimeout(){return this.j.defaultTimeout}i18n(t,...e){return this.j.i18n(t,...e)}setParentView(t){return this.jodit=t,t.components.add(this),this}constructor(t){super(),this.setParentView(t)}destruct(){return this.j.components.delete(this),super.destruct()}}},17352(t,e,s){"use strict";s.r(e),s.d(e,{ACCURACY(){return J},APP_VERSION(){return r},BASE_PATH(){return at},BR(){return H},CLIPBOARD_ID(){return ut},COMMAND_KEYS(){return F},EMULATE_DBLCLICK_TIMEOUT(){return Q},ES(){return i},FAT_MODE(){return c},HOMEPAGE(){return u},INSEPARABLE_TAGS(){return T},INSERT_AS_HTML(){return tt},INSERT_AS_TEXT(){return st},INSERT_CLEAR_HTML(){return et},INSERT_ONLY_TEXT(){return rt},INVISIBLE_SPACE(){return p},INVISIBLE_SPACE_REG_EXP(){return m},INVISIBLE_SPACE_REG_EXP_END(){return g},INVISIBLE_SPACE_REG_EXP_START(){return v},IS_BLOCK(){return w},IS_ES_MODERN(){return o},IS_ES_NEXT(){return n},IS_IE(){return U},IS_INLINE(){return C},IS_MAC(){return ot},IS_PROD(){return a},IS_TEST(){return l},KEY_ALIASES(){return nt},KEY_ALT(){return M},KEY_BACKSPACE(){return j},KEY_DELETE(){return q},KEY_DOWN(){return N},KEY_ENTER(){return L},KEY_ESC(){return A},KEY_F3(){return D},KEY_LEFT(){return P},KEY_META(){return I},KEY_RIGHT(){return R},KEY_SPACE(){return O},KEY_TAB(){return k},KEY_UP(){return z},LIST_TAGS(){return S},MARKER_CLASS(){return Z},MODE_SOURCE(){return V},MODE_SPLIT(){return Y},MODE_WYSIWYG(){return W},NBSP_SPACE(){return f},NEARBY(){return B},NO_EMPTY_TAGS(){return x},PARAGRAPH(){return $},PASSIVE_EVENTS(){return dt},SAFE_COUNT_CHANGE_CALL(){return it},SET_TEST(){return h},SOURCE_CONSUMER(){return ht},SPACE_REG_EXP(){return b},SPACE_REG_EXP_END(){return _},SPACE_REG_EXP_START(){return y},TEMP_ATTR(){return lt},TEXT_HTML(){return K},TEXT_PLAIN(){return G},TEXT_RTF(){return X},TOKENS(){return d},lang(){return ct}});const r="4.1.3",i="es2021",o=!0,n=!0,a=!0;let l=!1;const c=!0,u="https://xdsoft.net/jodit/",h=()=>l=!0,d={TOKEN_GPT:"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"},p="\ufeff",f=" ",m=()=>/[\uFEFF]/g,g=()=>/[\uFEFF]+$/g,v=()=>/^[\uFEFF]+/g,b=()=>/[\s\n\t\r\uFEFF\u200b]+/g,y=()=>/^[\s\n\t\r\uFEFF\u200b]+/g,_=()=>/[\s\n\t\r\uFEFF\u200b]+$/g,w=/^(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,C=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,S=new Set(["ul","ol"]),E=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],T=new Set([...E,"br","hr"]),x=new Set(E),I="Meta",j="Backspace",k="Tab",L="Enter",A="Escape",M="Alt",P="ArrowLeft",z="ArrowUp",R="ArrowRight",N="ArrowDown",O="Space",q="Delete",D="F3",B=5,J=10,F=[I,j,q,z,N,R,P,L,A,D,k],H="br",$="p",W=1,V=2,Y=3,U="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),G=U?"text":"text/plain",K=U?"html":"text/html",X=U?"rtf":"text/rtf",Z="jodit-selection_marker",Q=300,tt="insert_as_html",et="insert_clear_html",st="insert_as_text",rt="insert_only_text",it=10,ot="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),nt={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ot?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},at=(()=>{if("undefined"==typeof document)return"";const t=document.currentScript,e=t=>{const e=t.split("/");return/\.js/.test(e[e.length-1])?e.slice(0,e.length-1).join("/")+"/":t};if(t)return e(t.src);const s=document.querySelectorAll("script[src]");return s&&s.length?e(s[s.length-1].src):window.location.href})(),lt="data-jodit-temp",ct={},ut="clipboard",ht="source-consumer",dt=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"])},92852(t,e,s){"use strict";s.d(e,{X(){return n}});var r=s(17352),i=s(55186),o=s(65147);s(28712);class n{get doc(){return(0,o.isFunction)(this.document)?this.document():this.document}constructor(t,e){this.document=t,this.createAttributes=e}element(t,e,s){const r=this.doc.createElement(t.toLowerCase());return this.applyCreateAttributes(r),e&&((0,o.isPlainObject)(e)?(0,o.attr)(r,e):s=e),s&&(0,o.asArray)(s).forEach((t=>r.appendChild((0,o.isString)(t)?this.fromHTML(t):t))),r}div(t,e,s){const r=this.element("div",e,s);return t&&(r.className=t),r}sandbox(){const t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);const e=t.contentWindow?.document;if(!e)throw Error("Iframe error");return e.open(),e.write("<!DOCTYPE html><html><head></head><body></body></html>"),e.close(),[e.body,t]}span(t,e,s){const r=this.element("span",e,s);return t&&(r.className=t),r}a(t,e,s){const r=this.element("a",e,s);return t&&(r.className=t),r}text(t){return this.doc.createTextNode(t)}fake(){return this.text(r.INVISIBLE_SPACE)}fragment(){return this.doc.createDocumentFragment()}fromHTML(t,e){const s=this.div();s.innerHTML=""+t;const r=s.firstChild===s.lastChild&&s.firstChild?s.firstChild:s;if(i.J.safeRemove(r),e){const t=(0,o.refs)(r);Object.keys(e).forEach((s=>{const r=t[s];r&&!1===e[s]&&i.J.hide(r)}))}return r}applyCreateAttributes(t){if(this.createAttributes){const e=this.createAttributes;if(e&&e[t.tagName.toLowerCase()]){const s=e[t.tagName.toLowerCase()];(0,o.isFunction)(s)?s(t):(0,o.isPlainObject)(s)&&(0,o.attr)(t,s)}}}}},40594(t,e,s){"use strict";s.d(e,{X(){return r.X}});var r=s(92852)},11961(t,e,s){"use strict";s.d(e,{d(){return r.Ay}});var r=s(26318)},87875(t,e,s){"use strict";s.d(e,{O(){return l},P(){return a}});var r=s(64567),i=s(55186),o=s(9823),n=s(76166);function a(t,e,s){const r=s.get;if(!r)throw(0,n.z3)("Getter property descriptor expected");s.get=function(){const t=r.call(this);return t&&!0===t.noCache||Object.defineProperty(this,e,{configurable:s.configurable,enumerable:s.enumerable,writable:!1,value:t}),t}}function l(t,e,s){const a=s.value;if(!(0,o.Tn)(a))throw(0,n.z3)("Handler must be a Function");let l=!0;const c=new WeakMap;s.value=function(...t){if(l&&c.has(this.constructor))return c.get(this.constructor)?.cloneNode(!0);const e=a.apply(this,t);return l&&i.J.isElement(e)&&c.set(this.constructor,e),l?e.cloneNode(!0):e},t.hookStatus(r.f.ready,(t=>{const e=(0,o.hH)(t)?t:t.jodit;l=!!e.options.cache}))}},24767(t,e,s){"use strict";function r(t){class e extends t{constructor(...t){super(...t),this.constructor===e&&(this instanceof e||Object.setPrototypeOf(this,e.prototype),this.setStatus("ready"))}}return e}s.d(e,{s(){return r}})},37075(t,e,s){"use strict";s.d(e,{n(){return a},s(){return n}});var r=s(77753),i=s(9823),o=(s(28712),s(50156));function n(t,e=!1,s="debounce"){return(n,a)=>{const l=n[a];if(!(0,i.Tn)(l))throw(0,o.z3)("Handler must be a Function");return n.hookStatus(r.f.ready,(r=>{const{async:o}=r,n=(0,i.Tn)(t)?t(r):t,l=(0,i.Et)(n)||(0,i.Qd)(n)?n:r.defaultTimeout;Object.defineProperty(r,a,{configurable:!0,value:o[s](r[a].bind(r),l,e)})})),{configurable:!0,get(){return l.bind(this)}}}}function a(t,e=!1){return n(t,e,"throttle")}},1963(t,e,s){"use strict";s.d(e,{C(){return i}});var r=s(69052);function i(...t){return e=>{const s=e.prototype;for(let e=0;t.length>e;e++){const i=t[e],o=Object.getOwnPropertyNames(i.prototype);for(let t=0;o.length>t;t++){const e=o[t],n=Object.getOwnPropertyDescriptor(i.prototype,e);null!=n&&(0,r.T)(n.value)&&!(0,r.T)(s[e])&&Object.defineProperty(s,e,{enumerable:!0,configurable:!0,writable:!0,value(...t){return n.value.call(this,...t)}})}}}}},71151(t,e,s){"use strict";s.d(e,{A(){return o}});var r=s(69052),i=s(50156);function o(t){return(e,s)=>{if(!(0,r.T)(e[s]))throw(0,i.z3)("Handler must be a Function");e.hookStatus(t,(t=>{t[s].call(t)}))}}},86285(t,e,s){"use strict";s.d(e,{N(){return n}});var r=s(77753),i=s(69052),o=s(50156);function n(){return(t,e)=>{if(!(0,i.T)(t[e]))throw(0,o.z3)("Handler must be a Function");t.hookStatus(r.f.ready,(t=>{const{async:s}=t,r=t[e];t[e]=(...e)=>s.requestIdleCallback(r.bind(t,...e))}))}}},22664(t,e,s){"use strict";s.r(e),s.d(e,{autobind(){return r.d},cache(){return i.P},cacheHTML(){return i.O},component(){return o.s},debounce(){return n.s},derive(){return a.C},getPropertyDescriptor(){return p.Nx},hook(){return l.A},idle(){return c.N},nonenumerable(){return u.m},persistent(){return h.y},throttle(){return n.n},wait(){return d.u},watch(){return p.wB}});var r=s(11961),i=s(87875),o=s(24767),n=s(37075),a=s(1963),l=s(71151),c=s(86285),u=s(48791),h=s(33087),d=s(48647),p=s(66927)},48791(t,e,s){"use strict";s.d(e,{m(){return r}});const r=(t,e)=>{!1!==(Object.getOwnPropertyDescriptor(t,e)||{}).enumerable&&Object.defineProperty(t,e,{enumerable:!1,set(t){Object.defineProperty(this,e,{enumerable:!1,writable:!0,value:t})}})}},33087(t,e,s){"use strict";s.d(e,{y(){return o}});var r=s(64567),i=s(12041);function o(t,e){t.hookStatus(r.f.ready,(t=>{const s=(0,i.h)(t)?t:t.jodit,r=`${s.options.namespace}${t.componentName}_prop_${e}`,o=t[e];Object.defineProperty(t,e,{get:()=>s.storage.get(r)??o,set(t){s.storage.set(r,t)}})}))}},48647(t,e,s){"use strict";s.d(e,{u(){return n}});var r=s(64567),i=s(69052),o=s(50156);function n(t){return(e,s)=>{if(!(0,i.T)(e[s]))throw(0,o.z3)("Handler must be a Function");e.hookStatus(r.f.ready,(e=>{const{async:r}=e,i=e[s];let o=0;Object.defineProperty(e,s,{configurable:!0,value:function s(...n){r.clearTimeout(o),t(e)?i.apply(e,n):o=r.setTimeout((()=>s(...n)),10)}})}))}}},66927(t,e,s){"use strict";s.d(e,{Nx(){return u},wB(){return h}});var r=s(64567),i=s(32332),o=s(42589),n=s(69052),a=s(25376),l=s(12041),c=s(50156);function u(t,e){let s;do{s=Object.getOwnPropertyDescriptor(t,e),t=Object.getPrototypeOf(t)}while(!s&&t);return s}function h(t,e){return(s,h)=>{if(!(0,n.T)(s[h]))throw(0,c.z3)("Handler must be a Function");const d=e?.immediately??!0,p=e?.context,f=e=>{const r=(0,l.h)(e)?e:e.jodit;let c=(t,...s)=>{if(!e.isInDestruct)return e[h](t,...s)};d||(c=e.async.microDebounce(c,!0)),(0,o.u)(t).forEach((t=>{if(/:/.test(t)){const[s,i]=t.split(":");let o=p;return s.length&&(o=e.get(s)),(0,n.T)(o)&&(o=o(e)),r.events.on(o||e,i,c),o||r.events.on(i,c),void e.hookStatus("beforeDestruct",(()=>{r.events.off(o||e,i,c).off(i,c)}))}const o=t.split("."),[l]=o,h=o.slice(1);let d=e[l];(0,a.Q)(d)&&(0,i.s)(d).on("change."+h.join("."),c);const f=u(s,l);Object.defineProperty(e,l,{configurable:!0,set(t){const s=d;s!==t&&(d=t,f&&f.set&&f.set.call(e,t),(0,a.Q)(d)&&(d=(0,i.s)(d),d.on("change."+h.join("."),c)),c(l,s,d))},get:()=>f&&f.get?f.get.call(e):d})}))};(0,n.T)(s.hookStatus)?s.hookStatus(r.f.ready,f):f(s)}}e.Ay=h},55186(t,e,s){"use strict";s.d(e,{J(){return l}});var r=s(17352),i=s(42448),o=s(9823),n=s(59101),a=s(97369);class l{constructor(){throw Error("Dom is static module")}static detach(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}static wrapInline(t,e,s){let r,i=t,n=t;s.s.save();let a=!1;do{a=!1,r=i.previousSibling,r&&!l.isBlock(r)&&(a=!0,i=r)}while(a);do{a=!1,r=n.nextSibling,r&&!l.isBlock(r)&&(a=!0,n=r)}while(a);const c=(0,o.Kg)(e)?s.createInside.element(e):e;i.parentNode&&i.parentNode.insertBefore(c,i);let u=i;for(;u&&(u=i.nextSibling,c.appendChild(i),i!==n&&u);)i=u;return s.s.restore(),c}static wrap(t,e,s){const r=(0,o.Kg)(e)?s.element(e):e;if(l.isNode(t)){if(!t.parentNode)throw(0,a.error)("Element should be in DOM");t.parentNode.insertBefore(r,t),r.appendChild(t)}else{const e=t.extractContents();t.insertNode(r),r.appendChild(e)}return r}static unwrap(t){const e=t.parentNode;if(e){for(;t.firstChild;)e.insertBefore(t.firstChild,t);l.safeRemove(t)}}static between(t,e,s){let r=t;for(;r&&r!==e&&(t===r||!s(r));){let t=r.firstChild||r.nextSibling;if(!t){for(;r&&!r.nextSibling;)r=r.parentNode;t=r?.nextSibling}r=t}}static replace(t,e,s,r=!1,n=!1){(0,o.AH)(e)&&(e=s.fromHTML(e));const a=(0,o.Kg)(e)?s.element(e):e;if(!n)for(;t.firstChild;)a.appendChild(t.firstChild);return r&&l.isElement(t)&&l.isElement(a)&&(0,i.$)(t.attributes).forEach((t=>{a.setAttribute(t.name,t.value)})),t.parentNode&&t.parentNode.replaceChild(a,t),a}static isEmptyTextNode(t){return l.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(r.INVISIBLE_SPACE_REG_EXP(),"").trim().length)}static isEmptyContent(t){return l.each(t,(t=>l.isEmptyTextNode(t)))}static isContentEditable(t,e){return l.isNode(t)&&!l.closest(t,(t=>l.isElement(t)&&"false"===t.getAttribute("contenteditable")),e)}static isEmpty(t,e=r.NO_EMPTY_TAGS){if(!t)return!0;let s;s=(0,o.Tn)(e)?e:t=>e.has(t.nodeName.toLowerCase());const i=t=>null==t.nodeValue||0===(0,n.Bq)(t.nodeValue).length;return l.isText(t)?i(t):!(l.isElement(t)&&s(t))&&l.each(t,(t=>{if(l.isText(t)&&!i(t)||l.isElement(t)&&s(t))return!1}))}static isNode(t){return!!(t&&(0,o.Kg)(t.nodeName)&&"number"==typeof t.nodeType&&t.childNodes&&(0,o.Tn)(t.appendChild))}static isCell(t){return l.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}static isList(t){return l.isTag(t,r.LIST_TAGS)}static isLeaf(t){return l.isTag(t,"li")}static isImage(t){return l.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}static isBlock(t){return!(0,o.Rd)(t)&&"object"==typeof t&&l.isNode(t)&&r.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){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.ELEMENT_NODE)}static isFragment(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!(!e||t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)}static isHTMLElement(t){if(!l.isNode(t))return!1;const e=t.ownerDocument?.defaultView;return!!(e&&t instanceof e.HTMLElement)}static isInlineBlock(t){return l.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(""+(0,a.css)(t,"display"))}static canSplitBlock(t){return!(0,o.Rd)(t)&&l.isHTMLElement(t)&&l.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}static last(t,e){let s=t?.lastChild;if(!s)return null;do{if(e(s))return s;let r=s.lastChild;if(r||(r=s.previousSibling),!r&&s.parentNode!==t){do{s=s.parentNode}while(s&&!s?.previousSibling&&s.parentNode!==t);r=s?.previousSibling}s=r}while(s);return null}static prev(t,e,s,r=!0){return l.find(t,e,s,!1,r)}static next(t,e,s,r=!0){return l.find(t,e,s,!0,r)}static prevWithClass(t,e){return l.prev(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static nextWithClass(t,e){return l.next(t,(t=>l.isElement(t)&&t.classList.contains(e)),t.parentNode)}static find(t,e,s,r=!0,i=!0){const o=this.nextGen(t,s,r,i);let n=o.next();for(;!n.done;){if(e(n.value))return n.value;n=o.next()}return null}static*nextGen(t,e,s=!0,r=!0){const i=[];let o=t;do{let e=s?o.nextSibling:o.previousSibling;for(;e;)i.unshift(e),e=s?e.nextSibling:e.previousSibling;yield*this.runInStack(t,i,s,r),o=o.parentNode}while(o&&o!==e);return null}static each(t,e,s=!0){const r=this.eachGen(t,s);let i=r.next();for(;!i.done;){if(!1===e(i.value))return!1;i=r.next()}return!0}static eachGen(t,e=!0){return this.runInStack(t,[t],e)}static*runInStack(t,e,s,r=!0){for(;e.length;){const i=e.pop();if(r){let t=s?i.lastChild:i.firstChild;for(;t;)e.push(t),t=s?t.previousSibling:t.nextSibling}t!==i&&(yield i)}}static findWithCurrent(t,e,s,r="nextSibling",i="firstChild"){let o=t;do{if(e(o))return o||null;if(i&&o&&o[i]){const t=l.findWithCurrent(o[i],e,o,r,i);if(t)return t}for(;o&&!o[r]&&o!==s;)o=o.parentNode;o&&o[r]&&o!==s&&(o=o[r])}while(o&&o!==s);return null}static findSibling(t,e=!0,s=(t=>!l.isEmptyTextNode(t))){let r=l.sibling(t,e);for(;r&&!s(r);)r=l.sibling(r,e);return r&&s(r)?r:null}static findNotEmptySibling(t,e){return l.findSibling(t,e,(t=>!l.isEmptyTextNode(t)&&!!(!l.isText(t)||t.nodeValue?.length&&(0,n.Bq)(t.nodeValue))))}static findNotEmptyNeighbor(t,e,s){return(0,a.call)(e?l.prev:l.next,t,(t=>!(!t||(l.isText(t)||l.isComment(t))&&!(0,n.Bq)(t?.nodeValue||"").length)),s)}static sibling(t,e){return e?t.previousSibling:t.nextSibling}static up(t,e,s,r=!1){let i=t;if(!i)return null;do{if(e(i))return i;if(i===s||!i.parentNode)break;i=i.parentNode}while(i&&i!==s);return i===s&&r&&e(i)?i:null}static closest(t,e,s){let r;const i=t=>t.toLowerCase();if((0,o.Tn)(e))r=e;else if((0,o.cy)(e)||(0,o.vM)(e)){const t=(0,o.vM)(e)?e:new Set(e.map(i));r=e=>!(!e||!t.has(i(e.nodeName)))}else r=t=>!(!t||i(e)!==i(t.nodeName));return l.up(t,r,s)}static furthest(t,e,s){let r=null,i=t?.parentElement;for(;i&&i!==s;)e(i)&&(r=i),i=i?.parentElement;return r}static appendChildFirst(t,e){const s=t.firstChild;s?s!==e&&t.insertBefore(e,s):t.appendChild(e)}static after(t,e){const{parentNode:s}=t;s&&(s.lastChild===t?s.appendChild(e):s.insertBefore(e,t.nextSibling))}static before(t,e){const{parentNode:s}=t;s&&s.insertBefore(e,t)}static prepend(t,e){t.insertBefore(e,t.firstChild)}static append(t,e){(0,o.cy)(e)?e.forEach((e=>{this.append(t,e)})):t.appendChild(e)}static moveContent(t,e,s=!1,r=(()=>!0)){const o=(t.ownerDocument||document).createDocumentFragment();(0,i.$)(t.childNodes).filter((t=>!!r(t)||(l.safeRemove(t),!1))).forEach((t=>{o.appendChild(t)})),s&&e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o)}static isOrContains(t,e,s=!1){return t===e?!s:!!(e&&t&&this.up(e,(e=>e===t),t,!0))}static safeRemove(...t){t.forEach((t=>l.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)))}static safeInsertNode(t,e){t.collapsed||t.deleteContents();const s=l.isFragment(e)?e.lastChild:e;t.startContainer===t.endContainer&&t.collapsed&&l.isTag(t.startContainer,r.INSEPARABLE_TAGS)?l.after(t.startContainer,e):(t.insertNode(e),s&&t.setStartBefore(s)),t.collapse(!0),[e.nextSibling,e.previousSibling].forEach((t=>l.isText(t)&&!t.nodeValue&&l.safeRemove(t)))}static hide(t){t&&((0,a.dataBind)(t,"__old_display",t.style.display),t.style.display="none")}static show(t){if(!t)return;const e=(0,a.dataBind)(t,"__old_display");"none"===t.style.display&&(t.style.display=e||"")}static isTag(t,e){if(!this.isElement(t))return!1;const s=t.tagName.toLowerCase(),r=t.tagName.toUpperCase();if(e instanceof Set)return e.has(s)||e.has(r);if(Array.isArray(e))throw new TypeError("Dom.isTag does not support array");return s===e||r===e}static markTemporary(t,e){return e&&(0,a.attr)(t,e),(0,a.attr)(t,r.TEMP_ATTR,!0),t}static isTemporary(t){return!!l.isElement(t)&&((0,o.rg)(t)||"true"===(0,a.attr)(t,r.TEMP_ATTR))}static replaceTemporaryFromString(t){return t.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}static temporaryList(t){return(0,a.$$)(`[${r.TEMP_ATTR}]`,t)}}},71842(t,e,s){"use strict";s.d(e,{J(){return r.J},p(){return i.p}});var r=s(55186),i=s(8453)},8453(t,e,s){"use strict";s.d(e,{p(){return a}});var r=s(31635),i=s(22664),o=s(55186),n=s(43431);class a extends n.h{setWork(t){return this.isWorked&&this.break(),this.workNodes=o.J.eachGen(t,!this.options.reverse),this.isFinished=!1,this.startIdleRequest(),this}constructor(t,e={}){super(),this.async=t,this.options=e,this.workNodes=null,this.hadAffect=!1,this.isWorked=!1,this.isFinished=!1,this.idleId=0}startIdleRequest(){this.idleId=this.async.requestIdleCallback(this.workPerform,{timeout:this.options.timeout??10})}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(t){if(this.workNodes){this.isWorked=!0;let e=0;const s=this.options.timeoutChunkSize??50;for(;!this.isFinished&&(t.timeRemaining()>0||t.didTimeout&&s>=e);){const t=this.workNodes.next();if(e+=1,this.visitNode(t.value)&&(this.hadAffect=!0),t.done)return void this.end()}}else this.end();this.isFinished||this.startIdleRequest()}visitNode(t){return!(!t||void 0!==this.options.whatToShow&&t.nodeType!==this.options.whatToShow)&&(this.emit("visit",t)??!1)}}(0,r.Cg)([i.autobind],a.prototype,"workPerform",null)},50658(t,e,s){"use strict";s.d(e,{b(){return u}});var r=s(17352),i=s(42589),o=s(37923),n=s(69052),a=s(98253),l=s(50156),c=s(10004);class u{mute(t){return this.__mutedEvents.add(t??"*"),this}isMuted(t){return!(!t||!this.__mutedEvents.has(t))||this.__mutedEvents.has("*")}unmute(t){return this.__mutedEvents.delete(t??"*"),this}__eachEvent(t,e){(0,i.u)(t).map((t=>t.trim())).forEach((t=>{const s=t.split(".");e.call(this,s[0],s[1]||c.X)}))}__getStore(t){if(!t)throw(0,l.z3)("Need subject");if(void 0===t[this.__key]){const e=new c.d;Object.defineProperty(t,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:e})}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,e){const s=this.__doc.createEvent("HTMLEvents");(0,a.K)(e)?s.initEvent(e,!0,!0):(s.initEvent(e.type,e.bubbles,e.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((t=>{Object.defineProperty(s,t,{value:e[t],enumerable:!0})})),Object.defineProperty(s,"originalEvent",{value:e,enumerable:!0})),t.dispatchEvent(s)}get current(){return this.currents[this.currents.length-1]}on(t,e,s,i){let c,u,d,p;if((0,a.K)(t)||(0,a.B)(t)?(c=this,u=t,d=e,p=s):(c=t,u=e,d=s,p=i),!(0,a.K)(u)&&!(0,a.B)(u)||0===u.length)throw(0,l.z3)("Need events names");if(!(0,n.T)(d))throw(0,l.z3)("Need event handler");if((0,o.c)(c))return c.forEach((t=>{this.on(t,u,d,p)})),this;const f=c,m=this.__getStore(f),g=this;let v=function(t,...e){if(!g.isMuted(t))return d&&d.call(this,...e)};return h(f)&&(v=function(t){if(!g.isMuted(t.type))return g.__prepareEvent(t),d&&!1===d.call(this,t)?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(u,((t,e)=>{if(0===t.length)throw(0,l.z3)("Need event name");if(!1===m.indexOf(t,e,d)&&(m.set(t,e,{event:t,originalCallback:d,syntheticCallback:v},p?.top),h(f))){const e=r.PASSIVE_EVENTS.has(t)?{passive:!0,capture:p?.capture??!1}:p?.capture??!1;v.options=e,f.addEventListener(t,v,e),this.__memoryDOMSubjectToHandler(f,v)}})),this}__memoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap.get(t)||new Set;s.add(e),this.__domEventsMap.set(t,s)}__unmemoryDOMSubjectToHandler(t,e){const s=this.__domEventsMap,r=s.get(t)||new Set;r.delete(e),r.size?s.set(t,r):s.delete(t)}one(t,e,s,r){let i,o,n,l;(0,a.K)(t)||(0,a.B)(t)?(i=this,o=t,n=e,l=s):(i=t,o=e,n=s,l=r);const c=(...t)=>(this.off(i,o,c),n(...t));return this.on(i,o,c,l),this}off(t,e,s){let r,i,l;if((0,a.K)(t)||(0,a.B)(t)?(r=this,i=t,l=e):(r=t,i=e,l=s),(0,o.c)(r))return r.forEach((t=>{this.off(t,i,l)})),this;const u=r,d=this.__getStore(u);if(!(0,a.K)(i)&&!(0,a.B)(i)||0===i.length)return d.namespaces().forEach((t=>{this.off(u,"."+t)})),this.__removeStoreFromSubject(u),this;const p=t=>{h(u)&&(u.removeEventListener(t.event,t.syntheticCallback,t.syntheticCallback.options??!1),this.__unmemoryDOMSubjectToHandler(u,t.syntheticCallback))},f=(t,e)=>{if(""===t)return void d.events(e).forEach((t=>{""!==t&&f(t,e)}));const s=d.get(t,e);if(s&&s.length)if((0,n.T)(l)){const r=d.indexOf(t,e,l);!1!==r&&(p(s[r]),s.splice(r,1),s.length||d.clearEvents(e,t))}else s.forEach(p),s.length=0,d.clearEvents(e,t)};return this.__eachEvent(i,((t,e)=>{e===c.X?d.namespaces().forEach((e=>{f(t,e)})):f(t,e)})),d.isEmpty()&&this.__removeStoreFromSubject(u),this}stopPropagation(t,e){const s=(0,a.K)(t)?this:t,r=(0,a.K)(t)?t:e;if("string"!=typeof r)throw(0,l.z3)("Need event names");const i=this.__getStore(s);this.__eachEvent(r,((t,e)=>{const r=i.get(t,e);r&&this.__stopped.push(r),e===c.X&&i.namespaces(!0).forEach((e=>this.stopPropagation(s,t+"."+e)))}))}__removeStop(t){if(t){const e=this.__stopped.indexOf(t);-1!==e&&this.__stopped.splice(0,e+1)}}__isStopped(t){return void 0!==t&&-1!==this.__stopped.indexOf(t)}fire(t,e,...s){let r,i;const o=(0,a.K)(t)?this:t,n=(0,a.K)(t)?t:e,u=(0,a.K)(t)?[e,...s]:s;if(!h(o)&&!(0,a.K)(n))throw(0,l.z3)("Need events names");const d=this.__getStore(o);return!(0,a.K)(n)&&h(o)?this.__triggerNativeEvent(o,e):this.__eachEvent(n,((t,e)=>{if(h(o))this.__triggerNativeEvent(o,t);else{const s=d.get(t,e);if(s)try{[...s].every((e=>!this.__isStopped(s)&&(this.currents.push(t),i=e.syntheticCallback.call(o,t,...u),this.currents.pop(),void 0!==i&&(r=i),!0)))}finally{this.__removeStop(s)}e!==c.X||h(o)||d.namespaces().filter((t=>t!==e)).forEach((e=>{const s=this.fire.call(this,o,t+"."+e,...u);void 0!==s&&(r=s)}))}})),r}constructor(t){this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=document,this.__prepareEvent=t=>{t.cancelBubble||(t.composed&&(0,n.T)(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((e=>{Object.defineProperty(t,e,{value:t.changedTouches[0][e],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()}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(((t,e)=>{this.off(e)})),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}function h(t){return(0,n.T)(t.addEventListener)}},43431(t,e,s){"use strict";s.d(e,{h(){return r}});class r{constructor(){this.__map=new Map}on(t,e){return this.__map.has(t)||this.__map.set(t,new Set),this.__map.get(t)?.add(e),this}off(t,e){return this.__map.has(t)&&this.__map.get(t)?.delete(e),this}destruct(){this.__map.clear()}emit(t,...e){let s;return this.__map.has(t)&&this.__map.get(t)?.forEach((t=>{s=t(...e)})),s}}},50025(t,e,s){"use strict";s.d(e,{Xr(){return n.X},bk(){return r.b},d$(){return n.d},h5(){return i.h},sH(){return o.s}});var r=s(50658),i=s(43431),o=s(32332),n=s(10004)},32332(t,e,s){"use strict";s.d(e,{s(){return c}});var r=s(66927),i=s(37923),o=s(69810),n=s(25376);const a=Symbol("observable-object");function l(t){return void 0!==t[a]}function c(t){if(l(t))return t;const e={},s={},c=(e,r)=>(0,i.c)(e)?(e.map((t=>c(t,r))),t):(s[e]||(s[e]=[]),s[e].push(r),t),u=(r,...o)=>{if((0,i.c)(r))r.map((t=>u(t,...o)));else try{!e[r]&&s[r]&&(e[r]=!0,s[r].forEach((e=>e.call(t,...o))))}finally{e[r]=!1}},h=(e,s=[])=>{const i={};l(e)||(Object.defineProperty(e,a,{enumerable:!1,value:!0}),Object.keys(e).forEach((a=>{const l=a,c=s.concat(l).filter((t=>t.length));i[l]=e[l];const d=(0,r.Nx)(e,l);Object.defineProperty(e,l,{set(e){const s=i[l];if(!(0,o.P)(i[l],e)){u(["beforeChange","beforeChange."+c.join(".")],l,e),(0,n.Q)(e)&&h(e,c),d&&d.set?d.set.call(t,e):i[l]=e;const r=[];u(["change",...c.reduce(((t,e)=>(r.push(e),t.push("change."+r.join(".")),t)),[])],c.join("."),s,e?.valueOf?e.valueOf():e)}},get(){return d&&d.get?d.get.call(t):i[l]},enumerable:!0,configurable:!0}),(0,n.Q)(i[l])&&h(i[l],c)})),Object.defineProperty(t,"on",{value:c}))};return h(t),t}},10004(t,e,s){"use strict";s.d(e,{X(){return i},d(){return o}});var r=s(42448);s(28712);const i="JoditEventDefaultNamespace";class o{constructor(){this.__store=new Map}get(t,e){if(this.__store.has(e))return this.__store.get(e)[t]}indexOf(t,e,s){const r=this.get(t,e);if(r)for(let t=0;r.length>t;t+=1)if(r[t].originalCallback===s)return t;return!1}namespaces(t=!1){const e=(0,r.$)(this.__store.keys());return t?e.filter((t=>t!==i)):e}events(t){const e=this.__store.get(t);return e?Object.keys(e):[]}set(t,e,s,r=!1){let i=this.__store.get(e);i||(i={},this.__store.set(e,i)),void 0===i[t]&&(i[t]=[]),r?i[t].unshift(s):i[t].push(s)}clear(){this.__store.clear()}clearEvents(t,e){const s=this.__store.get(t);s&&s[e]&&(delete s[e],Object.keys(s).length||this.__store.delete(t))}isEmpty(){return 0===this.__store.size}}},56298(t,e,s){"use strict";s.d(e,{JW(){return b},My(){return _},RR(){return w},VF(){return d},av(){return v},fg(){return g},w9(){return m}});var r=s(83044),i=s(98253),o=s(12041),n=s(449),a=s(75766),l=s(77402),c=s(17352),u=s(71842),h=s(50025);const d={};let p=1;const f=new Set;function m(){function t(){return p+=10*(Math.random()+1),Math.round(p).toString(16)}let e=t();for(;f.has(e);)e=t();return f.add(e),e}const g=new l.$,v={},b=t=>{Object.keys(t).forEach((e=>{c.lang[e]?Object.assign(c.lang[e],t[e]):c.lang[e]=t[e]}))},y=new WeakMap;function _(t,e,s="div",l=!1){const c=(0,i.K)(e)?e:e?(0,a.u)(e.prototype):"jodit-utils",h=y.get(t)||{},d=c+s,p=(0,o.h)(t)?t:t.j;if(!h[d]){let e=p.c,i=(0,r.y)(t)&&t.o.shadowRoot?t.o.shadowRoot:t.od.body;if(l&&(0,r.y)(t)&&t.od!==t.ed){e=t.createInside;const o="style"===s?t.ed.head:t.ed.body;i=(0,r.y)(t)&&t.o.shadowRoot?t.o.shadowRoot:o}const o=e.element(s,{className:`jodit jodit-${(0,n.k)(c)}-container jodit-box`});o.classList.add("jodit_theme_"+(p.o.theme||"default")),i.appendChild(o),h[d]=o,t.hookStatus("beforeDestruct",(()=>{u.J.safeRemove(o),delete h[d],Object.keys(h).length&&y.delete(t)})),y.set(t,h)}return h[d].classList.remove("jodit_theme_default","jodit_theme_dark"),h[d].classList.add("jodit_theme_"+(p.o.theme||"default")),h[d]}const w=new h.bk},82317(t,e,s){"use strict";s.d(e,{_(){return i}});var r=s(37923);const i=t=>(0,r.c)(t)?t:[t]},32709(t,e,s){"use strict";s.d(e,{$r(){return o.$},_j(){return r._},uM(){return i.u}});var r=s(82317),i=s(42589),o=s(42448)},42589(t,e,s){"use strict";function r(t){return Array.isArray(t)?t:t.split(/[,\s]+/)}s.d(e,{u(){return r}})},42448(t,e,s){"use strict";s.d(e,{$(){return o}});var r=s(34796),i=s(44210);const o=(...t)=>((0,r.a)(Array.from)?Array.from:(0,i.c)("Array.from")??Array.from).apply(Array,t)},89044(t,e,s){"use strict";s.d(e,{D(){return r.D},w(){return r.w}});var r=s(59146)},59146(t,e,s){"use strict";function r(t,e,...s){return e?window.setTimeout(t,e,...s):(t.call(null,...s),0)}function i(t){window.clearTimeout(t)}s.d(e,{D(){return i},w(){return r}})},78479(t,e,s){"use strict";function r(){let t=!0;try{const e=document.createElement("input");e.type="color",e.value="!",t="color"===e.type&&"!"!==e.value}catch(e){t=!1}return t}s.d(e,{k(){return r}})},9823(t,e,s){"use strict";s.d(e,{AH(){return l.A},Bo(){return w.B},CE(){return c.C},E6(){return h.E},Et(){return g.E},Gp(){return u.n4},Kg(){return w.K},Lm(){return o.L},Mj(){return p.M},P5(){return n.P},Qd(){return b.Q},Rd(){return T.R},Tn(){return a.T},a3(){return m.a},cy(){return i.c},hH(){return E.h},kC(){return r.k},kO(){return u.kO},kf(){return v.k},l6(){return x.l},mv(){return C.m},n4(){return n.n},pV(){return u.pV},rg(){return f.r},uV(){return S.u},vM(){return _.v},y0(){return d.y},yL(){return y.y}});var r=s(78479),i=s(37923),o=s(9810),n=s(69810),a=s(69052),l=s(53701),c=s(21811),u=s(10058),h=s(3947),d=s(83044),p=s(82201),f=s(71274),m=s(34796),g=s(2461),v=s(12461),b=s(25376),y=s(92039),_=s(53470),w=s(98253),C=s(6939),S=s(59082),E=s(12041),T=s(35642),x=s(76776)},37923(t,e,s){"use strict";function r(t){return Array.isArray(t)}s.d(e,{c(){return r}})},9810(t,e,s){"use strict";function r(t){return"boolean"==typeof t}s.d(e,{L(){return r}})},69810(t,e,s){"use strict";s.d(e,{P(){return o},n(){return i}});var r=s(28616);function i(t,e){return t===e||(0,r.A)(t)===(0,r.A)(e)}function o(t,e){return t===e}},69052(t,e,s){"use strict";function r(t){return"function"==typeof t}s.d(e,{T(){return r}})},21811(t,e,s){"use strict";function r(t){return-1!==t.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==t.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==t.search(/style="[^"]*mso-/)&&-1!==t.search(/<font/)}s.d(e,{C(){return r}})},53701(t,e,s){"use strict";s.d(e,{A(){return i}});var r=s(98253);const i=t=>(0,r.K)(t)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(t.replace(/[\r\n]/g,""))},10058(t,e,s){"use strict";s.d(e,{kO(){return l},n4(){return n},pV(){return a}});var r=s(55186),i=s(69052),o=s(35642);function n(t){return!(0,o.R)(t)&&(0,i.T)(t.init)}function a(t){return!(0,o.R)(t)&&(0,i.T)(t.destruct)}function l(t){return!(0,o.R)(t)&&r.J.isElement(t.container)}},3947(t,e,s){"use strict";s.d(e,{E(){return o}});var r=s(12461),i=s(98253);function o(t){return(0,i.K)(t)&&(0,r.k)(t)&&(t=parseFloat(t)),"number"==typeof t&&Number.isFinite(t)&&!(t%1)}},83044(t,e,s){"use strict";s.d(e,{y(){return i}});var r=s(69052);function i(t){return!!(t&&t instanceof Object&&(0,r.T)(t.constructor)&&("undefined"!=typeof Jodit&&t instanceof Jodit||t.isJodit))}},82201(t,e,s){"use strict";s.d(e,{M(){return i}});var r=s(98253);const i=t=>(0,r.K)(t)&&23===t.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(t)},71274(t,e,s){"use strict";s.d(e,{r(){return o}});var r=s(17352),i=s(55186);function o(t){return i.J.isNode(t)&&i.J.isTag(t,"span")&&t.hasAttribute("data-"+r.MARKER_CLASS)}},34796(t,e,s){"use strict";function r(t){return!!t&&"function"===(typeof t).toLowerCase()&&(t===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(t+""))}s.d(e,{a(){return r}})},2461(t,e,s){"use strict";function r(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}s.d(e,{E(){return r}})},12461(t,e,s){"use strict";s.d(e,{k(){return i}});var r=s(98253);function i(t){if((0,r.K)(t)){if(!t.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;t=parseFloat(t)}return"number"==typeof t&&!isNaN(t)&&isFinite(t)}},25376(t,e,s){"use strict";s.d(e,{Q(){return i}});var r=s(76776);function i(t){return!(!t||"object"!=typeof t||t.nodeType||(0,r.l)(t)||t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))}},92039(t,e,s){"use strict";function r(t){return t&&"function"==typeof t.then}s.d(e,{y(){return r}})},53470(t,e,s){"use strict";s.d(e,{v(){return i}});var r=s(69052);function i(t){return!!t&&(0,r.T)(t.has)&&(0,r.T)(t.add)&&(0,r.T)(t.delete)}},98253(t,e,s){"use strict";s.d(e,{B(){return o},K(){return i}});var r=s(37923);function i(t){return"string"==typeof t}function o(t){return(0,r.c)(t)&&i(t[0])}},6939(t,e,s){"use strict";function r(t){if(t.includes(" "))return!1;if("undefined"!=typeof URL)try{const e=new URL(t);return["https:","http:","ftp:","file:","rtmp:"].includes(e.protocol)}catch(t){return!1}const e=document.createElement("a");return e.href=t,!!e.hostname}s.d(e,{m(){return r}})},59082(t,e,s){"use strict";function r(t){return!!t.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(t)&&t.trim().length>0}s.d(e,{u(){return r}})},12041(t,e,s){"use strict";s.d(e,{h(){return i}});var r=s(69052);function i(t){return!!(t&&t instanceof Object&&(0,r.T)(t.constructor)&&t.isView)}},35642(t,e,s){"use strict";function r(t){return null==t}s.d(e,{R(){return r}})},76776(t,e,s){"use strict";function r(t){return null!=t&&t===t.window}s.d(e,{l(){return r}})},96768(t,e,s){"use strict";s.d(e,{s(){return r}});const r=t=>{if("rgba(0, 0, 0, 0)"===t||""===t)return!1;if(!t)return"#000000";if("#"===t.substr(0,1))return t;const e=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(t)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(t);if(!e)return"#000000";const s=parseInt(e[2],10),r=parseInt(e[3],10);let i=(parseInt(e[4],10)|r<<8|s<<16).toString(16).toUpperCase();for(;6>i.length;)i="0"+i;return e[1]+"#"+i}},93495(t,e,s){"use strict";s.d(e,{s(){return r.s}});var r=s(96768)},56176(t,e,s){"use strict";s.d(e,{Z(){return l}});var r=s(17352),i=s(55186),o=s(59101),n=s(58720);function a(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,e,s)=>{switch(s.toLowerCase()){case"pt":return(1.328*parseFloat(e)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(e)).toFixed(0)+"px"}return t}))}function l(t){if(-1===t.indexOf("<html "))return t;t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7);const e=document.createElement("iframe");e.style.display="none",document.body.appendChild(e);let s="",l=[];try{const c=e.contentDocument||(e.contentWindow?e.contentWindow.document:null);if(c){c.open(),c.write(t),c.close();try{for(let t=0;c.styleSheets.length>t;t+=1){const e=c.styleSheets[t].cssRules;for(let t=0;e.length>t;t+=1)""!==e[t].selectorText&&(l=(0,n.$$)(e[t].selectorText,c.body),l.forEach((s=>{s.style.cssText=a(e[t].style.cssText+";"+s.style.cssText)})))}}catch(t){if(!r.IS_PROD)throw t}i.J.each(c.body,(t=>{if(i.J.isElement(t)){const e=t,s=e.getAttribute("style");s&&(e.style.cssText=a(s)),e.hasAttribute("style")&&!e.getAttribute("style")&&e.removeAttribute("style")}})),s=c.firstChild?(0,o.Bq)(c.body.innerHTML):""}}catch{}finally{i.J.safeRemove(e)}return s&&(t=s),(0,o.Bq)(t.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}},94450(t,e,s){"use strict";s.d(e,{w(){return n}});var r=s(55186),i=s(42448),o=s(59101);function n(t){-1!==t.indexOf("<html ")&&(t=(t=t.substring(t.indexOf("<html "),t.length)).substring(0,t.lastIndexOf("</html>")+7));let e="";try{const s=document.createElement("div");s.innerHTML=t;const o=[];s.firstChild&&r.J.each(s,(t=>{if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":o.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":r.J.unwrap(t);break;default:(0,i.$)(t.attributes).forEach((e=>{-1===["src","href","rel","content"].indexOf(e.name.toLowerCase())&&t.removeAttribute(e.name)}))}break;case Node.TEXT_NODE:break;default:o.push(t)}})),r.J.safeRemove.apply(null,o),e=s.innerHTML}catch(t){}return e&&(t=e),(t=t.split(/(\n)/).filter(o.Bq).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},4960(t,e,s){"use strict";function r(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}s.d(e,{G(){return r}})},16113(t,e,s){"use strict";s.d(e,{Gq(){return o.G},HA(){return n.H},Kq(){return l.K},ZM(){return r.Z},t_(){return a.t},vn(){return a.v},wE(){return i.w}});var r=s(56176),i=s(94450),o=s(4960),n=s(10025),a=s(26328),l=s(61793)},10025(t,e,s){"use strict";function r(t){return t.replace(/\r\n|\r|\n/g,"<br/>")}s.d(e,{H(){return r}})},26328(t,e,s){"use strict";s.d(e,{t(){return o},v(){return n}});var r=s(55186),i=s(97369);function o(t,e){(r.J.isElement(t)||r.J.isFragment(t))&&(e.removeOnError&&(n(t),(0,i.$$)("[onerror]",t).forEach((t=>n(t,e)))),e.safeJavaScriptLink&&(n(t),(0,i.$$)('a[href^="javascript"]',t).forEach((t=>n(t,e)))))}function n(t,{safeJavaScriptLink:e,removeOnError:s}={safeJavaScriptLink:!0,removeOnError:!0}){if(!r.J.isElement(t))return!1;let o=!1;s&&t.hasAttribute("onerror")&&((0,i.attr)(t,"onerror",null),o=!0);const n=t.getAttribute("href");return e&&n&&0===n.trim().indexOf("javascript")&&((0,i.attr)(t,"href",location.protocol+"//"+n),o=!0),o}},61793(t,e,s){"use strict";s.d(e,{K(){return u}});var r=s(55186),i=s(98253),o=s(59101),n=s(97369);const a=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),l=new Set(["script","style"]),c=new Set(["br","hr","input"]);function u(t,e=document,s=null){const h=e.createElement("div");return(0,i.K)(t)?h.innerHTML=t:h.appendChild(t),(0,n.$$)("*",h).forEach((t=>{const i=t.parentNode;if(!i)return;if(s&&r.J.isTag(t,s)){const i=t.nodeName.toLowerCase(),o=r.J.isTag(t,c)?`%%%jodit-single-${i}%%%`:`%%%jodit-${i}%%%${u(t.innerHTML,e,s)}%%%/jodit-${i}%%%`;return r.J.before(t,e.createTextNode(o)),void r.J.safeRemove(t)}if(r.J.isTag(t,l))return void r.J.safeRemove(t);if(!r.J.isTag(t,a))return;const o=t.nextSibling;r.J.isText(o)&&/^\s/.test(o.nodeValue||"")||o&&i.insertBefore(e.createTextNode(" "),o)})),(0,o.Bq)(h.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,((t,e,s,r)=>`<${e?"/":""}${r}>`))}},65147(t,e,s){"use strict";s.r(e),s.d(e,{CamelCaseToKebabCase(){return u.N},NUMBER_FIELDS_REG(){return l.b$},applyStyles(){return a.ZM},asArray(){return r._j},camelCase(){return u.xQ},cleanFromWord(){return a.wE},clearTimeout(){return i.D},colorToHex(){return n.s},fuzzySearchIndex(){return u.Hp},getContentWidth(){return c.y6},getScrollParent(){return c.mH},hasBrowserColorPicker(){return o.kC},hasContainer(){return o.kO},htmlspecialchars(){return a.Gq},i18n(){return u.Ru},innerWidth(){return c.xM},isArray(){return o.cy},isBoolean(){return o.Lm},isDestructable(){return o.pV},isEqual(){return o.n4},isFastEqual(){return o.P5},isFunction(){return o.Tn},isHTML(){return o.AH},isHtmlFromWord(){return o.CE},isInitable(){return o.Gp},isInt(){return o.E6},isJoditObject(){return o.y0},isLicense(){return o.Mj},isMarker(){return o.rg},isNativeFunction(){return o.a3},isNumber(){return o.Et},isNumeric(){return o.kf},isPlainObject(){return o.Qd},isPromise(){return o.yL},isSet(){return o.vM},isString(){return o.Kg},isStringArray(){return o.Bo},isURL(){return o.mv},isValidName(){return o.uV},isViewObject(){return o.hH},isVoid(){return o.Rd},isWindow(){return o.l6},kebabCase(){return u.kW},nl2br(){return a.HA},normalizeColor(){return l.$2},normalizeCssNumericValue(){return l.n8},normalizeCssValue(){return l.iy},normalizeKeyAliases(){return l.jB},normalizeLicense(){return l.f},normalizePath(){return l.Fd},normalizeRelativePath(){return l.Vd},normalizeSize(){return l.rn},normalizeUrl(){return l.l2},offset(){return c.cY},position(){return c.G1},safeHTML(){return a.t_},sanitizeHTMLElement(){return a.vn},setTimeout(){return i.w},size(){return c.Ej},splitArray(){return r.uM},sprintf(){return u.nv},stringify(){return u.As},stripTags(){return a.Kq},toArray(){return r.$r},trim(){return u.Bq},trimChars(){return u.Gd},trimInv(){return u.gj},ucfirst(){return u.Z2}});var r=s(32709),i=s(89044),o=s(9823),n=s(93495),a=s(16113),l=s(65499),c=s(34125),u=s(6589),h=s(97369),d={};for(var p in h)0>["default","asArray","splitArray","toArray","clearTimeout","setTimeout","hasBrowserColorPicker","hasContainer","isArray","isBoolean","isDestructable","isEqual","isFastEqual","isFunction","isHTML","isHtmlFromWord","isInitable","isInt","isJoditObject","isLicense","isMarker","isNativeFunction","isNumber","isNumeric","isPlainObject","isPromise","isSet","isString","isStringArray","isURL","isValidName","isViewObject","isVoid","isWindow","colorToHex","applyStyles","cleanFromWord","htmlspecialchars","nl2br","safeHTML","sanitizeHTMLElement","stripTags","NUMBER_FIELDS_REG","normalizeColor","normalizeCssNumericValue","normalizeCssValue","normalizeKeyAliases","normalizeLicense","normalizePath","normalizeRelativePath","normalizeSize","normalizeUrl","getContentWidth","getScrollParent","innerWidth","offset","position","size","CamelCaseToKebabCase","camelCase","fuzzySearchIndex","i18n","kebabCase","sprintf","stringify","trim","trimChars","trimInv","ucfirst"].indexOf(p)&&(d[p]=(t=>h[t]).bind(0,p));s.d(e,d)},65499(t,e,s){"use strict";s.d(e,{$2(){return r.$},Fd(){return a.F},Vd(){return l.V},b$(){return i.b$},f(){return n.f},iy(){return i.iy},jB(){return o.j},l2(){return u.l},n8(){return i.n8},rn(){return c.r}});var r=s(73446),i=s(59678),o=s(74995),n=s(31138),a=s(92998),l=s(13265),c=s(7920),u=s(39344)},73446(t,e,s){"use strict";s.d(e,{$(){return o}});var r=s(96768),i=s(59101);const o=t=>{const e=["#"];let s=(0,r.s)(t);if(!s)return!1;if(s=(0,i.Bq)(s.toUpperCase()),s=s.substring(1),3===s.length){for(let t=0;3>t;t+=1)e.push(s[t]),e.push(s[t]);return e.join("")}return s.length>6&&(s=s.slice(0,6)),"#"+s}},59678(t,e,s){"use strict";s.d(e,{b$(){return a},iy(){return c},n8(){return l}});var r=s(12461),i=s(35642),o=s(96768),n=s(449);const a=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function l(t,e){return!(0,i.R)(e)&&a.test(t)&&(0,r.k)(""+e)?parseInt(""+e,10)+"px":e}function c(t,e){if("font-weight"===(0,n.k)(t)){switch((""+e).toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return(0,r.k)(e)?Number(e):e}return/color/i.test(t)&&/^rgb/i.test(""+e)&&(0,o.s)(""+e)||e}},74995(t,e,s){"use strict";s.d(e,{j(){return o}});var r=s(17352),i=s(59101);function o(t){const e={},s={meta:1,ctrl:2,control:2,alt:3,shift:4};return t.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((t=>(0,i.Bq)(t.toLowerCase()))).map((t=>r.KEY_ALIASES[t]||t)).sort(((t,e)=>s[t]&&!s[e]?-1:!s[t]&&s[e]?1:s[t]&&s[e]?s[t]-s[e]:t>e?1:-1)).filter((t=>!e[t]&&""!==t&&(e[t]=!0))).join("+")}},31138(t,e,s){"use strict";s.d(e,{f(){return r}});const r=(t,e=8)=>{const s=[];for(;t.length;)s.push(t.substr(0,e)),t=t.substr(e);return s[1]=s[1].replace(/./g,"*"),s[2]=s[2].replace(/./g,"*"),s.join("-")}},92998(t,e,s){"use strict";s.d(e,{F(){return i}});var r=s(59101);const i=(...t)=>t.filter((t=>(0,r.Bq)(t).length)).map(((e,s)=>(e=e.replace(/([^:])[\\/]+/g,"$1/"),s&&(e=e.replace(/^\//,"")),s!==t.length-1&&(e=e.replace(/\/$/,"")),e))).join("/")},13265(t,e,s){"use strict";s.d(e,{V(){return r}});const r=t=>t.split("/").reduce(((t,e)=>{switch(e){case"":case".":break;case"..":t.pop();break;default:t.push(e)}return t}),[]).join("/")+(t.endsWith("/")?"/":"")},7920(t,e,s){"use strict";s.d(e,{r(){return r}});const r=(t,e)=>/^[0-9]+$/.test(""+t)?t+e:""+t},39344(t,e,s){"use strict";s.d(e,{l(){return r}});const r=(...t)=>t.filter((t=>t.length)).map((t=>t.replace(/\/$/,""))).join("/").replace(/([^:])[\\/]+/g,"$1/")},73780(t,e,s){"use strict";s.d(e,{y(){return r}});const r=(t,e)=>{const s=t=>parseInt(t,10),r=e.getComputedStyle(t);return t.offsetWidth-s(r.getPropertyValue("padding-left")||"0")-s(r.getPropertyValue("padding-right")||"0")}},98228(t,e,s){"use strict";s.d(e,{m(){return o}});var r=s(55186),i=s(97369);function o(t){if(!t)return null;const e=r.J.isHTMLElement(t),s=e&&(0,i.css)(t,"overflowY");return e&&"visible"!==s&&"hidden"!==s&&t.scrollHeight>=t.clientHeight?t:o(t.parentNode)||document.scrollingElement||document.body}},34125(t,e,s){"use strict";s.d(e,{Ej(){return n.E},G1(){return l.G},cY(){return a.c},mH(){return i.m},xM(){return o.x},y6(){return r.y}});var r=s(73780),i=s(98228),o=s(49744),n=s(95350),a=s(91594),l=s(27594)},49744(t,e,s){"use strict";s.d(e,{x(){return r}});const r=(t,e)=>{const s=e.getComputedStyle(t);let r=t.clientWidth;return r-=parseFloat(s.paddingLeft||"0")+parseFloat(s.paddingRight||"0"),r}},95350(t,e,s){"use strict";s.d(e,{E(){return i}});var r=s(9823);function i(t){return(0,r.Kg)(t)||(0,r.cy)(t)?t.length:(0,r.Qd)(t)?Object.keys(t).length:0}},91594(t,e,s){"use strict";s.d(e,{c(){return r}});const r=(t,e,s,i=!1)=>{let o;try{o=t.getBoundingClientRect()}catch(t){o={top:0,bottom:0,left:0,right:0,width:0,height:0}}const n=s.body,a=s.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},l=s.defaultView||s.parentWindow,c=l.pageYOffset||a.scrollTop||n.scrollTop,u=l.pageXOffset||a.scrollLeft||n.scrollLeft,h=a.clientTop||n.clientTop||0,d=a.clientLeft||n.clientLeft||0;let p,f;const m=e.iframe;if(!i&&e&&e.options&&e.o.iframe&&m){const{top:t,left:s}=r(m,e,e.od,!0);p=o.top+t,f=o.left+s}else p=o.top+c-h,f=o.left+u-d;return{top:Math.round(p),left:Math.round(f),width:o.width,height:o.height}}},27594(t,e,s){"use strict";s.d(e,{G(){return i}});var r=s(83044);function i(t,e,s=!1){const o=t.getBoundingClientRect();let n=o.left,a=o.top;if((0,r.y)(e)&&e.iframe&&e.ed.body.contains(t)&&!s){const{left:t,top:s}=i(e.iframe,e,!0);n+=t,a+=s}return{left:Math.round(n),top:Math.round(a),width:Math.round(t.offsetWidth),height:Math.round(t.offsetHeight)}}},83260(t,e,s){"use strict";s.d(e,{x(){return r}});const r=t=>t.replace(/([-_])(.)/g,((t,e,s)=>s.toUpperCase()))},67975(t,e,s){"use strict";s.d(e,{H(){return i}});var r=s(17352);function i(t,e,s=0,i=1){let o=0,n=0,a=-1,l=0,c=0;for(n=s;t.length>o&&e.length>n;)t[o].toLowerCase()===e[n].toLowerCase()?(o++,l++,c=0,-1===a&&(a=n)):o>0&&(i>c||e[n]===r.INVISIBLE_SPACE?(c++,l++):(o=0,a=-1,l=0,c=0,n--)),n++;return o===t.length?[a,l]:[-1,0]}},91093(t,e,s){"use strict";s.d(e,{R(){return c},n(){return l}});var r=s(17352),i=s(98253),o=s(10467),n=s(97369),a=s(36115);const l=(t,e)=>{if(!e||!e.length)return t;const s=/%([sd])/g;let r=s.exec(t),i=t,o=0;for(;r&&void 0!==e[o];)i=i.replace(r[0],""+e[o]),o+=1,r=s.exec(t);return i};function c(t,e,s){if(!(0,i.K)(t))throw(0,n.error)("i18n: Need string in first argument");if(!t.length)return t;const c=!!s?.debugLanguage;let u={};const h=t=>e&&e.length?l(t,e):t,d=(0,n.defaultLanguage)(a.T.defaultOptions.language,a.T.defaultOptions.language),p=(0,n.defaultLanguage)(s?.language,d),f=e=>{if(!e)return;if((0,i.K)(e[t]))return h(e[t]);const s=t.toLowerCase();if((0,i.K)(e[s]))return h(e[s]);const r=(0,o.Z)(t);return(0,i.K)(e[r])?h(e[r]):void 0};void 0!==r.lang[p]?u=r.lang[p]:c||(u=void 0!==r.lang[d]?r.lang[d]:r.lang.en);const m=s?.i18n;if(m&&m[p]){const t=f(m[p]);if(t)return t}return f(u)||(!c&&r.lang.en&&(0,i.K)(r.lang.en[t])&&r.lang.en[t]?h(r.lang.en[t]):c?"{"+t+"}":h(t))}},6589(t,e,s){"use strict";s.d(e,{As(){return a.A},Bq(){return l.Bq},Gd(){return l.Gd},Hp(){return i.H},N(){return n.N},Ru(){return o.R},Z2(){return c.Z},gj(){return l.gj},kW(){return n.k},nv(){return o.n},xQ(){return r.x}});var r=s(83260),i=s(67975),o=s(91093),n=s(449),a=s(28616),l=s(59101),c=s(10467)},449(t,e,s){"use strict";s.d(e,{N(){return i},k(){return r}});const r=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(),i=t=>t.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},28616(t,e,s){"use strict";function r(t,e={}){if("object"!=typeof t)return t+"";const s=new Set(e.excludeKeys),r=new WeakMap;return JSON.stringify(t,((t,e)=>{if(!s.has(t)){if("object"==typeof e&&null!=e){if(r.get(e))return"[refObject]";r.set(e,!0)}return e}}),e.prettify)}s.d(e,{A(){return r}})},59101(t,e,s){"use strict";s.d(e,{Bq(){return i},Gd(){return o},gj(){return n}});var r=s(17352);function i(t){return t.replace((0,r.SPACE_REG_EXP_END)(),"").replace((0,r.SPACE_REG_EXP_START)(),"")}function o(t,e){return t.replace(RegExp(`[${e}]+$`),"").replace(RegExp(`^[${e}]+`),"")}function n(t){return t.replace((0,r.INVISIBLE_SPACE_REG_EXP_END)(),"").replace((0,r.INVISIBLE_SPACE_REG_EXP_START)(),"")}},10467(t,e,s){"use strict";function r(t){return t.length?t[0].toUpperCase()+t.substring(1):""}s.d(e,{Z(){return r}})},40080(t,e,s){"use strict";s.d(e,{Mr(){return o},Op(){return a},Xm(){return n}});var r=s(71842),i=s(38322);function o(t,e){e&&"normal"!==e?"center"!==e?((0,i.A)(t,"float",e),(0,i.a)(t)):(0,i.A)(t,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):((0,i.A)(t,"float")&&-1!==["right","left"].indexOf((""+(0,i.A)(t,"float")).toLowerCase())&&(0,i.A)(t,"float",""),(0,i.a)(t))}function n(t){r.J.each(t,(t=>{r.J.isHTMLElement(t)&&t.style.textAlign&&(t.style.textAlign="",t.style.cssText.trim().length||t.removeAttribute("style"))}))}function a(t,e){if(r.J.isNode(e)&&r.J.isElement(e))switch(n(e),t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}}},27301(t,e,s){"use strict";s.d(e,{Qt(){return c},S5(){return l},w4(){return a},x_(){return u}});var r=s(98253),i=s(60346);const o=new Map,n=t=>async(e,s)=>{if(o.has(s))return o.get(s);const r=t(e,s);return o.set(s,r),r},a=n(((t,e)=>t.async.promise(((s,r)=>{if(t.isInDestruct)return r();const o=t.c.element("script",{type:"text/javascript",async:!0,src:(0,i.X)(e)});t.od.body.appendChild(o),t.e.on(o,"error",r).on(o,"load",s)})))),l=n(((t,e)=>t.async.promise(((s,r)=>{if(t.isInDestruct)return r();const o=t.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",!t.isInDestruct&&t.e.on(o,"load",(()=>s(o))).on(o,"error",r),o.href=(0,i.X)(e),t.o.shadowRoot?t.o.shadowRoot.appendChild(o):t.od.body.appendChild(o)}))));function c(t,e,s=0){return(0,r.K)(e[s])?a(t,e[s]).then((()=>c(t,e,s+1))):Promise.resolve()}function u(t,e,s=0){return(0,r.K)(e[s])?l(t,e[s]).then((()=>u(t,e,s+1))):Promise.resolve()}},26150(t,e,s){"use strict";s.d(e,{C(){return n}});var r=s(9823),i=s(449),o=s(38322);function n(t,e,s){if(!t||!(0,r.Tn)(t.getAttribute))return null;if(!(0,r.Kg)(e))return Object.keys(e).forEach((s=>{const i=e[s];(0,r.Qd)(i)&&"style"===s?(0,o.A)(t,i):("className"===s&&(s="class"),n(t,s,i))})),null;let a=(0,i.N)(e);if(/^-/.test(a)){const e=n(t,"data"+a);if(e)return e;a=a.substr(1)}if(void 0!==s){if(null!=s){let e=""+s;return"IMG"!==t.nodeName||"width"!==a&&"height"!==a||(e=e.replace("px","")),t.setAttribute(a,e),e}t.hasAttribute(a)&&t.removeAttribute(a)}return t.getAttribute(a)}},65717(t,e,s){"use strict";s.d(e,{T(){return r}});const r=t=>{const e=navigator.userAgent.toLowerCase(),s=/(firefox)[\s/]([\w.]+)/.exec(e)||/(chrome)[\s/]([\w.]+)/.exec(e)||/(webkit)[\s/]([\w.]+)/.exec(e)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(e)||/(msie)[\s]([\w.]+)/.exec(e)||/(trident)\/([\w.]+)/.exec(e)||0>e.indexOf("compatible")||[];return"version"===t?s[2]:"webkit"===t?"chrome"===s[1]||"webkit"===s[1]:"ff"===t?"firefox"===s[1]:"msie"===t?"trident"===s[1]||"msie"===s[1]:s[1]===t}},76104(t,e,s){"use strict";s.d(e,{Z(){return i}});var r=s(25376);const i=(t,e)=>{const s=[],o=encodeURIComponent;for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const a=e?e+"["+n+"]":n,l=t[n];s.push((0,r.Q)(l)?i(l,a):o(a)+"="+o(l))}return s.join("&")}},60346(t,e,s){"use strict";s.d(e,{X(){return r}});const r=t=>("file:"===window.location.protocol&&/^\/\//.test(t)&&(t="https:"+t),t)},86248(t,e,s){"use strict";s.d(e,{V(){return h},t(){return u}});var r=s(37923),i=s(25376),o=s(98253),n=s(35642),a=s(49429),l=s(84976),c=s(36115);function u(t,e,s=0){if(Object.getPrototypeOf(t)!==Object.prototype)return t;const l=c.T.defaultOptions;if((0,o.K)(t.preset)){if(void 0!==l.presets[t.preset]){const e=l.presets[t.preset];Object.keys(e).forEach((s=>{(0,n.R)(t[s])&&(t[s]=e[s])}))}delete t.preset}const h={};return Object.keys(t).forEach((o=>{const n=t[o],l=e?e[o]:null;h[o]=(0,i.Q)(n)&&(0,i.Q)(l)&&!(0,a.mA)(n)?u(n,l,s+1):0!==s&&(0,r.c)(n)&&!(0,a.mA)(n)&&(0,r.c)(l)?[...n,...l.slice(n.length)]:n})),Object.setPrototypeOf(h,e),h}function h(t){return(0,l.HP)(t,!1).reduce(((e,s)=>(e[s]=t[s],e)),{})}},82807(t,e,s){"use strict";s.d(e,{m(){return o}});var r=s(6939),i=s(70807);const o=(t,e=400,s=345)=>{if(!(0,r.m)(t))return t;const o=document.createElement("a"),n=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;o.href=t,e||(e=400),s||(s=345);const a=o.protocol||"";switch(o.hostname){case"www.vimeo.com":case"vimeo.com":return n.test(t)?t.replace(n,'<iframe width="'+e+'" height="'+s+'" src="'+a+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):t;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":{const r=o.search?(0,i.m)(o.search):{v:o.pathname.substr(1)};return r.v?'<iframe width="'+e+'" height="'+s+'" src="'+a+"//www.youtube.com/embed/"+r.v+'" frameborder="0" allowfullscreen></iframe>':t}}return t}},38322(t,e,s){"use strict";s.d(e,{A(){return l},a(){return c}});var r=s(9810),i=s(25376),o=s(59678),n=s(83260),a=s(449);function l(t,e,s,c=!1){if((0,r.L)(s)&&(c=s,s=void 0),(0,i.Q)(e)||void 0!==s){const r=(t,e,s)=>{void 0===(s=(0,o.n8)(e,s))||null!=s&&l(t,e,!0)===(0,o.iy)(e,s)||(t.style[e]=s)};if((0,i.Q)(e)){const s=Object.keys(e);for(let i=0;s.length>i;i+=1)r(t,(0,n.x)(s[i]),e[s[i]])}else r(t,(0,n.x)(e),s);return""}const u=(0,a.k)(e),h=t.ownerDocument||document,d=!!h&&(h.defaultView||h.parentWindow),p=t.style[e];let f="";return void 0!==p&&""!==p?f=p:d&&!c&&(f=d.getComputedStyle(t).getPropertyValue(u)),o.b$.test(e)&&/^[-+]?[0-9.]+px$/.test(""+f)&&(f=parseInt(""+f,10)),(0,o.iy)(e,f)}const c=t=>{"block"===l(t,"display")&&l(t,"display","");const{style:e}=t;"auto"===e.marginLeft&&"auto"===e.marginRight&&(e.marginLeft="",e.marginRight="")}},34446(t,e,s){"use strict";s.d(e,{X(){return r}});const r=t=>{if("undefined"!=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}},72197(t,e,s){"use strict";s.d(e,{m(){return o}});var r=s(12041);const i=new WeakMap,o=(t,e,s)=>{let o=i.get(t);if(!o){o={},i.set(t,o);let e=null;(0,r.h)(t.j)&&(e=t.j.e),(0,r.h)(t)&&(e=t.e),e&&e.on("beforeDestruct",(()=>{i.delete(t)}))}return void 0===s?o[e]:(o[e]=s,s)}},17527(t,e,s){"use strict";s.d(e,{e(){return i}});var r=s(98253);const i=(t,e="en")=>"auto"!==t&&(0,r.K)(t)?t:document.documentElement&&document.documentElement.lang?document.documentElement.lang:navigator.language?navigator.language.substring(0,2):e},76166(t,e,s){"use strict";s.d(e,{FI(){return o},fF(){return n},h2(){return a},rV(){return l},z3(){return i}});var r=s(20222);function i(t){return new TypeError(t)}function o(t){return new r.Rc(t)}function n(t){return new r.ZW(t)}function a(t){return new r.lc(t)}function l(t){return t instanceof r.lc}},21567(t,e,s){"use strict";s.d(e,{l(){return r}});class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}}},30495(t,e,s){"use strict";s.d(e,{R(){return r}});class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}}},20222(t,e,s){"use strict";s.d(e,{Rc(){return i.R},ZW(){return o.Z},lc(){return r.l}});var r=s(21567),i=s(30495),o=s(34899)},34899(t,e,s){"use strict";s.d(e,{Z(){return r}});class r extends TypeError{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}}},50156(t,e,s){"use strict";s.d(e,{FI(){return r.FI},Rc(){return i.Rc},ZW(){return i.ZW},fF(){return r.fF},h2(){return r.h2},lc(){return i.lc},rV(){return r.rV},z3(){return r.z3}});var r=s(76166),i=s(20222)},49429(t,e,s){"use strict";s.d(e,{Hp(){return o},mA(){return i},y6(){return n}});var r=s(28616);function i(t){return t&&t.isAtom}function o(t){return Object.defineProperty(t,"isAtom",{enumerable:!1,value:!0,configurable:!1}),t}function n(t){return JSON.parse((0,r.A)(t))}},75766(t,e,s){"use strict";s.d(e,{M(){return i},u(){return o}});var r=s(69052);const i=new Map,o=t=>{if((0,r.T)(t.className))return t.className();const e=t.constructor?.originalConstructor||t.constructor;if(i.has(e))return i.get(e);if(e.name)return e.name;const s=RegExp(/^\s*function\s*(\S*)\s*\(/),o=(""+e).match(s);return o?o[1]:""}},16841(t,e,s){"use strict";s.d(e,{J(){return o}});var r=s(98253),i=s(35642);function o(t,e){if(!(0,r.K)(t)||!t.length)return null;const s=t.split(".");let o=e;try{for(const t of s){if((0,i.R)(o[t]))return null;o=o[t]}}catch{return null}return(0,i.R)(o)?null:o}},99898(t,e,s){"use strict";s.d(e,{z(){return r}});const r=t=>{if(/^[0-9.]+$/.test(""+t))return parseFloat(t);const e=t.substr(-2,2).toUpperCase(),s=["KB","MB","GB","TB"],r=parseFloat(t.substr(0,t.length-2));return-1!==s.indexOf(e)?r*Math.pow(1024,s.indexOf(e)+1):parseInt(t,10)}},97369(t,e,s){"use strict";s.r(e),s.d(e,{$$(){return j.$$},AbortError(){return b.lc},ConfigFlatten(){return d.V},ConfigProto(){return d.t},ConnectionError(){return b.Rc},LimitedStack(){return L.d},OptionsError(){return b.ZW},abort(){return b.h2},alignElement(){return r.Op},appendScriptAsync(){return i.w4},appendStyleAsync(){return i.S5},attr(){return l.C},browser(){return c.T},buildQuery(){return u.Z},call(){return A.T1},callPromise(){return A.o_},clearAlign(){return r.Xm},clearCenterAlign(){return f.a},cns(){return S.f},completeUrl(){return h.X},connection(){return b.FI},convertMediaUrlToVideoEmbed(){return p.m},css(){return f.A},cssPath(){return j.bE},ctrlKey(){return m.X},dataBind(){return g.m},defaultLanguage(){return v.e},error(){return b.z3},fastClone(){return y.y6},get(){return _.J},getClassName(){return w.u},getDataTransfer(){return A.my},getXPathByElement(){return j.fz},hAlignElement(){return r.Mr},humanSizeToBytes(){return C.z},inView(){return I.l},isAbort(){return b.rV},isAtom(){return y.mA},keepNames(){return w.M},keys(){return A.HP},loadImage(){return A.yt},loadNext(){return i.Qt},loadNextStyle(){return i.x_},markAsAtomic(){return y.Hp},markDeprecated(){return S.B},markOwner(){return A.b_},memorizeExec(){return A.qN},options(){return b.fF},parseQuery(){return E.m},previewBox(){return T.u},refs(){return j.DY},reset(){return x.c},resolveElement(){return j.tI},scrollIntoViewIfNeeded(){return I.$},set(){return k.h}});var r=s(40080),i=s(27301),o=s(28712),n={};for(var a in o)0>["default","alignElement","clearAlign","hAlignElement","appendScriptAsync","appendStyleAsync","loadNext","loadNextStyle"].indexOf(a)&&(n[a]=(t=>o[t]).bind(0,a));s.d(e,n);var l=s(26150),c=s(65717),u=s(76104),h=s(60346),d=s(86248),p=s(82807),f=s(38322),m=s(34446),g=s(72197),v=s(17527),b=s(50156),y=s(49429),_=s(16841),w=s(75766),C=s(99898),S=s(67400),E=s(70807),T=s(98434),x=s(44210),I=s(641),j=s(58720),k=s(40677),L=s(70069),A=s(84976)},67400(t,e,s){"use strict";s.d(e,{B(){return i},f(){return r}});const r=console;function i(t,e=[""],s=null){return(...i)=>(r.warn(`Method "${e[0]}" deprecated.`+(e[1]?` Use "${e[1]}" instead`:"")),t.call(s,...i))}},70807(t,e,s){"use strict";s.d(e,{m(){return r}});const r=t=>{const e={},s=t.substring(1).split("&");for(let t=0;s.length>t;t+=1){const r=s[t].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}return e}},98434(t,e,s){"use strict";s.d(e,{u(){return l}});var r=s(55186),i=s(98253),o=s(26150),n=s(38322),a=s(58720);function l(t,e,s="px",l=null){const c=[],u=((t,e)=>{const s=[];try{(0,a.$$)("img",t.editor).forEach((i=>{const n=[(0,o.C)(i,"width"),(0,o.C)(i,"height"),i.src];(0,o.C)(i,{width:i.offsetWidth+e,height:i.offsetHeight+e});const a=t.createInside.a();t.ed.body.appendChild(a),a.href=i.src,i.src=a.href,r.J.safeRemove(a),s.push((()=>{i.src=n[2]??"",(0,o.C)(i,{width:n[0]||null,height:n[1]||null})}))}))}catch(t){throw s.forEach((t=>t())),s.length=0,t}return s})(t,s);try{const a=t.e.fire("beforePreviewBox",e,s);if(null!=a)return a;let u=t.c.div("jodit__preview-box jodit-context");l&&l.appendChild(u),(0,n.A)(u,{position:"relative",padding:16});const 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){const e=t.create.element("iframe");(0,n.A)(e,{minWidth:800,minHeight:600,border:0}),u.appendChild(e);const s=e.contentWindow;if(s&&(t.e.fire("generateDocumentStructure.iframe",s.document,t),u=s.document.body,"function"==typeof ResizeObserver)){let r=!1;const i=s.document.body,o=new ResizeObserver(t.async.debounce((()=>{o.unobserve(i),e.style.height=i.offsetHeight+20+"px",t.async.requestAnimationFrame((()=>{!r&&o.observe(i)}))}),100)),n=()=>{r=!0,o.unobserve(i),o.disconnect(),t.e.off("beforeDestruct",n)};c.push(n),t.e.on("beforeDestruct",n)}}else(0,n.A)(u,{minWidth:1024,minHeight:600,border:0});const d=(e,s)=>{const n=(0,i.K)(s)?t.c.div():s;(0,i.K)(s)&&(n.innerHTML=s);for(let t=0;n.childNodes.length>t;t+=1){const s=n.childNodes[t];if(r.J.isElement(s)){const t=e.ownerDocument.createElement(s.nodeName);for(let e=0;s.attributes.length>e;e+=1)(0,o.C)(t,s.attributes[e].nodeName,s.attributes[e].nodeValue);0===s.childNodes.length||r.J.isTag(s,"table")?"SCRIPT"===s.nodeName?s.textContent&&(t.textContent=s.textContent):s.innerHTML&&(t.innerHTML=s.innerHTML):d(t,s);try{e.appendChild(t)}catch{}}else try{e.appendChild(s.cloneNode(!0))}catch{}}};return d(u,h),t.e.fire("afterPreviewBox",u),[u,()=>{c.forEach((t=>t()))}]}finally{u.forEach((t=>t()))}}},44210(t,e,s){"use strict";s.d(e,{c(){return a}});var r=s(17352),i=s(69052),o=s(16841);const n={};function a(t){if(!(t in n)){const e=document.createElement("iframe");try{if(e.src="about:blank",document.body.appendChild(e),!e.contentWindow)return null;const s=(0,o.J)(t,e.contentWindow),r=(0,o.J)(t.split(".").slice(0,-1).join("."),e.contentWindow);(0,i.T)(s)&&(n[t]=s.bind(r))}catch(t){if(!r.IS_PROD)throw t}finally{e.parentNode?.removeChild(e)}}return n[t]??null}},641(t,e,s){"use strict";s.d(e,{$(){return o},l(){return i}});var r=s(55186);function i(t,e,s){let r=t.getBoundingClientRect(),i=t;const o=r.top,n=r.height;for(;i&&i!==e&&i.parentNode;){if(i=i.parentNode,r=i.getBoundingClientRect(),o>r.bottom)return!1;if(r.top>=o+n)return!1}return(s.documentElement&&s.documentElement.clientHeight||0)>=o}function o(t,e,s){r.J.isHTMLElement(t)&&!i(t,e,s)&&(e.clientHeight!==e.scrollHeight&&(e.scrollTop=t.offsetTop),i(t,e,s)||t.scrollIntoView())}},58720(t,e,s){"use strict";s.d(e,{$$(){return u},DY(){return d},bE(){return p},fz(){return h},tI(){return f}});var r=s(17352),i=s(55186),o=s(42448),n=s(98253),a=s(83260),l=s(97369);let c=1;function u(t,e){let s;if(r.IS_ES_NEXT||!/:scope/.test(t)||!r.IS_IE||e&&e.nodeType===Node.DOCUMENT_NODE)s=e.querySelectorAll(t);else{const r=e.id,i=r||"_selector_id_"+(Math.random()+"").slice(2)+(c++,c);t=t.replace(/:scope/g,"#"+i),!r&&e.setAttribute("id",i),s=e.parentNode.querySelectorAll(t),r||e.removeAttribute("id")}return[].slice.call(s)}const h=(t,e)=>{if(!t||t.nodeType!==Node.ELEMENT_NODE)return"";if(!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";const s=[].filter.call(t.parentNode.childNodes,(e=>e.nodeName===t.nodeName));return h(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(s.length>1?"["+((0,o.$)(s).indexOf(t)+1)+"]":"")},d=t=>u("[ref],[data-ref]",t).reduce(((t,e)=>{const s=(0,l.attr)(e,"-ref");return s&&(0,n.K)(s)&&(t[(0,a.x)(s)]=e,t[s]=e),t}),{}),p=t=>{if(!i.J.isElement(t))return null;const e=[];let s=t;for(;s&&s.nodeType===Node.ELEMENT_NODE;){let t=s.nodeName.toLowerCase();if(s.id){t+="#"+s.id,e.unshift(t);break}{let e=s,r=1;do{e=e.previousElementSibling,e&&e.nodeName.toLowerCase()===t&&r++}while(e);t+=":nth-of-type("+r+")"}e.unshift(t),s=s.parentNode}return e.join(" > ")};function f(t,e){let s=t;if((0,n.K)(t))try{s=e.querySelector(t)}catch{throw(0,l.error)('String "'+t+'" should be valid HTML selector')}if(!s||"object"!=typeof s||!i.J.isElement(s)||!s.cloneNode)throw(0,l.error)('Element "'+t+'" should be string or HTMLElement instance');return s}},40677(t,e,s){"use strict";s.d(e,{h(){return a}});var r=s(37923),i=s(12461),o=s(25376),n=s(98253);function a(t,e,s){if(!(0,n.K)(t)||!t.length)return;const a=t.split(".");let l=s,c=a[0];for(let t=0;a.length-1>t;t+=1)c=a[t],(0,r.c)(l[c])||(0,o.Q)(l[c])||(l[c]=(0,i.k)(a[t+1])?[]:{}),l=l[c];l&&(l[a[a.length-1]]=e)}},70069(t,e,s){"use strict";s.d(e,{d(){return r}});class r{constructor(t){this.limit=t,this.stack=[]}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)}}},84976(t,e,s){"use strict";s.d(e,{HP(){return h},T1(){return a},b_(){return l},my(){return p},o_(){return c},qN(){return d},yt(){return u}});var r=s(92039),i=s(35642),o=s(26150),n=s(72197);function a(t,...e){return t(...e)}function l(t,e){(0,o.C)(e,"data-editor_id",t.id),!e.component&&Object.defineProperty(e,"jodit",{value:t})}function c(t,e){return(0,r.y)(t)?t.then((t=>t),(()=>null)).finally(e):e?.()}const u=(t,e)=>e.async.promise(((s,r)=>{const i=new Image,o=()=>{e.e.off(i),r?.()},n=()=>{e.e.off(i),s(i)};e.e.one(i,"load",n).one(i,"error",o).one(i,"abort",o),i.src=t,i.complete&&n()})),h=(t,e=!0)=>{if(e)return Object.keys(t);const s=[];for(const e in t)s.push(e);return s},d=(t,e,{control:s},r)=>{const o="button"+s.command;let a=(s.args&&s.args[0])??(0,n.m)(t,o);if((0,i.R)(a))return!1;(0,n.m)(t,o,a),r&&(a=r(a)),t.execCommand(s.command,!1,a??void 0)},p=t=>{if(t.clipboardData)return t.clipboardData;try{return t.dataTransfer||new DataTransfer}catch{return null}}},58269(t,e,s){"use strict";s.d(e,{T(){return a}});var r=s(17352),i=s(56298),o=s(9823),n=s(32291);function a(t,e,s,a,l,c){if((0,o.Gp)(a))try{a.init(t)}catch(t){if(!r.IS_PROD)throw t}l.set(e,a),c.delete(e),a.hasStyle&&(0,n.M)(t,e).catch((t=>{})),a.styles&&((0,i.My)(t,e,"style").innerHTML=a.styles)}},32291(t,e,s){"use strict";s.d(e,{M(){return l},o(){return u}});var r=s(17352),i=s(449),o=s(27301),n=s(96134);const a=new Set;async function l(t,e){const s=c(t,e,!1);if(!a.has(s))return a.add(s),(0,o.S5)(t,s)}function c(t,e,s){return e=(0,i.k)(e),t.basePath+"plugins/"+e+"/"+e+"."+(s?"js":"css")}function u(t,e,s,i){try{const r=s.filter((e=>!t.has((0,n.P)(e.name))));r.length&&((t,e,s)=>{e.map((e=>{const r=e.url||c(t,e.name,!0);return(0,o.w4)(t,r).then(s).catch((()=>null))}))})(e,r,i)}catch(t){if(!r.IS_PROD)throw t}}},58157(t,e,s){"use strict";s.d(e,{k(){return o}});var r=s(17352),i=s(69052);function o(t,e){try{try{return(0,i.T)(e)?new e(t):e}catch(s){if((0,i.T)(e)&&!e.prototype)return e(t)}}catch(t){if(!r.IS_PROD)throw t}return null}},96134(t,e,s){"use strict";s.d(e,{P(){return i}});var r=s(449);function i(t){return(0,r.k)(t).toLowerCase()}},71005(t,e,s){"use strict";s.d(e,{k(){return r.k}});var r=s(29866);s(77402)},77402(t,e,s){"use strict";s.d(e,{$(){return u}}),s(17352);var r=s(56298),i=s(32709),o=s(9823),n=s(58269),a=s(32291),l=s(58157),c=s(96134);class u{constructor(){this.__items=new Map}add(t,e){this.__items.set((0,c.P)(t),e),r.RR.fire(`plugin:${t}:ready`)}get(t){return this.__items.get((0,c.P)(t))}remove(t){this.__items.delete((0,c.P)(t))}__getFullPluginsList(t){const e=[];return this.__items.forEach(((s,r)=>{t&&!t.has(r)||e.push([r,s])})),e}__init(t){const{extraList:e,disableList:s,filter:r}=(t=>({extraList:t.o.extraPlugins.map((t=>(0,o.Kg)(t)?{name:t}:t)),disableList:new Set((0,i.uM)(t.o.disablePlugins).map(c.P)),filter:t.o.safeMode?new Set(t.o.safePluginsList):null}))(t),u=new Map,h={},d=new Set;t.__plugins=h;const p=()=>{if(t.isInDestruct)return;let e=!1;this.__getFullPluginsList(r).forEach((([r,i])=>{if(s.has(r)||u.has(r))return;const a=i?.requires;if(a&&(0,o.cy)(a)&&a.length){if(a.some((t=>s.has(t))))return;if(!a.every((t=>u.has(t))))return void d.add(r)}e=!0;const c=(0,l.k)(t,i);if(!c)return u.set(r,null),void d.delete(r);(0,n.T)(t,r,i,c,u,d),h[r]=c})),e&&(t.e.fire("updatePlugins"),p())};e&&e.length&&(0,a.o)(this.__items,t,e,p),p(),((t,e)=>{t.e.on("beforeDestruct",(()=>{Object.keys(e).forEach((s=>{const r=e[s];(0,o.pV)(r)&&r.destruct(t),delete e[s]})),delete t.__plugins}))})(t,h)}wait(t){return new Promise((e=>{if(this.get(t))return e();const s=()=>{e(),r.RR.off(`plugin:${t}:ready`,s)};r.RR.on(`plugin:${t}:ready`,s)}))}}},29866(t,e,s){"use strict";s.d(e,{k(){return a}});var r=s(31635),i=s(77753),o=s(22664),n=s(83044);class a extends i.vG{className(){return"Plugin"}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)}__afterPluginSystemInit(){const{j:t,buttons:e}=this;e&&(0,n.y)(t)&&e.forEach((e=>{t.registerButton(e)}))}__afterInit(){this.__inited=!0,this.setStatus(i.f.ready),this.afterInit(this.jodit)}init(t){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}__beforeDestruct(){if(this.isInDestruct)return;const{j:t}=this;if(t.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(i.f.beforeDestruct),!this.__inited)return super.destruct();(0,n.y)(t)&&this.buttons?.forEach((e=>{t?.unregisterButton(e)})),this.beforeDestruct(this.j),super.destruct()}}a.requires=[],(0,r.Cg)([o.autobind],a.prototype,"__afterPluginSystemInit",null),(0,r.Cg)([o.autobind],a.prototype,"__afterInit",null),(0,r.Cg)([o.autobind],a.prototype,"__beforeDestruct",null)},49853(t,e,s){"use strict";s.d(e,{d(){return u}});var r=s(31635),i=s(64890),o=s(26318),n=s(65147),a=s(50156),l=(s(27337),s(91672)),c=s(36115);class u{className(){return"Ajax"}constructor(t,e=c.T.prototype.defaultAjaxOptions){this.__async=new i.j,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=(0,n.ConfigProto)(t||{},e),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}__buildParams(t,e){return(0,n.isPlainObject)(t)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(t):(0,n.isFunction)(this.o.queryBuild)?this.o.queryBuild.call(this,t,e):(0,n.isString)(t)||t instanceof window.FormData||"object"==typeof t&&null!=t&&(0,n.isFunction)(t.append)?t:(0,n.buildQuery)(t)}get o(){return this.options}abort(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch{}return this}send(){this.__activated=!0;const{xhr:t,o:e}=this,s=this.prepareRequest();return this.__async.promise((async(r,i)=>{const o=()=>{this.__isFulfilled=!0,i(a.FI("Connection error"))},c=()=>{this.__isFulfilled=!0,r(new l.Y(s,t.status,t.statusText,t.responseType?t.response:t.responseText))};t.onload=c,t.onabort=()=>{this.__isFulfilled=!0,i(a.h2("Abort connection"))},t.onerror=o,t.ontimeout=o,e.responseType&&(t.responseType=e.responseType),t.onprogress=t=>{let e=0;t.lengthComputable&&(e=t.loaded/t.total*100),this.options.onProgress?.(e)},t.onreadystatechange=()=>{this.options.onProgress?.(10),t.readyState===XMLHttpRequest.DONE&&(e.successStatuses.includes(t.status)?c():t.statusText&&(this.__isFulfilled=!0,i(a.FI(t.statusText))))},t.withCredentials=e.withCredentials??!1;const{url:u,data:h,method:d}=s;t.open(d,u,!0),e.contentType&&t.setRequestHeader&&t.setRequestHeader("Content-type",e.contentType);let{headers:p}=e;(0,n.isFunction)(p)&&(p=await p.call(this)),p&&t.setRequestHeader&&Object.keys(p).forEach((e=>{t.setRequestHeader(e,p[e])})),this.__async.setTimeout((()=>{t.send(h?this.__buildParams(h):void 0)}),0)}))}prepareRequest(){if(!this.o.url)throw a.z3("Need URL for AJAX request");let t=this.o.url;const e=this.o.data,s=(this.o.method||"get").toLowerCase();if("get"===s&&e&&(0,n.isPlainObject)(e)){const s=t.indexOf("?");if(-1!==s){const r=(0,n.parseQuery)(t);t=t.substring(0,s)+"?"+(0,n.buildQuery)({...r,...e})}else t+="?"+(0,n.buildQuery)(this.o.data)}const r={url:t,method:s,data:e};return u.log.splice(100),u.log.push(r),r}destruct(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}u.log=[],(0,r.Cg)([o.Ay],u.prototype,"destruct",null)},27337(t,e,s){"use strict";s(36115).T.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:()=>new XMLHttpRequest}},53883(t,e,s){"use strict";s.d(e,{Y(){return i.Y},d(){return r.d}});var r=s(49853),i=s(91672)},91672(t,e,s){"use strict";s.d(e,{Y(){return r}});class r{get url(){return this.request.url}constructor(t,e,s,r){this.request=t,this.status=e,this.statusText=s,this.body=r}async json(){return JSON.parse(this.body)}text(){return Promise.resolve(this.body)}async blob(){return this.body}}},46602(t,e,s){"use strict";s.d(e,{W(){return r.W}});var r=s(5298);s(83541)},5298(t,e,s){"use strict";s.d(e,{W(){return o}});var r=s(17352),i=s(55186);function o(t,e,s){let o=i.J.findSibling(e,s),n=i.J.findSibling(e,!s);for(;i.J.isElement(o)&&!i.J.isTag(o,r.INSEPARABLE_TAGS)&&i.J.isContentEditable(o,t.editor)&&(!n||!i.J.closest(e,i.J.isElement,t.editor));)s||!o.firstChild?o.appendChild(e):i.J.before(o.firstChild,e),o=i.J.sibling(e,s),n=i.J.sibling(e,!s)}},83541(t,e,s){"use strict";s.d(e,{G(){return i}});var r=s(55186);function i(t,e,s){let i=t;for(;i&&i!==s;){if(r.J.findSibling(i,e))return;if(r.J.isBlock(i.parentElement))break;i=i.parentElement,i&&i!==s&&(e?r.J.before(i,t):r.J.after(i,t))}}},87332(t,e,s){"use strict";s.d(e,{Ag(){return i.Ag},DI(){return i.DI},LN(){return r.L},OJ(){return i.OJ},Zk(){return i.Zk},dj(){return i.dj},xk(){return i.xk}});var r=s(84602),i=s(8757)},84602(t,e,s){"use strict";s.d(e,{L(){return h}});var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(65147),l=s(9823),c=(s(28712),s(83541)),u=s(8757);class h{constructor(t){this.jodit=t,t.e.on("removeMarkers",(()=>{this.removeMarkers()}))}get j(){return this.jodit}errorNode(t){if(!n.J.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.Tn)(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}get range(){const t=this.sel;return t&&t.rangeCount?t.getRangeAt(0):this.createRange()}get isInsideArea(){const{sel:t}=this,e=t?.rangeCount?t.getRangeAt(0):null;return!(!e||!n.J.isOrContains(this.area,e.startContainer))}createRange(t=!1){const e=this.doc.createRange();return t&&this.selectRange(e),e}remove(){const t=this.sel,e=this.current();if(t&&e)for(let e=0;t.rangeCount>e;e+=1)t.getRangeAt(e).deleteContents(),t.getRangeAt(e).collapse(!0)}clear(){this.sel?.rangeCount&&this.sel?.removeAllRanges()}removeNode(t){if(!n.J.isOrContains(this.j.editor,t,!0))throw(0,a.error)("Selection.removeNode can remove only editor's children");n.J.safeRemove(t),this.j.e.fire("afterRemoveNode",t)}insertCursorAtPoint(t,e){this.removeMarkers();try{const s=this.createRange();return(()=>{if(this.doc.caretPositionFromPoint){const r=this.doc.caretPositionFromPoint(t,e);if(r)return void s.setStart(r.offsetNode,r.offset)}if(this.doc.caretRangeFromPoint){const r=this.doc.caretRangeFromPoint(t,e);s.setStart(r.startContainer,r.startOffset)}})(),s.collapse(!0),this.selectRange(s),!0}catch{}return!1}get hasMarkers(){return!!this.markers.length}get markers(){return(0,a.$$)("span[data-"+i.MARKER_CLASS+"]",this.area)}removeMarkers(){n.J.safeRemove.apply(null,this.markers)}marker(t=!1,e){let s=null;e&&(s=e.cloneRange(),s.collapse(t));const r=this.j.createInside.span();return r.id=i.MARKER_CLASS+"_"+Number(new Date)+"_"+(Math.random()+"").slice(2),r.style.lineHeight="0",r.style.display="none",n.J.markTemporary(r),(0,a.attr)(r,"data-"+i.MARKER_CLASS,t?"start":"end"),r.appendChild(this.j.createInside.text(i.INVISIBLE_SPACE)),s&&n.J.isOrContains(this.area,t?s.startContainer:s.endContainer)&&s.insertNode(r),r}restore(){let t=!1;const e=t=>`span[data-${i.MARKER_CLASS}=${t?"start":"end"}]`,s=this.area.querySelector(e(!0)),r=this.area.querySelector(e(!1));if(s){if(t=this.createRange(),r)t.setStartAfter(s),n.J.safeRemove(s),t.setEndBefore(r),n.J.safeRemove(r);else{const e=s.previousSibling;n.J.isText(e)?t.setStart(e,e.nodeValue?e.nodeValue.length:0):t.setStartBefore(s),n.J.safeRemove(s),t.collapse(!0)}t&&this.selectRange(t)}}fakes(){const t=this.sel;if(!t||!t.rangeCount)return[];const e=t.getRangeAt(0),s=e.cloneRange();s.collapse(!0);const r=this.j.createInside.fake();n.J.safeInsertNode(s,r),e.setStartBefore(r);const i=[r];if(!e.collapsed){const t=e.cloneRange();t.collapse(!1);const s=this.j.createInside.fake();n.J.safeInsertNode(t,s),e.setEndAfter(s),i.push(s)}return this.selectRange(e),i}restoreFakes(t){const e=t.filter((t=>t.isConnected));if(!e.length)return;const[s,r]=e,i=this.createRange();i.setStartAfter(s),r&&i.setEndBefore(r),this.selectRange(i),s.parentNode?.firstChild!==s.parentNode?.lastChild&&n.J.safeRemove(s),r?.parentNode?.firstChild!==r?.parentNode?.lastChild&&n.J.safeRemove(r)}save(t=!1){if(this.hasMarkers)return[];const e=this.sel;if(!e||!e.rangeCount)return[];const s=[],r=e.rangeCount,i=[];for(let t=0;r>t;t+=1)if(i[t]=e.getRangeAt(t),i[t].collapsed){const e=this.marker(!0,i[t]);s[t]={startId:e.id,collapsed:!0,startMarker:e.outerHTML}}else{const e=this.marker(!0,i[t]),r=this.marker(!1,i[t]);s[t]={startId:e.id,endId:r.id,collapsed:!1,startMarker:e.outerHTML,endMarker:r.outerHTML}}if(!t){e.removeAllRanges();for(let t=r-1;t>=0;--t){const r=this.doc.getElementById(s[t].startId);if(r){if(s[t].collapsed)i[t].setStartAfter(r),i[t].collapse(!0);else if(i[t].setStartBefore(r),s[t].endId){const e=this.doc.getElementById(s[t].endId);e&&i[t].setEndAfter(e)}try{e.addRange(i[t].cloneRange())}catch{}}}}return s}focus(t={preventScroll:!0}){if(!this.isFocused()){const e=(0,a.getScrollParent)(this.j.container),s=e?.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(t),this.win.focus(),this.area.focus(t),s&&e?.scrollTo&&e.scrollTo(0,s);const r=this.sel,i=r?.rangeCount?r?.getRangeAt(0):null;if(!i||!n.J.isOrContains(this.area,i.startContainer)){const t=this.createRange();t.setStart(this.area,0),t.collapse(!0),this.selectRange(t,!1)}return this.j.editorIsActive||this.j?.events?.fire("focus"),!0}return!1}isCollapsed(){const t=this.sel;for(let e=0;t&&t.rangeCount>e;e+=1)if(!t.getRangeAt(e).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()===i.MODE_WYSIWYG){const e=this.sel;if(!e||0===e.rangeCount)return null;const s=e.getRangeAt(0);let r=s.startContainer,i=!1;const o=t=>i?t.lastChild:t.firstChild;if(n.J.isTag(r,"br")&&e.isCollapsed)return r;if(!n.J.isText(r)){if(r=s.startContainer.childNodes[s.startOffset],r||(r=s.startContainer.childNodes[s.startOffset-1],i=!0),r&&e.isCollapsed&&!n.J.isText(r))if(!i&&n.J.isText(r.previousSibling))r=r.previousSibling;else if(t){let t=o(r);for(;t;){if(t&&n.J.isText(t)){r=t;break}t=o(t)}}if(r&&!e.isCollapsed&&!n.J.isText(r)){let t=r,e=r;do{t=t.firstChild,e=e.lastChild}while(t&&e&&!n.J.isText(t));t===e&&t&&n.J.isText(t)&&(r=t)}}if(r&&n.J.isOrContains(this.area,r))return r}return null}insertNode(t,e=!0,s=!0){this.errorNode(t);const r=n.J.isFragment(t)?t.lastChild:t;this.j.e.fire("safeHTML",t),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());const i=this.sel;this.j.history.snapshot.transaction((()=>{if(this.isCollapsed()||this.j.execCommand("Delete"),this.j.e.fire("beforeInsertNode",t),i&&i.rangeCount){const e=i.getRangeAt(0);n.J.isOrContains(this.area,e.commonAncestorContainer)?n.J.safeInsertNode(e,t):this.area.appendChild(t)}else this.area.appendChild(t);const s=t=>{if(n.J.isBlock(t)){const e=t.lastChild;if(e)return s(e)}this.setCursorAfter(t)};e&&(n.J.isFragment(t)?r&&s(r):s(t)),this.j.o.scrollToPastedContent&&(0,a.scrollIntoViewIfNeeded)(r??t,this.j.editor,this.doc)})),s&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",n.J.isFragment(t)?r:t)}insertHTML(t,e=!0){if(""===t)return;const s=this.j.createInside.div(),r=this.j.createInside.fragment();let i;if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),n.J.isNode(t)?s.appendChild(t):s.innerHTML=""+t,(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",s.innerHTML))&&(i=s.lastChild,i)){for(;s.firstChild;)i=s.firstChild,r.appendChild(s.firstChild);this.insertNode(r,e,!1),this.j.__imdSynchronizeValues()}}insertImage(t,e=null,s=null){const r=(0,l.Kg)(t)?this.j.createInside.element("img"):t;if((0,l.Kg)(t)&&r.setAttribute("src",t),null!=s){let t=""+s;t&&"auto"!==t&&0>(t+"").indexOf("px")&&0>(t+"").indexOf("%")&&(t+="px"),(0,a.call)(this.j.o.resizer.forImageChangeAttributes?a.attr:a.css,r,"width",t)}e&&"object"==typeof e&&(0,a.css)(r,e);const i=()=>{(r.offsetHeight>r.naturalHeight||r.offsetWidth>r.naturalWidth)&&(r.style.width="",r.style.height=""),r.removeEventListener("load",i)};this.j.e.on(r,"load",i),r.complete&&i(),this.insertNode(r),this.j.e.fire("afterInsertImage",r)}eachSelection(t){const e=this.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0);let r=s.commonAncestorContainer;n.J.isHTMLElement(r)||(r=r.parentElement);const o=[],c=s.startOffset,u=r.childNodes.length;let h=s.startContainer===this.area?r.childNodes[u>c?c:u-1]:s.startContainer,d=s.endContainer===this.area?r.childNodes[s.endOffset-1]:s.endContainer;n.J.isText(h)&&h===s.startContainer&&s.startOffset===h.nodeValue?.length&&h.nextSibling&&(h=h.nextSibling),n.J.isText(d)&&d===s.endContainer&&0===s.endOffset&&d.previousSibling&&(d=d.previousSibling);const p=t=>{!t||t===r||n.J.isEmptyTextNode(t)||(0,l.rg)(t)||o.push(t)};p(h),h!==d&&n.J.isOrContains(r,h,!0)&&n.J.find(h,(t=>(p(t),t===d||t&&t.contains&&t.contains(d))),r,!0,!1);const f=e=>{if(n.J.isOrContains(this.j.editor,e,!0)){if(e.nodeName.match(/^(UL|OL)$/))return(0,a.toArray)(e.childNodes).forEach(f);if(n.J.isTag(e,"li"))if(e.firstChild)e=e.firstChild;else{const t=this.j.createInside.text(i.INVISIBLE_SPACE);e.appendChild(t),e=t}t(e)}};0===o.length&&n.J.isEmptyTextNode(h)&&o.push(h),0===o.length&&h.firstChild&&o.push(h.firstChild),o.forEach(f)}}cursorInTheEdge(t,e,s=null){const r=!t,o=this.sel?.getRangeAt(0);if(s??=this.current(!1),!o||!s||!n.J.isOrContains(e,s,!0))return null;const l=t?o.startContainer:o.endContainer,c=t?o.startOffset:o.endOffset,u=t=>!(!t||n.J.isTag(t,"br")||n.J.isEmptyTextNode(t)||n.J.isTemporary(t)||n.J.isElement(t)&&!0===this.j.e.fire("isInvisibleForCursor",t));if(n.J.isText(l)){const e=l.nodeValue?.length?l.nodeValue:"";if(r&&e.replace((0,i.INVISIBLE_SPACE_REG_EXP_END)(),"").length>c)return!1;const s=(0,i.INVISIBLE_SPACE_REG_EXP_START)().exec(e);if(t&&(s&&c>s[0].length||!s&&c>0))return!1}else{const t=(0,a.toArray)(l.childNodes);if(r){if(t.slice(c).some(u))return!1}else if(t.slice(0,c).some(u))return!1}let h=s;for(;h&&h!==e;){const e=n.J.sibling(h,t);if(e){if(h=e,h&&u(h))return!1}else h=h.parentNode}return!0}cursorOnTheLeft(t,e){return this.cursorInTheEdge(!0,t,e)}cursorOnTheRight(t,e){return this.cursorInTheEdge(!1,t,e)}setCursorAfter(t){return this.setCursorNearWith(t,!1)}setCursorBefore(t){return this.setCursorNearWith(t,!0)}setCursorNearWith(t,e){if(this.errorNode(t),!n.J.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,a.error)("Node element must be in editor");const s=this.createRange();let r=null;return n.J.isText(t)?e?s.setStart(t,0):s.setEnd(t,t.nodeValue?.length??0):(r=this.j.createInside.fake(),e?s.setStartBefore(t):s.setEndAfter(t),s.collapse(e),n.J.safeInsertNode(s,r),s.selectNode(r)),s.collapse(e),this.selectRange(s),r}setCursorIn(t,e=!1){if(this.errorNode(t),!n.J.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,a.error)("Node element must be in editor");const s=this.createRange();let r=t,o=t;do{if(n.J.isText(r)||n.J.isTag(r,i.INSEPARABLE_TAGS))break;o=r,r=e?r.firstChild:r.lastChild}while(r);if(!r){const t=this.j.createInside.text(i.INVISIBLE_SPACE);n.J.isTag(o,i.INSEPARABLE_TAGS)?r=o:(o.appendChild(t),o=t)}const l=r||o;return n.J.isTag(l,i.INSEPARABLE_TAGS)?(e||n.J.isTag(l,"br")?s.setStartBefore(l):s.setEndAfter(l),s.collapse(e)):(s.selectNodeContents(l),s.collapse(e)),this.selectRange(s),o}selectRange(t,e=!0){const s=this.sel;return e&&!this.isFocused()&&this.focus(),s&&(s.removeAllRanges(),s.addRange(t)),this.j.e.fire("changeSelection"),this}select(t,e=!1){if(this.errorNode(t),!n.J.up(t,(t=>t===this.area||t&&t.parentNode===this.area),this.area))throw(0,a.error)("Node element must be in editor");const s=this.createRange();return s[e?"selectNodeContents":"selectNode"](t),this.selectRange(s)}get html(){const t=this.sel;if(t&&t.rangeCount>0){const e=t.getRangeAt(0).cloneContents(),s=this.j.createInside.div();return s.appendChild(e),s.innerHTML}return""}*wrapInTagGen(t){if(this.isCollapsed()){const e=this.jodit.createInside.element("font",i.INVISIBLE_SPACE);return this.insertNode(e,!1,!1),t&&t[0]&&e.appendChild(t[0]),yield e,void n.J.unwrap(e)}(0,a.$$)("*[style*=font-size]",this.area).forEach((t=>{(0,a.attr)(t,"data-font-size",""+t.style.fontSize),t.style.removeProperty("font-size")})),this.j.nativeExecCommand("fontsize",!1,"7"),(0,a.$$)("*[data-font-size]",this.area).forEach((t=>{const e=(0,a.attr)(t,"data-font-size");e&&(t.style.fontSize=e,(0,a.attr)(t,"data-font-size",null))}));const e=(0,a.$$)('font[size="7"]',this.area);for(const t of e){const{firstChild:e,lastChild:s}=t;e&&e===s&&(0,l.rg)(e)||(e&&(0,l.rg)(e)&&n.J.before(t,e),s&&(0,l.rg)(s)&&n.J.after(t,s),yield t),n.J.unwrap(t)}}wrapInTag(t){const e=[];for(const s of this.wrapInTagGen())try{if(s.firstChild&&s.firstChild===s.lastChild&&(0,l.rg)(s.firstChild))continue;(0,l.Tn)(t)?t(s):e.push(n.J.replace(s,t,this.j.createInside))}finally{const t=s.parentNode;t&&(n.J.unwrap(s),n.J.isEmpty(t)&&n.J.unwrap(t))}return e}commitStyle(t){new u.xk(t).apply(this.j)}splitSelection(t,e){if(!this.isCollapsed())return null;const s=this.createRange(),r=this.range;s.setStartBefore(t);const o=this.cursorOnTheRight(t,e),a=this.cursorOnTheLeft(t,e),l=this.j.createInside.element("br"),c=this.j.createInside.fake(),u=c.cloneNode();try{if(o||a){e?n.J.before(e,l):n.J.safeInsertNode(r,l);const t=(t,e)=>{let s=e(t);for(;s;){const t=e(s);if(!s||!n.J.isTag(s,"br")&&!n.J.isEmptyTextNode(s))break;n.J.safeRemove(s),s=t}};t(l,(t=>t.nextSibling)),t(l,(t=>t.previousSibling)),n.J.after(l,u),n.J.before(l,c),o?(s.setEndBefore(l),r.setEndBefore(l)):(s.setEndAfter(l),r.setEndAfter(l))}else s.setEnd(r.startContainer,r.startOffset);const h=s.extractContents(),d=t=>n.J.each(t,(t=>n.J.isEmptyTextNode(t)&&n.J.safeRemove(t)));try{if(d(h),d(t),t.parentNode.insertBefore(h,t),!e&&o&&l?.parentNode){const t=this.createRange();t.setStartBefore(l),this.selectRange(t)}}catch(t){if(!i.IS_PROD)throw t}const p=t=>{t?.parentNode?.firstChild===t?.parentNode?.lastChild&&t?.parentNode?.appendChild(l.cloneNode())};p(c),p(u)}finally{n.J.safeRemove(c),n.J.safeRemove(u)}return t.previousElementSibling}expandSelection(){if(this.isCollapsed())return this;const{range:t}=this,e=t.cloneRange();if(!n.J.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;const s=e=>{const s=this.j.createInside.fake(),r=t.cloneRange();return r.collapse(e),n.J.safeInsertNode(r,s),(0,c.G)(s,e,this.j.editor),s},r=s(!0),i=s(!1);e.setStartAfter(r),e.setEndBefore(i);const o=n.J.findSibling(r,!1),l=n.J.findSibling(i,!0);if(o!==l){const t=n.J.isElement(o)&&n.J.isOrContains(o,i),s=!t&&n.J.isElement(l)&&n.J.isOrContains(l,r);if(t||s){let s=t?o:l,a=s;for(;n.J.isElement(s);)s=t?s.firstElementChild:s.lastElementChild,s&&n.J.isOrContains(s,t?i:r)&&(a=s);t?e.setStart(a,0):e.setEnd(a,a.childNodes.length)}}if(this.selectRange(e),n.J.safeRemove(r,i),this.isCollapsed())throw(0,a.error)("Selection is collapsed");return this}}(0,r.Cg)([o.autobind],h.prototype,"createRange",null),(0,r.Cg)([o.autobind],h.prototype,"focus",null),(0,r.Cg)([o.autobind],h.prototype,"setCursorAfter",null),(0,r.Cg)([o.autobind],h.prototype,"setCursorBefore",null),(0,r.Cg)([o.autobind],h.prototype,"setCursorIn",null)},20384(t,e,s){"use strict";s.d(e,{y(){return a}});var r=s(55186),i=s(71274),o=s(59101),n=s(84976);function a(t,e,s){const r=s.s.createRange(),o=(0,i.r)(e.previousSibling)?e.previousSibling:e;r.setStartBefore(t),r.setEndBefore(o),l(t,r,!0);const n=(0,i.r)(e.nextSibling)?e.nextSibling:e;r.setStartAfter(n),r.setEndAfter(t),l(t,r,!1)}function l(t,e,s){const i=e.extractContents();i.textContent&&(0,o.Bq)(i.textContent).length||!i.firstChild||r.J.unwrap(i.firstChild),t.parentNode&&(0,n.T1)(s?r.J.before:r.J.after,t,i)}},10466(t,e,s){"use strict";s.d(e,{E(){return r}}),s(17352),s(28712);class r{setState(t){this.__previewsStates.add(t),this.__state=t}getState(){return this.__state}disableSilent(){this.silent=!1}constructor(t,e){this.transitions=e,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}dispatch(t,e){const s=this.transitions[this.getState()][t];if(s){const t=s.call(this,e);return this.setState(t.next),t}throw Error(`invalid action: ${this.getState()}.${""+t}`)}}},75220(t,e,s){"use strict";s.d(e,{G(){return n}});var r=s(55186),i=s(38046),o=s(95274);function n(t,e){let{firstChild:s}=e;for(;s&&!(0,i._)(s);)if(s=s.nextSibling,!s)return null;return s&&!r.J.next(s,i._,e)&&(0,o.sz)(t,s,!1)?s:null}},52052(t,e,s){"use strict";s.d(e,{A(){return n}});var r=s(55186),i=s(38046),o=s(95274);function n(t,e,s){const{parentNode:a}=e;return a===s||!r.J.isHTMLElement(a)||r.J.next(e,i._,a)||r.J.prev(e,i._,a)?null:t.isElementCommit&&t.elementIsBlock&&!r.J.isBlock(a)?n(t,a,s):!(0,o.sz)(t,a,!1)||r.J.isBlock(a)&&!t.elementIsBlock?t.isElementCommit&&!r.J.isBlock(a)?n(t,a,s):null:a}},70592(t,e,s){"use strict";s.d(e,{Y(){return l},g(){return a}});var r=s(55186),i=s(35642),o=s(59678),n=(s(28712),s(38322));function a(t,e){return!(r.J.isTag(t,"font")||!r.J.isHTMLElement(t)||!Object.keys(e).every((s=>{const r=(0,n.A)(t,s,!0);return""===r&&(""===e[s]||null==e[s])||!(0,i.R)(r)&&""!==r&&!(0,i.R)(e[s])&&(""+(0,o.iy)(s,e[s])).toLowerCase()===(""+r).toLowerCase()})))}function l(t,e){return!(r.J.isTag(t,"font")||!r.J.isHTMLElement(t)||!Object.keys(e).every((e=>""!==(0,n.A)(t,e,!0))))}document.createElement("div").style.color="red",document.createElement("div").style.color="red"},97621(t,e,s){"use strict";s.d(e,{$s(){return c.$s},AS(){return n.A},Dd(){return l.D},EF(){return i.E},G6(){return o.G},LV(){return p.L},M6(){return l.M},Yx(){return h.Y},iu(){return a.i},ks(){return u.k},tm(){return d.t},yP(){return r.y}});var r=s(20384),i=s(10466),o=s(75220),n=s(52052),a=(s(70592),s(78777)),l=(s(38046),s(13676)),c=s(95274),u=s(90325),h=(s(61001),s(38271)),d=s(86500),p=s(3101);s(80394)},78777(t,e,s){"use strict";s.d(e,{i(){return i}});var r=s(55186);function i(t,e){return!!r.J.closest(t,["style","script"],e)}},38046(t,e,s){"use strict";s.d(e,{_(){return o}});var r=s(55186),i=s(71274);function o(t){return!(!t||r.J.isEmptyTextNode(t)||r.J.isTemporary(t)||(0,i.r)(t))}},13676(t,e,s){"use strict";s.d(e,{D(){return a},M(){return n}});var r=s(95350),i=s(97369),o=(s(28712),s(70592));function n(t,e){return!t.attributes.length&&!(0,r.E)(e)||!(0,r.E)(e)||Object.keys(e).every((s=>"class"===s||"className"===s?t.classList.contains(e[s]):"style"===s?(0,o.g)(t,e[s]):(0,i.attr)(t,s)===e[s]))}function a(t,e){return t.attributes.length===e.attributes.length&&Array.from(t.attributes).every((t=>e.hasAttribute(t.name)&&e.getAttribute(t.name)===t.value))}},95274(t,e,s){"use strict";s.d(e,{$s(){return a},Wv(){return l},sz(){return n}});var r=s(55186),i=s(70592),o=s(38046);function n(t,e,s,n=!0){if(!e||!(0,o._)(e))return!1;const{element:a,elementIsDefault:l,options:c}=t;if(r.J.isList(e)&&t.elementIsList)return!0;const u=r.J.isTag(e,a);return!(!u||l&&s)||!(!c.attributes?.style||!(n?(0,i.g)(e,c.attributes.style):(0,i.Y)(e,c.attributes.style))||t.elementIsList)||!u&&!s&&l&&r.J.isInlineBlock(e)}function a(t,e,s){return r.J.closest(e,(e=>n(t,e,!0,!1)),s)}function l(t,e){const{element:s,options:r}=t;if(!e||!(0,o._)(e))return!1;const n=e.nodeName.toLowerCase()===s,a=!(!r.attributes?.style||!(0,i.Y)(e,r.attributes?.style));return n&&a}},90325(t,e,s){"use strict";s.d(e,{k(){return l}});var r=s(55186),i=(s(28712),s(20384)),o=s(38271),n=s(8757),a=s(61001);function l(t,e,s,r){if(!e)return r;const i=e.parentElement;if(!i)return r;const l=s.e.fire(n.ar+"BeforeToggleList",r,t,i);if(void 0!==l)return l;const u=s.e.fire.bind(s.e,n.ar+"AfterToggleList");if(r!==n.OJ){const l=(0,o.Y)(t,e.parentElement,s,n.DI,!0)===n.PL;if(r===n.dj||l||i.tagName.toLowerCase()!==t.element){const r=c(n.dj,i,e,s,t),o=(0,a.z)(t,r,s);return u(n.dj,o,t),n.dj}}const h=c(n.OJ,i,e,s,t);return u(n.OJ,h,t),n.OJ}function c(t,e,s,o,a){return o.e.fire(n.ar+"BeforeUnwrapList",t,e,a)||((0,i.y)(e,s,o),r.J.unwrap(s.parentElement),r.J.replace(s,o.o.enter,o.createInside))}},61001(t,e,s){"use strict";s.d(e,{z(){return n}});var r=s(71842),i=s(97621),o=s(8757);function n(t,e,s){const n=s.e.fire(o.ar+"BeforeWrapList",o.dj,e,t)??r.J.replace(e,"li",s.createInside),a=n.previousElementSibling,l=n.nextElementSibling;let c=r.J.isTag(a,t.element)?a:null;return c??=r.J.isTag(l,t.element)?l:null,r.J.isList(c)&&(0,i.M6)(c,t.options.attributes)||(c=s.createInside.element(t.element),(0,i.Yx)(t,c,s,o.DI),r.J.before(n,c)),a===c?r.J.append(c,n):r.J.prepend(c,n),r.J.isTag(c.nextElementSibling,t.element)&&(0,i.Dd)(c,c.nextElementSibling)&&(r.J.append(c,Array.from(c.nextElementSibling.childNodes)),r.J.safeRemove(c.nextElementSibling)),s.e.fire(o.ar+"AfterWrapList",o.Zk,c,t),c}},38271(t,e,s){"use strict";s.d(e,{Y(){return p}});var r=s(55186),i=s(56298),o=(s(9823),s(59678)),n=s(95350),a=s(449),l=s(97369),c=s(38322),u=s(72197),h=s(8757);const d="toggleAttributes";function p(t,e,s,p,m=!1){if(!m&&t.isApplied(e,d))return p;!m&&t.setApplied(e,d);const{attributes:g}=t.options;return g&&(0,n.E)(g)>0&&Object.keys(g).forEach((n=>{const d=g[n];switch(n){case"style":p=((t,e,s,n,l,d)=>(Object.keys(s).forEach((p=>{const m=n.style.getPropertyValue((0,a.k)(p)),g=s[p];if(""!==m||null!=g){if(((t,e,s)=>{const o=t.create.element(e.tagName.toLowerCase());o.style.cssText=e.style.cssText;const n=(t=>{if(void 0!==(0,u.m)(t,"shadowRoot"))return(0,u.m)(t,"shadowRoot");const e=(0,i.My)(t),s=document.createElement("iframe");(0,c.A)(s,{width:0,height:0,position:"absolute",border:0}),s.src="about:blank",e.appendChild(s);const r=s.contentWindow?.document,o=r?r.body:t.od.body;return(0,u.m)(t,"shadowRoot",o),o})(t);n.appendChild(o);const a=(0,c.A)(o,s);return r.J.safeRemove(o),a})(e,n,p)===(0,o.iy)(p,g)){if(!m)return;return!l&&(0,c.A)(n,p,null),void(d=f(t,n,d=h.Ag))}d=h.PL,l||((0,c.A)(n,p,g),d=f(t,n,d))}})),d))(t,s,d,e,m,p);break;case"className":case"class":p=((t,e,s,r,i)=>{const o=t.e.fire.bind(t.e,h.ar+"AfterToggleAttribute");return s.classList.contains(""+e)?(r=h.Ag,i||(s.classList.remove(e),0===s.classList.length&&((0,l.attr)(s,"class",null),o(r,s,"class",null)))):(r=h.PL,i||(s.classList.add(e),o(r,s,"class",e))),r})(s,d,e,p,m);break;default:p=((t,e,s,r,i,o)=>{const n=t.e.fire.bind(t.e,h.ar+"AfterToggleAttribute");return(0,l.attr)(s,r)===e?(!i&&(0,l.attr)(s,r,null),o=h.Ag,!i&&n(o,s,r,e),o):(o=h.PL,i||((0,l.attr)(s,r,e),n(o,s,r,e)),o)})(s,d,e,n,m,p)}})),p}function f(t,e,s){return(0,l.attr)(e,"style")||((0,l.attr)(e,"style",null),e.tagName.toLowerCase()===t.defaultTag&&(r.J.unwrap(e),s=h.OJ)),s}},86500(t,e,s){"use strict";s.d(e,{t(){return a}});var r=s(55186),i=s(97369),o=s(70592),n=s(95274);function a(t,e){const s=[],a=[];let l;const c=t.options.attributes?.style;if(e.firstChild){const u=r.J.eachGen(e);let h=u.next();for(;!h.done;){const e=h.value;!(0,n.sz)(t,e,!0)||c&&!(0,o.Y)(e,c)?c&&(0,n.Wv)(t,e)?(void 0===l&&(l=!1),a.push((()=>{(0,i.css)(e,Object.keys(c).reduce(((t,e)=>(t[e]=null,t)),{})),(0,i.attr)(e,"style")||(0,i.attr)(e,"style",null),(0,i.attr)(e,"style")||e.nodeName.toLowerCase()!==t.element||s.push(e)}))):r.J.isEmptyTextNode(e)||void 0===l&&(l=!1):(void 0===l&&(l=!0),s.push(e)),h=u.next()}}return a.forEach((t=>t())),s.forEach(r.J.unwrap),!!l}},80394(t,e,s){"use strict";s.d(e,{Y(){return o}});var r=s(55186),i=s(71274);function o(t,e,s){const o=s.editor,n=s.createInside,a=(t,e="previousSibling")=>{let n=t,a=t;for(;a&&!(0,i.r)(a)&&!r.J.isTag(a,s.o.enter)&&(n=a,a=a[e]?a[e]:a.parentNode&&!r.J.isBlock(a.parentNode)&&a.parentNode!==o?a.parentNode:null,!r.J.isBlock(a)););return n},l=a(e),c=a(e,"nextSibling"),u=s.s.createRange();u.setStartBefore(l),u.setEndAfter(c);const h=u.extractContents(),d=n.element(t.element);return d.appendChild(h),r.J.safeInsertNode(u,d),t.elementIsBlock&&r.J.isEmpty(d)&&!r.J.isTag(d.firstElementChild,"br")&&d.appendChild(n.element("br")),d}},3101(t,e,s){"use strict";s.d(e,{L(){return a}});var r=s(71842),i=s(26150),o=s(61001),n=s(80394);function a(t,e,s){const a=((t,e,s)=>t.elementIsBlock?r.J.up(e,(t=>r.J.isBlock(t)&&!r.J.isTag(t,l)),s.editor)||(0,n.Y)(t,e,s):((0,i.C)(e,"size",null),e))(t,e,s);return t.elementIsList?(0,o.z)(t,a,s):r.J.replace(a,t.element,s.createInside,!0)}const l=new Set(["td","th","tr","tbody","table","li","ul","ol"])},10494(t,e,s){"use strict";s.d(e,{O(){return n}});var r=s(97621),i=s(8757),o=s(37649);function n(t,e){const{s,editor:n}=t;n.firstChild?.normalize();const a=s.fakes(),l=t.s.wrapInTagGen(a);let c=l.next();if(c.done)return;let u={collapsed:s.isCollapsed(),mode:i.DI,element:c.value,next:o.x.START,jodit:t,style:e};for(;c&&!c.done;){const t=new r.EF(o.x.START,o.g);for(u.element=c.value;t.getState()!==o.x.END;)u=t.dispatch("exec",u);c=l.next()}s.restoreFakes(a)}},8757(t,e,s){"use strict";s.d(e,{Ag(){return c},DI(){return u},OJ(){return a},PL(){return l},Zk(){return n},ar(){return d},dj(){return h},xk(){return p}});var r=s(17352),i=s(83260),o=s(10494);const n="wrap",a="unwrap",l="change",c="unset",u="initial",h="replace",d="commitStyle";class p{isApplied(t,e){const s=this.__applyMap.get(t);return!!s&&s[e]}setApplied(t,e){const s=this.__applyMap.get(t)??{};s[e]=!0,this.__applyMap.set(t,s)}get elementIsList(){return!(!this.options.element||!r.LIST_TAGS.has(this.options.element))}get element(){return this.options.element||this.defaultTag}get elementIsBlock(){return!(!this.options.element||!r.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}constructor(t){this.options=t,this.__applyMap=new WeakMap}apply(t){const{hooks:e}=this.options;try{e&&Object.keys(e).forEach((s=>{t.e.on((0,i.x)(d+"_"+s),e[s])})),(0,o.O)(t,this)}finally{e&&Object.keys(e).forEach((s=>{t.e.off((0,i.x)(d+"_"+s),e[s])})),this.__applyMap=new WeakMap}t.synchronizeValues(),t.e.fire("afterCommitStyle",this)}}},37649(t,e,s){"use strict";s.d(e,{g(){return l},x(){return a}});var r=s(17352),i=s(55186),o=(s(28712),s(87332)),n=s(97621);const a={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"},l={[a.START]:{exec(t){const{element:e,jodit:s,style:r,mode:l,collapsed:c}=t;if((0,n.iu)(e,s.editor)||!c&&i.J.isEmptyContent(e))return{...t,next:a.END};const u=(0,n.AS)(r,e,s.editor)||(0,n.G6)(r,e);if(u)return{...t,next:a.ELEMENT,element:u};const h=(0,n.$s)(r,e,s.editor);return r.elementIsList&&i.J.isList(h)?{...t,next:a.LIST}:h?{...t,next:a.EXTRACT}:{...t,next:l!==o.OJ?a.UNWRAP_CHILDREN:a.END}}},[a.LIST]:{exec(t){const{element:e,jodit:s,mode:n}=t;if(n!==o.DI&&n!==o.OJ&&n!==o.dj)return{...t,next:a.END};const l=i.J.closest(e,"li",s.editor);return l&&i.J.closest(e,r.LIST_TAGS,s.editor)?{...t,element:l,next:a.TOGGLE_LIST}:{...t,next:a.END}}},[a.TOGGLE_LIST]:{exec:t=>({...t,mode:(0,n.ks)(t.style,t.element,t.jodit,t.mode),next:a.END})},[a.EXTRACT]:{exec(t){const{element:e,jodit:s,style:r}=t,i=(0,n.$s)(r,e,s.editor);return r.elementIsBlock||(0,n.yP)(i,e,s),{...t,element:i,next:a.ELEMENT}}},[a.UNWRAP_CHILDREN]:{exec(t){const{element:e,style:s}=t;return(0,n.tm)(s,e)?{...t,mode:o.OJ,next:a.END}:{...t,next:a.WRAP}}},[a.WRAP]:{exec(t){const{element:e,jodit:s,style:r}=t,i=(0,n.LV)(r,e,s);return{...t,next:r.elementIsList?a.END:a.CHANGE,mode:o.Zk,element:i}}},[a.ELEMENT]:{exec(t){const{style:e,element:s,jodit:r}=t;return(0,n.Yx)(e,s,r,o.DI,!0)!==o.DI?{...t,next:a.CHANGE}:i.J.isTag(s,e.element)?{...t,next:a.UNWRAP}:{...t,next:a.END}}},[a.CHANGE]:{exec(t){const{style:e,element:s,jodit:r,mode:l}=t,c=(0,n.Yx)(e,s,r,t.mode);return l!==o.Zk&&c===o.Ag&&!s.attributes.length&&i.J.isTag(s,e.element)?{...t,next:a.UNWRAP}:{...t,mode:c,next:a.END}}},[a.UNWRAP]:{exec:t=>t.element.attributes.length&&i.J.isTag(t.element,t.style.element)?{...t,next:a.REPLACE_DEFAULT}:(i.J.unwrap(t.element),{...t,mode:o.OJ,next:a.END})},[a.REPLACE_DEFAULT]:{exec:t=>(i.J.replace(t.element,t.style.defaultTag,t.jodit.createInside,!0),{...t,mode:o.dj,next:a.END})},[a.END]:{exec:t=>t}}},17800(t,e,s){"use strict";s.d(e,{I(){return r},O(){return i}});const r=(()=>{let t;return()=>(void 0===t&&(t=(()=>{const t="___Jodit___"+Math.random();try{localStorage.setItem(t,"1");const e="1"===localStorage.getItem(t);return localStorage.removeItem(t),e}catch{}return!1})()),t)})();class i{set(t,e){try{const s=localStorage.getItem(this.rootKey),r=s?JSON.parse(s):{};r[t]=e,localStorage.setItem(this.rootKey,JSON.stringify(r))}catch{}return this}delete(t){try{localStorage.removeItem(this.rootKey)}catch{}return this}get(t){try{const e=localStorage.getItem(this.rootKey),s=e?JSON.parse(e):{};return void 0!==s[t]?s[t]:null}catch{}}exists(t){return null!=this.get(t)}constructor(t){this.rootKey=t}clear(){try{localStorage.removeItem(this.rootKey)}catch{}return this}}},2788(t,e,s){"use strict";s.d(e,{M(){return r}});class r{constructor(){this.data=new Map}set(t,e){return this.data.set(t,e),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}}},63915(t,e,s){"use strict";s.d(e,{wc(){return r.w}}),s(17800);var r=s(24834)},24834(t,e,s){"use strict";s.d(e,{w(){return a}});var r=s(83260),i=s(17800),o=s(2788);const n="Jodit_";class a{set(t,e){return this.provider.set((0,r.x)(this.prefix+t),e),this}delete(t){return this.provider.delete((0,r.x)(this.prefix+t)),this}get(t){return this.provider.get((0,r.x)(this.prefix+t))}exists(t){return this.provider.exists((0,r.x)(this.prefix+t))}clear(){return this.provider.clear(),this}constructor(t,e){this.provider=t,this.prefix=n,e&&(this.prefix+=e)}static makeStorage(t=!1,e){let s;return t&&(0,i.I)()&&(s=new i.O(n+e)),s||(s=new o.M),new a(s,e)}}},58597(t,e,s){"use strict";s.d(e,{z(){return n}});var r=s(9823),i=s(84976),o=s(34256);class n{dlg(t){const e=new o.lG({language:this.o.language,shadowRoot:this.o.shadowRoot,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,theme:this.o.theme,globalFullSize:this.o.globalFullSize,...t});return(0,i.b_)(this,e.container),e.parent=this,e.bindDestruct(this)}confirm(t,e,s){return t=a(t,this),e=a(e,this),o.pT.call(this.dlg({closeOnClickOverlay:!0}),t,e,s)}prompt(t,e,s,r,i){return t=a(t,this),e=a(e,this),r=a(r,this),o.XG.call(this.dlg({closeOnClickOverlay:!0}),t,e,s,r,i)}alert(t,e,s,r){return t=a(t,this),e=a(e,this),o.Fc.call(this.dlg({closeOnClickOverlay:!0}),t,e,s,r)}}function a(t,e){return(0,r.Kg)(t)&&!(0,r.AH)(t)&&(t=e.i18n(t)),t}},87906(t,e,s){"use strict";s.d(e,{O(){return i}});var r=s(42448);class i{getElm(t){return this.container.querySelector("."+this.getFullElName(t))}getElms(t){return(0,r.$)(this.container.querySelectorAll("."+this.getFullElName(t)))}}},75758(t,e,s){"use strict";s.d(e,{K(){return i}});var r=s(35642);class i{afterSetMod(t,e){}setMod(t,e,s){t=t.toLowerCase();const i=this.mods[t];if(i===e)return this;const o=`${this.componentName}_${t}_`,n=(s||this.container).classList;return null!=i&&n.remove(`${o}${(""+i).toLowerCase()}`),!(0,r.R)(e)&&""!==e&&n.add(`${o}${(""+e).toLowerCase()}`),this.mods[t]=e,this.afterSetMod(t,e),this}getMod(t){return this.mods[t]??null}}},92032(t,e,s){"use strict";s.d(e,{$n(){return m},lD(){return f},ue(){return p}});var r=s(31635),i=s(64567),o=s(22664),n=s(55186),a=s(69052),l=s(98253),c=s(97369),u=s(29780),h=s(94070),d=s(931);const p=()=>({size:"middle",type:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0});let f=class t extends u.D{className(){return"UIButton"}setState(t){return Object.assign(this.state,t),this}get text(){return this.getElm("text")}get icon(){return this.getElm("icon")}onChangeSize(){this.setMod("size",this.state.size)}onChangeType(){(0,c.attr)(this.container,"type",this.state.type)}updateSize(){const t=this.closest(h.z);t&&(this.state.size=t.buttonSize)}onChangeStatus(){this.setMod("variant",this.state.variant)}onChangeText(){this.text.textContent=this.jodit.i18n(this.state.text)}onChangeTextSetMode(){this.setMod("text-icons",!!this.state.text.trim().length)}onChangeDisabled(){(0,c.attr)(this.container,"disabled",this.state.disabled||null)}onChangeActivated(){(0,c.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,c.attr)(this.container,"data-ref",this.state.name),(0,c.attr)(this.container,"ref",this.state.name)}onChangeTooltip(){this.get("j.o.useNativeTooltip")&&(0,c.attr)(this.container,"title",this.state.tooltip),(0,c.attr)(this.container,"aria-label",this.state.tooltip)}onChangeTabIndex(){(0,c.attr)(this.container,"tabindex",this.state.tabIndex)}onChangeIcon(){const t=this.get("j.o.textIcons");if(!0===t||(0,a.T)(t)&&t(this.state.name))return;n.J.detach(this.icon);const e=d.I.makeIcon(this.j,this.state.icon);e&&this.icon.appendChild(e)}focus(){this.container.focus()}isFocused(){const{activeElement:t}=this.od;return!(!t||!n.J.isOrContains(this.container,t))}createContainer(){const t=this.componentName,e=this.j.c.element("button",{class:t,type:"button",role:"button",ariaPressed:!1}),s=this.j.c.span(t+"__icon"),r=this.j.c.span(t+"__text");return e.appendChild(s),e.appendChild(r),e}constructor(t,e){super(t),this.isButton=!0,this.state=p(),this.actionHandlers=[],this.button=this.container,this.updateSize(),this.onChangeSize(),this.onChangeStatus(),e&&this.hookStatus(i.f.ready,(()=>{this.setState(e)}))}destruct(){return 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((e=>e.call(this,t)))}};function m(t,e,s,r){const i=new f(t);return i.state.tabIndex=t.o.allowTabNavigation?0:-1,(0,l.K)(e)?(i.state.icon.name=e,i.state.name=e,r&&(i.state.variant=r),s&&(i.state.text=s)):i.setState(e),i}(0,r.Cg)([o.cache],f.prototype,"text",null),(0,r.Cg)([o.cache],f.prototype,"icon",null),(0,r.Cg)([(0,o.watch)("state.size",{immediately:!1})],f.prototype,"onChangeSize",null),(0,r.Cg)([(0,o.watch)("state.type",{immediately:!1})],f.prototype,"onChangeType",null),(0,r.Cg)([(0,o.watch)("parentElement")],f.prototype,"updateSize",null),(0,r.Cg)([(0,o.watch)("state.variant",{immediately:!1})],f.prototype,"onChangeStatus",null),(0,r.Cg)([(0,o.watch)("state.text",{immediately:!1})],f.prototype,"onChangeText",null),(0,r.Cg)([(0,o.watch)("state.text",{immediately:!1})],f.prototype,"onChangeTextSetMode",null),(0,r.Cg)([(0,o.watch)("state.disabled")],f.prototype,"onChangeDisabled",null),(0,r.Cg)([(0,o.watch)("state.activated")],f.prototype,"onChangeActivated",null),(0,r.Cg)([(0,o.watch)("state.name",{immediately:!1})],f.prototype,"onChangeName",null),(0,r.Cg)([(0,o.watch)("state.tooltip",{immediately:!1})],f.prototype,"onChangeTooltip",null),(0,r.Cg)([(0,o.watch)("state.tabIndex",{immediately:!1})],f.prototype,"onChangeTabIndex",null),(0,r.Cg)([(0,o.watch)("state.icon",{immediately:!1})],f.prototype,"onChangeIcon",null),(0,r.Cg)([o.cacheHTML],f.prototype,"createContainer",null),(0,r.Cg)([(0,o.watch)("button:click")],f.prototype,"__onActionFire",null),f=(0,r.Cg)([o.component],f)},31202(t,e,s){"use strict";s.d(e,{s(){return a}});var r=s(31635),i=s(24767),o=(s(28712),s(92032)),n=s(6455);let a=class t extends n.U{className(){return"UIButtonGroup"}render(t){return`<div>\n\t\t\t<div class="&__label">~${t.label}~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>`}appendChildToContainer(t){this.getElm("options").appendChild(t)}constructor(t,e={radio:!0}){super(t,e.options?.map((e=>{const s=new o.lD(t,{text:e.text,value:e.value,variant:"primary"});return s.onAction((()=>{this.select(e.value)})),s})),e),this.options=e,this.select(e.value??0)}select(t){this.elements.forEach(((e,s)=>{s===t||e.state.value===t?e.state.activated=!0:this.options.radio&&(e.state.activated=!1)}));const e=this.elements.filter((t=>t.state.activated)).map((t=>({text:t.state.text,value:t.state.value})));this.jodit.e.fire(this,"select",e),this.options.onChange?.(e)}};a=(0,r.Cg)([i.s],a)},35265(t,e,s){"use strict";s.d(e,{$n(){return r.$n},SB(){return o.S},lD(){return r.lD},ss(){return i.s},ue(){return r.ue}});var r=s(92032),i=s(31202),o=s(36434)},36434(t,e,s){"use strict";s.d(e,{S(){return d}});var r,i=s(31635),o=s(77753),n=s(22664),a=s(71842),l=s(56298),c=s(27594),u=s(97369),h=s(29780);let d=r=class t extends h.D{className(){return"UITooltip"}render(){return'<div><div class="&__content"></div></div>'}constructor(t){super(t),this.__isOpened=!1,this.__listenClose=!1,this.__currentTarget=null,this.__delayShowTimeout=0,this.__hideTimeout=0,t.o.textIcons||!t.o.showTooltip||t.o.useNativeTooltip||t.hookStatus(o.f.ready,(()=>{(0,l.My)(t,r).appendChild(this.container),t.e.on(t.container,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0})}))}__addListenersOnClose(){if(this.__listenClose)return;this.__listenClose=!0;const t=this.j;t.e.on(t.ow,"scroll.tooltip",this.__hide).on(t.container,"mouseleave.tooltip",this.__hide).on(["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","closeAllPopups.tooltip"],this.__hide).on(t.container,"mouseleave",this.__onMouseLeave,{capture:!0})}__removeListenersOnClose(){if(!this.__listenClose)return;this.__listenClose=!1;const t=this.j;t.e.off(t.ow,"scroll.tooltip",this.__hide).off(["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","closeAllPopups.tooltip"],this.__hide).off(t.container,"mouseleave.tooltip",this.__onMouseLeave)}__onMouseLeave(t){this.__currentTarget===t.target&&(this.__hideDelay(),this.__currentTarget=null)}__onMouseEnter(t){if(!a.J.isHTMLElement(t.target))return;const e=(0,u.attr)(t.target,"aria-label");if(!e)return;if((0,u.attr)(t.target,"disabled"))return;if(!t.target.className.includes("jodit"))return;this.__currentTarget=t.target;const s=(0,c.G)(t.target);this.__addListenersOnClose(),this.__delayOpen((()=>({x:s.left+s.width/2,y:s.top+s.height})),e)}__delayOpen(t,e){const s=this.j.o.showTooltipDelay||this.j.defaultTimeout;this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout),this.__delayShowTimeout=this.j.async.setTimeout((()=>this.__open(t,e)),{timeout:s,label:"tooltip"})}__open(t,e){this.setMod("visible",!0),this.getElm("content").innerHTML=e,this.__isOpened=!0,this.__setPosition(t)}__setPosition(t){const e=t();(0,u.css)(this.container,{left:e.x,top:e.y})}__hide(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnClose(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),(0,u.css)(this.container,{left:-5e3}))}__hideDelay(){this.__isOpened&&(this.j.async.clearTimeout(this.__delayShowTimeout),this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}destruct(){this.j.e.off(this.j.container,"mouseenter",this.__onMouseEnter),this.__hide(),super.destruct()}};(0,i.Cg)([n.autobind],d.prototype,"__onMouseLeave",null),(0,i.Cg)([n.autobind],d.prototype,"__onMouseEnter",null),(0,i.Cg)([n.autobind],d.prototype,"__delayOpen",null),(0,i.Cg)([n.autobind],d.prototype,"__hide",null),(0,i.Cg)([n.autobind],d.prototype,"__hideDelay",null),d=r=(0,i.Cg)([n.component],d)},29780(t,e,s){"use strict";s.d(e,{D(){return d}});var r,i=s(31635),o=s(77753),n=s(1963),a=s(55186),l=s(98253),c=s(87906),u=s(75758),h=s(931);let d=r=class t extends o.vG{get parentElement(){return this.__parentElement}set parentElement(t){this.__parentElement=t,t&&t.hookStatus("beforeDestruct",(()=>this.destruct())),this.updateParentElement(this)}bubble(t){let e=this.parentElement;for(;e;)t(e),e=e.parentElement;return this}updateParentElement(t){return this.__parentElement?.updateParentElement(t),this}get(t,e){return super.get(t,e)||this.getElm(t)}closest(t){const e="object"==typeof t?e=>e===t:e=>o.uA.isInstanceOf(e,t);let s=this.__parentElement;for(;s;){if(e(s))return s;s=!s.parentElement&&s.container.parentElement?r.closestElement(s.container.parentElement,r):s.parentElement}return null}static closestElement(t,e){const s=a.J.up(t,(t=>{if(t){const{component:s}=t;return s&&o.uA.isInstanceOf(s,e)}return!1}));return s?s?.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){const e=this.render(t);if((0,l.K)(e)){const t=this.parseTemplate(e);return t.classList.add(this.componentName),t}return e}parseTemplate(t){return this.j.c.fromHTML(t.replace(/\*([^*]+?)\*/g,((t,e)=>h.I.get(e)||"")).replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,((t,e)=>this.i18n(e))))}constructor(t,e){super(t),this.name="",this.__parentElement=null,this.mods={},this.container=this.createContainer(e),Object.defineProperty(this.container,"component",{value:this,configurable:!0})}destruct(){return a.J.safeRemove(this.container),this.parentElement=null,super.destruct()}};d=r=(0,i.Cg)([(0,n.C)(u.K,c.O)],d)},68752(t,e,s){"use strict";s.d(e,{Y(){return a}});var r=s(31635),i=s(24767),o=s(97369),n=s(6455);let a=class t extends n.U{className(){return"UIBlock"}constructor(t,e,s={align:"left"}){super(t,e),this.options=s,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,o.attr)(this.container,"data-ref",s.ref),(0,o.attr)(this.container,"ref",s.ref)}};a=(0,r.Cg)([i.s],a)},28709(t,e,s){"use strict";s.d(e,{X(){return u}});var r=s(31635),i=s(37474),o=s(24767),n=s(97369),a=s(69198),l=s(1540),c=s(6455);let u=class t extends c.U{className(){return"UIForm"}submit(){this.j.e.fire(this.container,"submit")}validate(){const t=this.allChildren.filter((t=>i.u.isInstanceOf(t,a.t)));for(const e of t)if(!e.validate())return!1;const e=this.allChildren.filter((t=>i.u.isInstanceOf(t,l.$)));for(const t of e)if(!t.validate())return!1;return!0}onSubmit(t){return this.j.e.on(this.container,"submit",(()=>{const e=this.allChildren.filter((t=>i.u.isInstanceOf(t,a.t)));return!!this.validate()&&(t(e.reduce(((t,e)=>(t[e.state.name]=e.value,t)),{})),!1)})),this}createContainer(){const t=this.j.c.element("form");return t.classList.add(this.componentName),(0,n.attr)(t,"dir",this.j.o.direction||"auto"),t}constructor(...t){super(...t),this.options?.className&&this.container.classList.add(this.options?.className)}};u=(0,r.Cg)([o.s],u)},20703(t,e,s){"use strict";s.d(e,{$6(){return o.$6},F0(){return o.F0},XV(){return i.X},Yh(){return r.Y},cY(){return o.cY},nE(){return o.nE},tS(){return o.tS}});var r=s(68752),i=s(28709),o=s(47165)},5454(t,e,s){"use strict";s.d(e,{F(){return l}});var r,i=s(31635),o=s(22664),n=s(24767),a=s(69198);let l=r=class t extends a.t{className(){return"UITextArea"}createNativeInput(t){return this.j.create.element("textarea")}constructor(t,e){super(t,e),this.state={...r.defaultState},Object.assign(this.state,e),!1===this.state.resizable&&(this.nativeInput.style.resize="none")}onChangeStateSize(){const{size:t,resizable:e}=this.state;this.nativeInput.style.resize=e?"auto":"none",this.nativeInput.rows=t??5}};l.defaultState={...a.t.defaultState,size:5,resizable:!0},(0,i.Cg)([(0,o.watch)(["state.size","state.resizable"])],l.prototype,"onChangeStateSize",null),l=r=(0,i.Cg)([n.s],l)},3006(t,e,s){"use strict";s.d(e,{c(){return l}});var r,i=s(31635),o=s(22664),n=s(55186),a=s(69198);let l=r=class t extends a.t{className(){return"UICheckbox"}render(){return this.j.c.element("label",{className:this.componentName})}constructor(t,e){super(t,{...e,type:"checkbox"}),this.state={...r.defaultState},Object.assign(this.state,e)}onChangeChecked(){this.value=""+this.state.checked,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"))),n.J.after(this.nativeInput,t)):n.J.safeRemove(t)}};l.defaultState={...a.t.defaultState,checked:!1,switch:!1},(0,i.Cg)([(0,o.watch)("state.checked"),(0,o.hook)("ready")],l.prototype,"onChangeChecked",null),(0,i.Cg)([(0,o.watch)("nativeInput:change")],l.prototype,"onChangeNativeCheckBox",null),(0,i.Cg)([(0,o.watch)("state.switch"),(0,o.hook)("ready")],l.prototype,"onChangeSwitch",null),l=r=(0,i.Cg)([o.component],l)},47964(t,e,s){"use strict";s.d(e,{n(){return a}});var r=s(31635),i=s(24767),o=s(92032),n=s(69198);let a=class t extends n.t{className(){return"UIFileInput"}createContainer(t){this.button=new o.lD(this.j,{icon:{name:"plus"}});const{container:e}=this.button;this.nativeInput||(this.nativeInput=this.createNativeInput(t));const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),e.classList.add(this.componentName),e.appendChild(s),e}createNativeInput(t){return this.j.create.fromHTML(`<input\n\t\t\ttype="file"\n\t\t\taccept="${t.onlyImages?"image/*":"*"}"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>`)}constructor(t,e){super(t,{type:"file",...e}),this.state={...n.t.defaultState,type:"file",onlyImages:!0}}};a=(0,r.Cg)([i.s],a)},47165(t,e,s){"use strict";s.d(e,{$6(){return a.$},F0(){return r.F},cY(){return i.c},nE(){return o.n},tS(){return n.t}});var r=s(5454),i=s(3006),o=s(47964),n=s(69198),a=s(1540)},69198(t,e,s){"use strict";s.d(e,{t(){return d}});var r,i=s(31635),o=s(22664),n=s(55186),a=s(42448),l=s(97369),c=s(29780),u=s(84103),h=s(931);let d=r=class t extends c.D{className(){return"UIInput"}onChangeClear(){this.state.clearButton?n.J.after(this.nativeInput,this.clearButton):n.J.safeRemove(this.clearButton)}onChangeClassName(t,e){e&&this.container.classList.remove(e),this.state.className&&this.container.classList.add(this.state.className)}onChangeState(){this.name=this.state.name;const t=this.nativeInput,{name:e,icon:s,type:r,ref:i,required:o,placeholder:a,autocomplete:c,label:u}=this.state;(0,l.attr)(t,"name",e),(0,l.attr)(t,"type",r),(0,l.attr)(t,"data-ref",i||e),(0,l.attr)(t,"ref",i||e),(0,l.attr)(t,"required",o||null),(0,l.attr)(t,"autocomplete",c?null:"off"),(0,l.attr)(t,"placeholder",a?this.j.i18n(a):""),s&&h.I.exists(s)?(n.J.before(t,this.icon),this.icon.innerHTML=h.I.get(s)):n.J.safeRemove(this.icon),u?(n.J.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(u)):n.J.safeRemove(this.label),this.updateValidators()}updateValidators(){this.validators.clear(),this.state.required&&this.validators.add(u.O.required),this.state.validators?.forEach((t=>{const e=u.O[t];e&&this.validators.add(e)}))}set error(t){this.setMod("has-error",!!t),t?(this.__errorBox.innerText=this.j.i18n(t,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):n.J.safeRemove(this.__errorBox)}get value(){return this.nativeInput.value}set value(t){this.value!==t&&(this.nativeInput.value=t,this.onChangeValue())}onChangeStateValue(){const t=""+this.state.value;t!==this.value&&(this.value=t)}onChangeValue(){const{value:t}=this;this.state.value!==t&&(this.state.value=t,this.j.e.fire(this,"change",t),this.state.onChange?.(t))}validate(){return this.error="",(0,a.$)(this.validators).every((t=>t(this)))}createContainer(t){const e=super.createContainer();this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());const{nativeInput:s}=this;return s.classList.add(this.getFullElName("input")),this.wrapper.appendChild(s),e.appendChild(this.wrapper),(0,l.attr)(s,"dir",this.j.o.direction||"auto"),e}createNativeInput(t){return this.j.create.element("input")}constructor(t,e){super(t,e),this.label=this.j.c.span(this.getFullElName("label")),this.icon=this.j.c.span(this.getFullElName("icon")),this.clearButton=this.j.c.span(this.getFullElName("clear"),h.I.get("cancel")),this.state={...r.defaultState},this.__errorBox=this.j.c.span(this.getFullElName("error")),this.validators=new Set([]),void 0!==e?.value&&(e.value=""+e.value),Object.assign(this.state,e),void 0!==this.state.clearButton&&(this.j.e.on(this.clearButton,"click",(t=>{t.preventDefault(),this.nativeInput.value="",this.j.e.fire(this.nativeInput,"input"),this.focus()})).on(this.nativeInput,"input",(()=>{this.state.clearButton=!!this.value.length})),this.state.clearButton=!!this.value.length),this.j.e.on(this.nativeInput,"focus blur",(()=>{this.onChangeFocus()})).on(this.nativeInput,"input change",this.onChangeValue),this.onChangeState(),this.onChangeClassName(),this.onChangeStateValue()}focus(){this.nativeInput.focus()}get isFocused(){return this.nativeInput===this.j.od.activeElement}onChangeFocus(){this.setMod("focused",this.isFocused)}};d.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},(0,i.Cg)([(0,o.watch)("state.clearButton")],d.prototype,"onChangeClear",null),(0,i.Cg)([(0,o.watch)("state.className")],d.prototype,"onChangeClassName",null),(0,i.Cg)([(0,o.watch)(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),(0,o.debounce)()],d.prototype,"onChangeState",null),(0,i.Cg)([(0,o.watch)("state.value")],d.prototype,"onChangeStateValue",null),(0,i.Cg)([o.autobind],d.prototype,"onChangeValue",null),d=r=(0,i.Cg)([o.component],d)},1540(t,e,s){"use strict";s.d(e,{$(){return c}});var r,i=s(31635),o=s(24767),n=s(26150),a=s(69198),l=s(84103);let c=r=class t extends a.t{className(){return"UISelect"}createContainer(t){const e=super.createContainer(t),{j:s}=this,{nativeInput:r}=this,i=()=>s.create.element("option");if(void 0!==t.placeholder){const e=i();e.value="",e.text=s.i18n(t.placeholder),r.add(e)}return t.options?.forEach((t=>{const e=i();e.value=""+t.value,e.text=s.i18n(t.text),r.add(e)})),t.size&&t.size>0&&(0,n.C)(r,"size",t.size),t.multiple&&(0,n.C)(r,"multiple",""),e}createNativeInput(){return this.j.create.element("select")}updateValidators(){super.updateValidators(),this.state.required&&(this.validators.delete(l.O.required),this.validators.add(l.U.m))}constructor(t,e){super(t,e),this.state={...r.defaultState},Object.assign(this.state,e)}};c.defaultState={...a.t.defaultState,options:[],size:1,multiple:!1},c=r=(0,i.Cg)([o.s],c)},84103(t,e,s){"use strict";s.d(e,{O(){return r},U(){return i}});var r=s(51271),i=s(36795)},51271(t,e,s){"use strict";s.r(e),s.d(e,{required(){return o},url(){return n}});var r=s(6939),i=s(59101);const o=t=>!!(0,i.Bq)(t.value).length||(t.error="Please fill out this field",!1),n=t=>!!(0,r.m)((0,i.Bq)(t.value))||(t.error="Please enter a web address",!1)},36795(t,e,s){"use strict";s.d(e,{m(){return i}});var r=s(59101);const i=t=>!!(0,r.Bq)(t.value).length||(t.error="Please fill out this field",!1)},6455(t,e,s){"use strict";s.d(e,{U(){return u}});var r,i=s(31635),o=s(37474),n=s(22664),a=s(55186),l=s(65147),c=(s(28712),s(29780));let u=r=class t extends c.D{className(){return"UIGroup"}get allChildren(){const t=[],e=[...this.elements];for(;e.length;){const s=e.shift();(0,l.isArray)(s)?e.push(...s):o.u.isInstanceOf(s,r)?e.push(...s.elements):s&&t.push(s)}return t}update(){this.elements.forEach((t=>t.update())),this.setMod("size",this.buttonSize)}append(t,e){return(0,l.isArray)(t)?(t.forEach((t=>this.append(t,e))),this):(this.elements.push(t),t.name&&t.container.classList.add(this.getFullElName(t.name)),e?this.getElm(e).appendChild(t.container):this.appendChildToContainer(t.container),t.parentElement=this,this)}afterSetMod(t,e){this.syncMod&&this.elements.forEach((s=>s.setMod(t,e)))}appendChildToContainer(t){this.container.appendChild(t)}remove(t){const e=this.elements.indexOf(t);return-1!==e&&(this.elements.splice(e,1),a.J.safeRemove(t.container),t.parentElement=null),this}clear(){return this.elements.forEach((t=>t.destruct())),this.elements.length=0,this}constructor(t,e,s){super(t,s),this.options=s,this.syncMod=!1,this.elements=[],this.buttonSize="middle",e?.forEach((t=>t&&this.append(t))),s?.name&&(this.name=s.name)}destruct(){return this.clear(),super.destruct()}};(0,i.Cg)([(0,n.watch)("buttonSize")],u.prototype,"update",null),u=r=(0,i.Cg)([n.component],u)},29012(t,e,s){"use strict";s.d(e,{CP(){return o.C},Ue(){return r.U},bk(){return n.b},z4(){return i.z}});var r=s(6455),i=s(94070),o=s(86283),n=s(13642)},94070(t,e,s){"use strict";s.d(e,{z(){return f}});var r=s(31635),i=s(37474),o=s(22664),n=s(42589),a=s(92032),l=s(6455),c=s(86283),u=s(13642),h=s(39611),d=s(57023),p=s(37424);let f=class t extends l.U{className(){return"UIList"}__onChangeMode(){this.setMod("mode",this.mode)}constructor(t){super(t),this.mode="horizontal",this.removeButtons=[]}makeGroup(){return new l.U(this.jodit)}get buttons(){return this.allChildren.filter((t=>i.u.isInstanceOf(t,a.lD)))}getButtonsNames(){return this.buttons.map((t=>t instanceof a.lD&&t.state.name||"")).filter((t=>""!==t))}setRemoveButtons(t){return this.removeButtons=t||[],this}build(t,e=null){t=(0,n.u)(t),this.clear();let s,r=!1,i=this.makeGroup();this.append(i),i.setMod("line",!0);const o=t=>{let o=null;switch(t.name){case"\n":i=this.makeGroup(),i.setMod("line",!0),s=this.makeGroup(),i.append(s),this.append(i);break;case"|":r||(r=!0,o=new c.C(this.j));break;case"---":{s.setMod("before-spacer",!0);const t=new u.b(this.j);i.append(t),s=this.makeGroup(),i.append(s),r=!1;break}default:r=!1,o="select"===t.component?this.makeSelect(t,e):this.makeButton(t,e)}o&&(s||(s=this.makeGroup(),i.append(s)),s.append(o))},a=t=>!this.removeButtons.includes(t.name);return t.forEach((t=>{if((0,h.i)(t)){const e=t.buttons.filter((t=>t));e.length&&(s=this.makeGroup(),s.setMod("separated",!0).setMod("group",t.group),i.append(s),(0,p.Q)(e,this.j.o.controls).filter(a).forEach(o))}else{s||(s=this.makeGroup(),i.append(s));const e=(0,d.U)(t,this.j.o.controls);a(e)&&o(e)}})),this.update(),this}makeSelect(t,e){throw Error("Not implemented behaviour")}makeButton(t,e){return new a.lD(this.j,{name:t.name})}};(0,r.Cg)([(0,o.watch)("mode"),(0,o.hook)("ready")],f.prototype,"__onChangeMode",null),f=(0,r.Cg)([o.component],f)},86283(t,e,s){"use strict";s.d(e,{C(){return n}});var r=s(31635),i=s(24767),o=s(29780);let n=class t extends o.D{className(){return"UISeparator"}};n=(0,r.Cg)([i.s],n)},13642(t,e,s){"use strict";s.d(e,{b(){return n}});var r=s(31635),i=s(24767),o=s(29780);let n=class t extends o.D{className(){return"UISpacer"}};n=(0,r.Cg)([i.s],n)},39611(t,e,s){"use strict";s.d(e,{V(){return o},i(){return i}});var r=s(37923);const i=t=>(0,r.c)(t.buttons);function o(t,e){const s=e.getRegisteredButtonGroups();return new Set(t.reduce(((t,e)=>(i(e)?t=t.concat([...e.buttons,...s[e.group]??[]]):t.push(e),t)),[]))}},57023(t,e,s){"use strict";s.d(e,{U(){return o},x(){return n}});var r=s(65147),i=s(36115);function o(t,e){let s;return e||(e=i.T.defaultOptions.controls),(0,r.isString)(t)?s=n(t,e)||{name:t,command:t,tooltip:t}:(s={name:"empty",...(0,r.ConfigFlatten)(t)},void 0!==e[s.name]&&(s={...(0,r.ConfigFlatten)(e[s.name]),...(0,r.ConfigFlatten)(s)})),s}function n(t,e){let[s,i]=t.split(/\./),o=e;null!=i?void 0!==e[s]&&(o=e[s]):i=s;const n=o[i]?.list;return o[i]?{name:i,...(0,r.ConfigFlatten)(o[i]),list:(0,r.isArray)(n)?n.reduce(((t,e)=>(t[e]=e,t)),{}):n}:void 0}},37424(t,e,s){"use strict";s.d(e,{Q(){return a}});var r=s(37923),i=s(97369),o=s(57023),n=s(36115);function a(t,e){return((0,r.c)(t)?t:(0,i.keys)(t,!1).map((e=>(0,i.ConfigProto)({name:e},t[e]||{})))).map((t=>(0,o.U)(t,e||n.T.defaultOptions.controls)))}},931(t,e,s){"use strict";s.d(e,{I(){return o}}),s(17352);var r=s(65147),i=s(38322);class o{static getIcon(t){return/<svg/i.test(t)?t:o.icons[t]||o.icons[t.replace(/-/g,"_")]||o.icons[t.replace(/_/g,"-")]||o.icons[(0,r.camelCase)(t)]||o.icons[(0,r.kebabCase)(t)]||o.icons[t.toLowerCase()]}static exists(t){return void 0!==this.getIcon(t)}static get(t,e="<span></span>"){return this.getIcon(t)||e}static set(t,e){return this.icons[t.replace("_","-")]=e,this}static makeIcon(t,e){if(!e)return;let s;const{name:r,iconURL:n,fill:a}=e,l=r.replace(/[^a-zA-Z0-9]/g,"_");let c;/<svg/.test(r)||(c=t.o.getIcon?.(r,l));const u=`${r}${n}${a}${c??""}`;if(t.o.cache&&this.__cache.has(u))return this.__cache.get(u)?.cloneNode(!0);if(n)s=t.c.span(),(0,i.A)(s,"backgroundImage","url("+n.replace("{basePath}",t?.basePath||"")+")");else{const e=c||o.get(r,"")||t.o.extraIcons?.[r];e&&(s=t.c.fromHTML(e.trim()),/^<svg/i.test(r)||s.classList.add("jodit-icon_"+l))}return s&&(s.classList.add("jodit-icon"),s.style.fill=a,t.o.cache&&this.__cache.set(u,s.cloneNode(!0))),s}}o.icons={},o.__cache=new Map},53048(t,e,s){"use strict";s.d(e,{$6(){return o.$6},$n(){return r.$n},CP(){return n.CP},D$(){return i.D},F0(){return o.F0},In(){return a.I},SB(){return r.SB},Ue(){return n.Ue},XV(){return o.XV},Yh(){return o.Yh},bk(){return n.bk},cY(){return o.cY},lD(){return r.lD},nE(){return o.nE},ss(){return r.ss},tS(){return o.tS},ue(){return r.ue},z2(){return c.z},z4(){return n.z4},zD(){return l.z}});var r=s(35265),i=s(29780),o=s(20703),n=s(29012),a=s(931),l=s(96369),c=s(92227)},96369(t,e,s){"use strict";s.d(e,{z(){return r.z}});var r=s(80071)},80071(t,e,s){"use strict";s.d(e,{z(){return d}});var r=s(31635),i=s(37474),o=s(22664),n=s(55186),a=s(56298),l=s(65147),c=(s(28712),s(29780)),u=s(6455);const h=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"];class d extends u.U{className(){return"Popup"}appendChildToContainer(t){this.getElm("content").appendChild(t)}updateParentElement(t){return t!==this&&i.u.isInstanceOf(t,d)&&(this.__childrenPopups.forEach((e=>{!t.closest(e)&&e.isOpened&&e.close()})),this.__childrenPopups.has(t)||this.j.e.on(t,"beforeClose",(()=>{this.__childrenPopups.delete(t)})),this.__childrenPopups.add(t)),super.updateParentElement(t)}setContent(t){if(this.allChildren.length)throw Error("Remove children");if(i.u.isInstanceOf(t,c.D))this.append(t);else{const e=(0,l.isString)(t)?this.j.c.fromHTML(t):t;this.appendChildToContainer(e)}return this.updatePosition(),this}open(t,e=!1,s){if((0,l.markOwner)(this.jodit,this.container),this.container.classList.add("jodit_theme_"+this.jodit.o.theme),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=e?this.getKeepBound(t):t,s)s.appendChild(this.container);else{const t=(0,a.My)(this.jodit,d);s!==this.container.parentElement&&t.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}__calculateZIndex(){if(this.container.style.zIndex)return;const t=t=>{const e=t.container.style.zIndex||t.o.zIndex;return!!e&&(this.setZIndex(1+parseInt(""+e,10)),!0)},{j:e}=this;if(t(e))return;let s=this.parentElement;for(;s;){if(t(e))return;if(s.container.style.zIndex)return void this.setZIndex(1+parseInt(""+s.container.style.zIndex,10));if(!s.parentElement&&s.container.parentElement){const t=c.D.closestElement(s.container.parentElement,c.D);if(t){s=t;continue}}s=s.parentElement}}getKeepBound(t){const e=t(),s=this.od.elementFromPoint(e.left,e.top);if(!s)return t;const r=n.J.isHTMLElement(s)?s:s.parentElement,i=(0,l.position)(r,this.j);return()=>{const e=t(),s=(0,l.position)(r,this.j);return{...e,top:e.top+(s.top-i.top),left:e.left+(s.left-i.left)}}}updatePosition(){if(!this.isOpened)return this;const[t,e]=this.__calculatePosition(this.__targetBound(),this.viewBound(),(0,l.position)(this.container,this.j));return this.setMod("strategy",e),(0,l.css)(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach((t=>t.updatePosition())),this}__throttleUpdatePosition(){this.updatePosition()}__calculatePosition(t,e,s,r=this.strategy){const i={left:t.left,right:t.left-(s.width-t.width)},o={bottom:t.top+t.height,top:t.top-s.height},n=Object.keys(i).reduce(((t,e)=>t.concat(Object.keys(o).map((t=>`${e}${(0,l.ucfirst)(t)}`)))),[]),a=t=>{const[e,r]=(0,l.kebabCase)(t).split("-");return{left:i[e],top:o[r],width:s.width,height:s.height}},c=t=>{let e=null;return e=d.boxInView(a(r),t)?r:n.find((e=>{if(d.boxInView(a(e),t))return e}))||null,e};let u=c((0,l.position)(this.j.container,this.j));return u&&d.boxInView(a(u),e)||(u=c(e)||u||r),[a(u),u]}static boxInView(t,e){return!(-2>t.top-e.top||-2>t.left-e.left||-2>e.top+e.height-(t.top+t.height)||-2>e.left+e.width-(t.left+t.width))}close(){return this.isOpened?(this.isOpened=!1,this.__childrenPopups.forEach((t=>t.close())),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),n.J.safeRemove(this.container),this):this}__closeOnOutsideClick(t){this.isOpened&&!this.isOwnClick(t)&&this.close()}isOwnClick(t){if(!t.target)return!1;const e=c.D.closestElement(t.target,d);return!(!e||this!==e&&!e.closest(this))}__addGlobalListeners(){const t=this.__throttleUpdatePosition,e=this.ow;a.RR.on("closeAllPopups",this.close),this.smart&&this.j.e.on(h,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(e,"scroll",t).on(e,"resize",t),n.J.up(this.j.container,(e=>{e&&this.j.e.on(e,"scroll mousewheel",t)}))}__removeGlobalListeners(){const t=this.__throttleUpdatePosition,e=this.ow;a.RR.off("closeAllPopups",this.close),this.smart&&this.j.e.off(h,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(e,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(e,"scroll",t).off(e,"resize",t),this.j.container.isConnected&&n.J.up(this.j.container,(e=>{e&&this.j.e.off(e,"scroll mousewheel",t)}))}setZIndex(t){this.container.style.zIndex=""+t}constructor(t,e=!0){super(t),this.smart=e,this.isOpened=!1,this.strategy="leftBottom",this.viewBound=()=>({left:0,top:0,width:this.ow.innerWidth,height:this.ow.innerHeight}),this.__childrenPopups=new Set,(0,l.attr)(this.container,"role","popup")}render(){return'<div>\n\t\t\t<div class="&__content"></div>\n\t\t</div>'}destruct(){return this.close(),super.destruct()}}(0,r.Cg)([o.autobind],d.prototype,"updatePosition",null),(0,r.Cg)([(0,o.throttle)(10),o.autobind],d.prototype,"__throttleUpdatePosition",null),(0,r.Cg)([o.autobind],d.prototype,"close",null),(0,r.Cg)([o.autobind],d.prototype,"__closeOnOutsideClick",null)},92227(t,e,s){"use strict";s.d(e,{z(){return o}});var r=s(55186),i=s(29780);class o extends i.D{className(){return"ProgressBar"}render(){return"<div><div></div></div>"}show(){return(this.j.workplace||this.j.container).appendChild(this.container),this}hide(){return r.J.safeRemove(this.container),this}progress(t){return this.container.style.width=t.toFixed(2)+"%",this}destruct(){return this.hide(),super.destruct()}}},14961(t,e,s){"use strict";s.d(e,{T(){return f}});var r=s(31635),i=s(64567),o=s(26318),n=s(66927),a=s(55186),l=s(32709),c=s(98253),u=s(58720),h=s(39611),d=s(77782),p=s(8809);class f extends d.S{get toolbarContainer(){return this.o.fullsize||!(0,c.K)(this.o.toolbar)&&!a.J.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&a.J.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer):(0,u.tI)(this.o.toolbar,this.o.shadowRoot||this.od)}setPanel(t){this.o.toolbar=t,this.buildToolbar()}buildToolbar(){if(!this.o.toolbar)return;const t=this.o.buttons?(0,l.uM)(this.o.buttons):[];this.toolbar?.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}getRegisteredButtonGroups(){return this.groupToButtons}registerButton(t){this.registeredButtons.add(t);const e=t.group??"other";return this.groupToButtons[e]||(this.groupToButtons[e]=[]),null!=t.position?this.groupToButtons[e][t.position]=t.name:this.groupToButtons[e].push(t.name),this}unregisterButton(t){this.registeredButtons.delete(t);const e=t.group??"other",s=this.groupToButtons[e];if(s){const r=s.indexOf(t.name);-1!==r&&s.splice(r,1),0===s.length&&delete this.groupToButtons[e]}return this}beforeToolbarBuild(t){if(Object.keys(this.groupToButtons).length)return t.map((t=>(0,h.i)(t)&&t.group&&this.groupToButtons[t.group]?{group:t.group,buttons:[...t.buttons,...this.groupToButtons[t.group]]}:t))}constructor(t,e=!1){super(t,e),this.toolbar=(0,p.$K)(this),this.__defaultToolbarContainer=this.c.div("jodit-toolbar__box"),this.registeredButtons=new Set,this.groupToButtons={},this.isJodit=!1,this.isJodit=e,this.e.on("beforeToolbarBuild",this.beforeToolbarBuild)}destruct(){this.isDestructed||(this.setStatus(i.f.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.toolbar.destruct(),this.toolbar=void 0,super.destruct())}}(0,r.Cg)([(0,n.wB)(":rebuildToolbar")],f.prototype,"buildToolbar",null),(0,r.Cg)([o.Ay],f.prototype,"beforeToolbarBuild",null)},77782(t,e,s){"use strict";s.d(e,{S(){return C}});var r,i=s(31635),o=s(77753),n=s(37474),a=s(64567),l=s(17352),c=s(92852),u=s(87875),h=s(1963),d=s(71151),p=s(71842),f=s(50025),m=s(56298),g=s(65147),v=s(24834),b=s(87906),y=s(75758),_=s(92227),w=s(91902);let C=r=class t extends n.u{get basePath(){return this.o.basePath?this.o.basePath:l.BASE_PATH}get defaultTimeout(){return(0,g.isVoid)(this.o.defaultTimeout)?100:this.o.defaultTimeout}get buffer(){return v.w.makeStorage()}get message(){return this.getMessageModule(this.container)}getMessageModule(t){return new w.N(this,t)}get storage(){return v.w.makeStorage(!0,this.id)}get c(){return this.create}get container(){return this.__container}set container(t){this.__container=t}get e(){return this.events}get progressbar(){return new _.z(this)}get options(){return this.__options}set options(t){this.__options=t}get o(){return this.options}i18n(t,...e){return(0,g.i18n)(t,e,this.options)}toggleFullSize(t){void 0===t&&(t=!this.__isFullSize),t!==this.__isFullSize&&(this.__isFullSize=t,this.e.fire("toggleFullSize",t))}get isLocked(){return""!==this.__whoLocked}lock(t="any"){return!this.isLocked&&(this.__whoLocked=t,!0)}unlock(){return!!this.isLocked&&(this.__whoLocked="",!0)}get isFullSize(){return this.__isFullSize}getVersion(){return r.version}static getVersion(){return r.version}initOptions(t){this.options=(0,g.ConfigProto)(t||{},(0,g.ConfigProto)(this.options||{},r.defaultOptions))}initOwners(){this.ownerWindow=this.o.ownerWindow??window}attachEvents(t){if(!t)return;const e=t?.events;e&&Object.keys(e).forEach((t=>this.e.on(t,e[t])))}constructor(t,e=!1){super(),this.isJodit=e,this.isView=!0,this.parent=null,this.mods={},this.components=new Set,this.OPTIONS=r.defaultOptions,this.__isFullSize=!1,this.__whoLocked="",this.isLockedNotBy=t=>this.isLocked&&this.__whoLocked!==t,this.__modulesInstances=new Map,this.id=""+(new Date).getTime(),this.initOptions(t),this.initOwners(),this.events=new f.bk(this.od),this.create=new c.X(this.od),this.container=this.c.div("jodit "+this.componentName)}getInstance(t,e){const s=(0,g.isFunction)(t)?t.prototype.className():t,r=this.e.fire((0,g.camelCase)("getInstance_"+s),e);if(r)return r;const i=(0,g.isFunction)(t)?t:m.av[s],n=this.__modulesInstances;if(!(0,g.isFunction)(i))throw(0,g.error)("Need real module name");if(!n.has(s)){const t=i.prototype instanceof o.vG?new i(this,e):new i(e);this.components.add(t),n.set(s,t)}return n.get(s)}addDisclaimer(t){this.container.appendChild(t)}beforeDestruct(){this.e.fire(a.f.beforeDestruct,this),this.components.forEach((t=>{(0,g.isDestructable)(t)&&!t.isInDestruct&&t.destruct()})),this.components.clear()}destruct(){this.isDestructed||(this.progressbar.destruct(),this.message.destruct(),this.events&&(this.events.destruct(),this.events=void 0),this.buffer&&this.buffer.clear(),p.J.safeRemove(this.container),super.destruct())}};C.ES=l.ES,C.version=l.APP_VERSION,C.esNext=l.IS_ES_NEXT,C.esModern=l.IS_ES_MODERN,(0,i.Cg)([u.P],C.prototype,"buffer",null),(0,i.Cg)([u.P],C.prototype,"message",null),(0,i.Cg)([u.P],C.prototype,"storage",null),(0,i.Cg)([u.P],C.prototype,"c",null),(0,i.Cg)([u.P],C.prototype,"e",null),(0,i.Cg)([u.P],C.prototype,"progressbar",null),(0,i.Cg)([(0,d.A)(a.f.beforeDestruct)],C.prototype,"beforeDestruct",null),C=r=(0,i.Cg)([(0,h.C)(y.K,b.O)],C),C.defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"}},46173(t,e,s){"use strict";s.d(e,{x(){return Jodit}});var r,i=s(31635),o=s(17352),n=s(22664),a=s(56298),l=s(65147),c=s(53883),u=s(58597),h=s(37435),d=s(36115);const p="data-jodit-default-style-display",f="data-jodit-default-classes";let Jodit=r=class Jodit extends h.ViewWithToolbar{className(){return"Jodit"}waitForReady(){return this.isReady?Promise.resolve(this):this.async.promise((t=>{this.hookStatus("ready",(()=>t(this)))}))}static get ready(){return new Promise((t=>{a.RR.on("oditready",t)}))}get text(){if(this.editor)return this.editor.innerText||"";const t=this.createInside.div();return t.innerHTML=this.getElementValue(),t.innerText||""}get defaultTimeout(){return(0,l.isNumber)(this.o.defaultTimeout)?this.o.defaultTimeout:d.T.defaultOptions.defaultTimeout}static atom(t){return(0,l.markAsAtomic)(t)}static make(t,e){return new this(t,e)}static isJoditAssigned(t){return t&&(0,l.isJoditObject)(t.component)&&!t.component.isInDestruct}static get defaultOptions(){return d.T.defaultOptions}get createInside(){return new h.Create((()=>this.ed),this.o.createAttributes)}__setPlaceField(t,e){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[t]=e}get element(){return this.currentPlace.element}get editor(){return this.currentPlace.editor}set editor(t){this.__setPlaceField("editor",t)}get container(){return this.currentPlace.container}set container(t){this.__setPlaceField("container",t)}get workplace(){return this.currentPlace.workplace}get message(){return this.getMessageModule(this.workplace)}get statusbar(){return this.currentPlace.statusbar}get iframe(){return this.currentPlace.iframe}set iframe(t){this.__setPlaceField("iframe",t)}get history(){return this.currentPlace.history}get editorWindow(){return this.currentPlace.editorWindow}set editorWindow(t){this.__setPlaceField("editorWindow",t)}get ew(){return this.editorWindow}get editorDocument(){return this.currentPlace.editorWindow.document}get ed(){return this.editorDocument}get options(){return this.currentPlace.options}set options(t){this.__setPlaceField("options",t)}get s(){return this.selection}get uploader(){return this.getInstance("Uploader",this.o.uploader)}get filebrowser(){const t=this,e=(0,l.ConfigProto)({defaultTimeout:t.defaultTimeout,uploader:t.o.uploader,language:t.o.language,license:t.o.license,theme:t.o.theme,shadowRoot:t.o.shadowRoot,defaultCallback(e){e.files&&e.files.length&&e.files.forEach(((s,r)=>{const i=e.baseurl+s;e.isImages&&e.isImages[r]?t.s.insertImage(i,null,t.o.imageDefaultWidth):t.s.insertNode(t.createInside.fromHTML(`<a href='${i}' title='${i}'>${i}</a>`))}))}},this.o.filebrowser);return t.getInstance("FileBrowser",e)}get mode(){return this.__mode}set mode(t){this.setMode(t)}getNativeEditorValue(){const t=this.e.fire("beforeGetNativeEditorValue");return(0,l.isString)(t)?t:this.editor?this.editor.innerHTML:this.getElementValue()}setNativeEditorValue(t){const e={value:t};this.e.fire("beforeSetNativeEditorValue",e)||this.editor&&(this.editor.innerHTML=e.value)}get value(){return this.getEditorValue()}set value(t){this.setEditorValue(t),this.history.__processChanges()}synchronizeValues(){this.__imdSynchronizeValues()}__imdSynchronizeValues(){this.setEditorValue()}getEditorValue(t=!0,e){let s;if(s=this.e.fire("beforeGetValueFromEditor",e),void 0!==s)return s;s=this.getNativeEditorValue().replace(o.INVISIBLE_SPACE_REG_EXP(),""),t&&(s=s.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===s&&(s="");const r={value:s};return this.e.fire("afterGetValueFromEditor",r,e),r.value}setEditorValue(t){const e=this.e.fire("beforeSetValueToEditor",t);if(!1===e)return;if((0,l.isString)(e)&&(t=e),!this.editor)return void(void 0!==t&&this.__setElementValue(t));if(!(0,l.isString)(t)&&!(0,l.isVoid)(t))throw(0,l.error)("value must be string");(0,l.isVoid)(t)||this.getNativeEditorValue()===t||this.setNativeEditorValue(t),this.e.fire("postProcessSetEditorValue");const s=this.getElementValue(),r=this.getEditorValue();if(!this.__isSilentChange&&s!==r&&o.SAFE_COUNT_CHANGE_CALL>this.__callChangeCount){this.__setElementValue(r),this.__callChangeCount+=1;try{this.history.__upTick(),this.e.fire("change",r,s),this.e.fire(this.history,"change",r,s)}finally{this.__callChangeCount=0}}}updateElementValue(){this.__setElementValue(this.getEditorValue())}getElementValue(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}__setElementValue(t){if(!(0,l.isString)(t))throw(0,l.error)("value must be string");if(this.element!==this.container&&t!==this.getElementValue()){const e={value:t},s=this.e.fire("beforeSetElementValue",e);(0,l.callPromise)(s,(()=>{void 0!==this.element.value?this.element.value=e.value:this.element.innerHTML=e.value,this.e.fire("afterSetElementValue",e)}))}}registerCommand(t,e,s){const r=t.toLowerCase();let i=this.commands.get(r);if(void 0===i&&(i=[],this.commands.set(r,i)),i.push(e),!(0,l.isFunction)(e)){const i=this.o.commandToHotkeys[r]||this.o.commandToHotkeys[t]||e.hotkeys;i&&this.registerHotkeyToCommand(i,r,s?.stopPropagation)}return this}registerHotkeyToCommand(t,e,s=!0){const r=(0,l.asArray)(t).map(l.normalizeKeyAliases).map((t=>t+".hotkey")).join(" ");this.e.off(r).on(r,((t,r)=>(r&&(r.shouldStop=s??!0),this.execCommand(e))))}execCommand(t,e,s,...r){if(this.s.isFocused()||this.s.focus(),this.o.readonly&&!this.o.allowCommandsInReadOnly.includes(t))return;let i;if(t=t.toLowerCase(),i=this.e.fire("beforeCommand"+(0,l.ucfirst)(t),e,s,...r),!1!==i&&(i=this.e.fire("beforeCommand",t,e,s,...r)),!1!==i&&(i=this.__execCustomCommands(t,e,s,...r)),!1!==i){this.s.focus();try{i=this.nativeExecCommand(t,e,s)}catch(t){if(!o.IS_PROD)throw t}}return this.e.fire("afterCommand",t,e,s),this.__imdSynchronizeValues(),i}nativeExecCommand(t,e,s){this.__isSilentChange=!0;try{return this.ed.execCommand(t,e,s)}finally{this.__isSilentChange=!1}}__execCustomCommands(t,e,s,...r){t=t.toLowerCase();const i=this.commands.get(t);if(void 0!==i){let o;return i.forEach((i=>{let n;n=(0,l.isFunction)(i)?i:i.exec;const a=n.call(this,t,e,s,...r);void 0!==a&&(o=a)})),o}}lock(t="any"){return!!super.lock(t)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}unlock(){return!!super.unlock()&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}getMode(){return this.mode}isEditorMode(){return this.getRealMode()===o.MODE_WYSIWYG}getRealMode(){if(this.getMode()!==o.MODE_SPLIT)return this.getMode();const t=this.od.activeElement;return t&&(t===this.iframe||h.Dom.isOrContains(this.editor,t)||h.Dom.isOrContains(this.toolbar.container,t))?o.MODE_WYSIWYG:o.MODE_SOURCE}setMode(t){const e=this.getMode(),s={mode:parseInt(""+t,10)},r=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",s)&&(this.__mode=[o.MODE_SOURCE,o.MODE_WYSIWYG,o.MODE_SPLIT].includes(s.mode)?s.mode:o.MODE_WYSIWYG,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),r.forEach((t=>{this.container.classList.remove(t)})),this.container.classList.add(r[this.mode-1]),e!==this.getMode()&&this.e.fire("afterSetMode"))}toggleMode(){let t=this.getMode();[o.MODE_SOURCE,o.MODE_WYSIWYG,this.o.useSplitMode?o.MODE_SPLIT:9].includes(t+1)?t+=1:t=o.MODE_WYSIWYG,this.setMode(t)}setDisabled(t){this.o.disabled=t;const e=this.__wasReadOnly;this.setReadOnly(t||e),this.__wasReadOnly=e,this.editor&&(this.editor.setAttribute("aria-disabled",""+t),this.container.classList.toggle("jodit_disabled",t),this.e.fire("disabled",t))}getDisabled(){return this.o.disabled}setReadOnly(t){this.__wasReadOnly!==t&&(this.__wasReadOnly=t,this.o.readonly=t,t?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",t))}getReadOnly(){return this.o.readonly}focus(){this.getMode()!==o.MODE_SOURCE&&this.s.focus()}get isFocused(){return this.s.isFocused()}beforeInitHook(){}afterInitHook(){}initOptions(t){this.options=(0,l.ConfigProto)(t||{},d.T.defaultOptions)}initOwners(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}constructor(t,e){super(e,!0),this.isJodit=!0,this.commands=new Map,this.__selectionLocked=null,this.__wasReadOnly=!1,this.editorIsActive=!1,this.__mode=o.MODE_WYSIWYG,this.__callChangeCount=0,this.__isSilentChange=!1,this.__elementToPlace=new Map;try{const e=(0,l.resolveElement)(t,this.o.shadowRoot||this.od);if(r.isJoditAssigned(e))return e.component}catch(t){throw this.destruct(),t}this.setStatus(h.STATUSES.beforeInit),this.id=(0,l.attr)((0,l.resolveElement)(t,this.o.shadowRoot||this.od),"id")||""+(new Date).getTime(),a.VF[this.id]=this,this.attachEvents(e),this.e.on(this.ow,"resize",(()=>{this.e&&this.e.fire("resize")})),this.e.on("prepareWYSIWYGEditor",this.__prepareWYSIWYGEditor),this.selection=new h.Selection(this);const s=this.beforeInitHook();(0,l.callPromise)(s,(()=>{if(this.isInDestruct)return;this.e.fire("beforeInit",this),a.fg.__init(this),this.e.fire("afterPluginSystemInit",this),this.e.on("changePlace",(()=>{this.setReadOnly(this.o.readonly),this.setDisabled(this.o.disabled)})),this.places.length=0;const s=this.addPlace(t,e);a.VF[this.id]=this,(0,l.callPromise)(s,(()=>{this.isInDestruct||(this.e&&this.e.fire("afterInit",this),(0,l.callPromise)(this.afterInitHook()),this.setStatus(h.STATUSES.ready),this.e.fire("afterConstructor",this))}))}))}addPlace(t,e){const s=(0,l.resolveElement)(t,this.o.shadowRoot||this.od);this.attachEvents(e),s.attributes&&(0,l.toArray)(s.attributes).forEach((t=>{const s=t.name;let r=t.value;void 0===d.T.defaultOptions[s]||e&&void 0!==e[s]||(-1!==["readonly","disabled"].indexOf(s)&&(r=""===r||"true"===r),/^[0-9]+(\.)?([0-9]+)?$/.test(""+r)&&(r=Number(r)),this.options[s]=r)}));let r=this.c.div("jodit-container");r.classList.add("jodit"),r.classList.add("jodit-container"),r.classList.add("jodit_theme_"+(this.o.theme||"default")),m(this.o.className,r),this.o.containerStyle&&(0,l.css)(r,this.o.containerStyle);const{styleValues:i}=this.o;Object.keys(i).forEach((t=>{const e=(0,l.kebabCase)(t);r.style.setProperty("--jd-"+e,i[t])})),r.setAttribute("contenteditable","false");let o=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(s.nodeName)&&(r=s,s.setAttribute(f,""+s.className),o=r.innerHTML,r.innerHTML=""),r.classList.add("jodit_inline"),r.classList.add("jodit-container")),s!==r&&(s.style.display&&s.setAttribute(p,s.style.display),s.style.display="none");const n=this.c.div("jodit-workplace",{contenteditable:!1});r.appendChild(n),s.parentNode&&s!==r&&s.parentNode.insertBefore(r,s),Object.defineProperty(s,"component",{enumerable:!1,configurable:!0,value:this});const a=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});n.appendChild(a);const c={editor:a,element:s,container:r,workplace:n,statusbar:new h.StatusBar(this,r),options:this.isReady?(0,l.ConfigProto)(e||{},d.T.defaultOptions):this.options,history:new h.History(this),editorWindow:this.ow};this.__elementToPlace.set(a,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());const u=this.__initEditor(o),g=this.options;return(0,l.callPromise)(u,(()=>{g.enableDragAndDropFileToEditor&&g.uploader&&(g.uploader.url||g.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.__elementToPlace.get(this.editor)||this.__elementToPlace.set(this.editor,c),this.e.fire("afterAddPlace",c)}))}addDisclaimer(t){this.workplace.appendChild(t)}setCurrentPlace(t){this.currentPlace!==t&&(this.isEditorMode()||this.setMode(o.MODE_WYSIWYG),this.currentPlace=t,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",t))}__initEditor(t){const e=this.__createEditor();return(0,l.callPromise)(e,(()=>{if(this.isInDestruct)return;if(this.element!==this.container){const t=this.getElementValue();t!==this.getEditorValue()&&this.setEditorValue(t)}else null!=t&&this.setEditorValue(t);let e=this.o.defaultMode;if(this.o.saveModeInStorage){const t=this.storage.get("jodit_default_mode");"string"==typeof t&&(e=parseInt(t,10))}this.setMode(e),this.o.readonly&&(this.__wasReadOnly=!1,this.setReadOnly(!0)),this.o.disabled&&this.setDisabled(!0);try{this.ed.execCommand("defaultParagraphSeparator",!1,this.o.enter.toLowerCase())}catch{}}))}__createEditor(){const t=this.editor,e=this.e.fire("createEditor",this);return(0,l.callPromise)(e,(()=>{if(!this.isInDestruct){if((!1===e||(0,l.isPromise)(e))&&h.Dom.safeRemove(t),m(this.o.editorClassName,this.editor),this.o.style&&(0,l.css)(this.editor,this.o.style),this.e.on("synchro",(()=>{this.setEditorValue()})).on("focus",(()=>{this.editorIsActive=!0})).on("blur",(()=>this.editorIsActive=!1)),this.__prepareWYSIWYGEditor(),this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.container.style.direction=t,this.container.setAttribute("dir",t),this.toolbar.setDirection(t)}this.o.triggerChangeEvent&&this.e.on("change",this.async.debounce((()=>{this.e&&this.e.fire(this.element,"change")}),this.defaultTimeout))}}))}__prepareWYSIWYGEditor(){const{editor:t}=this;if(this.o.direction){const t="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=t,this.editor.setAttribute("dir",t)}this.e.on(t,"mousedown touchstart focus",(()=>{const e=this.__elementToPlace.get(t);e&&this.setCurrentPlace(e)})).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",(t=>{if(!this.o.readonly&&!this.__isSilentChange&&!(t instanceof this.ew.KeyboardEvent&&t.isComposing)&&this.e&&this.e.fire){if(!1===this.e.fire(t.type,t))return!1;this.synchronizeValues()}}))}fetch(t,e){const s=new c.d({url:t,...e},this.o.defaultAjaxOptions),r=()=>{this.e.off("beforeDestruct",r),this.progressbar.progress(100).hide(),s.destruct()};this.e.one("beforeDestruct",r),this.progressbar.show().progress(30);const i=s.send();return i.finally(r).catch((()=>null)),i}destruct(){if(this.isInDestruct)return;this.setStatus(h.STATUSES.beforeDestruct),this.__elementToPlace.clear(),this.storage.clear(),this.buffer.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);const t=this.editor?this.getEditorValue():"";this.places.forEach((({container:e,workplace:s,statusbar:r,element:i,iframe:o,editor:n,history:a})=>{if(i){if(i!==e)if(i.hasAttribute(p)){const t=(0,l.attr)(i,p);t&&(i.style.display=t,i.removeAttribute(p))}else i.style.display="";else i.hasAttribute(f)&&(i.className=(0,l.attr)(i,f)||"",i.removeAttribute(f));i.hasAttribute("style")&&!(0,l.attr)(i,"style")&&i.removeAttribute("style"),r.destruct(),this.e.off(e),this.e.off(i),this.e.off(n),h.Dom.safeRemove(s),h.Dom.safeRemove(n),e!==i&&h.Dom.safeRemove(e),Object.defineProperty(i,"component",{enumerable:!1,configurable:!0,value:null}),h.Dom.safeRemove(o),e===i&&(i.innerHTML=t),a.destruct()}})),this.places.length=0,this.currentPlace={},delete a.VF[this.id],super.destruct()}};function m(t,e){t&&t.split(/\s+/).forEach((t=>e.classList.add(t)))}Jodit.fatMode=o.FAT_MODE,Jodit.plugins=a.fg,Jodit.modules=a.av,Jodit.ns=a.av,Jodit.decorators={},Jodit.constants=o,Jodit.instances=a.VF,Jodit.lang=o.lang,Jodit.core={Plugin:h.Plugin},(0,i.Cg)([n.cache],Jodit.prototype,"createInside",null),(0,i.Cg)([n.cache],Jodit.prototype,"message",null),(0,i.Cg)([n.cache],Jodit.prototype,"s",null),(0,i.Cg)([n.cache],Jodit.prototype,"uploader",null),(0,i.Cg)([n.cache],Jodit.prototype,"filebrowser",null),(0,i.Cg)([(0,n.throttle)()],Jodit.prototype,"synchronizeValues",null),(0,i.Cg)([(0,n.watch)(":internalChange")],Jodit.prototype,"updateElementValue",null),(0,i.Cg)([n.autobind],Jodit.prototype,"__prepareWYSIWYGEditor",null),Jodit=r=(0,i.Cg)([(0,n.derive)(u.z)],Jodit)},74470(t,e,s){"use strict";var r=s(37923),i=s(41324),o=s.n(i),n=s(63837),a=s(53414);let l={};l={ar:o(),cs_cz:o(),de:o(),en:n,es:o(),fi:o(),fr:o(),he:o(),hu:o(),id:o(),it:o(),ja:o(),ko:o(),mn:o(),nl:o(),pl:o(),pt_br:o(),ru:o(),tr:o(),zh_cn:o(),zh_tw:o()};const c=t=>t?t.default||t:{},u={};(0,r.c)(c(a))&&c(a).forEach(((t,e)=>{u[e]=t})),Object.keys(l).forEach((t=>{const e=c(l[t]);(0,r.c)(e)?(l[t]={},e.forEach(((e,s)=>{l[t][u[s]]=e}))):l[t]=e})),e.A=l},34248(t,e,s){"use strict";s.d(e,{t(){return l}});var r=s(31635),i=s(24767),o=s(37923),n=s(92032),a=s(80071);let l=class t extends a.z{className(){return"ContextMenu"}show(t,e,s){const r=this;r.clear(),(0,o.c)(s)&&(s.forEach((t=>{if(!t)return;const e=(0,n.$n)(this.jodit,t.icon||"empty",t.title);this.jodit&&e.setParentView(this.jodit),e.setMod("context","menu"),e.onAction((e=>(t.exec?.call(r,e),r.clear(),r.close(),!1))),this.append(e)})),this.open((()=>({left:t,top:e,width:0,height:0})),!0))}};l=(0,r.Cg)([i.s],l)},5854(t,e,s){"use strict";s.d(e,{F(){return l}});var r=s(55186),i=s(82317),o=s(69052),n=s(92032),a=s(58006);function l(t,e,s,l="jodit-dialog_alert"){(0,o.T)(e)&&(s=e,e=void 0);const c=this instanceof a.l?this:new a.l({closeOnClickOverlay:!0}),u=c.c.div(l),h=(0,n.$n)(c,"ok","Ok");return(0,i._)(t).forEach((t=>{u.appendChild(r.J.isNode(t)?t:c.c.fromHTML(t))})),h.onAction((()=>{s&&(0,o.T)(s)&&!1===s(c)||c.close()})),c.setFooter([h]),c.open(u,e||"&nbsp;",!0,!0),h.focus(),c}},23132(t,e,s){"use strict";s.d(e,{p(){return n}});var r=s(69052),i=s(92032),o=s(58006);function n(t,e,s){const n=this instanceof o.l?this:new o.l({closeOnClickOverlay:!0}),a=n.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),l=n.c.element("label");(0,r.T)(e)&&(s=e,e=void 0),l.appendChild(n.c.fromHTML(t)),a.appendChild(l);const c=t=>()=>{s&&!1===s(t)||n.close()},u=(0,i.$n)(n,"cancel","Cancel"),h=(0,i.$n)(n,"ok","Yes");return u.onAction(c(!1)),h.onAction(c(!0)),n.e.on(a,"submit",(()=>(c(!0)(),!1))),n.setFooter([h,u]),n.open(a,e||"&nbsp;",!0,!0),h.focus(),n}},58006(t,e,s){"use strict";s.d(e,{l(){return v}});var r,i=s(31635),o=s(77753),n=s(17352),a=s(22664),l=s(55186),c=s(56298),u=s(32709),h=s(9823),d=s(97369),p=(s(28712),s(53048)),f=s(77782),m=s(14961),g=s(36115);g.T.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},g.T.prototype.controls.dialog={close:{icon:"cancel",exec(t){t.close()}}};let v=r=class t extends m.T{className(){return"Dialog"}get destination(){return this.o.shadowRoot??this.od.body}setElements(t,e){const s=[];(0,u._j)(e).forEach((e=>{if((0,h.cy)(e)){const r=this.c.div(this.getFullElName("column"));return s.push(r),t.appendChild(r),this.setElements(r,e)}let r;r=(0,h.Kg)(e)?this.c.fromHTML(e):(0,h.kO)(e)?e.container:e,s.push(r),r.parentNode!==t&&t.appendChild(r)})),(0,u.$r)(t.childNodes).forEach((e=>{-1===s.indexOf(e)&&t.removeChild(e)}))}onMouseUp(){(this.draggable||this.resizable)&&(this.removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}onHeaderMouseDown(t){const e=t.target;!this.o.draggable||e&&e.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.x=(0,d.css)(this.dialog,"left"),this.startPoint.y=(0,d.css)(this.dialog,"top"),this.setMaxZIndex(),t.cancelable&&t.preventDefault(),this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startMove"))}onMouseMove(t){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+t.clientX-this.startX,this.startPoint.y+t.clientY-this.startY),this.e&&this.e.fire(this,"move",t.clientX-this.startX,t.clientY-this.startY),t.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+t.clientX-this.startX,this.startPoint.h+t.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",t.clientX-this.startX,t.clientY-this.startY))}onEsc(t){if(this.o.closeOnEsc&&this.isOpened&&t.key===n.KEY_ESC&&!0!==this.getMod("static")){const e=this.getMaxZIndexDialog();e?e.close():this.close(),t.stopImmediatePropagation()}}onResizerMouseDown(t){this.resizable=!0,this.startX=t.clientX,this.startY=t.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}addGlobalResizeListeners(){const t=this;t.e.on(t.ow,"pointermove touchmove",t.onMouseMove).on(t.ow,"pointerup touchend",t.onMouseUp)}removeGlobalResizeListeners(){const t=this;t.e.off(t.ow,"mousemove pointermove",t.onMouseMove).off(t.ow,"mouseup pointerup",t.onMouseUp)}setSize(t,e){return null==t&&(t=this.dialog.offsetWidth),null==e&&(e=this.dialog.offsetHeight),(0,d.css)(this.dialog,{width:t,height:e}),this}calcAutoSize(){return this.setSize("auto","auto"),this.setSize(),this}setPosition(t,e){let s=this.ow.innerWidth/2-this.dialog.offsetWidth/2,r=this.ow.innerHeight/2-this.dialog.offsetHeight/2;return 0>s&&(s=0),0>r&&(r=0),void 0!==t&&void 0!==e&&(this.offsetX=t,this.offsetY=e,this.moved=Math.abs(t-s)>100||Math.abs(e-r)>100),this.dialog.style.left=(t||s)+"px",this.dialog.style.top=(e||r)+"px",this}setHeader(t){return this.setElements(this.dialogbox_header,t),this}setContent(t){return this.setElements(this.dialogbox_content,t),this}setFooter(t){return this.setElements(this.dialogbox_footer,t),this.setMod("footer",!!t),this}getZIndex(){return parseInt((0,d.css)(this.container,"zIndex"),10)||0}getMaxZIndexDialog(){let t,e,s=0,r=this;return(0,d.$$)(".jodit-dialog",this.destination).forEach((i=>{t=i.component,e=parseInt((0,d.css)(i,"zIndex"),10),t.isOpened&&!isNaN(e)&&e>s&&(r=t,s=e)})),r}setMaxZIndex(){if(this.getMod("static"))return;let t=20000004,e=0;(0,d.$$)(".jodit-dialog",this.destination).forEach((s=>{e=parseInt((0,d.css)(s,"zIndex"),10),t=Math.max(isNaN(e)?0:e,t)})),this.container.style.zIndex=""+(t+1)}toggleFullSize(t){(0,h.Rd)(t)&&(t=!this.getMod("fullsize")),this.setMod("fullsize",t),super.toggleFullSize(t)}open(t,e,s,r){if(c.RR.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;(0,h.Lm)(t)&&(s=t),(0,h.Lm)(e)&&(r=e),this.destroyAfterClose=!0===s;const i=(0,h.Lm)(t)?void 0:t,o=(0,h.Lm)(e)?void 0:e;return void 0!==o&&this.setHeader(o),i&&this.setContent(i),this.setMod("active",!0),this.isOpened=!0,this.setModal(r),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}setModal(t){return this.isModal=!!t,this.setMod("modal",this.isModal),this}close(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;const{e:t}=this;return!1===t.fire(this,"beforeClose")||!1===t.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),l.J.safeRemove(this.container),this.removeGlobalResizeListeners(),t.fire(this,"afterClose"),t.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}constructor(t={}){super(t),this.destroyAfterClose=!1,this.moved=!1,this.resizable=!1,this.draggable=!1,this.startX=0,this.startY=0,this.startPoint={x:0,y:0,w:0,h:0},this.lockSelect=()=>{this.setMod("moved",!0)},this.unlockSelect=()=>{this.setMod("moved",!1)},this.onResize=()=>{this.options&&this.o.resizable&&!this.moved&&this.isOpened&&!this.offsetX&&!this.offsetY&&this.setPosition()},this.isModal=!1,this.isOpened=!1;const e=this;e.options=(0,d.ConfigProto)(t,(0,d.ConfigProto)(g.T.prototype.dialog,r.defaultOptions)),l.J.safeRemove(e.container);const s=this.getFullElName.bind(this);e.container=this.c.fromHTML(`<div class="jodit jodit-dialog ${this.componentName}">\n\t\t\t\t<div class="${s("overlay")}"></div>\n\t\t\t\t<div class="${this.getFullElName("panel")}">\n\t\t\t\t\t<div class="${s("header")}">\n\t\t\t\t\t\t<div class="${s("header-title")}"></div>\n\t\t\t\t\t\t<div class="${s("header-toolbar")}"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${s("content")}"></div>\n\t\t\t\t\t<div class="${s("footer")}"></div>\n\t\t\t\t\t<div class="${s("resizer")}">${p.In.get("resize_handler")}</div>\n\t\t\t\t</div>\n\t\t\t</div>`),this.o.zIndex&&(this.container.style.zIndex=""+this.o.zIndex),(0,d.attr)(e.container,"role","dialog"),Object.defineProperty(e.container,"component",{value:this}),e.setMod("theme",e.o.theme||"default").setMod("resizable",!!e.o.resizable);const i=e.getElm("panel"),o=e.getElm("resizer"),n=e.getElm("header-title"),a=e.getElm("content"),u=e.getElm("footer"),f=e.getElm("header-toolbar");this.dialog=i,this.resizer=o,this.dialogbox_header=n,this.dialogbox_content=a,this.dialogbox_footer=u,this.dialogbox_toolbar=f,(0,d.css)(e.dialog,{maxWidth:e.options.maxWidth,minHeight:e.options.minHeight,minWidth:e.options.minWidth});const m=e.getElm("header");m&&e.e.on(m,"pointerdown touchstart",e.onHeaderMouseDown),e.e.on(e.resizer,"mousedown touchstart",e.onResizerMouseDown);const v=c.fg.get("fullsize");if((0,h.Tn)(v)&&v(e),this.e.on(e.container,"close_dialog",e.close).on(this.ow,"keydown",this.onEsc).on(this.ow,"resize",this.onResize),this.o.closeOnClickOverlay){const t=e.getElm("overlay");this.e.on(t,"click",e.close)}}buildToolbar(){this.o.buttons&&this.toolbar.build((0,u.uM)(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}destruct(){this.isInDestruct||(this.setStatus(o.f.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.onEsc).off(this.ow,"resize",this.onResize)),super.destruct())}};(0,i.Cg)([a.autobind],v.prototype,"onMouseUp",null),(0,i.Cg)([a.autobind],v.prototype,"onHeaderMouseDown",null),(0,i.Cg)([a.autobind],v.prototype,"onMouseMove",null),(0,i.Cg)([a.autobind],v.prototype,"onEsc",null),(0,i.Cg)([a.autobind],v.prototype,"onResizerMouseDown",null),(0,i.Cg)([a.autobind],v.prototype,"close",null),(0,i.Cg)([(0,a.hook)("ready")],v.prototype,"buildToolbar",null),v=r=(0,i.Cg)([a.component],v),v.defaultOptions={...f.S.defaultOptions,closeOnClickOverlay:!1,closeOnEsc:!0}},34256(t,e,s){"use strict";s.d(e,{Fc(){return r.F},XG(){return n.X},lG(){return o.l},pT(){return i.p}});var r=s(5854),i=s(23132),o=s(58006),n=s(91560)},91560(t,e,s){"use strict";s.d(e,{X(){return a}});var r=s(69052),i=s(26150),o=s(92032),n=s(58006);function a(t,e,s,a,l){const c=this instanceof n.l?this:new n.l({closeOnClickOverlay:!0}),u=(0,o.$n)(c,"cancel","Cancel"),h=(0,o.$n)(c,"ok","Ok"),d=c.c.element("form",{class:"jodit-dialog_prompt"}),p=c.c.element("input",{autofocus:!0,class:"jodit-input"}),f=c.c.element("label");(0,r.T)(e)&&(s=e,e=void 0),a&&(0,i.C)(p,"placeholder",a),f.appendChild(c.c.text(t)),d.appendChild(f),d.appendChild(p),u.onAction(c.close);const m=()=>{s&&(0,r.T)(s)&&!1===s(p.value)||c.close()};return h.onAction(m),c.e.on(d,"submit",(()=>(m(),!1))),c.setFooter([h,u]),c.open(d,e||"&nbsp;",!0,!0),p.focus(),void 0!==l&&l.length&&(p.value=l,p.select()),c}},49931(t,e,s){"use strict";var r=s(71842),i=s(97369),o=s(931),n=s(77112),a=s(83797),l=s(97324),c=s(31859),u=s(62994),h=s(53804);const d="jodit-file-browser-preview",p=(t="next",e="right")=>`<div class="${d}__navigation ${d}__navigation_arrow_${t}">`+o.I.get("angle-"+e)+"</a>";e.A=t=>{if(!t.o.contextMenu)return()=>{};const e=(0,a.V)(t);return s=>{const o=(0,u.Gq)(s.target,t.container);if(!o)return;let a=o;const f=t.options,m=t=>(0,i.attr)(a,t)||"";return t.async.setTimeout((()=>{const g=(0,u.PZ)(o,(0,n.a)(t));g&&(t.state.activeElements=[g],e.show(s.clientX,s.clientY,[!("1"===m("data-is-file")||!f.editImage||!t.dataProvider.canI("ImageResize")&&!t.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec(){return h.B.call(t,m("href"),m("data-name"),m("data-path"),m("data-source"))}},!!t.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec(){t.e.fire("fileRename.filebrowser",m("data-name"),m("data-path"),m("data-source"))}},!!t.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",async exec(){try{await(0,l.W)(t,m("data-name"),m("data-source"))}catch(e){return t.status(e)}return t.state.activeElements=[],(0,c.r)(t).catch(t.status)}},!!f.preview&&{icon:"eye",title:"Preview",exec(){const e=t.dlg({buttons:["fullsize","dialog.close"]}),s=t.c.div(d,'<div class="jodit-icon_loader"></div>'),o=t.c.div(d+"__box"),n=t.c.fromHTML(p()),l=t.c.fromHTML(p("prev","left")),c=i=>{const c=t.c.element("img");c.setAttribute("src",i);const u=()=>{t.isInDestruct||(t.e.off(c,"load"),r.J.detach(s),f.showPreviewNavigation&&(r.J.prevWithClass(a,t.files.getFullElName("item"))&&s.appendChild(l),r.J.nextWithClass(a,t.files.getFullElName("item"))&&s.appendChild(n)),s.appendChild(o),o.appendChild(c),e.setPosition(),t?.events?.fire("previewOpenedAndLoaded"))};t.e.on(c,"load",u),c.complete&&u()};t.e.on([n,l],"click",(function(){if(a=this===n?r.J.nextWithClass(a,t.files.getFullElName("item")):r.J.prevWithClass(a,t.files.getFullElName("item")),!a)throw(0,i.error)("Need element");r.J.detach(s),r.J.detach(o),s.innerHTML='<div class="jodit-icon_loader"></div>',c(m("href"))})),t.e.on("beforeDestruct",(()=>{e.destruct()})),e.container.classList.add(d+"__dialog"),e.setContent(s),e.setPosition(),e.open(),c(m("href")),t.events.on("beforeDestruct",(()=>{e.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec(){const e=m("href");e&&t.ow.open(e)}}]))}),t.defaultTimeout),t.e.on("beforeClose",(()=>{e.close()})).on("beforeDestruct",(()=>e.destruct())),s.stopPropagation(),s.preventDefault(),!1}}},77112(t,e,s){"use strict";s.d(e,{a(){return i}});const r=new WeakMap,i=t=>{let e=r.get(t);return e||(e={},r.set(t,e)),e}},11133(t,e,s){"use strict";s.d(e,{u(){return i}});var r=s(65147);class i{constructor(t){this.data=t,Object.keys(t).forEach((e=>{this[e]=t[e]}))}static create(t){return t instanceof i?t:new i(t)}get path(){return(0,r.normalizePath)(this.data.source.path?this.data.source.path+"/":"/")}get imageURL(){const t=this.time||""+(new Date).getTime(),{thumbIsAbsolute:e,source:s,thumb:i,file:o}=this.data,n=i||o;return e&&n?n:(0,r.normalizeUrl)(s.baseurl,s.path,n||"")+"?_tmst="+encodeURIComponent(t)}get fileURL(){let{name:t}=this.data;const{file:e,fileIsAbsolute:s,source:i}=this.data;return void 0!==e&&(t=e),s&&t?t:(0,r.normalizeUrl)(i.baseurl,i.path,t||"")}get time(){const{changed:t}=this.data;return t&&("number"==typeof t?new Date(t).toLocaleString():t)||""}get uniqueHashKey(){const t=this.data;let e=[t.sourceName,t.name,t.file,this.time,t.thumb].join("_");return e=e.toLowerCase().replace(/[^0-9a-z\-.]/g,"-"),e}toJSON(){return this.data}}},70265(t,e,s){"use strict";var r=s(9823),i=s(99898),o=s(47964),n=s(36115);n.T.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:(t,e)=>(e=e.toLowerCase(),(0,r.Kg)(t)?-1!==t.toLowerCase().indexOf(e):(0,r.Kg)(t.name)?-1!==t.name.toLowerCase().indexOf(e):!(0,r.Kg)(t.file)||-1!==t.file.toLowerCase().indexOf(e)),sortBy:"changed-desc",sort(t,e,s){const[o,n]=s.toLowerCase().split("-"),a="asc"===n,l=(t,e)=>e>t?a?-1:1:t>e?a?1:-1:0;if((0,r.Kg)(t))return l(t.toLowerCase(),e.toLowerCase());if(void 0===t[o]||"name"===o)return(0,r.Kg)(t.name)?l(t.name.toLowerCase(),e.name.toLowerCase()):(0,r.Kg)(t.file)?l(t.file.toLowerCase(),e.file.toLowerCase()):0;switch(o){case"changed":{const s=new Date(t.changed).getTime(),r=new Date(e.changed).getTime();return a?s-r:r-s}case"size":{const s=(0,i.z)(t.size),r=(0,i.z)(e.size);return a?s-r:r-s}}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,r.cy)(t.data.messages)?t.data.messages.join(" "):"",showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate(t,e,s){const r=this.options,i=this.files.getFullElName("item"),o=r.showFileName,n=r.showFileSize&&t.size,a=r.showFileChangeTime&&t.time;let l="";return void 0!==t.file&&(l=t.file),`<a\n\t\t\tdata-jodit-file-browser-item="true"\n\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\tdraggable="true"\n\t\t\tclass="${i}"\n\t\t\thref="${t.fileURL}"\n\t\t\tdata-source="${s}"\n\t\t\tdata-path="${t.path}"\n\t\t\tdata-name="${l}"\n\t\t\ttitle="${l}"\n\t\t\tdata-url="${t.fileURL}">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="${t.isImage?0:1}"\n\t\t\t\t\tdata-src="${t.fileURL}"\n\t\t\t\t\tsrc="${t.imageURL}"\n\t\t\t\t\talt="${l}"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t${o||n||a?`<div class="${i}-info">${o?`<span class="${i}-info-filename">${l}</span>`:""}${n?`<span class="${i}-info-filesize">${t.size}</span>`:""}${a?`<span class="${i}-info-filechanged">${a}</span>`:""}</div>`:""}\n\t\t\t</a>`},ajax:{...n.T.prototype.defaultAjaxOptions,url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:t=>t,process:t=>t},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"}}},n.T.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,isDisabled(t){return!t.dataProvider.canI("FileUpload")},getContent(t){const e=new o.n(t,{onlyImages:t.state.onlyImages});return t.e.fire("bindUploader.filebrowser",e.container),e.container}},remove:{icon:"bin",isDisabled(t){return!t.state.activeElements.length||!t.dataProvider.canI("FileRemove")},exec(t){t.e.fire("fileRemove.filebrowser")}},update:{exec(t){t.e.fire("update.filebrowser")}},select:{icon:"check",isDisabled(t){return!t.state.activeElements.length},exec(t){t.e.fire("select.filebrowser")}},edit:{icon:"pencil",isDisabled(t){const e=t.state.activeElements;return 1!==e.length||!e[0].isImage||!(t.dataProvider.canI("ImageCrop")||t.dataProvider.canI("ImageResize"))},exec(t){t.e.fire("edit.filebrowser")}},tiles:{icon:"th",isActive(t){return"tiles"===t.state.view},exec(t){t.e.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive(t){return"list"===t.state.view},exec(t){t.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent(t,e){const s=e.container.querySelector(".jodit-input");if(s)return s;const r=t.c.element("input",{class:"jodit-input",placeholder:t.i18n("Filter")});return r.value=t.state.filterWord,t.e.on(r,"keydown mousedown",t.async.debounce((()=>{t.e.fire("filter.filebrowser",r.value)}),t.defaultTimeout)),r}},sort:{isInput:!0,getContent(t){const e=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 e.value=t.state.sortBy,t.e.on("sort.filebrowser",(t=>{e.value!==t&&(e.value=t)})).on(e,"change",(()=>{t.e.fire("sort.filebrowser",e.value)})),e}}}},75889(t,e,s){"use strict";s.d(e,{o(){return c}});var r=s(31635),i=s(17352),o=s(22664),n=s(65147),a=s(53883),l=s(11133);const c="default",u=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]);let h=class t{constructor(t,e){this.parent=t,this.options=e,this.__currentPermissions=null,this.ajaxInstances=new Map,this.progressHandler=t=>{}}get o(){return this.options}get(t){const e=this.ajaxInstances;if(e.has(t)){const s=e.get(t);s?.abort(),e.delete(t)}const s=(0,n.ConfigProto)(void 0!==this.options[t]?this.options[t]:{},(0,n.ConfigProto)({onProgress:this.progressHandler},this.o.ajax));s.prepareData&&(s.data=s.prepareData.call(this,s.data));const r=new a.d(s);e.set(t,r);const i=r.send();return i.finally((()=>{r.destruct(),e.delete(t),this.progressHandler(100)})).catch((()=>null)),i.then((t=>t.json())).then((t=>{if(t&&!this.isSuccess(t))throw Error(this.getMessage(t));return t}))}onProgress(t){this.progressHandler=t}async permissions(t,e){return this.o.permissions?(this.o.permissions.data.path=t,this.o.permissions.data.source=e,this.o.permissions.url?this.get("permissions").then((t=>{let e=this.o.permissions.process;if(e||(e=this.o.ajax.process),e){const s=e.call(self,t);s.data.permissions&&(this.__currentPermissions=s.data.permissions)}return this.__currentPermissions})):null):null}canI(t){const e="allow"+t;if(!i.IS_PROD&&!u.has(e))throw(0,n.error)("Wrong action "+t);const s=this.o.permissionsPresets[e];return void 0!==s?s:null==this.__currentPermissions||void 0===this.__currentPermissions[e]||this.__currentPermissions[e]}__items(t,e,s,r){const i=this.options;return i.items?(i.items.data.path=t,i.items.data.source=e,i.items.data.mods=s,this.get("items").then((t=>{let e=this.o.items.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),r(t)}))):Promise.reject(Error("Set Items api options"))}items(t,e,s={}){return this.__items(t,e,s,(t=>this.generateItemsList(t.data.sources,s)))}itemsEx(t,e,s={}){return this.__items(t,e,s,(t=>{return{items:this.generateItemsList(t.data.sources,s),loadedTotal:(e=t.data.sources,e.reduce(((t,e)=>t+e.files.length),0))};var e}))}generateItemsList(t,e={}){const s=[],r=t=>!e.filterWord?.length||void 0===this.o.filter||this.o.filter(t,e.filterWord);return t.forEach((t=>{if(t.files&&t.files.length){const{sort:i}=this.o;(0,n.isFunction)(i)&&e.sortBy&&t.files.sort(((t,s)=>i(t,s,e.sortBy))),t.files.forEach((i=>{r(i)&&(t=>"folder"===t.type||!e.onlyImages||void 0===t.isImage||t.isImage)(i)&&s.push(l.u.create({...i,sourceName:t.name,source:t}))}))}})),s}async tree(t,e){return t=(0,n.normalizeRelativePath)(t),this.o.folder?(await this.permissions(t,e),this.o.folder.data.path=t,this.o.folder.data.source=e,this.get("folder").then((t=>{let e=this.o.folder.process;return e||(e=this.o.ajax.process),e&&(t=e.call(self,t)),t.data.sources}))):Promise.reject(Error("Set Folder Api options"))}getPathByUrl(t){return(0,n.set)("options.getLocalFileByUrl.data.url",t,this),this.get("getLocalFileByUrl").then((t=>{if(this.isSuccess(t))return t.data;throw(0,n.error)(this.getMessage(t))}))}createFolder(t,e,s){const{create:r}=this.o;if(!r)throw(0,n.error)("Set Create api options");return r.data.source=s,r.data.path=e,r.data.name=t,this.get("create").then((t=>{if(this.isSuccess(t))return!0;throw(0,n.error)(this.getMessage(t))}))}move(t,e,s,r){const i=r?"fileMove":"folderMove",o=this.options[i];if(!o)throw(0,n.error)("Set Move api options");return o.data.from=t,o.data.path=e,o.data.source=s,this.get(i).then((t=>{if(this.isSuccess(t))return!0;throw(0,n.error)(this.getMessage(t))}))}remove(t,e,s,r){const i=this.o[t];if(!i)throw(0,n.error)(`Set "${t}" api options`);return i.data.path=e,i.data.name=s,i.data.source=r,this.get(t).then((t=>(i.process&&(t=i.process.call(this,t)),this.getMessage(t))))}fileRemove(t,e,s){return this.remove("fileRemove",t,e,s)}folderRemove(t,e,s){return this.remove("folderRemove",t,e,s)}rename(t,e,s,r,i){const o=this.o[t];if(!o)throw(0,n.error)(`Set "${t}" api options`);return o.data.path=e,o.data.name=s,o.data.newname=r,o.data.source=i,this.get(t).then((t=>(o.process&&(t=o.process.call(self,t)),this.getMessage(t))))}folderRename(t,e,s,r){return this.rename("folderRename",t,e,s,r)}fileRename(t,e,s,r){return this.rename("fileRename",t,e,s,r)}changeImage(t,e,s,r,i,o){this.o[t]||(this.o[t]={data:{}});const n=this.o[t];return void 0===n.data&&(n.data={action:t}),n.data.newname=i||r,o&&(n.data.box=o),n.data.path=e,n.data.name=r,n.data.source=s,this.get(t).then((()=>!0))}crop(t,e,s,r,i){return this.changeImage("crop",t,e,s,r,i)}resize(t,e,s,r,i){return this.changeImage("resize",t,e,s,r,i)}getMessage(t){return this.options.getMessage(t)}isSuccess(t){return this.options.isSuccess(t)}destruct(){this.ajaxInstances.forEach((t=>t.destruct())),this.ajaxInstances.clear()}};h=(0,r.Cg)([o.autobind],h),e.A=h},83797(t,e,s){"use strict";s.d(e,{S(){return o},V(){return n}});var r=s(34248),i=s(75889);function o(t,e){return new i.A(t,e)}function n(t){return new r.t(t)}},97324(t,e,s){"use strict";function r(t,e,s){return t.dataProvider.fileRemove(t.state.currentPath,e,s).then((s=>{t.status(s||t.i18n('File "%s" was deleted',e),!0)})).catch(t.status)}s.d(e,{W(){return r}})},9979(t,e,s){"use strict";function r(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((e=>{e&&(t.state.elements=e,t.state.activeElements=[])})).catch(t.status).finally((()=>t.files.setMod("loading",!1)))}s.d(e,{f(){return r}})},31859(t,e,s){"use strict";s.d(e,{r(){return o}});var r=s(71842),i=s(9979);async function o(t){t.tree.setMod("active",!0),r.J.detach(t.tree.container);const e=(0,i.f)(t);if(t.o.showFoldersPanel){t.tree.setMod("loading",!0);const s=t.dataProvider.tree(t.state.currentPath,t.state.currentSource).then((e=>{t.state.sources=e})).catch(t.status).finally((()=>t.tree.setMod("loading",!1)));return Promise.all([s,e])}return t.tree.setMod("active",!1),e}},140(t,e,s){"use strict";s.d(e,{V(){return w}});var r=s(31635),i=s(77753),o=s(17352),n=s(22664),a=s(50025),l=s(65147),c=s(63915),u=s(58597),h=s(14961),d=(s(70265),s(9979)),p=s(31859),f=s(62994),m=s(18043),g=s(80004),v=s(75889),b=s(83797),y=s(10274),_=s(36115);let w=class t extends h.T{className(){return"FileBrowser"}get dataProvider(){return(0,b.S)(this,this.options)}onSelect(t){return()=>{if(this.state.activeElements.length){const e=[],s=[];this.state.activeElements.forEach((t=>{const r=t.fileURL;r&&(e.push(r),s.push(t.isImage||!1))})),this.close();const r={baseurl:"",files:e,isImages:s};(0,l.isFunction)(t)&&t(r),this.close()}return!1}}get _dialog(){const t=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:this.o.headerButtons??["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach((e=>t.events.on(t,e,(()=>this.e.fire(e))))),t.setSize(this.o.width,this.o.height),t}get storage(){return c.wc.makeStorage(!!this.o.saveStateInStorage,this.componentName)}get isOpened(){return this._dialog.isOpened&&"none"!==this.browser.style.display}status(t,e){t&&!(0,l.isAbort)(t)&&((0,l.isString)(t)||(t=t.message),(0,l.isString)(t)&&(0,l.trim)(t).length&&this.message.message(t,e?"success":"error",this.o.howLongShowMsg))}open(t=this.o.defaultCallback,e=!1){return this.state.onlyImages=e,this.async.promise(((e,s)=>{if(!this.o.items||!this.o.items.url)throw(0,l.error)("Need set options.filebrowser.ajax.url");let r=0;this.e.off(this.files.container,"dblclick").on(this.files.container,"dblclick",this.onSelect(t)).on(this.files.container,"touchstart",(()=>{const e=(new Date).getTime();o.EMULATE_DBLCLICK_TIMEOUT>e-r&&this.onSelect(t)(),r=e})).off("select.filebrowser").on("select.filebrowser",this.onSelect(t));const i=this.c.div();this.toolbar?.build(this.__getButtons()).appendTo(i),this._dialog.open(this.browser,i),this.e.fire("sort.filebrowser",this.state.sortBy),(0,p.r)(this).then(e,s)})).catch((t=>{if(!o.IS_PROD)throw t}))}__getButtons(){return(this.o.buttons??[]).filter((t=>{if(!(0,l.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){const e=this,s=t?.options?.uploader,r=(0,l.ConfigProto)(s||{},_.T.defaultOptions.uploader),i=()=>(0,d.f)(this);e.uploader=e.getInstance("Uploader",r),e.uploader.setPath(e.state.currentPath).setSource(e.state.currentSource).bind(e.browser,i,e.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(()=>{this.uploader.setPath(this.state.currentPath).setSource(this.state.currentSource)})),e.e.on("bindUploader.filebrowser",(t=>{e.uploader.bind(t,i,e.errorHandler)}))}constructor(t){super(t),this.browser=this.c.div(this.componentName),this.status_line=this.c.div(this.getFullElName("status")),this.tree=new y.V(this),this.files=new y.Q(this),this.state=(0,a.sH)({currentPath:"",currentSource:v.o,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),this.errorHandler=t=>{(0,l.isAbort)(t)||this.status(t instanceof Error?this.i18n(t.message):this.dataProvider.getMessage(t))},this.close=()=>{this._dialog.close()},this.attachEvents(t);const e=this;e.options=(0,l.ConfigProto)(t||{},_.T.defaultOptions.filebrowser),e.browser.component=this,e.container=e.browser,e.o.showFoldersPanel&&e.browser.appendChild(e.tree.container),e.browser.appendChild(e.files.container),e.browser.appendChild(e.status_line),m.c.call(e),f.nW.call(e),g.r.call(e),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((t=>{null!=this.options[t]&&(this.options[t]=(0,l.ConfigProto)(this.options[t],this.o.ajax))}));const{storeView:s,storeSortBy:r,storeLastOpenedFolder:o}=this.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},n=s&&this.storage.get("view");e.state.view=n&&null==this.o.view?"list"===n?"list":"tiles":"list"===e.o.view?"list":"tiles",e.files.setMod("view",e.state.view);const c=r&&e.storage.get("sortBy");if(c){const t=c.split("-");e.state.sortBy=["changed","name","size"].includes(t[0])?c:"changed-desc"}else e.state.sortBy=e.o.sortBy||"changed-desc";if(o){const t=e.storage.get("currentPath"),s=e.storage.get("currentSource");e.state.currentPath=t??"",e.state.currentSource=s??""}e.initUploader(e),e.setStatus(i.f.ready)}destruct(){this.isInDestruct||(super.destruct(),this._dialog.destruct(),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}};(0,r.Cg)([n.cache],w.prototype,"dataProvider",null),(0,r.Cg)([n.cache],w.prototype,"_dialog",null),(0,r.Cg)([n.cache],w.prototype,"storage",null),(0,r.Cg)([n.autobind],w.prototype,"status",null),(0,r.Cg)([n.autobind],w.prototype,"open",null),w=(0,r.Cg)([(0,n.derive)(u.z)],w)},19627(t,e,s){"use strict";s.d(e,{V(){return r.V}});var r=s(140)},62994(t,e,s){"use strict";s.d(e,{Gq(){return l},PZ(){return c},nW(){return u}});var r=s(71842),i=s(65147),o=s(49931),n=s(77112),a=s(31859);const l=(t,e,s="a")=>r.J.closest(t,(t=>r.J.isTag(t,s)),e),c=(t,e)=>{const{key:s}=t.dataset,{item:r}=e[s||""];return r};function u(){let t=!1;const e=(0,n.a)(this),s=this;s.e.on(s.tree.container,"dragstart",(e=>{const r=l(e.target,s.container);r&&s.o.moveFolder&&(t=r)})).on(s.tree.container,"drop",(e=>{if((s.o.moveFile||s.o.moveFolder)&&t){let r=(0,i.attr)(t,"-path")||"";if(!s.o.moveFolder&&t.classList.contains(this.tree.getFullElName("item")))return!1;if(t.classList.contains(this.files.getFullElName("item"))&&(r+=(0,i.attr)(t,"-name"),!s.o.moveFile))return!1;const o=l(e.target,s.container);if(!o)return;s.dataProvider.move(r,(0,i.attr)(o,"-path")||"",(0,i.attr)(o,"-source")||"",t.classList.contains(this.files.getFullElName("item"))).then((()=>(0,a.r)(this))).catch(s.status),t=!1}})).on(s.files.container,"contextmenu",(0,o.A)(s)).on(s.files.container,"click",(t=>{(0,i.ctrlKey)(t)||(this.state.activeElements=[])})).on(s.files.container,"click",(t=>{const r=l(t.target,s.container);if(!r)return;const o=c(r,e);return o?(s.state.activeElements=(0,i.ctrlKey)(t)?[...s.state.activeElements,o]:[o],t.stopPropagation(),!1):void 0})).on(s.files.container,"dragstart",(e=>{if(s.o.moveFile){const r=l(e.target,s.container);if(!r)return;t=r}})).on(s.container,"drop",(t=>t.preventDefault()))}},18043(t,e,s){"use strict";s.d(e,{c(){return u}});var r=s(65147),i=s(9823),o=s(75889),n=s(97324),a=s(9979),l=s(31859),c=s(53804);function u(){const t=this.state,e=this.dataProvider,s=this;s.e.on("view.filebrowser",(e=>{e!==t.view&&(t.view=e)})).on("sort.filebrowser",(e=>{e!==t.sortBy&&(t.sortBy=e,(0,a.f)(s))})).on("filter.filebrowser",(e=>{e!==t.filterWord&&(t.filterWord=e,(0,a.f)(s))})).on("openFolder.filebrowser",(t=>{let e;e=".."===t.name?t.path.split("/").filter((t=>t.length)).slice(0,-1).join("/"):(0,r.normalizePath)(t.path,t.name),s.state.currentPath=e,s.state.currentSource="."===t.name?o.o:t.source})).on("removeFolder.filebrowser",(t=>{s.confirm("Are you sure?","Delete",(r=>{r&&e.folderRemove(t.path,t.name,t.source).then((t=>(s.status(t,!0),(0,l.r)(s)))).catch(s.status)}))})).on("renameFolder.filebrowser",(t=>{s.prompt("Enter new name","Rename",(r=>{if(!(0,i.uV)(r))return s.status(s.i18n("Enter new name")),!1;e.folderRename(t.path,t.name,r,t.source).then((t=>(s.state.activeElements=[],s.status(t,!0),(0,l.r)(s)))).catch(s.status)}),"type name",t.name)})).on("addFolder.filebrowser",(t=>{s.prompt("Enter Directory name","Create directory",(r=>{e.createFolder(r,t.path,t.source).then((()=>(0,l.r)(s))).catch(s.status)}),"type name")})).on("fileRemove.filebrowser",(()=>{s.state.activeElements.length&&s.confirm("Are you sure?","",(t=>{if(t){const t=[];s.state.activeElements.forEach((e=>{t.push((0,n.W)(s,e.file||e.name||"",e.sourceName))})),s.state.activeElements=[],Promise.all(t).then((()=>(0,l.r)(s).catch(s.status)),s.status)}}))})).on("edit.filebrowser",(()=>{if(1===s.state.activeElements.length){const[t]=this.state.activeElements;c.B.call(s,t.fileURL,t.file||"",t.path,t.sourceName)}})).on("fileRename.filebrowser",((t,r,o)=>{1===s.state.activeElements.length&&s.prompt("Enter new name","Rename",(n=>{if(!(0,i.uV)(n))return s.status(s.i18n("Enter new name")),!1;e.fileRename(r,t,n,o).then((t=>{s.state.activeElements=[],s.status(t,!0),(0,a.f)(s)})).catch(s.status)}),"type name",t)})).on("update.filebrowser",(()=>{(0,l.r)(this).then(this.status,this.status)}))}},80004(t,e,s){"use strict";s.d(e,{r(){return l}});var r=s(71842),i=s(65499),o=s(92032),n=s(77112),a=s(31859);function l(){const t=(0,n.a)(this),{state:e,files:s,create:l,options:c}=this,u=e=>{const s=e.uniqueHashKey;if(t[s])return t[s].elm;const r=l.fromHTML(c.getThumbTemplate.call(this,e,e.source,""+e.sourceName));return r.dataset.key=s,t[s]={item:e,elm:r},t[s].elm};e.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,a.r)(this).catch(this.status)}),this.defaultTimeout)).on("beforeChange.activeElements",(()=>{e.activeElements.forEach((e=>{const r=e.uniqueHashKey,{elm:i}=t[r];i&&i.classList.remove(s.getFullElName("item","active",!0))}))})).on("change.activeElements",(()=>{this.e.fire("changeSelection"),e.activeElements.forEach((e=>{const r=e.uniqueHashKey,{elm:i}=t[r];i&&i.classList.add(s.getFullElName("item","active",!0))}))})).on("change.view",(()=>{s.setMod("view",e.view),this.o.saveStateInStorage&&this.o.saveStateInStorage.storeView&&this.storage.set("view",e.view)})).on("change.sortBy",(()=>{this.o.saveStateInStorage&&this.o.saveStateInStorage.storeSortBy&&this.storage.set("sortBy",e.sortBy)})).on("change.elements",this.async.debounce((()=>{r.J.detach(s.container),e.elements.length?e.elements.forEach((t=>{this.files.container.appendChild(u(t))})):s.container.appendChild(l.div(this.componentName+"_no-files_true",this.i18n("There are no files")))}),this.defaultTimeout)).on("change.sources",this.async.debounce((()=>{r.J.detach(this.tree.container),e.sources.forEach((t=>{const e=t.name;if(e&&"default"!==e&&this.tree.container.appendChild(l.div(this.tree.getFullElName("source-title"),e)),t.folders.forEach((s=>{const r=l.a(this.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":(0,i.Fd)(t.path,s+"/"),"data-name":s,"data-source":e,"data-source-path":t.path},l.span(this.tree.getFullElName("item-title"),s)),n=r=>o=>{this.e.fire(r+".filebrowser",{name:s,path:(0,i.Fd)(t.path+"/"),source:e}),o.stopPropagation(),o.preventDefault()};if(this.e.on(r,"click",n("openFolder")),this.tree.container.appendChild(r),".."!==s&&"."!==s){if(c.renameFolder&&this.dataProvider.canI("FolderRename")){const t=(0,o.$n)(this,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});t.onAction(n("renameFolder")),r.appendChild(t.container)}if(c.deleteFolder&&this.dataProvider.canI("FolderRemove")){const t=(0,o.$n)(this,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});t.onAction(n("removeFolder")),r.appendChild(t.container)}}})),c.createNewFolder&&this.dataProvider.canI("FolderCreate")){const s=(0,o.$n)(this,"plus","Add folder","secondary");s.onAction((()=>{this.e.fire("addFolder",{path:(0,i.Fd)(t.path+"/"),source:e})})),this.tree.append(s)}}))}),this.defaultTimeout))}},96025(t,e,s){"use strict";s.d(e,{Q(){return i}});var r=s(53048);class i extends r.Ue{className(){return"FileBrowserFiles"}}},10274(t,e,s){"use strict";s.d(e,{Q(){return r.Q},V(){return i.V}});var r=s(96025),i=s(73307)},73307(t,e,s){"use strict";s.d(e,{V(){return i}});var r=s(53048);class i extends r.Ue{className(){return"FileBrowserTree"}}},84345(t,e,s){"use strict";s.d(e,{u(){return r}});class r{undo(){this.history.snapshot.restore(this.oldValue)}redo(){this.history.snapshot.restore(this.newValue)}constructor(t,e,s,r){this.oldValue=t,this.newValue=e,this.history=s,this.tick=r}}},69996(t,e,s){"use strict";s.d(e,{B(){return c}});var r=s(31635),i=s(77753),o=s(22664),n=s(84345),a=s(58770),l=s(66180);s(36115).T.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};class c extends i.vG{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}constructor(t,e=new l.B(t.o.history.maxHistoryLength),s=new a.F(t)){super(t),this.updateTick=0,this.__stack=e,this.snapshot=s,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))}))}__upTick(){this.updateTick+=1}onChange(){this.__processChanges()}__processChanges(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}updateStack(t=!1){const e=this.snapshot.make();if(!a.F.equal(e,this.startValue)){const s=new n.u(this.startValue,e,this,this.updateTick);if(t){const t=this.__stack.current();t&&this.updateTick===t.tick&&this.__stack.replace(s)}else this.__stack.push(s);this.startValue=e,this.fireChangeStack()}}fireChangeStack(){this.j&&!this.j.isInDestruct&&this.j.events?.fire("changeStack")}destruct(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),super.destruct())}}(0,r.Cg)([(0,o.debounce)()],c.prototype,"onChange",null)},58770(t,e,s){"use strict";s.d(e,{F(){return n}});var r=s(77753),i=s(17352),o=s(71842);class n extends r.vG{constructor(){super(...arguments),this.__isBlocked=!1}className(){return"Snapshot"}static equal(t,e){return t.html===e.html&&JSON.stringify(t.range)===JSON.stringify(e.range)}static countNodesBeforeInParent(t){if(!t.parentNode)return 0;const e=t.parentNode.childNodes;let s=0,r=null;for(let i=0;e.length>i;i+=1){if(!r||this.isIgnoredNode(e[i])||o.J.isText(r)&&o.J.isText(e[i])||(s+=1),e[i]===t)return s;r=e[i]}return 0}static strokeOffset(t,e){for(;o.J.isText(t);)o.J.isText(t=t.previousSibling)&&t.nodeValue&&(e+=t.nodeValue.length);return e}calcHierarchyLadder(t){const e=[];if(!t||!t.parentNode||!o.J.isOrContains(this.j.editor,t))return[];for(;t&&t!==this.j.editor;)t&&!n.isIgnoredNode(t)&&e.push(n.countNodesBeforeInParent(t)),t=t.parentNode;return e.reverse()}getElementByLadder(t){let e,s=this.j.editor;for(e=0;s&&t.length>e;e+=1)s=s.childNodes[t[e]];return s}get isBlocked(){return this.__isBlocked}__block(t){this.__isBlocked=t}transaction(t){this.__block(!0);try{t()}catch(t){if(!i.IS_PROD)throw t}this.__block(!1)}make(){const t={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};t.html=this.removeJoditSelection(this.j.editor);const e=this.j.s.sel;if(e&&e.rangeCount){const s=e.getRangeAt(0),r=this.calcHierarchyLadder(s.startContainer),i=this.calcHierarchyLadder(s.endContainer);let o=n.strokeOffset(s.startContainer,s.startOffset),a=n.strokeOffset(s.endContainer,s.endOffset);r.length||s.startContainer===this.j.editor||(o=0),i.length||s.endContainer===this.j.editor||(a=0),t.range={startContainer:r,startOffset:o,endContainer:i,endOffset:a}}return t}restore(t){this.transaction((()=>{const e=this.storeScrollState();this.j.getNativeEditorValue()!==t.html&&(this.j.value=t.html),this.restoreOnlySelection(t),this.restoreScrollState(e)}))}storeScrollState(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}restoreScrollState(t){const{j:e}=this,{ow:s}=e;s.scrollTo(s.scrollX,t[0]),e.editor.scrollTop=t[1]}restoreOnlySelection(t){try{if(t.range){const e=this.j.ed.createRange();e.setStart(this.getElementByLadder(t.range.startContainer),t.range.startOffset),e.setEnd(this.getElementByLadder(t.range.endContainer),t.range.endOffset),this.j.s.selectRange(e)}}catch(t){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild)}}destruct(){this.__block(!1),super.destruct()}static isIgnoredNode(t){return o.J.isText(t)&&!t.nodeValue||o.J.isTemporary(t)}removeJoditSelection(t){const e=t.cloneNode(!0);return e.querySelectorAll(`[${i.TEMP_ATTR}]`).forEach(o.J.unwrap),e.innerHTML}}},66180(t,e,s){"use strict";s.d(e,{B(){return r}});class r{constructor(t){this.size=t,this.commands=[],this.stackPosition=-1}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.commands.length-1>this.stackPosition}}},93027(t,e,s){"use strict";var r=s(931),i=s(928),o=s.n(i),n=s(31230),a=s.n(n);s(36115).T.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%"},r.I.set("crop",o()).set("resize",a())},53804(t,e,s){"use strict";s.d(e,{B(){return g},n(){return m}});var r,i=s(31635),o=s(77753),n=s(22664),a=s(71842),l=s(65147),c=s(35265),u=(s(93027),s(24863)),h=s(36115);const d="jodit-image-editor",p="resize",f="crop";let m=r=class t extends o.vG{className(){return"ImageEditor"}get o(){return this.options}hide(){this._dialog.close()}open(t,e){return this.j.async.promise((s=>{const r=(new Date).getTime();this.image=this.j.c.element("img"),(0,l.$$)("img,.jodit-icon_loader",this.resize_box).forEach(a.J.safeRemove),(0,l.$$)("img,.jodit-icon_loader",this.crop_box).forEach(a.J.safeRemove),(0,l.css)(this.cropHandler,"background","transparent"),this.onSave=e,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"})),this.image.setAttribute("src",t+=/\?/.test(t)?"&_tst="+r:"?_tst="+r),this._dialog.open();const{widthInput:i,heightInput:o}=(0,l.refs)(this.editor),n=()=>{this.isDestructed||(this.image.removeEventListener("load",n),this.naturalWidth=this.image.naturalWidth,this.naturalHeight=this.image.naturalHeight,i.value=""+this.naturalWidth,o.value=""+this.naturalHeight,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.J.safeRemove.apply(null,(0,l.$$)(".jodit-icon_loader",this.editor)),this.activeTab===f&&this.showCrop(),this.j.e.fire(this.resizeHandler,"updatesize"),this.j.e.fire(this.cropHandler,"updatesize"),this._dialog.setPosition(),this.j.e.fire("afterImageEditor"),s(this._dialog))};this.image.addEventListener("load",n),this.image.complete&&n()}))}onTitleModeClick(t){const e=this,s=t.target,r=s?.parentElement;if(!r)return;(0,l.$$)(`.${d}__slider,.${d}__area`,e.editor).forEach((t=>t.classList.remove(d+"_active"))),r.classList.add(d+"_active"),this.activeTab=(0,l.attr)(r,"-area")||p;const i=e.editor.querySelector(`.${d}__area.${d}__area_`+e.activeTab);i&&i.classList.add(d+"_active"),e.activeTab===f&&e.showCrop()}onChangeSizeInput(t){const e=this,s=t.target,{widthInput:r,heightInput:i}=(0,l.refs)(this.editor),o="widthInput"===(0,l.attr)(s,"data-ref"),n=parseInt(s.value,10),a=o?e.o.min_height:e.o.min_width;let c;n>(o?e.o.min_width:e.o.min_height)&&((0,l.css)(e.image,o?"width":"height",n),e.resizeUseRatio&&(c=Math.round(o?n/e.ratio:n*e.ratio),c>a&&((0,l.css)(e.image,o?"height":"width",c),o?i.value=""+c:r.value=""+c))),this.j.e.fire(e.resizeHandler,"updatesize")}onResizeHandleMouseDown(t){const e=this;e.target=t.target,t.preventDefault(),t.stopImmediatePropagation(),e.clicked=!0,e.start_x=t.clientX,e.start_y=t.clientY,e.activeTab===f?(e.top_x=(0,l.css)(e.cropHandler,"left"),e.top_y=(0,l.css)(e.cropHandler,"top"),e.width=e.cropHandler.offsetWidth,e.height=e.cropHandler.offsetHeight):(e.width=e.image.offsetWidth,e.height=e.image.offsetHeight),e.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){const e=this;if(!e.clicked)return;const{widthInput:s,heightInput:r}=(0,l.refs)(this.editor);e.diff_x=t.clientX-e.start_x,e.diff_y=t.clientY-e.start_y,e.activeTab===p&&e.resizeUseRatio||e.activeTab===f&&e.cropUseRatio?e.diff_x?(e.new_w=e.width+e.diff_x,e.new_h=Math.round(e.new_w/e.ratio)):(e.new_h=e.height+e.diff_y,e.new_w=Math.round(e.new_h*e.ratio)):(e.new_w=e.width+e.diff_x,e.new_h=e.height+e.diff_y),e.activeTab===p?(e.new_w>e.o.resizeMinWidth&&((0,l.css)(e.image,"width",e.new_w+"px"),s.value=""+e.new_w),e.new_h>e.o.resizeMinHeight&&((0,l.css)(e.image,"height",e.new_h+"px"),r.value=""+e.new_h),this.j.e.fire(e.resizeHandler,"updatesize")):(e.target!==e.cropHandler?(e.top_x+e.new_w>e.cropImage.offsetWidth&&(e.new_w=e.cropImage.offsetWidth-e.top_x),e.top_y+e.new_h>e.cropImage.offsetHeight&&(e.new_h=e.cropImage.offsetHeight-e.top_y),(0,l.css)(e.cropHandler,{width:e.new_w,height:e.new_h})):(e.top_x+e.diff_x+e.cropHandler.offsetWidth>e.cropImage.offsetWidth&&(e.diff_x=e.cropImage.offsetWidth-e.top_x-e.cropHandler.offsetWidth),(0,l.css)(e.cropHandler,"left",e.top_x+e.diff_x),e.top_y+e.diff_y+e.cropHandler.offsetHeight>e.cropImage.offsetHeight&&(e.diff_y=e.cropImage.offsetHeight-e.top_y-e.cropHandler.offsetHeight),(0,l.css)(e.cropHandler,"top",e.top_y+e.diff_y)),this.j.e.fire(e.cropHandler,"updatesize"))}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=p,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=()=>{const t=this.crop_box.parentNode,e=.8*t.offsetWidth,s=.8*t.offsetHeight;let r=e,i=s;const{naturalWidth:o,naturalHeight:n}=this;e>o&&s>n?(r=o,i=n):this.ratio>e/s?(r=e,i=n*(e/o)):(r=o*(s/n),i=s),(0,l.css)(this.crop_box,{width:r,height:i})},this.showCrop=()=>{if(!this.cropImage)return;this.calcCropBox();const t=this.cropImage.offsetWidth||this.image.offsetWidth||this.image.naturalWidth;this.new_w=r.calcValueByPercent(t,this.o.cropDefaultWidth);const e=this.cropImage.offsetHeight||this.image.offsetHeight||this.image.naturalHeight;this.new_h=this.cropUseRatio?this.new_w/this.ratio:r.calcValueByPercent(e,this.o.cropDefaultHeight),(0,l.css)(this.cropHandler,{backgroundImage:"url("+(0,l.attr)(this.cropImage,"src")+")",width:this.new_w,height:this.new_h,left:t/2-this.new_w/2,top:e/2-this.new_h/2}),this.j.e.fire(this.cropHandler,"updatesize")},this.updateCropBox=()=>{if(!this.cropImage)return;const t=this.cropImage.offsetWidth/this.naturalWidth,e=this.cropImage.offsetHeight/this.naturalHeight;this.cropBox.x=(0,l.css)(this.cropHandler,"left")/t,this.cropBox.y=(0,l.css)(this.cropHandler,"top")/e,this.cropBox.w=this.cropHandler.offsetWidth/t,this.cropBox.h=this.cropHandler.offsetHeight/e,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=()=>{const t=this,{widthInput:e,heightInput:s}=(0,l.refs)(this.editor);t.j.e.on([t.editor.querySelector(".jodit_bottomright"),t.cropHandler],"mousedown."+d,this.onResizeHandleMouseDown).on(this.j.ow,"resize."+d,(()=>{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(`.${d}__slider-title`)),"click",this.onTitleModeClick).on([e,s],"input",this.onChangeSizeInput);const{keepAspectRatioResize:r,keepAspectRatioCrop:i}=(0,l.refs)(this.editor);r&&r.addEventListener("change",(()=>{this.resizeUseRatio=r.checked})),i&&i.addEventListener("change",(()=>{this.cropUseRatio=i.checked})),t.j.e.on(t.resizeHandler,"updatesize",(()=>{(0,l.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 e=(0,l.css)(t.cropHandler,"left"),s=(0,l.css)(t.cropHandler,"top"),r=t.cropHandler.offsetWidth,i=t.cropHandler.offsetHeight;0>e&&(e=0),0>s&&(s=0),e+r>t.cropImage.offsetWidth&&(r=t.cropImage.offsetWidth-e,t.cropUseRatio&&(i=r/t.ratio)),s+i>t.cropImage.offsetHeight&&(i=t.cropImage.offsetHeight-s,t.cropUseRatio&&(r=i*t.ratio)),(0,l.css)(t.cropHandler,{width:r,height:i,left:e,top:s,backgroundPosition:-e-1+"px "+(-s-1)+"px",backgroundSize:t.cropImage.offsetWidth+"px "+t.cropImage.offsetHeight+"px"}),t.updateCropBox()})),Object.values(t.buttons).forEach((r=>{r.onAction((()=>{const i={action:t.activeTab,box:t.activeTab===p?t.resizeBox:t.cropBox};switch(r){case t.buttons.saveas:t.j.prompt("Enter new name","Save in new file",(e=>{if(!(0,l.trim)(e))return t.j.alert("The name should not be empty"),!1;t.onSave(e,i,t.hide,(e=>{t.j.alert(e.message)}))}));break;case t.buttons.save:t.onSave(void 0,i,t.hide,(e=>{t.j.alert(e.message)}));break;case t.buttons.reset:t.activeTab===p?((0,l.css)(t.image,{width:null,height:null}),e.value=""+t.naturalWidth,s.value=""+t.naturalHeight,t.j.e.fire(t.resizeHandler,"updatesize")):t.showCrop()}}))}))},this.options=t&&t.o&&t.o.imageeditor?t.o.imageeditor:h.T.defaultOptions.imageeditor;const e=this.options;this.resizeUseRatio=e.resizeUseRatio,this.cropUseRatio=e.cropUseRatio,this.buttons={reset:(0,c.$n)(this.j,"update","Reset"),save:(0,c.$n)(this.j,"save","Save"),saveas:(0,c.$n)(this.j,"save","Save as ...")},this.activeTab=e.resize?p:f,this.editor=(0,u.Z)(this.j,this.options);const{resizeBox:s,cropBox:i}=(0,l.refs)(this.editor);this.resize_box=s,this.crop_box=i,this.sizes=this.editor.querySelector(`.${d}__area.${d}__area_crop .jodit-image-editor__sizes`),this.resizeHandler=this.editor.querySelector(`.${d}__resizer`),this.cropHandler=this.editor.querySelector(`.${d}__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()}destruct(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),a.J.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,"."+d).off("."+d),super.destruct())}};function g(t,e,s,r,i,o){return this.getInstance("ImageEditor",this.o).open(t,((t,n,a,c)=>(0,l.call)("resize"===n.action?this.dataProvider.resize:this.dataProvider.crop,s,r,e,t,n.box).then((t=>{t&&(a(),i&&i())})).catch((t=>{c(t),o&&o(t)}))))}m.calcValueByPercent=(t,e)=>{const s=""+e,r=parseFloat(""+t);let i;return i=/^[-+]?[0-9]+(px)?$/.exec(s),i?parseInt(s,10):(i=/^([-+]?[0-9.]+)%$/.exec(s),i?Math.round(r*(parseFloat(i[1])/100)):r||0)},(0,i.Cg)([n.autobind],m.prototype,"hide",null),(0,i.Cg)([n.autobind],m.prototype,"open",null),(0,i.Cg)([n.autobind],m.prototype,"onTitleModeClick",null),(0,i.Cg)([(0,n.debounce)(),n.autobind],m.prototype,"onChangeSizeInput",null),(0,i.Cg)([n.autobind],m.prototype,"onResizeHandleMouseDown",null),(0,i.Cg)([n.autobind],m.prototype,"onGlobalMouseUp",null),(0,i.Cg)([(0,n.throttle)(10)],m.prototype,"onGlobalMouseMove",null),m=r=(0,i.Cg)([n.component],m)},24863(t,e,s){"use strict";s.d(e,{Z(){return a}});var r=s(53048);const i="jodit-image-editor",o=r.In.get.bind(r.In),n=(t,e="jodti-image-editor_active")=>t?e:"",a=(t,e)=>{const s=t.i18n.bind(t),r=(t,e,r=!0)=>`<div class="jodit-form__group">\n\t\t\t<label>${s(t)}</label>\n\n\t\t\t<label class='jodit-switcher'>\n\t\t\t\t<input ${n(r,"checked")} data-ref="${e}" type="checkbox"/>\n\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t</label>\n\t</div>`;return t.create.fromHTML(`<form class="${i} jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div class="${i}__area ${i}__area_resize ${i}_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="${i}__box"></div>\n\t\t\t\t\t\t\t<div class="${i}__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div class="${i}__area ${i}__area_crop ${n(!e.resize)}">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="${i}__box">\n\t\t\t\t\t\t\t\t<div class="${i}__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="${i}__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t${e.resize?`<div data-area="resize" class="${i}__slider ${i}_active">\n\t\t\t\t\t\t\t<div class="${i}__slider-title">\n\t\t\t\t\t\t\t\t${o("resize")}\n\t\t\t\t\t\t\t\t${s("Resize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${i}__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Width")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t${s("Height")}\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t${r("Keep Aspect Ratio","keepAspectRatioResize")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t${e.crop?`<div data-area="crop" class="${i}__slider ${n(!e.resize)}'">\n\t\t\t\t\t\t\t<div class="${i}__slider-title">\n\t\t\t\t\t\t\t\t${o("crop")}\n\t\t\t\t\t\t\t\t${s("Crop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="${i}__slider-content">\n\t\t\t\t\t\t\t\t${r("Keep Aspect Ratio","keepAspectRatioCrop")}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>`:""}\n\t\t\t</div>\n\t\t</div>\n\t</form>`)}},37435(t,e,s){"use strict";s.r(e),s.d(e,{Ajax(){return p.d},Alert(){return n.Fc},Async(){return l.j},Button(){return f.$n},CommitStyle(){return j.xk},Component(){return r.uA},Confirm(){return n.pT},ContextMenu(){return o.t},Create(){return c.X},Dialog(){return n.lG},Dom(){return u.J},EventEmitter(){return h.bk},EventHandlersStore(){return h.d$},Eventify(){return h.h5},FileBrowser(){return a.V},Helpers(){return i},History(){return v.B},Icon(){return f.In},ImageEditor(){return y.n},LazyWalker(){return u.p},Plugin(){return d.k},PluginSystem(){return I.$},Popup(){return f.zD},ProgressBar(){return f.z2},Prompt(){return n.XG},Response(){return p.Y},STATUSES(){return r.f},Selection(){return j.LN},Snapshot(){return b.F},StatusBar(){return w.e},Table(){return C.X},ToolbarButton(){return S.IB},ToolbarCollection(){return E.Q},ToolbarContent(){return S.P1},ToolbarEditorCollection(){return T.b},ToolbarSelect(){return S.q4},UIBlock(){return f.Yh},UIButton(){return f.lD},UIButtonGroup(){return f.ss},UIButtonState(){return f.ue},UICheckbox(){return f.cY},UIElement(){return f.D$},UIFileInput(){return f.nE},UIForm(){return f.XV},UIGroup(){return f.Ue},UIInput(){return f.tS},UIList(){return f.z4},UIMessages(){return _.N},UISelect(){return f.$6},UISeparator(){return f.CP},UISpacer(){return f.bk},UITextArea(){return f.F0},UITooltip(){return f.SB},Uploader(){return x.d},View(){return m.S},ViewComponent(){return r.vG},ViewWithToolbar(){return g.T},defaultNameSpace(){return h.Xr},observable(){return h.sH}});var r=s(77753),i=s(65147),o=s(34248),n=s(34256),a=s(19627),l=s(64890),c=s(40594),u=s(71842),h=s(50025),d=s(71005),p=s(53883),f=s(53048),m=s(77782),g=s(14961),v=s(69996),b=s(58770),y=s(53804),_=s(91902),w=s(62870),C=s(11648),S=s(5832),E=s(97394),T=s(90428),x=s(26538),I=s(77402),j=s(87332)},91479(t,e,s){"use strict";s.d(e,{C(){return n}});var r=s(31635),i=s(24767),o=s(53048);let n=class t extends o.D${className(){return"UIMessage"}constructor(t,e){super(t),this.setMod("active",!0),this.setMod("variant",e.variant),this.container.textContent=e.text}};n=(0,r.Cg)([i.s],n)},91902(t,e,s){"use strict";s.d(e,{N(){return l}});var r=s(31635),i=s(24767),o=s(38322),n=s(6455),a=s(91479);let l=class t extends n.U{className(){return"UIMessages"}constructor(t,e,s={defaultTimeout:3e3,defaultOffset:5}){super(t),this.__box=e,this.options=s,this.__messages=new Set}info(t,e){this.__message(t,"info",e)}success(t,e){this.__message(t,"success",e)}error(t,e){this.__message(t,"error",e)}message(t,e,s){this.__message(t,e,s)}__message(t,e="info",s){const r=t+":"+e;if(this.__messages.has(r))return void this.async.updateTimeout(r,s||this.options.defaultTimeout);this.__box.appendChild(this.container);const i=new a.C(this.j,{text:t,variant:e});this.append(i),this.__calcOffsets(),this.__messages.add(r);const o=this.__getRemoveCallback(i,r);this.j.e.on(i.container,"pointerdown",o),this.async.setTimeout(o,{label:r,timeout:s||this.options.defaultTimeout})}__getRemoveCallback(t,e){const s=r=>{r&&r.preventDefault(),t.isInDestruct||(this.async.clearTimeout(e),this.j.e.off(t.container,"pointerdown",s),this.__messages.delete(e),t.setMod("active",!1),this.async.setTimeout((()=>{this.remove(t),t.destruct(),this.__calcOffsets()}),300))};return s}__calcOffsets(){let t=5;this.elements.forEach((e=>{(0,o.A)(e.container,"bottom",t+"px"),t+=e.container.offsetHeight+this.options.defaultOffset}))}};l=(0,r.Cg)([i.s],l)},62870(t,e,s){"use strict";s.d(e,{e(){return c}});var r=s(31635),i=s(77753),o=s(22664),n=s(55186),a=s(87906),l=s(75758);let c=class t extends i.vG{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(){return this.container?.offsetHeight??0}findEmpty(t=!1){const e=this.getElms(t?"item-right":"item");for(let t=0;e.length>t;t+=1)if(!e[t].innerHTML.trim().length)return e[t]}append(t,e=!1){const s=this.findEmpty(e)||this.j.c.div(this.getFullElName("item"));e&&s.classList.add(this.getFullElName("item-right")),s.appendChild(t),this.container?.appendChild(s),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}constructor(t,e){super(t),this.target=e,this.mods={},this.container=t.c.div("jodit-status-bar"),e.appendChild(this.container),this.hide()}destruct(){this.isInDestruct||(this.setStatus(i.f.beforeDestruct),n.J.safeRemove(this.container),super.destruct())}};c=(0,r.Cg)([o.component,(0,o.derive)(l.K,a.O)],c)},11648(t,e,s){"use strict";s.d(e,{X(){return h}});var r=s(31635),i=s(77753),o=s(17352),n=s(22664),a=s(71842),l=s(56298),c=s(65147);const u=new WeakMap;class h extends i.vG{constructor(){super(...arguments),this.selected=new Set}className(){return"Table"}__recalculateStyles(){const t=(0,l.My)(this.j,h,"style",!0),e=[];this.selected.forEach((t=>{const s=(0,c.cssPath)(t);s&&e.push(s)})),t.innerHTML=e.length?e.join(",")+`{${this.jodit.options.table.selectionCellStyle}}`:""}addSelection(t){this.selected.add(t),this.__recalculateStyles();const e=a.J.closest(t,"table",this.j.editor);if(e){const s=h.__selectedByTable.get(e)||new Set;s.add(t),h.__selectedByTable.set(e,s)}}removeSelection(t){this.selected.delete(t),this.__recalculateStyles();const e=a.J.closest(t,"table",this.j.editor);if(e){const s=h.__selectedByTable.get(e);s&&(s.delete(t),s.size||h.__selectedByTable.delete(e))}}getAllSelectedCells(){return(0,c.toArray)(this.selected)}static __getSelectedCellsByTable(t){const e=h.__selectedByTable.get(t);return e?(0,c.toArray)(e):[]}destruct(){return this.selected.clear(),super.destruct()}static __getRowsCount(t){return t.rows.length}getRowsCount(t){return h.__getRowsCount(t)}static __getColumnsCount(t){return h.__formalMatrix(t).reduce(((t,e)=>Math.max(t,e.length)),0)}getColumnsCount(t){return h.__getColumnsCount(t)}static __formalMatrix(t,e){const s=[[]],r=(0,c.toArray)(t.rows),i=(t,r)=>{void 0===s[r]&&(s[r]=[]);const i=t.colSpan,o=t.rowSpan;let n,a,l=0;for(;s[r][l];)l+=1;for(a=0;o>a;a+=1)for(n=0;i>n;n+=1){if(void 0===s[r+a]&&(s[r+a]=[]),e&&!1===e(t,r+a,l+n,i,o))return!1;s[r+a][l+n]=t}};for(let t=0;r.length>t;t+=1){const e=(0,c.toArray)(r[t].cells);for(let r=0;e.length>r;r+=1)if(!1===i(e[r],t))return s}return s}formalMatrix(t,e){return h.__formalMatrix(t,e)}static __formalCoordinate(t,e,s=!1){let r=0,i=0,o=1,n=1;return h.__formalMatrix(t,((t,a,l,c,u)=>{if(e===t)return r=a,i=l,o=c||1,n=u||1,s&&(i+=(c||1)-1,r+=(u||1)-1),!1})),[r,i,o,n]}formalCoordinate(t,e,s=!1){return h.__formalCoordinate(t,e,s)}static __appendRow(t,e,s,r){let i;if(e)i=e.cloneNode(!0),(0,c.$$)("td,th",e).forEach((t=>{const e=(0,c.attr)(t,"rowspan");if(e&&parseInt(e,10)>1){const s=parseInt(e,10)-1;(0,c.attr)(t,"rowspan",s>1?s:null)}})),(0,c.$$)("td,th",i).forEach((t=>{t.innerHTML=""}));else{const e=h.__getColumnsCount(t);i=r.element("tr");for(let t=0;e>t;t+=1)i.appendChild(r.element("td"))}s&&e&&e.nextSibling?e.parentNode&&e.parentNode.insertBefore(i,e.nextSibling):!s&&e?e.parentNode&&e.parentNode.insertBefore(i,e):(t.getElementsByTagName("tbody")?.[0]||t).appendChild(i)}appendRow(t,e,s){return h.__appendRow(t,e,s,this.j.createInside)}static __removeRow(t,e){const s=h.__formalMatrix(t);let r;const i=t.rows[e];s[e].forEach(((o,n)=>{if(r=!1,0>e-1||s[e-1][n]!==o)if(s[e+1]&&s[e+1][n]===o){if(o.parentNode===i&&o.parentNode.nextSibling){r=!0;let i=n+1;for(;s[e+1][i]===o;)i+=1;const l=a.J.next(o.parentNode,(t=>a.J.isTag(t,"tr")),t);l&&(s[e+1][i]?l.insertBefore(o,s[e+1][i]):l.appendChild(o))}}else a.J.safeRemove(o);else r=!0;if(r&&(o.parentNode===i||o!==s[e][n-1])){const t=o.rowSpan;(0,c.attr)(o,"rowspan",t-1>1?t-1:null)}})),a.J.safeRemove(i)}removeRow(t,e){return h.__removeRow(t,e)}static __appendColumn(t,e,s,r){const i=h.__formalMatrix(t);let o;for((void 0===e||0>e)&&(e=h.__getColumnsCount(t)-1),o=0;i.length>o;o+=1){const t=r.element("td"),n=i[o][e];let l=!1;s?(i[o]&&n&&e+1>=i[o].length||n!==i[o][e+1])&&(n.nextSibling?a.J.before(n.nextSibling,t):n.parentNode&&n.parentNode.appendChild(t),l=!0):(0>e-1||i[o][e]!==i[o][e-1]&&i[o][e].parentNode)&&(a.J.before(i[o][e],t),l=!0),l||(0,c.attr)(i[o][e],"colspan",parseInt((0,c.attr)(i[o][e],"colspan")||"1",10)+1)}}appendColumn(t,e,s){return h.__appendColumn(t,e,s,this.j.createInside)}static __removeColumn(t,e){const s=h.__formalMatrix(t);let r;s.forEach(((t,i)=>{const o=t[e];if(r=!1,0>e-1||s[i][e-1]!==o?t.length>e+1&&s[i][e+1]===o?r=!0:a.J.safeRemove(o):r=!0,r&&(0>i-1||o!==s[i-1][e])){const t=o.colSpan;(0,c.attr)(o,"colspan",t-1>1?""+(t-1):null)}}))}removeColumn(t,e){return h.__removeColumn(t,e)}static __getSelectedBound(t,e){const s=[[1/0,1/0],[0,0]],r=h.__formalMatrix(t);let i,o,n;for(i=0;r.length>i;i+=1)for(o=0;r[i]&&r[i].length>o;o+=1)e.includes(r[i][o])&&(s[0][0]=Math.min(i,s[0][0]),s[0][1]=Math.min(o,s[0][1]),s[1][0]=Math.max(i,s[1][0]),s[1][1]=Math.max(o,s[1][1]));for(i=s[0][0];s[1][0]>=i;i+=1)for(n=1,o=s[0][1];s[1][1]>=o;o+=1){for(;r[i]&&r[i][o-n]&&r[i][o]===r[i][o-n];)s[0][1]=Math.min(o-n,s[0][1]),s[1][1]=Math.max(o-n,s[1][1]),n+=1;for(n=1;r[i]&&r[i][o+n]&&r[i][o]===r[i][o+n];)s[0][1]=Math.min(o+n,s[0][1]),s[1][1]=Math.max(o+n,s[1][1]),n+=1;for(n=1;r[i-n]&&r[i][o]===r[i-n][o];)s[0][0]=Math.min(i-n,s[0][0]),s[1][0]=Math.max(i-n,s[1][0]),n+=1;for(n=1;r[i+n]&&r[i][o]===r[i+n][o];)s[0][0]=Math.min(i+n,s[0][0]),s[1][0]=Math.max(i+n,s[1][0]),n+=1}return s}getSelectedBound(t,e){return h.__getSelectedBound(t,e)}static __normalizeTable(t){let e,s,r,i;const o=[],n=h.__formalMatrix(t);for(s=0;n[0].length>s;s+=1){for(r=1e6,i=!1,e=0;n.length>e;e+=1)if(void 0!==n[e][s]){if(2>n[e][s].colSpan){i=!0;break}r=Math.min(r,n[e][s].colSpan)}if(!i)for(e=0;n.length>e;e+=1)void 0!==n[e][s]&&h.__mark(n[e][s],"colspan",n[e][s].colSpan-r+1,o)}for(e=0;n.length>e;e+=1){for(r=1e6,i=!1,s=0;n[e].length>s;s+=1)if(void 0!==n[e][s]){if(2>n[e][s].rowSpan){i=!0;break}r=Math.min(r,n[e][s].rowSpan)}if(!i)for(s=0;n[e].length>s;s+=1)void 0!==n[e][s]&&h.__mark(n[e][s],"rowspan",n[e][s].rowSpan-r+1,o)}for(e=0;n.length>e;e+=1)for(s=0;n[e].length>s;s+=1)void 0!==n[e][s]&&(n[e][s].hasAttribute("rowspan")&&1===n[e][s].rowSpan&&(0,c.attr)(n[e][s],"rowspan",null),n[e][s].hasAttribute("colspan")&&1===n[e][s].colSpan&&(0,c.attr)(n[e][s],"colspan",null),n[e][s].hasAttribute("class")&&!(0,c.attr)(n[e][s],"class")&&(0,c.attr)(n[e][s],"class",null));h.__unmark(o)}normalizeTable(t){return h.__normalizeTable(t)}static __mergeSelected(t,e){const s=[],r=h.__getSelectedBound(t,h.__getSelectedCellsByTable(t));let i,n=0,l=null,u=0,p=0,f=0;const m=new Set,g=[];r&&(r[0][0]-r[1][0]||r[0][1]-r[1][1])&&(h.__formalMatrix(t,((t,o,a,v,b)=>{if(!(r[0][0]>o||o>r[1][0]||r[0][1]>a||a>r[1][1])){if(i=t,m.has(i))return;m.add(i),o===r[0][0]&&i.style.width&&(n+=i.offsetWidth),""!==(0,c.trim)(t.innerHTML.replace(/<br(\/)?>/g,""))&&s.push(t.innerHTML),v>1&&(p+=v-1),b>1&&(f+=b-1),l?(h.__mark(i,"remove",1,g),d(e).removeSelection(i)):(l=t,u=a)}})),p=r[1][1]-r[0][1]+1,f=r[1][0]-r[0][0]+1,l&&(p>1&&h.__mark(l,"colspan",p,g),f>1&&h.__mark(l,"rowspan",f,g),n&&(h.__mark(l,"width",(n/t.offsetWidth*100).toFixed(o.ACCURACY)+"%",g),u&&h.__setColumnWidthByDelta(t,u,0,!0,g)),l.innerHTML=s.join("<br/>"),d(e).addSelection(l),m.delete(l),h.__unmark(g),h.__normalizeTable(t),(0,c.toArray)(t.rows).forEach(((t,e)=>{t.cells.length||a.J.safeRemove(t)}))))}mergeSelected(t){return h.__mergeSelected(t,this.j)}static __splitHorizontal(t,e){let s,r,i,o,n;const l=[];h.__getSelectedCellsByTable(t).forEach((c=>{r=e.createInside.element("td"),r.appendChild(e.createInside.element("br")),i=e.createInside.element("tr"),s=h.__formalCoordinate(t,c),2>c.rowSpan?(h.__formalMatrix(t,((t,e,r)=>{s[0]===e&&s[1]!==r&&t!==c&&h.__mark(t,"rowspan",t.rowSpan+1,l)})),a.J.after(a.J.closest(c,"tr",t),i),i.appendChild(r)):(h.__mark(c,"rowspan",c.rowSpan-1,l),h.__formalMatrix(t,((e,r,i)=>{r>s[0]&&s[0]+c.rowSpan>r&&s[1]>i&&e.parentNode.rowIndex===r&&(n=e),r>s[0]&&e===c&&(o=t.rows[r])})),n?a.J.after(n,r):o.insertBefore(r,o.firstChild)),c.colSpan>1&&h.__mark(r,"colspan",c.colSpan,l),h.__unmark(l),d(e).removeSelection(c)})),this.__normalizeTable(t)}splitHorizontal(t){return h.__splitHorizontal(t,this.j)}static __splitVertical(t,e){let s,r,i;const n=[];h.__getSelectedCellsByTable(t).forEach((l=>{s=h.__formalCoordinate(t,l),2>l.colSpan?h.__formalMatrix(t,((t,e,r)=>{s[1]===r&&s[0]!==e&&t!==l&&h.__mark(t,"colspan",t.colSpan+1,n)})):h.__mark(l,"colspan",l.colSpan-1,n),r=e.createInside.element("td"),r.appendChild(e.createInside.element("br")),l.rowSpan>1&&h.__mark(r,"rowspan",l.rowSpan,n);const c=l.offsetWidth;a.J.after(l,r),i=c/t.offsetWidth/2,h.__mark(l,"width",(100*i).toFixed(o.ACCURACY)+"%",n),h.__mark(r,"width",(100*i).toFixed(o.ACCURACY)+"%",n),h.__unmark(n),d(e).removeSelection(l)})),h.__normalizeTable(t)}splitVertical(t){return h.__splitVertical(t,this.j)}static __setColumnWidthByDelta(t,e,s,r,i){const n=h.__formalMatrix(t);let a=0;for(let r=0;n.length>r;r+=1){const l=n[r][e];if(1>=l.colSpan||1>=n.length){h.__mark(l,"width",((l.offsetWidth+s)/t.offsetWidth*100).toFixed(o.ACCURACY)+"%",i),a=r;break}}for(let t=a+1;n.length>t;t+=1)h.__mark(n[t][e],"width",null,i);r||h.__unmark(i)}setColumnWidthByDelta(t,e,s,r,i){return h.__setColumnWidthByDelta(t,e,s,r,i)}static __mark(t,e,s,r){r.push(t);const i=u.get(t)??{};i[e]=void 0===s?1:s,u.set(t,i)}static __unmark(t){t.forEach((t=>{const e=u.get(t);e&&(Object.keys(e).forEach((s=>{const r=e[s];switch(s){case"remove":a.J.safeRemove(t);break;case"rowspan":(0,c.attr)(t,"rowspan",(0,c.isNumber)(r)&&r>1?r:null);break;case"colspan":(0,c.attr)(t,"colspan",(0,c.isNumber)(r)&&r>1?r:null);break;case"width":null==r?(t.style.removeProperty("width"),(0,c.attr)(t,"style")||(0,c.attr)(t,"style",null)):t.style.width=""+r}delete e[s]})),u.delete(t))}))}}h.__selectedByTable=new WeakMap,(0,r.Cg)([(0,n.debounce)()],h.prototype,"__recalculateStyles",null);const d=t=>t.getInstance("Table",t.o)},3258(t,e,s){"use strict";s.d(e,{I(){return f}});var r=s(31635),i=s(64567),o=s(22664),n=s(71842),a=s(65147),l=s(35265),c=s(57023),u=s(931),h=s(80071),d=s(97394),p=s(8809);let f=class t extends l.lD{className(){return"ToolbarButton"}get toolbar(){return this.closest(d.Q)}update(){const{control:t,state:e}=this,s=this.closest(d.Q);if(!s)return;const r=t.value?.(s.jodit,this);void 0!==r&&(e.value=r),e.disabled=this.__calculateDisabledStatus(s),e.activated=this.__calculateActivatedStatus(s),t.update?.(s.jodit,this)}__calculateActivatedStatus(t){return!((0,a.isJoditObject)(this.j)&&!this.j.editorIsActive||!this.control.isActive?.(this.j,this)&&(!t||!t.shouldBeActive(this)))}__calculateDisabledStatus(t){return!(!this.j.o.disabled&&(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))&&!this.control.isDisabled?.(this.j,this)&&(!t||!t.shouldBeDisabled(this)))}onChangeActivated(){(0,a.attr)(this.button,"aria-pressed",this.state.activated),super.onChangeActivated()}onChangeText(){(0,a.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,a.attr)(this.button,"tabindex",this.state.tabIndex)}createContainer(){const t=this.componentName,e=this.j.c.span(t),s=super.createContainer();(0,a.attr)(e,"role","listitem"),s.classList.remove(t),s.classList.add(t+"__button"),Object.defineProperty(s,"component",{value:this}),e.appendChild(s);const r=this.j.c.fromHTML(`<span role="trigger" class="${t}__trigger">${u.I.get("chevron")}</span>`);return s.appendChild(r),e}focus(){this.container.querySelector("button")?.focus()}onChangeHasTrigger(){this.state.hasTrigger?this.container.appendChild(this.trigger):n.J.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}onChangeDisabled(){const t=this.state.disabled?"disabled":null;(0,a.attr)(this.trigger,"disabled",t),(0,a.attr)(this.button,"disabled",t),(0,a.attr)(this.container,"disabled",t)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.state={...(0,l.ue)(),theme:"toolbar",currentValue:"",hasTrigger:!1},this.openedPopup=null;const r=this.getElm("button");this.button=r,Object.defineProperty(r,"component",{value:this,configurable:!0});const o=this.getElm("trigger");this.trigger=o,o.remove(),t.e.on([this.button,this.trigger],"mousedown",(t=>t.preventDefault())),this.onAction(this.onClick),this.hookStatus(i.f.ready,(()=>{this.__initFromControl(),this.update()})),e.mods&&Object.keys(e.mods).forEach((t=>{e.mods&&this.setMod(t,e.mods[t])}))}__initFromControl(){const{control:t,state:e}=this;this.updateSize(),e.name=t.name;const{textIcons:s}=this.j.o;if(!0===s||(0,a.isFunction)(s)&&s(t.name)||t.template)e.icon=(0,l.ue)().icon,e.text=t.text||t.name;else{if(t.iconURL)e.icon.iconURL=t.iconURL;else{const s=t.icon||t.name;e.icon.name=u.I.exists(s)||this.j.o.extraIcons?.[s]?s:""}t.iconURL||e.icon.name||(e.text=t.text||t.name)}t.tooltip&&(e.tooltip=this.j.i18n((0,a.isFunction)(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),e.hasTrigger=!!(t.list||t.popup&&t.exec)}onTriggerClick(t){if(this.openedPopup)return void this.__closePopup();const{control:e}=this;if(t.buffer={actionTrigger:this},e.list)return this.__openControlList(e);if((0,a.isFunction)(e.popup)){const t=this.openPopup();if(t.parentElement=this,!1!==this.j.e.fire((0,a.camelCase)(`before-${e.name}-open-popup`),this.target,e,t)){const s=this.toolbar?.getTarget(this)??this.target??null,r=e.popup(this.j,s,this.__closePopup,this);r&&t.setContent((0,a.isString)(r)?this.j.c.fromHTML(r):r).open((()=>(0,a.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0)}this.j.e.fire((0,a.camelCase)(`after-${e.name}-open-popup`),t.container)}}__openControlList(t){const e=this.jodit.options.controls??{},s=t=>(0,c.x)(t,e),r=t.list,i=this.openPopup(),o=(0,p.$K)(this.j);i.parentElement=this,o.parentElement=i,o.mode="vertical";const n=(e,r)=>{if((0,a.isString)(r)&&s(r))return{name:""+r,...s(r)};if((0,a.isString)(e)&&s(e))return{name:""+e,...s(e),..."object"==typeof r?r:{}};(t=>(0,a.isPlainObject)(t)&&"title"in t&&"value"in t)(e)&&(r=e.value,e=e.title);const{childTemplate:i}=t,o={name:""+e,template:i&&((t,e,s)=>i(t,e,s,this)),exec:t.childExec?(e,s,r)=>t.childExec?.(e,s,{...r,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:[],e,r]};return(0,a.isString)(r)&&(o.text=r),o};o.build((0,a.isArray)(r)?r.map(n):(0,a.keys)(r,!1).map((t=>n(t,r[t]))),this.target),i.setContent(o).open((()=>(0,a.position)(this.container)),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}onOutsideClick(t){this.openedPopup&&(t&&n.J.isNode(t.target)&&(n.J.isOrContains(this.container,t.target)||this.openedPopup.isOwnClick(t))||this.__closePopup())}openPopup(){return this.__closePopup(),this.openedPopup=new h.z(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)}onClick(t){const{control:e}=this;if((0,a.isFunction)(e.exec)){const s=this.toolbar?.getTarget(this)??this.target??null,r=e.exec(this.j,s,{control:e,originalEvent:t,button:this});if(!1!==r&&!0!==r&&(this.j?.e?.fire("synchro"),this.parentElement&&this.parentElement.update(),this.j?.e?.fire("closeAllPopups afterExec")),!1!==r)return}return e.list?this.__openControlList(e):(0,a.isFunction)(e.popup)?this.onTriggerClick(t):void((e.command||e.name)&&((0,a.call)((0,a.isJoditObject)(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),e.command||e.name,!1,e.args&&e.args[0]),this.j.e.fire("closeAllPopups")))}destruct(){return this.__closePopup(),super.destruct()}};(0,r.Cg)([o.cacheHTML],f.prototype,"createContainer",null),(0,r.Cg)([(0,o.watch)("state.hasTrigger",{immediately:!1})],f.prototype,"onChangeHasTrigger",null),(0,r.Cg)([(0,o.watch)("trigger:click")],f.prototype,"onTriggerClick",null),(0,r.Cg)([o.autobind],f.prototype,"onOutsideClick",null),(0,r.Cg)([o.autobind],f.prototype,"__closePopup",null),f=(0,r.Cg)([o.component],f)},49405(t,e,s){"use strict";s.d(e,{P(){return l}});var r=s(31635),i=s(22664),o=s(71842),n=s(65147),a=s(35265);let l=class t extends a.lD{className(){return"ToolbarContent"}update(){const t=this.control.getContent(this.j,this);((0,n.isString)(t)||t.parentNode!==this.container)&&(o.J.detach(this.container),this.container.appendChild((0,n.isString)(t)?this.j.create.fromHTML(t):t)),super.update()}createContainer(){return this.j.c.span(this.componentName)}constructor(t,e,s=null){super(t),this.control=e,this.target=s,this.container.classList.add(`${this.componentName}_${this.clearName(e.name)}`),(0,n.attr)(this.container,"role","content")}};l=(0,r.Cg)([i.component],l)},5832(t,e,s){"use strict";s.d(e,{IB(){return r.I},P1(){return i.P},q4(){return o.q}});var r=s(3258),i=s(49405),o=s(48053)},48053(t,e,s){"use strict";s.d(e,{q(){return a}});var r=s(31635),i=s(22664),o=s(98253),n=s(3258);let a=class t extends n.I{className(){return"ToolbarSelect"}update(){super.update(),this.state.icon.name="";const{list:t,data:e}=this.control;if(t){let s=this.state.value||(e&&(0,o.K)(e.currentValue)?e.currentValue:void 0);s||(s=Object.keys(t)[0]);const r=""+(t[""+s]||s);this.state.text=this.control.textTemplate?.(this.jodit,r)??r}}};a=(0,r.Cg)([i.component],a)},97394(t,e,s){"use strict";s.d(e,{Q(){return l}});var r=s(31635),i=s(22664),o=s(76166),n=s(53048),a=s(8809);let l=class t extends n.z4{className(){return"ToolbarCollection"}get firstButton(){const[t]=this.buttons;return t||null}makeButton(t,e=null){return(0,a.BJ)(this.j,t,e)}makeSelect(t,e=null){return(0,a.RR)(this.j,t,e)}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)}constructor(t){super(t),this.__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",this.__tooltip=new n.SB(this.jodit)}__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,o.z3)("The method is not implemented for this class.")}build(t,e=null){const s=this.j.e.fire("beforeToolbarBuild",t);return s&&(t=s),super.build(t,e),this}destruct(){this.isDestructed||(this.__tooltip?.destruct(),this.__tooltip=null,this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),super.destruct())}};(0,r.Cg)([i.autobind],l.prototype,"__immediateUpdate",null),(0,r.Cg)([(0,i.debounce)()],l.prototype,"update",null),(0,r.Cg)([(0,i.hook)("ready")],l.prototype,"__initEvents",null),l=(0,r.Cg)([i.component],l)},90428(t,e,s){"use strict";s.d(e,{b(){return c}});var r=s(31635),i=s(17352),o=s(22664),n=s(71842),a=s(65147),l=s(97394);let c=class t extends l.Q{className(){return"ToolbarEditorCollection"}shouldBeDisabled(t){const e=super.shouldBeDisabled(t);if(void 0!==e)return e;const s=void 0===t.control.mode?i.MODE_WYSIWYG:t.control.mode;return!(s===i.MODE_SPLIT||s===this.j.getRealMode())}shouldBeActive(t){const e=super.shouldBeActive(t);if(void 0!==e)return e;const s=this.j.selection?this.j.s.current():null;if(!s)return!1;let r;if(t.control.tags){const e=t.control.tags;if(r=s,n.J.up(r,(t=>{if(t&&-1!==e.indexOf(t.nodeName.toLowerCase()))return!0}),this.j.editor))return!0}if(t.control.css){const e=t.control.css;if(r=s,n.J.up(r,(t=>{if(t&&!n.J.isText(t)&&!n.J.isComment(t))return this.checkActiveStatus(e,t)}),this.j.editor))return!0}return!1}getTarget(t){return t.target||this.j.s.current()||null}constructor(t){super(t),this.checkActiveStatus=(t,e)=>{let s=0,r=0;return Object.keys(t).forEach((i=>{const o=t[i];(0,a.isFunction)(o)?o(this.j,""+(0,a.css)(e,i))&&(s+=1):-1!==o.indexOf(""+(0,a.css)(e,i))&&(s+=1),r+=1})),r===s},this.prependInvisibleInput(this.container)}prependInvisibleInput(t){const e=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});n.J.appendChildFirst(t,e)}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")}};c=(0,r.Cg)([o.component],c)},8809(t,e,s){"use strict";s.d(e,{$K(){return c},BJ(){return u},RR(){return h}});var r=s(65147),i=s(3258),o=s(49405),n=s(48053),a=s(97394),l=s(90428);function c(t,e){const s=(0,r.isJoditObject)(t)?new l.b(t):new a.Q(t);return t.o.textIcons&&s.container.classList.add("jodit_text_icons"),e&&(s.parentElement=e),t.o.toolbarButtonSize&&(s.buttonSize=t.o.toolbarButtonSize),s}function u(t,e,s=null){if((0,r.isFunction)(e.getContent))return new o.P(t,e,s);const n=new i.I(t,e,s);return n.state.tabIndex=t.o.allowTabNavigation?0:-1,n}function h(t,e,s=null){return new n.q(t,e,s)}},77334(t,e,s){"use strict";var r=s(37923),i=s(83044),o=s(36115);o.T.prototype.enableDragAndDropFileToEditor=!0,o.T.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:t=>`files[${t}]`,withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:t=>t,isSuccess:t=>t.success,getMessage:t=>void 0!==t.data.messages&&(0,r.c)(t.data.messages)?t.data.messages.join(" "):"",processFileName:(t,e,s)=>[t,e,s],process:t=>t.data,error(t){this.j.message.error(t.message,4e3)},getDisplayName:(t,e)=>t+e,defaultHandlerSuccess(t){const e=this.j||this;(0,i.y)(e)&&t.files&&t.files.length&&t.files.forEach(((s,r)=>{const[i,o]=t.isImages&&t.isImages[r]?["img","src"]:["a","href"],n=e.createInside.element(i);n.setAttribute(o,t.baseurl+s),"a"===i&&(n.textContent=e.o.uploader.getDisplayName.call(this,t.baseurl,s)),"img"===i?e.s.insertImage(n,null,e.o.imageDefaultWidth):e.s.insertNode(n)}))},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"}}},89929(t,e,s){"use strict";s.d(e,{$(){return i}});var r=s(65147);function i(t,e){if((0,r.isFunction)(t.o.buildData))return t.o.buildData.call(t,e);const s=t.ow.FormData;if(void 0!==s){if(e instanceof s)return e;if((0,r.isString)(e))return e;const t=new s,i=e;return Object.keys(i).forEach((e=>{t.append(e,i[e])})),t}return e}},51923(t,e,s){"use strict";function r(t){const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),i=new Uint8Array(r);for(let t=0;e.length>t;t+=1)i[t]=e.charCodeAt(t);return new Blob([i],{type:s})}s.d(e,{z(){return r}})},74340(t,e,s){"use strict";s.d(e,{$j(){return o.$},Pb(){return l},YQ(){return a},_9(){return n._},dT(){return i.d},tN(){return o.t},zM(){return r.z}}),s(89929);var r=s(51923),i=s(84759),o=s(27912),n=s(74714);function a(t){return!!(t&&t.files&&t.files.length>0)}function l(t){return!!(t&&t.items&&t.items.length>0)}},84759(t,e,s){"use strict";s.d(e,{d(){return l}});var r=s(17352),i=s(71842),o=s(56298),n=s(65147),a=s(74340);function l(t,e,s,l,c){if(e&&(!e.types.length||e.types[0]!==r.TEXT_PLAIN)){const e=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,o.My)(t.j,t.constructor).appendChild(e);const r=(0,n.isJoditObject)(t.j)?t.j.s.save():null,u=()=>r&&(0,n.isJoditObject)(t.j)&&t.j.s.restore();e.focus(),t.j.async.setTimeout((()=>{const r=e.firstChild;if(i.J.safeRemove(e),r&&r.hasAttribute("src")){const e=(0,n.attr)(r,"src")||"";u(),(0,a._9)(t,[(0,a.zM)(e)],s,l).finally(c)}}),t.j.defaultTimeout)}}},74714(t,e,s){"use strict";s.d(e,{_(){return o}});var r=s(65147),i=s(27912);function o(t,e,s,o,n){if(!e)return Promise.reject((0,r.error)("Need files"));const{o:a}=t;let l=(0,r.toArray)(e);if(!l.length)return Promise.reject((0,r.error)("Need files"));const c=[];if(a.insertImageAsBase64URI){let e,i;for(i=0;l.length>i;i+=1)if(e=l[i],e&&e.type){const o=e.type.match(/\/([a-z0-9]+)/i),n=o[1]?o[1].toLowerCase():"";if(a.imagesExtensions.includes(n)){const o=new FileReader;c.push(t.j.async.promise(((i,n)=>{o.onerror=n,o.onloadend=()=>{const e={baseurl:"",files:[o.result],isImages:[!0]};((0,r.isFunction)(s)?s:a.defaultHandlerSuccess).call(t,e),i(e)},o.readAsDataURL(e)}))),l[i]=null}}}if(l=l.filter((t=>t)),l.length){const e=new FormData;let u;e.append(a.pathVariableName,t.path),e.append("source",t.source);for(let s=0;l.length>s;s+=1)if(u=l[s],u){const r=/\.[\d\w]+$/.test(u.name),i=u.type.match(/\/([a-z0-9]+)/i),o=i&&i[1]?i[1].toLowerCase():"";let n=l[s].name||(""+Math.random()).replace(".","");if(!r&&o){let t=o;["jpeg","jpg"].includes(t)&&(t="jpeg|jpg"),RegExp(".("+t+")$","i").test(n)||(n+="."+o)}const[c,h,d]=a.processFileName.call(t,a.filesVariableName(s),l[s],n);e.append(c,h,d)}n&&n(e),a.data&&(0,r.isPlainObject)(a.data)&&Object.keys(a.data).forEach((t=>{e.append(t,a.data[t])})),a.prepareData.call(t,e),c.push((0,i.t)(t,e).then((e=>a.isSuccess.call(t,e)?(((0,r.isFunction)(s)?s:a.defaultHandlerSuccess).call(t,a.process.call(t,e)),e):(((0,r.isFunction)(o)?o:a.defaultHandlerError).call(t,(0,r.error)(a.getMessage.call(t,e))),e))).then((()=>{t.j.events&&t.j.e.fire("filesWereUploaded")})))}return Promise.all(c)}},27912(t,e,s){"use strict";s.d(e,{$(){return n},t(){return a}});var r=s(65147),i=s(53883),o=s(89929);const n=new WeakMap;function a(t,e){const s=(0,o.$)(t,e),a=e=>{const s=new i.d({xhr(){const e=new XMLHttpRequest;return void 0!==t.j.ow.FormData&&e.upload?(t.j.progressbar.show().progress(10),e.upload.addEventListener("progress",(e=>{if(e.lengthComputable){let s=e.loaded/e.total;s*=100,t.j.progressbar.show().progress(s),100>s||t.j.progressbar.hide()}}),!1)):t.j.progressbar.hide(),e},method:t.o.method||"POST",data:e,url:(0,r.isFunction)(t.o.url)?t.o.url(e):t.o.url,headers:t.o.headers,queryBuild:t.o.queryBuild,contentType:t.o.contentType.call(t,e),withCredentials:t.o.withCredentials||!1});let o=n.get(t);return o||(o=new Set,n.set(t,o)),o.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(),o?.delete(s)}))};return(0,r.isPromise)(s)?s.then(a).catch((e=>{t.o.error.call(t,e)})):a(s)}},26538(t,e,s){"use strict";s.d(e,{d(){return l}});var r=s(77753),i=s(17352),o=s(65147),n=s(74340),a=(s(77334),s(36115));class l extends r.vG{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,e,s){const r=()=>{t.classList.remove("jodit_drag_hover")},o=this,a=t=>{let a,l,c;const u=t.clipboardData,h=t=>{l&&(t.append("extension",c),t.append("mimetype",l.type))};if(!i.IS_IE&&(0,n.YQ)(u))return(0,n._9)(o,u.files,e,s).finally(r),!1;if(i.IS_IE&&!i.IS_ES_NEXT)return(0,n.dT)(o,u,e,s,r);if((0,n.Pb)(u)){const{items:i}=u;for(a=0;i.length>a;a+=1)if("file"===i[a].kind&&"image/png"===i[a].type){if(l=i[a].getAsFile(),l){const t=l.type.match(/\/([a-z0-9]+)/i);c=t[1]?t[1].toLowerCase():"",(0,n._9)(o,[l],e,s,h).finally(r)}t.preventDefault();break}}};o.j&&o.j.editor!==t?o.j.e.on(t,"paste",a):o.j.e.on("beforePaste",a),this.attachEvents(t,e,s,r)}attachEvents(t,e,s,r){const i=this;i.j.e.on(t,"dragend dragover dragenter dragleave drop",(t=>{t.preventDefault()})).on(t,"dragover",(e=>{((0,n.YQ)(e.dataTransfer)||(0,n.Pb)(e.dataTransfer))&&(t.classList.add("jodit_drag_hover"),e.preventDefault())})).on(t,"dragend dragleave",(e=>{t.classList.remove("jodit_drag_hover"),(0,n.YQ)(e.dataTransfer)&&e.preventDefault()})).on(t,"drop",(o=>{t.classList.remove("jodit_drag_hover"),(0,n.YQ)(o.dataTransfer)&&(o.preventDefault(),o.stopImmediatePropagation(),(0,n._9)(i,o.dataTransfer.files,e,s).finally(r))}));const o=t.querySelector("input[type=file]");o&&i.j.e.on(o,"change",(()=>{(0,n._9)(i,o.files,e,s).then((()=>{o.value="",/safari/i.test(navigator.userAgent)||(o.type="",o.type="file")})).finally(r)}))}uploadRemoteImage(t,e,s){const r=this,{o:i}=r,a=(0,o.isFunction)(s)?s:i.defaultHandlerError;(0,n.tN)(r,{action:"fileUploadRemote",url:t}).then((t=>{i.isSuccess.call(r,t)?((0,o.isFunction)(e)?e:i.defaultHandlerSuccess).call(r,i.process.call(r,t)):a.call(r,(0,o.error)(i.getMessage.call(r,t)))})).catch((t=>a.call(r,t)))}constructor(t,e){super(t),this.path="",this.source="default",this.options=(0,o.ConfigProto)(e||{},(0,o.ConfigProto)(a.T.defaultOptions.uploader,(0,o.isJoditObject)(t)?t.o.uploader:{}))}destruct(){this.setStatus(r.f.beforeDestruct);const t=n.$j.get(this);t&&(t.forEach((t=>{try{t.destruct()}catch{}})),t.clear()),super.destruct()}}},19633(t,e,s){"use strict";s.d(e,{K(){return a}});var r=s(71842),i=s(65147),o=s(53048),n=s(54522);o.In.set("palette",s.n(n)());const a=(t,e,s)=>{const n="jodit-color-picker",a=(0,i.normalizeColor)(s),l=t.c.div(n),c=t.o.textIcons?`<span>${t.i18n("palette")}</span>`:o.In.get("palette"),u=t=>{const e=[];return(0,i.isPlainObject)(t)?Object.keys(t).forEach((s=>{e.push(`<div class="${n}__group ${n}__group-${s}">`),e.push(u(t[s])),e.push("</div>")})):(0,i.isArray)(t)&&t.forEach((t=>{e.push(`<span class='${n}__color-item ${a===t?n+"__color-item_active_true":""}' title="${t}" style="background-color:${t}" data-color="${t}"></span>`)})),e.join("")};l.appendChild(t.c.fromHTML(`<div class="${n}__groups">${u(t.o.colors)}</div>`)),l.appendChild(t.c.fromHTML(`<div data-ref="extra" class="${n}__extra"></div>`));const{extra:h}=(0,i.refs)(l);return t.o.showBrowserColorPicker&&(0,i.hasBrowserColorPicker)()&&(h.appendChild(t.c.fromHTML(`<div class="${n}__native">${c}<input type="color" value="#ffffff"/></div>`)),t.e.on(l,"change",(t=>{t.stopPropagation();const s=t.target;if(!s||!s.tagName||!r.J.isTag(s,"input"))return;const o=s.value||"";(0,i.isFunction)(e)&&e(o),t.preventDefault()}))),t.e.on(l,"mousedown touchend",(s=>{s.stopPropagation(),s.preventDefault();let o=s.target;if(o&&o.tagName&&!r.J.isTag(o,"svg")&&!r.J.isTag(o,"path")||!o.parentNode||(o=r.J.closest(o.parentNode,"span",t.editor)),!r.J.isTag(o,"span")||!o.classList.contains(n+"__color-item"))return;const a=(0,i.attr)(o,"-color")||"";e&&(0,i.isFunction)(e)&&e(a)})),t.e.fire("afterGenerateColorPicker",l,h,e,a),l}},10067(t,e,s){"use strict";s.d(e,{k(){return a}});var r=s(55186),i=s(65147),o=s(53048),n=s(4909);const a=(t,e,s,a,c=!0)=>{let u;const h=[];if(e.upload&&t.o.uploader&&(t.o.uploader.url||t.o.uploader.insertImageAsBase64URI)){const s=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(s,(s=>{const r=(0,i.isFunction)(e.upload)?e.upload:t.o.uploader.defaultHandlerSuccess;(0,i.isFunction)(r)&&r.call(t,s),t.e.fire("closeAllPopups")}),(e=>{t.message.error(e.message),t.e.fire("closeAllPopups")})),h.push({icon:"upload",name:"Upload",content:s})}if(e.filebrowser&&(t.o.filebrowser.ajax.url||t.o.filebrowser.items.url)&&h.push({icon:"folder",name:"Browse",content(){a&&a(),e.filebrowser&&t.filebrowser.open(e.filebrowser,c)}}),e.url){const n=new o.lD(t,{type:"submit",variant:"primary",text:"Insert"}),a=new o.XV(t,[new o.tS(t,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new o.tS(t,{name:"text",label:"Alternative text"}),new o.Yh(t,[n])]);u=null,!s||r.J.isText(s)||r.J.isComment(s)||!r.J.isTag(s,"img")&&!(0,i.$$)("img",s).length||(u="IMG"===s.tagName?s:(0,i.$$)("img",s)[0],l(a.container,"input[name=url]",(0,i.attr)(u,"src")),l(a.container,"input[name=text]",(0,i.attr)(u,"alt")),n.state.text="Update"),s&&r.J.isTag(s,"a")&&(l(a.container,"input[name=url]",(0,i.attr)(s,"href")),l(a.container,"input[name=text]",(0,i.attr)(s,"title")),n.state.text="Update"),a.onSubmit((s=>{(0,i.isFunction)(e.url)&&e.url.call(t,s.url,s.text)})),h.push({icon:"link",name:"URL",content:a.container})}return(0,n.Z)(t,h)};function l(t,e,s){const r=t.querySelector(e);return r?(s&&(r.value=s),r.value):""}},16116(t,e,s){"use strict";s.d(e,{Kn(){return r.K},Zg(){return o.Z},kG(){return i.k}});var r=s(19633),i=s(10067),o=s(4909)},4909(t,e,s){"use strict";s.d(e,{Z(){return l}});var r=s(77753),i=s(55186),o=s(65147),n=s(69052),a=s(53048);const l=(t,e,s)=>{const l=t.c.div("jodit-tabs"),c=t.c.div("jodit-tabs__wrapper"),u=t.c.div("jodit-tabs__buttons"),h={},d=[];let p="",f=0;l.appendChild(u),l.appendChild(c);const m=t=>{h[t]&&(d.forEach((t=>{t.state.activated=!1})),(0,o.$$)(".jodit-tab",c).forEach((t=>{t.classList.remove("jodit-tab_active")})),h[t].button.state.activated=!0,h[t].tab.classList.add("jodit-tab_active"))};if(e.forEach((({icon:o,name:l,content:g})=>{const v=t.c.div("jodit-tab"),b=(0,a.$n)(t,o||l,l);t.e.on(b.container,"mousedown",(t=>t.preventDefault())),p||(p=l),u.appendChild(b.container),d.push(b),b.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+e.length),(0,n.T)(g)?v.appendChild(t.c.div("jodit-tab_empty")):v.appendChild(r.uA.isInstanceOf(g,a.D$)?g.container:g),c.appendChild(v),b.onAction((()=>(m(l),(0,n.T)(g)&&!i.J.isElement(g)&&g.call(t),s&&(s.__activeTab=l),!1))),h[l]={button:b,tab:v},f+=1})),!f)return l;if((0,o.$$)("a",u).forEach((t=>{t.style.width=(100/f).toFixed(10)+"%"})),m(s&&s.__activeTab&&h[s.__activeTab]?s.__activeTab:p),s){let t=s.__activeTab;Object.defineProperty(s,"__activeTab",{configurable:!0,enumerable:!1,get:()=>t,set(e){t=e,m(e)}})}return l}},14221(t,e,s){"use strict";var r=s(17352),i=s(56298),o=s(65147),n=s(931),a=s(17995),l=s.n(a);s(36115).T.prototype.controls.about={exec(t){const e=t.dlg({closeOnClickOverlay:!0}),s=t.i18n.bind(t);e.setMod("theme",t.o.theme).setHeader(s("About Jodit")).setContent(`<div class="jodit-about">\n\t\t\t\t\t<div>${s("Jodit Editor")} v.${t.getVersion()}</div>\n\t\t\t\t\t<div>${s("License: %s",(0,o.isLicense)(t.o.license)?(0,o.normalizeLicense)(t.o.license):"MIT")}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="${r.HOMEPAGE}" target="_blank">${r.HOMEPAGE}</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">${s("Jodit User's Guide")}</a>\n\t\t\t\t\t\t${s("contains detailed help for using")}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>${s("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")}</div>\n\t\t\t\t</div>`),(0,o.css)(e.dialog,{minHeight:200,minWidth:420}),e.open(!0,!0)},tooltip:"About Jodit",mode:r.MODE_SOURCE+r.MODE_WYSIWYG},i.fg.add("about",(t=>{t.registerButton({name:"about",group:"info"})})),n.I.set("about",l())},55989(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(56298),n=s(65147),a=s(37435);s(84018);const l="addnewline";class c extends a.Plugin{constructor(){super(...arguments),this.__line=this.j.c.fromHTML(`<div role="button" tabindex="-1" title="${this.j.i18n("Break")}" class="jodit-add-new-line"><span>${a.Icon.get("enter")}</span></div>`),this.__isMatchedTag=t=>!(!t||!this.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase())),this.__isBeforeContent=!1,this.__lineInFocus=!1,this.__isShown=!1,this.__hideForce=()=>{this.__isShown&&(this.__isShown=!1,this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!1,a.Dom.safeRemove(this.__line),this.__line.style.setProperty("--jd-anl-handle-offset","0"))},this.__canGetFocus=t=>null!=t&&a.Dom.isBlock(t)&&!/^(img|table|iframe|hr)$/i.test(t.nodeName),this.__onClickLine=t=>{const e=this.j,s=e.createInside.element(e.o.enter);this.__isBeforeContent&&this.__current&&this.__current.parentNode?this.__current===e.editor?a.Dom.prepend(e.editor,s):this.__current.parentNode.insertBefore(s,this.__current):e.editor.appendChild(s),e.s.setCursorIn(s),(0,n.scrollIntoViewIfNeeded)(s,e.editor,e.ed),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__show(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}onLock(t){t&&this.__isShown&&this.__hideForce()}__hide(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}afterInit(t){t.o.addNewLine&&(t.e.on(this.__line,"mousemove",(t=>{t.stopPropagation()})).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",(()=>{this.j.async.clearTimeout(this.__timeout),this.__lineInFocus=!0})).on(this.__line,"mouseleave",(()=>{this.__lineInFocus=!1})).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}__addEventListeners(){const t=this.j;t.e.off(t.editor,"."+l).off(t.container,"."+l).on([t.ow,t.ew,t.editor],"scroll."+l,this.__hideForce).on(t.editor,"click."+l,this.__hide).on(t.container,"mouseleave."+l,this.__hide).on(t.editor,"mousemove."+l,this.__onMouseMove)}onDblClickEditor(t){const e=this.j;if(!e.o.readonly&&e.o.addNewLineOnDBLClick&&t.target===e.editor&&e.s.isCollapsed()){const s=(0,n.offset)(e.editor,e,e.ed),r=t.pageY-e.ew.scrollX,i=e.createInside.element(e.o.enter);Math.abs(r-(s.height+s.top))>Math.abs(r-s.top)&&e.editor.firstChild?e.editor.insertBefore(i,e.editor.firstChild):e.editor.appendChild(i),e.s.setCursorIn(i),e.synchronizeValues(),this.__hideForce(),t.preventDefault()}}__onMouseMove(t){const e=this.j;let s=e.ed.elementFromPoint(t.clientX,t.clientY);if(!a.Dom.isHTMLElement(s)||!a.Dom.isOrContains(e.editor,s))return;if(e.editor===s||this.__isMatchedTag(s)||(s=a.Dom.closest(s,this.__isMatchedTag,e.editor)),!s)return void this.__hide();if(this.__isMatchedTag(s)){const t=a.Dom.up(s,a.Dom.isBlock,e.editor);t&&t!==e.editor&&(s=t)}const r=(0,n.position)(s,this.j);let i=!1,{clientY:o,clientX:l}=t;if(this.j.iframe){const{top:t,left:e}=(0,n.position)(this.j.iframe,this.j,!0);o+=t,l+=e}const c=this.j.o.addNewLineDeltaShow;Math.abs(o-r.top)>c?Math.abs(o-(r.top+r.height))>c||(i=r.top+r.height,this.__isBeforeContent=!1):(i=r.top,this.__isBeforeContent=!0);const u=e.editor===s;!1!==i&&(u&&!this.__isBeforeContent||!u&&!(0,n.call)(this.__isBeforeContent?a.Dom.prev:a.Dom.next,s,this.__canGetFocus,e.editor))?(this.__line.style.top=i+"px",this.__current=s,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",l-r.left-10+"px")):(this.__current=!1,this.__hide())}beforeDestruct(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),a.Dom.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+l).off(this.j.container,"."+l)}}(0,r.Cg)([(0,i.watch)(":lock")],c.prototype,"onLock",null),(0,r.Cg)([i.autobind],c.prototype,"__hide",null),(0,r.Cg)([(0,i.watch)(":dblclick")],c.prototype,"onDblClickEditor",null),(0,r.Cg)([(0,i.throttle)((t=>t.defaultTimeout))],c.prototype,"__onMouseMove",null),o.fg.add("addNewLine",c)},84018(t,e,s){"use strict";var r=s(931),i=s(86634),o=s.n(i),n=s(36115);n.T.prototype.addNewLine=!0,n.T.prototype.addNewLineOnDBLClick=!0,n.T.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],n.T.prototype.addNewLineDeltaShow=20,r.I.set("enter",o())},64241(t,e,s){"use strict";var r=s(31635),i=s(66927),o=s(56298),n=s(29866),a=(s(66888),s(20785)),l=s(81026);class c extends n.k{constructor(t){super(t),this.buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],(0,o.JW)(l)}afterInit(t){}onGenerateAiAssistantForm(t){const{jodit:e}=this,s=e.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minWidth:460,maxWidth:460});s.bindDestruct(e);const r=new a.b(e,{onInsertAfter(t){e.s.focus(),e.s.setCursorAfter(e.s.current()),e.s.insertHTML(t),s.close()},onInsert(t){e.s.focus(),e.s.insertHTML(t),s.close()}});r.bindDestruct(s),s.open(r,"AI Assistant",!0,!1),r.setPrompt(t)}onInvokeAiAssistant(t){const{jodit:e}=this;e.s.focus();const s=e.s.html;e.async.promise((async(r,i)=>{try{r(await e.o.aiAssistant.aiAssistantCallback(t,s))}catch(t){i(t)}})).then((t=>{e.e.fire("ai-assistant-response",t)})).catch((t=>{e.message.error(t.message),e.e.fire("ai-assistant-error",t.message)}))}beforeDestruct(t){}}(0,r.Cg)([(0,i.Ay)(":generateAiAssistantForm.ai-assistant")],c.prototype,"onGenerateAiAssistantForm",null),(0,r.Cg)([(0,i.Ay)(":invokeAiAssistant")],c.prototype,"onInvokeAiAssistant",null),o.fg.add("ai-assistant",c)},66888(t,e,s){"use strict";var r=s(931),i=s(91115),o=s.n(i),n=s(1916),a=s.n(n),l=s(36115);l.T.prototype.aiAssistant={aiAssistantCallback:(t,e)=>Promise.resolve("hi"),aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},r.I.set("ai-assistant",a()),r.I.set("ai-commands",o()),l.T.prototype.controls["ai-commands"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec(t,e,{control:s}){t.e.fire("generateAiAssistantForm.ai-assistant",s.name)}},l.T.prototype.controls["ai-assistant"]={isDisabled:t=>!t.o.aiAssistant.aiAssistantCallback,hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec(t,e,s){t.e.fire("generateAiAssistantForm.ai-assistant")}}},82585(t){"use strict";t.exports={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"}},81026(t,e,s){"use strict";s.r(e),s.d(e,{en(){return r},es(){return i}});var r=s(82585),i=s(41324)},20785(t,e,s){"use strict";s.d(e,{b(){return u}});var r=s(31635),i=s(24767),o=s(66927),n=s(55186),a=s(98253),l=s(53048),c=s(29780);let u=class t extends c.D{className(){return"UIAiAssistant"}constructor(t,{onInsert:e,onInsertAfter:s}){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.$n)(t,"","Insert","primary").onAction((()=>e(this.__aiResult))),this.__insertAfterButton=(0,l.$n)(t,"","Insert After","initial").onAction((()=>s(this.__aiResult)));const r=()=>{this.__formAiAssistant.validate()&&(this.__formAiAssistant.submit(),this.__toogleSubmitButton(!0))};this.__submitButton=(0,l.$n)(t,"ai-assistant","").onAction(r),this.__tryAgainButton=(0,l.$n)(t,"","Try Again","initial").onAction(r),this.promptInput=new l.F0(t,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:this.getFullElName("prompt-row-input")});const i=new l.Yh(t,[this.__insertButton,this.__insertAfterButton,this.__tryAgainButton],{className:this.getFullElName("prompt-row")});this.__formAiAssistant=new l.XV(t,[new l.Yh(t,[this.promptInput,this.__submitButton],{className:this.getFullElName("prompt-row")})]).onSubmit((e=>{this.__error.textContent="",this.setMod("loading",!0),t.e.fire("invokeAiAssistant",e.prompt);const s=this.getFullElName("","hide","true");this.__results.classList.remove(s),this.__buttons.classList.remove(s),n.J.detach(this.__results),this.__results.appendChild(this.__spinner),this.__insertButton.focus()})),this.__buttons.appendChild(i.container),this.__body.appendChild(this.__formAiAssistant.container),this.onChangePromptValue()}render(){return'<div>\n\t\t\t\t<div class="&__container">\n\t\t\t\t\t\t<div class="&__error"></div>\n\t\t\t\t\t\t<div class="&__body"></div>\n\t\t\t\t\t\t<div class="&__buttons &_hide_true"></div>\n\t\t\t\t\t\t<div class="&__results &_hide_true">\n\t\t\t\t\t\t\t\t<div class="&__spinner"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>'}setPrompt(t){if(t){const{jodit:e}=this,s=e.o.aiAssistant[t],{aiCommonPrefixPrompt:r,aiCommonSuffixPrompt:i}=e.o.aiAssistant;this.promptInput.value=[r,(0,a.K)(s)?s:"",i].filter(Boolean).join(" "),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toogleSubmitButton(!0))}this.promptInput.focus()}onAiAssistentResponse(t){this.setMod("loading",!1),n.J.detach(this.__results),this.__aiResult=t,this.__results.appendChild(this.jodit.c.fromHTML(t)),this.__toogleSubmitButton(!1)}onAiAssistentError(t){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=t,this.__toogleSubmitButton(!1)}onChangePromptValue(){this.__toogleSubmitButton(!this.promptInput.value)}__toogleSubmitButton(t){this.__submitButton.state.disabled=t,this.__tryAgainButton.state.disabled=t}};(0,r.Cg)([(0,o.Ay)(":ai-assistant-response")],u.prototype,"onAiAssistentResponse",null),(0,r.Cg)([(0,o.Ay)(":ai-assistant-error")],u.prototype,"onAiAssistentError",null),(0,r.Cg)([(0,o.Ay)("promptInput.nativeInput:input")],u.prototype,"onChangePromptValue",null),u=(0,r.Cg)([i.s],u)},13917(t,e,s){"use strict";var r=s(17352),i=s(71842),o=s(56298),n=s(69052),a=s(71005),l=s(46602),c=(s(81982),s(90084)),u=s(89832);class h extends a.k{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,e="char"){const s=this.j,o=s.selection;if(o.isFocused()||o.focus(),(0,c.L)(s))return!1;const a=o.range,h=s.createInside.text(r.INVISIBLE_SPACE);try{if(i.J.safeInsertNode(a,h),!i.J.isOrContains(s.editor,h))return;if(s.e.fire("backSpaceBeforeCases",t,h))return!1;if((0,l.W)(s,h,t),u.C.some((r=>{if((0,n.T)(r)&&r(s,h,t,e))return!0})))return!1}catch(t){throw t}finally{s.e.fire("backSpaceAfterDelete",t,h),this.safeRemoveEmptyNode(h)}return!1}safeRemoveEmptyNode(t){const{range:e}=this.j.s;e.startContainer===t&&(t.previousSibling?i.J.isText(t.previousSibling)?e.setStart(t.previousSibling,t.previousSibling.nodeValue?.length??0):e.setStartAfter(t.previousSibling):t.nextSibling&&(i.J.isText(t.nextSibling)?e.setStart(t.nextSibling,0):e.setStartBefore(t.nextSibling)),e.collapse(!0),this.j.s.selectRange(e)),i.J.safeRemove(t)}}h.requires=["hotkeys"],o.fg.add("backspace",h)},43327(t,e,s){"use strict";s.d(e,{E(){return n}});var r=s(17352),i=s(55186),o=s(81779);function n(t,e,s){let o=e,n=o;for(;o&&!i.J.findNotEmptySibling(o,s)&&o.parentElement!==t.editor;)o=o.parentElement,n=o;if(i.J.isElement(n)&&i.J.isContentEditable(n,t.editor)){const o=i.J.findNotEmptySibling(n,s);if(o&&(((t,e,s,o)=>{const n=i.J.isTag(s,r.LIST_TAGS),l=i.J.isTag(e,r.LIST_TAGS),c=(t,e)=>e?t.firstElementChild:t.lastElementChild;return l?(s=t.createInside.element(t.o.enterBlock),i.J.before(e,s),a(t,c(e,o),s,o)):!(!s||!n||l)&&a(t,e,c(s,!o),o)})(t,n,o,s)||a(t,n,o,s)))return t.s.setCursorBefore(e),!0}return!1}function a(t,e,s,r){if(e&&i.J.isElement(s)){i.J.moveContent(e,s,!r,(0,o.g)(t));let n=e;for(;n&&n!==t.editor&&i.J.isEmpty(n);){const t=n.parentElement;i.J.safeRemove(n),n=t}return!0}return!1}},72874(t,e,s){"use strict";s.d(e,{a(){return n}});var r=s(55186),i=s(84976),o=s(81779);function n(t,e,s){const n=r.J.findSibling(e,s),a=r.J.findSibling(e,!s);if(!r.J.closest(e,r.J.isElement,t.editor)&&r.J.isList(n)&&r.J.isList(a)&&r.J.isTag(n.lastElementChild,"li")&&r.J.isTag(a.firstElementChild,"li")){const{setCursorBefore:l,setCursorAfter:c}=t.s,u=n.lastElementChild;return(0,i.T1)(s?r.J.prepend:r.J.append,a.firstElementChild,e),r.J.moveContent(a,n,!s,(0,o.g)(t)),r.J.safeRemove(a),(0,i.T1)(s?r.J.append:r.J.prepend,u,e),(0,i.T1)(s?l:c,e),!0}return!1}},90084(t,e,s){"use strict";function r(t){return!t.s.isCollapsed()&&(t.execCommand("Delete"),!0)}s.d(e,{L(){return r}})},81486(t,e,s){"use strict";s.d(e,{H(){return a}});var r=s(17352),i=s(71842),o=s(65147),n=s(81779);function a(t,e,s,l){const c=s?-1:1,u=i.J.sibling(e,!s);let h,d=i.J.sibling(e,s),p=null,f=!1;const m=e=>{let r=i.J.sibling(e,s);return!r&&e.parentNode&&e.parentNode!==t.editor&&(r=(0,n.s)(e,!s,t.editor,!0)),r};for(d||(d=m(e));d&&(i.J.isText(d)||i.J.isInlineBlock(d));){for(;i.J.isInlineBlock(d);)d=s?d?.lastChild:d?.firstChild;if(!d)break;if(d.nodeValue?.length){let t=(0,o.toArray)(d.nodeValue);const e=t.length;let n=s?e-1:0;if(t[n]===r.INVISIBLE_SPACE)for(;t[n]===r.INVISIBLE_SPACE;)n+=c;if(h=t[n],t[n+c]===r.INVISIBLE_SPACE){for(n+=c;t[n]===r.INVISIBLE_SPACE;)n+=c;n+=s?1:-1}if(t=s&&0>n?[]:t.slice(s?0:n+1,s?n:e),!u||!i.J.isText(u)||(s?/^ /:/ $/).test(u.nodeValue??"")||!(0,o.trimInv)(u.nodeValue||"").length)for(let e=s?t.length-1:0;(s?e>=0:t.length>e)&&" "===t[e];e+=s?-1:1)t[e]=r.NBSP_SPACE;d.nodeValue=t.join("")}if(d.nodeValue?.length||(p=d),!(0,o.isVoid)(h)&&h!==r.INVISIBLE_SPACE){f=!0,(0,o.call)(s?i.J.after:i.J.before,d,e),("sentence"===l||"word"===l&&" "!==h&&h!==r.NBSP_SPACE)&&a(t,e,s,l);break}const n=m(d);p&&(i.J.safeRemove(p),p=null),d=n}return p&&(i.J.safeRemove(p),p=null),f&&(((t,e)=>{let s=t.parentElement;for(;s&&i.J.isInlineBlock(s)&&i.J.isTag(s,"a");){const e=s.parentElement;i.J.isEmpty(s)&&(i.J.after(s,t),i.J.safeRemove(s)),s=e}})(e),((t,e)=>{e.parentElement!==t.editor&&i.J.isBlock(e.parentElement)&&i.J.each(e.parentElement,i.J.isEmptyTextNode)&&i.J.after(e,t.createInside.element("br"))})(t,e),t.s.setCursorBefore(e),i.J.isTag(e.previousSibling,"br")&&!i.J.findNotEmptySibling(e,!1)&&i.J.after(e,t.createInside.element("br"))),f}},29822(t,e,s){"use strict";s.d(e,{V(){return n}});var r=s(71842),i=s(65147),o=s(46602);function n(t,e,s){let n=r.J.findSibling(e,s);return!n&&e.parentElement&&e.parentElement!==t.editor&&(n=r.J.findSibling(e.parentElement,s)),!(!r.J.isElement(n)||r.J.isContentEditable(n,t.editor)||((0,i.call)(s?r.J.before:r.J.after,n,e),r.J.safeRemove(n),(0,o.W)(t,e,s),(0,i.call)(s?t.s.setCursorBefore:t.s.setCursorAfter,e),0))}},59988(t,e,s){"use strict";s.d(e,{_(){return i}});var r=s(55186);function i(t,e,s){const i=r.J.closest(e,r.J.isElement,t.editor);if(!i)return!1;const o=r.J.findNotEmptySibling(i,s);return!(!o||!r.J.isEmpty(o)||(r.J.safeRemove(o),t.s.setCursorBefore(e),0))}},42898(t,e,s){"use strict";s.d(e,{C(){return n}});var r=s(17352),i=s(71842),o=s(72874);function n(t,e,s){let n=!1;const{setCursorBefore:a,setCursorIn:l}=t.s;let c=i.J.closest(e,i.J.isElement,t.editor);if(!c||!i.J.isEmpty(c))return!1;const u=i.J.findNotEmptyNeighbor(e,s,t.editor);do{if(!c||!i.J.isEmpty(c)||i.J.isCell(c))break;{i.J.after(c,e);const s=i.J.closest(c,(t=>i.J.isElement(t)&&t!==c),t.editor);i.J.safeRemove(c),n=!0,c=s}}while(c);return!(!n||!(0,o.a)(t,e,s))||(!u||i.J.isText(u)||i.J.isTag(u,r.INSEPARABLE_TAGS)?a(e):l(u,!s),n)}},84323(t,e,s){"use strict";s.d(e,{f(){return n}});var r=s(17352),i=s(55186),o=s(42898);function n(t,e,s){const n=i.J.findSibling(e,s);return!(!i.J.isElement(n)||!i.J.isTag(n,r.INSEPARABLE_TAGS)&&!i.J.isEmpty(n)||(i.J.safeRemove(n),i.J.isTag(n,"br")&&!i.J.findNotEmptySibling(e,!1)&&i.J.after(e,t.createInside.element("br")),t.s.setCursorBefore(e),i.J.isTag(n,"br")&&(0,o.C)(t,e,s),0))}},94766(t,e,s){"use strict";s.d(e,{R(){return i}});var r=s(55186);function i(t,e){return!!r.J.isCell(e.parentElement)}},89708(t,e,s){"use strict";s.d(e,{B(){return o}});var r=s(55186),i=s(97369);function o(t,e,s){const o=r.J.closest(e,r.J.isElement,t.editor),{s:n}=t;if(r.J.isLeaf(o)&&o?.parentElement?.[s?"firstElementChild":"lastElementChild"]===o&&n.cursorInTheEdge(s,o)){const a=o.parentElement,l=t.createInside.element(t.o.enterBlock);return(0,i.call)(s?r.J.before:r.J.after,a,l),r.J.moveContent(o,l),r.J.safeRemove(o),r.J.isEmpty(a)&&r.J.safeRemove(a),(0,i.call)(s?n.setCursorBefore:n.setCursorAfter,e),!0}return!1}},89832(t,e,s){"use strict";s.d(e,{C(){return d}});var r=s(43327),i=s(72874),o=s(81486),n=s(29822),a=s(59988),l=s(42898),c=s(84323),u=s(94766),h=s(89708);const d=[c.f,n.V,o.H,u.R,l.C,a._,i.a,r.E,h.B]},81982(t,e,s){"use strict";s(36115).T.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"]}}},81779(t,e,s){"use strict";s.d(e,{g(){return o},s(){return i}});var r=s(71842);function i(t,e,s,i=!1){const o=t=>e?t.firstChild:t.lastChild;let n=r.J.findNotEmptyNeighbor(t,!e,s);if(i&&r.J.isElement(n)&&!r.J.isInlineBlock(n))return null;if(n)do{if(!o(n))return n;n=o(n)}while(n);return null}function o(t){return e=>!0!==t.e.fire("backSpaceIsMovedIgnore",e)}},49289(t,e,s){"use strict";var r=s(56298),i=s(65147),o=s(931),n=(s(73124),s(52450)),a=s.n(n),l=s(41111),c=s.n(l),u=s(49972),h=s.n(u),d=s(45062),p=s.n(d),f=s(18605),m=s.n(f),g=s(83389),v=s.n(g),b=s(36115);r.fg.add("bold",(t=>{const e=e=>{const s=b.T.defaultOptions.controls[e],r={...s.css};let o;return Object.keys(r).forEach((t=>{o||(o={}),o[t]=(0,i.isArray)(r[t])?r[t][0]:r[t]})),t.s.commitStyle({element:s.tags?s.tags[0]:void 0}),t.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach((e=>{t.registerButton({name:e,group:"font-style"})})),["superscript","subscript"].forEach((e=>{t.registerButton({name:e,group:"script"})})),t.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e}).registerCommand("subscript",{exec:e}).registerCommand("superscript",{exec:e})})),o.I.set("bold",a()).set("italic",c()).set("strikethrough",h()).set("subscript",p()).set("superscript",m()).set("underline",v())},73124(t,e,s){"use strict";var r=s(36115);r.T.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},r.T.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},r.T.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},r.T.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},r.T.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},r.T.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"}},98341(t,e,s){"use strict";var r=s(55186),i=s(56298),o=s(84976),n=s(71005),a=s(931),l=s(93267),c=s.n(l);s(36115).T.prototype.controls.classSpan={command:"applyClassName",exec:o.qN,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive(t,e){const s=t.s.current();if(s){const i=r.J.closest(s,r.J.isElement,t.editor)||t.editor;return!(!e.control.args||!i.classList.contains(""+e.control.args[0]))}return!1},isActive(t,e){const s=t.s.current();if(s){const i=r.J.closest(s,r.J.isElement,t.editor)||t.editor;let o=!1;return e.control.list&&Object.keys(e.control.list).forEach((t=>{i.classList.contains(t)&&(o=!0)})),!(!i||i===t.editor||void 0===e.control.list||!o)}return!1},childTemplate(t,e,s){return`<span class="${e}">${t.i18n(s)}</span>`},tooltip:"Insert className"},i.fg.add("classSpan",class u extends n.k{constructor(){super(...arguments),this.buttons=[{name:"classSpan",group:"script"}]}afterInit(t){t.registerCommand("applyClassName",((e,s,r)=>(t.s.commitStyle({attributes:{class:r}}),!1)))}beforeDestruct(){}}),a.I.set("class-span",c())},38101(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(55186),n=s(8453),a=s(56298),l=s(26328),c=s(29866),u=(s(74646),s(15396));class h extends c.k{constructor(){super(...arguments),this.buttons=[{name:"eraser",group:"font-style"}],this.currentSelectionNode=null,this.walker=new n.p(this.j.async,{timeout:this.j.o.cleanHTML.timeout})}afterInit(t){}get isEditMode(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}onChangeCleanHTML(){if(!this.isEditMode)return;const t=this.j;this.walker.setWork(t.editor),this.currentSelectionNode=t.s.current()}startWalker(){const{jodit:t}=this,e=(0,u.Zd)(this.j.o.cleanHTML.allowTags),s=(0,u.Zd)(this.j.o.cleanHTML.denyTags);this.walker.on("visit",(r=>(0,u.eZ)(t,r,e,s,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,u.w5)(this.j):(0,u.hk)(this.j),!1}onBeforeSetNativeEditorValue(t){const[e,s]=this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()];return e.innerHTML=t.value,this.onSafeHTML(e),t.value=e.innerHTML,(0,l.t)(e,{safeJavaScriptLink:!0,removeOnError:!0}),o.J.safeRemove(s),!1}onSafeHTML(t){(0,l.t)(t,this.j.o.cleanHTML)}beforeDestruct(){this.walker.destruct()}}(0,r.Cg)([(0,i.watch)([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],h.prototype,"onChangeCleanHTML",null),(0,r.Cg)([(0,i.hook)("ready")],h.prototype,"startWalker",null),(0,r.Cg)([(0,i.watch)(":beforeCommand")],h.prototype,"beforeCommand",null),(0,r.Cg)([(0,i.watch)(":beforeSetNativeEditorValue")],h.prototype,"onBeforeSetNativeEditorValue",null),(0,r.Cg)([(0,i.watch)(":safeHTML")],h.prototype,"onSafeHTML",null),a.fg.add("cleanHtml",h)},74646(t,e,s){"use strict";var r=s(931),i=s(71948),o=s.n(i),n=s(36115);n.T.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},n.T.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},r.I.set("eraser",o())},60549(t,e,s){"use strict";s.d(e,{Z(){return o}});var r=s(98253),i=s(59101);function o(t){const e=/([^[]*)\[([^\]]+)]/,s=/[\s]*,[\s]*/,o=/^(.*)[\s]*=[\s]*(.*)$/,n={};return(0,r.K)(t)?(t.split(s).map((t=>{t=(0,i.Bq)(t);const r=e.exec(t),a={},l=t=>{t=(0,i.Bq)(t);const e=o.exec(t);e?a[e[1]]=e[2]:a[t]=!0};if(r){const t=r[2].split(s);r[1]&&(t.forEach(l),n[r[1].toUpperCase()]=a)}else n[t.toUpperCase()]=!0})),n):!!t&&(Object.keys(t).forEach((e=>{n[e.toUpperCase()]=t[e]})),n)}},15396(t,e,s){"use strict";s.d(e,{Zd(){return r.Z},eZ(){return n.e},hk(){return o.h},w5(){return i.w}});var r=s(60549),i=s(30526),o=s(20646),n=s(52306)},30526(t,e,s){"use strict";s.d(e,{D(){return n},w(){return o}});var r=s(17352),i=s(55186);function o(t,e){const{s}=t;let r=e;if(!r){r=t.createInside.fake();const{range:e}=s;i.J.safeInsertNode(e,r),e.collapse()}const o=i.J.furthest(r,n,t.editor);if(o)if(s.cursorOnTheLeft(o))i.J.before(o,r);else if(s.cursorOnTheRight(o))i.J.after(o,r);else{const t=s.splitSelection(o);t&&i.J.after(t,r)}e||(s.setCursorBefore(r),i.J.safeRemove(r))}function n(t){return i.J.isInlineBlock(t)&&!i.J.isTag(t,r.INSEPARABLE_TAGS)}},20646(t,e,s){"use strict";s.d(e,{h(){return n}});var r=s(55186),i=s(97369),o=s(30526);function n(t){const{s:e,editor:s,createInside:n}=t,{range:a}=e,l=a.cloneRange(),c=a.cloneRange(),u=n.fake(),h=n.fake();l.collapse(!0),c.collapse(!1),r.J.safeInsertNode(l,u),r.J.safeInsertNode(c,h),a.setStartBefore(u),a.collapse(!0),e.selectRange(a),(0,o.w)(t,u),a.setEndAfter(h),a.collapse(!1),e.selectRange(a),(0,o.w)(t,h);const d=[];r.J.between(u,h,(t=>{(0,o.D)(t)&&!r.J.isTag(t,"a")&&d.push(t),r.J.isElement(t)&&(0,i.attr)(t,"style")&&(0,i.attr)(t,"style",null)})),d.forEach((t=>r.J.unwrap(t)));const p=(t,e)=>{if(!r.J.findNotEmptySibling(t,e)){const r=t.parentNode;if(r&&r!==s&&(0,i.attr)(r,"style"))return(0,i.attr)(r,"style",null),p(r,e),!0}};p(u,!0)&&p(h,!1),a.setStartAfter(u),a.setEndBefore(h),e.selectRange(a),r.J.safeRemove(u),r.J.safeRemove(h)}},5232(t,e,s){"use strict";s.d(e,{f(){return i}});var r=s(55186);function i(t,e,s,i){if(i&&r.J.isElement(e)&&!0!==i[e.nodeName]){const t=e.attributes;if(t&&t.length){const r=[];for(let s=0;t.length>s;s+=1){const o=i[e.nodeName][t[s].name];(!o||!0!==o&&o!==t[s].value)&&r.push(t[s].name)}r.length&&(s=!0),r.forEach((t=>{e.removeAttribute(t)}))}}return s}},63443(t,e,s){"use strict";s.d(e,{f(){return o}});var r=s(17352),i=s(55186);function o(t,e,s){if(t.o.cleanHTML.fillEmptyParagraph&&i.J.isBlock(e)&&i.J.isEmpty(e,r.INSEPARABLE_TAGS)){const s=t.createInside.element("br");return e.appendChild(s),!0}return s}},3593(t,e,s){"use strict";s.r(e),s.d(e,{allowAttributes(){return r.f},fillEmptyParagraph(){return i.f},removeEmptyTextNode(){return o.r},removeInvTextNodes(){return n.u},replaceOldTags(){return a.H},sanitizeAttributes(){return l.L},tryRemoveNode(){return c.k}});var r=s(5232),i=s(63443),o=s(926),n=s(67431),a=s(81199),l=s(32782),c=s(32014)},926(t,e,s){"use strict";s.d(e,{r(){return i}});var r=s(55186);function i(t,e,s,i,o,n){return r.J.isText(e)&&!e.nodeValue?(e===n&&t.s.isCollapsed()&&t.s.setCursorAfter(e),r.J.safeRemove(e),!0):s}},67431(t,e,s){"use strict";s.d(e,{u(){return o}});var r=s(17352),i=s(55186);function o(t,e,s,o,n,a){if(a===e||!i.J.isText(e)||null==e.nodeValue)return s;if(!(0,r.INVISIBLE_SPACE_REG_EXP)().test(e.nodeValue))return s;const l=i.J.furthest(a,i.J.isBlock,t.editor);return!l||i.J.isOrContains(l,e)?s:(e.nodeValue=e.nodeValue.replace((0,r.INVISIBLE_SPACE_REG_EXP)(),""),e===a&&t.s.isCollapsed()&&t.s.setCursorAfter(e),e.nodeValue||i.J.safeRemove(e),!0)}},81199(t,e,s){"use strict";s.d(e,{H(){return i}});var r=s(55186);function i(t,e,s){const i=((t,e,s)=>{if(!s||!r.J.isHTMLElement(e))return e;const i=s[e.nodeName.toLowerCase()]||s[e.nodeName];return i?r.J.replace(e,i,t.createInside,!0,!1):e})(t,e,t.o.cleanHTML.replaceOldTags);return e!==i?(e=i,!0):s}},32782(t,e,s){"use strict";s.d(e,{L(){return o}});var r=s(55186),i=s(65147);function o(t,e,s){return!(!r.J.isElement(e)||!(0,i.sanitizeHTMLElement)(e,{safeJavaScriptLink:t.options.cleanHTML.safeJavaScriptLink,removeOnError:t.options.cleanHTML.removeOnError}))||s}},32014(t,e,s){"use strict";s.d(e,{k(){return n}});var r=s(17352),i=s(55186),o=s(59101);function n(t,e,s,n,a,l){return((t,e,s,n,a)=>!(i.J.isText(e)||!(n&&!n[e.nodeName]||a&&a[e.nodeName]))||t.o.cleanHTML.removeEmptyElements&&i.J.isElement(e)&&null!=e.nodeName.match(r.IS_INLINE)&&!i.J.isTemporary(e)&&0===(0,o.Bq)(e.innerHTML).length&&(null==s||!i.J.isOrContains(e,s)))(t,e,l,n,a)?(i.J.safeRemove(e),!0):s}},52306(t,e,s){"use strict";s.d(e,{e(){return o}}),s(17352);var r=s(3593);const i=Object.keys(r);function o(t,e,s,o,n){let a=!1;const l=t.o.cleanHTML.disableCleanFilter;for(const c of i)if(!(l&&l.has(c)||(a=(0,r[c])(t,e,a,s,o,n),e.isConnected)))return!0;return a}},24593(t,e,s){"use strict";var r=s(17352),i=s(56298),o=s(65147);s(51329),i.fg.add("clipboard",class n{constructor(){this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}init(t){this.buttons?.forEach((e=>t.registerButton(e))),t.e.off(`copy.${r.CLIPBOARD_ID} cut.${r.CLIPBOARD_ID}`).on(`copy.${r.CLIPBOARD_ID} cut.${r.CLIPBOARD_ID}`,(e=>{const s=t.s.html,i=(0,o.getDataTransfer)(e)||(0,o.getDataTransfer)(t.ew)||(0,o.getDataTransfer)(e.originalEvent);i&&(i.setData(r.TEXT_PLAIN,(0,o.stripTags)(s)),i.setData(r.TEXT_HTML,s)),t.buffer.set(r.CLIPBOARD_ID,s),t.e.fire("pasteStack",{html:s,action:t.o.defaultActionOnPaste||r.INSERT_AS_HTML}),"cut"===e.type&&(t.s.remove(),t.s.focus()),e.preventDefault(),t?.events?.fire("afterCopy",s)}))}destruct(t){t?.buffer?.set(r.CLIPBOARD_ID,""),t?.events?.off("."+r.CLIPBOARD_ID)}})},51329(t,e,s){"use strict";var r=s(931),i=s(51457),o=s.n(i),n=s(23602),a=s.n(n),l=s(86899),c=s.n(l),u=s(95320),h=s.n(u),d=s(36115);d.T.prototype.controls.cut={command:"cut",isDisabled(t){return t.s.isCollapsed()},tooltip:"Cut selection"},d.T.prototype.controls.copy={command:"copy",isDisabled(t){return t.s.isCollapsed()},tooltip:"Copy selection"},d.T.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},r.I.set("copy",o()).set("cut",a()).set("paste",c()).set("select-all",h())},36293(t,e,s){"use strict";var r=s(56298),i=s(65147);s(39626),r.fg.add("color",(t=>{t.registerButton({name:"brush",group:"color"});const e=(e,s,r)=>{const o=(0,i.normalizeColor)(r);switch(e){case"background":t.s.commitStyle({attributes:{style:{backgroundColor:o||""}}});break;case"forecolor":t.s.commitStyle({attributes:{style:{color:o||""}}})}return t.synchronizeValues(),!1};t.registerCommand("forecolor",e).registerCommand("background",e)}))},39626(t,e,s){"use strict";var r=s(55186),i=s(65147),o=s(931),n=s(16116),a=s(45674),l=s.n(a),c=s(36115);o.I.set("brush",l()),c.T.prototype.controls.brush={update(t,e){const s=(0,i.dataBind)(e,"color"),o=(s,r)=>{r&&r!==""+(0,i.css)(t.editor,s)&&(e.state.icon.fill=r)};if(s){const t=(0,i.dataBind)(e,"color");return void o("color"===t?t:"background-color",s)}const n=t.s.current();if(n&&!e.state.disabled){const e=r.J.closest(n,r.J.isElement,t.editor)||t.editor;o("color",""+(0,i.css)(e,"color")),o("background-color",""+(0,i.css)(e,"background-color"))}e.state.icon.fill="",e.state.activated=!1},popup(t,e,s,o){let a="",l="",c=[],u=null;return e&&e!==t.editor&&r.J.isNode(e)&&(r.J.isElement(e)&&t.s.isCollapsed()&&!r.J.isTag(e,new Set(["br","hr"]))&&(u=e),r.J.up(e,(t=>{if(r.J.isHTMLElement(t)){const e=(0,i.css)(t,"color",!0),s=(0,i.css)(t,"background-color",!0);if(e)return a=""+e,!0;if(s)return l=""+s,!0}}),t.editor)),c=[{name:"Background",content:(0,n.Kn)(t,(e=>{u?u.style.backgroundColor=e:t.execCommand("background",!1,e),(0,i.dataBind)(o,"color",e),(0,i.dataBind)(o,"color-mode","background"),s()}),l)},{name:"Text",content:(0,n.Kn)(t,(e=>{u?u.style.color=e:t.execCommand("forecolor",!1,e),(0,i.dataBind)(o,"color",e),(0,i.dataBind)(o,"color-mode","color"),s()}),a)}],"background"!==t.o.colorPickerDefaultTab&&(c=c.reverse()),(0,n.Zg)(t,c,u)},exec(t,e,{button:s}){const o=(0,i.dataBind)(s,"color-mode"),n=(0,i.dataBind)(s,"color");if(!o)return!1;if(e&&e!==t.editor&&r.J.isNode(e)&&r.J.isElement(e))switch(o){case"color":e.style.color=n;break;case"background":e.style.backgroundColor=n}else t.execCommand("background"===o?o:"forecolor",!1,n)},tooltip:"Fill color or set the text color"}},38373(t,e,s){"use strict";var r=s(55186),i=s(56298),o=s(38322),n=s(931),a=s(3843),l=s.n(a),c=s(94628),u=s(36115);const h="copy-format",d=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],p=(t,e,s,r)=>{let i=(0,o.A)(s,e);return i===r[e]&&(i=s.parentNode&&s!==t.editor&&s.parentNode!==t.editor?p(t,e,s.parentNode,r):void 0),i};u.T.prototype.controls.copyformat={exec(t,e,{button:s}){if(e){if(t.buffer.exists(h))t.buffer.delete(h),t.e.off(t.editor,"mouseup."+h);else{const s={},i=r.J.up(e,(t=>t&&!r.J.isText(t)),t.editor)||t.editor,n=t.createInside.span();t.editor.appendChild(n),d.forEach((t=>{s[t]=(0,o.A)(n,t)})),n!==t.editor&&r.J.safeRemove(n);const a=((t,e,s)=>{const r={};return e&&d.forEach((i=>{r[i]=p(t,i,e,s),i.match(/border(Style|Color)/)&&!r.borderWidth&&(r[i]=void 0)})),r})(t,i,s),l=()=>{t.buffer.delete(h);const e=t.s.current();e&&(r.J.isTag(e,"img")?(0,o.A)(e,a):t.s.commitStyle({attributes:{style:a}})),t.e.off(t.editor,"mouseup."+h)};t.e.on(t.editor,"mouseup."+h,l),t.buffer.set(h,!0)}s.update()}},isActive(t){return t.buffer.exists(h)},tooltip:"Paint format"},i.fg.add("copyformat",(t=>{t.registerButton({name:"copyformat",group:"clipboard"}),(0,i.JW)(c)})),n.I.set("copyformat",l())},94628(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return i.a},cs_cz(){return i.a},de(){return i.a},es(){return i.a},fa(){return i.a},fi(){return i.a},fr(){return i.a},he(){return i.a},hu(){return i.a},id(){return i.a},it(){return i.a},ja(){return i.a},ko(){return i.a},mn(){return i.a},nl(){return i.a},pl(){return i.a},pt_br(){return i.a},ru(){return i.a},tr(){return i.a},zh_cn(){return i.a},zh_tw(){return i.a}});var r=s(41324),i=s.n(r)},5929(t,e,s){"use strict";var r=s(71842),i=s(56298),o=s(65147),n=s(59101),a=s(71005);class l extends a.k{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(){const t=this.j,e=t.s.current();if(e&&r.J.isTag(e.firstChild,"br")&&t.s.removeNode(e.firstChild),!((0,n.Bq)(t.editor.textContent||"")||t.editor.querySelector("img,table,jodit,iframe,hr")||e&&r.J.closest(e,"table",t.editor))){t.editor.innerHTML="";const e=t.s.setCursorIn(t.editor);t.s.removeNode(e)}}__onDeleteCommand(){const{jodit:t}=this;if(t.s.isCollapsed())return;t.s.expandSelection();const e=t.s.range;e.deleteContents();const s=t.createInside.fake();e.insertNode(s);const i=r.J.findSibling(s,!0),o=r.J.findSibling(s,!1);return this.__moveContentInLeftSibling(s,i,o),e.setStartBefore(s),e.collapse(!0),this.__moveCursorInEditableSibling(t,i,s,e),this.__addBrInEmptyBlock(s,o,e),r.J.safeRemove(s),t.s.selectRange(e),!1}__moveContentInLeftSibling(t,e,s){e=this.__defineRightLeftBox(e),!r.J.isList(s)&&!r.J.isTag(s,"table")&&r.J.isBlock(s)&&r.J.isBlock(e)&&(r.J.append(e,t),r.J.moveContent(s,e),r.J.safeRemove(s)),r.J.isList(s)&&r.J.isLeaf(s.firstElementChild)&&r.J.isEmpty(s.firstElementChild)&&r.J.safeRemove(s.firstElementChild)}__defineRightLeftBox(t){if(!r.J.isList(t))return t;let e=t.lastElementChild;return r.J.isLeaf(e)||(e=this.j.createInside.element("li"),r.J.append(t,e)),e}__addBrInEmptyBlock(t,e,s){const i=this.j;if(t.isConnected&&r.J.isBlock(t.parentNode)&&!t.nextSibling&&!t.previousSibling){const e=i.createInside.element("br");r.J.after(t,e),s.setStartBefore(e),s.collapse(!0)}if(r.J.isTag(e,"table")){const t=(0,o.$$)("td,th",e).shift();r.J.isCell(t)&&r.J.isEmpty(t)&&r.J.append(t,i.createInside.element("br"))}}__moveCursorInEditableSibling(t,e,s,i){if(!e||!r.J.isText(e)){const e=r.J.closest(s,r.J.isBlock,t.editor)??t.editor,o=r.J.prev(s,r.J.isText,e);o&&(i.setStartAfter(o),i.collapse(!0),r.J.safeRemove(s))}}}l.requires=["backspace"],i.fg.add("deleteCommand",l)},96900(t,e,s){"use strict";s(36115).T.prototype.draggableTags=["img","jodit-media","jodit"]},27509(t,e,s){"use strict";var r,i=s(31635),o=s(22664),n=s(71842),a=s(56298),l=s(65147),c=s(71005);s(96900),(t=>{t[t.IDLE=0]="IDLE",t[t.WAIT_DRAGGING=1]="WAIT_DRAGGING",t[t.DRAGGING=2]="DRAGGING"})(r||(r={}));class u extends c.k{constructor(){super(...arguments),this.dragList=[],this.draggable=null,this.isCopyMode=!1,this.diffStep=10,this.startX=0,this.startY=0,this.state=r.IDLE}afterInit(){this.dragList=this.j.o.draggableTags?(0,l.splitArray)(this.j.o.draggableTags).filter(Boolean).map((t=>t.toLowerCase())):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}onDragStart(t){if("dragstart"===t.type&&this.draggable)return!1;if(this.state>r.IDLE)return;const e=t.target;if(!this.dragList.length||!e)return;const s=t=>!(!t||!this.dragList.includes(t.nodeName.toLowerCase()));let i=n.J.furthest(e,s,this.j.editor)||(s(e)?e:null);i&&(n.J.isTag(i.parentElement,"a")&&i.parentElement.firstChild===i&&i.parentElement.lastChild===i&&(i=i.parentElement),this.startX=t.clientX,this.startY=t.clientY,this.isCopyMode=(0,l.ctrlKey)(t),this.draggable=i.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",i),this.state=r.WAIT_DRAGGING,this.addDragListeners())}onDrag(t){if(!this.draggable||this.state===r.IDLE)return;const e=t.clientY;if(this.state!==r.WAIT_DRAGGING||Math.sqrt(Math.pow(t.clientX-this.startX,2)+Math.pow(e-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){const e=(0,l.dataBind)(this.draggable,"target");(0,l.css)(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:t.clientX,top:t.clientY,width:e?.offsetWidth??100,height:e?.offsetHeight??100}),(0,a.My)(this.j,u).appendChild(this.draggable)}(0,l.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&&(n.J.safeRemove(this.draggable),this.draggable=null))}onDrop(){if(!this.draggable||r.DRAGGING>this.state)return void this.onDragEnd();let t=(0,l.dataBind)(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(t=t.cloneNode(!0));const{parentElement:e}=t;this.j.s.insertNode(t,!0,!1),e&&n.J.isEmpty(e)&&!n.J.isCell(e)&&n.J.safeRemove(e),n.J.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),this.removeDragListeners()}}(0,i.Cg)([o.autobind],u.prototype,"onDragStart",null),(0,i.Cg)([(0,o.throttle)((t=>t.defaultTimeout/10))],u.prototype,"onDrag",null),(0,i.Cg)([o.autobind],u.prototype,"onDragEnd",null),(0,i.Cg)([o.autobind],u.prototype,"onDrop",null),a.fg.add("dragAndDropElement",u)},64565(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(65147),c=s(71005),u=s(10274);class h extends c.k{constructor(){super(...arguments),this.isFragmentFromEditor=!1,this.isCopyMode=!1,this.startDragPoint={x:0,y:0},this.draggable=null,this.bufferRange=null,this.getText=t=>{const e=(0,l.getDataTransfer)(t);return e?e.getData(i.TEXT_HTML)||e.getData(i.TEXT_PLAIN):null}}afterInit(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}onDragStart(t){let e=t.target;if(this.onDragEnd(),this.isFragmentFromEditor=n.J.isOrContains(this.j.editor,e,!0),this.isCopyMode=!this.isFragmentFromEditor||(0,l.ctrlKey)(t),this.isFragmentFromEditor){const t=this.j.s.sel,e=t&&t.rangeCount?t.getRangeAt(0):null;e&&(this.bufferRange=e.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=t.clientX,this.startDragPoint.y=t.clientY,(t=>n.J.isElement(t)&&t.classList.contains(u.Q.prototype.getFullElName("item")))(e)&&(e=e.querySelector("img")),n.J.isTag(e,"img")&&(this.draggable=e.cloneNode(!0),(0,l.dataBind)(this.draggable,"target",e)),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&&(n.J.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;const e=this.j.s.sel,s=this.bufferRange||(e&&e.rangeCount?e.getRangeAt(0):null);let r=null;if(!this.draggable&&s)r=this.isCopyMode?s.cloneContents():s.extractContents();else if(this.draggable)if(this.isCopyMode){const[t,e]="1"===(0,l.attr)(this.draggable,"-is-file")?["a","href"]:["img","src"];r=this.j.createInside.element(t),r.setAttribute(e,(0,l.attr)(this.draggable,"data-src")||(0,l.attr)(this.draggable,"src")||""),"a"===t&&(r.textContent=(0,l.attr)(r,e)||"")}else r=(0,l.dataBind)(this.draggable,"target");else this.getText(t)&&(r=this.j.createInside.fromHTML(this.getText(t)));e&&e.removeAllRanges(),this.j.s.insertCursorAtPoint(t.clientX,t.clientY),r&&(this.j.s.insertNode(r,!1,!1),s&&r.firstChild&&r.lastChild&&(s.setStartBefore(r.firstChild),s.setEndAfter(r.lastChild),this.j.s.selectRange(s),this.j.e.fire("synchro")),n.J.isTag(r,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",r)),t.preventDefault(),t.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}beforeDestruct(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}(0,r.Cg)([o.autobind],h.prototype,"onDragStart",null),(0,r.Cg)([(0,o.throttle)((t=>t.defaultTimeout/10))],h.prototype,"onDrag",null),(0,r.Cg)([o.autobind],h.prototype,"onDragEnd",null),(0,r.Cg)([o.autobind],h.prototype,"onDrop",null),a.fg.add("dragAndDrop",h)},69122(t,e,s){"use strict";s.r(e),s.d(e,{removeExtraBr(){return r.z}});var r=s(72984)},72984(t,e,s){"use strict";s.d(e,{z(){return o}});var r=s(55186);const i=new Set(["table","pre","blockquote","code"]);function o(t,e){if(!t.o.dtd.removeExtraBr||r.J.isTag(e,"br"))return;const s=r.J.furthest(e,r.J.isBlock,t.editor);if(s&&!r.J.isTag(s,i)){const s=r.J.isTag(e,"br")?e:r.J.findNotEmptySibling(e,!1);if(!r.J.isTag(s,"br"))return;t.s.setCursorBefore(s),r.J.safeRemove(s)}}},30958(t,e,s){"use strict";s.d(e,{o(){return i}});var r=s(55186);function i(t,e){if(r.J.isFragment(e)&&(e=e.firstChild),t.o.dtd.checkBlockNesting&&r.J.isBlock(e)){const e=r.J.furthest(t.s.current(),r.J.isBlock,t.editor);e&&!t.o.dtd.blockLimits[e.tagName.toLowerCase()]&&(t.s.setCursorAfter(e),r.J.isEmpty(e)&&r.J.safeRemove(e))}}},28313(t,e,s){"use strict";s.r(e),s.d(e,{checkBlockNesting(){return r.o}});var r=s(30958)},43655(t,e,s){"use strict";s(36115).T.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}}},61589(t,e,s){"use strict";var r=s(31635),i=s(66927),o=s(56298),n=s(71005),a=(s(43655),s(69122)),l=s(28313);class c extends n.k{afterInit(t){}beforeDestruct(t){}__onBeforeInsertNode(t){Object.keys(l).forEach((e=>{l[e](this.j,t)}))}__onAfterInsertNode(t){Object.keys(a).forEach((e=>{a[e](this.j,t)}))}}(0,r.Cg)([(0,i.wB)(":beforeInsertNode")],c.prototype,"__onBeforeInsertNode",null),(0,r.Cg)([(0,i.wB)(":afterInsertNode")],c.prototype,"__onAfterInsertNode",null),o.fg.add("dtd",c)},13405(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(9810),c=s(29866),u=s(81781);class h extends c.k{afterInit(t){const e=t.o.enter.toLowerCase(),s=e===i.BR.toLowerCase();t.o.enterBlock||(t.o.enterBlock=s?i.PARAGRAPH:e),t.registerCommand("enter",((t,e,s={})=>this.onEnter(s)))}onEnterKeyDown(t){if(t.key===i.KEY_ENTER){const e=this.j,s=e.e.fire("beforeEnter",t);return void 0!==s?s:(e.s.isCollapsed()||e.execCommand("Delete"),e.s.focus(),this.onEnter(t),e.e.fire("afterEnter",t),e.synchronizeValues(),!1)}}onEnter(t){const{jodit:e}=this,s=e.createInside.fake();try{n.J.safeInsertNode(e.s.range,s),(0,u.Mt)(e,s,["a"]);let r=(0,u.Dk)(s,e);const i=n.J.isLeaf(r);if((!i||t?.shiftKey)&&(0,u.lN)(s,e,t?.shiftKey))return!1;if(r||(0,u.tX)(s,e)||(r=(0,u.C1)(s,e)),!r)return(0,u.yh)(s,e,i?"li":e.o.enter),!1;if(!(0,u.bD)(s,e,r))return!1;if(i&&this.__isEmptyListLeaf(r))return(0,u.cf)(s,e,r),!1;(0,u.HS)(s,e,r)}finally{s.isConnected&&e.s.setCursorBefore(s),n.J.safeRemove(s)}}__isEmptyListLeaf(t){const e=this.j.e.fire("enterIsEmptyListLeaf",t);return(0,l.L)(e)?e:n.J.isEmpty(t)}beforeDestruct(t){t.e.off("keydown.enter")}}(0,r.Cg)([(0,o.watch)(":keydown.enter")],h.prototype,"onEnterKeyDown",null),a.fg.add("enter",h)},6110(t,e,s){"use strict";s.d(e,{l(){return n}});var r=s(17352),i=s(55186),o=s(641);function n(t,e,s){const n=!!i.J.closest(t,["pre","blockquote"],e.editor);if(e.o.enter.toLowerCase()===r.BR.toLowerCase()||s&&!n||!s&&n){if(n&&(t=>{const e=a(a(t));return!!e&&(i.J.safeRemove(a(t)),i.J.safeRemove(e),!0)})(t))return!1;const s=e.createInside.element("br");if(i.J.before(t,s),!i.J.findNotEmptySibling(s,!1)){const e=s.cloneNode();i.J.after(s,e),i.J.before(e,t)}return(0,o.$)(s,e.editor,e.ed),!0}return!1}function a(t){if(!t)return!1;const e=i.J.findSibling(t,!0);return!(!e||!i.J.isTag(e,"br"))&&e}},47317(t,e,s){"use strict";s.d(e,{b(){return i}});var r=s(55186);function i(t,e,s){return!!r.J.canSplitBlock(s)||(r.J.before(t,e.createInside.element("br")),!1)}},36291(t,e,s){"use strict";s.d(e,{D(){return o}});var r=s(17352),i=s(55186);function o(t,e,s=r.IS_BLOCK){let n=t;const a=e.editor;do{if(!n||n===a)break;if(s.test(n.nodeName))return i.J.isLeaf(n)?n:o(n.parentNode,e,/^li$/i)||n;n=n.parentNode}while(n&&n!==a);return null}},64107(t,e,s){"use strict";s.d(e,{t(){return i}});var r=s(55186);function i(t,e){return!!r.J.prev(t,(t=>r.J.isBlock(t)||r.J.isImage(t)),e.editor)}},81781(t,e,s){"use strict";s.d(e,{C1(){return h.C},Dk(){return o.D},HS(){return u.H},Mt(){return l.M},bD(){return i.b},cf(){return c.c},lN(){return r.l},tX(){return n.t},yh(){return a.y}});var r=s(6110),i=s(47317),o=s(36291),n=s(64107),a=s(41159),l=s(63634),c=s(30687),u=s(70214),h=s(62453)},41159(t,e,s){"use strict";s.d(e,{y(){return o}});var r=s(55186),i=s(641);function o(t,e,s,o){const n="br"===s.toLowerCase(),{createInside:a}=e,l=a.element(s),c=a.element("br");return n||l.appendChild(c),o&&o.cssText&&l.setAttribute("style",o.cssText),r.J.after(t,l),r.J.before(n?l:c,t),(0,i.$)(l,e.editor,e.ed),l}},63634(t,e,s){"use strict";s.d(e,{M(){return i}});var r=s(55186);function i(t,e,s){const{s:i}=t,o=r.J.closest(e,s,t.editor);o&&(i.cursorOnTheRight(o,e)?r.J.after(o,e):i.cursorOnTheLeft(o,e)&&r.J.before(o,e))}},30687(t,e,s){"use strict";s.d(e,{c(){return n}});var r=s(55186),i=s(58720),o=s(41159);function n(t,e,s){const n=r.J.closest(s,["ol","ul"],e.editor);if(!n)return;const a=n.parentElement,l=r.J.isLeaf(a),c=l?a:n,u=e.s.createRange();u.setStartAfter(s),u.setEndAfter(n);const h=u.extractContents();r.J.after(c,t),r.J.safeRemove(s),(0,i.$$)("li",n).length||r.J.safeRemove(n);const d=(0,o.y)(t,e,l?"li":e.o.enter);h.querySelector("li")&&(l?d.appendChild(h):r.J.after(d,h))}},70214(t,e,s){"use strict";s.d(e,{H(){return n}});var r=s(55186),i=s(641),o=s(41159);function n(t,e,s){const n=e.s,{enter:a}=e.o,l=a.toLowerCase(),c=r.J.isLeaf(s),u=s.tagName.toLowerCase()===l||c,h=n.cursorOnTheRight(s,t),d=n.cursorOnTheLeft(s,t);if(!u&&(h||d))return h?r.J.after(s,t):r.J.before(s,t),(0,o.y)(t,e,l),void(d&&!h&&r.J.prepend(s,t));const p=n.splitSelection(s,t);(0,i.$)(p,e.editor,e.ed)}},62453(t,e,s){"use strict";s.d(e,{C(){return i}});var r=s(55186);function i(t,e){let s=t;r.J.up(s,(t=>{t&&t.hasChildNodes()&&t!==e.editor&&(s=t)}),e.editor);const i=r.J.wrapInline(s,e.o.enter,e);if(r.J.isEmpty(i)){const s=e.createInside.element("br");i.appendChild(s),r.J.before(s,t)}return i}},67335(t,e,s){"use strict";var r=s(55186),i=s(56298),o=s(16116);s(36115).T.prototype.controls.file={popup(t,e,s){const i=(e,s="")=>{t.s.insertNode(t.createInside.fromHTML(`<a href="${e}" title="${s}">${s||e}</a>`))};let n=null;return e&&(r.J.isTag(e,"a")||r.J.closest(e,"a",t.editor))&&(n=r.J.isTag(e,"a")?e:r.J.closest(e,"a",t.editor)),(0,o.kG)(t,{filebrowser(t){t.files&&t.files.forEach((e=>i(t.baseurl+e))),s()},upload:!0,url(t,e){n?(n.setAttribute("href",t),n.setAttribute("title",e)):i(t,e),s()}},n,s,!1)},tags:["a"],tooltip:"Insert file"},i.fg.add("file",(t=>{t.registerButton({name:"file",group:"media"})}))},92553(t,e,s){"use strict";var r=s(71842),i=s(56298),o=s(36115);o.T.prototype.autofocus=!1,o.T.prototype.cursorAfterAutofocus="end",o.T.prototype.saveSelectionOnBlur=!0,i.fg.add("focus",(t=>{t.o.saveSelectionOnBlur&&t.e.on("blur",(()=>{t.isEditorMode()&&t.s.save(!0)})).on("focus",(()=>{t.s.restore()}));const e=()=>{if(t.s.focus(),"end"===t.o.cursorAfterAutofocus){const e=r.J.last(t.editor,(t=>r.J.isText(t)));e&&t.s.setCursorIn(e,!1)}};t.e.on("afterInit",(()=>{t.o.autofocus&&(t.defaultTimeout?t.async.setTimeout(e,300):e())})),t.e.on("afterInit afterAddPlace",(()=>{t.e.off(t.editor,"mousedown.autofocus").on(t.editor,"mousedown.autofocus",(e=>{t.isEditorMode()&&e.target&&r.J.isBlock(e.target)&&!e.target.childNodes.length&&(t.editor===e.target?t.s.focus():t.s.setCursorIn(e.target))}))}))}))},67986(t,e,s){"use strict";var r=s(71842),i=s(59101),o=s(38322),n=s(931),a=s(48842),l=s.n(a),c=s(25501),u=s.n(c),h=s(36115);h.T.prototype.defaultFontSizePoints="px",n.I.set("font",l()).set("fontsize",u()),h.T.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise(t,e){return/pt$/i.test(t)&&"pt"===e.o.defaultFontSizePoints?t.replace(/pt$/i,""):t}},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate(t,e){return e+t.o.defaultFontSizePoints},childTemplate(t,e,s){return`${s}${t.o.defaultFontSizePoints}`},tooltip:"Font size",value(t,e){const s=t.s.current();if(!s)return;const i=r.J.closest(s,r.J.isElement,t.editor);if(!i)return;const n=e.control;return""+(0,o.A)(i,n.data?.cssRule||"font-size")},isChildActive(t,e){const s=e.state.value,r=e.control.data?.normalize??(t=>t);return!(!s||!e.control.args||r(""+e.control.args[0])!==r(""+s))},isActive(t,e){const s=e.state.value;if(!s)return!1;const r=e.control.data?.normalize??(t=>t);let i=e.control.data.cacheListSet;if(!i){const t=Object.keys(e.control.list).map(r);i=new Set(t),e.control.data.cacheListSet=i}return i.has(r(""+s))}},h.T.prototype.controls.font={...h.T.prototype.controls.fontsize,command:"fontname",textTemplate(t,e){const[s]=e.split(",");return(0,i.Gd)(s,"\"'")},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,e,s){let r=!1;try{r=-1===e.indexOf("dings")&&document.fonts.check("16px "+e,s)}catch{}return`<span data-style="${e}" style="${r?`font-family: ${e}!important;`:""}">${s}</span>`},data:{cssRule:"font-family",normalize(t){return t.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")}},tooltip:"Font family"}},73077(t,e,s){"use strict";var r=s(56298),i=s(65147);s(67986),r.fg.add("font",(t=>{t.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});const e=(e,s,r)=>{switch(e){case"fontsize":t.s.commitStyle({attributes:{style:{fontSize:(0,i.normalizeSize)(r,t.o.defaultFontSizePoints)}}});break;case"fontname":t.s.commitStyle({attributes:{style:{fontFamily:r}}})}return t.synchronizeValues(),!1};t.registerCommand("fontsize",e).registerCommand("fontname",e)}))},71576(t,e,s){"use strict";var r=s(71842),i=s(931),o=s(29348),n=s.n(o),a=s(36115);i.I.set("paragraph",n()),a.T.prototype.controls.paragraph={command:"formatBlock",value(t,e){const s=e.control,i=t.s.current(),o=r.J.closest(i,r.J.isBlock,t.editor);return o?.nodeName.toLowerCase()??s.data?.currentValue},update(t,e){const s=e.control;if(!t.s.current())return!1;const r=e.state.value,i=s.list;return i&&i[""+r]&&t.o.textIcons&&(e.state.text=""+i[""+r]),!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,e){return!(e.state.value!==e.control?.args?.[0])},isActive(t,e){return e.state.value!==t.o.enter&&!!e.control.list?.[e.state.value]},childTemplate(t,e,s){return`<${e} style="margin:0;padding:0"><span>${t.i18n(s)}</span></${e}>`},tooltip:"Insert format block"}},88429(t,e,s){"use strict";var r=s(56298);s(71576),r.fg.add("formatBlock",(t=>{t.registerButton({name:"paragraph",group:"font"}),t.registerCommand("formatblock",((e,s,r)=>(t.s.commitStyle({element:r}),t.synchronizeValues(),!1)))}))},70061(t,e,s){"use strict";var r=s(17352),i=s(931),o=s(24772),n=s.n(o),a=s(66547),l=s.n(a),c=s(36115);c.T.prototype.fullsize=!1,c.T.prototype.globalFullSize=!0,i.I.set("fullsize",n()).set("shrink",l()),c.T.prototype.controls.fullsize={exec(t){t.toggleFullSize()},update(t,e){const s=t.isFullSize?"shrink":"fullsize";e.state.activated=t.isFullSize,t.o.textIcons?e.state.text=s:e.state.icon.name=s},tooltip:"Open in fullsize",mode:r.MODE_SOURCE+r.MODE_WYSIWYG}},9443(t,e,s){"use strict";var r=s(56298),i=s(83044),o=s(38322);s(70061);const n=new Set;r.fg.add("fullsize",(t=>{t.registerButton({name:"fullsize"});let e=!1,s=0,r=0,a=!1;const l=()=>{const{container:i,events:n}=t;n&&(e?(s=(0,o.A)(i,"height",!0),r=(0,o.A)(i,"width",!0),(0,o.A)(i,{height:t.ow.innerHeight,width:t.ow.innerWidth}),a=!0):a&&(0,o.A)(i,{height:s||"auto",width:r||"auto"}))},c=s=>{const{container:r,events:a}=t;if(r){if(void 0===s&&(s=!r.classList.contains("jodit_fullsize")),t.setMod("fullsize",s),t.o.fullsize=s,e=s,r.classList.toggle("jodit_fullsize",s),t.toolbar&&((0,i.y)(t)&&t.toolbarContainer?.appendChild(t.toolbar.container),(0,o.A)(t.toolbar.container,"width","auto")),s?n.add(r):n.delete(r),t.o.globalFullSize&&(1===n.size&&s||0===n.size&&!s)){let t=r.parentNode;for(;t&&t.nodeType!==Node.DOCUMENT_NODE&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t.classList.toggle("jodit_fullsize-box_true",s),t=t.parentNode;l()}a.fire("afterResize")}};t.o.globalFullSize&&t.e.on(t.ow,"resize",l),t.e.on("afterInit afterOpen",(()=>{t.toggleFullSize(t?.options?.fullsize)})).on("toggleFullSize",c).on("beforeDestruct",(()=>{e&&c(!1)})).on("beforeDestruct",(()=>{t.events&&t.e.off(t.ow,"resize",l)}))}))},81522(t,e,s){"use strict";s(36115).T.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"]}},30405(t,e,s){"use strict";var r=s(17352),i=s(56298),o=s(65147),n=s(71005);s(81522),i.fg.add("hotkeys",class a extends n.k{constructor(){super(...arguments),this.onKeyPress=t=>{const e=this.specialKeys[t.which],s=(t.key||String.fromCharCode(t.which)).toLowerCase(),r=[e||s];return["alt","ctrl","shift","meta"].forEach((s=>{t[s+"Key"]&&e!==s&&r.push(s)})),(0,o.normalizeKeyAliases)(r.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:"'"}}afterInit(t){(0,o.keys)(t.o.commandToHotkeys,!1).forEach((e=>{const s=t.o.commandToHotkeys[e];s&&((0,o.isArray)(s)||(0,o.isString)(s))&&t.registerHotkeyToCommand(s,e)}));let e=!1;t.e.off(".hotkeys").on([t.ow,t.ew],"keydown.hotkeys",(t=>{if(t.key===r.KEY_ESC)return this.j.e.fire("escape",t)})).on("keydown.hotkeys",(s=>{const r=this.onKeyPress(s),i={shouldStop:!0};if(!1===this.j.e.fire(r+".hotkey",s.type,i)){if(i.shouldStop)return e=!0,t.e.stopPropagation("keydown"),!1;s.preventDefault()}}),{top:!0}).on("keyup.hotkeys",(()=>{if(e)return e=!1,t.e.stopPropagation("keyup"),!1}),{top:!0})}beforeDestruct(t){t.events&&t.e.off(".hotkeys")}})},89651(t,e,s){"use strict";var r=s(71842),i=s(56298),o=s(931),n=s(89097),a=s.n(n),l=s(36115);o.I.set("hr",a()),l.T.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},i.fg.add("hr",(t=>{t.registerButton({name:"hr",group:"insert"}),t.registerCommand("insertHorizontalRule",(()=>{const e=t.createInside.element("hr");t.s.insertNode(e,!1,!1);const s=r.J.closest(e.parentElement,r.J.isBlock,t.editor);s&&r.J.isEmpty(s)&&s!==t.editor&&(r.J.after(s,e),r.J.safeRemove(s));let i=r.J.next(e,r.J.isBlock,t.editor,!1);return i||(i=t.createInside.element(t.o.enter),r.J.after(e,i)),t.s.setCursorIn(i),!1}))}))},99689(t,e,s){"use strict";var r=s(36115);r.T.prototype.iframeBaseUrl="",r.T.prototype.iframeTitle="Jodit Editor",r.T.prototype.iframeDoctype="<!DOCTYPE html>",r.T.prototype.iframeDefaultSrc="about:blank",r.T.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}',r.T.prototype.iframeCSSLinks=[]},26495(t,e,s){"use strict";var r=s(17352),i=s(56298),o=s(65147);s(99689),i.fg.add("iframe",(t=>{const e=t.options;t.e.on("afterSetMode",(()=>{t.isEditorMode()&&t.s.focus()})).on("generateDocumentStructure.iframe",((t,s)=>{const r=t||s.iframe.contentWindow.document;if(r.open(),r.write(e.iframeDoctype+`<html dir="${e.direction}" class="jodit" lang="${(0,o.defaultLanguage)(e.language)}"><head>`+`<title>${e.iframeTitle}</title>`+(e.iframeBaseUrl?`<base href="${e.iframeBaseUrl}"/>`:"")+'</head><body class="jodit-wysiwyg"></body></html>'),r.close(),e.iframeCSSLinks&&e.iframeCSSLinks.forEach((t=>{const e=r.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),r.head&&r.head.appendChild(e)})),e.iframeStyle){const t=r.createElement("style");t.innerHTML=e.iframeStyle,r.head&&r.head.appendChild(t)}})).on("createEditor",(()=>{if(!e.iframe)return;const s=t.c.element("iframe");s.style.display="block",s.src="about:blank",s.className="jodit-wysiwyg_iframe",s.setAttribute("allowtransparency","true"),s.setAttribute("tabindex",""+e.tabIndex),s.setAttribute("frameborder","0"),t.workplace.appendChild(s),t.iframe=s;const i=t.e.fire("generateDocumentStructure.iframe",null,t);return(0,o.callPromise)(i,(()=>{if(!t.iframe)return!1;const s=t.iframe.contentWindow.document;t.editorWindow=t.iframe.contentWindow;const i=()=>{(0,o.attr)(s.body,"contenteditable",t.getMode()!==r.MODE_SOURCE&&!t.getReadOnly()||null)},n=t=>{const e=/<body.*<\/body>/im,s="{%%BODY%%}",r=e.exec(t);return r&&(t=t.replace(e,s).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(s,r[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(e.editHTMLDocumentMode){const e=t.element.tagName;if("TEXTAREA"!==e&&"INPUT"!==e)throw(0,o.error)("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");t.e.on("beforeGetNativeEditorValue",(()=>n(t.o.iframeDoctype+s.documentElement.outerHTML))).on("beforeSetNativeEditorValue",(({value:e})=>!t.isLocked&&(/<(html|body)/i.test(e)?n(s.documentElement.outerHTML)!==n(e)&&(s.open(),s.write(t.o.iframeDoctype+n(e)),s.close(),t.editor=s.body,t.e.fire("safeHTML",t.editor),i(),t.e.fire("prepareWYSIWYGEditor"),t.e.stopPropagation("beforeSetNativeEditorValue")):s.body.innerHTML=e,!0)),{top:!0})}if(t.editor=s.body,t.e.on("afterSetMode afterInit afterAddPlace",i),"auto"===e.height){s.documentElement&&(s.documentElement.style.overflowY="hidden");const r=t.async.throttle(((...s)=>{t.async.requestAnimationFrame((()=>{if(t.editor&&t.iframe&&"auto"===e.height){const e=t.ew.getComputedStyle(t.editor);(0,o.css)(t.iframe,"height",t.editor.offsetHeight+(parseInt(e.marginTop||"0",10)+parseInt(e.marginBottom||"0",10)))}}))}),t.defaultTimeout/2);if(t.e.on("change afterInit afterSetMode resize",r).on([t.iframe,t.ew,s.documentElement],"load",r).on(s,"readystatechange DOMContentLoaded",r),"function"==typeof ResizeObserver){const e=new ResizeObserver(r);e.observe(s.body),t.e.on("beforeDestruct",(()=>{e.disconnect()}))}}return s.documentElement&&t.e.on(s.documentElement,"mousedown touchend",(()=>{t.s.isFocused()||(t.s.focus(),t.editor===s.body&&t.s.setCursorIn(s.body))})).on(t.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(e=>{t.events?.fire(t.ow,e)})),!1}))}))}))},67915(t,e,s){"use strict";s(36115).T.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0}},92097(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(56298),a=s(65147),l=s(71005);s(67915);const c="__jodit_imageprocessor_binded",u=c+"blob-id";class h extends l.k{afterInit(t){}beforeDestruct(t){const e=t.buffer.get(u);if(e){const s=Object.keys(e);for(const t of s)URL.revokeObjectURL(t);t.buffer.delete(u)}}onAfterGetValueFromEditor(t,e){if(e!==i.SOURCE_CONSUMER)return this.onBeforeSetElementValue(t)}onBeforeSetElementValue(t){const{jodit:e}=this;if(!e.o.imageProcessor.replaceDataURIToBlobIdInView)return;const s=e.buffer.get(u);if(s){const e=Object.keys(s);for(const r of e)for(;t.value.includes(r);)t.value=t.value.replace(r,s[r])}}async afterChange(t){const{jodit:e}=this;e.editor&&(0,a.$$)("img",e.editor).forEach((t=>{(0,a.dataBind)(t,c)||((0,a.dataBind)(t,c,!0),t.complete||e.e.on(t,"load",(function s(){!e.isInDestruct&&e.e?.fire("resize"),e.e.off(t,"load",s)})),t.src&&/^data:/.test(t.src)&&((t,e)=>{if(!t.o.imageProcessor.replaceDataURIToBlobIdInView)return;if("undefined"==typeof ArrayBuffer||"undefined"==typeof URL)return;const s=e.src,r=(t=>{const e=atob(t.split(",")[1]),s=t.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),i=new Uint8Array(r);for(let t=0;e.length>t;t++)i[t]=e.charCodeAt(t);return new Blob([r],{type:s})})(s);e.src=URL.createObjectURL(r),t.e.fire("internalUpdate");const{buffer:i}=t,o=i.get(u)||{};o[e.src]=s,t.buffer.set(u,o)})(e,t),e.e.on(t,"mousedown touchstart",(()=>{e.s.select(t)})))}))}}(0,r.Cg)([(0,o.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),(0,r.Cg)([(0,o.watch)(":beforeSetElementValue")],h.prototype,"onBeforeSetElementValue",null),(0,r.Cg)([(0,o.watch)([":change",":afterInit",":changePlace"]),(0,o.debounce)()],h.prototype,"afterChange",null),n.fg.add("imageProcessor",h)},24654(t,e,s){"use strict";s(36115).T.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}},19085(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(56298),n=s(65147),a=s(35265),l=s(37435),c=s(53804),u=s(16116),h=(s(24654),s(22254)),d=s(75263),p=s(57837);const f=t=>(t=(0,n.trim)(t),/^[0-9]+$/.test(t)?t+"px":t),m=t=>/^[-+]?[0-9.]+px$/.test(""+t)?parseFloat(""+t):t;class g extends l.Plugin{constructor(){super(...arguments),this.state={image:new Image,get ratio(){return this.image.naturalWidth/this.image.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0},this.activeTabState={__activeTab:"Image"}}onChangeMarginIsLocked(){if(!this.form)return;const{marginRight:t,marginBottom:e,marginLeft:s,lockMargin:r}=(0,n.refs)(this.form);[t,e,s].forEach((t=>{(0,n.attr)(t,"disabled",this.state.marginIsLocked||null)})),r.innerHTML=l.Icon.get(this.state.marginIsLocked?"lock":"unlock")}onChangeSizeIsLocked(){if(!this.form)return;const{lockSize:t,imageWidth:e}=(0,n.refs)(this.form);t.innerHTML=l.Icon.get(this.state.sizeIsLocked?"lock":"unlock"),t.classList.remove("jodit-properties__lock"),t.classList.remove("jodit-properties__unlock"),t.classList.add(this.state.sizeIsLocked?"jodit-properties__lock":"jodit-properties__unlock"),this.j.e.fire(e,"change")}open(){return this.makeForm(),this.activeTabState.__activeTab="Image",this.j.e.fire("hidePopup"),(0,n.markOwner)(this.j,this.dialog.container),this.state.marginIsLocked=!0,this.state.sizeIsLocked=!0,this.onChangeMarginIsLocked(),this.onChangeSizeIsLocked(),this.updateValues(),this.dialog.open().setModal(!0).setPosition(),!1}makeForm(){if(this.dialog)return;this.dialog=this.j.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]});const t=this.j,e=t.o,s=t.i18n.bind(t),r={check:(0,a.$n)(t,"ok","Apply","primary"),remove:(0,a.$n)(t,"bin","Delete")};t.e.on(this.dialog,"afterClose",(()=>{this.state.image.parentNode&&e.image.selectImageAfterClose&&t.s.select(this.state.image)})),r.remove.onAction((()=>{t.s.removeNode(this.state.image),this.dialog.close()}));const{dialog:i}=this;i.setHeader(s("Image properties"));const o=(0,h.Z)(t);this.form=o,i.setContent(o);const{tabsBox:l}=(0,n.refs)(this.form);l&&l.appendChild((0,u.Zg)(t,[{name:"Image",content:(0,d.J)(t)},{name:"Advanced",content:(0,p.b)(t)}],this.activeTabState)),r.check.onAction(this.onApply);const{changeImage:c,editImage:f}=(0,n.refs)(this.form);t.e.on(c,"click",this.openImagePopup),e.image.useImageEditor&&t.e.on(f,"click",this.openImageEditor);const{lockSize:m,lockMargin:g,imageWidth:v,imageHeight:b}=(0,n.refs)(o);m&&t.e.on(m,"click",(()=>{this.state.sizeIsLocked=!this.state.sizeIsLocked})),t.e.on(g,"click",(t=>{this.state.marginIsLocked=!this.state.marginIsLocked,t.preventDefault()}));const y=t=>{if(!(0,n.isNumeric)(v.value)||!(0,n.isNumeric)(b.value))return;const e=parseFloat(v.value),s=parseFloat(b.value);t.target===v?b.value=""+Math.round(e/this.state.ratio):v.value=""+Math.round(s*this.state.ratio)};t.e.on([v,b],"change keydown mousedown paste",(e=>{this.state.sizeIsLocked&&t.async.setTimeout(y.bind(this,e),{timeout:t.defaultTimeout,label:"image-properties-changeSize"})})),i.setFooter([r.remove,r.check]),i.setSize(this.j.o.image.dialogWidth)}updateValues(){const t=this.j.o,{image:e}=this.state,{marginTop:s,marginRight:r,marginBottom:i,marginLeft:o,lockMargin:a,imageSrc:c,id:u,classes:h,align:d,style:p,imageTitle:f,imageAlt:g,borderRadius:v,imageLink:b,imageWidth:y,imageHeight:_,imageLinkOpenInNewTab:w,imageViewSrc:C,lockSize:S}=(0,n.refs)(this.form);(()=>{a.checked=this.state.marginIsLocked,S.checked=this.state.sizeIsLocked})(),c.value=(0,n.attr)(e,"src")||"",C&&(0,n.attr)(C,"src",(0,n.attr)(e,"src")||""),(()=>{f.value=(0,n.attr)(e,"title")||"",g.value=(0,n.attr)(e,"alt")||"";const t=l.Dom.closest(e,"a",this.j.editor);t?(b.value=(0,n.attr)(t,"href")||"",w.checked="_blank"===(0,n.attr)(t,"target")):(b.value="",w.checked=!1)})(),(()=>{const t=(0,n.attr)(e,"width")||(0,n.css)(e,"width",!0)||!1,s=(0,n.attr)(e,"height")||(0,n.css)(e,"height",!0)||!1;y.value=!1!==t?""+m(t):""+e.offsetWidth,_.value=!1!==s?""+m(s):""+e.offsetHeight,this.state.sizeIsLocked=(()=>!(!(0,n.isNumeric)(y.value)||!(0,n.isNumeric)(_.value))&&1>Math.abs(parseFloat(y.value)-parseFloat(_.value)*this.state.ratio))()})(),(()=>{if(!t.image.editMargins)return;let a=!0,l=!1;[s,r,i,o].forEach((t=>{const r=(0,n.attr)(t,"data-ref")||"";let i=e.style.getPropertyValue((0,n.kebabCase)(r));if(!i)return l=!0,void(t.value="");/^[0-9]+(px)?$/.test(i)&&(i=parseInt(i,10)),t.value=""+i||"",(l&&t.value||a&&"marginTop"!==r&&t.value!==s.value)&&(a=!1)})),this.state.marginIsLocked=a})(),h.value=((0,n.attr)(e,"class")||"").replace(/jodit_focused_image[\s]*/,""),u.value=(0,n.attr)(e,"id")||"",v.value=""+(parseInt(e.style.borderRadius||"0",10)||"0"),e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?d.value=(0,n.css)(e,"float"):"block"===(0,n.css)(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight&&(d.value="center"),p.value=(0,n.attr)(e,"style")||""}onApply(){const{style:t,imageSrc:e,borderRadius:s,imageTitle:r,imageAlt:i,imageLink:o,imageWidth:a,imageHeight:c,marginTop:u,marginRight:h,marginBottom:d,marginLeft:p,imageLinkOpenInNewTab:m,align:g,classes:v,id:b}=(0,n.refs)(this.form),y=this.j.o,{image:_}=this.state;if(y.image.editStyle&&(0,n.attr)(_,"style",t.value||null),!e.value)return l.Dom.safeRemove(_),void this.dialog.close();(0,n.attr)(_,"src",e.value),_.style.borderRadius="0"!==s.value&&/^[0-9]+$/.test(s.value)?s.value+"px":"",(0,n.attr)(_,"title",r.value||null),(0,n.attr)(_,"alt",i.value||null);let w=l.Dom.closest(_,"a",this.j.editor);if(o.value?(w||(w=l.Dom.wrap(_,"a",this.j.createInside)),(0,n.attr)(w,"href",o.value),(0,n.attr)(w,"target",m.checked?"_blank":null)):w&&w.parentNode&&w.parentNode.replaceChild(_,w),a.value!==""+_.offsetWidth||c.value!==""+_.offsetHeight){const t=(0,n.trim)(a.value)?f(a.value):null,e=(0,n.trim)(c.value)?f(c.value):null;(0,n.css)(_,{width:t,height:e}),(0,n.attr)(_,"width",(0,n.attr)(_,"width")?t:null),(0,n.attr)(_,"height",(0,n.attr)(_,"height")?e:null)}const C=[u,h,d,p];y.image.editMargins&&(this.state.marginIsLocked?(0,n.css)(_,"margin",f(u.value)):C.forEach((t=>{const e=(0,n.attr)(t,"data-ref")||"";(0,n.css)(_,e,f(t.value))}))),y.image.editClass&&(0,n.attr)(_,"class",v.value||null),y.image.editId&&(0,n.attr)(_,"id",b.value||null),y.image.editAlign&&(0,n.hAlignElement)(_,g.value),this.j.synchronizeValues(),this.dialog.close()}openImageEditor(){const t=(0,n.attr)(this.state.image,"src")||"",e=this.j.c.element("a"),s=()=>{e.host===location.host||this.j.confirm("You can only edit your own images. Download this image on the host?",(t=>{t&&this.j.uploader&&this.j.uploader.uploadRemoteImage(""+e.href,(t=>{this.j.alert("The image has been successfully uploaded to the host!",(()=>{(0,n.isString)(t.newfilename)&&((0,n.attr)(this.state.image,"src",t.baseurl+t.newfilename),this.updateValues())}))}),(t=>{this.j.alert("There was an error loading %s",t.message)}))}))};e.href=t,this.j.filebrowser.dataProvider.getPathByUrl(""+e.href).then((s=>{c.B.call(this.j.filebrowser,e.href,s.name,s.path,s.source,(()=>{const e=(new Date).getTime();(0,n.attr)(this.state.image,"src",t+(-1!==t.indexOf("?")?"":"?")+"&_tmp="+e),this.updateValues()}),(t=>{this.j.alert(t.message)}))})).catch((t=>{this.j.alert(t.message,s)}))}openImagePopup(t){const e=new l.Popup(this.j),{changeImage:s}=(0,n.refs)(this.form);e.setZIndex(this.dialog.getZIndex()+1),e.setContent((0,u.kG)(this.j,{upload:t=>{t.files&&t.files.length&&(0,n.attr)(this.state.image,"src",t.baseurl+t.files[0]),this.updateValues(),e.close()},filebrowser:t=>{t&&(0,n.isArray)(t.files)&&t.files.length&&((0,n.attr)(this.state.image,"src",t.files[0]),e.close(),this.updateValues())}},this.state.image,e.close)).open((()=>(0,n.position)(s))),t.stopPropagation()}afterInit(t){const e=this;t.e.on("afterConstructor changePlace",(()=>{t.e.off(t.editor,".imageproperties").on(t.editor,"dblclick.imageproperties",(s=>{const r=s.target;if(l.Dom.isTag(r,"img"))if(t.o.image.openOnDblClick){if(!1===this.j.e.fire("openOnDblClick",r))return;e.state.image=r,t.o.readonly||(s.stopImmediatePropagation(),s.preventDefault(),e.open())}else s.stopImmediatePropagation(),t.s.select(r)}))})).on("openImageProperties.imageproperties",(t=>{this.state.image=t,this.open()}))}beforeDestruct(t){this.dialog&&this.dialog.destruct(),t.e.off(t.editor,".imageproperties").off(".imageproperties")}}(0,r.Cg)([(0,i.watch)("state.marginIsLocked")],g.prototype,"onChangeMarginIsLocked",null),(0,r.Cg)([(0,i.watch)("state.sizeIsLocked")],g.prototype,"onChangeSizeIsLocked",null),(0,r.Cg)([i.autobind],g.prototype,"onApply",null),(0,r.Cg)([i.autobind],g.prototype,"openImageEditor",null),(0,r.Cg)([i.autobind],g.prototype,"openImagePopup",null),o.fg.add("imageProperties",g)},22254(t,e,s){"use strict";s.d(e,{Z(){return i}});var r=s(931);function i(t){const{showPreview:e,editSize:s}=t.o.image,i=r.I.get.bind(r.I);return t.c.fromHTML(`<form class="jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="jodit-properties_view_box">\n\t\t\t\t\t<div style="${e?"":"display:none"}" class="jodit-properties_image_view">\n\t\t\t\t\t\t<img data-ref="imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style="${s?"":"display:none"}" class="jodit-form__group jodit-properties_image_sizes">\n\t\t\t\t\t\t<input data-ref="imageWidth" type="text" class="jodit-input"/>\n\t\t\t\t\t\t<a data-ref="lockSize" class="jodit-properties__lock">${i("lock")}</a>\n\t\t\t\t\t\t<input data-ref="imageHeight" type="text" class="imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div data-ref="tabsBox" class="jodit_col-lg-3-5 jodit_col-xs-5-5"></div>\n\t\t</div>\n\t</form>`)}},75263(t,e,s){"use strict";s.d(e,{J(){return i}});var r=s(931);function i(t){const e=t.o,s=t.i18n.bind(t),i=r.I.get.bind(r.I),o=e.filebrowser.ajax.url||e.uploader.url,n=e.image.useImageEditor;return t.c.fromHTML(`<div style="${e.image.editSrc?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Src")}</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input data-ref="imageSrc" class="jodit-input" type="text"/>\n\t\t\t\t<div\n\t\t\t\t\tclass="jodit-input_group-buttons"\n\t\t\t\t\tstyle="${o?"":"display: none"}"\n\t\t\t\t>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="changeImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t>${i("image")}</a>\n\t\t\t\t\t\t<a\n\t\t\t\t\t\t\tdata-ref="editImage"\n\t\t\t\t\t\t\tclass="jodit-button"\n\t\t\t\t\t\t\tstyle="${n?"":"display: none"}"\n\t\t\t\t\t\t>${i("crop")}</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div style="${e.image.editTitle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Title")}</label>\n\t\t\t<input data-ref="imageTitle" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editAlt?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Alternative")}</label>\n\t\t\t<input data-ref="imageAlt" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Link")}</label>\n\t\t\t<input data-ref="imageLink" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editLink?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input data-ref="imageLinkOpenInNewTab" type="checkbox" class="jodit-checkbox"/>\n\t\t\t\t<span>${s("Open link in new tab")}</span>\n\t\t\t</label>\n\t\t</div>`)}},57837(t,e,s){"use strict";s.d(e,{b(){return i}});var r=s(931);function i(t){const e=t.o,s=t.i18n.bind(t),i=r.I.get.bind(r.I),o=[];return e.image.availableClasses.length>0?(o.push('<select data-ref="classes" class="jodit-input jodit-select">'),e.image.availableClasses.forEach((t=>{o.push("string"==typeof t?`<option value="${t}">${t}</option>`:`<option value="${t[0]}">${t[1]}</option>`)})),o.push("</select>")):o.push('<input data-ref="classes" type="text" class="jodit-input"/>'),t.c.fromHTML(`<div style="${e.image.editMargins?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Margins")}</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input" data-ref="marginTop" type="text" placeholder="${s("top")}"/>\n\t\t\t\t<a style="text-align: center;" data-ref="lockMargin" class="jodit-properties__lock jodit_col-lg-1-5">${i("lock")}</a>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginRight" type="text" placeholder="${s("right")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginBottom" type="text" placeholder="${s("bottom")}"/>\n\t\t\t\t<input disabled="true" class="jodit_col-lg-1-5 jodit-input" data-ref="marginLeft" type="text" placeholder="${s("left")}"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${e.image.editAlign?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${s("Align")}</label>\n\t\t\t<select data-ref="align" class="jodit-select">\n\t\t\t\t<option value="">${s("--Not Set--")}</option>\n\t\t\t\t<option value="left">${s("Left")}</option>\n\t\t\t\t<option value="center">${s("Center")}</option>\n\t\t\t\t<option value="right">${s("Right")}</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div style="${e.image.editStyle?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Styles")}</label>\n\t\t\t<input data-ref="style" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div style="${e.image.editClass?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>${s("Classes")}</label>\n\t\t\t${o.join("")}\n\t\t</div>\n\t\t<div style="${e.image.editId?"":"display:none"}" class="jodit-form__group">\n\t\t\t<label>Id</label>\n\t\t\t<input data-ref="id" type="text" class="jodit-input"/>\n\t\t</div>\n\t\t<div\n\t\t\tstyle="${e.image.editBorderRadius?"":"display:none"}"\n\t\t\tclass="jodit-form__group"\n\t\t>\n\t\t\t<label>${s("Border radius")}</label>\n\t\t\t\t<input data-ref="borderRadius" type="number" class="jodit-input"/>\n\t\t</div>`)}},49777(t,e,s){"use strict";var r=s(71842),i=s(56298),o=s(65147),n=s(931),a=s(16116),l=s(64831),c=s.n(l),u=s(36115);n.I.set("image",c()),u.T.prototype.controls.image={popup(t,e,s){let i=null;return e&&!r.J.isText(e)&&r.J.isHTMLElement(e)&&(r.J.isTag(e,"img")||(0,o.$$)("img",e).length)&&(i=r.J.isTag(e,"img")?e:(0,o.$$)("img",e)[0]),t.s.save(),(0,a.kG)(t,{filebrowser(e){t.s.restore(),e.files&&e.files.forEach((s=>t.s.insertImage(e.baseurl+s,null,t.o.imageDefaultWidth))),s()},upload:!0,async url(e,r){t.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(e)&&(e="//"+e);const o=i||t.createInside.element("img");o.setAttribute("src",e),o.setAttribute("alt",r),i||await t.s.insertImage(o,null,t.o.imageDefaultWidth),s()}},i,s)},tags:["img"],tooltip:"Insert Image"},i.fg.add("image",(t=>{t.registerButton({name:"image",group:"media"})}))},97767(t,e,s){"use strict";var r=s(71842),i=s(931),o=s(67176),n=s.n(o),a=s(14017),l=s.n(a),c=s(3392),u=s(36115);i.I.set("indent",n()).set("outdent",l()),u.T.prototype.controls.indent={tooltip:"Increase Indent"},u.T.prototype.controls.outdent={isDisabled(t){const e=t.s.current();if(e){const s=r.J.closest(e,r.J.isBlock,t.editor);if(s){const e=(0,c.i)(t.o.direction,s);return!s.style[e]||0>=parseInt(s.style[e],10)}}return!0},tooltip:"Decrease Indent"},u.T.prototype.indentMargin=10},3392(t,e,s){"use strict";s.d(e,{i(){return i}});var r=s(55186);const i=(t,e)=>`${r.J.isCell(e)?"padding":"margin"}${"rtl"===t?"Right":"Left"}`},46079(t,e,s){"use strict";var r=s(17352),i=s(71842),o=s(56298),n=s(65147),a=(s(97767),s(3392));o.fg.add("indent",(t=>{t.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});const e=e=>{const s=[];return t.s.eachSelection((o=>{t.s.save();let l=!!o&&i.J.up(o,i.J.isBlock,t.editor);const{enter:c}=t.o;if(!l&&o&&(l=i.J.wrapInline(o,c!==r.BR?c:r.PARAGRAPH,t)),!l)return t.s.restore(),!1;const u=s.includes(l);if(l&&!u){const r=(0,a.i)(t.o.direction,l);s.push(l);let i=l.style[r]?parseInt(l.style[r],10):0;i+=t.o.indentMargin*("outdent"===e?-1:1),l.style[r]=i>0?i+"px":"",(0,n.attr)(l,"style")||(0,n.attr)(l,"style",null)}t.s.restore()})),t.synchronizeValues(),!1};t.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),t.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})}))},88222(t,e,s){"use strict";s(14221),s(55989),s(13917),s(5929),s(49289),s(98341),s(38101),s(24593),s(36293),s(38373),s(64565),s(27509),s(13405),s(67335),s(92553),s(73077),s(88429),s(9443),s(30405),s(89651),s(26495),s(49777),s(92097),s(19085),s(46079),s(3459),s(99573),s(92225),s(9117),s(83105),s(47791),s(26421),s(76967),s(1239),s(13861),s(36969),s(56701),s(225),s(81089),s(44921),s(78757),s(60189),s(39147),s(76693),s(6857),s(17343),s(35523),s(46939),s(69077),s(93669),s(97179),s(65199),s(1677),s(35541),s(64241),s(59965),s(76385),s(2533),s(38309),s(14367),s(61589),s(36133),s(37873)},15776(t,e,s){"use strict";var r=s(931),i=s(97836),o=s(82558),n=s(6295),a=s(26396),l=s(58540),c=s(36115),u=s(38681),h=s.n(u),d=s(64637),p=s.n(d),f=s(94190),m=s.n(f),g=s(51957),v=s.n(g),b=s(71940),y=s.n(b),_=s(43218),w=s.n(_),C=s(48007),S=s.n(C);c.T.prototype.toolbarInline=!0,c.T.prototype.toolbarInlineForSelection=!1,c.T.prototype.toolbarInlineDisableFor=[],c.T.prototype.toolbarInlineDisabledButtons=["source"],r.I.set("addcolumn",h()).set("addrow",p()).set("merge",m()).set("th",w()).set("splitg",v()).set("splitv",y()).set("th-list",S()),c.T.prototype.popup={a:i.A,img:a.A,cells:o.A,toolbar:l.A,jodit:n.A,iframe:n.A,"jodit-media":n.A,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]}},97836(t,e,s){"use strict";var r=s(26150);e.A=[{name:"eye",tooltip:"Open link",exec(t,e){const s=(0,r.C)(e,"href");e&&s&&t.ow.open(s)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"]},82558(t,e,s){"use strict";var r=s(9823),i=s(38322),o=s(16116);const n=t=>t.args&&(0,r.Kg)(t.args[0])?t.args[0].toLowerCase():"";e.A=[{name:"brush",popup(t,e,s){if(!(0,r.y0)(t))return;const n=t.getInstance("Table",t.o).getAllSelectedCells();if(!n.length)return!1;const a=e=>(0,o.Kn)(t,(r=>{n.forEach((t=>{(0,i.A)(t,e,r)})),t.lock(),t.synchronizeValues(),s(),t.unlock()}),(0,i.A)(n[0],e));return(0,o.Zg)(t,[{name:"Background",content:a("background-color")},{name:"Text",content:a("color")},{name:"Border",content:a("border-color")}])},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate(t,e,s){return s},exec(t,e,{control:s}){const r=n(s);t.getInstance("Table",t.o).getAllSelectedCells().forEach((t=>{(0,i.A)(t,"vertical-align","normal"===r?"":r)}))},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,e,{control:s}){if(!(0,r.y0)(t))return;const i=n(s);t.execCommand(i,!1,e)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec(t,e,{control:s}){if(!(0,r.y0)(t))return;const i=n(s);t.execCommand(i,!1,e)},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec(t,e,{control:s}){if(!(0,r.y0)(t))return;const i=n(s);t.execCommand(i,!1,e),t.e.fire("hidePopup")},tooltip:"Delete"}]},6295(t,e,s){"use strict";var r=s(26396);e.A=[{name:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},r.M]},26396(t,e,s){"use strict";s.d(e,{M(){return a}});var r=s(71842),i=s(98253),o=s(40080),n=s(38322);const a={name:"left",childTemplate(t,e,s){return s},list:["Left","Right","Center","Normal"],exec(t,e,{control:s}){if(!r.J.isTag(e,new Set(["img","jodit","jodit-media"])))return;const n=s.args&&(0,i.K)(s.args[0])?s.args[0].toLowerCase():"";if(!n)return!1;(0,o.Mr)(e,n),r.J.isTag(e,new Set(["jodit","jodit-media"]))&&e.firstElementChild&&(0,o.Mr)(e.firstElementChild,n),t.synchronizeValues(),t.e.fire("recalcPositionPopup")},tooltip:"Horizontal align"};e.A=[{name:"delete",icon:"bin",tooltip:"Delete",exec(t,e){e&&t.s.removeNode(e)}},{name:"pencil",exec(t,e){"img"===e.tagName.toLowerCase()&&t.e.fire("openImageProperties",e)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec(t,e,{control:s}){if(!r.J.isTag(e,"img"))return;const o=s.args&&(0,i.K)(s.args[0])?s.args[0].toLowerCase():"";if(!o)return!1;(0,n.A)(e,"vertical-align","normal"===o?"":o),t.e.fire("recalcPositionPopup")}},a]},58540(t,e){"use strict";e.A=["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"]},3459(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(71842),n=s(56298),a=s(65147),l=s(71005),c=s(53048),u=s(96369),h=s(8809);s(15776);class d extends l.k{constructor(){super(...arguments),this.type=null,this.snapRange=null,this.elmsList=(0,a.keys)(this.j.o.popup,!1).filter((t=>!this.isExcludedTarget(t)))}get popup(){return new u.z(this.jodit,!1)}get toolbar(){return(0,h.$K)(this.jodit,this.popup)}onClick(t){const e=this.elmsList,s=o.J.isTag(t,"img")?t:o.J.closest(t,e,this.j.editor);if(s&&this.canShowPopupForType(s.nodeName.toLowerCase()))return this.showPopup((()=>(0,a.position)(s,this.j)),s.nodeName.toLowerCase(),s),!1}showPopup(t,e,s){if(e=e.toLowerCase(),!this.canShowPopupForType(e))return!1;if(this.type!==e||s!==this.previousTarget){this.previousTarget=s;const t=this.j.o.popup[e];let r;r=(0,a.isFunction)(t)?t(this.j,s,this.popup.close):t,(0,a.isArray)(r)&&(this.toolbar.build(r,s),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,r=this.toolbar.container),this.popup.setContent(r),this.type=e}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){const e=this.j.o.popup[t.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!e||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",(e=>{if(this.toolbar===e){const e=this.toolbar.getButtonsNames();return(0,a.toArray)(t.registeredButtons).filter((t=>!this.j.o.toolbarInlineDisabledButtons.includes(t.name))).filter((t=>{const s=(0,a.isString)(t)?t:t.name;return s&&"|"!==s&&"\n"!==s&&!e.includes(s)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",((t,e,s)=>{this.showPopup(e,s||((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),this.addListenersForElements()}onSelectionStart(){this.snapRange=this.j.s.range.cloneRange()}onSelectionEnd(t){if(t&&t.target&&c.D$.closestElement(t.target,u.z))return;const{snapRange:e}=this,{range:s}=this.j.s;e&&!s.collapsed&&s.startContainer===e.startContainer&&s.startOffset===e.startOffset&&s.endContainer===e.endContainer&&s.endOffset===e.endOffset||this.onSelectionChange()}onSelectionChange(){if(!this.j.o.toolbarInlineForSelection)return;const t="selection",e=this.j.s.sel,s=this.j.s.range;e?.isCollapsed||this.isSelectedTarget(s)||this.tableModule.getAllSelectedCells().length?this.type===t&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((()=>s.getBoundingClientRect()),t)}isSelectedTarget(t){const e=t.startContainer;return o.J.isElement(e)&&e===t.endContainer&&o.J.isTag(e.childNodes[t.startOffset],new Set((0,a.keys)(this.j.o.popup,!1)))&&t.startOffset===t.endOffset-1}get tableModule(){return this.j.getInstance("Table",this.j.o)}beforeDestruct(t){t.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}_eventsList(){const 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;const{range:e}=this.j.s;return e.getBoundingClientRect()}),"toolbar")}}d.requires=["select"],(0,r.Cg)([i.cache],d.prototype,"popup",null),(0,r.Cg)([i.cache],d.prototype,"toolbar",null),(0,r.Cg)([i.autobind],d.prototype,"onClick",null),(0,r.Cg)([(0,i.wait)((t=>!t.j.isLocked))],d.prototype,"showPopup",null),(0,r.Cg)([(0,i.watch)([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),i.autobind],d.prototype,"hidePopup",null),(0,r.Cg)([(0,i.watch)(":outsideClick")],d.prototype,"onOutsideClick",null),(0,r.Cg)([i.autobind],d.prototype,"onSelectionStart",null),(0,r.Cg)([i.autobind],d.prototype,"onSelectionEnd",null),(0,r.Cg)([(0,i.debounce)((t=>t.defaultTimeout))],d.prototype,"onSelectionChange",null),(0,r.Cg)([i.autobind],d.prototype,"showInlineToolbar",null),n.fg.add("inlinePopup",d)},99573(t,e,s){"use strict";var r=s(55186),i=s(56298),o=s(40080),n=s(38322),a=s(931),l=s(80515),c=s.n(l),u=s(36115);a.I.set("justify",c()),u.T.prototype.controls.align={name:"left",tooltip:"Align",update(t,e){const s=e.control,i=t.s.current();if(i){const o=r.J.closest(i,r.J.isBlock,t.editor)||t.editor;let a=""+(0,n.A)(o,"text-align");s.defaultValue&&-1!==s.defaultValue.indexOf(a)&&(a="left"),s.data&&s.data.currentValue!==a&&s.list&&s.list[a]&&(t.o.textIcons||"select"===s.component?e.state.text=a:e.state.icon.name=a,s.data.currentValue=a)}},isActive(t,e){const s=t.s.current();if(!s||!e.control.defaultValue)return!1;const i=r.J.closest(s,r.J.isBlock,t.editor)||t.editor;return-1===e.control.defaultValue.indexOf(""+(0,n.A)(i,"text-align"))},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},u.T.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},u.T.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},u.T.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},u.T.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},i.fg.add("justify",(t=>{t.registerButton({name:"align",group:"indent"});const e=e=>(t.s.focus(),t.s.eachSelection((s=>{if(!s)return;let i=r.J.up(s,r.J.isBlock,t.editor);i||(i=r.J.wrapInline(s,t.o.enterBlock,t)),(0,o.Op)(e,i)})),!1);t.registerCommand("justifyfull",e),t.registerCommand("justifyright",e),t.registerCommand("justifyleft",e),t.registerCommand("justifycenter",e)}))},92225(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(71005);class c extends l.k{afterInit(t){}beforeDestruct(t){}onKeyDownArrow(t){if(t.key!==i.KEY_RIGHT||!this.j.selection.isCollapsed())return;const{endContainer:e,endOffset:s}=this.j.selection.range;if(n.J.isText(e)&&e.nodeValue?.length===s){const{parentNode:t}=e;n.J.isInlineBlock(t)&&!n.J.findNotEmptyNeighbor(t,!1,this.j.editor)&&n.J.after(t,this.j.createInside.text(i.NBSP_SPACE))}}}(0,r.Cg)([(0,o.watch)(":keydown")],c.prototype,"onKeyDownArrow",null),a.fg.add("keyArrowOutside",c)},87238(t,e,s){"use strict";var r=s(36115);r.T.prototype.limitWords=!1,r.T.prototype.limitChars=!1,r.T.prototype.limitHTML=!1},9117(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(56298),a=s(71005);s(87238);class l extends a.k{afterInit(t){const{limitWords:e,limitChars:s}=t.o;if(t&&(e||s)){let e=null;t.e.off(".limit").on("beforePaste.limit",(()=>{e=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)&&e)return t.history.snapshot.restore(e),t.e.fire("denyPaste.limit"),!1}))}}shouldPreventInsertHTML(t){return(!t||!(i.COMMAND_KEYS.includes(t.key)||t.ctrlKey||t.metaKey))&&this.__shouldDenyInput(!1)}__shouldDenyInput(t){const{jodit:e}=this,{limitWords:s,limitChars:r}=e.o,i=this.__splitWords(e.o.limitHTML?e.value:e.text);if(s&&c(i.length,s,t))return e.e.fire("denyWords.limit limit.limit"),!0;const o=!(!r||!c(i.join("").length,r,t));return o&&e.e.fire("denyChars.limit limit.limit"),o}checkPreventKeyPressOrPaste(t){if(this.shouldPreventInsertHTML(t))return!1}checkPreventChanging(t,e){const{jodit:s}=this;this.__shouldDenyInput(!0)&&(s.value=e)}__splitWords(t){return t.replace((0,i.INVISIBLE_SPACE_REG_EXP)(),"").split((0,i.SPACE_REG_EXP)()).filter((t=>t.length))}beforeDestruct(t){t.e.off(".limit")}}function c(t,e,s){return s?t>e:t>=e}(0,r.Cg)([o.autobind],l.prototype,"checkPreventKeyPressOrPaste",null),(0,r.Cg)([o.autobind],l.prototype,"checkPreventChanging",null),n.fg.add("limit",l)},26725(t,e,s){"use strict";var r=s(65147),i=s(931),o=s(223),n=s.n(o),a=s(36115);a.T.prototype.defaultLineHeight=null,i.I.set("line-height",n()),a.T.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,e,{control:s}){return(0,r.memorizeExec)(t,e,{control:s},(t=>t))}}},39053(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return r},cs_cz(){return r},de(){return r},es(){return r},fa(){return r},fi(){return r},fr(){return r},he(){return r},hu(){return r},id(){return r},it(){return r},ja(){return r},ko(){return r},mn(){return r},nl(){return r},pl(){return r},pt_br(){return r},ru(){return r},tr(){return r},zh_cn(){return r},zh_tw(){return r}});var r=s(41324)},83105(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(55186),n=s(56298),a=s(65147),l=s(71005),c=(s(26725),s(39053));class u extends l.k{constructor(t){super(t),this.buttons=[{name:"lineHeight",group:"font"}],(0,n.JW)(c)}afterInit(t){(0,a.css)(t.editor,{lineHeight:t.o.defaultLineHeight}),t.registerCommand("applyLineHeight",this.applyLineHeight)}applyLineHeight(t,e,s){const{s:r,createInside:i,editor:n,o:l}=this.j;let c;r.isFocused()||r.focus(),r.save();const u=t=>{let e=o.J.closest(t,o.J.isBlock,n);e||(e=o.J.wrap(t,l.enter,i));const r=(0,a.css)(e,"lineHeight");void 0===c&&(c=""+r!=""+s),(0,a.css)(e,"lineHeight",c?s:null)};try{if(r.isCollapsed()){const t=i.fake();r.insertNode(t,!1,!1),u(t),o.J.safeRemove(t)}else r.eachSelection(u)}finally{r.restore()}}beforeDestruct(t){(0,a.css)(t.editor,{lineHeight:null})}}(0,r.Cg)([i.autobind],u.prototype,"applyLineHeight",null),n.fg.add("lineHeight",u)},64953(t,e,s){"use strict";var r=s(55186),i=s(931),o=s(95032),n=s.n(o),a=s(73533),l=s.n(a),c=s(21329),u=s(36115);u.T.prototype.link={formTemplate:c.B,followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},i.I.set("link",n()).set("unlink",l()),u.T.prototype.controls.unlink={exec(t,e){const s=r.J.closest(e,"a",t.editor);s&&r.J.unwrap(s),t.synchronizeValues(),t.e.fire("hidePopup")},tooltip:"Unlink"},u.T.prototype.controls.link={isActive(t){const e=t.s.current();return!(!e||!r.J.closest(e,"a",t.editor))},popup(t,e,s){return t.e.fire("generateLinkForm.link",e,s)},tags:["a"],tooltip:"Insert link"}},47791(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(71842),n=s(56298),a=s(65147),l=s(71005);s(64953);class c extends l.k{constructor(){super(...arguments),this.buttons=[{name:"link",group:"insert"}]}afterInit(t){t.o.link.followOnDblClick&&t.e.on("dblclick.link",this.onDblClickOnLink),t.o.link.processPastedLink&&t.e.on("processPaste.link",this.onProcessPasteLink),t.e.on("generateLinkForm.link",this.__generateForm),t.registerCommand("openLinkDialog",{exec:()=>{const e=t.dlg({resizable:!1}),s=this.__generateForm(t.s.current(),(()=>{e.close()}));s.container.classList.add("jodit-dialog_alert"),e.setContent(s),e.open(),t.async.requestIdleCallback((()=>{const{url_input:t}=(0,a.refs)(s.container);t?.focus()}))},hotkeys:t.o.link.hotkeys})}onDblClickOnLink(t){if(!o.J.isTag(t.target,"a"))return;const e=(0,a.attr)(t.target,"href");e&&(location.href=e,t.preventDefault())}onProcessPasteLink(t,e){const{jodit:s}=this;if((0,a.isURL)(e)&&s.o.link.processPastedLink){if(s.e.stopPropagation("processPaste"),s.o.link.processVideoLink){const t=(0,a.convertMediaUrlToVideoEmbed)(e);if(t!==e)return s.createInside.fromHTML(t)}if(s.s.isCollapsed()){const t=s.createInside.element("a");return t.setAttribute("href",e),t.textContent=e,s.e.fire("applyLink",s,t,null),t}return s.s.commitStyle({element:"a",attributes:{href:e}}),!0}}__generateForm(t,e){const{jodit:s}=this,r=s.i18n.bind(s),{openInNewTabCheckbox:i,noFollowCheckbox:n,formTemplate:l,formClassName:c,modeClassName:u}=s.o.link,h=l(s),d=(0,a.isString)(h)?s.c.fromHTML(h,{target_checkbox_box:i,nofollow_checkbox_box:n}):h,p=o.J.isElement(d)?d:d.container,f=(0,a.refs)(p),{insert:m,unlink:g,content_input_box:v}=f,{target_checkbox:b,nofollow_checkbox:y,url_input:_}=f,w=o.J.isImage(t);let{content_input:C}=f;const{className_input:S}=f,{className_select:E}=f;let T;C||(C=s.c.element("input",{type:"hidden",ref:"content_input"})),c&&p.classList.add(c),w&&o.J.hide(v);const x=()=>T?T.innerText:(0,a.stripTags)(s.s.range.cloneContents(),s.ed);if(T=!(!t||!o.J.closest(t,"a",s.editor))&&o.J.closest(t,"a",s.editor),!w&&t&&(C.value=x()),T){if(_.value=(0,a.attr)(T,"href")||"",u)switch(u){case"input":S&&(S.value=(0,a.attr)(T,"class")||"");break;case"select":if(E){for(let t=0;E.selectedOptions.length>t;t++){const e=E.options.item(t);e&&(e.selected=!1)}((0,a.attr)(T,"class")||"").split(" ").forEach((t=>{if(t)for(let e=0;E.options.length>e;e++){const s=E.options.item(e);s?.value&&s.value===t&&(s.selected=!0)}}))}}i&&b&&(b.checked="_blank"===(0,a.attr)(T,"target")),n&&y&&(y.checked="nofollow"===(0,a.attr)(T,"rel")),m.textContent=r("Update")}else o.J.hide(g);s.editor.normalize();const I=s.history.snapshot.make();g&&s.e.on(g,"click",(t=>{s.s.restore(),s.history.snapshot.restore(I),T&&o.J.unwrap(T),s.synchronizeValues(),e(),t.preventDefault()}));const j=()=>{if(!_.value.trim().length)return _.focus(),_.classList.add("jodit_error"),!1;let t;s.s.restore(),s.s.removeMarkers(),s.editor.normalize(),s.history.snapshot.restore(I);const r=x()!==C.value.trim(),l=s.createInside;if(T)t=[T];else{if(s.s.isCollapsed()){const e=l.element("a");s.s.insertNode(e,!1,!1),t=[e]}else{const e=s.s.current();t=o.J.isTag(e,"img")?[o.J.wrap(e,"a",l)]:s.s.wrapInTag("a")}t.forEach((t=>s.s.select(t)))}return t.forEach((t=>{if((0,a.attr)(t,"href",_.value),u&&(S??E))if("input"===u)""===S.value&&t.hasAttribute("class")&&(0,a.attr)(t,"class",null),""!==S.value&&(0,a.attr)(t,"class",S.value);else if("select"===u){t.hasAttribute("class")&&(0,a.attr)(t,"class",null);for(let e=0;E.selectedOptions.length>e;e++){const s=E.selectedOptions.item(e)?.value;s&&t.classList.add(s)}}if(!w){let e=t.textContent;C.value.trim().length?r&&(e=C.value):e=_.value,e!==t.textContent&&(t.textContent=e)}i&&b&&(0,a.attr)(t,"target",b.checked?"_blank":null),n&&y&&(0,a.attr)(t,"rel",y.checked?"nofollow":null),s.e.fire("applyLink",s,t,d)})),s.synchronizeValues(),e(),!1};return o.J.isElement(d)?s.e.on(d,"submit",(t=>(t.preventDefault(),t.stopImmediatePropagation(),j(),!1))):d.onSubmit(j),d}beforeDestruct(t){t.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.onDblClickOnLink).off("processPaste.link",this.onProcessPasteLink)}}(0,r.Cg)([i.autobind],c.prototype,"onDblClickOnLink",null),(0,r.Cg)([i.autobind],c.prototype,"onProcessPasteLink",null),(0,r.Cg)([i.autobind],c.prototype,"__generateForm",null),n.fg.add("link",c)},21329(t,e,s){"use strict";s.d(e,{B(){return o}});var r=s(35265),i=s(20703);const o=t=>{const{openInNewTabCheckbox:e,noFollowCheckbox:s,modeClassName:o,selectSizeClassName:n,selectMultipleClassName:a,selectOptionsClassName:l}=t.o.link;return new i.XV(t,[new i.Yh(t,[new i.tS(t,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new i.Yh(t,[new i.tS(t,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),o?new i.Yh(t,["input"===o?new i.tS(t,{name:"className",ref:"className_input",label:"Class name"}):"select"===o?new i.$6(t,{name:"className",ref:"className_select",label:"Class name",size:n,multiple:a,options:l}):null]):null,e?new i.cY(t,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,s?new i.cY(t,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new i.Yh(t,[new r.lD(t,{name:"unlink",variant:"default",text:"Unlink"}),new r.lD(t,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])}},24103(t,e,s){"use strict";var r=s(36115);r.T.prototype.mediaFakeTag="jodit-media",r.T.prototype.mediaInFakeBlock=!0,r.T.prototype.mediaBlocks=["video","audio"]},26421(t,e,s){"use strict";var r=s(17352),i=s(56298),o=s(97369);s(24103),i.fg.add("media",(t=>{const e="jodit_fake_wrapper",{mediaFakeTag:s,mediaBlocks:i,mediaInFakeBlock:n}=t.options;n&&t.e.on("afterGetValueFromEditor",(t=>{const r=RegExp(`<${s}[^>]+data-${e}[^>]+>([^]+?)</${s}>`,"ig");r.test(t.value)&&(t.value=t.value.replace(r,"$1"))})).on("change afterInit afterSetMode changePlace",t.async.debounce((()=>{t.isDestructed||t.getMode()===r.MODE_SOURCE||(0,o.$$)(i.join(","),t.editor).forEach((r=>{(0,o.dataBind)(r,e)||((0,o.dataBind)(r,e,!0),(r=>{if(r.parentNode&&(0,o.attr)(r.parentNode,"data-jodit_iframe_wrapper"))r=r.parentNode;else{const i=t.createInside.element(s,{"data-jodit-temp":1,contenteditable:!1,draggable:!0,["data-"+e]:1});(0,o.attr)(i,"style",(0,o.attr)(r,"style")),i.style.display="inline-block"===r.style.display?"inline-block":"block",i.style.width=r.offsetWidth+"px",i.style.height=r.offsetHeight+"px",r.parentNode&&r.parentNode.insertBefore(i,r),i.appendChild(r),r=i}t.e.off(r,"mousedown.select touchstart.select").on(r,"mousedown.select touchstart.select",(()=>{t.s.setCursorAfter(r)}))})(r))}))}),t.defaultTimeout))}))},88011(t,e,s){"use strict";var r=s(17352),i=s(65147),o=s(97394),n=s(8809),a=s(36115);a.T.prototype.mobileTapTimeout=300,a.T.prototype.toolbarAdaptive=!0,a.T.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"],a.T.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"],a.T.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],a.T.prototype.controls.dots={mode:r.MODE_SOURCE+r.MODE_WYSIWYG,popup(t,e,s,r){let a=r.control.data;return void 0===a&&(a={toolbar:(0,n.$K)(t),rebuild(){if(r){const e=t.e.fire("getDiffButtons.mobile",r.closest(o.Q));e&&a&&(a.toolbar.build((0,i.splitArray)(e)),a.toolbar.container.style.width=3*((t.toolbar?.firstButton?.container.offsetWidth||36)+4)+"px")}}},r.control.data=a),a.rebuild(),a.toolbar},tooltip:"Show all"}},76967(t,e,s){"use strict";var r=s(56298),i=s(65147),o=s(39611);s(88011),r.fg.add("mobile",(t=>{let e=0,s=(0,i.splitArray)(t.o.buttons);t.o.mobileTapTimeout&&t.e.on("touchend",(s=>{if(s.changedTouches&&s.changedTouches.length){const r=(new Date).getTime(),i=r-e;i>t.o.mobileTapTimeout&&(e=r,1.5*t.o.mobileTapTimeout>i&&t.s.insertCursorAtPoint(s.clientX,s.clientY))}})),t.e.on("getDiffButtons.mobile",(e=>{if(e===t.toolbar){const e=(0,o.V)((0,i.splitArray)(t.o.buttons),t),r=(0,o.V)(s,t);return(0,i.toArray)(e).reduce(((t,e)=>(r.has(e)||t.push(e),t)),[])}})),t.o.toolbarAdaptive&&t.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(()=>{if(!t.o.toolbar)return;const e=(t.container.parentElement??t.container).offsetWidth,r=(0,i.splitArray)(t.isFullSize||e>=t.o.sizeLG?t.o.buttons:t.o.sizeMD>e?t.o.sizeSM>e?t.o.buttonsXS:t.o.buttonsSM:t.o.buttonsMD);""+r!=""+s&&(s=r,t.e.fire("closeAllPopups"),t.toolbar?.setRemoveButtons(t.o.removeButtons).build(s.concat(t.o.extraButtons)))})).on(t.ow,"load resize",(()=>t.e.fire("recalcAdaptive")))}))},20797(t,e,s){"use strict";var r=s(72197),i=s(931),o=s(40037),n=s.n(o),a=s(83207),l=s.n(a),c=s(36115);const u=(t,e,{control:s})=>{const i="button"+s.command,o=(s.args&&s.args[0])??(0,r.m)(t,i);(0,r.m)(t,i,o),t.execCommand(s.command,!1,"default"===o?null:o)};i.I.set("ol",n()).set("ul",l()),c.T.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:u},c.T.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}},1239(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(56298),n=s(71005);s(20797);class a extends n.k{constructor(){super(...arguments),this.buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}]}afterInit(t){t.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}onCommand(t,e,s){return this.jodit.s.commitStyle({element:"insertunorderedlist"===t?"ul":"ol",attributes:{style:{listStyleType:s??null}}}),this.jodit.synchronizeValues(),!1}beforeDestruct(t){}}(0,r.Cg)([i.autobind],a.prototype,"onCommand",null),o.fg.add("orderedList",a)},93324(t,e,s){"use strict";var r=s(17352),i=s(36115);i.T.prototype.askBeforePasteFromWord=!0,i.T.prototype.processPasteFromWord=!0,i.T.prototype.defaultActionOnPasteFromWord=null,i.T.prototype.pasteFromWordActionList=[{value:r.INSERT_AS_HTML,text:"Keep"},{value:r.INSERT_AS_TEXT,text:"Clean"},{value:r.INSERT_ONLY_TEXT,text:"Insert only Text"}]},36969(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(56298),a=s(65147),l=s(71005),c=(s(93324),s(90823));class u extends l.k{afterInit(t){}beforeDestruct(t){}processWordHTML(t,e,s){const{j:r}=this,{processPasteFromWord:i,askBeforePasteFromWord:o,defaultActionOnPasteFromWord:n,defaultActionOnPaste:l,pasteFromWordActionList:u}=r.o;return!(!i||!(0,a.isHtmlFromWord)(e)||(o?(0,c.PU)(r,"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",(r=>{this.insertFromWordByType(t,e,r,s)}),u):this.insertFromWordByType(t,e,n||l,s),0))}insertFromWordByType(t,e,s,r){switch(s){case i.INSERT_AS_HTML:{e=(0,a.applyStyles)(e);const t=this.j.events?.fire("beautifyHTML",e);(0,a.isString)(t)&&(e=t);break}case i.INSERT_AS_TEXT:e=(0,a.cleanFromWord)(e);break;case i.INSERT_ONLY_TEXT:e=(0,a.stripTags)((0,a.cleanFromWord)(e))}(0,c.sX)(t,this.j,e)}}u.requires=["paste"],(0,r.Cg)([(0,o.watch)(":processHTML")],u.prototype,"processWordHTML",null),n.fg.add("pasteFromWord",u)},56701(t,e,s){"use strict";var r=s(17352),i=s(55186),o=s(56298),n=s(65147),a=s(29866),l=s(92032);o.fg.add("pasteStorage",class c extends a.k{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){const 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 e=this.currentIndex;-1!==[r.KEY_UP,r.KEY_DOWN,r.KEY_ENTER].indexOf(t.key)&&(t.key===r.KEY_UP&&(0===e?e=this.list.length-1:e-=1),t.key===r.KEY_DOWN&&(e===this.list.length-1?e=0:e+=1),t.key!==r.KEY_ENTER?(e!==this.currentIndex&&this.selectIndex(e),t.stopImmediatePropagation(),t.preventDefault()):this.paste())},this.selectIndex=t=>{this.listBox&&(0,n.toArray)(this.listBox.childNodes).forEach(((e,s)=>{e.classList.remove("jodit_active"),t===s&&this.previewBox&&(e.classList.add("jodit_active"),this.previewBox.innerHTML=this.list[t],e.focus())})),this.currentIndex=t},this.showDialog=()=>{2>this.list.length||(this.dialog||this.createDialog(),this.listBox&&(this.listBox.innerHTML=""),this.previewBox&&(this.previewBox.innerHTML=""),this.list.forEach(((t,e)=>{const s=this.j.c.element("a");s.textContent=e+1+". "+t.replace((0,r.SPACE_REG_EXP)(),""),this.j.e.on(s,"keydown",this.onKeyDown),(0,n.attr)(s,"href","#"),(0,n.attr)(s,"data-index",""+e),(0,n.attr)(s,"tab-index","-1"),this.listBox&&this.listBox.appendChild(s)})),this.dialog&&this.dialog.open(),this.j.async.setTimeout((()=>{this.selectIndex(0)}),100))}}createDialog(){this.dialog=this.j.dlg();const t=(0,l.$n)(this.j,"paste","Paste","primary");t.onAction(this.paste);const e=(0,l.$n)(this.j,"","Cancel");e.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,e]),this.j.e.on(this.listBox,"click dblclick",(t=>{const e=t.target;return i.J.isTag(e,"a")&&e.hasAttribute("data-index")&&this.selectIndex(parseInt((0,n.attr)(e,"-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"),i.J.safeRemove(this.previewBox),i.J.safeRemove(this.listBox),i.J.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}})},70674(t,e,s){"use strict";var r=s(17352),i=s(90823),o=s(36115);o.T.prototype.askBeforePasteHTML=!0,o.T.prototype.processPasteHTML=!0,o.T.prototype.scrollToPastedContent=!0,o.T.prototype.pasteExcludeStripTags=["br","hr"],o.T.prototype.pasteHTMLActionList=[{value:r.INSERT_AS_HTML,text:"Keep"},{value:r.INSERT_AS_TEXT,text:"Insert as Text"},{value:r.INSERT_ONLY_TEXT,text:"Insert only Text"}],o.T.prototype.memorizeChoiceWhenPasteFragment=!1,o.T.prototype.nl2brInPlainText=!0;const n="pasteStorage";o.T.prototype.controls.paste={tooltip:"Paste from clipboard",async exec(t,e,{control:s}){if(s.name===n)return void t.execCommand("showPasteStorage");t.s.focus();let o="",a=!0;if(navigator.clipboard){try{const t=await navigator.clipboard.read();if(t&&t.length){const e=await t[0].getType(r.TEXT_PLAIN);o=await new Response(e).text()}a=!1}catch(t){}if(a)try{o=await navigator.clipboard.readText(),a=!1}catch(t){}}a&&(o=t.buffer.get(r.CLIPBOARD_ID)||"",a=0===o.length);const l=t.value;a?(t.ed.execCommand("paste"),a=l===t.value,!a&&t.e.fire("afterPaste")):o.length?((0,i.sX)(null,t,o),t.e.fire("afterPaste")):a&&t.alert("Your browser doesn't support direct access to the clipboard.",(()=>{t.s.focus()}))},list:{[n]:"Paste Storage"},isChildDisabled:t=>2>t.e.fire("pasteStorageList")}},90823(t,e,s){"use strict";s.d(e,{DI(){return l},PU(){return c},sX(){return a}});var r=s(17352),i=s(55186),o=s(9823),n=s(92032);function a(t,e,s){if(e.isInDestruct)return;(t=>!(!t||"drop"!==t.type))(t)&&e.s.insertCursorAtPoint(t.clientX,t.clientY);const r=e.e.fire("beforePasteInsert",s);!(0,o.Rd)(r)&&((0,o.Kg)(r)||(0,o.Et)(r)||i.J.isNode(r))&&(s=r),(0,o.Kg)(s)&&(s=(t=>{const e=(t=t.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==e&&(t=t.substring(e+20));const s=t.search(/<!--EndFragment-->/i);return-1!==s&&(t=t.substring(0,s)),t})(s)),e.s.insertHTML(s)}function l(t){const e=t.types;let s="";if((0,o.cy)(e)||"[object DOMStringList]"==={}.toString.call(e))for(let t=0;e.length>t;t+=1)s+=e[t]+";";else s=(e||r.TEXT_PLAIN)+";";return s}function c(t,e,s,r,i){if(!1===t.e.fire("beforeOpenPasteDialog",e,s,r,i))return;const o=t.confirm(`<div style="word-break: normal; white-space: normal">${t.i18n(e)}</div>`,t.i18n(s)),a=i.map((({text:e,value:s})=>(0,n.$n)(t,{text:e,name:e.toLowerCase(),tabIndex:0}).onAction((()=>{o.close(),r(s)}))));o.e.one(o,"afterClose",(()=>{t.s.isFocused()||t.s.focus()}));const l=(0,n.$n)(t,{text:"Cancel",tabIndex:0}).onAction((()=>{o.close()}));return o.setFooter([...a,l]),a[0].focus(),a[0].state.variant="primary",t.e.fire("afterOpenPasteDialog",o,e,s,r,i),o}},13861(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(65147),c=s(29866),u=(s(70674),s(90823));class h extends c.k{constructor(){super(...arguments),this.pasteStack=new l.LimitedStack(20),this._isDialogOpened=!1}afterInit(t){t.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(t=>this.pasteStack.push(t))),t.o.nl2brInPlainText&&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;const e=(0,l.getDataTransfer)(t),s=[e?.getData(i.TEXT_PLAIN),e?.getData(i.TEXT_HTML),e?.getData(i.TEXT_RTF)];for(const e of s)if((0,l.isHTML)(e)&&(this.j.e.fire("processHTML",t,e,{plain:s[0],html:s[1],rtf:s[2]})||this.processHTML(t,e)))return!1}defaultPasteProcess(t){const e=(0,l.getDataTransfer)(t);let s=e?.getData(i.TEXT_HTML)||e?.getData(i.TEXT_PLAIN);if(e&&s&&""!==(0,l.trim)(s)){const r=this.j.e.fire("processPaste",t,s,(0,u.DI)(e));void 0!==r&&(s=r),((0,l.isString)(s)||n.J.isNode(s))&&this.__insertByType(t,s,this.j.o.defaultActionOnPaste),t.preventDefault(),t.stopPropagation()}}processHTML(t,e){if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){const s=this.pasteStack.find((t=>t.html===e));if(s)return this.__insertByType(t,e,s.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;const s=(0,u.PU)(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(s=>{this._isDialogOpened=!1,this.__insertByType(t,e,s)}),this.j.o.pasteHTMLActionList);return s&&(this._isDialogOpened=!0,s.e.on("beforeClose",(()=>{this._isDialogOpened=!1}))),!0}__insertByType(t,e,s){if(this.pasteStack.push({html:e,action:s}),(0,l.isString)(e))switch(this.j.buffer.set(i.CLIPBOARD_ID,e),s){case i.INSERT_CLEAR_HTML:e=(0,l.cleanFromWord)(e);break;case i.INSERT_ONLY_TEXT:e=(0,l.stripTags)(e,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case i.INSERT_AS_TEXT:e=(0,l.htmlspecialchars)(e)}(0,u.sX)(t,this.j,e)}onProcessPasteReplaceNl2Br(t,e,s){if(s===i.TEXT_PLAIN+";"&&!(0,l.isHTML)(e))return(0,l.nl2br)(e)}}(0,r.Cg)([o.autobind],h.prototype,"onPaste",null),(0,r.Cg)([o.autobind],h.prototype,"onProcessPasteReplaceNl2Br",null),a.fg.add("paste",h)},50248(t,e,s){"use strict";var r=s(36115);r.T.prototype.showPlaceholder=!0,r.T.prototype.placeholder="Type something",r.T.prototype.useInputsPlaceholder=!0},225(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(71274),c=s(26150),u=s(38322),h=s(29866);s(50248);class d extends h.k{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=()=>{const t=this.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(this.placeholderElm.innerHTML=(0,c.C)(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()}}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(){const t=this.j;if(t.o.readonly)return;let e=0,s=0;const r=t.s.current(),i=r&&n.J.closest(r,n.J.isBlock,t.editor)||t.editor,o=t.ew.getComputedStyle(i),a=t.ew.getComputedStyle(t.editor);t.workplace.appendChild(this.placeholderElm);const{firstChild:c}=t.editor;if(n.J.isElement(c)&&!(0,l.r)(c)){const r=t.ew.getComputedStyle(c);e=parseInt(r.getPropertyValue("margin-top"),10),s=parseInt(r.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(r.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=r.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=o.getPropertyValue("line-height");(0,u.A)(this.placeholderElm,{display:"block",textAlign:o.getPropertyValue("text-align"),paddingTop:parseInt(a.paddingTop,10)+"px",paddingLeft:parseInt(a.paddingLeft,10)+"px",paddingRight:parseInt(a.paddingRight,10)+"px",marginTop:Math.max(parseInt(o.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(o.getPropertyValue("margin-left"),10),s)})}hide(){n.J.safeRemove(this.placeholderElm)}toggle(){const t=this.j;t.editor&&!t.isInDestruct&&(t.getRealMode()===i.MODE_WYSIWYG&&(t=>{if(!t.firstChild)return!0;const e=t.firstChild;if(i.INSEPARABLE_TAGS.has(e.nodeName?.toLowerCase())||/^(TABLE)$/i.test(e.nodeName))return!1;const s=n.J.next(e,(t=>t&&!n.J.isEmptyTextNode(t)),t);return n.J.isText(e)&&!s?n.J.isEmptyTextNode(e):!s&&n.J.each(e,(t=>!(n.J.isLeaf(t)||n.J.isList(t))&&(n.J.isEmpty(t)||n.J.isTag(t,"br"))))})(t.editor)?this.show():this.hide())}beforeDestruct(t){this.hide(),t.e.off(".placeholder").off(window,"load",this.toggle)}}(0,r.Cg)([(0,o.debounce)((t=>t.defaultTimeout/10),!0)],d.prototype,"toggle",null),a.fg.add("placeholder",d)},81089(t,e,s){"use strict";s(56298).fg.add("poweredByJodit",(t=>{const{o:e}=t;e.hidePoweredByJodit||e.inline||!(e.showCharsCounter||e.showWordsCounter||e.showXPathInStatusbar)||t.hookStatus("ready",(()=>{t.statusbar.append(t.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)}))}))},44921(t,e,s){"use strict";var r=s(17352),i=s(56298),o=s(98434);s(36115).T.prototype.controls.preview={icon:"eye",command:"preview",mode:r.MODE_SOURCE+r.MODE_WYSIWYG,tooltip:"Preview"},i.fg.add("preview",(t=>{t.registerButton({name:"preview"}),t.registerCommand("preview",((e,s,r)=>{const i=t.dlg();i.setSize(1024,600).open("",t.i18n("Preview")).setModal(!0);const[,n]=(0,o.u)(t,r,"px",i.getElm("content"));i.e.on(i,"afterClose",n)}))}))},11131(t,e,s){"use strict";s.d(e,{Y(){return i}});var r=s(42448);function i(t){const e=(t,e=t.ownerDocument.styleSheets)=>(0,r.$)(e).map((t=>{try{return(0,r.$)(t.cssRules)}catch{}return[]})).flat().filter((e=>{try{return!(!e||!t.matches(e.selectorText))}catch{}return!1}));class s{constructor(s,r,i){this.css={};const o=i||{},n=e=>{const s=e.selectorText.split(",").map((t=>t.trim())).sort().join(",");0==!!this.css[s]&&(this.css[s]={});const r=e.style.cssText.split(/;(?![A-Za-z0-9])/);for(let e=0;r.length>e;e++){if(!r[e])continue;const i=r[e].split(":");i[0]=i[0].trim(),i[1]=i[1].trim(),this.css[s][i[0]]=i[1].replace(/var\(([^)]+)\)/g,((e,s)=>{const[r,i]=s.split(",");return(t.ew.getComputedStyle(t.editor).getPropertyValue(r.trim())||i||e).trim()}))}};(()=>{const i=s.innerHeight,a=r.createTreeWalker(t.editor,NodeFilter.SHOW_ELEMENT,(()=>NodeFilter.FILTER_ACCEPT));for(;a.nextNode();){const t=a.currentNode;if(i>t.getBoundingClientRect().top||o.scanFullPage){const s=e(t);if(s)for(let t=0;s.length>t;t++)n(s[t])}}})()}generateCSS(){let t="";for(const e in this.css)if(!/:not\(/.test(e)){t+=e+" { ";for(const s in this.css[e])t+=s+": "+this.css[e][s]+"; ";t+="}\n"}return t}}try{return new s(t.ew,t.ed,{scanFullPage:!0}).generateCSS()}catch{}return""}},78757(t,e,s){"use strict";var r=s(17352),i=s(71842),o=s(56298),n=s(17527),a=s(98434),l=s(931),c=s(11131),u=s(59827),h=s.n(u),d=s(36115);l.I.set("print",h()),d.T.prototype.controls.print={exec(t){const e=t.create.element("iframe");Object.assign(e.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),(0,o.My)(t,d.T).appendChild(e);const s=()=>{t.e.off(t.ow,"mousemove",s),i.J.safeRemove(e)},r=e.contentWindow;if(r){t.e.on(r,"onbeforeunload onafterprint",s).on(t.ow,"mousemove",s),t.o.iframe?(t.e.fire("generateDocumentStructure.iframe",r.document,t),r.document.body.innerHTML=t.value):(r.document.write('<!doctype html><html lang="'+(0,n.e)(t.o.language)+'"><head><title></title></head><style>'+(0,c.Y)(t)+"</style><body></body></html>"),r.document.close(),(0,a.u)(t,void 0,"px",r.document.body));const e=r.document.createElement("style");e.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",r.document.head.appendChild(e),r.focus(),r.print()}},mode:r.MODE_SOURCE+r.MODE_WYSIWYG,tooltip:"Print"},o.fg.add("print",(t=>{t.registerButton({name:"print"})}))},60189(t,e,s){"use strict";var r=s(17352),i=s(56298),o=s(29866),n=s(931),a=s(34045),l=s.n(a),c=s(39199),u=s.n(c),h=s(36115);n.I.set("redo",l()).set("undo",u()),h.T.prototype.controls.redo={mode:r.MODE_SPLIT,isDisabled(t){return!t.history.canRedo()},tooltip:"Redo"},h.T.prototype.controls.undo={mode:r.MODE_SPLIT,isDisabled(t){return!t.history.canUndo()},tooltip:"Undo"},i.fg.add("redoUndo",class d extends o.k{constructor(){super(...arguments),this.buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}]}beforeDestruct(){}afterInit(t){const e=e=>(t.history[e](),!1);t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})}})},36001(t,e,s){"use strict";s(36115).T.prototype.tableAllowCellResize=!0},39147(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(65147),c=s(37435);s(36001);const u="table_processor_observer-resize";class h extends c.Plugin{constructor(){super(...arguments),this.selectMode=!1,this.resizeDelta=0,this.createResizeHandle=()=>{this.resizeHandler||(this.resizeHandler=this.j.c.div("jodit-table-resizer"),this.j.e.on(this.resizeHandler,"mousedown.table touchstart.table",this.onHandleMouseDown).on(this.resizeHandler,"mouseenter.table",(()=>{this.j.async.clearTimeout(this.hideTimeout)})))},this.hideTimeout=0,this.drag=!1,this.minX=0,this.maxX=0,this.startX=0}get module(){return this.j.getInstance("Table",this.j.o)}get isRTL(){return"rtl"===this.j.o.direction}showResizeHandle(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}hideResizeHandle(){this.hideTimeout=this.j.async.setTimeout((()=>{n.J.safeRemove(this.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})}onHandleMouseDown(t){if(this.j.isLocked)return;this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=t.clientX,this.j.lock(u),this.resizeHandler.classList.add("jodit-table-resizer_moved");let e,s=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)s=this.workTable.parentNode.getBoundingClientRect(),this.minX=s.left,this.maxX=this.minX+s.width;else{const t=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,((s,r,o)=>{t[1]===o&&(e=s.getBoundingClientRect(),this.minX=Math.max(e.left+i.NEARBY/2,this.minX)),t[1]+(this.isRTL?-1:1)===o&&(e=s.getBoundingClientRect(),this.maxX=Math.min(e.left+e.width-i.NEARBY/2,this.maxX))}))}return!1}onMouseMove(t){if(!this.drag)return;this.j.e.fire("closeAllPopups");let e=t.clientX;const s=(0,l.offset)(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);this.minX>e&&(e=this.minX),e>this.maxX&&(e=this.maxX),this.resizeDelta=e-this.startX+(this.j.o.iframe?s.left:0),this.resizeHandler.style.left=e-(this.j.o.iframe?0:s.left)+"px";const r=this.j.s.sel;r&&r.removeAllRanges()}onMouseUp(t){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==t.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}resizeColumns(){const t=this.resizeDelta,e=[],s=this.module;s.setColumnWidthByDelta(this.workTable,s.formalCoordinate(this.workTable,this.workCell,!0)[1],t,!0,e);const r=(0,l.call)(this.isRTL?n.J.prev:n.J.next,this.workCell,n.J.isCell,this.workCell.parentNode);s.setColumnWidthByDelta(this.workTable,s.formalCoordinate(this.workTable,r)[1],-t,!1,e)}resizeTable(){const t=this.resizeDelta*(this.isRTL?-1:1),e=this.workTable.offsetWidth,s=(0,l.getContentWidth)(this.workTable.parentNode,this.j.ew),r=!this.wholeTable;if(this.isRTL?!r:r)this.workTable.style.width=(e+t)/s*100+"%";else{const r=this.isRTL?"marginRight":"marginLeft",i=parseInt(this.j.ew.getComputedStyle(this.workTable)[r]||"0",10);this.workTable.style.width=(e-t)/s*100+"%",this.workTable.style[r]=(i+t)/s*100+"%"}}setWorkCell(t,e=null){this.wholeTable=e,this.workCell=t,this.workTable=n.J.up(t,(t=>n.J.isTag(t,"table")),this.j.editor)}calcHandlePosition(t,e,s=0,r=0){const o=(0,l.offset)(e,this.j,this.j.ed);if(s>i.NEARBY&&o.width-i.NEARBY>s)return void this.hideResizeHandle();const a=(0,l.offset)(this.j.workplace,this.j,this.j.od,!0),c=(0,l.offset)(t,this.j,this.j.ed);if(this.resizeHandler.style.left=(s>i.NEARBY?o.left+o.width:o.left)-a.left+r+"px",Object.assign(this.resizeHandler.style,{height:c.height+"px",top:c.top-a.top+"px"}),this.showResizeHandle(),s>i.NEARBY){const t=(0,l.call)(this.isRTL?n.J.prev:n.J.next,e,n.J.isCell,e.parentNode);this.setWorkCell(e,!!t&&null)}else{const t=(0,l.call)(this.isRTL?n.J.next:n.J.prev,e,n.J.isCell,e.parentNode);this.setWorkCell(t||e,!t||null)}}afterInit(t){t.o.tableAllowCellResize&&t.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(()=>{(0,l.$$)("table",t.editor).forEach(this.observe)})).on(this.j.ow,"scroll.resize-cells",(()=>{if(!this.drag)return;const e=n.J.up(this.workCell,(t=>n.J.isTag(t,"table")),t.editor);if(e){const t=e.getBoundingClientRect();this.resizeHandler.style.top=t.top+"px"}})).on("beforeSetMode.resize-cells",(()=>{const e=this.module;e.getAllSelectedCells().forEach((s=>{e.removeSelection(s),e.normalizeTable(n.J.closest(s,"table",t.editor))}))}))}observe(t){(0,l.dataBind)(t,u)||((0,l.dataBind)(t,u,!0),this.j.e.on(t,"mouseleave.resize-cells",(t=>{this.resizeHandler&&this.resizeHandler!==t.relatedTarget&&this.hideResizeHandle()})).on(t,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle((e=>{if(this.j.isLocked)return;const s=n.J.up(e.target,n.J.isCell,t);s&&this.calcHandlePosition(t,s,e.offsetX)}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}beforeDestruct(t){t.events&&(t.e.off(this.j.ow,".resize-cells"),t.e.off(".resize-cells"))}}(0,r.Cg)([o.autobind],h.prototype,"onHandleMouseDown",null),(0,r.Cg)([o.autobind],h.prototype,"onMouseMove",null),(0,r.Cg)([o.autobind],h.prototype,"onMouseUp",null),(0,r.Cg)([o.autobind],h.prototype,"observe",null),a.fg.add("resizeCells",h)},57362(t,e,s){"use strict";var r=s(36115);r.T.prototype.allowResizeX=!1,r.T.prototype.allowResizeY=!0},76693(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(71842),n=s(56298),a=s(71005),l=s(53048);s(57362);let c=class t extends a.k{constructor(){super(...arguments),this.isResized=!1,this.start={x:0,y:0,w:0,h:0},this.handle=this.j.c.div("jodit-editor__resize",l.In.get("resize_handler"))}afterInit(t){const{height:e,width:s,allowResizeX:r}=t.o;let{allowResizeY:i}=t.o;"auto"===e&&"auto"!==s&&(i=!1),"auto"===e&&"auto"===s||!r&&!i||(t.statusbar.setMod("resize-handle",!0),t.e.on("toggleFullSize.resizeHandler",(()=>{this.handle.style.display=t.isFullSize?"none":"block"})).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(t.ow,"mouseup touchend",this.onHandleResizeEnd),t.container.appendChild(this.handle))}onHandleResizeStart(t){this.isResized=!0,this.start.x=t.clientX,this.start.y=t.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),t.preventDefault()}onHandleResize(t){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+t.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+t.clientX-this.start.x),this.j.e.fire("resize"))}onHandleResizeEnd(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}beforeDestruct(){o.J.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}};c.requires=["size"],c=(0,r.Cg)([i.autobind],c),n.fg.add("resizeHandler",c)},69505(t,e,s){"use strict";var r=s(36115);r.T.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),r.T.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])}},6857(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(65147),c=s(29866);s(69505);const u="__jodit-resizer_binded";class h extends c.k{constructor(){super(...arguments),this.LOCK_KEY="resizer",this.element=null,this.isResizeMode=!1,this.isShown=!1,this.startX=0,this.startY=0,this.width=0,this.height=0,this.ratio=0,this.rect=this.j.c.fromHTML(`<div title="${this.j.i18n("Press Alt for custom resizing")}" class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>`),this.sizeViewer=this.rect.getElementsByTagName("span")[0],this.pointerX=0,this.pointerY=0,this.isAltMode=!1,this.onClickElement=t=>{this.isResizeMode||this.element===t&&this.isShown||(this.element=t,this.show(),n.J.isTag(this.element,"img")&&!this.element.complete&&this.j.e.one(this.element,"load",this.updateSize))},this.updateSize=()=>{if(!this.isInDestruct&&this.isShown&&this.element&&this.rect){const t=this.getWorkplacePosition(),e=(0,l.offset)(this.element,this.j,this.j.ed),s=parseInt(this.rect.style.left||"0",10),r=e.top-t.top,i=e.left-t.left;parseInt(this.rect.style.top||"0",10)===r&&s===i&&this.rect.offsetWidth===this.element.offsetWidth&&this.rect.offsetHeight===this.element.offsetHeight||((0,l.css)(this.rect,{top:r,left:i,width:this.element.offsetWidth,height:this.element.offsetHeight}),this.j.events&&(this.j.e.fire(this.element,"changesize"),isNaN(s)||this.j.e.fire("resize")))}},this.hideSizeViewer=()=>{this.sizeViewer.style.opacity="0"}}afterInit(t){(0,l.$$)("div",this.rect).forEach((e=>{t.e.on(e,"mousedown.resizer touchstart.resizer",this.onStartResizing.bind(this,e))})),a.RR.on("hideHelpers",this.hide),t.e.on("readonly",(t=>{t&&this.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(t=>{const e=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;e.test(t.value)&&(t.value=t.value.replace(e,"$1"))})),this.addEventListeners(),this.__onChangeEditor()}onEditorClick(t){let e=t.target;const{editor:s,options:{allowResizeTags:r}}=this.j;for(;e&&e!==s;){if(n.J.isTag(e,r))return this.__bind(e),void this.onClickElement(e);e=e.parentNode}}addEventListeners(){const t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",(t=>{this.isShown&&t.key===i.KEY_DELETE&&this.element&&!n.J.isTag(this.element,"table")&&this.onDelete(t)})).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",(()=>{this.isShown&&!this.isResizeMode&&this.hide()})).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}onStartResizing(t,e){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=t,e.cancelable&&e.preventDefault(),e.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=e.clientX,this.startY=e.clientY,this.pointerX=e.clientX,this.pointerY=e.clientY;const{j:s}=this;s.e.fire("hidePopup"),s.lock(this.LOCK_KEY),s.e.on(s.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onEndResizing(){const{j:t}=this;t.unlock(),this.isResizeMode=!1,this.isAltMode=!1,t.synchronizeValues(),t.e.off(t.ow,"mousemove.resizer touchmove.resizer",this.onResize)}onResize(t){if(this.isResizeMode){if(!this.element)return;let e,s;if(this.pointerX=t.clientX,this.pointerY=t.clientY,this.j.options.iframe){const r=this.getWorkplacePosition();e=t.clientX+r.left-this.startX,s=t.clientY+r.top-this.startY}else e=this.pointerX-this.startX,s=this.pointerY-this.startY;const r=this.handle.className;let i=0,o=0;const a=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===a||a&&n.J.isTag(this.element,a))?(e?(i=this.width+(r.match(/left/)?-1:1)*e,o=Math.round(i/this.ratio)):(o=this.height+(r.match(/top/)?-1:1)*s,i=Math.round(o*this.ratio)),i>(0,l.innerWidth)(this.j.editor,this.j.ow)&&(i=(0,l.innerWidth)(this.j.editor,this.j.ow),o=Math.round(i/this.ratio))):(i=this.width+(r.match(/left/)?-1:1)*e,o=this.height+(r.match(/top/)?-1:1)*s),i>this.j.o.resizer.min_width&&this.applySize(this.element,"width",this.rect.parentNode.offsetWidth>i?i:"100%"),o>this.j.o.resizer.min_height&&this.applySize(this.element,"height",o),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),t.stopImmediatePropagation()}}onKeyDown(t){this.isAltMode=t.key===i.KEY_ALT,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}onKeyUp(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}onClickOutside(t){if(this.isShown){if(!this.isResizeMode)return this.hide();t.stopImmediatePropagation(),this.onEndResizing()}}getWorkplacePosition(){return(0,l.offset)(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}applySize(t,e,s){const r=n.J.isImage(t)&&this.j.o.resizer.forImageChangeAttributes;r&&(0,l.attr)(t,e,s),r&&!t.style[e]||(0,l.css)(t,e,s)}onDelete(t){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(n.J.safeRemove(this.element),this.hide(),t.preventDefault()))}__onChangeEditor(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),(0,l.$$)("iframe",this.j.editor).forEach(this.__bind)}__bind(t){if(!n.J.isHTMLElement(t)||!this.j.o.allowResizeTags.has(t.tagName.toLowerCase())||(0,l.dataBind)(t,u))return;let e;if((0,l.dataBind)(t,u,!0),n.J.isTag(t,"iframe")){const s=t;n.J.isHTMLElement(t.parentNode)&&(0,l.attr)(t.parentNode,"-jodit_iframe_wrapper")?t=t.parentNode:(e=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),(0,l.attr)(e,"style",(0,l.attr)(t,"style")),(0,l.css)(e,{display:"inline-block"===t.style.display?"inline-block":"block",width:t.offsetWidth,height:t.offsetHeight}),t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t),this.j.e.on(e,"click",(()=>{(0,l.attr)(e,"data-jodit-wrapper_active",!0)})),t=e),this.j.e.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",(()=>{this.j.s.select(t)})).off(t,"changesize").on(t,"changesize",(()=>{s.setAttribute("width",t.offsetWidth+"px"),s.setAttribute("height",t.offsetHeight+"px")}))}this.j.e.on(t,"dragstart",this.hide),!i.IS_ES_NEXT&&i.IS_IE&&this.j.e.on(t,"mousedown",(e=>{n.J.isTag(t,"img")&&e.preventDefault()}))}showSizeViewer(t,e){this.j.o.resizer.showSize&&(this.sizeViewer.offsetWidth>t||this.sizeViewer.offsetHeight>e?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent=`${t} x ${e}`,this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}show(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||((0,l.markOwner)(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=""+(0,l.css)(this.j.container,"zIndex")),this.updateSize())}hide(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,n.J.safeRemove(this.rect),(0,l.$$)("[data-jodit-wrapper_active='true']",this.j.editor).forEach((t=>(0,l.attr)(t,"data-jodit-wrapper_active",!1))))}beforeDestruct(t){this.hide(),a.RR.off("hideHelpers",this.hide),t.e.off(this.j.ow,".resizer").off(".resizer")}}(0,r.Cg)([(0,o.watch)(":click")],h.prototype,"onEditorClick",null),(0,r.Cg)([o.autobind],h.prototype,"onStartResizing",null),(0,r.Cg)([o.autobind],h.prototype,"onEndResizing",null),(0,r.Cg)([o.autobind],h.prototype,"onResize",null),(0,r.Cg)([o.autobind],h.prototype,"onKeyDown",null),(0,r.Cg)([o.autobind],h.prototype,"onKeyUp",null),(0,r.Cg)([o.autobind],h.prototype,"onClickOutside",null),(0,r.Cg)([(0,o.watch)(":change")],h.prototype,"__onChangeEditor",null),(0,r.Cg)([o.autobind],h.prototype,"__bind",null),(0,r.Cg)([o.autobind,(0,o.watch)(":hideResizer")],h.prototype,"hide",null),a.fg.add("resizer",h)},78593(t,e,s){"use strict";var r=s(931),i=s(21917),o=s.n(i),n=s(36115);n.T.prototype.useSearch=!0,n.T.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:void 0!==window.Highlight},r.I.set("search",o()),n.T.prototype.controls.find={tooltip:"Find",icon:"search",exec(t,e,{control:s}){switch(s.args&&s.args[0]){case"findPrevious":t.e.fire("searchPrevious");break;case"findNext":t.e.fire("searchNext");break;case"replace":t.execCommand("openReplaceDialog");break;default:t.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate(t,e,s){return s}}},89568(t,e,s){"use strict";s.d(e,{IJ(){return l},Tz(){return c},_B(){return n},zy(){return a}});var r=s(55186),i=s(58720);const o="jd-tmp-selection";function n(t,e,s,i,n){if(null==e.startContainer.nodeValue||null==e.endContainer.nodeValue)return;if(t.o.search.useCustomHighlightAPI&&void 0!==window.Highlight){const r=[e,...s].map((e=>{const s=t.selection.createRange();return s.setStart(e.startContainer,e.startOffset),s.setEnd(e.endContainer,e.endOffset),s})),i=new Highlight(...r);return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",i),void(s.length=0)}const a=i.element("span",{[o]:!0});r.J.markTemporary(a);const l=e.startContainer.nodeValue;let c=0;if(0!==e.startOffset){const t=i.text(l.substring(0,e.startOffset));e.startContainer.nodeValue=l.substring(e.startOffset),r.J.before(e.startContainer,t),e.startContainer===e.endContainer&&(c=e.startOffset,e.endOffset-=c),e.startOffset=0}const u=e.endContainer.nodeValue;if(e.endOffset!==u.length){const t=i.text(u.substring(e.endOffset));e.endContainer.nodeValue=u.substring(0,e.endOffset),r.J.after(e.endContainer,t);for(const r of s){if(r.startContainer!==e.endContainer)break;r.startContainer=t,r.startOffset=r.startOffset-e.endOffset-c,r.endContainer===e.endContainer&&(r.endContainer=t,r.endOffset=r.endOffset-e.endOffset-c)}e.endOffset=e.endContainer.nodeValue.length}let h=e.startContainer;do{if(!h)break;if(!r.J.isText(h)||r.J.isElement(d=h.parentNode)&&d.hasAttribute(o)||r.J.wrap(h,a.cloneNode(),i),h===e.endContainer)break;let t=h.firstChild||h.nextSibling;if(!t){for(;h&&!h.nextSibling&&h!==n;)h=h.parentNode;t=h?.nextSibling}h=t}while(h&&h!==n);var d}function a(t){return(0,i.$$)(`[${o}]`,t)}function l(t){a(t).forEach((t=>r.J.unwrap(t)))}function c(t){return t.replace(RegExp(`<span[^>]+${o}[^>]+>(.*?)</span>`,"g"),"$1")}},78817(t,e,s){"use strict";s.d(e,{IJ(){return r.IJ},QN(){return i.Q},Tz(){return r.Tz},_B(){return r._B},zy(){return r.zy}});var r=s(89568),i=s(30621)},30621(t,e,s){"use strict";s.d(e,{Q(){return i}});var r=s(67975);class i{constructor(t=r.H){this.searchIndex=t,this.queue=[],this.value=""}add(t){const e=(t.nodeValue??"").toLowerCase();if(!e.length)return;const s=this.value.length;this.queue.push({startIndex:s,endIndex:s+e.length,node:t}),this.value+=e}ranges(t,e=0){const s=[];let r=e,i=0,o=0;do{if([r,i]=this.searchIndex(t,this.value,r),-1!==r){let t,e,n=0,a=0;for(let s=o;this.queue.length>s;s+=1)if(!t&&this.queue[s].endIndex>r&&(t=this.queue[s].node,n=r-this.queue[s].startIndex),t&&this.queue[s].endIndex>=r+i){e=this.queue[s].node,a=r+i-this.queue[s].startIndex,o=s;break}t&&e&&s.push({startContainer:t,startOffset:n,endContainer:e,endOffset:a}),r+=i}}while(-1!==r);return 0===s.length?null:s}}},17343(t,e,s){"use strict";var r=s(31635),i=(s(17352),s(22664)),o=s(71842),n=s(56298),a=s(65147),l=s(71005),c=(s(78593),s(78817)),u=s(63064);class h extends l.k{constructor(){super(...arguments),this.buttons=[{name:"find",group:"search"}],this.previousQuery="",this.drawPromise=null,this.walker=null,this.walkerCount=null,this.cache={},this.wrapFrameRequest=0}get ui(){return new u.F(this.j)}async updateCounters(){this.ui.isOpened&&(this.ui.count=await this.calcCounts(this.ui.query))}onPressReplaceButton(){this.findAndReplace(this.ui.query),this.updateCounters()}tryScrollToElement(t){let e=o.J.closest(t,o.J.isElement,this.j.editor);e||(e=o.J.prev(t,o.J.isElement,this.j.editor)),e&&e!==this.j.editor&&(0,a.scrollIntoViewIfNeeded)(e,this.j.editor,this.j.ed)}async calcCounts(t){return(await this.findQueryBounds(t,"walkerCount")).length}async findQueryBounds(t,e){let s=this[e];return s&&s.break(),s=new o.p(this.j.async,{timeout:this.j.o.search.lazyIdleTimeout}),this[e]=s,this.find(s,t).catch((t=>[]))}async findAndReplace(t){const e=await this.findQueryBounds(t,"walker");if(!e.length)return!1;let s=this.findCurrentIndexInRanges(e,this.j.s.range);-1===s&&(s=0);const r=e[s];if(r){try{const e=this.j.ed.createRange();e.setStart(r.startContainer,r.startOffset),e.setEnd(r.endContainer,r.endOffset),e.deleteContents();const i=this.j.createInside.text(this.ui.replace);o.J.safeInsertNode(e,i),(0,c.IJ)(this.j.editor),this.j.s.setCursorAfter(i),this.tryScrollToElement(i),this.cache={},this.ui.currentIndex=s,await this.findAndSelect(t,!0).catch((t=>null))}finally{this.j.synchronizeValues()}return this.j.e.fire("afterFindAndReplace"),!0}return!1}async findAndSelect(t,e){const s=await this.findQueryBounds(t,"walker");if(!s.length)return!1;this.previousQuery===t&&(0,c.zy)(this.j.editor).length||(this.drawPromise?.rejectCallback(),this.j.async.cancelAnimationFrame(this.wrapFrameRequest),(0,c.IJ)(this.j.editor),this.drawPromise=this.__drawSelectionRanges(s)),this.previousQuery=t;let r=this.ui.currentIndex-1;r=-1===r?0:e?r===s.length-1?0:r+1:0===r?s.length-1:r-1,this.ui.currentIndex=r+1;const i=s[r];if(i){const t=this.j.ed.createRange();try{t.setStart(i.startContainer,i.startOffset),t.setEnd(i.endContainer,i.endOffset),this.j.s.selectRange(t)}catch(t){}return this.tryScrollToElement(i.startContainer),await this.updateCounters(),await this.drawPromise,this.j.e.fire("afterFindAndSelect"),!0}return!1}findCurrentIndexInRanges(t,e){return t.findIndex((t=>t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.startContainer&&t.endOffset===e.endOffset))}async isValidCache(t){return(await t).every((t=>t.startContainer.isConnected&&(t.startContainer.nodeValue?.length??0)>=t.startOffset&&t.endContainer.isConnected&&(t.endContainer.nodeValue?.length??0)>=t.endOffset))}async find(t,e){if(!e.length)return[];const s=this.cache[e];return s&&await this.isValidCache(s)?s:(this.cache[e]=this.j.async.promise((s=>{const r=new c.QN(this.j.o.search.fuzzySearch);t.on("break",(()=>{s([])})).on("visit",(t=>(o.J.isText(t)&&r.add(t),!1))).on("end",(()=>{s(r.ranges(e)??[])})).setWork(this.j.editor)})),this.cache[e])}__drawSelectionRanges(t){const{async:e,createInside:s,editor:r}=this.j;e.cancelAnimationFrame(this.wrapFrameRequest);const i=[...t];let o,n=0;return e.promise((t=>{const a=()=>{do{o=i.shift(),o&&(0,c._B)(this.j,o,i,s,r),n+=1}while(o&&5>=n);i.length?this.wrapFrameRequest=e.requestAnimationFrame(a):t()};a()}))}onAfterGetValueFromEditor(t){t.value=(0,c.Tz)(t.value)}afterInit(t){if(t.o.useSearch){const e=this;t.e.on("beforeSetMode.search",(()=>{this.ui.close()})).on(this.ui,"afterClose",(()=>{(0,c.IJ)(t.editor),this.ui.currentIndex=0,this.ui.count=0,this.cache={}})).on("click",(()=>{this.ui.currentIndex=0,(0,c.IJ)(t.editor)})).on("change.search",(()=>{this.cache={}})).on("keydown.search mousedown.search",t.async.debounce((()=>{this.ui.selInfo&&(t.s.removeMarkers(),this.ui.selInfo=null),this.ui.isOpened&&this.updateCounters()}),t.defaultTimeout)).on("searchNext.search searchPrevious.search",(()=>(this.ui.isOpened||this.ui.open(),e.findAndSelect(e.ui.query,"searchNext"===t.e.current).catch((t=>{}))))).on("search.search",((t,s=!0)=>(this.ui.currentIndex=0,e.findAndSelect(t||"",s).catch((t=>{}))))),t.registerCommand("search",{exec(t,s,r=!0){return s&&e.findAndSelect(s,r).catch((t=>{})),!1}}).registerCommand("openSearchDialog",{exec(t,s){return e.ui.open(s),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec(s,r,i){return t.o.readonly||e.ui.open(r,i,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}beforeDestruct(t){this.ui.destruct(),t.e.off(".search")}}(0,r.Cg)([i.cache],h.prototype,"ui",null),(0,r.Cg)([(0,i.watch)("ui:needUpdateCounters")],h.prototype,"updateCounters",null),(0,r.Cg)([(0,i.watch)("ui:pressReplaceButton")],h.prototype,"onPressReplaceButton",null),(0,r.Cg)([i.autobind],h.prototype,"findQueryBounds",null),(0,r.Cg)([i.autobind],h.prototype,"findAndReplace",null),(0,r.Cg)([i.autobind],h.prototype,"findAndSelect",null),(0,r.Cg)([i.autobind],h.prototype,"find",null),(0,r.Cg)([(0,i.watch)(":afterGetValueFromEditor")],h.prototype,"onAfterGetValueFromEditor",null),n.fg.add("search",h)},63064(t,e,s){"use strict";s.d(e,{F(){return c}});var r=s(31635),i=s(17352),o=s(22664),n=s(71842),a=s(65147),l=s(53048);let c=class t extends l.D${className(){return"UISearch"}render(){return`<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">${l.In.get("angle-down")}</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">${l.In.get("angle-up")}</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">${l.In.get("cancel")}</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>`}get currentIndex(){return this._currentIndex}set currentIndex(t){this._currentIndex=t,this.currentBox.innerText=""+t}set count(t){this.countBox.innerText=""+t}get query(){return this.queryInput.value}get replace(){return this.replaceInput.value}constructor(t){super(t),this.selInfo=null,this._currentIndex=0,this.isOpened=!1;const{query:e,replace:s,cancel:r,next:o,prev:n,replaceBtn:l,current:c,count:u}=(0,a.refs)(this.container);this.queryInput=e,this.replaceInput=s,this.closeButton=r,this.replaceButton=l,this.currentBox=c,this.countBox=u,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(o,"pointerdown",(()=>(t.e.fire("searchNext"),!1))).on(n,"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",this.j.async.debounce((e=>{e.key===i.KEY_ENTER?(e.preventDefault(),e.stopImmediatePropagation(),t.e.fire("searchNext")&&this.close()):t.e.fire(this,"needUpdateCounters")}),this.j.defaultTimeout))}onEditorKeyDown(t){if(!this.isOpened)return;const{j:e}=this;if(e.getRealMode()===i.MODE_WYSIWYG)switch(t.key){case i.KEY_ESC:this.close();break;case i.KEY_F3:this.queryInput.value&&(e.e.fire(t.shiftKey?"searchPrevious":"searchNext"),t.preventDefault())}}open(t,e,s=!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",s);const r=t??""+(this.j.s.sel||"");r&&(this.queryInput.value=r),e&&(this.replaceInput.value=e),this.setMod("empty-query",!r.length),this.j.e.fire(this,"needUpdateCounters"),r?this.queryInput.select():this.queryInput.focus()}close(){this.isOpened&&(this.j.s.restore(),n.J.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}calcSticky(t){if(this.isOpened)if(this.setMod("sticky",t),t){const 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})}};(0,r.Cg)([(0,o.watch)([":keydown","queryInput:keydown"])],c.prototype,"onEditorKeyDown",null),(0,r.Cg)([o.autobind],c.prototype,"open",null),(0,r.Cg)([o.autobind],c.prototype,"close",null),(0,r.Cg)([(0,o.watch)(":toggleSticky")],c.prototype,"calcSticky",null),c=(0,r.Cg)([o.component],c)},29581(t,e,s){"use strict";s(36115).T.prototype.tableAllowCellSelection=!0},46939(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(65147),c=s(71005),u=s(11648);s(29581);const h="table_processor_observer",d="onMoveTableSelectCell";class p extends c.k{constructor(){super(...arguments),this.__selectedCell=null,this.__isSelectionMode=!1}get __tableModule(){return this.j.getInstance(u.X,this.j.o)}afterInit(t){t.o.tableAllowCellSelection&&t.e.on("keydown.select-cells",(t=>{t.key===i.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",(()=>{const t=this.__tableModule.getAllSelectedCells().length;if(t)return t>1&&this.j.s.sel?.removeAllRanges(),!1}))}onStartSelection(t){if(this.j.o.readonly)return;if(this.unselectCells(),t===this.j.editor)return;const e=n.J.closest(t,"table",this.j.editor);return t&&e?(t.firstChild||t.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=t,this.__tableModule.addSelection(t),this.j.e.on(e,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,e),{label:d,timeout:this.j.defaultTimeout/2})).on(e,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,e)),!1):void 0}onOutsideClick(){this.__selectedCell=null,this.__onRemoveSelection()}onChange(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}__onMove(t,e){if(this.j.o.readonly&&!this.j.isLocked)return;if(this.j.isLockedNotBy(h))return;const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const r=n.J.closest(s,["td","th"],t);if(!r||!this.__selectedCell)return;r!==this.__selectedCell&&this.j.lock(h),this.unselectCells();const i=this.__tableModule.getSelectedBound(t,[r,this.__selectedCell]),o=this.__tableModule.formalMatrix(t);for(let t=i[0][0];i[1][0]>=t;t+=1)for(let e=i[0][1];i[1][1]>=e;e+=1)this.__tableModule.addSelection(o[t][e]);this.__tableModule.getAllSelectedCells().length>1&&this.j.s.sel?.removeAllRanges(),this.j.e.fire("hidePopup"),e.stopPropagation(),(()=>{const t=this.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>');r.appendChild(t),this.j.async.setTimeout((()=>{t.parentNode?.removeChild(t)}),this.j.defaultTimeout/5)})()}__onRemoveSelection(t){if(!t?.buffer?.actionTrigger&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.__isSelectionMode=!1,this.__selectedCell=null}__onStopSelection(t,e){if(!this.__selectedCell)return;this.__isSelectionMode=!1,this.j.unlock();const s=this.j.ed.elementFromPoint(e.clientX,e.clientY);if(!s)return;const r=n.J.closest(s,["td","th"],t);if(!r)return;const i=n.J.closest(r,"table",t);if(i&&i!==t)return;const o=this.__tableModule.getSelectedBound(t,[r,this.__selectedCell]),a=this.__tableModule.formalMatrix(t),c=a[o[1][0]][o[1][1]],u=a[o[0][0]][o[0][1]];this.j.e.fire("showPopup",t,(()=>{const t=(0,l.position)(u,this.j),e=(0,l.position)(c,this.j);return{left:t.left,top:t.top,width:e.left-t.left+e.width,height:e.top-t.top+e.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(d)}unselectCells(t){const e=this.__tableModule,s=e.getAllSelectedCells();s.length&&s.forEach((s=>{t&&t===s||e.removeSelection(s)}))}onExecCommand(t){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(t)){t=t.replace("table","");const e=this.__tableModule.getAllSelectedCells();if(e.length){const[s]=e;if(!s)return;const r=n.J.closest(s,"table",this.j.editor);if(!r)return;switch(t){case"splitv":this.__tableModule.splitVertical(r);break;case"splitg":this.__tableModule.splitHorizontal(r);break;case"merge":this.__tableModule.mergeSelected(r);break;case"empty":e.forEach((t=>n.J.detach(t)));break;case"bin":n.J.safeRemove(r);break;case"binrow":new Set(e.map((t=>t.parentNode))).forEach((t=>{this.__tableModule.removeRow(r,t.rowIndex)}));break;case"bincolumn":{const t=new Set;e.reduce(((e,s)=>(t.has(s.cellIndex)||(e.push(s),t.add(s.cellIndex)),e)),[]).forEach((t=>{this.__tableModule.removeColumn(r,t.cellIndex)}))}break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(r,s.cellIndex,"addcolumnafter"===t);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(r,s.parentNode,"addrowafter"===t)}}return!1}}onAfterCommand(t){/^justify/.test(t)&&this.__tableModule.getAllSelectedCells().forEach((e=>(0,l.alignElement)(t,e)))}beforeDestruct(t){this.__onRemoveSelection(),t.e.off(".select-cells")}}p.requires=["select"],(0,r.Cg)([o.autobind],p.prototype,"onStartSelection",null),(0,r.Cg)([(0,o.watch)(":outsideClick")],p.prototype,"onOutsideClick",null),(0,r.Cg)([(0,o.watch)(":change")],p.prototype,"onChange",null),(0,r.Cg)([o.autobind],p.prototype,"__onRemoveSelection",null),(0,r.Cg)([o.autobind],p.prototype,"__onStopSelection",null),(0,r.Cg)([o.autobind],p.prototype,"onExecCommand",null),(0,r.Cg)([o.autobind],p.prototype,"onAfterCommand",null),a.fg.add("selectCells",p)},41133(t,e,s){"use strict";s(36115).T.prototype.select={normalizeSelectionBeforeCutAndCopy:!1}},35523(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(55186),n=s(56298),a=s(83260),l=s(71005),c=s(53048);s(41133);class u extends l.k{constructor(){super(...arguments),this.proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"]}afterInit(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}beforeDestruct(t){this.proxyEventsList.forEach((e=>{t.e.on(e+".select",this.onStartSelection)}))}onStartSelection(t){const{j:e}=this;let s,r=t.target;for(;void 0===s&&r&&r!==e.editor;)s=e.e.fire((0,a.x)(t.type+"_"+r.nodeName.toLowerCase()),r,t),r=r.parentElement;"click"===t.type&&void 0===s&&r===e.editor&&e.e.fire(t.type+"Editor",r,t)}onOutsideClick(t){const e=t.target;o.J.up(e,(t=>t===this.j.editor))||c.D$.closestElement(e,c.zD)||this.j.e.fire("outsideClick",t)}beforeCommandCut(t){const{s:e}=this.j;if(!e.isCollapsed()){const t=e.current();t&&o.J.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}beforeCommandSelectall(t){const{s:e}=this.j;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}onCopyNormalizeSelectionBound(t){const{s:e,editor:s,o:r}=this.j;r.select.normalizeSelectionBeforeCutAndCopy&&!e.isCollapsed()&&(!t||t.isTrusted&&o.J.isNode(t.target)&&o.J.isOrContains(s,t.target))&&this.jodit.s.expandSelection()}}(0,r.Cg)([i.autobind],u.prototype,"onStartSelection",null),(0,r.Cg)([(0,i.watch)("ow:click")],u.prototype,"onOutsideClick",null),(0,r.Cg)([(0,i.watch)([":beforeCommandCut"])],u.prototype,"beforeCommandCut",null),(0,r.Cg)([(0,i.watch)([":beforeCommandSelectall"])],u.prototype,"beforeCommandSelectall",null),(0,r.Cg)([(0,i.watch)([":copy",":cut"])],u.prototype,"onCopyNormalizeSelectionBound",null),n.fg.add("select",u)},78134(t,e,s){"use strict";var r=s(36115);r.T.prototype.minWidth=200,r.T.prototype.maxWidth="100%",r.T.prototype.minHeight=200,r.T.prototype.maxHeight="auto",r.T.prototype.saveHeightInStorage=!1},69077(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(56298),n=s(2461),a=s(38322),l=s(29866);s(78134);let c=class t extends l.k{constructor(){super(...arguments),this.__resizeWorkspaces=this.j.async.debounce(this.__resizeWorkspaceImd,this.j.defaultTimeout,!0)}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.__initialize()}__initialize(){const{j:t}=this;if(t.o.inline)return;let{height:e}=t.o;if(t.o.saveHeightInStorage&&"auto"!==e){const s=t.storage.get("height");s&&(e=s)}(0,a.A)(t.editor,{minHeight:"100%"}),(0,a.A)(t.container,{minHeight:t.o.minHeight,maxHeight:t.o.maxHeight,minWidth:t.o.minWidth,maxWidth:t.o.maxWidth}),t.isFullSize||(this.__setHeight(e),this.__setWidth(t.o.width))}__setHeight(t){if((0,n.E)(t)){const{minHeight:e,maxHeight:s}=this.j.o;(0,n.E)(e)&&e>t&&(t=e),(0,n.E)(s)&&t>s&&(t=s)}(0,a.A)(this.j.container,"height",t),this.j.o.saveHeightInStorage&&this.j.storage.set("height",t),this.__resizeWorkspaceImd()}__setWidth(t){if((0,n.E)(t)){const{minWidth:e,maxWidth:s}=this.j.o;(0,n.E)(e)&&e>t&&(t=e),(0,n.E)(s)&&t>s&&(t=s)}(0,a.A)(this.j.container,"width",t),this.__resizeWorkspaceImd()}__getNotWorkHeight(){return(this.j.toolbarContainer?.offsetHeight||0)+(this.j.statusbar?.getHeight()||0)+2}__resizeWorkspaceImd(){if(!this.j||this.j.isDestructed||!this.j.o||this.j.o.inline)return;if(!this.j.container||!this.j.container.parentNode)return;const t=((0,a.A)(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if((0,n.E)(t)&&t>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,a.A)(e,"minHeight",t)})),this.j.e.fire("setMinHeight",t)),(0,n.E)(this.j.o.maxHeight)){const t=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((e=>{e&&(0,a.A)(e,"maxHeight",t)})),this.j.e.fire("setMaxHeight",t)}this.j.container&&(0,a.A)(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto")}beforeDestruct(t){t.e.off(t.ow,"load.size",this.__resizeWorkspaces).off(".size")}};(0,r.Cg)([(0,i.throttle)()],c.prototype,"__initialize",null),(0,r.Cg)([i.autobind],c.prototype,"__resizeWorkspaceImd",null),c=(0,r.Cg)([i.autobind],c),o.fg.add("size",c)},90722(t,e,s){"use strict";var r=s(17352),i=s(931),o=s(9103),n=s.n(o),a=s(36115);a.T.prototype.beautifyHTML=!r.IS_IE,a.T.prototype.sourceEditor="ace",a.T.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},a.T.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],a.T.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"],i.I.set("source",n()),a.T.prototype.controls.source={mode:r.MODE_SPLIT,exec(t){t.toggleMode()},isActive(t){return t.getRealMode()===r.MODE_SOURCE},tooltip:"Change mode"}},5533(t,e,s){"use strict";s.d(e,{p(){return n}});var r=s(17352),i=s(65147),o=s(53380);class n extends o.F{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)}}aceExists(){return void 0!==this.j.ow.ace}getLastColumnIndex(t){return this.instance.session.getLine(t).length}getLastColumnIndices(){const t=this.instance.session.getLength(),e=[];let s=0;for(let r=0;t>r;r++)s+=this.getLastColumnIndex(r),r>0&&(s+=1),e[r]=s;return e}getRowColumnIndices(t){const e=this.getLastColumnIndices();if(e[0]>=t)return{row:0,column:t};let s=1;for(let r=1;e.length>r;r++)t>e[r]&&(s=r+1);return{row:s,column:t-e[s-1]-1}}setSelectionRangeIndices(t,e){const s=this.getRowColumnIndices(t),r=this.getRowColumnIndices(e);this.instance.getSelection().setSelectionRange({start:s,end:r})}getIndexByRowColumn(t,e){return this.getLastColumnIndices()[t]-this.getLastColumnIndex(t)+e}init(t){const e=()=>{if(void 0!==this.instance||!this.aceExists())return;const e=this.j.c.div("jodit-source__mirror-fake");this.container.appendChild(e),this.instance=t.ow.ace.edit(e),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()!==r.MODE_WYSIWYG&&this.setValue(this.getValue());const s=this.j.async.debounce((()=>{t.isInDestruct||(this.instance.setOption("maxLines","auto"!==t.o.height?t.workplace.offsetHeight/this.instance.renderer.lineHeight:1/0),this.instance.resize())}),2*this.j.defaultTimeout);t.e.on("afterResize afterSetMode",s),s(),this.onReady()};t.e.on("afterSetMode",(()=>{t.getRealMode()!==r.MODE_SOURCE&&t.getMode()!==r.MODE_SPLIT||(this.fromWYSIWYG(),e())})),e(),this.aceExists()||(0,i.loadNext)(t,t.o.sourceEditorCDNUrlsJS).then((()=>{t.isInDestruct||e()})).catch((()=>null))}destruct(){this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),this.j?.events?.off("aceInited.source")}setValue(t){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){const e=this.j.e.fire("beautifyHTML",t);(0,i.isString)(e)&&(t=e)}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.focus()}blur(){this.instance.blur()}getSelectionStart(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.start.row,t.start.column)}getSelectionEnd(){const t=this.instance.selection.getRange();return this.getIndexByRowColumn(t.end.row,t.end.column)}selectAll(){this.instance.selection.selectAll()}insertRaw(t){const e=this.instance.selection.getCursor(),s=this.instance.session.insert(e,t);this.instance.selection.setRange({start:e,end:s},!1)}setSelectionRange(t,e){this.setSelectionRangeIndices(t,e)}setPlaceHolder(t){}replaceUndoManager(){const{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()}})}}},55265(t,e,s){"use strict";s.d(e,{S(){return n}});var r=s(55186),i=s(38322),o=s(53380);class n extends o.F{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)}init(t){this.instance=t.c.element("textarea",{class:"jodit-source__mirror"}),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,i.A)(this.instance,"minHeight",t)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(e=>{t.e.fire(e.type,e)})),this.autosize(),this.onReady()}destruct(){r.J.safeRemove(this.instance)}getValue(){return this.instance.value}setValue(t){this.instance.value=t}insertRaw(t){const e=this.getValue();if(0>this.getSelectionStart())this.setValue(e+t);else{const s=this.getSelectionStart(),r=this.getSelectionEnd();this.setValue(e.substring(0,s)+t+e.substring(r,e.length))}}getSelectionStart(){return this.instance.selectionStart}getSelectionEnd(){return this.instance.selectionEnd}setSelectionRange(t,e=t){this.instance.setSelectionRange(t,e)}get isFocused(){return this.instance===this.j.od.activeElement}focus(){this.instance.focus()}blur(){this.instance.blur()}setPlaceHolder(t){this.instance.setAttribute("placeholder",t)}setReadOnly(t){t?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}selectAll(){this.instance.select()}replaceUndoManager(){const{history:t}=this.jodit;this.j.e.on(this.instance,"keydown",(e=>{if((e.ctrlKey||e.metaKey)&&"z"===e.key)return e.shiftKey?t.redo():t.undo(),this.setSelectionRange(this.getValue().length),!1}))}}},76134(t,e,s){"use strict";s.d(e,{S(){return i.S},p(){return r.p}});var r=s(5533),i=s(55265)},1992(t,e,s){"use strict";s.d(e,{b(){return o}});var r=s(65147),i=s(76134);function o(t,e,s,o,n){let a;if((0,r.isFunction)(t))a=t(e);else switch(t){case"ace":if(!e.o.shadowRoot){a=new i.p(e,s,o,n);break}default:a=new i.S(e,s,o,n)}return a.init(e),a.onReadyAlways((()=>{a.setReadOnly(e.o.readonly)})),a}},53380(t,e,s){"use strict";s.d(e,{F(){return r}});class r{constructor(t,e,s,r){this.jodit=t,this.container=e,this.toWYSIWYG=s,this.fromWYSIWYG=r,this.className="",this.isReady=!1}get j(){return this.jodit}onReady(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}onReadyAlways(t){this.isReady?t():this.j.events?.on(this,"ready",t)}}},93669(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(65147),c=s(71005),u=(s(90722),s(1992));class h extends c.k{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=()=>this.sourceEditor?.getSelectionStart()??0,this.getSelectionEnd=()=>this.sourceEditor?.getSelectionEnd()??0}onInsertHTML(t){if(!this.j.o.readonly&&!this.j.isEditorMode())return this.sourceEditor?.insertRaw(t),this.toWYSIWYG(),!1}fromWYSIWYG(t=!1){if(!this.__lock||!0===t){this.__lock=!0;const t=this.j.getEditorValue(!1,i.SOURCE_CONSUMER);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}toWYSIWYG(){if(this.__lock)return;const t=this.getMirrorValue();t!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=t,this.__lock=!1,this.__oldMirrorValue=t)}getNormalPosition(t,e){for(e=e.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,(t=>{let e="";for(let s=0;t.length>s;s+=1)e+=i.INVISIBLE_SPACE;return e}));t>0&&e[t]===i.INVISIBLE_SPACE;)t--;let s=t;for(;s>0;){if(s--,"<"===e[s]&&void 0!==e[s+1]&&e[s+1].match(/[\w/]+/i))return s;if(">"===e[s])return t}return t}clnInv(t){return t.replace(i.INVISIBLE_SPACE_REG_EXP(),"")}onSelectAll(t){if("selectall"===t.toLowerCase()&&this.j.getRealMode()===i.MODE_SOURCE)return this.sourceEditor?.selectAll(),!1}getMirrorValue(){return this.sourceEditor?.getValue()||""}setMirrorValue(t){this.sourceEditor?.setValue(t)}setFocusToMirror(){this.sourceEditor?.focus()}saveSelection(){if(this.j.getRealMode()===i.MODE_WYSIWYG)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;const t=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){const e=this.j.s.marker(!0),s=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(t.substring(0,s)+this.clnInv(e.outerHTML)+t.substring(s))}else{const e=this.j.s.marker(!0),s=this.j.s.marker(!1),r=this.getNormalPosition(this.getSelectionStart(),t),i=this.getNormalPosition(this.getSelectionEnd(),t);this.setMirrorValue(t.slice(0,r)+this.clnInv(e.outerHTML)+t.slice(r,i)+this.clnInv(s.outerHTML)+t.slice(i))}this.toWYSIWYG()}}removeSelection(){if(this.j.getRealMode()===i.MODE_WYSIWYG)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);let t=this.getMirrorValue(),e=0,s=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){const e=this.j.e.fire("beautifyHTML",t);(0,l.isString)(e)&&(t=e)}if(e=t.indexOf(this.tempMarkerStart),s=e,t=t.replace(this.tempMarkerStartReg,""),-1!==e){const e=t.indexOf(this.tempMarkerEnd);-1!==e&&(s=e)}t=t.replace(this.tempMarkerEndReg,"")}finally{t=t.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(t),this.setMirrorSelectionRange(e,s),this.toWYSIWYG(),this.setFocusToMirror()}setMirrorSelectionRange(t,e){this.sourceEditor?.setSelectionRange(t,e)}onReadonlyReact(){this.sourceEditor?.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,u.b)("area",t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),t.e.on(t.ow,"keydown",(t=>{t.key===i.KEY_ESC&&this.sourceEditor?.isFocused&&this.sourceEditor.blur()})),this.onReadonlyReact(),t.e.on("placeholder.source",(t=>{this.sourceEditor?.setPlaceHolder(t)})).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",(t=>t)),t.o.beautifyHTML){const e=()=>{if(t.isInDestruct)return!1;const e=t.ow.html_beautify;return!(!e||t.isInDestruct||(t.events?.off("beautifyHTML").on("beautifyHTML",(t=>e(t))),0))};e()||(0,l.loadNext)(t,t.o.beautifyHTMLCDNUrlsJS).then(e,(()=>null))}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(t)}syncValueFromWYSIWYG(t=!1){const e=this.j;e.getMode()!==i.MODE_SPLIT&&e.getMode()!==i.MODE_SOURCE||this.fromWYSIWYG(t)}initSourceEditor(t){if("area"!==t.o.sourceEditor){const e=(0,u.b)(t.o.sourceEditor,t,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);e.onReadyAlways((()=>{this.sourceEditor?.destruct(),this.sourceEditor=e,this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}else this.sourceEditor?.onReadyAlways((()=>{this.syncValueFromWYSIWYG(!0),t.events?.fire("sourceEditorReady",t)}))}beforeDestruct(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),n.J.safeRemove(this.mirrorContainer)}}(0,r.Cg)([(0,o.watch)(":insertHTML.source")],h.prototype,"onInsertHTML",null),(0,r.Cg)([o.autobind],h.prototype,"fromWYSIWYG",null),(0,r.Cg)([o.autobind],h.prototype,"toWYSIWYG",null),(0,r.Cg)([o.autobind],h.prototype,"getNormalPosition",null),(0,r.Cg)([(0,o.watch)(":beforeCommand.source")],h.prototype,"onSelectAll",null),(0,r.Cg)([(0,o.watch)(":beforeSetMode.source")],h.prototype,"saveSelection",null),(0,r.Cg)([(0,o.watch)(":afterSetMode.source")],h.prototype,"removeSelection",null),(0,r.Cg)([o.autobind],h.prototype,"setMirrorSelectionRange",null),(0,r.Cg)([(0,o.watch)(":readonly.source")],h.prototype,"onReadonlyReact",null),(0,r.Cg)([o.autobind],h.prototype,"syncValueFromWYSIWYG",null),a.fg.add("source",h)},71096(t,e,s){"use strict";var r=s(9810),i=s(72197),o=s(931),n=s(71722),a=s(93676),l=s(22227),c=s.n(l),u=s(36115);u.T.prototype.speechRecognize={api:n.o,sound:!0,continuous:!0,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"}},o.I.set("speech-recognize",c()),u.T.prototype.controls.speechRecognize={isActive(t,e){const s=(0,i.m)(t,"speech");return!!s?.isEnabled},isDisabled:t=>!t.o.speechRecognize.api,exec(t,e,{button:s,control:o}){const{api:n,lang:l,continuous:c,interimResults:u,sound:h}=t.o.speechRecognize;if(!n)return void t.alert("Speech recognize API unsupported in your browser");let d=(0,i.m)(t,"speech");if(!d){const e=new n;d=new a.g(t.async,e),d.lang=l,d.continuous=c,d.interimResults=u,d.sound=h,(0,i.m)(t,"speech",d),d.on("pulse",(t=>{s.setMod("pulse",t)})),d.on("result",(e=>t.e.fire("speechRecognizeResult",e))),d.on("progress",(e=>t.e.fire("speechRecognizeProgressResult",e))),s.hookStatus("beforeDestruct",(()=>{d.destruct()}))}if(o.args){const t=o.args[0];if((0,r.L)(d[t]))return d[t]=!d[t],void(d.isEnabled&&d.restart())}d.toggle(),s.state.activated=d.isEnabled},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate(t,e,s){const r=(0,i.m)(t,"speech");return`<span class='jodit-speech-recognize__list-item'><input ${r?.[e]??t.o.speechRecognize[e]?"checked":""} class='jodit-checkbox' type='checkbox'>&nbsp;${s}</span>`},mods:{stroke:!1}}},81629(t,e,s){"use strict";s.d(e,{N(){return r},Z(){return i}});const r=440,i=940},71722(t,e,s){"use strict";s.d(e,{o(){return r}});const r=window.SpeechRecognition||window.webkitSpeechRecognition},50834(t,e,s){"use strict";function r(t,e){const[s,r]=e.split("::");t.execCommand(s,null,r)}s.d(e,{F(){return r}})},93676(t,e,s){"use strict";s.d(e,{g(){return c}});var r,i=s(31635),o=s(22664),n=s(43431),a=s(95473),l=s(81629);let c=r=class t extends n.h{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}constructor(t,e){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(l.Z)}),5e3),this.emit("pulse",!0))},this._progressTimeout=0,this._api=e,r._instances.add(this)}destruct(){this.stop(),r._instances.delete(this),super.destruct()}get isEnabled(){return this._isEnabled}start(){this._isEnabled||(this._isEnabled=!0,r._instances.forEach((t=>{t!==this&&t.stop()})),this._api.start(),this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onResult))}stop(){if(this._isEnabled){try{this._api.abort(),this._api.stop()}catch{}this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onResult),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,e){return this._api.addEventListener(t,e),this}__off(t,e){return this._api.removeEventListener(t,e),this}_onResult(t){if(!this._isEnabled)return;this.async.clearTimeout(this._progressTimeout);const e=t.results.item(t.resultIndex),{transcript:s}=e.item(0),r=()=>{try{this.async.clearTimeout(this._restartTimeout),this.emit("result",s)}catch{}this.restart(),this.emit("pulse",!1),this._makeSound(l.N)};if(!1===e.isFinal)return this.emit("progress",s),void(this._progressTimeout=this.async.setTimeout(r,500));r()}_onError(){this._isEnabled&&(this._makeSound(l.Z),this.emit("pulse",!1),this.restart())}_makeSound(t){this.sound&&(0,a.s)({frequency:t})}};c._instances=new Set,c=r=(0,i.Cg)([o.autobind],c)},95473(t,e,s){"use strict";s.d(e,{s(){return i}});var r=s(81629);function i({sec:t=.1,frequency:e=r.N,gain:s=.1,type:i="sine"}={}){if(void 0===window.AudioContext&&void 0===window.webkitAudioContext)return;const o=new(window.AudioContext||window.webkitAudioContext),n=o.createGain(),a=o.createOscillator();a.type=i,a.frequency.value=e,a.connect(n),n.connect(o.destination),a.start(),a.stop(o.currentTime+t),n.gain.value=s}},25202(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return r},cs_cz(){return r},de(){return r},es(){return r},fa(){return r},fi(){return r},fr(){return r},he(){return r},hu(){return r},id(){return r},it(){return r},ja(){return r},ko(){return r},mn(){return r},nl(){return r},pl(){return r},pt_br(){return r},ru(){return r},tr(){return r},zh_cn(){return r},zh_tw(){return r}});var r=s(41324)},37873(t,e,s){"use strict";var r=s(31635),i=s(37075),o=s(66927),n=s(55186),a=s(56298),l=s(84976),c=s(71005),u=(s(71096),s(46173)),h=s(50834),d=s(25202);class p extends c.k{constructor(t){super(t),this._commandToWord={},t.o.speechRecognize.api&&t.registerButton({group:"state",name:"speechRecognize"})}afterInit(t){const{commands:e}=t.o.speechRecognize;e&&((0,a.JW)(d),(0,l.HP)(e,!1).forEach((s=>{s.split("|").forEach((r=>{r=r.trim().toLowerCase(),this._commandToWord[r]=e[s];const i=t.i18n(r);i!==r&&i.split("|").forEach((t=>{this._commandToWord[t.trim().toLowerCase()]=e[s].trim()}))}))})))}beforeDestruct(t){}onSpeechRecognizeProgressResult(t){this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.setTimeout((()=>{n.J.safeRemove(this.messagePopup)}),{label:"onSpeechRecognizeProgressResult",timeout:1e3}),this.messagePopup.innerText=t+"|"}onSpeechRecognizeResult(t){const{j:e}=this,{s}=e;if(n.J.safeRemove(this.messagePopup),!this._checkCommand(t)){const{range:r}=s,i=s.current();if(s.isCollapsed()&&n.J.isText(i)&&n.J.isOrContains(e.editor,i)&&i.nodeValue){const o=i.nodeValue;i.nodeValue=o+(/[\u00A0 ]\uFEFF*$/.test(o)?"":" ")+t,r.setStartAfter(i),s.selectRange(r),e.synchronizeValues()}else s.insertHTML(t)}}_checkCommand(t){return t=t.toLowerCase().replace(/\./g,""),!!this._commandToWord[t]&&((0,h.F)(this.j,this._commandToWord[t]),!0)}}(0,r.Cg)([(0,o.wB)(":speechRecognizeProgressResult"),(0,i.s)()],p.prototype,"onSpeechRecognizeProgressResult",null),(0,r.Cg)([(0,o.wB)(":speechRecognizeResult")],p.prototype,"onSpeechRecognizeResult",null),u.x.plugins.add("speech-recognize",p)},78703(t,e,s){"use strict";var r=s(931),i=s(49989),o=s.n(i),n=s(36115);n.T.prototype.spellcheck=!1,r.I.set("spellcheck",o()),n.T.prototype.controls.spellcheck={isActive:t=>t.o.spellcheck,icon:o(),name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"}},11995(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return r},cs_cz(){return r},de(){return r},es(){return r},fa(){return r},fi(){return r},fr(){return r},he(){return r},hu(){return r},id(){return r},it(){return r},ja(){return r},ko(){return r},mn(){return r},nl(){return r},pl(){return r},pt_br(){return r},ru(){return r},tr(){return r},zh_cn(){return r},zh_tw(){return r}});var r=s(41324)},97179(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(56298),n=s(26150),a=s(71005),l=(s(78703),s(11995));class c extends a.k{constructor(t){super(t),this.buttons=[{group:"state",name:"spellcheck"}],(0,o.JW)(l)}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,n.C)(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}beforeDestruct(t){}}(0,r.Cg)([i.autobind],c.prototype,"toggleSpellcheck",null),o.fg.add("spellcheck",c)},27195(t,e,s){"use strict";var r=s(36115);r.T.prototype.showCharsCounter=!0,r.T.prototype.countHTMLChars=!1,r.T.prototype.showWordsCounter=!0},65199(t,e,s){"use strict";var r=s(17352),i=s(55186),o=s(56298),n=s(29866);s(27195),o.fg.add("stat",class a extends n.k{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((()=>{const t=this.j.text;if(this.j.o.showCharsCounter&&this.charCounter){const e=this.j.o.countHTMLChars?this.j.value:t.replace((0,r.SPACE_REG_EXP)(),"");this.charCounter.textContent=this.j.i18n("Chars: %d",e.length)}this.j.o.showWordsCounter&&this.wordCounter&&(this.wordCounter.textContent=this.j.i18n("Words: %d",t.replace((0,r.INVISIBLE_SPACE_REG_EXP)(),"").split((0,r.SPACE_REG_EXP)()).filter((t=>t.length)).length))}),this.j.defaultTimeout)}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(){i.J.safeRemove(this.charCounter),i.J.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}})},63400(t,e,s){"use strict";var r=s(36115);r.T.prototype.toolbarSticky=!0,r.T.prototype.toolbarDisableStickyForMobile=!0,r.T.prototype.toolbarStickyOffset=0},1677(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(55186),a=s(56298),l=s(65147),c=s(29866);s(63400);const u=!i.IS_ES_NEXT&&i.IS_IE;class h extends c.k{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||(u&&!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)}}afterInit(t){t.e.on(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",(()=>this.__isToolbarStuck))}__onScroll(){const{jodit:t}=this;if(!t.o.toolbarSticky||!t.o.toolbar)return;const e=t.ow.pageYOffset||t.od.documentElement&&t.od.documentElement.scrollTop||0,s=(0,l.offset)(t.container,t,t.od,!0),r=t.getMode()===i.MODE_WYSIWYG&&e+t.o.toolbarStickyOffset>s.top&&s.top+s.height>e+t.o.toolbarStickyOffset&&!(t.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck===r)return;const o=t.toolbarContainer;o&&(r?this.addSticky(o):this.removeSticky(o)),t.e.fire("toggleSticky",r)}__isMobile(){const{j:t}=this;return t&&t.options&&t.container&&t.options.sizeSM>=t.container.offsetWidth}beforeDestruct(t){n.J.safeRemove(this.__dummyBox),t.e.off(t.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}(0,r.Cg)([(0,o.throttle)()],h.prototype,"__onScroll",null),a.fg.add("sticky",h)},61964(t,e,s){"use strict";var r=s(931),i=s(81875),o=s.n(i),n=s(36115);n.T.prototype.usePopupForSpecialCharacters=!1,n.T.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;"],r.I.set("symbols",o()),n.T.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup(t,e,s){const r=t.e.fire("generateSpecialCharactersTable.symbols");if(r){if(t.o.usePopupForSpecialCharacters){const e=t.c.div();return e.classList.add("jodit-symbols"),e.appendChild(r),t.e.on(r,"close_dialog",s),e}{t.alert(r,"Select Special Character",void 0,"jodit-symbols").bindDestruct(t);const e=r.querySelector("a");e&&e.focus()}}}}},84182(t,e,s){"use strict";s.r(e),s.d(e,{ar(){return r},cs_cz(){return r},de(){return r},es(){return r},fa(){return r},fi(){return r},fr(){return r},he(){return r},hu(){return r},id(){return r},it(){return r},ja(){return r},ko(){return r},mn(){return r},nl(){return r},pl(){return r},pt_br(){return r},ru(){return r},tr(){return r},zh_cn(){return r},zh_tw(){return r}});var r=s(41324)},35541(t,e,s){"use strict";var r=s(17352),i=s(55186),o=s(56298),n=s(97369),a=s(29866),l=(s(61964),s(84182));o.fg.add("symbols",class c extends a.k{constructor(t){super(t),this.buttons=[{name:"symbols",group:"insert"}],this.countInRow=17,(0,o.JW)(l)}afterInit(t){t.e.on("generateSpecialCharactersTable.symbols",(()=>{const e=t.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),s=e.querySelector(".jodit-symbols__preview"),o=e.querySelector("table").tBodies[0],a=[];for(let e=0;t.o.specialCharacters.length>e;){const s=t.c.element("tr");for(let r=0;this.countInRow>r&&t.o.specialCharacters.length>e;r+=1,e+=1){const i=t.c.element("td"),o=t.c.fromHTML(`<a\n\t\t\t\t\t\t\t\t\tdata-index="${e}"\n\t\t\t\t\t\t\t\t\tdata-index-j="${r}"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>${t.o.specialCharacters[e]}</a>`);a.push(o),i.appendChild(o),s.appendChild(i)}o.appendChild(s)}const l=this;return t.e.on(a,"focus",(function(){s.innerHTML=this.innerHTML})).on(a,"mousedown",(function(e){i.J.isTag(this,"a")&&(t.s.focus(),t.s.insertHTML(this.innerHTML),t.e.fire(this,"close_dialog"),e&&e.preventDefault(),e&&e.stopImmediatePropagation())})).on(a,"mouseenter",(function(){i.J.isTag(this,"a")&&this.focus()})).on(a,"keydown",(e=>{const s=e.target;if(i.J.isTag(s,"a")){const i=parseInt((0,n.attr)(s,"-index")||"0",10),o=parseInt((0,n.attr)(s,"data-index-j")||"0",10);let c;switch(e.key){case r.KEY_UP:case r.KEY_DOWN:c=e.key===r.KEY_UP?i-l.countInRow:i+l.countInRow,void 0===a[c]&&(c=e.key===r.KEY_UP?Math.floor(a.length/l.countInRow)*l.countInRow+o:o,c>a.length-1&&(c-=l.countInRow)),a[c]&&a[c].focus();break;case r.KEY_RIGHT:case r.KEY_LEFT:c=e.key===r.KEY_LEFT?i-1:i+1,void 0===a[c]&&(c=e.key===r.KEY_LEFT?a.length-1:0),a[c]&&a[c].focus();break;case r.KEY_ENTER:t.e.fire(s,"mousedown"),e.stopImmediatePropagation(),e.preventDefault()}}})),e}))}beforeDestruct(t){t.e.off("generateSpecialCharactersTable.symbols")}})},48840(t,e,s){"use strict";s.d(e,{O(){return r.O}});var r=s(86572)},86572(t,e,s){"use strict";s.d(e,{O(){return i}});var r=s(55186);function i(t,e=!1){if(!t.o.tab.tabInsideLiInsertNewList)return!1;const[s,i]=(t=>{const e=t.createInside.fake(),s=t.createInside.fake(),r=t.s.range.cloneRange();r.collapse(!0),r.insertNode(e);const i=t.s.range.cloneRange();return i.collapse(!1),i.insertNode(s),[e,s]})(t);try{const i=((t,e,s)=>{const i=r.J.closest(e,"li",t.editor);return!!i&&!(!s&&!r.J.isLeaf(i.previousElementSibling))&&!(s&&!r.J.closest(i,"li",t.editor))&&i})(t,s,e);if(!i)return!1;if(!((t,e,s)=>{const i=r.J.closest(s,"li",e.editor);return!(!i||i!==t&&!t.contains(i))})(i,t,s))return!1;const o=r.J.closest(i,["ol","ul"],t.editor);return!(!o||e&&!r.J.closest(o,"li",t.editor)||(e?((t,e,s)=>{const i=r.J.closest(e,"li",t.editor),o=Array.from(e.children).filter((t=>r.J.isLeaf(t)));r.J.after(i,s);const n=o.indexOf(s);if(0!==n&&1!==o.length||r.J.safeRemove(e),n!==o.length-1){const t=e.cloneNode();r.J.append(s,t);for(let e=n+1;o.length>e;e+=1)r.J.append(t,o[e])}})(t,o,i):((t,e,s)=>{const i=s.previousElementSibling,o=i.lastElementChild,n=r.J.isTag(o,e.tagName)?o:t.createInside.element(e.tagName,Array.from(e.attributes).reduce(((t,e)=>(t[e.name]=e.value,t)),{}));n.appendChild(s),o!==n&&i.appendChild(n)})(t,o,i),0))}finally{const e=t.s.createRange();e.setStartAfter(s),e.setEndBefore(i),t.s.selectRange(e),r.J.safeRemove(s),r.J.safeRemove(i)}return!1}s(28712)},50974(t,e,s){"use strict";s(36115).T.prototype.tab={tabInsideLiInsertNewList:!0}},59965(t,e,s){"use strict";var r=s(31635),i=s(17352),o=s(22664),n=s(56298),a=s(71005),l=(s(50974),s(48840));class c extends a.k{afterInit(t){}__onTab(t){if(t.key===i.KEY_TAB&&this.__onShift(t.shiftKey))return!1}__onCommand(t){if(("indent"===t||"outdent"===t)&&this.__onShift("outdent"===t))return!1}__onShift(t){const e=(0,l.O)(this.j,t);return e&&this.j.e.fire("afterTab",t),e}beforeDestruct(t){}}(0,r.Cg)([(0,o.watch)(":keydown.tab")],c.prototype,"__onTab",null),(0,r.Cg)([(0,o.watch)(":beforeCommand.tab")],c.prototype,"__onCommand",null),n.fg.add("tab",c)},2533(t,e,s){"use strict";var r=s(17352),i=s(55186),o=s(56298),n=s(65147),a=s(11648);const l=new Set([r.KEY_TAB,r.KEY_LEFT,r.KEY_RIGHT,r.KEY_UP,r.KEY_DOWN]);o.fg.add("tableKeyboardNavigation",(t=>{t.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(e=>{const{key:s}=e;if(!l.has(s))return;const o=t.s.current();if(!o)return;const c=i.J.up(o,i.J.isCell,t.editor);if(!c)return;const{range:u}=t.s;if(s!==r.KEY_TAB&&o!==c){const t=s===r.KEY_RIGHT||s===r.KEY_DOWN,e=(0,n.call)(t?i.J.next:i.J.prev,o,(t=>s===r.KEY_UP||s===r.KEY_DOWN?i.J.isTag(t,"br"):!!t),c);if(!t&&(e||s!==r.KEY_UP&&i.J.isText(o)&&0!==u.startOffset)||t&&(e||s!==r.KEY_DOWN&&i.J.isText(o)&&o.nodeValue&&u.startOffset!==o.nodeValue.length))return}const h=t.getInstance(a.X,t.o),d=i.J.closest(c,"table",t.editor);let p=null;const f=s===r.KEY_LEFT||e.shiftKey,m=()=>(0,n.call)(f?i.J.prev:i.J.next,c,i.J.isCell,d);switch(s){case r.KEY_TAB:case r.KEY_LEFT:p=m(),p||(h.appendRow(d,!!f&&d.querySelector("tr"),!f),p=m());break;case r.KEY_UP:case r.KEY_DOWN:{const t=h.formalMatrix(d),[e,i]=h.formalCoordinate(d,c);s===r.KEY_UP?void 0!==t[e-1]&&(p=t[e-1][i]):void 0!==t[e+1]&&(p=t[e+1][i])}}if(p){if(t.e.fire("hidePopup hideResizer"),p.firstChild)s===r.KEY_TAB?t.s.select(p,!0):t.s.setCursorIn(p,s===r.KEY_RIGHT||s===r.KEY_DOWN);else{const e=t.createInside.element("br");p.appendChild(e),t.s.setCursorBefore(e)}return t.synchronizeValues(),!1}}))}))},94291(t,e,s){"use strict";var r=s(71842),i=s(65147),o=s(97369),n=s(931),a=s(67447),l=s.n(a),c=s(36115);c.T.prototype.table={selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},n.I.set("table",l()),c.T.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,e,s,n){const a=n.control,l=a.data&&a.data.rows?a.data.rows:10,c=a.data&&a.data.cols?a.data.cols:10,u=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"";const e=[];if(a.data){const t=a.data.classList;Object.keys(t).forEach((s=>{e.push(`<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="${s}" type="checkbox"/>${t[s]}</label>`)}))}return e.join("")})()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),h=u.querySelectorAll("span")[0],d=u.querySelectorAll("span")[1],p=u.querySelector(".jodit-form__container"),f=u.querySelector(".jodit-form__options"),m=[],g=l*c;for(let e=0;g>e;e+=1)m[e]||m.push(t.c.element("span",{dataIndex:e}));if(t.e.on(p,"mousemove",((t,e)=>{const s=t.target;if(!r.J.isTag(s,"span"))return;const i=void 0===e||isNaN(e)?parseInt((0,o.attr)(s,"-index")||"0",10):e||0,n=Math.ceil((i+1)/c),a=i%c+1;for(let t=0;m.length>t;t+=1)m[t].className=t%c+1>a||Math.ceil((t+1)/c)>n?"":"jodit_hovered";d.textContent=""+a,h.textContent=""+n})).on(p,"touchstart mousedown",(e=>{const n=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),!r.J.isTag(n,"span"))return;const a=parseInt((0,o.attr)(n,"-index")||"0",10),l=Math.ceil((a+1)/c),u=a%c+1,h=t.createInside,d=h.element("tbody"),p=h.element("table");p.appendChild(d);let m,g,v=null;for(let t=1;l>=t;t+=1){m=h.element("tr");for(let t=1;u>=t;t+=1)g=h.element("td"),v||(v=g),(0,i.css)(g,"width",(100/u).toFixed(4)+"%"),g.appendChild(h.element("br")),m.appendChild(h.text("\n")),m.appendChild(h.text("\t")),m.appendChild(g);d.appendChild(h.text("\n")),d.appendChild(m)}(0,i.$$)("input[type=checkbox]:checked",f).forEach((t=>{t.value.split(/[\s]+/).forEach((t=>{p.classList.add(t)}))})),t.editor.firstChild&&t.s.insertNode(h.text("\n"),!1,!1),t.s.insertNode(p,!1),v&&(t.s.setCursorIn(v),(0,i.scrollIntoViewIfNeeded)(v,t.editor,t.ed)),s()})),n&&n.parentElement){for(let e=0;l>e;e+=1){const s=t.c.div();for(let t=0;c>t;t+=1)s.appendChild(m[e*c+t]);p.appendChild(s)}m[0]&&(m[0].className="hovered")}return u},tooltip:"Insert table"}},76385(t,e,s){"use strict";var r=s(56298);s(94291),r.fg.add("table",(t=>{t.registerButton({name:"table",group:"insert"})}))},31686(t,e,s){"use strict";var r=s(65147),i=s(35265),o=s(20703),n=s(931),a=s(16116),l=s(36339),c=s.n(l),u=s(36115);n.I.set("video",c()),u.T.prototype.controls.video={popup(t,e,s){const n=new o.XV(t,[new o.Yh(t,[new o.tS(t,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new o.Yh(t,[(0,i.$n)(t,"","Insert","primary").onAction((()=>n.submit()))])]),l=new o.XV(t,[new o.Yh(t,[new o.F0(t,{name:"code",required:!0,label:"Embed code"})]),new o.Yh(t,[(0,i.$n)(t,"","Insert","primary").onAction((()=>l.submit()))])]),c=[],u=e=>{t.s.restore(),t.s.insertHTML(e),s()};return t.s.save(),c.push({icon:"link",name:"Link",content:n.container},{icon:"source",name:"Code",content:l.container}),n.onSubmit((t=>{u((0,r.convertMediaUrlToVideoEmbed)(t.url))})),l.onSubmit((t=>{u(t.code)})),(0,a.Zg)(t,c)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}},38309(t,e,s){"use strict";var r=s(56298);s(31686),r.fg.add("video",(t=>{t.registerButton({name:"video",group:"media"})}))},2805(t,e,s){"use strict";s(36115).T.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0}},14367(t,e,s){"use strict";var r=s(31635),i=s(22664),o=s(71842),n=s(56298),a=s(98253),l=s(71005);s(2805);class c extends l.k{constructor(){super(...arguments),this.isSuitableStart=t=>o.J.isText(t)&&(0,a.K)(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||t.parentNode?.firstChild===t&&this.isSuitable(t.nextSibling))||this.isNotWrapped(t)&&!o.J.isTemporary(t),this.isSuitable=t=>o.J.isText(t)||this.isNotWrapped(t),this.isNotWrapped=t=>o.J.isElement(t)&&!(o.J.isBlock(t)||o.J.isTag(t,this.j.o.wrapNodes.exclude))}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(){const{jodit:t}=this;if(!t.isEditorMode())return;let e=t.editor.firstChild,s=!1;for(;e;){if(e=u(e,t),this.isSuitableStart(e)){s||t.s.save(),s=!0;const r=t.createInside.element(t.o.enter);for(o.J.before(e,r);e&&this.isSuitable(e);){const t=e.nextSibling;r.appendChild(e),e=t}r.normalize(),e=r}e=e&&e.nextSibling}s&&(t.s.restore(),"afterInit"===t.e.current&&t.e.fire("internalChange"))}preprocessInput(){const{jodit:t}=this,e="afterInit"===t.e.current;if(!t.isEditorMode()||t.editor.firstChild||!t.o.wrapNodes.emptyBlockAfterInit&&e)return;const s=t.createInside.element(t.o.enter),r=t.createInside.element("br");o.J.append(s,r),o.J.append(t.editor,s),t.s.isFocused()&&t.s.setCursorBefore(r),t.e.fire("internalChange")}}function u(t,e){let s=t,r=t;do{if(!o.J.isElement(r)||!o.J.isLeaf(r)||o.J.isList(r.parentElement))break;{const t=o.J.findNotEmptySibling(r,!1);o.J.isTag(s,"ul")?s.appendChild(r):s=o.J.wrap(r,"ul",e.createInside),r=t}}while(r);return s}(0,r.Cg)([i.autobind],c.prototype,"postProcessSetEditorValue",null),(0,r.Cg)([i.autobind],c.prototype,"preprocessInput",null),n.fg.add("wrapNodes",c)},88850(t,e,s){"use strict";s(36115).T.prototype.showXPathInStatusbar=!0},36133(t,e,s){"use strict";var r=s(17352),i=s(71842),o=s(56298),n=s(65147),a=s(71005),l=s(34248),c=s(8809);s(88850),o.fg.add("xpath",class u extends a.k{constructor(){super(...arguments),this.onContext=(t,e)=>(this.menu||(this.menu=new l.t(this.j)),this.menu.show(e.clientX,e.clientY,[{icon:"bin",title:t===this.j.editor?"Clear":"Remove",exec:()=>{t!==this.j.editor?i.J.safeRemove(t):this.j.value="",this.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:()=>{this.j.s.select(t)}}]),!1),this.onSelectPath=(t,e)=>{this.j.s.focus();const s=(0,n.attr)(e.target,"-path")||"/";if("/"===s)return this.j.execCommand("selectall"),!1;try{const t=this.j.ed.evaluate(s,this.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(t)return this.j.s.select(t),!1}catch{}return this.j.s.select(t),!1},this.tpl=(t,e,s,r)=>{const i=this.j.c.fromHTML(`<span class="jodit-xpath__item"><a role="button" data-path="${e}" title="${r}" tabindex="-1"'>${(0,n.trim)(s)}</a></span>`),o=i.firstChild;return this.j.e.on(o,"click",this.onSelectPath.bind(this,t)).on(o,"contextmenu",this.onContext.bind(this,t)),i},this.removeSelectAll=()=>{this.selectAllButton&&(this.selectAllButton.destruct(),delete this.selectAllButton)},this.appendSelectAll=()=>{this.removeSelectAll(),this.selectAllButton=(0,c.BJ)(this.j,{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;const t=this.j.s.current();if(this.container&&(this.container.innerHTML=r.INVISIBLE_SPACE),t){let e,s,r;i.J.up(t,(t=>{!t||this.j.editor===t||i.J.isText(t)||i.J.isComment(t)||(e=t.nodeName.toLowerCase(),s=(0,n.getXPathByElement)(t,this.j.editor).replace(/^\//,""),r=this.tpl(t,s,e,this.j.i18n("Select %s",e)),this.container&&this.container.insertBefore(r,this.container.firstChild))}),this.j.editor)}this.appendSelectAll()},this.calcPath=this.j.async.debounce(this.calcPathImd,2*this.j.defaultTimeout)}afterInit(){this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",(()=>{this.j.o.showXPathInStatusbar&&this.container&&(this.j.statusbar.append(this.container),this.j.getRealMode()===r.MODE_WYSIWYG?this.calcPath():(this.container&&(this.container.innerHTML=r.INVISIBLE_SPACE),this.appendSelectAll()))})),this.calcPath())}beforeDestruct(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),i.J.safeRemove(this.container),delete this.menu,delete this.container}})},19005(t,e,s){"use strict";s.r(e),s(92687),s(8489),s(29368),s(64707),s(7513),Array.prototype.includes||(Array.prototype.includes=function(t){return this.indexOf(t)>-1}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");const s=Object(t);for(let t=1;arguments.length>t;t++){const e=arguments[t];if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(s[t]=e[t])}return s},writable:!0,configurable:!0}),Array.prototype.find||(Array.prototype.find=function(t){return this.indexOf(t)>-1?t:void 0}),String.prototype.endsWith||(String.prototype.endsWith=function(t){return this[this.length-1]===t})},79721(t,e,s){"use strict";s.r(e),s.d(e,{angle_down(){return i.a},angle_left(){return n.a},angle_right(){return l.a},angle_up(){return u.a},bin(){return d.a},cancel(){return f.a},center(){return g.a},check(){return b.a},chevron(){return _.a},dots(){return C.a},eye(){return E.a},file(){return x.a},folder(){return j.a},info_circle(){return L.a},left(){return M.a},lock(){return z.a},ok(){return N.a},pencil(){return q.a},plus(){return B.a},resize_handler(){return F.a},right(){return $.a},save(){return V.a},settings(){return U.a},unlock(){return K.a},update(){return Z.a},upload(){return tt.a},valign(){return st.a}});var r=s(88497),i=s.n(r),o=s(91882),n=s.n(o),a=s(14305),l=s.n(a),c=s(58446),u=s.n(c),h=s(39858),d=s.n(h),p=s(70881),f=s.n(p),m=s(60636),g=s.n(m),v=s(32013),b=s.n(v),y=s(45512),_=s.n(y),w=s(80347),C=s.n(w),S=s(95134),E=s.n(S),T=s(70697),x=s.n(T),I=s(49983),j=s.n(I),k=s(98964),L=s.n(k),A=s(8136),M=s.n(A),P=s(94806),z=s.n(P),R=s(31365),N=s.n(R),O=s(44636),q=s.n(O),D=s(36327),B=s.n(D),J=s(53328),F=s.n(J),H=s(98711),$=s.n(H),W=s(53808),V=s.n(W),Y=s(20784),U=s.n(Y),G=s(70999),K=s.n(G),X=s(45244),Z=s.n(X),Q=s(99876),tt=s.n(Q),et=s(14006),st=s.n(et)},63837(t){t.exports.default={"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"}},53414(t){t.exports.default=["Type something","About Jodit","Jodit Editor","Jodit User's Guide","contains detailed help for using","For information about the license, please go to our website:","Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.","Anchor","Open in new tab","Open in fullsize","Clear Formatting","Fill color or set the text color","Redo","Undo","Bold","Italic","Insert Unordered List","Insert Ordered List","Align Center","Align Justify","Align Left","Align Right","Insert Horizontal Line","Insert Image","Insert file","Insert youtube/vimeo video","Insert link","Font size","Font family","Insert format block","Normal","Heading 1","Heading 2","Heading 3","Heading 4","Quote","Code","Insert","Insert table","Decrease Indent","Increase Indent","Select Special Character","Insert Special Character","Paint format","Change mode","Margins","top","right","bottom","left","Styles","Classes","Align","Right","Center","Left","--Not Set--","Src","Title","Alternative","Link","Open link in new tab","Image","file","Advanced","Image properties","Cancel","Ok","File Browser","Error on load list","Error on load folders","Are you sure?","Enter Directory name","Create directory","type name","Drop image","Drop file","or click","Alternative text","Upload","Browse","Background","Text","Top","Middle","Bottom","Insert column before","Insert column after","Insert row above","Insert row below","Delete table","Delete row","Delete column","Empty cell","Chars: %d","Words: %d","Strike through","Underline","superscript","subscript","Cut selection","Select all","Break","Search for","Replace with","Replace","Paste","Choose Content to Paste","source","bold","italic","brush","link","undo","redo","table","image","eraser","paragraph","fontsize","video","font","about","print","underline","strikethrough","indent","outdent","fullsize","shrink","hr","ul","ol","cut","selectall","Embed code","Open link","Edit link","No follow","Unlink","Update","pencil","Eye"," URL","Edit","Horizontal align","Filter","Sort by changed","Sort by name","Sort by size","Add folder","Reset","Save","Save as ...","Resize","Crop","Width","Height","Keep Aspect Ratio","Yes","No","Remove","Select","Select %s","Vertical align","Split","Merge","Add column","Add row","License: %s","Delete","Split vertical","Split horizontal","Border","Your code is similar to HTML. Keep as HTML?","Paste as HTML","Keep","Insert as Text","Insert only Text","You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!","palette","There are no files","Rename","Enter new name","preview","download","Paste from clipboard","Your browser doesn't support direct access to the clipboard.","Copy selection","copy","Border radius","Show all","Apply","Please fill out this field","Please enter a web address","Default","Circle","Dot","Quadrate","Find","Find Previous","Find Next","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","Clean","Insert className","Press Alt for custom resizing"]},928(t){t.exports='<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>'},31230(t){t.exports='<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>'},54522(t){t.exports='<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>'},17995(t){t.exports='<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg>'},86634(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg>'},91115(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg>'},1916(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg>'},52450(t){t.exports='<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>'},41111(t){t.exports='<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>'},49972(t){t.exports='<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>'},45062(t){t.exports='<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>'},18605(t){t.exports='<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>'},83389(t){t.exports='<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>'},93267(t){t.exports='<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>'},71948(t){t.exports='<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>'},51457(t){t.exports='<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>'},23602(t){t.exports='<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>'},86899(t){t.exports='<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>'},95320(t){t.exports='<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>'},45674(t){t.exports='<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>'},3843(t){t.exports='<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>'},48842(t){t.exports='<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>'},25501(t){t.exports='<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>'},29348(t){t.exports='<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>'},24772(t){t.exports='<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>'},66547(t){t.exports='<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>'},89097(t){t.exports='<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>'},64831(t){t.exports='<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>'},67176(t){t.exports='<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>'},14017(t){t.exports='<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>'},38681(t){t.exports='<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>'},64637(t){t.exports='<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>'},94190(t){t.exports='<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>'},51957(t){t.exports='<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>'},71940(t){t.exports='<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>'},48007(t){t.exports='<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>'},43218(t){t.exports='<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>'},80515(t){t.exports='<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>'},223(t){t.exports='<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>'},95032(t){t.exports='<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>'},73533(t){t.exports='<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>'},40037(t){t.exports='<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>'},83207(t){t.exports='<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>'},59827(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg>'},34045(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg>'},39199(t){t.exports='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg>'},21917(t){t.exports='<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg>'},9103(t){t.exports='<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>'},22227(t){t.exports='<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>'},49989(t){t.exports='<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>'},81875(t){t.exports='<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>'},67447(t){t.exports='<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>'},36339(t){t.exports='<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>'},88497(t){t.exports='<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>'},91882(t){t.exports='<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>'},14305(t){t.exports='<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>'},58446(t){t.exports='<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>'},39858(t){t.exports='<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>'},70881(t){t.exports='<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>'},60636(t){t.exports='<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>'},32013(t){t.exports='<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>'},45512(t){t.exports='<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>'},80347(t){t.exports='<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>'},95134(t){t.exports='<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>'},70697(t){t.exports='<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>'},49983(t){t.exports='<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>'},98964(t){t.exports='<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>'},8136(t){t.exports='<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>'},94806(t){t.exports='<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>'},31365(t){t.exports='<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>'},44636(t){t.exports='<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>'},36327(t){t.exports='<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>'},53328(t){t.exports='<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>'},98711(t){t.exports='<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>'},53808(t){t.exports='<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>'},20784(t){t.exports='<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>'},70999(t){t.exports='<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>'},45244(t){t.exports='<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>'},99876(t){t.exports='<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>'},14006(t){t.exports='<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>'},28712(t){"use strict";t.exports={assert(){}}},41324(e){"use strict";e.exports=t},64707(t,e,s){"use strict";s(49445);var r=s(40532);t.exports=r("Array","findIndex")},7513(t,e,s){"use strict";s(95491),s(69507);var r=s(21504);t.exports=r.Array.from},29368(t,e,s){"use strict";s(92059),s(7222),s(88598),s(10695),s(62630),s(4282),s(38163),s(86912),s(1957),s(94811),s(89580),s(40582),s(80294),s(19644),s(28619),s(76880),s(9163),s(57914),s(20926),s(83775);var r=s(21504);t.exports=r.Symbol},49649(t,e,s){"use strict";var r=s(55468),i=s(5174),o=TypeError;t.exports=t=>{if(r(t))return t;throw new o(i(t)+" is not a function")}},23785(t,e,s){"use strict";var r=s(84200),i=String,o=TypeError;t.exports=t=>{if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},1922(t,e,s){"use strict";var r=s(47226),i=s(52713),o=s(11154).f,n=r("unscopables"),a=Array.prototype;void 0===a[n]&&o(a,n,{configurable:!0,value:i(null)}),t.exports=t=>{a[n][t]=!0}},79002(t,e,s){"use strict";var r=s(56063),i=String,o=TypeError;t.exports=t=>{if(r(t))return t;throw new o(i(t)+" is not an object")}},91531(t,e,s){"use strict";var r=s(69661),i=s(31944),o=s(58860),n=s(23756),a=s(96242),l=s(38018),c=s(2701),u=s(44849),h=s(50318),d=s(38994),p=Array;t.exports=function(t){var e=o(t),s=l(this),f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,f>2?arguments[2]:void 0));var v,b,y,_,w,C,S=d(e),E=0;if(!S||this===p&&a(S))for(v=c(e),b=s?new this(v):p(v);v>E;E++)C=g?m(e[E],E):e[E],u(b,E,C);else for(b=s?new this:[],w=(_=h(e,S)).next;!(y=i(w,_)).done;E++)C=g?n(_,m,[y.value,E],!0):y.value,u(b,E,C);return b.length=E,b}},54962(t,e,s){"use strict";var r=s(53324),i=s(13619),o=s(2701),n=t=>(e,s,n)=>{var a=r(e),l=o(a);if(0===l)return!t&&-1;var c,u=i(n,l);if(t&&s!=s){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===s)return t||u||0;return!t&&-1};t.exports={includes:n(!0),indexOf:n(!1)}},84536(t,e,s){"use strict";var r=s(69661),i=s(84369),o=s(21072),n=s(58860),a=s(2701),l=s(24686),c=i([].push),u=t=>{var e=1===t,s=2===t,i=3===t,u=4===t,h=6===t,d=7===t,p=5===t||h;return(f,m,g,v)=>{for(var b,y,_=n(f),w=o(_),C=a(w),S=r(m,g),E=0,T=v||l,x=e?T(f,C):s||d?T(f,0):void 0;C>E;E++)if((p||E in w)&&(y=S(b=w[E],E,_),t))if(e)x[E]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return E;case 2:c(x,b)}else switch(t){case 4:return!1;case 7:c(x,b)}return h?-1:i||u?u:x}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},16074(t,e,s){"use strict";var r=s(11794),i=s(47226),o=s(60341),n=i("species");t.exports=t=>o>=51||!r((()=>{var e=[];return(e.constructor={})[n]=()=>({foo:1}),1!==e[t](Boolean).foo}))},85457(t,e,s){"use strict";var r=s(84369);t.exports=r([].slice)},85148(t,e,s){"use strict";var r=s(96127),i=s(38018),o=s(56063),n=s(47226)("species"),a=Array;t.exports=t=>{var e;return r(t)&&(i(e=t.constructor)&&(e===a||r(e.prototype))||o(e)&&null===(e=e[n]))&&(e=void 0),void 0===e?a:e}},24686(t,e,s){"use strict";var r=s(85148);t.exports=(t,e)=>new(r(t))(0===e?0:e)},23756(t,e,s){"use strict";var r=s(79002),i=s(62004);t.exports=(t,e,s,o)=>{try{return o?e(r(s)[0],s[1]):e(s)}catch(e){i(t,"throw",e)}}},60947(t,e,s){"use strict";var r=s(47226)("iterator"),i=!1;try{var o=0,n={next(){return{done:!!o++}},return(){i=!0}};n[r]=function(){return this},Array.from(n,(()=>{throw 2}))}catch(t){}t.exports=(t,e)=>{try{if(!e&&!i)return!1}catch(t){return!1}var s=!1;try{var o={};o[r]=()=>({next(){return{done:s=!0}}}),t(o)}catch(t){}return s}},96321(t,e,s){"use strict";var r=s(84369),i=r({}.toString),o=r("".slice);t.exports=t=>o(i(t),8,-1)},12318(t,e,s){"use strict";var r=s(46833),i=s(55468),o=s(96321),n=s(47226)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());t.exports=r?o:t=>{var e,s,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=((t,e)=>{try{return t[e]}catch(t){}})(e=a(t),n))?s:l?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},79041(t,e,s){"use strict";var r=s(58898),i=s(42576),o=s(34072),n=s(11154);t.exports=(t,e,s)=>{for(var a=i(e),l=n.f,c=o.f,u=0;a.length>u;u++){var h=a[u];r(t,h)||s&&r(s,h)||l(t,h,c(e,h))}}},18776(t,e,s){"use strict";var r=s(11794);t.exports=!r((()=>{function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},11392(t){"use strict";t.exports=(t,e)=>({value:t,done:e})},41752(t,e,s){"use strict";var r=s(54525),i=s(11154),o=s(72787);t.exports=r?(t,e,s)=>i.f(t,e,o(1,s)):(t,e,s)=>(t[e]=s,t)},72787(t){"use strict";t.exports=(t,e)=>({enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e})},44849(t,e,s){"use strict";var r=s(54525),i=s(11154),o=s(72787);t.exports=(t,e,s)=>{r?i.f(t,e,o(0,s)):t[e]=s}},79093(t,e,s){"use strict";var r=s(66530),i=s(11154);t.exports=(t,e,s)=>(s.get&&r(s.get,e,{getter:!0}),s.set&&r(s.set,e,{setter:!0}),i.f(t,e,s))},47941(t,e,s){"use strict";var r=s(55468),i=s(11154),o=s(66530),n=s(61486);t.exports=(t,e,s,a)=>{a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(r(s)&&o(s,c,a),a.global)l?t[e]=s:n(e,s);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=s:i.f(t,e,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},61486(t,e,s){"use strict";var r=s(68704),i=Object.defineProperty;t.exports=(t,e)=>{try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(s){r[t]=e}return e}},54525(t,e,s){"use strict";var r=s(11794);t.exports=!r((()=>7!==Object.defineProperty({},1,{get(){return 7}})[1]))},33350(t,e,s){"use strict";var r=s(68704),i=s(56063),o=r.document,n=i(o)&&i(o.createElement);t.exports=t=>n?o.createElement(t):{}},74098(t){"use strict";var e=TypeError;t.exports=t=>{if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},37053(t){"use strict";t.exports="undefined"!=typeof navigator&&navigator.userAgent+""||""},60341(t,e,s){"use strict";var r,i,o=s(68704),n=s(37053),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&4>r[0]?1:+(r[0]+r[1])),!i&&n&&((r=n.match(/Edge\/(\d+)/))&&74>r[1]||(r=n.match(/Chrome\/(\d+)/))&&(i=+r[1])),t.exports=i},40532(t,e,s){"use strict";var r=s(68704),i=s(84369);t.exports=(t,e)=>i(r[t].prototype[e])},36922(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},22829(t,e,s){"use strict";var r=s(68704),i=s(34072).f,o=s(41752),n=s(47941),a=s(61486),l=s(79041),c=s(43721);t.exports=(t,e)=>{var s,u,h,d,p,f=t.target,m=t.global,g=t.stat;if(s=m?r:g?r[f]||a(f,{}):r[f]&&r[f].prototype)for(u in e){if(d=e[u],h=t.dontCallGetSet?(p=i(s,u))&&p.value:s[u],!c(m?u:f+(g?".":"#")+u,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),n(s,u,d,t)}}},11794(t){"use strict";t.exports=t=>{try{return!!t()}catch(t){return!0}}},14150(t,e,s){"use strict";var r=s(38719),i=Function.prototype,o=i.apply,n=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?n.bind(o):function(){return n.apply(o,arguments)})},69661(t,e,s){"use strict";var r=s(55211),i=s(49649),o=s(38719),n=r(r.bind);t.exports=(t,e)=>(i(t),void 0===e?t:o?n(t,e):function(){return t.apply(e,arguments)})},38719(t,e,s){"use strict";var r=s(11794);t.exports=!r((()=>{var t=(()=>{}).bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},31944(t,e,s){"use strict";var r=s(38719),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},84735(t,e,s){"use strict";var r=s(54525),i=s(58898),o=Function.prototype,n=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&!1,c=a&&(!r||r&&n(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},24689(t,e,s){"use strict";var r=s(84369),i=s(49649);t.exports=(t,e,s)=>{try{return r(i(Object.getOwnPropertyDescriptor(t,e)[s]))}catch(t){}}},55211(t,e,s){"use strict";var r=s(96321),i=s(84369);t.exports=t=>{if("Function"===r(t))return i(t)}},84369(t,e,s){"use strict";var r=s(38719),i=Function.prototype,o=i.call,n=r&&i.bind.bind(o,o);t.exports=r?n:t=>function(){return o.apply(t,arguments)}},93572(t,e,s){"use strict";var r=s(68704),i=s(55468);t.exports=function(t,e){return 2>arguments.length?i(s=r[t])?s:void 0:r[t]&&r[t][e];var s}},38994(t,e,s){"use strict";var r=s(12318),i=s(17585),o=s(77630),n=s(24396),a=s(47226)("iterator");t.exports=t=>{if(!o(t))return i(t,a)||i(t,"@@iterator")||n[r(t)]}},50318(t,e,s){"use strict";var r=s(31944),i=s(49649),o=s(79002),n=s(5174),a=s(38994),l=TypeError;t.exports=function(t,e){var s=2>arguments.length?a(t):e;if(i(s))return o(r(s,t));throw new l(n(t)+" is not iterable")}},91918(t,e,s){"use strict";var r=s(84369),i=s(96127),o=s(55468),n=s(96321),a=s(67850),l=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,s=[],r=0;e>r;r++){var c=t[r];"string"==typeof c?l(s,c):"number"!=typeof c&&"Number"!==n(c)&&"String"!==n(c)||l(s,a(c))}var u=s.length,h=!0;return function(t,e){if(h)return h=!1,e;if(i(this))return e;for(var r=0;u>r;r++)if(s[r]===t)return e}}}},17585(t,e,s){"use strict";var r=s(49649),i=s(77630);t.exports=(t,e)=>{var s=t[e];return i(s)?void 0:r(s)}},68704(t,e,s){"use strict";var r=t=>t&&t.Math===Math&&t;t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},58898(t,e,s){"use strict";var r=s(84369),i=s(58860),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||((t,e)=>o(i(t),e))},25220(t){"use strict";t.exports={}},56194(t,e,s){"use strict";var r=s(93572);t.exports=r("document","documentElement")},13126(t,e,s){"use strict";var r=s(54525),i=s(11794),o=s(33350);t.exports=!r&&!i((()=>7!==Object.defineProperty(o("div"),"a",{get(){return 7}}).a))},21072(t,e,s){"use strict";var r=s(84369),i=s(11794),o=s(96321),n=Object,a=r("".split);t.exports=i((()=>!n("z").propertyIsEnumerable(0)))?t=>"String"===o(t)?a(t,""):n(t):n},70181(t,e,s){"use strict";var r=s(84369),i=s(55468),o=s(50662),n=r(Function.toString);i(o.inspectSource)||(o.inspectSource=t=>n(t)),t.exports=o.inspectSource},238(t,e,s){"use strict";var r,i,o,n=s(14041),a=s(68704),l=s(56063),c=s(41752),u=s(58898),h=s(50662),d=s(44840),p=s(25220),f="Object already initialized",m=a.TypeError;if(n||h.state){var g=h.state||(h.state=new(0,a.WeakMap));g.get=g.get,g.has=g.has,g.set=g.set,r=(t,e)=>{if(g.has(t))throw new m(f);return e.facade=t,g.set(t,e),e},i=t=>g.get(t)||{},o=t=>g.has(t)}else{var v=d("state");p[v]=!0,r=(t,e)=>{if(u(t,v))throw new m(f);return e.facade=t,c(t,v,e),e},i=t=>u(t,v)?t[v]:{},o=t=>u(t,v)}t.exports={set:r,get:i,has:o,enforce(t){return o(t)?i(t):r(t,{})},getterFor(t){return e=>{var s;if(!l(e)||(s=i(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return s}}}},96242(t,e,s){"use strict";var r=s(47226),i=s(24396),o=r("iterator"),n=Array.prototype;t.exports=t=>void 0!==t&&(i.Array===t||n[o]===t)},96127(t,e,s){"use strict";var r=s(96321);t.exports=Array.isArray||(t=>"Array"===r(t))},55468(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?t=>"function"==typeof t||t===e:t=>"function"==typeof t},38018(t,e,s){"use strict";var r=s(84369),i=s(11794),o=s(55468),n=s(12318),a=s(93572),l=s(70181),c=()=>{},u=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),p=!h.test(c),f=t=>{if(!o(t))return!1;try{return u(c,[],t),!0}catch(t){return!1}},m=t=>{if(!o(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(h,l(t))}catch(t){return!0}};m.sham=!0,t.exports=!u||i((()=>{var t;return f(f.call)||!f(Object)||!f((()=>{t=!0}))||t}))?m:f},43721(t,e,s){"use strict";var r=s(11794),i=s(55468),o=/#|\.prototype\./,n=(t,e)=>{var s=l[a(t)];return s===u||s!==c&&(i(e)?r(e):!!e)},a=n.normalize=t=>(t+"").replace(o,".").toLowerCase(),l=n.data={},c=n.NATIVE="N",u=n.POLYFILL="P";t.exports=n},77630(t){"use strict";t.exports=t=>null==t},56063(t,e,s){"use strict";var r=s(55468);t.exports=t=>"object"==typeof t?null!==t:r(t)},84200(t,e,s){"use strict";var r=s(56063);t.exports=t=>r(t)||null===t},32470(t){"use strict";t.exports=!1},81264(t,e,s){"use strict";var r=s(93572),i=s(55468),o=s(67618),n=s(16401),a=Object;t.exports=n?t=>"symbol"==typeof t:t=>{var e=r("Symbol");return i(e)&&o(e.prototype,a(t))}},62004(t,e,s){"use strict";var r=s(31944),i=s(79002),o=s(17585);t.exports=(t,e,s)=>{var n,a;i(t);try{if(!(n=o(t,"return"))){if("throw"===e)throw s;return s}n=r(n,t)}catch(t){a=!0,n=t}if("throw"===e)throw s;if(a)throw n;return i(n),s}},89767(t,e,s){"use strict";var r=s(47922).IteratorPrototype,i=s(52713),o=s(72787),n=s(36698),a=s(24396),l=function(){return this};t.exports=(t,e,s,c)=>{var u=e+" Iterator";return t.prototype=i(r,{next:o(+!c,s)}),n(t,u,!1,!0),a[u]=l,t}},33649(t,e,s){"use strict";var r=s(22829),i=s(31944),o=s(32470),n=s(84735),a=s(55468),l=s(89767),c=s(59210),u=s(72478),h=s(36698),d=s(41752),p=s(47941),f=s(47226),m=s(24396),g=s(47922),v=n.PROPER,b=n.CONFIGURABLE,y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=f("iterator"),C="keys",S="values",E="entries",T=function(){return this};t.exports=function(t,e,s,n,f,g,x){l(s,e,n);var I,j,k,L=function(t){if(t===f&&R)return R;if(!_&&t&&t in P)return P[t];switch(t){case C:case S:case E:return function(){return new s(this,t)}}return function(){return new s(this)}},A=e+" Iterator",M=!1,P=t.prototype,z=P[w]||P["@@iterator"]||f&&P[f],R=!_&&z||L(f),N="Array"===e&&P.entries||z;if(N&&(I=c(N.call(new t)))!==Object.prototype&&I.next&&(o||c(I)===y||(u?u(I,y):a(I[w])||p(I,w,T)),h(I,A,!0,!0),o&&(m[A]=T)),v&&f===S&&z&&z.name!==S&&(!o&&b?d(P,"name",S):(M=!0,R=function(){return i(z,this)})),f)if(j={values:L(S),keys:g?R:L(C),entries:L(E)},x)for(k in j)(_||M||!(k in P))&&p(P,k,j[k]);else r({target:e,proto:!0,forced:_||M},j);return o&&!x||P[w]===R||p(P,w,R,{name:f}),m[e]=R,j}},47922(t,e,s){"use strict";var r,i,o,n=s(11794),a=s(55468),l=s(56063),c=s(52713),u=s(59210),h=s(47941),d=s(47226),p=s(32470),f=d("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):m=!0),!l(r)||n((()=>{var t={};return r[f].call(t)!==t}))?r={}:p&&(r=c(r)),a(r[f])||h(r,f,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},24396(t){"use strict";t.exports={}},2701(t,e,s){"use strict";var r=s(72843);t.exports=t=>r(t.length)},66530(t,e,s){"use strict";var r=s(84369),i=s(11794),o=s(55468),n=s(58898),a=s(54525),l=s(84735).CONFIGURABLE,c=s(70181),u=s(238),h=u.enforce,d=u.get,p=String,f=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),b=a&&!i((()=>8!==f((()=>{}),"length",{value:8}).length)),y=(String+"").split("String"),_=t.exports=(t,e,s)=>{"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),s&&s.getter&&(e="get "+e),s&&s.setter&&(e="set "+e),(!n(t,"name")||l&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),b&&s&&n(s,"arity")&&t.length!==s.arity&&f(t,"length",{value:s.arity});try{s&&n(s,"constructor")&&s.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=h(t);return n(r,"source")||(r.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return o(this)&&d(this).source||c(this)}),"toString")},64814(t){"use strict";var e=Math.ceil,s=Math.floor;t.exports=Math.trunc||(t=>{var r=+t;return(r>0?s:e)(r)})},52713(t,e,s){"use strict";var r,i=s(79002),o=s(68126),n=s(36922),a=s(25220),l=s(56194),c=s(33350),u=s(44840),h="prototype",d="script",p=u("IE_PROTO"),f=()=>{},m=t=>"<"+d+">"+t+"</"+d+">",g=t=>{t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=()=>{try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,s;v="undefined"!=typeof document?document.domain&&r?g(r):(e=c("iframe"),s="java"+d+":",e.style.display="none",l.appendChild(e),e.src=s+"",(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):g(r);for(var i=n.length;i--;)delete v[h][n[i]];return v()};a[p]=!0,t.exports=Object.create||((t,e)=>{var s;return null!==t?(f[h]=i(t),s=new f,f[h]=null,s[p]=t):s=v(),void 0===e?s:o.f(s,e)})},68126(t,e,s){"use strict";var r=s(54525),i=s(90739),o=s(11154),n=s(79002),a=s(53324),l=s(14769);e.f=r&&!i?Object.defineProperties:(t,e)=>{n(t);for(var s,r=a(e),i=l(e),c=i.length,u=0;c>u;)o.f(t,s=i[u++],r[s]);return t}},11154(t,e,s){"use strict";var r=s(54525),i=s(13126),o=s(90739),n=s(79002),a=s(92776),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",p="writable";e.f=r?o?(t,e,s)=>{if(n(t),e=a(e),n(s),"function"==typeof t&&"prototype"===e&&"value"in s&&p in s&&!s[p]){var r=u(t,e);r&&r[p]&&(t[e]=s.value,s={configurable:d in s?s[d]:r[d],enumerable:h in s?s[h]:r[h],writable:!1})}return c(t,e,s)}:c:(t,e,s)=>{if(n(t),e=a(e),n(s),i)try{return c(t,e,s)}catch(t){}if("get"in s||"set"in s)throw new l("Accessors not supported");return"value"in s&&(t[e]=s.value),t}},34072(t,e,s){"use strict";var r=s(54525),i=s(31944),o=s(66e3),n=s(72787),a=s(53324),l=s(92776),c=s(58898),u=s(13126),h=Object.getOwnPropertyDescriptor;e.f=r?h:(t,e)=>{if(t=a(t),e=l(e),u)try{return h(t,e)}catch(t){}if(c(t,e))return n(!i(o.f,t,e),t[e])}},23701(t,e,s){"use strict";var r=s(96321),i=s(53324),o=s(17213).f,n=s(85457),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=t=>a&&"Window"===r(t)?(t=>{try{return o(t)}catch(t){return n(a)}})(t):o(i(t))},17213(t,e,s){"use strict";var r=s(55155),i=s(36922).concat("length","prototype");e.f=Object.getOwnPropertyNames||(t=>r(t,i))},89452(t,e){"use strict";e.f=Object.getOwnPropertySymbols},59210(t,e,s){"use strict";var r=s(58898),i=s(55468),o=s(58860),n=s(44840),a=s(18776),l=n("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:t=>{var e=o(t);if(r(e,l))return e[l];var s=e.constructor;return i(s)&&e instanceof s?s.prototype:e instanceof c?u:null}},67618(t,e,s){"use strict";var r=s(84369);t.exports=r({}.isPrototypeOf)},55155(t,e,s){"use strict";var r=s(84369),i=s(58898),o=s(53324),n=s(54962).indexOf,a=s(25220),l=r([].push);t.exports=(t,e)=>{var s,r=o(t),c=0,u=[];for(s in r)!i(a,s)&&i(r,s)&&l(u,s);for(;e.length>c;)i(r,s=e[c++])&&(~n(u,s)||l(u,s));return u}},14769(t,e,s){"use strict";var r=s(55155),i=s(36922);t.exports=Object.keys||(t=>r(t,i))},66e3(t,e){"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!s.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:s},72478(t,e,s){"use strict";var r=s(24689),i=s(56063),o=s(7605),n=s(23785);t.exports=Object.setPrototypeOf||("__proto__"in{}?(()=>{var t,e=!1,s={};try{(t=r(Object.prototype,"__proto__","set"))(s,[]),e=s instanceof Array}catch(t){}return(s,r)=>(o(s),n(r),i(s)?(e?t(s,r):s.__proto__=r,s):s)})():void 0)},46724(t,e,s){"use strict";var r=s(46833),i=s(12318);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},69775(t,e,s){"use strict";var r=s(31944),i=s(55468),o=s(56063),n=TypeError;t.exports=(t,e)=>{var s,a;if("string"===e&&i(s=t.toString)&&!o(a=r(s,t)))return a;if(i(s=t.valueOf)&&!o(a=r(s,t)))return a;if("string"!==e&&i(s=t.toString)&&!o(a=r(s,t)))return a;throw new n("Can't convert object to primitive value")}},42576(t,e,s){"use strict";var r=s(93572),i=s(84369),o=s(17213),n=s(89452),a=s(79002),l=i([].concat);t.exports=r("Reflect","ownKeys")||(t=>{var e=o.f(a(t)),s=n.f;return s?l(e,s(t)):e})},21504(t,e,s){"use strict";var r=s(68704);t.exports=r},7605(t,e,s){"use strict";var r=s(77630),i=TypeError;t.exports=t=>{if(r(t))throw new i("Can't call method on "+t);return t}},36698(t,e,s){"use strict";var r=s(11154).f,i=s(58898),o=s(47226)("toStringTag");t.exports=(t,e,s)=>{t&&!s&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},44840(t,e,s){"use strict";var r=s(27962),i=s(15489),o=r("keys");t.exports=t=>o[t]||(o[t]=i(t))},50662(t,e,s){"use strict";var r=s(32470),i=s(68704),o=s(61486),n="__core-js_shared__",a=t.exports=i[n]||o(n,{});(a.versions||(a.versions=[])).push({version:"3.36.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE",source:"https://github.com/zloirock/core-js"})},27962(t,e,s){"use strict";var r=s(50662);t.exports=(t,e)=>r[t]||(r[t]=e||{})},48692(t,e,s){"use strict";var r=s(84369),i=s(39784),o=s(67850),n=s(7605),a=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=t=>(e,s)=>{var r,u,h=o(n(e)),d=i(s),p=h.length;return 0>d||d>=p?t?"":void 0:55296>(r=l(h,d))||r>56319||d+1===p||56320>(u=l(h,d+1))||u>57343?t?a(h,d):r:t?c(h,d,d+2):u-56320+(r-55296<<10)+65536};t.exports={codeAt:u(!1),charAt:u(!0)}},8464(t,e,s){"use strict";var r=s(60341),i=s(11794),o=s(68704).String;t.exports=!!Object.getOwnPropertySymbols&&!i((()=>{var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&41>r}))},67109(t,e,s){"use strict";var r=s(31944),i=s(93572),o=s(47226),n=s(47941);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,s=e&&e.valueOf,a=o("toPrimitive");e&&!e[a]&&n(e,a,(function(t){return r(s,this)}),{arity:1})}},68097(t,e,s){"use strict";var r=s(8464);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},13619(t,e,s){"use strict";var r=s(39784),i=Math.max,o=Math.min;t.exports=(t,e)=>{var s=r(t);return 0>s?i(s+e,0):o(s,e)}},53324(t,e,s){"use strict";var r=s(21072),i=s(7605);t.exports=t=>r(i(t))},39784(t,e,s){"use strict";var r=s(64814);t.exports=t=>{var e=+t;return e!=e||0===e?0:r(e)}},72843(t,e,s){"use strict";var r=s(39784),i=Math.min;t.exports=t=>{var e=r(t);return e>0?i(e,9007199254740991):0}},58860(t,e,s){"use strict";var r=s(7605),i=Object;t.exports=t=>i(r(t))},18258(t,e,s){"use strict";var r=s(31944),i=s(56063),o=s(81264),n=s(17585),a=s(69775),l=s(47226),c=TypeError,u=l("toPrimitive");t.exports=(t,e)=>{if(!i(t)||o(t))return t;var s,l=n(t,u);if(l){if(void 0===e&&(e="default"),s=r(l,t,e),!i(s)||o(s))return s;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},92776(t,e,s){"use strict";var r=s(18258),i=s(81264);t.exports=t=>{var e=r(t,"string");return i(e)?e:e+""}},46833(t,e,s){"use strict";var r={};r[s(47226)("toStringTag")]="z",t.exports=r+""=="[object z]"},67850(t,e,s){"use strict";var r=s(12318),i=String;t.exports=t=>{if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},5174(t){"use strict";var e=String;t.exports=t=>{try{return e(t)}catch(t){return"Object"}}},15489(t,e,s){"use strict";var r=s(84369),i=0,o=Math.random(),n=r(1..toString);t.exports=t=>"Symbol("+(void 0===t?"":t)+")_"+n(++i+o,36)},16401(t,e,s){"use strict";var r=s(8464);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},90739(t,e,s){"use strict";var r=s(54525),i=s(11794);t.exports=r&&i((()=>42!==Object.defineProperty((()=>{}),"prototype",{value:42,writable:!1}).prototype))},14041(t,e,s){"use strict";var r=s(68704),i=s(55468),o=r.WeakMap;t.exports=i(o)&&/native code/.test(o+"")},44604(t,e,s){"use strict";var r=s(21504),i=s(58898),o=s(25514),n=s(11154).f;t.exports=t=>{var e=r.Symbol||(r.Symbol={});i(e,t)||n(e,t,{value:o.f(t)})}},25514(t,e,s){"use strict";var r=s(47226);e.f=r},47226(t,e,s){"use strict";var r=s(68704),i=s(27962),o=s(58898),n=s(15489),a=s(8464),l=s(16401),c=r.Symbol,u=i("wks"),h=l?c.for||c:c&&c.withoutSetter||n;t.exports=t=>(o(u,t)||(u[t]=a&&o(c,t)?c[t]:h("Symbol."+t)),u[t])},92059(t,e,s){"use strict";var r=s(22829),i=s(11794),o=s(96127),n=s(56063),a=s(58860),l=s(2701),c=s(74098),u=s(44849),h=s(24686),d=s(16074),p=s(47226),f=s(60341),m=p("isConcatSpreadable"),g=f>=51||!i((()=>{var t=[];return t[m]=!1,t.concat()[0]!==t})),v=t=>{if(!n(t))return!1;var e=t[m];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat(t){var e,s,r,i,o,n=a(this),d=h(n,0),p=0;for(e=-1,r=arguments.length;r>e;e++)if(v(o=-1===e?n:arguments[e]))for(i=l(o),c(p+i),s=0;i>s;s++,p++)s in o&&u(d,p,o[s]);else c(p+1),u(d,p++,o);return d.length=p,d}})},49445(t,e,s){"use strict";var r=s(22829),i=s(84536).findIndex,o=s(1922),n="findIndex",a=!0;n in[]&&[,][n]((()=>{a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(n)},69507(t,e,s){"use strict";var r=s(22829),i=s(91531);r({target:"Array",stat:!0,forced:!s(60947)((t=>{Array.from(t)}))},{from:i})},15159(t,e,s){"use strict";var r=s(22829),i=s(93572),o=s(14150),n=s(31944),a=s(84369),l=s(11794),c=s(55468),u=s(81264),h=s(85457),d=s(91918),p=s(8464),f=String,m=i("JSON","stringify"),g=a(/./.exec),v=a("".charAt),b=a("".charCodeAt),y=a("".replace),_=a(1..toString),w=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,E=!p||l((()=>{var t=i("Symbol")("stringify detection");return"[null]"!==m([t])||"{}"!==m({a:t})||"{}"!==m(Object(t))})),T=l((()=>'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead"))),x=function(t,e){var s=h(arguments),r=d(e);if(c(r)||void 0!==t&&!u(t))return s[1]=function(t,e){if(c(r)&&(e=n(r,this,f(t),e)),!u(e))return e},o(m,null,s)},I=(t,e,s)=>{var r=v(s,e-1),i=v(s,e+1);return g(C,t)&&!g(S,i)||g(S,t)&&!g(C,r)?"\\u"+_(b(t,0),16):t};m&&r({target:"JSON",stat:!0,arity:3,forced:E||T},{stringify(t,e,s){var r=h(arguments),i=o(E?x:m,null,r);return T&&"string"==typeof i?y(i,w,I):i}})},57914(t,e,s){"use strict";var r=s(68704);s(36698)(r.JSON,"JSON",!0)},20926(t,e,s){"use strict";s(36698)(Math,"Math",!0)},43130(t,e,s){"use strict";var r=s(22829),i=s(8464),o=s(11794),n=s(89452),a=s(58860);r({target:"Object",stat:!0,forced:!i||o((()=>{n.f(1)}))},{getOwnPropertySymbols(t){var e=n.f;return e?e(a(t)):[]}})},7222(t,e,s){"use strict";var r=s(46833),i=s(47941),o=s(46724);r||i(Object.prototype,"toString",o,{unsafe:!0})},83775(t,e,s){"use strict";var r=s(22829),i=s(68704),o=s(36698);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},95491(t,e,s){"use strict";var r=s(48692).charAt,i=s(67850),o=s(238),n=s(33649),a=s(11392),l="String Iterator",c=o.set,u=o.getterFor(l);n(String,"String",(function(t){c(this,{type:l,string:i(t),index:0})}),(function(){var t,e=u(this),s=e.string,i=e.index;return s.length>i?(t=r(s,i),e.index+=t.length,a(t,!1)):a(void 0,!0)}))},10695(t,e,s){"use strict";s(44604)("asyncIterator")},2624(t,e,s){"use strict";var r=s(22829),i=s(68704),o=s(31944),n=s(84369),a=s(32470),l=s(54525),c=s(8464),u=s(11794),h=s(58898),d=s(67618),p=s(79002),f=s(53324),m=s(92776),g=s(67850),v=s(72787),b=s(52713),y=s(14769),_=s(17213),w=s(23701),C=s(89452),S=s(34072),E=s(11154),T=s(68126),x=s(66e3),I=s(47941),j=s(79093),k=s(27962),L=s(44840),A=s(25220),M=s(15489),P=s(47226),z=s(25514),R=s(44604),N=s(67109),O=s(36698),q=s(238),D=s(84536).forEach,B=L("hidden"),J="Symbol",F="prototype",H=q.set,$=q.getterFor(J),W=Object[F],V=i.Symbol,Y=V&&V[F],U=i.RangeError,G=i.TypeError,K=i.QObject,X=S.f,Z=E.f,Q=w.f,tt=x.f,et=n([].push),st=k("symbols"),rt=k("op-symbols"),it=k("wks"),ot=!K||!K[F]||!K[F].findChild,nt=(t,e,s)=>{var r=X(W,e);r&&delete W[e],Z(t,e,s),r&&t!==W&&Z(W,e,r)},at=l&&u((function(){return 7!==b(Z({},"a",{get(){return Z(this,"a",{value:7}).a}})).a}))?nt:Z,lt=(t,e)=>{var s=st[t]=b(Y);return H(s,{type:J,tag:t,description:e}),l||(s.description=e),s},ct=(t,e,s)=>{t===W&&ct(rt,e,s),p(t);var r=m(e);return p(s),h(st,r)?(s.enumerable?(h(t,B)&&t[B][r]&&(t[B][r]=!1),s=b(s,{enumerable:v(0,!1)})):(h(t,B)||Z(t,B,v(1,b(null))),t[B][r]=!0),at(t,r,s)):Z(t,r,s)},ut=(t,e)=>{p(t);var s=f(e),r=y(s).concat(ft(s));return D(r,(e=>{l&&!o(ht,s,e)||ct(t,e,s[e])})),t},ht=function(t){var e=m(t),s=o(tt,this,e);return!(this===W&&h(st,e)&&!h(rt,e))&&(!(s||!h(this,e)||!h(st,e)||h(this,B)&&this[B][e])||s)},dt=(t,e)=>{var s=f(t),r=m(e);if(s!==W||!h(st,r)||h(rt,r)){var i=X(s,r);return!i||!h(st,r)||h(s,B)&&s[B][r]||(i.enumerable=!0),i}},pt=t=>{var e=Q(f(t)),s=[];return D(e,(t=>{h(st,t)||h(A,t)||et(s,t)})),s},ft=t=>{var e=t===W,s=Q(e?rt:f(t)),r=[];return D(s,(t=>{!h(st,t)||e&&!h(W,t)||et(r,st[t])})),r};c||(V=function(){if(d(Y,this))throw new G("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=M(t),s=function(t){var r=void 0===this?i:this;r===W&&o(s,rt,t),h(r,B)&&h(r[B],e)&&(r[B][e]=!1);var n=v(1,t);try{at(r,e,n)}catch(t){if(!(t instanceof U))throw t;nt(r,e,n)}};return l&&ot&&at(W,e,{configurable:!0,set:s}),lt(e,t)},I(Y=V[F],"toString",(function(){return $(this).tag})),I(V,"withoutSetter",(t=>lt(M(t),t))),x.f=ht,E.f=ct,T.f=ut,S.f=dt,_.f=w.f=pt,C.f=ft,z.f=t=>lt(P(t),t),l&&(j(Y,"description",{configurable:!0,get(){return $(this).description}}),a||I(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),D(y(it),(t=>{R(t)})),r({target:J,stat:!0,forced:!c},{useSetter(){ot=!0},useSimple(){ot=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create(t,e){return void 0===e?b(t):ut(b(t),e)},defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:dt}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt}),N(),O(V,J),A[B]=!0},62630(t,e,s){"use strict";var r=s(22829),i=s(54525),o=s(68704),n=s(84369),a=s(58898),l=s(55468),c=s(67618),u=s(67850),h=s(79093),d=s(79041),p=o.Symbol,f=p&&p.prototype;if(i&&l(p)&&(!("description"in f)||void 0!==p().description)){var m={},g=function(){var t=1>arguments.length||void 0===arguments[0]?void 0:u(arguments[0]),e=c(f,this)?new p(t):void 0===t?p():p(t);return""===t&&(m[e]=!0),e};d(g,p),g.prototype=f,f.constructor=g;var v=p("description detection")+""=="Symbol(description detection)",b=n(f.valueOf),y=n(f.toString),_=/^Symbol\((.*)\)[^)]+$/,w=n("".replace),C=n("".slice);h(f,"description",{configurable:!0,get(){var t=b(this);if(a(m,t))return"";var e=y(t),s=v?C(e,7,-1):w(e,_,"$1");return""===s?void 0:s}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},18323(t,e,s){"use strict";var r=s(22829),i=s(93572),o=s(58898),n=s(67850),a=s(27962),l=s(68097),c=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for(t){var e=n(t);if(o(c,e))return c[e];var s=i("Symbol")(e);return c[e]=s,u[s]=e,s}})},4282(t,e,s){"use strict";s(44604)("hasInstance")},38163(t,e,s){"use strict";s(44604)("isConcatSpreadable")},86912(t,e,s){"use strict";s(44604)("iterator")},88598(t,e,s){"use strict";s(2624),s(18323),s(87397),s(15159),s(43130)},87397(t,e,s){"use strict";var r=s(22829),i=s(58898),o=s(81264),n=s(5174),a=s(27962),l=s(68097),c=a("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor(t){if(!o(t))throw new TypeError(n(t)+" is not a symbol");if(i(c,t))return c[t]}})},94811(t,e,s){"use strict";s(44604)("matchAll")},1957(t,e,s){"use strict";s(44604)("match")},89580(t,e,s){"use strict";s(44604)("replace")},40582(t,e,s){"use strict";s(44604)("search")},80294(t,e,s){"use strict";s(44604)("species")},19644(t,e,s){"use strict";s(44604)("split")},28619(t,e,s){"use strict";var r=s(44604),i=s(67109);r("toPrimitive"),i()},76880(t,e,s){"use strict";var r=s(93572),i=s(44604),o=s(36698);i("toStringTag"),o(r("Symbol"),"Symbol")},9163(t,e,s){"use strict";s(44604)("unscopables")},31635(t,e,s){"use strict";function r(t,e,s,r){var i,o=arguments.length,n=3>o?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(n=(3>o?i(n):o>3?i(e,s,n):i(e,s))||n);return o>3&&n&&Object.defineProperty(e,s,n),n}s.d(e,{Cg(){return r}}),"function"==typeof SuppressedError&&SuppressedError}},s={};function r(t){var i=s[t];if(void 0!==i)return i.exports;var o=s[t]={exports:{}};return e[t].call(o.exports,o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var s in e)r.o(e,s)&&!r.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.r(i),r.d(i,{CommitMode(){return u},Jodit(){return a.x}});var t=r(9823),e=(r(88222),r(17352)),s=r(22664),o=r(37435),n=r(79721),a=r(46173),l=r(74470);"undefined"!=typeof process&&"es5"===e.ES&&"undefined"!=typeof window&&r(19005),Object.keys(e).forEach((t=>{a.x[t]=e[t]}));const c=t=>"__esModule"!==t;Object.keys(n).filter(c).forEach((t=>{o.Icon.set(t.replace("_","-"),n[t])})),Object.keys(o).filter(c).forEach((e=>{const s=o[e],r=(0,t.Tn)(s.prototype?.className)?s.prototype.className():e;(0,t.Kg)(r)&&(a.x.modules[r]=s)})),Object.keys(s).filter(c).forEach((t=>{a.x.decorators[t]=s[t]})),["Confirm","Alert","Prompt"].forEach((t=>{a.x[t]=o[t]})),Object.keys(l.A).filter(c).forEach((t=>{a.x.lang[t]=l.A[t]}));class u{}})(),i}()}));