@ckeditor/ckeditor5-ai 47.3.0-alpha.1 → 47.3.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-editor.css +18 -15
  3. package/dist/index.css +19 -15
  4. package/dist/index.js +5 -5
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +15 -15
  152. package/src/aiactions/aiactions.js +1 -1
  153. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  154. package/src/aiactions/model/aiactionsreply.js +1 -1
  155. package/src/aiassistant/adapters/aiadapter.js +1 -1
  156. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  157. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  158. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  159. package/src/aiassistant/aiassistant.js +1 -1
  160. package/src/aiassistant/aiassistantediting.js +1 -1
  161. package/src/aiassistant/aiassistantui.js +1 -1
  162. package/src/aiassistant/legacyerrors.js +1 -1
  163. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  164. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  165. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformview.js +1 -1
  169. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  171. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  172. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  173. package/src/aiassistant/utils/common-translations.js +1 -1
  174. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  175. package/src/aiballoon/aiballoon.js +1 -1
  176. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  177. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatcontroller.js +1 -1
  181. package/src/aichat/aichatui.js +1 -1
  182. package/src/aichat/model/aichatcontext.js +1 -1
  183. package/src/aichat/model/aichatconversation.js +1 -1
  184. package/src/aichat/model/aichatinteraction.js +1 -1
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichathistory/aichathistory.js +1 -1
  214. package/src/aichathistory/aichathistorycontroller.js +1 -1
  215. package/src/aichathistory/aichathistoryui.js +1 -1
  216. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  217. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  218. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  219. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistoryview.d.ts +1 -0
  222. package/src/aichathistory/ui/aichathistoryview.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/aisuggestioncontentpartview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  240. package/src/aicore/utils/common-translations.js +1 -1
  241. package/src/aicore/utils/createresizebutton.js +1 -1
  242. package/src/aicore/utils/documentposition.js +1 -1
  243. package/src/aicore/utils/documentrange.js +1 -1
  244. package/src/aicore/utils/eventnames.js +1 -1
  245. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  246. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  247. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  248. package/src/aicore/utils/htmlparser.js +1 -1
  249. package/src/aicore/utils/htmlstreamer.js +1 -1
  250. package/src/aicore/utils/scrollmanager.js +1 -1
  251. package/src/aieditorintegration/aieditorintegration.js +1 -1
  252. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  253. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  254. package/src/aiquickactions/aiquickactions.js +1 -1
  255. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  256. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  257. package/src/aiquickactions/aiquickactionsui.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  259. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  260. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  261. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  262. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  263. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  264. package/src/aireviewmode/aireviewmode.js +1 -1
  265. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  266. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  267. package/src/aireviewmode/aireviewmodeui.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  270. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  271. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  272. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  273. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  274. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  275. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  276. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  285. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  286. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  287. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  288. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  289. package/src/aitabs/aitabs.js +1 -1
  290. package/src/aitabs/aitabsmainview.js +1 -1
  291. package/src/aitabs/tabs/aitabsview.js +1 -1
  292. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  293. package/src/aitabs/tabs/tabpanelview.js +1 -1
  294. package/src/errors.js +1 -1
  295. package/src/errorsmap.js +1 -1
  296. package/src/index.js +1 -1
  297. package/theme/aiballoon/aiballoon.css +2 -1
  298. package/theme/aiquickactions/aiquickactions.css +17 -14
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a861d=_0x32b1;(function(_0x1dcca3,_0x44c8a0){const _0x4ff1d7=_0x32b1,_0x47be07=_0x1dcca3();while(!![]){try{const _0x33c3da=-parseInt(_0x4ff1d7(0x13a))/0x1*(parseInt(_0x4ff1d7(0xfd))/0x2)+-parseInt(_0x4ff1d7(0x142))/0x3*(parseInt(_0x4ff1d7(0x114))/0x4)+-parseInt(_0x4ff1d7(0x116))/0x5*(-parseInt(_0x4ff1d7(0x13c))/0x6)+-parseInt(_0x4ff1d7(0x109))/0x7*(-parseInt(_0x4ff1d7(0x140))/0x8)+-parseInt(_0x4ff1d7(0x103))/0x9*(-parseInt(_0x4ff1d7(0x128))/0xa)+parseInt(_0x4ff1d7(0x102))/0xb+-parseInt(_0x4ff1d7(0x141))/0xc;if(_0x33c3da===_0x44c8a0)break;else _0x47be07['push'](_0x47be07['shift']());}catch(_0x1ab533){_0x47be07['push'](_0x47be07['shift']());}}}(_0x5777,0x87ab7));import{View as _0x571140,SearchTextView as _0x2eb6f5,FormHeaderView as _0x522204,ButtonView as _0x5cda32}from'ckeditor5/src/ui.js';function _0x32b1(_0x434d1e,_0x36bada){const _0x577712=_0x5777();return _0x32b1=function(_0x32b16a,_0x3d11ef){_0x32b16a=_0x32b16a-0xf1;let _0x44562f=_0x577712[_0x32b16a];return _0x44562f;},_0x32b1(_0x434d1e,_0x36bada);}import{IconAIHistory as _0x5d7289,IconCancel as _0x182220,IconPlus as _0x12cea6}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1062e9}from'./aichathistorysectionlistview.js';function _0x5777(){const _0x47d6db=['_updateViewVisibility','12732rWoxdV','value','_createErrorView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','890680jVdvUI','1498380ICJwOn','922647OEVOgM','updateItemTitle','AI_CHAT_HISTORY_HEADING','remove','ck-reset_all','ck-ai-header\x20ck-ai-header_history','change:errorMessage','render','title','length','updateItemLoadingState','ck-ai-notification_error__dismiss-button','isLoading','bind','some','splice','change:isLoading','_createSearchView','execute','ck-hidden','locale','sectionsView','isMaximized','errorMessage','div','6010nigZMD','AI_CHAT_HISTORY_EMPTY_MESSAGE','children','delegate','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','276782cXrFuC','349137xeoCDb','skeletonView','ck-ai-notification','fieldView','hasItems','_refreshSearch','35nUQeDk','change:hasItems','isEmptyViewVisible','errorView','AI_CHAT_HISTORY_SEARCH_LABEL','removeItem','sections','resizeButton','ck-ai-chat__start-conversation','push','aiHistory','4cONKof','extendTemplate','1115CeuIUQ','addMany','_createSkeletonView','ck-ai-notification_error','queryView','updateHistoryItemsWithCategories','element','ck-ai-chat-history__empty-message','emptyView','ck-ai-chat-history','isVisible','getItem','clear','setTemplate','items','AI_CHAT_LABEL_NEW_CHAT','add','updateTitle','30ImacwI','updateLoadingState','_createListItemViews','indexOf','ck-rounded-corners','ck-ai-chat-history__empty','set','ck-ai-chat-history__content','ltr','searchView','isSearchViewVisible','removeHistoryItem','fire','bindTemplate','itemsViews','openChat','_createEmptyStateView','search','61bdBWOE'];_0x5777=function(){return _0x47d6db;};return _0x5777();}import{AIChatHistoryListView as _0x331b8f}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x4b1f19}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5fd7a4}from'../aichathistoryui.js';import{AISkeletonView as _0x34ef75,SKELETON_DEFINITIONS as _0x3cb2df}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x434793}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x2ba6ee}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x571140{[_0x4a861d(0x131)];[_0x4a861d(0x10c)];[_0x4a861d(0x104)];[_0x4a861d(0x11e)];[_0x4a861d(0xf9)];[_0x4a861d(0x110)];constructor(_0x1a3a1d,_0x49ec65){const _0x308bf1=_0x4a861d;super(_0x1a3a1d),this[_0x308bf1(0x12e)](_0x308bf1(0x107),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x14e),!0x0),this[_0x308bf1(0x12e)](_0x308bf1(0xfb),''),this[_0x308bf1(0x12e)](_0x308bf1(0xfa),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x132),!0x1),this[_0x308bf1(0x12e)](_0x308bf1(0x10b),!0x1);const _0x1c06bd=new _0x522204(_0x1a3a1d,{'label':_0x2ba6ee(_0x1a3a1d,_0x308bf1(0x144)),'icon':_0x5d7289,'class':_0x308bf1(0x147)});_0x49ec65&&(this[_0x308bf1(0x110)]=_0x434793(_0x1a3a1d,this),_0x1c06bd[_0x308bf1(0xff)][_0x308bf1(0x126)](this[_0x308bf1(0x110)])),this[_0x308bf1(0xf9)]=new _0x1062e9(_0x1a3a1d,[]),this[_0x308bf1(0xf9)][_0x308bf1(0x100)](..._0x5fd7a4)['to'](this),this[_0x308bf1(0x10c)]=this[_0x308bf1(0x13e)](),this[_0x308bf1(0x104)]=this[_0x308bf1(0x118)](),this[_0x308bf1(0x11e)]=this[_0x308bf1(0x138)](),this[_0x308bf1(0x131)]=this[_0x308bf1(0xf5)](),this['on'](_0x308bf1(0xf4),()=>this[_0x308bf1(0x13b)]()),this['on'](_0x308bf1(0x10a),()=>this[_0x308bf1(0x13b)]()),this['on'](_0x308bf1(0x148),()=>this[_0x308bf1(0x13b)]()),this[_0x308bf1(0x123)]({'tag':_0x308bf1(0xfc),'attributes':{'class':['ck',_0x308bf1(0x146),_0x308bf1(0x11f),_0x308bf1(0x12c)],'dir':_0x308bf1(0x130)},'children':[_0x1c06bd,{'tag':_0x308bf1(0xfc),'attributes':{'class':[_0x308bf1(0x12f)]},'children':[this[_0x308bf1(0x104)],this[_0x308bf1(0x10c)],this[_0x308bf1(0x11e)],this[_0x308bf1(0x131)]]}]});}[_0x4a861d(0x13b)](){const _0x2ab226=_0x4a861d;this[_0x2ab226(0x132)]=!this[_0x2ab226(0x14e)]&&this[_0x2ab226(0x107)]&&!this[_0x2ab226(0xfb)],this[_0x2ab226(0x10b)]=!this[_0x2ab226(0x14e)]&&!this[_0x2ab226(0x107)]&&!this[_0x2ab226(0xfb)];}[_0x4a861d(0xf5)](){const _0x37fc32=_0x4a861d,_0x4cfa44=new _0x2eb6f5(this[_0x37fc32(0xf8)],{'filteredView':this[_0x37fc32(0xf9)],'queryView':{'label':_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x10d))},'infoView':{'text':{'notFound':{'primary':_0x12b8b4=>_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x101),_0x12b8b4),'secondary':_0x2ba6ee(this[_0x37fc32(0xf8)],_0x37fc32(0x13f))}}}});return _0x4cfa44['on'](_0x37fc32(0x149),()=>{const _0xabcc4e=_0x37fc32;this[_0xabcc4e(0x131)][_0xabcc4e(0xff)][_0xabcc4e(0x126)](this[_0xabcc4e(0x10c)],0x1);}),_0x4cfa44[_0x37fc32(0x115)]({'attributes':{'class':[this[_0x37fc32(0x135)]['if'](_0x37fc32(0x132),_0x37fc32(0xf7),_0xa05e40=>!_0xa05e40)]}}),_0x4cfa44;}[_0x4a861d(0x118)](){const _0x43ed33=_0x4a861d,_0x29b87c=new _0x34ef75(this[_0x43ed33(0xf8)],_0x3cb2df[_0x43ed33(0x113)]);return _0x29b87c[_0x43ed33(0x115)]({'attributes':{'class':[this[_0x43ed33(0x135)]['if'](_0x43ed33(0x14e),_0x43ed33(0xf7),_0x384e0d=>!_0x384e0d)]}}),_0x29b87c;}[_0x4a861d(0x13e)](){const _0xbdcb4b=_0x4a861d,_0x3bd446=new _0x571140(this[_0xbdcb4b(0xf8)]),_0x548730=new _0x5cda32(this[_0xbdcb4b(0xf8)]);return _0x548730[_0xbdcb4b(0x12e)]({'withText':!0x1,'icon':_0x182220,'class':_0xbdcb4b(0x14d)}),_0x548730[_0xbdcb4b(0xf1)](_0xbdcb4b(0x120))['to'](this,_0xbdcb4b(0x107),_0x4be4ca=>!!_0x4be4ca),_0x548730['on'](_0xbdcb4b(0xf6),()=>{const _0x303280=_0xbdcb4b;this[_0x303280(0xfb)]='';}),_0x3bd446[_0xbdcb4b(0x123)]({'tag':_0xbdcb4b(0xfc),'attributes':{'class':['ck',_0xbdcb4b(0x105),_0xbdcb4b(0x119),this[_0xbdcb4b(0x135)]['if'](_0xbdcb4b(0xfb),_0xbdcb4b(0xf7),_0x4bc55d=>!_0x4bc55d)]},'children':[{'tag':'p','children':[{'text':this[_0xbdcb4b(0x135)]['to'](_0xbdcb4b(0xfb))}]},_0x548730]}),_0x3bd446;}[_0x4a861d(0x138)](){const _0x4831dd=_0x4a861d,_0x580cfb=new _0x5cda32(this[_0x4831dd(0xf8)]);_0x580cfb[_0x4831dd(0x12e)]({'label':_0x2ba6ee(this[_0x4831dd(0xf8)],_0x4831dd(0x125)),'withText':!0x0,'icon':_0x12cea6,'class':_0x4831dd(0x111)}),_0x580cfb['on'](_0x4831dd(0xf6),()=>{const _0x2e97e5=_0x4831dd;this[_0x2e97e5(0x134)](_0x2e97e5(0x137));});const _0x32ff5d=new _0x571140(this[_0x4831dd(0xf8)]);return _0x32ff5d[_0x4831dd(0x123)]({'tag':_0x4831dd(0xfc),'attributes':{'class':[_0x4831dd(0x12d),this[_0x4831dd(0x135)]['if'](_0x4831dd(0x10b),_0x4831dd(0xf7),_0x35bed9=>!_0x35bed9)]},'children':[{'tag':'p','attributes':{'class':[_0x4831dd(0x11d)]},'children':[_0x2ba6ee(this[_0x4831dd(0xf8)],_0x4831dd(0xfe))]},_0x580cfb]}),_0x32ff5d;}[_0x4a861d(0x12a)](_0x45fcba,_0x5e35ef){const _0x49b706=_0x4a861d,_0x2822f9=[];for(const _0xfae2d0 of _0x45fcba){const _0x4305df=new _0x4b1f19(_0x5e35ef,_0xfae2d0);_0x4305df[_0x49b706(0x100)](..._0x5fd7a4)['to'](this),_0x2822f9[_0x49b706(0x112)](_0x4305df);}return _0x2822f9;}[_0x4a861d(0x11b)](_0x809eff){const _0x5f5bc3=_0x4a861d,_0x18e1c4=this[_0x5f5bc3(0xf8)]||'en',_0x147901=[];for(const _0x3580e1 of _0x809eff){const _0x55314b=this[_0x5f5bc3(0x12a)](_0x3580e1[_0x5f5bc3(0x124)],_0x18e1c4);_0x147901[_0x5f5bc3(0x112)](new _0x331b8f(_0x18e1c4,{'title':_0x3580e1[_0x5f5bc3(0x14a)],'items':_0x55314b}));}this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x10f)]=_0x147901,this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x124)][_0x5f5bc3(0x122)](),this[_0x5f5bc3(0xf9)][_0x5f5bc3(0x124)][_0x5f5bc3(0x117)](_0x147901),this[_0x5f5bc3(0x107)]=_0x809eff[_0x5f5bc3(0xf2)](_0x3fbb25=>_0x3fbb25[_0x5f5bc3(0x124)][_0x5f5bc3(0x14b)]>0x0),this[_0x5f5bc3(0x108)]();}[_0x4a861d(0x133)](_0x5823d5){const _0x2ed4c3=_0x4a861d;for(const _0x244a4a of this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)]){const _0xe24c39=_0x244a4a[_0x2ed4c3(0x121)](_0x5823d5);if(_0xe24c39){if(_0x244a4a[_0x2ed4c3(0x10e)](_0xe24c39),0x0===_0x244a4a[_0x2ed4c3(0x136)][_0x2ed4c3(0x14b)]){const _0x1ab155=this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0x12b)](_0x244a4a);-0x1!==_0x1ab155&&(this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0xf3)](_0x1ab155,0x1),this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x124)][_0x2ed4c3(0x145)](_0x244a4a));}this[_0x2ed4c3(0x107)]=this[_0x2ed4c3(0xf9)][_0x2ed4c3(0x10f)][_0x2ed4c3(0x14b)]>0x0,this[_0x2ed4c3(0x108)]();break;}}}[_0x4a861d(0x143)](_0x50ab4b,_0x5da47f){const _0x3d559c=_0x4a861d;for(const _0x25fe27 of this[_0x3d559c(0xf9)][_0x3d559c(0x10f)]){const _0x36f2a8=_0x25fe27[_0x3d559c(0x121)](_0x50ab4b);if(_0x36f2a8){_0x36f2a8[_0x3d559c(0x127)](_0x5da47f);break;}}}[_0x4a861d(0x14c)](_0x3435ec,_0x119f13,_0x264ddb){const _0x5a4e92=_0x4a861d;for(const _0x5416e6 of this[_0x5a4e92(0xf9)][_0x5a4e92(0x10f)]){const _0x2b17ec=_0x5416e6[_0x5a4e92(0x121)](_0x3435ec);if(_0x2b17ec){_0x2b17ec[_0x5a4e92(0x129)](_0x119f13,_0x264ddb);break;}}}[_0x4a861d(0x108)](){const _0x5580af=_0x4a861d;if(this[_0x5580af(0x107)]){const _0x1a5160=this[_0x5580af(0x131)][_0x5580af(0x11a)][_0x5580af(0x106)]?.[_0x5580af(0x11c)]?.[_0x5580af(0x13d)]||'';this[_0x5580af(0x131)][_0x5580af(0x139)](_0x1a5160);}}}
23
+ const _0x50a9b6=_0x18ba;(function(_0x49fc3d,_0x38fe8c){const _0x434b56=_0x18ba,_0x54c74e=_0x49fc3d();while(!![]){try{const _0x2cfd8a=-parseInt(_0x434b56(0x1ad))/0x1*(parseInt(_0x434b56(0x197))/0x2)+parseInt(_0x434b56(0x19e))/0x3+parseInt(_0x434b56(0x16d))/0x4+-parseInt(_0x434b56(0x190))/0x5+parseInt(_0x434b56(0x196))/0x6+-parseInt(_0x434b56(0x164))/0x7+parseInt(_0x434b56(0x18a))/0x8;if(_0x2cfd8a===_0x38fe8c)break;else _0x54c74e['push'](_0x54c74e['shift']());}catch(_0x15f593){_0x54c74e['push'](_0x54c74e['shift']());}}}(_0x470e,0x447c7));import{View as _0x2e48c5,SearchTextView as _0x431960,FormHeaderView as _0x15d32c,ButtonView as _0x49b2b0}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x3ecfe6,IconCancel as _0x2bc25e,IconPlus as _0x4fe8e6}from'ckeditor5/src/icons.js';function _0x470e(){const _0xd7720e=['searchView','_createErrorView','_createSearchView','144464DKCcZa','change:hasItems','getItem','isMaximized','children','addMany','2360540iDhDcE','updateItemLoadingState','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','openChat','sectionsView','updateLoadingState','1849020cyJBNW','4uHisrF','value','render','change:errorMessage','ck-rounded-corners','itemsViews','isSearchViewVisible','597423fESHXd','add','isEmptyViewVisible','_refreshSearch','indexOf','isMainErrorViewVisible','resizeButton','execute','setTemplate','ck-ai-chat-history','set','_createSkeletonView','ck-ai-chat__start-conversation','ck-ai-notification_error','bindTemplate','5296kYFjwE','AI_CHAT_HISTORY_HEADING','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history__content','fire','aiHistory','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_LABEL','removeItem','skeletonView','remove','change:isLoading','ck-ai-notification_error__dismiss-button','splice','bind','updateHistoryItemsWithCategories','errorMessage','length','2148825hoAVhz','ck-hidden','some','title','ltr','updateTitle','_updateViewVisibility','isVisible','extendTemplate','2179300idiaKh','removeHistoryItem','ck-ai-notification','sections','_createEmptyStateView','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history__empty','locale','AI_CHAT_LABEL_NEW_CHAT','queryView','mainErrorView','delegate','clear','items','ck-reset_all','updateItemTitle','ck-ai-chat-history__empty-message','div','emptyView','push','element','isLoading','search','fieldView','_createListItemViews','hasItems'];_0x470e=function(){return _0xd7720e;};return _0x470e();}import{AIChatHistorySectionListView as _0x3bc6a6}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x229c06}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x517fc1}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5baa29}from'../aichathistoryui.js';import{AISkeletonView as _0x273ba4,SKELETON_DEFINITIONS as _0x3cb277}from'../../aicore/ui/aiskeleton.js';function _0x18ba(_0x2ca29f,_0x35451a){const _0x470e6c=_0x470e();return _0x18ba=function(_0x18ba26,_0x146ed4){_0x18ba26=_0x18ba26-0x157;let _0x9f250c=_0x470e6c[_0x18ba26];return _0x9f250c;},_0x18ba(_0x2ca29f,_0x35451a);}import{createResizeButton as _0x279e1a}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x12d9fa}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2e48c5{[_0x50a9b6(0x187)];[_0x50a9b6(0x177)];[_0x50a9b6(0x15b)];[_0x50a9b6(0x17f)];[_0x50a9b6(0x194)];[_0x50a9b6(0x1a4)];constructor(_0x3f9370,_0x59fc57){const _0x477f18=_0x50a9b6;super(_0x3f9370),this[_0x477f18(0x1a8)](_0x477f18(0x186),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x182),!0x0),this[_0x477f18(0x1a8)](_0x477f18(0x162),''),this[_0x477f18(0x1a8)](_0x477f18(0x18d),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x19d),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x1a0),!0x1),this[_0x477f18(0x1a8)](_0x477f18(0x1a3),!0x1);const _0x33cb5b=new _0x15d32c(_0x3f9370,{'label':_0x12d9fa(_0x3f9370,_0x477f18(0x1ae)),'icon':_0x3ecfe6,'class':_0x477f18(0x172)});_0x59fc57&&(this[_0x477f18(0x1a4)]=_0x279e1a(_0x3f9370,this),_0x33cb5b[_0x477f18(0x18e)][_0x477f18(0x19f)](this[_0x477f18(0x1a4)])),this[_0x477f18(0x194)]=new _0x3bc6a6(_0x3f9370,[]),this[_0x477f18(0x194)][_0x477f18(0x178)](..._0x5baa29)['to'](this),this[_0x477f18(0x177)]=this[_0x477f18(0x188)](),this[_0x477f18(0x15b)]=this[_0x477f18(0x1a9)](),this[_0x477f18(0x17f)]=this[_0x477f18(0x171)](),this[_0x477f18(0x187)]=this[_0x477f18(0x189)](),this[_0x477f18(0x177)][_0x477f18(0x16c)]({'attributes':{'class':[this[_0x477f18(0x1ac)]['if'](_0x477f18(0x1a3),_0x477f18(0x165),_0x59fe80=>!_0x59fe80)]}}),this['on'](_0x477f18(0x15d),()=>this[_0x477f18(0x16a)]()),this['on'](_0x477f18(0x18b),()=>this[_0x477f18(0x16a)]()),this['on'](_0x477f18(0x19a),()=>this[_0x477f18(0x16a)]()),this[_0x477f18(0x1a6)]({'tag':_0x477f18(0x17e),'attributes':{'class':['ck',_0x477f18(0x17b),_0x477f18(0x1a7),_0x477f18(0x19b)],'dir':_0x477f18(0x168)},'children':[_0x33cb5b,{'tag':_0x477f18(0x17e),'attributes':{'class':[_0x477f18(0x1b0)]},'children':[this[_0x477f18(0x15b)],this[_0x477f18(0x177)],this[_0x477f18(0x17f)],this[_0x477f18(0x187)]]}]});}[_0x50a9b6(0x16a)](){const _0x22f86b=_0x50a9b6;this[_0x22f86b(0x19d)]=!this[_0x22f86b(0x182)]&&this[_0x22f86b(0x186)],this[_0x22f86b(0x1a0)]=!this[_0x22f86b(0x182)]&&!this[_0x22f86b(0x186)]&&!this[_0x22f86b(0x162)],this[_0x22f86b(0x1a3)]=!this[_0x22f86b(0x19d)]&&!!this[_0x22f86b(0x162)];}[_0x50a9b6(0x189)](){const _0x45a099=_0x50a9b6,_0x4a310e=new _0x431960(this[_0x45a099(0x174)],{'filteredView':this[_0x45a099(0x194)],'queryView':{'label':_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x159))},'infoView':{'text':{'notFound':{'primary':_0x3b7f37=>_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x192),_0x3b7f37),'secondary':_0x12d9fa(this[_0x45a099(0x174)],_0x45a099(0x158))}}}}),_0x3b2fb3=this[_0x45a099(0x188)]();return _0x3b2fb3[_0x45a099(0x16c)]({'attributes':{'class':[this[_0x45a099(0x1ac)]['if'](_0x45a099(0x162),_0x45a099(0x165),_0x263205=>!_0x263205)]}}),_0x4a310e['on'](_0x45a099(0x199),()=>{const _0x2beaee=_0x45a099;_0x4a310e[_0x2beaee(0x18e)][_0x2beaee(0x19f)](_0x3b2fb3,0x1);}),_0x4a310e[_0x45a099(0x16c)]({'attributes':{'class':[this[_0x45a099(0x1ac)]['if'](_0x45a099(0x19d),_0x45a099(0x165),_0x51301b=>!_0x51301b)]}}),_0x4a310e;}[_0x50a9b6(0x1a9)](){const _0x40e67c=_0x50a9b6,_0x360c85=new _0x273ba4(this[_0x40e67c(0x174)],_0x3cb277[_0x40e67c(0x157)]);return _0x360c85[_0x40e67c(0x16c)]({'attributes':{'class':[this[_0x40e67c(0x1ac)]['if'](_0x40e67c(0x182),_0x40e67c(0x165),_0x414cd7=>!_0x414cd7)]}}),_0x360c85;}[_0x50a9b6(0x188)](){const _0x1c5394=_0x50a9b6,_0x1c5324=new _0x2e48c5(this[_0x1c5394(0x174)]),_0x502ace=new _0x49b2b0(this[_0x1c5394(0x174)]);_0x502ace[_0x1c5394(0x1a8)]({'withText':!0x1,'icon':_0x2bc25e,'class':_0x1c5394(0x15e)}),_0x502ace[_0x1c5394(0x160)](_0x1c5394(0x16b))['to'](this,_0x1c5394(0x186),_0x2f4b06=>!!_0x2f4b06),_0x502ace['on'](_0x1c5394(0x1a5),()=>{const _0x31ea5c=_0x1c5394;this[_0x31ea5c(0x162)]='';});const _0x1fd288=this[_0x1c5394(0x1ac)];return _0x1c5324[_0x1c5394(0x1a6)]({'tag':_0x1c5394(0x17e),'attributes':{'class':['ck',_0x1c5394(0x16f),_0x1c5394(0x1ab)]},'children':[{'tag':'p','children':[{'text':_0x1fd288['to'](_0x1c5394(0x162))}]},_0x502ace]}),_0x1c5324;}[_0x50a9b6(0x171)](){const _0x9310a2=_0x50a9b6,_0x5cd263=new _0x49b2b0(this[_0x9310a2(0x174)]);_0x5cd263[_0x9310a2(0x1a8)]({'label':_0x12d9fa(this[_0x9310a2(0x174)],_0x9310a2(0x175)),'withText':!0x0,'icon':_0x4fe8e6,'class':_0x9310a2(0x1aa)}),_0x5cd263['on'](_0x9310a2(0x1a5),()=>{const _0x26c294=_0x9310a2;this[_0x26c294(0x1b1)](_0x26c294(0x193));});const _0x1fb7d1=new _0x2e48c5(this[_0x9310a2(0x174)]);return _0x1fb7d1[_0x9310a2(0x1a6)]({'tag':_0x9310a2(0x17e),'attributes':{'class':[_0x9310a2(0x173),this[_0x9310a2(0x1ac)]['if'](_0x9310a2(0x1a0),_0x9310a2(0x165),_0x475ce1=>!_0x475ce1)]},'children':[{'tag':'p','attributes':{'class':[_0x9310a2(0x17d)]},'children':[_0x12d9fa(this[_0x9310a2(0x174)],_0x9310a2(0x1af))]},_0x5cd263]}),_0x1fb7d1;}[_0x50a9b6(0x185)](_0x18c565,_0xa3c028){const _0x36ab58=_0x50a9b6,_0x15f79a=[];for(const _0x37996a of _0x18c565){const _0x25780f=new _0x517fc1(_0xa3c028,_0x37996a);_0x25780f[_0x36ab58(0x178)](..._0x5baa29)['to'](this),_0x15f79a[_0x36ab58(0x180)](_0x25780f);}return _0x15f79a;}[_0x50a9b6(0x161)](_0x1fad38){const _0x1b0f4f=_0x50a9b6,_0x2963f1=this[_0x1b0f4f(0x174)]||'en',_0x30b4ec=[];for(const _0x3a96ea of _0x1fad38){const _0xd85450=this[_0x1b0f4f(0x185)](_0x3a96ea[_0x1b0f4f(0x17a)],_0x2963f1);_0x30b4ec[_0x1b0f4f(0x180)](new _0x229c06(_0x2963f1,{'title':_0x3a96ea[_0x1b0f4f(0x167)],'items':_0xd85450}));}this[_0x1b0f4f(0x194)][_0x1b0f4f(0x170)]=_0x30b4ec,this[_0x1b0f4f(0x194)][_0x1b0f4f(0x17a)][_0x1b0f4f(0x179)](),this[_0x1b0f4f(0x194)][_0x1b0f4f(0x17a)][_0x1b0f4f(0x18f)](_0x30b4ec),this[_0x1b0f4f(0x186)]=_0x1fad38[_0x1b0f4f(0x166)](_0xcfe906=>_0xcfe906[_0x1b0f4f(0x17a)][_0x1b0f4f(0x163)]>0x0),this[_0x1b0f4f(0x1a1)]();}[_0x50a9b6(0x16e)](_0x1f8c33){const _0x2fa2b5=_0x50a9b6;for(const _0x233bbb of this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)]){const _0x2056dd=_0x233bbb[_0x2fa2b5(0x18c)](_0x1f8c33);if(_0x2056dd){if(_0x233bbb[_0x2fa2b5(0x15a)](_0x2056dd),0x0===_0x233bbb[_0x2fa2b5(0x19c)][_0x2fa2b5(0x163)]){const _0x2a42e6=this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x1a2)](_0x233bbb);-0x1!==_0x2a42e6&&(this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x15f)](_0x2a42e6,0x1),this[_0x2fa2b5(0x194)][_0x2fa2b5(0x17a)][_0x2fa2b5(0x15c)](_0x233bbb));}this[_0x2fa2b5(0x186)]=this[_0x2fa2b5(0x194)][_0x2fa2b5(0x170)][_0x2fa2b5(0x163)]>0x0,this[_0x2fa2b5(0x1a1)]();break;}}}[_0x50a9b6(0x17c)](_0x4e8a63,_0x35a022){const _0x7782a2=_0x50a9b6;for(const _0x2356ff of this[_0x7782a2(0x194)][_0x7782a2(0x170)]){const _0x1049a6=_0x2356ff[_0x7782a2(0x18c)](_0x4e8a63);if(_0x1049a6){_0x1049a6[_0x7782a2(0x169)](_0x35a022);break;}}}[_0x50a9b6(0x191)](_0x41c9e2,_0x1c3cba,_0x2dc957){const _0x505bc8=_0x50a9b6;for(const _0x4296e6 of this[_0x505bc8(0x194)][_0x505bc8(0x170)]){const _0x5b6a60=_0x4296e6[_0x505bc8(0x18c)](_0x41c9e2);if(_0x5b6a60){_0x5b6a60[_0x505bc8(0x195)](_0x1c3cba,_0x2dc957);break;}}}[_0x50a9b6(0x1a1)](){const _0x445655=_0x50a9b6;if(this[_0x445655(0x186)]){const _0x1b0ffd=this[_0x445655(0x187)][_0x445655(0x176)][_0x445655(0x184)]?.[_0x445655(0x181)]?.[_0x445655(0x198)]||'';this[_0x445655(0x187)][_0x445655(0x183)](_0x1b0ffd);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x480fbb=_0x545b;function _0x2a04(){const _0x38062d=['uploadUrl','7nhpFHn','search','Content-Type','code','excludeEmpty','uploadFile','MAKE_LONGER','/documents','append','deleteConversation','deleteFile','/actions/custom/calls/','stringify','/files/','upsertAIReviewRating','traceId','MAKE_SHORTER','data','_apiUrl','status','100','upsertCustomAIActionRating','toString','message','keys','TRANSLATE','token','executeAction','modificationId','isOfficialPlugin','8937390MQMucP','value','_handleError','improve-writing','executeCustomAction','/conversations/','context','text','_getStreamReader','fetchConversations','CONTINUE','queryAssistant','callSystemReview','getReader','/calls','positiveCount','/reviews/custom/calls/','releaseLock','GET','startConversation','/actions/custom/calls','fetchConversationMessages','decode','/messages/','deleteDocument','init','length','upsertAIActionRating','plugins','/conversations','getModels','upsertAIChatRating','/ratings','signal','1321260aXjrGm','make-tone-casual','ai-missing-token','ai-request-failed','translate','_token','/documents/','7905075FmXjXM','3DTOYgJ','then','group','uploadDocument','request','make-shorter','file','abortController','fetchDocument','331512SBoeng','/reviews/custom/calls','json','requires','body','true','reset','get','attributes','IMPROVE_WRITING','read','deleteWebResource','name','statusText','config','FIX_GRAMMAR','updateConversation','/models/1','ai-request-aborted','PATCH','411318UfpnCX','MAKE_TONE_CASUAL','AIConnector','feed','/calls/','/reviews/system/','make-tone-formal','CloudServices','/files','isPremiumPlugin','https://ai.cke-cs.com/v1','/web-resources/','DELETE','/web-resources','parse','PUT','AbortError','fix-grammar','_decoder','limit','31993614hMdkyl','application/json','10991432rusMpr','totalCount','fetchConversation','/conversations?','pluginName','catch','items','ai.serviceUrl','define','upsertCustomAIReviewRating','POST','/actions/system/','callCustomReview','continue','make-longer','/messages','_sendApiRequest','push','MAKE_TONE_FORMAL','Bearer\x20'];_0x2a04=function(){return _0x38062d;};return _0x2a04();}(function(_0x1796f9,_0xd35268){const _0x55434c=_0x545b,_0x2b6e18=_0x1796f9();while(!![]){try{const _0xbb8d47=-parseInt(_0x55434c(0xb0))/0x1+parseInt(_0x55434c(0xd5))/0x2+parseInt(_0x55434c(0xb8))/0x3*(parseInt(_0x55434c(0xc1))/0x4)+-parseInt(_0x55434c(0xb7))/0x5+-parseInt(_0x55434c(0x8e))/0x6+-parseInt(_0x55434c(0x100))/0x7*(-parseInt(_0x55434c(0xeb))/0x8)+parseInt(_0x55434c(0xe9))/0x9;if(_0xbb8d47===_0xd35268)break;else _0x2b6e18['push'](_0x2b6e18['shift']());}catch(_0x403479){_0x2b6e18['push'](_0x2b6e18['shift']());}}}(_0x2a04,0xc9880));import{createParser as _0x4d681a}from'eventsource-parser';function _0x545b(_0x476f10,_0x2fd865){const _0x2a04a6=_0x2a04();return _0x545b=function(_0x545bb1,_0x109feb){_0x545bb1=_0x545bb1-0x78;let _0x3b2383=_0x2a04a6[_0x545bb1];return _0x3b2383;},_0x545b(_0x476f10,_0x2fd865);}import{ContextPlugin as _0x5d4aff}from'ckeditor5/src/core.js';import{CKEditorError as _0x36a24f}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5e21f4){const _0x59425c=_0x545b;_0x5e21f4[_0x59425c(0x98)]=_0x59425c(0xf8),_0x5e21f4[_0x59425c(0xd0)]=_0x59425c(0xe6),_0x5e21f4[_0x59425c(0xca)]=_0x59425c(0x91),_0x5e21f4[_0x59425c(0x106)]=_0x59425c(0xf9),_0x5e21f4[_0x59425c(0x80)]=_0x59425c(0xbd),_0x5e21f4[_0x59425c(0xd6)]=_0x59425c(0xb1),_0x5e21f4[_0x59425c(0xfd)]=_0x59425c(0xdb),_0x5e21f4[_0x59425c(0x89)]=_0x59425c(0xb4);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5d4aff{[_0x480fbb(0x82)];[_0x480fbb(0xb5)];[_0x480fbb(0xe7)];static get[_0x480fbb(0xc4)](){const _0x2655c7=_0x480fbb;return[_0x2655c7(0xdc)];}static get[_0x480fbb(0xef)](){const _0x27d12c=_0x480fbb;return _0x27d12c(0xd7);}static get[_0x480fbb(0x8d)](){return!0x0;}static get[_0x480fbb(0xde)](){return!0x0;}constructor(_0x3c18f3){const _0xe09b55=_0x480fbb;super(_0x3c18f3),this[_0xe09b55(0x94)][_0xe09b55(0xcf)][_0xe09b55(0xf3)](_0xe09b55(0xf2),_0xe09b55(0xdf)),this[_0xe09b55(0x82)]=this[_0xe09b55(0x94)][_0xe09b55(0xcf)][_0xe09b55(0xc8)](_0xe09b55(0xf2)),this[_0xe09b55(0xb5)]=null,this[_0xe09b55(0xe7)]=new TextDecoder();}[_0x480fbb(0xa7)](){const _0x37cf1c=_0x480fbb,_0x24e32d=this[_0x37cf1c(0x94)][_0x37cf1c(0xaa)][_0x37cf1c(0xc8)](_0x37cf1c(0xdc));if(!_0x24e32d[_0x37cf1c(0x8a)])throw new _0x36a24f(_0x37cf1c(0xb2),this);this[_0x37cf1c(0xb5)]=_0x24e32d[_0x37cf1c(0x8a)];}[_0x480fbb(0xa1)](_0x169e08,_0x175eca){const _0x64d6f0=_0x480fbb,_0x1f8234=this[_0x64d6f0(0xfb)](_0x64d6f0(0xab),_0x64d6f0(0xf5),{'id':_0x169e08,'group':_0x175eca});return{'getConversation':async()=>(await _0x1f8234[_0x64d6f0(0xbc)])[_0x64d6f0(0xc3)](),'abortController':_0x1f8234[_0x64d6f0(0xbf)]};}[_0x480fbb(0x99)]({message:_0x516ac9,conversationId:_0x1966f0,parts:_0x540dfe,capabilities:_0x986d55,model:_0x381fe1,quickActionData:_0x2951fd}){const _0x1e2036=_0x480fbb,_0x23107d={..._0x2951fd&&{'quickActionData':_0x2951fd}},_0x33b1e4={'prompt':_0x516ac9,'content':_0x540dfe,'model':_0x381fe1,..._0x986d55&&{'capabilities':_0x986d55},...Object[_0x1e2036(0x88)](_0x23107d)[_0x1e2036(0xa8)]>0x0&&{'attributes':_0x23107d}},_0xefab30=this[_0x1e2036(0xfb)](_0x1e2036(0x93)+_0x1966f0+_0x1e2036(0xfa),_0x1e2036(0xf5),_0x33b1e4);return{'getStream':async()=>{const _0x4e1b68=_0x1e2036,_0x54ea59=(await _0xefab30[_0x4e1b68(0xbc)])[_0x4e1b68(0xc5)];return this[_0x4e1b68(0x96)](_0x54ea59);},'abortController':_0xefab30[_0x1e2036(0xbf)]};}[_0x480fbb(0x92)]({content:_0x38c3fc,message:_0x94452a,model:_0x3b5991,outputFormat:_0x4e6973}){const _0x20d468=_0x480fbb,_0x31f0ec={'content':[{'type':_0x20d468(0x95),'content':_0x38c3fc}],'prompt':_0x94452a,'model':_0x3b5991,'outputFormat':_0x4e6973},_0x39d828=this[_0x20d468(0xfb)](_0x20d468(0xa2),_0x20d468(0xf5),_0x31f0ec);return{'getStream':async()=>{const _0x34f035=_0x20d468,_0x3ed809=(await _0x39d828[_0x34f035(0xbc)])[_0x34f035(0xc5)];return this[_0x34f035(0x96)](_0x3ed809);},'abortController':_0x39d828[_0x20d468(0xbf)]};}[_0x480fbb(0x8b)]({actionName:_0x8770e5,content:_0x3f8334,args:_0x46f4ba}){const _0x4a672c=_0x480fbb,_0x503533={'content':[{'type':_0x4a672c(0x95),'content':_0x3f8334}],'args':_0x46f4ba},_0x128f56=this[_0x4a672c(0xfb)](_0x4a672c(0xf6)+_0x8770e5+_0x4a672c(0x9c),_0x4a672c(0xf5),_0x503533);return{'getStream':async()=>{const _0x4409b0=_0x4a672c,_0xd21308=(await _0x128f56[_0x4409b0(0xbc)])[_0x4409b0(0xc5)];return this[_0x4409b0(0x96)](_0xd21308);},'abortController':_0x128f56[_0x4a672c(0xbf)]};}[_0x480fbb(0x105)](_0x3b7ed1,_0x46bcb9,_0x4da7f8){const _0x3b1e16=_0x480fbb,_0x46f61c=new FormData();_0x46f61c[_0x3b1e16(0x78)](_0x3b1e16(0xbe),_0x46bcb9,_0x46bcb9[_0x3b1e16(0xcd)]),_0x4da7f8&&_0x46f61c[_0x3b1e16(0x78)](_0x3b1e16(0xc9),JSON[_0x3b1e16(0x7c)](_0x4da7f8));const _0x1861a9=this[_0x3b1e16(0xfb)](_0x3b1e16(0x93)+_0x3b7ed1+_0x3b1e16(0xdd),_0x3b1e16(0xf5),_0x46f61c);return{'getId':async()=>(await _0x1861a9[_0x3b1e16(0xbc)])[_0x3b1e16(0xc3)](),'abortController':_0x1861a9[_0x3b1e16(0xbf)]};}[_0x480fbb(0xc0)](_0x226320,_0x41de00){const _0x49b0c0=_0x480fbb,_0x1441d7=this[_0x49b0c0(0xfb)](_0x49b0c0(0x93)+_0x226320+_0x49b0c0(0xb6)+_0x41de00,_0x49b0c0(0xa0));return{'getDocument':async()=>(await _0x1441d7[_0x49b0c0(0xbc)])[_0x49b0c0(0xc3)](),'abortController':_0x1441d7[_0x49b0c0(0xbf)]};}[_0x480fbb(0xbb)](_0x1766b1,_0x5a0087,_0x554c3e){const _0x642fbc=_0x480fbb,_0x2e7c41={'content':_0x5a0087};_0x554c3e&&(_0x2e7c41[_0x642fbc(0xc9)]=_0x554c3e);const _0x453d54=this[_0x642fbc(0xfb)](_0x642fbc(0x93)+_0x1766b1+_0x642fbc(0x107),_0x642fbc(0xf5),_0x2e7c41);return{'getId':async()=>(await _0x453d54[_0x642fbc(0xbc)])[_0x642fbc(0xc3)](),'abortController':_0x453d54[_0x642fbc(0xbf)]};}[_0x480fbb(0x97)](_0xf8b22d,_0x30b965){const _0x3c219a=_0x480fbb,_0x4a405b=new URLSearchParams();_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0x104),_0x3c219a(0xc6)),_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0xe8),_0x3c219a(0x84)),_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0xba),_0xf8b22d),_0x30b965&&_0x4a405b[_0x3c219a(0x78)](_0x3c219a(0x101),_0x30b965);const _0x509f3f=this[_0x3c219a(0xfb)](_0x3c219a(0xee)+_0x4a405b[_0x3c219a(0x86)](),_0x3c219a(0xa0));return{'getConversations':async()=>{const _0x1b8aea=_0x3c219a,_0x30b15d=await _0x509f3f[_0x1b8aea(0xbc)];return(await _0x30b15d[_0x1b8aea(0xc3)]())[_0x1b8aea(0xf1)];},'abortController':_0x509f3f[_0x3c219a(0xbf)]};}[_0x480fbb(0x79)](_0x8607f8){const _0x500068=_0x480fbb,_0x5a99a0=this[_0x500068(0xfb)](_0x500068(0x93)+_0x8607f8,_0x500068(0xe1));return{'execute':async()=>{const _0x2165e6=_0x500068;await _0x5a99a0[_0x2165e6(0xbc)];},'abortController':_0x5a99a0[_0x500068(0xbf)]};}[_0x480fbb(0xd1)](_0x128dd3,_0x4d149f){const _0x29320f=_0x480fbb,_0x4dbb7e=this[_0x29320f(0xfb)](_0x29320f(0x93)+_0x128dd3,_0x29320f(0xd4),_0x4d149f);return{'getResult':async()=>(await _0x4dbb7e[_0x29320f(0xbc)],_0x4d149f),'abortController':_0x4dbb7e[_0x29320f(0xbf)]};}[_0x480fbb(0xed)](_0x71db38){const _0x320885=_0x480fbb,_0x4bb4af=this[_0x320885(0xfb)](_0x320885(0x93)+_0x71db38,_0x320885(0xa0));return{'getConversation':async()=>(await _0x4bb4af[_0x320885(0xbc)])[_0x320885(0xc3)](),'abortController':_0x4bb4af[_0x320885(0xbf)]};}[_0x480fbb(0xa3)](_0x35d40b){const _0x4bbec2=_0x480fbb,_0x537857=this[_0x4bbec2(0xfb)](_0x4bbec2(0x93)+_0x35d40b+_0x4bbec2(0xfa),_0x4bbec2(0xa0));return{'getMessages':async()=>{const _0x7f2c9b=_0x4bbec2,_0x26d2c8=await _0x537857[_0x7f2c9b(0xbc)];return(await _0x26d2c8[_0x7f2c9b(0xc3)]())[_0x7f2c9b(0xf1)];},'abortController':_0x537857[_0x4bbec2(0xbf)]};}[_0x480fbb(0xff)](_0x2b118b,_0x2f0375,_0x5c2f0a){const _0x4f1035=_0x480fbb,_0x56b122=this[_0x4f1035(0xfb)](_0x4f1035(0x93)+_0x2b118b+_0x4f1035(0xe2),_0x4f1035(0xf5),{'url':_0x2f0375,'attributes':_0x5c2f0a});return{'getId':async()=>(await _0x56b122[_0x4f1035(0xbc)])[_0x4f1035(0xc3)](),'abortController':_0x56b122[_0x4f1035(0xbf)]};}[_0x480fbb(0xac)](){const _0x5ddd6a=_0x480fbb,_0x498cd8=this[_0x5ddd6a(0xfb)](_0x5ddd6a(0xd2),_0x5ddd6a(0xa0));return{'list':async()=>await(await _0x498cd8[_0x5ddd6a(0xbc)])[_0x5ddd6a(0xc3)](),'abortController':_0x498cd8[_0x5ddd6a(0xbf)]};}[_0x480fbb(0x7a)](_0x56d10d,_0x4fdd53){const _0x30c007=_0x480fbb,_0x1fabf3=this[_0x30c007(0xfb)](_0x30c007(0x93)+_0x56d10d+_0x30c007(0x7d)+_0x4fdd53,_0x30c007(0xe1));return{'execute':async()=>{const _0x4ed6fd=_0x30c007;await _0x1fabf3[_0x4ed6fd(0xbc)];},'abortController':_0x1fabf3[_0x30c007(0xbf)]};}[_0x480fbb(0xa6)](_0x40eecf,_0x11b2ee){const _0x3db7cc=_0x480fbb,_0x5b6fe1=this[_0x3db7cc(0xfb)](_0x3db7cc(0x93)+_0x40eecf+_0x3db7cc(0xb6)+_0x11b2ee,_0x3db7cc(0xe1));return{'execute':async()=>{const _0x210c77=_0x3db7cc;await _0x5b6fe1[_0x210c77(0xbc)];},'abortController':_0x5b6fe1[_0x3db7cc(0xbf)]};}[_0x480fbb(0xcc)](_0x56db7f,_0x166973){const _0x49462b=_0x480fbb,_0x306604=this[_0x49462b(0xfb)](_0x49462b(0x93)+_0x56db7f+_0x49462b(0xe0)+_0x166973,_0x49462b(0xe1));return{'execute':async()=>{const _0x58e10d=_0x49462b;await _0x306604[_0x58e10d(0xbc)];},'abortController':_0x306604[_0x49462b(0xbf)]};}[_0x480fbb(0x9a)]({reviewName:_0x57ffa1,content:_0x43bad3,args:_0x3ec8e9}){const _0xd77d04=_0x480fbb,_0x169c95=this[_0xd77d04(0xfb)](_0xd77d04(0xda)+_0x57ffa1+_0xd77d04(0x9c),_0xd77d04(0xf5),{'content':[{'type':_0xd77d04(0x95),'content':_0x43bad3}],'args':_0x3ec8e9});return{'getStream':async()=>{const _0x2a1295=_0xd77d04,_0x2092d7=(await _0x169c95[_0x2a1295(0xbc)])[_0x2a1295(0xc5)];return this[_0x2a1295(0x96)](_0x2092d7);},'abortController':_0x169c95[_0xd77d04(0xbf)]};}[_0x480fbb(0xf7)]({content:_0x4ab3ab,prompt:_0x515d39,model:_0x3c7544}){const _0x3f0d95=_0x480fbb,_0x55f2b6=this[_0x3f0d95(0xfb)](_0x3f0d95(0xc2),_0x3f0d95(0xf5),{'content':[{'type':_0x3f0d95(0x95),'content':_0x4ab3ab}],'prompt':_0x515d39,'model':_0x3c7544});return{'getStream':async()=>{const _0x4b0d0c=_0x3f0d95,_0x11c932=(await _0x55f2b6[_0x4b0d0c(0xbc)])[_0x4b0d0c(0xc5)];return this[_0x4b0d0c(0x96)](_0x11c932);},'abortController':_0x55f2b6[_0x3f0d95(0xbf)]};}[_0x480fbb(0xad)](_0x3ce1a3,_0x3d8033,_0x558a57){const _0x29065d=_0x480fbb,_0x244987=this[_0x29065d(0xfb)](_0x29065d(0x93)+_0x3ce1a3+_0x29065d(0xa5)+_0x3d8033+_0x29065d(0xae),_0x29065d(0xe4),{'positiveCount':_0x558a57[_0x29065d(0x9d)],'totalCount':_0x558a57[_0x29065d(0xec)],'modificationId':_0x558a57[_0x29065d(0x8c)]});return{'execute':async()=>{const _0x13213c=_0x29065d;await _0x244987[_0x13213c(0xbc)];},'abortController':_0x244987[_0x29065d(0xbf)]};}[_0x480fbb(0xa9)](_0x5ad651,_0x101e4,_0x2482fa){const _0xc53f4c=_0x480fbb,_0x34916f=this[_0xc53f4c(0xfb)](_0xc53f4c(0xf6)+_0x5ad651+_0xc53f4c(0xd9)+_0x101e4+_0xc53f4c(0xae),_0xc53f4c(0xe4),{'positiveCount':_0x2482fa[_0xc53f4c(0x9d)],'totalCount':_0x2482fa[_0xc53f4c(0xec)]});return{'execute':async()=>{const _0x36c23f=_0xc53f4c;await _0x34916f[_0x36c23f(0xbc)];},'abortController':_0x34916f[_0xc53f4c(0xbf)]};}[_0x480fbb(0x85)](_0xfcc7c5,_0x42bfce){const _0x2e833d=_0x480fbb,_0x494ab0=this[_0x2e833d(0xfb)](_0x2e833d(0x7b)+_0xfcc7c5+_0x2e833d(0xae),_0x2e833d(0xe4),{'positiveCount':_0x42bfce[_0x2e833d(0x9d)],'totalCount':_0x42bfce[_0x2e833d(0xec)]});return{'execute':async()=>{const _0x463be1=_0x2e833d;await _0x494ab0[_0x463be1(0xbc)];},'abortController':_0x494ab0[_0x2e833d(0xbf)]};}[_0x480fbb(0x7e)](_0x59a88a,_0x1a4829,_0x47b63f,_0x49341b){const _0x58a0af=_0x480fbb,_0x3280e7=this[_0x58a0af(0xfb)](_0x58a0af(0xda)+_0x59a88a+_0x58a0af(0xd9)+_0x1a4829+_0x58a0af(0xae),_0x58a0af(0xe4),{'positiveCount':_0x47b63f[_0x58a0af(0x9d)],'totalCount':_0x47b63f[_0x58a0af(0xec)],'dataId':_0x49341b});return{'execute':async()=>{const _0x52ae86=_0x58a0af;await _0x3280e7[_0x52ae86(0xbc)];},'abortController':_0x3280e7[_0x58a0af(0xbf)]};}[_0x480fbb(0xf4)](_0x1f7278,_0x3813c6,_0x57dcb2){const _0x20117a=_0x480fbb,_0x4249ef=this[_0x20117a(0xfb)](_0x20117a(0x9e)+_0x1f7278+_0x20117a(0xae),_0x20117a(0xe4),{'positiveCount':_0x3813c6[_0x20117a(0x9d)],'totalCount':_0x3813c6[_0x20117a(0xec)],'dataId':_0x57dcb2});return{'execute':async()=>{const _0x1336fe=_0x20117a;await _0x4249ef[_0x1336fe(0xbc)];},'abortController':_0x4249ef[_0x20117a(0xbf)]};}[_0x480fbb(0xfb)](_0x44529a,_0x437daf,_0x34dd11){const _0xcaad52=_0x480fbb,_0x2ad9d6=new AbortController(),_0x2080f5=_0x34dd11 instanceof FormData,_0x47f7a7={'Authorization':_0xcaad52(0xfe)+this[_0xcaad52(0xb5)]?.[_0xcaad52(0x8f)]};_0x34dd11&&!_0x2080f5&&(_0x47f7a7[_0xcaad52(0x102)]=_0xcaad52(0xea));const _0x24a637={'method':_0x437daf,'headers':_0x47f7a7,'signal':_0x2ad9d6[_0xcaad52(0xaf)]};return _0x34dd11&&(_0x24a637[_0xcaad52(0xc5)]=_0x2080f5?_0x34dd11:JSON[_0xcaad52(0x7c)](_0x34dd11)),{'request':fetch(''+this[_0xcaad52(0x82)]+_0x44529a,_0x24a637)[_0xcaad52(0xf0)](_0x35bea5=>{const _0x4c6a21=_0xcaad52;this[_0x4c6a21(0x90)](_0x35bea5);})[_0xcaad52(0xb9)](_0x50e112=>_0x50e112['ok']?_0x50e112:_0x50e112[_0xcaad52(0xc3)]()[_0xcaad52(0xb9)](_0x4751b0=>{const _0x1cf6c1=_0xcaad52;throw{'url':this[_0x1cf6c1(0x82)],'path':_0x44529a,'method':_0x437daf,'body':_0x34dd11,'status':(_0x50e112||{})[_0x1cf6c1(0x83)],'statusText':(_0x50e112||{})[_0x1cf6c1(0xce)],'code':_0x4751b0[_0x1cf6c1(0x103)],'message':_0x4751b0[_0x1cf6c1(0x87)],'traceId':_0x4751b0[_0x1cf6c1(0x7f)]};})),'abortController':_0x2ad9d6};}async*[_0x480fbb(0x96)](_0x48d386){const _0x478f53=_0x480fbb,_0x5c8cb4=[],_0x5c02f3=_0x48d386[_0x478f53(0x9b)](),_0x36f0ec=_0x4d681a({'onError':_0x3fc987=>{const _0x52a607=_0x478f53;this[_0x52a607(0x90)](_0x3fc987);},'onEvent':_0x2b8131=>{const _0x1857d0=_0x478f53;_0x2b8131[_0x1857d0(0x81)]=JSON[_0x1857d0(0xe3)](_0x2b8131[_0x1857d0(0x81)]),_0x5c8cb4[_0x1857d0(0xfc)](_0x2b8131);}});try{let _0x2c8f63=!0x1;for(;!_0x2c8f63;){const {done:_0x1f1e8d,value:_0xaeb6b}=await _0x5c02f3[_0x478f53(0xcb)]();_0x1f1e8d&&(_0x2c8f63=!0x0),_0x36f0ec[_0x478f53(0xd8)](this[_0x478f53(0xe7)][_0x478f53(0xa4)](_0xaeb6b,{'stream':!0x0})),yield*_0x5c8cb4,_0x5c8cb4[_0x478f53(0xa8)]=0x0;}}catch(_0x236a08){this[_0x478f53(0x90)](_0x236a08);}finally{_0x5c02f3[_0x478f53(0x9f)](),_0x36f0ec[_0x478f53(0xc7)]();}}[_0x480fbb(0x90)](_0x5c65c0){const _0x22f1aa=_0x480fbb;if(_0x5c65c0 instanceof _0x36a24f)throw _0x5c65c0;if(_0x5c65c0 instanceof Error&&_0x22f1aa(0xe5)===_0x5c65c0[_0x22f1aa(0xcd)])throw new _0x36a24f(_0x22f1aa(0xd3),this,{'originalError':_0x5c65c0});throw new _0x36a24f(_0x22f1aa(0xb3),this,{'originalError':_0x5c65c0});}}
23
+ const _0x1d51b9=_0x3d41;function _0x4a7e(){const _0x11d39e=['callCustomReview','pluginName','json','signal','/documents','https://ai.cke-cs.com/v1','ai-request-failed','application/json','fix-grammar','uploadDocument','MAKE_LONGER','isOfficialPlugin','reset','continue','/files','/calls/','PUT','upsertAIActionRating','toString','releaseLock','PATCH','/models/1','define','make-longer','stringify','ai-request-aborted','IMPROVE_WRITING','callSystemReview','executeAction','statusText','deleteDocument','init','traceId','queryAssistant','_decoder','MAKE_SHORTER','24ksjEZN','TRANSLATE','212iJtlsw','MAKE_TONE_FORMAL','true','requires','config','deleteFile','group','make-shorter','fetchConversationMessages','GET','get','make-tone-casual','length','executeCustomAction','push','excludeEmpty','_getStreamReader','30jnJOtI','positiveCount','MAKE_TONE_CASUAL','body','ai-missing-token','DELETE','/calls','file','then','Content-Type','AIConnector','translate','CONTINUE','search','deleteWebResource','deleteConversation','items','/conversations','token','limit','/conversations/','catch','improve-writing','100','fetchConversations','message','7739721TRohUT','5443208ymlSAp','/ratings','upsertAIReviewRating','getReader','fetchDocument','decode','updateConversation','upsertAIChatRating','_handleError','read','_token','/messages','/actions/system/','feed','totalCount','/web-resources','keys','/reviews/custom/calls/','attributes','FIX_GRAMMAR','/reviews/system/','58680VRvKVc','2818242KtVhHI','/reviews/custom/calls','context','/actions/custom/calls/','uploadFile','modificationId','/documents/','ai.serviceUrl','Bearer\x20','/messages/','2748pFxHCE','_apiUrl','data','code','/web-resources/','startConversation','name','fetchConversation','append','value','text','abortController','AbortError','getModels','isPremiumPlugin','/conversations?','679803Gcgrwl','upsertCustomAIActionRating','status','request','plugins','uploadUrl','make-tone-formal','40705WZHZxj','777wplGZT','POST','upsertCustomAIReviewRating','parse','CloudServices','/files/','/actions/custom/calls','_sendApiRequest'];_0x4a7e=function(){return _0x11d39e;};return _0x4a7e();}(function(_0x4d11ab,_0x6c9dc){const _0x4aba88=_0x3d41,_0xd3c7cb=_0x4d11ab();while(!![]){try{const _0x15708a=parseInt(_0x4aba88(0x198))/0x1*(-parseInt(_0x4aba88(0x133))/0x2)+-parseInt(_0x4aba88(0x191))/0x3+parseInt(_0x4aba88(0x135))/0x4*(-parseInt(_0x4aba88(0x176))/0x5)+parseInt(_0x4aba88(0x181))/0x6*(parseInt(_0x4aba88(0x199))/0x7)+-parseInt(_0x4aba88(0x161))/0x8+parseInt(_0x4aba88(0x177))/0x9+parseInt(_0x4aba88(0x146))/0xa*(parseInt(_0x4aba88(0x160))/0xb);if(_0x15708a===_0x6c9dc)break;else _0xd3c7cb['push'](_0xd3c7cb['shift']());}catch(_0x3f597c){_0xd3c7cb['push'](_0xd3c7cb['shift']());}}}(_0x4a7e,0x6fa7b));import{createParser as _0x34775d}from'eventsource-parser';import{ContextPlugin as _0x498ac0}from'ckeditor5/src/core.js';import{CKEditorError as _0xc91ee9}from'ckeditor5/src/utils.js';function _0x3d41(_0x2bb8f9,_0x4561d8){const _0x4a7e28=_0x4a7e();return _0x3d41=function(_0x3d41d7,_0x27c71e){_0x3d41d7=_0x3d41d7-0x132;let _0x32e1e7=_0x4a7e28[_0x3d41d7];return _0x32e1e7;},_0x3d41(_0x2bb8f9,_0x4561d8);}export var AIActionsNames;!function(_0x39f7ab){const _0x4514e9=_0x3d41;_0x39f7ab[_0x4514e9(0x152)]=_0x4514e9(0x1ae),_0x39f7ab[_0x4514e9(0x174)]=_0x4514e9(0x1a9),_0x39f7ab[_0x4514e9(0x1bb)]=_0x4514e9(0x15c),_0x39f7ab[_0x4514e9(0x1ab)]=_0x4514e9(0x1b8),_0x39f7ab[_0x4514e9(0x132)]=_0x4514e9(0x13c),_0x39f7ab[_0x4514e9(0x148)]=_0x4514e9(0x140),_0x39f7ab[_0x4514e9(0x136)]=_0x4514e9(0x197),_0x39f7ab[_0x4514e9(0x134)]=_0x4514e9(0x151);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x498ac0{[_0x1d51b9(0x182)];[_0x1d51b9(0x16b)];[_0x1d51b9(0x1c3)];static get[_0x1d51b9(0x138)](){const _0x44b864=_0x1d51b9;return[_0x44b864(0x19d)];}static get[_0x1d51b9(0x1a2)](){const _0x3d5e7e=_0x1d51b9;return _0x3d5e7e(0x150);}static get[_0x1d51b9(0x1ac)](){return!0x0;}static get[_0x1d51b9(0x18f)](){return!0x0;}constructor(_0x5ef50c){const _0x3fbb04=_0x1d51b9;super(_0x5ef50c),this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x1b7)](_0x3fbb04(0x17e),_0x3fbb04(0x1a6)),this[_0x3fbb04(0x182)]=this[_0x3fbb04(0x179)][_0x3fbb04(0x139)][_0x3fbb04(0x13f)](_0x3fbb04(0x17e)),this[_0x3fbb04(0x16b)]=null,this[_0x3fbb04(0x1c3)]=new TextDecoder();}[_0x1d51b9(0x1c0)](){const _0x82e936=_0x1d51b9,_0x159925=this[_0x82e936(0x179)][_0x82e936(0x195)][_0x82e936(0x13f)](_0x82e936(0x19d));if(!_0x159925[_0x82e936(0x158)])throw new _0xc91ee9(_0x82e936(0x14a),this);this[_0x82e936(0x16b)]=_0x159925[_0x82e936(0x158)];}[_0x1d51b9(0x186)](_0x508d01,_0xffce2c){const _0xf05e86=_0x1d51b9,_0x17b939=this[_0xf05e86(0x1a0)](_0xf05e86(0x157),_0xf05e86(0x19a),{'id':_0x508d01,'group':_0xffce2c});return{'getConversation':async()=>(await _0x17b939[_0xf05e86(0x194)])[_0xf05e86(0x1a3)](),'abortController':_0x17b939[_0xf05e86(0x18c)]};}[_0x1d51b9(0x1c2)]({message:_0x2d21c,conversationId:_0x44a677,parts:_0x1a9664,capabilities:_0x24c2e6,model:_0x186769,quickActionData:_0x3d6d3d}){const _0x38f20d=_0x1d51b9,_0x451277={..._0x3d6d3d&&{'quickActionData':_0x3d6d3d}},_0x3c0183={'prompt':_0x2d21c,'content':_0x1a9664,'model':_0x186769,..._0x24c2e6&&{'capabilities':_0x24c2e6},...Object[_0x38f20d(0x171)](_0x451277)[_0x38f20d(0x141)]>0x0&&{'attributes':_0x451277}},_0x147639=this[_0x38f20d(0x1a0)](_0x38f20d(0x15a)+_0x44a677+_0x38f20d(0x16c),_0x38f20d(0x19a),_0x3c0183);return{'getStream':async()=>{const _0x37e203=_0x38f20d,_0x5358b9=(await _0x147639[_0x37e203(0x194)])[_0x37e203(0x149)];return this[_0x37e203(0x145)](_0x5358b9);},'abortController':_0x147639[_0x38f20d(0x18c)]};}[_0x1d51b9(0x142)]({content:_0x12eaaf,message:_0x49338b,model:_0x317741,outputFormat:_0x56a5a5}){const _0x373f1c=_0x1d51b9,_0x3faed3={'content':[{'type':_0x373f1c(0x18b),'content':_0x12eaaf}],'prompt':_0x49338b,'model':_0x317741,'outputFormat':_0x56a5a5},_0x393ca6=this[_0x373f1c(0x1a0)](_0x373f1c(0x19f),_0x373f1c(0x19a),_0x3faed3);return{'getStream':async()=>{const _0x8a97e5=_0x373f1c,_0x353220=(await _0x393ca6[_0x8a97e5(0x194)])[_0x8a97e5(0x149)];return this[_0x8a97e5(0x145)](_0x353220);},'abortController':_0x393ca6[_0x373f1c(0x18c)]};}[_0x1d51b9(0x1bd)]({actionName:_0x5c3c82,content:_0x4eedc5,args:_0x8162ba}){const _0x108bab=_0x1d51b9,_0x3dc443={'content':[{'type':_0x108bab(0x18b),'content':_0x4eedc5}],'args':_0x8162ba},_0x3a50d4=this[_0x108bab(0x1a0)](_0x108bab(0x16d)+_0x5c3c82+_0x108bab(0x14c),_0x108bab(0x19a),_0x3dc443);return{'getStream':async()=>{const _0x41adf5=_0x108bab,_0x1ebe3b=(await _0x3a50d4[_0x41adf5(0x194)])[_0x41adf5(0x149)];return this[_0x41adf5(0x145)](_0x1ebe3b);},'abortController':_0x3a50d4[_0x108bab(0x18c)]};}[_0x1d51b9(0x17b)](_0x3ffaf8,_0x2bf640,_0x3bdd4f){const _0x2a2929=_0x1d51b9,_0xb7e0a2=new FormData();_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x14d),_0x2bf640,_0x2bf640[_0x2a2929(0x187)]),_0x3bdd4f&&_0xb7e0a2[_0x2a2929(0x189)](_0x2a2929(0x173),JSON[_0x2a2929(0x1b9)](_0x3bdd4f));const _0x12f7f1=this[_0x2a2929(0x1a0)](_0x2a2929(0x15a)+_0x3ffaf8+_0x2a2929(0x1af),_0x2a2929(0x19a),_0xb7e0a2);return{'getId':async()=>(await _0x12f7f1[_0x2a2929(0x194)])[_0x2a2929(0x1a3)](),'abortController':_0x12f7f1[_0x2a2929(0x18c)]};}[_0x1d51b9(0x165)](_0xe53136,_0x1b999a){const _0x3c2442=_0x1d51b9,_0x384ea0=this[_0x3c2442(0x1a0)](_0x3c2442(0x15a)+_0xe53136+_0x3c2442(0x17d)+_0x1b999a,_0x3c2442(0x13e));return{'getDocument':async()=>(await _0x384ea0[_0x3c2442(0x194)])[_0x3c2442(0x1a3)](),'abortController':_0x384ea0[_0x3c2442(0x18c)]};}[_0x1d51b9(0x1aa)](_0x277985,_0x53aebf,_0x19c987){const _0x4b719e=_0x1d51b9,_0x3a5324={'content':_0x53aebf};_0x19c987&&(_0x3a5324[_0x4b719e(0x173)]=_0x19c987);const _0x5125fa=this[_0x4b719e(0x1a0)](_0x4b719e(0x15a)+_0x277985+_0x4b719e(0x1a5),_0x4b719e(0x19a),_0x3a5324);return{'getId':async()=>(await _0x5125fa[_0x4b719e(0x194)])[_0x4b719e(0x1a3)](),'abortController':_0x5125fa[_0x4b719e(0x18c)]};}[_0x1d51b9(0x15e)](_0x216a38,_0x2b612f){const _0x1eb831=_0x1d51b9,_0x36c124=new URLSearchParams();_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x144),_0x1eb831(0x137)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x159),_0x1eb831(0x15d)),_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x13b),_0x216a38),_0x2b612f&&_0x36c124[_0x1eb831(0x189)](_0x1eb831(0x153),_0x2b612f);const _0x455c2f=this[_0x1eb831(0x1a0)](_0x1eb831(0x190)+_0x36c124[_0x1eb831(0x1b3)](),_0x1eb831(0x13e));return{'getConversations':async()=>{const _0x5b10fb=_0x1eb831,_0x4374f7=await _0x455c2f[_0x5b10fb(0x194)];return(await _0x4374f7[_0x5b10fb(0x1a3)]())[_0x5b10fb(0x156)];},'abortController':_0x455c2f[_0x1eb831(0x18c)]};}[_0x1d51b9(0x155)](_0x264c14){const _0xbfbb90=_0x1d51b9,_0x1a91ef=this[_0xbfbb90(0x1a0)](_0xbfbb90(0x15a)+_0x264c14,_0xbfbb90(0x14b));return{'execute':async()=>{const _0x355d07=_0xbfbb90;await _0x1a91ef[_0x355d07(0x194)];},'abortController':_0x1a91ef[_0xbfbb90(0x18c)]};}[_0x1d51b9(0x167)](_0x41472f,_0x52e173){const _0x403867=_0x1d51b9,_0x5b684f=this[_0x403867(0x1a0)](_0x403867(0x15a)+_0x41472f,_0x403867(0x1b5),_0x52e173);return{'getResult':async()=>(await _0x5b684f[_0x403867(0x194)],_0x52e173),'abortController':_0x5b684f[_0x403867(0x18c)]};}[_0x1d51b9(0x188)](_0x2fd4a2){const _0x28cb08=_0x1d51b9,_0x46d627=this[_0x28cb08(0x1a0)](_0x28cb08(0x15a)+_0x2fd4a2,_0x28cb08(0x13e));return{'getConversation':async()=>(await _0x46d627[_0x28cb08(0x194)])[_0x28cb08(0x1a3)](),'abortController':_0x46d627[_0x28cb08(0x18c)]};}[_0x1d51b9(0x13d)](_0xa5b6a1){const _0x18e577=_0x1d51b9,_0x56ff16=this[_0x18e577(0x1a0)](_0x18e577(0x15a)+_0xa5b6a1+_0x18e577(0x16c),_0x18e577(0x13e));return{'getMessages':async()=>{const _0x338a7f=_0x18e577,_0x4f29b6=await _0x56ff16[_0x338a7f(0x194)];return(await _0x4f29b6[_0x338a7f(0x1a3)]())[_0x338a7f(0x156)];},'abortController':_0x56ff16[_0x18e577(0x18c)]};}[_0x1d51b9(0x196)](_0x1527fe,_0x58123b,_0x1cc05f){const _0x4601bb=_0x1d51b9,_0x28a886=this[_0x4601bb(0x1a0)](_0x4601bb(0x15a)+_0x1527fe+_0x4601bb(0x170),_0x4601bb(0x19a),{'url':_0x58123b,'attributes':_0x1cc05f});return{'getId':async()=>(await _0x28a886[_0x4601bb(0x194)])[_0x4601bb(0x1a3)](),'abortController':_0x28a886[_0x4601bb(0x18c)]};}[_0x1d51b9(0x18e)](){const _0x5e3939=_0x1d51b9,_0x5ae95e=this[_0x5e3939(0x1a0)](_0x5e3939(0x1b6),_0x5e3939(0x13e));return{'list':async()=>await(await _0x5ae95e[_0x5e3939(0x194)])[_0x5e3939(0x1a3)](),'abortController':_0x5ae95e[_0x5e3939(0x18c)]};}[_0x1d51b9(0x13a)](_0x1ac123,_0x2698a2){const _0x4c5350=_0x1d51b9,_0x158517=this[_0x4c5350(0x1a0)](_0x4c5350(0x15a)+_0x1ac123+_0x4c5350(0x19e)+_0x2698a2,_0x4c5350(0x14b));return{'execute':async()=>{const _0x1b7191=_0x4c5350;await _0x158517[_0x1b7191(0x194)];},'abortController':_0x158517[_0x4c5350(0x18c)]};}[_0x1d51b9(0x1bf)](_0x204cb2,_0x1a7b26){const _0x5ec68c=_0x1d51b9,_0x2e934a=this[_0x5ec68c(0x1a0)](_0x5ec68c(0x15a)+_0x204cb2+_0x5ec68c(0x17d)+_0x1a7b26,_0x5ec68c(0x14b));return{'execute':async()=>{const _0x3391e0=_0x5ec68c;await _0x2e934a[_0x3391e0(0x194)];},'abortController':_0x2e934a[_0x5ec68c(0x18c)]};}[_0x1d51b9(0x154)](_0x112343,_0x2a399f){const _0xe3cb7e=_0x1d51b9,_0x514194=this[_0xe3cb7e(0x1a0)](_0xe3cb7e(0x15a)+_0x112343+_0xe3cb7e(0x185)+_0x2a399f,_0xe3cb7e(0x14b));return{'execute':async()=>{const _0x458e38=_0xe3cb7e;await _0x514194[_0x458e38(0x194)];},'abortController':_0x514194[_0xe3cb7e(0x18c)]};}[_0x1d51b9(0x1bc)]({reviewName:_0x3826e4,content:_0x5bc974,args:_0x45b7e3}){const _0x4c5932=_0x1d51b9,_0x2fc13b=this[_0x4c5932(0x1a0)](_0x4c5932(0x175)+_0x3826e4+_0x4c5932(0x14c),_0x4c5932(0x19a),{'content':[{'type':_0x4c5932(0x18b),'content':_0x5bc974}],'args':_0x45b7e3});return{'getStream':async()=>{const _0x3dad5a=_0x4c5932,_0x3da2ea=(await _0x2fc13b[_0x3dad5a(0x194)])[_0x3dad5a(0x149)];return this[_0x3dad5a(0x145)](_0x3da2ea);},'abortController':_0x2fc13b[_0x4c5932(0x18c)]};}[_0x1d51b9(0x1a1)]({content:_0x108ace,prompt:_0x1afd70,model:_0x55cc18}){const _0x48c152=_0x1d51b9,_0x4a05ac=this[_0x48c152(0x1a0)](_0x48c152(0x178),_0x48c152(0x19a),{'content':[{'type':_0x48c152(0x18b),'content':_0x108ace}],'prompt':_0x1afd70,'model':_0x55cc18});return{'getStream':async()=>{const _0x458ee0=_0x48c152,_0x2912ab=(await _0x4a05ac[_0x458ee0(0x194)])[_0x458ee0(0x149)];return this[_0x458ee0(0x145)](_0x2912ab);},'abortController':_0x4a05ac[_0x48c152(0x18c)]};}[_0x1d51b9(0x168)](_0x10c0a3,_0x2656f1,_0x17d706){const _0x4fd35e=_0x1d51b9,_0x32827b=this[_0x4fd35e(0x1a0)](_0x4fd35e(0x15a)+_0x10c0a3+_0x4fd35e(0x180)+_0x2656f1+_0x4fd35e(0x162),_0x4fd35e(0x1b1),{'positiveCount':_0x17d706[_0x4fd35e(0x147)],'totalCount':_0x17d706[_0x4fd35e(0x16f)],'modificationId':_0x17d706[_0x4fd35e(0x17c)]});return{'execute':async()=>{const _0x49d8e2=_0x4fd35e;await _0x32827b[_0x49d8e2(0x194)];},'abortController':_0x32827b[_0x4fd35e(0x18c)]};}[_0x1d51b9(0x1b2)](_0x22c3d0,_0x1b15cf,_0x300930){const _0x42ce57=_0x1d51b9,_0x166f99=this[_0x42ce57(0x1a0)](_0x42ce57(0x16d)+_0x22c3d0+_0x42ce57(0x1b0)+_0x1b15cf+_0x42ce57(0x162),_0x42ce57(0x1b1),{'positiveCount':_0x300930[_0x42ce57(0x147)],'totalCount':_0x300930[_0x42ce57(0x16f)]});return{'execute':async()=>{const _0x4b4c67=_0x42ce57;await _0x166f99[_0x4b4c67(0x194)];},'abortController':_0x166f99[_0x42ce57(0x18c)]};}[_0x1d51b9(0x192)](_0x3d0338,_0x1bbb07){const _0x4324ab=_0x1d51b9,_0x823b56=this[_0x4324ab(0x1a0)](_0x4324ab(0x17a)+_0x3d0338+_0x4324ab(0x162),_0x4324ab(0x1b1),{'positiveCount':_0x1bbb07[_0x4324ab(0x147)],'totalCount':_0x1bbb07[_0x4324ab(0x16f)]});return{'execute':async()=>{const _0x42c841=_0x4324ab;await _0x823b56[_0x42c841(0x194)];},'abortController':_0x823b56[_0x4324ab(0x18c)]};}[_0x1d51b9(0x163)](_0x2f2b40,_0x11f74f,_0x226366,_0x47a706){const _0x28edac=_0x1d51b9,_0x83c6ee=this[_0x28edac(0x1a0)](_0x28edac(0x175)+_0x2f2b40+_0x28edac(0x1b0)+_0x11f74f+_0x28edac(0x162),_0x28edac(0x1b1),{'positiveCount':_0x226366[_0x28edac(0x147)],'totalCount':_0x226366[_0x28edac(0x16f)],'dataId':_0x47a706});return{'execute':async()=>{const _0x11c062=_0x28edac;await _0x83c6ee[_0x11c062(0x194)];},'abortController':_0x83c6ee[_0x28edac(0x18c)]};}[_0x1d51b9(0x19b)](_0x2a1f0d,_0xd1ffc5,_0x16d7c7){const _0x14abb3=_0x1d51b9,_0x25c4c2=this[_0x14abb3(0x1a0)](_0x14abb3(0x172)+_0x2a1f0d+_0x14abb3(0x162),_0x14abb3(0x1b1),{'positiveCount':_0xd1ffc5[_0x14abb3(0x147)],'totalCount':_0xd1ffc5[_0x14abb3(0x16f)],'dataId':_0x16d7c7});return{'execute':async()=>{const _0x2eb069=_0x14abb3;await _0x25c4c2[_0x2eb069(0x194)];},'abortController':_0x25c4c2[_0x14abb3(0x18c)]};}[_0x1d51b9(0x1a0)](_0x23fe7f,_0x1911be,_0x4c59ae){const _0x26317a=_0x1d51b9,_0x1a18f2=new AbortController(),_0x29177b=_0x4c59ae instanceof FormData,_0x40dd70={'Authorization':_0x26317a(0x17f)+this[_0x26317a(0x16b)]?.[_0x26317a(0x18a)]};_0x4c59ae&&!_0x29177b&&(_0x40dd70[_0x26317a(0x14f)]=_0x26317a(0x1a8));const _0x4c6b63={'method':_0x1911be,'headers':_0x40dd70,'signal':_0x1a18f2[_0x26317a(0x1a4)]};return _0x4c59ae&&(_0x4c6b63[_0x26317a(0x149)]=_0x29177b?_0x4c59ae:JSON[_0x26317a(0x1b9)](_0x4c59ae)),{'request':fetch(''+this[_0x26317a(0x182)]+_0x23fe7f,_0x4c6b63)[_0x26317a(0x15b)](_0xc6c613=>{const _0x434d29=_0x26317a;this[_0x434d29(0x169)](_0xc6c613);})[_0x26317a(0x14e)](_0x5c63a6=>_0x5c63a6['ok']?_0x5c63a6:_0x5c63a6[_0x26317a(0x1a3)]()[_0x26317a(0x14e)](_0x2926fe=>{const _0x2f3887=_0x26317a;throw{'url':this[_0x2f3887(0x182)],'path':_0x23fe7f,'method':_0x1911be,'body':_0x4c59ae,'status':(_0x5c63a6||{})[_0x2f3887(0x193)],'statusText':(_0x5c63a6||{})[_0x2f3887(0x1be)],'code':_0x2926fe[_0x2f3887(0x184)],'message':_0x2926fe[_0x2f3887(0x15f)],'traceId':_0x2926fe[_0x2f3887(0x1c1)]};})),'abortController':_0x1a18f2};}async*[_0x1d51b9(0x145)](_0x535db4){const _0x46fbfd=_0x1d51b9,_0x16b97f=[],_0x12dbfa=_0x535db4[_0x46fbfd(0x164)](),_0x6f8d2d=_0x34775d({'onError':_0x28896f=>{const _0x20c338=_0x46fbfd;this[_0x20c338(0x169)](_0x28896f);},'onEvent':_0x1ffd12=>{const _0x443399=_0x46fbfd;_0x1ffd12[_0x443399(0x183)]=JSON[_0x443399(0x19c)](_0x1ffd12[_0x443399(0x183)]),_0x16b97f[_0x443399(0x143)](_0x1ffd12);}});try{let _0xd60158=!0x1;for(;!_0xd60158;){const {done:_0xad78b4,value:_0x4a4ff5}=await _0x12dbfa[_0x46fbfd(0x16a)]();_0xad78b4&&(_0xd60158=!0x0),_0x6f8d2d[_0x46fbfd(0x16e)](this[_0x46fbfd(0x1c3)][_0x46fbfd(0x166)](_0x4a4ff5,{'stream':!0x0})),yield*_0x16b97f,_0x16b97f[_0x46fbfd(0x141)]=0x0;}}catch(_0x2b31e2){this[_0x46fbfd(0x169)](_0x2b31e2);}finally{_0x12dbfa[_0x46fbfd(0x1b4)](),_0x6f8d2d[_0x46fbfd(0x1ad)]();}}[_0x1d51b9(0x169)](_0x4a4bdc){const _0x23e474=_0x1d51b9;if(_0x4a4bdc instanceof _0xc91ee9)throw _0x4a4bdc;if(_0x4a4bdc instanceof Error&&_0x23e474(0x18d)===_0x4a4bdc[_0x23e474(0x187)])throw new _0xc91ee9(_0x23e474(0x1ba),this,{'originalError':_0x4a4bdc});throw new _0xc91ee9(_0x23e474(0x1a7),this,{'originalError':_0x4a4bdc});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x44d2a1=_0x1c97;(function(_0x457d9f,_0x58a634){const _0x1d4bf9=_0x1c97,_0x4baaf8=_0x457d9f();while(!![]){try{const _0x576112=parseInt(_0x1d4bf9(0xbd))/0x1*(-parseInt(_0x1d4bf9(0xd6))/0x2)+parseInt(_0x1d4bf9(0xcd))/0x3*(-parseInt(_0x1d4bf9(0xd5))/0x4)+-parseInt(_0x1d4bf9(0xce))/0x5+-parseInt(_0x1d4bf9(0xd1))/0x6*(-parseInt(_0x1d4bf9(0xae))/0x7)+-parseInt(_0x1d4bf9(0xcb))/0x8*(parseInt(_0x1d4bf9(0x9b))/0x9)+-parseInt(_0x1d4bf9(0x80))/0xa+-parseInt(_0x1d4bf9(0x89))/0xb*(-parseInt(_0x1d4bf9(0xdf))/0xc);if(_0x576112===_0x58a634)break;else _0x4baaf8['push'](_0x4baaf8['shift']());}catch(_0x1e407f){_0x4baaf8['push'](_0x4baaf8['shift']());}}}(_0x150e,0x5e4c8));import{ViewDowncastWriter as _0xcf7abc}from'ckeditor5/src/engine.js';function _0x150e(){const _0x816c80=['element','getSelection','sessionId','change','editingDowncast','removeAllRanges','removeMarker','getWalker','dataDowncast','add','version','start','_sessionId','sort','editors','createRangeIn','6900723eslmXm','_nextDataId','createUIElement','hideFakeVisualSelection','end','processor','plugins','setAttribute','_displayedFakeSelectionId','editing','get','isAtEnd','getChildren','ready','addMarker',':start>','getSelectionText','trim','afterInit','7BtUMDn','for','document','push','emptyElement','length','markerToElement','ck-ai-assistant-ui_theme','getLastMatchingPosition','$textProxy','isAfter','has','RealTimeCollaborationClient','getDocumentData','context','1LPuNlf','fromCharCode','ai-selection:','modelToViewWithIds',':end>','markerToHighlight',':end></','markers','isOpening','toData','name','_setDataIdsOnChildren','convertAiChatSelectionMarker','isPremiumPlugin','8gspTxO','model','15hnbdfI','803885bIaGvs','_integrateEditor','isOfficialPlugin','4572444OkLNAw','ck-fake-ai-selection','view','isBefore','228692wBNHly','286226TXTxDA','pluginName','from','data-id','data','listenTo','containerElement','getStart','floor','20252964epBIzP','random','isContent','AIEditing','getMarkersGroup','indexOf','_displayedFakeSelectionLocked','selection','ai-selection','toView','getSelectedContent','showFakeVisualSelection','7070710uYJvwk','join','schema','substring','createRange','markerName','_getMarkersInDocumentOrder','conversion','getRoot','11DBugwG',':start></'];_0x150e=function(){return _0x816c80;};return _0x150e();}import{ContextPlugin as _0x1c81a9,Editor as _0x5448cb}from'ckeditor5/src/core.js';import{uid as _0xdfd8d4}from'ckeditor5/src/utils.js';function _0x1c97(_0x54127a,_0x4f87bd){const _0x150e88=_0x150e();return _0x1c97=function(_0x1c9722,_0x3d6a5c){_0x1c9722=_0x1c9722-0x80;let _0x3b91b2=_0x150e88[_0x1c9722];return _0x3b91b2;},_0x1c97(_0x54127a,_0x4f87bd);}import{getEditorFromContext as _0x1a8bda}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x44d2a1(0xe7);export class AIEditing extends _0x1c81a9{[_0x44d2a1(0xa3)]=null;[_0x44d2a1(0xe5)]=!0x1;[_0x44d2a1(0x97)];static get[_0x44d2a1(0xd7)](){const _0x474c91=_0x44d2a1;return _0x474c91(0xe2);}static get[_0x44d2a1(0xd0)](){return!0x0;}static get[_0x44d2a1(0xca)](){return!0x0;}get[_0x44d2a1(0x8d)](){const _0x3a467b=_0x44d2a1;if(!this[_0x3a467b(0x97)]){const _0x96d60b=_0x1a8bda(this[_0x3a467b(0xbc)]),_0x1a648c=_0x96d60b[_0x3a467b(0xa1)][_0x3a467b(0xb9)](_0x3a467b(0xba))&&_0x96d60b[_0x3a467b(0xa1)][_0x3a467b(0xa5)](_0x3a467b(0xba))[_0x3a467b(0x8d)];this[_0x3a467b(0x97)]=_0x1a648c||_0xdfd8d4();}return this[_0x3a467b(0x97)];}[_0x44d2a1(0xbb)](){const _0x255a56=_0x44d2a1,_0x484ef2=_0x1a8bda(this[_0x255a56(0xbc)]),_0x19da28=_0x484ef2[_0x255a56(0xcc)],_0x48881b=_0x484ef2[_0x255a56(0xda)][_0x255a56(0xe8)](_0x19da28[_0x255a56(0xb0)][_0x255a56(0x88)](),{'convertAiChatSelectionMarker':!0x0}),_0x4a5b73=new _0xcf7abc(_0x484ef2[_0x255a56(0xa4)][_0x255a56(0xd3)][_0x255a56(0xb0)]);this[_0x255a56(0xc8)](_0x48881b,_0x4a5b73);let _0x519175=_0x484ef2[_0x255a56(0xda)][_0x255a56(0xa0)][_0x255a56(0xc6)](_0x48881b);const _0x29614a=this[_0x255a56(0x86)](),_0x3ba8e7=[];for(const _0x4f444a of _0x29614a){const _0x4263c8='<'+_0x4f444a[_0x255a56(0xc7)]+_0x255a56(0x8a)+_0x4f444a[_0x255a56(0xc7)]+_0x255a56(0xaa),_0x75dd9a=_0x519175[_0x255a56(0xe4)](_0x4263c8);_0x519175=_0x519175[_0x255a56(0x83)](0x0,_0x75dd9a)+_0x519175[_0x255a56(0x83)](_0x75dd9a+_0x4263c8[_0x255a56(0xb3)]);const _0x6f37e0='<'+_0x4f444a[_0x255a56(0xc7)]+_0x255a56(0xc3)+_0x4f444a[_0x255a56(0xc7)]+_0x255a56(0xc1),_0x443662=_0x519175[_0x255a56(0xe4)](_0x6f37e0);_0x519175=_0x519175[_0x255a56(0x83)](0x0,_0x443662)+_0x519175[_0x255a56(0x83)](_0x443662+_0x6f37e0[_0x255a56(0xb3)]),_0x3ba8e7[_0x255a56(0xb1)]({'markerName':_0x4f444a[_0x255a56(0xc7)],'start':_0x75dd9a,'end':_0x443662,'htmlFragment':_0x519175[_0x255a56(0x83)](_0x75dd9a,_0x443662)});}return{'content':_0x519175,'version':_0x484ef2[_0x255a56(0xcc)][_0x255a56(0xb0)][_0x255a56(0x95)],'sessionId':this[_0x255a56(0x8d)],'selections':_0x3ba8e7};}async[_0x44d2a1(0xad)](){const _0x214b44=_0x44d2a1;this[_0x214b44(0xbc)]instanceof _0x5448cb?this[_0x214b44(0xcf)](this[_0x214b44(0xbc)]):this[_0x214b44(0xdb)](this[_0x214b44(0xbc)][_0x214b44(0x99)],_0x214b44(0x94),(_0x1e84cd,_0x5d4254)=>{const _0x4a56ad=_0x214b44;_0x5d4254['on'](_0x4a56ad(0xa8),()=>{const _0x2603a2=_0x4a56ad;this[_0x2603a2(0xcf)](_0x5d4254);});});}[_0x44d2a1(0xcf)](_0x4380aa){const _0x2f2979=_0x44d2a1;_0x4380aa[_0x2f2979(0x87)][_0x2f2979(0xaf)](_0x2f2979(0x8f))[_0x2f2979(0xc2)]({'model':_0x2f2979(0xe7),'view':{'classes':[_0x2f2979(0xd2),_0x2f2979(0xb5)],'priority':0xc}}),_0x4380aa[_0x2f2979(0x87)][_0x2f2979(0xaf)](_0x2f2979(0x93))[_0x2f2979(0xb4)]({'model':_0x2f2979(0xe7),'view':(_0x280540,{writer:_0x537d5c,options:_0x2d3cc2})=>_0x2d3cc2[_0x2f2979(0xc9)]?_0x537d5c[_0x2f2979(0x9d)](_0x280540[_0x2f2979(0x85)]+':'+(_0x280540[_0x2f2979(0xc5)]?_0x2f2979(0x96):_0x2f2979(0x9f))):null});}[_0x44d2a1(0xea)](_0x34e851,_0x2c4129,_0x26dad8=!0x1,_0x551c70=!0x1){const _0x3300e1=_0x44d2a1;if(this[_0x3300e1(0xe5)]&&!_0x551c70)return!0x1;const _0xf1a735=_0x1a8bda(this[_0x3300e1(0xbc)])[_0x3300e1(0xcc)];return _0xf1a735[_0x3300e1(0x8e)](_0x33d5d0=>{const _0x5af6b1=_0x3300e1;this[_0x5af6b1(0xa3)]&&this[_0x5af6b1(0x9e)](this[_0x5af6b1(0xa3)]),this[_0x5af6b1(0xa3)]=_0x2c4129,this[_0x5af6b1(0xe5)]=_0x26dad8;let _0x23057d=0x0;for(let _0x36014a of _0x34e851){const _0x1b5f77=_0x5af6b1(0xbf)+_0x23057d;if(_0x36014a[_0x5af6b1(0x96)][_0x5af6b1(0xa6)]){const _0x153c85=_0x36014a[_0x5af6b1(0x96)][_0x5af6b1(0xb6)](({item:_0x5ba0df})=>!_0xf1a735[_0x5af6b1(0x82)][_0x5af6b1(0xe1)](_0x5ba0df),{'boundaries':_0x36014a});_0x36014a=_0x33d5d0[_0x5af6b1(0x84)](_0x153c85,_0x36014a[_0x5af6b1(0x9f)]);}_0x33d5d0[_0x5af6b1(0xa9)](_0x1b5f77,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x36014a}),_0x23057d++;}}),window[_0x3300e1(0x8c)]()?.[_0x3300e1(0x90)](),!0x0;}[_0x44d2a1(0x9e)](_0x23da6f){const _0x60dd3b=_0x44d2a1;if(this[_0x60dd3b(0xa3)]!=_0x23da6f)return!0x1;this[_0x60dd3b(0xa3)]=null,this[_0x60dd3b(0xe5)]=!0x1;const _0x255d79=_0x1a8bda(this[_0x60dd3b(0xbc)]),_0x3b5764=_0x255d79[_0x60dd3b(0xcc)][_0x60dd3b(0xc4)][_0x60dd3b(0xe3)](_0x60dd3b(0xe7));return _0x255d79[_0x60dd3b(0xcc)][_0x60dd3b(0x8e)](_0x8502e1=>{const _0xfd9639=_0x60dd3b;for(const _0x5d67f1 of _0x3b5764)_0x8502e1[_0xfd9639(0x91)](_0x5d67f1);}),!0x0;}[_0x44d2a1(0xc0)](_0x504a69){const _0x35778a=_0x44d2a1,_0x380727=_0x1a8bda(this[_0x35778a(0xbc)]),_0x36c509=_0x380727[_0x35778a(0xda)][_0x35778a(0xe8)](_0x504a69),_0x336fc9=new _0xcf7abc(_0x380727[_0x35778a(0xa4)][_0x35778a(0xd3)][_0x35778a(0xb0)]);return this[_0x35778a(0xc8)](_0x36c509,_0x336fc9),_0x36c509;}[_0x44d2a1(0xc8)](_0x2ab852,_0x490aa1){const _0x324411=_0x44d2a1;let _0x4472ab=!0x1;const _0x47868f=new Set();for(const _0x521767 of _0x2ab852[_0x324411(0xa7)]()){const _0x353b41=_0x521767['is'](_0x324411(0xb2))||_0x521767['is'](_0x324411(0xdc));if(!_0x521767['is'](_0x324411(0x8b)))continue;(this[_0x324411(0xc8)](_0x521767,_0x490aa1)||_0x353b41)&&(_0x490aa1[_0x324411(0xa2)](_0x324411(0xd9),this[_0x324411(0x9c)](_0x47868f),_0x521767),_0x4472ab=!0x0);}return _0x4472ab;}[_0x44d2a1(0x9c)](_0x14b69a){const _0x18a399=_0x44d2a1;let _0x279521;do{_0x279521='';for(let _0x573473=0x0;_0x573473<0x4;_0x573473++)_0x279521+=String[_0x18a399(0xbe)](0x61+Math[_0x18a399(0xde)](0x1a*Math[_0x18a399(0xe0)]()));}while(_0x14b69a[_0x18a399(0xb9)](_0x279521));return _0x14b69a[_0x18a399(0x94)](_0x279521),_0x279521;}[_0x44d2a1(0xab)](){const _0x53ba12=_0x44d2a1,{model:_0x159efc}=_0x1a8bda(this[_0x53ba12(0xbc)]),_0xb89c55=_0x159efc[_0x53ba12(0xb0)][_0x53ba12(0xe6)],_0x124370=_0x159efc[_0x53ba12(0xe9)](_0xb89c55),_0x532c37=[],_0x5b65b7=_0x159efc[_0x53ba12(0x9a)](_0x124370)[_0x53ba12(0x92)]();for(const {item:_0x2802bf}of _0x5b65b7)_0x2802bf['is'](_0x53ba12(0xb7))?_0x532c37[_0x53ba12(0xb1)](_0x2802bf[_0x53ba12(0xda)]):_0x2802bf['is'](_0x53ba12(0x8b))&&_0x532c37[_0x53ba12(0xb3)]>0x0&&'\x20'!==_0x532c37[_0x532c37[_0x53ba12(0xb3)]-0x1]&&_0x532c37[_0x53ba12(0xb1)]('\x20');return'\x22'+_0x532c37[_0x53ba12(0x81)]('')[_0x53ba12(0xac)]()+'\x22';}[_0x44d2a1(0x86)](){const _0x40bd57=_0x44d2a1,_0x37e207=_0x1a8bda(this[_0x40bd57(0xbc)])[_0x40bd57(0xcc)];return Array[_0x40bd57(0xd8)](_0x37e207[_0x40bd57(0xc4)][_0x40bd57(0xe3)](_0x40bd57(0xe7)))[_0x40bd57(0x98)]((_0x1fca65,_0x540a94)=>_0x1fca65[_0x40bd57(0xdd)]()[_0x40bd57(0xd4)](_0x540a94[_0x40bd57(0xdd)]())?-0x1:_0x1fca65[_0x40bd57(0xdd)]()[_0x40bd57(0xb8)](_0x540a94[_0x40bd57(0xdd)]())?0x1:0x0);}}
23
+ const _0x43028e=_0x4335;function _0x461b(){const _0x33e4ee=['ai-selection','floor','indexOf','trim','convertAiChatSelectionMarker','data','data-id','afterInit','editing','pluginName','ck-fake-ai-selection','get','sort','12124yFDQTt','version','createUIElement','selection','ai-selection:','element','ready','getSelectedContent','markerToElement','context','createRange','ck-ai-assistant-ui_theme','model','editingDowncast','getDocumentData','for','join','_nextDataId','2906320DtlwpE','name','fromCharCode','document','getStart','plugins','232HcMIkv','getRoot','markers','schema','_displayedFakeSelectionId','change','getSelection','1310ZtxGQT','_integrateEditor','isContent','234xwpKOf','modelToViewWithIds','getChildren','isBefore','5477898bReUCb',':end></','markerName','setAttribute','_getMarkersInDocumentOrder','getSelectionText','5484mZalUD','has','length','isOfficialPlugin','sessionId','push','getWalker','_sessionId','containerElement','546lNoBQR','end','_displayedFakeSelectionLocked','dataDowncast',':start></','AIEditing','markerToHighlight','removeMarker','removeAllRanges','7LZzdrQ','getLastMatchingPosition','isAfter','isPremiumPlugin','toData','view','isAtEnd','isOpening','emptyElement','82445nVKYDn',':start>','processor','add','addMarker','_setDataIdsOnChildren','hideFakeVisualSelection','getMarkersGroup','$textProxy','toView','substring','start','179984UdKjVS','editors','showFakeVisualSelection','random','conversion','listenTo','from',':end>','5886936WnTzOr','RealTimeCollaborationClient','createRangeIn'];_0x461b=function(){return _0x33e4ee;};return _0x461b();}(function(_0x37349a,_0x505e03){const _0x3a37ca=_0x4335,_0x2d765e=_0x37349a();while(!![]){try{const _0x27e9bc=-parseInt(_0x3a37ca(0xfb))/0x1*(-parseInt(_0x3a37ca(0xe7))/0x2)+-parseInt(_0x3a37ca(0x104))/0x3*(parseInt(_0x3a37ca(0x13a))/0x4)+-parseInt(_0x3a37ca(0xe1))/0x5+parseInt(_0x3a37ca(0xf5))/0x6*(parseInt(_0x3a37ca(0x10d))/0x7)+-parseInt(_0x3a37ca(0x122))/0x8*(-parseInt(_0x3a37ca(0xf1))/0x9)+parseInt(_0x3a37ca(0xee))/0xa*(-parseInt(_0x3a37ca(0x116))/0xb)+parseInt(_0x3a37ca(0x12a))/0xc;if(_0x27e9bc===_0x505e03)break;else _0x2d765e['push'](_0x2d765e['shift']());}catch(_0x2c8f23){_0x2d765e['push'](_0x2d765e['shift']());}}}(_0x461b,0x7c7ce));import{ViewDowncastWriter as _0x4f9baa}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x5db6e4,Editor as _0x50d1b7}from'ckeditor5/src/core.js';import{uid as _0x3ba683}from'ckeditor5/src/utils.js';function _0x4335(_0x5772ea,_0x1f96f2){const _0x461b80=_0x461b();return _0x4335=function(_0x433520,_0x2ebe1b){_0x433520=_0x433520-0xd4;let _0x450d18=_0x461b80[_0x433520];return _0x450d18;},_0x4335(_0x5772ea,_0x1f96f2);}import{getEditorFromContext as _0xef2c82}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x43028e(0x12d);export class AIEditing extends _0x5db6e4{[_0x43028e(0xeb)]=null;[_0x43028e(0x106)]=!0x1;[_0x43028e(0x102)];static get[_0x43028e(0x136)](){const _0x117584=_0x43028e;return _0x117584(0x109);}static get[_0x43028e(0xfe)](){return!0x0;}static get[_0x43028e(0x110)](){return!0x0;}get[_0x43028e(0xff)](){const _0x5edfa6=_0x43028e;if(!this[_0x5edfa6(0x102)]){const _0x40a870=_0xef2c82(this[_0x5edfa6(0xd8)]),_0x29c271=_0x40a870[_0x5edfa6(0xe6)][_0x5edfa6(0xfc)](_0x5edfa6(0x12b))&&_0x40a870[_0x5edfa6(0xe6)][_0x5edfa6(0x138)](_0x5edfa6(0x12b))[_0x5edfa6(0xff)];this[_0x5edfa6(0x102)]=_0x29c271||_0x3ba683();}return this[_0x5edfa6(0x102)];}[_0x43028e(0xdd)](){const _0x16fb33=_0x43028e,_0x3b56d9=_0xef2c82(this[_0x16fb33(0xd8)]),_0x74135c=_0x3b56d9[_0x16fb33(0xdb)],_0x30c831=_0x3b56d9[_0x16fb33(0x132)][_0x16fb33(0x11f)](_0x74135c[_0x16fb33(0xe4)][_0x16fb33(0xe8)](),{'convertAiChatSelectionMarker':!0x0}),_0x70ed3b=new _0x4f9baa(_0x3b56d9[_0x16fb33(0x135)][_0x16fb33(0x112)][_0x16fb33(0xe4)]);this[_0x16fb33(0x11b)](_0x30c831,_0x70ed3b);let _0x22e1d0=_0x3b56d9[_0x16fb33(0x132)][_0x16fb33(0x118)][_0x16fb33(0x111)](_0x30c831);const _0xfe8b73=this[_0x16fb33(0xf9)](),_0x32b2d9=[];for(const _0x382e37 of _0xfe8b73){const _0x552076='<'+_0x382e37[_0x16fb33(0xe2)]+_0x16fb33(0x108)+_0x382e37[_0x16fb33(0xe2)]+_0x16fb33(0x117),_0x12a267=_0x22e1d0[_0x16fb33(0x12f)](_0x552076);_0x22e1d0=_0x22e1d0[_0x16fb33(0x120)](0x0,_0x12a267)+_0x22e1d0[_0x16fb33(0x120)](_0x12a267+_0x552076[_0x16fb33(0xfd)]);const _0x296fe7='<'+_0x382e37[_0x16fb33(0xe2)]+_0x16fb33(0xf6)+_0x382e37[_0x16fb33(0xe2)]+_0x16fb33(0x129),_0x5f56f0=_0x22e1d0[_0x16fb33(0x12f)](_0x296fe7);_0x22e1d0=_0x22e1d0[_0x16fb33(0x120)](0x0,_0x5f56f0)+_0x22e1d0[_0x16fb33(0x120)](_0x5f56f0+_0x296fe7[_0x16fb33(0xfd)]),_0x32b2d9[_0x16fb33(0x100)]({'markerName':_0x382e37[_0x16fb33(0xe2)],'start':_0x12a267,'end':_0x5f56f0,'htmlFragment':_0x22e1d0[_0x16fb33(0x120)](_0x12a267,_0x5f56f0)});}return{'content':_0x22e1d0,'version':_0x3b56d9[_0x16fb33(0xdb)][_0x16fb33(0xe4)][_0x16fb33(0x13b)],'sessionId':this[_0x16fb33(0xff)],'selections':_0x32b2d9};}async[_0x43028e(0x134)](){const _0x4e2e7f=_0x43028e;this[_0x4e2e7f(0xd8)]instanceof _0x50d1b7?this[_0x4e2e7f(0xef)](this[_0x4e2e7f(0xd8)]):this[_0x4e2e7f(0x127)](this[_0x4e2e7f(0xd8)][_0x4e2e7f(0x123)],_0x4e2e7f(0x119),(_0x29985c,_0x112bed)=>{const _0x404e7f=_0x4e2e7f;_0x112bed['on'](_0x404e7f(0xd5),()=>{const _0x339137=_0x404e7f;this[_0x339137(0xef)](_0x112bed);});});}[_0x43028e(0xef)](_0x120113){const _0x1a70a2=_0x43028e;_0x120113[_0x1a70a2(0x126)][_0x1a70a2(0xde)](_0x1a70a2(0xdc))[_0x1a70a2(0x10a)]({'model':_0x1a70a2(0x12d),'view':{'classes':[_0x1a70a2(0x137),_0x1a70a2(0xda)],'priority':0xc}}),_0x120113[_0x1a70a2(0x126)][_0x1a70a2(0xde)](_0x1a70a2(0x107))[_0x1a70a2(0xd7)]({'model':_0x1a70a2(0x12d),'view':(_0x49d23b,{writer:_0x3cbe2d,options:_0x30b12a})=>_0x30b12a[_0x1a70a2(0x131)]?_0x3cbe2d[_0x1a70a2(0x13c)](_0x49d23b[_0x1a70a2(0xf7)]+':'+(_0x49d23b[_0x1a70a2(0x114)]?_0x1a70a2(0x121):_0x1a70a2(0x105))):null});}[_0x43028e(0x124)](_0x2e7751,_0x4fdc55,_0x1373c1=!0x1,_0x44f6f7=!0x1){const _0x5513e8=_0x43028e;if(this[_0x5513e8(0x106)]&&!_0x44f6f7)return!0x1;const _0x23a3f8=_0xef2c82(this[_0x5513e8(0xd8)])[_0x5513e8(0xdb)];return _0x23a3f8[_0x5513e8(0xec)](_0x237ba9=>{const _0x590cf4=_0x5513e8;this[_0x590cf4(0xeb)]&&this[_0x590cf4(0x11c)](this[_0x590cf4(0xeb)]),this[_0x590cf4(0xeb)]=_0x4fdc55,this[_0x590cf4(0x106)]=_0x1373c1;let _0x3e3534=0x0;for(let _0x2ce9f8 of _0x2e7751){const _0x2d881a=_0x590cf4(0x13e)+_0x3e3534;if(_0x2ce9f8[_0x590cf4(0x121)][_0x590cf4(0x113)]){const _0x2004ea=_0x2ce9f8[_0x590cf4(0x121)][_0x590cf4(0x10e)](({item:_0x585a18})=>!_0x23a3f8[_0x590cf4(0xea)][_0x590cf4(0xf0)](_0x585a18),{'boundaries':_0x2ce9f8});_0x2ce9f8=_0x237ba9[_0x590cf4(0xd9)](_0x2004ea,_0x2ce9f8[_0x590cf4(0x105)]);}_0x237ba9[_0x590cf4(0x11a)](_0x2d881a,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2ce9f8}),_0x3e3534++;}}),window[_0x5513e8(0xed)]()?.[_0x5513e8(0x10c)](),!0x0;}[_0x43028e(0x11c)](_0x3e3a5f){const _0x540d55=_0x43028e;if(this[_0x540d55(0xeb)]!=_0x3e3a5f)return!0x1;this[_0x540d55(0xeb)]=null,this[_0x540d55(0x106)]=!0x1;const _0x13a5fe=_0xef2c82(this[_0x540d55(0xd8)]),_0x204ea5=_0x13a5fe[_0x540d55(0xdb)][_0x540d55(0xe9)][_0x540d55(0x11d)](_0x540d55(0x12d));return _0x13a5fe[_0x540d55(0xdb)][_0x540d55(0xec)](_0x1f142b=>{const _0x492b90=_0x540d55;for(const _0x36fc22 of _0x204ea5)_0x1f142b[_0x492b90(0x10b)](_0x36fc22);}),!0x0;}[_0x43028e(0xf2)](_0x156049){const _0x15850f=_0x43028e,_0x2c64ce=_0xef2c82(this[_0x15850f(0xd8)]),_0x3ad41d=_0x2c64ce[_0x15850f(0x132)][_0x15850f(0x11f)](_0x156049),_0x3c3857=new _0x4f9baa(_0x2c64ce[_0x15850f(0x135)][_0x15850f(0x112)][_0x15850f(0xe4)]);return this[_0x15850f(0x11b)](_0x3ad41d,_0x3c3857),_0x3ad41d;}[_0x43028e(0x11b)](_0x11d0ad,_0x18a32e){const _0x403c75=_0x43028e;let _0x144ffb=!0x1;const _0x17ba64=new Set();for(const _0x32f690 of _0x11d0ad[_0x403c75(0xf3)]()){const _0x36797b=_0x32f690['is'](_0x403c75(0x115))||_0x32f690['is'](_0x403c75(0x103));if(!_0x32f690['is'](_0x403c75(0xd4)))continue;(this[_0x403c75(0x11b)](_0x32f690,_0x18a32e)||_0x36797b)&&(_0x18a32e[_0x403c75(0xf8)](_0x403c75(0x133),this[_0x403c75(0xe0)](_0x17ba64),_0x32f690),_0x144ffb=!0x0);}return _0x144ffb;}[_0x43028e(0xe0)](_0xacde34){const _0x289810=_0x43028e;let _0x4553ad;do{_0x4553ad='';for(let _0x41cae0=0x0;_0x41cae0<0x4;_0x41cae0++)_0x4553ad+=String[_0x289810(0xe3)](0x61+Math[_0x289810(0x12e)](0x1a*Math[_0x289810(0x125)]()));}while(_0xacde34[_0x289810(0xfc)](_0x4553ad));return _0xacde34[_0x289810(0x119)](_0x4553ad),_0x4553ad;}[_0x43028e(0xfa)](){const _0x1ac213=_0x43028e,{model:_0x1b608b}=_0xef2c82(this[_0x1ac213(0xd8)]),_0x1b4228=_0x1b608b[_0x1ac213(0xe4)][_0x1ac213(0x13d)],_0x4a2bec=_0x1b608b[_0x1ac213(0xd6)](_0x1b4228),_0x22e2f6=[],_0x852ba4=_0x1b608b[_0x1ac213(0x12c)](_0x4a2bec)[_0x1ac213(0x101)]();for(const {item:_0x480f06}of _0x852ba4)_0x480f06['is'](_0x1ac213(0x11e))?_0x22e2f6[_0x1ac213(0x100)](_0x480f06[_0x1ac213(0x132)]):_0x480f06['is'](_0x1ac213(0xd4))&&_0x22e2f6[_0x1ac213(0xfd)]>0x0&&'\x20'!==_0x22e2f6[_0x22e2f6[_0x1ac213(0xfd)]-0x1]&&_0x22e2f6[_0x1ac213(0x100)]('\x20');return'\x22'+_0x22e2f6[_0x1ac213(0xdf)]('')[_0x1ac213(0x130)]()+'\x22';}[_0x43028e(0xf9)](){const _0x186cea=_0x43028e,_0x270d4f=_0xef2c82(this[_0x186cea(0xd8)])[_0x186cea(0xdb)];return Array[_0x186cea(0x128)](_0x270d4f[_0x186cea(0xe9)][_0x186cea(0x11d)](_0x186cea(0x12d)))[_0x186cea(0x139)]((_0x334bf9,_0x143e6f)=>_0x334bf9[_0x186cea(0xe5)]()[_0x186cea(0xf4)](_0x143e6f[_0x186cea(0xe5)]())?-0x1:_0x334bf9[_0x186cea(0xe5)]()[_0x186cea(0x10f)](_0x143e6f[_0x186cea(0xe5)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bd7a4=_0x28bc;function _0x25bf(){const _0x5817ae=['setWebSearch','reset','fire','210690szFFah','4105176CtTVQJ','setReasoning','isWebSearchEnabled','42VHTxSR','getCapabilitiesConfig','56027KWnBLn','init','toggleReasoning','capabilitiesUpdated','toggleWebSearch','10HCZGJp','1188SYHsRT','6260SkpGrz','36744jVoeYC','864kXLccG','4355634lMXego','getCapabilitiesRequestData','isReasoningEnabled','4848529FJbmSG','webSearch','_isWebSearchEnabled','210dpdocN','reasoning','_isReasoningEnabled'];_0x25bf=function(){return _0x5817ae;};return _0x25bf();}(function(_0x5f2e3a,_0x597d8f){const _0x4b13e4=_0x28bc,_0x4c7989=_0x5f2e3a();while(!![]){try{const _0x523fa2=-parseInt(_0x4b13e4(0xee))/0x1*(-parseInt(_0x4b13e4(0xec))/0x2)+-parseInt(_0x4b13e4(0xdb))/0x3*(-parseInt(_0x4b13e4(0xd9))/0x4)+parseInt(_0x4b13e4(0xf3))/0x5*(-parseInt(_0x4b13e4(0xdc))/0x6)+-parseInt(_0x4b13e4(0xdf))/0x7+parseInt(_0x4b13e4(0xe9))/0x8+-parseInt(_0x4b13e4(0xe8))/0x9*(-parseInt(_0x4b13e4(0xe2))/0xa)+parseInt(_0x4b13e4(0xd8))/0xb*(parseInt(_0x4b13e4(0xda))/0xc);if(_0x523fa2===_0x597d8f)break;else _0x4c7989['push'](_0x4c7989['shift']());}catch(_0x494724){_0x4c7989['push'](_0x4c7989['shift']());}}}(_0x25bf,0xc7c27));function _0x28bc(_0x13e31f,_0x409bd5){const _0x25bf58=_0x25bf();return _0x28bc=function(_0x28bc9e,_0x160101){_0x28bc9e=_0x28bc9e-0xd8;let _0x859f79=_0x25bf58[_0x28bc9e];return _0x859f79;},_0x28bc(_0x13e31f,_0x409bd5);}import{EmitterMixin as _0x1c972f}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x5bd7a4(0xf1)];export class AICapabilities extends _0x1c972f(){[_0x5bd7a4(0xe1)];[_0x5bd7a4(0xe4)];constructor(){const _0xa3080c=_0x5bd7a4;super(),this[_0xa3080c(0xe1)]=!0x1,this[_0xa3080c(0xe4)]=!0x1;}[_0x5bd7a4(0xef)](){const _0x2c4970=_0x5bd7a4;this[_0x2c4970(0xe6)]();}[_0x5bd7a4(0xe6)](){const _0x3b6822=_0x5bd7a4;this[_0x3b6822(0xe5)](!0x1),this[_0x3b6822(0xea)](!0x1);}[_0x5bd7a4(0xed)](){const _0x405f3f=_0x5bd7a4;return{'isWebSearchEnabled':this[_0x405f3f(0xe1)],'isReasoningEnabled':this[_0x405f3f(0xe4)]};}static[_0x5bd7a4(0xdd)](_0x3f0a4e){const _0x4b5940=_0x5bd7a4,_0x1c0da2={};return _0x3f0a4e&&_0x3f0a4e[_0x4b5940(0xeb)]&&(_0x1c0da2[_0x4b5940(0xe0)]={}),_0x3f0a4e&&_0x3f0a4e[_0x4b5940(0xde)]&&(_0x1c0da2[_0x4b5940(0xe3)]={}),_0x1c0da2;}[_0x5bd7a4(0xf2)](){const _0xf50432=_0x5bd7a4;this[_0xf50432(0xe5)](!this[_0xf50432(0xe1)]);}[_0x5bd7a4(0xf0)](){const _0x3540c5=_0x5bd7a4;this[_0x3540c5(0xea)](!this[_0x3540c5(0xe4)]);}[_0x5bd7a4(0xe5)](_0x33e7b1){const _0x593cda=_0x5bd7a4;_0x33e7b1!==this[_0x593cda(0xe1)]&&(this[_0x593cda(0xe1)]=_0x33e7b1,this[_0x593cda(0xe7)](_0x593cda(0xf1),this[_0x593cda(0xed)]()));}[_0x5bd7a4(0xea)](_0x5bffbb){const _0x231763=_0x5bd7a4;_0x5bffbb!==this[_0x231763(0xe4)]&&(this[_0x231763(0xe4)]=_0x5bffbb,this[_0x231763(0xe7)](_0x231763(0xf1),this[_0x231763(0xed)]()));}}
23
+ function _0x2b5a(_0x52bc95,_0x37ef26){const _0x365021=_0x3650();return _0x2b5a=function(_0x2b5a38,_0xdfacc6){_0x2b5a38=_0x2b5a38-0x16e;let _0x437bc3=_0x365021[_0x2b5a38];return _0x437bc3;},_0x2b5a(_0x52bc95,_0x37ef26);}const _0x44d3c3=_0x2b5a;(function(_0x58b403,_0x1b95c1){const _0x3784b5=_0x2b5a,_0x49b5bf=_0x58b403();while(!![]){try{const _0x2c15c9=-parseInt(_0x3784b5(0x179))/0x1+parseInt(_0x3784b5(0x181))/0x2+parseInt(_0x3784b5(0x173))/0x3*(parseInt(_0x3784b5(0x16f))/0x4)+parseInt(_0x3784b5(0x17c))/0x5*(parseInt(_0x3784b5(0x186))/0x6)+-parseInt(_0x3784b5(0x17f))/0x7*(-parseInt(_0x3784b5(0x187))/0x8)+-parseInt(_0x3784b5(0x188))/0x9*(-parseInt(_0x3784b5(0x171))/0xa)+-parseInt(_0x3784b5(0x17b))/0xb;if(_0x2c15c9===_0x1b95c1)break;else _0x49b5bf['push'](_0x49b5bf['shift']());}catch(_0x17caf3){_0x49b5bf['push'](_0x49b5bf['shift']());}}}(_0x3650,0x2feb0));import{EmitterMixin as _0x3aa26f}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x44d3c3(0x172)];function _0x3650(){const _0x36fac3=['_isReasoningEnabled','setReasoning','init','getCapabilitiesConfig','60WkTeCj','376fexYNv','423hSeFqo','reset','8kjXjHR','setWebSearch','23230UOXstw','capabilitiesUpdated','580299kePuDf','webSearch','isWebSearchEnabled','_isWebSearchEnabled','reasoning','toggleReasoning','382073jZvISj','getCapabilitiesRequestData','6563073OVpDjG','183965uUzmBL','isReasoningEnabled','fire','10493XNUqYt','toggleWebSearch','481116Owrito'];_0x3650=function(){return _0x36fac3;};return _0x3650();}export class AICapabilities extends _0x3aa26f(){[_0x44d3c3(0x176)];[_0x44d3c3(0x182)];constructor(){const _0x49b94c=_0x44d3c3;super(),this[_0x49b94c(0x176)]=!0x1,this[_0x49b94c(0x182)]=!0x1;}[_0x44d3c3(0x184)](){const _0xfa773b=_0x44d3c3;this[_0xfa773b(0x16e)]();}[_0x44d3c3(0x16e)](){const _0x25a44c=_0x44d3c3;this[_0x25a44c(0x170)](!0x1),this[_0x25a44c(0x183)](!0x1);}[_0x44d3c3(0x185)](){const _0x3960f1=_0x44d3c3;return{'isWebSearchEnabled':this[_0x3960f1(0x176)],'isReasoningEnabled':this[_0x3960f1(0x182)]};}static[_0x44d3c3(0x17a)](_0x217f74){const _0x36712d=_0x44d3c3,_0x5132ad={};return _0x217f74&&_0x217f74[_0x36712d(0x175)]&&(_0x5132ad[_0x36712d(0x174)]={}),_0x217f74&&_0x217f74[_0x36712d(0x17d)]&&(_0x5132ad[_0x36712d(0x177)]={}),_0x5132ad;}[_0x44d3c3(0x180)](){const _0x595e46=_0x44d3c3;this[_0x595e46(0x170)](!this[_0x595e46(0x176)]);}[_0x44d3c3(0x178)](){const _0x27ddb7=_0x44d3c3;this[_0x27ddb7(0x183)](!this[_0x27ddb7(0x182)]);}[_0x44d3c3(0x170)](_0x310064){const _0x230100=_0x44d3c3;_0x310064!==this[_0x230100(0x176)]&&(this[_0x230100(0x176)]=_0x310064,this[_0x230100(0x17e)](_0x230100(0x172),this[_0x230100(0x185)]()));}[_0x44d3c3(0x183)](_0x5042b1){const _0x2924cf=_0x44d3c3;_0x5042b1!==this[_0x2924cf(0x182)]&&(this[_0x2924cf(0x182)]=_0x5042b1,this[_0x2924cf(0x17e)](_0x2924cf(0x172),this[_0x2924cf(0x185)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0xd48137,_0x25352e){var _0xdb5603=_0x4ee6,_0x2e95c6=_0xd48137();while(!![]){try{var _0x1feccd=-parseInt(_0xdb5603(0x11e))/0x1+parseInt(_0xdb5603(0x11f))/0x2*(parseInt(_0xdb5603(0x125))/0x3)+-parseInt(_0xdb5603(0x120))/0x4+-parseInt(_0xdb5603(0x131))/0x5*(parseInt(_0xdb5603(0x123))/0x6)+parseInt(_0xdb5603(0x129))/0x7*(-parseInt(_0xdb5603(0x12e))/0x8)+parseInt(_0xdb5603(0x12a))/0x9+parseInt(_0xdb5603(0x128))/0xa*(parseInt(_0xdb5603(0x126))/0xb);if(_0x1feccd===_0x25352e)break;else _0x2e95c6['push'](_0x2e95c6['shift']());}catch(_0x553824){_0x2e95c6['push'](_0x2e95c6['shift']());}}}(_0x468c,0x52370));export var AIContextItemType;function _0x468c(){var _0x3ed339=['10avkXUa','7BbnjPg','2859561DEVZca','FILE','file','SELECTION','4401808PjBgLh','DOCUMENT','TEXT','715ijeYEm','MARKDOWN','URL','document','HTML','html','592953OxJqjy','156756rqqGdf','1924440exaokv','markdown','selection','14298fynsjw','web-resource','18qXeKcK','16651943jdgKhH','text'];_0x468c=function(){return _0x3ed339;};return _0x468c();}!function(_0x89d52d){var _0x47dbe6=_0x4ee6;_0x89d52d[_0x47dbe6(0x12b)]=_0x47dbe6(0x12c),_0x89d52d[_0x47dbe6(0x12f)]=_0x47dbe6(0x11b),_0x89d52d[_0x47dbe6(0x11a)]=_0x47dbe6(0x124),_0x89d52d[_0x47dbe6(0x130)]=_0x47dbe6(0x127),_0x89d52d[_0x47dbe6(0x12d)]=_0x47dbe6(0x122);}(AIContextItemType||(AIContextItemType={}));function _0x4ee6(_0x944180,_0x1f94d2){var _0x468ca0=_0x468c();return _0x4ee6=function(_0x4ee630,_0x3db426){_0x4ee630=_0x4ee630-0x119;var _0x41628f=_0x468ca0[_0x4ee630];return _0x41628f;},_0x4ee6(_0x944180,_0x1f94d2);}export var AIContextTextResourceType;!function(_0xd06b15){var _0x3d1369=_0x4ee6;_0xd06b15[_0x3d1369(0x130)]=_0x3d1369(0x127),_0xd06b15[_0x3d1369(0x119)]=_0x3d1369(0x121),_0xd06b15[_0x3d1369(0x11c)]=_0x3d1369(0x11d);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x421c80,_0x50f5cc){var _0x356d19=_0x46b0,_0x5cc56a=_0x421c80();while(!![]){try{var _0x1f2ba2=parseInt(_0x356d19(0xd5))/0x1*(parseInt(_0x356d19(0xdc))/0x2)+-parseInt(_0x356d19(0xe4))/0x3+parseInt(_0x356d19(0xce))/0x4+-parseInt(_0x356d19(0xd7))/0x5+parseInt(_0x356d19(0xe0))/0x6*(-parseInt(_0x356d19(0xd9))/0x7)+parseInt(_0x356d19(0xd4))/0x8*(parseInt(_0x356d19(0xd1))/0x9)+-parseInt(_0x356d19(0xdf))/0xa*(-parseInt(_0x356d19(0xd8))/0xb);if(_0x1f2ba2===_0x50f5cc)break;else _0x5cc56a['push'](_0x5cc56a['shift']());}catch(_0x3a548a){_0x5cc56a['push'](_0x5cc56a['shift']());}}}(_0x405d,0x6079f));export var AIContextItemType;function _0x46b0(_0x513597,_0x18c83a){var _0x405deb=_0x405d();return _0x46b0=function(_0x46b0dc,_0x5e27d5){_0x46b0dc=_0x46b0dc-0xce;var _0x4f3bb6=_0x405deb[_0x46b0dc];return _0x4f3bb6;},_0x46b0(_0x513597,_0x18c83a);}!function(_0x376326){var _0x2e9f4f=_0x46b0;_0x376326[_0x2e9f4f(0xe1)]=_0x2e9f4f(0xde),_0x376326[_0x2e9f4f(0xda)]=_0x2e9f4f(0xe3),_0x376326[_0x2e9f4f(0xdb)]=_0x2e9f4f(0xd2),_0x376326[_0x2e9f4f(0xe5)]=_0x2e9f4f(0xd0),_0x376326[_0x2e9f4f(0xe2)]=_0x2e9f4f(0xdd);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x203931){var _0x41acc2=_0x46b0;_0x203931[_0x41acc2(0xe5)]=_0x41acc2(0xd0),_0x203931[_0x41acc2(0xd6)]=_0x41acc2(0xe6),_0x203931[_0x41acc2(0xcf)]=_0x41acc2(0xd3);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x405d(){var _0x5ebf18=['selection','file','320hwtiqr','5832sUwMyw','FILE','SELECTION','document','593286wSuswE','TEXT','markdown','714412RmoDvx','HTML','text','217467rmkceC','web-resource','html','32BqYeKW','34fvFmgf','MARKDOWN','124780TKPUhh','310145DnukSZ','4928ShxxdX','DOCUMENT','URL','7334BbbkYa'];_0x405d=function(){return _0x5ebf18;};return _0x405d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42020f=_0x2a04;(function(_0x2bd876,_0x36b507){const _0x13eda9=_0x2a04,_0x1c1b9e=_0x2bd876();while(!![]){try{const _0x18ca5=-parseInt(_0x13eda9(0x17a))/0x1+-parseInt(_0x13eda9(0x1a8))/0x2*(-parseInt(_0x13eda9(0x18c))/0x3)+-parseInt(_0x13eda9(0x192))/0x4+parseInt(_0x13eda9(0x198))/0x5+-parseInt(_0x13eda9(0x1a6))/0x6+parseInt(_0x13eda9(0x170))/0x7+parseInt(_0x13eda9(0x19d))/0x8*(-parseInt(_0x13eda9(0x195))/0x9);if(_0x18ca5===_0x36b507)break;else _0x1c1b9e['push'](_0x1c1b9e['shift']());}catch(_0x5b0a76){_0x1c1b9e['push'](_0x1c1b9e['shift']());}}}(_0x1f85,0xe89d7));function _0x2a04(_0x351110,_0x36a4d3){const _0x1f853e=_0x1f85();return _0x2a04=function(_0x2a04a7,_0x597373){_0x2a04a7=_0x2a04a7-0x168;let _0x3d0bac=_0x1f853e[_0x2a04a7];return _0x3d0bac;},_0x2a04(_0x351110,_0x36a4d3);}import{CKEditorError as _0x19d2e8,EmitterMixin as _0x47512b,uid as _0x5eb06d}from'ckeditor5/src/utils.js';import{AIReply as _0x3b68b4,isIgnoredReplyType as _0x49f683,isValidReplyType as _0x27ac4b,isReplyTitleType as _0x14cd5e,isSourceType as _0x1daafe}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x42020f(0x183),_0x42020f(0x176),_0x42020f(0x1a0),_0x42020f(0x1a9),_0x42020f(0x1a5),_0x42020f(0x186),_0x42020f(0x182),_0x42020f(0x179),_0x42020f(0x196),_0x42020f(0x168),_0x42020f(0x19b),_0x42020f(0x191),_0x42020f(0x16b),_0x42020f(0x18e)];function _0x1f85(){const _0x77d41f=['textDelta','interactionDestroyed','7444656OMDGEP','replies','4NRXxGq','interactionFinished','find','forEach','data','webSearchStarted','createReply','fire','reasoningFinished','start','event','sources','sendRequest','12376392kGtgmS','_isReasoning','callId','content','source','isStopped','interactionStarted','currentRequest','abortController','replyChangeGroupStateUpdated','1638514cLGFae','action-metadata','reasoning','conversationTitle','isDestroyed','_isWebSearching','getStream','splice','replyContentUpdated','interactionCreated','web-search','stopListening','replyCreated','actionCallId','stop','editor','length','push','2549073REECgc','currentReply','error','getReply','abort','reasoningStarted','1962084tgLXPB','ai-chat-interaction-error','getDocumentContext','18YMIyjh','setConversationTitle','modification-delta','5325670ugaYro','done','messageId','webSearchFinished','_finalizeInteraction','839880Bftsbd','message-metadata','delegate','interactionStopped','connector','destroy','appendContent'];_0x1f85=function(){return _0x77d41f;};return _0x1f85();}export class AIInteraction extends _0x47512b(){['id'];[_0x42020f(0x1a7)]=[];[_0x42020f(0x18d)];[_0x42020f(0x19a)];[_0x42020f(0x187)];[_0x42020f(0x177)];[_0x42020f(0x1a1)];[_0x42020f(0x175)]=!0x1;[_0x42020f(0x17e)]=!0x1;[_0x42020f(0x189)];[_0x42020f(0x171)]=!0x1;[_0x42020f(0x17f)]=!0x1;constructor({connector:_0x5198ee,editor:_0xf3229f}){const _0x9ac126=_0x42020f;super(),this['id']=_0x5eb06d(),this[_0x9ac126(0x1a1)]=_0x5198ee,this[_0x9ac126(0x175)]=!0x0,this[_0x9ac126(0x189)]=_0xf3229f;}async[_0x42020f(0x16c)](){const _0x45a8fd=_0x42020f;let _0x3e4e94;const _0x375b52=[];this[_0x45a8fd(0x175)]=!0x1;try{this[_0x45a8fd(0x177)]=await this[_0x45a8fd(0x16f)](),this[_0x45a8fd(0x16a)](_0x45a8fd(0x176),this);const _0x2c3a21=await this[_0x45a8fd(0x177)][_0x45a8fd(0x180)]();for await(const _0x37b63d of _0x2c3a21){if(this[_0x45a8fd(0x175)])return;if(_0x45a8fd(0x18e)===_0x37b63d[_0x45a8fd(0x16d)])return void this[_0x45a8fd(0x16a)](_0x45a8fd(0x18e),{'error':new _0x19d2e8(_0x45a8fd(0x193),this)});if(_0x45a8fd(0x19e)!==_0x37b63d[_0x45a8fd(0x16d)]){if(_0x45a8fd(0x17b)!==_0x37b63d[_0x45a8fd(0x16d)]){if(_0x14cd5e(_0x37b63d[_0x45a8fd(0x16d)])&&this[_0x45a8fd(0x196)](_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x17d)],!0x0),_0x1daafe(_0x37b63d[_0x45a8fd(0x16d)]))_0x375b52[_0x45a8fd(0x18b)](_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x174)]);else{if(_0x27ac4b(_0x37b63d[_0x45a8fd(0x16d)])){if(_0x37b63d[_0x45a8fd(0x16d)]!==_0x3e4e94){if(_0x3e4e94=_0x37b63d[_0x45a8fd(0x16d)],_0x45a8fd(0x184)===_0x37b63d[_0x45a8fd(0x16d)]){this[_0x45a8fd(0x17f)]||(this[_0x45a8fd(0x17f)]=!0x0,this[_0x45a8fd(0x16a)](_0x45a8fd(0x168),this));continue;}if(_0x45a8fd(0x17c)===_0x37b63d[_0x45a8fd(0x16d)]){this[_0x45a8fd(0x171)]||(this[_0x45a8fd(0x171)]=!0x0,this[_0x45a8fd(0x16a)](_0x45a8fd(0x191),this));continue;}this[_0x45a8fd(0x171)]&&(this[_0x45a8fd(0x171)]=!0x1,this[_0x45a8fd(0x16a)](_0x45a8fd(0x16b),this)),this[_0x45a8fd(0x17f)]&&(this[_0x45a8fd(0x17f)]=!0x1,this[_0x45a8fd(0x16a)](_0x45a8fd(0x19b),this)),this[_0x45a8fd(0x18d)]&&this[_0x45a8fd(0x18d)][_0x45a8fd(0x199)](),this[_0x45a8fd(0x18d)]=this[_0x45a8fd(0x169)]({'type':_0x37b63d[_0x45a8fd(0x16d)],'interactionId':this['id'],'id':_0x37b63d[_0x45a8fd(0x1ac)]?.['id']}),_0x375b52[_0x45a8fd(0x18a)]>0x0&&_0x45a8fd(0x197)===_0x37b63d[_0x45a8fd(0x16d)]&&(this[_0x45a8fd(0x18d)][_0x45a8fd(0x16e)]=_0x375b52[_0x45a8fd(0x181)](0x0));}_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x1a4)]&&this[_0x45a8fd(0x18d)][_0x45a8fd(0x1a3)](_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x1a4)]);}else _0x49f683(_0x37b63d[_0x45a8fd(0x16d)]);}}else this[_0x45a8fd(0x187)]=_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x172)];}else this[_0x45a8fd(0x19a)]=_0x37b63d[_0x45a8fd(0x1ac)][_0x45a8fd(0x19a)];}}finally{this[_0x45a8fd(0x175)]||(_0x375b52[_0x45a8fd(0x18a)]>0x0&&(this[_0x45a8fd(0x18d)][_0x45a8fd(0x16e)]=_0x375b52[_0x45a8fd(0x181)](0x0)),this[_0x45a8fd(0x19c)](),this[_0x45a8fd(0x16a)](_0x45a8fd(0x1a9),this));}}[_0x42020f(0x188)](){const _0x43af88=_0x42020f;this[_0x43af88(0x175)]||(this[_0x43af88(0x19c)](),this[_0x43af88(0x16a)](_0x43af88(0x1a0),this));}[_0x42020f(0x18f)](_0x2e8801){const _0x159870=_0x42020f;return this[_0x159870(0x1a7)][_0x159870(0x1aa)](_0x1474ed=>_0x1474ed['id']===_0x2e8801);}[_0x42020f(0x1a2)](){const _0x593571=_0x42020f;this[_0x593571(0x17e)]||(this[_0x593571(0x188)](),this[_0x593571(0x1a7)][_0x593571(0x1ab)](_0x2d5de8=>_0x2d5de8[_0x593571(0x1a2)]()),this[_0x593571(0x1a7)]=[],this[_0x593571(0x17e)]=!0x0,this[_0x593571(0x16a)](_0x593571(0x1a5),this),this[_0x593571(0x185)]());}[_0x42020f(0x169)](_0x2de031){const _0x168347=_0x42020f,_0xc37644=new _0x3b68b4({'editor':this[_0x168347(0x189)],'documentContextContent':this[_0x168347(0x194)]()?.[_0x168347(0x173)],..._0x2de031});return this[_0x168347(0x1a7)][_0x168347(0x18b)](_0xc37644),_0xc37644[_0x168347(0x19f)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x168347(0x16a)](_0x168347(0x186),_0xc37644),_0xc37644;}[_0x42020f(0x196)](_0x4dddcb,_0x203da1=!0x1){const _0x273936=_0x42020f;this[_0x273936(0x16a)](_0x273936(0x196),_0x4dddcb,_0x203da1);}[_0x42020f(0x19c)](){const _0x48606e=_0x42020f;this[_0x48606e(0x175)]=!0x0,this[_0x48606e(0x177)]&&this[_0x48606e(0x177)][_0x48606e(0x178)][_0x48606e(0x190)](),this[_0x48606e(0x18d)]&&this[_0x48606e(0x18d)][_0x48606e(0x199)](),this[_0x48606e(0x177)]=this[_0x48606e(0x18d)]=void 0x0;}}
23
+ const _0x41a547=_0x3391;(function(_0x2dd1de,_0x4729c8){const _0x5c32a3=_0x3391,_0x402393=_0x2dd1de();while(!![]){try{const _0x510b43=parseInt(_0x5c32a3(0x1bb))/0x1*(-parseInt(_0x5c32a3(0x1fa))/0x2)+-parseInt(_0x5c32a3(0x1ee))/0x3+-parseInt(_0x5c32a3(0x1f4))/0x4+parseInt(_0x5c32a3(0x1f5))/0x5*(-parseInt(_0x5c32a3(0x1f8))/0x6)+parseInt(_0x5c32a3(0x1cd))/0x7+parseInt(_0x5c32a3(0x1bf))/0x8*(-parseInt(_0x5c32a3(0x1b9))/0x9)+parseInt(_0x5c32a3(0x1f1))/0xa;if(_0x510b43===_0x4729c8)break;else _0x402393['push'](_0x402393['shift']());}catch(_0x1e6e90){_0x402393['push'](_0x402393['shift']());}}}(_0x5f3a,0x957b5));import{CKEditorError as _0x48cb8b,EmitterMixin as _0x39be48,uid as _0x2336a5}from'ckeditor5/src/utils.js';import{AIReply as _0x26fc27,isIgnoredReplyType as _0x17dab7,isValidReplyType as _0x11a14b,isReplyTitleType as _0xe2a150,isSourceType as _0x17f407}from'./aireply.js';function _0x3391(_0x389a57,_0x525bb0){const _0x5f3abf=_0x5f3a();return _0x3391=function(_0x339163,_0x49231d){_0x339163=_0x339163-0x1b9;let _0x342c24=_0x5f3abf[_0x339163];return _0x342c24;},_0x3391(_0x389a57,_0x525bb0);}function _0x5f3a(){const _0xc2b79b=['messageId','9jvNCsC','currentReply','7FspDoy','event','reasoning','currentRequest','1884472AKfvuR','isStopped','length','sources','find','replyCreated','interactionStarted','actionCallId','appendContent','abort','_isReasoning','done','replyChangeGroupStateUpdated','isDestroyed','765450eUogii','modification-delta','message-metadata','splice','createReply','error','_isWebSearching','stop','callId','reasoningStarted','connector','web-search','stopListening','interactionDestroyed','conversationTitle','forEach','getDocumentContext','reasoningFinished','editor','destroy','textDelta','abortController','setConversationTitle','delegate','_finalizeInteraction','push','interactionStopped','data','replies','interactionFinished','start','replyContentUpdated','interactionCreated','574365iyIAIF','action-metadata','content','26081190wFzdCh','getStream','source','3116580mHVPpf','45lwqrzP','getReply','ai-chat-interaction-error','315300ZzQEol','webSearchFinished','121738NqquOb','webSearchStarted','sendRequest','fire'];_0x5f3a=function(){return _0xc2b79b;};return _0x5f3a();}export const AI_MODEL_EVENT_NAMES=[_0x41a547(0x1ed),_0x41a547(0x1c5),_0x41a547(0x1e7),_0x41a547(0x1ea),_0x41a547(0x1da),_0x41a547(0x1c4),_0x41a547(0x1ec),_0x41a547(0x1cb),_0x41a547(0x1e3),_0x41a547(0x1fb),_0x41a547(0x1f9),_0x41a547(0x1d6),_0x41a547(0x1de),_0x41a547(0x1d2)];export class AIInteraction extends _0x39be48(){['id'];[_0x41a547(0x1e9)]=[];[_0x41a547(0x1ba)];[_0x41a547(0x1fe)];[_0x41a547(0x1c6)];[_0x41a547(0x1be)];[_0x41a547(0x1d7)];[_0x41a547(0x1c0)]=!0x1;[_0x41a547(0x1cc)]=!0x1;[_0x41a547(0x1df)];[_0x41a547(0x1c9)]=!0x1;[_0x41a547(0x1d3)]=!0x1;constructor({connector:_0xe559a5,editor:_0x4f4caa}){const _0x5afac5=_0x41a547;super(),this['id']=_0x2336a5(),this[_0x5afac5(0x1d7)]=_0xe559a5,this[_0x5afac5(0x1c0)]=!0x0,this[_0x5afac5(0x1df)]=_0x4f4caa;}async[_0x41a547(0x1eb)](){const _0x5d0534=_0x41a547;let _0x1a73d4;const _0x2c2178=[];this[_0x5d0534(0x1c0)]=!0x1;try{this[_0x5d0534(0x1be)]=await this[_0x5d0534(0x1fc)](),this[_0x5d0534(0x1fd)](_0x5d0534(0x1c5),this);const _0x16c267=await this[_0x5d0534(0x1be)][_0x5d0534(0x1f2)]();for await(const _0x1d54d7 of _0x16c267){if(this[_0x5d0534(0x1c0)])return;if(_0x5d0534(0x1d2)===_0x1d54d7[_0x5d0534(0x1bc)])return void this[_0x5d0534(0x1fd)](_0x5d0534(0x1d2),{'error':new _0x48cb8b(_0x5d0534(0x1f7),this)});if(_0x5d0534(0x1cf)!==_0x1d54d7[_0x5d0534(0x1bc)]){if(_0x5d0534(0x1ef)!==_0x1d54d7[_0x5d0534(0x1bc)]){if(_0xe2a150(_0x1d54d7[_0x5d0534(0x1bc)])&&this[_0x5d0534(0x1e3)](_0x1d54d7[_0x5d0534(0x1e8)][_0x5d0534(0x1db)],!0x0),_0x17f407(_0x1d54d7[_0x5d0534(0x1bc)]))_0x2c2178[_0x5d0534(0x1e6)](_0x1d54d7[_0x5d0534(0x1e8)][_0x5d0534(0x1f3)]);else{if(_0x11a14b(_0x1d54d7[_0x5d0534(0x1bc)])){if(_0x1d54d7[_0x5d0534(0x1bc)]!==_0x1a73d4){if(_0x1a73d4=_0x1d54d7[_0x5d0534(0x1bc)],_0x5d0534(0x1d8)===_0x1d54d7[_0x5d0534(0x1bc)]){this[_0x5d0534(0x1d3)]||(this[_0x5d0534(0x1d3)]=!0x0,this[_0x5d0534(0x1fd)](_0x5d0534(0x1fb),this));continue;}if(_0x5d0534(0x1bd)===_0x1d54d7[_0x5d0534(0x1bc)]){this[_0x5d0534(0x1c9)]||(this[_0x5d0534(0x1c9)]=!0x0,this[_0x5d0534(0x1fd)](_0x5d0534(0x1d6),this));continue;}this[_0x5d0534(0x1c9)]&&(this[_0x5d0534(0x1c9)]=!0x1,this[_0x5d0534(0x1fd)](_0x5d0534(0x1de),this)),this[_0x5d0534(0x1d3)]&&(this[_0x5d0534(0x1d3)]=!0x1,this[_0x5d0534(0x1fd)](_0x5d0534(0x1f9),this)),this[_0x5d0534(0x1ba)]&&this[_0x5d0534(0x1ba)][_0x5d0534(0x1ca)](),this[_0x5d0534(0x1ba)]=this[_0x5d0534(0x1d1)]({'type':_0x1d54d7[_0x5d0534(0x1bc)],'interactionId':this['id'],'id':_0x1d54d7[_0x5d0534(0x1e8)]?.['id']}),_0x2c2178[_0x5d0534(0x1c1)]>0x0&&_0x5d0534(0x1ce)===_0x1d54d7[_0x5d0534(0x1bc)]&&(this[_0x5d0534(0x1ba)][_0x5d0534(0x1c2)]=_0x2c2178[_0x5d0534(0x1d0)](0x0));}_0x1d54d7[_0x5d0534(0x1e8)][_0x5d0534(0x1e1)]&&this[_0x5d0534(0x1ba)][_0x5d0534(0x1c7)](_0x1d54d7[_0x5d0534(0x1e8)][_0x5d0534(0x1e1)]);}else _0x17dab7(_0x1d54d7[_0x5d0534(0x1bc)]);}}else this[_0x5d0534(0x1c6)]=_0x1d54d7[_0x5d0534(0x1e8)][_0x5d0534(0x1d5)];}else this[_0x5d0534(0x1fe)]=_0x1d54d7[_0x5d0534(0x1e8)][_0x5d0534(0x1fe)];}}finally{this[_0x5d0534(0x1c0)]||(_0x2c2178[_0x5d0534(0x1c1)]>0x0&&(this[_0x5d0534(0x1ba)][_0x5d0534(0x1c2)]=_0x2c2178[_0x5d0534(0x1d0)](0x0)),this[_0x5d0534(0x1e5)](),this[_0x5d0534(0x1fd)](_0x5d0534(0x1ea),this));}}[_0x41a547(0x1d4)](){const _0x5dfeea=_0x41a547;this[_0x5dfeea(0x1c0)]||(this[_0x5dfeea(0x1e5)](),this[_0x5dfeea(0x1fd)](_0x5dfeea(0x1e7),this));}[_0x41a547(0x1f6)](_0x1a2d7a){const _0x449a4f=_0x41a547;return this[_0x449a4f(0x1e9)][_0x449a4f(0x1c3)](_0x30dd80=>_0x30dd80['id']===_0x1a2d7a);}[_0x41a547(0x1e0)](){const _0x16187d=_0x41a547;this[_0x16187d(0x1cc)]||(this[_0x16187d(0x1d4)](),this[_0x16187d(0x1e9)][_0x16187d(0x1dc)](_0x181096=>_0x181096[_0x16187d(0x1e0)]()),this[_0x16187d(0x1e9)]=[],this[_0x16187d(0x1cc)]=!0x0,this[_0x16187d(0x1fd)](_0x16187d(0x1da),this),this[_0x16187d(0x1d9)]());}[_0x41a547(0x1d1)](_0x3c9f4a){const _0x4940e7=_0x41a547,_0x313816=new _0x26fc27({'editor':this[_0x4940e7(0x1df)],'documentContextContent':this[_0x4940e7(0x1dd)]()?.[_0x4940e7(0x1f0)],..._0x3c9f4a});return this[_0x4940e7(0x1e9)][_0x4940e7(0x1e6)](_0x313816),_0x313816[_0x4940e7(0x1e4)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x4940e7(0x1fd)](_0x4940e7(0x1c4),_0x313816),_0x313816;}[_0x41a547(0x1e3)](_0x4dbfd,_0xfc2c11=!0x1){const _0x27dad2=_0x41a547;this[_0x27dad2(0x1fd)](_0x27dad2(0x1e3),_0x4dbfd,_0xfc2c11);}[_0x41a547(0x1e5)](){const _0x2756f2=_0x41a547;this[_0x2756f2(0x1c0)]=!0x0,this[_0x2756f2(0x1be)]&&this[_0x2756f2(0x1be)][_0x2756f2(0x1e2)][_0x2756f2(0x1c8)](),this[_0x2756f2(0x1ba)]&&this[_0x2756f2(0x1ba)][_0x2756f2(0x1ca)](),this[_0x2756f2(0x1be)]=this[_0x2756f2(0x1ba)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xf36c(_0x43549c,_0x383d9e){const _0x3552b9=_0x3552();return _0xf36c=function(_0xf36c3e,_0x522244){_0xf36c3e=_0xf36c3e-0x187;let _0x8fbc72=_0x3552b9[_0xf36c3e];return _0x8fbc72;},_0xf36c(_0x43549c,_0x383d9e);}const _0x336655=_0xf36c;(function(_0x2dc246,_0xf62ad1){const _0x4acb36=_0xf36c,_0x559359=_0x2dc246();while(!![]){try{const _0x4b3089=parseInt(_0x4acb36(0x1a9))/0x1*(parseInt(_0x4acb36(0x1af))/0x2)+-parseInt(_0x4acb36(0x1a3))/0x3+parseInt(_0x4acb36(0x195))/0x4*(parseInt(_0x4acb36(0x1b3))/0x5)+parseInt(_0x4acb36(0x197))/0x6+parseInt(_0x4acb36(0x1a2))/0x7+-parseInt(_0x4acb36(0x19b))/0x8*(-parseInt(_0x4acb36(0x19e))/0x9)+-parseInt(_0x4acb36(0x1b1))/0xa;if(_0x4b3089===_0xf62ad1)break;else _0x559359['push'](_0x559359['shift']());}catch(_0x5b9ab9){_0x559359['push'](_0x559359['shift']());}}}(_0x3552,0x57480));import{EmitterMixin as _0x2378d,logWarning as _0x5a11e2,logError as _0x470068}from'ckeditor5/src/utils.js';function _0x3552(){const _0x255298=['isAvailable','109996EPKKDj','getDefault','1991046cfDTur','_availableModels','provider','items','911912yzKluB','AI_MODEL_DESCRIPTION_AUTO','ai-models-unable-to-retrieve','45hDJItj','AI_MODEL_DESCRIPTION_','description','AI_MODEL_NAME_AUTO','3376730MazAkP','2069364aggEym','string','some','agent','getAvailableModels','_modelList','80481nCIZJo','getAll','startsWith','_defaultModelId','push','_connector','14MHILRP','toLocaleLowerCase','14227320YrUsUM','_getModelById','95NMHiOc','getLocalized','getModels','find','name','_filterModels','list','map','ai-chat-default-model-id-unrecognized','length','auto','ai-chat-model-id-unrecognized','getModel','toUpperCase'];_0x3552=function(){return _0x255298;};return _0x3552();}import{getTranslation as _0x37da60}from'../utils/common-translations.js';export class AIModels extends _0x2378d(){[_0x336655(0x1ae)];[_0x336655(0x198)];[_0x336655(0x1ac)];[_0x336655(0x1a8)]=[];constructor({connector:_0x30f648,availableModels:_0x130564,defaultModelId:_0x3beb7c}){const _0x14fe9d=_0x336655;super(),this[_0x14fe9d(0x1ae)]=_0x30f648,this[_0x14fe9d(0x198)]=_0x130564,this[_0x14fe9d(0x1ac)]=_0x3beb7c;}async[_0x336655(0x1aa)](){const _0x30106e=_0x336655;if(!this[_0x30106e(0x1a8)][_0x30106e(0x18f)])try{const _0x3f21c0=this[_0x30106e(0x1ae)][_0x30106e(0x188)](),_0x1b9d89=await _0x3f21c0[_0x30106e(0x18c)]();this[_0x30106e(0x1a8)]=_0x1b9d89[_0x30106e(0x19a)];}catch(_0x4cfd9e){throw _0x470068(_0x30106e(0x19d),{'error':_0x4cfd9e}),_0x4cfd9e;}return[...this[_0x30106e(0x1a8)]];}async[_0x336655(0x1a7)](){const _0x501825=_0x336655,_0x4c5de7=await this[_0x501825(0x1aa)]();return this[_0x501825(0x18b)](_0x4c5de7,this[_0x501825(0x198)]);}async[_0x336655(0x192)](_0x3472ba){const _0x42db1a=_0x336655,_0x1c500e=await this[_0x42db1a(0x1aa)]();if(!_0x1c500e[_0x42db1a(0x18f)])return null;if(_0x3472ba){const _0x32fa21=this[_0x42db1a(0x1b2)](_0x1c500e,_0x3472ba);if(_0x32fa21)return _0x32fa21;_0x5a11e2(_0x42db1a(0x191),{'modelId':_0x3472ba,'fallBackModelId':this[_0x42db1a(0x1ac)]});}return this[_0x42db1a(0x196)]();}async[_0x336655(0x196)](){const _0xf0d4e8=_0x336655,_0x46d93e=await this[_0xf0d4e8(0x1a7)]();if(!_0x46d93e[_0xf0d4e8(0x18f)])return null;if(this[_0xf0d4e8(0x1ac)]){const _0x132a05=this[_0xf0d4e8(0x1b2)](_0x46d93e,this[_0xf0d4e8(0x1ac)]);if(_0x132a05)return _0x132a05;_0x5a11e2(_0xf0d4e8(0x18e),{'defaultModelId':this[_0xf0d4e8(0x1ac)],'fallBackModelId':_0x46d93e[0x0]['id']});}return _0x46d93e[0x0];}async[_0x336655(0x194)](_0x296265){const _0xa61861=_0x336655;return(await this[_0xa61861(0x1a7)]())[_0xa61861(0x1a5)](_0x30ec24=>_0x30ec24[_0xa61861(0x18a)]===_0x296265[_0xa61861(0x18a)]&&_0x30ec24[_0xa61861(0x199)]===_0x296265[_0xa61861(0x199)]);}[_0x336655(0x18b)](_0x29165c,_0x519c10){const _0x3b79a3=_0x336655;let _0x3b7131;if(_0x519c10){_0x3b7131=[];const _0xbaa86c=_0x3b79a3(0x1a4)==typeof _0x519c10?[_0x519c10[_0x3b79a3(0x1b0)]()]:_0x519c10[_0x3b79a3(0x18d)](_0x7e1a2e=>_0x7e1a2e[_0x3b79a3(0x1b0)]());for(const _0xdb4540 of _0xbaa86c)for(const _0x49afe8 of _0x29165c)(_0x49afe8['id'][_0x3b79a3(0x1b0)]()===_0xdb4540||_0x49afe8[_0x3b79a3(0x18a)][_0x3b79a3(0x1b0)]()===_0xdb4540||Ne(_0x49afe8)&&_0x3b79a3(0x190)===_0xdb4540||_0x49afe8[_0x3b79a3(0x199)][_0x3b79a3(0x1b0)]()===_0xdb4540||_0x49afe8['id'][_0x3b79a3(0x1b0)]()[_0x3b79a3(0x1ab)](_0xdb4540))&&_0x3b7131[_0x3b79a3(0x1ad)](_0x49afe8);}else _0x3b7131=_0x29165c;return _0x3b7131;}[_0x336655(0x1b2)](_0x56382c,_0x3e146c){const _0x54e56d=_0x336655;return _0x56382c[_0x54e56d(0x189)](_0x65f2a9=>Ne(_0x65f2a9)&&_0x54e56d(0x190)===_0x3e146c?_0x65f2a9:_0x65f2a9['id']===_0x3e146c)||null;}static[_0x336655(0x187)](_0x2e2a0e,_0x2913a9){const _0x4ae60a=_0x336655;return _0x2913a9[_0x4ae60a(0x18d)](_0x160ead=>{const _0x2e7676=_0x4ae60a;if(Ne(_0x160ead))_0x160ead[_0x2e7676(0x18a)]=_0x37da60(_0x2e2a0e,_0x2e7676(0x1a1)),_0x160ead[_0x2e7676(0x1a0)]=_0x37da60(_0x2e2a0e,_0x2e7676(0x19c));else _0x37da60(_0x2e2a0e,_0x2e7676(0x19f)+_0x160ead['id'][_0x2e7676(0x193)]())[_0x2e7676(0x1ab)](_0x2e7676(0x19f))||(_0x160ead[_0x2e7676(0x1a0)]=_0x37da60(_0x2e2a0e,_0x2e7676(0x19f)+_0x160ead['id'][_0x2e7676(0x193)]()));return _0x160ead;});}}function Ne(_0x1e42c6){const _0x4c7d30=_0x336655;return _0x1e42c6['id'][_0x4c7d30(0x1ab)](_0x4c7d30(0x1a6));}
23
+ const _0x24747d=_0x492e;function _0x492e(_0x19e049,_0x461470){const _0x498bc7=_0x498b();return _0x492e=function(_0x492ee4,_0x4fed84){_0x492ee4=_0x492ee4-0x89;let _0x3592e8=_0x498bc7[_0x492ee4];return _0x3592e8;},_0x492e(_0x19e049,_0x461470);}(function(_0x64eb51,_0x1d8f28){const _0x1c4698=_0x492e,_0x50e296=_0x64eb51();while(!![]){try{const _0x145d42=-parseInt(_0x1c4698(0x9e))/0x1*(-parseInt(_0x1c4698(0x99))/0x2)+-parseInt(_0x1c4698(0xa8))/0x3*(-parseInt(_0x1c4698(0xb5))/0x4)+parseInt(_0x1c4698(0x98))/0x5+parseInt(_0x1c4698(0xa5))/0x6*(-parseInt(_0x1c4698(0x9f))/0x7)+-parseInt(_0x1c4698(0xa9))/0x8+-parseInt(_0x1c4698(0x95))/0x9+-parseInt(_0x1c4698(0xb3))/0xa*(-parseInt(_0x1c4698(0xa6))/0xb);if(_0x145d42===_0x1d8f28)break;else _0x50e296['push'](_0x50e296['shift']());}catch(_0x3ae606){_0x50e296['push'](_0x50e296['shift']());}}}(_0x498b,0x48f95));function _0x498b(){const _0x293926=['6YxopTo','11xASwQq','length','3273TjEksK','1244408cXkrXO','agent','_availableModels','_defaultModelId','_modelList','_getModelById','getDefault','auto','some','getLocalized','5045550WciisM','getAvailableModels','140BhOggP','name','getModels','AI_MODEL_NAME_AUTO','toUpperCase','find','string','_filterModels','isAvailable','AI_MODEL_DESCRIPTION_','list','startsWith','getModel','provider','2163582KBUloi','ai-chat-default-model-id-unrecognized','_connector','927140jIafPC','27446rGMSSS','map','push','items','getAll','7yzQFso','905653UTCujW','AI_MODEL_DESCRIPTION_AUTO','ai-chat-model-id-unrecognized','toLocaleLowerCase','ai-models-unable-to-retrieve','description'];_0x498b=function(){return _0x293926;};return _0x498b();}import{EmitterMixin as _0x3d8e3c,logWarning as _0x31fc70,logError as _0x537f75}from'ckeditor5/src/utils.js';import{getTranslation as _0x285d13}from'../utils/common-translations.js';export class AIModels extends _0x3d8e3c(){[_0x24747d(0x97)];[_0x24747d(0xab)];[_0x24747d(0xac)];[_0x24747d(0xad)]=[];constructor({connector:_0x29cecc,availableModels:_0x3d7036,defaultModelId:_0x39bc0f}){const _0x543e02=_0x24747d;super(),this[_0x543e02(0x97)]=_0x29cecc,this[_0x543e02(0xab)]=_0x3d7036,this[_0x543e02(0xac)]=_0x39bc0f;}async[_0x24747d(0x9d)](){const _0x1cbb48=_0x24747d;if(!this[_0x1cbb48(0xad)][_0x1cbb48(0xa7)])try{const _0x5f397b=this[_0x1cbb48(0x97)][_0x1cbb48(0x89)](),_0x73f304=await _0x5f397b[_0x1cbb48(0x91)]();this[_0x1cbb48(0xad)]=_0x73f304[_0x1cbb48(0x9c)];}catch(_0x137ae2){throw _0x537f75(_0x1cbb48(0xa3),{'error':_0x137ae2}),_0x137ae2;}return[...this[_0x1cbb48(0xad)]];}async[_0x24747d(0xb4)](){const _0x20dd52=_0x24747d,_0x178600=await this[_0x20dd52(0x9d)]();return this[_0x20dd52(0x8e)](_0x178600,this[_0x20dd52(0xab)]);}async[_0x24747d(0x93)](_0x43f77a){const _0x484ee4=_0x24747d,_0x5986e6=await this[_0x484ee4(0x9d)]();if(!_0x5986e6[_0x484ee4(0xa7)])return null;if(_0x43f77a){const _0xce3e40=this[_0x484ee4(0xae)](_0x5986e6,_0x43f77a);if(_0xce3e40)return _0xce3e40;_0x31fc70(_0x484ee4(0xa1),{'modelId':_0x43f77a,'fallBackModelId':this[_0x484ee4(0xac)]});}return this[_0x484ee4(0xaf)]();}async[_0x24747d(0xaf)](){const _0x452507=_0x24747d,_0x187ace=await this[_0x452507(0xb4)]();if(!_0x187ace[_0x452507(0xa7)])return null;if(this[_0x452507(0xac)]){const _0x4d6bc5=this[_0x452507(0xae)](_0x187ace,this[_0x452507(0xac)]);if(_0x4d6bc5)return _0x4d6bc5;_0x31fc70(_0x452507(0x96),{'defaultModelId':this[_0x452507(0xac)],'fallBackModelId':_0x187ace[0x0]['id']});}return _0x187ace[0x0];}async[_0x24747d(0x8f)](_0x85bf8d){const _0x213ce8=_0x24747d;return(await this[_0x213ce8(0xb4)]())[_0x213ce8(0xb1)](_0x5f1fab=>_0x5f1fab[_0x213ce8(0xb6)]===_0x85bf8d[_0x213ce8(0xb6)]&&_0x5f1fab[_0x213ce8(0x94)]===_0x85bf8d[_0x213ce8(0x94)]);}[_0x24747d(0x8e)](_0x364687,_0x53d102){const _0x1e85c1=_0x24747d;let _0x8847d6;if(_0x53d102){_0x8847d6=[];const _0x15fea4=_0x1e85c1(0x8d)==typeof _0x53d102?[_0x53d102[_0x1e85c1(0xa2)]()]:_0x53d102[_0x1e85c1(0x9a)](_0x42d6f5=>_0x42d6f5[_0x1e85c1(0xa2)]());for(const _0x1bf7fa of _0x15fea4)for(const _0x4e5cc1 of _0x364687)(_0x4e5cc1['id'][_0x1e85c1(0xa2)]()===_0x1bf7fa||_0x4e5cc1[_0x1e85c1(0xb6)][_0x1e85c1(0xa2)]()===_0x1bf7fa||ze(_0x4e5cc1)&&_0x1e85c1(0xb0)===_0x1bf7fa||_0x4e5cc1[_0x1e85c1(0x94)][_0x1e85c1(0xa2)]()===_0x1bf7fa||_0x4e5cc1['id'][_0x1e85c1(0xa2)]()[_0x1e85c1(0x92)](_0x1bf7fa))&&_0x8847d6[_0x1e85c1(0x9b)](_0x4e5cc1);}else _0x8847d6=_0x364687;return _0x8847d6;}[_0x24747d(0xae)](_0x6b4404,_0x2cce28){const _0x53f391=_0x24747d;return _0x6b4404[_0x53f391(0x8c)](_0x28ff41=>ze(_0x28ff41)&&_0x53f391(0xb0)===_0x2cce28?_0x28ff41:_0x28ff41['id']===_0x2cce28)||null;}static[_0x24747d(0xb2)](_0x2f1ac2,_0x15d6c3){const _0x179e92=_0x24747d;return _0x15d6c3[_0x179e92(0x9a)](_0x315e33=>{const _0x276e53=_0x179e92;if(ze(_0x315e33))_0x315e33[_0x276e53(0xb6)]=_0x285d13(_0x2f1ac2,_0x276e53(0x8a)),_0x315e33[_0x276e53(0xa4)]=_0x285d13(_0x2f1ac2,_0x276e53(0xa0));else _0x285d13(_0x2f1ac2,_0x276e53(0x90)+_0x315e33['id'][_0x276e53(0x8b)]())[_0x276e53(0x92)](_0x276e53(0x90))||(_0x315e33[_0x276e53(0xa4)]=_0x285d13(_0x2f1ac2,_0x276e53(0x90)+_0x315e33['id'][_0x276e53(0x8b)]()));return _0x315e33;});}}function ze(_0x576774){const _0x489be2=_0x24747d;return _0x576774['id'][_0x489be2(0x92)](_0x489be2(0xaa));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1b4be6=_0x5eab;(function(_0x11dccc,_0xeb467f){const _0x3906e6=_0x5eab,_0x232914=_0x11dccc();while(!![]){try{const _0x17c27e=-parseInt(_0x3906e6(0x154))/0x1+-parseInt(_0x3906e6(0x14c))/0x2*(parseInt(_0x3906e6(0x11f))/0x3)+parseInt(_0x3906e6(0x15c))/0x4*(parseInt(_0x3906e6(0x10d))/0x5)+-parseInt(_0x3906e6(0x157))/0x6+-parseInt(_0x3906e6(0x152))/0x7*(parseInt(_0x3906e6(0x111))/0x8)+-parseInt(_0x3906e6(0x11d))/0x9*(parseInt(_0x3906e6(0x110))/0xa)+-parseInt(_0x3906e6(0x149))/0xb*(-parseInt(_0x3906e6(0x139))/0xc);if(_0x17c27e===_0xeb467f)break;else _0x232914['push'](_0x232914['shift']());}catch(_0x559eb9){_0x232914['push'](_0x232914['shift']());}}}(_0x145d,0x565d3));import{CKEditorError as _0x731444,ObservableMixin as _0x48edb1,uid as _0x43f259}from'ckeditor5/src/utils.js';import{Element as _0x21e6c3,findAll as _0x383d9c,getAttribute as _0x517994,getParents as _0x407a48,Document as _0x2c4a6a,parse as _0x15492e,Text as _0x4c08c6}from'../utils/htmlparser.js';import{AIResponseParser as _0x32d443}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x21321d}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x27403f}from'../utils/getsuggestionpartsfromreply.js';function _0x5eab(_0x4df40f,_0x5b98e5){const _0x145da9=_0x145d();return _0x5eab=function(_0x5eab46,_0x4858fc){_0x5eab46=_0x5eab46-0x109;let _0x4ab85b=_0x145da9[_0x5eab46];return _0x4ab85b;},_0x5eab(_0x4df40f,_0x5b98e5);}import{getTranslation as _0x4dea68}from'../utils/common-translations.js';import{cloneDeep as _0x9a3acc}from'es-toolkit';export const AI_REPLY_TYPES=[_0x1b4be6(0x147),_0x1b4be6(0x14d),_0x1b4be6(0x151),_0x1b4be6(0x148)];export const AI_REPLY_TYPES_IGNORED=[_0x1b4be6(0x113)];export const AI_REPLY_TITLE_TYPE=_0x1b4be6(0x113);export class AIReply extends _0x48edb1(){['id'];[_0x1b4be6(0x119)];[_0x1b4be6(0x12c)];[_0x1b4be6(0x15b)]=[];[_0x1b4be6(0x142)]=new _0x2c4a6a([]);[_0x1b4be6(0x131)]=new _0x2c4a6a([]);[_0x1b4be6(0x10b)]=[];[_0x1b4be6(0x156)]=!0x1;[_0x1b4be6(0x118)];[_0x1b4be6(0x136)];[_0x1b4be6(0x15d)];[_0x1b4be6(0x121)];[_0x1b4be6(0x128)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x805d6f,content:_0x8c6d27='',isDone:_0x57bfc9=!0x1,interactionId:_0x493d00,areActionsDisabled:_0x560b04,documentContextContent:_0x3d5321,editor:_0x202a6a,id:_0x45126d}){const _0x66966=_0x1b4be6;super(),this['id']=_0x45126d||_0x43f259(),this[_0x66966(0x119)]=_0x493d00,this[_0x66966(0x12c)]=_0x805d6f,this[_0x66966(0x156)]=!!_0x560b04,this[_0x66966(0x121)]=_0x202a6a,this[_0x66966(0x136)]=new _0x32d443(),this[_0x66966(0x15d)]=new _0x21321d(),this[_0x66966(0x118)]=_0x15492e(_0x3d5321||''),this[_0x66966(0x158)](_0x66966(0x13b),_0x57bfc9),this['on'](_0x66966(0x13f),()=>{const _0xf33f0c=_0x66966;this[_0xf33f0c(0x12a)]();}),this[_0x66966(0x158)](_0x66966(0x140),_0x8c6d27);}[_0x1b4be6(0x13a)](_0x5900c4){const _0x4d56d1=_0x1b4be6;this[_0x4d56d1(0x158)](_0x4d56d1(0x140),this[_0x4d56d1(0x140)]+_0x5900c4);}[_0x1b4be6(0x144)](){const _0x52138a=_0x1b4be6;this[_0x52138a(0x13b)]||(this[_0x52138a(0x158)](_0x52138a(0x13b),!0x0),this[_0x52138a(0x12a)]());}[_0x1b4be6(0x150)](){const _0x2b28c4=_0x1b4be6;this[_0x2b28c4(0x143)]();}[_0x1b4be6(0x120)](_0x43c7c9,_0x2cf81b){const _0x29282b=_0x1b4be6;this[_0x29282b(0x10b)][_0x43c7c9][_0x29282b(0x13e)]=_0x2cf81b,this[_0x29282b(0x114)](_0x29282b(0x15f),{'reply':this,'index':_0x43c7c9,'state':_0x2cf81b});}[_0x1b4be6(0x14b)]({showDiff:_0x4086f8,groupIndex:_0x52187b}){const _0x3d048a=_0x1b4be6;if(!this[_0x3d048a(0x121)])throw new _0x731444(_0x3d048a(0x129),null,{'aiReply':this});const _0x46d505=this[_0x3d048a(0x132)](_0x4086f8,_0x52187b);if(_0x46d505)return _0x46d505;let _0x33c6e0=[];if(void 0x0===_0x52187b)_0x33c6e0=this[_0x3d048a(0x10b)];else{const _0x24f3eb=this[_0x3d048a(0x10b)][_0x3d048a(0x141)](({index:_0x5b5522})=>_0x5b5522===_0x52187b);if(!_0x24f3eb)throw new _0x731444(_0x3d048a(0x11e),null,{'aiReply':this,'groupIndex':_0x52187b});_0x33c6e0=[_0x24f3eb];}const _0x286d26=_0x27403f({'editor':this[_0x3d048a(0x121)],'showDiff':_0x4086f8,'changeGroups':_0x33c6e0,'documentContextContent':this[_0x3d048a(0x118)]});return this[_0x3d048a(0x115)](_0x4086f8,_0x286d26),_0x286d26;}[_0x1b4be6(0x132)](_0x558cfd,_0x13fa72){const _0x38911f=_0x1b4be6,_0x4e66e0=_0x558cfd?_0x38911f(0x123):_0x38911f(0x116);if(!this[_0x38911f(0x128)][_0x4e66e0][_0x38911f(0x135)])return null;const _0x4bf3cc=this[_0x38911f(0x128)][_0x4e66e0];if(void 0x0===_0x13fa72)return _0x9a3acc(_0x4bf3cc);{const _0x449a74=_0x4bf3cc[_0x38911f(0x141)](({index:_0x226974})=>_0x226974===_0x13fa72);if(_0x449a74)return[_0x9a3acc(_0x449a74)];}return null;}[_0x1b4be6(0x115)](_0x4813d3,_0x547a31){const _0x3be957=_0x1b4be6,_0x56cfa8=_0x4813d3?_0x3be957(0x123):_0x3be957(0x116);_0x547a31[_0x3be957(0x12f)](_0x5ed741=>{const _0x5b186b=_0x3be957,_0x8ee102=this[_0x5b186b(0x128)][_0x56cfa8],_0x5e138c=_0x8ee102[_0x5b186b(0x141)](({index:_0x5218a5})=>_0x5218a5===_0x5ed741[_0x5b186b(0x130)]);if(_0x5e138c){const _0x59b2bd=_0x8ee102[_0x5b186b(0x14e)](_0x5e138c);_0x8ee102[_0x5b186b(0x146)](_0x59b2bd,0x1,_0x5ed741);}else _0x8ee102[_0x5b186b(0x153)](_0x5ed741);});}[_0x1b4be6(0x12a)](){const _0x2888d3=_0x1b4be6;if(_0x2888d3(0x147)===this[_0x2888d3(0x12c)]){this[_0x2888d3(0x142)]=this[_0x2888d3(0x136)][_0x2888d3(0x124)](this[_0x2888d3(0x140)]);const _0x350e94=this[_0x2888d3(0x10b)];this[_0x2888d3(0x112)]();const _0x2d0b6b=this[_0x2888d3(0x14f)](_0x350e94,this[_0x2888d3(0x10b)]);(_0x2d0b6b[_0x2888d3(0x135)]||this[_0x2888d3(0x13b)])&&(this[_0x2888d3(0x114)](_0x2888d3(0x159),this,_0x2d0b6b),this[_0x2888d3(0x128)][_0x2888d3(0x123)][_0x2888d3(0x135)]=this[_0x2888d3(0x128)][_0x2888d3(0x116)][_0x2888d3(0x135)]=0x0);}else this[_0x2888d3(0x142)]=this[_0x2888d3(0x136)][_0x2888d3(0x137)](this[_0x2888d3(0x140)]),this[_0x2888d3(0x114)](_0x2888d3(0x159),this);}[_0x1b4be6(0x14f)](_0x2a5608,_0x23517d){const _0x261850=_0x1b4be6,_0x58936e=[];for(const _0xc6c3de of _0x23517d){const _0x47ba56=_0x2a5608[_0xc6c3de[_0x261850(0x130)]];_0x47ba56?_0x47ba56[_0x261850(0x11b)][_0x261850(0x135)]!==_0xc6c3de[_0x261850(0x11b)][_0x261850(0x135)]?_0x58936e[_0x261850(0x153)](_0xc6c3de):_0x47ba56[_0x261850(0x11b)][_0x261850(0x12f)]((_0x1b3f34,_0x47d075)=>{const _0x574551=_0x261850,_0x3715f4=_0xc6c3de[_0x574551(0x11b)][_0x47d075];_0x1b3f34['id']!==_0x3715f4['id']&&_0x58936e[_0x574551(0x153)](_0xc6c3de);}):_0x58936e[_0x261850(0x153)](_0xc6c3de);}return _0x58936e;}[_0x1b4be6(0x112)](){const _0x2a68e8=_0x1b4be6,_0x5e5936=new _0x21e6c3('p',{},[new _0x21e6c3(_0x2a68e8(0x133),{'style':_0x2a68e8(0x126)},[new _0x4c08c6(_0x4dea68(this[_0x2a68e8(0x121)][_0x2a68e8(0x145)],_0x2a68e8(0x12d)))])]),_0x5ec559=this[_0x2a68e8(0x15d)][_0x2a68e8(0x125)](this[_0x2a68e8(0x142)],this[_0x2a68e8(0x118)][_0x2a68e8(0x160)](!0x0),{'markUnstableElements':!this[_0x2a68e8(0x13b)],'replaceRemovedWith':_0x5e5936,'cutAfterLastChange':!this[_0x2a68e8(0x13b)]});if(!_0x5ec559[_0x2a68e8(0x138)][_0x2a68e8(0x135)]&&!this[_0x2a68e8(0x13b)])return;this[_0x2a68e8(0x131)]=_0x5ec559[_0x2a68e8(0x142)];let _0x2251a9=[];if(_0x383d9c(_0x54b239=>{const _0x3276b9=_0x2a68e8,_0x395899=_0x517994(_0x54b239,_0x3276b9(0x13c));if(!_0x395899||!_0x3f9a13(_0x395899))return!0x1;const _0x148b18=[_0x54b239,..._0x407a48(_0x54b239)]['at'](-0x2);if(_0x54b239!=_0x148b18){const _0x2b2606=_0x517994(_0x148b18,_0x3276b9(0x13c));_0x3f9a13(_0x2b2606)||(_0x2251a9[_0x3276b9(0x153)]({'node':_0x148b18,'id':_0x2b2606,'type':_0x3276b9(0x127)}),_0x5ec559[_0x3276b9(0x138)][_0x3276b9(0x153)](_0x2b2606));}else _0x5ec559[_0x3276b9(0x138)][_0x3276b9(0x12e)](_0x395899)?_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x127),'id':_0x395899}):_0x5ec559[_0x3276b9(0x15e)][_0x3276b9(0x12e)](_0x395899)?_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x12b),'id':_0x395899,'anchorId':_0x517994(_0x54b239[_0x3276b9(0x14a)],_0x3276b9(0x13c))}):_0x2251a9[_0x3276b9(0x153)]({'node':_0x54b239,'type':_0x3276b9(0x15a),'id':_0x395899});return!0x0;},this[_0x2a68e8(0x131)]),_0x2251a9=_0x2251a9[_0x2a68e8(0x11a)](({node:_0x5ae530})=>[..._0x407a48(_0x5ae530),_0x5ae530][_0x2a68e8(0x117)](_0x393793=>!_0x517994(_0x393793,_0x2a68e8(0x10f)))),0x0==_0x2251a9[_0x2a68e8(0x135)])return;const _0x5e9d5d=[[_0x2251a9[0x0]]];for(let _0xebd775=0x1;_0xebd775<_0x2251a9[_0x2a68e8(0x135)];_0xebd775++){const _0x2cbbc3=_0x5e9d5d[_0x5e9d5d[_0x2a68e8(0x135)]-0x1],_0xa99323=_0x2cbbc3[_0x2cbbc3[_0x2a68e8(0x135)]-0x1];_0x2251a9[_0xebd775][_0x2a68e8(0x10c)][_0x2a68e8(0x14a)]==_0xa99323[_0x2a68e8(0x10c)]&&_0x2a68e8(0x127)!=_0x2251a9[_0xebd775][_0x2a68e8(0x12c)]&&_0x2a68e8(0x127)!=_0xa99323[_0x2a68e8(0x12c)]?_0x2cbbc3[_0x2a68e8(0x153)](_0x2251a9[_0xebd775]):_0x5e9d5d[_0x2a68e8(0x153)]([_0x2251a9[_0xebd775]]);}for(const _0x2fe172 of _0x5e9d5d){const _0xc18c51=_0x2fe172[0x0],_0x27ab2c=_0x2fe172[_0x2fe172[_0x2a68e8(0x135)]-0x1],_0x2963f3=_0x569bde(_0xc18c51[_0x2a68e8(0x10c)][_0x2a68e8(0x14a)]);_0x2963f3&&_0x2fe172[_0x2a68e8(0x155)](_0x2963f3);const _0x4f59ea=_0x569bde(_0x27ab2c[_0x2a68e8(0x10c)][_0x2a68e8(0x122)]);_0x4f59ea&&_0x2fe172[_0x2a68e8(0x153)](_0x4f59ea);}function _0x3f9a13(_0x43aa8a){const _0xaccd69=_0x2a68e8;return _0x5ec559[_0xaccd69(0x138)][_0xaccd69(0x12e)](_0x43aa8a)||_0x5ec559[_0xaccd69(0x15e)][_0xaccd69(0x12e)](_0x43aa8a)||_0x5ec559[_0xaccd69(0x134)][_0xaccd69(0x12e)](_0x43aa8a);}function _0x569bde(_0x10b92a){const _0x2f1c37=_0x2a68e8;if(_0x10b92a&&_0x517994(_0x10b92a,_0x2f1c37(0x13c))&&!_0x517994(_0x10b92a,_0x2f1c37(0x10f))){const _0x417343=_0x517994(_0x10b92a,_0x2f1c37(0x13c));if(!_0x3f9a13(_0x417343))return{'node':_0x10b92a,'type':_0x2f1c37(0x13d),'id':_0x417343};}return null;}this[_0x2a68e8(0x10b)]=_0x5e9d5d[_0x2a68e8(0x11c)]((_0x5e18d5,_0x39936c)=>({'changes':_0x5e18d5,'state':_0x2a68e8(0x10a),'index':_0x39936c}));}}export function isValidReplyType(_0x5c39ef){const _0x22580e=_0x1b4be6;return Object[_0x22580e(0x10e)](AI_REPLY_TYPES)[_0x22580e(0x12e)](_0x5c39ef);}function _0x145d(){const _0x5d23f5=['forEach','index','parsedMergedContent','_getCachedContentParts','span','removedNodeIds','length','aiResponseParser','convertMarkdownToHTML','modifiedNodeIds','12uVNQwy','appendContent','isDone','data-id','context','state','change:content','content','find','parsedContent','stopListening','done','locale','splice','modification-delta','reasoning','17210787OjIUJj','previousSibling','getContentParts','4KCWoQs','text-delta','indexOf','_getDifferentChangeGroups','destroy','web-search','1414mFKLgA','push','233459jGzGcb','unshift','areActionsDisabled','1403772KhGFXM','set','replyContentUpdated','removed','sources','2659168zzdQjX','aiResponseApplier','newNodeIds','replyChangeGroupStateUpdated','cloneNode','source','pending','changeGroups','node','5IMJlhq','values','data-unstable','3972370YlkOpp','16760raYoYP','updateChangeGroups','conversation-title','fire','_setCachedContentParts','withoutDiff','every','documentContextContent','interactionId','filter','changes','map','9rVqCft','ai-reply-get-content-parts-group-not-found','881721iidRmM','setChangeGroupState','editor','nextSibling','withDiff','parseAndNormalizeHTML','merge','color:\x20#808080;\x20font-style:\x20italic','modified','cachedSuggestionContentParts','ai-get-editor-from-context-no-editor','onContentChange','new','type','AI_SUGGESTION_CONTENT_PART_REMOVED','includes'];_0x145d=function(){return _0x5d23f5;};return _0x145d();}export function isIgnoredReplyType(_0x25d17b){const _0xbc3bd=_0x1b4be6;return AI_REPLY_TYPES_IGNORED[_0xbc3bd(0x12e)](_0x25d17b);}export function isReplyTitleType(_0x5f4d5a){return _0x5f4d5a===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x36400f){const _0x2245ab=_0x1b4be6;return _0x2245ab(0x109)===_0x36400f;}
23
+ function _0x93ae(_0x13436e,_0xc1f768){const _0xaff2ca=_0xaff2();return _0x93ae=function(_0x93ae74,_0x4b9b37){_0x93ae74=_0x93ae74-0xc0;let _0x2b643b=_0xaff2ca[_0x93ae74];return _0x2b643b;},_0x93ae(_0x13436e,_0xc1f768);}const _0x5e7551=_0x93ae;(function(_0x44e1a0,_0xc868bc){const _0x2ef8e6=_0x93ae,_0x1d8bbc=_0x44e1a0();while(!![]){try{const _0x2b0414=parseInt(_0x2ef8e6(0xef))/0x1+parseInt(_0x2ef8e6(0x108))/0x2*(parseInt(_0x2ef8e6(0xc2))/0x3)+-parseInt(_0x2ef8e6(0xdb))/0x4*(parseInt(_0x2ef8e6(0xc7))/0x5)+-parseInt(_0x2ef8e6(0xf7))/0x6*(-parseInt(_0x2ef8e6(0xeb))/0x7)+-parseInt(_0x2ef8e6(0x10b))/0x8*(-parseInt(_0x2ef8e6(0xff))/0x9)+parseInt(_0x2ef8e6(0xd4))/0xa+-parseInt(_0x2ef8e6(0x115))/0xb*(parseInt(_0x2ef8e6(0xda))/0xc);if(_0x2b0414===_0xc868bc)break;else _0x1d8bbc['push'](_0x1d8bbc['shift']());}catch(_0x5de64c){_0x1d8bbc['push'](_0x1d8bbc['shift']());}}}(_0xaff2,0xe1036));import{CKEditorError as _0x289899,ObservableMixin as _0x279071,uid as _0x356e3f}from'ckeditor5/src/utils.js';import{Element as _0x3ebb89,findAll as _0x4844cf,getAttribute as _0x36a9d9,getParents as _0xcbfd56,Document as _0x28f557,parse as _0x4327d0,Text as _0x2b5435}from'../utils/htmlparser.js';import{AIResponseParser as _0x2867d7}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x56c59b}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1fbec7}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x450fcc}from'../utils/common-translations.js';import{cloneDeep as _0x42f3dd}from'es-toolkit';function _0xaff2(){const _0x20b469=['parsedContent','pending','content','cachedSuggestionContentParts','removed','cloneNode','find','push','_getDifferentChangeGroups','ai-get-editor-from-context-no-editor','length','modifiedNodeIds','new','823921NnQSul','done','fire','updateChangeGroups','1701482ohvuMl','text-delta','state','data-id','locale','appendContent','removedNodeIds','filter','66EQsdHD','type','data-unstable','modification-delta','convertMarkdownToHTML','getContentParts','merge','reasoning','1188225kMUqTt','parseAndNormalizeHTML','set','every','changes','documentContextContent','unshift','_getCachedContentParts','destroy','233222ShbGvt','setChangeGroupState','withoutDiff','8PfRkVx','replyContentUpdated','aiResponseParser','isDone','areActionsDisabled','aiResponseApplier','index','parsedMergedContent','ai-reply-get-content-parts-group-not-found','map','66nUEkJG','conversation-title','newNodeIds','span','AI_SUGGESTION_CONTENT_PART_REMOVED','42HFNtey','changeGroups','withDiff','replyChangeGroupStateUpdated','sources','836345VRsNPA','node','nextSibling','forEach','previousSibling','indexOf','includes','interactionId','onContentChange','splice','stopListening','values','editor','2709460YOBBQx','_setCachedContentParts','change:content','modified','source','context','5543868JqGFXx','32upczfV','color:\x20#808080;\x20font-style:\x20italic','web-search'];_0xaff2=function(){return _0x20b469;};return _0xaff2();}export const AI_REPLY_TYPES=[_0x5e7551(0xfa),_0x5e7551(0xf0),_0x5e7551(0xdd),_0x5e7551(0xfe)];export const AI_REPLY_TYPES_IGNORED=[_0x5e7551(0x116)];export const AI_REPLY_TITLE_TYPE=_0x5e7551(0x116);export class AIReply extends _0x279071(){['id'];[_0x5e7551(0xce)];[_0x5e7551(0xf8)];[_0x5e7551(0xc6)]=[];[_0x5e7551(0xde)]=new _0x28f557([]);[_0x5e7551(0x112)]=new _0x28f557([]);[_0x5e7551(0xc3)]=[];[_0x5e7551(0x10f)]=!0x1;[_0x5e7551(0x104)];[_0x5e7551(0x10d)];[_0x5e7551(0x110)];[_0x5e7551(0xd3)];[_0x5e7551(0xe1)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x342e1d,content:_0x57534d='',isDone:_0x5717fb=!0x1,interactionId:_0x35e3d4,areActionsDisabled:_0x56aa09,documentContextContent:_0xdab3ca,editor:_0x210c50,id:_0x101229}){const _0x15ca21=_0x5e7551;super(),this['id']=_0x101229||_0x356e3f(),this[_0x15ca21(0xce)]=_0x35e3d4,this[_0x15ca21(0xf8)]=_0x342e1d,this[_0x15ca21(0x10f)]=!!_0x56aa09,this[_0x15ca21(0xd3)]=_0x210c50,this[_0x15ca21(0x10d)]=new _0x2867d7(),this[_0x15ca21(0x110)]=new _0x56c59b(),this[_0x15ca21(0x104)]=_0x4327d0(_0xdab3ca||''),this[_0x15ca21(0x101)](_0x15ca21(0x10e),_0x5717fb),this['on'](_0x15ca21(0xd6),()=>{const _0x47fae3=_0x15ca21;this[_0x47fae3(0xcf)]();}),this[_0x15ca21(0x101)](_0x15ca21(0xe0),_0x57534d);}[_0x5e7551(0xf4)](_0x1416a3){const _0x523a17=_0x5e7551;this[_0x523a17(0x101)](_0x523a17(0xe0),this[_0x523a17(0xe0)]+_0x1416a3);}[_0x5e7551(0xec)](){const _0x5af217=_0x5e7551;this[_0x5af217(0x10e)]||(this[_0x5af217(0x101)](_0x5af217(0x10e),!0x0),this[_0x5af217(0xcf)]());}[_0x5e7551(0x107)](){const _0xfb4a53=_0x5e7551;this[_0xfb4a53(0xd1)]();}[_0x5e7551(0x109)](_0x34359b,_0x499e30){const _0x5a798b=_0x5e7551;this[_0x5a798b(0xc3)][_0x34359b][_0x5a798b(0xf1)]=_0x499e30,this[_0x5a798b(0xed)](_0x5a798b(0xc5),{'reply':this,'index':_0x34359b,'state':_0x499e30});}[_0x5e7551(0xfc)]({showDiff:_0x235107,groupIndex:_0x1a381f}){const _0x1494ea=_0x5e7551;if(!this[_0x1494ea(0xd3)])throw new _0x289899(_0x1494ea(0xe7),null,{'aiReply':this});const _0x174231=this[_0x1494ea(0x106)](_0x235107,_0x1a381f);if(_0x174231)return _0x174231;let _0x5acebb=[];if(void 0x0===_0x1a381f)_0x5acebb=this[_0x1494ea(0xc3)];else{const _0x4e1743=this[_0x1494ea(0xc3)][_0x1494ea(0xe4)](({index:_0x63d43a})=>_0x63d43a===_0x1a381f);if(!_0x4e1743)throw new _0x289899(_0x1494ea(0x113),null,{'aiReply':this,'groupIndex':_0x1a381f});_0x5acebb=[_0x4e1743];}const _0x4d57d5=_0x1fbec7({'editor':this[_0x1494ea(0xd3)],'showDiff':_0x235107,'changeGroups':_0x5acebb,'documentContextContent':this[_0x1494ea(0x104)]});return this[_0x1494ea(0xd5)](_0x235107,_0x4d57d5),_0x4d57d5;}[_0x5e7551(0x106)](_0x5e2c4e,_0x3f18fb){const _0x4979e9=_0x5e7551,_0x4e2dad=_0x5e2c4e?_0x4979e9(0xc4):_0x4979e9(0x10a);if(!this[_0x4979e9(0xe1)][_0x4e2dad][_0x4979e9(0xe8)])return null;const _0x23392f=this[_0x4979e9(0xe1)][_0x4e2dad];if(void 0x0===_0x3f18fb)return _0x42f3dd(_0x23392f);{const _0x13d085=_0x23392f[_0x4979e9(0xe4)](({index:_0x3224b3})=>_0x3224b3===_0x3f18fb);if(_0x13d085)return[_0x42f3dd(_0x13d085)];}return null;}[_0x5e7551(0xd5)](_0x30342b,_0xbaf8fd){const _0x1b6d49=_0x5e7551,_0x3700dc=_0x30342b?_0x1b6d49(0xc4):_0x1b6d49(0x10a);_0xbaf8fd[_0x1b6d49(0xca)](_0x14c11d=>{const _0x18ffcb=_0x1b6d49,_0x172753=this[_0x18ffcb(0xe1)][_0x3700dc],_0x472d66=_0x172753[_0x18ffcb(0xe4)](({index:_0x36ffd5})=>_0x36ffd5===_0x14c11d[_0x18ffcb(0x111)]);if(_0x472d66){const _0x202cb7=_0x172753[_0x18ffcb(0xcc)](_0x472d66);_0x172753[_0x18ffcb(0xd0)](_0x202cb7,0x1,_0x14c11d);}else _0x172753[_0x18ffcb(0xe5)](_0x14c11d);});}[_0x5e7551(0xcf)](){const _0x160d8b=_0x5e7551;if(_0x160d8b(0xfa)===this[_0x160d8b(0xf8)]){this[_0x160d8b(0xde)]=this[_0x160d8b(0x10d)][_0x160d8b(0x100)](this[_0x160d8b(0xe0)]);const _0x52860b=this[_0x160d8b(0xc3)];this[_0x160d8b(0xee)]();const _0xbfe301=this[_0x160d8b(0xe6)](_0x52860b,this[_0x160d8b(0xc3)]);(_0xbfe301[_0x160d8b(0xe8)]||this[_0x160d8b(0x10e)])&&(this[_0x160d8b(0xed)](_0x160d8b(0x10c),this,_0xbfe301),this[_0x160d8b(0xe1)][_0x160d8b(0xc4)][_0x160d8b(0xe8)]=this[_0x160d8b(0xe1)][_0x160d8b(0x10a)][_0x160d8b(0xe8)]=0x0);}else this[_0x160d8b(0xde)]=this[_0x160d8b(0x10d)][_0x160d8b(0xfb)](this[_0x160d8b(0xe0)]),this[_0x160d8b(0xed)](_0x160d8b(0x10c),this);}[_0x5e7551(0xe6)](_0x7bd7fc,_0x346ce5){const _0xda15e3=_0x5e7551,_0xe7d597=[];for(const _0x528a39 of _0x346ce5){const _0x4206ee=_0x7bd7fc[_0x528a39[_0xda15e3(0x111)]];_0x4206ee?_0x4206ee[_0xda15e3(0x103)][_0xda15e3(0xe8)]!==_0x528a39[_0xda15e3(0x103)][_0xda15e3(0xe8)]?_0xe7d597[_0xda15e3(0xe5)](_0x528a39):_0x4206ee[_0xda15e3(0x103)][_0xda15e3(0xca)]((_0x4a12e3,_0xc5d55b)=>{const _0x4bd378=_0xda15e3,_0x2159f5=_0x528a39[_0x4bd378(0x103)][_0xc5d55b];_0x4a12e3['id']!==_0x2159f5['id']&&_0xe7d597[_0x4bd378(0xe5)](_0x528a39);}):_0xe7d597[_0xda15e3(0xe5)](_0x528a39);}return _0xe7d597;}[_0x5e7551(0xee)](){const _0x5be3e6=_0x5e7551,_0x17390d=new _0x3ebb89('p',{},[new _0x3ebb89(_0x5be3e6(0xc0),{'style':_0x5be3e6(0xdc)},[new _0x2b5435(_0x450fcc(this[_0x5be3e6(0xd3)][_0x5be3e6(0xf3)],_0x5be3e6(0xc1)))])]),_0x1aadf1=this[_0x5be3e6(0x110)][_0x5be3e6(0xfd)](this[_0x5be3e6(0xde)],this[_0x5be3e6(0x104)][_0x5be3e6(0xe3)](!0x0),{'markUnstableElements':!this[_0x5be3e6(0x10e)],'replaceRemovedWith':_0x17390d,'cutAfterLastChange':!this[_0x5be3e6(0x10e)]});if(!_0x1aadf1[_0x5be3e6(0xe9)][_0x5be3e6(0xe8)]&&!this[_0x5be3e6(0x10e)])return;this[_0x5be3e6(0x112)]=_0x1aadf1[_0x5be3e6(0xde)];let _0x3dee4b=[];if(_0x4844cf(_0x5d7f4b=>{const _0x423dea=_0x5be3e6,_0x427045=_0x36a9d9(_0x5d7f4b,_0x423dea(0xf2));if(!_0x427045||!_0x36821d(_0x427045))return!0x1;const _0x2a7ee2=[_0x5d7f4b,..._0xcbfd56(_0x5d7f4b)]['at'](-0x2);if(_0x5d7f4b!=_0x2a7ee2){const _0x5bc9e7=_0x36a9d9(_0x2a7ee2,_0x423dea(0xf2));_0x36821d(_0x5bc9e7)||(_0x3dee4b[_0x423dea(0xe5)]({'node':_0x2a7ee2,'id':_0x5bc9e7,'type':_0x423dea(0xd7)}),_0x1aadf1[_0x423dea(0xe9)][_0x423dea(0xe5)](_0x5bc9e7));}else _0x1aadf1[_0x423dea(0xe9)][_0x423dea(0xcd)](_0x427045)?_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xd7),'id':_0x427045}):_0x1aadf1[_0x423dea(0x117)][_0x423dea(0xcd)](_0x427045)?_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xea),'id':_0x427045,'anchorId':_0x36a9d9(_0x5d7f4b[_0x423dea(0xcb)],_0x423dea(0xf2))}):_0x3dee4b[_0x423dea(0xe5)]({'node':_0x5d7f4b,'type':_0x423dea(0xe2),'id':_0x427045});return!0x0;},this[_0x5be3e6(0x112)]),_0x3dee4b=_0x3dee4b[_0x5be3e6(0xf6)](({node:_0xadaf25})=>[..._0xcbfd56(_0xadaf25),_0xadaf25][_0x5be3e6(0x102)](_0x2e0045=>!_0x36a9d9(_0x2e0045,_0x5be3e6(0xf9)))),0x0==_0x3dee4b[_0x5be3e6(0xe8)])return;const _0x9de8ee=[[_0x3dee4b[0x0]]];for(let _0xf4ed83=0x1;_0xf4ed83<_0x3dee4b[_0x5be3e6(0xe8)];_0xf4ed83++){const _0x47fd35=_0x9de8ee[_0x9de8ee[_0x5be3e6(0xe8)]-0x1],_0x374f1c=_0x47fd35[_0x47fd35[_0x5be3e6(0xe8)]-0x1];_0x3dee4b[_0xf4ed83][_0x5be3e6(0xc8)][_0x5be3e6(0xcb)]==_0x374f1c[_0x5be3e6(0xc8)]&&_0x5be3e6(0xd7)!=_0x3dee4b[_0xf4ed83][_0x5be3e6(0xf8)]&&_0x5be3e6(0xd7)!=_0x374f1c[_0x5be3e6(0xf8)]?_0x47fd35[_0x5be3e6(0xe5)](_0x3dee4b[_0xf4ed83]):_0x9de8ee[_0x5be3e6(0xe5)]([_0x3dee4b[_0xf4ed83]]);}for(const _0xcb5ea5 of _0x9de8ee){const _0x233ca4=_0xcb5ea5[0x0],_0x10eed5=_0xcb5ea5[_0xcb5ea5[_0x5be3e6(0xe8)]-0x1],_0x33c8d1=_0x149927(_0x233ca4[_0x5be3e6(0xc8)][_0x5be3e6(0xcb)]);_0x33c8d1&&_0xcb5ea5[_0x5be3e6(0x105)](_0x33c8d1);const _0x13b32c=_0x149927(_0x10eed5[_0x5be3e6(0xc8)][_0x5be3e6(0xc9)]);_0x13b32c&&_0xcb5ea5[_0x5be3e6(0xe5)](_0x13b32c);}function _0x36821d(_0x59f6e3){const _0x223088=_0x5be3e6;return _0x1aadf1[_0x223088(0xe9)][_0x223088(0xcd)](_0x59f6e3)||_0x1aadf1[_0x223088(0x117)][_0x223088(0xcd)](_0x59f6e3)||_0x1aadf1[_0x223088(0xf5)][_0x223088(0xcd)](_0x59f6e3);}function _0x149927(_0x31d548){const _0x2847d1=_0x5be3e6;if(_0x31d548&&_0x36a9d9(_0x31d548,_0x2847d1(0xf2))&&!_0x36a9d9(_0x31d548,_0x2847d1(0xf9))){const _0x5569bf=_0x36a9d9(_0x31d548,_0x2847d1(0xf2));if(!_0x36821d(_0x5569bf))return{'node':_0x31d548,'type':_0x2847d1(0xd9),'id':_0x5569bf};}return null;}this[_0x5be3e6(0xc3)]=_0x9de8ee[_0x5be3e6(0x114)]((_0x3a7ed3,_0x50af4a)=>({'changes':_0x3a7ed3,'state':_0x5be3e6(0xdf),'index':_0x50af4a}));}}export function isValidReplyType(_0x41995){const _0x70ec6d=_0x5e7551;return Object[_0x70ec6d(0xd2)](AI_REPLY_TYPES)[_0x70ec6d(0xcd)](_0x41995);}export function isIgnoredReplyType(_0x36802f){const _0x4d542c=_0x5e7551;return AI_REPLY_TYPES_IGNORED[_0x4d542c(0xcd)](_0x36802f);}export function isReplyTitleType(_0x55bcfc){return _0x55bcfc===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2148c9){const _0x4bc581=_0x5e7551;return _0x4bc581(0xd8)===_0x2148c9;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1cd5(){const _0x319143=['325346zmmLjG','includes','cloneNode','removedIds','_findReferenceNode','reverse','markUnstableElementsDepth','markUnstableElements','_isExistingContentComment','_findFallbackReferenceNode','match','_getNodeDataId','_generateUid','_existingDataIds','_isDelNode','afterend','_replaceNode','_findPrevElementWithDataId','_isNewNode','splice','trim','39lVGPhj','_markLastTagElementUnstable','13880cPmqCo','length','_markUnstableElements','_isExistingNode','push','modifiedIds','nextSibling','9CzmUBi','parentNode','from','childNodes','1839050bHxsVI','_markWrappedElements','907086HZTxkD','previousSibling','afterbegin','newIds','20548UBzrQm','data-removed','_findNextElementWithDataId','replaceRemovedWith','_insertNodes','slice','has','invalidIds','_removeSpecialComments','merge','_hasWrappedParent','data-unstable','342728AIXPDZ','beforebegin','473kUapSG','_touchedNodesState','filter','_storeDeletedElementIds','cutAfterLastChange','data-id','lastTouchedId','map','nodeType','true','_getUid','forEach','data-wrapped-id','lastChild','266IHsIML','1490bycqir','indexOf','new-element'];_0x1cd5=function(){return _0x319143;};return _0x1cd5();}const _0x23b2a7=_0xd60a;(function(_0xbf430,_0x36dae6){const _0x1a2106=_0xd60a,_0x4b9c36=_0xbf430();while(!![]){try{const _0x3e9b82=parseInt(_0x1a2106(0xa1))/0x1*(-parseInt(_0x1a2106(0xaf))/0x2)+parseInt(_0x1a2106(0xc8))/0x3*(-parseInt(_0x1a2106(0xca))/0x4)+parseInt(_0x1a2106(0xd5))/0x5+parseInt(_0x1a2106(0xd7))/0x6+parseInt(_0x1a2106(0xb3))/0x7+-parseInt(_0x1a2106(0x9f))/0x8*(-parseInt(_0x1a2106(0xd1))/0x9)+parseInt(_0x1a2106(0xb0))/0xa*(-parseInt(_0x1a2106(0xdb))/0xb);if(_0x3e9b82===_0x36dae6)break;else _0x4b9c36['push'](_0x4b9c36['shift']());}catch(_0x331877){_0x4b9c36['push'](_0x4b9c36['shift']());}}}(_0x1cd5,0x36307));function _0xd60a(_0x32917f,_0x117d56){const _0x1cd554=_0x1cd5();return _0xd60a=function(_0xd60a83,_0x212319){_0xd60a83=_0xd60a83-0x9b;let _0x539943=_0x1cd554[_0xd60a83];return _0x539943;},_0xd60a(_0x32917f,_0x117d56);}import{ObservableMixin as _0x5904cc,uid as _0x43b7a7}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x167d91,findByAttribute as _0x2228d3,getAttribute as _0x763f7c,isComment as _0x5213e8,isTag as _0x4c8672,insertElement as _0x104e5b,moveElement as _0x3c07c0,removeElement as _0x5e35c3,replaceElement as _0x4d8fac,serialize as _0x2eb762,setAttribute as _0x5973bf,clone as _0xeca4e5,findAllComments as _0x332c21,getParents as _0x53ca22,getNodeNestingLevel as _0x5c81e5,areNodesSame as _0x23cfe4,removeElementsAfter as _0x3a21fe}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x5904cc(){[_0x23b2a7(0xbf)];[_0x23b2a7(0xa2)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x23b2a7(0xc0)]=new Set();constructor(_0x3c9cb1){const _0x2ad837=_0x23b2a7;super(),this[_0x2ad837(0xbf)]=_0x3c9cb1||_0x43b7a7;}[_0x23b2a7(0x9c)](_0x5a6ceb,_0x3b6091,_0x29add6){const _0x231824=_0x23b2a7,_0xac5076=_0xeca4e5(_0x5a6ceb);if(0x0===_0x3b6091[_0x231824(0xd4)][_0x231824(0xcb)]){const _0x73e739=[];return _0x167d91(_0x231824(0xa6),_0x231824(0xb2),_0xac5076)[_0x231824(0xac)](_0x40fbd9=>{const _0x3c3d93=_0x231824,_0x33d8bc=this[_0x3c3d93(0xbf)]();_0x5973bf(_0x40fbd9,_0x3c3d93(0xa6),_0x33d8bc),_0x73e739[_0x3c3d93(0xce)](_0x33d8bc);}),this[_0x231824(0x9b)](_0xac5076),{'parsedContent':_0xac5076,'newNodeIds':_0x73e739,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x29add6&&_0x29add6[_0x231824(0xba)]&&this[_0x231824(0xc9)](_0xac5076),this[_0x231824(0xa2)][_0x231824(0xda)]=[],this[_0x231824(0xa2)][_0x231824(0xcf)]=[],this[_0x231824(0xa2)][_0x231824(0xb6)]=[],this[_0x231824(0xa2)][_0x231824(0xe2)]=[],this[_0x231824(0xa2)][_0x231824(0xa7)]=null,this[_0x231824(0xc0)]=new Set(_0x167d91(_0x231824(0xa6),null,_0x3b6091)[_0x231824(0xa8)](_0x2d1c95=>_0x763f7c(_0x2d1c95,_0x231824(0xa6)))[_0x231824(0xa3)](_0x5118e8=>!!_0x5118e8));let _0x45c394=-0x1,_0x31a661=!0x1;const _0x13b0f8=_0xac5076[_0x231824(0xd4)],_0x5d1ce9=Array[_0x231824(0xd3)](_0x13b0f8)[_0x231824(0xa3)](_0x21987c=>!(0x3===_0x21987c[_0x231824(0xa9)]&&''===_0x2eb762(_0x21987c)[_0x231824(0xc7)]())),_0x1640b3=_0x5d1ce9[_0x231824(0xcb)];for(let _0x1d3eb5=0x0;_0x1d3eb5<_0x1640b3;_0x1d3eb5++){const _0x16dcc4=_0x5d1ce9[_0x1d3eb5],_0x3a84aa=_0x5d1ce9[_0x1d3eb5+0x1];if(this[_0x231824(0xc5)](_0x16dcc4)){if(-0x1===_0x45c394&&(_0x45c394=_0x1d3eb5),this[_0x231824(0xd6)](_0x16dcc4),!this[_0x231824(0xc5)](_0x3a84aa)){const [_0x447b96,_0x4b78fb]=this[_0x231824(0xb7)](_0x16dcc4,_0x31a661,_0x3b6091);if(_0x447b96){const _0x222a65=Array[_0x231824(0xd3)](_0x5d1ce9)[_0x231824(0xe0)](_0x45c394,_0x1d3eb5+0x1);this[_0x231824(0xdf)](_0x447b96,_0x222a65,_0x4b78fb),_0x45c394=-0x1;}}}else{if(this[_0x231824(0xbb)](_0x16dcc4))_0x31a661=!0x0;else{if(this[_0x231824(0xcd)](_0x16dcc4)){const _0x226afe=_0x763f7c(_0x16dcc4,_0x231824(0xa6));if(_0x226afe&&this[_0x231824(0xc0)][_0x231824(0xe1)](_0x226afe)){const _0x362e60=_0x2228d3(_0x231824(0xa6),_0x226afe,_0x3b6091);this[_0x231824(0xc3)](_0x362e60,_0x16dcc4);}if(this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xb4)](_0x226afe)){const _0x603bd3=this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xb1)](_0x226afe);this[_0x231824(0xa2)][_0x231824(0xb6)][_0x231824(0xc6)](_0x603bd3,0x1);}}else{if(this[_0x231824(0xc1)](_0x16dcc4)){const _0x15ade2=_0x763f7c(_0x16dcc4,_0x231824(0xa6));this[_0x231824(0xa2)][_0x231824(0xcf)][_0x231824(0xb4)](_0x15ade2)||this[_0x231824(0xa4)](_0x16dcc4);}}}}}for(const _0x178c13 of this[_0x231824(0xa2)][_0x231824(0xb6)]){const _0x13a341=_0x2228d3(_0x231824(0xa6),_0x178c13,_0x3b6091);if(_0x13a341){if(_0x29add6&&_0x29add6[_0x231824(0xde)]){this[_0x231824(0xa2)][_0x231824(0xa7)]=_0x178c13;const _0x2fbcea=_0x29add6[_0x231824(0xde)][_0x231824(0xb5)](!0x0);_0x5973bf(_0x2fbcea,_0x231824(0xa6),_0x178c13),_0x5973bf(_0x2fbcea,_0x231824(0xdc),_0x231824(0xaa)),_0x4d8fac(_0x13a341,_0x2fbcea);}else _0x5e35c3(_0x13a341);}}if(_0x167d91(_0x231824(0xad),null,_0x3b6091)[_0x231824(0xac)](_0x11b96=>{const _0x56b2cd=_0x231824,_0x5f018f=_0x763f7c(_0x11b96,_0x56b2cd(0xad)),_0x25e9b0=_0x2228d3(_0x56b2cd(0xa6),_0x5f018f,_0x3b6091);_0x25e9b0&&_0x3c07c0(_0x25e9b0,_0x11b96);}),_0x167d91(_0x231824(0xa6),_0x231824(0xb2),_0x3b6091)[_0x231824(0xac)](_0x201830=>{const _0x2b6f43=_0x231824,_0x4a0de5=this[_0x2b6f43(0xab)](_0x201830);_0x5973bf(_0x201830,_0x2b6f43(0xa6),_0x4a0de5),this[_0x2b6f43(0xa2)][_0x2b6f43(0xda)][_0x2b6f43(0xce)](_0x4a0de5);}),this[_0x231824(0x9b)](_0x3b6091),_0x29add6&&_0x29add6[_0x231824(0xba)]&&this[_0x231824(0xcc)](_0x3b6091,_0x29add6[_0x231824(0xb9)]||0x0),_0x29add6&&_0x29add6[_0x231824(0xa5)]&&this[_0x231824(0xa2)][_0x231824(0xa7)]){let _0x5b352f=_0x2228d3(_0x231824(0xa6),this[_0x231824(0xa2)][_0x231824(0xa7)],_0x3b6091);for(;_0x5b352f;)_0x3a21fe(_0x5b352f),_0x5b352f=_0x5b352f[_0x231824(0xd2)];}return{'parsedContent':_0x3b6091,'newNodeIds':this[_0x231824(0xa2)][_0x231824(0xda)],'modifiedNodeIds':this[_0x231824(0xa2)][_0x231824(0xcf)],'removedNodeIds':this[_0x231824(0xa2)][_0x231824(0xb6)]};}[_0x23b2a7(0xdf)](_0x45a6dd,_0x4cec01,_0x19deb6){const _0x1e5059=_0x23b2a7;for(const _0x1d9031 of _0x4cec01){const _0x17d061=this[_0x1e5059(0xab)](_0x1d9031);_0x5973bf(_0x1d9031,_0x1e5059(0xa6),_0x17d061),this[_0x1e5059(0xa2)][_0x1e5059(0xda)][_0x1e5059(0xce)](_0x17d061),this[_0x1e5059(0xa2)][_0x1e5059(0xa7)]=_0x17d061;}const _0x3f02f1=_0x1e5059(0xd9)===_0x19deb6||_0x1e5059(0xc2)===_0x19deb6?_0x4cec01[_0x1e5059(0xb8)]():_0x4cec01;for(const _0x3c0580 of _0x3f02f1)_0x104e5b(_0x45a6dd,_0x3c0580,_0x19deb6);}[_0x23b2a7(0xc3)](_0x240003,_0x7340c){const _0x3dd180=_0x23b2a7;if(!_0x240003)return;if(_0x23cfe4(_0x240003,_0x7340c))return;const _0x1ecc98=this[_0x3dd180(0xab)](_0x240003);_0x5973bf(_0x7340c,_0x3dd180(0xa6),_0x1ecc98),this[_0x3dd180(0xa2)][_0x3dd180(0xcf)][_0x3dd180(0xce)](_0x1ecc98),this[_0x3dd180(0xa2)][_0x3dd180(0xa7)]=_0x1ecc98,_0x4d8fac(_0x240003,_0x7340c[_0x3dd180(0xb5)](!0x0));}[_0x23b2a7(0xb7)](_0x49b6ad,_0x306974,_0x1f61ba){const _0x39c6c6=_0x23b2a7,_0x37fe97=this[_0x39c6c6(0xc4)](_0x49b6ad,!0x1);if(_0x37fe97){const _0x58cb58=this[_0x39c6c6(0xbe)](_0x37fe97),_0x4a6348=_0x2228d3(_0x39c6c6(0xa6),_0x58cb58,_0x1f61ba);if(_0x4a6348)return[_0x4a6348,_0x39c6c6(0xc2)];this[_0x39c6c6(0xa2)][_0x39c6c6(0xe2)][_0x39c6c6(0xce)](_0x58cb58);}const _0x463f6f=this[_0x39c6c6(0xdd)](_0x49b6ad,!0x1);if(_0x463f6f){const _0x230cd3=this[_0x39c6c6(0xbe)](_0x463f6f),_0x5381d5=_0x2228d3(_0x39c6c6(0xa6),_0x230cd3,_0x1f61ba);if(_0x5381d5)return[_0x5381d5,_0x39c6c6(0xa0)];this[_0x39c6c6(0xa2)][_0x39c6c6(0xe2)][_0x39c6c6(0xce)](_0x230cd3);}return _0x306974?_0x49b6ad[_0x39c6c6(0xd0)]?this[_0x39c6c6(0xbc)](_0x49b6ad,_0x1f61ba):[_0x1f61ba[_0x39c6c6(0xd4)][_0x1f61ba[_0x39c6c6(0xd4)][_0x39c6c6(0xcb)]-0x1],_0x39c6c6(0xc2)]:[_0x1f61ba[_0x39c6c6(0xd4)][0x0],_0x39c6c6(0xa0)];}[_0x23b2a7(0xbc)](_0x321fcf,_0x376d31){const _0x3ca22f=_0x23b2a7,_0x17e18e=[],_0x1b0f5f=this[_0x3ca22f(0xc4)](_0x321fcf,!0x0);if(_0x1b0f5f){const _0x321e9b=this[_0x3ca22f(0xbe)](_0x1b0f5f),_0x4b26b4=_0x2228d3(_0x3ca22f(0xa6),_0x321e9b,_0x376d31);_0x4b26b4&&_0x17e18e[_0x3ca22f(0xce)]([_0x4b26b4,_0x3ca22f(0xc2)]);}const _0x29c84f=this[_0x3ca22f(0xdd)](_0x321fcf,!0x0);if(_0x29c84f){const _0x5f4699=this[_0x3ca22f(0xbe)](_0x29c84f),_0x2a3511=_0x2228d3(_0x3ca22f(0xa6),_0x5f4699,_0x376d31);_0x2a3511&&_0x17e18e[_0x3ca22f(0xce)]([_0x2a3511,_0x3ca22f(0xa0)]);}if(_0x17e18e[_0x3ca22f(0xcb)]>0x1)return _0x5c81e5(_0x17e18e[0x0][0x0])<=_0x5c81e5(_0x17e18e[0x1][0x0])?_0x17e18e[0x0]:_0x17e18e[0x1];return 0x1===_0x17e18e[_0x3ca22f(0xcb)]?_0x17e18e[0x0]:[_0x376d31[_0x3ca22f(0xae)],_0x3ca22f(0xc2)];}[_0x23b2a7(0xdd)](_0x2857c7,_0x415662){const _0x19feb5=_0x23b2a7;let _0xc01d6a=_0x2857c7[_0x19feb5(0xd0)],_0x432a61=null,_0x386ac8=!0x1;for(;_0xc01d6a;){if(_0x5213e8(_0xc01d6a)){if(this[_0x19feb5(0xc1)](_0xc01d6a)&&(_0x432a61=_0xc01d6a),this[_0x19feb5(0xbb)](_0xc01d6a)&&_0x415662&&!_0x386ac8){_0x386ac8=!0x0,_0xc01d6a=_0xc01d6a[_0x19feb5(0xd0)];continue;}break;}const _0x447750=_0x763f7c(_0xc01d6a,_0x19feb5(0xa6));if(_0x447750&&_0x19feb5(0xb2)!==_0x447750&&this[_0x19feb5(0xc0)][_0x19feb5(0xe1)](_0x447750)){_0x432a61=_0xc01d6a;break;}_0xc01d6a=_0xc01d6a[_0x19feb5(0xd0)];}return _0x432a61;}[_0x23b2a7(0xc4)](_0x2a4892,_0x248fcc){const _0x68826c=_0x23b2a7;let _0x3c68c2=_0x2a4892[_0x68826c(0xd8)],_0x282b60=null,_0x4c58ba=!0x1;for(;_0x3c68c2;){if(_0x5213e8(_0x3c68c2)){if(this[_0x68826c(0xc1)](_0x3c68c2)&&(_0x282b60=_0x3c68c2),this[_0x68826c(0xbb)](_0x3c68c2)&&_0x248fcc&&!_0x4c58ba){_0x4c58ba=!0x0,_0x3c68c2=_0x3c68c2[_0x68826c(0xd8)];continue;}break;}const _0x252ca9=_0x763f7c(_0x3c68c2,_0x68826c(0xa6));if(_0x252ca9&&_0x68826c(0xb2)!==_0x252ca9&&this[_0x68826c(0xc0)][_0x68826c(0xe1)](_0x252ca9)){_0x282b60=_0x3c68c2;break;}_0x3c68c2=_0x3c68c2[_0x68826c(0xd8)];}return _0x282b60;}[_0x23b2a7(0xd6)](_0x5c2f60){const _0x47dcd9=_0x23b2a7;_0x4c8672(_0x5c2f60)&&_0x167d91(_0x47dcd9(0xa6),null,_0x5c2f60)[_0x47dcd9(0xac)](_0x524188=>{const _0x453744=_0x47dcd9;if(this[_0x453744(0xcd)](_0x524188)&&!this[_0x453744(0x9d)](_0x524188)){const _0x34c32a=_0x763f7c(_0x524188,_0x453744(0xa6));_0x5973bf(_0x524188,_0x453744(0xad),_0x34c32a),_0x5973bf(_0x524188,_0x453744(0xa6),null);}});}[_0x23b2a7(0xbe)](_0x52464b){const _0x483c73=_0x23b2a7;if(!_0x52464b)return null;if(_0x4c8672(_0x52464b))return _0x763f7c(_0x52464b,_0x483c73(0xa6));if(_0x5213e8(_0x52464b)){const _0x4df64a=_0x2eb762(_0x52464b)[_0x483c73(0xbd)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4df64a&&_0x4df64a[0x1])return _0x4df64a[0x1];}return null;}[_0x23b2a7(0xa4)](_0x7f728){const _0x3b2c17=_0x23b2a7;if(_0x5213e8(_0x7f728)){const _0xd0b858=_0x2eb762(_0x7f728)[_0x3b2c17(0xbd)](/removed[\s*-]data-id="([^"]+)"/);_0xd0b858&&_0xd0b858[0x1]&&this[_0x3b2c17(0xa2)][_0x3b2c17(0xb6)][_0x3b2c17(0xce)](_0xd0b858[0x1]);}}[_0x23b2a7(0xab)](_0x140b41){const _0x463372=_0x23b2a7;return this[_0x463372(0xcd)](_0x140b41)?_0x763f7c(_0x140b41,_0x463372(0xa6)):this[_0x463372(0xbf)]();}[_0x23b2a7(0x9b)](_0x4ec918){const _0x236747=_0x23b2a7;_0x332c21(_0x4ec918)[_0x236747(0xa3)](_0x438505=>this[_0x236747(0xc1)](_0x438505)||this[_0x236747(0xbb)](_0x438505))[_0x236747(0xac)](_0x1bfed3=>{_0x5e35c3(_0x1bfed3);});}[_0x23b2a7(0xc9)](_0x9f29ce){const _0x14b02b=_0x23b2a7,_0xc6556=_0x9f29ce[_0x14b02b(0xd4)],_0x12643d=_0xc6556[_0xc6556[_0x14b02b(0xcb)]-0x1];_0x12643d&&_0x4c8672(_0x12643d)&&_0x5973bf(_0x12643d,_0x14b02b(0x9e),_0x14b02b(0xaa));}[_0x23b2a7(0xcc)](_0x9a20b8,_0x4c47cf){const _0x58288e=_0x23b2a7,_0x1bfbcd=_0x2228d3(_0x58288e(0x9e),_0x58288e(0xaa),_0x9a20b8);if(!_0x1bfbcd)return;const _0x2d0f10=_0x53ca22(_0x1bfbcd)[_0x58288e(0xe0)](0x0,-0x1),_0x3dcf5c=_0x2d0f10[_0x58288e(0xcb)];let _0x2de42f=_0x1bfbcd;if(_0x3dcf5c>_0x4c47cf){let _0x408c13=_0x3dcf5c,_0x2c4111=null;for(;_0x408c13>_0x4c47cf&&_0x408c13>=0x0;)_0x408c13--,_0x2c4111=_0x2d0f10[_0x408c13];_0x2c4111&&(_0x2de42f=_0x2c4111,_0x5973bf(_0x1bfbcd,_0x58288e(0x9e),null),_0x5973bf(_0x2c4111,_0x58288e(0x9e),_0x58288e(0xaa)));}else{if(_0x3dcf5c<_0x4c47cf){let _0x157ad4=_0x3dcf5c,_0x168918=_0x1bfbcd;for(;_0x157ad4<_0x4c47cf;){const _0x500866=_0x168918[_0x58288e(0xd4)][_0x58288e(0xa3)](_0x56af42=>_0x4c8672(_0x56af42));if(0x0===_0x500866[_0x58288e(0xcb)])break;_0x157ad4++,_0x168918=_0x500866[_0x500866[_0x58288e(0xcb)]-0x1];}_0x168918&&(_0x2de42f=_0x168918,_0x5973bf(_0x1bfbcd,_0x58288e(0x9e),null),_0x5973bf(_0x168918,_0x58288e(0x9e),_0x58288e(0xaa)));}}let _0x1d714e=_0x2de42f;for(;_0x1d714e;){for(;_0x1d714e[_0x58288e(0xd0)];)_0x1d714e=_0x1d714e[_0x58288e(0xd0)],_0x4c8672(_0x1d714e)&&_0x5973bf(_0x1d714e,_0x58288e(0x9e),_0x58288e(0xaa));_0x1d714e=_0x1d714e[_0x58288e(0xd2)];}}[_0x23b2a7(0xc5)](_0xc15ddf){const _0x4ab81a=_0x23b2a7;return Boolean(_0x4ab81a(0xb2)===_0x763f7c(_0xc15ddf,_0x4ab81a(0xa6)));}[_0x23b2a7(0xcd)](_0x2cf684){const _0x38df7d=_0x23b2a7;return Boolean((_0x763f7c(_0x2cf684,_0x38df7d(0xa6))||'')[_0x38df7d(0xcb)]>0x0&&_0x38df7d(0xb2)!==_0x763f7c(_0x2cf684,_0x38df7d(0xa6)));}[_0x23b2a7(0xc1)](_0x265be4){const _0x3a816c=_0x23b2a7;return!!_0x265be4&&Boolean(_0x5213e8(_0x265be4)&&_0x2eb762(_0x265be4)[_0x3a816c(0xbd)](/removed[\s*-]data-id="[^"]+"/));}[_0x23b2a7(0x9d)](_0xc451e2){const _0x47b016=_0x23b2a7;let _0xc4b5ce=_0xc451e2[_0x47b016(0xd2)];for(;_0xc4b5ce;){if(_0x763f7c(_0xc4b5ce,_0x47b016(0xad)))return!0x0;_0xc4b5ce=_0xc4b5ce[_0x47b016(0xd2)];}return!0x1;}[_0x23b2a7(0xbb)](_0x283bdf){const _0x144749=_0x23b2a7;return Boolean(_0x5213e8(_0x283bdf)&&_0x2eb762(_0x283bdf)[_0x144749(0xbd)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x25d577=_0xecb3;(function(_0x470840,_0x11f769){const _0x80e6a1=_0xecb3,_0x3f4fb3=_0x470840();while(!![]){try{const _0x499ea1=parseInt(_0x80e6a1(0x16c))/0x1+-parseInt(_0x80e6a1(0x185))/0x2+parseInt(_0x80e6a1(0x19f))/0x3*(-parseInt(_0x80e6a1(0x16b))/0x4)+parseInt(_0x80e6a1(0x176))/0x5*(-parseInt(_0x80e6a1(0x195))/0x6)+parseInt(_0x80e6a1(0x16d))/0x7+parseInt(_0x80e6a1(0x178))/0x8*(-parseInt(_0x80e6a1(0x19c))/0x9)+parseInt(_0x80e6a1(0x1ab))/0xa;if(_0x499ea1===_0x11f769)break;else _0x3f4fb3['push'](_0x3f4fb3['shift']());}catch(_0xde9972){_0x3f4fb3['push'](_0x3f4fb3['shift']());}}}(_0x5836,0x43cc6));import{ObservableMixin as _0x2848d3,uid as _0x58c476}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x28ba00,findByAttribute as _0x131e57,getAttribute as _0x3ab8e2,isComment as _0x5d5995,isTag as _0x3a37b2,insertElement as _0x26809c,moveElement as _0x2e2f26,removeElement as _0x300672,replaceElement as _0x188caf,serialize as _0x2aa58a,setAttribute as _0xd7441b,clone as _0x3c9757,findAllComments as _0x33b714,getParents as _0x5b927a,getNodeNestingLevel as _0x350728,areNodesSame as _0x12af87,removeElementsAfter as _0x5ecd77}from'../utils/htmlparser.js';function _0xecb3(_0x482ab2,_0x57282e){const _0x58366a=_0x5836();return _0xecb3=function(_0xecb300,_0x21240f){_0xecb300=_0xecb300-0x167;let _0x10c2ad=_0x58366a[_0xecb300];return _0x10c2ad;},_0xecb3(_0x482ab2,_0x57282e);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x2848d3(){[_0x25d577(0x184)];[_0x25d577(0x1ac)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x25d577(0x1a7)]=new Set();constructor(_0x5f1d22){const _0x1a0686=_0x25d577;super(),this[_0x1a0686(0x184)]=_0x5f1d22||_0x58c476;}[_0x25d577(0x16e)](_0x40e140,_0x515053,_0x197efa){const _0x2a5eea=_0x25d577,_0xe4796a=_0x3c9757(_0x40e140);if(0x0===_0x515053[_0x2a5eea(0x199)][_0x2a5eea(0x18a)]){const _0x41dd58=[];return _0x28ba00(_0x2a5eea(0x194),_0x2a5eea(0x173),_0xe4796a)[_0x2a5eea(0x19e)](_0x10ae9c=>{const _0x2cca50=_0x2a5eea,_0x57f62a=this[_0x2cca50(0x184)]();_0xd7441b(_0x10ae9c,_0x2cca50(0x194),_0x57f62a),_0x41dd58[_0x2cca50(0x18d)](_0x57f62a);}),this[_0x2a5eea(0x186)](_0xe4796a),{'parsedContent':_0xe4796a,'newNodeIds':_0x41dd58,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x197efa&&_0x197efa[_0x2a5eea(0x1a0)]&&this[_0x2a5eea(0x1a3)](_0xe4796a),this[_0x2a5eea(0x1ac)][_0x2a5eea(0x167)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x181)]=[],this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]=null,this[_0x2a5eea(0x1a7)]=new Set(_0x28ba00(_0x2a5eea(0x194),null,_0x515053)[_0x2a5eea(0x174)](_0x47865c=>_0x3ab8e2(_0x47865c,_0x2a5eea(0x194)))[_0x2a5eea(0x180)](_0x4dc8d9=>!!_0x4dc8d9));let _0x4261bb=-0x1,_0x1287cf=!0x1;const _0x3894ca=_0xe4796a[_0x2a5eea(0x199)],_0x3f9d2b=Array[_0x2a5eea(0x179)](_0x3894ca)[_0x2a5eea(0x180)](_0x1607e3=>!(0x3===_0x1607e3[_0x2a5eea(0x16a)]&&''===_0x2aa58a(_0x1607e3)[_0x2a5eea(0x188)]())),_0x45487c=_0x3f9d2b[_0x2a5eea(0x18a)];for(let _0x5f19b1=0x0;_0x5f19b1<_0x45487c;_0x5f19b1++){const _0x3c3e52=_0x3f9d2b[_0x5f19b1],_0x17bf18=_0x3f9d2b[_0x5f19b1+0x1];if(this[_0x2a5eea(0x177)](_0x3c3e52)){if(-0x1===_0x4261bb&&(_0x4261bb=_0x5f19b1),this[_0x2a5eea(0x18b)](_0x3c3e52),!this[_0x2a5eea(0x177)](_0x17bf18)){const [_0x5fbbc0,_0x4fb4a3]=this[_0x2a5eea(0x192)](_0x3c3e52,_0x1287cf,_0x515053);if(_0x5fbbc0){const _0x24d6d9=Array[_0x2a5eea(0x179)](_0x3f9d2b)[_0x2a5eea(0x19b)](_0x4261bb,_0x5f19b1+0x1);this[_0x2a5eea(0x17d)](_0x5fbbc0,_0x24d6d9,_0x4fb4a3),_0x4261bb=-0x1;}}}else{if(this[_0x2a5eea(0x1a9)](_0x3c3e52))_0x1287cf=!0x0;else{if(this[_0x2a5eea(0x175)](_0x3c3e52)){const _0x231fa5=_0x3ab8e2(_0x3c3e52,_0x2a5eea(0x194));if(_0x231fa5&&this[_0x2a5eea(0x1a7)][_0x2a5eea(0x183)](_0x231fa5)){const _0x1b0198=_0x131e57(_0x2a5eea(0x194),_0x231fa5,_0x515053);this[_0x2a5eea(0x1a4)](_0x1b0198,_0x3c3e52);}if(this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x18e)](_0x231fa5)){const _0x2c5aa0=this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x1a5)](_0x231fa5);this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)][_0x2a5eea(0x17f)](_0x2c5aa0,0x1);}}else{if(this[_0x2a5eea(0x187)](_0x3c3e52)){const _0x3d502e=_0x3ab8e2(_0x3c3e52,_0x2a5eea(0x194));this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)][_0x2a5eea(0x18e)](_0x3d502e)||this[_0x2a5eea(0x171)](_0x3c3e52);}}}}}for(const _0x2d2ad2 of this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]){const _0x4f50e8=_0x131e57(_0x2a5eea(0x194),_0x2d2ad2,_0x515053);if(_0x4f50e8){if(_0x197efa&&_0x197efa[_0x2a5eea(0x1a6)]){this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]=_0x2d2ad2;const _0x182847=_0x197efa[_0x2a5eea(0x1a6)][_0x2a5eea(0x169)](!0x0);_0xd7441b(_0x182847,_0x2a5eea(0x194),_0x2d2ad2),_0xd7441b(_0x182847,_0x2a5eea(0x189),_0x2a5eea(0x19d)),_0x188caf(_0x4f50e8,_0x182847);}else _0x300672(_0x4f50e8);}}if(_0x28ba00(_0x2a5eea(0x1a1),null,_0x515053)[_0x2a5eea(0x19e)](_0x30a92e=>{const _0x2b4c0c=_0x2a5eea,_0x4f56ab=_0x3ab8e2(_0x30a92e,_0x2b4c0c(0x1a1)),_0x57610e=_0x131e57(_0x2b4c0c(0x194),_0x4f56ab,_0x515053);_0x57610e&&_0x2e2f26(_0x57610e,_0x30a92e);}),_0x28ba00(_0x2a5eea(0x194),_0x2a5eea(0x173),_0x515053)[_0x2a5eea(0x19e)](_0x215ca6=>{const _0xb2f08e=_0x2a5eea,_0x4781bb=this[_0xb2f08e(0x190)](_0x215ca6);_0xd7441b(_0x215ca6,_0xb2f08e(0x194),_0x4781bb),this[_0xb2f08e(0x1ac)][_0xb2f08e(0x167)][_0xb2f08e(0x18d)](_0x4781bb);}),this[_0x2a5eea(0x186)](_0x515053),_0x197efa&&_0x197efa[_0x2a5eea(0x1a0)]&&this[_0x2a5eea(0x196)](_0x515053,_0x197efa[_0x2a5eea(0x1aa)]||0x0),_0x197efa&&_0x197efa[_0x2a5eea(0x17b)]&&this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)]){let _0x28e744=_0x131e57(_0x2a5eea(0x194),this[_0x2a5eea(0x1ac)][_0x2a5eea(0x17c)],_0x515053);for(;_0x28e744;)_0x5ecd77(_0x28e744),_0x28e744=_0x28e744[_0x2a5eea(0x18c)];}return{'parsedContent':_0x515053,'newNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x167)],'modifiedNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x1a8)],'removedNodeIds':this[_0x2a5eea(0x1ac)][_0x2a5eea(0x172)]};}[_0x25d577(0x17d)](_0xc9da7f,_0x4b2771,_0x4021a1){const _0x5c1d46=_0x25d577;for(const _0x1a0743 of _0x4b2771){const _0xbed29b=this[_0x5c1d46(0x190)](_0x1a0743);_0xd7441b(_0x1a0743,_0x5c1d46(0x194),_0xbed29b),this[_0x5c1d46(0x1ac)][_0x5c1d46(0x167)][_0x5c1d46(0x18d)](_0xbed29b),this[_0x5c1d46(0x1ac)][_0x5c1d46(0x17c)]=_0xbed29b;}const _0x3b68da=_0x5c1d46(0x193)===_0x4021a1||_0x5c1d46(0x191)===_0x4021a1?_0x4b2771[_0x5c1d46(0x18f)]():_0x4b2771;for(const _0x1514cc of _0x3b68da)_0x26809c(_0xc9da7f,_0x1514cc,_0x4021a1);}[_0x25d577(0x1a4)](_0x4d5c46,_0x30c573){const _0x11774e=_0x25d577;if(!_0x4d5c46)return;if(_0x12af87(_0x4d5c46,_0x30c573))return;const _0x239d68=this[_0x11774e(0x190)](_0x4d5c46);_0xd7441b(_0x30c573,_0x11774e(0x194),_0x239d68),this[_0x11774e(0x1ac)][_0x11774e(0x1a8)][_0x11774e(0x18d)](_0x239d68),this[_0x11774e(0x1ac)][_0x11774e(0x17c)]=_0x239d68,_0x188caf(_0x4d5c46,_0x30c573[_0x11774e(0x169)](!0x0));}[_0x25d577(0x192)](_0x3adac4,_0x404f3b,_0x462124){const _0x27fca7=_0x25d577,_0x4da100=this[_0x27fca7(0x1a2)](_0x3adac4,!0x1);if(_0x4da100){const _0x434af3=this[_0x27fca7(0x17a)](_0x4da100),_0x1fa0b3=_0x131e57(_0x27fca7(0x194),_0x434af3,_0x462124);if(_0x1fa0b3)return[_0x1fa0b3,_0x27fca7(0x191)];this[_0x27fca7(0x1ac)][_0x27fca7(0x181)][_0x27fca7(0x18d)](_0x434af3);}const _0x5ed11b=this[_0x27fca7(0x16f)](_0x3adac4,!0x1);if(_0x5ed11b){const _0xfbae7d=this[_0x27fca7(0x17a)](_0x5ed11b),_0x12a708=_0x131e57(_0x27fca7(0x194),_0xfbae7d,_0x462124);if(_0x12a708)return[_0x12a708,_0x27fca7(0x1ad)];this[_0x27fca7(0x1ac)][_0x27fca7(0x181)][_0x27fca7(0x18d)](_0xfbae7d);}return _0x404f3b?_0x3adac4[_0x27fca7(0x17e)]?this[_0x27fca7(0x197)](_0x3adac4,_0x462124):[_0x462124[_0x27fca7(0x199)][_0x462124[_0x27fca7(0x199)][_0x27fca7(0x18a)]-0x1],_0x27fca7(0x191)]:[_0x462124[_0x27fca7(0x199)][0x0],_0x27fca7(0x1ad)];}[_0x25d577(0x197)](_0x227d96,_0x4e710f){const _0x599c9d=_0x25d577,_0x4ea07a=[],_0x1cbabf=this[_0x599c9d(0x1a2)](_0x227d96,!0x0);if(_0x1cbabf){const _0x306c10=this[_0x599c9d(0x17a)](_0x1cbabf),_0x4ea925=_0x131e57(_0x599c9d(0x194),_0x306c10,_0x4e710f);_0x4ea925&&_0x4ea07a[_0x599c9d(0x18d)]([_0x4ea925,_0x599c9d(0x191)]);}const _0x326255=this[_0x599c9d(0x16f)](_0x227d96,!0x0);if(_0x326255){const _0x136850=this[_0x599c9d(0x17a)](_0x326255),_0x3b02b1=_0x131e57(_0x599c9d(0x194),_0x136850,_0x4e710f);_0x3b02b1&&_0x4ea07a[_0x599c9d(0x18d)]([_0x3b02b1,_0x599c9d(0x1ad)]);}if(_0x4ea07a[_0x599c9d(0x18a)]>0x1)return _0x350728(_0x4ea07a[0x0][0x0])<=_0x350728(_0x4ea07a[0x1][0x0])?_0x4ea07a[0x0]:_0x4ea07a[0x1];return 0x1===_0x4ea07a[_0x599c9d(0x18a)]?_0x4ea07a[0x0]:[_0x4e710f[_0x599c9d(0x19a)],_0x599c9d(0x191)];}[_0x25d577(0x16f)](_0x31299c,_0x157f19){const _0x360397=_0x25d577;let _0x408340=_0x31299c[_0x360397(0x17e)],_0x5d91d1=null,_0x59035a=!0x1;for(;_0x408340;){if(_0x5d5995(_0x408340)){if(this[_0x360397(0x187)](_0x408340)&&(_0x5d91d1=_0x408340),this[_0x360397(0x1a9)](_0x408340)&&_0x157f19&&!_0x59035a){_0x59035a=!0x0,_0x408340=_0x408340[_0x360397(0x17e)];continue;}break;}const _0x1a8b5a=_0x3ab8e2(_0x408340,_0x360397(0x194));if(_0x1a8b5a&&_0x360397(0x173)!==_0x1a8b5a&&this[_0x360397(0x1a7)][_0x360397(0x183)](_0x1a8b5a)){_0x5d91d1=_0x408340;break;}_0x408340=_0x408340[_0x360397(0x17e)];}return _0x5d91d1;}[_0x25d577(0x1a2)](_0x223afc,_0x706229){const _0xadb78c=_0x25d577;let _0x4dba38=_0x223afc[_0xadb78c(0x198)],_0x369f1b=null,_0x5d4edd=!0x1;for(;_0x4dba38;){if(_0x5d5995(_0x4dba38)){if(this[_0xadb78c(0x187)](_0x4dba38)&&(_0x369f1b=_0x4dba38),this[_0xadb78c(0x1a9)](_0x4dba38)&&_0x706229&&!_0x5d4edd){_0x5d4edd=!0x0,_0x4dba38=_0x4dba38[_0xadb78c(0x198)];continue;}break;}const _0x3ed9d9=_0x3ab8e2(_0x4dba38,_0xadb78c(0x194));if(_0x3ed9d9&&_0xadb78c(0x173)!==_0x3ed9d9&&this[_0xadb78c(0x1a7)][_0xadb78c(0x183)](_0x3ed9d9)){_0x369f1b=_0x4dba38;break;}_0x4dba38=_0x4dba38[_0xadb78c(0x198)];}return _0x369f1b;}[_0x25d577(0x18b)](_0x10dd7e){const _0xa402ae=_0x25d577;_0x3a37b2(_0x10dd7e)&&_0x28ba00(_0xa402ae(0x194),null,_0x10dd7e)[_0xa402ae(0x19e)](_0x4856ae=>{const _0x6678e6=_0xa402ae;if(this[_0x6678e6(0x175)](_0x4856ae)&&!this[_0x6678e6(0x170)](_0x4856ae)){const _0x2ef549=_0x3ab8e2(_0x4856ae,_0x6678e6(0x194));_0xd7441b(_0x4856ae,_0x6678e6(0x1a1),_0x2ef549),_0xd7441b(_0x4856ae,_0x6678e6(0x194),null);}});}[_0x25d577(0x17a)](_0x3388cc){const _0x3d4e90=_0x25d577;if(!_0x3388cc)return null;if(_0x3a37b2(_0x3388cc))return _0x3ab8e2(_0x3388cc,_0x3d4e90(0x194));if(_0x5d5995(_0x3388cc)){const _0x3fff7e=_0x2aa58a(_0x3388cc)[_0x3d4e90(0x182)](/removed[\s*-]data-id="([^"]+)"/);if(_0x3fff7e&&_0x3fff7e[0x1])return _0x3fff7e[0x1];}return null;}[_0x25d577(0x171)](_0x3acbd0){const _0x40d45b=_0x25d577;if(_0x5d5995(_0x3acbd0)){const _0x292215=_0x2aa58a(_0x3acbd0)[_0x40d45b(0x182)](/removed[\s*-]data-id="([^"]+)"/);_0x292215&&_0x292215[0x1]&&this[_0x40d45b(0x1ac)][_0x40d45b(0x172)][_0x40d45b(0x18d)](_0x292215[0x1]);}}[_0x25d577(0x190)](_0x503d69){const _0x3af5db=_0x25d577;return this[_0x3af5db(0x175)](_0x503d69)?_0x3ab8e2(_0x503d69,_0x3af5db(0x194)):this[_0x3af5db(0x184)]();}[_0x25d577(0x186)](_0x2e3448){const _0x3fd6f8=_0x25d577;_0x33b714(_0x2e3448)[_0x3fd6f8(0x180)](_0x475a24=>this[_0x3fd6f8(0x187)](_0x475a24)||this[_0x3fd6f8(0x1a9)](_0x475a24))[_0x3fd6f8(0x19e)](_0x1e70a4=>{_0x300672(_0x1e70a4);});}[_0x25d577(0x1a3)](_0x15a09c){const _0xcc20ab=_0x25d577,_0x2a6bd8=_0x15a09c[_0xcc20ab(0x199)],_0x4923c1=_0x2a6bd8[_0x2a6bd8[_0xcc20ab(0x18a)]-0x1];_0x4923c1&&_0x3a37b2(_0x4923c1)&&_0xd7441b(_0x4923c1,_0xcc20ab(0x168),_0xcc20ab(0x19d));}[_0x25d577(0x196)](_0x197164,_0x13a0ca){const _0x436aa8=_0x25d577,_0x3776bf=_0x131e57(_0x436aa8(0x168),_0x436aa8(0x19d),_0x197164);if(!_0x3776bf)return;const _0x5445cf=_0x5b927a(_0x3776bf)[_0x436aa8(0x19b)](0x0,-0x1),_0xd3fffb=_0x5445cf[_0x436aa8(0x18a)];let _0x182f23=_0x3776bf;if(_0xd3fffb>_0x13a0ca){let _0x56e485=_0xd3fffb,_0x386ad8=null;for(;_0x56e485>_0x13a0ca&&_0x56e485>=0x0;)_0x56e485--,_0x386ad8=_0x5445cf[_0x56e485];_0x386ad8&&(_0x182f23=_0x386ad8,_0xd7441b(_0x3776bf,_0x436aa8(0x168),null),_0xd7441b(_0x386ad8,_0x436aa8(0x168),_0x436aa8(0x19d)));}else{if(_0xd3fffb<_0x13a0ca){let _0x4b60b4=_0xd3fffb,_0xfe47cb=_0x3776bf;for(;_0x4b60b4<_0x13a0ca;){const _0x4253ea=_0xfe47cb[_0x436aa8(0x199)][_0x436aa8(0x180)](_0x453e6b=>_0x3a37b2(_0x453e6b));if(0x0===_0x4253ea[_0x436aa8(0x18a)])break;_0x4b60b4++,_0xfe47cb=_0x4253ea[_0x4253ea[_0x436aa8(0x18a)]-0x1];}_0xfe47cb&&(_0x182f23=_0xfe47cb,_0xd7441b(_0x3776bf,_0x436aa8(0x168),null),_0xd7441b(_0xfe47cb,_0x436aa8(0x168),_0x436aa8(0x19d)));}}let _0x1c6a2c=_0x182f23;for(;_0x1c6a2c;){for(;_0x1c6a2c[_0x436aa8(0x17e)];)_0x1c6a2c=_0x1c6a2c[_0x436aa8(0x17e)],_0x3a37b2(_0x1c6a2c)&&_0xd7441b(_0x1c6a2c,_0x436aa8(0x168),_0x436aa8(0x19d));_0x1c6a2c=_0x1c6a2c[_0x436aa8(0x18c)];}}[_0x25d577(0x177)](_0x1692f8){const _0x4d443e=_0x25d577;return Boolean(_0x4d443e(0x173)===_0x3ab8e2(_0x1692f8,_0x4d443e(0x194)));}[_0x25d577(0x175)](_0x54100f){const _0x18d0a8=_0x25d577;return Boolean((_0x3ab8e2(_0x54100f,_0x18d0a8(0x194))||'')[_0x18d0a8(0x18a)]>0x0&&_0x18d0a8(0x173)!==_0x3ab8e2(_0x54100f,_0x18d0a8(0x194)));}[_0x25d577(0x187)](_0x24daf8){const _0x5eefe8=_0x25d577;return!!_0x24daf8&&Boolean(_0x5d5995(_0x24daf8)&&_0x2aa58a(_0x24daf8)[_0x5eefe8(0x182)](/removed[\s*-]data-id="[^"]+"/));}[_0x25d577(0x170)](_0x3007b8){const _0x2298cb=_0x25d577;let _0x30575f=_0x3007b8[_0x2298cb(0x18c)];for(;_0x30575f;){if(_0x3ab8e2(_0x30575f,_0x2298cb(0x1a1)))return!0x0;_0x30575f=_0x30575f[_0x2298cb(0x18c)];}return!0x1;}[_0x25d577(0x1a9)](_0x4feb7d){const _0x29c4ef=_0x25d577;return Boolean(_0x5d5995(_0x4feb7d)&&_0x2aa58a(_0x4feb7d)[_0x29c4ef(0x182)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x5836(){const _0x5801bc=['_isExistingContentComment','markUnstableElementsDepth','9020270UTLLyT','_touchedNodesState','beforebegin','newIds','data-unstable','cloneNode','nodeType','4VKAiYP','514634uDMaYe','877170CIIhGs','merge','_findNextElementWithDataId','_hasWrappedParent','_storeDeletedElementIds','removedIds','new-element','map','_isExistingNode','450oyrFxe','_isNewNode','5528ADmWLj','from','_getNodeDataId','cutAfterLastChange','lastTouchedId','_insertNodes','nextSibling','splice','filter','invalidIds','match','has','_generateUid','539680JhqRiS','_removeSpecialComments','_isDelNode','trim','data-removed','length','_markWrappedElements','parentNode','push','includes','reverse','_getUid','afterend','_findReferenceNode','afterbegin','data-id','15738rvcfzl','_markUnstableElements','_findFallbackReferenceNode','previousSibling','childNodes','lastChild','slice','4554SATSaw','true','forEach','1226139ombPNn','markUnstableElements','data-wrapped-id','_findPrevElementWithDataId','_markLastTagElementUnstable','_replaceNode','indexOf','replaceRemovedWith','_existingDataIds','modifiedIds'];_0x5836=function(){return _0x5801bc;};return _0x5836();}