@ckeditor/ckeditor5-ai 47.7.2-alpha.0 → 47.7.3-alpha.0

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
- const _0x559271=_0x40e0;function _0x40e0(_0x1c4abe,_0x2d7c2a){const _0x5da823=_0x5da8();return _0x40e0=function(_0x40e0d1,_0x3806cc){_0x40e0d1=_0x40e0d1-0xee;let _0xc9a482=_0x5da823[_0x40e0d1];return _0xc9a482;},_0x40e0(_0x1c4abe,_0x2d7c2a);}(function(_0x19defe,_0x31c992){const _0x3bd2c4=_0x40e0,_0x3b0ad5=_0x19defe();while(!![]){try{const _0x4aadc8=parseInt(_0x3bd2c4(0x138))/0x1+parseInt(_0x3bd2c4(0x13b))/0x2+-parseInt(_0x3bd2c4(0x132))/0x3+parseInt(_0x3bd2c4(0x104))/0x4*(parseInt(_0x3bd2c4(0x10c))/0x5)+-parseInt(_0x3bd2c4(0xef))/0x6*(parseInt(_0x3bd2c4(0xf1))/0x7)+parseInt(_0x3bd2c4(0xee))/0x8*(parseInt(_0x3bd2c4(0x10d))/0x9)+parseInt(_0x3bd2c4(0x100))/0xa;if(_0x4aadc8===_0x31c992)break;else _0x3b0ad5['push'](_0x3b0ad5['shift']());}catch(_0xdc70c2){_0x3b0ad5['push'](_0x3b0ad5['shift']());}}}(_0x5da8,0x5c87e));function _0x5da8(){const _0x40ebbe=['stopListening','sendRequest','forEach','sources','parse','reasoningStarted','2917660cbxpbg','done','notification','replyContentUpdated','240644rwzhSM','stop','fire','currentReply','error','_handleToolNotificationData','delegate','connector','5kcyGvX','9DnFthx','toolName','event','webSearchStarted','currentRequest','textDelta','getStream','attributes','interactionDestroyed','interactionFinished','appendContent','text','toolDataReceived','getReply','resetWebSearchState','_isWebSearching','_finalizeInteraction','isStopped','find','interactionStarted','destroy','result','content','editor','message-metadata','resetReasoningState','setConversationTitle','getDocumentContext','reasoningFinished','_handleToolResultData','modification-delta','actionCallId','replyChangeGroupStateUpdated','action-metadata','source','abortController','createReply','2007195KQqLeB','mcp-tool-result','_isReasoning','webSearchFinished','interactionStopped','length','137119GLcOvm','web-search','replyCreated','491764yXQqqy','callId','mcp-tool-notification','replies','modification','start','splice','isDestroyed','push','reasoning','5168040dUZkQE','1997172rgAFpo','interactionCreated','7QOwSsf','data','conversationTitle','messageId','conversation-title','type','abort','text-delta','ai-chat-interaction-error'];_0x5da8=function(){return _0x40ebbe;};return _0x5da8();}import{CKEditorError as _0x23f8d3,EmitterMixin as _0x11078f,uid as _0x7898ab}from'ckeditor5/src/utils.js';import{AIReply as _0x12133d}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x559271(0xf0),_0x559271(0x120),_0x559271(0x136),_0x559271(0x116),_0x559271(0x115),_0x559271(0x13a),_0x559271(0x103),_0x559271(0x12d),_0x559271(0x127),_0x559271(0x110),_0x559271(0x135),_0x559271(0xff),_0x559271(0x129),_0x559271(0x119),_0x559271(0x108)];export class AIInteraction extends _0x11078f(){['id'];[_0x559271(0x13e)]=[];[_0x559271(0x107)];[_0x559271(0xf4)];[_0x559271(0x12c)];[_0x559271(0x111)];[_0x559271(0x10b)];[_0x559271(0x11e)]=!0x1;[_0x559271(0x142)]=!0x1;[_0x559271(0x124)];[_0x559271(0x134)]=!0x1;[_0x559271(0x11c)]=!0x1;constructor({connector:_0x3fed9b,editor:_0x53cb5f}){const _0x27e0c8=_0x559271;super(),this['id']=_0x7898ab(),this[_0x27e0c8(0x10b)]=_0x3fed9b,this[_0x27e0c8(0x11e)]=!0x0,this[_0x27e0c8(0x124)]=_0x53cb5f;}async[_0x559271(0x140)](){const _0x236716=_0x559271,_0x42976e=[];let _0x232308,_0xf5835d,_0x3e48f2;this[_0x236716(0x11e)]=!0x1;try{this[_0x236716(0x111)]=await this[_0x236716(0xfb)](),this[_0x236716(0x106)](_0x236716(0x120),this);const _0x543565=await this[_0x236716(0x111)][_0x236716(0x113)]();for await(const _0x58ad41 of _0x543565){if(this[_0x236716(0x11e)])return;if(_0x236716(0x108)==_0x58ad41[_0x236716(0x10f)])return void this[_0x236716(0x106)](_0x236716(0x108),{'error':new _0x23f8d3(_0x236716(0xf9),this)});switch(_0x58ad41[_0x236716(0x10f)]){case _0x236716(0x125):this[_0x236716(0xf4)]=_0x58ad41[_0x236716(0xf2)][_0x236716(0xf4)];break;case _0x236716(0x12e):this[_0x236716(0x12c)]=_0x58ad41[_0x236716(0xf2)][_0x236716(0x13c)];break;case _0x236716(0xf5):this[_0x236716(0x127)](_0x58ad41[_0x236716(0xf2)][_0x236716(0xf3)],!0x0);break;case _0x236716(0x12f):_0x42976e[_0x236716(0x143)](_0x58ad41[_0x236716(0xf2)][_0x236716(0x12f)]);break;case _0x236716(0x139):this[_0x236716(0x11c)]||(this[_0x236716(0x11c)]=!0x0,this[_0x236716(0x106)](_0x236716(0x110),this));break;case _0x236716(0x144):this[_0x236716(0x134)]||(this[_0x236716(0x134)]=!0x0,this[_0x236716(0x106)](_0x236716(0xff),this));break;case _0x236716(0x12b):case _0x236716(0xf8):this[_0x236716(0x126)](),this[_0x236716(0x11b)](),_0x232308=_0x236716(0x12b)==_0x58ad41[_0x236716(0x10f)]?_0x236716(0x13f):_0x236716(0x118),_0xf5835d=_0x236716(0x12b)==_0x58ad41[_0x236716(0x10f)]?_0x58ad41[_0x236716(0xf2)]['id']:void 0x0,this[_0x236716(0x107)]&&this[_0x236716(0x107)][_0x236716(0xf6)]!=_0x232308&&(this[_0x236716(0x107)][_0x236716(0x101)](),this[_0x236716(0x107)]=void 0x0),this[_0x236716(0x107)]||(this[_0x236716(0x107)]=this[_0x236716(0x131)]({'type':_0x232308,'interactionId':this['id'],'id':_0xf5835d}),_0x236716(0x13f)==_0x232308&&(this[_0x236716(0x107)][_0x236716(0xfd)]=_0x42976e[_0x236716(0x141)](0x0))),this[_0x236716(0x107)][_0x236716(0x117)](_0x58ad41[_0x236716(0xf2)][_0x236716(0x112)]);break;case _0x236716(0x133):_0x3e48f2=JSON[_0x236716(0xfe)](_0x58ad41[_0x236716(0xf2)][_0x236716(0x122)]),this[_0x236716(0x12a)]({'toolName':_0x58ad41[_0x236716(0xf2)][_0x236716(0x10e)],'data':_0x3e48f2[_0x236716(0xf2)],'attributes':_0x3e48f2[_0x236716(0x114)]});break;case _0x236716(0x13d):this[_0x236716(0x109)]({'toolName':_0x58ad41[_0x236716(0xf2)][_0x236716(0x10e)],'data':_0x58ad41[_0x236716(0xf2)][_0x236716(0xf2)]});}}}finally{this[_0x236716(0x11e)]||(this[_0x236716(0x107)]&&_0x42976e[_0x236716(0x137)]>0x0&&(this[_0x236716(0x107)][_0x236716(0xfd)]=_0x42976e[_0x236716(0x141)](0x0)),this[_0x236716(0x11d)](),this[_0x236716(0x106)](_0x236716(0x116),this));}}[_0x559271(0x105)](){const _0x2b74bd=_0x559271;this[_0x2b74bd(0x11e)]||(this[_0x2b74bd(0x11d)](),this[_0x2b74bd(0x106)](_0x2b74bd(0x136),this));}[_0x559271(0x11a)](_0x21164e){const _0x29587a=_0x559271;return this[_0x29587a(0x13e)][_0x29587a(0x11f)](_0x5d1aeb=>_0x5d1aeb['id']===_0x21164e);}[_0x559271(0x121)](){const _0x29d133=_0x559271;this[_0x29d133(0x142)]||(this[_0x29d133(0x105)](),this[_0x29d133(0x13e)][_0x29d133(0xfc)](_0x3b3adb=>_0x3b3adb[_0x29d133(0x121)]()),this[_0x29d133(0x13e)]=[],this[_0x29d133(0x142)]=!0x0,this[_0x29d133(0x106)](_0x29d133(0x115),this),this[_0x29d133(0xfa)]());}[_0x559271(0x131)](_0x394912){const _0x4264e0=_0x559271,_0x413ad7=new _0x12133d({'editor':this[_0x4264e0(0x124)],'documentContextContent':this[_0x4264e0(0x128)]()?.[_0x4264e0(0x123)],..._0x394912});return this[_0x4264e0(0x13e)][_0x4264e0(0x143)](_0x413ad7),_0x413ad7[_0x4264e0(0x10a)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x4264e0(0x106)](_0x4264e0(0x13a),_0x413ad7),_0x413ad7;}[_0x559271(0x127)](_0x3c79be,_0x1d78fc=!0x1){const _0x2e27d0=_0x559271;this[_0x2e27d0(0x106)](_0x2e27d0(0x127),_0x3c79be,_0x1d78fc);}[_0x559271(0x11b)](){const _0x5578b8=_0x559271;this[_0x5578b8(0x11c)]&&(this[_0x5578b8(0x11c)]=!0x1,this[_0x5578b8(0x106)](_0x5578b8(0x135),this));}[_0x559271(0x126)](){const _0xfc89ac=_0x559271;this[_0xfc89ac(0x134)]&&(this[_0xfc89ac(0x134)]=!0x1,this[_0xfc89ac(0x106)](_0xfc89ac(0x129),this));}[_0x559271(0x12a)](_0x49efc3){const _0x5ce4ec=_0x559271;this[_0x5ce4ec(0x106)](_0x5ce4ec(0x119),{'type':_0x5ce4ec(0x122),'toolName':_0x49efc3[_0x5ce4ec(0x10e)],'data':structuredClone(_0x49efc3[_0x5ce4ec(0xf2)]||{}),'attributes':structuredClone(_0x49efc3[_0x5ce4ec(0x114)]||{})},this);}[_0x559271(0x109)](_0xd4bc6){const _0x29bf94=_0x559271;this[_0x29bf94(0x106)](_0x29bf94(0x119),{'type':_0x29bf94(0x102),'toolName':_0xd4bc6[_0x29bf94(0x10e)],'data':structuredClone(_0xd4bc6[_0x29bf94(0xf2)])},this);}[_0x559271(0x11d)](){const _0x2c7796=_0x559271;this[_0x2c7796(0x11e)]=!0x0,this[_0x2c7796(0x111)]&&this[_0x2c7796(0x111)][_0x2c7796(0x130)][_0x2c7796(0xf7)](),this[_0x2c7796(0x107)]&&this[_0x2c7796(0x107)][_0x2c7796(0x101)](),this[_0x2c7796(0x111)]=this[_0x2c7796(0x107)]=void 0x0;}}
23
+ const _0x518241=_0x5d74;function _0x5d74(_0x569abc,_0x16b16f){const _0x76ee3c=_0x76ee();return _0x5d74=function(_0x5d74ea,_0x235e1a){_0x5d74ea=_0x5d74ea-0x1db;let _0xfd9b2b=_0x76ee3c[_0x5d74ea];return _0xfd9b2b;},_0x5d74(_0x569abc,_0x16b16f);}(function(_0x51bf6a,_0x5a9e64){const _0x5a2446=_0x5d74,_0x3784a3=_0x51bf6a();while(!![]){try{const _0x540c88=parseInt(_0x5a2446(0x1e5))/0x1*(-parseInt(_0x5a2446(0x217))/0x2)+-parseInt(_0x5a2446(0x208))/0x3*(parseInt(_0x5a2446(0x224))/0x4)+parseInt(_0x5a2446(0x215))/0x5+-parseInt(_0x5a2446(0x1fb))/0x6+-parseInt(_0x5a2446(0x221))/0x7+parseInt(_0x5a2446(0x218))/0x8*(-parseInt(_0x5a2446(0x203))/0x9)+parseInt(_0x5a2446(0x1fc))/0xa*(parseInt(_0x5a2446(0x225))/0xb);if(_0x540c88===_0x5a9e64)break;else _0x3784a3['push'](_0x3784a3['shift']());}catch(_0x36c566){_0x3784a3['push'](_0x3784a3['shift']());}}}(_0x76ee,0xafc13));function _0x76ee(){const _0x37c72e=['ai-chat-interaction-error','messageId','toolDataReceived','push','interactionCreated','modification','replyContentUpdated','mcp-tool-notification','action-metadata','replies','resetReasoningState','actionCallId','2725215PAAoOS','fire','2BEIKBD','9374024krprcx','getDocumentContext','interactionFinished','currentReply','reasoningFinished','conversationTitle','data','interactionDestroyed','interactionStopped','2512055bxHKIJ','toolName','message-metadata','248KtHVNj','33919413lpfKGz','getStream','_isWebSearching','reasoningStarted','abort','start','currentRequest','mcp-tool-result','connector','modification-delta','isStopped','stopListening','find','error','editor','replyCreated','web-search','webSearchStarted','attributes','notification','destroy','length','sources','reasoning','91007cWFVIU','parse','text','event','webSearchFinished','done','createReply','_handleToolResultData','abortController','resetWebSearchState','setConversationTitle','_handleToolNotificationData','source','getReply','_isReasoning','replyChangeGroupStateUpdated','type','interactionStarted','splice','textDelta','_finalizeInteraction','content','209004txOyth','10QEXmTS','stop','callId','text-delta','isDestroyed','appendContent','delegate','9pkyEem','forEach','result','sendRequest','conversation-title','60594BkHLZc'];_0x76ee=function(){return _0x37c72e;};return _0x76ee();}import{CKEditorError as _0x12d68a,EmitterMixin as _0x28100d,uid as _0x24e4b5}from'ckeditor5/src/utils.js';import{AIReply as _0x57a8bc}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x518241(0x20d),_0x518241(0x1f6),_0x518241(0x220),_0x518241(0x21a),_0x518241(0x21f),_0x518241(0x1dc),_0x518241(0x20f),_0x518241(0x1f4),_0x518241(0x1ef),_0x518241(0x1de),_0x518241(0x1e9),_0x518241(0x228),_0x518241(0x21c),_0x518241(0x20b),_0x518241(0x232)];export class AIInteraction extends _0x28100d(){['id'];[_0x518241(0x212)]=[];[_0x518241(0x21b)];[_0x518241(0x20a)];[_0x518241(0x214)];[_0x518241(0x22b)];[_0x518241(0x22d)];[_0x518241(0x22f)]=!0x1;[_0x518241(0x200)]=!0x1;[_0x518241(0x1db)];[_0x518241(0x1f3)]=!0x1;[_0x518241(0x227)]=!0x1;constructor({connector:_0x59d421,editor:_0x2e5440}){const _0x3337cb=_0x518241;super(),this['id']=_0x24e4b5(),this[_0x3337cb(0x22d)]=_0x59d421,this[_0x3337cb(0x22f)]=!0x0,this[_0x3337cb(0x1db)]=_0x2e5440;}async[_0x518241(0x22a)](){const _0x4bbf66=_0x518241,_0x253158=[];let _0x948757,_0x22e00c,_0x2d1ba0;this[_0x4bbf66(0x22f)]=!0x1;try{this[_0x4bbf66(0x22b)]=await this[_0x4bbf66(0x206)](),this[_0x4bbf66(0x216)](_0x4bbf66(0x1f6),this);const _0x14630d=await this[_0x4bbf66(0x22b)][_0x4bbf66(0x226)]();for await(const _0x390807 of _0x14630d){if(this[_0x4bbf66(0x22f)])return;if(_0x4bbf66(0x232)==_0x390807[_0x4bbf66(0x1e8)])return void this[_0x4bbf66(0x216)](_0x4bbf66(0x232),{'error':new _0x12d68a(_0x4bbf66(0x209),this)});switch(_0x390807[_0x4bbf66(0x1e8)]){case _0x4bbf66(0x223):this[_0x4bbf66(0x20a)]=_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x20a)];break;case _0x4bbf66(0x211):this[_0x4bbf66(0x214)]=_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1fe)];break;case _0x4bbf66(0x207):this[_0x4bbf66(0x1ef)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x21d)],!0x0);break;case _0x4bbf66(0x1f1):_0x253158[_0x4bbf66(0x20c)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1f1)]);break;case _0x4bbf66(0x1dd):this[_0x4bbf66(0x227)]||(this[_0x4bbf66(0x227)]=!0x0,this[_0x4bbf66(0x216)](_0x4bbf66(0x1de),this));break;case _0x4bbf66(0x1e4):this[_0x4bbf66(0x1f3)]||(this[_0x4bbf66(0x1f3)]=!0x0,this[_0x4bbf66(0x216)](_0x4bbf66(0x228),this));break;case _0x4bbf66(0x22e):case _0x4bbf66(0x1ff):this[_0x4bbf66(0x213)](),this[_0x4bbf66(0x1ee)](),_0x948757=_0x4bbf66(0x22e)==_0x390807[_0x4bbf66(0x1e8)]?_0x4bbf66(0x20e):_0x4bbf66(0x1e7),_0x22e00c=_0x4bbf66(0x22e)==_0x390807[_0x4bbf66(0x1e8)]?_0x390807[_0x4bbf66(0x21e)]['id']:void 0x0,this[_0x4bbf66(0x21b)]&&this[_0x4bbf66(0x21b)][_0x4bbf66(0x1f5)]!=_0x948757&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1ea)](),this[_0x4bbf66(0x21b)]=void 0x0),this[_0x4bbf66(0x21b)]||(this[_0x4bbf66(0x21b)]=this[_0x4bbf66(0x1eb)]({'type':_0x948757,'interactionId':this['id'],'id':_0x22e00c}),_0x4bbf66(0x20e)==_0x948757&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1e3)]=_0x253158[_0x4bbf66(0x1f7)](0x0))),this[_0x4bbf66(0x21b)][_0x4bbf66(0x201)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1f8)]);break;case _0x4bbf66(0x22c):_0x2d1ba0=JSON[_0x4bbf66(0x1e6)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x205)]),this[_0x4bbf66(0x1ec)]({'toolName':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x222)],'data':_0x2d1ba0[_0x4bbf66(0x21e)],'attributes':_0x2d1ba0[_0x4bbf66(0x1df)]});break;case _0x4bbf66(0x210):this[_0x4bbf66(0x1f0)]({'toolName':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x222)],'data':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x21e)]});}}}finally{this[_0x4bbf66(0x22f)]||(this[_0x4bbf66(0x21b)]&&_0x253158[_0x4bbf66(0x1e2)]>0x0&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1e3)]=_0x253158[_0x4bbf66(0x1f7)](0x0)),this[_0x4bbf66(0x1f9)](),this[_0x4bbf66(0x216)](_0x4bbf66(0x21a),this));}}[_0x518241(0x1fd)](){const _0x44ad1f=_0x518241;this[_0x44ad1f(0x22f)]||(this[_0x44ad1f(0x1f9)](),this[_0x44ad1f(0x216)](_0x44ad1f(0x220),this));}[_0x518241(0x1f2)](_0x57a7af){const _0x5d6c77=_0x518241;return this[_0x5d6c77(0x212)][_0x5d6c77(0x231)](_0x4e01c0=>_0x4e01c0['id']===_0x57a7af);}[_0x518241(0x1e1)](){const _0x1c31b9=_0x518241;this[_0x1c31b9(0x200)]||(this[_0x1c31b9(0x1fd)](),this[_0x1c31b9(0x212)][_0x1c31b9(0x204)](_0x4d3541=>_0x4d3541[_0x1c31b9(0x1e1)]()),this[_0x1c31b9(0x212)]=[],this[_0x1c31b9(0x200)]=!0x0,this[_0x1c31b9(0x216)](_0x1c31b9(0x21f),this),this[_0x1c31b9(0x230)]());}[_0x518241(0x1eb)](_0xe93452){const _0x5b862e=_0x518241,_0x57292f=new _0x57a8bc({'editor':this[_0x5b862e(0x1db)],'documentContextContent':this[_0x5b862e(0x219)]()?.[_0x5b862e(0x1fa)],..._0xe93452});return this[_0x5b862e(0x212)][_0x5b862e(0x20c)](_0x57292f),_0x57292f[_0x5b862e(0x202)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5b862e(0x216)](_0x5b862e(0x1dc),_0x57292f),_0x57292f;}[_0x518241(0x1ef)](_0x27df6e,_0x6a5022=!0x1){const _0x12f056=_0x518241;this[_0x12f056(0x216)](_0x12f056(0x1ef),_0x27df6e,_0x6a5022);}[_0x518241(0x1ee)](){const _0x3a5a56=_0x518241;this[_0x3a5a56(0x227)]&&(this[_0x3a5a56(0x227)]=!0x1,this[_0x3a5a56(0x216)](_0x3a5a56(0x1e9),this));}[_0x518241(0x213)](){const _0x5e4527=_0x518241;this[_0x5e4527(0x1f3)]&&(this[_0x5e4527(0x1f3)]=!0x1,this[_0x5e4527(0x216)](_0x5e4527(0x21c),this));}[_0x518241(0x1ec)](_0x534ae0){const _0x127778=_0x518241;this[_0x127778(0x216)](_0x127778(0x20b),{'type':_0x127778(0x205),'toolName':_0x534ae0[_0x127778(0x222)],'data':structuredClone(_0x534ae0[_0x127778(0x21e)]||{}),'attributes':structuredClone(_0x534ae0[_0x127778(0x1df)]||{})},this);}[_0x518241(0x1f0)](_0x1b312c){const _0x4c6aff=_0x518241;this[_0x4c6aff(0x216)](_0x4c6aff(0x20b),{'type':_0x4c6aff(0x1e0),'toolName':_0x1b312c[_0x4c6aff(0x222)],'data':structuredClone(_0x1b312c[_0x4c6aff(0x21e)])},this);}[_0x518241(0x1f9)](){const _0x1fe623=_0x518241;this[_0x1fe623(0x22f)]=!0x0,this[_0x1fe623(0x22b)]&&this[_0x1fe623(0x22b)][_0x1fe623(0x1ed)][_0x1fe623(0x229)](),this[_0x1fe623(0x21b)]&&this[_0x1fe623(0x21b)][_0x1fe623(0x1ea)](),this[_0x1fe623(0x22b)]=this[_0x1fe623(0x21b)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b1d0b=_0x2c1c;(function(_0x5ae886,_0x363e13){const _0x4ff1b2=_0x2c1c,_0x47bcd8=_0x5ae886();while(!![]){try{const _0x527a54=-parseInt(_0x4ff1b2(0x156))/0x1*(-parseInt(_0x4ff1b2(0x12a))/0x2)+-parseInt(_0x4ff1b2(0x13e))/0x3+parseInt(_0x4ff1b2(0x149))/0x4+-parseInt(_0x4ff1b2(0x152))/0x5*(parseInt(_0x4ff1b2(0x13a))/0x6)+parseInt(_0x4ff1b2(0x147))/0x7*(parseInt(_0x4ff1b2(0x145))/0x8)+-parseInt(_0x4ff1b2(0x135))/0x9+parseInt(_0x4ff1b2(0x157))/0xa;if(_0x527a54===_0x363e13)break;else _0x47bcd8['push'](_0x47bcd8['shift']());}catch(_0x4c42f1){_0x47bcd8['push'](_0x47bcd8['shift']());}}}(_0x3810,0x5b788));function _0x3810(){const _0x1e8c25=['_connector','uiLanguage','filter','push','add','displayedModels','ai-chat-default-model-id-unrecognized','name','5861475LkEFzN','_locale','_modelsRequest','agent','items','138RzeHwu','_availableModels','_isMatchingFilter','getDefault','871524lZBjaj','AI_MODEL_NAME_AUTO','provider','auto','_getModelById','string','map','12424dlhQzl','startsWith','1827lzKuMJ','toLocaleLowerCase','601784NGZGHa','some','defaultModelId','_retrieveModels','ai-chat-model-id-unrecognized','isAvailable','_filterModels','getAll','recommended','87990ZrXmKC','has','getAvailableModels','getModel','971Ttacgn','4789250exUgGZ','_modelList','ai-models-unable-to-retrieve','_config','length','find','list','1414eNFyQv','getModels','_defaultModelId'];_0x3810=function(){return _0x1e8c25;};return _0x3810();}import{EmitterMixin as _0x591cb8,logWarning as _0x41d758,logError as _0x46a738}from'ckeditor5/src/utils.js';import{getTranslation as _0x5a1fec}from'../utils/common-translations.js';function _0x2c1c(_0x29d6ef,_0x4427c6){const _0x381086=_0x3810();return _0x2c1c=function(_0x2c1c73,_0x487852){_0x2c1c73=_0x2c1c73-0x128;let _0x4df168=_0x381086[_0x2c1c73];return _0x4df168;},_0x2c1c(_0x29d6ef,_0x4427c6);}export class AIModels extends _0x591cb8(){[_0x2b1d0b(0x12d)];[_0x2b1d0b(0x15a)];[_0x2b1d0b(0x136)];[_0x2b1d0b(0x158)]=[];[_0x2b1d0b(0x137)]=null;constructor({connector:_0x115425,config:_0x25f24a,locale:_0xcb6c40}){const _0x530f00=_0x2b1d0b;super(),this[_0x530f00(0x12d)]=_0x115425,this[_0x530f00(0x15a)]=_0x25f24a,this[_0x530f00(0x136)]=_0xcb6c40;}get[_0x2b1d0b(0x13b)](){const _0x558210=_0x2b1d0b;return this[_0x558210(0x15a)]?.[_0x558210(0x132)];}get[_0x2b1d0b(0x12c)](){const _0x5ddcb1=_0x2b1d0b;return this[_0x5ddcb1(0x15a)]?.[_0x5ddcb1(0x14b)];}async[_0x2b1d0b(0x150)](){const _0x52744f=_0x2b1d0b;return this[_0x52744f(0x137)]||(this[_0x52744f(0x137)]=this[_0x52744f(0x14c)]()),this[_0x52744f(0x137)];}async[_0x2b1d0b(0x154)](){const _0xac4c4c=_0x2b1d0b,_0x332367=await this[_0xac4c4c(0x150)]();let _0x1183cb;return _0x1183cb=this[_0xac4c4c(0x13b)]?this[_0xac4c4c(0x14f)](_0x332367,this[_0xac4c4c(0x13b)]):_0x332367[_0xac4c4c(0x12f)](_0x2ac327=>_0x2ac327[_0xac4c4c(0x151)]),_0x1183cb;}async[_0x2b1d0b(0x155)](_0x277aa8){const _0x20118e=_0x2b1d0b,_0x39ef0e=await this[_0x20118e(0x150)]();if(!_0x39ef0e[_0x20118e(0x15b)])return null;if(_0x277aa8){const _0x938e8b=this[_0x20118e(0x142)](_0x39ef0e,_0x277aa8);if(_0x938e8b)return _0x938e8b;_0x41d758(_0x20118e(0x14d),{'modelId':_0x277aa8,'fallBackModelId':this[_0x20118e(0x12c)]});}return this[_0x20118e(0x13d)]();}async[_0x2b1d0b(0x13d)](){const _0x2fd8f1=_0x2b1d0b,_0x3cf019=await this[_0x2fd8f1(0x154)]();if(!_0x3cf019[_0x2fd8f1(0x15b)])return null;if(this[_0x2fd8f1(0x12c)]){const _0x1c388a=this[_0x2fd8f1(0x142)](_0x3cf019,this[_0x2fd8f1(0x12c)]);if(_0x1c388a)return _0x1c388a;_0x41d758(_0x2fd8f1(0x133),{'defaultModelId':this[_0x2fd8f1(0x12c)],'fallBackModelId':_0x3cf019[0x0]['id']});}return _0x3cf019[0x0];}async[_0x2b1d0b(0x14e)](_0x1ae1e9){const _0x18adf9=_0x2b1d0b;return(await this[_0x18adf9(0x154)]())[_0x18adf9(0x14a)](_0x105908=>_0x105908[_0x18adf9(0x134)]===_0x1ae1e9[_0x18adf9(0x134)]&&_0x105908[_0x18adf9(0x140)]===_0x1ae1e9[_0x18adf9(0x140)]);}async[_0x2b1d0b(0x14c)](){const _0x5a0c6f=_0x2b1d0b;if(!this[_0x5a0c6f(0x158)][_0x5a0c6f(0x15b)])try{const _0x1362f0=this[_0x5a0c6f(0x136)][_0x5a0c6f(0x12e)]||'en',_0x2fd556=this[_0x5a0c6f(0x12d)][_0x5a0c6f(0x12b)](_0x1362f0),_0x2cdf57=await _0x2fd556[_0x5a0c6f(0x129)]();this[_0x5a0c6f(0x158)]=_0x2cdf57[_0x5a0c6f(0x139)][_0x5a0c6f(0x144)](_0x5a7e37=>Ui(_0x5a7e37)?{..._0x5a7e37,'name':_0x5a1fec(this[_0x5a0c6f(0x136)],_0x5a0c6f(0x13f))}:_0x5a7e37);}catch(_0x5c3cd5){throw _0x46a738(_0x5a0c6f(0x159),{'error':_0x5c3cd5}),_0x5c3cd5;}return[...this[_0x5a0c6f(0x158)]];}[_0x2b1d0b(0x14f)](_0x491281,_0x4debc5){const _0x2ff5d7=_0x2b1d0b;let _0x494885;if(_0x4debc5){_0x494885=[];const _0x1d14f5=new Set(),_0x4c25a4=_0x2ff5d7(0x143)==typeof _0x4debc5?[_0x4debc5[_0x2ff5d7(0x148)]()]:_0x4debc5[_0x2ff5d7(0x144)](_0x49d8ce=>_0x49d8ce[_0x2ff5d7(0x148)]());for(const _0x58ef94 of _0x4c25a4)for(const _0x455e88 of _0x491281)!_0x1d14f5[_0x2ff5d7(0x153)](_0x455e88['id'])&&this[_0x2ff5d7(0x13c)](_0x455e88,_0x58ef94)&&(_0x494885[_0x2ff5d7(0x130)](_0x455e88),_0x1d14f5[_0x2ff5d7(0x131)](_0x455e88['id']));}else _0x494885=_0x491281;return _0x494885;}[_0x2b1d0b(0x13c)](_0x46bc65,_0x32b7d3){const _0x50b2b2=_0x2b1d0b,_0x20d8d0=_0x46bc65['id'][_0x50b2b2(0x148)](),_0xae9d0e=_0x46bc65[_0x50b2b2(0x134)][_0x50b2b2(0x148)](),_0x14b057=_0x46bc65[_0x50b2b2(0x140)][_0x50b2b2(0x148)]();return _0x20d8d0===_0x32b7d3||_0xae9d0e===_0x32b7d3||Ui(_0x46bc65)&&_0x50b2b2(0x141)===_0x32b7d3||_0x14b057===_0x32b7d3||_0x20d8d0[_0x50b2b2(0x146)](_0x32b7d3);}[_0x2b1d0b(0x142)](_0x4d4f9a,_0x2d8f67){const _0x1e6673=_0x2b1d0b;return _0x4d4f9a[_0x1e6673(0x128)](_0x157051=>Ui(_0x157051)&&_0x1e6673(0x141)===_0x2d8f67?_0x157051:_0x157051['id']===_0x2d8f67)||null;}}function Ui(_0x110a40){const _0x1cf7f6=_0x2b1d0b;return _0x110a40['id'][_0x1cf7f6(0x146)](_0x1cf7f6(0x138));}
23
+ const _0x4eeed0=_0x5d78;(function(_0x2e6185,_0x8d9fcc){const _0x415ae8=_0x5d78,_0x489887=_0x2e6185();while(!![]){try{const _0x798bed=parseInt(_0x415ae8(0xc7))/0x1*(parseInt(_0x415ae8(0xd2))/0x2)+-parseInt(_0x415ae8(0xec))/0x3+-parseInt(_0x415ae8(0xdd))/0x4*(parseInt(_0x415ae8(0xc9))/0x5)+parseInt(_0x415ae8(0xce))/0x6*(parseInt(_0x415ae8(0xcf))/0x7)+-parseInt(_0x415ae8(0xe5))/0x8+-parseInt(_0x415ae8(0xc6))/0x9+parseInt(_0x415ae8(0xe2))/0xa*(parseInt(_0x415ae8(0xd1))/0xb);if(_0x798bed===_0x8d9fcc)break;else _0x489887['push'](_0x489887['shift']());}catch(_0x4d587d){_0x489887['push'](_0x489887['shift']());}}}(_0x1ea6,0x735b6));import{EmitterMixin as _0x1a0fad,logWarning as _0x25c552,logError as _0x324518}from'ckeditor5/src/utils.js';function _0x5d78(_0x2e6ad7,_0x497fac){const _0x1ea693=_0x1ea6();return _0x5d78=function(_0x5d7840,_0x13def7){_0x5d7840=_0x5d7840-0xbb;let _0x4a481d=_0x1ea693[_0x5d7840];return _0x4a481d;},_0x5d78(_0x2e6ad7,_0x497fac);}import{getTranslation as _0xdde8ff}from'../utils/common-translations.js';export class AIModels extends _0x1a0fad(){[_0x4eeed0(0xef)];[_0x4eeed0(0xc3)];[_0x4eeed0(0xd8)];[_0x4eeed0(0xbb)]=[];[_0x4eeed0(0xe9)]=null;constructor({connector:_0xbe3591,config:_0x3fdc88,locale:_0x56fd50}){const _0x22bd1b=_0x4eeed0;super(),this[_0x22bd1b(0xef)]=_0xbe3591,this[_0x22bd1b(0xc3)]=_0x3fdc88,this[_0x22bd1b(0xd8)]=_0x56fd50;}get[_0x4eeed0(0xc0)](){const _0x5750fe=_0x4eeed0;return this[_0x5750fe(0xc3)]?.[_0x5750fe(0xd6)];}get[_0x4eeed0(0xed)](){const _0x2a1daf=_0x4eeed0;return this[_0x2a1daf(0xc3)]?.[_0x2a1daf(0xe7)];}async[_0x4eeed0(0xcc)](){const _0x2347ab=_0x4eeed0;return this[_0x2347ab(0xe9)]||(this[_0x2347ab(0xe9)]=this[_0x2347ab(0xc1)]()),this[_0x2347ab(0xe9)];}async[_0x4eeed0(0xee)](){const _0x24bf23=_0x4eeed0,_0xf74d0a=await this[_0x24bf23(0xcc)]();let _0x3850e0;return _0x3850e0=this[_0x24bf23(0xc0)]?this[_0x24bf23(0xe0)](_0xf74d0a,this[_0x24bf23(0xc0)]):_0xf74d0a[_0x24bf23(0xe6)](_0x7417d2=>_0x7417d2[_0x24bf23(0xd4)]),_0x3850e0;}async[_0x4eeed0(0xc2)](_0x36075f){const _0x36e99d=_0x4eeed0,_0x410dc8=await this[_0x36e99d(0xcc)]();if(!_0x410dc8[_0x36e99d(0xca)])return null;if(_0x36075f){const _0x39d82c=this[_0x36e99d(0xbf)](_0x410dc8,_0x36075f);if(_0x39d82c)return _0x39d82c;_0x25c552(_0x36e99d(0xe4),{'modelId':_0x36075f,'fallBackModelId':this[_0x36e99d(0xed)]});}return this[_0x36e99d(0xbe)]();}async[_0x4eeed0(0xbe)](){const _0xf0c4ee=_0x4eeed0,_0x47df07=await this[_0xf0c4ee(0xee)]();if(!_0x47df07[_0xf0c4ee(0xca)])return null;if(this[_0xf0c4ee(0xed)]){const _0x78e8a7=this[_0xf0c4ee(0xbf)](_0x47df07,this[_0xf0c4ee(0xed)]);if(_0x78e8a7)return _0x78e8a7;_0x25c552(_0xf0c4ee(0xde),{'defaultModelId':this[_0xf0c4ee(0xed)],'fallBackModelId':_0x47df07[0x0]['id']});}return _0x47df07[0x0];}async[_0x4eeed0(0xe3)](_0x5cb8d4){const _0x14503e=_0x4eeed0;return(await this[_0x14503e(0xee)]())[_0x14503e(0xd3)](_0x52368a=>_0x52368a[_0x14503e(0xbc)]===_0x5cb8d4[_0x14503e(0xbc)]&&_0x52368a[_0x14503e(0xe8)]===_0x5cb8d4[_0x14503e(0xe8)]);}async[_0x4eeed0(0xc1)](){const _0xd8a65b=_0x4eeed0;if(!this[_0xd8a65b(0xbb)][_0xd8a65b(0xca)])try{const _0x5eb086=this[_0xd8a65b(0xd8)][_0xd8a65b(0xdc)]||'en',_0x24fbb3=this[_0xd8a65b(0xef)][_0xd8a65b(0xdf)](_0x5eb086),_0x86d1a6=await _0x24fbb3[_0xd8a65b(0xc8)]();this[_0xd8a65b(0xbb)]=_0x86d1a6[_0xd8a65b(0xcb)][_0xd8a65b(0xda)](_0xe1ea9f=>qi(_0xe1ea9f)?{..._0xe1ea9f,'name':_0xdde8ff(this[_0xd8a65b(0xd8)],_0xd8a65b(0xcd))}:_0xe1ea9f);}catch(_0x3c59ad){throw _0x324518(_0xd8a65b(0xdb),{'error':_0x3c59ad}),_0x3c59ad;}return[...this[_0xd8a65b(0xbb)]];}[_0x4eeed0(0xe0)](_0x19113e,_0x2fac6b){const _0x2b1318=_0x4eeed0;let _0xc8d44c;if(_0x2fac6b){_0xc8d44c=[];const _0x5d2aa7=new Set(),_0x530aaa=_0x2b1318(0xd7)==typeof _0x2fac6b?[_0x2fac6b[_0x2b1318(0xea)]()]:_0x2fac6b[_0x2b1318(0xda)](_0x5d408f=>_0x5d408f[_0x2b1318(0xea)]());for(const _0x541098 of _0x530aaa)for(const _0x86ec90 of _0x19113e)!_0x5d2aa7[_0x2b1318(0xd0)](_0x86ec90['id'])&&this[_0x2b1318(0xc4)](_0x86ec90,_0x541098)&&(_0xc8d44c[_0x2b1318(0xbd)](_0x86ec90),_0x5d2aa7[_0x2b1318(0xeb)](_0x86ec90['id']));}else _0xc8d44c=_0x19113e;return _0xc8d44c;}[_0x4eeed0(0xc4)](_0xe30c0d,_0x1c2437){const _0xd7439b=_0x4eeed0,_0x2fa9e9=_0xe30c0d['id'][_0xd7439b(0xea)](),_0x5f49e1=_0xe30c0d[_0xd7439b(0xbc)][_0xd7439b(0xea)](),_0x49f724=_0xe30c0d[_0xd7439b(0xe8)][_0xd7439b(0xea)]();return _0x2fa9e9===_0x1c2437||_0x5f49e1===_0x1c2437||qi(_0xe30c0d)&&_0xd7439b(0xe1)===_0x1c2437||_0x49f724===_0x1c2437||_0x2fa9e9[_0xd7439b(0xd9)](_0x1c2437);}[_0x4eeed0(0xbf)](_0x47c227,_0x10a911){const _0x40a4c3=_0x4eeed0;return _0x47c227[_0x40a4c3(0xd5)](_0x24f753=>qi(_0x24f753)&&_0x40a4c3(0xe1)===_0x10a911?_0x24f753:_0x24f753['id']===_0x10a911)||null;}}function _0x1ea6(){const _0x8dad27=['push','getDefault','_getModelById','_availableModels','_retrieveModels','getModel','_config','_isMatchingFilter','agent','3368205wSBiZW','6898yPWTcY','list','10aNTaYm','length','items','getAll','AI_MODEL_NAME_AUTO','873870BmcVLi','35lUiBVy','has','15747545FwFlEq','158kHXBIR','some','recommended','find','displayedModels','string','_locale','startsWith','map','ai-models-unable-to-retrieve','uiLanguage','455276TRJFiZ','ai-chat-default-model-id-unrecognized','getModels','_filterModels','auto','10iWBofA','isAvailable','ai-chat-model-id-unrecognized','6470048tuXLzX','filter','defaultModelId','provider','_modelsRequest','toLocaleLowerCase','add','2464863WdrlnL','_defaultModelId','getAvailableModels','_connector','_modelList','name'];_0x1ea6=function(){return _0x8dad27;};return _0x1ea6();}function qi(_0x42ee43){const _0x3fdf40=_0x4eeed0;return _0x42ee43['id'][_0x3fdf40(0xd9)](_0x3fdf40(0xc5));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2d47(_0x5f2bc6,_0x33b901){const _0x3f3ddd=_0x3f3d();return _0x2d47=function(_0x2d4743,_0x10a087){_0x2d4743=_0x2d4743-0x1a2;let _0x333482=_0x3f3ddd[_0x2d4743];return _0x333482;},_0x2d47(_0x5f2bc6,_0x33b901);}const _0x59422e=_0x2d47;(function(_0x548696,_0xe3007e){const _0x55dd2c=_0x2d47,_0x237f0d=_0x548696();while(!![]){try{const _0x4d9e75=-parseInt(_0x55dd2c(0x1de))/0x1+parseInt(_0x55dd2c(0x1a8))/0x2*(-parseInt(_0x55dd2c(0x1c2))/0x3)+-parseInt(_0x55dd2c(0x1ed))/0x4*(-parseInt(_0x55dd2c(0x1cc))/0x5)+parseInt(_0x55dd2c(0x1dc))/0x6+parseInt(_0x55dd2c(0x1d1))/0x7+parseInt(_0x55dd2c(0x1a6))/0x8*(parseInt(_0x55dd2c(0x1e2))/0x9)+-parseInt(_0x55dd2c(0x1af))/0xa;if(_0x4d9e75===_0xe3007e)break;else _0x237f0d['push'](_0x237f0d['shift']());}catch(_0x111d5e){_0x237f0d['push'](_0x237f0d['shift']());}}}(_0x3f3d,0xe2c3a));import{CKEditorError as _0x190c2e,ObservableMixin as _0x4e5261,uid as _0x99e2cc}from'ckeditor5/src/utils.js';import{Element as _0x331346,findAll as _0x2aa685,getAttribute as _0x5a4022,getParents as _0x499931,Document as _0x53192d,parse as _0x242cb8,Text as _0x52597b}from'../utils/htmlparser.js';import{AIResponseParser as _0x5b4498}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x4d450e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x12e5c2}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xfe314b}from'../utils/common-translations.js';import{cloneDeep as _0x1ed073}from'es-toolkit';function _0x3f3d(){const _0x1724d8=['aiResponseApplier','_getDifferentChangeGroups','context','updateChangeGroups','merge','locale','parsedContent','5680836VJWpns','getContentParts','57994WncJiz','ai-reply-get-content-parts-group-not-found','convertMarkdownToHTML','areActionsDisabled','265221jllAlp','indexOf','_getCachedContentParts','onContentChange','AI_SUGGESTION_CONTENT_PART_REMOVED','modifiedNodeIds','aiResponseParser','map','filter','change:content','replyChangeGroupStateUpdated','292DOfOzj','nextSibling','cachedSuggestionContentParts','previousSibling','modified','parseAndNormalizeHTML','splice','parsedMergedContent','color:\x20#808080;\x20font-style:\x20italic','320kUPWTV','destroy','282QAtQxp','includes','index','newNodeIds','withoutDiff','fire','state','24001400goIqOm','span','replyContentUpdated','data-unstable','documentContextContent','modification','removed','find','length','cloneNode','type','sources','changeGroups','changes','every','stopListening','_setCachedContentParts','unshift','pending','5517hALcLm','appendContent','removedNodeIds','content','push','set','ai-get-editor-from-context-no-editor','withDiff','editor','interactionId','81295gnoDYG','done','forEach','data-id','setChangeGroupState','2336502LmHczx','isDone','new','node'];_0x3f3d=function(){return _0x1724d8;};return _0x3f3d();}export class AIReply extends _0x4e5261(){['id'];[_0x59422e(0x1cb)];[_0x59422e(0x1b9)];[_0x59422e(0x1ba)]=[];[_0x59422e(0x1db)]=new _0x53192d([]);[_0x59422e(0x1a4)]=new _0x53192d([]);[_0x59422e(0x1bb)]=[];[_0x59422e(0x1e1)]=!0x1;[_0x59422e(0x1b3)];[_0x59422e(0x1e8)];[_0x59422e(0x1d5)];[_0x59422e(0x1ca)];[_0x59422e(0x1ef)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x43b8d7,content:_0x5db910='',isDone:_0xe0c946=!0x1,interactionId:_0xf20aab,areActionsDisabled:_0x25e786,documentContextContent:_0x2c1cae,editor:_0x443951,id:_0x57e24b}){const _0x7cd082=_0x59422e;super(),this['id']=_0x57e24b||_0x99e2cc(),this[_0x7cd082(0x1cb)]=_0xf20aab,this[_0x7cd082(0x1b9)]=_0x43b8d7,this[_0x7cd082(0x1e1)]=!!_0x25e786,this[_0x7cd082(0x1ca)]=_0x443951,this[_0x7cd082(0x1e8)]=new _0x5b4498(),this[_0x7cd082(0x1d5)]=new _0x4d450e(),this[_0x7cd082(0x1b3)]=_0x242cb8(_0x2c1cae||''),this[_0x7cd082(0x1c7)](_0x7cd082(0x1d2),_0xe0c946),this['on'](_0x7cd082(0x1eb),()=>{const _0x3e89b3=_0x7cd082;this[_0x3e89b3(0x1e5)]();}),this[_0x7cd082(0x1c7)](_0x7cd082(0x1c5),_0x5db910);}[_0x59422e(0x1c3)](_0x28291c){const _0x2d7fc0=_0x59422e;this[_0x2d7fc0(0x1c7)](_0x2d7fc0(0x1c5),this[_0x2d7fc0(0x1c5)]+_0x28291c);}[_0x59422e(0x1cd)](){const _0x356a36=_0x59422e;this[_0x356a36(0x1d2)]||(this[_0x356a36(0x1c7)](_0x356a36(0x1d2),!0x0),this[_0x356a36(0x1e5)]());}[_0x59422e(0x1a7)](){const _0x4bedd6=_0x59422e;this[_0x4bedd6(0x1be)]();}[_0x59422e(0x1d0)](_0x411c22,_0x3e42e){const _0x299577=_0x59422e;this[_0x299577(0x1bb)][_0x411c22][_0x299577(0x1ae)]=_0x3e42e,this[_0x299577(0x1ad)](_0x299577(0x1ec),{'reply':this,'index':_0x411c22,'state':_0x3e42e});}[_0x59422e(0x1dd)]({showDiff:_0x56ac25,groupIndex:_0x4c1d26}){const _0x4095b0=_0x59422e;if(!this[_0x4095b0(0x1ca)])throw new _0x190c2e(_0x4095b0(0x1c8),null,{'aiReply':this});const _0x45b1b8=this[_0x4095b0(0x1e4)](_0x56ac25,_0x4c1d26);if(_0x45b1b8)return _0x45b1b8;let _0x37a18d=[];if(void 0x0===_0x4c1d26)_0x37a18d=this[_0x4095b0(0x1bb)];else{const _0x20b213=this[_0x4095b0(0x1bb)][_0x4095b0(0x1b6)](({index:_0x147062})=>_0x147062===_0x4c1d26);if(!_0x20b213)throw new _0x190c2e(_0x4095b0(0x1df),null,{'aiReply':this,'groupIndex':_0x4c1d26});_0x37a18d=[_0x20b213];}const _0x19c67a=_0x12e5c2({'editor':this[_0x4095b0(0x1ca)],'showDiff':_0x56ac25,'changeGroups':_0x37a18d,'documentContextContent':this[_0x4095b0(0x1b3)]});return this[_0x4095b0(0x1bf)](_0x56ac25,_0x19c67a),_0x19c67a;}[_0x59422e(0x1e4)](_0x1b1d2b,_0x13e632){const _0x25112b=_0x59422e,_0x4add20=_0x1b1d2b?_0x25112b(0x1c9):_0x25112b(0x1ac);if(!this[_0x25112b(0x1ef)][_0x4add20][_0x25112b(0x1b7)])return null;const _0x1e3b69=this[_0x25112b(0x1ef)][_0x4add20];if(void 0x0===_0x13e632)return _0x1e3b69[_0x25112b(0x1b7)]>0x0&&_0x1e3b69[_0x25112b(0x1b7)]!==this[_0x25112b(0x1bb)][_0x25112b(0x1b7)]?(this[_0x25112b(0x1bf)](_0x1b1d2b,null),null):_0x1ed073(_0x1e3b69);{const _0x8fa069=_0x1e3b69[_0x25112b(0x1b6)](({index:_0x1d6ec8})=>_0x1d6ec8===_0x13e632);if(_0x8fa069)return[_0x1ed073(_0x8fa069)];}return null;}[_0x59422e(0x1bf)](_0x31ac4b,_0x485599){const _0x33345d=_0x59422e,_0x26a863=_0x31ac4b?_0x33345d(0x1c9):_0x33345d(0x1ac);_0x485599?_0x485599[_0x33345d(0x1ce)](_0x7100cc=>{const _0x16f746=_0x33345d,_0x8a20b1=this[_0x16f746(0x1ef)][_0x26a863],_0x47b62d=_0x8a20b1[_0x16f746(0x1b6)](({index:_0x1453f1})=>_0x1453f1===_0x7100cc[_0x16f746(0x1aa)]);if(_0x47b62d){const _0x41e2ca=_0x8a20b1[_0x16f746(0x1e3)](_0x47b62d);_0x8a20b1[_0x16f746(0x1a3)](_0x41e2ca,0x1,_0x7100cc);}else _0x8a20b1[_0x16f746(0x1c6)](_0x7100cc);}):this[_0x33345d(0x1ef)][_0x26a863][_0x33345d(0x1b7)]=0x0;}[_0x59422e(0x1e5)](){const _0x1bcb32=_0x59422e;if(_0x1bcb32(0x1b4)===this[_0x1bcb32(0x1b9)]){this[_0x1bcb32(0x1db)]=this[_0x1bcb32(0x1e8)][_0x1bcb32(0x1a2)](this[_0x1bcb32(0x1c5)]);const _0x6c349a=this[_0x1bcb32(0x1bb)];this[_0x1bcb32(0x1d8)]();const _0x4a5882=this[_0x1bcb32(0x1d6)](_0x6c349a,this[_0x1bcb32(0x1bb)]);(_0x4a5882[_0x1bcb32(0x1b7)]||this[_0x1bcb32(0x1d2)])&&(this[_0x1bcb32(0x1ad)](_0x1bcb32(0x1b1),this,_0x4a5882),this[_0x1bcb32(0x1ef)][_0x1bcb32(0x1c9)][_0x1bcb32(0x1b7)]=this[_0x1bcb32(0x1ef)][_0x1bcb32(0x1ac)][_0x1bcb32(0x1b7)]=0x0);}else this[_0x1bcb32(0x1db)]=this[_0x1bcb32(0x1e8)][_0x1bcb32(0x1e0)](this[_0x1bcb32(0x1c5)]),this[_0x1bcb32(0x1ad)](_0x1bcb32(0x1b1),this);}[_0x59422e(0x1d6)](_0x20bdf5,_0x5910ff){const _0x29fce7=_0x59422e,_0x15dd74=[];for(const _0x1656c5 of _0x5910ff){const _0x308c97=_0x20bdf5[_0x1656c5[_0x29fce7(0x1aa)]];_0x308c97?_0x308c97[_0x29fce7(0x1bc)][_0x29fce7(0x1b7)]!==_0x1656c5[_0x29fce7(0x1bc)][_0x29fce7(0x1b7)]?_0x15dd74[_0x29fce7(0x1c6)](_0x1656c5):_0x308c97[_0x29fce7(0x1bc)][_0x29fce7(0x1ce)]((_0xb48c59,_0x2efc34)=>{const _0x10fe18=_0x29fce7,_0x42f031=_0x1656c5[_0x10fe18(0x1bc)][_0x2efc34];_0xb48c59['id']!==_0x42f031['id']&&_0x15dd74[_0x10fe18(0x1c6)](_0x1656c5);}):_0x15dd74[_0x29fce7(0x1c6)](_0x1656c5);}return _0x15dd74;}[_0x59422e(0x1d8)](){const _0x55e34e=_0x59422e,_0x5aec20=new _0x331346('p',{},[new _0x331346(_0x55e34e(0x1b0),{'style':_0x55e34e(0x1a5)},[new _0x52597b(_0xfe314b(this[_0x55e34e(0x1ca)][_0x55e34e(0x1da)],_0x55e34e(0x1e6)))])]),_0x157471=this[_0x55e34e(0x1d5)][_0x55e34e(0x1d9)](this[_0x55e34e(0x1db)],this[_0x55e34e(0x1b3)][_0x55e34e(0x1b8)](!0x0),{'markUnstableElements':!this[_0x55e34e(0x1d2)],'replaceRemovedWith':_0x5aec20,'cutAfterLastChange':!this[_0x55e34e(0x1d2)]});if(!_0x157471[_0x55e34e(0x1e7)][_0x55e34e(0x1b7)]&&!this[_0x55e34e(0x1d2)])return;this[_0x55e34e(0x1a4)]=_0x157471[_0x55e34e(0x1db)];let _0x3f756e=[];if(_0x2aa685(_0x568b01=>{const _0x31be03=_0x55e34e,_0x13c9ce=_0x5a4022(_0x568b01,_0x31be03(0x1cf));if(!_0x13c9ce||!_0x1ad94c(_0x13c9ce))return!0x1;const _0xec3bc1=[_0x568b01,..._0x499931(_0x568b01)]['at'](-0x2);if(_0x568b01!=_0xec3bc1){const _0x388f3c=_0x5a4022(_0xec3bc1,_0x31be03(0x1cf));_0x1ad94c(_0x388f3c)||(_0x3f756e[_0x31be03(0x1c6)]({'node':_0xec3bc1,'id':_0x388f3c,'type':_0x31be03(0x1f1)}),_0x157471[_0x31be03(0x1e7)][_0x31be03(0x1c6)](_0x388f3c));}else _0x157471[_0x31be03(0x1e7)][_0x31be03(0x1a9)](_0x13c9ce)?_0x3f756e[_0x31be03(0x1c6)]({'node':_0x568b01,'type':_0x31be03(0x1f1),'id':_0x13c9ce}):_0x157471[_0x31be03(0x1ab)][_0x31be03(0x1a9)](_0x13c9ce)?_0x3f756e[_0x31be03(0x1c6)]({'node':_0x568b01,'type':_0x31be03(0x1d3),'id':_0x13c9ce,'anchorId':_0x5a4022(_0x568b01[_0x31be03(0x1f0)],_0x31be03(0x1cf))}):_0x3f756e[_0x31be03(0x1c6)]({'node':_0x568b01,'type':_0x31be03(0x1b5),'id':_0x13c9ce});return!0x0;},this[_0x55e34e(0x1a4)]),_0x3f756e=_0x3f756e[_0x55e34e(0x1ea)](({node:_0x4ff933})=>[..._0x499931(_0x4ff933),_0x4ff933][_0x55e34e(0x1bd)](_0x58d14d=>!_0x5a4022(_0x58d14d,_0x55e34e(0x1b2)))),0x0==_0x3f756e[_0x55e34e(0x1b7)])return;const _0x18bd13=[[_0x3f756e[0x0]]];for(let _0x1b1491=0x1;_0x1b1491<_0x3f756e[_0x55e34e(0x1b7)];_0x1b1491++){const _0x5eae83=_0x18bd13[_0x18bd13[_0x55e34e(0x1b7)]-0x1],_0xcf3059=_0x5eae83[_0x5eae83[_0x55e34e(0x1b7)]-0x1];_0x3f756e[_0x1b1491][_0x55e34e(0x1d4)][_0x55e34e(0x1f0)]==_0xcf3059[_0x55e34e(0x1d4)]&&_0x55e34e(0x1f1)!=_0x3f756e[_0x1b1491][_0x55e34e(0x1b9)]&&_0x55e34e(0x1f1)!=_0xcf3059[_0x55e34e(0x1b9)]?_0x5eae83[_0x55e34e(0x1c6)](_0x3f756e[_0x1b1491]):_0x18bd13[_0x55e34e(0x1c6)]([_0x3f756e[_0x1b1491]]);}for(const _0xa2f6a1 of _0x18bd13){const _0x1aef36=_0xa2f6a1[0x0],_0x5f5126=_0xa2f6a1[_0xa2f6a1[_0x55e34e(0x1b7)]-0x1],_0x4dc932=_0x1a342f(_0x1aef36[_0x55e34e(0x1d4)][_0x55e34e(0x1f0)]);_0x4dc932&&_0xa2f6a1[_0x55e34e(0x1c0)](_0x4dc932);const _0x55bfa2=_0x1a342f(_0x5f5126[_0x55e34e(0x1d4)][_0x55e34e(0x1ee)]);_0x55bfa2&&_0xa2f6a1[_0x55e34e(0x1c6)](_0x55bfa2);}function _0x1ad94c(_0x42a7fe){const _0x392ffe=_0x55e34e;return _0x157471[_0x392ffe(0x1e7)][_0x392ffe(0x1a9)](_0x42a7fe)||_0x157471[_0x392ffe(0x1ab)][_0x392ffe(0x1a9)](_0x42a7fe)||_0x157471[_0x392ffe(0x1c4)][_0x392ffe(0x1a9)](_0x42a7fe);}function _0x1a342f(_0x2e131e){const _0x1a6495=_0x55e34e;if(_0x2e131e&&_0x5a4022(_0x2e131e,_0x1a6495(0x1cf))&&!_0x5a4022(_0x2e131e,_0x1a6495(0x1b2))){const _0x3d8738=_0x5a4022(_0x2e131e,_0x1a6495(0x1cf));if(!_0x1ad94c(_0x3d8738))return{'node':_0x2e131e,'type':_0x1a6495(0x1d7),'id':_0x3d8738};}return null;}this[_0x55e34e(0x1bb)]=_0x18bd13[_0x55e34e(0x1e9)]((_0xe85f93,_0x13795c)=>({'changes':_0xe85f93,'state':_0x55e34e(0x1c1),'index':_0x13795c}));}}
23
+ function _0x4134(_0x20d0c0,_0xcd8de3){const _0x25e3ed=_0x25e3();return _0x4134=function(_0x4134b3,_0x46ef21){_0x4134b3=_0x4134b3-0x1b5;let _0x4f4db5=_0x25e3ed[_0x4134b3];return _0x4f4db5;},_0x4134(_0x20d0c0,_0xcd8de3);}function _0x25e3(){const _0x38b76b=['data-id','aiResponseParser','modified','forEach','removedNodeIds','cloneNode','node','updateChangeGroups','aiResponseApplier','replyContentUpdated','interactionId','stopListening','3687093HBkNMD','destroy','documentContextContent','parseAndNormalizeHTML','change:content','find','_getDifferentChangeGroups','_getCachedContentParts','content','_setCachedContentParts','withoutDiff','areActionsDisabled','context','4VstlwC','editor','682595rskGJA','modification','convertMarkdownToHTML','ai-reply-get-content-parts-group-not-found','withDiff','new','filter','3440511tRjoTv','done','changes','type','length','splice','pending','fire','index','data-unstable','isDone','includes','cachedSuggestionContentParts','1908480fnwAly','appendContent','push','328936fKwvPm','color:\x20#808080;\x20font-style:\x20italic','parsedContent','newNodeIds','onContentChange','changeGroups','8zRDFeh','previousSibling','indexOf','ai-get-editor-from-context-no-editor','8YeFaRC','locale','modifiedNodeIds','removed','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','nextSibling','state','every','parsedMergedContent','replyChangeGroupStateUpdated','map','unshift','getContentParts','set','sources','span','setChangeGroupState','24127510FOFXGR','8826552EGGcNB'];_0x25e3=function(){return _0x38b76b;};return _0x25e3();}const _0x350e68=_0x4134;(function(_0x11fc89,_0x2f6d7e){const _0x30aaa7=_0x4134,_0x11d494=_0x11fc89();while(!![]){try{const _0x45804f=-parseInt(_0x30aaa7(0x1bd))/0x1*(parseInt(_0x30aaa7(0x1b7))/0x2)+parseInt(_0x30aaa7(0x1f7))/0x3+-parseInt(_0x30aaa7(0x1ee))/0x4*(parseInt(_0x30aaa7(0x1f0))/0x5)+parseInt(_0x30aaa7(0x204))/0x6+parseInt(_0x30aaa7(0x1d4))/0x7*(-parseInt(_0x30aaa7(0x1c1))/0x8)+-parseInt(_0x30aaa7(0x1e1))/0x9+parseInt(_0x30aaa7(0x1d3))/0xa;if(_0x45804f===_0x2f6d7e)break;else _0x11d494['push'](_0x11d494['shift']());}catch(_0x536a10){_0x11d494['push'](_0x11d494['shift']());}}}(_0x25e3,0xb8468));import{CKEditorError as _0x58e79b,ObservableMixin as _0x1aec81,uid as _0x469dd7}from'ckeditor5/src/utils.js';import{Element as _0x1a62d7,findAll as _0x50cefe,getAttribute as _0x1d2b5b,getParents as _0x2b02c1,Document as _0x26ed87,parse as _0x45b6bd,Text as _0x5a6d8f}from'../utils/htmlparser.js';import{AIResponseParser as _0x3959cc}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x34f150}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x366ac0}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5a0f9e}from'../utils/common-translations.js';import{cloneDeep as _0x3ae04d}from'es-toolkit';export class AIReply extends _0x1aec81(){['id'];[_0x350e68(0x1df)];[_0x350e68(0x1fa)];[_0x350e68(0x1d0)]=[];[_0x350e68(0x1b9)]=new _0x26ed87([]);[_0x350e68(0x1ca)]=new _0x26ed87([]);[_0x350e68(0x1bc)]=[];[_0x350e68(0x1ec)]=!0x1;[_0x350e68(0x1e3)];[_0x350e68(0x1d6)];[_0x350e68(0x1dd)];[_0x350e68(0x1ef)];[_0x350e68(0x203)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x2155f1,content:_0x44c888='',isDone:_0x23d2dd=!0x1,interactionId:_0x52a7a7,areActionsDisabled:_0x5e9397,documentContextContent:_0x42e8b0,editor:_0x39cf63,id:_0x3b4e5d}){const _0x4f851d=_0x350e68;super(),this['id']=_0x3b4e5d||_0x469dd7(),this[_0x4f851d(0x1df)]=_0x52a7a7,this[_0x4f851d(0x1fa)]=_0x2155f1,this[_0x4f851d(0x1ec)]=!!_0x5e9397,this[_0x4f851d(0x1ef)]=_0x39cf63,this[_0x4f851d(0x1d6)]=new _0x3959cc(),this[_0x4f851d(0x1dd)]=new _0x34f150(),this[_0x4f851d(0x1e3)]=_0x45b6bd(_0x42e8b0||''),this[_0x4f851d(0x1cf)](_0x4f851d(0x201),_0x23d2dd),this['on'](_0x4f851d(0x1e5),()=>{const _0x22638e=_0x4f851d;this[_0x22638e(0x1bb)]();}),this[_0x4f851d(0x1cf)](_0x4f851d(0x1e9),_0x44c888);}[_0x350e68(0x1b5)](_0x3954d1){const _0x194f93=_0x350e68;this[_0x194f93(0x1cf)](_0x194f93(0x1e9),this[_0x194f93(0x1e9)]+_0x3954d1);}[_0x350e68(0x1f8)](){const _0x4623c9=_0x350e68;this[_0x4623c9(0x201)]||(this[_0x4623c9(0x1cf)](_0x4623c9(0x201),!0x0),this[_0x4623c9(0x1bb)]());}[_0x350e68(0x1e2)](){const _0x1d6a6f=_0x350e68;this[_0x1d6a6f(0x1e0)]();}[_0x350e68(0x1d2)](_0x16caba,_0x60a045){const _0x813ecc=_0x350e68;this[_0x813ecc(0x1bc)][_0x16caba][_0x813ecc(0x1c8)]=_0x60a045,this[_0x813ecc(0x1fe)](_0x813ecc(0x1cb),{'reply':this,'index':_0x16caba,'state':_0x60a045});}[_0x350e68(0x1ce)]({showDiff:_0x49d965,groupIndex:_0x13d144}){const _0x1e4797=_0x350e68;if(!this[_0x1e4797(0x1ef)])throw new _0x58e79b(_0x1e4797(0x1c0),null,{'aiReply':this});const _0x54f314=this[_0x1e4797(0x1e8)](_0x49d965,_0x13d144);if(_0x54f314)return _0x54f314;let _0x46a1ba=[];if(void 0x0===_0x13d144)_0x46a1ba=this[_0x1e4797(0x1bc)];else{const _0x47ab23=this[_0x1e4797(0x1bc)][_0x1e4797(0x1e6)](({index:_0xc474b4})=>_0xc474b4===_0x13d144);if(!_0x47ab23)throw new _0x58e79b(_0x1e4797(0x1f3),null,{'aiReply':this,'groupIndex':_0x13d144});_0x46a1ba=[_0x47ab23];}const _0x4484a4=_0x366ac0({'editor':this[_0x1e4797(0x1ef)],'showDiff':_0x49d965,'changeGroups':_0x46a1ba,'documentContextContent':this[_0x1e4797(0x1e3)]});return this[_0x1e4797(0x1ea)](_0x49d965,_0x4484a4),_0x4484a4;}[_0x350e68(0x1e8)](_0x132b2e,_0x599b78){const _0x521937=_0x350e68,_0x4f637c=_0x132b2e?_0x521937(0x1f4):_0x521937(0x1eb);if(!this[_0x521937(0x203)][_0x4f637c][_0x521937(0x1fb)])return null;const _0x408e6c=this[_0x521937(0x203)][_0x4f637c];if(void 0x0===_0x599b78)return _0x408e6c[_0x521937(0x1fb)]>0x0&&_0x408e6c[_0x521937(0x1fb)]!==this[_0x521937(0x1bc)][_0x521937(0x1fb)]?(this[_0x521937(0x1ea)](_0x132b2e,null),null):_0x3ae04d(_0x408e6c);{const _0x1dfc00=_0x408e6c[_0x521937(0x1e6)](({index:_0x57e47a})=>_0x57e47a===_0x599b78);if(_0x1dfc00)return[_0x3ae04d(_0x1dfc00)];}return null;}[_0x350e68(0x1ea)](_0x48b242,_0x1a6f19){const _0x5d6744=_0x350e68,_0x2fb2f0=_0x48b242?_0x5d6744(0x1f4):_0x5d6744(0x1eb);_0x1a6f19?_0x1a6f19[_0x5d6744(0x1d8)](_0x62277a=>{const _0x4a4452=_0x5d6744,_0x50109b=this[_0x4a4452(0x203)][_0x2fb2f0],_0x326fb7=_0x50109b[_0x4a4452(0x1e6)](({index:_0x2c4682})=>_0x2c4682===_0x62277a[_0x4a4452(0x1ff)]);if(_0x326fb7){const _0x1c3f24=_0x50109b[_0x4a4452(0x1bf)](_0x326fb7);_0x50109b[_0x4a4452(0x1fc)](_0x1c3f24,0x1,_0x62277a);}else _0x50109b[_0x4a4452(0x1b6)](_0x62277a);}):this[_0x5d6744(0x203)][_0x2fb2f0][_0x5d6744(0x1fb)]=0x0;}[_0x350e68(0x1bb)](){const _0x5e8028=_0x350e68;if(_0x5e8028(0x1f1)===this[_0x5e8028(0x1fa)]){this[_0x5e8028(0x1b9)]=this[_0x5e8028(0x1d6)][_0x5e8028(0x1e4)](this[_0x5e8028(0x1e9)]);const _0x3dbbab=this[_0x5e8028(0x1bc)];this[_0x5e8028(0x1dc)]();const _0x3f7562=this[_0x5e8028(0x1e7)](_0x3dbbab,this[_0x5e8028(0x1bc)]);(_0x3f7562[_0x5e8028(0x1fb)]||this[_0x5e8028(0x201)])&&(this[_0x5e8028(0x1fe)](_0x5e8028(0x1de),this,_0x3f7562),this[_0x5e8028(0x203)][_0x5e8028(0x1f4)][_0x5e8028(0x1fb)]=this[_0x5e8028(0x203)][_0x5e8028(0x1eb)][_0x5e8028(0x1fb)]=0x0);}else this[_0x5e8028(0x1b9)]=this[_0x5e8028(0x1d6)][_0x5e8028(0x1f2)](this[_0x5e8028(0x1e9)]),this[_0x5e8028(0x1fe)](_0x5e8028(0x1de),this);}[_0x350e68(0x1e7)](_0x3b326e,_0xfce96e){const _0x4f532a=_0x350e68,_0x262dfc=[];for(const _0x18d746 of _0xfce96e){const _0x56e2bc=_0x3b326e[_0x18d746[_0x4f532a(0x1ff)]];_0x56e2bc?_0x56e2bc[_0x4f532a(0x1f9)][_0x4f532a(0x1fb)]!==_0x18d746[_0x4f532a(0x1f9)][_0x4f532a(0x1fb)]?_0x262dfc[_0x4f532a(0x1b6)](_0x18d746):_0x56e2bc[_0x4f532a(0x1f9)][_0x4f532a(0x1d8)]((_0x1e0d22,_0x2930b0)=>{const _0x3c5f7c=_0x4f532a,_0x3f0e33=_0x18d746[_0x3c5f7c(0x1f9)][_0x2930b0];_0x1e0d22['id']!==_0x3f0e33['id']&&_0x262dfc[_0x3c5f7c(0x1b6)](_0x18d746);}):_0x262dfc[_0x4f532a(0x1b6)](_0x18d746);}return _0x262dfc;}[_0x350e68(0x1dc)](){const _0x386378=_0x350e68,_0xd24b91=new _0x1a62d7('p',{},[new _0x1a62d7(_0x386378(0x1d1),{'style':_0x386378(0x1b8)},[new _0x5a6d8f(_0x5a0f9e(this[_0x386378(0x1ef)][_0x386378(0x1c2)],_0x386378(0x1c5)))])]),_0x44b568=this[_0x386378(0x1dd)][_0x386378(0x1c6)](this[_0x386378(0x1b9)],this[_0x386378(0x1e3)][_0x386378(0x1da)](!0x0),{'markUnstableElements':!this[_0x386378(0x201)],'replaceRemovedWith':_0xd24b91,'cutAfterLastChange':!this[_0x386378(0x201)]});if(!_0x44b568[_0x386378(0x1c3)][_0x386378(0x1fb)]&&!this[_0x386378(0x201)])return;this[_0x386378(0x1ca)]=_0x44b568[_0x386378(0x1b9)];let _0x4b3be8=[];if(_0x50cefe(_0x34787b=>{const _0x522d47=_0x386378,_0x3a19fd=_0x1d2b5b(_0x34787b,_0x522d47(0x1d5));if(!_0x3a19fd||!_0x297427(_0x3a19fd))return!0x1;const _0x3c3634=[_0x34787b,..._0x2b02c1(_0x34787b)]['at'](-0x2);if(_0x34787b!=_0x3c3634){const _0x4ce784=_0x1d2b5b(_0x3c3634,_0x522d47(0x1d5));_0x297427(_0x4ce784)||(_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x3c3634,'id':_0x4ce784,'type':_0x522d47(0x1d7)}),_0x44b568[_0x522d47(0x1c3)][_0x522d47(0x1b6)](_0x4ce784));}else _0x44b568[_0x522d47(0x1c3)][_0x522d47(0x202)](_0x3a19fd)?_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1d7),'id':_0x3a19fd}):_0x44b568[_0x522d47(0x1ba)][_0x522d47(0x202)](_0x3a19fd)?_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1f5),'id':_0x3a19fd,'anchorId':_0x1d2b5b(_0x34787b[_0x522d47(0x1be)],_0x522d47(0x1d5))}):_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1c4),'id':_0x3a19fd});return!0x0;},this[_0x386378(0x1ca)]),_0x4b3be8=_0x4b3be8[_0x386378(0x1f6)](({node:_0xec23f8})=>[..._0x2b02c1(_0xec23f8),_0xec23f8][_0x386378(0x1c9)](_0x3f9355=>!_0x1d2b5b(_0x3f9355,_0x386378(0x200)))),0x0==_0x4b3be8[_0x386378(0x1fb)])return;const _0x365e8a=[[_0x4b3be8[0x0]]];for(let _0x1f7908=0x1;_0x1f7908<_0x4b3be8[_0x386378(0x1fb)];_0x1f7908++){const _0x3d7e36=_0x365e8a[_0x365e8a[_0x386378(0x1fb)]-0x1],_0xf74894=_0x3d7e36[_0x3d7e36[_0x386378(0x1fb)]-0x1];_0x4b3be8[_0x1f7908][_0x386378(0x1db)][_0x386378(0x1be)]==_0xf74894[_0x386378(0x1db)]&&_0x386378(0x1d7)!=_0x4b3be8[_0x1f7908][_0x386378(0x1fa)]&&_0x386378(0x1d7)!=_0xf74894[_0x386378(0x1fa)]?_0x3d7e36[_0x386378(0x1b6)](_0x4b3be8[_0x1f7908]):_0x365e8a[_0x386378(0x1b6)]([_0x4b3be8[_0x1f7908]]);}for(const _0x1b087f of _0x365e8a){const _0x4d826c=_0x1b087f[0x0],_0x2839d9=_0x1b087f[_0x1b087f[_0x386378(0x1fb)]-0x1],_0x1dafae=_0x344324(_0x4d826c[_0x386378(0x1db)][_0x386378(0x1be)]);_0x1dafae&&_0x1b087f[_0x386378(0x1cd)](_0x1dafae);const _0x14d12b=_0x344324(_0x2839d9[_0x386378(0x1db)][_0x386378(0x1c7)]);_0x14d12b&&_0x1b087f[_0x386378(0x1b6)](_0x14d12b);}function _0x297427(_0x4530ae){const _0x459e08=_0x386378;return _0x44b568[_0x459e08(0x1c3)][_0x459e08(0x202)](_0x4530ae)||_0x44b568[_0x459e08(0x1ba)][_0x459e08(0x202)](_0x4530ae)||_0x44b568[_0x459e08(0x1d9)][_0x459e08(0x202)](_0x4530ae);}function _0x344324(_0x4ba44f){const _0x360ecb=_0x386378;if(_0x4ba44f&&_0x1d2b5b(_0x4ba44f,_0x360ecb(0x1d5))&&!_0x1d2b5b(_0x4ba44f,_0x360ecb(0x200))){const _0x37969=_0x1d2b5b(_0x4ba44f,_0x360ecb(0x1d5));if(!_0x297427(_0x37969))return{'node':_0x4ba44f,'type':_0x360ecb(0x1ed),'id':_0x37969};}return null;}this[_0x386378(0x1bc)]=_0x365e8a[_0x386378(0x1cc)]((_0x279341,_0x1d4b18)=>({'changes':_0x279341,'state':_0x386378(0x1fd),'index':_0x1d4b18}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4457(){const _0x2e381d=['data-unstable','markUnstableElementsDepth','forEach','_isExistingNode','_insertNodes','afterbegin','modifiedIds','invalidIds','cloneNode','_isDelNode','newIds','882840jrUHHL','reverse','831115KQsgFT','_markUnstableElements','lastTouchedId','new-element','_markWrappedElements','parentNode','_findPrevElementWithDataId','nodeType','merge','previousSibling','lastChild','_markLastTagElementUnstable','_isExistingContentComment','_existingDataIds','slice','data-id','from','length','nextSibling','_storeDeletedElementIds','cutAfterLastChange','_isNewNode','trim','indexOf','_findReferenceNode','_touchedNodesState','true','splice','_removeSpecialComments','map','_findNextElementWithDataId','_getNodeDataId','includes','data-removed','childNodes','_getUid','626679ZtFqJo','match','push','_hasWrappedParent','beforebegin','replaceRemovedWith','markUnstableElements','_generateUid','removedIds','filter','993372XHldSR','329552snfKcA','_replaceNode','afterend','data-wrapped-id','_findFallbackReferenceNode','97950gaOgEz','194895kQSLYs','has'];_0x4457=function(){return _0x2e381d;};return _0x4457();}const _0x5a0b23=_0x3dd7;(function(_0xea7fce,_0xc3224b){const _0x5663a1=_0x3dd7,_0xd34502=_0xea7fce();while(!![]){try{const _0x350211=-parseInt(_0x5663a1(0x1b0))/0x1+parseInt(_0x5663a1(0x1af))/0x2+parseInt(_0x5663a1(0x19f))/0x3+-parseInt(_0x5663a1(0x1aa))/0x4+parseInt(_0x5663a1(0x17b))/0x5+-parseInt(_0x5663a1(0x1a9))/0x6+parseInt(_0x5663a1(0x179))/0x7;if(_0x350211===_0xc3224b)break;else _0xd34502['push'](_0xd34502['shift']());}catch(_0x316287){_0xd34502['push'](_0xd34502['shift']());}}}(_0x4457,0x1a366));function _0x3dd7(_0x145f12,_0x1aa012){const _0x445783=_0x4457();return _0x3dd7=function(_0x3dd798,_0x3d7364){_0x3dd798=_0x3dd798-0x174;let _0xe8a720=_0x445783[_0x3dd798];return _0xe8a720;},_0x3dd7(_0x145f12,_0x1aa012);}import{ObservableMixin as _0x5df2d4,uid as _0x1b29e8}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1add45,findByAttribute as _0x28a82d,getAttribute as _0x1760ca,isComment as _0x2d1d6c,isTag as _0xa02f0b,insertElement as _0x5682ec,moveElement as _0x19a1b5,removeElement as _0x27eb91,replaceElement as _0x5de8be,serialize as _0x396b9e,setAttribute as _0x60dc2,clone as _0x222af6,findAllComments as _0x19fcde,getParents as _0xb2ed4b,getNodeNestingLevel as _0x500bd4,areNodesSame as _0x5e8d5a,removeElementsAfter as _0x117446}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x5df2d4(){[_0x5a0b23(0x1a6)];[_0x5a0b23(0x194)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5a0b23(0x188)]=new Set();constructor(_0x3bfaf9){const _0x3be5aa=_0x5a0b23;super(),this[_0x3be5aa(0x1a6)]=_0x3bfaf9||_0x1b29e8;}[_0x5a0b23(0x183)](_0x29c0d3,_0x479a8b,_0x109bf6){const _0x1da730=_0x5a0b23,_0x27d941=_0x222af6(_0x29c0d3);if(0x0===_0x479a8b[_0x1da730(0x19d)][_0x1da730(0x18c)]){const _0x1cde7c=[];return _0x1add45(_0x1da730(0x18a),_0x1da730(0x17e),_0x27d941)[_0x1da730(0x1b4)](_0x4f84e6=>{const _0x3eca7f=_0x1da730,_0x38e857=this[_0x3eca7f(0x1a6)]();_0x60dc2(_0x4f84e6,_0x3eca7f(0x18a),_0x38e857),_0x1cde7c[_0x3eca7f(0x1a1)](_0x38e857);}),this[_0x1da730(0x197)](_0x27d941),{'parsedContent':_0x27d941,'newNodeIds':_0x1cde7c,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x109bf6&&_0x109bf6[_0x1da730(0x1a5)]&&this[_0x1da730(0x186)](_0x27d941),this[_0x1da730(0x194)][_0x1da730(0x178)]=[],this[_0x1da730(0x194)][_0x1da730(0x174)]=[],this[_0x1da730(0x194)][_0x1da730(0x1a7)]=[],this[_0x1da730(0x194)][_0x1da730(0x175)]=[],this[_0x1da730(0x194)][_0x1da730(0x17d)]=null,this[_0x1da730(0x188)]=new Set(_0x1add45(_0x1da730(0x18a),null,_0x479a8b)[_0x1da730(0x198)](_0x3a4fff=>_0x1760ca(_0x3a4fff,_0x1da730(0x18a)))[_0x1da730(0x1a8)](_0x39dcf3=>!!_0x39dcf3));let _0x5c816e=-0x1,_0xfe49a0=!0x1;const _0x37d1db=_0x27d941[_0x1da730(0x19d)],_0x83bec0=Array[_0x1da730(0x18b)](_0x37d1db)[_0x1da730(0x1a8)](_0xa10663=>!(0x3===_0xa10663[_0x1da730(0x182)]&&''===_0x396b9e(_0xa10663)[_0x1da730(0x191)]())),_0x279134=_0x83bec0[_0x1da730(0x18c)];for(let _0x8a6a7c=0x0;_0x8a6a7c<_0x279134;_0x8a6a7c++){const _0x4609a0=_0x83bec0[_0x8a6a7c],_0x3b1e28=_0x83bec0[_0x8a6a7c+0x1];if(this[_0x1da730(0x190)](_0x4609a0)){if(-0x1===_0x5c816e&&(_0x5c816e=_0x8a6a7c),this[_0x1da730(0x17f)](_0x4609a0),!this[_0x1da730(0x190)](_0x3b1e28)){const [_0x4d3fe5,_0x333f00]=this[_0x1da730(0x193)](_0x4609a0,_0xfe49a0,_0x479a8b);if(_0x4d3fe5){const _0x468c29=Array[_0x1da730(0x18b)](_0x83bec0)[_0x1da730(0x189)](_0x5c816e,_0x8a6a7c+0x1);this[_0x1da730(0x1b6)](_0x4d3fe5,_0x468c29,_0x333f00),_0x5c816e=-0x1;}}}else{if(this[_0x1da730(0x187)](_0x4609a0))_0xfe49a0=!0x0;else{if(this[_0x1da730(0x1b5)](_0x4609a0)){const _0x34434f=_0x1760ca(_0x4609a0,_0x1da730(0x18a));if(_0x34434f&&this[_0x1da730(0x188)][_0x1da730(0x1b1)](_0x34434f)){const _0x46c5fe=_0x28a82d(_0x1da730(0x18a),_0x34434f,_0x479a8b);this[_0x1da730(0x1ab)](_0x46c5fe,_0x4609a0);}if(this[_0x1da730(0x194)][_0x1da730(0x1a7)][_0x1da730(0x19b)](_0x34434f)){const _0x11fde8=this[_0x1da730(0x194)][_0x1da730(0x1a7)][_0x1da730(0x192)](_0x34434f);this[_0x1da730(0x194)][_0x1da730(0x1a7)][_0x1da730(0x196)](_0x11fde8,0x1);}}else{if(this[_0x1da730(0x177)](_0x4609a0)){const _0x42e5df=_0x1760ca(_0x4609a0,_0x1da730(0x18a));this[_0x1da730(0x194)][_0x1da730(0x174)][_0x1da730(0x19b)](_0x42e5df)||this[_0x1da730(0x18e)](_0x4609a0);}}}}}for(const _0x301a6d of this[_0x1da730(0x194)][_0x1da730(0x1a7)]){const _0x274464=_0x28a82d(_0x1da730(0x18a),_0x301a6d,_0x479a8b);if(_0x274464){if(_0x109bf6&&_0x109bf6[_0x1da730(0x1a4)]){this[_0x1da730(0x194)][_0x1da730(0x17d)]=_0x301a6d;const _0x33b347=_0x109bf6[_0x1da730(0x1a4)][_0x1da730(0x176)](!0x0);_0x60dc2(_0x33b347,_0x1da730(0x18a),_0x301a6d),_0x60dc2(_0x33b347,_0x1da730(0x19c),_0x1da730(0x195)),_0x5de8be(_0x274464,_0x33b347);}else _0x27eb91(_0x274464);}}if(_0x1add45(_0x1da730(0x1ad),null,_0x479a8b)[_0x1da730(0x1b4)](_0x1d2ebf=>{const _0x6642eb=_0x1da730,_0x492eb4=_0x1760ca(_0x1d2ebf,_0x6642eb(0x1ad)),_0x26f61e=_0x28a82d(_0x6642eb(0x18a),_0x492eb4,_0x479a8b);_0x26f61e&&_0x19a1b5(_0x26f61e,_0x1d2ebf);}),_0x1add45(_0x1da730(0x18a),_0x1da730(0x17e),_0x479a8b)[_0x1da730(0x1b4)](_0x500a2c=>{const _0x4ea5d1=_0x1da730,_0x505588=this[_0x4ea5d1(0x19e)](_0x500a2c);_0x60dc2(_0x500a2c,_0x4ea5d1(0x18a),_0x505588),this[_0x4ea5d1(0x194)][_0x4ea5d1(0x178)][_0x4ea5d1(0x1a1)](_0x505588);}),this[_0x1da730(0x197)](_0x479a8b),_0x109bf6&&_0x109bf6[_0x1da730(0x1a5)]&&this[_0x1da730(0x17c)](_0x479a8b,_0x109bf6[_0x1da730(0x1b3)]||0x0),_0x109bf6&&_0x109bf6[_0x1da730(0x18f)]&&this[_0x1da730(0x194)][_0x1da730(0x17d)]){let _0x33b458=_0x28a82d(_0x1da730(0x18a),this[_0x1da730(0x194)][_0x1da730(0x17d)],_0x479a8b);for(;_0x33b458;)_0x117446(_0x33b458),_0x33b458=_0x33b458[_0x1da730(0x180)];}return{'parsedContent':_0x479a8b,'newNodeIds':this[_0x1da730(0x194)][_0x1da730(0x178)],'modifiedNodeIds':this[_0x1da730(0x194)][_0x1da730(0x174)],'removedNodeIds':this[_0x1da730(0x194)][_0x1da730(0x1a7)]};}[_0x5a0b23(0x1b6)](_0x22c6e0,_0x11bfc7,_0x598727){const _0x270b98=_0x5a0b23;for(const _0xb0ec33 of _0x11bfc7){const _0x260748=this[_0x270b98(0x19e)](_0xb0ec33);_0x60dc2(_0xb0ec33,_0x270b98(0x18a),_0x260748),this[_0x270b98(0x194)][_0x270b98(0x178)][_0x270b98(0x1a1)](_0x260748),this[_0x270b98(0x194)][_0x270b98(0x17d)]=_0x260748;}const _0x2dcf50=_0x270b98(0x1b7)===_0x598727||_0x270b98(0x1ac)===_0x598727?_0x11bfc7[_0x270b98(0x17a)]():_0x11bfc7;for(const _0x2fa492 of _0x2dcf50)_0x5682ec(_0x22c6e0,_0x2fa492,_0x598727);}[_0x5a0b23(0x1ab)](_0x286b67,_0x5cea6){const _0x19c0a1=_0x5a0b23;if(!_0x286b67)return;if(_0x5e8d5a(_0x286b67,_0x5cea6))return;const _0x35b66b=this[_0x19c0a1(0x19e)](_0x286b67);_0x60dc2(_0x5cea6,_0x19c0a1(0x18a),_0x35b66b),this[_0x19c0a1(0x194)][_0x19c0a1(0x174)][_0x19c0a1(0x1a1)](_0x35b66b),this[_0x19c0a1(0x194)][_0x19c0a1(0x17d)]=_0x35b66b,_0x5de8be(_0x286b67,_0x5cea6[_0x19c0a1(0x176)](!0x0));}[_0x5a0b23(0x193)](_0x5cd6b9,_0x1b7180,_0x41c767){const _0x325309=_0x5a0b23,_0x35df95=this[_0x325309(0x181)](_0x5cd6b9,!0x1);if(_0x35df95){const _0x350bd6=this[_0x325309(0x19a)](_0x35df95),_0x87da5c=_0x28a82d(_0x325309(0x18a),_0x350bd6,_0x41c767);if(_0x87da5c)return[_0x87da5c,_0x325309(0x1ac)];this[_0x325309(0x194)][_0x325309(0x175)][_0x325309(0x1a1)](_0x350bd6);}const _0x1597a3=this[_0x325309(0x199)](_0x5cd6b9,!0x1);if(_0x1597a3){const _0x31ed70=this[_0x325309(0x19a)](_0x1597a3),_0x2689fe=_0x28a82d(_0x325309(0x18a),_0x31ed70,_0x41c767);if(_0x2689fe)return[_0x2689fe,_0x325309(0x1a3)];this[_0x325309(0x194)][_0x325309(0x175)][_0x325309(0x1a1)](_0x31ed70);}return _0x1b7180?_0x5cd6b9[_0x325309(0x18d)]?this[_0x325309(0x1ae)](_0x5cd6b9,_0x41c767):[_0x41c767[_0x325309(0x19d)][_0x41c767[_0x325309(0x19d)][_0x325309(0x18c)]-0x1],_0x325309(0x1ac)]:[_0x41c767[_0x325309(0x19d)][0x0],_0x325309(0x1a3)];}[_0x5a0b23(0x1ae)](_0x544cf8,_0x38bd76){const _0x39f0a5=_0x5a0b23,_0x18d8e8=[],_0x414461=this[_0x39f0a5(0x181)](_0x544cf8,!0x0);if(_0x414461){const _0x1fe5bb=this[_0x39f0a5(0x19a)](_0x414461),_0x1737c3=_0x28a82d(_0x39f0a5(0x18a),_0x1fe5bb,_0x38bd76);_0x1737c3&&_0x18d8e8[_0x39f0a5(0x1a1)]([_0x1737c3,_0x39f0a5(0x1ac)]);}const _0x17bac=this[_0x39f0a5(0x199)](_0x544cf8,!0x0);if(_0x17bac){const _0x12de42=this[_0x39f0a5(0x19a)](_0x17bac),_0x3db15a=_0x28a82d(_0x39f0a5(0x18a),_0x12de42,_0x38bd76);_0x3db15a&&_0x18d8e8[_0x39f0a5(0x1a1)]([_0x3db15a,_0x39f0a5(0x1a3)]);}if(_0x18d8e8[_0x39f0a5(0x18c)]>0x1)return _0x500bd4(_0x18d8e8[0x0][0x0])<=_0x500bd4(_0x18d8e8[0x1][0x0])?_0x18d8e8[0x0]:_0x18d8e8[0x1];return 0x1===_0x18d8e8[_0x39f0a5(0x18c)]?_0x18d8e8[0x0]:[_0x38bd76[_0x39f0a5(0x185)],_0x39f0a5(0x1ac)];}[_0x5a0b23(0x199)](_0x366ffe,_0x5a4473){const _0x2bc57b=_0x5a0b23;let _0x801b18=_0x366ffe[_0x2bc57b(0x18d)],_0x54a240=null,_0x124246=!0x1;for(;_0x801b18;){if(_0x2d1d6c(_0x801b18)){if(this[_0x2bc57b(0x177)](_0x801b18)&&(_0x54a240=_0x801b18),this[_0x2bc57b(0x187)](_0x801b18)&&_0x5a4473&&!_0x124246){_0x124246=!0x0,_0x801b18=_0x801b18[_0x2bc57b(0x18d)];continue;}break;}const _0x208d83=_0x1760ca(_0x801b18,_0x2bc57b(0x18a));if(_0x208d83&&_0x2bc57b(0x17e)!==_0x208d83&&this[_0x2bc57b(0x188)][_0x2bc57b(0x1b1)](_0x208d83)){_0x54a240=_0x801b18;break;}_0x801b18=_0x801b18[_0x2bc57b(0x18d)];}return _0x54a240;}[_0x5a0b23(0x181)](_0xc5e2ee,_0xd4ad8){const _0x771642=_0x5a0b23;let _0x52e02b=_0xc5e2ee[_0x771642(0x184)],_0x431905=null,_0x5286a0=!0x1;for(;_0x52e02b;){if(_0x2d1d6c(_0x52e02b)){if(this[_0x771642(0x177)](_0x52e02b)&&(_0x431905=_0x52e02b),this[_0x771642(0x187)](_0x52e02b)&&_0xd4ad8&&!_0x5286a0){_0x5286a0=!0x0,_0x52e02b=_0x52e02b[_0x771642(0x184)];continue;}break;}const _0x4b2727=_0x1760ca(_0x52e02b,_0x771642(0x18a));if(_0x4b2727&&_0x771642(0x17e)!==_0x4b2727&&this[_0x771642(0x188)][_0x771642(0x1b1)](_0x4b2727)){_0x431905=_0x52e02b;break;}_0x52e02b=_0x52e02b[_0x771642(0x184)];}return _0x431905;}[_0x5a0b23(0x17f)](_0x4a6019){const _0x4faf5d=_0x5a0b23;_0xa02f0b(_0x4a6019)&&_0x1add45(_0x4faf5d(0x18a),null,_0x4a6019)[_0x4faf5d(0x1b4)](_0x15c246=>{const _0x1527eb=_0x4faf5d;if(this[_0x1527eb(0x1b5)](_0x15c246)&&!this[_0x1527eb(0x1a2)](_0x15c246)){const _0x229032=_0x1760ca(_0x15c246,_0x1527eb(0x18a));_0x60dc2(_0x15c246,_0x1527eb(0x1ad),_0x229032),_0x60dc2(_0x15c246,_0x1527eb(0x18a),null);}});}[_0x5a0b23(0x19a)](_0x42c615){const _0x30f590=_0x5a0b23;if(!_0x42c615)return null;if(_0xa02f0b(_0x42c615))return _0x1760ca(_0x42c615,_0x30f590(0x18a));if(_0x2d1d6c(_0x42c615)){const _0x6daf37=_0x396b9e(_0x42c615)[_0x30f590(0x1a0)](/removed[\s*-]data-id="([^"]+)"/);if(_0x6daf37&&_0x6daf37[0x1])return _0x6daf37[0x1];}return null;}[_0x5a0b23(0x18e)](_0x51dd6b){const _0x295d48=_0x5a0b23;if(_0x2d1d6c(_0x51dd6b)){const _0x44f909=_0x396b9e(_0x51dd6b)[_0x295d48(0x1a0)](/removed[\s*-]data-id="([^"]+)"/);_0x44f909&&_0x44f909[0x1]&&this[_0x295d48(0x194)][_0x295d48(0x1a7)][_0x295d48(0x1a1)](_0x44f909[0x1]);}}[_0x5a0b23(0x19e)](_0xf7b68){const _0x13195d=_0x5a0b23;return this[_0x13195d(0x1b5)](_0xf7b68)?_0x1760ca(_0xf7b68,_0x13195d(0x18a)):this[_0x13195d(0x1a6)]();}[_0x5a0b23(0x197)](_0x29b9b2){const _0x2bb088=_0x5a0b23;_0x19fcde(_0x29b9b2)[_0x2bb088(0x1a8)](_0x4aa338=>this[_0x2bb088(0x177)](_0x4aa338)||this[_0x2bb088(0x187)](_0x4aa338))[_0x2bb088(0x1b4)](_0x4a086e=>{_0x27eb91(_0x4a086e);});}[_0x5a0b23(0x186)](_0x297a11){const _0x1debdc=_0x5a0b23,_0x1df37a=_0x297a11[_0x1debdc(0x19d)],_0x4be9ac=_0x1df37a[_0x1df37a[_0x1debdc(0x18c)]-0x1];_0x4be9ac&&_0xa02f0b(_0x4be9ac)&&_0x60dc2(_0x4be9ac,_0x1debdc(0x1b2),_0x1debdc(0x195));}[_0x5a0b23(0x17c)](_0x1df517,_0x4666f0){const _0x2070fd=_0x5a0b23,_0xfb5ecb=_0x28a82d(_0x2070fd(0x1b2),_0x2070fd(0x195),_0x1df517);if(!_0xfb5ecb)return;const _0xf430b2=_0xb2ed4b(_0xfb5ecb)[_0x2070fd(0x189)](0x0,-0x1),_0x173570=_0xf430b2[_0x2070fd(0x18c)];let _0x3f9f1c=_0xfb5ecb;if(_0x173570>_0x4666f0){let _0x3b3b31=_0x173570,_0xddbf1a=null;for(;_0x3b3b31>_0x4666f0&&_0x3b3b31>=0x0;)_0x3b3b31--,_0xddbf1a=_0xf430b2[_0x3b3b31];_0xddbf1a&&(_0x3f9f1c=_0xddbf1a,_0x60dc2(_0xfb5ecb,_0x2070fd(0x1b2),null),_0x60dc2(_0xddbf1a,_0x2070fd(0x1b2),_0x2070fd(0x195)));}else{if(_0x173570<_0x4666f0){let _0x543542=_0x173570,_0x59d8d5=_0xfb5ecb;for(;_0x543542<_0x4666f0;){const _0x42f9a5=_0x59d8d5[_0x2070fd(0x19d)][_0x2070fd(0x1a8)](_0x52e8aa=>_0xa02f0b(_0x52e8aa));if(0x0===_0x42f9a5[_0x2070fd(0x18c)])break;_0x543542++,_0x59d8d5=_0x42f9a5[_0x42f9a5[_0x2070fd(0x18c)]-0x1];}_0x59d8d5&&(_0x3f9f1c=_0x59d8d5,_0x60dc2(_0xfb5ecb,_0x2070fd(0x1b2),null),_0x60dc2(_0x59d8d5,_0x2070fd(0x1b2),_0x2070fd(0x195)));}}let _0x9f824b=_0x3f9f1c;for(;_0x9f824b;){for(;_0x9f824b[_0x2070fd(0x18d)];)_0x9f824b=_0x9f824b[_0x2070fd(0x18d)],_0xa02f0b(_0x9f824b)&&_0x60dc2(_0x9f824b,_0x2070fd(0x1b2),_0x2070fd(0x195));_0x9f824b=_0x9f824b[_0x2070fd(0x180)];}}[_0x5a0b23(0x190)](_0x441bf6){const _0x41e534=_0x5a0b23;return Boolean(_0x41e534(0x17e)===_0x1760ca(_0x441bf6,_0x41e534(0x18a)));}[_0x5a0b23(0x1b5)](_0x38af3){const _0x15a03d=_0x5a0b23;return Boolean((_0x1760ca(_0x38af3,_0x15a03d(0x18a))||'')[_0x15a03d(0x18c)]>0x0&&_0x15a03d(0x17e)!==_0x1760ca(_0x38af3,_0x15a03d(0x18a)));}[_0x5a0b23(0x177)](_0x1be541){const _0x48acbf=_0x5a0b23;return!!_0x1be541&&Boolean(_0x2d1d6c(_0x1be541)&&_0x396b9e(_0x1be541)[_0x48acbf(0x1a0)](/removed[\s*-]data-id="[^"]+"/));}[_0x5a0b23(0x1a2)](_0x4df729){const _0x315e8=_0x5a0b23;let _0x2d5768=_0x4df729[_0x315e8(0x180)];for(;_0x2d5768;){if(_0x1760ca(_0x2d5768,_0x315e8(0x1ad)))return!0x0;_0x2d5768=_0x2d5768[_0x315e8(0x180)];}return!0x1;}[_0x5a0b23(0x187)](_0x254e6a){const _0x56cf85=_0x5a0b23;return Boolean(_0x2d1d6c(_0x254e6a)&&_0x396b9e(_0x254e6a)[_0x56cf85(0x1a0)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x49de9f=_0x3dcc;(function(_0x2060ef,_0x277ae7){const _0x15d233=_0x3dcc,_0x360f51=_0x2060ef();while(!![]){try{const _0x2e7a0b=parseInt(_0x15d233(0x13d))/0x1+-parseInt(_0x15d233(0x14f))/0x2+-parseInt(_0x15d233(0x14e))/0x3*(-parseInt(_0x15d233(0x126))/0x4)+parseInt(_0x15d233(0x160))/0x5*(parseInt(_0x15d233(0x149))/0x6)+parseInt(_0x15d233(0x14c))/0x7+-parseInt(_0x15d233(0x142))/0x8*(parseInt(_0x15d233(0x159))/0x9)+-parseInt(_0x15d233(0x162))/0xa;if(_0x2e7a0b===_0x277ae7)break;else _0x360f51['push'](_0x360f51['shift']());}catch(_0x1b108d){_0x360f51['push'](_0x360f51['shift']());}}}(_0x6f44,0x3d03f));function _0x3dcc(_0xc31514,_0x1cb50f){const _0x6f44e=_0x6f44();return _0x3dcc=function(_0x3dcc54,_0x1a8e81){_0x3dcc54=_0x3dcc54-0x122;let _0x24535a=_0x6f44e[_0x3dcc54];return _0x24535a;},_0x3dcc(_0xc31514,_0x1cb50f);}function _0x6f44(){const _0x18c10f=['lastChild','invalidIds','_findReferenceNode','474868dCpjBh','_markLastTagElementUnstable','data-unstable','_replaceNode','includes','45040FRehFB','push','_getUid','match','data-id','_removeSpecialComments','_findFallbackReferenceNode','1860WujYVY','_isExistingNode','new-element','1080037WdxfiX','filter','492bBIQyy','952088vVyNzU','parentNode','_storeDeletedElementIds','_existingDataIds','cutAfterLastChange','beforebegin','data-wrapped-id','nextSibling','_isDelNode','length','369KWsMju','previousSibling','forEach','_isExistingContentComment','cloneNode','merge','afterbegin','4895YSnnSr','_findPrevElementWithDataId','4535880qWuBze','true','_markWrappedElements','nodeType','_insertNodes','childNodes','afterend','from','_hasWrappedParent','data-removed','_getNodeDataId','11652WOkFhJ','splice','_markUnstableElements','lastTouchedId','trim','modifiedIds','map','reverse','replaceRemovedWith','_findNextElementWithDataId','_touchedNodesState','removedIds','slice','markUnstableElements','_isNewNode','_generateUid','indexOf','newIds','has','markUnstableElementsDepth'];_0x6f44=function(){return _0x18c10f;};return _0x6f44();}import{ObservableMixin as _0x4fad73,uid as _0xd1e83}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x4d5921,findByAttribute as _0x15c23b,getAttribute as _0x98a456,isComment as _0x231838,isTag as _0x343f03,insertElement as _0xdfb5d1,moveElement as _0x234818,removeElement as _0xf2ba7a,replaceElement as _0x4f87b9,serialize as _0x51cff2,setAttribute as _0x1a99a6,clone as _0x241e4c,findAllComments as _0x11492b,getParents as _0x57e71e,getNodeNestingLevel as _0x5701b4,areNodesSame as _0x22b989,removeElementsAfter as _0x2af53e}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x4fad73(){[_0x49de9f(0x135)];[_0x49de9f(0x130)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x49de9f(0x152)]=new Set();constructor(_0x1ccc9e){const _0xddb038=_0x49de9f;super(),this[_0xddb038(0x135)]=_0x1ccc9e||_0xd1e83;}[_0x49de9f(0x15e)](_0x84caa3,_0x54286f,_0x5b79f9){const _0x302b0e=_0x49de9f,_0x4550ae=_0x241e4c(_0x84caa3);if(0x0===_0x54286f[_0x302b0e(0x167)][_0x302b0e(0x158)]){const _0x1e9b4f=[];return _0x4d5921(_0x302b0e(0x146),_0x302b0e(0x14b),_0x4550ae)[_0x302b0e(0x15b)](_0x39d96d=>{const _0x2efcda=_0x302b0e,_0x77d337=this[_0x2efcda(0x135)]();_0x1a99a6(_0x39d96d,_0x2efcda(0x146),_0x77d337),_0x1e9b4f[_0x2efcda(0x143)](_0x77d337);}),this[_0x302b0e(0x147)](_0x4550ae),{'parsedContent':_0x4550ae,'newNodeIds':_0x1e9b4f,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5b79f9&&_0x5b79f9[_0x302b0e(0x133)]&&this[_0x302b0e(0x13e)](_0x4550ae),this[_0x302b0e(0x130)][_0x302b0e(0x137)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x12b)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x131)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x13b)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x129)]=null,this[_0x302b0e(0x152)]=new Set(_0x4d5921(_0x302b0e(0x146),null,_0x54286f)[_0x302b0e(0x12c)](_0x172f51=>_0x98a456(_0x172f51,_0x302b0e(0x146)))[_0x302b0e(0x14d)](_0x502099=>!!_0x502099));let _0x217b41=-0x1,_0x4cfe9b=!0x1;const _0x1897fb=_0x4550ae[_0x302b0e(0x167)],_0x3f6aea=Array[_0x302b0e(0x122)](_0x1897fb)[_0x302b0e(0x14d)](_0x5f4016=>!(0x3===_0x5f4016[_0x302b0e(0x165)]&&''===_0x51cff2(_0x5f4016)[_0x302b0e(0x12a)]())),_0x1e7a27=_0x3f6aea[_0x302b0e(0x158)];for(let _0x4745dd=0x0;_0x4745dd<_0x1e7a27;_0x4745dd++){const _0xd9d6f9=_0x3f6aea[_0x4745dd],_0x1f8b66=_0x3f6aea[_0x4745dd+0x1];if(this[_0x302b0e(0x134)](_0xd9d6f9)){if(-0x1===_0x217b41&&(_0x217b41=_0x4745dd),this[_0x302b0e(0x164)](_0xd9d6f9),!this[_0x302b0e(0x134)](_0x1f8b66)){const [_0x4e1a3c,_0x3c6fba]=this[_0x302b0e(0x13c)](_0xd9d6f9,_0x4cfe9b,_0x54286f);if(_0x4e1a3c){const _0x1e5a11=Array[_0x302b0e(0x122)](_0x3f6aea)[_0x302b0e(0x132)](_0x217b41,_0x4745dd+0x1);this[_0x302b0e(0x166)](_0x4e1a3c,_0x1e5a11,_0x3c6fba),_0x217b41=-0x1;}}}else{if(this[_0x302b0e(0x15c)](_0xd9d6f9))_0x4cfe9b=!0x0;else{if(this[_0x302b0e(0x14a)](_0xd9d6f9)){const _0x1ad965=_0x98a456(_0xd9d6f9,_0x302b0e(0x146));if(_0x1ad965&&this[_0x302b0e(0x152)][_0x302b0e(0x138)](_0x1ad965)){const _0x286072=_0x15c23b(_0x302b0e(0x146),_0x1ad965,_0x54286f);this[_0x302b0e(0x140)](_0x286072,_0xd9d6f9);}if(this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x141)](_0x1ad965)){const _0x1921e9=this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x136)](_0x1ad965);this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x127)](_0x1921e9,0x1);}}else{if(this[_0x302b0e(0x157)](_0xd9d6f9)){const _0x3e61a8=_0x98a456(_0xd9d6f9,_0x302b0e(0x146));this[_0x302b0e(0x130)][_0x302b0e(0x12b)][_0x302b0e(0x141)](_0x3e61a8)||this[_0x302b0e(0x151)](_0xd9d6f9);}}}}}for(const _0x373bb0 of this[_0x302b0e(0x130)][_0x302b0e(0x131)]){const _0x290c97=_0x15c23b(_0x302b0e(0x146),_0x373bb0,_0x54286f);if(_0x290c97){if(_0x5b79f9&&_0x5b79f9[_0x302b0e(0x12e)]){this[_0x302b0e(0x130)][_0x302b0e(0x129)]=_0x373bb0;const _0xcd1138=_0x5b79f9[_0x302b0e(0x12e)][_0x302b0e(0x15d)](!0x0);_0x1a99a6(_0xcd1138,_0x302b0e(0x146),_0x373bb0),_0x1a99a6(_0xcd1138,_0x302b0e(0x124),_0x302b0e(0x163)),_0x4f87b9(_0x290c97,_0xcd1138);}else _0xf2ba7a(_0x290c97);}}if(_0x4d5921(_0x302b0e(0x155),null,_0x54286f)[_0x302b0e(0x15b)](_0x387477=>{const _0x534066=_0x302b0e,_0x5906e5=_0x98a456(_0x387477,_0x534066(0x155)),_0x4774b3=_0x15c23b(_0x534066(0x146),_0x5906e5,_0x54286f);_0x4774b3&&_0x234818(_0x4774b3,_0x387477);}),_0x4d5921(_0x302b0e(0x146),_0x302b0e(0x14b),_0x54286f)[_0x302b0e(0x15b)](_0x7ce45f=>{const _0x9ab5d3=_0x302b0e,_0x329cad=this[_0x9ab5d3(0x144)](_0x7ce45f);_0x1a99a6(_0x7ce45f,_0x9ab5d3(0x146),_0x329cad),this[_0x9ab5d3(0x130)][_0x9ab5d3(0x137)][_0x9ab5d3(0x143)](_0x329cad);}),this[_0x302b0e(0x147)](_0x54286f),_0x5b79f9&&_0x5b79f9[_0x302b0e(0x133)]&&this[_0x302b0e(0x128)](_0x54286f,_0x5b79f9[_0x302b0e(0x139)]||0x0),_0x5b79f9&&_0x5b79f9[_0x302b0e(0x153)]&&this[_0x302b0e(0x130)][_0x302b0e(0x129)]){let _0x14c602=_0x15c23b(_0x302b0e(0x146),this[_0x302b0e(0x130)][_0x302b0e(0x129)],_0x54286f);for(;_0x14c602;)_0x2af53e(_0x14c602),_0x14c602=_0x14c602[_0x302b0e(0x150)];}return{'parsedContent':_0x54286f,'newNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x137)],'modifiedNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x12b)],'removedNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x131)]};}[_0x49de9f(0x166)](_0x5cd1a0,_0x1a01b2,_0x359d2d){const _0x3035c8=_0x49de9f;for(const _0x1f2fc8 of _0x1a01b2){const _0x3d3f78=this[_0x3035c8(0x144)](_0x1f2fc8);_0x1a99a6(_0x1f2fc8,_0x3035c8(0x146),_0x3d3f78),this[_0x3035c8(0x130)][_0x3035c8(0x137)][_0x3035c8(0x143)](_0x3d3f78),this[_0x3035c8(0x130)][_0x3035c8(0x129)]=_0x3d3f78;}const _0x199b22=_0x3035c8(0x15f)===_0x359d2d||_0x3035c8(0x168)===_0x359d2d?_0x1a01b2[_0x3035c8(0x12d)]():_0x1a01b2;for(const _0x6a451 of _0x199b22)_0xdfb5d1(_0x5cd1a0,_0x6a451,_0x359d2d);}[_0x49de9f(0x140)](_0x4b3da1,_0x1cfc53){const _0x24c148=_0x49de9f;if(!_0x4b3da1)return;if(_0x22b989(_0x4b3da1,_0x1cfc53))return;const _0x4789fa=this[_0x24c148(0x144)](_0x4b3da1);_0x1a99a6(_0x1cfc53,_0x24c148(0x146),_0x4789fa),this[_0x24c148(0x130)][_0x24c148(0x12b)][_0x24c148(0x143)](_0x4789fa),this[_0x24c148(0x130)][_0x24c148(0x129)]=_0x4789fa,_0x4f87b9(_0x4b3da1,_0x1cfc53[_0x24c148(0x15d)](!0x0));}[_0x49de9f(0x13c)](_0x9d224d,_0x2fe52b,_0x65f623){const _0x1a7fc3=_0x49de9f,_0xb6fe03=this[_0x1a7fc3(0x161)](_0x9d224d,!0x1);if(_0xb6fe03){const _0x1c0cac=this[_0x1a7fc3(0x125)](_0xb6fe03),_0x74bbf1=_0x15c23b(_0x1a7fc3(0x146),_0x1c0cac,_0x65f623);if(_0x74bbf1)return[_0x74bbf1,_0x1a7fc3(0x168)];this[_0x1a7fc3(0x130)][_0x1a7fc3(0x13b)][_0x1a7fc3(0x143)](_0x1c0cac);}const _0x18f002=this[_0x1a7fc3(0x12f)](_0x9d224d,!0x1);if(_0x18f002){const _0xc13d5c=this[_0x1a7fc3(0x125)](_0x18f002),_0x3af45c=_0x15c23b(_0x1a7fc3(0x146),_0xc13d5c,_0x65f623);if(_0x3af45c)return[_0x3af45c,_0x1a7fc3(0x154)];this[_0x1a7fc3(0x130)][_0x1a7fc3(0x13b)][_0x1a7fc3(0x143)](_0xc13d5c);}return _0x2fe52b?_0x9d224d[_0x1a7fc3(0x156)]?this[_0x1a7fc3(0x148)](_0x9d224d,_0x65f623):[_0x65f623[_0x1a7fc3(0x167)][_0x65f623[_0x1a7fc3(0x167)][_0x1a7fc3(0x158)]-0x1],_0x1a7fc3(0x168)]:[_0x65f623[_0x1a7fc3(0x167)][0x0],_0x1a7fc3(0x154)];}[_0x49de9f(0x148)](_0x19e8dc,_0x35d606){const _0x23dc2f=_0x49de9f,_0xd6d705=[],_0x4f730a=this[_0x23dc2f(0x161)](_0x19e8dc,!0x0);if(_0x4f730a){const _0x1e8449=this[_0x23dc2f(0x125)](_0x4f730a),_0x29b456=_0x15c23b(_0x23dc2f(0x146),_0x1e8449,_0x35d606);_0x29b456&&_0xd6d705[_0x23dc2f(0x143)]([_0x29b456,_0x23dc2f(0x168)]);}const _0x1ab793=this[_0x23dc2f(0x12f)](_0x19e8dc,!0x0);if(_0x1ab793){const _0x521043=this[_0x23dc2f(0x125)](_0x1ab793),_0x2e4a27=_0x15c23b(_0x23dc2f(0x146),_0x521043,_0x35d606);_0x2e4a27&&_0xd6d705[_0x23dc2f(0x143)]([_0x2e4a27,_0x23dc2f(0x154)]);}if(_0xd6d705[_0x23dc2f(0x158)]>0x1)return _0x5701b4(_0xd6d705[0x0][0x0])<=_0x5701b4(_0xd6d705[0x1][0x0])?_0xd6d705[0x0]:_0xd6d705[0x1];return 0x1===_0xd6d705[_0x23dc2f(0x158)]?_0xd6d705[0x0]:[_0x35d606[_0x23dc2f(0x13a)],_0x23dc2f(0x168)];}[_0x49de9f(0x12f)](_0x834852,_0x139ba4){const _0x45b58f=_0x49de9f;let _0x5b2907=_0x834852[_0x45b58f(0x156)],_0x58e1c8=null,_0x364ed2=!0x1;for(;_0x5b2907;){if(_0x231838(_0x5b2907)){if(this[_0x45b58f(0x157)](_0x5b2907)&&(_0x58e1c8=_0x5b2907),this[_0x45b58f(0x15c)](_0x5b2907)&&_0x139ba4&&!_0x364ed2){_0x364ed2=!0x0,_0x5b2907=_0x5b2907[_0x45b58f(0x156)];continue;}break;}const _0x3b1e56=_0x98a456(_0x5b2907,_0x45b58f(0x146));if(_0x3b1e56&&_0x45b58f(0x14b)!==_0x3b1e56&&this[_0x45b58f(0x152)][_0x45b58f(0x138)](_0x3b1e56)){_0x58e1c8=_0x5b2907;break;}_0x5b2907=_0x5b2907[_0x45b58f(0x156)];}return _0x58e1c8;}[_0x49de9f(0x161)](_0x36e56f,_0x5aaf06){const _0x544385=_0x49de9f;let _0x5725e9=_0x36e56f[_0x544385(0x15a)],_0x378a88=null,_0x3f04fd=!0x1;for(;_0x5725e9;){if(_0x231838(_0x5725e9)){if(this[_0x544385(0x157)](_0x5725e9)&&(_0x378a88=_0x5725e9),this[_0x544385(0x15c)](_0x5725e9)&&_0x5aaf06&&!_0x3f04fd){_0x3f04fd=!0x0,_0x5725e9=_0x5725e9[_0x544385(0x15a)];continue;}break;}const _0x222df0=_0x98a456(_0x5725e9,_0x544385(0x146));if(_0x222df0&&_0x544385(0x14b)!==_0x222df0&&this[_0x544385(0x152)][_0x544385(0x138)](_0x222df0)){_0x378a88=_0x5725e9;break;}_0x5725e9=_0x5725e9[_0x544385(0x15a)];}return _0x378a88;}[_0x49de9f(0x164)](_0x4f7d2d){const _0x5f4d12=_0x49de9f;_0x343f03(_0x4f7d2d)&&_0x4d5921(_0x5f4d12(0x146),null,_0x4f7d2d)[_0x5f4d12(0x15b)](_0x4eb481=>{const _0x16c7fc=_0x5f4d12;if(this[_0x16c7fc(0x14a)](_0x4eb481)&&!this[_0x16c7fc(0x123)](_0x4eb481)){const _0x44963b=_0x98a456(_0x4eb481,_0x16c7fc(0x146));_0x1a99a6(_0x4eb481,_0x16c7fc(0x155),_0x44963b),_0x1a99a6(_0x4eb481,_0x16c7fc(0x146),null);}});}[_0x49de9f(0x125)](_0x4b3e2c){const _0x208824=_0x49de9f;if(!_0x4b3e2c)return null;if(_0x343f03(_0x4b3e2c))return _0x98a456(_0x4b3e2c,_0x208824(0x146));if(_0x231838(_0x4b3e2c)){const _0x4e8177=_0x51cff2(_0x4b3e2c)[_0x208824(0x145)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4e8177&&_0x4e8177[0x1])return _0x4e8177[0x1];}return null;}[_0x49de9f(0x151)](_0x254d8d){const _0x5f2242=_0x49de9f;if(_0x231838(_0x254d8d)){const _0x5ebcfd=_0x51cff2(_0x254d8d)[_0x5f2242(0x145)](/removed[\s*-]data-id="([^"]+)"/);_0x5ebcfd&&_0x5ebcfd[0x1]&&this[_0x5f2242(0x130)][_0x5f2242(0x131)][_0x5f2242(0x143)](_0x5ebcfd[0x1]);}}[_0x49de9f(0x144)](_0xcc149e){const _0x52fd92=_0x49de9f;return this[_0x52fd92(0x14a)](_0xcc149e)?_0x98a456(_0xcc149e,_0x52fd92(0x146)):this[_0x52fd92(0x135)]();}[_0x49de9f(0x147)](_0x1b41ba){const _0x5b228d=_0x49de9f;_0x11492b(_0x1b41ba)[_0x5b228d(0x14d)](_0xb8756=>this[_0x5b228d(0x157)](_0xb8756)||this[_0x5b228d(0x15c)](_0xb8756))[_0x5b228d(0x15b)](_0x844e12=>{_0xf2ba7a(_0x844e12);});}[_0x49de9f(0x13e)](_0x7da7e1){const _0x31d14b=_0x49de9f,_0x431af4=_0x7da7e1[_0x31d14b(0x167)],_0x289a96=_0x431af4[_0x431af4[_0x31d14b(0x158)]-0x1];_0x289a96&&_0x343f03(_0x289a96)&&_0x1a99a6(_0x289a96,_0x31d14b(0x13f),_0x31d14b(0x163));}[_0x49de9f(0x128)](_0x20feeb,_0x42c382){const _0x15e4fc=_0x49de9f,_0x36514f=_0x15c23b(_0x15e4fc(0x13f),_0x15e4fc(0x163),_0x20feeb);if(!_0x36514f)return;const _0x2e1f99=_0x57e71e(_0x36514f)[_0x15e4fc(0x132)](0x0,-0x1),_0x3a66fa=_0x2e1f99[_0x15e4fc(0x158)];let _0x188488=_0x36514f;if(_0x3a66fa>_0x42c382){let _0x1ddf0f=_0x3a66fa,_0x158bf2=null;for(;_0x1ddf0f>_0x42c382&&_0x1ddf0f>=0x0;)_0x1ddf0f--,_0x158bf2=_0x2e1f99[_0x1ddf0f];_0x158bf2&&(_0x188488=_0x158bf2,_0x1a99a6(_0x36514f,_0x15e4fc(0x13f),null),_0x1a99a6(_0x158bf2,_0x15e4fc(0x13f),_0x15e4fc(0x163)));}else{if(_0x3a66fa<_0x42c382){let _0x49a5d4=_0x3a66fa,_0x12ca37=_0x36514f;for(;_0x49a5d4<_0x42c382;){const _0x551fc3=_0x12ca37[_0x15e4fc(0x167)][_0x15e4fc(0x14d)](_0x458b4b=>_0x343f03(_0x458b4b));if(0x0===_0x551fc3[_0x15e4fc(0x158)])break;_0x49a5d4++,_0x12ca37=_0x551fc3[_0x551fc3[_0x15e4fc(0x158)]-0x1];}_0x12ca37&&(_0x188488=_0x12ca37,_0x1a99a6(_0x36514f,_0x15e4fc(0x13f),null),_0x1a99a6(_0x12ca37,_0x15e4fc(0x13f),_0x15e4fc(0x163)));}}let _0x1adffc=_0x188488;for(;_0x1adffc;){for(;_0x1adffc[_0x15e4fc(0x156)];)_0x1adffc=_0x1adffc[_0x15e4fc(0x156)],_0x343f03(_0x1adffc)&&_0x1a99a6(_0x1adffc,_0x15e4fc(0x13f),_0x15e4fc(0x163));_0x1adffc=_0x1adffc[_0x15e4fc(0x150)];}}[_0x49de9f(0x134)](_0x1bc481){const _0x54115c=_0x49de9f;return Boolean(_0x54115c(0x14b)===_0x98a456(_0x1bc481,_0x54115c(0x146)));}[_0x49de9f(0x14a)](_0x350441){const _0x5db1cb=_0x49de9f;return Boolean((_0x98a456(_0x350441,_0x5db1cb(0x146))||'')[_0x5db1cb(0x158)]>0x0&&_0x5db1cb(0x14b)!==_0x98a456(_0x350441,_0x5db1cb(0x146)));}[_0x49de9f(0x157)](_0x19d386){const _0xeae8c=_0x49de9f;return!!_0x19d386&&Boolean(_0x231838(_0x19d386)&&_0x51cff2(_0x19d386)[_0xeae8c(0x145)](/removed[\s*-]data-id="[^"]+"/));}[_0x49de9f(0x123)](_0x58a877){const _0xb44196=_0x49de9f;let _0x35baae=_0x58a877[_0xb44196(0x150)];for(;_0x35baae;){if(_0x98a456(_0x35baae,_0xb44196(0x155)))return!0x0;_0x35baae=_0x35baae[_0xb44196(0x150)];}return!0x1;}[_0x49de9f(0x15c)](_0x223e07){const _0x371b20=_0x49de9f;return Boolean(_0x231838(_0x223e07)&&_0x51cff2(_0x223e07)[_0x371b20(0x145)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xf943(){const _0x4dd3a1=['_parseHTML','<dummy>','convertMarkdownToHTML','3700565xcVyMM','541350oBsbcf','296OpQxLV','867127POuvZL','3440aVgJZi','children','</dummy>','parse','parseAndNormalizeHTML','replace','111FadzMi','87808hyDVGg','13788DHvglE','_m2html','78604rUjYqU','160900cKgSEH','6OPWblM'];_0xf943=function(){return _0x4dd3a1;};return _0xf943();}const _0x453a7f=_0x1052;function _0x1052(_0x51a8d2,_0x5d92b0){const _0xf943dc=_0xf943();return _0x1052=function(_0x1052c1,_0x1fa688){_0x1052c1=_0x1052c1-0x105;let _0x5baee8=_0xf943dc[_0x1052c1];return _0x5baee8;},_0x1052(_0x51a8d2,_0x5d92b0);}(function(_0x5aac8b,_0xe9bc63){const _0x15a17e=_0x1052,_0x3941a1=_0x5aac8b();while(!![]){try{const _0x19c400=-parseInt(_0x15a17e(0x106))/0x1+parseInt(_0x15a17e(0x118))/0x2+-parseInt(_0x15a17e(0x10d))/0x3*(-parseInt(_0x15a17e(0x111))/0x4)+-parseInt(_0x15a17e(0x112))/0x5*(parseInt(_0x15a17e(0x113))/0x6)+-parseInt(_0x15a17e(0x10e))/0x7*(parseInt(_0x15a17e(0x105))/0x8)+parseInt(_0x15a17e(0x10f))/0x9*(parseInt(_0x15a17e(0x107))/0xa)+parseInt(_0x15a17e(0x117))/0xb;if(_0x19c400===_0xe9bc63)break;else _0x3941a1['push'](_0x3941a1['shift']());}catch(_0x1a06cd){_0x3941a1['push'](_0x3941a1['shift']());}}}(_0xf943,0x79856));import{ObservableMixin as _0x544d34}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x7e4209}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x385cdb}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x544d34(){[_0x453a7f(0x110)];constructor(){const _0x40706e=_0x453a7f;super(),this[_0x40706e(0x110)]=new _0x7e4209();}[_0x453a7f(0x116)](_0x5cc76e){const _0x115b86=_0x453a7f,_0x1fd378=this[_0x115b86(0x110)][_0x115b86(0x10a)](_0x5cc76e);return this[_0x115b86(0x10b)](_0x1fd378);}[_0x453a7f(0x10b)](_0x2af16f){const _0x288706=_0x453a7f;return this[_0x288706(0x114)](_0x2af16f);}[_0x453a7f(0x114)](_0x48e8ce){const _0x31a193=_0x453a7f,_0x2e51d2=_0x48e8ce[_0x31a193(0x10c)](/^\t+/gm,'\x20')[_0x31a193(0x10c)](/\n*/g,'')[_0x31a193(0x10c)](/\s+/g,'\x20')[_0x31a193(0x10c)](/<[^>]*?$/g,''),_0x28d4dd=_0x385cdb(_0x31a193(0x115)+_0x2e51d2+_0x31a193(0x109));return _0x28d4dd[_0x31a193(0x108)]=_0x28d4dd[_0x31a193(0x108)][0x0][_0x31a193(0x108)],_0x28d4dd;}}
23
+ const _0x4bd912=_0x522e;function _0x522e(_0x54f3c6,_0x3c423f){const _0x250808=_0x2508();return _0x522e=function(_0x522e89,_0x22080f){_0x522e89=_0x522e89-0x108;let _0x37bb8c=_0x250808[_0x522e89];return _0x37bb8c;},_0x522e(_0x54f3c6,_0x3c423f);}(function(_0x44dfac,_0x3e0f8c){const _0x53d726=_0x522e,_0x5357c6=_0x44dfac();while(!![]){try{const _0x153bc7=-parseInt(_0x53d726(0x112))/0x1*(-parseInt(_0x53d726(0x116))/0x2)+parseInt(_0x53d726(0x113))/0x3*(parseInt(_0x53d726(0x11c))/0x4)+parseInt(_0x53d726(0x110))/0x5*(-parseInt(_0x53d726(0x10e))/0x6)+parseInt(_0x53d726(0x10b))/0x7*(parseInt(_0x53d726(0x119))/0x8)+parseInt(_0x53d726(0x10a))/0x9+parseInt(_0x53d726(0x118))/0xa*(parseInt(_0x53d726(0x117))/0xb)+-parseInt(_0x53d726(0x10f))/0xc;if(_0x153bc7===_0x3e0f8c)break;else _0x5357c6['push'](_0x5357c6['shift']());}catch(_0x55bf3c){_0x5357c6['push'](_0x5357c6['shift']());}}}(_0x2508,0x48077));import{ObservableMixin as _0x2e69a2}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x3d978d}from'@ckeditor/ckeditor5-markdown-gfm';function _0x2508(){const _0x285029=['22018068bTCXAs','131725ImjKff','</dummy>','576553isFPiI','875994sUZmNG','parseAndNormalizeHTML','children','2jojwDr','4057471NGFhzP','10sQCGTV','968bEzFXB','_parseHTML','<dummy>','8dgwAhr','convertMarkdownToHTML','replace','1442853JfBTpx','28511nnMndY','_m2html','parse','12NMCmIw'];_0x2508=function(){return _0x285029;};return _0x2508();}import{parse as _0x29d5f4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x2e69a2(){[_0x4bd912(0x10c)];constructor(){const _0x310ef0=_0x4bd912;super(),this[_0x310ef0(0x10c)]=new _0x3d978d();}[_0x4bd912(0x108)](_0xc64d46){const _0x2edff0=_0x4bd912,_0x57b5e7=this[_0x2edff0(0x10c)][_0x2edff0(0x10d)](_0xc64d46);return this[_0x2edff0(0x114)](_0x57b5e7);}[_0x4bd912(0x114)](_0x5eb30f){const _0x5c3c65=_0x4bd912;return this[_0x5c3c65(0x11a)](_0x5eb30f);}[_0x4bd912(0x11a)](_0x4154a9){const _0x5c40f3=_0x4bd912,_0x5cd324=_0x4154a9[_0x5c40f3(0x109)](/^\t+/gm,'\x20')[_0x5c40f3(0x109)](/\n*/g,'')[_0x5c40f3(0x109)](/\s+/g,'\x20')[_0x5c40f3(0x109)](/<[^>]*?$/g,''),_0x520cb3=_0x29d5f4(_0x5c40f3(0x11b)+_0x5cd324+_0x5c40f3(0x111));return _0x520cb3[_0x5c40f3(0x115)]=_0x520cb3[_0x5c40f3(0x115)][0x0][_0x5c40f3(0x115)],_0x520cb3;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2a2beb,_0x2589c5){var _0x49303c=_0x392d,_0x54ddc7=_0x2a2beb();while(!![]){try{var _0x2f5754=-parseInt(_0x49303c(0x139))/0x1*(-parseInt(_0x49303c(0x135))/0x2)+-parseInt(_0x49303c(0x12d))/0x3*(parseInt(_0x49303c(0x138))/0x4)+-parseInt(_0x49303c(0x131))/0x5*(-parseInt(_0x49303c(0x12b))/0x6)+parseInt(_0x49303c(0x12e))/0x7+parseInt(_0x49303c(0x137))/0x8*(-parseInt(_0x49303c(0x132))/0x9)+-parseInt(_0x49303c(0x136))/0xa+-parseInt(_0x49303c(0x130))/0xb*(parseInt(_0x49303c(0x12f))/0xc);if(_0x2f5754===_0x2589c5)break;else _0x54ddc7['push'](_0x54ddc7['shift']());}catch(_0x10fa2d){_0x54ddc7['push'](_0x54ddc7['shift']());}}}(_0x4330,0x4942e));import{View as _0x2e46c8}from'ckeditor5/src/ui.js';import{getTranslation as _0x59439f}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x392d(_0x3babdd,_0x56cb19){var _0x433038=_0x4330();return _0x392d=function(_0x392d40,_0x3b03d5){_0x392d40=_0x392d40-0x129;var _0x372a28=_0x433038[_0x392d40];return _0x372a28;},_0x392d(_0x3babdd,_0x56cb19);}function _0x4330(){var _0x30afdb=['1623008ekajmY','4bUpdOa','150010dBpHqe','ck-ai-disclaimer','setTemplate','34758qArKsn','AI_DISCLAIMER_TEXT','1083219otfWrN','2520756VSetYf','2316qQfSvm','21857QgfGKJ','295deYWnh','9KgRBOP','ck-ai-disclaimer__content','div','8NIQEnq','544170mBaiJC'];_0x4330=function(){return _0x30afdb;};return _0x4330();}export class AIDisclaimerView extends _0x2e46c8{constructor(_0x4e698d){var _0x51f4a6=_0x392d;super(_0x4e698d),this[_0x51f4a6(0x12a)]({'tag':_0x51f4a6(0x134),'attributes':{'class':['ck',_0x51f4a6(0x129)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x51f4a6(0x133)]},'children':[{'text':_0x59439f(_0x4e698d,_0x51f4a6(0x12c))}]}]});}}
23
+ (function(_0x48fbc4,_0x37cdc7){var _0x5af0b7=_0x5b24,_0x5d1a06=_0x48fbc4();while(!![]){try{var _0x4f711b=parseInt(_0x5af0b7(0x90))/0x1*(-parseInt(_0x5af0b7(0x9b))/0x2)+parseInt(_0x5af0b7(0x99))/0x3*(-parseInt(_0x5af0b7(0x8e))/0x4)+-parseInt(_0x5af0b7(0x9a))/0x5*(parseInt(_0x5af0b7(0x94))/0x6)+-parseInt(_0x5af0b7(0x93))/0x7*(-parseInt(_0x5af0b7(0x95))/0x8)+-parseInt(_0x5af0b7(0x92))/0x9*(parseInt(_0x5af0b7(0x96))/0xa)+-parseInt(_0x5af0b7(0x97))/0xb+parseInt(_0x5af0b7(0x9c))/0xc;if(_0x4f711b===_0x37cdc7)break;else _0x5d1a06['push'](_0x5d1a06['shift']());}catch(_0x208684){_0x5d1a06['push'](_0x5d1a06['shift']());}}}(_0x4130,0x7f16f));function _0x5b24(_0x2dfb45,_0x54ed2b){var _0x413029=_0x4130();return _0x5b24=function(_0x5b2488,_0x47e0df){_0x5b2488=_0x5b2488-0x8c;var _0x4f671c=_0x413029[_0x5b2488];return _0x4f671c;},_0x5b24(_0x2dfb45,_0x54ed2b);}import{View as _0x395fb2}from'ckeditor5/src/ui.js';import{getTranslation as _0xe2a369}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x4130(){var _0x2ab90c=['ck-ai-disclaimer__content','ck-ai-disclaimer','3748uVwUKW','AI_DISCLAIMER_TEXT','1eGeETO','setTemplate','1293867poOVuJ','8197NkOqto','1645626iKhYQK','464bCSwwn','50AxASjH','8816599RJmMuq','div','336kCbWwW','5WJIHVC','686974LHjvkO','32348004qiosmQ'];_0x4130=function(){return _0x2ab90c;};return _0x4130();}export class AIDisclaimerView extends _0x395fb2{constructor(_0x2ae66c){var _0x3544d2=_0x5b24;super(_0x2ae66c),this[_0x3544d2(0x91)]({'tag':_0x3544d2(0x98),'attributes':{'class':['ck',_0x3544d2(0x8d)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3544d2(0x8c)]},'children':[{'text':_0xe2a369(_0x2ae66c,_0x3544d2(0x8f))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31f6b0=_0x5a99;(function(_0xb558df,_0x4e6e58){const _0x6f1d07=_0x5a99,_0x12bcda=_0xb558df();while(!![]){try{const _0x5618ad=-parseInt(_0x6f1d07(0x15b))/0x1*(parseInt(_0x6f1d07(0x16a))/0x2)+-parseInt(_0x6f1d07(0x160))/0x3+-parseInt(_0x6f1d07(0x14d))/0x4*(parseInt(_0x6f1d07(0x169))/0x5)+parseInt(_0x6f1d07(0x16d))/0x6+-parseInt(_0x6f1d07(0x153))/0x7*(-parseInt(_0x6f1d07(0x168))/0x8)+parseInt(_0x6f1d07(0x166))/0x9+parseInt(_0x6f1d07(0x158))/0xa*(parseInt(_0x6f1d07(0x154))/0xb);if(_0x5618ad===_0x4e6e58)break;else _0x12bcda['push'](_0x12bcda['shift']());}catch(_0x577af4){_0x12bcda['push'](_0x12bcda['shift']());}}}(_0x2556,0x7b224));import{View as _0x6a701a}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x6a701a{constructor(_0x207865,_0x14f40b){const _0xe79e56=_0x5a99;super(_0x207865),this[_0xe79e56(0x146)]({'tag':_0xe79e56(0x155),'attributes':{'class':['ck',_0xe79e56(0x14e)]},'children':this[_0xe79e56(0x14f)](_0x14f40b)});}[_0x31f6b0(0x14f)](_0x248000){const _0x1210fc=_0x31f6b0,_0x30e927=['ck',_0x1210fc(0x15c)];return _0x248000[_0x1210fc(0x163)](_0x59f508=>{const _0x14bfda=_0x1210fc;let _0x391bc7='';switch(_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x151)]){case _0x14bfda(0x15e):_0x391bc7=_0x14bfda(0x15d);break;case _0x14bfda(0x164):_0x391bc7=_0x14bfda(0x148);break;case _0x14bfda(0x16b):_0x391bc7=_0x14bfda(0x157);}return{'tag':_0x59f508[_0x14bfda(0x16e)],'attributes':{'class':[..._0x30e927,_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x149)]?_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x149)]:''],'style':_0x14bfda(0x145)+_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x152)]+_0x14bfda(0x161)+_0x59f508[_0x14bfda(0x14c)][_0x14bfda(0x16c)]+';'+_0x391bc7}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x15f),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x165),'height':_0x31f6b0(0x156),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x147),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x14b),'height':_0x31f6b0(0x156),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x14a),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x165),'height':_0x31f6b0(0x156),'align':_0x31f6b0(0x15e)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x147),'align':_0x31f6b0(0x15e)}}],'aiHistory':ta(0x5,_0x31f6b0(0x15a),_0x31f6b0(0x159),_0x31f6b0(0x15e)),'aiChatResources':ta(0x8,_0x31f6b0(0x15a),_0x31f6b0(0x150),_0x31f6b0(0x15e)),'aiReviewChecks':[{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x167),'height':_0x31f6b0(0x150),'align':_0x31f6b0(0x16b)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x15a),'height':_0x31f6b0(0x150),'align':_0x31f6b0(0x16b)}},{'tag':_0x31f6b0(0x155),'attributes':{'width':_0x31f6b0(0x167),'height':_0x31f6b0(0x150),'align':_0x31f6b0(0x16b)}}]};function _0x5a99(_0x5cbb42,_0x26faaa){const _0x2556e0=_0x2556();return _0x5a99=function(_0x5a997a,_0x1c99e8){_0x5a997a=_0x5a997a-0x145;let _0x1c6753=_0x2556e0[_0x5a997a];return _0x1c6753;},_0x5a99(_0x5cbb42,_0x26faaa);}function _0x2556(){const _0x3274e4=['fill','map','center','250px','8282745FcLXGD','128px','8uBjBrz','442480syGDrq','56346lLBgxN','left','height','3622872vHmvyq','tag','width:\x20','setTemplate','88px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','class','140px','150px','attributes','24TnAdht','ck-ai-skeleton','_createSkeletonItems','24px','align','width','877226bGOYeW','9779epIWjm','div','40px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','12200PXSYHA','44px','100%','31MUPUWR','ck-ai-skeleton__item','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','right','72px','2475960ecoKmB',';\x20height:\x20'];_0x2556=function(){return _0x3274e4;};return _0x2556();}function ta(_0x2fb80e,_0x3f2eea,_0x4a2867,_0x2f836b){const _0x5af4dc=_0x31f6b0;return new Array(_0x2fb80e)[_0x5af4dc(0x162)](null)[_0x5af4dc(0x163)](()=>({'tag':_0x5af4dc(0x155),'attributes':{'width':_0x3f2eea,'height':_0x4a2867,'align':_0x2f836b}}));}
23
+ const _0x22afbc=_0x458c;(function(_0x574d6a,_0x3e3194){const _0x2a6eaf=_0x458c,_0x309dd7=_0x574d6a();while(!![]){try{const _0x35acee=-parseInt(_0x2a6eaf(0x1fa))/0x1*(-parseInt(_0x2a6eaf(0x1d8))/0x2)+parseInt(_0x2a6eaf(0x1ed))/0x3*(parseInt(_0x2a6eaf(0x1e4))/0x4)+parseInt(_0x2a6eaf(0x1d0))/0x5*(parseInt(_0x2a6eaf(0x1e8))/0x6)+-parseInt(_0x2a6eaf(0x1d4))/0x7+-parseInt(_0x2a6eaf(0x1f4))/0x8*(-parseInt(_0x2a6eaf(0x1d1))/0x9)+parseInt(_0x2a6eaf(0x1ef))/0xa*(-parseInt(_0x2a6eaf(0x1f9))/0xb)+parseInt(_0x2a6eaf(0x1e9))/0xc*(-parseInt(_0x2a6eaf(0x1d6))/0xd);if(_0x35acee===_0x3e3194)break;else _0x309dd7['push'](_0x309dd7['shift']());}catch(_0x20f8c3){_0x309dd7['push'](_0x309dd7['shift']());}}}(_0x2fb7,0x60ade));import{View as _0x2607ff}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x2607ff{constructor(_0xb9b290,_0x1471f8){const _0x2a0479=_0x458c;super(_0xb9b290),this[_0x2a0479(0x1e2)]({'tag':_0x2a0479(0x1ee),'attributes':{'class':['ck',_0x2a0479(0x1d2)]},'children':this[_0x2a0479(0x1e0)](_0x1471f8)});}[_0x22afbc(0x1e0)](_0x4f65e2){const _0x37ae50=_0x22afbc,_0x4e84a6=['ck',_0x37ae50(0x1f3)];return _0x4f65e2[_0x37ae50(0x1e1)](_0x4a7de=>{const _0x29b881=_0x37ae50;let _0x1cbfad='';switch(_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1de)]){case _0x29b881(0x1f5):_0x1cbfad=_0x29b881(0x1e5);break;case _0x29b881(0x1f7):_0x1cbfad=_0x29b881(0x1fb);break;case _0x29b881(0x1d7):_0x1cbfad=_0x29b881(0x1dd);}return{'tag':_0x4a7de[_0x29b881(0x1f1)],'attributes':{'class':[..._0x4e84a6,_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1e3)]?_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1e3)]:''],'style':_0x29b881(0x1eb)+_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1ea)]+_0x29b881(0x1ec)+_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1db)]+';'+_0x1cbfad}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1d5),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1d9),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f8),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e6),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f6),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1d9),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f8),'align':_0x22afbc(0x1f5)}}],'aiHistory':ta(0x5,_0x22afbc(0x1e7),_0x22afbc(0x1d3),_0x22afbc(0x1f5)),'aiChatResources':ta(0x8,_0x22afbc(0x1e7),_0x22afbc(0x1da),_0x22afbc(0x1f5)),'aiReviewChecks':[{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1df),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1df),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}}]};function ta(_0x5ac1bd,_0x2929de,_0x3067d7,_0x330042){const _0x31ad54=_0x22afbc;return new Array(_0x5ac1bd)[_0x31ad54(0x1dc)](null)[_0x31ad54(0x1e1)](()=>({'tag':_0x31ad54(0x1ee),'attributes':{'width':_0x2929de,'height':_0x3067d7,'align':_0x330042}}));}function _0x458c(_0xe26a4d,_0xa49569){const _0x2fb717=_0x2fb7();return _0x458c=function(_0x458cf5,_0x25783a){_0x458cf5=_0x458cf5-0x1d0;let _0x332d8a=_0x2fb717[_0x458cf5];return _0x332d8a;},_0x458c(_0xe26a4d,_0xa49569);}function _0x2fb7(){const _0xc32e1c=['72px','5394519wqCNMV','left','1197802pUIfTb','250px','24px','height','fill','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','align','128px','_createSkeletonItems','map','setTemplate','class','4pFiWks','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','150px','100%','6ebDzVw','12UIIKaH','width','width:\x20',';\x20height:\x20','1698882zJiteG','div','4250KbTpDj','40px','tag','attributes','ck-ai-skeleton__item','32nqXnjd','right','140px','center','88px','19459hzBGBN','1VPhnCd','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','1007375TjXGaR','522999tDMaCZ','ck-ai-skeleton','44px','254296NAiulA'];_0x2fb7=function(){return _0xc32e1c;};return _0x2fb7();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2a7e(){const _0x18ae5a=['span','ck-ai-spinner_','1JCXFKT','2082XZayVf','416SyOKtj','10wcJmOH','11196znuMcG','1451904ExmSqp','8zimVGz','ck-ai-spinner','737wzYFyJ','53030vTNdke','extendTemplate','9488760rVPvmO','1710352ULyYqG','1086452FYsQLQ'];_0x2a7e=function(){return _0x18ae5a;};return _0x2a7e();}function _0x1302(_0x55e550,_0x41b253){const _0x2a7e63=_0x2a7e();return _0x1302=function(_0x1302c5,_0x193005){_0x1302c5=_0x1302c5-0x1a1;let _0x7d80d1=_0x2a7e63[_0x1302c5];return _0x7d80d1;},_0x1302(_0x55e550,_0x41b253);}(function(_0x5e1f28,_0x5d02e3){const _0x1fb490=_0x1302,_0x4a77dd=_0x5e1f28();while(!![]){try{const _0x174e33=-parseInt(_0x1fb490(0x1a1))/0x1*(-parseInt(_0x1fb490(0x1ae))/0x2)+-parseInt(_0x1fb490(0x1a2))/0x3*(parseInt(_0x1fb490(0x1a3))/0x4)+-parseInt(_0x1fb490(0x1a4))/0x5*(-parseInt(_0x1fb490(0x1a6))/0x6)+-parseInt(_0x1fb490(0x1ad))/0x7+-parseInt(_0x1fb490(0x1a7))/0x8*(parseInt(_0x1fb490(0x1a5))/0x9)+parseInt(_0x1fb490(0x1aa))/0xa*(parseInt(_0x1fb490(0x1a9))/0xb)+-parseInt(_0x1fb490(0x1ac))/0xc;if(_0x174e33===_0x5d02e3)break;else _0x4a77dd['push'](_0x4a77dd['shift']());}catch(_0x262d75){_0x4a77dd['push'](_0x4a77dd['shift']());}}}(_0x2a7e,0x42e59));import{SpinnerView as _0x4799fb}from'ckeditor5/src/ui.js';import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0x4799fb{constructor(_0x200841=void 0x0){const _0x52e0d3=_0x1302;super();const _0x3f588b=_0x200841?_0x52e0d3(0x1b0)+_0x200841:'';this[_0x52e0d3(0x1ab)]({'tag':_0x52e0d3(0x1af),'attributes':{'class':[_0x52e0d3(0x1a8),_0x3f588b]}});}}
23
+ (function(_0x9ffb7a,_0x1e4be9){const _0x218105=_0x429e,_0x16cba0=_0x9ffb7a();while(!![]){try{const _0x1748b4=parseInt(_0x218105(0x158))/0x1*(-parseInt(_0x218105(0x14c))/0x2)+-parseInt(_0x218105(0x156))/0x3*(-parseInt(_0x218105(0x150))/0x4)+-parseInt(_0x218105(0x157))/0x5+-parseInt(_0x218105(0x154))/0x6+parseInt(_0x218105(0x155))/0x7+-parseInt(_0x218105(0x14d))/0x8*(-parseInt(_0x218105(0x14b))/0x9)+-parseInt(_0x218105(0x152))/0xa;if(_0x1748b4===_0x1e4be9)break;else _0x16cba0['push'](_0x16cba0['shift']());}catch(_0x46a96d){_0x16cba0['push'](_0x16cba0['shift']());}}}(_0x2a01,0xca1a6));import{SpinnerView as _0xf373eb}from'ckeditor5/src/ui.js';function _0x429e(_0x4f20ff,_0x13ed93){const _0x2a0184=_0x2a01();return _0x429e=function(_0x429eb7,_0xd8a348){_0x429eb7=_0x429eb7-0x14b;let _0x94821b=_0x2a0184[_0x429eb7];return _0x94821b;},_0x429e(_0x4f20ff,_0x13ed93);}import'../../../theme/common/aispinner.css';export class AISpinnerView extends _0xf373eb{constructor(_0x23c025=void 0x0){const _0x13881d=_0x429e;super();const _0x1689bb=_0x23c025?_0x13881d(0x14f)+_0x23c025:'';this[_0x13881d(0x153)]({'tag':_0x13881d(0x151),'attributes':{'class':[_0x13881d(0x14e),_0x1689bb]}});}}function _0x2a01(){const _0x587123=['ck-ai-spinner_','72aEiiTC','span','11654390HMeZXK','extendTemplate','1022016aylxPL','8267938PagHoY','275289dawwNX','5873520eoWnts','21676Kkjbmh','2860605awBacy','100pIPucg','40afGipZ','ck-ai-spinner'];_0x2a01=function(){return _0x587123;};return _0x2a01();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x79db1b=_0x566e;function _0x566e(_0x457dc2,_0x566791){const _0x595de5=_0x595d();return _0x566e=function(_0x566ebc,_0x385ed2){_0x566ebc=_0x566ebc-0xa2;let _0x1b21d3=_0x595de5[_0x566ebc];return _0x1b21d3;},_0x566e(_0x457dc2,_0x566791);}(function(_0x3e4aef,_0x11d27d){const _0x32d646=_0x566e,_0x2dd576=_0x3e4aef();while(!![]){try{const _0x111998=parseInt(_0x32d646(0xae))/0x1+parseInt(_0x32d646(0xc9))/0x2+parseInt(_0x32d646(0xa3))/0x3+parseInt(_0x32d646(0xa2))/0x4+parseInt(_0x32d646(0xa5))/0x5+-parseInt(_0x32d646(0xab))/0x6+-parseInt(_0x32d646(0xc0))/0x7;if(_0x111998===_0x11d27d)break;else _0x2dd576['push'](_0x2dd576['shift']());}catch(_0x4c1c81){_0x2dd576['push'](_0x2dd576['shift']());}}}(_0x595d,0xe45a1));import{ButtonView as _0x28e919,IconView as _0xda42a8,ToolbarView as _0x4d2df1}from'ckeditor5/src/ui.js';import{IconCheck as _0x3fc73f,IconCopy as _0x32eed7,IconShowChangesOff as _0x465f13,IconShowChangesOn as _0x44e6eb,IconThumbDown as _0x258f08,IconThumbUp as _0x3902d5}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x27e306}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x595d(){const _0x252062=['AI_MINI_TOOLBAR_LIKE','fire','_setupShowChangesButton','isShowChangesOn','bind','927256myCfrg','isEnabled','extendTemplate','AI_MINI_TOOLBAR_COPY','toggleShowChanges','ck-ai-button-tertiary','showDislike','_setupCopyButton','AI_MINI_TOOLBAR_DISLIKE','showCopy','dislike','dislikeButton','1229252oXvawx','5478222yJtueb','toggleShowChangesEnabled','5920060raALNf','showChangesButton','likeButton','children','copyButton','showChanges','7657854XFpmnM','showLike','customView','1138017dIKMWg','icon','execute','AI_SUGGESTION_BUTTON_SHOW_CHANGES','items','ck-ai-mini-toolbar-copy-button','_config','locale','set','like','addMany','isOn','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','class','_setupRatingButtons','length','full','ck-ai-mini-toolbar-copy-button__check-mark','18951842qEUouQ','ck-ai-mini-toolbar\x20ck-hidden','add','ck-ai-mini-toolbar'];_0x595d=function(){return _0x252062;};return _0x595d();}export class AIMiniToolbarView extends _0x4d2df1{[_0x79db1b(0xa9)];[_0x79db1b(0xa7)];[_0x79db1b(0xd4)];[_0x79db1b(0xa6)];[_0x79db1b(0xb4)];constructor(_0x3687f0,_0x97241c={}){const _0x567beb=_0x79db1b;super(_0x3687f0),this[_0x567beb(0xb6)](_0x567beb(0xca),!0x0),this[_0x567beb(0xb6)](_0x567beb(0xc7),!0x1),this[_0x567beb(0xb4)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x97241c};const _0x49ab83=!(this[_0x567beb(0xb4)][_0x567beb(0xd2)]||this[_0x567beb(0xb4)][_0x567beb(0xaa)]||this[_0x567beb(0xb4)][_0x567beb(0xac)]||this[_0x567beb(0xb4)][_0x567beb(0xcf)]||this[_0x567beb(0xb4)][_0x567beb(0xad)]?.[_0x567beb(0xbd)]);this[_0x567beb(0xbb)]=_0x49ab83?_0x567beb(0xc1):_0x567beb(0xc3),this[_0x567beb(0xb4)][_0x567beb(0xd2)]&&(this[_0x567beb(0xd0)](),this[_0x567beb(0xb2)][_0x567beb(0xc2)](this[_0x567beb(0xa9)])),this[_0x567beb(0xb4)][_0x567beb(0xaa)]&&(this[_0x567beb(0xc6)](),this[_0x567beb(0xb2)][_0x567beb(0xc2)](this[_0x567beb(0xa6)])),this[_0x567beb(0xbc)](),this[_0x567beb(0xb4)][_0x567beb(0xac)]&&this[_0x567beb(0xb2)][_0x567beb(0xc2)](this[_0x567beb(0xa7)]),this[_0x567beb(0xb4)][_0x567beb(0xcf)]&&this[_0x567beb(0xb2)][_0x567beb(0xc2)](this[_0x567beb(0xd4)]),this[_0x567beb(0xb4)][_0x567beb(0xad)]&&this[_0x567beb(0xb2)][_0x567beb(0xb8)](this[_0x567beb(0xb4)][_0x567beb(0xad)]);}[_0x79db1b(0xa4)](_0x40fc1d){const _0x437776=_0x79db1b;this[_0x437776(0xa6)][_0x437776(0xca)]=_0x40fc1d;}[_0x79db1b(0xbc)](){const _0x53918b=_0x79db1b;this[_0x53918b(0xa7)]=new _0x28e919(this[_0x53918b(0xb5)]),this[_0x53918b(0xa7)][_0x53918b(0xb6)]({'icon':_0x3902d5,'label':_0x27e306(this[_0x53918b(0xb5)],_0x53918b(0xc4)),'tooltip':!0x0}),this[_0x53918b(0xa7)][_0x53918b(0xc8)](_0x53918b(0xca))['to'](this),this[_0x53918b(0xa7)]['on'](_0x53918b(0xb0),()=>{const _0x37ac23=_0x53918b;this[_0x37ac23(0xc5)](_0x37ac23(0xb7));}),this[_0x53918b(0xd4)]=new _0x28e919(this[_0x53918b(0xb5)]),this[_0x53918b(0xd4)][_0x53918b(0xb6)]({'icon':_0x258f08,'label':_0x27e306(this[_0x53918b(0xb5)],_0x53918b(0xd1)),'tooltip':!0x0}),this[_0x53918b(0xd4)][_0x53918b(0xc8)](_0x53918b(0xca))['to'](this),this[_0x53918b(0xd4)]['on'](_0x53918b(0xb0),()=>{const _0x27d672=_0x53918b;this[_0x27d672(0xc5)](_0x27d672(0xd3));});}[_0x79db1b(0xd0)](){const _0x325712=_0x79db1b;this[_0x325712(0xa9)]=new _0x28e919(this[_0x325712(0xb5)]),this[_0x325712(0xa9)][_0x325712(0xb6)]({'icon':_0x32eed7,'label':_0x27e306(this[_0x325712(0xb5)],_0x325712(0xcc)),'class':_0x325712(0xb3),'tooltip':!0x0}),this[_0x325712(0xa9)][_0x325712(0xc8)](_0x325712(0xca))['to'](this);const _0x842635=new _0xda42a8();_0x842635[_0x325712(0xb6)]({'content':_0x3fc73f}),_0x842635[_0x325712(0xcb)]({'attributes':{'class':[_0x325712(0xbf)]}}),this[_0x325712(0xa9)]['on'](_0x325712(0xb0),()=>{const _0x455306=_0x325712;this[_0x455306(0xa9)][_0x455306(0xbb)]=_0x455306(0xba),setTimeout(()=>{const _0x1d9df9=_0x455306;this[_0x1d9df9(0xa9)][_0x1d9df9(0xbb)]=_0x1d9df9(0xb3);},0x7d0);}),this[_0x325712(0xa9)][_0x325712(0xa8)][_0x325712(0xc2)](_0x842635);}[_0x79db1b(0xc6)](){const _0x19ee23=_0x79db1b;this[_0x19ee23(0xa6)]=new _0x28e919(this[_0x19ee23(0xb5)]),this[_0x19ee23(0xa6)][_0x19ee23(0xb6)]({'icon':_0x465f13,'label':_0x27e306(this[_0x19ee23(0xb5)],_0x19ee23(0xb1)),'withText':_0x19ee23(0xbe)==this[_0x19ee23(0xb4)][_0x19ee23(0xaa)],'tooltip':_0x19ee23(0xbe)!=this[_0x19ee23(0xb4)][_0x19ee23(0xaa)],'class':_0x19ee23(0xce)}),this[_0x19ee23(0xa6)][_0x19ee23(0xc8)](_0x19ee23(0xb9))['to'](this,_0x19ee23(0xc7)),this[_0x19ee23(0xa6)][_0x19ee23(0xc8)](_0x19ee23(0xca))['to'](this),this[_0x19ee23(0xa6)][_0x19ee23(0xc8)](_0x19ee23(0xaf))['to'](this,_0x19ee23(0xc7),_0x5bcb83=>_0x5bcb83?_0x44e6eb:_0x465f13),this[_0x19ee23(0xa6)]['on'](_0x19ee23(0xb0),()=>{const _0x266823=_0x19ee23;this[_0x266823(0xc5)](_0x266823(0xcd));});}}
23
+ const _0x476251=_0x6f06;function _0x5b01(){const _0x881498=['length','locale','items','3577532PclwBp','7983lMMxMy','5356695HudaMM','toggleShowChangesEnabled','set','addMany','showDislike','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','isOn','dislike','AI_MINI_TOOLBAR_LIKE','execute','2646436OHLLOJ','showChanges','class','customView','_setupShowChangesButton','ck-ai-button-tertiary','ck-ai-mini-toolbar-copy-button','_setupRatingButtons','isShowChangesOn','1430252zScyLF','_setupCopyButton','24760PdQSFV','likeButton','bind','ck-ai-mini-toolbar','fire','icon','isEnabled','_config','like','315732HbjUQW','showLike','38658tDMPua','ck-ai-mini-toolbar-copy-button__check-mark','AI_SUGGESTION_BUTTON_SHOW_CHANGES','children','AI_MINI_TOOLBAR_COPY','extendTemplate','dislikeButton','ck-ai-mini-toolbar\x20ck-hidden','AI_MINI_TOOLBAR_DISLIKE','showCopy','showChangesButton','full','add','toggleShowChanges','3futDUy','copyButton'];_0x5b01=function(){return _0x881498;};return _0x5b01();}(function(_0x1c0ed7,_0x23285b){const _0x15e391=_0x6f06,_0x48b98f=_0x1c0ed7();while(!![]){try{const _0x17a354=parseInt(_0x15e391(0x17a))/0x1+parseInt(_0x15e391(0x16f))/0x2+-parseInt(_0x15e391(0x18a))/0x3*(-parseInt(_0x15e391(0x166))/0x4)+parseInt(_0x15e391(0x15c))/0x5+parseInt(_0x15e391(0x17c))/0x6+parseInt(_0x15e391(0x18f))/0x7+-parseInt(_0x15e391(0x171))/0x8*(parseInt(_0x15e391(0x15b))/0x9);if(_0x17a354===_0x23285b)break;else _0x48b98f['push'](_0x48b98f['shift']());}catch(_0x15acbd){_0x48b98f['push'](_0x48b98f['shift']());}}}(_0x5b01,0x82dfc));import{ButtonView as _0x502b28,IconView as _0x2dfd11,ToolbarView as _0x414cd1}from'ckeditor5/src/ui.js';import{IconCheck as _0xbaf453,IconCopy as _0x24221d,IconShowChangesOff as _0x3d1155,IconShowChangesOn as _0xc87b35,IconThumbDown as _0x198ceb,IconThumbUp as _0x5e3cbf}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x3d8c5a}from'../../utils/common-translations.js';import'../../../../theme/aichat/aiminitoolbar.css';function _0x6f06(_0x2e6782,_0xdff9c7){const _0x5b01f0=_0x5b01();return _0x6f06=function(_0x6f067c,_0x5afea8){_0x6f067c=_0x6f067c-0x15b;let _0x2f943a=_0x5b01f0[_0x6f067c];return _0x2f943a;},_0x6f06(_0x2e6782,_0xdff9c7);}export class AIMiniToolbarView extends _0x414cd1{[_0x476251(0x18b)];[_0x476251(0x172)];[_0x476251(0x182)];[_0x476251(0x186)];[_0x476251(0x178)];constructor(_0x1560cb,_0x3e08fc={}){const _0x564155=_0x476251;super(_0x1560cb),this[_0x564155(0x15e)](_0x564155(0x177),!0x0),this[_0x564155(0x15e)](_0x564155(0x16e),!0x1),this[_0x564155(0x178)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x3e08fc};const _0x193f8b=!(this[_0x564155(0x178)][_0x564155(0x185)]||this[_0x564155(0x178)][_0x564155(0x167)]||this[_0x564155(0x178)][_0x564155(0x17b)]||this[_0x564155(0x178)][_0x564155(0x160)]||this[_0x564155(0x178)][_0x564155(0x169)]?.[_0x564155(0x18c)]);this[_0x564155(0x168)]=_0x193f8b?_0x564155(0x183):_0x564155(0x174),this[_0x564155(0x178)][_0x564155(0x185)]&&(this[_0x564155(0x170)](),this[_0x564155(0x18e)][_0x564155(0x188)](this[_0x564155(0x18b)])),this[_0x564155(0x178)][_0x564155(0x167)]&&(this[_0x564155(0x16a)](),this[_0x564155(0x18e)][_0x564155(0x188)](this[_0x564155(0x186)])),this[_0x564155(0x16d)](),this[_0x564155(0x178)][_0x564155(0x17b)]&&this[_0x564155(0x18e)][_0x564155(0x188)](this[_0x564155(0x172)]),this[_0x564155(0x178)][_0x564155(0x160)]&&this[_0x564155(0x18e)][_0x564155(0x188)](this[_0x564155(0x182)]),this[_0x564155(0x178)][_0x564155(0x169)]&&this[_0x564155(0x18e)][_0x564155(0x15f)](this[_0x564155(0x178)][_0x564155(0x169)]);}[_0x476251(0x15d)](_0x8b3ff){const _0x2923bb=_0x476251;this[_0x2923bb(0x186)][_0x2923bb(0x177)]=_0x8b3ff;}[_0x476251(0x16d)](){const _0x541d5e=_0x476251;this[_0x541d5e(0x172)]=new _0x502b28(this[_0x541d5e(0x18d)]),this[_0x541d5e(0x172)][_0x541d5e(0x15e)]({'icon':_0x5e3cbf,'label':_0x3d8c5a(this[_0x541d5e(0x18d)],_0x541d5e(0x164)),'tooltip':!0x0}),this[_0x541d5e(0x172)][_0x541d5e(0x173)](_0x541d5e(0x177))['to'](this),this[_0x541d5e(0x172)]['on'](_0x541d5e(0x165),()=>{const _0x31fb2d=_0x541d5e;this[_0x31fb2d(0x175)](_0x31fb2d(0x179));}),this[_0x541d5e(0x182)]=new _0x502b28(this[_0x541d5e(0x18d)]),this[_0x541d5e(0x182)][_0x541d5e(0x15e)]({'icon':_0x198ceb,'label':_0x3d8c5a(this[_0x541d5e(0x18d)],_0x541d5e(0x184)),'tooltip':!0x0}),this[_0x541d5e(0x182)][_0x541d5e(0x173)](_0x541d5e(0x177))['to'](this),this[_0x541d5e(0x182)]['on'](_0x541d5e(0x165),()=>{const _0xe91cdb=_0x541d5e;this[_0xe91cdb(0x175)](_0xe91cdb(0x163));});}[_0x476251(0x170)](){const _0x190ea2=_0x476251;this[_0x190ea2(0x18b)]=new _0x502b28(this[_0x190ea2(0x18d)]),this[_0x190ea2(0x18b)][_0x190ea2(0x15e)]({'icon':_0x24221d,'label':_0x3d8c5a(this[_0x190ea2(0x18d)],_0x190ea2(0x180)),'class':_0x190ea2(0x16c),'tooltip':!0x0}),this[_0x190ea2(0x18b)][_0x190ea2(0x173)](_0x190ea2(0x177))['to'](this);const _0x3f2695=new _0x2dfd11();_0x3f2695[_0x190ea2(0x15e)]({'content':_0xbaf453}),_0x3f2695[_0x190ea2(0x181)]({'attributes':{'class':[_0x190ea2(0x17d)]}}),this[_0x190ea2(0x18b)]['on'](_0x190ea2(0x165),()=>{const _0x2a6260=_0x190ea2;this[_0x2a6260(0x18b)][_0x2a6260(0x168)]=_0x2a6260(0x161),setTimeout(()=>{const _0x5ec03a=_0x2a6260;this[_0x5ec03a(0x18b)][_0x5ec03a(0x168)]=_0x5ec03a(0x16c);},0x7d0);}),this[_0x190ea2(0x18b)][_0x190ea2(0x17f)][_0x190ea2(0x188)](_0x3f2695);}[_0x476251(0x16a)](){const _0x12f88b=_0x476251;this[_0x12f88b(0x186)]=new _0x502b28(this[_0x12f88b(0x18d)]),this[_0x12f88b(0x186)][_0x12f88b(0x15e)]({'icon':_0x3d1155,'label':_0x3d8c5a(this[_0x12f88b(0x18d)],_0x12f88b(0x17e)),'withText':_0x12f88b(0x187)==this[_0x12f88b(0x178)][_0x12f88b(0x167)],'tooltip':_0x12f88b(0x187)!=this[_0x12f88b(0x178)][_0x12f88b(0x167)],'class':_0x12f88b(0x16b)}),this[_0x12f88b(0x186)][_0x12f88b(0x173)](_0x12f88b(0x162))['to'](this,_0x12f88b(0x16e)),this[_0x12f88b(0x186)][_0x12f88b(0x173)](_0x12f88b(0x177))['to'](this),this[_0x12f88b(0x186)][_0x12f88b(0x173)](_0x12f88b(0x176))['to'](this,_0x12f88b(0x16e),_0x5b6cb9=>_0x5b6cb9?_0xc87b35:_0x3d1155),this[_0x12f88b(0x186)]['on'](_0x12f88b(0x165),()=>{const _0xae8ad3=_0x12f88b;this[_0xae8ad3(0x175)](_0xae8ad3(0x189));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ea415=_0x5193;(function(_0x54a83a,_0x1316a9){const _0x8b9a87=_0x5193,_0x1ae7cd=_0x54a83a();while(!![]){try{const _0x4e304e=-parseInt(_0x8b9a87(0x18f))/0x1*(-parseInt(_0x8b9a87(0x19b))/0x2)+-parseInt(_0x8b9a87(0x1af))/0x3+-parseInt(_0x8b9a87(0x19e))/0x4+-parseInt(_0x8b9a87(0x174))/0x5*(parseInt(_0x8b9a87(0x199))/0x6)+-parseInt(_0x8b9a87(0x18a))/0x7*(parseInt(_0x8b9a87(0x17f))/0x8)+-parseInt(_0x8b9a87(0x1b3))/0x9*(-parseInt(_0x8b9a87(0x192))/0xa)+parseInt(_0x8b9a87(0x194))/0xb*(parseInt(_0x8b9a87(0x1a6))/0xc);if(_0x4e304e===_0x1316a9)break;else _0x1ae7cd['push'](_0x1ae7cd['shift']());}catch(_0x1ec83f){_0x1ae7cd['push'](_0x1ae7cd['shift']());}}}(_0x31d6,0x31546));import{View as _0x3c439a}from'ckeditor5/src/ui.js';function _0x5193(_0x4a5c71,_0x4b49a1){const _0x31d663=_0x31d6();return _0x5193=function(_0x519392,_0x5280a9){_0x519392=_0x519392-0x174;let _0x4bf4a1=_0x31d663[_0x519392];return _0x4bf4a1;},_0x5193(_0x4a5c71,_0x4b49a1);}function _0x31d6(){const _0x29c9ae=['queueEmptyPromise','areActionsDisabled','updateContent','setPartActive','availableActions','updateVisibility','41103NumjMU','updateContentParts','bodyCollection','add','234EURCfK','set','index','createCollection','push','enqueue','div','some','_cachedContentParts','hasChanges','10585nXIOid','_switchButtonLabelsPlurality','addEventListener','length','_children','delegate','partDefinition','_actionsView','setContent','AI_SUGGESTION_NO_PARTS_WARNING','ck-ai-suggestion__body__content-parts','48hlihwd','_sourcesView','filter','markAsDone','warning','find','isVisible','_updateContentPartsPromiseQueue','_showUnchangedParts','from','updatePartState','438431tXeyXL','getPartView','hasNonEmptyParts','isEnabled','_areActionsDisabled','1BPwYao','pending','_availableActions','90430hQQUwk','abort','649lBLezq','state','addSource','empty-parts-warning','AI_SUGGESTION_EMPTY_PART_WARNING','444UVrlQK','findIndex','756030wvAxQr','forEach','partsCount','274596phozDx','bind','locale','ck-ai-suggestion__body','hasPendingParts','setTemplate','isTrackChangesOn','_emptyPartsWarningView','41436qzCwVK','isActive','updateSources'];_0x31d6=function(){return _0x29c9ae;};return _0x31d6();}import{AISuggestionBodyViewContentPartView as _0x4d2749}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x129a38}from'../../utils/eventnames.js';import{PromiseQueue as _0x495c53}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x29a8e8}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x53d94a}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x5a00d1}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x17ac92}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x3c439a{[_0x4ea415(0x17b)];[_0x4ea415(0x180)];[_0x4ea415(0x178)];[_0x4ea415(0x18e)];[_0x4ea415(0x187)];[_0x4ea415(0x186)];[_0x4ea415(0x1a5)];[_0x4ea415(0x191)];[_0x4ea415(0x1bb)]=[];constructor(_0xbd089c,_0x5b0bf8){const _0x287bf0=_0x4ea415;super(_0xbd089c);const {areActionsDisabled:_0xa2b2a0,showUnchangedParts:_0x19463c,availableActions:_0x2a3b9b}=_0x5b0bf8;this[_0x287bf0(0x18e)]=_0xa2b2a0,this[_0x287bf0(0x187)]=_0x19463c,this[_0x287bf0(0x191)]=_0x2a3b9b,this[_0x287bf0(0x1b4)](_0x287bf0(0x1a2),!0x1),this[_0x287bf0(0x1b4)](_0x287bf0(0x1a4),!0x1),this[_0x287bf0(0x178)]=this[_0x287bf0(0x1b6)](),this[_0x287bf0(0x186)]=new _0x495c53(),this[_0x287bf0(0x1a5)]=new _0x29a8e8({'id':_0x287bf0(0x197),'initialContent':_0x53d94a(_0xbd089c,_0x287bf0(0x198)),'level':_0x287bf0(0x183)}),this[_0x287bf0(0x1a5)][_0x287bf0(0x185)]=!0x1,this[_0x287bf0(0x17b)]=new _0x5a00d1(_0xbd089c,_0x5b0bf8[_0x287bf0(0x1ad)],this[_0x287bf0(0x18e)]),this[_0x287bf0(0x17b)][_0x287bf0(0x19f)](_0x287bf0(0x1a4))['to'](this),this[_0x287bf0(0x180)]=new _0x17ac92(this[_0x287bf0(0x1a0)],_0x5b0bf8[_0x287bf0(0x1b1)]),_0x5b0bf8[_0x287bf0(0x1aa)]?this[_0x287bf0(0x17b)][_0x287bf0(0x18d)]=!0x1:this[_0x287bf0(0x17b)][_0x287bf0(0x19f)](_0x287bf0(0x18d))['to'](this,_0x287bf0(0x1a2)),this[_0x287bf0(0x17b)][_0x287bf0(0x179)](..._0x129a38)['to'](this),this[_0x287bf0(0x1a3)]({'tag':_0x287bf0(0x1b9),'attributes':{'class':['ck',_0x287bf0(0x1a1)]},'children':[{'tag':_0x287bf0(0x1b9),'attributes':{'class':['ck',_0x287bf0(0x17e)]},'children':this[_0x287bf0(0x178)]},this[_0x287bf0(0x1a5)],this[_0x287bf0(0x17b)],this[_0x287bf0(0x180)]]});}get[_0x4ea415(0x19d)](){const _0x3eb310=_0x4ea415;return this[_0x3eb310(0x178)][_0x3eb310(0x177)];}async[_0x4ea415(0x1b0)]({parts:_0x16ddb4,renderingStrategy:_0x542559,abortSignal:_0x293fad}){const _0x31fa17=_0x4ea415;this[_0x31fa17(0x178)][_0x31fa17(0x177)]?_0x16ddb4[_0x31fa17(0x19c)](_0x2a2a14=>{const _0x2ad4f7=_0x31fa17,_0x10d4a4=this[_0x2ad4f7(0x1bb)][_0x2ad4f7(0x19a)](_0x26d890=>_0x26d890[_0x2ad4f7(0x1b5)]==_0x2a2a14[_0x2ad4f7(0x1b5)]);-0x1===_0x10d4a4?this[_0x2ad4f7(0x1bb)][_0x2ad4f7(0x1b7)](_0x2a2a14):this[_0x2ad4f7(0x1bb)][_0x10d4a4]=_0x2a2a14;}):this[_0x31fa17(0x1bb)]=_0x16ddb4;const _0x1372a2=this[_0x31fa17(0x187)]?_0x16ddb4:_0x16ddb4[_0x31fa17(0x181)](_0x1cde34=>_0x1cde34[_0x31fa17(0x1bc)]);this[_0x31fa17(0x17b)][_0x31fa17(0x175)](_0x1372a2[_0x31fa17(0x177)]>0x1);for(const _0x2087ee of _0x1372a2)this[_0x31fa17(0x186)][_0x31fa17(0x1b8)](async _0x51ddad=>{const _0x4837fe=_0x31fa17;let _0x59f270=this[_0x4837fe(0x18b)](_0x2087ee[_0x4837fe(0x1b5)]);_0x59f270||(_0x59f270=new _0x4d2749(this[_0x4837fe(0x1a0)],{'part':_0x2087ee,'uiIndex':this[_0x4837fe(0x178)][_0x4837fe(0x177)]+0x1,'areActionsDisabled':this[_0x4837fe(0x18e)],'availableActions':this[_0x4837fe(0x191)]}),_0x59f270[_0x4837fe(0x179)](..._0x129a38)['to'](this),this[_0x4837fe(0x178)][_0x4837fe(0x1b2)](_0x59f270),this[_0x4837fe(0x1a2)]=!0x0),await _0x59f270[_0x4837fe(0x1ab)]({'part':_0x2087ee,'renderingStrategy':_0x542559,'showUnchangedParts':this[_0x4837fe(0x187)],'abortSignal':_0x51ddad}),_0x59f270[_0x4837fe(0x182)]();});return _0x293fad?.[_0x31fa17(0x176)](_0x31fa17(0x193),()=>{const _0x2f2bb4=_0x31fa17;this[_0x2f2bb4(0x186)][_0x2f2bb4(0x193)]();}),this[_0x31fa17(0x186)][_0x31fa17(0x1a9)];}[_0x4ea415(0x189)](_0x136305,_0x5dc8a0){const _0x299f62=_0x4ea415,_0x2b03e2=this[_0x299f62(0x18b)](_0x136305);_0x2b03e2&&(_0x2b03e2[_0x299f62(0x195)]=_0x5dc8a0),this[_0x299f62(0x1a2)]=_0x299f62(0x190)==_0x5dc8a0||Array[_0x299f62(0x188)](this[_0x299f62(0x178)])[_0x299f62(0x1ba)](_0x2079f1=>_0x299f62(0x190)==_0x2079f1[_0x299f62(0x195)]);}[_0x4ea415(0x1ac)](_0x551324,_0x31249b){const _0x4b2204=_0x4ea415;if(!0x1===_0x551324){for(const _0x4b3ff9 of this[_0x4b2204(0x178)])_0x4b3ff9[_0x4b2204(0x1a7)]=!0x1;}else{const _0x33252a=this[_0x4b2204(0x18b)](_0x551324);_0x33252a&&(_0x33252a[_0x4b2204(0x1a7)]=_0x31249b);}}[_0x4ea415(0x1a8)](_0x546757){const _0x32013c=_0x4ea415;_0x546757[_0x32013c(0x19c)](_0x4e61d8=>this[_0x32013c(0x180)][_0x32013c(0x196)](_0x4e61d8)),this[_0x32013c(0x180)][_0x32013c(0x185)]=!0x0;}[_0x4ea415(0x18b)](_0x3c940b){const _0x366624=_0x4ea415;return this[_0x366624(0x178)][_0x366624(0x184)](_0x921a1b=>_0x921a1b[_0x366624(0x17a)][_0x366624(0x1b5)]==_0x3c940b)??null;}[_0x4ea415(0x182)](){const _0x273dff=_0x4ea415;if(!this[_0x273dff(0x187)]){const _0x1c0902=!this[_0x273dff(0x1bb)][_0x273dff(0x184)](({hasChanges:_0x20ebc2})=>_0x20ebc2),_0x273d6c=!!this[_0x273dff(0x1bb)][_0x273dff(0x184)](({hasChanges:_0x4b7dd3})=>!_0x4b7dd3);this[_0x273dff(0x1a5)][_0x273dff(0x185)]=0x0==this[_0x273dff(0x178)][_0x273dff(0x177)]||_0x273d6c,_0x1c0902?this[_0x273dff(0x1a5)][_0x273dff(0x17c)](_0x53d94a(this[_0x273dff(0x1a0)],_0x273dff(0x17d))):this[_0x273dff(0x1a5)][_0x273dff(0x17c)](_0x53d94a(this[_0x273dff(0x1a0)],_0x273dff(0x198)));}this[_0x273dff(0x178)][_0x273dff(0x19c)](_0x2316d8=>_0x2316d8[_0x273dff(0x182)]()),this[_0x273dff(0x17b)][_0x273dff(0x1ae)](this[_0x273dff(0x18c)]);}get[_0x4ea415(0x18c)](){const _0x4aff82=_0x4ea415;return this[_0x4aff82(0x178)][_0x4aff82(0x181)](_0x2245e4=>_0x2245e4[_0x4aff82(0x17a)][_0x4aff82(0x1bc)])[_0x4aff82(0x177)]>0x0;}}
23
+ const _0x483cee=_0x3085;(function(_0x362d4c,_0x5bc944){const _0x372be5=_0x3085,_0x35d7b8=_0x362d4c();while(!![]){try{const _0x191af7=-parseInt(_0x372be5(0xdc))/0x1*(parseInt(_0x372be5(0xb9))/0x2)+parseInt(_0x372be5(0xa6))/0x3+-parseInt(_0x372be5(0xb7))/0x4*(-parseInt(_0x372be5(0xc0))/0x5)+-parseInt(_0x372be5(0xa5))/0x6*(-parseInt(_0x372be5(0xcf))/0x7)+-parseInt(_0x372be5(0xc7))/0x8*(-parseInt(_0x372be5(0x96))/0x9)+parseInt(_0x372be5(0xc2))/0xa*(-parseInt(_0x372be5(0xca))/0xb)+-parseInt(_0x372be5(0xb1))/0xc*(parseInt(_0x372be5(0xa1))/0xd);if(_0x191af7===_0x5bc944)break;else _0x35d7b8['push'](_0x35d7b8['shift']());}catch(_0x120bc5){_0x35d7b8['push'](_0x35d7b8['shift']());}}}(_0x4d9e,0xc4abb));function _0x4d9e(){const _0x1958a2=['hasChanges','forEach','filter','isActive','findIndex','_emptyPartsWarningView','delegate','_updateContentPartsPromiseQueue','availableActions','add','updateContent','locale','1183687dVDUxd','updateContentParts','empty-parts-warning','_switchButtonLabelsPlurality','9yxCEZB','hasNonEmptyParts','_showUnchangedParts','abort','ck-ai-suggestion__body','bind','length','some','isTrackChangesOn','addSource','from','39PepWyF','partDefinition','push','updateSources','6HWbMKW','4029060GOPAKu','index','setTemplate','pending','setContent','updatePartState','_sourcesView','_actionsView','AI_SUGGESTION_EMPTY_PART_WARNING','warning','queueEmptyPromise','2396748gOZzoa','markAsDone','AI_SUGGESTION_NO_PARTS_WARNING','_availableActions','createCollection','setPartActive','251092mJmsFE','_cachedContentParts','2cSapRb','partsCount','_areActionsDisabled','isEnabled','hasPendingParts','isVisible','enqueue','95gDdluZ','set','10pfPolR','state','ck-ai-suggestion__body__content-parts','bodyCollection','areActionsDisabled','4287728mDapLr','getPartView','_children','16520933QJDeEM','div','addEventListener','updateVisibility','find','7130669UdFznn'];_0x4d9e=function(){return _0x1958a2;};return _0x4d9e();}function _0x3085(_0x11bc17,_0x349691){const _0x4d9e8d=_0x4d9e();return _0x3085=function(_0x3085b0,_0x3d63d6){_0x3085b0=_0x3085b0-0x93;let _0x26b46a=_0x4d9e8d[_0x3085b0];return _0x26b46a;},_0x3085(_0x11bc17,_0x349691);}import{View as _0x34a859}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x39acb7}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3603f7}from'../../utils/eventnames.js';import{PromiseQueue as _0x2fd6ba}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x722f6b}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x29e22a}from'../../utils/common-translations.js';import{AIChatFeedSuggestionItemActionsView as _0x125457}from'../../../aichat/ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIWebSourcesView as _0x5baefe}from'./aiwebsourcesview.js';export class AISuggestionBodyView extends _0x34a859{[_0x483cee(0xad)];[_0x483cee(0xac)];[_0x483cee(0xc9)];[_0x483cee(0xbb)];[_0x483cee(0x98)];[_0x483cee(0xd7)];[_0x483cee(0xd5)];[_0x483cee(0xb4)];[_0x483cee(0xb8)]=[];constructor(_0x376c7a,_0x5e0d28){const _0x14fc66=_0x483cee;super(_0x376c7a);const {areActionsDisabled:_0x2b935c,showUnchangedParts:_0x38eb53,availableActions:_0x140f92}=_0x5e0d28;this[_0x14fc66(0xbb)]=_0x2b935c,this[_0x14fc66(0x98)]=_0x38eb53,this[_0x14fc66(0xb4)]=_0x140f92,this[_0x14fc66(0xc1)](_0x14fc66(0xbd),!0x1),this[_0x14fc66(0xc1)](_0x14fc66(0x9e),!0x1),this[_0x14fc66(0xc9)]=this[_0x14fc66(0xb5)](),this[_0x14fc66(0xd7)]=new _0x2fd6ba(),this[_0x14fc66(0xd5)]=new _0x722f6b({'id':_0x14fc66(0x94),'initialContent':_0x29e22a(_0x376c7a,_0x14fc66(0xae)),'level':_0x14fc66(0xaf)}),this[_0x14fc66(0xd5)][_0x14fc66(0xbe)]=!0x1,this[_0x14fc66(0xad)]=new _0x125457(_0x376c7a,_0x5e0d28[_0x14fc66(0xd8)],this[_0x14fc66(0xbb)]),this[_0x14fc66(0xad)][_0x14fc66(0x9b)](_0x14fc66(0x9e))['to'](this),this[_0x14fc66(0xac)]=new _0x5baefe(this[_0x14fc66(0xdb)],_0x5e0d28[_0x14fc66(0xc5)]),_0x5e0d28[_0x14fc66(0xc6)]?this[_0x14fc66(0xad)][_0x14fc66(0xbc)]=!0x1:this[_0x14fc66(0xad)][_0x14fc66(0x9b)](_0x14fc66(0xbc))['to'](this,_0x14fc66(0xbd)),this[_0x14fc66(0xad)][_0x14fc66(0xd6)](..._0x3603f7)['to'](this),this[_0x14fc66(0xa8)]({'tag':_0x14fc66(0xcb),'attributes':{'class':['ck',_0x14fc66(0x9a)]},'children':[{'tag':_0x14fc66(0xcb),'attributes':{'class':['ck',_0x14fc66(0xc4)]},'children':this[_0x14fc66(0xc9)]},this[_0x14fc66(0xd5)],this[_0x14fc66(0xad)],this[_0x14fc66(0xac)]]});}get[_0x483cee(0xba)](){const _0x445091=_0x483cee;return this[_0x445091(0xc9)][_0x445091(0x9c)];}async[_0x483cee(0x93)]({parts:_0x13c687,renderingStrategy:_0x267c6a,abortSignal:_0x591bf9}){const _0x2afb9d=_0x483cee;this[_0x2afb9d(0xc9)][_0x2afb9d(0x9c)]?_0x13c687[_0x2afb9d(0xd1)](_0xef01a0=>{const _0x26c7a5=_0x2afb9d,_0x2a8a89=this[_0x26c7a5(0xb8)][_0x26c7a5(0xd4)](_0x2971ec=>_0x2971ec[_0x26c7a5(0xa7)]==_0xef01a0[_0x26c7a5(0xa7)]);-0x1===_0x2a8a89?this[_0x26c7a5(0xb8)][_0x26c7a5(0xa3)](_0xef01a0):this[_0x26c7a5(0xb8)][_0x2a8a89]=_0xef01a0;}):this[_0x2afb9d(0xb8)]=_0x13c687;const _0x57e4bf=this[_0x2afb9d(0x98)]?_0x13c687:_0x13c687[_0x2afb9d(0xd2)](_0x3c3568=>_0x3c3568[_0x2afb9d(0xd0)]);this[_0x2afb9d(0xad)][_0x2afb9d(0x95)](_0x57e4bf[_0x2afb9d(0x9c)]>0x1);for(const _0x42aed8 of _0x57e4bf)this[_0x2afb9d(0xd7)][_0x2afb9d(0xbf)](async _0x9636d6=>{const _0x2d37b1=_0x2afb9d;let _0x1a69e3=this[_0x2d37b1(0xc8)](_0x42aed8[_0x2d37b1(0xa7)]);_0x1a69e3||(_0x1a69e3=new _0x39acb7(this[_0x2d37b1(0xdb)],{'part':_0x42aed8,'uiIndex':this[_0x2d37b1(0xc9)][_0x2d37b1(0x9c)]+0x1,'areActionsDisabled':this[_0x2d37b1(0xbb)],'availableActions':this[_0x2d37b1(0xb4)]}),_0x1a69e3[_0x2d37b1(0xd6)](..._0x3603f7)['to'](this),this[_0x2d37b1(0xc9)][_0x2d37b1(0xd9)](_0x1a69e3),this[_0x2d37b1(0xbd)]=!0x0),await _0x1a69e3[_0x2d37b1(0xda)]({'part':_0x42aed8,'renderingStrategy':_0x267c6a,'showUnchangedParts':this[_0x2d37b1(0x98)],'abortSignal':_0x9636d6}),_0x1a69e3[_0x2d37b1(0xb2)]();});return _0x591bf9?.[_0x2afb9d(0xcc)](_0x2afb9d(0x99),()=>{const _0x611c9e=_0x2afb9d;this[_0x611c9e(0xd7)][_0x611c9e(0x99)]();}),this[_0x2afb9d(0xd7)][_0x2afb9d(0xb0)];}[_0x483cee(0xab)](_0x367e73,_0x339984){const _0x5019b3=_0x483cee,_0x11a12a=this[_0x5019b3(0xc8)](_0x367e73);_0x11a12a&&(_0x11a12a[_0x5019b3(0xc3)]=_0x339984),this[_0x5019b3(0xbd)]=_0x5019b3(0xa9)==_0x339984||Array[_0x5019b3(0xa0)](this[_0x5019b3(0xc9)])[_0x5019b3(0x9d)](_0x32876f=>_0x5019b3(0xa9)==_0x32876f[_0x5019b3(0xc3)]);}[_0x483cee(0xb6)](_0x1100fc,_0x40543f){const _0x39b388=_0x483cee;if(!0x1===_0x1100fc){for(const _0x1cf758 of this[_0x39b388(0xc9)])_0x1cf758[_0x39b388(0xd3)]=!0x1;}else{const _0x5a4ff8=this[_0x39b388(0xc8)](_0x1100fc);_0x5a4ff8&&(_0x5a4ff8[_0x39b388(0xd3)]=_0x40543f);}}[_0x483cee(0xa4)](_0x466768){const _0x6abc9=_0x483cee;_0x466768[_0x6abc9(0xd1)](_0x1ba77e=>this[_0x6abc9(0xac)][_0x6abc9(0x9f)](_0x1ba77e)),this[_0x6abc9(0xac)][_0x6abc9(0xbe)]=!0x0;}[_0x483cee(0xc8)](_0x51dcba){const _0xf1f1b=_0x483cee;return this[_0xf1f1b(0xc9)][_0xf1f1b(0xce)](_0x12a2b7=>_0x12a2b7[_0xf1f1b(0xa2)][_0xf1f1b(0xa7)]==_0x51dcba)??null;}[_0x483cee(0xb2)](){const _0x320958=_0x483cee;if(!this[_0x320958(0x98)]){const _0x30d130=!this[_0x320958(0xb8)][_0x320958(0xce)](({hasChanges:_0x2f74a8})=>_0x2f74a8),_0x484f6f=!!this[_0x320958(0xb8)][_0x320958(0xce)](({hasChanges:_0x247ad5})=>!_0x247ad5);this[_0x320958(0xd5)][_0x320958(0xbe)]=0x0==this[_0x320958(0xc9)][_0x320958(0x9c)]||_0x484f6f,_0x30d130?this[_0x320958(0xd5)][_0x320958(0xaa)](_0x29e22a(this[_0x320958(0xdb)],_0x320958(0xb3))):this[_0x320958(0xd5)][_0x320958(0xaa)](_0x29e22a(this[_0x320958(0xdb)],_0x320958(0xae)));}this[_0x320958(0xc9)][_0x320958(0xd1)](_0x36c496=>_0x36c496[_0x320958(0xb2)]()),this[_0x320958(0xad)][_0x320958(0xcd)](this[_0x320958(0x97)]);}get[_0x483cee(0x97)](){const _0x2f6618=_0x483cee;return this[_0x2f6618(0xc9)][_0x2f6618(0xd2)](_0x3f3ebf=>_0x3f3ebf[_0x2f6618(0xa2)][_0x2f6618(0xd0)])[_0x2f6618(0x9c)]>0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b10db=_0x5505;function _0x5505(_0x351621,_0x52f3bb){const _0x54b509=_0x54b5();return _0x5505=function(_0x550501,_0x35b1fd){_0x550501=_0x550501-0xdf;let _0x58f274=_0x54b509[_0x550501];return _0x58f274;},_0x5505(_0x351621,_0x52f3bb);}(function(_0x35dca6,_0x214970){const _0x56eb11=_0x5505,_0x1de6c5=_0x35dca6();while(!![]){try{const _0x570c23=-parseInt(_0x56eb11(0xed))/0x1+-parseInt(_0x56eb11(0xf1))/0x2+parseInt(_0x56eb11(0xf5))/0x3+-parseInt(_0x56eb11(0xdf))/0x4*(-parseInt(_0x56eb11(0xfa))/0x5)+-parseInt(_0x56eb11(0xf8))/0x6+parseInt(_0x56eb11(0xe5))/0x7+parseInt(_0x56eb11(0xeb))/0x8;if(_0x570c23===_0x214970)break;else _0x1de6c5['push'](_0x1de6c5['shift']());}catch(_0x5b8478){_0x1de6c5['push'](_0x1de6c5['shift']());}}}(_0x54b5,0x99890));import{View as _0x11940b}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x2a8840}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x10eb5d}from'./aisuggestionbodyview.js';function _0x54b5(){const _0x5b11e9=['headerView','fire','updateSources','8242096gqmOEN','createCollection','933395ZxAfJd','bodyView','isOn','hasNonEmptyParts','210574DmVIov','children','delegate','setTemplate','2136429fdNofb','isShowChangesToggleVisible','add','4866288wqNjiW','ck-ai-suggestion__container','535SBuAdK','updateContent','areChangesVisible','markAsDone','set','21724VNywxG','toggleShowChanges','div','toggleSuggestionDisplayMode','ck-rounded-corners','updateContentParts','1085616TjfEZZ','bind','isTrackChangesOn'];_0x54b5=function(){return _0x5b11e9;};return _0x54b5();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x164516}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x11940b{[_0x1b10db(0xee)];[_0x1b10db(0xf2)];[_0x1b10db(0xe8)];constructor(_0x43e88c,_0xde7689,_0x58052f){const _0x3b509a=_0x1b10db;super(_0x43e88c);const {showDiff:_0x176578,areActionsDisabled:_0x6d732a,showUnchangedParts:_0x102343,availableActions:_0x1764e7}=_0xde7689;this[_0x3b509a(0xfe)](_0x3b509a(0xe7),!0x1),this[_0x3b509a(0xfe)](_0x3b509a(0xfc),!0x1),this[_0x3b509a(0xf2)]=this[_0x3b509a(0xec)](),this[_0x3b509a(0xe8)]=new _0x2a8840(_0x43e88c,{'showDiff':_0x176578}),this[_0x3b509a(0xe8)]['on'](_0x3b509a(0xe0),(_0x47bd67,_0x5e99dc)=>{const _0x5d5f4b=_0x3b509a;this[_0x5d5f4b(0xfc)]=_0x5e99dc[_0x5d5f4b(0xef)],this[_0x5d5f4b(0xe9)](_0x5d5f4b(0xe2),{'showDiff':_0x5e99dc[_0x5d5f4b(0xef)]});}),this[_0x3b509a(0xf2)][_0x3b509a(0xf7)](this[_0x3b509a(0xe8)]),this[_0x3b509a(0xee)]=new _0x10eb5d(_0x43e88c,{'areActionsDisabled':_0x6d732a,'showUnchangedParts':!!_0x102343,'availableActions':_0x1764e7,'bodyCollection':_0x58052f}),this[_0x3b509a(0xee)][_0x3b509a(0xf3)](..._0x164516)['to'](this),this[_0x3b509a(0xee)][_0x3b509a(0xe6)](_0x3b509a(0xe7))['to'](this),this[_0x3b509a(0xf2)][_0x3b509a(0xf7)](this[_0x3b509a(0xee)]),this[_0x3b509a(0xf4)]({'tag':_0x3b509a(0xe1),'attributes':{'class':['ck',_0x3b509a(0xf9),_0x3b509a(0xe3)]},'children':this[_0x3b509a(0xf2)]});}async[_0x1b10db(0xfb)](_0x26cf7c){const _0x5ee9b7=_0x1b10db;await this[_0x5ee9b7(0xee)][_0x5ee9b7(0xe4)](_0x26cf7c);}[_0x1b10db(0xea)](_0x1c734e){const _0x2c9da4=_0x1b10db;this[_0x2c9da4(0xee)][_0x2c9da4(0xea)](_0x1c734e);}[_0x1b10db(0xfd)](){const _0xe2245f=_0x1b10db;this[_0xe2245f(0xee)][_0xe2245f(0xfd)](),this[_0xe2245f(0xe8)]&&(this[_0xe2245f(0xe8)][_0xe2245f(0xf6)]=this[_0xe2245f(0xee)][_0xe2245f(0xf0)]);}}
23
+ const _0x1e1c82=_0x2d05;(function(_0x309c70,_0x9ac1ca){const _0x46ddba=_0x2d05,_0x518097=_0x309c70();while(!![]){try{const _0x5d3f37=-parseInt(_0x46ddba(0x144))/0x1+parseInt(_0x46ddba(0x156))/0x2+parseInt(_0x46ddba(0x147))/0x3+parseInt(_0x46ddba(0x13b))/0x4+parseInt(_0x46ddba(0x15b))/0x5*(-parseInt(_0x46ddba(0x148))/0x6)+parseInt(_0x46ddba(0x158))/0x7*(parseInt(_0x46ddba(0x13d))/0x8)+-parseInt(_0x46ddba(0x159))/0x9*(-parseInt(_0x46ddba(0x150))/0xa);if(_0x5d3f37===_0x9ac1ca)break;else _0x518097['push'](_0x518097['shift']());}catch(_0x42ef98){_0x518097['push'](_0x518097['shift']());}}}(_0x21f7,0xc8124));import{View as _0x2126ae}from'ckeditor5/src/ui.js';import{AISuggestionHeaderView as _0x65bd39}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x4f555a}from'./aisuggestionbodyview.js';function _0x2d05(_0x52a313,_0x5b6e12){const _0x21f7f9=_0x21f7();return _0x2d05=function(_0x2d0556,_0x3b7d2c){_0x2d0556=_0x2d0556-0x13b;let _0x287dcf=_0x21f7f9[_0x2d0556];return _0x287dcf;},_0x2d05(_0x52a313,_0x5b6e12);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x376248}from'../../utils/eventnames.js';import'../../../../theme/aichat/aisuggestioncontainer.css';export class AISuggestionContainerView extends _0x2126ae{[_0x1e1c82(0x13c)];[_0x1e1c82(0x145)];[_0x1e1c82(0x14d)];constructor(_0x4b6a2e,_0x39ec29,_0x3fa3c6){const _0x5ed8e0=_0x1e1c82;super(_0x4b6a2e);const {showDiff:_0x333e91,areActionsDisabled:_0x25e3e1,showUnchangedParts:_0x40c475,availableActions:_0x58be9a}=_0x39ec29;this[_0x5ed8e0(0x14e)](_0x5ed8e0(0x152),!0x1),this[_0x5ed8e0(0x14e)](_0x5ed8e0(0x140),!0x1),this[_0x5ed8e0(0x145)]=this[_0x5ed8e0(0x14c)](),this[_0x5ed8e0(0x14d)]=new _0x65bd39(_0x4b6a2e,{'showDiff':_0x333e91}),this[_0x5ed8e0(0x14d)]['on'](_0x5ed8e0(0x15a),(_0x1db887,_0x426359)=>{const _0x259e40=_0x5ed8e0;this[_0x259e40(0x140)]=_0x426359[_0x259e40(0x146)],this[_0x259e40(0x155)](_0x259e40(0x141),{'showDiff':_0x426359[_0x259e40(0x146)]});}),this[_0x5ed8e0(0x145)][_0x5ed8e0(0x142)](this[_0x5ed8e0(0x14d)]),this[_0x5ed8e0(0x13c)]=new _0x4f555a(_0x4b6a2e,{'areActionsDisabled':_0x25e3e1,'showUnchangedParts':!!_0x40c475,'availableActions':_0x58be9a,'bodyCollection':_0x3fa3c6}),this[_0x5ed8e0(0x13c)][_0x5ed8e0(0x151)](..._0x376248)['to'](this),this[_0x5ed8e0(0x13c)][_0x5ed8e0(0x13f)](_0x5ed8e0(0x152))['to'](this),this[_0x5ed8e0(0x145)][_0x5ed8e0(0x142)](this[_0x5ed8e0(0x13c)]),this[_0x5ed8e0(0x157)]({'tag':_0x5ed8e0(0x149),'attributes':{'class':['ck',_0x5ed8e0(0x14f),_0x5ed8e0(0x14b)]},'children':this[_0x5ed8e0(0x145)]});}async[_0x1e1c82(0x14a)](_0x70c095){const _0x55c483=_0x1e1c82;await this[_0x55c483(0x13c)][_0x55c483(0x143)](_0x70c095);}[_0x1e1c82(0x154)](_0x407fc1){const _0x1f73e0=_0x1e1c82;this[_0x1f73e0(0x13c)][_0x1f73e0(0x154)](_0x407fc1);}[_0x1e1c82(0x15c)](){const _0x288c96=_0x1e1c82;this[_0x288c96(0x13c)][_0x288c96(0x15c)](),this[_0x288c96(0x14d)]&&(this[_0x288c96(0x14d)][_0x288c96(0x13e)]=this[_0x288c96(0x13c)][_0x288c96(0x153)]);}}function _0x21f7(){const _0x35bedd=['updateSources','fire','2501094GrumwF','setTemplate','21LGckln','531VAjFFE','toggleShowChanges','456185ltdLUG','markAsDone','1578308YBJYMP','bodyView','651784XKVokZ','isShowChangesToggleVisible','bind','areChangesVisible','toggleSuggestionDisplayMode','add','updateContentParts','748119zEAECd','children','isOn','1371570zXrswf','84pjflFB','div','updateContent','ck-rounded-corners','createCollection','headerView','set','ck-ai-suggestion__container','84440iJyhqI','delegate','isTrackChangesOn','hasNonEmptyParts'];_0x21f7=function(){return _0x35bedd;};return _0x21f7();}