@ckeditor/ckeditor5-ai 47.3.0-alpha.6 → 47.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichathistory/aichathistory.js +1 -1
  212. package/src/aichathistory/aichathistorycontroller.js +1 -1
  213. package/src/aichathistory/aichathistoryui.js +1 -1
  214. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  215. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  216. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  217. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  220. package/src/aicore/aiconnector.js +1 -1
  221. package/src/aicore/aiediting.js +1 -1
  222. package/src/aicore/model/aicapabilities.js +1 -1
  223. package/src/aicore/model/aicontext.js +1 -1
  224. package/src/aicore/model/aiinteraction.js +1 -1
  225. package/src/aicore/model/aimodels.js +1 -1
  226. package/src/aicore/model/aireply.js +1 -1
  227. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  228. package/src/aicore/pipeline/airesponseparser.js +2 -2
  229. package/src/aicore/ui/aidisclaimerview.js +1 -1
  230. package/src/aicore/ui/aiskeleton.js +1 -1
  231. package/src/aicore/ui/aispinner.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  237. package/src/aicore/utils/common-translations.js +1 -1
  238. package/src/aicore/utils/createresizebutton.js +1 -1
  239. package/src/aicore/utils/documentposition.js +1 -1
  240. package/src/aicore/utils/documentrange.js +1 -1
  241. package/src/aicore/utils/eventnames.js +1 -1
  242. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  243. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  244. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  245. package/src/aicore/utils/htmlparser.js +1 -1
  246. package/src/aicore/utils/htmlstreamer.js +1 -1
  247. package/src/aicore/utils/scrollmanager.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  259. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  260. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  261. package/src/aireviewmode/aireviewmode.js +1 -1
  262. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  263. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  264. package/src/aireviewmode/aireviewmodeui.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  267. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  272. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  273. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  286. package/src/aitabs/aitabs.js +1 -1
  287. package/src/aitabs/aitabsmainview.js +1 -1
  288. package/src/aitabs/tabs/aitabsview.js +1 -1
  289. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  290. package/src/aitabs/tabs/tabpanelview.js +1 -1
  291. package/src/errors.js +1 -1
  292. package/src/errorsmap.js +1 -1
  293. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3972de=_0x4bf5;(function(_0x4e9753,_0x2bfb85){const _0x524fce=_0x4bf5,_0x3ba9bd=_0x4e9753();while(!![]){try{const _0x5f4848=parseInt(_0x524fce(0x18f))/0x1*(-parseInt(_0x524fce(0x13c))/0x2)+-parseInt(_0x524fce(0x18b))/0x3+parseInt(_0x524fce(0x175))/0x4*(-parseInt(_0x524fce(0x142))/0x5)+-parseInt(_0x524fce(0x18c))/0x6*(-parseInt(_0x524fce(0x17b))/0x7)+-parseInt(_0x524fce(0x16a))/0x8+parseInt(_0x524fce(0x14b))/0x9+parseInt(_0x524fce(0x18e))/0xa;if(_0x5f4848===_0x2bfb85)break;else _0x3ba9bd['push'](_0x3ba9bd['shift']());}catch(_0x195ca1){_0x3ba9bd['push'](_0x3ba9bd['shift']());}}}(_0x5445,0x31f02));import{View as _0x12bf48,SearchTextView as _0x4d159d,FormHeaderView as _0x479f24,ButtonView as _0x4b5178}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x22e61b,IconCancel as _0x98a183,IconPlus as _0x4e7861}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1ceff2}from'./aichathistorysectionlistview.js';function _0x5445(){const _0x537788=['getItem','ck-ai-notification_error','_createErrorView','_createListItemViews','value','hasItems','ck-ai-chat-history','setTemplate','isSearchViewVisible','ck-ai-chat-history__empty-message','indexOf','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','isEmptyViewVisible','emptyView','aiHistory','extendTemplate','_createSearchView','ck-hidden','some','length','change:hasItems','render','clear','isMainErrorViewVisible','fieldView','AI_CHAT_HISTORY_EMPTY_MESSAGE','title','element','1959016lRqvsP','itemsViews','isMaximized','locale','mainErrorView','ck-rounded-corners','isLoading','delegate','search','skeletonView','ck-ai-chat-history__content','49792BfNlHg','div','updateHistoryItemsWithCategories','items','AI_CHAT_HISTORY_SEARCH_LABEL','isVisible','2236073yiNvGH','sections','addMany','push','_updateViewVisibility','removeItem','resizeButton','children','add','bind','removeHistoryItem','ck-ai-chat__start-conversation','bindTemplate','sectionsView','change:errorMessage','ck-ai-notification_error__dismiss-button','753981OBjPfY','6NQkuSo','AI_CHAT_LABEL_NEW_CHAT','3839440VWgSQG','162082ESSQtm','splice','ltr','ck-reset_all','searchView','updateLoadingState','errorMessage','fire','ck-ai-header\x20ck-ai-header_history','updateItemTitle','2zkZcDO','remove','queryView','updateTitle','_createEmptyStateView','ck-ai-notification','5EMhNTK','updateItemLoadingState','set','openChat','change:isLoading','execute','_refreshSearch','_createSkeletonView','AI_CHAT_HISTORY_HEADING','1547073IhpEUA','ck-ai-chat-history__empty'];_0x5445=function(){return _0x537788;};return _0x5445();}import{AIChatHistoryListView as _0x4d47e4}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x25c398}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3fe154}from'../aichathistoryui.js';import{AISkeletonView as _0x30f564,SKELETON_DEFINITIONS as _0x2a73b5}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x109480}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x1f6c3f}from'../../aicore/utils/common-translations.js';function _0x4bf5(_0x399076,_0x3f951b){const _0x54455c=_0x5445();return _0x4bf5=function(_0x4bf5ed,_0x1196f3){_0x4bf5ed=_0x4bf5ed-0x13a;let _0x1c44a1=_0x54455c[_0x4bf5ed];return _0x1c44a1;},_0x4bf5(_0x399076,_0x3f951b);}export class AIChatHistoryView extends _0x12bf48{[_0x3972de(0x193)];[_0x3972de(0x16e)];[_0x3972de(0x173)];[_0x3972de(0x15b)];[_0x3972de(0x188)];[_0x3972de(0x181)];constructor(_0x3d91e6,_0x4bf575){const _0x22cbd1=_0x3972de;super(_0x3d91e6),this[_0x22cbd1(0x144)](_0x22cbd1(0x152),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x170),!0x0),this[_0x22cbd1(0x144)](_0x22cbd1(0x195),''),this[_0x22cbd1(0x144)](_0x22cbd1(0x16c),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x155),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x15a),!0x1),this[_0x22cbd1(0x144)](_0x22cbd1(0x165),!0x1);const _0x4e374f=new _0x479f24(_0x3d91e6,{'label':_0x1f6c3f(_0x3d91e6,_0x22cbd1(0x14a)),'icon':_0x22e61b,'class':_0x22cbd1(0x13a)});_0x4bf575&&(this[_0x22cbd1(0x181)]=_0x109480(_0x3d91e6,this),_0x4e374f[_0x22cbd1(0x182)][_0x22cbd1(0x183)](this[_0x22cbd1(0x181)])),this[_0x22cbd1(0x188)]=new _0x1ceff2(_0x3d91e6,[]),this[_0x22cbd1(0x188)][_0x22cbd1(0x171)](..._0x3fe154)['to'](this),this[_0x22cbd1(0x16e)]=this[_0x22cbd1(0x14f)](),this[_0x22cbd1(0x173)]=this[_0x22cbd1(0x149)](),this[_0x22cbd1(0x15b)]=this[_0x22cbd1(0x140)](),this[_0x22cbd1(0x193)]=this[_0x22cbd1(0x15e)](),this[_0x22cbd1(0x16e)][_0x22cbd1(0x15d)]({'attributes':{'class':[this[_0x22cbd1(0x187)]['if'](_0x22cbd1(0x165),_0x22cbd1(0x15f),_0x244f7=>!_0x244f7)]}}),this['on'](_0x22cbd1(0x146),()=>this[_0x22cbd1(0x17f)]()),this['on'](_0x22cbd1(0x162),()=>this[_0x22cbd1(0x17f)]()),this['on'](_0x22cbd1(0x189),()=>this[_0x22cbd1(0x17f)]()),this[_0x22cbd1(0x154)]({'tag':_0x22cbd1(0x176),'attributes':{'class':['ck',_0x22cbd1(0x192),_0x22cbd1(0x153),_0x22cbd1(0x16f)],'dir':_0x22cbd1(0x191)},'children':[_0x4e374f,{'tag':_0x22cbd1(0x176),'attributes':{'class':[_0x22cbd1(0x174)]},'children':[this[_0x22cbd1(0x173)],this[_0x22cbd1(0x16e)],this[_0x22cbd1(0x15b)],this[_0x22cbd1(0x193)]]}]});}[_0x3972de(0x17f)](){const _0x356da5=_0x3972de;this[_0x356da5(0x155)]=!this[_0x356da5(0x170)]&&this[_0x356da5(0x152)],this[_0x356da5(0x15a)]=!this[_0x356da5(0x170)]&&!this[_0x356da5(0x152)]&&!this[_0x356da5(0x195)],this[_0x356da5(0x165)]=!this[_0x356da5(0x155)]&&!!this[_0x356da5(0x195)];}[_0x3972de(0x15e)](){const _0x15db51=_0x3972de,_0x2aab55=new _0x4d159d(this[_0x15db51(0x16d)],{'filteredView':this[_0x15db51(0x188)],'queryView':{'label':_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x179))},'infoView':{'text':{'notFound':{'primary':_0x307ea8=>_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x159),_0x307ea8),'secondary':_0x1f6c3f(this[_0x15db51(0x16d)],_0x15db51(0x158))}}}}),_0x528c46=this[_0x15db51(0x14f)]();return _0x528c46[_0x15db51(0x15d)]({'attributes':{'class':[this[_0x15db51(0x187)]['if'](_0x15db51(0x195),_0x15db51(0x15f),_0x5861d1=>!_0x5861d1)]}}),_0x2aab55['on'](_0x15db51(0x163),()=>{const _0x49e5c8=_0x15db51;_0x2aab55[_0x49e5c8(0x182)][_0x49e5c8(0x183)](_0x528c46,0x1);}),_0x2aab55[_0x15db51(0x15d)]({'attributes':{'class':[this[_0x15db51(0x187)]['if'](_0x15db51(0x155),_0x15db51(0x15f),_0x4b183d=>!_0x4b183d)]}}),_0x2aab55;}[_0x3972de(0x149)](){const _0x372312=_0x3972de,_0x3ddd3b=new _0x30f564(this[_0x372312(0x16d)],_0x2a73b5[_0x372312(0x15c)]);return _0x3ddd3b[_0x372312(0x15d)]({'attributes':{'class':[this[_0x372312(0x187)]['if'](_0x372312(0x170),_0x372312(0x15f),_0xa27b8a=>!_0xa27b8a)]}}),_0x3ddd3b;}[_0x3972de(0x14f)](){const _0x4a7e37=_0x3972de,_0x1d2a38=new _0x12bf48(this[_0x4a7e37(0x16d)]),_0x231f44=new _0x4b5178(this[_0x4a7e37(0x16d)]);_0x231f44[_0x4a7e37(0x144)]({'withText':!0x1,'icon':_0x98a183,'class':_0x4a7e37(0x18a)}),_0x231f44[_0x4a7e37(0x184)](_0x4a7e37(0x17a))['to'](this,_0x4a7e37(0x152),_0x4bcb0c=>!!_0x4bcb0c),_0x231f44['on'](_0x4a7e37(0x147),()=>{const _0x62a522=_0x4a7e37;this[_0x62a522(0x195)]='';});const _0x3fdbb1=this[_0x4a7e37(0x187)];return _0x1d2a38[_0x4a7e37(0x154)]({'tag':_0x4a7e37(0x176),'attributes':{'class':['ck',_0x4a7e37(0x141),_0x4a7e37(0x14e)]},'children':[{'tag':'p','children':[{'text':_0x3fdbb1['to'](_0x4a7e37(0x195))}]},_0x231f44]}),_0x1d2a38;}[_0x3972de(0x140)](){const _0x566593=_0x3972de,_0x12fceb=new _0x4b5178(this[_0x566593(0x16d)]);_0x12fceb[_0x566593(0x144)]({'label':_0x1f6c3f(this[_0x566593(0x16d)],_0x566593(0x18d)),'withText':!0x0,'icon':_0x4e7861,'class':_0x566593(0x186)}),_0x12fceb['on'](_0x566593(0x147),()=>{const _0x82bc85=_0x566593;this[_0x82bc85(0x196)](_0x82bc85(0x145));});const _0x2d0ed7=new _0x12bf48(this[_0x566593(0x16d)]);return _0x2d0ed7[_0x566593(0x154)]({'tag':_0x566593(0x176),'attributes':{'class':[_0x566593(0x14c),this[_0x566593(0x187)]['if'](_0x566593(0x15a),_0x566593(0x15f),_0x4de4c2=>!_0x4de4c2)]},'children':[{'tag':'p','attributes':{'class':[_0x566593(0x156)]},'children':[_0x1f6c3f(this[_0x566593(0x16d)],_0x566593(0x167))]},_0x12fceb]}),_0x2d0ed7;}[_0x3972de(0x150)](_0x36835a,_0x3a1dc5){const _0x36fc43=_0x3972de,_0x39cfb6=[];for(const _0x1d0f92 of _0x36835a){const _0x2e1f73=new _0x25c398(_0x3a1dc5,_0x1d0f92);_0x2e1f73[_0x36fc43(0x171)](..._0x3fe154)['to'](this),_0x39cfb6[_0x36fc43(0x17e)](_0x2e1f73);}return _0x39cfb6;}[_0x3972de(0x177)](_0x66abf3){const _0x518804=_0x3972de,_0x4b7fc0=this[_0x518804(0x16d)]||'en',_0x4df23f=[];for(const _0xef9989 of _0x66abf3){const _0x1b8567=this[_0x518804(0x150)](_0xef9989[_0x518804(0x178)],_0x4b7fc0);_0x4df23f[_0x518804(0x17e)](new _0x4d47e4(_0x4b7fc0,{'title':_0xef9989[_0x518804(0x168)],'items':_0x1b8567}));}this[_0x518804(0x188)][_0x518804(0x17c)]=_0x4df23f,this[_0x518804(0x188)][_0x518804(0x178)][_0x518804(0x164)](),this[_0x518804(0x188)][_0x518804(0x178)][_0x518804(0x17d)](_0x4df23f),this[_0x518804(0x152)]=_0x66abf3[_0x518804(0x160)](_0x4a0d0e=>_0x4a0d0e[_0x518804(0x178)][_0x518804(0x161)]>0x0),this[_0x518804(0x148)]();}[_0x3972de(0x185)](_0x45eef7){const _0x20142=_0x3972de;for(const _0xe05290 of this[_0x20142(0x188)][_0x20142(0x17c)]){const _0x12a8d5=_0xe05290[_0x20142(0x14d)](_0x45eef7);if(_0x12a8d5){if(_0xe05290[_0x20142(0x180)](_0x12a8d5),0x0===_0xe05290[_0x20142(0x16b)][_0x20142(0x161)]){const _0x1bf83f=this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x157)](_0xe05290);-0x1!==_0x1bf83f&&(this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x190)](_0x1bf83f,0x1),this[_0x20142(0x188)][_0x20142(0x178)][_0x20142(0x13d)](_0xe05290));}this[_0x20142(0x152)]=this[_0x20142(0x188)][_0x20142(0x17c)][_0x20142(0x161)]>0x0,this[_0x20142(0x148)]();break;}}}[_0x3972de(0x13b)](_0x1a92a4,_0x5c0a1b){const _0x283669=_0x3972de;for(const _0x2bd30c of this[_0x283669(0x188)][_0x283669(0x17c)]){const _0x18cf67=_0x2bd30c[_0x283669(0x14d)](_0x1a92a4);if(_0x18cf67){_0x18cf67[_0x283669(0x13f)](_0x5c0a1b);break;}}}[_0x3972de(0x143)](_0x375549,_0x1af5fa,_0x6c873){const _0x522461=_0x3972de;for(const _0x3ce9ab of this[_0x522461(0x188)][_0x522461(0x17c)]){const _0x12b79f=_0x3ce9ab[_0x522461(0x14d)](_0x375549);if(_0x12b79f){_0x12b79f[_0x522461(0x194)](_0x1af5fa,_0x6c873);break;}}}[_0x3972de(0x148)](){const _0x9d9cb8=_0x3972de;if(this[_0x9d9cb8(0x152)]){const _0x221d7e=this[_0x9d9cb8(0x193)][_0x9d9cb8(0x13e)][_0x9d9cb8(0x166)]?.[_0x9d9cb8(0x169)]?.[_0x9d9cb8(0x151)]||'';this[_0x9d9cb8(0x193)][_0x9d9cb8(0x172)](_0x221d7e);}}}
