@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.4

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 (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +16 -16
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.d.ts +21 -14
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.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/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27a96b=_0x9508;(function(_0x11bcbb,_0x41a815){const _0x20396b=_0x9508,_0x1c3fef=_0x11bcbb();while(!![]){try{const _0x489aa2=-parseInt(_0x20396b(0x197))/0x1+parseInt(_0x20396b(0x16e))/0x2*(parseInt(_0x20396b(0x187))/0x3)+-parseInt(_0x20396b(0x152))/0x4+-parseInt(_0x20396b(0x1a0))/0x5+parseInt(_0x20396b(0x198))/0x6+parseInt(_0x20396b(0x159))/0x7*(parseInt(_0x20396b(0x1ce))/0x8)+-parseInt(_0x20396b(0x156))/0x9;if(_0x489aa2===_0x41a815)break;else _0x1c3fef['push'](_0x1c3fef['shift']());}catch(_0xbc73a2){_0x1c3fef['push'](_0x1c3fef['shift']());}}}(_0x5ecb,0xa6511));import{CKEditorError as _0x96d3b4,ObservableMixin as _0xe85e33,uid as _0x32b7ae}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4c0c19,AIContextTextResourceType as _0x203c83}from'../../aicore/model/aicontext.js';import{escape as _0x1533d3}from'es-toolkit/compat';import{errorsMap as _0x8de527}from'../../errorsmap.js';function _0x9508(_0x1cf429,_0x1fb513){const _0x5ecb0a=_0x5ecb();return _0x9508=function(_0x95081b,_0x1c9873){_0x95081b=_0x95081b-0x145;let _0x39f5c0=_0x5ecb0a[_0x95081b];return _0x39f5c0;},_0x9508(_0x1cf429,_0x1fb513);}export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x27a96b(0x1cd),_0x27a96b(0x168),_0x27a96b(0x1b3),_0x27a96b(0x1c7),_0x27a96b(0x151),_0x27a96b(0x169),_0x27a96b(0x1c5),_0x27a96b(0x14d),_0x27a96b(0x1b5)];function _0x5ecb(){const _0x57a565=['isCurrentDocumentInConversation','hidden','name','all','contextItemRemoved','addContextOptionsChanged','getSentContextItems','text/html','sources','_findSourceIdsByResourceId','1588BLsVAQ','isCurrentDocumentInContext','_pendingContextItems','ai-chat-url-upload-failed','clearPendingContextItems','attributes','DOCUMENT','_ongoingUploads','_addContextItem','removeFromContext','enabled','addToolItemToContext','delete','uploadUrl','URL','init','text/plain','updateCurrentDocument','file-','addCurrentDocumentToContext','uiId','ai-chat-context-unsupported-type','isInContext','end','toolName','3369lzQeOI','resources','getId','length','urls','_ownerId','addUrlToContext','HTML','label','files','values','substring','uploadDocument','MARKDOWN','start','ai-chat-file-upload-failed','40928IiJaTT','5241138CSIfmV','_convertTextResourceToFile','Current\x20document','message','url','string','find','addToConversationContext','145690uFmqyT','SELECTION','isSelectionInContext','abort','fetchDocument','ai-chat-source-not-found','isReadOnly','_startUploadOperation','getDocument','forEach','addSelectionToContext','ai-chat-resource-no-data','url-','from','startsWith','set','push','size','addFilesToContext','contextItemLoadingEnded','FILE','uploadProgressChanged','_getCustomSourcesInitialState','has','resourceId','document','content','populateFromMessage','fire','customItems','_toggleAddCurrentDocumentOptionVisibility','code','getResources','ai-chat-context-invalid-data','_setAddContextOptionsDefaultState','loadSourceResources','getData','sourceResourcesLoaded','current-document','contextSent','_removeContextItem','_addToConversationContextItem','_finishContextItemLoading','mapContextItemsToRequestData','sessionId','contextItemAdded','25880hOBGoC','files-','object','_conversationContextItems','object\x20with\x20content\x20and\x20type\x20properties','filter','mcpServerName','_finishUploadOperation','stack','uploadFile','TEXT','_config','text/markdown','TOOL','ai-chat-document-upload-failed','_createContextItemFromContent','ai-request-aborted','abortController','isHidden','resourceStateChanged','_connector','get','selection','error','4569576kqgcko','getPendingContextItems','_ongoingUploadOperations','version','2832183EvEcPq','_mapContextItemToRequestData','type','959umaJBs','File','_isResourceInContext','data','addResourceToContext','_updateResourceInContextState','ai-chat-source-resources-load-failed','_addContextOptionsState','ai-chat-resource-load-failed','map','removeSelectionFromContext'];_0x5ecb=function(){return _0x57a565;};return _0x5ecb();}export class AIChatContext extends _0xe85e33(){[_0x27a96b(0x14e)];[_0x27a96b(0x145)];[_0x27a96b(0x18c)];constructor({connector:_0x3f63e7,config:_0xb091c4,ownerId:_0xc89aba}){const _0x403382=_0x27a96b;super(),this[_0x403382(0x14e)]=_0x3f63e7,this[_0x403382(0x145)]=_0xb091c4,this[_0x403382(0x18c)]=_0xc89aba;}[_0x27a96b(0x17d)](){const _0x12377e=_0x27a96b;this[_0x12377e(0x170)]=new Map(),this[_0x12377e(0x1d1)]=new Map(),this[_0x12377e(0x175)]=new Map(),this[_0x12377e(0x154)]=new Map(),this[_0x12377e(0x1c2)]();}[_0x27a96b(0x153)](){const _0x22cfd7=_0x27a96b;return this[_0x22cfd7(0x170)];}async[_0x27a96b(0x1bb)](_0x4861c3){const _0x575366=_0x27a96b,_0x5a43a4=await this[_0x575366(0x149)](_0x4861c3);return this[_0x575366(0x1c9)](_0x5a43a4),_0x575366(0x1c6)===_0x5a43a4[_0x575366(0x182)]&&this[_0x575366(0x1be)](),_0x5a43a4;}async[_0x27a96b(0x149)](_0x4dd932){const _0x272367=_0x27a96b;if(_0x4dd932[_0x272367(0x158)]===_0x4c0c19[_0x272367(0x174)]){const _0x354e22=await this[_0x272367(0x14e)][_0x272367(0x1a4)](this[_0x272367(0x18c)],_0x4dd932['id'])[_0x272367(0x1a8)]();return{'id':_0x272367(0x1c6),'uiId':_0x272367(0x1c6),'label':_0x272367(0x19a),'type':_0x4dd932[_0x272367(0x158)],'content':_0x354e22[_0x272367(0x1ba)],'hidden':this[_0x272367(0x1d1)][_0x272367(0x1b7)](_0x272367(0x1c6)),'version':_0x354e22[_0x272367(0x173)]?.[_0x272367(0x155)],'sessionId':_0x354e22[_0x272367(0x173)]?.[_0x272367(0x1cc)]};}if(_0x4dd932[_0x272367(0x158)]===_0x4c0c19[_0x272367(0x147)])return{'id':_0x4dd932['id'],'uiId':_0x4dd932['id'],'label':_0x4dd932[_0x272367(0x15c)]?.[_0x272367(0x18f)]||_0x4dd932['id'],'type':_0x4c0c19[_0x272367(0x147)],'mcpServerName':_0x4dd932[_0x272367(0x1d4)],'toolName':_0x4dd932[_0x272367(0x186)],'data':_0x4dd932[_0x272367(0x15c)]||{}};return{'id':_0x4dd932['id'],'uiId':_0x4dd932['id'],'label':_0x4dd932[_0x272367(0x173)]?.[_0x272367(0x18f)]||_0x4dd932[_0x272367(0x166)]||_0x4dd932[_0x272367(0x19c)]||_0x4dd932['id'],'type':_0x4dd932[_0x272367(0x158)],..._0x4dd932?.[_0x272367(0x173)]?.[_0x272367(0x1b8)]?{'resourceId':_0x4dd932[_0x272367(0x173)]?.[_0x272367(0x1b8)]}:{}};}[_0x27a96b(0x16a)](){const _0x49a3ff=_0x27a96b;return new Map(this[_0x49a3ff(0x1d1)]);}[_0x27a96b(0x177)](_0xb0c652){const _0x3321ed=_0x27a96b,_0x467348=this[_0x3321ed(0x170)][_0x3321ed(0x14f)](_0xb0c652);_0x467348?.[_0x3321ed(0x1a6)]||this[_0x3321ed(0x1c8)](_0xb0c652);}[_0x27a96b(0x172)](){const _0x20b63c=_0x27a96b;if(0x0===this[_0x20b63c(0x170)][_0x20b63c(0x1b1)])return;for(const _0x2722ab of this[_0x20b63c(0x170)][_0x20b63c(0x191)]())this[_0x20b63c(0x1c8)](_0x2722ab[_0x20b63c(0x182)]);const _0x1683c6=this[_0x20b63c(0x1d1)][_0x20b63c(0x14f)](_0x20b63c(0x1c6))||this[_0x20b63c(0x170)][_0x20b63c(0x14f)](_0x20b63c(0x1c6));_0x1683c6&&this[_0x20b63c(0x176)]({..._0x1683c6,'isReadOnly':!0x0,'hidden':!0x0});}[_0x27a96b(0x19f)](_0x2888ef){const _0x407a52=_0x27a96b;for(const _0x11d08e of _0x2888ef[_0x407a52(0x191)]())this[_0x407a52(0x1c9)](_0x11d08e);this[_0x407a52(0x172)](),this[_0x407a52(0x1bc)](_0x407a52(0x1c7),{'contextItems':Array[_0x407a52(0x1ad)](this[_0x407a52(0x16a)]()[_0x407a52(0x191)]())});}[_0x27a96b(0x16f)](){const _0x24adad=_0x27a96b;return this[_0x24adad(0x170)][_0x24adad(0x1b7)](_0x24adad(0x1c6));}[_0x27a96b(0x1a2)](){const _0x201bcf=_0x27a96b;return this[_0x201bcf(0x170)][_0x201bcf(0x1b7)](_0x201bcf(0x150));}[_0x27a96b(0x164)](){const _0x1d541d=_0x27a96b;return this[_0x1d541d(0x1d1)][_0x1d541d(0x1b7)](_0x1d541d(0x1c6));}static[_0x27a96b(0x1cb)](_0x10504e){const _0x2965cb=_0x27a96b;return Array[_0x2965cb(0x1ad)](_0x10504e[_0x2965cb(0x191)]())[_0x2965cb(0x162)](_0x15c94c=>this[_0x2965cb(0x157)](_0x15c94c))[_0x2965cb(0x1d3)](_0x2e3847=>null!==_0x2e3847);}async[_0x27a96b(0x1b2)](_0x3fcf86,_0x1b970b,_0xae4f3c=_0x4c0c19[_0x27a96b(0x1b4)]){const _0x281cb4=_0x27a96b,_0x2f7aea=_0x281cb4(0x1cf)+_0x32b7ae();this[_0x281cb4(0x1a7)](_0x2f7aea);try{await Promise[_0x281cb4(0x167)](_0x3fcf86[_0x281cb4(0x162)](async _0xaf60fb=>{const _0x18e90f=_0x281cb4,_0x18f8e3=_0x18e90f(0x180)+_0x32b7ae(),_0x31176c=_0x1533d3(_0xaf60fb[_0x18e90f(0x166)]);try{this[_0x18e90f(0x176)]({'type':_0xae4f3c,'label':_0x1b970b?.[_0x18e90f(0x18f)]||_0x31176c,'uiId':_0x18f8e3,'resourceId':_0x1b970b?.[_0x18e90f(0x1b8)]},!0x0);const _0x2b21bb=this[_0x18e90f(0x14e)][_0x18e90f(0x1d7)](this[_0x18e90f(0x18c)],_0xaf60fb,_0x1b970b);this[_0x18e90f(0x175)][_0x18e90f(0x1af)](_0x18f8e3,_0x2b21bb[_0x18e90f(0x14b)]);const {id:_0x1effdb}=await _0x2b21bb[_0x18e90f(0x189)]();this[_0x18e90f(0x175)][_0x18e90f(0x17a)](_0x18f8e3),this[_0x18e90f(0x1ca)]({'type':_0xae4f3c,'id':_0x1effdb,'label':_0x1b970b?.[_0x18e90f(0x18f)]||_0x31176c,'uiId':_0x18f8e3,'resourceId':_0x1b970b?.[_0x18e90f(0x1b8)]},!0x1);}catch(_0x2d24e3){this[_0x18e90f(0x175)][_0x18e90f(0x17a)](_0x18f8e3);if(!(_0x2d24e3 instanceof _0x96d3b4&&_0x2d24e3[_0x18e90f(0x19b)][_0x18e90f(0x1ae)](_0x18e90f(0x14a)))){const _0x57cf10=_0x8de527[_0x18e90f(0x14f)](_0x2d24e3[_0x18e90f(0x1bf)])||_0x18e90f(0x196),_0x37eaa6=new _0x96d3b4(_0x57cf10,null,{'fileName':_0x31176c,..._0x2d24e3});_0x37eaa6[_0x18e90f(0x1d6)]=_0x2d24e3[_0x18e90f(0x1d6)],this[_0x18e90f(0x1bc)](_0x18e90f(0x151),{'error':_0x37eaa6});}this[_0x18e90f(0x1c8)](_0x18f8e3);}}));}finally{this[_0x281cb4(0x1d5)](_0x2f7aea);}}[_0x27a96b(0x181)](_0x2f3056){const _0x260c64=_0x27a96b;if(this[_0x260c64(0x16f)]()||!this[_0x260c64(0x160)][_0x260c64(0x1b9)][_0x260c64(0x178)])return;const _0x23ce93={'type':_0x4c0c19[_0x260c64(0x174)],'uiId':_0x260c64(0x1c6),'label':_0x2f3056,'isReadOnly':this[_0x260c64(0x1d1)][_0x260c64(0x1b7)](_0x260c64(0x1c6)),'hidden':this[_0x260c64(0x1d1)][_0x260c64(0x1b7)](_0x260c64(0x1c6))};this[_0x260c64(0x176)](_0x23ce93);}async[_0x27a96b(0x17f)](_0x41690c,_0x5407ed,_0x2aa1fb,_0x1ae26b){const _0xa31356=_0x27a96b,_0x11b69e=this[_0xa31356(0x170)][_0xa31356(0x14f)](_0xa31356(0x1c6));if(_0x11b69e&&_0x41690c){_0x11b69e[_0xa31356(0x150)]=_0x1ae26b?_0x1ae26b[_0xa31356(0x162)](_0x4d4b09=>({'start':_0x4d4b09[_0xa31356(0x195)],'end':_0x4d4b09[_0xa31356(0x185)]})):[];try{if(_0x11b69e[_0xa31356(0x155)]===_0x5407ed)return;const {id:_0x54832a}=await this[_0xa31356(0x14e)][_0xa31356(0x193)](this[_0xa31356(0x18c)],_0x41690c,{'version':_0x5407ed,'sessionId':_0x2aa1fb})[_0xa31356(0x189)]();_0x11b69e['id']=_0x54832a,_0x11b69e[_0xa31356(0x1ba)]=_0x41690c,_0x11b69e[_0xa31356(0x155)]=_0x5407ed,_0x11b69e[_0xa31356(0x1cc)]=_0x2aa1fb;}catch(_0x5a39f0){const _0x6ffdf9=new _0x96d3b4(_0xa31356(0x148),null);_0x6ffdf9[_0xa31356(0x1d6)]=_0x5a39f0[_0xa31356(0x1d6)],this[_0xa31356(0x1bc)](_0xa31356(0x151),{'error':_0x6ffdf9});}}}[_0x27a96b(0x1aa)](_0x74fe7c){const _0x45d62c=_0x27a96b;this[_0x45d62c(0x176)]({'type':_0x4c0c19[_0x45d62c(0x1a1)],'label':_0x74fe7c,'uiId':_0x45d62c(0x150),'content':_0x74fe7c});}[_0x27a96b(0x163)](){const _0x222751=_0x27a96b;this[_0x222751(0x1c8)](_0x222751(0x150));}async[_0x27a96b(0x18d)](_0x2b805d,_0xdd4d36){const _0x17bcdf=_0x27a96b,_0x29761c=_0x17bcdf(0x1ac)+_0x32b7ae();this[_0x17bcdf(0x1a7)](_0x29761c);const _0x13df04=_0x17bcdf(0x1ac)+_0x32b7ae();try{this[_0x17bcdf(0x176)]({'type':_0x4c0c19[_0x17bcdf(0x17c)],'label':_0xdd4d36?.[_0x17bcdf(0x18f)]||_0x2b805d,'uiId':_0x13df04,'resourceId':_0xdd4d36?.[_0x17bcdf(0x1b8)]},!0x0);const _0x577438=this[_0x17bcdf(0x14e)][_0x17bcdf(0x17b)](this[_0x17bcdf(0x18c)],_0x2b805d,_0xdd4d36);this[_0x17bcdf(0x175)][_0x17bcdf(0x1af)](_0x13df04,_0x577438[_0x17bcdf(0x14b)]);const {id:_0x38fed8}=await _0x577438[_0x17bcdf(0x189)]();this[_0x17bcdf(0x175)][_0x17bcdf(0x17a)](_0x13df04),this[_0x17bcdf(0x1ca)]({'type':_0x4c0c19[_0x17bcdf(0x17c)],'id':_0x38fed8,'label':_0xdd4d36?.[_0x17bcdf(0x18f)]||_0x2b805d,'uiId':_0x13df04,'resourceId':_0xdd4d36?.[_0x17bcdf(0x1b8)]},!0x1);}catch(_0x4e5c93){this[_0x17bcdf(0x175)][_0x17bcdf(0x17a)](_0x13df04),(_0x4e5c93[_0x17bcdf(0x19b)][_0x17bcdf(0x1ae)](_0x17bcdf(0x14a))||this[_0x17bcdf(0x1bc)](_0x17bcdf(0x151),{'error':new _0x96d3b4(_0x17bcdf(0x171),this,{'url':_0x2b805d,'originalError':_0x4e5c93}),'url':_0x2b805d}),this[_0x17bcdf(0x1c8)](_0x13df04));}finally{this[_0x17bcdf(0x1d5)](_0x29761c);}}[_0x27a96b(0x179)](_0x3c97cd){const _0x461aef=_0x27a96b;_0x3c97cd['id']=_0x3c97cd['id']??_0x32b7ae()[_0x461aef(0x192)](0x0,0x15),this[_0x461aef(0x170)][_0x461aef(0x1af)](_0x3c97cd[_0x461aef(0x182)],_0x3c97cd),this[_0x461aef(0x1bc)](_0x461aef(0x1cd),{'contextItem':_0x3c97cd,'isLoading':!0x1});}async[_0x27a96b(0x1c3)](_0xf10e93,_0x8ac118,_0x25b05d){const _0x3c5b7d=_0x27a96b,_0x4022c0=this[_0x3c5b7d(0x160)][_0x3c5b7d(0x16c)][_0x3c5b7d(0x19e)](_0x373b9b=>_0x373b9b['id']===_0xf10e93);if(!_0x4022c0)return this[_0x3c5b7d(0x1bc)](_0x3c5b7d(0x151),{'error':new _0x96d3b4(_0x3c5b7d(0x1a5),this,{'sourceId':_0xf10e93}),'sourceId':_0xf10e93}),[];try{const _0x3db0ce=(await _0x4022c0[_0x3c5b7d(0x1c0)](_0x8ac118))[_0x3c5b7d(0x162)](_0x3173f1=>{const _0x3fbc84=_0x3c5b7d,_0x412171=this[_0x3fbc84(0x15b)](_0x3173f1['id']);return{..._0x3173f1,'isInContext':_0x412171};});return _0x4022c0[_0x3c5b7d(0x188)]=_0x3db0ce,this[_0x3c5b7d(0x1bc)](_0x3c5b7d(0x1c5),{'sourceId':_0xf10e93,'source':_0x4022c0,'resources':_0x3db0ce,'uid':_0x25b05d}),_0x3db0ce;}catch(_0x265ded){return this[_0x3c5b7d(0x1bc)](_0x3c5b7d(0x151),{'error':new _0x96d3b4(_0x3c5b7d(0x15f),this,{'sourceId':_0xf10e93,'originalError':_0x265ded}),'sourceId':_0xf10e93,'sourceLabel':_0x4022c0[_0x3c5b7d(0x18f)]}),[];}}async[_0x27a96b(0x15d)](_0x2fb7a8,_0x382939){const _0x36c95e=_0x27a96b;if(this[_0x36c95e(0x15b)](_0x382939['id']))return;let _0x1c953b=_0x382939[_0x36c95e(0x15c)];if(!_0x1c953b&&_0x2fb7a8[_0x36c95e(0x1c4)])try{_0x1c953b=await _0x2fb7a8[_0x36c95e(0x1c4)](_0x382939['id']);}catch(_0x9f66e1){return void this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x161),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'originalError':_0x9f66e1}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});}if(_0x1c953b)switch(_0x382939[_0x36c95e(0x158)]){case _0x4c0c19[_0x36c95e(0x17c)]:if(_0x36c95e(0x19d)!=typeof _0x1c953b)return void this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x1c1),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'expectedType':_0x36c95e(0x19d),'actualType':typeof _0x1c953b}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});await this[_0x36c95e(0x18d)](_0x1c953b,{'label':_0x382939[_0x36c95e(0x18f)],'resourceId':_0x382939['id']});break;case _0x4c0c19[_0x36c95e(0x1b4)]:if(!(_0x1c953b instanceof File))return void this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x1c1),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'expectedType':_0x36c95e(0x15a),'actualType':typeof _0x1c953b}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});await this[_0x36c95e(0x1b2)]([_0x1c953b],{'label':_0x382939[_0x36c95e(0x18f)],'resourceId':_0x382939['id']});break;case _0x4c0c19[_0x36c95e(0x1d8)]:if(_0x36c95e(0x1d0)!=typeof _0x1c953b||!(_0x36c95e(0x1ba)in _0x1c953b)||!(_0x36c95e(0x158)in _0x1c953b))return void this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x1c1),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'expectedType':_0x36c95e(0x1d2),'actualType':typeof _0x1c953b}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});_0x1c953b=AIChatContext[_0x36c95e(0x199)](_0x1c953b,_0x382939[_0x36c95e(0x18f)]),await this[_0x36c95e(0x1b2)]([_0x1c953b],{'label':_0x382939[_0x36c95e(0x18f)],'resourceId':_0x382939['id']},_0x4c0c19[_0x36c95e(0x1d8)]);break;case _0x4c0c19[_0x36c95e(0x147)]:break;default:this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x183),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id'],'resourceType':_0x382939[_0x36c95e(0x158)]}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});}else this[_0x36c95e(0x1bc)](_0x36c95e(0x151),{'error':new _0x96d3b4(_0x36c95e(0x1ab),this,{'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']}),'resourceId':_0x382939['id'],'sourceId':_0x2fb7a8['id']});}static[_0x27a96b(0x199)](_0x42803f,_0x6369fa){const _0x1ba4b5=_0x27a96b;switch(_0x42803f[_0x1ba4b5(0x158)]){case _0x203c83[_0x1ba4b5(0x194)]:return new File([_0x42803f[_0x1ba4b5(0x1ba)]],_0x6369fa,{'type':_0x1ba4b5(0x146)});case _0x203c83[_0x1ba4b5(0x18e)]:return new File([_0x42803f[_0x1ba4b5(0x1ba)]],_0x6369fa,{'type':_0x1ba4b5(0x16b)});default:return new File([_0x42803f[_0x1ba4b5(0x1ba)]],_0x6369fa,{'type':_0x1ba4b5(0x17e)});}}static[_0x27a96b(0x157)](_0x115e53){const _0x193871=_0x27a96b;switch(_0x115e53[_0x193871(0x158)]){case _0x4c0c19[_0x193871(0x1b4)]:return{'type':_0x4c0c19[_0x193871(0x1b4)],'id':_0x115e53['id']};case _0x4c0c19[_0x193871(0x17c)]:return{'type':_0x4c0c19[_0x193871(0x17c)],'id':_0x115e53['id']};case _0x4c0c19[_0x193871(0x174)]:return{'type':_0x4c0c19[_0x193871(0x174)],'id':_0x115e53['id'],..._0x115e53[_0x193871(0x150)]?.[_0x193871(0x18a)]&&{'selection':_0x115e53[_0x193871(0x150)]}};case _0x4c0c19[_0x193871(0x1d8)]:return{'type':_0x4c0c19[_0x193871(0x1b4)],'id':_0x115e53['id']};case _0x4c0c19[_0x193871(0x147)]:{const _0x3a2ec7=_0x115e53;return{'type':_0x4c0c19[_0x193871(0x147)],'mcpServerName':_0x3a2ec7[_0x193871(0x1d4)],'toolName':_0x3a2ec7[_0x193871(0x186)],'data':_0x3a2ec7[_0x193871(0x15c)],'id':_0x3a2ec7['id']};}default:return null;}}[_0x27a96b(0x176)](_0x1c8e48,_0x22f3f2=!0x1){const _0x134f94=_0x27a96b;if(this[_0x134f94(0x170)][_0x134f94(0x1af)](_0x1c8e48[_0x134f94(0x182)],_0x1c8e48),_0x1c8e48[_0x134f94(0x165)]||this[_0x134f94(0x1bc)](_0x134f94(0x1cd),{'contextItem':_0x1c8e48,'isLoading':_0x22f3f2}),_0x134f94(0x1c6)===_0x1c8e48[_0x134f94(0x182)]&&this[_0x134f94(0x1be)](),_0x1c8e48[_0x134f94(0x1b8)]){const _0xe7b072=this[_0x134f94(0x16d)](_0x1c8e48[_0x134f94(0x1b8)]);_0xe7b072&&_0xe7b072[_0x134f94(0x1a9)](_0x5d9541=>{const _0x5646dc=_0x134f94;this[_0x5646dc(0x15e)](_0x5d9541,_0x1c8e48[_0x5646dc(0x1b8)],!0x0);});}}[_0x27a96b(0x1c8)](_0x26687f){const _0x268e47=_0x27a96b,_0x4963aa=this[_0x268e47(0x170)][_0x268e47(0x14f)](_0x26687f),_0x559340=this[_0x268e47(0x175)][_0x268e47(0x14f)](_0x26687f);if(_0x559340&&(_0x559340[_0x268e47(0x1a3)](),this[_0x268e47(0x175)][_0x268e47(0x17a)](_0x26687f)),_0x4963aa?.[_0x268e47(0x1b8)]){const _0x40294a=this[_0x268e47(0x16d)](_0x4963aa[_0x268e47(0x1b8)]);_0x40294a&&_0x40294a[_0x268e47(0x1a9)](_0x13811d=>{const _0x5130f3=_0x268e47;this[_0x5130f3(0x15e)](_0x13811d,_0x4963aa[_0x5130f3(0x1b8)],!0x1);});}this[_0x268e47(0x170)][_0x268e47(0x17a)](_0x26687f),this[_0x268e47(0x1bc)](_0x268e47(0x168),{'uiId':_0x26687f,'type':_0x4963aa?.[_0x268e47(0x158)]}),_0x268e47(0x1c6)===_0x26687f&&this[_0x268e47(0x1be)]();}[_0x27a96b(0x1ca)](_0x1c2790,_0x33b368){const _0x3123fc=_0x27a96b;if(this[_0x3123fc(0x170)][_0x3123fc(0x1b7)](_0x1c2790[_0x3123fc(0x182)])&&(this[_0x3123fc(0x170)][_0x3123fc(0x1af)](_0x1c2790[_0x3123fc(0x182)],_0x1c2790),this[_0x3123fc(0x1bc)](_0x3123fc(0x1b3),{'contextItem':_0x1c2790,'isLoading':_0x33b368}),_0x1c2790[_0x3123fc(0x1b8)])){const _0xfd800f=this[_0x3123fc(0x16d)](_0x1c2790[_0x3123fc(0x1b8)]);_0xfd800f&&_0xfd800f[_0x3123fc(0x1a9)](_0x5f3f78=>{const _0x15b375=_0x3123fc;this[_0x15b375(0x15e)](_0x5f3f78,_0x1c2790[_0x15b375(0x1b8)],!0x0);});}}[_0x27a96b(0x1c9)](_0xc29fef){const _0x45b84b=_0x27a96b;this[_0x45b84b(0x1d1)][_0x45b84b(0x1af)](_0xc29fef[_0x45b84b(0x182)],_0xc29fef);}[_0x27a96b(0x1c2)](){const _0x485986=_0x27a96b;this[_0x485986(0x160)]={'document':{'enabled':!0x1!==this[_0x485986(0x145)]?.[_0x485986(0x1b9)]?.[_0x485986(0x178)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x485986(0x145)]?.[_0x485986(0x18b)]?.[_0x485986(0x178)]},'files':{'enabled':!0x1!==this[_0x485986(0x145)]?.[_0x485986(0x190)]?.[_0x485986(0x178)]},'sources':this[_0x485986(0x1b6)](),'customItems':this[_0x485986(0x145)]?.[_0x485986(0x1bd)]?.[_0x485986(0x162)](_0x28fc17=>({..._0x28fc17,'enabled':!0x0}))??[]},this[_0x485986(0x1bc)](_0x485986(0x169),{'options':this[_0x485986(0x160)]});}[_0x27a96b(0x1b6)](){const _0x4ce1b0=_0x27a96b;return this[_0x4ce1b0(0x145)]?.[_0x4ce1b0(0x16c)]?.[_0x4ce1b0(0x162)](_0x317708=>({..._0x317708,'resources':[]}))??[];}[_0x27a96b(0x1be)](){const _0x5d892f=_0x27a96b,_0x4f2626=this[_0x5d892f(0x16f)]()||this[_0x5d892f(0x164)]();this[_0x5d892f(0x160)][_0x5d892f(0x1b9)][_0x5d892f(0x14c)]=_0x4f2626,this[_0x5d892f(0x1bc)](_0x5d892f(0x169),{'options':this[_0x5d892f(0x160)]});}[_0x27a96b(0x15b)](_0x3dfa2a){const _0x2cada9=_0x27a96b;for(const _0x1e3c76 of this[_0x2cada9(0x170)][_0x2cada9(0x191)]())if(_0x1e3c76[_0x2cada9(0x1b8)]===_0x3dfa2a)return!0x0;for(const _0xec7e6b of this[_0x2cada9(0x1d1)][_0x2cada9(0x191)]())if(_0xec7e6b[_0x2cada9(0x1b8)]===_0x3dfa2a)return!0x0;return!0x1;}[_0x27a96b(0x16d)](_0x8e736a){const _0x1b201c=_0x27a96b,_0x54958f=[];for(const _0x350631 of this[_0x1b201c(0x160)][_0x1b201c(0x16c)]){_0x350631[_0x1b201c(0x188)][_0x1b201c(0x19e)](_0x522b85=>_0x522b85['id']===_0x8e736a)&&_0x54958f[_0x1b201c(0x1b0)](_0x350631['id']);}return 0x0===_0x54958f[_0x1b201c(0x18a)]?null:_0x54958f;}[_0x27a96b(0x15e)](_0x918438,_0x14aa37,_0x2ad1d2){const _0xf7a949=_0x27a96b,_0x62c76b=this[_0xf7a949(0x160)][_0xf7a949(0x16c)][_0xf7a949(0x19e)](_0x3f1ae3=>_0x3f1ae3['id']===_0x918438);if(!_0x62c76b)return;const _0x84f3a7=_0x62c76b[_0xf7a949(0x188)][_0xf7a949(0x19e)](_0x50f353=>_0x50f353['id']===_0x14aa37);_0x84f3a7&&(_0x84f3a7[_0xf7a949(0x184)]=_0x2ad1d2,this[_0xf7a949(0x1bc)](_0xf7a949(0x14d),{'sourceId':_0x918438,'resourceId':_0x14aa37,'isInContext':_0x2ad1d2}));}[_0x27a96b(0x1a7)](_0x12e176){const _0x4e85ed=_0x27a96b;this[_0x4e85ed(0x154)][_0x4e85ed(0x1af)](_0x12e176,!0x0),this[_0x4e85ed(0x154)][_0x4e85ed(0x1b1)]&&this[_0x4e85ed(0x1bc)](_0x4e85ed(0x1b5),{'isUploadInProgress':!0x0});}[_0x27a96b(0x1d5)](_0x4eb162){const _0x244b71=_0x27a96b;this[_0x244b71(0x154)][_0x244b71(0x17a)](_0x4eb162),0x0===this[_0x244b71(0x154)][_0x244b71(0x1b1)]&&this[_0x244b71(0x1bc)](_0x244b71(0x1b5),{'isUploadInProgress':!0x1});}}
23
+ function _0x2aeb(_0x513dbb,_0xa0971){const _0x280d37=_0x280d();return _0x2aeb=function(_0x2aebba,_0x438f3b){_0x2aebba=_0x2aebba-0x112;let _0x2288ec=_0x280d37[_0x2aebba];return _0x2288ec;},_0x2aeb(_0x513dbb,_0xa0971);}const _0x23bb7d=_0x2aeb;(function(_0x300c9e,_0x1b74e8){const _0x4e6072=_0x2aeb,_0x20bb58=_0x300c9e();while(!![]){try{const _0x166e5b=-parseInt(_0x4e6072(0x12c))/0x1*(parseInt(_0x4e6072(0x18b))/0x2)+-parseInt(_0x4e6072(0x114))/0x3*(parseInt(_0x4e6072(0x177))/0x4)+-parseInt(_0x4e6072(0x149))/0x5*(-parseInt(_0x4e6072(0x11c))/0x6)+-parseInt(_0x4e6072(0x151))/0x7*(parseInt(_0x4e6072(0x185))/0x8)+parseInt(_0x4e6072(0x1a1))/0x9+parseInt(_0x4e6072(0x131))/0xa+parseInt(_0x4e6072(0x181))/0xb;if(_0x166e5b===_0x1b74e8)break;else _0x20bb58['push'](_0x20bb58['shift']());}catch(_0x25bf23){_0x20bb58['push'](_0x20bb58['shift']());}}}(_0x280d,0x655f6));import{CKEditorError as _0x4becd9,ObservableMixin as _0x4642a2,uid as _0x39d101}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x1e64cf,AIContextTextResourceType as _0x177591}from'../../aicore/model/aicontext.js';function _0x280d(){const _0x3844f9=['stack','toolName','selection','populateFromMessage','updateCurrentDocument','_pendingContextItems','HTML','_convertTextResourceToFile','size','9372561DeuaNJ','uploadDocument','forEach','ai-chat-source-not-found','568712qgmGZV','ai-request-aborted','abortController','FILE','_finishUploadOperation','label','2mfXeFc','_ownerId','isReadOnly','TOOL','ai-chat-resource-load-failed','push','error','isHidden','isInContext','urls','sources','sessionId','Current\x20document','text/markdown','_setAddContextOptionsDefaultState','contextSent','_removeContextItem','_finishContextItemLoading','isCurrentDocumentInContext','startsWith','resources','set','2164473JNCFAd','files','url','content','mapContextItemsToRequestData','sourceResourcesLoaded','addResourceToContext','_getCustomSourcesInitialState','addSelectionToContext','3ulLZbq','_updateResourceInContextState','removeSelectionFromContext','resourceId','getDocument','_config','hidden','ai-chat-file-upload-failed','14286gdmrua','isCurrentDocumentInConversation','getPendingContextItems','getResources','start','ai-chat-context-invalid-data','values','contextItemAdded','TEXT','_isResourceInContext','substring','addToConversationContext','addCurrentDocumentToContext','data','customItems','version','735645WMAEfT','current-document','has','type','_mapContextItemToRequestData','6497870NTiBIB','_createContextItemFromContent','uploadProgressChanged','document','addUrlToContext','loadSourceResources','addFilesToContext','uploadFile','contextItemLoadingEnded','object\x20with\x20content\x20and\x20type\x20properties','file-','files-','abort','from','resourceStateChanged','_addToConversationContextItem','delete','filter','_startUploadOperation','SELECTION','File','uploadUrl','_conversationContextItems','all','1165XXbfVW','object','fire','_toggleAddCurrentDocumentOptionVisibility','ai-chat-resource-no-data','getSentContextItems','clearPendingContextItems','message','77RoQINF','ai-chat-url-upload-failed','text/html','code','MARKDOWN','uiId','isSelectionInContext','init','_connector','mcpServerName','_ongoingUploadOperations','getData','contextItemRemoved','_addContextOptionsState','attributes','_ongoingUploads','text/plain','addToolItemToContext','getId','ai-chat-source-resources-load-failed','ai-chat-context-unsupported-type','DOCUMENT','_addContextItem','removeFromContext','addContextOptionsChanged','fetchDocument','url-','map','length','_findSourceIdsByResourceId','URL','get','ai-chat-document-upload-failed','name','end','find','enabled','string','1457048OADCxx'];_0x280d=function(){return _0x3844f9;};return _0x280d();}import{escape as _0x13c15d}from'es-toolkit/compat';import{errorsMap as _0x29f0af}from'../../errorsmap.js';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x23bb7d(0x123),_0x23bb7d(0x15d),_0x23bb7d(0x139),_0x23bb7d(0x19a),_0x23bb7d(0x191),_0x23bb7d(0x169),_0x23bb7d(0x1a6),_0x23bb7d(0x13f),_0x23bb7d(0x133)];export class AIChatContext extends _0x4642a2(){[_0x23bb7d(0x159)];[_0x23bb7d(0x119)];[_0x23bb7d(0x18c)];constructor({connector:_0x1f5d48,config:_0x239981,ownerId:_0x23dc9e}){const _0x41b3dd=_0x23bb7d;super(),this[_0x41b3dd(0x159)]=_0x1f5d48,this[_0x41b3dd(0x119)]=_0x239981,this[_0x41b3dd(0x18c)]=_0x23dc9e;}[_0x23bb7d(0x158)](){const _0x44fe23=_0x23bb7d;this[_0x44fe23(0x17d)]=new Map(),this[_0x44fe23(0x147)]=new Map(),this[_0x44fe23(0x160)]=new Map(),this[_0x44fe23(0x15b)]=new Map(),this[_0x44fe23(0x199)]();}[_0x23bb7d(0x11e)](){const _0x5e6abb=_0x23bb7d;return this[_0x5e6abb(0x17d)];}async[_0x23bb7d(0x17b)](_0x494dba){const _0x6c2171=_0x23bb7d,_0x197f17=await this[_0x6c2171(0x132)](_0x494dba);return this[_0x6c2171(0x140)](_0x197f17),_0x6c2171(0x12d)===_0x197f17[_0x6c2171(0x156)]&&this[_0x6c2171(0x14c)](),_0x197f17;}async[_0x23bb7d(0x132)](_0x1d2bfc){const _0x360e3b=_0x23bb7d;if(_0x1d2bfc[_0x360e3b(0x12f)]===_0x1e64cf[_0x360e3b(0x166)]){const _0x429cc5=await this[_0x360e3b(0x159)][_0x360e3b(0x16a)](this[_0x360e3b(0x18c)],_0x1d2bfc['id'])[_0x360e3b(0x118)]();return{'id':_0x360e3b(0x12d),'uiId':_0x360e3b(0x12d),'label':_0x360e3b(0x197),'type':_0x1d2bfc[_0x360e3b(0x12f)],'content':_0x429cc5[_0x360e3b(0x1a4)],'hidden':this[_0x360e3b(0x147)][_0x360e3b(0x12e)](_0x360e3b(0x12d)),'version':_0x429cc5[_0x360e3b(0x15f)]?.[_0x360e3b(0x12b)],'sessionId':_0x429cc5[_0x360e3b(0x15f)]?.[_0x360e3b(0x196)]};}if(_0x1d2bfc[_0x360e3b(0x12f)]===_0x1e64cf[_0x360e3b(0x18e)])return{'id':_0x1d2bfc['id'],'uiId':_0x1d2bfc['id'],'label':_0x1d2bfc[_0x360e3b(0x129)]?.[_0x360e3b(0x18a)]||_0x1d2bfc['id'],'type':_0x1e64cf[_0x360e3b(0x18e)],'mcpServerName':_0x1d2bfc[_0x360e3b(0x15a)],'toolName':_0x1d2bfc[_0x360e3b(0x179)],'data':_0x1d2bfc[_0x360e3b(0x129)]||{}};return{'id':_0x1d2bfc['id'],'uiId':_0x1d2bfc['id'],'label':_0x1d2bfc[_0x360e3b(0x15f)]?.[_0x360e3b(0x18a)]||_0x1d2bfc[_0x360e3b(0x172)]||_0x1d2bfc[_0x360e3b(0x1a3)]||_0x1d2bfc['id'],'type':_0x1d2bfc[_0x360e3b(0x12f)],..._0x1d2bfc?.[_0x360e3b(0x15f)]?.[_0x360e3b(0x117)]?{'resourceId':_0x1d2bfc[_0x360e3b(0x15f)]?.[_0x360e3b(0x117)]}:{}};}[_0x23bb7d(0x14e)](){const _0x2d8929=_0x23bb7d;return new Map(this[_0x2d8929(0x147)]);}[_0x23bb7d(0x168)](_0x34a760){const _0x3fb904=_0x23bb7d,_0x346ba6=this[_0x3fb904(0x17d)][_0x3fb904(0x170)](_0x34a760);_0x346ba6?.[_0x3fb904(0x18d)]||this[_0x3fb904(0x19b)](_0x34a760);}[_0x23bb7d(0x14f)](){const _0x9ab5d2=_0x23bb7d;if(0x0===this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x180)])return;for(const _0x1c00b0 of this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x122)]())this[_0x9ab5d2(0x19b)](_0x1c00b0[_0x9ab5d2(0x156)]);const _0x2d24c9=this[_0x9ab5d2(0x147)][_0x9ab5d2(0x170)](_0x9ab5d2(0x12d))||this[_0x9ab5d2(0x17d)][_0x9ab5d2(0x170)](_0x9ab5d2(0x12d));_0x2d24c9&&this[_0x9ab5d2(0x167)]({..._0x2d24c9,'isReadOnly':!0x0,'hidden':!0x0});}[_0x23bb7d(0x127)](_0x281cc2){const _0xe22c37=_0x23bb7d;for(const _0x211798 of _0x281cc2[_0xe22c37(0x122)]())this[_0xe22c37(0x140)](_0x211798);this[_0xe22c37(0x14f)](),this[_0xe22c37(0x14b)](_0xe22c37(0x19a),{'contextItems':Array[_0xe22c37(0x13e)](this[_0xe22c37(0x14e)]()[_0xe22c37(0x122)]())});}[_0x23bb7d(0x19d)](){const _0xb4cba6=_0x23bb7d;return this[_0xb4cba6(0x17d)][_0xb4cba6(0x12e)](_0xb4cba6(0x12d));}[_0x23bb7d(0x157)](){const _0x1bf4a6=_0x23bb7d;return this[_0x1bf4a6(0x17d)][_0x1bf4a6(0x12e)](_0x1bf4a6(0x17a));}[_0x23bb7d(0x11d)](){const _0x1cce6c=_0x23bb7d;return this[_0x1cce6c(0x147)][_0x1cce6c(0x12e)](_0x1cce6c(0x12d));}static[_0x23bb7d(0x1a5)](_0x13bfbf){const _0x39b5ab=_0x23bb7d;return Array[_0x39b5ab(0x13e)](_0x13bfbf[_0x39b5ab(0x122)]())[_0x39b5ab(0x16c)](_0x1afba9=>this[_0x39b5ab(0x130)](_0x1afba9))[_0x39b5ab(0x142)](_0x111b62=>null!==_0x111b62);}async[_0x23bb7d(0x137)](_0x3c8d96,_0x41e577,_0x5c17c1=_0x1e64cf[_0x23bb7d(0x188)]){const _0x1f9067=_0x23bb7d,_0x218d97=_0x1f9067(0x13c)+_0x39d101();this[_0x1f9067(0x143)](_0x218d97);try{await Promise[_0x1f9067(0x148)](_0x3c8d96[_0x1f9067(0x16c)](async _0x302dfc=>{const _0x5b6bea=_0x1f9067,_0x1984a1=_0x5b6bea(0x13b)+_0x39d101(),_0x139258=_0x13c15d(_0x302dfc[_0x5b6bea(0x172)]);try{this[_0x5b6bea(0x167)]({'type':_0x5c17c1,'label':_0x41e577?.[_0x5b6bea(0x18a)]||_0x139258,'uiId':_0x1984a1,'resourceId':_0x41e577?.[_0x5b6bea(0x117)]},!0x0);const _0x11fbda=this[_0x5b6bea(0x159)][_0x5b6bea(0x138)](this[_0x5b6bea(0x18c)],_0x302dfc,_0x41e577);this[_0x5b6bea(0x160)][_0x5b6bea(0x1a0)](_0x1984a1,_0x11fbda[_0x5b6bea(0x187)]);const {id:_0x378c05}=await _0x11fbda[_0x5b6bea(0x163)]();this[_0x5b6bea(0x160)][_0x5b6bea(0x141)](_0x1984a1),this[_0x5b6bea(0x19c)]({'type':_0x5c17c1,'id':_0x378c05,'label':_0x41e577?.[_0x5b6bea(0x18a)]||_0x139258,'uiId':_0x1984a1,'resourceId':_0x41e577?.[_0x5b6bea(0x117)]},!0x1);}catch(_0x1ee820){this[_0x5b6bea(0x160)][_0x5b6bea(0x141)](_0x1984a1);if(!(_0x1ee820 instanceof _0x4becd9&&_0x1ee820[_0x5b6bea(0x150)][_0x5b6bea(0x19e)](_0x5b6bea(0x186)))){const _0x115d44=_0x29f0af[_0x5b6bea(0x170)](_0x1ee820[_0x5b6bea(0x154)])||_0x5b6bea(0x11b),_0x16dd37=new _0x4becd9(_0x115d44,null,{'fileName':_0x139258,..._0x1ee820});_0x16dd37[_0x5b6bea(0x178)]=_0x1ee820[_0x5b6bea(0x178)],this[_0x5b6bea(0x14b)](_0x5b6bea(0x191),{'error':_0x16dd37});}this[_0x5b6bea(0x19b)](_0x1984a1);}}));}finally{this[_0x1f9067(0x189)](_0x218d97);}}[_0x23bb7d(0x128)](_0x3b8dfb){const _0x1f5de2=_0x23bb7d;if(this[_0x1f5de2(0x19d)]()||!this[_0x1f5de2(0x15e)][_0x1f5de2(0x134)][_0x1f5de2(0x175)])return;const _0x24f5ae={'type':_0x1e64cf[_0x1f5de2(0x166)],'uiId':_0x1f5de2(0x12d),'label':_0x3b8dfb,'isReadOnly':this[_0x1f5de2(0x147)][_0x1f5de2(0x12e)](_0x1f5de2(0x12d)),'hidden':this[_0x1f5de2(0x147)][_0x1f5de2(0x12e)](_0x1f5de2(0x12d))};this[_0x1f5de2(0x167)](_0x24f5ae);}async[_0x23bb7d(0x17c)](_0xd4c5ca,_0x561213,_0x5125c5,_0x12df0b){const _0x4d4ef8=_0x23bb7d,_0x40dc42=this[_0x4d4ef8(0x17d)][_0x4d4ef8(0x170)](_0x4d4ef8(0x12d));if(_0x40dc42&&_0xd4c5ca){_0x40dc42[_0x4d4ef8(0x17a)]=_0x12df0b?_0x12df0b[_0x4d4ef8(0x16c)](_0x584564=>({'start':_0x584564[_0x4d4ef8(0x120)],'end':_0x584564[_0x4d4ef8(0x173)]})):[];try{if(_0x40dc42[_0x4d4ef8(0x12b)]===_0x561213)return;const {id:_0x460a36}=await this[_0x4d4ef8(0x159)][_0x4d4ef8(0x182)](this[_0x4d4ef8(0x18c)],_0xd4c5ca,{'version':_0x561213,'sessionId':_0x5125c5})[_0x4d4ef8(0x163)]();_0x40dc42['id']=_0x460a36,_0x40dc42[_0x4d4ef8(0x1a4)]=_0xd4c5ca,_0x40dc42[_0x4d4ef8(0x12b)]=_0x561213,_0x40dc42[_0x4d4ef8(0x196)]=_0x5125c5;}catch(_0x25a897){const _0x4c90fb=new _0x4becd9(_0x4d4ef8(0x171),null);_0x4c90fb[_0x4d4ef8(0x178)]=_0x25a897[_0x4d4ef8(0x178)],this[_0x4d4ef8(0x14b)](_0x4d4ef8(0x191),{'error':_0x4c90fb});}}}[_0x23bb7d(0x113)](_0xa6f23a){const _0xe25aab=_0x23bb7d;this[_0xe25aab(0x167)]({'type':_0x1e64cf[_0xe25aab(0x144)],'label':_0xa6f23a,'uiId':_0xe25aab(0x17a),'content':_0xa6f23a});}[_0x23bb7d(0x116)](){const _0x103582=_0x23bb7d;this[_0x103582(0x19b)](_0x103582(0x17a));}async[_0x23bb7d(0x135)](_0x3a4292,_0x107edc){const _0x2f5f77=_0x23bb7d,_0x1d9ed0=_0x2f5f77(0x16b)+_0x39d101();this[_0x2f5f77(0x143)](_0x1d9ed0);const _0x37cc77=_0x2f5f77(0x16b)+_0x39d101();try{this[_0x2f5f77(0x167)]({'type':_0x1e64cf[_0x2f5f77(0x16f)],'label':_0x107edc?.[_0x2f5f77(0x18a)]||_0x3a4292,'uiId':_0x37cc77,'resourceId':_0x107edc?.[_0x2f5f77(0x117)]},!0x0);const _0x4e120a=this[_0x2f5f77(0x159)][_0x2f5f77(0x146)](this[_0x2f5f77(0x18c)],_0x3a4292,_0x107edc);this[_0x2f5f77(0x160)][_0x2f5f77(0x1a0)](_0x37cc77,_0x4e120a[_0x2f5f77(0x187)]);const {id:_0x1e7131}=await _0x4e120a[_0x2f5f77(0x163)]();this[_0x2f5f77(0x160)][_0x2f5f77(0x141)](_0x37cc77),this[_0x2f5f77(0x19c)]({'type':_0x1e64cf[_0x2f5f77(0x16f)],'id':_0x1e7131,'label':_0x107edc?.[_0x2f5f77(0x18a)]||_0x3a4292,'uiId':_0x37cc77,'resourceId':_0x107edc?.[_0x2f5f77(0x117)]},!0x1);}catch(_0x40ad46){this[_0x2f5f77(0x160)][_0x2f5f77(0x141)](_0x37cc77),(_0x40ad46[_0x2f5f77(0x150)][_0x2f5f77(0x19e)](_0x2f5f77(0x186))||this[_0x2f5f77(0x14b)](_0x2f5f77(0x191),{'error':new _0x4becd9(_0x2f5f77(0x152),this,{'url':_0x3a4292,'originalError':_0x40ad46}),'url':_0x3a4292}),this[_0x2f5f77(0x19b)](_0x37cc77));}finally{this[_0x2f5f77(0x189)](_0x1d9ed0);}}[_0x23bb7d(0x162)](_0x28b1f0){const _0x230d0f=_0x23bb7d;_0x28b1f0['id']=_0x28b1f0['id']??_0x39d101()[_0x230d0f(0x126)](0x0,0x15),this[_0x230d0f(0x17d)][_0x230d0f(0x1a0)](_0x28b1f0[_0x230d0f(0x156)],_0x28b1f0),this[_0x230d0f(0x14b)](_0x230d0f(0x123),{'contextItem':_0x28b1f0,'isLoading':!0x1});}async[_0x23bb7d(0x136)](_0x1691d0,_0x262988,_0x2c7e0c){const _0x2150f2=_0x23bb7d,_0x3a2d80=this[_0x2150f2(0x15e)][_0x2150f2(0x195)][_0x2150f2(0x174)](_0x527225=>_0x527225['id']===_0x1691d0);if(!_0x3a2d80)return this[_0x2150f2(0x14b)](_0x2150f2(0x191),{'error':new _0x4becd9(_0x2150f2(0x184),this,{'sourceId':_0x1691d0}),'sourceId':_0x1691d0}),[];try{const _0x45f445=(await _0x3a2d80[_0x2150f2(0x11f)](_0x262988))[_0x2150f2(0x16c)](_0xf833e3=>{const _0x1541a0=_0x2150f2,_0x2fa12c=this[_0x1541a0(0x125)](_0xf833e3['id']);return{..._0xf833e3,'isInContext':_0x2fa12c};});return _0x3a2d80[_0x2150f2(0x19f)]=_0x45f445,this[_0x2150f2(0x14b)](_0x2150f2(0x1a6),{'sourceId':_0x1691d0,'source':_0x3a2d80,'resources':_0x45f445,'uid':_0x2c7e0c}),_0x45f445;}catch(_0x1c4cc6){return this[_0x2150f2(0x14b)](_0x2150f2(0x191),{'error':new _0x4becd9(_0x2150f2(0x164),this,{'sourceId':_0x1691d0,'originalError':_0x1c4cc6}),'sourceId':_0x1691d0,'sourceLabel':_0x3a2d80[_0x2150f2(0x18a)]}),[];}}async[_0x23bb7d(0x1a7)](_0x3f7434,_0x564795){const _0x5b704d=_0x23bb7d;if(this[_0x5b704d(0x125)](_0x564795['id']))return;let _0x23807d=_0x564795[_0x5b704d(0x129)];if(!_0x23807d&&_0x3f7434[_0x5b704d(0x15c)])try{_0x23807d=await _0x3f7434[_0x5b704d(0x15c)](_0x564795['id']);}catch(_0x350991){return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x18f),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'originalError':_0x350991}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}if(_0x23807d)switch(_0x564795[_0x5b704d(0x12f)]){case _0x1e64cf[_0x5b704d(0x16f)]:if(_0x5b704d(0x176)!=typeof _0x23807d)return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x176),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});await this[_0x5b704d(0x135)](_0x23807d,{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']});break;case _0x1e64cf[_0x5b704d(0x188)]:if(!(_0x23807d instanceof File))return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x145),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});await this[_0x5b704d(0x137)]([_0x23807d],{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']});break;case _0x1e64cf[_0x5b704d(0x124)]:if(_0x5b704d(0x14a)!=typeof _0x23807d||!(_0x5b704d(0x1a4)in _0x23807d)||!(_0x5b704d(0x12f)in _0x23807d))return void this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x121),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'expectedType':_0x5b704d(0x13a),'actualType':typeof _0x23807d}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});_0x23807d=AIChatContext[_0x5b704d(0x17f)](_0x23807d,_0x564795[_0x5b704d(0x18a)]),await this[_0x5b704d(0x137)]([_0x23807d],{'label':_0x564795[_0x5b704d(0x18a)],'resourceId':_0x564795['id']},_0x1e64cf[_0x5b704d(0x124)]);break;case _0x1e64cf[_0x5b704d(0x18e)]:break;default:this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x165),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id'],'resourceType':_0x564795[_0x5b704d(0x12f)]}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}else this[_0x5b704d(0x14b)](_0x5b704d(0x191),{'error':new _0x4becd9(_0x5b704d(0x14d),this,{'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']}),'resourceId':_0x564795['id'],'sourceId':_0x3f7434['id']});}static[_0x23bb7d(0x17f)](_0x27b470,_0x56f601){const _0x1cdd39=_0x23bb7d;switch(_0x27b470[_0x1cdd39(0x12f)]){case _0x177591[_0x1cdd39(0x155)]:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x198)});case _0x177591[_0x1cdd39(0x17e)]:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x153)});default:return new File([_0x27b470[_0x1cdd39(0x1a4)]],_0x56f601,{'type':_0x1cdd39(0x161)});}}static[_0x23bb7d(0x130)](_0x292772){const _0x1adf84=_0x23bb7d;switch(_0x292772[_0x1adf84(0x12f)]){case _0x1e64cf[_0x1adf84(0x188)]:return{'type':_0x1e64cf[_0x1adf84(0x188)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x16f)]:return{'type':_0x1e64cf[_0x1adf84(0x16f)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x166)]:return{'type':_0x1e64cf[_0x1adf84(0x166)],'id':_0x292772['id'],..._0x292772[_0x1adf84(0x17a)]?.[_0x1adf84(0x16d)]&&{'selection':_0x292772[_0x1adf84(0x17a)]}};case _0x1e64cf[_0x1adf84(0x124)]:return{'type':_0x1e64cf[_0x1adf84(0x188)],'id':_0x292772['id']};case _0x1e64cf[_0x1adf84(0x18e)]:{const _0x51b89c=_0x292772;return{'type':_0x1e64cf[_0x1adf84(0x18e)],'mcpServerName':_0x51b89c[_0x1adf84(0x15a)],'toolName':_0x51b89c[_0x1adf84(0x179)],'data':_0x51b89c[_0x1adf84(0x129)],'id':_0x51b89c['id']};}default:return null;}}[_0x23bb7d(0x167)](_0x4fa991,_0x556dd4=!0x1){const _0x8f760d=_0x23bb7d;if(this[_0x8f760d(0x17d)][_0x8f760d(0x1a0)](_0x4fa991[_0x8f760d(0x156)],_0x4fa991),_0x4fa991[_0x8f760d(0x11a)]||this[_0x8f760d(0x14b)](_0x8f760d(0x123),{'contextItem':_0x4fa991,'isLoading':_0x556dd4}),_0x8f760d(0x12d)===_0x4fa991[_0x8f760d(0x156)]&&this[_0x8f760d(0x14c)](),_0x4fa991[_0x8f760d(0x117)]){const _0x4a9280=this[_0x8f760d(0x16e)](_0x4fa991[_0x8f760d(0x117)]);_0x4a9280&&_0x4a9280[_0x8f760d(0x183)](_0x475bae=>{const _0x4fd39f=_0x8f760d;this[_0x4fd39f(0x115)](_0x475bae,_0x4fa991[_0x4fd39f(0x117)],!0x0);});}}[_0x23bb7d(0x19b)](_0x1982ec){const _0x29745d=_0x23bb7d,_0x5a5fcf=this[_0x29745d(0x17d)][_0x29745d(0x170)](_0x1982ec),_0x2d7dc4=this[_0x29745d(0x160)][_0x29745d(0x170)](_0x1982ec);if(_0x2d7dc4&&(_0x2d7dc4[_0x29745d(0x13d)](),this[_0x29745d(0x160)][_0x29745d(0x141)](_0x1982ec)),_0x5a5fcf?.[_0x29745d(0x117)]){const _0x1e1999=this[_0x29745d(0x16e)](_0x5a5fcf[_0x29745d(0x117)]);_0x1e1999&&_0x1e1999[_0x29745d(0x183)](_0x1cf7de=>{const _0x2a63a9=_0x29745d;this[_0x2a63a9(0x115)](_0x1cf7de,_0x5a5fcf[_0x2a63a9(0x117)],!0x1);});}this[_0x29745d(0x17d)][_0x29745d(0x141)](_0x1982ec),this[_0x29745d(0x14b)](_0x29745d(0x15d),{'uiId':_0x1982ec,'type':_0x5a5fcf?.[_0x29745d(0x12f)]}),_0x29745d(0x12d)===_0x1982ec&&this[_0x29745d(0x14c)]();}[_0x23bb7d(0x19c)](_0x20a697,_0x300b06){const _0x4bfdae=_0x23bb7d;if(this[_0x4bfdae(0x17d)][_0x4bfdae(0x12e)](_0x20a697[_0x4bfdae(0x156)])&&(this[_0x4bfdae(0x17d)][_0x4bfdae(0x1a0)](_0x20a697[_0x4bfdae(0x156)],_0x20a697),this[_0x4bfdae(0x14b)](_0x4bfdae(0x139),{'contextItem':_0x20a697,'isLoading':_0x300b06}),_0x20a697[_0x4bfdae(0x117)])){const _0x3fc009=this[_0x4bfdae(0x16e)](_0x20a697[_0x4bfdae(0x117)]);_0x3fc009&&_0x3fc009[_0x4bfdae(0x183)](_0x28fcca=>{const _0x44e20a=_0x4bfdae;this[_0x44e20a(0x115)](_0x28fcca,_0x20a697[_0x44e20a(0x117)],!0x0);});}}[_0x23bb7d(0x140)](_0x4d7557){const _0x10cca8=_0x23bb7d;this[_0x10cca8(0x147)][_0x10cca8(0x1a0)](_0x4d7557[_0x10cca8(0x156)],_0x4d7557);}[_0x23bb7d(0x199)](){const _0x5b623f=_0x23bb7d;this[_0x5b623f(0x15e)]={'document':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x134)]?.[_0x5b623f(0x175)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x194)]?.[_0x5b623f(0x175)]},'files':{'enabled':!0x1!==this[_0x5b623f(0x119)]?.[_0x5b623f(0x1a2)]?.[_0x5b623f(0x175)]},'sources':this[_0x5b623f(0x112)](),'customItems':this[_0x5b623f(0x119)]?.[_0x5b623f(0x12a)]?.[_0x5b623f(0x16c)](_0x2f3213=>({..._0x2f3213,'enabled':!0x0}))??[]},this[_0x5b623f(0x14b)](_0x5b623f(0x169),{'options':this[_0x5b623f(0x15e)]});}[_0x23bb7d(0x112)](){const _0x13c219=_0x23bb7d;return this[_0x13c219(0x119)]?.[_0x13c219(0x195)]?.[_0x13c219(0x16c)](_0x5f06ae=>({..._0x5f06ae,'resources':[]}))??[];}[_0x23bb7d(0x14c)](){const _0x4b1f46=_0x23bb7d,_0x2be11a=this[_0x4b1f46(0x19d)]()||this[_0x4b1f46(0x11d)]();this[_0x4b1f46(0x15e)][_0x4b1f46(0x134)][_0x4b1f46(0x192)]=_0x2be11a,this[_0x4b1f46(0x14b)](_0x4b1f46(0x169),{'options':this[_0x4b1f46(0x15e)]});}[_0x23bb7d(0x125)](_0x1ed474){const _0xbad4d8=_0x23bb7d;for(const _0x46406e of this[_0xbad4d8(0x17d)][_0xbad4d8(0x122)]())if(_0x46406e[_0xbad4d8(0x117)]===_0x1ed474)return!0x0;for(const _0x3ea531 of this[_0xbad4d8(0x147)][_0xbad4d8(0x122)]())if(_0x3ea531[_0xbad4d8(0x117)]===_0x1ed474)return!0x0;return!0x1;}[_0x23bb7d(0x16e)](_0x51d461){const _0x5e0e81=_0x23bb7d,_0x4d9aa0=[];for(const _0x293c8c of this[_0x5e0e81(0x15e)][_0x5e0e81(0x195)]){_0x293c8c[_0x5e0e81(0x19f)][_0x5e0e81(0x174)](_0x1d74da=>_0x1d74da['id']===_0x51d461)&&_0x4d9aa0[_0x5e0e81(0x190)](_0x293c8c['id']);}return 0x0===_0x4d9aa0[_0x5e0e81(0x16d)]?null:_0x4d9aa0;}[_0x23bb7d(0x115)](_0x4bbdd4,_0xd19d48,_0x12a7f0){const _0x43ab5b=_0x23bb7d,_0x24451d=this[_0x43ab5b(0x15e)][_0x43ab5b(0x195)][_0x43ab5b(0x174)](_0x18c83c=>_0x18c83c['id']===_0x4bbdd4);if(!_0x24451d)return;const _0x7c35f5=_0x24451d[_0x43ab5b(0x19f)][_0x43ab5b(0x174)](_0x5a9e40=>_0x5a9e40['id']===_0xd19d48);_0x7c35f5&&(_0x7c35f5[_0x43ab5b(0x193)]=_0x12a7f0,this[_0x43ab5b(0x14b)](_0x43ab5b(0x13f),{'sourceId':_0x4bbdd4,'resourceId':_0xd19d48,'isInContext':_0x12a7f0}));}[_0x23bb7d(0x143)](_0x13cb28){const _0x3c195c=_0x23bb7d;this[_0x3c195c(0x15b)][_0x3c195c(0x1a0)](_0x13cb28,!0x0),this[_0x3c195c(0x15b)][_0x3c195c(0x180)]&&this[_0x3c195c(0x14b)](_0x3c195c(0x133),{'isUploadInProgress':!0x0});}[_0x23bb7d(0x189)](_0x17997b){const _0x455d7e=_0x23bb7d;this[_0x455d7e(0x15b)][_0x455d7e(0x141)](_0x17997b),0x0===this[_0x455d7e(0x15b)][_0x455d7e(0x180)]&&this[_0x455d7e(0x14b)](_0x455d7e(0x133),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2e9c(_0x3ff2ce,_0x1b70c8){const _0x2d0da3=_0x2d0d();return _0x2e9c=function(_0x2e9c70,_0x530f72){_0x2e9c70=_0x2e9c70-0x160;let _0x596d27=_0x2d0da3[_0x2e9c70];return _0x596d27;},_0x2e9c(_0x3ff2ce,_0x1b70c8);}const _0x1ddf2f=_0x2e9c;(function(_0x54ca31,_0x59bf55){const _0x5dde2e=_0x2e9c,_0x5037d9=_0x54ca31();while(!![]){try{const _0x5b64be=parseInt(_0x5dde2e(0x1b6))/0x1+parseInt(_0x5dde2e(0x179))/0x2+-parseInt(_0x5dde2e(0x1c0))/0x3+-parseInt(_0x5dde2e(0x195))/0x4+-parseInt(_0x5dde2e(0x1be))/0x5*(-parseInt(_0x5dde2e(0x1a5))/0x6)+parseInt(_0x5dde2e(0x17f))/0x7+-parseInt(_0x5dde2e(0x1d9))/0x8;if(_0x5b64be===_0x59bf55)break;else _0x5037d9['push'](_0x5037d9['shift']());}catch(_0x53307b){_0x5037d9['push'](_0x5037d9['shift']());}}}(_0x2d0d,0x4213c));import{CKEditorError as _0x1bd84d,EmitterMixin as _0x16c950,logWarning as _0x36f5c1}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5e58f0}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x159b9b,AI_CONTEXT_MODEL_EVENT_NAMES as _0x3ef73b}from'./aichatcontext.js';import{AICapabilities as _0x12dc93,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b8c2c}from'../../aicore/model/aicapabilities.js';function _0x2d0d(){const _0x3461c8=['setReasoning','isSelectionInContext','removeFromContext','ai-chat-conversation-set-model-null','connector','prompt','modelSelected','toggleReasoning','conversationId','_handleToolResultData','chatModels','delegate','interactions','getPendingContextItems','getModel','719886gwqLcy','ai-chat-conversation-start-failed','ai-chat-conversation-init-from-id-failed','updateCurrentDocumentInContext','error','isFromHistory','stop','sessionId','removeSelectionFromContext','attributes','ai-chat-conversation-init-failed','role','ai-chat-handle-user-interaction-already-in-progress','fire','selectedModel','addSelectionToContext','addToConversationContext','8774zuEFbY','removeInteraction','reset','ai-chat-conversation-start-no-model-selected','addToolItemToContext','splice','length','isStarted','10nddvgf','setWebSearch','1197972UZJeeA','getCurrentDocumentContext','setConversationTitle','_extractContextItems','getAll','isAvailable','setModel','ai-chat-conversation-already-started','getEditor','startConversation','hasOwn','populateFromMessage','isCurrentDocumentInConversation','code','loadSourceResources','user','get','toLowerCase','set','content','currentReply','currentInteraction','_processMessagesToInteractions','chatCapabilities','toolName','184160oQHgNF','parse','conversationStarted','indexOf','updateCurrentDocument','url','type','model','isCurrentDocumentInContext','push','group','modification','start','createInteraction','conversationInitialized','createReply','chatContext','getInteraction','interactionCreated','stack','message','ai-chat-handle-user-conversation-not-initialized','getDocumentContext','addFilesToContext','getConversation','init','getCapabilitiesConfig','title','255768pfMzMv','load','toggleWebSearch','getAvailableModels','options','capabilities','2231943DZYWnZ','handleUserInteraction','addResourceToContext','lastInteraction','ai-chat-conversation-set-model-not-available','fetchConversationMessages','selectedModelId','destroy','addUrlToContext','appendContent','ai-chat-handle-user-interaction-start-failed','reasoning','webSearch','mcp-tool-result','text','addCurrentDocumentToContext','sources','contextItems','fetchConversation','assistant','find','getMessages','9892syBbwH'];_0x2d0d=function(){return _0x3461c8;};return _0x2d0d();}import{AIChatInteraction as _0x34a9bd}from'./aichatinteraction.js';import{errorsMap as _0x1d1241}from'../../errorsmap.js';export class AIChatConversation extends _0x16c950(){['id'];[_0x1ddf2f(0x1bd)]=!0x1;[_0x1ddf2f(0x1aa)];[_0x1ddf2f(0x1a2)]=[];[_0x1ddf2f(0x1d5)];[_0x1ddf2f(0x1b3)];[_0x1ddf2f(0x19a)];[_0x1ddf2f(0x17d)];constructor(_0x247cc0){const _0x10a79f=_0x1ddf2f;super(),this[_0x10a79f(0x17d)]=_0x247cc0,this[_0x10a79f(0x19a)]=_0x247cc0[_0x10a79f(0x19a)],this[_0x10a79f(0x1a0)]=_0x247cc0[_0x10a79f(0x1a0)],this['id']=_0x247cc0[_0x10a79f(0x19e)],this[_0x10a79f(0x1aa)]=_0x247cc0[_0x10a79f(0x1aa)];}async[_0x1ddf2f(0x176)](_0x2723d7){const _0x15cfcd=_0x1ddf2f;try{this[_0x15cfcd(0x16d)]=new _0x159b9b({'connector':this[_0x15cfcd(0x19a)],'config':_0x2723d7,'ownerId':this['id']}),this[_0x15cfcd(0x16d)][_0x15cfcd(0x1a1)](..._0x3ef73b)['to'](this),this[_0x15cfcd(0x16d)][_0x15cfcd(0x176)](),this[_0x15cfcd(0x1d7)]=new _0x12dc93(),this[_0x15cfcd(0x1d7)][_0x15cfcd(0x1a1)](..._0x5b8c2c)['to'](this),this[_0x15cfcd(0x1d7)][_0x15cfcd(0x176)]();const _0x5f0b59=await this[_0x15cfcd(0x1a0)][_0x15cfcd(0x17c)]();this[_0x15cfcd(0x1b2)](_0x15cfcd(0x16b),{'availableModels':_0x5f0b59});const _0x26516c=await this[_0x15cfcd(0x1a0)][_0x15cfcd(0x1a4)](this[_0x15cfcd(0x17d)][_0x15cfcd(0x185)]);_0x26516c&&await this[_0x15cfcd(0x1c6)](_0x26516c);}catch(_0x4adc3f){const _0x3190c6=new _0x1bd84d(_0x15cfcd(0x1af),null,{'message':_0x4adc3f[_0x15cfcd(0x171)]||_0x4adc3f});_0x3190c6[_0x15cfcd(0x170)]=_0x4adc3f[_0x15cfcd(0x170)],this[_0x15cfcd(0x1b2)](_0x15cfcd(0x1a9),{'error':_0x3190c6});}}async[_0x1ddf2f(0x169)](){const _0x34a92d=_0x1ddf2f;if(this[_0x34a92d(0x1bd)])throw new _0x1bd84d(_0x34a92d(0x1c7),null,{'conversation':this});if(!this[_0x34a92d(0x1b3)])throw new _0x1bd84d(_0x34a92d(0x1b9),null,{'conversation':this});try{const {id:_0x408d8e}=await this[_0x34a92d(0x19a)][_0x34a92d(0x1c9)](this['id'],this[_0x34a92d(0x17d)][_0x34a92d(0x167)])[_0x34a92d(0x175)]();this['id']=_0x408d8e,this[_0x34a92d(0x1bd)]=!0x0,this[_0x34a92d(0x1b2)](_0x34a92d(0x1db),{'conversationId':this['id'],'selectedModel':this[_0x34a92d(0x1b3)]});}catch(_0x47c64c){const _0x3cb173=new _0x1bd84d(_0x34a92d(0x1a6),null,{'message':_0x47c64c[_0x34a92d(0x171)],'conversationId':this['id']});throw _0x3cb173[_0x34a92d(0x170)]=_0x47c64c[_0x34a92d(0x170)],this[_0x34a92d(0x1b2)](_0x34a92d(0x1a9),{'error':_0x3cb173}),_0x3cb173;}}async[_0x1ddf2f(0x17a)](_0x231e77,_0x349a20){const _0x93ca55=_0x1ddf2f;try{const _0xb325d0=await this[_0x93ca55(0x19a)][_0x93ca55(0x191)](_0x231e77)[_0x93ca55(0x175)](),_0x414dcb=await this[_0x93ca55(0x19a)][_0x93ca55(0x184)](_0x231e77)[_0x93ca55(0x194)](),_0x41e008=_0x414dcb[0x0][_0x93ca55(0x164)];this[_0x93ca55(0x1bd)]=!0x0,this['id']=_0xb325d0['id'],_0x93ca55(0x178)in _0xb325d0?this[_0x93ca55(0x1b2)](_0x93ca55(0x1c2),_0xb325d0[_0x93ca55(0x178)],!0x0):this[_0x93ca55(0x1b2)](_0x93ca55(0x1c2),'',!0x0);const _0x498485=(await this[_0x93ca55(0x1a0)][_0x93ca55(0x1c4)]())[_0x93ca55(0x193)](_0x499d10=>_0x499d10['id'][_0x93ca55(0x1d1)]()===_0x41e008[_0x93ca55(0x1d1)]());return this[_0x93ca55(0x1b3)]=_0x498485,this[_0x93ca55(0x1b2)](_0x93ca55(0x19c),{'selectedModel':_0x498485,'isDisabled':!0x0}),await this[_0x93ca55(0x1d6)](_0x414dcb,_0x349a20,_0x41e008),this[_0x93ca55(0x1d5)]=void 0x0,this;}catch(_0x383113){const _0x328b19=new _0x1bd84d(_0x93ca55(0x1a7),null,{'message':_0x383113[_0x93ca55(0x171)],'conversationId':_0x231e77});throw _0x328b19[_0x93ca55(0x170)]=_0x383113[_0x93ca55(0x170)],this[_0x93ca55(0x1b2)](_0x93ca55(0x1a9),{'error':_0x328b19}),_0x328b19;}}async[_0x1ddf2f(0x1d6)](_0x5a24a8,_0xdedf01,_0x5eddbb){const _0x1a2051=_0x1ddf2f;let _0x2f0d74;for(const _0x418ca1 of _0x5a24a8)if(_0x1a2051(0x1cf)===_0x418ca1[_0x1a2051(0x1b0)]){const _0x19ba82=await this[_0x1a2051(0x1c3)](_0x418ca1),_0x164256={'isReasoningEnabled':Object[_0x1a2051(0x1ca)](_0x418ca1[_0x1a2051(0x17e)],_0x1a2051(0x18a)),'isWebSearchEnabled':Object[_0x1a2051(0x1ca)](_0x418ca1[_0x1a2051(0x17e)],_0x1a2051(0x18b))};_0x2f0d74=this[_0x1a2051(0x16a)]({'userMessage':_0x418ca1[_0x1a2051(0x19b)],'contextItems':_0x19ba82,'capabilities':_0x164256,'modelId':_0x5eddbb,'attributes':_0x418ca1[_0x1a2051(0x1ae)]}),this[_0x1a2051(0x1d5)]=_0x2f0d74,this[_0x1a2051(0x16d)][_0x1a2051(0x1b5)](this[_0x1a2051(0x1d5)][_0x1a2051(0x190)]);}else{if(_0x1a2051(0x192)===_0x418ca1[_0x1a2051(0x1b0)]&&_0x2f0d74){const _0x1dea5d=[];for(const _0x34a37c of _0x418ca1[_0x1a2051(0x1d3)])switch(_0x34a37c[_0x1a2051(0x163)]){case _0x1a2051(0x18d):case _0x1a2051(0x168):{const _0x1c952e=_0x2f0d74[_0x1a2051(0x173)]()?.[_0x1a2051(0x1ac)]!==_0xdedf01;_0x2f0d74[_0x1a2051(0x1d4)]=_0x2f0d74[_0x1a2051(0x16c)]({'type':_0x34a37c[_0x1a2051(0x163)],'isDone':!0x0,'interactionId':_0x2f0d74['id'],'areActionsDisabled':_0x1c952e}),_0x2f0d74[_0x1a2051(0x1d4)][_0x1a2051(0x188)](_0x34a37c[_0x1a2051(0x1d3)]),_0x1dea5d[_0x1a2051(0x1bc)]>0x0&&(_0x2f0d74[_0x1a2051(0x1d4)][_0x1a2051(0x18f)]=_0x1dea5d[_0x1a2051(0x1bb)](0x0));break;}case _0x1a2051(0x162):_0x1dea5d[_0x1a2051(0x166)](_0x34a37c);break;case _0x1a2051(0x18c):{const {data:_0x2c0958,attributes:_0x2a1d6f}=JSON[_0x1a2051(0x1da)](_0x34a37c[_0x1a2051(0x1d3)]);_0x2f0d74[_0x1a2051(0x19f)]({'toolName':_0x34a37c[_0x1a2051(0x1d8)],'data':_0x2c0958,'attributes':_0x2a1d6f});break;}}}}}async[_0x1ddf2f(0x1c3)](_0x206047){const _0x5e03e1=_0x1ddf2f,_0x64e239=new Map();if(!_0x206047[_0x5e03e1(0x1d3)])return _0x64e239;for(const _0x1340be of _0x206047[_0x5e03e1(0x1d3)]){const _0x7405d1=await this[_0x5e03e1(0x16d)][_0x5e03e1(0x1cb)](_0x1340be);_0x7405d1&&_0x64e239[_0x5e03e1(0x1d2)](_0x7405d1['id'],_0x7405d1);}return _0x64e239;}async[_0x1ddf2f(0x180)]({userMessage:_0x53a528,attributes:_0x73bac7}){const _0x3284aa=_0x1ddf2f;if(!this[_0x3284aa(0x1bd)])throw new _0x1bd84d(_0x3284aa(0x172),null,{'conversation':this});if(this[_0x3284aa(0x1d5)])throw new _0x1bd84d(_0x3284aa(0x1b1),null,{'conversation':this});try{const _0x567fdb=this[_0x3284aa(0x16d)][_0x3284aa(0x1a3)](),_0x126f15=this[_0x3284aa(0x1d7)][_0x3284aa(0x177)](),_0x38d3ae=this[_0x3284aa(0x1b3)]['id'];this[_0x3284aa(0x1d5)]=this[_0x3284aa(0x16a)]({'userMessage':_0x53a528,'contextItems':_0x567fdb,'capabilities':_0x126f15,'modelId':_0x38d3ae,'attributes':_0x73bac7}),await this[_0x3284aa(0x1d5)][_0x3284aa(0x169)](),this[_0x3284aa(0x16d)][_0x3284aa(0x1b5)](this[_0x3284aa(0x1d5)][_0x3284aa(0x190)]);}catch(_0x4f718c){if(_0x4f718c instanceof _0x1bd84d)this[_0x3284aa(0x1b2)](_0x3284aa(0x1a9),{'interactionId':this[_0x3284aa(0x1d5)]?this[_0x3284aa(0x1d5)]['id']:void 0x0,'error':_0x4f718c});else{const _0x401958=_0x1d1241[_0x3284aa(0x1d0)](_0x4f718c[_0x3284aa(0x1cd)])||_0x3284aa(0x189);this[_0x3284aa(0x1b2)](_0x3284aa(0x1a9),{'interactionId':this[_0x3284aa(0x1d5)]?this[_0x3284aa(0x1d5)]['id']:void 0x0,'error':new _0x1bd84d(_0x401958,null,{'error':_0x4f718c})});}}finally{this[_0x3284aa(0x1d5)]?.[_0x3284aa(0x1ab)](),this[_0x3284aa(0x1d5)]=void 0x0;}}[_0x1ddf2f(0x16a)]({userMessage:_0x1cac25,contextItems:_0x2a7489,capabilities:_0x139f98,modelId:_0x3515d5,attributes:_0x2552a7}){const _0x25f767=_0x1ddf2f,_0x2d5f3a=new _0x34a9bd({'userMessage':_0x1cac25,'contextItems':_0x2a7489,'capabilities':_0x139f98,'conversationId':this['id'],'connector':this[_0x25f767(0x19a)],'editor':this[_0x25f767(0x17d)][_0x25f767(0x1c8)]&&this[_0x25f767(0x17d)][_0x25f767(0x1c8)](),'model':_0x3515d5,'attributes':_0x2552a7});return _0x2d5f3a[_0x25f767(0x1a1)](..._0x5e58f0)['to'](this),this[_0x25f767(0x1a2)][_0x25f767(0x166)](_0x2d5f3a),this[_0x25f767(0x1b2)](_0x25f767(0x16f),_0x2d5f3a),_0x2d5f3a;}[_0x1ddf2f(0x16e)](_0x579f3f){const _0x4675cd=_0x1ddf2f;return this[_0x4675cd(0x1a2)][_0x4675cd(0x193)](_0x40de4d=>_0x40de4d['id']===_0x579f3f);}[_0x1ddf2f(0x1b7)](_0x4a8665){const _0x528ca2=_0x1ddf2f,_0x3c9046=this[_0x528ca2(0x16e)](_0x4a8665);_0x3c9046&&(_0x3c9046[_0x528ca2(0x186)](),this[_0x528ca2(0x1a2)][_0x528ca2(0x1bb)](this[_0x528ca2(0x1a2)][_0x528ca2(0x160)](_0x3c9046),0x1));}get[_0x1ddf2f(0x182)](){const _0x50c97a=_0x1ddf2f;return this[_0x50c97a(0x1a2)][this[_0x50c97a(0x1a2)][_0x50c97a(0x1bc)]-0x1];}[_0x1ddf2f(0x18e)](_0x3c438d){const _0x30c6f1=_0x1ddf2f;this[_0x30c6f1(0x16d)][_0x30c6f1(0x18e)](_0x3c438d);}async[_0x1ddf2f(0x1a8)]({content:_0x243131,version:_0xed20ac,sessionId:_0x1b06c7,selections:_0x59bdcf}){const _0x435b5e=_0x1ddf2f;await this[_0x435b5e(0x16d)][_0x435b5e(0x161)](_0x243131,_0xed20ac,_0x1b06c7,_0x59bdcf);}[_0x1ddf2f(0x1c1)](){const _0x2bb201=_0x1ddf2f;return this[_0x2bb201(0x1d5)]?.[_0x2bb201(0x173)]()?.[_0x2bb201(0x1d3)]||'';}[_0x1ddf2f(0x1b4)](_0x36870b){const _0x473270=_0x1ddf2f;this[_0x473270(0x16d)][_0x473270(0x1b4)](_0x36870b);}[_0x1ddf2f(0x1ad)](){const _0x381c7e=_0x1ddf2f;this[_0x381c7e(0x16d)][_0x381c7e(0x1ad)]();}[_0x1ddf2f(0x174)](_0x246a9e){const _0x282f7f=_0x1ddf2f;this[_0x282f7f(0x16d)][_0x282f7f(0x174)](_0x246a9e);}[_0x1ddf2f(0x187)](_0x5917c9){const _0x27a0a1=_0x1ddf2f;this[_0x27a0a1(0x16d)][_0x27a0a1(0x187)](_0x5917c9);}[_0x1ddf2f(0x1ba)](_0x4d8062){const _0x551508=_0x1ddf2f;this[_0x551508(0x16d)][_0x551508(0x1ba)](_0x4d8062);}[_0x1ddf2f(0x181)](_0x2a55bd,_0x185cda){const _0x1d01c0=_0x1ddf2f;this[_0x1d01c0(0x16d)][_0x1d01c0(0x181)](_0x2a55bd,_0x185cda);}[_0x1ddf2f(0x1ce)](_0x57c8fb,_0x4a542d,_0x587969){const _0x16d9ab=_0x1ddf2f;return this[_0x16d9ab(0x16d)][_0x16d9ab(0x1ce)](_0x57c8fb,_0x4a542d,_0x587969);}[_0x1ddf2f(0x198)](_0x3481cc){const _0x4ab747=_0x1ddf2f;this[_0x4ab747(0x16d)][_0x4ab747(0x198)](_0x3481cc);}[_0x1ddf2f(0x1bf)](_0x5525d8){const _0x29ef96=_0x1ddf2f;this[_0x29ef96(0x1d7)][_0x29ef96(0x1bf)](_0x5525d8);}[_0x1ddf2f(0x17b)](){const _0x26dcd5=_0x1ddf2f;this[_0x26dcd5(0x1d7)][_0x26dcd5(0x17b)]();}[_0x1ddf2f(0x196)](_0x5f359e){const _0x393b2b=_0x1ddf2f;this[_0x393b2b(0x1d7)][_0x393b2b(0x196)](_0x5f359e);}[_0x1ddf2f(0x19d)](){const _0xc4a114=_0x1ddf2f;this[_0xc4a114(0x1d7)][_0xc4a114(0x19d)]();}[_0x1ddf2f(0x165)](){const _0x266e40=_0x1ddf2f;return this[_0x266e40(0x16d)][_0x266e40(0x165)]();}[_0x1ddf2f(0x1cc)](){const _0x4e6f72=_0x1ddf2f;return this[_0x4e6f72(0x16d)][_0x4e6f72(0x1cc)]();}[_0x1ddf2f(0x197)](){const _0xee7552=_0x1ddf2f;return this[_0xee7552(0x16d)][_0xee7552(0x197)]();}async[_0x1ddf2f(0x1c6)](_0x39d39b){const _0x16b1b5=_0x1ddf2f;_0x39d39b?!0x1===await this[_0x16b1b5(0x1a0)][_0x16b1b5(0x1c5)](_0x39d39b)&&(_0x36f5c1(_0x16b1b5(0x183),{'conversation':this,'model':_0x39d39b}),_0x39d39b=(await this[_0x16b1b5(0x1a0)][_0x16b1b5(0x17c)]())[0x0]):(_0x36f5c1(_0x16b1b5(0x199),{'conversation':this}),_0x39d39b=(await this[_0x16b1b5(0x1a0)][_0x16b1b5(0x17c)]())[0x0]),_0x39d39b['id']!==this[_0x16b1b5(0x1b3)]?.['id']&&(this[_0x16b1b5(0x1b3)]=_0x39d39b,this[_0x16b1b5(0x1d7)][_0x16b1b5(0x1b8)](),this[_0x16b1b5(0x1b2)](_0x16b1b5(0x19c),{'selectedModel':_0x39d39b}));}}
23
+ function _0x4247(){const _0xcc373f=['ai-chat-handle-user-interaction-start-failed','length','mcp-tool-result','handleUserInteraction','addSelectionToContext','toggleReasoning','sessionId','updateCurrentDocument','isFromHistory','getModel','modelSelected','addToConversationContext','capabilities','conversationInitialized','selectedModel','user','start','setWebSearch','fetchConversation','20936emviET','getDocumentContext','prompt','url','addToolItemToContext','ai-chat-conversation-start-no-model-selected','code','removeSelectionFromContext','push','attributes','stop','getInteraction','getAvailableModels','chatModels','getEditor','ai-chat-conversation-already-started','isStarted','connector','getAll','toLowerCase','addResourceToContext','model','toolName','indexOf','getCapabilitiesConfig','updateCurrentDocumentInContext','options','interactions','ai-chat-conversation-start-failed','_handleToolResultData','isAvailable','23694FeIChP','reset','ai-chat-conversation-set-model-not-available','chatContext','createReply','type','addFilesToContext','init','group','_processMessagesToInteractions','selectedModelId','1263700RAJAHv','hasOwn','appendContent','6489380ELpLWn','removeFromContext','isCurrentDocumentInContext','toggleWebSearch','setReasoning','ai-chat-conversation-set-model-null','interactionCreated','3132yLzqBu','ai-chat-conversation-init-failed','title','_extractContextItems','isSelectionInContext','addUrlToContext','text','1719pOsJck','error','ai-chat-conversation-init-from-id-failed','setConversationTitle','6xQkJRc','splice','loadSourceResources','6yxEjOv','webSearch','currentInteraction','createInteraction','reasoning','content','getCurrentDocumentContext','get','startConversation','getPendingContextItems','contextItems','lastInteraction','addCurrentDocumentToContext','ai-chat-handle-user-conversation-not-initialized','populateFromMessage','destroy','assistant','load','parse','ai-chat-handle-user-interaction-already-in-progress','delegate','role','fire','modification','currentReply','1536157TFgVnZ','214LXrBJV','removeInteraction','conversationId','getMessages','isCurrentDocumentInConversation','fetchConversationMessages','sources','stack','find','6672Tlsmig','message','set','getConversation','chatCapabilities','setModel','365715lEKdJU','conversationStarted'];_0x4247=function(){return _0xcc373f;};return _0x4247();}const _0x264d7b=_0x5369;(function(_0x595b16,_0x31a966){const _0x1c7043=_0x5369,_0x53123f=_0x595b16();while(!![]){try{const _0x436da9=-parseInt(_0x1c7043(0xba))/0x1*(parseInt(_0x1c7043(0xb1))/0x2)+-parseInt(_0x1c7043(0x94))/0x3*(parseInt(_0x1c7043(0x7f))/0x4)+-parseInt(_0x1c7043(0xc0))/0x5+parseInt(_0x1c7043(0x97))/0x6*(parseInt(_0x1c7043(0xb0))/0x7)+-parseInt(_0x1c7043(0xd5))/0x8*(-parseInt(_0x1c7043(0x90))/0x9)+parseInt(_0x1c7043(0x82))/0xa+parseInt(_0x1c7043(0x74))/0xb*(parseInt(_0x1c7043(0x89))/0xc);if(_0x436da9===_0x31a966)break;else _0x53123f['push'](_0x53123f['shift']());}catch(_0x12e60f){_0x53123f['push'](_0x53123f['shift']());}}}(_0x4247,0x7ce2d));function _0x5369(_0x24fd76,_0x353426){const _0x424770=_0x4247();return _0x5369=function(_0x5369c4,_0x26b3e9){_0x5369c4=_0x5369c4-0x6d;let _0x6bd4d=_0x424770[_0x5369c4];return _0x6bd4d;},_0x5369(_0x24fd76,_0x353426);}import{CKEditorError as _0x312a30,EmitterMixin as _0xd47f38,logWarning as _0x1a6f60}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x5cdd0a}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x9f8e15,AI_CONTEXT_MODEL_EVENT_NAMES as _0x50710e}from'./aichatcontext.js';import{AICapabilities as _0x3e2e5d,CAPABILITIES_MODEL_EVENT_NAMES as _0x958d76}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4ce4fb}from'./aichatinteraction.js';import{errorsMap as _0x458ca5}from'../../errorsmap.js';export class AIChatConversation extends _0xd47f38(){['id'];[_0x264d7b(0xe5)]=!0x1;[_0x264d7b(0xca)];[_0x264d7b(0x70)]=[];[_0x264d7b(0x99)];[_0x264d7b(0xd0)];[_0x264d7b(0xe6)];[_0x264d7b(0x6f)];constructor(_0xc5b745){const _0x466ab8=_0x264d7b;super(),this[_0x466ab8(0x6f)]=_0xc5b745,this[_0x466ab8(0xe6)]=_0xc5b745[_0x466ab8(0xe6)],this[_0x466ab8(0xe2)]=_0xc5b745[_0x466ab8(0xe2)],this['id']=_0xc5b745[_0x466ab8(0xb3)],this[_0x466ab8(0xca)]=_0xc5b745[_0x466ab8(0xca)];}async[_0x264d7b(0x7b)](_0x5c02a4){const _0x56a8c7=_0x264d7b;try{this[_0x56a8c7(0x77)]=new _0x9f8e15({'connector':this[_0x56a8c7(0xe6)],'config':_0x5c02a4,'ownerId':this['id']}),this[_0x56a8c7(0x77)][_0x56a8c7(0xab)](..._0x50710e)['to'](this),this[_0x56a8c7(0x77)][_0x56a8c7(0x7b)](),this[_0x56a8c7(0xbe)]=new _0x3e2e5d(),this[_0x56a8c7(0xbe)][_0x56a8c7(0xab)](..._0x958d76)['to'](this),this[_0x56a8c7(0xbe)][_0x56a8c7(0x7b)]();const _0x569b00=await this[_0x56a8c7(0xe2)][_0x56a8c7(0xe1)]();this[_0x56a8c7(0xad)](_0x56a8c7(0xcf),{'availableModels':_0x569b00});const _0x195807=await this[_0x56a8c7(0xe2)][_0x56a8c7(0xcb)](this[_0x56a8c7(0x6f)][_0x56a8c7(0x7e)]);_0x195807&&await this[_0x56a8c7(0xbf)](_0x195807);}catch(_0x45f960){const _0x1786fb=new _0x312a30(_0x56a8c7(0x8a),null,{'message':_0x45f960[_0x56a8c7(0xbb)]||_0x45f960});_0x1786fb[_0x56a8c7(0xb8)]=_0x45f960[_0x56a8c7(0xb8)],this[_0x56a8c7(0xad)](_0x56a8c7(0x91),{'error':_0x1786fb});}}async[_0x264d7b(0xd2)](){const _0xc53c90=_0x264d7b;if(this[_0xc53c90(0xe5)])throw new _0x312a30(_0xc53c90(0xe4),null,{'conversation':this});if(!this[_0xc53c90(0xd0)])throw new _0x312a30(_0xc53c90(0xda),null,{'conversation':this});try{const {id:_0xc4106a}=await this[_0xc53c90(0xe6)][_0xc53c90(0x9f)](this['id'],this[_0xc53c90(0x6f)][_0xc53c90(0x7c)])[_0xc53c90(0xbd)]();this['id']=_0xc4106a,this[_0xc53c90(0xe5)]=!0x0,this[_0xc53c90(0xad)](_0xc53c90(0xc1),{'conversationId':this['id'],'selectedModel':this[_0xc53c90(0xd0)]});}catch(_0x1ade23){const _0x1fab48=new _0x312a30(_0xc53c90(0x71),null,{'message':_0x1ade23[_0xc53c90(0xbb)],'conversationId':this['id']});throw _0x1fab48[_0xc53c90(0xb8)]=_0x1ade23[_0xc53c90(0xb8)],this[_0xc53c90(0xad)](_0xc53c90(0x91),{'error':_0x1fab48}),_0x1fab48;}}async[_0x264d7b(0xa8)](_0x16d7f0,_0x3da82f){const _0x21efa1=_0x264d7b;try{const _0x28ca3e=await this[_0x21efa1(0xe6)][_0x21efa1(0xd4)](_0x16d7f0)[_0x21efa1(0xbd)](),_0x551e47=await this[_0x21efa1(0xe6)][_0x21efa1(0xb6)](_0x16d7f0)[_0x21efa1(0xb4)](),_0x1d5270=_0x551e47[0x0][_0x21efa1(0xea)];this[_0x21efa1(0xe5)]=!0x0,this['id']=_0x28ca3e['id'],_0x21efa1(0x8b)in _0x28ca3e?this[_0x21efa1(0xad)](_0x21efa1(0x93),_0x28ca3e[_0x21efa1(0x8b)],!0x0):this[_0x21efa1(0xad)](_0x21efa1(0x93),'',!0x0);const _0x23b4a1=(await this[_0x21efa1(0xe2)][_0x21efa1(0xe7)]())[_0x21efa1(0xb9)](_0x24886a=>_0x24886a['id'][_0x21efa1(0xe8)]()===_0x1d5270[_0x21efa1(0xe8)]());return this[_0x21efa1(0xd0)]=_0x23b4a1,this[_0x21efa1(0xad)](_0x21efa1(0xcc),{'selectedModel':_0x23b4a1,'isDisabled':!0x0}),await this[_0x21efa1(0x7d)](_0x551e47,_0x3da82f,_0x1d5270),this[_0x21efa1(0x99)]=void 0x0,this;}catch(_0x57f991){const _0xefcff5=new _0x312a30(_0x21efa1(0x92),null,{'message':_0x57f991[_0x21efa1(0xbb)],'conversationId':_0x16d7f0});throw _0xefcff5[_0x21efa1(0xb8)]=_0x57f991[_0x21efa1(0xb8)],this[_0x21efa1(0xad)](_0x21efa1(0x91),{'error':_0xefcff5}),_0xefcff5;}}async[_0x264d7b(0x7d)](_0x3ed542,_0x3ee042,_0x2c7cd5){const _0x66a1d9=_0x264d7b;let _0x59fc6e;for(const _0x5c17f0 of _0x3ed542)if(_0x66a1d9(0xd1)===_0x5c17f0[_0x66a1d9(0xac)]){const _0x2e4bb9=await this[_0x66a1d9(0x8c)](_0x5c17f0),_0x181874={'isReasoningEnabled':Object[_0x66a1d9(0x80)](_0x5c17f0[_0x66a1d9(0xce)],_0x66a1d9(0x9b)),'isWebSearchEnabled':Object[_0x66a1d9(0x80)](_0x5c17f0[_0x66a1d9(0xce)],_0x66a1d9(0x98))};_0x59fc6e=this[_0x66a1d9(0x9a)]({'userMessage':_0x5c17f0[_0x66a1d9(0xd7)],'contextItems':_0x2e4bb9,'capabilities':_0x181874,'modelId':_0x2c7cd5,'attributes':_0x5c17f0[_0x66a1d9(0xde)]}),this[_0x66a1d9(0x99)]=_0x59fc6e,this[_0x66a1d9(0x77)][_0x66a1d9(0xcd)](this[_0x66a1d9(0x99)][_0x66a1d9(0xa1)]);}else{if(_0x66a1d9(0xa7)===_0x5c17f0[_0x66a1d9(0xac)]&&_0x59fc6e){const _0xbcc11d=[];for(const _0xf325a6 of _0x5c17f0[_0x66a1d9(0x9c)])switch(_0xf325a6[_0x66a1d9(0x79)]){case _0x66a1d9(0x8f):case _0x66a1d9(0xae):{const _0x33be6d=_0x59fc6e[_0x66a1d9(0xd6)]()?.[_0x66a1d9(0xc8)]!==_0x3ee042;_0x59fc6e[_0x66a1d9(0xaf)]=_0x59fc6e[_0x66a1d9(0x78)]({'type':_0xf325a6[_0x66a1d9(0x79)],'isDone':!0x0,'interactionId':_0x59fc6e['id'],'areActionsDisabled':_0x33be6d}),_0x59fc6e[_0x66a1d9(0xaf)][_0x66a1d9(0x81)](_0xf325a6[_0x66a1d9(0x9c)]),_0xbcc11d[_0x66a1d9(0xc3)]>0x0&&(_0x59fc6e[_0x66a1d9(0xaf)][_0x66a1d9(0xb7)]=_0xbcc11d[_0x66a1d9(0x95)](0x0));break;}case _0x66a1d9(0xd8):_0xbcc11d[_0x66a1d9(0xdd)](_0xf325a6);break;case _0x66a1d9(0xc4):{const {data:_0x4a9c77,attributes:_0x21fee8}=JSON[_0x66a1d9(0xa9)](_0xf325a6[_0x66a1d9(0x9c)]);_0x59fc6e[_0x66a1d9(0x72)]({'toolName':_0xf325a6[_0x66a1d9(0xeb)],'data':_0x4a9c77,'attributes':_0x21fee8});break;}}}}}async[_0x264d7b(0x8c)](_0x5296a7){const _0x1f7a27=_0x264d7b,_0x257139=new Map();if(!_0x5296a7[_0x1f7a27(0x9c)])return _0x257139;for(const _0x7efb60 of _0x5296a7[_0x1f7a27(0x9c)]){const _0x591869=await this[_0x1f7a27(0x77)][_0x1f7a27(0xa5)](_0x7efb60);_0x591869&&_0x257139[_0x1f7a27(0xbc)](_0x591869['id'],_0x591869);}return _0x257139;}async[_0x264d7b(0xc5)]({userMessage:_0x2685f6,attributes:_0x1ec341}){const _0x476af5=_0x264d7b;if(!this[_0x476af5(0xe5)])throw new _0x312a30(_0x476af5(0xa4),null,{'conversation':this});if(this[_0x476af5(0x99)])throw new _0x312a30(_0x476af5(0xaa),null,{'conversation':this});try{const _0x3bfe33=this[_0x476af5(0x77)][_0x476af5(0xa0)](),_0x3b6157=this[_0x476af5(0xbe)][_0x476af5(0x6d)](),_0x22211e=this[_0x476af5(0xd0)]['id'];this[_0x476af5(0x99)]=this[_0x476af5(0x9a)]({'userMessage':_0x2685f6,'contextItems':_0x3bfe33,'capabilities':_0x3b6157,'modelId':_0x22211e,'attributes':_0x1ec341}),await this[_0x476af5(0x99)][_0x476af5(0xd2)](),this[_0x476af5(0x77)][_0x476af5(0xcd)](this[_0x476af5(0x99)][_0x476af5(0xa1)]);}catch(_0xf47097){if(_0xf47097 instanceof _0x312a30)this[_0x476af5(0xad)](_0x476af5(0x91),{'interactionId':this[_0x476af5(0x99)]?this[_0x476af5(0x99)]['id']:void 0x0,'error':_0xf47097});else{const _0x285fac=_0x458ca5[_0x476af5(0x9e)](_0xf47097[_0x476af5(0xdb)])||_0x476af5(0xc2);this[_0x476af5(0xad)](_0x476af5(0x91),{'interactionId':this[_0x476af5(0x99)]?this[_0x476af5(0x99)]['id']:void 0x0,'error':new _0x312a30(_0x285fac,null,{'error':_0xf47097})});}}finally{this[_0x476af5(0x99)]?.[_0x476af5(0xdf)](),this[_0x476af5(0x99)]=void 0x0;}}[_0x264d7b(0x9a)]({userMessage:_0x5dd719,contextItems:_0x2b751f,capabilities:_0x4583dd,modelId:_0x3dc195,attributes:_0x650a96}){const _0x234ed3=_0x264d7b,_0x59642d=new _0x4ce4fb({'userMessage':_0x5dd719,'contextItems':_0x2b751f,'capabilities':_0x4583dd,'conversationId':this['id'],'connector':this[_0x234ed3(0xe6)],'editor':this[_0x234ed3(0x6f)][_0x234ed3(0xe3)]&&this[_0x234ed3(0x6f)][_0x234ed3(0xe3)](),'model':_0x3dc195,'attributes':_0x650a96});return _0x59642d[_0x234ed3(0xab)](..._0x5cdd0a)['to'](this),this[_0x234ed3(0x70)][_0x234ed3(0xdd)](_0x59642d),this[_0x234ed3(0xad)](_0x234ed3(0x88),_0x59642d),_0x59642d;}[_0x264d7b(0xe0)](_0x1318be){const _0x1b6f88=_0x264d7b;return this[_0x1b6f88(0x70)][_0x1b6f88(0xb9)](_0x57133d=>_0x57133d['id']===_0x1318be);}[_0x264d7b(0xb2)](_0x4858db){const _0x575ed0=_0x264d7b,_0x24b2ba=this[_0x575ed0(0xe0)](_0x4858db);_0x24b2ba&&(_0x24b2ba[_0x575ed0(0xa6)](),this[_0x575ed0(0x70)][_0x575ed0(0x95)](this[_0x575ed0(0x70)][_0x575ed0(0xec)](_0x24b2ba),0x1));}get[_0x264d7b(0xa2)](){const _0x3455fe=_0x264d7b;return this[_0x3455fe(0x70)][this[_0x3455fe(0x70)][_0x3455fe(0xc3)]-0x1];}[_0x264d7b(0xa3)](_0x27e6e7){const _0x18d46b=_0x264d7b;this[_0x18d46b(0x77)][_0x18d46b(0xa3)](_0x27e6e7);}async[_0x264d7b(0x6e)]({content:_0x43879f,version:_0x240cfb,sessionId:_0x147283,selections:_0x3d63b5}){const _0x3d47bb=_0x264d7b;await this[_0x3d47bb(0x77)][_0x3d47bb(0xc9)](_0x43879f,_0x240cfb,_0x147283,_0x3d63b5);}[_0x264d7b(0x9d)](){const _0x1911d9=_0x264d7b;return this[_0x1911d9(0x99)]?.[_0x1911d9(0xd6)]()?.[_0x1911d9(0x9c)]||'';}[_0x264d7b(0xc6)](_0x563935){const _0x494065=_0x264d7b;this[_0x494065(0x77)][_0x494065(0xc6)](_0x563935);}[_0x264d7b(0xdc)](){const _0x116ae5=_0x264d7b;this[_0x116ae5(0x77)][_0x116ae5(0xdc)]();}[_0x264d7b(0x7a)](_0x552997){const _0x183ba7=_0x264d7b;this[_0x183ba7(0x77)][_0x183ba7(0x7a)](_0x552997);}[_0x264d7b(0x8e)](_0x330dd2){const _0x556e76=_0x264d7b;this[_0x556e76(0x77)][_0x556e76(0x8e)](_0x330dd2);}[_0x264d7b(0xd9)](_0x1e7cb0){const _0x269815=_0x264d7b;this[_0x269815(0x77)][_0x269815(0xd9)](_0x1e7cb0);}[_0x264d7b(0xe9)](_0x4d9220,_0x549a01){const _0x55e984=_0x264d7b;this[_0x55e984(0x77)][_0x55e984(0xe9)](_0x4d9220,_0x549a01);}[_0x264d7b(0x96)](_0x51bf7e,_0x151d9b,_0x19fb65){const _0x18ecfe=_0x264d7b;return this[_0x18ecfe(0x77)][_0x18ecfe(0x96)](_0x51bf7e,_0x151d9b,_0x19fb65);}[_0x264d7b(0x83)](_0x5ce79b){const _0x4f23bd=_0x264d7b;this[_0x4f23bd(0x77)][_0x4f23bd(0x83)](_0x5ce79b);}[_0x264d7b(0xd3)](_0x2369f9){const _0x1bb43d=_0x264d7b;this[_0x1bb43d(0xbe)][_0x1bb43d(0xd3)](_0x2369f9);}[_0x264d7b(0x85)](){const _0x513b6a=_0x264d7b;this[_0x513b6a(0xbe)][_0x513b6a(0x85)]();}[_0x264d7b(0x86)](_0xff8951){const _0x22a2c7=_0x264d7b;this[_0x22a2c7(0xbe)][_0x22a2c7(0x86)](_0xff8951);}[_0x264d7b(0xc7)](){const _0x37b340=_0x264d7b;this[_0x37b340(0xbe)][_0x37b340(0xc7)]();}[_0x264d7b(0x84)](){const _0x5477bc=_0x264d7b;return this[_0x5477bc(0x77)][_0x5477bc(0x84)]();}[_0x264d7b(0xb5)](){const _0x4c2cdb=_0x264d7b;return this[_0x4c2cdb(0x77)][_0x4c2cdb(0xb5)]();}[_0x264d7b(0x8d)](){const _0x2d6816=_0x264d7b;return this[_0x2d6816(0x77)][_0x2d6816(0x8d)]();}async[_0x264d7b(0xbf)](_0x594907){const _0x3845a3=_0x264d7b;_0x594907?!0x1===await this[_0x3845a3(0xe2)][_0x3845a3(0x73)](_0x594907)&&(_0x1a6f60(_0x3845a3(0x76),{'conversation':this,'model':_0x594907}),_0x594907=(await this[_0x3845a3(0xe2)][_0x3845a3(0xe1)]())[0x0]):(_0x1a6f60(_0x3845a3(0x87),{'conversation':this}),_0x594907=(await this[_0x3845a3(0xe2)][_0x3845a3(0xe1)]())[0x0]),_0x594907['id']!==this[_0x3845a3(0xd0)]?.['id']&&(this[_0x3845a3(0xd0)]=_0x594907,this[_0x3845a3(0xbe)][_0x3845a3(0x75)](),this[_0x3845a3(0xad)](_0x3845a3(0xcc),{'selectedModel':_0x594907}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x39ab64=_0x3367;(function(_0x52fc79,_0x54b6dd){var _0x5cf2e1=_0x3367,_0x4f81f4=_0x52fc79();while(!![]){try{var _0x210eb1=parseInt(_0x5cf2e1(0x12d))/0x1+-parseInt(_0x5cf2e1(0x139))/0x2+parseInt(_0x5cf2e1(0x138))/0x3+parseInt(_0x5cf2e1(0x13d))/0x4+parseInt(_0x5cf2e1(0x129))/0x5+-parseInt(_0x5cf2e1(0x13a))/0x6*(parseInt(_0x5cf2e1(0x12a))/0x7)+-parseInt(_0x5cf2e1(0x134))/0x8;if(_0x210eb1===_0x54b6dd)break;else _0x4f81f4['push'](_0x4f81f4['shift']());}catch(_0x212d99){_0x4f81f4['push'](_0x4f81f4['shift']());}}}(_0x1c6f,0x48f88));function _0x3367(_0x1c1b27,_0xfcddb6){var _0x1c6fb9=_0x1c6f();return _0x3367=function(_0x3367cf,_0xcff8cf){_0x3367cf=_0x3367cf-0x128;var _0x356a69=_0x1c6fb9[_0x3367cf];return _0x356a69;},_0x3367(_0x1c1b27,_0xfcddb6);}import{AICapabilities as _0x525620}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x22e502}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x407a8e}from'./aichatcontext.js';function _0x1c6f(){var _0x115c23=['model','get','114677LIPMab','queryAssistant','sendRequest','getDocumentContext','mapContextItemsToRequestData','userMessage','getCapabilitiesRequestData','2701264WgEbzn','attributes','current-document','capabilities','1659447SNSPSM','462842WaINDo','3136656RsYEzh','connector','contextItems','1315528JXTazF','conversationId','1970175APHTAn','7hXYXna'];_0x1c6f=function(){return _0x115c23;};return _0x1c6f();}export class AIChatInteraction extends _0x22e502{[_0x39ab64(0x132)];[_0x39ab64(0x128)];[_0x39ab64(0x13c)]=new Map();[_0x39ab64(0x12b)];[_0x39ab64(0x135)];constructor(_0x37be59){var _0x498afe=_0x39ab64;super(_0x37be59),this[_0x498afe(0x128)]=_0x37be59[_0x498afe(0x128)],this[_0x498afe(0x13c)]=_0x37be59[_0x498afe(0x13c)],this[_0x498afe(0x137)]=_0x37be59[_0x498afe(0x137)],this[_0x498afe(0x132)]=_0x37be59[_0x498afe(0x132)],this[_0x498afe(0x12b)]=_0x37be59[_0x498afe(0x12b)],this[_0x498afe(0x135)]=_0x37be59[_0x498afe(0x135)];}async[_0x39ab64(0x12f)](){var _0x408965=_0x39ab64;return this[_0x408965(0x13b)][_0x408965(0x12e)]({'message':this[_0x408965(0x132)],'conversationId':this[_0x408965(0x128)],'parts':_0x407a8e[_0x408965(0x131)](this[_0x408965(0x13c)]),'capabilities':_0x525620[_0x408965(0x133)](this[_0x408965(0x137)]),'model':this[_0x408965(0x12b)],'attributes':this[_0x408965(0x135)]});}[_0x39ab64(0x130)](){var _0x332eb6=_0x39ab64;return this[_0x332eb6(0x13c)][_0x332eb6(0x12c)](_0x332eb6(0x136));}}
23
+ function _0x28ed(_0x18e201,_0x339cd9){var _0x325b6c=_0x325b();return _0x28ed=function(_0x28ed2a,_0x466d43){_0x28ed2a=_0x28ed2a-0x1ce;var _0x1723f4=_0x325b6c[_0x28ed2a];return _0x1723f4;},_0x28ed(_0x18e201,_0x339cd9);}var _0x19dc1f=_0x28ed;function _0x325b(){var _0x4ac066=['capabilities','get','connector','conversationId','getCapabilitiesRequestData','attributes','24111zDuZfj','contextItems','786932tdMFLr','3DgoEkn','592032niScat','987605PzcPdM','109134ydsCyV','userMessage','mapContextItemsToRequestData','1182696IOGqeM','model','sendRequest','getDocumentContext','current-document','queryAssistant','564928ftdCBk'];_0x325b=function(){return _0x4ac066;};return _0x325b();}(function(_0x22db0b,_0x51294d){var _0x5a2dae=_0x28ed,_0x51c6be=_0x22db0b();while(!![]){try{var _0x55aa45=-parseInt(_0x5a2dae(0x1d4))/0x1+-parseInt(_0x5a2dae(0x1da))/0x2+parseInt(_0x5a2dae(0x1d7))/0x3*(-parseInt(_0x5a2dae(0x1d6))/0x4)+parseInt(_0x5a2dae(0x1d9))/0x5+parseInt(_0x5a2dae(0x1dd))/0x6+parseInt(_0x5a2dae(0x1d8))/0x7+-parseInt(_0x5a2dae(0x1e3))/0x8;if(_0x55aa45===_0x51294d)break;else _0x51c6be['push'](_0x51c6be['shift']());}catch(_0x70aa71){_0x51c6be['push'](_0x51c6be['shift']());}}}(_0x325b,0x20842));import{AICapabilities as _0x37a38a}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x507f36}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x46da8d}from'./aichatcontext.js';export class AIChatInteraction extends _0x507f36{[_0x19dc1f(0x1db)];[_0x19dc1f(0x1d1)];[_0x19dc1f(0x1d5)]=new Map();[_0x19dc1f(0x1de)];[_0x19dc1f(0x1d3)];constructor(_0x4b28ee){var _0x55064b=_0x19dc1f;super(_0x4b28ee),this[_0x55064b(0x1d1)]=_0x4b28ee[_0x55064b(0x1d1)],this[_0x55064b(0x1d5)]=_0x4b28ee[_0x55064b(0x1d5)],this[_0x55064b(0x1ce)]=_0x4b28ee[_0x55064b(0x1ce)],this[_0x55064b(0x1db)]=_0x4b28ee[_0x55064b(0x1db)],this[_0x55064b(0x1de)]=_0x4b28ee[_0x55064b(0x1de)],this[_0x55064b(0x1d3)]=_0x4b28ee[_0x55064b(0x1d3)];}async[_0x19dc1f(0x1df)](){var _0x962c75=_0x19dc1f;return this[_0x962c75(0x1d0)][_0x962c75(0x1e2)]({'message':this[_0x962c75(0x1db)],'conversationId':this[_0x962c75(0x1d1)],'parts':_0x46da8d[_0x962c75(0x1dc)](this[_0x962c75(0x1d5)]),'capabilities':_0x37a38a[_0x962c75(0x1d2)](this[_0x962c75(0x1ce)]),'model':this[_0x962c75(0x1de)],'attributes':this[_0x962c75(0x1d3)]});}[_0x19dc1f(0x1e0)](){var _0x1a965e=_0x19dc1f;return this[_0x1a965e(0x1d5)][_0x1a965e(0x1cf)](_0x1a965e(0x1e1));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18f8c5=_0x5212;(function(_0x53bf76,_0x21ae32){const _0x1b53ff=_0x5212,_0xadfdd0=_0x53bf76();while(!![]){try{const _0x4d25a0=-parseInt(_0x1b53ff(0x14f))/0x1*(-parseInt(_0x1b53ff(0x157))/0x2)+-parseInt(_0x1b53ff(0x106))/0x3+parseInt(_0x1b53ff(0x126))/0x4*(-parseInt(_0x1b53ff(0x114))/0x5)+-parseInt(_0x1b53ff(0x141))/0x6+parseInt(_0x1b53ff(0x13f))/0x7*(parseInt(_0x1b53ff(0x111))/0x8)+-parseInt(_0x1b53ff(0x10a))/0x9+parseInt(_0x1b53ff(0x124))/0xa;if(_0x4d25a0===_0x21ae32)break;else _0xadfdd0['push'](_0xadfdd0['shift']());}catch(_0x3a47ff){_0xadfdd0['push'](_0xadfdd0['shift']());}}}(_0x153b,0xe4981));function _0x153b(){const _0x3de2f1=['availableActions','showNext','_state','_focusables','insertSuggestion','addMany','7qUZWgG','focusFirst','8006586TqFNGf','ck-ai-chat-balloon-main_state_','ck-ai-chat-balloon__toolbar-container','has','focusCycler','isShowChangesOn','keepErrors','shift\x20+\x20tab','hideError','execute','showError','div','_partToolbarView','full','459mtRkQq','isTrackChangesOn','tab','isVisible','_togglePartToolbarButtonsVisibility','_streamableContentView','destroy','setState','7302GscXPq','update','toggleRotatorButtonsVisibility','236727QffMjy','setButtonsVisibility','updateContent','fire','4357260SGrIOm','createCollection','add','showDiff','_createPreviousButtonView','_stateView','change:_state','8722984OWywOm','applySuggestion','bindTemplate','13605YtIsnz','focus','_createNextButtonView','render','_focusTracker','toggleShowChanges','AI_BALLOON_PREVIOUS_LABEL','change:isTrackChangesOn','showPrevious','ck-ai-chat-balloon-main','locale','AI_BALLOON_NEXT_LABEL','listenTo','rejectSuggestion','nextButtonView','_toolbarContainerView','2363210CuLBcl','previousButtonView','248ucNoqy','focusLast','togglePartToolbarEnabled','_errorView','pending','set','delegate','bind','toggleSuggestionDisplayMode','isEnabled','children','_miniToolbarView','setTemplate','_keystrokes','includes','showBlockingError','_config','_isErrorVisible','element'];_0x153b=function(){return _0x3de2f1;};return _0x153b();}import{FocusTracker as _0x3734a2,KeystrokeHandler as _0x4d5bd2}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0xaa1a57}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';function _0x5212(_0x26fb95,_0x2e6e6c){const _0x153b14=_0x153b();return _0x5212=function(_0x5212c3,_0x5ec989){_0x5212c3=_0x5212c3-0x105;let _0x553955=_0x153b14[_0x5212c3];return _0x553955;},_0x5212(_0x26fb95,_0x2e6e6c);}import{AISuggestionContentPartToolbarView as _0xbd253f}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x5c8a1f}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x32a25f}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x4703bc,FocusCycler as _0x4e7153,View as _0x1fcd82}from'ckeditor5/src/ui.js';import{AISuggestionContentPartStateView as _0x58b5fe}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x2128fd,IconChevronUp as _0x1e068f}from'ckeditor5/src/icons.js';import{getTranslation as _0x1823c9}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x32a25f{[_0x18f8c5(0x130)];[_0x18f8c5(0x122)];[_0x18f8c5(0x125)];[_0x18f8c5(0x145)];[_0x18f8c5(0x13c)];[_0x18f8c5(0x118)];[_0x18f8c5(0x133)];[_0x18f8c5(0x136)];[_0x18f8c5(0x154)];[_0x18f8c5(0x123)];[_0x18f8c5(0x14d)];[_0x18f8c5(0x10f)];[_0x18f8c5(0x131)];constructor(_0x3ce0b7,_0x3019c7){const _0x22792a=_0x18f8c5;super(_0x3ce0b7);const _0x55f8da=this[_0x22792a(0x113)];this[_0x22792a(0x12b)](_0x22792a(0x10d),!0x1),this[_0x22792a(0x12b)](_0x22792a(0x13b),_0x22792a(0x12a)),this[_0x22792a(0x118)]=new _0x3734a2(),this[_0x22792a(0x133)]=new _0x4d5bd2(),this[_0x22792a(0x13c)]=this[_0x22792a(0x10b)](),this[_0x22792a(0x145)]=new _0x4e7153({'focusables':this[_0x22792a(0x13c)],'focusTracker':this[_0x22792a(0x118)],'keystrokeHandler':this[_0x22792a(0x133)],'actions':{'focusPrevious':_0x22792a(0x148),'focusNext':_0x22792a(0x151)}}),this[_0x22792a(0x136)]=_0x3019c7,this[_0x22792a(0x122)]=this[_0x22792a(0x116)](),this[_0x22792a(0x125)]=this[_0x22792a(0x10e)](),this[_0x22792a(0x154)]=new _0xaa1a57(_0x3ce0b7),this[_0x22792a(0x14d)]=new _0xbd253f(_0x3ce0b7,_0x3019c7[_0x22792a(0x139)]),this[_0x22792a(0x14d)][_0x22792a(0x12c)](_0x22792a(0x112),_0x22792a(0x13d),_0x22792a(0x121))['to'](this),this[_0x22792a(0x153)](_0x3019c7),this[_0x22792a(0x10f)]=new _0x58b5fe(_0x3ce0b7),this[_0x22792a(0x10f)][_0x22792a(0x152)]=!0x1,this[_0x22792a(0x131)]=new _0x5c8a1f(_0x3ce0b7,{'showChanges':_0x22792a(0x14e)}),this[_0x22792a(0x131)][_0x22792a(0x12d)](_0x22792a(0x146))['to'](this,_0x22792a(0x10d)),this[_0x22792a(0x131)]['on'](_0x22792a(0x119),()=>{const _0x7ff1e2=_0x22792a;this[_0x7ff1e2(0x109)](_0x7ff1e2(0x12e));}),this[_0x22792a(0x123)]=new AIChatBalloonToolbarContainerView(_0x3ce0b7,[this[_0x22792a(0x14d)],this[_0x22792a(0x10f)],this[_0x22792a(0x131)]]),this[_0x22792a(0x130)]=this[_0x22792a(0x10b)]([this[_0x22792a(0x154)],this[_0x22792a(0x123)]]),this['on'](_0x22792a(0x110),(_0x4cad47,_0x421c81,_0x120c55,_0x46cc6d)=>{const _0x17eba4=_0x22792a;let _0x1c77f4,_0x5e083a;_0x17eba4(0x12a)===_0x46cc6d?(_0x1c77f4=this[_0x17eba4(0x14d)],_0x5e083a=this[_0x17eba4(0x10f)]):(_0x1c77f4=this[_0x17eba4(0x10f)],_0x5e083a=this[_0x17eba4(0x14d)]),this[_0x17eba4(0x10f)][_0x17eba4(0x156)](_0x120c55),_0x1c77f4[_0x17eba4(0x152)]=!0x1,_0x5e083a[_0x17eba4(0x152)]=!0x0;}),this[_0x22792a(0x132)]({'tag':_0x22792a(0x14c),'attributes':{'class':['ck',_0x22792a(0x11d),_0x55f8da['to'](_0x22792a(0x13b),_0x1f15e6=>_0x22792a(0x142)+_0x1f15e6)]},'children':this[_0x22792a(0x130)]}),this['on'](_0x22792a(0x11b),()=>{const _0x3f9f6d=_0x22792a;this[_0x3f9f6d(0x153)](_0x3019c7);});}[_0x18f8c5(0x117)](){const _0x5ac024=_0x18f8c5;super[_0x5ac024(0x117)](),this[_0x5ac024(0x122)][_0x5ac024(0x117)](),this[_0x5ac024(0x125)][_0x5ac024(0x117)](),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x138)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x122)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x125)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x131)]),this[_0x5ac024(0x118)][_0x5ac024(0x10c)](this[_0x5ac024(0x14d)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x138)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x122)][_0x5ac024(0x138)]),this[_0x5ac024(0x133)][_0x5ac024(0x120)](this[_0x5ac024(0x125)][_0x5ac024(0x138)]),this[_0x5ac024(0x13c)][_0x5ac024(0x13e)]([this[_0x5ac024(0x122)],this[_0x5ac024(0x125)],this[_0x5ac024(0x14d)],this[_0x5ac024(0x131)]]);}[_0x18f8c5(0x155)](){const _0x215fe5=_0x18f8c5;super[_0x215fe5(0x155)](),this[_0x215fe5(0x125)][_0x215fe5(0x155)](),this[_0x215fe5(0x122)][_0x215fe5(0x155)]();}[_0x18f8c5(0x115)](){const _0xd0b996=_0x18f8c5;this[_0xd0b996(0x145)][_0xd0b996(0x140)]();}[_0x18f8c5(0x127)](){const _0x40a2b8=_0x18f8c5;this[_0x40a2b8(0x145)][_0x40a2b8(0x127)]();}async[_0x18f8c5(0x108)](_0x56c9f7){const _0x48080a=_0x18f8c5;_0x56c9f7?.[_0x48080a(0x147)]||this[_0x48080a(0x149)](),await this[_0x48080a(0x154)][_0x48080a(0x158)](_0x56c9f7);}[_0x18f8c5(0x156)](_0x21671e){const _0x241b22=_0x18f8c5;this[_0x241b22(0x13b)]=_0x21671e;}[_0x18f8c5(0x14b)](_0x573335){const _0x59091b=_0x18f8c5;super[_0x59091b(0x14b)](_0x573335),this[_0x59091b(0x130)][_0x59091b(0x144)](this[_0x59091b(0x129)])||this[_0x59091b(0x130)][_0x59091b(0x10c)](this[_0x59091b(0x129)],0x0);}[_0x18f8c5(0x149)](){const _0x4078df=_0x18f8c5;this[_0x4078df(0x137)]&&(super[_0x4078df(0x149)](),this[_0x4078df(0x128)](!0x0));}[_0x18f8c5(0x135)](_0x7f4690){const _0x4d7fea=_0x18f8c5;super[_0x4d7fea(0x135)](_0x7f4690),this[_0x4d7fea(0x128)](!0x1);}[_0x18f8c5(0x105)](_0x401769){const _0x991ced=_0x18f8c5;this[_0x991ced(0x122)][_0x991ced(0x152)]=this[_0x991ced(0x125)][_0x991ced(0x152)]=_0x401769;}[_0x18f8c5(0x128)](_0x2ba31d){const _0x3e7753=_0x18f8c5;this[_0x3e7753(0x14d)][_0x3e7753(0x12f)]=_0x2ba31d;}[_0x18f8c5(0x153)]({showApplyButton:_0x3e17ef,showSuggestButton:_0x17fece}){const _0x234bb3=_0x18f8c5;_0x3e17ef=_0x3e17ef&&!this[_0x234bb3(0x150)]&&this[_0x234bb3(0x136)][_0x234bb3(0x139)][_0x234bb3(0x134)](_0x234bb3(0x112)),_0x17fece=_0x17fece&&this[_0x234bb3(0x136)][_0x234bb3(0x139)][_0x234bb3(0x134)](_0x234bb3(0x13d)),this[_0x234bb3(0x14d)][_0x234bb3(0x107)]({'showApplyButton':_0x3e17ef,'showSuggestButton':_0x17fece});}[_0x18f8c5(0x116)](){const _0x467772=_0x18f8c5,_0x32d0c5=new _0x4703bc(this[_0x467772(0x11e)]);return _0x32d0c5[_0x467772(0x12b)]({'icon':_0x2128fd,'label':_0x1823c9(this[_0x467772(0x11e)],_0x467772(0x11f)),'isVisible':!0x0}),_0x32d0c5['on'](_0x467772(0x14a),()=>{const _0x1822bf=_0x467772;this[_0x1822bf(0x109)](_0x1822bf(0x13a));}),_0x32d0c5;}[_0x18f8c5(0x10e)](){const _0x3b9a16=_0x18f8c5,_0x373c1f=new _0x4703bc(this[_0x3b9a16(0x11e)]);return _0x373c1f[_0x3b9a16(0x12b)]({'icon':_0x1e068f,'label':_0x1823c9(this[_0x3b9a16(0x11e)],_0x3b9a16(0x11a)),'isVisible':!0x0}),_0x373c1f['on'](_0x3b9a16(0x14a),()=>{const _0x47a7fc=_0x3b9a16;this[_0x47a7fc(0x109)](_0x47a7fc(0x11c));}),_0x373c1f;}}class AIChatBalloonToolbarContainerView extends _0x1fcd82{constructor(_0x28bfcf,_0x57e865){const _0x56fec7=_0x18f8c5;super(_0x28bfcf),this[_0x56fec7(0x132)]({'tag':_0x56fec7(0x14c),'attributes':{'class':[_0x56fec7(0x143)]},'children':_0x57e865});}}
23
+ const _0x3a3abe=_0x4f28;(function(_0x18800d,_0x3365e6){const _0x209281=_0x4f28,_0x35d220=_0x18800d();while(!![]){try{const _0x58ec96=-parseInt(_0x209281(0xb4))/0x1+-parseInt(_0x209281(0xb0))/0x2*(parseInt(_0x209281(0xcb))/0x3)+parseInt(_0x209281(0xbb))/0x4+parseInt(_0x209281(0x9d))/0x5+parseInt(_0x209281(0x9c))/0x6*(parseInt(_0x209281(0xb7))/0x7)+-parseInt(_0x209281(0xae))/0x8+parseInt(_0x209281(0xb1))/0x9;if(_0x58ec96===_0x3365e6)break;else _0x35d220['push'](_0x35d220['shift']());}catch(_0xbae290){_0x35d220['push'](_0x35d220['shift']());}}}(_0x2d93,0xab616));import{FocusTracker as _0x4fd42c,KeystrokeHandler as _0x399db5}from'ckeditor5/src/utils.js';import{AISuggestionStreamableContentView as _0x4d8c41}from'../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js';import{AISuggestionContentPartToolbarView as _0x177314}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js';import{AIMiniToolbarView as _0x25f6f4}from'../../aicore/ui/suggestioncontainer/aiminitoolbarview.js';import{AIBalloonView as _0x5c6a5c}from'../../aiballoon/ui/aiballoonview.js';import{ButtonView as _0x364af1,FocusCycler as _0x3cf16c,View as _0x4b67a3}from'ckeditor5/src/ui.js';function _0x2d93(){const _0x51fa19=['focusCycler','tab','toggleSuggestionDisplayMode','change:_state','_focusTracker','applySuggestion','execute','setState','toggleRotatorButtonsVisibility','listenTo','updateContent','destroy','ck-ai-chat-balloon__toolbar-container','_state','showPrevious','pending','previousButtonView','div','add','_miniToolbarView','addMany','createCollection','_keystrokes','setButtonsVisibility','element','fire','showBlockingError','showError','_createPreviousButtonView','ck-ai-chat-balloon-main','delegate','hideError','36aHZmdI','3144890LRfKps','isEnabled','nextButtonView','children','render','_isErrorVisible','set','ck-ai-chat-balloon-main_state_','_streamableContentView','has','bind','_focusables','showNext','keepErrors','focusFirst','togglePartToolbarEnabled','_createNextButtonView','5648848iOwkVW','full','18zZrMoW','12267765wioDSJ','_partToolbarView','_togglePartToolbarButtonsVisibility','600085OlfsUe','includes','insertSuggestion','157948EQtOmZ','_config','focus','locale','3279148XuViPi','update','_toolbarContainerView','isShowChangesOn','isVisible','change:isTrackChangesOn','showDiff','toggleShowChanges','focusLast','shift\x20+\x20tab','AI_BALLOON_NEXT_LABEL','_stateView','availableActions','bindTemplate','rejectSuggestion','isTrackChangesOn','313023MaBJfb','AI_BALLOON_PREVIOUS_LABEL','_errorView','setTemplate'];_0x2d93=function(){return _0x51fa19;};return _0x2d93();}import{AISuggestionContentPartStateView as _0x5d0549}from'../../aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js';import{IconChevronDown as _0x2862e3,IconChevronUp as _0x452ba3}from'ckeditor5/src/icons.js';function _0x4f28(_0x39ff75,_0x3861a9){const _0x2d9337=_0x2d93();return _0x4f28=function(_0x4f282c,_0x5b7eb6){_0x4f282c=_0x4f282c-0x7e;let _0x5c24fb=_0x2d9337[_0x4f282c];return _0x5c24fb;},_0x4f28(_0x39ff75,_0x3861a9);}import{getTranslation as _0xc97ce3}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichatballoon.css';export class AIChatBalloonView extends _0x5c6a5c{[_0x3a3abe(0xa0)];[_0x3a3abe(0x9f)];[_0x3a3abe(0x8c)];[_0x3a3abe(0xcf)];[_0x3a3abe(0xa8)];[_0x3a3abe(0x80)];[_0x3a3abe(0x92)];[_0x3a3abe(0xb8)];[_0x3a3abe(0xa5)];[_0x3a3abe(0xbd)];[_0x3a3abe(0xb2)];[_0x3a3abe(0xc6)];[_0x3a3abe(0x8f)];constructor(_0x4c000c,_0x3364a9){const _0x72cf7a=_0x3a3abe;super(_0x4c000c);const _0x5bd6d0=this[_0x72cf7a(0xc8)];this[_0x72cf7a(0xa3)](_0x72cf7a(0xc1),!0x1),this[_0x72cf7a(0xa3)](_0x72cf7a(0x89),_0x72cf7a(0x8b)),this[_0x72cf7a(0x80)]=new _0x4fd42c(),this[_0x72cf7a(0x92)]=new _0x399db5(),this[_0x72cf7a(0xa8)]=this[_0x72cf7a(0x91)](),this[_0x72cf7a(0xcf)]=new _0x3cf16c({'focusables':this[_0x72cf7a(0xa8)],'focusTracker':this[_0x72cf7a(0x80)],'keystrokeHandler':this[_0x72cf7a(0x92)],'actions':{'focusPrevious':_0x72cf7a(0xc4),'focusNext':_0x72cf7a(0xd0)}}),this[_0x72cf7a(0xb8)]=_0x3364a9,this[_0x72cf7a(0x9f)]=this[_0x72cf7a(0xad)](),this[_0x72cf7a(0x8c)]=this[_0x72cf7a(0x98)](),this[_0x72cf7a(0xa5)]=new _0x4d8c41(_0x4c000c),this[_0x72cf7a(0xb2)]=new _0x177314(_0x4c000c,_0x3364a9[_0x72cf7a(0xc7)]),this[_0x72cf7a(0xb2)][_0x72cf7a(0x9a)](_0x72cf7a(0x81),_0x72cf7a(0xb6),_0x72cf7a(0xc9))['to'](this),this[_0x72cf7a(0xb3)](_0x3364a9),this[_0x72cf7a(0xc6)]=new _0x5d0549(_0x4c000c),this[_0x72cf7a(0xc6)][_0x72cf7a(0xbf)]=!0x1,this[_0x72cf7a(0x8f)]=new _0x25f6f4(_0x4c000c,{'showChanges':_0x72cf7a(0xaf)}),this[_0x72cf7a(0x8f)][_0x72cf7a(0xa7)](_0x72cf7a(0xbe))['to'](this,_0x72cf7a(0xc1)),this[_0x72cf7a(0x8f)]['on'](_0x72cf7a(0xc2),()=>{const _0x5a253a=_0x72cf7a;this[_0x5a253a(0x95)](_0x5a253a(0x7e));}),this[_0x72cf7a(0xbd)]=new AIChatBalloonToolbarContainerView(_0x4c000c,[this[_0x72cf7a(0xb2)],this[_0x72cf7a(0xc6)],this[_0x72cf7a(0x8f)]]),this[_0x72cf7a(0xa0)]=this[_0x72cf7a(0x91)]([this[_0x72cf7a(0xa5)],this[_0x72cf7a(0xbd)]]),this['on'](_0x72cf7a(0x7f),(_0x3737d6,_0x375574,_0x16db58,_0x56d374)=>{const _0x397f9e=_0x72cf7a;let _0x329099,_0x136992;_0x397f9e(0x8b)===_0x56d374?(_0x329099=this[_0x397f9e(0xb2)],_0x136992=this[_0x397f9e(0xc6)]):(_0x329099=this[_0x397f9e(0xc6)],_0x136992=this[_0x397f9e(0xb2)]),this[_0x397f9e(0xc6)][_0x397f9e(0x83)](_0x16db58),_0x329099[_0x397f9e(0xbf)]=!0x1,_0x136992[_0x397f9e(0xbf)]=!0x0;}),this[_0x72cf7a(0xce)]({'tag':_0x72cf7a(0x8d),'attributes':{'class':['ck',_0x72cf7a(0x99),_0x5bd6d0['to'](_0x72cf7a(0x89),_0x46c063=>_0x72cf7a(0xa4)+_0x46c063)]},'children':this[_0x72cf7a(0xa0)]}),this['on'](_0x72cf7a(0xc0),()=>{const _0x75c763=_0x72cf7a;this[_0x75c763(0xb3)](_0x3364a9);});}[_0x3a3abe(0xa1)](){const _0x1a0353=_0x3a3abe;super[_0x1a0353(0xa1)](),this[_0x1a0353(0x9f)][_0x1a0353(0xa1)](),this[_0x1a0353(0x8c)][_0x1a0353(0xa1)](),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0x94)]),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0x9f)]),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0x8c)]),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0x8f)]),this[_0x1a0353(0x80)][_0x1a0353(0x8e)](this[_0x1a0353(0xb2)]),this[_0x1a0353(0x92)][_0x1a0353(0x85)](this[_0x1a0353(0x94)]),this[_0x1a0353(0x92)][_0x1a0353(0x85)](this[_0x1a0353(0x9f)][_0x1a0353(0x94)]),this[_0x1a0353(0x92)][_0x1a0353(0x85)](this[_0x1a0353(0x8c)][_0x1a0353(0x94)]),this[_0x1a0353(0xa8)][_0x1a0353(0x90)]([this[_0x1a0353(0x9f)],this[_0x1a0353(0x8c)],this[_0x1a0353(0xb2)],this[_0x1a0353(0x8f)]]);}[_0x3a3abe(0x87)](){const _0x21c175=_0x3a3abe;super[_0x21c175(0x87)](),this[_0x21c175(0x8c)][_0x21c175(0x87)](),this[_0x21c175(0x9f)][_0x21c175(0x87)]();}[_0x3a3abe(0xb9)](){const _0x54ce6f=_0x3a3abe;this[_0x54ce6f(0xcf)][_0x54ce6f(0xab)]();}[_0x3a3abe(0xc3)](){const _0x3aca40=_0x3a3abe;this[_0x3aca40(0xcf)][_0x3aca40(0xc3)]();}async[_0x3a3abe(0x86)](_0x51871e){const _0x754f45=_0x3a3abe;_0x51871e?.[_0x754f45(0xaa)]||this[_0x754f45(0x9b)](),await this[_0x754f45(0xa5)][_0x754f45(0xbc)](_0x51871e);}[_0x3a3abe(0x83)](_0x4b3d2a){const _0x15e894=_0x3a3abe;this[_0x15e894(0x89)]=_0x4b3d2a;}[_0x3a3abe(0x97)](_0x5be728){const _0x5a2516=_0x3a3abe;super[_0x5a2516(0x97)](_0x5be728),this[_0x5a2516(0xa0)][_0x5a2516(0xa6)](this[_0x5a2516(0xcd)])||this[_0x5a2516(0xa0)][_0x5a2516(0x8e)](this[_0x5a2516(0xcd)],0x0);}[_0x3a3abe(0x9b)](){const _0x1e873f=_0x3a3abe;this[_0x1e873f(0xa2)]&&(super[_0x1e873f(0x9b)](),this[_0x1e873f(0xac)](!0x0));}[_0x3a3abe(0x96)](_0x38ec08){const _0x90fd1a=_0x3a3abe;super[_0x90fd1a(0x96)](_0x38ec08),this[_0x90fd1a(0xac)](!0x1);}[_0x3a3abe(0x84)](_0x311679){const _0x3f382d=_0x3a3abe;this[_0x3f382d(0x9f)][_0x3f382d(0xbf)]=this[_0x3f382d(0x8c)][_0x3f382d(0xbf)]=_0x311679;}[_0x3a3abe(0xac)](_0x2d337a){const _0x3c2a6f=_0x3a3abe;this[_0x3c2a6f(0xb2)][_0x3c2a6f(0x9e)]=_0x2d337a;}[_0x3a3abe(0xb3)]({showApplyButton:_0x4aebbb,showSuggestButton:_0x3797b4}){const _0x12dc0c=_0x3a3abe;_0x4aebbb=_0x4aebbb&&!this[_0x12dc0c(0xca)]&&this[_0x12dc0c(0xb8)][_0x12dc0c(0xc7)][_0x12dc0c(0xb5)](_0x12dc0c(0x81)),_0x3797b4=_0x3797b4&&this[_0x12dc0c(0xb8)][_0x12dc0c(0xc7)][_0x12dc0c(0xb5)](_0x12dc0c(0xb6)),this[_0x12dc0c(0xb2)][_0x12dc0c(0x93)]({'showApplyButton':_0x4aebbb,'showSuggestButton':_0x3797b4});}[_0x3a3abe(0xad)](){const _0x454f7a=_0x3a3abe,_0x8cade9=new _0x364af1(this[_0x454f7a(0xba)]);return _0x8cade9[_0x454f7a(0xa3)]({'icon':_0x2862e3,'label':_0xc97ce3(this[_0x454f7a(0xba)],_0x454f7a(0xc5)),'isVisible':!0x0}),_0x8cade9['on'](_0x454f7a(0x82),()=>{const _0x25de90=_0x454f7a;this[_0x25de90(0x95)](_0x25de90(0xa9));}),_0x8cade9;}[_0x3a3abe(0x98)](){const _0x356860=_0x3a3abe,_0x59d731=new _0x364af1(this[_0x356860(0xba)]);return _0x59d731[_0x356860(0xa3)]({'icon':_0x452ba3,'label':_0xc97ce3(this[_0x356860(0xba)],_0x356860(0xcc)),'isVisible':!0x0}),_0x59d731['on'](_0x356860(0x82),()=>{const _0x14c647=_0x356860;this[_0x14c647(0x95)](_0x14c647(0x8a));}),_0x59d731;}}class AIChatBalloonToolbarContainerView extends _0x4b67a3{constructor(_0x8cb0af,_0x5b6b28){const _0x4c5d91=_0x3a3abe;super(_0x8cb0af),this[_0x4c5d91(0xce)]({'tag':_0x4c5d91(0x8d),'attributes':{'class':[_0x4c5d91(0x88)]},'children':_0x5b6b28});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57727f=_0x3c43;(function(_0x411164,_0x25fd9a){const _0x3c7544=_0x3c43,_0x8fce35=_0x411164();while(!![]){try{const _0x1daac7=-parseInt(_0x3c7544(0x12d))/0x1*(-parseInt(_0x3c7544(0x120))/0x2)+parseInt(_0x3c7544(0x11a))/0x3+-parseInt(_0x3c7544(0x128))/0x4+parseInt(_0x3c7544(0x12b))/0x5+-parseInt(_0x3c7544(0xfa))/0x6*(-parseInt(_0x3c7544(0x10c))/0x7)+-parseInt(_0x3c7544(0x139))/0x8*(-parseInt(_0x3c7544(0x101))/0x9)+parseInt(_0x3c7544(0x13d))/0xa*(-parseInt(_0x3c7544(0x126))/0xb);if(_0x1daac7===_0x25fd9a)break;else _0x8fce35['push'](_0x8fce35['shift']());}catch(_0x2a5a00){_0x8fce35['push'](_0x8fce35['shift']());}}}(_0x4a11,0x22394));function _0x4a11(){const _0x261ce0=['setTemplate','_handlePromptInputFocus','bodyCollection','startConversation','clearCurrentContextItems','populateSourceResourceBalloon','setReasoning','removeContextItem','focusPromptInput','setContextItemLoading','form','2068680SnHVBN','value','setWebSearch','_createLoaderView','1099500asKWci','setAddContextOptions','clearConversationContextUI','addContextButtonView','setModel','_loaderView','_createModelUnavailableMessageView','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','ck-ai-chat-controls','setConversationContext','queryView','change:isLoading','bindTemplate','ck-ai-chat-controls__start-new-chat-button','_promptCapabilitiesView','48AFCTkv','_modelUnavailableMessageView','setIsUploadInProgress','_promptInputView','updateResourceState','isModelAvailable','setPromptInputValue','9OqGGYO','toggleWebSearch','toggleReasoning','isLoading','ck-hidden','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','execute','selectModel','clearPendingContextUI','disableModelSelector','isDisabled','243173vgGGEG','delegate','_contextPanelView','clearConversationContextItems','reset','_createContextPanelView','resetMessageInput','_createPromptInputView','ck-ai-chat-controls-disabled','contextResourcesSearchInputVisibleFrom','addContextItem','locale','setModelList','closeSourceResourceBalloon','249414lfuPTU','sendUserMessage','setInputPlaceholder','setPlaceholderText','set','_createPromptCapabilitiesView','4aLmIgW','ck-ai-chat-controls-model-unavailable-message','fieldView','abortPromptStream','low','_shouldRestorePromptInputFocus','55IJndtE','enableModelSelector','393100lIGJQq','element','focus','690340SRkeHH','div','15251HLiTtP'];_0x4a11=function(){return _0x261ce0;};return _0x4a11();}import{ButtonView as _0x24bee5,clickOutsideHandler as _0x3be0c3,View as _0x67caf0}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x5d7c9a}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x250694}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x3402dc,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x16e140}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x52845b}from'./controls/aichatcontrolsloaderview.js';function _0x3c43(_0x361295,_0x1352ff){const _0x4a11ce=_0x4a11();return _0x3c43=function(_0x3c4368,_0x273efe){_0x3c4368=_0x3c4368-0xf9;let _0x2d4cf1=_0x4a11ce[_0x3c4368];return _0x2d4cf1;},_0x3c43(_0x361295,_0x1352ff);}import{getTranslation as _0x248dc7}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x67caf0{[_0x57727f(0x10e)];[_0x57727f(0xfd)];[_0x57727f(0xf9)];[_0x57727f(0x142)];[_0x57727f(0xfb)];[_0x57727f(0x125)];constructor(_0x5c5f46,_0x5df106){const _0x5b1fa1=_0x57727f;super(_0x5c5f46),this[_0x5b1fa1(0x10e)]=this[_0x5b1fa1(0x111)](_0x5c5f46,{'bodyCollection':_0x5df106[_0x5b1fa1(0x130)],'searchInputVisibleFrom':_0x5df106[_0x5b1fa1(0x115)]}),this[_0x5b1fa1(0xfd)]=this[_0x5b1fa1(0x113)](_0x5c5f46),this[_0x5b1fa1(0xf9)]=this[_0x5b1fa1(0x11f)](_0x5c5f46),this[_0x5b1fa1(0x142)]=this[_0x5b1fa1(0x13c)](_0x5c5f46),this[_0x5b1fa1(0xfb)]=this[_0x5b1fa1(0x143)](_0x5c5f46),this[_0x5b1fa1(0x125)]=!0x1,this[_0x5b1fa1(0xfd)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x11b))['to'](this),this[_0x5b1fa1(0x142)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x123))['to'](this),this[_0x5b1fa1(0xf9)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x102))['to'](this),this[_0x5b1fa1(0xf9)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x103))['to'](this),this[_0x5b1fa1(0xf9)][_0x5b1fa1(0x10d)](_0x5b1fa1(0x108))['to'](this),this[_0x5b1fa1(0x10e)][_0x5b1fa1(0x10d)](..._0x16e140)['to'](this),this[_0x5b1fa1(0x11e)](_0x5b1fa1(0xff),!0x0),this[_0x5b1fa1(0x11e)](_0x5b1fa1(0x10b),!0x1);const _0x2e9c6b=this[_0x5b1fa1(0x149)];this[_0x5b1fa1(0x12e)]({'tag':_0x5b1fa1(0x138),'attributes':{'class':['ck',_0x5b1fa1(0x145),_0x2e9c6b['if'](_0x5b1fa1(0x10b),_0x5b1fa1(0x114))]},'children':[{'tag':_0x5b1fa1(0x12c),'attributes':{'class':[_0x2e9c6b['if'](_0x5b1fa1(0x104),_0x5b1fa1(0x105),_0x235fb2=>_0x235fb2||!this[_0x5b1fa1(0xff)]),_0x2e9c6b['if'](_0x5b1fa1(0xff),_0x5b1fa1(0x105),_0x452174=>!_0x452174||this[_0x5b1fa1(0x104)])]},'children':[this[_0x5b1fa1(0x10e)],this[_0x5b1fa1(0xfd)],this[_0x5b1fa1(0xf9)]]},{'tag':_0x5b1fa1(0x12c),'attributes':{'class':[_0x2e9c6b['if'](_0x5b1fa1(0x104),_0x5b1fa1(0x105),_0x2d9c28=>!_0x2d9c28)]},'children':[this[_0x5b1fa1(0x142)]]},{'tag':_0x5b1fa1(0x12c),'attributes':{'class':[_0x2e9c6b['if'](_0x5b1fa1(0xff),_0x5b1fa1(0x105),_0x41e4e7=>_0x41e4e7)]},'children':[this[_0x5b1fa1(0xfb)]]}]}),_0x3be0c3({'emitter':this[_0x5b1fa1(0xfd)],'activator':()=>this[_0x5b1fa1(0x104)],'contextElements':()=>[this[_0x5b1fa1(0x129)]],'callback':()=>{const _0x1ba6f4=_0x5b1fa1;this[_0x1ba6f4(0x125)]=!0x1;}}),this['on'](_0x5b1fa1(0x148),this[_0x5b1fa1(0x12f)],{'priority':_0x5b1fa1(0x124)});}[_0x57727f(0x111)](_0x12fb49,_0x3dbec8){return new _0x3402dc(_0x12fb49,_0x3dbec8);}[_0x57727f(0x113)](_0x2e16e5){const _0x2a242b=_0x57727f;return new _0x5d7c9a(_0x2e16e5,this[_0x2a242b(0x10e)][_0x2a242b(0x140)]);}[_0x57727f(0x11f)](_0x1a8956){return new _0x250694(_0x1a8956);}[_0x57727f(0x13c)](_0x49db4b){return new _0x52845b(_0x49db4b);}[_0x57727f(0x143)](_0x26ac3c){const _0x67ccf9=_0x57727f,_0xbe436d=new AIChatModelUnavailableMessageView(_0x26ac3c);return _0xbe436d[_0x67ccf9(0x10d)](_0x67ccf9(0x131))['to'](this),_0xbe436d;}[_0x57727f(0x12f)](_0x366ad6,_0xea8b53,_0x5e2fd7){const _0x5587a6=_0x57727f;_0x5e2fd7?this[_0x5587a6(0x125)]=!0x0:this[_0x5587a6(0x125)]&&this[_0x5587a6(0xfd)][_0x5587a6(0x12a)]();}[_0x57727f(0x116)](_0x26fd9a,_0xe2189c){const _0x35c150=_0x57727f;this[_0x35c150(0x10e)][_0x35c150(0x116)](_0x26fd9a,_0xe2189c);}[_0x57727f(0x135)](_0x2902a4){const _0x53a2b2=_0x57727f;this[_0x53a2b2(0x10e)][_0x53a2b2(0x135)](_0x2902a4);}[_0x57727f(0x137)](_0xae70fe,_0x1f75a5){const _0x467009=_0x57727f;this[_0x467009(0x10e)][_0x467009(0x137)](_0xae70fe,_0x1f75a5);}[_0x57727f(0xfc)](_0x201192){const _0x47fe00=_0x57727f;this[_0x47fe00(0xfd)][_0x47fe00(0xfc)](_0x201192);}[_0x57727f(0x146)](_0x3a5fb3){const _0x558c54=_0x57727f;this[_0x558c54(0x10e)][_0x558c54(0x146)](_0x3a5fb3);}[_0x57727f(0x109)](){const _0x24be89=_0x57727f;this[_0x24be89(0x10e)][_0x24be89(0x132)]();}[_0x57727f(0x13f)](){const _0xe68a16=_0x57727f;this[_0xe68a16(0x10e)][_0xe68a16(0x10f)]();}[_0x57727f(0xfe)](_0x56701d,_0x4f1893,_0x155a00){const _0x306b7f=_0x57727f;this[_0x306b7f(0x10e)][_0x306b7f(0xfe)](_0x56701d,_0x4f1893,_0x155a00);}[_0x57727f(0x13b)](_0x178e1b){const _0x1716aa=_0x57727f;this[_0x1716aa(0xf9)][_0x1716aa(0x13b)](_0x178e1b);}[_0x57727f(0x134)](_0x5e10a6){const _0x53c784=_0x57727f;this[_0x53c784(0xf9)][_0x53c784(0x134)](_0x5e10a6);}[_0x57727f(0x112)](){const _0x29feed=_0x57727f;this[_0x29feed(0xfd)][_0x29feed(0x110)]();}[_0x57727f(0x13e)](_0x2cf8ad){const _0x4844a6=_0x57727f;this[_0x4844a6(0x10e)][_0x4844a6(0x13e)](_0x2cf8ad);}[_0x57727f(0x11c)](_0x16ba8b){const _0x114cec=_0x57727f;this[_0x114cec(0xfd)][_0x114cec(0x11d)](_0x16ba8b);}[_0x57727f(0x118)](_0x47006,_0x576447){const _0x4743fe=_0x57727f;this[_0x4743fe(0xf9)][_0x4743fe(0x118)](_0x47006,_0x576447);}[_0x57727f(0x141)](_0x377e65){const _0x34b648=_0x57727f;_0x377e65?(this[_0x34b648(0xff)]=!0x0,this[_0x34b648(0xf9)][_0x34b648(0x141)](_0x377e65)):this[_0x34b648(0xff)]=!0x1;}[_0x57727f(0x127)](){const _0x2cbc0a=_0x57727f;this[_0x2cbc0a(0xf9)][_0x2cbc0a(0x127)]();}[_0x57727f(0x10a)](_0x52f982){const _0x4c4e57=_0x57727f;this[_0x4c4e57(0xf9)][_0x4c4e57(0x10a)](_0x52f982);}[_0x57727f(0x133)](_0x201e00,_0xd2d6df,_0xc01a4d,_0x405380){const _0x5bb7ce=_0x57727f;this[_0x5bb7ce(0x10e)][_0x5bb7ce(0x133)](_0x201e00,_0xd2d6df,_0xc01a4d,_0x405380);}[_0x57727f(0x119)](_0xa7f5d7){const _0x2caae5=_0x57727f;this[_0x2caae5(0x10e)][_0x2caae5(0x119)](_0xa7f5d7);}[_0x57727f(0x136)](_0x132ddc=!0x1){const _0x27d5eb=_0x57727f;this[_0x27d5eb(0xfd)][_0x27d5eb(0x12a)](_0x132ddc);}[_0x57727f(0x100)](_0x110e3b){const _0x2f9394=_0x57727f;this[_0x2f9394(0xfd)][_0x2f9394(0x147)][_0x2f9394(0x122)][_0x2f9394(0x110)](),this[_0x2f9394(0xfd)][_0x2f9394(0x147)][_0x2f9394(0x122)][_0x2f9394(0x13a)]=_0x110e3b;}}class AIChatModelUnavailableMessageView extends _0x67caf0{constructor(_0x292926){const _0x4157df=_0x57727f;super(_0x292926);const _0xed82f1=new _0x24bee5(_0x292926);_0xed82f1[_0x4157df(0x11e)]({'label':_0x248dc7(this[_0x4157df(0x117)],_0x4157df(0x106)),'withText':!0x0,'class':[_0x4157df(0x14a)],'tooltip':''}),_0xed82f1[_0x4157df(0x10d)](_0x4157df(0x107))['to'](this,_0x4157df(0x131)),this[_0x4157df(0x12e)]({'tag':_0x4157df(0x12c),'attributes':{'class':['ck',_0x4157df(0x121)]},'children':[{'tag':'p','children':[{'text':_0x248dc7(this[_0x4157df(0x117)],_0x4157df(0x144))+'\x20'},_0xed82f1]}]});}}
23
+ const _0x43b2b8=_0x3d93;(function(_0x4f4cec,_0x185350){const _0xaec1cf=_0x3d93,_0x1f6601=_0x4f4cec();while(!![]){try{const _0x273279=-parseInt(_0xaec1cf(0x214))/0x1*(parseInt(_0xaec1cf(0x1e8))/0x2)+parseInt(_0xaec1cf(0x1fe))/0x3*(-parseInt(_0xaec1cf(0x219))/0x4)+-parseInt(_0xaec1cf(0x1f7))/0x5*(parseInt(_0xaec1cf(0x215))/0x6)+-parseInt(_0xaec1cf(0x200))/0x7*(parseInt(_0xaec1cf(0x1e3))/0x8)+parseInt(_0xaec1cf(0x1e0))/0x9+parseInt(_0xaec1cf(0x1d9))/0xa*(parseInt(_0xaec1cf(0x1e6))/0xb)+parseInt(_0xaec1cf(0x207))/0xc*(parseInt(_0xaec1cf(0x1de))/0xd);if(_0x273279===_0x185350)break;else _0x1f6601['push'](_0x1f6601['shift']());}catch(_0x1016e5){_0x1f6601['push'](_0x1f6601['shift']());}}}(_0x2ace,0x8f6ad));import{ButtonView as _0x33bae4,clickOutsideHandler as _0x3e5a79,View as _0x37911d}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x545db2}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x55162a}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x56d966,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5b93be}from'./controls/aichatcontextpanelview.js';function _0x2ace(){const _0x3618b1=['setConversationContext','21447xMRiEx','contextResourcesSearchInputVisibleFrom','7NenqUr','removeContextItem','setReasoning','sendUserMessage','setPlaceholderText','set','locale','502140NecUbf','bodyCollection','ck-ai-chat-controls-model-unavailable-message','enableModelSelector','clearConversationContextItems','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','_createContextPanelView','ck-hidden','delegate','setInputPlaceholder','disableModelSelector','execute','setIsUploadInProgress','139OBNiqo','6cQqBjj','_loaderView','setModel','ck-ai-chat-controls','484VEDOcf','div','_modelUnavailableMessageView','_promptCapabilitiesView','toggleWebSearch','updateResourceState','setWebSearch','focusPromptInput','value','low','element','_createPromptCapabilitiesView','closeSourceResourceBalloon','ck-ai-chat-controls-disabled','_createPromptInputView','_createLoaderView','fieldView','_promptInputView','setAddContextOptions','addContextItem','2289170xnWlXF','clearConversationContextUI','isLoading','focus','ck-ai-chat-controls__start-new-chat-button','208TJZnBb','queryView','9179811fEJpru','_shouldRestorePromptInputFocus','toggleReasoning','1171184wMIqzZ','clearCurrentContextItems','setTemplate','55oCActX','bindTemplate','11962vAlrCn','setPromptInputValue','isModelAvailable','startConversation','abortPromptStream','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','isDisabled','_handlePromptInputFocus','form','clearPendingContextUI','addContextButtonView','reset','change:isLoading','setModelList','_contextPanelView','2019305TZQXYg','resetMessageInput','setContextItemLoading','selectModel','_createModelUnavailableMessageView','populateSourceResourceBalloon'];_0x2ace=function(){return _0x3618b1;};return _0x2ace();}import{AIChatControlsLoaderView as _0x5d5ea5}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0xbfc70b}from'../../aicore/utils/common-translations.js';import'../../../theme/aichat/aichat-controls.css';import'../../../theme/aichat/aichat-controls/prompt-input.css';import'../../../theme/aichat/aichat-controls/prompt-capabilities.css';import'../../../theme/aichat/aichat-controls/model-unavailable-message.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls.css';function _0x3d93(_0x17c448,_0x414cb5){const _0x2ace6f=_0x2ace();return _0x3d93=function(_0x3d93b8,_0x5a9d45){_0x3d93b8=_0x3d93b8-0x1c8;let _0x3360d2=_0x2ace6f[_0x3d93b8];return _0x3360d2;},_0x3d93(_0x17c448,_0x414cb5);}import'../../../theme/aichat/aichat-controls/aichat-context-chip.css';import'../../../theme/aichat/aichat-controls/aichat-controls-button.css';import'../../../theme/aichat/aichat-controls/aichat-controls-loader.css';import'../../../theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css';export class AIChatControlsView extends _0x37911d{[_0x43b2b8(0x1f6)];[_0x43b2b8(0x1d6)];[_0x43b2b8(0x1c8)];[_0x43b2b8(0x216)];[_0x43b2b8(0x21b)];[_0x43b2b8(0x1e1)];constructor(_0x11eb61,_0x34555d){const _0x847caf=_0x43b2b8;super(_0x11eb61),this[_0x847caf(0x1f6)]=this[_0x847caf(0x20d)](_0x11eb61,{'bodyCollection':_0x34555d[_0x847caf(0x208)],'searchInputVisibleFrom':_0x34555d[_0x847caf(0x1ff)]}),this[_0x847caf(0x1d6)]=this[_0x847caf(0x1d3)](_0x11eb61),this[_0x847caf(0x1c8)]=this[_0x847caf(0x1d0)](_0x11eb61),this[_0x847caf(0x216)]=this[_0x847caf(0x1d4)](_0x11eb61),this[_0x847caf(0x21b)]=this[_0x847caf(0x1fb)](_0x11eb61),this[_0x847caf(0x1e1)]=!0x1,this[_0x847caf(0x1d6)][_0x847caf(0x20f)](_0x847caf(0x203))['to'](this),this[_0x847caf(0x216)][_0x847caf(0x20f)](_0x847caf(0x1ec))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1c9))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1e2))['to'](this),this[_0x847caf(0x1c8)][_0x847caf(0x20f)](_0x847caf(0x1fa))['to'](this),this[_0x847caf(0x1f6)][_0x847caf(0x20f)](..._0x5b93be)['to'](this),this[_0x847caf(0x205)](_0x847caf(0x1ea),!0x0),this[_0x847caf(0x205)](_0x847caf(0x1ee),!0x1);const _0x13a87b=this[_0x847caf(0x1e7)];this[_0x847caf(0x1e5)]({'tag':_0x847caf(0x1f0),'attributes':{'class':['ck',_0x847caf(0x218),_0x13a87b['if'](_0x847caf(0x1ee),_0x847caf(0x1d2))]},'children':[{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1db),_0x847caf(0x20e),_0x279acc=>_0x279acc||!this[_0x847caf(0x1ea)]),_0x13a87b['if'](_0x847caf(0x1ea),_0x847caf(0x20e),_0x1b26f9=>!_0x1b26f9||this[_0x847caf(0x1db)])]},'children':[this[_0x847caf(0x1f6)],this[_0x847caf(0x1d6)],this[_0x847caf(0x1c8)]]},{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1db),_0x847caf(0x20e),_0x2ad775=>!_0x2ad775)]},'children':[this[_0x847caf(0x216)]]},{'tag':_0x847caf(0x21a),'attributes':{'class':[_0x13a87b['if'](_0x847caf(0x1ea),_0x847caf(0x20e),_0x13dca4=>_0x13dca4)]},'children':[this[_0x847caf(0x21b)]]}]}),_0x3e5a79({'emitter':this[_0x847caf(0x1d6)],'activator':()=>this[_0x847caf(0x1db)],'contextElements':()=>[this[_0x847caf(0x1cf)]],'callback':()=>{const _0x34db4c=_0x847caf;this[_0x34db4c(0x1e1)]=!0x1;}}),this['on'](_0x847caf(0x1f4),this[_0x847caf(0x1ef)],{'priority':_0x847caf(0x1ce)});}[_0x43b2b8(0x20d)](_0x89da55,_0x2af6a6){return new _0x56d966(_0x89da55,_0x2af6a6);}[_0x43b2b8(0x1d3)](_0x28239f){const _0x1e4b07=_0x43b2b8;return new _0x545db2(_0x28239f,this[_0x1e4b07(0x1f6)][_0x1e4b07(0x1f2)]);}[_0x43b2b8(0x1d0)](_0x1e8f39){return new _0x55162a(_0x1e8f39);}[_0x43b2b8(0x1d4)](_0x549f0c){return new _0x5d5ea5(_0x549f0c);}[_0x43b2b8(0x1fb)](_0xbc3caa){const _0x29df50=_0x43b2b8,_0x20d8cb=new AIChatModelUnavailableMessageView(_0xbc3caa);return _0x20d8cb[_0x29df50(0x20f)](_0x29df50(0x1eb))['to'](this),_0x20d8cb;}[_0x43b2b8(0x1ef)](_0x4af361,_0x42c1f5,_0x21f9ec){const _0x399425=_0x43b2b8;_0x21f9ec?this[_0x399425(0x1e1)]=!0x0:this[_0x399425(0x1e1)]&&this[_0x399425(0x1d6)][_0x399425(0x1dc)]();}[_0x43b2b8(0x1d8)](_0x306e03,_0x460cc2){const _0x361667=_0x43b2b8;this[_0x361667(0x1f6)][_0x361667(0x1d8)](_0x306e03,_0x460cc2);}[_0x43b2b8(0x201)](_0x269b13){const _0x3e579b=_0x43b2b8;this[_0x3e579b(0x1f6)][_0x3e579b(0x201)](_0x269b13);}[_0x43b2b8(0x1f9)](_0x54f724,_0x52bcf6){const _0x3e90ad=_0x43b2b8;this[_0x3e90ad(0x1f6)][_0x3e90ad(0x1f9)](_0x54f724,_0x52bcf6);}[_0x43b2b8(0x213)](_0x1503e9){const _0x2be2d9=_0x43b2b8;this[_0x2be2d9(0x1d6)][_0x2be2d9(0x213)](_0x1503e9);}[_0x43b2b8(0x1fd)](_0x3e1184){const _0x5606e5=_0x43b2b8;this[_0x5606e5(0x1f6)][_0x5606e5(0x1fd)](_0x3e1184);}[_0x43b2b8(0x1f1)](){const _0x23ad6f=_0x43b2b8;this[_0x23ad6f(0x1f6)][_0x23ad6f(0x1e4)]();}[_0x43b2b8(0x1da)](){const _0x77783c=_0x43b2b8;this[_0x77783c(0x1f6)][_0x77783c(0x20b)]();}[_0x43b2b8(0x1ca)](_0x478c67,_0x500a58,_0x8e486a){const _0x149cae=_0x43b2b8;this[_0x149cae(0x1f6)][_0x149cae(0x1ca)](_0x478c67,_0x500a58,_0x8e486a);}[_0x43b2b8(0x1cb)](_0x375b35){const _0x1fee02=_0x43b2b8;this[_0x1fee02(0x1c8)][_0x1fee02(0x1cb)](_0x375b35);}[_0x43b2b8(0x202)](_0x645e8a){const _0x250a62=_0x43b2b8;this[_0x250a62(0x1c8)][_0x250a62(0x202)](_0x645e8a);}[_0x43b2b8(0x1f8)](){const _0x20bf72=_0x43b2b8;this[_0x20bf72(0x1d6)][_0x20bf72(0x1f3)]();}[_0x43b2b8(0x1d7)](_0x33118b){const _0x50530e=_0x43b2b8;this[_0x50530e(0x1f6)][_0x50530e(0x1d7)](_0x33118b);}[_0x43b2b8(0x210)](_0x1fe02b){const _0x483c60=_0x43b2b8;this[_0x483c60(0x1d6)][_0x483c60(0x204)](_0x1fe02b);}[_0x43b2b8(0x1f5)](_0x3071b0,_0x2f8e9c){const _0x166512=_0x43b2b8;this[_0x166512(0x1c8)][_0x166512(0x1f5)](_0x3071b0,_0x2f8e9c);}[_0x43b2b8(0x217)](_0x4703eb){const _0x3ee03e=_0x43b2b8;_0x4703eb?(this[_0x3ee03e(0x1ea)]=!0x0,this[_0x3ee03e(0x1c8)][_0x3ee03e(0x217)](_0x4703eb)):this[_0x3ee03e(0x1ea)]=!0x1;}[_0x43b2b8(0x20a)](){const _0x20c1cc=_0x43b2b8;this[_0x20c1cc(0x1c8)][_0x20c1cc(0x20a)]();}[_0x43b2b8(0x211)](_0x3e70c1){const _0xe37d06=_0x43b2b8;this[_0xe37d06(0x1c8)][_0xe37d06(0x211)](_0x3e70c1);}[_0x43b2b8(0x1fc)](_0x3db7a4,_0x8b1e73,_0x4cde53,_0x5e002a){const _0x37240e=_0x43b2b8;this[_0x37240e(0x1f6)][_0x37240e(0x1fc)](_0x3db7a4,_0x8b1e73,_0x4cde53,_0x5e002a);}[_0x43b2b8(0x1d1)](_0x12413f){const _0x1e120b=_0x43b2b8;this[_0x1e120b(0x1f6)][_0x1e120b(0x1d1)](_0x12413f);}[_0x43b2b8(0x1cc)](_0x4ca9b3=!0x1){const _0x7921b8=_0x43b2b8;this[_0x7921b8(0x1d6)][_0x7921b8(0x1dc)](_0x4ca9b3);}[_0x43b2b8(0x1e9)](_0x318d6e){const _0x1c97bc=_0x43b2b8;this[_0x1c97bc(0x1d6)][_0x1c97bc(0x1df)][_0x1c97bc(0x1d5)][_0x1c97bc(0x1f3)](),this[_0x1c97bc(0x1d6)][_0x1c97bc(0x1df)][_0x1c97bc(0x1d5)][_0x1c97bc(0x1cd)]=_0x318d6e;}}class AIChatModelUnavailableMessageView extends _0x37911d{constructor(_0x50e359){const _0x598c09=_0x43b2b8;super(_0x50e359);const _0x47429f=new _0x33bae4(_0x50e359);_0x47429f[_0x598c09(0x205)]({'label':_0xbfc70b(this[_0x598c09(0x206)],_0x598c09(0x20c)),'withText':!0x0,'class':[_0x598c09(0x1dd)],'tooltip':''}),_0x47429f[_0x598c09(0x20f)](_0x598c09(0x212))['to'](this,_0x598c09(0x1eb)),this[_0x598c09(0x1e5)]({'tag':_0x598c09(0x21a),'attributes':{'class':['ck',_0x598c09(0x209)]},'children':[{'tag':'p','children':[{'text':_0xbfc70b(this[_0x598c09(0x206)],_0x598c09(0x1ed))+'\x20'},_0x47429f]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4e2441=_0x1867;(function(_0x8dccd2,_0x22d6e7){const _0x9e1b32=_0x1867,_0x114cf6=_0x8dccd2();while(!![]){try{const _0x5643fa=parseInt(_0x9e1b32(0x1cd))/0x1+parseInt(_0x9e1b32(0x18c))/0x2+-parseInt(_0x9e1b32(0x185))/0x3*(-parseInt(_0x9e1b32(0x1d0))/0x4)+-parseInt(_0x9e1b32(0x1b0))/0x5*(-parseInt(_0x9e1b32(0x1cb))/0x6)+parseInt(_0x9e1b32(0x193))/0x7+-parseInt(_0x9e1b32(0x1b5))/0x8*(-parseInt(_0x9e1b32(0x1b8))/0x9)+parseInt(_0x9e1b32(0x199))/0xa*(-parseInt(_0x9e1b32(0x18b))/0xb);if(_0x5643fa===_0x22d6e7)break;else _0x114cf6['push'](_0x114cf6['shift']());}catch(_0x314822){_0x114cf6['push'](_0x114cf6['shift']());}}}(_0x1bc9,0x97910));import{CKEditorError as _0x3cd1dd,logWarning as _0x56f21b,scrollAncestorsToShowTarget as _0x123425}from'ckeditor5/src/utils.js';function _0x1bc9(){const _0x2591b2=['custom-element','options','start','addItem','223962OyVqla','delegate','895758dcjFqi','createCollection','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','234560DsViaz','setLoadingMessage','scrollToSuggestion','ck-ai-chat__loader','render','bind','ai-chat-feed-view-item-not-found','markItemAsDone','ai-reply','includes','updatePartState','aiFeed','ck-ai-chat__loader-text','isPending','24kZobrU','bindTemplate','find','filter','startAutoScroll','div','150700FEGjbQ','1355186cxiJVg','interaction-header','updateContent','stop','_createSkeletonLoader','ck-ai-chat__feed__items','_createFeedLoader','5406205tkgmnA','ck-ai-chat__feed','_createFeedItems','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','getPartView','scrollManager','1920zymRwf','isTrackChangesOn','_setupTemplate','_bodyCollection','ai-suggestion-reply','updateSuggestionItem','extendTemplate','remove','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','setTemplate','add','_createTemplateChildren','element','ai-chat-feed-view-item-not-a-reply-item','clear','ck-hidden','loadingMessage','updateSuggestionPartState','parentElement','updateWebSources','forEach','updateSources','hasItem','55JKDoLm','removeItem','map','isVisible','getItemById','68888kfTziE','setPartActive','span','27CGAKjz','getItemIds','ai-chat-feed-view-item-not-a-suggestion-item','markAsDone','children','set','isLoadingSkeletonVisible','toggleLoadingSkeleton','destroy','_createLoaderChildren','locale','setSuggestionPartActive','stopAutoScroll','updateReplyItem','user-message'];_0x1bc9=function(){return _0x2591b2;};return _0x1bc9();}import{View as _0x1efcf6}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x392249}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x353151}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x3ca747}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x28662f}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x2be204}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x2465c4}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x1bbc78}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x587641,SKELETON_DEFINITIONS as _0x4deb49}from'../../aicore/ui/aiskeleton.js';function _0x1867(_0x2c0c36,_0x1add69){const _0x1bc943=_0x1bc9();return _0x1867=function(_0x186733,_0x1de2a8){_0x186733=_0x186733-0x185;let _0x1bc1ed=_0x1bc943[_0x186733];return _0x1bc1ed;},_0x1867(_0x2c0c36,_0x1add69);}import{AISpinnerView as _0x475fdf}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x585a32}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x1efcf6{[_0x4e2441(0x1bc)];[_0x4e2441(0x198)];[_0x4e2441(0x19c)];constructor(_0x324123,_0x47ea17){const _0x4052e0=_0x4e2441;super(_0x324123),this[_0x4052e0(0x19c)]=_0x47ea17,this[_0x4052e0(0x1bd)](_0x4052e0(0x1dd),!0x1),this[_0x4052e0(0x1bd)](_0x4052e0(0x1a9),''),this[_0x4052e0(0x1bd)](_0x4052e0(0x1be),!0x1),this[_0x4052e0(0x1bd)](_0x4052e0(0x19a),!0x1),this[_0x4052e0(0x1bc)]=this[_0x4052e0(0x1ce)](),this[_0x4052e0(0x1bc)][_0x4052e0(0x1cc)](..._0x392249)['to'](this),this[_0x4052e0(0x19b)]();}[_0x4e2441(0x1d4)](){const _0x77ec75=_0x4e2441;super[_0x77ec75(0x1d4)](),this[_0x77ec75(0x198)]=new _0x1bbc78(this[_0x77ec75(0x1a5)]);}[_0x4e2441(0x1c0)](){const _0x57b292=_0x4e2441;super[_0x57b292(0x1c0)](),this[_0x57b292(0x198)][_0x57b292(0x1c0)]();}[_0x4e2441(0x1a7)](){const _0x3562a7=_0x4e2441;this[_0x3562a7(0x1bc)][_0x3562a7(0x1a7)]();}[_0x4e2441(0x1ca)](_0x16c1cf,_0x5debd9){const _0x734d5=_0x4e2441;let _0x3940a5;return _0x734d5(0x1d8)===_0x16c1cf?_0x3940a5=new _0x3ca747(this[_0x734d5(0x1c2)],_0x5debd9,this[_0x734d5(0x19c)]):_0x734d5(0x19d)===_0x16c1cf?(_0x3940a5=new _0x353151(this[_0x734d5(0x1c2)],_0x5debd9,this[_0x734d5(0x19c)]),_0x3940a5[_0x734d5(0x1d5)](_0x734d5(0x19a))['to'](this)):_0x3940a5=_0x734d5(0x1c6)===_0x16c1cf?new _0x28662f(this[_0x734d5(0x1c2)],_0x5debd9,this[_0x734d5(0x19c)]):_0x734d5(0x18d)===_0x16c1cf?new _0x2465c4(this[_0x734d5(0x1c2)],_0x5debd9):_0x734d5(0x1c7)===_0x16c1cf?new _0x585a32(_0x5debd9):new _0x2be204(_0x5debd9),this[_0x734d5(0x1bc)][_0x734d5(0x1a3)](_0x3940a5),_0x3940a5;}async[_0x4e2441(0x1c5)]({id:_0x3b7bfc,parsedContent:_0xf143dc,renderingStrategy:_0x5ef2ac,abortSignal:_0xf73157}){const _0x2870a8=_0x4e2441,_0x38e203=this[_0x2870a8(0x1b4)](_0x3b7bfc);if(!(_0x38e203 instanceof _0x3ca747))throw new _0x3cd1dd(_0x2870a8(0x1a6),null,{'itemView':_0x38e203,'id':_0x3b7bfc,'parsedContent':_0xf143dc});await _0x38e203[_0x2870a8(0x18e)]({'parsedContent':_0xf143dc,'renderingStrategy':_0x5ef2ac,'abortSignal':_0xf73157});}async[_0x4e2441(0x1ac)](_0x4b5806,_0x2fe668){const _0x54c05e=_0x4e2441,_0xf8c068=this[_0x54c05e(0x1b4)](_0x4b5806);if(_0xf8c068 instanceof _0x353151)_0xf8c068[_0x54c05e(0x1ae)](_0x2fe668);else{if(!(_0xf8c068 instanceof _0x3ca747))throw new _0x3cd1dd(_0x54c05e(0x196),null,{'itemView':_0xf8c068,'id':_0x4b5806,'sources':_0x2fe668});_0xf8c068[_0x54c05e(0x1ae)](_0x2fe668);}}async[_0x4e2441(0x19e)]({id:_0x21bec0,parts:_0x222de0,renderingStrategy:_0x4db238,abortSignal:_0x33d47a}){const _0x216d3a=_0x4e2441,_0x4ccb95=this[_0x216d3a(0x1b4)](_0x21bec0);if(!(_0x4ccb95 instanceof _0x353151))throw new _0x3cd1dd(_0x216d3a(0x1ba),null,{'itemView':_0x4ccb95,'id':_0x21bec0,'parts':_0x222de0});await _0x4ccb95[_0x216d3a(0x18e)]({'parts':_0x222de0,'renderingStrategy':_0x4db238,'abortSignal':_0x33d47a});}[_0x4e2441(0x1aa)]({id:_0xe88334,index:_0x14df31,state:_0x198c47}){const _0x18b0c6=_0x4e2441,_0x2b7132=this[_0x18b0c6(0x1b4)](_0xe88334);if(!(_0x2b7132 instanceof _0x353151))throw new _0x3cd1dd(_0x18b0c6(0x1ba),this,{'id':_0xe88334});_0x2b7132[_0x18b0c6(0x1da)](_0x14df31,_0x198c47);}[_0x4e2441(0x1c3)]({id:_0x25be4c,index:_0x5e6023,isActive:_0xd2c9fc}){const _0x480c5c=_0x4e2441,_0x160b57=this[_0x480c5c(0x1b4)](_0x25be4c);if(!(_0x160b57 instanceof _0x353151))throw new _0x3cd1dd(_0x480c5c(0x1ba),this,{'id':_0x25be4c});this[_0x480c5c(0x1bc)][_0x480c5c(0x188)](_0x48c1cf=>_0x48c1cf instanceof _0x353151)[_0x480c5c(0x1ad)](_0x64f3dc=>{const _0x4f135d=_0x480c5c;_0x64f3dc[_0x4f135d(0x1b6)](!0x1);}),_0x160b57[_0x480c5c(0x1b6)](_0x5e6023,_0xd2c9fc);}[_0x4e2441(0x1d7)](_0x2799c3){const _0x38056c=_0x4e2441;this[_0x38056c(0x1b4)](_0x2799c3)[_0x38056c(0x1bb)]();}[_0x4e2441(0x1b9)](){const _0x180003=_0x4e2441;return this[_0x180003(0x1bc)][_0x180003(0x1b2)](_0x418efc=>_0x418efc[_0x180003(0x1c8)]['id']);}[_0x4e2441(0x1b1)](_0x5562bb){const _0x27a2ca=_0x4e2441;this[_0x27a2ca(0x1bc)][_0x27a2ca(0x1a0)](this[_0x27a2ca(0x1b4)](_0x5562bb));}[_0x4e2441(0x1af)](_0x2523fe){const _0x11013f=_0x4e2441;return!!this[_0x11013f(0x1bc)][_0x11013f(0x187)](_0x22c7f8=>_0x22c7f8[_0x11013f(0x1c8)]['id'][_0x11013f(0x1d9)](_0x2523fe));}[_0x4e2441(0x1d2)](_0x5eab9a,_0x356257){const _0x4cee69=_0x4e2441,_0x3a3dc7=this[_0x4cee69(0x1b4)](_0x5eab9a);if(!(_0x3a3dc7 instanceof _0x353151))return void _0x56f21b(_0x4cee69(0x1cf),{'replyId':_0x5eab9a,'partIndex':_0x356257});const _0x1cb693=_0x3a3dc7[_0x4cee69(0x197)](_0x356257);_0x1cb693?_0x123425(_0x1cb693[_0x4cee69(0x1a5)],0x14,this[_0x4cee69(0x1a5)][_0x4cee69(0x1ab)],!0x0,!0x0):_0x56f21b(_0x4cee69(0x1a1),{'replyId':_0x5eab9a,'partIndex':_0x356257});}[_0x4e2441(0x19b)](){const _0x2cbb35=_0x4e2441;this[_0x2cbb35(0x1a2)]({'tag':_0x2cbb35(0x18a),'attributes':{'class':['ck',_0x2cbb35(0x194)]},'children':this[_0x2cbb35(0x1a4)]()});}[_0x4e2441(0x1a4)](){const _0x12923f=_0x4e2441,_0x505ed2=this[_0x12923f(0x190)]();return[this[_0x12923f(0x195)](),_0x505ed2,this[_0x12923f(0x192)]()];}[_0x4e2441(0x190)](){const _0x5690b7=_0x4e2441,_0x3bc82a=new _0x587641(this[_0x5690b7(0x1c2)],_0x4deb49[_0x5690b7(0x1db)]);return _0x3bc82a[_0x5690b7(0x19f)]({'attributes':{'class':[this[_0x5690b7(0x186)]['if'](_0x5690b7(0x1be),_0x5690b7(0x1a8),_0x989cb8=>!_0x989cb8)]}}),_0x3bc82a;}[_0x4e2441(0x195)](){const _0x5df71e=_0x4e2441,_0xea1c4f=new _0x1efcf6(this[_0x5df71e(0x1c2)]);return _0xea1c4f[_0x5df71e(0x1a2)]({'tag':_0x5df71e(0x18a),'attributes':{'class':['ck',_0x5df71e(0x191),this[_0x5df71e(0x186)]['if'](_0x5df71e(0x1be),_0x5df71e(0x1a8))]},'children':this[_0x5df71e(0x1bc)]}),_0xea1c4f;}[_0x4e2441(0x192)](){const _0x50612d=_0x4e2441,_0x3479a1=new _0x1efcf6(this[_0x50612d(0x1c2)]);return _0x3479a1[_0x50612d(0x1a2)]({'tag':_0x50612d(0x18a),'attributes':{'class':['ck',_0x50612d(0x1d3),this[_0x50612d(0x186)]['if'](_0x50612d(0x1dd),_0x50612d(0x1a8),_0x17936d=>!_0x17936d)]},'children':this[_0x50612d(0x1c1)]()}),_0x3479a1;}[_0x4e2441(0x1c1)](){const _0x3aabef=_0x4e2441,_0x335359=new _0x475fdf();return _0x335359[_0x3aabef(0x1b3)]=!0x0,[_0x335359,{'tag':_0x3aabef(0x1b7),'attributes':{'class':['ck',_0x3aabef(0x1dc)]},'children':[{'text':this[_0x3aabef(0x186)]['to'](_0x3aabef(0x1a9))}]}];}[_0x4e2441(0x1b4)](_0x3d84ba){const _0x2aff88=_0x4e2441,_0x4847a9=this[_0x2aff88(0x1bc)][_0x2aff88(0x187)](_0x122588=>_0x122588[_0x2aff88(0x1c8)]['id'][_0x2aff88(0x1d9)](_0x3d84ba));if(!_0x4847a9)throw new _0x3cd1dd(_0x2aff88(0x1d6),this,{'id':_0x3d84ba});return _0x4847a9;}[_0x4e2441(0x1d1)](_0x1fd033){const _0x3f12da=_0x4e2441;this[_0x3f12da(0x1bd)](_0x3f12da(0x1a9),_0x1fd033);}[_0x4e2441(0x1bf)](_0x373264){const _0x31e172=_0x4e2441;this[_0x31e172(0x1bd)](_0x31e172(0x1be),_0x373264);}[_0x4e2441(0x189)](){const _0x5076ff=_0x4e2441;this[_0x5076ff(0x198)][_0x5076ff(0x1c9)]();}[_0x4e2441(0x1c4)](){const _0x592a8a=_0x4e2441;this[_0x592a8a(0x198)][_0x592a8a(0x18f)]();}}
23
+ function _0x4b59(){const _0x500aa4=['4339735SxnRJA','ai-suggestion-reply','aiFeed','element','includes','destroy','children','interaction-header','div','_setupTemplate','updateWebSources','_bodyCollection','markAsDone','ck-ai-chat__feed','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','setSuggestionPartActive','delegate','setPartActive','117CwBEBy','startAutoScroll','custom-element','9799647FvzHLk','clear','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','updatePartState','updateSuggestionPartState','2oMAcge','extendTemplate','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','bindTemplate','getItemIds','ck-ai-chat__loader','updateSources','isVisible','isPending','parentElement','remove','scrollManager','span','ck-ai-chat__feed__items','options','313571vNQUsC','loadingMessage','4007129FRcBgh','_createLoaderChildren','bind','updateSuggestionItem','locale','forEach','isTrackChangesOn','264132PubMzQ','start','find','toggleLoadingSkeleton','set','filter','hasItem','_createTemplateChildren','addItem','scrollToSuggestion','18492sJGlSw','removeItem','stopAutoScroll','user-message','ai-chat-feed-view-item-not-a-reply-item','_createFeedLoader','ai-chat-feed-view-item-not-a-suggestion-item','setTemplate','markItemAsDone','setLoadingMessage','add','ck-hidden','isLoadingSkeletonVisible','_createFeedItems','194630GHkGKu','getPartView','ai-reply','getItemById','createCollection','render','map','ai-chat-feed-view-item-not-found','6kFPJvY','8TrNgoC','updateReplyItem','stop','_createSkeletonLoader','ck-ai-chat__loader-text','updateContent'];_0x4b59=function(){return _0x500aa4;};return _0x4b59();}const _0x10a493=_0x2e0e;(function(_0x25e4d6,_0x2bf15d){const _0x249c50=_0x2e0e,_0x2a56ad=_0x25e4d6();while(!![]){try{const _0x4d52f5=-parseInt(_0x249c50(0x191))/0x1*(parseInt(_0x249c50(0x1db))/0x2)+-parseInt(_0x249c50(0x19a))/0x3+-parseInt(_0x249c50(0x1a4))/0x4+parseInt(_0x249c50(0x1c1))/0x5*(-parseInt(_0x249c50(0x1ba))/0x6)+-parseInt(_0x249c50(0x193))/0x7*(-parseInt(_0x249c50(0x1bb))/0x8)+parseInt(_0x249c50(0x1d3))/0x9*(parseInt(_0x249c50(0x1b2))/0xa)+parseInt(_0x249c50(0x1d6))/0xb;if(_0x4d52f5===_0x2bf15d)break;else _0x2a56ad['push'](_0x2a56ad['shift']());}catch(_0x560328){_0x2a56ad['push'](_0x2a56ad['shift']());}}}(_0x4b59,0x6bf2e));import{CKEditorError as _0x233a99,logWarning as _0x58392b,scrollAncestorsToShowTarget as _0x58140d}from'ckeditor5/src/utils.js';import{View as _0x392094}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x42fb04}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4b54d4}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x2c12a0}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x308692}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x324abc}from'./feed/aichatfeederroritemview.js';function _0x2e0e(_0x90b9a0,_0x4ccdb9){const _0x4b5955=_0x4b59();return _0x2e0e=function(_0x2e0ef5,_0x4bdeaf){_0x2e0ef5=_0x2e0ef5-0x18f;let _0x4627d4=_0x4b5955[_0x2e0ef5];return _0x4627d4;},_0x2e0e(_0x90b9a0,_0x4ccdb9);}import{AIChatFeedInteractionHeaderView as _0xc22c09}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x2607da}from'../../aicore/utils/scrollmanager.js';import{AISkeletonView as _0x4a8374,SKELETON_DEFINITIONS as _0x3122ce}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x553365}from'../../aicore/ui/aispinner.js';import{AIChatFeedCustomElementView as _0x58a46c}from'./feed/aichatfeedcustomelementview.js';import'../../../theme/aichat/aichatfeed.css';export class AIChatFeedView extends _0x392094{[_0x10a493(0x1c7)];[_0x10a493(0x1e6)];[_0x10a493(0x1cc)];constructor(_0x1a5456,_0x2b07c0){const _0x2d3c9b=_0x10a493;super(_0x1a5456),this[_0x2d3c9b(0x1cc)]=_0x2b07c0,this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x1e3),!0x1),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x192),''),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x1b0),!0x1),this[_0x2d3c9b(0x19e)](_0x2d3c9b(0x199),!0x1),this[_0x2d3c9b(0x1c7)]=this[_0x2d3c9b(0x1b6)](),this[_0x2d3c9b(0x1c7)][_0x2d3c9b(0x1d1)](..._0x42fb04)['to'](this),this[_0x2d3c9b(0x1ca)]();}[_0x10a493(0x1b7)](){const _0x4480d4=_0x10a493;super[_0x4480d4(0x1b7)](),this[_0x4480d4(0x1e6)]=new _0x2607da(this[_0x4480d4(0x1c4)]);}[_0x10a493(0x1c6)](){const _0xb0c068=_0x10a493;super[_0xb0c068(0x1c6)](),this[_0xb0c068(0x1e6)][_0xb0c068(0x1c6)]();}[_0x10a493(0x1d7)](){const _0x326e86=_0x10a493;this[_0x326e86(0x1c7)][_0x326e86(0x1d7)]();}[_0x10a493(0x1a2)](_0x438e9b,_0x5e860e){const _0x344e85=_0x10a493;let _0x98172c;return _0x344e85(0x1b4)===_0x438e9b?_0x98172c=new _0x2c12a0(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]):_0x344e85(0x1c2)===_0x438e9b?(_0x98172c=new _0x4b54d4(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]),_0x98172c[_0x344e85(0x195)](_0x344e85(0x199))['to'](this)):_0x98172c=_0x344e85(0x1a7)===_0x438e9b?new _0x308692(this[_0x344e85(0x197)],_0x5e860e,this[_0x344e85(0x1cc)]):_0x344e85(0x1c8)===_0x438e9b?new _0xc22c09(this[_0x344e85(0x197)],_0x5e860e):_0x344e85(0x1d5)===_0x438e9b?new _0x58a46c(_0x5e860e):new _0x324abc(_0x5e860e),this[_0x344e85(0x1c7)][_0x344e85(0x1ae)](_0x98172c),_0x98172c;}async[_0x10a493(0x1bc)]({id:_0x9fccc5,parsedContent:_0x35161b,renderingStrategy:_0x4a216e,abortSignal:_0x5721db}){const _0x2b3312=_0x10a493,_0x36e7ff=this[_0x2b3312(0x1b5)](_0x9fccc5);if(!(_0x36e7ff instanceof _0x2c12a0))throw new _0x233a99(_0x2b3312(0x1a8),null,{'itemView':_0x36e7ff,'id':_0x9fccc5,'parsedContent':_0x35161b});await _0x36e7ff[_0x2b3312(0x1c0)]({'parsedContent':_0x35161b,'renderingStrategy':_0x4a216e,'abortSignal':_0x5721db});}async[_0x10a493(0x1cb)](_0x178917,_0x3096bc){const _0x55bf89=_0x10a493,_0x1ff9c1=this[_0x55bf89(0x1b5)](_0x178917);if(_0x1ff9c1 instanceof _0x4b54d4)_0x1ff9c1[_0x55bf89(0x1e1)](_0x3096bc);else{if(!(_0x1ff9c1 instanceof _0x2c12a0))throw new _0x233a99(_0x55bf89(0x1dd),null,{'itemView':_0x1ff9c1,'id':_0x178917,'sources':_0x3096bc});_0x1ff9c1[_0x55bf89(0x1e1)](_0x3096bc);}}async[_0x10a493(0x196)]({id:_0x41a798,parts:_0x1aa361,renderingStrategy:_0x4cbc56,abortSignal:_0x371fb5}){const _0x250f3a=_0x10a493,_0x1d1f79=this[_0x250f3a(0x1b5)](_0x41a798);if(!(_0x1d1f79 instanceof _0x4b54d4))throw new _0x233a99(_0x250f3a(0x1aa),null,{'itemView':_0x1d1f79,'id':_0x41a798,'parts':_0x1aa361});await _0x1d1f79[_0x250f3a(0x1c0)]({'parts':_0x1aa361,'renderingStrategy':_0x4cbc56,'abortSignal':_0x371fb5});}[_0x10a493(0x1da)]({id:_0x27db2a,index:_0x1b74f8,state:_0x58d682}){const _0x1d37b4=_0x10a493,_0x3732fc=this[_0x1d37b4(0x1b5)](_0x27db2a);if(!(_0x3732fc instanceof _0x4b54d4))throw new _0x233a99(_0x1d37b4(0x1aa),this,{'id':_0x27db2a});_0x3732fc[_0x1d37b4(0x1d9)](_0x1b74f8,_0x58d682);}[_0x10a493(0x1d0)]({id:_0x9edf3e,index:_0x463481,isActive:_0x174aff}){const _0x4dad85=_0x10a493,_0x2c7bb3=this[_0x4dad85(0x1b5)](_0x9edf3e);if(!(_0x2c7bb3 instanceof _0x4b54d4))throw new _0x233a99(_0x4dad85(0x1aa),this,{'id':_0x9edf3e});this[_0x4dad85(0x1c7)][_0x4dad85(0x19f)](_0x3335b2=>_0x3335b2 instanceof _0x4b54d4)[_0x4dad85(0x198)](_0x5205ca=>{const _0x34a900=_0x4dad85;_0x5205ca[_0x34a900(0x1d2)](!0x1);}),_0x2c7bb3[_0x4dad85(0x1d2)](_0x463481,_0x174aff);}[_0x10a493(0x1ac)](_0x1f2971){const _0x33659b=_0x10a493;this[_0x33659b(0x1b5)](_0x1f2971)[_0x33659b(0x1cd)]();}[_0x10a493(0x1df)](){const _0x2c81cc=_0x10a493;return this[_0x2c81cc(0x1c7)][_0x2c81cc(0x1b8)](_0x395d06=>_0x395d06[_0x2c81cc(0x190)]['id']);}[_0x10a493(0x1a5)](_0x1ab1b3){const _0x400b99=_0x10a493;this[_0x400b99(0x1c7)][_0x400b99(0x1e5)](this[_0x400b99(0x1b5)](_0x1ab1b3));}[_0x10a493(0x1a0)](_0x2f3821){const _0x10a5d7=_0x10a493;return!!this[_0x10a5d7(0x1c7)][_0x10a5d7(0x19c)](_0x455ff4=>_0x455ff4[_0x10a5d7(0x190)]['id'][_0x10a5d7(0x1c5)](_0x2f3821));}[_0x10a493(0x1a3)](_0xf65b0,_0x23a259){const _0x2a50a6=_0x10a493,_0x4b2a93=this[_0x2a50a6(0x1b5)](_0xf65b0);if(!(_0x4b2a93 instanceof _0x4b54d4))return void _0x58392b(_0x2a50a6(0x1cf),{'replyId':_0xf65b0,'partIndex':_0x23a259});const _0xb81aec=_0x4b2a93[_0x2a50a6(0x1b3)](_0x23a259);_0xb81aec?_0x58140d(_0xb81aec[_0x2a50a6(0x1c4)],0x14,this[_0x2a50a6(0x1c4)][_0x2a50a6(0x1e4)],!0x0,!0x0):_0x58392b(_0x2a50a6(0x1d8),{'replyId':_0xf65b0,'partIndex':_0x23a259});}[_0x10a493(0x1ca)](){const _0x4e9acb=_0x10a493;this[_0x4e9acb(0x1ab)]({'tag':_0x4e9acb(0x1c9),'attributes':{'class':['ck',_0x4e9acb(0x1ce)]},'children':this[_0x4e9acb(0x1a1)]()});}[_0x10a493(0x1a1)](){const _0x44037b=_0x10a493,_0x3a0d98=this[_0x44037b(0x1be)]();return[this[_0x44037b(0x1b1)](),_0x3a0d98,this[_0x44037b(0x1a9)]()];}[_0x10a493(0x1be)](){const _0x4c5ba0=_0x10a493,_0x401c32=new _0x4a8374(this[_0x4c5ba0(0x197)],_0x3122ce[_0x4c5ba0(0x1c3)]);return _0x401c32[_0x4c5ba0(0x1dc)]({'attributes':{'class':[this[_0x4c5ba0(0x1de)]['if'](_0x4c5ba0(0x1b0),_0x4c5ba0(0x1af),_0x559701=>!_0x559701)]}}),_0x401c32;}[_0x10a493(0x1b1)](){const _0x4d3548=_0x10a493,_0x17dad2=new _0x392094(this[_0x4d3548(0x197)]);return _0x17dad2[_0x4d3548(0x1ab)]({'tag':_0x4d3548(0x1c9),'attributes':{'class':['ck',_0x4d3548(0x18f),this[_0x4d3548(0x1de)]['if'](_0x4d3548(0x1b0),_0x4d3548(0x1af))]},'children':this[_0x4d3548(0x1c7)]}),_0x17dad2;}[_0x10a493(0x1a9)](){const _0x3dba30=_0x10a493,_0x224ee4=new _0x392094(this[_0x3dba30(0x197)]);return _0x224ee4[_0x3dba30(0x1ab)]({'tag':_0x3dba30(0x1c9),'attributes':{'class':['ck',_0x3dba30(0x1e0),this[_0x3dba30(0x1de)]['if'](_0x3dba30(0x1e3),_0x3dba30(0x1af),_0x1a9cd0=>!_0x1a9cd0)]},'children':this[_0x3dba30(0x194)]()}),_0x224ee4;}[_0x10a493(0x194)](){const _0x448445=_0x10a493,_0x1ea10d=new _0x553365();return _0x1ea10d[_0x448445(0x1e2)]=!0x0,[_0x1ea10d,{'tag':_0x448445(0x1e7),'attributes':{'class':['ck',_0x448445(0x1bf)]},'children':[{'text':this[_0x448445(0x1de)]['to'](_0x448445(0x192))}]}];}[_0x10a493(0x1b5)](_0x430bd7){const _0x4d688c=_0x10a493,_0x224bf8=this[_0x4d688c(0x1c7)][_0x4d688c(0x19c)](_0x3673c3=>_0x3673c3[_0x4d688c(0x190)]['id'][_0x4d688c(0x1c5)](_0x430bd7));if(!_0x224bf8)throw new _0x233a99(_0x4d688c(0x1b9),this,{'id':_0x430bd7});return _0x224bf8;}[_0x10a493(0x1ad)](_0x5cf345){const _0x50d06d=_0x10a493;this[_0x50d06d(0x19e)](_0x50d06d(0x192),_0x5cf345);}[_0x10a493(0x19d)](_0x27c9e6){const _0xde8cb3=_0x10a493;this[_0xde8cb3(0x19e)](_0xde8cb3(0x1b0),_0x27c9e6);}[_0x10a493(0x1d4)](){const _0x265e3b=_0x10a493;this[_0x265e3b(0x1e6)][_0x265e3b(0x19b)]();}[_0x10a493(0x1a6)](){const _0x4e77c1=_0x10a493;this[_0x4e77c1(0x1e6)][_0x4e77c1(0x1bd)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b5340=_0x33af;(function(_0x1f9796,_0x26e19f){const _0x30a77b=_0x33af,_0x19d018=_0x1f9796();while(!![]){try{const _0x1c89ee=-parseInt(_0x30a77b(0x18a))/0x1*(parseInt(_0x30a77b(0x17d))/0x2)+-parseInt(_0x30a77b(0x185))/0x3*(parseInt(_0x30a77b(0x18c))/0x4)+parseInt(_0x30a77b(0x189))/0x5+parseInt(_0x30a77b(0x18d))/0x6*(parseInt(_0x30a77b(0x17f))/0x7)+-parseInt(_0x30a77b(0x187))/0x8+-parseInt(_0x30a77b(0x188))/0x9+parseInt(_0x30a77b(0x191))/0xa;if(_0x1c89ee===_0x26e19f)break;else _0x19d018['push'](_0x19d018['shift']());}catch(_0x1de316){_0x19d018['push'](_0x19d018['shift']());}}}(_0x470b,0x49a5b));import{ButtonView as _0x31b7ef,FormHeaderView as _0x553af5}from'ckeditor5/src/ui.js';import{IconPlus as _0x3dfdca,IconAIChat as _0x25b6df}from'ckeditor5/src/icons.js';import{getTranslation as _0x564de3}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x1bab80}from'../../aicore/utils/createresizebutton.js';function _0x470b(){const _0x424dd3=['568010iKUolY','2IFOOQL','execute','62012PwyZge','54OxAVQF','resizeButton','locale','set','12568980KNUlTi','AI_CHAT_LABEL_NEW_CHAT','startConversation','_createStartConversationButton','ck-ai-header\x20ck-ai-header_chat','81800PzElqh','add','141232KnhgkE','AI_CHAT_HEADING','isMaximized','conversationStartButton','ck-ai-chat__start-conversation','fire','87jOOmGv','children','3532240NaMFsG','2497572QgYzVL'];_0x470b=function(){return _0x424dd3;};return _0x470b();}import'../../../theme/common/aiheader.css';function _0x33af(_0x30f760,_0x13e990){const _0x470bc5=_0x470b();return _0x33af=function(_0x33af77,_0x11fe6e){_0x33af77=_0x33af77-0x17a;let _0x3a270c=_0x470bc5[_0x33af77];return _0x3a270c;},_0x33af(_0x30f760,_0x13e990);}export class AIChatHeaderView extends _0x553af5{[_0x5b5340(0x182)];[_0x5b5340(0x18e)];constructor(_0x1d3ec5,_0x2352df){const _0x3c12c3=_0x5b5340;super(_0x1d3ec5,{'label':_0x564de3(_0x1d3ec5,_0x3c12c3(0x180)),'class':_0x3c12c3(0x17c),'icon':_0x25b6df}),this[_0x3c12c3(0x190)](_0x3c12c3(0x181),!0x1),this[_0x3c12c3(0x182)]=this[_0x3c12c3(0x17b)](_0x1d3ec5),this[_0x3c12c3(0x186)][_0x3c12c3(0x17e)](this[_0x3c12c3(0x182)]),_0x2352df&&(this[_0x3c12c3(0x18e)]=_0x1bab80(_0x1d3ec5,this),this[_0x3c12c3(0x186)][_0x3c12c3(0x17e)](this[_0x3c12c3(0x18e)]));}[_0x5b5340(0x17b)](_0x450c45){const _0xe71452=_0x5b5340,_0x356ab2=new _0x31b7ef(_0x450c45);return _0x356ab2[_0xe71452(0x190)]({'label':_0x564de3(this[_0xe71452(0x18f)],_0xe71452(0x192)),'withText':!0x0,'icon':_0x3dfdca,'class':_0xe71452(0x183)}),_0x356ab2['on'](_0xe71452(0x18b),()=>{const _0x4e5bed=_0xe71452;this[_0x4e5bed(0x184)](_0x4e5bed(0x17a));}),_0x356ab2;}}
23
+ function _0x1adf(_0x4313e8,_0x10f2ed){const _0x579631=_0x5796();return _0x1adf=function(_0x1adf9e,_0x5e099b){_0x1adf9e=_0x1adf9e-0xc0;let _0x3a94e4=_0x579631[_0x1adf9e];return _0x3a94e4;},_0x1adf(_0x4313e8,_0x10f2ed);}const _0xde58bb=_0x1adf;(function(_0x437459,_0x4bc319){const _0x83e511=_0x1adf,_0x24b723=_0x437459();while(!![]){try{const _0x4b8f0d=parseInt(_0x83e511(0xcc))/0x1*(parseInt(_0x83e511(0xc0))/0x2)+-parseInt(_0x83e511(0xc5))/0x3+-parseInt(_0x83e511(0xc6))/0x4*(-parseInt(_0x83e511(0xcd))/0x5)+parseInt(_0x83e511(0xc9))/0x6+parseInt(_0x83e511(0xc7))/0x7*(-parseInt(_0x83e511(0xd1))/0x8)+parseInt(_0x83e511(0xd3))/0x9+-parseInt(_0x83e511(0xd8))/0xa;if(_0x4b8f0d===_0x4bc319)break;else _0x24b723['push'](_0x24b723['shift']());}catch(_0x48c1f7){_0x24b723['push'](_0x24b723['shift']());}}}(_0x5796,0xbe2bc));function _0x5796(){const _0x93c492=['children','add','resizeButton','startConversation','11272630AZqyvn','2386OTTsnF','ck-ai-header\x20ck-ai-header_chat','execute','set','locale','2852619GaxAmI','4gDeoRp','913185mwaCDg','AI_CHAT_LABEL_NEW_CHAT','4362888YPPThy','AI_CHAT_HEADING','isMaximized','1141ZRvzYU','4116205ErwDgi','_createStartConversationButton','conversationStartButton','fire','8LslABQ','ck-ai-chat__start-conversation','683361fxOwyo'];_0x5796=function(){return _0x93c492;};return _0x5796();}import{ButtonView as _0x5de471,FormHeaderView as _0x36cd7a}from'ckeditor5/src/ui.js';import{IconPlus as _0x405f7d,IconAIChat as _0x4a4603}from'ckeditor5/src/icons.js';import{getTranslation as _0x3f3742}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x393254}from'../../aicore/utils/createresizebutton.js';import'../../../theme/common/aiheader.css';export class AIChatHeaderView extends _0x36cd7a{[_0xde58bb(0xcf)];[_0xde58bb(0xd6)];constructor(_0x4aaa18,_0x2ddbb0){const _0x3dae24=_0xde58bb;super(_0x4aaa18,{'label':_0x3f3742(_0x4aaa18,_0x3dae24(0xca)),'class':_0x3dae24(0xc1),'icon':_0x4a4603}),this[_0x3dae24(0xc3)](_0x3dae24(0xcb),!0x1),this[_0x3dae24(0xcf)]=this[_0x3dae24(0xce)](_0x4aaa18),this[_0x3dae24(0xd4)][_0x3dae24(0xd5)](this[_0x3dae24(0xcf)]),_0x2ddbb0&&(this[_0x3dae24(0xd6)]=_0x393254(_0x4aaa18,this),this[_0x3dae24(0xd4)][_0x3dae24(0xd5)](this[_0x3dae24(0xd6)]));}[_0xde58bb(0xce)](_0xcc17fd){const _0x28b045=_0xde58bb,_0x54cd19=new _0x5de471(_0xcc17fd);return _0x54cd19[_0x28b045(0xc3)]({'label':_0x3f3742(this[_0x28b045(0xc4)],_0x28b045(0xc8)),'withText':!0x0,'icon':_0x405f7d,'class':_0x28b045(0xd2)}),_0x54cd19['on'](_0x28b045(0xc2),()=>{const _0x5e5978=_0x28b045;this[_0x5e5978(0xd0)](_0x5e5978(0xd7));}),_0x54cd19;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x13df29=_0x306d;(function(_0x6e8f71,_0x28d4fe){var _0x2f2f78=_0x306d,_0x35b0f3=_0x6e8f71();while(!![]){try{var _0x56fe5b=parseInt(_0x2f2f78(0x12b))/0x1+parseInt(_0x2f2f78(0x124))/0x2*(-parseInt(_0x2f2f78(0x128))/0x3)+-parseInt(_0x2f2f78(0x117))/0x4*(-parseInt(_0x2f2f78(0x123))/0x5)+parseInt(_0x2f2f78(0x129))/0x6+-parseInt(_0x2f2f78(0x114))/0x7+parseInt(_0x2f2f78(0x120))/0x8*(-parseInt(_0x2f2f78(0x112))/0x9)+parseInt(_0x2f2f78(0x12c))/0xa;if(_0x56fe5b===_0x28d4fe)break;else _0x35b0f3['push'](_0x35b0f3['shift']());}catch(_0x2b44c7){_0x35b0f3['push'](_0x35b0f3['shift']());}}}(_0x41b7,0x36010));import{View as _0xc6720,BodyCollection as _0x47e768}from'ckeditor5/src/ui.js';function _0x306d(_0x420170,_0x1ca25a){var _0x41b7fa=_0x41b7();return _0x306d=function(_0x306d65,_0x49064d){_0x306d65=_0x306d65-0x112;var _0x4c3326=_0x41b7fa[_0x306d65];return _0x4c3326;},_0x306d(_0x420170,_0x1ca25a);}import{AI_CHAT_UI_EVENT_NAMES as _0x21ec4c}from'../utils/eventnames.js';import{AIChatFeedView as _0x54177c}from'./aichatfeedview.js';import{AIChatControlsView as _0x4623a8}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x2e207d}from'./aichatheaderview.js';import{AIDisclaimerView as _0x53b93e}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';export class AIChatView extends _0xc6720{[_0x13df29(0x12e)];[_0x13df29(0x121)];[_0x13df29(0x12a)];[_0x13df29(0x125)];[_0x13df29(0x12d)];constructor(_0x506505,_0x5d9a3f){var _0xdc9f42=_0x13df29;super(_0x506505),this[_0xdc9f42(0x12d)]=new _0x47e768(_0x506505),this[_0xdc9f42(0x12d)][_0xdc9f42(0x127)](),this[_0xdc9f42(0x12e)]=new _0x2e207d(_0x506505,_0x5d9a3f[_0xdc9f42(0x11f)]),this[_0xdc9f42(0x12e)][_0xdc9f42(0x11a)](..._0x21ec4c)['to'](this),this[_0xdc9f42(0x121)]=new _0x54177c(_0x506505,this[_0xdc9f42(0x12d)]),this[_0xdc9f42(0x121)][_0xdc9f42(0x11a)](..._0x21ec4c)['to'](this),this[_0xdc9f42(0x12a)]=new _0x4623a8(_0x506505,{'bodyCollection':this[_0xdc9f42(0x12d)],'contextResourcesSearchInputVisibleFrom':_0x5d9a3f[_0xdc9f42(0x122)]}),this[_0xdc9f42(0x12a)][_0xdc9f42(0x11a)](..._0x21ec4c)['to'](this),this[_0xdc9f42(0x125)]=new _0x53b93e(_0x506505),this[_0xdc9f42(0x11d)]({'tag':_0xdc9f42(0x113),'attributes':{'class':['ck',_0xdc9f42(0x118),_0xdc9f42(0x11c),_0xdc9f42(0x126)],'dir':_0x506505[_0xdc9f42(0x119)]},'children':[this[_0xdc9f42(0x12e)],this[_0xdc9f42(0x121)],this[_0xdc9f42(0x12a)],this[_0xdc9f42(0x125)]]});}[_0x13df29(0x11b)](_0x59a3a4,_0xdf506a,_0x2ab40d,_0x4626ae){var _0x2dcf8f=_0x13df29;this[_0x2dcf8f(0x12a)][_0x2dcf8f(0x11b)](_0x59a3a4,_0xdf506a,_0x2ab40d,_0x4626ae);}[_0x13df29(0x115)](_0x3d3a63){var _0x448144=_0x13df29;this[_0x448144(0x12a)][_0x448144(0x115)](_0x3d3a63);}[_0x13df29(0x116)](){var _0x5c0c12=_0x13df29;this[_0x5c0c12(0x12d)][_0x5c0c12(0x11e)](),super[_0x5c0c12(0x116)]();}}function _0x41b7(){var _0x5805b7=['ck-rounded-corners','attachToDom','12baCmBL','1336314WvjwMD','chatControls','225468NQJvgF','1049700DXVctV','_bodyCollection','chatHeader','315ZAWXJk','div','302652MsCYbh','closeSourceResourceBalloon','destroy','3368ltDIQj','ck-reset_all','uiLanguageDirection','delegate','populateSourceResourceBalloon','ck-ai-chat','setTemplate','detachFromDom','showResizeButton','75192CkmXDj','chatFeed','contextResourcesSearchInputVisibleFrom','1330svFqHj','91864PckUGP','chatDisclaimer'];_0x41b7=function(){return _0x5805b7;};return _0x41b7();}
23
+ var _0x1ae93b=_0x5c94;(function(_0x19ca19,_0x45b274){var _0x13ac03=_0x5c94,_0x456a15=_0x19ca19();while(!![]){try{var _0x41b534=parseInt(_0x13ac03(0x129))/0x1+-parseInt(_0x13ac03(0x130))/0x2*(parseInt(_0x13ac03(0x131))/0x3)+-parseInt(_0x13ac03(0x135))/0x4*(parseInt(_0x13ac03(0x13c))/0x5)+parseInt(_0x13ac03(0x13b))/0x6+parseInt(_0x13ac03(0x12f))/0x7*(-parseInt(_0x13ac03(0x125))/0x8)+-parseInt(_0x13ac03(0x134))/0x9*(parseInt(_0x13ac03(0x124))/0xa)+parseInt(_0x13ac03(0x137))/0xb;if(_0x41b534===_0x45b274)break;else _0x456a15['push'](_0x456a15['shift']());}catch(_0x472524){_0x456a15['push'](_0x456a15['shift']());}}}(_0x2692,0xea7c2));import{View as _0x2656fd,BodyCollection as _0x199912}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x321fcb}from'../utils/eventnames.js';import{AIChatFeedView as _0x516bed}from'./aichatfeedview.js';import{AIChatControlsView as _0x2c0730}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x527d7d}from'./aichatheaderview.js';import{AIDisclaimerView as _0x3a4631}from'../../aicore/ui/aidisclaimerview.js';import'../../../theme/common/ainotification.css';import'../../../theme/common/aibutton.css';import'../../../theme/common/aitrackchanges.css';function _0x5c94(_0x40fec0,_0x4e1206){var _0x26924d=_0x2692();return _0x5c94=function(_0x5c9469,_0x4c403d){_0x5c9469=_0x5c9469-0x122;var _0x2a056c=_0x26924d[_0x5c9469];return _0x2a056c;},_0x5c94(_0x40fec0,_0x4e1206);}function _0x2692(){var _0x5847c5=['showResizeButton','attachToDom','contextResourcesSearchInputVisibleFrom','_bodyCollection','350ffkySL','3772534KtYkby','3WUCayk','setTemplate','uiLanguageDirection','369gXXIwe','53616PVFwPM','chatHeader','38046613XzUIBT','chatDisclaimer','delegate','chatFeed','9081078rdJhrC','110teeYlR','chatControls','ck-rounded-corners','ck-reset_all','destroy','closeSourceResourceBalloon','375970wyrLrH','99208dziGRz','detachFromDom','div','ck-ai-chat','330836GzGRvi','populateSourceResourceBalloon'];_0x2692=function(){return _0x5847c5;};return _0x2692();}export class AIChatView extends _0x2656fd{[_0x1ae93b(0x136)];[_0x1ae93b(0x13a)];[_0x1ae93b(0x13d)];[_0x1ae93b(0x138)];[_0x1ae93b(0x12e)];constructor(_0x282ada,_0x24f810){var _0x39b2a6=_0x1ae93b;super(_0x282ada),this[_0x39b2a6(0x12e)]=new _0x199912(_0x282ada),this[_0x39b2a6(0x12e)][_0x39b2a6(0x12c)](),this[_0x39b2a6(0x136)]=new _0x527d7d(_0x282ada,_0x24f810[_0x39b2a6(0x12b)]),this[_0x39b2a6(0x136)][_0x39b2a6(0x139)](..._0x321fcb)['to'](this),this[_0x39b2a6(0x13a)]=new _0x516bed(_0x282ada,this[_0x39b2a6(0x12e)]),this[_0x39b2a6(0x13a)][_0x39b2a6(0x139)](..._0x321fcb)['to'](this),this[_0x39b2a6(0x13d)]=new _0x2c0730(_0x282ada,{'bodyCollection':this[_0x39b2a6(0x12e)],'contextResourcesSearchInputVisibleFrom':_0x24f810[_0x39b2a6(0x12d)]}),this[_0x39b2a6(0x13d)][_0x39b2a6(0x139)](..._0x321fcb)['to'](this),this[_0x39b2a6(0x138)]=new _0x3a4631(_0x282ada),this[_0x39b2a6(0x132)]({'tag':_0x39b2a6(0x127),'attributes':{'class':['ck',_0x39b2a6(0x13f),_0x39b2a6(0x128),_0x39b2a6(0x13e)],'dir':_0x282ada[_0x39b2a6(0x133)]},'children':[this[_0x39b2a6(0x136)],this[_0x39b2a6(0x13a)],this[_0x39b2a6(0x13d)],this[_0x39b2a6(0x138)]]});}[_0x1ae93b(0x12a)](_0x3cabb3,_0x5b8e26,_0x495b1b,_0x4e46b4){var _0x8a335b=_0x1ae93b;this[_0x8a335b(0x13d)][_0x8a335b(0x12a)](_0x3cabb3,_0x5b8e26,_0x495b1b,_0x4e46b4);}[_0x1ae93b(0x123)](_0x2f54f9){var _0x3405cc=_0x1ae93b;this[_0x3405cc(0x13d)][_0x3405cc(0x123)](_0x2f54f9);}[_0x1ae93b(0x122)](){var _0x1ba2ae=_0x1ae93b;this[_0x1ba2ae(0x12e)][_0x1ba2ae(0x126)](),super[_0x1ba2ae(0x122)]();}}