@ckeditor/ckeditor5-ai 47.7.5 → 47.7.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 (318) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.js +1 -1
  180. package/src/aichat/model/aichatconversation.js +1 -1
  181. package/src/aichat/model/aichatinteraction.js +1 -1
  182. package/src/aichat/ui/aichatballoonview.js +1 -1
  183. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  221. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aimodels.js +1 -1
  229. package/src/aicore/model/aireply.js +1 -1
  230. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  231. package/src/aicore/pipeline/airesponseparser.js +2 -2
  232. package/src/aicore/ui/aidisclaimerview.js +1 -1
  233. package/src/aicore/ui/aiskeleton.js +1 -1
  234. package/src/aicore/ui/aispinner.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  246. package/src/aicore/utils/common-translations.js +1 -1
  247. package/src/aicore/utils/createresizebutton.js +1 -1
  248. package/src/aicore/utils/documentposition.js +1 -1
  249. package/src/aicore/utils/documentrange.js +1 -1
  250. package/src/aicore/utils/eventnames.js +1 -1
  251. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  252. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  253. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  254. package/src/aicore/utils/htmlparser.js +1 -1
  255. package/src/aicore/utils/htmlstreamer.js +1 -1
  256. package/src/aicore/utils/scrollmanager.js +1 -1
  257. package/src/aieditorintegration/aieditorintegration.js +1 -1
  258. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  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/ui/aiquickactionsfilteredlistview.js +1 -1
  268. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  271. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  272. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  273. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  274. package/src/aireviewcore/aireviewcoreui.js +1 -1
  275. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  276. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  277. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  280. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  281. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  292. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  294. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  295. package/src/aireviewmode/aireviewmode.js +1 -1
  296. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  297. package/src/aireviewmode/aireviewmodeui.js +1 -1
  298. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  300. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  301. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  303. package/src/aitabs/aitabs.js +1 -1
  304. package/src/aitabs/aitabsmainview.js +1 -1
  305. package/src/aitabs/tabs/aitabsview.js +1 -1
  306. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  307. package/src/aitabs/tabs/tabpanelview.js +1 -1
  308. package/src/aitranslate/aitranslate.js +1 -1
  309. package/src/aitranslate/aitranslatecontroller.js +1 -1
  310. package/src/aitranslate/aitranslateui.js +1 -1
  311. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  312. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  313. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  314. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  315. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  316. package/src/errors.js +1 -1
  317. package/src/errorsmap.js +1 -1
  318. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x9a4a(_0x52003e,_0x3da24d){const _0x5c213a=_0x5c21();return _0x9a4a=function(_0x9a4ac9,_0x6ede1b){_0x9a4ac9=_0x9a4ac9-0x1f0;let _0x9eceb8=_0x5c213a[_0x9a4ac9];return _0x9eceb8;},_0x9a4a(_0x52003e,_0x3da24d);}function _0x5c21(){const _0x3f4bf8=['currentReply','getReply','5380qLegjT','_handleToolNotificationData','conversation-title','action-metadata','3978HSNYPc','sources','resetReasoningState','interactionStarted','abortController','type','reasoningStarted','reasoning','delegate','length','stopListening','abort','sendRequest','setConversationTitle','interactionFinished','toolName','currentRequest','appendContent','replies','interactionCreated','result','event','splice','5238255KbOFDk','editor','notification','push','fire','find','webSearchFinished','conversationTitle','modification','mcp-tool-notification','37104TqOyGs','replyCreated','replyContentUpdated','destroy','136bOeDOf','message-metadata','forEach','isDestroyed','content','web-search','_isReasoning','messageId','text','reasoningFinished','2623923fHCmaf','replyChangeGroupStateUpdated','modification-delta','ai-chat-interaction-error','interactionDestroyed','textDelta','error','toolDataReceived','_finalizeInteraction','parse','isStopped','20OSzaxC','webSearchStarted','actionCallId','_isWebSearching','data','createReply','2622592OYsHGu','getDocumentContext','resetWebSearchState','4044160hyhkdY','stop','text-delta','done','getStream','mcp-tool-result','interactionStopped','667426XKyVzc','connector','callId','start','source','_handleToolResultData','2hMzpUw','attributes'];_0x5c21=function(){return _0x3f4bf8;};return _0x5c21();}const _0x19cc2f=_0x9a4a;(function(_0x43df0a,_0x220231){const _0x56dde3=_0x9a4a,_0x226dbf=_0x43df0a();while(!![]){try{const _0x53587c=parseInt(_0x56dde3(0x240))/0x1*(parseInt(_0x56dde3(0x246))/0x2)+-parseInt(_0x56dde3(0x217))/0x3*(-parseInt(_0x56dde3(0x21b))/0x4)+-parseInt(_0x56dde3(0x1f2))/0x5*(parseInt(_0x56dde3(0x1f6))/0x6)+-parseInt(_0x56dde3(0x236))/0x7+parseInt(_0x56dde3(0x239))/0x8+-parseInt(_0x56dde3(0x225))/0x9*(parseInt(_0x56dde3(0x230))/0xa)+parseInt(_0x56dde3(0x20d))/0xb;if(_0x53587c===_0x220231)break;else _0x226dbf['push'](_0x226dbf['shift']());}catch(_0x19aee0){_0x226dbf['push'](_0x226dbf['shift']());}}}(_0x5c21,0x614bd));import{CKEditorError as _0x336536,EmitterMixin as _0x4c7e85,uid as _0x1c6593}from'ckeditor5/src/utils.js';import{AIReply as _0x45e3d9}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x19cc2f(0x209),_0x19cc2f(0x1f9),_0x19cc2f(0x23f),_0x19cc2f(0x204),_0x19cc2f(0x229),_0x19cc2f(0x218),_0x19cc2f(0x219),_0x19cc2f(0x226),_0x19cc2f(0x203),_0x19cc2f(0x231),_0x19cc2f(0x213),_0x19cc2f(0x1fc),_0x19cc2f(0x224),_0x19cc2f(0x22c),_0x19cc2f(0x22b)];export class AIInteraction extends _0x4c7e85(){['id'];[_0x19cc2f(0x208)]=[];[_0x19cc2f(0x1f0)];[_0x19cc2f(0x222)];[_0x19cc2f(0x232)];[_0x19cc2f(0x206)];[_0x19cc2f(0x241)];[_0x19cc2f(0x22f)]=!0x1;[_0x19cc2f(0x21e)]=!0x1;[_0x19cc2f(0x20e)];[_0x19cc2f(0x221)]=!0x1;[_0x19cc2f(0x233)]=!0x1;constructor({connector:_0xd32f7d,editor:_0x206e68}){const _0x3633e2=_0x19cc2f;super(),this['id']=_0x1c6593(),this[_0x3633e2(0x241)]=_0xd32f7d,this[_0x3633e2(0x22f)]=!0x0,this[_0x3633e2(0x20e)]=_0x206e68;}async[_0x19cc2f(0x243)](){const _0x47b0d6=_0x19cc2f,_0x30e5d2=[];let _0x5ba625,_0x5e6cb6,_0x4e8c4c;this[_0x47b0d6(0x22f)]=!0x1;try{this[_0x47b0d6(0x206)]=await this[_0x47b0d6(0x202)](),this[_0x47b0d6(0x211)](_0x47b0d6(0x1f9),this);const _0x4b37a9=await this[_0x47b0d6(0x206)][_0x47b0d6(0x23d)]();for await(const _0x12f316 of _0x4b37a9){if(this[_0x47b0d6(0x22f)])return;if(_0x47b0d6(0x22b)==_0x12f316[_0x47b0d6(0x20b)])return void this[_0x47b0d6(0x211)](_0x47b0d6(0x22b),{'error':new _0x336536(_0x47b0d6(0x228),this)});switch(_0x12f316[_0x47b0d6(0x20b)]){case _0x47b0d6(0x21c):this[_0x47b0d6(0x222)]=_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x222)];break;case _0x47b0d6(0x1f5):this[_0x47b0d6(0x232)]=_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x242)];break;case _0x47b0d6(0x1f4):this[_0x47b0d6(0x203)](_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x214)],!0x0);break;case _0x47b0d6(0x244):_0x30e5d2[_0x47b0d6(0x210)](_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x244)]);break;case _0x47b0d6(0x220):this[_0x47b0d6(0x233)]||(this[_0x47b0d6(0x233)]=!0x0,this[_0x47b0d6(0x211)](_0x47b0d6(0x231),this));break;case _0x47b0d6(0x1fd):this[_0x47b0d6(0x221)]||(this[_0x47b0d6(0x221)]=!0x0,this[_0x47b0d6(0x211)](_0x47b0d6(0x1fc),this));break;case _0x47b0d6(0x227):case _0x47b0d6(0x23b):this[_0x47b0d6(0x1f8)](),this[_0x47b0d6(0x238)](),_0x5ba625=_0x47b0d6(0x227)==_0x12f316[_0x47b0d6(0x20b)]?_0x47b0d6(0x215):_0x47b0d6(0x223),_0x5e6cb6=_0x47b0d6(0x227)==_0x12f316[_0x47b0d6(0x20b)]?_0x12f316[_0x47b0d6(0x234)]['id']:void 0x0,this[_0x47b0d6(0x1f0)]&&this[_0x47b0d6(0x1f0)][_0x47b0d6(0x1fb)]!=_0x5ba625&&(this[_0x47b0d6(0x1f0)][_0x47b0d6(0x23c)](),this[_0x47b0d6(0x1f0)]=void 0x0),this[_0x47b0d6(0x1f0)]||(this[_0x47b0d6(0x1f0)]=this[_0x47b0d6(0x235)]({'type':_0x5ba625,'interactionId':this['id'],'id':_0x5e6cb6}),_0x47b0d6(0x215)==_0x5ba625&&(this[_0x47b0d6(0x1f0)][_0x47b0d6(0x1f7)]=_0x30e5d2[_0x47b0d6(0x20c)](0x0))),this[_0x47b0d6(0x1f0)][_0x47b0d6(0x207)](_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x22a)]);break;case _0x47b0d6(0x23e):_0x4e8c4c=JSON[_0x47b0d6(0x22e)](_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x20a)]),this[_0x47b0d6(0x245)]({'toolName':_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x205)],'data':_0x4e8c4c[_0x47b0d6(0x234)],'attributes':_0x4e8c4c[_0x47b0d6(0x247)]});break;case _0x47b0d6(0x216):this[_0x47b0d6(0x1f3)]({'toolName':_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x205)],'data':_0x12f316[_0x47b0d6(0x234)][_0x47b0d6(0x234)]});}}}finally{this[_0x47b0d6(0x22f)]||(this[_0x47b0d6(0x1f0)]&&_0x30e5d2[_0x47b0d6(0x1ff)]>0x0&&(this[_0x47b0d6(0x1f0)][_0x47b0d6(0x1f7)]=_0x30e5d2[_0x47b0d6(0x20c)](0x0)),this[_0x47b0d6(0x22d)](),this[_0x47b0d6(0x211)](_0x47b0d6(0x204),this));}}[_0x19cc2f(0x23a)](){const _0x2cdb66=_0x19cc2f;this[_0x2cdb66(0x22f)]||(this[_0x2cdb66(0x22d)](),this[_0x2cdb66(0x211)](_0x2cdb66(0x23f),this));}[_0x19cc2f(0x1f1)](_0x5563f6){const _0x1bd898=_0x19cc2f;return this[_0x1bd898(0x208)][_0x1bd898(0x212)](_0x12fa99=>_0x12fa99['id']===_0x5563f6);}[_0x19cc2f(0x21a)](){const _0x53c765=_0x19cc2f;this[_0x53c765(0x21e)]||(this[_0x53c765(0x23a)](),this[_0x53c765(0x208)][_0x53c765(0x21d)](_0x1769c7=>_0x1769c7[_0x53c765(0x21a)]()),this[_0x53c765(0x208)]=[],this[_0x53c765(0x21e)]=!0x0,this[_0x53c765(0x211)](_0x53c765(0x229),this),this[_0x53c765(0x200)]());}[_0x19cc2f(0x235)](_0x44c9df){const _0x2924a5=_0x19cc2f,_0x2facd9=new _0x45e3d9({'editor':this[_0x2924a5(0x20e)],'documentContextContent':this[_0x2924a5(0x237)]()?.[_0x2924a5(0x21f)],..._0x44c9df});return this[_0x2924a5(0x208)][_0x2924a5(0x210)](_0x2facd9),_0x2facd9[_0x2924a5(0x1fe)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2924a5(0x211)](_0x2924a5(0x218),_0x2facd9),_0x2facd9;}[_0x19cc2f(0x203)](_0x4a2cdf,_0x5ddf10=!0x1){const _0x387396=_0x19cc2f;this[_0x387396(0x211)](_0x387396(0x203),_0x4a2cdf,_0x5ddf10);}[_0x19cc2f(0x238)](){const _0x10f18e=_0x19cc2f;this[_0x10f18e(0x233)]&&(this[_0x10f18e(0x233)]=!0x1,this[_0x10f18e(0x211)](_0x10f18e(0x213),this));}[_0x19cc2f(0x1f8)](){const _0x102425=_0x19cc2f;this[_0x102425(0x221)]&&(this[_0x102425(0x221)]=!0x1,this[_0x102425(0x211)](_0x102425(0x224),this));}[_0x19cc2f(0x245)](_0x59aa18){const _0x4d6bd6=_0x19cc2f;this[_0x4d6bd6(0x211)](_0x4d6bd6(0x22c),{'type':_0x4d6bd6(0x20a),'toolName':_0x59aa18[_0x4d6bd6(0x205)],'data':structuredClone(_0x59aa18[_0x4d6bd6(0x234)]||{}),'attributes':structuredClone(_0x59aa18[_0x4d6bd6(0x247)]||{})},this);}[_0x19cc2f(0x1f3)](_0x4076f7){const _0x210fc4=_0x19cc2f;this[_0x210fc4(0x211)](_0x210fc4(0x22c),{'type':_0x210fc4(0x20f),'toolName':_0x4076f7[_0x210fc4(0x205)],'data':structuredClone(_0x4076f7[_0x210fc4(0x234)])},this);}[_0x19cc2f(0x22d)](){const _0x5365d6=_0x19cc2f;this[_0x5365d6(0x22f)]=!0x0,this[_0x5365d6(0x206)]&&this[_0x5365d6(0x206)][_0x5365d6(0x1fa)][_0x5365d6(0x201)](),this[_0x5365d6(0x1f0)]&&this[_0x5365d6(0x1f0)][_0x5365d6(0x23c)](),this[_0x5365d6(0x206)]=this[_0x5365d6(0x1f0)]=void 0x0;}}
