argous 1.2.202 → 1.2.204

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 (426) hide show
  1. package/dist/components/ConfirmModal/ModalProvider.d.ts +1 -1
  2. package/dist/components/Editor/Events.d.ts +9 -7
  3. package/dist/components/Editor/Events.js +0 -7
  4. package/dist/components/Editor/ScriptLoader2.d.ts +10 -0
  5. package/dist/components/Editor/ScriptLoader2.js +146 -0
  6. package/dist/components/Editor/TinyMCE.d.ts +1 -8
  7. package/dist/components/Editor/TinyMCE.js +2 -10
  8. package/dist/components/Editor/Utils.d.ts +2 -7
  9. package/dist/components/Editor/Utils.js +29 -9
  10. package/dist/components/Editor/components/Editor.d.ts +17 -16
  11. package/dist/components/Editor/components/Editor.js +94 -51
  12. package/dist/components/Editor/components/EditorPropTypes.d.ts +1 -8
  13. package/dist/components/Editor/components/EditorPropTypes.js +19 -9
  14. package/dist/components/Editor/index.d.ts +2 -9
  15. package/dist/components/Editor/index.js +0 -7
  16. package/dist/components/Editor/skins/content/dark/content.d.ts +0 -0
  17. package/dist/components/Editor/skins/content/dark/content.js +3 -0
  18. package/dist/components/Editor/skins/content/default/content.d.ts +0 -0
  19. package/dist/components/Editor/skins/content/default/content.js +3 -0
  20. package/dist/components/Editor/skins/content/document/content.d.ts +0 -0
  21. package/dist/components/Editor/skins/content/document/content.js +3 -0
  22. package/dist/components/Editor/skins/content/tinymce-5/content.d.ts +0 -0
  23. package/dist/components/Editor/skins/content/tinymce-5/content.js +3 -0
  24. package/dist/components/Editor/skins/content/tinymce-5-dark/content.d.ts +0 -0
  25. package/dist/components/Editor/skins/content/tinymce-5-dark/content.js +3 -0
  26. package/dist/components/Editor/skins/content/writer/content.d.ts +0 -0
  27. package/dist/components/Editor/skins/content/writer/content.js +3 -0
  28. package/dist/components/Editor/skins/ui/oxide/content.d.ts +0 -0
  29. package/dist/components/Editor/skins/ui/oxide/content.inline.d.ts +0 -0
  30. package/dist/components/Editor/skins/ui/oxide/content.inline.js +3 -0
  31. package/dist/components/Editor/skins/ui/oxide/content.js +3 -0
  32. package/dist/components/Editor/skins/ui/oxide/skin.d.ts +0 -0
  33. package/dist/components/Editor/skins/ui/oxide/skin.js +3 -0
  34. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.d.ts +0 -0
  35. package/dist/components/Editor/skins/ui/oxide/skin.shadowdom.js +3 -0
  36. package/dist/components/Editor/skins/ui/oxide-dark/content.d.ts +0 -0
  37. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.d.ts +0 -0
  38. package/dist/components/Editor/skins/ui/oxide-dark/content.inline.js +3 -0
  39. package/dist/components/Editor/skins/ui/oxide-dark/content.js +3 -0
  40. package/dist/components/Editor/skins/ui/oxide-dark/skin.d.ts +0 -0
  41. package/dist/components/Editor/skins/ui/oxide-dark/skin.js +3 -0
  42. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.d.ts +0 -0
  43. package/dist/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +3 -0
  44. package/dist/components/Editor/skins/ui/tinymce-5/content.d.ts +0 -0
  45. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.d.ts +0 -0
  46. package/dist/components/Editor/skins/ui/tinymce-5/content.inline.js +3 -0
  47. package/dist/components/Editor/skins/ui/tinymce-5/content.js +3 -0
  48. package/dist/components/Editor/skins/ui/tinymce-5/skin.d.ts +0 -0
  49. package/dist/components/Editor/skins/ui/tinymce-5/skin.js +3 -0
  50. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.d.ts +0 -0
  51. package/dist/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +3 -0
  52. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.d.ts +0 -0
  53. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.d.ts +0 -0
  54. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +3 -0
  55. package/dist/components/Editor/skins/ui/tinymce-5-dark/content.js +3 -0
  56. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.d.ts +0 -0
  57. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.js +3 -0
  58. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.d.ts +0 -0
  59. package/dist/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +3 -0
  60. package/dist/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  61. package/lib/components/Editor/Events.ts +9 -8
  62. package/lib/components/Editor/ScriptLoader2.ts +161 -0
  63. package/lib/components/Editor/TinyMCE.ts +2 -12
  64. package/lib/components/Editor/Utils.ts +25 -8
  65. package/lib/components/Editor/components/Editor.tsx +102 -79
  66. package/lib/components/Editor/components/EditorPropTypes.ts +21 -12
  67. package/lib/components/Editor/index.tsx +2 -10
  68. package/lib/components/Editor/skins/content/dark/content.js +2 -0
  69. package/lib/components/Editor/skins/content/dark/content.min.css +1 -8
  70. package/lib/components/Editor/skins/content/default/content.js +2 -0
  71. package/lib/components/Editor/skins/content/default/content.min.css +0 -7
  72. package/lib/components/Editor/skins/content/document/content.js +2 -0
  73. package/lib/components/Editor/skins/content/document/content.min.css +0 -7
  74. package/lib/components/Editor/skins/content/tinymce-5/content.js +2 -0
  75. package/lib/components/Editor/skins/content/tinymce-5/content.min.css +1 -0
  76. package/lib/components/Editor/skins/content/tinymce-5-dark/content.js +2 -0
  77. package/lib/components/Editor/skins/content/tinymce-5-dark/content.min.css +1 -0
  78. package/lib/components/Editor/skins/content/writer/content.js +2 -0
  79. package/lib/components/Editor/skins/content/writer/content.min.css +0 -7
  80. package/lib/components/Editor/skins/ui/oxide/content.inline.js +2 -0
  81. package/lib/components/Editor/skins/ui/oxide/content.inline.min.css +1 -0
  82. package/lib/components/Editor/skins/ui/oxide/content.js +2 -0
  83. package/lib/components/Editor/skins/ui/oxide/content.min.css +1 -0
  84. package/lib/components/Editor/skins/ui/oxide/skin.js +2 -0
  85. package/lib/components/Editor/skins/ui/oxide/skin.min.css +1 -0
  86. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.js +2 -0
  87. package/lib/components/Editor/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  88. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.js +2 -0
  89. package/lib/components/Editor/skins/ui/oxide-dark/content.inline.min.css +1 -0
  90. package/lib/components/Editor/skins/ui/oxide-dark/content.js +2 -0
  91. package/lib/components/Editor/skins/ui/oxide-dark/content.min.css +1 -0
  92. package/lib/components/Editor/skins/ui/oxide-dark/skin.js +2 -0
  93. package/lib/components/Editor/skins/ui/oxide-dark/skin.min.css +1 -0
  94. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  95. package/lib/components/Editor/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  96. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.js +2 -0
  97. package/lib/components/Editor/skins/ui/tinymce-5/content.inline.min.css +1 -0
  98. package/lib/components/Editor/skins/ui/tinymce-5/content.js +2 -0
  99. package/lib/components/Editor/skins/ui/tinymce-5/content.min.css +1 -0
  100. package/lib/components/Editor/skins/ui/tinymce-5/skin.js +2 -0
  101. package/lib/components/Editor/skins/ui/tinymce-5/skin.min.css +1 -0
  102. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  103. package/lib/components/Editor/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  104. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  105. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  106. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.js +2 -0
  107. package/lib/components/Editor/skins/ui/tinymce-5-dark/content.min.css +1 -0
  108. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.js +2 -0
  109. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  110. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  111. package/lib/components/Editor/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  112. package/lib/components/Editor/tinymce/README.md +24 -14
  113. package/lib/components/Editor/tinymce/icons/default/icons.js +185 -163
  114. package/lib/components/Editor/tinymce/icons/default/icons.min.js +1 -1
  115. package/lib/components/Editor/tinymce/langs/README.md +1 -1
  116. package/lib/components/Editor/tinymce/license.txt +21 -504
  117. package/lib/components/Editor/tinymce/models/dom/model.js +8040 -0
  118. package/lib/components/Editor/tinymce/models/dom/model.min.js +4 -0
  119. package/lib/components/Editor/tinymce/plugins/accordion/plugin.js +1054 -0
  120. package/lib/components/Editor/tinymce/plugins/accordion/plugin.min.js +4 -0
  121. package/lib/components/Editor/tinymce/plugins/advlist/plugin.js +187 -208
  122. package/lib/components/Editor/tinymce/plugins/advlist/plugin.min.js +2 -7
  123. package/lib/components/Editor/tinymce/plugins/anchor/plugin.js +82 -84
  124. package/lib/components/Editor/tinymce/plugins/anchor/plugin.min.js +2 -7
  125. package/lib/components/Editor/tinymce/plugins/autolink/plugin.js +210 -167
  126. package/lib/components/Editor/tinymce/plugins/autolink/plugin.min.js +2 -7
  127. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.js +118 -97
  128. package/lib/components/Editor/tinymce/plugins/autoresize/plugin.min.js +2 -7
  129. package/lib/components/Editor/tinymce/plugins/autosave/plugin.js +129 -108
  130. package/lib/components/Editor/tinymce/plugins/autosave/plugin.min.js +2 -7
  131. package/lib/components/Editor/tinymce/plugins/charmap/plugin.js +285 -333
  132. package/lib/components/Editor/tinymce/plugins/charmap/plugin.min.js +2 -7
  133. package/lib/components/Editor/tinymce/plugins/code/plugin.js +19 -26
  134. package/lib/components/Editor/tinymce/plugins/code/plugin.min.js +2 -7
  135. package/lib/components/Editor/tinymce/plugins/codesample/plugin.js +2225 -2094
  136. package/lib/components/Editor/tinymce/plugins/codesample/plugin.min.js +2 -7
  137. package/lib/components/Editor/tinymce/plugins/directionality/plugin.js +318 -243
  138. package/lib/components/Editor/tinymce/plugins/directionality/plugin.min.js +2 -7
  139. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -9424
  140. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -1
  141. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.js +1 -9423
  142. package/lib/components/Editor/tinymce/plugins/emoticons/js/emojis.min.js +1 -1
  143. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.js +406 -416
  144. package/lib/components/Editor/tinymce/plugins/emoticons/plugin.min.js +2 -7
  145. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.js +821 -604
  146. package/lib/components/Editor/tinymce/plugins/fullscreen/plugin.min.js +2 -7
  147. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
  148. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
  149. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
  150. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
  151. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
  152. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
  153. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
  154. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
  155. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
  156. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
  157. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
  158. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
  159. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
  160. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
  161. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
  162. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
  163. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
  164. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
  165. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
  166. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
  167. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
  168. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
  169. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
  170. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
  171. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
  172. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
  173. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
  174. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
  175. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
  176. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
  177. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
  178. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
  179. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
  180. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
  181. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
  182. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
  183. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
  184. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
  185. package/lib/components/Editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
  186. package/lib/components/Editor/tinymce/plugins/help/plugin.js +428 -403
  187. package/lib/components/Editor/tinymce/plugins/help/plugin.min.js +2 -7
  188. package/lib/components/Editor/tinymce/plugins/image/plugin.js +887 -1043
  189. package/lib/components/Editor/tinymce/plugins/image/plugin.min.js +2 -7
  190. package/lib/components/Editor/tinymce/plugins/importcss/plugin.js +163 -162
  191. package/lib/components/Editor/tinymce/plugins/importcss/plugin.min.js +2 -7
  192. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.js +101 -91
  193. package/lib/components/Editor/tinymce/plugins/insertdatetime/plugin.min.js +2 -7
  194. package/lib/components/Editor/tinymce/plugins/link/plugin.js +739 -784
  195. package/lib/components/Editor/tinymce/plugins/link/plugin.min.js +2 -7
  196. package/lib/components/Editor/tinymce/plugins/lists/plugin.js +1282 -1396
  197. package/lib/components/Editor/tinymce/plugins/lists/plugin.min.js +2 -7
  198. package/lib/components/Editor/tinymce/plugins/media/plugin.js +641 -806
  199. package/lib/components/Editor/tinymce/plugins/media/plugin.min.js +2 -7
  200. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.js +76 -54
  201. package/lib/components/Editor/tinymce/plugins/nonbreaking/plugin.min.js +2 -7
  202. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.js +58 -46
  203. package/lib/components/Editor/tinymce/plugins/pagebreak/plugin.min.js +2 -7
  204. package/lib/components/Editor/tinymce/plugins/preview/plugin.js +39 -69
  205. package/lib/components/Editor/tinymce/plugins/preview/plugin.min.js +2 -7
  206. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.js +307 -349
  207. package/lib/components/Editor/tinymce/plugins/quickbars/plugin.min.js +2 -7
  208. package/lib/components/Editor/tinymce/plugins/save/plugin.js +50 -51
  209. package/lib/components/Editor/tinymce/plugins/save/plugin.min.js +2 -7
  210. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.js +517 -587
  211. package/lib/components/Editor/tinymce/plugins/searchreplace/plugin.min.js +2 -7
  212. package/lib/components/Editor/tinymce/plugins/table/plugin.js +2666 -10142
  213. package/lib/components/Editor/tinymce/plugins/table/plugin.min.js +2 -7
  214. package/lib/components/Editor/tinymce/plugins/template/plugin.js +403 -413
  215. package/lib/components/Editor/tinymce/plugins/template/plugin.min.js +2 -7
  216. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.js +42 -48
  217. package/lib/components/Editor/tinymce/plugins/visualblocks/plugin.min.js +2 -7
  218. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.js +352 -333
  219. package/lib/components/Editor/tinymce/plugins/visualchars/plugin.min.js +2 -7
  220. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.js +184 -195
  221. package/lib/components/Editor/tinymce/plugins/wordcount/plugin.min.js +2 -7
  222. package/lib/components/Editor/tinymce/skins/content/dark/content.css +2 -8
  223. package/lib/components/Editor/tinymce/skins/content/dark/content.js +2 -0
  224. package/lib/components/Editor/tinymce/skins/content/dark/content.js.map +1 -0
  225. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css +2 -8
  226. package/lib/components/Editor/tinymce/skins/content/dark/content.min.css.map +1 -1
  227. package/lib/components/Editor/tinymce/skins/content/default/content.css +0 -6
  228. package/lib/components/Editor/tinymce/skins/content/default/content.js +2 -0
  229. package/lib/components/Editor/tinymce/skins/content/default/content.js.map +1 -0
  230. package/lib/components/Editor/tinymce/skins/content/default/content.min.css +1 -7
  231. package/lib/components/Editor/tinymce/skins/content/default/content.min.css.map +1 -1
  232. package/lib/components/Editor/tinymce/skins/content/document/content.css +0 -6
  233. package/lib/components/Editor/tinymce/skins/content/document/content.js +2 -0
  234. package/lib/components/Editor/tinymce/skins/content/document/content.js.map +1 -0
  235. package/lib/components/Editor/tinymce/skins/content/document/content.min.css +0 -6
  236. package/lib/components/Editor/tinymce/skins/content/document/content.min.css.map +1 -1
  237. package/lib/components/Editor/{skins/content/default → tinymce/skins/content/tinymce-5}/content.css +0 -6
  238. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js +2 -0
  239. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.js.map +1 -0
  240. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css +2 -0
  241. package/lib/components/Editor/tinymce/skins/content/tinymce-5/content.min.css.map +1 -0
  242. package/lib/components/Editor/{skins/content/dark → tinymce/skins/content/tinymce-5-dark}/content.css +1 -7
  243. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
  244. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.js.map +1 -0
  245. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css +2 -0
  246. package/lib/components/Editor/tinymce/skins/content/tinymce-5-dark/content.min.css.map +1 -0
  247. package/lib/components/Editor/tinymce/skins/content/writer/content.css +0 -6
  248. package/lib/components/Editor/tinymce/skins/content/writer/content.js +2 -0
  249. package/lib/components/Editor/tinymce/skins/content/writer/content.js.map +1 -0
  250. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css +0 -6
  251. package/lib/components/Editor/tinymce/skins/content/writer/content.min.css.map +1 -1
  252. package/lib/components/Editor/tinymce/skins/ui/oxide/content.css +74 -21
  253. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.css +74 -21
  254. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
  255. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.js.map +1 -0
  256. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -7
  257. package/lib/components/Editor/tinymce/skins/ui/oxide/content.inline.min.css.map +1 -1
  258. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js +2 -0
  259. package/lib/components/Editor/tinymce/skins/ui/oxide/content.js.map +1 -0
  260. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css +1 -7
  261. package/lib/components/Editor/tinymce/skins/ui/oxide/content.min.css.map +1 -1
  262. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.css +1131 -402
  263. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js +2 -0
  264. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.js.map +1 -0
  265. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css +1 -7
  266. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.min.css.map +1 -1
  267. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.css +8 -15
  268. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
  269. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.js.map +1 -0
  270. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -7
  271. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css.map +1 -1
  272. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.css +72 -20
  273. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.css +74 -21
  274. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
  275. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.js.map +1 -0
  276. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -7
  277. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.inline.min.css.map +1 -1
  278. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
  279. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.js.map +1 -0
  280. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -7
  281. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.min.css.map +1 -1
  282. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.css +1155 -423
  283. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
  284. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.js.map +1 -0
  285. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -7
  286. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.min.css.map +1 -1
  287. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +8 -15
  288. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  289. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js.map +1 -0
  290. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
  291. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css.map +1 -1
  292. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.css +75 -22
  293. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/content.inline.css +75 -22
  294. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
  295. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.js.map +1 -0
  296. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +2 -0
  297. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.inline.min.css.map +1 -0
  298. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
  299. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.js.map +1 -0
  300. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css +2 -0
  301. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/content.min.css.map +1 -0
  302. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.css +1261 -438
  303. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
  304. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.js.map +1 -0
  305. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css +2 -0
  306. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.min.css.map +1 -0
  307. package/lib/components/Editor/{skins/ui/default → tinymce/skins/ui/tinymce-5}/skin.shadowdom.css +8 -15
  308. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  309. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js.map +1 -0
  310. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +2 -0
  311. package/lib/components/Editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css.map +1 -0
  312. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.css +73 -21
  313. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/content.inline.css +75 -22
  314. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  315. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js.map +1 -0
  316. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +2 -0
  317. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css.map +1 -0
  318. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
  319. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.js.map +1 -0
  320. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +2 -0
  321. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/content.min.css.map +1 -0
  322. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.css +1244 -421
  323. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
  324. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.js.map +1 -0
  325. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +2 -0
  326. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css.map +1 -0
  327. package/lib/components/Editor/{skins/ui/dark → tinymce/skins/ui/tinymce-5-dark}/skin.shadowdom.css +8 -15
  328. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  329. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js.map +1 -0
  330. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +2 -0
  331. package/lib/components/Editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css.map +1 -0
  332. package/lib/components/Editor/tinymce/themes/silver/theme.js +23228 -24955
  333. package/lib/components/Editor/tinymce/themes/silver/theme.min.js +2 -7
  334. package/lib/components/Editor/tinymce/tinymce.d.ts +1722 -1447
  335. package/lib/components/Editor/tinymce/tinymce.js +23668 -22018
  336. package/lib/components/Editor/tinymce/tinymce.min.js +2 -30104
  337. package/package.json +1 -1
  338. package/lib/components/Editor/ScriptLoader.ts +0 -96
  339. package/lib/components/Editor/skins/content/dark/content.min.css.map +0 -1
  340. package/lib/components/Editor/skins/content/default/content.min.css.map +0 -1
  341. package/lib/components/Editor/skins/content/document/content.css +0 -72
  342. package/lib/components/Editor/skins/content/document/content.min.css.map +0 -1
  343. package/lib/components/Editor/skins/content/writer/content.css +0 -68
  344. package/lib/components/Editor/skins/content/writer/content.min.css.map +0 -1
  345. package/lib/components/Editor/skins/ui/dark/content.inline.min.css +0 -8
  346. package/lib/components/Editor/skins/ui/dark/content.inline.min.css.map +0 -1
  347. package/lib/components/Editor/skins/ui/dark/content.min.css +0 -8
  348. package/lib/components/Editor/skins/ui/dark/content.min.css.map +0 -1
  349. package/lib/components/Editor/skins/ui/dark/content.mobile.css +0 -29
  350. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css +0 -8
  351. package/lib/components/Editor/skins/ui/dark/content.mobile.min.css.map +0 -1
  352. package/lib/components/Editor/skins/ui/dark/fonts/tinymce-mobile.woff +0 -0
  353. package/lib/components/Editor/skins/ui/dark/skin.min.css +0 -8
  354. package/lib/components/Editor/skins/ui/dark/skin.min.css.map +0 -1
  355. package/lib/components/Editor/skins/ui/dark/skin.mobile.css +0 -673
  356. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css +0 -8
  357. package/lib/components/Editor/skins/ui/dark/skin.mobile.min.css.map +0 -1
  358. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css +0 -8
  359. package/lib/components/Editor/skins/ui/dark/skin.shadowdom.min.css.map +0 -1
  360. package/lib/components/Editor/skins/ui/default/content.inline.min.css +0 -8
  361. package/lib/components/Editor/skins/ui/default/content.inline.min.css.map +0 -1
  362. package/lib/components/Editor/skins/ui/default/content.min.css +0 -8
  363. package/lib/components/Editor/skins/ui/default/content.min.css.map +0 -1
  364. package/lib/components/Editor/skins/ui/default/content.mobile.css +0 -29
  365. package/lib/components/Editor/skins/ui/default/content.mobile.min.css +0 -8
  366. package/lib/components/Editor/skins/ui/default/content.mobile.min.css.map +0 -1
  367. package/lib/components/Editor/skins/ui/default/fonts/tinymce-mobile.woff +0 -0
  368. package/lib/components/Editor/skins/ui/default/skin.min.css +0 -8
  369. package/lib/components/Editor/skins/ui/default/skin.min.css.map +0 -1
  370. package/lib/components/Editor/skins/ui/default/skin.mobile.css +0 -673
  371. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css +0 -8
  372. package/lib/components/Editor/skins/ui/default/skin.mobile.min.css.map +0 -1
  373. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css +0 -8
  374. package/lib/components/Editor/skins/ui/default/skin.shadowdom.min.css.map +0 -1
  375. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/fonts/tinymce-mobile.woff +0 -0
  376. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.css +0 -1641
  377. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css +0 -8
  378. package/lib/components/Editor/skins/ui/plugin-tinycomments-tinymce4/plugin-tinycomments-tinymce4.min.css.map +0 -1
  379. package/lib/components/Editor/tinymce/jquery.tinymce.min.js +0 -92
  380. package/lib/components/Editor/tinymce/langs/pt_BR.js +0 -419
  381. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.js +0 -99
  382. package/lib/components/Editor/tinymce/plugins/bbcode/plugin.min.js +0 -9
  383. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.js +0 -22
  384. package/lib/components/Editor/tinymce/plugins/colorpicker/plugin.min.js +0 -9
  385. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.js +0 -22
  386. package/lib/components/Editor/tinymce/plugins/contextmenu/plugin.min.js +0 -9
  387. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.js +0 -544
  388. package/lib/components/Editor/tinymce/plugins/fullpage/plugin.min.js +0 -9
  389. package/lib/components/Editor/tinymce/plugins/hr/plugin.js +0 -46
  390. package/lib/components/Editor/tinymce/plugins/hr/plugin.min.js +0 -9
  391. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.js +0 -1354
  392. package/lib/components/Editor/tinymce/plugins/imagetools/plugin.min.js +0 -9
  393. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.js +0 -199
  394. package/lib/components/Editor/tinymce/plugins/legacyoutput/plugin.min.js +0 -9
  395. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.js +0 -117
  396. package/lib/components/Editor/tinymce/plugins/noneditable/plugin.min.js +0 -9
  397. package/lib/components/Editor/tinymce/plugins/paste/plugin.js +0 -1764
  398. package/lib/components/Editor/tinymce/plugins/paste/plugin.min.js +0 -9
  399. package/lib/components/Editor/tinymce/plugins/print/plugin.js +0 -53
  400. package/lib/components/Editor/tinymce/plugins/print/plugin.min.js +0 -9
  401. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.js +0 -731
  402. package/lib/components/Editor/tinymce/plugins/spellchecker/plugin.min.js +0 -9
  403. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.js +0 -129
  404. package/lib/components/Editor/tinymce/plugins/tabfocus/plugin.min.js +0 -9
  405. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.js +0 -22
  406. package/lib/components/Editor/tinymce/plugins/textcolor/plugin.min.js +0 -9
  407. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.js +0 -1394
  408. package/lib/components/Editor/tinymce/plugins/textpattern/plugin.min.js +0 -9
  409. package/lib/components/Editor/tinymce/plugins/toc/plugin.js +0 -236
  410. package/lib/components/Editor/tinymce/plugins/toc/plugin.min.js +0 -9
  411. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.css +0 -29
  412. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css +0 -8
  413. package/lib/components/Editor/tinymce/skins/ui/oxide/content.mobile.min.css.map +0 -1
  414. package/lib/components/Editor/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  415. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.css +0 -673
  416. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -8
  417. package/lib/components/Editor/tinymce/skins/ui/oxide/skin.mobile.min.css.map +0 -1
  418. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
  419. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -8
  420. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/content.mobile.min.css.map +0 -1
  421. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  422. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
  423. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -8
  424. package/lib/components/Editor/tinymce/skins/ui/oxide-dark/skin.mobile.min.css.map +0 -1
  425. package/lib/components/Editor/tinymce/themes/mobile/theme.js +0 -13587
  426. package/lib/components/Editor/tinymce/themes/mobile/theme.min.js +0 -9
