@ckeditor/ckeditor5-ai 47.0.0-alpha.4 → 47.0.0-alpha.6

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 (307) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +14 -0
  3. package/dist/index-editor.css +27 -3
  4. package/dist/index.css +28 -3
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +1 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.js +1 -1
  182. package/src/aichat/aichatcontroller.d.ts +4 -0
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +2 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.js +1 -1
  188. package/src/aichat/model/aichatinteraction.js +1 -1
  189. package/src/aichat/model/aichatmodels.js +1 -1
  190. package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
  191. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  192. package/src/aichat/ui/aichatfeedview.js +1 -1
  193. package/src/aichat/ui/aichatheaderview.js +1 -1
  194. package/src/aichat/ui/aichatview.js +1 -1
  195. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  196. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  197. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  200. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  201. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  204. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  216. package/src/aichat/utils/eventnames.js +1 -1
  217. package/src/aichat/utils/promisequeue.js +1 -1
  218. package/src/aichat/utils/scrollmanager.js +1 -1
  219. package/src/aichathistory/aichathistory.js +1 -1
  220. package/src/aichathistory/aichathistorycontroller.js +1 -1
  221. package/src/aichathistory/aichathistoryui.js +1 -1
  222. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  223. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  224. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  225. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  226. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  227. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  228. package/src/aicore/aiconnector.js +1 -1
  229. package/src/aicore/aiediting.js +1 -1
  230. package/src/aicore/model/aicapabilities.js +1 -1
  231. package/src/aicore/model/aicontext.js +1 -1
  232. package/src/aicore/model/aiinteraction.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/utils/common-translations.js +1 -1
  245. package/src/aicore/utils/createresizebutton.js +1 -1
  246. package/src/aicore/utils/documentposition.js +1 -1
  247. package/src/aicore/utils/documentrange.js +1 -1
  248. package/src/aicore/utils/eventnames.js +1 -1
  249. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  250. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  251. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  252. package/src/aicore/utils/htmlparser.js +1 -1
  253. package/src/aicore/utils/htmlstreamer.js +1 -1
  254. package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
  255. package/src/aieditorintegration/aieditorintegration.js +23 -0
  256. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
  257. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
  258. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/utils/common-translations.js +1 -1
  268. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  269. package/src/aireviewmode/aireviewmode.js +1 -1
  270. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  271. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  272. package/src/aireviewmode/aireviewmodeui.js +1 -1
  273. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  274. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  275. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  278. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  279. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  280. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  281. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  285. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  286. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  287. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  288. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  291. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  292. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  293. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  294. package/src/aitabs/aitabs.js +1 -1
  295. package/src/aitabs/aitabsmainview.d.ts +6 -0
  296. package/src/aitabs/aitabsmainview.js +1 -1
  297. package/src/aitabs/tabs/aitabsview.js +1 -1
  298. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  299. package/src/aitabs/tabs/tabpanelview.js +1 -1
  300. package/src/augmentation.d.ts +6 -0
  301. package/src/index.d.ts +3 -0
  302. package/src/index.js +1 -1
  303. package/theme/aichat/aichat-controls.css +6 -0
  304. package/theme/aichat/aichat.css +2 -0
  305. package/theme/aichat/aisuggestioncontainer.css +8 -2
  306. package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
  307. package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x99128=_0x1a92;(function(_0x40aefa,_0x1fd761){const _0x303528=_0x1a92,_0x3c03e9=_0x40aefa();while(!![]){try{const _0x2e50cf=-parseInt(_0x303528(0xd3))/0x1*(parseInt(_0x303528(0x84))/0x2)+parseInt(_0x303528(0x11c))/0x3+-parseInt(_0x303528(0xc4))/0x4+-parseInt(_0x303528(0xd0))/0x5+-parseInt(_0x303528(0xd4))/0x6+parseInt(_0x303528(0x125))/0x7*(parseInt(_0x303528(0x11d))/0x8)+-parseInt(_0x303528(0xec))/0x9*(parseInt(_0x303528(0x111))/0xa);if(_0x2e50cf===_0x1fd761)break;else _0x3c03e9['push'](_0x3c03e9['shift']());}catch(_0xa47256){_0x3c03e9['push'](_0x3c03e9['shift']());}}}(_0x51ad,0x4bc45));import{Plugin as _0x5782a2}from'ckeditor5/src/core.js';function _0x1a92(_0x2d81b2,_0x3527a7){const _0x51ad29=_0x51ad();return _0x1a92=function(_0x1a92f9,_0x142ad0){_0x1a92f9=_0x1a92f9-0x80;let _0x2fa4a4=_0x51ad29[_0x1a92f9];return _0x2fa4a4;},_0x1a92(_0x2d81b2,_0x3527a7);}import{IconMagicWand as _0x1d2529,IconRobotPencil as _0x50d794}from'ckeditor5/src/icons.js';import{first as _0x10acd5,CKEditorError as _0xdedca4}from'ckeditor5/src/utils.js';import{createDropdown as _0x3e2fbd,addMenuToDropdown as _0x386107,ButtonView as _0x556107,MenuBarMenuListItemButtonView as _0x3779a9,Dialog as _0x3dce9e,DialogViewPosition as _0x1db7a1,MenuBarMenuView as _0x337e20,MenuBarMenuListView as _0x908e98,MenuBarMenuListItemView as _0x17731e}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x56ed73,UNGROUPED_COMMANDS_GROUP_ID as _0x32534a}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x3c4c62}from'./aiassistantediting.js';import{AIAdapter as _0x324ec0}from'./adapters/aiadapter.js';import{getTranslation as _0x4ae4f2}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x32b20e}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x1fcfe0}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x530bf2}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x2df4cd}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';function _0x51ad(){const _0x466edd=['AI\x20Assistant','licenseKey','define','plugins','showUI','schema','polite','focus','110600xPRHAt','_initView','buttonView','delegate','editor','ai-commands-config-order-collision','comment','</p>','AIAssistantUI','panelView','queryView','1728330nKJGLw','3564928LENZrn','isCollapsed','push','groupId','init','requires','getSelectedBlocks','values','7gOcfuu','_getMenuBarGroupButtons','getRanges','_commandDefinitions','_showLicenseError','isOn','showFakeVisualSelection','update','_dialog','updateView','set','currentContext','aiLicenseKeyNotAllowed','isOfficialPlugin','hideFakeVisualSelection','1362BbeLaq','text','listenTo','view','tableOfContents','aiLicenseKeyInvalid','commands','_createAIAssistantUIButton','menuBar:aiAssistant','componentFactory','isEnabled','ai.assistant.contentAreaCssClass','updatePosition','Generated\x20content:\x20%0','buttons','_aiAdapter','change:isProcessing','forEach','replace','map','evaluationLimit','sort','AIAssistant','getLimitElement','splice','insertContentBelow','menuitemcheckbox','domainLimit','editing','trim','<p>','body','ck-ai-assistant-ui','change:enabledCommandsIds','change:value','once','children','_licenseKeyCheckInterval','_forceMarkersCopy','_uiCssClasses','config','copy','media','locale','source','_getResolvedCommandsDefinitions','ai.assistant.commands','pluginName','fire','includes','items','isFlat','ck-ai-assistant-button\x20','bind','DataTransfer','destroy','contentArea','announce','aiLicenseKeyExpired','\x20ck-ai-assistant-ui_theme','setSelection','_aiAssistantController','hideUI','expired','880276ssfCcV','featureNotAllowed','selection','INSERT','Error\x20during\x20AI\x20content\x20generation:\x20%0','isPremiumPlugin','aiLicenseKeyDomainLimit','prompt','model','groupLabel','show','aiLicenseKeyUsageLimit','218370TrXrHF','fieldView','AI\x20is\x20writing','155CTTHDQ','260802ZrJEuS','order','filter','addMany','aiLicenseKeyEvaluationLimit','showAIAssistant','getSelectedElement','invalid','errorView','execute','_populateMenuBarMenu','document','insertContent','REPLACE','aiLicenseKeyValid','hide','trialLimit','textAdapter','change:isError','_onExecute','render','custom','text/html','aiAssistant','243jEfzSd','menuView','ai.assistant.useTheme','ai.assistant.disabledElements','getData','replaceContent','command:','AI\x20Commands','_initAriaAiStatusChangeAnnouncements','from','aiLicenseKeyTrialLimit','ck-ai-commands-dropdown\x20','change','_formView','wasMoved','promptView','reset','get','label','EDITOR_TOP_SIDE','length','rawHtml','requiresContent','add','menuPanelClass','aiCommands','menuBar:aiCommands','enabledCommandsIds','usageLimit'];_0x51ad=function(){return _0x466edd;};return _0x51ad();}import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const O=globalThis[_0x99128(0xba)];import{ClipboardMarkersUtils as _0x2c973f}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0x35c322,ViewDataTransfer as _0x504261}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x5782a2{[_0x99128(0x10a)];[_0x99128(0xa9)];[_0x99128(0x12d)];[_0x99128(0xf9)];[_0x99128(0x93)];[_0x99128(0xc1)];[_0x99128(0xab)]='';static get[_0x99128(0xb3)](){const _0x4fcf52=_0x99128;return _0x4fcf52(0x119);}static get[_0x99128(0x82)](){return!0x0;}static get[_0x99128(0xc9)](){return!0x0;}static get[_0x99128(0x122)](){return[_0x2c973f,_0x3c4c62,_0x324ec0,_0x3dce9e];}constructor(_0x45b355){const _0x29b0c9=_0x99128;super(_0x45b355),_0x45b355[_0x29b0c9(0xac)][_0x29b0c9(0x10b)](_0x29b0c9(0xef),[_0x29b0c9(0xae),_0x29b0c9(0x101),_0x29b0c9(0x88)]),_0x45b355[_0x29b0c9(0xac)][_0x29b0c9(0x10b)](_0x29b0c9(0x8f),''),_0x45b355[_0x29b0c9(0xac)][_0x29b0c9(0x10b)](_0x29b0c9(0xee),!0x0),this[_0x29b0c9(0xab)]=_0x29b0c9(0xa4)+(_0x45b355[_0x29b0c9(0xac)][_0x29b0c9(0xfd)](_0x29b0c9(0xee))?_0x29b0c9(0xbf):'');}[_0x99128(0x121)](){const _0x2e6ea1=_0x99128,{editor:_0xb27179}=this;this[_0x2e6ea1(0x93)]=_0xb27179[_0x2e6ea1(0x10c)][_0x2e6ea1(0xfd)](_0x324ec0),this[_0x2e6ea1(0x12d)]=_0xb27179[_0x2e6ea1(0x10c)][_0x2e6ea1(0xfd)](_0x3dce9e),this[_0x2e6ea1(0xf9)]=null,this[_0x2e6ea1(0x128)]=this[_0x2e6ea1(0xb1)]();const _0x5f5115=new _0x32b20e(_0xb27179,Array[_0x2e6ea1(0xf5)](this[_0x2e6ea1(0x128)][_0x2e6ea1(0x124)]()));_0xb27179[_0x2e6ea1(0x8a)][_0x2e6ea1(0x103)](_0x2e6ea1(0xd9),_0x5f5115),_0xb27179['ui'][_0x2e6ea1(0x8d)][_0x2e6ea1(0x103)](_0x2e6ea1(0x105),_0x35a57f=>{const _0x1d876c=_0x2e6ea1,_0x2a63b8=_0x3e2fbd(_0x35a57f);return _0x2a63b8[_0x1d876c(0x12f)]({'class':_0x1d876c(0xf7)+this[_0x1d876c(0xab)]}),_0x2a63b8[_0x1d876c(0x113)][_0x1d876c(0x12f)]({'label':_0x4ae4f2(_0x35a57f,_0x1d876c(0xf3)),'icon':_0x1d2529,'tooltip':!0x0}),_0x2a63b8['on'](_0x1d876c(0xdd),_0x6b007d=>this[_0x1d876c(0xe7)](_0x6b007d[_0x1d876c(0xb0)]['id'])),_0x386107(_0x2a63b8,_0xb27179['ui'][_0x1d876c(0x87)][_0x1d876c(0xa3)],function(_0x1f8416){const _0x3f7f34=_0x1d876c,_0x2263ed=_0x56ed73(_0x1f8416[_0x3f7f34(0xac)][_0x3f7f34(0xfd)](_0x3f7f34(0xb2)),_0x1f8416[_0x3f7f34(0xaf)]),_0x4bdd41=W(_0x1f8416,_0x2263ed)[_0x3f7f34(0xd6)](_0x5fae4f=>_0x5fae4f[_0x3f7f34(0x8a)][_0x3f7f34(0x100)]);if(0x1===_0x4bdd41[_0x3f7f34(0x100)])return W(_0x1f8416,_0x4bdd41[0x0][_0x3f7f34(0x8a)])[_0x3f7f34(0x97)](_0x5d55d8=>({'id':_0x5d55d8['id'],'label':_0x5d55d8[_0x3f7f34(0xfe)]}));return _0x4bdd41[_0x3f7f34(0x97)](_0x97af6d=>{const _0x172dc9=_0x3f7f34,{groupId:_0x2eaed3,groupLabel:_0x134d4c,commands:_0x1e44d8}=_0x97af6d,_0x494e33=W(_0x1f8416,_0x1e44d8)[_0x172dc9(0x97)](_0x215b99=>({'id':_0x215b99['id'],'label':_0x215b99[_0x172dc9(0xfe)]}));return{'id':_0x2eaed3,'menu':_0x134d4c||_0x2eaed3,'children':_0x494e33};});}(_0xb27179),{'ariaLabel':_0x4ae4f2(_0x35a57f,_0x1d876c(0xf3))}),_0x2a63b8[_0x1d876c(0xed)][_0x1d876c(0x104)]=_0x1d876c(0xf7)+this[_0x1d876c(0xab)],_0x5f5115['on'](_0x1d876c(0xa5),_0x198547),_0x2a63b8[_0x1d876c(0xed)][_0x1d876c(0xa7)](_0x1d876c(0xe8),_0x198547),_0x2a63b8;function _0x198547(){const _0x1a5221=_0x1d876c;_0x2a63b8[_0x1a5221(0x8e)]=_0x5f5115[_0x1a5221(0x107)][_0x1a5221(0x100)]>0x0;for(const _0x57f4f9 of _0x2a63b8[_0x1a5221(0xed)][_0x1a5221(0x92)])_0x57f4f9[_0x1a5221(0x8e)]=_0x5f5115[_0x1a5221(0x107)][_0x1a5221(0xb5)](_0x57f4f9['id']);}}),_0xb27179['ui'][_0x2e6ea1(0x8d)][_0x2e6ea1(0x103)](_0x2e6ea1(0x106),_0x25531c=>{const _0x7d462=_0x2e6ea1,_0x39dd5a=new _0x337e20(_0x25531c);_0x39dd5a[_0x7d462(0x113)][_0x7d462(0x12f)]({'label':_0x4ae4f2(_0x25531c,_0x7d462(0xf3)),'icon':_0x1d2529}),_0x39dd5a[_0x7d462(0xb9)](_0x7d462(0x8e))['to'](_0x5f5115,_0x7d462(0x107),_0x77d1fd=>_0x77d1fd[_0x7d462(0x100)]>0x0);const _0x3778ab=_0x56ed73(_0xb27179[_0x7d462(0xac)][_0x7d462(0xfd)](_0x7d462(0xb2)),_0x25531c);return this[_0x7d462(0xde)](_0x5f5115,_0x39dd5a,_0x3778ab,_0x4a6e49=>this[_0x7d462(0xe7)](_0x4a6e49)),_0x39dd5a;}),_0xb27179['ui'][_0x2e6ea1(0x8d)][_0x2e6ea1(0x103)](_0x2e6ea1(0xeb),()=>{const _0x39349c=_0x2e6ea1,_0x1c81ce=this[_0x39349c(0x8b)](_0x556107);return _0x1c81ce[_0x39349c(0x12f)]({'tooltip':!0x0,'class':_0x39349c(0xb8)+this[_0x39349c(0xab)]}),_0x1c81ce;}),_0xb27179['ui'][_0x2e6ea1(0x8d)][_0x2e6ea1(0x103)](_0x2e6ea1(0x8c),()=>{const _0x22863b=_0x2e6ea1,_0x4261ec=this[_0x22863b(0x8b)](_0x3779a9);return _0x4261ec[_0x22863b(0x12f)]({'role':_0x22863b(0x9e)}),_0x4261ec;}),this[_0x2e6ea1(0x10a)]=this[_0x2e6ea1(0x115)][_0x2e6ea1(0xac)][_0x2e6ea1(0xfd)](_0x2e6ea1(0x10a));const _0x14bad6=this[_0x2e6ea1(0x115)];this[_0x2e6ea1(0xa9)]=setInterval(()=>{const _0x47375a=_0x2e6ea1;let _0xf415a8;for(const _0x18d025 in _0x14bad6){const _0x415325=_0x18d025,_0x50cd0a=_0x14bad6[_0x415325];if(_0x47375a(0xe2)==_0x50cd0a||_0x47375a(0x89)==_0x50cd0a||_0x47375a(0xbe)==_0x50cd0a||_0x47375a(0xca)==_0x50cd0a||_0x47375a(0x81)==_0x50cd0a||_0x47375a(0xd8)==_0x50cd0a||_0x47375a(0xf6)==_0x50cd0a||_0x47375a(0xcf)==_0x50cd0a){delete _0x14bad6[_0x415325],_0xf415a8=_0x50cd0a,clearInterval(this[_0x47375a(0xa9)]),this[_0x47375a(0xa9)]=void 0x0;break;}}_0x47375a(0x89)==_0xf415a8&&_0x14bad6[_0x47375a(0x129)](_0x47375a(0xdb)),_0x47375a(0xbe)==_0xf415a8&&_0x14bad6[_0x47375a(0x129)](_0x47375a(0xc3)),_0x47375a(0xca)==_0xf415a8&&_0x14bad6[_0x47375a(0x129)](_0x47375a(0x9f)),_0x47375a(0x81)==_0xf415a8&&_0x14bad6[_0x47375a(0x129)](_0x47375a(0xc5),_0x47375a(0x9a)),_0x47375a(0xd8)==_0xf415a8&&_0x14bad6[_0x47375a(0x129)](_0x47375a(0x98)),_0x47375a(0xf6)==_0xf415a8&&_0x14bad6[_0x47375a(0x129)](_0x47375a(0xe4)),_0x47375a(0xcf)==_0xf415a8&&_0x14bad6[_0x47375a(0x129)](_0x47375a(0x108));},0x3e8);}[_0x99128(0xbb)](){const _0x9377d2=_0x99128;super[_0x9377d2(0xbb)](),this[_0x9377d2(0xa9)]&&clearInterval(this[_0x9377d2(0xa9)]);}[_0x99128(0x10d)](_0x24ae4b='',_0x516c75='',_0x2ff27a=_0x99128(0xe9)){const _0x2d5585=_0x99128,_0x25cbb0=this[_0x2d5585(0x115)],_0x453b65=_0x25cbb0[_0x2d5585(0xa0)][_0x2d5585(0x87)],_0x212409=_0x25cbb0[_0x2d5585(0x10c)][_0x2d5585(0xfd)](_0x3c4c62),_0x138e05=_0x25cbb0[_0x2d5585(0x10c)][_0x2d5585(0xfd)](_0x2c973f);_0x212409[_0x2d5585(0x12b)]();const _0x293a9c=new O(),_0x2b99fb=new ClipboardEvent(_0x2d5585(0xad),{'clipboardData':_0x293a9c}),_0x2f93b5=new _0x504261(_0x293a9c),_0x4fa0fd=new _0x35c322(_0x453b65,_0x2b99fb,{'dataTransfer':_0x2f93b5});_0x138e05[_0x2d5585(0xaa)](_0x2d5585(0x117),()=>{const _0x248b44=_0x2d5585;_0x453b65[_0x248b44(0xdf)][_0x248b44(0xb4)](_0x248b44(0xad),_0x4fa0fd);}),this[_0x2d5585(0xf9)]||(this[_0x2d5585(0x112)](),this[_0x2d5585(0xc1)]=new _0x1fcfe0(_0x25cbb0,this[_0x2d5585(0x93)][_0x2d5585(0xe5)],this[_0x2d5585(0xf9)]));let _0x160932=_0x2f93b5[_0x2d5585(0xf0)](_0x2d5585(0xea));const _0x27451e=_0x25cbb0[_0x2d5585(0xcc)][_0x2d5585(0xdf)][_0x2d5585(0xc6)],_0x532a95=Array[_0x2d5585(0xf5)](_0x27451e[_0x2d5585(0x127)]());0x1===_0x532a95[_0x2d5585(0x100)]&&_0x532a95[0x0][_0x2d5585(0xb7)]&&!_0x27451e[_0x2d5585(0xda)]()&&''!==_0x160932[_0x2d5585(0x96)](/&nbsp;/g,'')[_0x2d5585(0xa1)]()&&(_0x160932=_0x2d5585(0xa2)+_0x160932+_0x2d5585(0x118)),this[_0x2d5585(0xc1)][_0x2d5585(0x12e)]({'actionId':_0x2ff27a,'query':_0x24ae4b,'htmlContent':_0x160932,'label':_0x516c75,'mainActionLabel':_0x2df4cd[_0x25cbb0[_0x2d5585(0xcc)][_0x2d5585(0xdf)][_0x2d5585(0xc6)][_0x2d5585(0x11e)]?_0x2d5585(0xc7):_0x2d5585(0xe1)]}),_0x2d5585(0xeb)!==this[_0x2d5585(0x12d)]['id']?this[_0x2d5585(0x12d)][_0x2d5585(0xce)]({'id':_0x2d5585(0xeb),'icon':_0x50d794,'title':_0x4ae4f2(this[_0x2d5585(0x115)][_0x2d5585(0xaf)],_0x2d5585(0x109)),'content':this[_0x2d5585(0xf9)],'position':_0x1db7a1[_0x2d5585(0xff)],'onShow':()=>{const _0x3fcf8e=_0x2d5585;this[_0x3fcf8e(0xf9)][_0x3fcf8e(0x110)]();},'onHide':()=>{const _0x4a0ffc=_0x2d5585;this[_0x4a0ffc(0xc1)][_0x4a0ffc(0xfc)](),_0x212409[_0x4a0ffc(0x83)]();}}):this[_0x2d5585(0x12d)][_0x2d5585(0x87)][_0x2d5585(0xfa)]||this[_0x2d5585(0x12d)][_0x2d5585(0x87)][_0x2d5585(0x90)]();}[_0x99128(0xc2)](){const _0x171f2b=_0x99128;this[_0x171f2b(0x12d)][_0x171f2b(0xe3)]();}[_0x99128(0xb1)](){const _0xc316c0=_0x99128,_0x480074=new Map(),_0x1e40a8=_0x56ed73(this[_0xc316c0(0x115)][_0xc316c0(0xac)][_0xc316c0(0xfd)](_0xc316c0(0xb2)),this[_0xc316c0(0x115)][_0xc316c0(0xaf)]);for(const _0x5cbf98 of _0x1e40a8)for(const _0x4f70c1 of _0x5cbf98[_0xc316c0(0x8a)])_0x480074[_0xc316c0(0x12f)](_0x4f70c1['id'],{..._0x4f70c1,'groupId':_0x5cbf98[_0xc316c0(0x120)],'groupLabel':_0x5cbf98[_0xc316c0(0xcd)]||_0x5cbf98[_0xc316c0(0x120)]});return _0x480074;}[_0x99128(0x8b)](_0xc2e424){const _0x2952c6=_0x99128,_0x50217c=this[_0x2952c6(0x115)],_0x36b3dc=_0x50217c[_0x2952c6(0x8a)][_0x2952c6(0xfd)](_0x2952c6(0xd9)),_0x24eb97=new _0xc2e424(_0x50217c[_0x2952c6(0xaf)]);return _0x24eb97[_0x2952c6(0x12f)]({'label':_0x4ae4f2(_0x50217c[_0x2952c6(0xaf)],_0x2952c6(0x109)),'icon':_0x50d794,'isToggleable':!0x0}),_0x24eb97[_0x2952c6(0xb9)](_0x2952c6(0x8e))['to'](_0x36b3dc),_0x24eb97[_0x2952c6(0xb9)](_0x2952c6(0x12a))['to'](this[_0x2952c6(0x12d)],'id',_0x123304=>_0x2952c6(0xeb)===_0x123304),this[_0x2952c6(0x86)](_0x24eb97,_0x2952c6(0xdd),()=>{const _0x95e36d=_0x2952c6;_0x24eb97[_0x95e36d(0x12a)]?this[_0x95e36d(0xc2)]():_0x36b3dc[_0x95e36d(0xdd)]();}),_0x24eb97;}[_0x99128(0x112)](){const _0x2a80db=_0x99128,_0x31f730=this[_0x2a80db(0x115)][_0x2a80db(0x10c)][_0x2a80db(0xfd)](_0x3c4c62);this[_0x2a80db(0xf9)]=new _0x530bf2(this[_0x2a80db(0x115)][_0x2a80db(0xaf)],this[_0x2a80db(0xab)],this[_0x2a80db(0x115)][_0x2a80db(0xac)][_0x2a80db(0xfd)](_0x2a80db(0x8f))),this[_0x2a80db(0xf9)]['on'](_0x2a80db(0xa6),()=>{const _0x49bd01=_0x2a80db;this[_0x49bd01(0x12d)][_0x49bd01(0x87)][_0x49bd01(0xfa)]||this[_0x49bd01(0x12d)][_0x49bd01(0x87)][_0x49bd01(0x90)]();}),this[_0x2a80db(0xf9)][_0x2a80db(0xfb)][_0x2a80db(0x11b)][_0x2a80db(0xd1)]['on'](_0x2a80db(0x12c),()=>{const _0x3c9181=_0x2a80db;this[_0x3c9181(0x12d)][_0x3c9181(0x87)][_0x3c9181(0xfa)]||this[_0x3c9181(0x12d)][_0x3c9181(0x87)][_0x3c9181(0x90)]();}),this[_0x2a80db(0x86)](this[_0x2a80db(0xf9)],_0x2a80db(0xf1),()=>{const _0x2442f8=_0x2a80db;_0x31f730[_0x2442f8(0xe0)](this[_0x2442f8(0xc1)][_0x2442f8(0x80)]),this[_0x2442f8(0xc2)]();}),this[_0x2a80db(0x86)](this[_0x2a80db(0xf9)],_0x2a80db(0x9d),()=>{const _0x4bcd3e=_0x2a80db;_0x31f730[_0x4bcd3e(0x9d)](this[_0x4bcd3e(0xc1)][_0x4bcd3e(0x80)]),this[_0x4bcd3e(0xc2)]();}),this[_0x2a80db(0xf4)]();}[_0x99128(0xf4)](){const _0x57303a=_0x99128,{locale:_0x35642f,ui:{ariaLiveAnnouncer:_0x11e542}}=this[_0x57303a(0x115)];this[_0x57303a(0xf9)][_0x57303a(0xbc)]['on'](_0x57303a(0x94),(_0x32d71a,_0x688caf,_0x136f38)=>{const _0x3be1f7=_0x57303a,_0x577ad9=this[_0x3be1f7(0xc1)][_0x3be1f7(0x80)];_0x136f38?_0x11e542[_0x3be1f7(0xbd)](_0x4ae4f2(_0x35642f,_0x3be1f7(0xd2))):_0x577ad9&&_0x11e542[_0x3be1f7(0xbd)](_0x4ae4f2(_0x35642f,_0x3be1f7(0x91),_0x577ad9),{'politeness':_0x3be1f7(0x10f),'isUnsafeHTML':!0x0});}),this[_0x57303a(0xf9)]['on'](_0x57303a(0xe6),(_0x4aee58,_0x3cbc9a,_0x379c05)=>{const _0xc8054a=_0x57303a;if(_0x379c05){const _0x2dbe8d=this[_0xc8054a(0xf9)][_0xc8054a(0xdc)][_0xc8054a(0x85)];_0x11e542[_0xc8054a(0xbd)](_0x4ae4f2(_0x35642f,_0xc8054a(0xc8),_0x2dbe8d));}});}[_0x99128(0xe7)](_0x361a8b){const _0x322417=_0x99128,_0x42f282=this[_0x322417(0x128)][_0x322417(0xfd)](_0x361a8b),_0x4ac251=this[_0x322417(0x115)],_0x5a23ec=_0x4ac251[_0x322417(0xcc)][_0x322417(0xdf)][_0x322417(0xc6)],_0x32261e=_0x4ac251[_0x322417(0x8a)][_0x322417(0xfd)](_0x322417(0xd9)),_0x575d67=_0x4ac251[_0x322417(0x10c)][_0x322417(0xfd)](_0x3c4c62),_0x289faa=''+(_0x42f282[_0x322417(0x120)]!==_0x32534a?_0x42f282[_0x322417(0xcd)]+':\x20':'')+_0x42f282[_0x322417(0xfe)];if(!0x1!==_0x42f282[_0x322417(0x102)]&&_0x5a23ec[_0x322417(0x11e)]){const _0x12b8a7=_0x10acd5(_0x5a23ec[_0x322417(0x123)]())||_0x4ac251[_0x322417(0xcc)][_0x322417(0x10e)][_0x322417(0x9b)](_0x5a23ec);_0x4ac251[_0x322417(0xcc)][_0x322417(0xf8)](_0x2a297f=>{const _0x37cc29=_0x322417;_0x2a297f[_0x37cc29(0xc0)](_0x12b8a7,'in');});}_0x575d67[_0x322417(0x12b)](),_0x32261e[_0x322417(0xdd)](_0x42f282[_0x322417(0xcb)],_0x289faa,_0x322417(0xf2)+_0x361a8b);}[_0x99128(0xde)](_0x4eb3a4,_0xa5081b,_0x3c11b3,_0x11cffe){const _0x529b04=_0x99128,_0xd010c1=this[_0x529b04(0x115)],_0x4d7cd7=_0xd010c1[_0x529b04(0xaf)],_0x1b5897=new _0x908e98(_0x4d7cd7),_0x8649fa=W(_0xd010c1,_0x3c11b3)[_0x529b04(0xd6)](_0x58f419=>_0x58f419[_0x529b04(0x8a)][_0x529b04(0x100)]);0x1===_0x8649fa[_0x529b04(0x100)]?this[_0x529b04(0x126)]({'command':_0x4eb3a4,'commands':_0x8649fa[0x0][_0x529b04(0x8a)],'parentMenuView':_0xa5081b,'onExecute':_0x11cffe})[_0x529b04(0x95)](_0x4f58d1=>_0x1b5897[_0x529b04(0xb6)][_0x529b04(0x103)](_0x4f58d1)):_0x8649fa[_0x529b04(0x95)](({groupId:_0x5e24d3,groupLabel:_0x3d1734,commands:_0x489e46})=>{const _0x340e77=_0x529b04,_0x30a507=new _0x17731e(_0x4d7cd7,_0xa5081b),_0x580168=new _0x337e20(_0x4d7cd7),_0x11ce43=new _0x908e98(_0x4d7cd7),_0x3c07b9=this[_0x340e77(0x126)]({'command':_0x4eb3a4,'commands':_0x489e46,'parentMenuView':_0x580168,'onExecute':_0x11cffe});_0x580168[_0x340e77(0x113)][_0x340e77(0x12f)]({'label':_0x3d1734||_0x5e24d3}),_0x580168[_0x340e77(0x114)](_0x340e77(0xdd))['to'](_0xa5081b),_0x11ce43[_0x340e77(0xb6)][_0x340e77(0xd7)](_0x3c07b9),_0x580168[_0x340e77(0x11a)][_0x340e77(0xa8)][_0x340e77(0x103)](_0x11ce43),_0x30a507[_0x340e77(0xa8)][_0x340e77(0x103)](_0x580168),_0x1b5897[_0x340e77(0xb6)][_0x340e77(0x103)](_0x30a507);}),_0xa5081b[_0x529b04(0x11a)][_0x529b04(0xa8)][_0x529b04(0x103)](_0x1b5897);}[_0x99128(0x126)]({command:_0x3aafdf,commands:_0x336379,parentMenuView:_0x34afac,onExecute:_0x11a82c}){const _0x292c0a=_0x99128,_0x2bd733=this[_0x292c0a(0x115)],_0x228c33=_0x2bd733[_0x292c0a(0xaf)];return W(_0x2bd733,_0x336379)[_0x292c0a(0x97)](_0x298e01=>{const _0xcdb24a=_0x292c0a,_0x342ff1=new _0x17731e(_0x228c33,_0x34afac),_0x166751=new _0x3779a9(_0x228c33);return _0x166751[_0xcdb24a(0x12f)]({'label':_0x298e01[_0xcdb24a(0xfe)]}),_0x166751[_0xcdb24a(0x114)](_0xcdb24a(0xdd))['to'](_0x34afac),_0x166751['on'](_0xcdb24a(0xdd),()=>_0x11a82c(_0x298e01['id'])),_0x166751[_0xcdb24a(0xb9)](_0xcdb24a(0x8e))['to'](_0x3aafdf,_0xcdb24a(0x107),_0x2048fe=>_0x2048fe[_0xcdb24a(0xb5)](_0x298e01['id'])),_0x342ff1[_0xcdb24a(0xa8)][_0xcdb24a(0x103)](_0x166751),_0x342ff1;});}}function Q(_0x56c350,_0xf1c416){const _0x5745b0=_0x99128;return void 0x0!==_0x56c350[_0x5745b0(0xd5)]&&void 0x0===_0xf1c416[_0x5745b0(0xd5)]?0x1:void 0x0===_0x56c350[_0x5745b0(0xd5)]&&void 0x0!==_0xf1c416[_0x5745b0(0xd5)]?-0x1:void 0x0!==_0x56c350[_0x5745b0(0xd5)]&&void 0x0!==_0xf1c416[_0x5745b0(0xd5)]?_0x56c350[_0x5745b0(0xd5)]-_0xf1c416[_0x5745b0(0xd5)]:0x0;}function W(_0x5363d9,_0x36323e){const _0x596cab=_0x99128;_0x36323e[_0x596cab(0x99)](Q);const _0x4fc8b4={},_0x54d46a=[];for(const _0xa39683 of _0x36323e)if(void 0x0!==_0xa39683[_0x596cab(0xd5)]){if(_0xa39683[_0x596cab(0xd5)]in _0x4fc8b4)throw new _0xdedca4(_0x596cab(0x116),_0x5363d9,{'conflictingDefinitions':[_0xa39683,_0x4fc8b4[_0xa39683[_0x596cab(0xd5)]]]});_0x4fc8b4[_0xa39683[_0x596cab(0xd5)]]=_0xa39683,_0x54d46a[_0x596cab(0x9c)](_0xa39683[_0x596cab(0xd5)],0x0,_0xa39683);}else _0x54d46a[_0x596cab(0x11f)](_0xa39683);return _0x54d46a;}