23
+ const _0x53cee2=_0x3303;(function(_0x1cb59b,_0xc75bb3){const _0x436238=_0x3303,_0x1a3873=_0x1cb59b();while(!![]){try{const _0x4bbe30=parseInt(_0x436238(0x1d6))/0x1*(-parseInt(_0x436238(0x1b9))/0x2)+parseInt(_0x436238(0x1bc))/0x3+parseInt(_0x436238(0x1ba))/0x4+parseInt(_0x436238(0x1d2))/0x5*(-parseInt(_0x436238(0x1fa))/0x6)+parseInt(_0x436238(0x1b5))/0x7*(parseInt(_0x436238(0x1e0))/0x8)+-parseInt(_0x436238(0x1e8))/0x9+parseInt(_0x436238(0x1f8))/0xa*(parseInt(_0x436238(0x1c2))/0xb);if(_0x4bbe30===_0xc75bb3)break;else _0x1a3873['push'](_0x1a3873['shift']());}catch(_0x2f4774){_0x1a3873['push'](_0x1a3873['shift']());}}}(_0x1a06,0x8d12c));function _0x3303(_0x18b751,_0x174bd2){const _0x1a06bb=_0x1a06();return _0x3303=function(_0x330399,_0x2a7a57){_0x330399=_0x330399-0x1a8;let _0x3d84cb=_0x1a06bb[_0x330399];return _0x3d84cb;},_0x3303(_0x18b751,_0x174bd2);}function _0x1a06(){const _0x4ecd60=['toolName','callId','splice','5760940gItwrT','message-metadata','6aEiQAQ','resetWebSearchState','data','_finalizeInteraction','textDelta','attributes','push','destroy','mcp-tool-result','find','conversation-title','interactionFinished','actionCallId','editor','modification-delta','reasoningFinished','ai-chat-interaction-error','webSearchFinished','interactionDestroyed','49zurfub','replyChangeGroupStateUpdated','abortController','_isReasoning','2nphmpm','2132812XOftnM','setConversationTitle','1293891ebPuwD','resetReasoningState','sources','getReply','abort','interactionStopped','11lrrAMX','isStopped','createReply','error','replies','parse','conversationTitle','mcp-tool-notification','reasoningStarted','reasoning','length','web-search','currentReply','_handleToolResultData','_handleToolNotificationData','type','5207905skLkfH','toolDataReceived','result','done','464416pcYKgc','event','currentRequest','stop','fire','content','interactionStarted','webSearchStarted','sendRequest','appendContent','1199336RQfKvw','messageId','forEach','getStream','text','replyContentUpdated','connector','interactionCreated','4555620OwjicQ','delegate','start','stopListening','_isWebSearching','source','modification','notification','replyCreated','action-metadata','text-delta','isDestroyed','getDocumentContext'];_0x1a06=function(){return _0x4ecd60;};return _0x1a06();}import{CKEditorError as _0x2987ae,EmitterMixin as _0x28e8ca,uid as _0x44b2e9}from'ckeditor5/src/utils.js';import{AIReply as _0x3ffcc3}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x53cee2(0x1e7),_0x53cee2(0x1dc),_0x53cee2(0x1c1),_0x53cee2(0x1ad),_0x53cee2(0x1b4),_0x53cee2(0x1f0),_0x53cee2(0x1e5),_0x53cee2(0x1b6),_0x53cee2(0x1bb),_0x53cee2(0x1dd),_0x53cee2(0x1b3),_0x53cee2(0x1ca),_0x53cee2(0x1b1),_0x53cee2(0x1d3),_0x53cee2(0x1c5)];export class AIInteraction extends _0x28e8ca(){['id'];[_0x53cee2(0x1c6)]=[];[_0x53cee2(0x1ce)];[_0x53cee2(0x1e1)];[_0x53cee2(0x1ae)];[_0x53cee2(0x1d8)];[_0x53cee2(0x1e6)];[_0x53cee2(0x1c3)]=!0x1;[_0x53cee2(0x1f3)]=!0x1;[_0x53cee2(0x1af)];[_0x53cee2(0x1b8)]=!0x1;[_0x53cee2(0x1ec)]=!0x1;constructor({connector:_0x1adef5,editor:_0x36a935}){const _0x1cdc1d=_0x53cee2;super(),this['id']=_0x44b2e9(),this[_0x1cdc1d(0x1e6)]=_0x1adef5,this[_0x1cdc1d(0x1c3)]=!0x0,this[_0x1cdc1d(0x1af)]=_0x36a935;}async[_0x53cee2(0x1ea)](){const _0x27114e=_0x53cee2,_0x18b9b2=[];let _0x1aced4,_0x52063d,_0x167249;this[_0x27114e(0x1c3)]=!0x1;try{this[_0x27114e(0x1d8)]=await this[_0x27114e(0x1de)](),this[_0x27114e(0x1da)](_0x27114e(0x1dc),this);const _0x5b6899=await this[_0x27114e(0x1d8)][_0x27114e(0x1e3)]();for await(const _0x4fb256 of _0x5b6899){if(this[_0x27114e(0x1c3)])return;if(_0x27114e(0x1c5)==_0x4fb256[_0x27114e(0x1d7)])return void this[_0x27114e(0x1da)](_0x27114e(0x1c5),{'error':new _0x2987ae(_0x27114e(0x1b2),this)});switch(_0x4fb256[_0x27114e(0x1d7)]){case _0x27114e(0x1f9):this[_0x27114e(0x1e1)]=_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1e1)];break;case _0x27114e(0x1f1):this[_0x27114e(0x1ae)]=_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1f6)];break;case _0x27114e(0x1ac):this[_0x27114e(0x1bb)](_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1c8)],!0x0);break;case _0x27114e(0x1ed):_0x18b9b2[_0x27114e(0x1a8)](_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1ed)]);break;case _0x27114e(0x1cd):this[_0x27114e(0x1ec)]||(this[_0x27114e(0x1ec)]=!0x0,this[_0x27114e(0x1da)](_0x27114e(0x1dd),this));break;case _0x27114e(0x1cb):this[_0x27114e(0x1b8)]||(this[_0x27114e(0x1b8)]=!0x0,this[_0x27114e(0x1da)](_0x27114e(0x1ca),this));break;case _0x27114e(0x1b0):case _0x27114e(0x1f2):this[_0x27114e(0x1bd)](),this[_0x27114e(0x1fb)](),_0x1aced4=_0x27114e(0x1b0)==_0x4fb256[_0x27114e(0x1d7)]?_0x27114e(0x1ee):_0x27114e(0x1e4),_0x52063d=_0x27114e(0x1b0)==_0x4fb256[_0x27114e(0x1d7)]?_0x4fb256[_0x27114e(0x1fc)]['id']:void 0x0,this[_0x27114e(0x1ce)]&&this[_0x27114e(0x1ce)][_0x27114e(0x1d1)]!=_0x1aced4&&(this[_0x27114e(0x1ce)][_0x27114e(0x1d5)](),this[_0x27114e(0x1ce)]=void 0x0),this[_0x27114e(0x1ce)]||(this[_0x27114e(0x1ce)]=this[_0x27114e(0x1c4)]({'type':_0x1aced4,'interactionId':this['id'],'id':_0x52063d}),_0x27114e(0x1ee)==_0x1aced4&&(this[_0x27114e(0x1ce)][_0x27114e(0x1be)]=_0x18b9b2[_0x27114e(0x1f7)](0x0))),this[_0x27114e(0x1ce)][_0x27114e(0x1df)](_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1fe)]);break;case _0x27114e(0x1aa):_0x167249=JSON[_0x27114e(0x1c7)](_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1d4)]),this[_0x27114e(0x1cf)]({'toolName':_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1f5)],'data':_0x167249[_0x27114e(0x1fc)],'attributes':_0x167249[_0x27114e(0x1ff)]});break;case _0x27114e(0x1c9):this[_0x27114e(0x1d0)]({'toolName':_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1f5)],'data':_0x4fb256[_0x27114e(0x1fc)][_0x27114e(0x1fc)]});}}}finally{this[_0x27114e(0x1c3)]||(this[_0x27114e(0x1ce)]&&_0x18b9b2[_0x27114e(0x1cc)]>0x0&&(this[_0x27114e(0x1ce)][_0x27114e(0x1be)]=_0x18b9b2[_0x27114e(0x1f7)](0x0)),this[_0x27114e(0x1fd)](),this[_0x27114e(0x1da)](_0x27114e(0x1ad),this));}}[_0x53cee2(0x1d9)](){const _0x5e31ec=_0x53cee2;this[_0x5e31ec(0x1c3)]||(this[_0x5e31ec(0x1fd)](),this[_0x5e31ec(0x1da)](_0x5e31ec(0x1c1),this));}[_0x53cee2(0x1bf)](_0x2213be){const _0x2f8063=_0x53cee2;return this[_0x2f8063(0x1c6)][_0x2f8063(0x1ab)](_0x3c48be=>_0x3c48be['id']===_0x2213be);}[_0x53cee2(0x1a9)](){const _0x41cdba=_0x53cee2;this[_0x41cdba(0x1f3)]||(this[_0x41cdba(0x1d9)](),this[_0x41cdba(0x1c6)][_0x41cdba(0x1e2)](_0x2c8d35=>_0x2c8d35[_0x41cdba(0x1a9)]()),this[_0x41cdba(0x1c6)]=[],this[_0x41cdba(0x1f3)]=!0x0,this[_0x41cdba(0x1da)](_0x41cdba(0x1b4),this),this[_0x41cdba(0x1eb)]());}[_0x53cee2(0x1c4)](_0x3755ec){const _0xdebce3=_0x53cee2,_0x29abc5=new _0x3ffcc3({'editor':this[_0xdebce3(0x1af)],'documentContextContent':this[_0xdebce3(0x1f4)]()?.[_0xdebce3(0x1db)],..._0x3755ec});return this[_0xdebce3(0x1c6)][_0xdebce3(0x1a8)](_0x29abc5),_0x29abc5[_0xdebce3(0x1e9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xdebce3(0x1da)](_0xdebce3(0x1f0),_0x29abc5),_0x29abc5;}[_0x53cee2(0x1bb)](_0x16f0ac,_0x312dbb=!0x1){const _0x211381=_0x53cee2;this[_0x211381(0x1da)](_0x211381(0x1bb),_0x16f0ac,_0x312dbb);}[_0x53cee2(0x1fb)](){const _0x52fa48=_0x53cee2;this[_0x52fa48(0x1ec)]&&(this[_0x52fa48(0x1ec)]=!0x1,this[_0x52fa48(0x1da)](_0x52fa48(0x1b3),this));}[_0x53cee2(0x1bd)](){const _0x235872=_0x53cee2;this[_0x235872(0x1b8)]&&(this[_0x235872(0x1b8)]=!0x1,this[_0x235872(0x1da)](_0x235872(0x1b1),this));}[_0x53cee2(0x1cf)](_0x239b8a){const _0x10e1b8=_0x53cee2;this[_0x10e1b8(0x1da)](_0x10e1b8(0x1d3),{'type':_0x10e1b8(0x1d4),'toolName':_0x239b8a[_0x10e1b8(0x1f5)],'data':structuredClone(_0x239b8a[_0x10e1b8(0x1fc)]||{}),'attributes':structuredClone(_0x239b8a[_0x10e1b8(0x1ff)]||{})},this);}[_0x53cee2(0x1d0)](_0x1a552e){const _0x3bb7cc=_0x53cee2;this[_0x3bb7cc(0x1da)](_0x3bb7cc(0x1d3),{'type':_0x3bb7cc(0x1ef),'toolName':_0x1a552e[_0x3bb7cc(0x1f5)],'data':structuredClone(_0x1a552e[_0x3bb7cc(0x1fc)])},this);}[_0x53cee2(0x1fd)](){const _0x29dd47=_0x53cee2;this[_0x29dd47(0x1c3)]=!0x0,this[_0x29dd47(0x1d8)]&&this[_0x29dd47(0x1d8)][_0x29dd47(0x1b7)][_0x29dd47(0x1c0)](),this[_0x29dd47(0x1ce)]&&this[_0x29dd47(0x1ce)][_0x29dd47(0x1d5)](),this[_0x29dd47(0x1d8)]=this[_0x29dd47(0x1ce)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x47fffc=_0xa69d;(function(_0x2de10d,_0x13a3d5){const _0x3328cc=_0xa69d,_0x48a3ae=_0x2de10d();while(!![]){try{const _0x18c16e=parseInt(_0x3328cc(0x1de))/0x1+-parseInt(_0x3328cc(0x1e0))/0x2*(parseInt(_0x3328cc(0x1f5))/0x3)+parseInt(_0x3328cc(0x200))/0x4*(parseInt(_0x3328cc(0x1f9))/0x5)+-parseInt(_0x3328cc(0x1ee))/0x6*(parseInt(_0x3328cc(0x1d6))/0x7)+-parseInt(_0x3328cc(0x1f8))/0x8+parseInt(_0x3328cc(0x1f6))/0x9+-parseInt(_0x3328cc(0x1d5))/0xa;if(_0x18c16e===_0x13a3d5)break;else _0x48a3ae['push'](_0x48a3ae['shift']());}catch(_0x2cc14e){_0x48a3ae['push'](_0x48a3ae['shift']());}}}(_0x492f,0x34156));import{EmitterMixin as _0x22ba68,logWarning as _0x2abbad,logError as _0xdda037}from'ckeditor5/src/utils.js';import{getTranslation as _0xcf2db0}from'../utils/common-translations.js';function _0xa69d(_0x78326,_0x29b195){const _0x492fb7=_0x492f();return _0xa69d=function(_0xa69d4d,_0xe79ae3){_0xa69d4d=_0xa69d4d-0x1d5;let _0x5fa730=_0x492fb7[_0xa69d4d];return _0x5fa730;},_0xa69d(_0x78326,_0x29b195);}export class AIModels extends _0x22ba68(){[_0x47fffc(0x206)];[_0x47fffc(0x1da)];[_0x47fffc(0x1eb)];[_0x47fffc(0x205)]=[];[_0x47fffc(0x1f7)]=null;constructor({connector:_0x35e38d,config:_0x3abee7,locale:_0x24c960}){const _0x1702cd=_0x47fffc;super(),this[_0x1702cd(0x206)]=_0x35e38d,this[_0x1702cd(0x1da)]=_0x3abee7,this[_0x1702cd(0x1eb)]=_0x24c960;}get[_0x47fffc(0x1ed)](){const _0x553f24=_0x47fffc;return this[_0x553f24(0x1da)]?.[_0x553f24(0x1f0)];}get[_0x47fffc(0x1d8)](){const _0x21ef5d=_0x47fffc;return this[_0x21ef5d(0x1da)]?.[_0x21ef5d(0x207)];}async[_0x47fffc(0x1ef)](){const _0x3738aa=_0x47fffc;return this[_0x3738aa(0x1f7)]||(this[_0x3738aa(0x1f7)]=this[_0x3738aa(0x1fd)]()),this[_0x3738aa(0x1f7)];}async[_0x47fffc(0x1e5)](){const _0x45834c=_0x47fffc,_0x5592a1=await this[_0x45834c(0x1ef)]();let _0x57da20;return _0x57da20=this[_0x45834c(0x1ed)]?this[_0x45834c(0x1fc)](_0x5592a1,this[_0x45834c(0x1ed)]):_0x5592a1[_0x45834c(0x1ff)](_0x405fc9=>_0x405fc9[_0x45834c(0x1e2)]),_0x57da20;}async[_0x47fffc(0x1df)](_0x12683c){const _0x12bbe6=_0x47fffc,_0x4fbb62=await this[_0x12bbe6(0x1ef)]();if(!_0x4fbb62[_0x12bbe6(0x1fa)])return null;if(_0x12683c){const _0x2e7366=this[_0x12bbe6(0x204)](_0x4fbb62,_0x12683c);if(_0x2e7366)return _0x2e7366;_0x2abbad(_0x12bbe6(0x1db),{'modelId':_0x12683c,'fallBackModelId':this[_0x12bbe6(0x1d8)]});}return this[_0x12bbe6(0x1d9)]();}async[_0x47fffc(0x1d9)](){const _0x1ef495=_0x47fffc,_0x379b1c=await this[_0x1ef495(0x1e5)]();if(!_0x379b1c[_0x1ef495(0x1fa)])return null;if(this[_0x1ef495(0x1d8)]){const _0x1f79ab=this[_0x1ef495(0x204)](_0x379b1c,this[_0x1ef495(0x1d8)]);if(_0x1f79ab)return _0x1f79ab;_0x2abbad(_0x1ef495(0x1dc),{'defaultModelId':this[_0x1ef495(0x1d8)],'fallBackModelId':_0x379b1c[0x0]['id']});}return _0x379b1c[0x0];}async[_0x47fffc(0x1e6)](_0x197d0c){const _0x5d6049=_0x47fffc;return(await this[_0x5d6049(0x1e5)]())[_0x5d6049(0x1ec)](_0x4cc178=>_0x4cc178[_0x5d6049(0x201)]===_0x197d0c[_0x5d6049(0x201)]&&_0x4cc178[_0x5d6049(0x1e3)]===_0x197d0c[_0x5d6049(0x1e3)]);}async[_0x47fffc(0x1fd)](){const _0x232a04=_0x47fffc;if(!this[_0x232a04(0x205)][_0x232a04(0x1fa)])try{const _0x2c4fef=this[_0x232a04(0x1eb)][_0x232a04(0x1e4)]||'en',_0x2cd855=this[_0x232a04(0x206)][_0x232a04(0x1f2)](_0x2c4fef),_0x5b8c0e=await _0x2cd855[_0x232a04(0x1e8)]();this[_0x232a04(0x205)]=_0x5b8c0e[_0x232a04(0x1fe)][_0x232a04(0x1ea)](_0x1185e2=>qi(_0x1185e2)?{..._0x1185e2,'name':_0xcf2db0(this[_0x232a04(0x1eb)],_0x232a04(0x202))}:_0x1185e2);}catch(_0x3e81e2){throw _0xdda037(_0x232a04(0x1e1),{'error':_0x3e81e2}),_0x3e81e2;}return[...this[_0x232a04(0x205)]];}[_0x47fffc(0x1fc)](_0x398ff3,_0x427713){const _0x28f482=_0x47fffc;let _0xbc6f8c;if(_0x427713){_0xbc6f8c=[];const _0x2acd7e=new Set(),_0x7d6016=_0x28f482(0x1f3)==typeof _0x427713?[_0x427713[_0x28f482(0x208)]()]:_0x427713[_0x28f482(0x1ea)](_0x5f54aa=>_0x5f54aa[_0x28f482(0x208)]());for(const _0x32b7f0 of _0x7d6016)for(const _0x541ede of _0x398ff3)!_0x2acd7e[_0x28f482(0x1e9)](_0x541ede['id'])&&this[_0x28f482(0x1d7)](_0x541ede,_0x32b7f0)&&(_0xbc6f8c[_0x28f482(0x1e7)](_0x541ede),_0x2acd7e[_0x28f482(0x1fb)](_0x541ede['id']));}else _0xbc6f8c=_0x398ff3;return _0xbc6f8c;}[_0x47fffc(0x1d7)](_0x5d3dc1,_0x191808){const _0x21e018=_0x47fffc,_0x1f1e5c=_0x5d3dc1['id'][_0x21e018(0x208)](),_0x4914f9=_0x5d3dc1[_0x21e018(0x201)][_0x21e018(0x208)](),_0x1b70f0=_0x5d3dc1[_0x21e018(0x1e3)][_0x21e018(0x208)]();return _0x1f1e5c===_0x191808||_0x4914f9===_0x191808||qi(_0x5d3dc1)&&_0x21e018(0x1f4)===_0x191808||_0x1b70f0===_0x191808||_0x1f1e5c[_0x21e018(0x1f1)](_0x191808);}[_0x47fffc(0x204)](_0x471e4b,_0x3a759a){const _0xe998b4=_0x47fffc;return _0x471e4b[_0xe998b4(0x203)](_0x221b3c=>qi(_0x221b3c)&&_0xe998b4(0x1f4)===_0x3a759a?_0x221b3c:_0x221b3c['id']===_0x3a759a)||null;}}function qi(_0x4d83c4){const _0x11f81b=_0x47fffc;return _0x4d83c4['id'][_0x11f81b(0x1f1)](_0x11f81b(0x1dd));}function _0x492f(){const _0x329897=['_retrieveModels','items','filter','520948sjMNcw','name','AI_MODEL_NAME_AUTO','find','_getModelById','_modelList','_connector','defaultModelId','toLocaleLowerCase','185200rliehf','21YxeKbz','_isMatchingFilter','_defaultModelId','getDefault','_config','ai-chat-model-id-unrecognized','ai-chat-default-model-id-unrecognized','agent','251741ZQNvQG','getModel','4RukTxl','ai-models-unable-to-retrieve','recommended','provider','uiLanguage','getAvailableModels','isAvailable','push','list','has','map','_locale','some','_availableModels','88998KXPnrY','getAll','displayedModels','startsWith','getModels','string','auto','597453cUwVyr','1886886ThqFRT','_modelsRequest','1419608qmPbVU','15tXzzJP','length','add','_filterModels'];_0x492f=function(){return _0x329897;};return _0x492f();}
23
+ const _0x5117c6=_0x330b;(function(_0x4a07a5,_0xcf16f0){const _0x5f1005=_0x330b,_0x4e00ef=_0x4a07a5();while(!![]){try{const _0xa2e529=parseInt(_0x5f1005(0x1db))/0x1*(-parseInt(_0x5f1005(0x1bf))/0x2)+parseInt(_0x5f1005(0x1d1))/0x3*(parseInt(_0x5f1005(0x1b5))/0x4)+parseInt(_0x5f1005(0x1d6))/0x5+parseInt(_0x5f1005(0x1dd))/0x6*(parseInt(_0x5f1005(0x1c7))/0x7)+parseInt(_0x5f1005(0x1b9))/0x8+parseInt(_0x5f1005(0x1cc))/0x9*(-parseInt(_0x5f1005(0x1b3))/0xa)+-parseInt(_0x5f1005(0x1c8))/0xb;if(_0xa2e529===_0xcf16f0)break;else _0x4e00ef['push'](_0x4e00ef['shift']());}catch(_0x299fc5){_0x4e00ef['push'](_0x4e00ef['shift']());}}}(_0x3b7e,0xdfb73));import{EmitterMixin as _0x5b3562,logWarning as _0x378098,logError as _0x373168}from'ckeditor5/src/utils.js';function _0x330b(_0x524e7a,_0x48c3a7){const _0x3b7ea8=_0x3b7e();return _0x330b=function(_0x330bc8,_0x179fd1){_0x330bc8=_0x330bc8-0x1b0;let _0x4f8642=_0x3b7ea8[_0x330bc8];return _0x4f8642;},_0x330b(_0x524e7a,_0x48c3a7);}function _0x3b7e(){const _0x223a7b=['add','3BWQkwC','displayedModels','9187674fGmAwy','_defaultModelId','has','ai-chat-model-id-unrecognized','items','_isMatchingFilter','some','getDefault','map','_connector','getAll','20EEssNw','getModels','4mCylGm','_locale','startsWith','_modelsRequest','1442888QTIWHU','filter','_getModelById','string','_retrieveModels','_config','354428ecvxyY','ai-chat-default-model-id-unrecognized','list','getModel','length','_modelList','getAvailableModels','isAvailable','7vtXNkg','16768488EVDDqG','provider','uiLanguage','defaultModelId','4495437cIjBNT','auto','_availableModels','ai-models-unable-to-retrieve','toLocaleLowerCase','5119011SQQmfw','push','_filterModels','name','find','2766990ApTEYI','recommended','agent','AI_MODEL_NAME_AUTO'];_0x3b7e=function(){return _0x223a7b;};return _0x3b7e();}import{getTranslation as _0x41ed44}from'../utils/common-translations.js';export class AIModels extends _0x5b3562(){[_0x5117c6(0x1b1)];[_0x5117c6(0x1be)];[_0x5117c6(0x1b6)];[_0x5117c6(0x1c4)]=[];[_0x5117c6(0x1b8)]=null;constructor({connector:_0x2a52f2,config:_0x4fcb11,locale:_0x2a81b4}){const _0x5e2d05=_0x5117c6;super(),this[_0x5e2d05(0x1b1)]=_0x2a52f2,this[_0x5e2d05(0x1be)]=_0x4fcb11,this[_0x5e2d05(0x1b6)]=_0x2a81b4;}get[_0x5117c6(0x1ce)](){const _0x37a4ae=_0x5117c6;return this[_0x37a4ae(0x1be)]?.[_0x37a4ae(0x1dc)];}get[_0x5117c6(0x1de)](){const _0x46fcab=_0x5117c6;return this[_0x46fcab(0x1be)]?.[_0x46fcab(0x1cb)];}async[_0x5117c6(0x1b2)](){const _0x144179=_0x5117c6;return this[_0x144179(0x1b8)]||(this[_0x144179(0x1b8)]=this[_0x144179(0x1bd)]()),this[_0x144179(0x1b8)];}async[_0x5117c6(0x1c5)](){const _0x64f61a=_0x5117c6,_0xa7ce46=await this[_0x64f61a(0x1b2)]();let _0x31556a;return _0x31556a=this[_0x64f61a(0x1ce)]?this[_0x64f61a(0x1d3)](_0xa7ce46,this[_0x64f61a(0x1ce)]):_0xa7ce46[_0x64f61a(0x1ba)](_0x2110a7=>_0x2110a7[_0x64f61a(0x1d7)]),_0x31556a;}async[_0x5117c6(0x1c2)](_0x157670){const _0x2f1420=_0x5117c6,_0x43d9d8=await this[_0x2f1420(0x1b2)]();if(!_0x43d9d8[_0x2f1420(0x1c3)])return null;if(_0x157670){const _0x299b6f=this[_0x2f1420(0x1bb)](_0x43d9d8,_0x157670);if(_0x299b6f)return _0x299b6f;_0x378098(_0x2f1420(0x1e0),{'modelId':_0x157670,'fallBackModelId':this[_0x2f1420(0x1de)]});}return this[_0x2f1420(0x1e4)]();}async[_0x5117c6(0x1e4)](){const _0x13b4d8=_0x5117c6,_0x1d1ace=await this[_0x13b4d8(0x1c5)]();if(!_0x1d1ace[_0x13b4d8(0x1c3)])return null;if(this[_0x13b4d8(0x1de)]){const _0x2703f2=this[_0x13b4d8(0x1bb)](_0x1d1ace,this[_0x13b4d8(0x1de)]);if(_0x2703f2)return _0x2703f2;_0x378098(_0x13b4d8(0x1c0),{'defaultModelId':this[_0x13b4d8(0x1de)],'fallBackModelId':_0x1d1ace[0x0]['id']});}return _0x1d1ace[0x0];}async[_0x5117c6(0x1c6)](_0x15803e){const _0x335a8=_0x5117c6;return(await this[_0x335a8(0x1c5)]())[_0x335a8(0x1e3)](_0x11e495=>_0x11e495[_0x335a8(0x1d4)]===_0x15803e[_0x335a8(0x1d4)]&&_0x11e495[_0x335a8(0x1c9)]===_0x15803e[_0x335a8(0x1c9)]);}async[_0x5117c6(0x1bd)](){const _0x50b409=_0x5117c6;if(!this[_0x50b409(0x1c4)][_0x50b409(0x1c3)])try{const _0x51d6cc=this[_0x50b409(0x1b6)][_0x50b409(0x1ca)]||'en',_0x32c7ff=this[_0x50b409(0x1b1)][_0x50b409(0x1b4)](_0x51d6cc),_0x40be70=await _0x32c7ff[_0x50b409(0x1c1)]();this[_0x50b409(0x1c4)]=_0x40be70[_0x50b409(0x1e1)][_0x50b409(0x1b0)](_0x37273b=>qi(_0x37273b)?{..._0x37273b,'name':_0x41ed44(this[_0x50b409(0x1b6)],_0x50b409(0x1d9))}:_0x37273b);}catch(_0x4255e3){throw _0x373168(_0x50b409(0x1cf),{'error':_0x4255e3}),_0x4255e3;}return[...this[_0x50b409(0x1c4)]];}[_0x5117c6(0x1d3)](_0x2ddbab,_0x4233d2){const _0xb21b69=_0x5117c6;let _0x2326e7;if(_0x4233d2){_0x2326e7=[];const _0x47e17c=new Set(),_0x4e4d6c=_0xb21b69(0x1bc)==typeof _0x4233d2?[_0x4233d2[_0xb21b69(0x1d0)]()]:_0x4233d2[_0xb21b69(0x1b0)](_0x2f0c82=>_0x2f0c82[_0xb21b69(0x1d0)]());for(const _0x3b44ae of _0x4e4d6c)for(const _0xc92f1a of _0x2ddbab)!_0x47e17c[_0xb21b69(0x1df)](_0xc92f1a['id'])&&this[_0xb21b69(0x1e2)](_0xc92f1a,_0x3b44ae)&&(_0x2326e7[_0xb21b69(0x1d2)](_0xc92f1a),_0x47e17c[_0xb21b69(0x1da)](_0xc92f1a['id']));}else _0x2326e7=_0x2ddbab;return _0x2326e7;}[_0x5117c6(0x1e2)](_0x17e81c,_0x5b9089){const _0x4f7978=_0x5117c6,_0x14320e=_0x17e81c['id'][_0x4f7978(0x1d0)](),_0x1774d5=_0x17e81c[_0x4f7978(0x1d4)][_0x4f7978(0x1d0)](),_0x2dc271=_0x17e81c[_0x4f7978(0x1c9)][_0x4f7978(0x1d0)]();return _0x14320e===_0x5b9089||_0x1774d5===_0x5b9089||qi(_0x17e81c)&&_0x4f7978(0x1cd)===_0x5b9089||_0x2dc271===_0x5b9089||_0x14320e[_0x4f7978(0x1b7)](_0x5b9089);}[_0x5117c6(0x1bb)](_0xe93f54,_0x97a93f){const _0x5457f8=_0x5117c6;return _0xe93f54[_0x5457f8(0x1d5)](_0x4cfe85=>qi(_0x4cfe85)&&_0x5457f8(0x1cd)===_0x97a93f?_0x4cfe85:_0x4cfe85['id']===_0x97a93f)||null;}}function qi(_0x3c7c3c){const _0x2fc94f=_0x5117c6;return _0x3c7c3c['id'][_0x2fc94f(0x1b7)](_0x2fc94f(0x1d8));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34cb8e=_0x1708;(function(_0x2799c3,_0x7326ff){const _0x2604e9=_0x1708,_0x33a81f=_0x2799c3();while(!![]){try{const _0x2d0265=-parseInt(_0x2604e9(0x12b))/0x1+-parseInt(_0x2604e9(0x133))/0x2*(parseInt(_0x2604e9(0x12a))/0x3)+parseInt(_0x2604e9(0x10b))/0x4+-parseInt(_0x2604e9(0x12d))/0x5+-parseInt(_0x2604e9(0xfa))/0x6*(-parseInt(_0x2604e9(0x134))/0x7)+parseInt(_0x2604e9(0x11d))/0x8*(-parseInt(_0x2604e9(0xf5))/0x9)+parseInt(_0x2604e9(0x13b))/0xa;if(_0x2d0265===_0x7326ff)break;else _0x33a81f['push'](_0x33a81f['shift']());}catch(_0x1baaae){_0x33a81f['push'](_0x33a81f['shift']());}}}(_0x53ce,0x3c103));import{CKEditorError as _0x3804bb,ObservableMixin as _0x1f295f,uid as _0x3432fe}from'ckeditor5/src/utils.js';function _0x53ce(){const _0x2418fa=['appendContent','replyChangeGroupStateUpdated','replyContentUpdated','nextSibling','cachedSuggestionContentParts','set','pending','1538536dRtdPT','updateChangeGroups','state','withoutDiff','documentContextContent','removedNodeIds','merge','changeGroups','newNodeIds','node','done','ai-reply-get-content-parts-group-not-found','parsedMergedContent','9057cBIdAy','321099UTodTh','interactionId','2032955BcuNpu','forEach','withDiff','every','editor','type','152CfvIIa','14PmnltE','parsedContent','parseAndNormalizeHTML','_getDifferentChangeGroups','span','isDone','modified','8728040VfyRzI','_getCachedContentParts','data-unstable','_setCachedContentParts','data-id','change:content','setChangeGroupState','locale','changes','stopListening','9tOdNaO','aiResponseApplier','onContentChange','indexOf','map','961626PvTZJe','splice','modifiedNodeIds','index','destroy','fire','context','sources','modification','new','color:\x20#808080;\x20font-style:\x20italic','previousSibling','aiResponseParser','length','cloneNode','removed','includes','808496rtawmS','AI_SUGGESTION_CONTENT_PART_REMOVED','filter','find','ai-get-editor-from-context-no-editor','areActionsDisabled','unshift','push','getContentParts','content','convertMarkdownToHTML'];_0x53ce=function(){return _0x2418fa;};return _0x53ce();}import{Element as _0x5addc9,findAll as _0x3e3d7b,getAttribute as _0x4f187e,getParents as _0x5039fb,Document as _0xadb83b,parse as _0x31c1be,Text as _0x5d31dc}from'../utils/htmlparser.js';import{AIResponseParser as _0x5e11fe}from'../pipeline/airesponseparser.js';function _0x1708(_0x403e32,_0x40c010){const _0x53ceed=_0x53ce();return _0x1708=function(_0x170847,_0x3bd70c){_0x170847=_0x170847-0xed;let _0x1b0095=_0x53ceed[_0x170847];return _0x1b0095;},_0x1708(_0x403e32,_0x40c010);}import{AIResponseApplier as _0x51400c}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x5b45c7}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x3dcece}from'../utils/common-translations.js';import{cloneDeep as _0xb0200f}from'es-toolkit';export class AIReply extends _0x1f295f(){['id'];[_0x34cb8e(0x12c)];[_0x34cb8e(0x132)];[_0x34cb8e(0x101)]=[];[_0x34cb8e(0x135)]=new _0xadb83b([]);[_0x34cb8e(0x129)]=new _0xadb83b([]);[_0x34cb8e(0x124)]=[];[_0x34cb8e(0x110)]=!0x1;[_0x34cb8e(0x121)];[_0x34cb8e(0x106)];[_0x34cb8e(0xf6)];[_0x34cb8e(0x131)];[_0x34cb8e(0x11a)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x51a7eb,content:_0x51d894='',isDone:_0x4b8070=!0x1,interactionId:_0x132e88,areActionsDisabled:_0x586de1,documentContextContent:_0x1baf81,editor:_0x557472,id:_0xad6a40}){const _0x4d7ff0=_0x34cb8e;super(),this['id']=_0xad6a40||_0x3432fe(),this[_0x4d7ff0(0x12c)]=_0x132e88,this[_0x4d7ff0(0x132)]=_0x51a7eb,this[_0x4d7ff0(0x110)]=!!_0x586de1,this[_0x4d7ff0(0x131)]=_0x557472,this[_0x4d7ff0(0x106)]=new _0x5e11fe(),this[_0x4d7ff0(0xf6)]=new _0x51400c(),this[_0x4d7ff0(0x121)]=_0x31c1be(_0x1baf81||''),this[_0x4d7ff0(0x11b)](_0x4d7ff0(0x139),_0x4b8070),this['on'](_0x4d7ff0(0xf0),()=>{const _0x56a449=_0x4d7ff0;this[_0x56a449(0xf7)]();}),this[_0x4d7ff0(0x11b)](_0x4d7ff0(0x114),_0x51d894);}[_0x34cb8e(0x116)](_0x46a19c){const _0x2e881f=_0x34cb8e;this[_0x2e881f(0x11b)](_0x2e881f(0x114),this[_0x2e881f(0x114)]+_0x46a19c);}[_0x34cb8e(0x127)](){const _0x33a1b6=_0x34cb8e;this[_0x33a1b6(0x139)]||(this[_0x33a1b6(0x11b)](_0x33a1b6(0x139),!0x0),this[_0x33a1b6(0xf7)]());}[_0x34cb8e(0xfe)](){const _0xd6fa6d=_0x34cb8e;this[_0xd6fa6d(0xf4)]();}[_0x34cb8e(0xf1)](_0x21587b,_0x3af368){const _0x3763fa=_0x34cb8e;this[_0x3763fa(0x124)][_0x21587b][_0x3763fa(0x11f)]=_0x3af368,this[_0x3763fa(0xff)](_0x3763fa(0x117),{'reply':this,'index':_0x21587b,'state':_0x3af368});}[_0x34cb8e(0x113)]({showDiff:_0x597c6f,groupIndex:_0x244a0d}){const _0x71dcad=_0x34cb8e;if(!this[_0x71dcad(0x131)])throw new _0x3804bb(_0x71dcad(0x10f),null,{'aiReply':this});const _0x4bf875=this[_0x71dcad(0x13c)](_0x597c6f,_0x244a0d);if(_0x4bf875)return _0x4bf875;let _0x5ce725=[];if(void 0x0===_0x244a0d)_0x5ce725=this[_0x71dcad(0x124)];else{const _0x5bef31=this[_0x71dcad(0x124)][_0x71dcad(0x10e)](({index:_0x112a1e})=>_0x112a1e===_0x244a0d);if(!_0x5bef31)throw new _0x3804bb(_0x71dcad(0x128),null,{'aiReply':this,'groupIndex':_0x244a0d});_0x5ce725=[_0x5bef31];}const _0x2098da=_0x5b45c7({'editor':this[_0x71dcad(0x131)],'showDiff':_0x597c6f,'changeGroups':_0x5ce725,'documentContextContent':this[_0x71dcad(0x121)]});return this[_0x71dcad(0xee)](_0x597c6f,_0x2098da),_0x2098da;}[_0x34cb8e(0x13c)](_0x27d81b,_0x467e61){const _0x317d93=_0x34cb8e,_0x40797f=_0x27d81b?_0x317d93(0x12f):_0x317d93(0x120);if(!this[_0x317d93(0x11a)][_0x40797f][_0x317d93(0x107)])return null;const _0x2fe2d1=this[_0x317d93(0x11a)][_0x40797f];if(void 0x0===_0x467e61)return _0x2fe2d1[_0x317d93(0x107)]>0x0&&_0x2fe2d1[_0x317d93(0x107)]!==this[_0x317d93(0x124)][_0x317d93(0x107)]?(this[_0x317d93(0xee)](_0x27d81b,null),null):_0xb0200f(_0x2fe2d1);{const _0x37f30c=_0x2fe2d1[_0x317d93(0x10e)](({index:_0x492e58})=>_0x492e58===_0x467e61);if(_0x37f30c)return[_0xb0200f(_0x37f30c)];}return null;}[_0x34cb8e(0xee)](_0xd26917,_0x3ddc7c){const _0x21ce8d=_0x34cb8e,_0x3417f1=_0xd26917?_0x21ce8d(0x12f):_0x21ce8d(0x120);_0x3ddc7c?_0x3ddc7c[_0x21ce8d(0x12e)](_0x5d45a2=>{const _0xdb3f97=_0x21ce8d,_0xa291ea=this[_0xdb3f97(0x11a)][_0x3417f1],_0x2dbcfe=_0xa291ea[_0xdb3f97(0x10e)](({index:_0x3ee7c9})=>_0x3ee7c9===_0x5d45a2[_0xdb3f97(0xfd)]);if(_0x2dbcfe){const _0x46d899=_0xa291ea[_0xdb3f97(0xf8)](_0x2dbcfe);_0xa291ea[_0xdb3f97(0xfb)](_0x46d899,0x1,_0x5d45a2);}else _0xa291ea[_0xdb3f97(0x112)](_0x5d45a2);}):this[_0x21ce8d(0x11a)][_0x3417f1][_0x21ce8d(0x107)]=0x0;}[_0x34cb8e(0xf7)](){const _0x866d4a=_0x34cb8e;if(_0x866d4a(0x102)===this[_0x866d4a(0x132)]){this[_0x866d4a(0x135)]=this[_0x866d4a(0x106)][_0x866d4a(0x136)](this[_0x866d4a(0x114)]);const _0x4bcfc2=this[_0x866d4a(0x124)];this[_0x866d4a(0x11e)]();const _0x37d026=this[_0x866d4a(0x137)](_0x4bcfc2,this[_0x866d4a(0x124)]);(_0x37d026[_0x866d4a(0x107)]||this[_0x866d4a(0x139)])&&(this[_0x866d4a(0xff)](_0x866d4a(0x118),this,_0x37d026),this[_0x866d4a(0x11a)][_0x866d4a(0x12f)][_0x866d4a(0x107)]=this[_0x866d4a(0x11a)][_0x866d4a(0x120)][_0x866d4a(0x107)]=0x0);}else this[_0x866d4a(0x135)]=this[_0x866d4a(0x106)][_0x866d4a(0x115)](this[_0x866d4a(0x114)]),this[_0x866d4a(0xff)](_0x866d4a(0x118),this);}[_0x34cb8e(0x137)](_0x1eeaf8,_0x3a0bbb){const _0x5b7980=_0x34cb8e,_0x24403a=[];for(const _0x156b09 of _0x3a0bbb){const _0x57e690=_0x1eeaf8[_0x156b09[_0x5b7980(0xfd)]];_0x57e690?_0x57e690[_0x5b7980(0xf3)][_0x5b7980(0x107)]!==_0x156b09[_0x5b7980(0xf3)][_0x5b7980(0x107)]?_0x24403a[_0x5b7980(0x112)](_0x156b09):_0x57e690[_0x5b7980(0xf3)][_0x5b7980(0x12e)]((_0x5f30b2,_0x9aab91)=>{const _0x2e2b49=_0x5b7980,_0x28a8f7=_0x156b09[_0x2e2b49(0xf3)][_0x9aab91];_0x5f30b2['id']!==_0x28a8f7['id']&&_0x24403a[_0x2e2b49(0x112)](_0x156b09);}):_0x24403a[_0x5b7980(0x112)](_0x156b09);}return _0x24403a;}[_0x34cb8e(0x11e)](){const _0x96e18a=_0x34cb8e,_0x1d0c58=new _0x5addc9('p',{},[new _0x5addc9(_0x96e18a(0x138),{'style':_0x96e18a(0x104)},[new _0x5d31dc(_0x3dcece(this[_0x96e18a(0x131)][_0x96e18a(0xf2)],_0x96e18a(0x10c)))])]),_0x3ceab8=this[_0x96e18a(0xf6)][_0x96e18a(0x123)](this[_0x96e18a(0x135)],this[_0x96e18a(0x121)][_0x96e18a(0x108)](!0x0),{'markUnstableElements':!this[_0x96e18a(0x139)],'replaceRemovedWith':_0x1d0c58,'cutAfterLastChange':!this[_0x96e18a(0x139)]});if(!_0x3ceab8[_0x96e18a(0xfc)][_0x96e18a(0x107)]&&!this[_0x96e18a(0x139)])return;this[_0x96e18a(0x129)]=_0x3ceab8[_0x96e18a(0x135)];let _0x4147fe=[];if(_0x3e3d7b(_0x545f2a=>{const _0x52cd0f=_0x96e18a,_0x45251a=_0x4f187e(_0x545f2a,_0x52cd0f(0xef));if(!_0x45251a||!_0x4c6942(_0x45251a))return!0x1;const _0x347f12=[_0x545f2a,..._0x5039fb(_0x545f2a)]['at'](-0x2);if(_0x545f2a!=_0x347f12){const _0x97d9f3=_0x4f187e(_0x347f12,_0x52cd0f(0xef));_0x4c6942(_0x97d9f3)||(_0x4147fe[_0x52cd0f(0x112)]({'node':_0x347f12,'id':_0x97d9f3,'type':_0x52cd0f(0x13a)}),_0x3ceab8[_0x52cd0f(0xfc)][_0x52cd0f(0x112)](_0x97d9f3));}else _0x3ceab8[_0x52cd0f(0xfc)][_0x52cd0f(0x10a)](_0x45251a)?_0x4147fe[_0x52cd0f(0x112)]({'node':_0x545f2a,'type':_0x52cd0f(0x13a),'id':_0x45251a}):_0x3ceab8[_0x52cd0f(0x125)][_0x52cd0f(0x10a)](_0x45251a)?_0x4147fe[_0x52cd0f(0x112)]({'node':_0x545f2a,'type':_0x52cd0f(0x103),'id':_0x45251a,'anchorId':_0x4f187e(_0x545f2a[_0x52cd0f(0x105)],_0x52cd0f(0xef))}):_0x4147fe[_0x52cd0f(0x112)]({'node':_0x545f2a,'type':_0x52cd0f(0x109),'id':_0x45251a});return!0x0;},this[_0x96e18a(0x129)]),_0x4147fe=_0x4147fe[_0x96e18a(0x10d)](({node:_0x196895})=>[..._0x5039fb(_0x196895),_0x196895][_0x96e18a(0x130)](_0x59d70c=>!_0x4f187e(_0x59d70c,_0x96e18a(0xed)))),0x0==_0x4147fe[_0x96e18a(0x107)])return;const _0x2936ec=[[_0x4147fe[0x0]]];for(let _0xfcf791=0x1;_0xfcf791<_0x4147fe[_0x96e18a(0x107)];_0xfcf791++){const _0x5642f=_0x2936ec[_0x2936ec[_0x96e18a(0x107)]-0x1],_0x38d7be=_0x5642f[_0x5642f[_0x96e18a(0x107)]-0x1];_0x4147fe[_0xfcf791][_0x96e18a(0x126)][_0x96e18a(0x105)]==_0x38d7be[_0x96e18a(0x126)]&&_0x96e18a(0x13a)!=_0x4147fe[_0xfcf791][_0x96e18a(0x132)]&&_0x96e18a(0x13a)!=_0x38d7be[_0x96e18a(0x132)]?_0x5642f[_0x96e18a(0x112)](_0x4147fe[_0xfcf791]):_0x2936ec[_0x96e18a(0x112)]([_0x4147fe[_0xfcf791]]);}for(const _0x2ee363 of _0x2936ec){const _0x54af5c=_0x2ee363[0x0],_0x291a74=_0x2ee363[_0x2ee363[_0x96e18a(0x107)]-0x1],_0x142e58=_0x3103aa(_0x54af5c[_0x96e18a(0x126)][_0x96e18a(0x105)]);_0x142e58&&_0x2ee363[_0x96e18a(0x111)](_0x142e58);const _0x4a5496=_0x3103aa(_0x291a74[_0x96e18a(0x126)][_0x96e18a(0x119)]);_0x4a5496&&_0x2ee363[_0x96e18a(0x112)](_0x4a5496);}function _0x4c6942(_0x239120){const _0x1f223a=_0x96e18a;return _0x3ceab8[_0x1f223a(0xfc)][_0x1f223a(0x10a)](_0x239120)||_0x3ceab8[_0x1f223a(0x125)][_0x1f223a(0x10a)](_0x239120)||_0x3ceab8[_0x1f223a(0x122)][_0x1f223a(0x10a)](_0x239120);}function _0x3103aa(_0x9ae95d){const _0x176a52=_0x96e18a;if(_0x9ae95d&&_0x4f187e(_0x9ae95d,_0x176a52(0xef))&&!_0x4f187e(_0x9ae95d,_0x176a52(0xed))){const _0x2d8fe2=_0x4f187e(_0x9ae95d,_0x176a52(0xef));if(!_0x4c6942(_0x2d8fe2))return{'node':_0x9ae95d,'type':_0x176a52(0x100),'id':_0x2d8fe2};}return null;}this[_0x96e18a(0x124)]=_0x2936ec[_0x96e18a(0xf9)]((_0x5040c2,_0x17df0a)=>({'changes':_0x5040c2,'state':_0x96e18a(0x11c),'index':_0x17df0a}));}}
23
+ const _0x70ec67=_0x214f;(function(_0x26d608,_0x2131dd){const _0x19ec0a=_0x214f,_0x3fefd2=_0x26d608();while(!![]){try{const _0x3bf9d9=parseInt(_0x19ec0a(0xe4))/0x1*(-parseInt(_0x19ec0a(0xe3))/0x2)+-parseInt(_0x19ec0a(0x113))/0x3*(-parseInt(_0x19ec0a(0xe6))/0x4)+parseInt(_0x19ec0a(0xff))/0x5+-parseInt(_0x19ec0a(0xe5))/0x6*(parseInt(_0x19ec0a(0xd8))/0x7)+parseInt(_0x19ec0a(0xe7))/0x8*(parseInt(_0x19ec0a(0x118))/0x9)+-parseInt(_0x19ec0a(0x11c))/0xa*(parseInt(_0x19ec0a(0x110))/0xb)+parseInt(_0x19ec0a(0x114))/0xc;if(_0x3bf9d9===_0x2131dd)break;else _0x3fefd2['push'](_0x3fefd2['shift']());}catch(_0x3b23db){_0x3fefd2['push'](_0x3fefd2['shift']());}}}(_0x121a,0x1ce35));import{CKEditorError as _0x31dba2,ObservableMixin as _0x1a83c,uid as _0x10228e}from'ckeditor5/src/utils.js';import{Element as _0x4a3e1b,findAll as _0x80efd,getAttribute as _0x47d4a3,getParents as _0x4ffd00,Document as _0x102eab,parse as _0x8b1111,Text as _0x3e3316}from'../utils/htmlparser.js';import{AIResponseParser as _0x537513}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x5243dc}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x583a9c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xae6588}from'../utils/common-translations.js';function _0x121a(){const _0x3b104f=['fire','_getDifferentChangeGroups','state','withDiff','setChangeGroupState','merge','_setCachedContentParts','aiResponseApplier','11ytTjnl','isDone','data-unstable','28821RkfGJw','5829192YMkbPD','stopListening','content','AI_SUGGESTION_CONTENT_PART_REMOVED','1422hbUhcJ','replyContentUpdated','nextSibling','convertMarkdownToHTML','2191630YgrqCl','indexOf','modification','length','splice','destroy','previousSibling','unshift','updateChangeGroups','ai-reply-get-content-parts-group-not-found','locale','context','removedNodeIds','new','161jrbDeC','areActionsDisabled','editor','parsedContent','cachedSuggestionContentParts','aiResponseParser','appendContent','find','color:\x20#808080;\x20font-style:\x20italic','changeGroups','change:content','4866YfPahL','4FpOyCA','55938tueMdL','4peXBYq','488PvZrdI','cloneNode','index','done','parsedMergedContent','newNodeIds','documentContextContent','node','removed','every','data-id','filter','getContentParts','withoutDiff','interactionId','ai-get-editor-from-context-no-editor','parseAndNormalizeHTML','span','replyChangeGroupStateUpdated','forEach','set','type','onContentChange','modifiedNodeIds','283190xQLust','push','includes','map','pending','_getCachedContentParts','changes','sources','modified'];_0x121a=function(){return _0x3b104f;};return _0x121a();}function _0x214f(_0x21993c,_0x50170c){const _0x121aad=_0x121a();return _0x214f=function(_0x214fcb,_0x6c2d69){_0x214fcb=_0x214fcb-0xce;let _0x18929e=_0x121aad[_0x214fcb];return _0x18929e;},_0x214f(_0x21993c,_0x50170c);}import{cloneDeep as _0x1914c9}from'es-toolkit';export class AIReply extends _0x1a83c(){['id'];[_0x70ec67(0xf5)];[_0x70ec67(0xfc)];[_0x70ec67(0x106)]=[];[_0x70ec67(0xdb)]=new _0x102eab([]);[_0x70ec67(0xeb)]=new _0x102eab([]);[_0x70ec67(0xe1)]=[];[_0x70ec67(0xd9)]=!0x1;[_0x70ec67(0xed)];[_0x70ec67(0xdd)];[_0x70ec67(0x10f)];[_0x70ec67(0xda)];[_0x70ec67(0xdc)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x54688b,content:_0x278f73='',isDone:_0x56d24a=!0x1,interactionId:_0x585213,areActionsDisabled:_0x19593e,documentContextContent:_0x3da1a0,editor:_0x12ff63,id:_0x44d38f}){const _0x36e6b1=_0x70ec67;super(),this['id']=_0x44d38f||_0x10228e(),this[_0x36e6b1(0xf5)]=_0x585213,this[_0x36e6b1(0xfc)]=_0x54688b,this[_0x36e6b1(0xd9)]=!!_0x19593e,this[_0x36e6b1(0xda)]=_0x12ff63,this[_0x36e6b1(0xdd)]=new _0x537513(),this[_0x36e6b1(0x10f)]=new _0x5243dc(),this[_0x36e6b1(0xed)]=_0x8b1111(_0x3da1a0||''),this[_0x36e6b1(0xfb)](_0x36e6b1(0x111),_0x56d24a),this['on'](_0x36e6b1(0xe2),()=>{const _0x532bf4=_0x36e6b1;this[_0x532bf4(0xfd)]();}),this[_0x36e6b1(0xfb)](_0x36e6b1(0x116),_0x278f73);}[_0x70ec67(0xde)](_0x50371){const _0x383559=_0x70ec67;this[_0x383559(0xfb)](_0x383559(0x116),this[_0x383559(0x116)]+_0x50371);}[_0x70ec67(0xea)](){const _0x4cd498=_0x70ec67;this[_0x4cd498(0x111)]||(this[_0x4cd498(0xfb)](_0x4cd498(0x111),!0x0),this[_0x4cd498(0xfd)]());}[_0x70ec67(0xcf)](){const _0x3e6020=_0x70ec67;this[_0x3e6020(0x115)]();}[_0x70ec67(0x10c)](_0x46f118,_0x193c1c){const _0x3c8169=_0x70ec67;this[_0x3c8169(0xe1)][_0x46f118][_0x3c8169(0x10a)]=_0x193c1c,this[_0x3c8169(0x108)](_0x3c8169(0xf9),{'reply':this,'index':_0x46f118,'state':_0x193c1c});}[_0x70ec67(0xf3)]({showDiff:_0x2d280d,groupIndex:_0xcc361e}){const _0x26d70b=_0x70ec67;if(!this[_0x26d70b(0xda)])throw new _0x31dba2(_0x26d70b(0xf6),null,{'aiReply':this});const _0x3cf343=this[_0x26d70b(0x104)](_0x2d280d,_0xcc361e);if(_0x3cf343)return _0x3cf343;let _0x49f8d9=[];if(void 0x0===_0xcc361e)_0x49f8d9=this[_0x26d70b(0xe1)];else{const _0x6333e3=this[_0x26d70b(0xe1)][_0x26d70b(0xdf)](({index:_0x33b595})=>_0x33b595===_0xcc361e);if(!_0x6333e3)throw new _0x31dba2(_0x26d70b(0xd3),null,{'aiReply':this,'groupIndex':_0xcc361e});_0x49f8d9=[_0x6333e3];}const _0x498e0a=_0x583a9c({'editor':this[_0x26d70b(0xda)],'showDiff':_0x2d280d,'changeGroups':_0x49f8d9,'documentContextContent':this[_0x26d70b(0xed)]});return this[_0x26d70b(0x10e)](_0x2d280d,_0x498e0a),_0x498e0a;}[_0x70ec67(0x104)](_0x3841a2,_0x187c53){const _0x52668b=_0x70ec67,_0x52fed8=_0x3841a2?_0x52668b(0x10b):_0x52668b(0xf4);if(!this[_0x52668b(0xdc)][_0x52fed8][_0x52668b(0x11f)])return null;const _0x7ae5c6=this[_0x52668b(0xdc)][_0x52fed8];if(void 0x0===_0x187c53)return _0x7ae5c6[_0x52668b(0x11f)]>0x0&&_0x7ae5c6[_0x52668b(0x11f)]!==this[_0x52668b(0xe1)][_0x52668b(0x11f)]?(this[_0x52668b(0x10e)](_0x3841a2,null),null):_0x1914c9(_0x7ae5c6);{const _0x2023ee=_0x7ae5c6[_0x52668b(0xdf)](({index:_0x15aaeb})=>_0x15aaeb===_0x187c53);if(_0x2023ee)return[_0x1914c9(_0x2023ee)];}return null;}[_0x70ec67(0x10e)](_0x4090fe,_0x2f2a8a){const _0x3370f2=_0x70ec67,_0x58f2c2=_0x4090fe?_0x3370f2(0x10b):_0x3370f2(0xf4);_0x2f2a8a?_0x2f2a8a[_0x3370f2(0xfa)](_0x2f74df=>{const _0x38e52b=_0x3370f2,_0x5b89d4=this[_0x38e52b(0xdc)][_0x58f2c2],_0x4ee5a5=_0x5b89d4[_0x38e52b(0xdf)](({index:_0x31ac66})=>_0x31ac66===_0x2f74df[_0x38e52b(0xe9)]);if(_0x4ee5a5){const _0x51f2d7=_0x5b89d4[_0x38e52b(0x11d)](_0x4ee5a5);_0x5b89d4[_0x38e52b(0xce)](_0x51f2d7,0x1,_0x2f74df);}else _0x5b89d4[_0x38e52b(0x100)](_0x2f74df);}):this[_0x3370f2(0xdc)][_0x58f2c2][_0x3370f2(0x11f)]=0x0;}[_0x70ec67(0xfd)](){const _0x1e6784=_0x70ec67;if(_0x1e6784(0x11e)===this[_0x1e6784(0xfc)]){this[_0x1e6784(0xdb)]=this[_0x1e6784(0xdd)][_0x1e6784(0xf7)](this[_0x1e6784(0x116)]);const _0x22127f=this[_0x1e6784(0xe1)];this[_0x1e6784(0xd2)]();const _0x4f7360=this[_0x1e6784(0x109)](_0x22127f,this[_0x1e6784(0xe1)]);(_0x4f7360[_0x1e6784(0x11f)]||this[_0x1e6784(0x111)])&&(this[_0x1e6784(0x108)](_0x1e6784(0x119),this,_0x4f7360),this[_0x1e6784(0xdc)][_0x1e6784(0x10b)][_0x1e6784(0x11f)]=this[_0x1e6784(0xdc)][_0x1e6784(0xf4)][_0x1e6784(0x11f)]=0x0);}else this[_0x1e6784(0xdb)]=this[_0x1e6784(0xdd)][_0x1e6784(0x11b)](this[_0x1e6784(0x116)]),this[_0x1e6784(0x108)](_0x1e6784(0x119),this);}[_0x70ec67(0x109)](_0x23be57,_0x35520e){const _0x22ae61=_0x70ec67,_0x172a6c=[];for(const _0x1deb76 of _0x35520e){const _0xfcd82f=_0x23be57[_0x1deb76[_0x22ae61(0xe9)]];_0xfcd82f?_0xfcd82f[_0x22ae61(0x105)][_0x22ae61(0x11f)]!==_0x1deb76[_0x22ae61(0x105)][_0x22ae61(0x11f)]?_0x172a6c[_0x22ae61(0x100)](_0x1deb76):_0xfcd82f[_0x22ae61(0x105)][_0x22ae61(0xfa)]((_0x28ce2b,_0x46db7c)=>{const _0x52b0bc=_0x22ae61,_0x6d0505=_0x1deb76[_0x52b0bc(0x105)][_0x46db7c];_0x28ce2b['id']!==_0x6d0505['id']&&_0x172a6c[_0x52b0bc(0x100)](_0x1deb76);}):_0x172a6c[_0x22ae61(0x100)](_0x1deb76);}return _0x172a6c;}[_0x70ec67(0xd2)](){const _0x108b58=_0x70ec67,_0xb97dd5=new _0x4a3e1b('p',{},[new _0x4a3e1b(_0x108b58(0xf8),{'style':_0x108b58(0xe0)},[new _0x3e3316(_0xae6588(this[_0x108b58(0xda)][_0x108b58(0xd4)],_0x108b58(0x117)))])]),_0x5b6099=this[_0x108b58(0x10f)][_0x108b58(0x10d)](this[_0x108b58(0xdb)],this[_0x108b58(0xed)][_0x108b58(0xe8)](!0x0),{'markUnstableElements':!this[_0x108b58(0x111)],'replaceRemovedWith':_0xb97dd5,'cutAfterLastChange':!this[_0x108b58(0x111)]});if(!_0x5b6099[_0x108b58(0xfe)][_0x108b58(0x11f)]&&!this[_0x108b58(0x111)])return;this[_0x108b58(0xeb)]=_0x5b6099[_0x108b58(0xdb)];let _0x596d08=[];if(_0x80efd(_0x44caaf=>{const _0x1ad645=_0x108b58,_0x1286b8=_0x47d4a3(_0x44caaf,_0x1ad645(0xf1));if(!_0x1286b8||!_0x25d976(_0x1286b8))return!0x1;const _0x4fe3df=[_0x44caaf,..._0x4ffd00(_0x44caaf)]['at'](-0x2);if(_0x44caaf!=_0x4fe3df){const _0x28ebee=_0x47d4a3(_0x4fe3df,_0x1ad645(0xf1));_0x25d976(_0x28ebee)||(_0x596d08[_0x1ad645(0x100)]({'node':_0x4fe3df,'id':_0x28ebee,'type':_0x1ad645(0x107)}),_0x5b6099[_0x1ad645(0xfe)][_0x1ad645(0x100)](_0x28ebee));}else _0x5b6099[_0x1ad645(0xfe)][_0x1ad645(0x101)](_0x1286b8)?_0x596d08[_0x1ad645(0x100)]({'node':_0x44caaf,'type':_0x1ad645(0x107),'id':_0x1286b8}):_0x5b6099[_0x1ad645(0xec)][_0x1ad645(0x101)](_0x1286b8)?_0x596d08[_0x1ad645(0x100)]({'node':_0x44caaf,'type':_0x1ad645(0xd7),'id':_0x1286b8,'anchorId':_0x47d4a3(_0x44caaf[_0x1ad645(0xd0)],_0x1ad645(0xf1))}):_0x596d08[_0x1ad645(0x100)]({'node':_0x44caaf,'type':_0x1ad645(0xef),'id':_0x1286b8});return!0x0;},this[_0x108b58(0xeb)]),_0x596d08=_0x596d08[_0x108b58(0xf2)](({node:_0x3ee86a})=>[..._0x4ffd00(_0x3ee86a),_0x3ee86a][_0x108b58(0xf0)](_0x3bbe63=>!_0x47d4a3(_0x3bbe63,_0x108b58(0x112)))),0x0==_0x596d08[_0x108b58(0x11f)])return;const _0x250e19=[[_0x596d08[0x0]]];for(let _0x5126a0=0x1;_0x5126a0<_0x596d08[_0x108b58(0x11f)];_0x5126a0++){const _0x30f564=_0x250e19[_0x250e19[_0x108b58(0x11f)]-0x1],_0x2cf777=_0x30f564[_0x30f564[_0x108b58(0x11f)]-0x1];_0x596d08[_0x5126a0][_0x108b58(0xee)][_0x108b58(0xd0)]==_0x2cf777[_0x108b58(0xee)]&&_0x108b58(0x107)!=_0x596d08[_0x5126a0][_0x108b58(0xfc)]&&_0x108b58(0x107)!=_0x2cf777[_0x108b58(0xfc)]?_0x30f564[_0x108b58(0x100)](_0x596d08[_0x5126a0]):_0x250e19[_0x108b58(0x100)]([_0x596d08[_0x5126a0]]);}for(const _0x29b59f of _0x250e19){const _0xd94057=_0x29b59f[0x0],_0x4beffe=_0x29b59f[_0x29b59f[_0x108b58(0x11f)]-0x1],_0x15cf01=_0x7d5a1b(_0xd94057[_0x108b58(0xee)][_0x108b58(0xd0)]);_0x15cf01&&_0x29b59f[_0x108b58(0xd1)](_0x15cf01);const _0x22d2da=_0x7d5a1b(_0x4beffe[_0x108b58(0xee)][_0x108b58(0x11a)]);_0x22d2da&&_0x29b59f[_0x108b58(0x100)](_0x22d2da);}function _0x25d976(_0x249373){const _0x4b3aaf=_0x108b58;return _0x5b6099[_0x4b3aaf(0xfe)][_0x4b3aaf(0x101)](_0x249373)||_0x5b6099[_0x4b3aaf(0xec)][_0x4b3aaf(0x101)](_0x249373)||_0x5b6099[_0x4b3aaf(0xd6)][_0x4b3aaf(0x101)](_0x249373);}function _0x7d5a1b(_0xca056d){const _0x3d94c8=_0x108b58;if(_0xca056d&&_0x47d4a3(_0xca056d,_0x3d94c8(0xf1))&&!_0x47d4a3(_0xca056d,_0x3d94c8(0x112))){const _0x4a066b=_0x47d4a3(_0xca056d,_0x3d94c8(0xf1));if(!_0x25d976(_0x4a066b))return{'node':_0xca056d,'type':_0x3d94c8(0xd5),'id':_0x4a066b};}return null;}this[_0x108b58(0xe1)]=_0x250e19[_0x108b58(0x102)]((_0x2af166,_0x37ebda)=>({'changes':_0x2af166,'state':_0x108b58(0x103),'index':_0x37ebda}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a408f=_0x2396;(function(_0x54c52c,_0x5262d7){const _0xa3d472=_0x2396,_0x336055=_0x54c52c();while(!![]){try{const _0x1bbc93=parseInt(_0xa3d472(0x165))/0x1+-parseInt(_0xa3d472(0x171))/0x2*(-parseInt(_0xa3d472(0x175))/0x3)+-parseInt(_0xa3d472(0x167))/0x4*(parseInt(_0xa3d472(0x15e))/0x5)+parseInt(_0xa3d472(0x188))/0x6+-parseInt(_0xa3d472(0x169))/0x7*(parseInt(_0xa3d472(0x163))/0x8)+-parseInt(_0xa3d472(0x181))/0x9+-parseInt(_0xa3d472(0x199))/0xa*(-parseInt(_0xa3d472(0x19c))/0xb);if(_0x1bbc93===_0x5262d7)break;else _0x336055['push'](_0x336055['shift']());}catch(_0x26215d){_0x336055['push'](_0x336055['shift']());}}}(_0x351e,0xbf806));import{ObservableMixin as _0xc0c6f6,uid as _0x306691}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x48def4,findByAttribute as _0x214842,getAttribute as _0xa1a19f,isComment as _0x2d5679,isTag as _0x11fa03,insertElement as _0x1127e8,moveElement as _0x9aa629,removeElement as _0x79562d,replaceElement as _0x417ceb,serialize as _0x27a13d,setAttribute as _0x5d7bcb,clone as _0x4b156c,findAllComments as _0x29626f,getParents as _0x3d3175,getNodeNestingLevel as _0x2cad09,areNodesSame as _0x5b5ddf,removeElementsAfter as _0x5fb6cb}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0xc0c6f6(){[_0x4a408f(0x191)];[_0x4a408f(0x19d)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x4a408f(0x166)]=new Set();constructor(_0x278696){const _0x1efcb5=_0x4a408f;super(),this[_0x1efcb5(0x191)]=_0x278696||_0x306691;}[_0x4a408f(0x176)](_0x30e5ea,_0x205fd7,_0x5c156c){const _0x4bb090=_0x4a408f,_0x1ff98c=_0x4b156c(_0x30e5ea);if(0x0===_0x205fd7[_0x4bb090(0x189)][_0x4bb090(0x162)]){const _0x25e3c0=[];return _0x48def4(_0x4bb090(0x19e),_0x4bb090(0x17e),_0x1ff98c)[_0x4bb090(0x16c)](_0x3fb4b6=>{const _0x269803=_0x4bb090,_0x3b8da9=this[_0x269803(0x191)]();_0x5d7bcb(_0x3fb4b6,_0x269803(0x19e),_0x3b8da9),_0x25e3c0[_0x269803(0x170)](_0x3b8da9);}),this[_0x4bb090(0x194)](_0x1ff98c),{'parsedContent':_0x1ff98c,'newNodeIds':_0x25e3c0,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5c156c&&_0x5c156c[_0x4bb090(0x18d)]&&this[_0x4bb090(0x17b)](_0x1ff98c),this[_0x4bb090(0x19d)][_0x4bb090(0x190)]=[],this[_0x4bb090(0x19d)][_0x4bb090(0x164)]=[],this[_0x4bb090(0x19d)][_0x4bb090(0x18e)]=[],this[_0x4bb090(0x19d)][_0x4bb090(0x177)]=[],this[_0x4bb090(0x19d)][_0x4bb090(0x16f)]=null,this[_0x4bb090(0x166)]=new Set(_0x48def4(_0x4bb090(0x19e),null,_0x205fd7)[_0x4bb090(0x160)](_0x14f565=>_0xa1a19f(_0x14f565,_0x4bb090(0x19e)))[_0x4bb090(0x15d)](_0x516642=>!!_0x516642));let _0x3d3525=-0x1,_0x17e48d=!0x1;const _0x307350=_0x1ff98c[_0x4bb090(0x189)],_0x57f5bf=Array[_0x4bb090(0x168)](_0x307350)[_0x4bb090(0x15d)](_0x4fd055=>!(0x3===_0x4fd055[_0x4bb090(0x197)]&&''===_0x27a13d(_0x4fd055)[_0x4bb090(0x183)]())),_0x134eb1=_0x57f5bf[_0x4bb090(0x162)];for(let _0x106f06=0x0;_0x106f06<_0x134eb1;_0x106f06++){const _0x40b277=_0x57f5bf[_0x106f06],_0x134687=_0x57f5bf[_0x106f06+0x1];if(this[_0x4bb090(0x18f)](_0x40b277)){if(-0x1===_0x3d3525&&(_0x3d3525=_0x106f06),this[_0x4bb090(0x157)](_0x40b277),!this[_0x4bb090(0x18f)](_0x134687)){const [_0x4300f7,_0x16f418]=this[_0x4bb090(0x161)](_0x40b277,_0x17e48d,_0x205fd7);if(_0x4300f7){const _0x22f440=Array[_0x4bb090(0x168)](_0x57f5bf)[_0x4bb090(0x185)](_0x3d3525,_0x106f06+0x1);this[_0x4bb090(0x19b)](_0x4300f7,_0x22f440,_0x16f418),_0x3d3525=-0x1;}}}else{if(this[_0x4bb090(0x180)](_0x40b277))_0x17e48d=!0x0;else{if(this[_0x4bb090(0x182)](_0x40b277)){const _0x5110fc=_0xa1a19f(_0x40b277,_0x4bb090(0x19e));if(_0x5110fc&&this[_0x4bb090(0x166)][_0x4bb090(0x178)](_0x5110fc)){const _0x43e4f3=_0x214842(_0x4bb090(0x19e),_0x5110fc,_0x205fd7);this[_0x4bb090(0x184)](_0x43e4f3,_0x40b277);}if(this[_0x4bb090(0x19d)][_0x4bb090(0x18e)][_0x4bb090(0x15c)](_0x5110fc)){const _0x28fdcf=this[_0x4bb090(0x19d)][_0x4bb090(0x18e)][_0x4bb090(0x15a)](_0x5110fc);this[_0x4bb090(0x19d)][_0x4bb090(0x18e)][_0x4bb090(0x16d)](_0x28fdcf,0x1);}}else{if(this[_0x4bb090(0x186)](_0x40b277)){const _0x174ab9=_0xa1a19f(_0x40b277,_0x4bb090(0x19e));this[_0x4bb090(0x19d)][_0x4bb090(0x164)][_0x4bb090(0x15c)](_0x174ab9)||this[_0x4bb090(0x17f)](_0x40b277);}}}}}for(const _0x1f0c7b of this[_0x4bb090(0x19d)][_0x4bb090(0x18e)]){const _0x1474bc=_0x214842(_0x4bb090(0x19e),_0x1f0c7b,_0x205fd7);if(_0x1474bc){if(_0x5c156c&&_0x5c156c[_0x4bb090(0x172)]){this[_0x4bb090(0x19d)][_0x4bb090(0x16f)]=_0x1f0c7b;const _0x544758=_0x5c156c[_0x4bb090(0x172)][_0x4bb090(0x159)](!0x0);_0x5d7bcb(_0x544758,_0x4bb090(0x19e),_0x1f0c7b),_0x5d7bcb(_0x544758,_0x4bb090(0x17c),_0x4bb090(0x16e)),_0x417ceb(_0x1474bc,_0x544758);}else _0x79562d(_0x1474bc);}}if(_0x48def4(_0x4bb090(0x16b),null,_0x205fd7)[_0x4bb090(0x16c)](_0xd909e8=>{const _0x58dce3=_0x4bb090,_0x555559=_0xa1a19f(_0xd909e8,_0x58dce3(0x16b)),_0x1a4b12=_0x214842(_0x58dce3(0x19e),_0x555559,_0x205fd7);_0x1a4b12&&_0x9aa629(_0x1a4b12,_0xd909e8);}),_0x48def4(_0x4bb090(0x19e),_0x4bb090(0x17e),_0x205fd7)[_0x4bb090(0x16c)](_0x572c2=>{const _0x4f471d=_0x4bb090,_0x3bf1a2=this[_0x4f471d(0x192)](_0x572c2);_0x5d7bcb(_0x572c2,_0x4f471d(0x19e),_0x3bf1a2),this[_0x4f471d(0x19d)][_0x4f471d(0x190)][_0x4f471d(0x170)](_0x3bf1a2);}),this[_0x4bb090(0x194)](_0x205fd7),_0x5c156c&&_0x5c156c[_0x4bb090(0x18d)]&&this[_0x4bb090(0x195)](_0x205fd7,_0x5c156c[_0x4bb090(0x17d)]||0x0),_0x5c156c&&_0x5c156c[_0x4bb090(0x19a)]&&this[_0x4bb090(0x19d)][_0x4bb090(0x16f)]){let _0x3cefcb=_0x214842(_0x4bb090(0x19e),this[_0x4bb090(0x19d)][_0x4bb090(0x16f)],_0x205fd7);for(;_0x3cefcb;)_0x5fb6cb(_0x3cefcb),_0x3cefcb=_0x3cefcb[_0x4bb090(0x158)];}return{'parsedContent':_0x205fd7,'newNodeIds':this[_0x4bb090(0x19d)][_0x4bb090(0x190)],'modifiedNodeIds':this[_0x4bb090(0x19d)][_0x4bb090(0x164)],'removedNodeIds':this[_0x4bb090(0x19d)][_0x4bb090(0x18e)]};}[_0x4a408f(0x19b)](_0x33409a,_0x513a7f,_0x2fd63c){const _0x3340b8=_0x4a408f;for(const _0x38c195 of _0x513a7f){const _0x14badb=this[_0x3340b8(0x192)](_0x38c195);_0x5d7bcb(_0x38c195,_0x3340b8(0x19e),_0x14badb),this[_0x3340b8(0x19d)][_0x3340b8(0x190)][_0x3340b8(0x170)](_0x14badb),this[_0x3340b8(0x19d)][_0x3340b8(0x16f)]=_0x14badb;}const _0xf206e4=_0x3340b8(0x174)===_0x2fd63c||_0x3340b8(0x179)===_0x2fd63c?_0x513a7f[_0x3340b8(0x196)]():_0x513a7f;for(const _0x4d59d4 of _0xf206e4)_0x1127e8(_0x33409a,_0x4d59d4,_0x2fd63c);}[_0x4a408f(0x184)](_0x4e4015,_0x29654c){const _0x57a283=_0x4a408f;if(!_0x4e4015)return;if(_0x5b5ddf(_0x4e4015,_0x29654c))return;const _0x579db0=this[_0x57a283(0x192)](_0x4e4015);_0x5d7bcb(_0x29654c,_0x57a283(0x19e),_0x579db0),this[_0x57a283(0x19d)][_0x57a283(0x164)][_0x57a283(0x170)](_0x579db0),this[_0x57a283(0x19d)][_0x57a283(0x16f)]=_0x579db0,_0x417ceb(_0x4e4015,_0x29654c[_0x57a283(0x159)](!0x0));}[_0x4a408f(0x161)](_0x45f854,_0x152d97,_0x5c1560){const _0x2f1336=_0x4a408f,_0x400bf0=this[_0x2f1336(0x15f)](_0x45f854,!0x1);if(_0x400bf0){const _0xd001e=this[_0x2f1336(0x198)](_0x400bf0),_0x3ffce9=_0x214842(_0x2f1336(0x19e),_0xd001e,_0x5c1560);if(_0x3ffce9)return[_0x3ffce9,_0x2f1336(0x179)];this[_0x2f1336(0x19d)][_0x2f1336(0x177)][_0x2f1336(0x170)](_0xd001e);}const _0x3d2d61=this[_0x2f1336(0x18a)](_0x45f854,!0x1);if(_0x3d2d61){const _0xbcca46=this[_0x2f1336(0x198)](_0x3d2d61),_0x7dce86=_0x214842(_0x2f1336(0x19e),_0xbcca46,_0x5c1560);if(_0x7dce86)return[_0x7dce86,_0x2f1336(0x17a)];this[_0x2f1336(0x19d)][_0x2f1336(0x177)][_0x2f1336(0x170)](_0xbcca46);}return _0x152d97?_0x45f854[_0x2f1336(0x193)]?this[_0x2f1336(0x173)](_0x45f854,_0x5c1560):[_0x5c1560[_0x2f1336(0x189)][_0x5c1560[_0x2f1336(0x189)][_0x2f1336(0x162)]-0x1],_0x2f1336(0x179)]:[_0x5c1560[_0x2f1336(0x189)][0x0],_0x2f1336(0x17a)];}[_0x4a408f(0x173)](_0x20a073,_0x2c4df5){const _0x3d3806=_0x4a408f,_0x14aec5=[],_0x3b14b6=this[_0x3d3806(0x15f)](_0x20a073,!0x0);if(_0x3b14b6){const _0x3b0c26=this[_0x3d3806(0x198)](_0x3b14b6),_0x298326=_0x214842(_0x3d3806(0x19e),_0x3b0c26,_0x2c4df5);_0x298326&&_0x14aec5[_0x3d3806(0x170)]([_0x298326,_0x3d3806(0x179)]);}const _0x446bbb=this[_0x3d3806(0x18a)](_0x20a073,!0x0);if(_0x446bbb){const _0x75a1a2=this[_0x3d3806(0x198)](_0x446bbb),_0x5bb07f=_0x214842(_0x3d3806(0x19e),_0x75a1a2,_0x2c4df5);_0x5bb07f&&_0x14aec5[_0x3d3806(0x170)]([_0x5bb07f,_0x3d3806(0x17a)]);}if(_0x14aec5[_0x3d3806(0x162)]>0x1)return _0x2cad09(_0x14aec5[0x0][0x0])<=_0x2cad09(_0x14aec5[0x1][0x0])?_0x14aec5[0x0]:_0x14aec5[0x1];return 0x1===_0x14aec5[_0x3d3806(0x162)]?_0x14aec5[0x0]:[_0x2c4df5[_0x3d3806(0x18c)],_0x3d3806(0x179)];}[_0x4a408f(0x18a)](_0x37b6ed,_0x13f0e6){const _0x3fc7a9=_0x4a408f;let _0x1d7de0=_0x37b6ed[_0x3fc7a9(0x193)],_0x274b23=null,_0x5e5f4a=!0x1;for(;_0x1d7de0;){if(_0x2d5679(_0x1d7de0)){if(this[_0x3fc7a9(0x186)](_0x1d7de0)&&(_0x274b23=_0x1d7de0),this[_0x3fc7a9(0x180)](_0x1d7de0)&&_0x13f0e6&&!_0x5e5f4a){_0x5e5f4a=!0x0,_0x1d7de0=_0x1d7de0[_0x3fc7a9(0x193)];continue;}break;}const _0x2396bf=_0xa1a19f(_0x1d7de0,_0x3fc7a9(0x19e));if(_0x2396bf&&_0x3fc7a9(0x17e)!==_0x2396bf&&this[_0x3fc7a9(0x166)][_0x3fc7a9(0x178)](_0x2396bf)){_0x274b23=_0x1d7de0;break;}_0x1d7de0=_0x1d7de0[_0x3fc7a9(0x193)];}return _0x274b23;}[_0x4a408f(0x15f)](_0x45c336,_0x211b42){const _0x5767f3=_0x4a408f;let _0x1dcd11=_0x45c336[_0x5767f3(0x16a)],_0x7612c3=null,_0x3b7e44=!0x1;for(;_0x1dcd11;){if(_0x2d5679(_0x1dcd11)){if(this[_0x5767f3(0x186)](_0x1dcd11)&&(_0x7612c3=_0x1dcd11),this[_0x5767f3(0x180)](_0x1dcd11)&&_0x211b42&&!_0x3b7e44){_0x3b7e44=!0x0,_0x1dcd11=_0x1dcd11[_0x5767f3(0x16a)];continue;}break;}const _0x430a3d=_0xa1a19f(_0x1dcd11,_0x5767f3(0x19e));if(_0x430a3d&&_0x5767f3(0x17e)!==_0x430a3d&&this[_0x5767f3(0x166)][_0x5767f3(0x178)](_0x430a3d)){_0x7612c3=_0x1dcd11;break;}_0x1dcd11=_0x1dcd11[_0x5767f3(0x16a)];}return _0x7612c3;}[_0x4a408f(0x157)](_0x52acf9){const _0x30f8a5=_0x4a408f;_0x11fa03(_0x52acf9)&&_0x48def4(_0x30f8a5(0x19e),null,_0x52acf9)[_0x30f8a5(0x16c)](_0x4fccaf=>{const _0x2d2ac8=_0x30f8a5;if(this[_0x2d2ac8(0x182)](_0x4fccaf)&&!this[_0x2d2ac8(0x18b)](_0x4fccaf)){const _0xf25176=_0xa1a19f(_0x4fccaf,_0x2d2ac8(0x19e));_0x5d7bcb(_0x4fccaf,_0x2d2ac8(0x16b),_0xf25176),_0x5d7bcb(_0x4fccaf,_0x2d2ac8(0x19e),null);}});}[_0x4a408f(0x198)](_0x2d80bd){const _0x4f8e43=_0x4a408f;if(!_0x2d80bd)return null;if(_0x11fa03(_0x2d80bd))return _0xa1a19f(_0x2d80bd,_0x4f8e43(0x19e));if(_0x2d5679(_0x2d80bd)){const _0x34a8a9=_0x27a13d(_0x2d80bd)[_0x4f8e43(0x15b)](/removed[\s*-]data-id="([^"]+)"/);if(_0x34a8a9&&_0x34a8a9[0x1])return _0x34a8a9[0x1];}return null;}[_0x4a408f(0x17f)](_0x1ecf41){const _0x3ac36b=_0x4a408f;if(_0x2d5679(_0x1ecf41)){const _0x5f5c63=_0x27a13d(_0x1ecf41)[_0x3ac36b(0x15b)](/removed[\s*-]data-id="([^"]+)"/);_0x5f5c63&&_0x5f5c63[0x1]&&this[_0x3ac36b(0x19d)][_0x3ac36b(0x18e)][_0x3ac36b(0x170)](_0x5f5c63[0x1]);}}[_0x4a408f(0x192)](_0x96e624){const _0x24b9a6=_0x4a408f;return this[_0x24b9a6(0x182)](_0x96e624)?_0xa1a19f(_0x96e624,_0x24b9a6(0x19e)):this[_0x24b9a6(0x191)]();}[_0x4a408f(0x194)](_0x193988){const _0x12fb6a=_0x4a408f;_0x29626f(_0x193988)[_0x12fb6a(0x15d)](_0xfa0fb3=>this[_0x12fb6a(0x186)](_0xfa0fb3)||this[_0x12fb6a(0x180)](_0xfa0fb3))[_0x12fb6a(0x16c)](_0x2a457a=>{_0x79562d(_0x2a457a);});}[_0x4a408f(0x17b)](_0x552b79){const _0x55926c=_0x4a408f,_0x49c470=_0x552b79[_0x55926c(0x189)],_0x2a8ed4=_0x49c470[_0x49c470[_0x55926c(0x162)]-0x1];_0x2a8ed4&&_0x11fa03(_0x2a8ed4)&&_0x5d7bcb(_0x2a8ed4,_0x55926c(0x187),_0x55926c(0x16e));}[_0x4a408f(0x195)](_0x4f843e,_0x1ac3fb){const _0x8ab9a8=_0x4a408f,_0x4ede48=_0x214842(_0x8ab9a8(0x187),_0x8ab9a8(0x16e),_0x4f843e);if(!_0x4ede48)return;const _0x2d26a8=_0x3d3175(_0x4ede48)[_0x8ab9a8(0x185)](0x0,-0x1),_0x286dc3=_0x2d26a8[_0x8ab9a8(0x162)];let _0x101bde=_0x4ede48;if(_0x286dc3>_0x1ac3fb){let _0x445059=_0x286dc3,_0x4d2ab6=null;for(;_0x445059>_0x1ac3fb&&_0x445059>=0x0;)_0x445059--,_0x4d2ab6=_0x2d26a8[_0x445059];_0x4d2ab6&&(_0x101bde=_0x4d2ab6,_0x5d7bcb(_0x4ede48,_0x8ab9a8(0x187),null),_0x5d7bcb(_0x4d2ab6,_0x8ab9a8(0x187),_0x8ab9a8(0x16e)));}else{if(_0x286dc3<_0x1ac3fb){let _0x2c1b85=_0x286dc3,_0xa9aece=_0x4ede48;for(;_0x2c1b85<_0x1ac3fb;){const _0x281b95=_0xa9aece[_0x8ab9a8(0x189)][_0x8ab9a8(0x15d)](_0x5edcb6=>_0x11fa03(_0x5edcb6));if(0x0===_0x281b95[_0x8ab9a8(0x162)])break;_0x2c1b85++,_0xa9aece=_0x281b95[_0x281b95[_0x8ab9a8(0x162)]-0x1];}_0xa9aece&&(_0x101bde=_0xa9aece,_0x5d7bcb(_0x4ede48,_0x8ab9a8(0x187),null),_0x5d7bcb(_0xa9aece,_0x8ab9a8(0x187),_0x8ab9a8(0x16e)));}}let _0x3edea6=_0x101bde;for(;_0x3edea6;){for(;_0x3edea6[_0x8ab9a8(0x193)];)_0x3edea6=_0x3edea6[_0x8ab9a8(0x193)],_0x11fa03(_0x3edea6)&&_0x5d7bcb(_0x3edea6,_0x8ab9a8(0x187),_0x8ab9a8(0x16e));_0x3edea6=_0x3edea6[_0x8ab9a8(0x158)];}}[_0x4a408f(0x18f)](_0x695913){const _0x54babc=_0x4a408f;return Boolean(_0x54babc(0x17e)===_0xa1a19f(_0x695913,_0x54babc(0x19e)));}[_0x4a408f(0x182)](_0x54278a){const _0x485e10=_0x4a408f;return Boolean((_0xa1a19f(_0x54278a,_0x485e10(0x19e))||'')[_0x485e10(0x162)]>0x0&&_0x485e10(0x17e)!==_0xa1a19f(_0x54278a,_0x485e10(0x19e)));}[_0x4a408f(0x186)](_0x620640){const _0x5c435c=_0x4a408f;return!!_0x620640&&Boolean(_0x2d5679(_0x620640)&&_0x27a13d(_0x620640)[_0x5c435c(0x15b)](/removed[\s*-]data-id="[^"]+"/));}[_0x4a408f(0x18b)](_0x391907){const _0x35e37b=_0x4a408f;let _0x2dbd2c=_0x391907[_0x35e37b(0x158)];for(;_0x2dbd2c;){if(_0xa1a19f(_0x2dbd2c,_0x35e37b(0x16b)))return!0x0;_0x2dbd2c=_0x2dbd2c[_0x35e37b(0x158)];}return!0x1;}[_0x4a408f(0x180)](_0xa18505){const _0x2ffb32=_0x4a408f;return Boolean(_0x2d5679(_0xa18505)&&_0x27a13d(_0xa18505)[_0x2ffb32(0x15b)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x2396(_0xbbf2e0,_0x457354){const _0x351e82=_0x351e();return _0x2396=function(_0x2396be,_0x8eaec6){_0x2396be=_0x2396be-0x157;let _0x31a307=_0x351e82[_0x2396be];return _0x31a307;},_0x2396(_0xbbf2e0,_0x457354);}function _0x351e(){const _0x3df249=['_getUid','nextSibling','_removeSpecialComments','_markUnstableElements','reverse','nodeType','_getNodeDataId','10KkKdfD','cutAfterLastChange','_insertNodes','2576156nYqylq','_touchedNodesState','data-id','_markWrappedElements','parentNode','cloneNode','indexOf','match','includes','filter','3168885PDPiDj','_findPrevElementWithDataId','map','_findReferenceNode','length','3552yFtZKj','modifiedIds','1458377XOzPhk','_existingDataIds','8PSeGWy','from','8953gpuXAW','previousSibling','data-wrapped-id','forEach','splice','true','lastTouchedId','push','110ODCxay','replaceRemovedWith','_findFallbackReferenceNode','afterbegin','31830NycHSQ','merge','invalidIds','has','afterend','beforebegin','_markLastTagElementUnstable','data-removed','markUnstableElementsDepth','new-element','_storeDeletedElementIds','_isExistingContentComment','6346197ZNxouf','_isExistingNode','trim','_replaceNode','slice','_isDelNode','data-unstable','6292980dmbJAT','childNodes','_findNextElementWithDataId','_hasWrappedParent','lastChild','markUnstableElements','removedIds','_isNewNode','newIds','_generateUid'];_0x351e=function(){return _0x3df249;};return _0x351e();}
23
+ const _0x5a85b5=_0x3916;function _0x52a5(){const _0xa62647=['_isExistingNode','invalidIds','16zmegyC','_findFallbackReferenceNode','_findPrevElementWithDataId','nodeType','previousSibling','402198MgnAqR','26422080jrgDAp','lastChild','nextSibling','push','has','_markWrappedElements','true','_existingDataIds','includes','modifiedIds','afterbegin','_getUid','_getNodeDataId','_removeSpecialComments','parentNode','_isNewNode','_isDelNode','length','_storeDeletedElementIds','forEach','_hasWrappedParent','match','childNodes','filter','data-unstable','7712118ddwnFl','newIds','_insertNodes','map','_findNextElementWithDataId','70tAWTQR','afterend','reverse','data-wrapped-id','indexOf','lastTouchedId','128464hKCjps','splice','trim','data-removed','_replaceNode','beforebegin','929250gevaPS','merge','cutAfterLastChange','496tTaNSg','markUnstableElementsDepth','cloneNode','127636AQOQMc','data-id','_markLastTagElementUnstable','_findReferenceNode','_touchedNodesState','new-element','slice','_markUnstableElements','from','markUnstableElements','replaceRemovedWith','_isExistingContentComment','removedIds','109095JenQYJ','_generateUid'];_0x52a5=function(){return _0xa62647;};return _0x52a5();}(function(_0x5e6614,_0x4afb5f){const _0x53f37c=_0x3916,_0x3906a5=_0x5e6614();while(!![]){try{const _0x27f5c1=-parseInt(_0x53f37c(0x146))/0x1*(-parseInt(_0x53f37c(0x11c))/0x2)+-parseInt(_0x53f37c(0x14c))/0x3+parseInt(_0x53f37c(0x152))/0x4+-parseInt(_0x53f37c(0x140))/0x5*(-parseInt(_0x53f37c(0x121))/0x6)+parseInt(_0x53f37c(0x118))/0x7*(parseInt(_0x53f37c(0x14f))/0x8)+parseInt(_0x53f37c(0x13b))/0x9+-parseInt(_0x53f37c(0x122))/0xa;if(_0x27f5c1===_0x4afb5f)break;else _0x3906a5['push'](_0x3906a5['shift']());}catch(_0x5d5097){_0x3906a5['push'](_0x3906a5['shift']());}}}(_0x52a5,0xd43b1));function _0x3916(_0x56ebe6,_0x312ae1){const _0x52a523=_0x52a5();return _0x3916=function(_0x391669,_0xc1762a){_0x391669=_0x391669-0x10e;let _0x5256c0=_0x52a523[_0x391669];return _0x5256c0;},_0x3916(_0x56ebe6,_0x312ae1);}import{ObservableMixin as _0x58dd18,uid as _0x2b95d3}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x2e5a67,findByAttribute as _0xe76e57,getAttribute as _0x444800,isComment as _0x4404f1,isTag as _0x2ff435,insertElement as _0x3cf809,moveElement as _0x440b35,removeElement as _0x1e26c0,replaceElement as _0x2c8777,serialize as _0x3edd26,setAttribute as _0x38ee8e,clone as _0x23732e,findAllComments as _0x2da964,getParents as _0x656829,getNodeNestingLevel as _0x5dd463,areNodesSame as _0x1503d0,removeElementsAfter as _0x59b710}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x58dd18(){[_0x5a85b5(0x119)];[_0x5a85b5(0x10f)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5a85b5(0x129)]=new Set();constructor(_0x3bb947){const _0x215304=_0x5a85b5;super(),this[_0x215304(0x119)]=_0x3bb947||_0x2b95d3;}[_0x5a85b5(0x14d)](_0x2512ec,_0x57f1d4,_0xa652b1){const _0x2c1ac6=_0x5a85b5,_0x495438=_0x23732e(_0x2512ec);if(0x0===_0x57f1d4[_0x2c1ac6(0x138)][_0x2c1ac6(0x133)]){const _0x42a0f3=[];return _0x2e5a67(_0x2c1ac6(0x153),_0x2c1ac6(0x110),_0x495438)[_0x2c1ac6(0x135)](_0x2f20ce=>{const _0x27d56f=_0x2c1ac6,_0x76c295=this[_0x27d56f(0x119)]();_0x38ee8e(_0x2f20ce,_0x27d56f(0x153),_0x76c295),_0x42a0f3[_0x27d56f(0x125)](_0x76c295);}),this[_0x2c1ac6(0x12f)](_0x495438),{'parsedContent':_0x495438,'newNodeIds':_0x42a0f3,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xa652b1&&_0xa652b1[_0x2c1ac6(0x114)]&&this[_0x2c1ac6(0x154)](_0x495438),this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x13c)]=[],this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x12b)]=[],this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)]=[],this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x11b)]=[],this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x145)]=null,this[_0x2c1ac6(0x129)]=new Set(_0x2e5a67(_0x2c1ac6(0x153),null,_0x57f1d4)[_0x2c1ac6(0x13e)](_0x4dc46f=>_0x444800(_0x4dc46f,_0x2c1ac6(0x153)))[_0x2c1ac6(0x139)](_0x61bee6=>!!_0x61bee6));let _0x2d151d=-0x1,_0x3371d2=!0x1;const _0x52a9b6=_0x495438[_0x2c1ac6(0x138)],_0x3de4be=Array[_0x2c1ac6(0x113)](_0x52a9b6)[_0x2c1ac6(0x139)](_0x388120=>!(0x3===_0x388120[_0x2c1ac6(0x11f)]&&''===_0x3edd26(_0x388120)[_0x2c1ac6(0x148)]())),_0x49616f=_0x3de4be[_0x2c1ac6(0x133)];for(let _0x499203=0x0;_0x499203<_0x49616f;_0x499203++){const _0x49a6af=_0x3de4be[_0x499203],_0x1d3f42=_0x3de4be[_0x499203+0x1];if(this[_0x2c1ac6(0x131)](_0x49a6af)){if(-0x1===_0x2d151d&&(_0x2d151d=_0x499203),this[_0x2c1ac6(0x127)](_0x49a6af),!this[_0x2c1ac6(0x131)](_0x1d3f42)){const [_0x2e98fb,_0x33a0fd]=this[_0x2c1ac6(0x10e)](_0x49a6af,_0x3371d2,_0x57f1d4);if(_0x2e98fb){const _0x724dae=Array[_0x2c1ac6(0x113)](_0x3de4be)[_0x2c1ac6(0x111)](_0x2d151d,_0x499203+0x1);this[_0x2c1ac6(0x13d)](_0x2e98fb,_0x724dae,_0x33a0fd),_0x2d151d=-0x1;}}}else{if(this[_0x2c1ac6(0x116)](_0x49a6af))_0x3371d2=!0x0;else{if(this[_0x2c1ac6(0x11a)](_0x49a6af)){const _0x1b62bd=_0x444800(_0x49a6af,_0x2c1ac6(0x153));if(_0x1b62bd&&this[_0x2c1ac6(0x129)][_0x2c1ac6(0x126)](_0x1b62bd)){const _0x510f12=_0xe76e57(_0x2c1ac6(0x153),_0x1b62bd,_0x57f1d4);this[_0x2c1ac6(0x14a)](_0x510f12,_0x49a6af);}if(this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)][_0x2c1ac6(0x12a)](_0x1b62bd)){const _0x3ae75b=this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)][_0x2c1ac6(0x144)](_0x1b62bd);this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)][_0x2c1ac6(0x147)](_0x3ae75b,0x1);}}else{if(this[_0x2c1ac6(0x132)](_0x49a6af)){const _0x3b098f=_0x444800(_0x49a6af,_0x2c1ac6(0x153));this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x12b)][_0x2c1ac6(0x12a)](_0x3b098f)||this[_0x2c1ac6(0x134)](_0x49a6af);}}}}}for(const _0x16b616 of this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)]){const _0x3d4a44=_0xe76e57(_0x2c1ac6(0x153),_0x16b616,_0x57f1d4);if(_0x3d4a44){if(_0xa652b1&&_0xa652b1[_0x2c1ac6(0x115)]){this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x145)]=_0x16b616;const _0x5f4841=_0xa652b1[_0x2c1ac6(0x115)][_0x2c1ac6(0x151)](!0x0);_0x38ee8e(_0x5f4841,_0x2c1ac6(0x153),_0x16b616),_0x38ee8e(_0x5f4841,_0x2c1ac6(0x149),_0x2c1ac6(0x128)),_0x2c8777(_0x3d4a44,_0x5f4841);}else _0x1e26c0(_0x3d4a44);}}if(_0x2e5a67(_0x2c1ac6(0x143),null,_0x57f1d4)[_0x2c1ac6(0x135)](_0x2cc97b=>{const _0x42b898=_0x2c1ac6,_0x31d116=_0x444800(_0x2cc97b,_0x42b898(0x143)),_0x253489=_0xe76e57(_0x42b898(0x153),_0x31d116,_0x57f1d4);_0x253489&&_0x440b35(_0x253489,_0x2cc97b);}),_0x2e5a67(_0x2c1ac6(0x153),_0x2c1ac6(0x110),_0x57f1d4)[_0x2c1ac6(0x135)](_0x4f249a=>{const _0x1612a7=_0x2c1ac6,_0x14b611=this[_0x1612a7(0x12d)](_0x4f249a);_0x38ee8e(_0x4f249a,_0x1612a7(0x153),_0x14b611),this[_0x1612a7(0x10f)][_0x1612a7(0x13c)][_0x1612a7(0x125)](_0x14b611);}),this[_0x2c1ac6(0x12f)](_0x57f1d4),_0xa652b1&&_0xa652b1[_0x2c1ac6(0x114)]&&this[_0x2c1ac6(0x112)](_0x57f1d4,_0xa652b1[_0x2c1ac6(0x150)]||0x0),_0xa652b1&&_0xa652b1[_0x2c1ac6(0x14e)]&&this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x145)]){let _0x45e7ef=_0xe76e57(_0x2c1ac6(0x153),this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x145)],_0x57f1d4);for(;_0x45e7ef;)_0x59b710(_0x45e7ef),_0x45e7ef=_0x45e7ef[_0x2c1ac6(0x130)];}return{'parsedContent':_0x57f1d4,'newNodeIds':this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x13c)],'modifiedNodeIds':this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x12b)],'removedNodeIds':this[_0x2c1ac6(0x10f)][_0x2c1ac6(0x117)]};}[_0x5a85b5(0x13d)](_0x31ecde,_0x3f00d5,_0x1bd27a){const _0x581c82=_0x5a85b5;for(const _0x1d5ea0 of _0x3f00d5){const _0x4ab8d4=this[_0x581c82(0x12d)](_0x1d5ea0);_0x38ee8e(_0x1d5ea0,_0x581c82(0x153),_0x4ab8d4),this[_0x581c82(0x10f)][_0x581c82(0x13c)][_0x581c82(0x125)](_0x4ab8d4),this[_0x581c82(0x10f)][_0x581c82(0x145)]=_0x4ab8d4;}const _0x545f22=_0x581c82(0x12c)===_0x1bd27a||_0x581c82(0x141)===_0x1bd27a?_0x3f00d5[_0x581c82(0x142)]():_0x3f00d5;for(const _0x449ac6 of _0x545f22)_0x3cf809(_0x31ecde,_0x449ac6,_0x1bd27a);}[_0x5a85b5(0x14a)](_0x3902ae,_0x3c1251){const _0x47a5c0=_0x5a85b5;if(!_0x3902ae)return;if(_0x1503d0(_0x3902ae,_0x3c1251))return;const _0x27cc5a=this[_0x47a5c0(0x12d)](_0x3902ae);_0x38ee8e(_0x3c1251,_0x47a5c0(0x153),_0x27cc5a),this[_0x47a5c0(0x10f)][_0x47a5c0(0x12b)][_0x47a5c0(0x125)](_0x27cc5a),this[_0x47a5c0(0x10f)][_0x47a5c0(0x145)]=_0x27cc5a,_0x2c8777(_0x3902ae,_0x3c1251[_0x47a5c0(0x151)](!0x0));}[_0x5a85b5(0x10e)](_0x17eb65,_0x41e7cd,_0x5f57de){const _0x16d25b=_0x5a85b5,_0x2c3986=this[_0x16d25b(0x11e)](_0x17eb65,!0x1);if(_0x2c3986){const _0x406eb1=this[_0x16d25b(0x12e)](_0x2c3986),_0x5248b8=_0xe76e57(_0x16d25b(0x153),_0x406eb1,_0x5f57de);if(_0x5248b8)return[_0x5248b8,_0x16d25b(0x141)];this[_0x16d25b(0x10f)][_0x16d25b(0x11b)][_0x16d25b(0x125)](_0x406eb1);}const _0x5cea42=this[_0x16d25b(0x13f)](_0x17eb65,!0x1);if(_0x5cea42){const _0x344e2a=this[_0x16d25b(0x12e)](_0x5cea42),_0x1bf9cf=_0xe76e57(_0x16d25b(0x153),_0x344e2a,_0x5f57de);if(_0x1bf9cf)return[_0x1bf9cf,_0x16d25b(0x14b)];this[_0x16d25b(0x10f)][_0x16d25b(0x11b)][_0x16d25b(0x125)](_0x344e2a);}return _0x41e7cd?_0x17eb65[_0x16d25b(0x124)]?this[_0x16d25b(0x11d)](_0x17eb65,_0x5f57de):[_0x5f57de[_0x16d25b(0x138)][_0x5f57de[_0x16d25b(0x138)][_0x16d25b(0x133)]-0x1],_0x16d25b(0x141)]:[_0x5f57de[_0x16d25b(0x138)][0x0],_0x16d25b(0x14b)];}[_0x5a85b5(0x11d)](_0x5cc510,_0xc207a7){const _0x1b3148=_0x5a85b5,_0x36f2ce=[],_0x2cc9df=this[_0x1b3148(0x11e)](_0x5cc510,!0x0);if(_0x2cc9df){const _0x1582f0=this[_0x1b3148(0x12e)](_0x2cc9df),_0x49b18f=_0xe76e57(_0x1b3148(0x153),_0x1582f0,_0xc207a7);_0x49b18f&&_0x36f2ce[_0x1b3148(0x125)]([_0x49b18f,_0x1b3148(0x141)]);}const _0x50733a=this[_0x1b3148(0x13f)](_0x5cc510,!0x0);if(_0x50733a){const _0x3e2f75=this[_0x1b3148(0x12e)](_0x50733a),_0x3e0d65=_0xe76e57(_0x1b3148(0x153),_0x3e2f75,_0xc207a7);_0x3e0d65&&_0x36f2ce[_0x1b3148(0x125)]([_0x3e0d65,_0x1b3148(0x14b)]);}if(_0x36f2ce[_0x1b3148(0x133)]>0x1)return _0x5dd463(_0x36f2ce[0x0][0x0])<=_0x5dd463(_0x36f2ce[0x1][0x0])?_0x36f2ce[0x0]:_0x36f2ce[0x1];return 0x1===_0x36f2ce[_0x1b3148(0x133)]?_0x36f2ce[0x0]:[_0xc207a7[_0x1b3148(0x123)],_0x1b3148(0x141)];}[_0x5a85b5(0x13f)](_0x2e1e88,_0x431627){const _0x4aab92=_0x5a85b5;let _0x12d7da=_0x2e1e88[_0x4aab92(0x124)],_0x42959a=null,_0x289aac=!0x1;for(;_0x12d7da;){if(_0x4404f1(_0x12d7da)){if(this[_0x4aab92(0x132)](_0x12d7da)&&(_0x42959a=_0x12d7da),this[_0x4aab92(0x116)](_0x12d7da)&&_0x431627&&!_0x289aac){_0x289aac=!0x0,_0x12d7da=_0x12d7da[_0x4aab92(0x124)];continue;}break;}const _0x15037c=_0x444800(_0x12d7da,_0x4aab92(0x153));if(_0x15037c&&_0x4aab92(0x110)!==_0x15037c&&this[_0x4aab92(0x129)][_0x4aab92(0x126)](_0x15037c)){_0x42959a=_0x12d7da;break;}_0x12d7da=_0x12d7da[_0x4aab92(0x124)];}return _0x42959a;}[_0x5a85b5(0x11e)](_0x4275bb,_0x41ef08){const _0x593ed5=_0x5a85b5;let _0x425ffb=_0x4275bb[_0x593ed5(0x120)],_0x2dd0c4=null,_0xd45153=!0x1;for(;_0x425ffb;){if(_0x4404f1(_0x425ffb)){if(this[_0x593ed5(0x132)](_0x425ffb)&&(_0x2dd0c4=_0x425ffb),this[_0x593ed5(0x116)](_0x425ffb)&&_0x41ef08&&!_0xd45153){_0xd45153=!0x0,_0x425ffb=_0x425ffb[_0x593ed5(0x120)];continue;}break;}const _0x47bd8d=_0x444800(_0x425ffb,_0x593ed5(0x153));if(_0x47bd8d&&_0x593ed5(0x110)!==_0x47bd8d&&this[_0x593ed5(0x129)][_0x593ed5(0x126)](_0x47bd8d)){_0x2dd0c4=_0x425ffb;break;}_0x425ffb=_0x425ffb[_0x593ed5(0x120)];}return _0x2dd0c4;}[_0x5a85b5(0x127)](_0x529c82){const _0x5c16dd=_0x5a85b5;_0x2ff435(_0x529c82)&&_0x2e5a67(_0x5c16dd(0x153),null,_0x529c82)[_0x5c16dd(0x135)](_0x7a04ab=>{const _0x516e7a=_0x5c16dd;if(this[_0x516e7a(0x11a)](_0x7a04ab)&&!this[_0x516e7a(0x136)](_0x7a04ab)){const _0x39d453=_0x444800(_0x7a04ab,_0x516e7a(0x153));_0x38ee8e(_0x7a04ab,_0x516e7a(0x143),_0x39d453),_0x38ee8e(_0x7a04ab,_0x516e7a(0x153),null);}});}[_0x5a85b5(0x12e)](_0x29b4f3){const _0x1a4976=_0x5a85b5;if(!_0x29b4f3)return null;if(_0x2ff435(_0x29b4f3))return _0x444800(_0x29b4f3,_0x1a4976(0x153));if(_0x4404f1(_0x29b4f3)){const _0x377e72=_0x3edd26(_0x29b4f3)[_0x1a4976(0x137)](/removed[\s*-]data-id="([^"]+)"/);if(_0x377e72&&_0x377e72[0x1])return _0x377e72[0x1];}return null;}[_0x5a85b5(0x134)](_0x516973){const _0x90628=_0x5a85b5;if(_0x4404f1(_0x516973)){const _0x2eecf6=_0x3edd26(_0x516973)[_0x90628(0x137)](/removed[\s*-]data-id="([^"]+)"/);_0x2eecf6&&_0x2eecf6[0x1]&&this[_0x90628(0x10f)][_0x90628(0x117)][_0x90628(0x125)](_0x2eecf6[0x1]);}}[_0x5a85b5(0x12d)](_0x58a7de){const _0x103bef=_0x5a85b5;return this[_0x103bef(0x11a)](_0x58a7de)?_0x444800(_0x58a7de,_0x103bef(0x153)):this[_0x103bef(0x119)]();}[_0x5a85b5(0x12f)](_0x10ec32){const _0x549a79=_0x5a85b5;_0x2da964(_0x10ec32)[_0x549a79(0x139)](_0x45fea1=>this[_0x549a79(0x132)](_0x45fea1)||this[_0x549a79(0x116)](_0x45fea1))[_0x549a79(0x135)](_0x11179e=>{_0x1e26c0(_0x11179e);});}[_0x5a85b5(0x154)](_0x3652db){const _0x186682=_0x5a85b5,_0x421286=_0x3652db[_0x186682(0x138)],_0x30f42f=_0x421286[_0x421286[_0x186682(0x133)]-0x1];_0x30f42f&&_0x2ff435(_0x30f42f)&&_0x38ee8e(_0x30f42f,_0x186682(0x13a),_0x186682(0x128));}[_0x5a85b5(0x112)](_0x12a977,_0x1aeeba){const _0x441ed5=_0x5a85b5,_0x2cb508=_0xe76e57(_0x441ed5(0x13a),_0x441ed5(0x128),_0x12a977);if(!_0x2cb508)return;const _0x122c3d=_0x656829(_0x2cb508)[_0x441ed5(0x111)](0x0,-0x1),_0xbff72c=_0x122c3d[_0x441ed5(0x133)];let _0x243d73=_0x2cb508;if(_0xbff72c>_0x1aeeba){let _0x3385fa=_0xbff72c,_0x2dbc55=null;for(;_0x3385fa>_0x1aeeba&&_0x3385fa>=0x0;)_0x3385fa--,_0x2dbc55=_0x122c3d[_0x3385fa];_0x2dbc55&&(_0x243d73=_0x2dbc55,_0x38ee8e(_0x2cb508,_0x441ed5(0x13a),null),_0x38ee8e(_0x2dbc55,_0x441ed5(0x13a),_0x441ed5(0x128)));}else{if(_0xbff72c<_0x1aeeba){let _0x4ef734=_0xbff72c,_0x3db9e1=_0x2cb508;for(;_0x4ef734<_0x1aeeba;){const _0x3a1130=_0x3db9e1[_0x441ed5(0x138)][_0x441ed5(0x139)](_0x20710a=>_0x2ff435(_0x20710a));if(0x0===_0x3a1130[_0x441ed5(0x133)])break;_0x4ef734++,_0x3db9e1=_0x3a1130[_0x3a1130[_0x441ed5(0x133)]-0x1];}_0x3db9e1&&(_0x243d73=_0x3db9e1,_0x38ee8e(_0x2cb508,_0x441ed5(0x13a),null),_0x38ee8e(_0x3db9e1,_0x441ed5(0x13a),_0x441ed5(0x128)));}}let _0x343aed=_0x243d73;for(;_0x343aed;){for(;_0x343aed[_0x441ed5(0x124)];)_0x343aed=_0x343aed[_0x441ed5(0x124)],_0x2ff435(_0x343aed)&&_0x38ee8e(_0x343aed,_0x441ed5(0x13a),_0x441ed5(0x128));_0x343aed=_0x343aed[_0x441ed5(0x130)];}}[_0x5a85b5(0x131)](_0x24394f){const _0x307377=_0x5a85b5;return Boolean(_0x307377(0x110)===_0x444800(_0x24394f,_0x307377(0x153)));}[_0x5a85b5(0x11a)](_0x4e8391){const _0x19e989=_0x5a85b5;return Boolean((_0x444800(_0x4e8391,_0x19e989(0x153))||'')[_0x19e989(0x133)]>0x0&&_0x19e989(0x110)!==_0x444800(_0x4e8391,_0x19e989(0x153)));}[_0x5a85b5(0x132)](_0xc87f62){const _0x251d82=_0x5a85b5;return!!_0xc87f62&&Boolean(_0x4404f1(_0xc87f62)&&_0x3edd26(_0xc87f62)[_0x251d82(0x137)](/removed[\s*-]data-id="[^"]+"/));}[_0x5a85b5(0x136)](_0x45e718){const _0x40943a=_0x5a85b5;let _0x24bf77=_0x45e718[_0x40943a(0x130)];for(;_0x24bf77;){if(_0x444800(_0x24bf77,_0x40943a(0x143)))return!0x0;_0x24bf77=_0x24bf77[_0x40943a(0x130)];}return!0x1;}[_0x5a85b5(0x116)](_0xb962e1){const _0xc3481c=_0x5a85b5;return Boolean(_0x4404f1(_0xb962e1)&&_0x3edd26(_0xb962e1)[_0xc3481c(0x137)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3de3c7=_0x4f83;(function(_0x2d8161,_0x342e9d){const _0x37507e=_0x4f83,_0xa61bd2=_0x2d8161();while(!![]){try{const _0x1bbade=-parseInt(_0x37507e(0x1ca))/0x1*(parseInt(_0x37507e(0x1c6))/0x2)+-parseInt(_0x37507e(0x1d4))/0x3+-parseInt(_0x37507e(0x1cd))/0x4*(parseInt(_0x37507e(0x1cb))/0x5)+parseInt(_0x37507e(0x1d1))/0x6+-parseInt(_0x37507e(0x1d6))/0x7*(-parseInt(_0x37507e(0x1d7))/0x8)+-parseInt(_0x37507e(0x1cf))/0x9*(parseInt(_0x37507e(0x1c5))/0xa)+parseInt(_0x37507e(0x1c4))/0xb*(parseInt(_0x37507e(0x1d5))/0xc);if(_0x1bbade===_0x342e9d)break;else _0xa61bd2['push'](_0xa61bd2['shift']());}catch(_0x584244){_0xa61bd2['push'](_0xa61bd2['shift']());}}}(_0x5ed6,0x21bf4));function _0x4f83(_0x5d5f21,_0x13e4ef){const _0x5ed637=_0x5ed6();return _0x4f83=function(_0x4f83eb,_0x15c393){_0x4f83eb=_0x4f83eb-0x1c4;let _0x5d7c6a=_0x5ed637[_0x4f83eb];return _0x5d7c6a;},_0x4f83(_0x5d5f21,_0x13e4ef);}import{ObservableMixin as _0x463f7f}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x490ff6}from'@ckeditor/ckeditor5-markdown-gfm';function _0x5ed6(){const _0x40c113=['_m2html','_parseHTML','replace','2OzNfKk','275lAOCQO','<dummy>','13408yMgkev','parseAndNormalizeHTML','562932kGAfQX','parse','348864cOyNIU','</dummy>','convertMarkdownToHTML','81990FvtKys','70068ZNkLxs','18263IRbAYu','248ezWOcG','children','913JvZLTi','20hOiioO','148646VCCMUq'];_0x5ed6=function(){return _0x40c113;};return _0x5ed6();}import{parse as _0x369f82}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x463f7f(){[_0x3de3c7(0x1c7)];constructor(){const _0x376a38=_0x3de3c7;super(),this[_0x376a38(0x1c7)]=new _0x490ff6();}[_0x3de3c7(0x1d3)](_0x10eeac){const _0x26ffe2=_0x3de3c7,_0xfed96=this[_0x26ffe2(0x1c7)][_0x26ffe2(0x1d0)](_0x10eeac);return this[_0x26ffe2(0x1ce)](_0xfed96);}[_0x3de3c7(0x1ce)](_0x1d9c13){const _0xe608eb=_0x3de3c7;return this[_0xe608eb(0x1c8)](_0x1d9c13);}[_0x3de3c7(0x1c8)](_0x2579f7){const _0x21aa02=_0x3de3c7,_0xd87a9a=_0x2579f7[_0x21aa02(0x1c9)](/^\t+/gm,'\x20')[_0x21aa02(0x1c9)](/\n*/g,'')[_0x21aa02(0x1c9)](/\s+/g,'\x20')[_0x21aa02(0x1c9)](/<[^>]*?$/g,''),_0x13acd5=_0x369f82(_0x21aa02(0x1cc)+_0xd87a9a+_0x21aa02(0x1d2));return _0x13acd5[_0x21aa02(0x1d8)]=_0x13acd5[_0x21aa02(0x1d8)][0x0][_0x21aa02(0x1d8)],_0x13acd5;}}
23
+ const _0x47cd7e=_0x4ba6;(function(_0x5d8a76,_0x627e25){const _0x1cf310=_0x4ba6,_0x171c64=_0x5d8a76();while(!![]){try{const _0x17a2e5=-parseInt(_0x1cf310(0x187))/0x1+-parseInt(_0x1cf310(0x18f))/0x2+-parseInt(_0x1cf310(0x18d))/0x3+-parseInt(_0x1cf310(0x18e))/0x4+parseInt(_0x1cf310(0x18b))/0x5+-parseInt(_0x1cf310(0x182))/0x6+-parseInt(_0x1cf310(0x18c))/0x7*(-parseInt(_0x1cf310(0x189))/0x8);if(_0x17a2e5===_0x627e25)break;else _0x171c64['push'](_0x171c64['shift']());}catch(_0x5385bd){_0x171c64['push'](_0x171c64['shift']());}}}(_0x413a,0x6a661));import{ObservableMixin as _0x3f5047}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x3c9ef8}from'@ckeditor/ckeditor5-markdown-gfm';function _0x413a(){const _0xaffd78=['parseAndNormalizeHTML','8ujNwqs','convertMarkdownToHTML','696130qOGqET','20467237eYbLSU','1493793wObcfz','651608RPjzOE','1141448sobzIy','_m2html','<dummy>','replace','4117506TefdnB','parse','</dummy>','children','_parseHTML','709500QpZZdF'];_0x413a=function(){return _0xaffd78;};return _0x413a();}import{parse as _0x567c5b}from'../utils/htmlparser.js';function _0x4ba6(_0x4aa44f,_0x37748a){const _0x413a89=_0x413a();return _0x4ba6=function(_0x4ba657,_0x5f0182){_0x4ba657=_0x4ba657-0x17f;let _0x5c2d27=_0x413a89[_0x4ba657];return _0x5c2d27;},_0x4ba6(_0x4aa44f,_0x37748a);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x3f5047(){[_0x47cd7e(0x17f)];constructor(){const _0x5a67b7=_0x47cd7e;super(),this[_0x5a67b7(0x17f)]=new _0x3c9ef8();}[_0x47cd7e(0x18a)](_0x1dc886){const _0x248a36=_0x47cd7e,_0x4c330c=this[_0x248a36(0x17f)][_0x248a36(0x183)](_0x1dc886);return this[_0x248a36(0x188)](_0x4c330c);}[_0x47cd7e(0x188)](_0x5afee5){const _0x495d01=_0x47cd7e;return this[_0x495d01(0x186)](_0x5afee5);}[_0x47cd7e(0x186)](_0x60c3ee){const _0x1f7380=_0x47cd7e,_0x3ae624=_0x60c3ee[_0x1f7380(0x181)](/^\t+/gm,'\x20')[_0x1f7380(0x181)](/\n*/g,'')[_0x1f7380(0x181)](/\s+/g,'\x20')[_0x1f7380(0x181)](/<[^>]*?$/g,''),_0x9d80bb=_0x567c5b(_0x1f7380(0x180)+_0x3ae624+_0x1f7380(0x184));return _0x9d80bb[_0x1f7380(0x185)]=_0x9d80bb[_0x1f7380(0x185)][0x0][_0x1f7380(0x185)],_0x9d80bb;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4dc8(_0x3729ca,_0x3494c3){var _0x1d670b=_0x1d67();return _0x4dc8=function(_0x4dc8a5,_0x3aa0fc){_0x4dc8a5=_0x4dc8a5-0xe9;var _0xb49f64=_0x1d670b[_0x4dc8a5];return _0xb49f64;},_0x4dc8(_0x3729ca,_0x3494c3);}(function(_0x2714fd,_0x274b35){var _0x2b2d03=_0x4dc8,_0x5da5f3=_0x2714fd();while(!![]){try{var _0x226a38=parseInt(_0x2b2d03(0xf4))/0x1+-parseInt(_0x2b2d03(0xee))/0x2*(parseInt(_0x2b2d03(0xe9))/0x3)+-parseInt(_0x2b2d03(0xf8))/0x4+parseInt(_0x2b2d03(0xea))/0x5*(parseInt(_0x2b2d03(0xec))/0x6)+-parseInt(_0x2b2d03(0xf7))/0x7*(parseInt(_0x2b2d03(0xf3))/0x8)+-parseInt(_0x2b2d03(0xf2))/0x9*(-parseInt(_0x2b2d03(0xf1))/0xa)+parseInt(_0x2b2d03(0xeb))/0xb;if(_0x226a38===_0x274b35)break;else _0x5da5f3['push'](_0x5da5f3['shift']());}catch(_0x227326){_0x5da5f3['push'](_0x5da5f3['shift']());}}}(_0x1d67,0x546b4));import{View as _0x20b326}from'ckeditor5/src/ui.js';import{getTranslation as _0x9b0dc4}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x1d67(){var _0x5a2f29=['ck-ai-disclaimer__content','ck-ai-disclaimer','1690HQrGbo','747qJIzaw','3230936wWeIEd','340012HIFaeF','div','setTemplate','7rboAQV','347400aEtbgZ','6MoTPvK','21950thpSmB','7467350OicKzA','396XPMUUC','AI_DISCLAIMER_TEXT','486132eqzXTX'];_0x1d67=function(){return _0x5a2f29;};return _0x1d67();}export class AIDisclaimerView extends _0x20b326{constructor(_0x190e42){var _0x264f89=_0x4dc8;super(_0x190e42),this[_0x264f89(0xf6)]({'tag':_0x264f89(0xf5),'attributes':{'class':['ck',_0x264f89(0xf0)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x264f89(0xef)]},'children':[{'text':_0x9b0dc4(_0x190e42,_0x264f89(0xed))}]}]});}}
23
+ (function(_0x532917,_0x198f4a){var _0xe3f28f=_0x2b9b,_0x136741=_0x532917();while(!![]){try{var _0x18e87a=parseInt(_0xe3f28f(0x8c))/0x1*(-parseInt(_0xe3f28f(0x97))/0x2)+-parseInt(_0xe3f28f(0x91))/0x3+parseInt(_0xe3f28f(0x90))/0x4+parseInt(_0xe3f28f(0x8d))/0x5*(parseInt(_0xe3f28f(0x8e))/0x6)+-parseInt(_0xe3f28f(0x94))/0x7*(parseInt(_0xe3f28f(0x92))/0x8)+parseInt(_0xe3f28f(0x8a))/0x9+parseInt(_0xe3f28f(0x95))/0xa;if(_0x18e87a===_0x198f4a)break;else _0x136741['push'](_0x136741['shift']());}catch(_0x38dc4f){_0x136741['push'](_0x136741['shift']());}}}(_0x48c7,0x4ed4a));function _0x48c7(){var _0xaf235f=['792783Ukdaek','32728ptHPyS','ck-ai-disclaimer','805OghqnT','4241920VBCkHV','div','2PNTRym','AI_DISCLAIMER_TEXT','1614474IrnwJu','ck-ai-disclaimer__content','14653ehslfX','1415fTJovN','3378YXRvvU','setTemplate','1237448YZKVRd'];_0x48c7=function(){return _0xaf235f;};return _0x48c7();}function _0x2b9b(_0x1db867,_0x275f20){var _0x48c7f9=_0x48c7();return _0x2b9b=function(_0x2b9b97,_0x5c46ab){_0x2b9b97=_0x2b9b97-0x89;var _0x1331d3=_0x48c7f9[_0x2b9b97];return _0x1331d3;},_0x2b9b(_0x1db867,_0x275f20);}import{View as _0x2a71be}from'ckeditor5/src/ui.js';import{getTranslation as _0x1a0d48}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x2a71be{constructor(_0x1070f8){var _0x21f205=_0x2b9b;super(_0x1070f8),this[_0x21f205(0x8f)]({'tag':_0x21f205(0x96),'attributes':{'class':['ck',_0x21f205(0x93)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x21f205(0x8b)]},'children':[{'text':_0x1a0d48(_0x1070f8,_0x21f205(0x89))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x292536=_0x34bd;(function(_0x2db2ff,_0x4d07dd){const _0x58641c=_0x34bd,_0x314fd6=_0x2db2ff();while(!![]){try{const _0x5e601e=parseInt(_0x58641c(0x15e))/0x1*(parseInt(_0x58641c(0x141))/0x2)+-parseInt(_0x58641c(0x155))/0x3*(parseInt(_0x58641c(0x144))/0x4)+parseInt(_0x58641c(0x159))/0x5+-parseInt(_0x58641c(0x152))/0x6*(-parseInt(_0x58641c(0x142))/0x7)+parseInt(_0x58641c(0x14d))/0x8+-parseInt(_0x58641c(0x145))/0x9*(-parseInt(_0x58641c(0x151))/0xa)+-parseInt(_0x58641c(0x147))/0xb;if(_0x5e601e===_0x4d07dd)break;else _0x314fd6['push'](_0x314fd6['shift']());}catch(_0x2c88b5){_0x314fd6['push'](_0x314fd6['shift']());}}}(_0x3f3c,0xc1b94));import{View as _0x5a1172}from'ckeditor5/src/ui.js';function _0x3f3c(){const _0x984745=['128px','6856224xbPYQn','100%','setTemplate','140px','320JYHtsV','642MascJX','left','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','12WOognj','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','150px','center','2566750BdKiSJ','tag',';\x20height:\x20','44px','height','11BEZyGh','fill','attributes','div','right','_createSkeletonItems','align','map','ck-ai-skeleton','40px','width','ck-ai-skeleton__item','72px','107208QFQGXN','98777Kdnuwn','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','797996JVufzt','103725mbaLGn','88px','24719321BRjWnH','width:\x20','class','250px','24px'];_0x3f3c=function(){return _0x984745;};return _0x3f3c();}function _0x34bd(_0x344d2d,_0x59a5b3){const _0x3f3c1e=_0x3f3c();return _0x34bd=function(_0x34bd8c,_0x182063){_0x34bd8c=_0x34bd8c-0x13d;let _0x3c100b=_0x3f3c1e[_0x34bd8c];return _0x3c100b;},_0x34bd(_0x344d2d,_0x59a5b3);}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x5a1172{constructor(_0x43fe57,_0x4e0d5e){const _0x5480cf=_0x34bd;super(_0x43fe57),this[_0x5480cf(0x14f)]({'tag':_0x5480cf(0x161),'attributes':{'class':['ck',_0x5480cf(0x166)]},'children':this[_0x5480cf(0x163)](_0x4e0d5e)});}[_0x292536(0x163)](_0x433bcd){const _0x304a3f=_0x292536,_0x5732cf=['ck',_0x304a3f(0x13f)];return _0x433bcd[_0x304a3f(0x165)](_0x215f3a=>{const _0x8d602d=_0x304a3f;let _0x699bd3='';switch(_0x215f3a[_0x8d602d(0x160)][_0x8d602d(0x164)]){case _0x8d602d(0x162):_0x699bd3=_0x8d602d(0x154);break;case _0x8d602d(0x158):_0x699bd3=_0x8d602d(0x156);break;case _0x8d602d(0x153):_0x699bd3=_0x8d602d(0x143);}return{'tag':_0x215f3a[_0x8d602d(0x15a)],'attributes':{'class':[..._0x5732cf,_0x215f3a[_0x8d602d(0x160)][_0x8d602d(0x149)]?_0x215f3a[_0x8d602d(0x160)][_0x8d602d(0x149)]:''],'style':_0x8d602d(0x148)+_0x215f3a[_0x8d602d(0x160)][_0x8d602d(0x13e)]+_0x8d602d(0x15b)+_0x215f3a[_0x8d602d(0x160)][_0x8d602d(0x15d)]+';'+_0x699bd3}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14e),'height':_0x292536(0x140),'align':_0x292536(0x162)}},{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14a),'height':_0x292536(0x13d),'align':_0x292536(0x162)}},{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14e),'height':_0x292536(0x146),'align':_0x292536(0x162)}},{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x157),'height':_0x292536(0x13d),'align':_0x292536(0x162)}},{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14e),'height':_0x292536(0x150),'align':_0x292536(0x162)}},{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14a),'height':_0x292536(0x13d),'align':_0x292536(0x162)}},{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14e),'height':_0x292536(0x146),'align':_0x292536(0x162)}}],'aiHistory':ta(0x5,_0x292536(0x14e),_0x292536(0x15c),_0x292536(0x162)),'aiChatResources':ta(0x8,_0x292536(0x14e),_0x292536(0x14b),_0x292536(0x162)),'aiReviewChecks':[{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14c),'height':_0x292536(0x14b),'align':_0x292536(0x153)}},{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14e),'height':_0x292536(0x14b),'align':_0x292536(0x153)}},{'tag':_0x292536(0x161),'attributes':{'width':_0x292536(0x14c),'height':_0x292536(0x14b),'align':_0x292536(0x153)}}]};function ta(_0x4aee28,_0x1b37ed,_0x305498,_0x4bc076){const _0x45b382=_0x292536;return new Array(_0x4aee28)[_0x45b382(0x15f)](null)[_0x45b382(0x165)](()=>({'tag':_0x45b382(0x161),'attributes':{'width':_0x1b37ed,'height':_0x305498,'align':_0x4bc076}}));}
23
+ function _0x3063(_0xa334a8,_0x371542){const _0x5f1a6f=_0x5f1a();return _0x3063=function(_0x306376,_0x364aea){_0x306376=_0x306376-0x10e;let _0x4d26f7=_0x5f1a6f[_0x306376];return _0x4d26f7;},_0x3063(_0xa334a8,_0x371542);}const _0x3867f1=_0x3063;(function(_0x2937ed,_0x25041d){const _0x4bed35=_0x3063,_0x1ba448=_0x2937ed();while(!![]){try{const _0x1458db=parseInt(_0x4bed35(0x130))/0x1*(parseInt(_0x4bed35(0x138))/0x2)+parseInt(_0x4bed35(0x11f))/0x3*(-parseInt(_0x4bed35(0x121))/0x4)+parseInt(_0x4bed35(0x123))/0x5*(-parseInt(_0x4bed35(0x132))/0x6)+parseInt(_0x4bed35(0x136))/0x7*(parseInt(_0x4bed35(0x11c))/0x8)+parseInt(_0x4bed35(0x111))/0x9*(parseInt(_0x4bed35(0x125))/0xa)+-parseInt(_0x4bed35(0x131))/0xb+parseInt(_0x4bed35(0x134))/0xc*(-parseInt(_0x4bed35(0x11e))/0xd);if(_0x1458db===_0x25041d)break;else _0x1ba448['push'](_0x1ba448['shift']());}catch(_0x5f0064){_0x1ba448['push'](_0x1ba448['shift']());}}}(_0x5f1a,0x7c6f3));import{View as _0x229670}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x229670{constructor(_0x527b24,_0x2a1603){const _0x134d49=_0x3063;super(_0x527b24),this[_0x134d49(0x12b)]({'tag':_0x134d49(0x12e),'attributes':{'class':['ck',_0x134d49(0x127)]},'children':this[_0x134d49(0x110)](_0x2a1603)});}[_0x3867f1(0x110)](_0x5337fb){const _0x446849=_0x3867f1,_0x58e7ff=['ck',_0x446849(0x118)];return _0x5337fb[_0x446849(0x12f)](_0x308133=>{const _0x543c95=_0x446849;let _0x43e50d='';switch(_0x308133[_0x543c95(0x133)][_0x543c95(0x11b)]){case _0x543c95(0x135):_0x43e50d=_0x543c95(0x129);break;case _0x543c95(0x120):_0x43e50d=_0x543c95(0x11a);break;case _0x543c95(0x10f):_0x43e50d=_0x543c95(0x114);}return{'tag':_0x308133[_0x543c95(0x115)],'attributes':{'class':[..._0x58e7ff,_0x308133[_0x543c95(0x133)][_0x543c95(0x10e)]?_0x308133[_0x543c95(0x133)][_0x543c95(0x10e)]:''],'style':_0x543c95(0x122)+_0x308133[_0x543c95(0x133)][_0x543c95(0x12a)]+_0x543c95(0x11d)+_0x308133[_0x543c95(0x133)][_0x543c95(0x12c)]+';'+_0x43e50d}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x12d),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x119),'height':_0x3867f1(0x113),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x126),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x128),'height':_0x3867f1(0x113),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x116),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x119),'height':_0x3867f1(0x113),'align':_0x3867f1(0x135)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x126),'align':_0x3867f1(0x135)}}],'aiHistory':ta(0x5,_0x3867f1(0x139),_0x3867f1(0x117),_0x3867f1(0x135)),'aiChatResources':ta(0x8,_0x3867f1(0x139),_0x3867f1(0x137),_0x3867f1(0x135)),'aiReviewChecks':[{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x124),'height':_0x3867f1(0x137),'align':_0x3867f1(0x10f)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x139),'height':_0x3867f1(0x137),'align':_0x3867f1(0x10f)}},{'tag':_0x3867f1(0x12e),'attributes':{'width':_0x3867f1(0x124),'height':_0x3867f1(0x137),'align':_0x3867f1(0x10f)}}]};function _0x5f1a(){const _0x346e36=['tag','140px','44px','ck-ai-skeleton__item','250px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','align','6040Hqrfaq',';\x20height:\x20','26NjSwWB','3xxdQzX','center','216884qHInhq','width:\x20','482155CLzLye','128px','10Adrlnl','88px','ck-ai-skeleton','150px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','width','setTemplate','height','72px','div','map','54956EQAWAW','5052850wCZlXM','24BvpjZn','attributes','3960396ydhWqD','right','5061jCODAx','24px','30qlrJYp','100%','class','left','_createSkeletonItems','6289551asvXzu','fill','40px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;'];_0x5f1a=function(){return _0x346e36;};return _0x5f1a();}function ta(_0x20cef7,_0x225473,_0x5bc892,_0x33df0b){const _0x105f38=_0x3867f1;return new Array(_0x20cef7)[_0x105f38(0x112)](null)[_0x105f38(0x12f)](()=>({'tag':_0x105f38(0x12e),'attributes':{'width':_0x225473,'height':_0x5bc892,'align':_0x33df0b}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x4e4045,_0x99587c){const _0x39a34e=_0x1501,_0x2a053c=_0x4e4045();while(!![]){try{const _0xc32bac=parseInt(_0x39a34e(0xfd))/0x1*(parseInt(_0x39a34e(0x103))/0x2)+parseInt(_0x39a34e(0x102))/0x3*(parseInt(_0x39a34e(0x108))/0x4)+parseInt(_0x39a34e(0xfb))/0x5*(parseInt(_0x39a34e(0x100))/0x6)+-parseInt(_0x39a34e(0x10a))/0x7*(-parseInt(_0x39a34e(0x101))/0x8)+parseInt(_0x39a34e(0x105))/0x9+parseInt(_0x39a34e(0x106))/0xa+-parseInt(_0x39a34e(0x104))/0xb*(parseInt(_0x39a34e(0xfe))/0xc);if(_0xc32bac===_0x99587c)break;else _0x2a053c['push'](_0x2a053c['shift']());}catch(_0x406d9e){_0x2a053c['push'](_0x2a053c['shift']());}}}(_0x79ed,0xba3ae));function _0x79ed(){const _0xb3a6fb=['1gRIEsO','24EVTZzH','extendTemplate','4258722UOGOYn','72EbvwHj','3FvkyEl','706352LmwoFv','26463448ookKuA','10439397tLnKRT','12454340JWFkvt','span','2561092VuQIWN','ck-ai-spinner_','1140013DBmytK','5CdrREX','ck-ai-spinner'];_0x79ed=function(){return _0xb3a6fb;};return _0x79ed();}import{SpinnerView as _0x2e7b84}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x1501(_0x319abf,_0x46529f){const _0x79ed5f=_0x79ed();return _0x1501=function(_0x1501fd,_0x1687d0){_0x1501fd=_0x1501fd-0xfb;let _0x14fe08=_0x79ed5f[_0x1501fd];return _0x14fe08;},_0x1501(_0x319abf,_0x46529f);}export class AISpinnerView extends _0x2e7b84{constructor(_0x592d8b=void 0x0){const _0x469fbe=_0x1501;super();const _0x2797af=_0x592d8b?_0x469fbe(0x109)+_0x592d8b:'';this[_0x469fbe(0xff)]({'tag':_0x469fbe(0x107),'attributes':{'class':[_0x469fbe(0xfc),_0x2797af]}});}}
23
+ (function(_0xc89ec8,_0x55ea54){const _0x18dff8=_0x1868,_0x2c1f5b=_0xc89ec8();while(!![]){try{const _0x2aae8a=-parseInt(_0x18dff8(0x108))/0x1+parseInt(_0x18dff8(0x112))/0x2*(parseInt(_0x18dff8(0x113))/0x3)+parseInt(_0x18dff8(0x106))/0x4*(parseInt(_0x18dff8(0x107))/0x5)+parseInt(_0x18dff8(0x109))/0x6*(-parseInt(_0x18dff8(0x111))/0x7)+parseInt(_0x18dff8(0x10a))/0x8*(parseInt(_0x18dff8(0x10b))/0x9)+-parseInt(_0x18dff8(0x10d))/0xa*(-parseInt(_0x18dff8(0x103))/0xb)+-parseInt(_0x18dff8(0x10f))/0xc*(-parseInt(_0x18dff8(0x10e))/0xd);if(_0x2aae8a===_0x55ea54)break;else _0x2c1f5b['push'](_0x2c1f5b['shift']());}catch(_0xbe9e51){_0x2c1f5b['push'](_0x2c1f5b['shift']());}}}(_0x3bcd,0xda8ad));import{SpinnerView as _0xcd876f}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';function _0x1868(_0x154768,_0x1b4dd4){const _0x3bcd7f=_0x3bcd();return _0x1868=function(_0x1868e0,_0x19d456){_0x1868e0=_0x1868e0-0x103;let _0x2ab3b7=_0x3bcd7f[_0x1868e0];return _0x2ab3b7;},_0x1868(_0x154768,_0x1b4dd4);}function _0x3bcd(){const _0x1e36ce=['675740ZkHyFs','624JlLXux','ck-ai-spinner','32984sIrWzP','2ijUbRt','634497DlUgFf','88ZdrFil','extendTemplate','span','694516TwdMFG','5MgkSIs','1193752IOYNEm','1578TnyFyT','49352HkirTy','117GnTIfk','ck-ai-spinner_','199840hHPxEs'];_0x3bcd=function(){return _0x1e36ce;};return _0x3bcd();}export class AISpinnerView extends _0xcd876f{constructor(_0x2eb641=void 0x0){const _0xfb22b5=_0x1868;super();const _0x1e9590=_0x2eb641?_0xfb22b5(0x10c)+_0x2eb641:'';this[_0xfb22b5(0x104)]({'tag':_0xfb22b5(0x105),'attributes':{'class':[_0xfb22b5(0x110),_0x1e9590]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x80dc44=_0x57bc;function _0x57bc(_0x56e6eb,_0x1ed6e0){const _0x357c60=_0x357c();return _0x57bc=function(_0x57bc0b,_0x319c44){_0x57bc0b=_0x57bc0b-0x14b;let _0x5a6418=_0x357c60[_0x57bc0b];return _0x5a6418;},_0x57bc(_0x56e6eb,_0x1ed6e0);}(function(_0x23bbb4,_0x248907){const _0x4b82ed=_0x57bc,_0x15e905=_0x23bbb4();while(!![]){try{const _0x2e47c4=parseInt(_0x4b82ed(0x15f))/0x1*(-parseInt(_0x4b82ed(0x16b))/0x2)+-parseInt(_0x4b82ed(0x176))/0x3+parseInt(_0x4b82ed(0x158))/0x4*(parseInt(_0x4b82ed(0x167))/0x5)+-parseInt(_0x4b82ed(0x156))/0x6+-parseInt(_0x4b82ed(0x151))/0x7+parseInt(_0x4b82ed(0x17f))/0x8*(-parseInt(_0x4b82ed(0x164))/0x9)+parseInt(_0x4b82ed(0x180))/0xa*(parseInt(_0x4b82ed(0x169))/0xb);if(_0x2e47c4===_0x248907)break;else _0x15e905['push'](_0x15e905['shift']());}catch(_0x3a26cb){_0x15e905['push'](_0x15e905['shift']());}}}(_0x357c,0x22bc2));import{ButtonView as _0x42fd05,IconView as _0x2f4a26,ToolbarView as _0x20ff3a}from'ckeditor5/src/ui.js';import{IconCheck as _0x5dbffd,IconCopy as _0x234e89,IconShowChangesOff as _0x3d0483,IconShowChangesOn as _0x2bc434,IconThumbDown as _0x46dc5d,IconThumbUp as _0x5ee436}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0xd1534a}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x20ff3a{[_0x80dc44(0x181)];[_0x80dc44(0x150)];[_0x80dc44(0x14c)];[_0x80dc44(0x175)];[_0x80dc44(0x160)];constructor(_0x6da766,_0x846ff9={}){const _0x1310d2=_0x80dc44;super(_0x6da766),this[_0x1310d2(0x14d)](_0x1310d2(0x14f),!0x0),this[_0x1310d2(0x14d)](_0x1310d2(0x168),!0x1),this[_0x1310d2(0x160)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x846ff9};const _0x5211b4=!(this[_0x1310d2(0x160)][_0x1310d2(0x163)]||this[_0x1310d2(0x160)][_0x1310d2(0x166)]||this[_0x1310d2(0x160)][_0x1310d2(0x155)]||this[_0x1310d2(0x160)][_0x1310d2(0x171)]||this[_0x1310d2(0x160)][_0x1310d2(0x174)]?.[_0x1310d2(0x16d)]);this[_0x1310d2(0x17a)]=_0x5211b4?_0x1310d2(0x15b):_0x1310d2(0x159),this[_0x1310d2(0x160)][_0x1310d2(0x163)]&&(this[_0x1310d2(0x177)](),this[_0x1310d2(0x170)][_0x1310d2(0x17b)](this[_0x1310d2(0x181)])),this[_0x1310d2(0x160)][_0x1310d2(0x166)]&&(this[_0x1310d2(0x17e)](),this[_0x1310d2(0x170)][_0x1310d2(0x17b)](this[_0x1310d2(0x175)])),this[_0x1310d2(0x178)](),this[_0x1310d2(0x160)][_0x1310d2(0x155)]&&this[_0x1310d2(0x170)][_0x1310d2(0x17b)](this[_0x1310d2(0x150)]),this[_0x1310d2(0x160)][_0x1310d2(0x171)]&&this[_0x1310d2(0x170)][_0x1310d2(0x17b)](this[_0x1310d2(0x14c)]),this[_0x1310d2(0x160)][_0x1310d2(0x174)]&&this[_0x1310d2(0x170)][_0x1310d2(0x162)](this[_0x1310d2(0x160)][_0x1310d2(0x174)]);}[_0x80dc44(0x152)](_0x439cbc){const _0x30be56=_0x80dc44;this[_0x30be56(0x175)][_0x30be56(0x14f)]=_0x439cbc;}[_0x80dc44(0x178)](){const _0x57e88e=_0x80dc44;this[_0x57e88e(0x150)]=new _0x42fd05(this[_0x57e88e(0x172)]),this[_0x57e88e(0x150)][_0x57e88e(0x14d)]({'icon':_0x5ee436,'label':_0xd1534a(this[_0x57e88e(0x172)],_0x57e88e(0x17c)),'tooltip':!0x0}),this[_0x57e88e(0x150)][_0x57e88e(0x153)](_0x57e88e(0x14f))['to'](this),this[_0x57e88e(0x150)]['on'](_0x57e88e(0x14e),()=>{const _0x1bf56d=_0x57e88e;this[_0x1bf56d(0x15c)](_0x1bf56d(0x16f));}),this[_0x57e88e(0x14c)]=new _0x42fd05(this[_0x57e88e(0x172)]),this[_0x57e88e(0x14c)][_0x57e88e(0x14d)]({'icon':_0x46dc5d,'label':_0xd1534a(this[_0x57e88e(0x172)],_0x57e88e(0x179)),'tooltip':!0x0}),this[_0x57e88e(0x14c)][_0x57e88e(0x153)](_0x57e88e(0x14f))['to'](this),this[_0x57e88e(0x14c)]['on'](_0x57e88e(0x14e),()=>{const _0x31b5b0=_0x57e88e;this[_0x31b5b0(0x15c)](_0x31b5b0(0x15e));});}[_0x80dc44(0x177)](){const _0x4dd4e7=_0x80dc44;this[_0x4dd4e7(0x181)]=new _0x42fd05(this[_0x4dd4e7(0x172)]),this[_0x4dd4e7(0x181)][_0x4dd4e7(0x14d)]({'icon':_0x234e89,'label':_0xd1534a(this[_0x4dd4e7(0x172)],_0x4dd4e7(0x15d)),'class':_0x4dd4e7(0x16a),'tooltip':!0x0}),this[_0x4dd4e7(0x181)][_0x4dd4e7(0x153)](_0x4dd4e7(0x14f))['to'](this);const _0x2cb5ed=new _0x2f4a26();_0x2cb5ed[_0x4dd4e7(0x14d)]({'content':_0x5dbffd}),_0x2cb5ed[_0x4dd4e7(0x17d)]({'attributes':{'class':[_0x4dd4e7(0x15a)]}}),this[_0x4dd4e7(0x181)]['on'](_0x4dd4e7(0x14e),()=>{const _0x362660=_0x4dd4e7;this[_0x362660(0x181)][_0x362660(0x17a)]=_0x362660(0x16c),setTimeout(()=>{const _0x32932b=_0x362660;this[_0x32932b(0x181)][_0x32932b(0x17a)]=_0x32932b(0x16a);},0x7d0);}),this[_0x4dd4e7(0x181)][_0x4dd4e7(0x165)][_0x4dd4e7(0x17b)](_0x2cb5ed);}[_0x80dc44(0x17e)](){const _0x485322=_0x80dc44;this[_0x485322(0x175)]=new _0x42fd05(this[_0x485322(0x172)]),this[_0x485322(0x175)][_0x485322(0x14d)]({'icon':_0x3d0483,'label':_0xd1534a(this[_0x485322(0x172)],_0x485322(0x157)),'withText':_0x485322(0x161)==this[_0x485322(0x160)][_0x485322(0x166)],'tooltip':_0x485322(0x161)!=this[_0x485322(0x160)][_0x485322(0x166)],'class':_0x485322(0x173)}),this[_0x485322(0x175)][_0x485322(0x153)](_0x485322(0x16e))['to'](this,_0x485322(0x168)),this[_0x485322(0x175)][_0x485322(0x153)](_0x485322(0x14f))['to'](this),this[_0x485322(0x175)][_0x485322(0x153)](_0x485322(0x154))['to'](this,_0x485322(0x168),_0x389f60=>_0x389f60?_0x2bc434:_0x3d0483),this[_0x485322(0x175)]['on'](_0x485322(0x14e),()=>{const _0x347fcf=_0x485322;this[_0x347fcf(0x15c)](_0x347fcf(0x14b));});}}function _0x357c(){const _0x41babc=['set','execute','isEnabled','likeButton','725221vAOqUp','toggleShowChangesEnabled','bind','icon','showLike','920796eUslZo','AI_SUGGESTION_BUTTON_SHOW_CHANGES','30092JPVdLA','ck-ai-mini-toolbar','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar\x20ck-hidden','fire','AI_MINI_TOOLBAR_COPY','dislike','819LnGKtc','_config','full','addMany','showCopy','240147wuivDg','children','showChanges','140uKwESX','isShowChangesOn','144606HXnQJE','ck-ai-mini-toolbar-copy-button','592DIcoOq','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','length','isOn','like','items','showDislike','locale','ck-ai-button-tertiary','customView','showChangesButton','795672uMHLes','_setupCopyButton','_setupRatingButtons','AI_MINI_TOOLBAR_DISLIKE','class','add','AI_MINI_TOOLBAR_LIKE','extendTemplate','_setupShowChangesButton','8aGQNXk','550SnYqvQ','copyButton','toggleShowChanges','dislikeButton'];_0x357c=function(){return _0x41babc;};return _0x357c();}
23
+ function _0x1e37(){const _0x5b8641=['AI_MINI_TOOLBAR_DISLIKE','10dCaUZo','items','AI_MINI_TOOLBAR_COPY','isOn','showDislike','98gziANA','_setupCopyButton','showCopy','toggleShowChangesEnabled','extendTemplate','120PlPVmK','toggleShowChanges','_config','ck-ai-mini-toolbar-copy-button__check-mark','AI_SUGGESTION_BUTTON_SHOW_CHANGES','set','isEnabled','bind','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','ck-ai-mini-toolbar','2030488ayJbek','showChanges','isShowChangesOn','customView','addMany','_setupRatingButtons','559584gfhbOK','11075985ytjiFY','AI_MINI_TOOLBAR_LIKE','1522782BKXNxU','dislike','class','ck-ai-mini-toolbar\x20ck-hidden','_setupShowChangesButton','full','children','add','likeButton','68716JlSpeB','dislikeButton','showLike','execute','ck-ai-button-tertiary','locale','showChangesButton','ck-ai-mini-toolbar-copy-button','icon','copyButton','like','132186FQDngv','421778VmEkpi','fire','length'];_0x1e37=function(){return _0x5b8641;};return _0x1e37();}const _0x474885=_0x4aaf;(function(_0x7edb01,_0x33d6a0){const _0x31b7fd=_0x4aaf,_0x4dfb54=_0x7edb01();while(!![]){try{const _0x235fc5=-parseInt(_0x31b7fd(0xac))/0x1+-parseInt(_0x31b7fd(0x8e))/0x2+-parseInt(_0x31b7fd(0x79))/0x3+-parseInt(_0x31b7fd(0x82))/0x4*(-parseInt(_0x31b7fd(0x9c))/0x5)+parseInt(_0x31b7fd(0x8d))/0x6*(parseInt(_0x31b7fd(0x97))/0x7)+-parseInt(_0x31b7fd(0xa6))/0x8+-parseInt(_0x31b7fd(0x77))/0x9*(-parseInt(_0x31b7fd(0x92))/0xa);if(_0x235fc5===_0x33d6a0)break;else _0x4dfb54['push'](_0x4dfb54['shift']());}catch(_0x16aa4e){_0x4dfb54['push'](_0x4dfb54['shift']());}}}(_0x1e37,0x666bd));import{ButtonView as _0xa07802,IconView as _0x19d7b7,ToolbarView as _0x1b2dfe}from'ckeditor5/src/ui.js';function _0x4aaf(_0x304ca9,_0x4fbc51){const _0x1e370d=_0x1e37();return _0x4aaf=function(_0x4aaf54,_0x452e17){_0x4aaf54=_0x4aaf54-0x77;let _0x50f6bc=_0x1e370d[_0x4aaf54];return _0x50f6bc;},_0x4aaf(_0x304ca9,_0x4fbc51);}import{IconCheck as _0x1e3a7f,IconCopy as _0x4b0387,IconShowChangesOff as _0x174b07,IconShowChangesOn as _0x1fb54d,IconThumbDown as _0x1aaea8,IconThumbUp as _0x3987ce}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x565236}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';export class AIMiniToolbarView extends _0x1b2dfe{[_0x474885(0x8b)];[_0x474885(0x81)];[_0x474885(0x83)];[_0x474885(0x88)];[_0x474885(0x9e)];constructor(_0x2463fa,_0x5c6221={}){const _0x378f04=_0x474885;super(_0x2463fa),this[_0x378f04(0xa1)](_0x378f04(0xa2),!0x0),this[_0x378f04(0xa1)](_0x378f04(0xa8),!0x1),this[_0x378f04(0x9e)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5c6221};const _0x344501=!(this[_0x378f04(0x9e)][_0x378f04(0x99)]||this[_0x378f04(0x9e)][_0x378f04(0xa7)]||this[_0x378f04(0x9e)][_0x378f04(0x84)]||this[_0x378f04(0x9e)][_0x378f04(0x96)]||this[_0x378f04(0x9e)][_0x378f04(0xa9)]?.[_0x378f04(0x90)]);this[_0x378f04(0x7b)]=_0x344501?_0x378f04(0x7c):_0x378f04(0xa5),this[_0x378f04(0x9e)][_0x378f04(0x99)]&&(this[_0x378f04(0x98)](),this[_0x378f04(0x93)][_0x378f04(0x80)](this[_0x378f04(0x8b)])),this[_0x378f04(0x9e)][_0x378f04(0xa7)]&&(this[_0x378f04(0x7d)](),this[_0x378f04(0x93)][_0x378f04(0x80)](this[_0x378f04(0x88)])),this[_0x378f04(0xab)](),this[_0x378f04(0x9e)][_0x378f04(0x84)]&&this[_0x378f04(0x93)][_0x378f04(0x80)](this[_0x378f04(0x81)]),this[_0x378f04(0x9e)][_0x378f04(0x96)]&&this[_0x378f04(0x93)][_0x378f04(0x80)](this[_0x378f04(0x83)]),this[_0x378f04(0x9e)][_0x378f04(0xa9)]&&this[_0x378f04(0x93)][_0x378f04(0xaa)](this[_0x378f04(0x9e)][_0x378f04(0xa9)]);}[_0x474885(0x9a)](_0x172cc0){const _0x5ae684=_0x474885;this[_0x5ae684(0x88)][_0x5ae684(0xa2)]=_0x172cc0;}[_0x474885(0xab)](){const _0x2299e7=_0x474885;this[_0x2299e7(0x81)]=new _0xa07802(this[_0x2299e7(0x87)]),this[_0x2299e7(0x81)][_0x2299e7(0xa1)]({'icon':_0x3987ce,'label':_0x565236(this[_0x2299e7(0x87)],_0x2299e7(0x78)),'tooltip':!0x0}),this[_0x2299e7(0x81)][_0x2299e7(0xa3)](_0x2299e7(0xa2))['to'](this),this[_0x2299e7(0x81)]['on'](_0x2299e7(0x85),()=>{const _0x570c4d=_0x2299e7;this[_0x570c4d(0x8f)](_0x570c4d(0x8c));}),this[_0x2299e7(0x83)]=new _0xa07802(this[_0x2299e7(0x87)]),this[_0x2299e7(0x83)][_0x2299e7(0xa1)]({'icon':_0x1aaea8,'label':_0x565236(this[_0x2299e7(0x87)],_0x2299e7(0x91)),'tooltip':!0x0}),this[_0x2299e7(0x83)][_0x2299e7(0xa3)](_0x2299e7(0xa2))['to'](this),this[_0x2299e7(0x83)]['on'](_0x2299e7(0x85),()=>{const _0x2baba4=_0x2299e7;this[_0x2baba4(0x8f)](_0x2baba4(0x7a));});}[_0x474885(0x98)](){const _0x39440b=_0x474885;this[_0x39440b(0x8b)]=new _0xa07802(this[_0x39440b(0x87)]),this[_0x39440b(0x8b)][_0x39440b(0xa1)]({'icon':_0x4b0387,'label':_0x565236(this[_0x39440b(0x87)],_0x39440b(0x94)),'class':_0x39440b(0x89),'tooltip':!0x0}),this[_0x39440b(0x8b)][_0x39440b(0xa3)](_0x39440b(0xa2))['to'](this);const _0x109290=new _0x19d7b7();_0x109290[_0x39440b(0xa1)]({'content':_0x1e3a7f}),_0x109290[_0x39440b(0x9b)]({'attributes':{'class':[_0x39440b(0x9f)]}}),this[_0x39440b(0x8b)]['on'](_0x39440b(0x85),()=>{const _0x442734=_0x39440b;this[_0x442734(0x8b)][_0x442734(0x7b)]=_0x442734(0xa4),setTimeout(()=>{const _0x3d0efd=_0x442734;this[_0x3d0efd(0x8b)][_0x3d0efd(0x7b)]=_0x3d0efd(0x89);},0x7d0);}),this[_0x39440b(0x8b)][_0x39440b(0x7f)][_0x39440b(0x80)](_0x109290);}[_0x474885(0x7d)](){const _0x11284a=_0x474885;this[_0x11284a(0x88)]=new _0xa07802(this[_0x11284a(0x87)]),this[_0x11284a(0x88)][_0x11284a(0xa1)]({'icon':_0x174b07,'label':_0x565236(this[_0x11284a(0x87)],_0x11284a(0xa0)),'withText':_0x11284a(0x7e)==this[_0x11284a(0x9e)][_0x11284a(0xa7)],'tooltip':_0x11284a(0x7e)!=this[_0x11284a(0x9e)][_0x11284a(0xa7)],'class':_0x11284a(0x86)}),this[_0x11284a(0x88)][_0x11284a(0xa3)](_0x11284a(0x95))['to'](this,_0x11284a(0xa8)),this[_0x11284a(0x88)][_0x11284a(0xa3)](_0x11284a(0xa2))['to'](this),this[_0x11284a(0x88)][_0x11284a(0xa3)](_0x11284a(0x8a))['to'](this,_0x11284a(0xa8),_0x1099bb=>_0x1099bb?_0x1fb54d:_0x174b07),this[_0x11284a(0x88)]['on'](_0x11284a(0x85),()=>{const _0x3f5934=_0x11284a;this[_0x3f5934(0x8f)](_0x3f5934(0x9d));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5e02(_0x3a7cb4,_0x1af11d){const _0x550b04=_0x550b();return _0x5e02=function(_0x5e0282,_0x3c90a2){_0x5e0282=_0x5e0282-0x151;let _0x18cda1=_0x550b04[_0x5e0282];return _0x18cda1;},_0x5e02(_0x3a7cb4,_0x1af11d);}const _0x17d612=_0x5e02;(function(_0x526de0,_0x39f6c6){const _0x1e14e2=_0x5e02,_0x45b5b3=_0x526de0();while(!![]){try{const _0x200f92=-parseInt(_0x1e14e2(0x167))/0x1+-parseInt(_0x1e14e2(0x174))/0x2+-parseInt(_0x1e14e2(0x170))/0x3*(-parseInt(_0x1e14e2(0x195))/0x4)+-parseInt(_0x1e14e2(0x176))/0x5*(-parseInt(_0x1e14e2(0x153))/0x6)+-parseInt(_0x1e14e2(0x175))/0x7+parseInt(_0x1e14e2(0x193))/0x8*(-parseInt(_0x1e14e2(0x15c))/0x9)+parseInt(_0x1e14e2(0x17b))/0xa;if(_0x200f92===_0x39f6c6)break;else _0x45b5b3['push'](_0x45b5b3['shift']());}catch(_0x41f006){_0x45b5b3['push'](_0x45b5b3['shift']());}}}(_0x550b,0x9fd58));import{View as _0x16411d}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x222456}from'./aisuggestioncontentpartview.js';function _0x550b(){const _0x3e01cb=['queueEmptyPromise','createCollection','hasNonEmptyParts','addSource','ck-ai-suggestion__body__content-parts','set','delegate','_availableActions','from','partDefinition','hasPendingParts','561936lgmLmY','updateContent','85352XGdBaL','setTemplate','isActive','getPartView','enqueue','6TQGKiX','pending','isTrackChangesOn','bodyCollection','bind','markAsDone','_emptyPartsWarningView','ck-ai-suggestion__body','_updateContentPartsPromiseQueue','18vWWtDh','updatePartState','updateSources','index','add','updateContentParts','_children','length','AI_SUGGESTION_NO_PARTS_WARNING','setContent','warning','1193202RAzLGo','hasChanges','forEach','div','addEventListener','partsCount','_areActionsDisabled','findIndex','_sourcesView','141hxWVuD','_showUnchangedParts','empty-parts-warning','some','441404fHOGjs','628544HOcydw','1132660vdGHGU','isVisible','areActionsDisabled','find','updateVisibility','10694420cDPYzS','_cachedContentParts','locale','filter','state','_switchButtonLabelsPlurality','abort','setPartActive','isEnabled','AI_SUGGESTION_EMPTY_PART_WARNING','_actionsView','push','availableActions'];_0x550b=function(){return _0x3e01cb;};return _0x550b();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x36220f}from'../../utils/eventnames.js';import{PromiseQueue as _0x108212}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x350c23}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x15d175}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x2c2a97}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x19947a}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x16411d{[_0x17d612(0x185)];[_0x17d612(0x16f)];[_0x17d612(0x162)];[_0x17d612(0x16d)];[_0x17d612(0x171)];[_0x17d612(0x15b)];[_0x17d612(0x159)];[_0x17d612(0x18f)];[_0x17d612(0x17c)]=[];constructor(_0x4aa886,_0x4de14a){const _0x55c6ea=_0x17d612;super(_0x4aa886);const {areActionsDisabled:_0x4ba8bf,showUnchangedParts:_0x4095a2,availableActions:_0x4137ed}=_0x4de14a;this[_0x55c6ea(0x16d)]=_0x4ba8bf,this[_0x55c6ea(0x171)]=_0x4095a2,this[_0x55c6ea(0x18f)]=_0x4137ed,this[_0x55c6ea(0x18d)](_0x55c6ea(0x192),!0x1),this[_0x55c6ea(0x18d)](_0x55c6ea(0x155),!0x1),this[_0x55c6ea(0x162)]=this[_0x55c6ea(0x189)](),this[_0x55c6ea(0x15b)]=new _0x108212(),this[_0x55c6ea(0x159)]=new _0x350c23({'id':_0x55c6ea(0x172),'initialContent':_0x15d175(_0x4aa886,_0x55c6ea(0x184)),'level':_0x55c6ea(0x166)}),this[_0x55c6ea(0x159)][_0x55c6ea(0x177)]=!0x1,this[_0x55c6ea(0x185)]=new _0x2c2a97(_0x4aa886,_0x4de14a[_0x55c6ea(0x187)],this[_0x55c6ea(0x16d)]),this[_0x55c6ea(0x185)][_0x55c6ea(0x157)](_0x55c6ea(0x155))['to'](this),this[_0x55c6ea(0x16f)]=new _0x19947a(this[_0x55c6ea(0x17d)],_0x4de14a[_0x55c6ea(0x156)]),_0x4de14a[_0x55c6ea(0x178)]?this[_0x55c6ea(0x185)][_0x55c6ea(0x183)]=!0x1:this[_0x55c6ea(0x185)][_0x55c6ea(0x157)](_0x55c6ea(0x183))['to'](this,_0x55c6ea(0x192)),this[_0x55c6ea(0x185)][_0x55c6ea(0x18e)](..._0x36220f)['to'](this),this[_0x55c6ea(0x196)]({'tag':_0x55c6ea(0x16a),'attributes':{'class':['ck',_0x55c6ea(0x15a)]},'children':[{'tag':_0x55c6ea(0x16a),'attributes':{'class':['ck',_0x55c6ea(0x18c)]},'children':this[_0x55c6ea(0x162)]},this[_0x55c6ea(0x159)],this[_0x55c6ea(0x185)],this[_0x55c6ea(0x16f)]]});}get[_0x17d612(0x16c)](){const _0x59b62b=_0x17d612;return this[_0x59b62b(0x162)][_0x59b62b(0x163)];}async[_0x17d612(0x161)]({parts:_0xeab643,renderingStrategy:_0x4a9daa,abortSignal:_0x1476f0}){const _0x256847=_0x17d612;this[_0x256847(0x162)][_0x256847(0x163)]?_0xeab643[_0x256847(0x169)](_0x1ba662=>{const _0x53fc74=_0x256847,_0x504f0f=this[_0x53fc74(0x17c)][_0x53fc74(0x16e)](_0x5e2fdd=>_0x5e2fdd[_0x53fc74(0x15f)]==_0x1ba662[_0x53fc74(0x15f)]);-0x1===_0x504f0f?this[_0x53fc74(0x17c)][_0x53fc74(0x186)](_0x1ba662):this[_0x53fc74(0x17c)][_0x504f0f]=_0x1ba662;}):this[_0x256847(0x17c)]=_0xeab643;const _0x37b4fe=this[_0x256847(0x171)]?_0xeab643:_0xeab643[_0x256847(0x17e)](_0x77393c=>_0x77393c[_0x256847(0x168)]);this[_0x256847(0x185)][_0x256847(0x180)](_0x37b4fe[_0x256847(0x163)]>0x1);for(const _0x445e80 of _0x37b4fe)this[_0x256847(0x15b)][_0x256847(0x152)](async _0x454fda=>{const _0x433567=_0x256847;let _0xbc8d0c=this[_0x433567(0x151)](_0x445e80[_0x433567(0x15f)]);_0xbc8d0c||(_0xbc8d0c=new _0x222456(this[_0x433567(0x17d)],{'part':_0x445e80,'uiIndex':this[_0x433567(0x162)][_0x433567(0x163)]+0x1,'areActionsDisabled':this[_0x433567(0x16d)],'availableActions':this[_0x433567(0x18f)]}),_0xbc8d0c[_0x433567(0x18e)](..._0x36220f)['to'](this),this[_0x433567(0x162)][_0x433567(0x160)](_0xbc8d0c),this[_0x433567(0x192)]=!0x0),await _0xbc8d0c[_0x433567(0x194)]({'part':_0x445e80,'renderingStrategy':_0x4a9daa,'showUnchangedParts':this[_0x433567(0x171)],'abortSignal':_0x454fda}),_0xbc8d0c[_0x433567(0x158)]();});return _0x1476f0?.[_0x256847(0x16b)](_0x256847(0x181),()=>{const _0x2fdb01=_0x256847;this[_0x2fdb01(0x15b)][_0x2fdb01(0x181)]();}),this[_0x256847(0x15b)][_0x256847(0x188)];}[_0x17d612(0x15d)](_0x4d99a5,_0x5b309b){const _0x22edae=_0x17d612,_0x43fd74=this[_0x22edae(0x151)](_0x4d99a5);_0x43fd74&&(_0x43fd74[_0x22edae(0x17f)]=_0x5b309b),this[_0x22edae(0x192)]=_0x22edae(0x154)==_0x5b309b||Array[_0x22edae(0x190)](this[_0x22edae(0x162)])[_0x22edae(0x173)](_0x236bc0=>_0x22edae(0x154)==_0x236bc0[_0x22edae(0x17f)]);}[_0x17d612(0x182)](_0x586807,_0x526a7f){const _0x401410=_0x17d612;if(!0x1===_0x586807){for(const _0x22b4a3 of this[_0x401410(0x162)])_0x22b4a3[_0x401410(0x197)]=!0x1;}else{const _0x3aa3da=this[_0x401410(0x151)](_0x586807);_0x3aa3da&&(_0x3aa3da[_0x401410(0x197)]=_0x526a7f);}}[_0x17d612(0x15e)](_0x30516d){const _0x69b59f=_0x17d612;_0x30516d[_0x69b59f(0x169)](_0x56867b=>this[_0x69b59f(0x16f)][_0x69b59f(0x18b)](_0x56867b)),this[_0x69b59f(0x16f)][_0x69b59f(0x177)]=!0x0;}[_0x17d612(0x151)](_0x434d60){const _0x1ff60b=_0x17d612;return this[_0x1ff60b(0x162)][_0x1ff60b(0x179)](_0x38ee05=>_0x38ee05[_0x1ff60b(0x191)][_0x1ff60b(0x15f)]==_0x434d60)??null;}[_0x17d612(0x158)](){const _0x2a5e75=_0x17d612;if(!this[_0x2a5e75(0x171)]){const _0x34ba1e=!this[_0x2a5e75(0x17c)][_0x2a5e75(0x179)](({hasChanges:_0x189a80})=>_0x189a80),_0x81fffa=!!this[_0x2a5e75(0x17c)][_0x2a5e75(0x179)](({hasChanges:_0x3bb1d2})=>!_0x3bb1d2);this[_0x2a5e75(0x159)][_0x2a5e75(0x177)]=0x0==this[_0x2a5e75(0x162)][_0x2a5e75(0x163)]||_0x81fffa,_0x34ba1e?this[_0x2a5e75(0x159)][_0x2a5e75(0x165)](_0x15d175(this[_0x2a5e75(0x17d)],_0x2a5e75(0x164))):this[_0x2a5e75(0x159)][_0x2a5e75(0x165)](_0x15d175(this[_0x2a5e75(0x17d)],_0x2a5e75(0x184)));}this[_0x2a5e75(0x162)][_0x2a5e75(0x169)](_0x24163a=>_0x24163a[_0x2a5e75(0x158)]()),this[_0x2a5e75(0x185)][_0x2a5e75(0x17a)](this[_0x2a5e75(0x18a)]);}get[_0x17d612(0x18a)](){const _0x5aaad5=_0x17d612;return this[_0x5aaad5(0x162)][_0x5aaad5(0x17e)](_0x43a532=>_0x43a532[_0x5aaad5(0x191)][_0x5aaad5(0x168)])[_0x5aaad5(0x163)]>0x0;}}
23
+ const _0x21319f=_0x2d8e;function _0x1851(){const _0x4e33de=['_children','setTemplate','updateVisibility','bodyCollection','_areActionsDisabled','state','some','bind','addEventListener','updateContentParts','filter','enqueue','queueEmptyPromise','length','4542666ZrbdPS','502370fgxixO','locale','AI_SUGGESTION_EMPTY_PART_WARNING','5561168nwKaxm','updateSources','index','_emptyPartsWarningView','hasNonEmptyParts','warning','_sourcesView','_cachedContentParts','forEach','AI_SUGGESTION_NO_PARTS_WARNING','empty-parts-warning','findIndex','_updateContentPartsPromiseQueue','setContent','_switchButtonLabelsPlurality','updateContent','getPartView','div','isTrackChangesOn','partsCount','2107746tByqHW','isEnabled','ck-ai-suggestion__body','3461604nGmvYr','addSource','ck-ai-suggestion__body__content-parts','_actionsView','markAsDone','1716449NkZlDL','pending','_availableActions','set','_showUnchangedParts','add','availableActions','push','hasChanges','from','isActive','hasPendingParts','partDefinition','createCollection','2ctePuX','updatePartState','isVisible','delegate','abort','find','setPartActive','areActionsDisabled','238820uRcAdA'];_0x1851=function(){return _0x4e33de;};return _0x1851();}(function(_0x54b27f,_0x4e2746){const _0x500ab5=_0x2d8e,_0x2590c9=_0x54b27f();while(!![]){try{const _0x2d4e34=parseInt(_0x500ab5(0x229))/0x1+-parseInt(_0x500ab5(0x211))/0x2*(-parseInt(_0x500ab5(0x1fb))/0x3)+-parseInt(_0x500ab5(0x1fe))/0x4+-parseInt(_0x500ab5(0x219))/0x5+-parseInt(_0x500ab5(0x228))/0x6+parseInt(_0x500ab5(0x203))/0x7+parseInt(_0x500ab5(0x22c))/0x8;if(_0x2d4e34===_0x4e2746)break;else _0x2590c9['push'](_0x2590c9['shift']());}catch(_0x2063ba){_0x2590c9['push'](_0x2590c9['shift']());}}}(_0x1851,0x73f95));import{View as _0x339347}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x4c05ab}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4c163c}from'../../utils/eventnames.js';import{PromiseQueue as _0x5743c9}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x4aa5dc}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x2de494}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x3e5609}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x5e364f}from'./aiwebsourcesview.js';function _0x2d8e(_0x5f37d0,_0x151e5c){const _0x1851a0=_0x1851();return _0x2d8e=function(_0x2d8eff,_0x24af61){_0x2d8eff=_0x2d8eff-0x1f1;let _0x2c5653=_0x1851a0[_0x2d8eff];return _0x2c5653;},_0x2d8e(_0x5f37d0,_0x151e5c);}export class AISuggestionBodyView extends _0x339347{[_0x21319f(0x201)];[_0x21319f(0x232)];[_0x21319f(0x21a)];[_0x21319f(0x21e)];[_0x21319f(0x207)];[_0x21319f(0x1f3)];[_0x21319f(0x22f)];[_0x21319f(0x205)];[_0x21319f(0x233)]=[];constructor(_0x4e55a2,_0x1dfc32){const _0x391a2e=_0x21319f;super(_0x4e55a2);const {areActionsDisabled:_0x4aa9e9,showUnchangedParts:_0x1ec1b1,availableActions:_0x3563de}=_0x1dfc32;this[_0x391a2e(0x21e)]=_0x4aa9e9,this[_0x391a2e(0x207)]=_0x1ec1b1,this[_0x391a2e(0x205)]=_0x3563de,this[_0x391a2e(0x206)](_0x391a2e(0x20e),!0x1),this[_0x391a2e(0x206)](_0x391a2e(0x1f9),!0x1),this[_0x391a2e(0x21a)]=this[_0x391a2e(0x210)](),this[_0x391a2e(0x1f3)]=new _0x5743c9(),this[_0x391a2e(0x22f)]=new _0x4aa5dc({'id':_0x391a2e(0x1f1),'initialContent':_0x2de494(_0x4e55a2,_0x391a2e(0x22b)),'level':_0x391a2e(0x231)}),this[_0x391a2e(0x22f)][_0x391a2e(0x213)]=!0x1,this[_0x391a2e(0x201)]=new _0x3e5609(_0x4e55a2,_0x1dfc32[_0x391a2e(0x209)],this[_0x391a2e(0x21e)]),this[_0x391a2e(0x201)][_0x391a2e(0x221)](_0x391a2e(0x1f9))['to'](this),this[_0x391a2e(0x232)]=new _0x5e364f(this[_0x391a2e(0x22a)],_0x1dfc32[_0x391a2e(0x21d)]),_0x1dfc32[_0x391a2e(0x218)]?this[_0x391a2e(0x201)][_0x391a2e(0x1fc)]=!0x1:this[_0x391a2e(0x201)][_0x391a2e(0x221)](_0x391a2e(0x1fc))['to'](this,_0x391a2e(0x20e)),this[_0x391a2e(0x201)][_0x391a2e(0x214)](..._0x4c163c)['to'](this),this[_0x391a2e(0x21b)]({'tag':_0x391a2e(0x1f8),'attributes':{'class':['ck',_0x391a2e(0x1fd)]},'children':[{'tag':_0x391a2e(0x1f8),'attributes':{'class':['ck',_0x391a2e(0x200)]},'children':this[_0x391a2e(0x21a)]},this[_0x391a2e(0x22f)],this[_0x391a2e(0x201)],this[_0x391a2e(0x232)]]});}get[_0x21319f(0x1fa)](){const _0x4ae3a4=_0x21319f;return this[_0x4ae3a4(0x21a)][_0x4ae3a4(0x227)];}async[_0x21319f(0x223)]({parts:_0x2c34d9,renderingStrategy:_0x516663,abortSignal:_0x18bb0c}){const _0x1c2b67=_0x21319f;this[_0x1c2b67(0x21a)][_0x1c2b67(0x227)]?_0x2c34d9[_0x1c2b67(0x234)](_0x5a3c84=>{const _0x554113=_0x1c2b67,_0x19bd70=this[_0x554113(0x233)][_0x554113(0x1f2)](_0x43e093=>_0x43e093[_0x554113(0x22e)]==_0x5a3c84[_0x554113(0x22e)]);-0x1===_0x19bd70?this[_0x554113(0x233)][_0x554113(0x20a)](_0x5a3c84):this[_0x554113(0x233)][_0x19bd70]=_0x5a3c84;}):this[_0x1c2b67(0x233)]=_0x2c34d9;const _0x41a20f=this[_0x1c2b67(0x207)]?_0x2c34d9:_0x2c34d9[_0x1c2b67(0x224)](_0x2d683d=>_0x2d683d[_0x1c2b67(0x20b)]);this[_0x1c2b67(0x201)][_0x1c2b67(0x1f5)](_0x41a20f[_0x1c2b67(0x227)]>0x1);for(const _0x2c1c5c of _0x41a20f)this[_0x1c2b67(0x1f3)][_0x1c2b67(0x225)](async _0x215a03=>{const _0x4a918f=_0x1c2b67;let _0xb838d2=this[_0x4a918f(0x1f7)](_0x2c1c5c[_0x4a918f(0x22e)]);_0xb838d2||(_0xb838d2=new _0x4c05ab(this[_0x4a918f(0x22a)],{'part':_0x2c1c5c,'uiIndex':this[_0x4a918f(0x21a)][_0x4a918f(0x227)]+0x1,'areActionsDisabled':this[_0x4a918f(0x21e)],'availableActions':this[_0x4a918f(0x205)]}),_0xb838d2[_0x4a918f(0x214)](..._0x4c163c)['to'](this),this[_0x4a918f(0x21a)][_0x4a918f(0x208)](_0xb838d2),this[_0x4a918f(0x20e)]=!0x0),await _0xb838d2[_0x4a918f(0x1f6)]({'part':_0x2c1c5c,'renderingStrategy':_0x516663,'showUnchangedParts':this[_0x4a918f(0x207)],'abortSignal':_0x215a03}),_0xb838d2[_0x4a918f(0x202)]();});return _0x18bb0c?.[_0x1c2b67(0x222)](_0x1c2b67(0x215),()=>{const _0x1df723=_0x1c2b67;this[_0x1df723(0x1f3)][_0x1df723(0x215)]();}),this[_0x1c2b67(0x1f3)][_0x1c2b67(0x226)];}[_0x21319f(0x212)](_0x5cac78,_0x4807a9){const _0x587ebf=_0x21319f,_0x28bab1=this[_0x587ebf(0x1f7)](_0x5cac78);_0x28bab1&&(_0x28bab1[_0x587ebf(0x21f)]=_0x4807a9),this[_0x587ebf(0x20e)]=_0x587ebf(0x204)==_0x4807a9||Array[_0x587ebf(0x20c)](this[_0x587ebf(0x21a)])[_0x587ebf(0x220)](_0x1424d0=>_0x587ebf(0x204)==_0x1424d0[_0x587ebf(0x21f)]);}[_0x21319f(0x217)](_0x4addea,_0x483d44){const _0x16f05b=_0x21319f;if(!0x1===_0x4addea){for(const _0x53152e of this[_0x16f05b(0x21a)])_0x53152e[_0x16f05b(0x20d)]=!0x1;}else{const _0x7cd18f=this[_0x16f05b(0x1f7)](_0x4addea);_0x7cd18f&&(_0x7cd18f[_0x16f05b(0x20d)]=_0x483d44);}}[_0x21319f(0x22d)](_0x204647){const _0x3565d=_0x21319f;_0x204647[_0x3565d(0x234)](_0x5aab19=>this[_0x3565d(0x232)][_0x3565d(0x1ff)](_0x5aab19)),this[_0x3565d(0x232)][_0x3565d(0x213)]=!0x0;}[_0x21319f(0x1f7)](_0x272f4b){const _0x1f82e1=_0x21319f;return this[_0x1f82e1(0x21a)][_0x1f82e1(0x216)](_0x30c44c=>_0x30c44c[_0x1f82e1(0x20f)][_0x1f82e1(0x22e)]==_0x272f4b)??null;}[_0x21319f(0x202)](){const _0x46eb56=_0x21319f;if(!this[_0x46eb56(0x207)]){const _0x165371=!this[_0x46eb56(0x233)][_0x46eb56(0x216)](({hasChanges:_0x33411a})=>_0x33411a),_0x13ba4a=!!this[_0x46eb56(0x233)][_0x46eb56(0x216)](({hasChanges:_0x5e8abf})=>!_0x5e8abf);this[_0x46eb56(0x22f)][_0x46eb56(0x213)]=0x0==this[_0x46eb56(0x21a)][_0x46eb56(0x227)]||_0x13ba4a,_0x165371?this[_0x46eb56(0x22f)][_0x46eb56(0x1f4)](_0x2de494(this[_0x46eb56(0x22a)],_0x46eb56(0x235))):this[_0x46eb56(0x22f)][_0x46eb56(0x1f4)](_0x2de494(this[_0x46eb56(0x22a)],_0x46eb56(0x22b)));}this[_0x46eb56(0x21a)][_0x46eb56(0x234)](_0x3d74e1=>_0x3d74e1[_0x46eb56(0x202)]()),this[_0x46eb56(0x201)][_0x46eb56(0x21c)](this[_0x46eb56(0x230)]);}get[_0x21319f(0x230)](){const _0x10d51f=_0x21319f;return this[_0x10d51f(0x21a)][_0x10d51f(0x224)](_0x1047cb=>_0x1047cb[_0x10d51f(0x20f)][_0x10d51f(0x20b)])[_0x10d51f(0x227)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3cc93d=_0x28d6;(function(_0x4dee1e,_0x20630f){const _0x749dae=_0x28d6,_0x56640b=_0x4dee1e();while(!![]){try{const _0x226211=parseInt(_0x749dae(0x195))/0x1*(-parseInt(_0x749dae(0x18e))/0x2)+-parseInt(_0x749dae(0x194))/0x3*(-parseInt(_0x749dae(0x186))/0x4)+-parseInt(_0x749dae(0x18d))/0x5*(parseInt(_0x749dae(0x183))/0x6)+-parseInt(_0x749dae(0x19a))/0x7*(parseInt(_0x749dae(0x196))/0x8)+parseInt(_0x749dae(0x18f))/0x9*(-parseInt(_0x749dae(0x191))/0xa)+-parseInt(_0x749dae(0x17f))/0xb+parseInt(_0x749dae(0x18a))/0xc;if(_0x226211===_0x20630f)break;else _0x56640b['push'](_0x56640b['shift']());}catch(_0x2e04cf){_0x56640b['push'](_0x56640b['shift']());}}}(_0x2069,0xa6615));import{View as _0x6a880f}from'ckeditor5/src/ui.js';function _0x28d6(_0x248b37,_0x167ce8){const _0x206977=_0x2069();return _0x28d6=function(_0x28d6b6,_0x1cac17){_0x28d6b6=_0x28d6b6-0x177;let _0x387df6=_0x206977[_0x28d6b6];return _0x387df6;},_0x28d6(_0x248b37,_0x167ce8);}import{AISuggestionHeaderView as _0x20d6f2}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x6a3e95}from'./aisuggestionbodyview.js';function _0x2069(){const _0x458dde=['10990078wwAOOp','updateContent','areChangesVisible','div','1746KRnHBK','delegate','ck-rounded-corners','12944wfBVOw','toggleShowChanges','updateSources','isTrackChangesOn','54474684mTatdM','headerView','toggleSuggestionDisplayMode','10330tKkmZP','46370YbvwxW','963OLJQml','isOn','49430LvPrwA','set','isShowChangesToggleVisible','486SpLPCH','49ztVAqa','2978736FPwvXX','bodyView','updateContentParts','fire','21EXwcGI','createCollection','hasNonEmptyParts','markAsDone','bind','add','setTemplate','ck-ai-suggestion__container','children'];_0x2069=function(){return _0x458dde;};return _0x2069();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2ea1a3}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x6a880f{[_0x3cc93d(0x197)];[_0x3cc93d(0x17e)];[_0x3cc93d(0x18b)];constructor(_0x1da22d,_0x580f4e,_0x110ec7){const _0x50a611=_0x3cc93d;super(_0x1da22d);const {showDiff:_0x284109,areActionsDisabled:_0x2cd4c9,showUnchangedParts:_0x4a8aed,availableActions:_0x5d8563}=_0x580f4e;this[_0x50a611(0x192)](_0x50a611(0x189),!0x1),this[_0x50a611(0x192)](_0x50a611(0x181),!0x1),this[_0x50a611(0x17e)]=this[_0x50a611(0x177)](),this[_0x50a611(0x18b)]=new _0x20d6f2(_0x1da22d,{'showDiff':_0x284109}),this[_0x50a611(0x18b)]['on'](_0x50a611(0x187),(_0x5395f1,_0x3f6457)=>{const _0x19ae42=_0x50a611;this[_0x19ae42(0x181)]=_0x3f6457[_0x19ae42(0x190)],this[_0x19ae42(0x199)](_0x19ae42(0x18c),{'showDiff':_0x3f6457[_0x19ae42(0x190)]});}),this[_0x50a611(0x17e)][_0x50a611(0x17b)](this[_0x50a611(0x18b)]),this[_0x50a611(0x197)]=new _0x6a3e95(_0x1da22d,{'areActionsDisabled':_0x2cd4c9,'showUnchangedParts':!!_0x4a8aed,'availableActions':_0x5d8563,'bodyCollection':_0x110ec7}),this[_0x50a611(0x197)][_0x50a611(0x184)](..._0x2ea1a3)['to'](this),this[_0x50a611(0x197)][_0x50a611(0x17a)](_0x50a611(0x189))['to'](this),this[_0x50a611(0x17e)][_0x50a611(0x17b)](this[_0x50a611(0x197)]),this[_0x50a611(0x17c)]({'tag':_0x50a611(0x182),'attributes':{'class':['ck',_0x50a611(0x17d),_0x50a611(0x185)]},'children':this[_0x50a611(0x17e)]});}async[_0x3cc93d(0x180)](_0x1028ad){const _0x42192c=_0x3cc93d;await this[_0x42192c(0x197)][_0x42192c(0x198)](_0x1028ad);}[_0x3cc93d(0x188)](_0x5600db){const _0x333f05=_0x3cc93d;this[_0x333f05(0x197)][_0x333f05(0x188)](_0x5600db);}[_0x3cc93d(0x179)](){const _0x1de38a=_0x3cc93d;this[_0x1de38a(0x197)][_0x1de38a(0x179)](),this[_0x1de38a(0x18b)]&&(this[_0x1de38a(0x18b)][_0x1de38a(0x193)]=this[_0x1de38a(0x197)][_0x1de38a(0x178)]);}}
23
+ const _0x5bf9c4=_0x3e65;(function(_0x40eeef,_0xb5a1d1){const _0x242f12=_0x3e65,_0x715d58=_0x40eeef();while(!![]){try{const _0x3202cb=parseInt(_0x242f12(0x125))/0x1+-parseInt(_0x242f12(0x111))/0x2+parseInt(_0x242f12(0x124))/0x3*(parseInt(_0x242f12(0x114))/0x4)+-parseInt(_0x242f12(0x11c))/0x5*(parseInt(_0x242f12(0x115))/0x6)+parseInt(_0x242f12(0x129))/0x7+-parseInt(_0x242f12(0x12a))/0x8*(-parseInt(_0x242f12(0x128))/0x9)+-parseInt(_0x242f12(0x117))/0xa;if(_0x3202cb===_0xb5a1d1)break;else _0x715d58['push'](_0x715d58['shift']());}catch(_0x4d835d){_0x715d58['push'](_0x715d58['shift']());}}}(_0x2a07,0x44ef7));import{View as _0x1f8594}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x5cf42e}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x317df3}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x483a74}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';function _0x2a07(){const _0x47337c=['delegate','bind','88782Nugvdl','458192xyNUSf','updateContent','headerView','9sXhBkx','485688cKUaja','160184jscAhM','add','children','isShowChangesToggleVisible','setTemplate','areChangesVisible','ck-rounded-corners','updateSources','createCollection','403780YFwZnZ','fire','isTrackChangesOn','48esnYcF','948PQzxrN','updateContentParts','2329860RQFYoY','toggleSuggestionDisplayMode','hasNonEmptyParts','bodyView','div','5870YYOiFa','markAsDone','set','toggleShowChanges','isOn','ck-ai-suggestion__container'];_0x2a07=function(){return _0x47337c;};return _0x2a07();}function _0x3e65(_0x4e5c12,_0x54ff9f){const _0x2a07f8=_0x2a07();return _0x3e65=function(_0x3e6581,_0x2534bb){_0x3e6581=_0x3e6581-0x110;let _0x297415=_0x2a07f8[_0x3e6581];return _0x297415;},_0x3e65(_0x4e5c12,_0x54ff9f);}export class AISuggestionContainerView extends _0x1f8594{[_0x5bf9c4(0x11a)];[_0x5bf9c4(0x12c)];[_0x5bf9c4(0x127)];constructor(_0x37747e,_0x565ffa,_0x297cf4){const _0x431be7=_0x5bf9c4;super(_0x37747e);const {showDiff:_0x42bd9a,areActionsDisabled:_0x33e346,showUnchangedParts:_0x176151,availableActions:_0x2bd0f0}=_0x565ffa;this[_0x431be7(0x11e)](_0x431be7(0x113),!0x1),this[_0x431be7(0x11e)](_0x431be7(0x12f),!0x1),this[_0x431be7(0x12c)]=this[_0x431be7(0x110)](),this[_0x431be7(0x127)]=new _0x5cf42e(_0x37747e,{'showDiff':_0x42bd9a}),this[_0x431be7(0x127)]['on'](_0x431be7(0x11f),(_0x517115,_0x315938)=>{const _0x4d01f6=_0x431be7;this[_0x4d01f6(0x12f)]=_0x315938[_0x4d01f6(0x120)],this[_0x4d01f6(0x112)](_0x4d01f6(0x118),{'showDiff':_0x315938[_0x4d01f6(0x120)]});}),this[_0x431be7(0x12c)][_0x431be7(0x12b)](this[_0x431be7(0x127)]),this[_0x431be7(0x11a)]=new _0x317df3(_0x37747e,{'areActionsDisabled':_0x33e346,'showUnchangedParts':!!_0x176151,'availableActions':_0x2bd0f0,'bodyCollection':_0x297cf4}),this[_0x431be7(0x11a)][_0x431be7(0x122)](..._0x483a74)['to'](this),this[_0x431be7(0x11a)][_0x431be7(0x123)](_0x431be7(0x113))['to'](this),this[_0x431be7(0x12c)][_0x431be7(0x12b)](this[_0x431be7(0x11a)]),this[_0x431be7(0x12e)]({'tag':_0x431be7(0x11b),'attributes':{'class':['ck',_0x431be7(0x121),_0x431be7(0x130)]},'children':this[_0x431be7(0x12c)]});}async[_0x5bf9c4(0x126)](_0x27abfd){const _0xc6b674=_0x5bf9c4;await this[_0xc6b674(0x11a)][_0xc6b674(0x116)](_0x27abfd);}[_0x5bf9c4(0x131)](_0x5f425d){const _0x2db109=_0x5bf9c4;this[_0x2db109(0x11a)][_0x2db109(0x131)](_0x5f425d);}[_0x5bf9c4(0x11d)](){const _0x2cc664=_0x5bf9c4;this[_0x2cc664(0x11a)][_0x2cc664(0x11d)](),this[_0x2cc664(0x127)]&&(this[_0x2cc664(0x127)][_0x2cc664(0x12d)]=this[_0x2cc664(0x11a)][_0x2cc664(0x119)]);}}