@@ -1,9 +1,4 @@
1
1
  /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.9.0 (TBD)
2
+ * TinyMCE version 6.8.2 (2023-12-11)
8
3
  */
9
- !function(){"use strict";var n,t,e,r,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=tinymce.util.Tools.resolve("tinymce.util.VK"),u=function(r){return function(t){return e=typeof(n=t),(null===n?"null":"object"==e&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==e&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":e)===r;var n,e}},a=function(n){return function(t){return typeof t===n}},l=u("string"),c=u("array"),f=function(t){return n===t},s=a("boolean"),m=a("function"),g=function(t){var n=t.getParam("link_assume_external_targets",!1);return s(n)&&n?1:!l(n)||"http"!==n&&"https"!==n?0:n},p=function(t){return t.getParam("default_link_target")},d=function(t){return t.getParam("target_list",!0)},h=function(t){return t.getParam("rel_list",[],"array")},v=function(t){return t.getParam("allow_unsafe_link_target",!1,"boolean")},y=function(){},k=function(t){return function(){return t}},x=k(!1),b=k(!(n=null)),O=function(){return w},w=(t=function(t){return t.isNone()},{fold:function(t,n){return t()},is:x,isSome:x,isNone:b,getOr:r=function(t){return t},getOrThunk:e=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:k(null),getOrUndefined:k(undefined),or:r,orThunk:e,map:O,each:y,bind:O,exists:x,forall:b,filter:O,equals:t,equals_:t,toArray:function(){return[]},toString:k("none()")}),C=function(e){var t=k(e),n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:b,isNone:x,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return C(t(e))},each:function(t){t(e)},bind:r,exists:r,forall:r,filter:function(t){return t(e)?o:w},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(x,function(t){return n(e,t)})}};return o},N={some:C,none:O,from:function(t){return null===t||t===undefined?w:C(t)}},A=Array.prototype.indexOf,P=Array.prototype.push,T=function(t,n){return e=t,r=n,-1<A.call(e,r);var e,r},S=function(t){for(var n=[],e=0,r=t.length;e<r;++e){if(!c(t[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+t);P.apply(n,t[e])}return n},_=function(t,n){return S(function(t,n){for(var e=t.length,r=new Array(e),o=0;o<e;o++){var i=t[o];r[o]=n(i,o)}return r}(t,n))},R=function(t,n){for(var e=0;e<t.length;e++){var r=n(t[e],e);if(r.isSome())return r}return N.none()},D=function(t,n){return t?N.some(n):N.none()},L=tinymce.util.Tools.resolve("tinymce.util.Tools"),E=function(t){return l(t.value)?t.value:""},M=function(t,i){var u=[];return L.each(t,function(t){var n,e,r,o=l((n=t).text)?n.text:l(n.title)?n.title:"";t.menu!==undefined?(e=M(t.menu,i),u.push({text:o,items:e})):(r=i(t),u.push({text:o,value:r}))}),u},U=function(n){return void 0===n&&(n=E),function(t){return N.from(t).map(function(t){return M(t,n)})}},B={sanitize:function(t){return U(E)(t)},sanitizeWith:U,createUi:function(n,e){return function(t){return{name:n,type:"listbox",label:e,items:t}}},getValue:E},q=function(){return(q=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)},I=Object.keys,K=Object.hasOwnProperty,z=function(t,e,r,o){return function(t,n){for(var e=I(t),r=0,o=e.length;r<o;r++){var i=e[r];n(t[i],i)}}(t,function(t,n){(e(t,n)?r:o)(t,n)}),{}},j=function(t,n){var e,r={};return z(t,n,(e=r,function(t,n){e[n]=t}),y),r},V=function(t,n){return K.call(t,n)},F=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),W=function(t){return t&&"a"===t.nodeName.toLowerCase()},H=function(t){return W(t)&&!!X(t)},G=function(t,n){if(t.collapsed)return[];for(var e=t.cloneContents(),r=new F(e.firstChild,e),o=[],i=e.firstChild;n(i)&&o.push(i),i=r.next(););return o},J=function(t){return/^\w+:/i.test(t)},X=function(t){var n=t.getAttribute("data-mce-href");return n||t.getAttribute("href")},$=function(t,n){var e,r,o=["noopener"],i=t?t.split(/\s+/):[],u=function(t){return t.filter(function(t){return-1===L.inArray(o,t)})},a=n?0<(e=u(e=i)).length?e.concat(o):o:u(i);return 0<a.length?(r=a,L.trim(r.sort().join(" "))):""},Q=function(t,n){return n=n||t.selection.getNode(),nt(n)?t.dom.select("a[href]",n)[0]:t.dom.getParent(n,"a[href]")},Y=function(t,n){var e=n?n.innerText||n.textContent:t.getContent({format:"text"});return e.replace(/\uFEFF/g,"")},Z=function(t){return 0<L.grep(t,H).length},tt=function(t){var n=t.schema.getTextInlineElements();return 0===G(t.selection.getRng(),function(t){return 1===t.nodeType&&!W(t)&&!V(n,t.nodeName.toLowerCase())}).length},nt=function(t){return t&&"FIGURE"===t.nodeName&&/\bimage\b/i.test(t.className)},et=function(t){return n=["title","rel","class","target"],e=function(n,e){return t[e].each(function(t){n[e]=0<t.length?t:null}),n},r={href:t.href},function(t,n){for(var e=0,r=t.length;e<r;e++)n(t[e],e)}(n,function(t){r=e(r,t)}),r;var n,e,r},rt=function(t,n){var e,r,o,i=q({},n);return 0<h(t).length||!1!==v(t)||(e=$(i.rel,"_blank"===i.target),i.rel=e||null),N.from(i.target).isNone()&&!1===d(t)&&(i.target=p(t)),i.href=(r=i.href,"http"!==(o=g(t))&&"https"!==o||J(r)?r:o+"://"+r),i},ot=function(l,c,f){var s=l.selection.getNode(),m=Q(l,s),g=rt(l,et(f));l.undoManager.transact(function(){var n,t,e,r,o,i,u,a;f.href===c.href&&c.attach(),m?(l.focus(),o=l,i=m,u=f.text,a=g,u.each(function(t){i.hasOwnProperty("innerText")?i.innerText=t:i.textContent=t}),o.dom.setAttribs(i,a),o.selection.select(i)):(n=l,t=s,e=f.text,r=g,nt(t)?ct(n,t,r):e.fold(function(){n.execCommand("mceInsertLink",!1,r)},function(t){n.insertContent(n.dom.createHTML("a",r,n.dom.encode(t)))}))})},it=function(l){l.undoManager.transact(function(){var t,n,e,r,o,i,u,a=l.selection.getNode();nt(a)?lt(l,a):(n=(t=l).dom,e=t.selection,r=e.getBookmark(),o=e.getRng().cloneRange(),i=n.getParent(o.startContainer,"a[href]",t.getBody()),u=n.getParent(o.endContainer,"a[href]",t.getBody()),i&&o.setStartBefore(i),u&&o.setEndAfter(u),e.setRng(o),t.execCommand("unlink"),e.moveToBookmark(r)),l.focus()})},ut=function(t,n,e){var r,o,i,u,a,l,c;t.hasPlugin("rtc",!0)?t.execCommand("createlink",!1,(o=(r=e)["class"],i=r.href,u=r.rel,a=r.target,l=r.text,c=r.title,j({"class":o.getOrNull(),href:i,rel:u.getOrNull(),target:a.getOrNull(),text:l.getOrNull(),title:c.getOrNull()},function(t,n){return!1===f(t)}))):ot(t,n,e)},at=function(t){t.hasPlugin("rtc",!0)?t.execCommand("unlink"):it(t)},lt=function(t,n){var e,r=t.dom.select("img",n)[0];!r||(e=t.dom.getParents(r,"a[href]",n)[0])&&(e.parentNode.insertBefore(r,e),t.dom.remove(e))},ct=function(t,n,e){var r,o=t.dom.select("img",n)[0];o&&(r=t.dom.create("a",e),o.parentNode.insertBefore(r,o),r.appendChild(o))},ft=function(t){return V(n=t,e="items")&&n[e]!==undefined&&null!==n[e];var n,e},st=function(n,t){return R(t,function(t){return ft(t)?st(n,t.items):D(t.value===n,t)})},mt=function(n,t,e,r){var o=r[t],i=0<n.length;return o!==undefined?st(o,e).map(function(t){return{url:{value:t.value,meta:{text:i?n:t.text,attach:y}},text:i?n:t.text}}):N.none()},gt=function(t,i){var u={text:t.text,title:t.title},r=function(t){var n,e,r=(n=t.url,D(u.text.length<=0,N.from(n.meta.text).getOr(n.value))),o=(e=t.url,D(u.title.length<=0,N.from(e.meta.title).getOr("")));return r.isSome()||o.isSome()?N.some(q(q({},r.map(function(t){return{text:t}}).getOr({})),o.map(function(t){return{title:t}}).getOr({}))):N.none()},o=function(t,n){var e,r,o=(e=i,("link"===(r=n.name)?e.link:"anchor"===r?e.anchor:N.none()).getOr([]));return mt(u.text,n.name,o,t)};return{onChange:function(t,n){var e=n.name;return"url"===e?r(t()):T(["anchor","link"],e)?o(t(),n):(("text"===e||"title"===e)&&(u[e]=t()[e]),N.none())}}},dt=tinymce.util.Tools.resolve("tinymce.util.Delay"),ht=tinymce.util.Tools.resolve("tinymce.util.Promise"),pt=function(t){var n=t.href;return 0<n.indexOf("@")&&-1===n.indexOf("/")&&-1===n.indexOf("mailto:")?N.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:function(t){return q(q({},t),{href:"mailto:"+n})}}):N.none()},vt=function(u,a){return R([pt,(e=g(u),r=u.getParam("link_default_protocol","http","string"),function(t){var n=t.href;return 1===e&&!J(n)||0===e&&/^\s*www(\.|\d\.)/i.test(n)?N.some({message:"The URL you entered seems to be an external link. Do you want to add the required "+r+":// prefix?",preprocess:function(t){return q(q({},t),{href:r+"://"+n})}}):N.none()})],function(t){return t(a)}).fold(function(){return ht.resolve(a)},function(i){return new ht(function(n){var e,t,r,o;e=u,t=i.message,r=function(t){n(t?i.preprocess(a):a)},o=e.selection.getRng(),dt.setEditorTimeout(e,function(){e.windowManager.confirm(t,function(t){e.selection.setRng(o),r(t)})})})});var e,r},yt=function(t){var n=t.dom.select("a:not([href])"),e=_(n,function(t){var n=t.name||t.id;return n?[{text:n,value:"#"+n}]:[]});return 0<e.length?N.some([{text:"None",value:""}].concat(e)):N.none()},kt=function(t){var n=t.getParam("link_class_list",[],"array");return 0<n.length?B.sanitize(n):N.none()},xt=tinymce.util.Tools.resolve("tinymce.util.XHR"),bt=function(n){var e=function(t){return n.convertURL(t.value||t.url,"href")},t=n.getParam("link_list");return new ht(function(n){l(t)?xt.send({url:t,success:function(t){return n(function(t){try{return N.some(JSON.parse(t))}catch(n){return N.none()}}(t))},error:function(t){return n(N.none())}}):m(t)?t(function(t){return n(N.some(t))}):n(N.from(t))}).then(function(t){return t.bind(B.sanitizeWith(e)).map(function(t){if(0<t.length){return[{text:"None",value:""}].concat(t)}return t})})},Ot=function(t,n){var e=h(t);if(0<e.length){var r=n.is("_blank");return(!1===v(t)?B.sanitizeWith(function(t){return $(B.getValue(t),r)}):B.sanitize)(e)}return N.none()},wt=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],Ct=function(t){var n=d(t);return c(n)?B.sanitize(n).orThunk(function(){return N.some(wt)}):!1===n?N.none():N.some(wt)},Nt=function(t,n,e){var r=t.getAttrib(n,e);return null!==r&&0<r.length?N.some(r):N.none()},At=function(f,s){return bt(f).then(function(t){var n,e,r,o,i,u,a,l,c=(e=s,r=(n=f).dom,o=tt(n)?N.some(Y(n.selection,e)):N.none(),i=e?N.some(r.getAttrib(e,"href")):N.none(),u=e?N.from(r.getAttrib(e,"target")):N.none(),a=Nt(r,e,"rel"),l=Nt(r,e,"class"),{url:i,text:o,title:Nt(r,e,"title"),target:u,rel:a,linkClass:l});return{anchor:c,catalogs:{targets:Ct(f),rels:Ot(f,c.target),classes:kt(f),anchor:yt(f),link:t},optNode:N.from(s),flags:{titleEnabled:f.getParam("link_title",!0,"boolean")}}})},Pt=function(h){var t,n;(n=Q(t=h),At(t,n)).then(function(t){var i,u,n,e,r,o,a,l,c,f,s,m,g,d;return e=function(t){var e=t.getData();if(!e.url.value)return at(i),void t.close();var n=function(n){return N.from(e[n]).filter(function(t){return!u.anchor[n].is(t)})},r={href:e.url.value,text:n("text"),target:n("target"),rel:n("rel"),"class":n("linkClass"),title:n("title")},o={href:e.url.value,attach:e.url.meta!==undefined&&e.url.meta.attach?e.url.meta.attach:y};vt(i,r).then(function(t){ut(i,o,t)}),t.close()},r=i=h,c=(n=u=t).anchor.text.map(function(){return{name:"text",type:"input",label:"Text to display"}}).toArray(),f=n.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],s=N.from(p(r)),o=s,a=n.anchor,m={url:{value:l=a.url.getOr(""),meta:{original:{value:l}}},text:a.text.getOr(""),title:a.title.getOr(""),anchor:l,link:l,rel:a.rel.getOr(""),target:a.target.or(o).getOr(""),linkClass:a.linkClass.getOr("")},g=n.catalogs,d=gt(m,g),{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:S([[{name:"url",type:"urlinput",filetype:"file",label:"URL"}],c,f,function(t){for(var n=[],e=function(t){n.push(t)},r=0;r<t.length;r++)t[r].each(e);return n}([g.anchor.map(B.createUi("anchor","Anchors")),g.rels.map(B.createUi("rel","Rel")),g.targets.map(B.createUi("target","Open link in...")),g.link.map(B.createUi("link","Link list")),g.classes.map(B.createUi("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:m,onChange:function(n,t){var e=t.name;d.onChange(n.getData,{name:e}).each(function(t){n.setData(t)})},onSubmit:e}}).then(function(t){h.windowManager.open(t)})},Tt=function(t){var n=document.createElement("a");n.target="_blank",n.href=t,n.rel="noreferrer noopener";var e,r,o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e=n,r=o,document.body.appendChild(e),e.dispatchEvent(r),document.body.removeChild(e)},St=function(t,n){return t.dom.getParent(n,"a[href]")},_t=function(t){return St(t,t.selection.getStart())},Rt=function(t,n){var e,r;n&&(e=X(n),/^#/.test(e)?(r=t.$(e)).length&&t.selection.scrollIntoView(r[0],!0):Tt(n.href))},Dt=function(t){return function(){Pt(t)}},Lt=function(t){return function(){Rt(t,_t(t))}},Et=function(r){r.on("click",function(t){var n=St(r,t.target);n&&i.metaKeyPressed(t)&&(t.preventDefault(),Rt(r,n))}),r.on("keydown",function(t){var n,e=_t(r);e&&13===t.keyCode&&(!0===(n=t).altKey&&!1===n.shiftKey&&!1===n.ctrlKey&&!1===n.metaKey)&&(t.preventDefault(),Rt(r,e))})},Mt=function(t,n){return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}},Ut=function(n){return function(t){return Mt(n,function(){t.setActive(!n.mode.isReadOnly()&&null!==Q(n,n.selection.getNode()))})}},Bt=function(e){return function(t){var n=function(){return t.setDisabled(null===Q(e,e.selection.getNode()))};return n(),Mt(e,n)}},qt=function(r){return function(n){var e=function(t){return Z(t)||(n=r.selection.getRng(),0<G(n,H).length);var n},t=r.dom.getParents(r.selection.getStart());return n.setDisabled(!e(t)),Mt(r,function(t){return n.setDisabled(!e(t.parents))})}};o.add("link",function(t){var n,e,r,i,o,u,a;(n=t).ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:Dt(n),onSetup:Ut(n)}),n.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Lt(n),onSetup:Bt(n)}),n.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:function(){return at(n)},onSetup:qt(n)}),(e=t).ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Lt(e),onSetup:Bt(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onAction:Dt(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:function(){return at(e)},onSetup:qt(e)}),(r=t).ui.registry.addContextMenu("link",{update:function(t){return Z(r.dom.getParents(t,"a"))?"link unlink openlink":"link"}}),o=function(t){var n=i.selection.getNode();return t.setDisabled(!Q(i,n)),y},(i=t).ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Ut(i)},label:"Link",predicate:function(t){return!!Q(i,t)&&i.getParam("link_context_toolbar",!1,"boolean")},initValue:function(){var t=Q(i);return t?X(t):""},commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:function(t){var n=i.selection.getNode();return t.setActive(!!Q(i,n)),Ut(i)(t)},onAction:function(t){var n,e,r=Q(i),o=t.getValue();r?i.undoManager.transact(function(){i.dom.setAttrib(r,"href",o),i.selection.collapse(!1),t.hide()}):(n={href:o,attach:y},e=tt(i)?N.some(Y(i.selection,r)).filter(function(t){return 0<t.length}).or(N.from(o)):N.none(),ut(i,n,{href:o,text:e,title:N.none(),rel:N.none(),target:N.none(),"class":N.none()}),t.hide())}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:o,onAction:function(t){at(i),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:o,onAction:function(t){Lt(i)(),t.hide()}}]}),Et(t),(u=t).addCommand("mceLink",function(){u.getParam("link_quicklink",!1,"boolean")?u.fire("contexttoolbar-show",{toolbarKey:"quicklink"}):Dt(u)()}),(a=t).addShortcut("Meta+K","",function(){a.execCommand("mceLink")})})}();
4
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>t=>(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(l=o.constructor)||void 0===l?void 0:l.name)===r.name)?"string":t;var n,o,r,l})(t)===e,n=e=>t=>typeof t===e,o=t("string"),r=t("object"),l=t("array"),i=(null,e=>null===e);const a=n("boolean"),s=e=>!(e=>null==e)(e),c=n("function"),u=(e,t)=>{if(l(e)){for(let n=0,o=e.length;n<o;++n)if(!t(e[n]))return!1;return!0}return!1},g=()=>{},d=(e,t)=>e===t;class m{constructor(e,t){this.tag=e,this.value=t}static some(e){return new m(!0,e)}static none(){return m.singletonNone}fold(e,t){return this.tag?t(this.value):e()}isSome(){return this.tag}isNone(){return!this.tag}map(e){return this.tag?m.some(e(this.value)):m.none()}bind(e){return this.tag?e(this.value):m.none()}exists(e){return this.tag&&e(this.value)}forall(e){return!this.tag||e(this.value)}filter(e){return!this.tag||e(this.value)?this:m.none()}getOr(e){return this.tag?this.value:e}or(e){return this.tag?this:e}getOrThunk(e){return this.tag?this.value:e()}orThunk(e){return this.tag?this:e()}getOrDie(e){if(this.tag)return this.value;throw new Error(null!=e?e:"Called getOrDie on None")}static from(e){return s(e)?m.some(e):m.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(e){this.tag&&e(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}m.singletonNone=new m(!1);const h=Array.prototype.indexOf,f=Array.prototype.push,p=e=>{const t=[];for(let n=0,o=e.length;n<o;++n){if(!l(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);f.apply(t,e[n])}return t},k=(e,t)=>{for(let n=0;n<e.length;n++){const o=t(e[n],n);if(o.isSome())return o}return m.none()},v=(e,t,n=d)=>e.exists((e=>n(e,t))),x=e=>{const t=[],n=e=>{t.push(e)};for(let t=0;t<e.length;t++)e[t].each(n);return t},y=(e,t)=>e?m.some(t):m.none(),b=e=>t=>t.options.get(e),_=b("link_assume_external_targets"),w=b("link_context_toolbar"),C=b("link_list"),O=b("link_default_target"),N=b("link_default_protocol"),A=b("link_target_list"),S=b("link_rel_list"),E=b("link_class_list"),T=b("link_title"),R=b("allow_unsafe_link_target"),P=b("link_quicklink");var L=tinymce.util.Tools.resolve("tinymce.util.Tools");const M=e=>o(e.value)?e.value:"",D=(e,t)=>{const n=[];return L.each(e,(e=>{const r=(e=>o(e.text)?e.text:o(e.title)?e.title:"")(e);if(void 0!==e.menu){const o=D(e.menu,t);n.push({text:r,items:o})}else{const o=t(e);n.push({text:r,value:o})}})),n},B=(e=M)=>t=>m.from(t).map((t=>D(t,e))),I=e=>B(M)(e),j=B,K=(e,t)=>n=>({name:e,type:"listbox",label:t,items:n}),U=M,q=Object.keys,F=Object.hasOwnProperty,V=(e,t)=>F.call(e,t);var $=tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"),z=tinymce.util.Tools.resolve("tinymce.util.URI");const G=e=>s(e)&&"a"===e.nodeName.toLowerCase(),H=e=>G(e)&&!!Q(e),J=(e,t)=>{if(e.collapsed)return[];{const n=e.cloneContents(),o=n.firstChild,r=new $(o,n),l=[];let i=o;do{t(i)&&l.push(i)}while(i=r.next());return l}},W=e=>/^\w+:/i.test(e),Q=e=>{var t,n;return null!==(n=null!==(t=e.getAttribute("data-mce-href"))&&void 0!==t?t:e.getAttribute("href"))&&void 0!==n?n:""},X=(e,t)=>{const n=["noopener"],o=e?e.split(/\s+/):[],r=e=>e.filter((e=>-1===L.inArray(n,e))),l=t?(e=>(e=r(e)).length>0?e.concat(n):n)(o):r(o);return l.length>0?(e=>L.trim(e.sort().join(" ")))(l):""},Y=(e,t)=>(t=t||te(e.selection.getRng())[0]||e.selection.getNode(),le(t)?m.from(e.dom.select("a[href]",t)[0]):m.from(e.dom.getParent(t,"a[href]"))),Z=(e,t)=>Y(e,t).isSome(),ee=(e,t)=>t.fold((()=>e.getContent({format:"text"})),(e=>e.innerText||e.textContent||"")).replace(/\uFEFF/g,""),te=e=>J(e,H),ne=e=>L.grep(e,H),oe=e=>ne(e).length>0,re=e=>{const t=e.schema.getTextInlineElements();if(Y(e).exists((e=>e.hasAttribute("data-mce-block"))))return!1;const n=e.selection.getRng();return!!n.collapsed||0===J(n,(e=>1===e.nodeType&&!G(e)&&!V(t,e.nodeName.toLowerCase()))).length},le=e=>s(e)&&"FIGURE"===e.nodeName&&/\bimage\b/i.test(e.className),ie=(e,t,n)=>{const o=e.selection.getNode(),r=Y(e,o),l=((e,t)=>{const n={...t};if(0===S(e).length&&!R(e)){const e=X(n.rel,"_blank"===n.target);n.rel=e||null}return m.from(n.target).isNone()&&!1===A(e)&&(n.target=O(e)),n.href=((e,t)=>"http"!==t&&"https"!==t||W(e)?e:t+"://"+e)(n.href,_(e)),n})(e,(e=>{return t=["title","rel","class","target"],n=(t,n)=>(e[n].each((e=>{t[n]=e.length>0?e:null})),t),o={href:e.href},((e,t)=>{for(let n=0,o=e.length;n<o;n++)t(e[n],n)})(t,((e,t)=>{o=n(o,e)})),o;var t,n,o})(n));e.undoManager.transact((()=>{n.href===t.href&&t.attach(),r.fold((()=>{((e,t,n,o)=>{const r=e.dom;le(t)?ge(r,t,o):n.fold((()=>{e.execCommand("mceInsertLink",!1,o)}),(t=>{e.insertContent(r.createHTML("a",o,r.encode(t)))}))})(e,o,n.text,l)}),(t=>{e.focus(),((e,t,n,o)=>{n.each((e=>{V(t,"innerText")?t.innerText=e:t.textContent=e})),e.dom.setAttribs(t,o),e.selection.select(t)})(e,t,n.text,l)}))}))},ae=e=>{const{class:t,href:n,rel:o,target:r,text:l,title:a}=e;return((e,t)=>{const n={};var o;return((e,t,n,o)=>{((e,t)=>{const n=q(e);for(let o=0,r=n.length;o<r;o++){const r=n[o];t(e[r],r)}})(e,((e,r)=>{(t(e,r)?n:o)(e,r)}))})(e,((e,t)=>!1===i(e)),(o=n,(e,t)=>{o[t]=e}),g),n})({class:t.getOrNull(),href:n,rel:o.getOrNull(),target:r.getOrNull(),text:l.getOrNull(),title:a.getOrNull()})},se=(e,t,n)=>{const o=((e,t)=>{const n=e.options.get,o={allow_html_data_urls:n("allow_html_data_urls"),allow_script_urls:n("allow_script_urls"),allow_svg_data_urls:n("allow_svg_data_urls")},r=t.href;return{...t,href:z.isDomSafe(r,"a",o)?r:""}})(e,n);e.hasPlugin("rtc",!0)?e.execCommand("createlink",!1,ae(o)):ie(e,t,o)},ce=e=>{e.hasPlugin("rtc",!0)?e.execCommand("unlink"):(e=>{e.undoManager.transact((()=>{const t=e.selection.getNode();le(t)?ue(e,t):(e=>{const t=e.dom,n=e.selection,o=n.getBookmark(),r=n.getRng().cloneRange(),l=t.getParent(r.startContainer,"a[href]",e.getBody()),i=t.getParent(r.endContainer,"a[href]",e.getBody());l&&r.setStartBefore(l),i&&r.setEndAfter(i),n.setRng(r),e.execCommand("unlink"),n.moveToBookmark(o)})(e),e.focus()}))})(e)},ue=(e,t)=>{var n;const o=e.dom.select("img",t)[0];if(o){const r=e.dom.getParents(o,"a[href]",t)[0];r&&(null===(n=r.parentNode)||void 0===n||n.insertBefore(o,r),e.dom.remove(r))}},ge=(e,t,n)=>{var o;const r=e.select("img",t)[0];if(r){const t=e.create("a",n);null===(o=r.parentNode)||void 0===o||o.insertBefore(t,r),t.appendChild(r)}},de=(e,t)=>k(t,(t=>(e=>{return V(t=e,n="items")&&void 0!==t[n]&&null!==t[n];var t,n})(t)?de(e,t.items):y(t.value===e,t))),me=(e,t)=>{const n={text:e.text,title:e.title},o=(e,o)=>{const r=(l=t,i=o,"link"===i?l.link:"anchor"===i?l.anchor:m.none()).getOr([]);var l,i;return((e,t,n,o)=>{const r=o[t],l=e.length>0;return void 0!==r?de(r,n).map((t=>({url:{value:t.value,meta:{text:l?e:t.text,attach:g}},text:l?e:t.text}))):m.none()})(n.text,o,r,e)};return{onChange:(e,t)=>{const r=t.name;return"url"===r?(e=>{const t=(o=e.url,y(n.text.length<=0,m.from(null===(r=o.meta)||void 0===r?void 0:r.text).getOr(o.value)));var o,r;const l=(e=>{var t;return y(n.title.length<=0,m.from(null===(t=e.meta)||void 0===t?void 0:t.title).getOr(""))})(e.url);return t.isSome()||l.isSome()?m.some({...t.map((e=>({text:e}))).getOr({}),...l.map((e=>({title:e}))).getOr({})}):m.none()})(e()):((e,t)=>h.call(e,t))(["anchor","link"],r)>-1?o(e(),r):"text"===r||"title"===r?(n[r]=e()[r],m.none()):m.none()}}};var he=tinymce.util.Tools.resolve("tinymce.util.Delay");const fe=e=>{const t=e.href;return t.indexOf("@")>0&&-1===t.indexOf("/")&&-1===t.indexOf("mailto:")?m.some({message:"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",preprocess:e=>({...e,href:"mailto:"+t})}):m.none()},pe=(e,t)=>n=>{const o=n.href;return 1===e&&!W(o)||0===e&&/^\s*www(\.|\d\.)/i.test(o)?m.some({message:`The URL you entered seems to be an external link. Do you want to add the required ${t}:// prefix?`,preprocess:e=>({...e,href:t+"://"+o})}):m.none()},ke=e=>{const t=e.dom.select("a:not([href])"),n=p(((e,t)=>{const n=e.length,o=new Array(n);for(let r=0;r<n;r++){const n=e[r];o[r]=t(n,r)}return o})(t,(e=>{const t=e.name||e.id;return t?[{text:t,value:"#"+t}]:[]})));return n.length>0?m.some([{text:"None",value:""}].concat(n)):m.none()},ve=e=>{const t=E(e);return t.length>0?I(t):m.none()},xe=e=>{try{return m.some(JSON.parse(e))}catch(e){return m.none()}},ye=(e,t)=>{const n=S(e);if(n.length>0){const o=v(t,"_blank"),r=e=>X(U(e),o);return(!1===R(e)?j(r):I)(n)}return m.none()},be=[{text:"Current window",value:""},{text:"New window",value:"_blank"}],_e=e=>{const t=A(e);return l(t)?I(t).orThunk((()=>m.some(be))):!1===t?m.none():m.some(be)},we=(e,t,n)=>{const o=e.getAttrib(t,n);return null!==o&&o.length>0?m.some(o):m.none()},Ce=(e,t)=>(e=>{const t=t=>e.convertURL(t.value||t.url||"","href"),n=C(e);return new Promise((e=>{o(n)?fetch(n).then((e=>e.ok?e.text().then(xe):Promise.reject())).then(e,(()=>e(m.none()))):c(n)?n((t=>e(m.some(t)))):e(m.from(n))})).then((e=>e.bind(j(t)).map((e=>e.length>0?[{text:"None",value:""}].concat(e):e))))})(e).then((n=>{const o=((e,t)=>{const n=e.dom,o=re(e)?m.some(ee(e.selection,t)):m.none(),r=t.bind((e=>m.from(n.getAttrib(e,"href")))),l=t.bind((e=>m.from(n.getAttrib(e,"target")))),i=t.bind((e=>we(n,e,"rel"))),a=t.bind((e=>we(n,e,"class")));return{url:r,text:o,title:t.bind((e=>we(n,e,"title"))),target:l,rel:i,linkClass:a}})(e,t);return{anchor:o,catalogs:{targets:_e(e),rels:ye(e,o.target),classes:ve(e),anchor:ke(e),link:n},optNode:t,flags:{titleEnabled:T(e)}}})),Oe=e=>{const t=(e=>{const t=Y(e);return Ce(e,t)})(e);t.then((t=>{const n=((e,t)=>n=>{const o=n.getData();if(!o.url.value)return ce(e),void n.close();const r=e=>m.from(o[e]).filter((n=>!v(t.anchor[e],n))),l={href:o.url.value,text:r("text"),target:r("target"),rel:r("rel"),class:r("linkClass"),title:r("title")},i={href:o.url.value,attach:void 0!==o.url.meta&&o.url.meta.attach?o.url.meta.attach:g};((e,t)=>k([fe,pe(_(e),N(e))],(e=>e(t))).fold((()=>Promise.resolve(t)),(n=>new Promise((o=>{((e,t,n)=>{const o=e.selection.getRng();he.setEditorTimeout(e,(()=>{e.windowManager.confirm(t,(t=>{e.selection.setRng(o),n(t)}))}))})(e,n.message,(e=>{o(e?n.preprocess(t):t)}))})))))(e,l).then((t=>{se(e,i,t)})),n.close()})(e,t);return((e,t,n)=>{const o=e.anchor.text.map((()=>({name:"text",type:"input",label:"Text to display"}))).toArray(),r=e.flags.titleEnabled?[{name:"title",type:"input",label:"Title"}]:[],l=((e,t)=>{const n=e.anchor,o=n.url.getOr("");return{url:{value:o,meta:{original:{value:o}}},text:n.text.getOr(""),title:n.title.getOr(""),anchor:o,link:o,rel:n.rel.getOr(""),target:n.target.or(t).getOr(""),linkClass:n.linkClass.getOr("")}})(e,m.from(O(n))),i=e.catalogs,a=me(l,i);return{title:"Insert/Edit Link",size:"normal",body:{type:"panel",items:p([[{name:"url",type:"urlinput",filetype:"file",label:"URL",picker_text:"Browse links"}],o,r,x([i.anchor.map(K("anchor","Anchors")),i.rels.map(K("rel","Rel")),i.targets.map(K("target","Open link in...")),i.link.map(K("link","Link list")),i.classes.map(K("linkClass","Class"))])])},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:l,onChange:(e,{name:t})=>{a.onChange(e.getData,{name:t}).each((t=>{e.setData(t)}))},onSubmit:t}})(t,n,e)})).then((t=>{e.windowManager.open(t)}))};var Ne=tinymce.util.Tools.resolve("tinymce.util.VK");const Ae=(e,t)=>e.dom.getParent(t,"a[href]"),Se=e=>Ae(e,e.selection.getStart()),Ee=(e,t)=>{if(t){const n=Q(t);if(/^#/.test(n)){const t=e.dom.select(n);t.length&&e.selection.scrollIntoView(t[0],!0)}else(e=>{const t=document.createElement("a");t.target="_blank",t.href=e,t.rel="noreferrer noopener";const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),((e,t)=>{document.body.appendChild(e),e.dispatchEvent(t),document.body.removeChild(e)})(t,n)})(t.href)}},Te=e=>()=>{e.execCommand("mceLink",!1,{dialog:!0})},Re=e=>()=>{Ee(e,Se(e))},Pe=(e,t)=>(e.on("NodeChange",t),()=>e.off("NodeChange",t)),Le=e=>t=>{const n=()=>{t.setActive(!e.mode.isReadOnly()&&Z(e,e.selection.getNode())),t.setEnabled(e.selection.isEditable())};return n(),Pe(e,n)},Me=e=>t=>{const n=()=>{t.setEnabled(e.selection.isEditable())};return n(),Pe(e,n)},De=e=>t=>{const n=()=>t.setEnabled((e=>1===(e.selection.isCollapsed()?ne(e.dom.getParents(e.selection.getStart())):te(e.selection.getRng())).length)(e));return n(),Pe(e,n)},Be=e=>t=>{const n=e.dom.getParents(e.selection.getStart()),o=n=>{t.setEnabled((t=>{return oe(t)||(n=e.selection.getRng(),te(n).length>0);var n})(n)&&e.selection.isEditable())};return o(n),Pe(e,(e=>o(e.parents)))};e.add("link",(e=>{(e=>{const t=e.options.register;t("link_assume_external_targets",{processor:e=>{const t=o(e)||a(e);return t?!0===e?{value:1,valid:t}:"http"===e||"https"===e?{value:e,valid:t}:{value:0,valid:t}:{valid:!1,message:"Must be a string or a boolean."}},default:!1}),t("link_context_toolbar",{processor:"boolean",default:!1}),t("link_list",{processor:e=>o(e)||c(e)||u(e,r)}),t("link_default_target",{processor:"string"}),t("link_default_protocol",{processor:"string",default:"https"}),t("link_target_list",{processor:e=>a(e)||u(e,r),default:!0}),t("link_rel_list",{processor:"object[]",default:[]}),t("link_class_list",{processor:"object[]",default:[]}),t("link_title",{processor:"boolean",default:!0}),t("allow_unsafe_link_target",{processor:"boolean",default:!1}),t("link_quicklink",{processor:"boolean",default:!1})})(e),(e=>{e.ui.registry.addToggleButton("link",{icon:"link",tooltip:"Insert/edit link",onAction:Te(e),onSetup:Le(e)}),e.ui.registry.addButton("openlink",{icon:"new-tab",tooltip:"Open link",onAction:Re(e),onSetup:De(e)}),e.ui.registry.addButton("unlink",{icon:"unlink",tooltip:"Remove link",onAction:()=>ce(e),onSetup:Be(e)})})(e),(e=>{e.ui.registry.addMenuItem("openlink",{text:"Open link",icon:"new-tab",onAction:Re(e),onSetup:De(e)}),e.ui.registry.addMenuItem("link",{icon:"link",text:"Link...",shortcut:"Meta+K",onSetup:Me(e),onAction:Te(e)}),e.ui.registry.addMenuItem("unlink",{icon:"unlink",text:"Remove link",onAction:()=>ce(e),onSetup:Be(e)})})(e),(e=>{e.ui.registry.addContextMenu("link",{update:t=>e.dom.isEditable(t)?oe(e.dom.getParents(t,"a"))?"link unlink openlink":"link":""})})(e),(e=>{const t=t=>{const n=e.selection.getNode();return t.setEnabled(Z(e,n)),g};e.ui.registry.addContextForm("quicklink",{launch:{type:"contextformtogglebutton",icon:"link",tooltip:"Link",onSetup:Le(e)},label:"Link",predicate:t=>w(e)&&Z(e,t),initValue:()=>Y(e).fold((()=>""),Q),commands:[{type:"contextformtogglebutton",icon:"link",tooltip:"Link",primary:!0,onSetup:t=>{const n=e.selection.getNode();return t.setActive(Z(e,n)),Le(e)(t)},onAction:t=>{const n=t.getValue(),o=(t=>{const n=Y(e),o=re(e);if(n.isNone()&&o){const o=ee(e.selection,n);return y(0===o.length,t)}return m.none()})(n);se(e,{href:n,attach:g},{href:n,text:o,title:m.none(),rel:m.none(),target:m.none(),class:m.none()}),(e=>{e.selection.collapse(!1)})(e),t.hide()}},{type:"contextformbutton",icon:"unlink",tooltip:"Remove link",onSetup:t,onAction:t=>{ce(e),t.hide()}},{type:"contextformbutton",icon:"new-tab",tooltip:"Open link",onSetup:t,onAction:t=>{Re(e)(),t.hide()}}]})})(e),(e=>{e.on("click",(t=>{const n=Ae(e,t.target);n&&Ne.metaKeyPressed(t)&&(t.preventDefault(),Ee(e,n))})),e.on("keydown",(t=>{if(!t.isDefaultPrevented()&&13===t.keyCode&&(e=>!0===e.altKey&&!1===e.shiftKey&&!1===e.ctrlKey&&!1===e.metaKey)(t)){const n=Se(e);n&&(t.preventDefault(),Ee(e,n))}}))})(e),(e=>{e.addCommand("mceLink",((t,n)=>{!0!==(null==n?void 0:n.dialog)&&P(e)?e.dispatch("contexttoolbar-show",{toolbarKey:"quicklink"}):Oe(e)}))})(e),(e=>{e.addShortcut("Meta+K","",(()=>{e.execCommand("mceLink")}))})(e)}))}();