@ckeditor/ckeditor5-ai 47.2.0-alpha.0 → 47.2.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 (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5268ff=_0x5392;(function(_0x2ee89a,_0x5a7b9f){const _0xd9d18d=_0x5392,_0xe48e22=_0x2ee89a();while(!![]){try{const _0x27316d=-parseInt(_0xd9d18d(0x112))/0x1*(-parseInt(_0xd9d18d(0x1dd))/0x2)+parseInt(_0xd9d18d(0x176))/0x3*(-parseInt(_0xd9d18d(0x12d))/0x4)+-parseInt(_0xd9d18d(0x147))/0x5+parseInt(_0xd9d18d(0xa1))/0x6+parseInt(_0xd9d18d(0x153))/0x7+parseInt(_0xd9d18d(0xf6))/0x8*(parseInt(_0xd9d18d(0x1c4))/0x9)+-parseInt(_0xd9d18d(0x90))/0xa;if(_0x27316d===_0x5a7b9f)break;else _0xe48e22['push'](_0xe48e22['shift']());}catch(_0x47b7f2){_0xe48e22['push'](_0xe48e22['shift']());}}}(_0x4770,0xa5e3b));import{ContextPlugin as _0x951add,Editor as _0x1d1f9d}from'ckeditor5/src/core.js';import{CKEditorError as _0x352eb3,logError as _0x1248f1,scrollViewportToShowTarget as _0x573709,uid as _0x484ae2}from'ckeditor5/src/utils.js';import{AIConnector as _0x5a4463}from'../aicore/aiconnector.js';import{AITabs as _0x37b057}from'../aitabs/aitabs.js';import{AIChatConversation as _0x48b666}from'./model/aichatconversation.js';import{getTranslation as _0x1fc3d6}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x93ab06}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x430d06}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x344805}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2304ad}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1a689a,DATA_ID_MODEL_ATTRIBUTE as _0xffd2fd}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2b369a,getOperationsFromReply as _0x26c983}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x23c17b,getMinimalSelection as _0x46ecee}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4a4527,_DetachOperation as _0x5702af}from'ckeditor5/src/engine.js';import{findOne as _0x5c75b6,getAttribute as _0x1765a4,serialize as _0x55a5db,Document as _0x27f42b,findByAttribute as _0x58ca42}from'../aicore/utils/htmlparser.js';import{IconAI as _0xb39332}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x37cf6b}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x11ade2}from'../aiballoon/aiballoon.js';function _0x4770(){const _0x4bd6a9=['startConversation','isCurrentDocumentInContext','updateCapabilities','_batchToChanges','addFeedItemError','rootName','config','viewRangeToDom','_handleUIUserMessage','removeContextItem','updateResourceState','AIEditing','enableControls','unshift','isStarted','1HPckTr','Failed\x20to\x20load\x20conversation','createPositionAt','replies','addDocumentToContext','handleUserInteraction','getRoot','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-context-invalid-data','filter','remove','error','ready','_toggleReasoning','document','length','toggleLoadingSkeleton','replyId','AIChatUI','$graveyard','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','modelSelected','getDocumentData','has','AI_CHAT_ABORTED_MESSAGE','requires','indexes','651148UCzoHm','accepted','_toggleWebSearch','alignToTop','replyCreated','addFeedItemStaticMessage','_updateRatings','changes','isModelAvailable','getChild','from','split','anchorId','rejectSuggestion','resetConversationTitle','lastInteraction','resourceStateChanged','query','_createFromRanges','startsWith','open','replyContentUpdated','updateFeedItemAIReplySources','resize','updateFeedItemAIReplySuggestionContent','isDocumentOperation','6409360VbyXKB','markers','map','addFeedItemAISuggestion','replyChangeGroupStateUpdated','init','setChangeGroupState','listenTo','change','options','setAddContextOptions','index','2592751MgTmwX','toggleSuggestionDisplayMode','outdated','_aiChatModels','ai-chat-controller-no-active-conversation','version','resourceId','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','root','sourceId','children','get','isInContext','upsertAIChatRating','addFeedItemUserMessage','afterInit','_applySuggestion','updateConversationTitle','applySuggestion','dialogClosed','mouseLeaveSuggestion','commands','_getDocumentRangeForReplyChanges','resizeTabs','sendUserMessage','insertSuggestion','removeFeedInteraction','ai-chat-context-unsupported-type','_aiChatUi','updateCurrentDocumentInContext','updateContent','removeSelectionFromChatContext','chat','batch','abortPromptStream','3uugoLV','getDiff','reasoningFinished','Undo','webSearchFinished','ai-chat-conversation-start-failed','setFeedItemRenderingStrategy','getDocumentContext','createPositionFromPath','range','toString','setLoadingMessage','parse','view','selection','removeSelectionFromContext','Liked\x20response','disableControls','context','contextItemRemoved','rejected','uiId','TrackChanges','_showConversationHistory','full','interactionDestroyed','AI_CHAT_GENERIC_ERROR','selectModel','uid','forEach','sources','addFeedInteractionHeader','AIChatController','AI_CHAT_RESOURCE_LOAD_FAILED','getOperations','getReply','new','state','getPath','indexOf','getChildren','streaming','_aiEditing','ai.chat.context','hasChanges','editors','reasoningStarted','AI_BALLOON_HEADER_TITLE','showDiff','mouseOverSuggestion','start','Showing\x20conversation\x20history...','contextItemLoadingEnded','addFileToContext','messageId','revert','_scrollToSuggestionRange','getChildAtOffset','_setIsMaximized','loadSourceResources','interactionFinished','selectedModel','showPrevious','ai-chat-conversation-init-failed','handleRemovedConversation','_stopLastInteraction','toggleReasoning','getGroupId','_balloonShowDiff','push','populateSourceResourceBalloon','pending','setSelectedModel','showChangeInText','createRange','toViewRange','isLoading','getMarkersGroup','6255Amxdfl','maxOffset','_startConversationSafely','scrollFeedToSuggestion','clearPendingContextUI','isOpen','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai.availableReplyActions','ai-chat-controller-mouse-over','toggleWebSearch','_removeFromContext','undo','redo','createConversation','showNext','setContextItemLoading','isPremiumPlugin','ai-no-track-changes','delete','getFirstRange','addFilesToContext','history','contextSent','getTransformedByOperation','getSelectionText','842722cBaCUb','text-delta','path','ai-chat-resource-load-failed','documentContextContent','ai-chat-file-upload-failed','_openBalloonFor','end','ai-chat-url-upload-failed','removeMarker','findIndex','isUploadInProgress','TrackChangesEditing','webSearchStarted','setIsMaximized','updateFeedItemAIReplySuggestionPartState','startInteraction','stop','4102980eldViJ','activeConversation','AITabs','data-id','addCurrentDocumentToContext','close','sendMessage','ai.chat.models.defaultModelId','resource','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','resizedTabs','message','isCurrentDocumentInConversation','nextSibling','contextItems','finishInteraction','add','4593096OezWGI','domConverter','collaboration.channelId','mapper','addUrlToContext','AIConnector','slice','focusPromptInput','static','cloneNode','interactionId','resetMessageInput','startAutoScroll','showFakeVisualSelection','closeSourceResourceBalloon','AI_CHAT_CONTEXT_INVALID_DATA','_flushLastInteractionUI','addContextItem','getRanges','_removeAISelectionMarkers','updateFeedItemAIReplyContent','type','getAttribute','_integrateEditor','getInteractionAndReplyById','setConversationContext','resources','sourceResourcesLoaded','contextItemAdded','capabilitiesUpdated','plugins','set','pluginName','stopInteraction','current-document','Disliked\x20response','content','addResourceToContext','setIsUploadInProgress','load','log','isOfficialPlugin','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_previewedChangeGroup','find','getContentParts','partIndex','contextItem','DocumentCompare','like','sourcePosition','isDisabled','applyOperation','editing','howMany','addFeedItemAIReply','loadConversation','addOperation','ai-conversation-','marker','modification-delta','_updateReplyContent','hideFakeVisualSelection','ai-request-aborted','node','addSelectionToChatContext','setConversationTitle','locale','interactionStarted','changeGroups','_handleStartConversation','uploadProgressChanged','clearConversationContextUI','removeFromContext','ai.chat.models.displayedModels','main','_aiConnector','removed','AI_CHAT_UNTITLED_CONVERSATION','_insertSuggestion','setModel','activateTab','source','baseVersion','dislike','11248BHkUOd','getInteraction','model','interactionCreated','addContextOptionsChanged','stopListening','conversationInitialized','ai-chat-source-resources-load-failed','addSelectionToContext','data','ai-chat-missing-channel-id','_logError','_applyOperationsAsSuggestions'];_0x4770=function(){return _0x4bd6a9;};return _0x4770();}function _0x5392(_0x1dd79b,_0xdc694c){const _0x477067=_0x4770();return _0x5392=function(_0x53924d,_0xcd8b9){_0x53924d=_0x53924d-0x81;let _0x42ab73=_0x477067[_0x53924d];return _0x42ab73;},_0x5392(_0x1dd79b,_0xdc694c);}export class AIChatController extends _0x951add{[_0x5268ff(0x1a0)];[_0x5268ff(0xed)];[_0x5268ff(0x16f)];[_0x5268ff(0x156)];[_0x5268ff(0x106)]=new Map();[_0x5268ff(0xcc)]=null;[_0x5268ff(0x1ba)]=!0x1;static get[_0x5268ff(0x12b)](){return[_0x5a4463,_0x11ade2,_0x1a689a];}static get[_0x5268ff(0xc1)](){const _0xde6c8f=_0x5268ff;return _0xde6c8f(0x196);}static get[_0x5268ff(0xca)](){return!0x0;}static get[_0x5268ff(0x1d4)](){return!0x0;}[_0x5268ff(0x14c)](){const _0x38a56c=_0x5268ff;this[_0x38a56c(0xed)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0xa6)),this[_0x38a56c(0x16f)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x124)),this[_0x38a56c(0x1a0)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x10e)),this[_0x38a56c(0x156)]=new _0x344805({'connector':this[_0x38a56c(0xed)],'availableModels':this[_0x38a56c(0x188)][_0x38a56c(0x109)][_0x38a56c(0x15e)](_0x38a56c(0xeb)),'defaultModelId':this[_0x38a56c(0x188)][_0x38a56c(0x109)][_0x38a56c(0x15e)](_0x38a56c(0x97))});const _0x39f55b=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x92));this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x103),()=>{const _0x2ff2d1=_0x38a56c;this[_0x2ff2d1(0x1c6)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16b),(_0x1ec001,_0x201fac)=>{const _0x5831a7=_0x38a56c;this[_0x5831a7(0x10b)]({'userMessage':_0x201fac});}),this[_0x38a56c(0x14e)](_0x39f55b,_0x38a56c(0x9a),(_0x3361e7,_0x5c49b8)=>{const _0x533b33=_0x38a56c;this[_0x533b33(0x1b0)](_0x5c49b8);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16a),()=>{const _0x7e6d0f=_0x38a56c;_0x39f55b[_0x7e6d0f(0x144)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x175),async()=>{const _0x208a0c=_0x38a56c;await this[_0x208a0c(0x1b7)](),await this[_0x208a0c(0xb1)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x116),()=>{const _0x19f41b=_0x38a56c;this[_0x19f41b(0x91)]?.[_0x19f41b(0x94)](_0x1fc3d6(this[_0x19f41b(0x188)][_0x19f41b(0xe4)],_0x19f41b(0x15a)));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1ab),(_0x3af043,_0x6560cf)=>{const _0x44ffa1=_0x38a56c;this[_0x44ffa1(0x91)]?.[_0x44ffa1(0x1d8)](Array[_0x44ffa1(0x137)](_0x6560cf));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xa5),(_0x1db88a,_0x37a5df)=>{const _0x2bba75=_0x38a56c;this[_0x2bba75(0x91)]?.[_0x2bba75(0xa5)](_0x37a5df);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xc6),(_0xb9be28,_0x3ece0a)=>{const _0x4f1eb2=_0x38a56c;this[_0x4f1eb2(0x91)]?.[_0x4f1eb2(0xc6)](_0x3ece0a[_0x4f1eb2(0xf3)],_0x3ece0a[_0x4f1eb2(0x98)]);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x10c),(_0x42dcaf,_0x53b137)=>{const _0x5154c8=_0x38a56c;this[_0x5154c8(0x1ce)](_0x53b137);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1b1),(_0x570a76,_0x458e9d)=>{const _0x3654fc=_0x38a56c;this[_0x3654fc(0x91)]?.[_0x3654fc(0x1b1)](_0x458e9d[_0x3654fc(0x15c)],_0x458e9d[_0x3654fc(0x13e)],_0x458e9d[_0x3654fc(0x192)]);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1cd),()=>{const _0x5cdd2b=_0x38a56c;this[_0x5cdd2b(0x12f)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1b8),()=>{const _0x10e10b=_0x38a56c;this[_0x10e10b(0x11f)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x191),(_0x4dffdf,_0x2f8d59)=>{const _0x38b6a3=_0x38a56c;this[_0x38b6a3(0x91)]?.[_0x38b6a3(0xf1)](_0x2f8d59);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xd2),(_0x14bede,{replyId:_0x17a2ea})=>{const _0x4985dc=_0x38a56c;console[_0x4985dc(0xc9)](_0x4985dc(0x186),_0x17a2ea);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xf5),(_0x2aea1a,{replyId:_0x480fad})=>{const _0x2a0594=_0x38a56c;console[_0x2a0594(0xc9)](_0x2a0594(0xc4),_0x480fad);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16c),(_0x5ef541,_0x1c22a7)=>{const _0x436fe9=_0x38a56c;this[_0x436fe9(0x188)][_0x436fe9(0xbf)][_0x436fe9(0x15e)](_0x11ade2)[_0x436fe9(0x95)](),this[_0x436fe9(0xf0)](_0x1c22a7);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1bf),(_0x4e94b3,{replyId:_0x483360,partIndex:_0x21052a})=>{const _0x305d17=_0x38a56c;this[_0x305d17(0x1ba)]=this[_0x305d17(0x16f)][_0x305d17(0x1a6)],this[_0x305d17(0x84)](_0x483360,_0x21052a);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1a7),(_0x168896,{replyId:_0x20ce58,partIndex:_0x1523d0})=>{const _0x493656=_0x38a56c,_0x229a37=this[_0x493656(0x169)](_0x20ce58,_0x1523d0);_0x229a37&&_0x493656(0x125)!=_0x229a37[_0x493656(0x17f)][_0x493656(0x15b)][_0x493656(0x108)]&&this[_0x493656(0x1a0)][_0x493656(0xae)]([_0x229a37[_0x493656(0x17f)]],_0x493656(0x1cc));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x167),()=>{const _0x19c9e9=_0x38a56c;this[_0x19c9e9(0x1a0)][_0x19c9e9(0xdf)](_0x19c9e9(0x1cc));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x165),(_0x585f34,_0x117276)=>{const _0x2bab5d=_0x38a56c;this[_0x2bab5d(0x188)][_0x2bab5d(0xbf)][_0x2bab5d(0x15e)](_0x11ade2)[_0x2bab5d(0x95)](),this[_0x2bab5d(0x163)](_0x117276);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x154),async(_0x2d9fcd,{replyId:_0x483b5d,showDiff:_0x1f19f0})=>{const _0x42b2a2=_0x38a56c,{reply:_0x5ceeb2}=this[_0x42b2a2(0xb9)](_0x483b5d),_0x11abec=_0x5ceeb2[_0x42b2a2(0xce)]({'showDiff':_0x1f19f0});await this[_0x42b2a2(0x16f)][_0x42b2a2(0x145)]({'id':_0x5ceeb2['id'],'parts':_0x11abec,'renderingStrategy':_0x42b2a2(0xa9)});}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x13a),(_0x1a1d6e,{replyId:_0x27408b,partIndex:_0x16a6b4})=>{const _0x6cb382=_0x38a56c;this[_0x6cb382(0xcc)]?.[_0x6cb382(0x123)]==_0x27408b&&this[_0x6cb382(0xcc)]?.[_0x6cb382(0xcf)]==_0x16a6b4&&this[_0x6cb382(0x188)][_0x6cb382(0xbf)][_0x6cb382(0x15e)](_0x11ade2)[_0x6cb382(0x95)]();const {reply:_0x35259d}=this[_0x6cb382(0xb9)](_0x27408b);_0x35259d[_0x6cb382(0x14d)](_0x16a6b4,_0x6cb382(0x18a)),this[_0x6cb382(0x1a0)][_0x6cb382(0xdf)](_0x6cb382(0x1cc));});}async[_0x5268ff(0x162)](){const _0x35de9e=_0x5268ff;this[_0x35de9e(0x188)]instanceof _0x1d1f9d?this[_0x35de9e(0xb8)](this[_0x35de9e(0x188)]):this[_0x35de9e(0x14e)](this[_0x35de9e(0x188)][_0x35de9e(0x1a3)],_0x35de9e(0xa0),(_0x4a2aab,_0xdcc8a7)=>{const _0xcf020f=_0x35de9e;_0xdcc8a7['on'](_0xcf020f(0x11e),()=>{const _0x2dd7be=_0xcf020f;this[_0x2dd7be(0xb8)](_0xdcc8a7);});}),await this[_0x35de9e(0x1c6)]();}[_0x5268ff(0xf0)](_0x1ae42d){const _0x372f96=_0x5268ff,_0x59c8c0=_0x2304ad(this[_0x372f96(0x188)]);if(!_0x59c8c0[_0x372f96(0xbf)][_0x372f96(0x129)](_0x372f96(0x18c)))throw new _0x352eb3(_0x372f96(0x1d5),null);const _0x1296cb=this[_0x372f96(0x188)][_0x372f96(0xbf)][_0x372f96(0x15e)](_0x372f96(0xd1)),{reply:_0x23cd84,interaction:_0x52a4e4}=this[_0x372f96(0xb9)](_0x1ae42d[_0x372f96(0x123)]),_0x3aa72f=this[_0x372f96(0x169)](_0x1ae42d[_0x372f96(0x123)],_0x1ae42d[_0x372f96(0xcf)]),_0x54c222=void 0x0!==_0x1ae42d[_0x372f96(0xcf)]?[_0x23cd84[_0x372f96(0xe6)][_0x1ae42d[_0x372f96(0xcf)]]]:_0x23cd84[_0x372f96(0xe6)][_0x372f96(0x11b)](_0xa62f4f=>_0x372f96(0x1bd)==_0xa62f4f[_0x372f96(0x19b)]),_0x5dd3e3=_0x54c222[_0x372f96(0x149)](_0x174706=>_0x23cd84[_0x372f96(0xe6)][_0x372f96(0x19d)](_0x174706));if(!_0x3aa72f||_0x372f96(0x125)==_0x3aa72f[_0x372f96(0x17f)][_0x372f96(0x15b)][_0x372f96(0x108)])return void _0x5dd3e3[_0x372f96(0x193)](_0x5f04ca=>_0x23cd84[_0x372f96(0x14d)](_0x5f04ca,_0x372f96(0x155)));_0x5dd3e3[_0x372f96(0x193)](_0x2fd4f6=>_0x23cd84[_0x372f96(0x14d)](_0x2fd4f6,_0x372f96(0x12e)));const _0x5604ba=_0x26c983({'editor':_0x59c8c0,'reply':_0x23cd84,'interaction':_0x52a4e4,'groups':_0x54c222,'transform':!0x0,'documentCompare':_0x1296cb,'documentCompareOptions':{'anchor':_0x372f96(0xec),'markDeletions':!0x0}});let _0x5eb853;_0x3aa72f&&this[_0x372f96(0x1ae)](_0x3aa72f[_0x372f96(0x17f)]),_0x59c8c0[_0x372f96(0xf8)][_0x372f96(0x14f)](_0x54aa9f=>{const _0x16ace1=_0x372f96;_0x5eb853=_0x54aa9f[_0x16ace1(0x174)],_0x59c8c0[_0x16ace1(0xbf)][_0x16ace1(0x15e)](_0x16ace1(0x8a))[_0x16ace1(0x102)](_0x5604ba),this[_0x16ace1(0x1a0)][_0x16ace1(0xdf)](_0x16ace1(0x1cc));}),this[_0x372f96(0x106)][_0x372f96(0xc0)](_0x5eb853,{'interactionId':_0x52a4e4['id'],'replyId':_0x23cd84['id'],'indexes':_0x5dd3e3[_0x372f96(0xa7)]()}),this[_0x372f96(0x133)](_0x23cd84);}[_0x5268ff(0x163)](_0x40c824){const _0x5a1867=_0x5268ff,_0x479865=_0x2304ad(this[_0x5a1867(0x188)]),_0x3f362e=this[_0x5a1867(0x188)][_0x5a1867(0xbf)][_0x5a1867(0x15e)](_0x1a689a),{reply:_0x1a723e,interaction:_0x3bc42e}=this[_0x5a1867(0xb9)](_0x40c824[_0x5a1867(0x123)]),_0x41d94c=this[_0x5a1867(0x169)](_0x40c824[_0x5a1867(0x123)],_0x40c824[_0x5a1867(0xcf)]),_0x3fdabe=void 0x0!==_0x40c824[_0x5a1867(0xcf)]?[_0x1a723e[_0x5a1867(0xe6)][_0x40c824[_0x5a1867(0xcf)]]]:_0x1a723e[_0x5a1867(0xe6)][_0x5a1867(0x11b)](_0x36df1e=>_0x5a1867(0x1bd)==_0x36df1e[_0x5a1867(0x19b)]),_0x3a6aa5=_0x3fdabe[_0x5a1867(0x149)](_0x29dea8=>_0x1a723e[_0x5a1867(0xe6)][_0x5a1867(0x19d)](_0x29dea8));if(!_0x41d94c||_0x5a1867(0x125)==_0x41d94c[_0x5a1867(0x17f)][_0x5a1867(0x15b)][_0x5a1867(0x108)])return void _0x3a6aa5[_0x5a1867(0x193)](_0x587dbb=>_0x1a723e[_0x5a1867(0x14d)](_0x587dbb,_0x5a1867(0x155)));_0x3a6aa5[_0x5a1867(0x193)](_0x23c9b7=>_0x1a723e[_0x5a1867(0x14d)](_0x23c9b7,_0x5a1867(0x12e)));const _0x3bcc79=_0x26c983({'editor':_0x479865,'reply':_0x1a723e,'interaction':_0x3bc42e,'groups':_0x3fdabe,'transform':!0x0,'documentCompare':_0x3f362e,'documentCompareOptions':{'anchor':_0x5a1867(0xec),'markDeletions':!0x1}});let _0x1a26b4;_0x41d94c&&this[_0x5a1867(0x1ae)](_0x41d94c[_0x5a1867(0x17f)]),_0x479865[_0x5a1867(0xf8)][_0x5a1867(0x14f)](_0x3863d9=>{const _0x3c872b=_0x5a1867;_0x1a26b4=_0x3863d9[_0x3c872b(0x174)];for(const _0x36a1ee of _0x3bcc79)_0x36a1ee[_0x3c872b(0xf4)]=_0x479865[_0x3c872b(0xf8)][_0x3c872b(0x120)][_0x3c872b(0x158)],_0x2b369a(_0x479865,_0x36a1ee),_0x3863d9[_0x3c872b(0x174)][_0x3c872b(0xda)](_0x36a1ee),_0x479865[_0x3c872b(0xf8)][_0x3c872b(0xd5)](_0x36a1ee);}),this[_0x5a1867(0x106)][_0x5a1867(0xc0)](_0x1a26b4,{'interactionId':_0x3bc42e['id'],'replyId':_0x1a723e['id'],'indexes':_0x3a6aa5[_0x5a1867(0xa7)]()}),this[_0x5a1867(0x133)](_0x1a723e);}[_0x5268ff(0x84)](_0x325a68,_0x26a645){const _0x376e63=_0x5268ff,_0x242ee5=_0x2304ad(this[_0x376e63(0x188)]),_0x1db2f4=this[_0x376e63(0x169)](_0x325a68,_0x26a645),_0x34a0d4=this[_0x376e63(0x188)][_0x376e63(0xbf)][_0x376e63(0x15e)](_0x11ade2);if(!_0x1db2f4)return void _0x34a0d4[_0x376e63(0x95)]();const {range:_0x2511e5,currentIndex:_0x2b08c8}=_0x1db2f4;if(_0x376e63(0x125)==_0x2511e5[_0x376e63(0x15b)][_0x376e63(0x108)]){const {reply:_0x5da1ad}=this[_0x376e63(0xb9)](_0x325a68);return _0x5da1ad[_0x376e63(0x14d)](_0x2b08c8,_0x376e63(0x155)),void _0x34a0d4[_0x376e63(0x95)]();}if(this[_0x376e63(0xcc)]?.[_0x376e63(0x123)]==_0x325a68&&this[_0x376e63(0xcc)]?.[_0x376e63(0xcf)]==_0x2b08c8)return;this[_0x376e63(0xfb)](_0x34a0d4),this[_0x376e63(0xcc)]={'replyId':_0x325a68,'partIndex':_0x2b08c8};let _0x29ad7f=_0x242ee5[_0x376e63(0x109)][_0x376e63(0x15e)](_0x376e63(0x1cb))||[..._0x430d06];_0x242ee5[_0x376e63(0xbf)][_0x376e63(0x129)](_0x376e63(0x18c))||(_0x29ad7f=_0x29ad7f[_0x376e63(0x11b)](_0x3e8a8c=>_0x376e63(0x16c)!=_0x3e8a8c));const _0x178ef9=new _0x37cf6b(_0x242ee5[_0x376e63(0xe4)],{'showDiff':this[_0x376e63(0x1ba)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x376e63(0x18e)},'hideHeader':!0x0,'availableActions':_0x29ad7f});this[_0x376e63(0xfb)](_0x178ef9);const {reply:_0x45a3e5}=this[_0x376e63(0xb9)](_0x325a68),_0x2bcd42=_0x45a3e5[_0x376e63(0xce)]({'showDiff':this[_0x376e63(0x1ba)]})[_0x376e63(0x11b)](_0x9a9981=>_0x9a9981[_0x376e63(0x1a2)]),_0x3ec300=_0x2bcd42[_0x376e63(0x88)](_0x21e7fb=>_0x21e7fb[_0x376e63(0x152)]==_0x2b08c8);if(-0x1==_0x3ec300)return;const _0x414715=_0x2bcd42[_0x3ec300],_0x20f7ef=_0x2bcd42['at']((_0x3ec300-0x1)%_0x2bcd42[_0x376e63(0x121)])?.[_0x376e63(0x152)],_0x4909d6=_0x2bcd42['at']((_0x3ec300+0x1)%_0x2bcd42[_0x376e63(0x121)])?.[_0x376e63(0x152)];_0x178ef9[_0x376e63(0x171)]({'parts':[_0x414715],'renderingStrategy':_0x376e63(0xa9)});const _0x323c66=_0x2b08c8!==_0x20f7ef;this[_0x376e63(0x1ae)](_0x2511e5,!0x0),_0x34a0d4[_0x376e63(0x141)]({'index':_0x2b08c8,'title':_0x1fc3d6(this[_0x376e63(0x188)][_0x376e63(0xe4)],_0x376e63(0x1a5),(_0x3ec300+0x1)[_0x376e63(0x180)]()),'icon':_0xb39332,'mainView':_0x178ef9,'showRotator':_0x323c66,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x2511e5]}),this[_0x376e63(0x16f)][_0x376e63(0x1c7)](_0x325a68,_0x2b08c8),this[_0x376e63(0x14e)](_0x178ef9,_0x376e63(0x154),(_0xc7b6f6,{showDiff:_0x20cb2c})=>{const _0x37984d=_0x376e63;this[_0x37984d(0x1ba)]=_0x20cb2c;const {reply:_0x564f8f}=this[_0x37984d(0xb9)](_0x325a68),_0x2bc142=_0x564f8f[_0x37984d(0xce)]({'showDiff':_0x20cb2c,'groupIndex':_0x2b08c8});_0x178ef9[_0x37984d(0x171)]({'parts':_0x2bc142,'renderingStrategy':_0x37984d(0xa9)});}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x165),()=>{const _0x1d5abc=_0x376e63;this[_0x1d5abc(0x163)]({'replyId':_0x325a68,'partIndex':_0x2b08c8}),_0x323c66?this[_0x1d5abc(0x84)](_0x325a68,_0x4909d6):_0x34a0d4[_0x1d5abc(0x95)]();}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x16c),()=>{const _0x4f5901=_0x376e63;this[_0x4f5901(0xf0)]({'replyId':_0x325a68,'partIndex':_0x2b08c8}),_0x323c66?this[_0x4f5901(0x84)](_0x325a68,_0x4909d6):_0x34a0d4[_0x4f5901(0x95)]();}),_0x323c66&&(this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x1d2),()=>{const _0x1f94cd=_0x376e63;this[_0x1f94cd(0x84)](_0x325a68,_0x4909d6);}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x1b4),()=>{const _0x240ddf=_0x376e63;this[_0x240ddf(0x84)](_0x325a68,_0x20f7ef);})),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x166),()=>{const _0x404751=_0x376e63;this[_0x404751(0xfb)](_0x34a0d4),this[_0x404751(0xfb)](_0x178ef9),this[_0x404751(0xcc)]=null;});}[_0x5268ff(0x169)](_0x353045,_0x2268b4){const _0x420c5a=_0x5268ff,_0x5d6f61=_0x2304ad(this[_0x420c5a(0x188)]),{reply:_0x1728f0,interaction:_0x45ea90}=this[_0x420c5a(0xb9)](_0x353045),_0x1f8bc4=_0x1728f0[_0x420c5a(0xe6)][_0x420c5a(0x11b)](_0x3e0d42=>_0x420c5a(0x1bd)==_0x3e0d42[_0x420c5a(0x19b)]),_0x6a55f6=_0x1f8bc4[_0x420c5a(0x149)](_0x820f42=>_0x1728f0[_0x420c5a(0xe6)][_0x420c5a(0x19d)](_0x820f42));void 0x0===_0x2268b4&&(_0x2268b4=_0x6a55f6[0x0]);const _0x2381c8=_0x6a55f6[_0x420c5a(0x19d)](_0x2268b4);if(-0x1==_0x2381c8)return null;const _0x4c04d7=_0x1f8bc4[_0x2381c8],_0x43c6a3=new _0x27f42b([]),_0x170422=new _0x27f42b([]);for(const _0x3d221d of _0x4c04d7[_0x420c5a(0x134)])if(_0x420c5a(0xee)!=_0x3d221d[_0x420c5a(0xb6)]&&_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3d221d[_0x420c5a(0xe1)][_0x420c5a(0xaa)](!0x0)),_0x420c5a(0x19a)!=_0x3d221d[_0x420c5a(0xb6)]){const _0x182edc=_0x5c75b6(_0x2cac6f=>_0x1765a4(_0x2cac6f,_0x420c5a(0x93))==_0x3d221d['id'],_0x1728f0[_0x420c5a(0x82)],!0x0);_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x182edc[_0x420c5a(0xaa)](!0x0));}if(0x0==_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x121)]){if(_0x4c04d7[_0x420c5a(0x134)][0x0][_0x420c5a(0x139)]){const _0x555315=_0x58ca42(_0x420c5a(0x93),_0x4c04d7[_0x420c5a(0x134)][0x0][_0x420c5a(0x139)],_0x1728f0[_0x420c5a(0x82)]);_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x110)](_0x555315[_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x110)](_0x555315[_0x420c5a(0xaa)](!0x0)),_0x555315[_0x420c5a(0x9d)]&&(_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x555315[_0x420c5a(0x9d)][_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x555315[_0x420c5a(0x9d)][_0x420c5a(0xaa)](!0x0)));}else{const _0x3cca22=_0x1728f0[_0x420c5a(0x82)][_0x420c5a(0x15d)][0x0];if(!_0x3cca22)return null;_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3cca22[_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3cca22[_0x420c5a(0xaa)](!0x0));}}const _0x93e94f=_0x45ea90[_0x420c5a(0x17d)](),_0x41d15e=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x93e94f[_0x420c5a(0xc5)]),_0x4fa614=_0x55a5db(_0x43c6a3),_0x33ccfd=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x4fa614),_0xb3dc14=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x4fa614),_0x21873b=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x114)](_0x33ccfd,0x0),_0x440ec0=_0x55a5db(_0x170422),_0x1d5f6b={'anchor':_0x21873b,'markDeletions':!0x1},_0x5fe0f9=_0x5d6f61[_0x420c5a(0xbf)][_0x420c5a(0x15e)](_0x1a689a)[_0x420c5a(0x177)](_0x4fa614,_0x440ec0,_0x1d5f6b)[_0x420c5a(0x198)]();if(!_0x5fe0f9[_0x420c5a(0x121)])return null;_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x14f)](_0x1e4b99=>{const _0x39db98=_0x420c5a;for(const _0x5ae85a of _0x5fe0f9)if(_0x39db98(0x11c)==_0x5ae85a[_0x39db98(0xb6)]){const _0x1dd257=_0x5ae85a[_0x39db98(0xd3)],_0x27d4dd=_0x5ae85a[_0x39db98(0xd7)],_0x344fa6=new _0x5702af(_0x1dd257,_0x27d4dd);_0x1e4b99[_0x39db98(0x174)][_0x39db98(0xda)](_0x344fa6),_0x5d6f61[_0x39db98(0xf8)][_0x39db98(0xd5)](_0x344fa6);}else _0x39db98(0xdc)!==_0x5ae85a[_0x39db98(0xb6)]&&(_0x5ae85a[_0x39db98(0xf4)]=null,_0x5ae85a[_0x39db98(0x146)]=!0x1,_0x1e4b99[_0x39db98(0x174)][_0x39db98(0xda)](_0x5ae85a),_0x5d6f61[_0x39db98(0xf8)][_0x39db98(0xd5)](_0x5ae85a));});const _0x205835=_0x46ecee(_0x5d6f61,_0x5fe0f9,_0x33ccfd);_0x23c17b(_0x5d6f61[_0x420c5a(0xf8)],_0x205835);const _0x4e1015=_0x205835[_0x420c5a(0x1d7)]()[_0x420c5a(0x1a8)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x3cbebe=_0x205835[_0x420c5a(0x1d7)]()[_0x420c5a(0x85)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x3a6922=[];let _0x303f52=_0x33ccfd,_0x383762=_0xb3dc14;for(let _0x7dc414=0x0;_0x7dc414<_0x3cbebe[_0x420c5a(0x121)];_0x7dc414++){const _0x1be2a5=_0x303f52[_0x420c5a(0x1c5)]-_0x3cbebe[_0x7dc414];_0x3a6922[_0x7dc414]=_0x383762[_0x420c5a(0x1c5)]-_0x1be2a5,_0x303f52=_0x303f52[_0x420c5a(0x1af)](_0x3cbebe[_0x7dc414]),_0x383762=_0x383762[_0x420c5a(0x1af)](_0x3a6922[_0x7dc414]);}const _0x29a880=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x1c0)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0xb3dc14,_0x4e1015),_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0xb3dc14,_0x3a6922)),_0x36db63=_0xb3dc14[_0x420c5a(0x136)](0x0)[_0x420c5a(0xb7)](_0xffd2fd),_0x437c07=Array[_0x420c5a(0x137)](_0x41d15e[_0x420c5a(0x19e)]())[_0x420c5a(0xcd)](_0x240613=>_0x240613[_0x420c5a(0xb7)](_0xffd2fd)==_0x36db63)[_0x420c5a(0x19c)](),_0x22cb78=_0x29a880[_0x420c5a(0x1a8)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x5ddf20=_0x29a880[_0x420c5a(0x85)][_0x420c5a(0x1df)][_0x420c5a(0xa7)]();_0x22cb78[0x0]=_0x437c07[0x0]+_0x22cb78[0x0],_0x5ddf20[0x0]=_0x437c07[0x0]+_0x5ddf20[0x0];let _0x14873e=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x1c0)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x118)](),_0x22cb78),_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x118)](),_0x5ddf20));const _0x6f3cf6=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x1d9)][_0x420c5a(0x198)](_0x93e94f[_0x420c5a(0x158)]);for(const _0x5c9d7f of _0x6f3cf6)_0x14873e=_0x4a4527[_0x420c5a(0x13f)](_0x14873e[_0x420c5a(0x1db)](_0x5c9d7f));return{'range':_0x14873e,'currentIndex':_0x2268b4};}[_0x5268ff(0xb8)](_0x29bcb8){const _0x3de60b=_0x5268ff;if(!_0x29bcb8[_0x3de60b(0xbf)][_0x3de60b(0x129)](_0x3de60b(0x179)))return;const _0x3fd385=_0x29bcb8[_0x3de60b(0x168)][_0x3de60b(0x15e)](_0x3de60b(0x1cf)),_0x6fc0ac=_0x29bcb8[_0x3de60b(0x168)][_0x3de60b(0x15e)](_0x3de60b(0x1d0));this[_0x3de60b(0x14e)](_0x3fd385,_0x3de60b(0x1ad),(_0x2b7771,_0x5736f5,_0x3af7f4)=>{const _0xf170c9=_0x3de60b,_0x285d1d=this[_0xf170c9(0x106)][_0xf170c9(0x15e)](_0x5736f5);if(!_0x285d1d)return;const _0x58b4d0=this[_0xf170c9(0x91)][_0xf170c9(0xf7)](_0x285d1d[_0xf170c9(0xab)])[_0xf170c9(0x199)](_0x285d1d[_0xf170c9(0x123)]);_0x285d1d[_0xf170c9(0x12c)][_0xf170c9(0x193)](_0x28033e=>_0x58b4d0[_0xf170c9(0x14d)](_0x28033e,_0xf170c9(0x1bd))),this[_0xf170c9(0x106)][_0xf170c9(0x1d6)](_0x5736f5),this[_0xf170c9(0x106)][_0xf170c9(0xc0)](_0x3af7f4,_0x285d1d);}),this[_0x3de60b(0x14e)](_0x6fc0ac,_0x3de60b(0x1ad),(_0x198a0f,_0x2df507,_0x418eeb)=>{const _0x2e1159=_0x3de60b,_0x3d5ce1=this[_0x2e1159(0x106)][_0x2e1159(0x15e)](_0x2df507);if(!_0x3d5ce1)return;const _0x4c7d00=this[_0x2e1159(0x91)][_0x2e1159(0xf7)](_0x3d5ce1[_0x2e1159(0xab)])[_0x2e1159(0x199)](_0x3d5ce1[_0x2e1159(0x123)]);_0x3d5ce1[_0x2e1159(0x12c)][_0x2e1159(0x193)](_0x304ab2=>_0x4c7d00[_0x2e1159(0x14d)](_0x304ab2,_0x2e1159(0x12e))),this[_0x2e1159(0x106)][_0x2e1159(0x1d6)](_0x2df507),this[_0x2e1159(0x106)][_0x2e1159(0xc0)](_0x418eeb,_0x3d5ce1);});}async[_0x5268ff(0xd9)](_0x23332b){const _0x4bb019=_0x5268ff;this[_0x4bb019(0x188)][_0x4bb019(0xbf)][_0x4bb019(0x15e)](_0x11ade2)[_0x4bb019(0x95)](),this[_0x4bb019(0x16f)][_0x4bb019(0x17c)](_0x4bb019(0xa9)),this[_0x4bb019(0x16f)][_0x4bb019(0x122)](!0x0),await this[_0x4bb019(0x1b7)]();try{const _0x37a7f2=this[_0x4bb019(0x188)][_0x4bb019(0xbf)][_0x4bb019(0x15e)](_0x37b057);this[_0x4bb019(0x164)]('\x20'),_0x37a7f2[_0x4bb019(0x183)][_0x4bb019(0xf2)](_0x4bb019(0x173)),await this[_0x4bb019(0x1c6)](_0x23332b);const {sessionId:_0x1ce257}=this[_0x4bb019(0x1a0)][_0x4bb019(0x128)]();await this[_0x4bb019(0x91)][_0x4bb019(0xc8)](_0x23332b,_0x1ce257),this[_0x4bb019(0x91)][_0x4bb019(0x9c)]()&&this[_0x4bb019(0x91)][_0x4bb019(0x94)](_0x1fc3d6(this[_0x4bb019(0x188)][_0x4bb019(0xe4)],_0x4bb019(0x15a)));}catch(_0xae9039){console[_0x4bb019(0x11d)](_0x4bb019(0x113),_0xae9039);}finally{this[_0x4bb019(0x16f)][_0x4bb019(0xad)](),this[_0x4bb019(0x16f)][_0x4bb019(0x17c)](_0x4bb019(0x19f)),this[_0x4bb019(0x16f)][_0x4bb019(0x122)](!0x1);}}[_0x5268ff(0x1b6)](_0x30b23d){const _0x534f2e=_0x5268ff;this[_0x534f2e(0x91)]['id']===_0x30b23d&&this[_0x534f2e(0x1c6)]();}async[_0x5268ff(0xe2)](){const _0x217e79=_0x5268ff,_0x4849e5=this[_0x217e79(0x1a0)][_0x217e79(0x1dc)]();this[_0x217e79(0x91)]?.[_0x217e79(0xfe)](_0x4849e5),this[_0x217e79(0x91)]?.[_0x217e79(0x94)](_0x1fc3d6(this[_0x217e79(0x188)][_0x217e79(0xe4)],_0x217e79(0x15a)));}[_0x5268ff(0x172)](){const _0x19f998=_0x5268ff;this[_0x19f998(0x91)]?.[_0x19f998(0x185)]();}[_0x5268ff(0xa8)](){const _0x3b6ca0=_0x5268ff;this[_0x3b6ca0(0x16f)][_0x3b6ca0(0xa8)]();}async[_0x5268ff(0x103)](){const _0x4f162a=_0x5268ff;await this[_0x4f162a(0x1c6)]();}async[_0x5268ff(0x96)]({message:_0x49dc7e,quickActionData:_0x2982e2}){const _0x2753b7=_0x5268ff;await this[_0x2753b7(0x10b)]({'userMessage':_0x49dc7e,'quickActionData':_0x2982e2});}[_0x5268ff(0x1b9)](){const _0xa442cb=_0x5268ff,_0x1163e9=this[_0xa442cb(0x188)][_0xa442cb(0x109)][_0xa442cb(0x15e)](_0xa442cb(0xa3));if(!_0x1163e9)throw new _0x352eb3(_0xa442cb(0x100),this);return _0x1163e9;}async[_0x5268ff(0x1c6)](_0x4d8b38){const _0x5df65e=_0x5268ff;try{this[_0x5df65e(0x16f)][_0x5df65e(0x10f)](),await this[_0x5df65e(0xe7)](_0x4d8b38);}catch(_0x1cea3c){_0x1248f1(_0x5df65e(0x17b),_0x1cea3c),this[_0x5df65e(0x91)]=void 0x0,this[_0x5df65e(0x16f)][_0x5df65e(0x187)]();}}async[_0x5268ff(0xe7)](_0x167664){const _0x1f2985=_0x5268ff,_0x548003=this[_0x1f2985(0x188)][_0x1f2985(0xbf)][_0x1f2985(0x15e)](_0x11ade2);let _0x110313;_0x548003[_0x1f2985(0x1c9)]&&_0x548003[_0x1f2985(0x95)](),_0x167664||!this[_0x1f2985(0x91)]?_0x110313=this[_0x1f2985(0x188)][_0x1f2985(0x109)][_0x1f2985(0x15e)](_0x1f2985(0x97)):this[_0x1f2985(0x16f)][_0x1f2985(0x135)]&&(_0x110313=this[_0x1f2985(0x91)][_0x1f2985(0x1b3)]['id']),await this[_0x1f2985(0x1b7)]();const _0x45697a=this[_0x1f2985(0x1b9)](),_0x1e89a6=_0x167664||_0x484ae2();this[_0x1f2985(0x91)]=new _0x48b666({'connector':this[_0x1f2985(0xed)],'chatModels':this[_0x1f2985(0x156)],'selectedModelId':_0x110313,'conversationId':_0x1e89a6,'group':_0x45697a,'getEditor':()=>_0x2304ad(this[_0x1f2985(0x188)])}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xfc),(_0x37a7d7,_0x5d7c7a)=>{const _0x51f5a=_0x1f2985;this[_0x51f5a(0x16f)][_0x51f5a(0x1d1)](_0x5d7c7a),this[_0x51f5a(0x16f)][_0x51f5a(0xac)](),this[_0x51f5a(0x16f)][_0x51f5a(0x1c8)](),this[_0x51f5a(0x16f)][_0x51f5a(0xe9)](),_0x167664||(this[_0x51f5a(0x16f)][_0x51f5a(0x13b)](),this[_0x51f5a(0x91)]?.[_0x51f5a(0x94)](_0x1fc3d6(this[_0x51f5a(0x188)][_0x51f5a(0xe4)],_0x51f5a(0x15a))));}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe8),(_0x50b92b,_0x56a60e)=>{const _0x235038=_0x1f2985;this[_0x235038(0x16f)][_0x235038(0xc7)](_0x56a60e[_0x235038(0x89)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xf9),(_0x2fc233,_0x3b4e96)=>{const _0x4206ba=_0x1f2985;this[_0x4206ba(0x16f)][_0x4206ba(0x161)](_0x3b4e96);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x8b),()=>{const _0x2d95d8=_0x1f2985;this[_0x2d95d8(0x16f)][_0x2d95d8(0x181)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1a4),()=>{const _0x223455=_0x1f2985;this[_0x223455(0x16f)][_0x223455(0x181)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x17a),(_0x42af8a,_0x2d33f3)=>{const _0xb3089e=_0x1f2985;this[_0xb3089e(0x16f)][_0xb3089e(0x195)](_0x2d33f3,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x178),(_0x2e9e47,_0x1f761f)=>{const _0x59982b=_0x1f2985;this[_0x59982b(0x16f)][_0x59982b(0x195)](_0x1f761f,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe5),()=>{const _0x43ef85=_0x1f2985;this[_0x43ef85(0x16f)][_0x43ef85(0x8e)]();}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1b2),async()=>{const _0x21126e=_0x1f2985;await this[_0x21126e(0x16f)][_0x21126e(0x9f)]();}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x18f),(_0x25d488,_0x47807e)=>{const _0x398377=_0x1f2985;this[_0x398377(0x16f)][_0x398377(0x16d)](_0x47807e['id']);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe3),(_0x4bf963,_0x18720b,_0x5c13ab)=>{const _0xc436cf=_0x1f2985;this[_0xc436cf(0x164)](_0x18720b,_0x5c13ab);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x131),(_0x56e917,_0x5c5779)=>{const _0x5f44fc=_0x1f2985;_0x5f44fc(0x1de)===_0x5c5779[_0x5f44fc(0xb6)]?this[_0x5f44fc(0x16f)][_0x5f44fc(0xd8)](_0x5c5779):this[_0x5f44fc(0x16f)][_0x5f44fc(0x14a)](_0x5c5779);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x142),async(_0x7bc1f5,_0x44bdcf)=>{const _0x348a5d=_0x1f2985;await this[_0x348a5d(0xde)]({'reply':_0x44bdcf});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x14b),(_0x27cf76,{reply:_0x1b32d8,index:_0x334cf3,state:_0xb46b0c})=>{const _0x124399=_0x1f2985;this[_0x124399(0x16f)][_0x124399(0x8d)]({'id':_0x1b32d8['id'],'index':_0x334cf3,'state':_0xb46b0c});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbd),(_0x37062f,_0x19327b)=>{const _0x3a3dd4=_0x1f2985;if(this[_0x3a3dd4(0x16f)][_0x3a3dd4(0xb2)](_0x19327b[_0x3a3dd4(0xd0)],_0x19327b[_0x3a3dd4(0x1c2)]),_0x3a3dd4(0x184)===_0x19327b[_0x3a3dd4(0xd0)][_0x3a3dd4(0xb6)]){const _0x163e1b=[..._0x2304ad(this[_0x3a3dd4(0x188)])[_0x3a3dd4(0xf8)][_0x3a3dd4(0x120)][_0x3a3dd4(0x184)][_0x3a3dd4(0xb3)]()];this[_0x3a3dd4(0x1a0)][_0x3a3dd4(0xae)](_0x163e1b,_0x3a3dd4(0xdb)+this[_0x3a3dd4(0x91)]?.['id']);}}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x189),(_0x2a8d22,_0x1f3276)=>{const _0x534cfe=_0x1f2985;this[_0x534cfe(0x16f)][_0x534cfe(0x10c)](_0x1f3276[_0x534cfe(0x18b)]),_0x534cfe(0xc3)==_0x1f3276[_0x534cfe(0x18b)]&&this[_0x534cfe(0x172)](),_0x534cfe(0x184)===_0x1f3276[_0x534cfe(0xb6)]&&this[_0x534cfe(0x1a0)][_0x534cfe(0xdf)](_0x534cfe(0xdb)+this[_0x534cfe(0x91)]?.['id']);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1aa),(_0x53e8c7,_0x5b0bb6)=>{const _0x192e54=_0x1f2985;this[_0x192e54(0x16f)][_0x192e54(0x1d3)](_0x5b0bb6[_0x192e54(0xd0)][_0x192e54(0x18b)],_0x5b0bb6[_0x192e54(0x1c2)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1da),(_0x547bc6,_0x5e9e0a)=>{const _0x10ebe6=_0x1f2985;this[_0x10ebe6(0x16f)][_0x10ebe6(0xba)](_0x5e9e0a[_0x10ebe6(0x9e)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xfa),(_0x228e98,_0x29796f)=>{const _0x22b15f=_0x1f2985;this[_0x22b15f(0x16f)][_0x22b15f(0x151)](_0x29796f[_0x22b15f(0x150)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbc),(_0x298886,_0x37f33b)=>{const _0x371a2c=_0x1f2985;this[_0x371a2c(0x16f)][_0x371a2c(0x1bc)](_0x37f33b[_0x371a2c(0x15c)],_0x37f33b[_0x371a2c(0xf3)],_0x37f33b[_0x371a2c(0xbb)],_0x37f33b[_0x371a2c(0x192)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x13d),(_0x21c229,_0x4c2d5f)=>{const _0x64db67=_0x1f2985;this[_0x64db67(0x16f)][_0x64db67(0x10d)](_0x4c2d5f[_0x64db67(0x15c)],_0x4c2d5f[_0x64db67(0x159)],_0x4c2d5f[_0x64db67(0x15f)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbe),(_0x277cf3,_0x59f177)=>{const _0x292f08=_0x1f2985;this[_0x292f08(0x16f)][_0x292f08(0x105)](_0x59f177);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x127),(_0x5a1777,_0x36d633)=>{const _0x5a5fa8=_0x1f2985;this[_0x5a5fa8(0x16f)][_0x5a5fa8(0x1be)](_0x36d633[_0x5a5fa8(0x1b3)],_0x36d633[_0x5a5fa8(0xd4)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x11d),(_0x1c6ccb,{error:_0x2205b1,interactionId:_0x10f929,fileName:_0x4509aa,url:_0x19a380,sourceId:_0x45cb4a,sourceLabel:_0x339c6b})=>{const _0x558e65=_0x1f2985,_0x5c4a83=_0x10f929?_0x10f929+':'+_0x484ae2():_0x484ae2();_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0xe0))?this[_0x558e65(0x16f)][_0x558e65(0x132)]({'staticMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x12a)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x1b5))||_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x17b))?(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x119)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x83))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x99),_0x4509aa),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x86))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0xcb),_0x19a380),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x11a))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0xb0)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x16e))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x126)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0xfd))?(_0x45cb4a&&this[_0x558e65(0x16f)][_0x558e65(0xaf)](_0x45cb4a),this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x1ca),_0x339c6b||_0x558e65(0xf3)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x81))?(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x197)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x190)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1));}),await this[_0x1f2985(0x91)][_0x1f2985(0x14c)](this[_0x1f2985(0x188)][_0x1f2985(0x109)][_0x1f2985(0x15e)](_0x1f2985(0x1a1))),_0x167664||await this[_0x1f2985(0x91)][_0x1f2985(0x1a8)]();}async[_0x5268ff(0x10b)]({userMessage:_0x1e068f,quickActionData:_0x4a7efe}){const _0x4e7121=_0x5268ff;if(!this[_0x4e7121(0x91)])throw new _0x352eb3(_0x4e7121(0x157));this[_0x4e7121(0x91)][_0x4e7121(0x104)]()&&await this[_0x4e7121(0x91)][_0x4e7121(0x170)](this[_0x4e7121(0x1a0)][_0x4e7121(0x128)]()),this[_0x4e7121(0x91)]['id']&&this[_0x4e7121(0x91)][_0x4e7121(0x111)]&&await this[_0x4e7121(0x91)][_0x4e7121(0x117)]({'userMessage':_0x1e068f,'quickActionData':_0x4a7efe}),this[_0x4e7121(0xb4)]();}[_0x5268ff(0xb4)](){const _0x2120ff=_0x5268ff,_0x42a731=_0x2304ad(this[_0x2120ff(0x188)])[_0x2120ff(0xf8)],_0x54d1a2=Array[_0x2120ff(0x137)](_0x42a731[_0x2120ff(0x148)][_0x2120ff(0x1c3)](_0x93ab06));_0x42a731[_0x2120ff(0x14f)](_0x47cf71=>{const _0x50c4f3=_0x2120ff;_0x54d1a2[_0x50c4f3(0x193)](_0x521029=>_0x47cf71[_0x50c4f3(0x87)](_0x521029));});}[_0x5268ff(0x18d)](){const _0x23f283=_0x5268ff;console[_0x23f283(0xc9)](_0x23f283(0x1a9));}[_0x5268ff(0x1b0)](_0x10d514){const _0x127438=_0x5268ff;this[_0x127438(0x16f)][_0x127438(0x8c)](_0x10d514);}[_0x5268ff(0x101)](_0x545cd0){const _0x2972f9=_0x5268ff;_0x1248f1(_0x545cd0[_0x2972f9(0x9b)]);}[_0x5268ff(0x1ce)](_0x37ccd7){const _0x4e88f6=_0x5268ff;this[_0x4e88f6(0x91)]?.[_0x4e88f6(0xea)](_0x37ccd7);}[_0x5268ff(0x12f)](){const _0x984d85=_0x5268ff;this[_0x984d85(0x91)]?.[_0x984d85(0x1cd)]();}[_0x5268ff(0x11f)](){const _0x270468=_0x5268ff;this[_0x270468(0x91)]?.[_0x270468(0x1b8)]();}[_0x5268ff(0xb9)](_0x3cf053){const _0x33fe6e=_0x5268ff,[_0xa0648f,_0x318ae3]=_0x3cf053[_0x33fe6e(0x138)](':'),_0x443cd7=this[_0x33fe6e(0x91)][_0x33fe6e(0xf7)](_0xa0648f),_0x103ab5=_0x443cd7[_0x33fe6e(0x199)](_0x318ae3);return{'interaction':_0x443cd7,'reply':_0x103ab5};}[_0x5268ff(0x1ae)](_0x1b0805,_0x42c1a2=!0x1){const _0x2312ed=_0x5268ff,_0xffa94b=_0x2304ad(this[_0x2312ed(0x188)]),_0x597a2e={'target':_0xffa94b[_0x2312ed(0xd6)][_0x2312ed(0x183)][_0x2312ed(0xa2)][_0x2312ed(0x10a)](_0xffa94b[_0x2312ed(0xd6)][_0x2312ed(0xa4)][_0x2312ed(0x1c1)](_0x1b0805)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x42c1a2};_0x42c1a2&&(_0x597a2e[_0x2312ed(0x130)]=!0x0),_0x573709(_0x597a2e);}[_0x5268ff(0x164)](_0x193704,_0x35cd9b=!0x1){const _0x360bfd=_0x5268ff;this[_0x360bfd(0x16f)][_0x360bfd(0xe3)](_0x193704||_0x1fc3d6(this[_0x360bfd(0x188)][_0x360bfd(0xe4)],_0x360bfd(0xef)),_0x35cd9b);}async[_0x5268ff(0xde)]({reply:_0x2b261c,renderingStrategy:_0x10466e}){const _0x2cefab=_0x5268ff,{id:_0x505d53,isDone:_0x5d1cea,type:_0x710c7e,parsedContent:_0x44861d}=_0x2b261c;if(_0x2cefab(0xdd)===_0x710c7e){const _0x2a807e=_0x2b261c[_0x2cefab(0xce)]({'showDiff':this[_0x2cefab(0x16f)][_0x2cefab(0x1a6)]});await this[_0x2cefab(0x16f)][_0x2cefab(0x145)]({'id':_0x505d53,'parts':_0x2a807e,'renderingStrategy':_0x10466e,'isDone':_0x5d1cea});}else _0x2cefab(0x1de)===_0x710c7e&&await this[_0x2cefab(0x16f)][_0x2cefab(0xb5)]({'id':_0x505d53,'parsedContent':_0x44861d,'renderingStrategy':_0x10466e,'isDone':_0x5d1cea});_0x5d1cea&&_0x2b261c[_0x2cefab(0x194)][_0x2cefab(0x121)]>0x0&&this[_0x2cefab(0x16f)][_0x2cefab(0x143)](_0x505d53,_0x2b261c[_0x2cefab(0x194)]);}async[_0x5268ff(0x1b7)](){const _0x19063d=_0x5268ff,_0x20d074=this[_0x19063d(0x91)]?.[_0x19063d(0x13c)];_0x20d074&&(_0x20d074[_0x19063d(0x8f)](),this[_0x19063d(0x16f)][_0x19063d(0xc2)](_0x20d074));}async[_0x5268ff(0xb1)](){const _0x4d0d3d=_0x5268ff,_0x3fa07f=this[_0x4d0d3d(0x91)]?.[_0x4d0d3d(0x13c)];if(_0x3fa07f){for await(const _0x282470 of _0x3fa07f[_0x4d0d3d(0x115)])await this[_0x4d0d3d(0xde)]({'reply':_0x282470,'renderingStrategy':_0x4d0d3d(0xa9)});}}[_0x5268ff(0x133)](_0x263386){const _0x40b23e=_0x5268ff,_0x4e00eb={'positiveCount':_0x263386[_0x40b23e(0xe6)][_0x40b23e(0x11b)](_0x4f47b2=>_0x40b23e(0x12e)===_0x4f47b2[_0x40b23e(0x19b)])[_0x40b23e(0x121)],'totalCount':_0x263386[_0x40b23e(0xe6)][_0x40b23e(0x121)],'modificationId':_0x263386['id']},_0x3044f2=this[_0x40b23e(0x91)][_0x40b23e(0xf7)](_0x263386[_0x40b23e(0xab)])[_0x40b23e(0x1ac)];this[_0x40b23e(0xed)][_0x40b23e(0x160)](this[_0x40b23e(0x91)]['id'],_0x3044f2,_0x4e00eb);}}
23
+ const _0x1a2717=_0x1917;(function(_0x3ea692,_0x521067){const _0x62027f=_0x1917,_0x1ac591=_0x3ea692();while(!![]){try{const _0x154e67=-parseInt(_0x62027f(0x243))/0x1+-parseInt(_0x62027f(0x291))/0x2*(parseInt(_0x62027f(0x18a))/0x3)+parseInt(_0x62027f(0x263))/0x4*(-parseInt(_0x62027f(0x1df))/0x5)+parseInt(_0x62027f(0x284))/0x6+parseInt(_0x62027f(0x258))/0x7*(parseInt(_0x62027f(0x209))/0x8)+parseInt(_0x62027f(0x2bb))/0x9+parseInt(_0x62027f(0x1e8))/0xa*(parseInt(_0x62027f(0x1ab))/0xb);if(_0x154e67===_0x521067)break;else _0x1ac591['push'](_0x1ac591['shift']());}catch(_0x36dc9c){_0x1ac591['push'](_0x1ac591['shift']());}}}(_0xf9cb,0x5722c));import{ContextPlugin as _0x5f0104,Editor as _0x38df1b}from'ckeditor5/src/core.js';function _0x1917(_0x65c98a,_0x1b15d9){const _0xf9cb00=_0xf9cb();return _0x1917=function(_0x191766,_0x41d1d3){_0x191766=_0x191766-0x16d;let _0x4805e3=_0xf9cb00[_0x191766];return _0x4805e3;},_0x1917(_0x65c98a,_0x1b15d9);}import{CKEditorError as _0x8ac84b,logError as _0x38d8c6,scrollViewportToShowTarget as _0x1bc34d,uid as _0x5102d0}from'ckeditor5/src/utils.js';import{AIConnector as _0x2c18b8}from'../aicore/aiconnector.js';import{AITabs as _0x14453f}from'../aitabs/aitabs.js';import{AIChatConversation as _0x151ae4}from'./model/aichatconversation.js';import{getTranslation as _0x10e65f}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x280f3a}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x4b3c6b}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x2dcedc}from'./model/aichatmodels.js';import{getEditorFromContext as _0x3c8c69}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x547b50,DATA_ID_MODEL_ATTRIBUTE as _0x5738df}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x3ee9ea,getOperationsFromReply as _0x4b52ab}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x38d747,getMinimalSelection as _0x2c6897}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x54ad58,_DetachOperation as _0x200188}from'ckeditor5/src/engine.js';import{findOne as _0x139136,getAttribute as _0x5a6aa8,serialize as _0x3a9a66,Document as _0x55df7e,findByAttribute as _0xf37b8c}from'../aicore/utils/htmlparser.js';import{IconAI as _0x18af1f}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x45e5e0}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4ba62e}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x5f0104{[_0x1a2717(0x17a)];[_0x1a2717(0x236)];[_0x1a2717(0x205)];[_0x1a2717(0x21e)];[_0x1a2717(0x226)]=new Map();[_0x1a2717(0x16e)]=null;[_0x1a2717(0x20c)]=!0x1;static get[_0x1a2717(0x1af)](){return[_0x2c18b8,_0x4ba62e,_0x547b50];}static get[_0x1a2717(0x250)](){const _0x40c95e=_0x1a2717;return _0x40c95e(0x1ae);}static get[_0x1a2717(0x29d)](){return!0x0;}static get[_0x1a2717(0x1d8)](){return!0x0;}[_0x1a2717(0x245)](){const _0x2b8f9e=_0x1a2717;this[_0x2b8f9e(0x236)]=this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x221)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x23a)),this[_0x2b8f9e(0x205)]=this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x221)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x1b3)),this[_0x2b8f9e(0x17a)]=this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x221)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x1b4)),this[_0x2b8f9e(0x21e)]=new _0x2dcedc({'connector':this[_0x2b8f9e(0x236)],'availableModels':this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x282)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x230)),'defaultModelId':this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x282)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x2ad))});const _0x1cc82d=this[_0x2b8f9e(0x26f)][_0x2b8f9e(0x221)][_0x2b8f9e(0x1aa)](_0x2b8f9e(0x267));this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x201),()=>{const _0x2008e3=_0x2b8f9e;this[_0x2008e3(0x17d)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x174),(_0x28d45b,_0x4cc20c)=>{const _0x957b4f=_0x2b8f9e;this[_0x957b4f(0x223)]({'userMessage':_0x4cc20c});}),this[_0x2b8f9e(0x1a3)](_0x1cc82d,_0x2b8f9e(0x1ef),(_0x1652a9,_0x4e44eb)=>{const _0x264311=_0x2b8f9e;this[_0x264311(0x1f2)](_0x4e44eb);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x272),()=>{const _0x27ca3b=_0x2b8f9e;_0x1cc82d[_0x27ca3b(0x198)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x25c),async()=>{const _0x176bc1=_0x2b8f9e;await this[_0x176bc1(0x2c3)](),await this[_0x176bc1(0x1ce)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x19f),()=>{const _0x549ff5=_0x2b8f9e;this[_0x549ff5(0x298)]?.[_0x549ff5(0x186)](_0x10e65f(this[_0x549ff5(0x26f)][_0x549ff5(0x1da)],_0x549ff5(0x195)));}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x1e5),(_0x588d1a,_0x5e17ba)=>{const _0xf5d99e=_0x2b8f9e;this[_0xf5d99e(0x298)]?.[_0xf5d99e(0x1a1)](Array[_0xf5d99e(0x1ba)](_0x5e17ba));}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x271),(_0x5873e8,_0x14ff90)=>{const _0x3c6fa9=_0x2b8f9e;this[_0x3c6fa9(0x298)]?.[_0x3c6fa9(0x271)](_0x14ff90);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x187),(_0x556a86,_0x1fa481)=>{const _0x3de392=_0x2b8f9e;this[_0x3de392(0x298)]?.[_0x3de392(0x187)](_0x1fa481[_0x3de392(0x20e)],_0x1fa481[_0x3de392(0x215)]);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x270),(_0x1bb4aa,_0x4102ce)=>{const _0x1b6706=_0x2b8f9e;this[_0x1b6706(0x19b)](_0x4102ce);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x1c6),(_0x24c845,_0x5e187e)=>{const _0x127676=_0x2b8f9e;this[_0x127676(0x298)]?.[_0x127676(0x1c6)](_0x5e187e[_0x127676(0x202)],_0x5e187e[_0x127676(0x27d)],_0x5e187e[_0x127676(0x1b7)]);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x2a1),()=>{const _0x315058=_0x2b8f9e;this[_0x315058(0x180)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x184),()=>{const _0x230c54=_0x2b8f9e;this[_0x230c54(0x1e2)]();}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x2cc),(_0x41f3dc,_0x41986a)=>{const _0x3ee765=_0x2b8f9e;this[_0x3ee765(0x298)]?.[_0x3ee765(0x269)](_0x41986a);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x1f1),(_0x357d29,{replyId:_0x437523})=>{const _0x17880e=_0x2b8f9e;console[_0x17880e(0x1a0)](_0x17880e(0x290),_0x437523);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x27b),(_0x55af3b,{replyId:_0x45f4f1})=>{const _0x228880=_0x2b8f9e;console[_0x228880(0x1a0)](_0x228880(0x27a),_0x45f4f1);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x18f),(_0x518ac5,_0x5bc460)=>{const _0x2adbfd=_0x2b8f9e;this[_0x2adbfd(0x26f)][_0x2adbfd(0x221)][_0x2adbfd(0x1aa)](_0x4ba62e)[_0x2adbfd(0x1eb)](),this[_0x2adbfd(0x2b3)](_0x5bc460);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x1fe),(_0x104b6e,{replyId:_0x56cfa1,partIndex:_0x1c7bac})=>{const _0x70fdda=_0x2b8f9e;this[_0x70fdda(0x20c)]=this[_0x70fdda(0x205)][_0x70fdda(0x1a8)],this[_0x70fdda(0x244)](_0x56cfa1,_0x1c7bac);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x268),(_0x1e4f56,{replyId:_0x27909e,partIndex:_0x274253})=>{const _0x42a748=_0x2b8f9e,_0x53f234=this[_0x42a748(0x208)](_0x27909e,_0x274253);_0x53f234&&_0x42a748(0x26e)!=_0x53f234[_0x42a748(0x1f5)][_0x42a748(0x190)][_0x42a748(0x1f7)]&&this[_0x42a748(0x17a)][_0x42a748(0x28b)]([_0x53f234[_0x42a748(0x1f5)]],_0x42a748(0x1c7));}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x21f),()=>{const _0x4c706a=_0x2b8f9e;this[_0x4c706a(0x17a)][_0x4c706a(0x2a0)](_0x4c706a(0x1c7));}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x237),(_0x289709,_0x10b502)=>{const _0xe5a2ff=_0x2b8f9e;this[_0xe5a2ff(0x26f)][_0xe5a2ff(0x221)][_0xe5a2ff(0x1aa)](_0x4ba62e)[_0xe5a2ff(0x1eb)](),this[_0xe5a2ff(0x229)](_0x10b502);}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x25e),async(_0x34eb71,{replyId:_0x372dbf,showDiff:_0x4b2595})=>{const _0x51a994=_0x2b8f9e,{reply:_0x18bcf3}=this[_0x51a994(0x1c3)](_0x372dbf),_0x608a41=_0x18bcf3[_0x51a994(0x29e)]({'showDiff':_0x4b2595});await this[_0x51a994(0x205)][_0x51a994(0x1c1)]({'id':_0x18bcf3['id'],'parts':_0x608a41,'renderingStrategy':_0x51a994(0x235)});}),this[_0x2b8f9e(0x1a3)](this[_0x2b8f9e(0x205)],_0x2b8f9e(0x27c),(_0x3dafe6,{replyId:_0x1e2edd,partIndex:_0x2fb74a})=>{const _0x5d39ab=_0x2b8f9e;this[_0x5d39ab(0x16e)]?.[_0x5d39ab(0x21c)]==_0x1e2edd&&this[_0x5d39ab(0x16e)]?.[_0x5d39ab(0x2a7)]==_0x2fb74a&&this[_0x5d39ab(0x26f)][_0x5d39ab(0x221)][_0x5d39ab(0x1aa)](_0x4ba62e)[_0x5d39ab(0x1eb)]();const {reply:_0x43ccad}=this[_0x5d39ab(0x1c3)](_0x1e2edd);_0x43ccad[_0x5d39ab(0x24a)](_0x2fb74a,_0x5d39ab(0x2b2)),this[_0x5d39ab(0x17a)][_0x5d39ab(0x2a0)](_0x5d39ab(0x1c7));});}async[_0x1a2717(0x175)](){const _0x301f1a=_0x1a2717;this[_0x301f1a(0x26f)]instanceof _0x38df1b?this[_0x301f1a(0x1fc)](this[_0x301f1a(0x26f)]):this[_0x301f1a(0x1a3)](this[_0x301f1a(0x26f)][_0x301f1a(0x204)],_0x301f1a(0x193),(_0x13962f,_0x3cb848)=>{const _0x4c99f7=_0x301f1a;_0x3cb848['on'](_0x4c99f7(0x19c),()=>{const _0x2271f6=_0x4c99f7;this[_0x2271f6(0x1fc)](_0x3cb848);});}),await this[_0x301f1a(0x17d)]();}[_0x1a2717(0x2b3)](_0x31b943){const _0x33ff2d=_0x1a2717,_0x503e05=_0x3c8c69(this[_0x33ff2d(0x26f)]);if(!_0x503e05[_0x33ff2d(0x221)][_0x33ff2d(0x29f)](_0x33ff2d(0x1fd)))throw new _0x8ac84b(_0x33ff2d(0x1e9),null);const _0x1b2f38=this[_0x33ff2d(0x26f)][_0x33ff2d(0x221)][_0x33ff2d(0x1aa)](_0x33ff2d(0x1fa)),{reply:_0x37b245,interaction:_0x5bf2e6}=this[_0x33ff2d(0x1c3)](_0x31b943[_0x33ff2d(0x21c)]),_0x28ca0f=this[_0x33ff2d(0x208)](_0x31b943[_0x33ff2d(0x21c)],_0x31b943[_0x33ff2d(0x2a7)]),_0xfa7a51=void 0x0!==_0x31b943[_0x33ff2d(0x2a7)]?[_0x37b245[_0x33ff2d(0x2ac)][_0x31b943[_0x33ff2d(0x2a7)]]]:_0x37b245[_0x33ff2d(0x2ac)][_0x33ff2d(0x188)](_0x3eeeef=>_0x33ff2d(0x1d9)==_0x3eeeef[_0x33ff2d(0x1a9)]),_0x11fa9a=_0xfa7a51[_0x33ff2d(0x179)](_0x138db2=>_0x37b245[_0x33ff2d(0x2ac)][_0x33ff2d(0x2a3)](_0x138db2));if(!_0x28ca0f||_0x33ff2d(0x26e)==_0x28ca0f[_0x33ff2d(0x1f5)][_0x33ff2d(0x190)][_0x33ff2d(0x1f7)])return void _0x11fa9a[_0x33ff2d(0x213)](_0x5836bf=>_0x37b245[_0x33ff2d(0x24a)](_0x5836bf,_0x33ff2d(0x279)));_0x11fa9a[_0x33ff2d(0x213)](_0x161b59=>_0x37b245[_0x33ff2d(0x24a)](_0x161b59,_0x33ff2d(0x1cf)));const _0x80516e=_0x4b52ab({'editor':_0x503e05,'reply':_0x37b245,'interaction':_0x5bf2e6,'groups':_0xfa7a51,'transform':!0x0,'documentCompare':_0x1b2f38,'documentCompareOptions':{'anchor':_0x33ff2d(0x254),'markDeletions':!0x0}});let _0x41bc01;_0x28ca0f&&this[_0x33ff2d(0x2b4)](_0x28ca0f[_0x33ff2d(0x1f5)]),_0x503e05[_0x33ff2d(0x29b)][_0x33ff2d(0x27e)](_0x34328c=>{const _0xe2904f=_0x33ff2d;_0x41bc01=_0x34328c[_0xe2904f(0x1d6)],_0x503e05[_0xe2904f(0x221)][_0xe2904f(0x1aa)](_0xe2904f(0x178))[_0xe2904f(0x1f3)](_0x80516e),this[_0xe2904f(0x17a)][_0xe2904f(0x2a0)](_0xe2904f(0x1c7));}),this[_0x33ff2d(0x226)][_0x33ff2d(0x2a5)](_0x41bc01,{'interactionId':_0x5bf2e6['id'],'replyId':_0x37b245['id'],'indexes':_0x11fa9a[_0x33ff2d(0x207)]()}),this[_0x33ff2d(0x18e)](_0x37b245);}[_0x1a2717(0x229)](_0x95570b){const _0x1be94f=_0x1a2717,_0x24d139=_0x3c8c69(this[_0x1be94f(0x26f)]),_0x5226fe=this[_0x1be94f(0x26f)][_0x1be94f(0x221)][_0x1be94f(0x1aa)](_0x547b50),{reply:_0x1120f6,interaction:_0x2700f7}=this[_0x1be94f(0x1c3)](_0x95570b[_0x1be94f(0x21c)]),_0x403d39=this[_0x1be94f(0x208)](_0x95570b[_0x1be94f(0x21c)],_0x95570b[_0x1be94f(0x2a7)]),_0x2c4df8=void 0x0!==_0x95570b[_0x1be94f(0x2a7)]?[_0x1120f6[_0x1be94f(0x2ac)][_0x95570b[_0x1be94f(0x2a7)]]]:_0x1120f6[_0x1be94f(0x2ac)][_0x1be94f(0x188)](_0x172df6=>_0x1be94f(0x1d9)==_0x172df6[_0x1be94f(0x1a9)]),_0x12d8e0=_0x2c4df8[_0x1be94f(0x179)](_0x2a4bdc=>_0x1120f6[_0x1be94f(0x2ac)][_0x1be94f(0x2a3)](_0x2a4bdc));if(!_0x403d39||_0x1be94f(0x26e)==_0x403d39[_0x1be94f(0x1f5)][_0x1be94f(0x190)][_0x1be94f(0x1f7)])return void _0x12d8e0[_0x1be94f(0x213)](_0x3470e1=>_0x1120f6[_0x1be94f(0x24a)](_0x3470e1,_0x1be94f(0x279)));_0x12d8e0[_0x1be94f(0x213)](_0x1a4a57=>_0x1120f6[_0x1be94f(0x24a)](_0x1a4a57,_0x1be94f(0x1cf)));const _0x5bd8b1=_0x4b52ab({'editor':_0x24d139,'reply':_0x1120f6,'interaction':_0x2700f7,'groups':_0x2c4df8,'transform':!0x0,'documentCompare':_0x5226fe,'documentCompareOptions':{'anchor':_0x1be94f(0x254),'markDeletions':!0x1}});let _0x38ce24;_0x403d39&&this[_0x1be94f(0x2b4)](_0x403d39[_0x1be94f(0x1f5)]),_0x24d139[_0x1be94f(0x29b)][_0x1be94f(0x27e)](_0x3e9f2c=>{const _0x3773fa=_0x1be94f;_0x38ce24=_0x3e9f2c[_0x3773fa(0x1d6)];for(const _0x2b0634 of _0x5bd8b1)_0x2b0634[_0x3773fa(0x2bd)]=_0x24d139[_0x3773fa(0x29b)][_0x3773fa(0x1de)][_0x3773fa(0x1a5)],_0x3ee9ea(_0x24d139,_0x2b0634),_0x3e9f2c[_0x3773fa(0x1d6)][_0x3773fa(0x18c)](_0x2b0634),_0x24d139[_0x3773fa(0x29b)][_0x3773fa(0x295)](_0x2b0634);}),this[_0x1be94f(0x226)][_0x1be94f(0x2a5)](_0x38ce24,{'interactionId':_0x2700f7['id'],'replyId':_0x1120f6['id'],'indexes':_0x12d8e0[_0x1be94f(0x207)]()}),this[_0x1be94f(0x18e)](_0x1120f6);}[_0x1a2717(0x244)](_0x2849d9,_0x79eb8){const _0x46103f=_0x1a2717,_0x39ec60=_0x3c8c69(this[_0x46103f(0x26f)]),_0x599071=this[_0x46103f(0x208)](_0x2849d9,_0x79eb8),_0xebe400=this[_0x46103f(0x26f)][_0x46103f(0x221)][_0x46103f(0x1aa)](_0x4ba62e);if(!_0x599071)return void _0xebe400[_0x46103f(0x1eb)]();const {range:_0x16d732,currentIndex:_0x291350}=_0x599071;if(_0x46103f(0x26e)==_0x16d732[_0x46103f(0x190)][_0x46103f(0x1f7)]){const {reply:_0x3fe19a}=this[_0x46103f(0x1c3)](_0x2849d9);return _0x3fe19a[_0x46103f(0x24a)](_0x291350,_0x46103f(0x279)),void _0xebe400[_0x46103f(0x1eb)]();}if(this[_0x46103f(0x16e)]?.[_0x46103f(0x21c)]==_0x2849d9&&this[_0x46103f(0x16e)]?.[_0x46103f(0x2a7)]==_0x291350)return;this[_0x46103f(0x25f)](_0xebe400),this[_0x46103f(0x16e)]={'replyId':_0x2849d9,'partIndex':_0x291350};let _0x3f52ba=_0x39ec60[_0x46103f(0x282)][_0x46103f(0x1aa)](_0x46103f(0x1dc))||[..._0x4b3c6b];_0x39ec60[_0x46103f(0x221)][_0x46103f(0x29f)](_0x46103f(0x1fd))||(_0x3f52ba=_0x3f52ba[_0x46103f(0x188)](_0x27bab4=>_0x46103f(0x18f)!=_0x27bab4));const _0x10e417=new _0x45e5e0(_0x39ec60[_0x46103f(0x1da)],{'showDiff':this[_0x46103f(0x20c)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x46103f(0x22c)},'hideHeader':!0x0,'availableActions':_0x3f52ba});this[_0x46103f(0x25f)](_0x10e417);const {reply:_0x23e1ec}=this[_0x46103f(0x1c3)](_0x2849d9),_0xe177a5=_0x23e1ec[_0x46103f(0x29e)]({'showDiff':this[_0x46103f(0x20c)]})[_0x46103f(0x188)](_0x5c44b0=>_0x5c44b0[_0x46103f(0x25a)]),_0x4d7d68=_0xe177a5[_0x46103f(0x26a)](_0x3dc8a7=>_0x3dc8a7[_0x46103f(0x200)]==_0x291350);if(-0x1==_0x4d7d68)return;const _0x231ad8=_0xe177a5[_0x4d7d68],_0x4aca0c=_0xe177a5['at']((_0x4d7d68-0x1)%_0xe177a5[_0x46103f(0x23b)])?.[_0x46103f(0x200)],_0x457492=_0xe177a5['at']((_0x4d7d68+0x1)%_0xe177a5[_0x46103f(0x23b)])?.[_0x46103f(0x200)];_0x10e417[_0x46103f(0x2a2)]({'parts':[_0x231ad8],'renderingStrategy':_0x46103f(0x235)});const _0x442ba0=_0x291350!==_0x4aca0c;this[_0x46103f(0x2b4)](_0x16d732,!0x0),_0xebe400[_0x46103f(0x170)]({'index':_0x291350,'title':_0x10e65f(this[_0x46103f(0x26f)][_0x46103f(0x1da)],_0x46103f(0x1e4),(_0x4d7d68+0x1)[_0x46103f(0x288)]()),'icon':_0x18af1f,'mainView':_0x10e417,'showRotator':_0x442ba0,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x16d732]}),this[_0x46103f(0x205)][_0x46103f(0x1db)](_0x2849d9,_0x291350),this[_0x46103f(0x1a3)](_0x10e417,_0x46103f(0x25e),(_0x1786ce,{showDiff:_0x135576})=>{const _0x1d7d8f=_0x46103f;this[_0x1d7d8f(0x20c)]=_0x135576;const {reply:_0x32c337}=this[_0x1d7d8f(0x1c3)](_0x2849d9),_0x1c746b=_0x32c337[_0x1d7d8f(0x29e)]({'showDiff':_0x135576,'groupIndex':_0x291350});_0x10e417[_0x1d7d8f(0x2a2)]({'parts':_0x1c746b,'renderingStrategy':_0x1d7d8f(0x235)});}),this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x237),()=>{const _0x553f27=_0x46103f;this[_0x553f27(0x229)]({'replyId':_0x2849d9,'partIndex':_0x291350}),_0x442ba0?this[_0x553f27(0x244)](_0x2849d9,_0x457492):_0xebe400[_0x553f27(0x1eb)]();}),this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x18f),()=>{const _0x281dfd=_0x46103f;this[_0x281dfd(0x2b3)]({'replyId':_0x2849d9,'partIndex':_0x291350}),_0x442ba0?this[_0x281dfd(0x244)](_0x2849d9,_0x457492):_0xebe400[_0x281dfd(0x1eb)]();}),_0x442ba0&&(this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x1a4),()=>{const _0x49f4c1=_0x46103f;this[_0x49f4c1(0x244)](_0x2849d9,_0x457492);}),this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x1e3),()=>{const _0x45519f=_0x46103f;this[_0x45519f(0x244)](_0x2849d9,_0x4aca0c);})),this[_0x46103f(0x1a3)](_0xebe400,_0x46103f(0x211),()=>{const _0x5179db=_0x46103f;this[_0x5179db(0x25f)](_0xebe400),this[_0x5179db(0x25f)](_0x10e417),this[_0x5179db(0x16e)]=null;});}[_0x1a2717(0x208)](_0x243df8,_0x5243b7){const _0x196084=_0x1a2717,_0xa9bb3=_0x3c8c69(this[_0x196084(0x26f)]),{reply:_0x5efd34,interaction:_0x5d3664}=this[_0x196084(0x1c3)](_0x243df8),_0x121d57=_0x5efd34[_0x196084(0x2ac)][_0x196084(0x188)](_0x31e60e=>_0x196084(0x1d9)==_0x31e60e[_0x196084(0x1a9)]),_0x40bee9=_0x121d57[_0x196084(0x179)](_0x1401b4=>_0x5efd34[_0x196084(0x2ac)][_0x196084(0x2a3)](_0x1401b4));void 0x0===_0x5243b7&&(_0x5243b7=_0x40bee9[0x0]);const _0x1e9d15=_0x40bee9[_0x196084(0x2a3)](_0x5243b7);if(-0x1==_0x1e9d15)return null;const _0x4e5f5b=_0x121d57[_0x1e9d15],_0x5625c7=new _0x55df7e([]),_0x400f5b=new _0x55df7e([]);for(const _0x1afb7e of _0x4e5f5b[_0x196084(0x265)])if(_0x196084(0x285)!=_0x1afb7e[_0x196084(0x1f6)]&&_0x400f5b[_0x196084(0x24e)][_0x196084(0x260)](_0x1afb7e[_0x196084(0x1e6)][_0x196084(0x210)](!0x0)),_0x196084(0x238)!=_0x1afb7e[_0x196084(0x1f6)]){const _0x26b585=_0x139136(_0x367083=>_0x5a6aa8(_0x367083,_0x196084(0x280))==_0x1afb7e['id'],_0x5efd34[_0x196084(0x2b9)],!0x0);_0x5625c7[_0x196084(0x24e)][_0x196084(0x260)](_0x26b585[_0x196084(0x210)](!0x0));}if(0x0==_0x5625c7[_0x196084(0x24e)][_0x196084(0x23b)]){if(_0x4e5f5b[_0x196084(0x265)][0x0][_0x196084(0x1d4)]){const _0x5067b5=_0xf37b8c(_0x196084(0x280),_0x4e5f5b[_0x196084(0x265)][0x0][_0x196084(0x1d4)],_0x5efd34[_0x196084(0x2b9)]);_0x5625c7[_0x196084(0x24e)][_0x196084(0x21d)](_0x5067b5[_0x196084(0x210)](!0x0)),_0x400f5b[_0x196084(0x24e)][_0x196084(0x21d)](_0x5067b5[_0x196084(0x210)](!0x0)),_0x5067b5[_0x196084(0x1d0)]&&(_0x5625c7[_0x196084(0x24e)][_0x196084(0x260)](_0x5067b5[_0x196084(0x1d0)][_0x196084(0x210)](!0x0)),_0x400f5b[_0x196084(0x24e)][_0x196084(0x260)](_0x5067b5[_0x196084(0x1d0)][_0x196084(0x210)](!0x0)));}else{const _0x3ac2f9=_0x5efd34[_0x196084(0x2b9)][_0x196084(0x24e)][0x0];if(!_0x3ac2f9)return null;_0x5625c7[_0x196084(0x24e)][_0x196084(0x260)](_0x3ac2f9[_0x196084(0x210)](!0x0)),_0x400f5b[_0x196084(0x24e)][_0x196084(0x260)](_0x3ac2f9[_0x196084(0x210)](!0x0));}}const _0x93f1a2=_0x5d3664[_0x196084(0x2c4)](),_0xa0864b=_0xa9bb3[_0x196084(0x1b6)][_0x196084(0x17c)](_0x93f1a2[_0x196084(0x1ed)]),_0x5a111d=_0x3a9a66(_0x5625c7),_0x2ab0ee=_0xa9bb3[_0x196084(0x1b6)][_0x196084(0x17c)](_0x5a111d),_0x422653=_0xa9bb3[_0x196084(0x1b6)][_0x196084(0x17c)](_0x5a111d),_0x565fb2=_0xa9bb3[_0x196084(0x29b)][_0x196084(0x232)](_0x2ab0ee,0x0),_0x3e1ed6=_0x3a9a66(_0x400f5b),_0x4e2bad={'anchor':_0x565fb2,'markDeletions':!0x1},_0x49127c=_0xa9bb3[_0x196084(0x221)][_0x196084(0x1aa)](_0x547b50)[_0x196084(0x2cb)](_0x5a111d,_0x3e1ed6,_0x4e2bad)[_0x196084(0x212)]();if(!_0x49127c[_0x196084(0x23b)])return null;_0xa9bb3[_0x196084(0x29b)][_0x196084(0x27e)](_0x2f91f9=>{const _0x32d5ce=_0x196084;for(const _0x5213bb of _0x49127c)if(_0x32d5ce(0x294)==_0x5213bb[_0x32d5ce(0x1f6)]){const _0x295577=_0x5213bb[_0x32d5ce(0x262)],_0x82f3fe=_0x5213bb[_0x32d5ce(0x177)],_0x44b915=new _0x200188(_0x295577,_0x82f3fe);_0x2f91f9[_0x32d5ce(0x1d6)][_0x32d5ce(0x18c)](_0x44b915),_0xa9bb3[_0x32d5ce(0x29b)][_0x32d5ce(0x295)](_0x44b915);}else _0x32d5ce(0x278)!==_0x5213bb[_0x32d5ce(0x1f6)]&&(_0x5213bb[_0x32d5ce(0x2bd)]=null,_0x5213bb[_0x32d5ce(0x20a)]=!0x1,_0x2f91f9[_0x32d5ce(0x1d6)][_0x32d5ce(0x18c)](_0x5213bb),_0xa9bb3[_0x32d5ce(0x29b)][_0x32d5ce(0x295)](_0x5213bb));});const _0xd3560f=_0x2c6897(_0xa9bb3,_0x49127c,_0x2ab0ee);_0x38d747(_0xa9bb3[_0x196084(0x29b)],_0xd3560f);const _0x1c994e=_0xd3560f[_0x196084(0x23c)]()[_0x196084(0x2c6)][_0x196084(0x217)][_0x196084(0x207)](),_0x1026c0=_0xd3560f[_0x196084(0x23c)]()[_0x196084(0x2b1)][_0x196084(0x217)][_0x196084(0x207)](),_0x395ee5=[];let _0x274057=_0x2ab0ee,_0x16149a=_0x422653;for(let _0x5a63f4=0x0;_0x5a63f4<_0x1026c0[_0x196084(0x23b)];_0x5a63f4++){const _0x11f2e6=_0x274057[_0x196084(0x192)]-_0x1026c0[_0x5a63f4];_0x395ee5[_0x5a63f4]=_0x16149a[_0x196084(0x192)]-_0x11f2e6,_0x274057=_0x274057[_0x196084(0x1b5)](_0x1026c0[_0x5a63f4]),_0x16149a=_0x16149a[_0x196084(0x1b5)](_0x395ee5[_0x5a63f4]);}const _0x4c776b=_0xa9bb3[_0x196084(0x29b)][_0x196084(0x242)](_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1c8)](_0x422653,_0x1c994e),_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1c8)](_0x422653,_0x395ee5)),_0x3804ee=_0x422653[_0x196084(0x1b0)](0x0)[_0x196084(0x2be)](_0x5738df),_0x1e46df=Array[_0x196084(0x1ba)](_0xa0864b[_0x196084(0x259)]())[_0x196084(0x247)](_0x9103bc=>_0x9103bc[_0x196084(0x2be)](_0x5738df)==_0x3804ee)[_0x196084(0x22f)](),_0x47ab0b=_0x4c776b[_0x196084(0x2c6)][_0x196084(0x217)][_0x196084(0x207)](),_0x537add=_0x4c776b[_0x196084(0x2b1)][_0x196084(0x217)][_0x196084(0x207)]();_0x47ab0b[0x0]=_0x1e46df[0x0]+_0x47ab0b[0x0],_0x537add[0x0]=_0x1e46df[0x0]+_0x537add[0x0];let _0x4573fb=_0xa9bb3[_0x196084(0x29b)][_0x196084(0x242)](_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1c8)](_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1de)][_0x196084(0x1ac)](),_0x47ab0b),_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1c8)](_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1de)][_0x196084(0x1ac)](),_0x537add));const _0x63f680=_0xa9bb3[_0x196084(0x29b)][_0x196084(0x1de)][_0x196084(0x266)][_0x196084(0x212)](_0x93f1a2[_0x196084(0x1a5)]);for(const _0x4a66ca of _0x63f680)_0x4573fb=_0x54ad58[_0x196084(0x17f)](_0x4573fb[_0x196084(0x222)](_0x4a66ca));return{'range':_0x4573fb,'currentIndex':_0x5243b7};}[_0x1a2717(0x1fc)](_0x2f72c0){const _0x37d891=_0x1a2717;if(!_0x2f72c0[_0x37d891(0x221)][_0x37d891(0x29f)](_0x37d891(0x22b)))return;const _0x398fe7=_0x2f72c0[_0x37d891(0x172)][_0x37d891(0x1aa)](_0x37d891(0x296)),_0x37a5a3=_0x2f72c0[_0x37d891(0x172)][_0x37d891(0x1aa)](_0x37d891(0x251));this[_0x37d891(0x1a3)](_0x398fe7,_0x37d891(0x19e),(_0x48cdc0,_0x273115,_0xa77ff7)=>{const _0x1711f3=_0x37d891,_0x235983=this[_0x1711f3(0x226)][_0x1711f3(0x1aa)](_0x273115);if(!_0x235983)return;const _0x266bf2=this[_0x1711f3(0x298)][_0x1711f3(0x183)](_0x235983[_0x1711f3(0x1d2)])[_0x1711f3(0x1b2)](_0x235983[_0x1711f3(0x21c)]);_0x235983[_0x1711f3(0x1f8)][_0x1711f3(0x213)](_0x40d004=>_0x266bf2[_0x1711f3(0x24a)](_0x40d004,_0x1711f3(0x1d9))),this[_0x1711f3(0x226)][_0x1711f3(0x171)](_0x273115),this[_0x1711f3(0x226)][_0x1711f3(0x2a5)](_0xa77ff7,_0x235983);}),this[_0x37d891(0x1a3)](_0x37a5a3,_0x37d891(0x19e),(_0xffa3ff,_0x4e1b1e,_0x21dbc5)=>{const _0x30b678=_0x37d891,_0x1109e9=this[_0x30b678(0x226)][_0x30b678(0x1aa)](_0x4e1b1e);if(!_0x1109e9)return;const _0x5a9722=this[_0x30b678(0x298)][_0x30b678(0x183)](_0x1109e9[_0x30b678(0x1d2)])[_0x30b678(0x1b2)](_0x1109e9[_0x30b678(0x21c)]);_0x1109e9[_0x30b678(0x1f8)][_0x30b678(0x213)](_0x3ecfb6=>_0x5a9722[_0x30b678(0x24a)](_0x3ecfb6,_0x30b678(0x1cf))),this[_0x30b678(0x226)][_0x30b678(0x171)](_0x4e1b1e),this[_0x30b678(0x226)][_0x30b678(0x2a5)](_0x21dbc5,_0x1109e9);});}async[_0x1a2717(0x287)](_0xcc65c8){const _0x126e21=_0x1a2717;this[_0x126e21(0x26f)][_0x126e21(0x221)][_0x126e21(0x1aa)](_0x4ba62e)[_0x126e21(0x1eb)](),this[_0x126e21(0x205)][_0x126e21(0x228)](_0x126e21(0x235)),this[_0x126e21(0x205)][_0x126e21(0x2a6)](!0x0),await this[_0x126e21(0x2c3)]();try{const _0x1c5ad5=this[_0x126e21(0x26f)][_0x126e21(0x221)][_0x126e21(0x1aa)](_0x14453f);this[_0x126e21(0x173)]('\x20'),_0x1c5ad5[_0x126e21(0x1b8)][_0x126e21(0x216)](_0x126e21(0x1cc)),await this[_0x126e21(0x17d)](_0xcc65c8);const {sessionId:_0x262cdc}=this[_0x126e21(0x17a)][_0x126e21(0x1ea)]();await this[_0x126e21(0x298)][_0x126e21(0x2c1)](_0xcc65c8,_0x262cdc),this[_0x126e21(0x298)][_0x126e21(0x16f)]()&&this[_0x126e21(0x298)][_0x126e21(0x186)](_0x10e65f(this[_0x126e21(0x26f)][_0x126e21(0x1da)],_0x126e21(0x195)));}catch(_0x142f91){console[_0x126e21(0x206)](_0x126e21(0x26b),_0x142f91);}finally{this[_0x126e21(0x205)][_0x126e21(0x21b)](),this[_0x126e21(0x205)][_0x126e21(0x228)](_0x126e21(0x276)),this[_0x126e21(0x205)][_0x126e21(0x2a6)](!0x1);}}[_0x1a2717(0x2c9)](_0x15fdf7){const _0xe13d5f=_0x1a2717;this[_0xe13d5f(0x298)]['id']===_0x15fdf7&&this[_0xe13d5f(0x17d)]();}async[_0x1a2717(0x1cb)](){const _0x599544=_0x1a2717,_0x41a861=this[_0x599544(0x17a)][_0x599544(0x2c2)]();this[_0x599544(0x298)]?.[_0x599544(0x273)](_0x41a861),this[_0x599544(0x298)]?.[_0x599544(0x186)](_0x10e65f(this[_0x599544(0x26f)][_0x599544(0x1da)],_0x599544(0x195)));}[_0x1a2717(0x24b)](){const _0x292bb8=_0x1a2717;this[_0x292bb8(0x298)]?.[_0x292bb8(0x1b9)]();}[_0x1a2717(0x1a6)](){const _0x16fc36=_0x1a2717;this[_0x16fc36(0x205)][_0x16fc36(0x1a6)]();}async[_0x1a2717(0x201)](){const _0x5d5f46=_0x1a2717;await this[_0x5d5f46(0x17d)]();}async[_0x1a2717(0x1a7)]({message:_0x2919ba,quickActionData:_0x4d66f1}){const _0x5a50ee=_0x1a2717;await this[_0x5a50ee(0x223)]({'userMessage':_0x2919ba,'quickActionData':_0x4d66f1});}[_0x1a2717(0x28e)](){const _0x20a41f=_0x1a2717,_0x2bec0a=this[_0x20a41f(0x26f)][_0x20a41f(0x282)][_0x20a41f(0x1aa)](_0x20a41f(0x2a4));if(!_0x2bec0a)throw new _0x8ac84b(_0x20a41f(0x23e),this);return _0x2bec0a;}async[_0x1a2717(0x17d)](_0xb8223f){const _0x31b99b=_0x1a2717;try{this[_0x31b99b(0x205)][_0x31b99b(0x22d)](),await this[_0x31b99b(0x191)](_0xb8223f);}catch(_0x4e89c6){_0x38d8c6(_0x31b99b(0x2a8),_0x4e89c6),this[_0x31b99b(0x298)]=void 0x0,this[_0x31b99b(0x205)][_0x31b99b(0x176)]();}}async[_0x1a2717(0x191)](_0x1e5b31){const _0x495fbd=_0x1a2717,_0x21436b=this[_0x495fbd(0x26f)][_0x495fbd(0x221)][_0x495fbd(0x1aa)](_0x4ba62e);let _0x45d2b2;_0x21436b[_0x495fbd(0x1d3)]&&_0x21436b[_0x495fbd(0x1eb)](),_0x1e5b31||!this[_0x495fbd(0x298)]?_0x45d2b2=this[_0x495fbd(0x26f)][_0x495fbd(0x282)][_0x495fbd(0x1aa)](_0x495fbd(0x2ad)):this[_0x495fbd(0x205)][_0x495fbd(0x248)]&&(_0x45d2b2=this[_0x495fbd(0x298)][_0x495fbd(0x181)]['id']),await this[_0x495fbd(0x2c3)]();const _0x44a8ec=this[_0x495fbd(0x28e)](),_0x1e7629=_0x1e5b31||_0x5102d0();this[_0x495fbd(0x298)]=new _0x151ae4({'connector':this[_0x495fbd(0x236)],'chatModels':this[_0x495fbd(0x21e)],'selectedModelId':_0x45d2b2,'conversationId':_0x1e7629,'group':_0x44a8ec,'getEditor':()=>_0x3c8c69(this[_0x495fbd(0x26f)])}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1f9),(_0x41db9e,_0x332982)=>{const _0x4b35bc=_0x495fbd;this[_0x4b35bc(0x205)][_0x4b35bc(0x1c4)](_0x332982),this[_0x4b35bc(0x205)][_0x4b35bc(0x275)](),this[_0x4b35bc(0x205)][_0x4b35bc(0x197)](),this[_0x4b35bc(0x205)][_0x4b35bc(0x253)](),_0x1e5b31||(this[_0x4b35bc(0x205)][_0x4b35bc(0x29a)](),this[_0x4b35bc(0x298)]?.[_0x4b35bc(0x186)](_0x10e65f(this[_0x4b35bc(0x26f)][_0x4b35bc(0x1da)],_0x4b35bc(0x195))));}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x239),(_0xecb250,_0x38e42a)=>{const _0x27f626=_0x495fbd;this[_0x27f626(0x205)][_0x27f626(0x24f)](_0x38e42a[_0x27f626(0x1ff)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x2a9),(_0x4181fa,_0x42a974)=>{const _0x44d024=_0x495fbd;this[_0x44d024(0x205)][_0x44d024(0x26c)](_0x42a974);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x25d),()=>{const _0x3082b6=_0x495fbd;this[_0x3082b6(0x205)][_0x3082b6(0x2b6)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x2c8),()=>{const _0x298e7f=_0x495fbd;this[_0x298e7f(0x205)][_0x298e7f(0x2b6)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x17e),(_0xce38e5,_0x4039a9)=>{const _0x1c67d3=_0x495fbd;this[_0x1c67d3(0x205)][_0x1c67d3(0x1b1)](_0x4039a9,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x224),(_0xf32130,_0x5af1ce)=>{const _0x52e9ad=_0x495fbd;this[_0x52e9ad(0x205)][_0x52e9ad(0x1b1)](_0x5af1ce,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x25b),()=>{const _0x51b84f=_0x495fbd;this[_0x51b84f(0x205)][_0x51b84f(0x28a)]();}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x261),async()=>{const _0x3f37b6=_0x495fbd;await this[_0x3f37b6(0x205)][_0x3f37b6(0x19d)]();}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1e0),(_0x867b60,_0x390535)=>{const _0x3886fd=_0x495fbd;this[_0x3886fd(0x205)][_0x3886fd(0x17b)](_0x390535['id']);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x240),(_0x27ecfe,_0x4b98ee,_0x5256d4)=>{const _0x550c82=_0x495fbd;this[_0x550c82(0x173)](_0x4b98ee,_0x5256d4);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x227),(_0x20092e,_0x3149eb)=>{const _0x4fc42d=_0x495fbd;_0x4fc42d(0x2c5)===_0x3149eb[_0x4fc42d(0x1f6)]?this[_0x4fc42d(0x205)][_0x4fc42d(0x21a)](_0x3149eb):this[_0x4fc42d(0x205)][_0x4fc42d(0x29c)](_0x3149eb);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1bf),async(_0x459968,_0x17a071)=>{const _0x26efab=_0x495fbd;await this[_0x26efab(0x292)]({'reply':_0x17a071});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1d1),(_0x1d1862,{reply:_0x85b3df,index:_0x220975,state:_0x3a2ed6})=>{const _0x3b1f44=_0x495fbd;this[_0x3b1f44(0x205)][_0x3b1f44(0x249)]({'id':_0x85b3df['id'],'index':_0x220975,'state':_0x3a2ed6});}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1bd),(_0x5a7f4b,_0x4cfffa)=>{const _0x1becfc=_0x495fbd;if(this[_0x1becfc(0x205)][_0x1becfc(0x1bb)](_0x4cfffa[_0x1becfc(0x22e)],_0x4cfffa[_0x1becfc(0x277)]),_0x1becfc(0x286)===_0x4cfffa[_0x1becfc(0x22e)][_0x1becfc(0x1f6)]){const _0x279f03=[..._0x3c8c69(this[_0x1becfc(0x26f)])[_0x1becfc(0x29b)][_0x1becfc(0x1de)][_0x1becfc(0x286)][_0x1becfc(0x20b)]()];this[_0x1becfc(0x17a)][_0x1becfc(0x28b)](_0x279f03,_0x1becfc(0x220)+this[_0x1becfc(0x298)]?.['id']);}}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x196),(_0xbb8d73,_0x1b526c)=>{const _0x9e3b1e=_0x495fbd;this[_0x9e3b1e(0x205)][_0x9e3b1e(0x270)](_0x1b526c[_0x9e3b1e(0x182)]),_0x9e3b1e(0x20d)==_0x1b526c[_0x9e3b1e(0x182)]&&this[_0x9e3b1e(0x24b)](),_0x9e3b1e(0x286)===_0x1b526c[_0x9e3b1e(0x1f6)]&&this[_0x9e3b1e(0x17a)][_0x9e3b1e(0x2a0)](_0x9e3b1e(0x220)+this[_0x9e3b1e(0x298)]?.['id']);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1ee),(_0x28755e,_0x217a4e)=>{const _0x19b750=_0x495fbd;this[_0x19b750(0x205)][_0x19b750(0x241)](_0x217a4e[_0x19b750(0x22e)][_0x19b750(0x182)],_0x217a4e[_0x19b750(0x277)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x264),(_0x2b81a1,_0x43288d)=>{const _0x2225bc=_0x495fbd;this[_0x2225bc(0x205)][_0x2225bc(0x2af)](_0x43288d[_0x2225bc(0x233)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x2b8),(_0x1961a6,_0x3de913)=>{const _0x45f7f6=_0x495fbd;this[_0x45f7f6(0x205)][_0x45f7f6(0x199)](_0x3de913[_0x45f7f6(0x1c5)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x293),(_0x2327a4,_0x3022a6)=>{const _0x5b2997=_0x495fbd;this[_0x5b2997(0x205)][_0x5b2997(0x19a)](_0x3022a6[_0x5b2997(0x202)],_0x3022a6[_0x5b2997(0x20e)],_0x3022a6[_0x5b2997(0x28d)],_0x3022a6[_0x5b2997(0x1b7)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1c9),(_0x1e2830,_0x1c9d6c)=>{const _0x44c14d=_0x495fbd;this[_0x44c14d(0x205)][_0x44c14d(0x1fb)](_0x1c9d6c[_0x44c14d(0x202)],_0x1c9d6c[_0x44c14d(0x289)],_0x1c9d6c[_0x44c14d(0x18b)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x1be),(_0x55c08f,_0x30508c)=>{const _0x1a2074=_0x495fbd;this[_0x1a2074(0x205)][_0x1a2074(0x297)](_0x30508c);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x22a),(_0xc306b2,_0x41073b)=>{const _0x2ef3ef=_0x495fbd;this[_0x2ef3ef(0x205)][_0x2ef3ef(0x189)](_0x41073b[_0x2ef3ef(0x181)],_0x41073b[_0x2ef3ef(0x23d)]);}),this[_0x495fbd(0x298)]['on'](_0x495fbd(0x206),(_0x3adfda,{error:_0x5421a0,interactionId:_0x482a0f,fileName:_0x37e282,url:_0xa97b92,sourceId:_0x403efc,sourceLabel:_0x3fb38})=>{const _0x535d71=_0x495fbd,_0x19f458=_0x482a0f?_0x482a0f+':'+_0x5102d0():_0x5102d0();_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x1ad))?this[_0x535d71(0x205)][_0x535d71(0x23f)]({'staticMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x1cd)),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x299))||_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x2a8))?(this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x1f4)),'id':_0x19f458}),this[_0x535d71(0x28c)](_0x5421a0)):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x1ec))?this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x1c2),_0x37e282),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x1d5))?this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x2ba),_0xa97b92),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x24d))?this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x274)),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x2c0))?this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x246)),'id':_0x19f458}):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x283))?(_0x403efc&&this[_0x535d71(0x205)][_0x535d71(0x1e7)](_0x403efc),this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x2ab),_0x3fb38||_0x535d71(0x20e)),'id':_0x19f458}),this[_0x535d71(0x28c)](_0x5421a0)):_0x5421a0[_0x535d71(0x1a2)][_0x535d71(0x252)](_0x535d71(0x27f))?(this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x231)),'id':_0x19f458}),this[_0x535d71(0x28c)](_0x5421a0)):(this[_0x535d71(0x205)][_0x535d71(0x26d)]({'errorMessage':_0x10e65f(this[_0x535d71(0x26f)][_0x535d71(0x1da)],_0x535d71(0x234)),'id':_0x19f458}),this[_0x535d71(0x28c)](_0x5421a0));}),await this[_0x495fbd(0x298)][_0x495fbd(0x245)](this[_0x495fbd(0x26f)][_0x495fbd(0x282)][_0x495fbd(0x1aa)](_0x495fbd(0x2b0))),_0x1e5b31||await this[_0x495fbd(0x298)][_0x495fbd(0x2c6)]();}async[_0x1a2717(0x223)]({userMessage:_0x4857fc,quickActionData:_0x41106d}){const _0x2895aa=_0x1a2717;if(!this[_0x2895aa(0x298)])throw new _0x8ac84b(_0x2895aa(0x18d));this[_0x2895aa(0x298)][_0x2895aa(0x2b7)]()&&await this[_0x2895aa(0x298)][_0x2895aa(0x28f)](this[_0x2895aa(0x17a)][_0x2895aa(0x1ea)]()),this[_0x2895aa(0x298)]['id']&&this[_0x2895aa(0x298)][_0x2895aa(0x2ca)]&&await this[_0x2895aa(0x298)][_0x2895aa(0x281)]({'userMessage':_0x4857fc,'quickActionData':_0x41106d}),this[_0x2895aa(0x257)]();}[_0x1a2717(0x257)](){const _0x4d3617=_0x1a2717,_0x36a38c=_0x3c8c69(this[_0x4d3617(0x26f)])[_0x4d3617(0x29b)],_0x1971e5=Array[_0x4d3617(0x1ba)](_0x36a38c[_0x4d3617(0x1c0)][_0x4d3617(0x194)](_0x280f3a));_0x36a38c[_0x4d3617(0x27e)](_0x363765=>{const _0x4d5458=_0x4d3617;_0x1971e5[_0x4d5458(0x213)](_0x10c6e9=>_0x363765[_0x4d5458(0x2b5)](_0x10c6e9));});}[_0x1a2717(0x219)](){const _0x2fcab8=_0x1a2717;console[_0x2fcab8(0x1a0)](_0x2fcab8(0x2bf));}[_0x1a2717(0x1f2)](_0x316cf6){const _0x53b266=_0x1a2717;this[_0x53b266(0x205)][_0x53b266(0x2bc)](_0x316cf6);}[_0x1a2717(0x28c)](_0x3a5113){const _0x295d1c=_0x1a2717;_0x38d8c6(_0x3a5113[_0x295d1c(0x1a2)]);}[_0x1a2717(0x19b)](_0x47fb80){const _0x563245=_0x1a2717;this[_0x563245(0x298)]?.[_0x563245(0x2c7)](_0x47fb80);}[_0x1a2717(0x180)](){const _0xdcb1fd=_0x1a2717;this[_0xdcb1fd(0x298)]?.[_0xdcb1fd(0x2a1)]();}[_0x1a2717(0x1e2)](){const _0x4d5aa9=_0x1a2717;this[_0x4d5aa9(0x298)]?.[_0x4d5aa9(0x184)]();}[_0x1a2717(0x1c3)](_0x51d7ca){const _0x10f7e3=_0x1a2717,[_0x1b92f4,_0x173b14]=_0x51d7ca[_0x10f7e3(0x1dd)](':'),_0x50f91e=this[_0x10f7e3(0x298)][_0x10f7e3(0x183)](_0x1b92f4),_0xc9b78e=_0x50f91e[_0x10f7e3(0x1b2)](_0x173b14);return{'interaction':_0x50f91e,'reply':_0xc9b78e};}[_0x1a2717(0x2b4)](_0x1c60cf,_0x2a7720=!0x1){const _0x33ca08=_0x1a2717,_0x39b65d=_0x3c8c69(this[_0x33ca08(0x26f)]),_0x59cc13={'target':_0x39b65d[_0x33ca08(0x1bc)][_0x33ca08(0x1b8)][_0x33ca08(0x203)][_0x33ca08(0x225)](_0x39b65d[_0x33ca08(0x1bc)][_0x33ca08(0x16d)][_0x33ca08(0x2aa)](_0x1c60cf)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2a7720};_0x2a7720&&(_0x59cc13[_0x33ca08(0x1d7)]=!0x0),_0x1bc34d(_0x59cc13);}[_0x1a2717(0x173)](_0x512659,_0x5d5f8b=!0x1){const _0x4137a0=_0x1a2717;this[_0x4137a0(0x205)][_0x4137a0(0x240)](_0x512659||_0x10e65f(this[_0x4137a0(0x26f)][_0x4137a0(0x1da)],_0x4137a0(0x1f0)),_0x5d5f8b);}async[_0x1a2717(0x292)]({reply:_0xe9e6a,renderingStrategy:_0x5e67cb}){const _0x325da7=_0x1a2717,{id:_0x5594bc,isDone:_0xb401e1,type:_0x2ea102,parsedContent:_0x1a666d}=_0xe9e6a;if(_0x325da7(0x1ca)===_0x2ea102){const _0x3250b5=_0xe9e6a[_0x325da7(0x29e)]({'showDiff':this[_0x325da7(0x205)][_0x325da7(0x1a8)]});await this[_0x325da7(0x205)][_0x325da7(0x1c1)]({'id':_0x5594bc,'parts':_0x3250b5,'renderingStrategy':_0x5e67cb,'isDone':_0xb401e1});}else _0x325da7(0x2c5)===_0x2ea102&&await this[_0x325da7(0x205)][_0x325da7(0x1e1)]({'id':_0x5594bc,'parsedContent':_0x1a666d,'renderingStrategy':_0x5e67cb,'isDone':_0xb401e1});_0xb401e1&&_0xe9e6a[_0x325da7(0x2ae)][_0x325da7(0x23b)]>0x0&&this[_0x325da7(0x205)][_0x325da7(0x256)](_0x5594bc,_0xe9e6a[_0x325da7(0x2ae)]);}async[_0x1a2717(0x2c3)](){const _0x26083a=_0x1a2717,_0x2ec2d4=this[_0x26083a(0x298)]?.[_0x26083a(0x24c)];_0x2ec2d4&&(_0x2ec2d4[_0x26083a(0x185)](),this[_0x26083a(0x205)][_0x26083a(0x20f)](_0x2ec2d4));}async[_0x1a2717(0x1ce)](){const _0x5ce1fc=_0x1a2717,_0x535c28=this[_0x5ce1fc(0x298)]?.[_0x5ce1fc(0x24c)];if(_0x535c28){for await(const _0x4eb0d9 of _0x535c28[_0x5ce1fc(0x218)])await this[_0x5ce1fc(0x292)]({'reply':_0x4eb0d9,'renderingStrategy':_0x5ce1fc(0x235)});}}[_0x1a2717(0x18e)](_0x2d317a){const _0x4adaaa=_0x1a2717,_0x17a0d3={'positiveCount':_0x2d317a[_0x4adaaa(0x2ac)][_0x4adaaa(0x188)](_0x442495=>_0x4adaaa(0x1cf)===_0x442495[_0x4adaaa(0x1a9)])[_0x4adaaa(0x23b)],'totalCount':_0x2d317a[_0x4adaaa(0x2ac)][_0x4adaaa(0x23b)],'modificationId':_0x2d317a['id']},_0x52a718=this[_0x4adaaa(0x298)][_0x4adaaa(0x183)](_0x2d317a[_0x4adaaa(0x1d2)])[_0x4adaaa(0x255)];this[_0x4adaaa(0x236)][_0x4adaaa(0x214)](this[_0x4adaaa(0x298)]['id'],_0x52a718,_0x17a0d3);}}function _0xf9cb(){const _0x357112=['293854OEpBZm','_openBalloonFor','init','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','find','isModelAvailable','updateFeedItemAIReplySuggestionPartState','setChangeGroupState','removeSelectionFromChatContext','lastInteraction','ai-chat-context-invalid-data','children','setIsUploadInProgress','pluginName','redo','startsWith','clearConversationContextUI','main','messageId','updateFeedItemAIReplySources','_removeAISelectionMarkers','3311CufESz','getChildren','hasChanges','interactionStarted','abortPromptStream','webSearchStarted','toggleSuggestionDisplayMode','stopListening','push','interactionFinished','sourcePosition','7204JfdWMZ','contextSent','changes','history','AITabs','mouseOverSuggestion','setModel','findIndex','Failed\x20to\x20load\x20conversation','addFeedItemUserMessage','addFeedItemError','$graveyard','context','removeContextItem','addUrlToContext','resizeTabs','addSelectionToContext','AI_CHAT_CONTEXT_INVALID_DATA','resetMessageInput','streaming','isLoading','marker','outdated','Disliked\x20response','dislike','rejectSuggestion','query','change','ai-chat-resource-load-failed','data-id','handleUserInteraction','config','ai-chat-source-resources-load-failed','3969570JkhHQj','removed','selection','loadConversation','toString','resourceId','startInteraction','showFakeVisualSelection','_logError','resources','getGroupId','updateCurrentDocumentInContext','Liked\x20response','100020xPwkVt','_updateReplyContent','sourceResourcesLoaded','remove','applyOperation','undo','updateCapabilities','activeConversation','ai-chat-conversation-init-failed','resetConversationTitle','model','addFeedItemAISuggestion','isOfficialPlugin','getContentParts','has','hideFakeVisualSelection','toggleWebSearch','updateContent','indexOf','collaboration.channelId','set','toggleLoadingSkeleton','partIndex','ai-chat-conversation-start-failed','interactionCreated','toViewRange','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','changeGroups','ai.chat.models.defaultModelId','sources','setConversationContext','ai.chat.context','end','rejected','_insertSuggestion','_scrollToSuggestionRange','removeMarker','setLoadingMessage','isCurrentDocumentInContext','addContextOptionsChanged','documentContextContent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','1911285YIVTVI','setIsMaximized','baseVersion','getAttribute','Showing\x20conversation\x20history...','ai-chat-context-unsupported-type','load','getSelectionText','_stopLastInteraction','getDocumentContext','text-delta','start','removeFromContext','reasoningStarted','handleRemovedConversation','isStarted','getDiff','selectModel','mapper','_previewedChangeGroup','isCurrentDocumentInConversation','open','delete','commands','updateConversationTitle','sendUserMessage','afterInit','disableControls','howMany','TrackChangesEditing','map','_aiEditing','removeFeedInteraction','parse','_startConversationSafely','webSearchFinished','_createFromRanges','_toggleWebSearch','selectedModel','uiId','getInteraction','toggleReasoning','stop','addCurrentDocumentToContext','addResourceToContext','filter','setSelectedModel','3CuxeAG','isInContext','addOperation','ai-chat-controller-no-active-conversation','_updateRatings','insertSuggestion','root','_handleStartConversation','maxOffset','add','getMarkersGroup','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','contextItemRemoved','clearPendingContextUI','resize','setAddContextOptions','populateSourceResourceBalloon','_removeFromContext','ready','finishInteraction','revert','addDocumentToContext','log','addFilesToContext','message','listenTo','showNext','version','focusPromptInput','sendMessage','showDiff','state','get','66smHcDg','getRoot','ai-request-aborted','AIChatController','requires','getChild','addFeedInteractionHeader','getReply','AIChatUI','AIEditing','getChildAtOffset','data','uid','view','removeSelectionFromContext','from','addContextItem','editing','contextItemAdded','capabilitiesUpdated','replyContentUpdated','markers','updateFeedItemAIReplySuggestionContent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getInteractionAndReplyById','createConversation','options','loadSourceResources','ai-chat-controller-mouse-over','createPositionFromPath','resourceStateChanged','modification-delta','addSelectionToChatContext','chat','AI_CHAT_ABORTED_MESSAGE','_flushLastInteractionUI','accepted','nextSibling','replyChangeGroupStateUpdated','interactionId','isOpen','anchorId','ai-chat-url-upload-failed','batch','alignToTop','isPremiumPlugin','pending','locale','scrollFeedToSuggestion','ai.availableReplyActions','split','document','1765jSFYOc','interactionDestroyed','updateFeedItemAIReplyContent','_toggleReasoning','showPrevious','AI_BALLOON_HEADER_TITLE','addFileToContext','node','closeSourceResourceBalloon','393330HBOTWy','ai-no-track-changes','getDocumentData','close','ai-chat-file-upload-failed','content','contextItemLoadingEnded','resizedTabs','AI_CHAT_UNTITLED_CONVERSATION','like','_setIsMaximized','_applyOperationsAsSuggestions','AI_CHAT_UNABLE_TO_START_CONVERSATION','range','type','rootName','indexes','conversationInitialized','DocumentCompare','updateResourceState','_integrateEditor','TrackChanges','showChangeInText','isUploadInProgress','index','startConversation','sourceId','domConverter','editors','_aiChatUi','error','slice','_getDocumentRangeForReplyChanges','3832UhquMN','isDocumentOperation','getRanges','_balloonShowDiff','current-document','source','stopInteraction','cloneNode','dialogClosed','getOperations','forEach','upsertAIChatRating','resource','activateTab','path','replies','_showConversationHistory','addFeedItemAIReply','startAutoScroll','replyId','unshift','_aiChatModels','mouseLeaveSuggestion','ai-conversation-','plugins','getTransformedByOperation','_handleUIUserMessage','reasoningFinished','viewRangeToDom','_batchToChanges','replyCreated','setFeedItemRenderingStrategy','_applySuggestion','modelSelected','Undo','full','enableControls','contextItem','getPath','ai.chat.models.displayedModels','AI_CHAT_RESOURCE_LOAD_FAILED','createPositionAt','contextItems','AI_CHAT_GENERIC_ERROR','static','_aiConnector','applySuggestion','new','uploadProgressChanged','AIConnector','length','getFirstRange','isDisabled','ai-chat-missing-channel-id','addFeedItemStaticMessage','setConversationTitle','setContextItemLoading','createRange'];_0xf9cb=function(){return _0x357112;};return _0xf9cb();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x536f91=_0x3cc7;(function(_0x33a29e,_0xd3e30b){const _0x18a443=_0x3cc7,_0x4f7db=_0x33a29e();while(!![]){try{const _0x35d9ee=parseInt(_0x18a443(0x116))/0x1+-parseInt(_0x18a443(0x168))/0x2*(parseInt(_0x18a443(0x166))/0x3)+-parseInt(_0x18a443(0x118))/0x4*(parseInt(_0x18a443(0x121))/0x5)+parseInt(_0x18a443(0x10c))/0x6*(-parseInt(_0x18a443(0x12e))/0x7)+-parseInt(_0x18a443(0x130))/0x8*(-parseInt(_0x18a443(0x196))/0x9)+parseInt(_0x18a443(0x193))/0xa+parseInt(_0x18a443(0x16c))/0xb*(-parseInt(_0x18a443(0x1aa))/0xc);if(_0x35d9ee===_0xd3e30b)break;else _0x4f7db['push'](_0x4f7db['shift']());}catch(_0x1a19ca){_0x4f7db['push'](_0x4f7db['shift']());}}}(_0x50b4,0xcda39));import{ContextPlugin as _0x2ff81f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x3f462a}from'ckeditor5/src/utils.js';function _0x50b4(){const _0x4c79bd=['startsWith','447986ZkfwHp','_interactionPromiseResolver','AI_CHAT_HEADING','queueEmptyPromise','stopInteraction','ai-suggestion-reply','updateSuggestionItem','value','forEach','userMessage','isDone','removeFeedInteraction','ai.availableReplyActions','isPending','disableControls','abort','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setIsUploadInProgress','populateSourceResourceBalloon','toggleSuggestionDisplayMode','resetMessageInput','options','createConversation','destroy','areActionsDisabled','isTrackChangesOn','displayedPrompt','locale','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','chatControls','updateReplyItem','isModelAvailable','setReasoning','addFeedItemUserMessage','addContextItem','updateResourceState','config','setConversationTitle','addFeedItemStaticMessage','8220240cJFJiz','setAddContextOptions','setModel','2845449GuHWnM','interaction-header','updateFeedItemAIReplySuggestionContent','renderingStrategy','updateFeedItemAIReplySuggestionPartState','children','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isReasoningEnabled','get','commands','getItemIds','interactionId','chat','view','removeItem','ai.chat.models.modelSelectorAlwaysVisible','scrollFeedToSuggestion','setSelectedModel','closeSourceResourceBalloon','toggleLoadingSkeleton','24qnVeJC','updateCapabilities','capabilities','has','stopAutoScroll','enqueue','trackChanges','plugins','</p>','focusPromptInput','showResizeButton','534xITgEc','disableModelSelector','resetConversationTitle','set','AI_CHAT_WELCOME_MESSAGE','isDisabled','setConversationContext','setInputPlaceholder','remove','chatHeader','624269ihsKEs','removeContextItem','243908OeyOJL','isBusy','updateFeedItemAIReplyContent','markItemAsDone','updateFeedInteractionHeader','requires','_animateConversationTitle','from','pluginName','55wIPHUP','updateFeedItemAIReplySources','label','setIsMaximized','AIChatUI','isVisible','contextItems','updateWebSources','quickActionData','last','setModelList','ai.chat.context.searchInputVisibleFrom','then','2751tCmpha','addFeedItemAIReply','16GHQEUW','clear','AITabs','_getLoadingMessage','filter','_view','<p>','user-message','enableModelSelector','setFeedItemRenderingStrategy','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','isMaximized','addTab','markFeedItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','insertSuggestion','startAutoScroll','isLoading','scrollToSuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','feedItemRenderingStrategy','startInteraction','showDiff','addItem','_promiseQueue','ai-reply','clearConversationContextUI','bind','conversation-start','delegate','chatFeed','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','find','addFeedInteractionHeader','_titleAnimationInterval','finishInteraction','length','updateSuggestionPartState','enableControls','error-message','_isTrackChangesCommandValueBound','context','isOfficialPlugin','TrackChanges','setLoadingMessage','addFeedItemError','clearPendingContextUI','setContextItemLoading','setWebSearch','isPremiumPlugin','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','streaming','9zzMAaE','isWebSearchEnabled','299428XhOQdK','values','_getInputPlaceholder'];_0x50b4=function(){return _0x4c79bd;};return _0x50b4();}import{AIChatView as _0x225679}from'./ui/aichatview.js';import{AITabs as _0x4712fd}from'../aitabs/aitabs.js';import{getTranslation as _0x860f42}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2f7fa8}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4f34ab}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x3cc7(_0x10ff95,_0x15a596){const _0x50b420=_0x50b4();return _0x3cc7=function(_0x3cc7cc,_0x263356){_0x3cc7cc=_0x3cc7cc-0x10b;let _0x3fc93c=_0x50b420[_0x3cc7cc];return _0x3fc93c;},_0x3cc7(_0x10ff95,_0x15a596);}import{PromiseQueue as _0x1664ed}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x23f9c8}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x3abcde}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4fd586}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x2ff81f{static get[_0x536f91(0x11d)](){return[_0x4712fd];}[_0x536f91(0x135)];static get[_0x536f91(0x120)](){const _0x155f3d=_0x536f91;return _0x155f3d(0x125);}static get[_0x536f91(0x15c)](){return!0x0;}static get[_0x536f91(0x163)](){return!0x0;}[_0x536f91(0x145)]=_0x536f91(0x165);[_0x536f91(0x147)]=!0x0;[_0x536f91(0x149)];[_0x536f91(0x16d)];[_0x536f91(0x154)]=void 0x0;[_0x536f91(0x15a)]=!0x1;constructor(_0x236f8f){const _0x3dd936=_0x536f91;super(_0x236f8f);const _0x4cc972=this[_0x3dd936(0x15b)][_0x3dd936(0x1b1)][_0x3dd936(0x19e)](_0x3dd936(0x132));this[_0x3dd936(0x10f)](_0x3dd936(0x119),!0x1),this[_0x3dd936(0x149)]=new _0x1664ed(),this[_0x3dd936(0x135)]=new _0x225679(this[_0x3dd936(0x15b)][_0x3dd936(0x187)],{'showResizeButton':_0x4cc972[_0x3dd936(0x10b)],'contextResourcesSearchInputVisibleFrom':this[_0x3dd936(0x15b)][_0x3dd936(0x190)][_0x3dd936(0x19e)](_0x3dd936(0x12c))}),this[_0x3dd936(0x135)][_0x3dd936(0x14e)](..._0x23f9c8)['to'](this),this[_0x3dd936(0x135)]['on'](_0x3dd936(0x17f),(_0x12b25d,{showDiff:_0x33ac39})=>{const _0x46eab2=_0x3dd936;this[_0x46eab2(0x147)]=_0x33ac39;}),_0x4cc972[_0x3dd936(0x1a3)][_0x3dd936(0x13d)]({'id':_0x3dd936(0x1a2),'buttonLabel':_0x860f42(this[_0x3dd936(0x15b)][_0x3dd936(0x187)],_0x3dd936(0x16e)),'buttonIcon':_0x2f7fa8,'order':0x0,'content':this[_0x3dd936(0x135)]}),this[_0x3dd936(0x135)][_0x3dd936(0x189)][_0x3dd936(0x14c)](_0x3dd936(0x142))['to'](this,_0x3dd936(0x119),_0x3d64f8=>_0x3d64f8),this[_0x3dd936(0x135)][_0x3dd936(0x14f)][_0x3dd936(0x14c)](_0x3dd936(0x179))['to'](this,_0x3dd936(0x119),_0x48fbb0=>_0x48fbb0),this[_0x3dd936(0x135)][_0x3dd936(0x189)][_0x3dd936(0x113)](this[_0x3dd936(0x16a)]()),this[_0x3dd936(0x14c)](_0x3dd936(0x18b))['to'](this[_0x3dd936(0x135)][_0x3dd936(0x189)],_0x3dd936(0x18b));}[_0x536f91(0x183)](){const _0xa9f9bd=_0x536f91;super[_0xa9f9bd(0x183)](),this[_0xa9f9bd(0x154)]&&clearInterval(this[_0xa9f9bd(0x154)]);}[_0x536f91(0x182)](_0x23f698){const _0x4086e2=_0x536f91;this[_0x4086e2(0x135)][_0x4086e2(0x14f)][_0x4086e2(0x131)](),this[_0x4086e2(0x135)][_0x4086e2(0x189)][_0x4086e2(0x138)](),this[_0x4086e2(0x135)][_0x4086e2(0x189)][_0x4086e2(0x12b)](_0x23f698[_0x4086e2(0x13a)],!this[_0x4086e2(0x15b)][_0x4086e2(0x190)][_0x4086e2(0x19e)](_0x4086e2(0x1a5))),this[_0x4086e2(0x192)]({'id':_0x4086e2(0x14d),'staticMessage':_0x860f42(this[_0x4086e2(0x15b)][_0x4086e2(0x187)],_0x4086e2(0x110))});}[_0x536f91(0x192)]({id:_0x3ea930,staticMessage:_0x45e5a2}){const _0x249bc2=_0x536f91;this[_0x249bc2(0x135)][_0x249bc2(0x14f)][_0x249bc2(0x148)](_0x249bc2(0x14a),{'id':_0x3ea930,'initialContent':_0x249bc2(0x136)+_0x45e5a2+_0x249bc2(0x1b2)});}[_0x536f91(0x18d)](_0x49d292){const _0x4f44ba=_0x536f91,_0x453fd5=_0x49d292[_0x4f44ba(0x129)]?.[_0x4f44ba(0x186)]||_0x49d292[_0x4f44ba(0x175)];this[_0x4f44ba(0x135)][_0x4f44ba(0x14f)][_0x4f44ba(0x148)](_0x4f44ba(0x137),{'contextItems':Array[_0x4f44ba(0x11f)](_0x49d292[_0x4f44ba(0x127)][_0x4f44ba(0x169)]()),'initialContent':_0x4f44ba(0x136)+_0x453fd5+_0x4f44ba(0x1b2),'id':_0x49d292['id']});}[_0x536f91(0x15f)]({errorMessage:_0x481764,id:_0x54599e}){const _0x10722f=_0x536f91;this[_0x10722f(0x135)][_0x10722f(0x14f)][_0x10722f(0x148)](_0x10722f(0x159),{'initialContent':_0x10722f(0x136)+_0x481764+_0x10722f(0x1b2),'id':_0x54599e});}[_0x536f91(0x12f)](_0x558922){const _0x2b7f7e=_0x536f91;return this[_0x2b7f7e(0x149)][_0x2b7f7e(0x1af)](async()=>{const _0xe17172=_0x2b7f7e;this[_0xe17172(0x135)][_0xe17172(0x14f)][_0xe17172(0x148)](_0xe17172(0x14a),{'id':_0x558922[_0xe17172(0x1a1)]+':'+_0x558922['id']}),this[_0xe17172(0x15e)](null);});}async[_0x536f91(0x150)](_0x5832ca){const _0x31d777=_0x536f91,_0x4a9da0=_0x3abcde(this[_0x31d777(0x15b)]);let _0xf47c94=_0x4a9da0[_0x31d777(0x190)][_0x31d777(0x19e)](_0x31d777(0x178))||[..._0x4fd586];if(_0x4a9da0[_0x31d777(0x1b1)][_0x31d777(0x1ad)](_0x31d777(0x15d))){if(!this[_0x31d777(0x15a)]){this[_0x31d777(0x15a)]=!0x0;const _0x2b9ce5=_0x4a9da0[_0x31d777(0x19f)][_0x31d777(0x19e)](_0x31d777(0x1b0));this[_0x31d777(0x135)][_0x31d777(0x14f)][_0x31d777(0x14c)](_0x31d777(0x185))['to'](_0x2b9ce5,_0x31d777(0x173));}}else _0xf47c94=_0xf47c94[_0x31d777(0x134)](_0x1f9a00=>_0x31d777(0x140)!=_0x1f9a00);return this[_0x31d777(0x149)][_0x31d777(0x1af)](async()=>{const _0x1562ab=_0x31d777;this[_0x1562ab(0x135)][_0x1562ab(0x14f)][_0x1562ab(0x148)](_0x1562ab(0x171),{'id':_0x5832ca[_0x1562ab(0x1a1)]+':'+_0x5832ca['id'],'areActionsDisabled':_0x5832ca[_0x1562ab(0x184)],'showDiff':this[_0x1562ab(0x147)],'availableActions':_0xf47c94}),this[_0x1562ab(0x15e)](null);});}[_0x536f91(0x153)](_0x247d18,_0x393e07){const _0x28162d=_0x536f91,_0x275a14=this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x19b)][_0x28162d(0x12a)];if(_0x275a14 instanceof _0x4f34ab)return this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x19b)][_0x28162d(0x114)](_0x275a14),void this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x148)](_0x28162d(0x197),{'id':_0x247d18['id'],'capabilities':{'isWebSearchEnabled':_0x275a14[_0x28162d(0x1ac)][_0x28162d(0x167)]||_0x393e07[_0x28162d(0x167)],'isReasoningEnabled':_0x275a14[_0x28162d(0x1ac)][_0x28162d(0x19d)]||_0x393e07[_0x28162d(0x19d)]}});this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x148)](_0x28162d(0x197),{'id':_0x247d18['id'],'capabilities':_0x393e07});}[_0x536f91(0x11c)](_0x18a3f5){const _0x5a9535=_0x536f91,_0x1cb064=this[_0x5a9535(0x135)][_0x5a9535(0x14f)][_0x5a9535(0x19b)][_0x5a9535(0x152)](_0x3d3dca=>_0x3d3dca[_0x5a9535(0x181)]['id']==_0x18a3f5['id']&&_0x3d3dca instanceof _0x4f34ab);_0x1cb064&&_0x1cb064[_0x5a9535(0x10f)](_0x5a9535(0x126),_0x18a3f5[_0x5a9535(0x126)]);}async[_0x536f91(0x11a)](_0x346136){const _0x190f67=_0x536f91,_0x459acd=_0x346136[_0x190f67(0x199)]||this[_0x190f67(0x145)];return this[_0x190f67(0x149)][_0x190f67(0x1af)](async _0x48647d=>{const _0x469104=_0x190f67;await this[_0x469104(0x135)][_0x469104(0x14f)][_0x469104(0x18a)]({..._0x346136,'abortSignal':_0x48647d,'renderingStrategy':_0x459acd}),_0x346136[_0x469104(0x176)]&&this[_0x469104(0x13e)](_0x346136['id']);});}[_0x536f91(0x122)](_0xa6c1c7,_0x14f77d){const _0x35d3ef=_0x536f91;this[_0x35d3ef(0x135)][_0x35d3ef(0x14f)][_0x35d3ef(0x128)](_0xa6c1c7,_0x14f77d);}async[_0x536f91(0x198)](_0x3260d7){const _0x298713=_0x536f91,_0x4b480c=_0x3260d7[_0x298713(0x199)]||this[_0x298713(0x145)];return this[_0x298713(0x149)][_0x298713(0x1af)](async _0x229cf8=>{const _0x3ef5db=_0x298713;await this[_0x3ef5db(0x135)][_0x3ef5db(0x14f)][_0x3ef5db(0x172)]({..._0x3260d7,'abortSignal':_0x229cf8,'renderingStrategy':_0x4b480c}),_0x3260d7[_0x3ef5db(0x176)]&&this[_0x3ef5db(0x13e)](_0x3260d7['id']);});}[_0x536f91(0x19a)](_0x5b244b){const _0x467500=_0x536f91;this[_0x467500(0x135)][_0x467500(0x14f)][_0x467500(0x157)](_0x5b244b);}[_0x536f91(0x13e)](_0x2a2f58){const _0x8290da=_0x536f91;this[_0x8290da(0x135)][_0x8290da(0x14f)][_0x8290da(0x11b)](_0x2a2f58);}[_0x536f91(0x177)](_0x3d01d0){const _0x5ad52a=_0x536f91;this[_0x5ad52a(0x135)][_0x5ad52a(0x14f)][_0x5ad52a(0x1a0)]()[_0x5ad52a(0x134)](_0x410960=>_0x410960[_0x5ad52a(0x16b)](_0x3d01d0))[_0x5ad52a(0x174)](_0x5bae7d=>this[_0x5ad52a(0x135)][_0x5ad52a(0x14f)][_0x5ad52a(0x1a4)](_0x5bae7d));}[_0x536f91(0x146)](){const _0x1e2888=_0x536f91;this[_0x1e2888(0x15e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1e2888(0x135)][_0x1e2888(0x189)][_0x1e2888(0x10d)](!this[_0x1e2888(0x15b)][_0x1e2888(0x190)][_0x1e2888(0x19e)](_0x1e2888(0x1a5))),this[_0x1e2888(0x119)]=!0x0,this[_0x1e2888(0x135)][_0x1e2888(0x14f)][_0x1e2888(0x141)]();}[_0x536f91(0x170)](_0xab07d4){const _0x1879ce=_0x536f91;this[_0x1879ce(0x149)][_0x1879ce(0x17b)](),this[_0x1879ce(0x135)][_0x1879ce(0x14f)][_0x1879ce(0x1a0)]()[_0x1879ce(0x134)](_0x1f79b2=>_0x1f79b2[_0x1879ce(0x16b)](_0xab07d4['id']))[_0x1879ce(0x174)](_0x537119=>this[_0x1879ce(0x13e)](_0x537119)),this[_0x1879ce(0x119)]=!0x1,this[_0x1879ce(0x135)][_0x1879ce(0x14f)][_0x1879ce(0x1ae)]();}async[_0x536f91(0x155)](){const _0x3eb5bd=_0x536f91;return this[_0x3eb5bd(0x149)][_0x3eb5bd(0x16f)][_0x3eb5bd(0x12d)](()=>{const _0x52d08b=_0x3eb5bd;this[_0x52d08b(0x119)]=!0x1,this[_0x52d08b(0x135)][_0x52d08b(0x14f)][_0x52d08b(0x1ae)]();});}[_0x536f91(0x18e)](_0x4c3386,_0x1dd34f){const _0x5cc3b9=_0x536f91;this[_0x5cc3b9(0x135)][_0x5cc3b9(0x189)][_0x5cc3b9(0x18e)](_0x4c3386,_0x1dd34f);}[_0x536f91(0x117)](_0x2dcc58){const _0x490c92=_0x536f91;this[_0x490c92(0x135)][_0x490c92(0x189)][_0x490c92(0x117)](_0x2dcc58);}[_0x536f91(0x161)](_0x47fdfa,_0x190eba){const _0x2f11cd=_0x536f91;this[_0x2f11cd(0x135)][_0x2f11cd(0x189)][_0x2f11cd(0x161)](_0x47fdfa,_0x190eba);}[_0x536f91(0x17d)](_0x5eb20e){const _0x3cdf53=_0x536f91;this[_0x3cdf53(0x135)][_0x3cdf53(0x189)][_0x3cdf53(0x17d)](_0x5eb20e);}[_0x536f91(0x112)](_0x3e9aa2){const _0x46d497=_0x536f91;this[_0x46d497(0x135)][_0x46d497(0x189)][_0x46d497(0x112)](_0x3e9aa2);}[_0x536f91(0x160)](){const _0x24a6b5=_0x536f91;this[_0x24a6b5(0x135)][_0x24a6b5(0x189)][_0x24a6b5(0x160)]();}[_0x536f91(0x14b)](){const _0x309eb9=_0x536f91;this[_0x309eb9(0x135)][_0x309eb9(0x189)][_0x309eb9(0x14b)]();}[_0x536f91(0x18f)](_0x7a374d,_0x53113b,_0x12088b){const _0x9292bd=_0x536f91;this[_0x9292bd(0x135)][_0x9292bd(0x189)][_0x9292bd(0x18f)](_0x7a374d,_0x53113b,_0x12088b);}[_0x536f91(0x180)](){const _0x5d5555=_0x536f91;this[_0x5d5555(0x135)][_0x5d5555(0x189)][_0x5d5555(0x180)](),this[_0x5d5555(0x135)][_0x5d5555(0x189)][_0x5d5555(0x113)](this[_0x5d5555(0x16a)]());}[_0x536f91(0x194)](_0x2ffca8){const _0x43cf29=_0x536f91;this[_0x43cf29(0x135)][_0x43cf29(0x189)][_0x43cf29(0x194)](_0x2ffca8);}[_0x536f91(0x1ab)](_0x2c1df3){const _0x58af12=_0x536f91;this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x162)](_0x2c1df3[_0x58af12(0x167)]),this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x18c)](_0x2c1df3[_0x58af12(0x19d)]),this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x113)](this[_0x58af12(0x16a)](_0x2c1df3));}[_0x536f91(0x1a7)](_0x35390c,_0x21b723){const _0x14e125=_0x536f91;this[_0x14e125(0x135)][_0x14e125(0x189)][_0x14e125(0x195)](_0x35390c),_0x21b723&&this[_0x14e125(0x135)][_0x14e125(0x189)][_0x14e125(0x10d)](!0x1);}[_0x536f91(0x139)](_0xed0449){const _0x2d77d0=_0x536f91;this[_0x2d77d0(0x145)]=_0xed0449;}[_0x536f91(0x1a9)](_0xc1875e){const _0x51740f=_0x536f91;this[_0x51740f(0x135)][_0x51740f(0x14f)][_0x51740f(0x1a9)](_0xc1875e);}[_0x536f91(0x10e)](){const _0x3a6270=_0x536f91;this[_0x3a6270(0x191)](_0x860f42(this[_0x3a6270(0x15b)][_0x3a6270(0x187)],_0x3a6270(0x16e)));}[_0x536f91(0x191)](_0xec943d,_0x89d75=!0x1){const _0x372642=_0x536f91;if(_0x89d75&&!_0x3f462a()&&_0xec943d[_0x372642(0x156)])return this[_0x372642(0x135)][_0x372642(0x115)][_0x372642(0x123)]='',void this[_0x372642(0x11e)](_0xec943d);this[_0x372642(0x135)][_0x372642(0x115)][_0x372642(0x123)]=_0xec943d;}[_0x536f91(0x15e)](_0x4a3a53){const _0x3f8d69=_0x536f91,_0x20992f=this[_0x3f8d69(0x133)](_0x4a3a53);this[_0x3f8d69(0x135)][_0x3f8d69(0x14f)][_0x3f8d69(0x15e)](_0x20992f);}[_0x536f91(0x11e)](_0x13e126){const _0x5a1582=_0x536f91;let _0x1da8e6=0x0;clearInterval(this[_0x5a1582(0x154)]),this[_0x5a1582(0x154)]=setInterval(()=>{const _0x47022a=_0x5a1582;this[_0x47022a(0x135)][_0x47022a(0x115)][_0x47022a(0x123)]=this[_0x47022a(0x135)][_0x47022a(0x115)][_0x47022a(0x123)]+_0x13e126[_0x1da8e6],_0x1da8e6++,_0x1da8e6===_0x13e126[_0x47022a(0x156)]&&clearInterval(this[_0x47022a(0x154)]);},0x1e);}[_0x536f91(0x124)](_0x3b7110){const _0x3a780f=_0x536f91;this[_0x3a780f(0x135)][_0x3a780f(0x115)][_0x3a780f(0x13c)]=_0x3b7110;}[_0x536f91(0x133)](_0xdcebfd){const _0x35371=_0x536f91;return _0xdcebfd?_0xdcebfd[_0x35371(0x167)]&&_0xdcebfd[_0x35371(0x19d)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x151)):_0xdcebfd[_0x35371(0x167)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x144)):_0xdcebfd[_0x35371(0x19d)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x164)):_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x19c)):'';}[_0x536f91(0x16a)](_0x44f248){const _0x3cab44=_0x536f91;return _0x44f248?_0x44f248[_0x3cab44(0x167)]&&_0x44f248[_0x3cab44(0x19d)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x188)):_0x44f248[_0x3cab44(0x167)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13b)):_0x44f248[_0x3cab44(0x19d)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x17c)):_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13f)):_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13f));}[_0x536f91(0x17e)](_0x316783,_0x388f2f,_0x1da3a0,_0x37b0f9){const _0x31b7e7=_0x536f91;this[_0x31b7e7(0x135)][_0x31b7e7(0x17e)](_0x316783,_0x388f2f,_0x1da3a0,_0x37b0f9);}[_0x536f91(0x1a8)](_0x29701d){const _0x1f391e=_0x536f91;this[_0x1f391e(0x135)][_0x1f391e(0x1a8)](_0x29701d);}[_0x536f91(0x1b3)](){const _0x297307=_0x536f91;this[_0x297307(0x135)][_0x297307(0x189)][_0x297307(0x1b3)]();}[_0x536f91(0x1a6)](_0xdb133f,_0x5aedc1){const _0x43f0bf=_0x536f91;this[_0x43f0bf(0x135)][_0x43f0bf(0x14f)][_0x43f0bf(0x143)](_0xdb133f,_0x5aedc1);}[_0x536f91(0x141)](){const _0x45593c=_0x536f91;this[_0x45593c(0x135)][_0x45593c(0x14f)][_0x45593c(0x141)]();}[_0x536f91(0x17a)](){const _0x1ec884=_0x536f91;this[_0x1ec884(0x135)][_0x1ec884(0x189)][_0x1ec884(0x111)]=!0x0;}[_0x536f91(0x158)](){const _0x28216b=_0x536f91;this[_0x28216b(0x135)][_0x28216b(0x189)][_0x28216b(0x111)]=!0x1;}}
23
+ function _0x49c0(_0x30961d,_0x5237db){const _0x3d3605=_0x3d36();return _0x49c0=function(_0x49c0cd,_0x549cc4){_0x49c0cd=_0x49c0cd-0x196;let _0x22dde2=_0x3d3605[_0x49c0cd];return _0x22dde2;},_0x49c0(_0x30961d,_0x5237db);}const _0x5a3453=_0x49c0;(function(_0x279e65,_0x54b2c1){const _0x2e3af7=_0x49c0,_0x567b90=_0x279e65();while(!![]){try{const _0x2f99ec=parseInt(_0x2e3af7(0x1b4))/0x1*(parseInt(_0x2e3af7(0x200))/0x2)+parseInt(_0x2e3af7(0x214))/0x3+parseInt(_0x2e3af7(0x220))/0x4*(-parseInt(_0x2e3af7(0x1e7))/0x5)+parseInt(_0x2e3af7(0x215))/0x6*(parseInt(_0x2e3af7(0x1db))/0x7)+parseInt(_0x2e3af7(0x1d7))/0x8*(parseInt(_0x2e3af7(0x1c5))/0x9)+-parseInt(_0x2e3af7(0x229))/0xa+parseInt(_0x2e3af7(0x1a1))/0xb*(-parseInt(_0x2e3af7(0x1ba))/0xc);if(_0x2f99ec===_0x54b2c1)break;else _0x567b90['push'](_0x567b90['shift']());}catch(_0x167422){_0x567b90['push'](_0x567b90['shift']());}}}(_0x3d36,0xd3cdd));import{ContextPlugin as _0x4f74fa}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x4cb9b6}from'ckeditor5/src/utils.js';import{AIChatView as _0xaf56bf}from'./ui/aichatview.js';import{AITabs as _0x291215}from'../aitabs/aitabs.js';import{getTranslation as _0x5f2058}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x1b61c3}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x38bc1b}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0xc426c9}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x470759}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x44b991}from'../aicore/utils/geteditorfromcontext.js';function _0x3d36(){const _0x3aad4a=['92WrzcmT','_getInputPlaceholder','ai-suggestion-reply','availableModels','addFeedInteractionHeader','startAutoScroll','addContextItem','removeFeedInteraction','pluginName','closeSourceResourceBalloon','showDiff','view','isMaximized','then','feedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','values','isWebSearchEnabled','createConversation','_promiseQueue','4362735ZrLSdA','98334cIBdSw','enableModelSelector','updateSuggestionItem','streaming','addFeedItemError','enqueue','options','updateFeedInteractionHeader','queueEmptyPromise','setConversationContext','interaction-header','32jmjLNL','displayedPrompt','setWebSearch','stopInteraction','label','setSelectedModel','insertSuggestion','addFeedItemStaticMessage','disableModelSelector','16651230KgALAp','setContextItemLoading','contextItems','areActionsDisabled','filter','value','destroy','capabilities','setConversationTitle','_view','addFeedItemAISuggestion','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','get','setLoadingMessage','isDone','AIChatUI','ai.chat.context.searchInputVisibleFrom','scrollFeedToSuggestion','isPremiumPlugin','updateFeedItemAIReplySuggestionContent','clear','setFeedItemRenderingStrategy','isBusy','conversation-start','error-message','setAddContextOptions','AI_CHAT_HEADING','finishInteraction','ai-reply','</p>','clearConversationContextUI','_titleAnimationInterval','userMessage','4898366iZCTDY','updateReplyItem','toggleLoadingSkeleton','ai.availableReplyActions','isVisible','getItemIds','isPending','quickActionData','TrackChanges','toggleSuggestionDisplayMode','set','commands','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','length','chatControls','removeItem','user-message','resetConversationTitle','setIsUploadInProgress','30188ahtXrS','find','enableControls','markItemAsDone','AITabs','setIsMaximized','36fRAEpl','setReasoning','resetMessageInput','populateSourceResourceBalloon','updateSuggestionPartState','_animateConversationTitle','isReasoningEnabled','<p>','AI_CHAT_WELCOME_MESSAGE','isLoading','renderingStrategy','72dzVsrT','isOfficialPlugin','setInputPlaceholder','has','children','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','updateFeedItemAIReplySources','scrollToSuggestion','isTrackChangesOn','startInteraction','updateFeedItemAIReplySuggestionPartState','startsWith','bind','last','context','updateWebSources','showResizeButton','remove','256136zHTNLL','chat','addFeedItemUserMessage','plugins','651vhcruO','forEach','_isTrackChangesCommandValueBound','stopAutoScroll','clearPendingContextUI','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','updateCapabilities','interactionId','updateFeedItemAIReplyContent','requires','isDisabled','chatFeed','471635hmcQoN','setModel','focusPromptInput','updateResourceState','trackChanges','ai.chat.models.modelSelectorAlwaysVisible','chatHeader','setModelList','_getLoadingMessage','_interactionPromiseResolver','delegate','markFeedItemAsDone','abort','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','locale','config','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','addTab','removeContextItem','addFeedItemAIReply','isModelAvailable','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','disableControls','addItem','from'];_0x3d36=function(){return _0x3aad4a;};return _0x3d36();}import{AI_REPLY_ACTIONS as _0x26edaf}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x4f74fa{static get[_0x5a3453(0x1e4)](){return[_0x291215];}[_0x5a3453(0x232)];static get[_0x5a3453(0x208)](){const _0x483a51=_0x5a3453;return _0x483a51(0x238);}static get[_0x5a3453(0x1c6)](){return!0x0;}static get[_0x5a3453(0x23b)](){return!0x0;}[_0x5a3453(0x20e)]=_0x5a3453(0x218);[_0x5a3453(0x20a)]=!0x0;[_0x5a3453(0x213)];[_0x5a3453(0x1f0)];[_0x5a3453(0x19f)]=void 0x0;[_0x5a3453(0x1dd)]=!0x1;constructor(_0x378371){const _0x4e2ed0=_0x5a3453;super(_0x378371);const _0x49f77b=this[_0x4e2ed0(0x1d3)][_0x4e2ed0(0x1da)][_0x4e2ed0(0x235)](_0x4e2ed0(0x1b8));this[_0x4e2ed0(0x1ab)](_0x4e2ed0(0x196),!0x1),this[_0x4e2ed0(0x213)]=new _0xc426c9(),this[_0x4e2ed0(0x232)]=new _0xaf56bf(this[_0x4e2ed0(0x1d3)][_0x4e2ed0(0x1f5)],{'showResizeButton':_0x49f77b[_0x4e2ed0(0x1d5)],'contextResourcesSearchInputVisibleFrom':this[_0x4e2ed0(0x1d3)][_0x4e2ed0(0x1f6)][_0x4e2ed0(0x235)](_0x4e2ed0(0x239))}),this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1f1)](..._0x470759)['to'](this),this[_0x4e2ed0(0x232)]['on'](_0x4e2ed0(0x1aa),(_0x2c5a16,{showDiff:_0x102970})=>{const _0x28d5f3=_0x4e2ed0;this[_0x28d5f3(0x20a)]=_0x102970;}),_0x49f77b[_0x4e2ed0(0x20b)][_0x4e2ed0(0x1f8)]({'id':_0x4e2ed0(0x1d8),'buttonLabel':_0x5f2058(this[_0x4e2ed0(0x1d3)][_0x4e2ed0(0x1f5)],_0x4e2ed0(0x19a)),'buttonIcon':_0x1b61c3,'order':0x0,'content':this[_0x4e2ed0(0x232)]}),this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1af)][_0x4e2ed0(0x1d1)](_0x4e2ed0(0x1c3))['to'](this,_0x4e2ed0(0x196),_0x15cfe2=>_0x15cfe2),this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1e6)][_0x4e2ed0(0x1d1)](_0x4e2ed0(0x1a7))['to'](this,_0x4e2ed0(0x196),_0x2a3d3a=>_0x2a3d3a),this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1af)][_0x4e2ed0(0x1c7)](this[_0x4e2ed0(0x201)]()),this[_0x4e2ed0(0x1d1)](_0x4e2ed0(0x1fb))['to'](this[_0x4e2ed0(0x232)][_0x4e2ed0(0x1af)],_0x4e2ed0(0x1fb));}[_0x5a3453(0x22f)](){const _0x27a42f=_0x5a3453;super[_0x27a42f(0x22f)](),this[_0x27a42f(0x19f)]&&clearInterval(this[_0x27a42f(0x19f)]);}[_0x5a3453(0x212)](_0x4e5c6c){const _0x2cda92=_0x5a3453;this[_0x2cda92(0x232)][_0x2cda92(0x1e6)][_0x2cda92(0x23d)](),this[_0x2cda92(0x232)][_0x2cda92(0x1af)][_0x2cda92(0x216)](),this[_0x2cda92(0x232)][_0x2cda92(0x1af)][_0x2cda92(0x1ee)](_0x4e5c6c[_0x2cda92(0x203)],!this[_0x2cda92(0x1d3)][_0x2cda92(0x1f6)][_0x2cda92(0x235)](_0x2cda92(0x1ec))),this[_0x2cda92(0x227)]({'id':_0x2cda92(0x197),'staticMessage':_0x5f2058(this[_0x2cda92(0x1d3)][_0x2cda92(0x1f5)],_0x2cda92(0x1c2))});}[_0x5a3453(0x227)]({id:_0x4feafb,staticMessage:_0x1ffbc7}){const _0x22159e=_0x5a3453;this[_0x22159e(0x232)][_0x22159e(0x1e6)][_0x22159e(0x1fe)](_0x22159e(0x19c),{'id':_0x4feafb,'initialContent':_0x22159e(0x1c1)+_0x1ffbc7+_0x22159e(0x19d)});}[_0x5a3453(0x1d9)](_0x3d9465){const _0x1f2353=_0x5a3453,_0x284067=_0x3d9465[_0x1f2353(0x1a8)]?.[_0x1f2353(0x221)]||_0x3d9465[_0x1f2353(0x1a0)];this[_0x1f2353(0x232)][_0x1f2353(0x1e6)][_0x1f2353(0x1fe)](_0x1f2353(0x1b1),{'contextItems':Array[_0x1f2353(0x1ff)](_0x3d9465[_0x1f2353(0x22b)][_0x1f2353(0x210)]()),'initialContent':_0x1f2353(0x1c1)+_0x284067+_0x1f2353(0x19d),'id':_0x3d9465['id']});}[_0x5a3453(0x219)]({errorMessage:_0x4d45cc,id:_0x84463b}){const _0x6323ce=_0x5a3453;this[_0x6323ce(0x232)][_0x6323ce(0x1e6)][_0x6323ce(0x1fe)](_0x6323ce(0x198),{'initialContent':_0x6323ce(0x1c1)+_0x4d45cc+_0x6323ce(0x19d),'id':_0x84463b});}[_0x5a3453(0x1fa)](_0x506f1d){const _0x223256=_0x5a3453;return this[_0x223256(0x213)][_0x223256(0x21a)](async()=>{const _0x1c9d33=_0x223256;this[_0x1c9d33(0x232)][_0x1c9d33(0x1e6)][_0x1c9d33(0x1fe)](_0x1c9d33(0x19c),{'id':_0x506f1d[_0x1c9d33(0x1e2)]+':'+_0x506f1d['id']}),this[_0x1c9d33(0x236)](null);});}async[_0x5a3453(0x233)](_0x52d3e5){const _0x331503=_0x5a3453,_0x437128=_0x44b991(this[_0x331503(0x1d3)]);let _0x283f0f=_0x437128[_0x331503(0x1f6)][_0x331503(0x235)](_0x331503(0x1a4))||[..._0x26edaf];if(_0x437128[_0x331503(0x1da)][_0x331503(0x1c8)](_0x331503(0x1a9))){if(!this[_0x331503(0x1dd)]){this[_0x331503(0x1dd)]=!0x0;const _0x497c2f=_0x437128[_0x331503(0x1ac)][_0x331503(0x235)](_0x331503(0x1eb));this[_0x331503(0x232)][_0x331503(0x1e6)][_0x331503(0x1d1)](_0x331503(0x1cd))['to'](_0x497c2f,_0x331503(0x22e));}}else _0x283f0f=_0x283f0f[_0x331503(0x22d)](_0x4ca99f=>_0x331503(0x226)!=_0x4ca99f);return this[_0x331503(0x213)][_0x331503(0x21a)](async()=>{const _0x4a12b5=_0x331503;this[_0x4a12b5(0x232)][_0x4a12b5(0x1e6)][_0x4a12b5(0x1fe)](_0x4a12b5(0x202),{'id':_0x52d3e5[_0x4a12b5(0x1e2)]+':'+_0x52d3e5['id'],'areActionsDisabled':_0x52d3e5[_0x4a12b5(0x22c)],'showDiff':this[_0x4a12b5(0x20a)],'availableActions':_0x283f0f}),this[_0x4a12b5(0x236)](null);});}[_0x5a3453(0x204)](_0xf0c9df,_0x36746b){const _0x3087b1=_0x5a3453,_0x34cb33=this[_0x3087b1(0x232)][_0x3087b1(0x1e6)][_0x3087b1(0x1c9)][_0x3087b1(0x1d2)];if(_0x34cb33 instanceof _0x38bc1b)return this[_0x3087b1(0x232)][_0x3087b1(0x1e6)][_0x3087b1(0x1c9)][_0x3087b1(0x1d6)](_0x34cb33),void this[_0x3087b1(0x232)][_0x3087b1(0x1e6)][_0x3087b1(0x1fe)](_0x3087b1(0x21f),{'id':_0xf0c9df['id'],'capabilities':{'isWebSearchEnabled':_0x34cb33[_0x3087b1(0x230)][_0x3087b1(0x211)]||_0x36746b[_0x3087b1(0x211)],'isReasoningEnabled':_0x34cb33[_0x3087b1(0x230)][_0x3087b1(0x1c0)]||_0x36746b[_0x3087b1(0x1c0)]}});this[_0x3087b1(0x232)][_0x3087b1(0x1e6)][_0x3087b1(0x1fe)](_0x3087b1(0x21f),{'id':_0xf0c9df['id'],'capabilities':_0x36746b});}[_0x5a3453(0x21c)](_0x3d97f4){const _0x3ce151=_0x5a3453,_0x30c185=this[_0x3ce151(0x232)][_0x3ce151(0x1e6)][_0x3ce151(0x1c9)][_0x3ce151(0x1b5)](_0x580a04=>_0x580a04[_0x3ce151(0x21b)]['id']==_0x3d97f4['id']&&_0x580a04 instanceof _0x38bc1b);_0x30c185&&_0x30c185[_0x3ce151(0x1ab)](_0x3ce151(0x1a5),_0x3d97f4[_0x3ce151(0x1a5)]);}async[_0x5a3453(0x1e3)](_0x448809){const _0x122e8c=_0x5a3453,_0x416b6f=_0x448809[_0x122e8c(0x1c4)]||this[_0x122e8c(0x20e)];return this[_0x122e8c(0x213)][_0x122e8c(0x21a)](async _0x32372d=>{const _0x56b580=_0x122e8c;await this[_0x56b580(0x232)][_0x56b580(0x1e6)][_0x56b580(0x1a2)]({..._0x448809,'abortSignal':_0x32372d,'renderingStrategy':_0x416b6f}),_0x448809[_0x56b580(0x237)]&&this[_0x56b580(0x1f2)](_0x448809['id']);});}[_0x5a3453(0x1cb)](_0xfee93b,_0x576dae){const _0xd0c0ab=_0x5a3453;this[_0xd0c0ab(0x232)][_0xd0c0ab(0x1e6)][_0xd0c0ab(0x1d4)](_0xfee93b,_0x576dae);}async[_0x5a3453(0x23c)](_0x25a200){const _0x4430a3=_0x5a3453,_0x4eb041=_0x25a200[_0x4430a3(0x1c4)]||this[_0x4430a3(0x20e)];return this[_0x4430a3(0x213)][_0x4430a3(0x21a)](async _0x5cd998=>{const _0x237e1b=_0x4430a3;await this[_0x237e1b(0x232)][_0x237e1b(0x1e6)][_0x237e1b(0x217)]({..._0x25a200,'abortSignal':_0x5cd998,'renderingStrategy':_0x4eb041}),_0x25a200[_0x237e1b(0x237)]&&this[_0x237e1b(0x1f2)](_0x25a200['id']);});}[_0x5a3453(0x1cf)](_0x350150){const _0x31f01b=_0x5a3453;this[_0x31f01b(0x232)][_0x31f01b(0x1e6)][_0x31f01b(0x1be)](_0x350150);}[_0x5a3453(0x1f2)](_0x395c94){const _0x930dfa=_0x5a3453;this[_0x930dfa(0x232)][_0x930dfa(0x1e6)][_0x930dfa(0x1b7)](_0x395c94);}[_0x5a3453(0x207)](_0x20145c){const _0x58e967=_0x5a3453;this[_0x58e967(0x232)][_0x58e967(0x1e6)][_0x58e967(0x1a6)]()[_0x58e967(0x22d)](_0x16d5f6=>_0x16d5f6[_0x58e967(0x1d0)](_0x20145c))[_0x58e967(0x1dc)](_0x3f10c5=>this[_0x58e967(0x232)][_0x58e967(0x1e6)][_0x58e967(0x1b0)](_0x3f10c5));}[_0x5a3453(0x1ce)](){const _0x3b13f1=_0x5a3453;this[_0x3b13f1(0x236)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x3b13f1(0x232)][_0x3b13f1(0x1af)][_0x3b13f1(0x228)](!this[_0x3b13f1(0x1d3)][_0x3b13f1(0x1f6)][_0x3b13f1(0x235)](_0x3b13f1(0x1ec))),this[_0x3b13f1(0x196)]=!0x0,this[_0x3b13f1(0x232)][_0x3b13f1(0x1e6)][_0x3b13f1(0x205)]();}[_0x5a3453(0x223)](_0x59338c){const _0x552ecc=_0x5a3453;this[_0x552ecc(0x213)][_0x552ecc(0x1f3)](),this[_0x552ecc(0x232)][_0x552ecc(0x1e6)][_0x552ecc(0x1a6)]()[_0x552ecc(0x22d)](_0x8f0e01=>_0x8f0e01[_0x552ecc(0x1d0)](_0x59338c['id']))[_0x552ecc(0x1dc)](_0x4f929a=>this[_0x552ecc(0x1f2)](_0x4f929a)),this[_0x552ecc(0x196)]=!0x1,this[_0x552ecc(0x232)][_0x552ecc(0x1e6)][_0x552ecc(0x1de)]();}async[_0x5a3453(0x19b)](){const _0x4942c2=_0x5a3453;return this[_0x4942c2(0x213)][_0x4942c2(0x21d)][_0x4942c2(0x20d)](()=>{const _0x219ecf=_0x4942c2;this[_0x219ecf(0x196)]=!0x1,this[_0x219ecf(0x232)][_0x219ecf(0x1e6)][_0x219ecf(0x1de)]();});}[_0x5a3453(0x206)](_0x416338,_0x594c21){const _0x34eadc=_0x5a3453;this[_0x34eadc(0x232)][_0x34eadc(0x1af)][_0x34eadc(0x206)](_0x416338,_0x594c21);}[_0x5a3453(0x1f9)](_0xe344f4){const _0x51fac8=_0x5a3453;this[_0x51fac8(0x232)][_0x51fac8(0x1af)][_0x51fac8(0x1f9)](_0xe344f4);}[_0x5a3453(0x22a)](_0x3f2246,_0x456aeb){const _0xd4ce91=_0x5a3453;this[_0xd4ce91(0x232)][_0xd4ce91(0x1af)][_0xd4ce91(0x22a)](_0x3f2246,_0x456aeb);}[_0x5a3453(0x1b3)](_0x4d0218){const _0x490552=_0x5a3453;this[_0x490552(0x232)][_0x490552(0x1af)][_0x490552(0x1b3)](_0x4d0218);}[_0x5a3453(0x21e)](_0x1868ea){const _0x1499fb=_0x5a3453;this[_0x1499fb(0x232)][_0x1499fb(0x1af)][_0x1499fb(0x21e)](_0x1868ea);}[_0x5a3453(0x1df)](){const _0x58e3d3=_0x5a3453;this[_0x58e3d3(0x232)][_0x58e3d3(0x1af)][_0x58e3d3(0x1df)]();}[_0x5a3453(0x19e)](){const _0x534c2b=_0x5a3453;this[_0x534c2b(0x232)][_0x534c2b(0x1af)][_0x534c2b(0x19e)]();}[_0x5a3453(0x1ea)](_0x57634a,_0x51cc62,_0x33bfb2){const _0x4a78f0=_0x5a3453;this[_0x4a78f0(0x232)][_0x4a78f0(0x1af)][_0x4a78f0(0x1ea)](_0x57634a,_0x51cc62,_0x33bfb2);}[_0x5a3453(0x1bc)](){const _0x53ef53=_0x5a3453;this[_0x53ef53(0x232)][_0x53ef53(0x1af)][_0x53ef53(0x1bc)](),this[_0x53ef53(0x232)][_0x53ef53(0x1af)][_0x53ef53(0x1c7)](this[_0x53ef53(0x201)]());}[_0x5a3453(0x199)](_0x42a9e0){const _0x232aea=_0x5a3453;this[_0x232aea(0x232)][_0x232aea(0x1af)][_0x232aea(0x199)](_0x42a9e0);}[_0x5a3453(0x1e1)](_0x246e16){const _0x44c723=_0x5a3453;this[_0x44c723(0x232)][_0x44c723(0x1af)][_0x44c723(0x222)](_0x246e16[_0x44c723(0x211)]),this[_0x44c723(0x232)][_0x44c723(0x1af)][_0x44c723(0x1bb)](_0x246e16[_0x44c723(0x1c0)]),this[_0x44c723(0x232)][_0x44c723(0x1af)][_0x44c723(0x1c7)](this[_0x44c723(0x201)](_0x246e16));}[_0x5a3453(0x225)](_0x40946c,_0x578437){const _0x482f82=_0x5a3453;this[_0x482f82(0x232)][_0x482f82(0x1af)][_0x482f82(0x1e8)](_0x40946c),_0x578437&&this[_0x482f82(0x232)][_0x482f82(0x1af)][_0x482f82(0x228)](!0x1);}[_0x5a3453(0x23e)](_0x463f85){const _0x101f44=_0x5a3453;this[_0x101f44(0x20e)]=_0x463f85;}[_0x5a3453(0x1a3)](_0x5a80fa){const _0x11b6bf=_0x5a3453;this[_0x11b6bf(0x232)][_0x11b6bf(0x1e6)][_0x11b6bf(0x1a3)](_0x5a80fa);}[_0x5a3453(0x1b2)](){const _0x5bc9de=_0x5a3453;this[_0x5bc9de(0x231)](_0x5f2058(this[_0x5bc9de(0x1d3)][_0x5bc9de(0x1f5)],_0x5bc9de(0x19a)));}[_0x5a3453(0x231)](_0x1bf985,_0x780937=!0x1){const _0x4e8442=_0x5a3453;if(_0x780937&&!_0x4cb9b6()&&_0x1bf985[_0x4e8442(0x1ae)])return this[_0x4e8442(0x232)][_0x4e8442(0x1ed)][_0x4e8442(0x224)]='',void this[_0x4e8442(0x1bf)](_0x1bf985);this[_0x4e8442(0x232)][_0x4e8442(0x1ed)][_0x4e8442(0x224)]=_0x1bf985;}[_0x5a3453(0x236)](_0x2511c2){const _0x3fbd4c=_0x5a3453,_0x20b5ae=this[_0x3fbd4c(0x1ef)](_0x2511c2);this[_0x3fbd4c(0x232)][_0x3fbd4c(0x1e6)][_0x3fbd4c(0x236)](_0x20b5ae);}[_0x5a3453(0x1bf)](_0x10ac0d){const _0x111389=_0x5a3453;let _0x161e0b=0x0;clearInterval(this[_0x111389(0x19f)]),this[_0x111389(0x19f)]=setInterval(()=>{const _0x521426=_0x111389;this[_0x521426(0x232)][_0x521426(0x1ed)][_0x521426(0x224)]=this[_0x521426(0x232)][_0x521426(0x1ed)][_0x521426(0x224)]+_0x10ac0d[_0x161e0b],_0x161e0b++,_0x161e0b===_0x10ac0d[_0x521426(0x1ae)]&&clearInterval(this[_0x521426(0x19f)]);},0x1e);}[_0x5a3453(0x1b9)](_0x17f56a){const _0x4d2e06=_0x5a3453;this[_0x4d2e06(0x232)][_0x4d2e06(0x1ed)][_0x4d2e06(0x20c)]=_0x17f56a;}[_0x5a3453(0x1ef)](_0x2b805b){const _0x475bea=_0x5a3453;return _0x2b805b?_0x2b805b[_0x475bea(0x211)]&&_0x2b805b[_0x475bea(0x1c0)]?_0x5f2058(this[_0x475bea(0x1d3)][_0x475bea(0x1f5)],_0x475bea(0x1ad)):_0x2b805b[_0x475bea(0x211)]?_0x5f2058(this[_0x475bea(0x1d3)][_0x475bea(0x1f5)],_0x475bea(0x1fc)):_0x2b805b[_0x475bea(0x1c0)]?_0x5f2058(this[_0x475bea(0x1d3)][_0x475bea(0x1f5)],_0x475bea(0x1f7)):_0x5f2058(this[_0x475bea(0x1d3)][_0x475bea(0x1f5)],_0x475bea(0x1f4)):'';}[_0x5a3453(0x201)](_0x22d6d0){const _0x396c60=_0x5a3453;return _0x22d6d0?_0x22d6d0[_0x396c60(0x211)]&&_0x22d6d0[_0x396c60(0x1c0)]?_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x1ca)):_0x22d6d0[_0x396c60(0x211)]?_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x1e0)):_0x22d6d0[_0x396c60(0x1c0)]?_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x234)):_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x20f)):_0x5f2058(this[_0x396c60(0x1d3)][_0x396c60(0x1f5)],_0x396c60(0x20f));}[_0x5a3453(0x1bd)](_0x2a1cda,_0x329f69,_0x55abba,_0x40d47b){const _0x4ec010=_0x5a3453;this[_0x4ec010(0x232)][_0x4ec010(0x1bd)](_0x2a1cda,_0x329f69,_0x55abba,_0x40d47b);}[_0x5a3453(0x209)](_0x5e2e6b){const _0x672891=_0x5a3453;this[_0x672891(0x232)][_0x672891(0x209)](_0x5e2e6b);}[_0x5a3453(0x1e9)](){const _0x40d0b6=_0x5a3453;this[_0x40d0b6(0x232)][_0x40d0b6(0x1af)][_0x40d0b6(0x1e9)]();}[_0x5a3453(0x23a)](_0x1ec7b1,_0x26b563){const _0xc5aa09=_0x5a3453;this[_0xc5aa09(0x232)][_0xc5aa09(0x1e6)][_0xc5aa09(0x1cc)](_0x1ec7b1,_0x26b563);}[_0x5a3453(0x205)](){const _0x15cd10=_0x5a3453;this[_0x15cd10(0x232)][_0x15cd10(0x1e6)][_0x15cd10(0x205)]();}[_0x5a3453(0x1fd)](){const _0x1ca38e=_0x5a3453;this[_0x1ca38e(0x232)][_0x1ca38e(0x1af)][_0x1ca38e(0x1e5)]=!0x0;}[_0x5a3453(0x1b6)](){const _0x2e5daf=_0x5a3453;this[_0x2e5daf(0x232)][_0x2e5daf(0x1af)][_0x2e5daf(0x1e5)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x556b(_0x398772,_0xd712da){const _0x18b506=_0x18b5();return _0x556b=function(_0x556b5f,_0x244a29){_0x556b5f=_0x556b5f-0x19c;let _0xa3373f=_0x18b506[_0x556b5f];return _0xa3373f;},_0x556b(_0x398772,_0xd712da);}const _0x5a8d72=_0x556b;(function(_0x126612,_0xc0b3a7){const _0x533fd0=_0x556b,_0x3f8a5a=_0x126612();while(!![]){try{const _0x5c811a=-parseInt(_0x533fd0(0x1eb))/0x1+parseInt(_0x533fd0(0x1d9))/0x2+-parseInt(_0x533fd0(0x1d3))/0x3*(-parseInt(_0x533fd0(0x1a7))/0x4)+parseInt(_0x533fd0(0x1f7))/0x5+parseInt(_0x533fd0(0x1ee))/0x6*(parseInt(_0x533fd0(0x1c6))/0x7)+parseInt(_0x533fd0(0x1c3))/0x8+-parseInt(_0x533fd0(0x1d6))/0x9*(parseInt(_0x533fd0(0x1d5))/0xa);if(_0x5c811a===_0xc0b3a7)break;else _0x3f8a5a['push'](_0x3f8a5a['shift']());}catch(_0x420e09){_0x3f8a5a['push'](_0x3f8a5a['shift']());}}}(_0x18b5,0x48fb5));function _0x18b5(){const _0x4fc078=['335976PVBAle','url-','_finishContextItemLoading','isSelectionInContext','ai-chat-document-upload-failed','abortController','object','resourceStateChanged','ai-chat-source-not-found','FILE','contextItemAdded','_createContextItemFromContent','addToConversationContext','sourceResourcesLoaded','_setAddContextOptionsDefaultState','_conversationContextItems','sessionId','version','addResourceToContext','file-','fire','getData','Current\x20document','ai-chat-file-upload-failed','startsWith','isReadOnly','_convertTextResourceToFile','content','3343416hQBgHU','_mapContextItemToRequestData','label','28833KnipvR','document','init','contextItemLoadingEnded','addContextOptionsChanged','size','filter','current-document','addUrlToContext','populateFromMessage','forEach','has','MARKDOWN','9frhjJR','map','1236310hFuzme','72jPKwyh','error','text/html','1100206BUdKEr','getId','TEXT','resources','_updateResourceInContextState','_toggleAddCurrentDocumentOptionVisibility','enabled','removeFromContext','files-','fetchDocument','SELECTION','uploadFile','getSentContextItems','length','uploadUrl','attributes','ai-chat-context-unsupported-type','addFilesToContext','144863JCYnDc','text/plain','loadSourceResources','240EzFvcR','ai-chat-url-upload-failed','isCurrentDocumentInContext','url','push','_config','set','isCurrentDocumentInConversation','string','240360iyMQaX','files','find','ai-request-aborted','_ownerId','uploadProgressChanged','updateCurrentDocument','end','_isResourceInContext','stack','_startUploadOperation','values','abort','_finishUploadOperation','ai-chat-resource-load-failed','sources','hidden','isHidden','isInContext','ai-chat-resource-no-data','_addContextItem','from','_addContextOptionsState','URL','addSelectionToContext','get','_pendingContextItems','HTML','data','DOCUMENT','resourceId','ai-chat-source-resources-load-failed','_ongoingUploads','start','message','clearPendingContextItems','contextItemRemoved','getPendingContextItems','object\x20with\x20content\x20and\x20type\x20properties','_addToConversationContextItem','type','selection','name','getDocument','_getCustomSourcesInitialState','addCurrentDocumentToContext','File','_connector','mapContextItemsToRequestData','removeSelectionFromContext','getResources','urls','_findSourceIdsByResourceId','delete','text/markdown','contextSent','all','uiId','ai-chat-context-invalid-data','_ongoingUploadOperations','uploadDocument','_removeContextItem'];_0x18b5=function(){return _0x4fc078;};return _0x18b5();}import{CKEditorError as _0x14541f,ObservableMixin as _0x327bf4,uid as _0x578ffc}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a326c,AIContextTextResourceType as _0x319533}from'../../aicore/model/aicontext.js';import{escape as _0x31bb39}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5a8d72(0x1b1),_0x5a8d72(0x21b),_0x5a8d72(0x1c9),_0x5a8d72(0x1a0),_0x5a8d72(0x1d7),_0x5a8d72(0x1ca),_0x5a8d72(0x1b4),_0x5a8d72(0x1ae),_0x5a8d72(0x1fc)];export class AIChatContext extends _0x327bf4(){[_0x5a8d72(0x226)];[_0x5a8d72(0x1f3)];[_0x5a8d72(0x1fb)];constructor({connector:_0x3f7e6e,config:_0x3b6def,ownerId:_0x3882ac}){const _0x2a29d4=_0x5a8d72;super(),this[_0x2a29d4(0x226)]=_0x3f7e6e,this[_0x2a29d4(0x1f3)]=_0x3b6def,this[_0x2a29d4(0x1fb)]=_0x3882ac;}[_0x5a8d72(0x1c8)](){const _0x4dc3b4=_0x5a8d72;this[_0x4dc3b4(0x211)]=new Map(),this[_0x4dc3b4(0x1b6)]=new Map(),this[_0x4dc3b4(0x217)]=new Map(),this[_0x4dc3b4(0x1a4)]=new Map(),this[_0x4dc3b4(0x1b5)]();}[_0x5a8d72(0x21c)](){const _0x39ab0f=_0x5a8d72;return this[_0x39ab0f(0x211)];}async[_0x5a8d72(0x1cf)](_0x829928){const _0x1c9ee3=_0x5a8d72,_0x55fa6d=await this[_0x1c9ee3(0x1b2)](_0x829928);return this[_0x1c9ee3(0x21e)](_0x55fa6d),_0x1c9ee3(0x1cd)===_0x55fa6d[_0x1c9ee3(0x1a2)]&&this[_0x1c9ee3(0x1de)](),_0x55fa6d;}async[_0x5a8d72(0x1b2)](_0x558406){const _0x3bd7f9=_0x5a8d72;if(_0x558406[_0x3bd7f9(0x21f)]===_0x4a326c[_0x3bd7f9(0x214)]){const _0x1ba252=await this[_0x3bd7f9(0x226)][_0x3bd7f9(0x1e2)](this[_0x3bd7f9(0x1fb)],_0x558406['id'])[_0x3bd7f9(0x222)]();return{'id':_0x3bd7f9(0x1cd),'uiId':_0x3bd7f9(0x1cd),'label':_0x3bd7f9(0x1bd),'type':_0x558406[_0x3bd7f9(0x21f)],'content':_0x1ba252[_0x3bd7f9(0x1c2)],'hidden':this[_0x3bd7f9(0x1b6)][_0x3bd7f9(0x1d1)](_0x3bd7f9(0x1cd)),'version':_0x1ba252[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1b8)],'sessionId':_0x1ba252[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1b7)]};}return{'id':_0x558406['id'],'uiId':_0x558406['id'],'label':_0x558406[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1c5)]||_0x558406[_0x3bd7f9(0x221)]||_0x558406[_0x3bd7f9(0x1f1)]||_0x558406['id'],'type':_0x558406[_0x3bd7f9(0x21f)],..._0x558406?.[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x215)]?{'resourceId':_0x558406[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x215)]}:{}};}[_0x5a8d72(0x1e5)](){const _0x31d5e1=_0x5a8d72;return new Map(this[_0x31d5e1(0x1b6)]);}[_0x5a8d72(0x1e0)](_0x4d657c){const _0x3d4250=_0x5a8d72,_0x16aede=this[_0x3d4250(0x211)][_0x3d4250(0x210)](_0x4d657c);_0x16aede?.[_0x3d4250(0x1c0)]||this[_0x3d4250(0x1a6)](_0x4d657c);}[_0x5a8d72(0x21a)](){const _0x208986=_0x5a8d72;if(0x0===this[_0x208986(0x211)][_0x208986(0x1cb)])return;for(const _0x454982 of this[_0x208986(0x211)][_0x208986(0x202)]())this[_0x208986(0x1a6)](_0x454982[_0x208986(0x1a2)]);const _0x2a6ca8=this[_0x208986(0x1b6)][_0x208986(0x210)](_0x208986(0x1cd))||this[_0x208986(0x211)][_0x208986(0x210)](_0x208986(0x1cd));_0x2a6ca8&&this[_0x208986(0x20b)]({..._0x2a6ca8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5a8d72(0x1b3)](_0x254c91){const _0x2016e4=_0x5a8d72;for(const _0x2d2ccf of _0x254c91[_0x2016e4(0x202)]())this[_0x2016e4(0x21e)](_0x2d2ccf);this[_0x2016e4(0x21a)](),this[_0x2016e4(0x1bb)](_0x2016e4(0x1a0),{'contextItems':Array[_0x2016e4(0x20c)](this[_0x2016e4(0x1e5)]()[_0x2016e4(0x202)]())});}[_0x5a8d72(0x1f0)](){const _0x51b6b4=_0x5a8d72;return this[_0x51b6b4(0x211)][_0x51b6b4(0x1d1)](_0x51b6b4(0x1cd));}[_0x5a8d72(0x1aa)](){const _0x24aac8=_0x5a8d72;return this[_0x24aac8(0x211)][_0x24aac8(0x1d1)](_0x24aac8(0x220));}[_0x5a8d72(0x1f5)](){const _0x4e5dff=_0x5a8d72;return this[_0x4e5dff(0x1b6)][_0x4e5dff(0x1d1)](_0x4e5dff(0x1cd));}static[_0x5a8d72(0x227)](_0x249793){const _0x549043=_0x5a8d72;return Array[_0x549043(0x20c)](_0x249793[_0x549043(0x202)]())[_0x549043(0x1d4)](_0x50c8ec=>this[_0x549043(0x1c4)](_0x50c8ec))[_0x549043(0x1cc)](_0x159701=>null!==_0x159701);}async[_0x5a8d72(0x1ea)](_0x32593b,_0x14a242,_0xd0845c=_0x4a326c[_0x5a8d72(0x1b0)]){const _0x57d460=_0x5a8d72,_0x3bd3e6=_0x57d460(0x1e1)+_0x578ffc();this[_0x57d460(0x201)](_0x3bd3e6);try{await Promise[_0x57d460(0x1a1)](_0x32593b[_0x57d460(0x1d4)](async _0x48667d=>{const _0x37220f=_0x57d460,_0x1f7afc=_0x37220f(0x1ba)+_0x578ffc(),_0x5325aa=_0x31bb39(_0x48667d[_0x37220f(0x221)]);try{this[_0x37220f(0x20b)]({'type':_0xd0845c,'label':_0x14a242?.[_0x37220f(0x1c5)]||_0x5325aa,'uiId':_0x1f7afc,'resourceId':_0x14a242?.[_0x37220f(0x215)]},!0x0);const _0xb35efc=this[_0x37220f(0x226)][_0x37220f(0x1e4)](this[_0x37220f(0x1fb)],_0x48667d,_0x14a242);this[_0x37220f(0x217)][_0x37220f(0x1f4)](_0x1f7afc,_0xb35efc[_0x37220f(0x1ac)]);const {id:_0x31382e}=await _0xb35efc[_0x37220f(0x1da)]();this[_0x37220f(0x217)][_0x37220f(0x19e)](_0x1f7afc),this[_0x37220f(0x1a9)]({'type':_0xd0845c,'id':_0x31382e,'label':_0x14a242?.[_0x37220f(0x1c5)]||_0x5325aa,'uiId':_0x1f7afc,'resourceId':_0x14a242?.[_0x37220f(0x215)]},!0x1);}catch(_0xd3fdac){this[_0x37220f(0x217)][_0x37220f(0x19e)](_0x1f7afc);if(!_0xd3fdac[_0x37220f(0x219)][_0x37220f(0x1bf)](_0x37220f(0x1fa))){const _0x3d6577=new _0x14541f(_0x37220f(0x1be),null,{'fileName':_0x5325aa});_0x3d6577[_0x37220f(0x200)]=_0xd3fdac[_0x37220f(0x200)],this[_0x37220f(0x1bb)](_0x37220f(0x1d7),{'error':_0x3d6577,'fileName':_0x5325aa});}this[_0x37220f(0x1a6)](_0x1f7afc);}}));}finally{this[_0x57d460(0x204)](_0x3bd3e6);}}[_0x5a8d72(0x224)](_0x264325){const _0x1d9e57=_0x5a8d72;if(this[_0x1d9e57(0x1f0)]())return;const _0x25dc82={'type':_0x4a326c[_0x1d9e57(0x214)],'uiId':_0x1d9e57(0x1cd),'label':_0x264325,'isReadOnly':this[_0x1d9e57(0x1b6)][_0x1d9e57(0x1d1)](_0x1d9e57(0x1cd)),'hidden':this[_0x1d9e57(0x1b6)][_0x1d9e57(0x1d1)](_0x1d9e57(0x1cd))};this[_0x1d9e57(0x20b)](_0x25dc82);}async[_0x5a8d72(0x1fd)](_0x3267a4,_0x109aaf,_0x38d841,_0x588e13){const _0x3bcf2e=_0x5a8d72,_0x1cab8b=this[_0x3bcf2e(0x211)][_0x3bcf2e(0x210)](_0x3bcf2e(0x1cd));if(_0x1cab8b&&_0x3267a4){_0x1cab8b[_0x3bcf2e(0x220)]=_0x588e13?_0x588e13[_0x3bcf2e(0x1d4)](_0x58c8f5=>({'start':_0x58c8f5[_0x3bcf2e(0x218)],'end':_0x58c8f5[_0x3bcf2e(0x1fe)]})):[];try{if(_0x1cab8b[_0x3bcf2e(0x1b8)]===_0x109aaf)return;const {id:_0x41da69}=await this[_0x3bcf2e(0x226)][_0x3bcf2e(0x1a5)](this[_0x3bcf2e(0x1fb)],_0x3267a4,{'version':_0x109aaf,'sessionId':_0x38d841})[_0x3bcf2e(0x1da)]();_0x1cab8b['id']=_0x41da69,_0x1cab8b[_0x3bcf2e(0x1c2)]=_0x3267a4,_0x1cab8b[_0x3bcf2e(0x1b8)]=_0x109aaf,_0x1cab8b[_0x3bcf2e(0x1b7)]=_0x38d841;}catch(_0x513652){const _0x2055aa=new _0x14541f(_0x3bcf2e(0x1ab),null);_0x2055aa[_0x3bcf2e(0x200)]=_0x513652[_0x3bcf2e(0x200)],this[_0x3bcf2e(0x1bb)](_0x3bcf2e(0x1d7),{'error':_0x2055aa});}}}[_0x5a8d72(0x20f)](_0x227fbf){const _0x184570=_0x5a8d72;this[_0x184570(0x20b)]({'type':_0x4a326c[_0x184570(0x1e3)],'label':_0x227fbf,'uiId':_0x184570(0x220),'content':_0x227fbf});}[_0x5a8d72(0x228)](){const _0x5656da=_0x5a8d72;this[_0x5656da(0x1a6)](_0x5656da(0x220));}async[_0x5a8d72(0x1ce)](_0x3730ac,_0x2b98ab){const _0x538bef=_0x5a8d72,_0xf5131f=_0x538bef(0x1a8)+_0x578ffc();this[_0x538bef(0x201)](_0xf5131f);const _0x2edb92=_0x538bef(0x1a8)+_0x578ffc();try{this[_0x538bef(0x20b)]({'type':_0x4a326c[_0x538bef(0x20e)],'label':_0x2b98ab?.[_0x538bef(0x1c5)]||_0x3730ac,'uiId':_0x2edb92,'resourceId':_0x2b98ab?.[_0x538bef(0x215)]},!0x0);const _0x74f744=this[_0x538bef(0x226)][_0x538bef(0x1e7)](this[_0x538bef(0x1fb)],_0x3730ac,_0x2b98ab);this[_0x538bef(0x217)][_0x538bef(0x1f4)](_0x2edb92,_0x74f744[_0x538bef(0x1ac)]);const {id:_0x53aef9}=await _0x74f744[_0x538bef(0x1da)]();this[_0x538bef(0x217)][_0x538bef(0x19e)](_0x2edb92),this[_0x538bef(0x1a9)]({'type':_0x4a326c[_0x538bef(0x20e)],'id':_0x53aef9,'label':_0x2b98ab?.[_0x538bef(0x1c5)]||_0x3730ac,'uiId':_0x2edb92,'resourceId':_0x2b98ab?.[_0x538bef(0x215)]},!0x1);}catch(_0x119ace){this[_0x538bef(0x217)][_0x538bef(0x19e)](_0x2edb92),(_0x119ace[_0x538bef(0x219)][_0x538bef(0x1bf)](_0x538bef(0x1fa))||this[_0x538bef(0x1bb)](_0x538bef(0x1d7),{'error':new _0x14541f(_0x538bef(0x1ef),this,{'url':_0x3730ac,'originalError':_0x119ace}),'url':_0x3730ac}),this[_0x538bef(0x1a6)](_0x2edb92));}finally{this[_0x538bef(0x204)](_0xf5131f);}}async[_0x5a8d72(0x1ed)](_0x5f024c,_0x140d9a,_0x5e8031){const _0x5494b1=_0x5a8d72,_0x55377c=this[_0x5494b1(0x20d)][_0x5494b1(0x206)][_0x5494b1(0x1f9)](_0x50863e=>_0x50863e['id']===_0x5f024c);if(!_0x55377c)return this[_0x5494b1(0x1bb)](_0x5494b1(0x1d7),{'error':new _0x14541f(_0x5494b1(0x1af),this,{'sourceId':_0x5f024c}),'sourceId':_0x5f024c}),[];try{const _0x2d5a88=(await _0x55377c[_0x5494b1(0x229)](_0x140d9a))[_0x5494b1(0x1d4)](_0x4d03c4=>{const _0x97a8bd=_0x5494b1,_0xabfbc5=this[_0x97a8bd(0x1ff)](_0x4d03c4['id']);return{..._0x4d03c4,'isInContext':_0xabfbc5};});return _0x55377c[_0x5494b1(0x1dc)]=_0x2d5a88,this[_0x5494b1(0x1bb)](_0x5494b1(0x1b4),{'sourceId':_0x5f024c,'source':_0x55377c,'resources':_0x2d5a88,'uid':_0x5e8031}),_0x2d5a88;}catch(_0x35275e){return this[_0x5494b1(0x1bb)](_0x5494b1(0x1d7),{'error':new _0x14541f(_0x5494b1(0x216),this,{'sourceId':_0x5f024c,'originalError':_0x35275e}),'sourceId':_0x5f024c,'sourceLabel':_0x55377c[_0x5494b1(0x1c5)]}),[];}}async[_0x5a8d72(0x1b9)](_0x27d750,_0x57528a){const _0x29738c=_0x5a8d72;if(this[_0x29738c(0x1ff)](_0x57528a['id']))return;let _0x15a408=_0x57528a[_0x29738c(0x213)];if(!_0x15a408&&_0x27d750[_0x29738c(0x1bc)])try{_0x15a408=await _0x27d750[_0x29738c(0x1bc)](_0x57528a['id']);}catch(_0x397ab8){return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x205),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'originalError':_0x397ab8}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}if(_0x15a408)switch(_0x57528a[_0x29738c(0x21f)]){case _0x4a326c[_0x29738c(0x20e)]:if(_0x29738c(0x1f6)!=typeof _0x15a408)return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x1f6),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});await this[_0x29738c(0x1ce)](_0x15a408,{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']});break;case _0x4a326c[_0x29738c(0x1b0)]:if(!(_0x15a408 instanceof File))return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x225),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});await this[_0x29738c(0x1ea)]([_0x15a408],{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']});break;case _0x4a326c[_0x29738c(0x1db)]:if(_0x29738c(0x1ad)!=typeof _0x15a408||!(_0x29738c(0x1c2)in _0x15a408)||!(_0x29738c(0x21f)in _0x15a408))return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x21d),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});_0x15a408=AIChatContext[_0x29738c(0x1c1)](_0x15a408,_0x57528a[_0x29738c(0x1c5)]),await this[_0x29738c(0x1ea)]([_0x15a408],{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']},_0x4a326c[_0x29738c(0x1db)]);break;default:this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1e9),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'resourceType':_0x57528a[_0x29738c(0x21f)]}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}else this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x20a),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}static[_0x5a8d72(0x1c1)](_0x43537f,_0x49171f){const _0x544d98=_0x5a8d72;switch(_0x43537f[_0x544d98(0x21f)]){case _0x319533[_0x544d98(0x1d2)]:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x19f)});case _0x319533[_0x544d98(0x212)]:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x1d8)});default:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x1ec)});}}static[_0x5a8d72(0x1c4)](_0x230d89){const _0x323f03=_0x5a8d72;switch(_0x230d89[_0x323f03(0x21f)]){case _0x4a326c[_0x323f03(0x1b0)]:return{'type':_0x4a326c[_0x323f03(0x1b0)],'id':_0x230d89['id']};case _0x4a326c[_0x323f03(0x20e)]:return{'type':_0x4a326c[_0x323f03(0x20e)],'id':_0x230d89['id']};case _0x4a326c[_0x323f03(0x214)]:return{'type':_0x4a326c[_0x323f03(0x214)],'id':_0x230d89['id'],..._0x230d89[_0x323f03(0x220)]?.[_0x323f03(0x1e6)]&&{'selection':_0x230d89[_0x323f03(0x220)]}};case _0x4a326c[_0x323f03(0x1db)]:return{'type':_0x4a326c[_0x323f03(0x1b0)],'id':_0x230d89['id']};default:return null;}}[_0x5a8d72(0x20b)](_0x575a57,_0x1fd021=!0x1){const _0x5652f6=_0x5a8d72;if(this[_0x5652f6(0x211)][_0x5652f6(0x1f4)](_0x575a57[_0x5652f6(0x1a2)],_0x575a57),_0x575a57[_0x5652f6(0x207)]||this[_0x5652f6(0x1bb)](_0x5652f6(0x1b1),{'contextItem':_0x575a57,'isLoading':_0x1fd021}),_0x5652f6(0x1cd)===_0x575a57[_0x5652f6(0x1a2)]&&this[_0x5652f6(0x1de)](),_0x575a57[_0x5652f6(0x215)]){const _0x3cfb6d=this[_0x5652f6(0x19d)](_0x575a57[_0x5652f6(0x215)]);_0x3cfb6d&&_0x3cfb6d[_0x5652f6(0x1d0)](_0x316990=>{const _0x4eca5f=_0x5652f6;this[_0x4eca5f(0x1dd)](_0x316990,_0x575a57[_0x4eca5f(0x215)],!0x0);});}}[_0x5a8d72(0x1a6)](_0x4dfcf8){const _0x3800da=_0x5a8d72,_0x9b7d37=this[_0x3800da(0x211)][_0x3800da(0x210)](_0x4dfcf8),_0x4a3211=this[_0x3800da(0x217)][_0x3800da(0x210)](_0x4dfcf8);if(_0x4a3211&&(_0x4a3211[_0x3800da(0x203)](),this[_0x3800da(0x217)][_0x3800da(0x19e)](_0x4dfcf8)),_0x9b7d37?.[_0x3800da(0x215)]){const _0x14affb=this[_0x3800da(0x19d)](_0x9b7d37[_0x3800da(0x215)]);_0x14affb&&_0x14affb[_0x3800da(0x1d0)](_0x29fa7a=>{const _0x29f924=_0x3800da;this[_0x29f924(0x1dd)](_0x29fa7a,_0x9b7d37[_0x29f924(0x215)],!0x1);});}this[_0x3800da(0x211)][_0x3800da(0x19e)](_0x4dfcf8),this[_0x3800da(0x1bb)](_0x3800da(0x21b),{'uiId':_0x4dfcf8,'type':_0x9b7d37?.[_0x3800da(0x21f)]}),_0x3800da(0x1cd)===_0x4dfcf8&&this[_0x3800da(0x1de)]();}[_0x5a8d72(0x1a9)](_0x2f4679,_0x5808d3){const _0x4f459c=_0x5a8d72;if(this[_0x4f459c(0x211)][_0x4f459c(0x1d1)](_0x2f4679[_0x4f459c(0x1a2)])&&(this[_0x4f459c(0x211)][_0x4f459c(0x1f4)](_0x2f4679[_0x4f459c(0x1a2)],_0x2f4679),this[_0x4f459c(0x1bb)](_0x4f459c(0x1c9),{'contextItem':_0x2f4679,'isLoading':_0x5808d3}),_0x2f4679[_0x4f459c(0x215)])){const _0x5a3ded=this[_0x4f459c(0x19d)](_0x2f4679[_0x4f459c(0x215)]);_0x5a3ded&&_0x5a3ded[_0x4f459c(0x1d0)](_0x140ed0=>{const _0xa3de19=_0x4f459c;this[_0xa3de19(0x1dd)](_0x140ed0,_0x2f4679[_0xa3de19(0x215)],!0x0);});}}[_0x5a8d72(0x21e)](_0x176b78){const _0x31429f=_0x5a8d72;this[_0x31429f(0x1b6)][_0x31429f(0x1f4)](_0x176b78[_0x31429f(0x1a2)],_0x176b78);}[_0x5a8d72(0x1b5)](){const _0x3f8174=_0x5a8d72;this[_0x3f8174(0x20d)]={'document':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x1c7)]?.[_0x3f8174(0x1df)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x19c)]?.[_0x3f8174(0x1df)]},'files':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x1f8)]?.[_0x3f8174(0x1df)]},'sources':this[_0x3f8174(0x223)]()},this[_0x3f8174(0x1bb)](_0x3f8174(0x1ca),{'options':this[_0x3f8174(0x20d)]});}[_0x5a8d72(0x223)](){const _0x4278f9=_0x5a8d72;return this[_0x4278f9(0x1f3)]?.[_0x4278f9(0x206)]?.[_0x4278f9(0x1d4)](_0x16a543=>({..._0x16a543,'resources':[]}))??[];}[_0x5a8d72(0x1de)](){const _0x55e094=_0x5a8d72,_0x3e05d8=this[_0x55e094(0x1f0)]()||this[_0x55e094(0x1f5)]();this[_0x55e094(0x20d)][_0x55e094(0x1c7)][_0x55e094(0x208)]=_0x3e05d8,this[_0x55e094(0x1bb)](_0x55e094(0x1ca),{'options':this[_0x55e094(0x20d)]});}[_0x5a8d72(0x1ff)](_0x52fb2b){const _0x4b9c02=_0x5a8d72;for(const _0x3dc8e3 of this[_0x4b9c02(0x211)][_0x4b9c02(0x202)]())if(_0x3dc8e3[_0x4b9c02(0x215)]===_0x52fb2b)return!0x0;for(const _0x6765d3 of this[_0x4b9c02(0x1b6)][_0x4b9c02(0x202)]())if(_0x6765d3[_0x4b9c02(0x215)]===_0x52fb2b)return!0x0;return!0x1;}[_0x5a8d72(0x19d)](_0x46d1c1){const _0x105879=_0x5a8d72,_0x529af5=[];for(const _0x1d7af2 of this[_0x105879(0x20d)][_0x105879(0x206)]){_0x1d7af2[_0x105879(0x1dc)][_0x105879(0x1f9)](_0x5eb36c=>_0x5eb36c['id']===_0x46d1c1)&&_0x529af5[_0x105879(0x1f2)](_0x1d7af2['id']);}return 0x0===_0x529af5[_0x105879(0x1e6)]?null:_0x529af5;}[_0x5a8d72(0x1dd)](_0x5d886d,_0x3a5652,_0x24bdc1){const _0x3f2e9d=_0x5a8d72,_0x16005d=this[_0x3f2e9d(0x20d)][_0x3f2e9d(0x206)][_0x3f2e9d(0x1f9)](_0x3a71af=>_0x3a71af['id']===_0x5d886d);if(!_0x16005d)return;const _0x545161=_0x16005d[_0x3f2e9d(0x1dc)][_0x3f2e9d(0x1f9)](_0x1d7456=>_0x1d7456['id']===_0x3a5652);_0x545161&&(_0x545161[_0x3f2e9d(0x209)]=_0x24bdc1,this[_0x3f2e9d(0x1bb)](_0x3f2e9d(0x1ae),{'sourceId':_0x5d886d,'resourceId':_0x3a5652,'isInContext':_0x24bdc1}));}[_0x5a8d72(0x201)](_0xb6783f){const _0x1fbe11=_0x5a8d72;this[_0x1fbe11(0x1a4)][_0x1fbe11(0x1f4)](_0xb6783f,!0x0),this[_0x1fbe11(0x1a4)][_0x1fbe11(0x1cb)]&&this[_0x1fbe11(0x1bb)](_0x1fbe11(0x1fc),{'isUploadInProgress':!0x0});}[_0x5a8d72(0x204)](_0x107010){const _0x1c5ec6=_0x5a8d72;this[_0x1c5ec6(0x1a4)][_0x1c5ec6(0x19e)](_0x107010),0x0===this[_0x1c5ec6(0x1a4)][_0x1c5ec6(0x1cb)]&&this[_0x1c5ec6(0x1bb)](_0x1c5ec6(0x1fc),{'isUploadInProgress':!0x1});}}
23
+ const _0x49eb93=_0x4b60;(function(_0x18226f,_0x567295){const _0x116593=_0x4b60,_0x3e10c6=_0x18226f();while(!![]){try{const _0x5e675b=-parseInt(_0x116593(0x178))/0x1*(parseInt(_0x116593(0x11e))/0x2)+parseInt(_0x116593(0x182))/0x3*(parseInt(_0x116593(0x10e))/0x4)+-parseInt(_0x116593(0x103))/0x5+parseInt(_0x116593(0x123))/0x6+-parseInt(_0x116593(0x167))/0x7*(-parseInt(_0x116593(0x144))/0x8)+parseInt(_0x116593(0x105))/0x9+-parseInt(_0x116593(0x183))/0xa;if(_0x5e675b===_0x567295)break;else _0x3e10c6['push'](_0x3e10c6['shift']());}catch(_0x47c68c){_0x3e10c6['push'](_0x3e10c6['shift']());}}}(_0x4b89,0xbb8bd));import{CKEditorError as _0x7e5f12,ObservableMixin as _0x1ed34b,uid as _0x5d8ef0}from'ckeditor5/src/utils.js';function _0x4b89(){const _0x4e7ba8=['label','files-','11459rBqZXb','FILE','ai-chat-context-invalid-data','_createContextItemFromContent','getId','get','MARKDOWN','ai-chat-context-unsupported-type','_addContextItem','_finishUploadOperation','files','ai-chat-source-not-found','start','removeSelectionFromContext','addToConversationContext','fetchDocument','urls','47kNipFc','removeFromContext','TEXT','_addContextOptionsState','isCurrentDocumentInConversation','resources','isSelectionInContext','isHidden','updateCurrentDocument','addContextOptionsChanged','12126QwAOrq','4827170FbANin','startsWith','ai-request-aborted','version','HTML','_config','text/markdown','filter','contextItemAdded','abortController','contextSent','_connector','end','contextItemLoadingEnded','1173210mzAzfO','isCurrentDocumentInContext','3222108zLSdxv','object','url-','URL','content','addFilesToContext','stack','ai-chat-document-upload-failed','data','740UkDEvM','has','resourceId','enabled','populateFromMessage','_toggleAddCurrentDocumentOptionVisibility','_ownerId','_conversationContextItems','getSentContextItems','attributes','forEach','_convertTextResourceToFile','type','File','_ongoingUploadOperations','sources','47310gbPtku','ai-chat-source-resources-load-failed','string','text/plain','message','7053660sPYpxR','abort','all','length','file-','text/html','addUrlToContext','_addToConversationContextItem','sourceResourcesLoaded','contextItemRemoved','isReadOnly','size','addResourceToContext','getResources','getPendingContextItems','from','mapContextItemsToRequestData','init','document','hidden','_removeContextItem','ai-chat-resource-load-failed','getData','_ongoingUploads','getDocument','_isResourceInContext','current-document','url','resourceStateChanged','DOCUMENT','uploadFile','ai-chat-resource-no-data','_pendingContextItems','1544iqtbVS','uploadDocument','map','ai-chat-file-upload-failed','delete','push','set','Current\x20document','_findSourceIdsByResourceId','uploadUrl','error','addCurrentDocumentToContext','clearPendingContextItems','values','sessionId','addSelectionToContext','uploadProgressChanged','isInContext','ai-chat-url-upload-failed','object\x20with\x20content\x20and\x20type\x20properties','_getCustomSourcesInitialState','fire','name','_finishContextItemLoading','_setAddContextOptionsDefaultState','SELECTION','_updateResourceInContextState','_startUploadOperation','uiId','find','selection','loadSourceResources','_mapContextItemToRequestData'];_0x4b89=function(){return _0x4e7ba8;};return _0x4b89();}import{AIContextItemType as _0x51c85d,AIContextTextResourceType as _0x541474}from'../../aicore/model/aicontext.js';import{escape as _0xc0b8dd}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x49eb93(0xfd),_0x49eb93(0x12c),_0x49eb93(0x102),_0x49eb93(0xff),_0x49eb93(0x14e),_0x49eb93(0x181),_0x49eb93(0x12b),_0x49eb93(0x13f),_0x49eb93(0x154)];function _0x4b60(_0xec07ef,_0xa7f84e){const _0x4b8966=_0x4b89();return _0x4b60=function(_0x4b6065,_0x4e859d){_0x4b6065=_0x4b6065-0xfb;let _0x1d63ec=_0x4b8966[_0x4b6065];return _0x1d63ec;},_0x4b60(_0xec07ef,_0xa7f84e);}export class AIChatContext extends _0x1ed34b(){[_0x49eb93(0x100)];[_0x49eb93(0x188)];[_0x49eb93(0x114)];constructor({connector:_0x32e611,config:_0x474cbe,ownerId:_0x5186dd}){const _0x2cf429=_0x49eb93;super(),this[_0x2cf429(0x100)]=_0x32e611,this[_0x2cf429(0x188)]=_0x474cbe,this[_0x2cf429(0x114)]=_0x5186dd;}[_0x49eb93(0x134)](){const _0x380cf7=_0x49eb93;this[_0x380cf7(0x143)]=new Map(),this[_0x380cf7(0x115)]=new Map(),this[_0x380cf7(0x13a)]=new Map(),this[_0x380cf7(0x11c)]=new Map(),this[_0x380cf7(0x15c)]();}[_0x49eb93(0x131)](){const _0x41a40f=_0x49eb93;return this[_0x41a40f(0x143)];}async[_0x49eb93(0x112)](_0x4cc3d6){const _0x40eac0=_0x49eb93,_0x328814=await this[_0x40eac0(0x16a)](_0x4cc3d6);return this[_0x40eac0(0x12a)](_0x328814),_0x40eac0(0x13d)===_0x328814[_0x40eac0(0x160)]&&this[_0x40eac0(0x113)](),_0x328814;}async[_0x49eb93(0x16a)](_0x148090){const _0x4ea1e2=_0x49eb93;if(_0x148090[_0x4ea1e2(0x11a)]===_0x51c85d[_0x4ea1e2(0x140)]){const _0x3f8167=await this[_0x4ea1e2(0x100)][_0x4ea1e2(0x176)](this[_0x4ea1e2(0x114)],_0x148090['id'])[_0x4ea1e2(0x13b)]();return{'id':_0x4ea1e2(0x13d),'uiId':_0x4ea1e2(0x13d),'label':_0x4ea1e2(0x14b),'type':_0x148090[_0x4ea1e2(0x11a)],'content':_0x3f8167[_0x4ea1e2(0x109)],'hidden':this[_0x4ea1e2(0x115)][_0x4ea1e2(0x10f)](_0x4ea1e2(0x13d)),'version':_0x3f8167[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x186)],'sessionId':_0x3f8167[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x152)]};}return{'id':_0x148090['id'],'uiId':_0x148090['id'],'label':_0x148090[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x165)]||_0x148090[_0x4ea1e2(0x15a)]||_0x148090[_0x4ea1e2(0x13e)]||_0x148090['id'],'type':_0x148090[_0x4ea1e2(0x11a)],..._0x148090?.[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x110)]?{'resourceId':_0x148090[_0x4ea1e2(0x117)]?.[_0x4ea1e2(0x110)]}:{}};}[_0x49eb93(0x116)](){const _0x2f5ec6=_0x49eb93;return new Map(this[_0x2f5ec6(0x115)]);}[_0x49eb93(0x179)](_0xa8b84a){const _0x2c1bb9=_0x49eb93,_0x2d952c=this[_0x2c1bb9(0x143)][_0x2c1bb9(0x16c)](_0xa8b84a);_0x2d952c?.[_0x2c1bb9(0x12d)]||this[_0x2c1bb9(0x137)](_0xa8b84a);}[_0x49eb93(0x150)](){const _0x40b620=_0x49eb93;if(0x0===this[_0x40b620(0x143)][_0x40b620(0x12e)])return;for(const _0x23356c of this[_0x40b620(0x143)][_0x40b620(0x151)]())this[_0x40b620(0x137)](_0x23356c[_0x40b620(0x160)]);const _0xd31ef7=this[_0x40b620(0x115)][_0x40b620(0x16c)](_0x40b620(0x13d))||this[_0x40b620(0x143)][_0x40b620(0x16c)](_0x40b620(0x13d));_0xd31ef7&&this[_0x40b620(0x16f)]({..._0xd31ef7,'isReadOnly':!0x0,'hidden':!0x0});}[_0x49eb93(0x175)](_0xb175ec){const _0x209b89=_0x49eb93;for(const _0x57ecab of _0xb175ec[_0x209b89(0x151)]())this[_0x209b89(0x12a)](_0x57ecab);this[_0x209b89(0x150)](),this[_0x209b89(0x159)](_0x209b89(0xff),{'contextItems':Array[_0x209b89(0x132)](this[_0x209b89(0x116)]()[_0x209b89(0x151)]())});}[_0x49eb93(0x104)](){const _0x508243=_0x49eb93;return this[_0x508243(0x143)][_0x508243(0x10f)](_0x508243(0x13d));}[_0x49eb93(0x17e)](){const _0x396bf4=_0x49eb93;return this[_0x396bf4(0x143)][_0x396bf4(0x10f)](_0x396bf4(0x162));}[_0x49eb93(0x17c)](){const _0x4dc478=_0x49eb93;return this[_0x4dc478(0x115)][_0x4dc478(0x10f)](_0x4dc478(0x13d));}static[_0x49eb93(0x133)](_0x36e8dc){const _0x4f8022=_0x49eb93;return Array[_0x4f8022(0x132)](_0x36e8dc[_0x4f8022(0x151)]())[_0x4f8022(0x146)](_0x5f5be6=>this[_0x4f8022(0x164)](_0x5f5be6))[_0x4f8022(0xfc)](_0x49078b=>null!==_0x49078b);}async[_0x49eb93(0x10a)](_0x7f84b3,_0x5809f9,_0x45f85d=_0x51c85d[_0x49eb93(0x168)]){const _0x2f4f6f=_0x49eb93,_0x158799=_0x2f4f6f(0x166)+_0x5d8ef0();this[_0x2f4f6f(0x15f)](_0x158799);try{await Promise[_0x2f4f6f(0x125)](_0x7f84b3[_0x2f4f6f(0x146)](async _0x3ec497=>{const _0xa0b346=_0x2f4f6f,_0x5a0578=_0xa0b346(0x127)+_0x5d8ef0(),_0x38ee4a=_0xc0b8dd(_0x3ec497[_0xa0b346(0x15a)]);try{this[_0xa0b346(0x16f)]({'type':_0x45f85d,'label':_0x5809f9?.[_0xa0b346(0x165)]||_0x38ee4a,'uiId':_0x5a0578,'resourceId':_0x5809f9?.[_0xa0b346(0x110)]},!0x0);const _0x58a39e=this[_0xa0b346(0x100)][_0xa0b346(0x141)](this[_0xa0b346(0x114)],_0x3ec497,_0x5809f9);this[_0xa0b346(0x13a)][_0xa0b346(0x14a)](_0x5a0578,_0x58a39e[_0xa0b346(0xfe)]);const {id:_0x239ff7}=await _0x58a39e[_0xa0b346(0x16b)]();this[_0xa0b346(0x13a)][_0xa0b346(0x148)](_0x5a0578),this[_0xa0b346(0x15b)]({'type':_0x45f85d,'id':_0x239ff7,'label':_0x5809f9?.[_0xa0b346(0x165)]||_0x38ee4a,'uiId':_0x5a0578,'resourceId':_0x5809f9?.[_0xa0b346(0x110)]},!0x1);}catch(_0x10006f){this[_0xa0b346(0x13a)][_0xa0b346(0x148)](_0x5a0578);if(!_0x10006f[_0xa0b346(0x122)][_0xa0b346(0x184)](_0xa0b346(0x185))){const _0x42b240=new _0x7e5f12(_0xa0b346(0x147),null,{'fileName':_0x38ee4a});_0x42b240[_0xa0b346(0x10b)]=_0x10006f[_0xa0b346(0x10b)],this[_0xa0b346(0x159)](_0xa0b346(0x14e),{'error':_0x42b240,'fileName':_0x38ee4a});}this[_0xa0b346(0x137)](_0x5a0578);}}));}finally{this[_0x2f4f6f(0x170)](_0x158799);}}[_0x49eb93(0x14f)](_0x573a3f){const _0x12e660=_0x49eb93;if(this[_0x12e660(0x104)]())return;const _0x568f6c={'type':_0x51c85d[_0x12e660(0x140)],'uiId':_0x12e660(0x13d),'label':_0x573a3f,'isReadOnly':this[_0x12e660(0x115)][_0x12e660(0x10f)](_0x12e660(0x13d)),'hidden':this[_0x12e660(0x115)][_0x12e660(0x10f)](_0x12e660(0x13d))};this[_0x12e660(0x16f)](_0x568f6c);}async[_0x49eb93(0x180)](_0x1e0988,_0x48521d,_0x5ca5be,_0x45b7e5){const _0x1bc2d9=_0x49eb93,_0x21fae3=this[_0x1bc2d9(0x143)][_0x1bc2d9(0x16c)](_0x1bc2d9(0x13d));if(_0x21fae3&&_0x1e0988){_0x21fae3[_0x1bc2d9(0x162)]=_0x45b7e5?_0x45b7e5[_0x1bc2d9(0x146)](_0x2c9eb9=>({'start':_0x2c9eb9[_0x1bc2d9(0x173)],'end':_0x2c9eb9[_0x1bc2d9(0x101)]})):[];try{if(_0x21fae3[_0x1bc2d9(0x186)]===_0x48521d)return;const {id:_0x1eb75e}=await this[_0x1bc2d9(0x100)][_0x1bc2d9(0x145)](this[_0x1bc2d9(0x114)],_0x1e0988,{'version':_0x48521d,'sessionId':_0x5ca5be})[_0x1bc2d9(0x16b)]();_0x21fae3['id']=_0x1eb75e,_0x21fae3[_0x1bc2d9(0x109)]=_0x1e0988,_0x21fae3[_0x1bc2d9(0x186)]=_0x48521d,_0x21fae3[_0x1bc2d9(0x152)]=_0x5ca5be;}catch(_0x1e33aa){const _0xa061c1=new _0x7e5f12(_0x1bc2d9(0x10c),null);_0xa061c1[_0x1bc2d9(0x10b)]=_0x1e33aa[_0x1bc2d9(0x10b)],this[_0x1bc2d9(0x159)](_0x1bc2d9(0x14e),{'error':_0xa061c1});}}}[_0x49eb93(0x153)](_0x1d1f65){const _0x193175=_0x49eb93;this[_0x193175(0x16f)]({'type':_0x51c85d[_0x193175(0x15d)],'label':_0x1d1f65,'uiId':_0x193175(0x162),'content':_0x1d1f65});}[_0x49eb93(0x174)](){const _0x904bbe=_0x49eb93;this[_0x904bbe(0x137)](_0x904bbe(0x162));}async[_0x49eb93(0x129)](_0x4363c8,_0x5e038f){const _0x155789=_0x49eb93,_0x4f8f94=_0x155789(0x107)+_0x5d8ef0();this[_0x155789(0x15f)](_0x4f8f94);const _0x415b6a=_0x155789(0x107)+_0x5d8ef0();try{this[_0x155789(0x16f)]({'type':_0x51c85d[_0x155789(0x108)],'label':_0x5e038f?.[_0x155789(0x165)]||_0x4363c8,'uiId':_0x415b6a,'resourceId':_0x5e038f?.[_0x155789(0x110)]},!0x0);const _0x345c6e=this[_0x155789(0x100)][_0x155789(0x14d)](this[_0x155789(0x114)],_0x4363c8,_0x5e038f);this[_0x155789(0x13a)][_0x155789(0x14a)](_0x415b6a,_0x345c6e[_0x155789(0xfe)]);const {id:_0x346217}=await _0x345c6e[_0x155789(0x16b)]();this[_0x155789(0x13a)][_0x155789(0x148)](_0x415b6a),this[_0x155789(0x15b)]({'type':_0x51c85d[_0x155789(0x108)],'id':_0x346217,'label':_0x5e038f?.[_0x155789(0x165)]||_0x4363c8,'uiId':_0x415b6a,'resourceId':_0x5e038f?.[_0x155789(0x110)]},!0x1);}catch(_0x3a08af){this[_0x155789(0x13a)][_0x155789(0x148)](_0x415b6a),(_0x3a08af[_0x155789(0x122)][_0x155789(0x184)](_0x155789(0x185))||this[_0x155789(0x159)](_0x155789(0x14e),{'error':new _0x7e5f12(_0x155789(0x156),this,{'url':_0x4363c8,'originalError':_0x3a08af}),'url':_0x4363c8}),this[_0x155789(0x137)](_0x415b6a));}finally{this[_0x155789(0x170)](_0x4f8f94);}}async[_0x49eb93(0x163)](_0x2371dd,_0x42f946,_0x2f99cf){const _0x4d2dda=_0x49eb93,_0x31a669=this[_0x4d2dda(0x17b)][_0x4d2dda(0x11d)][_0x4d2dda(0x161)](_0x4af002=>_0x4af002['id']===_0x2371dd);if(!_0x31a669)return this[_0x4d2dda(0x159)](_0x4d2dda(0x14e),{'error':new _0x7e5f12(_0x4d2dda(0x172),this,{'sourceId':_0x2371dd}),'sourceId':_0x2371dd}),[];try{const _0x330377=(await _0x31a669[_0x4d2dda(0x130)](_0x42f946))[_0x4d2dda(0x146)](_0x2832d6=>{const _0x2649e8=_0x4d2dda,_0x4e236e=this[_0x2649e8(0x13c)](_0x2832d6['id']);return{..._0x2832d6,'isInContext':_0x4e236e};});return _0x31a669[_0x4d2dda(0x17d)]=_0x330377,this[_0x4d2dda(0x159)](_0x4d2dda(0x12b),{'sourceId':_0x2371dd,'source':_0x31a669,'resources':_0x330377,'uid':_0x2f99cf}),_0x330377;}catch(_0x1d98fa){return this[_0x4d2dda(0x159)](_0x4d2dda(0x14e),{'error':new _0x7e5f12(_0x4d2dda(0x11f),this,{'sourceId':_0x2371dd,'originalError':_0x1d98fa}),'sourceId':_0x2371dd,'sourceLabel':_0x31a669[_0x4d2dda(0x165)]}),[];}}async[_0x49eb93(0x12f)](_0x4bbc64,_0x2949c4){const _0x56f327=_0x49eb93;if(this[_0x56f327(0x13c)](_0x2949c4['id']))return;let _0x59165f=_0x2949c4[_0x56f327(0x10d)];if(!_0x59165f&&_0x4bbc64[_0x56f327(0x139)])try{_0x59165f=await _0x4bbc64[_0x56f327(0x139)](_0x2949c4['id']);}catch(_0x477e01){return void this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x138),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'originalError':_0x477e01}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});}if(_0x59165f)switch(_0x2949c4[_0x56f327(0x11a)]){case _0x51c85d[_0x56f327(0x108)]:if(_0x56f327(0x120)!=typeof _0x59165f)return void this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x169),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'expectedType':_0x56f327(0x120),'actualType':typeof _0x59165f}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});await this[_0x56f327(0x129)](_0x59165f,{'label':_0x2949c4[_0x56f327(0x165)],'resourceId':_0x2949c4['id']});break;case _0x51c85d[_0x56f327(0x168)]:if(!(_0x59165f instanceof File))return void this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x169),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'expectedType':_0x56f327(0x11b),'actualType':typeof _0x59165f}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});await this[_0x56f327(0x10a)]([_0x59165f],{'label':_0x2949c4[_0x56f327(0x165)],'resourceId':_0x2949c4['id']});break;case _0x51c85d[_0x56f327(0x17a)]:if(_0x56f327(0x106)!=typeof _0x59165f||!(_0x56f327(0x109)in _0x59165f)||!(_0x56f327(0x11a)in _0x59165f))return void this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x169),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'expectedType':_0x56f327(0x157),'actualType':typeof _0x59165f}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});_0x59165f=AIChatContext[_0x56f327(0x119)](_0x59165f,_0x2949c4[_0x56f327(0x165)]),await this[_0x56f327(0x10a)]([_0x59165f],{'label':_0x2949c4[_0x56f327(0x165)],'resourceId':_0x2949c4['id']},_0x51c85d[_0x56f327(0x17a)]);break;default:this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x16e),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id'],'resourceType':_0x2949c4[_0x56f327(0x11a)]}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});}else this[_0x56f327(0x159)](_0x56f327(0x14e),{'error':new _0x7e5f12(_0x56f327(0x142),this,{'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']}),'resourceId':_0x2949c4['id'],'sourceId':_0x4bbc64['id']});}static[_0x49eb93(0x119)](_0x19bd0b,_0x39a60a){const _0x1f1601=_0x49eb93;switch(_0x19bd0b[_0x1f1601(0x11a)]){case _0x541474[_0x1f1601(0x16d)]:return new File([_0x19bd0b[_0x1f1601(0x109)]],_0x39a60a,{'type':_0x1f1601(0xfb)});case _0x541474[_0x1f1601(0x187)]:return new File([_0x19bd0b[_0x1f1601(0x109)]],_0x39a60a,{'type':_0x1f1601(0x128)});default:return new File([_0x19bd0b[_0x1f1601(0x109)]],_0x39a60a,{'type':_0x1f1601(0x121)});}}static[_0x49eb93(0x164)](_0xf1ac02){const _0x165f5e=_0x49eb93;switch(_0xf1ac02[_0x165f5e(0x11a)]){case _0x51c85d[_0x165f5e(0x168)]:return{'type':_0x51c85d[_0x165f5e(0x168)],'id':_0xf1ac02['id']};case _0x51c85d[_0x165f5e(0x108)]:return{'type':_0x51c85d[_0x165f5e(0x108)],'id':_0xf1ac02['id']};case _0x51c85d[_0x165f5e(0x140)]:return{'type':_0x51c85d[_0x165f5e(0x140)],'id':_0xf1ac02['id'],..._0xf1ac02[_0x165f5e(0x162)]?.[_0x165f5e(0x126)]&&{'selection':_0xf1ac02[_0x165f5e(0x162)]}};case _0x51c85d[_0x165f5e(0x17a)]:return{'type':_0x51c85d[_0x165f5e(0x168)],'id':_0xf1ac02['id']};default:return null;}}[_0x49eb93(0x16f)](_0xe23830,_0x7ffce7=!0x1){const _0x662acf=_0x49eb93;if(this[_0x662acf(0x143)][_0x662acf(0x14a)](_0xe23830[_0x662acf(0x160)],_0xe23830),_0xe23830[_0x662acf(0x136)]||this[_0x662acf(0x159)](_0x662acf(0xfd),{'contextItem':_0xe23830,'isLoading':_0x7ffce7}),_0x662acf(0x13d)===_0xe23830[_0x662acf(0x160)]&&this[_0x662acf(0x113)](),_0xe23830[_0x662acf(0x110)]){const _0x57be4d=this[_0x662acf(0x14c)](_0xe23830[_0x662acf(0x110)]);_0x57be4d&&_0x57be4d[_0x662acf(0x118)](_0x2edf1f=>{const _0x1f60c2=_0x662acf;this[_0x1f60c2(0x15e)](_0x2edf1f,_0xe23830[_0x1f60c2(0x110)],!0x0);});}}[_0x49eb93(0x137)](_0x504ea6){const _0x210609=_0x49eb93,_0x21db22=this[_0x210609(0x143)][_0x210609(0x16c)](_0x504ea6),_0x45a6af=this[_0x210609(0x13a)][_0x210609(0x16c)](_0x504ea6);if(_0x45a6af&&(_0x45a6af[_0x210609(0x124)](),this[_0x210609(0x13a)][_0x210609(0x148)](_0x504ea6)),_0x21db22?.[_0x210609(0x110)]){const _0x15f77d=this[_0x210609(0x14c)](_0x21db22[_0x210609(0x110)]);_0x15f77d&&_0x15f77d[_0x210609(0x118)](_0x34008e=>{const _0x1fa69b=_0x210609;this[_0x1fa69b(0x15e)](_0x34008e,_0x21db22[_0x1fa69b(0x110)],!0x1);});}this[_0x210609(0x143)][_0x210609(0x148)](_0x504ea6),this[_0x210609(0x159)](_0x210609(0x12c),{'uiId':_0x504ea6,'type':_0x21db22?.[_0x210609(0x11a)]}),_0x210609(0x13d)===_0x504ea6&&this[_0x210609(0x113)]();}[_0x49eb93(0x15b)](_0x13c54e,_0x1daf9d){const _0x184ee4=_0x49eb93;if(this[_0x184ee4(0x143)][_0x184ee4(0x10f)](_0x13c54e[_0x184ee4(0x160)])&&(this[_0x184ee4(0x143)][_0x184ee4(0x14a)](_0x13c54e[_0x184ee4(0x160)],_0x13c54e),this[_0x184ee4(0x159)](_0x184ee4(0x102),{'contextItem':_0x13c54e,'isLoading':_0x1daf9d}),_0x13c54e[_0x184ee4(0x110)])){const _0x4be4ce=this[_0x184ee4(0x14c)](_0x13c54e[_0x184ee4(0x110)]);_0x4be4ce&&_0x4be4ce[_0x184ee4(0x118)](_0x1f854a=>{const _0x1b85d9=_0x184ee4;this[_0x1b85d9(0x15e)](_0x1f854a,_0x13c54e[_0x1b85d9(0x110)],!0x0);});}}[_0x49eb93(0x12a)](_0x130baf){const _0x428ab5=_0x49eb93;this[_0x428ab5(0x115)][_0x428ab5(0x14a)](_0x130baf[_0x428ab5(0x160)],_0x130baf);}[_0x49eb93(0x15c)](){const _0x499a99=_0x49eb93;this[_0x499a99(0x17b)]={'document':{'enabled':!0x1!==this[_0x499a99(0x188)]?.[_0x499a99(0x135)]?.[_0x499a99(0x111)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x499a99(0x188)]?.[_0x499a99(0x177)]?.[_0x499a99(0x111)]},'files':{'enabled':!0x1!==this[_0x499a99(0x188)]?.[_0x499a99(0x171)]?.[_0x499a99(0x111)]},'sources':this[_0x499a99(0x158)]()},this[_0x499a99(0x159)](_0x499a99(0x181),{'options':this[_0x499a99(0x17b)]});}[_0x49eb93(0x158)](){const _0x3f82d3=_0x49eb93;return this[_0x3f82d3(0x188)]?.[_0x3f82d3(0x11d)]?.[_0x3f82d3(0x146)](_0x2d833b=>({..._0x2d833b,'resources':[]}))??[];}[_0x49eb93(0x113)](){const _0x565d9=_0x49eb93,_0x250e4e=this[_0x565d9(0x104)]()||this[_0x565d9(0x17c)]();this[_0x565d9(0x17b)][_0x565d9(0x135)][_0x565d9(0x17f)]=_0x250e4e,this[_0x565d9(0x159)](_0x565d9(0x181),{'options':this[_0x565d9(0x17b)]});}[_0x49eb93(0x13c)](_0x189e19){const _0x92b3a0=_0x49eb93;for(const _0x5f5002 of this[_0x92b3a0(0x143)][_0x92b3a0(0x151)]())if(_0x5f5002[_0x92b3a0(0x110)]===_0x189e19)return!0x0;for(const _0x3f28b7 of this[_0x92b3a0(0x115)][_0x92b3a0(0x151)]())if(_0x3f28b7[_0x92b3a0(0x110)]===_0x189e19)return!0x0;return!0x1;}[_0x49eb93(0x14c)](_0x6967e2){const _0x24a98a=_0x49eb93,_0x404ea7=[];for(const _0x17a9aa of this[_0x24a98a(0x17b)][_0x24a98a(0x11d)]){_0x17a9aa[_0x24a98a(0x17d)][_0x24a98a(0x161)](_0x372049=>_0x372049['id']===_0x6967e2)&&_0x404ea7[_0x24a98a(0x149)](_0x17a9aa['id']);}return 0x0===_0x404ea7[_0x24a98a(0x126)]?null:_0x404ea7;}[_0x49eb93(0x15e)](_0x5cdb05,_0x157eea,_0x1bb8a3){const _0x2ae1ae=_0x49eb93,_0x21312d=this[_0x2ae1ae(0x17b)][_0x2ae1ae(0x11d)][_0x2ae1ae(0x161)](_0x12e51b=>_0x12e51b['id']===_0x5cdb05);if(!_0x21312d)return;const _0xc8c83c=_0x21312d[_0x2ae1ae(0x17d)][_0x2ae1ae(0x161)](_0x2e8595=>_0x2e8595['id']===_0x157eea);_0xc8c83c&&(_0xc8c83c[_0x2ae1ae(0x155)]=_0x1bb8a3,this[_0x2ae1ae(0x159)](_0x2ae1ae(0x13f),{'sourceId':_0x5cdb05,'resourceId':_0x157eea,'isInContext':_0x1bb8a3}));}[_0x49eb93(0x15f)](_0xf02177){const _0x4a4823=_0x49eb93;this[_0x4a4823(0x11c)][_0x4a4823(0x14a)](_0xf02177,!0x0),this[_0x4a4823(0x11c)][_0x4a4823(0x12e)]&&this[_0x4a4823(0x159)](_0x4a4823(0x154),{'isUploadInProgress':!0x0});}[_0x49eb93(0x170)](_0x4d72fa){const _0x2f7554=_0x49eb93;this[_0x2f7554(0x11c)][_0x2f7554(0x148)](_0x4d72fa),0x0===this[_0x2f7554(0x11c)][_0x2f7554(0x12e)]&&this[_0x2f7554(0x159)](_0x2f7554(0x154),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf61193=_0x3497;(function(_0x44eea2,_0xab784f){const _0x273089=_0x3497,_0x2b7738=_0x44eea2();while(!![]){try{const _0x52d6cb=parseInt(_0x273089(0x11c))/0x1*(-parseInt(_0x273089(0xe0))/0x2)+parseInt(_0x273089(0x11b))/0x3*(-parseInt(_0x273089(0x12c))/0x4)+parseInt(_0x273089(0x106))/0x5+-parseInt(_0x273089(0xcb))/0x6+-parseInt(_0x273089(0x10b))/0x7+parseInt(_0x273089(0xfe))/0x8+parseInt(_0x273089(0xed))/0x9*(parseInt(_0x273089(0x102))/0xa);if(_0x52d6cb===_0xab784f)break;else _0x2b7738['push'](_0x2b7738['shift']());}catch(_0x5554cd){_0x2b7738['push'](_0x2b7738['shift']());}}}(_0x26a7,0x3e873));import{CKEditorError as _0x3453c9,EmitterMixin as _0xdde8a,logWarning as _0x42a3fd}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3e2df2}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x214691,AI_CONTEXT_MODEL_EVENT_NAMES as _0x3c8072}from'./aichatcontext.js';import{AICapabilities as _0x5350e3,CAPABILITIES_MODEL_EVENT_NAMES as _0x28227e}from'../../aicore/model/aicapabilities.js';function _0x26a7(){const _0x28a241=['interactionCreated','isStarted','ai-chat-conversation-start-failed','init','removeFromContext','isAvailable','54otNFDc','117357ZMjYaJ','type','isCurrentDocumentInContext','set','destroy','ai-chat-handle-user-interaction-already-in-progress','attributes','group','appendContent','indexOf','setModel','getConversation','delegate','start','contextItems','addFilesToContext','20576DaUYez','model','setConversationTitle','error','push','getModel','ai-chat-conversation-init-failed','ai-chat-conversation-already-started','conversationInitialized','prompt','startConversation','_processMessagesToInteractions','isSelectionInContext','sessionId','ai-chat-conversation-init-from-id-failed','createReply','selectedModel','webSearch','2759010KttpWF','removeSelectionFromContext','reset','getCapabilitiesConfig','getAvailableModels','text','content','fire','addSelectionToContext','reasoning','addResourceToContext','lastInteraction','populateFromMessage','getCurrentDocumentContext','currentInteraction','updateCurrentDocument','interactions','ai-chat-conversation-set-model-not-available','splice','removeInteraction','connector','2IPGObA','chatModels','getPendingContextItems','getAll','options','isCurrentDocumentInConversation','addCurrentDocumentToContext','getEditor','modelSelected','quickActionData','getInteraction','chatCapabilities','ai-chat-conversation-set-model-null','36byUocw','ai-chat-handle-user-conversation-not-initialized','fetchConversationMessages','length','conversationId','_extractContextItems','toggleWebSearch','capabilities','fetchConversation','addUrlToContext','selectedModelId','role','assistant','load','toLowerCase','modification-delta','hasOwn','2938992JwvTem','getDocumentContext','currentReply','find','1861490SFOzEw','loadSourceResources','text-delta','addToConversationContext','839860zfoLAB','ai-chat-conversation-start-no-model-selected','message','createInteraction','updateCurrentDocumentInContext','2478301QLbwQy','stack','chatContext','conversationStarted','handleUserInteraction','stop','toggleReasoning','title','getMessages','user'];_0x26a7=function(){return _0x28a241;};return _0x26a7();}function _0x3497(_0x5ca5d3,_0xe8209f){const _0x26a7e6=_0x26a7();return _0x3497=function(_0x349710,_0x3a6e9d){_0x349710=_0x349710-0xc3;let _0x21255c=_0x26a7e6[_0x349710];return _0x21255c;},_0x3497(_0x5ca5d3,_0xe8209f);}import{AIChatInteraction as _0x41d256}from'./aichatinteraction.js';export class AIChatConversation extends _0xdde8a(){['id'];[_0xf61193(0x116)]=!0x1;[_0xf61193(0xdb)]=[];[_0xf61193(0xd9)];[_0xf61193(0xc9)];[_0xf61193(0xdf)];[_0xf61193(0xe4)];constructor(_0x1590c3){const _0x274d57=_0xf61193;super(),this[_0x274d57(0xe4)]=_0x1590c3,this[_0x274d57(0xdf)]=_0x1590c3[_0x274d57(0xdf)],this[_0x274d57(0xe1)]=_0x1590c3[_0x274d57(0xe1)],this['id']=_0x1590c3[_0x274d57(0xf1)];}async[_0xf61193(0x118)](_0x29c73e){const _0x9c9ecd=_0xf61193;try{this[_0x9c9ecd(0x10d)]=new _0x214691({'connector':this[_0x9c9ecd(0xdf)],'config':_0x29c73e,'ownerId':this['id']}),this[_0x9c9ecd(0x10d)][_0x9c9ecd(0x128)](..._0x3c8072)['to'](this),this[_0x9c9ecd(0x10d)][_0x9c9ecd(0x118)](),this[_0x9c9ecd(0xeb)]=new _0x5350e3(),this[_0x9c9ecd(0xeb)][_0x9c9ecd(0x128)](..._0x28227e)['to'](this),this[_0x9c9ecd(0xeb)][_0x9c9ecd(0x118)]();const _0x2944b8=await this[_0x9c9ecd(0xe1)][_0x9c9ecd(0xcf)]();this[_0x9c9ecd(0xd2)](_0x9c9ecd(0x134),{'availableModels':_0x2944b8});const _0x4cbeed=await this[_0x9c9ecd(0xe1)][_0x9c9ecd(0x131)](this[_0x9c9ecd(0xe4)][_0x9c9ecd(0xf7)]);_0x4cbeed&&await this[_0x9c9ecd(0x126)](_0x4cbeed);}catch(_0x159b9d){const _0x47d2e2=new _0x3453c9(_0x9c9ecd(0x132),null,{'message':_0x159b9d[_0x9c9ecd(0x108)]});_0x47d2e2[_0x9c9ecd(0x10c)]=_0x159b9d[_0x9c9ecd(0x10c)],this[_0x9c9ecd(0xd2)](_0x9c9ecd(0x12f),{'error':_0x47d2e2});}}async[_0xf61193(0x129)](){const _0x73e7c7=_0xf61193;if(this[_0x73e7c7(0x116)])throw new _0x3453c9(_0x73e7c7(0x133),null,{'conversation':this});if(!this[_0x73e7c7(0xc9)])throw new _0x3453c9(_0x73e7c7(0x107),null,{'conversation':this});try{const {id:_0x534c10}=await this[_0x73e7c7(0xdf)][_0x73e7c7(0xc3)](this['id'],this[_0x73e7c7(0xe4)][_0x73e7c7(0x123)])[_0x73e7c7(0x127)]();this['id']=_0x534c10,this[_0x73e7c7(0x116)]=!0x0,this[_0x73e7c7(0xd2)](_0x73e7c7(0x10e),{'conversationId':this['id'],'selectedModel':this[_0x73e7c7(0xc9)]});}catch(_0x5e451d){const _0x5bb3e9=new _0x3453c9(_0x73e7c7(0x117),null,{'message':_0x5e451d[_0x73e7c7(0x108)]});_0x5bb3e9[_0x73e7c7(0x10c)]=_0x5e451d[_0x73e7c7(0x10c)],this[_0x73e7c7(0xd2)](_0x73e7c7(0x12f),{'error':_0x5bb3e9});}}async[_0xf61193(0xfa)](_0x35a156,_0x1abfe0){const _0x771a2=_0xf61193;try{const _0x15f70c=await this[_0x771a2(0xdf)][_0x771a2(0xf5)](_0x35a156)[_0x771a2(0x127)](),_0x3368a1=await this[_0x771a2(0xdf)][_0x771a2(0xef)](_0x35a156)[_0x771a2(0x113)](),_0x21a20d=_0x3368a1[0x0][_0x771a2(0x12d)];this[_0x771a2(0x116)]=!0x0,this['id']=_0x15f70c['id'],_0x771a2(0x112)in _0x15f70c?this[_0x771a2(0xd2)](_0x771a2(0x12e),_0x15f70c[_0x771a2(0x112)],!0x0):this[_0x771a2(0xd2)](_0x771a2(0x12e),'',!0x0);const _0x387bee=(await this[_0x771a2(0xe1)][_0x771a2(0xe3)]())[_0x771a2(0x101)](_0x706b8e=>_0x706b8e['id'][_0x771a2(0xfb)]()===_0x21a20d[_0x771a2(0xfb)]());return this[_0x771a2(0xc9)]=_0x387bee,this[_0x771a2(0xd2)](_0x771a2(0xe8),{'selectedModel':_0x387bee,'isDisabled':!0x0}),await this[_0x771a2(0xc4)](_0x3368a1,_0x1abfe0,_0x21a20d),this[_0x771a2(0xd9)]=void 0x0,this;}catch(_0x5f5516){const _0x4edf72=new _0x3453c9(_0x771a2(0xc7),null,{'message':_0x5f5516[_0x771a2(0x108)],'conversationId':_0x35a156});throw _0x4edf72[_0x771a2(0x10c)]=_0x5f5516[_0x771a2(0x10c)],this[_0x771a2(0xd2)](_0x771a2(0x12f),{'error':_0x4edf72}),_0x4edf72;}}async[_0xf61193(0xc4)](_0x2b822f,_0x140352,_0x39c0bc){const _0x3dcc7a=_0xf61193;let _0x4f999c;for(const _0x44a53b of _0x2b822f)if(_0x3dcc7a(0x114)===_0x44a53b[_0x3dcc7a(0xf8)]){const _0x96ba52=await this[_0x3dcc7a(0xf2)](_0x44a53b),_0x1d273a={'isReasoningEnabled':Object[_0x3dcc7a(0xfd)](_0x44a53b[_0x3dcc7a(0xf4)],_0x3dcc7a(0xd4)),'isWebSearchEnabled':Object[_0x3dcc7a(0xfd)](_0x44a53b[_0x3dcc7a(0xf4)],_0x3dcc7a(0xca))};_0x4f999c=this[_0x3dcc7a(0x109)]({'userMessage':_0x44a53b[_0x3dcc7a(0x135)],'contextItems':_0x96ba52,'capabilities':_0x1d273a,'modelId':_0x39c0bc,'quickActionData':_0x44a53b[_0x3dcc7a(0x122)]?.[_0x3dcc7a(0xe9)]}),this[_0x3dcc7a(0xd9)]=_0x4f999c,this[_0x3dcc7a(0x10d)][_0x3dcc7a(0x105)](this[_0x3dcc7a(0xd9)][_0x3dcc7a(0x12a)]);}else{if(_0x3dcc7a(0xf9)===_0x44a53b[_0x3dcc7a(0xf8)]&&_0x4f999c)for(const _0x10c397 of _0x44a53b[_0x3dcc7a(0xd1)]){const _0x5acd03=_0x3dcc7a(0xd0)===_0x10c397[_0x3dcc7a(0x11d)]?_0x3dcc7a(0x104):_0x3dcc7a(0xfc),_0x32103e=_0x4f999c[_0x3dcc7a(0xff)]()?.[_0x3dcc7a(0xc6)]!==_0x140352;_0x4f999c[_0x3dcc7a(0x100)]=_0x4f999c[_0x3dcc7a(0xc8)]({'type':_0x5acd03,'isDone':!0x0,'interactionId':_0x4f999c['id'],'areActionsDisabled':_0x32103e}),_0x4f999c[_0x3dcc7a(0x100)][_0x3dcc7a(0x124)](_0x10c397[_0x3dcc7a(0xd1)]);}}}async[_0xf61193(0xf2)](_0x1dde87){const _0x41a543=_0xf61193,_0x1a6bad=new Map();if(!_0x1dde87[_0x41a543(0xd1)])return _0x1a6bad;for(const _0x100660 of _0x1dde87[_0x41a543(0xd1)]){const _0x36c86b=await this[_0x41a543(0x10d)][_0x41a543(0xd7)](_0x100660);_0x36c86b&&_0x1a6bad[_0x41a543(0x11f)](_0x36c86b['id'],_0x36c86b);}return _0x1a6bad;}async[_0xf61193(0x10f)]({userMessage:_0x555a53,quickActionData:_0x3b2ea9}){const _0x34cbe9=_0xf61193;if(!this[_0x34cbe9(0x116)])throw new _0x3453c9(_0x34cbe9(0xee),null,{'conversation':this});if(this[_0x34cbe9(0xd9)])throw new _0x3453c9(_0x34cbe9(0x121),null,{'conversation':this});try{const _0x5702af=this[_0x34cbe9(0x10d)][_0x34cbe9(0xe2)](),_0x222535=this[_0x34cbe9(0xeb)][_0x34cbe9(0xce)](),_0x4afdcc=this[_0x34cbe9(0xc9)]['id'];this[_0x34cbe9(0xd9)]=this[_0x34cbe9(0x109)]({'userMessage':_0x555a53,'contextItems':_0x5702af,'capabilities':_0x222535,'modelId':_0x4afdcc,'quickActionData':_0x3b2ea9}),await this[_0x34cbe9(0xd9)][_0x34cbe9(0x129)](),this[_0x34cbe9(0x10d)][_0x34cbe9(0x105)](this[_0x34cbe9(0xd9)][_0x34cbe9(0x12a)]);}catch(_0x459b1a){this[_0x34cbe9(0xd2)](_0x34cbe9(0x12f),{'interactionId':this[_0x34cbe9(0xd9)]?this[_0x34cbe9(0xd9)]['id']:void 0x0,'error':_0x459b1a});}finally{this[_0x34cbe9(0xd9)]?.[_0x34cbe9(0x110)](),this[_0x34cbe9(0xd9)]=void 0x0;}}[_0xf61193(0x109)]({userMessage:_0x30f8f0,contextItems:_0x20c982,capabilities:_0xa8147b,modelId:_0x34dccc,quickActionData:_0x28735d}){const _0x132ad1=_0xf61193,_0x1b6cb2=new _0x41d256({'userMessage':_0x30f8f0,'contextItems':_0x20c982,'capabilities':_0xa8147b,'conversationId':this['id'],'connector':this[_0x132ad1(0xdf)],'editor':this[_0x132ad1(0xe4)][_0x132ad1(0xe7)]&&this[_0x132ad1(0xe4)][_0x132ad1(0xe7)](),'model':_0x34dccc,'quickActionData':_0x28735d});return _0x1b6cb2[_0x132ad1(0x128)](..._0x3e2df2)['to'](this),this[_0x132ad1(0xdb)][_0x132ad1(0x130)](_0x1b6cb2),this[_0x132ad1(0xd2)](_0x132ad1(0x115),_0x1b6cb2),_0x1b6cb2;}[_0xf61193(0xea)](_0x424a09){const _0x5a0902=_0xf61193;return this[_0x5a0902(0xdb)][_0x5a0902(0x101)](_0x4ded91=>_0x4ded91['id']===_0x424a09);}[_0xf61193(0xde)](_0x39df23){const _0x517705=_0xf61193,_0x24c2b8=this[_0x517705(0xea)](_0x39df23);_0x24c2b8&&(_0x24c2b8[_0x517705(0x120)](),this[_0x517705(0xdb)][_0x517705(0xdd)](this[_0x517705(0xdb)][_0x517705(0x125)](_0x24c2b8),0x1));}get[_0xf61193(0xd6)](){const _0x5a8ac1=_0xf61193;return this[_0x5a8ac1(0xdb)][this[_0x5a8ac1(0xdb)][_0x5a8ac1(0xf0)]-0x1];}[_0xf61193(0xe6)](_0x4e9039){const _0x3744fd=_0xf61193;this[_0x3744fd(0x10d)][_0x3744fd(0xe6)](_0x4e9039);}async[_0xf61193(0x10a)]({content:_0x4c2fff,version:_0x471df9,sessionId:_0xfce82d,selections:_0x2db3c0}){const _0x25d257=_0xf61193;await this[_0x25d257(0x10d)][_0x25d257(0xda)](_0x4c2fff,_0x471df9,_0xfce82d,_0x2db3c0);}[_0xf61193(0xd8)](){const _0x295029=_0xf61193;return this[_0x295029(0xd9)]?.[_0x295029(0xff)]()?.[_0x295029(0xd1)]||'';}[_0xf61193(0xd3)](_0x2013c4){const _0x68cb99=_0xf61193;this[_0x68cb99(0x10d)][_0x68cb99(0xd3)](_0x2013c4);}[_0xf61193(0xcc)](){const _0x23fc38=_0xf61193;this[_0x23fc38(0x10d)][_0x23fc38(0xcc)]();}[_0xf61193(0x12b)](_0x416fdd){const _0x13e7d7=_0xf61193;this[_0x13e7d7(0x10d)][_0x13e7d7(0x12b)](_0x416fdd);}[_0xf61193(0xf6)](_0x1022dd){const _0x2fe86a=_0xf61193;this[_0x2fe86a(0x10d)][_0x2fe86a(0xf6)](_0x1022dd);}[_0xf61193(0xd5)](_0x7ed598,_0x4a43bd){const _0x281d80=_0xf61193;this[_0x281d80(0x10d)][_0x281d80(0xd5)](_0x7ed598,_0x4a43bd);}[_0xf61193(0x103)](_0x35fc15,_0x3f1209,_0x9f1684){const _0xaeff41=_0xf61193;return this[_0xaeff41(0x10d)][_0xaeff41(0x103)](_0x35fc15,_0x3f1209,_0x9f1684);}[_0xf61193(0x119)](_0x3303e2){const _0x42b5b9=_0xf61193;this[_0x42b5b9(0x10d)][_0x42b5b9(0x119)](_0x3303e2);}[_0xf61193(0xf3)](){const _0x5dd75a=_0xf61193;this[_0x5dd75a(0xeb)][_0x5dd75a(0xf3)]();}[_0xf61193(0x111)](){const _0x3d5971=_0xf61193;this[_0x3d5971(0xeb)][_0x3d5971(0x111)]();}[_0xf61193(0x11e)](){const _0x4bc41b=_0xf61193;return this[_0x4bc41b(0x10d)][_0x4bc41b(0x11e)]();}[_0xf61193(0xe5)](){const _0x596896=_0xf61193;return this[_0x596896(0x10d)][_0x596896(0xe5)]();}[_0xf61193(0xc5)](){const _0x63ffbc=_0xf61193;return this[_0x63ffbc(0x10d)][_0x63ffbc(0xc5)]();}async[_0xf61193(0x126)](_0x24e5a7){const _0x5c8b1=_0xf61193;_0x24e5a7?!0x1===await this[_0x5c8b1(0xe1)][_0x5c8b1(0x11a)](_0x24e5a7)&&(_0x42a3fd(_0x5c8b1(0xdc),{'conversation':this,'model':_0x24e5a7}),_0x24e5a7=(await this[_0x5c8b1(0xe1)][_0x5c8b1(0xcf)]())[0x0]):(_0x42a3fd(_0x5c8b1(0xec),{'conversation':this}),_0x24e5a7=(await this[_0x5c8b1(0xe1)][_0x5c8b1(0xcf)]())[0x0]),_0x24e5a7['id']!==this[_0x5c8b1(0xc9)]?.['id']&&(this[_0x5c8b1(0xc9)]=_0x24e5a7,this[_0x5c8b1(0xeb)][_0x5c8b1(0xcd)](),this[_0x5c8b1(0xd2)](_0x5c8b1(0xe8),{'selectedModel':_0x24e5a7}));}}
23
+ const _0x2502e4=_0x541c;(function(_0x251d08,_0x5ca952){const _0x5cffd1=_0x541c,_0x1fb241=_0x251d08();while(!![]){try{const _0x9fa013=-parseInt(_0x5cffd1(0x154))/0x1*(-parseInt(_0x5cffd1(0x1b0))/0x2)+-parseInt(_0x5cffd1(0x19d))/0x3+-parseInt(_0x5cffd1(0x1b1))/0x4+-parseInt(_0x5cffd1(0x195))/0x5*(parseInt(_0x5cffd1(0x1a9))/0x6)+-parseInt(_0x5cffd1(0x17b))/0x7+-parseInt(_0x5cffd1(0x1b4))/0x8*(parseInt(_0x5cffd1(0x1aa))/0x9)+parseInt(_0x5cffd1(0x1af))/0xa;if(_0x9fa013===_0x5ca952)break;else _0x1fb241['push'](_0x1fb241['shift']());}catch(_0x482892){_0x1fb241['push'](_0x1fb241['shift']());}}}(_0x181d,0x21be2));import{CKEditorError as _0xbae659,EmitterMixin as _0x4d7429,logWarning as _0x191c41}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5d3ffa}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x542f25,AI_CONTEXT_MODEL_EVENT_NAMES as _0x53528d}from'./aichatcontext.js';function _0x541c(_0x8fbff8,_0x35b2c1){const _0x181d3d=_0x181d();return _0x541c=function(_0x541c58,_0x467e1e){_0x541c58=_0x541c58-0x144;let _0x2750bd=_0x181d3d[_0x541c58];return _0x2750bd;},_0x541c(_0x8fbff8,_0x35b2c1);}import{AICapabilities as _0x180c28,CAPABILITIES_MODEL_EVENT_NAMES as _0x481def}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x241e46}from'./aichatinteraction.js';export class AIChatConversation extends _0x4d7429(){['id'];[_0x2502e4(0x161)]=!0x1;[_0x2502e4(0x14e)]=[];[_0x2502e4(0x147)];[_0x2502e4(0x145)];[_0x2502e4(0x170)];[_0x2502e4(0x1ad)];constructor(_0x1d0c8a){const _0x253bc3=_0x2502e4;super(),this[_0x253bc3(0x1ad)]=_0x1d0c8a,this[_0x253bc3(0x170)]=_0x1d0c8a[_0x253bc3(0x170)],this[_0x253bc3(0x1a7)]=_0x1d0c8a[_0x253bc3(0x1a7)],this['id']=_0x1d0c8a[_0x253bc3(0x175)];}async[_0x2502e4(0x183)](_0x4b041b){const _0x52e95c=_0x2502e4;try{this[_0x52e95c(0x16f)]=new _0x542f25({'connector':this[_0x52e95c(0x170)],'config':_0x4b041b,'ownerId':this['id']}),this[_0x52e95c(0x16f)][_0x52e95c(0x18a)](..._0x53528d)['to'](this),this[_0x52e95c(0x16f)][_0x52e95c(0x183)](),this[_0x52e95c(0x156)]=new _0x180c28(),this[_0x52e95c(0x156)][_0x52e95c(0x18a)](..._0x481def)['to'](this),this[_0x52e95c(0x156)][_0x52e95c(0x183)]();const _0x29b30d=await this[_0x52e95c(0x1a7)][_0x52e95c(0x1a2)]();this[_0x52e95c(0x18b)](_0x52e95c(0x1a3),{'availableModels':_0x29b30d});const _0xdcf635=await this[_0x52e95c(0x1a7)][_0x52e95c(0x168)](this[_0x52e95c(0x1ad)][_0x52e95c(0x1a1)]);_0xdcf635&&await this[_0x52e95c(0x144)](_0xdcf635);}catch(_0x5a4a51){const _0x3bb1a8=new _0xbae659(_0x52e95c(0x16d),null,{'message':_0x5a4a51[_0x52e95c(0x181)]});_0x3bb1a8[_0x52e95c(0x17c)]=_0x5a4a51[_0x52e95c(0x17c)],this[_0x52e95c(0x18b)](_0x52e95c(0x177),{'error':_0x3bb1a8});}}async[_0x2502e4(0x17a)](){const _0x193e0e=_0x2502e4;if(this[_0x193e0e(0x161)])throw new _0xbae659(_0x193e0e(0x16c),null,{'conversation':this});if(!this[_0x193e0e(0x145)])throw new _0xbae659(_0x193e0e(0x1a8),null,{'conversation':this});try{const {id:_0x44f102}=await this[_0x193e0e(0x170)][_0x193e0e(0x159)](this['id'],this[_0x193e0e(0x1ad)][_0x193e0e(0x182)])[_0x193e0e(0x169)]();this['id']=_0x44f102,this[_0x193e0e(0x161)]=!0x0,this[_0x193e0e(0x18b)](_0x193e0e(0x174),{'conversationId':this['id'],'selectedModel':this[_0x193e0e(0x145)]});}catch(_0x4aafbe){const _0x9506b7=new _0xbae659(_0x193e0e(0x198),null,{'message':_0x4aafbe[_0x193e0e(0x181)]});_0x9506b7[_0x193e0e(0x17c)]=_0x4aafbe[_0x193e0e(0x17c)],this[_0x193e0e(0x18b)](_0x193e0e(0x177),{'error':_0x9506b7});}}async[_0x2502e4(0x19c)](_0x215a81,_0x3d3101){const _0x1260ba=_0x2502e4;try{const _0x5c0658=await this[_0x1260ba(0x170)][_0x1260ba(0x176)](_0x215a81)[_0x1260ba(0x169)](),_0x5a84b0=await this[_0x1260ba(0x170)][_0x1260ba(0x187)](_0x215a81)[_0x1260ba(0x19b)](),_0x40781d=_0x5a84b0[0x0][_0x1260ba(0x16e)];this[_0x1260ba(0x161)]=!0x0,this['id']=_0x5c0658['id'],_0x1260ba(0x199)in _0x5c0658?this[_0x1260ba(0x18b)](_0x1260ba(0x173),_0x5c0658[_0x1260ba(0x199)],!0x0):this[_0x1260ba(0x18b)](_0x1260ba(0x173),'',!0x0);const _0x5ed935=(await this[_0x1260ba(0x1a7)][_0x1260ba(0x148)]())[_0x1260ba(0x1b6)](_0x6fafab=>_0x6fafab['id'][_0x1260ba(0x1a4)]()===_0x40781d[_0x1260ba(0x1a4)]());return this[_0x1260ba(0x145)]=_0x5ed935,this[_0x1260ba(0x18b)](_0x1260ba(0x17f),{'selectedModel':_0x5ed935,'isDisabled':!0x0}),await this[_0x1260ba(0x1b5)](_0x5a84b0,_0x3d3101,_0x40781d),this[_0x1260ba(0x147)]=void 0x0,this;}catch(_0x405e29){const _0x2dbf3e=new _0xbae659(_0x1260ba(0x1a5),null,{'message':_0x405e29[_0x1260ba(0x181)],'conversationId':_0x215a81});throw _0x2dbf3e[_0x1260ba(0x17c)]=_0x405e29[_0x1260ba(0x17c)],this[_0x1260ba(0x18b)](_0x1260ba(0x177),{'error':_0x2dbf3e}),_0x2dbf3e;}}async[_0x2502e4(0x1b5)](_0x99cc40,_0x4c93e5,_0x2b66a8){const _0x3217e4=_0x2502e4;let _0x3f5116;for(const _0x1de5fc of _0x99cc40)if(_0x3217e4(0x160)===_0x1de5fc[_0x3217e4(0x16a)]){const _0x27bd0c=await this[_0x3217e4(0x180)](_0x1de5fc),_0x42f7f9={'isReasoningEnabled':Object[_0x3217e4(0x192)](_0x1de5fc[_0x3217e4(0x149)],_0x3217e4(0x157)),'isWebSearchEnabled':Object[_0x3217e4(0x192)](_0x1de5fc[_0x3217e4(0x149)],_0x3217e4(0x194))};_0x3f5116=this[_0x3217e4(0x14d)]({'userMessage':_0x1de5fc[_0x3217e4(0x171)],'contextItems':_0x27bd0c,'capabilities':_0x42f7f9,'modelId':_0x2b66a8,'quickActionData':_0x1de5fc[_0x3217e4(0x197)]?.[_0x3217e4(0x190)]}),this[_0x3217e4(0x147)]=_0x3f5116,this[_0x3217e4(0x16f)][_0x3217e4(0x17d)](this[_0x3217e4(0x147)][_0x3217e4(0x193)]);}else{if(_0x3217e4(0x1b2)===_0x1de5fc[_0x3217e4(0x16a)]&&_0x3f5116)for(const _0x1be38d of _0x1de5fc[_0x3217e4(0x15c)]){const _0x305e6b=_0x3217e4(0x1a6)===_0x1be38d[_0x3217e4(0x14f)]?_0x3217e4(0x15a):_0x3217e4(0x19a),_0x3dfa76=_0x3f5116[_0x3217e4(0x1b3)]()?.[_0x3217e4(0x18d)]!==_0x4c93e5;_0x3f5116[_0x3217e4(0x17e)]=_0x3f5116[_0x3217e4(0x172)]({'type':_0x305e6b,'isDone':!0x0,'interactionId':_0x3f5116['id'],'areActionsDisabled':_0x3dfa76}),_0x3f5116[_0x3217e4(0x17e)][_0x3217e4(0x165)](_0x1be38d[_0x3217e4(0x15c)]);}}}async[_0x2502e4(0x180)](_0x160d39){const _0x59acaa=_0x2502e4,_0x1c1c0d=new Map();if(!_0x160d39[_0x59acaa(0x15c)])return _0x1c1c0d;for(const _0x543af2 of _0x160d39[_0x59acaa(0x15c)]){const _0x11e66b=await this[_0x59acaa(0x16f)][_0x59acaa(0x15b)](_0x543af2);_0x11e66b&&_0x1c1c0d[_0x59acaa(0x1ac)](_0x11e66b['id'],_0x11e66b);}return _0x1c1c0d;}async[_0x2502e4(0x1ae)]({userMessage:_0x545420,quickActionData:_0x516ac8}){const _0x26f1cc=_0x2502e4;if(!this[_0x26f1cc(0x161)])throw new _0xbae659(_0x26f1cc(0x14a),null,{'conversation':this});if(this[_0x26f1cc(0x147)])throw new _0xbae659(_0x26f1cc(0x15e),null,{'conversation':this});try{const _0x116614=this[_0x26f1cc(0x16f)][_0x26f1cc(0x158)](),_0x1c8d4b=this[_0x26f1cc(0x156)][_0x26f1cc(0x18f)](),_0x17bdf9=this[_0x26f1cc(0x145)]['id'];this[_0x26f1cc(0x147)]=this[_0x26f1cc(0x14d)]({'userMessage':_0x545420,'contextItems':_0x116614,'capabilities':_0x1c8d4b,'modelId':_0x17bdf9,'quickActionData':_0x516ac8}),await this[_0x26f1cc(0x147)][_0x26f1cc(0x17a)](),this[_0x26f1cc(0x16f)][_0x26f1cc(0x17d)](this[_0x26f1cc(0x147)][_0x26f1cc(0x193)]);}catch(_0x4bc3dc){this[_0x26f1cc(0x18b)](_0x26f1cc(0x177),{'interactionId':this[_0x26f1cc(0x147)]?this[_0x26f1cc(0x147)]['id']:void 0x0,'error':_0x4bc3dc});}finally{this[_0x26f1cc(0x147)]?.[_0x26f1cc(0x15f)](),this[_0x26f1cc(0x147)]=void 0x0;}}[_0x2502e4(0x14d)]({userMessage:_0xcb4b49,contextItems:_0x2dcf8c,capabilities:_0x42f8d2,modelId:_0x337eba,quickActionData:_0x36edaf}){const _0x992846=_0x2502e4,_0x4c5c81=new _0x241e46({'userMessage':_0xcb4b49,'contextItems':_0x2dcf8c,'capabilities':_0x42f8d2,'conversationId':this['id'],'connector':this[_0x992846(0x170)],'editor':this[_0x992846(0x1ad)][_0x992846(0x1a0)]&&this[_0x992846(0x1ad)][_0x992846(0x1a0)](),'model':_0x337eba,'quickActionData':_0x36edaf});return _0x4c5c81[_0x992846(0x18a)](..._0x5d3ffa)['to'](this),this[_0x992846(0x14e)][_0x992846(0x155)](_0x4c5c81),this[_0x992846(0x18b)](_0x992846(0x185),_0x4c5c81),_0x4c5c81;}[_0x2502e4(0x163)](_0x47fede){const _0xba58d7=_0x2502e4;return this[_0xba58d7(0x14e)][_0xba58d7(0x1b6)](_0x3b0f55=>_0x3b0f55['id']===_0x47fede);}[_0x2502e4(0x18e)](_0x58a223){const _0x3f1ae0=_0x2502e4,_0x47e166=this[_0x3f1ae0(0x163)](_0x58a223);_0x47e166&&(_0x47e166[_0x3f1ae0(0x146)](),this[_0x3f1ae0(0x14e)][_0x3f1ae0(0x15d)](this[_0x3f1ae0(0x14e)][_0x3f1ae0(0x153)](_0x47e166),0x1));}get[_0x2502e4(0x186)](){const _0x5b640e=_0x2502e4;return this[_0x5b640e(0x14e)][this[_0x5b640e(0x14e)][_0x5b640e(0x188)]-0x1];}[_0x2502e4(0x179)](_0x416f3a){const _0x549750=_0x2502e4;this[_0x549750(0x16f)][_0x549750(0x179)](_0x416f3a);}async[_0x2502e4(0x1ab)]({content:_0x1ce3b8,version:_0x216317,sessionId:_0x4cf3bb,selections:_0x46785a}){const _0x3f497d=_0x2502e4;await this[_0x3f497d(0x16f)][_0x3f497d(0x162)](_0x1ce3b8,_0x216317,_0x4cf3bb,_0x46785a);}[_0x2502e4(0x152)](){const _0xa4d499=_0x2502e4;return this[_0xa4d499(0x147)]?.[_0xa4d499(0x1b3)]()?.[_0xa4d499(0x15c)]||'';}[_0x2502e4(0x19e)](_0x4d9a2d){const _0xc70521=_0x2502e4;this[_0xc70521(0x16f)][_0xc70521(0x19e)](_0x4d9a2d);}[_0x2502e4(0x18c)](){const _0x208b54=_0x2502e4;this[_0x208b54(0x16f)][_0x208b54(0x18c)]();}[_0x2502e4(0x14b)](_0x50ca40){const _0x1605be=_0x2502e4;this[_0x1605be(0x16f)][_0x1605be(0x14b)](_0x50ca40);}[_0x2502e4(0x150)](_0x47e9ce){const _0x604695=_0x2502e4;this[_0x604695(0x16f)][_0x604695(0x150)](_0x47e9ce);}[_0x2502e4(0x191)](_0x3a31df,_0xb5a720){const _0x61f38f=_0x2502e4;this[_0x61f38f(0x16f)][_0x61f38f(0x191)](_0x3a31df,_0xb5a720);}[_0x2502e4(0x166)](_0x216113,_0x1b0d72,_0x4696a1){const _0x5ce6b3=_0x2502e4;return this[_0x5ce6b3(0x16f)][_0x5ce6b3(0x166)](_0x216113,_0x1b0d72,_0x4696a1);}[_0x2502e4(0x184)](_0x8bff9){const _0x1ebf58=_0x2502e4;this[_0x1ebf58(0x16f)][_0x1ebf58(0x184)](_0x8bff9);}[_0x2502e4(0x164)](){const _0x2d2901=_0x2502e4;this[_0x2d2901(0x156)][_0x2d2901(0x164)]();}[_0x2502e4(0x196)](){const _0x25b8d6=_0x2502e4;this[_0x25b8d6(0x156)][_0x25b8d6(0x196)]();}[_0x2502e4(0x14c)](){const _0x41c650=_0x2502e4;return this[_0x41c650(0x16f)][_0x41c650(0x14c)]();}[_0x2502e4(0x19f)](){const _0x1ae130=_0x2502e4;return this[_0x1ae130(0x16f)][_0x1ae130(0x19f)]();}[_0x2502e4(0x167)](){const _0x4f0290=_0x2502e4;return this[_0x4f0290(0x16f)][_0x4f0290(0x167)]();}async[_0x2502e4(0x144)](_0x19acb7){const _0x54086b=_0x2502e4;_0x19acb7?!0x1===await this[_0x54086b(0x1a7)][_0x54086b(0x189)](_0x19acb7)&&(_0x191c41(_0x54086b(0x151),{'conversation':this,'model':_0x19acb7}),_0x19acb7=(await this[_0x54086b(0x1a7)][_0x54086b(0x1a2)]())[0x0]):(_0x191c41(_0x54086b(0x16b),{'conversation':this}),_0x19acb7=(await this[_0x54086b(0x1a7)][_0x54086b(0x1a2)]())[0x0]),_0x19acb7['id']!==this[_0x54086b(0x145)]?.['id']&&(this[_0x54086b(0x145)]=_0x19acb7,this[_0x54086b(0x156)][_0x54086b(0x178)](),this[_0x54086b(0x18b)](_0x54086b(0x17f),{'selectedModel':_0x19acb7}));}}function _0x181d(){const _0x39ecfb=['1632659rVSbIh','stack','addToConversationContext','currentReply','modelSelected','_extractContextItems','message','group','init','removeFromContext','interactionCreated','lastInteraction','fetchConversationMessages','length','isAvailable','delegate','fire','removeSelectionFromContext','sessionId','removeInteraction','getCapabilitiesConfig','quickActionData','addResourceToContext','hasOwn','contextItems','webSearch','395bSvckf','toggleReasoning','attributes','ai-chat-conversation-start-failed','title','modification-delta','getMessages','load','455949BpXclg','addSelectionToContext','isCurrentDocumentInConversation','getEditor','selectedModelId','getAvailableModels','conversationInitialized','toLowerCase','ai-chat-conversation-init-from-id-failed','text','chatModels','ai-chat-conversation-start-no-model-selected','8010CCSEnF','9pNTxVw','updateCurrentDocumentInContext','set','options','handleUserInteraction','7005750FSywop','42134PXOjiw','492368KobBSr','assistant','getDocumentContext','94312IvURjm','_processMessagesToInteractions','find','setModel','selectedModel','destroy','currentInteraction','getAll','capabilities','ai-chat-handle-user-conversation-not-initialized','addFilesToContext','isCurrentDocumentInContext','createInteraction','interactions','type','addUrlToContext','ai-chat-conversation-set-model-not-available','getCurrentDocumentContext','indexOf','3hUUcAb','push','chatCapabilities','reasoning','getPendingContextItems','startConversation','text-delta','populateFromMessage','content','splice','ai-chat-handle-user-interaction-already-in-progress','stop','user','isStarted','updateCurrentDocument','getInteraction','toggleWebSearch','appendContent','loadSourceResources','isSelectionInContext','getModel','getConversation','role','ai-chat-conversation-set-model-null','ai-chat-conversation-already-started','ai-chat-conversation-init-failed','model','chatContext','connector','prompt','createReply','setConversationTitle','conversationStarted','conversationId','fetchConversation','error','reset','addCurrentDocumentToContext','start'];_0x181d=function(){return _0x39ecfb;};return _0x181d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2f71(_0x3e7852,_0x39198c){var _0x4df20d=_0x4df2();return _0x2f71=function(_0x2f716c,_0x2a4ad7){_0x2f716c=_0x2f716c-0x1db;var _0x5e3279=_0x4df20d[_0x2f716c];return _0x5e3279;},_0x2f71(_0x3e7852,_0x39198c);}function _0x4df2(){var _0x1d659c=['6ndSoUH','contextItems','capabilities','1976592TEqFKN','10480MPkwde','mapContextItemsToRequestData','625696fgKhVL','userMessage','8722240VgRKNs','queryAssistant','get','25415357OoFecE','conversationId','getDocumentContext','12WCASMb','sendRequest','441428iQgACW','current-document','1243932zzxxMJ','5NgpTJF','2871wUwtrQ','connector','quickActionData','model','14bROujp','getCapabilitiesRequestData'];_0x4df2=function(){return _0x1d659c;};return _0x4df2();}var _0x3f2250=_0x2f71;(function(_0x4f8bdb,_0x770bef){var _0x253d97=_0x2f71,_0x2a2d44=_0x4f8bdb();while(!![]){try{var _0x353991=parseInt(_0x253d97(0x1e2))/0x1+parseInt(_0x253d97(0x1ec))/0x2*(parseInt(_0x253d97(0x1e4))/0x3)+parseInt(_0x253d97(0x1f2))/0x4*(-parseInt(_0x253d97(0x1e5))/0x5)+-parseInt(_0x253d97(0x1ef))/0x6*(-parseInt(_0x253d97(0x1ea))/0x7)+parseInt(_0x253d97(0x1f4))/0x8+parseInt(_0x253d97(0x1e6))/0x9*(-parseInt(_0x253d97(0x1f0))/0xa)+parseInt(_0x253d97(0x1dd))/0xb*(-parseInt(_0x253d97(0x1e0))/0xc);if(_0x353991===_0x770bef)break;else _0x2a2d44['push'](_0x2a2d44['shift']());}catch(_0x363d22){_0x2a2d44['push'](_0x2a2d44['shift']());}}}(_0x4df2,0x9a9c1));import{AICapabilities as _0x262fae}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x34dcac}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4d8b77}from'./aichatcontext.js';export class AIChatInteraction extends _0x34dcac{[_0x3f2250(0x1f3)];[_0x3f2250(0x1de)];[_0x3f2250(0x1ed)]=new Map();[_0x3f2250(0x1e9)];[_0x3f2250(0x1e8)];constructor(_0x314197){var _0x35ae52=_0x3f2250;super(_0x314197),this[_0x35ae52(0x1de)]=_0x314197[_0x35ae52(0x1de)],this[_0x35ae52(0x1ed)]=_0x314197[_0x35ae52(0x1ed)],this[_0x35ae52(0x1ee)]=_0x314197[_0x35ae52(0x1ee)],this[_0x35ae52(0x1f3)]=_0x314197[_0x35ae52(0x1f3)],this[_0x35ae52(0x1e9)]=_0x314197[_0x35ae52(0x1e9)],this[_0x35ae52(0x1e8)]=_0x314197[_0x35ae52(0x1e8)];}async[_0x3f2250(0x1e1)](){var _0x195602=_0x3f2250;return this[_0x195602(0x1e7)][_0x195602(0x1db)]({'message':this[_0x195602(0x1f3)],'conversationId':this[_0x195602(0x1de)],'parts':_0x4d8b77[_0x195602(0x1f1)](this[_0x195602(0x1ed)]),'capabilities':_0x262fae[_0x195602(0x1eb)](this[_0x195602(0x1ee)]),'model':this[_0x195602(0x1e9)],'quickActionData':this[_0x195602(0x1e8)]});}[_0x3f2250(0x1df)](){var _0x5568dd=_0x3f2250;return this[_0x5568dd(0x1ed)][_0x5568dd(0x1dc)](_0x5568dd(0x1e3));}}
23
+ var _0x2d52d2=_0x15ec;(function(_0x4a4c60,_0x4b0ca8){var _0x1be69e=_0x15ec,_0x4dc78c=_0x4a4c60();while(!![]){try{var _0x326c68=-parseInt(_0x1be69e(0x167))/0x1*(-parseInt(_0x1be69e(0x173))/0x2)+parseInt(_0x1be69e(0x174))/0x3+-parseInt(_0x1be69e(0x168))/0x4*(-parseInt(_0x1be69e(0x16c))/0x5)+parseInt(_0x1be69e(0x16a))/0x6*(parseInt(_0x1be69e(0x17a))/0x7)+parseInt(_0x1be69e(0x171))/0x8*(-parseInt(_0x1be69e(0x166))/0x9)+-parseInt(_0x1be69e(0x179))/0xa+-parseInt(_0x1be69e(0x16e))/0xb;if(_0x326c68===_0x4b0ca8)break;else _0x4dc78c['push'](_0x4dc78c['shift']());}catch(_0x19d6ab){_0x4dc78c['push'](_0x4dc78c['shift']());}}}(_0x2050,0x2504f));import{AICapabilities as _0x16536e}from'../../aicore/model/aicapabilities.js';function _0x2050(){var _0x44e06f=['contextItems','1991590JxqetF','14gCHLBv','get','model','capabilities','sendRequest','1098efChyC','39953npkjhW','463836glvwvl','current-document','787914JAxIDG','getCapabilitiesRequestData','5LxfZZC','mapContextItemsToRequestData','734855qpCsTf','quickActionData','queryAssistant','12312RcHUWV','userMessage','6Frqdxk','320691GcyCeO','conversationId','connector','getDocumentContext'];_0x2050=function(){return _0x44e06f;};return _0x2050();}function _0x15ec(_0x296a6e,_0x1c9f0f){var _0x20505b=_0x2050();return _0x15ec=function(_0x15ec7e,_0x1ff685){_0x15ec7e=_0x15ec7e-0x164;var _0x390f69=_0x20505b[_0x15ec7e];return _0x390f69;},_0x15ec(_0x296a6e,_0x1c9f0f);}import{AIInteraction as _0x588146}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x175508}from'./aichatcontext.js';export class AIChatInteraction extends _0x588146{[_0x2d52d2(0x172)];[_0x2d52d2(0x175)];[_0x2d52d2(0x178)]=new Map();[_0x2d52d2(0x17c)];[_0x2d52d2(0x16f)];constructor(_0x501632){var _0x8a28e=_0x2d52d2;super(_0x501632),this[_0x8a28e(0x175)]=_0x501632[_0x8a28e(0x175)],this[_0x8a28e(0x178)]=_0x501632[_0x8a28e(0x178)],this[_0x8a28e(0x164)]=_0x501632[_0x8a28e(0x164)],this[_0x8a28e(0x172)]=_0x501632[_0x8a28e(0x172)],this[_0x8a28e(0x17c)]=_0x501632[_0x8a28e(0x17c)],this[_0x8a28e(0x16f)]=_0x501632[_0x8a28e(0x16f)];}async[_0x2d52d2(0x165)](){var _0x441012=_0x2d52d2;return this[_0x441012(0x176)][_0x441012(0x170)]({'message':this[_0x441012(0x172)],'conversationId':this[_0x441012(0x175)],'parts':_0x175508[_0x441012(0x16d)](this[_0x441012(0x178)]),'capabilities':_0x16536e[_0x441012(0x16b)](this[_0x441012(0x164)]),'model':this[_0x441012(0x17c)],'quickActionData':this[_0x441012(0x16f)]});}[_0x2d52d2(0x177)](){var _0x4e7c08=_0x2d52d2;return this[_0x4e7c08(0x178)][_0x4e7c08(0x17b)](_0x4e7c08(0x169));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x52b275=_0x1dc5;(function(_0x1d9c60,_0x181d1c){const _0x41b967=_0x1dc5,_0x39c4c9=_0x1d9c60();while(!![]){try{const _0x1398bb=parseInt(_0x41b967(0x134))/0x1*(parseInt(_0x41b967(0x12d))/0x2)+-parseInt(_0x41b967(0x138))/0x3*(-parseInt(_0x41b967(0x132))/0x4)+parseInt(_0x41b967(0x12c))/0x5*(-parseInt(_0x41b967(0x133))/0x6)+parseInt(_0x41b967(0x13b))/0x7*(-parseInt(_0x41b967(0x12f))/0x8)+-parseInt(_0x41b967(0x13d))/0x9*(-parseInt(_0x41b967(0x139))/0xa)+-parseInt(_0x41b967(0x136))/0xb*(-parseInt(_0x41b967(0x135))/0xc)+-parseInt(_0x41b967(0x13c))/0xd;if(_0x1398bb===_0x181d1c)break;else _0x39c4c9['push'](_0x39c4c9['shift']());}catch(_0x2677b2){_0x39c4c9['push'](_0x39c4c9['shift']());}}}(_0x49cf,0x9a4d6));import{AIModels as _0x417736}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x417736{async[_0x52b275(0x13a)](){const _0x3746a9=_0x52b275;return(await super[_0x3746a9(0x13a)]())[_0x3746a9(0x137)]((_0x47abb6,_0x2d692a)=>{const _0x31645b=_0x3746a9,_0x34c843=Object[_0x31645b(0x12b)](_0x47abb6[_0x31645b(0x13e)])[_0x31645b(0x12e)](_0xd66a5d=>_0xd66a5d[_0x31645b(0x131)])[_0x31645b(0x130)];return Object[_0x31645b(0x12b)](_0x2d692a[_0x31645b(0x13e)])[_0x31645b(0x12e)](_0x2cf7b5=>_0x2cf7b5[_0x31645b(0x131)])[_0x31645b(0x130)]-_0x34c843;});}}function _0x1dc5(_0x1f54c7,_0x325152){const _0x49cffa=_0x49cf();return _0x1dc5=function(_0x1dc549,_0x4a6749){_0x1dc549=_0x1dc549-0x12b;let _0x2182d3=_0x49cffa[_0x1dc549];return _0x2182d3;},_0x1dc5(_0x1f54c7,_0x325152);}function _0x49cf(){const _0x41e1c5=['capabilities','values','45mMsLbk','304690vnQgmm','filter','110528jTxFft','length','enabled','12ZOEBpG','718518AuktFQ','3lKGxVQ','656556NTrVLx','88dXwpBe','sort','806763WeGoAa','1060zKrIik','getAll','7CvvYiu','11698375VDeiCZ','78282RHcdUa'];_0x49cf=function(){return _0x41e1c5;};return _0x49cf();}
23
+ const _0x362270=_0x52c5;function _0x3baf(){const _0x258f59=['2266TWZAiu','sort','filter','4754456xdUFPY','length','1279377JCqoji','enabled','18sMrmtG','10DuLyUE','3937360GYJVTZ','capabilities','getAll','877100kDMjsA','values','11519262PSNJLU','277NAOjVD','1170435HPltdz'];_0x3baf=function(){return _0x258f59;};return _0x3baf();}(function(_0x5220f5,_0x21202e){const _0xdeb96b=_0x52c5,_0xeab50a=_0x5220f5();while(!![]){try{const _0x36480f=-parseInt(_0xdeb96b(0x1ca))/0x1*(parseInt(_0xdeb96b(0x1cc))/0x2)+-parseInt(_0xdeb96b(0x1d1))/0x3+parseInt(_0xdeb96b(0x1c4))/0x4+parseInt(_0xdeb96b(0x1c7))/0x5*(-parseInt(_0xdeb96b(0x1c2))/0x6)+parseInt(_0xdeb96b(0x1cb))/0x7+-parseInt(_0xdeb96b(0x1cf))/0x8+parseInt(_0xdeb96b(0x1c9))/0x9*(parseInt(_0xdeb96b(0x1c3))/0xa);if(_0x36480f===_0x21202e)break;else _0xeab50a['push'](_0xeab50a['shift']());}catch(_0x473607){_0xeab50a['push'](_0xeab50a['shift']());}}}(_0x3baf,0x8b4e4));function _0x52c5(_0x2db35e,_0x3ac6f1){const _0x3bafaf=_0x3baf();return _0x52c5=function(_0x52c5e9,_0x47f937){_0x52c5e9=_0x52c5e9-0x1c1;let _0x3a641e=_0x3bafaf[_0x52c5e9];return _0x3a641e;},_0x52c5(_0x2db35e,_0x3ac6f1);}import{AIModels as _0x35c7d1}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x35c7d1{async[_0x362270(0x1c6)](){const _0x510de5=_0x362270;return(await super[_0x510de5(0x1c6)]())[_0x510de5(0x1cd)]((_0x393863,_0x1e2288)=>{const _0x169bb1=_0x510de5,_0x2796bf=Object[_0x169bb1(0x1c8)](_0x393863[_0x169bb1(0x1c5)])[_0x169bb1(0x1ce)](_0x4e643d=>_0x4e643d[_0x169bb1(0x1c1)])[_0x169bb1(0x1d0)];return Object[_0x169bb1(0x1c8)](_0x1e2288[_0x169bb1(0x1c5)])[_0x169bb1(0x1ce)](_0x5db401=>_0x5db401[_0x169bb1(0x1c1)])[_0x169bb1(0x1d0)]-_0x2796bf;});}}