23
+ const _0x50edfe=_0x9784;(function(_0x311b7d,_0x67f1b5){const _0x3405c9=_0x9784,_0x2274d5=_0x311b7d();while(!![]){try{const _0x438304=parseInt(_0x3405c9(0x12b))/0x1+-parseInt(_0x3405c9(0xf6))/0x2*(parseInt(_0x3405c9(0xd6))/0x3)+-parseInt(_0x3405c9(0xfe))/0x4+parseInt(_0x3405c9(0x10a))/0x5+parseInt(_0x3405c9(0xf0))/0x6+parseInt(_0x3405c9(0xe6))/0x7+-parseInt(_0x3405c9(0x129))/0x8;if(_0x438304===_0x67f1b5)break;else _0x2274d5['push'](_0x2274d5['shift']());}catch(_0x4a6cfa){_0x2274d5['push'](_0x2274d5['shift']());}}}(_0x3f5c,0x3df50));import{View as _0xafab8c,SearchTextView as _0x249824,FormHeaderView as _0x437b44,ButtonView as _0x5c39da}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x5845e8,IconCancel as _0x19b256,IconPlus as _0x47c923}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x54ad6a}from'./aichathistorysectionlistview.js';function _0x9784(_0xe5d084,_0x2f10a8){const _0x3f5c50=_0x3f5c();return _0x9784=function(_0x9784f3,_0xa93393){_0x9784f3=_0x9784f3-0xd6;let _0x5175e8=_0x3f5c50[_0x9784f3];return _0x5175e8;},_0x9784(_0xe5d084,_0x2f10a8);}import{AIChatHistoryListView as _0x5ec739}from'./aichathistorylistview.js';function _0x3f5c(){const _0x126ea0=['ck-ai-chat__start-conversation','ck-ai-notification_error','_createListItemViews','2428242botrBl','div','search','ck-ai-chat-history__empty','items','AI_CHAT_LABEL_NEW_CHAT','342014ezWTGZ','some','updateItemLoadingState','change:hasItems','isEmptyViewVisible','isMainErrorViewVisible','execute','_createEmptyStateView','335868mOUajj','emptyView','removeItem','change:isLoading','push','resizeButton','aiHistory','hasItems','ck-ai-chat-history','clear','delegate','updateItemTitle','12760NXaZhq','itemsViews','bind','set','searchView','queryView','change:errorMessage','updateHistoryItemsWithCategories','addMany','setTemplate','ck-ai-chat-history__content','sections','getItem','extendTemplate','openChat','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','remove','mainErrorView','errorMessage','add','ltr','ck-ai-notification','_updateViewVisibility','bindTemplate','AI_CHAT_HISTORY_EMPTY_MESSAGE','AI_CHAT_HISTORY_HEADING','_createSearchView','splice','_refreshSearch','indexOf','isSearchViewVisible','3536184lECdin','title','374150EwJLqb','sectionsView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createErrorView','render','updateLoadingState','3ZxzEoQ','ck-rounded-corners','value','length','element','fieldView','isVisible','ck-ai-header\x20ck-ai-header_history','AI_CHAT_HISTORY_SEARCH_LABEL','children','skeletonView','isLoading','isMaximized','ck-reset_all','_createSkeletonView','ck-ai-notification_error__dismiss-button','1185548HmSfIh','removeHistoryItem','locale','ck-ai-chat-history__empty-message','ck-hidden','fire','updateTitle'];_0x3f5c=function(){return _0x126ea0;};return _0x3f5c();}import{AIChatHistoryListItemView as _0x7d5635}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x540dfd}from'../aichathistoryui.js';import{AISkeletonView as _0x1a1686,SKELETON_DEFINITIONS as _0x2a0644}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0xb70860}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x387ca3}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0xafab8c{[_0x50edfe(0x10e)];[_0x50edfe(0x11b)];[_0x50edfe(0xe0)];[_0x50edfe(0xff)];[_0x50edfe(0x12c)];[_0x50edfe(0x103)];constructor(_0xb59193,_0x5bd662){const _0x2664f7=_0x50edfe;super(_0xb59193),this[_0x2664f7(0x10d)](_0x2664f7(0x105),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xe1),!0x0),this[_0x2664f7(0x10d)](_0x2664f7(0x11c),''),this[_0x2664f7(0x10d)](_0x2664f7(0xe2),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0x128),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xfa),!0x1),this[_0x2664f7(0x10d)](_0x2664f7(0xfb),!0x1);const _0xef6a34=new _0x437b44(_0xb59193,{'label':_0x387ca3(_0xb59193,_0x2664f7(0x123)),'icon':_0x5845e8,'class':_0x2664f7(0xdd)});_0x5bd662&&(this[_0x2664f7(0x103)]=_0xb70860(_0xb59193,this),_0xef6a34[_0x2664f7(0xdf)][_0x2664f7(0x11d)](this[_0x2664f7(0x103)])),this[_0x2664f7(0x12c)]=new _0x54ad6a(_0xb59193,[]),this[_0x2664f7(0x12c)][_0x2664f7(0x108)](..._0x540dfd)['to'](this),this[_0x2664f7(0x11b)]=this[_0x2664f7(0x12e)](),this[_0x2664f7(0xe0)]=this[_0x2664f7(0xe4)](),this[_0x2664f7(0xff)]=this[_0x2664f7(0xfd)](),this[_0x2664f7(0x10e)]=this[_0x2664f7(0x124)](),this[_0x2664f7(0x11b)][_0x2664f7(0x117)]({'attributes':{'class':[this[_0x2664f7(0x121)]['if'](_0x2664f7(0xfb),_0x2664f7(0xea),_0x1f1c31=>!_0x1f1c31)]}}),this['on'](_0x2664f7(0x101),()=>this[_0x2664f7(0x120)]()),this['on'](_0x2664f7(0xf9),()=>this[_0x2664f7(0x120)]()),this['on'](_0x2664f7(0x110),()=>this[_0x2664f7(0x120)]()),this[_0x2664f7(0x113)]({'tag':_0x2664f7(0xf1),'attributes':{'class':['ck',_0x2664f7(0xe3),_0x2664f7(0x106),_0x2664f7(0xd7)],'dir':_0x2664f7(0x11e)},'children':[_0xef6a34,{'tag':_0x2664f7(0xf1),'attributes':{'class':[_0x2664f7(0x114)]},'children':[this[_0x2664f7(0xe0)],this[_0x2664f7(0x11b)],this[_0x2664f7(0xff)],this[_0x2664f7(0x10e)]]}]});}[_0x50edfe(0x120)](){const _0x551781=_0x50edfe;this[_0x551781(0x128)]=!this[_0x551781(0xe1)]&&this[_0x551781(0x105)],this[_0x551781(0xfa)]=!this[_0x551781(0xe1)]&&!this[_0x551781(0x105)]&&!this[_0x551781(0x11c)],this[_0x551781(0xfb)]=!this[_0x551781(0x128)]&&!!this[_0x551781(0x11c)];}[_0x50edfe(0x124)](){const _0x3e12ce=_0x50edfe,_0x25bd33=new _0x249824(this[_0x3e12ce(0xe8)],{'filteredView':this[_0x3e12ce(0x12c)],'queryView':{'label':_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0xde))},'infoView':{'text':{'notFound':{'primary':_0x13484e=>_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0x12d),_0x13484e),'secondary':_0x387ca3(this[_0x3e12ce(0xe8)],_0x3e12ce(0x119))}}}}),_0x2c0221=this[_0x3e12ce(0x12e)]();return _0x2c0221[_0x3e12ce(0x117)]({'attributes':{'class':[this[_0x3e12ce(0x121)]['if'](_0x3e12ce(0x11c),_0x3e12ce(0xea),_0x1b9600=>!_0x1b9600)]}}),_0x25bd33['on'](_0x3e12ce(0x12f),()=>{const _0x2dabb6=_0x3e12ce;_0x25bd33[_0x2dabb6(0xdf)][_0x2dabb6(0x11d)](_0x2c0221,0x1);}),_0x25bd33[_0x3e12ce(0x117)]({'attributes':{'class':[this[_0x3e12ce(0x121)]['if'](_0x3e12ce(0x128),_0x3e12ce(0xea),_0x285577=>!_0x285577)]}}),_0x25bd33;}[_0x50edfe(0xe4)](){const _0x36af74=_0x50edfe,_0x11a4c3=new _0x1a1686(this[_0x36af74(0xe8)],_0x2a0644[_0x36af74(0x104)]);return _0x11a4c3[_0x36af74(0x117)]({'attributes':{'class':[this[_0x36af74(0x121)]['if'](_0x36af74(0xe1),_0x36af74(0xea),_0xb00286=>!_0xb00286)]}}),_0x11a4c3;}[_0x50edfe(0x12e)](){const _0x38a014=_0x50edfe,_0x3ca0c5=new _0xafab8c(this[_0x38a014(0xe8)]),_0x2bd653=new _0x5c39da(this[_0x38a014(0xe8)]);_0x2bd653[_0x38a014(0x10d)]({'withText':!0x1,'icon':_0x19b256,'class':_0x38a014(0xe5)}),_0x2bd653[_0x38a014(0x10c)](_0x38a014(0xdc))['to'](this,_0x38a014(0x105),_0x2d3fba=>!!_0x2d3fba),_0x2bd653['on'](_0x38a014(0xfc),()=>{const _0x4b6c69=_0x38a014;this[_0x4b6c69(0x11c)]='';});const _0x37698c=this[_0x38a014(0x121)];return _0x3ca0c5[_0x38a014(0x113)]({'tag':_0x38a014(0xf1),'attributes':{'class':['ck',_0x38a014(0x11f),_0x38a014(0xee)]},'children':[{'tag':'p','children':[{'text':_0x37698c['to'](_0x38a014(0x11c))}]},_0x2bd653]}),_0x3ca0c5;}[_0x50edfe(0xfd)](){const _0x72d42f=_0x50edfe,_0x1e064a=new _0x5c39da(this[_0x72d42f(0xe8)]);_0x1e064a[_0x72d42f(0x10d)]({'label':_0x387ca3(this[_0x72d42f(0xe8)],_0x72d42f(0xf5)),'withText':!0x0,'icon':_0x47c923,'class':_0x72d42f(0xed)}),_0x1e064a['on'](_0x72d42f(0xfc),()=>{const _0x2f5f2d=_0x72d42f;this[_0x2f5f2d(0xeb)](_0x2f5f2d(0x118));});const _0x39f8c6=new _0xafab8c(this[_0x72d42f(0xe8)]);return _0x39f8c6[_0x72d42f(0x113)]({'tag':_0x72d42f(0xf1),'attributes':{'class':[_0x72d42f(0xf3),this[_0x72d42f(0x121)]['if'](_0x72d42f(0xfa),_0x72d42f(0xea),_0x38b684=>!_0x38b684)]},'children':[{'tag':'p','attributes':{'class':[_0x72d42f(0xe9)]},'children':[_0x387ca3(this[_0x72d42f(0xe8)],_0x72d42f(0x122))]},_0x1e064a]}),_0x39f8c6;}[_0x50edfe(0xef)](_0x3589ae,_0x4a1d38){const _0x542b9f=_0x50edfe,_0x32c987=[];for(const _0x318d5b of _0x3589ae){const _0x57a58c=new _0x7d5635(_0x4a1d38,_0x318d5b);_0x57a58c[_0x542b9f(0x108)](..._0x540dfd)['to'](this),_0x32c987[_0x542b9f(0x102)](_0x57a58c);}return _0x32c987;}[_0x50edfe(0x111)](_0x3581fb){const _0x37b250=_0x50edfe,_0x4abcd2=this[_0x37b250(0xe8)]||'en',_0xfbc6b8=[];for(const _0x50bb04 of _0x3581fb){const _0x22cf58=this[_0x37b250(0xef)](_0x50bb04[_0x37b250(0xf4)],_0x4abcd2);_0xfbc6b8[_0x37b250(0x102)](new _0x5ec739(_0x4abcd2,{'title':_0x50bb04[_0x37b250(0x12a)],'items':_0x22cf58}));}this[_0x37b250(0x12c)][_0x37b250(0x115)]=_0xfbc6b8,this[_0x37b250(0x12c)][_0x37b250(0xf4)][_0x37b250(0x107)](),this[_0x37b250(0x12c)][_0x37b250(0xf4)][_0x37b250(0x112)](_0xfbc6b8),this[_0x37b250(0x105)]=_0x3581fb[_0x37b250(0xf7)](_0x435e76=>_0x435e76[_0x37b250(0xf4)][_0x37b250(0xd9)]>0x0),this[_0x37b250(0x126)]();}[_0x50edfe(0xe7)](_0xb4178b){const _0x54e910=_0x50edfe;for(const _0x145f39 of this[_0x54e910(0x12c)][_0x54e910(0x115)]){const _0x3613d7=_0x145f39[_0x54e910(0x116)](_0xb4178b);if(_0x3613d7){if(_0x145f39[_0x54e910(0x100)](_0x3613d7),0x0===_0x145f39[_0x54e910(0x10b)][_0x54e910(0xd9)]){const _0x2e3827=this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0x127)](_0x145f39);-0x1!==_0x2e3827&&(this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0x125)](_0x2e3827,0x1),this[_0x54e910(0x12c)][_0x54e910(0xf4)][_0x54e910(0x11a)](_0x145f39));}this[_0x54e910(0x105)]=this[_0x54e910(0x12c)][_0x54e910(0x115)][_0x54e910(0xd9)]>0x0,this[_0x54e910(0x126)]();break;}}}[_0x50edfe(0x109)](_0x1e5ddb,_0x26522a){const _0x29a7a3=_0x50edfe;for(const _0x27842a of this[_0x29a7a3(0x12c)][_0x29a7a3(0x115)]){const _0x5747e0=_0x27842a[_0x29a7a3(0x116)](_0x1e5ddb);if(_0x5747e0){_0x5747e0[_0x29a7a3(0xec)](_0x26522a);break;}}}[_0x50edfe(0xf8)](_0x4b69fd,_0x2830ce,_0x2ffd15){const _0x4eae86=_0x50edfe;for(const _0x1f27ae of this[_0x4eae86(0x12c)][_0x4eae86(0x115)]){const _0x5343eb=_0x1f27ae[_0x4eae86(0x116)](_0x4b69fd);if(_0x5343eb){_0x5343eb[_0x4eae86(0x130)](_0x2830ce,_0x2ffd15);break;}}}[_0x50edfe(0x126)](){const _0xeacbd6=_0x50edfe;if(this[_0xeacbd6(0x105)]){const _0x22af17=this[_0xeacbd6(0x10e)][_0xeacbd6(0x10f)][_0xeacbd6(0xdb)]?.[_0xeacbd6(0xda)]?.[_0xeacbd6(0xd8)]||'';this[_0xeacbd6(0x10e)][_0xeacbd6(0xf2)](_0x22af17);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19af65=_0x2300;(function(_0xac800c,_0x590e59){const _0x5a73ba=_0x2300,_0xa17bb6=_0xac800c();while(!![]){try{const _0x394f35=-parseInt(_0x5a73ba(0x21b))/0x1*(parseInt(_0x5a73ba(0x1de))/0x2)+-parseInt(_0x5a73ba(0x1cf))/0x3*(parseInt(_0x5a73ba(0x1bf))/0x4)+-parseInt(_0x5a73ba(0x1c2))/0x5+parseInt(_0x5a73ba(0x1ea))/0x6+-parseInt(_0x5a73ba(0x1ad))/0x7*(parseInt(_0x5a73ba(0x1ec))/0x8)+parseInt(_0x5a73ba(0x1e2))/0x9+parseInt(_0x5a73ba(0x1b8))/0xa;if(_0x394f35===_0x590e59)break;else _0xa17bb6['push'](_0xa17bb6['shift']());}catch(_0x2bf7ea){_0xa17bb6['push'](_0xa17bb6['shift']());}}}(_0x775f,0x39189));import{createParser as _0x3d2955}from'eventsource-parser';import{ContextPlugin as _0x223be8}from'ckeditor5/src/core.js';function _0x2300(_0x178c4b,_0x53286c){const _0x775f46=_0x775f();return _0x2300=function(_0x2300c8,_0x1d1e79){_0x2300c8=_0x2300c8-0x194;let _0xdf0a97=_0x775f46[_0x2300c8];return _0xdf0a97;},_0x2300(_0x178c4b,_0x53286c);}function _0x775f(){const _0x2e1531=['fetchConversations','/web-resources','5996240WpTVbl','signal','limit','fetchConversation','statusText','/files','make-tone-formal','848uwwPqB','MAKE_TONE_CASUAL','upsertAIActionRating','2321225KKXxKS','/reviews/custom/calls','positiveCount','/conversations/','AIConnector','GET','decode','context','token','AbortError','CloudServices','attributes','stringify','4467EfhuKP','startConversation','ai-missing-token','/messages','MAKE_SHORTER','totalCount','executeCustomAction','_getStreamReader','toString','100','deleteWebResource','feed','MAKE_LONGER','catch','/conversations','3578lOHfMz','/actions/custom/calls/','/calls','deleteFile','3766599dZkUfi','fetchDocument','name','abortController','/reviews/system/','application/json','_decoder','/documents','2788938DQOqIz','items','200UiSudO','Content-Type','_handleError','/documents/','CONTINUE','push','IMPROVE_WRITING','callSystemReview','modificationId','PATCH','value','group','ai.serviceUrl','define','init','getModels','read','keys','upsertCustomAIReviewRating','request','then','DELETE','pluginName','deleteDocument','config','/reviews/custom/calls/','/ratings','status','/calls/','fetchConversationMessages','code','MAKE_TONE_FORMAL','make-longer','/actions/custom/calls','_sendApiRequest','get','deleteConversation','POST','isPremiumPlugin','uploadDocument','requires','make-tone-casual','ai-request-failed','uploadFile','make-shorter','text','isOfficialPlugin','195DIsxVo','body','reset','message','excludeEmpty','executeAction','https://ai.cke-cs.com/v1','_token','callCustomReview','json','releaseLock','/models/1','_apiUrl','/web-resources/','getReader','/conversations?','traceId','fix-grammar','true','data','uploadUrl','updateConversation','continue','ai-request-aborted','upsertAIReviewRating','PUT','TRANSLATE','Bearer\x20','upsertAIChatRating','queryAssistant','parse','plugins','append','search','/actions/system/','33691NIZoPv','upsertCustomAIActionRating','improve-writing','/files/','/messages/','file','FIX_GRAMMAR','translate','length'];_0x775f=function(){return _0x2e1531;};return _0x775f();}import{CKEditorError as _0x70b51}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0xc7fab3){const _0x5211a1=_0x2300;_0xc7fab3[_0x5211a1(0x1f0)]=_0x5211a1(0x1a0),_0xc7fab3[_0x5211a1(0x1b3)]=_0x5211a1(0x19b),_0xc7fab3[_0x5211a1(0x1f2)]=_0x5211a1(0x1af),_0xc7fab3[_0x5211a1(0x1db)]=_0x5211a1(0x20c),_0xc7fab3[_0x5211a1(0x1d3)]=_0x5211a1(0x218),_0xc7fab3[_0x5211a1(0x1c0)]=_0x5211a1(0x215),_0xc7fab3[_0x5211a1(0x20b)]=_0x5211a1(0x1be),_0xc7fab3[_0x5211a1(0x1a4)]=_0x5211a1(0x1b4);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x223be8{[_0x19af65(0x196)];[_0x19af65(0x222)];[_0x19af65(0x1e8)];static get[_0x19af65(0x214)](){const _0x2c85f7=_0x19af65;return[_0x2c85f7(0x1cc)];}static get[_0x19af65(0x202)](){const _0x54ba16=_0x19af65;return _0x54ba16(0x1c6);}static get[_0x19af65(0x21a)](){return!0x0;}static get[_0x19af65(0x212)](){return!0x0;}constructor(_0x5a3938){const _0x3a5c89=_0x19af65;super(_0x5a3938),this[_0x3a5c89(0x1c9)][_0x3a5c89(0x204)][_0x3a5c89(0x1f9)](_0x3a5c89(0x1f8),_0x3a5c89(0x221)),this[_0x3a5c89(0x196)]=this[_0x3a5c89(0x1c9)][_0x3a5c89(0x204)][_0x3a5c89(0x20f)](_0x3a5c89(0x1f8)),this[_0x3a5c89(0x222)]=null,this[_0x3a5c89(0x1e8)]=new TextDecoder();}[_0x19af65(0x1fa)](){const _0x4b7e20=_0x19af65,_0x1e3127=this[_0x4b7e20(0x1c9)][_0x4b7e20(0x1a9)][_0x4b7e20(0x20f)](_0x4b7e20(0x1cc));if(!_0x1e3127[_0x4b7e20(0x1ca)])throw new _0x70b51(_0x4b7e20(0x1d1),this);this[_0x4b7e20(0x222)]=_0x1e3127[_0x4b7e20(0x1ca)];}[_0x19af65(0x1d0)](_0x1ab96d,_0x28f9f9){const _0x142097=_0x19af65,_0x2fd0b6=this[_0x142097(0x20e)](_0x142097(0x1dd),_0x142097(0x211),{'id':_0x1ab96d,'group':_0x28f9f9});return{'getConversation':async()=>(await _0x2fd0b6[_0x142097(0x1ff)])[_0x142097(0x224)](),'abortController':_0x2fd0b6[_0x142097(0x1e5)]};}[_0x19af65(0x1a7)]({message:_0x2006e3,conversationId:_0x47de21,parts:_0x5c0d1d,capabilities:_0x425058,model:_0x1a7e73,quickActionData:_0x581eae}){const _0x37e16a=_0x19af65,_0x4dc562={..._0x581eae&&{'quickActionData':_0x581eae}},_0x210af5={'prompt':_0x2006e3,'content':_0x5c0d1d,'model':_0x1a7e73,..._0x425058&&{'capabilities':_0x425058},...Object[_0x37e16a(0x1fd)](_0x4dc562)[_0x37e16a(0x1b5)]>0x0&&{'attributes':_0x4dc562}},_0x83c642=this[_0x37e16a(0x20e)](_0x37e16a(0x1c5)+_0x47de21+_0x37e16a(0x1d2),_0x37e16a(0x211),_0x210af5);return{'getStream':async()=>{const _0x124e27=_0x37e16a,_0x34c786=(await _0x83c642[_0x124e27(0x1ff)])[_0x124e27(0x21c)];return this[_0x124e27(0x1d6)](_0x34c786);},'abortController':_0x83c642[_0x37e16a(0x1e5)]};}[_0x19af65(0x1d5)]({content:_0x5e9154,message:_0x1db952,model:_0x596b87,outputFormat:_0x3ce902}){const _0xc1166a=_0x19af65,_0x274a3e={'content':[{'type':_0xc1166a(0x219),'content':_0x5e9154}],'prompt':_0x1db952,'model':_0x596b87,'outputFormat':_0x3ce902},_0x5bbe7e=this[_0xc1166a(0x20e)](_0xc1166a(0x20d),_0xc1166a(0x211),_0x274a3e);return{'getStream':async()=>{const _0x213f22=_0xc1166a,_0x47c60e=(await _0x5bbe7e[_0x213f22(0x1ff)])[_0x213f22(0x21c)];return this[_0x213f22(0x1d6)](_0x47c60e);},'abortController':_0x5bbe7e[_0xc1166a(0x1e5)]};}[_0x19af65(0x220)]({actionName:_0x18b282,content:_0x3415cd,args:_0x325dd9}){const _0x25b926=_0x19af65,_0xd519e5={'content':[{'type':_0x25b926(0x219),'content':_0x3415cd}],'args':_0x325dd9},_0x334772=this[_0x25b926(0x20e)](_0x25b926(0x1ac)+_0x18b282+_0x25b926(0x1e0),_0x25b926(0x211),_0xd519e5);return{'getStream':async()=>{const _0x19bcee=_0x25b926,_0xf01425=(await _0x334772[_0x19bcee(0x1ff)])[_0x19bcee(0x21c)];return this[_0x19bcee(0x1d6)](_0xf01425);},'abortController':_0x334772[_0x25b926(0x1e5)]};}[_0x19af65(0x217)](_0x1e7968,_0x20c591,_0x3970a0){const _0x43e479=_0x19af65,_0x5ac3a2=new FormData();_0x5ac3a2[_0x43e479(0x1aa)](_0x43e479(0x1b2),_0x20c591,_0x20c591[_0x43e479(0x1e4)]),_0x3970a0&&_0x5ac3a2[_0x43e479(0x1aa)](_0x43e479(0x1cd),JSON[_0x43e479(0x1ce)](_0x3970a0));const _0x529925=this[_0x43e479(0x20e)](_0x43e479(0x1c5)+_0x1e7968+_0x43e479(0x1bd),_0x43e479(0x211),_0x5ac3a2);return{'getId':async()=>(await _0x529925[_0x43e479(0x1ff)])[_0x43e479(0x224)](),'abortController':_0x529925[_0x43e479(0x1e5)]};}[_0x19af65(0x1e3)](_0x5318a9,_0x1fcf26){const _0x56c5bf=_0x19af65,_0x32713a=this[_0x56c5bf(0x20e)](_0x56c5bf(0x1c5)+_0x5318a9+_0x56c5bf(0x1ef)+_0x1fcf26,_0x56c5bf(0x1c7));return{'getDocument':async()=>(await _0x32713a[_0x56c5bf(0x1ff)])[_0x56c5bf(0x224)](),'abortController':_0x32713a[_0x56c5bf(0x1e5)]};}[_0x19af65(0x213)](_0x3a06dc,_0x5dfd33,_0x577076){const _0x4a6c71=_0x19af65,_0x313514={'content':_0x5dfd33};_0x577076&&(_0x313514[_0x4a6c71(0x1cd)]=_0x577076);const _0x4764f9=this[_0x4a6c71(0x20e)](_0x4a6c71(0x1c5)+_0x3a06dc+_0x4a6c71(0x1e9),_0x4a6c71(0x211),_0x313514);return{'getId':async()=>(await _0x4764f9[_0x4a6c71(0x1ff)])[_0x4a6c71(0x224)](),'abortController':_0x4764f9[_0x4a6c71(0x1e5)]};}[_0x19af65(0x1b6)](_0x20aefa,_0x11561c){const _0x38bb7d=_0x19af65,_0x359d94=new URLSearchParams();_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x21f),_0x38bb7d(0x19c)),_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1ba),_0x38bb7d(0x1d8)),_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1f7),_0x20aefa),_0x11561c&&_0x359d94[_0x38bb7d(0x1aa)](_0x38bb7d(0x1ab),_0x11561c);const _0xa722e1=this[_0x38bb7d(0x20e)](_0x38bb7d(0x199)+_0x359d94[_0x38bb7d(0x1d7)](),_0x38bb7d(0x1c7));return{'getConversations':async()=>{const _0x436aa0=_0x38bb7d,_0x35d907=await _0xa722e1[_0x436aa0(0x1ff)];return(await _0x35d907[_0x436aa0(0x224)]())[_0x436aa0(0x1eb)];},'abortController':_0xa722e1[_0x38bb7d(0x1e5)]};}[_0x19af65(0x210)](_0x3fec4a){const _0x43d55a=_0x19af65,_0x1ef1ba=this[_0x43d55a(0x20e)](_0x43d55a(0x1c5)+_0x3fec4a,_0x43d55a(0x201));return{'execute':async()=>{const _0x402c4d=_0x43d55a;await _0x1ef1ba[_0x402c4d(0x1ff)];},'abortController':_0x1ef1ba[_0x43d55a(0x1e5)]};}[_0x19af65(0x19f)](_0x1a5cd2,_0x32da63){const _0x3087d5=_0x19af65,_0x10bbce=this[_0x3087d5(0x20e)](_0x3087d5(0x1c5)+_0x1a5cd2,_0x3087d5(0x1f5),_0x32da63);return{'getResult':async()=>(await _0x10bbce[_0x3087d5(0x1ff)],_0x32da63),'abortController':_0x10bbce[_0x3087d5(0x1e5)]};}[_0x19af65(0x1bb)](_0x2a9517){const _0x299773=_0x19af65,_0x14049a=this[_0x299773(0x20e)](_0x299773(0x1c5)+_0x2a9517,_0x299773(0x1c7));return{'getConversation':async()=>(await _0x14049a[_0x299773(0x1ff)])[_0x299773(0x224)](),'abortController':_0x14049a[_0x299773(0x1e5)]};}[_0x19af65(0x209)](_0x3228c3){const _0x477f59=_0x19af65,_0x4f8d7b=this[_0x477f59(0x20e)](_0x477f59(0x1c5)+_0x3228c3+_0x477f59(0x1d2),_0x477f59(0x1c7));return{'getMessages':async()=>{const _0x190490=_0x477f59,_0x140b13=await _0x4f8d7b[_0x190490(0x1ff)];return(await _0x140b13[_0x190490(0x224)]())[_0x190490(0x1eb)];},'abortController':_0x4f8d7b[_0x477f59(0x1e5)]};}[_0x19af65(0x19e)](_0x4fb4a5,_0x56e5da,_0x271f40){const _0x252fda=_0x19af65,_0x6a8eb7=this[_0x252fda(0x20e)](_0x252fda(0x1c5)+_0x4fb4a5+_0x252fda(0x1b7),_0x252fda(0x211),{'url':_0x56e5da,'attributes':_0x271f40});return{'getId':async()=>(await _0x6a8eb7[_0x252fda(0x1ff)])[_0x252fda(0x224)](),'abortController':_0x6a8eb7[_0x252fda(0x1e5)]};}[_0x19af65(0x1fb)](){const _0x141783=_0x19af65,_0x9797c9=this[_0x141783(0x20e)](_0x141783(0x195),_0x141783(0x1c7));return{'list':async()=>await(await _0x9797c9[_0x141783(0x1ff)])[_0x141783(0x224)](),'abortController':_0x9797c9[_0x141783(0x1e5)]};}[_0x19af65(0x1e1)](_0x17438d,_0x18c592){const _0x42e34f=_0x19af65,_0x155ac1=this[_0x42e34f(0x20e)](_0x42e34f(0x1c5)+_0x17438d+_0x42e34f(0x1b0)+_0x18c592,_0x42e34f(0x201));return{'execute':async()=>{const _0x2b0ad9=_0x42e34f;await _0x155ac1[_0x2b0ad9(0x1ff)];},'abortController':_0x155ac1[_0x42e34f(0x1e5)]};}[_0x19af65(0x203)](_0x14c52d,_0x88130e){const _0x525e41=_0x19af65,_0x17bbe2=this[_0x525e41(0x20e)](_0x525e41(0x1c5)+_0x14c52d+_0x525e41(0x1ef)+_0x88130e,_0x525e41(0x201));return{'execute':async()=>{const _0x2e2b25=_0x525e41;await _0x17bbe2[_0x2e2b25(0x1ff)];},'abortController':_0x17bbe2[_0x525e41(0x1e5)]};}[_0x19af65(0x1d9)](_0x4fd894,_0x3e41c8){const _0x24c536=_0x19af65,_0x287a69=this[_0x24c536(0x20e)](_0x24c536(0x1c5)+_0x4fd894+_0x24c536(0x197)+_0x3e41c8,_0x24c536(0x201));return{'execute':async()=>{const _0x137b6e=_0x24c536;await _0x287a69[_0x137b6e(0x1ff)];},'abortController':_0x287a69[_0x24c536(0x1e5)]};}[_0x19af65(0x1f3)]({reviewName:_0x3d8122,content:_0x476c01,args:_0xd49357}){const _0x49295e=_0x19af65,_0x389f36=this[_0x49295e(0x20e)](_0x49295e(0x1e6)+_0x3d8122+_0x49295e(0x1e0),_0x49295e(0x211),{'content':[{'type':_0x49295e(0x219),'content':_0x476c01}],'args':_0xd49357});return{'getStream':async()=>{const _0xd52e53=_0x49295e,_0x2f2666=(await _0x389f36[_0xd52e53(0x1ff)])[_0xd52e53(0x21c)];return this[_0xd52e53(0x1d6)](_0x2f2666);},'abortController':_0x389f36[_0x49295e(0x1e5)]};}[_0x19af65(0x223)]({content:_0x415600,prompt:_0x5b67e6,model:_0x14f497}){const _0x2902c6=_0x19af65,_0x313aca=this[_0x2902c6(0x20e)](_0x2902c6(0x1c3),_0x2902c6(0x211),{'content':[{'type':_0x2902c6(0x219),'content':_0x415600}],'prompt':_0x5b67e6,'model':_0x14f497});return{'getStream':async()=>{const _0x2e3242=_0x2902c6,_0x568ec5=(await _0x313aca[_0x2e3242(0x1ff)])[_0x2e3242(0x21c)];return this[_0x2e3242(0x1d6)](_0x568ec5);},'abortController':_0x313aca[_0x2902c6(0x1e5)]};}[_0x19af65(0x1a6)](_0x4deacd,_0x2a0694,_0x22d155){const _0xf1763e=_0x19af65,_0x5f4f10=this[_0xf1763e(0x20e)](_0xf1763e(0x1c5)+_0x4deacd+_0xf1763e(0x1b1)+_0x2a0694+_0xf1763e(0x206),_0xf1763e(0x1a3),{'positiveCount':_0x22d155[_0xf1763e(0x1c4)],'totalCount':_0x22d155[_0xf1763e(0x1d4)],'modificationId':_0x22d155[_0xf1763e(0x1f4)]});return{'execute':async()=>{const _0xeb6ad8=_0xf1763e;await _0x5f4f10[_0xeb6ad8(0x1ff)];},'abortController':_0x5f4f10[_0xf1763e(0x1e5)]};}[_0x19af65(0x1c1)](_0x336543,_0x127247,_0x2216f1){const _0x5ee344=_0x19af65,_0x176353=this[_0x5ee344(0x20e)](_0x5ee344(0x1ac)+_0x336543+_0x5ee344(0x208)+_0x127247+_0x5ee344(0x206),_0x5ee344(0x1a3),{'positiveCount':_0x2216f1[_0x5ee344(0x1c4)],'totalCount':_0x2216f1[_0x5ee344(0x1d4)]});return{'execute':async()=>{const _0xad6e5f=_0x5ee344;await _0x176353[_0xad6e5f(0x1ff)];},'abortController':_0x176353[_0x5ee344(0x1e5)]};}[_0x19af65(0x1ae)](_0x2b3ebb,_0x339c2b){const _0x5b0791=_0x19af65,_0x565d4e=this[_0x5b0791(0x20e)](_0x5b0791(0x1df)+_0x2b3ebb+_0x5b0791(0x206),_0x5b0791(0x1a3),{'positiveCount':_0x339c2b[_0x5b0791(0x1c4)],'totalCount':_0x339c2b[_0x5b0791(0x1d4)]});return{'execute':async()=>{const _0x18d849=_0x5b0791;await _0x565d4e[_0x18d849(0x1ff)];},'abortController':_0x565d4e[_0x5b0791(0x1e5)]};}[_0x19af65(0x1a2)](_0x4b5304,_0xf493bb,_0x388a5e,_0x343453){const _0x11bb5c=_0x19af65,_0x564870=this[_0x11bb5c(0x20e)](_0x11bb5c(0x1e6)+_0x4b5304+_0x11bb5c(0x208)+_0xf493bb+_0x11bb5c(0x206),_0x11bb5c(0x1a3),{'positiveCount':_0x388a5e[_0x11bb5c(0x1c4)],'totalCount':_0x388a5e[_0x11bb5c(0x1d4)],'dataId':_0x343453});return{'execute':async()=>{const _0x4e3041=_0x11bb5c;await _0x564870[_0x4e3041(0x1ff)];},'abortController':_0x564870[_0x11bb5c(0x1e5)]};}[_0x19af65(0x1fe)](_0x27b879,_0x4c2b5b,_0xf6c6df){const _0x660d7=_0x19af65,_0x5cec66=this[_0x660d7(0x20e)](_0x660d7(0x205)+_0x27b879+_0x660d7(0x206),_0x660d7(0x1a3),{'positiveCount':_0x4c2b5b[_0x660d7(0x1c4)],'totalCount':_0x4c2b5b[_0x660d7(0x1d4)],'dataId':_0xf6c6df});return{'execute':async()=>{const _0x2b4df2=_0x660d7;await _0x5cec66[_0x2b4df2(0x1ff)];},'abortController':_0x5cec66[_0x660d7(0x1e5)]};}[_0x19af65(0x20e)](_0x1b4091,_0x2b4d54,_0x4530bc){const _0x5b93ed=_0x19af65,_0x5331ca=new AbortController(),_0x426f64=_0x4530bc instanceof FormData,_0x11ec56={'Authorization':_0x5b93ed(0x1a5)+this[_0x5b93ed(0x222)]?.[_0x5b93ed(0x1f6)]};_0x4530bc&&!_0x426f64&&(_0x11ec56[_0x5b93ed(0x1ed)]=_0x5b93ed(0x1e7));const _0x5eb24b={'method':_0x2b4d54,'headers':_0x11ec56,'signal':_0x5331ca[_0x5b93ed(0x1b9)]};return _0x4530bc&&(_0x5eb24b[_0x5b93ed(0x21c)]=_0x426f64?_0x4530bc:JSON[_0x5b93ed(0x1ce)](_0x4530bc)),{'request':fetch(''+this[_0x5b93ed(0x196)]+_0x1b4091,_0x5eb24b)[_0x5b93ed(0x1dc)](_0x4471cf=>{const _0x10c486=_0x5b93ed;this[_0x10c486(0x1ee)](_0x4471cf);})[_0x5b93ed(0x200)](_0xf90b78=>_0xf90b78['ok']?_0xf90b78:_0xf90b78[_0x5b93ed(0x224)]()[_0x5b93ed(0x200)](_0x4fe41d=>{const _0x58723a=_0x5b93ed;throw{'url':this[_0x58723a(0x196)],'path':_0x1b4091,'method':_0x2b4d54,'body':_0x4530bc,'status':(_0xf90b78||{})[_0x58723a(0x207)],'statusText':(_0xf90b78||{})[_0x58723a(0x1bc)],'code':_0x4fe41d[_0x58723a(0x20a)],'message':_0x4fe41d[_0x58723a(0x21e)],'traceId':_0x4fe41d[_0x58723a(0x19a)]};})),'abortController':_0x5331ca};}async*[_0x19af65(0x1d6)](_0x2390fd){const _0x38f3af=_0x19af65,_0x575ba4=[],_0x30f67b=_0x2390fd[_0x38f3af(0x198)](),_0x19cf48=_0x3d2955({'onError':_0x416d0e=>{const _0x5dae56=_0x38f3af;this[_0x5dae56(0x1ee)](_0x416d0e);},'onEvent':_0x38f0dd=>{const _0x3d846b=_0x38f3af;_0x38f0dd[_0x3d846b(0x19d)]=JSON[_0x3d846b(0x1a8)](_0x38f0dd[_0x3d846b(0x19d)]),_0x575ba4[_0x3d846b(0x1f1)](_0x38f0dd);}});try{let _0x58d53d=!0x1;for(;!_0x58d53d;){const {done:_0x20856b,value:_0x396428}=await _0x30f67b[_0x38f3af(0x1fc)]();_0x20856b&&(_0x58d53d=!0x0),_0x19cf48[_0x38f3af(0x1da)](this[_0x38f3af(0x1e8)][_0x38f3af(0x1c8)](_0x396428,{'stream':!0x0})),yield*_0x575ba4,_0x575ba4[_0x38f3af(0x1b5)]=0x0;}}catch(_0x27e0f2){this[_0x38f3af(0x1ee)](_0x27e0f2);}finally{_0x30f67b[_0x38f3af(0x194)](),_0x19cf48[_0x38f3af(0x21d)]();}}[_0x19af65(0x1ee)](_0x103b3d){const _0x5257ef=_0x19af65;if(_0x103b3d instanceof _0x70b51)throw _0x103b3d;if(_0x103b3d instanceof Error&&_0x5257ef(0x1cb)===_0x103b3d[_0x5257ef(0x1e4)])throw new _0x70b51(_0x5257ef(0x1a1),this,{'originalError':_0x103b3d});throw new _0x70b51(_0x5257ef(0x216),this,{'originalError':_0x103b3d});}}
23
+ const _0x3a6e57=_0x10a2;function _0x10a2(_0x498731,_0x533df0){const _0x177d5f=_0x177d();return _0x10a2=function(_0x10a255,_0x16b73e){_0x10a255=_0x10a255-0x1d9;let _0x403028=_0x177d5f[_0x10a255];return _0x403028;},_0x10a2(_0x498731,_0x533df0);}(function(_0x8e3836,_0x501c56){const _0x73237e=_0x10a2,_0x570288=_0x8e3836();while(!![]){try{const _0x4413d7=-parseInt(_0x73237e(0x1f3))/0x1*(parseInt(_0x73237e(0x24d))/0x2)+parseInt(_0x73237e(0x1ec))/0x3*(-parseInt(_0x73237e(0x234))/0x4)+parseInt(_0x73237e(0x1f9))/0x5+parseInt(_0x73237e(0x211))/0x6+-parseInt(_0x73237e(0x262))/0x7*(-parseInt(_0x73237e(0x25d))/0x8)+-parseInt(_0x73237e(0x20e))/0x9+-parseInt(_0x73237e(0x1db))/0xa;if(_0x4413d7===_0x501c56)break;else _0x570288['push'](_0x570288['shift']());}catch(_0x394644){_0x570288['push'](_0x570288['shift']());}}}(_0x177d,0xe4d09));import{createParser as _0x35f40b}from'eventsource-parser';function _0x177d(){const _0x57e975=['deleteDocument','117974tiIbRt','/documents','/calls/','/actions/custom/calls','/documents/','_apiUrl','deleteConversation','updateConversation','AbortError','/models/1','MAKE_SHORTER','push','excludeEmpty','feed','AIConnector','Content-Type','247096fKtrpj','_handleError','/files','items','/reviews/custom/calls/','217ASgtIo','message','parse','abortController','data','/web-resources/','FIX_GRAMMAR','https://ai.cke-cs.com/v1','executeAction','/conversations?','5996650wpDMCQ','getReader','PUT','uploadDocument','releaseLock','positiveCount','IMPROVE_WRITING','fetchConversationMessages','application/json','upsertCustomAIActionRating','upsertAIActionRating','getModels','decode','DELETE','fetchConversation','MAKE_TONE_FORMAL','upsertAIReviewRating','84PGtikV','code','POST','body','request','search','limit','13oAiSPD','fix-grammar','callCustomReview','improve-writing','MAKE_TONE_CASUAL','ai-request-aborted','4244125CEnket','Bearer\x20','read','/messages','make-longer','upsertCustomAIReviewRating','CONTINUE','signal','make-tone-casual','statusText','get','true','json','GET','attributes','executeCustomAction','fetchDocument','define','_getStreamReader','ai.serviceUrl','plugins','3370023yXxqGe','/files/','/web-resources','8401068sWAmTw','translate','deleteWebResource','modificationId','deleteFile','callSystemReview','append','/ratings','startConversation','value','pluginName','CloudServices','group','status','init','context','/reviews/system/','continue','totalCount','100','fetchConversations','token','ai-missing-token','make-tone-formal','text','PATCH','isOfficialPlugin','keys','/conversations','catch','_decoder','name','length','/messages/','/reviews/custom/calls','75476vQaVnO','toString','/calls','make-shorter','then','requires','MAKE_LONGER','uploadUrl','_token','stringify','file','queryAssistant','TRANSLATE','/actions/system/','config','upsertAIChatRating','traceId','/actions/custom/calls/','isPremiumPlugin','_sendApiRequest','/conversations/','uploadFile','ai-request-failed','reset'];_0x177d=function(){return _0x57e975;};return _0x177d();}import{ContextPlugin as _0x2d5a08}from'ckeditor5/src/core.js';import{CKEditorError as _0x43d357}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x375b51){const _0x4eb5ba=_0x10a2;_0x375b51[_0x4eb5ba(0x1ff)]=_0x4eb5ba(0x222),_0x375b51[_0x4eb5ba(0x268)]=_0x4eb5ba(0x1f4),_0x375b51[_0x4eb5ba(0x1e1)]=_0x4eb5ba(0x1f6),_0x375b51[_0x4eb5ba(0x23a)]=_0x4eb5ba(0x1fd),_0x375b51[_0x4eb5ba(0x257)]=_0x4eb5ba(0x237),_0x375b51[_0x4eb5ba(0x1f7)]=_0x4eb5ba(0x201),_0x375b51[_0x4eb5ba(0x1ea)]=_0x4eb5ba(0x228),_0x375b51[_0x4eb5ba(0x240)]=_0x4eb5ba(0x212);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x2d5a08{[_0x3a6e57(0x252)];[_0x3a6e57(0x23c)];[_0x3a6e57(0x22f)];static get[_0x3a6e57(0x239)](){const _0x216a0c=_0x3a6e57;return[_0x216a0c(0x21c)];}static get[_0x3a6e57(0x21b)](){const _0x17f151=_0x3a6e57;return _0x17f151(0x25b);}static get[_0x3a6e57(0x22b)](){return!0x0;}static get[_0x3a6e57(0x246)](){return!0x0;}constructor(_0x4b9a64){const _0x2a2f01=_0x3a6e57;super(_0x4b9a64),this[_0x2a2f01(0x220)][_0x2a2f01(0x242)][_0x2a2f01(0x20a)](_0x2a2f01(0x20c),_0x2a2f01(0x269)),this[_0x2a2f01(0x252)]=this[_0x2a2f01(0x220)][_0x2a2f01(0x242)][_0x2a2f01(0x203)](_0x2a2f01(0x20c)),this[_0x2a2f01(0x23c)]=null,this[_0x2a2f01(0x22f)]=new TextDecoder();}[_0x3a6e57(0x21f)](){const _0x1ecda1=_0x3a6e57,_0x3043c1=this[_0x1ecda1(0x220)][_0x1ecda1(0x20d)][_0x1ecda1(0x203)](_0x1ecda1(0x21c));if(!_0x3043c1[_0x1ecda1(0x226)])throw new _0x43d357(_0x1ecda1(0x227),this);this[_0x1ecda1(0x23c)]=_0x3043c1[_0x1ecda1(0x226)];}[_0x3a6e57(0x219)](_0x2caa8f,_0x37f2ec){const _0x63c7ac=_0x3a6e57,_0x51916c=this[_0x63c7ac(0x247)](_0x63c7ac(0x22d),_0x63c7ac(0x1ee),{'id':_0x2caa8f,'group':_0x37f2ec});return{'getConversation':async()=>(await _0x51916c[_0x63c7ac(0x1f0)])[_0x63c7ac(0x205)](),'abortController':_0x51916c[_0x63c7ac(0x265)]};}[_0x3a6e57(0x23f)]({message:_0x104094,conversationId:_0x386b57,parts:_0x147ce2,capabilities:_0xb82247,model:_0x193ce1,quickActionData:_0x1d4c1d}){const _0x4b929a=_0x3a6e57,_0x129b18={..._0x1d4c1d&&{'quickActionData':_0x1d4c1d}},_0x10bd5f={'prompt':_0x104094,'content':_0x147ce2,'model':_0x193ce1,..._0xb82247&&{'capabilities':_0xb82247},...Object[_0x4b929a(0x22c)](_0x129b18)[_0x4b929a(0x231)]>0x0&&{'attributes':_0x129b18}},_0x5b0b92=this[_0x4b929a(0x247)](_0x4b929a(0x248)+_0x386b57+_0x4b929a(0x1fc),_0x4b929a(0x1ee),_0x10bd5f);return{'getStream':async()=>{const _0x247116=_0x4b929a,_0x533daa=(await _0x5b0b92[_0x247116(0x1f0)])[_0x247116(0x1ef)];return this[_0x247116(0x20b)](_0x533daa);},'abortController':_0x5b0b92[_0x4b929a(0x265)]};}[_0x3a6e57(0x208)]({content:_0x5797d5,message:_0x29bd7e,model:_0x501e4d,outputFormat:_0x11b565}){const _0x22280b=_0x3a6e57,_0x61a535={'content':[{'type':_0x22280b(0x229),'content':_0x5797d5}],'prompt':_0x29bd7e,'model':_0x501e4d,'outputFormat':_0x11b565},_0xd5d285=this[_0x22280b(0x247)](_0x22280b(0x250),_0x22280b(0x1ee),_0x61a535);return{'getStream':async()=>{const _0xcaa84c=_0x22280b,_0x337b39=(await _0xd5d285[_0xcaa84c(0x1f0)])[_0xcaa84c(0x1ef)];return this[_0xcaa84c(0x20b)](_0x337b39);},'abortController':_0xd5d285[_0x22280b(0x265)]};}[_0x3a6e57(0x1d9)]({actionName:_0x5fc5a4,content:_0x14c8af,args:_0x48f4a2}){const _0x4b58c1=_0x3a6e57,_0x4c75d0={'content':[{'type':_0x4b58c1(0x229),'content':_0x14c8af}],'args':_0x48f4a2},_0xf92de8=this[_0x4b58c1(0x247)](_0x4b58c1(0x241)+_0x5fc5a4+_0x4b58c1(0x236),_0x4b58c1(0x1ee),_0x4c75d0);return{'getStream':async()=>{const _0x4ef0df=_0x4b58c1,_0x4e885d=(await _0xf92de8[_0x4ef0df(0x1f0)])[_0x4ef0df(0x1ef)];return this[_0x4ef0df(0x20b)](_0x4e885d);},'abortController':_0xf92de8[_0x4b58c1(0x265)]};}[_0x3a6e57(0x249)](_0x5eaa4e,_0x340c78,_0x249869){const _0x20be20=_0x3a6e57,_0x483d04=new FormData();_0x483d04[_0x20be20(0x217)](_0x20be20(0x23e),_0x340c78,_0x340c78[_0x20be20(0x230)]),_0x249869&&_0x483d04[_0x20be20(0x217)](_0x20be20(0x207),JSON[_0x20be20(0x23d)](_0x249869));const _0x11434e=this[_0x20be20(0x247)](_0x20be20(0x248)+_0x5eaa4e+_0x20be20(0x25f),_0x20be20(0x1ee),_0x483d04);return{'getId':async()=>(await _0x11434e[_0x20be20(0x1f0)])[_0x20be20(0x205)](),'abortController':_0x11434e[_0x20be20(0x265)]};}[_0x3a6e57(0x209)](_0x34035b,_0x28490a){const _0x36a517=_0x3a6e57,_0x359000=this[_0x36a517(0x247)](_0x36a517(0x248)+_0x34035b+_0x36a517(0x251)+_0x28490a,_0x36a517(0x206));return{'getDocument':async()=>(await _0x359000[_0x36a517(0x1f0)])[_0x36a517(0x205)](),'abortController':_0x359000[_0x36a517(0x265)]};}[_0x3a6e57(0x1de)](_0x3fa52b,_0x1f9b7d,_0x56a961){const _0x3e262b=_0x3a6e57,_0x1295bf={'content':_0x1f9b7d};_0x56a961&&(_0x1295bf[_0x3e262b(0x207)]=_0x56a961);const _0x105dd8=this[_0x3e262b(0x247)](_0x3e262b(0x248)+_0x3fa52b+_0x3e262b(0x24e),_0x3e262b(0x1ee),_0x1295bf);return{'getId':async()=>(await _0x105dd8[_0x3e262b(0x1f0)])[_0x3e262b(0x205)](),'abortController':_0x105dd8[_0x3e262b(0x265)]};}[_0x3a6e57(0x225)](_0x112636,_0x3e7ad7){const _0x24d7d9=_0x3a6e57,_0x35e20b=new URLSearchParams();_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x259),_0x24d7d9(0x204)),_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x1f2),_0x24d7d9(0x224)),_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x21d),_0x112636),_0x3e7ad7&&_0x35e20b[_0x24d7d9(0x217)](_0x24d7d9(0x1f1),_0x3e7ad7);const _0x162f1b=this[_0x24d7d9(0x247)](_0x24d7d9(0x1da)+_0x35e20b[_0x24d7d9(0x235)](),_0x24d7d9(0x206));return{'getConversations':async()=>{const _0x2de69d=_0x24d7d9,_0x58f5e0=await _0x162f1b[_0x2de69d(0x1f0)];return(await _0x58f5e0[_0x2de69d(0x205)]())[_0x2de69d(0x260)];},'abortController':_0x162f1b[_0x24d7d9(0x265)]};}[_0x3a6e57(0x253)](_0x47cd7b){const _0x1bd96f=_0x3a6e57,_0x3ece06=this[_0x1bd96f(0x247)](_0x1bd96f(0x248)+_0x47cd7b,_0x1bd96f(0x1e8));return{'execute':async()=>{const _0x137354=_0x1bd96f;await _0x3ece06[_0x137354(0x1f0)];},'abortController':_0x3ece06[_0x1bd96f(0x265)]};}[_0x3a6e57(0x254)](_0x3047bc,_0xceff9c){const _0x272092=_0x3a6e57,_0xe29010=this[_0x272092(0x247)](_0x272092(0x248)+_0x3047bc,_0x272092(0x22a),_0xceff9c);return{'getResult':async()=>(await _0xe29010[_0x272092(0x1f0)],_0xceff9c),'abortController':_0xe29010[_0x272092(0x265)]};}[_0x3a6e57(0x1e9)](_0xf7c655){const _0x25073a=_0x3a6e57,_0x2dbefb=this[_0x25073a(0x247)](_0x25073a(0x248)+_0xf7c655,_0x25073a(0x206));return{'getConversation':async()=>(await _0x2dbefb[_0x25073a(0x1f0)])[_0x25073a(0x205)](),'abortController':_0x2dbefb[_0x25073a(0x265)]};}[_0x3a6e57(0x1e2)](_0x2bacee){const _0x3e2299=_0x3a6e57,_0x4627d5=this[_0x3e2299(0x247)](_0x3e2299(0x248)+_0x2bacee+_0x3e2299(0x1fc),_0x3e2299(0x206));return{'getMessages':async()=>{const _0x4fd037=_0x3e2299,_0x5b7349=await _0x4627d5[_0x4fd037(0x1f0)];return(await _0x5b7349[_0x4fd037(0x205)]())[_0x4fd037(0x260)];},'abortController':_0x4627d5[_0x3e2299(0x265)]};}[_0x3a6e57(0x23b)](_0xd8ddc6,_0x572f93,_0x1ac859){const _0x566aab=_0x3a6e57,_0x4a4dbb=this[_0x566aab(0x247)](_0x566aab(0x248)+_0xd8ddc6+_0x566aab(0x210),_0x566aab(0x1ee),{'url':_0x572f93,'attributes':_0x1ac859});return{'getId':async()=>(await _0x4a4dbb[_0x566aab(0x1f0)])[_0x566aab(0x205)](),'abortController':_0x4a4dbb[_0x566aab(0x265)]};}[_0x3a6e57(0x1e6)](){const _0x5b8b42=_0x3a6e57,_0x2e2174=this[_0x5b8b42(0x247)](_0x5b8b42(0x256),_0x5b8b42(0x206));return{'list':async()=>await(await _0x2e2174[_0x5b8b42(0x1f0)])[_0x5b8b42(0x205)](),'abortController':_0x2e2174[_0x5b8b42(0x265)]};}[_0x3a6e57(0x215)](_0x430a8,_0x14066e){const _0x3e271a=_0x3a6e57,_0x12899d=this[_0x3e271a(0x247)](_0x3e271a(0x248)+_0x430a8+_0x3e271a(0x20f)+_0x14066e,_0x3e271a(0x1e8));return{'execute':async()=>{const _0x66d0cc=_0x3e271a;await _0x12899d[_0x66d0cc(0x1f0)];},'abortController':_0x12899d[_0x3e271a(0x265)]};}[_0x3a6e57(0x24c)](_0x43aa15,_0x538423){const _0x5e5385=_0x3a6e57,_0x1bb8c6=this[_0x5e5385(0x247)](_0x5e5385(0x248)+_0x43aa15+_0x5e5385(0x251)+_0x538423,_0x5e5385(0x1e8));return{'execute':async()=>{const _0x4dd3df=_0x5e5385;await _0x1bb8c6[_0x4dd3df(0x1f0)];},'abortController':_0x1bb8c6[_0x5e5385(0x265)]};}[_0x3a6e57(0x213)](_0x246eaf,_0x6a2907){const _0x3a9fb6=_0x3a6e57,_0x3e17de=this[_0x3a9fb6(0x247)](_0x3a9fb6(0x248)+_0x246eaf+_0x3a9fb6(0x267)+_0x6a2907,_0x3a9fb6(0x1e8));return{'execute':async()=>{const _0x3e6bad=_0x3a9fb6;await _0x3e17de[_0x3e6bad(0x1f0)];},'abortController':_0x3e17de[_0x3a9fb6(0x265)]};}[_0x3a6e57(0x216)]({reviewName:_0x16b83f,content:_0x543a7f,args:_0x4d544a}){const _0x3805a5=_0x3a6e57,_0x3b5a55=this[_0x3805a5(0x247)](_0x3805a5(0x221)+_0x16b83f+_0x3805a5(0x236),_0x3805a5(0x1ee),{'content':[{'type':_0x3805a5(0x229),'content':_0x543a7f}],'args':_0x4d544a});return{'getStream':async()=>{const _0x4437b9=_0x3805a5,_0x667535=(await _0x3b5a55[_0x4437b9(0x1f0)])[_0x4437b9(0x1ef)];return this[_0x4437b9(0x20b)](_0x667535);},'abortController':_0x3b5a55[_0x3805a5(0x265)]};}[_0x3a6e57(0x1f5)]({content:_0x1fbfbb,prompt:_0x3ed9ae,model:_0x5f3f04}){const _0x192bfc=_0x3a6e57,_0x8e223c=this[_0x192bfc(0x247)](_0x192bfc(0x233),_0x192bfc(0x1ee),{'content':[{'type':_0x192bfc(0x229),'content':_0x1fbfbb}],'prompt':_0x3ed9ae,'model':_0x5f3f04});return{'getStream':async()=>{const _0x21caf3=_0x192bfc,_0x41d14d=(await _0x8e223c[_0x21caf3(0x1f0)])[_0x21caf3(0x1ef)];return this[_0x21caf3(0x20b)](_0x41d14d);},'abortController':_0x8e223c[_0x192bfc(0x265)]};}[_0x3a6e57(0x243)](_0x3282e6,_0x5e70e8,_0x4f1e0f){const _0x23dcd7=_0x3a6e57,_0x1d1e6c=this[_0x23dcd7(0x247)](_0x23dcd7(0x248)+_0x3282e6+_0x23dcd7(0x232)+_0x5e70e8+_0x23dcd7(0x218),_0x23dcd7(0x1dd),{'positiveCount':_0x4f1e0f[_0x23dcd7(0x1e0)],'totalCount':_0x4f1e0f[_0x23dcd7(0x223)],'modificationId':_0x4f1e0f[_0x23dcd7(0x214)]});return{'execute':async()=>{const _0x4cad4b=_0x23dcd7;await _0x1d1e6c[_0x4cad4b(0x1f0)];},'abortController':_0x1d1e6c[_0x23dcd7(0x265)]};}[_0x3a6e57(0x1e5)](_0x46f45c,_0x6e28a2,_0x4cceda){const _0x4a38a5=_0x3a6e57,_0x38672e=this[_0x4a38a5(0x247)](_0x4a38a5(0x241)+_0x46f45c+_0x4a38a5(0x24f)+_0x6e28a2+_0x4a38a5(0x218),_0x4a38a5(0x1dd),{'positiveCount':_0x4cceda[_0x4a38a5(0x1e0)],'totalCount':_0x4cceda[_0x4a38a5(0x223)]});return{'execute':async()=>{const _0x5444a4=_0x4a38a5;await _0x38672e[_0x5444a4(0x1f0)];},'abortController':_0x38672e[_0x4a38a5(0x265)]};}[_0x3a6e57(0x1e4)](_0x22035a,_0x1d2ace){const _0x4b8033=_0x3a6e57,_0x813976=this[_0x4b8033(0x247)](_0x4b8033(0x245)+_0x22035a+_0x4b8033(0x218),_0x4b8033(0x1dd),{'positiveCount':_0x1d2ace[_0x4b8033(0x1e0)],'totalCount':_0x1d2ace[_0x4b8033(0x223)]});return{'execute':async()=>{const _0x3eaa29=_0x4b8033;await _0x813976[_0x3eaa29(0x1f0)];},'abortController':_0x813976[_0x4b8033(0x265)]};}[_0x3a6e57(0x1eb)](_0x14b13b,_0x1df089,_0x4b8044,_0xa84aa1){const _0x3cf59b=_0x3a6e57,_0x5495cd=this[_0x3cf59b(0x247)](_0x3cf59b(0x221)+_0x14b13b+_0x3cf59b(0x24f)+_0x1df089+_0x3cf59b(0x218),_0x3cf59b(0x1dd),{'positiveCount':_0x4b8044[_0x3cf59b(0x1e0)],'totalCount':_0x4b8044[_0x3cf59b(0x223)],'dataId':_0xa84aa1});return{'execute':async()=>{const _0x3fa4d6=_0x3cf59b;await _0x5495cd[_0x3fa4d6(0x1f0)];},'abortController':_0x5495cd[_0x3cf59b(0x265)]};}[_0x3a6e57(0x1fe)](_0x3105bc,_0x1e392a,_0x57d385){const _0x2bdc28=_0x3a6e57,_0x379fc8=this[_0x2bdc28(0x247)](_0x2bdc28(0x261)+_0x3105bc+_0x2bdc28(0x218),_0x2bdc28(0x1dd),{'positiveCount':_0x1e392a[_0x2bdc28(0x1e0)],'totalCount':_0x1e392a[_0x2bdc28(0x223)],'dataId':_0x57d385});return{'execute':async()=>{const _0x539f05=_0x2bdc28;await _0x379fc8[_0x539f05(0x1f0)];},'abortController':_0x379fc8[_0x2bdc28(0x265)]};}[_0x3a6e57(0x247)](_0x30096f,_0x2a1dec,_0x101571){const _0x432ff1=_0x3a6e57,_0x40c080=new AbortController(),_0x1356c9=_0x101571 instanceof FormData,_0x17185e={'Authorization':_0x432ff1(0x1fa)+this[_0x432ff1(0x23c)]?.[_0x432ff1(0x21a)]};_0x101571&&!_0x1356c9&&(_0x17185e[_0x432ff1(0x25c)]=_0x432ff1(0x1e3));const _0x331091={'method':_0x2a1dec,'headers':_0x17185e,'signal':_0x40c080[_0x432ff1(0x200)]};return _0x101571&&(_0x331091[_0x432ff1(0x1ef)]=_0x1356c9?_0x101571:JSON[_0x432ff1(0x23d)](_0x101571)),{'request':fetch(''+this[_0x432ff1(0x252)]+_0x30096f,_0x331091)[_0x432ff1(0x22e)](_0x475785=>{const _0x235e59=_0x432ff1;this[_0x235e59(0x25e)](_0x475785);})[_0x432ff1(0x238)](_0x1c7740=>_0x1c7740['ok']?_0x1c7740:_0x1c7740[_0x432ff1(0x205)]()[_0x432ff1(0x238)](_0x51bac8=>{const _0x4d209a=_0x432ff1;throw{'url':this[_0x4d209a(0x252)],'path':_0x30096f,'method':_0x2a1dec,'body':_0x101571,'status':(_0x1c7740||{})[_0x4d209a(0x21e)],'statusText':(_0x1c7740||{})[_0x4d209a(0x202)],'code':_0x51bac8[_0x4d209a(0x1ed)],'message':_0x51bac8[_0x4d209a(0x263)],'traceId':_0x51bac8[_0x4d209a(0x244)]};})),'abortController':_0x40c080};}async*[_0x3a6e57(0x20b)](_0x5c07a1){const _0x3194e5=_0x3a6e57,_0x9605b5=[],_0x2b6e6b=_0x5c07a1[_0x3194e5(0x1dc)](),_0x15b54e=_0x35f40b({'onError':_0x4f2498=>{const _0x538394=_0x3194e5;this[_0x538394(0x25e)](_0x4f2498);},'onEvent':_0x3478e5=>{const _0x43eb03=_0x3194e5;_0x3478e5[_0x43eb03(0x266)]=JSON[_0x43eb03(0x264)](_0x3478e5[_0x43eb03(0x266)]),_0x9605b5[_0x43eb03(0x258)](_0x3478e5);}});try{let _0x17b6de=!0x1;for(;!_0x17b6de;){const {done:_0xc5ca72,value:_0x42872f}=await _0x2b6e6b[_0x3194e5(0x1fb)]();_0xc5ca72&&(_0x17b6de=!0x0),_0x15b54e[_0x3194e5(0x25a)](this[_0x3194e5(0x22f)][_0x3194e5(0x1e7)](_0x42872f,{'stream':!0x0})),yield*_0x9605b5,_0x9605b5[_0x3194e5(0x231)]=0x0;}}catch(_0x4f6675){this[_0x3194e5(0x25e)](_0x4f6675);}finally{_0x2b6e6b[_0x3194e5(0x1df)](),_0x15b54e[_0x3194e5(0x24b)]();}}[_0x3a6e57(0x25e)](_0x3ab467){const _0x53f89b=_0x3a6e57;if(_0x3ab467 instanceof _0x43d357)throw _0x3ab467;if(_0x3ab467 instanceof Error&&_0x53f89b(0x255)===_0x3ab467[_0x53f89b(0x230)])throw new _0x43d357(_0x53f89b(0x1f8),this,{'originalError':_0x3ab467});throw new _0x43d357(_0x53f89b(0x24a),this,{'originalError':_0x3ab467});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x11e2(_0x3e7440,_0x250829){const _0x4e34ee=_0x4e34();return _0x11e2=function(_0x11e2ed,_0x18f2d2){_0x11e2ed=_0x11e2ed-0x17d;let _0x210548=_0x4e34ee[_0x11e2ed];return _0x210548;},_0x11e2(_0x3e7440,_0x250829);}const _0x45920a=_0x11e2;function _0x4e34(){const _0x2b48c5=['substring','version','markerName','311620wcxHAs','ck-fake-ai-selection','change','getSelectedContent','isAtEnd','removeMarker','trim','showFakeVisualSelection','name','getSelectionText','floor','$textProxy','getMarkersGroup','data-id','sort','isPremiumPlugin','start','markerToHighlight','AIEditing','length','plugins','createUIElement','dataDowncast','createRange','fromCharCode','ai-selection:','_integrateEditor','addMarker','getChildren','15435mqczsy','markerToElement','843756Ksqpni','_getMarkersInDocumentOrder','containerElement','_setDataIdsOnChildren','isContent','_sessionId','listenTo',':end>','document','_displayedFakeSelectionId','ready','markers',':end></','ai-selection','580860joQzOO','for','getWalker','pluginName','has','from','1929810hamwDC','selection','_displayedFakeSelectionLocked','getLastMatchingPosition','77fNDZtk','createRangeIn','view','_nextDataId','context','end','5uRtklk','10876FnQaOV','isOfficialPlugin','modelToViewWithIds','getStart','push','hideFakeVisualSelection','setAttribute',':start></','editingDowncast','convertAiChatSelectionMarker','afterInit','isBefore','editors','add','data','1128720FxdnzQ','isAfter','toView','model','get','6pLsExP','editing','sessionId','getRoot','processor','indexOf','ck-ai-assistant-ui_theme','element','random','getDocumentData','isOpening','RealTimeCollaborationClient','schema',':start>','conversion','472liuaos','21uMmYeF','join','toData','getSelection','removeAllRanges','emptyElement'];_0x4e34=function(){return _0x2b48c5;};return _0x4e34();}(function(_0x395fbf,_0x592132){const _0x4f0224=_0x11e2,_0x483133=_0x395fbf();while(!![]){try{const _0x53b07c=-parseInt(_0x4f0224(0x1a7))/0x1*(parseInt(_0x4f0224(0x183))/0x2)+-parseInt(_0x4f0224(0x197))/0x3*(-parseInt(_0x4f0224(0x1b0))/0x4)+-parseInt(_0x4f0224(0x182))/0x5*(-parseInt(_0x4f0224(0x192))/0x6)+parseInt(_0x4f0224(0x1cd))/0x7*(parseInt(_0x4f0224(0x1a6))/0x8)+parseInt(_0x4f0224(0x1dd))/0x9+parseInt(_0x4f0224(0x1e3))/0xa+-parseInt(_0x4f0224(0x1e7))/0xb*(parseInt(_0x4f0224(0x1cf))/0xc);if(_0x53b07c===_0x592132)break;else _0x483133['push'](_0x483133['shift']());}catch(_0x4eacc2){_0x483133['push'](_0x483133['shift']());}}}(_0x4e34,0x1e8e5));import{ViewDowncastWriter as _0x4b14df}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x127204,Editor as _0x55623a}from'ckeditor5/src/core.js';import{uid as _0xf27a88}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x5b4e51}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x45920a(0x1dc);export class AIEditing extends _0x127204{[_0x45920a(0x1d8)]=null;[_0x45920a(0x1e5)]=!0x1;[_0x45920a(0x1d4)];static get[_0x45920a(0x1e0)](){const _0x3f3ef6=_0x45920a;return _0x3f3ef6(0x1c2);}static get[_0x45920a(0x184)](){return!0x0;}static get[_0x45920a(0x1bf)](){return!0x0;}get[_0x45920a(0x199)](){const _0x2d2568=_0x45920a;if(!this[_0x2d2568(0x1d4)]){const _0x3f3f2c=_0x5b4e51(this[_0x2d2568(0x180)]),_0x5236e5=_0x3f3f2c[_0x2d2568(0x1c4)][_0x2d2568(0x1e1)](_0x2d2568(0x1a2))&&_0x3f3f2c[_0x2d2568(0x1c4)][_0x2d2568(0x196)](_0x2d2568(0x1a2))[_0x2d2568(0x199)];this[_0x2d2568(0x1d4)]=_0x5236e5||_0xf27a88();}return this[_0x2d2568(0x1d4)];}[_0x45920a(0x1a0)](){const _0x3f8193=_0x45920a,_0x558b39=_0x5b4e51(this[_0x3f8193(0x180)]),_0x4d307a=_0x558b39[_0x3f8193(0x195)],_0x41b54a=_0x558b39[_0x3f8193(0x191)][_0x3f8193(0x194)](_0x4d307a[_0x3f8193(0x1d7)][_0x3f8193(0x19a)](),{'convertAiChatSelectionMarker':!0x0}),_0x51b07f=new _0x4b14df(_0x558b39[_0x3f8193(0x198)][_0x3f8193(0x17e)][_0x3f8193(0x1d7)]);this[_0x3f8193(0x1d2)](_0x41b54a,_0x51b07f);let _0x2418ed=_0x558b39[_0x3f8193(0x191)][_0x3f8193(0x19b)][_0x3f8193(0x1a9)](_0x41b54a);const _0x57e9a4=this[_0x3f8193(0x1d0)](),_0x3467de=[];for(const _0x5574ed of _0x57e9a4){const _0x2b6da5='<'+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x18a)+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1a4),_0x4e1fc6=_0x2418ed[_0x3f8193(0x19c)](_0x2b6da5);_0x2418ed=_0x2418ed[_0x3f8193(0x1ad)](0x0,_0x4e1fc6)+_0x2418ed[_0x3f8193(0x1ad)](_0x4e1fc6+_0x2b6da5[_0x3f8193(0x1c3)]);const _0xd4b6ce='<'+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1db)+_0x5574ed[_0x3f8193(0x1b8)]+_0x3f8193(0x1d6),_0x19c409=_0x2418ed[_0x3f8193(0x19c)](_0xd4b6ce);_0x2418ed=_0x2418ed[_0x3f8193(0x1ad)](0x0,_0x19c409)+_0x2418ed[_0x3f8193(0x1ad)](_0x19c409+_0xd4b6ce[_0x3f8193(0x1c3)]),_0x3467de[_0x3f8193(0x187)]({'markerName':_0x5574ed[_0x3f8193(0x1b8)],'start':_0x4e1fc6,'end':_0x19c409,'htmlFragment':_0x2418ed[_0x3f8193(0x1ad)](_0x4e1fc6,_0x19c409)});}return{'content':_0x2418ed,'version':_0x558b39[_0x3f8193(0x195)][_0x3f8193(0x1d7)][_0x3f8193(0x1ae)],'sessionId':this[_0x3f8193(0x199)],'selections':_0x3467de};}async[_0x45920a(0x18d)](){const _0x2a4845=_0x45920a;this[_0x2a4845(0x180)]instanceof _0x55623a?this[_0x2a4845(0x1ca)](this[_0x2a4845(0x180)]):this[_0x2a4845(0x1d5)](this[_0x2a4845(0x180)][_0x2a4845(0x18f)],_0x2a4845(0x190),(_0x44e546,_0x404c2a)=>{const _0x13460d=_0x2a4845;_0x404c2a['on'](_0x13460d(0x1d9),()=>{const _0x2c8f43=_0x13460d;this[_0x2c8f43(0x1ca)](_0x404c2a);});});}[_0x45920a(0x1ca)](_0x393219){const _0x4a9949=_0x45920a;_0x393219[_0x4a9949(0x1a5)][_0x4a9949(0x1de)](_0x4a9949(0x18b))[_0x4a9949(0x1c1)]({'model':_0x4a9949(0x1dc),'view':{'classes':[_0x4a9949(0x1b1),_0x4a9949(0x19d)],'priority':0xc}}),_0x393219[_0x4a9949(0x1a5)][_0x4a9949(0x1de)](_0x4a9949(0x1c6))[_0x4a9949(0x1ce)]({'model':_0x4a9949(0x1dc),'view':(_0x2266a9,{writer:_0x592c6f,options:_0x115388})=>_0x115388[_0x4a9949(0x18c)]?_0x592c6f[_0x4a9949(0x1c5)](_0x2266a9[_0x4a9949(0x1af)]+':'+(_0x2266a9[_0x4a9949(0x1a1)]?_0x4a9949(0x1c0):_0x4a9949(0x181))):null});}[_0x45920a(0x1b7)](_0x56a470,_0x4f210d,_0x17ee13=!0x1,_0x298f60=!0x1){const _0x317f80=_0x45920a;if(this[_0x317f80(0x1e5)]&&!_0x298f60)return!0x1;const _0x48f102=_0x5b4e51(this[_0x317f80(0x180)])[_0x317f80(0x195)];return _0x48f102[_0x317f80(0x1b2)](_0x2f91c8=>{const _0x25ffea=_0x317f80;this[_0x25ffea(0x1d8)]&&this[_0x25ffea(0x188)](this[_0x25ffea(0x1d8)]),this[_0x25ffea(0x1d8)]=_0x4f210d,this[_0x25ffea(0x1e5)]=_0x17ee13;let _0x1aaff3=0x0;for(let _0x17de31 of _0x56a470){const _0x5b6f5b=_0x25ffea(0x1c9)+_0x1aaff3;if(_0x17de31[_0x25ffea(0x1c0)][_0x25ffea(0x1b4)]){const _0x1ca6a1=_0x17de31[_0x25ffea(0x1c0)][_0x25ffea(0x1e6)](({item:_0xa9d969})=>!_0x48f102[_0x25ffea(0x1a3)][_0x25ffea(0x1d3)](_0xa9d969),{'boundaries':_0x17de31});_0x17de31=_0x2f91c8[_0x25ffea(0x1c7)](_0x1ca6a1,_0x17de31[_0x25ffea(0x181)]);}_0x2f91c8[_0x25ffea(0x1cb)](_0x5b6f5b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x17de31}),_0x1aaff3++;}}),window[_0x317f80(0x1aa)]()?.[_0x317f80(0x1ab)](),!0x0;}[_0x45920a(0x188)](_0x1dbc02){const _0x3ab524=_0x45920a;if(this[_0x3ab524(0x1d8)]!=_0x1dbc02)return!0x1;this[_0x3ab524(0x1d8)]=null,this[_0x3ab524(0x1e5)]=!0x1;const _0x1d10f3=_0x5b4e51(this[_0x3ab524(0x180)]),_0xfdb2e5=_0x1d10f3[_0x3ab524(0x195)][_0x3ab524(0x1da)][_0x3ab524(0x1bc)](_0x3ab524(0x1dc));return _0x1d10f3[_0x3ab524(0x195)][_0x3ab524(0x1b2)](_0x23e932=>{const _0x26720a=_0x3ab524;for(const _0x2d24ff of _0xfdb2e5)_0x23e932[_0x26720a(0x1b5)](_0x2d24ff);}),!0x0;}[_0x45920a(0x185)](_0x4f5fd4){const _0x2a87bf=_0x45920a,_0x5580d2=_0x5b4e51(this[_0x2a87bf(0x180)]),_0x227c15=_0x5580d2[_0x2a87bf(0x191)][_0x2a87bf(0x194)](_0x4f5fd4),_0x2294fe=new _0x4b14df(_0x5580d2[_0x2a87bf(0x198)][_0x2a87bf(0x17e)][_0x2a87bf(0x1d7)]);return this[_0x2a87bf(0x1d2)](_0x227c15,_0x2294fe),_0x227c15;}[_0x45920a(0x1d2)](_0x1f5401,_0x4a7e70){const _0x3296bb=_0x45920a;let _0x58dccd=!0x1;const _0x5411fe=new Set();for(const _0x2a8400 of _0x1f5401[_0x3296bb(0x1cc)]()){const _0x124d96=_0x2a8400['is'](_0x3296bb(0x1ac))||_0x2a8400['is'](_0x3296bb(0x1d1));if(!_0x2a8400['is'](_0x3296bb(0x19e)))continue;(this[_0x3296bb(0x1d2)](_0x2a8400,_0x4a7e70)||_0x124d96)&&(_0x4a7e70[_0x3296bb(0x189)](_0x3296bb(0x1bd),this[_0x3296bb(0x17f)](_0x5411fe),_0x2a8400),_0x58dccd=!0x0);}return _0x58dccd;}[_0x45920a(0x17f)](_0x179959){const _0x37f1df=_0x45920a;let _0x29099d;do{_0x29099d='';for(let _0x553649=0x0;_0x553649<0x4;_0x553649++)_0x29099d+=String[_0x37f1df(0x1c8)](0x61+Math[_0x37f1df(0x1ba)](0x1a*Math[_0x37f1df(0x19f)]()));}while(_0x179959[_0x37f1df(0x1e1)](_0x29099d));return _0x179959[_0x37f1df(0x190)](_0x29099d),_0x29099d;}[_0x45920a(0x1b9)](){const _0x211015=_0x45920a,{model:_0xc7e114}=_0x5b4e51(this[_0x211015(0x180)]),_0x544fbe=_0xc7e114[_0x211015(0x1d7)][_0x211015(0x1e4)],_0x20c0db=_0xc7e114[_0x211015(0x1b3)](_0x544fbe),_0x22790d=[],_0x591e69=_0xc7e114[_0x211015(0x17d)](_0x20c0db)[_0x211015(0x1df)]();for(const {item:_0x30b4ce}of _0x591e69)_0x30b4ce['is'](_0x211015(0x1bb))?_0x22790d[_0x211015(0x187)](_0x30b4ce[_0x211015(0x191)]):_0x30b4ce['is'](_0x211015(0x19e))&&_0x22790d[_0x211015(0x1c3)]>0x0&&'\x20'!==_0x22790d[_0x22790d[_0x211015(0x1c3)]-0x1]&&_0x22790d[_0x211015(0x187)]('\x20');return'\x22'+_0x22790d[_0x211015(0x1a8)]('')[_0x211015(0x1b6)]()+'\x22';}[_0x45920a(0x1d0)](){const _0x395d20=_0x45920a,_0x58af35=_0x5b4e51(this[_0x395d20(0x180)])[_0x395d20(0x195)];return Array[_0x395d20(0x1e2)](_0x58af35[_0x395d20(0x1da)][_0x395d20(0x1bc)](_0x395d20(0x1dc)))[_0x395d20(0x1be)]((_0x44a9de,_0x20d19e)=>_0x44a9de[_0x395d20(0x186)]()[_0x395d20(0x18e)](_0x20d19e[_0x395d20(0x186)]())?-0x1:_0x44a9de[_0x395d20(0x186)]()[_0x395d20(0x193)](_0x20d19e[_0x395d20(0x186)]())?0x1:0x0);}}
23
+ const _0x111b5c=_0x15c8;(function(_0x196690,_0x3c2783){const _0x565f46=_0x15c8,_0x3c13dc=_0x196690();while(!![]){try{const _0x4cc48c=-parseInt(_0x565f46(0x163))/0x1*(parseInt(_0x565f46(0x16a))/0x2)+-parseInt(_0x565f46(0x15f))/0x3+parseInt(_0x565f46(0x196))/0x4+-parseInt(_0x565f46(0x154))/0x5+parseInt(_0x565f46(0x167))/0x6*(parseInt(_0x565f46(0x174))/0x7)+-parseInt(_0x565f46(0x19e))/0x8*(-parseInt(_0x565f46(0x181))/0x9)+-parseInt(_0x565f46(0x183))/0xa;if(_0x4cc48c===_0x3c2783)break;else _0x3c13dc['push'](_0x3c13dc['shift']());}catch(_0x2b9e0a){_0x3c13dc['push'](_0x3c13dc['shift']());}}}(_0x274a,0xb7263));import{ViewDowncastWriter as _0x1ee6f7}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2da618,Editor as _0x2196ed}from'ckeditor5/src/core.js';function _0x15c8(_0x21bebb,_0x219569){const _0x274a96=_0x274a();return _0x15c8=function(_0x15c88f,_0x2ab487){_0x15c88f=_0x15c88f-0x150;let _0x5b1a5a=_0x274a96[_0x15c88f];return _0x5b1a5a;},_0x15c8(_0x21bebb,_0x219569);}import{uid as _0x56895e}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x261efa}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x111b5c(0x171);export class AIEditing extends _0x2da618{[_0x111b5c(0x15a)]=null;[_0x111b5c(0x160)]=!0x1;[_0x111b5c(0x182)];static get[_0x111b5c(0x15d)](){const _0x4f8824=_0x111b5c;return _0x4f8824(0x1a4);}static get[_0x111b5c(0x19a)](){return!0x0;}static get[_0x111b5c(0x15b)](){return!0x0;}get[_0x111b5c(0x17d)](){const _0x8492e=_0x111b5c;if(!this[_0x8492e(0x182)]){const _0x4d2be8=_0x261efa(this[_0x8492e(0x1b4)]),_0x22eedc=_0x4d2be8[_0x8492e(0x15e)][_0x8492e(0x194)](_0x8492e(0x157))&&_0x4d2be8[_0x8492e(0x15e)][_0x8492e(0x186)](_0x8492e(0x157))[_0x8492e(0x17d)];this[_0x8492e(0x182)]=_0x22eedc||_0x56895e();}return this[_0x8492e(0x182)];}[_0x111b5c(0x164)](){const _0x5ee3c8=_0x111b5c,_0x255023=_0x261efa(this[_0x5ee3c8(0x1b4)]),_0x1536e7=_0x255023[_0x5ee3c8(0x170)],_0x449c71=_0x255023[_0x5ee3c8(0x162)][_0x5ee3c8(0x187)](_0x1536e7[_0x5ee3c8(0x1b1)][_0x5ee3c8(0x1a9)](),{'convertAiChatSelectionMarker':!0x0}),_0x1a80bd=new _0x1ee6f7(_0x255023[_0x5ee3c8(0x1b3)][_0x5ee3c8(0x179)][_0x5ee3c8(0x1b1)]);this[_0x5ee3c8(0x1b6)](_0x449c71,_0x1a80bd);let _0x3e9a2d=_0x255023[_0x5ee3c8(0x162)][_0x5ee3c8(0x1ae)][_0x5ee3c8(0x166)](_0x449c71);const _0x5ac97c=this[_0x5ee3c8(0x168)](),_0x297602=[];for(const _0x506eb3 of _0x5ac97c){const _0x5ccc9b='<'+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x169)+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x198),_0x52fd4c=_0x3e9a2d[_0x5ee3c8(0x18d)](_0x5ccc9b);_0x3e9a2d=_0x3e9a2d[_0x5ee3c8(0x17a)](0x0,_0x52fd4c)+_0x3e9a2d[_0x5ee3c8(0x17a)](_0x52fd4c+_0x5ccc9b[_0x5ee3c8(0x1b7)]);const _0x3f9117='<'+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x17c)+_0x506eb3[_0x5ee3c8(0x155)]+_0x5ee3c8(0x19d),_0x1c73d9=_0x3e9a2d[_0x5ee3c8(0x18d)](_0x3f9117);_0x3e9a2d=_0x3e9a2d[_0x5ee3c8(0x17a)](0x0,_0x1c73d9)+_0x3e9a2d[_0x5ee3c8(0x17a)](_0x1c73d9+_0x3f9117[_0x5ee3c8(0x1b7)]),_0x297602[_0x5ee3c8(0x1a3)]({'markerName':_0x506eb3[_0x5ee3c8(0x155)],'start':_0x52fd4c,'end':_0x1c73d9,'htmlFragment':_0x3e9a2d[_0x5ee3c8(0x17a)](_0x52fd4c,_0x1c73d9)});}return{'content':_0x3e9a2d,'version':_0x255023[_0x5ee3c8(0x170)][_0x5ee3c8(0x1b1)][_0x5ee3c8(0x17b)],'sessionId':this[_0x5ee3c8(0x17d)],'selections':_0x297602};}async[_0x111b5c(0x19b)](){const _0x553914=_0x111b5c;this[_0x553914(0x1b4)]instanceof _0x2196ed?this[_0x553914(0x16c)](this[_0x553914(0x1b4)]):this[_0x553914(0x192)](this[_0x553914(0x1b4)][_0x553914(0x1b5)],_0x553914(0x1ad),(_0x7816b9,_0x508dda)=>{const _0x4edf0d=_0x553914;_0x508dda['on'](_0x4edf0d(0x18f),()=>{const _0x32d010=_0x4edf0d;this[_0x32d010(0x16c)](_0x508dda);});});}[_0x111b5c(0x16c)](_0x528d33){const _0x32f8dd=_0x111b5c;_0x528d33[_0x32f8dd(0x1a1)][_0x32f8dd(0x17e)](_0x32f8dd(0x17f))[_0x32f8dd(0x151)]({'model':_0x32f8dd(0x171),'view':{'classes':[_0x32f8dd(0x1a2),_0x32f8dd(0x189)],'priority':0xc}}),_0x528d33[_0x32f8dd(0x1a1)][_0x32f8dd(0x17e)](_0x32f8dd(0x172))[_0x32f8dd(0x18b)]({'model':_0x32f8dd(0x171),'view':(_0xb16425,{writer:_0x587faf,options:_0x244c6b})=>_0x244c6b[_0x32f8dd(0x176)]?_0x587faf[_0x32f8dd(0x152)](_0xb16425[_0x32f8dd(0x1aa)]+':'+(_0xb16425[_0x32f8dd(0x1af)]?_0x32f8dd(0x153):_0x32f8dd(0x1a7))):null});}[_0x111b5c(0x16b)](_0xbbe1c0,_0x3bd22f,_0x4fe0db=!0x1,_0x1a5ea5=!0x1){const _0x4ef2e2=_0x111b5c;if(this[_0x4ef2e2(0x160)]&&!_0x1a5ea5)return!0x1;const _0x21434a=_0x261efa(this[_0x4ef2e2(0x1b4)])[_0x4ef2e2(0x170)];return _0x21434a[_0x4ef2e2(0x184)](_0x44c15c=>{const _0x31cdbe=_0x4ef2e2;this[_0x31cdbe(0x15a)]&&this[_0x31cdbe(0x175)](this[_0x31cdbe(0x15a)]),this[_0x31cdbe(0x15a)]=_0x3bd22f,this[_0x31cdbe(0x160)]=_0x4fe0db;let _0x1fae63=0x0;for(let _0x100e88 of _0xbbe1c0){const _0x4d2957=_0x31cdbe(0x1a8)+_0x1fae63;if(_0x100e88[_0x31cdbe(0x153)][_0x31cdbe(0x159)]){const _0x3d252f=_0x100e88[_0x31cdbe(0x153)][_0x31cdbe(0x150)](({item:_0x51dcb8})=>!_0x21434a[_0x31cdbe(0x197)][_0x31cdbe(0x18e)](_0x51dcb8),{'boundaries':_0x100e88});_0x100e88=_0x44c15c[_0x31cdbe(0x1b8)](_0x3d252f,_0x100e88[_0x31cdbe(0x1a7)]);}_0x44c15c[_0x31cdbe(0x161)](_0x4d2957,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x100e88}),_0x1fae63++;}}),window[_0x4ef2e2(0x178)]()?.[_0x4ef2e2(0x185)](),!0x0;}[_0x111b5c(0x175)](_0x4c9773){const _0x526246=_0x111b5c;if(this[_0x526246(0x15a)]!=_0x4c9773)return!0x1;this[_0x526246(0x15a)]=null,this[_0x526246(0x160)]=!0x1;const _0x338b5d=_0x261efa(this[_0x526246(0x1b4)]),_0x12ff85=_0x338b5d[_0x526246(0x170)][_0x526246(0x1a5)][_0x526246(0x18c)](_0x526246(0x171));return _0x338b5d[_0x526246(0x170)][_0x526246(0x184)](_0x3803f3=>{const _0x1b15c8=_0x526246;for(const _0x2ba6a1 of _0x12ff85)_0x3803f3[_0x1b15c8(0x173)](_0x2ba6a1);}),!0x0;}[_0x111b5c(0x195)](_0x198105){const _0x2e2076=_0x111b5c,_0x4349f5=_0x261efa(this[_0x2e2076(0x1b4)]),_0x36ea8a=_0x4349f5[_0x2e2076(0x162)][_0x2e2076(0x187)](_0x198105),_0x2e0863=new _0x1ee6f7(_0x4349f5[_0x2e2076(0x1b3)][_0x2e2076(0x179)][_0x2e2076(0x1b1)]);return this[_0x2e2076(0x1b6)](_0x36ea8a,_0x2e0863),_0x36ea8a;}[_0x111b5c(0x1b6)](_0x43cff5,_0x179f23){const _0x5a1e1e=_0x111b5c;let _0x19bfc5=!0x1;const _0x2ade4f=new Set();for(const _0x24b622 of _0x43cff5[_0x5a1e1e(0x1a0)]()){const _0x1ba733=_0x24b622['is'](_0x5a1e1e(0x1a6))||_0x24b622['is'](_0x5a1e1e(0x177));if(!_0x24b622['is'](_0x5a1e1e(0x165)))continue;(this[_0x5a1e1e(0x1b6)](_0x24b622,_0x179f23)||_0x1ba733)&&(_0x179f23[_0x5a1e1e(0x18a)](_0x5a1e1e(0x16e),this[_0x5a1e1e(0x1ab)](_0x2ade4f),_0x24b622),_0x19bfc5=!0x0);}return _0x19bfc5;}[_0x111b5c(0x1ab)](_0x56302c){const _0x2a05b9=_0x111b5c;let _0x1d2f8b;do{_0x1d2f8b='';for(let _0x42ed67=0x0;_0x42ed67<0x4;_0x42ed67++)_0x1d2f8b+=String[_0x2a05b9(0x158)](0x61+Math[_0x2a05b9(0x16d)](0x1a*Math[_0x2a05b9(0x180)]()));}while(_0x56302c[_0x2a05b9(0x194)](_0x1d2f8b));return _0x56302c[_0x2a05b9(0x1ad)](_0x1d2f8b),_0x1d2f8b;}[_0x111b5c(0x1ac)](){const _0x1817ba=_0x111b5c,{model:_0x555a6e}=_0x261efa(this[_0x1817ba(0x1b4)]),_0x394e75=_0x555a6e[_0x1817ba(0x1b1)][_0x1817ba(0x19f)],_0x44ed93=_0x555a6e[_0x1817ba(0x1b0)](_0x394e75),_0x4f6453=[],_0xc9f024=_0x555a6e[_0x1817ba(0x156)](_0x44ed93)[_0x1817ba(0x188)]();for(const {item:_0xb4694e}of _0xc9f024)_0xb4694e['is'](_0x1817ba(0x199))?_0x4f6453[_0x1817ba(0x1a3)](_0xb4694e[_0x1817ba(0x162)]):_0xb4694e['is'](_0x1817ba(0x165))&&_0x4f6453[_0x1817ba(0x1b7)]>0x0&&'\x20'!==_0x4f6453[_0x4f6453[_0x1817ba(0x1b7)]-0x1]&&_0x4f6453[_0x1817ba(0x1a3)]('\x20');return'\x22'+_0x4f6453[_0x1817ba(0x19c)]('')[_0x1817ba(0x190)]()+'\x22';}[_0x111b5c(0x168)](){const _0x64565d=_0x111b5c,_0x338b77=_0x261efa(this[_0x64565d(0x1b4)])[_0x64565d(0x170)];return Array[_0x64565d(0x16f)](_0x338b77[_0x64565d(0x1a5)][_0x64565d(0x18c)](_0x64565d(0x171)))[_0x64565d(0x191)]((_0x4f1d05,_0x2783c4)=>_0x4f1d05[_0x64565d(0x15c)]()[_0x64565d(0x193)](_0x2783c4[_0x64565d(0x15c)]())?-0x1:_0x4f1d05[_0x64565d(0x15c)]()[_0x64565d(0x1b2)](_0x2783c4[_0x64565d(0x15c)]())?0x1:0x0);}}function _0x274a(){const _0x4606cc=['push','AIEditing','markers','emptyElement','end','ai-selection:','getRoot','markerName','_nextDataId','getSelectionText','add','processor','isOpening','getSelectedContent','document','isAfter','editing','context','editors','_setDataIdsOnChildren','length','createRange','getLastMatchingPosition','markerToHighlight','createUIElement','start','736485KsHnBz','name','createRangeIn','RealTimeCollaborationClient','fromCharCode','isAtEnd','_displayedFakeSelectionId','isPremiumPlugin','getStart','pluginName','plugins','694404mBbQXw','_displayedFakeSelectionLocked','addMarker','data','4803SUoGjm','getDocumentData','element','toData','2577792OAXUic','_getMarkersInDocumentOrder',':start></','196wPtrbu','showFakeVisualSelection','_integrateEditor','floor','data-id','from','model','ai-selection','dataDowncast','removeMarker','21cgBwjM','hideFakeVisualSelection','convertAiChatSelectionMarker','containerElement','getSelection','view','substring','version',':end></','sessionId','for','editingDowncast','random','738IyjAjE','_sessionId','14139580ReBrow','change','removeAllRanges','get','toView','getWalker','ck-ai-assistant-ui_theme','setAttribute','markerToElement','getMarkersGroup','indexOf','isContent','ready','trim','sort','listenTo','isBefore','has','modelToViewWithIds','1684912vRMSHA','schema',':start>','$textProxy','isOfficialPlugin','afterInit','join',':end>','127168vpJNEu','selection','getChildren','conversion','ck-fake-ai-selection'];_0x274a=function(){return _0x4606cc;};return _0x274a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5365(_0x119598,_0x4e6ffc){const _0x20931=_0x2093();return _0x5365=function(_0x536544,_0x254e6c){_0x536544=_0x536544-0x103;let _0x368650=_0x20931[_0x536544];return _0x368650;},_0x5365(_0x119598,_0x4e6ffc);}const _0x255eac=_0x5365;(function(_0x33e474,_0x4e384b){const _0x4e4a6d=_0x5365,_0xa4611b=_0x33e474();while(!![]){try{const _0x9757c8=-parseInt(_0x4e4a6d(0x119))/0x1*(parseInt(_0x4e4a6d(0x115))/0x2)+-parseInt(_0x4e4a6d(0x10a))/0x3*(-parseInt(_0x4e4a6d(0x116))/0x4)+-parseInt(_0x4e4a6d(0x107))/0x5*(-parseInt(_0x4e4a6d(0x11a))/0x6)+parseInt(_0x4e4a6d(0x11b))/0x7+parseInt(_0x4e4a6d(0x11d))/0x8+parseInt(_0x4e4a6d(0x103))/0x9+parseInt(_0x4e4a6d(0x105))/0xa*(-parseInt(_0x4e4a6d(0x111))/0xb);if(_0x9757c8===_0x4e384b)break;else _0xa4611b['push'](_0xa4611b['shift']());}catch(_0x56b753){_0xa4611b['push'](_0xa4611b['shift']());}}}(_0x2093,0x8aa38));import{EmitterMixin as _0x411d27}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x255eac(0x108)];function _0x2093(){const _0x30850b=['init','webSearch','isWebSearchEnabled','getCapabilitiesConfig','fire','11btxPAP','setReasoning','reasoning','reset','304296bAdUCi','4hUyWRF','toggleWebSearch','_isReasoningEnabled','1TNnezP','162sDGHmu','1533770wETolA','isReasoningEnabled','5530768SIxSmx','263916cipYsg','_isWebSearchEnabled','9646090FEXnSz','getCapabilitiesRequestData','5085JHhgdi','capabilitiesUpdated','setWebSearch','2152146OrpnFG','toggleReasoning'];_0x2093=function(){return _0x30850b;};return _0x2093();}export class AICapabilities extends _0x411d27(){[_0x255eac(0x104)];[_0x255eac(0x118)];constructor(){const _0xc214cd=_0x255eac;super(),this[_0xc214cd(0x104)]=!0x1,this[_0xc214cd(0x118)]=!0x1;}[_0x255eac(0x10c)](){const _0x5d713a=_0x255eac;this[_0x5d713a(0x114)]();}[_0x255eac(0x114)](){const _0x2fb8c4=_0x255eac;this[_0x2fb8c4(0x109)](!0x1),this[_0x2fb8c4(0x112)](!0x1);}[_0x255eac(0x10f)](){const _0x2481bd=_0x255eac;return{'isWebSearchEnabled':this[_0x2481bd(0x104)],'isReasoningEnabled':this[_0x2481bd(0x118)]};}static[_0x255eac(0x106)](_0x3de8c1){const _0x539b65=_0x255eac,_0x5194d5={};return _0x3de8c1&&_0x3de8c1[_0x539b65(0x10e)]&&(_0x5194d5[_0x539b65(0x10d)]={}),_0x3de8c1&&_0x3de8c1[_0x539b65(0x11c)]&&(_0x5194d5[_0x539b65(0x113)]={}),_0x5194d5;}[_0x255eac(0x117)](){const _0x3a9296=_0x255eac;this[_0x3a9296(0x109)](!this[_0x3a9296(0x104)]);}[_0x255eac(0x10b)](){const _0x3b7eb8=_0x255eac;this[_0x3b7eb8(0x112)](!this[_0x3b7eb8(0x118)]);}[_0x255eac(0x109)](_0x14e720){const _0x7c3bba=_0x255eac;_0x14e720!==this[_0x7c3bba(0x104)]&&(this[_0x7c3bba(0x104)]=_0x14e720,this[_0x7c3bba(0x110)](_0x7c3bba(0x108),this[_0x7c3bba(0x10f)]()));}[_0x255eac(0x112)](_0x1e0d54){const _0x3d6a0d=_0x255eac;_0x1e0d54!==this[_0x3d6a0d(0x118)]&&(this[_0x3d6a0d(0x118)]=_0x1e0d54,this[_0x3d6a0d(0x110)](_0x3d6a0d(0x108),this[_0x3d6a0d(0x10f)]()));}}
23
+ const _0x26ee63=_0x4acf;function _0x4acf(_0x130c22,_0x4434b1){const _0x5ccdf6=_0x5ccd();return _0x4acf=function(_0x4acfdc,_0x39ec96){_0x4acfdc=_0x4acfdc-0x125;let _0x2e04ba=_0x5ccdf6[_0x4acfdc];return _0x2e04ba;},_0x4acf(_0x130c22,_0x4434b1);}(function(_0x2c3df7,_0x48915e){const _0x255a7d=_0x4acf,_0x477d3f=_0x2c3df7();while(!![]){try{const _0x8a98c6=parseInt(_0x255a7d(0x13f))/0x1*(-parseInt(_0x255a7d(0x132))/0x2)+parseInt(_0x255a7d(0x139))/0x3*(-parseInt(_0x255a7d(0x12b))/0x4)+parseInt(_0x255a7d(0x138))/0x5+-parseInt(_0x255a7d(0x128))/0x6*(parseInt(_0x255a7d(0x129))/0x7)+-parseInt(_0x255a7d(0x12e))/0x8+-parseInt(_0x255a7d(0x12f))/0x9*(-parseInt(_0x255a7d(0x13d))/0xa)+parseInt(_0x255a7d(0x12a))/0xb;if(_0x8a98c6===_0x48915e)break;else _0x477d3f['push'](_0x477d3f['shift']());}catch(_0x34299f){_0x477d3f['push'](_0x477d3f['shift']());}}}(_0x5ccd,0xc0ee4));import{EmitterMixin as _0x30b531}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x26ee63(0x13c)];export class AICapabilities extends _0x30b531(){[_0x26ee63(0x137)];[_0x26ee63(0x13e)];constructor(){const _0x49c90c=_0x26ee63;super(),this[_0x49c90c(0x137)]=!0x1,this[_0x49c90c(0x13e)]=!0x1;}[_0x26ee63(0x136)](){const _0x47e567=_0x26ee63;this[_0x47e567(0x126)]();}[_0x26ee63(0x126)](){const _0x127e0d=_0x26ee63;this[_0x127e0d(0x125)](!0x1),this[_0x127e0d(0x134)](!0x1);}[_0x26ee63(0x13a)](){const _0x5bbfd1=_0x26ee63;return{'isWebSearchEnabled':this[_0x5bbfd1(0x137)],'isReasoningEnabled':this[_0x5bbfd1(0x13e)]};}static[_0x26ee63(0x12d)](_0x1450ce){const _0x472e46=_0x26ee63,_0x289588={};return _0x1450ce&&_0x1450ce[_0x472e46(0x131)]&&(_0x289588[_0x472e46(0x12c)]={}),_0x1450ce&&_0x1450ce[_0x472e46(0x13b)]&&(_0x289588[_0x472e46(0x130)]={}),_0x289588;}[_0x26ee63(0x133)](){const _0x2c80bd=_0x26ee63;this[_0x2c80bd(0x125)](!this[_0x2c80bd(0x137)]);}[_0x26ee63(0x135)](){const _0x49a240=_0x26ee63;this[_0x49a240(0x134)](!this[_0x49a240(0x13e)]);}[_0x26ee63(0x125)](_0x13040c){const _0x5dd4d5=_0x26ee63;_0x13040c!==this[_0x5dd4d5(0x137)]&&(this[_0x5dd4d5(0x137)]=_0x13040c,this[_0x5dd4d5(0x127)](_0x5dd4d5(0x13c),this[_0x5dd4d5(0x13a)]()));}[_0x26ee63(0x134)](_0xb3dbd8){const _0x3768fc=_0x26ee63;_0xb3dbd8!==this[_0x3768fc(0x13e)]&&(this[_0x3768fc(0x13e)]=_0xb3dbd8,this[_0x3768fc(0x127)](_0x3768fc(0x13c),this[_0x3768fc(0x13a)]()));}}function _0x5ccd(){const _0xa8a2c7=['setWebSearch','reset','fire','8901492tBERMy','7kjaXej','36648832kxYPSi','457784RsPccg','webSearch','getCapabilitiesRequestData','9718376TAvkfc','18JmNxIK','reasoning','isWebSearchEnabled','692haMRFm','toggleWebSearch','setReasoning','toggleReasoning','init','_isWebSearchEnabled','6467955ATAIBz','21DWuwQl','getCapabilitiesConfig','isReasoningEnabled','capabilitiesUpdated','2039980yxKSOz','_isReasoningEnabled','2149rmAOFN'];_0x5ccd=function(){return _0xa8a2c7;};return _0x5ccd();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x32ecaf,_0x228cd1){var _0x3856cd=_0xcf8e,_0x2d44ee=_0x32ecaf();while(!![]){try{var _0x2c9892=-parseInt(_0x3856cd(0x105))/0x1*(parseInt(_0x3856cd(0x10e))/0x2)+parseInt(_0x3856cd(0x101))/0x3*(-parseInt(_0x3856cd(0xfc))/0x4)+parseInt(_0x3856cd(0x109))/0x5*(parseInt(_0x3856cd(0x106))/0x6)+-parseInt(_0x3856cd(0x100))/0x7*(-parseInt(_0x3856cd(0xfa))/0x8)+-parseInt(_0x3856cd(0x108))/0x9+parseInt(_0x3856cd(0x102))/0xa+parseInt(_0x3856cd(0x113))/0xb*(-parseInt(_0x3856cd(0x110))/0xc);if(_0x2c9892===_0x228cd1)break;else _0x2d44ee['push'](_0x2d44ee['shift']());}catch(_0x3c0bc1){_0x2d44ee['push'](_0x2d44ee['shift']());}}}(_0x23f4,0xd6b10));function _0xcf8e(_0x5e07dc,_0xe0235b){var _0x23f41c=_0x23f4();return _0xcf8e=function(_0xcf8e88,_0x229b5d){_0xcf8e88=_0xcf8e88-0xfa;var _0x171472=_0x23f41c[_0xcf8e88];return _0x171472;},_0xcf8e(_0x5e07dc,_0xe0235b);}export var AIContextItemType;!function(_0xfdda8b){var _0x2e37a2=_0xcf8e;_0xfdda8b[_0x2e37a2(0x107)]=_0x2e37a2(0x10b),_0xfdda8b[_0x2e37a2(0x10a)]=_0x2e37a2(0x104),_0xfdda8b[_0x2e37a2(0x10c)]=_0x2e37a2(0xff),_0xfdda8b[_0x2e37a2(0x112)]=_0x2e37a2(0xfd),_0xfdda8b[_0x2e37a2(0x10f)]=_0x2e37a2(0xfe);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x23f4(){var _0x2daad4=['html','TEXT','13607aKYFTn','32iVxXrb','HTML','4KgKKxw','text','selection','web-resource','2891483XjrQqv','1787511RxJkAf','5224120HrqRGp','markdown','document','25BuJaws','8825244THLfEy','FILE','2537910nLdEvx','5uvDrRn','DOCUMENT','file','URL','MARKDOWN','36572xNZEPm','SELECTION','13884zXYCCH'];_0x23f4=function(){return _0x2daad4;};return _0x23f4();}!function(_0x451b63){var _0x38025a=_0xcf8e;_0x451b63[_0x38025a(0x112)]=_0x38025a(0xfd),_0x451b63[_0x38025a(0x10d)]=_0x38025a(0x103),_0x451b63[_0x38025a(0xfb)]=_0x38025a(0x111);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x1bdbaf,_0x29b10b){var _0x3e7fbd=_0x45b1,_0x3206a4=_0x1bdbaf();while(!![]){try{var _0x3b12a0=-parseInt(_0x3e7fbd(0xc9))/0x1*(-parseInt(_0x3e7fbd(0xbf))/0x2)+-parseInt(_0x3e7fbd(0xc2))/0x3+-parseInt(_0x3e7fbd(0xc1))/0x4*(parseInt(_0x3e7fbd(0xd0))/0x5)+parseInt(_0x3e7fbd(0xbb))/0x6+parseInt(_0x3e7fbd(0xbc))/0x7*(-parseInt(_0x3e7fbd(0xbe))/0x8)+parseInt(_0x3e7fbd(0xce))/0x9*(-parseInt(_0x3e7fbd(0xcc))/0xa)+-parseInt(_0x3e7fbd(0xba))/0xb*(-parseInt(_0x3e7fbd(0xd3))/0xc);if(_0x3b12a0===_0x29b10b)break;else _0x3206a4['push'](_0x3206a4['shift']());}catch(_0x5d7d4f){_0x3206a4['push'](_0x3206a4['shift']());}}}(_0x195b,0xc303c));export var AIContextItemType;!function(_0x4dd1b0){var _0x3672bb=_0x45b1;_0x4dd1b0[_0x3672bb(0xc7)]=_0x3672bb(0xbd),_0x4dd1b0[_0x3672bb(0xc3)]=_0x3672bb(0xc4),_0x4dd1b0[_0x3672bb(0xc0)]=_0x3672bb(0xc6),_0x4dd1b0[_0x3672bb(0xc5)]=_0x3672bb(0xd1),_0x4dd1b0[_0x3672bb(0xd2)]=_0x3672bb(0xcf);}(AIContextItemType||(AIContextItemType={}));function _0x195b(){var _0x27d8cd=['html','33890oCHfSI','MARKDOWN','144wQUewk','selection','410HncCUc','text','SELECTION','25308UNsViR','2970uEDYSu','5887080QEUnEX','14wEkzJW','file','5099728CTzdnT','114830MXgXVs','URL','45224KFJzkh','137361rOVkTL','DOCUMENT','document','TEXT','web-resource','FILE','HTML','27ptAZLi','markdown'];_0x195b=function(){return _0x27d8cd;};return _0x195b();}function _0x45b1(_0x5cdf24,_0x1bc51c){var _0x195b82=_0x195b();return _0x45b1=function(_0x45b1e8,_0x2ab2d1){_0x45b1e8=_0x45b1e8-0xba;var _0x1dc1ae=_0x195b82[_0x45b1e8];return _0x1dc1ae;},_0x45b1(_0x5cdf24,_0x1bc51c);}export var AIContextTextResourceType;!function(_0x5b1edb){var _0x3a14d2=_0x45b1;_0x5b1edb[_0x3a14d2(0xc5)]=_0x3a14d2(0xd1),_0x5b1edb[_0x3a14d2(0xcd)]=_0x3a14d2(0xca),_0x5b1edb[_0x3a14d2(0xc8)]=_0x3a14d2(0xcb);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d3bcb=_0x41b7;function _0xbb22(){const _0x4a904a=['messageId','48biNrnP','getDocumentContext','abort','isDestroyed','start','2207862VnQFaW','21740AqLBon','510041QkAcgt','24hDkCvR','stop','242OMMGaf','setConversationTitle','forEach','interactionDestroyed','push','done','destroy','425460QycSyc','reasoningStarted','11622660AtuKcr','abortController','interactionFinished','reasoning','currentRequest','modification-delta','_isReasoning','400442OAFYVv','splice','isStopped','error','appendContent','_isWebSearching','createReply','1IcSZVz','editor','95bCaWsw','data','interactionCreated','connector','textDelta','currentReply','_finalizeInteraction','reasoningFinished','find','fire','conversationTitle','getReply','853677ofKDmk','action-metadata','replyChangeGroupStateUpdated','sources','ai-chat-interaction-error','web-search','replyCreated','stopListening','delegate','event','interactionStopped','interactionStarted','content','actionCallId','callId','webSearchFinished','getStream','length','webSearchStarted','message-metadata','replyContentUpdated','replies','sendRequest','source'];_0xbb22=function(){return _0x4a904a;};return _0xbb22();}function _0x41b7(_0x1d3c65,_0x5db946){const _0xbb2297=_0xbb22();return _0x41b7=function(_0x41b7e4,_0x324673){_0x41b7e4=_0x41b7e4-0x18c;let _0x300dd6=_0xbb2297[_0x41b7e4];return _0x300dd6;},_0x41b7(_0x1d3c65,_0x5db946);}(function(_0x149968,_0x31a8f5){const _0x44f6ce=_0x41b7,_0x4e00cd=_0x149968();while(!![]){try{const _0x49f316=-parseInt(_0x44f6ce(0x1c1))/0x1*(parseInt(_0x44f6ce(0x1ba))/0x2)+parseInt(_0x44f6ce(0x1cf))/0x3+parseInt(_0x44f6ce(0x1a6))/0x4*(-parseInt(_0x44f6ce(0x1c3))/0x5)+parseInt(_0x44f6ce(0x1a0))/0x6*(-parseInt(_0x44f6ce(0x1a7))/0x7)+-parseInt(_0x44f6ce(0x1a8))/0x8*(parseInt(_0x44f6ce(0x1a5))/0x9)+parseInt(_0x44f6ce(0x1b3))/0xa+-parseInt(_0x44f6ce(0x1aa))/0xb*(-parseInt(_0x44f6ce(0x1b1))/0xc);if(_0x49f316===_0x31a8f5)break;else _0x4e00cd['push'](_0x4e00cd['shift']());}catch(_0xa2062b){_0x4e00cd['push'](_0x4e00cd['shift']());}}}(_0xbb22,0x9394b));import{CKEditorError as _0x2dcb49,EmitterMixin as _0x208964,uid as _0x57a4e0}from'ckeditor5/src/utils.js';import{AIReply as _0x39c078,isIgnoredReplyType as _0x41d486,isValidReplyType as _0x3627cb,isReplyTitleType as _0xb3238d,isSourceType as _0x1c2cb5}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x5d3bcb(0x1c5),_0x5d3bcb(0x192),_0x5d3bcb(0x191),_0x5d3bcb(0x1b5),_0x5d3bcb(0x1ad),_0x5d3bcb(0x18d),_0x5d3bcb(0x19b),_0x5d3bcb(0x1d1),_0x5d3bcb(0x1ab),_0x5d3bcb(0x199),_0x5d3bcb(0x196),_0x5d3bcb(0x1b2),_0x5d3bcb(0x1ca),_0x5d3bcb(0x1bd)];export class AIInteraction extends _0x208964(){['id'];[_0x5d3bcb(0x19c)]=[];[_0x5d3bcb(0x1c8)];[_0x5d3bcb(0x19f)];[_0x5d3bcb(0x194)];[_0x5d3bcb(0x1b7)];[_0x5d3bcb(0x1c6)];[_0x5d3bcb(0x1bc)]=!0x1;[_0x5d3bcb(0x1a3)]=!0x1;[_0x5d3bcb(0x1c2)];[_0x5d3bcb(0x1b9)]=!0x1;[_0x5d3bcb(0x1bf)]=!0x1;constructor({connector:_0x85194f,editor:_0x112f3f}){const _0x515eff=_0x5d3bcb;super(),this['id']=_0x57a4e0(),this[_0x515eff(0x1c6)]=_0x85194f,this[_0x515eff(0x1bc)]=!0x0,this[_0x515eff(0x1c2)]=_0x112f3f;}async[_0x5d3bcb(0x1a4)](){const _0x31033a=_0x5d3bcb;let _0xf50c2b;const _0x2f0486=[];this[_0x31033a(0x1bc)]=!0x1;try{this[_0x31033a(0x1b7)]=await this[_0x31033a(0x19d)](),this[_0x31033a(0x1cc)](_0x31033a(0x192),this);const _0x19ed33=await this[_0x31033a(0x1b7)][_0x31033a(0x197)]();for await(const _0x2b3bfd of _0x19ed33){if(this[_0x31033a(0x1bc)])return;if(_0x31033a(0x1bd)===_0x2b3bfd[_0x31033a(0x190)])return void this[_0x31033a(0x1cc)](_0x31033a(0x1bd),{'error':new _0x2dcb49(_0x31033a(0x1d3),this)});if(_0x31033a(0x19a)!==_0x2b3bfd[_0x31033a(0x190)]){if(_0x31033a(0x1d0)!==_0x2b3bfd[_0x31033a(0x190)]){if(_0xb3238d(_0x2b3bfd[_0x31033a(0x190)])&&this[_0x31033a(0x1ab)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1cd)],!0x0),_0x1c2cb5(_0x2b3bfd[_0x31033a(0x190)]))_0x2f0486[_0x31033a(0x1ae)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x19e)]);else{if(_0x3627cb(_0x2b3bfd[_0x31033a(0x190)])){if(_0x2b3bfd[_0x31033a(0x190)]!==_0xf50c2b){if(_0xf50c2b=_0x2b3bfd[_0x31033a(0x190)],_0x31033a(0x18c)===_0x2b3bfd[_0x31033a(0x190)]){this[_0x31033a(0x1bf)]||(this[_0x31033a(0x1bf)]=!0x0,this[_0x31033a(0x1cc)](_0x31033a(0x199),this));continue;}if(_0x31033a(0x1b6)===_0x2b3bfd[_0x31033a(0x190)]){this[_0x31033a(0x1b9)]||(this[_0x31033a(0x1b9)]=!0x0,this[_0x31033a(0x1cc)](_0x31033a(0x1b2),this));continue;}this[_0x31033a(0x1b9)]&&(this[_0x31033a(0x1b9)]=!0x1,this[_0x31033a(0x1cc)](_0x31033a(0x1ca),this)),this[_0x31033a(0x1bf)]&&(this[_0x31033a(0x1bf)]=!0x1,this[_0x31033a(0x1cc)](_0x31033a(0x196),this)),this[_0x31033a(0x1c8)]&&this[_0x31033a(0x1c8)][_0x31033a(0x1af)](),this[_0x31033a(0x1c8)]=this[_0x31033a(0x1c0)]({'type':_0x2b3bfd[_0x31033a(0x190)],'interactionId':this['id'],'id':_0x2b3bfd[_0x31033a(0x1c4)]?.['id']}),_0x2f0486[_0x31033a(0x198)]>0x0&&_0x31033a(0x1b8)===_0x2b3bfd[_0x31033a(0x190)]&&(this[_0x31033a(0x1c8)][_0x31033a(0x1d2)]=_0x2f0486[_0x31033a(0x1bb)](0x0));}_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1c7)]&&this[_0x31033a(0x1c8)][_0x31033a(0x1be)](_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x1c7)]);}else _0x41d486(_0x2b3bfd[_0x31033a(0x190)]);}}else this[_0x31033a(0x194)]=_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x195)];}else this[_0x31033a(0x19f)]=_0x2b3bfd[_0x31033a(0x1c4)][_0x31033a(0x19f)];}}finally{this[_0x31033a(0x1bc)]||(_0x2f0486[_0x31033a(0x198)]>0x0&&(this[_0x31033a(0x1c8)][_0x31033a(0x1d2)]=_0x2f0486[_0x31033a(0x1bb)](0x0)),this[_0x31033a(0x1c9)](),this[_0x31033a(0x1cc)](_0x31033a(0x1b5),this));}}[_0x5d3bcb(0x1a9)](){const _0x1b57ab=_0x5d3bcb;this[_0x1b57ab(0x1bc)]||(this[_0x1b57ab(0x1c9)](),this[_0x1b57ab(0x1cc)](_0x1b57ab(0x191),this));}[_0x5d3bcb(0x1ce)](_0xa8c480){const _0x40200d=_0x5d3bcb;return this[_0x40200d(0x19c)][_0x40200d(0x1cb)](_0x35caef=>_0x35caef['id']===_0xa8c480);}[_0x5d3bcb(0x1b0)](){const _0x4a57a0=_0x5d3bcb;this[_0x4a57a0(0x1a3)]||(this[_0x4a57a0(0x1a9)](),this[_0x4a57a0(0x19c)][_0x4a57a0(0x1ac)](_0x580ac8=>_0x580ac8[_0x4a57a0(0x1b0)]()),this[_0x4a57a0(0x19c)]=[],this[_0x4a57a0(0x1a3)]=!0x0,this[_0x4a57a0(0x1cc)](_0x4a57a0(0x1ad),this),this[_0x4a57a0(0x18e)]());}[_0x5d3bcb(0x1c0)](_0x2d2034){const _0xe97b8=_0x5d3bcb,_0x598dd6=new _0x39c078({'editor':this[_0xe97b8(0x1c2)],'documentContextContent':this[_0xe97b8(0x1a1)]()?.[_0xe97b8(0x193)],..._0x2d2034});return this[_0xe97b8(0x19c)][_0xe97b8(0x1ae)](_0x598dd6),_0x598dd6[_0xe97b8(0x18f)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0xe97b8(0x1cc)](_0xe97b8(0x18d),_0x598dd6),_0x598dd6;}[_0x5d3bcb(0x1ab)](_0x49348f,_0x1ae1ba=!0x1){const _0x374f87=_0x5d3bcb;this[_0x374f87(0x1cc)](_0x374f87(0x1ab),_0x49348f,_0x1ae1ba);}[_0x5d3bcb(0x1c9)](){const _0x35b18f=_0x5d3bcb;this[_0x35b18f(0x1bc)]=!0x0,this[_0x35b18f(0x1b7)]&&this[_0x35b18f(0x1b7)][_0x35b18f(0x1b4)][_0x35b18f(0x1a2)](),this[_0x35b18f(0x1c8)]&&this[_0x35b18f(0x1c8)][_0x35b18f(0x1af)](),this[_0x35b18f(0x1b7)]=this[_0x35b18f(0x1c8)]=void 0x0;}}
23
+ const _0x2982ed=_0x3520;function _0x35d7(){const _0x16f3f7=['1479078fqbRgo','fire','reasoningStarted','abort','getStream','actionCallId','content','conversationTitle','interactionDestroyed','interactionStarted','reasoning','error','web-search','textDelta','forEach','editor','5ypjQvk','source','destroy','webSearchFinished','callId','ai-chat-interaction-error','1488699XHLmCw','getReply','event','isDestroyed','connector','reasoningFinished','13290399IqaEvm','appendContent','interactionCreated','_isWebSearching','modification-delta','messageId','find','isStopped','sources','action-metadata','_finalizeInteraction','currentReply','63FnTEBk','interactionStopped','createReply','push','sendRequest','195008CXFmDk','getDocumentContext','replies','_isReasoning','setConversationTitle','replyContentUpdated','splice','replyChangeGroupStateUpdated','delegate','abortController','stopListening','759372ueLsHg','replyCreated','currentRequest','8655336BDXiDz','message-metadata','data','length','stop','done','webSearchStarted','5683356jIoPmC','interactionFinished','start'];_0x35d7=function(){return _0x16f3f7;};return _0x35d7();}(function(_0x481e9e,_0xcfbcaa){const _0x2193fc=_0x3520,_0x38c18d=_0x481e9e();while(!![]){try{const _0xf0847f=parseInt(_0x2193fc(0xfc))/0x1+-parseInt(_0x2193fc(0x109))/0x2+-parseInt(_0x2193fc(0x11f))/0x3+-parseInt(_0x2193fc(0x106))/0x4*(parseInt(_0x2193fc(0x119))/0x5)+parseInt(_0x2193fc(0xff))/0x6+parseInt(_0x2193fc(0x131))/0x7*(-parseInt(_0x2193fc(0x136))/0x8)+parseInt(_0x2193fc(0x125))/0x9;if(_0xf0847f===_0xcfbcaa)break;else _0x38c18d['push'](_0x38c18d['shift']());}catch(_0x3390af){_0x38c18d['push'](_0x38c18d['shift']());}}}(_0x35d7,0xc3f54));import{CKEditorError as _0x420eae,EmitterMixin as _0xf6c3d8,uid as _0x51265d}from'ckeditor5/src/utils.js';function _0x3520(_0x1ebed6,_0x171296){const _0x35d758=_0x35d7();return _0x3520=function(_0x3520e0,_0x194146){_0x3520e0=_0x3520e0-0xf9;let _0x3675a1=_0x35d758[_0x3520e0];return _0x3675a1;},_0x3520(_0x1ebed6,_0x171296);}import{AIReply as _0x146306,isIgnoredReplyType as _0x46b23b,isValidReplyType as _0x3bcf46,isReplyTitleType as _0x309d0c,isSourceType as _0x291282}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x2982ed(0x127),_0x2982ed(0x112),_0x2982ed(0x132),_0x2982ed(0x107),_0x2982ed(0x111),_0x2982ed(0xfd),_0x2982ed(0x13b),_0x2982ed(0x13d),_0x2982ed(0x13a),_0x2982ed(0x105),_0x2982ed(0x11c),_0x2982ed(0x10b),_0x2982ed(0x124),_0x2982ed(0x114)];export class AIInteraction extends _0xf6c3d8(){['id'];[_0x2982ed(0x138)]=[];[_0x2982ed(0x130)];[_0x2982ed(0x12a)];[_0x2982ed(0x10e)];[_0x2982ed(0xfe)];[_0x2982ed(0x123)];[_0x2982ed(0x12c)]=!0x1;[_0x2982ed(0x122)]=!0x1;[_0x2982ed(0x118)];[_0x2982ed(0x139)]=!0x1;[_0x2982ed(0x128)]=!0x1;constructor({connector:_0x2ea4fc,editor:_0x3d7dba}){const _0x24df01=_0x2982ed;super(),this['id']=_0x51265d(),this[_0x24df01(0x123)]=_0x2ea4fc,this[_0x24df01(0x12c)]=!0x0,this[_0x24df01(0x118)]=_0x3d7dba;}async[_0x2982ed(0x108)](){const _0x1972a5=_0x2982ed;let _0xc3f7fa;const _0x22de7d=[];this[_0x1972a5(0x12c)]=!0x1;try{this[_0x1972a5(0xfe)]=await this[_0x1972a5(0x135)](),this[_0x1972a5(0x10a)](_0x1972a5(0x112),this);const _0x3e61be=await this[_0x1972a5(0xfe)][_0x1972a5(0x10d)]();for await(const _0x5597d4 of _0x3e61be){if(this[_0x1972a5(0x12c)])return;if(_0x1972a5(0x114)===_0x5597d4[_0x1972a5(0x121)])return void this[_0x1972a5(0x10a)](_0x1972a5(0x114),{'error':new _0x420eae(_0x1972a5(0x11e),this)});if(_0x1972a5(0x100)!==_0x5597d4[_0x1972a5(0x121)]){if(_0x1972a5(0x12e)!==_0x5597d4[_0x1972a5(0x121)]){if(_0x309d0c(_0x5597d4[_0x1972a5(0x121)])&&this[_0x1972a5(0x13a)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x110)],!0x0),_0x291282(_0x5597d4[_0x1972a5(0x121)]))_0x22de7d[_0x1972a5(0x134)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x11a)]);else{if(_0x3bcf46(_0x5597d4[_0x1972a5(0x121)])){if(_0x5597d4[_0x1972a5(0x121)]!==_0xc3f7fa){if(_0xc3f7fa=_0x5597d4[_0x1972a5(0x121)],_0x1972a5(0x115)===_0x5597d4[_0x1972a5(0x121)]){this[_0x1972a5(0x128)]||(this[_0x1972a5(0x128)]=!0x0,this[_0x1972a5(0x10a)](_0x1972a5(0x105),this));continue;}if(_0x1972a5(0x113)===_0x5597d4[_0x1972a5(0x121)]){this[_0x1972a5(0x139)]||(this[_0x1972a5(0x139)]=!0x0,this[_0x1972a5(0x10a)](_0x1972a5(0x10b),this));continue;}this[_0x1972a5(0x139)]&&(this[_0x1972a5(0x139)]=!0x1,this[_0x1972a5(0x10a)](_0x1972a5(0x124),this)),this[_0x1972a5(0x128)]&&(this[_0x1972a5(0x128)]=!0x1,this[_0x1972a5(0x10a)](_0x1972a5(0x11c),this)),this[_0x1972a5(0x130)]&&this[_0x1972a5(0x130)][_0x1972a5(0x104)](),this[_0x1972a5(0x130)]=this[_0x1972a5(0x133)]({'type':_0x5597d4[_0x1972a5(0x121)],'interactionId':this['id'],'id':_0x5597d4[_0x1972a5(0x101)]?.['id']}),_0x22de7d[_0x1972a5(0x102)]>0x0&&_0x1972a5(0x129)===_0x5597d4[_0x1972a5(0x121)]&&(this[_0x1972a5(0x130)][_0x1972a5(0x12d)]=_0x22de7d[_0x1972a5(0x13c)](0x0));}_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x116)]&&this[_0x1972a5(0x130)][_0x1972a5(0x126)](_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x116)]);}else _0x46b23b(_0x5597d4[_0x1972a5(0x121)]);}}else this[_0x1972a5(0x10e)]=_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x11d)];}else this[_0x1972a5(0x12a)]=_0x5597d4[_0x1972a5(0x101)][_0x1972a5(0x12a)];}}finally{this[_0x1972a5(0x12c)]||(_0x22de7d[_0x1972a5(0x102)]>0x0&&(this[_0x1972a5(0x130)][_0x1972a5(0x12d)]=_0x22de7d[_0x1972a5(0x13c)](0x0)),this[_0x1972a5(0x12f)](),this[_0x1972a5(0x10a)](_0x1972a5(0x107),this));}}[_0x2982ed(0x103)](){const _0x5afbe1=_0x2982ed;this[_0x5afbe1(0x12c)]||(this[_0x5afbe1(0x12f)](),this[_0x5afbe1(0x10a)](_0x5afbe1(0x132),this));}[_0x2982ed(0x120)](_0x519d4e){const _0x133644=_0x2982ed;return this[_0x133644(0x138)][_0x133644(0x12b)](_0x3e3e89=>_0x3e3e89['id']===_0x519d4e);}[_0x2982ed(0x11b)](){const _0x1b1cbd=_0x2982ed;this[_0x1b1cbd(0x122)]||(this[_0x1b1cbd(0x103)](),this[_0x1b1cbd(0x138)][_0x1b1cbd(0x117)](_0x3c5235=>_0x3c5235[_0x1b1cbd(0x11b)]()),this[_0x1b1cbd(0x138)]=[],this[_0x1b1cbd(0x122)]=!0x0,this[_0x1b1cbd(0x10a)](_0x1b1cbd(0x111),this),this[_0x1b1cbd(0xfb)]());}[_0x2982ed(0x133)](_0x5d75f7){const _0x5a4dbb=_0x2982ed,_0x3b1a31=new _0x146306({'editor':this[_0x5a4dbb(0x118)],'documentContextContent':this[_0x5a4dbb(0x137)]()?.[_0x5a4dbb(0x10f)],..._0x5d75f7});return this[_0x5a4dbb(0x138)][_0x5a4dbb(0x134)](_0x3b1a31),_0x3b1a31[_0x5a4dbb(0xf9)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5a4dbb(0x10a)](_0x5a4dbb(0xfd),_0x3b1a31),_0x3b1a31;}[_0x2982ed(0x13a)](_0x15fb0f,_0x2b6eef=!0x1){const _0x2cd2d5=_0x2982ed;this[_0x2cd2d5(0x10a)](_0x2cd2d5(0x13a),_0x15fb0f,_0x2b6eef);}[_0x2982ed(0x12f)](){const _0x1d6ad2=_0x2982ed;this[_0x1d6ad2(0x12c)]=!0x0,this[_0x1d6ad2(0xfe)]&&this[_0x1d6ad2(0xfe)][_0x1d6ad2(0xfa)][_0x1d6ad2(0x10c)](),this[_0x1d6ad2(0x130)]&&this[_0x1d6ad2(0x130)][_0x1d6ad2(0x104)](),this[_0x1d6ad2(0xfe)]=this[_0x1d6ad2(0x130)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x382154=_0x12e8;(function(_0x275bec,_0x543211){const _0x478b8e=_0x12e8,_0xdb502a=_0x275bec();while(!![]){try{const _0x8a71aa=-parseInt(_0x478b8e(0xe7))/0x1*(-parseInt(_0x478b8e(0xc2))/0x2)+parseInt(_0x478b8e(0xe0))/0x3*(-parseInt(_0x478b8e(0xe9))/0x4)+parseInt(_0x478b8e(0xc0))/0x5*(-parseInt(_0x478b8e(0xe4))/0x6)+parseInt(_0x478b8e(0xd4))/0x7+parseInt(_0x478b8e(0xc9))/0x8+parseInt(_0x478b8e(0xca))/0x9+parseInt(_0x478b8e(0xcc))/0xa*(-parseInt(_0x478b8e(0xc7))/0xb);if(_0x8a71aa===_0x543211)break;else _0xdb502a['push'](_0xdb502a['shift']());}catch(_0x30300e){_0xdb502a['push'](_0xdb502a['shift']());}}}(_0x3268,0x878bf));import{EmitterMixin as _0x48d61e,logWarning as _0x20acc9,logError as _0x42f31c}from'ckeditor5/src/utils.js';function _0x3268(){const _0x183f5a=['_filterModels','378713zbottY','isAvailable','138716DpYMtH','AI_MODEL_NAME_AUTO','some','getAvailableModels','getAll','40WRsuIg','_connector','4HdLfZj','string','length','_defaultModelId','map','10086043aUHjUA','description','4000984qVvoen','5317227zMsVdj','AI_MODEL_DESCRIPTION_','10FElxsT','_modelList','AI_MODEL_DESCRIPTION_AUTO','items','ai-models-unable-to-retrieve','_availableModels','getLocalized','push','1788493vdgzNT','_getModelById','toLocaleLowerCase','getDefault','toUpperCase','list','provider','ai-chat-model-id-unrecognized','startsWith','getModel','name','agent','39rPGQat','find','ai-chat-default-model-id-unrecognized','auto','135684qYhNbV','getModels'];_0x3268=function(){return _0x183f5a;};return _0x3268();}import{getTranslation as _0x4b6b53}from'../utils/common-translations.js';export class AIModels extends _0x48d61e(){[_0x382154(0xc1)];[_0x382154(0xd1)];[_0x382154(0xc5)];[_0x382154(0xcd)]=[];constructor({connector:_0x43a547,availableModels:_0x26a70c,defaultModelId:_0x11f378}){const _0x3b8f59=_0x382154;super(),this[_0x3b8f59(0xc1)]=_0x43a547,this[_0x3b8f59(0xd1)]=_0x26a70c,this[_0x3b8f59(0xc5)]=_0x11f378;}async[_0x382154(0xbf)](){const _0x337187=_0x382154;if(!this[_0x337187(0xcd)][_0x337187(0xc4)])try{const _0x43f12f=this[_0x337187(0xc1)][_0x337187(0xe5)](),_0x5affb0=await _0x43f12f[_0x337187(0xd9)]();this[_0x337187(0xcd)]=_0x5affb0[_0x337187(0xcf)];}catch(_0x691c64){throw _0x42f31c(_0x337187(0xd0),{'error':_0x691c64}),_0x691c64;}return[...this[_0x337187(0xcd)]];}async[_0x382154(0xbe)](){const _0x4dcd08=_0x382154,_0x4df07b=await this[_0x4dcd08(0xbf)]();return this[_0x4dcd08(0xe6)](_0x4df07b,this[_0x4dcd08(0xd1)]);}async[_0x382154(0xdd)](_0x32a9b6){const _0x401f04=_0x382154,_0x40497d=await this[_0x401f04(0xbf)]();if(!_0x40497d[_0x401f04(0xc4)])return null;if(_0x32a9b6){const _0x2679fa=this[_0x401f04(0xd5)](_0x40497d,_0x32a9b6);if(_0x2679fa)return _0x2679fa;_0x20acc9(_0x401f04(0xdb),{'modelId':_0x32a9b6,'fallBackModelId':this[_0x401f04(0xc5)]});}return this[_0x401f04(0xd7)]();}async[_0x382154(0xd7)](){const _0x153457=_0x382154,_0x128003=await this[_0x153457(0xbe)]();if(!_0x128003[_0x153457(0xc4)])return null;if(this[_0x153457(0xc5)]){const _0x57b157=this[_0x153457(0xd5)](_0x128003,this[_0x153457(0xc5)]);if(_0x57b157)return _0x57b157;_0x20acc9(_0x153457(0xe2),{'defaultModelId':this[_0x153457(0xc5)],'fallBackModelId':_0x128003[0x0]['id']});}return _0x128003[0x0];}async[_0x382154(0xe8)](_0x3977ce){const _0x3fe97f=_0x382154;return(await this[_0x3fe97f(0xbe)]())[_0x3fe97f(0xbd)](_0x3aadfc=>_0x3aadfc[_0x3fe97f(0xde)]===_0x3977ce[_0x3fe97f(0xde)]&&_0x3aadfc[_0x3fe97f(0xda)]===_0x3977ce[_0x3fe97f(0xda)]);}[_0x382154(0xe6)](_0x56d109,_0x129edb){const _0x1df2ca=_0x382154;let _0x3d536a;if(_0x129edb){_0x3d536a=[];const _0x4ebef5=_0x1df2ca(0xc3)==typeof _0x129edb?[_0x129edb[_0x1df2ca(0xd6)]()]:_0x129edb[_0x1df2ca(0xc6)](_0x230dd0=>_0x230dd0[_0x1df2ca(0xd6)]());for(const _0x197e0d of _0x4ebef5)for(const _0x24fa69 of _0x56d109)(_0x24fa69['id'][_0x1df2ca(0xd6)]()===_0x197e0d||_0x24fa69[_0x1df2ca(0xde)][_0x1df2ca(0xd6)]()===_0x197e0d||Oe(_0x24fa69)&&_0x1df2ca(0xe3)===_0x197e0d||_0x24fa69[_0x1df2ca(0xda)][_0x1df2ca(0xd6)]()===_0x197e0d||_0x24fa69['id'][_0x1df2ca(0xd6)]()[_0x1df2ca(0xdc)](_0x197e0d))&&_0x3d536a[_0x1df2ca(0xd3)](_0x24fa69);}else _0x3d536a=_0x56d109;return _0x3d536a;}[_0x382154(0xd5)](_0x280f83,_0x1d5b57){const _0xb24c90=_0x382154;return _0x280f83[_0xb24c90(0xe1)](_0x2cfb9d=>Oe(_0x2cfb9d)&&_0xb24c90(0xe3)===_0x1d5b57?_0x2cfb9d:_0x2cfb9d['id']===_0x1d5b57)||null;}static[_0x382154(0xd2)](_0x3e7723,_0x42f5a0){const _0x5732cf=_0x382154;return _0x42f5a0[_0x5732cf(0xc6)](_0xa0237f=>{const _0x347bc7=_0x5732cf;if(Oe(_0xa0237f))_0xa0237f[_0x347bc7(0xde)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xbc)),_0xa0237f[_0x347bc7(0xc8)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xce));else _0x4b6b53(_0x3e7723,_0x347bc7(0xcb)+_0xa0237f['id'][_0x347bc7(0xd8)]())[_0x347bc7(0xdc)](_0x347bc7(0xcb))||(_0xa0237f[_0x347bc7(0xc8)]=_0x4b6b53(_0x3e7723,_0x347bc7(0xcb)+_0xa0237f['id'][_0x347bc7(0xd8)]()));return _0xa0237f;});}}function _0x12e8(_0x5376de,_0x3c4232){const _0x3268a2=_0x3268();return _0x12e8=function(_0x12e830,_0x230579){_0x12e830=_0x12e830-0xbc;let _0x18feb0=_0x3268a2[_0x12e830];return _0x18feb0;},_0x12e8(_0x5376de,_0x3c4232);}function Oe(_0x4bb1c2){const _0x34043c=_0x382154;return _0x4bb1c2['id'][_0x34043c(0xdc)](_0x34043c(0xdf));}
23
+ function _0x2bd6(_0x1d55aa,_0x2911ff){const _0x1ed112=_0x1ed1();return _0x2bd6=function(_0x2bd6b7,_0x1d4c0e){_0x2bd6b7=_0x2bd6b7-0xc9;let _0x5d609b=_0x1ed112[_0x2bd6b7];return _0x5d609b;},_0x2bd6(_0x1d55aa,_0x2911ff);}const _0x4ffb22=_0x2bd6;(function(_0x559618,_0x1c3dac){const _0x803eee=_0x2bd6,_0x211b4a=_0x559618();while(!![]){try{const _0xd5cee1=-parseInt(_0x803eee(0xd4))/0x1*(parseInt(_0x803eee(0xf1))/0x2)+-parseInt(_0x803eee(0xcd))/0x3+parseInt(_0x803eee(0xec))/0x4+-parseInt(_0x803eee(0xde))/0x5*(-parseInt(_0x803eee(0xf3))/0x6)+-parseInt(_0x803eee(0xda))/0x7+parseInt(_0x803eee(0xd6))/0x8*(parseInt(_0x803eee(0xdb))/0x9)+parseInt(_0x803eee(0xd2))/0xa*(parseInt(_0x803eee(0xd9))/0xb);if(_0xd5cee1===_0x1c3dac)break;else _0x211b4a['push'](_0x211b4a['shift']());}catch(_0x4ff0fb){_0x211b4a['push'](_0x211b4a['shift']());}}}(_0x1ed1,0x4e474));import{EmitterMixin as _0x53c874,logWarning as _0x3e3f34,logError as _0x255d1d}from'ckeditor5/src/utils.js';import{getTranslation as _0x444136}from'../utils/common-translations.js';function _0x1ed1(){const _0x164860=['ai-models-unable-to-retrieve','24VdsOhR','ai-chat-model-id-unrecognized','getLocalized','toUpperCase','_filterModels','isAvailable','name','_defaultModelId','92790esSzVJ','AI_MODEL_NAME_AUTO','getDefault','toLocaleLowerCase','AI_MODEL_DESCRIPTION_','2087110tkUjAS','_modelList','65327BGSopD','list','1826040JmzyPr','push','getModels','33ELHMAS','512498LuhXcq','9TxxZtB','getModel','map','120455fDFOUj','provider','ai-chat-default-model-id-unrecognized','_getModelById','_availableModels','some','find','items','AI_MODEL_DESCRIPTION_AUTO','getAvailableModels','_connector','description','startsWith','string','247852ulFJQF','agent','length','getAll','auto','18DoZwTr'];_0x1ed1=function(){return _0x164860;};return _0x1ed1();}export class AIModels extends _0x53c874(){[_0x4ffb22(0xe8)];[_0x4ffb22(0xe2)];[_0x4ffb22(0xcc)];[_0x4ffb22(0xd3)]=[];constructor({connector:_0x26a42f,availableModels:_0xfdc82,defaultModelId:_0x552763}){const _0x48c8fa=_0x4ffb22;super(),this[_0x48c8fa(0xe8)]=_0x26a42f,this[_0x48c8fa(0xe2)]=_0xfdc82,this[_0x48c8fa(0xcc)]=_0x552763;}async[_0x4ffb22(0xef)](){const _0x885f85=_0x4ffb22;if(!this[_0x885f85(0xd3)][_0x885f85(0xee)])try{const _0x2d48f7=this[_0x885f85(0xe8)][_0x885f85(0xd8)](),_0x4cf419=await _0x2d48f7[_0x885f85(0xd5)]();this[_0x885f85(0xd3)]=_0x4cf419[_0x885f85(0xe5)];}catch(_0x215df2){throw _0x255d1d(_0x885f85(0xf2),{'error':_0x215df2}),_0x215df2;}return[...this[_0x885f85(0xd3)]];}async[_0x4ffb22(0xe7)](){const _0x4ba189=_0x4ffb22,_0x19f544=await this[_0x4ba189(0xef)]();return this[_0x4ba189(0xc9)](_0x19f544,this[_0x4ba189(0xe2)]);}async[_0x4ffb22(0xdc)](_0x273769){const _0x36f5d7=_0x4ffb22,_0x3949c6=await this[_0x36f5d7(0xef)]();if(!_0x3949c6[_0x36f5d7(0xee)])return null;if(_0x273769){const _0x5bb2d6=this[_0x36f5d7(0xe1)](_0x3949c6,_0x273769);if(_0x5bb2d6)return _0x5bb2d6;_0x3e3f34(_0x36f5d7(0xf4),{'modelId':_0x273769,'fallBackModelId':this[_0x36f5d7(0xcc)]});}return this[_0x36f5d7(0xcf)]();}async[_0x4ffb22(0xcf)](){const _0x276f60=_0x4ffb22,_0x3a3fa5=await this[_0x276f60(0xe7)]();if(!_0x3a3fa5[_0x276f60(0xee)])return null;if(this[_0x276f60(0xcc)]){const _0x3fec0b=this[_0x276f60(0xe1)](_0x3a3fa5,this[_0x276f60(0xcc)]);if(_0x3fec0b)return _0x3fec0b;_0x3e3f34(_0x276f60(0xe0),{'defaultModelId':this[_0x276f60(0xcc)],'fallBackModelId':_0x3a3fa5[0x0]['id']});}return _0x3a3fa5[0x0];}async[_0x4ffb22(0xca)](_0x48bd9d){const _0x4547d1=_0x4ffb22;return(await this[_0x4547d1(0xe7)]())[_0x4547d1(0xe3)](_0x8b361=>_0x8b361[_0x4547d1(0xcb)]===_0x48bd9d[_0x4547d1(0xcb)]&&_0x8b361[_0x4547d1(0xdf)]===_0x48bd9d[_0x4547d1(0xdf)]);}[_0x4ffb22(0xc9)](_0x588c5e,_0x47872a){const _0x32c08e=_0x4ffb22;let _0x207a99;if(_0x47872a){_0x207a99=[];const _0x29d71a=_0x32c08e(0xeb)==typeof _0x47872a?[_0x47872a[_0x32c08e(0xd0)]()]:_0x47872a[_0x32c08e(0xdd)](_0x39999b=>_0x39999b[_0x32c08e(0xd0)]());for(const _0x372d53 of _0x29d71a)for(const _0x487731 of _0x588c5e)(_0x487731['id'][_0x32c08e(0xd0)]()===_0x372d53||_0x487731[_0x32c08e(0xcb)][_0x32c08e(0xd0)]()===_0x372d53||Ne(_0x487731)&&_0x32c08e(0xf0)===_0x372d53||_0x487731[_0x32c08e(0xdf)][_0x32c08e(0xd0)]()===_0x372d53||_0x487731['id'][_0x32c08e(0xd0)]()[_0x32c08e(0xea)](_0x372d53))&&_0x207a99[_0x32c08e(0xd7)](_0x487731);}else _0x207a99=_0x588c5e;return _0x207a99;}[_0x4ffb22(0xe1)](_0x154c43,_0x2b6327){const _0x4b3840=_0x4ffb22;return _0x154c43[_0x4b3840(0xe4)](_0x3f0c01=>Ne(_0x3f0c01)&&_0x4b3840(0xf0)===_0x2b6327?_0x3f0c01:_0x3f0c01['id']===_0x2b6327)||null;}static[_0x4ffb22(0xf5)](_0x415d00,_0x3c7daa){const _0x342813=_0x4ffb22;return _0x3c7daa[_0x342813(0xdd)](_0x6b25bd=>{const _0x24e3dd=_0x342813;if(Ne(_0x6b25bd))_0x6b25bd[_0x24e3dd(0xcb)]=_0x444136(_0x415d00,_0x24e3dd(0xce)),_0x6b25bd[_0x24e3dd(0xe9)]=_0x444136(_0x415d00,_0x24e3dd(0xe6));else _0x444136(_0x415d00,_0x24e3dd(0xd1)+_0x6b25bd['id'][_0x24e3dd(0xf6)]())[_0x24e3dd(0xea)](_0x24e3dd(0xd1))||(_0x6b25bd[_0x24e3dd(0xe9)]=_0x444136(_0x415d00,_0x24e3dd(0xd1)+_0x6b25bd['id'][_0x24e3dd(0xf6)]()));return _0x6b25bd;});}}function Ne(_0x2c445e){const _0x37108d=_0x4ffb22;return _0x2c445e['id'][_0x37108d(0xea)](_0x37108d(0xed));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1265(){const _0x4c873e=['unshift','2bQSvGx','span','modified','forEach','content','source','2265684mrsoub','isDone','ai-reply-get-content-parts-group-not-found','parseAndNormalizeHTML','2270WiVOVI','interactionId','onContentChange','8xVmtns','index','push','withoutDiff','1361102dWxGTe','includes','sources','change:content','withDiff','editor','_getDifferentChangeGroups','state','values','newNodeIds','18599fjKcAg','previousSibling','every','1432sMGiis','merge','aiResponseApplier','color:\x20#808080;\x20font-style:\x20italic','_setCachedContentParts','removed','find','length','replyChangeGroupStateUpdated','parsedMergedContent','conversation-title','destroy','aiResponseParser','type','getContentParts','filter','set','fire','2203896QdSewS','stopListening','setChangeGroupState','web-search','areActionsDisabled','appendContent','node','map','indexOf','replyContentUpdated','data-unstable','changeGroups','3766730QIqsxw','modifiedNodeIds','text-delta','ai-get-editor-from-context-no-editor','changes','cloneNode','context','removedNodeIds','_getCachedContentParts','new','splice','modification-delta','parsedContent','data-id','documentContextContent','nextSibling','done','reasoning','cachedSuggestionContentParts','48123wtgdgR','convertMarkdownToHTML','pending','27500605PZviVC','locale','updateChangeGroups','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x1265=function(){return _0x4c873e;};return _0x1265();}const _0x57634b=_0x26e0;(function(_0x3fb54c,_0x24f25c){const _0x3c94f7=_0x26e0,_0x30e480=_0x3fb54c();while(!![]){try{const _0x49608c=-parseInt(_0x3c94f7(0x16e))/0x1*(parseInt(_0x3c94f7(0x17f))/0x2)+-parseInt(_0x3c94f7(0x174))/0x3+parseInt(_0x3c94f7(0x17b))/0x4*(parseInt(_0x3c94f7(0x153))/0x5)+-parseInt(_0x3c94f7(0x147))/0x6+parseInt(_0x3c94f7(0x132))/0x7*(parseInt(_0x3c94f7(0x135))/0x8)+parseInt(_0x3c94f7(0x166))/0x9*(-parseInt(_0x3c94f7(0x178))/0xa)+parseInt(_0x3c94f7(0x169))/0xb;if(_0x49608c===_0x24f25c)break;else _0x30e480['push'](_0x30e480['shift']());}catch(_0x25a1de){_0x30e480['push'](_0x30e480['shift']());}}}(_0x1265,0xbfa27));import{CKEditorError as _0x833b10,ObservableMixin as _0x4d14b2,uid as _0x1681da}from'ckeditor5/src/utils.js';import{Element as _0x592baa,findAll as _0x170355,getAttribute as _0x42e052,getParents as _0x490550,Document as _0x2268bc,parse as _0x53e59f,Text as _0x231b9d}from'../utils/htmlparser.js';import{AIResponseParser as _0x6d411c}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x24cfae}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x2a3b5a}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x3c1d44}from'../utils/common-translations.js';function _0x26e0(_0x4f5f93,_0x44cd5f){const _0x12656b=_0x1265();return _0x26e0=function(_0x26e02e,_0x204e8e){_0x26e02e=_0x26e02e-0x12c;let _0x5d9ca3=_0x12656b[_0x26e02e];return _0x5d9ca3;},_0x26e0(_0x4f5f93,_0x44cd5f);}import{cloneDeep as _0x1a44d9}from'es-toolkit';export const AI_REPLY_TYPES=[_0x57634b(0x15e),_0x57634b(0x155),_0x57634b(0x14a),_0x57634b(0x164)];export const AI_REPLY_TYPES_IGNORED=[_0x57634b(0x13f)];export const AI_REPLY_TITLE_TYPE=_0x57634b(0x13f);export class AIReply extends _0x4d14b2(){['id'];[_0x57634b(0x179)];[_0x57634b(0x142)];[_0x57634b(0x181)]=[];[_0x57634b(0x15f)]=new _0x2268bc([]);[_0x57634b(0x13e)]=new _0x2268bc([]);[_0x57634b(0x152)]=[];[_0x57634b(0x14b)]=!0x1;[_0x57634b(0x161)];[_0x57634b(0x141)];[_0x57634b(0x137)];[_0x57634b(0x12d)];[_0x57634b(0x165)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x28ddd6,content:_0x551640='',isDone:_0x1c0fa1=!0x1,interactionId:_0x3e4ac3,areActionsDisabled:_0x544026,documentContextContent:_0x3ac13d,editor:_0xf6572,id:_0x1dbb9f}){const _0x4cb33e=_0x57634b;super(),this['id']=_0x1dbb9f||_0x1681da(),this[_0x4cb33e(0x179)]=_0x3e4ac3,this[_0x4cb33e(0x142)]=_0x28ddd6,this[_0x4cb33e(0x14b)]=!!_0x544026,this[_0x4cb33e(0x12d)]=_0xf6572,this[_0x4cb33e(0x141)]=new _0x6d411c(),this[_0x4cb33e(0x137)]=new _0x24cfae(),this[_0x4cb33e(0x161)]=_0x53e59f(_0x3ac13d||''),this[_0x4cb33e(0x145)](_0x4cb33e(0x175),_0x1c0fa1),this['on'](_0x4cb33e(0x182),()=>{const _0x2035b0=_0x4cb33e;this[_0x2035b0(0x17a)]();}),this[_0x4cb33e(0x145)](_0x4cb33e(0x172),_0x551640);}[_0x57634b(0x14c)](_0xf8ec7f){const _0x42ed47=_0x57634b;this[_0x42ed47(0x145)](_0x42ed47(0x172),this[_0x42ed47(0x172)]+_0xf8ec7f);}[_0x57634b(0x163)](){const _0x5a9d5b=_0x57634b;this[_0x5a9d5b(0x175)]||(this[_0x5a9d5b(0x145)](_0x5a9d5b(0x175),!0x0),this[_0x5a9d5b(0x17a)]());}[_0x57634b(0x140)](){const _0x5af4f7=_0x57634b;this[_0x5af4f7(0x148)]();}[_0x57634b(0x149)](_0x50074d,_0x4daa2b){const _0x1d9f42=_0x57634b;this[_0x1d9f42(0x152)][_0x50074d][_0x1d9f42(0x12f)]=_0x4daa2b,this[_0x1d9f42(0x146)](_0x1d9f42(0x13d),{'reply':this,'index':_0x50074d,'state':_0x4daa2b});}[_0x57634b(0x143)]({showDiff:_0x463802,groupIndex:_0x923594}){const _0x1e01d2=_0x57634b;if(!this[_0x1e01d2(0x12d)])throw new _0x833b10(_0x1e01d2(0x156),null,{'aiReply':this});const _0x114dac=this[_0x1e01d2(0x15b)](_0x463802,_0x923594);if(_0x114dac)return _0x114dac;let _0x4c7f34=[];if(void 0x0===_0x923594)_0x4c7f34=this[_0x1e01d2(0x152)];else{const _0x16547e=this[_0x1e01d2(0x152)][_0x1e01d2(0x13b)](({index:_0x34d0d3})=>_0x34d0d3===_0x923594);if(!_0x16547e)throw new _0x833b10(_0x1e01d2(0x176),null,{'aiReply':this,'groupIndex':_0x923594});_0x4c7f34=[_0x16547e];}const _0x124520=_0x2a3b5a({'editor':this[_0x1e01d2(0x12d)],'showDiff':_0x463802,'changeGroups':_0x4c7f34,'documentContextContent':this[_0x1e01d2(0x161)]});return this[_0x1e01d2(0x139)](_0x463802,_0x124520),_0x124520;}[_0x57634b(0x15b)](_0x391d84,_0x5164b4){const _0x3de9ce=_0x57634b,_0x383d58=_0x391d84?_0x3de9ce(0x12c):_0x3de9ce(0x17e);if(!this[_0x3de9ce(0x165)][_0x383d58][_0x3de9ce(0x13c)])return null;const _0x30a1b6=this[_0x3de9ce(0x165)][_0x383d58];if(void 0x0===_0x5164b4)return _0x1a44d9(_0x30a1b6);{const _0x5a5b05=_0x30a1b6[_0x3de9ce(0x13b)](({index:_0x3b3ceb})=>_0x3b3ceb===_0x5164b4);if(_0x5a5b05)return[_0x1a44d9(_0x5a5b05)];}return null;}[_0x57634b(0x139)](_0x5f6f65,_0x52e6aa){const _0x256a0f=_0x57634b,_0x2e3dc3=_0x5f6f65?_0x256a0f(0x12c):_0x256a0f(0x17e);_0x52e6aa[_0x256a0f(0x171)](_0x325f6a=>{const _0x45f863=_0x256a0f,_0xa9f38e=this[_0x45f863(0x165)][_0x2e3dc3],_0xe54415=_0xa9f38e[_0x45f863(0x13b)](({index:_0x19963c})=>_0x19963c===_0x325f6a[_0x45f863(0x17c)]);if(_0xe54415){const _0x51a811=_0xa9f38e[_0x45f863(0x14f)](_0xe54415);_0xa9f38e[_0x45f863(0x15d)](_0x51a811,0x1,_0x325f6a);}else _0xa9f38e[_0x45f863(0x17d)](_0x325f6a);});}[_0x57634b(0x17a)](){const _0x57e6f5=_0x57634b;if(_0x57e6f5(0x15e)===this[_0x57e6f5(0x142)]){this[_0x57e6f5(0x15f)]=this[_0x57e6f5(0x141)][_0x57e6f5(0x177)](this[_0x57e6f5(0x172)]);const _0x2e19f2=this[_0x57e6f5(0x152)];this[_0x57e6f5(0x16b)]();const _0x484237=this[_0x57e6f5(0x12e)](_0x2e19f2,this[_0x57e6f5(0x152)]);(_0x484237[_0x57e6f5(0x13c)]||this[_0x57e6f5(0x175)])&&(this[_0x57e6f5(0x146)](_0x57e6f5(0x150),this,_0x484237),this[_0x57e6f5(0x165)][_0x57e6f5(0x12c)][_0x57e6f5(0x13c)]=this[_0x57e6f5(0x165)][_0x57e6f5(0x17e)][_0x57e6f5(0x13c)]=0x0);}else this[_0x57e6f5(0x15f)]=this[_0x57e6f5(0x141)][_0x57e6f5(0x167)](this[_0x57e6f5(0x172)]),this[_0x57e6f5(0x146)](_0x57e6f5(0x150),this);}[_0x57634b(0x12e)](_0x37148f,_0x5b5710){const _0x32efda=_0x57634b,_0x2e5f26=[];for(const _0x2d82a0 of _0x5b5710){const _0x160369=_0x37148f[_0x2d82a0[_0x32efda(0x17c)]];_0x160369?_0x160369[_0x32efda(0x157)][_0x32efda(0x13c)]!==_0x2d82a0[_0x32efda(0x157)][_0x32efda(0x13c)]?_0x2e5f26[_0x32efda(0x17d)](_0x2d82a0):_0x160369[_0x32efda(0x157)][_0x32efda(0x171)]((_0x1fa8ee,_0xd4cccc)=>{const _0x1388ab=_0x32efda,_0x5b4751=_0x2d82a0[_0x1388ab(0x157)][_0xd4cccc];_0x1fa8ee['id']!==_0x5b4751['id']&&_0x2e5f26[_0x1388ab(0x17d)](_0x2d82a0);}):_0x2e5f26[_0x32efda(0x17d)](_0x2d82a0);}return _0x2e5f26;}[_0x57634b(0x16b)](){const _0x14e0ef=_0x57634b,_0x240f86=new _0x592baa('p',{},[new _0x592baa(_0x14e0ef(0x16f),{'style':_0x14e0ef(0x138)},[new _0x231b9d(_0x3c1d44(this[_0x14e0ef(0x12d)][_0x14e0ef(0x16a)],_0x14e0ef(0x16c)))])]),_0x22efd8=this[_0x14e0ef(0x137)][_0x14e0ef(0x136)](this[_0x14e0ef(0x15f)],this[_0x14e0ef(0x161)][_0x14e0ef(0x158)](!0x0),{'markUnstableElements':!this[_0x14e0ef(0x175)],'replaceRemovedWith':_0x240f86,'cutAfterLastChange':!this[_0x14e0ef(0x175)]});if(!_0x22efd8[_0x14e0ef(0x154)][_0x14e0ef(0x13c)]&&!this[_0x14e0ef(0x175)])return;this[_0x14e0ef(0x13e)]=_0x22efd8[_0x14e0ef(0x15f)];let _0x31db33=[];if(_0x170355(_0x442c7a=>{const _0x3d7c39=_0x14e0ef,_0x594ebb=_0x42e052(_0x442c7a,_0x3d7c39(0x160));if(!_0x594ebb||!_0x13a7b0(_0x594ebb))return!0x1;const _0x4936b7=[_0x442c7a,..._0x490550(_0x442c7a)]['at'](-0x2);if(_0x442c7a!=_0x4936b7){const _0x554468=_0x42e052(_0x4936b7,_0x3d7c39(0x160));_0x13a7b0(_0x554468)||(_0x31db33[_0x3d7c39(0x17d)]({'node':_0x4936b7,'id':_0x554468,'type':_0x3d7c39(0x170)}),_0x22efd8[_0x3d7c39(0x154)][_0x3d7c39(0x17d)](_0x554468));}else _0x22efd8[_0x3d7c39(0x154)][_0x3d7c39(0x180)](_0x594ebb)?_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x170),'id':_0x594ebb}):_0x22efd8[_0x3d7c39(0x131)][_0x3d7c39(0x180)](_0x594ebb)?_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x15c),'id':_0x594ebb,'anchorId':_0x42e052(_0x442c7a[_0x3d7c39(0x133)],_0x3d7c39(0x160))}):_0x31db33[_0x3d7c39(0x17d)]({'node':_0x442c7a,'type':_0x3d7c39(0x13a),'id':_0x594ebb});return!0x0;},this[_0x14e0ef(0x13e)]),_0x31db33=_0x31db33[_0x14e0ef(0x144)](({node:_0x38a20f})=>[..._0x490550(_0x38a20f),_0x38a20f][_0x14e0ef(0x134)](_0x15f654=>!_0x42e052(_0x15f654,_0x14e0ef(0x151)))),0x0==_0x31db33[_0x14e0ef(0x13c)])return;const _0x4c256e=[[_0x31db33[0x0]]];for(let _0x3bdc44=0x1;_0x3bdc44<_0x31db33[_0x14e0ef(0x13c)];_0x3bdc44++){const _0x25342a=_0x4c256e[_0x4c256e[_0x14e0ef(0x13c)]-0x1],_0x288448=_0x25342a[_0x25342a[_0x14e0ef(0x13c)]-0x1];_0x31db33[_0x3bdc44][_0x14e0ef(0x14d)][_0x14e0ef(0x133)]==_0x288448[_0x14e0ef(0x14d)]&&_0x14e0ef(0x170)!=_0x31db33[_0x3bdc44][_0x14e0ef(0x142)]&&_0x14e0ef(0x170)!=_0x288448[_0x14e0ef(0x142)]?_0x25342a[_0x14e0ef(0x17d)](_0x31db33[_0x3bdc44]):_0x4c256e[_0x14e0ef(0x17d)]([_0x31db33[_0x3bdc44]]);}for(const _0x3f03a7 of _0x4c256e){const _0x1c49b8=_0x3f03a7[0x0],_0x26a8cd=_0x3f03a7[_0x3f03a7[_0x14e0ef(0x13c)]-0x1],_0xcd17d=_0xd0a41a(_0x1c49b8[_0x14e0ef(0x14d)][_0x14e0ef(0x133)]);_0xcd17d&&_0x3f03a7[_0x14e0ef(0x16d)](_0xcd17d);const _0x22cc29=_0xd0a41a(_0x26a8cd[_0x14e0ef(0x14d)][_0x14e0ef(0x162)]);_0x22cc29&&_0x3f03a7[_0x14e0ef(0x17d)](_0x22cc29);}function _0x13a7b0(_0xb74b16){const _0x561f81=_0x14e0ef;return _0x22efd8[_0x561f81(0x154)][_0x561f81(0x180)](_0xb74b16)||_0x22efd8[_0x561f81(0x131)][_0x561f81(0x180)](_0xb74b16)||_0x22efd8[_0x561f81(0x15a)][_0x561f81(0x180)](_0xb74b16);}function _0xd0a41a(_0x1c1bbe){const _0x22ec17=_0x14e0ef;if(_0x1c1bbe&&_0x42e052(_0x1c1bbe,_0x22ec17(0x160))&&!_0x42e052(_0x1c1bbe,_0x22ec17(0x151))){const _0x4f72e5=_0x42e052(_0x1c1bbe,_0x22ec17(0x160));if(!_0x13a7b0(_0x4f72e5))return{'node':_0x1c1bbe,'type':_0x22ec17(0x159),'id':_0x4f72e5};}return null;}this[_0x14e0ef(0x152)]=_0x4c256e[_0x14e0ef(0x14e)]((_0x2591ce,_0x5034f2)=>({'changes':_0x2591ce,'state':_0x14e0ef(0x168),'index':_0x5034f2}));}}export function isValidReplyType(_0xf862d2){const _0x4a7f4e=_0x57634b;return Object[_0x4a7f4e(0x130)](AI_REPLY_TYPES)[_0x4a7f4e(0x180)](_0xf862d2);}export function isIgnoredReplyType(_0x507fc6){const _0x171fca=_0x57634b;return AI_REPLY_TYPES_IGNORED[_0x171fca(0x180)](_0x507fc6);}export function isReplyTitleType(_0x22f219){return _0x22f219===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x351344){const _0x37f36c=_0x57634b;return _0x37f36c(0x173)===_0x351344;}
23
+ const _0x2efec0=_0x2e67;(function(_0xb4ccda,_0x121fe0){const _0x4769ca=_0x2e67,_0x33259a=_0xb4ccda();while(!![]){try{const _0x34bb76=-parseInt(_0x4769ca(0x96))/0x1+parseInt(_0x4769ca(0x9a))/0x2*(parseInt(_0x4769ca(0xa9))/0x3)+parseInt(_0x4769ca(0xab))/0x4+-parseInt(_0x4769ca(0xa6))/0x5+parseInt(_0x4769ca(0xce))/0x6+-parseInt(_0x4769ca(0xc5))/0x7+parseInt(_0x4769ca(0x9f))/0x8;if(_0x34bb76===_0x121fe0)break;else _0x33259a['push'](_0x33259a['shift']());}catch(_0x23af93){_0x33259a['push'](_0x33259a['shift']());}}}(_0x50e5,0x32345));import{CKEditorError as _0x514c9a,ObservableMixin as _0x5173d0,uid as _0x306a81}from'ckeditor5/src/utils.js';import{Element as _0x249503,findAll as _0x24fd16,getAttribute as _0x1fd1a5,getParents as _0x2f565b,Document as _0x657692,parse as _0x469195,Text as _0x111dc6}from'../utils/htmlparser.js';import{AIResponseParser as _0x4344c8}from'../pipeline/airesponseparser.js';function _0x50e5(){const _0x4d719a=['conversation-title','reasoning','unshift','splice','354640ZGfXrQ','parsedMergedContent','change:content','17211ctjbsC','removedNodeIds','569284odeFks','state','forEach','data-unstable','ai-get-editor-from-context-no-editor','stopListening','onContentChange','parseAndNormalizeHTML','_getCachedContentParts','_setCachedContentParts','filter','node','setChangeGroupState','new','length','updateChangeGroups','fire','appendContent','documentContextContent','content','values','destroy','isDone','merge','changes','replyContentUpdated','1105566FZcKYi','context','text-delta','newNodeIds','withoutDiff','index','find','removed','modification-delta','889422AaBsYh','locale','AI_SUGGESTION_CONTENT_PART_REMOVED','set','map','span','type','done','every','convertMarkdownToHTML','getContentParts','changeGroups','cloneNode','interactionId','aiResponseParser','modifiedNodeIds','source','previousSibling','push','color:\x20#808080;\x20font-style:\x20italic','aiResponseApplier','replyChangeGroupStateUpdated','cachedSuggestionContentParts','sources','includes','indexOf','data-id','ai-reply-get-content-parts-group-not-found','205251ThXRKS','_getDifferentChangeGroups','withDiff','areActionsDisabled','28jAUhFf','modified','web-search','editor','nextSibling','2151024OmdxbV','pending','parsedContent'];_0x50e5=function(){return _0x4d719a;};return _0x50e5();}import{AIResponseApplier as _0x610486}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x137bf9}from'../utils/getsuggestionpartsfromreply.js';function _0x2e67(_0x476f92,_0x5579eb){const _0x50e5b8=_0x50e5();return _0x2e67=function(_0x2e6722,_0x53b786){_0x2e6722=_0x2e6722-0x7c;let _0x1c6a44=_0x50e5b8[_0x2e6722];return _0x1c6a44;},_0x2e67(_0x476f92,_0x5579eb);}import{getTranslation as _0x17af8e}from'../utils/common-translations.js';import{cloneDeep as _0x5cc09b}from'es-toolkit';export const AI_REPLY_TYPES=[_0x2efec0(0xcd),_0x2efec0(0xc7),_0x2efec0(0x9c),_0x2efec0(0xa3)];export const AI_REPLY_TYPES_IGNORED=[_0x2efec0(0xa2)];export const AI_REPLY_TITLE_TYPE=_0x2efec0(0xa2);export class AIReply extends _0x5173d0(){['id'];[_0x2efec0(0x87)];[_0x2efec0(0x80)];[_0x2efec0(0x91)]=[];[_0x2efec0(0xa1)]=new _0x657692([]);[_0x2efec0(0xa7)]=new _0x657692([]);[_0x2efec0(0x85)]=[];[_0x2efec0(0x99)]=!0x1;[_0x2efec0(0xbd)];[_0x2efec0(0x88)];[_0x2efec0(0x8e)];[_0x2efec0(0x9d)];[_0x2efec0(0x90)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x13a89c,content:_0x1e9c24='',isDone:_0x599102=!0x1,interactionId:_0x318e35,areActionsDisabled:_0x5ac397,documentContextContent:_0x29b5b5,editor:_0x17c513,id:_0xcc92b0}){const _0x173a10=_0x2efec0;super(),this['id']=_0xcc92b0||_0x306a81(),this[_0x173a10(0x87)]=_0x318e35,this[_0x173a10(0x80)]=_0x13a89c,this[_0x173a10(0x99)]=!!_0x5ac397,this[_0x173a10(0x9d)]=_0x17c513,this[_0x173a10(0x88)]=new _0x4344c8(),this[_0x173a10(0x8e)]=new _0x610486(),this[_0x173a10(0xbd)]=_0x469195(_0x29b5b5||''),this[_0x173a10(0x7d)](_0x173a10(0xc1),_0x599102),this['on'](_0x173a10(0xa8),()=>{const _0x46f2bf=_0x173a10;this[_0x46f2bf(0xb1)]();}),this[_0x173a10(0x7d)](_0x173a10(0xbe),_0x1e9c24);}[_0x2efec0(0xbc)](_0x1d0898){const _0x87a0b1=_0x2efec0;this[_0x87a0b1(0x7d)](_0x87a0b1(0xbe),this[_0x87a0b1(0xbe)]+_0x1d0898);}[_0x2efec0(0x81)](){const _0x3e36e5=_0x2efec0;this[_0x3e36e5(0xc1)]||(this[_0x3e36e5(0x7d)](_0x3e36e5(0xc1),!0x0),this[_0x3e36e5(0xb1)]());}[_0x2efec0(0xc0)](){const _0x56da92=_0x2efec0;this[_0x56da92(0xb0)]();}[_0x2efec0(0xb7)](_0x1a4770,_0x160a74){const _0x227334=_0x2efec0;this[_0x227334(0x85)][_0x1a4770][_0x227334(0xac)]=_0x160a74,this[_0x227334(0xbb)](_0x227334(0x8f),{'reply':this,'index':_0x1a4770,'state':_0x160a74});}[_0x2efec0(0x84)]({showDiff:_0xf02aa7,groupIndex:_0x117048}){const _0xead260=_0x2efec0;if(!this[_0xead260(0x9d)])throw new _0x514c9a(_0xead260(0xaf),null,{'aiReply':this});const _0xba6813=this[_0xead260(0xb3)](_0xf02aa7,_0x117048);if(_0xba6813)return _0xba6813;let _0x19baad=[];if(void 0x0===_0x117048)_0x19baad=this[_0xead260(0x85)];else{const _0x1414d9=this[_0xead260(0x85)][_0xead260(0xcb)](({index:_0x81f1d})=>_0x81f1d===_0x117048);if(!_0x1414d9)throw new _0x514c9a(_0xead260(0x95),null,{'aiReply':this,'groupIndex':_0x117048});_0x19baad=[_0x1414d9];}const _0x829740=_0x137bf9({'editor':this[_0xead260(0x9d)],'showDiff':_0xf02aa7,'changeGroups':_0x19baad,'documentContextContent':this[_0xead260(0xbd)]});return this[_0xead260(0xb4)](_0xf02aa7,_0x829740),_0x829740;}[_0x2efec0(0xb3)](_0x458db4,_0x2af408){const _0x355f3c=_0x2efec0,_0x6ff931=_0x458db4?_0x355f3c(0x98):_0x355f3c(0xc9);if(!this[_0x355f3c(0x90)][_0x6ff931][_0x355f3c(0xb9)])return null;const _0x1d0106=this[_0x355f3c(0x90)][_0x6ff931];if(void 0x0===_0x2af408)return _0x5cc09b(_0x1d0106);{const _0x30ae4d=_0x1d0106[_0x355f3c(0xcb)](({index:_0x507d73})=>_0x507d73===_0x2af408);if(_0x30ae4d)return[_0x5cc09b(_0x30ae4d)];}return null;}[_0x2efec0(0xb4)](_0xeaacbf,_0x476672){const _0x5b60d1=_0x2efec0,_0x544f95=_0xeaacbf?_0x5b60d1(0x98):_0x5b60d1(0xc9);_0x476672[_0x5b60d1(0xad)](_0x1622ee=>{const _0x523918=_0x5b60d1,_0x1c1684=this[_0x523918(0x90)][_0x544f95],_0x4ad9e3=_0x1c1684[_0x523918(0xcb)](({index:_0x37a661})=>_0x37a661===_0x1622ee[_0x523918(0xca)]);if(_0x4ad9e3){const _0x3b2f2f=_0x1c1684[_0x523918(0x93)](_0x4ad9e3);_0x1c1684[_0x523918(0xa5)](_0x3b2f2f,0x1,_0x1622ee);}else _0x1c1684[_0x523918(0x8c)](_0x1622ee);});}[_0x2efec0(0xb1)](){const _0x2325e8=_0x2efec0;if(_0x2325e8(0xcd)===this[_0x2325e8(0x80)]){this[_0x2325e8(0xa1)]=this[_0x2325e8(0x88)][_0x2325e8(0xb2)](this[_0x2325e8(0xbe)]);const _0x1d6889=this[_0x2325e8(0x85)];this[_0x2325e8(0xba)]();const _0x131b84=this[_0x2325e8(0x97)](_0x1d6889,this[_0x2325e8(0x85)]);(_0x131b84[_0x2325e8(0xb9)]||this[_0x2325e8(0xc1)])&&(this[_0x2325e8(0xbb)](_0x2325e8(0xc4),this,_0x131b84),this[_0x2325e8(0x90)][_0x2325e8(0x98)][_0x2325e8(0xb9)]=this[_0x2325e8(0x90)][_0x2325e8(0xc9)][_0x2325e8(0xb9)]=0x0);}else this[_0x2325e8(0xa1)]=this[_0x2325e8(0x88)][_0x2325e8(0x83)](this[_0x2325e8(0xbe)]),this[_0x2325e8(0xbb)](_0x2325e8(0xc4),this);}[_0x2efec0(0x97)](_0x2d0637,_0x536c69){const _0x80d97=_0x2efec0,_0x2856fe=[];for(const _0xc0fc50 of _0x536c69){const _0x48c6b8=_0x2d0637[_0xc0fc50[_0x80d97(0xca)]];_0x48c6b8?_0x48c6b8[_0x80d97(0xc3)][_0x80d97(0xb9)]!==_0xc0fc50[_0x80d97(0xc3)][_0x80d97(0xb9)]?_0x2856fe[_0x80d97(0x8c)](_0xc0fc50):_0x48c6b8[_0x80d97(0xc3)][_0x80d97(0xad)]((_0x31a620,_0x488418)=>{const _0x42aa57=_0x80d97,_0x1ba14a=_0xc0fc50[_0x42aa57(0xc3)][_0x488418];_0x31a620['id']!==_0x1ba14a['id']&&_0x2856fe[_0x42aa57(0x8c)](_0xc0fc50);}):_0x2856fe[_0x80d97(0x8c)](_0xc0fc50);}return _0x2856fe;}[_0x2efec0(0xba)](){const _0x3dc3f3=_0x2efec0,_0x3535e9=new _0x249503('p',{},[new _0x249503(_0x3dc3f3(0x7f),{'style':_0x3dc3f3(0x8d)},[new _0x111dc6(_0x17af8e(this[_0x3dc3f3(0x9d)][_0x3dc3f3(0xcf)],_0x3dc3f3(0x7c)))])]),_0xd3e4b1=this[_0x3dc3f3(0x8e)][_0x3dc3f3(0xc2)](this[_0x3dc3f3(0xa1)],this[_0x3dc3f3(0xbd)][_0x3dc3f3(0x86)](!0x0),{'markUnstableElements':!this[_0x3dc3f3(0xc1)],'replaceRemovedWith':_0x3535e9,'cutAfterLastChange':!this[_0x3dc3f3(0xc1)]});if(!_0xd3e4b1[_0x3dc3f3(0x89)][_0x3dc3f3(0xb9)]&&!this[_0x3dc3f3(0xc1)])return;this[_0x3dc3f3(0xa7)]=_0xd3e4b1[_0x3dc3f3(0xa1)];let _0x58e0f0=[];if(_0x24fd16(_0x43378b=>{const _0x2e6d0c=_0x3dc3f3,_0x4f15a9=_0x1fd1a5(_0x43378b,_0x2e6d0c(0x94));if(!_0x4f15a9||!_0x2cee9b(_0x4f15a9))return!0x1;const _0x6637b4=[_0x43378b,..._0x2f565b(_0x43378b)]['at'](-0x2);if(_0x43378b!=_0x6637b4){const _0x22d6c2=_0x1fd1a5(_0x6637b4,_0x2e6d0c(0x94));_0x2cee9b(_0x22d6c2)||(_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x6637b4,'id':_0x22d6c2,'type':_0x2e6d0c(0x9b)}),_0xd3e4b1[_0x2e6d0c(0x89)][_0x2e6d0c(0x8c)](_0x22d6c2));}else _0xd3e4b1[_0x2e6d0c(0x89)][_0x2e6d0c(0x92)](_0x4f15a9)?_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0x9b),'id':_0x4f15a9}):_0xd3e4b1[_0x2e6d0c(0xc8)][_0x2e6d0c(0x92)](_0x4f15a9)?_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0xb8),'id':_0x4f15a9,'anchorId':_0x1fd1a5(_0x43378b[_0x2e6d0c(0x8b)],_0x2e6d0c(0x94))}):_0x58e0f0[_0x2e6d0c(0x8c)]({'node':_0x43378b,'type':_0x2e6d0c(0xcc),'id':_0x4f15a9});return!0x0;},this[_0x3dc3f3(0xa7)]),_0x58e0f0=_0x58e0f0[_0x3dc3f3(0xb5)](({node:_0x5ef3f3})=>[..._0x2f565b(_0x5ef3f3),_0x5ef3f3][_0x3dc3f3(0x82)](_0x16efd7=>!_0x1fd1a5(_0x16efd7,_0x3dc3f3(0xae)))),0x0==_0x58e0f0[_0x3dc3f3(0xb9)])return;const _0x1169e3=[[_0x58e0f0[0x0]]];for(let _0xba2edf=0x1;_0xba2edf<_0x58e0f0[_0x3dc3f3(0xb9)];_0xba2edf++){const _0x3dca48=_0x1169e3[_0x1169e3[_0x3dc3f3(0xb9)]-0x1],_0x537a2c=_0x3dca48[_0x3dca48[_0x3dc3f3(0xb9)]-0x1];_0x58e0f0[_0xba2edf][_0x3dc3f3(0xb6)][_0x3dc3f3(0x8b)]==_0x537a2c[_0x3dc3f3(0xb6)]&&_0x3dc3f3(0x9b)!=_0x58e0f0[_0xba2edf][_0x3dc3f3(0x80)]&&_0x3dc3f3(0x9b)!=_0x537a2c[_0x3dc3f3(0x80)]?_0x3dca48[_0x3dc3f3(0x8c)](_0x58e0f0[_0xba2edf]):_0x1169e3[_0x3dc3f3(0x8c)]([_0x58e0f0[_0xba2edf]]);}for(const _0x16638a of _0x1169e3){const _0x23b3a6=_0x16638a[0x0],_0xf0a44a=_0x16638a[_0x16638a[_0x3dc3f3(0xb9)]-0x1],_0x1a5e3b=_0x3e05c2(_0x23b3a6[_0x3dc3f3(0xb6)][_0x3dc3f3(0x8b)]);_0x1a5e3b&&_0x16638a[_0x3dc3f3(0xa4)](_0x1a5e3b);const _0x4eb843=_0x3e05c2(_0xf0a44a[_0x3dc3f3(0xb6)][_0x3dc3f3(0x9e)]);_0x4eb843&&_0x16638a[_0x3dc3f3(0x8c)](_0x4eb843);}function _0x2cee9b(_0x31166f){const _0x283801=_0x3dc3f3;return _0xd3e4b1[_0x283801(0x89)][_0x283801(0x92)](_0x31166f)||_0xd3e4b1[_0x283801(0xc8)][_0x283801(0x92)](_0x31166f)||_0xd3e4b1[_0x283801(0xaa)][_0x283801(0x92)](_0x31166f);}function _0x3e05c2(_0x172ca6){const _0x4c3f31=_0x3dc3f3;if(_0x172ca6&&_0x1fd1a5(_0x172ca6,_0x4c3f31(0x94))&&!_0x1fd1a5(_0x172ca6,_0x4c3f31(0xae))){const _0x1e402a=_0x1fd1a5(_0x172ca6,_0x4c3f31(0x94));if(!_0x2cee9b(_0x1e402a))return{'node':_0x172ca6,'type':_0x4c3f31(0xc6),'id':_0x1e402a};}return null;}this[_0x3dc3f3(0x85)]=_0x1169e3[_0x3dc3f3(0x7e)]((_0x51ac5f,_0x1b80cb)=>({'changes':_0x51ac5f,'state':_0x3dc3f3(0xa0),'index':_0x1b80cb}));}}export function isValidReplyType(_0x1b2b68){const _0x16b911=_0x2efec0;return Object[_0x16b911(0xbf)](AI_REPLY_TYPES)[_0x16b911(0x92)](_0x1b2b68);}export function isIgnoredReplyType(_0x521bc2){const _0x293c5e=_0x2efec0;return AI_REPLY_TYPES_IGNORED[_0x293c5e(0x92)](_0x521bc2);}export function isReplyTitleType(_0x15932e){return _0x15932e===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2a88a0){const _0x1dc28f=_0x2efec0;return _0x1dc28f(0x8a)===_0x2a88a0;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39b1e7=_0xc1c1;(function(_0x4fa1d8,_0x12e7f5){const _0x25b48f=_0xc1c1,_0x34c3fa=_0x4fa1d8();while(!![]){try{const _0x26af5e=parseInt(_0x25b48f(0xe3))/0x1*(-parseInt(_0x25b48f(0xe0))/0x2)+-parseInt(_0x25b48f(0xdb))/0x3+-parseInt(_0x25b48f(0xb6))/0x4+parseInt(_0x25b48f(0xad))/0x5+-parseInt(_0x25b48f(0xc2))/0x6+-parseInt(_0x25b48f(0xe7))/0x7+-parseInt(_0x25b48f(0xdd))/0x8*(-parseInt(_0x25b48f(0xae))/0x9);if(_0x26af5e===_0x12e7f5)break;else _0x34c3fa['push'](_0x34c3fa['shift']());}catch(_0x1cfbf6){_0x34c3fa['push'](_0x34c3fa['shift']());}}}(_0x5445,0x40277));import{ObservableMixin as _0x2416ce,uid as _0x4a43c2}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0xddd85,findByAttribute as _0x3a5e12,getAttribute as _0x5dfcfc,isComment as _0x389d70,isTag as _0x21b095,insertElement as _0x444c7d,moveElement as _0x8ac3c9,removeElement as _0x3de19b,replaceElement as _0x1bafcb,serialize as _0x528982,setAttribute as _0x987284,clone as _0x6e2e96,findAllComments as _0x59a2ef,getParents as _0x39dc7e,getNodeNestingLevel as _0x2e43cd,areNodesSame as _0x508257,removeElementsAfter as _0x2395c6}from'../utils/htmlparser.js';function _0xc1c1(_0x2d66d7,_0x186894){const _0x544581=_0x5445();return _0xc1c1=function(_0xc1c192,_0x318b5b){_0xc1c192=_0xc1c192-0xab;let _0x28cae1=_0x544581[_0xc1c192];return _0x28cae1;},_0xc1c1(_0x2d66d7,_0x186894);}function _0x5445(){const _0x4c3999=['_hasWrappedParent','3420214jsZHca','reverse','_touchedNodesState','modifiedIds','_markWrappedElements','nextSibling','previousSibling','_existingDataIds','has','_removeSpecialComments','slice','removedIds','2467480XPxMdo','131004lzSBEq','cloneNode','newIds','_isNewNode','data-removed','beforebegin','_findNextElementWithDataId','lastTouchedId','1862820xYcFTv','markUnstableElements','_storeDeletedElementIds','trim','indexOf','afterbegin','merge','data-unstable','invalidIds','_isExistingNode','parentNode','replaceRemovedWith','2701242ocsfrq','lastChild','filter','splice','_replaceNode','match','from','length','_markUnstableElements','afterend','forEach','childNodes','nodeType','push','_generateUid','_isExistingContentComment','_getNodeDataId','_findReferenceNode','markUnstableElementsDepth','includes','data-wrapped-id','_findPrevElementWithDataId','true','_insertNodes','map','36066RRjTrl','_findFallbackReferenceNode','920LBYZhs','_getUid','new-element','976250gUpFOp','_isDelNode','_markLastTagElementUnstable','1SVYRnJ','cutAfterLastChange','data-id'];_0x5445=function(){return _0x4c3999;};return _0x5445();}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x2416ce(){[_0x39b1e7(0xd0)];[_0x39b1e7(0xe9)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x39b1e7(0xee)]=new Set();constructor(_0x4c7867){const _0x22be46=_0x39b1e7;super(),this[_0x22be46(0xd0)]=_0x4c7867||_0x4a43c2;}[_0x39b1e7(0xbc)](_0x53421c,_0x51293f,_0x4be1c0){const _0x5aaf22=_0x39b1e7,_0x118987=_0x6e2e96(_0x53421c);if(0x0===_0x51293f[_0x5aaf22(0xcd)][_0x5aaf22(0xc9)]){const _0xad3bd7=[];return _0xddd85(_0x5aaf22(0xe5),_0x5aaf22(0xdf),_0x118987)[_0x5aaf22(0xcc)](_0x1c21d1=>{const _0x296953=_0x5aaf22,_0x53bdc0=this[_0x296953(0xd0)]();_0x987284(_0x1c21d1,_0x296953(0xe5),_0x53bdc0),_0xad3bd7[_0x296953(0xcf)](_0x53bdc0);}),this[_0x5aaf22(0xf0)](_0x118987),{'parsedContent':_0x118987,'newNodeIds':_0xad3bd7,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xb7)]&&this[_0x5aaf22(0xe2)](_0x118987),this[_0x5aaf22(0xe9)][_0x5aaf22(0xb0)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xbe)]=[],this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]=null,this[_0x5aaf22(0xee)]=new Set(_0xddd85(_0x5aaf22(0xe5),null,_0x51293f)[_0x5aaf22(0xda)](_0x3edf93=>_0x5dfcfc(_0x3edf93,_0x5aaf22(0xe5)))[_0x5aaf22(0xc4)](_0x2c59ad=>!!_0x2c59ad));let _0x534cf8=-0x1,_0x5ac2a3=!0x1;const _0x5ef03e=_0x118987[_0x5aaf22(0xcd)],_0x13bc78=Array[_0x5aaf22(0xc8)](_0x5ef03e)[_0x5aaf22(0xc4)](_0x538ebb=>!(0x3===_0x538ebb[_0x5aaf22(0xce)]&&''===_0x528982(_0x538ebb)[_0x5aaf22(0xb9)]())),_0x4eeeb1=_0x13bc78[_0x5aaf22(0xc9)];for(let _0x4fe309=0x0;_0x4fe309<_0x4eeeb1;_0x4fe309++){const _0x4af4f7=_0x13bc78[_0x4fe309],_0x1fd670=_0x13bc78[_0x4fe309+0x1];if(this[_0x5aaf22(0xb1)](_0x4af4f7)){if(-0x1===_0x534cf8&&(_0x534cf8=_0x4fe309),this[_0x5aaf22(0xeb)](_0x4af4f7),!this[_0x5aaf22(0xb1)](_0x1fd670)){const [_0x62e911,_0x4afca2]=this[_0x5aaf22(0xd3)](_0x4af4f7,_0x5ac2a3,_0x51293f);if(_0x62e911){const _0x15227c=Array[_0x5aaf22(0xc8)](_0x13bc78)[_0x5aaf22(0xab)](_0x534cf8,_0x4fe309+0x1);this[_0x5aaf22(0xd9)](_0x62e911,_0x15227c,_0x4afca2),_0x534cf8=-0x1;}}}else{if(this[_0x5aaf22(0xd1)](_0x4af4f7))_0x5ac2a3=!0x0;else{if(this[_0x5aaf22(0xbf)](_0x4af4f7)){const _0x1efbf6=_0x5dfcfc(_0x4af4f7,_0x5aaf22(0xe5));if(_0x1efbf6&&this[_0x5aaf22(0xee)][_0x5aaf22(0xef)](_0x1efbf6)){const _0x124a4a=_0x3a5e12(_0x5aaf22(0xe5),_0x1efbf6,_0x51293f);this[_0x5aaf22(0xc6)](_0x124a4a,_0x4af4f7);}if(this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xd5)](_0x1efbf6)){const _0x1bee3e=this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xba)](_0x1efbf6);this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)][_0x5aaf22(0xc5)](_0x1bee3e,0x1);}}else{if(this[_0x5aaf22(0xe1)](_0x4af4f7)){const _0x57484f=_0x5dfcfc(_0x4af4f7,_0x5aaf22(0xe5));this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)][_0x5aaf22(0xd5)](_0x57484f)||this[_0x5aaf22(0xb8)](_0x4af4f7);}}}}}for(const _0x1c66fe of this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]){const _0x266ab5=_0x3a5e12(_0x5aaf22(0xe5),_0x1c66fe,_0x51293f);if(_0x266ab5){if(_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xc1)]){this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]=_0x1c66fe;const _0x16d5bb=_0x4be1c0[_0x5aaf22(0xc1)][_0x5aaf22(0xaf)](!0x0);_0x987284(_0x16d5bb,_0x5aaf22(0xe5),_0x1c66fe),_0x987284(_0x16d5bb,_0x5aaf22(0xb2),_0x5aaf22(0xd8)),_0x1bafcb(_0x266ab5,_0x16d5bb);}else _0x3de19b(_0x266ab5);}}if(_0xddd85(_0x5aaf22(0xd6),null,_0x51293f)[_0x5aaf22(0xcc)](_0x2a6ba2=>{const _0x31d2bb=_0x5aaf22,_0x54d6b6=_0x5dfcfc(_0x2a6ba2,_0x31d2bb(0xd6)),_0x196cf9=_0x3a5e12(_0x31d2bb(0xe5),_0x54d6b6,_0x51293f);_0x196cf9&&_0x8ac3c9(_0x196cf9,_0x2a6ba2);}),_0xddd85(_0x5aaf22(0xe5),_0x5aaf22(0xdf),_0x51293f)[_0x5aaf22(0xcc)](_0xa26066=>{const _0x73c644=_0x5aaf22,_0x31c738=this[_0x73c644(0xde)](_0xa26066);_0x987284(_0xa26066,_0x73c644(0xe5),_0x31c738),this[_0x73c644(0xe9)][_0x73c644(0xb0)][_0x73c644(0xcf)](_0x31c738);}),this[_0x5aaf22(0xf0)](_0x51293f),_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xb7)]&&this[_0x5aaf22(0xca)](_0x51293f,_0x4be1c0[_0x5aaf22(0xd4)]||0x0),_0x4be1c0&&_0x4be1c0[_0x5aaf22(0xe4)]&&this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)]){let _0x5ba65b=_0x3a5e12(_0x5aaf22(0xe5),this[_0x5aaf22(0xe9)][_0x5aaf22(0xb5)],_0x51293f);for(;_0x5ba65b;)_0x2395c6(_0x5ba65b),_0x5ba65b=_0x5ba65b[_0x5aaf22(0xc0)];}return{'parsedContent':_0x51293f,'newNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xb0)],'modifiedNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xea)],'removedNodeIds':this[_0x5aaf22(0xe9)][_0x5aaf22(0xac)]};}[_0x39b1e7(0xd9)](_0x1f8c47,_0x404c9f,_0xc8b640){const _0x364244=_0x39b1e7;for(const _0x2dc093 of _0x404c9f){const _0x27edb5=this[_0x364244(0xde)](_0x2dc093);_0x987284(_0x2dc093,_0x364244(0xe5),_0x27edb5),this[_0x364244(0xe9)][_0x364244(0xb0)][_0x364244(0xcf)](_0x27edb5),this[_0x364244(0xe9)][_0x364244(0xb5)]=_0x27edb5;}const _0x4a3095=_0x364244(0xbb)===_0xc8b640||_0x364244(0xcb)===_0xc8b640?_0x404c9f[_0x364244(0xe8)]():_0x404c9f;for(const _0x5721f7 of _0x4a3095)_0x444c7d(_0x1f8c47,_0x5721f7,_0xc8b640);}[_0x39b1e7(0xc6)](_0xf6fe51,_0x1b8b29){const _0x22abde=_0x39b1e7;if(!_0xf6fe51)return;if(_0x508257(_0xf6fe51,_0x1b8b29))return;const _0x37b10c=this[_0x22abde(0xde)](_0xf6fe51);_0x987284(_0x1b8b29,_0x22abde(0xe5),_0x37b10c),this[_0x22abde(0xe9)][_0x22abde(0xea)][_0x22abde(0xcf)](_0x37b10c),this[_0x22abde(0xe9)][_0x22abde(0xb5)]=_0x37b10c,_0x1bafcb(_0xf6fe51,_0x1b8b29[_0x22abde(0xaf)](!0x0));}[_0x39b1e7(0xd3)](_0x2345a8,_0x2210a1,_0x13e79c){const _0x4ea093=_0x39b1e7,_0x347822=this[_0x4ea093(0xd7)](_0x2345a8,!0x1);if(_0x347822){const _0x8e3c87=this[_0x4ea093(0xd2)](_0x347822),_0x1416aa=_0x3a5e12(_0x4ea093(0xe5),_0x8e3c87,_0x13e79c);if(_0x1416aa)return[_0x1416aa,_0x4ea093(0xcb)];this[_0x4ea093(0xe9)][_0x4ea093(0xbe)][_0x4ea093(0xcf)](_0x8e3c87);}const _0x18a711=this[_0x4ea093(0xb4)](_0x2345a8,!0x1);if(_0x18a711){const _0x4a348f=this[_0x4ea093(0xd2)](_0x18a711),_0x48faed=_0x3a5e12(_0x4ea093(0xe5),_0x4a348f,_0x13e79c);if(_0x48faed)return[_0x48faed,_0x4ea093(0xb3)];this[_0x4ea093(0xe9)][_0x4ea093(0xbe)][_0x4ea093(0xcf)](_0x4a348f);}return _0x2210a1?_0x2345a8[_0x4ea093(0xec)]?this[_0x4ea093(0xdc)](_0x2345a8,_0x13e79c):[_0x13e79c[_0x4ea093(0xcd)][_0x13e79c[_0x4ea093(0xcd)][_0x4ea093(0xc9)]-0x1],_0x4ea093(0xcb)]:[_0x13e79c[_0x4ea093(0xcd)][0x0],_0x4ea093(0xb3)];}[_0x39b1e7(0xdc)](_0xd2f6a9,_0x254d66){const _0x3a1157=_0x39b1e7,_0x3e2bf3=[],_0xad6265=this[_0x3a1157(0xd7)](_0xd2f6a9,!0x0);if(_0xad6265){const _0x47622d=this[_0x3a1157(0xd2)](_0xad6265),_0x14eccc=_0x3a5e12(_0x3a1157(0xe5),_0x47622d,_0x254d66);_0x14eccc&&_0x3e2bf3[_0x3a1157(0xcf)]([_0x14eccc,_0x3a1157(0xcb)]);}const _0x5e5a8d=this[_0x3a1157(0xb4)](_0xd2f6a9,!0x0);if(_0x5e5a8d){const _0x3a3357=this[_0x3a1157(0xd2)](_0x5e5a8d),_0x4801e7=_0x3a5e12(_0x3a1157(0xe5),_0x3a3357,_0x254d66);_0x4801e7&&_0x3e2bf3[_0x3a1157(0xcf)]([_0x4801e7,_0x3a1157(0xb3)]);}if(_0x3e2bf3[_0x3a1157(0xc9)]>0x1)return _0x2e43cd(_0x3e2bf3[0x0][0x0])<=_0x2e43cd(_0x3e2bf3[0x1][0x0])?_0x3e2bf3[0x0]:_0x3e2bf3[0x1];return 0x1===_0x3e2bf3[_0x3a1157(0xc9)]?_0x3e2bf3[0x0]:[_0x254d66[_0x3a1157(0xc3)],_0x3a1157(0xcb)];}[_0x39b1e7(0xb4)](_0x2f52b9,_0x327528){const _0x3342f3=_0x39b1e7;let _0x4df068=_0x2f52b9[_0x3342f3(0xec)],_0x235985=null,_0x3e4c06=!0x1;for(;_0x4df068;){if(_0x389d70(_0x4df068)){if(this[_0x3342f3(0xe1)](_0x4df068)&&(_0x235985=_0x4df068),this[_0x3342f3(0xd1)](_0x4df068)&&_0x327528&&!_0x3e4c06){_0x3e4c06=!0x0,_0x4df068=_0x4df068[_0x3342f3(0xec)];continue;}break;}const _0x44fd59=_0x5dfcfc(_0x4df068,_0x3342f3(0xe5));if(_0x44fd59&&_0x3342f3(0xdf)!==_0x44fd59&&this[_0x3342f3(0xee)][_0x3342f3(0xef)](_0x44fd59)){_0x235985=_0x4df068;break;}_0x4df068=_0x4df068[_0x3342f3(0xec)];}return _0x235985;}[_0x39b1e7(0xd7)](_0x7c45a0,_0x8b7936){const _0x4bc59c=_0x39b1e7;let _0x392921=_0x7c45a0[_0x4bc59c(0xed)],_0x446ba4=null,_0x1e67a2=!0x1;for(;_0x392921;){if(_0x389d70(_0x392921)){if(this[_0x4bc59c(0xe1)](_0x392921)&&(_0x446ba4=_0x392921),this[_0x4bc59c(0xd1)](_0x392921)&&_0x8b7936&&!_0x1e67a2){_0x1e67a2=!0x0,_0x392921=_0x392921[_0x4bc59c(0xed)];continue;}break;}const _0x37d2e6=_0x5dfcfc(_0x392921,_0x4bc59c(0xe5));if(_0x37d2e6&&_0x4bc59c(0xdf)!==_0x37d2e6&&this[_0x4bc59c(0xee)][_0x4bc59c(0xef)](_0x37d2e6)){_0x446ba4=_0x392921;break;}_0x392921=_0x392921[_0x4bc59c(0xed)];}return _0x446ba4;}[_0x39b1e7(0xeb)](_0x320a0a){const _0x517aed=_0x39b1e7;_0x21b095(_0x320a0a)&&_0xddd85(_0x517aed(0xe5),null,_0x320a0a)[_0x517aed(0xcc)](_0x54491e=>{const _0x4c4a82=_0x517aed;if(this[_0x4c4a82(0xbf)](_0x54491e)&&!this[_0x4c4a82(0xe6)](_0x54491e)){const _0x41f54f=_0x5dfcfc(_0x54491e,_0x4c4a82(0xe5));_0x987284(_0x54491e,_0x4c4a82(0xd6),_0x41f54f),_0x987284(_0x54491e,_0x4c4a82(0xe5),null);}});}[_0x39b1e7(0xd2)](_0x589019){const _0xdae545=_0x39b1e7;if(!_0x589019)return null;if(_0x21b095(_0x589019))return _0x5dfcfc(_0x589019,_0xdae545(0xe5));if(_0x389d70(_0x589019)){const _0x14269d=_0x528982(_0x589019)[_0xdae545(0xc7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x14269d&&_0x14269d[0x1])return _0x14269d[0x1];}return null;}[_0x39b1e7(0xb8)](_0xf58344){const _0x460e62=_0x39b1e7;if(_0x389d70(_0xf58344)){const _0x4e6c2a=_0x528982(_0xf58344)[_0x460e62(0xc7)](/removed[\s*-]data-id="([^"]+)"/);_0x4e6c2a&&_0x4e6c2a[0x1]&&this[_0x460e62(0xe9)][_0x460e62(0xac)][_0x460e62(0xcf)](_0x4e6c2a[0x1]);}}[_0x39b1e7(0xde)](_0x1823d2){const _0x192bbe=_0x39b1e7;return this[_0x192bbe(0xbf)](_0x1823d2)?_0x5dfcfc(_0x1823d2,_0x192bbe(0xe5)):this[_0x192bbe(0xd0)]();}[_0x39b1e7(0xf0)](_0x30f224){const _0xfbf2ad=_0x39b1e7;_0x59a2ef(_0x30f224)[_0xfbf2ad(0xc4)](_0x45071e=>this[_0xfbf2ad(0xe1)](_0x45071e)||this[_0xfbf2ad(0xd1)](_0x45071e))[_0xfbf2ad(0xcc)](_0x46b1ea=>{_0x3de19b(_0x46b1ea);});}[_0x39b1e7(0xe2)](_0x32374c){const _0x54dc23=_0x39b1e7,_0x105fbd=_0x32374c[_0x54dc23(0xcd)],_0x5bac3d=_0x105fbd[_0x105fbd[_0x54dc23(0xc9)]-0x1];_0x5bac3d&&_0x21b095(_0x5bac3d)&&_0x987284(_0x5bac3d,_0x54dc23(0xbd),_0x54dc23(0xd8));}[_0x39b1e7(0xca)](_0x3e52b1,_0x541705){const _0x328cd6=_0x39b1e7,_0x540cde=_0x3a5e12(_0x328cd6(0xbd),_0x328cd6(0xd8),_0x3e52b1);if(!_0x540cde)return;const _0xbf5553=_0x39dc7e(_0x540cde)[_0x328cd6(0xab)](0x0,-0x1),_0x58f906=_0xbf5553[_0x328cd6(0xc9)];let _0xc742f8=_0x540cde;if(_0x58f906>_0x541705){let _0x3baa0f=_0x58f906,_0x5f17a2=null;for(;_0x3baa0f>_0x541705&&_0x3baa0f>=0x0;)_0x3baa0f--,_0x5f17a2=_0xbf5553[_0x3baa0f];_0x5f17a2&&(_0xc742f8=_0x5f17a2,_0x987284(_0x540cde,_0x328cd6(0xbd),null),_0x987284(_0x5f17a2,_0x328cd6(0xbd),_0x328cd6(0xd8)));}else{if(_0x58f906<_0x541705){let _0x1afe53=_0x58f906,_0x342459=_0x540cde;for(;_0x1afe53<_0x541705;){const _0x14dd0a=_0x342459[_0x328cd6(0xcd)][_0x328cd6(0xc4)](_0x17862c=>_0x21b095(_0x17862c));if(0x0===_0x14dd0a[_0x328cd6(0xc9)])break;_0x1afe53++,_0x342459=_0x14dd0a[_0x14dd0a[_0x328cd6(0xc9)]-0x1];}_0x342459&&(_0xc742f8=_0x342459,_0x987284(_0x540cde,_0x328cd6(0xbd),null),_0x987284(_0x342459,_0x328cd6(0xbd),_0x328cd6(0xd8)));}}let _0x1993fb=_0xc742f8;for(;_0x1993fb;){for(;_0x1993fb[_0x328cd6(0xec)];)_0x1993fb=_0x1993fb[_0x328cd6(0xec)],_0x21b095(_0x1993fb)&&_0x987284(_0x1993fb,_0x328cd6(0xbd),_0x328cd6(0xd8));_0x1993fb=_0x1993fb[_0x328cd6(0xc0)];}}[_0x39b1e7(0xb1)](_0x5f223b){const _0x58dd84=_0x39b1e7;return Boolean(_0x58dd84(0xdf)===_0x5dfcfc(_0x5f223b,_0x58dd84(0xe5)));}[_0x39b1e7(0xbf)](_0xef4a0c){const _0x2c12df=_0x39b1e7;return Boolean((_0x5dfcfc(_0xef4a0c,_0x2c12df(0xe5))||'')[_0x2c12df(0xc9)]>0x0&&_0x2c12df(0xdf)!==_0x5dfcfc(_0xef4a0c,_0x2c12df(0xe5)));}[_0x39b1e7(0xe1)](_0x28661e){const _0x52d45b=_0x39b1e7;return!!_0x28661e&&Boolean(_0x389d70(_0x28661e)&&_0x528982(_0x28661e)[_0x52d45b(0xc7)](/removed[\s*-]data-id="[^"]+"/));}[_0x39b1e7(0xe6)](_0x4c749e){const _0x48eba7=_0x39b1e7;let _0x408149=_0x4c749e[_0x48eba7(0xc0)];for(;_0x408149;){if(_0x5dfcfc(_0x408149,_0x48eba7(0xd6)))return!0x0;_0x408149=_0x408149[_0x48eba7(0xc0)];}return!0x1;}[_0x39b1e7(0xd1)](_0x10ee38){const _0x5210e9=_0x39b1e7;return Boolean(_0x389d70(_0x10ee38)&&_0x528982(_0x10ee38)[_0x5210e9(0xc7)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x46c7(){const _0x1e4e7e=['push','_hasWrappedParent','12702780IVRpcz','nodeType','data-id','afterend','1177832bRpeZW','has','replaceRemovedWith','true','filter','_markWrappedElements','removedIds','_isNewNode','_removeSpecialComments','785583WTHXIv','_isDelNode','_touchedNodesState','_storeDeletedElementIds','216tjMxWX','_getNodeDataId','trim','cutAfterLastChange','new-element','3VkdRFA','215220EPIliG','reverse','_findNextElementWithDataId','92oXiyYf','previousSibling','childNodes','nextSibling','newIds','invalidIds','markUnstableElementsDepth','lastChild','_existingDataIds','451WzNAUf','lastTouchedId','_replaceNode','data-unstable','_markLastTagElementUnstable','indexOf','from','211615xcITpL','_getUid','includes','data-wrapped-id','_markUnstableElements','data-removed','forEach','modifiedIds','_findFallbackReferenceNode','_findPrevElementWithDataId','beforebegin','cloneNode','parentNode','_generateUid','match','_insertNodes','merge','splice','488vTyaeC','map','_isExistingNode','slice','158823bFvGAP','length','139989STQFxK','afterbegin','_isExistingContentComment','markUnstableElements','_findReferenceNode'];_0x46c7=function(){return _0x1e4e7e;};return _0x46c7();}const _0x221c77=_0x3407;(function(_0x44a4e5,_0x48756b){const _0x4fd5c3=_0x3407,_0x3b36cb=_0x44a4e5();while(!![]){try{const _0x595eec=-parseInt(_0x4fd5c3(0xe6))/0x1*(-parseInt(_0x4fd5c3(0x11d))/0x2)+parseInt(_0x4fd5c3(0x112))/0x3*(parseInt(_0x4fd5c3(0xea))/0x4)+parseInt(_0x4fd5c3(0xfa))/0x5*(parseInt(_0x4fd5c3(0xe1))/0x6)+-parseInt(_0x4fd5c3(0x110))/0x7*(parseInt(_0x4fd5c3(0x10c))/0x8)+-parseInt(_0x4fd5c3(0xdd))/0x9+-parseInt(_0x4fd5c3(0x119))/0xa+parseInt(_0x4fd5c3(0xf3))/0xb*(-parseInt(_0x4fd5c3(0xe7))/0xc);if(_0x595eec===_0x48756b)break;else _0x3b36cb['push'](_0x3b36cb['shift']());}catch(_0x277635){_0x3b36cb['push'](_0x3b36cb['shift']());}}}(_0x46c7,0xd87a8));import{ObservableMixin as _0x35ccac,uid as _0x5a1746}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x52ee52,findByAttribute as _0x26c226,getAttribute as _0x2f5d61,isComment as _0x4f17e9,isTag as _0xf7a53d,insertElement as _0x493ada,moveElement as _0x1d4cd6,removeElement as _0xdf2c7d,replaceElement as _0x57b9bc,serialize as _0xc23915,setAttribute as _0x510964,clone as _0x320393,findAllComments as _0x348ace,getParents as _0x32b1d0,getNodeNestingLevel as _0x509e95,areNodesSame as _0x5ca035,removeElementsAfter as _0x4b22cd}from'../utils/htmlparser.js';function _0x3407(_0x2dbed4,_0x53f0af){const _0x46c7d1=_0x46c7();return _0x3407=function(_0x3407ec,_0x598793){_0x3407ec=_0x3407ec-0xd8;let _0x201b51=_0x46c7d1[_0x3407ec];return _0x201b51;},_0x3407(_0x2dbed4,_0x53f0af);}export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x35ccac(){[_0x221c77(0x107)];[_0x221c77(0xdf)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x221c77(0xf2)]=new Set();constructor(_0x4fd4cb){const _0x591b81=_0x221c77;super(),this[_0x591b81(0x107)]=_0x4fd4cb||_0x5a1746;}[_0x221c77(0x10a)](_0x408d2e,_0x20db38,_0x589533){const _0xb6cb8d=_0x221c77,_0x5e8ad3=_0x320393(_0x408d2e);if(0x0===_0x20db38[_0xb6cb8d(0xec)][_0xb6cb8d(0x111)]){const _0x32ecde=[];return _0x52ee52(_0xb6cb8d(0x11b),_0xb6cb8d(0xe5),_0x5e8ad3)[_0xb6cb8d(0x100)](_0x2cc4e4=>{const _0x5e774e=_0xb6cb8d,_0x581799=this[_0x5e774e(0x107)]();_0x510964(_0x2cc4e4,_0x5e774e(0x11b),_0x581799),_0x32ecde[_0x5e774e(0x117)](_0x581799);}),this[_0xb6cb8d(0xdc)](_0x5e8ad3),{'parsedContent':_0x5e8ad3,'newNodeIds':_0x32ecde,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x589533&&_0x589533[_0xb6cb8d(0x115)]&&this[_0xb6cb8d(0xf7)](_0x5e8ad3),this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xee)]=[],this[_0xb6cb8d(0xdf)][_0xb6cb8d(0x101)]=[],this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)]=[],this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xef)]=[],this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xf4)]=null,this[_0xb6cb8d(0xf2)]=new Set(_0x52ee52(_0xb6cb8d(0x11b),null,_0x20db38)[_0xb6cb8d(0x10d)](_0x1d7247=>_0x2f5d61(_0x1d7247,_0xb6cb8d(0x11b)))[_0xb6cb8d(0xd8)](_0xcfc896=>!!_0xcfc896));let _0x526522=-0x1,_0x29079e=!0x1;const _0x133817=_0x5e8ad3[_0xb6cb8d(0xec)],_0x5db9fe=Array[_0xb6cb8d(0xf9)](_0x133817)[_0xb6cb8d(0xd8)](_0x4908e7=>!(0x3===_0x4908e7[_0xb6cb8d(0x11a)]&&''===_0xc23915(_0x4908e7)[_0xb6cb8d(0xe3)]())),_0x1e0983=_0x5db9fe[_0xb6cb8d(0x111)];for(let _0x23389b=0x0;_0x23389b<_0x1e0983;_0x23389b++){const _0x46b79a=_0x5db9fe[_0x23389b],_0x3a427c=_0x5db9fe[_0x23389b+0x1];if(this[_0xb6cb8d(0xdb)](_0x46b79a)){if(-0x1===_0x526522&&(_0x526522=_0x23389b),this[_0xb6cb8d(0xd9)](_0x46b79a),!this[_0xb6cb8d(0xdb)](_0x3a427c)){const [_0x5b8a7e,_0x56f84b]=this[_0xb6cb8d(0x116)](_0x46b79a,_0x29079e,_0x20db38);if(_0x5b8a7e){const _0x44423f=Array[_0xb6cb8d(0xf9)](_0x5db9fe)[_0xb6cb8d(0x10f)](_0x526522,_0x23389b+0x1);this[_0xb6cb8d(0x109)](_0x5b8a7e,_0x44423f,_0x56f84b),_0x526522=-0x1;}}}else{if(this[_0xb6cb8d(0x114)](_0x46b79a))_0x29079e=!0x0;else{if(this[_0xb6cb8d(0x10e)](_0x46b79a)){const _0x2ddcfd=_0x2f5d61(_0x46b79a,_0xb6cb8d(0x11b));if(_0x2ddcfd&&this[_0xb6cb8d(0xf2)][_0xb6cb8d(0x11e)](_0x2ddcfd)){const _0x524c57=_0x26c226(_0xb6cb8d(0x11b),_0x2ddcfd,_0x20db38);this[_0xb6cb8d(0xf5)](_0x524c57,_0x46b79a);}if(this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)][_0xb6cb8d(0xfc)](_0x2ddcfd)){const _0x2a86d2=this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)][_0xb6cb8d(0xf8)](_0x2ddcfd);this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)][_0xb6cb8d(0x10b)](_0x2a86d2,0x1);}}else{if(this[_0xb6cb8d(0xde)](_0x46b79a)){const _0x5c332f=_0x2f5d61(_0x46b79a,_0xb6cb8d(0x11b));this[_0xb6cb8d(0xdf)][_0xb6cb8d(0x101)][_0xb6cb8d(0xfc)](_0x5c332f)||this[_0xb6cb8d(0xe0)](_0x46b79a);}}}}}for(const _0x16aa1d of this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)]){const _0x41ef7f=_0x26c226(_0xb6cb8d(0x11b),_0x16aa1d,_0x20db38);if(_0x41ef7f){if(_0x589533&&_0x589533[_0xb6cb8d(0x11f)]){this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xf4)]=_0x16aa1d;const _0x4938c0=_0x589533[_0xb6cb8d(0x11f)][_0xb6cb8d(0x105)](!0x0);_0x510964(_0x4938c0,_0xb6cb8d(0x11b),_0x16aa1d),_0x510964(_0x4938c0,_0xb6cb8d(0xff),_0xb6cb8d(0x120)),_0x57b9bc(_0x41ef7f,_0x4938c0);}else _0xdf2c7d(_0x41ef7f);}}if(_0x52ee52(_0xb6cb8d(0xfd),null,_0x20db38)[_0xb6cb8d(0x100)](_0xff2d7=>{const _0x4a116b=_0xb6cb8d,_0x11b2d5=_0x2f5d61(_0xff2d7,_0x4a116b(0xfd)),_0x2aabba=_0x26c226(_0x4a116b(0x11b),_0x11b2d5,_0x20db38);_0x2aabba&&_0x1d4cd6(_0x2aabba,_0xff2d7);}),_0x52ee52(_0xb6cb8d(0x11b),_0xb6cb8d(0xe5),_0x20db38)[_0xb6cb8d(0x100)](_0x357654=>{const _0x41ae6f=_0xb6cb8d,_0x3e3cfa=this[_0x41ae6f(0xfb)](_0x357654);_0x510964(_0x357654,_0x41ae6f(0x11b),_0x3e3cfa),this[_0x41ae6f(0xdf)][_0x41ae6f(0xee)][_0x41ae6f(0x117)](_0x3e3cfa);}),this[_0xb6cb8d(0xdc)](_0x20db38),_0x589533&&_0x589533[_0xb6cb8d(0x115)]&&this[_0xb6cb8d(0xfe)](_0x20db38,_0x589533[_0xb6cb8d(0xf0)]||0x0),_0x589533&&_0x589533[_0xb6cb8d(0xe4)]&&this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xf4)]){let _0x321a5c=_0x26c226(_0xb6cb8d(0x11b),this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xf4)],_0x20db38);for(;_0x321a5c;)_0x4b22cd(_0x321a5c),_0x321a5c=_0x321a5c[_0xb6cb8d(0x106)];}return{'parsedContent':_0x20db38,'newNodeIds':this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xee)],'modifiedNodeIds':this[_0xb6cb8d(0xdf)][_0xb6cb8d(0x101)],'removedNodeIds':this[_0xb6cb8d(0xdf)][_0xb6cb8d(0xda)]};}[_0x221c77(0x109)](_0x1a2d2a,_0x1cba7c,_0x150372){const _0x15bffd=_0x221c77;for(const _0x8ad5b2 of _0x1cba7c){const _0x3a40fc=this[_0x15bffd(0xfb)](_0x8ad5b2);_0x510964(_0x8ad5b2,_0x15bffd(0x11b),_0x3a40fc),this[_0x15bffd(0xdf)][_0x15bffd(0xee)][_0x15bffd(0x117)](_0x3a40fc),this[_0x15bffd(0xdf)][_0x15bffd(0xf4)]=_0x3a40fc;}const _0x4d810d=_0x15bffd(0x113)===_0x150372||_0x15bffd(0x11c)===_0x150372?_0x1cba7c[_0x15bffd(0xe8)]():_0x1cba7c;for(const _0x368d81 of _0x4d810d)_0x493ada(_0x1a2d2a,_0x368d81,_0x150372);}[_0x221c77(0xf5)](_0x8d4013,_0x2829c1){const _0x26e279=_0x221c77;if(!_0x8d4013)return;if(_0x5ca035(_0x8d4013,_0x2829c1))return;const _0x4b2ad6=this[_0x26e279(0xfb)](_0x8d4013);_0x510964(_0x2829c1,_0x26e279(0x11b),_0x4b2ad6),this[_0x26e279(0xdf)][_0x26e279(0x101)][_0x26e279(0x117)](_0x4b2ad6),this[_0x26e279(0xdf)][_0x26e279(0xf4)]=_0x4b2ad6,_0x57b9bc(_0x8d4013,_0x2829c1[_0x26e279(0x105)](!0x0));}[_0x221c77(0x116)](_0x2e7022,_0x19a335,_0x9ee649){const _0x578e23=_0x221c77,_0xd207e1=this[_0x578e23(0x103)](_0x2e7022,!0x1);if(_0xd207e1){const _0x211107=this[_0x578e23(0xe2)](_0xd207e1),_0x1f8864=_0x26c226(_0x578e23(0x11b),_0x211107,_0x9ee649);if(_0x1f8864)return[_0x1f8864,_0x578e23(0x11c)];this[_0x578e23(0xdf)][_0x578e23(0xef)][_0x578e23(0x117)](_0x211107);}const _0x276733=this[_0x578e23(0xe9)](_0x2e7022,!0x1);if(_0x276733){const _0x3a3c12=this[_0x578e23(0xe2)](_0x276733),_0x46d305=_0x26c226(_0x578e23(0x11b),_0x3a3c12,_0x9ee649);if(_0x46d305)return[_0x46d305,_0x578e23(0x104)];this[_0x578e23(0xdf)][_0x578e23(0xef)][_0x578e23(0x117)](_0x3a3c12);}return _0x19a335?_0x2e7022[_0x578e23(0xed)]?this[_0x578e23(0x102)](_0x2e7022,_0x9ee649):[_0x9ee649[_0x578e23(0xec)][_0x9ee649[_0x578e23(0xec)][_0x578e23(0x111)]-0x1],_0x578e23(0x11c)]:[_0x9ee649[_0x578e23(0xec)][0x0],_0x578e23(0x104)];}[_0x221c77(0x102)](_0x45621f,_0x52e6b8){const _0x2f3b4e=_0x221c77,_0x4720c9=[],_0x5af1d0=this[_0x2f3b4e(0x103)](_0x45621f,!0x0);if(_0x5af1d0){const _0x1e717a=this[_0x2f3b4e(0xe2)](_0x5af1d0),_0x56eaa8=_0x26c226(_0x2f3b4e(0x11b),_0x1e717a,_0x52e6b8);_0x56eaa8&&_0x4720c9[_0x2f3b4e(0x117)]([_0x56eaa8,_0x2f3b4e(0x11c)]);}const _0x6bc904=this[_0x2f3b4e(0xe9)](_0x45621f,!0x0);if(_0x6bc904){const _0xe78098=this[_0x2f3b4e(0xe2)](_0x6bc904),_0x1a289e=_0x26c226(_0x2f3b4e(0x11b),_0xe78098,_0x52e6b8);_0x1a289e&&_0x4720c9[_0x2f3b4e(0x117)]([_0x1a289e,_0x2f3b4e(0x104)]);}if(_0x4720c9[_0x2f3b4e(0x111)]>0x1)return _0x509e95(_0x4720c9[0x0][0x0])<=_0x509e95(_0x4720c9[0x1][0x0])?_0x4720c9[0x0]:_0x4720c9[0x1];return 0x1===_0x4720c9[_0x2f3b4e(0x111)]?_0x4720c9[0x0]:[_0x52e6b8[_0x2f3b4e(0xf1)],_0x2f3b4e(0x11c)];}[_0x221c77(0xe9)](_0x4fcbf1,_0x4e91ac){const _0x320367=_0x221c77;let _0x3ba67b=_0x4fcbf1[_0x320367(0xed)],_0x2b52b3=null,_0xceb214=!0x1;for(;_0x3ba67b;){if(_0x4f17e9(_0x3ba67b)){if(this[_0x320367(0xde)](_0x3ba67b)&&(_0x2b52b3=_0x3ba67b),this[_0x320367(0x114)](_0x3ba67b)&&_0x4e91ac&&!_0xceb214){_0xceb214=!0x0,_0x3ba67b=_0x3ba67b[_0x320367(0xed)];continue;}break;}const _0x4752bd=_0x2f5d61(_0x3ba67b,_0x320367(0x11b));if(_0x4752bd&&_0x320367(0xe5)!==_0x4752bd&&this[_0x320367(0xf2)][_0x320367(0x11e)](_0x4752bd)){_0x2b52b3=_0x3ba67b;break;}_0x3ba67b=_0x3ba67b[_0x320367(0xed)];}return _0x2b52b3;}[_0x221c77(0x103)](_0x1913fa,_0x5bfafe){const _0x4d42f2=_0x221c77;let _0x4f9f82=_0x1913fa[_0x4d42f2(0xeb)],_0xc0194e=null,_0x422aa1=!0x1;for(;_0x4f9f82;){if(_0x4f17e9(_0x4f9f82)){if(this[_0x4d42f2(0xde)](_0x4f9f82)&&(_0xc0194e=_0x4f9f82),this[_0x4d42f2(0x114)](_0x4f9f82)&&_0x5bfafe&&!_0x422aa1){_0x422aa1=!0x0,_0x4f9f82=_0x4f9f82[_0x4d42f2(0xeb)];continue;}break;}const _0x4a4eb9=_0x2f5d61(_0x4f9f82,_0x4d42f2(0x11b));if(_0x4a4eb9&&_0x4d42f2(0xe5)!==_0x4a4eb9&&this[_0x4d42f2(0xf2)][_0x4d42f2(0x11e)](_0x4a4eb9)){_0xc0194e=_0x4f9f82;break;}_0x4f9f82=_0x4f9f82[_0x4d42f2(0xeb)];}return _0xc0194e;}[_0x221c77(0xd9)](_0xafb11c){const _0xc7be58=_0x221c77;_0xf7a53d(_0xafb11c)&&_0x52ee52(_0xc7be58(0x11b),null,_0xafb11c)[_0xc7be58(0x100)](_0x3c935d=>{const _0x25511a=_0xc7be58;if(this[_0x25511a(0x10e)](_0x3c935d)&&!this[_0x25511a(0x118)](_0x3c935d)){const _0x525bf6=_0x2f5d61(_0x3c935d,_0x25511a(0x11b));_0x510964(_0x3c935d,_0x25511a(0xfd),_0x525bf6),_0x510964(_0x3c935d,_0x25511a(0x11b),null);}});}[_0x221c77(0xe2)](_0x804271){const _0x5ac79c=_0x221c77;if(!_0x804271)return null;if(_0xf7a53d(_0x804271))return _0x2f5d61(_0x804271,_0x5ac79c(0x11b));if(_0x4f17e9(_0x804271)){const _0x7b0fd=_0xc23915(_0x804271)[_0x5ac79c(0x108)](/removed[\s*-]data-id="([^"]+)"/);if(_0x7b0fd&&_0x7b0fd[0x1])return _0x7b0fd[0x1];}return null;}[_0x221c77(0xe0)](_0x3cafcf){const _0xe1d3f4=_0x221c77;if(_0x4f17e9(_0x3cafcf)){const _0x182a15=_0xc23915(_0x3cafcf)[_0xe1d3f4(0x108)](/removed[\s*-]data-id="([^"]+)"/);_0x182a15&&_0x182a15[0x1]&&this[_0xe1d3f4(0xdf)][_0xe1d3f4(0xda)][_0xe1d3f4(0x117)](_0x182a15[0x1]);}}[_0x221c77(0xfb)](_0x64e1a1){const _0x56c3bb=_0x221c77;return this[_0x56c3bb(0x10e)](_0x64e1a1)?_0x2f5d61(_0x64e1a1,_0x56c3bb(0x11b)):this[_0x56c3bb(0x107)]();}[_0x221c77(0xdc)](_0x4d81f6){const _0x8a23e1=_0x221c77;_0x348ace(_0x4d81f6)[_0x8a23e1(0xd8)](_0x18f866=>this[_0x8a23e1(0xde)](_0x18f866)||this[_0x8a23e1(0x114)](_0x18f866))[_0x8a23e1(0x100)](_0x2764e5=>{_0xdf2c7d(_0x2764e5);});}[_0x221c77(0xf7)](_0x351bd2){const _0xa03ff2=_0x221c77,_0x5e8e37=_0x351bd2[_0xa03ff2(0xec)],_0x47fb76=_0x5e8e37[_0x5e8e37[_0xa03ff2(0x111)]-0x1];_0x47fb76&&_0xf7a53d(_0x47fb76)&&_0x510964(_0x47fb76,_0xa03ff2(0xf6),_0xa03ff2(0x120));}[_0x221c77(0xfe)](_0x1a07d8,_0x1fcff0){const _0x21e30c=_0x221c77,_0x2170d0=_0x26c226(_0x21e30c(0xf6),_0x21e30c(0x120),_0x1a07d8);if(!_0x2170d0)return;const _0x31e40a=_0x32b1d0(_0x2170d0)[_0x21e30c(0x10f)](0x0,-0x1),_0xe8e5a4=_0x31e40a[_0x21e30c(0x111)];let _0x2bfdb6=_0x2170d0;if(_0xe8e5a4>_0x1fcff0){let _0x55d076=_0xe8e5a4,_0xf07ced=null;for(;_0x55d076>_0x1fcff0&&_0x55d076>=0x0;)_0x55d076--,_0xf07ced=_0x31e40a[_0x55d076];_0xf07ced&&(_0x2bfdb6=_0xf07ced,_0x510964(_0x2170d0,_0x21e30c(0xf6),null),_0x510964(_0xf07ced,_0x21e30c(0xf6),_0x21e30c(0x120)));}else{if(_0xe8e5a4<_0x1fcff0){let _0x2b152e=_0xe8e5a4,_0x511ed3=_0x2170d0;for(;_0x2b152e<_0x1fcff0;){const _0x146cae=_0x511ed3[_0x21e30c(0xec)][_0x21e30c(0xd8)](_0x4b1232=>_0xf7a53d(_0x4b1232));if(0x0===_0x146cae[_0x21e30c(0x111)])break;_0x2b152e++,_0x511ed3=_0x146cae[_0x146cae[_0x21e30c(0x111)]-0x1];}_0x511ed3&&(_0x2bfdb6=_0x511ed3,_0x510964(_0x2170d0,_0x21e30c(0xf6),null),_0x510964(_0x511ed3,_0x21e30c(0xf6),_0x21e30c(0x120)));}}let _0xf75274=_0x2bfdb6;for(;_0xf75274;){for(;_0xf75274[_0x21e30c(0xed)];)_0xf75274=_0xf75274[_0x21e30c(0xed)],_0xf7a53d(_0xf75274)&&_0x510964(_0xf75274,_0x21e30c(0xf6),_0x21e30c(0x120));_0xf75274=_0xf75274[_0x21e30c(0x106)];}}[_0x221c77(0xdb)](_0x2a7591){const _0x4aae5d=_0x221c77;return Boolean(_0x4aae5d(0xe5)===_0x2f5d61(_0x2a7591,_0x4aae5d(0x11b)));}[_0x221c77(0x10e)](_0x4493b9){const _0x2ab857=_0x221c77;return Boolean((_0x2f5d61(_0x4493b9,_0x2ab857(0x11b))||'')[_0x2ab857(0x111)]>0x0&&_0x2ab857(0xe5)!==_0x2f5d61(_0x4493b9,_0x2ab857(0x11b)));}[_0x221c77(0xde)](_0x159118){const _0x423010=_0x221c77;return!!_0x159118&&Boolean(_0x4f17e9(_0x159118)&&_0xc23915(_0x159118)[_0x423010(0x108)](/removed[\s*-]data-id="[^"]+"/));}[_0x221c77(0x118)](_0x5b1c4b){const _0x337389=_0x221c77;let _0x27a8a2=_0x5b1c4b[_0x337389(0x106)];for(;_0x27a8a2;){if(_0x2f5d61(_0x27a8a2,_0x337389(0xfd)))return!0x0;_0x27a8a2=_0x27a8a2[_0x337389(0x106)];}return!0x1;}[_0x221c77(0x114)](_0x573462){const _0x4dc634=_0x221c77;return Boolean(_0x4f17e9(_0x573462)&&_0xc23915(_0x573462)[_0x4dc634(0x108)](/\s*existing[\s*-](content|document)\s*/g));}}