@ckeditor/ckeditor5-ai 47.0.0-alpha.5 → 47.0.0-alpha.6

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 (306) hide show
  1. package/build/ai.js +1 -1
  2. package/ckeditor5-metadata.json +14 -0
  3. package/dist/index-editor.css +17 -2
  4. package/dist/index.css +18 -2
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +1 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.js +1 -1
  155. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  156. package/src/aiactions/model/aiactionsreply.js +1 -1
  157. package/src/aiassistant/adapters/aiadapter.js +1 -1
  158. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  159. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  160. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  179. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  180. package/src/aiballoon/ui/aiballoonview.js +1 -1
  181. package/src/aichat/aichat.js +1 -1
  182. package/src/aichat/aichatcontroller.d.ts +4 -0
  183. package/src/aichat/aichatcontroller.js +1 -1
  184. package/src/aichat/aichatui.d.ts +2 -0
  185. package/src/aichat/aichatui.js +1 -1
  186. package/src/aichat/model/aichatcontext.js +1 -1
  187. package/src/aichat/model/aichatconversation.js +1 -1
  188. package/src/aichat/model/aichatinteraction.js +1 -1
  189. package/src/aichat/model/aichatmodels.js +1 -1
  190. package/src/aichat/ui/aichatcontrolsview.d.ts +6 -0
  191. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  192. package/src/aichat/ui/aichatfeedview.js +1 -1
  193. package/src/aichat/ui/aichatheaderview.js +1 -1
  194. package/src/aichat/ui/aichatview.js +1 -1
  195. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  196. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  197. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  200. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  201. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  204. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  213. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  216. package/src/aichat/utils/eventnames.js +1 -1
  217. package/src/aichat/utils/promisequeue.js +1 -1
  218. package/src/aichat/utils/scrollmanager.js +1 -1
  219. package/src/aichathistory/aichathistory.js +1 -1
  220. package/src/aichathistory/aichathistorycontroller.js +1 -1
  221. package/src/aichathistory/aichathistoryui.js +1 -1
  222. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  223. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  224. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  225. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  226. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  227. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  228. package/src/aicore/aiconnector.js +1 -1
  229. package/src/aicore/aiediting.js +1 -1
  230. package/src/aicore/model/aicapabilities.js +1 -1
  231. package/src/aicore/model/aicontext.js +1 -1
  232. package/src/aicore/model/aiinteraction.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/utils/common-translations.js +1 -1
  245. package/src/aicore/utils/createresizebutton.js +1 -1
  246. package/src/aicore/utils/documentposition.js +1 -1
  247. package/src/aicore/utils/documentrange.js +1 -1
  248. package/src/aicore/utils/eventnames.js +1 -1
  249. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  250. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  251. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  252. package/src/aicore/utils/htmlparser.js +1 -1
  253. package/src/aicore/utils/htmlstreamer.js +1 -1
  254. package/src/aieditorintegration/aieditorintegration.d.ts +35 -0
  255. package/src/aieditorintegration/aieditorintegration.js +23 -0
  256. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.d.ts +38 -0
  257. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +23 -0
  258. package/src/aieditorintegration/aitogglebutton/toggleaicommand.d.ts +16 -0
  259. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +23 -0
  260. package/src/aiquickactions/aiquickactions.js +1 -1
  261. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  262. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  263. package/src/aiquickactions/aiquickactionsui.js +1 -1
  264. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  267. package/src/aiquickactions/utils/common-translations.js +1 -1
  268. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  269. package/src/aireviewmode/aireviewmode.js +1 -1
  270. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  271. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  272. package/src/aireviewmode/aireviewmodeui.js +1 -1
  273. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  274. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  275. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  276. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  277. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  278. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  279. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  280. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  281. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  284. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  285. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  286. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  287. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  288. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  289. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  291. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  292. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  293. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  294. package/src/aitabs/aitabs.js +1 -1
  295. package/src/aitabs/aitabsmainview.d.ts +6 -0
  296. package/src/aitabs/aitabsmainview.js +1 -1
  297. package/src/aitabs/tabs/aitabsview.js +1 -1
  298. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  299. package/src/aitabs/tabs/tabpanelview.js +1 -1
  300. package/src/augmentation.d.ts +6 -0
  301. package/src/index.d.ts +3 -0
  302. package/src/index.js +1 -1
  303. package/theme/aichat/aichat-controls.css +6 -0
  304. package/theme/aichat/aichat.css +2 -0
  305. package/theme/aichat/aisuggestioncontainer.css +8 -2
  306. package/theme/aireviewmode/aireviewmode-check-run-result.css +5 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5ccb75=_0x77ff;(function(_0x5d202c,_0x4dc494){const _0x5953ca=_0x77ff,_0x1a314a=_0x5d202c();while(!![]){try{const _0x1a889b=-parseInt(_0x5953ca(0x200))/0x1+-parseInt(_0x5953ca(0x2a8))/0x2*(parseInt(_0x5953ca(0x29f))/0x3)+parseInt(_0x5953ca(0x24b))/0x4*(-parseInt(_0x5953ca(0x255))/0x5)+-parseInt(_0x5953ca(0x248))/0x6+-parseInt(_0x5953ca(0x227))/0x7*(parseInt(_0x5953ca(0x20c))/0x8)+-parseInt(_0x5953ca(0x2a1))/0x9+parseInt(_0x5953ca(0x241))/0xa;if(_0x1a889b===_0x4dc494)break;else _0x1a314a['push'](_0x1a314a['shift']());}catch(_0x55e894){_0x1a314a['push'](_0x1a314a['shift']());}}}(_0x34fb,0xc5484));import{ContextPlugin as _0x38ea84,Editor as _0x59994c}from'ckeditor5/src/core.js';function _0x77ff(_0x48cdc9,_0x132993){const _0x34fbcf=_0x34fb();return _0x77ff=function(_0x77ff13,_0x315318){_0x77ff13=_0x77ff13-0x18d;let _0x45228e=_0x34fbcf[_0x77ff13];return _0x45228e;},_0x77ff(_0x48cdc9,_0x132993);}import{CKEditorError as _0x175785,logError as _0x39aa5f,scrollViewportToShowTarget as _0x2b5e1d,uid as _0x4780ab}from'ckeditor5/src/utils.js';import{AIConnector as _0x4a511e}from'../aicore/aiconnector.js';import{AITabs as _0x37e958}from'../aitabs/aitabs.js';import{AIChatConversation as _0xafa66f}from'./model/aichatconversation.js';import{getTranslation as _0x1acc5f}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x55ea50}from'../aicore/aiediting.js';import{AIChatModels as _0x4ff5e}from'./model/aichatmodels.js';import{getEditorFromContext as _0xf681fe}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x571329,DATA_ID_MODEL_ATTRIBUTE as _0x214b0f}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2e0d63}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x11f371,getMinimalSelection as _0x3376ea,getSuggestionPartsFromReply as _0x8892ff}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x47ac46,_DetachOperation as _0xebdfd9}from'ckeditor5/src/engine.js';import{findOne as _0x40b3aa,getAttribute as _0x106f93,serialize as _0x3024ef,Document as _0x234039,findByAttribute as _0x4e3f7f}from'../aicore/utils/htmlparser.js';import{IconAI as _0x12fa78}from'@ckeditor/ckeditor5-icons';function _0x34fb(){const _0x2f4a50=['ai-request-aborted','chat','forEach','stopInteraction','Showing\x20conversation\x20history...','undo','removeContextItem','interactionFinished','_showConversationHistory','isPremiumPlugin','root','_removeFromContext','abortPromptStream','resetMessageInput','_previewedChangeGroup','isOpen','ai-conversation-','like','_stopLastInteraction','Failed\x20to\x20load\x20conversation','$graveyard','_openBalloonFor','main','showPrevious','resourceStateChanged','rejected','open','_logError','contextItems','listenTo','AI_CHAT_UNABLE_TO_START_CONVERSATION','init','isStarted','uploadProgressChanged','removeSelectionFromContext','replyCreated','showDiff','getChild','toggleLoadingSkeleton','query','streaming','addFeedItemAIReply','addCurrentDocumentToContext','message','commands','afterInit','ai-chat-file-upload-failed','interactionCreated','sendMessage','_flushLastInteractionUI','stop','AIEditing','current-document','accepted','resize','collaboration.channelId','documentContextContent','_filterModels','uiId','hideFakeVisualSelection','view','document','addFeedItemError','_aiEditing','requires','interactionId','removed','_getDocumentRangeForReplyChanges','closeSourceResourceBalloon','sources','contextItemAdded','error','setIsUploadInProgress','conversationInitialized','isOfficialPlugin','_setIsMaximized','unshift','sendUserMessage','data-id','getInteractionAndReplyById','_insertSuggestion','addUrlToContext','find','toViewRange','_applySuggestion','contextSent','isLoading','resource','DocumentCompare','handleUserInteraction','activeConversation','resources','addOperation','AITabs','remove','startInteraction','markers','isDocumentOperation','sourcePosition','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai-chat-source-resources-load-failed','indexes','contextItemRemoved','getChildAtOffset','editors','createRange','config','addSelectionToContext','startsWith','new','node','getAttribute','batch','createPositionFromPath','scrollFeedToSuggestion','history','ai-chat-controller-mouse-over','push','addFeedInteractionHeader','options','showNext','isUploadInProgress','_toggleReasoning','ai-chat-conversation-start-failed','_aiConnector','selection','pluginName','stopListening','delete','addDocumentToContext','setConversationContext','getPath','871016cUsUDB','AIChatController','locale','replies','text-delta','selectModel','domConverter','interactionDestroyed','getMarkersGroup','startConversation','has','toString','608XjEDTG','finishInteraction','populateSourceResourceBalloon','editing','setContextItemLoading','source','replyContentUpdated','map','clearPendingContextUI','_balloonShowDiff','range','ai-chat-context-invalid-data','replyId','getChildren','nextSibling','createPositionAt','revert','version','Liked\x20response','modification-delta','insertSuggestion','loadSourceResources','indexOf','viewRangeToDom','updateFeedItemAIReplySuggestionPartState','_handleUIUserMessage','close','13923UrVroV','applyOperation','_updateReplyContent','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','updateCapabilities','plugins','_createFromRanges','Undo','addContextItem','modelSelected','updateFeedItemAIReplySuggestionContent','split','baseVersion','_toggleWebSearch','howMany','toggleSuggestionDisplayMode','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','state','parse','_aiChatUi','contextItemLoadingEnded','replyChangeGroupStateUpdated','filter','partIndex','addContextOptionsChanged','toggleReasoning','43196050SDepVN','AI_BALLOON_HEADER_TITLE','mouseOverSuggestion','rejectSuggestion','updateFeedInteractionHeader','applySuggestion','focusPromptInput','724500NTgNpF','AI_CHAT_ABORTED_MESSAGE','toggleWebSearch','1269780GmMzBP','getGroupId','addFeedItemAISuggestion','_batchToChanges','resetConversationTitle','model','isInContext','uid','AI_CHAT_GENERIC_ERROR','availableModels','20FkzLzK','removeFromContext','isCurrentDocumentInConversation','AIConnector','Disliked\x20response','addFileToContext','getReply','AI_CHAT_RESOURCE_LOAD_FAILED','showFakeVisualSelection','setIsMaximized','removeSelectionFromChatContext','ai-chat-resource-load-failed','addSelectionToChatContext','_handleStartConversation','getSelectionText','get','isCurrentDocumentInContext','path','ai-chat-conversation-init-failed','log','ai-chat-url-upload-failed','isDisabled','createConversation','ai-chat-controller-no-active-conversation','getRoot','contextItem','content','ai.chat.models.defaultModelId','cloneNode','getDiff','setSelectedModel','children','getOperations','length','resourceId','_integrateEditor','updateResourceState','loadConversation','name','setAddContextOptions','removeFeedInteraction','getDocumentContext','setChangeGroupState','dislike','mouseLeaveSuggestion','data','anchorId','_removeAISelectionMarkers','ai-chat-missing-channel-id','ai.chat.context','resizedTabs','updateFeedItemAIReplySources','string','pending','addFilesToContext','_scrollToSuggestionRange','activateTab','removeMarker','toLocaleLowerCase','dialogClosed','set','_applyOperationsAsSuggestions','sourceResourcesLoaded','full','updateConversationTitle','ai-chat-context-unsupported-type','change','setFeedItemRenderingStrategy','getTransformedByOperation','TrackChangesEditing','end','addResourceToContext','getFirstRange','context','777hbOLHp','resizeTabs','1626048MtvPNf','updateContent','getRanges','selectedModel','mapper','setConversationTitle','clearConversationContextUI','7090hNEbdI','updateFeedItemAIReplyContent','lastInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','AI_CHAT_CONTEXT_INVALID_DATA','maxOffset','sourceId','redo','changeGroups','static','ready','type','AIChatUI','handleRemovedConversation','getDocumentData','ai.chat.models.displayedModels','changes','alignToTop','from','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','capabilitiesUpdated','start','updateCurrentDocumentInContext','rootName','provider','AI_CHAT_UNTITLED_CONVERSATION','addFeedItemStaticMessage','getInteraction','setModel','interactionStarted','load','_aiChatModels','slice','add','addFeedItemUserMessage','showChangeInText'];_0x34fb=function(){return _0x2f4a50;};return _0x34fb();}import{AISuggestionContainerView as _0x1038b6}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x1785af}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x38ea84{[_0x5ccb75(0x1bb)];[_0x5ccb75(0x1f8)];[_0x5ccb75(0x23a)];[_0x5ccb75(0x2c7)];[_0x5ccb75(0x24e)]=new Map();[_0x5ccb75(0x2da)]=null;[_0x5ccb75(0x215)]=!0x1;static get[_0x5ccb75(0x1bc)](){return[_0x4a511e,_0x1785af,_0x571329];}static get[_0x5ccb75(0x1fa)](){const _0x166cac=_0x5ccb75;return _0x166cac(0x201);}static get[_0x5ccb75(0x1c6)](){return!0x0;}static get[_0x5ccb75(0x2d5)](){return!0x0;}[_0x5ccb75(0x19b)](){const _0x21cd95=_0x5ccb75;this[_0x21cd95(0x1f8)]=this[_0x21cd95(0x29e)][_0x21cd95(0x22c)][_0x21cd95(0x264)](_0x21cd95(0x258)),this[_0x21cd95(0x23a)]=this[_0x21cd95(0x29e)][_0x21cd95(0x22c)][_0x21cd95(0x264)](_0x21cd95(0x2b4)),this[_0x21cd95(0x1bb)]=this[_0x21cd95(0x29e)][_0x21cd95(0x22c)][_0x21cd95(0x264)](_0x21cd95(0x1af)),this[_0x21cd95(0x2c7)]=new _0x4ff5e({'connector':this[_0x21cd95(0x1f8)]});const _0x4671d4=this[_0x21cd95(0x29e)][_0x21cd95(0x22c)][_0x21cd95(0x264)](_0x21cd95(0x1d9));this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x209),()=>{const _0x56d33a=_0x21cd95;this[_0x56d33a(0x262)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x1c9),(_0x54f60c,_0x1d1be)=>{const _0x376c8c=_0x21cd95;this[_0x376c8c(0x225)]({'userMessage':_0x1d1be});}),this[_0x21cd95(0x199)](_0x4671d4,_0x21cd95(0x287),(_0x395726,_0xb706b3)=>{const _0x4c9d3b=_0x21cd95;this[_0x4c9d3b(0x1c7)](_0xb706b3);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x2a0),()=>{const _0x45bc3d=_0x21cd95;_0x4671d4[_0x45bc3d(0x1b2)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x2d8),async()=>{const _0x1f2166=_0x21cd95;await this[_0x1f2166(0x18e)](),await this[_0x1f2166(0x1ad)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x1fd),()=>{const _0x4a3e8a=_0x21cd95;this[_0x4a3e8a(0x1d6)]?.[_0x4a3e8a(0x1a6)](_0x1acc5f(this[_0x4a3e8a(0x29e)][_0x4a3e8a(0x202)],_0x4a3e8a(0x2bb)));}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x25a),(_0x2952b5,_0x310f40)=>{const _0x4f8893=_0x21cd95;this[_0x4f8893(0x1d6)]?.[_0x4f8893(0x28b)](Array[_0x4f8893(0x2ba)](_0x310f40));}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x1cd),(_0x3d09df,_0x32ac1b)=>{const _0x3ea647=_0x21cd95;this[_0x3ea647(0x1d6)]?.[_0x3ea647(0x1cd)](_0x32ac1b);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x29c),(_0x5368f3,_0x1f0c05)=>{const _0x129c8a=_0x21cd95;this[_0x129c8a(0x1d6)]?.[_0x129c8a(0x29c)](_0x1f0c05[_0x129c8a(0x211)],_0x1f0c05[_0x129c8a(0x1d3)]);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x2d2),(_0x461a93,_0x115baa)=>{const _0x45ec34=_0x21cd95;this[_0x45ec34(0x2d7)](_0x115baa);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x221),(_0x240de8,_0x7ca23f)=>{const _0x54e27e=_0x21cd95;this[_0x54e27e(0x1d6)]?.[_0x54e27e(0x221)](_0x7ca23f[_0x54e27e(0x2ae)],_0x7ca23f[_0x54e27e(0x1a3)],_0x7ca23f[_0x54e27e(0x252)]);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x24a),()=>{const _0x116767=_0x21cd95;this[_0x116767(0x234)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x240),()=>{const _0x2dc651=_0x21cd95;this[_0x2dc651(0x1f6)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x205),(_0x572fc4,_0x439712)=>{const _0xa977ee=_0x21cd95;this[_0xa977ee(0x1d6)]?.[_0xa977ee(0x2c4)](_0x439712);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x18d),(_0x4bb6c2,{replyId:_0x2891e2})=>{const _0x5935dd=_0x21cd95;console[_0x5935dd(0x268)](_0x5935dd(0x21e),_0x2891e2);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x280),(_0x4181c2,{replyId:_0x4fbf07})=>{const _0x57fc5f=_0x21cd95;console[_0x57fc5f(0x268)](_0x57fc5f(0x259),_0x4fbf07);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x220),(_0x3c44da,_0x820edc)=>{const _0x32cd95=_0x21cd95;this[_0x32cd95(0x29e)][_0x32cd95(0x22c)][_0x32cd95(0x264)](_0x1785af)[_0x32cd95(0x226)](),this[_0x32cd95(0x1cc)](_0x820edc);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x2cb),(_0x3ed690,{replyId:_0x5b05a2,partIndex:_0x4557bf})=>{const _0x17184b=_0x21cd95;this[_0x17184b(0x215)]=this[_0x17184b(0x23a)][_0x17184b(0x1a0)],this[_0x17184b(0x191)](_0x5b05a2,_0x4557bf);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x243),(_0x17a025,{replyId:_0x30cb45,partIndex:_0x138bfd})=>{const _0x5923c4=_0x21cd95,_0x4f1d69=this[_0x5923c4(0x1bf)](_0x30cb45,_0x138bfd);_0x4f1d69&&_0x5923c4(0x190)!=_0x4f1d69[_0x5923c4(0x216)][_0x5923c4(0x2d6)][_0x5923c4(0x2bf)]&&this[_0x5923c4(0x1bb)][_0x5923c4(0x25d)]([_0x4f1d69[_0x5923c4(0x216)]],_0x5923c4(0x1f0));}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x281),()=>{const _0x543937=_0x21cd95;this[_0x543937(0x1bb)][_0x543937(0x1b7)](_0x543937(0x1f0));}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x246),(_0xdf1838,_0x51fa64)=>{const _0x29e3c6=_0x21cd95;this[_0x29e3c6(0x29e)][_0x29e3c6(0x22c)][_0x29e3c6(0x264)](_0x1785af)[_0x29e3c6(0x226)](),this[_0x29e3c6(0x1d0)](_0x51fa64);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x236),async(_0x124493,_0x385a8b)=>{const _0x11b6b6=_0x21cd95,{reply:_0x219d58}=this[_0x11b6b6(0x1cb)](_0x385a8b[_0x11b6b6(0x218)]),_0x56c3b7=_0xf681fe(this[_0x11b6b6(0x29e)]),_0x5c7943=_0x8892ff({'editor':_0x56c3b7,'changeGroups':_0x219d58[_0x11b6b6(0x2b0)],'documentContextContent':_0x219d58[_0x11b6b6(0x1b4)],'showDiff':_0x385a8b[_0x11b6b6(0x1a0)]});await this[_0x11b6b6(0x23a)][_0x11b6b6(0x231)]({'id':_0x219d58['id'],'parts':_0x5c7943,'renderingStrategy':_0x11b6b6(0x2b1)});}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x244),(_0x568608,{replyId:_0x170287,partIndex:_0x532def})=>{const _0x56c2db=_0x21cd95;this[_0x56c2db(0x2da)]?.[_0x56c2db(0x218)]==_0x170287&&this[_0x56c2db(0x2da)]?.[_0x56c2db(0x23e)]==_0x532def&&this[_0x56c2db(0x29e)][_0x56c2db(0x22c)][_0x56c2db(0x264)](_0x1785af)[_0x56c2db(0x226)]();const {reply:_0x1b86c1}=this[_0x56c2db(0x1cb)](_0x170287);_0x1b86c1[_0x56c2db(0x27f)](_0x532def,_0x56c2db(0x195)),this[_0x56c2db(0x1bb)][_0x56c2db(0x1b7)](_0x56c2db(0x1f0));});}async[_0x5ccb75(0x1a9)](){const _0x26461c=_0x5ccb75;this[_0x26461c(0x29e)]instanceof _0x59994c?this[_0x26461c(0x278)](this[_0x26461c(0x29e)]):this[_0x26461c(0x199)](this[_0x26461c(0x29e)][_0x26461c(0x1e4)],_0x26461c(0x2c9),(_0x5d2730,_0x3baf59)=>{const _0x47c97d=_0x26461c;_0x3baf59['on'](_0x47c97d(0x2b2),()=>{const _0x2b947e=_0x47c97d;this[_0x2b947e(0x278)](_0x3baf59);});}),await this[_0x26461c(0x262)]();}[_0x5ccb75(0x1cc)](_0x34df69){const _0x116cbc=_0x5ccb75,_0x3267de=_0xf681fe(this[_0x116cbc(0x29e)]);if(!_0x3267de[_0x116cbc(0x22c)][_0x116cbc(0x20a)](_0x116cbc(0x29a)))return;const _0x466ddd=this[_0x116cbc(0x29e)][_0x116cbc(0x22c)][_0x116cbc(0x264)](_0x116cbc(0x1d4)),{reply:_0x5441ea,interaction:_0x454549}=this[_0x116cbc(0x1cb)](_0x34df69[_0x116cbc(0x218)]),_0x351429=this[_0x116cbc(0x1bf)](_0x34df69[_0x116cbc(0x218)],_0x34df69[_0x116cbc(0x23e)]),_0x598144=void 0x0!==_0x34df69[_0x116cbc(0x23e)]?[_0x5441ea[_0x116cbc(0x2b0)][_0x34df69[_0x116cbc(0x23e)]]]:_0x5441ea[_0x116cbc(0x2b0)][_0x116cbc(0x23d)](_0x4b7e2d=>_0x116cbc(0x28a)==_0x4b7e2d[_0x116cbc(0x238)]),_0x1f9b90=_0x598144[_0x116cbc(0x213)](_0x402a19=>_0x5441ea[_0x116cbc(0x2b0)][_0x116cbc(0x222)](_0x402a19));_0x1f9b90[_0x116cbc(0x2ce)](_0x1f25ca=>_0x5441ea[_0x116cbc(0x27f)](_0x1f25ca,_0x116cbc(0x1b1)));const _0x433e29=_0x2e0d63({'editor':_0x3267de,'reply':_0x5441ea,'interaction':_0x454549,'groups':_0x598144,'transform':!0x0,'documentCompare':_0x466ddd,'documentCompareOptions':{'anchor':_0x116cbc(0x192),'markDeletions':!0x0}});let _0x262667;_0x351429&&this[_0x116cbc(0x28c)](_0x351429[_0x116cbc(0x216)]),_0x3267de[_0x116cbc(0x250)][_0x116cbc(0x297)](_0x1aad10=>{const _0x3b53ca=_0x116cbc;_0x262667=_0x1aad10[_0x3b53ca(0x1ec)],_0x3267de[_0x3b53ca(0x22c)][_0x3b53ca(0x264)](_0x3b53ca(0x29a))[_0x3b53ca(0x292)](_0x433e29),this[_0x3b53ca(0x1bb)][_0x3b53ca(0x1b7)](_0x3b53ca(0x1f0));}),this[_0x116cbc(0x24e)][_0x116cbc(0x291)](_0x262667,{'interactionId':_0x454549['id'],'replyId':_0x5441ea['id'],'indexes':_0x1f9b90[_0x116cbc(0x2c8)]()});}[_0x5ccb75(0x1d0)](_0x1dc724){const _0x2c930c=_0x5ccb75,_0x4d8b69=_0xf681fe(this[_0x2c930c(0x29e)]),_0x43f923=this[_0x2c930c(0x29e)][_0x2c930c(0x22c)][_0x2c930c(0x264)](_0x571329),{reply:_0xb490f1,interaction:_0x114db5}=this[_0x2c930c(0x1cb)](_0x1dc724[_0x2c930c(0x218)]),_0x2831b2=this[_0x2c930c(0x1bf)](_0x1dc724[_0x2c930c(0x218)],_0x1dc724[_0x2c930c(0x23e)]),_0x5d8219=void 0x0!==_0x1dc724[_0x2c930c(0x23e)]?[_0xb490f1[_0x2c930c(0x2b0)][_0x1dc724[_0x2c930c(0x23e)]]]:_0xb490f1[_0x2c930c(0x2b0)][_0x2c930c(0x23d)](_0x227752=>_0x2c930c(0x28a)==_0x227752[_0x2c930c(0x238)]),_0x34604f=_0x5d8219[_0x2c930c(0x213)](_0xaf16d4=>_0xb490f1[_0x2c930c(0x2b0)][_0x2c930c(0x222)](_0xaf16d4));_0x34604f[_0x2c930c(0x2ce)](_0x2dcd12=>_0xb490f1[_0x2c930c(0x27f)](_0x2dcd12,_0x2c930c(0x1b1)));const _0x22a56a=_0x2e0d63({'editor':_0x4d8b69,'reply':_0xb490f1,'interaction':_0x114db5,'groups':_0x5d8219,'transform':!0x0,'documentCompare':_0x43f923,'documentCompareOptions':{'anchor':_0x2c930c(0x192),'markDeletions':!0x1}});let _0x1c5d71;_0x2831b2&&this[_0x2c930c(0x28c)](_0x2831b2[_0x2c930c(0x216)]),_0x4d8b69[_0x2c930c(0x250)][_0x2c930c(0x297)](_0x128c7b=>{const _0x509929=_0x2c930c;_0x1c5d71=_0x128c7b[_0x509929(0x1ec)];for(const _0x36835d of _0x22a56a)_0x36835d[_0x509929(0x233)]=_0x4d8b69[_0x509929(0x250)][_0x509929(0x1b9)][_0x509929(0x21d)],_0x128c7b[_0x509929(0x1ec)][_0x509929(0x1d8)](_0x36835d),_0x4d8b69[_0x509929(0x250)][_0x509929(0x228)](_0x36835d);}),this[_0x2c930c(0x24e)][_0x2c930c(0x291)](_0x1c5d71,{'interactionId':_0x114db5['id'],'replyId':_0xb490f1['id'],'indexes':_0x34604f[_0x2c930c(0x2c8)]()});}[_0x5ccb75(0x191)](_0x249a76,_0x326266){const _0x36e621=_0x5ccb75,_0x395a55=_0xf681fe(this[_0x36e621(0x29e)]),_0x395f2c=this[_0x36e621(0x1bf)](_0x249a76,_0x326266),_0xf3fc05=this[_0x36e621(0x29e)][_0x36e621(0x22c)][_0x36e621(0x264)](_0x1785af);if(!_0x395f2c)return void _0xf3fc05[_0x36e621(0x226)]();const {range:_0x23bab7,currentIndex:_0x423fe3,previousIndex:_0x4c5cc5,nextIndex:_0x3c375b}=_0x395f2c;if(this[_0x36e621(0x2da)]?.[_0x36e621(0x218)]==_0x249a76&&this[_0x36e621(0x2da)]?.[_0x36e621(0x23e)]==_0x423fe3)return;this[_0x36e621(0x2da)]={'replyId':_0x249a76,'partIndex':_0x423fe3};const _0xe7d04f=new _0x1038b6(_0x395a55[_0x36e621(0x202)],{'showDiff':this[_0x36e621(0x215)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x36e621(0x294)},'hideHeader':!0x0}),{reply:_0x1e1166}=this[_0x36e621(0x1cb)](_0x249a76),_0x56c3f2=_0x8892ff({'editor':_0x395a55,'changeGroups':[_0x1e1166[_0x36e621(0x2b0)][_0x423fe3]],'documentContextContent':_0x1e1166[_0x36e621(0x1b4)],'showDiff':this[_0x36e621(0x215)]});_0xe7d04f[_0x36e621(0x2a2)]({'parts':_0x56c3f2,'renderingStrategy':_0x36e621(0x2b1)});const _0x329671=_0x423fe3!==_0x4c5cc5;this[_0x36e621(0x28c)](_0x23bab7,!0x0),_0xf3fc05[_0x36e621(0x196)]({'index':_0x423fe3,'title':_0x1acc5f(this[_0x36e621(0x29e)][_0x36e621(0x202)],_0x36e621(0x242),(_0x423fe3+0x1)[_0x36e621(0x20b)]()),'icon':_0x12fa78,'mainView':_0xe7d04f,'showRotator':_0x329671,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x23bab7]}),this[_0x36e621(0x23a)][_0x36e621(0x1ee)](_0x249a76,_0x423fe3),this[_0x36e621(0x199)](_0xe7d04f,_0x36e621(0x236),(_0x3c9a69,{showDiff:_0x4f4df7})=>{const _0x1eafaa=_0x36e621;this[_0x1eafaa(0x215)]=_0x4f4df7;const {reply:_0x44cbb9}=this[_0x1eafaa(0x1cb)](_0x249a76),_0x2742b5=_0x8892ff({'editor':_0x395a55,'changeGroups':[_0x44cbb9[_0x1eafaa(0x2b0)][_0x423fe3]],'documentContextContent':_0x44cbb9[_0x1eafaa(0x1b4)],'showDiff':_0x4f4df7});_0xe7d04f[_0x1eafaa(0x2a2)]({'parts':_0x2742b5,'renderingStrategy':_0x1eafaa(0x2b1)});}),this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x246),()=>{const _0x6c06ca=_0x36e621;this[_0x6c06ca(0x1d0)]({'replyId':_0x249a76,'partIndex':_0x423fe3}),_0x329671?this[_0x6c06ca(0x191)](_0x249a76,_0x3c375b):_0xf3fc05[_0x6c06ca(0x226)]();}),this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x220),()=>{const _0x258362=_0x36e621;this[_0x258362(0x1cc)]({'replyId':_0x249a76,'partIndex':_0x423fe3}),_0x329671?this[_0x258362(0x191)](_0x249a76,_0x3c375b):_0xf3fc05[_0x258362(0x226)]();}),_0x329671&&(this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x1f4),()=>{const _0x4f0df5=_0x36e621;this[_0x4f0df5(0x191)](_0x249a76,_0x3c375b);}),this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x193),()=>{const _0x4311e2=_0x36e621;this[_0x4311e2(0x191)](_0x249a76,_0x4c5cc5);})),this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x290),()=>{const _0x436a4b=_0x36e621;this[_0x436a4b(0x1fb)](_0xf3fc05),this[_0x436a4b(0x1fb)](_0xe7d04f),this[_0x436a4b(0x2da)]=null;});}[_0x5ccb75(0x1bf)](_0x5b8db3,_0xbbd790){const _0x17d7bd=_0x5ccb75,_0x1427fa=_0xf681fe(this[_0x17d7bd(0x29e)]),{reply:_0x21a85b,interaction:_0x2671cb}=this[_0x17d7bd(0x1cb)](_0x5b8db3),_0x16f834=_0x21a85b[_0x17d7bd(0x2b0)][_0x17d7bd(0x23d)](_0xeb637a=>_0x17d7bd(0x28a)==_0xeb637a[_0x17d7bd(0x238)]),_0x20534b=_0x16f834[_0x17d7bd(0x213)](_0x3c705f=>_0x21a85b[_0x17d7bd(0x2b0)][_0x17d7bd(0x222)](_0x3c705f));void 0x0===_0xbbd790&&(_0xbbd790=_0x20534b[0x0]);const _0xc42e4b=_0x20534b[_0x17d7bd(0x222)](_0xbbd790);if(-0x1==_0xc42e4b)return null;const _0x258186=0x0==_0xc42e4b?_0x20534b[_0x20534b[_0x17d7bd(0x276)]-0x1]:_0x20534b[_0xc42e4b-0x1],_0x430cb7=_0xc42e4b==_0x20534b[_0x17d7bd(0x276)]-0x1?_0x20534b[0x0]:_0x20534b[_0xc42e4b+0x1],_0x22f36b=_0x16f834[_0xc42e4b],_0x5eb561=new _0x234039([]),_0x245ff5=new _0x234039([]);for(const _0x214aa3 of _0x22f36b[_0x17d7bd(0x2b8)])if(_0x17d7bd(0x1be)!=_0x214aa3[_0x17d7bd(0x2b3)]&&_0x245ff5[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x214aa3[_0x17d7bd(0x1ea)][_0x17d7bd(0x271)](!0x0)),_0x17d7bd(0x1e9)!=_0x214aa3[_0x17d7bd(0x2b3)]){const _0x224525=_0x40b3aa(_0x230077=>_0x106f93(_0x230077,_0x17d7bd(0x1ca))==_0x214aa3['id'],_0x21a85b[_0x17d7bd(0x1b4)],!0x0);_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x224525[_0x17d7bd(0x271)](!0x0));}if(0x0==_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x276)]){if(_0x22f36b[_0x17d7bd(0x2b8)][0x0][_0x17d7bd(0x283)]){const _0x174a46=_0x4e3f7f(_0x17d7bd(0x1ca),_0x22f36b[_0x17d7bd(0x2b8)][0x0][_0x17d7bd(0x283)],_0x21a85b[_0x17d7bd(0x1b4)]);_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x1c8)](_0x174a46[_0x17d7bd(0x271)](!0x0)),_0x245ff5[_0x17d7bd(0x274)][_0x17d7bd(0x1c8)](_0x174a46[_0x17d7bd(0x271)](!0x0)),_0x174a46[_0x17d7bd(0x21a)]&&(_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x174a46[_0x17d7bd(0x21a)][_0x17d7bd(0x271)](!0x0)),_0x245ff5[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x174a46[_0x17d7bd(0x21a)][_0x17d7bd(0x271)](!0x0)));}else{const _0x7eb988=_0x21a85b[_0x17d7bd(0x1b4)][_0x17d7bd(0x274)][0x0];if(!_0x7eb988)return null;_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x7eb988[_0x17d7bd(0x271)](!0x0)),_0x245ff5[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x7eb988[_0x17d7bd(0x271)](!0x0));}}const _0x294449=_0x2671cb[_0x17d7bd(0x27e)](),_0x299fc6=_0x1427fa[_0x17d7bd(0x282)][_0x17d7bd(0x239)](_0x294449[_0x17d7bd(0x26f)]),_0x3b8984=_0x3024ef(_0x5eb561),_0x235078=_0x1427fa[_0x17d7bd(0x282)][_0x17d7bd(0x239)](_0x3b8984),_0x3bb753=_0x1427fa[_0x17d7bd(0x282)][_0x17d7bd(0x239)](_0x3b8984),_0x1f8c55=_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x21b)](_0x235078,0x0),_0x5aa325=_0x3024ef(_0x245ff5),_0x2311f6={'anchor':_0x1f8c55,'markDeletions':!0x1},_0x4b78f3=_0x1427fa[_0x17d7bd(0x22c)][_0x17d7bd(0x264)](_0x571329)[_0x17d7bd(0x272)](_0x3b8984,_0x5aa325,_0x2311f6)[_0x17d7bd(0x275)]();if(!_0x4b78f3[_0x17d7bd(0x276)])return null;_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x297)](_0x5ef0c4=>{const _0x39ecbf=_0x17d7bd;for(const _0x4fe312 of _0x4b78f3)if(_0x39ecbf(0x1da)==_0x4fe312[_0x39ecbf(0x2b3)]){const _0x1331ae=_0x4fe312[_0x39ecbf(0x1de)],_0x2d3125=_0x4fe312[_0x39ecbf(0x235)],_0x47be5f=new _0xebdfd9(_0x1331ae,_0x2d3125);_0x5ef0c4[_0x39ecbf(0x1ec)][_0x39ecbf(0x1d8)](_0x47be5f),_0x1427fa[_0x39ecbf(0x250)][_0x39ecbf(0x228)](_0x47be5f);}else _0x4fe312[_0x39ecbf(0x233)]=null,_0x4fe312[_0x39ecbf(0x1dd)]=!0x1,_0x5ef0c4[_0x39ecbf(0x1ec)][_0x39ecbf(0x1d8)](_0x4fe312),_0x1427fa[_0x39ecbf(0x250)][_0x39ecbf(0x228)](_0x4fe312);});const _0x3d5c96=_0x3376ea(_0x1427fa,_0x4b78f3,_0x235078);_0x11f371(_0x1427fa[_0x17d7bd(0x250)],_0x3d5c96);const _0x4016ed=_0x3d5c96[_0x17d7bd(0x29d)]()[_0x17d7bd(0x2bd)][_0x17d7bd(0x266)][_0x17d7bd(0x2c8)](),_0x5a14e6=_0x3d5c96[_0x17d7bd(0x29d)]()[_0x17d7bd(0x29b)][_0x17d7bd(0x266)][_0x17d7bd(0x2c8)](),_0x259b45=[];let _0x4d7184=_0x235078,_0x15fd6a=_0x3bb753;for(let _0x55ffda=0x0;_0x55ffda<_0x5a14e6[_0x17d7bd(0x276)];_0x55ffda++){const _0x18b996=_0x4d7184[_0x17d7bd(0x2ad)]-_0x5a14e6[_0x55ffda];_0x259b45[_0x55ffda]=_0x15fd6a[_0x17d7bd(0x2ad)]-_0x18b996,_0x4d7184=_0x4d7184[_0x17d7bd(0x1e3)](_0x5a14e6[_0x55ffda]),_0x15fd6a=_0x15fd6a[_0x17d7bd(0x1e3)](_0x259b45[_0x55ffda]);}const _0x244755=_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1e5)](_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1ed)](_0x3bb753,_0x4016ed),_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1ed)](_0x3bb753,_0x259b45)),_0x3517be=_0x3bb753[_0x17d7bd(0x1a1)](0x0)[_0x17d7bd(0x1eb)](_0x214b0f),_0x422181=Array[_0x17d7bd(0x2ba)](_0x299fc6[_0x17d7bd(0x219)]())[_0x17d7bd(0x1ce)](_0x419899=>_0x419899[_0x17d7bd(0x1eb)](_0x214b0f)==_0x3517be)[_0x17d7bd(0x1ff)](),_0x20da90=_0x244755[_0x17d7bd(0x2bd)][_0x17d7bd(0x266)][_0x17d7bd(0x2c8)](),_0xae7ace=_0x244755[_0x17d7bd(0x29b)][_0x17d7bd(0x266)][_0x17d7bd(0x2c8)]();_0x20da90[0x0]=_0x422181[0x0]+_0x20da90[0x0],_0xae7ace[0x0]=_0x422181[0x0]+_0xae7ace[0x0];let _0x5c0033=_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1e5)](_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1ed)](_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1b9)][_0x17d7bd(0x26d)](),_0x20da90),_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1ed)](_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1b9)][_0x17d7bd(0x26d)](),_0xae7ace));const _0x136037=_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1b9)][_0x17d7bd(0x1ef)][_0x17d7bd(0x275)](_0x294449[_0x17d7bd(0x21d)]);for(const _0x554b3d of _0x136037)_0x5c0033=_0x47ac46[_0x17d7bd(0x22d)](_0x5c0033[_0x17d7bd(0x299)](_0x554b3d));return{'range':_0x5c0033,'previousIndex':_0x258186,'nextIndex':_0x430cb7,'currentIndex':_0xbbd790};}[_0x5ccb75(0x278)](_0x24d71b){const _0xf9494=_0x5ccb75;if(!_0x24d71b[_0xf9494(0x22c)][_0xf9494(0x20a)](_0xf9494(0x22e)))return;const _0x2351ca=_0x24d71b[_0xf9494(0x1a8)][_0xf9494(0x264)](_0xf9494(0x2d1)),_0x1c5f20=_0x24d71b[_0xf9494(0x1a8)][_0xf9494(0x264)](_0xf9494(0x2af));this[_0xf9494(0x199)](_0x2351ca,_0xf9494(0x21c),(_0x13edf3,_0x1d5eb5,_0x1ca07d)=>{const _0x2384d8=_0xf9494,_0x31c1b7=this[_0x2384d8(0x24e)][_0x2384d8(0x264)](_0x1d5eb5);if(!_0x31c1b7)return;const _0x18fc14=this[_0x2384d8(0x1d6)][_0x2384d8(0x2c3)](_0x31c1b7[_0x2384d8(0x1bd)])[_0x2384d8(0x25b)](_0x31c1b7[_0x2384d8(0x218)]);_0x31c1b7[_0x2384d8(0x1e1)][_0x2384d8(0x2ce)](_0x5ec62c=>_0x18fc14[_0x2384d8(0x27f)](_0x5ec62c,_0x2384d8(0x28a))),this[_0x2384d8(0x24e)][_0x2384d8(0x1fc)](_0x1d5eb5),this[_0x2384d8(0x24e)][_0x2384d8(0x291)](_0x1ca07d,_0x31c1b7);}),this[_0xf9494(0x199)](_0x1c5f20,_0xf9494(0x21c),(_0xacdfbc,_0x2aa75f,_0x4715f8)=>{const _0x274d52=_0xf9494,_0x545dea=this[_0x274d52(0x24e)][_0x274d52(0x264)](_0x2aa75f);if(!_0x545dea)return;const _0x2b69c0=this[_0x274d52(0x1d6)][_0x274d52(0x2c3)](_0x545dea[_0x274d52(0x1bd)])[_0x274d52(0x25b)](_0x545dea[_0x274d52(0x218)]);_0x545dea[_0x274d52(0x1e1)][_0x274d52(0x2ce)](_0xa49bf9=>_0x2b69c0[_0x274d52(0x27f)](_0xa49bf9,_0x274d52(0x1b1))),this[_0x274d52(0x24e)][_0x274d52(0x1fc)](_0x2aa75f),this[_0x274d52(0x24e)][_0x274d52(0x291)](_0x4715f8,_0x545dea);});}async[_0x5ccb75(0x27a)](_0x209707){const _0x2e9179=_0x5ccb75;this[_0x2e9179(0x29e)][_0x2e9179(0x22c)][_0x2e9179(0x264)](_0x1785af)[_0x2e9179(0x226)](),this[_0x2e9179(0x23a)][_0x2e9179(0x298)](_0x2e9179(0x2b1)),this[_0x2e9179(0x23a)][_0x2e9179(0x1a2)](!0x0),await this[_0x2e9179(0x18e)]();try{const _0x15c0f1=this[_0x2e9179(0x29e)][_0x2e9179(0x22c)][_0x2e9179(0x264)](_0x37e958);this[_0x2e9179(0x295)]('\x20'),_0x15c0f1[_0x2e9179(0x1b8)][_0x2e9179(0x28d)](_0x2e9179(0x2cd)),await this[_0x2e9179(0x262)](_0x209707);const {sessionId:_0xca56ac}=this[_0x2e9179(0x1bb)][_0x2e9179(0x2b6)]();await this[_0x2e9179(0x1d6)][_0x2e9179(0x2c6)](_0x209707,_0xca56ac),this[_0x2e9179(0x1d6)][_0x2e9179(0x257)]()&&this[_0x2e9179(0x1d6)][_0x2e9179(0x1a6)](_0x1acc5f(this[_0x2e9179(0x29e)][_0x2e9179(0x202)],_0x2e9179(0x2bb)));}catch(_0x4c132e){console[_0x2e9179(0x1c3)](_0x2e9179(0x18f),_0x4c132e);}finally{this[_0x2e9179(0x23a)][_0x2e9179(0x298)](_0x2e9179(0x1a4)),this[_0x2e9179(0x23a)][_0x2e9179(0x1a2)](!0x1);}}[_0x5ccb75(0x2b5)](_0x2301ea){const _0x4cb525=_0x5ccb75;this[_0x4cb525(0x1d6)]['id']===_0x2301ea&&this[_0x4cb525(0x262)]();}async[_0x5ccb75(0x261)](){const _0x2da06f=_0x5ccb75,_0x5055a4=this[_0x2da06f(0x1bb)][_0x2da06f(0x263)]();this[_0x2da06f(0x1d6)]?.[_0x2da06f(0x1e7)](_0x5055a4),this[_0x2da06f(0x1d6)]?.[_0x2da06f(0x1a6)](_0x1acc5f(this[_0x2da06f(0x29e)][_0x2da06f(0x202)],_0x2da06f(0x2bb)));}[_0x5ccb75(0x25f)](){const _0x4710be=_0x5ccb75;this[_0x4710be(0x1d6)]?.[_0x4710be(0x19e)]();}[_0x5ccb75(0x247)](){const _0x130e54=_0x5ccb75;this[_0x130e54(0x23a)][_0x130e54(0x247)]();}async[_0x5ccb75(0x209)](){const _0x425266=_0x5ccb75;await this[_0x425266(0x262)]();}async[_0x5ccb75(0x1ac)]({message:_0x3aef4d,quickActionData:_0x21e61a}){const _0x4a3d2b=_0x5ccb75;await this[_0x4a3d2b(0x225)]({'userMessage':_0x3aef4d,'quickActionData':_0x21e61a});}[_0x5ccb75(0x24c)](){const _0x11e5f4=_0x5ccb75,_0x1cffad=this[_0x11e5f4(0x29e)][_0x11e5f4(0x1e6)][_0x11e5f4(0x264)](_0x11e5f4(0x1b3));if(!_0x1cffad)throw new _0x175785(_0x11e5f4(0x285),this);return _0x1cffad;}async[_0x5ccb75(0x262)](_0x5f318f){const _0x258695=_0x5ccb75,_0xbc804a=this[_0x258695(0x29e)][_0x258695(0x22c)][_0x258695(0x264)](_0x1785af);let _0x4dfcc2;_0xbc804a[_0x258695(0x2db)]&&_0xbc804a[_0x258695(0x226)](),_0x4dfcc2=_0x5f318f||!this[_0x258695(0x1d6)]?this[_0x258695(0x29e)][_0x258695(0x1e6)][_0x258695(0x264)](_0x258695(0x270)):this[_0x258695(0x1d6)][_0x258695(0x2a4)]['id'],await this[_0x258695(0x18e)]();const _0x6a3c82=this[_0x258695(0x24c)](),_0x198b6a=_0x5f318f||_0x4780ab();this[_0x258695(0x1d6)]=new _0xafa66f({'connector':this[_0x258695(0x1f8)],'chatModels':this[_0x258695(0x2c7)],'defaultModelId':_0x4dfcc2,'conversationId':_0x198b6a,'group':_0x6a3c82,'getEditor':()=>_0xf681fe(this[_0x258695(0x29e)])}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1c5),(_0x3ca173,_0x320b5f)=>{const _0x277c99=_0x258695;_0x320b5f[_0x277c99(0x254)]=this[_0x277c99(0x1b5)](_0x320b5f[_0x277c99(0x254)],this[_0x277c99(0x29e)][_0x277c99(0x1e6)][_0x277c99(0x264)](_0x277c99(0x2b7))),this[_0x277c99(0x23a)][_0x277c99(0x26b)](_0x320b5f),this[_0x277c99(0x23a)][_0x277c99(0x2d9)](),this[_0x277c99(0x23a)][_0x277c99(0x214)](),this[_0x277c99(0x23a)][_0x277c99(0x2a7)](),_0x5f318f||(this[_0x277c99(0x23a)][_0x277c99(0x24f)](),this[_0x277c99(0x1d6)]?.[_0x277c99(0x1a6)](_0x1acc5f(this[_0x277c99(0x29e)][_0x277c99(0x202)],_0x277c99(0x2bb))));}),this[_0x258695(0x1d6)]['on'](_0x258695(0x19d),(_0x3acdaa,_0x58fb54)=>{const _0x20b9d4=_0x258695;this[_0x20b9d4(0x23a)][_0x20b9d4(0x1c4)](_0x58fb54[_0x20b9d4(0x1f5)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1ab),(_0x4370dc,_0x319089)=>{const _0x163d01=_0x258695;this[_0x163d01(0x23a)][_0x163d01(0x2ca)](_0x319089),this[_0x163d01(0x23a)][_0x163d01(0x1f2)](_0x319089);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x2c5),(_0x4d2095,_0x1724b6)=>{const _0x5ceecb=_0x258695;this[_0x5ceecb(0x23a)][_0x5ceecb(0x1db)](_0x1724b6);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x2d3),async()=>{const _0x503627=_0x258695;await this[_0x503627(0x23a)][_0x503627(0x20d)]();}),this[_0x258695(0x1d6)]['on'](_0x258695(0x207),(_0x19e402,_0x505fbf)=>{const _0x4d0f4f=_0x258695;this[_0x4d0f4f(0x23a)][_0x4d0f4f(0x27d)](_0x505fbf['id']);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x2a6),(_0x503b84,_0x5830c8,_0x440618)=>{const _0x1a7158=_0x258695;this[_0x1a7158(0x295)](_0x5830c8,_0x440618);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x19f),(_0x21aa81,_0x42a0fb)=>{const _0x213e14=_0x258695;this[_0x213e14(0x23a)][_0x213e14(0x245)]({'isVisible':!0x0,'id':_0x42a0fb[_0x213e14(0x1bd)]}),_0x213e14(0x204)===_0x42a0fb[_0x213e14(0x2b3)]?this[_0x213e14(0x23a)][_0x213e14(0x1a5)](_0x42a0fb):this[_0x213e14(0x23a)][_0x213e14(0x24d)](_0x42a0fb);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x212),async(_0x5e26a7,_0x329f91,_0x3e1d6a)=>{const _0x19f2ae=_0x258695;await this[_0x19f2ae(0x229)]({'reply':_0x329f91,'changeGroups':_0x3e1d6a});}),this[_0x258695(0x1d6)]['on'](_0x258695(0x23c),(_0x595fc1,{reply:_0xedfd48,index:_0x47dad3,state:_0x172f1c})=>{const _0x30ecc0=_0x258695;this[_0x30ecc0(0x23a)][_0x30ecc0(0x224)]({'id':_0xedfd48['id'],'index':_0x47dad3,'state':_0x172f1c});}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1c2),(_0x45584b,_0x3a5102)=>{const _0x1ee27b=_0x258695;if(this[_0x1ee27b(0x23a)][_0x1ee27b(0x22f)](_0x3a5102[_0x1ee27b(0x26e)],_0x3a5102[_0x1ee27b(0x1d2)]),_0x1ee27b(0x1f9)===_0x3a5102[_0x1ee27b(0x26e)][_0x1ee27b(0x2b3)]){const _0x59392a=[..._0xf681fe(this[_0x1ee27b(0x29e)])[_0x1ee27b(0x250)][_0x1ee27b(0x1b9)][_0x1ee27b(0x1f9)][_0x1ee27b(0x2a3)]()];this[_0x1ee27b(0x1bb)][_0x1ee27b(0x25d)](_0x59392a,_0x1ee27b(0x2dc)+this[_0x1ee27b(0x1d6)]?.['id']);}}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1e2),(_0x3f3ba7,_0x3a1822)=>{const _0x285d11=_0x258695;this[_0x285d11(0x23a)][_0x285d11(0x2d2)](_0x3a1822[_0x285d11(0x1b6)]),_0x285d11(0x1b0)==_0x3a1822[_0x285d11(0x1b6)]&&this[_0x285d11(0x25f)](),_0x285d11(0x1f9)===_0x3a1822[_0x285d11(0x2b3)]&&this[_0x285d11(0x1bb)][_0x285d11(0x1b7)](_0x285d11(0x2dc)+this[_0x285d11(0x1d6)]?.['id']);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x23b),(_0x3dd467,_0x5be8e3)=>{const _0x299097=_0x258695;this[_0x299097(0x23a)][_0x299097(0x210)](_0x5be8e3[_0x299097(0x26e)][_0x299097(0x1b6)],_0x5be8e3[_0x299097(0x1d2)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1d1),(_0x18773a,_0xa8d908)=>{const _0xc104a6=_0x258695;this[_0xc104a6(0x23a)][_0xc104a6(0x1fe)](_0xa8d908[_0xc104a6(0x198)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x23f),(_0x10e756,_0x582025)=>{const _0x38a659=_0x258695;this[_0x38a659(0x23a)][_0x38a659(0x27c)](_0x582025[_0x38a659(0x1f3)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x293),(_0x4364ba,_0x3a1c1b)=>{const _0x322686=_0x258695;this[_0x322686(0x23a)][_0x322686(0x20e)](_0x3a1c1b[_0x322686(0x2ae)],_0x3a1c1b[_0x322686(0x211)],_0x3a1c1b[_0x322686(0x1d7)],_0x3a1c1b[_0x322686(0x252)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x194),(_0x59d62e,_0x44829d)=>{const _0x490aab=_0x258695;this[_0x490aab(0x23a)][_0x490aab(0x279)](_0x44829d[_0x490aab(0x2ae)],_0x44829d[_0x490aab(0x277)],_0x44829d[_0x490aab(0x251)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x2bc),(_0x820068,_0x3c437d)=>{const _0x53b565=_0x258695;this[_0x53b565(0x23a)][_0x53b565(0x22b)](_0x3c437d);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x230),(_0x1b52ae,_0x48d8ef)=>{const _0x11e977=_0x258695;this[_0x11e977(0x23a)][_0x11e977(0x273)](_0x48d8ef[_0x11e977(0x2a4)],_0x48d8ef[_0x11e977(0x26a)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1c3),(_0x27ddfc,{error:_0x4ac1b7,interactionId:_0x1fa6fb,fileName:_0x4fdadd,url:_0x5c9590,sourceId:_0x5bd340,sourceLabel:_0x460429})=>{const _0x4c120a=_0x258695,_0x2c0e62=_0x1fa6fb?_0x1fa6fb+':'+_0x4780ab():_0x4780ab();_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x2cc))?this[_0x4c120a(0x23a)][_0x4c120a(0x2c2)]({'staticMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x249)),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x267))||_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x1f7))?(this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x19a)),'id':_0x2c0e62}),this[_0x4c120a(0x197)](_0x4ac1b7)):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x1aa))?this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x2ab),_0x4fdadd),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x269))?this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x237),_0x5c9590),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x217))?this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x2ac)),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x296))?this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x22a)),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x1e0))?(_0x5bd340&&this[_0x4c120a(0x23a)][_0x4c120a(0x1c0)](_0x5bd340),this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x1df),_0x460429||_0x4c120a(0x211)),'id':_0x2c0e62}),this[_0x4c120a(0x197)](_0x4ac1b7)):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x260))?(this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x25c)),'id':_0x2c0e62}),this[_0x4c120a(0x197)](_0x4ac1b7)):(this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x253)),'id':_0x2c0e62}),this[_0x4c120a(0x197)](_0x4ac1b7));}),await this[_0x258695(0x1d6)][_0x258695(0x19b)](this[_0x258695(0x29e)][_0x258695(0x1e6)][_0x258695(0x264)](_0x258695(0x286))),_0x5f318f||await this[_0x258695(0x1d6)][_0x258695(0x2bd)]();}async[_0x5ccb75(0x225)]({userMessage:_0xf38a46,quickActionData:_0x42ca77}){const _0x25945d=_0x5ccb75;if(!this[_0x25945d(0x1d6)])throw new _0x175785(_0x25945d(0x26c));this[_0x25945d(0x1d6)][_0x25945d(0x265)]()&&await this[_0x25945d(0x1d6)][_0x25945d(0x2be)](this[_0x25945d(0x1bb)][_0x25945d(0x2b6)]()),this[_0x25945d(0x1d6)]['id']&&this[_0x25945d(0x1d6)][_0x25945d(0x19c)]&&await this[_0x25945d(0x1d6)][_0x25945d(0x1d5)]({'userMessage':_0xf38a46,'quickActionData':_0x42ca77}),this[_0x25945d(0x284)]();}[_0x5ccb75(0x284)](){const _0x34e54e=_0x5ccb75,_0x474cf0=_0xf681fe(this[_0x34e54e(0x29e)])[_0x34e54e(0x250)],_0x39b7e0=Array[_0x34e54e(0x2ba)](_0x474cf0[_0x34e54e(0x1dc)][_0x34e54e(0x208)](_0x55ea50));_0x474cf0[_0x34e54e(0x297)](_0xe9b667=>{const _0x3d99a2=_0x34e54e;_0x39b7e0[_0x3d99a2(0x2ce)](_0xc2045b=>_0xe9b667[_0x3d99a2(0x28e)](_0xc2045b));});}[_0x5ccb75(0x2d4)](){const _0x3fe9db=_0x5ccb75;console[_0x3fe9db(0x268)](_0x3fe9db(0x2d0));}[_0x5ccb75(0x1c7)](_0x446f0e){const _0x3820b3=_0x5ccb75;this[_0x3820b3(0x23a)][_0x3820b3(0x25e)](_0x446f0e);}[_0x5ccb75(0x197)](_0x4be29a){const _0x1db312=_0x5ccb75;_0x39aa5f(_0x4be29a[_0x1db312(0x1a7)]);}[_0x5ccb75(0x2d7)](_0x56f1b2){const _0xb743ef=_0x5ccb75;this[_0xb743ef(0x1d6)]?.[_0xb743ef(0x256)](_0x56f1b2);}[_0x5ccb75(0x234)](){const _0x3bccb2=_0x5ccb75;this[_0x3bccb2(0x1d6)]?.[_0x3bccb2(0x24a)]();}[_0x5ccb75(0x1f6)](){const _0x14b8a8=_0x5ccb75;this[_0x14b8a8(0x1d6)]?.[_0x14b8a8(0x240)]();}[_0x5ccb75(0x1cb)](_0x11a510){const _0x4d6272=_0x5ccb75,[_0x36301d,_0x2035ca]=_0x11a510[_0x4d6272(0x232)](':'),_0x46fbb2=this[_0x4d6272(0x1d6)][_0x4d6272(0x2c3)](_0x36301d),_0x441b6b=_0x46fbb2[_0x4d6272(0x25b)](_0x2035ca);return{'interaction':_0x46fbb2,'reply':_0x441b6b};}[_0x5ccb75(0x28c)](_0x3828c5,_0x4add8b=!0x1){const _0x3c9097=_0x5ccb75,_0x31ddfc=_0xf681fe(this[_0x3c9097(0x29e)]),_0x3c895f={'target':_0x31ddfc[_0x3c9097(0x20f)][_0x3c9097(0x1b8)][_0x3c9097(0x206)][_0x3c9097(0x223)](_0x31ddfc[_0x3c9097(0x20f)][_0x3c9097(0x2a5)][_0x3c9097(0x1cf)](_0x3828c5)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x4add8b};_0x4add8b&&(_0x3c895f[_0x3c9097(0x2b9)]=!0x0),_0x2b5e1d(_0x3c895f);}[_0x5ccb75(0x295)](_0x53f299,_0x3127e1=!0x1){const _0x4ffad2=_0x5ccb75;this[_0x4ffad2(0x23a)][_0x4ffad2(0x2a6)](_0x53f299||_0x1acc5f(this[_0x4ffad2(0x29e)][_0x4ffad2(0x202)],_0x4ffad2(0x2c1)),_0x3127e1);}[_0x5ccb75(0x1b5)](_0xd68041,_0x40cda8){const _0x1722df=_0x5ccb75;let _0x3d4702;if(_0x40cda8){_0x3d4702=[];const _0x36c5fa=_0x1722df(0x289)==typeof _0x40cda8?[_0x40cda8[_0x1722df(0x28f)]()]:_0x40cda8[_0x1722df(0x213)](_0x27d1cc=>_0x27d1cc[_0x1722df(0x28f)]());for(const _0x19149d of _0x36c5fa)for(const _0x1bc293 of _0xd68041)(_0x1bc293['id'][_0x1722df(0x28f)]()===_0x19149d||_0x1bc293[_0x1722df(0x27b)][_0x1722df(0x28f)]()===_0x19149d||_0x1bc293[_0x1722df(0x2c0)][_0x1722df(0x28f)]()===_0x19149d||_0x1bc293['id'][_0x1722df(0x28f)]()[_0x1722df(0x1e8)](_0x19149d))&&_0x3d4702[_0x1722df(0x1f1)](_0x1bc293);}else _0x3d4702=_0xd68041;return _0x3d4702;}async[_0x5ccb75(0x229)]({reply:_0x377afc,changeGroups:_0x2bc0a9,renderingStrategy:_0x187b10}){const _0x3f539d=_0x5ccb75,{id:_0x24c6ca,isDone:_0x55316d,type:_0x4b6424,parsedContent:_0x3f6f3f}=_0x377afc;if(_0x3f539d(0x21f)===_0x4b6424){const _0x3db8e7=_0xf681fe(this[_0x3f539d(0x29e)]),_0x59af5e=_0x8892ff({'editor':_0x3db8e7,'showDiff':this[_0x3f539d(0x23a)][_0x3f539d(0x1a0)],'changeGroups':_0x2bc0a9,'documentContextContent':_0x377afc[_0x3f539d(0x1b4)]});await this[_0x3f539d(0x23a)][_0x3f539d(0x231)]({'id':_0x24c6ca,'parts':_0x59af5e,'renderingStrategy':_0x187b10,'isDone':_0x55316d});}else _0x3f539d(0x204)===_0x4b6424&&await this[_0x3f539d(0x23a)][_0x3f539d(0x2a9)]({'id':_0x24c6ca,'parsedContent':_0x3f6f3f,'renderingStrategy':_0x187b10,'isDone':_0x55316d});_0x55316d&&_0x377afc[_0x3f539d(0x1c1)][_0x3f539d(0x276)]>0x0&&this[_0x3f539d(0x23a)][_0x3f539d(0x288)](_0x24c6ca,_0x377afc[_0x3f539d(0x1c1)]);}async[_0x5ccb75(0x18e)](){const _0x50f3a9=_0x5ccb75,_0x434873=this[_0x50f3a9(0x1d6)]?.[_0x50f3a9(0x2aa)];_0x434873&&(_0x434873[_0x50f3a9(0x1ae)](),this[_0x50f3a9(0x23a)][_0x50f3a9(0x2cf)](_0x434873));}async[_0x5ccb75(0x1ad)](){const _0x1a3625=_0x5ccb75,_0x18f7ff=this[_0x1a3625(0x1d6)]?.[_0x1a3625(0x2aa)];if(_0x18f7ff){for await(const _0x376823 of _0x18f7ff[_0x1a3625(0x203)])await this[_0x1a3625(0x229)]({'reply':_0x376823,'changeGroups':_0x376823[_0x1a3625(0x2b0)],'renderingStrategy':_0x1a3625(0x2b1)});}}}
23
+ const _0x273c8e=_0x2912;(function(_0x4cf5ef,_0x2d8ebb){const _0x364ebf=_0x2912,_0x4bde67=_0x4cf5ef();while(!![]){try{const _0x2eb667=parseInt(_0x364ebf(0xf9))/0x1+parseInt(_0x364ebf(0x194))/0x2+-parseInt(_0x364ebf(0x216))/0x3+parseInt(_0x364ebf(0x1eb))/0x4*(parseInt(_0x364ebf(0x219))/0x5)+parseInt(_0x364ebf(0x18c))/0x6*(-parseInt(_0x364ebf(0x185))/0x7)+parseInt(_0x364ebf(0x160))/0x8+parseInt(_0x364ebf(0x20f))/0x9*(-parseInt(_0x364ebf(0x1b3))/0xa);if(_0x2eb667===_0x2d8ebb)break;else _0x4bde67['push'](_0x4bde67['shift']());}catch(_0x25f2ad){_0x4bde67['push'](_0x4bde67['shift']());}}}(_0x5ee2,0x567eb));import{ContextPlugin as _0x28d851,Editor as _0x1a849b}from'ckeditor5/src/core.js';import{CKEditorError as _0x327deb,logError as _0x155630,scrollViewportToShowTarget as _0x2ac7e7,uid as _0x4d67a7}from'ckeditor5/src/utils.js';import{AIConnector as _0x4052a5}from'../aicore/aiconnector.js';import{AITabs as _0x3be4cf}from'../aitabs/aitabs.js';import{AIChatConversation as _0x4dd354}from'./model/aichatconversation.js';import{getTranslation as _0x491991}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x28ce8a}from'../aicore/aiediting.js';import{AIChatModels as _0x1d306d}from'./model/aichatmodels.js';function _0x5ee2(){const _0x241673=['_removeFromContext','Failed\x20to\x20load\x20conversation','history','unshift','addDocumentToContext','map','end','indexes','revert','type','470cyAceY','resizeTabs','content','_insertSuggestion','remove','focusPromptInput','provider','contextItemAdded','addFeedItemStaticMessage','abortPromptStream','insertSuggestion','main','collaboration.channelId','find','removeSelectionFromContext','documentContextContent','config','AIChatUI','data','ai-chat-conversation-init-failed','error','plugins','uid','updateContent','getOperations','resourceStateChanged','selectedModel','ai-chat-conversation-start-failed','_handleUIUserMessage','load','setIsUploadInProgress','mouseOverSuggestion','AI_CHAT_UNABLE_TO_START_CONVERSATION','toggleReasoning','modification-delta','_stopLastInteraction','interactionFinished','AI_CHAT_UNTITLED_CONVERSATION','_filterModels','locale','requires','getChildAtOffset','query','sourceResourcesLoaded','pluginName','addFeedItemAIReply','startsWith','createPositionAt','log','updateFeedItemAIReplySuggestionContent','replyChangeGroupStateUpdated','setFeedItemRenderingStrategy','isStarted','toggleWebSearch','contextItemLoadingEnded','get','96VulzeA','delete','getFirstRange','open','_integrateEditor','_scrollToSuggestionRange','getMarkersGroup','_aiEditing','filter','_logError','selection','getInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','state','updateCapabilities','addFeedItemUserMessage','static','setContextItemLoading','resources','AIConnector','ai-chat-missing-channel-id','_removeAISelectionMarkers','_balloonShowDiff','getInteractionAndReplyById','stop','sourceId','context','setIsMaximized','_previewedChangeGroup','contextItem','getAttribute','startInteraction','ai-conversation-','selectModel','getRoot','rootName','44883vBlYdP','dialogClosed','updateCurrentDocumentInContext','afterInit','contextSent','start','getDiff','1219617FzUvuZ','toggleLoadingSkeleton','resource','95860SURODz','replyCreated','pending','editors','applyOperation','source','updateFeedInteractionHeader','scrollFeedToSuggestion','options','getSelectionText','resetConversationTitle','handleRemovedConversation','close','setConversationContext','string','Disliked\x20response','AI_CHAT_CONTEXT_INVALID_DATA','Showing\x20conversation\x20history...','_updateReplyContent','_openBalloonFor','addResourceToContext','isInContext','_handleStartConversation','ai-chat-url-upload-failed','contextItems','push','stopListening','_aiChatUi','isOpen','markers','isDocumentOperation','interactionCreated','_aiConnector','has','ai-chat-controller-no-active-conversation','setSelectedModel','like','AIEditing','view','streaming','getDocumentData','loadConversation','uiId','sourcePosition','uploadProgressChanged','isOfficialPlugin','resize','activateTab','createPositionFromPath','stopInteraction','$graveyard','176067XWsEoM','toggleSuggestionDisplayMode','root','ai.chat.models.defaultModelId','getRanges','viewRangeToDom','toViewRange','toLocaleLowerCase','howMany','setConversationTitle','mapper','change','isCurrentDocumentInContext','setAddContextOptions','_showConversationHistory','isCurrentDocumentInConversation','getChild','slice','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','accepted','handleUserInteraction','init','getChildren','set','indexOf','domConverter','closeSourceResourceBalloon','toString','addFileToContext','addSelectionToChatContext','changes','_applyOperationsAsSuggestions','createConversation','_startConversationSafely','model','rejected','_toggleReasoning','parse','addContextOptionsChanged','node','interactionDestroyed','activeConversation','_flushLastInteractionUI','AI_CHAT_RESOURCE_LOAD_FAILED','forEach','addFeedItemAISuggestion','cloneNode','addSelectionToContext','getTransformedByOperation','maxOffset','addFeedInteractionHeader','resourceId','isLoading','removeFromContext','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','ai-request-aborted','sources','applySuggestion','changeGroups','partIndex','_batchToChanges','split','replies','resetMessageInput','addUrlToContext','dislike','modelSelected','populateSourceResourceBalloon','addCurrentDocumentToContext','ai.chat.models.displayedModels','isPremiumPlugin','listenTo','addOperation','AI_BALLOON_HEADER_TITLE','removeMarker','message','updateFeedItemAIReplyContent','getPath','AIChatController','updateConversationTitle','data-id','full','editing','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_GENERIC_ERROR','ai-chat-source-resources-load-failed','availableModels','replyContentUpdated','current-document','_getDocumentRangeForReplyChanges','showDiff','ai-chat-context-invalid-data','document','TrackChangesEditing','new','showFakeVisualSelection','disableControls','showChangeInText','baseVersion','_setIsMaximized','loadSourceResources','ai-chat-controller-mouse-over','ai-chat-file-upload-failed','833360zELMRa','ai.chat.context','sendUserMessage','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','Liked\x20response','_toggleWebSearch','enableControls','startConversation','batch','replyId','commands','resizedTabs','chat','interactionId','AITabs','children','getGroupId','Undo','capabilitiesUpdated','setChangeGroupState','removeSelectionFromChatContext','version','createRange','setModel','showNext','addContextItem','clearPendingContextUI','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplySuggestionPartState','getDocumentContext','name','finishInteraction','updateResourceState','length','removeContextItem','from','sendMessage','2513xZfxkT','addFeedItemError','showPrevious','ai-chat-resource-load-failed','conversationInitialized','_createFromRanges','addFilesToContext','894LxqHQu','isUploadInProgress','interactionStarted','nextSibling','redo','ready','clearConversationContextUI','path','616674BVoyAF','_applySuggestion','ai-chat-context-unsupported-type','anchorId','lastInteraction','text-delta','mouseLeaveSuggestion','range','undo','rejectSuggestion','removed','contextItemRemoved','DocumentCompare','isDisabled','updateFeedItemAIReplySources','removeFeedInteraction','getReply','add','_aiChatModels','alignToTop','hideFakeVisualSelection'];_0x5ee2=function(){return _0x241673;};return _0x5ee2();}import{getEditorFromContext as _0x31f76c}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x2dba5c,DATA_ID_MODEL_ATTRIBUTE as _0x3e883f}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x3ec244}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x4f05cf,getMinimalSelection as _0x2beaca,getSuggestionPartsFromReply as _0x336ebe}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x339598,_DetachOperation as _0x1126f9}from'ckeditor5/src/engine.js';import{findOne as _0x1e4bbc,getAttribute as _0x55f24f,serialize as _0x270bc0,Document as _0x577017,findByAttribute as _0x6d3a9c}from'../aicore/utils/htmlparser.js';function _0x2912(_0x384a10,_0x5634f9){const _0x5ee29b=_0x5ee2();return _0x2912=function(_0x291204,_0x4493db){_0x291204=_0x291204-0xd8;let _0x4ff3d4=_0x5ee29b[_0x291204];return _0x4ff3d4;},_0x2912(_0x384a10,_0x5634f9);}import{IconAI as _0x2a9bc6}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x3aa59e}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x2da00a}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x28d851{[_0x273c8e(0x1f2)];[_0x273c8e(0xe6)];[_0x273c8e(0xe1)];[_0x273c8e(0x1a6)];[_0x273c8e(0x135)]=new Map();[_0x273c8e(0x207)]=null;[_0x273c8e(0x201)]=!0x1;static get[_0x273c8e(0x1db)](){return[_0x4052a5,_0x2da00a,_0x2dba5c];}static get[_0x273c8e(0x1df)](){const _0x4220bf=_0x273c8e;return _0x4220bf(0x147);}static get[_0x273c8e(0xf3)](){return!0x0;}static get[_0x273c8e(0x13f)](){return!0x0;}[_0x273c8e(0x10e)](){const _0x2a55bb=_0x273c8e;this[_0x2a55bb(0xe6)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x1fe)),this[_0x2a55bb(0xe1)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x1c4)),this[_0x2a55bb(0x1f2)]=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0xeb)),this[_0x2a55bb(0x1a6)]=new _0x1d306d({'connector':this[_0x2a55bb(0xe6)]});const _0xed5ed2=this[_0x2a55bb(0x205)][_0x2a55bb(0x1c8)][_0x2a55bb(0x1ea)](_0x2a55bb(0x16e));this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x167),()=>{const _0x506ac0=_0x2a55bb;this[_0x506ac0(0x11a)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x162),(_0x11f215,_0x3bad6f)=>{const _0x51938c=_0x2a55bb;this[_0x51938c(0x1cf)]({'userMessage':_0x3bad6f});}),this[_0x2a55bb(0x140)](_0xed5ed2,_0x2a55bb(0x16b),(_0x47a9c9,_0x8dba0b)=>{const _0x350c62=_0x2a55bb;this[_0x350c62(0x15c)](_0x8dba0b);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1b4),()=>{const _0x511439=_0x2a55bb;_0xed5ed2[_0x511439(0xf4)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1bc),async()=>{const _0x2ea798=_0x2a55bb;await this[_0x2ea798(0x1d6)](),await this[_0x2ea798(0x123)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1ad),()=>{const _0x4d6504=_0x2a55bb;this[_0x4d6504(0x122)]?.[_0x4d6504(0x13d)](_0x491991(this[_0x4d6504(0x205)][_0x4d6504(0x1da)],_0x4d6504(0x163)));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x115),(_0x3961fc,_0x187b59)=>{const _0x2552e6=_0x2a55bb;this[_0x2552e6(0x122)]?.[_0x2552e6(0x18b)](Array[_0x2552e6(0x183)](_0x187b59));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x139),(_0x2902ad,_0x45a5f9)=>{const _0x36a83f=_0x2a55bb;this[_0x36a83f(0x122)]?.[_0x36a83f(0x139)](_0x45a5f9);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xda),(_0x2dfb6e,_0x4c6033)=>{const _0x232118=_0x2a55bb;this[_0x232118(0x122)]?.[_0x232118(0xda)](_0x4c6033[_0x232118(0x21e)],_0x4c6033[_0x232118(0x218)]);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x182),(_0x113000,_0x3129d8)=>{const _0xc5bfd5=_0x2a55bb;this[_0xc5bfd5(0x1a9)](_0x3129d8);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x15d),(_0x29e338,_0x24d788)=>{const _0x26eecc=_0x2a55bb;this[_0x26eecc(0x122)]?.[_0x26eecc(0x15d)](_0x24d788[_0x26eecc(0x204)],_0x24d788[_0x26eecc(0x1dd)],_0x24d788[_0x26eecc(0x1c9)]);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1e8),()=>{const _0x516415=_0x2a55bb;this[_0x516415(0x165)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1d4),()=>{const _0x2bf808=_0x2a55bb;this[_0x2bf808(0x11d)]();}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x20c),(_0x58d76b,_0x32a577)=>{const _0x3d58c9=_0x2a55bb;this[_0x3d58c9(0x122)]?.[_0x3d58c9(0x177)](_0x32a577);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xea),(_0x14694a,{replyId:_0x493f0b})=>{const _0x1b3d32=_0x2a55bb;console[_0x1b3d32(0x1e3)](_0x1b3d32(0x164),_0x493f0b);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x13a),(_0x2072ea,{replyId:_0x38f140})=>{const _0x4ac1af=_0x2a55bb;console[_0x4ac1af(0x1e3)](_0x4ac1af(0x228),_0x38f140);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1bd),(_0x5b7016,_0x216a22)=>{const _0x2d89e4=_0x2a55bb;this[_0x2d89e4(0x205)][_0x2d89e4(0x1c8)][_0x2d89e4(0x1ea)](_0x2da00a)[_0x2d89e4(0x225)](),this[_0x2d89e4(0x1b6)](_0x216a22);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x15a),(_0x47765e,{replyId:_0x5da275,partIndex:_0xbff341})=>{const _0x553768=_0x2a55bb;this[_0x553768(0x201)]=this[_0x553768(0xe1)][_0x553768(0x153)],this[_0x553768(0xd9)](_0x5da275,_0xbff341);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x1d2),(_0x4636ad,{replyId:_0x10f8b0,partIndex:_0x3c35b1})=>{const _0x528d0f=_0x2a55bb,_0x3e1948=this[_0x528d0f(0x152)](_0x10f8b0,_0x3c35b1);_0x3e1948&&_0x528d0f(0xf8)!=_0x3e1948[_0x528d0f(0x19b)][_0x528d0f(0xfb)][_0x528d0f(0x20e)]&&this[_0x528d0f(0x1f2)][_0x528d0f(0x158)]([_0x3e1948[_0x528d0f(0x19b)]],_0x528d0f(0x15e));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x19a),()=>{const _0x39a975=_0x2a55bb;this[_0x39a975(0x1f2)][_0x39a975(0x1a8)](_0x39a975(0x15e));}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x132),(_0x56a246,_0x3777ab)=>{const _0x535c25=_0x2a55bb;this[_0x535c25(0x205)][_0x535c25(0x1c8)][_0x535c25(0x1ea)](_0x2da00a)[_0x535c25(0x225)](),this[_0x535c25(0x195)](_0x3777ab);}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0xfa),async(_0x150b25,_0x43904f)=>{const _0x387c5b=_0x2a55bb,{reply:_0x20dff8}=this[_0x387c5b(0x202)](_0x43904f[_0x387c5b(0x169)]),_0x3eeb5d=_0x31f76c(this[_0x387c5b(0x205)]),_0x21222b=_0x336ebe({'editor':_0x3eeb5d,'changeGroups':_0x20dff8[_0x387c5b(0x133)],'documentContextContent':_0x20dff8[_0x387c5b(0x1c2)],'showDiff':_0x43904f[_0x387c5b(0x153)]});await this[_0x387c5b(0xe1)][_0x387c5b(0x1e4)]({'id':_0x20dff8['id'],'parts':_0x21222b,'renderingStrategy':_0x387c5b(0x1fb)});}),this[_0x2a55bb(0x140)](this[_0x2a55bb(0xe1)],_0x2a55bb(0x19d),(_0x5d453b,{replyId:_0xc532da,partIndex:_0x39eafe})=>{const _0x138c0e=_0x2a55bb;this[_0x138c0e(0x207)]?.[_0x138c0e(0x169)]==_0xc532da&&this[_0x138c0e(0x207)]?.[_0x138c0e(0x134)]==_0x39eafe&&this[_0x138c0e(0x205)][_0x138c0e(0x1c8)][_0x138c0e(0x1ea)](_0x2da00a)[_0x138c0e(0x225)]();const {reply:_0x5a67c7}=this[_0x138c0e(0x202)](_0xc532da);_0x5a67c7[_0x138c0e(0x173)](_0x39eafe,_0x138c0e(0x11c)),this[_0x138c0e(0x1f2)][_0x138c0e(0x1a8)](_0x138c0e(0x15e));});}async[_0x273c8e(0x212)](){const _0x4e5403=_0x273c8e;this[_0x4e5403(0x205)]instanceof _0x1a849b?this[_0x4e5403(0x1ef)](this[_0x4e5403(0x205)]):this[_0x4e5403(0x140)](this[_0x4e5403(0x205)][_0x4e5403(0x21c)],_0x4e5403(0x1a5),(_0x3e3fb6,_0x4daf4b)=>{const _0x31ba3b=_0x4e5403;_0x4daf4b['on'](_0x31ba3b(0x191),()=>{const _0x3b6edc=_0x31ba3b;this[_0x3b6edc(0x1ef)](_0x4daf4b);});}),await this[_0x4e5403(0x11a)]();}[_0x273c8e(0x1b6)](_0x18e903){const _0x2ab21c=_0x273c8e,_0x3e9024=_0x31f76c(this[_0x2ab21c(0x205)]);if(!_0x3e9024[_0x2ab21c(0x1c8)][_0x2ab21c(0xe7)](_0x2ab21c(0x156)))return;const _0x860b8a=this[_0x2ab21c(0x205)][_0x2ab21c(0x1c8)][_0x2ab21c(0x1ea)](_0x2ab21c(0x1a0)),{reply:_0x54047e,interaction:_0x216817}=this[_0x2ab21c(0x202)](_0x18e903[_0x2ab21c(0x169)]),_0x2dfa3e=this[_0x2ab21c(0x152)](_0x18e903[_0x2ab21c(0x169)],_0x18e903[_0x2ab21c(0x134)]),_0x43cc50=void 0x0!==_0x18e903[_0x2ab21c(0x134)]?[_0x54047e[_0x2ab21c(0x133)][_0x18e903[_0x2ab21c(0x134)]]]:_0x54047e[_0x2ab21c(0x133)][_0x2ab21c(0x1f3)](_0x17292d=>_0x2ab21c(0x21b)==_0x17292d[_0x2ab21c(0x1f8)]),_0x26dc61=_0x43cc50[_0x2ab21c(0x1ae)](_0x5f1da3=>_0x54047e[_0x2ab21c(0x133)][_0x2ab21c(0x111)](_0x5f1da3));_0x26dc61[_0x2ab21c(0x125)](_0x4927e8=>_0x54047e[_0x2ab21c(0x173)](_0x4927e8,_0x2ab21c(0x10c)));const _0x15751e=_0x3ec244({'editor':_0x3e9024,'reply':_0x54047e,'interaction':_0x216817,'groups':_0x43cc50,'transform':!0x0,'documentCompare':_0x860b8a,'documentCompareOptions':{'anchor':_0x2ab21c(0x1be),'markDeletions':!0x0}});let _0x411eb1;_0x2dfa3e&&this[_0x2ab21c(0x1f0)](_0x2dfa3e[_0x2ab21c(0x19b)]),_0x3e9024[_0x2ab21c(0x11b)][_0x2ab21c(0x104)](_0x3bc528=>{const _0x4d803e=_0x2ab21c;_0x411eb1=_0x3bc528[_0x4d803e(0x168)],_0x3e9024[_0x4d803e(0x1c8)][_0x4d803e(0x1ea)](_0x4d803e(0x156))[_0x4d803e(0x118)](_0x15751e),this[_0x4d803e(0x1f2)][_0x4d803e(0x1a8)](_0x4d803e(0x15e));}),this[_0x2ab21c(0x135)][_0x2ab21c(0x110)](_0x411eb1,{'interactionId':_0x216817['id'],'replyId':_0x54047e['id'],'indexes':_0x26dc61[_0x2ab21c(0x10a)]()});}[_0x273c8e(0x195)](_0x1c35fb){const _0x1b11e7=_0x273c8e,_0x2a4b4e=_0x31f76c(this[_0x1b11e7(0x205)]),_0xa2dc40=this[_0x1b11e7(0x205)][_0x1b11e7(0x1c8)][_0x1b11e7(0x1ea)](_0x2dba5c),{reply:_0x5ca3cb,interaction:_0x3a0176}=this[_0x1b11e7(0x202)](_0x1c35fb[_0x1b11e7(0x169)]),_0x43ae21=this[_0x1b11e7(0x152)](_0x1c35fb[_0x1b11e7(0x169)],_0x1c35fb[_0x1b11e7(0x134)]),_0x2194ec=void 0x0!==_0x1c35fb[_0x1b11e7(0x134)]?[_0x5ca3cb[_0x1b11e7(0x133)][_0x1c35fb[_0x1b11e7(0x134)]]]:_0x5ca3cb[_0x1b11e7(0x133)][_0x1b11e7(0x1f3)](_0x32375d=>_0x1b11e7(0x21b)==_0x32375d[_0x1b11e7(0x1f8)]),_0x40e59e=_0x2194ec[_0x1b11e7(0x1ae)](_0x1e540d=>_0x5ca3cb[_0x1b11e7(0x133)][_0x1b11e7(0x111)](_0x1e540d));_0x40e59e[_0x1b11e7(0x125)](_0x9a4a6e=>_0x5ca3cb[_0x1b11e7(0x173)](_0x9a4a6e,_0x1b11e7(0x10c)));const _0x3a7e58=_0x3ec244({'editor':_0x2a4b4e,'reply':_0x5ca3cb,'interaction':_0x3a0176,'groups':_0x2194ec,'transform':!0x0,'documentCompare':_0xa2dc40,'documentCompareOptions':{'anchor':_0x1b11e7(0x1be),'markDeletions':!0x1}});let _0x46818d;_0x43ae21&&this[_0x1b11e7(0x1f0)](_0x43ae21[_0x1b11e7(0x19b)]),_0x2a4b4e[_0x1b11e7(0x11b)][_0x1b11e7(0x104)](_0x2534a4=>{const _0x2a0f80=_0x1b11e7;_0x46818d=_0x2534a4[_0x2a0f80(0x168)];for(const _0x352bd9 of _0x3a7e58)_0x352bd9[_0x2a0f80(0x15b)]=_0x2a4b4e[_0x2a0f80(0x11b)][_0x2a0f80(0x155)][_0x2a0f80(0x175)],_0x2534a4[_0x2a0f80(0x168)][_0x2a0f80(0x141)](_0x352bd9),_0x2a4b4e[_0x2a0f80(0x11b)][_0x2a0f80(0x21d)](_0x352bd9);}),this[_0x1b11e7(0x135)][_0x1b11e7(0x110)](_0x46818d,{'interactionId':_0x3a0176['id'],'replyId':_0x5ca3cb['id'],'indexes':_0x40e59e[_0x1b11e7(0x10a)]()});}[_0x273c8e(0xd9)](_0x2616c4,_0x4b8c92){const _0x254181=_0x273c8e,_0x6114aa=_0x31f76c(this[_0x254181(0x205)]),_0x336ede=this[_0x254181(0x152)](_0x2616c4,_0x4b8c92),_0xaa6740=this[_0x254181(0x205)][_0x254181(0x1c8)][_0x254181(0x1ea)](_0x2da00a);if(!_0x336ede)return void _0xaa6740[_0x254181(0x225)]();const {range:_0x4c713a,currentIndex:_0x2ed491,previousIndex:_0x54e42c,nextIndex:_0x363179}=_0x336ede;if(this[_0x254181(0x207)]?.[_0x254181(0x169)]==_0x2616c4&&this[_0x254181(0x207)]?.[_0x254181(0x134)]==_0x2ed491)return;this[_0x254181(0x207)]={'replyId':_0x2616c4,'partIndex':_0x2ed491};const _0x124381=new _0x3aa59e(_0x6114aa[_0x254181(0x1da)],{'showDiff':this[_0x254181(0x201)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x254181(0x14a)},'hideHeader':!0x0}),{reply:_0x2a580a}=this[_0x254181(0x202)](_0x2616c4),_0x51dbef=_0x336ebe({'editor':_0x6114aa,'changeGroups':[_0x2a580a[_0x254181(0x133)][_0x2ed491]],'documentContextContent':_0x2a580a[_0x254181(0x1c2)],'showDiff':this[_0x254181(0x201)]});_0x124381[_0x254181(0x1ca)]({'parts':_0x51dbef,'renderingStrategy':_0x254181(0x1fb)});const _0x1d6b3b=_0x2ed491!==_0x54e42c;this[_0x254181(0x1f0)](_0x4c713a,!0x0),_0xaa6740[_0x254181(0x1ee)]({'index':_0x2ed491,'title':_0x491991(this[_0x254181(0x205)][_0x254181(0x1da)],_0x254181(0x142),(_0x2ed491+0x1)[_0x254181(0x114)]()),'icon':_0x2a9bc6,'mainView':_0x124381,'showRotator':_0x1d6b3b,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x4c713a]}),this[_0x254181(0xe1)][_0x254181(0x220)](_0x2616c4,_0x2ed491),this[_0x254181(0x140)](_0x124381,_0x254181(0xfa),(_0x5d0c93,{showDiff:_0x1c168b})=>{const _0x42d14c=_0x254181;this[_0x42d14c(0x201)]=_0x1c168b;const {reply:_0xb18125}=this[_0x42d14c(0x202)](_0x2616c4),_0xb6af3b=_0x336ebe({'editor':_0x6114aa,'changeGroups':[_0xb18125[_0x42d14c(0x133)][_0x2ed491]],'documentContextContent':_0xb18125[_0x42d14c(0x1c2)],'showDiff':_0x1c168b});_0x124381[_0x42d14c(0x1ca)]({'parts':_0xb6af3b,'renderingStrategy':_0x42d14c(0x1fb)});}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x132),()=>{const _0x1aa108=_0x254181;this[_0x1aa108(0x195)]({'replyId':_0x2616c4,'partIndex':_0x2ed491}),_0x1d6b3b?this[_0x1aa108(0xd9)](_0x2616c4,_0x363179):_0xaa6740[_0x1aa108(0x225)]();}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x1bd),()=>{const _0x3522fd=_0x254181;this[_0x3522fd(0x1b6)]({'replyId':_0x2616c4,'partIndex':_0x2ed491}),_0x1d6b3b?this[_0x3522fd(0xd9)](_0x2616c4,_0x363179):_0xaa6740[_0x3522fd(0x225)]();}),_0x1d6b3b&&(this[_0x254181(0x140)](_0xaa6740,_0x254181(0x178),()=>{const _0x2c0c84=_0x254181;this[_0x2c0c84(0xd9)](_0x2616c4,_0x363179);}),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x187),()=>{const _0x460da4=_0x254181;this[_0x460da4(0xd9)](_0x2616c4,_0x54e42c);})),this[_0x254181(0x140)](_0xaa6740,_0x254181(0x210),()=>{const _0x221a81=_0x254181;this[_0x221a81(0xe0)](_0xaa6740),this[_0x221a81(0xe0)](_0x124381),this[_0x221a81(0x207)]=null;});}[_0x273c8e(0x152)](_0x2b8be0,_0x5eeb03){const _0x373a1b=_0x273c8e,_0x333b5b=_0x31f76c(this[_0x373a1b(0x205)]),{reply:_0x4a3587,interaction:_0x32c0a4}=this[_0x373a1b(0x202)](_0x2b8be0),_0x5e97a6=_0x4a3587[_0x373a1b(0x133)][_0x373a1b(0x1f3)](_0x216753=>_0x373a1b(0x21b)==_0x216753[_0x373a1b(0x1f8)]),_0x3bca4e=_0x5e97a6[_0x373a1b(0x1ae)](_0x15721b=>_0x4a3587[_0x373a1b(0x133)][_0x373a1b(0x111)](_0x15721b));void 0x0===_0x5eeb03&&(_0x5eeb03=_0x3bca4e[0x0]);const _0x10d853=_0x3bca4e[_0x373a1b(0x111)](_0x5eeb03);if(-0x1==_0x10d853)return null;const _0x238c42=0x0==_0x10d853?_0x3bca4e[_0x3bca4e[_0x373a1b(0x181)]-0x1]:_0x3bca4e[_0x10d853-0x1],_0x31189c=_0x10d853==_0x3bca4e[_0x373a1b(0x181)]-0x1?_0x3bca4e[0x0]:_0x3bca4e[_0x10d853+0x1],_0x356468=_0x5e97a6[_0x10d853],_0x1e7f33=new _0x577017([]),_0x4aeff3=new _0x577017([]);for(const _0x2ecab0 of _0x356468[_0x373a1b(0x117)])if(_0x373a1b(0x19e)!=_0x2ecab0[_0x373a1b(0x1b2)]&&_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x2ecab0[_0x373a1b(0x120)][_0x373a1b(0x127)](!0x0)),_0x373a1b(0x157)!=_0x2ecab0[_0x373a1b(0x1b2)]){const _0x493535=_0x1e4bbc(_0x4eb73a=>_0x55f24f(_0x4eb73a,_0x373a1b(0x149))==_0x2ecab0['id'],_0x4a3587[_0x373a1b(0x1c2)],!0x0);_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x493535[_0x373a1b(0x127)](!0x0));}if(0x0==_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0x181)]){if(_0x356468[_0x373a1b(0x117)][0x0][_0x373a1b(0x197)]){const _0x15c23c=_0x6d3a9c(_0x373a1b(0x149),_0x356468[_0x373a1b(0x117)][0x0][_0x373a1b(0x197)],_0x4a3587[_0x373a1b(0x1c2)]);_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0x1ac)](_0x15c23c[_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0x1ac)](_0x15c23c[_0x373a1b(0x127)](!0x0)),_0x15c23c[_0x373a1b(0x18f)]&&(_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x15c23c[_0x373a1b(0x18f)][_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x15c23c[_0x373a1b(0x18f)][_0x373a1b(0x127)](!0x0)));}else{const _0x41778c=_0x4a3587[_0x373a1b(0x1c2)][_0x373a1b(0x16f)][0x0];if(!_0x41778c)return null;_0x1e7f33[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x41778c[_0x373a1b(0x127)](!0x0)),_0x4aeff3[_0x373a1b(0x16f)][_0x373a1b(0xdf)](_0x41778c[_0x373a1b(0x127)](!0x0));}}const _0x2d324a=_0x32c0a4[_0x373a1b(0x17d)](),_0x55789a=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x2d324a[_0x373a1b(0x1b5)]),_0x158b2f=_0x270bc0(_0x1e7f33),_0x29bbd5=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x158b2f),_0x249935=_0x333b5b[_0x373a1b(0x1c5)][_0x373a1b(0x11e)](_0x158b2f),_0x4b6516=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x1e2)](_0x29bbd5,0x0),_0x408b8a=_0x270bc0(_0x4aeff3),_0x1a9c6d={'anchor':_0x4b6516,'markDeletions':!0x1},_0x597f4d=_0x333b5b[_0x373a1b(0x1c8)][_0x373a1b(0x1ea)](_0x2dba5c)[_0x373a1b(0x215)](_0x158b2f,_0x408b8a,_0x1a9c6d)[_0x373a1b(0x1cb)]();if(!_0x597f4d[_0x373a1b(0x181)])return null;_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x104)](_0x35ff6d=>{const _0x1383d9=_0x373a1b;for(const _0x4de4a7 of _0x597f4d)if(_0x1383d9(0x1b7)==_0x4de4a7[_0x1383d9(0x1b2)]){const _0x7dd134=_0x4de4a7[_0x1383d9(0xf1)],_0x3f088b=_0x4de4a7[_0x1383d9(0x101)],_0x55c717=new _0x1126f9(_0x7dd134,_0x3f088b);_0x35ff6d[_0x1383d9(0x168)][_0x1383d9(0x141)](_0x55c717),_0x333b5b[_0x1383d9(0x11b)][_0x1383d9(0x21d)](_0x55c717);}else _0x4de4a7[_0x1383d9(0x15b)]=null,_0x4de4a7[_0x1383d9(0xe4)]=!0x1,_0x35ff6d[_0x1383d9(0x168)][_0x1383d9(0x141)](_0x4de4a7),_0x333b5b[_0x1383d9(0x11b)][_0x1383d9(0x21d)](_0x4de4a7);});const _0x5e14f0=_0x2beaca(_0x333b5b,_0x597f4d,_0x29bbd5);_0x4f05cf(_0x333b5b[_0x373a1b(0x11b)],_0x5e14f0);const _0x5a2af8=_0x5e14f0[_0x373a1b(0x1ed)]()[_0x373a1b(0x214)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x3dfb0d=_0x5e14f0[_0x373a1b(0x1ed)]()[_0x373a1b(0x1af)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x5363fc=[];let _0x5aef92=_0x29bbd5,_0x33a333=_0x249935;for(let _0x232f72=0x0;_0x232f72<_0x3dfb0d[_0x373a1b(0x181)];_0x232f72++){const _0x43c019=_0x5aef92[_0x373a1b(0x12a)]-_0x3dfb0d[_0x232f72];_0x5363fc[_0x232f72]=_0x33a333[_0x373a1b(0x12a)]-_0x43c019,_0x5aef92=_0x5aef92[_0x373a1b(0x1dc)](_0x3dfb0d[_0x232f72]),_0x33a333=_0x33a333[_0x373a1b(0x1dc)](_0x5363fc[_0x232f72]);}const _0x1be9ba=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x176)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x249935,_0x5a2af8),_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x249935,_0x5363fc)),_0x48b042=_0x249935[_0x373a1b(0x109)](0x0)[_0x373a1b(0x209)](_0x3e883f),_0x22bd76=Array[_0x373a1b(0x183)](_0x55789a[_0x373a1b(0x10f)]())[_0x373a1b(0x1c0)](_0x2c38c7=>_0x2c38c7[_0x373a1b(0x209)](_0x3e883f)==_0x48b042)[_0x373a1b(0x146)](),_0x4b1593=_0x1be9ba[_0x373a1b(0x214)][_0x373a1b(0x193)][_0x373a1b(0x10a)](),_0x4bc961=_0x1be9ba[_0x373a1b(0x1af)][_0x373a1b(0x193)][_0x373a1b(0x10a)]();_0x4b1593[0x0]=_0x22bd76[0x0]+_0x4b1593[0x0],_0x4bc961[0x0]=_0x22bd76[0x0]+_0x4bc961[0x0];let _0x4f8483=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x176)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x20d)](),_0x4b1593),_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0xf6)](_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x20d)](),_0x4bc961));const _0x56aeaa=_0x333b5b[_0x373a1b(0x11b)][_0x373a1b(0x155)][_0x373a1b(0x1ab)][_0x373a1b(0x1cb)](_0x2d324a[_0x373a1b(0x175)]);for(const _0x33bc97 of _0x56aeaa)_0x4f8483=_0x339598[_0x373a1b(0x18a)](_0x4f8483[_0x373a1b(0x129)](_0x33bc97));return{'range':_0x4f8483,'previousIndex':_0x238c42,'nextIndex':_0x31189c,'currentIndex':_0x5eeb03};}[_0x273c8e(0x1ef)](_0x41569b){const _0x446fe3=_0x273c8e;if(!_0x41569b[_0x446fe3(0x1c8)][_0x446fe3(0xe7)](_0x446fe3(0x171)))return;const _0x3fbf3e=_0x41569b[_0x446fe3(0x16a)][_0x446fe3(0x1ea)](_0x446fe3(0x19c)),_0x3648e6=_0x41569b[_0x446fe3(0x16a)][_0x446fe3(0x1ea)](_0x446fe3(0x190));this[_0x446fe3(0x140)](_0x3fbf3e,_0x446fe3(0x1b1),(_0x581b8d,_0x48a6fb,_0x456b3e)=>{const _0x9fa3a5=_0x446fe3,_0x31b27d=this[_0x9fa3a5(0x135)][_0x9fa3a5(0x1ea)](_0x48a6fb);if(!_0x31b27d)return;const _0xd174f0=this[_0x9fa3a5(0x122)][_0x9fa3a5(0x1f6)](_0x31b27d[_0x9fa3a5(0x16d)])[_0x9fa3a5(0x1a4)](_0x31b27d[_0x9fa3a5(0x169)]);_0x31b27d[_0x9fa3a5(0x1b0)][_0x9fa3a5(0x125)](_0x22607e=>_0xd174f0[_0x9fa3a5(0x173)](_0x22607e,_0x9fa3a5(0x21b))),this[_0x9fa3a5(0x135)][_0x9fa3a5(0x1ec)](_0x48a6fb),this[_0x9fa3a5(0x135)][_0x9fa3a5(0x110)](_0x456b3e,_0x31b27d);}),this[_0x446fe3(0x140)](_0x3648e6,_0x446fe3(0x1b1),(_0x22fa09,_0x16ca92,_0x207f2f)=>{const _0x2bb2bd=_0x446fe3,_0x594f3b=this[_0x2bb2bd(0x135)][_0x2bb2bd(0x1ea)](_0x16ca92);if(!_0x594f3b)return;const _0x20352e=this[_0x2bb2bd(0x122)][_0x2bb2bd(0x1f6)](_0x594f3b[_0x2bb2bd(0x16d)])[_0x2bb2bd(0x1a4)](_0x594f3b[_0x2bb2bd(0x169)]);_0x594f3b[_0x2bb2bd(0x1b0)][_0x2bb2bd(0x125)](_0x151493=>_0x20352e[_0x2bb2bd(0x173)](_0x151493,_0x2bb2bd(0x10c))),this[_0x2bb2bd(0x135)][_0x2bb2bd(0x1ec)](_0x16ca92),this[_0x2bb2bd(0x135)][_0x2bb2bd(0x110)](_0x207f2f,_0x594f3b);});}async[_0x273c8e(0xef)](_0x35bd76){const _0x38479e=_0x273c8e;this[_0x38479e(0x205)][_0x38479e(0x1c8)][_0x38479e(0x1ea)](_0x2da00a)[_0x38479e(0x225)](),this[_0x38479e(0xe1)][_0x38479e(0x1e6)](_0x38479e(0x1fb)),this[_0x38479e(0xe1)][_0x38479e(0x217)](!0x0),await this[_0x38479e(0x1d6)]();try{const _0x2f15d1=this[_0x38479e(0x205)][_0x38479e(0x1c8)][_0x38479e(0x1ea)](_0x3be4cf);this[_0x38479e(0x148)]('\x20'),_0x2f15d1[_0x38479e(0xec)][_0x38479e(0xf5)](_0x38479e(0x16c)),await this[_0x38479e(0x11a)](_0x35bd76);const {sessionId:_0x4b0116}=this[_0x38479e(0x1f2)][_0x38479e(0xee)]();await this[_0x38479e(0x122)][_0x38479e(0x1d0)](_0x35bd76,_0x4b0116),this[_0x38479e(0x122)][_0x38479e(0x108)]()&&this[_0x38479e(0x122)][_0x38479e(0x13d)](_0x491991(this[_0x38479e(0x205)][_0x38479e(0x1da)],_0x38479e(0x163)));}catch(_0x40eb33){console[_0x38479e(0x1c7)](_0x38479e(0x1aa),_0x40eb33);}finally{this[_0x38479e(0xe1)][_0x38479e(0x1e6)](_0x38479e(0xed)),this[_0x38479e(0xe1)][_0x38479e(0x217)](!0x1);}}[_0x273c8e(0x224)](_0x10ed0c){const _0xba3a93=_0x273c8e;this[_0xba3a93(0x122)]['id']===_0x10ed0c&&this[_0xba3a93(0x11a)]();}async[_0x273c8e(0x116)](){const _0x7a646=_0x273c8e,_0x3ce82d=this[_0x7a646(0x1f2)][_0x7a646(0x222)]();this[_0x7a646(0x122)]?.[_0x7a646(0x128)](_0x3ce82d),this[_0x7a646(0x122)]?.[_0x7a646(0x13d)](_0x491991(this[_0x7a646(0x205)][_0x7a646(0x1da)],_0x7a646(0x163)));}[_0x273c8e(0x174)](){const _0x35281e=_0x273c8e;this[_0x35281e(0x122)]?.[_0x35281e(0x1c1)]();}[_0x273c8e(0x1b8)](){const _0x521198=_0x273c8e;this[_0x521198(0xe1)][_0x521198(0x1b8)]();}async[_0x273c8e(0x167)](){const _0x2e9154=_0x273c8e;await this[_0x2e9154(0x11a)]();}async[_0x273c8e(0x184)]({message:_0x10d297,quickActionData:_0x450245}){const _0x1d2a07=_0x273c8e;await this[_0x1d2a07(0x1cf)]({'userMessage':_0x10d297,'quickActionData':_0x450245});}[_0x273c8e(0x170)](){const _0x25de17=_0x273c8e,_0x208850=this[_0x25de17(0x205)][_0x25de17(0x1c3)][_0x25de17(0x1ea)](_0x25de17(0x1bf));if(!_0x208850)throw new _0x327deb(_0x25de17(0x1ff),this);return _0x208850;}async[_0x273c8e(0x11a)](_0x29be41){const _0xc964fa=_0x273c8e;try{this[_0xc964fa(0xe1)][_0xc964fa(0x166)](),await this[_0xc964fa(0xdc)](_0x29be41);}catch(_0x163796){_0x155630(_0xc964fa(0x1ce),_0x163796),this[_0xc964fa(0x122)]=void 0x0,this[_0xc964fa(0xe1)][_0xc964fa(0x159)]();}}async[_0x273c8e(0xdc)](_0x23a54f){const _0x31fb88=_0x273c8e,_0x227529=this[_0x31fb88(0x205)][_0x31fb88(0x1c8)][_0x31fb88(0x1ea)](_0x2da00a);let _0x3cf8ed;_0x227529[_0x31fb88(0xe2)]&&_0x227529[_0x31fb88(0x225)](),_0x3cf8ed=_0x23a54f||!this[_0x31fb88(0x122)]?this[_0x31fb88(0x205)][_0x31fb88(0x1c3)][_0x31fb88(0x1ea)](_0x31fb88(0xfc)):this[_0x31fb88(0x122)][_0x31fb88(0x1cd)]['id'],await this[_0x31fb88(0x1d6)]();const _0x37488a=this[_0x31fb88(0x170)](),_0x743a20=_0x23a54f||_0x4d67a7();this[_0x31fb88(0x122)]=new _0x4dd354({'connector':this[_0x31fb88(0xe6)],'chatModels':this[_0x31fb88(0x1a6)],'defaultModelId':_0x3cf8ed,'conversationId':_0x743a20,'group':_0x37488a,'getEditor':()=>_0x31f76c(this[_0x31fb88(0x205)])}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x189),(_0x15456e,_0x39dbfd)=>{const _0x5cfd2a=_0x31fb88;_0x39dbfd[_0x5cfd2a(0x14f)]=this[_0x5cfd2a(0x1d9)](_0x39dbfd[_0x5cfd2a(0x14f)],this[_0x5cfd2a(0x205)][_0x5cfd2a(0x1c3)][_0x5cfd2a(0x1ea)](_0x5cfd2a(0x13e))),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x119)](_0x39dbfd),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x138)](),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x17a)](),this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x192)](),_0x23a54f||(this[_0x5cfd2a(0xe1)][_0x5cfd2a(0x223)](),this[_0x5cfd2a(0x122)]?.[_0x5cfd2a(0x13d)](_0x491991(this[_0x5cfd2a(0x205)][_0x5cfd2a(0x1da)],_0x5cfd2a(0x163))));}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0xf2),(_0x3009fb,_0x331545)=>{const _0x2e0d76=_0x31fb88;this[_0x2e0d76(0xe1)][_0x2e0d76(0x1d1)](_0x331545[_0x2e0d76(0x18d)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0xe5),(_0x5bac39,_0x243116)=>{const _0x36235b=_0x31fb88;this[_0x36235b(0xe1)][_0x36235b(0x1fa)](_0x243116),this[_0x36235b(0xe1)][_0x36235b(0x12b)](_0x243116);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x18e),(_0x188c49,_0x1d3471)=>{const _0x11741d=_0x31fb88;this[_0x11741d(0xe1)][_0x11741d(0x20a)](_0x1d3471);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1d7),async()=>{const _0x2bf9a2=_0x31fb88;await this[_0x2bf9a2(0xe1)][_0x2bf9a2(0x17f)]();}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x121),(_0x599d45,_0x38c8f0)=>{const _0x27c90d=_0x31fb88;this[_0x27c90d(0xe1)][_0x27c90d(0x1a3)](_0x38c8f0['id']);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x102),(_0x2a6800,_0x3fbcfb,_0x28f82c)=>{const _0x5a6f5c=_0x31fb88;this[_0x5a6f5c(0x148)](_0x3fbcfb,_0x28f82c);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x21a),(_0x5de25d,_0x493e60)=>{const _0x5ecd50=_0x31fb88;this[_0x5ecd50(0xe1)][_0x5ecd50(0x21f)]({'isVisible':!0x0,'id':_0x493e60[_0x5ecd50(0x16d)]}),_0x5ecd50(0x199)===_0x493e60[_0x5ecd50(0x1b2)]?this[_0x5ecd50(0xe1)][_0x5ecd50(0x1e0)](_0x493e60):this[_0x5ecd50(0xe1)][_0x5ecd50(0x126)](_0x493e60);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x150),async(_0x54d824,_0x35ccd7,_0x4ef157)=>{const _0x403c88=_0x31fb88;await this[_0x403c88(0xd8)]({'reply':_0x35ccd7,'changeGroups':_0x4ef157});}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1e5),(_0x4676df,{reply:_0xcf8d8c,index:_0x4b0d71,state:_0x49249b})=>{const _0x5a0f38=_0x31fb88;this[_0x5a0f38(0xe1)][_0x5a0f38(0x17c)]({'id':_0xcf8d8c['id'],'index':_0x4b0d71,'state':_0x49249b});}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1ba),(_0x16369e,_0x1ffe37)=>{const _0x10196a=_0x31fb88;if(this[_0x10196a(0xe1)][_0x10196a(0x179)](_0x1ffe37[_0x10196a(0x208)],_0x1ffe37[_0x10196a(0x12d)]),_0x10196a(0x1f5)===_0x1ffe37[_0x10196a(0x208)][_0x10196a(0x1b2)]){const _0x2485b4=[..._0x31f76c(this[_0x10196a(0x205)])[_0x10196a(0x11b)][_0x10196a(0x155)][_0x10196a(0x1f5)][_0x10196a(0xfd)]()];this[_0x10196a(0x1f2)][_0x10196a(0x158)](_0x2485b4,_0x10196a(0x20b)+this[_0x10196a(0x122)]?.['id']);}}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x19f),(_0x3c596a,_0x314afb)=>{const _0x50e4b0=_0x31fb88;this[_0x50e4b0(0xe1)][_0x50e4b0(0x182)](_0x314afb[_0x50e4b0(0xf0)]),_0x50e4b0(0x151)==_0x314afb[_0x50e4b0(0xf0)]&&this[_0x50e4b0(0x174)](),_0x50e4b0(0x1f5)===_0x314afb[_0x50e4b0(0x1b2)]&&this[_0x50e4b0(0x1f2)][_0x50e4b0(0x1a8)](_0x50e4b0(0x20b)+this[_0x50e4b0(0x122)]?.['id']);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1e9),(_0x5c625c,_0x456d7e)=>{const _0x5733b1=_0x31fb88;this[_0x5733b1(0xe1)][_0x5733b1(0x1fc)](_0x456d7e[_0x5733b1(0x208)][_0x5733b1(0xf0)],_0x456d7e[_0x5733b1(0x12d)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x213),(_0x57925b,_0x154da5)=>{const _0xbac571=_0x31fb88;this[_0xbac571(0xe1)][_0xbac571(0x226)](_0x154da5[_0xbac571(0xde)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x11f),(_0xb81696,_0x116239)=>{const _0x53b4bc=_0x31fb88;this[_0x53b4bc(0xe1)][_0x53b4bc(0x106)](_0x116239[_0x53b4bc(0x221)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1de),(_0x15a3f9,_0x2a10b4)=>{const _0x4dd68d=_0x31fb88;this[_0x4dd68d(0xe1)][_0x4dd68d(0x13c)](_0x2a10b4[_0x4dd68d(0x204)],_0x2a10b4[_0x4dd68d(0x21e)],_0x2a10b4[_0x4dd68d(0x1fd)],_0x2a10b4[_0x4dd68d(0x1c9)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1cc),(_0x52eda6,_0x432837)=>{const _0x22cad3=_0x31fb88;this[_0x22cad3(0xe1)][_0x22cad3(0x180)](_0x432837[_0x22cad3(0x204)],_0x432837[_0x22cad3(0x12c)],_0x432837[_0x22cad3(0xdb)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x172),(_0x3e1c53,_0x2212d9)=>{const _0x4dcd32=_0x31fb88;this[_0x4dcd32(0xe1)][_0x4dcd32(0x1f9)](_0x2212d9);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x13b),(_0x45e665,_0x5263b4)=>{const _0x2ae979=_0x31fb88;this[_0x2ae979(0xe1)][_0x2ae979(0xe9)](_0x5263b4[_0x2ae979(0x1cd)],_0x5263b4[_0x2ae979(0x1a1)]);}),this[_0x31fb88(0x122)]['on'](_0x31fb88(0x1c7),(_0xb8dfed,{error:_0x17225b,interactionId:_0x35112e,fileName:_0x4cbd82,url:_0x51a0d3,sourceId:_0x1ce1dc,sourceLabel:_0xdf792})=>{const _0x12169e=_0x31fb88,_0x5f33d8=_0x35112e?_0x35112e+':'+_0x4d67a7():_0x4d67a7();_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x130))?this[_0x12169e(0xe1)][_0x12169e(0x1bb)]({'staticMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x14c)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x1c6))||_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x1ce))?(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x1d3)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x15f))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x17b),_0x4cbd82),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0xdd))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x1f7),_0x51a0d3),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x154))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x229)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x196))?this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x12f)),'id':_0x5f33d8}):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x14e))?(_0x1ce1dc&&this[_0x12169e(0xe1)][_0x12169e(0x113)](_0x1ce1dc),this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x10b),_0xdf792||_0x12169e(0x21e)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):_0x17225b[_0x12169e(0x144)][_0x12169e(0x1e1)](_0x12169e(0x188))?(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x124)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b)):(this[_0x12169e(0xe1)][_0x12169e(0x186)]({'errorMessage':_0x491991(this[_0x12169e(0x205)][_0x12169e(0x1da)],_0x12169e(0x14d)),'id':_0x5f33d8}),this[_0x12169e(0x1f4)](_0x17225b));}),await this[_0x31fb88(0x122)][_0x31fb88(0x10e)](this[_0x31fb88(0x205)][_0x31fb88(0x1c3)][_0x31fb88(0x1ea)](_0x31fb88(0x161))),_0x23a54f||await this[_0x31fb88(0x122)][_0x31fb88(0x214)]();}async[_0x273c8e(0x1cf)]({userMessage:_0x547bb6,quickActionData:_0x575edf}){const _0x551d63=_0x273c8e;if(!this[_0x551d63(0x122)])throw new _0x327deb(_0x551d63(0xe8));this[_0x551d63(0x122)][_0x551d63(0x105)]()&&await this[_0x551d63(0x122)][_0x551d63(0x211)](this[_0x551d63(0x1f2)][_0x551d63(0xee)]()),this[_0x551d63(0x122)]['id']&&this[_0x551d63(0x122)][_0x551d63(0x1e7)]&&await this[_0x551d63(0x122)][_0x551d63(0x10d)]({'userMessage':_0x547bb6,'quickActionData':_0x575edf}),this[_0x551d63(0x200)]();}[_0x273c8e(0x200)](){const _0xf70fc7=_0x273c8e,_0x19c997=_0x31f76c(this[_0xf70fc7(0x205)])[_0xf70fc7(0x11b)],_0x2ed042=Array[_0xf70fc7(0x183)](_0x19c997[_0xf70fc7(0xe3)][_0xf70fc7(0x1f1)](_0x28ce8a));_0x19c997[_0xf70fc7(0x104)](_0x1bc9aa=>{const _0x5e69c4=_0xf70fc7;_0x2ed042[_0x5e69c4(0x125)](_0x4322c5=>_0x1bc9aa[_0x5e69c4(0x143)](_0x4322c5));});}[_0x273c8e(0x107)](){const _0x1f1718=_0x273c8e;console[_0x1f1718(0x1e3)](_0x1f1718(0x22a));}[_0x273c8e(0x15c)](_0x2bad3c){const _0x5d2007=_0x273c8e;this[_0x5d2007(0xe1)][_0x5d2007(0x206)](_0x2bad3c);}[_0x273c8e(0x1f4)](_0x325dfb){const _0x21e194=_0x273c8e;_0x155630(_0x325dfb[_0x21e194(0x144)]);}[_0x273c8e(0x1a9)](_0x458b7a){const _0x2db30f=_0x273c8e;this[_0x2db30f(0x122)]?.[_0x2db30f(0x12e)](_0x458b7a);}[_0x273c8e(0x165)](){const _0x255c88=_0x273c8e;this[_0x255c88(0x122)]?.[_0x255c88(0x1e8)]();}[_0x273c8e(0x11d)](){const _0x3e495d=_0x273c8e;this[_0x3e495d(0x122)]?.[_0x3e495d(0x1d4)]();}[_0x273c8e(0x202)](_0xc9dcb6){const _0x3293c4=_0x273c8e,[_0x2087f9,_0x106ca7]=_0xc9dcb6[_0x3293c4(0x136)](':'),_0x27b0fc=this[_0x3293c4(0x122)][_0x3293c4(0x1f6)](_0x2087f9),_0x1ca0b9=_0x27b0fc[_0x3293c4(0x1a4)](_0x106ca7);return{'interaction':_0x27b0fc,'reply':_0x1ca0b9};}[_0x273c8e(0x1f0)](_0x44034d,_0x3e775d=!0x1){const _0x2270e0=_0x273c8e,_0x3ed4db=_0x31f76c(this[_0x2270e0(0x205)]),_0x530e48={'target':_0x3ed4db[_0x2270e0(0x14b)][_0x2270e0(0xec)][_0x2270e0(0x112)][_0x2270e0(0xfe)](_0x3ed4db[_0x2270e0(0x14b)][_0x2270e0(0x103)][_0x2270e0(0xff)](_0x44034d)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x3e775d};_0x3e775d&&(_0x530e48[_0x2270e0(0x1a7)]=!0x0),_0x2ac7e7(_0x530e48);}[_0x273c8e(0x148)](_0x50025e,_0x1cb87e=!0x1){const _0x235e03=_0x273c8e;this[_0x235e03(0xe1)][_0x235e03(0x102)](_0x50025e||_0x491991(this[_0x235e03(0x205)][_0x235e03(0x1da)],_0x235e03(0x1d8)),_0x1cb87e);}[_0x273c8e(0x1d9)](_0x3a337b,_0x1a70a2){const _0x23bd7b=_0x273c8e;let _0x5ba0a8;if(_0x1a70a2){_0x5ba0a8=[];const _0x59c9b4=_0x23bd7b(0x227)==typeof _0x1a70a2?[_0x1a70a2[_0x23bd7b(0x100)]()]:_0x1a70a2[_0x23bd7b(0x1ae)](_0x32dcfe=>_0x32dcfe[_0x23bd7b(0x100)]());for(const _0x2fc94a of _0x59c9b4)for(const _0x2d99b0 of _0x3a337b)(_0x2d99b0['id'][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0[_0x23bd7b(0x17e)][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0[_0x23bd7b(0x1b9)][_0x23bd7b(0x100)]()===_0x2fc94a||_0x2d99b0['id'][_0x23bd7b(0x100)]()[_0x23bd7b(0x1e1)](_0x2fc94a))&&_0x5ba0a8[_0x23bd7b(0xdf)](_0x2d99b0);}else _0x5ba0a8=_0x3a337b;return _0x5ba0a8;}async[_0x273c8e(0xd8)]({reply:_0x3322e7,changeGroups:_0x5a956d,renderingStrategy:_0x20d5c8}){const _0x124b1f=_0x273c8e,{id:_0x594fc2,isDone:_0x5ea712,type:_0x4ec032,parsedContent:_0x35449e}=_0x3322e7;if(_0x124b1f(0x1d5)===_0x4ec032){const _0x2a9818=_0x31f76c(this[_0x124b1f(0x205)]),_0x5c4602=_0x336ebe({'editor':_0x2a9818,'showDiff':this[_0x124b1f(0xe1)][_0x124b1f(0x153)],'changeGroups':_0x5a956d,'documentContextContent':_0x3322e7[_0x124b1f(0x1c2)]});await this[_0x124b1f(0xe1)][_0x124b1f(0x1e4)]({'id':_0x594fc2,'parts':_0x5c4602,'renderingStrategy':_0x20d5c8,'isDone':_0x5ea712});}else _0x124b1f(0x199)===_0x4ec032&&await this[_0x124b1f(0xe1)][_0x124b1f(0x145)]({'id':_0x594fc2,'parsedContent':_0x35449e,'renderingStrategy':_0x20d5c8,'isDone':_0x5ea712});_0x5ea712&&_0x3322e7[_0x124b1f(0x131)][_0x124b1f(0x181)]>0x0&&this[_0x124b1f(0xe1)][_0x124b1f(0x1a2)](_0x594fc2,_0x3322e7[_0x124b1f(0x131)]);}async[_0x273c8e(0x1d6)](){const _0x2e96fc=_0x273c8e,_0x6422ab=this[_0x2e96fc(0x122)]?.[_0x2e96fc(0x198)];_0x6422ab&&(_0x6422ab[_0x2e96fc(0x203)](),this[_0x2e96fc(0xe1)][_0x2e96fc(0xf7)](_0x6422ab));}async[_0x273c8e(0x123)](){const _0x371213=_0x273c8e,_0x4ff03a=this[_0x371213(0x122)]?.[_0x371213(0x198)];if(_0x4ff03a){for await(const _0x4b373c of _0x4ff03a[_0x371213(0x137)])await this[_0x371213(0xd8)]({'reply':_0x4b373c,'changeGroups':_0x4b373c[_0x371213(0x133)],'renderingStrategy':_0x371213(0x1fb)});}}}
@@ -212,6 +212,8 @@ export declare class AIChatUI extends ContextPlugin {
212
212
  closeSourceResourceBalloon(sourceId: string): void;
213
213
  focusPromptInput(): void;
214
214
  scrollFeedToSuggestion(replyId: string, partIndex: number): void;
215
+ disableControls(): void;
216
+ enableControls(): void;
215
217
  }
216
218
  /**
217
219
  * An event fired when the user starts a new conversation.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x30c1(_0x510d90,_0x525f6c){const _0xcbf68a=_0xcbf6();return _0x30c1=function(_0x30c1c6,_0x48b76a){_0x30c1c6=_0x30c1c6-0x1e0;let _0x47aa4f=_0xcbf68a[_0x30c1c6];return _0x47aa4f;},_0x30c1(_0x510d90,_0x525f6c);}const _0x35179c=_0x30c1;(function(_0x111e8c,_0xcfb618){const _0x10d392=_0x30c1,_0x139555=_0x111e8c();while(!![]){try{const _0x3bbf76=parseInt(_0x10d392(0x1e6))/0x1+-parseInt(_0x10d392(0x25d))/0x2+-parseInt(_0x10d392(0x20f))/0x3*(parseInt(_0x10d392(0x264))/0x4)+parseInt(_0x10d392(0x1e3))/0x5+-parseInt(_0x10d392(0x1f2))/0x6*(-parseInt(_0x10d392(0x253))/0x7)+parseInt(_0x10d392(0x223))/0x8*(-parseInt(_0x10d392(0x209))/0x9)+parseInt(_0x10d392(0x1f5))/0xa;if(_0x3bbf76===_0xcfb618)break;else _0x139555['push'](_0x139555['shift']());}catch(_0x3f0c7e){_0x139555['push'](_0x139555['shift']());}}}(_0xcbf6,0x1b575));import{ContextPlugin as _0x113467}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x42f1e2}from'ckeditor5/src/utils.js';import{AIChatView as _0x2133e7}from'./ui/aichatview.js';import{AITabs as _0x2b9dce}from'../aitabs/aitabs.js';import{getTranslation as _0x84fc5a}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3e8f08}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1079d4}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1bc109}from'./utils/promisequeue.js';function _0xcbf6(){const _0x58044b=['isPending','createConversation','updateResourceState','addTab','isPremiumPlugin','setSelectedModel','updateReplyItem','removeContextItem','126836gxvjcO','chatFeed','locale','find','error-message','queueEmptyPromise','<p>','24668kdmigu','streaming','interaction-header','addFeedItemError','_promiseQueue','scrollFeedToSuggestion','setModelList','setInputPlaceholder','addContextItem','stopInteraction','setContextItemLoading','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','bind','resetMessageInput','addItem','setConversationContext','startInteraction','AI_CHAT_WELCOME_MESSAGE','label','setWebSearch','focusPromptInput','451810aLkDjY','stopAutoScroll','closeSourceResourceBalloon','95993yUjQjQ','requires','context','isWebSearchEnabled','markFeedItemAsDone','options','disableModelSelector','getItemIds','interactionId','toggleLoadingSkeleton','addFeedItemStaticMessage','clear','12HypbHL','setFeedItemRenderingStrategy','availableModels','792280JMTXSl','startsWith','addFeedItemAIReply','pluginName','updateCapabilities','areActionsDisabled','finishInteraction','clearConversationContextUI','showDiff','plugins','markItemAsDone','set','forEach','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','clearPendingContextUI','user-message','setAddContextOptions','_view','get','27aQFxvy','updateFeedItemAIReplySources','from','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','AI_CHAT_HEADING','69QSLaWx','filter','setIsUploadInProgress','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setModel','delegate','updateFeedItemAIReplySuggestionPartState','_getLoadingMessage','setReasoning','startAutoScroll','scrollToSuggestion','isOfficialPlugin','setConversationTitle','feedItemRenderingStrategy','chatHeader','updateFeedItemAIReplySuggestionContent','_animateConversationTitle','chat','values','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','149800mtVJHJ','destroy','addFeedInteractionHeader','capabilities','isLoading','updateWebSources','updateSuggestionItem','then','removeFeedInteraction','enqueue','isMaximized','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','contextItems','conversation-start','setLoadingMessage','isBusy','userMessage','_interactionPromiseResolver','abort','ai.chat.models.modelSelectorAlwaysVisible','updateFeedInteractionHeader','removeItem','view','config','displayedPrompt','populateSourceResourceBalloon','ai-suggestion-reply','_getInputPlaceholder','showResizeButton','resetConversationTitle','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AIChatUI','quickActionData','</p>','children','addFeedItemUserMessage','isDone','length','setIsMaximized','_titleAnimationInterval','isVisible','chatControls','AITabs','updateFeedItemAIReplyContent','updateSuggestionPartState','isReasoningEnabled','toggleSuggestionDisplayMode','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','377440dNhbpU','ai-reply'];_0xcbf6=function(){return _0x58044b;};return _0xcbf6();}import{AI_CHAT_UI_EVENT_NAMES as _0x12440c}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x113467{static get[_0x35179c(0x1e7)](){return[_0x2b9dce];}[_0x35179c(0x207)];static get[_0x35179c(0x1f8)](){const _0x3e16fe=_0x35179c;return _0x3e16fe(0x242);}static get[_0x35179c(0x21a)](){return!0x0;}static get[_0x35179c(0x259)](){return!0x0;}[_0x35179c(0x21c)]=_0x35179c(0x265);[_0x35179c(0x1fd)]=!0x0;[_0x35179c(0x268)];[_0x35179c(0x234)];[_0x35179c(0x24a)]=void 0x0;constructor(_0x368001){const _0x39db53=_0x35179c;super(_0x368001);const _0x1d2baf=this[_0x39db53(0x1e8)][_0x39db53(0x1fe)][_0x39db53(0x208)](_0x39db53(0x24d));this[_0x39db53(0x200)](_0x39db53(0x232),!0x1),this[_0x39db53(0x268)]=new _0x1bc109(),this[_0x39db53(0x207)]=new _0x2133e7(this[_0x39db53(0x1e8)][_0x39db53(0x25f)],_0x1d2baf[_0x39db53(0x23f)]),this[_0x39db53(0x207)][_0x39db53(0x214)](..._0x12440c)['to'](this),this[_0x39db53(0x207)]['on'](_0x39db53(0x251),(_0x531370,{showDiff:_0xd5c01a})=>{const _0x3103be=_0x39db53;this[_0x3103be(0x1fd)]=_0xd5c01a;}),_0x1d2baf[_0x39db53(0x239)][_0x39db53(0x258)]({'id':_0x39db53(0x220),'buttonLabel':_0x84fc5a(this[_0x39db53(0x1e8)][_0x39db53(0x25f)],_0x39db53(0x20e)),'buttonIcon':_0x3e8f08,'order':0x0,'content':this[_0x39db53(0x207)]}),this[_0x39db53(0x207)][_0x39db53(0x24c)][_0x39db53(0x271)](_0x39db53(0x227))['to'](this,_0x39db53(0x232),_0x3bd1ce=>_0x3bd1ce),this[_0x39db53(0x207)][_0x39db53(0x25e)][_0x39db53(0x271)](_0x39db53(0x255))['to'](this,_0x39db53(0x232),_0x5c39cc=>_0x5c39cc),this[_0x39db53(0x207)][_0x39db53(0x24c)][_0x39db53(0x26b)](this[_0x39db53(0x23e)]());}[_0x35179c(0x224)](){const _0x5baab0=_0x35179c;super[_0x5baab0(0x224)](),this[_0x5baab0(0x24a)]&&clearInterval(this[_0x5baab0(0x24a)]);}[_0x35179c(0x256)](_0x291d8c){const _0x6290bd=_0x35179c;this[_0x6290bd(0x207)][_0x6290bd(0x25e)][_0x6290bd(0x1f1)](),this[_0x6290bd(0x207)][_0x6290bd(0x24c)][_0x6290bd(0x20c)](),this[_0x6290bd(0x207)][_0x6290bd(0x24c)][_0x6290bd(0x26a)](_0x291d8c[_0x6290bd(0x1f4)],!this[_0x6290bd(0x1e8)][_0x6290bd(0x23a)][_0x6290bd(0x208)](_0x6290bd(0x236))),this[_0x6290bd(0x1f0)]({'id':_0x6290bd(0x230),'staticMessage':_0x84fc5a(this[_0x6290bd(0x1e8)][_0x6290bd(0x25f)],_0x6290bd(0x276))});}[_0x35179c(0x1f0)]({id:_0x4f8a1e,staticMessage:_0x1a6144}){const _0x479aa5=_0x35179c;this[_0x479aa5(0x207)][_0x479aa5(0x25e)][_0x479aa5(0x273)](_0x479aa5(0x254),{'id':_0x4f8a1e,'initialContent':_0x479aa5(0x263)+_0x1a6144+_0x479aa5(0x244)});}[_0x35179c(0x246)](_0x11282d){const _0x50e520=_0x35179c,_0xbba92=_0x11282d[_0x50e520(0x243)]?.[_0x50e520(0x23b)]||_0x11282d[_0x50e520(0x233)];this[_0x50e520(0x207)][_0x50e520(0x25e)][_0x50e520(0x273)](_0x50e520(0x205),{'contextItems':Array[_0x50e520(0x20b)](_0x11282d[_0x50e520(0x22f)][_0x50e520(0x221)]()),'initialContent':_0x50e520(0x263)+_0xbba92+_0x50e520(0x244),'id':_0x11282d['id']});}[_0x35179c(0x267)]({errorMessage:_0x262d85,id:_0x12ec20}){const _0x58c8a1=_0x35179c;this[_0x58c8a1(0x207)][_0x58c8a1(0x25e)][_0x58c8a1(0x273)](_0x58c8a1(0x261),{'initialContent':_0x58c8a1(0x263)+_0x262d85+_0x58c8a1(0x244),'id':_0x12ec20});}[_0x35179c(0x1f7)](_0x3df779){const _0x1609c3=_0x35179c;return this[_0x1609c3(0x268)][_0x1609c3(0x22c)](async()=>{const _0x91f0af=_0x1609c3;this[_0x91f0af(0x207)][_0x91f0af(0x25e)][_0x91f0af(0x273)](_0x91f0af(0x254),{'id':_0x3df779[_0x91f0af(0x1ee)]+':'+_0x3df779['id']}),this[_0x91f0af(0x207)][_0x91f0af(0x25e)][_0x91f0af(0x231)]('');});}async[_0x35179c(0x26f)](_0x259de1){const _0x36dec8=_0x35179c;return this[_0x36dec8(0x268)][_0x36dec8(0x22c)](async()=>{const _0x34cc7c=_0x36dec8;this[_0x34cc7c(0x207)][_0x34cc7c(0x25e)][_0x34cc7c(0x273)](_0x34cc7c(0x23d),{'id':_0x259de1[_0x34cc7c(0x1ee)]+':'+_0x259de1['id'],'areActionsDisabled':_0x259de1[_0x34cc7c(0x1fa)],'showDiff':this[_0x34cc7c(0x1fd)]}),this[_0x34cc7c(0x207)][_0x34cc7c(0x25e)][_0x34cc7c(0x231)]('');});}[_0x35179c(0x225)](_0x34df71){const _0x35ad87=_0x35179c;this[_0x35ad87(0x207)][_0x35ad87(0x25e)][_0x35ad87(0x273)](_0x35ad87(0x266),{'id':_0x34df71['id'],'capabilities':_0x34df71[_0x35ad87(0x226)]});}[_0x35179c(0x237)](_0x3dcfbe){const _0x314288=_0x35179c,_0x47b928=this[_0x314288(0x207)][_0x314288(0x25e)][_0x314288(0x245)][_0x314288(0x260)](_0x149c1c=>_0x149c1c[_0x314288(0x1eb)]['id']==_0x3dcfbe['id']&&_0x149c1c instanceof _0x1079d4);_0x47b928&&_0x47b928[_0x314288(0x200)](_0x314288(0x24b),_0x3dcfbe[_0x314288(0x24b)]);}async[_0x35179c(0x24e)](_0x46e3fe){const _0x3fb2c0=_0x35179c,_0x40d69d=_0x46e3fe[_0x3fb2c0(0x202)]||this[_0x3fb2c0(0x21c)];return this[_0x3fb2c0(0x268)][_0x3fb2c0(0x22c)](async _0x36b82f=>{const _0x38c448=_0x3fb2c0;await this[_0x38c448(0x207)][_0x38c448(0x25e)][_0x38c448(0x25b)]({..._0x46e3fe,'abortSignal':_0x36b82f,'renderingStrategy':_0x40d69d}),_0x46e3fe[_0x38c448(0x247)]&&this[_0x38c448(0x1ea)](_0x46e3fe['id']);});}[_0x35179c(0x20a)](_0x4a6d49,_0xc1e3c2){const _0x57e462=_0x35179c;this[_0x57e462(0x207)][_0x57e462(0x25e)][_0x57e462(0x228)](_0x4a6d49,_0xc1e3c2);}async[_0x35179c(0x21e)](_0x80425e){const _0x1b31c1=_0x35179c,_0x4daf46=_0x80425e[_0x1b31c1(0x202)]||this[_0x1b31c1(0x21c)];return this[_0x1b31c1(0x268)][_0x1b31c1(0x22c)](async _0x5b225d=>{const _0x39939f=_0x1b31c1;await this[_0x39939f(0x207)][_0x39939f(0x25e)][_0x39939f(0x229)]({..._0x80425e,'abortSignal':_0x5b225d,'renderingStrategy':_0x4daf46}),_0x80425e[_0x39939f(0x247)]&&this[_0x39939f(0x1ea)](_0x80425e['id']);});}[_0x35179c(0x215)](_0x2be245){const _0x1bdadf=_0x35179c;this[_0x1bdadf(0x207)][_0x1bdadf(0x25e)][_0x1bdadf(0x24f)](_0x2be245);}[_0x35179c(0x1ea)](_0x3e841d){const _0x150201=_0x35179c;this[_0x150201(0x207)][_0x150201(0x25e)][_0x150201(0x1ff)](_0x3e841d);}[_0x35179c(0x22b)](_0x5ea061){const _0x246ebd=_0x35179c;this[_0x246ebd(0x207)][_0x246ebd(0x25e)][_0x246ebd(0x1ed)]()[_0x246ebd(0x210)](_0x276e3a=>_0x276e3a[_0x246ebd(0x1f6)](_0x5ea061))[_0x246ebd(0x201)](_0x1d87fc=>this[_0x246ebd(0x207)][_0x246ebd(0x25e)][_0x246ebd(0x238)](_0x1d87fc));}[_0x35179c(0x275)](_0x50c02b){const _0x257ebf=_0x35179c;this[_0x257ebf(0x207)][_0x257ebf(0x25e)][_0x257ebf(0x231)](this[_0x257ebf(0x216)](_0x50c02b)),this[_0x257ebf(0x207)][_0x257ebf(0x24c)][_0x257ebf(0x1ec)](!this[_0x257ebf(0x1e8)][_0x257ebf(0x23a)][_0x257ebf(0x208)](_0x257ebf(0x236))),this[_0x257ebf(0x232)]=!0x0,this[_0x257ebf(0x207)][_0x257ebf(0x25e)][_0x257ebf(0x218)]();}[_0x35179c(0x26d)](_0x536f74){const _0x16c00e=_0x35179c;this[_0x16c00e(0x268)][_0x16c00e(0x235)](),this[_0x16c00e(0x207)][_0x16c00e(0x25e)][_0x16c00e(0x1ed)]()[_0x16c00e(0x210)](_0x274fa0=>_0x274fa0[_0x16c00e(0x1f6)](_0x536f74['id']))[_0x16c00e(0x201)](_0x575113=>this[_0x16c00e(0x1ea)](_0x575113)),this[_0x16c00e(0x232)]=!0x1,this[_0x16c00e(0x207)][_0x16c00e(0x25e)][_0x16c00e(0x1e4)]();}async[_0x35179c(0x1fb)](){const _0x3ac6f9=_0x35179c;return this[_0x3ac6f9(0x268)][_0x3ac6f9(0x262)][_0x3ac6f9(0x22a)](()=>{const _0x5bb697=_0x3ac6f9;this[_0x5bb697(0x232)]=!0x1,this[_0x5bb697(0x207)][_0x5bb697(0x25e)][_0x5bb697(0x1e4)]();});}[_0x35179c(0x26c)](_0x4ccb41,_0x4890ad){const _0x1e3722=_0x35179c;this[_0x1e3722(0x207)][_0x1e3722(0x24c)][_0x1e3722(0x26c)](_0x4ccb41,_0x4890ad);}[_0x35179c(0x25c)](_0x4a581e){const _0x2a8fb2=_0x35179c;this[_0x2a8fb2(0x207)][_0x2a8fb2(0x24c)][_0x2a8fb2(0x25c)](_0x4a581e);}[_0x35179c(0x26e)](_0x48c1fc,_0x1a6e69){const _0x2f205a=_0x35179c;this[_0x2f205a(0x207)][_0x2f205a(0x24c)][_0x2f205a(0x26e)](_0x48c1fc,_0x1a6e69);}[_0x35179c(0x211)](_0x5d2917){const _0x1463b0=_0x35179c;this[_0x1463b0(0x207)][_0x1463b0(0x24c)][_0x1463b0(0x211)](_0x5d2917);}[_0x35179c(0x274)](_0x593002){const _0x504510=_0x35179c;this[_0x504510(0x207)][_0x504510(0x24c)][_0x504510(0x274)](_0x593002);}[_0x35179c(0x204)](){const _0x15b5c0=_0x35179c;this[_0x15b5c0(0x207)][_0x15b5c0(0x24c)][_0x15b5c0(0x204)]();}[_0x35179c(0x1fc)](){const _0x3b11b2=_0x35179c;this[_0x3b11b2(0x207)][_0x3b11b2(0x24c)][_0x3b11b2(0x1fc)]();}[_0x35179c(0x257)](_0x4e751d,_0x23fcca,_0x49b0ab){const _0x4029a0=_0x35179c;this[_0x4029a0(0x207)][_0x4029a0(0x24c)][_0x4029a0(0x257)](_0x4e751d,_0x23fcca,_0x49b0ab);}[_0x35179c(0x272)](){const _0x97f9f3=_0x35179c;this[_0x97f9f3(0x207)][_0x97f9f3(0x24c)][_0x97f9f3(0x272)](),this[_0x97f9f3(0x207)][_0x97f9f3(0x24c)][_0x97f9f3(0x26b)](this[_0x97f9f3(0x23e)]());}[_0x35179c(0x206)](_0x1847ac){const _0xe4e51=_0x35179c;this[_0xe4e51(0x207)][_0xe4e51(0x24c)][_0xe4e51(0x206)](_0x1847ac);}[_0x35179c(0x1f9)](_0x41b430){const _0x4ccc87=_0x35179c;this[_0x4ccc87(0x207)][_0x4ccc87(0x24c)][_0x4ccc87(0x1e1)](_0x41b430[_0x4ccc87(0x1e9)]),this[_0x4ccc87(0x207)][_0x4ccc87(0x24c)][_0x4ccc87(0x217)](_0x41b430[_0x4ccc87(0x250)]),this[_0x4ccc87(0x207)][_0x4ccc87(0x24c)][_0x4ccc87(0x26b)](this[_0x4ccc87(0x23e)](_0x41b430));}[_0x35179c(0x25a)](_0xde3d34,_0x279738){const _0x5181f4=_0x35179c;this[_0x5181f4(0x207)][_0x5181f4(0x24c)][_0x5181f4(0x213)](_0xde3d34),_0x279738&&this[_0x5181f4(0x207)][_0x5181f4(0x24c)][_0x5181f4(0x1ec)](!0x1);}[_0x35179c(0x1f3)](_0x148cd1){const _0x532de4=_0x35179c;this[_0x532de4(0x21c)]=_0x148cd1;}[_0x35179c(0x1ef)](_0x1f2db4){const _0x1538a3=_0x35179c;this[_0x1538a3(0x207)][_0x1538a3(0x25e)][_0x1538a3(0x1ef)](_0x1f2db4);}[_0x35179c(0x240)](){const _0x151e66=_0x35179c;this[_0x151e66(0x21b)](_0x84fc5a(this[_0x151e66(0x1e8)][_0x151e66(0x25f)],_0x151e66(0x20e)));}[_0x35179c(0x21b)](_0x558683,_0x4b747b=!0x1){const _0x2799e4=_0x35179c;if(_0x4b747b&&!_0x42f1e2()&&_0x558683[_0x2799e4(0x248)])return this[_0x2799e4(0x207)][_0x2799e4(0x21d)][_0x2799e4(0x1e0)]='',void this[_0x2799e4(0x21f)](_0x558683);this[_0x2799e4(0x207)][_0x2799e4(0x21d)][_0x2799e4(0x1e0)]=_0x558683;}[_0x35179c(0x21f)](_0x3d8153){const _0x225337=_0x35179c;let _0x204958=0x0;clearInterval(this[_0x225337(0x24a)]),this[_0x225337(0x24a)]=setInterval(()=>{const _0x494dae=_0x225337;this[_0x494dae(0x207)][_0x494dae(0x21d)][_0x494dae(0x1e0)]=this[_0x494dae(0x207)][_0x494dae(0x21d)][_0x494dae(0x1e0)]+_0x3d8153[_0x204958],_0x204958++,_0x204958===_0x3d8153[_0x494dae(0x248)]&&clearInterval(this[_0x494dae(0x24a)]);},0x1e);}[_0x35179c(0x249)](_0x46f0dd){const _0x9dd9d0=_0x35179c;this[_0x9dd9d0(0x207)][_0x9dd9d0(0x21d)][_0x9dd9d0(0x22d)]=_0x46f0dd;}[_0x35179c(0x216)](_0x3d39d1){const _0x2fac59=_0x35179c,_0x16a076=_0x3d39d1[_0x2fac59(0x226)];return _0x16a076[_0x2fac59(0x1e9)]&&_0x16a076[_0x2fac59(0x250)]?_0x84fc5a(this[_0x2fac59(0x1e8)][_0x2fac59(0x25f)],_0x2fac59(0x270)):_0x16a076[_0x2fac59(0x1e9)]?_0x84fc5a(this[_0x2fac59(0x1e8)][_0x2fac59(0x25f)],_0x2fac59(0x212)):_0x16a076[_0x2fac59(0x250)]?_0x84fc5a(this[_0x2fac59(0x1e8)][_0x2fac59(0x25f)],_0x2fac59(0x222)):_0x84fc5a(this[_0x2fac59(0x1e8)][_0x2fac59(0x25f)],_0x2fac59(0x241));}[_0x35179c(0x23e)](_0x46af3d){const _0x1429c2=_0x35179c;return _0x46af3d?_0x46af3d[_0x1429c2(0x1e9)]&&_0x46af3d[_0x1429c2(0x250)]?_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x203)):_0x46af3d[_0x1429c2(0x1e9)]?_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x252)):_0x46af3d[_0x1429c2(0x250)]?_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x20d)):_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x22e)):_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x22e));}[_0x35179c(0x23c)](_0x1de3d4,_0x5780f0,_0x5e4bc3,_0x5dd5d4){const _0x2d706e=_0x35179c;this[_0x2d706e(0x207)][_0x2d706e(0x23c)](_0x1de3d4,_0x5780f0,_0x5e4bc3,_0x5dd5d4);}[_0x35179c(0x1e5)](_0x2f63c4){const _0x3ed24b=_0x35179c;this[_0x3ed24b(0x207)][_0x3ed24b(0x1e5)](_0x2f63c4);}[_0x35179c(0x1e2)](){const _0x3f050b=_0x35179c;this[_0x3f050b(0x207)][_0x3f050b(0x24c)][_0x3f050b(0x1e2)]();}[_0x35179c(0x269)](_0x22e2f7,_0x16b85b){const _0x5c7434=_0x35179c;this[_0x5c7434(0x207)][_0x5c7434(0x25e)][_0x5c7434(0x219)](_0x22e2f7,_0x16b85b);}}
23
+ const _0x111335=_0x5d33;(function(_0x833c49,_0x1b5260){const _0x5d5dc4=_0x5d33,_0x328527=_0x833c49();while(!![]){try{const _0xc1358f=parseInt(_0x5d5dc4(0x171))/0x1*(-parseInt(_0x5d5dc4(0x13d))/0x2)+parseInt(_0x5d5dc4(0x150))/0x3+-parseInt(_0x5d5dc4(0x180))/0x4+-parseInt(_0x5d5dc4(0xfe))/0x5*(-parseInt(_0x5d5dc4(0x132))/0x6)+parseInt(_0x5d5dc4(0x14b))/0x7*(parseInt(_0x5d5dc4(0x156))/0x8)+-parseInt(_0x5d5dc4(0x148))/0x9+parseInt(_0x5d5dc4(0x12c))/0xa;if(_0xc1358f===_0x1b5260)break;else _0x328527['push'](_0x328527['shift']());}catch(_0x420ed7){_0x328527['push'](_0x328527['shift']());}}}(_0xd2e9,0x8d281));import{ContextPlugin as _0x13564b}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x348b65}from'ckeditor5/src/utils.js';import{AIChatView as _0x4956fc}from'./ui/aichatview.js';import{AITabs as _0x209546}from'../aitabs/aitabs.js';import{getTranslation as _0x57e3d5}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x1ea53f}from'ckeditor5/src/icons.js';function _0xd2e9(){const _0x1305cc=['setFeedItemRenderingStrategy','scrollToSuggestion','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','forEach','updateWebSources','resetMessageInput','config','then','removeItem','_titleAnimationInterval','clearConversationContextUI','filter','stopInteraction','<p>','focusPromptInput','chat','setModelList','set','queueEmptyPromise','createConversation','addFeedItemUserMessage','error-message','destroy','updateFeedItemAIReplySuggestionContent','updateCapabilities','addFeedItemAIReply','addFeedItemError','updateResourceState','enqueue','_getInputPlaceholder','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','AITabs','isLoading','chatControls','chatHeader','setConversationTitle','isWebSearchEnabled','setIsUploadInProgress','userMessage','isMaximized','removeContextItem','</p>','getItemIds','setSelectedModel','delegate','4766060LNfNes','isPending','view','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','startInteraction','isBusy','12TgRkbV','enableModelSelector','addTab','stopAutoScroll','quickActionData','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','toggleLoadingSkeleton','ai-reply','disableModelSelector','pluginName','setAddContextOptions','80NuPFTL','_getLoadingMessage','isDisabled','_promiseQueue','setContextItemLoading','context','updateFeedInteractionHeader','startsWith','availableModels','AIChatUI','closeSourceResourceBalloon','6837399icqbmG','setConversationContext','updateSuggestionPartState','22813puXnKO','setWebSearch','clear','ai-suggestion-reply','populateSourceResourceBalloon','1860057dRibQY','setReasoning','updateFeedItemAIReplySuggestionPartState','children','areActionsDisabled','updateReplyItem','2744XLKkJA','capabilities','from','updateFeedItemAIReplyContent','user-message','setLoadingMessage','find','renderingStrategy','addContextItem','chatFeed','removeFeedInteraction','setModel','interactionId','displayedPrompt','showDiff','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','isOfficialPlugin','updateSuggestionItem','interaction-header','requires','AI_CHAT_WELCOME_MESSAGE','startAutoScroll','resetConversationTitle','setIsMaximized','values','_animateConversationTitle','plugins','14662KuGszP','AI_CHAT_HEADING','isPremiumPlugin','options','abort','locale','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','bind','length','finishInteraction','get','addItem','label','enableControls','addFeedItemStaticMessage','1797368vtbaGv','showResizeButton','streaming','_view','setInputPlaceholder','isVisible','addFeedItemAISuggestion','clearPendingContextUI','markItemAsDone','contextItems','disableControls','addFeedInteractionHeader','updateFeedItemAIReplySources','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','toggleSuggestionDisplayMode','isDone','scrollFeedToSuggestion','conversation-start','markFeedItemAsDone','feedItemRenderingStrategy','isReasoningEnabled','_interactionPromiseResolver','ai.chat.models.modelSelectorAlwaysVisible','398120tcLQUy'];_0xd2e9=function(){return _0x1305cc;};return _0xd2e9();}import{AIChatFeedInteractionHeaderView as _0x5bf630}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x889a5b}from'./utils/promisequeue.js';function _0x5d33(_0x1f8918,_0x3ccb47){const _0xd2e943=_0xd2e9();return _0x5d33=function(_0x5d3330,_0x8a8b46){_0x5d3330=_0x5d3330-0xef;let _0x1bea47=_0xd2e943[_0x5d3330];return _0x1bea47;},_0x5d33(_0x1f8918,_0x3ccb47);}import{AI_CHAT_UI_EVENT_NAMES as _0x6018fe}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x13564b{static get[_0x111335(0x169)](){return[_0x209546];}[_0x111335(0x183)];static get[_0x111335(0x13b)](){const _0x23ff2b=_0x111335;return _0x23ff2b(0x146);}static get[_0x111335(0x166)](){return!0x0;}static get[_0x111335(0x173)](){return!0x0;}[_0x111335(0xfa)]=_0x111335(0x182);[_0x111335(0x164)]=!0x0;[_0x111335(0x140)];[_0x111335(0xfc)];[_0x111335(0x108)]=void 0x0;constructor(_0x407b6f){const _0x22384e=_0x111335;super(_0x407b6f);const _0x210d45=this[_0x22384e(0x142)][_0x22384e(0x170)][_0x22384e(0x17b)](_0x22384e(0x11e));this[_0x22384e(0x110)](_0x22384e(0x131),!0x1),this[_0x22384e(0x140)]=new _0x889a5b(),this[_0x22384e(0x183)]=new _0x4956fc(this[_0x22384e(0x142)][_0x22384e(0x176)],_0x210d45[_0x22384e(0x181)]),this[_0x22384e(0x183)][_0x22384e(0x12b)](..._0x6018fe)['to'](this),this[_0x22384e(0x183)]['on'](_0x22384e(0xf5),(_0x2e1e5b,{showDiff:_0xcc722a})=>{const _0x3a5d76=_0x22384e;this[_0x3a5d76(0x164)]=_0xcc722a;}),_0x210d45[_0x22384e(0x12e)][_0x22384e(0x134)]({'id':_0x22384e(0x10e),'buttonLabel':_0x57e3d5(this[_0x22384e(0x142)][_0x22384e(0x176)],_0x22384e(0x172)),'buttonIcon':_0x1ea53f,'order':0x0,'content':this[_0x22384e(0x183)]}),this[_0x22384e(0x183)][_0x22384e(0x120)][_0x22384e(0x178)](_0x22384e(0x11f))['to'](this,_0x22384e(0x131),_0x285c90=>_0x285c90),this[_0x22384e(0x183)][_0x22384e(0x15f)][_0x22384e(0x178)](_0x22384e(0x12d))['to'](this,_0x22384e(0x131),_0x4cb4f1=>_0x4cb4f1),this[_0x22384e(0x183)][_0x22384e(0x120)][_0x22384e(0x184)](this[_0x22384e(0x11c)]());}[_0x111335(0x115)](){const _0x179e5f=_0x111335;super[_0x179e5f(0x115)](),this[_0x179e5f(0x108)]&&clearInterval(this[_0x179e5f(0x108)]);}[_0x111335(0x112)](_0x20d2ab){const _0x384933=_0x111335;this[_0x384933(0x183)][_0x384933(0x15f)][_0x384933(0x14d)](),this[_0x384933(0x183)][_0x384933(0x120)][_0x384933(0x133)](),this[_0x384933(0x183)][_0x384933(0x120)][_0x384933(0x10f)](_0x20d2ab[_0x384933(0x145)],!this[_0x384933(0x142)][_0x384933(0x105)][_0x384933(0x17b)](_0x384933(0xfd))),this[_0x384933(0x17f)]({'id':_0x384933(0xf8),'staticMessage':_0x57e3d5(this[_0x384933(0x142)][_0x384933(0x176)],_0x384933(0x16a))});}[_0x111335(0x17f)]({id:_0x59aecf,staticMessage:_0x22204f}){const _0x260f06=_0x111335;this[_0x260f06(0x183)][_0x260f06(0x15f)][_0x260f06(0x17c)](_0x260f06(0x139),{'id':_0x59aecf,'initialContent':_0x260f06(0x10c)+_0x22204f+_0x260f06(0x128)});}[_0x111335(0x113)](_0x551193){const _0x2f09e1=_0x111335,_0x45b7b8=_0x551193[_0x2f09e1(0x136)]?.[_0x2f09e1(0x163)]||_0x551193[_0x2f09e1(0x125)];this[_0x2f09e1(0x183)][_0x2f09e1(0x15f)][_0x2f09e1(0x17c)](_0x2f09e1(0x15a),{'contextItems':Array[_0x2f09e1(0x158)](_0x551193[_0x2f09e1(0xef)][_0x2f09e1(0x16e)]()),'initialContent':_0x2f09e1(0x10c)+_0x45b7b8+_0x2f09e1(0x128),'id':_0x551193['id']});}[_0x111335(0x119)]({errorMessage:_0x31d94d,id:_0x433259}){const _0x361545=_0x111335;this[_0x361545(0x183)][_0x361545(0x15f)][_0x361545(0x17c)](_0x361545(0x114),{'initialContent':_0x361545(0x10c)+_0x31d94d+_0x361545(0x128),'id':_0x433259});}[_0x111335(0x118)](_0x329ce8){const _0xb13ce9=_0x111335;return this[_0xb13ce9(0x140)][_0xb13ce9(0x11b)](async()=>{const _0x28a250=_0xb13ce9;this[_0x28a250(0x183)][_0x28a250(0x15f)][_0x28a250(0x17c)](_0x28a250(0x139),{'id':_0x329ce8[_0x28a250(0x162)]+':'+_0x329ce8['id']}),this[_0x28a250(0x183)][_0x28a250(0x15f)][_0x28a250(0x15b)]('');});}async[_0x111335(0x186)](_0x11643f){const _0x31c6f3=_0x111335;return this[_0x31c6f3(0x140)][_0x31c6f3(0x11b)](async()=>{const _0x2cef30=_0x31c6f3;this[_0x2cef30(0x183)][_0x2cef30(0x15f)][_0x2cef30(0x17c)](_0x2cef30(0x14e),{'id':_0x11643f[_0x2cef30(0x162)]+':'+_0x11643f['id'],'areActionsDisabled':_0x11643f[_0x2cef30(0x154)],'showDiff':this[_0x2cef30(0x164)]}),this[_0x2cef30(0x183)][_0x2cef30(0x15f)][_0x2cef30(0x15b)]('');});}[_0x111335(0xf1)](_0x2c93c7){const _0x1014fe=_0x111335;this[_0x1014fe(0x183)][_0x1014fe(0x15f)][_0x1014fe(0x17c)](_0x1014fe(0x168),{'id':_0x2c93c7['id'],'capabilities':_0x2c93c7[_0x1014fe(0x157)]});}[_0x111335(0x143)](_0x29d1ea){const _0x2e9a35=_0x111335,_0xa734a=this[_0x2e9a35(0x183)][_0x2e9a35(0x15f)][_0x2e9a35(0x153)][_0x2e9a35(0x15c)](_0x4a9faa=>_0x4a9faa[_0x2e9a35(0x174)]['id']==_0x29d1ea['id']&&_0x4a9faa instanceof _0x5bf630);_0xa734a&&_0xa734a[_0x2e9a35(0x110)](_0x2e9a35(0x185),_0x29d1ea[_0x2e9a35(0x185)]);}async[_0x111335(0x159)](_0x5f07fd){const _0x5e56d8=_0x111335,_0x34b03a=_0x5f07fd[_0x5e56d8(0x15d)]||this[_0x5e56d8(0xfa)];return this[_0x5e56d8(0x140)][_0x5e56d8(0x11b)](async _0x592b9b=>{const _0x32b754=_0x5e56d8;await this[_0x32b754(0x183)][_0x32b754(0x15f)][_0x32b754(0x155)]({..._0x5f07fd,'abortSignal':_0x592b9b,'renderingStrategy':_0x34b03a}),_0x5f07fd[_0x32b754(0xf6)]&&this[_0x32b754(0xf9)](_0x5f07fd['id']);});}[_0x111335(0xf2)](_0x3b0f02,_0x480701){const _0x28e686=_0x111335;this[_0x28e686(0x183)][_0x28e686(0x15f)][_0x28e686(0x103)](_0x3b0f02,_0x480701);}async[_0x111335(0x116)](_0xb14e42){const _0x4d3dfa=_0x111335,_0x4bc816=_0xb14e42[_0x4d3dfa(0x15d)]||this[_0x4d3dfa(0xfa)];return this[_0x4d3dfa(0x140)][_0x4d3dfa(0x11b)](async _0x5a94c6=>{const _0x339c99=_0x4d3dfa;await this[_0x339c99(0x183)][_0x339c99(0x15f)][_0x339c99(0x167)]({..._0xb14e42,'abortSignal':_0x5a94c6,'renderingStrategy':_0x4bc816}),_0xb14e42[_0x339c99(0xf6)]&&this[_0x339c99(0xf9)](_0xb14e42['id']);});}[_0x111335(0x152)](_0x438bab){const _0x34ce84=_0x111335;this[_0x34ce84(0x183)][_0x34ce84(0x15f)][_0x34ce84(0x14a)](_0x438bab);}[_0x111335(0xf9)](_0x29ff66){const _0x540396=_0x111335;this[_0x540396(0x183)][_0x540396(0x15f)][_0x540396(0x188)](_0x29ff66);}[_0x111335(0x160)](_0xc808ec){const _0x3cd9fa=_0x111335;this[_0x3cd9fa(0x183)][_0x3cd9fa(0x15f)][_0x3cd9fa(0x129)]()[_0x3cd9fa(0x10a)](_0x456757=>_0x456757[_0x3cd9fa(0x144)](_0xc808ec))[_0x3cd9fa(0x102)](_0x5505e1=>this[_0x3cd9fa(0x183)][_0x3cd9fa(0x15f)][_0x3cd9fa(0x107)](_0x5505e1));}[_0x111335(0x130)](_0x5dde9e){const _0x1cde9b=_0x111335;this[_0x1cde9b(0x183)][_0x1cde9b(0x15f)][_0x1cde9b(0x15b)](this[_0x1cde9b(0x13e)](_0x5dde9e)),this[_0x1cde9b(0x183)][_0x1cde9b(0x120)][_0x1cde9b(0x13a)](!this[_0x1cde9b(0x142)][_0x1cde9b(0x105)][_0x1cde9b(0x17b)](_0x1cde9b(0xfd))),this[_0x1cde9b(0x131)]=!0x0,this[_0x1cde9b(0x183)][_0x1cde9b(0x15f)][_0x1cde9b(0x16b)]();}[_0x111335(0x10b)](_0x57bef7){const _0x3a3ff3=_0x111335;this[_0x3a3ff3(0x140)][_0x3a3ff3(0x175)](),this[_0x3a3ff3(0x183)][_0x3a3ff3(0x15f)][_0x3a3ff3(0x129)]()[_0x3a3ff3(0x10a)](_0x54b1a9=>_0x54b1a9[_0x3a3ff3(0x144)](_0x57bef7['id']))[_0x3a3ff3(0x102)](_0x32f242=>this[_0x3a3ff3(0xf9)](_0x32f242)),this[_0x3a3ff3(0x131)]=!0x1,this[_0x3a3ff3(0x183)][_0x3a3ff3(0x15f)][_0x3a3ff3(0x135)]();}async[_0x111335(0x17a)](){const _0x6273f6=_0x111335;return this[_0x6273f6(0x140)][_0x6273f6(0x111)][_0x6273f6(0x106)](()=>{const _0x5c85ed=_0x6273f6;this[_0x5c85ed(0x131)]=!0x1,this[_0x5c85ed(0x183)][_0x5c85ed(0x15f)][_0x5c85ed(0x135)]();});}[_0x111335(0x15e)](_0x43c10e,_0x3ff636){const _0x5c67b1=_0x111335;this[_0x5c67b1(0x183)][_0x5c67b1(0x120)][_0x5c67b1(0x15e)](_0x43c10e,_0x3ff636);}[_0x111335(0x127)](_0x415307){const _0x153386=_0x111335;this[_0x153386(0x183)][_0x153386(0x120)][_0x153386(0x127)](_0x415307);}[_0x111335(0x141)](_0x1d455e,_0x4bff2f){const _0x278c8b=_0x111335;this[_0x278c8b(0x183)][_0x278c8b(0x120)][_0x278c8b(0x141)](_0x1d455e,_0x4bff2f);}[_0x111335(0x124)](_0x200e95){const _0x101746=_0x111335;this[_0x101746(0x183)][_0x101746(0x120)][_0x101746(0x124)](_0x200e95);}[_0x111335(0x149)](_0x23fd7b){const _0x131fe1=_0x111335;this[_0x131fe1(0x183)][_0x131fe1(0x120)][_0x131fe1(0x149)](_0x23fd7b);}[_0x111335(0x187)](){const _0x3275cd=_0x111335;this[_0x3275cd(0x183)][_0x3275cd(0x120)][_0x3275cd(0x187)]();}[_0x111335(0x109)](){const _0x397820=_0x111335;this[_0x397820(0x183)][_0x397820(0x120)][_0x397820(0x109)]();}[_0x111335(0x11a)](_0x7bc645,_0x6d1067,_0x423948){const _0x16dddc=_0x111335;this[_0x16dddc(0x183)][_0x16dddc(0x120)][_0x16dddc(0x11a)](_0x7bc645,_0x6d1067,_0x423948);}[_0x111335(0x104)](){const _0x92b849=_0x111335;this[_0x92b849(0x183)][_0x92b849(0x120)][_0x92b849(0x104)](),this[_0x92b849(0x183)][_0x92b849(0x120)][_0x92b849(0x184)](this[_0x92b849(0x11c)]());}[_0x111335(0x13c)](_0x2b2719){const _0x3ddc40=_0x111335;this[_0x3ddc40(0x183)][_0x3ddc40(0x120)][_0x3ddc40(0x13c)](_0x2b2719);}[_0x111335(0x117)](_0x5ee989){const _0x1b83e8=_0x111335;this[_0x1b83e8(0x183)][_0x1b83e8(0x120)][_0x1b83e8(0x14c)](_0x5ee989[_0x1b83e8(0x123)]),this[_0x1b83e8(0x183)][_0x1b83e8(0x120)][_0x1b83e8(0x151)](_0x5ee989[_0x1b83e8(0xfb)]),this[_0x1b83e8(0x183)][_0x1b83e8(0x120)][_0x1b83e8(0x184)](this[_0x1b83e8(0x11c)](_0x5ee989));}[_0x111335(0x12a)](_0xae4096,_0xc3facb){const _0x5acea7=_0x111335;this[_0x5acea7(0x183)][_0x5acea7(0x120)][_0x5acea7(0x161)](_0xae4096),_0xc3facb&&this[_0x5acea7(0x183)][_0x5acea7(0x120)][_0x5acea7(0x13a)](!0x1);}[_0x111335(0xff)](_0x2aca49){const _0x2ecc8f=_0x111335;this[_0x2ecc8f(0xfa)]=_0x2aca49;}[_0x111335(0x138)](_0xa8cabd){const _0xad22c7=_0x111335;this[_0xad22c7(0x183)][_0xad22c7(0x15f)][_0xad22c7(0x138)](_0xa8cabd);}[_0x111335(0x16c)](){const _0x28b865=_0x111335;this[_0x28b865(0x122)](_0x57e3d5(this[_0x28b865(0x142)][_0x28b865(0x176)],_0x28b865(0x172)));}[_0x111335(0x122)](_0x5a6874,_0x104d15=!0x1){const _0x20670e=_0x111335;if(_0x104d15&&!_0x348b65()&&_0x5a6874[_0x20670e(0x179)])return this[_0x20670e(0x183)][_0x20670e(0x121)][_0x20670e(0x17d)]='',void this[_0x20670e(0x16f)](_0x5a6874);this[_0x20670e(0x183)][_0x20670e(0x121)][_0x20670e(0x17d)]=_0x5a6874;}[_0x111335(0x16f)](_0x382738){const _0x51f52d=_0x111335;let _0x53c7fa=0x0;clearInterval(this[_0x51f52d(0x108)]),this[_0x51f52d(0x108)]=setInterval(()=>{const _0x35999d=_0x51f52d;this[_0x35999d(0x183)][_0x35999d(0x121)][_0x35999d(0x17d)]=this[_0x35999d(0x183)][_0x35999d(0x121)][_0x35999d(0x17d)]+_0x382738[_0x53c7fa],_0x53c7fa++,_0x53c7fa===_0x382738[_0x35999d(0x179)]&&clearInterval(this[_0x35999d(0x108)]);},0x1e);}[_0x111335(0x16d)](_0x14b48d){const _0x3da802=_0x111335;this[_0x3da802(0x183)][_0x3da802(0x121)][_0x3da802(0x126)]=_0x14b48d;}[_0x111335(0x13e)](_0x168b43){const _0x5591e3=_0x111335,_0x5c8209=_0x168b43[_0x5591e3(0x157)];return _0x5c8209[_0x5591e3(0x123)]&&_0x5c8209[_0x5591e3(0xfb)]?_0x57e3d5(this[_0x5591e3(0x142)][_0x5591e3(0x176)],_0x5591e3(0xf3)):_0x5c8209[_0x5591e3(0x123)]?_0x57e3d5(this[_0x5591e3(0x142)][_0x5591e3(0x176)],_0x5591e3(0x11d)):_0x5c8209[_0x5591e3(0xfb)]?_0x57e3d5(this[_0x5591e3(0x142)][_0x5591e3(0x176)],_0x5591e3(0x101)):_0x57e3d5(this[_0x5591e3(0x142)][_0x5591e3(0x176)],_0x5591e3(0x177));}[_0x111335(0x11c)](_0x13470d){const _0x3cc536=_0x111335;return _0x13470d?_0x13470d[_0x3cc536(0x123)]&&_0x13470d[_0x3cc536(0xfb)]?_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0x137)):_0x13470d[_0x3cc536(0x123)]?_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0xf4)):_0x13470d[_0x3cc536(0xfb)]?_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0x165)):_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0x12f)):_0x57e3d5(this[_0x3cc536(0x142)][_0x3cc536(0x176)],_0x3cc536(0x12f));}[_0x111335(0x14f)](_0x5e63c6,_0x41b1c9,_0x14b15c,_0x549f60){const _0x489ea6=_0x111335;this[_0x489ea6(0x183)][_0x489ea6(0x14f)](_0x5e63c6,_0x41b1c9,_0x14b15c,_0x549f60);}[_0x111335(0x147)](_0x4855a1){const _0x576cf2=_0x111335;this[_0x576cf2(0x183)][_0x576cf2(0x147)](_0x4855a1);}[_0x111335(0x10d)](){const _0x490389=_0x111335;this[_0x490389(0x183)][_0x490389(0x120)][_0x490389(0x10d)]();}[_0x111335(0xf7)](_0x2353f3,_0x1254e0){const _0x8fa3a5=_0x111335;this[_0x8fa3a5(0x183)][_0x8fa3a5(0x15f)][_0x8fa3a5(0x100)](_0x2353f3,_0x1254e0);}[_0x111335(0xf0)](){const _0xace2a5=_0x111335;this[_0xace2a5(0x183)][_0xace2a5(0x120)][_0xace2a5(0x13f)]=!0x0;}[_0x111335(0x17e)](){const _0x22cb01=_0x111335;this[_0x22cb01(0x183)][_0x22cb01(0x120)][_0x22cb01(0x13f)]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36bb60=_0x59ee;(function(_0x339b39,_0x24efdd){const _0x1358d9=_0x59ee,_0x30f0d4=_0x339b39();while(!![]){try{const _0x570167=-parseInt(_0x1358d9(0x23c))/0x1+-parseInt(_0x1358d9(0x242))/0x2*(-parseInt(_0x1358d9(0x200))/0x3)+-parseInt(_0x1358d9(0x21f))/0x4+-parseInt(_0x1358d9(0x1d2))/0x5*(-parseInt(_0x1358d9(0x228))/0x6)+parseInt(_0x1358d9(0x23a))/0x7+parseInt(_0x1358d9(0x1ea))/0x8+-parseInt(_0x1358d9(0x1ed))/0x9;if(_0x570167===_0x24efdd)break;else _0x30f0d4['push'](_0x30f0d4['shift']());}catch(_0x4d9226){_0x30f0d4['push'](_0x30f0d4['shift']());}}}(_0x16c3,0xc57ae));import{CKEditorError as _0x14b66b,ObservableMixin as _0x3aeb56,uid as _0x1b8c2d}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x387a93,AIContextTextResourceType as _0x49caea}from'../../aicore/model/aicontext.js';import{escape as _0x20c0e9}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x36bb60(0x1d9),_0x36bb60(0x1d3),_0x36bb60(0x221),_0x36bb60(0x231),_0x36bb60(0x1fc),_0x36bb60(0x21e),_0x36bb60(0x1df),_0x36bb60(0x254),_0x36bb60(0x1cd)];function _0x16c3(){const _0x47030f=['uploadFile','hidden','contextItemAdded','from','_mapContextItemToRequestData','uploadUrl','addCurrentDocumentToContext','content','sourceResourcesLoaded','HTML','_getCustomSourcesInitialState','map','_conversationContextItems','push','files','SELECTION','addUrlToContext','ai-chat-source-not-found','_connector','8751440lTyAmu','getId','_ongoingUploadOperations','5948001sseIrJ','version','getDocument','attributes','ai-chat-context-unsupported-type','_config','_addContextOptionsState','get','ai-chat-document-upload-failed','sessionId','selection','updateCurrentDocument','_removeContextItem','all','_findSourceIdsByResourceId','error','ai-chat-context-invalid-data','object\x20with\x20content\x20and\x20type\x20properties','string','147NAQEFh','_createContextItemFromContent','TEXT','current-document','text/plain','url-','_ownerId','removeSelectionFromContext','forEach','_setAddContextOptionsDefaultState','values','find','clearPendingContextItems','set','isSelectionInContext','populateFromMessage','filter','isHidden','urls','getResources','isCurrentDocumentInConversation','isReadOnly','removeFromContext','sources','ai-chat-url-upload-failed','abort','url','resourceId','message','start','addContextOptionsChanged','610748MgrBsc','text/html','contextItemLoadingEnded','document','isInContext','MARKDOWN','uiId','getData','end','575922fFjjQf','size','init','abortController','getPendingContextItems','name','_convertTextResourceToFile','file-','length','contextSent','ai-chat-source-resources-load-failed','enabled','ai-request-aborted','data','_finishContextItemLoading','_addToConversationContextItem','type','addToConversationContext','9914310CGVodU','files-','1385789yTNjuB','_toggleAddCurrentDocumentOptionVisibility','Current\x20document','getSentContextItems','ai-chat-resource-load-failed','startsWith','16408KGLYqr','addFilesToContext','ai-chat-file-upload-failed','fire','addSelectionToContext','text/markdown','loadSourceResources','_finishUploadOperation','fetchDocument','_startUploadOperation','FILE','_ongoingUploads','File','addResourceToContext','resources','ai-chat-resource-no-data','uploadDocument','stack','resourceStateChanged','delete','label','isCurrentDocumentInContext','has','_addContextItem','uploadProgressChanged','mapContextItemsToRequestData','_pendingContextItems','DOCUMENT','URL','5PHeDVD','contextItemRemoved','_isResourceInContext','object','_updateResourceInContextState'];_0x16c3=function(){return _0x47030f;};return _0x16c3();}function _0x59ee(_0x261871,_0x1c93aa){const _0x16c352=_0x16c3();return _0x59ee=function(_0x59eeb0,_0x204079){_0x59eeb0=_0x59eeb0-0x1cd;let _0x4cbe75=_0x16c352[_0x59eeb0];return _0x4cbe75;},_0x59ee(_0x261871,_0x1c93aa);}export class AIChatContext extends _0x3aeb56(){[_0x36bb60(0x1e9)];[_0x36bb60(0x1f2)];[_0x36bb60(0x206)];constructor({connector:_0x267f42,config:_0x36f5de,ownerId:_0x6cffa3}){const _0x35e3fd=_0x36bb60;super(),this[_0x35e3fd(0x1e9)]=_0x267f42,this[_0x35e3fd(0x1f2)]=_0x36f5de,this[_0x35e3fd(0x206)]=_0x6cffa3;}[_0x36bb60(0x22a)](){const _0x2c2608=_0x36bb60;this[_0x2c2608(0x1cf)]=new Map(),this[_0x2c2608(0x1e3)]=new Map(),this[_0x2c2608(0x24d)]=new Map(),this[_0x2c2608(0x1ec)]=new Map(),this[_0x2c2608(0x209)]();}[_0x36bb60(0x22c)](){const _0x5c8930=_0x36bb60;return this[_0x5c8930(0x1cf)];}async[_0x36bb60(0x20f)](_0x3d8333){const _0x573cba=_0x36bb60,_0x48e10b=await this[_0x573cba(0x201)](_0x3d8333);return this[_0x573cba(0x237)](_0x48e10b),_0x573cba(0x203)===_0x48e10b[_0x573cba(0x225)]&&this[_0x573cba(0x23d)](),_0x48e10b;}async[_0x36bb60(0x201)](_0x5109e1){const _0x3a06de=_0x36bb60;if(_0x5109e1[_0x3a06de(0x238)]===_0x387a93[_0x3a06de(0x1d0)]){const _0x24cb85=await this[_0x3a06de(0x1e9)][_0x3a06de(0x24a)](this[_0x3a06de(0x206)],_0x5109e1['id'])[_0x3a06de(0x1ef)]();return{'id':_0x3a06de(0x203),'uiId':_0x3a06de(0x203),'label':_0x3a06de(0x23e),'type':_0x5109e1[_0x3a06de(0x238)],'content':_0x24cb85[_0x3a06de(0x1de)],'hidden':this[_0x3a06de(0x1e3)][_0x3a06de(0x258)](_0x3a06de(0x203)),'version':_0x24cb85[_0x3a06de(0x1f0)]?.[_0x3a06de(0x1ee)],'sessionId':_0x24cb85[_0x3a06de(0x1f0)]?.[_0x3a06de(0x1f6)]};}return{'id':_0x5109e1['id'],'uiId':_0x5109e1['id'],'label':_0x5109e1[_0x3a06de(0x1f0)]?.[_0x3a06de(0x256)]||_0x5109e1[_0x3a06de(0x22d)]||_0x5109e1[_0x3a06de(0x21a)]||_0x5109e1['id'],'type':_0x5109e1[_0x3a06de(0x238)],..._0x5109e1?.[_0x3a06de(0x1f0)]?.[_0x3a06de(0x21b)]?{'resourceId':_0x5109e1[_0x3a06de(0x1f0)]?.[_0x3a06de(0x21b)]}:{}};}[_0x36bb60(0x23f)](){const _0x3055bc=_0x36bb60;return new Map(this[_0x3055bc(0x1e3)]);}[_0x36bb60(0x216)](_0x48bd5b){const _0x4dc535=_0x36bb60,_0x457e1a=this[_0x4dc535(0x1cf)][_0x4dc535(0x1f4)](_0x48bd5b);_0x457e1a?.[_0x4dc535(0x215)]||this[_0x4dc535(0x1f9)](_0x48bd5b);}[_0x36bb60(0x20c)](){const _0x4b4354=_0x36bb60;if(0x0===this[_0x4b4354(0x1cf)][_0x4b4354(0x229)])return;for(const _0x44db8a of this[_0x4b4354(0x1cf)][_0x4b4354(0x20a)]())this[_0x4b4354(0x1f9)](_0x44db8a[_0x4b4354(0x225)]);const _0x23ceca=this[_0x4b4354(0x1e3)][_0x4b4354(0x1f4)](_0x4b4354(0x203))||this[_0x4b4354(0x1cf)][_0x4b4354(0x1f4)](_0x4b4354(0x203));_0x23ceca&&this[_0x4b4354(0x259)]({..._0x23ceca,'isReadOnly':!0x0,'hidden':!0x0});}[_0x36bb60(0x239)](_0x17ffea){const _0xa3da03=_0x36bb60;for(const _0x42bd2f of _0x17ffea[_0xa3da03(0x20a)]())this[_0xa3da03(0x237)](_0x42bd2f);this[_0xa3da03(0x20c)](),this[_0xa3da03(0x245)](_0xa3da03(0x231),{'contextItems':Array[_0xa3da03(0x1da)](this[_0xa3da03(0x23f)]()[_0xa3da03(0x20a)]())});}[_0x36bb60(0x257)](){const _0x53a596=_0x36bb60;return this[_0x53a596(0x1cf)][_0x53a596(0x258)](_0x53a596(0x203));}[_0x36bb60(0x20e)](){const _0x245e2b=_0x36bb60;return this[_0x245e2b(0x1cf)][_0x245e2b(0x258)](_0x245e2b(0x1f7));}[_0x36bb60(0x214)](){const _0x1a6431=_0x36bb60;return this[_0x1a6431(0x1e3)][_0x1a6431(0x258)](_0x1a6431(0x203));}static[_0x36bb60(0x1ce)](_0x377774){const _0x19f74f=_0x36bb60;return Array[_0x19f74f(0x1da)](_0x377774[_0x19f74f(0x20a)]())[_0x19f74f(0x1e2)](_0x69830f=>this[_0x19f74f(0x1db)](_0x69830f))[_0x19f74f(0x210)](_0x1a5c3d=>null!==_0x1a5c3d);}async[_0x36bb60(0x243)](_0x15221d,_0x2e3469,_0x1d4135=_0x387a93[_0x36bb60(0x24c)]){const _0x1c7f30=_0x36bb60,_0x2f5b9c=_0x1c7f30(0x23b)+_0x1b8c2d();this[_0x1c7f30(0x24b)](_0x2f5b9c);try{await Promise[_0x1c7f30(0x1fa)](_0x15221d[_0x1c7f30(0x1e2)](async _0x57865a=>{const _0x3580e1=_0x1c7f30,_0x28664a=_0x3580e1(0x22f)+_0x1b8c2d(),_0x4eb627=_0x20c0e9(_0x57865a[_0x3580e1(0x22d)]);try{this[_0x3580e1(0x259)]({'type':_0x1d4135,'label':_0x2e3469?.[_0x3580e1(0x256)]||_0x4eb627,'uiId':_0x28664a,'resourceId':_0x2e3469?.[_0x3580e1(0x21b)]},!0x0);const _0x3db59f=this[_0x3580e1(0x1e9)][_0x3580e1(0x1d7)](this[_0x3580e1(0x206)],_0x57865a,_0x2e3469);this[_0x3580e1(0x24d)][_0x3580e1(0x20d)](_0x28664a,_0x3db59f[_0x3580e1(0x22b)]);const {id:_0x4b1fe6}=await _0x3db59f[_0x3580e1(0x1eb)]();this[_0x3580e1(0x24d)][_0x3580e1(0x255)](_0x28664a),this[_0x3580e1(0x236)]({'type':_0x1d4135,'id':_0x4b1fe6,'label':_0x2e3469?.[_0x3580e1(0x256)]||_0x4eb627,'uiId':_0x28664a,'resourceId':_0x2e3469?.[_0x3580e1(0x21b)]},!0x1);}catch(_0x4c577b){this[_0x3580e1(0x24d)][_0x3580e1(0x255)](_0x28664a);if(!_0x4c577b[_0x3580e1(0x21c)][_0x3580e1(0x241)](_0x3580e1(0x234))){const _0x525a5f=new _0x14b66b(_0x3580e1(0x244),null,{'fileName':_0x4eb627});_0x525a5f[_0x3580e1(0x253)]=_0x4c577b[_0x3580e1(0x253)],this[_0x3580e1(0x245)](_0x3580e1(0x1fc),{'error':_0x525a5f,'fileName':_0x4eb627});}this[_0x3580e1(0x1f9)](_0x28664a);}}));}finally{this[_0x1c7f30(0x249)](_0x2f5b9c);}}[_0x36bb60(0x1dd)](_0x48b454){const _0x152d61=_0x36bb60;if(this[_0x152d61(0x257)]())return;const _0x3d7e40={'type':_0x387a93[_0x152d61(0x1d0)],'uiId':_0x152d61(0x203),'label':_0x48b454,'isReadOnly':this[_0x152d61(0x1e3)][_0x152d61(0x258)](_0x152d61(0x203)),'hidden':this[_0x152d61(0x1e3)][_0x152d61(0x258)](_0x152d61(0x203))};this[_0x152d61(0x259)](_0x3d7e40);}async[_0x36bb60(0x1f8)](_0x1c9fe3,_0x2db623,_0x41d169,_0x328bc0){const _0x1e6627=_0x36bb60,_0x1c18e7=this[_0x1e6627(0x1cf)][_0x1e6627(0x1f4)](_0x1e6627(0x203));if(_0x1c18e7&&_0x1c9fe3){_0x1c18e7[_0x1e6627(0x1f7)]=_0x328bc0?_0x328bc0[_0x1e6627(0x1e2)](_0x480a51=>({'start':_0x480a51[_0x1e6627(0x21d)],'end':_0x480a51[_0x1e6627(0x227)]})):[];try{if(_0x1c18e7[_0x1e6627(0x1ee)]===_0x2db623)return;const {id:_0x587ed9}=await this[_0x1e6627(0x1e9)][_0x1e6627(0x252)](this[_0x1e6627(0x206)],_0x1c9fe3,{'version':_0x2db623,'sessionId':_0x41d169})[_0x1e6627(0x1eb)]();_0x1c18e7['id']=_0x587ed9,_0x1c18e7[_0x1e6627(0x1de)]=_0x1c9fe3,_0x1c18e7[_0x1e6627(0x1ee)]=_0x2db623,_0x1c18e7[_0x1e6627(0x1f6)]=_0x41d169;}catch(_0x279ea4){const _0x1f1b5a=new _0x14b66b(_0x1e6627(0x1f5),null);_0x1f1b5a[_0x1e6627(0x253)]=_0x279ea4[_0x1e6627(0x253)],this[_0x1e6627(0x245)](_0x1e6627(0x1fc),{'error':_0x1f1b5a});}}}[_0x36bb60(0x246)](_0x4f6c67){const _0x362604=_0x36bb60;this[_0x362604(0x259)]({'type':_0x387a93[_0x362604(0x1e6)],'label':_0x4f6c67,'uiId':_0x362604(0x1f7),'content':_0x4f6c67});}[_0x36bb60(0x207)](){const _0x2a98d9=_0x36bb60;this[_0x2a98d9(0x1f9)](_0x2a98d9(0x1f7));}async[_0x36bb60(0x1e7)](_0x820d80,_0x50c92e){const _0x117f20=_0x36bb60,_0x21b63a=_0x117f20(0x205)+_0x1b8c2d();this[_0x117f20(0x24b)](_0x21b63a);const _0x387f4b=_0x117f20(0x205)+_0x1b8c2d();try{this[_0x117f20(0x259)]({'type':_0x387a93[_0x117f20(0x1d1)],'label':_0x50c92e?.[_0x117f20(0x256)]||_0x820d80,'uiId':_0x387f4b,'resourceId':_0x50c92e?.[_0x117f20(0x21b)]},!0x0);const _0x593f97=this[_0x117f20(0x1e9)][_0x117f20(0x1dc)](this[_0x117f20(0x206)],_0x820d80,_0x50c92e);this[_0x117f20(0x24d)][_0x117f20(0x20d)](_0x387f4b,_0x593f97[_0x117f20(0x22b)]);const {id:_0x251001}=await _0x593f97[_0x117f20(0x1eb)]();this[_0x117f20(0x24d)][_0x117f20(0x255)](_0x387f4b),this[_0x117f20(0x236)]({'type':_0x387a93[_0x117f20(0x1d1)],'id':_0x251001,'label':_0x50c92e?.[_0x117f20(0x256)]||_0x820d80,'uiId':_0x387f4b,'resourceId':_0x50c92e?.[_0x117f20(0x21b)]},!0x1);}catch(_0x331f73){this[_0x117f20(0x24d)][_0x117f20(0x255)](_0x387f4b),(_0x331f73[_0x117f20(0x21c)][_0x117f20(0x241)](_0x117f20(0x234))||this[_0x117f20(0x245)](_0x117f20(0x1fc),{'error':new _0x14b66b(_0x117f20(0x218),this,{'url':_0x820d80,'originalError':_0x331f73}),'url':_0x820d80}),this[_0x117f20(0x1f9)](_0x387f4b));}finally{this[_0x117f20(0x249)](_0x21b63a);}}async[_0x36bb60(0x248)](_0x2063e7,_0x41d349,_0x5752e4){const _0xd75f02=_0x36bb60,_0x4bd225=this[_0xd75f02(0x1f3)][_0xd75f02(0x217)][_0xd75f02(0x20b)](_0x49c1ee=>_0x49c1ee['id']===_0x2063e7);if(!_0x4bd225)return this[_0xd75f02(0x245)](_0xd75f02(0x1fc),{'error':new _0x14b66b(_0xd75f02(0x1e8),this,{'sourceId':_0x2063e7}),'sourceId':_0x2063e7}),[];try{const _0x635da9=(await _0x4bd225[_0xd75f02(0x213)](_0x41d349))[_0xd75f02(0x1e2)](_0x24707d=>{const _0x6c7f66=_0xd75f02,_0x31e987=this[_0x6c7f66(0x1d4)](_0x24707d['id']);return{..._0x24707d,'isInContext':_0x31e987};});return _0x4bd225[_0xd75f02(0x250)]=_0x635da9,this[_0xd75f02(0x245)](_0xd75f02(0x1df),{'sourceId':_0x2063e7,'source':_0x4bd225,'resources':_0x635da9,'uid':_0x5752e4}),_0x635da9;}catch(_0x3518c3){return this[_0xd75f02(0x245)](_0xd75f02(0x1fc),{'error':new _0x14b66b(_0xd75f02(0x232),this,{'sourceId':_0x2063e7,'originalError':_0x3518c3}),'sourceId':_0x2063e7,'sourceLabel':_0x4bd225[_0xd75f02(0x256)]}),[];}}async[_0x36bb60(0x24f)](_0x2d96fb,_0x12c4c4){const _0x164790=_0x36bb60;if(this[_0x164790(0x1d4)](_0x12c4c4['id']))return;let _0x3ec9cf=_0x12c4c4[_0x164790(0x235)];if(!_0x3ec9cf&&_0x2d96fb[_0x164790(0x226)])try{_0x3ec9cf=await _0x2d96fb[_0x164790(0x226)](_0x12c4c4['id']);}catch(_0x46d135){return void this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x240),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'originalError':_0x46d135}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});}if(_0x3ec9cf)switch(_0x12c4c4[_0x164790(0x238)]){case _0x387a93[_0x164790(0x1d1)]:if(_0x164790(0x1ff)!=typeof _0x3ec9cf)return void this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x1fd),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'expectedType':_0x164790(0x1ff),'actualType':typeof _0x3ec9cf}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});await this[_0x164790(0x1e7)](_0x3ec9cf,{'label':_0x12c4c4[_0x164790(0x256)],'resourceId':_0x12c4c4['id']});break;case _0x387a93[_0x164790(0x24c)]:if(!(_0x3ec9cf instanceof File))return void this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x1fd),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'expectedType':_0x164790(0x24e),'actualType':typeof _0x3ec9cf}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});await this[_0x164790(0x243)]([_0x3ec9cf],{'label':_0x12c4c4[_0x164790(0x256)],'resourceId':_0x12c4c4['id']});break;case _0x387a93[_0x164790(0x202)]:if(_0x164790(0x1d5)!=typeof _0x3ec9cf||!(_0x164790(0x1de)in _0x3ec9cf)||!(_0x164790(0x238)in _0x3ec9cf))return void this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x1fd),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'expectedType':_0x164790(0x1fe),'actualType':typeof _0x3ec9cf}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});_0x3ec9cf=AIChatContext[_0x164790(0x22e)](_0x3ec9cf,_0x12c4c4[_0x164790(0x256)]),await this[_0x164790(0x243)]([_0x3ec9cf],{'label':_0x12c4c4[_0x164790(0x256)],'resourceId':_0x12c4c4['id']},_0x387a93[_0x164790(0x202)]);break;default:this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x1f1),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id'],'resourceType':_0x12c4c4[_0x164790(0x238)]}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});}else this[_0x164790(0x245)](_0x164790(0x1fc),{'error':new _0x14b66b(_0x164790(0x251),this,{'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']}),'resourceId':_0x12c4c4['id'],'sourceId':_0x2d96fb['id']});}static[_0x36bb60(0x22e)](_0x587a10,_0x4ef3cf){const _0x7cff63=_0x36bb60;switch(_0x587a10[_0x7cff63(0x238)]){case _0x49caea[_0x7cff63(0x224)]:return new File([_0x587a10[_0x7cff63(0x1de)]],_0x4ef3cf,{'type':_0x7cff63(0x247)});case _0x49caea[_0x7cff63(0x1e0)]:return new File([_0x587a10[_0x7cff63(0x1de)]],_0x4ef3cf,{'type':_0x7cff63(0x220)});default:return new File([_0x587a10[_0x7cff63(0x1de)]],_0x4ef3cf,{'type':_0x7cff63(0x204)});}}static[_0x36bb60(0x1db)](_0x471f4d){const _0x44251e=_0x36bb60;switch(_0x471f4d[_0x44251e(0x238)]){case _0x387a93[_0x44251e(0x24c)]:return{'type':_0x387a93[_0x44251e(0x24c)],'id':_0x471f4d['id']};case _0x387a93[_0x44251e(0x1d1)]:return{'type':_0x387a93[_0x44251e(0x1d1)],'id':_0x471f4d['id']};case _0x387a93[_0x44251e(0x1d0)]:return{'type':_0x387a93[_0x44251e(0x1d0)],'id':_0x471f4d['id'],..._0x471f4d[_0x44251e(0x1f7)]?.[_0x44251e(0x230)]&&{'selection':_0x471f4d[_0x44251e(0x1f7)]}};case _0x387a93[_0x44251e(0x202)]:return{'type':_0x387a93[_0x44251e(0x24c)],'id':_0x471f4d['id']};default:return null;}}[_0x36bb60(0x259)](_0x18bd4b,_0x16d2ef=!0x1){const _0xd5943a=_0x36bb60;if(this[_0xd5943a(0x1cf)][_0xd5943a(0x20d)](_0x18bd4b[_0xd5943a(0x225)],_0x18bd4b),_0x18bd4b[_0xd5943a(0x1d8)]||this[_0xd5943a(0x245)](_0xd5943a(0x1d9),{'contextItem':_0x18bd4b,'isLoading':_0x16d2ef}),_0xd5943a(0x203)===_0x18bd4b[_0xd5943a(0x225)]&&this[_0xd5943a(0x23d)](),_0x18bd4b[_0xd5943a(0x21b)]){const _0x3ed0c=this[_0xd5943a(0x1fb)](_0x18bd4b[_0xd5943a(0x21b)]);_0x3ed0c&&_0x3ed0c[_0xd5943a(0x208)](_0xbf4b9f=>{const _0x5c09d9=_0xd5943a;this[_0x5c09d9(0x1d6)](_0xbf4b9f,_0x18bd4b[_0x5c09d9(0x21b)],!0x0);});}}[_0x36bb60(0x1f9)](_0x1fb334){const _0x1906db=_0x36bb60,_0x1d2398=this[_0x1906db(0x1cf)][_0x1906db(0x1f4)](_0x1fb334),_0x3e04b5=this[_0x1906db(0x24d)][_0x1906db(0x1f4)](_0x1fb334);if(_0x3e04b5&&(_0x3e04b5[_0x1906db(0x219)](),this[_0x1906db(0x24d)][_0x1906db(0x255)](_0x1fb334)),_0x1d2398?.[_0x1906db(0x21b)]){const _0x3dd654=this[_0x1906db(0x1fb)](_0x1d2398[_0x1906db(0x21b)]);_0x3dd654&&_0x3dd654[_0x1906db(0x208)](_0x482d4a=>{const _0x567c72=_0x1906db;this[_0x567c72(0x1d6)](_0x482d4a,_0x1d2398[_0x567c72(0x21b)],!0x1);});}this[_0x1906db(0x1cf)][_0x1906db(0x255)](_0x1fb334),this[_0x1906db(0x245)](_0x1906db(0x1d3),{'uiId':_0x1fb334,'type':_0x1d2398?.[_0x1906db(0x238)]}),_0x1906db(0x203)===_0x1fb334&&this[_0x1906db(0x23d)]();}[_0x36bb60(0x236)](_0x24433a,_0x25e5d7){const _0x387f5c=_0x36bb60;if(this[_0x387f5c(0x1cf)][_0x387f5c(0x258)](_0x24433a[_0x387f5c(0x225)])&&(this[_0x387f5c(0x1cf)][_0x387f5c(0x20d)](_0x24433a[_0x387f5c(0x225)],_0x24433a),this[_0x387f5c(0x245)](_0x387f5c(0x221),{'contextItem':_0x24433a,'isLoading':_0x25e5d7}),_0x24433a[_0x387f5c(0x21b)])){const _0x444c99=this[_0x387f5c(0x1fb)](_0x24433a[_0x387f5c(0x21b)]);_0x444c99&&_0x444c99[_0x387f5c(0x208)](_0x7c9261=>{const _0x485277=_0x387f5c;this[_0x485277(0x1d6)](_0x7c9261,_0x24433a[_0x485277(0x21b)],!0x0);});}}[_0x36bb60(0x237)](_0x143fde){const _0x5dbbf5=_0x36bb60;this[_0x5dbbf5(0x1e3)][_0x5dbbf5(0x20d)](_0x143fde[_0x5dbbf5(0x225)],_0x143fde);}[_0x36bb60(0x209)](){const _0x53f65d=_0x36bb60;this[_0x53f65d(0x1f3)]={'document':{'enabled':!0x1!==this[_0x53f65d(0x1f2)]?.[_0x53f65d(0x222)]?.[_0x53f65d(0x233)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x53f65d(0x1f2)]?.[_0x53f65d(0x212)]?.[_0x53f65d(0x233)]},'files':{'enabled':!0x1!==this[_0x53f65d(0x1f2)]?.[_0x53f65d(0x1e5)]?.[_0x53f65d(0x233)]},'sources':this[_0x53f65d(0x1e1)]()},this[_0x53f65d(0x245)](_0x53f65d(0x21e),{'options':this[_0x53f65d(0x1f3)]});}[_0x36bb60(0x1e1)](){const _0x19d247=_0x36bb60;return this[_0x19d247(0x1f2)]?.[_0x19d247(0x217)]?.[_0x19d247(0x1e2)](_0x394fb1=>({..._0x394fb1,'resources':[]}))??[];}[_0x36bb60(0x23d)](){const _0x5b6c70=_0x36bb60,_0x355c5c=this[_0x5b6c70(0x257)]()||this[_0x5b6c70(0x214)]();this[_0x5b6c70(0x1f3)][_0x5b6c70(0x222)][_0x5b6c70(0x211)]=_0x355c5c,this[_0x5b6c70(0x245)](_0x5b6c70(0x21e),{'options':this[_0x5b6c70(0x1f3)]});}[_0x36bb60(0x1d4)](_0x38e1c0){const _0x36936c=_0x36bb60;for(const _0x527d3c of this[_0x36936c(0x1cf)][_0x36936c(0x20a)]())if(_0x527d3c[_0x36936c(0x21b)]===_0x38e1c0)return!0x0;for(const _0x3d0578 of this[_0x36936c(0x1e3)][_0x36936c(0x20a)]())if(_0x3d0578[_0x36936c(0x21b)]===_0x38e1c0)return!0x0;return!0x1;}[_0x36bb60(0x1fb)](_0x2ca9da){const _0x19db13=_0x36bb60,_0x43a520=[];for(const _0x537c2f of this[_0x19db13(0x1f3)][_0x19db13(0x217)]){_0x537c2f[_0x19db13(0x250)][_0x19db13(0x20b)](_0x2a6266=>_0x2a6266['id']===_0x2ca9da)&&_0x43a520[_0x19db13(0x1e4)](_0x537c2f['id']);}return 0x0===_0x43a520[_0x19db13(0x230)]?null:_0x43a520;}[_0x36bb60(0x1d6)](_0x5f1dd9,_0x5827c5,_0x2ae853){const _0x14e6ed=_0x36bb60,_0x28838a=this[_0x14e6ed(0x1f3)][_0x14e6ed(0x217)][_0x14e6ed(0x20b)](_0x538269=>_0x538269['id']===_0x5f1dd9);if(!_0x28838a)return;const _0x2b0d9c=_0x28838a[_0x14e6ed(0x250)][_0x14e6ed(0x20b)](_0x532342=>_0x532342['id']===_0x5827c5);_0x2b0d9c&&(_0x2b0d9c[_0x14e6ed(0x223)]=_0x2ae853,this[_0x14e6ed(0x245)](_0x14e6ed(0x254),{'sourceId':_0x5f1dd9,'resourceId':_0x5827c5,'isInContext':_0x2ae853}));}[_0x36bb60(0x24b)](_0x5eafb5){const _0x4d9d0b=_0x36bb60;this[_0x4d9d0b(0x1ec)][_0x4d9d0b(0x20d)](_0x5eafb5,!0x0),this[_0x4d9d0b(0x1ec)][_0x4d9d0b(0x229)]&&this[_0x4d9d0b(0x245)](_0x4d9d0b(0x1cd),{'isUploadInProgress':!0x0});}[_0x36bb60(0x249)](_0x55e1bc){const _0x53ddaf=_0x36bb60;this[_0x53ddaf(0x1ec)][_0x53ddaf(0x255)](_0x55e1bc),0x0===this[_0x53ddaf(0x1ec)][_0x53ddaf(0x229)]&&this[_0x53ddaf(0x245)](_0x53ddaf(0x1cd),{'isUploadInProgress':!0x1});}}
23
+ const _0x51d86b=_0x5812;(function(_0x1abeb5,_0x340aaa){const _0x4557a6=_0x5812,_0x2a9f6e=_0x1abeb5();while(!![]){try{const _0x5b8351=-parseInt(_0x4557a6(0x1e9))/0x1+-parseInt(_0x4557a6(0x1f4))/0x2*(-parseInt(_0x4557a6(0x239))/0x3)+-parseInt(_0x4557a6(0x1f0))/0x4+-parseInt(_0x4557a6(0x1c4))/0x5+parseInt(_0x4557a6(0x212))/0x6*(-parseInt(_0x4557a6(0x21a))/0x7)+-parseInt(_0x4557a6(0x204))/0x8*(parseInt(_0x4557a6(0x22a))/0x9)+parseInt(_0x4557a6(0x1d0))/0xa;if(_0x5b8351===_0x340aaa)break;else _0x2a9f6e['push'](_0x2a9f6e['shift']());}catch(_0x2ee8db){_0x2a9f6e['push'](_0x2a9f6e['shift']());}}}(_0x59cb,0xb2812));import{CKEditorError as _0x13f7d3,ObservableMixin as _0x45da12,uid as _0xddbaee}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x22fe05,AIContextTextResourceType as _0x362fe0}from'../../aicore/model/aicontext.js';function _0x5812(_0x35cff8,_0x83933c){const _0x59cbc5=_0x59cb();return _0x5812=function(_0x581248,_0x2373f2){_0x581248=_0x581248-0x1bf;let _0x118258=_0x59cbc5[_0x581248];return _0x118258;},_0x5812(_0x35cff8,_0x83933c);}function _0x59cb(){const _0x2d26a9=['content','_addToConversationContextItem','set','401167QNBVKr','isSelectionInContext','forEach','TEXT','resourceStateChanged','push','abortController','3105560IFAeYY','delete','string','_ongoingUploadOperations','21626kZJOfI','ai-chat-context-unsupported-type','uploadProgressChanged','fetchDocument','_ongoingUploads','find','_finishUploadOperation','_toggleAddCurrentDocumentOptionVisibility','abort','resources','addFilesToContext','isHidden','document','startsWith','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-resource-load-failed','10343272RcROqb','isInContext','ai-chat-context-invalid-data','enabled','resourceId','hidden','addSelectionToContext','length','SELECTION','attributes','ai-chat-document-upload-failed','_isResourceInContext','_addContextItem','ai-chat-source-not-found','6OFEjrb','_mapContextItemToRequestData','Current\x20document','uploadDocument','_findSourceIdsByResourceId','size','getDocument','current-document','3004323uiEVRQ','_createContextItemFromContent','sessionId','isReadOnly','DOCUMENT','contextItemAdded','text/html','getSentContextItems','all','files-','getPendingContextItems','urls','uploadFile','addToConversationContext','uploadUrl','_pendingContextItems','9VdVfzu','_updateResourceInContextState','text/plain','MARKDOWN','from','_removeContextItem','init','uiId','isCurrentDocumentInConversation','message','_setAddContextOptionsDefaultState','updateCurrentDocument','ai-chat-file-upload-failed','sources','stack','159iyJLVF','_convertTextResourceToFile','clearPendingContextItems','_getCustomSourcesInitialState','addUrlToContext','ai-chat-source-resources-load-failed','getId','name','contextItemLoadingEnded','_connector','map','File','populateFromMessage','label','has','addCurrentDocumentToContext','url','fire','_ownerId','data','object','addResourceToContext','type','ai-chat-url-upload-failed','HTML','1866510iIcUSE','start','removeFromContext','filter','sourceResourcesLoaded','error','ai-chat-resource-no-data','_config','_finishContextItemLoading','text/markdown','FILE','mapContextItemsToRequestData','34310220MAnsdy','get','url-','_addContextOptionsState','_startUploadOperation','_conversationContextItems','values','files','addContextOptionsChanged','file-','getData','ai-request-aborted','isCurrentDocumentInContext','contextSent','contextItemRemoved','getResources','end','URL','loadSourceResources','selection','version','removeSelectionFromContext'];_0x59cb=function(){return _0x2d26a9;};return _0x59cb();}import{escape as _0x308893}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x51d86b(0x21f),_0x51d86b(0x1de),_0x51d86b(0x241),_0x51d86b(0x1dd),_0x51d86b(0x1c9),_0x51d86b(0x1d8),_0x51d86b(0x1c8),_0x51d86b(0x1ed),_0x51d86b(0x1f6)];export class AIChatContext extends _0x45da12(){[_0x51d86b(0x242)];[_0x51d86b(0x1cb)];[_0x51d86b(0x24b)];constructor({connector:_0x28ccbb,config:_0x27ae87,ownerId:_0xee569a}){const _0x4b57ba=_0x51d86b;super(),this[_0x4b57ba(0x242)]=_0x28ccbb,this[_0x4b57ba(0x1cb)]=_0x27ae87,this[_0x4b57ba(0x24b)]=_0xee569a;}[_0x51d86b(0x230)](){const _0x53d6f1=_0x51d86b;this[_0x53d6f1(0x229)]=new Map(),this[_0x53d6f1(0x1d5)]=new Map(),this[_0x53d6f1(0x1f8)]=new Map(),this[_0x53d6f1(0x1f3)]=new Map(),this[_0x53d6f1(0x234)]();}[_0x51d86b(0x224)](){const _0x387dbb=_0x51d86b;return this[_0x387dbb(0x229)];}async[_0x51d86b(0x245)](_0x1eae1e){const _0x3cd4f2=_0x51d86b,_0x14de3d=await this[_0x3cd4f2(0x21b)](_0x1eae1e);return this[_0x3cd4f2(0x1e7)](_0x14de3d),_0x3cd4f2(0x219)===_0x14de3d[_0x3cd4f2(0x231)]&&this[_0x3cd4f2(0x1fb)](),_0x14de3d;}async[_0x51d86b(0x21b)](_0x5b740c){const _0x2dcee5=_0x51d86b;if(_0x5b740c[_0x2dcee5(0x1c1)]===_0x22fe05[_0x2dcee5(0x21e)]){const _0x202699=await this[_0x2dcee5(0x242)][_0x2dcee5(0x1f7)](this[_0x2dcee5(0x24b)],_0x5b740c['id'])[_0x2dcee5(0x218)]();return{'id':_0x2dcee5(0x219),'uiId':_0x2dcee5(0x219),'label':_0x2dcee5(0x214),'type':_0x5b740c[_0x2dcee5(0x1c1)],'content':_0x202699[_0x2dcee5(0x1e6)],'hidden':this[_0x2dcee5(0x1d5)][_0x2dcee5(0x247)](_0x2dcee5(0x219)),'version':_0x202699[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x1e4)],'sessionId':_0x202699[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x21c)]};}return{'id':_0x5b740c['id'],'uiId':_0x5b740c['id'],'label':_0x5b740c[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x246)]||_0x5b740c[_0x2dcee5(0x240)]||_0x5b740c[_0x2dcee5(0x249)]||_0x5b740c['id'],'type':_0x5b740c[_0x2dcee5(0x1c1)],..._0x5b740c?.[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x208)]?{'resourceId':_0x5b740c[_0x2dcee5(0x20d)]?.[_0x2dcee5(0x208)]}:{}};}[_0x51d86b(0x221)](){const _0x2f2716=_0x51d86b;return new Map(this[_0x2f2716(0x1d5)]);}[_0x51d86b(0x1c6)](_0x3c620d){const _0x33a516=_0x51d86b,_0x1e2deb=this[_0x33a516(0x229)][_0x33a516(0x1d1)](_0x3c620d);_0x1e2deb?.[_0x33a516(0x21d)]||this[_0x33a516(0x22f)](_0x3c620d);}[_0x51d86b(0x23b)](){const _0x510c77=_0x51d86b;if(0x0===this[_0x510c77(0x229)][_0x510c77(0x217)])return;for(const _0x42b51a of this[_0x510c77(0x229)][_0x510c77(0x1d6)]())this[_0x510c77(0x22f)](_0x42b51a[_0x510c77(0x231)]);const _0x18234d=this[_0x510c77(0x1d5)][_0x510c77(0x1d1)](_0x510c77(0x219))||this[_0x510c77(0x229)][_0x510c77(0x1d1)](_0x510c77(0x219));_0x18234d&&this[_0x510c77(0x210)]({..._0x18234d,'isReadOnly':!0x0,'hidden':!0x0});}[_0x51d86b(0x227)](_0x2372cd){const _0x39336f=_0x51d86b;for(const _0x3941c1 of _0x2372cd[_0x39336f(0x1d6)]())this[_0x39336f(0x1e7)](_0x3941c1);this[_0x39336f(0x23b)](),this[_0x39336f(0x24a)](_0x39336f(0x1dd),{'contextItems':Array[_0x39336f(0x22e)](this[_0x39336f(0x221)]()[_0x39336f(0x1d6)]())});}[_0x51d86b(0x1dc)](){const _0x2df91e=_0x51d86b;return this[_0x2df91e(0x229)][_0x2df91e(0x247)](_0x2df91e(0x219));}[_0x51d86b(0x1ea)](){const _0x41b768=_0x51d86b;return this[_0x41b768(0x229)][_0x41b768(0x247)](_0x41b768(0x1e3));}[_0x51d86b(0x232)](){const _0x252b1b=_0x51d86b;return this[_0x252b1b(0x1d5)][_0x252b1b(0x247)](_0x252b1b(0x219));}static[_0x51d86b(0x1cf)](_0x69d608){const _0x5e9c21=_0x51d86b;return Array[_0x5e9c21(0x22e)](_0x69d608[_0x5e9c21(0x1d6)]())[_0x5e9c21(0x243)](_0xc454cc=>this[_0x5e9c21(0x213)](_0xc454cc))[_0x5e9c21(0x1c7)](_0x393b5b=>null!==_0x393b5b);}async[_0x51d86b(0x1fe)](_0x3c84ea,_0x2aa404,_0x1c3b03=_0x22fe05[_0x51d86b(0x1ce)]){const _0x584990=_0x51d86b,_0x378e2e=_0x584990(0x223)+_0xddbaee();this[_0x584990(0x1d4)](_0x378e2e);try{await Promise[_0x584990(0x222)](_0x3c84ea[_0x584990(0x243)](async _0x10b96c=>{const _0x5f1845=_0x584990,_0x312b60=_0x5f1845(0x1d9)+_0xddbaee(),_0x875c4c=_0x308893(_0x10b96c[_0x5f1845(0x240)]);try{this[_0x5f1845(0x210)]({'type':_0x1c3b03,'label':_0x2aa404?.[_0x5f1845(0x246)]||_0x875c4c,'uiId':_0x312b60,'resourceId':_0x2aa404?.[_0x5f1845(0x208)]},!0x0);const _0x4bb389=this[_0x5f1845(0x242)][_0x5f1845(0x226)](this[_0x5f1845(0x24b)],_0x10b96c,_0x2aa404);this[_0x5f1845(0x1f8)][_0x5f1845(0x1e8)](_0x312b60,_0x4bb389[_0x5f1845(0x1ef)]);const {id:_0x1684d0}=await _0x4bb389[_0x5f1845(0x23f)]();this[_0x5f1845(0x1f8)][_0x5f1845(0x1f1)](_0x312b60),this[_0x5f1845(0x1cc)]({'type':_0x1c3b03,'id':_0x1684d0,'label':_0x2aa404?.[_0x5f1845(0x246)]||_0x875c4c,'uiId':_0x312b60,'resourceId':_0x2aa404?.[_0x5f1845(0x208)]},!0x1);}catch(_0xc76b18){this[_0x5f1845(0x1f8)][_0x5f1845(0x1f1)](_0x312b60);if(!_0xc76b18[_0x5f1845(0x233)][_0x5f1845(0x201)](_0x5f1845(0x1db))){const _0x373f66=new _0x13f7d3(_0x5f1845(0x236),null,{'fileName':_0x875c4c});_0x373f66[_0x5f1845(0x238)]=_0xc76b18[_0x5f1845(0x238)],this[_0x5f1845(0x24a)](_0x5f1845(0x1c9),{'error':_0x373f66,'fileName':_0x875c4c});}this[_0x5f1845(0x22f)](_0x312b60);}}));}finally{this[_0x584990(0x1fa)](_0x378e2e);}}[_0x51d86b(0x248)](_0x4029d8){const _0x2e96c5=_0x51d86b;if(this[_0x2e96c5(0x1dc)]())return;const _0x5d7d36={'type':_0x22fe05[_0x2e96c5(0x21e)],'uiId':_0x2e96c5(0x219),'label':_0x4029d8,'isReadOnly':this[_0x2e96c5(0x1d5)][_0x2e96c5(0x247)](_0x2e96c5(0x219)),'hidden':this[_0x2e96c5(0x1d5)][_0x2e96c5(0x247)](_0x2e96c5(0x219))};this[_0x2e96c5(0x210)](_0x5d7d36);}async[_0x51d86b(0x235)](_0x3f97d5,_0x2cc947,_0x202d81,_0x10cbca){const _0x5e2150=_0x51d86b,_0x1eea83=this[_0x5e2150(0x229)][_0x5e2150(0x1d1)](_0x5e2150(0x219));if(_0x1eea83&&_0x3f97d5){_0x1eea83[_0x5e2150(0x1e3)]=_0x10cbca?_0x10cbca[_0x5e2150(0x243)](_0x600782=>({'start':_0x600782[_0x5e2150(0x1c5)],'end':_0x600782[_0x5e2150(0x1e0)]})):[];try{if(_0x1eea83[_0x5e2150(0x1e4)]===_0x2cc947)return;const {id:_0x38a9fb}=await this[_0x5e2150(0x242)][_0x5e2150(0x215)](this[_0x5e2150(0x24b)],_0x3f97d5,{'version':_0x2cc947,'sessionId':_0x202d81})[_0x5e2150(0x23f)]();_0x1eea83['id']=_0x38a9fb,_0x1eea83[_0x5e2150(0x1e6)]=_0x3f97d5,_0x1eea83[_0x5e2150(0x1e4)]=_0x2cc947,_0x1eea83[_0x5e2150(0x21c)]=_0x202d81;}catch(_0x4e3e22){const _0x299d4a=new _0x13f7d3(_0x5e2150(0x20e),null);_0x299d4a[_0x5e2150(0x238)]=_0x4e3e22[_0x5e2150(0x238)],this[_0x5e2150(0x24a)](_0x5e2150(0x1c9),{'error':_0x299d4a});}}}[_0x51d86b(0x20a)](_0x3ba228){const _0x109e24=_0x51d86b;this[_0x109e24(0x210)]({'type':_0x22fe05[_0x109e24(0x20c)],'label':_0x3ba228,'uiId':_0x109e24(0x1e3),'content':_0x3ba228});}[_0x51d86b(0x1e5)](){const _0x1af1af=_0x51d86b;this[_0x1af1af(0x22f)](_0x1af1af(0x1e3));}async[_0x51d86b(0x23d)](_0x455deb,_0x14af9c){const _0x5c77bc=_0x51d86b,_0x2d8c99=_0x5c77bc(0x1d2)+_0xddbaee();this[_0x5c77bc(0x1d4)](_0x2d8c99);const _0x49cb84=_0x5c77bc(0x1d2)+_0xddbaee();try{this[_0x5c77bc(0x210)]({'type':_0x22fe05[_0x5c77bc(0x1e1)],'label':_0x14af9c?.[_0x5c77bc(0x246)]||_0x455deb,'uiId':_0x49cb84,'resourceId':_0x14af9c?.[_0x5c77bc(0x208)]},!0x0);const _0x3145ba=this[_0x5c77bc(0x242)][_0x5c77bc(0x228)](this[_0x5c77bc(0x24b)],_0x455deb,_0x14af9c);this[_0x5c77bc(0x1f8)][_0x5c77bc(0x1e8)](_0x49cb84,_0x3145ba[_0x5c77bc(0x1ef)]);const {id:_0x581784}=await _0x3145ba[_0x5c77bc(0x23f)]();this[_0x5c77bc(0x1f8)][_0x5c77bc(0x1f1)](_0x49cb84),this[_0x5c77bc(0x1cc)]({'type':_0x22fe05[_0x5c77bc(0x1e1)],'id':_0x581784,'label':_0x14af9c?.[_0x5c77bc(0x246)]||_0x455deb,'uiId':_0x49cb84,'resourceId':_0x14af9c?.[_0x5c77bc(0x208)]},!0x1);}catch(_0x51ae20){this[_0x5c77bc(0x1f8)][_0x5c77bc(0x1f1)](_0x49cb84),(_0x51ae20[_0x5c77bc(0x233)][_0x5c77bc(0x201)](_0x5c77bc(0x1db))||this[_0x5c77bc(0x24a)](_0x5c77bc(0x1c9),{'error':new _0x13f7d3(_0x5c77bc(0x1c2),this,{'url':_0x455deb,'originalError':_0x51ae20}),'url':_0x455deb}),this[_0x5c77bc(0x22f)](_0x49cb84));}finally{this[_0x5c77bc(0x1fa)](_0x2d8c99);}}async[_0x51d86b(0x1e2)](_0x4fbd8,_0x349c91,_0xeb456b){const _0x5f51d7=_0x51d86b,_0x33b861=this[_0x5f51d7(0x1d3)][_0x5f51d7(0x237)][_0x5f51d7(0x1f9)](_0xc20fe8=>_0xc20fe8['id']===_0x4fbd8);if(!_0x33b861)return this[_0x5f51d7(0x24a)](_0x5f51d7(0x1c9),{'error':new _0x13f7d3(_0x5f51d7(0x211),this,{'sourceId':_0x4fbd8}),'sourceId':_0x4fbd8}),[];try{const _0x155b10=(await _0x33b861[_0x5f51d7(0x1df)](_0x349c91))[_0x5f51d7(0x243)](_0x641fcc=>{const _0x4b619f=_0x5f51d7,_0x165eaf=this[_0x4b619f(0x20f)](_0x641fcc['id']);return{..._0x641fcc,'isInContext':_0x165eaf};});return _0x33b861[_0x5f51d7(0x1fd)]=_0x155b10,this[_0x5f51d7(0x24a)](_0x5f51d7(0x1c8),{'sourceId':_0x4fbd8,'source':_0x33b861,'resources':_0x155b10,'uid':_0xeb456b}),_0x155b10;}catch(_0x757d64){return this[_0x5f51d7(0x24a)](_0x5f51d7(0x1c9),{'error':new _0x13f7d3(_0x5f51d7(0x23e),this,{'sourceId':_0x4fbd8,'originalError':_0x757d64}),'sourceId':_0x4fbd8,'sourceLabel':_0x33b861[_0x5f51d7(0x246)]}),[];}}async[_0x51d86b(0x1c0)](_0x32587e,_0x4038f1){const _0x4e8124=_0x51d86b;if(this[_0x4e8124(0x20f)](_0x4038f1['id']))return;let _0x4f55da=_0x4038f1[_0x4e8124(0x24c)];if(!_0x4f55da&&_0x32587e[_0x4e8124(0x1da)])try{_0x4f55da=await _0x32587e[_0x4e8124(0x1da)](_0x4038f1['id']);}catch(_0x59d7c7){return void this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x203),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'originalError':_0x59d7c7}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});}if(_0x4f55da)switch(_0x4038f1[_0x4e8124(0x1c1)]){case _0x22fe05[_0x4e8124(0x1e1)]:if(_0x4e8124(0x1f2)!=typeof _0x4f55da)return void this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x206),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'expectedType':_0x4e8124(0x1f2),'actualType':typeof _0x4f55da}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});await this[_0x4e8124(0x23d)](_0x4f55da,{'label':_0x4038f1[_0x4e8124(0x246)],'resourceId':_0x4038f1['id']});break;case _0x22fe05[_0x4e8124(0x1ce)]:if(!(_0x4f55da instanceof File))return void this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x206),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'expectedType':_0x4e8124(0x244),'actualType':typeof _0x4f55da}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});await this[_0x4e8124(0x1fe)]([_0x4f55da],{'label':_0x4038f1[_0x4e8124(0x246)],'resourceId':_0x4038f1['id']});break;case _0x22fe05[_0x4e8124(0x1ec)]:if(_0x4e8124(0x1bf)!=typeof _0x4f55da||!(_0x4e8124(0x1e6)in _0x4f55da)||!(_0x4e8124(0x1c1)in _0x4f55da))return void this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x206),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'expectedType':_0x4e8124(0x202),'actualType':typeof _0x4f55da}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});_0x4f55da=AIChatContext[_0x4e8124(0x23a)](_0x4f55da,_0x4038f1[_0x4e8124(0x246)]),await this[_0x4e8124(0x1fe)]([_0x4f55da],{'label':_0x4038f1[_0x4e8124(0x246)],'resourceId':_0x4038f1['id']},_0x22fe05[_0x4e8124(0x1ec)]);break;default:this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x1f5),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id'],'resourceType':_0x4038f1[_0x4e8124(0x1c1)]}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});}else this[_0x4e8124(0x24a)](_0x4e8124(0x1c9),{'error':new _0x13f7d3(_0x4e8124(0x1ca),this,{'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']}),'resourceId':_0x4038f1['id'],'sourceId':_0x32587e['id']});}static[_0x51d86b(0x23a)](_0x2c4794,_0x1160cf){const _0xb31a3d=_0x51d86b;switch(_0x2c4794[_0xb31a3d(0x1c1)]){case _0x362fe0[_0xb31a3d(0x22d)]:return new File([_0x2c4794[_0xb31a3d(0x1e6)]],_0x1160cf,{'type':_0xb31a3d(0x1cd)});case _0x362fe0[_0xb31a3d(0x1c3)]:return new File([_0x2c4794[_0xb31a3d(0x1e6)]],_0x1160cf,{'type':_0xb31a3d(0x220)});default:return new File([_0x2c4794[_0xb31a3d(0x1e6)]],_0x1160cf,{'type':_0xb31a3d(0x22c)});}}static[_0x51d86b(0x213)](_0x26f197){const _0x54cc02=_0x51d86b;switch(_0x26f197[_0x54cc02(0x1c1)]){case _0x22fe05[_0x54cc02(0x1ce)]:return{'type':_0x22fe05[_0x54cc02(0x1ce)],'id':_0x26f197['id']};case _0x22fe05[_0x54cc02(0x1e1)]:return{'type':_0x22fe05[_0x54cc02(0x1e1)],'id':_0x26f197['id']};case _0x22fe05[_0x54cc02(0x21e)]:return{'type':_0x22fe05[_0x54cc02(0x21e)],'id':_0x26f197['id'],..._0x26f197[_0x54cc02(0x1e3)]?.[_0x54cc02(0x20b)]&&{'selection':_0x26f197[_0x54cc02(0x1e3)]}};case _0x22fe05[_0x54cc02(0x1ec)]:return{'type':_0x22fe05[_0x54cc02(0x1ce)],'id':_0x26f197['id']};default:return null;}}[_0x51d86b(0x210)](_0xb95f3e,_0x5c8722=!0x1){const _0x43b8e6=_0x51d86b;if(this[_0x43b8e6(0x229)][_0x43b8e6(0x1e8)](_0xb95f3e[_0x43b8e6(0x231)],_0xb95f3e),_0xb95f3e[_0x43b8e6(0x209)]||this[_0x43b8e6(0x24a)](_0x43b8e6(0x21f),{'contextItem':_0xb95f3e,'isLoading':_0x5c8722}),_0x43b8e6(0x219)===_0xb95f3e[_0x43b8e6(0x231)]&&this[_0x43b8e6(0x1fb)](),_0xb95f3e[_0x43b8e6(0x208)]){const _0x59bd99=this[_0x43b8e6(0x216)](_0xb95f3e[_0x43b8e6(0x208)]);_0x59bd99&&_0x59bd99[_0x43b8e6(0x1eb)](_0x2d777b=>{const _0x539f19=_0x43b8e6;this[_0x539f19(0x22b)](_0x2d777b,_0xb95f3e[_0x539f19(0x208)],!0x0);});}}[_0x51d86b(0x22f)](_0x4545ec){const _0x260034=_0x51d86b,_0x209a5b=this[_0x260034(0x229)][_0x260034(0x1d1)](_0x4545ec),_0x1e99a1=this[_0x260034(0x1f8)][_0x260034(0x1d1)](_0x4545ec);if(_0x1e99a1&&(_0x1e99a1[_0x260034(0x1fc)](),this[_0x260034(0x1f8)][_0x260034(0x1f1)](_0x4545ec)),_0x209a5b?.[_0x260034(0x208)]){const _0x4607bd=this[_0x260034(0x216)](_0x209a5b[_0x260034(0x208)]);_0x4607bd&&_0x4607bd[_0x260034(0x1eb)](_0x232fa9=>{const _0x2d6c26=_0x260034;this[_0x2d6c26(0x22b)](_0x232fa9,_0x209a5b[_0x2d6c26(0x208)],!0x1);});}this[_0x260034(0x229)][_0x260034(0x1f1)](_0x4545ec),this[_0x260034(0x24a)](_0x260034(0x1de),{'uiId':_0x4545ec,'type':_0x209a5b?.[_0x260034(0x1c1)]}),_0x260034(0x219)===_0x4545ec&&this[_0x260034(0x1fb)]();}[_0x51d86b(0x1cc)](_0x7edfa1,_0xef93cc){const _0x12f4c6=_0x51d86b;if(this[_0x12f4c6(0x229)][_0x12f4c6(0x247)](_0x7edfa1[_0x12f4c6(0x231)])&&(this[_0x12f4c6(0x229)][_0x12f4c6(0x1e8)](_0x7edfa1[_0x12f4c6(0x231)],_0x7edfa1),this[_0x12f4c6(0x24a)](_0x12f4c6(0x241),{'contextItem':_0x7edfa1,'isLoading':_0xef93cc}),_0x7edfa1[_0x12f4c6(0x208)])){const _0x1552c1=this[_0x12f4c6(0x216)](_0x7edfa1[_0x12f4c6(0x208)]);_0x1552c1&&_0x1552c1[_0x12f4c6(0x1eb)](_0x110b3d=>{const _0x5086fc=_0x12f4c6;this[_0x5086fc(0x22b)](_0x110b3d,_0x7edfa1[_0x5086fc(0x208)],!0x0);});}}[_0x51d86b(0x1e7)](_0x598f99){const _0x1b36bd=_0x51d86b;this[_0x1b36bd(0x1d5)][_0x1b36bd(0x1e8)](_0x598f99[_0x1b36bd(0x231)],_0x598f99);}[_0x51d86b(0x234)](){const _0x3bb043=_0x51d86b;this[_0x3bb043(0x1d3)]={'document':{'enabled':!0x1!==this[_0x3bb043(0x1cb)]?.[_0x3bb043(0x200)]?.[_0x3bb043(0x207)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3bb043(0x1cb)]?.[_0x3bb043(0x225)]?.[_0x3bb043(0x207)]},'files':{'enabled':!0x1!==this[_0x3bb043(0x1cb)]?.[_0x3bb043(0x1d7)]?.[_0x3bb043(0x207)]},'sources':this[_0x3bb043(0x23c)]()},this[_0x3bb043(0x24a)](_0x3bb043(0x1d8),{'options':this[_0x3bb043(0x1d3)]});}[_0x51d86b(0x23c)](){const _0x3c2964=_0x51d86b;return this[_0x3c2964(0x1cb)]?.[_0x3c2964(0x237)]?.[_0x3c2964(0x243)](_0x5907c7=>({..._0x5907c7,'resources':[]}))??[];}[_0x51d86b(0x1fb)](){const _0x2b805d=_0x51d86b,_0x47213b=this[_0x2b805d(0x1dc)]()||this[_0x2b805d(0x232)]();this[_0x2b805d(0x1d3)][_0x2b805d(0x200)][_0x2b805d(0x1ff)]=_0x47213b,this[_0x2b805d(0x24a)](_0x2b805d(0x1d8),{'options':this[_0x2b805d(0x1d3)]});}[_0x51d86b(0x20f)](_0x44c101){const _0x456ab7=_0x51d86b;for(const _0x4adaf3 of this[_0x456ab7(0x229)][_0x456ab7(0x1d6)]())if(_0x4adaf3[_0x456ab7(0x208)]===_0x44c101)return!0x0;for(const _0x8ce5e3 of this[_0x456ab7(0x1d5)][_0x456ab7(0x1d6)]())if(_0x8ce5e3[_0x456ab7(0x208)]===_0x44c101)return!0x0;return!0x1;}[_0x51d86b(0x216)](_0x5e5087){const _0x29c000=_0x51d86b,_0x1aab83=[];for(const _0x3b44eb of this[_0x29c000(0x1d3)][_0x29c000(0x237)]){_0x3b44eb[_0x29c000(0x1fd)][_0x29c000(0x1f9)](_0x3e71e2=>_0x3e71e2['id']===_0x5e5087)&&_0x1aab83[_0x29c000(0x1ee)](_0x3b44eb['id']);}return 0x0===_0x1aab83[_0x29c000(0x20b)]?null:_0x1aab83;}[_0x51d86b(0x22b)](_0x169fc1,_0x44c1fc,_0x53ed8f){const _0xc6fe2c=_0x51d86b,_0x5003a1=this[_0xc6fe2c(0x1d3)][_0xc6fe2c(0x237)][_0xc6fe2c(0x1f9)](_0x2cbf84=>_0x2cbf84['id']===_0x169fc1);if(!_0x5003a1)return;const _0x358bf4=_0x5003a1[_0xc6fe2c(0x1fd)][_0xc6fe2c(0x1f9)](_0x32ec1f=>_0x32ec1f['id']===_0x44c1fc);_0x358bf4&&(_0x358bf4[_0xc6fe2c(0x205)]=_0x53ed8f,this[_0xc6fe2c(0x24a)](_0xc6fe2c(0x1ed),{'sourceId':_0x169fc1,'resourceId':_0x44c1fc,'isInContext':_0x53ed8f}));}[_0x51d86b(0x1d4)](_0x514d7b){const _0x486b81=_0x51d86b;this[_0x486b81(0x1f3)][_0x486b81(0x1e8)](_0x514d7b,!0x0),this[_0x486b81(0x1f3)][_0x486b81(0x217)]&&this[_0x486b81(0x24a)](_0x486b81(0x1f6),{'isUploadInProgress':!0x0});}[_0x51d86b(0x1fa)](_0x591e91){const _0x50f074=_0x51d86b;this[_0x50f074(0x1f3)][_0x50f074(0x1f1)](_0x591e91),0x0===this[_0x50f074(0x1f3)][_0x50f074(0x217)]&&this[_0x50f074(0x24a)](_0x50f074(0x1f6),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xc181(){const _0x293d4d=['splice','stop','modification-delta','16nvuond','role','634963cBSzrY','indexOf','createReply','13492lmitQU','chatCapabilities','find','setConversationTitle','isCurrentDocumentInContext','updateCurrentDocument','ai-chat-conversation-init-failed','startConversation','addUrlToContext','_processMessagesToInteractions','error','appendContent','getCurrentDocumentContext','start','toggleReasoning','set','defaultModelId','ai-chat-conversation-already-started','chatContext','connector','currentReply','fetchConversationMessages','removeSelectionFromContext','interactions','handleUserInteraction','conversationInitialized','9318NAPzIP','getConversation','prompt','50748tzOEZY','17023188Bnvvix','updateCurrentDocumentInContext','getCapabilitiesConfig','load','5794668mSUnEG','interactionCreated','411EwaNYE','ai-chat-conversation-start-no-model-selected','reset','isSelectionInContext','modelSelected','content','push','getEditor','length','populateFromMessage','removeFromContext','title','toggleWebSearch','hasOwn','webSearch','conversationId','addCurrentDocumentToContext','removeInteraction','reasoning','sessionId','ai-chat-conversation-init-from-id-failed','fire','quickActionData','createInteraction','contextItems','attributes','setModel','text-delta','ai-chat-conversation-set-model-not-available','addFilesToContext','group','18WURIsW','ai-chat-conversation-set-model-null','user','type','message','init','50UArcil','capabilities','options','delegate','addSelectionToContext','ai-chat-handle-user-interaction-already-in-progress','isAvailable','getDocumentContext','ai-chat-handle-user-conversation-not-initialized','getInteraction','currentInteraction','destroy','27nOQgnK','isStarted','getDefault','addToConversationContext','conversationStarted','fetchConversation','loadSourceResources','ai-chat-conversation-start-failed','stack','11ETsmip','addResourceToContext','toLowerCase','text','assistant','model','_extractContextItems','selectedModel','getPendingContextItems','lastInteraction','getMessages','chatModels','getAll','isCurrentDocumentInConversation','864530TJIbVo'];_0xc181=function(){return _0x293d4d;};return _0xc181();}const _0x25544f=_0x13cf;(function(_0x543d03,_0x22bf7e){const _0x20e36e=_0x13cf,_0x1c6e0f=_0x543d03();while(!![]){try{const _0x1546d4=parseInt(_0x20e36e(0x181))/0x1*(-parseInt(_0x20e36e(0x158))/0x2)+-parseInt(_0x20e36e(0x162))/0x3*(parseInt(_0x20e36e(0x1b3))/0x4)+parseInt(_0x20e36e(0x187))/0x5*(parseInt(_0x20e36e(0x15b))/0x6)+-parseInt(_0x20e36e(0x1b0))/0x7*(-parseInt(_0x20e36e(0x1ae))/0x8)+-parseInt(_0x20e36e(0x193))/0x9*(parseInt(_0x20e36e(0x1aa))/0xa)+-parseInt(_0x20e36e(0x19c))/0xb*(parseInt(_0x20e36e(0x160))/0xc)+parseInt(_0x20e36e(0x15c))/0xd;if(_0x1546d4===_0x22bf7e)break;else _0x1c6e0f['push'](_0x1c6e0f['shift']());}catch(_0x46aec4){_0x1c6e0f['push'](_0x1c6e0f['shift']());}}}(_0xc181,0x4621f));import{CKEditorError as _0x334ab5,EmitterMixin as _0x20e33e}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x24dc37}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x5c679e,AI_CONTEXT_MODEL_EVENT_NAMES as _0x4a23a2}from'./aichatcontext.js';function _0x13cf(_0x320e18,_0x5e1720){const _0xc18126=_0xc181();return _0x13cf=function(_0x13cfe9,_0x532427){_0x13cfe9=_0x13cfe9-0x13f;let _0x2846c1=_0xc18126[_0x13cfe9];return _0x2846c1;},_0x13cf(_0x320e18,_0x5e1720);}import{AICapabilities as _0x1e6423,CAPABILITIES_MODEL_EVENT_NAMES as _0x10284d}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x454031}from'./aichatinteraction.js';export class AIChatConversation extends _0x20e33e(){['id'];[_0x25544f(0x194)]=!0x1;[_0x25544f(0x155)]=[];[_0x25544f(0x191)];[_0x25544f(0x1a3)];[_0x25544f(0x151)];[_0x25544f(0x189)];constructor(_0x10eb66){const _0x36bcaf=_0x25544f;super(),this[_0x36bcaf(0x189)]=_0x10eb66,this[_0x36bcaf(0x151)]=_0x10eb66[_0x36bcaf(0x151)],this[_0x36bcaf(0x1a7)]=_0x10eb66[_0x36bcaf(0x1a7)],this['id']=_0x10eb66[_0x36bcaf(0x171)];}async[_0x25544f(0x186)](_0x54fa5f){const _0x4b972a=_0x25544f;try{this[_0x4b972a(0x150)]=new _0x5c679e({'connector':this[_0x4b972a(0x151)],'config':_0x54fa5f,'ownerId':this['id']}),this[_0x4b972a(0x150)][_0x4b972a(0x18a)](..._0x4a23a2)['to'](this),this[_0x4b972a(0x150)][_0x4b972a(0x186)](),this[_0x4b972a(0x13f)]=new _0x1e6423(),this[_0x4b972a(0x13f)][_0x4b972a(0x18a)](..._0x10284d)['to'](this),this[_0x4b972a(0x13f)][_0x4b972a(0x186)]();const _0x2de9a7=await this[_0x4b972a(0x1a7)][_0x4b972a(0x1a8)]();this[_0x4b972a(0x177)](_0x4b972a(0x157),{'availableModels':_0x2de9a7});const _0x42c731=await this[_0x4b972a(0x1a7)][_0x4b972a(0x195)](this[_0x4b972a(0x189)][_0x4b972a(0x14e)]);_0x42c731&&await this[_0x4b972a(0x17c)](_0x42c731);}catch(_0x4451e3){const _0x3c427e=new _0x334ab5(_0x4b972a(0x144),null,{'message':_0x4451e3[_0x4b972a(0x185)]});_0x3c427e[_0x4b972a(0x19b)]=_0x4451e3[_0x4b972a(0x19b)],this[_0x4b972a(0x177)](_0x4b972a(0x148),{'error':_0x3c427e});}}async[_0x25544f(0x14b)](){const _0x19d067=_0x25544f;if(this[_0x19d067(0x194)])throw new _0x334ab5(_0x19d067(0x14f),null,{'conversation':this});if(!this[_0x19d067(0x1a3)])throw new _0x334ab5(_0x19d067(0x163),null,{'conversation':this});try{const {id:_0x558d59}=await this[_0x19d067(0x151)][_0x19d067(0x145)](this['id'],this[_0x19d067(0x189)][_0x19d067(0x180)])[_0x19d067(0x159)]();this['id']=_0x558d59,this[_0x19d067(0x194)]=!0x0,this[_0x19d067(0x177)](_0x19d067(0x197),{'conversationId':this['id'],'selectedModel':this[_0x19d067(0x1a3)]});}catch(_0x5ad1b8){const _0x39f68b=new _0x334ab5(_0x19d067(0x19a),null,{'message':_0x5ad1b8[_0x19d067(0x185)]});_0x39f68b[_0x19d067(0x19b)]=_0x5ad1b8[_0x19d067(0x19b)],this[_0x19d067(0x177)](_0x19d067(0x148),{'error':_0x39f68b});}}async[_0x25544f(0x15f)](_0x48aa7b,_0x1305de){const _0x241b38=_0x25544f;try{const _0x5c7a79=await this[_0x241b38(0x151)][_0x241b38(0x198)](_0x48aa7b)[_0x241b38(0x159)](),_0x39b494=await this[_0x241b38(0x151)][_0x241b38(0x153)](_0x48aa7b)[_0x241b38(0x1a6)](),_0x3e02e3=_0x39b494[0x0][_0x241b38(0x1a1)];this[_0x241b38(0x194)]=!0x0,this['id']=_0x5c7a79['id'],_0x241b38(0x16d)in _0x5c7a79?this[_0x241b38(0x177)](_0x241b38(0x141),_0x5c7a79[_0x241b38(0x16d)],!0x0):this[_0x241b38(0x177)](_0x241b38(0x141),'',!0x0);const _0x39ce5d=(await this[_0x241b38(0x1a7)][_0x241b38(0x1a8)]())[_0x241b38(0x140)](_0x16ba48=>_0x16ba48['id'][_0x241b38(0x19e)]()===_0x3e02e3[_0x241b38(0x19e)]());return this[_0x241b38(0x1a3)]=_0x39ce5d,this[_0x241b38(0x177)](_0x241b38(0x166),{'selectedModel':_0x39ce5d,'isDisabled':!0x0}),await this[_0x241b38(0x147)](_0x39b494,_0x1305de,_0x3e02e3),this[_0x241b38(0x191)]=void 0x0,this;}catch(_0x1f4eef){const _0x27f676=new _0x334ab5(_0x241b38(0x176),null,{'message':_0x1f4eef[_0x241b38(0x185)],'conversationId':_0x48aa7b});throw _0x27f676[_0x241b38(0x19b)]=_0x1f4eef[_0x241b38(0x19b)],this[_0x241b38(0x177)](_0x241b38(0x148),{'error':_0x27f676}),_0x27f676;}}async[_0x25544f(0x147)](_0x30b1d7,_0x4155ac,_0x3b3cac){const _0x49d2cf=_0x25544f;let _0x1386ee;for(const _0x123c7c of _0x30b1d7)if(_0x49d2cf(0x183)===_0x123c7c[_0x49d2cf(0x1af)]){const _0x2fe18c=await this[_0x49d2cf(0x1a2)](_0x123c7c),_0x3da86d={'isReasoningEnabled':Object[_0x49d2cf(0x16f)](_0x123c7c[_0x49d2cf(0x188)],_0x49d2cf(0x174)),'isWebSearchEnabled':Object[_0x49d2cf(0x16f)](_0x123c7c[_0x49d2cf(0x188)],_0x49d2cf(0x170))};_0x1386ee=this[_0x49d2cf(0x179)]({'userMessage':_0x123c7c[_0x49d2cf(0x15a)],'contextItems':_0x2fe18c,'capabilities':_0x3da86d,'modelId':_0x3b3cac,'quickActionData':_0x123c7c[_0x49d2cf(0x17b)]?.[_0x49d2cf(0x178)]}),this[_0x49d2cf(0x191)]=_0x1386ee,this[_0x49d2cf(0x150)][_0x49d2cf(0x196)](this[_0x49d2cf(0x191)][_0x49d2cf(0x17a)]);}else{if(_0x49d2cf(0x1a0)===_0x123c7c[_0x49d2cf(0x1af)]&&_0x1386ee)for(const _0x5a2a42 of _0x123c7c[_0x49d2cf(0x167)]){const _0xdae60f=_0x49d2cf(0x19f)===_0x5a2a42[_0x49d2cf(0x184)]?_0x49d2cf(0x17d):_0x49d2cf(0x1ad),_0x2d9c10=_0x1386ee[_0x49d2cf(0x18e)]()?.[_0x49d2cf(0x175)]!==_0x4155ac;_0x1386ee[_0x49d2cf(0x152)]=_0x1386ee[_0x49d2cf(0x1b2)]({'type':_0xdae60f,'isDone':!0x0,'interactionId':_0x1386ee['id'],'areActionsDisabled':_0x2d9c10}),_0x1386ee[_0x49d2cf(0x152)][_0x49d2cf(0x149)](_0x5a2a42[_0x49d2cf(0x167)]);}}}async[_0x25544f(0x1a2)](_0x4d02bb){const _0x3030e2=_0x25544f,_0x93a7f6=new Map();if(!_0x4d02bb[_0x3030e2(0x167)])return _0x93a7f6;for(const _0x52b80c of _0x4d02bb[_0x3030e2(0x167)]){const _0x134a5c=await this[_0x3030e2(0x150)][_0x3030e2(0x16b)](_0x52b80c);_0x134a5c&&_0x93a7f6[_0x3030e2(0x14d)](_0x134a5c['id'],_0x134a5c);}return _0x93a7f6;}async[_0x25544f(0x156)]({userMessage:_0x2673f9,quickActionData:_0x1a497c}){const _0x12168f=_0x25544f;if(!this[_0x12168f(0x194)])throw new _0x334ab5(_0x12168f(0x18f),null,{'conversation':this});if(this[_0x12168f(0x191)])throw new _0x334ab5(_0x12168f(0x18c),null,{'conversation':this});try{const _0x13e346=this[_0x12168f(0x150)][_0x12168f(0x1a4)](),_0x4ee657=this[_0x12168f(0x13f)][_0x12168f(0x15e)](),_0x4aaac5=this[_0x12168f(0x1a3)]['id'];this[_0x12168f(0x191)]=this[_0x12168f(0x179)]({'userMessage':_0x2673f9,'contextItems':_0x13e346,'capabilities':_0x4ee657,'modelId':_0x4aaac5,'quickActionData':_0x1a497c}),await this[_0x12168f(0x191)][_0x12168f(0x14b)](),this[_0x12168f(0x150)][_0x12168f(0x196)](this[_0x12168f(0x191)][_0x12168f(0x17a)]);}catch(_0x12e5b2){this[_0x12168f(0x177)](_0x12168f(0x148),{'interactionId':this[_0x12168f(0x191)]?this[_0x12168f(0x191)]['id']:void 0x0,'error':_0x12e5b2});}finally{this[_0x12168f(0x191)]?.[_0x12168f(0x1ac)](),this[_0x12168f(0x191)]=void 0x0;}}[_0x25544f(0x179)]({userMessage:_0x2b826f,contextItems:_0x4620da,capabilities:_0x2272e2,modelId:_0xe07e36,quickActionData:_0x14dfce}){const _0x1e07b9=_0x25544f,_0xd91d5f=new _0x454031({'userMessage':_0x2b826f,'contextItems':_0x4620da,'capabilities':_0x2272e2,'conversationId':this['id'],'connector':this[_0x1e07b9(0x151)],'editor':this[_0x1e07b9(0x189)][_0x1e07b9(0x169)]&&this[_0x1e07b9(0x189)][_0x1e07b9(0x169)](),'model':_0xe07e36,'quickActionData':_0x14dfce});return _0xd91d5f[_0x1e07b9(0x18a)](..._0x24dc37)['to'](this),this[_0x1e07b9(0x155)][_0x1e07b9(0x168)](_0xd91d5f),this[_0x1e07b9(0x177)](_0x1e07b9(0x161),_0xd91d5f),_0xd91d5f;}[_0x25544f(0x190)](_0x3c4702){const _0x400aab=_0x25544f;return this[_0x400aab(0x155)][_0x400aab(0x140)](_0x526176=>_0x526176['id']===_0x3c4702);}[_0x25544f(0x173)](_0x219f7b){const _0x4f4ead=_0x25544f,_0xa6736a=this[_0x4f4ead(0x190)](_0x219f7b);_0xa6736a&&(_0xa6736a[_0x4f4ead(0x192)](),this[_0x4f4ead(0x155)][_0x4f4ead(0x1ab)](this[_0x4f4ead(0x155)][_0x4f4ead(0x1b1)](_0xa6736a),0x1));}get[_0x25544f(0x1a5)](){const _0x47ac67=_0x25544f;return this[_0x47ac67(0x155)][this[_0x47ac67(0x155)][_0x47ac67(0x16a)]-0x1];}[_0x25544f(0x172)](_0xf96a00){const _0x303df5=_0x25544f;this[_0x303df5(0x150)][_0x303df5(0x172)](_0xf96a00);}async[_0x25544f(0x15d)]({content:_0xd91ca,version:_0x4a8c24,sessionId:_0x4fa537,selections:_0x363237}){const _0x3ab0d8=_0x25544f;await this[_0x3ab0d8(0x150)][_0x3ab0d8(0x143)](_0xd91ca,_0x4a8c24,_0x4fa537,_0x363237);}[_0x25544f(0x14a)](){const _0x398b3b=_0x25544f;return this[_0x398b3b(0x191)]?.[_0x398b3b(0x18e)]()?.[_0x398b3b(0x167)]||'';}[_0x25544f(0x18b)](_0x2d711a){const _0x323587=_0x25544f;this[_0x323587(0x150)][_0x323587(0x18b)](_0x2d711a);}[_0x25544f(0x154)](){const _0x3065a7=_0x25544f;this[_0x3065a7(0x150)][_0x3065a7(0x154)]();}[_0x25544f(0x17f)](_0x34c14a){const _0x4ecc07=_0x25544f;this[_0x4ecc07(0x150)][_0x4ecc07(0x17f)](_0x34c14a);}[_0x25544f(0x146)](_0x52f1f5){const _0x243290=_0x25544f;this[_0x243290(0x150)][_0x243290(0x146)](_0x52f1f5);}[_0x25544f(0x19d)](_0x564490,_0x598e22){const _0xfc259c=_0x25544f;this[_0xfc259c(0x150)][_0xfc259c(0x19d)](_0x564490,_0x598e22);}[_0x25544f(0x199)](_0x48d9bd,_0x3bd68f,_0x5545b0){const _0x2bf399=_0x25544f;return this[_0x2bf399(0x150)][_0x2bf399(0x199)](_0x48d9bd,_0x3bd68f,_0x5545b0);}[_0x25544f(0x16c)](_0x424ce8){const _0x367953=_0x25544f;this[_0x367953(0x150)][_0x367953(0x16c)](_0x424ce8);}[_0x25544f(0x16e)](){const _0x125ac0=_0x25544f;this[_0x125ac0(0x13f)][_0x125ac0(0x16e)]();}[_0x25544f(0x14c)](){const _0x19a0f5=_0x25544f;this[_0x19a0f5(0x13f)][_0x19a0f5(0x14c)]();}[_0x25544f(0x142)](){const _0x4b821f=_0x25544f;return this[_0x4b821f(0x150)][_0x4b821f(0x142)]();}[_0x25544f(0x1a9)](){const _0x3fb77f=_0x25544f;return this[_0x3fb77f(0x150)][_0x3fb77f(0x1a9)]();}[_0x25544f(0x165)](){const _0x708eb7=_0x25544f;return this[_0x708eb7(0x150)][_0x708eb7(0x165)]();}async[_0x25544f(0x17c)](_0x29436c){const _0x2bbd66=_0x25544f;if(!_0x29436c)throw new _0x334ab5(_0x2bbd66(0x182),null,{'conversation':this});if(!0x1===await this[_0x2bbd66(0x1a7)][_0x2bbd66(0x18d)](_0x29436c))throw new _0x334ab5(_0x2bbd66(0x17e),null,{'conversation':this,'model':_0x29436c});_0x29436c['id']!==this[_0x2bbd66(0x1a3)]?.['id']&&(this[_0x2bbd66(0x1a3)]=_0x29436c,this[_0x2bbd66(0x13f)][_0x2bbd66(0x164)](),this[_0x2bbd66(0x177)](_0x2bbd66(0x166),{'selectedModel':_0x29436c}));}}
23
+ const _0x125b94=_0x573a;function _0x573a(_0x2dc29c,_0x290adb){const _0x5dad54=_0x5dad();return _0x573a=function(_0x573a0a,_0x229c07){_0x573a0a=_0x573a0a-0x1b1;let _0x4d758d=_0x5dad54[_0x573a0a];return _0x4d758d;},_0x573a(_0x2dc29c,_0x290adb);}(function(_0x570d8b,_0x1c2206){const _0x367247=_0x573a,_0x57af42=_0x570d8b();while(!![]){try{const _0x308bea=-parseInt(_0x367247(0x1d2))/0x1*(-parseInt(_0x367247(0x1d1))/0x2)+-parseInt(_0x367247(0x1ec))/0x3*(-parseInt(_0x367247(0x1e1))/0x4)+parseInt(_0x367247(0x21d))/0x5+parseInt(_0x367247(0x204))/0x6+-parseInt(_0x367247(0x1c9))/0x7*(-parseInt(_0x367247(0x1e3))/0x8)+-parseInt(_0x367247(0x219))/0x9*(-parseInt(_0x367247(0x1ba))/0xa)+parseInt(_0x367247(0x200))/0xb*(-parseInt(_0x367247(0x208))/0xc);if(_0x308bea===_0x1c2206)break;else _0x57af42['push'](_0x57af42['shift']());}catch(_0x56e7e7){_0x57af42['push'](_0x57af42['shift']());}}}(_0x5dad,0xbe52a));import{CKEditorError as _0x3b6223,EmitterMixin as _0x2610fb}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x39a293}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x437fe7,AI_CONTEXT_MODEL_EVENT_NAMES as _0x473397}from'./aichatcontext.js';function _0x5dad(){const _0x209fc5=['webSearch','34929VYIqHQ','_extractContextItems','reset','isCurrentDocumentInConversation','6542780ioWIMn','selectedModel','currentInteraction','init','assistant','model','addToConversationContext','chatModels','push','ai-chat-conversation-already-started','contextItems','getEditor','role','type','getCapabilitiesConfig','stack','chatContext','730dwDaBZ','populateFromMessage','error','getCurrentDocumentContext','load','addCurrentDocumentToContext','ai-chat-conversation-init-from-id-failed','toLowerCase','removeInteraction','setModel','isAvailable','getDefault','lastInteraction','toggleReasoning','appendContent','219583xfqlBn','message','currentReply','handleUserInteraction','addUrlToContext','getMessages','title','updateCurrentDocumentInContext','2JFpBHC','1446919jMUmwc','defaultModelId','ai-chat-conversation-start-failed','destroy','updateCurrentDocument','ai-chat-conversation-start-no-model-selected','ai-chat-handle-user-interaction-already-in-progress','createInteraction','getAll','_processMessagesToInteractions','modelSelected','setConversationTitle','removeSelectionFromContext','hasOwn','getPendingContextItems','12LIdyYb','sessionId','136shWfLe','isStarted','prompt','user','splice','set','toggleWebSearch','addSelectionToContext','fire','1180425lTpuoY','stop','getConversation','interactions','fetchConversationMessages','indexOf','modification-delta','createReply','start','find','ai-chat-conversation-init-failed','isCurrentDocumentInContext','addResourceToContext','conversationId','conversationInitialized','content','startConversation','removeFromContext','chatCapabilities','connector','53093579nFdtWb','ai-chat-conversation-set-model-null','ai-chat-handle-user-conversation-not-initialized','fetchConversation','5122590EsyZKW','isSelectionInContext','addFilesToContext','capabilities','12glqchJ','attributes','delegate','getInteraction','options','ai-chat-conversation-set-model-not-available','text','getDocumentContext','interactionCreated','group','text-delta','reasoning','quickActionData','length','loadSourceResources','conversationStarted'];_0x5dad=function(){return _0x209fc5;};return _0x5dad();}import{AICapabilities as _0x5ed96f,CAPABILITIES_MODEL_EVENT_NAMES as _0x12c4bd}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x464ead}from'./aichatinteraction.js';export class AIChatConversation extends _0x2610fb(){['id'];[_0x125b94(0x1e4)]=!0x1;[_0x125b94(0x1ef)]=[];[_0x125b94(0x21f)];[_0x125b94(0x21e)];[_0x125b94(0x1ff)];[_0x125b94(0x20c)];constructor(_0x1c2d2e){const _0xa309ac=_0x125b94;super(),this[_0xa309ac(0x20c)]=_0x1c2d2e,this[_0xa309ac(0x1ff)]=_0x1c2d2e[_0xa309ac(0x1ff)],this[_0xa309ac(0x224)]=_0x1c2d2e[_0xa309ac(0x224)],this['id']=_0x1c2d2e[_0xa309ac(0x1f9)];}async[_0x125b94(0x220)](_0xf53a3c){const _0x4298e0=_0x125b94;try{this[_0x4298e0(0x1b9)]=new _0x437fe7({'connector':this[_0x4298e0(0x1ff)],'config':_0xf53a3c,'ownerId':this['id']}),this[_0x4298e0(0x1b9)][_0x4298e0(0x20a)](..._0x473397)['to'](this),this[_0x4298e0(0x1b9)][_0x4298e0(0x220)](),this[_0x4298e0(0x1fe)]=new _0x5ed96f(),this[_0x4298e0(0x1fe)][_0x4298e0(0x20a)](..._0x12c4bd)['to'](this),this[_0x4298e0(0x1fe)][_0x4298e0(0x220)]();const _0x5491c0=await this[_0x4298e0(0x224)][_0x4298e0(0x1da)]();this[_0x4298e0(0x1eb)](_0x4298e0(0x1fa),{'availableModels':_0x5491c0});const _0x59e66b=await this[_0x4298e0(0x224)][_0x4298e0(0x1c5)](this[_0x4298e0(0x20c)][_0x4298e0(0x1d3)]);_0x59e66b&&await this[_0x4298e0(0x1c3)](_0x59e66b);}catch(_0x48788d){const _0x3367a4=new _0x3b6223(_0x4298e0(0x1f6),null,{'message':_0x48788d[_0x4298e0(0x1ca)]});_0x3367a4[_0x4298e0(0x1b8)]=_0x48788d[_0x4298e0(0x1b8)],this[_0x4298e0(0x1eb)](_0x4298e0(0x1bc),{'error':_0x3367a4});}}async[_0x125b94(0x1f4)](){const _0x4fe2d5=_0x125b94;if(this[_0x4fe2d5(0x1e4)])throw new _0x3b6223(_0x4fe2d5(0x1b2),null,{'conversation':this});if(!this[_0x4fe2d5(0x21e)])throw new _0x3b6223(_0x4fe2d5(0x1d7),null,{'conversation':this});try{const {id:_0x58af17}=await this[_0x4fe2d5(0x1ff)][_0x4fe2d5(0x1fc)](this['id'],this[_0x4fe2d5(0x20c)][_0x4fe2d5(0x211)])[_0x4fe2d5(0x1ee)]();this['id']=_0x58af17,this[_0x4fe2d5(0x1e4)]=!0x0,this[_0x4fe2d5(0x1eb)](_0x4fe2d5(0x217),{'conversationId':this['id'],'selectedModel':this[_0x4fe2d5(0x21e)]});}catch(_0x2b32a9){const _0x296bdc=new _0x3b6223(_0x4fe2d5(0x1d4),null,{'message':_0x2b32a9[_0x4fe2d5(0x1ca)]});_0x296bdc[_0x4fe2d5(0x1b8)]=_0x2b32a9[_0x4fe2d5(0x1b8)],this[_0x4fe2d5(0x1eb)](_0x4fe2d5(0x1bc),{'error':_0x296bdc});}}async[_0x125b94(0x1be)](_0x138e8,_0x49e5ec){const _0x38c01e=_0x125b94;try{const _0x2632d7=await this[_0x38c01e(0x1ff)][_0x38c01e(0x203)](_0x138e8)[_0x38c01e(0x1ee)](),_0x4867f1=await this[_0x38c01e(0x1ff)][_0x38c01e(0x1f0)](_0x138e8)[_0x38c01e(0x1ce)](),_0x235188=_0x4867f1[0x0][_0x38c01e(0x222)];this[_0x38c01e(0x1e4)]=!0x0,this['id']=_0x2632d7['id'],_0x38c01e(0x1cf)in _0x2632d7?this[_0x38c01e(0x1eb)](_0x38c01e(0x1dd),_0x2632d7[_0x38c01e(0x1cf)],!0x0):this[_0x38c01e(0x1eb)](_0x38c01e(0x1dd),'',!0x0);const _0x2585bc=(await this[_0x38c01e(0x224)][_0x38c01e(0x1da)]())[_0x38c01e(0x1f5)](_0x1ea304=>_0x1ea304['id'][_0x38c01e(0x1c1)]()===_0x235188[_0x38c01e(0x1c1)]());return this[_0x38c01e(0x21e)]=_0x2585bc,this[_0x38c01e(0x1eb)](_0x38c01e(0x1dc),{'selectedModel':_0x2585bc,'isDisabled':!0x0}),await this[_0x38c01e(0x1db)](_0x4867f1,_0x49e5ec,_0x235188),this[_0x38c01e(0x21f)]=void 0x0,this;}catch(_0x36f07e){const _0x405fb6=new _0x3b6223(_0x38c01e(0x1c0),null,{'message':_0x36f07e[_0x38c01e(0x1ca)],'conversationId':_0x138e8});throw _0x405fb6[_0x38c01e(0x1b8)]=_0x36f07e[_0x38c01e(0x1b8)],this[_0x38c01e(0x1eb)](_0x38c01e(0x1bc),{'error':_0x405fb6}),_0x405fb6;}}async[_0x125b94(0x1db)](_0x1b7c8f,_0x1bebaf,_0x4d96a2){const _0x35d308=_0x125b94;let _0x4cafe1;for(const _0x4f20e6 of _0x1b7c8f)if(_0x35d308(0x1e6)===_0x4f20e6[_0x35d308(0x1b5)]){const _0x5cbbdc=await this[_0x35d308(0x21a)](_0x4f20e6),_0x57882f={'isReasoningEnabled':Object[_0x35d308(0x1df)](_0x4f20e6[_0x35d308(0x207)],_0x35d308(0x213)),'isWebSearchEnabled':Object[_0x35d308(0x1df)](_0x4f20e6[_0x35d308(0x207)],_0x35d308(0x218))};_0x4cafe1=this[_0x35d308(0x1d9)]({'userMessage':_0x4f20e6[_0x35d308(0x1e5)],'contextItems':_0x5cbbdc,'capabilities':_0x57882f,'modelId':_0x4d96a2,'quickActionData':_0x4f20e6[_0x35d308(0x209)]?.[_0x35d308(0x214)]}),this[_0x35d308(0x21f)]=_0x4cafe1,this[_0x35d308(0x1b9)][_0x35d308(0x223)](this[_0x35d308(0x21f)][_0x35d308(0x1b3)]);}else{if(_0x35d308(0x221)===_0x4f20e6[_0x35d308(0x1b5)]&&_0x4cafe1)for(const _0x176493 of _0x4f20e6[_0x35d308(0x1fb)]){const _0x5f54e4=_0x35d308(0x20e)===_0x176493[_0x35d308(0x1b6)]?_0x35d308(0x212):_0x35d308(0x1f2),_0x195f14=_0x4cafe1[_0x35d308(0x20f)]()?.[_0x35d308(0x1e2)]!==_0x1bebaf;_0x4cafe1[_0x35d308(0x1cb)]=_0x4cafe1[_0x35d308(0x1f3)]({'type':_0x5f54e4,'isDone':!0x0,'interactionId':_0x4cafe1['id'],'areActionsDisabled':_0x195f14}),_0x4cafe1[_0x35d308(0x1cb)][_0x35d308(0x1c8)](_0x176493[_0x35d308(0x1fb)]);}}}async[_0x125b94(0x21a)](_0x572fa7){const _0x12237e=_0x125b94,_0x545809=new Map();if(!_0x572fa7[_0x12237e(0x1fb)])return _0x545809;for(const _0x277b49 of _0x572fa7[_0x12237e(0x1fb)]){const _0x28fcb3=await this[_0x12237e(0x1b9)][_0x12237e(0x1bb)](_0x277b49);_0x28fcb3&&_0x545809[_0x12237e(0x1e8)](_0x28fcb3['id'],_0x28fcb3);}return _0x545809;}async[_0x125b94(0x1cc)]({userMessage:_0x4ef7be,quickActionData:_0x47b549}){const _0x4079a6=_0x125b94;if(!this[_0x4079a6(0x1e4)])throw new _0x3b6223(_0x4079a6(0x202),null,{'conversation':this});if(this[_0x4079a6(0x21f)])throw new _0x3b6223(_0x4079a6(0x1d8),null,{'conversation':this});try{const _0x3a3d42=this[_0x4079a6(0x1b9)][_0x4079a6(0x1e0)](),_0x11f73e=this[_0x4079a6(0x1fe)][_0x4079a6(0x1b7)](),_0x134141=this[_0x4079a6(0x21e)]['id'];this[_0x4079a6(0x21f)]=this[_0x4079a6(0x1d9)]({'userMessage':_0x4ef7be,'contextItems':_0x3a3d42,'capabilities':_0x11f73e,'modelId':_0x134141,'quickActionData':_0x47b549}),await this[_0x4079a6(0x21f)][_0x4079a6(0x1f4)](),this[_0x4079a6(0x1b9)][_0x4079a6(0x223)](this[_0x4079a6(0x21f)][_0x4079a6(0x1b3)]);}catch(_0x1ad71e){this[_0x4079a6(0x1eb)](_0x4079a6(0x1bc),{'interactionId':this[_0x4079a6(0x21f)]?this[_0x4079a6(0x21f)]['id']:void 0x0,'error':_0x1ad71e});}finally{this[_0x4079a6(0x21f)]?.[_0x4079a6(0x1ed)](),this[_0x4079a6(0x21f)]=void 0x0;}}[_0x125b94(0x1d9)]({userMessage:_0x55cb5c,contextItems:_0x44bb61,capabilities:_0x5d1a51,modelId:_0x3ae774,quickActionData:_0xf6dfe9}){const _0x39c302=_0x125b94,_0x59c364=new _0x464ead({'userMessage':_0x55cb5c,'contextItems':_0x44bb61,'capabilities':_0x5d1a51,'conversationId':this['id'],'connector':this[_0x39c302(0x1ff)],'editor':this[_0x39c302(0x20c)][_0x39c302(0x1b4)]&&this[_0x39c302(0x20c)][_0x39c302(0x1b4)](),'model':_0x3ae774,'quickActionData':_0xf6dfe9});return _0x59c364[_0x39c302(0x20a)](..._0x39a293)['to'](this),this[_0x39c302(0x1ef)][_0x39c302(0x1b1)](_0x59c364),this[_0x39c302(0x1eb)](_0x39c302(0x210),_0x59c364),_0x59c364;}[_0x125b94(0x20b)](_0x59edff){const _0x5cf8ac=_0x125b94;return this[_0x5cf8ac(0x1ef)][_0x5cf8ac(0x1f5)](_0x3de3c3=>_0x3de3c3['id']===_0x59edff);}[_0x125b94(0x1c2)](_0x475e34){const _0x1a8374=_0x125b94,_0x184a25=this[_0x1a8374(0x20b)](_0x475e34);_0x184a25&&(_0x184a25[_0x1a8374(0x1d5)](),this[_0x1a8374(0x1ef)][_0x1a8374(0x1e7)](this[_0x1a8374(0x1ef)][_0x1a8374(0x1f1)](_0x184a25),0x1));}get[_0x125b94(0x1c6)](){const _0x220a66=_0x125b94;return this[_0x220a66(0x1ef)][this[_0x220a66(0x1ef)][_0x220a66(0x215)]-0x1];}[_0x125b94(0x1bf)](_0x1438d9){const _0x3ebfc5=_0x125b94;this[_0x3ebfc5(0x1b9)][_0x3ebfc5(0x1bf)](_0x1438d9);}async[_0x125b94(0x1d0)]({content:_0x10976a,version:_0x8b5de7,sessionId:_0x4f6337,selections:_0x28302a}){const _0x3a9609=_0x125b94;await this[_0x3a9609(0x1b9)][_0x3a9609(0x1d6)](_0x10976a,_0x8b5de7,_0x4f6337,_0x28302a);}[_0x125b94(0x1bd)](){const _0x5c550e=_0x125b94;return this[_0x5c550e(0x21f)]?.[_0x5c550e(0x20f)]()?.[_0x5c550e(0x1fb)]||'';}[_0x125b94(0x1ea)](_0x26a5e9){const _0x3a429c=_0x125b94;this[_0x3a429c(0x1b9)][_0x3a429c(0x1ea)](_0x26a5e9);}[_0x125b94(0x1de)](){const _0x3af4e9=_0x125b94;this[_0x3af4e9(0x1b9)][_0x3af4e9(0x1de)]();}[_0x125b94(0x206)](_0x3e3d1c){const _0x207d58=_0x125b94;this[_0x207d58(0x1b9)][_0x207d58(0x206)](_0x3e3d1c);}[_0x125b94(0x1cd)](_0x2a13c1){const _0x2f0647=_0x125b94;this[_0x2f0647(0x1b9)][_0x2f0647(0x1cd)](_0x2a13c1);}[_0x125b94(0x1f8)](_0x52a7c1,_0x3a03d6){const _0x21ae73=_0x125b94;this[_0x21ae73(0x1b9)][_0x21ae73(0x1f8)](_0x52a7c1,_0x3a03d6);}[_0x125b94(0x216)](_0x294f9a,_0x38c2b6,_0x2c6fba){const _0x1f7132=_0x125b94;return this[_0x1f7132(0x1b9)][_0x1f7132(0x216)](_0x294f9a,_0x38c2b6,_0x2c6fba);}[_0x125b94(0x1fd)](_0x55ff0b){const _0x128012=_0x125b94;this[_0x128012(0x1b9)][_0x128012(0x1fd)](_0x55ff0b);}[_0x125b94(0x1e9)](){const _0x29a1b=_0x125b94;this[_0x29a1b(0x1fe)][_0x29a1b(0x1e9)]();}[_0x125b94(0x1c7)](){const _0x50729a=_0x125b94;this[_0x50729a(0x1fe)][_0x50729a(0x1c7)]();}[_0x125b94(0x1f7)](){const _0xeaf54f=_0x125b94;return this[_0xeaf54f(0x1b9)][_0xeaf54f(0x1f7)]();}[_0x125b94(0x21c)](){const _0x44f207=_0x125b94;return this[_0x44f207(0x1b9)][_0x44f207(0x21c)]();}[_0x125b94(0x205)](){const _0x3bbe16=_0x125b94;return this[_0x3bbe16(0x1b9)][_0x3bbe16(0x205)]();}async[_0x125b94(0x1c3)](_0x23845a){const _0x3d260b=_0x125b94;if(!_0x23845a)throw new _0x3b6223(_0x3d260b(0x201),null,{'conversation':this});if(!0x1===await this[_0x3d260b(0x224)][_0x3d260b(0x1c4)](_0x23845a))throw new _0x3b6223(_0x3d260b(0x20d),null,{'conversation':this,'model':_0x23845a});_0x23845a['id']!==this[_0x3d260b(0x21e)]?.['id']&&(this[_0x3d260b(0x21e)]=_0x23845a,this[_0x3d260b(0x1fe)][_0x3d260b(0x21b)](),this[_0x3d260b(0x1eb)](_0x3d260b(0x1dc),{'selectedModel':_0x23845a}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x8bb3(){var _0x11f6ca=['userMessage','queryAssistant','385872EYSaCE','connector','conversationId','getDocumentContext','7073552fPrulB','4250862BXMCpc','8337096PWZkQe','mapContextItemsToRequestData','contextItems','4967753MnJWMD','9lwbkLr','121504uGiMHJ','sendRequest','8OMgUGa','current-document','getCapabilitiesRequestData','capabilities','70bwFueC','model','13yWLOYS','2bFahQV','30oBDrsi','quickActionData','get','87198OdQhqe'];_0x8bb3=function(){return _0x11f6ca;};return _0x8bb3();}var _0x9e3783=_0x2773;(function(_0x117e79,_0x5387e9){var _0x1dc024=_0x2773,_0x5f2965=_0x117e79();while(!![]){try{var _0x947e4f=parseInt(_0x1dc024(0xe6))/0x1*(-parseInt(_0x1dc024(0xef))/0x2)+-parseInt(_0x1dc024(0xf3))/0x3*(parseInt(_0x1dc024(0xe8))/0x4)+parseInt(_0x1dc024(0xec))/0x5*(-parseInt(_0x1dc024(0xf6))/0x6)+parseInt(_0x1dc024(0xe4))/0x7+-parseInt(_0x1dc024(0xfa))/0x8*(parseInt(_0x1dc024(0xe5))/0x9)+-parseInt(_0x1dc024(0xf0))/0xa*(-parseInt(_0x1dc024(0xfb))/0xb)+parseInt(_0x1dc024(0xfc))/0xc*(parseInt(_0x1dc024(0xee))/0xd);if(_0x947e4f===_0x5387e9)break;else _0x5f2965['push'](_0x5f2965['shift']());}catch(_0x44c8cd){_0x5f2965['push'](_0x5f2965['shift']());}}}(_0x8bb3,0x9260d));import{AICapabilities as _0x3c4114}from'../../aicore/model/aicapabilities.js';function _0x2773(_0xef7b9b,_0x2a5a2c){var _0x8bb380=_0x8bb3();return _0x2773=function(_0x277318,_0x559150){_0x277318=_0x277318-0xe2;var _0x27cb09=_0x8bb380[_0x277318];return _0x27cb09;},_0x2773(_0xef7b9b,_0x2a5a2c);}import{AIInteraction as _0x3fcaea}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x12feaf}from'./aichatcontext.js';export class AIChatInteraction extends _0x3fcaea{[_0x9e3783(0xf4)];[_0x9e3783(0xf8)];[_0x9e3783(0xe3)]=new Map();[_0x9e3783(0xed)];[_0x9e3783(0xf1)];constructor(_0x218eef){var _0x250014=_0x9e3783;super(_0x218eef),this[_0x250014(0xf8)]=_0x218eef[_0x250014(0xf8)],this[_0x250014(0xe3)]=_0x218eef[_0x250014(0xe3)],this[_0x250014(0xeb)]=_0x218eef[_0x250014(0xeb)],this[_0x250014(0xf4)]=_0x218eef[_0x250014(0xf4)],this[_0x250014(0xed)]=_0x218eef[_0x250014(0xed)],this[_0x250014(0xf1)]=_0x218eef[_0x250014(0xf1)];}async[_0x9e3783(0xe7)](){var _0x2b1e4e=_0x9e3783;return this[_0x2b1e4e(0xf7)][_0x2b1e4e(0xf5)]({'message':this[_0x2b1e4e(0xf4)],'conversationId':this[_0x2b1e4e(0xf8)],'parts':_0x12feaf[_0x2b1e4e(0xe2)](this[_0x2b1e4e(0xe3)]),'capabilities':_0x3c4114[_0x2b1e4e(0xea)](this[_0x2b1e4e(0xeb)]),'model':this[_0x2b1e4e(0xed)],'quickActionData':this[_0x2b1e4e(0xf1)]});}[_0x9e3783(0xf9)](){var _0x52c409=_0x9e3783;return this[_0x52c409(0xe3)][_0x52c409(0xf2)](_0x52c409(0xe9));}}
23
+ function _0x3347(){var _0x1282cd=['4424OuhdvA','get','mapContextItemsToRequestData','11FVaizA','contextItems','2329116yHfDiG','queryAssistant','sendRequest','278104iGJjql','current-document','1661254vsWvzl','6pXiqPm','3214143omuGzl','2646220VoWgzO','connector','model','1jFwYSz','conversationId','capabilities','getCapabilitiesRequestData','getDocumentContext','quickActionData','5KbXLcY','4940394QmOyxu','userMessage','3368yrCAfc'];_0x3347=function(){return _0x1282cd;};return _0x3347();}var _0x12f7ee=_0x80e6;(function(_0x5517ea,_0x4aae8e){var _0x5f397e=_0x80e6,_0x5ade11=_0x5517ea();while(!![]){try{var _0x1ff866=parseInt(_0x5f397e(0x1ae))/0x1*(parseInt(_0x5f397e(0x1a8))/0x2)+parseInt(_0x5f397e(0x1a9))/0x3*(-parseInt(_0x5f397e(0x1a6))/0x4)+-parseInt(_0x5f397e(0x1b4))/0x5*(parseInt(_0x5f397e(0x1b5))/0x6)+parseInt(_0x5f397e(0x1b8))/0x7*(-parseInt(_0x5f397e(0x1b7))/0x8)+parseInt(_0x5f397e(0x1aa))/0x9+parseInt(_0x5f397e(0x1ab))/0xa+parseInt(_0x5f397e(0x1bb))/0xb*(parseInt(_0x5f397e(0x1a3))/0xc);if(_0x1ff866===_0x4aae8e)break;else _0x5ade11['push'](_0x5ade11['shift']());}catch(_0x4efc33){_0x5ade11['push'](_0x5ade11['shift']());}}}(_0x3347,0x6609a));import{AICapabilities as _0x246547}from'../../aicore/model/aicapabilities.js';function _0x80e6(_0x213beb,_0x2b08b9){var _0x33479e=_0x3347();return _0x80e6=function(_0x80e6d9,_0x2413b1){_0x80e6d9=_0x80e6d9-0x1a2;var _0x148d9d=_0x33479e[_0x80e6d9];return _0x148d9d;},_0x80e6(_0x213beb,_0x2b08b9);}import{AIInteraction as _0x1a664d}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x279c5f}from'./aichatcontext.js';export class AIChatInteraction extends _0x1a664d{[_0x12f7ee(0x1b6)];[_0x12f7ee(0x1af)];[_0x12f7ee(0x1a2)]=new Map();[_0x12f7ee(0x1ad)];[_0x12f7ee(0x1b3)];constructor(_0x4b865e){var _0x4baf37=_0x12f7ee;super(_0x4b865e),this[_0x4baf37(0x1af)]=_0x4b865e[_0x4baf37(0x1af)],this[_0x4baf37(0x1a2)]=_0x4b865e[_0x4baf37(0x1a2)],this[_0x4baf37(0x1b0)]=_0x4b865e[_0x4baf37(0x1b0)],this[_0x4baf37(0x1b6)]=_0x4b865e[_0x4baf37(0x1b6)],this[_0x4baf37(0x1ad)]=_0x4b865e[_0x4baf37(0x1ad)],this[_0x4baf37(0x1b3)]=_0x4b865e[_0x4baf37(0x1b3)];}async[_0x12f7ee(0x1a5)](){var _0x371943=_0x12f7ee;return this[_0x371943(0x1ac)][_0x371943(0x1a4)]({'message':this[_0x371943(0x1b6)],'conversationId':this[_0x371943(0x1af)],'parts':_0x279c5f[_0x371943(0x1ba)](this[_0x371943(0x1a2)]),'capabilities':_0x246547[_0x371943(0x1b1)](this[_0x371943(0x1b0)]),'model':this[_0x371943(0x1ad)],'quickActionData':this[_0x371943(0x1b3)]});}[_0x12f7ee(0x1b2)](){var _0x31bb7d=_0x12f7ee;return this[_0x31bb7d(0x1a2)][_0x31bb7d(0x1b9)](_0x31bb7d(0x1a7));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x58ee92=_0x2a51;function _0x2a51(_0x1cffc4,_0x222e0c){const _0x51aa05=_0x51aa();return _0x2a51=function(_0x2a517d,_0x33251d){_0x2a517d=_0x2a517d-0x87;let _0x355868=_0x51aa05[_0x2a517d];return _0x355868;},_0x2a51(_0x1cffc4,_0x222e0c);}(function(_0x18fbc6,_0x43dc71){const _0x1b58a5=_0x2a51,_0x1cdfe8=_0x18fbc6();while(!![]){try{const _0x528147=-parseInt(_0x1b58a5(0x87))/0x1*(-parseInt(_0x1b58a5(0x9b))/0x2)+parseInt(_0x1b58a5(0x99))/0x3*(parseInt(_0x1b58a5(0x9c))/0x4)+parseInt(_0x1b58a5(0x92))/0x5*(-parseInt(_0x1b58a5(0x8b))/0x6)+-parseInt(_0x1b58a5(0xa3))/0x7*(parseInt(_0x1b58a5(0x98))/0x8)+-parseInt(_0x1b58a5(0xa2))/0x9+-parseInt(_0x1b58a5(0x89))/0xa+parseInt(_0x1b58a5(0x9f))/0xb;if(_0x528147===_0x43dc71)break;else _0x1cdfe8['push'](_0x1cdfe8['shift']());}catch(_0x4e1981){_0x1cdfe8['push'](_0x1cdfe8['shift']());}}}(_0x51aa,0x38757));import{EmitterMixin as _0x52ecbf,logWarning as _0x56a549}from'ckeditor5/src/utils.js';function _0x51aa(){const _0x56ca65=['5649oDlqnb','provider','12571hVqusV','find','2465740pzPomb','_connector','103980gDruTj','getAll','getDefault','isAvailable','capabilities','values','some','35mnaLpe','list','_modelList','length','filter','sort','3952YONWOh','4278VOkWvS','name','2HblPzK','980wEiMkj','ai-chat-default-model-id-unrecognized','enabled','8166180HdkrTx','items','getModels','958716GvxixT'];_0x51aa=function(){return _0x56ca65;};return _0x51aa();}export class AIChatModels extends _0x52ecbf(){[_0x58ee92(0x94)]=[];[_0x58ee92(0x8a)];constructor({connector:_0x22240a}){const _0x2ec233=_0x58ee92;super(),this[_0x2ec233(0x8a)]=_0x22240a;}async[_0x58ee92(0x8c)](){const _0x5b0f2e=_0x58ee92;if(!this[_0x5b0f2e(0x94)][_0x5b0f2e(0x95)]){const _0x15f02a=this[_0x5b0f2e(0x8a)][_0x5b0f2e(0xa1)](),_0x3a1fc9=(await _0x15f02a[_0x5b0f2e(0x93)]())[_0x5b0f2e(0xa0)][_0x5b0f2e(0x97)]((_0x277530,_0x1ae44a)=>{const _0x27e5cd=_0x5b0f2e,_0x454785=Object[_0x27e5cd(0x90)](_0x277530[_0x27e5cd(0x8f)])[_0x27e5cd(0x96)](_0x92a4cd=>_0x92a4cd[_0x27e5cd(0x9e)])[_0x27e5cd(0x95)];return Object[_0x27e5cd(0x90)](_0x1ae44a[_0x27e5cd(0x8f)])[_0x27e5cd(0x96)](_0x17816d=>_0x17816d[_0x27e5cd(0x9e)])[_0x27e5cd(0x95)]-_0x454785;});this[_0x5b0f2e(0x94)]=_0x3a1fc9;}return this[_0x5b0f2e(0x94)];}async[_0x58ee92(0x8d)](_0x3f5495){const _0x1f8667=_0x58ee92,_0x43b84e=await this[_0x1f8667(0x8c)]();if(!_0x43b84e[_0x1f8667(0x95)])return null;if(_0x3f5495){const _0x5ef753=_0x43b84e[_0x1f8667(0x88)](_0xa8bd01=>_0xa8bd01['id']===_0x3f5495);if(_0x5ef753)return _0x5ef753;_0x56a549(_0x1f8667(0x9d),{'defaultModelId':_0x3f5495,'fallBackModelId':_0x43b84e[0x0]['id']});}return _0x43b84e[0x0];}async[_0x58ee92(0x8e)](_0x349b96){const _0x18a9bd=_0x58ee92;return(await this[_0x18a9bd(0x8c)]())[_0x18a9bd(0x91)](_0x5104be=>_0x5104be[_0x18a9bd(0x9a)]===_0x349b96[_0x18a9bd(0x9a)]&&_0x5104be[_0x18a9bd(0xa4)]===_0x349b96[_0x18a9bd(0xa4)]);}}
23
+ const _0xd53a74=_0x44ba;(function(_0xd5ae2,_0x228684){const _0x8392e0=_0x44ba,_0x24883f=_0xd5ae2();while(!![]){try{const _0x3c0f4b=parseInt(_0x8392e0(0xab))/0x1*(-parseInt(_0x8392e0(0x94))/0x2)+-parseInt(_0x8392e0(0xa2))/0x3+-parseInt(_0x8392e0(0x9b))/0x4+parseInt(_0x8392e0(0x9c))/0x5+parseInt(_0x8392e0(0x95))/0x6*(-parseInt(_0x8392e0(0xa7))/0x7)+parseInt(_0x8392e0(0xb0))/0x8+-parseInt(_0x8392e0(0x99))/0x9*(-parseInt(_0x8392e0(0xa9))/0xa);if(_0x3c0f4b===_0x228684)break;else _0x24883f['push'](_0x24883f['shift']());}catch(_0x3fc18b){_0x24883f['push'](_0x24883f['shift']());}}}(_0x4936,0xaae58));import{EmitterMixin as _0x564a0a,logWarning as _0x4bdebe}from'ckeditor5/src/utils.js';export class AIChatModels extends _0x564a0a(){[_0xd53a74(0xa8)]=[];[_0xd53a74(0x9e)];constructor({connector:_0x56fadc}){const _0x3ab8d0=_0xd53a74;super(),this[_0x3ab8d0(0x9e)]=_0x56fadc;}async[_0xd53a74(0xa1)](){const _0x4f6750=_0xd53a74;if(!this[_0x4f6750(0xa8)][_0x4f6750(0xad)]){const _0x383904=this[_0x4f6750(0x9e)][_0x4f6750(0xa4)](),_0x240dab=(await _0x383904[_0x4f6750(0x96)]())[_0x4f6750(0xae)][_0x4f6750(0x9f)]((_0x3ec9a0,_0x19eb98)=>{const _0x56b8dc=_0x4f6750,_0xef5531=Object[_0x56b8dc(0xa3)](_0x3ec9a0[_0x56b8dc(0xa5)])[_0x56b8dc(0xac)](_0x1fa35e=>_0x1fa35e[_0x56b8dc(0x98)])[_0x56b8dc(0xad)];return Object[_0x56b8dc(0xa3)](_0x19eb98[_0x56b8dc(0xa5)])[_0x56b8dc(0xac)](_0x16979c=>_0x16979c[_0x56b8dc(0x98)])[_0x56b8dc(0xad)]-_0xef5531;});this[_0x4f6750(0xa8)]=_0x240dab;}return this[_0x4f6750(0xa8)];}async[_0xd53a74(0x9a)](_0x5b5e8a){const _0x43332e=_0xd53a74,_0x43ad3d=await this[_0x43332e(0xa1)]();if(!_0x43ad3d[_0x43332e(0xad)])return null;if(_0x5b5e8a){const _0x28da38=_0x43ad3d[_0x43332e(0xa6)](_0x537292=>_0x537292['id']===_0x5b5e8a);if(_0x28da38)return _0x28da38;_0x4bdebe(_0x43332e(0xa0),{'defaultModelId':_0x5b5e8a,'fallBackModelId':_0x43ad3d[0x0]['id']});}return _0x43ad3d[0x0];}async[_0xd53a74(0x97)](_0x5c2063){const _0x1906f7=_0xd53a74;return(await this[_0x1906f7(0xa1)]())[_0x1906f7(0xaf)](_0x1d0bea=>_0x1d0bea[_0x1906f7(0xaa)]===_0x5c2063[_0x1906f7(0xaa)]&&_0x1d0bea[_0x1906f7(0x9d)]===_0x5c2063[_0x1906f7(0x9d)]);}}function _0x44ba(_0x5885bb,_0x231517){const _0x493669=_0x4936();return _0x44ba=function(_0x44ba6e,_0x22dc27){_0x44ba6e=_0x44ba6e-0x94;let _0x416797=_0x493669[_0x44ba6e];return _0x416797;},_0x44ba(_0x5885bb,_0x231517);}function _0x4936(){const _0x5dfbfd=['654717JKiQVt','_modelList','1546190luDIto','name','439kPKDSD','filter','length','items','some','6962328oqeQYv','3406WsVCVO','78BOfuCc','list','isAvailable','enabled','171NSutOf','getDefault','3759696baeQDO','5868685RgNKuX','provider','_connector','sort','ai-chat-default-model-id-unrecognized','getAll','4135059pubeYg','values','getModels','capabilities','find'];_0x4936=function(){return _0x5dfbfd;};return _0x4936();}
@@ -17,6 +17,12 @@ export declare class AIChatControlsView extends View {
17
17
  * @observable
18
18
  */
19
19
  isLoading: boolean;
20
+ /**
21
+ * The disabled state of the controls.
22
+ *
23
+ * @observable
24
+ */
25
+ isDisabled: boolean;
20
26
  constructor(locale: Locale, bodyCollection: BodyCollection);
21
27
  /**
22
28
  * Adds an item chip to the current context list.