@ckeditor/ckeditor5-ai 47.0.0-alpha.0 → 47.0.0-alpha.1

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 (295) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-editor.css +105 -11
  3. package/dist/index.css +105 -11
  4. package/dist/index.js +4 -4
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/lang/contexts.json +1 -0
  152. package/package.json +15 -15
  153. package/src/aiactions/aiactions.js +1 -1
  154. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  155. package/src/aiactions/model/aiactionsreply.js +1 -1
  156. package/src/aiassistant/adapters/aiadapter.js +1 -1
  157. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  158. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  159. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  160. package/src/aiassistant/aiassistant.js +1 -1
  161. package/src/aiassistant/aiassistantediting.js +1 -1
  162. package/src/aiassistant/aiassistantui.js +1 -1
  163. package/src/aiassistant/legacyerrors.js +1 -1
  164. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  165. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  166. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  172. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  173. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  174. package/src/aiassistant/utils/common-translations.js +1 -1
  175. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  176. package/src/aiballoon/aiballoon.js +1 -1
  177. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  178. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  179. package/src/aiballoon/ui/aiballoonview.js +1 -1
  180. package/src/aichat/aichat.js +1 -1
  181. package/src/aichat/aichatcontroller.js +1 -1
  182. package/src/aichat/aichatui.js +1 -1
  183. package/src/aichat/model/aichatcontext.js +1 -1
  184. package/src/aichat/model/aichatconversation.js +1 -1
  185. package/src/aichat/model/aichatinteraction.js +1 -1
  186. package/src/aichat/model/aichatmodels.js +1 -1
  187. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  188. package/src/aichat/ui/aichatfeedview.js +1 -1
  189. package/src/aichat/ui/aichatheaderview.js +1 -1
  190. package/src/aichat/ui/aichatview.js +1 -1
  191. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  195. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  212. package/src/aichat/utils/eventnames.js +1 -1
  213. package/src/aichat/utils/promisequeue.js +1 -1
  214. package/src/aichat/utils/scrollmanager.js +1 -1
  215. package/src/aichathistory/aichathistory.js +1 -1
  216. package/src/aichathistory/aichathistorycontroller.js +1 -1
  217. package/src/aichathistory/aichathistoryui.js +1 -1
  218. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  219. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  223. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  224. package/src/aiconfig.d.ts +11 -0
  225. package/src/aicore/aiconnector.js +1 -1
  226. package/src/aicore/aiediting.js +1 -1
  227. package/src/aicore/model/aicapabilities.js +1 -1
  228. package/src/aicore/model/aicontext.js +1 -1
  229. package/src/aicore/model/aiinteraction.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  242. package/src/aicore/utils/common-translations.js +1 -1
  243. package/src/aicore/utils/createresizebutton.js +1 -1
  244. package/src/aicore/utils/documentposition.js +1 -1
  245. package/src/aicore/utils/documentrange.js +1 -1
  246. package/src/aicore/utils/eventnames.js +1 -1
  247. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  248. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  249. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  250. package/src/aicore/utils/htmlparser.js +1 -1
  251. package/src/aicore/utils/htmlstreamer.js +1 -1
  252. package/src/aiquickactions/aiquickactions.js +1 -1
  253. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  254. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  255. package/src/aiquickactions/aiquickactionsui.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  259. package/src/aiquickactions/utils/common-translations.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.d.ts +1 -1
  263. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  264. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  265. package/src/aireviewmode/aireviewmodeui.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  268. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  271. package/src/aireviewmode/model/aireviewcheckrun.d.ts +1 -0
  272. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  273. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  274. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  275. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  276. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodecustomcheckview.d.ts +4 -0
  279. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  286. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  287. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  288. package/src/aireviewmode/utils/common-translations.js +1 -1
  289. package/src/aitabs/aitabs.js +1 -1
  290. package/src/aitabs/aitabsmainview.js +1 -1
  291. package/src/aitabs/tabs/aitabsview.js +1 -1
  292. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  293. package/src/aitabs/tabs/tabpanelview.js +1 -1
  294. package/src/index.js +1 -1
  295. package/theme/aireviewmode/aireviewmode-check-list.css +112 -11
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1512c2=_0x3134;(function(_0x5eb13a,_0x7d743a){const _0x3d8e36=_0x3134,_0x451fad=_0x5eb13a();while(!![]){try{const _0x1872b3=parseInt(_0x3d8e36(0x190))/0x1*(-parseInt(_0x3d8e36(0x231))/0x2)+parseInt(_0x3d8e36(0x1d1))/0x3*(parseInt(_0x3d8e36(0x236))/0x4)+parseInt(_0x3d8e36(0x2a5))/0x5*(parseInt(_0x3d8e36(0x2b8))/0x6)+parseInt(_0x3d8e36(0x2b9))/0x7+-parseInt(_0x3d8e36(0x1c7))/0x8+parseInt(_0x3d8e36(0x2ac))/0x9+-parseInt(_0x3d8e36(0x1c3))/0xa;if(_0x1872b3===_0x7d743a)break;else _0x451fad['push'](_0x451fad['shift']());}catch(_0x1901cd){_0x451fad['push'](_0x451fad['shift']());}}}(_0x217d,0x1c36a));import{ContextPlugin as _0x2a1e68,Editor as _0x3bd855}from'ckeditor5/src/core.js';import{CKEditorError as _0x4b7d1b,logError as _0x52cd79,scrollViewportToShowTarget as _0x537b97,uid as _0x41d3ff}from'ckeditor5/src/utils.js';import{AIConnector as _0x2fb9fc}from'../aicore/aiconnector.js';import{AITabs as _0x5a4451}from'../aitabs/aitabs.js';import{AIChatConversation as _0x233f88}from'./model/aichatconversation.js';import{getTranslation as _0x1a8d84}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5a3655}from'../aicore/aiediting.js';import{AIChatModels as _0x22795b}from'./model/aichatmodels.js';import{getEditorFromContext as _0x5d8718}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1b0144,DATA_ID_MODEL_ATTRIBUTE as _0x4d5288}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x541a6d}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x315b7f,getMinimalSelection as _0x2eda7b,getSuggestionPartsFromReply as _0x2b345}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2e3163,_DetachOperation as _0x179461}from'ckeditor5/src/engine.js';import{findOne as _0x44589e,getAttribute as _0x3a8ad2,serialize as _0x37ab75,Document as _0xcbe292,findByAttribute as _0x106f57}from'../aicore/utils/htmlparser.js';function _0x3134(_0x4a9c7d,_0x30bddb){const _0x217d15=_0x217d();return _0x3134=function(_0x31349c,_0x28ceb1){_0x31349c=_0x31349c-0x186;let _0x3fa19c=_0x217d15[_0x31349c];return _0x3fa19c;},_0x3134(_0x4a9c7d,_0x30bddb);}function _0x217d(){const _0x4d42e3=['addSelectionToChatContext','resource','content','set','updateConversationTitle','requires','_showConversationHistory','isDisabled','getRoot','query','addFeedItemStaticMessage','addOperation','populateSourceResourceBalloon','_removeAISelectionMarkers','dialogClosed','ai-chat-url-upload-failed','rootName','delete','removeSelectionFromChatContext','1709970TxmxpL','replyContentUpdated','loadSourceResources','state','1155328jgpmqC','Liked\x20response','mouseLeaveSuggestion','selectedModel','Suggestion\x20','AIChatController','remove','anchorId','startConversation','availableModels','39xGZXsl','locale','path','showFakeVisualSelection','isStarted','modification-delta','_getDocumentRangeForReplyChanges','document','viewRangeToDom','_applyOperationsAsSuggestions','source','options','start','children','capabilitiesUpdated','setAddContextOptions','getSelectionText','getAttribute','sourceId','conversationInitialized','stop','isOpen','DocumentCompare','hideFakeVisualSelection','isOfficialPlugin','addDocumentToContext','version','addSelectionToContext','getFirstRange','updateFeedItemAIReplySuggestionContent','_previewedChangeGroup','addFeedItemAIReply','range','stopInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','createConversation','resize','_scrollToSuggestionRange','startsWith','type','indexOf','find','push','addFilesToContext','stopListening','streaming','createPositionFromPath','isCurrentDocumentInContext','chat','ai-chat-controller-mouse-over','like','handleUserInteraction','showPrevious','loadConversation','_toggleReasoning','root','showChangeInText','editors','resizeTabs','model','updateCurrentDocumentInContext','_batchToChanges','focusPromptInput','abortPromptStream','maxOffset','editing','clearConversationContextUI','_stopLastInteraction','length','removeFeedInteraction','setConversationContext','_applySuggestion','change','finishInteraction','setIsMaximized','split','string','has','addFileToContext','replyChangeGroupStateUpdated','contextItemRemoved','setConversationTitle','data','toLocaleLowerCase','TrackChangesEditing','setContextItemLoading','resourceStateChanged','documentContextContent','updateFeedItemAIReplySuggestionPartState','resetMessageInput','AI_CHAT_CONTEXT_INVALID_DATA','collaboration.channelId','resources','ai-chat-resource-load-failed','closeSourceResourceBalloon','message','24418hBumTO','ai.chat.models.displayedModels','startInteraction','view','AI_CHAT_RESOURCE_LOAD_FAILED','53276pqqwOl','history','addContextOptionsChanged','_aiEditing','getChild','sourcePosition','undo','main','error','applyOperation','interactionStarted','contextItems','text-delta','ai-conversation-','_insertSuggestion','AI_CHAT_UNTITLED_CONVERSATION','lastInteraction','sendMessage','contextItemAdded','context','addFeedItemError','rejected','redo','_setIsMaximized','Showing\x20conversation\x20history...','AIChatUI','interactionDestroyed','ai-chat-controller-no-active-conversation','_balloonShowDiff','getChildren','rejectSuggestion','slice','AI_CHAT_GENERIC_ERROR','toggleLoadingSkeleton','close','isDocumentOperation','addResourceToContext','load','add','updateFeedInteractionHeader','$graveyard','filter','removeContextItem','cloneNode','selectModel','config','ai-chat-context-unsupported-type','changes','uid','removeSelectionFromContext','parse','current-document','AIConnector','updateFeedItemAIReplyContent','mapper','getInteraction','AITabs','_toggleWebSearch','_updateReplyContent','scrollFeedToSuggestion','replies','end','indexes','interactionFinished','unshift','addContextItem','applySuggestion','getDocumentData','removeMarker','new','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_filterModels','pending','_createFromRanges','handleRemovedConversation','isInContext','ai-request-aborted','isCurrentDocumentInConversation','alignToTop','addFeedItemAISuggestion','getPath','showNext','ai-chat-file-upload-failed','activeConversation','commands','getRanges','isLoading','_openBalloonFor','map','AIEditing','createPositionAt','getMarkersGroup','afterInit','markers','Failed\x20to\x20load\x20conversation','ai.chat.models.defaultModelId','domConverter','uploadProgressChanged','sourceResourcesLoaded','pluginName','updateContent','AI_CHAT_ABORTED_MESSAGE','partIndex','toggleSuggestionDisplayMode','from','setChangeGroupState','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','selection','interactionCreated','updateFeedItemAIReplySources','addCurrentDocumentToContext','160315NKaPAo','replyCreated','forEach','dislike','interactionId','ready','removeFromContext','253143ZPpatw','getDocumentContext','clearPendingContextUI','addFeedItemUserMessage','_logError','_aiChatModels','setModel','static','toggleReasoning','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','name','get','42SEJWSp','1489691OFYjiY','removed','ai-chat-source-resources-load-failed','toViewRange','nextSibling','getReply','changeGroups','provider','ai.chat.context','insertSuggestion','_flushLastInteractionUI','AI_CHAT_UNABLE_TO_START_CONVERSATION','data-id','open','createRange','addUrlToContext','howMany','updateResourceState','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','updateCapabilities','_removeFromContext','getGroupId','activateTab','getInteractionAndReplyById','resetConversationTitle','contextSent','setIsUploadInProgress','plugins','baseVersion','accepted','ai-chat-missing-channel-id','mouseOverSuggestion','revert','contextItem','resourceId','isUploadInProgress','getDiff','_aiConnector','17TaqPPG','getOperations','toggleWebSearch','getChildAtOffset','contextItemLoadingEnded','addFeedInteractionHeader','batch','Disliked\x20response','node','uiId','_integrateEditor','_handleStartConversation','log','ai-chat-conversation-start-failed','sendUserMessage','modelSelected','resizedTabs','full','setFeedItemRenderingStrategy','listenTo','replyId','ai-chat-context-invalid-data','setSelectedModel','getTransformedByOperation','Undo','ai-chat-conversation-init-failed','sources','isPremiumPlugin','init','_handleUIUserMessage','_aiChatUi','showDiff'];_0x217d=function(){return _0x4d42e3;};return _0x217d();}import{IconAI as _0x98f017}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4cff32}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x36fb35}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x2a1e68{[_0x1512c2(0x239)];[_0x1512c2(0x18f)];[_0x1512c2(0x1ae)];[_0x1512c2(0x2b1)];[_0x1512c2(0x20e)]=new Map();[_0x1512c2(0x1ef)]=null;[_0x1512c2(0x252)]=!0x1;static get[_0x1512c2(0x1b5)](){return[_0x2fb9fc,_0x36fb35,_0x1b0144];}static get[_0x1512c2(0x299)](){const _0x3cbded=_0x1512c2;return _0x3cbded(0x1cc);}static get[_0x1512c2(0x1e9)](){return!0x0;}static get[_0x1512c2(0x1ab)](){return!0x0;}[_0x1512c2(0x1ac)](){const _0x2e789e=_0x1512c2;this[_0x2e789e(0x18f)]=this[_0x2e789e(0x249)][_0x2e789e(0x2d4)][_0x2e789e(0x2b7)](_0x2e789e(0x26a)),this[_0x2e789e(0x1ae)]=this[_0x2e789e(0x249)][_0x2e789e(0x2d4)][_0x2e789e(0x2b7)](_0x2e789e(0x24f)),this[_0x2e789e(0x239)]=this[_0x2e789e(0x249)][_0x2e789e(0x2d4)][_0x2e789e(0x2b7)](_0x2e789e(0x28f)),this[_0x2e789e(0x2b1)]=new _0x22795b({'connector':this[_0x2e789e(0x18f)]});const _0x441c17=this[_0x2e789e(0x249)][_0x2e789e(0x2d4)][_0x2e789e(0x2b7)](_0x2e789e(0x26e));this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x1cf),()=>{const _0x445964=_0x2e789e;this[_0x445964(0x19b)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x19e),(_0x3f1c71,_0x29d531)=>{const _0x20b404=_0x2e789e;this[_0x20b404(0x1ad)]({'userMessage':_0x29d531});}),this[_0x2e789e(0x1a3)](_0x441c17,_0x2e789e(0x1a0),(_0x124c12,_0x19d6ed)=>{const _0x21b423=_0x2e789e;this[_0x21b423(0x24d)](_0x19d6ed);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x20b),()=>{const _0x536744=_0x2e789e;_0x441c17[_0x536744(0x1f5)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x210),async()=>{const _0x169daf=_0x2e789e;await this[_0x169daf(0x214)](),await this[_0x169daf(0x2c3)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x1ea),()=>{const _0x3fa5e5=_0x2e789e;this[_0x3fa5e5(0x289)]?.[_0x3fa5e5(0x2a4)](_0x1a8d84(this[_0x3fa5e5(0x249)][_0x3fa5e5(0x1d2)],_0x3fa5e5(0x2cb)));}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x21f),(_0x59505d,_0x5abce1)=>{const _0x3c1619=_0x2e789e;this[_0x3c1619(0x289)]?.[_0x3c1619(0x1fc)](Array[_0x3c1619(0x29e)](_0x5abce1));}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x2c8),(_0x57f07e,_0x57517d)=>{const _0x162567=_0x2e789e;this[_0x162567(0x289)]?.[_0x162567(0x2c8)](_0x57517d);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x25a),(_0x1f92dd,_0x776c88)=>{const _0x1ab0ad=_0x2e789e;this[_0x1ab0ad(0x289)]?.[_0x1ab0ad(0x25a)](_0x776c88[_0x1ab0ad(0x1db)],_0x776c88[_0x1ab0ad(0x1b1)]);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x260),(_0x369ff4,_0x22b4a2)=>{const _0x1c2f3e=_0x2e789e;this[_0x1c2f3e(0x2cd)](_0x22b4a2);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x1c5),(_0x4f7144,_0x304058)=>{const _0x3ef9bf=_0x2e789e;this[_0x3ef9bf(0x289)]?.[_0x3ef9bf(0x1c5)](_0x304058[_0x3ef9bf(0x1e3)],_0x304058[_0x3ef9bf(0x1b9)],_0x304058[_0x3ef9bf(0x266)]);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x192),()=>{const _0x5548f5=_0x2e789e;this[_0x5548f5(0x26f)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x2b4),()=>{const _0x4ed6c4=_0x2e789e;this[_0x4ed6c4(0x207)]();}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x262),(_0x263df8,_0x1dbb54)=>{const _0x8f4526=_0x2e789e;this[_0x8f4526(0x289)]?.[_0x8f4526(0x2b2)](_0x1dbb54);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x203),(_0xdd61c8,{replyId:_0x15952d})=>{const _0x520eed=_0x2e789e;console[_0x520eed(0x19c)](_0x520eed(0x1c8),_0x15952d);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x2a8),(_0x1df40e,{replyId:_0x1448b7})=>{const _0x460bdf=_0x2e789e;console[_0x460bdf(0x19c)](_0x460bdf(0x197),_0x1448b7);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x2c2),(_0x1fec8b,_0x3f3f56)=>{const _0x1f3882=_0x2e789e;this[_0x1f3882(0x249)][_0x1f3882(0x2d4)][_0x1f3882(0x2b7)](_0x36fb35)[_0x1f3882(0x258)](),this[_0x1f3882(0x244)](_0x3f3f56);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x209),(_0x3d66f0,{replyId:_0x158f3d,partIndex:_0xd96fa0})=>{const _0x299f85=_0x2e789e;this[_0x299f85(0x252)]=this[_0x299f85(0x1ae)][_0x299f85(0x1af)],this[_0x299f85(0x28d)](_0x158f3d,_0xd96fa0);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x189),(_0x2a0a50,{replyId:_0x2ff6e5,partIndex:_0x49f5c4})=>{const _0x12d9aa=_0x2e789e,_0x1536f9=this[_0x12d9aa(0x1d7)](_0x2ff6e5,_0x49f5c4);_0x1536f9&&_0x12d9aa(0x25e)!=_0x1536f9[_0x12d9aa(0x1f1)][_0x12d9aa(0x208)][_0x12d9aa(0x1c0)]&&this[_0x12d9aa(0x239)][_0x12d9aa(0x1d4)]([_0x1536f9[_0x12d9aa(0x1f1)]],_0x12d9aa(0x202));}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x1c9),()=>{const _0x1fa1a4=_0x2e789e;this[_0x1fa1a4(0x239)][_0x1fa1a4(0x1e8)](_0x1fa1a4(0x202));}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x278),(_0x5828a9,_0x481e8a)=>{const _0x556873=_0x2e789e;this[_0x556873(0x249)][_0x556873(0x2d4)][_0x556873(0x2b7)](_0x36fb35)[_0x556873(0x258)](),this[_0x556873(0x218)](_0x481e8a);}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x29d),async(_0x3610a2,_0x4e173b)=>{const _0x3a0c98=_0x2e789e,{reply:_0x16239c}=this[_0x3a0c98(0x2d0)](_0x4e173b[_0x3a0c98(0x1a4)]),_0x18c79f=_0x5d8718(this[_0x3a0c98(0x249)]),_0x15f01e=_0x2b345({'editor':_0x18c79f,'changeGroups':_0x16239c[_0x3a0c98(0x2bf)],'documentContextContent':_0x16239c[_0x3a0c98(0x228)],'showDiff':_0x4e173b[_0x3a0c98(0x1af)]});await this[_0x3a0c98(0x1ae)][_0x3a0c98(0x1ee)]({'id':_0x16239c['id'],'parts':_0x15f01e,'renderingStrategy':_0x3a0c98(0x2b3)});}),this[_0x2e789e(0x1a3)](this[_0x2e789e(0x1ae)],_0x2e789e(0x254),(_0x39c72e,{replyId:_0x7512ba,partIndex:_0x5d00b2})=>{const _0x7c2c1a=_0x2e789e;this[_0x7c2c1a(0x1ef)]?.[_0x7c2c1a(0x1a4)]==_0x7512ba&&this[_0x7c2c1a(0x1ef)]?.[_0x7c2c1a(0x29c)]==_0x5d00b2&&this[_0x7c2c1a(0x249)][_0x7c2c1a(0x2d4)][_0x7c2c1a(0x2b7)](_0x36fb35)[_0x7c2c1a(0x258)]();const {reply:_0x5c6dc8}=this[_0x7c2c1a(0x2d0)](_0x7512ba);_0x5c6dc8[_0x7c2c1a(0x29f)](_0x5d00b2,_0x7c2c1a(0x24b)),this[_0x7c2c1a(0x239)][_0x7c2c1a(0x1e8)](_0x7c2c1a(0x202));});}async[_0x1512c2(0x292)](){const _0xb4a00d=_0x1512c2;this[_0xb4a00d(0x249)]instanceof _0x3bd855?this[_0xb4a00d(0x19a)](this[_0xb4a00d(0x249)]):this[_0xb4a00d(0x1a3)](this[_0xb4a00d(0x249)][_0xb4a00d(0x20a)],_0xb4a00d(0x25c),(_0x435b97,_0x4648d7)=>{const _0x39a104=_0xb4a00d;_0x4648d7['on'](_0x39a104(0x2aa),()=>{const _0x14ea28=_0x39a104;this[_0x14ea28(0x19a)](_0x4648d7);});}),await this[_0xb4a00d(0x19b)]();}[_0x1512c2(0x244)](_0x41a05d){const _0x20f8c2=_0x1512c2,_0x3ca4f7=_0x5d8718(this[_0x20f8c2(0x249)]);if(!_0x3ca4f7[_0x20f8c2(0x2d4)][_0x20f8c2(0x21e)](_0x20f8c2(0x225)))return;const _0xcb26c6=this[_0x20f8c2(0x249)][_0x20f8c2(0x2d4)][_0x20f8c2(0x2b7)](_0x20f8c2(0x1e7)),{reply:_0x399ad9,interaction:_0x153b7c}=this[_0x20f8c2(0x2d0)](_0x41a05d[_0x20f8c2(0x1a4)]),_0x3db220=this[_0x20f8c2(0x1d7)](_0x41a05d[_0x20f8c2(0x1a4)],_0x41a05d[_0x20f8c2(0x29c)]),_0x5bba6f=void 0x0!==_0x41a05d[_0x20f8c2(0x29c)]?[_0x399ad9[_0x20f8c2(0x2bf)][_0x41a05d[_0x20f8c2(0x29c)]]]:_0x399ad9[_0x20f8c2(0x2bf)][_0x20f8c2(0x25f)](_0x239149=>_0x20f8c2(0x27e)==_0x239149[_0x20f8c2(0x1c6)]),_0x3a2ff3=_0x5bba6f[_0x20f8c2(0x28e)](_0x3b1edc=>_0x399ad9[_0x20f8c2(0x2bf)][_0x20f8c2(0x1f9)](_0x3b1edc));_0x3a2ff3[_0x20f8c2(0x2a7)](_0x2831f7=>_0x399ad9[_0x20f8c2(0x29f)](_0x2831f7,_0x20f8c2(0x187)));const _0x478ca6=_0x541a6d({'editor':_0x3ca4f7,'reply':_0x399ad9,'interaction':_0x153b7c,'groups':_0x5bba6f,'transform':!0x0,'documentCompare':_0xcb26c6,'documentCompareOptions':{'anchor':_0x20f8c2(0x23d),'markDeletions':!0x0}});let _0x20bd93;_0x3db220&&this[_0x20f8c2(0x1f6)](_0x3db220[_0x20f8c2(0x1f1)]),_0x3ca4f7[_0x20f8c2(0x20c)][_0x20f8c2(0x219)](_0x18e219=>{const _0xf168fa=_0x20f8c2;_0x20bd93=_0x18e219[_0xf168fa(0x196)],_0x3ca4f7[_0xf168fa(0x2d4)][_0xf168fa(0x2b7)](_0xf168fa(0x225))[_0xf168fa(0x1da)](_0x478ca6),this[_0xf168fa(0x239)][_0xf168fa(0x1e8)](_0xf168fa(0x202));}),this[_0x20f8c2(0x20e)][_0x20f8c2(0x1b3)](_0x20bd93,{'interactionId':_0x153b7c['id'],'replyId':_0x399ad9['id'],'indexes':_0x3a2ff3[_0x20f8c2(0x255)]()});}[_0x1512c2(0x218)](_0x5281bb){const _0x176377=_0x1512c2,_0x79071a=_0x5d8718(this[_0x176377(0x249)]),_0x1243ba=this[_0x176377(0x249)][_0x176377(0x2d4)][_0x176377(0x2b7)](_0x1b0144),{reply:_0x59a968,interaction:_0x512219}=this[_0x176377(0x2d0)](_0x5281bb[_0x176377(0x1a4)]),_0x5b1783=this[_0x176377(0x1d7)](_0x5281bb[_0x176377(0x1a4)],_0x5281bb[_0x176377(0x29c)]),_0x31af98=void 0x0!==_0x5281bb[_0x176377(0x29c)]?[_0x59a968[_0x176377(0x2bf)][_0x5281bb[_0x176377(0x29c)]]]:_0x59a968[_0x176377(0x2bf)][_0x176377(0x25f)](_0x15efa9=>_0x176377(0x27e)==_0x15efa9[_0x176377(0x1c6)]),_0x5de8e3=_0x31af98[_0x176377(0x28e)](_0x14c00b=>_0x59a968[_0x176377(0x2bf)][_0x176377(0x1f9)](_0x14c00b));_0x5de8e3[_0x176377(0x2a7)](_0xcd399b=>_0x59a968[_0x176377(0x29f)](_0xcd399b,_0x176377(0x187)));const _0x2beb90=_0x541a6d({'editor':_0x79071a,'reply':_0x59a968,'interaction':_0x512219,'groups':_0x31af98,'transform':!0x0,'documentCompare':_0x1243ba,'documentCompareOptions':{'anchor':_0x176377(0x23d),'markDeletions':!0x1}});let _0x48afac;_0x5b1783&&this[_0x176377(0x1f6)](_0x5b1783[_0x176377(0x1f1)]),_0x79071a[_0x176377(0x20c)][_0x176377(0x219)](_0x30fce1=>{const _0x5a070f=_0x176377;_0x48afac=_0x30fce1[_0x5a070f(0x196)];for(const _0x4072a3 of _0x2beb90)_0x4072a3[_0x5a070f(0x186)]=_0x79071a[_0x5a070f(0x20c)][_0x5a070f(0x1d8)][_0x5a070f(0x1eb)],_0x30fce1[_0x5a070f(0x196)][_0x5a070f(0x1bb)](_0x4072a3),_0x79071a[_0x5a070f(0x20c)][_0x5a070f(0x23f)](_0x4072a3);}),this[_0x176377(0x20e)][_0x176377(0x1b3)](_0x48afac,{'interactionId':_0x512219['id'],'replyId':_0x59a968['id'],'indexes':_0x5de8e3[_0x176377(0x255)]()});}[_0x1512c2(0x28d)](_0x4747d0,_0x456f0e){const _0x3f8920=_0x1512c2,_0xbd6d10=_0x5d8718(this[_0x3f8920(0x249)]),_0x491323=this[_0x3f8920(0x1d7)](_0x4747d0,_0x456f0e),_0x804cee=this[_0x3f8920(0x249)][_0x3f8920(0x2d4)][_0x3f8920(0x2b7)](_0x36fb35);if(!_0x491323)return void _0x804cee[_0x3f8920(0x258)]();const {range:_0x304f21,currentIndex:_0x2e244a,previousIndex:_0x276a17,nextIndex:_0x2140fa}=_0x491323;if(this[_0x3f8920(0x1ef)]?.[_0x3f8920(0x1a4)]==_0x4747d0&&this[_0x3f8920(0x1ef)]?.[_0x3f8920(0x29c)]==_0x2e244a)return;this[_0x3f8920(0x1ef)]={'replyId':_0x4747d0,'partIndex':_0x2e244a};const _0x1323fa=new _0x4cff32(_0xbd6d10[_0x3f8920(0x1d2)],{'showDiff':this[_0x3f8920(0x252)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x3f8920(0x1a1)},'hideHeader':!0x0}),{reply:_0x58be6d}=this[_0x3f8920(0x2d0)](_0x4747d0),_0x90212e=_0x2b345({'editor':_0xbd6d10,'changeGroups':[_0x58be6d[_0x3f8920(0x2bf)][_0x2e244a]],'documentContextContent':_0x58be6d[_0x3f8920(0x228)],'showDiff':this[_0x3f8920(0x252)]});_0x1323fa[_0x3f8920(0x29a)]({'parts':_0x90212e,'renderingStrategy':_0x3f8920(0x2b3)});const _0x45fa17=_0x2e244a!==_0x276a17;this[_0x3f8920(0x1f6)](_0x304f21,!0x0),_0x804cee[_0x3f8920(0x2c6)]({'index':_0x2e244a,'title':_0x3f8920(0x1cb)+(_0x2e244a+0x1),'icon':_0x98f017,'mainView':_0x1323fa,'showRotator':_0x45fa17,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x304f21]}),this[_0x3f8920(0x1ae)][_0x3f8920(0x271)](_0x4747d0,_0x2e244a),this[_0x3f8920(0x1a3)](_0x1323fa,_0x3f8920(0x29d),(_0x171346,{showDiff:_0x25de73})=>{const _0x379bf0=_0x3f8920;this[_0x379bf0(0x252)]=_0x25de73;const {reply:_0x5a2c3b}=this[_0x379bf0(0x2d0)](_0x4747d0),_0x286f5b=_0x2b345({'editor':_0xbd6d10,'changeGroups':[_0x5a2c3b[_0x379bf0(0x2bf)][_0x2e244a]],'documentContextContent':_0x5a2c3b[_0x379bf0(0x228)],'showDiff':_0x25de73});_0x1323fa[_0x379bf0(0x29a)]({'parts':_0x286f5b,'renderingStrategy':_0x379bf0(0x2b3)});}),this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x278),()=>{const _0x3d8469=_0x3f8920;this[_0x3d8469(0x218)]({'replyId':_0x4747d0,'partIndex':_0x2e244a}),_0x45fa17?this[_0x3d8469(0x28d)](_0x4747d0,_0x2140fa):_0x804cee[_0x3d8469(0x258)]();}),this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x2c2),()=>{const _0x3484a9=_0x3f8920;this[_0x3484a9(0x244)]({'replyId':_0x4747d0,'partIndex':_0x2e244a}),_0x45fa17?this[_0x3484a9(0x28d)](_0x4747d0,_0x2140fa):_0x804cee[_0x3484a9(0x258)]();}),_0x45fa17&&(this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x287),()=>{const _0x39e492=_0x3f8920;this[_0x39e492(0x28d)](_0x4747d0,_0x2140fa);}),this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x205),()=>{const _0x2ab34e=_0x3f8920;this[_0x2ab34e(0x28d)](_0x4747d0,_0x276a17);})),this[_0x3f8920(0x1a3)](_0x804cee,_0x3f8920(0x1be),()=>{const _0x205997=_0x3f8920;this[_0x205997(0x1fd)](_0x804cee),this[_0x205997(0x1fd)](_0x1323fa),this[_0x205997(0x1ef)]=null;});}[_0x1512c2(0x1d7)](_0x5d6013,_0x347e86){const _0x4abff4=_0x1512c2,_0xb68bac=_0x5d8718(this[_0x4abff4(0x249)]),{reply:_0x29475a,interaction:_0x415263}=this[_0x4abff4(0x2d0)](_0x5d6013),_0x15a598=_0x29475a[_0x4abff4(0x2bf)][_0x4abff4(0x25f)](_0x3621f4=>_0x4abff4(0x27e)==_0x3621f4[_0x4abff4(0x1c6)]),_0x463b60=_0x15a598[_0x4abff4(0x28e)](_0x4590e0=>_0x29475a[_0x4abff4(0x2bf)][_0x4abff4(0x1f9)](_0x4590e0));void 0x0===_0x347e86&&(_0x347e86=_0x463b60[0x0]);const _0x14f0a6=_0x463b60[_0x4abff4(0x1f9)](_0x347e86);if(-0x1==_0x14f0a6)return null;const _0x3d4540=0x0==_0x14f0a6?_0x463b60[_0x463b60[_0x4abff4(0x215)]-0x1]:_0x463b60[_0x14f0a6-0x1],_0x22c8e0=_0x14f0a6==_0x463b60[_0x4abff4(0x215)]-0x1?_0x463b60[0x0]:_0x463b60[_0x14f0a6+0x1],_0x822f4f=_0x15a598[_0x14f0a6],_0xeb0317=new _0xcbe292([]),_0x463415=new _0xcbe292([]);for(const _0x15aea9 of _0x822f4f[_0x4abff4(0x265)])if(_0x4abff4(0x2ba)!=_0x15aea9[_0x4abff4(0x1f8)]&&_0x463415[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x15aea9[_0x4abff4(0x198)][_0x4abff4(0x261)](!0x0)),_0x4abff4(0x27b)!=_0x15aea9[_0x4abff4(0x1f8)]){const _0xfd2840=_0x44589e(_0x7e2427=>_0x3a8ad2(_0x7e2427,_0x4abff4(0x2c5))==_0x15aea9['id'],_0x29475a[_0x4abff4(0x228)],!0x0);_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0xfd2840[_0x4abff4(0x261)](!0x0));}if(0x0==_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x215)]){if(_0x822f4f[_0x4abff4(0x265)][0x0][_0x4abff4(0x1ce)]){const _0x5e8fdf=_0x106f57(_0x4abff4(0x2c5),_0x822f4f[_0x4abff4(0x265)][0x0][_0x4abff4(0x1ce)],_0x29475a[_0x4abff4(0x228)]);_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x276)](_0x5e8fdf[_0x4abff4(0x261)](!0x0)),_0x463415[_0x4abff4(0x1de)][_0x4abff4(0x276)](_0x5e8fdf[_0x4abff4(0x261)](!0x0)),_0x5e8fdf[_0x4abff4(0x2bd)]&&(_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x5e8fdf[_0x4abff4(0x2bd)][_0x4abff4(0x261)](!0x0)),_0x463415[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x5e8fdf[_0x4abff4(0x2bd)][_0x4abff4(0x261)](!0x0)));}else{const _0x34c558=_0x29475a[_0x4abff4(0x228)][_0x4abff4(0x1de)][0x0];if(!_0x34c558)return null;_0xeb0317[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x34c558[_0x4abff4(0x261)](!0x0)),_0x463415[_0x4abff4(0x1de)][_0x4abff4(0x1fb)](_0x34c558[_0x4abff4(0x261)](!0x0));}}const _0xb9428d=_0x415263[_0x4abff4(0x2ad)](),_0x8b5915=_0xb68bac[_0x4abff4(0x223)][_0x4abff4(0x268)](_0xb9428d[_0x4abff4(0x1b2)]),_0x599080=_0x37ab75(_0xeb0317),_0x311112=_0xb68bac[_0x4abff4(0x223)][_0x4abff4(0x268)](_0x599080),_0x142d51=_0xb68bac[_0x4abff4(0x223)][_0x4abff4(0x268)](_0x599080),_0x1ef9e6=_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x290)](_0x311112,0x0),_0x116778=_0x37ab75(_0x463415),_0x3b0f6f={'anchor':_0x1ef9e6,'markDeletions':!0x1},_0x5edcc2=_0xb68bac[_0x4abff4(0x2d4)][_0x4abff4(0x2b7)](_0x1b0144)[_0x4abff4(0x18e)](_0x599080,_0x116778,_0x3b0f6f)[_0x4abff4(0x191)]();if(!_0x5edcc2[_0x4abff4(0x215)])return null;_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x219)](_0x4ab7c9=>{const _0x5842c0=_0x4abff4;for(const _0xd4759 of _0x5edcc2)if(_0x5842c0(0x1cd)==_0xd4759[_0x5842c0(0x1f8)]){const _0x4e7b67=_0xd4759[_0x5842c0(0x23b)],_0x481397=_0xd4759[_0x5842c0(0x2c9)],_0x1d3a09=new _0x179461(_0x4e7b67,_0x481397);_0x4ab7c9[_0x5842c0(0x196)][_0x5842c0(0x1bb)](_0x1d3a09),_0xb68bac[_0x5842c0(0x20c)][_0x5842c0(0x23f)](_0x1d3a09);}else _0xd4759[_0x5842c0(0x186)]=null,_0xd4759[_0x5842c0(0x259)]=!0x1,_0x4ab7c9[_0x5842c0(0x196)][_0x5842c0(0x1bb)](_0xd4759),_0xb68bac[_0x5842c0(0x20c)][_0x5842c0(0x23f)](_0xd4759);});const _0x1a233c=_0x2eda7b(_0xb68bac,_0x5edcc2,_0x311112);_0x315b7f(_0xb68bac[_0x4abff4(0x20c)],_0x1a233c);const _0x32321e=_0x1a233c[_0x4abff4(0x1ed)]()[_0x4abff4(0x1dd)][_0x4abff4(0x1d3)][_0x4abff4(0x255)](),_0x3ae8ec=_0x1a233c[_0x4abff4(0x1ed)]()[_0x4abff4(0x273)][_0x4abff4(0x1d3)][_0x4abff4(0x255)](),_0x477aee=[];let _0x1c8ea9=_0x311112,_0x4f2c8e=_0x142d51;for(let _0x1f121b=0x0;_0x1f121b<_0x3ae8ec[_0x4abff4(0x215)];_0x1f121b++){const _0x5960f4=_0x1c8ea9[_0x4abff4(0x211)]-_0x3ae8ec[_0x1f121b];_0x477aee[_0x1f121b]=_0x4f2c8e[_0x4abff4(0x211)]-_0x5960f4,_0x1c8ea9=_0x1c8ea9[_0x4abff4(0x193)](_0x3ae8ec[_0x1f121b]),_0x4f2c8e=_0x4f2c8e[_0x4abff4(0x193)](_0x477aee[_0x1f121b]);}const _0x388d8e=_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x2c7)](_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1ff)](_0x142d51,_0x32321e),_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1ff)](_0x142d51,_0x477aee)),_0x29e0be=_0x142d51[_0x4abff4(0x23a)](0x0)[_0x4abff4(0x1e2)](_0x4d5288),_0xf86c4d=Array[_0x4abff4(0x29e)](_0x8b5915[_0x4abff4(0x253)]())[_0x4abff4(0x1fa)](_0x23dd6=>_0x23dd6[_0x4abff4(0x1e2)](_0x4d5288)==_0x29e0be)[_0x4abff4(0x286)](),_0x296e61=_0x388d8e[_0x4abff4(0x1dd)][_0x4abff4(0x1d3)][_0x4abff4(0x255)](),_0x1ed6cc=_0x388d8e[_0x4abff4(0x273)][_0x4abff4(0x1d3)][_0x4abff4(0x255)]();_0x296e61[0x0]=_0xf86c4d[0x0]+_0x296e61[0x0],_0x1ed6cc[0x0]=_0xf86c4d[0x0]+_0x1ed6cc[0x0];let _0x4d258c=_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x2c7)](_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1ff)](_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1d8)][_0x4abff4(0x1b8)](),_0x296e61),_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1ff)](_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1d8)][_0x4abff4(0x1b8)](),_0x1ed6cc));const _0x367c80=_0xb68bac[_0x4abff4(0x20c)][_0x4abff4(0x1d8)][_0x4abff4(0x237)][_0x4abff4(0x191)](_0xb9428d[_0x4abff4(0x1eb)]);for(const _0x508e33 of _0x367c80)_0x4d258c=_0x2e3163[_0x4abff4(0x27f)](_0x4d258c[_0x4abff4(0x1a7)](_0x508e33));return{'range':_0x4d258c,'previousIndex':_0x3d4540,'nextIndex':_0x22c8e0,'currentIndex':_0x347e86};}[_0x1512c2(0x19a)](_0x3d42b4){const _0x182cd3=_0x1512c2;if(!_0x3d42b4[_0x182cd3(0x2d4)][_0x182cd3(0x21e)](_0x182cd3(0x1a8)))return;const _0x2e3739=_0x3d42b4[_0x182cd3(0x28a)][_0x182cd3(0x2b7)](_0x182cd3(0x23c)),_0x496899=_0x3d42b4[_0x182cd3(0x28a)][_0x182cd3(0x2b7)](_0x182cd3(0x24c));this[_0x182cd3(0x1a3)](_0x2e3739,_0x182cd3(0x18a),(_0x460c70,_0x77b0ef,_0x4042d9)=>{const _0x2923f2=_0x182cd3,_0x48c734=this[_0x2923f2(0x20e)][_0x2923f2(0x2b7)](_0x77b0ef);if(!_0x48c734)return;const _0x2d8da7=this[_0x2923f2(0x289)][_0x2923f2(0x26d)](_0x48c734[_0x2923f2(0x2a9)])[_0x2923f2(0x2be)](_0x48c734[_0x2923f2(0x1a4)]);_0x48c734[_0x2923f2(0x274)][_0x2923f2(0x2a7)](_0x3fc547=>_0x2d8da7[_0x2923f2(0x29f)](_0x3fc547,_0x2923f2(0x27e))),this[_0x2923f2(0x20e)][_0x2923f2(0x1c1)](_0x77b0ef),this[_0x2923f2(0x20e)][_0x2923f2(0x1b3)](_0x4042d9,_0x48c734);}),this[_0x182cd3(0x1a3)](_0x496899,_0x182cd3(0x18a),(_0x1499c3,_0x361189,_0x2e8313)=>{const _0x5ea7be=_0x182cd3,_0x1817d6=this[_0x5ea7be(0x20e)][_0x5ea7be(0x2b7)](_0x361189);if(!_0x1817d6)return;const _0x3378a4=this[_0x5ea7be(0x289)][_0x5ea7be(0x26d)](_0x1817d6[_0x5ea7be(0x2a9)])[_0x5ea7be(0x2be)](_0x1817d6[_0x5ea7be(0x1a4)]);_0x1817d6[_0x5ea7be(0x274)][_0x5ea7be(0x2a7)](_0x50818=>_0x3378a4[_0x5ea7be(0x29f)](_0x50818,_0x5ea7be(0x187))),this[_0x5ea7be(0x20e)][_0x5ea7be(0x1c1)](_0x361189),this[_0x5ea7be(0x20e)][_0x5ea7be(0x1b3)](_0x2e8313,_0x1817d6);});}async[_0x1512c2(0x206)](_0x8131c3){const _0x26fcc6=_0x1512c2;this[_0x26fcc6(0x249)][_0x26fcc6(0x2d4)][_0x26fcc6(0x2b7)](_0x36fb35)[_0x26fcc6(0x258)](),this[_0x26fcc6(0x1ae)][_0x26fcc6(0x1a2)](_0x26fcc6(0x2b3)),this[_0x26fcc6(0x1ae)][_0x26fcc6(0x257)](!0x0),await this[_0x26fcc6(0x214)]();try{const _0x2cca38=this[_0x26fcc6(0x249)][_0x26fcc6(0x2d4)][_0x26fcc6(0x2b7)](_0x5a4451);this[_0x26fcc6(0x1b4)]('\x20'),_0x2cca38[_0x26fcc6(0x234)][_0x26fcc6(0x2cf)](_0x26fcc6(0x201)),await this[_0x26fcc6(0x19b)](_0x8131c3);const {sessionId:_0x59d7c2}=this[_0x26fcc6(0x239)][_0x26fcc6(0x279)]();await this[_0x26fcc6(0x289)][_0x26fcc6(0x25b)](_0x8131c3,_0x59d7c2),this[_0x26fcc6(0x289)][_0x26fcc6(0x283)]()&&this[_0x26fcc6(0x289)][_0x26fcc6(0x2a4)](_0x1a8d84(this[_0x26fcc6(0x249)][_0x26fcc6(0x1d2)],_0x26fcc6(0x2cb)));}catch(_0x4f32d6){console[_0x26fcc6(0x23e)](_0x26fcc6(0x294),_0x4f32d6);}finally{this[_0x26fcc6(0x1ae)][_0x26fcc6(0x1a2)](_0x26fcc6(0x1fe)),this[_0x26fcc6(0x1ae)][_0x26fcc6(0x257)](!0x1);}}[_0x1512c2(0x280)](_0x42a5bd){const _0x54d1af=_0x1512c2;this[_0x54d1af(0x289)]['id']===_0x42a5bd&&this[_0x54d1af(0x19b)]();}async[_0x1512c2(0x1b0)](){const _0x1149f1=_0x1512c2,_0x23ab40=this[_0x1149f1(0x239)][_0x1149f1(0x1e1)]();this[_0x1149f1(0x289)]?.[_0x1149f1(0x1ec)](_0x23ab40),this[_0x1149f1(0x289)]?.[_0x1149f1(0x2a4)](_0x1a8d84(this[_0x1149f1(0x249)][_0x1149f1(0x1d2)],_0x1149f1(0x2cb)));}[_0x1512c2(0x1c2)](){const _0x467e20=_0x1512c2;this[_0x467e20(0x289)]?.[_0x467e20(0x267)]();}[_0x1512c2(0x20f)](){const _0xce0ec7=_0x1512c2;this[_0xce0ec7(0x1ae)][_0xce0ec7(0x20f)]();}async[_0x1512c2(0x1cf)](){const _0x571b83=_0x1512c2;await this[_0x571b83(0x19b)]();}async[_0x1512c2(0x247)]({message:_0x1ad932,quickActionData:_0xe45439}){const _0x382b87=_0x1512c2;await this[_0x382b87(0x1ad)]({'userMessage':_0x1ad932,'quickActionData':_0xe45439});}[_0x1512c2(0x2ce)](){const _0x3f37db=_0x1512c2,_0x3d81ed=this[_0x3f37db(0x249)][_0x3f37db(0x263)][_0x3f37db(0x2b7)](_0x3f37db(0x22c));if(!_0x3d81ed)throw new _0x4b7d1b(_0x3f37db(0x188),this);return _0x3d81ed;}async[_0x1512c2(0x19b)](_0x5bfb59){const _0x9f96a9=_0x1512c2,_0x2e1381=this[_0x9f96a9(0x249)][_0x9f96a9(0x2d4)][_0x9f96a9(0x2b7)](_0x36fb35);_0x2e1381[_0x9f96a9(0x1e6)]&&_0x2e1381[_0x9f96a9(0x258)](),await this[_0x9f96a9(0x214)]();const _0x22eaa=this[_0x9f96a9(0x2ce)](),_0x5cb8c3=_0x5bfb59||_0x41d3ff();this[_0x9f96a9(0x289)]=new _0x233f88({'connector':this[_0x9f96a9(0x18f)],'chatModels':this[_0x9f96a9(0x2b1)],'defaultModelId':this[_0x9f96a9(0x249)][_0x9f96a9(0x263)][_0x9f96a9(0x2b7)](_0x9f96a9(0x295)),'conversationId':_0x5cb8c3,'group':_0x22eaa,'getEditor':()=>_0x5d8718(this[_0x9f96a9(0x249)])}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x1e4),(_0x18d4f5,_0x33b2d5)=>{const _0x168750=_0x9f96a9;_0x33b2d5[_0x168750(0x1d0)]=this[_0x168750(0x27d)](_0x33b2d5[_0x168750(0x1d0)],this[_0x168750(0x249)][_0x168750(0x263)][_0x168750(0x2b7)](_0x168750(0x232))),this[_0x168750(0x1ae)][_0x168750(0x1f4)](_0x33b2d5),this[_0x168750(0x1ae)][_0x168750(0x22a)](),this[_0x168750(0x1ae)][_0x168750(0x2ae)](),this[_0x168750(0x1ae)][_0x168750(0x213)](),_0x5bfb59||(this[_0x168750(0x1ae)][_0x168750(0x2d1)](),this[_0x168750(0x289)]?.[_0x168750(0x2a4)](_0x1a8d84(this[_0x168750(0x249)][_0x168750(0x1d2)],_0x168750(0x2cb))));}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x297),(_0x53c941,_0x35e435)=>{const _0x7ec52=_0x9f96a9;this[_0x7ec52(0x1ae)][_0x7ec52(0x2d3)](_0x35e435[_0x7ec52(0x18d)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x2a2),(_0x17b105,_0x2358c1)=>{const _0x2b256d=_0x9f96a9;this[_0x2b256d(0x1ae)][_0x2b256d(0x2af)](_0x2358c1),this[_0x2b256d(0x1ae)][_0x2b256d(0x195)](_0x2358c1);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x240),(_0x360a20,_0x3c7ec5)=>{const _0x22050c=_0x9f96a9;this[_0x22050c(0x1ae)][_0x22050c(0x233)](_0x3c7ec5);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x275),async()=>{const _0x377e3a=_0x9f96a9;await this[_0x377e3a(0x1ae)][_0x377e3a(0x21a)]();}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x250),(_0x3792c4,_0x20ba36)=>{const _0x57e46b=_0x9f96a9;this[_0x57e46b(0x1ae)][_0x57e46b(0x216)](_0x20ba36['id']);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x222),(_0x3e462a,_0x36041c,_0x344d5b)=>{const _0x1937b1=_0x9f96a9;this[_0x1937b1(0x1b4)](_0x36041c,_0x344d5b);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x2a6),(_0x423419,_0xc3710d)=>{const _0x428a26=_0x9f96a9;this[_0x428a26(0x1ae)][_0x428a26(0x25d)]({'isVisible':!0x0,'id':_0xc3710d[_0x428a26(0x2a9)]}),_0x428a26(0x242)===_0xc3710d[_0x428a26(0x1f8)]?this[_0x428a26(0x1ae)][_0x428a26(0x1f0)](_0xc3710d):this[_0x428a26(0x1ae)][_0x428a26(0x285)](_0xc3710d);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x1c4),async(_0x2f0f56,_0x1af650,_0x11b90d)=>{const _0x25d2ad=_0x9f96a9;await this[_0x25d2ad(0x270)]({'reply':_0x1af650,'changeGroups':_0x11b90d});}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x220),(_0x204582,{reply:_0x3fa3fc,index:_0x45ba0c,state:_0x352bc6})=>{const _0x5ab162=_0x9f96a9;this[_0x5ab162(0x1ae)][_0x5ab162(0x229)]({'id':_0x3fa3fc['id'],'index':_0x45ba0c,'state':_0x352bc6});}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x248),(_0x1d9925,_0x4e4526)=>{const _0x5df77a=_0x9f96a9;if(this[_0x5df77a(0x1ae)][_0x5df77a(0x277)](_0x4e4526[_0x5df77a(0x18b)],_0x4e4526[_0x5df77a(0x28c)]),_0x5df77a(0x2a1)===_0x4e4526[_0x5df77a(0x18b)][_0x5df77a(0x1f8)]){const _0x1e3a30=[..._0x5d8718(this[_0x5df77a(0x249)])[_0x5df77a(0x20c)][_0x5df77a(0x1d8)][_0x5df77a(0x2a1)][_0x5df77a(0x28b)]()];this[_0x5df77a(0x239)][_0x5df77a(0x1d4)](_0x1e3a30,_0x5df77a(0x243)+this[_0x5df77a(0x289)]?.['id']);}}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x221),(_0x4a1c29,_0x4aba0b)=>{const _0x550c48=_0x9f96a9;this[_0x550c48(0x1ae)][_0x550c48(0x260)](_0x4aba0b[_0x550c48(0x199)]),_0x550c48(0x269)==_0x4aba0b[_0x550c48(0x199)]&&this[_0x550c48(0x1c2)](),_0x550c48(0x2a1)===_0x4aba0b[_0x550c48(0x1f8)]&&this[_0x550c48(0x239)][_0x550c48(0x1e8)](_0x550c48(0x243)+this[_0x550c48(0x289)]?.['id']);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x194),(_0x1cb0a1,_0x23eae3)=>{const _0x22cba2=_0x9f96a9;this[_0x22cba2(0x1ae)][_0x22cba2(0x226)](_0x23eae3[_0x22cba2(0x18b)][_0x22cba2(0x199)],_0x23eae3[_0x22cba2(0x28c)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x2d2),(_0x41bc32,_0x2eea36)=>{const _0x545fb9=_0x9f96a9;this[_0x545fb9(0x1ae)][_0x545fb9(0x217)](_0x2eea36[_0x545fb9(0x241)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x238),(_0x4b77a4,_0x2785f5)=>{const _0x55a1c5=_0x9f96a9;this[_0x55a1c5(0x1ae)][_0x55a1c5(0x1e0)](_0x2785f5[_0x55a1c5(0x1dc)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x298),(_0x1058d5,_0xcd85e1)=>{const _0x233820=_0x9f96a9;this[_0x233820(0x1ae)][_0x233820(0x1bc)](_0xcd85e1[_0x233820(0x1e3)],_0xcd85e1[_0x233820(0x1db)],_0xcd85e1[_0x233820(0x22d)],_0xcd85e1[_0x233820(0x266)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x227),(_0x5d9d78,_0x144be0)=>{const _0x45e230=_0x9f96a9;this[_0x45e230(0x1ae)][_0x45e230(0x2ca)](_0x144be0[_0x45e230(0x1e3)],_0x144be0[_0x45e230(0x18c)],_0x144be0[_0x45e230(0x281)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x1df),(_0x18e741,_0x3b5854)=>{const _0x343e9d=_0x9f96a9;this[_0x343e9d(0x1ae)][_0x343e9d(0x2cc)](_0x3b5854);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x19f),(_0x285105,_0x5d1acd)=>{const _0x80d81f=_0x9f96a9;this[_0x80d81f(0x1ae)][_0x80d81f(0x1a6)](_0x5d1acd[_0x80d81f(0x1ca)],_0x5d1acd[_0x80d81f(0x1b7)]);}),this[_0x9f96a9(0x289)]['on'](_0x9f96a9(0x23e),(_0x8f5bca,{error:_0x5732a4,interactionId:_0x50dde4,fileName:_0x211819,url:_0x5902f3,sourceId:_0xb97c46,sourceLabel:_0x5f6c94})=>{const _0x519c13=_0x9f96a9,_0x5e547c=_0x50dde4?_0x50dde4+':'+_0x41d3ff():_0x41d3ff();_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x282))?this[_0x519c13(0x1ae)][_0x519c13(0x1ba)]({'staticMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x29b)),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x1a9))||_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x19d))?(this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x2c4)),'id':_0x5e547c}),this[_0x519c13(0x2b0)](_0x5732a4)):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x288))?this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x2a0),_0x211819),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x1bf))?this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x1f3),_0x5902f3),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x1a5))?this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x22b)),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x264))?this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x2b5)),'id':_0x5e547c}):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x2bb))?(_0xb97c46&&this[_0x519c13(0x1ae)][_0x519c13(0x22f)](_0xb97c46),this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x27c),_0x5f6c94||_0x519c13(0x1db)),'id':_0x5e547c}),this[_0x519c13(0x2b0)](_0x5732a4)):_0x5732a4[_0x519c13(0x230)][_0x519c13(0x1f7)](_0x519c13(0x22e))?(this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x235)),'id':_0x5e547c}),this[_0x519c13(0x2b0)](_0x5732a4)):(this[_0x519c13(0x1ae)][_0x519c13(0x24a)]({'errorMessage':_0x1a8d84(this[_0x519c13(0x249)][_0x519c13(0x1d2)],_0x519c13(0x256)),'id':_0x5e547c}),this[_0x519c13(0x2b0)](_0x5732a4));}),await this[_0x9f96a9(0x289)][_0x9f96a9(0x1ac)](this[_0x9f96a9(0x249)][_0x9f96a9(0x263)][_0x9f96a9(0x2b7)](_0x9f96a9(0x2c1))),_0x5bfb59||await this[_0x9f96a9(0x289)][_0x9f96a9(0x1dd)]();}async[_0x1512c2(0x1ad)]({userMessage:_0x4f19c2,quickActionData:_0x47b037}){const _0x26cc7e=_0x1512c2;if(!this[_0x26cc7e(0x289)])throw new _0x4b7d1b(_0x26cc7e(0x251));this[_0x26cc7e(0x289)][_0x26cc7e(0x200)]()&&await this[_0x26cc7e(0x289)][_0x26cc7e(0x20d)](this[_0x26cc7e(0x239)][_0x26cc7e(0x279)]()),this[_0x26cc7e(0x289)]['id']&&this[_0x26cc7e(0x289)][_0x26cc7e(0x1d5)]&&await this[_0x26cc7e(0x289)][_0x26cc7e(0x204)]({'userMessage':_0x4f19c2,'quickActionData':_0x47b037}),this[_0x26cc7e(0x1bd)]();}[_0x1512c2(0x1bd)](){const _0x115ad2=_0x1512c2,_0x1f2d9c=_0x5d8718(this[_0x115ad2(0x249)])[_0x115ad2(0x20c)],_0x44086c=Array[_0x115ad2(0x29e)](_0x1f2d9c[_0x115ad2(0x293)][_0x115ad2(0x291)](_0x5a3655));_0x1f2d9c[_0x115ad2(0x219)](_0x395ca1=>{const _0x462d9f=_0x115ad2;_0x44086c[_0x462d9f(0x2a7)](_0x2cdea6=>_0x395ca1[_0x462d9f(0x27a)](_0x2cdea6));});}[_0x1512c2(0x1b6)](){const _0xff3bd5=_0x1512c2;console[_0xff3bd5(0x19c)](_0xff3bd5(0x24e));}[_0x1512c2(0x24d)](_0x7b3871){const _0x28b43a=_0x1512c2;this[_0x28b43a(0x1ae)][_0x28b43a(0x21b)](_0x7b3871);}[_0x1512c2(0x2b0)](_0x3f44ab){const _0x56c1dc=_0x1512c2;_0x52cd79(_0x3f44ab[_0x56c1dc(0x230)]);}[_0x1512c2(0x2cd)](_0x3f62aa){const _0x3899e1=_0x1512c2;this[_0x3899e1(0x289)]?.[_0x3899e1(0x2ab)](_0x3f62aa);}[_0x1512c2(0x26f)](){const _0x529583=_0x1512c2;this[_0x529583(0x289)]?.[_0x529583(0x192)]();}[_0x1512c2(0x207)](){const _0x375940=_0x1512c2;this[_0x375940(0x289)]?.[_0x375940(0x2b4)]();}[_0x1512c2(0x2d0)](_0x1e3907){const _0x4afef7=_0x1512c2,[_0x79e20a,_0x953f4d]=_0x1e3907[_0x4afef7(0x21c)](':'),_0x35bf56=this[_0x4afef7(0x289)][_0x4afef7(0x26d)](_0x79e20a),_0x34b386=_0x35bf56[_0x4afef7(0x2be)](_0x953f4d);return{'interaction':_0x35bf56,'reply':_0x34b386};}[_0x1512c2(0x1f6)](_0x52e585,_0xe2bd9d=!0x1){const _0x1050a0=_0x1512c2,_0x438941=_0x5d8718(this[_0x1050a0(0x249)]),_0x5b265a={'target':_0x438941[_0x1050a0(0x212)][_0x1050a0(0x234)][_0x1050a0(0x296)][_0x1050a0(0x1d9)](_0x438941[_0x1050a0(0x212)][_0x1050a0(0x26c)][_0x1050a0(0x2bc)](_0x52e585)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0xe2bd9d};_0xe2bd9d&&(_0x5b265a[_0x1050a0(0x284)]=!0x0),_0x537b97(_0x5b265a);}[_0x1512c2(0x1b4)](_0xa3556b,_0x1ba9f6=!0x1){const _0x1e4d70=_0x1512c2;this[_0x1e4d70(0x1ae)][_0x1e4d70(0x222)](_0xa3556b||_0x1a8d84(this[_0x1e4d70(0x249)][_0x1e4d70(0x1d2)],_0x1e4d70(0x245)),_0x1ba9f6);}[_0x1512c2(0x27d)](_0x1e2611,_0x2e26f8){const _0x4a03f2=_0x1512c2;let _0x9deaac;if(_0x2e26f8){_0x9deaac=[];const _0x25a998=_0x4a03f2(0x21d)==typeof _0x2e26f8?[_0x2e26f8[_0x4a03f2(0x224)]()]:_0x2e26f8[_0x4a03f2(0x28e)](_0x2ba944=>_0x2ba944[_0x4a03f2(0x224)]());for(const _0x270ecf of _0x25a998)for(const _0x45e817 of _0x1e2611)(_0x45e817['id'][_0x4a03f2(0x224)]()===_0x270ecf||_0x45e817[_0x4a03f2(0x2b6)][_0x4a03f2(0x224)]()===_0x270ecf||_0x45e817[_0x4a03f2(0x2c0)][_0x4a03f2(0x224)]()===_0x270ecf||_0x45e817['id'][_0x4a03f2(0x224)]()[_0x4a03f2(0x1f7)](_0x270ecf))&&_0x9deaac[_0x4a03f2(0x1fb)](_0x45e817);}else _0x9deaac=_0x1e2611;return _0x9deaac;}async[_0x1512c2(0x270)]({reply:_0x1e0ed6,changeGroups:_0x496ac0,renderingStrategy:_0x119984}){const _0x562c97=_0x1512c2,{id:_0x38b50d,isDone:_0x3c6a44,type:_0x253e95,parsedContent:_0x15ee9f}=_0x1e0ed6;if(_0x562c97(0x1d6)===_0x253e95){const _0xacece6=_0x5d8718(this[_0x562c97(0x249)]),_0x197023=_0x2b345({'editor':_0xacece6,'showDiff':this[_0x562c97(0x1ae)][_0x562c97(0x1af)],'changeGroups':_0x496ac0,'documentContextContent':_0x1e0ed6[_0x562c97(0x228)]});await this[_0x562c97(0x1ae)][_0x562c97(0x1ee)]({'id':_0x38b50d,'parts':_0x197023,'renderingStrategy':_0x119984,'isDone':_0x3c6a44});}else _0x562c97(0x242)===_0x253e95&&await this[_0x562c97(0x1ae)][_0x562c97(0x26b)]({'id':_0x38b50d,'parsedContent':_0x15ee9f,'renderingStrategy':_0x119984,'isDone':_0x3c6a44});_0x3c6a44&&_0x1e0ed6[_0x562c97(0x1aa)][_0x562c97(0x215)]>0x0&&this[_0x562c97(0x1ae)][_0x562c97(0x2a3)](_0x38b50d,_0x1e0ed6[_0x562c97(0x1aa)]);}async[_0x1512c2(0x214)](){const _0x33e07b=_0x1512c2,_0x2af290=this[_0x33e07b(0x289)]?.[_0x33e07b(0x246)];_0x2af290&&(_0x2af290[_0x33e07b(0x1e5)](),this[_0x33e07b(0x1ae)][_0x33e07b(0x1f2)](_0x2af290));}async[_0x1512c2(0x2c3)](){const _0x3fe80a=_0x1512c2,_0xe1dc5e=this[_0x3fe80a(0x289)]?.[_0x3fe80a(0x246)];if(_0xe1dc5e){for await(const _0x25e06f of _0xe1dc5e[_0x3fe80a(0x272)])await this[_0x3fe80a(0x270)]({'reply':_0x25e06f,'changeGroups':_0x25e06f[_0x3fe80a(0x2bf)],'renderingStrategy':_0x3fe80a(0x2b3)});}}}
23
+ const _0x146c6f=_0x2434;(function(_0x1f8f34,_0x194dca){const _0x56f109=_0x2434,_0x1af1f7=_0x1f8f34();while(!![]){try{const _0x232fea=-parseInt(_0x56f109(0x268))/0x1*(parseInt(_0x56f109(0x1e3))/0x2)+parseInt(_0x56f109(0x18a))/0x3*(-parseInt(_0x56f109(0x181))/0x4)+parseInt(_0x56f109(0x1d6))/0x5*(parseInt(_0x56f109(0x1c2))/0x6)+-parseInt(_0x56f109(0x1c1))/0x7+-parseInt(_0x56f109(0x192))/0x8*(parseInt(_0x56f109(0x1d4))/0x9)+-parseInt(_0x56f109(0x1b8))/0xa*(parseInt(_0x56f109(0x1d9))/0xb)+parseInt(_0x56f109(0x24f))/0xc;if(_0x232fea===_0x194dca)break;else _0x1af1f7['push'](_0x1af1f7['shift']());}catch(_0x10498b){_0x1af1f7['push'](_0x1af1f7['shift']());}}}(_0x2c0e,0xaf1d3));import{ContextPlugin as _0x723f7e,Editor as _0x32153a}from'ckeditor5/src/core.js';import{CKEditorError as _0x3c810f,logError as _0x2e819b,scrollViewportToShowTarget as _0x39bad2,uid as _0x1bad92}from'ckeditor5/src/utils.js';import{AIConnector as _0x377cac}from'../aicore/aiconnector.js';import{AITabs as _0x56d072}from'../aitabs/aitabs.js';import{AIChatConversation as _0x23da83}from'./model/aichatconversation.js';import{getTranslation as _0x24c83d}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3f0bb6}from'../aicore/aiediting.js';import{AIChatModels as _0x5da4a7}from'./model/aichatmodels.js';function _0x2c0e(){const _0x505bb4=['addSelectionToContext','chat','getSelectionText','replyChangeGroupStateUpdated','getGroupId','partIndex','selectedModel','contextSent','closeSourceResourceBalloon','createRange','addResourceToContext','_handleStartConversation','addFeedItemError','delete','setConversationContext','text-delta','_previewedChangeGroup','toggleReasoning','push','removeContextItem','ai-chat-url-upload-failed','toLocaleLowerCase','uid','ai.chat.models.displayedModels','get','resources','resourceStateChanged','rejectSuggestion','interactionId','_applyOperationsAsSuggestions','history','accepted','path','close','interactionStarted','isUploadInProgress','remove','cloneNode','insertSuggestion','selectModel','rootName','editors','addCurrentDocumentToContext','addContextItem','startConversation','createPositionAt','updateConversationTitle','isDocumentOperation','root','isInContext','updateFeedItemAIReplySuggestionPartState','_stopLastInteraction','init','log','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','find','load','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-conversation-','AIConnector','getRanges','contextItemRemoved','Undo','filter','abortPromptStream','ai-chat-source-resources-load-failed','8tjdDwF','start','applySuggestion','AIChatController','source','AIEditing','ai-chat-missing-channel-id','AI_CHAT_RESOURCE_LOAD_FAILED','content','1822146yvufCW','documentContextContent','isOpen','getOperations','addOperation','_balloonShowDiff','main','setContextItemLoading','344BYExuk','full','sourceResourcesLoaded','getDocumentData','getChild','getRoot','finishInteraction','ai-chat-resource-load-failed','Showing\x20conversation\x20history...','ai-chat-controller-no-active-conversation','_integrateEditor','ai-request-aborted','_aiConnector','createConversation','resetConversationTitle','data','_flushLastInteractionUI','anchorId','requires','ai.chat.models.defaultModelId','plugins','version','contextItemAdded','indexes','provider','dialogClosed','interactionCreated','changes','addFileToContext','has','focusPromptInput','view','AI_CHAT_GENERIC_ERROR','AIChatUI','viewRangeToDom','addFeedInteractionHeader','AITabs','isLoading','160430gqxXyP','editing','removeMarker','Disliked\x20response','resizeTabs','type','stopListening','unshift','mouseOverSuggestion','278859UFwDzM','2766MqaIfD','isPremiumPlugin','removeFeedInteraction','isDisabled','slice','length','setChangeGroupState','createPositionFromPath','updateFeedItemAIReplySources','ai-chat-file-upload-failed','rejected','resizedTabs','resetMessageInput','static','getInteractionAndReplyById','_createFromRanges','pluginName','forEach','247968DerriV','startsWith','12690QZrVAK','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','dislike','341IMEeyd','AI_CHAT_ABORTED_MESSAGE','data-id','addFeedItemUserMessage','nextSibling','addUrlToContext','toViewRange','config','handleRemovedConversation','_setIsMaximized','24074gKJIzD','updateCurrentDocumentInContext','getMarkersGroup','pending','_toggleWebSearch','getChildren','lastInteraction','sendUserMessage','_batchToChanges','_showConversationHistory','collaboration.channelId','replyContentUpdated','baseVersion','capabilitiesUpdated','getAttribute','error','removed','updateFeedItemAIReplySuggestionContent','startInteraction','mapper','interactionDestroyed','sendMessage','document','sourcePosition','stopInteraction','new','updateContent','ready','howMany','revert','model','ai-chat-context-invalid-data','_scrollToSuggestionRange','streaming','getDiff','getFirstRange','toggleSuggestionDisplayMode','replyCreated','change','string','interactionFinished','isCurrentDocumentInConversation','updateResourceState','contextItems','hideFakeVisualSelection','sources','_handleUIUserMessage','_aiChatUi','_aiEditing','end','getTransformedByOperation','addFeedItemAIReply','stop','_toggleReasoning','modification-delta','maxOffset','mouseLeaveSuggestion','toggleLoadingSkeleton','isStarted','options','clearPendingContextUI','getChildAtOffset','loadConversation','TrackChangesEditing','domConverter','setModel','sourceId','afterInit','$graveyard','listenTo','isOfficialPlugin','setAddContextOptions','node','Failed\x20to\x20load\x20conversation','_removeAISelectionMarkers','ai-chat-conversation-init-failed','state','scrollFeedToSuggestion','uiId','applyOperation','showChangeInText','locale','addContextOptionsChanged','isCurrentDocumentInContext','AI_CHAT_CONTEXT_INVALID_DATA','addFeedItemAISuggestion','Suggestion\x20','setSelectedModel','updateFeedItemAIReplyContent','Liked\x20response','parse','getInteraction','replies','updateCapabilities','contextItemLoadingEnded','activeConversation','name','batch','loadSourceResources','removeFromContext','selection','addDocumentToContext','context','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','_aiChatModels','indexOf','removeSelectionFromChatContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','45840312PTBByQ','showFakeVisualSelection','undo','setIsUploadInProgress','commands','resize','setConversationTitle','setIsMaximized','DocumentCompare','showNext','addFilesToContext','AI_CHAT_UNTITLED_CONVERSATION','resourceId','split','activateTab','updateFeedInteractionHeader','resource','setFeedItemRenderingStrategy','ai-chat-controller-mouse-over','markers','_insertSuggestion','_updateReplyContent','getReply','getDocumentContext','_logError','111nbDjhr','query','showPrevious','like','_applySuggestion','availableModels','current-document','add','modelSelected','_openBalloonFor','open','addFeedItemStaticMessage','populateSourceResourceBalloon','changeGroups','removeSelectionFromContext','addSelectionToChatContext','uploadProgressChanged','_getDocumentRangeForReplyChanges','getPath','ai-chat-context-unsupported-type','_removeFromContext','replyId','clearConversationContextUI','ai-chat-conversation-start-failed','showDiff','redo','set','handleUserInteraction','message','conversationInitialized','map','range','ai.chat.context','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','toggleWebSearch','_filterModels','alignToTop','from','children','contextItem'];_0x2c0e=function(){return _0x505bb4;};return _0x2c0e();}import{getEditorFromContext as _0x4fb5fe}from'../aicore/utils/geteditorfromcontext.js';function _0x2434(_0x464613,_0x46d152){const _0x2c0ef7=_0x2c0e();return _0x2434=function(_0x243445,_0x41e6bb){_0x243445=_0x243445-0x145;let _0x431349=_0x2c0ef7[_0x243445];return _0x431349;},_0x2434(_0x464613,_0x46d152);}import{DocumentCompare as _0x3b0268,DATA_ID_MODEL_ATTRIBUTE as _0x49a695}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1d9b2b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x51a626,getMinimalSelection as _0x4b622b,getSuggestionPartsFromReply as _0x2d7cdf}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x148a01,_DetachOperation as _0x51a3f}from'ckeditor5/src/engine.js';import{findOne as _0x586b98,getAttribute as _0x20f1b1,serialize as _0x2270eb,Document as _0x21c873,findByAttribute as _0x9810c1}from'../aicore/utils/htmlparser.js';import{IconAI as _0x32d524}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x49331d}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x48863f}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x723f7e{[_0x146c6f(0x213)];[_0x146c6f(0x19e)];[_0x146c6f(0x212)];[_0x146c6f(0x24b)];[_0x146c6f(0x1eb)]=new Map();[_0x146c6f(0x14f)]=null;[_0x146c6f(0x18f)]=!0x1;static get[_0x146c6f(0x1a4)](){return[_0x377cac,_0x48863f,_0x3b0268];}static get[_0x146c6f(0x1d2)](){const _0x1efddb=_0x146c6f;return _0x1efddb(0x184);}static get[_0x146c6f(0x229)](){return!0x0;}static get[_0x146c6f(0x1c3)](){return!0x0;}[_0x146c6f(0x173)](){const _0x254105=_0x146c6f;this[_0x254105(0x19e)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x17a)),this[_0x254105(0x212)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x1b3)),this[_0x254105(0x213)]=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x186)),this[_0x254105(0x24b)]=new _0x5da4a7({'connector':this[_0x254105(0x19e)]});const _0x10d18c=this[_0x254105(0x249)][_0x254105(0x1a6)][_0x254105(0x157)](_0x254105(0x1b6));this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x16b),()=>{const _0x47fe9c=_0x254105;this[_0x47fe9c(0x14a)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1ea),(_0x12c5aa,_0x5d967d)=>{const _0x7c8052=_0x254105;this[_0x7c8052(0x211)]({'userMessage':_0x5d967d});}),this[_0x254105(0x228)](_0x10d18c,_0x254105(0x1cd),(_0x42c735,_0x433a5d)=>{const _0x20d7bb=_0x254105;this[_0x20d7bb(0x1e2)](_0x433a5d);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1bc),()=>{const _0x537f87=_0x254105;_0x10d18c[_0x537f87(0x254)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x17f),async()=>{const _0x2df73b=_0x254105;await this[_0x2df73b(0x172)](),await this[_0x2df73b(0x1a2)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x248),()=>{const _0x94a6fe=_0x254105;this[_0x94a6fe(0x242)]?.[_0x94a6fe(0x169)](_0x24c83d(this[_0x94a6fe(0x249)][_0x94a6fe(0x234)],_0x94a6fe(0x175)));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1ae),(_0x4f2658,_0x251c1d)=>{const _0xa891b5=_0x254105;this[_0xa891b5(0x242)]?.[_0xa891b5(0x259)](Array[_0xa891b5(0x28d)](_0x251c1d));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1de),(_0x500757,_0x1583e6)=>{const _0xe6e509=_0x254105;this[_0xe6e509(0x242)]?.[_0xe6e509(0x1de)](_0x1583e6);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x149),(_0x4e3891,_0x889f67)=>{const _0x881e4c=_0x254105;this[_0x881e4c(0x242)]?.[_0x881e4c(0x149)](_0x889f67[_0x881e4c(0x185)],_0x889f67[_0x881e4c(0x25f)]);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x152),(_0x511c2a,_0x369109)=>{const _0x442557=_0x254105;this[_0x442557(0x27c)](_0x369109);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x245),(_0x43086d,_0x3ec74a)=>{const _0x474997=_0x254105;this[_0x474997(0x242)]?.[_0x474997(0x245)](_0x3ec74a[_0x474997(0x225)],_0x3ec74a[_0x474997(0x269)],_0x3ec74a[_0x474997(0x155)]);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x28a),()=>{const _0x35a063=_0x254105;this[_0x35a063(0x1e7)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x150),()=>{const _0x365b2f=_0x254105;this[_0x365b2f(0x218)]();}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x166),(_0x4a142a,_0x5f18ed)=>{const _0x5525f2=_0x254105;this[_0x5525f2(0x242)]?.[_0x5525f2(0x224)](_0x5f18ed);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x26b),(_0x420977,{replyId:_0x32a618})=>{const _0xe37b6e=_0x254105;console[_0xe37b6e(0x174)](_0xe37b6e(0x23c),_0x32a618);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1d8),(_0x1399a3,{replyId:_0x5c75a7})=>{const _0x37b9b9=_0x254105;console[_0x37b9b9(0x174)](_0x37b9b9(0x1bb),_0x5c75a7);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x165),(_0x1cd862,_0x13c297)=>{const _0x4104be=_0x254105;this[_0x4104be(0x249)][_0x4104be(0x1a6)][_0x4104be(0x157)](_0x48863f)[_0x4104be(0x160)](),this[_0x4104be(0x263)](_0x13c297);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x233),(_0x404cdd,{replyId:_0x2146f0,partIndex:_0x4d93a8})=>{const _0x56223d=_0x254105;this[_0x56223d(0x18f)]=this[_0x56223d(0x212)][_0x56223d(0x280)],this[_0x56223d(0x271)](_0x2146f0,_0x4d93a8);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x1c0),(_0x2a3cdf,{replyId:_0x4156f8,partIndex:_0xf95e04})=>{const _0x3486bd=_0x254105,_0x48eab4=this[_0x3486bd(0x279)](_0x4156f8,_0xf95e04);_0x48eab4&&_0x3486bd(0x227)!=_0x48eab4[_0x3486bd(0x287)][_0x3486bd(0x16f)][_0x3486bd(0x167)]&&this[_0x3486bd(0x213)][_0x3486bd(0x250)]([_0x48eab4[_0x3486bd(0x287)]],_0x3486bd(0x261));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x21b),()=>{const _0x3c7e9b=_0x254105;this[_0x3c7e9b(0x213)][_0x3c7e9b(0x20f)](_0x3c7e9b(0x261));}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x183),(_0x121436,_0x158acb)=>{const _0x137dda=_0x254105;this[_0x137dda(0x249)][_0x137dda(0x1a6)][_0x137dda(0x157)](_0x48863f)[_0x137dda(0x160)](),this[_0x137dda(0x26c)](_0x158acb);}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x207),async(_0x120c8c,_0x219228)=>{const _0x583f5d=_0x254105,{reply:_0x15ea31}=this[_0x583f5d(0x1d0)](_0x219228[_0x583f5d(0x27d)]),_0x1236e5=_0x4fb5fe(this[_0x583f5d(0x249)]),_0xf949ad=_0x2d7cdf({'editor':_0x1236e5,'changeGroups':_0x15ea31[_0x583f5d(0x275)],'documentContextContent':_0x15ea31[_0x583f5d(0x18b)],'showDiff':_0x219228[_0x583f5d(0x280)]});await this[_0x583f5d(0x212)][_0x583f5d(0x1f4)]({'id':_0x15ea31['id'],'parts':_0xf949ad,'renderingStrategy':_0x583f5d(0x1cf)});}),this[_0x254105(0x228)](this[_0x254105(0x212)],_0x254105(0x15a),(_0x5d9a73,{replyId:_0x399548,partIndex:_0x1948ae})=>{const _0x280870=_0x254105;this[_0x280870(0x14f)]?.[_0x280870(0x27d)]==_0x399548&&this[_0x280870(0x14f)]?.[_0x280870(0x295)]==_0x1948ae&&this[_0x280870(0x249)][_0x280870(0x1a6)][_0x280870(0x157)](_0x48863f)[_0x280870(0x160)]();const {reply:_0x28fdb8}=this[_0x280870(0x1d0)](_0x399548);_0x28fdb8[_0x280870(0x1c8)](_0x1948ae,_0x280870(0x1cc)),this[_0x280870(0x213)][_0x280870(0x20f)](_0x280870(0x261));});}async[_0x146c6f(0x226)](){const _0x2bd59d=_0x146c6f;this[_0x2bd59d(0x249)]instanceof _0x32153a?this[_0x2bd59d(0x19c)](this[_0x2bd59d(0x249)]):this[_0x2bd59d(0x228)](this[_0x2bd59d(0x249)][_0x2bd59d(0x168)],_0x2bd59d(0x26f),(_0x3d46e8,_0x570b43)=>{const _0x309056=_0x2bd59d;_0x570b43['on'](_0x309056(0x1fe),()=>{const _0x32937a=_0x309056;this[_0x32937a(0x19c)](_0x570b43);});}),await this[_0x2bd59d(0x14a)]();}[_0x146c6f(0x263)](_0x3a3929){const _0x5a5996=_0x146c6f,_0x1fdc89=_0x4fb5fe(this[_0x5a5996(0x249)]);if(!_0x1fdc89[_0x5a5996(0x1a6)][_0x5a5996(0x1af)](_0x5a5996(0x222)))return;const _0x2d8e64=this[_0x5a5996(0x249)][_0x5a5996(0x1a6)][_0x5a5996(0x157)](_0x5a5996(0x257)),{reply:_0x3deaa9,interaction:_0x434901}=this[_0x5a5996(0x1d0)](_0x3a3929[_0x5a5996(0x27d)]),_0x37ae64=this[_0x5a5996(0x279)](_0x3a3929[_0x5a5996(0x27d)],_0x3a3929[_0x5a5996(0x295)]),_0x3d6042=void 0x0!==_0x3a3929[_0x5a5996(0x295)]?[_0x3deaa9[_0x5a5996(0x275)][_0x3a3929[_0x5a5996(0x295)]]]:_0x3deaa9[_0x5a5996(0x275)][_0x5a5996(0x17e)](_0x2b6745=>_0x5a5996(0x1e6)==_0x2b6745[_0x5a5996(0x22f)]),_0x1c507b=_0x3d6042[_0x5a5996(0x286)](_0x5270ba=>_0x3deaa9[_0x5a5996(0x275)][_0x5a5996(0x24c)](_0x5270ba));_0x1c507b[_0x5a5996(0x1d3)](_0xa74bf9=>_0x3deaa9[_0x5a5996(0x1c8)](_0xa74bf9,_0x5a5996(0x15e)));const _0x7f060=_0x1d9b2b({'editor':_0x1fdc89,'reply':_0x3deaa9,'interaction':_0x434901,'groups':_0x3d6042,'transform':!0x0,'documentCompare':_0x2d8e64,'documentCompareOptions':{'anchor':_0x5a5996(0x190),'markDeletions':!0x0}});let _0x364cdf;_0x37ae64&&this[_0x5a5996(0x203)](_0x37ae64[_0x5a5996(0x287)]),_0x1fdc89[_0x5a5996(0x201)][_0x5a5996(0x209)](_0x56f748=>{const _0x28d96b=_0x5a5996;_0x364cdf=_0x56f748[_0x28d96b(0x244)],_0x1fdc89[_0x28d96b(0x1a6)][_0x28d96b(0x157)](_0x28d96b(0x222))[_0x28d96b(0x15c)](_0x7f060),this[_0x28d96b(0x213)][_0x28d96b(0x20f)](_0x28d96b(0x261));}),this[_0x5a5996(0x1eb)][_0x5a5996(0x282)](_0x364cdf,{'interactionId':_0x434901['id'],'replyId':_0x3deaa9['id'],'indexes':_0x1c507b[_0x5a5996(0x1c6)]()});}[_0x146c6f(0x26c)](_0x136f83){const _0x5d3cf7=_0x146c6f,_0x419a24=_0x4fb5fe(this[_0x5d3cf7(0x249)]),_0x6f5135=this[_0x5d3cf7(0x249)][_0x5d3cf7(0x1a6)][_0x5d3cf7(0x157)](_0x3b0268),{reply:_0xf29623,interaction:_0x3e0179}=this[_0x5d3cf7(0x1d0)](_0x136f83[_0x5d3cf7(0x27d)]),_0x2e51ef=this[_0x5d3cf7(0x279)](_0x136f83[_0x5d3cf7(0x27d)],_0x136f83[_0x5d3cf7(0x295)]),_0x447b9f=void 0x0!==_0x136f83[_0x5d3cf7(0x295)]?[_0xf29623[_0x5d3cf7(0x275)][_0x136f83[_0x5d3cf7(0x295)]]]:_0xf29623[_0x5d3cf7(0x275)][_0x5d3cf7(0x17e)](_0x52cf0a=>_0x5d3cf7(0x1e6)==_0x52cf0a[_0x5d3cf7(0x22f)]),_0x3cd258=_0x447b9f[_0x5d3cf7(0x286)](_0x1438c5=>_0xf29623[_0x5d3cf7(0x275)][_0x5d3cf7(0x24c)](_0x1438c5));_0x3cd258[_0x5d3cf7(0x1d3)](_0x1cc4d7=>_0xf29623[_0x5d3cf7(0x1c8)](_0x1cc4d7,_0x5d3cf7(0x15e)));const _0x251888=_0x1d9b2b({'editor':_0x419a24,'reply':_0xf29623,'interaction':_0x3e0179,'groups':_0x447b9f,'transform':!0x0,'documentCompare':_0x6f5135,'documentCompareOptions':{'anchor':_0x5d3cf7(0x190),'markDeletions':!0x1}});let _0x1fc0ee;_0x2e51ef&&this[_0x5d3cf7(0x203)](_0x2e51ef[_0x5d3cf7(0x287)]),_0x419a24[_0x5d3cf7(0x201)][_0x5d3cf7(0x209)](_0x510420=>{const _0x4f2ce0=_0x5d3cf7;_0x1fc0ee=_0x510420[_0x4f2ce0(0x244)];for(const _0x58b2b6 of _0x251888)_0x58b2b6[_0x4f2ce0(0x1ef)]=_0x419a24[_0x4f2ce0(0x201)][_0x4f2ce0(0x1f9)][_0x4f2ce0(0x1a7)],_0x510420[_0x4f2ce0(0x244)][_0x4f2ce0(0x18e)](_0x58b2b6),_0x419a24[_0x4f2ce0(0x201)][_0x4f2ce0(0x232)](_0x58b2b6);}),this[_0x5d3cf7(0x1eb)][_0x5d3cf7(0x282)](_0x1fc0ee,{'interactionId':_0x3e0179['id'],'replyId':_0xf29623['id'],'indexes':_0x3cd258[_0x5d3cf7(0x1c6)]()});}[_0x146c6f(0x271)](_0x7d44ca,_0xc77ef1){const _0xe6f8ea=_0x146c6f,_0x305165=_0x4fb5fe(this[_0xe6f8ea(0x249)]),_0x33adc7=this[_0xe6f8ea(0x279)](_0x7d44ca,_0xc77ef1),_0x307f2f=this[_0xe6f8ea(0x249)][_0xe6f8ea(0x1a6)][_0xe6f8ea(0x157)](_0x48863f);if(!_0x33adc7)return void _0x307f2f[_0xe6f8ea(0x160)]();const {range:_0x4c3400,currentIndex:_0x57dedd,previousIndex:_0x4b1b1a,nextIndex:_0x46b481}=_0x33adc7;if(this[_0xe6f8ea(0x14f)]?.[_0xe6f8ea(0x27d)]==_0x7d44ca&&this[_0xe6f8ea(0x14f)]?.[_0xe6f8ea(0x295)]==_0x57dedd)return;this[_0xe6f8ea(0x14f)]={'replyId':_0x7d44ca,'partIndex':_0x57dedd};const _0xec23a2=new _0x49331d(_0x305165[_0xe6f8ea(0x234)],{'showDiff':this[_0xe6f8ea(0x18f)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0xe6f8ea(0x193)},'hideHeader':!0x0}),{reply:_0x5259e6}=this[_0xe6f8ea(0x1d0)](_0x7d44ca),_0x4c249d=_0x2d7cdf({'editor':_0x305165,'changeGroups':[_0x5259e6[_0xe6f8ea(0x275)][_0x57dedd]],'documentContextContent':_0x5259e6[_0xe6f8ea(0x18b)],'showDiff':this[_0xe6f8ea(0x18f)]});_0xec23a2[_0xe6f8ea(0x1fd)]({'parts':_0x4c249d,'renderingStrategy':_0xe6f8ea(0x1cf)});const _0x969617=_0x57dedd!==_0x4b1b1a;this[_0xe6f8ea(0x203)](_0x4c3400,!0x0),_0x307f2f[_0xe6f8ea(0x272)]({'index':_0x57dedd,'title':_0xe6f8ea(0x239)+(_0x57dedd+0x1),'icon':_0x32d524,'mainView':_0xec23a2,'showRotator':_0x969617,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4c3400]}),this[_0xe6f8ea(0x212)][_0xe6f8ea(0x230)](_0x7d44ca,_0x57dedd),this[_0xe6f8ea(0x228)](_0xec23a2,_0xe6f8ea(0x207),(_0x41a08b,{showDiff:_0x28ea3f})=>{const _0x458fb6=_0xe6f8ea;this[_0x458fb6(0x18f)]=_0x28ea3f;const {reply:_0x30d9d4}=this[_0x458fb6(0x1d0)](_0x7d44ca),_0x3fa95d=_0x2d7cdf({'editor':_0x305165,'changeGroups':[_0x30d9d4[_0x458fb6(0x275)][_0x57dedd]],'documentContextContent':_0x30d9d4[_0x458fb6(0x18b)],'showDiff':_0x28ea3f});_0xec23a2[_0x458fb6(0x1fd)]({'parts':_0x3fa95d,'renderingStrategy':_0x458fb6(0x1cf)});}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x183),()=>{const _0x49b45a=_0xe6f8ea;this[_0x49b45a(0x26c)]({'replyId':_0x7d44ca,'partIndex':_0x57dedd}),_0x969617?this[_0x49b45a(0x271)](_0x7d44ca,_0x46b481):_0x307f2f[_0x49b45a(0x160)]();}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x165),()=>{const _0xe3265c=_0xe6f8ea;this[_0xe3265c(0x263)]({'replyId':_0x7d44ca,'partIndex':_0x57dedd}),_0x969617?this[_0xe3265c(0x271)](_0x7d44ca,_0x46b481):_0x307f2f[_0xe3265c(0x160)]();}),_0x969617&&(this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x258),()=>{const _0x3e6ca8=_0xe6f8ea;this[_0x3e6ca8(0x271)](_0x7d44ca,_0x46b481);}),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x26a),()=>{const _0x1ec62b=_0xe6f8ea;this[_0x1ec62b(0x271)](_0x7d44ca,_0x4b1b1a);})),this[_0xe6f8ea(0x228)](_0x307f2f,_0xe6f8ea(0x1ab),()=>{const _0x1b2646=_0xe6f8ea;this[_0x1b2646(0x1be)](_0x307f2f),this[_0x1b2646(0x1be)](_0xec23a2),this[_0x1b2646(0x14f)]=null;});}[_0x146c6f(0x279)](_0x356f44,_0x39c11f){const _0x2ac9d1=_0x146c6f,_0x57a4b0=_0x4fb5fe(this[_0x2ac9d1(0x249)]),{reply:_0x1d614b,interaction:_0x362b0a}=this[_0x2ac9d1(0x1d0)](_0x356f44),_0x2a2c95=_0x1d614b[_0x2ac9d1(0x275)][_0x2ac9d1(0x17e)](_0x2b1c7d=>_0x2ac9d1(0x1e6)==_0x2b1c7d[_0x2ac9d1(0x22f)]),_0x388fdf=_0x2a2c95[_0x2ac9d1(0x286)](_0x1c7e0a=>_0x1d614b[_0x2ac9d1(0x275)][_0x2ac9d1(0x24c)](_0x1c7e0a));void 0x0===_0x39c11f&&(_0x39c11f=_0x388fdf[0x0]);const _0x568081=_0x388fdf[_0x2ac9d1(0x24c)](_0x39c11f);if(-0x1==_0x568081)return null;const _0x2a806f=0x0==_0x568081?_0x388fdf[_0x388fdf[_0x2ac9d1(0x1c7)]-0x1]:_0x388fdf[_0x568081-0x1],_0x289d89=_0x568081==_0x388fdf[_0x2ac9d1(0x1c7)]-0x1?_0x388fdf[0x0]:_0x388fdf[_0x568081+0x1],_0xc8a77d=_0x2a2c95[_0x568081],_0x3c0d9a=new _0x21c873([]),_0x188f55=new _0x21c873([]);for(const _0x3ab85c of _0xc8a77d[_0x2ac9d1(0x1ad)])if(_0x2ac9d1(0x1f3)!=_0x3ab85c[_0x2ac9d1(0x1bd)]&&_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3ab85c[_0x2ac9d1(0x22b)][_0x2ac9d1(0x164)](!0x0)),_0x2ac9d1(0x1fc)!=_0x3ab85c[_0x2ac9d1(0x1bd)]){const _0x36c37c=_0x586b98(_0x5c5d6d=>_0x20f1b1(_0x5c5d6d,_0x2ac9d1(0x1db))==_0x3ab85c['id'],_0x1d614b[_0x2ac9d1(0x18b)],!0x0);_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x36c37c[_0x2ac9d1(0x164)](!0x0));}if(0x0==_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1c7)]){if(_0xc8a77d[_0x2ac9d1(0x1ad)][0x0][_0x2ac9d1(0x1a3)]){const _0x4c68a5=_0x9810c1(_0x2ac9d1(0x1db),_0xc8a77d[_0x2ac9d1(0x1ad)][0x0][_0x2ac9d1(0x1a3)],_0x1d614b[_0x2ac9d1(0x18b)]);_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1bf)](_0x4c68a5[_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x1bf)](_0x4c68a5[_0x2ac9d1(0x164)](!0x0)),_0x4c68a5[_0x2ac9d1(0x1dd)]&&(_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x4c68a5[_0x2ac9d1(0x1dd)][_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x4c68a5[_0x2ac9d1(0x1dd)][_0x2ac9d1(0x164)](!0x0)));}else{const _0x3eb5a3=_0x1d614b[_0x2ac9d1(0x18b)][_0x2ac9d1(0x28e)][0x0];if(!_0x3eb5a3)return null;_0x3c0d9a[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3eb5a3[_0x2ac9d1(0x164)](!0x0)),_0x188f55[_0x2ac9d1(0x28e)][_0x2ac9d1(0x151)](_0x3eb5a3[_0x2ac9d1(0x164)](!0x0));}}const _0x1a3c0b=_0x362b0a[_0x2ac9d1(0x266)](),_0x3eb98b=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x1a3c0b[_0x2ac9d1(0x189)]),_0x315d9b=_0x2270eb(_0x3c0d9a),_0x4127d3=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x315d9b),_0x4a67e8=_0x57a4b0[_0x2ac9d1(0x1a1)][_0x2ac9d1(0x23d)](_0x315d9b),_0x5c3991=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x16c)](_0x4127d3,0x0),_0xb4b405=_0x2270eb(_0x188f55),_0x36c1b2={'anchor':_0x5c3991,'markDeletions':!0x1},_0x1aa5d8=_0x57a4b0[_0x2ac9d1(0x1a6)][_0x2ac9d1(0x157)](_0x3b0268)[_0x2ac9d1(0x205)](_0x315d9b,_0xb4b405,_0x36c1b2)[_0x2ac9d1(0x18d)]();if(!_0x1aa5d8[_0x2ac9d1(0x1c7)])return null;_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x209)](_0x585d25=>{const _0x5c1e4b=_0x2ac9d1;for(const _0x3f340a of _0x1aa5d8)if(_0x5c1e4b(0x163)==_0x3f340a[_0x5c1e4b(0x1bd)]){const _0x53a84c=_0x3f340a[_0x5c1e4b(0x1fa)],_0x3c0014=_0x3f340a[_0x5c1e4b(0x1ff)],_0x44140c=new _0x51a3f(_0x53a84c,_0x3c0014);_0x585d25[_0x5c1e4b(0x244)][_0x5c1e4b(0x18e)](_0x44140c),_0x57a4b0[_0x5c1e4b(0x201)][_0x5c1e4b(0x232)](_0x44140c);}else _0x3f340a[_0x5c1e4b(0x1ef)]=null,_0x3f340a[_0x5c1e4b(0x16e)]=!0x1,_0x585d25[_0x5c1e4b(0x244)][_0x5c1e4b(0x18e)](_0x3f340a),_0x57a4b0[_0x5c1e4b(0x201)][_0x5c1e4b(0x232)](_0x3f340a);});const _0x55fca0=_0x4b622b(_0x57a4b0,_0x1aa5d8,_0x4127d3);_0x51a626(_0x57a4b0[_0x2ac9d1(0x201)],_0x55fca0);const _0x57aa61=_0x55fca0[_0x2ac9d1(0x206)]()[_0x2ac9d1(0x182)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x3e4c7a=_0x55fca0[_0x2ac9d1(0x206)]()[_0x2ac9d1(0x214)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x101be1=[];let _0x2a84f0=_0x4127d3,_0x1a5cfb=_0x4a67e8;for(let _0x2456b3=0x0;_0x2456b3<_0x3e4c7a[_0x2ac9d1(0x1c7)];_0x2456b3++){const _0x50c47d=_0x2a84f0[_0x2ac9d1(0x21a)]-_0x3e4c7a[_0x2456b3];_0x101be1[_0x2456b3]=_0x1a5cfb[_0x2ac9d1(0x21a)]-_0x50c47d,_0x2a84f0=_0x2a84f0[_0x2ac9d1(0x220)](_0x3e4c7a[_0x2456b3]),_0x1a5cfb=_0x1a5cfb[_0x2ac9d1(0x220)](_0x101be1[_0x2456b3]);}const _0x5bad7d=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x148)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x4a67e8,_0x57aa61),_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x4a67e8,_0x101be1)),_0x193fb6=_0x4a67e8[_0x2ac9d1(0x196)](0x0)[_0x2ac9d1(0x1f1)](_0x49a695),_0x2660ea=Array[_0x2ac9d1(0x28d)](_0x3eb98b[_0x2ac9d1(0x1e8)]())[_0x2ac9d1(0x176)](_0x398d02=>_0x398d02[_0x2ac9d1(0x1f1)](_0x49a695)==_0x193fb6)[_0x2ac9d1(0x27a)](),_0x294cae=_0x5bad7d[_0x2ac9d1(0x182)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)](),_0x3802b0=_0x5bad7d[_0x2ac9d1(0x214)][_0x2ac9d1(0x15f)][_0x2ac9d1(0x1c6)]();_0x294cae[0x0]=_0x2660ea[0x0]+_0x294cae[0x0],_0x3802b0[0x0]=_0x2660ea[0x0]+_0x3802b0[0x0];let _0x2af162=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x148)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x197)](),_0x294cae),_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1c9)](_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x197)](),_0x3802b0));const _0x2713ba=_0x57a4b0[_0x2ac9d1(0x201)][_0x2ac9d1(0x1f9)][_0x2ac9d1(0x15d)][_0x2ac9d1(0x18d)](_0x1a3c0b[_0x2ac9d1(0x1a7)]);for(const _0x3f60d5 of _0x2713ba)_0x2af162=_0x148a01[_0x2ac9d1(0x1d1)](_0x2af162[_0x2ac9d1(0x215)](_0x3f60d5));return{'range':_0x2af162,'previousIndex':_0x2a806f,'nextIndex':_0x289d89,'currentIndex':_0x39c11f};}[_0x146c6f(0x19c)](_0x5e2143){const _0x40efba=_0x146c6f;if(!_0x5e2143[_0x40efba(0x1a6)][_0x40efba(0x1af)](_0x40efba(0x17d)))return;const _0x23fc70=_0x5e2143[_0x40efba(0x253)][_0x40efba(0x157)](_0x40efba(0x251)),_0x3f90f0=_0x5e2143[_0x40efba(0x253)][_0x40efba(0x157)](_0x40efba(0x281));this[_0x40efba(0x228)](_0x23fc70,_0x40efba(0x200),(_0x3a6506,_0x310ea3,_0x574b0e)=>{const _0x2c727a=_0x40efba,_0x4f92ae=this[_0x2c727a(0x1eb)][_0x2c727a(0x157)](_0x310ea3);if(!_0x4f92ae)return;const _0x10d03b=this[_0x2c727a(0x242)][_0x2c727a(0x23e)](_0x4f92ae[_0x2c727a(0x15b)])[_0x2c727a(0x265)](_0x4f92ae[_0x2c727a(0x27d)]);_0x4f92ae[_0x2c727a(0x1a9)][_0x2c727a(0x1d3)](_0x22c8bd=>_0x10d03b[_0x2c727a(0x1c8)](_0x22c8bd,_0x2c727a(0x1e6))),this[_0x2c727a(0x1eb)][_0x2c727a(0x14c)](_0x310ea3),this[_0x2c727a(0x1eb)][_0x2c727a(0x282)](_0x574b0e,_0x4f92ae);}),this[_0x40efba(0x228)](_0x3f90f0,_0x40efba(0x200),(_0x239537,_0x1cc49c,_0x2a30ba)=>{const _0x5981cc=_0x40efba,_0x3e1d0f=this[_0x5981cc(0x1eb)][_0x5981cc(0x157)](_0x1cc49c);if(!_0x3e1d0f)return;const _0xed55a9=this[_0x5981cc(0x242)][_0x5981cc(0x23e)](_0x3e1d0f[_0x5981cc(0x15b)])[_0x5981cc(0x265)](_0x3e1d0f[_0x5981cc(0x27d)]);_0x3e1d0f[_0x5981cc(0x1a9)][_0x5981cc(0x1d3)](_0x1434c7=>_0xed55a9[_0x5981cc(0x1c8)](_0x1434c7,_0x5981cc(0x15e))),this[_0x5981cc(0x1eb)][_0x5981cc(0x14c)](_0x1cc49c),this[_0x5981cc(0x1eb)][_0x5981cc(0x282)](_0x2a30ba,_0x3e1d0f);});}async[_0x146c6f(0x221)](_0x104ed5){const _0xb8c27f=_0x146c6f;this[_0xb8c27f(0x249)][_0xb8c27f(0x1a6)][_0xb8c27f(0x157)](_0x48863f)[_0xb8c27f(0x160)](),this[_0xb8c27f(0x212)][_0xb8c27f(0x260)](_0xb8c27f(0x1cf)),this[_0xb8c27f(0x212)][_0xb8c27f(0x21c)](!0x0),await this[_0xb8c27f(0x172)]();try{const _0x466c5e=this[_0xb8c27f(0x249)][_0xb8c27f(0x1a6)][_0xb8c27f(0x157)](_0x56d072);this[_0xb8c27f(0x16d)]('\x20'),_0x466c5e[_0xb8c27f(0x1b1)][_0xb8c27f(0x25d)](_0xb8c27f(0x291)),await this[_0xb8c27f(0x14a)](_0x104ed5);const {sessionId:_0x5535e4}=this[_0xb8c27f(0x213)][_0xb8c27f(0x195)]();await this[_0xb8c27f(0x242)][_0xb8c27f(0x177)](_0x104ed5,_0x5535e4),this[_0xb8c27f(0x242)][_0xb8c27f(0x20c)]()&&this[_0xb8c27f(0x242)][_0xb8c27f(0x169)](_0x24c83d(this[_0xb8c27f(0x249)][_0xb8c27f(0x234)],_0xb8c27f(0x175)));}catch(_0xb118b){console[_0xb8c27f(0x1f2)](_0xb8c27f(0x22c),_0xb118b);}finally{this[_0xb8c27f(0x212)][_0xb8c27f(0x260)](_0xb8c27f(0x204)),this[_0xb8c27f(0x212)][_0xb8c27f(0x21c)](!0x1);}}[_0x146c6f(0x1e1)](_0x1e891e){const _0x348aee=_0x146c6f;this[_0x348aee(0x242)]['id']===_0x1e891e&&this[_0x348aee(0x14a)]();}async[_0x146c6f(0x277)](){const _0x131946=_0x146c6f,_0x2908c3=this[_0x131946(0x213)][_0x131946(0x292)]();this[_0x131946(0x242)]?.[_0x131946(0x290)](_0x2908c3),this[_0x131946(0x242)]?.[_0x131946(0x169)](_0x24c83d(this[_0x131946(0x249)][_0x131946(0x234)],_0x131946(0x175)));}[_0x146c6f(0x24d)](){const _0x16d086=_0x146c6f;this[_0x16d086(0x242)]?.[_0x16d086(0x276)]();}[_0x146c6f(0x1b0)](){const _0x867953=_0x146c6f;this[_0x867953(0x212)][_0x867953(0x1b0)]();}async[_0x146c6f(0x16b)](){const _0x21fc3d=_0x146c6f;await this[_0x21fc3d(0x14a)]();}async[_0x146c6f(0x1f8)]({message:_0x5ec96a,quickActionData:_0x6f9d79}){const _0x17e077=_0x146c6f;await this[_0x17e077(0x211)]({'userMessage':_0x5ec96a,'quickActionData':_0x6f9d79});}[_0x146c6f(0x294)](){const _0x4e419c=_0x146c6f,_0xc2d882=this[_0x4e419c(0x249)][_0x4e419c(0x1e0)][_0x4e419c(0x157)](_0x4e419c(0x1ed));if(!_0xc2d882)throw new _0x3c810f(_0x4e419c(0x187),this);return _0xc2d882;}async[_0x146c6f(0x14a)](_0x3fa82f){const _0x923a87=_0x146c6f,_0x4d9874=this[_0x923a87(0x249)][_0x923a87(0x1a6)][_0x923a87(0x157)](_0x48863f);let _0x38e0d5;_0x4d9874[_0x923a87(0x18c)]&&_0x4d9874[_0x923a87(0x160)](),_0x38e0d5=_0x3fa82f||!this[_0x923a87(0x242)]?this[_0x923a87(0x249)][_0x923a87(0x1e0)][_0x923a87(0x157)](_0x923a87(0x1a5)):this[_0x923a87(0x242)][_0x923a87(0x145)]['id'],await this[_0x923a87(0x172)]();const _0x36cb66=this[_0x923a87(0x294)](),_0x51fd33=_0x3fa82f||_0x1bad92();this[_0x923a87(0x242)]=new _0x23da83({'connector':this[_0x923a87(0x19e)],'chatModels':this[_0x923a87(0x24b)],'defaultModelId':_0x38e0d5,'conversationId':_0x51fd33,'group':_0x36cb66,'getEditor':()=>_0x4fb5fe(this[_0x923a87(0x249)])}),this[_0x923a87(0x242)]['on'](_0x923a87(0x285),(_0xc8321b,_0x634ced)=>{const _0x1be2be=_0x923a87;_0x634ced[_0x1be2be(0x26d)]=this[_0x1be2be(0x28b)](_0x634ced[_0x1be2be(0x26d)],this[_0x1be2be(0x249)][_0x1be2be(0x1e0)][_0x1be2be(0x157)](_0x1be2be(0x156))),this[_0x1be2be(0x212)][_0x1be2be(0x19f)](_0x634ced),this[_0x1be2be(0x212)][_0x1be2be(0x1ce)](),this[_0x1be2be(0x212)][_0x1be2be(0x21f)](),this[_0x1be2be(0x212)][_0x1be2be(0x27e)](),_0x3fa82f||(this[_0x1be2be(0x212)][_0x1be2be(0x1a0)](),this[_0x1be2be(0x242)]?.[_0x1be2be(0x169)](_0x24c83d(this[_0x1be2be(0x249)][_0x1be2be(0x234)],_0x1be2be(0x175))));}),this[_0x923a87(0x242)]['on'](_0x923a87(0x278),(_0x3118da,_0xd04ef9)=>{const _0x2fd259=_0x923a87;this[_0x2fd259(0x212)][_0x2fd259(0x252)](_0xd04ef9[_0x2fd259(0x162)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1ac),(_0x4faf6b,_0x2dfe63)=>{const _0x1d778f=_0x923a87;this[_0x1d778f(0x212)][_0x1d778f(0x1dc)](_0x2dfe63),this[_0x1d778f(0x212)][_0x1d778f(0x1b5)](_0x2dfe63);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x161),(_0x1612e2,_0x332c97)=>{const _0x40b6a4=_0x923a87;this[_0x40b6a4(0x212)][_0x40b6a4(0x1f5)](_0x332c97);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x20b),async()=>{const _0x5f285e=_0x923a87;await this[_0x5f285e(0x212)][_0x5f285e(0x198)]();}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f7),(_0x512891,_0x2f6f40)=>{const _0x527da7=_0x923a87;this[_0x527da7(0x212)][_0x527da7(0x1c4)](_0x2f6f40['id']);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x255),(_0x5344ef,_0x30719a,_0xe20752)=>{const _0x25c9c6=_0x923a87;this[_0x25c9c6(0x16d)](_0x30719a,_0xe20752);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x208),(_0x1929e0,_0x31c79c)=>{const _0x188038=_0x923a87;this[_0x188038(0x212)][_0x188038(0x25e)]({'isVisible':!0x0,'id':_0x31c79c[_0x188038(0x15b)]}),_0x188038(0x14e)===_0x31c79c[_0x188038(0x1bd)]?this[_0x188038(0x212)][_0x188038(0x216)](_0x31c79c):this[_0x188038(0x212)][_0x188038(0x238)](_0x31c79c);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1ee),async(_0x5c9dfe,_0x27c7d9,_0x32805)=>{const _0x5bcb37=_0x923a87;await this[_0x5bcb37(0x264)]({'reply':_0x27c7d9,'changeGroups':_0x32805});}),this[_0x923a87(0x242)]['on'](_0x923a87(0x293),(_0x173bcf,{reply:_0x5f4006,index:_0x349a74,state:_0x26d07c})=>{const _0x657cfa=_0x923a87;this[_0x657cfa(0x212)][_0x657cfa(0x171)]({'id':_0x5f4006['id'],'index':_0x349a74,'state':_0x26d07c});}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1a8),(_0x55f59c,_0x2ecce4)=>{const _0x2a59c1=_0x923a87;if(this[_0x2a59c1(0x212)][_0x2a59c1(0x16a)](_0x2ecce4[_0x2a59c1(0x28f)],_0x2ecce4[_0x2a59c1(0x1b7)]),_0x2a59c1(0x247)===_0x2ecce4[_0x2a59c1(0x28f)][_0x2a59c1(0x1bd)]){const _0x446327=[..._0x4fb5fe(this[_0x2a59c1(0x249)])[_0x2a59c1(0x201)][_0x2a59c1(0x1f9)][_0x2a59c1(0x247)][_0x2a59c1(0x17b)]()];this[_0x2a59c1(0x213)][_0x2a59c1(0x250)](_0x446327,_0x2a59c1(0x179)+this[_0x2a59c1(0x242)]?.['id']);}}),this[_0x923a87(0x242)]['on'](_0x923a87(0x17c),(_0x136528,_0x5ee0be)=>{const _0x125d5a=_0x923a87;this[_0x125d5a(0x212)][_0x125d5a(0x152)](_0x5ee0be[_0x125d5a(0x231)]),_0x125d5a(0x26e)==_0x5ee0be[_0x125d5a(0x231)]&&this[_0x125d5a(0x24d)](),_0x125d5a(0x247)===_0x5ee0be[_0x125d5a(0x1bd)]&&this[_0x125d5a(0x213)][_0x125d5a(0x20f)](_0x125d5a(0x179)+this[_0x125d5a(0x242)]?.['id']);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x241),(_0x354fb0,_0x298821)=>{const _0xe91c87=_0x923a87;this[_0xe91c87(0x212)][_0xe91c87(0x191)](_0x298821[_0xe91c87(0x28f)][_0xe91c87(0x231)],_0x298821[_0xe91c87(0x1b7)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x146),(_0xda7dd,_0x2e9be6)=>{const _0x39db42=_0x923a87;this[_0x39db42(0x212)][_0x39db42(0x14d)](_0x2e9be6[_0x39db42(0x20e)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x235),(_0x3c47cb,_0xca6007)=>{const _0x7d4569=_0x923a87;this[_0x7d4569(0x212)][_0x7d4569(0x22a)](_0xca6007[_0x7d4569(0x21e)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x194),(_0x57df87,_0x354570)=>{const _0x58d379=_0x923a87;this[_0x58d379(0x212)][_0x58d379(0x274)](_0x354570[_0x58d379(0x225)],_0x354570[_0x58d379(0x185)],_0x354570[_0x58d379(0x158)],_0x354570[_0x58d379(0x155)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x159),(_0x5b4cff,_0x543766)=>{const _0x3dac28=_0x923a87;this[_0x3dac28(0x212)][_0x3dac28(0x20d)](_0x543766[_0x3dac28(0x225)],_0x543766[_0x3dac28(0x25b)],_0x543766[_0x3dac28(0x170)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f0),(_0xfd185f,_0x4d221b)=>{const _0x23a80a=_0x923a87;this[_0x23a80a(0x212)][_0x23a80a(0x240)](_0x4d221b);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x270),(_0x25970b,_0x2ad7a1)=>{const _0x5aacef=_0x923a87;this[_0x5aacef(0x212)][_0x5aacef(0x23a)](_0x2ad7a1[_0x5aacef(0x145)],_0x2ad7a1[_0x5aacef(0x1c5)]);}),this[_0x923a87(0x242)]['on'](_0x923a87(0x1f2),(_0xc29d81,{error:_0x459e62,interactionId:_0x154949,fileName:_0x78bb60,url:_0x3497ac,sourceId:_0x2f1c00,sourceLabel:_0x436fa6})=>{const _0x3292e9=_0x923a87,_0x4b28ef=_0x154949?_0x154949+':'+_0x1bad92():_0x1bad92();_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x19d))?this[_0x3292e9(0x212)][_0x3292e9(0x273)]({'staticMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1da)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x22e))||_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x27f))?(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x178)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x1cb))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1d7),_0x78bb60),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x153))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x24e),_0x3497ac),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x202))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x237)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x27b))?this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x289)),'id':_0x4b28ef}):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x180))?(_0x2f1c00&&this[_0x3292e9(0x212)][_0x3292e9(0x147)](_0x2f1c00),this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x24a),_0x436fa6||_0x3292e9(0x185)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):_0x459e62[_0x3292e9(0x284)][_0x3292e9(0x1d5)](_0x3292e9(0x199))?(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x188)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62)):(this[_0x3292e9(0x212)][_0x3292e9(0x14b)]({'errorMessage':_0x24c83d(this[_0x3292e9(0x249)][_0x3292e9(0x234)],_0x3292e9(0x1b2)),'id':_0x4b28ef}),this[_0x3292e9(0x267)](_0x459e62));}),await this[_0x923a87(0x242)][_0x923a87(0x173)](this[_0x923a87(0x249)][_0x923a87(0x1e0)][_0x923a87(0x157)](_0x923a87(0x288))),_0x3fa82f||await this[_0x923a87(0x242)][_0x923a87(0x182)]();}async[_0x146c6f(0x211)]({userMessage:_0x4e29e8,quickActionData:_0x20eeeb}){const _0x5465c3=_0x146c6f;if(!this[_0x5465c3(0x242)])throw new _0x3c810f(_0x5465c3(0x19b));this[_0x5465c3(0x242)][_0x5465c3(0x236)]()&&await this[_0x5465c3(0x242)][_0x5465c3(0x1e4)](this[_0x5465c3(0x213)][_0x5465c3(0x195)]()),this[_0x5465c3(0x242)]['id']&&this[_0x5465c3(0x242)][_0x5465c3(0x21d)]&&await this[_0x5465c3(0x242)][_0x5465c3(0x283)]({'userMessage':_0x4e29e8,'quickActionData':_0x20eeeb}),this[_0x5465c3(0x22d)]();}[_0x146c6f(0x22d)](){const _0x2c25af=_0x146c6f,_0x53e65b=_0x4fb5fe(this[_0x2c25af(0x249)])[_0x2c25af(0x201)],_0x576080=Array[_0x2c25af(0x28d)](_0x53e65b[_0x2c25af(0x262)][_0x2c25af(0x1e5)](_0x3f0bb6));_0x53e65b[_0x2c25af(0x209)](_0x3bfb35=>{const _0x210e32=_0x2c25af;_0x576080[_0x210e32(0x1d3)](_0x1274eb=>_0x3bfb35[_0x210e32(0x1ba)](_0x1274eb));});}[_0x146c6f(0x1ec)](){const _0x4c927e=_0x146c6f;console[_0x4c927e(0x174)](_0x4c927e(0x19a));}[_0x146c6f(0x1e2)](_0x3bae7a){const _0x286951=_0x146c6f;this[_0x286951(0x212)][_0x286951(0x256)](_0x3bae7a);}[_0x146c6f(0x267)](_0x19f254){const _0x171167=_0x146c6f;_0x2e819b(_0x19f254[_0x171167(0x284)]);}[_0x146c6f(0x27c)](_0xb20d4c){const _0x36d165=_0x146c6f;this[_0x36d165(0x242)]?.[_0x36d165(0x246)](_0xb20d4c);}[_0x146c6f(0x1e7)](){const _0x10e490=_0x146c6f;this[_0x10e490(0x242)]?.[_0x10e490(0x28a)]();}[_0x146c6f(0x218)](){const _0x2b1fa8=_0x146c6f;this[_0x2b1fa8(0x242)]?.[_0x2b1fa8(0x150)]();}[_0x146c6f(0x1d0)](_0xfadf9c){const _0x57b812=_0x146c6f,[_0x48355d,_0x5c7f19]=_0xfadf9c[_0x57b812(0x25c)](':'),_0x8bbdb7=this[_0x57b812(0x242)][_0x57b812(0x23e)](_0x48355d),_0x15a9af=_0x8bbdb7[_0x57b812(0x265)](_0x5c7f19);return{'interaction':_0x8bbdb7,'reply':_0x15a9af};}[_0x146c6f(0x203)](_0x22431f,_0x598575=!0x1){const _0x116560=_0x146c6f,_0x1c4388=_0x4fb5fe(this[_0x116560(0x249)]),_0xc59a27={'target':_0x1c4388[_0x116560(0x1b9)][_0x116560(0x1b1)][_0x116560(0x223)][_0x116560(0x1b4)](_0x1c4388[_0x116560(0x1b9)][_0x116560(0x1f6)][_0x116560(0x1df)](_0x22431f)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x598575};_0x598575&&(_0xc59a27[_0x116560(0x28c)]=!0x0),_0x39bad2(_0xc59a27);}[_0x146c6f(0x16d)](_0xc7dcf2,_0x141959=!0x1){const _0x2b99d9=_0x146c6f;this[_0x2b99d9(0x212)][_0x2b99d9(0x255)](_0xc7dcf2||_0x24c83d(this[_0x2b99d9(0x249)][_0x2b99d9(0x234)],_0x2b99d9(0x25a)),_0x141959);}[_0x146c6f(0x28b)](_0x3b8b02,_0x319db9){const _0x507a28=_0x146c6f;let _0x487c98;if(_0x319db9){_0x487c98=[];const _0x237b45=_0x507a28(0x20a)==typeof _0x319db9?[_0x319db9[_0x507a28(0x154)]()]:_0x319db9[_0x507a28(0x286)](_0x85b148=>_0x85b148[_0x507a28(0x154)]());for(const _0xb11d75 of _0x237b45)for(const _0x31c3aa of _0x3b8b02)(_0x31c3aa['id'][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa[_0x507a28(0x243)][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa[_0x507a28(0x1aa)][_0x507a28(0x154)]()===_0xb11d75||_0x31c3aa['id'][_0x507a28(0x154)]()[_0x507a28(0x1d5)](_0xb11d75))&&_0x487c98[_0x507a28(0x151)](_0x31c3aa);}else _0x487c98=_0x3b8b02;return _0x487c98;}async[_0x146c6f(0x264)]({reply:_0x188ff4,changeGroups:_0x1e2dde,renderingStrategy:_0x1659a4}){const _0x3433c7=_0x146c6f,{id:_0x14d339,isDone:_0x132a8b,type:_0x16df68,parsedContent:_0x15c067}=_0x188ff4;if(_0x3433c7(0x219)===_0x16df68){const _0x3f2f41=_0x4fb5fe(this[_0x3433c7(0x249)]),_0x28ab0c=_0x2d7cdf({'editor':_0x3f2f41,'showDiff':this[_0x3433c7(0x212)][_0x3433c7(0x280)],'changeGroups':_0x1e2dde,'documentContextContent':_0x188ff4[_0x3433c7(0x18b)]});await this[_0x3433c7(0x212)][_0x3433c7(0x1f4)]({'id':_0x14d339,'parts':_0x28ab0c,'renderingStrategy':_0x1659a4,'isDone':_0x132a8b});}else _0x3433c7(0x14e)===_0x16df68&&await this[_0x3433c7(0x212)][_0x3433c7(0x23b)]({'id':_0x14d339,'parsedContent':_0x15c067,'renderingStrategy':_0x1659a4,'isDone':_0x132a8b});_0x132a8b&&_0x188ff4[_0x3433c7(0x210)][_0x3433c7(0x1c7)]>0x0&&this[_0x3433c7(0x212)][_0x3433c7(0x1ca)](_0x14d339,_0x188ff4[_0x3433c7(0x210)]);}async[_0x146c6f(0x172)](){const _0x277de6=_0x146c6f,_0x1f65b9=this[_0x277de6(0x242)]?.[_0x277de6(0x1e9)];_0x1f65b9&&(_0x1f65b9[_0x277de6(0x217)](),this[_0x277de6(0x212)][_0x277de6(0x1fb)](_0x1f65b9));}async[_0x146c6f(0x1a2)](){const _0x2accd8=_0x146c6f,_0x4af824=this[_0x2accd8(0x242)]?.[_0x2accd8(0x1e9)];if(_0x4af824){for await(const _0x17112a of _0x4af824[_0x2accd8(0x23f)])await this[_0x2accd8(0x264)]({'reply':_0x17112a,'changeGroups':_0x17112a[_0x2accd8(0x275)],'renderingStrategy':_0x2accd8(0x1cf)});}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e2cad=_0x5a24;(function(_0x48e2b4,_0x46ddeb){const _0x4454b1=_0x5a24,_0x3839d0=_0x48e2b4();while(!![]){try{const _0x466705=parseInt(_0x4454b1(0xd9))/0x1*(parseInt(_0x4454b1(0x12c))/0x2)+-parseInt(_0x4454b1(0x127))/0x3*(parseInt(_0x4454b1(0x11c))/0x4)+parseInt(_0x4454b1(0xfa))/0x5*(parseInt(_0x4454b1(0x110))/0x6)+parseInt(_0x4454b1(0xc1))/0x7+parseInt(_0x4454b1(0x14b))/0x8*(-parseInt(_0x4454b1(0xe1))/0x9)+-parseInt(_0x4454b1(0x11f))/0xa*(-parseInt(_0x4454b1(0xea))/0xb)+-parseInt(_0x4454b1(0x105))/0xc*(parseInt(_0x4454b1(0xdf))/0xd);if(_0x466705===_0x46ddeb)break;else _0x3839d0['push'](_0x3839d0['shift']());}catch(_0x55e5cb){_0x3839d0['push'](_0x3839d0['shift']());}}}(_0x456d,0x37890));import{ContextPlugin as _0x268e9a}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x42297a}from'ckeditor5/src/utils.js';import{AIChatView as _0x3533f4}from'./ui/aichatview.js';import{AITabs as _0x381b07}from'../aitabs/aitabs.js';import{getTranslation as _0x1003f2}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x4c05c3}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x349a78}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x456d(){const _0x22f01e=['view','updateSuggestionPartState','values','toggleLoadingSkeleton','ai-reply','addFeedItemAIReply','chat','updateCapabilities','isMaximized','scrollToSuggestion','focusPromptInput','enqueue','resetMessageInput','1632876DczJEL','removeFeedInteraction','contextItems','disableModelSelector','context','isPremiumPlugin','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','updateFeedItemAIReplySources','setIsUploadInProgress','updateFeedItemAIReplySuggestionContent','isOfficialPlugin','AI_CHAT_WELCOME_MESSAGE','isPending','chatControls','forEach','enableModelSelector','chatHeader','startsWith','clearConversationContextUI','setLoadingMessage','areActionsDisabled','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','setConversationContext','finishInteraction','37yitzpq','setModelList','then','startAutoScroll','interaction-header','setConversationTitle','1963TvWdUP','updateReplyItem','3145401CNVeUx','addFeedItemError','setContextItemLoading','toggleSuggestionDisplayMode','AITabs','setAddContextOptions','userMessage','_animateConversationTitle','addFeedItemAISuggestion','1266089lZGodS','_interactionPromiseResolver','conversation-start','setFeedItemRenderingStrategy','ai.chat.models.modelSelectorAlwaysVisible','removeItem','isWebSearchEnabled','stopInteraction','availableModels','setModel','streaming','updateFeedItemAIReplySuggestionPartState','isLoading','updateSuggestionItem','setSelectedModel','bind','45145Bqiktq','setReasoning','closeSourceResourceBalloon','setIsMaximized','isReasoningEnabled','scrollFeedToSuggestion','feedItemRenderingStrategy','user-message','stopAutoScroll','_titleAnimationInterval','AIChatUI','22404DZZZfk','updateFeedItemAIReplyContent','populateSourceResourceBalloon','updateWebSources','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','addFeedInteractionHeader','set','addTab','_promiseQueue','startInteraction','_getLoadingMessage','282HoGKwu','locale','markFeedItemAsDone','updateResourceState','config','removeContextItem','ai-suggestion-reply','addContextItem','destroy','setWebSearch','_view','markItemAsDone','4GXZJyi','setInputPlaceholder','plugins','30WvvICB','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isDone','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','options','addFeedItemUserMessage','from','clear','434703sDfawO','_getInputPlaceholder','isBusy','showResizeButton','pluginName','46INHPmy','quickActionData','createConversation','abort','renderingStrategy','delegate','addItem','clearPendingContextUI','get','capabilities','children','showDiff','filter','getItemIds','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','</p>','resetConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','requires','displayedPrompt','chatFeed','<p>','find','queueEmptyPromise','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','error-message','updateFeedInteractionHeader','addFeedItemStaticMessage','label','isVisible','AI_CHAT_HEADING','8NkdQPK','length','interactionId'];_0x456d=function(){return _0x22f01e;};return _0x456d();}function _0x5a24(_0x492b45,_0x4cd253){const _0x456d91=_0x456d();return _0x5a24=function(_0x5a2442,_0x591485){_0x5a2442=_0x5a2442-0xc0;let _0x71bb46=_0x456d91[_0x5a2442];return _0x71bb46;},_0x5a24(_0x492b45,_0x4cd253);}import{PromiseQueue as _0x433fc6}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x5435c2}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x268e9a{static get[_0x5e2cad(0x13e)](){return[_0x381b07];}[_0x5e2cad(0x11a)];static get[_0x5e2cad(0x12b)](){const _0x21b126=_0x5e2cad;return _0x21b126(0x104);}static get[_0x5e2cad(0xcb)](){return!0x0;}static get[_0x5e2cad(0xc6)](){return!0x0;}[_0x5e2cad(0x100)]=_0x5e2cad(0xf4);[_0x5e2cad(0x137)]=!0x0;[_0x5e2cad(0x10d)];[_0x5e2cad(0xeb)];[_0x5e2cad(0x103)]=void 0x0;constructor(_0xed8ea5){const _0x3cff97=_0x5e2cad;super(_0xed8ea5);const _0x30e4a9=this[_0x3cff97(0xc5)][_0x3cff97(0x11e)][_0x3cff97(0x134)](_0x3cff97(0xe5));this[_0x3cff97(0x10b)](_0x3cff97(0x129),!0x1),this[_0x3cff97(0x10d)]=new _0x433fc6(),this[_0x3cff97(0x11a)]=new _0x3533f4(this[_0x3cff97(0xc5)][_0x3cff97(0x111)],_0x30e4a9[_0x3cff97(0x12a)]),this[_0x3cff97(0x11a)][_0x3cff97(0x131)](..._0x5435c2)['to'](this),this[_0x3cff97(0x11a)]['on'](_0x3cff97(0xe4),(_0x10486d,{showDiff:_0x530db0})=>{const _0x128f22=_0x3cff97;this[_0x128f22(0x137)]=_0x530db0;}),_0x30e4a9[_0x3cff97(0x14e)][_0x3cff97(0x10c)]({'id':_0x3cff97(0x154),'buttonLabel':_0x1003f2(this[_0x3cff97(0xc5)][_0x3cff97(0x111)],_0x3cff97(0x14a)),'buttonIcon':_0x4c05c3,'order':0x0,'content':this[_0x3cff97(0x11a)]}),this[_0x3cff97(0x11a)][_0x3cff97(0xce)][_0x3cff97(0xf9)](_0x3cff97(0xf6))['to'](this,_0x3cff97(0x129),_0x2d7152=>_0x2d7152),this[_0x3cff97(0x11a)][_0x3cff97(0x140)][_0x3cff97(0xf9)](_0x3cff97(0xcd))['to'](this,_0x3cff97(0x129),_0x518283=>_0x518283),this[_0x3cff97(0x11a)][_0x3cff97(0xce)][_0x3cff97(0x11d)](this[_0x3cff97(0x128)]());}[_0x5e2cad(0x118)](){const _0x469c2f=_0x5e2cad;super[_0x469c2f(0x118)](),this[_0x469c2f(0x103)]&&clearInterval(this[_0x469c2f(0x103)]);}[_0x5e2cad(0x12e)](_0x142589){const _0x3baf05=_0x5e2cad;this[_0x3baf05(0x11a)][_0x3baf05(0x140)][_0x3baf05(0x126)](),this[_0x3baf05(0x11a)][_0x3baf05(0xce)][_0x3baf05(0xd0)](),this[_0x3baf05(0x11a)][_0x3baf05(0xce)][_0x3baf05(0xda)](_0x142589[_0x3baf05(0xf2)],!this[_0x3baf05(0xc5)][_0x3baf05(0x114)][_0x3baf05(0x134)](_0x3baf05(0xee))),this[_0x3baf05(0x147)]({'id':_0x3baf05(0xec),'staticMessage':_0x1003f2(this[_0x3baf05(0xc5)][_0x3baf05(0x111)],_0x3baf05(0xcc))});}[_0x5e2cad(0x147)]({id:_0x34dfcd,staticMessage:_0x54fb98}){const _0x2dc7f0=_0x5e2cad;this[_0x2dc7f0(0x11a)][_0x2dc7f0(0x140)][_0x2dc7f0(0x132)](_0x2dc7f0(0x152),{'id':_0x34dfcd,'initialContent':_0x2dc7f0(0x141)+_0x54fb98+_0x2dc7f0(0x13b)});}[_0x5e2cad(0x124)](_0x4aa19b){const _0x3c2df2=_0x5e2cad,_0x4ad13e=_0x4aa19b[_0x3c2df2(0x12d)]?.[_0x3c2df2(0x13f)]||_0x4aa19b[_0x3c2df2(0xe7)];this[_0x3c2df2(0x11a)][_0x3c2df2(0x140)][_0x3c2df2(0x132)](_0x3c2df2(0x101),{'contextItems':Array[_0x3c2df2(0x125)](_0x4aa19b[_0x3c2df2(0xc3)][_0x3c2df2(0x150)]()),'initialContent':_0x3c2df2(0x141)+_0x4ad13e+_0x3c2df2(0x13b),'id':_0x4aa19b['id']});}[_0x5e2cad(0xe2)]({errorMessage:_0x40c3ea,id:_0x2469bd}){const _0x445000=_0x5e2cad;this[_0x445000(0x11a)][_0x445000(0x140)][_0x445000(0x132)](_0x445000(0x145),{'initialContent':_0x445000(0x141)+_0x40c3ea+_0x445000(0x13b),'id':_0x2469bd});}[_0x5e2cad(0x153)](_0x2a2172){const _0x30a51d=_0x5e2cad;return this[_0x30a51d(0x10d)][_0x30a51d(0x159)](async()=>{const _0xe2a112=_0x30a51d;this[_0xe2a112(0x11a)][_0xe2a112(0x140)][_0xe2a112(0x132)](_0xe2a112(0x152),{'id':_0x2a2172[_0xe2a112(0x14d)]+':'+_0x2a2172['id']}),this[_0xe2a112(0x11a)][_0xe2a112(0x140)][_0xe2a112(0xd4)]('');});}async[_0x5e2cad(0xe9)](_0x35a72b){const _0x36fa45=_0x5e2cad;return this[_0x36fa45(0x10d)][_0x36fa45(0x159)](async()=>{const _0x11644f=_0x36fa45;this[_0x11644f(0x11a)][_0x11644f(0x140)][_0x11644f(0x132)](_0x11644f(0x116),{'id':_0x35a72b[_0x11644f(0x14d)]+':'+_0x35a72b['id'],'areActionsDisabled':_0x35a72b[_0x11644f(0xd5)],'showDiff':this[_0x11644f(0x137)]}),this[_0x11644f(0x11a)][_0x11644f(0x140)][_0x11644f(0xd4)]('');});}[_0x5e2cad(0x10a)](_0x479e7d){const _0x158396=_0x5e2cad;this[_0x158396(0x11a)][_0x158396(0x140)][_0x158396(0x132)](_0x158396(0xdd),{'id':_0x479e7d['id'],'capabilities':_0x479e7d[_0x158396(0x135)]});}[_0x5e2cad(0x146)](_0x10e895){const _0x540ad1=_0x5e2cad,_0x34cc13=this[_0x540ad1(0x11a)][_0x540ad1(0x140)][_0x540ad1(0x136)][_0x540ad1(0x142)](_0x229903=>_0x229903[_0x540ad1(0x123)]['id']==_0x10e895['id']&&_0x229903 instanceof _0x349a78);_0x34cc13&&_0x34cc13[_0x540ad1(0x10b)](_0x540ad1(0x149),_0x10e895[_0x540ad1(0x149)]);}async[_0x5e2cad(0x106)](_0x34e84c){const _0x347534=_0x5e2cad,_0x216946=_0x34e84c[_0x347534(0x130)]||this[_0x347534(0x100)];return this[_0x347534(0x10d)][_0x347534(0x159)](async _0x1bdd61=>{const _0x26a344=_0x347534;await this[_0x26a344(0x11a)][_0x26a344(0x140)][_0x26a344(0xe0)]({..._0x34e84c,'abortSignal':_0x1bdd61,'renderingStrategy':_0x216946}),_0x34e84c[_0x26a344(0x121)]&&this[_0x26a344(0x112)](_0x34e84c['id']);});}[_0x5e2cad(0xc8)](_0x2521ab,_0x3f479c){const _0x403f13=_0x5e2cad;this[_0x403f13(0x11a)][_0x403f13(0x140)][_0x403f13(0x108)](_0x2521ab,_0x3f479c);}async[_0x5e2cad(0xca)](_0x1017ef){const _0x38e353=_0x5e2cad,_0x25b63d=_0x1017ef[_0x38e353(0x130)]||this[_0x38e353(0x100)];return this[_0x38e353(0x10d)][_0x38e353(0x159)](async _0x229d1a=>{const _0x1c5c9e=_0x38e353;await this[_0x1c5c9e(0x11a)][_0x1c5c9e(0x140)][_0x1c5c9e(0xf7)]({..._0x1017ef,'abortSignal':_0x229d1a,'renderingStrategy':_0x25b63d}),_0x1017ef[_0x1c5c9e(0x121)]&&this[_0x1c5c9e(0x112)](_0x1017ef['id']);});}[_0x5e2cad(0xf5)](_0xad341b){const _0x450f01=_0x5e2cad;this[_0x450f01(0x11a)][_0x450f01(0x140)][_0x450f01(0x14f)](_0xad341b);}[_0x5e2cad(0x112)](_0x11a048){const _0x31c44c=_0x5e2cad;this[_0x31c44c(0x11a)][_0x31c44c(0x140)][_0x31c44c(0x11b)](_0x11a048);}[_0x5e2cad(0xc2)](_0x3ae07b){const _0x13ec22=_0x5e2cad;this[_0x13ec22(0x11a)][_0x13ec22(0x140)][_0x13ec22(0x139)]()[_0x13ec22(0x138)](_0x43907c=>_0x43907c[_0x13ec22(0xd2)](_0x3ae07b))[_0x13ec22(0xcf)](_0x2e04d1=>this[_0x13ec22(0x11a)][_0x13ec22(0x140)][_0x13ec22(0xef)](_0x2e04d1));}[_0x5e2cad(0x10e)](_0x3e7113){const _0x570be1=_0x5e2cad;this[_0x570be1(0x11a)][_0x570be1(0x140)][_0x570be1(0xd4)](this[_0x570be1(0x10f)](_0x3e7113)),this[_0x570be1(0x11a)][_0x570be1(0xce)][_0x570be1(0xc4)](!this[_0x570be1(0xc5)][_0x570be1(0x114)][_0x570be1(0x134)](_0x570be1(0xee))),this[_0x570be1(0x129)]=!0x0,this[_0x570be1(0x11a)][_0x570be1(0x140)][_0x570be1(0xdc)]();}[_0x5e2cad(0xf1)](_0x32b9c4){const _0x30552e=_0x5e2cad;this[_0x30552e(0x10d)][_0x30552e(0x12f)](),this[_0x30552e(0x11a)][_0x30552e(0x140)][_0x30552e(0x139)]()[_0x30552e(0x138)](_0x2d58c2=>_0x2d58c2[_0x30552e(0xd2)](_0x32b9c4['id']))[_0x30552e(0xcf)](_0x385dac=>this[_0x30552e(0x112)](_0x385dac)),this[_0x30552e(0x129)]=!0x1,this[_0x30552e(0x11a)][_0x30552e(0x140)][_0x30552e(0x102)]();}async[_0x5e2cad(0xd8)](){const _0x310cd0=_0x5e2cad;return this[_0x310cd0(0x10d)][_0x310cd0(0x143)][_0x310cd0(0xdb)](()=>{const _0x3ddf73=_0x310cd0;this[_0x3ddf73(0x129)]=!0x1,this[_0x3ddf73(0x11a)][_0x3ddf73(0x140)][_0x3ddf73(0x102)]();});}[_0x5e2cad(0x117)](_0x265667,_0x5bd5f9){const _0x11df30=_0x5e2cad;this[_0x11df30(0x11a)][_0x11df30(0xce)][_0x11df30(0x117)](_0x265667,_0x5bd5f9);}[_0x5e2cad(0x115)](_0x5bb947){const _0xe19348=_0x5e2cad;this[_0xe19348(0x11a)][_0xe19348(0xce)][_0xe19348(0x115)](_0x5bb947);}[_0x5e2cad(0xe3)](_0x477122,_0x2d111f){const _0x1dbd65=_0x5e2cad;this[_0x1dbd65(0x11a)][_0x1dbd65(0xce)][_0x1dbd65(0xe3)](_0x477122,_0x2d111f);}[_0x5e2cad(0xc9)](_0x4e9d4f){const _0x15b11e=_0x5e2cad;this[_0x15b11e(0x11a)][_0x15b11e(0xce)][_0x15b11e(0xc9)](_0x4e9d4f);}[_0x5e2cad(0xd7)](_0x32af8a){const _0x129ccc=_0x5e2cad;this[_0x129ccc(0x11a)][_0x129ccc(0xce)][_0x129ccc(0xd7)](_0x32af8a);}[_0x5e2cad(0x133)](){const _0x4cd1a1=_0x5e2cad;this[_0x4cd1a1(0x11a)][_0x4cd1a1(0xce)][_0x4cd1a1(0x133)]();}[_0x5e2cad(0xd3)](){const _0x55a73e=_0x5e2cad;this[_0x55a73e(0x11a)][_0x55a73e(0xce)][_0x55a73e(0xd3)]();}[_0x5e2cad(0x113)](_0x226746,_0x2839c8,_0x4a057f){const _0x274004=_0x5e2cad;this[_0x274004(0x11a)][_0x274004(0xce)][_0x274004(0x113)](_0x226746,_0x2839c8,_0x4a057f);}[_0x5e2cad(0xc0)](){const _0x2f3aef=_0x5e2cad;this[_0x2f3aef(0x11a)][_0x2f3aef(0xce)][_0x2f3aef(0xc0)](),this[_0x2f3aef(0x11a)][_0x2f3aef(0xce)][_0x2f3aef(0x11d)](this[_0x2f3aef(0x128)]());}[_0x5e2cad(0xe6)](_0x37d144){const _0x7fbeb7=_0x5e2cad;this[_0x7fbeb7(0x11a)][_0x7fbeb7(0xce)][_0x7fbeb7(0xe6)](_0x37d144);}[_0x5e2cad(0x155)](_0x3f0cb1){const _0x134b5a=_0x5e2cad;this[_0x134b5a(0x11a)][_0x134b5a(0xce)][_0x134b5a(0x119)](_0x3f0cb1[_0x134b5a(0xf0)]),this[_0x134b5a(0x11a)][_0x134b5a(0xce)][_0x134b5a(0xfb)](_0x3f0cb1[_0x134b5a(0xfe)]),this[_0x134b5a(0x11a)][_0x134b5a(0xce)][_0x134b5a(0x11d)](this[_0x134b5a(0x128)](_0x3f0cb1));}[_0x5e2cad(0xf8)](_0x1c1321,_0x341b79){const _0x25acf6=_0x5e2cad;this[_0x25acf6(0x11a)][_0x25acf6(0xce)][_0x25acf6(0xf3)](_0x1c1321),_0x341b79&&this[_0x25acf6(0x11a)][_0x25acf6(0xce)][_0x25acf6(0xc4)](!0x1);}[_0x5e2cad(0xed)](_0x198be5){const _0x146658=_0x5e2cad;this[_0x146658(0x100)]=_0x198be5;}[_0x5e2cad(0x151)](_0x4bfd2d){const _0x2cffd5=_0x5e2cad;this[_0x2cffd5(0x11a)][_0x2cffd5(0x140)][_0x2cffd5(0x151)](_0x4bfd2d);}[_0x5e2cad(0x13c)](){const _0x19a547=_0x5e2cad;this[_0x19a547(0xde)](_0x1003f2(this[_0x19a547(0xc5)][_0x19a547(0x111)],_0x19a547(0x14a)));}[_0x5e2cad(0xde)](_0x3e5699,_0x59ee5b=!0x1){const _0x18f4a7=_0x5e2cad;if(_0x59ee5b&&!_0x42297a()&&_0x3e5699[_0x18f4a7(0x14c)])return this[_0x18f4a7(0x11a)][_0x18f4a7(0xd1)][_0x18f4a7(0x148)]='',void this[_0x18f4a7(0xe8)](_0x3e5699);this[_0x18f4a7(0x11a)][_0x18f4a7(0xd1)][_0x18f4a7(0x148)]=_0x3e5699;}[_0x5e2cad(0xe8)](_0x2f844e){const _0x3887f9=_0x5e2cad;let _0x1f003f=0x0;clearInterval(this[_0x3887f9(0x103)]),this[_0x3887f9(0x103)]=setInterval(()=>{const _0x4a6700=_0x3887f9;this[_0x4a6700(0x11a)][_0x4a6700(0xd1)][_0x4a6700(0x148)]=this[_0x4a6700(0x11a)][_0x4a6700(0xd1)][_0x4a6700(0x148)]+_0x2f844e[_0x1f003f],_0x1f003f++,_0x1f003f===_0x2f844e[_0x4a6700(0x14c)]&&clearInterval(this[_0x4a6700(0x103)]);},0x1e);}[_0x5e2cad(0xfd)](_0x264401){const _0x25d913=_0x5e2cad;this[_0x25d913(0x11a)][_0x25d913(0xd1)][_0x25d913(0x156)]=_0x264401;}[_0x5e2cad(0x10f)](_0x44db45){const _0x1da12f=_0x5e2cad,_0x1b55e5=_0x44db45[_0x1da12f(0x135)];return _0x1b55e5[_0x1da12f(0xf0)]&&_0x1b55e5[_0x1da12f(0xfe)]?_0x1003f2(this[_0x1da12f(0xc5)][_0x1da12f(0x111)],_0x1da12f(0x13a)):_0x1b55e5[_0x1da12f(0xf0)]?_0x1003f2(this[_0x1da12f(0xc5)][_0x1da12f(0x111)],_0x1da12f(0x122)):_0x1b55e5[_0x1da12f(0xfe)]?_0x1003f2(this[_0x1da12f(0xc5)][_0x1da12f(0x111)],_0x1da12f(0x120)):_0x1003f2(this[_0x1da12f(0xc5)][_0x1da12f(0x111)],_0x1da12f(0x109));}[_0x5e2cad(0x128)](_0x3313b1){const _0x497f6a=_0x5e2cad;return _0x3313b1?_0x3313b1[_0x497f6a(0xf0)]&&_0x3313b1[_0x497f6a(0xfe)]?_0x1003f2(this[_0x497f6a(0xc5)][_0x497f6a(0x111)],_0x497f6a(0x144)):_0x3313b1[_0x497f6a(0xf0)]?_0x1003f2(this[_0x497f6a(0xc5)][_0x497f6a(0x111)],_0x497f6a(0xc7)):_0x3313b1[_0x497f6a(0xfe)]?_0x1003f2(this[_0x497f6a(0xc5)][_0x497f6a(0x111)],_0x497f6a(0x13d)):_0x1003f2(this[_0x497f6a(0xc5)][_0x497f6a(0x111)],_0x497f6a(0xd6)):_0x1003f2(this[_0x497f6a(0xc5)][_0x497f6a(0x111)],_0x497f6a(0xd6));}[_0x5e2cad(0x107)](_0x4432cc,_0x52291b,_0x5d903d,_0x35eda3){const _0x1955e6=_0x5e2cad;this[_0x1955e6(0x11a)][_0x1955e6(0x107)](_0x4432cc,_0x52291b,_0x5d903d,_0x35eda3);}[_0x5e2cad(0xfc)](_0x1a44b7){const _0x14d9a4=_0x5e2cad;this[_0x14d9a4(0x11a)][_0x14d9a4(0xfc)](_0x1a44b7);}[_0x5e2cad(0x158)](){const _0x35c853=_0x5e2cad;this[_0x35c853(0x11a)][_0x35c853(0xce)][_0x35c853(0x158)]();}[_0x5e2cad(0xff)](_0xa6d995,_0x47145b){const _0x20626d=_0x5e2cad;this[_0x20626d(0x11a)][_0x20626d(0x140)][_0x20626d(0x157)](_0xa6d995,_0x47145b);}}
23
+ const _0x4776d2=_0xa7fa;(function(_0x5bae63,_0x139d0a){const _0x1c13d9=_0xa7fa,_0x1b8178=_0x5bae63();while(!![]){try{const _0x141a7b=parseInt(_0x1c13d9(0x114))/0x1*(-parseInt(_0x1c13d9(0x15e))/0x2)+-parseInt(_0x1c13d9(0x132))/0x3+-parseInt(_0x1c13d9(0x133))/0x4+parseInt(_0x1c13d9(0xfe))/0x5*(-parseInt(_0x1c13d9(0x15f))/0x6)+parseInt(_0x1c13d9(0xe3))/0x7*(parseInt(_0x1c13d9(0xe5))/0x8)+parseInt(_0x1c13d9(0x12d))/0x9+parseInt(_0x1c13d9(0x168))/0xa;if(_0x141a7b===_0x139d0a)break;else _0x1b8178['push'](_0x1b8178['shift']());}catch(_0x129f7a){_0x1b8178['push'](_0x1b8178['shift']());}}}(_0x2eab,0xe8b06));import{ContextPlugin as _0x320d73}from'ckeditor5/src/core.js';import{_isMotionReduced as _0xe100d9}from'ckeditor5/src/utils.js';function _0xa7fa(_0x27ecb8,_0x1ac3f8){const _0x2eab96=_0x2eab();return _0xa7fa=function(_0xa7fa0b,_0x14919f){_0xa7fa0b=_0xa7fa0b-0xdc;let _0xc7b5b0=_0x2eab96[_0xa7fa0b];return _0xc7b5b0;},_0xa7fa(_0x27ecb8,_0x1ac3f8);}import{AIChatView as _0x4da9ac}from'./ui/aichatview.js';import{AITabs as _0x369830}from'../aitabs/aitabs.js';import{getTranslation as _0x2bacd0}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x56269e}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x61d7e2}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x2eab(){const _0x480141=['delegate','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','toggleSuggestionDisplayMode','setReasoning','destroy','renderingStrategy','_getLoadingMessage','clear','setSelectedModel','isBusy','getItemIds','requires','feedItemRenderingStrategy','updateFeedItemAIReplyContent','isReasoningEnabled','updateSuggestionPartState','markItemAsDone','2ChWhLg','8519700UvdMEm','_interactionPromiseResolver','interaction-header','abort','pluginName','isPremiumPlugin','updateWebSources','isVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','42759040PikOvV','chat','AIChatUI','updateResourceState','closeSourceResourceBalloon','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','plugins','setConversationTitle','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','options','set','streaming','stopInteraction','children','_titleAnimationInterval','ai-reply','setIsMaximized','context','14qPrtcW','finishInteraction','4489880lksqrB','<p>','values','addFeedItemAIReply','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_animateConversationTitle','chatHeader','setInputPlaceholder','updateSuggestionItem','setFeedItemRenderingStrategy','error-message','label','updateFeedInteractionHeader','clearPendingContextUI','removeItem','interactionId','AI_CHAT_WELCOME_MESSAGE','_view','updateFeedItemAIReplySources','removeContextItem','addFeedInteractionHeader','setAddContextOptions','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','isMaximized','5cbpgAZ','scrollToSuggestion','addItem','</p>','disableModelSelector','availableModels','startsWith','config','scrollFeedToSuggestion','enqueue','toggleLoadingSkeleton','setLoadingMessage','addContextItem','createConversation','ai-suggestion-reply','locale','stopAutoScroll','areActionsDisabled','ai.chat.models.modelSelectorAlwaysVisible','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','capabilities','conversation-start','1129285fauleh','resetMessageInput','length','bind','clearConversationContextUI','addFeedItemError','find','chatControls','quickActionData','isLoading','updateFeedItemAIReplySuggestionPartState','focusPromptInput','enableModelSelector','updateFeedItemAIReplySuggestionContent','forEach','then','startAutoScroll','filter','isWebSearchEnabled','displayedPrompt','populateSourceResourceBalloon','from','updateCapabilities','isDone','_getInputPlaceholder','3442653DuaHSl','setIsUploadInProgress','get','setConversationContext','contextItems','1292073OOHlVf','7391484aDNBan','addFeedItemAISuggestion','AITabs','addFeedItemUserMessage','setModelList','view','setWebSearch','isPending','setContextItemLoading','chatFeed','startInteraction','AI_CHAT_HEADING','userMessage','setModel','addFeedItemStaticMessage','removeFeedInteraction','_promiseQueue','user-message','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isOfficialPlugin','showDiff','markFeedItemAsDone','resetConversationTitle','showResizeButton','addTab','queueEmptyPromise'];_0x2eab=function(){return _0x480141;};return _0x2eab();}import{PromiseQueue as _0x5538ba}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x223be1}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x320d73{static get[_0x4776d2(0x158)](){return[_0x369830];}[_0x4776d2(0xf6)];static get[_0x4776d2(0x163)](){const _0x1e4af9=_0x4776d2;return _0x1e4af9(0x16a);}static get[_0x4776d2(0x146)](){return!0x0;}static get[_0x4776d2(0x164)](){return!0x0;}[_0x4776d2(0x159)]=_0x4776d2(0xdc);[_0x4776d2(0x147)]=!0x0;[_0x4776d2(0x143)];[_0x4776d2(0x160)];[_0x4776d2(0xdf)]=void 0x0;constructor(_0x85fd69){const _0x4d0a58=_0x4776d2;super(_0x85fd69);const _0x80b5dd=this[_0x4d0a58(0xe2)][_0x4d0a58(0x16e)][_0x4d0a58(0x12f)](_0x4d0a58(0x135));this[_0x4d0a58(0x172)](_0x4d0a58(0x156),!0x1),this[_0x4d0a58(0x143)]=new _0x5538ba(),this[_0x4d0a58(0xf6)]=new _0x4da9ac(this[_0x4d0a58(0xe2)][_0x4d0a58(0x10d)],_0x80b5dd[_0x4d0a58(0x14a)]),this[_0x4d0a58(0xf6)][_0x4d0a58(0x14d)](..._0x223be1)['to'](this),this[_0x4d0a58(0xf6)]['on'](_0x4d0a58(0x14f),(_0xb0c49b,{showDiff:_0x1504ee})=>{const _0x12729f=_0x4d0a58;this[_0x12729f(0x147)]=_0x1504ee;}),_0x80b5dd[_0x4d0a58(0x138)][_0x4d0a58(0x14b)]({'id':_0x4d0a58(0x169),'buttonLabel':_0x2bacd0(this[_0x4d0a58(0xe2)][_0x4d0a58(0x10d)],_0x4d0a58(0x13e)),'buttonIcon':_0x56269e,'order':0x0,'content':this[_0x4d0a58(0xf6)]}),this[_0x4d0a58(0xf6)][_0x4d0a58(0x11b)][_0x4d0a58(0x117)](_0x4d0a58(0x11d))['to'](this,_0x4d0a58(0x156),_0x5262ce=>_0x5262ce),this[_0x4d0a58(0xf6)][_0x4d0a58(0x13c)][_0x4d0a58(0x117)](_0x4d0a58(0x13a))['to'](this,_0x4d0a58(0x156),_0x73a8df=>_0x73a8df),this[_0x4d0a58(0xf6)][_0x4d0a58(0x11b)][_0x4d0a58(0xec)](this[_0x4d0a58(0x12c)]());}[_0x4776d2(0x151)](){const _0x456811=_0x4776d2;super[_0x456811(0x151)](),this[_0x456811(0xdf)]&&clearInterval(this[_0x456811(0xdf)]);}[_0x4776d2(0x10b)](_0x5aaaf4){const _0x1f8afa=_0x4776d2;this[_0x1f8afa(0xf6)][_0x1f8afa(0x13c)][_0x1f8afa(0x154)](),this[_0x1f8afa(0xf6)][_0x1f8afa(0x11b)][_0x1f8afa(0x120)](),this[_0x1f8afa(0xf6)][_0x1f8afa(0x11b)][_0x1f8afa(0x137)](_0x5aaaf4[_0x1f8afa(0x103)],!this[_0x1f8afa(0xe2)][_0x1f8afa(0x105)][_0x1f8afa(0x12f)](_0x1f8afa(0x110))),this[_0x1f8afa(0x141)]({'id':_0x1f8afa(0x113),'staticMessage':_0x2bacd0(this[_0x1f8afa(0xe2)][_0x1f8afa(0x10d)],_0x1f8afa(0xf5))});}[_0x4776d2(0x141)]({id:_0xd9e427,staticMessage:_0x33c3ca}){const _0x41b376=_0x4776d2;this[_0x41b376(0xf6)][_0x41b376(0x13c)][_0x41b376(0x100)](_0x41b376(0xe0),{'id':_0xd9e427,'initialContent':_0x41b376(0xe6)+_0x33c3ca+_0x41b376(0x101)});}[_0x4776d2(0x136)](_0x4cea51){const _0x51c0df=_0x4776d2,_0x4b6f96=_0x4cea51[_0x51c0df(0x11c)]?.[_0x51c0df(0x127)]||_0x4cea51[_0x51c0df(0x13f)];this[_0x51c0df(0xf6)][_0x51c0df(0x13c)][_0x51c0df(0x100)](_0x51c0df(0x144),{'contextItems':Array[_0x51c0df(0x129)](_0x4cea51[_0x51c0df(0x131)][_0x51c0df(0xe7)]()),'initialContent':_0x51c0df(0xe6)+_0x4b6f96+_0x51c0df(0x101),'id':_0x4cea51['id']});}[_0x4776d2(0x119)]({errorMessage:_0xcabca0,id:_0x4fb4ad}){const _0xa647a0=_0x4776d2;this[_0xa647a0(0xf6)][_0xa647a0(0x13c)][_0xa647a0(0x100)](_0xa647a0(0xef),{'initialContent':_0xa647a0(0xe6)+_0xcabca0+_0xa647a0(0x101),'id':_0x4fb4ad});}[_0x4776d2(0xe8)](_0x2cb95d){const _0x4c54c2=_0x4776d2;return this[_0x4c54c2(0x143)][_0x4c54c2(0x107)](async()=>{const _0x1bed81=_0x4c54c2;this[_0x1bed81(0xf6)][_0x1bed81(0x13c)][_0x1bed81(0x100)](_0x1bed81(0xe0),{'id':_0x2cb95d[_0x1bed81(0xf4)]+':'+_0x2cb95d['id']}),this[_0x1bed81(0xf6)][_0x1bed81(0x13c)][_0x1bed81(0x109)]('');});}async[_0x4776d2(0x134)](_0xca2e87){const _0x3d0ed2=_0x4776d2;return this[_0x3d0ed2(0x143)][_0x3d0ed2(0x107)](async()=>{const _0x471afc=_0x3d0ed2;this[_0x471afc(0xf6)][_0x471afc(0x13c)][_0x471afc(0x100)](_0x471afc(0x10c),{'id':_0xca2e87[_0x471afc(0xf4)]+':'+_0xca2e87['id'],'areActionsDisabled':_0xca2e87[_0x471afc(0x10f)],'showDiff':this[_0x471afc(0x147)]}),this[_0x471afc(0xf6)][_0x471afc(0x13c)][_0x471afc(0x109)]('');});}[_0x4776d2(0xf9)](_0x57c8fe){const _0x4f46e5=_0x4776d2;this[_0x4f46e5(0xf6)][_0x4f46e5(0x13c)][_0x4f46e5(0x100)](_0x4f46e5(0x161),{'id':_0x57c8fe['id'],'capabilities':_0x57c8fe[_0x4f46e5(0x112)]});}[_0x4776d2(0xf1)](_0xe2759e){const _0x44a2c8=_0x4776d2,_0x188726=this[_0x44a2c8(0xf6)][_0x44a2c8(0x13c)][_0x44a2c8(0xde)][_0x44a2c8(0x11a)](_0x21559d=>_0x21559d[_0x44a2c8(0x171)]['id']==_0xe2759e['id']&&_0x21559d instanceof _0x61d7e2);_0x188726&&_0x188726[_0x44a2c8(0x172)](_0x44a2c8(0x166),_0xe2759e[_0x44a2c8(0x166)]);}async[_0x4776d2(0x15a)](_0x4e1246){const _0x395066=_0x4776d2,_0x276ab2=_0x4e1246[_0x395066(0x152)]||this[_0x395066(0x159)];return this[_0x395066(0x143)][_0x395066(0x107)](async _0x5b0639=>{const _0x1a4262=_0x395066;await this[_0x1a4262(0xf6)][_0x1a4262(0x13c)][_0x1a4262(0xfb)]({..._0x4e1246,'abortSignal':_0x5b0639,'renderingStrategy':_0x276ab2}),_0x4e1246[_0x1a4262(0x12b)]&&this[_0x1a4262(0x148)](_0x4e1246['id']);});}[_0x4776d2(0xf7)](_0x252107,_0x419ef4){const _0xcad2b7=_0x4776d2;this[_0xcad2b7(0xf6)][_0xcad2b7(0x13c)][_0xcad2b7(0x165)](_0x252107,_0x419ef4);}async[_0x4776d2(0x121)](_0x237be8){const _0xd121ef=_0x4776d2,_0x2abd47=_0x237be8[_0xd121ef(0x152)]||this[_0xd121ef(0x159)];return this[_0xd121ef(0x143)][_0xd121ef(0x107)](async _0x5088fc=>{const _0x2d5b62=_0xd121ef;await this[_0x2d5b62(0xf6)][_0x2d5b62(0x13c)][_0x2d5b62(0xed)]({..._0x237be8,'abortSignal':_0x5088fc,'renderingStrategy':_0x2abd47}),_0x237be8[_0x2d5b62(0x12b)]&&this[_0x2d5b62(0x148)](_0x237be8['id']);});}[_0x4776d2(0x11e)](_0x18abf0){const _0x32b321=_0x4776d2;this[_0x32b321(0xf6)][_0x32b321(0x13c)][_0x32b321(0x15c)](_0x18abf0);}[_0x4776d2(0x148)](_0x39d393){const _0x1fbf8b=_0x4776d2;this[_0x1fbf8b(0xf6)][_0x1fbf8b(0x13c)][_0x1fbf8b(0x15d)](_0x39d393);}[_0x4776d2(0x142)](_0x38c21b){const _0xeecc91=_0x4776d2;this[_0xeecc91(0xf6)][_0xeecc91(0x13c)][_0xeecc91(0x157)]()[_0xeecc91(0x125)](_0x4800fb=>_0x4800fb[_0xeecc91(0x104)](_0x38c21b))[_0xeecc91(0x122)](_0x2ebefa=>this[_0xeecc91(0xf6)][_0xeecc91(0x13c)][_0xeecc91(0xf3)](_0x2ebefa));}[_0x4776d2(0x13d)](_0x3e1312){const _0x29fad0=_0x4776d2;this[_0x29fad0(0xf6)][_0x29fad0(0x13c)][_0x29fad0(0x109)](this[_0x29fad0(0x153)](_0x3e1312)),this[_0x29fad0(0xf6)][_0x29fad0(0x11b)][_0x29fad0(0x102)](!this[_0x29fad0(0xe2)][_0x29fad0(0x105)][_0x29fad0(0x12f)](_0x29fad0(0x110))),this[_0x29fad0(0x156)]=!0x0,this[_0x29fad0(0xf6)][_0x29fad0(0x13c)][_0x29fad0(0x124)]();}[_0x4776d2(0xdd)](_0x92caeb){const _0x125503=_0x4776d2;this[_0x125503(0x143)][_0x125503(0x162)](),this[_0x125503(0xf6)][_0x125503(0x13c)][_0x125503(0x157)]()[_0x125503(0x125)](_0x250aff=>_0x250aff[_0x125503(0x104)](_0x92caeb['id']))[_0x125503(0x122)](_0x443474=>this[_0x125503(0x148)](_0x443474)),this[_0x125503(0x156)]=!0x1,this[_0x125503(0xf6)][_0x125503(0x13c)][_0x125503(0x10e)]();}async[_0x4776d2(0xe4)](){const _0x36d9e5=_0x4776d2;return this[_0x36d9e5(0x143)][_0x36d9e5(0x14c)][_0x36d9e5(0x123)](()=>{const _0x546875=_0x36d9e5;this[_0x546875(0x156)]=!0x1,this[_0x546875(0xf6)][_0x546875(0x13c)][_0x546875(0x10e)]();});}[_0x4776d2(0x10a)](_0x5d7040,_0x19c654){const _0x24842d=_0x4776d2;this[_0x24842d(0xf6)][_0x24842d(0x11b)][_0x24842d(0x10a)](_0x5d7040,_0x19c654);}[_0x4776d2(0xf8)](_0x398e13){const _0x23d3e9=_0x4776d2;this[_0x23d3e9(0xf6)][_0x23d3e9(0x11b)][_0x23d3e9(0xf8)](_0x398e13);}[_0x4776d2(0x13b)](_0x2aef57,_0x34a59a){const _0xb17de2=_0x4776d2;this[_0xb17de2(0xf6)][_0xb17de2(0x11b)][_0xb17de2(0x13b)](_0x2aef57,_0x34a59a);}[_0x4776d2(0x12e)](_0x537b9a){const _0x2d2687=_0x4776d2;this[_0x2d2687(0xf6)][_0x2d2687(0x11b)][_0x2d2687(0x12e)](_0x537b9a);}[_0x4776d2(0x130)](_0x3ba59f){const _0x4e2ea3=_0x4776d2;this[_0x4e2ea3(0xf6)][_0x4e2ea3(0x11b)][_0x4e2ea3(0x130)](_0x3ba59f);}[_0x4776d2(0xf2)](){const _0xf9982d=_0x4776d2;this[_0xf9982d(0xf6)][_0xf9982d(0x11b)][_0xf9982d(0xf2)]();}[_0x4776d2(0x118)](){const _0x29dcc6=_0x4776d2;this[_0x29dcc6(0xf6)][_0x29dcc6(0x11b)][_0x29dcc6(0x118)]();}[_0x4776d2(0x16b)](_0x3b0326,_0x1f230e,_0x4763ec){const _0x514d8f=_0x4776d2;this[_0x514d8f(0xf6)][_0x514d8f(0x11b)][_0x514d8f(0x16b)](_0x3b0326,_0x1f230e,_0x4763ec);}[_0x4776d2(0x115)](){const _0x4760aa=_0x4776d2;this[_0x4760aa(0xf6)][_0x4760aa(0x11b)][_0x4760aa(0x115)](),this[_0x4760aa(0xf6)][_0x4760aa(0x11b)][_0x4760aa(0xec)](this[_0x4760aa(0x12c)]());}[_0x4776d2(0xfa)](_0x474390){const _0x37361a=_0x4776d2;this[_0x37361a(0xf6)][_0x37361a(0x11b)][_0x37361a(0xfa)](_0x474390);}[_0x4776d2(0x12a)](_0x1ffebf){const _0x4401ef=_0x4776d2;this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0x139)](_0x1ffebf[_0x4401ef(0x126)]),this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0x150)](_0x1ffebf[_0x4401ef(0x15b)]),this[_0x4401ef(0xf6)][_0x4401ef(0x11b)][_0x4401ef(0xec)](this[_0x4401ef(0x12c)](_0x1ffebf));}[_0x4776d2(0x155)](_0x57f14d,_0x118b6e){const _0x203b1f=_0x4776d2;this[_0x203b1f(0xf6)][_0x203b1f(0x11b)][_0x203b1f(0x140)](_0x57f14d),_0x118b6e&&this[_0x203b1f(0xf6)][_0x203b1f(0x11b)][_0x203b1f(0x102)](!0x1);}[_0x4776d2(0xee)](_0x56892e){const _0x49b863=_0x4776d2;this[_0x49b863(0x159)]=_0x56892e;}[_0x4776d2(0x108)](_0x420fb6){const _0x3eeede=_0x4776d2;this[_0x3eeede(0xf6)][_0x3eeede(0x13c)][_0x3eeede(0x108)](_0x420fb6);}[_0x4776d2(0x149)](){const _0x3dba5d=_0x4776d2;this[_0x3dba5d(0x16f)](_0x2bacd0(this[_0x3dba5d(0xe2)][_0x3dba5d(0x10d)],_0x3dba5d(0x13e)));}[_0x4776d2(0x16f)](_0x237685,_0x4490a7=!0x1){const _0xfe7970=_0x4776d2;if(_0x4490a7&&!_0xe100d9()&&_0x237685[_0xfe7970(0x116)])return this[_0xfe7970(0xf6)][_0xfe7970(0xeb)][_0xfe7970(0xf0)]='',void this[_0xfe7970(0xea)](_0x237685);this[_0xfe7970(0xf6)][_0xfe7970(0xeb)][_0xfe7970(0xf0)]=_0x237685;}[_0x4776d2(0xea)](_0x379988){const _0x1f5fa4=_0x4776d2;let _0x170517=0x0;clearInterval(this[_0x1f5fa4(0xdf)]),this[_0x1f5fa4(0xdf)]=setInterval(()=>{const _0x189c67=_0x1f5fa4;this[_0x189c67(0xf6)][_0x189c67(0xeb)][_0x189c67(0xf0)]=this[_0x189c67(0xf6)][_0x189c67(0xeb)][_0x189c67(0xf0)]+_0x379988[_0x170517],_0x170517++,_0x170517===_0x379988[_0x189c67(0x116)]&&clearInterval(this[_0x189c67(0xdf)]);},0x1e);}[_0x4776d2(0xe1)](_0x357ff1){const _0x195c49=_0x4776d2;this[_0x195c49(0xf6)][_0x195c49(0xeb)][_0x195c49(0xfd)]=_0x357ff1;}[_0x4776d2(0x153)](_0x571c54){const _0x50866d=_0x4776d2,_0xb683af=_0x571c54[_0x50866d(0x112)];return _0xb683af[_0x50866d(0x126)]&&_0xb683af[_0x50866d(0x15b)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0xfc)):_0xb683af[_0x50866d(0x126)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x16d)):_0xb683af[_0x50866d(0x15b)]?_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x14e)):_0x2bacd0(this[_0x50866d(0xe2)][_0x50866d(0x10d)],_0x50866d(0x145));}[_0x4776d2(0x12c)](_0x1f8781){const _0x58f46d=_0x4776d2;return _0x1f8781?_0x1f8781[_0x58f46d(0x126)]&&_0x1f8781[_0x58f46d(0x15b)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x111)):_0x1f8781[_0x58f46d(0x126)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x167)):_0x1f8781[_0x58f46d(0x15b)]?_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0xe9)):_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x170)):_0x2bacd0(this[_0x58f46d(0xe2)][_0x58f46d(0x10d)],_0x58f46d(0x170));}[_0x4776d2(0x128)](_0x277a07,_0x2ed62e,_0x3e70db,_0x3e787c){const _0x3d50d3=_0x4776d2;this[_0x3d50d3(0xf6)][_0x3d50d3(0x128)](_0x277a07,_0x2ed62e,_0x3e70db,_0x3e787c);}[_0x4776d2(0x16c)](_0x5d7b1c){const _0x34c0e7=_0x4776d2;this[_0x34c0e7(0xf6)][_0x34c0e7(0x16c)](_0x5d7b1c);}[_0x4776d2(0x11f)](){const _0xdf7894=_0x4776d2;this[_0xdf7894(0xf6)][_0xdf7894(0x11b)][_0xdf7894(0x11f)]();}[_0x4776d2(0x106)](_0x307bb6,_0xfb0c49){const _0x175e50=_0x4776d2;this[_0x175e50(0xf6)][_0x175e50(0x13c)][_0x175e50(0xff)](_0x307bb6,_0xfb0c49);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x224eff=_0x438b;(function(_0x3ccefb,_0x22a108){const _0x25389f=_0x438b,_0x2f9a3d=_0x3ccefb();while(!![]){try{const _0x52b1a3=parseInt(_0x25389f(0xb3))/0x1*(parseInt(_0x25389f(0xc6))/0x2)+-parseInt(_0x25389f(0x110))/0x3+parseInt(_0x25389f(0xcc))/0x4+-parseInt(_0x25389f(0x10f))/0x5+-parseInt(_0x25389f(0x123))/0x6*(parseInt(_0x25389f(0xc4))/0x7)+-parseInt(_0x25389f(0xb0))/0x8+parseInt(_0x25389f(0x119))/0x9;if(_0x52b1a3===_0x22a108)break;else _0x2f9a3d['push'](_0x2f9a3d['shift']());}catch(_0x40b898){_0x2f9a3d['push'](_0x2f9a3d['shift']());}}}(_0x23f6,0xb12fb));function _0x438b(_0x4cec86,_0x2bbdd9){const _0x23f614=_0x23f6();return _0x438b=function(_0x438b07,_0x4af46f){_0x438b07=_0x438b07-0xaa;let _0x41fe4f=_0x23f614[_0x438b07];return _0x41fe4f;},_0x438b(_0x4cec86,_0x2bbdd9);}import{CKEditorError as _0x1475c7,ObservableMixin as _0xccae57,uid as _0x4f4cdc}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x21f3ea,AIContextTextResourceType as _0x11aa8c}from'../../aicore/model/aicontext.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x224eff(0x127),_0x224eff(0xac),_0x224eff(0xd5),_0x224eff(0xce),_0x224eff(0x12f),_0x224eff(0xeb),_0x224eff(0xf1),_0x224eff(0xf0),_0x224eff(0x111)];function _0x23f6(){const _0xc9fa7b=['fire','object\x20with\x20content\x20and\x20type\x20properties','string','getSentContextItems','populateFromMessage','map','_startUploadOperation','addContextOptionsChanged','version','_createContextItemFromContent','addFilesToContext','isCurrentDocumentInConversation','resourceStateChanged','sourceResourcesLoaded','MARKDOWN','_setAddContextOptionsDefaultState','_removeContextItem','_toggleAddCurrentDocumentOptionVisibility','file-','data','type','files','forEach','end','Current\x20document','document','_convertTextResourceToFile','TEXT','url','current-document','_finishUploadOperation','_addContextOptionsState','_mapContextItemToRequestData','removeFromContext','getDocument','isHidden','ai-request-aborted','ai-chat-file-upload-failed','abortController','File','find','sources','ai-chat-context-invalid-data','7089620mrspqI','2969412CXiosz','uploadProgressChanged','_config','text/html','set','from','ai-chat-url-upload-failed','url-','loadSourceResources','31306041QupsKA','files-','sessionId','ai-chat-document-upload-failed','startsWith','ai-chat-source-not-found','object','label','resourceId','uploadUrl','5687544bMWvFO','isReadOnly','addToConversationContext','stack','contextItemAdded','content','size','_updateResourceInContextState','get','all','selection','SELECTION','error','text/plain','filter','ai-chat-resource-load-failed','DOCUMENT','addCurrentDocumentToContext','uiId','addSelectionToContext','_ongoingUploadOperations','clearPendingContextItems','contextItemRemoved','text/markdown','urls','getResources','5349832ttfehi','_addToConversationContextItem','uploadFile','205661GkQMpQ','getData','FILE','isSelectionInContext','start','ai-chat-resource-no-data','_finishContextItemLoading','_ongoingUploads','_getCustomSourcesInitialState','resources','push','getId','attributes','_findSourceIdsByResourceId','updateCurrentDocument','message','URL','7ajnIqB','enabled','4BbHkPn','name','length','ai-chat-source-resources-load-failed','getPendingContextItems','_conversationContextItems','3441460VTFHTR','mapContextItemsToRequestData','contextSent','fetchDocument','_addContextItem','hidden','_pendingContextItems','has','_connector','contextItemLoadingEnded','_isResourceInContext','values','addUrlToContext','isCurrentDocumentInContext','removeSelectionFromContext','addResourceToContext','uploadDocument','HTML','abort','_ownerId','ai-chat-context-unsupported-type','delete','isInContext','init'];_0x23f6=function(){return _0xc9fa7b;};return _0x23f6();}export class AIChatContext extends _0xccae57(){[_0x224eff(0xd4)];[_0x224eff(0x112)];[_0x224eff(0xdf)];constructor({connector:_0x292780,config:_0x3413f5,ownerId:_0x11ccf1}){const _0x19419b=_0x224eff;super(),this[_0x19419b(0xd4)]=_0x292780,this[_0x19419b(0x112)]=_0x3413f5,this[_0x19419b(0xdf)]=_0x11ccf1;}[_0x224eff(0xe3)](){const _0x3392ee=_0x224eff;this[_0x3392ee(0xd2)]=new Map(),this[_0x3392ee(0xcb)]=new Map(),this[_0x3392ee(0xba)]=new Map(),this[_0x3392ee(0xaa)]=new Map(),this[_0x3392ee(0xf3)]();}[_0x224eff(0xca)](){const _0x22a9c8=_0x224eff;return this[_0x22a9c8(0xd2)];}async[_0x224eff(0xe8)](_0x196cd6){const _0x29eff9=_0x224eff,_0x29d178=await this[_0x29eff9(0xed)](_0x196cd6);return this[_0x29eff9(0xb1)](_0x29d178),_0x29eff9(0x101)===_0x29d178[_0x29eff9(0x135)]&&this[_0x29eff9(0xf5)](),_0x29d178;}async[_0x224eff(0xed)](_0x1f0818){const _0x1b1ea0=_0x224eff;if(_0x1f0818[_0x1b1ea0(0xf8)]===_0x21f3ea[_0x1b1ea0(0x133)]){const _0x3ae112=await this[_0x1b1ea0(0xd4)][_0x1b1ea0(0xcf)](this[_0x1b1ea0(0xdf)],_0x1f0818['id'])[_0x1b1ea0(0x106)]();return{'id':_0x1b1ea0(0x101),'uiId':_0x1b1ea0(0x101),'label':_0x1b1ea0(0xfc),'type':_0x1f0818[_0x1b1ea0(0xf8)],'content':_0x3ae112[_0x1b1ea0(0x128)],'hidden':this[_0x1b1ea0(0xcb)][_0x1b1ea0(0xd3)](_0x1b1ea0(0x101)),'version':_0x3ae112[_0x1b1ea0(0xbf)]?.[_0x1b1ea0(0xec)],'sessionId':_0x3ae112[_0x1b1ea0(0xbf)]?.[_0x1b1ea0(0x11b)]};}return{'id':_0x1f0818['id'],'uiId':_0x1f0818['id'],'label':_0x1f0818[_0x1b1ea0(0xbf)]?.[_0x1b1ea0(0x120)]||_0x1f0818[_0x1b1ea0(0xc7)]||_0x1f0818[_0x1b1ea0(0x100)]||_0x1f0818['id'],'type':_0x1f0818[_0x1b1ea0(0xf8)],..._0x1f0818?.[_0x1b1ea0(0xbf)]?.[_0x1b1ea0(0x121)]?{'resourceId':_0x1f0818[_0x1b1ea0(0xbf)]?.[_0x1b1ea0(0x121)]}:{}};}[_0x224eff(0xe7)](){const _0xe8dff1=_0x224eff;return new Map(this[_0xe8dff1(0xcb)]);}[_0x224eff(0x105)](_0x1ab242){const _0x3bc357=_0x224eff,_0x37e80d=this[_0x3bc357(0xd2)][_0x3bc357(0x12b)](_0x1ab242);_0x37e80d?.[_0x3bc357(0x124)]||this[_0x3bc357(0xf4)](_0x1ab242);}[_0x224eff(0xab)](){const _0x59b7c1=_0x224eff;if(0x0===this[_0x59b7c1(0xd2)][_0x59b7c1(0x129)])return;for(const _0x3355d4 of this[_0x59b7c1(0xd2)][_0x59b7c1(0xd7)]())this[_0x59b7c1(0xf4)](_0x3355d4[_0x59b7c1(0x135)]);const _0x10a378=this[_0x59b7c1(0xcb)][_0x59b7c1(0x12b)](_0x59b7c1(0x101))||this[_0x59b7c1(0xd2)][_0x59b7c1(0x12b)](_0x59b7c1(0x101));_0x10a378&&this[_0x59b7c1(0xd0)]({..._0x10a378,'isReadOnly':!0x0,'hidden':!0x0});}[_0x224eff(0x125)](_0x5d04a4){const _0x32b0ac=_0x224eff;for(const _0x499f13 of _0x5d04a4[_0x32b0ac(0xd7)]())this[_0x32b0ac(0xb1)](_0x499f13);this[_0x32b0ac(0xab)](),this[_0x32b0ac(0xe4)](_0x32b0ac(0xce),{'contextItems':Array[_0x32b0ac(0x115)](this[_0x32b0ac(0xe7)]()[_0x32b0ac(0xd7)]())});}[_0x224eff(0xd9)](){const _0x5b13cf=_0x224eff;return this[_0x5b13cf(0xd2)][_0x5b13cf(0xd3)](_0x5b13cf(0x101));}[_0x224eff(0xb6)](){const _0x58d072=_0x224eff;return this[_0x58d072(0xd2)][_0x58d072(0xd3)](_0x58d072(0x12d));}[_0x224eff(0xef)](){const _0x238aba=_0x224eff;return this[_0x238aba(0xcb)][_0x238aba(0xd3)](_0x238aba(0x101));}static[_0x224eff(0xcd)](_0x268dc7){const _0x5e1f35=_0x224eff;return Array[_0x5e1f35(0x115)](_0x268dc7[_0x5e1f35(0xd7)]())[_0x5e1f35(0xe9)](_0x9076d2=>this[_0x5e1f35(0x104)](_0x9076d2))[_0x5e1f35(0x131)](_0x42e2ff=>null!==_0x42e2ff);}async[_0x224eff(0xee)](_0x560112,_0x33a26e,_0x35fbcd=_0x21f3ea[_0x224eff(0xb5)]){const _0x563910=_0x224eff,_0x415a32=_0x563910(0x11a)+_0x4f4cdc();this[_0x563910(0xea)](_0x415a32);try{await Promise[_0x563910(0x12c)](_0x560112[_0x563910(0xe9)](async _0x565932=>{const _0x18c552=_0x563910,_0x55fa7d=_0x18c552(0xf6)+_0x4f4cdc();try{this[_0x18c552(0xd0)]({'type':_0x35fbcd,'label':_0x33a26e?.[_0x18c552(0x120)]||_0x565932[_0x18c552(0xc7)],'uiId':_0x55fa7d,'resourceId':_0x33a26e?.[_0x18c552(0x121)]},!0x0);const _0x4b0a4e=this[_0x18c552(0xd4)][_0x18c552(0xb2)](this[_0x18c552(0xdf)],_0x565932,_0x33a26e);this[_0x18c552(0xba)][_0x18c552(0x114)](_0x55fa7d,_0x4b0a4e[_0x18c552(0x10a)]);const {id:_0x2068c5}=await _0x4b0a4e[_0x18c552(0xbe)]();this[_0x18c552(0xba)][_0x18c552(0xe1)](_0x55fa7d),this[_0x18c552(0xb9)]({'type':_0x35fbcd,'id':_0x2068c5,'label':_0x33a26e?.[_0x18c552(0x120)]||_0x565932[_0x18c552(0xc7)],'uiId':_0x55fa7d,'resourceId':_0x33a26e?.[_0x18c552(0x121)]},!0x1);}catch(_0x1fc32b){this[_0x18c552(0xba)][_0x18c552(0xe1)](_0x55fa7d);if(!_0x1fc32b[_0x18c552(0xc2)][_0x18c552(0x11d)](_0x18c552(0x108))){const _0x49c049=new _0x1475c7(_0x18c552(0x109),null,{'fileName':_0x565932[_0x18c552(0xc7)]});_0x49c049[_0x18c552(0x126)]=_0x1fc32b[_0x18c552(0x126)],this[_0x18c552(0xe4)](_0x18c552(0x12f),{'error':_0x49c049,'fileName':_0x565932[_0x18c552(0xc7)]});}this[_0x18c552(0xf4)](_0x55fa7d);}}));}finally{this[_0x563910(0x102)](_0x415a32);}}[_0x224eff(0x134)](_0x3b36bf){const _0x3ed9e4=_0x224eff;if(this[_0x3ed9e4(0xd9)]())return;const _0x2581c1={'type':_0x21f3ea[_0x3ed9e4(0x133)],'uiId':_0x3ed9e4(0x101),'label':_0x3b36bf,'isReadOnly':this[_0x3ed9e4(0xcb)][_0x3ed9e4(0xd3)](_0x3ed9e4(0x101)),'hidden':this[_0x3ed9e4(0xcb)][_0x3ed9e4(0xd3)](_0x3ed9e4(0x101))};this[_0x3ed9e4(0xd0)](_0x2581c1);}async[_0x224eff(0xc1)](_0x26f51b,_0x4d0537,_0x2040ab,_0x47f72b){const _0x59b151=_0x224eff,_0x217c4e=this[_0x59b151(0xd2)][_0x59b151(0x12b)](_0x59b151(0x101));if(_0x217c4e&&_0x26f51b){_0x217c4e[_0x59b151(0x12d)]=_0x47f72b?_0x47f72b[_0x59b151(0xe9)](_0x11d1e4=>({'start':_0x11d1e4[_0x59b151(0xb7)],'end':_0x11d1e4[_0x59b151(0xfb)]})):[];try{if(_0x217c4e[_0x59b151(0xec)]===_0x4d0537)return;const {id:_0x4d8617}=await this[_0x59b151(0xd4)][_0x59b151(0xdc)](this[_0x59b151(0xdf)],_0x26f51b,{'version':_0x4d0537,'sessionId':_0x2040ab})[_0x59b151(0xbe)]();_0x217c4e['id']=_0x4d8617,_0x217c4e[_0x59b151(0x128)]=_0x26f51b,_0x217c4e[_0x59b151(0xec)]=_0x4d0537,_0x217c4e[_0x59b151(0x11b)]=_0x2040ab;}catch(_0x1e5330){const _0x447354=new _0x1475c7(_0x59b151(0x11c),null);_0x447354[_0x59b151(0x126)]=_0x1e5330[_0x59b151(0x126)],this[_0x59b151(0xe4)](_0x59b151(0x12f),{'error':_0x447354});}}}[_0x224eff(0x136)](_0x109b6d){const _0x136e78=_0x224eff;this[_0x136e78(0xd0)]({'type':_0x21f3ea[_0x136e78(0x12e)],'label':_0x109b6d,'uiId':_0x136e78(0x12d),'content':_0x109b6d});}[_0x224eff(0xda)](){const _0x326b03=_0x224eff;this[_0x326b03(0xf4)](_0x326b03(0x12d));}async[_0x224eff(0xd8)](_0x46c605,_0x47a250){const _0x2c890d=_0x224eff,_0x14d388=_0x2c890d(0x117)+_0x4f4cdc();this[_0x2c890d(0xea)](_0x14d388);const _0x801de=_0x2c890d(0x117)+_0x4f4cdc();try{this[_0x2c890d(0xd0)]({'type':_0x21f3ea[_0x2c890d(0xc3)],'label':_0x47a250?.[_0x2c890d(0x120)]||_0x46c605,'uiId':_0x801de,'resourceId':_0x47a250?.[_0x2c890d(0x121)]},!0x0);const _0x45efa0=this[_0x2c890d(0xd4)][_0x2c890d(0x122)](this[_0x2c890d(0xdf)],_0x46c605,_0x47a250);this[_0x2c890d(0xba)][_0x2c890d(0x114)](_0x801de,_0x45efa0[_0x2c890d(0x10a)]);const {id:_0x1b2755}=await _0x45efa0[_0x2c890d(0xbe)]();this[_0x2c890d(0xba)][_0x2c890d(0xe1)](_0x801de),this[_0x2c890d(0xb9)]({'type':_0x21f3ea[_0x2c890d(0xc3)],'id':_0x1b2755,'label':_0x47a250?.[_0x2c890d(0x120)]||_0x46c605,'uiId':_0x801de,'resourceId':_0x47a250?.[_0x2c890d(0x121)]},!0x1);}catch(_0xc96345){this[_0x2c890d(0xba)][_0x2c890d(0xe1)](_0x801de),(_0xc96345[_0x2c890d(0xc2)][_0x2c890d(0x11d)](_0x2c890d(0x108))||this[_0x2c890d(0xe4)](_0x2c890d(0x12f),{'error':new _0x1475c7(_0x2c890d(0x116),this,{'url':_0x46c605,'originalError':_0xc96345}),'url':_0x46c605}),this[_0x2c890d(0xf4)](_0x801de));}finally{this[_0x2c890d(0x102)](_0x14d388);}}async[_0x224eff(0x118)](_0x3de227,_0x15f422,_0x389303){const _0x574c73=_0x224eff,_0x5ca9ca=this[_0x574c73(0x103)][_0x574c73(0x10d)][_0x574c73(0x10c)](_0x34e613=>_0x34e613['id']===_0x3de227);if(!_0x5ca9ca)return this[_0x574c73(0xe4)](_0x574c73(0x12f),{'error':new _0x1475c7(_0x574c73(0x11e),this,{'sourceId':_0x3de227}),'sourceId':_0x3de227}),[];try{const _0x5594c0=(await _0x5ca9ca[_0x574c73(0xaf)](_0x15f422))[_0x574c73(0xe9)](_0x79900f=>{const _0x553049=_0x574c73,_0x256c67=this[_0x553049(0xd6)](_0x79900f['id']);return{..._0x79900f,'isInContext':_0x256c67};});return _0x5ca9ca[_0x574c73(0xbc)]=_0x5594c0,this[_0x574c73(0xe4)](_0x574c73(0xf1),{'sourceId':_0x3de227,'source':_0x5ca9ca,'resources':_0x5594c0,'uid':_0x389303}),_0x5594c0;}catch(_0xaebd23){return this[_0x574c73(0xe4)](_0x574c73(0x12f),{'error':new _0x1475c7(_0x574c73(0xc9),this,{'sourceId':_0x3de227,'originalError':_0xaebd23}),'sourceId':_0x3de227,'sourceLabel':_0x5ca9ca[_0x574c73(0x120)]}),[];}}async[_0x224eff(0xdb)](_0x33d7a4,_0x3ce9db){const _0x27d5cf=_0x224eff;if(this[_0x27d5cf(0xd6)](_0x3ce9db['id']))return;let _0x4aaf8c=_0x3ce9db[_0x27d5cf(0xf7)];if(!_0x4aaf8c&&_0x33d7a4[_0x27d5cf(0xb4)])try{_0x4aaf8c=await _0x33d7a4[_0x27d5cf(0xb4)](_0x3ce9db['id']);}catch(_0x281b9c){return void this[_0x27d5cf(0xe4)](_0x27d5cf(0x12f),{'error':new _0x1475c7(_0x27d5cf(0x132),this,{'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id'],'originalError':_0x281b9c}),'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id']});}if(_0x4aaf8c)switch(_0x3ce9db[_0x27d5cf(0xf8)]){case _0x21f3ea[_0x27d5cf(0xc3)]:if(_0x27d5cf(0xe6)!=typeof _0x4aaf8c)return void this[_0x27d5cf(0xe4)](_0x27d5cf(0x12f),{'error':new _0x1475c7(_0x27d5cf(0x10e),this,{'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id'],'expectedType':_0x27d5cf(0xe6),'actualType':typeof _0x4aaf8c}),'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id']});await this[_0x27d5cf(0xd8)](_0x4aaf8c,{'label':_0x3ce9db[_0x27d5cf(0x120)],'resourceId':_0x3ce9db['id']});break;case _0x21f3ea[_0x27d5cf(0xb5)]:if(!(_0x4aaf8c instanceof File))return void this[_0x27d5cf(0xe4)](_0x27d5cf(0x12f),{'error':new _0x1475c7(_0x27d5cf(0x10e),this,{'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id'],'expectedType':_0x27d5cf(0x10b),'actualType':typeof _0x4aaf8c}),'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id']});await this[_0x27d5cf(0xee)]([_0x4aaf8c],{'label':_0x3ce9db[_0x27d5cf(0x120)],'resourceId':_0x3ce9db['id']});break;case _0x21f3ea[_0x27d5cf(0xff)]:if(_0x27d5cf(0x11f)!=typeof _0x4aaf8c||!(_0x27d5cf(0x128)in _0x4aaf8c)||!(_0x27d5cf(0xf8)in _0x4aaf8c))return void this[_0x27d5cf(0xe4)](_0x27d5cf(0x12f),{'error':new _0x1475c7(_0x27d5cf(0x10e),this,{'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id'],'expectedType':_0x27d5cf(0xe5),'actualType':typeof _0x4aaf8c}),'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id']});_0x4aaf8c=AIChatContext[_0x27d5cf(0xfe)](_0x4aaf8c,_0x3ce9db[_0x27d5cf(0x120)]),await this[_0x27d5cf(0xee)]([_0x4aaf8c],{'label':_0x3ce9db[_0x27d5cf(0x120)],'resourceId':_0x3ce9db['id']},_0x21f3ea[_0x27d5cf(0xff)]);break;default:this[_0x27d5cf(0xe4)](_0x27d5cf(0x12f),{'error':new _0x1475c7(_0x27d5cf(0xe0),this,{'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id'],'resourceType':_0x3ce9db[_0x27d5cf(0xf8)]}),'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id']});}else this[_0x27d5cf(0xe4)](_0x27d5cf(0x12f),{'error':new _0x1475c7(_0x27d5cf(0xb8),this,{'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id']}),'resourceId':_0x3ce9db['id'],'sourceId':_0x33d7a4['id']});}static[_0x224eff(0xfe)](_0x9e1128,_0x1092dd){const _0x316718=_0x224eff;switch(_0x9e1128[_0x316718(0xf8)]){case _0x11aa8c[_0x316718(0xf2)]:return new File([_0x9e1128[_0x316718(0x128)]],_0x1092dd,{'type':_0x316718(0xad)});case _0x11aa8c[_0x316718(0xdd)]:return new File([_0x9e1128[_0x316718(0x128)]],_0x1092dd,{'type':_0x316718(0x113)});default:return new File([_0x9e1128[_0x316718(0x128)]],_0x1092dd,{'type':_0x316718(0x130)});}}static[_0x224eff(0x104)](_0x3d1c99){const _0x28fc7b=_0x224eff;switch(_0x3d1c99[_0x28fc7b(0xf8)]){case _0x21f3ea[_0x28fc7b(0xb5)]:return{'type':_0x21f3ea[_0x28fc7b(0xb5)],'id':_0x3d1c99['id']};case _0x21f3ea[_0x28fc7b(0xc3)]:return{'type':_0x21f3ea[_0x28fc7b(0xc3)],'id':_0x3d1c99['id']};case _0x21f3ea[_0x28fc7b(0x133)]:return{'type':_0x21f3ea[_0x28fc7b(0x133)],'id':_0x3d1c99['id'],..._0x3d1c99[_0x28fc7b(0x12d)]?.[_0x28fc7b(0xc8)]&&{'selection':_0x3d1c99[_0x28fc7b(0x12d)]}};case _0x21f3ea[_0x28fc7b(0xff)]:return{'type':_0x21f3ea[_0x28fc7b(0xb5)],'id':_0x3d1c99['id']};default:return null;}}[_0x224eff(0xd0)](_0x9e3e17,_0x4d81a4=!0x1){const _0x4210d7=_0x224eff;if(this[_0x4210d7(0xd2)][_0x4210d7(0x114)](_0x9e3e17[_0x4210d7(0x135)],_0x9e3e17),_0x9e3e17[_0x4210d7(0xd1)]||this[_0x4210d7(0xe4)](_0x4210d7(0x127),{'contextItem':_0x9e3e17,'isLoading':_0x4d81a4}),_0x4210d7(0x101)===_0x9e3e17[_0x4210d7(0x135)]&&this[_0x4210d7(0xf5)](),_0x9e3e17[_0x4210d7(0x121)]){const _0x316314=this[_0x4210d7(0xc0)](_0x9e3e17[_0x4210d7(0x121)]);_0x316314&&_0x316314[_0x4210d7(0xfa)](_0x422c70=>{const _0x53102f=_0x4210d7;this[_0x53102f(0x12a)](_0x422c70,_0x9e3e17[_0x53102f(0x121)],!0x0);});}}[_0x224eff(0xf4)](_0x4ff32c){const _0x26f75e=_0x224eff,_0x4a37f2=this[_0x26f75e(0xd2)][_0x26f75e(0x12b)](_0x4ff32c),_0x5c1cfb=this[_0x26f75e(0xba)][_0x26f75e(0x12b)](_0x4ff32c);if(_0x5c1cfb&&(_0x5c1cfb[_0x26f75e(0xde)](),this[_0x26f75e(0xba)][_0x26f75e(0xe1)](_0x4ff32c)),_0x4a37f2?.[_0x26f75e(0x121)]){const _0x5540e3=this[_0x26f75e(0xc0)](_0x4a37f2[_0x26f75e(0x121)]);_0x5540e3&&_0x5540e3[_0x26f75e(0xfa)](_0xd09515=>{const _0x4c3411=_0x26f75e;this[_0x4c3411(0x12a)](_0xd09515,_0x4a37f2[_0x4c3411(0x121)],!0x1);});}this[_0x26f75e(0xd2)][_0x26f75e(0xe1)](_0x4ff32c),this[_0x26f75e(0xe4)](_0x26f75e(0xac),{'uiId':_0x4ff32c,'type':_0x4a37f2?.[_0x26f75e(0xf8)]}),_0x26f75e(0x101)===_0x4ff32c&&this[_0x26f75e(0xf5)]();}[_0x224eff(0xb9)](_0x3bf9a5,_0x2cdb98){const _0x3aa8de=_0x224eff;if(this[_0x3aa8de(0xd2)][_0x3aa8de(0xd3)](_0x3bf9a5[_0x3aa8de(0x135)])&&(this[_0x3aa8de(0xd2)][_0x3aa8de(0x114)](_0x3bf9a5[_0x3aa8de(0x135)],_0x3bf9a5),this[_0x3aa8de(0xe4)](_0x3aa8de(0xd5),{'contextItem':_0x3bf9a5,'isLoading':_0x2cdb98}),_0x3bf9a5[_0x3aa8de(0x121)])){const _0x3a058b=this[_0x3aa8de(0xc0)](_0x3bf9a5[_0x3aa8de(0x121)]);_0x3a058b&&_0x3a058b[_0x3aa8de(0xfa)](_0x20a160=>{const _0x58ebfd=_0x3aa8de;this[_0x58ebfd(0x12a)](_0x20a160,_0x3bf9a5[_0x58ebfd(0x121)],!0x0);});}}[_0x224eff(0xb1)](_0x1fc15f){const _0x3593f2=_0x224eff;this[_0x3593f2(0xcb)][_0x3593f2(0x114)](_0x1fc15f[_0x3593f2(0x135)],_0x1fc15f);}[_0x224eff(0xf3)](){const _0x5d90fa=_0x224eff;this[_0x5d90fa(0x103)]={'document':{'enabled':!0x1!==this[_0x5d90fa(0x112)]?.[_0x5d90fa(0xfd)]?.[_0x5d90fa(0xc5)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x5d90fa(0x112)]?.[_0x5d90fa(0xae)]?.[_0x5d90fa(0xc5)]},'files':{'enabled':!0x1!==this[_0x5d90fa(0x112)]?.[_0x5d90fa(0xf9)]?.[_0x5d90fa(0xc5)]},'sources':this[_0x5d90fa(0xbb)]()},this[_0x5d90fa(0xe4)](_0x5d90fa(0xeb),{'options':this[_0x5d90fa(0x103)]});}[_0x224eff(0xbb)](){const _0x44f9a3=_0x224eff;return this[_0x44f9a3(0x112)]?.[_0x44f9a3(0x10d)]?.[_0x44f9a3(0xe9)](_0x56e4aa=>({..._0x56e4aa,'resources':[]}))??[];}[_0x224eff(0xf5)](){const _0xa2ecbd=_0x224eff,_0x5260c2=this[_0xa2ecbd(0xd9)]()||this[_0xa2ecbd(0xef)]();this[_0xa2ecbd(0x103)][_0xa2ecbd(0xfd)][_0xa2ecbd(0x107)]=_0x5260c2,this[_0xa2ecbd(0xe4)](_0xa2ecbd(0xeb),{'options':this[_0xa2ecbd(0x103)]});}[_0x224eff(0xd6)](_0xaa6e10){const _0x395c0a=_0x224eff;for(const _0x44177b of this[_0x395c0a(0xd2)][_0x395c0a(0xd7)]())if(_0x44177b[_0x395c0a(0x121)]===_0xaa6e10)return!0x0;for(const _0x5e45cb of this[_0x395c0a(0xcb)][_0x395c0a(0xd7)]())if(_0x5e45cb[_0x395c0a(0x121)]===_0xaa6e10)return!0x0;return!0x1;}[_0x224eff(0xc0)](_0xa9c22a){const _0x3d9666=_0x224eff,_0x1d61d4=[];for(const _0x205fdd of this[_0x3d9666(0x103)][_0x3d9666(0x10d)]){_0x205fdd[_0x3d9666(0xbc)][_0x3d9666(0x10c)](_0x262efd=>_0x262efd['id']===_0xa9c22a)&&_0x1d61d4[_0x3d9666(0xbd)](_0x205fdd['id']);}return 0x0===_0x1d61d4[_0x3d9666(0xc8)]?null:_0x1d61d4;}[_0x224eff(0x12a)](_0x9aed59,_0x4e756a,_0xe2ef46){const _0x424a0d=_0x224eff,_0x1281a8=this[_0x424a0d(0x103)][_0x424a0d(0x10d)][_0x424a0d(0x10c)](_0x4aa9df=>_0x4aa9df['id']===_0x9aed59);if(!_0x1281a8)return;const _0x4368a0=_0x1281a8[_0x424a0d(0xbc)][_0x424a0d(0x10c)](_0x3592b0=>_0x3592b0['id']===_0x4e756a);_0x4368a0&&(_0x4368a0[_0x424a0d(0xe2)]=_0xe2ef46,this[_0x424a0d(0xe4)](_0x424a0d(0xf0),{'sourceId':_0x9aed59,'resourceId':_0x4e756a,'isInContext':_0xe2ef46}));}[_0x224eff(0xea)](_0x2e3a33){const _0x5f17bd=_0x224eff;this[_0x5f17bd(0xaa)][_0x5f17bd(0x114)](_0x2e3a33,!0x0),this[_0x5f17bd(0xaa)][_0x5f17bd(0x129)]&&this[_0x5f17bd(0xe4)](_0x5f17bd(0x111),{'isUploadInProgress':!0x0});}[_0x224eff(0x102)](_0x196027){const _0x3b781e=_0x224eff;this[_0x3b781e(0xaa)][_0x3b781e(0xe1)](_0x196027),0x0===this[_0x3b781e(0xaa)][_0x3b781e(0x129)]&&this[_0x3b781e(0xe4)](_0x3b781e(0x111),{'isUploadInProgress':!0x1});}}
23
+ const _0x4aa975=_0x5e1c;(function(_0x2772cb,_0x25b05a){const _0x1aec15=_0x5e1c,_0x22f496=_0x2772cb();while(!![]){try{const _0x27b6cb=parseInt(_0x1aec15(0x1c6))/0x1*(parseInt(_0x1aec15(0x232))/0x2)+parseInt(_0x1aec15(0x209))/0x3*(-parseInt(_0x1aec15(0x1bc))/0x4)+-parseInt(_0x1aec15(0x22e))/0x5+parseInt(_0x1aec15(0x225))/0x6+parseInt(_0x1aec15(0x203))/0x7+-parseInt(_0x1aec15(0x1e8))/0x8+parseInt(_0x1aec15(0x241))/0x9;if(_0x27b6cb===_0x25b05a)break;else _0x22f496['push'](_0x22f496['shift']());}catch(_0x5d8269){_0x22f496['push'](_0x22f496['shift']());}}}(_0x1f61,0xc4bb5));import{CKEditorError as _0x4233bd,ObservableMixin as _0x1eb501,uid as _0x264fe8}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4b6fd9,AIContextTextResourceType as _0x25c72c}from'../../aicore/model/aicontext.js';function _0x1f61(){const _0x515459=['_finishUploadOperation','contextSent','push','_mapContextItemToRequestData','fetchDocument','sources','startsWith','URL','filter','_ongoingUploads','18982908hJVMzS','getPendingContextItems','addToConversationContext','uiId','_createContextItemFromContent','ai-chat-document-upload-failed','_connector','find','356FLcUtq','addContextOptionsChanged','url-','ai-chat-resource-load-failed','getResources','ai-chat-resource-no-data','fire','_updateResourceInContextState','updateCurrentDocument','files-','334TkMcGk','ai-chat-context-unsupported-type','has','_config','_addToConversationContextItem','from','_addContextItem','attributes','sourceResourcesLoaded','uploadFile','hidden','text/markdown','uploadUrl','_ongoingUploadOperations','addUrlToContext','object','size','urls','addResourceToContext','document','enabled','loadSourceResources','label','object\x20with\x20content\x20and\x20type\x20properties','Current\x20document','isCurrentDocumentInContext','getId','message','error','_getCustomSourcesInitialState','ai-chat-source-resources-load-failed','_convertTextResourceToFile','length','addSelectionToContext','5571800NtGOZq','text/plain','contextItemAdded','isInContext','_conversationContextItems','removeFromContext','text/html','files','_isResourceInContext','delete','mapContextItemsToRequestData','abortController','start','init','isHidden','_finishContextItemLoading','map','SELECTION','abort','stack','FILE','isSelectionInContext','data','_toggleAddCurrentDocumentOptionVisibility','type','selection','getSentContextItems','10482192PTAAyZ','contextItemRemoved','_pendingContextItems','File','getDocument','file-','51702ewTBcV','end','contextItemLoadingEnded','HTML','_removeContextItem','DOCUMENT','_findSourceIdsByResourceId','resources','TEXT','forEach','isCurrentDocumentInConversation','removeSelectionFromContext','ai-chat-url-upload-failed','getData','content','name','resourceId','populateFromMessage','ai-request-aborted','version','ai-chat-file-upload-failed','ai-chat-context-invalid-data','_addContextOptionsState','addFilesToContext','_ownerId','get','clearPendingContextItems','uploadDocument','2179380NggdRJ','uploadProgressChanged','ai-chat-source-not-found','_setAddContextOptionsDefaultState','set','addCurrentDocumentToContext','all','values','MARKDOWN','7200640yycfNy','_startUploadOperation','current-document','sessionId','3032sANylb','resourceStateChanged','string','url','isReadOnly'];_0x1f61=function(){return _0x515459;};return _0x1f61();}import{escape as _0x4b4871}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x4aa975(0x1ea),_0x4aa975(0x204),_0x4aa975(0x20b),_0x4aa975(0x238),_0x4aa975(0x1e2),_0x4aa975(0x1bd),_0x4aa975(0x1ce),_0x4aa975(0x233),_0x4aa975(0x226)];function _0x5e1c(_0x5b60fd,_0x59b263){const _0x1f610c=_0x1f61();return _0x5e1c=function(_0x5e1c3b,_0x4e9e61){_0x5e1c3b=_0x5e1c3b-0x1b5;let _0x1a1687=_0x1f610c[_0x5e1c3b];return _0x1a1687;},_0x5e1c(_0x5b60fd,_0x59b263);}export class AIChatContext extends _0x1eb501(){[_0x4aa975(0x1ba)];[_0x4aa975(0x1c9)];[_0x4aa975(0x221)];constructor({connector:_0xcbad3b,config:_0x17ffdf,ownerId:_0x44d46f}){const _0x1676a1=_0x4aa975;super(),this[_0x1676a1(0x1ba)]=_0xcbad3b,this[_0x1676a1(0x1c9)]=_0x17ffdf,this[_0x1676a1(0x221)]=_0x44d46f;}[_0x4aa975(0x1f5)](){const _0x184c4b=_0x4aa975;this[_0x184c4b(0x205)]=new Map(),this[_0x184c4b(0x1ec)]=new Map(),this[_0x184c4b(0x240)]=new Map(),this[_0x184c4b(0x1d3)]=new Map(),this[_0x184c4b(0x228)]();}[_0x4aa975(0x1b5)](){const _0x4e87e6=_0x4aa975;return this[_0x4e87e6(0x205)];}async[_0x4aa975(0x21a)](_0x61c33e){const _0xd8e2f2=_0x4aa975,_0x438f74=await this[_0xd8e2f2(0x1b8)](_0x61c33e);return this[_0xd8e2f2(0x1ca)](_0x438f74),_0xd8e2f2(0x230)===_0x438f74[_0xd8e2f2(0x1b7)]&&this[_0xd8e2f2(0x1ff)](),_0x438f74;}async[_0x4aa975(0x1b8)](_0x9dec6d){const _0x43cb2f=_0x4aa975;if(_0x9dec6d[_0x43cb2f(0x200)]===_0x4b6fd9[_0x43cb2f(0x20e)]){const _0x1e8d11=await this[_0x43cb2f(0x1ba)][_0x43cb2f(0x23b)](this[_0x43cb2f(0x221)],_0x9dec6d['id'])[_0x43cb2f(0x207)]();return{'id':_0x43cb2f(0x230),'uiId':_0x43cb2f(0x230),'label':_0x43cb2f(0x1de),'type':_0x9dec6d[_0x43cb2f(0x200)],'content':_0x1e8d11[_0x43cb2f(0x217)],'hidden':this[_0x43cb2f(0x1ec)][_0x43cb2f(0x1c8)](_0x43cb2f(0x230)),'version':_0x1e8d11[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x21c)],'sessionId':_0x1e8d11[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x231)]};}return{'id':_0x9dec6d['id'],'uiId':_0x9dec6d['id'],'label':_0x9dec6d[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x1dc)]||_0x9dec6d[_0x43cb2f(0x218)]||_0x9dec6d[_0x43cb2f(0x235)]||_0x9dec6d['id'],'type':_0x9dec6d[_0x43cb2f(0x200)],..._0x9dec6d?.[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x219)]?{'resourceId':_0x9dec6d[_0x43cb2f(0x1cd)]?.[_0x43cb2f(0x219)]}:{}};}[_0x4aa975(0x202)](){const _0x101481=_0x4aa975;return new Map(this[_0x101481(0x1ec)]);}[_0x4aa975(0x1ed)](_0x3c0755){const _0x2df8f8=_0x4aa975,_0x45681f=this[_0x2df8f8(0x205)][_0x2df8f8(0x222)](_0x3c0755);_0x45681f?.[_0x2df8f8(0x236)]||this[_0x2df8f8(0x20d)](_0x3c0755);}[_0x4aa975(0x223)](){const _0x143425=_0x4aa975;if(0x0===this[_0x143425(0x205)][_0x143425(0x1d6)])return;for(const _0x191a19 of this[_0x143425(0x205)][_0x143425(0x22c)]())this[_0x143425(0x20d)](_0x191a19[_0x143425(0x1b7)]);const _0x426eb2=this[_0x143425(0x1ec)][_0x143425(0x222)](_0x143425(0x230))||this[_0x143425(0x205)][_0x143425(0x222)](_0x143425(0x230));_0x426eb2&&this[_0x143425(0x1cc)]({..._0x426eb2,'isReadOnly':!0x0,'hidden':!0x0});}[_0x4aa975(0x1b6)](_0x455f6f){const _0x419866=_0x4aa975;for(const _0x5bb458 of _0x455f6f[_0x419866(0x22c)]())this[_0x419866(0x1ca)](_0x5bb458);this[_0x419866(0x223)](),this[_0x419866(0x1c2)](_0x419866(0x238),{'contextItems':Array[_0x419866(0x1cb)](this[_0x419866(0x202)]()[_0x419866(0x22c)]())});}[_0x4aa975(0x1df)](){const _0xa5f8de=_0x4aa975;return this[_0xa5f8de(0x205)][_0xa5f8de(0x1c8)](_0xa5f8de(0x230));}[_0x4aa975(0x1fd)](){const _0x1cb1ec=_0x4aa975;return this[_0x1cb1ec(0x205)][_0x1cb1ec(0x1c8)](_0x1cb1ec(0x201));}[_0x4aa975(0x213)](){const _0x487d56=_0x4aa975;return this[_0x487d56(0x1ec)][_0x487d56(0x1c8)](_0x487d56(0x230));}static[_0x4aa975(0x1f2)](_0x1cae18){const _0x209ca4=_0x4aa975;return Array[_0x209ca4(0x1cb)](_0x1cae18[_0x209ca4(0x22c)]())[_0x209ca4(0x1f8)](_0x50160c=>this[_0x209ca4(0x23a)](_0x50160c))[_0x209ca4(0x23f)](_0x12385e=>null!==_0x12385e);}async[_0x4aa975(0x220)](_0x2c5050,_0x51f039,_0x4e1bc7=_0x4b6fd9[_0x4aa975(0x1fc)]){const _0x31b42c=_0x4aa975,_0x470370=_0x31b42c(0x1c5)+_0x264fe8();this[_0x31b42c(0x22f)](_0x470370);try{await Promise[_0x31b42c(0x22b)](_0x2c5050[_0x31b42c(0x1f8)](async _0x242434=>{const _0x4645b7=_0x31b42c,_0x3dc441=_0x4645b7(0x208)+_0x264fe8(),_0x1a96a0=_0x4b4871(_0x242434[_0x4645b7(0x218)]);try{this[_0x4645b7(0x1cc)]({'type':_0x4e1bc7,'label':_0x51f039?.[_0x4645b7(0x1dc)]||_0x1a96a0,'uiId':_0x3dc441,'resourceId':_0x51f039?.[_0x4645b7(0x219)]},!0x0);const _0xd3aae6=this[_0x4645b7(0x1ba)][_0x4645b7(0x1cf)](this[_0x4645b7(0x221)],_0x242434,_0x51f039);this[_0x4645b7(0x240)][_0x4645b7(0x229)](_0x3dc441,_0xd3aae6[_0x4645b7(0x1f3)]);const {id:_0x35d775}=await _0xd3aae6[_0x4645b7(0x1e0)]();this[_0x4645b7(0x240)][_0x4645b7(0x1f1)](_0x3dc441),this[_0x4645b7(0x1f7)]({'type':_0x4e1bc7,'id':_0x35d775,'label':_0x51f039?.[_0x4645b7(0x1dc)]||_0x1a96a0,'uiId':_0x3dc441,'resourceId':_0x51f039?.[_0x4645b7(0x219)]},!0x1);}catch(_0xb47bd){this[_0x4645b7(0x240)][_0x4645b7(0x1f1)](_0x3dc441);if(!_0xb47bd[_0x4645b7(0x1e1)][_0x4645b7(0x23d)](_0x4645b7(0x21b))){const _0x20d653=new _0x4233bd(_0x4645b7(0x21d),null,{'fileName':_0x1a96a0});_0x20d653[_0x4645b7(0x1fb)]=_0xb47bd[_0x4645b7(0x1fb)],this[_0x4645b7(0x1c2)](_0x4645b7(0x1e2),{'error':_0x20d653,'fileName':_0x1a96a0});}this[_0x4645b7(0x20d)](_0x3dc441);}}));}finally{this[_0x31b42c(0x237)](_0x470370);}}[_0x4aa975(0x22a)](_0xc10c00){const _0x5abd90=_0x4aa975;if(this[_0x5abd90(0x1df)]())return;const _0x2fd7f8={'type':_0x4b6fd9[_0x5abd90(0x20e)],'uiId':_0x5abd90(0x230),'label':_0xc10c00,'isReadOnly':this[_0x5abd90(0x1ec)][_0x5abd90(0x1c8)](_0x5abd90(0x230)),'hidden':this[_0x5abd90(0x1ec)][_0x5abd90(0x1c8)](_0x5abd90(0x230))};this[_0x5abd90(0x1cc)](_0x2fd7f8);}async[_0x4aa975(0x1c4)](_0x513c31,_0x5448a8,_0x3e0103,_0x3fbcb2){const _0x234f20=_0x4aa975,_0x2dc45b=this[_0x234f20(0x205)][_0x234f20(0x222)](_0x234f20(0x230));if(_0x2dc45b&&_0x513c31){_0x2dc45b[_0x234f20(0x201)]=_0x3fbcb2?_0x3fbcb2[_0x234f20(0x1f8)](_0x4fee20=>({'start':_0x4fee20[_0x234f20(0x1f4)],'end':_0x4fee20[_0x234f20(0x20a)]})):[];try{if(_0x2dc45b[_0x234f20(0x21c)]===_0x5448a8)return;const {id:_0x410350}=await this[_0x234f20(0x1ba)][_0x234f20(0x224)](this[_0x234f20(0x221)],_0x513c31,{'version':_0x5448a8,'sessionId':_0x3e0103})[_0x234f20(0x1e0)]();_0x2dc45b['id']=_0x410350,_0x2dc45b[_0x234f20(0x217)]=_0x513c31,_0x2dc45b[_0x234f20(0x21c)]=_0x5448a8,_0x2dc45b[_0x234f20(0x231)]=_0x3e0103;}catch(_0x27f640){const _0x29a905=new _0x4233bd(_0x234f20(0x1b9),null);_0x29a905[_0x234f20(0x1fb)]=_0x27f640[_0x234f20(0x1fb)],this[_0x234f20(0x1c2)](_0x234f20(0x1e2),{'error':_0x29a905});}}}[_0x4aa975(0x1e7)](_0x42bd03){const _0xedffc7=_0x4aa975;this[_0xedffc7(0x1cc)]({'type':_0x4b6fd9[_0xedffc7(0x1f9)],'label':_0x42bd03,'uiId':_0xedffc7(0x201),'content':_0x42bd03});}[_0x4aa975(0x214)](){const _0x4ce3dd=_0x4aa975;this[_0x4ce3dd(0x20d)](_0x4ce3dd(0x201));}async[_0x4aa975(0x1d4)](_0x31c254,_0x226116){const _0x3e8802=_0x4aa975,_0x283b59=_0x3e8802(0x1be)+_0x264fe8();this[_0x3e8802(0x22f)](_0x283b59);const _0x56b239=_0x3e8802(0x1be)+_0x264fe8();try{this[_0x3e8802(0x1cc)]({'type':_0x4b6fd9[_0x3e8802(0x23e)],'label':_0x226116?.[_0x3e8802(0x1dc)]||_0x31c254,'uiId':_0x56b239,'resourceId':_0x226116?.[_0x3e8802(0x219)]},!0x0);const _0x3c8268=this[_0x3e8802(0x1ba)][_0x3e8802(0x1d2)](this[_0x3e8802(0x221)],_0x31c254,_0x226116);this[_0x3e8802(0x240)][_0x3e8802(0x229)](_0x56b239,_0x3c8268[_0x3e8802(0x1f3)]);const {id:_0x58ea4d}=await _0x3c8268[_0x3e8802(0x1e0)]();this[_0x3e8802(0x240)][_0x3e8802(0x1f1)](_0x56b239),this[_0x3e8802(0x1f7)]({'type':_0x4b6fd9[_0x3e8802(0x23e)],'id':_0x58ea4d,'label':_0x226116?.[_0x3e8802(0x1dc)]||_0x31c254,'uiId':_0x56b239,'resourceId':_0x226116?.[_0x3e8802(0x219)]},!0x1);}catch(_0x5bb216){this[_0x3e8802(0x240)][_0x3e8802(0x1f1)](_0x56b239),(_0x5bb216[_0x3e8802(0x1e1)][_0x3e8802(0x23d)](_0x3e8802(0x21b))||this[_0x3e8802(0x1c2)](_0x3e8802(0x1e2),{'error':new _0x4233bd(_0x3e8802(0x215),this,{'url':_0x31c254,'originalError':_0x5bb216}),'url':_0x31c254}),this[_0x3e8802(0x20d)](_0x56b239));}finally{this[_0x3e8802(0x237)](_0x283b59);}}async[_0x4aa975(0x1db)](_0x411540,_0x2b4bdd,_0x2dd93c){const _0x284cc4=_0x4aa975,_0x243b49=this[_0x284cc4(0x21f)][_0x284cc4(0x23c)][_0x284cc4(0x1bb)](_0x2c73e8=>_0x2c73e8['id']===_0x411540);if(!_0x243b49)return this[_0x284cc4(0x1c2)](_0x284cc4(0x1e2),{'error':new _0x4233bd(_0x284cc4(0x227),this,{'sourceId':_0x411540}),'sourceId':_0x411540}),[];try{const _0x481574=(await _0x243b49[_0x284cc4(0x1c0)](_0x2b4bdd))[_0x284cc4(0x1f8)](_0xf57a35=>{const _0xf2e07f=_0x284cc4,_0x42e804=this[_0xf2e07f(0x1f0)](_0xf57a35['id']);return{..._0xf57a35,'isInContext':_0x42e804};});return _0x243b49[_0x284cc4(0x210)]=_0x481574,this[_0x284cc4(0x1c2)](_0x284cc4(0x1ce),{'sourceId':_0x411540,'source':_0x243b49,'resources':_0x481574,'uid':_0x2dd93c}),_0x481574;}catch(_0x205f2f){return this[_0x284cc4(0x1c2)](_0x284cc4(0x1e2),{'error':new _0x4233bd(_0x284cc4(0x1e4),this,{'sourceId':_0x411540,'originalError':_0x205f2f}),'sourceId':_0x411540,'sourceLabel':_0x243b49[_0x284cc4(0x1dc)]}),[];}}async[_0x4aa975(0x1d8)](_0x2fb980,_0x3cda62){const _0x15ec3e=_0x4aa975;if(this[_0x15ec3e(0x1f0)](_0x3cda62['id']))return;let _0x595658=_0x3cda62[_0x15ec3e(0x1fe)];if(!_0x595658&&_0x2fb980[_0x15ec3e(0x216)])try{_0x595658=await _0x2fb980[_0x15ec3e(0x216)](_0x3cda62['id']);}catch(_0x4a544d){return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1bf),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'originalError':_0x4a544d}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}if(_0x595658)switch(_0x3cda62[_0x15ec3e(0x200)]){case _0x4b6fd9[_0x15ec3e(0x23e)]:if(_0x15ec3e(0x234)!=typeof _0x595658)return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x234),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});await this[_0x15ec3e(0x1d4)](_0x595658,{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']});break;case _0x4b6fd9[_0x15ec3e(0x1fc)]:if(!(_0x595658 instanceof File))return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x206),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});await this[_0x15ec3e(0x220)]([_0x595658],{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']});break;case _0x4b6fd9[_0x15ec3e(0x211)]:if(_0x15ec3e(0x1d5)!=typeof _0x595658||!(_0x15ec3e(0x217)in _0x595658)||!(_0x15ec3e(0x200)in _0x595658))return void this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x21e),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'expectedType':_0x15ec3e(0x1dd),'actualType':typeof _0x595658}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});_0x595658=AIChatContext[_0x15ec3e(0x1e5)](_0x595658,_0x3cda62[_0x15ec3e(0x1dc)]),await this[_0x15ec3e(0x220)]([_0x595658],{'label':_0x3cda62[_0x15ec3e(0x1dc)],'resourceId':_0x3cda62['id']},_0x4b6fd9[_0x15ec3e(0x211)]);break;default:this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1c7),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id'],'resourceType':_0x3cda62[_0x15ec3e(0x200)]}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}else this[_0x15ec3e(0x1c2)](_0x15ec3e(0x1e2),{'error':new _0x4233bd(_0x15ec3e(0x1c1),this,{'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']}),'resourceId':_0x3cda62['id'],'sourceId':_0x2fb980['id']});}static[_0x4aa975(0x1e5)](_0x4a3d04,_0x54bebc){const _0x3568f2=_0x4aa975;switch(_0x4a3d04[_0x3568f2(0x200)]){case _0x25c72c[_0x3568f2(0x22d)]:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1d1)});case _0x25c72c[_0x3568f2(0x20c)]:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1ee)});default:return new File([_0x4a3d04[_0x3568f2(0x217)]],_0x54bebc,{'type':_0x3568f2(0x1e9)});}}static[_0x4aa975(0x23a)](_0x55f25d){const _0x2b8143=_0x4aa975;switch(_0x55f25d[_0x2b8143(0x200)]){case _0x4b6fd9[_0x2b8143(0x1fc)]:return{'type':_0x4b6fd9[_0x2b8143(0x1fc)],'id':_0x55f25d['id']};case _0x4b6fd9[_0x2b8143(0x23e)]:return{'type':_0x4b6fd9[_0x2b8143(0x23e)],'id':_0x55f25d['id']};case _0x4b6fd9[_0x2b8143(0x20e)]:return{'type':_0x4b6fd9[_0x2b8143(0x20e)],'id':_0x55f25d['id'],..._0x55f25d[_0x2b8143(0x201)]?.[_0x2b8143(0x1e6)]&&{'selection':_0x55f25d[_0x2b8143(0x201)]}};case _0x4b6fd9[_0x2b8143(0x211)]:return{'type':_0x4b6fd9[_0x2b8143(0x1fc)],'id':_0x55f25d['id']};default:return null;}}[_0x4aa975(0x1cc)](_0x513ced,_0x12d595=!0x1){const _0x35829a=_0x4aa975;if(this[_0x35829a(0x205)][_0x35829a(0x229)](_0x513ced[_0x35829a(0x1b7)],_0x513ced),_0x513ced[_0x35829a(0x1d0)]||this[_0x35829a(0x1c2)](_0x35829a(0x1ea),{'contextItem':_0x513ced,'isLoading':_0x12d595}),_0x35829a(0x230)===_0x513ced[_0x35829a(0x1b7)]&&this[_0x35829a(0x1ff)](),_0x513ced[_0x35829a(0x219)]){const _0x5b1482=this[_0x35829a(0x20f)](_0x513ced[_0x35829a(0x219)]);_0x5b1482&&_0x5b1482[_0x35829a(0x212)](_0x441c9b=>{const _0x5907d0=_0x35829a;this[_0x5907d0(0x1c3)](_0x441c9b,_0x513ced[_0x5907d0(0x219)],!0x0);});}}[_0x4aa975(0x20d)](_0xe8a4d4){const _0x56cae1=_0x4aa975,_0x2efeea=this[_0x56cae1(0x205)][_0x56cae1(0x222)](_0xe8a4d4),_0xa69617=this[_0x56cae1(0x240)][_0x56cae1(0x222)](_0xe8a4d4);if(_0xa69617&&(_0xa69617[_0x56cae1(0x1fa)](),this[_0x56cae1(0x240)][_0x56cae1(0x1f1)](_0xe8a4d4)),_0x2efeea?.[_0x56cae1(0x219)]){const _0x1b3566=this[_0x56cae1(0x20f)](_0x2efeea[_0x56cae1(0x219)]);_0x1b3566&&_0x1b3566[_0x56cae1(0x212)](_0x2d1031=>{const _0x331259=_0x56cae1;this[_0x331259(0x1c3)](_0x2d1031,_0x2efeea[_0x331259(0x219)],!0x1);});}this[_0x56cae1(0x205)][_0x56cae1(0x1f1)](_0xe8a4d4),this[_0x56cae1(0x1c2)](_0x56cae1(0x204),{'uiId':_0xe8a4d4,'type':_0x2efeea?.[_0x56cae1(0x200)]}),_0x56cae1(0x230)===_0xe8a4d4&&this[_0x56cae1(0x1ff)]();}[_0x4aa975(0x1f7)](_0x31f473,_0x37df76){const _0xa82c22=_0x4aa975;if(this[_0xa82c22(0x205)][_0xa82c22(0x1c8)](_0x31f473[_0xa82c22(0x1b7)])&&(this[_0xa82c22(0x205)][_0xa82c22(0x229)](_0x31f473[_0xa82c22(0x1b7)],_0x31f473),this[_0xa82c22(0x1c2)](_0xa82c22(0x20b),{'contextItem':_0x31f473,'isLoading':_0x37df76}),_0x31f473[_0xa82c22(0x219)])){const _0xf73a90=this[_0xa82c22(0x20f)](_0x31f473[_0xa82c22(0x219)]);_0xf73a90&&_0xf73a90[_0xa82c22(0x212)](_0x5190eb=>{const _0x20525c=_0xa82c22;this[_0x20525c(0x1c3)](_0x5190eb,_0x31f473[_0x20525c(0x219)],!0x0);});}}[_0x4aa975(0x1ca)](_0x43ef10){const _0xb456d3=_0x4aa975;this[_0xb456d3(0x1ec)][_0xb456d3(0x229)](_0x43ef10[_0xb456d3(0x1b7)],_0x43ef10);}[_0x4aa975(0x228)](){const _0xe1b4bd=_0x4aa975;this[_0xe1b4bd(0x21f)]={'document':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1d9)]?.[_0xe1b4bd(0x1da)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1d7)]?.[_0xe1b4bd(0x1da)]},'files':{'enabled':!0x1!==this[_0xe1b4bd(0x1c9)]?.[_0xe1b4bd(0x1ef)]?.[_0xe1b4bd(0x1da)]},'sources':this[_0xe1b4bd(0x1e3)]()},this[_0xe1b4bd(0x1c2)](_0xe1b4bd(0x1bd),{'options':this[_0xe1b4bd(0x21f)]});}[_0x4aa975(0x1e3)](){const _0x21d28b=_0x4aa975;return this[_0x21d28b(0x1c9)]?.[_0x21d28b(0x23c)]?.[_0x21d28b(0x1f8)](_0x11ce10=>({..._0x11ce10,'resources':[]}))??[];}[_0x4aa975(0x1ff)](){const _0x3394dd=_0x4aa975,_0x367574=this[_0x3394dd(0x1df)]()||this[_0x3394dd(0x213)]();this[_0x3394dd(0x21f)][_0x3394dd(0x1d9)][_0x3394dd(0x1f6)]=_0x367574,this[_0x3394dd(0x1c2)](_0x3394dd(0x1bd),{'options':this[_0x3394dd(0x21f)]});}[_0x4aa975(0x1f0)](_0x2da3bb){const _0x4fd1c7=_0x4aa975;for(const _0x58f01b of this[_0x4fd1c7(0x205)][_0x4fd1c7(0x22c)]())if(_0x58f01b[_0x4fd1c7(0x219)]===_0x2da3bb)return!0x0;for(const _0x2e8485 of this[_0x4fd1c7(0x1ec)][_0x4fd1c7(0x22c)]())if(_0x2e8485[_0x4fd1c7(0x219)]===_0x2da3bb)return!0x0;return!0x1;}[_0x4aa975(0x20f)](_0x984e90){const _0x71909f=_0x4aa975,_0x20aad0=[];for(const _0x2a9d8c of this[_0x71909f(0x21f)][_0x71909f(0x23c)]){_0x2a9d8c[_0x71909f(0x210)][_0x71909f(0x1bb)](_0x287e78=>_0x287e78['id']===_0x984e90)&&_0x20aad0[_0x71909f(0x239)](_0x2a9d8c['id']);}return 0x0===_0x20aad0[_0x71909f(0x1e6)]?null:_0x20aad0;}[_0x4aa975(0x1c3)](_0x2120c4,_0x27895d,_0x3205d5){const _0x153f07=_0x4aa975,_0x4bedcc=this[_0x153f07(0x21f)][_0x153f07(0x23c)][_0x153f07(0x1bb)](_0xbcccb6=>_0xbcccb6['id']===_0x2120c4);if(!_0x4bedcc)return;const _0x4ff5a5=_0x4bedcc[_0x153f07(0x210)][_0x153f07(0x1bb)](_0x5dedc2=>_0x5dedc2['id']===_0x27895d);_0x4ff5a5&&(_0x4ff5a5[_0x153f07(0x1eb)]=_0x3205d5,this[_0x153f07(0x1c2)](_0x153f07(0x233),{'sourceId':_0x2120c4,'resourceId':_0x27895d,'isInContext':_0x3205d5}));}[_0x4aa975(0x22f)](_0x67d989){const _0x5694c9=_0x4aa975;this[_0x5694c9(0x1d3)][_0x5694c9(0x229)](_0x67d989,!0x0),this[_0x5694c9(0x1d3)][_0x5694c9(0x1d6)]&&this[_0x5694c9(0x1c2)](_0x5694c9(0x226),{'isUploadInProgress':!0x0});}[_0x4aa975(0x237)](_0x4d1b91){const _0xeaf7d9=_0x4aa975;this[_0xeaf7d9(0x1d3)][_0xeaf7d9(0x1f1)](_0x4d1b91),0x0===this[_0xeaf7d9(0x1d3)][_0xeaf7d9(0x1d6)]&&this[_0xeaf7d9(0x1c2)](_0xeaf7d9(0x226),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d171d=_0x1231;function _0x1231(_0x1764d9,_0x21834b){const _0x3c0b30=_0x3c0b();return _0x1231=function(_0x123187,_0x18b967){_0x123187=_0x123187-0x156;let _0x1b0790=_0x3c0b30[_0x123187];return _0x1b0790;},_0x1231(_0x1764d9,_0x21834b);}(function(_0x4b2db0,_0x5d3606){const _0x50d20e=_0x1231,_0x533d48=_0x4b2db0();while(!![]){try{const _0x8b53c2=-parseInt(_0x50d20e(0x16d))/0x1*(parseInt(_0x50d20e(0x180))/0x2)+parseInt(_0x50d20e(0x1bc))/0x3+-parseInt(_0x50d20e(0x169))/0x4+-parseInt(_0x50d20e(0x17f))/0x5+parseInt(_0x50d20e(0x16c))/0x6+parseInt(_0x50d20e(0x163))/0x7+parseInt(_0x50d20e(0x195))/0x8;if(_0x8b53c2===_0x5d3606)break;else _0x533d48['push'](_0x533d48['shift']());}catch(_0x57f230){_0x533d48['push'](_0x533d48['shift']());}}}(_0x3c0b,0x5103c));import{CKEditorError as _0x1178e8,EmitterMixin as _0x1e8d8d}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x2cb7ba}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0xe0fc45,AI_CONTEXT_MODEL_EVENT_NAMES as _0x1894ce}from'./aichatcontext.js';import{AICapabilities as _0x10cc47,CAPABILITIES_MODEL_EVENT_NAMES as _0x1d8e47}from'../../aicore/model/aicapabilities.js';function _0x3c0b(){const _0x358d4d=['conversationId','getAll','getCapabilitiesConfig','currentInteraction','createInteraction','ai-chat-conversation-start-no-model-selected','isCurrentDocumentInContext','startConversation','chatModels','getCurrentDocumentContext','setModel','6305776UVauLV','model','addResourceToContext','reset','reasoning','user','ai-chat-conversation-init-from-id-failed','_extractContextItems','load','getInteraction','chatCapabilities','addCurrentDocumentToContext','delegate','getDefault','content','selectedModel','appendContent','isCurrentDocumentInConversation','removeInteraction','getEditor','getPendingContextItems','modelSelected','group','text-delta','createReply','loadSourceResources','chatContext','length','modification-delta','options','message','fetchConversationMessages','fetchConversation','ai-chat-handle-user-interaction-already-in-progress','fire','type','attributes','conversationInitialized','defaultModelId','1505442YVsIdJ','updateCurrentDocumentInContext','error','init','toLowerCase','addToConversationContext','getDocumentContext','addSelectionToContext','prompt','indexOf','setConversationTitle','removeSelectionFromContext','quickActionData','isAvailable','getMessages','getConversation','lastInteraction','currentReply','ai-chat-conversation-set-model-null','addUrlToContext','text','stack','interactionCreated','3096324mHWBnU','stop','hasOwn','ai-chat-conversation-set-model-not-available','addFilesToContext','contextItems','1742684eegQpQ','ai-chat-conversation-init-failed','destroy','810414ChuoNl','82EWZsDu','webSearch','isStarted','updateCurrentDocument','toggleReasoning','start','ai-chat-handle-user-conversation-not-initialized','conversationStarted','toggleWebSearch','push','title','splice','connector','interactions','capabilities','find','sessionId','_processMessagesToInteractions','2260650qIpEgy','15800VEMKAB','role','assistant','isSelectionInContext','populateFromMessage','set','ai-chat-conversation-start-failed','ai-chat-conversation-already-started','removeFromContext','handleUserInteraction'];_0x3c0b=function(){return _0x358d4d;};return _0x3c0b();}import{AIChatInteraction as _0x117915}from'./aichatinteraction.js';export class AIChatConversation extends _0x1e8d8d(){['id'];[_0x4d171d(0x16f)]=!0x1;[_0x4d171d(0x17a)]=[];[_0x4d171d(0x18d)];[_0x4d171d(0x1a4)];[_0x4d171d(0x179)];[_0x4d171d(0x1b2)];constructor(_0x24d471){const _0x215cd2=_0x4d171d;super(),this[_0x215cd2(0x1b2)]=_0x24d471,this[_0x215cd2(0x179)]=_0x24d471[_0x215cd2(0x179)],this[_0x215cd2(0x192)]=_0x24d471[_0x215cd2(0x192)],this['id']=_0x24d471[_0x215cd2(0x18a)];}async[_0x4d171d(0x1bf)](_0x444ea0){const _0x139bd3=_0x4d171d;try{this[_0x139bd3(0x1af)]=new _0xe0fc45({'connector':this[_0x139bd3(0x179)],'config':_0x444ea0,'ownerId':this['id']}),this[_0x139bd3(0x1af)][_0x139bd3(0x1a1)](..._0x1894ce)['to'](this),this[_0x139bd3(0x1af)][_0x139bd3(0x1bf)](),this[_0x139bd3(0x19f)]=new _0x10cc47(),this[_0x139bd3(0x19f)][_0x139bd3(0x1a1)](..._0x1d8e47)['to'](this),this[_0x139bd3(0x19f)][_0x139bd3(0x1bf)]();const _0x5801cf=await this[_0x139bd3(0x192)][_0x139bd3(0x18b)]();this[_0x139bd3(0x1b7)](_0x139bd3(0x1ba),{'availableModels':_0x5801cf});const _0x2a8788=await this[_0x139bd3(0x192)][_0x139bd3(0x1a2)](this[_0x139bd3(0x1b2)][_0x139bd3(0x1bb)]);_0x2a8788&&await this[_0x139bd3(0x194)](_0x2a8788);}catch(_0x494b1a){const _0x391981=new _0x1178e8(_0x139bd3(0x16a),null,{'message':_0x494b1a[_0x139bd3(0x1b3)]});_0x391981[_0x139bd3(0x161)]=_0x494b1a[_0x139bd3(0x161)],this[_0x139bd3(0x1b7)](_0x139bd3(0x1be),{'error':_0x391981});}}async[_0x4d171d(0x172)](){const _0x161d4a=_0x4d171d;if(this[_0x161d4a(0x16f)])throw new _0x1178e8(_0x161d4a(0x187),null,{'conversation':this});if(!this[_0x161d4a(0x1a4)])throw new _0x1178e8(_0x161d4a(0x18f),null,{'conversation':this});try{const {id:_0x21cca2}=await this[_0x161d4a(0x179)][_0x161d4a(0x191)](this['id'],this[_0x161d4a(0x1b2)][_0x161d4a(0x1ab)])[_0x161d4a(0x15b)]();this['id']=_0x21cca2,this[_0x161d4a(0x16f)]=!0x0,this[_0x161d4a(0x1b7)](_0x161d4a(0x174),{'conversationId':this['id'],'selectedModel':this[_0x161d4a(0x1a4)]});}catch(_0x58b384){const _0x5a9cd5=new _0x1178e8(_0x161d4a(0x186),null,{'message':_0x58b384[_0x161d4a(0x1b3)]});_0x5a9cd5[_0x161d4a(0x161)]=_0x58b384[_0x161d4a(0x161)],this[_0x161d4a(0x1b7)](_0x161d4a(0x1be),{'error':_0x5a9cd5});}}async[_0x4d171d(0x19d)](_0x5ab345,_0x2ed7f7){const _0x579433=_0x4d171d;try{const _0x323859=await this[_0x579433(0x179)][_0x579433(0x1b5)](_0x5ab345)[_0x579433(0x15b)](),_0x410d4d=await this[_0x579433(0x179)][_0x579433(0x1b4)](_0x5ab345)[_0x579433(0x15a)](),_0x579cea=_0x410d4d[0x0][_0x579433(0x196)];this[_0x579433(0x16f)]=!0x0,this['id']=_0x323859['id'],_0x579433(0x177)in _0x323859?this[_0x579433(0x1b7)](_0x579433(0x156),_0x323859[_0x579433(0x177)],!0x0):this[_0x579433(0x1b7)](_0x579433(0x156),'',!0x0);const _0x4e29c3=(await this[_0x579433(0x192)][_0x579433(0x18b)]())[_0x579433(0x17c)](_0x8ec376=>_0x8ec376['id'][_0x579433(0x1c0)]()===_0x579cea[_0x579433(0x1c0)]());return this[_0x579433(0x1a4)]=_0x4e29c3,this[_0x579433(0x1b7)](_0x579433(0x1aa),{'selectedModel':_0x4e29c3,'isDisabled':!0x0}),await this[_0x579433(0x17e)](_0x410d4d,_0x2ed7f7,_0x579cea),this[_0x579433(0x18d)]=void 0x0,this;}catch(_0x16088e){const _0x6c03=new _0x1178e8(_0x579433(0x19b),null,{'message':_0x16088e[_0x579433(0x1b3)],'conversationId':_0x5ab345});throw _0x6c03[_0x579433(0x161)]=_0x16088e[_0x579433(0x161)],this[_0x579433(0x1b7)](_0x579433(0x1be),{'error':_0x6c03}),_0x6c03;}}async[_0x4d171d(0x17e)](_0x3b9c99,_0xe7a8ec,_0x1e2ff8){const _0x52d455=_0x4d171d;let _0x24df30;for(const _0x586c08 of _0x3b9c99)if(_0x52d455(0x19a)===_0x586c08[_0x52d455(0x181)]){const _0x2f7c2c=await this[_0x52d455(0x19c)](_0x586c08),_0x4e6aba={'isReasoningEnabled':Object[_0x52d455(0x165)](_0x586c08[_0x52d455(0x17b)],_0x52d455(0x199)),'isWebSearchEnabled':Object[_0x52d455(0x165)](_0x586c08[_0x52d455(0x17b)],_0x52d455(0x16e))};_0x24df30=this[_0x52d455(0x18e)]({'userMessage':_0x586c08[_0x52d455(0x1c4)],'contextItems':_0x2f7c2c,'capabilities':_0x4e6aba,'modelId':_0x1e2ff8,'quickActionData':_0x586c08[_0x52d455(0x1b9)]?.[_0x52d455(0x158)]}),this[_0x52d455(0x18d)]=_0x24df30,this[_0x52d455(0x1af)][_0x52d455(0x1c1)](this[_0x52d455(0x18d)][_0x52d455(0x168)]);}else{if(_0x52d455(0x182)===_0x586c08[_0x52d455(0x181)]&&_0x24df30)for(const _0x5896aa of _0x586c08[_0x52d455(0x1a3)]){const _0xff0c2a=_0x52d455(0x160)===_0x5896aa[_0x52d455(0x1b8)]?_0x52d455(0x1ac):_0x52d455(0x1b1),_0x4e7070=_0x24df30[_0x52d455(0x1c2)]()?.[_0x52d455(0x17d)]!==_0xe7a8ec;_0x24df30[_0x52d455(0x15d)]=_0x24df30[_0x52d455(0x1ad)]({'type':_0xff0c2a,'isDone':!0x0,'interactionId':_0x24df30['id'],'areActionsDisabled':_0x4e7070}),_0x24df30[_0x52d455(0x15d)][_0x52d455(0x1a5)](_0x5896aa[_0x52d455(0x1a3)]);}}}async[_0x4d171d(0x19c)](_0x282950){const _0x66388f=_0x4d171d,_0x4f4014=new Map();if(!_0x282950[_0x66388f(0x1a3)])return _0x4f4014;for(const _0x45e56f of _0x282950[_0x66388f(0x1a3)]){const _0x2093d1=await this[_0x66388f(0x1af)][_0x66388f(0x184)](_0x45e56f);_0x2093d1&&_0x4f4014[_0x66388f(0x185)](_0x2093d1['id'],_0x2093d1);}return _0x4f4014;}async[_0x4d171d(0x189)]({userMessage:_0x37bea5,quickActionData:_0x5975f2}){const _0x322191=_0x4d171d;if(!this[_0x322191(0x16f)])throw new _0x1178e8(_0x322191(0x173),null,{'conversation':this});if(this[_0x322191(0x18d)])throw new _0x1178e8(_0x322191(0x1b6),null,{'conversation':this});try{const _0x380177=this[_0x322191(0x1af)][_0x322191(0x1a9)](),_0x431f0f=this[_0x322191(0x19f)][_0x322191(0x18c)](),_0x31ebc0=this[_0x322191(0x1a4)]['id'];this[_0x322191(0x18d)]=this[_0x322191(0x18e)]({'userMessage':_0x37bea5,'contextItems':_0x380177,'capabilities':_0x431f0f,'modelId':_0x31ebc0,'quickActionData':_0x5975f2}),await this[_0x322191(0x18d)][_0x322191(0x172)](),this[_0x322191(0x1af)][_0x322191(0x1c1)](this[_0x322191(0x18d)][_0x322191(0x168)]);}catch(_0x32b72d){this[_0x322191(0x1b7)](_0x322191(0x1be),{'interactionId':this[_0x322191(0x18d)]?this[_0x322191(0x18d)]['id']:void 0x0,'error':_0x32b72d});}finally{this[_0x322191(0x18d)]?.[_0x322191(0x164)](),this[_0x322191(0x18d)]=void 0x0;}}[_0x4d171d(0x18e)]({userMessage:_0x12eb3e,contextItems:_0xbe1a03,capabilities:_0x8386a0,modelId:_0x1add60,quickActionData:_0x202f24}){const _0x116571=_0x4d171d,_0x401fa8=new _0x117915({'userMessage':_0x12eb3e,'contextItems':_0xbe1a03,'capabilities':_0x8386a0,'conversationId':this['id'],'connector':this[_0x116571(0x179)],'editor':this[_0x116571(0x1b2)][_0x116571(0x1a8)]&&this[_0x116571(0x1b2)][_0x116571(0x1a8)](),'model':_0x1add60,'quickActionData':_0x202f24});return _0x401fa8[_0x116571(0x1a1)](..._0x2cb7ba)['to'](this),this[_0x116571(0x17a)][_0x116571(0x176)](_0x401fa8),this[_0x116571(0x1b7)](_0x116571(0x162),_0x401fa8),_0x401fa8;}[_0x4d171d(0x19e)](_0x2c7029){const _0x41d5cc=_0x4d171d;return this[_0x41d5cc(0x17a)][_0x41d5cc(0x17c)](_0x582d3e=>_0x582d3e['id']===_0x2c7029);}[_0x4d171d(0x1a7)](_0x296bfe){const _0x5ed5cd=_0x4d171d,_0x463f4b=this[_0x5ed5cd(0x19e)](_0x296bfe);_0x463f4b&&(_0x463f4b[_0x5ed5cd(0x16b)](),this[_0x5ed5cd(0x17a)][_0x5ed5cd(0x178)](this[_0x5ed5cd(0x17a)][_0x5ed5cd(0x1c5)](_0x463f4b),0x1));}get[_0x4d171d(0x15c)](){const _0x3543ff=_0x4d171d;return this[_0x3543ff(0x17a)][this[_0x3543ff(0x17a)][_0x3543ff(0x1b0)]-0x1];}[_0x4d171d(0x1a0)](_0x41a104){const _0x3b4ed5=_0x4d171d;this[_0x3b4ed5(0x1af)][_0x3b4ed5(0x1a0)](_0x41a104);}async[_0x4d171d(0x1bd)]({content:_0x392d25,version:_0x15448b,sessionId:_0x33fbba,selections:_0x21c3cd}){const _0x183d40=_0x4d171d;await this[_0x183d40(0x1af)][_0x183d40(0x170)](_0x392d25,_0x15448b,_0x33fbba,_0x21c3cd);}[_0x4d171d(0x193)](){const _0x1360d8=_0x4d171d;return this[_0x1360d8(0x18d)]?.[_0x1360d8(0x1c2)]()?.[_0x1360d8(0x1a3)]||'';}[_0x4d171d(0x1c3)](_0x2eb24b){const _0x48eca8=_0x4d171d;this[_0x48eca8(0x1af)][_0x48eca8(0x1c3)](_0x2eb24b);}[_0x4d171d(0x157)](){const _0x40d7f1=_0x4d171d;this[_0x40d7f1(0x1af)][_0x40d7f1(0x157)]();}[_0x4d171d(0x167)](_0x5f30d0){const _0x4403ee=_0x4d171d;this[_0x4403ee(0x1af)][_0x4403ee(0x167)](_0x5f30d0);}[_0x4d171d(0x15f)](_0x4bfbf0){const _0x8e314d=_0x4d171d;this[_0x8e314d(0x1af)][_0x8e314d(0x15f)](_0x4bfbf0);}[_0x4d171d(0x197)](_0x384c0a,_0x11fc44){const _0x21121d=_0x4d171d;this[_0x21121d(0x1af)][_0x21121d(0x197)](_0x384c0a,_0x11fc44);}[_0x4d171d(0x1ae)](_0x2ca3ce,_0x29320b,_0xc709d3){const _0x1b775e=_0x4d171d;return this[_0x1b775e(0x1af)][_0x1b775e(0x1ae)](_0x2ca3ce,_0x29320b,_0xc709d3);}[_0x4d171d(0x188)](_0x432698){const _0x3262fe=_0x4d171d;this[_0x3262fe(0x1af)][_0x3262fe(0x188)](_0x432698);}[_0x4d171d(0x175)](){const _0x57c8fb=_0x4d171d;this[_0x57c8fb(0x19f)][_0x57c8fb(0x175)]();}[_0x4d171d(0x171)](){const _0x42d54d=_0x4d171d;this[_0x42d54d(0x19f)][_0x42d54d(0x171)]();}[_0x4d171d(0x190)](){const _0x34a49b=_0x4d171d;return this[_0x34a49b(0x1af)][_0x34a49b(0x190)]();}[_0x4d171d(0x1a6)](){const _0x31c6d6=_0x4d171d;return this[_0x31c6d6(0x1af)][_0x31c6d6(0x1a6)]();}[_0x4d171d(0x183)](){const _0x2b4b98=_0x4d171d;return this[_0x2b4b98(0x1af)][_0x2b4b98(0x183)]();}async[_0x4d171d(0x194)](_0x3722c3){const _0x234bcd=_0x4d171d;if(!_0x3722c3)throw new _0x1178e8(_0x234bcd(0x15e),null,{'conversation':this});if(!0x1===await this[_0x234bcd(0x192)][_0x234bcd(0x159)](_0x3722c3))throw new _0x1178e8(_0x234bcd(0x166),null,{'conversation':this,'model':_0x3722c3});_0x3722c3['id']!==this[_0x234bcd(0x1a4)]?.['id']&&(this[_0x234bcd(0x1a4)]=_0x3722c3,this[_0x234bcd(0x19f)][_0x234bcd(0x198)](),this[_0x234bcd(0x1b7)](_0x234bcd(0x1aa),{'selectedModel':_0x3722c3}));}}
23
+ function _0x3cf3(){const _0x1161dd=['ai-chat-conversation-init-failed','removeInteraction','1840890PoNgNS','conversationInitialized','webSearch','text','lastInteraction','push','updateCurrentDocument','getCurrentDocumentContext','stack','getPendingContextItems','stop','ai-chat-handle-user-conversation-not-initialized','modification-delta','populateFromMessage','currentReply','_processMessagesToInteractions','toLowerCase','conversationStarted','startConversation','addFilesToContext','ai-chat-conversation-init-from-id-failed','indexOf','toggleReasoning','fetchConversation','getDocumentContext','isStarted','getAll','interactions','assistant','isCurrentDocumentInContext','ai-chat-conversation-set-model-null','user','group','setModel','666700GaMNcI','toggleWebSearch','ai-chat-conversation-set-model-not-available','addCurrentDocumentToContext','text-delta','modelSelected','quickActionData','role','currentInteraction','reset','set','createReply','getInteraction','model','fetchConversationMessages','selectedModel','removeFromContext','type','2205705WBSyUt','connector','appendContent','chatModels','error','329975JpDHJN','handleUserInteraction','isCurrentDocumentInConversation','_extractContextItems','ai-chat-conversation-start-no-model-selected','destroy','ai-chat-conversation-start-failed','getCapabilitiesConfig','contextItems','attributes','addToConversationContext','addUrlToContext','638982woLWjp','delegate','ai-chat-conversation-already-started','loadSourceResources','init','conversationId','reasoning','addSelectionToContext','removeSelectionFromContext','prompt','isAvailable','chatCapabilities','content','load','1778433hokdqB','message','chatContext','getConversation','setConversationTitle','capabilities','splice','interactionCreated','updateCurrentDocumentInContext','start','getDefault','defaultModelId','hasOwn','getEditor','title','isSelectionInContext','length','find','ai-chat-handle-user-interaction-already-in-progress','createInteraction','getMessages','fire','sessionId','addResourceToContext','1973475pcocPX','options'];_0x3cf3=function(){return _0x1161dd;};return _0x3cf3();}const _0x4d277a=_0x1293;(function(_0x33ec20,_0x39cc91){const _0x4916f7=_0x1293,_0xa824f2=_0x33ec20();while(!![]){try{const _0x156137=parseInt(_0x4916f7(0xea))/0x1+-parseInt(_0x4916f7(0xf6))/0x2+parseInt(_0x4916f7(0x104))/0x3+parseInt(_0x4916f7(0xd3))/0x4+-parseInt(_0x4916f7(0xe5))/0x5+-parseInt(_0x4916f7(0xb1))/0x6+parseInt(_0x4916f7(0xad))/0x7;if(_0x156137===_0x39cc91)break;else _0xa824f2['push'](_0xa824f2['shift']());}catch(_0x5ea23e){_0xa824f2['push'](_0xa824f2['shift']());}}}(_0x3cf3,0x4a343));function _0x1293(_0xb56632,_0x4ba8e5){const _0x3cf3ab=_0x3cf3();return _0x1293=function(_0x12937f,_0x462087){_0x12937f=_0x12937f-0xab;let _0x414eeb=_0x3cf3ab[_0x12937f];return _0x414eeb;},_0x1293(_0xb56632,_0x4ba8e5);}import{CKEditorError as _0x19919e,EmitterMixin as _0x251e58}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x13788c}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x399914,AI_CONTEXT_MODEL_EVENT_NAMES as _0x53e23}from'./aichatcontext.js';import{AICapabilities as _0x31d052,CAPABILITIES_MODEL_EVENT_NAMES as _0x30c301}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4ee9e5}from'./aichatinteraction.js';export class AIChatConversation extends _0x251e58(){['id'];[_0x4d277a(0xca)]=!0x1;[_0x4d277a(0xcc)]=[];[_0x4d277a(0xdb)];[_0x4d277a(0xe2)];[_0x4d277a(0xe6)];[_0x4d277a(0xae)];constructor(_0x3ff07e){const _0x27b896=_0x4d277a;super(),this[_0x27b896(0xae)]=_0x3ff07e,this[_0x27b896(0xe6)]=_0x3ff07e[_0x27b896(0xe6)],this[_0x27b896(0xe8)]=_0x3ff07e[_0x27b896(0xe8)],this['id']=_0x3ff07e[_0x27b896(0xfb)];}async[_0x4d277a(0xfa)](_0x307ae2){const _0x319eaa=_0x4d277a;try{this[_0x319eaa(0x106)]=new _0x399914({'connector':this[_0x319eaa(0xe6)],'config':_0x307ae2,'ownerId':this['id']}),this[_0x319eaa(0x106)][_0x319eaa(0xf7)](..._0x53e23)['to'](this),this[_0x319eaa(0x106)][_0x319eaa(0xfa)](),this[_0x319eaa(0x101)]=new _0x31d052(),this[_0x319eaa(0x101)][_0x319eaa(0xf7)](..._0x30c301)['to'](this),this[_0x319eaa(0x101)][_0x319eaa(0xfa)]();const _0x2ab149=await this[_0x319eaa(0xe8)][_0x319eaa(0xcb)]();this[_0x319eaa(0x119)](_0x319eaa(0xb2),{'availableModels':_0x2ab149});const _0xaff125=await this[_0x319eaa(0xe8)][_0x319eaa(0x10e)](this[_0x319eaa(0xae)][_0x319eaa(0x10f)]);_0xaff125&&await this[_0x319eaa(0xd2)](_0xaff125);}catch(_0x1e9f3b){const _0x489dd1=new _0x19919e(_0x319eaa(0xaf),null,{'message':_0x1e9f3b[_0x319eaa(0x105)]});_0x489dd1[_0x319eaa(0xb9)]=_0x1e9f3b[_0x319eaa(0xb9)],this[_0x319eaa(0x119)](_0x319eaa(0xe9),{'error':_0x489dd1});}}async[_0x4d277a(0x10d)](){const _0x42a0e6=_0x4d277a;if(this[_0x42a0e6(0xca)])throw new _0x19919e(_0x42a0e6(0xf8),null,{'conversation':this});if(!this[_0x42a0e6(0xe2)])throw new _0x19919e(_0x42a0e6(0xee),null,{'conversation':this});try{const {id:_0x3ffb95}=await this[_0x42a0e6(0xe6)][_0x42a0e6(0xc3)](this['id'],this[_0x42a0e6(0xae)][_0x42a0e6(0xd1)])[_0x42a0e6(0x107)]();this['id']=_0x3ffb95,this[_0x42a0e6(0xca)]=!0x0,this[_0x42a0e6(0x119)](_0x42a0e6(0xc2),{'conversationId':this['id'],'selectedModel':this[_0x42a0e6(0xe2)]});}catch(_0x125e82){const _0x3e8656=new _0x19919e(_0x42a0e6(0xf0),null,{'message':_0x125e82[_0x42a0e6(0x105)]});_0x3e8656[_0x42a0e6(0xb9)]=_0x125e82[_0x42a0e6(0xb9)],this[_0x42a0e6(0x119)](_0x42a0e6(0xe9),{'error':_0x3e8656});}}async[_0x4d277a(0x103)](_0x30bb3c,_0x9b30c3){const _0x1b4501=_0x4d277a;try{const _0x3b0449=await this[_0x1b4501(0xe6)][_0x1b4501(0xc8)](_0x30bb3c)[_0x1b4501(0x107)](),_0x34a0f1=await this[_0x1b4501(0xe6)][_0x1b4501(0xe1)](_0x30bb3c)[_0x1b4501(0x118)](),_0x19ec0d=_0x34a0f1[0x0][_0x1b4501(0xe0)];this[_0x1b4501(0xca)]=!0x0,this['id']=_0x3b0449['id'],_0x1b4501(0x112)in _0x3b0449?this[_0x1b4501(0x119)](_0x1b4501(0x108),_0x3b0449[_0x1b4501(0x112)],!0x0):this[_0x1b4501(0x119)](_0x1b4501(0x108),'',!0x0);const _0xdf2e14=(await this[_0x1b4501(0xe8)][_0x1b4501(0xcb)]())[_0x1b4501(0x115)](_0x256d82=>_0x256d82['id'][_0x1b4501(0xc1)]()===_0x19ec0d[_0x1b4501(0xc1)]());return this[_0x1b4501(0xe2)]=_0xdf2e14,this[_0x1b4501(0x119)](_0x1b4501(0xd8),{'selectedModel':_0xdf2e14,'isDisabled':!0x0}),await this[_0x1b4501(0xc0)](_0x34a0f1,_0x9b30c3,_0x19ec0d),this[_0x1b4501(0xdb)]=void 0x0,this;}catch(_0x177039){const _0xf24201=new _0x19919e(_0x1b4501(0xc5),null,{'message':_0x177039[_0x1b4501(0x105)],'conversationId':_0x30bb3c});throw _0xf24201[_0x1b4501(0xb9)]=_0x177039[_0x1b4501(0xb9)],this[_0x1b4501(0x119)](_0x1b4501(0xe9),{'error':_0xf24201}),_0xf24201;}}async[_0x4d277a(0xc0)](_0x58b306,_0x8b5a4a,_0x34f464){const _0x527eb4=_0x4d277a;let _0x1de38e;for(const _0x112de7 of _0x58b306)if(_0x527eb4(0xd0)===_0x112de7[_0x527eb4(0xda)]){const _0x370abd=await this[_0x527eb4(0xed)](_0x112de7),_0x14c33e={'isReasoningEnabled':Object[_0x527eb4(0x110)](_0x112de7[_0x527eb4(0x109)],_0x527eb4(0xfc)),'isWebSearchEnabled':Object[_0x527eb4(0x110)](_0x112de7[_0x527eb4(0x109)],_0x527eb4(0xb3))};_0x1de38e=this[_0x527eb4(0x117)]({'userMessage':_0x112de7[_0x527eb4(0xff)],'contextItems':_0x370abd,'capabilities':_0x14c33e,'modelId':_0x34f464,'quickActionData':_0x112de7[_0x527eb4(0xf3)]?.[_0x527eb4(0xd9)]}),this[_0x527eb4(0xdb)]=_0x1de38e,this[_0x527eb4(0x106)][_0x527eb4(0xf4)](this[_0x527eb4(0xdb)][_0x527eb4(0xf2)]);}else{if(_0x527eb4(0xcd)===_0x112de7[_0x527eb4(0xda)]&&_0x1de38e)for(const _0x231c8f of _0x112de7[_0x527eb4(0x102)]){const _0x261a18=_0x527eb4(0xb4)===_0x231c8f[_0x527eb4(0xe4)]?_0x527eb4(0xd7):_0x527eb4(0xbd),_0x7e2bd8=_0x1de38e[_0x527eb4(0xc9)]()?.[_0x527eb4(0xab)]!==_0x8b5a4a;_0x1de38e[_0x527eb4(0xbf)]=_0x1de38e[_0x527eb4(0xde)]({'type':_0x261a18,'isDone':!0x0,'interactionId':_0x1de38e['id'],'areActionsDisabled':_0x7e2bd8}),_0x1de38e[_0x527eb4(0xbf)][_0x527eb4(0xe7)](_0x231c8f[_0x527eb4(0x102)]);}}}async[_0x4d277a(0xed)](_0x801221){const _0x3eefd5=_0x4d277a,_0x2539fc=new Map();if(!_0x801221[_0x3eefd5(0x102)])return _0x2539fc;for(const _0x4d9f69 of _0x801221[_0x3eefd5(0x102)]){const _0x1ca674=await this[_0x3eefd5(0x106)][_0x3eefd5(0xbe)](_0x4d9f69);_0x1ca674&&_0x2539fc[_0x3eefd5(0xdd)](_0x1ca674['id'],_0x1ca674);}return _0x2539fc;}async[_0x4d277a(0xeb)]({userMessage:_0x415a7c,quickActionData:_0x13dab3}){const _0x512746=_0x4d277a;if(!this[_0x512746(0xca)])throw new _0x19919e(_0x512746(0xbc),null,{'conversation':this});if(this[_0x512746(0xdb)])throw new _0x19919e(_0x512746(0x116),null,{'conversation':this});try{const _0x124426=this[_0x512746(0x106)][_0x512746(0xba)](),_0x1dc5ba=this[_0x512746(0x101)][_0x512746(0xf1)](),_0x2b73c9=this[_0x512746(0xe2)]['id'];this[_0x512746(0xdb)]=this[_0x512746(0x117)]({'userMessage':_0x415a7c,'contextItems':_0x124426,'capabilities':_0x1dc5ba,'modelId':_0x2b73c9,'quickActionData':_0x13dab3}),await this[_0x512746(0xdb)][_0x512746(0x10d)](),this[_0x512746(0x106)][_0x512746(0xf4)](this[_0x512746(0xdb)][_0x512746(0xf2)]);}catch(_0x58f949){this[_0x512746(0x119)](_0x512746(0xe9),{'interactionId':this[_0x512746(0xdb)]?this[_0x512746(0xdb)]['id']:void 0x0,'error':_0x58f949});}finally{this[_0x512746(0xdb)]?.[_0x512746(0xbb)](),this[_0x512746(0xdb)]=void 0x0;}}[_0x4d277a(0x117)]({userMessage:_0x14065c,contextItems:_0x1369dd,capabilities:_0x463710,modelId:_0x5c77db,quickActionData:_0x1a9858}){const _0x466f60=_0x4d277a,_0x309e8b=new _0x4ee9e5({'userMessage':_0x14065c,'contextItems':_0x1369dd,'capabilities':_0x463710,'conversationId':this['id'],'connector':this[_0x466f60(0xe6)],'editor':this[_0x466f60(0xae)][_0x466f60(0x111)]&&this[_0x466f60(0xae)][_0x466f60(0x111)](),'model':_0x5c77db,'quickActionData':_0x1a9858});return _0x309e8b[_0x466f60(0xf7)](..._0x13788c)['to'](this),this[_0x466f60(0xcc)][_0x466f60(0xb6)](_0x309e8b),this[_0x466f60(0x119)](_0x466f60(0x10b),_0x309e8b),_0x309e8b;}[_0x4d277a(0xdf)](_0x1482a5){const _0x55caf2=_0x4d277a;return this[_0x55caf2(0xcc)][_0x55caf2(0x115)](_0x480377=>_0x480377['id']===_0x1482a5);}[_0x4d277a(0xb0)](_0x85c342){const _0x51a635=_0x4d277a,_0x5cb8ef=this[_0x51a635(0xdf)](_0x85c342);_0x5cb8ef&&(_0x5cb8ef[_0x51a635(0xef)](),this[_0x51a635(0xcc)][_0x51a635(0x10a)](this[_0x51a635(0xcc)][_0x51a635(0xc6)](_0x5cb8ef),0x1));}get[_0x4d277a(0xb5)](){const _0x21a9dc=_0x4d277a;return this[_0x21a9dc(0xcc)][this[_0x21a9dc(0xcc)][_0x21a9dc(0x114)]-0x1];}[_0x4d277a(0xd6)](_0xc9b058){const _0x6c3568=_0x4d277a;this[_0x6c3568(0x106)][_0x6c3568(0xd6)](_0xc9b058);}async[_0x4d277a(0x10c)]({content:_0x265e3a,version:_0x59af22,sessionId:_0x367131,selections:_0x51413a}){const _0x43fc17=_0x4d277a;await this[_0x43fc17(0x106)][_0x43fc17(0xb7)](_0x265e3a,_0x59af22,_0x367131,_0x51413a);}[_0x4d277a(0xb8)](){const _0x1472bd=_0x4d277a;return this[_0x1472bd(0xdb)]?.[_0x1472bd(0xc9)]()?.[_0x1472bd(0x102)]||'';}[_0x4d277a(0xfd)](_0x288388){const _0x2d6129=_0x4d277a;this[_0x2d6129(0x106)][_0x2d6129(0xfd)](_0x288388);}[_0x4d277a(0xfe)](){const _0x5e16aa=_0x4d277a;this[_0x5e16aa(0x106)][_0x5e16aa(0xfe)]();}[_0x4d277a(0xc4)](_0x442112){const _0x165d36=_0x4d277a;this[_0x165d36(0x106)][_0x165d36(0xc4)](_0x442112);}[_0x4d277a(0xf5)](_0x16be80){const _0x220971=_0x4d277a;this[_0x220971(0x106)][_0x220971(0xf5)](_0x16be80);}[_0x4d277a(0xac)](_0x4e5b2d,_0x189b17){const _0x1cd3d0=_0x4d277a;this[_0x1cd3d0(0x106)][_0x1cd3d0(0xac)](_0x4e5b2d,_0x189b17);}[_0x4d277a(0xf9)](_0x56e9df,_0x1938a6,_0x2a0159){const _0x215b9d=_0x4d277a;return this[_0x215b9d(0x106)][_0x215b9d(0xf9)](_0x56e9df,_0x1938a6,_0x2a0159);}[_0x4d277a(0xe3)](_0xbafa26){const _0x1e122e=_0x4d277a;this[_0x1e122e(0x106)][_0x1e122e(0xe3)](_0xbafa26);}[_0x4d277a(0xd4)](){const _0x1cb734=_0x4d277a;this[_0x1cb734(0x101)][_0x1cb734(0xd4)]();}[_0x4d277a(0xc7)](){const _0x513b89=_0x4d277a;this[_0x513b89(0x101)][_0x513b89(0xc7)]();}[_0x4d277a(0xce)](){const _0x21aee6=_0x4d277a;return this[_0x21aee6(0x106)][_0x21aee6(0xce)]();}[_0x4d277a(0xec)](){const _0x1285c9=_0x4d277a;return this[_0x1285c9(0x106)][_0x1285c9(0xec)]();}[_0x4d277a(0x113)](){const _0x31cd72=_0x4d277a;return this[_0x31cd72(0x106)][_0x31cd72(0x113)]();}async[_0x4d277a(0xd2)](_0x916f71){const _0x12bf83=_0x4d277a;if(!_0x916f71)throw new _0x19919e(_0x12bf83(0xcf),null,{'conversation':this});if(!0x1===await this[_0x12bf83(0xe8)][_0x12bf83(0x100)](_0x916f71))throw new _0x19919e(_0x12bf83(0xd5),null,{'conversation':this,'model':_0x916f71});_0x916f71['id']!==this[_0x12bf83(0xe2)]?.['id']&&(this[_0x12bf83(0xe2)]=_0x916f71,this[_0x12bf83(0x101)][_0x12bf83(0xdc)](),this[_0x12bf83(0x119)](_0x12bf83(0xd8),{'selectedModel':_0x916f71}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x33db(_0x1ce914,_0x3cadc4){var _0x165781=_0x1657();return _0x33db=function(_0x33db56,_0x52fa2f){_0x33db56=_0x33db56-0x123;var _0x5e576e=_0x165781[_0x33db56];return _0x5e576e;},_0x33db(_0x1ce914,_0x3cadc4);}var _0xa12045=_0x33db;(function(_0x238cdd,_0x2aa9e5){var _0x1ec032=_0x33db,_0x4e2228=_0x238cdd();while(!![]){try{var _0x25a7cf=parseInt(_0x1ec032(0x128))/0x1*(-parseInt(_0x1ec032(0x130))/0x2)+-parseInt(_0x1ec032(0x134))/0x3*(-parseInt(_0x1ec032(0x13a))/0x4)+-parseInt(_0x1ec032(0x12c))/0x5+-parseInt(_0x1ec032(0x132))/0x6+-parseInt(_0x1ec032(0x13b))/0x7+parseInt(_0x1ec032(0x12d))/0x8*(-parseInt(_0x1ec032(0x126))/0x9)+-parseInt(_0x1ec032(0x123))/0xa*(-parseInt(_0x1ec032(0x127))/0xb);if(_0x25a7cf===_0x2aa9e5)break;else _0x4e2228['push'](_0x4e2228['shift']());}catch(_0x526125){_0x4e2228['push'](_0x4e2228['shift']());}}}(_0x1657,0x7a252));import{AICapabilities as _0x4ef6e8}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0xd5432c}from'../../aicore/model/aiinteraction.js';function _0x1657(){var _0x514163=['model','3063510slMmTD','connector','112065NwXtnS','conversationId','getDocumentContext','queryAssistant','getCapabilitiesRequestData','sendRequest','80LAwaxB','5246647tDToJW','380IPksCE','quickActionData','userMessage','135171WgKDee','650925kMndMY','1agvmIR','contextItems','get','mapContextItemsToRequestData','3792220IVxfzB','104nrveTv','capabilities','current-document','563294ExAMOE'];_0x1657=function(){return _0x514163;};return _0x1657();}import{AIChatContext as _0x5ba996}from'./aichatcontext.js';export class AIChatInteraction extends _0xd5432c{[_0xa12045(0x125)];[_0xa12045(0x135)];[_0xa12045(0x129)]=new Map();[_0xa12045(0x131)];[_0xa12045(0x124)];constructor(_0x3e49f7){var _0x2efd47=_0xa12045;super(_0x3e49f7),this[_0x2efd47(0x135)]=_0x3e49f7[_0x2efd47(0x135)],this[_0x2efd47(0x129)]=_0x3e49f7[_0x2efd47(0x129)],this[_0x2efd47(0x12e)]=_0x3e49f7[_0x2efd47(0x12e)],this[_0x2efd47(0x125)]=_0x3e49f7[_0x2efd47(0x125)],this[_0x2efd47(0x131)]=_0x3e49f7[_0x2efd47(0x131)],this[_0x2efd47(0x124)]=_0x3e49f7[_0x2efd47(0x124)];}async[_0xa12045(0x139)](){var _0x5ec35b=_0xa12045;return this[_0x5ec35b(0x133)][_0x5ec35b(0x137)]({'message':this[_0x5ec35b(0x125)],'conversationId':this[_0x5ec35b(0x135)],'parts':_0x5ba996[_0x5ec35b(0x12b)](this[_0x5ec35b(0x129)]),'capabilities':_0x4ef6e8[_0x5ec35b(0x138)](this[_0x5ec35b(0x12e)]),'model':this[_0x5ec35b(0x131)],'quickActionData':this[_0x5ec35b(0x124)]});}[_0xa12045(0x136)](){var _0x441af2=_0xa12045;return this[_0x441af2(0x129)][_0x441af2(0x12a)](_0x441af2(0x12f));}}
23
+ function _0x5599(_0x382109,_0x2ded19){var _0x1d7366=_0x1d73();return _0x5599=function(_0x559902,_0x341fb9){_0x559902=_0x559902-0x70;var _0x9a4a5c=_0x1d7366[_0x559902];return _0x9a4a5c;},_0x5599(_0x382109,_0x2ded19);}var _0x205ad8=_0x5599;(function(_0x498ed6,_0x2f1d81){var _0x463301=_0x5599,_0x7edda6=_0x498ed6();while(!![]){try{var _0x286f21=parseInt(_0x463301(0x85))/0x1+-parseInt(_0x463301(0x7c))/0x2+parseInt(_0x463301(0x81))/0x3*(-parseInt(_0x463301(0x84))/0x4)+parseInt(_0x463301(0x76))/0x5*(-parseInt(_0x463301(0x75))/0x6)+-parseInt(_0x463301(0x80))/0x7*(parseInt(_0x463301(0x82))/0x8)+parseInt(_0x463301(0x86))/0x9+parseInt(_0x463301(0x77))/0xa;if(_0x286f21===_0x2f1d81)break;else _0x7edda6['push'](_0x7edda6['shift']());}catch(_0x294db8){_0x7edda6['push'](_0x7edda6['shift']());}}}(_0x1d73,0xb3dca));import{AICapabilities as _0x28a716}from'../../aicore/model/aicapabilities.js';function _0x1d73(){var _0x451a94=['quickActionData','model','2270586imdGwq','userMessage','sendRequest','connector','8850233lRIGKm','258fuCvEK','8ERoyhy','getDocumentContext','8852hhLkAI','932343BKPwIo','3404115gLEjMY','conversationId','contextItems','getCapabilitiesRequestData','mapContextItemsToRequestData','get','current-document','31938ognQQC','20CJfoCN','20373580BcvACs','queryAssistant','capabilities'];_0x1d73=function(){return _0x451a94;};return _0x1d73();}import{AIInteraction as _0x354d9d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x2db3ce}from'./aichatcontext.js';export class AIChatInteraction extends _0x354d9d{[_0x205ad8(0x7d)];[_0x205ad8(0x87)];[_0x205ad8(0x70)]=new Map();[_0x205ad8(0x7b)];[_0x205ad8(0x7a)];constructor(_0x450469){var _0x1bfb40=_0x205ad8;super(_0x450469),this[_0x1bfb40(0x87)]=_0x450469[_0x1bfb40(0x87)],this[_0x1bfb40(0x70)]=_0x450469[_0x1bfb40(0x70)],this[_0x1bfb40(0x79)]=_0x450469[_0x1bfb40(0x79)],this[_0x1bfb40(0x7d)]=_0x450469[_0x1bfb40(0x7d)],this[_0x1bfb40(0x7b)]=_0x450469[_0x1bfb40(0x7b)],this[_0x1bfb40(0x7a)]=_0x450469[_0x1bfb40(0x7a)];}async[_0x205ad8(0x7e)](){var _0x7e5af8=_0x205ad8;return this[_0x7e5af8(0x7f)][_0x7e5af8(0x78)]({'message':this[_0x7e5af8(0x7d)],'conversationId':this[_0x7e5af8(0x87)],'parts':_0x2db3ce[_0x7e5af8(0x72)](this[_0x7e5af8(0x70)]),'capabilities':_0x28a716[_0x7e5af8(0x71)](this[_0x7e5af8(0x79)]),'model':this[_0x7e5af8(0x7b)],'quickActionData':this[_0x7e5af8(0x7a)]});}[_0x205ad8(0x83)](){var _0x27740c=_0x205ad8;return this[_0x27740c(0x70)][_0x27740c(0x73)](_0x27740c(0x74));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x268229=_0xcaeb;(function(_0x4793b4,_0x5ef9f5){const _0x204629=_0xcaeb,_0x2e162d=_0x4793b4();while(!![]){try{const _0x1840cc=parseInt(_0x204629(0xd4))/0x1+parseInt(_0x204629(0xc8))/0x2+parseInt(_0x204629(0xdc))/0x3*(-parseInt(_0x204629(0xc3))/0x4)+parseInt(_0x204629(0xd5))/0x5*(-parseInt(_0x204629(0xd0))/0x6)+-parseInt(_0x204629(0xe0))/0x7*(parseInt(_0x204629(0xe1))/0x8)+parseInt(_0x204629(0xc7))/0x9*(parseInt(_0x204629(0xd9))/0xa)+-parseInt(_0x204629(0xdf))/0xb*(parseInt(_0x204629(0xda))/0xc);if(_0x1840cc===_0x5ef9f5)break;else _0x2e162d['push'](_0x2e162d['shift']());}catch(_0x5a42e9){_0x2e162d['push'](_0x2e162d['shift']());}}}(_0x4dc9,0xc84ff));import{EmitterMixin as _0x4b5ca1,logWarning as _0x4e2311}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x4b5ca1(){[_0x268229(0xd6)]=[];[_0x268229(0xce)];constructor({connector:_0x4265e4}){const _0xb8b2d5=_0x268229;super(),this[_0xb8b2d5(0xce)]=_0x4265e4;}async[_0x268229(0xcd)](){const _0x32ded0=_0x268229;if(!this[_0x32ded0(0xd6)][_0x32ded0(0xca)]){const _0x3625c6=this[_0x32ded0(0xce)][_0x32ded0(0xcb)](),_0x20e713=(await _0x3625c6[_0x32ded0(0xd2)]())[_0x32ded0(0xd8)][_0x32ded0(0xdb)]((_0x3216a9,_0x1b0c84)=>{const _0x23763a=_0x32ded0,_0x1b2aa9=Object[_0x23763a(0xd3)](_0x3216a9[_0x23763a(0xc9)])[_0x23763a(0xc6)](_0x5c555b=>_0x5c555b[_0x23763a(0xc5)])[_0x23763a(0xca)];return Object[_0x23763a(0xd3)](_0x1b0c84[_0x23763a(0xc9)])[_0x23763a(0xc6)](_0x15750b=>_0x15750b[_0x23763a(0xc5)])[_0x23763a(0xca)]-_0x1b2aa9;});this[_0x32ded0(0xd6)]=_0x20e713;}return this[_0x32ded0(0xd6)];}async[_0x268229(0xc4)](_0x6941fc){const _0x8fc245=_0x268229,_0x5d14ea=await this[_0x8fc245(0xcd)]();if(!_0x5d14ea[_0x8fc245(0xca)])return null;if(_0x6941fc){const _0x296f08=_0x5d14ea[_0x8fc245(0xd1)](_0x403cd8=>_0x403cd8['id']===_0x6941fc);if(_0x296f08)return _0x296f08;_0x4e2311(_0x8fc245(0xde),{'defaultModelId':_0x6941fc,'fallBackModelId':_0x5d14ea[0x0]['id']});}return _0x5d14ea[0x0];}async[_0x268229(0xdd)](_0x59dbf9){const _0x337aed=_0x268229;return(await this[_0x337aed(0xcd)]())[_0x337aed(0xd7)](_0x54bad8=>_0x54bad8[_0x337aed(0xcf)]===_0x59dbf9[_0x337aed(0xcf)]&&_0x54bad8[_0x337aed(0xcc)]===_0x59dbf9[_0x337aed(0xcc)]);}}function _0xcaeb(_0x3afaa1,_0xcb0f29){const _0x4dc992=_0x4dc9();return _0xcaeb=function(_0xcaebcf,_0xc453b7){_0xcaebcf=_0xcaebcf-0xc3;let _0x390d79=_0x4dc992[_0xcaebcf];return _0x390d79;},_0xcaeb(_0x3afaa1,_0xcb0f29);}function _0x4dc9(){const _0x2bc6ff=['420405NErCAh','_modelList','some','items','20IabjdD','420dWiesp','sort','6HBwudy','isAvailable','ai-chat-default-model-id-unrecognized','112145hOrGKS','175KtwVDa','72784biDkUs','910092CguCVU','getDefault','enabled','filter','5332446VOnLTV','374994xDBpZA','capabilities','length','getModels','provider','getAll','_connector','name','6HcvmqY','find','list','values','571396pGhlAN'];_0x4dc9=function(){return _0x2bc6ff;};return _0x4dc9();}
23
+ const _0x2bae7e=_0x46a9;function _0x2e21(){const _0x3e5909=['13196IGjPQt','items','length','some','find','getAll','45CHayiN','1260335KoYzzj','list','6906672stdmsQ','7EsXthu','357615JVbVyF','265546yyoPZl','getModels','isAvailable','filter','capabilities','_connector','getDefault','2881422cOJGzz','values','provider','1466356dFYdpT','enabled','ai-chat-default-model-id-unrecognized','name','_modelList','sort'];_0x2e21=function(){return _0x3e5909;};return _0x2e21();}(function(_0x1375b8,_0x217f43){const _0x174710=_0x46a9,_0x38af3a=_0x1375b8();while(!![]){try{const _0x37086a=parseInt(_0x174710(0x1d8))/0x1+parseInt(_0x174710(0x1cc))/0x2*(parseInt(_0x174710(0x1d2))/0x3)+-parseInt(_0x174710(0x1c6))/0x4+parseInt(_0x174710(0x1d3))/0x5+parseInt(_0x174710(0x1c3))/0x6*(-parseInt(_0x174710(0x1d6))/0x7)+parseInt(_0x174710(0x1d5))/0x8+-parseInt(_0x174710(0x1d7))/0x9;if(_0x37086a===_0x217f43)break;else _0x38af3a['push'](_0x38af3a['shift']());}catch(_0x1cd1c0){_0x38af3a['push'](_0x38af3a['shift']());}}}(_0x2e21,0x90dcc));function _0x46a9(_0x2a6c68,_0x523f4c){const _0x2e21fe=_0x2e21();return _0x46a9=function(_0x46a902,_0x4c2762){_0x46a902=_0x46a902-0x1c3;let _0x55a9a6=_0x2e21fe[_0x46a902];return _0x55a9a6;},_0x46a9(_0x2a6c68,_0x523f4c);}import{EmitterMixin as _0x365931,logWarning as _0x438608}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x365931(){[_0x2bae7e(0x1ca)]=[];[_0x2bae7e(0x1dd)];constructor({connector:_0x261ae1}){const _0x13e85b=_0x2bae7e;super(),this[_0x13e85b(0x1dd)]=_0x261ae1;}async[_0x2bae7e(0x1d1)](){const _0x5c48fa=_0x2bae7e;if(!this[_0x5c48fa(0x1ca)][_0x5c48fa(0x1ce)]){const _0x1d3dfa=this[_0x5c48fa(0x1dd)][_0x5c48fa(0x1d9)](),_0x1631de=(await _0x1d3dfa[_0x5c48fa(0x1d4)]())[_0x5c48fa(0x1cd)][_0x5c48fa(0x1cb)]((_0xb1c9a3,_0x326e97)=>{const _0x2dd36f=_0x5c48fa,_0x326501=Object[_0x2dd36f(0x1c4)](_0xb1c9a3[_0x2dd36f(0x1dc)])[_0x2dd36f(0x1db)](_0x38ef9f=>_0x38ef9f[_0x2dd36f(0x1c7)])[_0x2dd36f(0x1ce)];return Object[_0x2dd36f(0x1c4)](_0x326e97[_0x2dd36f(0x1dc)])[_0x2dd36f(0x1db)](_0x4a507f=>_0x4a507f[_0x2dd36f(0x1c7)])[_0x2dd36f(0x1ce)]-_0x326501;});this[_0x5c48fa(0x1ca)]=_0x1631de;}return this[_0x5c48fa(0x1ca)];}async[_0x2bae7e(0x1de)](_0xf2dd79){const _0x28ea35=_0x2bae7e,_0x5d824c=await this[_0x28ea35(0x1d1)]();if(!_0x5d824c[_0x28ea35(0x1ce)])return null;if(_0xf2dd79){const _0x377711=_0x5d824c[_0x28ea35(0x1d0)](_0x55575f=>_0x55575f['id']===_0xf2dd79);if(_0x377711)return _0x377711;_0x438608(_0x28ea35(0x1c8),{'defaultModelId':_0xf2dd79,'fallBackModelId':_0x5d824c[0x0]['id']});}return _0x5d824c[0x0];}async[_0x2bae7e(0x1da)](_0x2379e1){const _0x29aa28=_0x2bae7e;return(await this[_0x29aa28(0x1d1)]())[_0x29aa28(0x1cf)](_0x48f252=>_0x48f252[_0x29aa28(0x1c9)]===_0x2379e1[_0x29aa28(0x1c9)]&&_0x48f252[_0x29aa28(0x1c5)]===_0x2379e1[_0x29aa28(0x1c5)]);}}