23
+ const _0x242380=_0x533e;function _0x533e(_0x255172,_0x30c1ce){const _0x1176d1=_0x1176();return _0x533e=function(_0x533e75,_0x16a6c1){_0x533e75=_0x533e75-0xe6;let _0xe8037d=_0x1176d1[_0x533e75];return _0xe8037d;},_0x533e(_0x255172,_0x30c1ce);}(function(_0xa4264a,_0x2e68f8){const _0x42c2b0=_0x533e,_0x253400=_0xa4264a();while(!![]){try{const _0x4f7857=parseInt(_0x42c2b0(0x122))/0x1*(-parseInt(_0x42c2b0(0x134))/0x2)+-parseInt(_0x42c2b0(0x120))/0x3*(-parseInt(_0x42c2b0(0x195))/0x4)+parseInt(_0x42c2b0(0x15f))/0x5+-parseInt(_0x42c2b0(0x147))/0x6*(-parseInt(_0x42c2b0(0x171))/0x7)+parseInt(_0x42c2b0(0xf6))/0x8+-parseInt(_0x42c2b0(0xe9))/0x9*(parseInt(_0x42c2b0(0x177))/0xa)+parseInt(_0x42c2b0(0x143))/0xb;if(_0x4f7857===_0x2e68f8)break;else _0x253400['push'](_0x253400['shift']());}catch(_0x5808ee){_0x253400['push'](_0x253400['shift']());}}}(_0x1176,0x67a4e));import{Plugin as _0x33bc2a}from'ckeditor5/src/core.js';import{IconMagicWand as _0x15d1f6,IconRobotPencil as _0x26a6ac}from'ckeditor5/src/icons.js';import{first as _0x5b0d27,CKEditorError as _0x1bda40}from'ckeditor5/src/utils.js';import{createDropdown as _0x2cf320,addMenuToDropdown as _0x50ca9a,ButtonView as _0x1de4a3,MenuBarMenuListItemButtonView as _0x51a049,Dialog as _0x3d0c59,DialogViewPosition as _0x5a316f,MenuBarMenuView as _0x4f7934,MenuBarMenuListView as _0x577c8d,MenuBarMenuListItemView as _0x28e5d7}from'ckeditor5/src/ui.js';import{normalizeCommandsConfig as _0x445e28,UNGROUPED_COMMANDS_GROUP_ID as _0x2fbc7f}from'./utils/normalizecommandsconfig.js';import{AIAssistantEditing as _0x19b752}from'./aiassistantediting.js';import{AIAdapter as _0x4a67d2}from'./adapters/aiadapter.js';import{getTranslation as _0x2f87f7}from'./utils/common-translations.js';import{ShowAIAssistantCommand as _0x4870c9}from'./ui/showaiassistantcommand.js';import{AIAssistantController as _0x25bfb0}from'./ui/aiassistantcontroller.js';import{AIFormView as _0x113205}from'./ui/form/aiformview.js';import{AIFormToolbarViewMainActionLabel as _0x5310f3}from'./ui/form/aiformtoolbarview.js';import'../../theme/aiassistant/ai.css';import'../../theme/aiassistant/ai-dropdown.css';import'../../theme/aiassistant/ai-form.css';const l=globalThis[_0x242380(0x17b)];import{ClipboardMarkersUtils as _0x471c05}from'ckeditor5/src/clipboard.js';import{ViewDocumentDomEventData as _0xfbe513,ViewDataTransfer as _0x1842ac}from'ckeditor5/src/engine.js';export class AIAssistantUI extends _0x33bc2a{[_0x242380(0x12f)];[_0x242380(0x148)];[_0x242380(0x138)];[_0x242380(0x12c)];[_0x242380(0x14f)];[_0x242380(0xfa)];[_0x242380(0x168)]='';static get[_0x242380(0x160)](){const _0x160006=_0x242380;return _0x160006(0x154);}static get[_0x242380(0x164)](){return!0x0;}static get[_0x242380(0xf2)](){return!0x0;}static get[_0x242380(0x162)](){return[_0x471c05,_0x19b752,_0x4a67d2,_0x3d0c59];}constructor(_0x18c3bb){const _0x3fa5e5=_0x242380;super(_0x18c3bb),_0x18c3bb[_0x3fa5e5(0x152)][_0x3fa5e5(0x17f)](_0x3fa5e5(0x196),[_0x3fa5e5(0x12b),_0x3fa5e5(0x125),_0x3fa5e5(0x193)]),_0x18c3bb[_0x3fa5e5(0x152)][_0x3fa5e5(0x17f)](_0x3fa5e5(0x102),''),_0x18c3bb[_0x3fa5e5(0x152)][_0x3fa5e5(0x17f)](_0x3fa5e5(0x136),!0x0),this[_0x3fa5e5(0x168)]=_0x3fa5e5(0xef)+(_0x18c3bb[_0x3fa5e5(0x152)][_0x3fa5e5(0x14d)](_0x3fa5e5(0x136))?_0x3fa5e5(0x150):'');}[_0x242380(0x13d)](){const _0x14b756=_0x242380,{editor:_0x12c790}=this;this[_0x14b756(0x14f)]=_0x12c790[_0x14b756(0xf8)][_0x14b756(0x14d)](_0x4a67d2),this[_0x14b756(0x138)]=_0x12c790[_0x14b756(0xf8)][_0x14b756(0x14d)](_0x3d0c59),this[_0x14b756(0x12c)]=null,this[_0x14b756(0x107)]=this[_0x14b756(0xfd)]();const _0x3aca94=new _0x4870c9(_0x12c790,Array[_0x14b756(0x194)](this[_0x14b756(0x107)][_0x14b756(0x15b)]()));_0x12c790[_0x14b756(0x109)][_0x14b756(0xea)](_0x14b756(0xe7),_0x3aca94),_0x12c790['ui'][_0x14b756(0x180)][_0x14b756(0xea)](_0x14b756(0x16f),_0x5d26fb=>{const _0x1020c3=_0x14b756,_0x365343=_0x2cf320(_0x5d26fb);return _0x365343[_0x1020c3(0x16b)]({'class':_0x1020c3(0x14b)+this[_0x1020c3(0x168)]}),_0x365343[_0x1020c3(0x103)][_0x1020c3(0x16b)]({'label':_0x2f87f7(_0x5d26fb,_0x1020c3(0x191)),'icon':_0x15d1f6,'tooltip':!0x0}),_0x365343['on'](_0x1020c3(0x127),_0x4ac3ed=>this[_0x1020c3(0x132)](_0x4ac3ed[_0x1020c3(0xf9)]['id'])),_0x50ca9a(_0x365343,_0x12c790['ui'][_0x1020c3(0x18e)][_0x1020c3(0x146)],function(_0xd12cf0){const _0x24fb7d=_0x1020c3,_0x567e4c=_0x445e28(_0xd12cf0[_0x24fb7d(0x152)][_0x24fb7d(0x14d)](_0x24fb7d(0xff)),_0xd12cf0[_0x24fb7d(0x108)]),_0x11ea46=U(_0xd12cf0,_0x567e4c)[_0x24fb7d(0x140)](_0x46a4de=>_0x46a4de[_0x24fb7d(0x109)][_0x24fb7d(0x10f)]);if(0x1===_0x11ea46[_0x24fb7d(0x10f)])return U(_0xd12cf0,_0x11ea46[0x0][_0x24fb7d(0x109)])[_0x24fb7d(0x156)](_0x3fa204=>({'id':_0x3fa204['id'],'label':_0x3fa204[_0x24fb7d(0x11f)]}));return _0x11ea46[_0x24fb7d(0x156)](_0x12dc2a=>{const _0x4322ce=_0x24fb7d,{groupId:_0x2d63ef,groupLabel:_0x546eca,commands:_0x56185b}=_0x12dc2a,_0x38ff90=U(_0xd12cf0,_0x56185b)[_0x4322ce(0x156)](_0x1dc39e=>({'id':_0x1dc39e['id'],'label':_0x1dc39e[_0x4322ce(0x11f)]}));return{'id':_0x2d63ef,'menu':_0x546eca||_0x2d63ef,'children':_0x38ff90};});}(_0x12c790),{'ariaLabel':_0x2f87f7(_0x5d26fb,_0x1020c3(0x191))}),_0x365343[_0x1020c3(0x172)][_0x1020c3(0xe6)]=_0x1020c3(0x14b)+this[_0x1020c3(0x168)],_0x3aca94['on'](_0x1020c3(0x176),_0x4defb8),_0x365343[_0x1020c3(0x172)][_0x1020c3(0x126)](_0x1020c3(0x187),_0x4defb8),_0x365343;function _0x4defb8(){const _0x3596ce=_0x1020c3;_0x365343[_0x3596ce(0x101)]=_0x3aca94[_0x3596ce(0x10c)][_0x3596ce(0x10f)]>0x0;for(const _0x1b158a of _0x365343[_0x3596ce(0x172)][_0x3596ce(0x11c)])_0x1b158a[_0x3596ce(0x101)]=_0x3aca94[_0x3596ce(0x10c)][_0x3596ce(0x155)](_0x1b158a['id']);}}),_0x12c790['ui'][_0x14b756(0x180)][_0x14b756(0xea)](_0x14b756(0xed),_0x18bebf=>{const _0x1514b3=_0x14b756,_0x5e9fd8=new _0x4f7934(_0x18bebf);_0x5e9fd8[_0x1514b3(0x103)][_0x1514b3(0x16b)]({'label':_0x2f87f7(_0x18bebf,_0x1514b3(0x191)),'icon':_0x15d1f6}),_0x5e9fd8[_0x1514b3(0x13e)](_0x1514b3(0x101))['to'](_0x3aca94,_0x1514b3(0x10c),_0x2c9c82=>_0x2c9c82[_0x1514b3(0x10f)]>0x0);const _0x105554=_0x445e28(_0x12c790[_0x1514b3(0x152)][_0x1514b3(0x14d)](_0x1514b3(0xff)),_0x18bebf);return this[_0x1514b3(0x104)](_0x3aca94,_0x5e9fd8,_0x105554,_0x2340e8=>this[_0x1514b3(0x132)](_0x2340e8)),_0x5e9fd8;}),_0x12c790['ui'][_0x14b756(0x180)][_0x14b756(0xea)](_0x14b756(0x17d),()=>{const _0xb1b0e9=_0x14b756,_0x482735=this[_0xb1b0e9(0x133)](_0x1de4a3);return _0x482735[_0xb1b0e9(0x16b)]({'tooltip':!0x0,'class':_0xb1b0e9(0x169)+this[_0xb1b0e9(0x168)]}),_0x482735;}),_0x12c790['ui'][_0x14b756(0x180)][_0x14b756(0xea)](_0x14b756(0x13a),()=>{const _0x355a9a=_0x14b756,_0x2e0443=this[_0x355a9a(0x133)](_0x51a049);return _0x2e0443[_0x355a9a(0x16b)]({'role':_0x355a9a(0x149)}),_0x2e0443;}),this[_0x14b756(0x12f)]=this[_0x14b756(0x141)][_0x14b756(0x152)][_0x14b756(0x14d)](_0x14b756(0x12f));const _0x49925d=this[_0x14b756(0x141)];this[_0x14b756(0x148)]=setInterval(()=>{const _0x59473b=_0x14b756;let _0x4a9e5e;for(const _0x107274 in _0x49925d){const _0x12d04a=_0x107274,_0x119a04=_0x49925d[_0x12d04a];if(_0x59473b(0x17a)==_0x119a04||_0x59473b(0x192)==_0x119a04||_0x59473b(0x18c)==_0x119a04||_0x59473b(0x17e)==_0x119a04||_0x59473b(0x175)==_0x119a04||_0x59473b(0x13b)==_0x119a04||_0x59473b(0xfb)==_0x119a04||_0x59473b(0x186)==_0x119a04){delete _0x49925d[_0x12d04a],_0x4a9e5e=_0x119a04,clearInterval(this[_0x59473b(0x148)]),this[_0x59473b(0x148)]=void 0x0;break;}}_0x59473b(0x192)==_0x4a9e5e&&_0x49925d[_0x59473b(0x116)](_0x59473b(0xf0)),_0x59473b(0x18c)==_0x4a9e5e&&_0x49925d[_0x59473b(0x116)](_0x59473b(0x10a)),_0x59473b(0x17e)==_0x4a9e5e&&_0x49925d[_0x59473b(0x116)](_0x59473b(0x119)),_0x59473b(0x175)==_0x4a9e5e&&_0x49925d[_0x59473b(0x116)](_0x59473b(0x10e),_0x59473b(0x173)),_0x59473b(0x13b)==_0x4a9e5e&&_0x49925d[_0x59473b(0x116)](_0x59473b(0x10b)),_0x59473b(0xfb)==_0x4a9e5e&&_0x49925d[_0x59473b(0x116)](_0x59473b(0x145)),_0x59473b(0x186)==_0x4a9e5e&&_0x49925d[_0x59473b(0x116)](_0x59473b(0xe8));},0x3e8);}[_0x242380(0x128)](){const _0x4d8545=_0x242380;super[_0x4d8545(0x128)](),this[_0x4d8545(0x148)]&&clearInterval(this[_0x4d8545(0x148)]);}[_0x242380(0x159)](_0x4749c0='',_0x557aa1='',_0x55b37c=_0x242380(0x178)){const _0x2c57e9=_0x242380,_0x3f3ace=this[_0x2c57e9(0x141)],_0x21399e=_0x3f3ace[_0x2c57e9(0x124)][_0x2c57e9(0x18e)],_0x2eba11=_0x3f3ace[_0x2c57e9(0xf8)][_0x2c57e9(0x14d)](_0x19b752),_0x26f6f5=_0x3f3ace[_0x2c57e9(0xf8)][_0x2c57e9(0x14d)](_0x471c05);_0x2eba11[_0x2c57e9(0x121)]();const _0x587d0e=new l(),_0xa9d7cd=new ClipboardEvent(_0x2c57e9(0x142),{'clipboardData':_0x587d0e}),_0x49d0c7=new _0x1842ac(_0x587d0e),_0xf5a2dc=new _0xfbe513(_0x21399e,_0xa9d7cd,{'dataTransfer':_0x49d0c7});_0x26f6f5[_0x2c57e9(0x15a)](_0x2c57e9(0xf3),()=>{const _0x5e3436=_0x2c57e9;_0x21399e[_0x5e3436(0x10d)][_0x5e3436(0x16c)](_0x5e3436(0x142),_0xf5a2dc);}),this[_0x2c57e9(0x12c)]||(this[_0x2c57e9(0x117)](),this[_0x2c57e9(0xfa)]=new _0x25bfb0(_0x3f3ace,this[_0x2c57e9(0x14f)][_0x2c57e9(0xeb)],this[_0x2c57e9(0x12c)]));let _0xb01be9=_0x49d0c7[_0x2c57e9(0x184)](_0x2c57e9(0x163));const _0x3af493=_0x3f3ace[_0x2c57e9(0x189)][_0x2c57e9(0x10d)][_0x2c57e9(0x14a)],_0x3c5d7b=Array[_0x2c57e9(0x194)](_0x3af493[_0x2c57e9(0x151)]());0x1===_0x3c5d7b[_0x2c57e9(0x10f)]&&_0x3c5d7b[0x0][_0x2c57e9(0x153)]&&!_0x3af493[_0x2c57e9(0x17c)]()&&''!==_0xb01be9[_0x2c57e9(0x16e)](/&nbsp;/g,'')[_0x2c57e9(0x130)]()&&(_0xb01be9=_0x2c57e9(0x18b)+_0xb01be9+_0x2c57e9(0x15c)),this[_0x2c57e9(0xfa)][_0x2c57e9(0x181)]({'actionId':_0x55b37c,'query':_0x4749c0,'htmlContent':_0xb01be9,'label':_0x557aa1,'mainActionLabel':_0x5310f3[_0x3f3ace[_0x2c57e9(0x189)][_0x2c57e9(0x10d)][_0x2c57e9(0x14a)][_0x2c57e9(0xf1)]?_0x2c57e9(0xfe):_0x2c57e9(0xec)]}),_0x2c57e9(0x17d)!==this[_0x2c57e9(0x138)]['id']?this[_0x2c57e9(0x138)][_0x2c57e9(0xee)]({'id':_0x2c57e9(0x17d),'icon':_0x26a6ac,'title':_0x2f87f7(this[_0x2c57e9(0x141)][_0x2c57e9(0x108)],_0x2c57e9(0x11e)),'content':this[_0x2c57e9(0x12c)],'position':_0x5a316f[_0x2c57e9(0x11b)],'onShow':()=>{const _0x58cfb9=_0x2c57e9;this[_0x58cfb9(0x12c)][_0x58cfb9(0x18d)]();},'onHide':()=>{const _0x3d35f8=_0x2c57e9;this[_0x3d35f8(0xfa)][_0x3d35f8(0x165)](),_0x2eba11[_0x3d35f8(0x185)]();}}):this[_0x2c57e9(0x138)][_0x2c57e9(0x18e)][_0x2c57e9(0x11d)]||this[_0x2c57e9(0x138)][_0x2c57e9(0x18e)][_0x2c57e9(0x118)]();}[_0x242380(0x123)](){const _0x209c3b=_0x242380;this[_0x209c3b(0x138)][_0x209c3b(0x166)]();}[_0x242380(0xfd)](){const _0x2e99fc=_0x242380,_0x230163=new Map(),_0x35b7a6=_0x445e28(this[_0x2e99fc(0x141)][_0x2e99fc(0x152)][_0x2e99fc(0x14d)](_0x2e99fc(0xff)),this[_0x2e99fc(0x141)][_0x2e99fc(0x108)]);for(const _0x3992b7 of _0x35b7a6)for(const _0x59d4c7 of _0x3992b7[_0x2e99fc(0x109)])_0x230163[_0x2e99fc(0x16b)](_0x59d4c7['id'],{..._0x59d4c7,'groupId':_0x3992b7[_0x2e99fc(0x139)],'groupLabel':_0x3992b7[_0x2e99fc(0x18a)]||_0x3992b7[_0x2e99fc(0x139)]});return _0x230163;}[_0x242380(0x133)](_0x10eb19){const _0x33bee1=_0x242380,_0x5d6536=this[_0x33bee1(0x141)],_0x371706=_0x5d6536[_0x33bee1(0x109)][_0x33bee1(0x14d)](_0x33bee1(0xe7)),_0x15fc85=new _0x10eb19(_0x5d6536[_0x33bee1(0x108)]);return _0x15fc85[_0x33bee1(0x16b)]({'label':_0x2f87f7(_0x5d6536[_0x33bee1(0x108)],_0x33bee1(0x11e)),'icon':_0x26a6ac,'isToggleable':!0x0}),_0x15fc85[_0x33bee1(0x13e)](_0x33bee1(0x101))['to'](_0x371706),_0x15fc85[_0x33bee1(0x13e)](_0x33bee1(0x174))['to'](this[_0x33bee1(0x138)],'id',_0x558e8e=>_0x33bee1(0x17d)===_0x558e8e),this[_0x33bee1(0x112)](_0x15fc85,_0x33bee1(0x127),()=>{const _0x36eec9=_0x33bee1;_0x15fc85[_0x36eec9(0x174)]?this[_0x36eec9(0x123)]():_0x371706[_0x36eec9(0x127)]();}),_0x15fc85;}[_0x242380(0x117)](){const _0x47ed66=_0x242380,_0x441b5e=this[_0x47ed66(0x141)][_0x47ed66(0xf8)][_0x47ed66(0x14d)](_0x19b752);this[_0x47ed66(0x12c)]=new _0x113205(this[_0x47ed66(0x141)][_0x47ed66(0x108)],this[_0x47ed66(0x168)],this[_0x47ed66(0x141)][_0x47ed66(0x152)][_0x47ed66(0x14d)](_0x47ed66(0x102))),this[_0x47ed66(0x12c)]['on'](_0x47ed66(0x16a),()=>{const _0x4fd20e=_0x47ed66;this[_0x4fd20e(0x138)][_0x4fd20e(0x18e)][_0x4fd20e(0x11d)]||this[_0x4fd20e(0x138)][_0x4fd20e(0x18e)][_0x4fd20e(0x118)]();}),this[_0x47ed66(0x12c)][_0x47ed66(0x157)][_0x47ed66(0xf5)][_0x47ed66(0x179)]['on'](_0x47ed66(0x158),()=>{const _0x58ec2a=_0x47ed66;this[_0x58ec2a(0x138)][_0x58ec2a(0x18e)][_0x58ec2a(0x11d)]||this[_0x58ec2a(0x138)][_0x58ec2a(0x18e)][_0x58ec2a(0x118)]();}),this[_0x47ed66(0x112)](this[_0x47ed66(0x12c)],_0x47ed66(0x105),()=>{const _0xab56a4=_0x47ed66;_0x441b5e[_0xab56a4(0x131)](this[_0xab56a4(0xfa)][_0xab56a4(0x12e)]),this[_0xab56a4(0x123)]();}),this[_0x47ed66(0x112)](this[_0x47ed66(0x12c)],_0x47ed66(0x12a),()=>{const _0x127606=_0x47ed66;_0x441b5e[_0x127606(0x12a)](this[_0x127606(0xfa)][_0x127606(0x12e)]),this[_0x127606(0x123)]();}),this[_0x47ed66(0x167)]();}[_0x242380(0x167)](){const _0x5b2139=_0x242380,{locale:_0x1bdc22,ui:{ariaLiveAnnouncer:_0x491ca4}}=this[_0x5b2139(0x141)];this[_0x5b2139(0x12c)][_0x5b2139(0x114)]['on'](_0x5b2139(0x11a),(_0x3ac579,_0x15427e,_0x249889)=>{const _0x11c713=_0x5b2139,_0x5b6f0f=this[_0x11c713(0xfa)][_0x11c713(0x12e)];_0x249889?_0x491ca4[_0x11c713(0x188)](_0x2f87f7(_0x1bdc22,_0x11c713(0x100))):_0x5b6f0f&&_0x491ca4[_0x11c713(0x188)](_0x2f87f7(_0x1bdc22,_0x11c713(0x16d),_0x5b6f0f),{'politeness':_0x11c713(0x18f),'isUnsafeHTML':!0x0});}),this[_0x5b2139(0x12c)]['on'](_0x5b2139(0x144),(_0x205f44,_0x59589f,_0x2292f9)=>{const _0xc0109d=_0x5b2139;if(_0x2292f9){const _0x12b6ef=this[_0xc0109d(0x12c)][_0xc0109d(0x129)][_0xc0109d(0x15d)];_0x491ca4[_0xc0109d(0x188)](_0x2f87f7(_0x1bdc22,_0xc0109d(0x182),_0x12b6ef));}});}[_0x242380(0x132)](_0x4ac212){const _0x4d3909=_0x242380,_0x1c1c8d=this[_0x4d3909(0x107)][_0x4d3909(0x14d)](_0x4ac212),_0x33a237=this[_0x4d3909(0x141)],_0x3df905=_0x33a237[_0x4d3909(0x189)][_0x4d3909(0x10d)][_0x4d3909(0x14a)],_0x594b=_0x33a237[_0x4d3909(0x109)][_0x4d3909(0x14d)](_0x4d3909(0xe7)),_0x5c473f=_0x33a237[_0x4d3909(0xf8)][_0x4d3909(0x14d)](_0x19b752),_0x2d7055=''+(_0x1c1c8d[_0x4d3909(0x139)]!==_0x2fbc7f?_0x1c1c8d[_0x4d3909(0x18a)]+':\x20':'')+_0x1c1c8d[_0x4d3909(0x11f)];if(!0x1!==_0x1c1c8d[_0x4d3909(0x137)]&&_0x3df905[_0x4d3909(0xf1)]){const _0x182582=_0x5b0d27(_0x3df905[_0x4d3909(0xfc)]())||_0x33a237[_0x4d3909(0x189)][_0x4d3909(0x170)][_0x4d3909(0x113)](_0x3df905);_0x33a237[_0x4d3909(0x189)][_0x4d3909(0x13f)](_0xd91102=>{const _0x48c959=_0x4d3909;_0xd91102[_0x48c959(0x110)](_0x182582,'in');});}_0x5c473f[_0x4d3909(0x121)](),_0x594b[_0x4d3909(0x127)](_0x1c1c8d[_0x4d3909(0x190)],_0x2d7055,_0x4d3909(0x135)+_0x4ac212);}[_0x242380(0x104)](_0x5b0cfb,_0x454348,_0x5e028f,_0x5545ec){const _0x4ddab7=_0x242380,_0x4b633a=this[_0x4ddab7(0x141)],_0x78742a=_0x4b633a[_0x4ddab7(0x108)],_0x22625b=new _0x577c8d(_0x78742a),_0x5538ac=U(_0x4b633a,_0x5e028f)[_0x4ddab7(0x140)](_0x36661a=>_0x36661a[_0x4ddab7(0x109)][_0x4ddab7(0x10f)]);0x1===_0x5538ac[_0x4ddab7(0x10f)]?this[_0x4ddab7(0x14e)]({'command':_0x5b0cfb,'commands':_0x5538ac[0x0][_0x4ddab7(0x109)],'parentMenuView':_0x454348,'onExecute':_0x5545ec})[_0x4ddab7(0x106)](_0x2d9c4b=>_0x22625b[_0x4ddab7(0x183)][_0x4ddab7(0xea)](_0x2d9c4b)):_0x5538ac[_0x4ddab7(0x106)](({groupId:_0x380fc5,groupLabel:_0x1a4330,commands:_0x2f1500})=>{const _0x176aa2=_0x4ddab7,_0x5235c2=new _0x28e5d7(_0x78742a,_0x454348),_0x46c96d=new _0x4f7934(_0x78742a),_0x44a147=new _0x577c8d(_0x78742a),_0x10c4a6=this[_0x176aa2(0x14e)]({'command':_0x5b0cfb,'commands':_0x2f1500,'parentMenuView':_0x46c96d,'onExecute':_0x5545ec});_0x46c96d[_0x176aa2(0x103)][_0x176aa2(0x16b)]({'label':_0x1a4330||_0x380fc5}),_0x46c96d[_0x176aa2(0x13c)](_0x176aa2(0x127))['to'](_0x454348),_0x44a147[_0x176aa2(0x183)][_0x176aa2(0xf7)](_0x10c4a6),_0x46c96d[_0x176aa2(0x161)][_0x176aa2(0x12d)][_0x176aa2(0xea)](_0x44a147),_0x5235c2[_0x176aa2(0x12d)][_0x176aa2(0xea)](_0x46c96d),_0x22625b[_0x176aa2(0x183)][_0x176aa2(0xea)](_0x5235c2);}),_0x454348[_0x4ddab7(0x161)][_0x4ddab7(0x12d)][_0x4ddab7(0xea)](_0x22625b);}[_0x242380(0x14e)]({command:_0x2fcf71,commands:_0x2a3282,parentMenuView:_0x1ad67b,onExecute:_0x53f175}){const _0x20fa18=_0x242380,_0x388352=this[_0x20fa18(0x141)],_0x3552e3=_0x388352[_0x20fa18(0x108)];return U(_0x388352,_0x2a3282)[_0x20fa18(0x156)](_0x46eaa9=>{const _0x5696ad=_0x20fa18,_0x2ad1bc=new _0x28e5d7(_0x3552e3,_0x1ad67b),_0x17e0d4=new _0x51a049(_0x3552e3);return _0x17e0d4[_0x5696ad(0x16b)]({'label':_0x46eaa9[_0x5696ad(0x11f)]}),_0x17e0d4[_0x5696ad(0x13c)](_0x5696ad(0x127))['to'](_0x1ad67b),_0x17e0d4['on'](_0x5696ad(0x127),()=>_0x53f175(_0x46eaa9['id'])),_0x17e0d4[_0x5696ad(0x13e)](_0x5696ad(0x101))['to'](_0x2fcf71,_0x5696ad(0x10c),_0x3205a6=>_0x3205a6[_0x5696ad(0x155)](_0x46eaa9['id'])),_0x2ad1bc[_0x5696ad(0x12d)][_0x5696ad(0xea)](_0x17e0d4),_0x2ad1bc;});}}function _0x1176(){const _0x59f8c2=['ai.assistant.commands','AI\x20is\x20writing','isEnabled','ai.assistant.contentAreaCssClass','buttonView','_populateMenuBarMenu','replaceContent','forEach','_commandDefinitions','locale','commands','expired','evaluationLimit','enabledCommandsIds','document','featureNotAllowed','length','setSelection','push','listenTo','getLimitElement','contentArea','ai-commands-config-order-collision','_showLicenseError','_initView','updatePosition','domainLimit','change:isProcessing','EDITOR_TOP_SIDE','buttons','wasMoved','AI\x20Assistant','label','670107pYhNKp','showFakeVisualSelection','56702PGmyAm','hideUI','editing','rawHtml','once','execute','destroy','errorView','insertContentBelow','media','_formView','children','currentContext','licenseKey','trim','insertContent','_onExecute','_createAIAssistantUIButton','22FsnXqN','command:','ai.assistant.useTheme','requiresContent','_dialog','groupId','menuBar:aiAssistant','aiLicenseKeyEvaluationLimit','delegate','init','bind','change','filter','editor','copy','8516750pSapaP','change:isError','trialLimit','body','12Msdxfk','_licenseKeyCheckInterval','menuitemcheckbox','selection','ck-ai-commands-dropdown\x20','sort','get','_getMenuBarGroupButtons','_aiAdapter','\x20ck-ai-assistant-ui_theme','getRanges','config','isFlat','AIAssistantUI','includes','map','promptView','update','showUI','_forceMarkersCopy','values','</p>','text','order','375630LOYhVT','pluginName','panelView','requires','text/html','isOfficialPlugin','reset','hide','_initAriaAiStatusChangeAnnouncements','_uiCssClasses','ck-ai-assistant-button\x20','change:value','set','fire','Generated\x20content:\x20%0','replace','aiCommands','schema','139769HhrutW','menuView','AIAssistant','isOn','aiLicenseKeyNotAllowed','change:enabledCommandsIds','5378080gKzPzi','custom','fieldView','aiLicenseKeyValid','DataTransfer','getSelectedElement','aiAssistant','aiLicenseKeyDomainLimit','define','componentFactory','updateView','Error\x20during\x20AI\x20content\x20generation:\x20%0','items','getData','hideFakeVisualSelection','aiLicenseKeyUsageLimit','render','announce','model','groupLabel','<p>','aiLicenseKeyExpired','focus','view','polite','prompt','AI\x20Commands','aiLicenseKeyInvalid','tableOfContents','from','4cLXHUL','ai.assistant.disabledElements','menuPanelClass','showAIAssistant','usageLimit','9TCyOCj','add','textAdapter','REPLACE','menuBar:aiCommands','show','ck-ai-assistant-ui','invalid','isCollapsed','isPremiumPlugin','comment','splice','queryView','3787016BvwVCE','addMany','plugins','source','_aiAssistantController','aiLicenseKeyTrialLimit','getSelectedBlocks','_getResolvedCommandsDefinitions','INSERT'];_0x1176=function(){return _0x59f8c2;};return _0x1176();}function T(_0x3f0c86,_0x277416){const _0x4ae8a0=_0x242380;return void 0x0!==_0x3f0c86[_0x4ae8a0(0x15e)]&&void 0x0===_0x277416[_0x4ae8a0(0x15e)]?0x1:void 0x0===_0x3f0c86[_0x4ae8a0(0x15e)]&&void 0x0!==_0x277416[_0x4ae8a0(0x15e)]?-0x1:void 0x0!==_0x3f0c86[_0x4ae8a0(0x15e)]&&void 0x0!==_0x277416[_0x4ae8a0(0x15e)]?_0x3f0c86[_0x4ae8a0(0x15e)]-_0x277416[_0x4ae8a0(0x15e)]:0x0;}function U(_0x192f7a,_0x3bc396){const _0x12b015=_0x242380;_0x3bc396[_0x12b015(0x14c)](T);const _0x2fedb0={},_0x4bc4b4=[];for(const _0x2035b9 of _0x3bc396)if(void 0x0!==_0x2035b9[_0x12b015(0x15e)]){if(_0x2035b9[_0x12b015(0x15e)]in _0x2fedb0)throw new _0x1bda40(_0x12b015(0x115),_0x192f7a,{'conflictingDefinitions':[_0x2035b9,_0x2fedb0[_0x2035b9[_0x12b015(0x15e)]]]});_0x2fedb0[_0x2035b9[_0x12b015(0x15e)]]=_0x2035b9,_0x4bc4b4[_0x12b015(0xf4)](_0x2035b9[_0x12b015(0x15e)],0x0,_0x2035b9);}else _0x4bc4b4[_0x12b015(0x111)](_0x2035b9);return _0x4bc4b4;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x29ed29,_0x58fed7){var _0x322cbc=_0x4eb5,_0xccc5d=_0x29ed29();while(!![]){try{var _0x68064d=-parseInt(_0x322cbc(0x153))/0x1+parseInt(_0x322cbc(0x155))/0x2+parseInt(_0x322cbc(0x14f))/0x3+parseInt(_0x322cbc(0x150))/0x4+parseInt(_0x322cbc(0x151))/0x5*(parseInt(_0x322cbc(0x154))/0x6)+-parseInt(_0x322cbc(0x152))/0x7*(-parseInt(_0x322cbc(0x14e))/0x8)+-parseInt(_0x322cbc(0x156))/0x9;if(_0x68064d===_0x58fed7)break;else _0xccc5d['push'](_0xccc5d['shift']());}catch(_0x280ddd){_0xccc5d['push'](_0xccc5d['shift']());}}}(_0x14d5,0x40067));import{CKEditorError as _0x354a5c}from'ckeditor5/src/utils.js';function _0x4eb5(_0x17e361,_0x24fc06){var _0x14d5b3=_0x14d5();return _0x4eb5=function(_0x4eb55d,_0x581e19){_0x4eb55d=_0x4eb55d-0x14e;var _0x4741c5=_0x14d5b3[_0x4eb55d];return _0x4741c5;},_0x4eb5(_0x17e361,_0x24fc06);}function _0x14d5(){var _0x345441=['256124tELAZm','372858pNbapZ','277338FRdMsO','10087875RYpMWD','8ySCbdG','1336920Kibjqg','955112MVcORY','35KNACRW','2668106jefpLz'];_0x14d5=function(){return _0x345441;};return _0x14d5();}
23
+ (function(_0x3d1b85,_0x328c3a){var _0x2000d9=_0x48b6,_0xea89a=_0x3d1b85();while(!![]){try{var _0x17105c=-parseInt(_0x2000d9(0x1cd))/0x1*(-parseInt(_0x2000d9(0x1ca))/0x2)+parseInt(_0x2000d9(0x1cf))/0x3*(parseInt(_0x2000d9(0x1c6))/0x4)+parseInt(_0x2000d9(0x1cc))/0x5*(-parseInt(_0x2000d9(0x1ce))/0x6)+-parseInt(_0x2000d9(0x1c8))/0x7+-parseInt(_0x2000d9(0x1cb))/0x8+-parseInt(_0x2000d9(0x1c7))/0x9*(parseInt(_0x2000d9(0x1c9))/0xa)+parseInt(_0x2000d9(0x1c5))/0xb;if(_0x17105c===_0x328c3a)break;else _0xea89a['push'](_0xea89a['shift']());}catch(_0x43adca){_0xea89a['push'](_0xea89a['shift']());}}}(_0x4f28,0x6f348));function _0x4f28(){var _0x15c6e7=['60pEIJYA','45DOaXqd','3758944yGrYiQ','359620IfxIPQ','274LhwZVw','1546760WogLyK','5yAyNuW','3934WbORHF','5383842cQBaDc','71193hLVOsK','15048297zvpVuX'];_0x4f28=function(){return _0x15c6e7;};return _0x4f28();}function _0x48b6(_0xf15a5f,_0x2891c6){var _0x4f28cd=_0x4f28();return _0x48b6=function(_0x48b67d,_0x205b0b){_0x48b67d=_0x48b67d-0x1c5;var _0x2d4bb1=_0x4f28cd[_0x48b67d];return _0x2d4bb1;},_0x48b6(_0xf15a5f,_0x2891c6);}import{CKEditorError as _0x1d4580}from'ckeditor5/src/utils.js';
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x22c9(_0x535bae,_0x2cb87e){const _0x51ee72=_0x51ee();return _0x22c9=function(_0x22c92a,_0x380a8b){_0x22c92a=_0x22c92a-0x1dd;let _0x39e469=_0x51ee72[_0x22c92a];return _0x39e469;},_0x22c9(_0x535bae,_0x2cb87e);}const _0x16a2ce=_0x22c9;(function(_0x5d3269,_0x552813){const _0x2e30c3=_0x22c9,_0x4ca2bb=_0x5d3269();while(!![]){try{const _0x32c0dc=-parseInt(_0x2e30c3(0x221))/0x1*(-parseInt(_0x2e30c3(0x1ed))/0x2)+-parseInt(_0x2e30c3(0x207))/0x3*(-parseInt(_0x2e30c3(0x229))/0x4)+parseInt(_0x2e30c3(0x227))/0x5*(parseInt(_0x2e30c3(0x22d))/0x6)+parseInt(_0x2e30c3(0x1fe))/0x7+parseInt(_0x2e30c3(0x1ff))/0x8*(-parseInt(_0x2e30c3(0x1e9))/0x9)+parseInt(_0x2e30c3(0x1e4))/0xa+-parseInt(_0x2e30c3(0x1fd))/0xb*(parseInt(_0x2e30c3(0x1df))/0xc);if(_0x32c0dc===_0x552813)break;else _0x4ca2bb['push'](_0x4ca2bb['shift']());}catch(_0x12ba0c){_0x4ca2bb['push'](_0x4ca2bb['shift']());}}}(_0x51ee,0xae541));import{ObservableMixin as _0x5059fe}from'ckeditor5/src/utils.js';import{AIRequestError as _0x41f92a}from'../adapters/aiadapter.js';import{Matcher as _0x178498,ViewUpcastWriter as _0x45125d}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');function _0x51ee(){const _0x2c96b7=['stopListening','_parseAndNormalizeContent','_domParser','5867pDkZVt','previousLabel','```','_isH1TagSupportEnabled','editing','match','55CTPawI','render','22984YNyxGt','ELEMENT_NODE','finishProcessing','stopProcessing','65502oGXJda','exec','nodeType','from','document','clear','prompt','_normalizeResponseHeadings','editor','destroy','config','toModel','then','rename','abort','set:currentContext','text/html','setContentOf','htmlProcessor','get','submitPrompt','mainAction','reverse','name','156LdrnDj','handleError','tryAgainEvent','data','domConverter','10908370RHAoFH','ai.assistant.preserveComments','listenTo','previousContext','processor','1161jOMqys','body','makeRequest','innerHTML','76EBCOTu','remove','_stripMarkdownSyntax','trim','catch','viewToDom','substring','startsWith','stringify','div','isRendered','querySelector','element','_xmlSerializer','custom','endsWith','741939MQxZkQ','7250383MJpCvf','70888eFIRlI','value','```html','length','push','_handleQuery','parseFromString','currentContext','138djpLZg','updateView','view','set','message','once','finally','childNodes','currentResponse','previousActionId','<h1></h1>','toView','_sanitizationContainer','initialContext','_sanitizeHTML','createElement','textAdapter','serializeToString','reset','markers','isProcessing','startProcessing','previousQuery'];_0x51ee=function(){return _0x2c96b7;};return _0x51ee();}export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
- _0x5059fe(){[_0x16a2ce(0x235)];[_0x16a2ce(0x217)];[_0x16a2ce(0x209)];[_0x16a2ce(0x213)];[_0x16a2ce(0x220)];[_0x16a2ce(0x1fa)];constructor(_0x1c69de,_0x4e47dc,_0x1c3e0f){const _0x5814dc=_0x16a2ce;super(),this[_0x5814dc(0x235)]=_0x1c69de,this[_0x5814dc(0x217)]=_0x4e47dc,this[_0x5814dc(0x213)]=document[_0x5814dc(0x216)](_0x5814dc(0x1f6)),this[_0x5814dc(0x220)]=new DOMParser(),this[_0x5814dc(0x1fa)]=new XMLSerializer(),this[_0x5814dc(0x209)]=_0x1c3e0f,this[_0x5814dc(0x20a)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x5814dc(0x23c),(_0x3a956a,_0x21e1a8,_0x54c7c5)=>{const _0x1339ac=_0x5814dc;this[_0x1339ac(0x209)][_0x1339ac(0x200)]=this[_0x1339ac(0x215)](_0x54c7c5);}),this[_0x5814dc(0x1e6)](this[_0x5814dc(0x209)],_0x5814dc(0x241),(_0x29ca9b,_0x4ba434)=>{const _0x49de94=_0x5814dc,_0x346490=this[_0x49de94(0x206)]||this[_0x49de94(0x214)];this[_0x49de94(0x204)](_0x4ba434,_0x346490,_0x49de94(0x1fb));}),this[_0x5814dc(0x1e6)](this[_0x5814dc(0x209)],_0x5814dc(0x1e1),()=>{const _0x3bf9dd=_0x5814dc;this[_0x3bf9dd(0x209)][_0x3bf9dd(0x233)]=this[_0x3bf9dd(0x222)],this[_0x3bf9dd(0x204)](this[_0x3bf9dd(0x21d)],this[_0x3bf9dd(0x1e7)],this[_0x3bf9dd(0x210)],this[_0x3bf9dd(0x222)]);}),this[_0x5814dc(0x1e6)](this[_0x5814dc(0x209)],_0x5814dc(0x22c),()=>{const _0x35d5dd=_0x5814dc;this[_0x35d5dd(0x22c)]();});}[_0x16a2ce(0x236)](){const _0x26e3f6=_0x16a2ce;this[_0x26e3f6(0x21e)]();}async[_0x16a2ce(0x208)]({actionId:_0x105596,query:_0x509a75,htmlContent:_0xb1d94a,label:_0x4283c5,mainActionLabel:_0x4adce3}){const _0x2d242d=_0x16a2ce;this[_0x2d242d(0x209)][_0x2d242d(0x233)]=_0x4283c5,this[_0x2d242d(0x209)][_0x2d242d(0x242)]=_0x4adce3,this[_0x2d242d(0x214)]=_0xb1d94a,_0x509a75&&(this[_0x2d242d(0x209)][_0x2d242d(0x1f7)]?this[_0x2d242d(0x204)](_0x509a75,_0xb1d94a,_0x105596,_0x4283c5):this[_0x2d242d(0x209)][_0x2d242d(0x20c)](_0x2d242d(0x228),()=>{const _0x42bda4=_0x2d242d;this[_0x42bda4(0x204)](_0x509a75,_0xb1d94a,_0x105596,_0x4283c5);}));}[_0x16a2ce(0x22c)](){const _0x3d427d=_0x16a2ce;this[_0x3d427d(0x21b)]&&(this[_0x3d427d(0x21b)]=!0x1,this[_0x3d427d(0x209)][_0x3d427d(0x22b)](),this[_0x3d427d(0x217)][_0x3d427d(0x23b)]());}[_0x16a2ce(0x219)](){const _0x4e759a=_0x16a2ce;this[_0x4e759a(0x214)]='',this[_0x4e759a(0x206)]='',this[_0x4e759a(0x20f)]='',this[_0x4e759a(0x1e7)]='',this[_0x4e759a(0x21d)]='',this[_0x4e759a(0x222)]='',this[_0x4e759a(0x210)]=void 0x0,this[_0x4e759a(0x209)][_0x4e759a(0x219)](),this[_0x4e759a(0x22c)]();}async[_0x16a2ce(0x204)](_0x2324c2,_0x5175ae,_0xee00b5,_0x2c4dd3){const _0x587fab=_0x16a2ce;return this[_0x587fab(0x21b)]=!0x0,this[_0x587fab(0x209)][_0x587fab(0x21c)](),this[_0x587fab(0x1e7)]=_0x5175ae,this[_0x587fab(0x21d)]=_0x2324c2,this[_0x587fab(0x222)]=_0x2c4dd3||_0x2324c2,this[_0x587fab(0x210)]=_0xee00b5,new Promise(_0x4f7da1=>{const _0x3d0523=_0x587fab;this[_0x3d0523(0x217)][_0x3d0523(0x1eb)]({'query':_0x2324c2,'context':_0x5175ae,'onData':_0x1873e0=>{const _0x46e2c7=_0x3d0523;this[_0x46e2c7(0x20f)]=_0x1873e0,this[_0x46e2c7(0x206)]=this[_0x46e2c7(0x21f)](this[_0x46e2c7(0x20f)]);},'actionId':_0xee00b5})[_0x3d0523(0x239)](()=>{const _0x3ca7de=_0x3d0523;!this[_0x3ca7de(0x206)]&&this[_0x3ca7de(0x20f)]&&(this[_0x3ca7de(0x206)]=this[_0x3ca7de(0x21f)](this[_0x3ca7de(0x20f)],!0x0));})[_0x3d0523(0x1f1)](_0x261dad=>{const _0x1107f8=_0x3d0523;_0x261dad instanceof _0x41f92a?this[_0x1107f8(0x209)][_0x1107f8(0x1e0)](_0x261dad[_0x1107f8(0x20b)]):this[_0x1107f8(0x209)][_0x1107f8(0x1e0)](),_0x4f7da1();})[_0x3d0523(0x20d)](()=>{const _0x28cbf0=_0x3d0523;this[_0x28cbf0(0x22c)](),_0x4f7da1();});});}[_0x16a2ce(0x21f)](_0x2b50d5,_0x3b6a15=!0x1){const _0x15af66=_0x16a2ce,_0x54cfb3=hs[_0x15af66(0x22e)](_0x2b50d5);_0x2b50d5=_0x54cfb3?_0x2b50d5[_0x15af66(0x1f3)](_0x54cfb3[0x1][_0x15af66(0x202)]):_0x2b50d5[_0x15af66(0x202)]<0x64&&!_0x3b6a15?'':this[_0x15af66(0x1ef)](_0x2b50d5);const _0x51d045=this[_0x15af66(0x220)][_0x15af66(0x205)](_0x2b50d5,_0x15af66(0x23d));if(_0x54cfb3){const _0x514a3f=Array[_0x15af66(0x230)](_0x51d045[_0x15af66(0x1ea)][_0x15af66(0x20e)]);_0x514a3f[_0x15af66(0x1dd)]();for(const _0x51c50c of _0x514a3f){if(_0x51c50c[_0x15af66(0x22f)]==Node[_0x15af66(0x22a)])break;_0x51c50c[_0x15af66(0x1ee)]();}}const _0x1b9337=this[_0x15af66(0x235)][_0x15af66(0x1e2)][_0x15af66(0x1e8)][_0x15af66(0x212)](this[_0x15af66(0x1fa)][_0x15af66(0x218)](_0x51d045[_0x15af66(0x1ea)]));this[_0x15af66(0x224)]()||this[_0x15af66(0x234)](_0x1b9337);const _0x4e0ec6=this[_0x15af66(0x235)][_0x15af66(0x237)][_0x15af66(0x240)](_0x15af66(0x1e5)),_0x5adb45=this[_0x15af66(0x235)][_0x15af66(0x1e2)][_0x15af66(0x238)](_0x1b9337);return _0x4e0ec6||_0x5adb45[_0x15af66(0x21a)][_0x15af66(0x232)](),this[_0x15af66(0x235)][_0x15af66(0x1e2)][_0x15af66(0x1f5)](_0x5adb45);}[_0x16a2ce(0x234)](_0x3229f4){const _0x4a2e17=_0x16a2ce,_0x2798b2=new _0x45125d(this[_0x4a2e17(0x235)][_0x4a2e17(0x225)][_0x4a2e17(0x209)][_0x4a2e17(0x231)]),_0x1417d5=new _0x178498({'name':/^h[1-5]$/}),_0x23195c=[];let _0xf494fa=!0x1;for(const _0x3b6d33 of _0x3229f4)_0x3b6d33['is'](_0x4a2e17(0x1f9))&&_0x1417d5[_0x4a2e17(0x226)](_0x3b6d33)&&(_0x23195c[_0x4a2e17(0x203)](_0x3b6d33),'h1'==_0x3b6d33[_0x4a2e17(0x1de)]&&(_0xf494fa=!0x0));if(_0xf494fa){for(const _0x4d8c00 of _0x23195c)_0x2798b2[_0x4a2e17(0x23a)]('h'+(parseInt(_0x4d8c00[_0x4a2e17(0x1de)][0x1])+0x1),_0x4d8c00);}}[_0x16a2ce(0x224)](){const _0x35b2de=_0x16a2ce,{data:_0xebf3fb,editing:_0x22feb6}=this[_0x35b2de(0x235)],_0x39073b=_0xebf3fb[_0x35b2de(0x23f)][_0x35b2de(0x212)](_0x35b2de(0x211)),_0x20d02a=_0xebf3fb[_0x35b2de(0x212)](_0xebf3fb[_0x35b2de(0x238)](_0x39073b));return!!_0x22feb6[_0x35b2de(0x209)][_0x35b2de(0x1e3)][_0x35b2de(0x1f2)](_0x20d02a)[_0x35b2de(0x1f8)]('h1');}[_0x16a2ce(0x215)](_0x9f2097){const _0x4ea988=_0x16a2ce;return this[_0x4ea988(0x235)][_0x4ea988(0x225)][_0x4ea988(0x209)][_0x4ea988(0x1e3)][_0x4ea988(0x23e)](this[_0x4ea988(0x213)],_0x9f2097),this[_0x4ea988(0x213)][_0x4ea988(0x1ec)];}[_0x16a2ce(0x1ef)](_0x2366af){const _0x4f0c0a=_0x16a2ce,_0x46cadd=_0x2366af[_0x4f0c0a(0x1f0)]();return _0x46cadd[_0x4f0c0a(0x1f4)](_0x4f0c0a(0x201))?_0x46cadd[_0x4f0c0a(0x1fc)](_0x4f0c0a(0x223))?_0x46cadd[_0x4f0c0a(0x1f3)](0x7,_0x46cadd[_0x4f0c0a(0x202)]-0x3):_0x46cadd[_0x4f0c0a(0x1f3)](0x7):_0x2366af;}}
23
+ const _0x230918=_0x3d2c;function _0x230a(){const _0x1c7031=['textAdapter','substring','```html','finally','_normalizeResponseHeadings','previousActionId','<h1></h1>','body','22XSogYz','domConverter','stringify','_xmlSerializer','exec','previousQuery','name','once','_isH1TagSupportEnabled','rename','processor','length','startsWith','listenTo','parseFromString','view','div','finishProcessing','markers','element','viewToDom','startProcessing','```','previousContext','createElement','toModel','querySelector','data','ELEMENT_NODE','toView','previousLabel','reset','_handleQuery','1929496aXgiKD','stopListening','_stripMarkdownSyntax','clear','347075tSNpZI','_sanitizationContainer','isRendered','childNodes','prompt','abort','_domParser','endsWith','get','remove','nodeType','tryAgainEvent','makeRequest','mainAction','serializeToString','push','submitPrompt','from','catch','render','498990voWnpM','text/html','updateView','stopProcessing','isProcessing','5riqMpW','destroy','config','currentContext','custom','match','document','message','set','663762DZaIeu','set:currentContext','12zBZztw','ai.assistant.preserveComments','reverse','_sanitizeHTML','then','editing','htmlProcessor','editor','innerHTML','_parseAndNormalizeContent','initialContext','24290wTEJVw','currentResponse','setContentOf','trim','974439hSLCPw','handleError','493402OOvLWE','12MJUVTI','value'];_0x230a=function(){return _0x1c7031;};return _0x230a();}(function(_0x3cbeba,_0xf2c543){const _0x558e2e=_0x3d2c,_0x85b82f=_0x3cbeba();while(!![]){try{const _0x4bb569=parseInt(_0x558e2e(0x1e4))/0x1*(-parseInt(_0x558e2e(0x1fa))/0x2)+parseInt(_0x558e2e(0x1ed))/0x3+-parseInt(_0x558e2e(0x1ef))/0x4*(parseInt(_0x558e2e(0x1cb))/0x5)+-parseInt(_0x558e2e(0x19c))/0x6*(-parseInt(_0x558e2e(0x19b))/0x7)+parseInt(_0x558e2e(0x1c7))/0x8+-parseInt(_0x558e2e(0x199))/0x9+-parseInt(_0x558e2e(0x1df))/0xa*(parseInt(_0x558e2e(0x1a6))/0xb);if(_0x4bb569===_0xf2c543)break;else _0x85b82f['push'](_0x85b82f['shift']());}catch(_0x3514cd){_0x85b82f['push'](_0x85b82f['shift']());}}}(_0x230a,0x1eda6));import{ObservableMixin as _0x3689b7}from'ckeditor5/src/utils.js';import{AIRequestError as _0x1c2fda}from'../adapters/aiadapter.js';function _0x3d2c(_0xf6e34b,_0x58cf60){const _0x230ae7=_0x230a();return _0x3d2c=function(_0x3d2c3b,_0x5856ce){_0x3d2c3b=_0x3d2c3b-0x197;let _0x2043ef=_0x230ae7[_0x3d2c3b];return _0x2043ef;},_0x3d2c(_0xf6e34b,_0x58cf60);}import{Matcher as _0x310ef0,ViewUpcastWriter as _0x9f1e5c}from'ckeditor5/src/engine.js';const hs=new RegExp(/^(.*?)<[a-zA-Z][a-zA-Z0-9_\-.]*[ >]/,'is');export class AIAssistantController extends/* #__PURE__ -- @preserve */
24
+ _0x3689b7(){[_0x230918(0x1f6)];[_0x230918(0x19e)];[_0x230918(0x1b5)];[_0x230918(0x1cc)];[_0x230918(0x1d1)];[_0x230918(0x1a9)];constructor(_0x2e83fb,_0x492599,_0x55b292){const _0x59c75c=_0x230918;super(),this[_0x59c75c(0x1f6)]=_0x2e83fb,this[_0x59c75c(0x19e)]=_0x492599,this[_0x59c75c(0x1cc)]=document[_0x59c75c(0x1be)](_0x59c75c(0x1b6)),this[_0x59c75c(0x1d1)]=new DOMParser(),this[_0x59c75c(0x1a9)]=new XMLSerializer(),this[_0x59c75c(0x1b5)]=_0x55b292,this[_0x59c75c(0x1ec)]({'initialContext':'','currentContext':'','currentResponse':'','previousContext':void 0x0,'previousQuery':void 0x0,'previousLabel':void 0x0,'isProcessing':!0x1}),this['on'](_0x59c75c(0x1ee),(_0x561608,_0x5b53d1,_0x11e6ce)=>{const _0xd402a7=_0x59c75c;this[_0xd402a7(0x1b5)][_0xd402a7(0x19d)]=this[_0xd402a7(0x1f2)](_0x11e6ce);}),this[_0x59c75c(0x1b3)](this[_0x59c75c(0x1b5)],_0x59c75c(0x1db),(_0x3acaaf,_0x29fb0d)=>{const _0x3147e9=_0x59c75c,_0x4e1ad5=this[_0x3147e9(0x1e7)]||this[_0x3147e9(0x1f9)];this[_0x3147e9(0x1c6)](_0x29fb0d,_0x4e1ad5,_0x3147e9(0x1e8));}),this[_0x59c75c(0x1b3)](this[_0x59c75c(0x1b5)],_0x59c75c(0x1d6),()=>{const _0x33b31c=_0x59c75c;this[_0x33b31c(0x1b5)][_0x33b31c(0x1cf)]=this[_0x33b31c(0x1c4)],this[_0x33b31c(0x1c6)](this[_0x33b31c(0x1ab)],this[_0x33b31c(0x1bd)],this[_0x33b31c(0x1a3)],this[_0x33b31c(0x1c4)]);}),this[_0x59c75c(0x1b3)](this[_0x59c75c(0x1b5)],_0x59c75c(0x1e2),()=>{const _0x12eacf=_0x59c75c;this[_0x12eacf(0x1e2)]();});}[_0x230918(0x1e5)](){const _0x3f1927=_0x230918;this[_0x3f1927(0x1c8)]();}async[_0x230918(0x1e1)]({actionId:_0x7abe0c,query:_0x20526a,htmlContent:_0x2ccef6,label:_0x203112,mainActionLabel:_0x333fac}){const _0x3646d2=_0x230918;this[_0x3646d2(0x1b5)][_0x3646d2(0x1cf)]=_0x203112,this[_0x3646d2(0x1b5)][_0x3646d2(0x1d8)]=_0x333fac,this[_0x3646d2(0x1f9)]=_0x2ccef6,_0x20526a&&(this[_0x3646d2(0x1b5)][_0x3646d2(0x1cd)]?this[_0x3646d2(0x1c6)](_0x20526a,_0x2ccef6,_0x7abe0c,_0x203112):this[_0x3646d2(0x1b5)][_0x3646d2(0x1ad)](_0x3646d2(0x1de),()=>{const _0x2a76da=_0x3646d2;this[_0x2a76da(0x1c6)](_0x20526a,_0x2ccef6,_0x7abe0c,_0x203112);}));}[_0x230918(0x1e2)](){const _0x3d832b=_0x230918;this[_0x3d832b(0x1e3)]&&(this[_0x3d832b(0x1e3)]=!0x1,this[_0x3d832b(0x1b5)][_0x3d832b(0x1b7)](),this[_0x3d832b(0x19e)][_0x3d832b(0x1d0)]());}[_0x230918(0x1c5)](){const _0x298408=_0x230918;this[_0x298408(0x1f9)]='',this[_0x298408(0x1e7)]='',this[_0x298408(0x1fb)]='',this[_0x298408(0x1bd)]='',this[_0x298408(0x1ab)]='',this[_0x298408(0x1c4)]='',this[_0x298408(0x1a3)]=void 0x0,this[_0x298408(0x1b5)][_0x298408(0x1c5)](),this[_0x298408(0x1e2)]();}async[_0x230918(0x1c6)](_0x284781,_0x211562,_0x2f37b2,_0x4e0964){const _0x1c916e=_0x230918;return this[_0x1c916e(0x1e3)]=!0x0,this[_0x1c916e(0x1b5)][_0x1c916e(0x1bb)](),this[_0x1c916e(0x1bd)]=_0x211562,this[_0x1c916e(0x1ab)]=_0x284781,this[_0x1c916e(0x1c4)]=_0x4e0964||_0x284781,this[_0x1c916e(0x1a3)]=_0x2f37b2,new Promise(_0x3401ee=>{const _0x984e79=_0x1c916e;this[_0x984e79(0x19e)][_0x984e79(0x1d7)]({'query':_0x284781,'context':_0x211562,'onData':_0x102426=>{const _0x14fa7d=_0x984e79;this[_0x14fa7d(0x1fb)]=_0x102426,this[_0x14fa7d(0x1e7)]=this[_0x14fa7d(0x1f8)](this[_0x14fa7d(0x1fb)]);},'actionId':_0x2f37b2})[_0x984e79(0x1f3)](()=>{const _0x3644d0=_0x984e79;!this[_0x3644d0(0x1e7)]&&this[_0x3644d0(0x1fb)]&&(this[_0x3644d0(0x1e7)]=this[_0x3644d0(0x1f8)](this[_0x3644d0(0x1fb)],!0x0));})[_0x984e79(0x1dd)](_0xabd045=>{const _0x4e093f=_0x984e79;_0xabd045 instanceof _0x1c2fda?this[_0x4e093f(0x1b5)][_0x4e093f(0x19a)](_0xabd045[_0x4e093f(0x1eb)]):this[_0x4e093f(0x1b5)][_0x4e093f(0x19a)](),_0x3401ee();})[_0x984e79(0x1a1)](()=>{const _0x429cb3=_0x984e79;this[_0x429cb3(0x1e2)](),_0x3401ee();});});}[_0x230918(0x1f8)](_0xf5e598,_0x4beaca=!0x1){const _0x267922=_0x230918,_0xcf7011=hs[_0x267922(0x1aa)](_0xf5e598);_0xf5e598=_0xcf7011?_0xf5e598[_0x267922(0x19f)](_0xcf7011[0x1][_0x267922(0x1b1)]):_0xf5e598[_0x267922(0x1b1)]<0x64&&!_0x4beaca?'':this[_0x267922(0x1c9)](_0xf5e598);const _0x32d78f=this[_0x267922(0x1d1)][_0x267922(0x1b4)](_0xf5e598,_0x267922(0x1e0));if(_0xcf7011){const _0x176ae3=Array[_0x267922(0x1dc)](_0x32d78f[_0x267922(0x1a5)][_0x267922(0x1ce)]);_0x176ae3[_0x267922(0x1f1)]();for(const _0x101656 of _0x176ae3){if(_0x101656[_0x267922(0x1d5)]==Node[_0x267922(0x1c2)])break;_0x101656[_0x267922(0x1d4)]();}}const _0x4b6bfb=this[_0x267922(0x1f6)][_0x267922(0x1c1)][_0x267922(0x1b0)][_0x267922(0x1c3)](this[_0x267922(0x1a9)][_0x267922(0x1d9)](_0x32d78f[_0x267922(0x1a5)]));this[_0x267922(0x1ae)]()||this[_0x267922(0x1a2)](_0x4b6bfb);const _0x2bc1ef=this[_0x267922(0x1f6)][_0x267922(0x1e6)][_0x267922(0x1d3)](_0x267922(0x1f0)),_0x231224=this[_0x267922(0x1f6)][_0x267922(0x1c1)][_0x267922(0x1bf)](_0x4b6bfb);return _0x2bc1ef||_0x231224[_0x267922(0x1b8)][_0x267922(0x1ca)](),this[_0x267922(0x1f6)][_0x267922(0x1c1)][_0x267922(0x1a8)](_0x231224);}[_0x230918(0x1a2)](_0x1d42cb){const _0x3df810=_0x230918,_0x5f178b=new _0x9f1e5c(this[_0x3df810(0x1f6)][_0x3df810(0x1f4)][_0x3df810(0x1b5)][_0x3df810(0x1ea)]),_0x4a5d63=new _0x310ef0({'name':/^h[1-5]$/}),_0x15f9aa=[];let _0x427298=!0x1;for(const _0x3b8f09 of _0x1d42cb)_0x3b8f09['is'](_0x3df810(0x1b9))&&_0x4a5d63[_0x3df810(0x1e9)](_0x3b8f09)&&(_0x15f9aa[_0x3df810(0x1da)](_0x3b8f09),'h1'==_0x3b8f09[_0x3df810(0x1ac)]&&(_0x427298=!0x0));if(_0x427298){for(const _0x1b8dd1 of _0x15f9aa)_0x5f178b[_0x3df810(0x1af)]('h'+(parseInt(_0x1b8dd1[_0x3df810(0x1ac)][0x1])+0x1),_0x1b8dd1);}}[_0x230918(0x1ae)](){const _0x12394c=_0x230918,{data:_0x347ee0,editing:_0x5f51e9}=this[_0x12394c(0x1f6)],_0x405726=_0x347ee0[_0x12394c(0x1f5)][_0x12394c(0x1c3)](_0x12394c(0x1a4)),_0x2895d9=_0x347ee0[_0x12394c(0x1c3)](_0x347ee0[_0x12394c(0x1bf)](_0x405726));return!!_0x5f51e9[_0x12394c(0x1b5)][_0x12394c(0x1a7)][_0x12394c(0x1ba)](_0x2895d9)[_0x12394c(0x1c0)]('h1');}[_0x230918(0x1f2)](_0x545426){const _0x5474b8=_0x230918;return this[_0x5474b8(0x1f6)][_0x5474b8(0x1f4)][_0x5474b8(0x1b5)][_0x5474b8(0x1a7)][_0x5474b8(0x197)](this[_0x5474b8(0x1cc)],_0x545426),this[_0x5474b8(0x1cc)][_0x5474b8(0x1f7)];}[_0x230918(0x1c9)](_0x4fe7b7){const _0x45aa93=_0x230918,_0x4403fa=_0x4fe7b7[_0x45aa93(0x198)]();return _0x4403fa[_0x45aa93(0x1b2)](_0x45aa93(0x1a0))?_0x4403fa[_0x45aa93(0x1d2)](_0x45aa93(0x1bc))?_0x4403fa[_0x45aa93(0x19f)](0x7,_0x4403fa[_0x45aa93(0x1b1)]-0x3):_0x4403fa[_0x45aa93(0x19f)](0x7):_0x4fe7b7;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfa188a=_0x4761;(function(_0xb4c819,_0x2a552b){const _0x2ca792=_0x4761,_0x981c79=_0xb4c819();while(!![]){try{const _0x4f21c0=-parseInt(_0x2ca792(0x1d2))/0x1*(parseInt(_0x2ca792(0x1aa))/0x2)+-parseInt(_0x2ca792(0x1c0))/0x3+-parseInt(_0x2ca792(0x192))/0x4*(-parseInt(_0x2ca792(0x1d5))/0x5)+parseInt(_0x2ca792(0x199))/0x6+parseInt(_0x2ca792(0x188))/0x7*(-parseInt(_0x2ca792(0x18e))/0x8)+-parseInt(_0x2ca792(0x1ca))/0x9*(parseInt(_0x2ca792(0x191))/0xa)+parseInt(_0x2ca792(0x18a))/0xb;if(_0x4f21c0===_0x2a552b)break;else _0x981c79['push'](_0x981c79['shift']());}catch(_0x481f5e){_0x981c79['push'](_0x981c79['shift']());}}}(_0x322a,0x9f882));function _0x4761(_0x2d053e,_0x20a420){const _0x322a5d=_0x322a();return _0x4761=function(_0x4761f8,_0xf93001){_0x4761f8=_0x4761f8-0x186;let _0x8c0bf6=_0x322a5d[_0x4761f8];return _0x8c0bf6;},_0x4761(_0x2d053e,_0x20a420);}import{global as _0x513771}from'ckeditor5/src/utils.js';import{View as _0x3b0998,ButtonView as _0xc48fd1,SpinnerView as _0x19cd94}from'ckeditor5/src/ui.js';import{IconCheck as _0x2ac23d,IconCopy as _0x4710fe}from'ckeditor5/src/icons.js';function _0x322a(){const _0x231400=['setTemplate','ck-content','render','.ck-ai-form__loader','class','_createLoader','querySelector','<span>[</span>','Copy','scrollTo','copyButtonView','clipboard','createRange','createElement','ck-ai-form__loader','_createCopyButton','appendLoader','1120185KRcoJi','isEnabled','loaderView','ClipboardItem','isVisible','setContent','element','remove','value','setEndBefore','9XrgdVg','text/html','ck-ai-form__content-area','bindTemplate','focus','copy','div','body','51WLqqjB','innerHTML','removeAllRanges','355QTzeni','lastElementChild','mousedown','text/plain','<span>]</span>','AI\x20is\x20writing...','isProcessing','smooth','contentFieldView','41643QbnCEE','position','12879218FsFYpp','style','icon','left','920uLJjZv','execCommand','locale','2468790uVDSrP','9272ZSUncR','textContent','-9999px','change:value','bind','ck-reset_all-excluded','setStartAfter','5543376YwFBIj','change:isProcessing','firstElementChild','\x20ck-ai-form__copy-button--copied','ck-ai-form__copy-button-wrapper','ck-ai-form__content-field','ck-ai-form__content-area-wrapper','_copyHTMLToClipboard','execute','scrollHeight','absolute','set','wheel','ck-ai-form__content-area--processing','ck-hidden','appendChild','listenTo','11822gFvBjh','addRange','getSelection','write','ck-ai-form__copy-button'];_0x322a=function(){return _0x231400;};return _0x322a();}import{getTranslation as _0xc18ac2}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x3b0998{[_0xfa188a(0x187)];[_0xfa188a(0x1b9)];constructor(_0x34371b,_0x399347=''){const _0x3f25a5=_0xfa188a;super(_0x34371b),this[_0x3f25a5(0x1a4)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x1c9fff=this[_0x3f25a5(0x1cd)];this[_0x3f25a5(0x187)]=new ContentFieldView(_0x34371b,_0x399347),this[_0x3f25a5(0x1b9)]=this[_0x3f25a5(0x1be)](),this[_0x3f25a5(0x1af)]({'tag':_0x3f25a5(0x1d0),'attributes':{'class':['ck',_0x3f25a5(0x19f),_0x1c9fff['if'](_0x3f25a5(0x1c4),_0x3f25a5(0x1a7),_0x245a2d=>!_0x245a2d)],'tabindex':'-1'},'children':[{'tag':_0x3f25a5(0x1d0),'attributes':{'class':['ck',_0x3f25a5(0x1cc),_0x1c9fff['if'](_0x3f25a5(0x1db),_0x3f25a5(0x1a6))]},'children':[this[_0x3f25a5(0x187)],{'tag':_0x3f25a5(0x1d0),'attributes':{'class':['ck',_0x3f25a5(0x19d)]},'children':[this[_0x3f25a5(0x1b9)]]}]}]});}[_0xfa188a(0x1b1)](){const _0x325dab=_0xfa188a;super[_0x325dab(0x1b1)](),this[_0x325dab(0x1c8)]&&this[_0x325dab(0x187)][_0x325dab(0x1c5)](this[_0x325dab(0x1c8)]);let _0x572813=!0x1;this['on'](_0x325dab(0x195),(_0x10fd01,_0x229a75,_0x4b3eb8)=>{const _0x1a1ae3=_0x325dab,_0xfe1159=!this[_0x1a1ae3(0x187)][_0x1a1ae3(0x1c6)][_0x1a1ae3(0x1b5)](_0x1a1ae3(0x1b2));this[_0x1a1ae3(0x187)][_0x1a1ae3(0x1c5)](_0x4b3eb8),this[_0x1a1ae3(0x1db)]&&_0xfe1159&&!_0x572813&&this[_0x1a1ae3(0x1c6)][_0x1a1ae3(0x1b8)]({'top':this[_0x1a1ae3(0x1c6)][_0x1a1ae3(0x1a2)],'behavior':_0x1a1ae3(0x186)});}),this['on'](_0x325dab(0x19a),(_0x3ec5ea,_0x5e57e4,_0x4fc60d)=>{const _0x3cf3b0=_0x325dab;_0x572813=!0x1,_0x4fc60d?(this[_0x3cf3b0(0x1c8)]=null,this[_0x3cf3b0(0x187)][_0x3cf3b0(0x1bf)]()):this[_0x3cf3b0(0x1c8)]||this[_0x3cf3b0(0x187)][_0x3cf3b0(0x1c5)]('');}),this[_0x325dab(0x1a9)](this[_0x325dab(0x1c6)],_0x325dab(0x1a5),()=>{_0x572813=!0x0;}),this[_0x325dab(0x1a9)](this[_0x325dab(0x1c6)],_0x325dab(0x1d7),()=>{_0x572813=!0x0;});}[_0xfa188a(0x1ce)](){const _0x4745ed=_0xfa188a;this[_0x4745ed(0x1c6)][_0x4745ed(0x1ce)]();}[_0xfa188a(0x1be)](){const _0x709610=_0xfa188a,_0x33424c=this[_0x709610(0x190)],_0x27ecb=new _0xc48fd1(this[_0x709610(0x190)]),_0x5acdf6=_0x709610(0x1ae);return _0x27ecb[_0x709610(0x1a4)]({'label':_0xc18ac2(_0x33424c,_0x709610(0x1b7)),'icon':_0x4710fe,'class':_0x5acdf6,'tooltip':!0x0}),_0x27ecb[_0x709610(0x196)](_0x709610(0x1c4))['to'](this,_0x709610(0x1c8),_0x83a493=>!!_0x83a493),_0x27ecb[_0x709610(0x196)](_0x709610(0x1c1))['to'](this,_0x709610(0x1db),_0x290b78=>!_0x290b78),_0x27ecb['on'](_0x709610(0x1a1),()=>{const _0x146b47=_0x709610;this[_0x146b47(0x1a0)](this[_0x146b47(0x187)][_0x146b47(0x1c6)]),_0x27ecb[_0x146b47(0x18c)]=_0x2ac23d,_0x27ecb[_0x146b47(0x1b3)]=_0x5acdf6+_0x146b47(0x19c),this[_0x146b47(0x1ce)](),setTimeout(()=>{const _0x18edb8=_0x146b47;_0x27ecb[_0x18edb8(0x18c)]=_0x4710fe,_0x27ecb[_0x18edb8(0x1b3)]=_0x5acdf6;},0x3e8);}),_0x27ecb;}[_0xfa188a(0x1a0)](_0x2764c7){const _0x5345c6=_0xfa188a,{window:_0x417012,document:_0x1f7beb}=_0x513771;if(_0x417012[_0x5345c6(0x1c3)]){const {Blob:_0x197b5a,ClipboardItem:_0xd645ee}=_0x417012,_0x4208ef=[new _0xd645ee({'text/html':new _0x197b5a([_0x2764c7[_0x5345c6(0x1d3)]],{'type':_0x5345c6(0x1cb)}),'text/plain':new _0x197b5a([_0x2764c7[_0x5345c6(0x193)]||''],{'type':_0x5345c6(0x1d8)})})];navigator[_0x5345c6(0x1ba)][_0x5345c6(0x1ad)](_0x4208ef);}else{const _0x56eb3a=_0x1f7beb[_0x5345c6(0x1bc)](_0x5345c6(0x1d0));_0x56eb3a[_0x5345c6(0x18b)][_0x5345c6(0x189)]=_0x5345c6(0x1a3),_0x56eb3a[_0x5345c6(0x18b)][_0x5345c6(0x18d)]=_0x5345c6(0x194),_0x56eb3a[_0x5345c6(0x1d3)]=_0x5345c6(0x1b6)+_0x2764c7[_0x5345c6(0x1d3)]+_0x5345c6(0x1d9),_0x1f7beb[_0x5345c6(0x1d1)][_0x5345c6(0x1a8)](_0x56eb3a);const _0x573fdf=_0x1f7beb[_0x5345c6(0x1bb)]();_0x573fdf[_0x5345c6(0x198)](_0x56eb3a[_0x5345c6(0x19b)]),_0x573fdf[_0x5345c6(0x1c9)](_0x56eb3a[_0x5345c6(0x1d6)]);const _0x39e879=_0x417012[_0x5345c6(0x1ac)]();_0x39e879[_0x5345c6(0x1d4)](),_0x39e879[_0x5345c6(0x1ab)](_0x573fdf),_0x1f7beb[_0x5345c6(0x18f)](_0x5345c6(0x1cf)),_0x56eb3a[_0x5345c6(0x1c7)]();}}}export class ContentFieldView extends _0x3b0998{constructor(_0x128a23,_0x577ba5=''){const _0x369717=_0xfa188a;super(_0x128a23),this[_0x369717(0x1c2)]=this[_0x369717(0x1b4)](),this[_0x369717(0x1af)]({'tag':_0x369717(0x1d0),'attributes':{'class':['ck',_0x369717(0x1b0),_0x577ba5,_0x369717(0x197),_0x369717(0x19e)]}});}[_0xfa188a(0x1c5)](_0x51d855){const _0x3a4a6b=_0xfa188a;this[_0x3a4a6b(0x1c6)][_0x3a4a6b(0x1d3)]=_0x51d855;}[_0xfa188a(0x1bf)](){const _0x5e98c0=_0xfa188a;this[_0x5e98c0(0x1c6)][_0x5e98c0(0x1a8)](this[_0x5e98c0(0x1c2)][_0x5e98c0(0x1c6)]);}[_0xfa188a(0x1b4)](){const _0x5a1043=_0xfa188a,_0xe3b801=new _0x3b0998(),_0x362f6a=this[_0x5a1043(0x190)],_0x4741ba=new _0x19cd94();return _0x4741ba[_0x5a1043(0x1c4)]=!0x0,_0xe3b801[_0x5a1043(0x1af)]({'tag':_0x5a1043(0x1d0),'attributes':{'class':['ck',_0x5a1043(0x1bd)]},'children':[_0x4741ba,{'text':_0xc18ac2(_0x362f6a,_0x5a1043(0x1da))}]}),_0xe3b801[_0x5a1043(0x1b1)](),_0xe3b801;}}
23
+ const _0x2d5a2d=_0x2fe7;function _0x51b6(){const _0x1f93b5=['firstElementChild','copyButtonView','isVisible','ck-content','text/plain','ck-ai-form__content-area--processing','class','setStartAfter','732475zoiyah','removeAllRanges','32QefATo','change:value','set','1080640VqQlEa','ck-ai-form__copy-button','focus','isEnabled','querySelector','render','clipboard','<span>[</span>','setEndBefore','ck-ai-form__copy-button-wrapper','scrollHeight','appendChild','10276317hkBlzW','ck-hidden','_copyHTMLToClipboard','<span>]</span>','isProcessing','lastElementChild','AI\x20is\x20writing...','createElement','listenTo','setContent','execute','addRange','ck-ai-form__content-area','ck-ai-form__content-area-wrapper','execCommand','ck-reset_all-excluded','body','appendLoader','value','_createCopyButton','write','textContent','bindTemplate','copy','smooth','loaderView','locale','wheel','.ck-ai-form__loader','style','83216Rlhusz','mousedown','bind','absolute','innerHTML','getSelection','position','text/html','scrollTo','setTemplate','\x20ck-ai-form__copy-button--copied','remove','change:isProcessing','32gWrehn','createRange','icon','1098762TzucHf','ClipboardItem','ck-ai-form__loader','-9999px','element','675998iolImE','contentFieldView','left','398415oesiNx','Copy','ck-ai-form__content-field','div','_createLoader'];_0x51b6=function(){return _0x1f93b5;};return _0x51b6();}function _0x2fe7(_0x26e264,_0x4bf95f){const _0x51b6e9=_0x51b6();return _0x2fe7=function(_0x2fe7d7,_0x56c864){_0x2fe7d7=_0x2fe7d7-0x9f;let _0x5dc212=_0x51b6e9[_0x2fe7d7];return _0x5dc212;},_0x2fe7(_0x26e264,_0x4bf95f);}(function(_0x5e3405,_0x521f44){const _0x3b411b=_0x2fe7,_0x409be2=_0x5e3405();while(!![]){try{const _0x467208=parseInt(_0x3b411b(0xe5))/0x1+parseInt(_0x3b411b(0xd5))/0x2+-parseInt(_0x3b411b(0xd8))/0x3*(parseInt(_0x3b411b(0xe7))/0x4)+-parseInt(_0x3b411b(0xea))/0x5+-parseInt(_0x3b411b(0xd0))/0x6+parseInt(_0x3b411b(0xc0))/0x7*(parseInt(_0x3b411b(0xcd))/0x8)+parseInt(_0x3b411b(0xa2))/0x9;if(_0x467208===_0x521f44)break;else _0x409be2['push'](_0x409be2['shift']());}catch(_0x14771e){_0x409be2['push'](_0x409be2['shift']());}}}(_0x51b6,0xc2dc0));import{global as _0x2cb10c}from'ckeditor5/src/utils.js';import{View as _0x424019,ButtonView as _0x3d31ac,SpinnerView as _0x424f9e}from'ckeditor5/src/ui.js';import{IconCheck as _0x16f87e,IconCopy as _0x1d3064}from'ckeditor5/src/icons.js';import{getTranslation as _0x5413d8}from'../../utils/common-translations.js';export class AIFormContentArea extends _0x424019{[_0x2d5a2d(0xd6)];[_0x2d5a2d(0xde)];constructor(_0x3a3184,_0x5f1e12=''){const _0x3023d3=_0x2d5a2d;super(_0x3a3184),this[_0x3023d3(0xe9)]({'value':null,'isVisible':!0x1,'isProcessing':!0x1});const _0x18fa34=this[_0x3023d3(0xb8)];this[_0x3023d3(0xd6)]=new ContentFieldView(_0x3a3184,_0x5f1e12),this[_0x3023d3(0xde)]=this[_0x3023d3(0xb5)](),this[_0x3023d3(0xc9)]({'tag':_0x3023d3(0xdb),'attributes':{'class':['ck',_0x3023d3(0xaf),_0x18fa34['if'](_0x3023d3(0xdf),_0x3023d3(0xa3),_0x4476cc=>!_0x4476cc)],'tabindex':'-1'},'children':[{'tag':_0x3023d3(0xdb),'attributes':{'class':['ck',_0x3023d3(0xae),_0x18fa34['if'](_0x3023d3(0xa6),_0x3023d3(0xe2))]},'children':[this[_0x3023d3(0xd6)],{'tag':_0x3023d3(0xdb),'attributes':{'class':['ck',_0x3023d3(0x9f)]},'children':[this[_0x3023d3(0xde)]]}]}]});}[_0x2d5a2d(0xef)](){const _0x431cb3=_0x2d5a2d;super[_0x431cb3(0xef)](),this[_0x431cb3(0xb4)]&&this[_0x431cb3(0xd6)][_0x431cb3(0xab)](this[_0x431cb3(0xb4)]);let _0x4be774=!0x1;this['on'](_0x431cb3(0xe8),(_0x5c9de4,_0x2334b8,_0x3b035e)=>{const _0x356064=_0x431cb3,_0x2d28b0=!this[_0x356064(0xd6)][_0x356064(0xd4)][_0x356064(0xee)](_0x356064(0xbe));this[_0x356064(0xd6)][_0x356064(0xab)](_0x3b035e),this[_0x356064(0xa6)]&&_0x2d28b0&&!_0x4be774&&this[_0x356064(0xd4)][_0x356064(0xc8)]({'top':this[_0x356064(0xd4)][_0x356064(0xa0)],'behavior':_0x356064(0xba)});}),this['on'](_0x431cb3(0xcc),(_0x16adfb,_0x16a6b1,_0x17b0b9)=>{const _0x40415a=_0x431cb3;_0x4be774=!0x1,_0x17b0b9?(this[_0x40415a(0xb4)]=null,this[_0x40415a(0xd6)][_0x40415a(0xb3)]()):this[_0x40415a(0xb4)]||this[_0x40415a(0xd6)][_0x40415a(0xab)]('');}),this[_0x431cb3(0xaa)](this[_0x431cb3(0xd4)],_0x431cb3(0xbd),()=>{_0x4be774=!0x0;}),this[_0x431cb3(0xaa)](this[_0x431cb3(0xd4)],_0x431cb3(0xc1),()=>{_0x4be774=!0x0;});}[_0x2d5a2d(0xec)](){const _0x414906=_0x2d5a2d;this[_0x414906(0xd4)][_0x414906(0xec)]();}[_0x2d5a2d(0xb5)](){const _0xd42b8e=_0x2d5a2d,_0x210dc2=this[_0xd42b8e(0xbc)],_0x38ee5a=new _0x3d31ac(this[_0xd42b8e(0xbc)]),_0x1f01d9=_0xd42b8e(0xeb);return _0x38ee5a[_0xd42b8e(0xe9)]({'label':_0x5413d8(_0x210dc2,_0xd42b8e(0xd9)),'icon':_0x1d3064,'class':_0x1f01d9,'tooltip':!0x0}),_0x38ee5a[_0xd42b8e(0xc2)](_0xd42b8e(0xdf))['to'](this,_0xd42b8e(0xb4),_0x1f8ec3=>!!_0x1f8ec3),_0x38ee5a[_0xd42b8e(0xc2)](_0xd42b8e(0xed))['to'](this,_0xd42b8e(0xa6),_0x4b18f0=>!_0x4b18f0),_0x38ee5a['on'](_0xd42b8e(0xac),()=>{const _0x71ee09=_0xd42b8e;this[_0x71ee09(0xa4)](this[_0x71ee09(0xd6)][_0x71ee09(0xd4)]),_0x38ee5a[_0x71ee09(0xcf)]=_0x16f87e,_0x38ee5a[_0x71ee09(0xe3)]=_0x1f01d9+_0x71ee09(0xca),this[_0x71ee09(0xec)](),setTimeout(()=>{const _0x4b3be7=_0x71ee09;_0x38ee5a[_0x4b3be7(0xcf)]=_0x1d3064,_0x38ee5a[_0x4b3be7(0xe3)]=_0x1f01d9;},0x3e8);}),_0x38ee5a;}[_0x2d5a2d(0xa4)](_0x3c731f){const _0x522630=_0x2d5a2d,{window:_0x2eef30,document:_0x156d31}=_0x2cb10c;if(_0x2eef30[_0x522630(0xd1)]){const {Blob:_0x3a8e76,ClipboardItem:_0x2015ed}=_0x2eef30,_0x57e7d8=[new _0x2015ed({'text/html':new _0x3a8e76([_0x3c731f[_0x522630(0xc4)]],{'type':_0x522630(0xc7)}),'text/plain':new _0x3a8e76([_0x3c731f[_0x522630(0xb7)]||''],{'type':_0x522630(0xe1)})})];navigator[_0x522630(0xf0)][_0x522630(0xb6)](_0x57e7d8);}else{const _0x128fe0=_0x156d31[_0x522630(0xa9)](_0x522630(0xdb));_0x128fe0[_0x522630(0xbf)][_0x522630(0xc6)]=_0x522630(0xc3),_0x128fe0[_0x522630(0xbf)][_0x522630(0xd7)]=_0x522630(0xd3),_0x128fe0[_0x522630(0xc4)]=_0x522630(0xf1)+_0x3c731f[_0x522630(0xc4)]+_0x522630(0xa5),_0x156d31[_0x522630(0xb2)][_0x522630(0xa1)](_0x128fe0);const _0x22f9d5=_0x156d31[_0x522630(0xce)]();_0x22f9d5[_0x522630(0xe4)](_0x128fe0[_0x522630(0xdd)]),_0x22f9d5[_0x522630(0xf2)](_0x128fe0[_0x522630(0xa7)]);const _0x2ca8c5=_0x2eef30[_0x522630(0xc5)]();_0x2ca8c5[_0x522630(0xe6)](),_0x2ca8c5[_0x522630(0xad)](_0x22f9d5),_0x156d31[_0x522630(0xb0)](_0x522630(0xb9)),_0x128fe0[_0x522630(0xcb)]();}}}export class ContentFieldView extends _0x424019{constructor(_0x19f389,_0x10212c=''){const _0x1fc5c2=_0x2d5a2d;super(_0x19f389),this[_0x1fc5c2(0xbb)]=this[_0x1fc5c2(0xdc)](),this[_0x1fc5c2(0xc9)]({'tag':_0x1fc5c2(0xdb),'attributes':{'class':['ck',_0x1fc5c2(0xe0),_0x10212c,_0x1fc5c2(0xb1),_0x1fc5c2(0xda)]}});}[_0x2d5a2d(0xab)](_0x4d7dbf){const _0x3ca234=_0x2d5a2d;this[_0x3ca234(0xd4)][_0x3ca234(0xc4)]=_0x4d7dbf;}[_0x2d5a2d(0xb3)](){const _0x3fe66c=_0x2d5a2d;this[_0x3fe66c(0xd4)][_0x3fe66c(0xa1)](this[_0x3fe66c(0xbb)][_0x3fe66c(0xd4)]);}[_0x2d5a2d(0xdc)](){const _0x4b0184=_0x2d5a2d,_0x393a72=new _0x424019(),_0xb05e85=this[_0x4b0184(0xbc)],_0x53ae5d=new _0x424f9e();return _0x53ae5d[_0x4b0184(0xdf)]=!0x0,_0x393a72[_0x4b0184(0xc9)]({'tag':_0x4b0184(0xdb),'attributes':{'class':['ck',_0x4b0184(0xd2)]},'children':[_0x53ae5d,{'text':_0x5413d8(_0xb05e85,_0x4b0184(0xa8))}]}),_0x393a72[_0x4b0184(0xef)](),_0x393a72;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x59c5cd,_0x34c575){const _0x120ebf=_0x2560,_0x1510bf=_0x59c5cd();while(!![]){try{const _0x2c0744=parseInt(_0x120ebf(0x1d8))/0x1*(-parseInt(_0x120ebf(0x1d7))/0x2)+parseInt(_0x120ebf(0x1d3))/0x3*(-parseInt(_0x120ebf(0x1e3))/0x4)+-parseInt(_0x120ebf(0x1dd))/0x5+parseInt(_0x120ebf(0x1de))/0x6*(parseInt(_0x120ebf(0x1d5))/0x7)+parseInt(_0x120ebf(0x1df))/0x8*(parseInt(_0x120ebf(0x1da))/0x9)+parseInt(_0x120ebf(0x1e1))/0xa*(parseInt(_0x120ebf(0x1e2))/0xb)+parseInt(_0x120ebf(0x1dc))/0xc*(parseInt(_0x120ebf(0x1e0))/0xd);if(_0x2c0744===_0x34c575)break;else _0x1510bf['push'](_0x1510bf['shift']());}catch(_0x16a58b){_0x1510bf['push'](_0x1510bf['shift']());}}}(_0x561a,0xeac3f));function _0x2560(_0x9030fb,_0x551122){const _0x561a57=_0x561a();return _0x2560=function(_0x256078,_0x3c661c){_0x256078=_0x256078-0x1d1;let _0xaac980=_0x561a57[_0x256078];return _0xaac980;},_0x2560(_0x9030fb,_0x551122);}import{IconError as _0xbeca5c}from'ckeditor5/src/icons.js';import{View as _0x551a1d,IconView as _0x37e697}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x551a1d{constructor(_0x19c286,_0x2c1bf2=''){const _0x35cc8c=_0x2560;super(_0x19c286);const _0x22daa7=new _0x37e697(),_0x421f49=this[_0x35cc8c(0x1db)];this[_0x35cc8c(0x1d2)](_0x35cc8c(0x1d6),_0x2c1bf2),_0x22daa7[_0x35cc8c(0x1d9)]=_0xbeca5c,this[_0x35cc8c(0x1e4)]({'tag':_0x35cc8c(0x1d1),'attributes':{'class':['ck',_0x35cc8c(0x1d4)]},'children':[_0x22daa7,{'text':_0x421f49['to'](_0x35cc8c(0x1d6))}]});}}function _0x561a(){const _0x50c514=['ck-ai-form__error','712054xxjFLH','text','2jAFcDB','477057OmTlsE','content','9NMRqyT','bindTemplate','1488ogKVHb','1625080avWPAX','60EwpWGT','776648vSpfdV','60151PbJTHP','50pgWBoo','950202vUadoN','4IfZzYe','setTemplate','div','set','1068861jgikJd'];_0x561a=function(){return _0x50c514;};return _0x561a();}
23
+ (function(_0x5ef1c8,_0x2e22ac){const _0x30b0f4=_0x4e9e,_0x5aefbd=_0x5ef1c8();while(!![]){try{const _0x2d2bff=parseInt(_0x30b0f4(0x204))/0x1+-parseInt(_0x30b0f4(0x203))/0x2*(parseInt(_0x30b0f4(0x201))/0x3)+parseInt(_0x30b0f4(0x1ff))/0x4+-parseInt(_0x30b0f4(0x200))/0x5+parseInt(_0x30b0f4(0x205))/0x6*(-parseInt(_0x30b0f4(0x202))/0x7)+parseInt(_0x30b0f4(0x1f4))/0x8*(parseInt(_0x30b0f4(0x1f6))/0x9)+-parseInt(_0x30b0f4(0x1f8))/0xa*(-parseInt(_0x30b0f4(0x1fe))/0xb);if(_0x2d2bff===_0x2e22ac)break;else _0x5aefbd['push'](_0x5aefbd['shift']());}catch(_0xb7f715){_0x5aefbd['push'](_0x5aefbd['shift']());}}}(_0x3ef6,0x474f4));function _0x3ef6(){const _0x12780e=['1761736pdFset','bindTemplate','18daaPmf','ck-ai-form__error','10OSlGkt','text','setTemplate','div','set','content','1316909VvGlcY','523560ipkbCy','1626335MxUmuv','252237HWUhIc','343jgHrxM','6XrZSFj','257778bhCZyn','9702cBrpMk'];_0x3ef6=function(){return _0x12780e;};return _0x3ef6();}import{IconError as _0x45e6ed}from'ckeditor5/src/icons.js';function _0x4e9e(_0x45a22d,_0xe26760){const _0x3ef656=_0x3ef6();return _0x4e9e=function(_0x4e9e81,_0x32e0ca){_0x4e9e81=_0x4e9e81-0x1f4;let _0x399086=_0x3ef656[_0x4e9e81];return _0x399086;},_0x4e9e(_0x45a22d,_0xe26760);}import{View as _0x2b511a,IconView as _0x209d3c}from'ckeditor5/src/ui.js';export class AIFormErrorView extends _0x2b511a{constructor(_0x46d1d4,_0x2f4420=''){const _0x1f651b=_0x4e9e;super(_0x46d1d4);const _0x50cae4=new _0x209d3c(),_0x377090=this[_0x1f651b(0x1f5)];this[_0x1f651b(0x1fc)](_0x1f651b(0x1f9),_0x2f4420),_0x50cae4[_0x1f651b(0x1fd)]=_0x45e6ed,this[_0x1f651b(0x1fa)]({'tag':_0x1f651b(0x1fb),'attributes':{'class':['ck',_0x1f651b(0x1f7)]},'children':[_0x50cae4,{'text':_0x377090['to'](_0x1f651b(0x1f9))}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11dc14=_0xa904;(function(_0x5bfcd4,_0x23a252){const _0x2ef813=_0xa904,_0x40e9c7=_0x5bfcd4();while(!![]){try{const _0x48279e=parseInt(_0x2ef813(0xc0))/0x1+-parseInt(_0x2ef813(0xc6))/0x2*(-parseInt(_0x2ef813(0xc2))/0x3)+-parseInt(_0x2ef813(0xde))/0x4*(-parseInt(_0x2ef813(0xe2))/0x5)+parseInt(_0x2ef813(0xdb))/0x6*(-parseInt(_0x2ef813(0xd5))/0x7)+parseInt(_0x2ef813(0xd4))/0x8*(-parseInt(_0x2ef813(0xcd))/0x9)+parseInt(_0x2ef813(0xce))/0xa*(-parseInt(_0x2ef813(0xbf))/0xb)+parseInt(_0x2ef813(0xb2))/0xc;if(_0x48279e===_0x23a252)break;else _0x40e9c7['push'](_0x40e9c7['shift']());}catch(_0x3b4af8){_0x40e9c7['push'](_0x40e9c7['shift']());}}}(_0x3d0a,0xe8431));function _0xa904(_0x6abb15,_0x2ead14){const _0x3d0a73=_0x3d0a();return _0xa904=function(_0xa9041,_0x98a6ff){_0xa9041=_0xa9041-0xaa;let _0x3a0c81=_0x3d0a73[_0xa9041];return _0x3a0c81;},_0xa904(_0x6abb15,_0x2ead14);}import{Rect as _0x2c0797,global as _0x53389f,isVisible as _0x57d53b}from'ckeditor5/src/utils.js';import{IconAIHistory as _0x5e45b9,IconSubmit as _0x4a22b9}from'ckeditor5/src/icons.js';import{AutocompleteView as _0x1dfe7e,ButtonView as _0x230056}from'ckeditor5/src/ui.js';import{getTranslation as _0x1cd3a0}from'../../utils/common-translations.js';function _0x3d0a(){const _0x3991f8=['fieldWrapperChildren','History','execute','isEmpty','excludeScrollbarsAndBorders','rtl','fieldView','showHistoryButtonView','element','target','3363300IUqoSD','add','isVisible','locale','children','bind','submit','_createShowHistoryButton','width','left','queryView','set','update','36949UBiAkf','1162903ahGFXS','enter','1074vvfacm','focusFirst','focusLast','window','6166gRYjDL','isOn','_createSubmitButton','fire','focusCycler','render','maxRows','279ofCPst','1610ZXeFsm','resultsView','submitButtonView','ck-ai-form__submit','minRows','focus','117224Tckvao','12218269TrZjYc','right','Submit','value','filteredView','ck-ai-form__toggle-history','6sqPqQc','isEnabled','style','9828XednGa','requestAnimationFrame','uiLanguageDirection','keystrokes','2330UXjveQ','focusableChildren'];_0x3d0a=function(){return _0x3991f8;};return _0x3d0a();}export class AIFormPromptView extends _0x1dfe7e{[_0x11dc14(0xd0)];[_0x11dc14(0xaf)];constructor(_0x5c8c21,_0x44d695){const _0x2d510a=_0x11dc14;super(_0x5c8c21,_0x44d695),this[_0x2d510a(0xbc)][_0x2d510a(0xae)][_0x2d510a(0xd2)]=0x1,this[_0x2d510a(0xbc)][_0x2d510a(0xae)][_0x2d510a(0xcc)]=0x3,this[_0x2d510a(0xd0)]=this[_0x2d510a(0xc8)](),this[_0x2d510a(0xaf)]=this[_0x2d510a(0xb9)](),this[_0x2d510a(0xe3)][_0x2d510a(0xb3)](this[_0x2d510a(0xaf)],0x1),this[_0x2d510a(0xe3)][_0x2d510a(0xb3)](this[_0x2d510a(0xd0)]);}[_0x11dc14(0xcb)](){const _0x232b50=_0x11dc14;super[_0x232b50(0xcb)](),this[_0x232b50(0xbc)][_0x232b50(0xe4)][_0x232b50(0xb3)](this[_0x232b50(0xaf)]),this[_0x232b50(0xb6)][_0x232b50(0xb3)](this[_0x232b50(0xd0)]),this[_0x232b50(0xe1)][_0x232b50(0xbd)](_0x232b50(0xc1),(_0x5b599f,_0x482aef)=>{const _0x3e54d7=_0x232b50;_0x5b599f[_0x3e54d7(0xb1)]==this[_0x3e54d7(0xbc)][_0x3e54d7(0xae)][_0x3e54d7(0xb0)]&&(this[_0x3e54d7(0xb8)](),_0x482aef());});}[_0x11dc14(0xc8)](){const _0x866b8e=_0x11dc14,_0x5c0067=new _0x230056(this[_0x866b8e(0xb5)]),_0x28325c=this[_0x866b8e(0xb5)];return _0x5c0067[_0x866b8e(0xbd)]({'icon':_0x4a22b9,'label':_0x1cd3a0(_0x28325c,_0x866b8e(0xd7)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x866b8e(0xd1)}),_0x5c0067['on'](_0x866b8e(0xaa),()=>{const _0x46e949=_0x866b8e;this[_0x46e949(0xb8)]();}),_0x5c0067[_0x866b8e(0xb7)](_0x866b8e(0xdc))['to'](this[_0x866b8e(0xbc)][_0x866b8e(0xae)],_0x866b8e(0xab),this,_0x866b8e(0xdc),(_0xa91637,_0x10bbdf)=>!_0xa91637&&_0x10bbdf),_0x5c0067;}[_0x11dc14(0xb9)](){const _0xfcb64e=_0x11dc14,_0x5e90f0=new _0x230056(this[_0xfcb64e(0xb5)]),_0x333fc=this[_0xfcb64e(0xcf)],_0x5e6d37=this[_0xfcb64e(0xb5)];_0x5e90f0[_0xfcb64e(0xbd)]({'label':_0x1cd3a0(_0x5e6d37,_0xfcb64e(0xe5)),'withText':!0x1,'icon':_0x5e45b9,'tooltip':!0x0,'tooltipPosition':'sw','class':_0xfcb64e(0xda)}),_0x5e90f0[_0xfcb64e(0xb7)](_0xfcb64e(0xc7))['to'](_0x333fc,_0xfcb64e(0xb4)),_0x5e90f0[_0xfcb64e(0xb7)](_0xfcb64e(0xdc))['to'](this,_0xfcb64e(0xdc)),_0x5e90f0['on'](_0xfcb64e(0xaa),()=>{const _0x1e6b69=_0xfcb64e;_0x333fc[_0x1e6b69(0xb4)]=!_0x333fc[_0x1e6b69(0xb4)],_0x333fc[_0x1e6b69(0xb4)]?this[_0x1e6b69(0xd9)][_0x1e6b69(0xd3)]():this[_0x1e6b69(0xd3)]();});const _0x2488f0=()=>{const _0x43c5df=_0xfcb64e;_0x53389f[_0x43c5df(0xc5)][_0x43c5df(0xdf)](()=>{const _0x9aea89=_0x43c5df;if(_0x57d53b(this[_0x9aea89(0xb0)])){const _0x9f3eb8=new _0x2c0797(this[_0x9aea89(0xbc)][_0x9aea89(0xae)][_0x9aea89(0xb0)]),_0xe9f641=_0x9f3eb8[_0x9aea89(0xba)],_0x59d951=_0x9aea89(0xad)===_0x5e6d37[_0x9aea89(0xe0)]?_0x9aea89(0xbb):_0x9aea89(0xd6);_0x9f3eb8[_0x9aea89(0xac)](),_0x5e90f0[_0x9aea89(0xb0)][_0x9aea89(0xdd)][_0x59d951]=_0xe9f641-_0x9f3eb8[_0x9aea89(0xba)]+0x1+'px';}});};return this[_0xfcb64e(0xbc)][_0xfcb64e(0xae)]['on'](_0xfcb64e(0xbe),_0x2488f0),this['on'](_0xfcb64e(0xcb),_0x2488f0),_0x5e90f0;}[_0x11dc14(0xb8)](){const _0x843adc=_0x11dc14,_0xe1849f=this[_0x843adc(0xbc)][_0x843adc(0xae)][_0x843adc(0xb0)][_0x843adc(0xd8)];this[_0x843adc(0xc9)](_0x843adc(0xb8),_0xe1849f);}[_0x11dc14(0xd3)](_0x16b4f7){const _0x1be8ed=_0x11dc14;-0x1===_0x16b4f7?this[_0x1be8ed(0xca)][_0x1be8ed(0xc4)]():this[_0x1be8ed(0xca)][_0x1be8ed(0xc3)]();}}
23
+ const _0x1cfa25=_0x2e98;(function(_0x30682c,_0x109386){const _0x1f6df2=_0x2e98,_0x409e75=_0x30682c();while(!![]){try{const _0x30ac20=parseInt(_0x1f6df2(0xf7))/0x1+-parseInt(_0x1f6df2(0xc2))/0x2*(-parseInt(_0x1f6df2(0xf4))/0x3)+-parseInt(_0x1f6df2(0xf8))/0x4*(-parseInt(_0x1f6df2(0xf2))/0x5)+-parseInt(_0x1f6df2(0xf0))/0x6*(-parseInt(_0x1f6df2(0xe5))/0x7)+-parseInt(_0x1f6df2(0xe0))/0x8*(parseInt(_0x1f6df2(0xfb))/0x9)+parseInt(_0x1f6df2(0xe2))/0xa+-parseInt(_0x1f6df2(0xc7))/0xb;if(_0x30ac20===_0x109386)break;else _0x409e75['push'](_0x409e75['shift']());}catch(_0x5bb328){_0x409e75['push'](_0x409e75['shift']());}}}(_0x3945,0xe7217));import{Rect as _0x305e5c,global as _0x2dae10,isVisible as _0x15f9cf}from'ckeditor5/src/utils.js';function _0x2e98(_0x1b56e9,_0x241f01){const _0x3945fd=_0x3945();return _0x2e98=function(_0x2e98b5,_0x2cae43){_0x2e98b5=_0x2e98b5-0xc2;let _0x13aee9=_0x3945fd[_0x2e98b5];return _0x13aee9;},_0x2e98(_0x1b56e9,_0x241f01);}import{IconAIHistory as _0x1f9153,IconSubmit as _0x34a478}from'ckeditor5/src/icons.js';function _0x3945(){const _0x2add08=['focusFirst','locale','14609243ltxKqW','isEmpty','render','rtl','right','isVisible','bind','requestAnimationFrame','showHistoryButtonView','focusCycler','fire','_createSubmitButton','queryView','left','ck-ai-form__toggle-history','set','children','focus','submit','minRows','History','element','filteredView','ck-ai-form__submit','submitButtonView','13775728ztkEIY','enter','12039850oAHYhg','execute','style','49JfgqPP','_createShowHistoryButton','update','isEnabled','uiLanguageDirection','Submit','window','maxRows','isOn','resultsView','value','131952Zxtmce','fieldView','69585EVxmIR','fieldWrapperChildren','3LHIXGj','focusLast','focusableChildren','1360185uHPzbR','12QLWCbt','width','keystrokes','9MPMTuk','add','2473850jRvfio','excludeScrollbarsAndBorders','target'];_0x3945=function(){return _0x2add08;};return _0x3945();}import{AutocompleteView as _0x5eea35,ButtonView as _0xa23c8a}from'ckeditor5/src/ui.js';import{getTranslation as _0x466b5a}from'../../utils/common-translations.js';export class AIFormPromptView extends _0x5eea35{[_0x1cfa25(0xdf)];[_0x1cfa25(0xcf)];constructor(_0x252e1b,_0x10f3af){const _0x401213=_0x1cfa25;super(_0x252e1b,_0x10f3af),this[_0x401213(0xd3)][_0x401213(0xf1)][_0x401213(0xda)]=0x1,this[_0x401213(0xd3)][_0x401213(0xf1)][_0x401213(0xec)]=0x3,this[_0x401213(0xdf)]=this[_0x401213(0xd2)](),this[_0x401213(0xcf)]=this[_0x401213(0xe6)](),this[_0x401213(0xf6)][_0x401213(0xfc)](this[_0x401213(0xcf)],0x1),this[_0x401213(0xf6)][_0x401213(0xfc)](this[_0x401213(0xdf)]);}[_0x1cfa25(0xc9)](){const _0x19e292=_0x1cfa25;super[_0x19e292(0xc9)](),this[_0x19e292(0xd3)][_0x19e292(0xf3)][_0x19e292(0xfc)](this[_0x19e292(0xcf)]),this[_0x19e292(0xd7)][_0x19e292(0xfc)](this[_0x19e292(0xdf)]),this[_0x19e292(0xfa)][_0x19e292(0xd6)](_0x19e292(0xe1),(_0x42df26,_0x20a4cb)=>{const _0x418188=_0x19e292;_0x42df26[_0x418188(0xc4)]==this[_0x418188(0xd3)][_0x418188(0xf1)][_0x418188(0xdc)]&&(this[_0x418188(0xd9)](),_0x20a4cb());});}[_0x1cfa25(0xd2)](){const _0x3f051c=_0x1cfa25,_0x3ddd49=new _0xa23c8a(this[_0x3f051c(0xc6)]),_0x17dca4=this[_0x3f051c(0xc6)];return _0x3ddd49[_0x3f051c(0xd6)]({'icon':_0x34a478,'label':_0x466b5a(_0x17dca4,_0x3f051c(0xea)),'isVisible':!0x0,'tooltip':!0x0,'class':_0x3f051c(0xde)}),_0x3ddd49['on'](_0x3f051c(0xe3),()=>{const _0xa6e257=_0x3f051c;this[_0xa6e257(0xd9)]();}),_0x3ddd49[_0x3f051c(0xcd)](_0x3f051c(0xe8))['to'](this[_0x3f051c(0xd3)][_0x3f051c(0xf1)],_0x3f051c(0xc8),this,_0x3f051c(0xe8),(_0x49dc8b,_0x6f8319)=>!_0x49dc8b&&_0x6f8319),_0x3ddd49;}[_0x1cfa25(0xe6)](){const _0x5effd7=_0x1cfa25,_0x5f0271=new _0xa23c8a(this[_0x5effd7(0xc6)]),_0x6709c2=this[_0x5effd7(0xee)],_0xdb952a=this[_0x5effd7(0xc6)];_0x5f0271[_0x5effd7(0xd6)]({'label':_0x466b5a(_0xdb952a,_0x5effd7(0xdb)),'withText':!0x1,'icon':_0x1f9153,'tooltip':!0x0,'tooltipPosition':'sw','class':_0x5effd7(0xd5)}),_0x5f0271[_0x5effd7(0xcd)](_0x5effd7(0xed))['to'](_0x6709c2,_0x5effd7(0xcc)),_0x5f0271[_0x5effd7(0xcd)](_0x5effd7(0xe8))['to'](this,_0x5effd7(0xe8)),_0x5f0271['on'](_0x5effd7(0xe3),()=>{const _0x2ecd29=_0x5effd7;_0x6709c2[_0x2ecd29(0xcc)]=!_0x6709c2[_0x2ecd29(0xcc)],_0x6709c2[_0x2ecd29(0xcc)]?this[_0x2ecd29(0xdd)][_0x2ecd29(0xd8)]():this[_0x2ecd29(0xd8)]();});const _0x1f8ccb=()=>{const _0x65cb63=_0x5effd7;_0x2dae10[_0x65cb63(0xeb)][_0x65cb63(0xce)](()=>{const _0x744b3=_0x65cb63;if(_0x15f9cf(this[_0x744b3(0xdc)])){const _0x5c82bf=new _0x305e5c(this[_0x744b3(0xd3)][_0x744b3(0xf1)][_0x744b3(0xdc)]),_0x4e3bab=_0x5c82bf[_0x744b3(0xf9)],_0x3cf355=_0x744b3(0xca)===_0xdb952a[_0x744b3(0xe9)]?_0x744b3(0xd4):_0x744b3(0xcb);_0x5c82bf[_0x744b3(0xc3)](),_0x5f0271[_0x744b3(0xdc)][_0x744b3(0xe4)][_0x3cf355]=_0x4e3bab-_0x5c82bf[_0x744b3(0xf9)]+0x1+'px';}});};return this[_0x5effd7(0xd3)][_0x5effd7(0xf1)]['on'](_0x5effd7(0xe7),_0x1f8ccb),this['on'](_0x5effd7(0xc9),_0x1f8ccb),_0x5f0271;}[_0x1cfa25(0xd9)](){const _0x3b2e49=_0x1cfa25,_0x4e413d=this[_0x3b2e49(0xd3)][_0x3b2e49(0xf1)][_0x3b2e49(0xdc)][_0x3b2e49(0xef)];this[_0x3b2e49(0xd1)](_0x3b2e49(0xd9),_0x4e413d);}[_0x1cfa25(0xd8)](_0x501a91){const _0x43b89c=_0x1cfa25;-0x1===_0x501a91?this[_0x43b89c(0xd0)][_0x43b89c(0xf5)]():this[_0x43b89c(0xd0)][_0x43b89c(0xc5)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b4e55=_0x4773;(function(_0xb9fd8d,_0x529124){const _0x148c0e=_0x4773,_0x1b0435=_0xb9fd8d();while(!![]){try{const _0x2b036b=-parseInt(_0x148c0e(0x86))/0x1+parseInt(_0x148c0e(0x6e))/0x2+parseInt(_0x148c0e(0x80))/0x3*(parseInt(_0x148c0e(0x7d))/0x4)+-parseInt(_0x148c0e(0x8f))/0x5*(parseInt(_0x148c0e(0x8a))/0x6)+-parseInt(_0x148c0e(0x79))/0x7+parseInt(_0x148c0e(0x75))/0x8*(parseInt(_0x148c0e(0x74))/0x9)+parseInt(_0x148c0e(0x90))/0xa;if(_0x2b036b===_0x529124)break;else _0x1b0435['push'](_0x1b0435['shift']());}catch(_0x399740){_0x1b0435['push'](_0x1b0435['shift']());}}}(_0x5d06,0x6abeb));import{ToolbarView as _0x513c4c,ButtonView as _0x11fa19}from'ckeditor5/src/ui.js';import{getTranslation as _0x544e86}from'../../utils/common-translations.js';function _0x4773(_0x1180a3,_0x3a4493){const _0x5d067a=_0x5d06();return _0x4773=function(_0x47732a,_0x225c46){_0x47732a=_0x47732a-0x6d;let _0x3b0a50=_0x5d067a[_0x47732a];return _0x3b0a50;},_0x4773(_0x1180a3,_0x3a4493);}function _0x5d06(){const _0x59f8df=['isVisible','3116393TtEznf','Try\x20again','replaceButton','bind','760148wvdJrj','label','ck-ai-form__toolbar','9Oqugzv','ck-button-action','tryAgainButton','_CONTENT','Insert\x20below','addMany','690720YsqCdr','replace','stopButton','bindTemplate','12qyDhfB','items','set','extendTemplate','_createButton','483740rErWOA','3138290VEzkED','Stop','insert','1722360etPJqf','mainAction','ck-hidden','AI_','REPLACE','locale','9zLCuhq','172176srrnzJ','toUpperCase','insertButton'];_0x5d06=function(){return _0x59f8df;};return _0x5d06();}export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x4b4e55(0x87),'INSERT':_0x4b4e55(0x6d)};export class AIFormToolbarView extends _0x513c4c{constructor(_0x4937c0){const _0xfb7975=_0x4b4e55;super(_0x4937c0),this[_0xfb7975(0x8c)](_0xfb7975(0x78),!0x1),this[_0xfb7975(0x8c)](_0xfb7975(0x6f),AIFormToolbarViewMainActionLabel[_0xfb7975(0x72)]),this[_0xfb7975(0x7b)]=this[_0xfb7975(0x8e)]('',_0xfb7975(0x81)),this[_0xfb7975(0x7b)][_0xfb7975(0x7c)](_0xfb7975(0x7e))['to'](this,_0xfb7975(0x6f),_0x2f7a49=>_0x544e86(_0x4937c0,_0xfb7975(0x71)+_0x2f7a49[_0xfb7975(0x76)]()+_0xfb7975(0x83))),this[_0xfb7975(0x77)]=this[_0xfb7975(0x8e)](_0x544e86(_0x4937c0,_0xfb7975(0x84))),this[_0xfb7975(0x82)]=this[_0xfb7975(0x8e)](_0x544e86(_0x4937c0,_0xfb7975(0x7a))),this[_0xfb7975(0x88)]=this[_0xfb7975(0x8e)](_0x544e86(_0x4937c0,_0xfb7975(0x91)));const _0x591c78=this[_0xfb7975(0x89)];this[_0xfb7975(0x8d)]({'attributes':{'class':[_0xfb7975(0x7f),_0x591c78['if'](_0xfb7975(0x78),_0xfb7975(0x70),_0x351845=>!_0x351845)]}}),this[_0xfb7975(0x8b)][_0xfb7975(0x85)]([this[_0xfb7975(0x7b)],this[_0xfb7975(0x77)],this[_0xfb7975(0x82)],this[_0xfb7975(0x88)]]);}[_0x4b4e55(0x8e)](_0x7168f3,_0x3c507a){const _0x52c227=_0x4b4e55,_0x540241=new _0x11fa19(this[_0x52c227(0x73)]);return _0x540241[_0x52c227(0x8c)]({'label':_0x7168f3,'class':_0x3c507a||'','isVisible':!0x0,'withText':!0x0}),_0x540241;}}
23
+ const _0x409013=_0x36c1;(function(_0x2ccf01,_0x28b582){const _0x51aa0b=_0x36c1,_0x288c2d=_0x2ccf01();while(!![]){try{const _0x3e1e50=-parseInt(_0x51aa0b(0x19b))/0x1*(-parseInt(_0x51aa0b(0x1a8))/0x2)+parseInt(_0x51aa0b(0x19e))/0x3*(-parseInt(_0x51aa0b(0x1a3))/0x4)+-parseInt(_0x51aa0b(0x18d))/0x5*(parseInt(_0x51aa0b(0x19d))/0x6)+-parseInt(_0x51aa0b(0x188))/0x7+parseInt(_0x51aa0b(0x1a6))/0x8*(parseInt(_0x51aa0b(0x197))/0x9)+-parseInt(_0x51aa0b(0x18e))/0xa+parseInt(_0x51aa0b(0x193))/0xb;if(_0x3e1e50===_0x28b582)break;else _0x288c2d['push'](_0x288c2d['shift']());}catch(_0x45c960){_0x288c2d['push'](_0x288c2d['shift']());}}}(_0x5d42,0xee848));function _0x5d42(){const _0x67dc65=['set','REPLACE','toUpperCase','3920526Inixld','stopButton','replace','insertButton','2eeGyrw','isVisible','56706KRKUiz','3CSUykA','Try\x20again','_createButton','items','ck-hidden','1468680nYkiYE','locale','bindTemplate','24dFyRZQ','addMany','1292108gMoEot','Insert\x20below','extendTemplate','_CONTENT','replaceButton','tryAgainButton','12760118DomrYO','insert','label','ck-button-action','bind','815ohBBpV','8485170IfXwsf','Stop','AI_','mainAction','ck-ai-form__toolbar','32528012vmhmYV'];_0x5d42=function(){return _0x67dc65;};return _0x5d42();}function _0x36c1(_0xbb83d1,_0x45c9b6){const _0x5d42df=_0x5d42();return _0x36c1=function(_0x36c1e3,_0x9d6328){_0x36c1e3=_0x36c1e3-0x186;let _0x1d90c0=_0x5d42df[_0x36c1e3];return _0x1d90c0;},_0x36c1(_0xbb83d1,_0x45c9b6);}import{ToolbarView as _0x164d05,ButtonView as _0x203593}from'ckeditor5/src/ui.js';import{getTranslation as _0x314832}from'../../utils/common-translations.js';export const AIFormToolbarViewMainActionLabel={'REPLACE':_0x409013(0x199),'INSERT':_0x409013(0x189)};export class AIFormToolbarView extends _0x164d05{constructor(_0x1909ca){const _0x254e29=_0x409013;super(_0x1909ca),this[_0x254e29(0x194)](_0x254e29(0x19c),!0x1),this[_0x254e29(0x194)](_0x254e29(0x191),AIFormToolbarViewMainActionLabel[_0x254e29(0x195)]),this[_0x254e29(0x186)]=this[_0x254e29(0x1a0)]('',_0x254e29(0x18b)),this[_0x254e29(0x186)][_0x254e29(0x18c)](_0x254e29(0x18a))['to'](this,_0x254e29(0x191),_0x1ce18e=>_0x314832(_0x1909ca,_0x254e29(0x190)+_0x1ce18e[_0x254e29(0x196)]()+_0x254e29(0x1ab))),this[_0x254e29(0x19a)]=this[_0x254e29(0x1a0)](_0x314832(_0x1909ca,_0x254e29(0x1a9))),this[_0x254e29(0x187)]=this[_0x254e29(0x1a0)](_0x314832(_0x1909ca,_0x254e29(0x19f))),this[_0x254e29(0x198)]=this[_0x254e29(0x1a0)](_0x314832(_0x1909ca,_0x254e29(0x18f)));const _0xda8fb0=this[_0x254e29(0x1a5)];this[_0x254e29(0x1aa)]({'attributes':{'class':[_0x254e29(0x192),_0xda8fb0['if'](_0x254e29(0x19c),_0x254e29(0x1a2),_0x508550=>!_0x508550)]}}),this[_0x254e29(0x1a1)][_0x254e29(0x1a7)]([this[_0x254e29(0x186)],this[_0x254e29(0x19a)],this[_0x254e29(0x187)],this[_0x254e29(0x198)]]);}[_0x409013(0x1a0)](_0x335328,_0x27d855){const _0x2f6166=_0x409013,_0x4357c6=new _0x203593(this[_0x2f6166(0x1a4)]);return _0x4357c6[_0x2f6166(0x194)]({'label':_0x335328,'class':_0x27d855||'','isVisible':!0x0,'withText':!0x0}),_0x4357c6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x64320b=_0x303f;(function(_0xa84e9b,_0x4505a6){const _0xd0a61a=_0x303f,_0x4c0a53=_0xa84e9b();while(!![]){try{const _0x1db341=-parseInt(_0xd0a61a(0x1a2))/0x1*(-parseInt(_0xd0a61a(0x197))/0x2)+parseInt(_0xd0a61a(0x192))/0x3*(-parseInt(_0xd0a61a(0x1a5))/0x4)+-parseInt(_0xd0a61a(0x1c1))/0x5+parseInt(_0xd0a61a(0x1a7))/0x6*(parseInt(_0xd0a61a(0x184))/0x7)+-parseInt(_0xd0a61a(0x1b0))/0x8*(parseInt(_0xd0a61a(0x17f))/0x9)+parseInt(_0xd0a61a(0x17a))/0xa+parseInt(_0xd0a61a(0x1b4))/0xb*(parseInt(_0xd0a61a(0x1bb))/0xc);if(_0x1db341===_0x4505a6)break;else _0x4c0a53['push'](_0x4c0a53['shift']());}catch(_0x3a33f3){_0x4c0a53['push'](_0x4c0a53['shift']());}}}(_0x4464,0xdddbd));import{FocusTracker as _0x5bcd1f,KeystrokeHandler as _0x1a7118}from'ckeditor5/src/utils.js';import{View as _0x828c46,FocusCycler as _0x4d2644,createLabeledTextarea as _0x3d2284}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0xe1558e,AIFormToolbarViewMainActionLabel as _0x549cba}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x56c0d5}from'./aiformcontentarea.js';import{AIFormErrorView as _0x455500}from'./aiformerrorview.js';import{AIFormPromptView as _0xc6a9b2}from'./aiformpromptview.js';import{AIHistoryListView as _0x342a98}from'./aihistorylistview.js';function _0x303f(_0x27b574,_0x5071a7){const _0x446414=_0x4464();return _0x303f=function(_0x303fef,_0x1de6a1){_0x303fef=_0x303fef-0x16b;let _0x41993f=_0x446414[_0x303fef];return _0x41993f;},_0x303f(_0x27b574,_0x5071a7);}import{AIHistoryListItemView as _0x112e09}from'./aihistorylistitemview.js';function _0x4464(){const _0x3d757a=['contentArea','element','fieldView','chain','text','set','value','56524xTrruz','_createHistoryView','tab','12CjGgyr','submitPrompt','3354rDSNYx','insertContentBelow','handleError','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','_focusables','finishProcessing','AI_ERROR_FAILED','search','setTemplate','368EDEmRH','isError','errorView','clear','143xBGVLS','replaceButton','historyGroupView','label','render','listenTo','tryAgainButton','2113188eQwCGR','focusCycler','div','_createToolbar','Ask\x20AI\x20to\x20improve\x20generated\x20text','bindTo','1314540mCSlli','ck-hidden','prompt','Empty\x20history','promptView','startProcessing','stopProcessing','focusFirst','focus','_promptHistory','isProcessing','REPLACE','submit','isEnabled','queryView','add','1858680cTvyFA','tryAgainEvent','locale','replaceContent','items','183672kFqrEO','createCollection','ck-ai-form','delegate','toolbar','2345isQsjA','Ask\x20AI\x20to\x20edit\x20or\x20generate','shift\x20+\x20tab','keystrokes','insertButton','fire','clearHistory','trim','execute','isVisible','bind','_createPromptView','focusTracker','stopButton','1117251OnSkZb','focusLast','bindTemplate','high','ck-ai-form-content','20EcOyuZ','reset','mainAction','copyButtonView'];_0x4464=function(){return _0x3d757a;};return _0x4464();}import{PromptHistory as _0x3f783a}from'./prompthistory.js';import{getTranslation as _0x1797ed}from'../../utils/common-translations.js';import{escape as _0x3c5e1a}from'es-toolkit/compat';export class AIFormView extends _0x828c46{[_0x64320b(0x190)];[_0x64320b(0x187)];[_0x64320b(0x19b)];[_0x64320b(0x183)];[_0x64320b(0x16e)];[_0x64320b(0x1b2)];[_0x64320b(0x1ab)];[_0x64320b(0x1bc)];[_0x64320b(0x173)];constructor(_0x164020,_0xd272b9,_0x33c166=''){const _0x173ecf=_0x64320b;super(_0x164020),this[_0x173ecf(0x1a0)](_0x173ecf(0x177),!0x0),this[_0x173ecf(0x1a0)](_0x173ecf(0x174),!0x1),this[_0x173ecf(0x1a0)](_0x173ecf(0x16c),''),this[_0x173ecf(0x1a0)](_0x173ecf(0x1a1),''),this[_0x173ecf(0x1a0)](_0x173ecf(0x1b1),!0x1),this[_0x173ecf(0x1a0)](_0x173ecf(0x199),_0x549cba[_0x173ecf(0x175)]),this[_0x173ecf(0x173)]=new _0x3f783a(),this[_0x173ecf(0x1b2)]=new _0x455500(_0x164020),this[_0x173ecf(0x19b)]=new _0x56c0d5(_0x164020,_0x33c166),this[_0x173ecf(0x19b)][_0x173ecf(0x18e)](_0x173ecf(0x174))['to'](this),this[_0x173ecf(0x19b)][_0x173ecf(0x18e)](_0x173ecf(0x1a1))['to'](this),this[_0x173ecf(0x183)]=this[_0x173ecf(0x1be)](),this[_0x173ecf(0x183)][_0x173ecf(0x18e)](_0x173ecf(0x199))['to'](this),this[_0x173ecf(0x16e)]=this[_0x173ecf(0x18f)](),this[_0x173ecf(0x190)]=new _0x5bcd1f(),this[_0x173ecf(0x187)]=new _0x1a7118(),this[_0x173ecf(0x1ab)]=this[_0x173ecf(0x180)]([this[_0x173ecf(0x19b)],this[_0x173ecf(0x19b)][_0x173ecf(0x19a)],this[_0x173ecf(0x183)],this[_0x173ecf(0x16e)]]),this[_0x173ecf(0x1bc)]=new _0x4d2644({'focusables':this[_0x173ecf(0x1ab)],'focusTracker':this[_0x173ecf(0x190)],'keystrokeHandler':this[_0x173ecf(0x187)],'actions':{'focusPrevious':_0x173ecf(0x186),'focusNext':_0x173ecf(0x1a4)}}),this[_0x173ecf(0x1bc)][_0x173ecf(0x19e)](this[_0x173ecf(0x16e)][_0x173ecf(0x1bc)]),this[_0x173ecf(0x16e)][_0x173ecf(0x178)][_0x173ecf(0x19d)][_0x173ecf(0x18e)](_0x173ecf(0x1a1))['to'](this,_0x173ecf(0x16c));const _0x169bdc=this[_0x173ecf(0x194)];this[_0x173ecf(0x1af)]({'tag':_0x173ecf(0x1bd),'attributes':{'class':['ck',_0x173ecf(0x181),_0xd272b9],'tabindex':'-1'},'children':[{'tag':_0x173ecf(0x1bd),'attributes':{'class':['ck',_0x173ecf(0x196)]},'children':[{'tag':_0x173ecf(0x1bd),'attributes':{'class':[_0x169bdc['if'](_0x173ecf(0x1b1),_0x173ecf(0x16b),_0x1d2a79=>!_0x1d2a79)]},'children':[this[_0x173ecf(0x1b2)]]},this[_0x173ecf(0x19b)],this[_0x173ecf(0x183)],this[_0x173ecf(0x16e)]]}]});}[_0x64320b(0x1b8)](){const _0x40cc6b=_0x64320b;super[_0x40cc6b(0x1b8)](),this[_0x40cc6b(0x190)][_0x40cc6b(0x179)](this[_0x40cc6b(0x19b)][_0x40cc6b(0x19c)]),this[_0x40cc6b(0x190)][_0x40cc6b(0x179)](this[_0x40cc6b(0x19b)][_0x40cc6b(0x19a)][_0x40cc6b(0x19c)]),this[_0x40cc6b(0x190)][_0x40cc6b(0x179)](this[_0x40cc6b(0x183)][_0x40cc6b(0x19c)]),this[_0x40cc6b(0x190)][_0x40cc6b(0x179)](this[_0x40cc6b(0x16e)][_0x40cc6b(0x19c)]),this[_0x40cc6b(0x187)][_0x40cc6b(0x1b9)](this[_0x40cc6b(0x19c)]);}[_0x64320b(0x172)](_0x166d64=0x1){const _0x385ae7=_0x64320b;-0x1===_0x166d64?this[_0x385ae7(0x1bc)][_0x385ae7(0x193)]():this[_0x385ae7(0x1bc)][_0x385ae7(0x171)]();}[_0x64320b(0x198)](){const _0x9d74f=_0x64320b;this[_0x9d74f(0x16c)]='',this[_0x9d74f(0x1a1)]='',this[_0x9d74f(0x1b1)]=!0x1,this[_0x9d74f(0x16e)][_0x9d74f(0x198)](),this[_0x9d74f(0x19b)][_0x9d74f(0x18d)]=!0x1,this[_0x9d74f(0x183)][_0x9d74f(0x18d)]=!0x1;}[_0x64320b(0x18f)](){const _0x509a46=_0x64320b,_0x5c5570=this[_0x509a46(0x17c)],_0x4afd12=new _0xc6a9b2(_0x5c5570,{'queryView':{'label':_0x1797ed(_0x5c5570,_0x509a46(0x185)),'creator':_0x3d2284,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x1797ed(_0x5c5570,_0x509a46(0x16d)),'secondary':_0x1797ed(_0x5c5570,_0x509a46(0x1aa))}}},'filteredView':this[_0x509a46(0x1a3)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4afd12[_0x509a46(0x18e)](_0x509a46(0x177))['to'](this,_0x509a46(0x177),this,_0x509a46(0x174),(_0x436f15,_0x5700e8)=>_0x436f15&&!_0x5700e8),this[_0x509a46(0x1b9)](_0x4afd12,_0x509a46(0x176),(_0x1111d6,_0x3c80d0)=>{const _0x5d47bf=_0x509a46;this[_0x5d47bf(0x16c)]=_0x3c80d0;const _0x513e4d=_0x3c5e1a(_0x3c80d0);this[_0x5d47bf(0x189)](_0x5d47bf(0x1a6),_0x513e4d),_0x3c80d0[_0x5d47bf(0x18b)]()&&this[_0x5d47bf(0x173)][_0x5d47bf(0x179)]({'prompt':_0x513e4d},0x0);},{'priority':_0x509a46(0x195)}),_0x4afd12;}[_0x64320b(0x1a3)](){const _0x3322a5=_0x64320b,_0x88bc34=new _0x342a98(this[_0x3322a5(0x17c)]);return _0x88bc34[_0x3322a5(0x1b6)][_0x3322a5(0x17e)][_0x3322a5(0x1c0)](this[_0x3322a5(0x173)])['as'](_0x112e09),_0x88bc34['on'](_0x3322a5(0x18a),()=>{const _0x35ffac=_0x3322a5;this[_0x35ffac(0x173)][_0x35ffac(0x1b3)](),this[_0x35ffac(0x16e)][_0x35ffac(0x1ae)](''),this[_0x35ffac(0x16e)][_0x35ffac(0x172)]();}),_0x88bc34;}[_0x64320b(0x1be)](){const _0x53ecaa=_0x64320b,_0x2d2532=new _0xe1558e(this[_0x53ecaa(0x17c)]);return _0x2d2532[_0x53ecaa(0x1b5)][_0x53ecaa(0x18e)](_0x53ecaa(0x177))['to'](this,_0x53ecaa(0x177),this,_0x53ecaa(0x174),this,_0x53ecaa(0x1a1),(_0x121e81,_0x33ca22,_0x208f26)=>_0x121e81&&!_0x33ca22&&!!_0x208f26),_0x2d2532[_0x53ecaa(0x1b5)][_0x53ecaa(0x182)](_0x53ecaa(0x18c))['to'](this,_0x53ecaa(0x17d)),_0x2d2532[_0x53ecaa(0x188)][_0x53ecaa(0x18e)](_0x53ecaa(0x177))['to'](this,_0x53ecaa(0x177),this,_0x53ecaa(0x174),this,_0x53ecaa(0x1a1),(_0x345780,_0x47fc0c,_0x577be8)=>_0x345780&&!_0x47fc0c&&!!_0x577be8),_0x2d2532[_0x53ecaa(0x188)][_0x53ecaa(0x182)](_0x53ecaa(0x18c))['to'](this,_0x53ecaa(0x1a8)),_0x2d2532[_0x53ecaa(0x1ba)][_0x53ecaa(0x18e)](_0x53ecaa(0x177))['to'](this,_0x53ecaa(0x177),this,_0x53ecaa(0x174),(_0x52bfe1,_0x320e46)=>_0x52bfe1&&!_0x320e46),_0x2d2532[_0x53ecaa(0x1ba)][_0x53ecaa(0x182)](_0x53ecaa(0x18c))['to'](this,_0x53ecaa(0x17b)),_0x2d2532[_0x53ecaa(0x191)][_0x53ecaa(0x18e)](_0x53ecaa(0x177))['to'](this,_0x53ecaa(0x174)),_0x2d2532[_0x53ecaa(0x191)][_0x53ecaa(0x182)](_0x53ecaa(0x18c))['to'](this,_0x53ecaa(0x170)),_0x2d2532;}[_0x64320b(0x16f)](){const _0xc65e52=_0x64320b;this[_0xc65e52(0x1a1)]='',this[_0xc65e52(0x1b1)]=!0x1,this[_0xc65e52(0x174)]=!0x0,this[_0xc65e52(0x19b)][_0xc65e52(0x18d)]=!0x0,this[_0xc65e52(0x183)][_0xc65e52(0x18d)]=!0x0,this[_0xc65e52(0x19b)][_0xc65e52(0x172)]();}[_0x64320b(0x1ac)](){const _0x363ecf=_0x64320b,_0x200877=this[_0x363ecf(0x17c)];this[_0x363ecf(0x174)]=!0x1,this[_0x363ecf(0x16c)]='',this[_0x363ecf(0x16e)][_0x363ecf(0x198)](),this[_0x363ecf(0x1a1)]&&(this[_0x363ecf(0x16e)][_0x363ecf(0x178)][_0x363ecf(0x1b7)]=_0x1797ed(_0x200877,_0x363ecf(0x1bf)));}[_0x64320b(0x1a9)](_0x515a5a){const _0x77b7ae=_0x64320b,_0x33abd0=this[_0x77b7ae(0x17c)];this[_0x77b7ae(0x1ac)](),this[_0x77b7ae(0x1b1)]=!0x0,this[_0x77b7ae(0x1b2)][_0x77b7ae(0x19f)]=_0x515a5a||_0x1797ed(_0x33abd0,_0x77b7ae(0x1ad)),this[_0x77b7ae(0x1a1)]||(this[_0x77b7ae(0x19b)][_0x77b7ae(0x18d)]=!0x1);}}
23
+ function _0x1e9f(){const _0x4a3110=['chain','clearHistory','listenTo','execute','stopButton','mainAction','Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.','locale','bindTemplate','finishProcessing','_promptHistory','render','replaceButton','1791tUjrAQ','replaceContent','text','Empty\x20history','trim','startProcessing','isEnabled','submitPrompt','focusCycler','promptView','toolbar','focus','33GZNJic','insertButton','errorView','_createHistoryView','_createPromptView','ck-ai-form','stopProcessing','label','set','tab','120gkaNIP','5wHTTXK','focusFirst','tryAgainEvent','isProcessing','fire','value','fieldView','shift\x20+\x20tab','Ask\x20AI\x20to\x20improve\x20generated\x20text','REPLACE','contentArea','3500371wziOEI','ck-hidden','bind','clear','reset','submit','delegate','queryView','element','setTemplate','isError','div','search','createCollection','9757896BrjLwa','_createToolbar','1255150MuarYM','prompt','add','bindTo','tryAgainButton','items','historyGroupView','insertContentBelow','5882836yyfpgt','focusTracker','copyButtonView','55766XCfSZp','isVisible','handleError','1237280NXlrHe','ck-ai-form-content','_focusables','focusLast','keystrokes','61520xiZXyB','AI_ERROR_FAILED','high','3NOfNGm','Ask\x20AI\x20to\x20edit\x20or\x20generate'];_0x1e9f=function(){return _0x4a3110;};return _0x1e9f();}const _0x394a81=_0x160b;(function(_0x48f13c,_0x30f85f){const _0x2cf4fe=_0x160b,_0x38bf26=_0x48f13c();while(!![]){try{const _0x380df4=-parseInt(_0x2cf4fe(0x126))/0x1*(-parseInt(_0x2cf4fe(0x100))/0x2)+parseInt(_0x2cf4fe(0x10b))/0x3*(-parseInt(_0x2cf4fe(0xfd))/0x4)+-parseInt(_0x2cf4fe(0x131))/0x5*(parseInt(_0x2cf4fe(0xf3))/0x6)+parseInt(_0x2cf4fe(0xe5))/0x7+parseInt(_0x2cf4fe(0x108))/0x8*(parseInt(_0x2cf4fe(0x11a))/0x9)+-parseInt(_0x2cf4fe(0xf5))/0xa+-parseInt(_0x2cf4fe(0x103))/0xb*(-parseInt(_0x2cf4fe(0x130))/0xc);if(_0x380df4===_0x30f85f)break;else _0x38bf26['push'](_0x38bf26['shift']());}catch(_0x3953fd){_0x38bf26['push'](_0x38bf26['shift']());}}}(_0x1e9f,0xd031a));import{FocusTracker as _0x2ee0b9,KeystrokeHandler as _0x45814c}from'ckeditor5/src/utils.js';import{View as _0x473f79,FocusCycler as _0x578b75,createLabeledTextarea as _0xbfd266}from'ckeditor5/src/ui.js';import{AIFormToolbarView as _0x3c7142,AIFormToolbarViewMainActionLabel as _0x5f3e7a}from'./aiformtoolbarview.js';import{AIFormContentArea as _0x1bed7f}from'./aiformcontentarea.js';import{AIFormErrorView as _0x967f43}from'./aiformerrorview.js';import{AIFormPromptView as _0x43fddd}from'./aiformpromptview.js';import{AIHistoryListView as _0x57bdd5}from'./aihistorylistview.js';function _0x160b(_0x79e3a,_0x573af7){const _0x1e9fa3=_0x1e9f();return _0x160b=function(_0x160b11,_0x3e752f){_0x160b11=_0x160b11-0xdd;let _0x5c08b9=_0x1e9fa3[_0x160b11];return _0x5c08b9;},_0x160b(_0x79e3a,_0x573af7);}import{AIHistoryListItemView as _0x2dbbcf}from'./aihistorylistitemview.js';import{PromptHistory as _0x218b6d}from'./prompthistory.js';import{getTranslation as _0x2573d4}from'../../utils/common-translations.js';import{escape as _0x234378}from'es-toolkit/compat';export class AIFormView extends _0x473f79{[_0x394a81(0xfe)];[_0x394a81(0x107)];[_0x394a81(0xe4)];[_0x394a81(0x124)];[_0x394a81(0x123)];[_0x394a81(0x128)];[_0x394a81(0x105)];[_0x394a81(0x122)];[_0x394a81(0x117)];constructor(_0x202b70,_0x58a3b9,_0x1c73a2=''){const _0x1c9f64=_0x394a81;super(_0x202b70),this[_0x1c9f64(0x12e)](_0x1c9f64(0x120),!0x0),this[_0x1c9f64(0x12e)](_0x1c9f64(0xdd),!0x1),this[_0x1c9f64(0x12e)](_0x1c9f64(0xf6),''),this[_0x1c9f64(0x12e)](_0x1c9f64(0xdf),''),this[_0x1c9f64(0x12e)](_0x1c9f64(0xef),!0x1),this[_0x1c9f64(0x12e)](_0x1c9f64(0x112),_0x5f3e7a[_0x1c9f64(0xe3)]),this[_0x1c9f64(0x117)]=new _0x218b6d(),this[_0x1c9f64(0x128)]=new _0x967f43(_0x202b70),this[_0x1c9f64(0xe4)]=new _0x1bed7f(_0x202b70,_0x1c73a2),this[_0x1c9f64(0xe4)][_0x1c9f64(0xe7)](_0x1c9f64(0xdd))['to'](this),this[_0x1c9f64(0xe4)][_0x1c9f64(0xe7)](_0x1c9f64(0xdf))['to'](this),this[_0x1c9f64(0x124)]=this[_0x1c9f64(0xf4)](),this[_0x1c9f64(0x124)][_0x1c9f64(0xe7)](_0x1c9f64(0x112))['to'](this),this[_0x1c9f64(0x123)]=this[_0x1c9f64(0x12a)](),this[_0x1c9f64(0xfe)]=new _0x2ee0b9(),this[_0x1c9f64(0x107)]=new _0x45814c(),this[_0x1c9f64(0x105)]=this[_0x1c9f64(0xf2)]([this[_0x1c9f64(0xe4)],this[_0x1c9f64(0xe4)][_0x1c9f64(0xff)],this[_0x1c9f64(0x124)],this[_0x1c9f64(0x123)]]),this[_0x1c9f64(0x122)]=new _0x578b75({'focusables':this[_0x1c9f64(0x105)],'focusTracker':this[_0x1c9f64(0xfe)],'keystrokeHandler':this[_0x1c9f64(0x107)],'actions':{'focusPrevious':_0x1c9f64(0xe1),'focusNext':_0x1c9f64(0x12f)}}),this[_0x1c9f64(0x122)][_0x1c9f64(0x10d)](this[_0x1c9f64(0x123)][_0x1c9f64(0x122)]),this[_0x1c9f64(0x123)][_0x1c9f64(0xec)][_0x1c9f64(0xe0)][_0x1c9f64(0xe7)](_0x1c9f64(0xdf))['to'](this,_0x1c9f64(0xf6));const _0x22478e=this[_0x1c9f64(0x115)];this[_0x1c9f64(0xee)]({'tag':_0x1c9f64(0xf0),'attributes':{'class':['ck',_0x1c9f64(0x12b),_0x58a3b9],'tabindex':'-1'},'children':[{'tag':_0x1c9f64(0xf0),'attributes':{'class':['ck',_0x1c9f64(0x104)]},'children':[{'tag':_0x1c9f64(0xf0),'attributes':{'class':[_0x22478e['if'](_0x1c9f64(0xef),_0x1c9f64(0xe6),_0x39924a=>!_0x39924a)]},'children':[this[_0x1c9f64(0x128)]]},this[_0x1c9f64(0xe4)],this[_0x1c9f64(0x124)],this[_0x1c9f64(0x123)]]}]});}[_0x394a81(0x118)](){const _0x44c4ed=_0x394a81;super[_0x44c4ed(0x118)](),this[_0x44c4ed(0xfe)][_0x44c4ed(0xf7)](this[_0x44c4ed(0xe4)][_0x44c4ed(0xed)]),this[_0x44c4ed(0xfe)][_0x44c4ed(0xf7)](this[_0x44c4ed(0xe4)][_0x44c4ed(0xff)][_0x44c4ed(0xed)]),this[_0x44c4ed(0xfe)][_0x44c4ed(0xf7)](this[_0x44c4ed(0x124)][_0x44c4ed(0xed)]),this[_0x44c4ed(0xfe)][_0x44c4ed(0xf7)](this[_0x44c4ed(0x123)][_0x44c4ed(0xed)]),this[_0x44c4ed(0x107)][_0x44c4ed(0x10f)](this[_0x44c4ed(0xed)]);}[_0x394a81(0x125)](_0x4d711b=0x1){const _0x1ae40c=_0x394a81;-0x1===_0x4d711b?this[_0x1ae40c(0x122)][_0x1ae40c(0x106)]():this[_0x1ae40c(0x122)][_0x1ae40c(0x132)]();}[_0x394a81(0xe9)](){const _0x30ae70=_0x394a81;this[_0x30ae70(0xf6)]='',this[_0x30ae70(0xdf)]='',this[_0x30ae70(0xef)]=!0x1,this[_0x30ae70(0x123)][_0x30ae70(0xe9)](),this[_0x30ae70(0xe4)][_0x30ae70(0x101)]=!0x1,this[_0x30ae70(0x124)][_0x30ae70(0x101)]=!0x1;}[_0x394a81(0x12a)](){const _0x83fecd=_0x394a81,_0x140ec9=this[_0x83fecd(0x114)],_0x4f60f5=new _0x43fddd(_0x140ec9,{'queryView':{'label':_0x2573d4(_0x140ec9,_0x83fecd(0x10c)),'creator':_0xbfd266,'showIcon':!0x1,'showResetButton':!0x1},'infoView':{'text':{'noSearchableItems':{'primary':_0x2573d4(_0x140ec9,_0x83fecd(0x11d)),'secondary':_0x2573d4(_0x140ec9,_0x83fecd(0x113))}}},'filteredView':this[_0x83fecd(0x129)](),'queryMinChars':0x1/0x0,'resetOnBlur':!0x1});return _0x4f60f5[_0x83fecd(0xe7)](_0x83fecd(0x120))['to'](this,_0x83fecd(0x120),this,_0x83fecd(0xdd),(_0x50cce5,_0x4bfac9)=>_0x50cce5&&!_0x4bfac9),this[_0x83fecd(0x10f)](_0x4f60f5,_0x83fecd(0xea),(_0x24d05b,_0x34e64a)=>{const _0x2e17a7=_0x83fecd;this[_0x2e17a7(0xf6)]=_0x34e64a;const _0x26be28=_0x234378(_0x34e64a);this[_0x2e17a7(0xde)](_0x2e17a7(0x121),_0x26be28),_0x34e64a[_0x2e17a7(0x11e)]()&&this[_0x2e17a7(0x117)][_0x2e17a7(0xf7)]({'prompt':_0x26be28},0x0);},{'priority':_0x83fecd(0x10a)}),_0x4f60f5;}[_0x394a81(0x129)](){const _0x1b0d2d=_0x394a81,_0x2bec69=new _0x57bdd5(this[_0x1b0d2d(0x114)]);return _0x2bec69[_0x1b0d2d(0xfb)][_0x1b0d2d(0xfa)][_0x1b0d2d(0xf8)](this[_0x1b0d2d(0x117)])['as'](_0x2dbbcf),_0x2bec69['on'](_0x1b0d2d(0x10e),()=>{const _0x1f2eb2=_0x1b0d2d;this[_0x1f2eb2(0x117)][_0x1f2eb2(0xe8)](),this[_0x1f2eb2(0x123)][_0x1f2eb2(0xf1)](''),this[_0x1f2eb2(0x123)][_0x1f2eb2(0x125)]();}),_0x2bec69;}[_0x394a81(0xf4)](){const _0x47b5bf=_0x394a81,_0x62fa56=new _0x3c7142(this[_0x47b5bf(0x114)]);return _0x62fa56[_0x47b5bf(0x119)][_0x47b5bf(0xe7)](_0x47b5bf(0x120))['to'](this,_0x47b5bf(0x120),this,_0x47b5bf(0xdd),this,_0x47b5bf(0xdf),(_0x16bc05,_0x55fbe4,_0x26bb3c)=>_0x16bc05&&!_0x55fbe4&&!!_0x26bb3c),_0x62fa56[_0x47b5bf(0x119)][_0x47b5bf(0xeb)](_0x47b5bf(0x110))['to'](this,_0x47b5bf(0x11b)),_0x62fa56[_0x47b5bf(0x127)][_0x47b5bf(0xe7)](_0x47b5bf(0x120))['to'](this,_0x47b5bf(0x120),this,_0x47b5bf(0xdd),this,_0x47b5bf(0xdf),(_0x181f65,_0x4eedc4,_0x523427)=>_0x181f65&&!_0x4eedc4&&!!_0x523427),_0x62fa56[_0x47b5bf(0x127)][_0x47b5bf(0xeb)](_0x47b5bf(0x110))['to'](this,_0x47b5bf(0xfc)),_0x62fa56[_0x47b5bf(0xf9)][_0x47b5bf(0xe7)](_0x47b5bf(0x120))['to'](this,_0x47b5bf(0x120),this,_0x47b5bf(0xdd),(_0x499baf,_0x16184e)=>_0x499baf&&!_0x16184e),_0x62fa56[_0x47b5bf(0xf9)][_0x47b5bf(0xeb)](_0x47b5bf(0x110))['to'](this,_0x47b5bf(0x133)),_0x62fa56[_0x47b5bf(0x111)][_0x47b5bf(0xe7)](_0x47b5bf(0x120))['to'](this,_0x47b5bf(0xdd)),_0x62fa56[_0x47b5bf(0x111)][_0x47b5bf(0xeb)](_0x47b5bf(0x110))['to'](this,_0x47b5bf(0x12c)),_0x62fa56;}[_0x394a81(0x11f)](){const _0x136524=_0x394a81;this[_0x136524(0xdf)]='',this[_0x136524(0xef)]=!0x1,this[_0x136524(0xdd)]=!0x0,this[_0x136524(0xe4)][_0x136524(0x101)]=!0x0,this[_0x136524(0x124)][_0x136524(0x101)]=!0x0,this[_0x136524(0xe4)][_0x136524(0x125)]();}[_0x394a81(0x116)](){const _0x191c29=_0x394a81,_0x5c775c=this[_0x191c29(0x114)];this[_0x191c29(0xdd)]=!0x1,this[_0x191c29(0xf6)]='',this[_0x191c29(0x123)][_0x191c29(0xe9)](),this[_0x191c29(0xdf)]&&(this[_0x191c29(0x123)][_0x191c29(0xec)][_0x191c29(0x12d)]=_0x2573d4(_0x5c775c,_0x191c29(0xe2)));}[_0x394a81(0x102)](_0x3acdf8){const _0x3f75f8=_0x394a81,_0x19bc49=this[_0x3f75f8(0x114)];this[_0x3f75f8(0x116)](),this[_0x3f75f8(0xef)]=!0x0,this[_0x3f75f8(0x128)][_0x3f75f8(0x11c)]=_0x3acdf8||_0x2573d4(_0x19bc49,_0x3f75f8(0x109)),this[_0x3f75f8(0xdf)]||(this[_0x3f75f8(0xe4)][_0x3f75f8(0x101)]=!0x1);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2168f9,_0x352580){const _0x4ee450=_0x4736,_0xd5f19e=_0x2168f9();while(!![]){try{const _0x15bc90=-parseInt(_0x4ee450(0xaf))/0x1*(parseInt(_0x4ee450(0xb9))/0x2)+-parseInt(_0x4ee450(0xb4))/0x3*(-parseInt(_0x4ee450(0xb3))/0x4)+-parseInt(_0x4ee450(0xb6))/0x5*(-parseInt(_0x4ee450(0xab))/0x6)+parseInt(_0x4ee450(0xb8))/0x7+-parseInt(_0x4ee450(0xb2))/0x8*(-parseInt(_0x4ee450(0xaa))/0x9)+parseInt(_0x4ee450(0xad))/0xa+parseInt(_0x4ee450(0xb0))/0xb*(-parseInt(_0x4ee450(0xa9))/0xc);if(_0x15bc90===_0x352580)break;else _0xd5f19e['push'](_0xd5f19e['shift']());}catch(_0x352d13){_0xd5f19e['push'](_0xd5f19e['shift']());}}}(_0xb1b5,0xbbd44));function _0x4736(_0x3a47d1,_0x4596a9){const _0xb1b545=_0xb1b5();return _0x4736=function(_0x47363b,_0x193a71){_0x47363b=_0x47363b-0xa9;let _0x19624f=_0xb1b545[_0x47363b];return _0x19624f;},_0x4736(_0x3a47d1,_0x4596a9);}import{ListItemView as _0x4ea2cf,ButtonView as _0x59ad31,ButtonLabelView as _0x2b0250}from'ckeditor5/src/ui.js';function _0xb1b5(){const _0xdd6990=['66vHkBod','prompt','29528cLCeYh','4gZwBUq','3333573qrXHEO','children','2829895RkGTFs','execute','3430175kkTsyf','125052BNAhWP','fire','locale','2031324cQrDIw','36PbpygG','6UEuTlb','add','7910450ubslRb','set','19DxtmhV'];_0xb1b5=function(){return _0xdd6990;};return _0xb1b5();}import{unescape as _0x34840d}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x4ea2cf{constructor(_0x442b58){const _0x4a6681=_0x4736;super();const _0x4205bb=new _0x2b0250(),_0x3669fa=new _0x59ad31(this[_0x4a6681(0xbb)],_0x4205bb);this[_0x4a6681(0xb5)][_0x4a6681(0xac)](_0x3669fa),_0x3669fa[_0x4a6681(0xae)]({'label':_0x442b58[_0x4a6681(0xb1)],'withText':!0x0}),_0x3669fa['on'](_0x4a6681(0xb7),()=>{const _0x125b7d=_0x4a6681;this[_0x125b7d(0xba)](_0x125b7d(0xb7),{'value':_0x34840d(_0x442b58[_0x125b7d(0xb1)])});});}}
23
+ (function(_0xae64e7,_0x1e4663){const _0x289868=_0x804d,_0x225e1d=_0xae64e7();while(!![]){try{const _0x592842=parseInt(_0x289868(0x1d0))/0x1+parseInt(_0x289868(0x1c6))/0x2*(-parseInt(_0x289868(0x1d2))/0x3)+parseInt(_0x289868(0x1d4))/0x4+parseInt(_0x289868(0x1d3))/0x5+-parseInt(_0x289868(0x1c7))/0x6+-parseInt(_0x289868(0x1ca))/0x7+parseInt(_0x289868(0x1cb))/0x8;if(_0x592842===_0x1e4663)break;else _0x225e1d['push'](_0x225e1d['shift']());}catch(_0x228c66){_0x225e1d['push'](_0x225e1d['shift']());}}}(_0x4147,0x4a4b4));import{ListItemView as _0x4dd411,ButtonView as _0x5c8a85,ButtonLabelView as _0x3f0c02}from'ckeditor5/src/ui.js';import{unescape as _0x230c46}from'es-toolkit/compat';export class AIHistoryListItemView extends _0x4dd411{constructor(_0x2404ac){const _0x50e1c1=_0x804d;super();const _0x35dc4d=new _0x3f0c02(),_0x4def2f=new _0x5c8a85(this[_0x50e1c1(0x1d1)],_0x35dc4d);this[_0x50e1c1(0x1ce)][_0x50e1c1(0x1c9)](_0x4def2f),_0x4def2f[_0x50e1c1(0x1cc)]({'label':_0x2404ac[_0x50e1c1(0x1cf)],'withText':!0x0}),_0x4def2f['on'](_0x50e1c1(0x1cd),()=>{const _0xfc507f=_0x50e1c1;this[_0xfc507f(0x1c8)](_0xfc507f(0x1cd),{'value':_0x230c46(_0x2404ac[_0xfc507f(0x1cf)])});});}}function _0x804d(_0x1a536c,_0x548181){const _0x41477b=_0x4147();return _0x804d=function(_0x804d7c,_0x44bd51){_0x804d7c=_0x804d7c-0x1c6;let _0x2ee49b=_0x41477b[_0x804d7c];return _0x2ee49b;},_0x804d(_0x1a536c,_0x548181);}function _0x4147(){const _0xdcaa0c=['259210JUdSJy','682364rHAuuU','4CYwZhJ','1004058QhqnpA','fire','add','725816lhseWW','1822720vrRwlV','set','execute','children','prompt','138758dMRtNI','locale','20538ZpwsKr'];_0x4147=function(){return _0xdcaa0c;};return _0x4147();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e63a1=_0x53b5;function _0x53b5(_0x444eae,_0x2f1fdd){const _0x2fc2cf=_0x2fc2();return _0x53b5=function(_0x53b5ba,_0xb907de){_0x53b5ba=_0x53b5ba-0x17e;let _0x452f45=_0x2fc2cf[_0x53b5ba];return _0x452f45;},_0x53b5(_0x444eae,_0x2f1fdd);}(function(_0x49a552,_0x317c83){const _0x3eb02e=_0x53b5,_0x57db8d=_0x49a552();while(!![]){try{const _0x15c582=-parseInt(_0x3eb02e(0x189))/0x1+parseInt(_0x3eb02e(0x193))/0x2*(-parseInt(_0x3eb02e(0x191))/0x3)+parseInt(_0x3eb02e(0x184))/0x4+-parseInt(_0x3eb02e(0x18d))/0x5+-parseInt(_0x3eb02e(0x18e))/0x6+-parseInt(_0x3eb02e(0x185))/0x7+parseInt(_0x3eb02e(0x17f))/0x8;if(_0x15c582===_0x317c83)break;else _0x57db8d['push'](_0x57db8d['shift']());}catch(_0x260854){_0x57db8d['push'](_0x57db8d['shift']());}}}(_0x2fc2,0x9c76c));import{ListView as _0x13aee9,ListItemGroupView as _0x1b48df,ButtonView as _0x10dec4}from'ckeditor5/src/ui.js';import{getTranslation as _0x385fc7}from'../../utils/common-translations.js';function _0x2fc2(){const _0x31e577=['796701AZVzzO','clearHistory','6fytpCn','filter','add','locale','_createClearHistoryButton','22838312YznnsJ','Clear','length','execute','set','4452528epGKZr','6360438jpHXPm','children','historyGroupView','label','296084vLEJJH','clearHistoryButton','delegate','items','2835500YqeLoU','4551156JtrxZA','fire','Prompt\x20history'];_0x2fc2=function(){return _0x31e577;};return _0x2fc2();}export class AIHistoryListView extends _0x13aee9{[_0x5e63a1(0x187)];[_0x5e63a1(0x18a)];constructor(_0x27a1c3){const _0x2c26d1=_0x5e63a1;super(_0x27a1c3),this[_0x2c26d1(0x18a)]=this[_0x2c26d1(0x17e)](),this[_0x2c26d1(0x187)]=new _0x1b48df(),this[_0x2c26d1(0x187)][_0x2c26d1(0x186)][_0x2c26d1(0x195)](this[_0x2c26d1(0x18a)],0x1),this[_0x2c26d1(0x187)][_0x2c26d1(0x188)]=_0x385fc7(_0x27a1c3,_0x2c26d1(0x190)),this[_0x2c26d1(0x187)][_0x2c26d1(0x18c)][_0x2c26d1(0x18b)](_0x2c26d1(0x182))['to'](this),this[_0x2c26d1(0x18c)][_0x2c26d1(0x195)](this[_0x2c26d1(0x187)]);}[_0x5e63a1(0x194)](){const _0x174920=_0x5e63a1;let _0x34dae2=0x0;for(const _0x3e1953 of this[_0x174920(0x18c)])_0x34dae2+=_0x3e1953[_0x174920(0x18c)][_0x174920(0x181)];return{'resultsCount':_0x34dae2,'totalItemsCount':_0x34dae2};}[_0x5e63a1(0x17e)](){const _0x1f2402=_0x5e63a1,_0x3a1683=this[_0x1f2402(0x196)],_0x533258=new _0x10dec4(this[_0x1f2402(0x196)]);return _0x533258[_0x1f2402(0x183)]({'label':'('+_0x385fc7(_0x3a1683,_0x1f2402(0x180))+')','withText':!0x0}),_0x533258['on'](_0x1f2402(0x182),()=>this[_0x1f2402(0x18f)](_0x1f2402(0x192))),_0x533258;}}
23
+ function _0x7d4c(_0xcb037,_0x723273){const _0x5377ed=_0x5377();return _0x7d4c=function(_0x7d4c5a,_0x5a73f3){_0x7d4c5a=_0x7d4c5a-0xbd;let _0x2c4e74=_0x5377ed[_0x7d4c5a];return _0x2c4e74;},_0x7d4c(_0xcb037,_0x723273);}const _0x1b6da7=_0x7d4c;(function(_0x1ec47f,_0x1fb92a){const _0x27bd3f=_0x7d4c,_0x9d718b=_0x1ec47f();while(!![]){try{const _0x154c14=-parseInt(_0x27bd3f(0xc5))/0x1*(parseInt(_0x27bd3f(0xc9))/0x2)+parseInt(_0x27bd3f(0xd2))/0x3+-parseInt(_0x27bd3f(0xc3))/0x4+-parseInt(_0x27bd3f(0xcf))/0x5*(-parseInt(_0x27bd3f(0xc8))/0x6)+parseInt(_0x27bd3f(0xc0))/0x7+-parseInt(_0x27bd3f(0xc7))/0x8+parseInt(_0x27bd3f(0xbd))/0x9*(parseInt(_0x27bd3f(0xd6))/0xa);if(_0x154c14===_0x1fb92a)break;else _0x9d718b['push'](_0x9d718b['shift']());}catch(_0x46ac28){_0x9d718b['push'](_0x9d718b['shift']());}}}(_0x5377,0x52b8c));import{ListView as _0x3a44d9,ListItemGroupView as _0x1531db,ButtonView as _0x29e9dd}from'ckeditor5/src/ui.js';function _0x5377(){const _0x4e30d7=['Prompt\x20history','set','1990040uMFQbl','_createClearHistoryButton','1HOVGIU','add','3018344JWYaUe','32400TYsrii','916036iyegMm','children','length','delegate','fire','label','170GqHDKm','historyGroupView','Clear','1530669EjTOew','locale','clearHistoryButton','filter','100Gkxcbq','items','781551FZklbg','clearHistory','execute','766052hIPZiO'];_0x5377=function(){return _0x4e30d7;};return _0x5377();}import{getTranslation as _0x5e66a3}from'../../utils/common-translations.js';export class AIHistoryListView extends _0x3a44d9{[_0x1b6da7(0xd0)];[_0x1b6da7(0xd4)];constructor(_0x3d3b37){const _0x277e52=_0x1b6da7;super(_0x3d3b37),this[_0x277e52(0xd4)]=this[_0x277e52(0xc4)](),this[_0x277e52(0xd0)]=new _0x1531db(),this[_0x277e52(0xd0)][_0x277e52(0xca)][_0x277e52(0xc6)](this[_0x277e52(0xd4)],0x1),this[_0x277e52(0xd0)][_0x277e52(0xce)]=_0x5e66a3(_0x3d3b37,_0x277e52(0xc1)),this[_0x277e52(0xd0)][_0x277e52(0xd7)][_0x277e52(0xcc)](_0x277e52(0xbf))['to'](this),this[_0x277e52(0xd7)][_0x277e52(0xc6)](this[_0x277e52(0xd0)]);}[_0x1b6da7(0xd5)](){const _0x1e8be3=_0x1b6da7;let _0x27e77c=0x0;for(const _0x258185 of this[_0x1e8be3(0xd7)])_0x27e77c+=_0x258185[_0x1e8be3(0xd7)][_0x1e8be3(0xcb)];return{'resultsCount':_0x27e77c,'totalItemsCount':_0x27e77c};}[_0x1b6da7(0xc4)](){const _0x2ae967=_0x1b6da7,_0x174a1e=this[_0x2ae967(0xd3)],_0xb7378c=new _0x29e9dd(this[_0x2ae967(0xd3)]);return _0xb7378c[_0x2ae967(0xc2)]({'label':'('+_0x5e66a3(_0x174a1e,_0x2ae967(0xd1))+')','withText':!0x0}),_0xb7378c['on'](_0x2ae967(0xbf),()=>this[_0x2ae967(0xcd)](_0x2ae967(0xbe))),_0xb7378c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dd2e1=_0x271d;(function(_0x1f9902,_0x11b1c2){const _0x574fa9=_0x271d,_0x1d5487=_0x1f9902();while(!![]){try{const _0x44886e=-parseInt(_0x574fa9(0xf9))/0x1+parseInt(_0x574fa9(0xfd))/0x2+-parseInt(_0x574fa9(0xed))/0x3*(-parseInt(_0x574fa9(0xee))/0x4)+-parseInt(_0x574fa9(0xf8))/0x5+-parseInt(_0x574fa9(0xfe))/0x6*(parseInt(_0x574fa9(0x105))/0x7)+-parseInt(_0x574fa9(0xff))/0x8*(parseInt(_0x574fa9(0x101))/0x9)+parseInt(_0x574fa9(0xf7))/0xa;if(_0x44886e===_0x11b1c2)break;else _0x1d5487['push'](_0x1d5487['shift']());}catch(_0x5dfca9){_0x1d5487['push'](_0x1d5487['shift']());}}}(_0x47c2,0xd70cb));function _0x47c2(){const _0x5e6b02=['getItem','23505020LliOdR','1033875gqlmjf','379498mvBUmn','CKEditor/AIFormView/PromptHistory','stringify','length','98172szqJjC','8026476epXQJy','203512uOsgcv','add','207QvoYrd','remove','prompt','trim','7GQKHkh','toLowerCase','3ZJeRIh','3961484oYVxxM','_saveToSessionStorage','parse','setItem','last','_loadFromSessionStorage','map','addMany'];_0x47c2=function(){return _0x5e6b02;};return _0x47c2();}import{Collection as _0x570473}from'ckeditor5/src/utils.js';const no=_0x4dd2e1(0xfa);export class PromptHistory extends _0x570473{constructor(){const _0x2b3962=_0x4dd2e1;super(),this[_0x2b3962(0xf3)](),this['on'](_0x2b3962(0x100),(_0xdd0f1e,_0x1722f8)=>{const _0x22674e=_0x2b3962,_0x2aba03=co(_0x1722f8[_0x22674e(0x103)]);for(const _0x17e65a of this)if(_0x17e65a!=_0x1722f8&&co(_0x17e65a[_0x22674e(0x103)])===_0x2aba03){this[_0x22674e(0x102)](_0x17e65a);break;}this[_0x22674e(0xfc)]>0x14&&this[_0x22674e(0x102)](this[_0x22674e(0xf2)]),this[_0x22674e(0xef)]();}),this['on'](_0x2b3962(0x102),()=>{const _0x5d8353=_0x2b3962;this[_0x5d8353(0xef)]();});}[_0x4dd2e1(0xf3)](){const _0x1763f7=_0x4dd2e1,_0x2f7a1e=sessionStorage[_0x1763f7(0xf6)](no)||'[]';this[_0x1763f7(0xf5)](JSON[_0x1763f7(0xf0)](_0x2f7a1e));}[_0x4dd2e1(0xef)](){const _0x196909=_0x4dd2e1;sessionStorage[_0x196909(0xf1)](no,JSON[_0x196909(0xfb)](this[_0x196909(0xf4)](_0xd0a126=>_0xd0a126)));}}function _0x271d(_0x3940bf,_0x3d6a9b){const _0x47c2e3=_0x47c2();return _0x271d=function(_0x271d88,_0x1df3ce){_0x271d88=_0x271d88-0xec;let _0x10dac6=_0x47c2e3[_0x271d88];return _0x10dac6;},_0x271d(_0x3940bf,_0x3d6a9b);}function co(_0x28ffc9){const _0x35a5b2=_0x4dd2e1;return _0x28ffc9[_0x35a5b2(0xec)]()[_0x35a5b2(0x104)]();}
23
+ const _0x2c928f=_0x2e34;function _0x2e34(_0xc679cc,_0x2f3cc6){const _0x420ea5=_0x420e();return _0x2e34=function(_0x2e3431,_0x1fe038){_0x2e3431=_0x2e3431-0x102;let _0x1225cc=_0x420ea5[_0x2e3431];return _0x1225cc;},_0x2e34(_0xc679cc,_0x2f3cc6);}(function(_0xfc06d1,_0x10618c){const _0x3318c0=_0x2e34,_0x194257=_0xfc06d1();while(!![]){try{const _0x434160=parseInt(_0x3318c0(0x10f))/0x1*(parseInt(_0x3318c0(0x109))/0x2)+-parseInt(_0x3318c0(0x113))/0x3+parseInt(_0x3318c0(0x111))/0x4*(parseInt(_0x3318c0(0x106))/0x5)+-parseInt(_0x3318c0(0x116))/0x6*(-parseInt(_0x3318c0(0x104))/0x7)+parseInt(_0x3318c0(0x108))/0x8+-parseInt(_0x3318c0(0x10d))/0x9+-parseInt(_0x3318c0(0x10b))/0xa;if(_0x434160===_0x10618c)break;else _0x194257['push'](_0x194257['shift']());}catch(_0x1fcc65){_0x194257['push'](_0x194257['shift']());}}}(_0x420e,0xa9ac8));import{Collection as _0xb79d1a}from'ckeditor5/src/utils.js';function _0x420e(){const _0x4fc54b=['10fmxOgf','add','139776jVOZDB','2zZGIko','last','17278980VEgZPS','stringify','159786bHrliQ','_loadFromSessionStorage','1109013syCsvQ','map','1880964BbYNBa','length','22521cTLzed','trim','getItem','73776bDpxlz','addMany','prompt','setItem','_saveToSessionStorage','toLowerCase','parse','remove','217AznVNT','CKEditor/AIFormView/PromptHistory'];_0x420e=function(){return _0x4fc54b;};return _0x420e();}const no=_0x2c928f(0x105);export class PromptHistory extends _0xb79d1a{constructor(){const _0x189f3a=_0x2c928f;super(),this[_0x189f3a(0x10e)](),this['on'](_0x189f3a(0x107),(_0xe032cb,_0x2676ab)=>{const _0x461da5=_0x189f3a,_0x48366c=ao(_0x2676ab[_0x461da5(0x118)]);for(const _0x196a15 of this)if(_0x196a15!=_0x2676ab&&ao(_0x196a15[_0x461da5(0x118)])===_0x48366c){this[_0x461da5(0x103)](_0x196a15);break;}this[_0x461da5(0x112)]>0x14&&this[_0x461da5(0x103)](this[_0x461da5(0x10a)]),this[_0x461da5(0x11a)]();}),this['on'](_0x189f3a(0x103),()=>{const _0x21264f=_0x189f3a;this[_0x21264f(0x11a)]();});}[_0x2c928f(0x10e)](){const _0xaf67d2=_0x2c928f,_0x3d0296=sessionStorage[_0xaf67d2(0x115)](no)||'[]';this[_0xaf67d2(0x117)](JSON[_0xaf67d2(0x102)](_0x3d0296));}[_0x2c928f(0x11a)](){const _0x655ce2=_0x2c928f;sessionStorage[_0x655ce2(0x119)](no,JSON[_0x655ce2(0x10c)](this[_0x655ce2(0x110)](_0x4bcae2=>_0x4bcae2)));}}function ao(_0x478262){const _0x46ef21=_0x2c928f;return _0x478262[_0x46ef21(0x11b)]()[_0x46ef21(0x114)]();}