@ckeditor/ckeditor5-ai 47.1.0 → 47.2.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/build/ai.js +2 -2
  2. package/build/translations/af.js +1 -1
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/ast.js +1 -1
  5. package/build/translations/az.js +1 -1
  6. package/build/translations/be.js +1 -1
  7. package/build/translations/bg.js +1 -1
  8. package/build/translations/bn.js +1 -1
  9. package/build/translations/bs.js +1 -1
  10. package/build/translations/ca.js +1 -1
  11. package/build/translations/cs.js +1 -1
  12. package/build/translations/da.js +1 -1
  13. package/build/translations/de-ch.js +1 -1
  14. package/build/translations/de.js +1 -1
  15. package/build/translations/el.js +1 -1
  16. package/build/translations/en-au.js +1 -1
  17. package/build/translations/en-gb.js +1 -1
  18. package/build/translations/eo.js +1 -1
  19. package/build/translations/es-co.js +1 -1
  20. package/build/translations/es.js +1 -1
  21. package/build/translations/et.js +1 -1
  22. package/build/translations/eu.js +1 -1
  23. package/build/translations/fa.js +1 -1
  24. package/build/translations/fi.js +1 -1
  25. package/build/translations/fr.js +1 -1
  26. package/build/translations/gl.js +1 -1
  27. package/build/translations/gu.js +1 -1
  28. package/build/translations/he.js +1 -1
  29. package/build/translations/hi.js +1 -1
  30. package/build/translations/hr.js +1 -1
  31. package/build/translations/hu.js +1 -1
  32. package/build/translations/hy.js +1 -1
  33. package/build/translations/id.js +1 -1
  34. package/build/translations/it.js +1 -1
  35. package/build/translations/ja.js +1 -1
  36. package/build/translations/jv.js +1 -1
  37. package/build/translations/kk.js +1 -1
  38. package/build/translations/km.js +1 -1
  39. package/build/translations/kn.js +1 -1
  40. package/build/translations/ko.js +1 -1
  41. package/build/translations/ku.js +1 -1
  42. package/build/translations/lt.js +1 -1
  43. package/build/translations/lv.js +1 -1
  44. package/build/translations/ms.js +1 -1
  45. package/build/translations/nb.js +1 -1
  46. package/build/translations/ne.js +1 -1
  47. package/build/translations/nl.js +1 -1
  48. package/build/translations/no.js +1 -1
  49. package/build/translations/oc.js +1 -1
  50. package/build/translations/pl.js +1 -1
  51. package/build/translations/pt-br.js +1 -1
  52. package/build/translations/pt.js +1 -1
  53. package/build/translations/ro.js +1 -1
  54. package/build/translations/ru.js +1 -1
  55. package/build/translations/si.js +1 -1
  56. package/build/translations/sk.js +1 -1
  57. package/build/translations/sl.js +1 -1
  58. package/build/translations/sq.js +1 -1
  59. package/build/translations/sr-latn.js +1 -1
  60. package/build/translations/sr.js +1 -1
  61. package/build/translations/sv.js +1 -1
  62. package/build/translations/th.js +1 -1
  63. package/build/translations/ti.js +1 -1
  64. package/build/translations/tk.js +1 -1
  65. package/build/translations/tr.js +1 -1
  66. package/build/translations/tt.js +1 -1
  67. package/build/translations/ug.js +1 -1
  68. package/build/translations/uk.js +1 -1
  69. package/build/translations/ur.js +1 -1
  70. package/build/translations/uz.js +1 -1
  71. package/build/translations/vi.js +1 -1
  72. package/build/translations/zh-cn.js +1 -1
  73. package/build/translations/zh.js +1 -1
  74. package/dist/index-editor.css +573 -203
  75. package/dist/index.css +627 -204
  76. package/dist/index.js +5 -4
  77. package/dist/translations/af.js +1 -1
  78. package/dist/translations/af.umd.js +1 -1
  79. package/dist/translations/ar.js +1 -1
  80. package/dist/translations/ar.umd.js +1 -1
  81. package/dist/translations/ast.js +1 -1
  82. package/dist/translations/ast.umd.js +1 -1
  83. package/dist/translations/az.js +1 -1
  84. package/dist/translations/az.umd.js +1 -1
  85. package/dist/translations/be.js +1 -1
  86. package/dist/translations/be.umd.js +1 -1
  87. package/dist/translations/bg.js +1 -1
  88. package/dist/translations/bg.umd.js +1 -1
  89. package/dist/translations/bn.js +1 -1
  90. package/dist/translations/bn.umd.js +1 -1
  91. package/dist/translations/bs.js +1 -1
  92. package/dist/translations/bs.umd.js +1 -1
  93. package/dist/translations/ca.js +1 -1
  94. package/dist/translations/ca.umd.js +1 -1
  95. package/dist/translations/cs.js +1 -1
  96. package/dist/translations/cs.umd.js +1 -1
  97. package/dist/translations/da.js +1 -1
  98. package/dist/translations/da.umd.js +1 -1
  99. package/dist/translations/de-ch.js +1 -1
  100. package/dist/translations/de-ch.umd.js +1 -1
  101. package/dist/translations/de.js +1 -1
  102. package/dist/translations/de.umd.js +1 -1
  103. package/dist/translations/el.js +1 -1
  104. package/dist/translations/el.umd.js +1 -1
  105. package/dist/translations/en-au.js +1 -1
  106. package/dist/translations/en-au.umd.js +1 -1
  107. package/dist/translations/en-gb.js +1 -1
  108. package/dist/translations/en-gb.umd.js +1 -1
  109. package/dist/translations/en.js +1 -1
  110. package/dist/translations/en.umd.js +1 -1
  111. package/dist/translations/eo.js +1 -1
  112. package/dist/translations/eo.umd.js +1 -1
  113. package/dist/translations/es-co.js +1 -1
  114. package/dist/translations/es-co.umd.js +1 -1
  115. package/dist/translations/es.js +1 -1
  116. package/dist/translations/es.umd.js +1 -1
  117. package/dist/translations/et.js +1 -1
  118. package/dist/translations/et.umd.js +1 -1
  119. package/dist/translations/eu.js +1 -1
  120. package/dist/translations/eu.umd.js +1 -1
  121. package/dist/translations/fa.js +1 -1
  122. package/dist/translations/fa.umd.js +1 -1
  123. package/dist/translations/fi.js +1 -1
  124. package/dist/translations/fi.umd.js +1 -1
  125. package/dist/translations/fr.js +1 -1
  126. package/dist/translations/fr.umd.js +1 -1
  127. package/dist/translations/gl.js +1 -1
  128. package/dist/translations/gl.umd.js +1 -1
  129. package/dist/translations/gu.js +1 -1
  130. package/dist/translations/gu.umd.js +1 -1
  131. package/dist/translations/he.js +1 -1
  132. package/dist/translations/he.umd.js +1 -1
  133. package/dist/translations/hi.js +1 -1
  134. package/dist/translations/hi.umd.js +1 -1
  135. package/dist/translations/hr.js +1 -1
  136. package/dist/translations/hr.umd.js +1 -1
  137. package/dist/translations/hu.js +1 -1
  138. package/dist/translations/hu.umd.js +1 -1
  139. package/dist/translations/hy.js +1 -1
  140. package/dist/translations/hy.umd.js +1 -1
  141. package/dist/translations/id.js +1 -1
  142. package/dist/translations/id.umd.js +1 -1
  143. package/dist/translations/it.js +1 -1
  144. package/dist/translations/it.umd.js +1 -1
  145. package/dist/translations/ja.js +1 -1
  146. package/dist/translations/ja.umd.js +1 -1
  147. package/dist/translations/jv.js +1 -1
  148. package/dist/translations/jv.umd.js +1 -1
  149. package/dist/translations/kk.js +1 -1
  150. package/dist/translations/kk.umd.js +1 -1
  151. package/dist/translations/km.js +1 -1
  152. package/dist/translations/km.umd.js +1 -1
  153. package/dist/translations/kn.js +1 -1
  154. package/dist/translations/kn.umd.js +1 -1
  155. package/dist/translations/ko.js +1 -1
  156. package/dist/translations/ko.umd.js +1 -1
  157. package/dist/translations/ku.js +1 -1
  158. package/dist/translations/ku.umd.js +1 -1
  159. package/dist/translations/lt.js +1 -1
  160. package/dist/translations/lt.umd.js +1 -1
  161. package/dist/translations/lv.js +1 -1
  162. package/dist/translations/lv.umd.js +1 -1
  163. package/dist/translations/ms.js +1 -1
  164. package/dist/translations/ms.umd.js +1 -1
  165. package/dist/translations/nb.js +1 -1
  166. package/dist/translations/nb.umd.js +1 -1
  167. package/dist/translations/ne.js +1 -1
  168. package/dist/translations/ne.umd.js +1 -1
  169. package/dist/translations/nl.js +1 -1
  170. package/dist/translations/nl.umd.js +1 -1
  171. package/dist/translations/no.js +1 -1
  172. package/dist/translations/no.umd.js +1 -1
  173. package/dist/translations/oc.js +1 -1
  174. package/dist/translations/oc.umd.js +1 -1
  175. package/dist/translations/pl.js +1 -1
  176. package/dist/translations/pl.umd.js +1 -1
  177. package/dist/translations/pt-br.js +1 -1
  178. package/dist/translations/pt-br.umd.js +1 -1
  179. package/dist/translations/pt.js +1 -1
  180. package/dist/translations/pt.umd.js +1 -1
  181. package/dist/translations/ro.js +1 -1
  182. package/dist/translations/ro.umd.js +1 -1
  183. package/dist/translations/ru.js +1 -1
  184. package/dist/translations/ru.umd.js +1 -1
  185. package/dist/translations/si.js +1 -1
  186. package/dist/translations/si.umd.js +1 -1
  187. package/dist/translations/sk.js +1 -1
  188. package/dist/translations/sk.umd.js +1 -1
  189. package/dist/translations/sl.js +1 -1
  190. package/dist/translations/sl.umd.js +1 -1
  191. package/dist/translations/sq.js +1 -1
  192. package/dist/translations/sq.umd.js +1 -1
  193. package/dist/translations/sr-latn.js +1 -1
  194. package/dist/translations/sr-latn.umd.js +1 -1
  195. package/dist/translations/sr.js +1 -1
  196. package/dist/translations/sr.umd.js +1 -1
  197. package/dist/translations/sv.js +1 -1
  198. package/dist/translations/sv.umd.js +1 -1
  199. package/dist/translations/th.js +1 -1
  200. package/dist/translations/th.umd.js +1 -1
  201. package/dist/translations/ti.js +1 -1
  202. package/dist/translations/ti.umd.js +1 -1
  203. package/dist/translations/tk.js +1 -1
  204. package/dist/translations/tk.umd.js +1 -1
  205. package/dist/translations/tr.js +1 -1
  206. package/dist/translations/tr.umd.js +1 -1
  207. package/dist/translations/tt.js +1 -1
  208. package/dist/translations/tt.umd.js +1 -1
  209. package/dist/translations/ug.js +1 -1
  210. package/dist/translations/ug.umd.js +1 -1
  211. package/dist/translations/uk.js +1 -1
  212. package/dist/translations/uk.umd.js +1 -1
  213. package/dist/translations/ur.js +1 -1
  214. package/dist/translations/ur.umd.js +1 -1
  215. package/dist/translations/uz.js +1 -1
  216. package/dist/translations/uz.umd.js +1 -1
  217. package/dist/translations/vi.js +1 -1
  218. package/dist/translations/vi.umd.js +1 -1
  219. package/dist/translations/zh-cn.js +1 -1
  220. package/dist/translations/zh-cn.umd.js +1 -1
  221. package/dist/translations/zh.js +1 -1
  222. package/dist/translations/zh.umd.js +1 -1
  223. package/lang/contexts.json +8 -1
  224. package/lang/translations/af.po +52 -4
  225. package/lang/translations/ar.po +52 -4
  226. package/lang/translations/ast.po +52 -4
  227. package/lang/translations/az.po +52 -4
  228. package/lang/translations/be.po +52 -4
  229. package/lang/translations/bg.po +52 -4
  230. package/lang/translations/bn.po +52 -4
  231. package/lang/translations/bs.po +52 -4
  232. package/lang/translations/ca.po +52 -4
  233. package/lang/translations/cs.po +52 -4
  234. package/lang/translations/da.po +52 -4
  235. package/lang/translations/de-ch.po +52 -4
  236. package/lang/translations/de.po +52 -4
  237. package/lang/translations/el.po +52 -4
  238. package/lang/translations/en-au.po +52 -4
  239. package/lang/translations/en-gb.po +52 -4
  240. package/lang/translations/en.po +52 -4
  241. package/lang/translations/eo.po +52 -4
  242. package/lang/translations/es-co.po +52 -4
  243. package/lang/translations/es.po +52 -4
  244. package/lang/translations/et.po +52 -4
  245. package/lang/translations/eu.po +52 -4
  246. package/lang/translations/fa.po +52 -4
  247. package/lang/translations/fi.po +52 -4
  248. package/lang/translations/fr.po +52 -4
  249. package/lang/translations/gl.po +52 -4
  250. package/lang/translations/gu.po +52 -4
  251. package/lang/translations/he.po +52 -4
  252. package/lang/translations/hi.po +52 -4
  253. package/lang/translations/hr.po +52 -4
  254. package/lang/translations/hu.po +52 -4
  255. package/lang/translations/hy.po +52 -4
  256. package/lang/translations/id.po +52 -4
  257. package/lang/translations/it.po +52 -4
  258. package/lang/translations/ja.po +52 -4
  259. package/lang/translations/jv.po +52 -4
  260. package/lang/translations/kk.po +52 -4
  261. package/lang/translations/km.po +52 -4
  262. package/lang/translations/kn.po +52 -4
  263. package/lang/translations/ko.po +52 -4
  264. package/lang/translations/ku.po +52 -4
  265. package/lang/translations/lt.po +52 -4
  266. package/lang/translations/lv.po +52 -4
  267. package/lang/translations/ms.po +52 -4
  268. package/lang/translations/nb.po +52 -4
  269. package/lang/translations/ne.po +52 -4
  270. package/lang/translations/nl.po +52 -4
  271. package/lang/translations/no.po +52 -4
  272. package/lang/translations/oc.po +52 -4
  273. package/lang/translations/pl.po +52 -4
  274. package/lang/translations/pt-br.po +52 -4
  275. package/lang/translations/pt.po +52 -4
  276. package/lang/translations/ro.po +52 -4
  277. package/lang/translations/ru.po +52 -4
  278. package/lang/translations/si.po +52 -4
  279. package/lang/translations/sk.po +52 -4
  280. package/lang/translations/sl.po +52 -4
  281. package/lang/translations/sq.po +52 -4
  282. package/lang/translations/sr-latn.po +52 -4
  283. package/lang/translations/sr.po +52 -4
  284. package/lang/translations/sv.po +52 -4
  285. package/lang/translations/th.po +52 -4
  286. package/lang/translations/ti.po +52 -4
  287. package/lang/translations/tk.po +52 -4
  288. package/lang/translations/tr.po +52 -4
  289. package/lang/translations/tt.po +52 -4
  290. package/lang/translations/ug.po +52 -4
  291. package/lang/translations/uk.po +52 -4
  292. package/lang/translations/ur.po +52 -4
  293. package/lang/translations/uz.po +52 -4
  294. package/lang/translations/vi.po +52 -4
  295. package/lang/translations/zh-cn.po +52 -4
  296. package/lang/translations/zh.po +52 -4
  297. package/package.json +15 -15
  298. package/src/aiactions/aiactions.d.ts +1 -1
  299. package/src/aiactions/aiactions.js +1 -1
  300. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  301. package/src/aiactions/model/aiactionsreply.js +1 -1
  302. package/src/aiassistant/adapters/aiadapter.js +1 -1
  303. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  304. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  305. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  306. package/src/aiassistant/aiassistant.js +1 -1
  307. package/src/aiassistant/aiassistantediting.js +1 -1
  308. package/src/aiassistant/aiassistantui.js +1 -1
  309. package/src/aiassistant/legacyerrors.js +1 -1
  310. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  311. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  312. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  313. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformview.js +1 -1
  316. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  318. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  319. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  320. package/src/aiassistant/utils/common-translations.js +1 -1
  321. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  322. package/src/aiballoon/aiballoon.d.ts +5 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  325. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  326. package/src/aiballoon/ui/aiballoonview.d.ts +40 -1
  327. package/src/aiballoon/ui/aiballoonview.js +1 -1
  328. package/src/aichat/aichat.js +1 -1
  329. package/src/aichat/aichatcontroller.d.ts +1 -1
  330. package/src/aichat/aichatcontroller.js +1 -1
  331. package/src/aichat/aichatui.d.ts +1 -0
  332. package/src/aichat/aichatui.js +1 -1
  333. package/src/aichat/model/aichatcontext.d.ts +4 -0
  334. package/src/aichat/model/aichatcontext.js +1 -1
  335. package/src/aichat/model/aichatconversation.js +1 -1
  336. package/src/aichat/model/aichatinteraction.js +1 -1
  337. package/src/aichat/model/aichatmodels.d.ts +8 -29
  338. package/src/aichat/model/aichatmodels.js +1 -1
  339. package/src/aichat/ui/aichatcontrolsview.d.ts +4 -1
  340. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  341. package/src/aichat/ui/aichatfeedview.d.ts +2 -2
  342. package/src/aichat/ui/aichatfeedview.js +1 -1
  343. package/src/aichat/ui/aichatheaderview.js +1 -1
  344. package/src/aichat/ui/aichatview.d.ts +4 -1
  345. package/src/aichat/ui/aichatview.js +1 -1
  346. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  348. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  349. package/src/aichat/ui/controls/aichatcontextpanelview.d.ts +4 -1
  350. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  351. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  352. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  353. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  354. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  355. package/src/aichat/ui/controls/resources/{aichatresourceslistview.d.ts → aichatcontextresourceslistview.d.ts} +1 -1
  356. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +23 -0
  357. package/src/aichat/ui/controls/resources/{aichatresourcesview.d.ts → aichatcontextresourcesview.d.ts} +5 -2
  358. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +23 -0
  359. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  360. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.d.ts +4 -0
  361. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  362. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  366. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  367. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  368. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +3 -3
  369. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  370. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +3 -3
  371. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  372. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  373. package/src/aichat/utils/eventnames.js +1 -1
  374. package/src/aichat/utils/promisequeue.js +1 -1
  375. package/src/aichat/utils/scrollmanager.js +1 -1
  376. package/src/aichathistory/aichathistory.js +1 -1
  377. package/src/aichathistory/aichathistorycontroller.js +1 -1
  378. package/src/aichathistory/aichathistoryui.js +1 -1
  379. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  380. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  381. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  382. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -1
  383. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  384. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  385. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  386. package/src/aiconfig.d.ts +28 -7
  387. package/src/aicore/aiconnector.d.ts +1 -0
  388. package/src/aicore/aiconnector.js +1 -1
  389. package/src/aicore/aiediting.js +1 -1
  390. package/src/aicore/model/aicapabilities.js +1 -1
  391. package/src/aicore/model/aicontext.js +1 -1
  392. package/src/aicore/model/aiinteraction.js +1 -1
  393. package/src/aicore/model/aimodels.d.ts +66 -0
  394. package/src/aicore/model/aimodels.js +23 -0
  395. package/src/aicore/model/aireply.d.ts +9 -1
  396. package/src/aicore/model/aireply.js +1 -1
  397. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  398. package/src/aicore/pipeline/airesponseparser.js +2 -2
  399. package/src/aicore/ui/aidisclaimerview.js +1 -1
  400. package/src/aicore/ui/aiskeleton.js +1 -1
  401. package/src/aicore/ui/aispinner.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.d.ts +5 -2
  404. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +3 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.d.ts +6 -2
  408. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.js +1 -1
  412. package/src/aicore/utils/documentposition.js +1 -1
  413. package/src/aicore/utils/documentrange.js +1 -1
  414. package/src/aicore/utils/eventnames.js +1 -1
  415. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  416. package/src/aicore/utils/getoperationsfromreply.d.ts +2 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aieditorintegration/aieditorintegration.d.ts +2 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  433. package/src/aireviewmode/aireviewmode.js +1 -1
  434. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  435. package/src/aireviewmode/aireviewmodeediting.d.ts +18 -0
  436. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  437. package/src/aireviewmode/aireviewmodeui.d.ts +1 -1
  438. package/src/aireviewmode/aireviewmodeui.js +1 -1
  439. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  440. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +3 -3
  441. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  442. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  443. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  444. package/src/aireviewmode/model/aireviewcheckresultchange.d.ts +1 -1
  445. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewmode/model/aireviewcheckrun.d.ts +9 -10
  447. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  448. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  449. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  450. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  451. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  452. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.d.ts +6 -0
  453. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  454. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  455. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.d.ts +13 -0
  456. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +23 -0
  457. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  458. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.d.ts +9 -1
  459. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  460. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  461. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.d.ts +0 -4
  462. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  463. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  464. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  465. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  466. package/src/aitabs/aitabs.js +1 -1
  467. package/src/aitabs/aitabsmainview.js +1 -1
  468. package/src/aitabs/tabs/aitabsview.js +1 -1
  469. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  470. package/src/aitabs/tabs/tabpanelview.js +1 -1
  471. package/src/errors.js +1 -1
  472. package/src/index.d.ts +1 -0
  473. package/src/index.js +1 -1
  474. package/theme/aiballoon/aiballoon.css +12 -0
  475. package/theme/aichat/aichat-controls/aichat-context-chip.css +1 -1
  476. package/theme/aichat/aichat-controls/aichat-context-controls-balloon-panels.css +52 -43
  477. package/theme/aichat/aichat-controls/aichat-controls-button.css +8 -6
  478. package/theme/aichat/aichat-controls/aichat-controls-loader.css +36 -52
  479. package/theme/aichat/aichat-controls/prompt-capabilities.css +0 -1
  480. package/theme/aichat/aichat-controls.css +11 -27
  481. package/theme/aichat/aichat.css +2 -3
  482. package/theme/aichat/aichatfeed.css +1 -27
  483. package/theme/aichat/aichathistory.css +12 -0
  484. package/theme/aichat/aisuggestioncontainer.css +5 -0
  485. package/theme/aireviewmode/aireviewmode-check-list.css +25 -23
  486. package/theme/aireviewmode/aireviewmode-check-run-result.css +45 -0
  487. package/theme/aireviewmode/aireviewmode-check-run.css +28 -5
  488. package/theme/aireviewmode/aireviewmode.css +17 -7
  489. package/theme/aitabs/aitabsview.css +1 -1
  490. package/theme/aitabs/tabs/tabbuttonview.css +1 -0
  491. package/theme/aitabs/tabs/tabsview.css +1 -0
  492. package/theme/common/aibutton.css +27 -0
  493. package/theme/common/aiheader.css +14 -4
  494. package/theme/common/aitrackchanges.css +8 -1
  495. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +0 -23
  496. package/src/aichat/ui/controls/resources/aichatresourcesview.js +0 -23
  497. package/src/aireviewmode/model/aireviewmodels.d.ts +0 -26
  498. package/src/aireviewmode/model/aireviewmodels.js +0 -23
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c4a56=_0x2432;(function(_0x368909,_0xf1c8f1){const _0x44197c=_0x2432,_0x25bca5=_0x368909();while(!![]){try{const _0x2bec96=-parseInt(_0x44197c(0x26b))/0x1+parseInt(_0x44197c(0x2b4))/0x2*(parseInt(_0x44197c(0x2a2))/0x3)+-parseInt(_0x44197c(0x28c))/0x4*(parseInt(_0x44197c(0x25d))/0x5)+-parseInt(_0x44197c(0x228))/0x6*(parseInt(_0x44197c(0x226))/0x7)+-parseInt(_0x44197c(0x203))/0x8*(parseInt(_0x44197c(0x219))/0x9)+-parseInt(_0x44197c(0x23d))/0xa+-parseInt(_0x44197c(0x27e))/0xb*(-parseInt(_0x44197c(0x227))/0xc);if(_0x2bec96===_0xf1c8f1)break;else _0x25bca5['push'](_0x25bca5['shift']());}catch(_0x3a4ee2){_0x25bca5['push'](_0x25bca5['shift']());}}}(_0x5d6c,0x4daef));import{ContextPlugin as _0x21d8ed,Editor as _0x27a92a}from'ckeditor5/src/core.js';import{CKEditorError as _0x13f2ac,logError as _0xbcf11b,scrollViewportToShowTarget as _0x59c6ad,uid as _0x38bd85}from'ckeditor5/src/utils.js';import{AIConnector as _0x2d2c2e}from'../aicore/aiconnector.js';import{AITabs as _0x44b1ea}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2f446f}from'./model/aichatconversation.js';import{getTranslation as _0x1523b1}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3a377a}from'../aicore/aiediting.js';import{AIChatModels as _0x291dd3}from'./model/aichatmodels.js';import{getEditorFromContext as _0x40cd09}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4fad48,DATA_ID_MODEL_ATTRIBUTE as _0x144524}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x44190b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xee9603,getMinimalSelection as _0x31f8ce,getSuggestionPartsFromReply as _0x2b2350}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x5bf0a5,_DetachOperation as _0xf7d8c}from'ckeditor5/src/engine.js';import{findOne as _0x37f9bf,getAttribute as _0x366774,serialize as _0x1007e6,Document as _0x3d00cc,findByAttribute as _0xa2728e}from'../aicore/utils/htmlparser.js';import{IconAI as _0x5e93f1}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x5e61a5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x2432(_0x3bbebe,_0x46e960){const _0x5d6c83=_0x5d6c();return _0x2432=function(_0x243239,_0x3ae7fd){_0x243239=_0x243239-0x1b0;let _0x424ab3=_0x5d6c83[_0x243239];return _0x424ab3;},_0x2432(_0x3bbebe,_0x46e960);}import{AIBalloon as _0x48b72c}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x21d8ed{[_0x2c4a56(0x1ce)];[_0x2c4a56(0x1f2)];[_0x2c4a56(0x2b3)];[_0x2c4a56(0x295)];[_0x2c4a56(0x205)]=new Map();[_0x2c4a56(0x207)]=null;[_0x2c4a56(0x25e)]=!0x1;static get[_0x2c4a56(0x244)](){return[_0x2d2c2e,_0x48b72c,_0x4fad48];}static get[_0x2c4a56(0x1bc)](){const _0x31ec0d=_0x2c4a56;return _0x31ec0d(0x2d2);}static get[_0x2c4a56(0x2ec)](){return!0x0;}static get[_0x2c4a56(0x2d9)](){return!0x0;}[_0x2c4a56(0x1e5)](){const _0x412031=_0x2c4a56;this[_0x412031(0x1f2)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x26c)),this[_0x412031(0x2b3)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x1c4)),this[_0x412031(0x1ce)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x300)),this[_0x412031(0x295)]=new _0x291dd3({'connector':this[_0x412031(0x1f2)],'displayedModels':this[_0x412031(0x2fa)][_0x412031(0x2c3)][_0x412031(0x1b3)](_0x412031(0x2a0)),'defaultModelId':this[_0x412031(0x2fa)][_0x412031(0x2c3)][_0x412031(0x1b3)](_0x412031(0x1fa))});const _0x3bb6e0=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x242));this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1e9),()=>{const _0x41acfb=_0x412031;this[_0x41acfb(0x2f2)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x301),(_0x5ca84f,_0x2e9506)=>{const _0x179279=_0x412031;this[_0x179279(0x212)]({'userMessage':_0x2e9506});}),this[_0x412031(0x21e)](_0x3bb6e0,_0x412031(0x277),(_0x24df47,_0x4c9818)=>{const _0x1d5167=_0x412031;this[_0x1d5167(0x257)](_0x4c9818);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x25c),()=>{const _0x2c36f5=_0x412031;_0x3bb6e0[_0x2c36f5(0x2ac)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x239),async()=>{const _0x371696=_0x412031;await this[_0x371696(0x1c9)](),await this[_0x371696(0x1e2)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2e9),()=>{const _0x2bff2f=_0x412031;this[_0x2bff2f(0x267)]?.[_0x2bff2f(0x304)](_0x1523b1(this[_0x2bff2f(0x2fa)][_0x2bff2f(0x284)],_0x2bff2f(0x2f8)));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2b1),(_0x4c5014,_0x2b52fb)=>{const _0x391932=_0x412031;this[_0x391932(0x267)]?.[_0x391932(0x2de)](Array[_0x391932(0x1ea)](_0x2b52fb));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x225),(_0x5a4696,_0x1df7ee)=>{const _0x546783=_0x412031;this[_0x546783(0x267)]?.[_0x546783(0x225)](_0x1df7ee);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x232),(_0x155d98,_0x387bf0)=>{const _0xba6fe5=_0x412031;this[_0xba6fe5(0x267)]?.[_0xba6fe5(0x232)](_0x387bf0[_0xba6fe5(0x1e0)],_0x387bf0[_0xba6fe5(0x303)]);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x246),(_0x42549d,_0x599a6f)=>{const _0x11f621=_0x412031;this[_0x11f621(0x24b)](_0x599a6f);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1c7),(_0x35db47,_0x2257f6)=>{const _0x131c53=_0x412031;this[_0x131c53(0x267)]?.[_0x131c53(0x1c7)](_0x2257f6[_0x131c53(0x298)],_0x2257f6[_0x131c53(0x29c)],_0x2257f6[_0x131c53(0x1c0)]);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1d3),()=>{const _0x430e30=_0x412031;this[_0x430e30(0x2b5)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x27b),()=>{const _0x18e06a=_0x412031;this[_0x18e06a(0x2a9)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2f1),(_0x22db90,_0x7c2f74)=>{const _0x231ab1=_0x412031;this[_0x231ab1(0x267)]?.[_0x231ab1(0x1d6)](_0x7c2f74);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x305),(_0x5aa41f,{replyId:_0x2abb08})=>{const _0x4d058a=_0x412031;console[_0x4d058a(0x23b)](_0x4d058a(0x204),_0x2abb08);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2c4),(_0x4eab41,{replyId:_0x1f3bc2})=>{const _0x4ded23=_0x412031;console[_0x4ded23(0x23b)](_0x4ded23(0x27f),_0x1f3bc2);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x241),(_0x537ba8,_0xa8af17)=>{const _0x4e3b3a=_0x412031;this[_0x4e3b3a(0x2fa)][_0x4e3b3a(0x2e3)][_0x4e3b3a(0x1b3)](_0x48b72c)[_0x4e3b3a(0x2e5)](),this[_0x4e3b3a(0x280)](_0xa8af17);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2d3),(_0x1bb8c6,{replyId:_0x3d8cf4,partIndex:_0x4007e1})=>{const _0x584b40=_0x412031;this[_0x584b40(0x25e)]=this[_0x584b40(0x2b3)][_0x584b40(0x1ec)],this[_0x584b40(0x278)](_0x3d8cf4,_0x4007e1);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2ed),(_0x54ad76,{replyId:_0xfd2e78,partIndex:_0x2a7013})=>{const _0x268dfa=_0x412031,_0x2628e5=this[_0x268dfa(0x1fb)](_0xfd2e78,_0x2a7013);_0x2628e5&&_0x268dfa(0x290)!=_0x2628e5[_0x268dfa(0x2ad)][_0x268dfa(0x2cf)][_0x268dfa(0x2d4)]&&this[_0x268dfa(0x1ce)][_0x268dfa(0x2dc)]([_0x2628e5[_0x268dfa(0x2ad)]],_0x268dfa(0x23a));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x283),()=>{const _0x52e978=_0x412031;this[_0x52e978(0x1ce)][_0x52e978(0x306)](_0x52e978(0x23a));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x221),(_0x14c549,_0x3f462a)=>{const _0x1f1368=_0x412031;this[_0x1f1368(0x2fa)][_0x1f1368(0x2e3)][_0x1f1368(0x1b3)](_0x48b72c)[_0x1f1368(0x2e5)](),this[_0x1f1368(0x1b9)](_0x3f462a);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x297),async(_0x4fbd38,_0x3369f1)=>{const _0x312c24=_0x412031,{reply:_0x1d49bb}=this[_0x312c24(0x206)](_0x3369f1[_0x312c24(0x2d0)]),_0x589337=_0x40cd09(this[_0x312c24(0x2fa)]),_0x43a9dd=_0x2b2350({'editor':_0x589337,'changeGroups':_0x1d49bb[_0x312c24(0x2df)],'documentContextContent':_0x1d49bb[_0x312c24(0x25a)],'showDiff':_0x3369f1[_0x312c24(0x1ec)]});await this[_0x312c24(0x2b3)][_0x312c24(0x1c1)]({'id':_0x1d49bb['id'],'parts':_0x43a9dd,'renderingStrategy':_0x312c24(0x288)});}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x224),(_0x452063,{replyId:_0x1fa3b8,partIndex:_0x2a276c})=>{const _0x328d8f=_0x412031;this[_0x328d8f(0x207)]?.[_0x328d8f(0x2d0)]==_0x1fa3b8&&this[_0x328d8f(0x207)]?.[_0x328d8f(0x208)]==_0x2a276c&&this[_0x328d8f(0x2fa)][_0x328d8f(0x2e3)][_0x328d8f(0x1b3)](_0x48b72c)[_0x328d8f(0x2e5)]();const {reply:_0x4503d3}=this[_0x328d8f(0x206)](_0x1fa3b8);_0x4503d3[_0x328d8f(0x27a)](_0x2a276c,_0x328d8f(0x287)),this[_0x328d8f(0x1ce)][_0x328d8f(0x306)](_0x328d8f(0x23a));});}async[_0x2c4a56(0x234)](){const _0x584531=_0x2c4a56;this[_0x584531(0x2fa)]instanceof _0x27a92a?this[_0x584531(0x265)](this[_0x584531(0x2fa)]):this[_0x584531(0x21e)](this[_0x584531(0x2fa)][_0x584531(0x2ee)],_0x584531(0x255),(_0x349cd1,_0x1a8e7d)=>{const _0x287529=_0x584531;_0x1a8e7d['on'](_0x287529(0x24a),()=>{const _0x13e355=_0x287529;this[_0x13e355(0x265)](_0x1a8e7d);});}),await this[_0x584531(0x2f2)]();}[_0x2c4a56(0x280)](_0x17faf9){const _0xd488ee=_0x2c4a56,_0x48952b=_0x40cd09(this[_0xd488ee(0x2fa)]);if(!_0x48952b[_0xd488ee(0x2e3)][_0xd488ee(0x26f)](_0xd488ee(0x2aa)))return;const _0x2de736=this[_0xd488ee(0x2fa)][_0xd488ee(0x2e3)][_0xd488ee(0x1b3)](_0xd488ee(0x26d)),{reply:_0x1221f1,interaction:_0x5d420d}=this[_0xd488ee(0x206)](_0x17faf9[_0xd488ee(0x2d0)]),_0x2c9bae=this[_0xd488ee(0x1fb)](_0x17faf9[_0xd488ee(0x2d0)],_0x17faf9[_0xd488ee(0x208)]),_0x325bc2=void 0x0!==_0x17faf9[_0xd488ee(0x208)]?[_0x1221f1[_0xd488ee(0x2df)][_0x17faf9[_0xd488ee(0x208)]]]:_0x1221f1[_0xd488ee(0x2df)][_0xd488ee(0x1f3)](_0x1b705b=>_0xd488ee(0x1bb)==_0x1b705b[_0xd488ee(0x26a)]),_0x49ffa1=_0x325bc2[_0xd488ee(0x23e)](_0x4b1cc0=>_0x1221f1[_0xd488ee(0x2df)][_0xd488ee(0x1e3)](_0x4b1cc0));if(!_0x2c9bae||_0xd488ee(0x290)==_0x2c9bae[_0xd488ee(0x2ad)][_0xd488ee(0x2cf)][_0xd488ee(0x2d4)])return void _0x49ffa1[_0xd488ee(0x264)](_0x25f9f7=>_0x1221f1[_0xd488ee(0x27a)](_0x25f9f7,_0xd488ee(0x229)));_0x49ffa1[_0xd488ee(0x264)](_0x99de46=>_0x1221f1[_0xd488ee(0x27a)](_0x99de46,_0xd488ee(0x275)));const _0x340900=_0x44190b({'editor':_0x48952b,'reply':_0x1221f1,'interaction':_0x5d420d,'groups':_0x325bc2,'transform':!0x0,'documentCompare':_0x2de736,'documentCompareOptions':{'anchor':_0xd488ee(0x1e7),'markDeletions':!0x0}});let _0x519e0d;_0x2c9bae&&this[_0xd488ee(0x22a)](_0x2c9bae[_0xd488ee(0x2ad)]),_0x48952b[_0xd488ee(0x1f5)][_0xd488ee(0x29e)](_0x381829=>{const _0x18c6fc=_0xd488ee;_0x519e0d=_0x381829[_0x18c6fc(0x22e)],_0x48952b[_0x18c6fc(0x2e3)][_0x18c6fc(0x1b3)](_0x18c6fc(0x2aa))[_0x18c6fc(0x254)](_0x340900),this[_0x18c6fc(0x1ce)][_0x18c6fc(0x306)](_0x18c6fc(0x23a));}),this[_0xd488ee(0x205)][_0xd488ee(0x279)](_0x519e0d,{'interactionId':_0x5d420d['id'],'replyId':_0x1221f1['id'],'indexes':_0x49ffa1[_0xd488ee(0x23c)]()}),this[_0xd488ee(0x276)](_0x1221f1);}[_0x2c4a56(0x1b9)](_0x283218){const _0x4d2ace=_0x2c4a56,_0x198fae=_0x40cd09(this[_0x4d2ace(0x2fa)]),_0x41b8a3=this[_0x4d2ace(0x2fa)][_0x4d2ace(0x2e3)][_0x4d2ace(0x1b3)](_0x4fad48),{reply:_0x29334b,interaction:_0x5c53a7}=this[_0x4d2ace(0x206)](_0x283218[_0x4d2ace(0x2d0)]),_0x306661=this[_0x4d2ace(0x1fb)](_0x283218[_0x4d2ace(0x2d0)],_0x283218[_0x4d2ace(0x208)]),_0xc51f0a=void 0x0!==_0x283218[_0x4d2ace(0x208)]?[_0x29334b[_0x4d2ace(0x2df)][_0x283218[_0x4d2ace(0x208)]]]:_0x29334b[_0x4d2ace(0x2df)][_0x4d2ace(0x1f3)](_0x481fd0=>_0x4d2ace(0x1bb)==_0x481fd0[_0x4d2ace(0x26a)]),_0x41649c=_0xc51f0a[_0x4d2ace(0x23e)](_0x19e4e5=>_0x29334b[_0x4d2ace(0x2df)][_0x4d2ace(0x1e3)](_0x19e4e5));if(!_0x306661||_0x4d2ace(0x290)==_0x306661[_0x4d2ace(0x2ad)][_0x4d2ace(0x2cf)][_0x4d2ace(0x2d4)])return void _0x41649c[_0x4d2ace(0x264)](_0x5dea67=>_0x29334b[_0x4d2ace(0x27a)](_0x5dea67,_0x4d2ace(0x229)));_0x41649c[_0x4d2ace(0x264)](_0x1977b5=>_0x29334b[_0x4d2ace(0x27a)](_0x1977b5,_0x4d2ace(0x275)));const _0x42b283=_0x44190b({'editor':_0x198fae,'reply':_0x29334b,'interaction':_0x5c53a7,'groups':_0xc51f0a,'transform':!0x0,'documentCompare':_0x41b8a3,'documentCompareOptions':{'anchor':_0x4d2ace(0x1e7),'markDeletions':!0x1}});let _0x13f20a;_0x306661&&this[_0x4d2ace(0x22a)](_0x306661[_0x4d2ace(0x2ad)]),_0x198fae[_0x4d2ace(0x1f5)][_0x4d2ace(0x29e)](_0x5f149c=>{const _0x1c0400=_0x4d2ace;_0x13f20a=_0x5f149c[_0x1c0400(0x22e)];for(const _0x3e34ca of _0x42b283)_0x3e34ca[_0x1c0400(0x202)]=_0x198fae[_0x1c0400(0x1f5)][_0x1c0400(0x2a3)][_0x1c0400(0x2e6)],_0x5f149c[_0x1c0400(0x22e)][_0x1c0400(0x299)](_0x3e34ca),_0x198fae[_0x1c0400(0x1f5)][_0x1c0400(0x286)](_0x3e34ca);}),this[_0x4d2ace(0x205)][_0x4d2ace(0x279)](_0x13f20a,{'interactionId':_0x5c53a7['id'],'replyId':_0x29334b['id'],'indexes':_0x41649c[_0x4d2ace(0x23c)]()}),this[_0x4d2ace(0x276)](_0x29334b);}[_0x2c4a56(0x278)](_0x3cb7a5,_0xbfb1be){const _0x1526a6=_0x2c4a56,_0x1c9cfd=_0x40cd09(this[_0x1526a6(0x2fa)]),_0x302654=this[_0x1526a6(0x1fb)](_0x3cb7a5,_0xbfb1be),_0x2e5239=this[_0x1526a6(0x2fa)][_0x1526a6(0x2e3)][_0x1526a6(0x1b3)](_0x48b72c);if(!_0x302654)return void _0x2e5239[_0x1526a6(0x2e5)]();const {range:_0x3507d4,currentIndex:_0x2c248a,previousIndex:_0x45747e,nextIndex:_0x497460}=_0x302654;if(_0x1526a6(0x290)==_0x3507d4[_0x1526a6(0x2cf)][_0x1526a6(0x2d4)]){const {reply:_0x36c463}=this[_0x1526a6(0x206)](_0x3cb7a5);return _0x36c463[_0x1526a6(0x27a)](_0x2c248a,_0x1526a6(0x229)),void _0x2e5239[_0x1526a6(0x2e5)]();}if(this[_0x1526a6(0x207)]?.[_0x1526a6(0x2d0)]==_0x3cb7a5&&this[_0x1526a6(0x207)]?.[_0x1526a6(0x208)]==_0x2c248a)return;this[_0x1526a6(0x207)]={'replyId':_0x3cb7a5,'partIndex':_0x2c248a};const _0xc16f5e=new _0x5e61a5(_0x1c9cfd[_0x1526a6(0x284)],{'showDiff':this[_0x1526a6(0x25e)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x1526a6(0x248)},'hideHeader':!0x0}),{reply:_0x5ba0de}=this[_0x1526a6(0x206)](_0x3cb7a5),_0x4b0efa=_0x2b2350({'editor':_0x1c9cfd,'changeGroups':[_0x5ba0de[_0x1526a6(0x2df)][_0x2c248a]],'documentContextContent':_0x5ba0de[_0x1526a6(0x25a)],'showDiff':this[_0x1526a6(0x25e)]});_0xc16f5e[_0x1526a6(0x231)]({'parts':_0x4b0efa,'renderingStrategy':_0x1526a6(0x288)});const _0x1d5d5f=_0x2c248a!==_0x45747e;this[_0x1526a6(0x22a)](_0x3507d4,!0x0),_0x2e5239[_0x1526a6(0x2d6)]({'index':_0x2c248a,'title':_0x1523b1(this[_0x1526a6(0x2fa)][_0x1526a6(0x284)],_0x1526a6(0x292),(_0x2c248a+0x1)[_0x1526a6(0x2dd)]()),'icon':_0x5e93f1,'mainView':_0xc16f5e,'showRotator':_0x1d5d5f,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x3507d4]}),this[_0x1526a6(0x2b3)][_0x1526a6(0x1f8)](_0x3cb7a5,_0x2c248a),this[_0x1526a6(0x21e)](_0xc16f5e,_0x1526a6(0x297),(_0x17e29e,{showDiff:_0x2ed248})=>{const _0x14cdf2=_0x1526a6;this[_0x14cdf2(0x25e)]=_0x2ed248;const {reply:_0x42afa2}=this[_0x14cdf2(0x206)](_0x3cb7a5),_0x4355b0=_0x2b2350({'editor':_0x1c9cfd,'changeGroups':[_0x42afa2[_0x14cdf2(0x2df)][_0x2c248a]],'documentContextContent':_0x42afa2[_0x14cdf2(0x25a)],'showDiff':_0x2ed248});_0xc16f5e[_0x14cdf2(0x231)]({'parts':_0x4355b0,'renderingStrategy':_0x14cdf2(0x288)});}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x221),()=>{const _0x1ea9d8=_0x1526a6;this[_0x1ea9d8(0x1b9)]({'replyId':_0x3cb7a5,'partIndex':_0x2c248a}),_0x1d5d5f?this[_0x1ea9d8(0x278)](_0x3cb7a5,_0x497460):_0x2e5239[_0x1ea9d8(0x2e5)]();}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x241),()=>{const _0x1f1158=_0x1526a6;this[_0x1f1158(0x280)]({'replyId':_0x3cb7a5,'partIndex':_0x2c248a}),_0x1d5d5f?this[_0x1f1158(0x278)](_0x3cb7a5,_0x497460):_0x2e5239[_0x1f1158(0x2e5)]();}),_0x1d5d5f&&(this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x2bc),()=>{const _0x35f78b=_0x1526a6;this[_0x35f78b(0x278)](_0x3cb7a5,_0x497460);}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x2ba),()=>{const _0x236a33=_0x1526a6;this[_0x236a33(0x278)](_0x3cb7a5,_0x45747e);})),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x247),()=>{const _0x34fe3b=_0x1526a6;this[_0x34fe3b(0x2c1)](_0x2e5239),this[_0x34fe3b(0x2c1)](_0xc16f5e),this[_0x34fe3b(0x207)]=null;});}[_0x2c4a56(0x1fb)](_0x2c9baa,_0x573c24){const _0x3b964f=_0x2c4a56,_0x34f13d=_0x40cd09(this[_0x3b964f(0x2fa)]),{reply:_0x14c031,interaction:_0x51408a}=this[_0x3b964f(0x206)](_0x2c9baa),_0x34997e=_0x14c031[_0x3b964f(0x2df)][_0x3b964f(0x1f3)](_0xd21e85=>_0x3b964f(0x1bb)==_0xd21e85[_0x3b964f(0x26a)]),_0x10b880=_0x34997e[_0x3b964f(0x23e)](_0x139a30=>_0x14c031[_0x3b964f(0x2df)][_0x3b964f(0x1e3)](_0x139a30));void 0x0===_0x573c24&&(_0x573c24=_0x10b880[0x0]);const _0x567ce0=_0x10b880[_0x3b964f(0x1e3)](_0x573c24);if(-0x1==_0x567ce0)return null;const _0x113c59=0x0==_0x567ce0?_0x10b880[_0x10b880[_0x3b964f(0x1f0)]-0x1]:_0x10b880[_0x567ce0-0x1],_0xf72e3c=_0x567ce0==_0x10b880[_0x3b964f(0x1f0)]-0x1?_0x10b880[0x0]:_0x10b880[_0x567ce0+0x1],_0x58e215=_0x34997e[_0x567ce0],_0x1c8f2c=new _0x3d00cc([]),_0xb98c17=new _0x3d00cc([]);for(const _0x544504 of _0x58e215[_0x3b964f(0x1b4)])if(_0x3b964f(0x2b2)!=_0x544504[_0x3b964f(0x2b9)]&&_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x544504[_0x3b964f(0x1cd)][_0x3b964f(0x20c)](!0x0)),_0x3b964f(0x27c)!=_0x544504[_0x3b964f(0x2b9)]){const _0x49bdf6=_0x37f9bf(_0x4a244d=>_0x366774(_0x4a244d,_0x3b964f(0x2f3))==_0x544504['id'],_0x14c031[_0x3b964f(0x25a)],!0x0);_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x49bdf6[_0x3b964f(0x20c)](!0x0));}if(0x0==_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x1f0)]){if(_0x58e215[_0x3b964f(0x1b4)][0x0][_0x3b964f(0x2ff)]){const _0x241e01=_0xa2728e(_0x3b964f(0x2f3),_0x58e215[_0x3b964f(0x1b4)][0x0][_0x3b964f(0x2ff)],_0x14c031[_0x3b964f(0x25a)]);_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x294)](_0x241e01[_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x294)](_0x241e01[_0x3b964f(0x20c)](!0x0)),_0x241e01[_0x3b964f(0x2fb)]&&(_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x241e01[_0x3b964f(0x2fb)][_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x241e01[_0x3b964f(0x2fb)][_0x3b964f(0x20c)](!0x0)));}else{const _0x5ab2a2=_0x14c031[_0x3b964f(0x25a)][_0x3b964f(0x235)][0x0];if(!_0x5ab2a2)return null;_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x5ab2a2[_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x5ab2a2[_0x3b964f(0x20c)](!0x0));}}const _0x50b363=_0x51408a[_0x3b964f(0x2bd)](),_0x3f5e2a=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x50b363[_0x3b964f(0x1b8)]),_0x8d4862=_0x1007e6(_0x1c8f2c),_0x5da925=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x8d4862),_0x153af4=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x8d4862),_0x52a5f2=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x1ca)](_0x5da925,0x0),_0x9b2790=_0x1007e6(_0xb98c17),_0x2a4414={'anchor':_0x52a5f2,'markDeletions':!0x1},_0x963b2f=_0x34f13d[_0x3b964f(0x2e3)][_0x3b964f(0x1b3)](_0x4fad48)[_0x3b964f(0x2e1)](_0x8d4862,_0x9b2790,_0x2a4414)[_0x3b964f(0x1fc)]();if(!_0x963b2f[_0x3b964f(0x1f0)])return null;_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x29e)](_0x515d7d=>{const _0x38e6bb=_0x3b964f;for(const _0x49ed5a of _0x963b2f)if(_0x38e6bb(0x2c7)==_0x49ed5a[_0x38e6bb(0x2b9)]){const _0x3e66d1=_0x49ed5a[_0x38e6bb(0x249)],_0x2d83a9=_0x49ed5a[_0x38e6bb(0x245)],_0x5f1495=new _0xf7d8c(_0x3e66d1,_0x2d83a9);_0x515d7d[_0x38e6bb(0x22e)][_0x38e6bb(0x299)](_0x5f1495),_0x34f13d[_0x38e6bb(0x1f5)][_0x38e6bb(0x286)](_0x5f1495);}else _0x38e6bb(0x2b0)!==_0x49ed5a[_0x38e6bb(0x2b9)]&&(_0x49ed5a[_0x38e6bb(0x202)]=null,_0x49ed5a[_0x38e6bb(0x1d4)]=!0x1,_0x515d7d[_0x38e6bb(0x22e)][_0x38e6bb(0x299)](_0x49ed5a),_0x34f13d[_0x38e6bb(0x1f5)][_0x38e6bb(0x286)](_0x49ed5a));});const _0xfd6ffa=_0x31f8ce(_0x34f13d,_0x963b2f,_0x5da925);_0xee9603(_0x34f13d[_0x3b964f(0x1f5)],_0xfd6ffa);const _0x3eee37=_0xfd6ffa[_0x3b964f(0x291)]()[_0x3b964f(0x237)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x176a52=_0xfd6ffa[_0x3b964f(0x291)]()[_0x3b964f(0x282)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x3ddd8d=[];let _0x4e72e9=_0x5da925,_0x18a0c7=_0x153af4;for(let _0x163192=0x0;_0x163192<_0x176a52[_0x3b964f(0x1f0)];_0x163192++){const _0x2af8b3=_0x4e72e9[_0x3b964f(0x269)]-_0x176a52[_0x163192];_0x3ddd8d[_0x163192]=_0x18a0c7[_0x3b964f(0x269)]-_0x2af8b3,_0x4e72e9=_0x4e72e9[_0x3b964f(0x2f5)](_0x176a52[_0x163192]),_0x18a0c7=_0x18a0c7[_0x3b964f(0x2f5)](_0x3ddd8d[_0x163192]);}const _0x2df56c=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2ea)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x153af4,_0x3eee37),_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x153af4,_0x3ddd8d)),_0x2e7c9c=_0x153af4[_0x3b964f(0x1ed)](0x0)[_0x3b964f(0x28d)](_0x144524),_0xe853e8=Array[_0x3b964f(0x1ea)](_0x3f5e2a[_0x3b964f(0x1ef)]())[_0x3b964f(0x1b5)](_0x1a9fb4=>_0x1a9fb4[_0x3b964f(0x28d)](_0x144524)==_0x2e7c9c)[_0x3b964f(0x2a8)](),_0x491fe2=_0x2df56c[_0x3b964f(0x237)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x9fd9e8=_0x2df56c[_0x3b964f(0x282)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)]();_0x491fe2[0x0]=_0xe853e8[0x0]+_0x491fe2[0x0],_0x9fd9e8[0x0]=_0xe853e8[0x0]+_0x9fd9e8[0x0];let _0x462e24=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2ea)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2bf)](),_0x491fe2),_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2bf)](),_0x9fd9e8));const _0x568d22=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2c9)][_0x3b964f(0x1fc)](_0x50b363[_0x3b964f(0x2e6)]);for(const _0x416790 of _0x568d22)_0x462e24=_0x5bf0a5[_0x3b964f(0x1d2)](_0x462e24[_0x3b964f(0x2b7)](_0x416790));return{'range':_0x462e24,'previousIndex':_0x113c59,'nextIndex':_0xf72e3c,'currentIndex':_0x573c24};}[_0x2c4a56(0x265)](_0x394039){const _0x42a918=_0x2c4a56;if(!_0x394039[_0x42a918(0x2e3)][_0x42a918(0x26f)](_0x42a918(0x1dc)))return;const _0x170d7d=_0x394039[_0x42a918(0x1b1)][_0x42a918(0x1b3)](_0x42a918(0x2eb)),_0x1c9387=_0x394039[_0x42a918(0x1b1)][_0x42a918(0x1b3)](_0x42a918(0x25b));this[_0x42a918(0x21e)](_0x170d7d,_0x42a918(0x1cc),(_0x31aa69,_0x6789d5,_0x382254)=>{const _0x366479=_0x42a918,_0x1d5b99=this[_0x366479(0x205)][_0x366479(0x1b3)](_0x6789d5);if(!_0x1d5b99)return;const _0xd3c447=this[_0x366479(0x267)][_0x366479(0x2fd)](_0x1d5b99[_0x366479(0x1f9)])[_0x366479(0x2b6)](_0x1d5b99[_0x366479(0x2d0)]);_0x1d5b99[_0x366479(0x2be)][_0x366479(0x264)](_0x477bee=>_0xd3c447[_0x366479(0x27a)](_0x477bee,_0x366479(0x1bb))),this[_0x366479(0x205)][_0x366479(0x1e4)](_0x6789d5),this[_0x366479(0x205)][_0x366479(0x279)](_0x382254,_0x1d5b99);}),this[_0x42a918(0x21e)](_0x1c9387,_0x42a918(0x1cc),(_0x22e83c,_0x42a5c1,_0x2a12aa)=>{const _0x32d4a2=_0x42a918,_0x595244=this[_0x32d4a2(0x205)][_0x32d4a2(0x1b3)](_0x42a5c1);if(!_0x595244)return;const _0x52ae83=this[_0x32d4a2(0x267)][_0x32d4a2(0x2fd)](_0x595244[_0x32d4a2(0x1f9)])[_0x32d4a2(0x2b6)](_0x595244[_0x32d4a2(0x2d0)]);_0x595244[_0x32d4a2(0x2be)][_0x32d4a2(0x264)](_0x3607b8=>_0x52ae83[_0x32d4a2(0x27a)](_0x3607b8,_0x32d4a2(0x275))),this[_0x32d4a2(0x205)][_0x32d4a2(0x1e4)](_0x42a5c1),this[_0x32d4a2(0x205)][_0x32d4a2(0x279)](_0x2a12aa,_0x595244);});}async[_0x2c4a56(0x218)](_0x53c82e){const _0x33de7d=_0x2c4a56;this[_0x33de7d(0x2fa)][_0x33de7d(0x2e3)][_0x33de7d(0x1b3)](_0x48b72c)[_0x33de7d(0x2e5)](),this[_0x33de7d(0x2b3)][_0x33de7d(0x243)](_0x33de7d(0x288)),this[_0x33de7d(0x2b3)][_0x33de7d(0x2ae)](!0x0),await this[_0x33de7d(0x1c9)]();try{const _0xe727b6=this[_0x33de7d(0x2fa)][_0x33de7d(0x2e3)][_0x33de7d(0x1b3)](_0x44b1ea);this[_0x33de7d(0x27d)]('\x20'),_0xe727b6[_0x33de7d(0x2c2)][_0x33de7d(0x268)](_0x33de7d(0x214)),await this[_0x33de7d(0x2f2)](_0x53c82e);const {sessionId:_0x243da1}=this[_0x33de7d(0x1ce)][_0x33de7d(0x259)]();await this[_0x33de7d(0x267)][_0x33de7d(0x209)](_0x53c82e,_0x243da1),this[_0x33de7d(0x267)][_0x33de7d(0x23f)]()&&this[_0x33de7d(0x267)][_0x33de7d(0x304)](_0x1523b1(this[_0x33de7d(0x2fa)][_0x33de7d(0x284)],_0x33de7d(0x2f8)));}catch(_0x3836e4){console[_0x33de7d(0x2f9)](_0x33de7d(0x2ca),_0x3836e4);}finally{this[_0x33de7d(0x2b3)][_0x33de7d(0x243)](_0x33de7d(0x1d9)),this[_0x33de7d(0x2b3)][_0x33de7d(0x2ae)](!0x1);}}[_0x2c4a56(0x2f4)](_0x27c728){const _0x27d88b=_0x2c4a56;this[_0x27d88b(0x267)]['id']===_0x27c728&&this[_0x27d88b(0x2f2)]();}async[_0x2c4a56(0x1b0)](){const _0xd68cb9=_0x2c4a56,_0x38f9af=this[_0xd68cb9(0x1ce)][_0xd68cb9(0x2b8)]();this[_0xd68cb9(0x267)]?.[_0xd68cb9(0x22c)](_0x38f9af),this[_0xd68cb9(0x267)]?.[_0xd68cb9(0x304)](_0x1523b1(this[_0xd68cb9(0x2fa)][_0xd68cb9(0x284)],_0xd68cb9(0x2f8)));}[_0x2c4a56(0x1df)](){const _0x46002d=_0x2c4a56;this[_0x46002d(0x267)]?.[_0x46002d(0x1ee)]();}[_0x2c4a56(0x2fc)](){const _0x5f3656=_0x2c4a56;this[_0x5f3656(0x2b3)][_0x5f3656(0x2fc)]();}async[_0x2c4a56(0x1e9)](){const _0x2ae599=_0x2c4a56;await this[_0x2ae599(0x2f2)]();}async[_0x2c4a56(0x20e)]({message:_0x39785f,quickActionData:_0x1b09c8}){const _0x273ac4=_0x2c4a56;await this[_0x273ac4(0x212)]({'userMessage':_0x39785f,'quickActionData':_0x1b09c8});}[_0x2c4a56(0x20a)](){const _0x1042ff=_0x2c4a56,_0x52f641=this[_0x1042ff(0x2fa)][_0x1042ff(0x2c3)][_0x1042ff(0x1b3)](_0x1042ff(0x296));if(!_0x52f641)throw new _0x13f2ac(_0x1042ff(0x211),this);return _0x52f641;}async[_0x2c4a56(0x2f2)](_0xc8e3ff){const _0x39cb70=_0x2c4a56;try{this[_0x39cb70(0x2b3)][_0x39cb70(0x21b)](),await this[_0x39cb70(0x236)](_0xc8e3ff);}catch(_0x28bf19){_0xbcf11b(_0x39cb70(0x24f),_0x28bf19),this[_0x39cb70(0x267)]=void 0x0,this[_0x39cb70(0x2b3)][_0x39cb70(0x2c8)]();}}async[_0x2c4a56(0x236)](_0xf483ae){const _0x10b41c=_0x2c4a56,_0x814a4a=this[_0x10b41c(0x2fa)][_0x10b41c(0x2e3)][_0x10b41c(0x1b3)](_0x48b72c);let _0x2e5d4a;_0x814a4a[_0x10b41c(0x2d5)]&&_0x814a4a[_0x10b41c(0x2e5)](),_0xf483ae||!this[_0x10b41c(0x267)]?_0x2e5d4a=this[_0x10b41c(0x2fa)][_0x10b41c(0x2c3)][_0x10b41c(0x1b3)](_0x10b41c(0x1fa)):this[_0x10b41c(0x2b3)][_0x10b41c(0x2cb)]&&(_0x2e5d4a=this[_0x10b41c(0x267)][_0x10b41c(0x2f7)]['id']),await this[_0x10b41c(0x1c9)]();const _0x12e6a0=this[_0x10b41c(0x20a)](),_0x6198ac=_0xf483ae||_0x38bd85();this[_0x10b41c(0x267)]=new _0x2f446f({'connector':this[_0x10b41c(0x1f2)],'chatModels':this[_0x10b41c(0x295)],'selectedModelId':_0x2e5d4a,'conversationId':_0x6198ac,'group':_0x12e6a0,'getEditor':()=>_0x40cd09(this[_0x10b41c(0x2fa)])}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1dd),(_0x384115,_0x3399da)=>{const _0x7e1548=_0x10b41c;this[_0x7e1548(0x2b3)][_0x7e1548(0x274)](_0x3399da),this[_0x7e1548(0x2b3)][_0x7e1548(0x250)](),this[_0x7e1548(0x2b3)][_0x7e1548(0x25f)](),this[_0x7e1548(0x2b3)][_0x7e1548(0x261)](),_0xf483ae||(this[_0x7e1548(0x2b3)][_0x7e1548(0x2f6)](),this[_0x7e1548(0x267)]?.[_0x7e1548(0x304)](_0x1523b1(this[_0x7e1548(0x2fa)][_0x7e1548(0x284)],_0x7e1548(0x2f8))));}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2ab),(_0x321a5d,_0x48f06e)=>{const _0x26107e=_0x10b41c;this[_0x26107e(0x2b3)][_0x26107e(0x24c)](_0x48f06e[_0x26107e(0x220)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2c6),(_0x59d1be,_0x2b6480)=>{const _0x220ef8=_0x10b41c;this[_0x220ef8(0x2b3)][_0x220ef8(0x1f7)](_0x2b6480);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x272),()=>{const _0x291bb7=_0x10b41c;this[_0x291bb7(0x2b3)][_0x291bb7(0x1c2)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x240),()=>{const _0x2dc194=_0x10b41c;this[_0x2dc194(0x2b3)][_0x2dc194(0x1c2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x271),(_0x37948d,_0x4a4402)=>{const _0x4fca44=_0x10b41c;this[_0x4fca44(0x2b3)][_0x4fca44(0x21f)](_0x4a4402,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1be),(_0x255ad8,_0x26630d)=>{const _0x8aa71=_0x10b41c;this[_0x8aa71(0x2b3)][_0x8aa71(0x21f)](_0x26630d,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x238),()=>{const _0x9165b3=_0x10b41c;this[_0x9165b3(0x2b3)][_0x9165b3(0x1de)]();}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2d8),async()=>{const _0x477bb8=_0x10b41c;await this[_0x477bb8(0x2b3)][_0x477bb8(0x302)]();}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1f1),(_0x18ab4f,_0xe7dce5)=>{const _0x4bcdc1=_0x10b41c;this[_0x4bcdc1(0x2b3)][_0x4bcdc1(0x1cb)](_0xe7dce5['id']);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x201),(_0xc45bf1,_0x2e09a4,_0x9922a2)=>{const _0x316c64=_0x10b41c;this[_0x316c64(0x27d)](_0x2e09a4,_0x9922a2);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1e6),(_0x598ee5,_0x7daf68)=>{const _0x2d83ac=_0x10b41c;_0x2d83ac(0x263)===_0x7daf68[_0x2d83ac(0x2b9)]?this[_0x2d83ac(0x2b3)][_0x2d83ac(0x20b)](_0x7daf68):this[_0x2d83ac(0x2b3)][_0x2d83ac(0x1c5)](_0x7daf68);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x20f),async(_0x1fd8c9,_0x44243a,_0x3fd7f1)=>{const _0x4faedd=_0x10b41c;await this[_0x4faedd(0x28b)]({'reply':_0x44243a,'changeGroups':_0x3fd7f1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x233),(_0x5462e7,{reply:_0x2cf2d8,index:_0x4bff0c,state:_0x446f30})=>{const _0x4ea1b9=_0x10b41c;this[_0x4ea1b9(0x2b3)][_0x4ea1b9(0x289)]({'id':_0x2cf2d8['id'],'index':_0x4bff0c,'state':_0x446f30});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2e0),(_0x512ebd,_0x51784d)=>{const _0x1984a3=_0x10b41c;if(this[_0x1984a3(0x2b3)][_0x1984a3(0x2ce)](_0x51784d[_0x1984a3(0x262)],_0x51784d[_0x1984a3(0x2f0)]),_0x1984a3(0x273)===_0x51784d[_0x1984a3(0x262)][_0x1984a3(0x2b9)]){const _0x4096ff=[..._0x40cd09(this[_0x1984a3(0x2fa)])[_0x1984a3(0x1f5)][_0x1984a3(0x2a3)][_0x1984a3(0x273)][_0x1984a3(0x1d1)]()];this[_0x1984a3(0x1ce)][_0x1984a3(0x2dc)](_0x4096ff,_0x1984a3(0x21d)+this[_0x1984a3(0x267)]?.['id']);}}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x266),(_0x35abbe,_0x2c6643)=>{const _0x35df4b=_0x10b41c;this[_0x35df4b(0x2b3)][_0x35df4b(0x246)](_0x2c6643[_0x35df4b(0x281)]),_0x35df4b(0x1c6)==_0x2c6643[_0x35df4b(0x281)]&&this[_0x35df4b(0x1df)](),_0x35df4b(0x273)===_0x2c6643[_0x35df4b(0x2b9)]&&this[_0x35df4b(0x1ce)][_0x35df4b(0x306)](_0x35df4b(0x21d)+this[_0x35df4b(0x267)]?.['id']);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x308),(_0x134942,_0x463dee)=>{const _0x1df380=_0x10b41c;this[_0x1df380(0x2b3)][_0x1df380(0x260)](_0x463dee[_0x1df380(0x262)][_0x1df380(0x281)],_0x463dee[_0x1df380(0x2f0)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x28a),(_0x595b7f,_0x4aabb9)=>{const _0x40882f=_0x10b41c;this[_0x40882f(0x2b3)][_0x40882f(0x2e2)](_0x4aabb9[_0x40882f(0x1f6)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1fd),(_0xcf881f,_0x20af4d)=>{const _0x1a9908=_0x10b41c;this[_0x1a9908(0x2b3)][_0x1a9908(0x1eb)](_0x20af4d[_0x1a9908(0x2cc)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1f4),(_0x23341b,_0x4075bf)=>{const _0x1b1eee=_0x10b41c;this[_0x1b1eee(0x2b3)][_0x1b1eee(0x256)](_0x4075bf[_0x1b1eee(0x298)],_0x4075bf[_0x1b1eee(0x1e0)],_0x4075bf[_0x1b1eee(0x2c5)],_0x4075bf[_0x1b1eee(0x1c0)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1c8),(_0x339239,_0x3cc2b3)=>{const _0x18aa06=_0x10b41c;this[_0x18aa06(0x2b3)][_0x18aa06(0x1bf)](_0x3cc2b3[_0x18aa06(0x298)],_0x3cc2b3[_0x18aa06(0x2a5)],_0x3cc2b3[_0x18aa06(0x2a4)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x223),(_0x30cfec,_0x5a9d51)=>{const _0x5a3812=_0x10b41c;this[_0x5a3812(0x2b3)][_0x5a3812(0x20d)](_0x5a9d51);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x285),(_0x2ccba9,_0xe449ff)=>{const _0x3a754d=_0x10b41c;this[_0x3a754d(0x2b3)][_0x3a754d(0x1d8)](_0xe449ff[_0x3a754d(0x2f7)],_0xe449ff[_0x3a754d(0x216)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2f9),(_0x1a9f30,{error:_0x5cbc06,interactionId:_0x5d40de,fileName:_0x47acdc,url:_0xd56a21,sourceId:_0x48ef32,sourceLabel:_0x391208})=>{const _0x48e496=_0x10b41c,_0x3d15a4=_0x5d40de?_0x5d40de+':'+_0x38bd85():_0x38bd85();_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x29f))?this[_0x48e496(0x2b3)][_0x48e496(0x1d0)]({'staticMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x1d5)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x2e7))||_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x24f))?(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2d7)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x258))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x28e),_0x47acdc),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x1db))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2fe),_0xd56a21),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x307))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x24d)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x2a1))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x253)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x26e))?(_0x48ef32&&this[_0x48e496(0x2b3)][_0x48e496(0x2bb)](_0x48ef32),this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2ef),_0x391208||_0x48e496(0x1e0)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x24e))?(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2db)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x1fe)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06));}),await this[_0x10b41c(0x267)][_0x10b41c(0x1e5)](this[_0x10b41c(0x2fa)][_0x10b41c(0x2c3)][_0x10b41c(0x1b3)](_0x10b41c(0x1b7))),_0xf483ae||await this[_0x10b41c(0x267)][_0x10b41c(0x237)]();}async[_0x2c4a56(0x212)]({userMessage:_0x420648,quickActionData:_0x7ec0d}){const _0xe3a38c=_0x2c4a56;if(!this[_0xe3a38c(0x267)])throw new _0x13f2ac(_0xe3a38c(0x28f));this[_0xe3a38c(0x267)][_0xe3a38c(0x21c)]()&&await this[_0xe3a38c(0x267)][_0xe3a38c(0x22b)](this[_0xe3a38c(0x1ce)][_0xe3a38c(0x259)]()),this[_0xe3a38c(0x267)]['id']&&this[_0xe3a38c(0x267)][_0xe3a38c(0x293)]&&await this[_0xe3a38c(0x267)][_0xe3a38c(0x22d)]({'userMessage':_0x420648,'quickActionData':_0x7ec0d}),this[_0xe3a38c(0x2d1)]();}[_0x2c4a56(0x2d1)](){const _0xae9582=_0x2c4a56,_0x1a6f55=_0x40cd09(this[_0xae9582(0x2fa)])[_0xae9582(0x1f5)],_0x22e596=Array[_0xae9582(0x1ea)](_0x1a6f55[_0xae9582(0x2c0)][_0xae9582(0x222)](_0x3a377a));_0x1a6f55[_0xae9582(0x29e)](_0x5e2541=>{const _0x8fd253=_0xae9582;_0x22e596[_0x8fd253(0x264)](_0x23ec37=>_0x5e2541[_0x8fd253(0x29d)](_0x23ec37));});}[_0x2c4a56(0x1e8)](){const _0x535e53=_0x2c4a56;console[_0x535e53(0x23b)](_0x535e53(0x230));}[_0x2c4a56(0x257)](_0x5b8dab){const _0x3b53b9=_0x2c4a56;this[_0x3b53b9(0x2b3)][_0x3b53b9(0x1c3)](_0x5b8dab);}[_0x2c4a56(0x2e4)](_0x167251){const _0x18f637=_0x2c4a56;_0xbcf11b(_0x167251[_0x18f637(0x29a)]);}[_0x2c4a56(0x24b)](_0x1c6a61){const _0x33be45=_0x2c4a56;this[_0x33be45(0x267)]?.[_0x33be45(0x1d7)](_0x1c6a61);}[_0x2c4a56(0x2b5)](){const _0x1bde47=_0x2c4a56;this[_0x1bde47(0x267)]?.[_0x1bde47(0x1d3)]();}[_0x2c4a56(0x2a9)](){const _0x4d971d=_0x2c4a56;this[_0x4d971d(0x267)]?.[_0x4d971d(0x27b)]();}[_0x2c4a56(0x206)](_0x2aaf40){const _0x3de75b=_0x2c4a56,[_0x342ee7,_0x18f512]=_0x2aaf40[_0x3de75b(0x1b6)](':'),_0x272283=this[_0x3de75b(0x267)][_0x3de75b(0x2fd)](_0x342ee7),_0x47a4cc=_0x272283[_0x3de75b(0x2b6)](_0x18f512);return{'interaction':_0x272283,'reply':_0x47a4cc};}[_0x2c4a56(0x22a)](_0x2a8dfc,_0x28bc19=!0x1){const _0x527121=_0x2c4a56,_0x3dd663=_0x40cd09(this[_0x527121(0x2fa)]),_0x3085a8={'target':_0x3dd663[_0x527121(0x1b2)][_0x527121(0x2c2)][_0x527121(0x21a)][_0x527121(0x2da)](_0x3dd663[_0x527121(0x1b2)][_0x527121(0x2a6)][_0x527121(0x29b)](_0x2a8dfc)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x28bc19};_0x28bc19&&(_0x3085a8[_0x527121(0x215)]=!0x0),_0x59c6ad(_0x3085a8);}[_0x2c4a56(0x27d)](_0x30f391,_0x1ef6d9=!0x1){const _0x3f82a0=_0x2c4a56;this[_0x3f82a0(0x2b3)][_0x3f82a0(0x201)](_0x30f391||_0x1523b1(this[_0x3f82a0(0x2fa)][_0x3f82a0(0x284)],_0x3f82a0(0x1ff)),_0x1ef6d9);}async[_0x2c4a56(0x28b)]({reply:_0x218b65,changeGroups:_0x592f38,renderingStrategy:_0x420936}){const _0x24e052=_0x2c4a56,{id:_0x9a0c77,isDone:_0x1a5e52,type:_0x388c9c,parsedContent:_0x369217}=_0x218b65;if(_0x24e052(0x213)===_0x388c9c){const _0x480c57=_0x40cd09(this[_0x24e052(0x2fa)]),_0x1aa1a3=_0x2b2350({'editor':_0x480c57,'showDiff':this[_0x24e052(0x2b3)][_0x24e052(0x1ec)],'changeGroups':_0x592f38,'documentContextContent':_0x218b65[_0x24e052(0x25a)]});await this[_0x24e052(0x2b3)][_0x24e052(0x1c1)]({'id':_0x9a0c77,'parts':_0x1aa1a3,'renderingStrategy':_0x420936,'isDone':_0x1a5e52});}else _0x24e052(0x263)===_0x388c9c&&await this[_0x24e052(0x2b3)][_0x24e052(0x1e1)]({'id':_0x9a0c77,'parsedContent':_0x369217,'renderingStrategy':_0x420936,'isDone':_0x1a5e52});_0x1a5e52&&_0x218b65[_0x24e052(0x1ba)][_0x24e052(0x1f0)]>0x0&&this[_0x24e052(0x2b3)][_0x24e052(0x251)](_0x9a0c77,_0x218b65[_0x24e052(0x1ba)]);}async[_0x2c4a56(0x1c9)](){const _0x2c97f4=_0x2c4a56,_0x1296ce=this[_0x2c97f4(0x267)]?.[_0x2c97f4(0x270)];_0x1296ce&&(_0x1296ce[_0x2c97f4(0x2e8)](),this[_0x2c97f4(0x2b3)][_0x2c97f4(0x2af)](_0x1296ce));}async[_0x2c4a56(0x1e2)](){const _0x5444ff=_0x2c4a56,_0x4bb465=this[_0x5444ff(0x267)]?.[_0x5444ff(0x270)];if(_0x4bb465){for await(const _0x4b8f0d of _0x4bb465[_0x5444ff(0x2a7)])await this[_0x5444ff(0x28b)]({'reply':_0x4b8f0d,'changeGroups':_0x4b8f0d[_0x5444ff(0x2df)],'renderingStrategy':_0x5444ff(0x288)});}}[_0x2c4a56(0x276)](_0x398468){const _0x1aa8d0=_0x2c4a56,_0x3cde4d={'positiveCount':_0x398468[_0x1aa8d0(0x2df)][_0x1aa8d0(0x1f3)](_0xedf94a=>_0x1aa8d0(0x275)===_0xedf94a[_0x1aa8d0(0x26a)])[_0x1aa8d0(0x1f0)],'totalCount':_0x398468[_0x1aa8d0(0x2df)][_0x1aa8d0(0x1f0)]},_0x472ce9=this[_0x1aa8d0(0x267)][_0x1aa8d0(0x2fd)](_0x398468[_0x1aa8d0(0x1f9)])[_0x1aa8d0(0x1da)];this[_0x1aa8d0(0x1f2)][_0x1aa8d0(0x200)](this[_0x1aa8d0(0x267)]['id'],_0x472ce9,_0x3cde4d);}}function _0x5d6c(){const _0x288cf1=['AI_CHAT_GENERIC_ERROR','AI_CHAT_UNTITLED_CONVERSATION','upsertAIChatRating','setConversationTitle','baseVersion','88KasHXK','Liked\x20response','_batchToChanges','getInteractionAndReplyById','_previewedChangeGroup','partIndex','load','getGroupId','addFeedItemAIReply','cloneNode','updateCapabilities','sendMessage','replyContentUpdated','createPositionFromPath','ai-chat-missing-channel-id','_handleUIUserMessage','modification-delta','chat','alignToTop','isDisabled','data','loadConversation','323667VrWxWu','domConverter','enableControls','isCurrentDocumentInContext','ai-conversation-','listenTo','addFeedInteractionHeader','isUploadInProgress','applySuggestion','getMarkersGroup','capabilitiesUpdated','rejectSuggestion','addUrlToContext','7VFhjcX','492ZFeMwM','3533826iFgtdl','outdated','_scrollToSuggestionRange','updateCurrentDocumentInContext','addSelectionToContext','handleUserInteraction','batch','push','Showing\x20conversation\x20history...','updateContent','addResourceToContext','replyChangeGroupStateUpdated','afterInit','children','_handleStartConversation','start','interactionStarted','abortPromptStream','ai-chat-controller-mouse-over','log','slice','1296010FmCamu','map','isCurrentDocumentInConversation','reasoningStarted','insertSuggestion','AITabs','setFeedItemRenderingStrategy','requires','howMany','removeContextItem','dialogClosed','full','sourcePosition','ready','_removeFromContext','setIsUploadInProgress','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-resource-load-failed','ai-chat-conversation-start-failed','resetMessageInput','updateFeedItemAIReplySources','startsWith','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','_applyOperationsAsSuggestions','add','populateSourceResourceBalloon','_setIsMaximized','ai-chat-file-upload-failed','getDocumentData','documentContextContent','redo','resizeTabs','240275JlCiWR','_balloonShowDiff','clearPendingContextUI','setContextItemLoading','clearConversationContextUI','contextItem','text-delta','forEach','_integrateEditor','contextItemRemoved','activeConversation','activateTab','maxOffset','state','48580hVKHUg','AIConnector','DocumentCompare','ai-chat-source-resources-load-failed','has','lastInteraction','webSearchFinished','webSearchStarted','selection','createConversation','accepted','_updateRatings','resizedTabs','_openBalloonFor','set','setChangeGroupState','toggleReasoning','new','updateConversationTitle','264308dDsgrN','Disliked\x20response','_insertSuggestion','uiId','end','mouseLeaveSuggestion','locale','modelSelected','applyOperation','rejected','static','updateFeedItemAIReplySuggestionPartState','contextSent','_updateReplyContent','4uAFbti','getAttribute','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','ai-chat-controller-no-active-conversation','$graveyard','getFirstRange','AI_BALLOON_HEADER_TITLE','isStarted','unshift','_aiChatModels','collaboration.channelId','toggleSuggestionDisplayMode','sourceId','addOperation','message','toViewRange','query','removeMarker','change','ai-request-aborted','ai.chat.models.displayedModels','ai-chat-context-unsupported-type','3PogMVy','document','isInContext','resourceId','mapper','replies','getPath','_toggleReasoning','TrackChangesEditing','uploadProgressChanged','resize','range','toggleLoadingSkeleton','stopInteraction','marker','addFileToContext','removed','_aiChatUi','1087686kBWMBG','_toggleWebSearch','getReply','getTransformedByOperation','getSelectionText','type','showPrevious','closeSourceResourceBalloon','showNext','getDocumentContext','indexes','getRoot','markers','stopListening','view','config','dislike','resources','interactionCreated','remove','disableControls','history','Failed\x20to\x20load\x20conversation','isModelAvailable','options','parse','addContextItem','root','replyId','_removeAISelectionMarkers','AIChatController','showChangeInText','rootName','isOpen','open','AI_CHAT_UNABLE_TO_START_CONVERSATION','interactionFinished','isPremiumPlugin','viewRangeToDom','AI_CHAT_RESOURCE_LOAD_FAILED','showFakeVisualSelection','toString','addFilesToContext','changeGroups','contextItemAdded','getDiff','setConversationContext','plugins','_logError','close','version','ai-chat-conversation-init-failed','stop','addDocumentToContext','createRange','undo','isOfficialPlugin','mouseOverSuggestion','editors','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','isLoading','selectModel','_startConversationSafely','data-id','handleRemovedConversation','getChildAtOffset','resetConversationTitle','selectedModel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','error','context','nextSibling','focusPromptInput','getInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','anchorId','AIEditing','sendUserMessage','finishInteraction','resource','addCurrentDocumentToContext','like','hideFakeVisualSelection','ai-chat-context-invalid-data','contextItemLoadingEnded','addSelectionToChatContext','commands','editing','get','changes','find','split','ai.chat.context','content','_applySuggestion','sources','pending','pluginName','path','reasoningFinished','updateResourceState','uid','updateFeedItemAIReplySuggestionContent','setLoadingMessage','setIsMaximized','AIChatUI','addFeedItemAISuggestion','current-document','loadSourceResources','resourceStateChanged','_stopLastInteraction','createPositionAt','removeFeedInteraction','revert','node','_aiEditing','addFeedItemError','addFeedItemStaticMessage','getRanges','_createFromRanges','toggleWebSearch','isDocumentOperation','AI_CHAT_ABORTED_MESSAGE','setModel','removeFromContext','setSelectedModel','streaming','messageId','ai-chat-url-upload-failed','Undo','conversationInitialized','startInteraction','removeSelectionFromChatContext','source','updateFeedItemAIReplyContent','_flushLastInteractionUI','indexOf','delete','init','replyCreated','main','_showConversationHistory','startConversation','from','setAddContextOptions','showDiff','getChild','removeSelectionFromContext','getChildren','length','interactionDestroyed','_aiConnector','filter','sourceResourcesLoaded','model','contextItems','addFeedItemUserMessage','scrollFeedToSuggestion','interactionId','ai.chat.models.defaultModelId','_getDocumentRangeForReplyChanges','getOperations','addContextOptionsChanged'];_0x5d6c=function(){return _0x288cf1;};return _0x5d6c();}
23
+ const _0x5268ff=_0x5392;(function(_0x2ee89a,_0x5a7b9f){const _0xd9d18d=_0x5392,_0xe48e22=_0x2ee89a();while(!![]){try{const _0x27316d=-parseInt(_0xd9d18d(0x112))/0x1*(-parseInt(_0xd9d18d(0x1dd))/0x2)+parseInt(_0xd9d18d(0x176))/0x3*(-parseInt(_0xd9d18d(0x12d))/0x4)+-parseInt(_0xd9d18d(0x147))/0x5+parseInt(_0xd9d18d(0xa1))/0x6+parseInt(_0xd9d18d(0x153))/0x7+parseInt(_0xd9d18d(0xf6))/0x8*(parseInt(_0xd9d18d(0x1c4))/0x9)+-parseInt(_0xd9d18d(0x90))/0xa;if(_0x27316d===_0x5a7b9f)break;else _0xe48e22['push'](_0xe48e22['shift']());}catch(_0x47b7f2){_0xe48e22['push'](_0xe48e22['shift']());}}}(_0x4770,0xa5e3b));import{ContextPlugin as _0x951add,Editor as _0x1d1f9d}from'ckeditor5/src/core.js';import{CKEditorError as _0x352eb3,logError as _0x1248f1,scrollViewportToShowTarget as _0x573709,uid as _0x484ae2}from'ckeditor5/src/utils.js';import{AIConnector as _0x5a4463}from'../aicore/aiconnector.js';import{AITabs as _0x37b057}from'../aitabs/aitabs.js';import{AIChatConversation as _0x48b666}from'./model/aichatconversation.js';import{getTranslation as _0x1fc3d6}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x93ab06}from'../aicore/aiediting.js';import{AI_REPLY_ACTIONS as _0x430d06}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatModels as _0x344805}from'./model/aichatmodels.js';import{getEditorFromContext as _0x2304ad}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x1a689a,DATA_ID_MODEL_ATTRIBUTE as _0xffd2fd}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2b369a,getOperationsFromReply as _0x26c983}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x23c17b,getMinimalSelection as _0x46ecee}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x4a4527,_DetachOperation as _0x5702af}from'ckeditor5/src/engine.js';import{findOne as _0x5c75b6,getAttribute as _0x1765a4,serialize as _0x55a5db,Document as _0x27f42b,findByAttribute as _0x58ca42}from'../aicore/utils/htmlparser.js';import{IconAI as _0xb39332}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x37cf6b}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x11ade2}from'../aiballoon/aiballoon.js';function _0x4770(){const _0x4bd6a9=['startConversation','isCurrentDocumentInContext','updateCapabilities','_batchToChanges','addFeedItemError','rootName','config','viewRangeToDom','_handleUIUserMessage','removeContextItem','updateResourceState','AIEditing','enableControls','unshift','isStarted','1HPckTr','Failed\x20to\x20load\x20conversation','createPositionAt','replies','addDocumentToContext','handleUserInteraction','getRoot','AI_CHAT_UNABLE_TO_START_CONVERSATION','ai-chat-context-invalid-data','filter','remove','error','ready','_toggleReasoning','document','length','toggleLoadingSkeleton','replyId','AIChatUI','$graveyard','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','modelSelected','getDocumentData','has','AI_CHAT_ABORTED_MESSAGE','requires','indexes','651148UCzoHm','accepted','_toggleWebSearch','alignToTop','replyCreated','addFeedItemStaticMessage','_updateRatings','changes','isModelAvailable','getChild','from','split','anchorId','rejectSuggestion','resetConversationTitle','lastInteraction','resourceStateChanged','query','_createFromRanges','startsWith','open','replyContentUpdated','updateFeedItemAIReplySources','resize','updateFeedItemAIReplySuggestionContent','isDocumentOperation','6409360VbyXKB','markers','map','addFeedItemAISuggestion','replyChangeGroupStateUpdated','init','setChangeGroupState','listenTo','change','options','setAddContextOptions','index','2592751MgTmwX','toggleSuggestionDisplayMode','outdated','_aiChatModels','ai-chat-controller-no-active-conversation','version','resourceId','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','root','sourceId','children','get','isInContext','upsertAIChatRating','addFeedItemUserMessage','afterInit','_applySuggestion','updateConversationTitle','applySuggestion','dialogClosed','mouseLeaveSuggestion','commands','_getDocumentRangeForReplyChanges','resizeTabs','sendUserMessage','insertSuggestion','removeFeedInteraction','ai-chat-context-unsupported-type','_aiChatUi','updateCurrentDocumentInContext','updateContent','removeSelectionFromChatContext','chat','batch','abortPromptStream','3uugoLV','getDiff','reasoningFinished','Undo','webSearchFinished','ai-chat-conversation-start-failed','setFeedItemRenderingStrategy','getDocumentContext','createPositionFromPath','range','toString','setLoadingMessage','parse','view','selection','removeSelectionFromContext','Liked\x20response','disableControls','context','contextItemRemoved','rejected','uiId','TrackChanges','_showConversationHistory','full','interactionDestroyed','AI_CHAT_GENERIC_ERROR','selectModel','uid','forEach','sources','addFeedInteractionHeader','AIChatController','AI_CHAT_RESOURCE_LOAD_FAILED','getOperations','getReply','new','state','getPath','indexOf','getChildren','streaming','_aiEditing','ai.chat.context','hasChanges','editors','reasoningStarted','AI_BALLOON_HEADER_TITLE','showDiff','mouseOverSuggestion','start','Showing\x20conversation\x20history...','contextItemLoadingEnded','addFileToContext','messageId','revert','_scrollToSuggestionRange','getChildAtOffset','_setIsMaximized','loadSourceResources','interactionFinished','selectedModel','showPrevious','ai-chat-conversation-init-failed','handleRemovedConversation','_stopLastInteraction','toggleReasoning','getGroupId','_balloonShowDiff','push','populateSourceResourceBalloon','pending','setSelectedModel','showChangeInText','createRange','toViewRange','isLoading','getMarkersGroup','6255Amxdfl','maxOffset','_startConversationSafely','scrollFeedToSuggestion','clearPendingContextUI','isOpen','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai.availableReplyActions','ai-chat-controller-mouse-over','toggleWebSearch','_removeFromContext','undo','redo','createConversation','showNext','setContextItemLoading','isPremiumPlugin','ai-no-track-changes','delete','getFirstRange','addFilesToContext','history','contextSent','getTransformedByOperation','getSelectionText','842722cBaCUb','text-delta','path','ai-chat-resource-load-failed','documentContextContent','ai-chat-file-upload-failed','_openBalloonFor','end','ai-chat-url-upload-failed','removeMarker','findIndex','isUploadInProgress','TrackChangesEditing','webSearchStarted','setIsMaximized','updateFeedItemAIReplySuggestionPartState','startInteraction','stop','4102980eldViJ','activeConversation','AITabs','data-id','addCurrentDocumentToContext','close','sendMessage','ai.chat.models.defaultModelId','resource','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','resizedTabs','message','isCurrentDocumentInConversation','nextSibling','contextItems','finishInteraction','add','4593096OezWGI','domConverter','collaboration.channelId','mapper','addUrlToContext','AIConnector','slice','focusPromptInput','static','cloneNode','interactionId','resetMessageInput','startAutoScroll','showFakeVisualSelection','closeSourceResourceBalloon','AI_CHAT_CONTEXT_INVALID_DATA','_flushLastInteractionUI','addContextItem','getRanges','_removeAISelectionMarkers','updateFeedItemAIReplyContent','type','getAttribute','_integrateEditor','getInteractionAndReplyById','setConversationContext','resources','sourceResourcesLoaded','contextItemAdded','capabilitiesUpdated','plugins','set','pluginName','stopInteraction','current-document','Disliked\x20response','content','addResourceToContext','setIsUploadInProgress','load','log','isOfficialPlugin','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_previewedChangeGroup','find','getContentParts','partIndex','contextItem','DocumentCompare','like','sourcePosition','isDisabled','applyOperation','editing','howMany','addFeedItemAIReply','loadConversation','addOperation','ai-conversation-','marker','modification-delta','_updateReplyContent','hideFakeVisualSelection','ai-request-aborted','node','addSelectionToChatContext','setConversationTitle','locale','interactionStarted','changeGroups','_handleStartConversation','uploadProgressChanged','clearConversationContextUI','removeFromContext','ai.chat.models.displayedModels','main','_aiConnector','removed','AI_CHAT_UNTITLED_CONVERSATION','_insertSuggestion','setModel','activateTab','source','baseVersion','dislike','11248BHkUOd','getInteraction','model','interactionCreated','addContextOptionsChanged','stopListening','conversationInitialized','ai-chat-source-resources-load-failed','addSelectionToContext','data','ai-chat-missing-channel-id','_logError','_applyOperationsAsSuggestions'];_0x4770=function(){return _0x4bd6a9;};return _0x4770();}function _0x5392(_0x1dd79b,_0xdc694c){const _0x477067=_0x4770();return _0x5392=function(_0x53924d,_0xcd8b9){_0x53924d=_0x53924d-0x81;let _0x42ab73=_0x477067[_0x53924d];return _0x42ab73;},_0x5392(_0x1dd79b,_0xdc694c);}export class AIChatController extends _0x951add{[_0x5268ff(0x1a0)];[_0x5268ff(0xed)];[_0x5268ff(0x16f)];[_0x5268ff(0x156)];[_0x5268ff(0x106)]=new Map();[_0x5268ff(0xcc)]=null;[_0x5268ff(0x1ba)]=!0x1;static get[_0x5268ff(0x12b)](){return[_0x5a4463,_0x11ade2,_0x1a689a];}static get[_0x5268ff(0xc1)](){const _0xde6c8f=_0x5268ff;return _0xde6c8f(0x196);}static get[_0x5268ff(0xca)](){return!0x0;}static get[_0x5268ff(0x1d4)](){return!0x0;}[_0x5268ff(0x14c)](){const _0x38a56c=_0x5268ff;this[_0x38a56c(0xed)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0xa6)),this[_0x38a56c(0x16f)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x124)),this[_0x38a56c(0x1a0)]=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x10e)),this[_0x38a56c(0x156)]=new _0x344805({'connector':this[_0x38a56c(0xed)],'availableModels':this[_0x38a56c(0x188)][_0x38a56c(0x109)][_0x38a56c(0x15e)](_0x38a56c(0xeb)),'defaultModelId':this[_0x38a56c(0x188)][_0x38a56c(0x109)][_0x38a56c(0x15e)](_0x38a56c(0x97))});const _0x39f55b=this[_0x38a56c(0x188)][_0x38a56c(0xbf)][_0x38a56c(0x15e)](_0x38a56c(0x92));this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x103),()=>{const _0x2ff2d1=_0x38a56c;this[_0x2ff2d1(0x1c6)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16b),(_0x1ec001,_0x201fac)=>{const _0x5831a7=_0x38a56c;this[_0x5831a7(0x10b)]({'userMessage':_0x201fac});}),this[_0x38a56c(0x14e)](_0x39f55b,_0x38a56c(0x9a),(_0x3361e7,_0x5c49b8)=>{const _0x533b33=_0x38a56c;this[_0x533b33(0x1b0)](_0x5c49b8);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16a),()=>{const _0x7e6d0f=_0x38a56c;_0x39f55b[_0x7e6d0f(0x144)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x175),async()=>{const _0x208a0c=_0x38a56c;await this[_0x208a0c(0x1b7)](),await this[_0x208a0c(0xb1)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x116),()=>{const _0x19f41b=_0x38a56c;this[_0x19f41b(0x91)]?.[_0x19f41b(0x94)](_0x1fc3d6(this[_0x19f41b(0x188)][_0x19f41b(0xe4)],_0x19f41b(0x15a)));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1ab),(_0x3af043,_0x6560cf)=>{const _0x44ffa1=_0x38a56c;this[_0x44ffa1(0x91)]?.[_0x44ffa1(0x1d8)](Array[_0x44ffa1(0x137)](_0x6560cf));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xa5),(_0x1db88a,_0x37a5df)=>{const _0x2bba75=_0x38a56c;this[_0x2bba75(0x91)]?.[_0x2bba75(0xa5)](_0x37a5df);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xc6),(_0xb9be28,_0x3ece0a)=>{const _0x4f1eb2=_0x38a56c;this[_0x4f1eb2(0x91)]?.[_0x4f1eb2(0xc6)](_0x3ece0a[_0x4f1eb2(0xf3)],_0x3ece0a[_0x4f1eb2(0x98)]);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x10c),(_0x42dcaf,_0x53b137)=>{const _0x5154c8=_0x38a56c;this[_0x5154c8(0x1ce)](_0x53b137);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1b1),(_0x570a76,_0x458e9d)=>{const _0x3654fc=_0x38a56c;this[_0x3654fc(0x91)]?.[_0x3654fc(0x1b1)](_0x458e9d[_0x3654fc(0x15c)],_0x458e9d[_0x3654fc(0x13e)],_0x458e9d[_0x3654fc(0x192)]);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1cd),()=>{const _0x5cdd2b=_0x38a56c;this[_0x5cdd2b(0x12f)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1b8),()=>{const _0x10e10b=_0x38a56c;this[_0x10e10b(0x11f)]();}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x191),(_0x4dffdf,_0x2f8d59)=>{const _0x38b6a3=_0x38a56c;this[_0x38b6a3(0x91)]?.[_0x38b6a3(0xf1)](_0x2f8d59);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xd2),(_0x14bede,{replyId:_0x17a2ea})=>{const _0x4985dc=_0x38a56c;console[_0x4985dc(0xc9)](_0x4985dc(0x186),_0x17a2ea);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0xf5),(_0x2aea1a,{replyId:_0x480fad})=>{const _0x2a0594=_0x38a56c;console[_0x2a0594(0xc9)](_0x2a0594(0xc4),_0x480fad);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x16c),(_0x5ef541,_0x1c22a7)=>{const _0x436fe9=_0x38a56c;this[_0x436fe9(0x188)][_0x436fe9(0xbf)][_0x436fe9(0x15e)](_0x11ade2)[_0x436fe9(0x95)](),this[_0x436fe9(0xf0)](_0x1c22a7);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1bf),(_0x4e94b3,{replyId:_0x483360,partIndex:_0x21052a})=>{const _0x305d17=_0x38a56c;this[_0x305d17(0x1ba)]=this[_0x305d17(0x16f)][_0x305d17(0x1a6)],this[_0x305d17(0x84)](_0x483360,_0x21052a);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x1a7),(_0x168896,{replyId:_0x20ce58,partIndex:_0x1523d0})=>{const _0x493656=_0x38a56c,_0x229a37=this[_0x493656(0x169)](_0x20ce58,_0x1523d0);_0x229a37&&_0x493656(0x125)!=_0x229a37[_0x493656(0x17f)][_0x493656(0x15b)][_0x493656(0x108)]&&this[_0x493656(0x1a0)][_0x493656(0xae)]([_0x229a37[_0x493656(0x17f)]],_0x493656(0x1cc));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x167),()=>{const _0x19c9e9=_0x38a56c;this[_0x19c9e9(0x1a0)][_0x19c9e9(0xdf)](_0x19c9e9(0x1cc));}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x165),(_0x585f34,_0x117276)=>{const _0x2bab5d=_0x38a56c;this[_0x2bab5d(0x188)][_0x2bab5d(0xbf)][_0x2bab5d(0x15e)](_0x11ade2)[_0x2bab5d(0x95)](),this[_0x2bab5d(0x163)](_0x117276);}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x154),async(_0x2d9fcd,{replyId:_0x483b5d,showDiff:_0x1f19f0})=>{const _0x42b2a2=_0x38a56c,{reply:_0x5ceeb2}=this[_0x42b2a2(0xb9)](_0x483b5d),_0x11abec=_0x5ceeb2[_0x42b2a2(0xce)]({'showDiff':_0x1f19f0});await this[_0x42b2a2(0x16f)][_0x42b2a2(0x145)]({'id':_0x5ceeb2['id'],'parts':_0x11abec,'renderingStrategy':_0x42b2a2(0xa9)});}),this[_0x38a56c(0x14e)](this[_0x38a56c(0x16f)],_0x38a56c(0x13a),(_0x1a1d6e,{replyId:_0x27408b,partIndex:_0x16a6b4})=>{const _0x6cb382=_0x38a56c;this[_0x6cb382(0xcc)]?.[_0x6cb382(0x123)]==_0x27408b&&this[_0x6cb382(0xcc)]?.[_0x6cb382(0xcf)]==_0x16a6b4&&this[_0x6cb382(0x188)][_0x6cb382(0xbf)][_0x6cb382(0x15e)](_0x11ade2)[_0x6cb382(0x95)]();const {reply:_0x35259d}=this[_0x6cb382(0xb9)](_0x27408b);_0x35259d[_0x6cb382(0x14d)](_0x16a6b4,_0x6cb382(0x18a)),this[_0x6cb382(0x1a0)][_0x6cb382(0xdf)](_0x6cb382(0x1cc));});}async[_0x5268ff(0x162)](){const _0x35de9e=_0x5268ff;this[_0x35de9e(0x188)]instanceof _0x1d1f9d?this[_0x35de9e(0xb8)](this[_0x35de9e(0x188)]):this[_0x35de9e(0x14e)](this[_0x35de9e(0x188)][_0x35de9e(0x1a3)],_0x35de9e(0xa0),(_0x4a2aab,_0xdcc8a7)=>{const _0xcf020f=_0x35de9e;_0xdcc8a7['on'](_0xcf020f(0x11e),()=>{const _0x2dd7be=_0xcf020f;this[_0x2dd7be(0xb8)](_0xdcc8a7);});}),await this[_0x35de9e(0x1c6)]();}[_0x5268ff(0xf0)](_0x1ae42d){const _0x372f96=_0x5268ff,_0x59c8c0=_0x2304ad(this[_0x372f96(0x188)]);if(!_0x59c8c0[_0x372f96(0xbf)][_0x372f96(0x129)](_0x372f96(0x18c)))throw new _0x352eb3(_0x372f96(0x1d5),null);const _0x1296cb=this[_0x372f96(0x188)][_0x372f96(0xbf)][_0x372f96(0x15e)](_0x372f96(0xd1)),{reply:_0x23cd84,interaction:_0x52a4e4}=this[_0x372f96(0xb9)](_0x1ae42d[_0x372f96(0x123)]),_0x3aa72f=this[_0x372f96(0x169)](_0x1ae42d[_0x372f96(0x123)],_0x1ae42d[_0x372f96(0xcf)]),_0x54c222=void 0x0!==_0x1ae42d[_0x372f96(0xcf)]?[_0x23cd84[_0x372f96(0xe6)][_0x1ae42d[_0x372f96(0xcf)]]]:_0x23cd84[_0x372f96(0xe6)][_0x372f96(0x11b)](_0xa62f4f=>_0x372f96(0x1bd)==_0xa62f4f[_0x372f96(0x19b)]),_0x5dd3e3=_0x54c222[_0x372f96(0x149)](_0x174706=>_0x23cd84[_0x372f96(0xe6)][_0x372f96(0x19d)](_0x174706));if(!_0x3aa72f||_0x372f96(0x125)==_0x3aa72f[_0x372f96(0x17f)][_0x372f96(0x15b)][_0x372f96(0x108)])return void _0x5dd3e3[_0x372f96(0x193)](_0x5f04ca=>_0x23cd84[_0x372f96(0x14d)](_0x5f04ca,_0x372f96(0x155)));_0x5dd3e3[_0x372f96(0x193)](_0x2fd4f6=>_0x23cd84[_0x372f96(0x14d)](_0x2fd4f6,_0x372f96(0x12e)));const _0x5604ba=_0x26c983({'editor':_0x59c8c0,'reply':_0x23cd84,'interaction':_0x52a4e4,'groups':_0x54c222,'transform':!0x0,'documentCompare':_0x1296cb,'documentCompareOptions':{'anchor':_0x372f96(0xec),'markDeletions':!0x0}});let _0x5eb853;_0x3aa72f&&this[_0x372f96(0x1ae)](_0x3aa72f[_0x372f96(0x17f)]),_0x59c8c0[_0x372f96(0xf8)][_0x372f96(0x14f)](_0x54aa9f=>{const _0x16ace1=_0x372f96;_0x5eb853=_0x54aa9f[_0x16ace1(0x174)],_0x59c8c0[_0x16ace1(0xbf)][_0x16ace1(0x15e)](_0x16ace1(0x8a))[_0x16ace1(0x102)](_0x5604ba),this[_0x16ace1(0x1a0)][_0x16ace1(0xdf)](_0x16ace1(0x1cc));}),this[_0x372f96(0x106)][_0x372f96(0xc0)](_0x5eb853,{'interactionId':_0x52a4e4['id'],'replyId':_0x23cd84['id'],'indexes':_0x5dd3e3[_0x372f96(0xa7)]()}),this[_0x372f96(0x133)](_0x23cd84);}[_0x5268ff(0x163)](_0x40c824){const _0x5a1867=_0x5268ff,_0x479865=_0x2304ad(this[_0x5a1867(0x188)]),_0x3f362e=this[_0x5a1867(0x188)][_0x5a1867(0xbf)][_0x5a1867(0x15e)](_0x1a689a),{reply:_0x1a723e,interaction:_0x3bc42e}=this[_0x5a1867(0xb9)](_0x40c824[_0x5a1867(0x123)]),_0x41d94c=this[_0x5a1867(0x169)](_0x40c824[_0x5a1867(0x123)],_0x40c824[_0x5a1867(0xcf)]),_0x3fdabe=void 0x0!==_0x40c824[_0x5a1867(0xcf)]?[_0x1a723e[_0x5a1867(0xe6)][_0x40c824[_0x5a1867(0xcf)]]]:_0x1a723e[_0x5a1867(0xe6)][_0x5a1867(0x11b)](_0x36df1e=>_0x5a1867(0x1bd)==_0x36df1e[_0x5a1867(0x19b)]),_0x3a6aa5=_0x3fdabe[_0x5a1867(0x149)](_0x29dea8=>_0x1a723e[_0x5a1867(0xe6)][_0x5a1867(0x19d)](_0x29dea8));if(!_0x41d94c||_0x5a1867(0x125)==_0x41d94c[_0x5a1867(0x17f)][_0x5a1867(0x15b)][_0x5a1867(0x108)])return void _0x3a6aa5[_0x5a1867(0x193)](_0x587dbb=>_0x1a723e[_0x5a1867(0x14d)](_0x587dbb,_0x5a1867(0x155)));_0x3a6aa5[_0x5a1867(0x193)](_0x23c9b7=>_0x1a723e[_0x5a1867(0x14d)](_0x23c9b7,_0x5a1867(0x12e)));const _0x3bcc79=_0x26c983({'editor':_0x479865,'reply':_0x1a723e,'interaction':_0x3bc42e,'groups':_0x3fdabe,'transform':!0x0,'documentCompare':_0x3f362e,'documentCompareOptions':{'anchor':_0x5a1867(0xec),'markDeletions':!0x1}});let _0x1a26b4;_0x41d94c&&this[_0x5a1867(0x1ae)](_0x41d94c[_0x5a1867(0x17f)]),_0x479865[_0x5a1867(0xf8)][_0x5a1867(0x14f)](_0x3863d9=>{const _0x3c872b=_0x5a1867;_0x1a26b4=_0x3863d9[_0x3c872b(0x174)];for(const _0x36a1ee of _0x3bcc79)_0x36a1ee[_0x3c872b(0xf4)]=_0x479865[_0x3c872b(0xf8)][_0x3c872b(0x120)][_0x3c872b(0x158)],_0x2b369a(_0x479865,_0x36a1ee),_0x3863d9[_0x3c872b(0x174)][_0x3c872b(0xda)](_0x36a1ee),_0x479865[_0x3c872b(0xf8)][_0x3c872b(0xd5)](_0x36a1ee);}),this[_0x5a1867(0x106)][_0x5a1867(0xc0)](_0x1a26b4,{'interactionId':_0x3bc42e['id'],'replyId':_0x1a723e['id'],'indexes':_0x3a6aa5[_0x5a1867(0xa7)]()}),this[_0x5a1867(0x133)](_0x1a723e);}[_0x5268ff(0x84)](_0x325a68,_0x26a645){const _0x376e63=_0x5268ff,_0x242ee5=_0x2304ad(this[_0x376e63(0x188)]),_0x1db2f4=this[_0x376e63(0x169)](_0x325a68,_0x26a645),_0x34a0d4=this[_0x376e63(0x188)][_0x376e63(0xbf)][_0x376e63(0x15e)](_0x11ade2);if(!_0x1db2f4)return void _0x34a0d4[_0x376e63(0x95)]();const {range:_0x2511e5,currentIndex:_0x2b08c8}=_0x1db2f4;if(_0x376e63(0x125)==_0x2511e5[_0x376e63(0x15b)][_0x376e63(0x108)]){const {reply:_0x5da1ad}=this[_0x376e63(0xb9)](_0x325a68);return _0x5da1ad[_0x376e63(0x14d)](_0x2b08c8,_0x376e63(0x155)),void _0x34a0d4[_0x376e63(0x95)]();}if(this[_0x376e63(0xcc)]?.[_0x376e63(0x123)]==_0x325a68&&this[_0x376e63(0xcc)]?.[_0x376e63(0xcf)]==_0x2b08c8)return;this[_0x376e63(0xfb)](_0x34a0d4),this[_0x376e63(0xcc)]={'replyId':_0x325a68,'partIndex':_0x2b08c8};let _0x29ad7f=_0x242ee5[_0x376e63(0x109)][_0x376e63(0x15e)](_0x376e63(0x1cb))||[..._0x430d06];_0x242ee5[_0x376e63(0xbf)][_0x376e63(0x129)](_0x376e63(0x18c))||(_0x29ad7f=_0x29ad7f[_0x376e63(0x11b)](_0x3e8a8c=>_0x376e63(0x16c)!=_0x3e8a8c));const _0x178ef9=new _0x37cf6b(_0x242ee5[_0x376e63(0xe4)],{'showDiff':this[_0x376e63(0x1ba)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x376e63(0x18e)},'hideHeader':!0x0,'availableActions':_0x29ad7f});this[_0x376e63(0xfb)](_0x178ef9);const {reply:_0x45a3e5}=this[_0x376e63(0xb9)](_0x325a68),_0x2bcd42=_0x45a3e5[_0x376e63(0xce)]({'showDiff':this[_0x376e63(0x1ba)]})[_0x376e63(0x11b)](_0x9a9981=>_0x9a9981[_0x376e63(0x1a2)]),_0x3ec300=_0x2bcd42[_0x376e63(0x88)](_0x21e7fb=>_0x21e7fb[_0x376e63(0x152)]==_0x2b08c8);if(-0x1==_0x3ec300)return;const _0x414715=_0x2bcd42[_0x3ec300],_0x20f7ef=_0x2bcd42['at']((_0x3ec300-0x1)%_0x2bcd42[_0x376e63(0x121)])?.[_0x376e63(0x152)],_0x4909d6=_0x2bcd42['at']((_0x3ec300+0x1)%_0x2bcd42[_0x376e63(0x121)])?.[_0x376e63(0x152)];_0x178ef9[_0x376e63(0x171)]({'parts':[_0x414715],'renderingStrategy':_0x376e63(0xa9)});const _0x323c66=_0x2b08c8!==_0x20f7ef;this[_0x376e63(0x1ae)](_0x2511e5,!0x0),_0x34a0d4[_0x376e63(0x141)]({'index':_0x2b08c8,'title':_0x1fc3d6(this[_0x376e63(0x188)][_0x376e63(0xe4)],_0x376e63(0x1a5),(_0x3ec300+0x1)[_0x376e63(0x180)]()),'icon':_0xb39332,'mainView':_0x178ef9,'showRotator':_0x323c66,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x2511e5]}),this[_0x376e63(0x16f)][_0x376e63(0x1c7)](_0x325a68,_0x2b08c8),this[_0x376e63(0x14e)](_0x178ef9,_0x376e63(0x154),(_0xc7b6f6,{showDiff:_0x20cb2c})=>{const _0x37984d=_0x376e63;this[_0x37984d(0x1ba)]=_0x20cb2c;const {reply:_0x564f8f}=this[_0x37984d(0xb9)](_0x325a68),_0x2bc142=_0x564f8f[_0x37984d(0xce)]({'showDiff':_0x20cb2c,'groupIndex':_0x2b08c8});_0x178ef9[_0x37984d(0x171)]({'parts':_0x2bc142,'renderingStrategy':_0x37984d(0xa9)});}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x165),()=>{const _0x1d5abc=_0x376e63;this[_0x1d5abc(0x163)]({'replyId':_0x325a68,'partIndex':_0x2b08c8}),_0x323c66?this[_0x1d5abc(0x84)](_0x325a68,_0x4909d6):_0x34a0d4[_0x1d5abc(0x95)]();}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x16c),()=>{const _0x4f5901=_0x376e63;this[_0x4f5901(0xf0)]({'replyId':_0x325a68,'partIndex':_0x2b08c8}),_0x323c66?this[_0x4f5901(0x84)](_0x325a68,_0x4909d6):_0x34a0d4[_0x4f5901(0x95)]();}),_0x323c66&&(this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x1d2),()=>{const _0x1f94cd=_0x376e63;this[_0x1f94cd(0x84)](_0x325a68,_0x4909d6);}),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x1b4),()=>{const _0x240ddf=_0x376e63;this[_0x240ddf(0x84)](_0x325a68,_0x20f7ef);})),this[_0x376e63(0x14e)](_0x34a0d4,_0x376e63(0x166),()=>{const _0x404751=_0x376e63;this[_0x404751(0xfb)](_0x34a0d4),this[_0x404751(0xfb)](_0x178ef9),this[_0x404751(0xcc)]=null;});}[_0x5268ff(0x169)](_0x353045,_0x2268b4){const _0x420c5a=_0x5268ff,_0x5d6f61=_0x2304ad(this[_0x420c5a(0x188)]),{reply:_0x1728f0,interaction:_0x45ea90}=this[_0x420c5a(0xb9)](_0x353045),_0x1f8bc4=_0x1728f0[_0x420c5a(0xe6)][_0x420c5a(0x11b)](_0x3e0d42=>_0x420c5a(0x1bd)==_0x3e0d42[_0x420c5a(0x19b)]),_0x6a55f6=_0x1f8bc4[_0x420c5a(0x149)](_0x820f42=>_0x1728f0[_0x420c5a(0xe6)][_0x420c5a(0x19d)](_0x820f42));void 0x0===_0x2268b4&&(_0x2268b4=_0x6a55f6[0x0]);const _0x2381c8=_0x6a55f6[_0x420c5a(0x19d)](_0x2268b4);if(-0x1==_0x2381c8)return null;const _0x4c04d7=_0x1f8bc4[_0x2381c8],_0x43c6a3=new _0x27f42b([]),_0x170422=new _0x27f42b([]);for(const _0x3d221d of _0x4c04d7[_0x420c5a(0x134)])if(_0x420c5a(0xee)!=_0x3d221d[_0x420c5a(0xb6)]&&_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3d221d[_0x420c5a(0xe1)][_0x420c5a(0xaa)](!0x0)),_0x420c5a(0x19a)!=_0x3d221d[_0x420c5a(0xb6)]){const _0x182edc=_0x5c75b6(_0x2cac6f=>_0x1765a4(_0x2cac6f,_0x420c5a(0x93))==_0x3d221d['id'],_0x1728f0[_0x420c5a(0x82)],!0x0);_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x182edc[_0x420c5a(0xaa)](!0x0));}if(0x0==_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x121)]){if(_0x4c04d7[_0x420c5a(0x134)][0x0][_0x420c5a(0x139)]){const _0x555315=_0x58ca42(_0x420c5a(0x93),_0x4c04d7[_0x420c5a(0x134)][0x0][_0x420c5a(0x139)],_0x1728f0[_0x420c5a(0x82)]);_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x110)](_0x555315[_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x110)](_0x555315[_0x420c5a(0xaa)](!0x0)),_0x555315[_0x420c5a(0x9d)]&&(_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x555315[_0x420c5a(0x9d)][_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x555315[_0x420c5a(0x9d)][_0x420c5a(0xaa)](!0x0)));}else{const _0x3cca22=_0x1728f0[_0x420c5a(0x82)][_0x420c5a(0x15d)][0x0];if(!_0x3cca22)return null;_0x43c6a3[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3cca22[_0x420c5a(0xaa)](!0x0)),_0x170422[_0x420c5a(0x15d)][_0x420c5a(0x1bb)](_0x3cca22[_0x420c5a(0xaa)](!0x0));}}const _0x93e94f=_0x45ea90[_0x420c5a(0x17d)](),_0x41d15e=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x93e94f[_0x420c5a(0xc5)]),_0x4fa614=_0x55a5db(_0x43c6a3),_0x33ccfd=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x4fa614),_0xb3dc14=_0x5d6f61[_0x420c5a(0xff)][_0x420c5a(0x182)](_0x4fa614),_0x21873b=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x114)](_0x33ccfd,0x0),_0x440ec0=_0x55a5db(_0x170422),_0x1d5f6b={'anchor':_0x21873b,'markDeletions':!0x1},_0x5fe0f9=_0x5d6f61[_0x420c5a(0xbf)][_0x420c5a(0x15e)](_0x1a689a)[_0x420c5a(0x177)](_0x4fa614,_0x440ec0,_0x1d5f6b)[_0x420c5a(0x198)]();if(!_0x5fe0f9[_0x420c5a(0x121)])return null;_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x14f)](_0x1e4b99=>{const _0x39db98=_0x420c5a;for(const _0x5ae85a of _0x5fe0f9)if(_0x39db98(0x11c)==_0x5ae85a[_0x39db98(0xb6)]){const _0x1dd257=_0x5ae85a[_0x39db98(0xd3)],_0x27d4dd=_0x5ae85a[_0x39db98(0xd7)],_0x344fa6=new _0x5702af(_0x1dd257,_0x27d4dd);_0x1e4b99[_0x39db98(0x174)][_0x39db98(0xda)](_0x344fa6),_0x5d6f61[_0x39db98(0xf8)][_0x39db98(0xd5)](_0x344fa6);}else _0x39db98(0xdc)!==_0x5ae85a[_0x39db98(0xb6)]&&(_0x5ae85a[_0x39db98(0xf4)]=null,_0x5ae85a[_0x39db98(0x146)]=!0x1,_0x1e4b99[_0x39db98(0x174)][_0x39db98(0xda)](_0x5ae85a),_0x5d6f61[_0x39db98(0xf8)][_0x39db98(0xd5)](_0x5ae85a));});const _0x205835=_0x46ecee(_0x5d6f61,_0x5fe0f9,_0x33ccfd);_0x23c17b(_0x5d6f61[_0x420c5a(0xf8)],_0x205835);const _0x4e1015=_0x205835[_0x420c5a(0x1d7)]()[_0x420c5a(0x1a8)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x3cbebe=_0x205835[_0x420c5a(0x1d7)]()[_0x420c5a(0x85)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x3a6922=[];let _0x303f52=_0x33ccfd,_0x383762=_0xb3dc14;for(let _0x7dc414=0x0;_0x7dc414<_0x3cbebe[_0x420c5a(0x121)];_0x7dc414++){const _0x1be2a5=_0x303f52[_0x420c5a(0x1c5)]-_0x3cbebe[_0x7dc414];_0x3a6922[_0x7dc414]=_0x383762[_0x420c5a(0x1c5)]-_0x1be2a5,_0x303f52=_0x303f52[_0x420c5a(0x1af)](_0x3cbebe[_0x7dc414]),_0x383762=_0x383762[_0x420c5a(0x1af)](_0x3a6922[_0x7dc414]);}const _0x29a880=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x1c0)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0xb3dc14,_0x4e1015),_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0xb3dc14,_0x3a6922)),_0x36db63=_0xb3dc14[_0x420c5a(0x136)](0x0)[_0x420c5a(0xb7)](_0xffd2fd),_0x437c07=Array[_0x420c5a(0x137)](_0x41d15e[_0x420c5a(0x19e)]())[_0x420c5a(0xcd)](_0x240613=>_0x240613[_0x420c5a(0xb7)](_0xffd2fd)==_0x36db63)[_0x420c5a(0x19c)](),_0x22cb78=_0x29a880[_0x420c5a(0x1a8)][_0x420c5a(0x1df)][_0x420c5a(0xa7)](),_0x5ddf20=_0x29a880[_0x420c5a(0x85)][_0x420c5a(0x1df)][_0x420c5a(0xa7)]();_0x22cb78[0x0]=_0x437c07[0x0]+_0x22cb78[0x0],_0x5ddf20[0x0]=_0x437c07[0x0]+_0x5ddf20[0x0];let _0x14873e=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x1c0)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x118)](),_0x22cb78),_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x17e)](_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x118)](),_0x5ddf20));const _0x6f3cf6=_0x5d6f61[_0x420c5a(0xf8)][_0x420c5a(0x120)][_0x420c5a(0x1d9)][_0x420c5a(0x198)](_0x93e94f[_0x420c5a(0x158)]);for(const _0x5c9d7f of _0x6f3cf6)_0x14873e=_0x4a4527[_0x420c5a(0x13f)](_0x14873e[_0x420c5a(0x1db)](_0x5c9d7f));return{'range':_0x14873e,'currentIndex':_0x2268b4};}[_0x5268ff(0xb8)](_0x29bcb8){const _0x3de60b=_0x5268ff;if(!_0x29bcb8[_0x3de60b(0xbf)][_0x3de60b(0x129)](_0x3de60b(0x179)))return;const _0x3fd385=_0x29bcb8[_0x3de60b(0x168)][_0x3de60b(0x15e)](_0x3de60b(0x1cf)),_0x6fc0ac=_0x29bcb8[_0x3de60b(0x168)][_0x3de60b(0x15e)](_0x3de60b(0x1d0));this[_0x3de60b(0x14e)](_0x3fd385,_0x3de60b(0x1ad),(_0x2b7771,_0x5736f5,_0x3af7f4)=>{const _0xf170c9=_0x3de60b,_0x285d1d=this[_0xf170c9(0x106)][_0xf170c9(0x15e)](_0x5736f5);if(!_0x285d1d)return;const _0x58b4d0=this[_0xf170c9(0x91)][_0xf170c9(0xf7)](_0x285d1d[_0xf170c9(0xab)])[_0xf170c9(0x199)](_0x285d1d[_0xf170c9(0x123)]);_0x285d1d[_0xf170c9(0x12c)][_0xf170c9(0x193)](_0x28033e=>_0x58b4d0[_0xf170c9(0x14d)](_0x28033e,_0xf170c9(0x1bd))),this[_0xf170c9(0x106)][_0xf170c9(0x1d6)](_0x5736f5),this[_0xf170c9(0x106)][_0xf170c9(0xc0)](_0x3af7f4,_0x285d1d);}),this[_0x3de60b(0x14e)](_0x6fc0ac,_0x3de60b(0x1ad),(_0x198a0f,_0x2df507,_0x418eeb)=>{const _0x2e1159=_0x3de60b,_0x3d5ce1=this[_0x2e1159(0x106)][_0x2e1159(0x15e)](_0x2df507);if(!_0x3d5ce1)return;const _0x4c7d00=this[_0x2e1159(0x91)][_0x2e1159(0xf7)](_0x3d5ce1[_0x2e1159(0xab)])[_0x2e1159(0x199)](_0x3d5ce1[_0x2e1159(0x123)]);_0x3d5ce1[_0x2e1159(0x12c)][_0x2e1159(0x193)](_0x304ab2=>_0x4c7d00[_0x2e1159(0x14d)](_0x304ab2,_0x2e1159(0x12e))),this[_0x2e1159(0x106)][_0x2e1159(0x1d6)](_0x2df507),this[_0x2e1159(0x106)][_0x2e1159(0xc0)](_0x418eeb,_0x3d5ce1);});}async[_0x5268ff(0xd9)](_0x23332b){const _0x4bb019=_0x5268ff;this[_0x4bb019(0x188)][_0x4bb019(0xbf)][_0x4bb019(0x15e)](_0x11ade2)[_0x4bb019(0x95)](),this[_0x4bb019(0x16f)][_0x4bb019(0x17c)](_0x4bb019(0xa9)),this[_0x4bb019(0x16f)][_0x4bb019(0x122)](!0x0),await this[_0x4bb019(0x1b7)]();try{const _0x37a7f2=this[_0x4bb019(0x188)][_0x4bb019(0xbf)][_0x4bb019(0x15e)](_0x37b057);this[_0x4bb019(0x164)]('\x20'),_0x37a7f2[_0x4bb019(0x183)][_0x4bb019(0xf2)](_0x4bb019(0x173)),await this[_0x4bb019(0x1c6)](_0x23332b);const {sessionId:_0x1ce257}=this[_0x4bb019(0x1a0)][_0x4bb019(0x128)]();await this[_0x4bb019(0x91)][_0x4bb019(0xc8)](_0x23332b,_0x1ce257),this[_0x4bb019(0x91)][_0x4bb019(0x9c)]()&&this[_0x4bb019(0x91)][_0x4bb019(0x94)](_0x1fc3d6(this[_0x4bb019(0x188)][_0x4bb019(0xe4)],_0x4bb019(0x15a)));}catch(_0xae9039){console[_0x4bb019(0x11d)](_0x4bb019(0x113),_0xae9039);}finally{this[_0x4bb019(0x16f)][_0x4bb019(0xad)](),this[_0x4bb019(0x16f)][_0x4bb019(0x17c)](_0x4bb019(0x19f)),this[_0x4bb019(0x16f)][_0x4bb019(0x122)](!0x1);}}[_0x5268ff(0x1b6)](_0x30b23d){const _0x534f2e=_0x5268ff;this[_0x534f2e(0x91)]['id']===_0x30b23d&&this[_0x534f2e(0x1c6)]();}async[_0x5268ff(0xe2)](){const _0x217e79=_0x5268ff,_0x4849e5=this[_0x217e79(0x1a0)][_0x217e79(0x1dc)]();this[_0x217e79(0x91)]?.[_0x217e79(0xfe)](_0x4849e5),this[_0x217e79(0x91)]?.[_0x217e79(0x94)](_0x1fc3d6(this[_0x217e79(0x188)][_0x217e79(0xe4)],_0x217e79(0x15a)));}[_0x5268ff(0x172)](){const _0x19f998=_0x5268ff;this[_0x19f998(0x91)]?.[_0x19f998(0x185)]();}[_0x5268ff(0xa8)](){const _0x3b6ca0=_0x5268ff;this[_0x3b6ca0(0x16f)][_0x3b6ca0(0xa8)]();}async[_0x5268ff(0x103)](){const _0x4f162a=_0x5268ff;await this[_0x4f162a(0x1c6)]();}async[_0x5268ff(0x96)]({message:_0x49dc7e,quickActionData:_0x2982e2}){const _0x2753b7=_0x5268ff;await this[_0x2753b7(0x10b)]({'userMessage':_0x49dc7e,'quickActionData':_0x2982e2});}[_0x5268ff(0x1b9)](){const _0xa442cb=_0x5268ff,_0x1163e9=this[_0xa442cb(0x188)][_0xa442cb(0x109)][_0xa442cb(0x15e)](_0xa442cb(0xa3));if(!_0x1163e9)throw new _0x352eb3(_0xa442cb(0x100),this);return _0x1163e9;}async[_0x5268ff(0x1c6)](_0x4d8b38){const _0x5df65e=_0x5268ff;try{this[_0x5df65e(0x16f)][_0x5df65e(0x10f)](),await this[_0x5df65e(0xe7)](_0x4d8b38);}catch(_0x1cea3c){_0x1248f1(_0x5df65e(0x17b),_0x1cea3c),this[_0x5df65e(0x91)]=void 0x0,this[_0x5df65e(0x16f)][_0x5df65e(0x187)]();}}async[_0x5268ff(0xe7)](_0x167664){const _0x1f2985=_0x5268ff,_0x548003=this[_0x1f2985(0x188)][_0x1f2985(0xbf)][_0x1f2985(0x15e)](_0x11ade2);let _0x110313;_0x548003[_0x1f2985(0x1c9)]&&_0x548003[_0x1f2985(0x95)](),_0x167664||!this[_0x1f2985(0x91)]?_0x110313=this[_0x1f2985(0x188)][_0x1f2985(0x109)][_0x1f2985(0x15e)](_0x1f2985(0x97)):this[_0x1f2985(0x16f)][_0x1f2985(0x135)]&&(_0x110313=this[_0x1f2985(0x91)][_0x1f2985(0x1b3)]['id']),await this[_0x1f2985(0x1b7)]();const _0x45697a=this[_0x1f2985(0x1b9)](),_0x1e89a6=_0x167664||_0x484ae2();this[_0x1f2985(0x91)]=new _0x48b666({'connector':this[_0x1f2985(0xed)],'chatModels':this[_0x1f2985(0x156)],'selectedModelId':_0x110313,'conversationId':_0x1e89a6,'group':_0x45697a,'getEditor':()=>_0x2304ad(this[_0x1f2985(0x188)])}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xfc),(_0x37a7d7,_0x5d7c7a)=>{const _0x51f5a=_0x1f2985;this[_0x51f5a(0x16f)][_0x51f5a(0x1d1)](_0x5d7c7a),this[_0x51f5a(0x16f)][_0x51f5a(0xac)](),this[_0x51f5a(0x16f)][_0x51f5a(0x1c8)](),this[_0x51f5a(0x16f)][_0x51f5a(0xe9)](),_0x167664||(this[_0x51f5a(0x16f)][_0x51f5a(0x13b)](),this[_0x51f5a(0x91)]?.[_0x51f5a(0x94)](_0x1fc3d6(this[_0x51f5a(0x188)][_0x51f5a(0xe4)],_0x51f5a(0x15a))));}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe8),(_0x50b92b,_0x56a60e)=>{const _0x235038=_0x1f2985;this[_0x235038(0x16f)][_0x235038(0xc7)](_0x56a60e[_0x235038(0x89)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xf9),(_0x2fc233,_0x3b4e96)=>{const _0x4206ba=_0x1f2985;this[_0x4206ba(0x16f)][_0x4206ba(0x161)](_0x3b4e96);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x8b),()=>{const _0x2d95d8=_0x1f2985;this[_0x2d95d8(0x16f)][_0x2d95d8(0x181)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1a4),()=>{const _0x223455=_0x1f2985;this[_0x223455(0x16f)][_0x223455(0x181)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x17a),(_0x42af8a,_0x2d33f3)=>{const _0xb3089e=_0x1f2985;this[_0xb3089e(0x16f)][_0xb3089e(0x195)](_0x2d33f3,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x178),(_0x2e9e47,_0x1f761f)=>{const _0x59982b=_0x1f2985;this[_0x59982b(0x16f)][_0x59982b(0x195)](_0x1f761f,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe5),()=>{const _0x43ef85=_0x1f2985;this[_0x43ef85(0x16f)][_0x43ef85(0x8e)]();}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1b2),async()=>{const _0x21126e=_0x1f2985;await this[_0x21126e(0x16f)][_0x21126e(0x9f)]();}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x18f),(_0x25d488,_0x47807e)=>{const _0x398377=_0x1f2985;this[_0x398377(0x16f)][_0x398377(0x16d)](_0x47807e['id']);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xe3),(_0x4bf963,_0x18720b,_0x5c13ab)=>{const _0xc436cf=_0x1f2985;this[_0xc436cf(0x164)](_0x18720b,_0x5c13ab);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x131),(_0x56e917,_0x5c5779)=>{const _0x5f44fc=_0x1f2985;_0x5f44fc(0x1de)===_0x5c5779[_0x5f44fc(0xb6)]?this[_0x5f44fc(0x16f)][_0x5f44fc(0xd8)](_0x5c5779):this[_0x5f44fc(0x16f)][_0x5f44fc(0x14a)](_0x5c5779);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x142),async(_0x7bc1f5,_0x44bdcf)=>{const _0x348a5d=_0x1f2985;await this[_0x348a5d(0xde)]({'reply':_0x44bdcf});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x14b),(_0x27cf76,{reply:_0x1b32d8,index:_0x334cf3,state:_0xb46b0c})=>{const _0x124399=_0x1f2985;this[_0x124399(0x16f)][_0x124399(0x8d)]({'id':_0x1b32d8['id'],'index':_0x334cf3,'state':_0xb46b0c});}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbd),(_0x37062f,_0x19327b)=>{const _0x3a3dd4=_0x1f2985;if(this[_0x3a3dd4(0x16f)][_0x3a3dd4(0xb2)](_0x19327b[_0x3a3dd4(0xd0)],_0x19327b[_0x3a3dd4(0x1c2)]),_0x3a3dd4(0x184)===_0x19327b[_0x3a3dd4(0xd0)][_0x3a3dd4(0xb6)]){const _0x163e1b=[..._0x2304ad(this[_0x3a3dd4(0x188)])[_0x3a3dd4(0xf8)][_0x3a3dd4(0x120)][_0x3a3dd4(0x184)][_0x3a3dd4(0xb3)]()];this[_0x3a3dd4(0x1a0)][_0x3a3dd4(0xae)](_0x163e1b,_0x3a3dd4(0xdb)+this[_0x3a3dd4(0x91)]?.['id']);}}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x189),(_0x2a8d22,_0x1f3276)=>{const _0x534cfe=_0x1f2985;this[_0x534cfe(0x16f)][_0x534cfe(0x10c)](_0x1f3276[_0x534cfe(0x18b)]),_0x534cfe(0xc3)==_0x1f3276[_0x534cfe(0x18b)]&&this[_0x534cfe(0x172)](),_0x534cfe(0x184)===_0x1f3276[_0x534cfe(0xb6)]&&this[_0x534cfe(0x1a0)][_0x534cfe(0xdf)](_0x534cfe(0xdb)+this[_0x534cfe(0x91)]?.['id']);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1aa),(_0x53e8c7,_0x5b0bb6)=>{const _0x192e54=_0x1f2985;this[_0x192e54(0x16f)][_0x192e54(0x1d3)](_0x5b0bb6[_0x192e54(0xd0)][_0x192e54(0x18b)],_0x5b0bb6[_0x192e54(0x1c2)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x1da),(_0x547bc6,_0x5e9e0a)=>{const _0x10ebe6=_0x1f2985;this[_0x10ebe6(0x16f)][_0x10ebe6(0xba)](_0x5e9e0a[_0x10ebe6(0x9e)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xfa),(_0x228e98,_0x29796f)=>{const _0x22b15f=_0x1f2985;this[_0x22b15f(0x16f)][_0x22b15f(0x151)](_0x29796f[_0x22b15f(0x150)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbc),(_0x298886,_0x37f33b)=>{const _0x371a2c=_0x1f2985;this[_0x371a2c(0x16f)][_0x371a2c(0x1bc)](_0x37f33b[_0x371a2c(0x15c)],_0x37f33b[_0x371a2c(0xf3)],_0x37f33b[_0x371a2c(0xbb)],_0x37f33b[_0x371a2c(0x192)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x13d),(_0x21c229,_0x4c2d5f)=>{const _0x64db67=_0x1f2985;this[_0x64db67(0x16f)][_0x64db67(0x10d)](_0x4c2d5f[_0x64db67(0x15c)],_0x4c2d5f[_0x64db67(0x159)],_0x4c2d5f[_0x64db67(0x15f)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0xbe),(_0x277cf3,_0x59f177)=>{const _0x292f08=_0x1f2985;this[_0x292f08(0x16f)][_0x292f08(0x105)](_0x59f177);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x127),(_0x5a1777,_0x36d633)=>{const _0x5a5fa8=_0x1f2985;this[_0x5a5fa8(0x16f)][_0x5a5fa8(0x1be)](_0x36d633[_0x5a5fa8(0x1b3)],_0x36d633[_0x5a5fa8(0xd4)]);}),this[_0x1f2985(0x91)]['on'](_0x1f2985(0x11d),(_0x1c6ccb,{error:_0x2205b1,interactionId:_0x10f929,fileName:_0x4509aa,url:_0x19a380,sourceId:_0x45cb4a,sourceLabel:_0x339c6b})=>{const _0x558e65=_0x1f2985,_0x5c4a83=_0x10f929?_0x10f929+':'+_0x484ae2():_0x484ae2();_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0xe0))?this[_0x558e65(0x16f)][_0x558e65(0x132)]({'staticMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x12a)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x1b5))||_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x17b))?(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x119)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x83))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x99),_0x4509aa),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x86))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0xcb),_0x19a380),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x11a))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0xb0)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x16e))?this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x126)),'id':_0x5c4a83}):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0xfd))?(_0x45cb4a&&this[_0x558e65(0x16f)][_0x558e65(0xaf)](_0x45cb4a),this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x1ca),_0x339c6b||_0x558e65(0xf3)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):_0x2205b1[_0x558e65(0x9b)][_0x558e65(0x140)](_0x558e65(0x81))?(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x197)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1)):(this[_0x558e65(0x16f)][_0x558e65(0x107)]({'errorMessage':_0x1fc3d6(this[_0x558e65(0x188)][_0x558e65(0xe4)],_0x558e65(0x190)),'id':_0x5c4a83}),this[_0x558e65(0x101)](_0x2205b1));}),await this[_0x1f2985(0x91)][_0x1f2985(0x14c)](this[_0x1f2985(0x188)][_0x1f2985(0x109)][_0x1f2985(0x15e)](_0x1f2985(0x1a1))),_0x167664||await this[_0x1f2985(0x91)][_0x1f2985(0x1a8)]();}async[_0x5268ff(0x10b)]({userMessage:_0x1e068f,quickActionData:_0x4a7efe}){const _0x4e7121=_0x5268ff;if(!this[_0x4e7121(0x91)])throw new _0x352eb3(_0x4e7121(0x157));this[_0x4e7121(0x91)][_0x4e7121(0x104)]()&&await this[_0x4e7121(0x91)][_0x4e7121(0x170)](this[_0x4e7121(0x1a0)][_0x4e7121(0x128)]()),this[_0x4e7121(0x91)]['id']&&this[_0x4e7121(0x91)][_0x4e7121(0x111)]&&await this[_0x4e7121(0x91)][_0x4e7121(0x117)]({'userMessage':_0x1e068f,'quickActionData':_0x4a7efe}),this[_0x4e7121(0xb4)]();}[_0x5268ff(0xb4)](){const _0x2120ff=_0x5268ff,_0x42a731=_0x2304ad(this[_0x2120ff(0x188)])[_0x2120ff(0xf8)],_0x54d1a2=Array[_0x2120ff(0x137)](_0x42a731[_0x2120ff(0x148)][_0x2120ff(0x1c3)](_0x93ab06));_0x42a731[_0x2120ff(0x14f)](_0x47cf71=>{const _0x50c4f3=_0x2120ff;_0x54d1a2[_0x50c4f3(0x193)](_0x521029=>_0x47cf71[_0x50c4f3(0x87)](_0x521029));});}[_0x5268ff(0x18d)](){const _0x23f283=_0x5268ff;console[_0x23f283(0xc9)](_0x23f283(0x1a9));}[_0x5268ff(0x1b0)](_0x10d514){const _0x127438=_0x5268ff;this[_0x127438(0x16f)][_0x127438(0x8c)](_0x10d514);}[_0x5268ff(0x101)](_0x545cd0){const _0x2972f9=_0x5268ff;_0x1248f1(_0x545cd0[_0x2972f9(0x9b)]);}[_0x5268ff(0x1ce)](_0x37ccd7){const _0x4e88f6=_0x5268ff;this[_0x4e88f6(0x91)]?.[_0x4e88f6(0xea)](_0x37ccd7);}[_0x5268ff(0x12f)](){const _0x984d85=_0x5268ff;this[_0x984d85(0x91)]?.[_0x984d85(0x1cd)]();}[_0x5268ff(0x11f)](){const _0x270468=_0x5268ff;this[_0x270468(0x91)]?.[_0x270468(0x1b8)]();}[_0x5268ff(0xb9)](_0x3cf053){const _0x33fe6e=_0x5268ff,[_0xa0648f,_0x318ae3]=_0x3cf053[_0x33fe6e(0x138)](':'),_0x443cd7=this[_0x33fe6e(0x91)][_0x33fe6e(0xf7)](_0xa0648f),_0x103ab5=_0x443cd7[_0x33fe6e(0x199)](_0x318ae3);return{'interaction':_0x443cd7,'reply':_0x103ab5};}[_0x5268ff(0x1ae)](_0x1b0805,_0x42c1a2=!0x1){const _0x2312ed=_0x5268ff,_0xffa94b=_0x2304ad(this[_0x2312ed(0x188)]),_0x597a2e={'target':_0xffa94b[_0x2312ed(0xd6)][_0x2312ed(0x183)][_0x2312ed(0xa2)][_0x2312ed(0x10a)](_0xffa94b[_0x2312ed(0xd6)][_0x2312ed(0xa4)][_0x2312ed(0x1c1)](_0x1b0805)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x42c1a2};_0x42c1a2&&(_0x597a2e[_0x2312ed(0x130)]=!0x0),_0x573709(_0x597a2e);}[_0x5268ff(0x164)](_0x193704,_0x35cd9b=!0x1){const _0x360bfd=_0x5268ff;this[_0x360bfd(0x16f)][_0x360bfd(0xe3)](_0x193704||_0x1fc3d6(this[_0x360bfd(0x188)][_0x360bfd(0xe4)],_0x360bfd(0xef)),_0x35cd9b);}async[_0x5268ff(0xde)]({reply:_0x2b261c,renderingStrategy:_0x10466e}){const _0x2cefab=_0x5268ff,{id:_0x505d53,isDone:_0x5d1cea,type:_0x710c7e,parsedContent:_0x44861d}=_0x2b261c;if(_0x2cefab(0xdd)===_0x710c7e){const _0x2a807e=_0x2b261c[_0x2cefab(0xce)]({'showDiff':this[_0x2cefab(0x16f)][_0x2cefab(0x1a6)]});await this[_0x2cefab(0x16f)][_0x2cefab(0x145)]({'id':_0x505d53,'parts':_0x2a807e,'renderingStrategy':_0x10466e,'isDone':_0x5d1cea});}else _0x2cefab(0x1de)===_0x710c7e&&await this[_0x2cefab(0x16f)][_0x2cefab(0xb5)]({'id':_0x505d53,'parsedContent':_0x44861d,'renderingStrategy':_0x10466e,'isDone':_0x5d1cea});_0x5d1cea&&_0x2b261c[_0x2cefab(0x194)][_0x2cefab(0x121)]>0x0&&this[_0x2cefab(0x16f)][_0x2cefab(0x143)](_0x505d53,_0x2b261c[_0x2cefab(0x194)]);}async[_0x5268ff(0x1b7)](){const _0x19063d=_0x5268ff,_0x20d074=this[_0x19063d(0x91)]?.[_0x19063d(0x13c)];_0x20d074&&(_0x20d074[_0x19063d(0x8f)](),this[_0x19063d(0x16f)][_0x19063d(0xc2)](_0x20d074));}async[_0x5268ff(0xb1)](){const _0x4d0d3d=_0x5268ff,_0x3fa07f=this[_0x4d0d3d(0x91)]?.[_0x4d0d3d(0x13c)];if(_0x3fa07f){for await(const _0x282470 of _0x3fa07f[_0x4d0d3d(0x115)])await this[_0x4d0d3d(0xde)]({'reply':_0x282470,'renderingStrategy':_0x4d0d3d(0xa9)});}}[_0x5268ff(0x133)](_0x263386){const _0x40b23e=_0x5268ff,_0x4e00eb={'positiveCount':_0x263386[_0x40b23e(0xe6)][_0x40b23e(0x11b)](_0x4f47b2=>_0x40b23e(0x12e)===_0x4f47b2[_0x40b23e(0x19b)])[_0x40b23e(0x121)],'totalCount':_0x263386[_0x40b23e(0xe6)][_0x40b23e(0x121)],'modificationId':_0x263386['id']},_0x3044f2=this[_0x40b23e(0x91)][_0x40b23e(0xf7)](_0x263386[_0x40b23e(0xab)])[_0x40b23e(0x1ac)];this[_0x40b23e(0xed)][_0x40b23e(0x160)](this[_0x40b23e(0x91)]['id'],_0x3044f2,_0x4e00eb);}}
@@ -222,6 +222,7 @@ export declare class AIChatUI extends ContextPlugin {
222
222
  closeSourceResourceBalloon(sourceId: string): void;
223
223
  focusPromptInput(): void;
224
224
  scrollFeedToSuggestion(replyId: string, partIndex: number): void;
225
+ startAutoScroll(): void;
225
226
  disableControls(): void;
226
227
  enableControls(): void;
227
228
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa384c0=_0x1b70;(function(_0x5e1099,_0x1a57a4){const _0xaa5233=_0x1b70,_0x3460ed=_0x5e1099();while(!![]){try{const _0x2872fc=parseInt(_0xaa5233(0x215))/0x1*(-parseInt(_0xaa5233(0x1d9))/0x2)+-parseInt(_0xaa5233(0x25f))/0x3+parseInt(_0xaa5233(0x230))/0x4*(parseInt(_0xaa5233(0x1df))/0x5)+-parseInt(_0xaa5233(0x212))/0x6+parseInt(_0xaa5233(0x1c5))/0x7+-parseInt(_0xaa5233(0x264))/0x8*(parseInt(_0xaa5233(0x205))/0x9)+-parseInt(_0xaa5233(0x242))/0xa*(-parseInt(_0xaa5233(0x1f8))/0xb);if(_0x2872fc===_0x1a57a4)break;else _0x3460ed['push'](_0x3460ed['shift']());}catch(_0x4b73c0){_0x3460ed['push'](_0x3460ed['shift']());}}}(_0x44f0,0xc146d));import{ContextPlugin as _0x3d32e1}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x461e7a}from'ckeditor5/src/utils.js';import{AIChatView as _0x20a1a8}from'./ui/aichatview.js';import{AITabs as _0x529d51}from'../aitabs/aitabs.js';import{getTranslation as _0x5aef7e}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x384bbe}from'ckeditor5/src/icons.js';function _0x44f0(){const _0x49e6c0=['startAutoScroll','setIsUploadInProgress','streaming','803224RXvybp','setSelectedModel','stopAutoScroll','isDone','stopInteraction','1489985OEcTbi','addFeedItemAISuggestion','updateFeedInteractionHeader','setIsMaximized','populateSourceResourceBalloon','ai-suggestion-reply','setModelList','plugins','pluginName','startsWith','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','conversation-start','length','updateFeedItemAIReplySuggestionPartState','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','feedItemRenderingStrategy','user-message','ai-reply','AIChatUI','AI_CHAT_WELCOME_MESSAGE','315346GORzZi','setModel','clearPendingContextUI','addTab','children','abort','145cgYAmh','setConversationTitle','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','_interactionPromiseResolver','interactionId','destroy','addItem','filter','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isMaximized','userMessage','isWebSearchEnabled','toggleSuggestionDisplayMode','addContextItem','setLoadingMessage','chatFeed','updateReplyItem','removeFeedInteraction','</p>','_animateConversationTitle','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','quickActionData','markItemAsDone','11MokrTV','markFeedItemAsDone','updateFeedItemAIReplyContent','addFeedItemUserMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_getInputPlaceholder','_isTrackChangesCommandValueBound','resetConversationTitle','areActionsDisabled','then','_view','isVisible','setConversationContext','135cMhfVX','isOfficialPlugin','closeSourceResourceBalloon','showResizeButton','enableModelSelector','_titleAnimationInterval','removeItem','queueEmptyPromise','values','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addFeedInteractionHeader','setReasoning','chat','3804132EVWPQG','config','getItemIds','1sQwXxq','addFeedItemAIReply','removeContextItem','updateSuggestionItem','startInteraction','_getLoadingMessage','scrollToSuggestion','showDiff','_promiseQueue','clearConversationContextUI','context','isModelAvailable','updateCapabilities','commands','enqueue','find','setContextItemLoading','setFeedItemRenderingStrategy','focusPromptInput','from','error-message','<p>','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','bind','enableControls','clear','isDisabled','118596EgaBVB','trackChanges','label','setInputPlaceholder','renderingStrategy','locale','AITabs','value','interaction-header','updateSuggestionPartState','set','toggleLoadingSkeleton','disableModelSelector','updateFeedItemAIReplySuggestionContent','createConversation','view','get','ai.availableReplyActions','22509230HzMwCS','setAddContextOptions','remove','updateResourceState','isLoading','updateFeedItemAIReplySources','delegate','requires','forEach','isBusy','last','options','chatControls','finishInteraction','setWebSearch','displayedPrompt','isPending','contextItems','isReasoningEnabled','chatHeader','scrollFeedToSuggestion','addFeedItemStaticMessage','AI_CHAT_HEADING','resetMessageInput','addFeedItemError','updateWebSources','capabilities','isTrackChangesOn','isPremiumPlugin','702594JByJUK','ai.chat.models.modelSelectorAlwaysVisible'];_0x44f0=function(){return _0x49e6c0;};return _0x44f0();}function _0x1b70(_0x199757,_0x8dbd43){const _0x44f0ee=_0x44f0();return _0x1b70=function(_0x1b70dc,_0x378e11){_0x1b70dc=_0x1b70dc-0x1c2;let _0x2a425b=_0x44f0ee[_0x1b70dc];return _0x2a425b;},_0x1b70(_0x199757,_0x8dbd43);}import{AIChatFeedInteractionHeaderView as _0x5d9f77}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x387e61}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3f54a5}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x19ab48}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x3d32e1{static get[_0xa384c0(0x249)](){return[_0x529d51];}[_0xa384c0(0x202)];static get[_0xa384c0(0x1cd)](){const _0x36b7df=_0xa384c0;return _0x36b7df(0x1d7);}static get[_0xa384c0(0x206)](){return!0x0;}static get[_0xa384c0(0x25e)](){return!0x0;}[_0xa384c0(0x1d4)]=_0xa384c0(0x263);[_0xa384c0(0x21c)]=!0x0;[_0xa384c0(0x21d)];[_0xa384c0(0x1e2)];[_0xa384c0(0x20a)]=void 0x0;[_0xa384c0(0x1fe)]=!0x1;constructor(_0x3d71f0){const _0x516d30=_0xa384c0;super(_0x3d71f0);const _0x476ea5=this[_0x516d30(0x21f)][_0x516d30(0x1cc)][_0x516d30(0x240)](_0x516d30(0x236));this[_0x516d30(0x23a)](_0x516d30(0x24b),!0x1),this[_0x516d30(0x21d)]=new _0x387e61(),this[_0x516d30(0x202)]=new _0x20a1a8(this[_0x516d30(0x21f)][_0x516d30(0x235)],_0x476ea5[_0x516d30(0x208)]),this[_0x516d30(0x202)][_0x516d30(0x248)](..._0x3f54a5)['to'](this),this[_0x516d30(0x202)]['on'](_0x516d30(0x1ec),(_0xdffe85,{showDiff:_0x3abb0a})=>{const _0xcc08c5=_0x516d30;this[_0xcc08c5(0x21c)]=_0x3abb0a;}),_0x476ea5[_0x516d30(0x23f)][_0x516d30(0x1dc)]({'id':_0x516d30(0x211),'buttonLabel':_0x5aef7e(this[_0x516d30(0x21f)][_0x516d30(0x235)],_0x516d30(0x258)),'buttonIcon':_0x384bbe,'order':0x0,'content':this[_0x516d30(0x202)]}),this[_0x516d30(0x202)][_0x516d30(0x24e)][_0x516d30(0x22c)](_0x516d30(0x246))['to'](this,_0x516d30(0x24b),_0x9e7fc2=>_0x9e7fc2),this[_0x516d30(0x202)][_0x516d30(0x1ef)][_0x516d30(0x22c)](_0x516d30(0x252))['to'](this,_0x516d30(0x24b),_0x5ea0b9=>_0x5ea0b9),this[_0x516d30(0x202)][_0x516d30(0x24e)][_0x516d30(0x233)](this[_0x516d30(0x1fd)]()),this[_0x516d30(0x22c)](_0x516d30(0x220))['to'](this[_0x516d30(0x202)][_0x516d30(0x24e)],_0x516d30(0x220));}[_0xa384c0(0x1e4)](){const _0x53e3ca=_0xa384c0;super[_0x53e3ca(0x1e4)](),this[_0x53e3ca(0x20a)]&&clearInterval(this[_0x53e3ca(0x20a)]);}[_0xa384c0(0x23e)](_0x184093){const _0x4ea481=_0xa384c0;this[_0x4ea481(0x202)][_0x4ea481(0x1ef)][_0x4ea481(0x22e)](),this[_0x4ea481(0x202)][_0x4ea481(0x24e)][_0x4ea481(0x209)](),this[_0x4ea481(0x202)][_0x4ea481(0x24e)][_0x4ea481(0x1cb)](_0x184093[_0x4ea481(0x1e7)],!this[_0x4ea481(0x21f)][_0x4ea481(0x213)][_0x4ea481(0x240)](_0x4ea481(0x260))),this[_0x4ea481(0x257)]({'id':_0x4ea481(0x1d0),'staticMessage':_0x5aef7e(this[_0x4ea481(0x21f)][_0x4ea481(0x235)],_0x4ea481(0x1d8))});}[_0xa384c0(0x257)]({id:_0x33f49d,staticMessage:_0xb5e5ed}){const _0xbf7c67=_0xa384c0;this[_0xbf7c67(0x202)][_0xbf7c67(0x1ef)][_0xbf7c67(0x1e5)](_0xbf7c67(0x1d6),{'id':_0x33f49d,'initialContent':_0xbf7c67(0x22a)+_0xb5e5ed+_0xbf7c67(0x1f2)});}[_0xa384c0(0x1fb)](_0x310aec){const _0x493e93=_0xa384c0,_0x52879c=_0x310aec[_0x493e93(0x1f6)]?.[_0x493e93(0x251)]||_0x310aec[_0x493e93(0x1ea)];this[_0x493e93(0x202)][_0x493e93(0x1ef)][_0x493e93(0x1e5)](_0x493e93(0x1d5),{'contextItems':Array[_0x493e93(0x228)](_0x310aec[_0x493e93(0x253)][_0x493e93(0x20d)]()),'initialContent':_0x493e93(0x22a)+_0x52879c+_0x493e93(0x1f2),'id':_0x310aec['id']});}[_0xa384c0(0x25a)]({errorMessage:_0x3a8f6b,id:_0x26cdd5}){const _0x5e3760=_0xa384c0;this[_0x5e3760(0x202)][_0x5e3760(0x1ef)][_0x5e3760(0x1e5)](_0x5e3760(0x229),{'initialContent':_0x5e3760(0x22a)+_0x3a8f6b+_0x5e3760(0x1f2),'id':_0x26cdd5});}[_0xa384c0(0x216)](_0x1abcbf){const _0x4f7e8b=_0xa384c0;return this[_0x4f7e8b(0x21d)][_0x4f7e8b(0x223)](async()=>{const _0x268ece=_0x4f7e8b;this[_0x268ece(0x202)][_0x268ece(0x1ef)][_0x268ece(0x1e5)](_0x268ece(0x1d6),{'id':_0x1abcbf[_0x268ece(0x1e3)]+':'+_0x1abcbf['id']}),this[_0x268ece(0x1ee)](null);});}async[_0xa384c0(0x1c6)](_0x595ac5){const _0x157ef6=_0xa384c0,_0x946b8e=_0x19ab48(this[_0x157ef6(0x21f)]);if(_0x946b8e){const _0x413ab9=_0x946b8e[_0x157ef6(0x222)][_0x157ef6(0x240)](_0x157ef6(0x231));_0x413ab9&&!this[_0x157ef6(0x1fe)]&&(this[_0x157ef6(0x1fe)]=!0x0,this[_0x157ef6(0x202)][_0x157ef6(0x1ef)][_0x157ef6(0x22c)](_0x157ef6(0x25d))['to'](_0x413ab9,_0x157ef6(0x237)));}return this[_0x157ef6(0x21d)][_0x157ef6(0x223)](async()=>{const _0x15c6a3=_0x157ef6;this[_0x15c6a3(0x202)][_0x15c6a3(0x1ef)][_0x15c6a3(0x1e5)](_0x15c6a3(0x1ca),{'id':_0x595ac5[_0x15c6a3(0x1e3)]+':'+_0x595ac5['id'],'areActionsDisabled':_0x595ac5[_0x15c6a3(0x200)],'showDiff':this[_0x15c6a3(0x21c)],'dropdownConfig':this[_0x15c6a3(0x21f)][_0x15c6a3(0x213)][_0x15c6a3(0x240)](_0x15c6a3(0x241))}),this[_0x15c6a3(0x1ee)](null);});}[_0xa384c0(0x20f)](_0x3ed2a7,_0x39be7d){const _0xd05749=_0xa384c0,_0x35f6af=this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1dd)][_0xd05749(0x24c)];if(_0x35f6af instanceof _0x5d9f77)return this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1dd)][_0xd05749(0x244)](_0x35f6af),void this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1e5)](_0xd05749(0x238),{'id':_0x3ed2a7['id'],'capabilities':{'isWebSearchEnabled':_0x35f6af[_0xd05749(0x25c)][_0xd05749(0x1eb)]||_0x39be7d[_0xd05749(0x1eb)],'isReasoningEnabled':_0x35f6af[_0xd05749(0x25c)][_0xd05749(0x254)]||_0x39be7d[_0xd05749(0x254)]}});this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1e5)](_0xd05749(0x238),{'id':_0x3ed2a7['id'],'capabilities':_0x39be7d});}[_0xa384c0(0x1c7)](_0xf9a825){const _0x47a5bb=_0xa384c0,_0x35df38=this[_0x47a5bb(0x202)][_0x47a5bb(0x1ef)][_0x47a5bb(0x1dd)][_0x47a5bb(0x224)](_0x44c1b2=>_0x44c1b2[_0x47a5bb(0x24d)]['id']==_0xf9a825['id']&&_0x44c1b2 instanceof _0x5d9f77);_0x35df38&&_0x35df38[_0x47a5bb(0x23a)](_0x47a5bb(0x203),_0xf9a825[_0x47a5bb(0x203)]);}async[_0xa384c0(0x1fa)](_0x69e857){const _0x4bbec8=_0xa384c0,_0x536b7c=_0x69e857[_0x4bbec8(0x234)]||this[_0x4bbec8(0x1d4)];return this[_0x4bbec8(0x21d)][_0x4bbec8(0x223)](async _0x2ad151=>{const _0x464f22=_0x4bbec8;await this[_0x464f22(0x202)][_0x464f22(0x1ef)][_0x464f22(0x1f0)]({..._0x69e857,'abortSignal':_0x2ad151,'renderingStrategy':_0x536b7c}),_0x69e857[_0x464f22(0x1c3)]&&this[_0x464f22(0x1f9)](_0x69e857['id']);});}[_0xa384c0(0x247)](_0x1ee557,_0x557e35){const _0x5f2209=_0xa384c0;this[_0x5f2209(0x202)][_0x5f2209(0x1ef)][_0x5f2209(0x25b)](_0x1ee557,_0x557e35);}async[_0xa384c0(0x23d)](_0x45e9b5){const _0x405d04=_0xa384c0,_0x247857=_0x45e9b5[_0x405d04(0x234)]||this[_0x405d04(0x1d4)];return this[_0x405d04(0x21d)][_0x405d04(0x223)](async _0x1814eb=>{const _0x35f168=_0x405d04;await this[_0x35f168(0x202)][_0x35f168(0x1ef)][_0x35f168(0x218)]({..._0x45e9b5,'abortSignal':_0x1814eb,'renderingStrategy':_0x247857}),_0x45e9b5[_0x35f168(0x1c3)]&&this[_0x35f168(0x1f9)](_0x45e9b5['id']);});}[_0xa384c0(0x1d2)](_0x5bfa12){const _0x530ae1=_0xa384c0;this[_0x530ae1(0x202)][_0x530ae1(0x1ef)][_0x530ae1(0x239)](_0x5bfa12);}[_0xa384c0(0x1f9)](_0x15aae8){const _0x1e5879=_0xa384c0;this[_0x1e5879(0x202)][_0x1e5879(0x1ef)][_0x1e5879(0x1f7)](_0x15aae8);}[_0xa384c0(0x1f1)](_0x2b9361){const _0x591596=_0xa384c0;this[_0x591596(0x202)][_0x591596(0x1ef)][_0x591596(0x214)]()[_0x591596(0x1e6)](_0x2700d1=>_0x2700d1[_0x591596(0x1ce)](_0x2b9361))[_0x591596(0x24a)](_0x5478e6=>this[_0x591596(0x202)][_0x591596(0x1ef)][_0x591596(0x20b)](_0x5478e6));}[_0xa384c0(0x219)](){const _0x2f9f6e=_0xa384c0;this[_0x2f9f6e(0x1ee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2f9f6e(0x202)][_0x2f9f6e(0x24e)][_0x2f9f6e(0x23c)](!this[_0x2f9f6e(0x21f)][_0x2f9f6e(0x213)][_0x2f9f6e(0x240)](_0x2f9f6e(0x260))),this[_0x2f9f6e(0x24b)]=!0x0,this[_0x2f9f6e(0x202)][_0x2f9f6e(0x1ef)][_0x2f9f6e(0x261)]();}[_0xa384c0(0x1c4)](_0x5145c2){const _0x49a667=_0xa384c0;this[_0x49a667(0x21d)][_0x49a667(0x1de)](),this[_0x49a667(0x202)][_0x49a667(0x1ef)][_0x49a667(0x214)]()[_0x49a667(0x1e6)](_0x547947=>_0x547947[_0x49a667(0x1ce)](_0x5145c2['id']))[_0x49a667(0x24a)](_0x5d3266=>this[_0x49a667(0x1f9)](_0x5d3266)),this[_0x49a667(0x24b)]=!0x1,this[_0x49a667(0x202)][_0x49a667(0x1ef)][_0x49a667(0x1c2)]();}async[_0xa384c0(0x24f)](){const _0x49deba=_0xa384c0;return this[_0x49deba(0x21d)][_0x49deba(0x20c)][_0x49deba(0x201)](()=>{const _0x5763e3=_0x49deba;this[_0x5763e3(0x24b)]=!0x1,this[_0x5763e3(0x202)][_0x5763e3(0x1ef)][_0x5763e3(0x1c2)]();});}[_0xa384c0(0x1ed)](_0x5b26cd,_0x1475ed){const _0x337758=_0xa384c0;this[_0x337758(0x202)][_0x337758(0x24e)][_0x337758(0x1ed)](_0x5b26cd,_0x1475ed);}[_0xa384c0(0x217)](_0x2c1c0d){const _0xef920=_0xa384c0;this[_0xef920(0x202)][_0xef920(0x24e)][_0xef920(0x217)](_0x2c1c0d);}[_0xa384c0(0x225)](_0x5e8c7d,_0x1c90bd){const _0x527044=_0xa384c0;this[_0x527044(0x202)][_0x527044(0x24e)][_0x527044(0x225)](_0x5e8c7d,_0x1c90bd);}[_0xa384c0(0x262)](_0xafb41d){const _0x129391=_0xa384c0;this[_0x129391(0x202)][_0x129391(0x24e)][_0x129391(0x262)](_0xafb41d);}[_0xa384c0(0x204)](_0x5cb66f){const _0x50198d=_0xa384c0;this[_0x50198d(0x202)][_0x50198d(0x24e)][_0x50198d(0x204)](_0x5cb66f);}[_0xa384c0(0x1db)](){const _0x2a9c5f=_0xa384c0;this[_0x2a9c5f(0x202)][_0x2a9c5f(0x24e)][_0x2a9c5f(0x1db)]();}[_0xa384c0(0x21e)](){const _0x494b68=_0xa384c0;this[_0x494b68(0x202)][_0x494b68(0x24e)][_0x494b68(0x21e)]();}[_0xa384c0(0x245)](_0x294a49,_0xb3402d,_0x3e9572){const _0x5a5a9a=_0xa384c0;this[_0x5a5a9a(0x202)][_0x5a5a9a(0x24e)][_0x5a5a9a(0x245)](_0x294a49,_0xb3402d,_0x3e9572);}[_0xa384c0(0x259)](){const _0x11a8db=_0xa384c0;this[_0x11a8db(0x202)][_0x11a8db(0x24e)][_0x11a8db(0x259)](),this[_0x11a8db(0x202)][_0x11a8db(0x24e)][_0x11a8db(0x233)](this[_0x11a8db(0x1fd)]());}[_0xa384c0(0x243)](_0x1b5a1d){const _0x1fbecc=_0xa384c0;this[_0x1fbecc(0x202)][_0x1fbecc(0x24e)][_0x1fbecc(0x243)](_0x1b5a1d);}[_0xa384c0(0x221)](_0x3cfdae){const _0x1383d3=_0xa384c0;this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x250)](_0x3cfdae[_0x1383d3(0x1eb)]),this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x210)](_0x3cfdae[_0x1383d3(0x254)]),this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x233)](this[_0x1383d3(0x1fd)](_0x3cfdae));}[_0xa384c0(0x265)](_0x4d1cc5,_0x2442cb){const _0x5e2a15=_0xa384c0;this[_0x5e2a15(0x202)][_0x5e2a15(0x24e)][_0x5e2a15(0x1da)](_0x4d1cc5),_0x2442cb&&this[_0x5e2a15(0x202)][_0x5e2a15(0x24e)][_0x5e2a15(0x23c)](!0x1);}[_0xa384c0(0x226)](_0x11eb77){const _0x5be38d=_0xa384c0;this[_0x5be38d(0x1d4)]=_0x11eb77;}[_0xa384c0(0x23b)](_0x4d5c20){const _0xa38563=_0xa384c0;this[_0xa38563(0x202)][_0xa38563(0x1ef)][_0xa38563(0x23b)](_0x4d5c20);}[_0xa384c0(0x1ff)](){const _0x553e2e=_0xa384c0;this[_0x553e2e(0x1e0)](_0x5aef7e(this[_0x553e2e(0x21f)][_0x553e2e(0x235)],_0x553e2e(0x258)));}[_0xa384c0(0x1e0)](_0x1dcf48,_0x4acaa6=!0x1){const _0x4424f5=_0xa384c0;if(_0x4acaa6&&!_0x461e7a()&&_0x1dcf48[_0x4424f5(0x1d1)])return this[_0x4424f5(0x202)][_0x4424f5(0x255)][_0x4424f5(0x232)]='',void this[_0x4424f5(0x1f3)](_0x1dcf48);this[_0x4424f5(0x202)][_0x4424f5(0x255)][_0x4424f5(0x232)]=_0x1dcf48;}[_0xa384c0(0x1ee)](_0x1bdc0c){const _0x325507=_0xa384c0,_0x389615=this[_0x325507(0x21a)](_0x1bdc0c);this[_0x325507(0x202)][_0x325507(0x1ef)][_0x325507(0x1ee)](_0x389615);}[_0xa384c0(0x1f3)](_0x3d6976){const _0x3f3dc0=_0xa384c0;let _0x5bc9f5=0x0;clearInterval(this[_0x3f3dc0(0x20a)]),this[_0x3f3dc0(0x20a)]=setInterval(()=>{const _0x37dbcf=_0x3f3dc0;this[_0x37dbcf(0x202)][_0x37dbcf(0x255)][_0x37dbcf(0x232)]=this[_0x37dbcf(0x202)][_0x37dbcf(0x255)][_0x37dbcf(0x232)]+_0x3d6976[_0x5bc9f5],_0x5bc9f5++,_0x5bc9f5===_0x3d6976[_0x37dbcf(0x1d1)]&&clearInterval(this[_0x37dbcf(0x20a)]);},0x1e);}[_0xa384c0(0x1c8)](_0x3fd256){const _0x414b36=_0xa384c0;this[_0x414b36(0x202)][_0x414b36(0x255)][_0x414b36(0x1e9)]=_0x3fd256;}[_0xa384c0(0x21a)](_0x2727c5){const _0x4eb208=_0xa384c0;return _0x2727c5?_0x2727c5[_0x4eb208(0x1eb)]&&_0x2727c5[_0x4eb208(0x254)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x20e)):_0x2727c5[_0x4eb208(0x1eb)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1cf)):_0x2727c5[_0x4eb208(0x254)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1f5)):_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1e1)):'';}[_0xa384c0(0x1fd)](_0x2c4955){const _0x51280c=_0xa384c0;return _0x2c4955?_0x2c4955[_0x51280c(0x1eb)]&&_0x2c4955[_0x51280c(0x254)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1d3)):_0x2c4955[_0x51280c(0x1eb)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x22b)):_0x2c4955[_0x51280c(0x254)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1fc)):_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1e8)):_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1e8));}[_0xa384c0(0x1c9)](_0x4b5db7,_0x515ef0,_0x5cb129,_0x51fd7c){const _0x4af56e=_0xa384c0;this[_0x4af56e(0x202)][_0x4af56e(0x1c9)](_0x4b5db7,_0x515ef0,_0x5cb129,_0x51fd7c);}[_0xa384c0(0x207)](_0x53350b){const _0x5cc757=_0xa384c0;this[_0x5cc757(0x202)][_0x5cc757(0x207)](_0x53350b);}[_0xa384c0(0x227)](){const _0xd1abf6=_0xa384c0;this[_0xd1abf6(0x202)][_0xd1abf6(0x24e)][_0xd1abf6(0x227)]();}[_0xa384c0(0x256)](_0x25c9e2,_0x16b46e){const _0x204a90=_0xa384c0;this[_0x204a90(0x202)][_0x204a90(0x1ef)][_0x204a90(0x21b)](_0x25c9e2,_0x16b46e);}[_0xa384c0(0x1f4)](){const _0x51bcad=_0xa384c0;this[_0x51bcad(0x202)][_0x51bcad(0x24e)][_0x51bcad(0x22f)]=!0x0;}[_0xa384c0(0x22d)](){const _0x1e12df=_0xa384c0;this[_0x1e12df(0x202)][_0x1e12df(0x24e)][_0x1e12df(0x22f)]=!0x1;}}
23
+ const _0x536f91=_0x3cc7;(function(_0x33a29e,_0xd3e30b){const _0x18a443=_0x3cc7,_0x4f7db=_0x33a29e();while(!![]){try{const _0x35d9ee=parseInt(_0x18a443(0x116))/0x1+-parseInt(_0x18a443(0x168))/0x2*(parseInt(_0x18a443(0x166))/0x3)+-parseInt(_0x18a443(0x118))/0x4*(parseInt(_0x18a443(0x121))/0x5)+parseInt(_0x18a443(0x10c))/0x6*(-parseInt(_0x18a443(0x12e))/0x7)+-parseInt(_0x18a443(0x130))/0x8*(-parseInt(_0x18a443(0x196))/0x9)+parseInt(_0x18a443(0x193))/0xa+parseInt(_0x18a443(0x16c))/0xb*(-parseInt(_0x18a443(0x1aa))/0xc);if(_0x35d9ee===_0xd3e30b)break;else _0x4f7db['push'](_0x4f7db['shift']());}catch(_0x1a19ca){_0x4f7db['push'](_0x4f7db['shift']());}}}(_0x50b4,0xcda39));import{ContextPlugin as _0x2ff81f}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x3f462a}from'ckeditor5/src/utils.js';function _0x50b4(){const _0x4c79bd=['startsWith','447986ZkfwHp','_interactionPromiseResolver','AI_CHAT_HEADING','queueEmptyPromise','stopInteraction','ai-suggestion-reply','updateSuggestionItem','value','forEach','userMessage','isDone','removeFeedInteraction','ai.availableReplyActions','isPending','disableControls','abort','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','setIsUploadInProgress','populateSourceResourceBalloon','toggleSuggestionDisplayMode','resetMessageInput','options','createConversation','destroy','areActionsDisabled','isTrackChangesOn','displayedPrompt','locale','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','chatControls','updateReplyItem','isModelAvailable','setReasoning','addFeedItemUserMessage','addContextItem','updateResourceState','config','setConversationTitle','addFeedItemStaticMessage','8220240cJFJiz','setAddContextOptions','setModel','2845449GuHWnM','interaction-header','updateFeedItemAIReplySuggestionContent','renderingStrategy','updateFeedItemAIReplySuggestionPartState','children','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','isReasoningEnabled','get','commands','getItemIds','interactionId','chat','view','removeItem','ai.chat.models.modelSelectorAlwaysVisible','scrollFeedToSuggestion','setSelectedModel','closeSourceResourceBalloon','toggleLoadingSkeleton','24qnVeJC','updateCapabilities','capabilities','has','stopAutoScroll','enqueue','trackChanges','plugins','</p>','focusPromptInput','showResizeButton','534xITgEc','disableModelSelector','resetConversationTitle','set','AI_CHAT_WELCOME_MESSAGE','isDisabled','setConversationContext','setInputPlaceholder','remove','chatHeader','624269ihsKEs','removeContextItem','243908OeyOJL','isBusy','updateFeedItemAIReplyContent','markItemAsDone','updateFeedInteractionHeader','requires','_animateConversationTitle','from','pluginName','55wIPHUP','updateFeedItemAIReplySources','label','setIsMaximized','AIChatUI','isVisible','contextItems','updateWebSources','quickActionData','last','setModelList','ai.chat.context.searchInputVisibleFrom','then','2751tCmpha','addFeedItemAIReply','16GHQEUW','clear','AITabs','_getLoadingMessage','filter','_view','<p>','user-message','enableModelSelector','setFeedItemRenderingStrategy','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','isMaximized','addTab','markFeedItemAsDone','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','insertSuggestion','startAutoScroll','isLoading','scrollToSuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','feedItemRenderingStrategy','startInteraction','showDiff','addItem','_promiseQueue','ai-reply','clearConversationContextUI','bind','conversation-start','delegate','chatFeed','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','find','addFeedInteractionHeader','_titleAnimationInterval','finishInteraction','length','updateSuggestionPartState','enableControls','error-message','_isTrackChangesCommandValueBound','context','isOfficialPlugin','TrackChanges','setLoadingMessage','addFeedItemError','clearPendingContextUI','setContextItemLoading','setWebSearch','isPremiumPlugin','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','streaming','9zzMAaE','isWebSearchEnabled','299428XhOQdK','values','_getInputPlaceholder'];_0x50b4=function(){return _0x4c79bd;};return _0x50b4();}import{AIChatView as _0x225679}from'./ui/aichatview.js';import{AITabs as _0x4712fd}from'../aitabs/aitabs.js';import{getTranslation as _0x860f42}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x2f7fa8}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x4f34ab}from'./ui/feed/aichatfeedinteractionheaderview.js';function _0x3cc7(_0x10ff95,_0x15a596){const _0x50b420=_0x50b4();return _0x3cc7=function(_0x3cc7cc,_0x263356){_0x3cc7cc=_0x3cc7cc-0x10b;let _0x3fc93c=_0x50b420[_0x3cc7cc];return _0x3fc93c;},_0x3cc7(_0x10ff95,_0x15a596);}import{PromiseQueue as _0x1664ed}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x23f9c8}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x3abcde}from'../aicore/utils/geteditorfromcontext.js';import{AI_REPLY_ACTIONS as _0x4fd586}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';export class AIChatUI extends _0x2ff81f{static get[_0x536f91(0x11d)](){return[_0x4712fd];}[_0x536f91(0x135)];static get[_0x536f91(0x120)](){const _0x155f3d=_0x536f91;return _0x155f3d(0x125);}static get[_0x536f91(0x15c)](){return!0x0;}static get[_0x536f91(0x163)](){return!0x0;}[_0x536f91(0x145)]=_0x536f91(0x165);[_0x536f91(0x147)]=!0x0;[_0x536f91(0x149)];[_0x536f91(0x16d)];[_0x536f91(0x154)]=void 0x0;[_0x536f91(0x15a)]=!0x1;constructor(_0x236f8f){const _0x3dd936=_0x536f91;super(_0x236f8f);const _0x4cc972=this[_0x3dd936(0x15b)][_0x3dd936(0x1b1)][_0x3dd936(0x19e)](_0x3dd936(0x132));this[_0x3dd936(0x10f)](_0x3dd936(0x119),!0x1),this[_0x3dd936(0x149)]=new _0x1664ed(),this[_0x3dd936(0x135)]=new _0x225679(this[_0x3dd936(0x15b)][_0x3dd936(0x187)],{'showResizeButton':_0x4cc972[_0x3dd936(0x10b)],'contextResourcesSearchInputVisibleFrom':this[_0x3dd936(0x15b)][_0x3dd936(0x190)][_0x3dd936(0x19e)](_0x3dd936(0x12c))}),this[_0x3dd936(0x135)][_0x3dd936(0x14e)](..._0x23f9c8)['to'](this),this[_0x3dd936(0x135)]['on'](_0x3dd936(0x17f),(_0x12b25d,{showDiff:_0x33ac39})=>{const _0x46eab2=_0x3dd936;this[_0x46eab2(0x147)]=_0x33ac39;}),_0x4cc972[_0x3dd936(0x1a3)][_0x3dd936(0x13d)]({'id':_0x3dd936(0x1a2),'buttonLabel':_0x860f42(this[_0x3dd936(0x15b)][_0x3dd936(0x187)],_0x3dd936(0x16e)),'buttonIcon':_0x2f7fa8,'order':0x0,'content':this[_0x3dd936(0x135)]}),this[_0x3dd936(0x135)][_0x3dd936(0x189)][_0x3dd936(0x14c)](_0x3dd936(0x142))['to'](this,_0x3dd936(0x119),_0x3d64f8=>_0x3d64f8),this[_0x3dd936(0x135)][_0x3dd936(0x14f)][_0x3dd936(0x14c)](_0x3dd936(0x179))['to'](this,_0x3dd936(0x119),_0x48fbb0=>_0x48fbb0),this[_0x3dd936(0x135)][_0x3dd936(0x189)][_0x3dd936(0x113)](this[_0x3dd936(0x16a)]()),this[_0x3dd936(0x14c)](_0x3dd936(0x18b))['to'](this[_0x3dd936(0x135)][_0x3dd936(0x189)],_0x3dd936(0x18b));}[_0x536f91(0x183)](){const _0xa9f9bd=_0x536f91;super[_0xa9f9bd(0x183)](),this[_0xa9f9bd(0x154)]&&clearInterval(this[_0xa9f9bd(0x154)]);}[_0x536f91(0x182)](_0x23f698){const _0x4086e2=_0x536f91;this[_0x4086e2(0x135)][_0x4086e2(0x14f)][_0x4086e2(0x131)](),this[_0x4086e2(0x135)][_0x4086e2(0x189)][_0x4086e2(0x138)](),this[_0x4086e2(0x135)][_0x4086e2(0x189)][_0x4086e2(0x12b)](_0x23f698[_0x4086e2(0x13a)],!this[_0x4086e2(0x15b)][_0x4086e2(0x190)][_0x4086e2(0x19e)](_0x4086e2(0x1a5))),this[_0x4086e2(0x192)]({'id':_0x4086e2(0x14d),'staticMessage':_0x860f42(this[_0x4086e2(0x15b)][_0x4086e2(0x187)],_0x4086e2(0x110))});}[_0x536f91(0x192)]({id:_0x3ea930,staticMessage:_0x45e5a2}){const _0x249bc2=_0x536f91;this[_0x249bc2(0x135)][_0x249bc2(0x14f)][_0x249bc2(0x148)](_0x249bc2(0x14a),{'id':_0x3ea930,'initialContent':_0x249bc2(0x136)+_0x45e5a2+_0x249bc2(0x1b2)});}[_0x536f91(0x18d)](_0x49d292){const _0x4f44ba=_0x536f91,_0x453fd5=_0x49d292[_0x4f44ba(0x129)]?.[_0x4f44ba(0x186)]||_0x49d292[_0x4f44ba(0x175)];this[_0x4f44ba(0x135)][_0x4f44ba(0x14f)][_0x4f44ba(0x148)](_0x4f44ba(0x137),{'contextItems':Array[_0x4f44ba(0x11f)](_0x49d292[_0x4f44ba(0x127)][_0x4f44ba(0x169)]()),'initialContent':_0x4f44ba(0x136)+_0x453fd5+_0x4f44ba(0x1b2),'id':_0x49d292['id']});}[_0x536f91(0x15f)]({errorMessage:_0x481764,id:_0x54599e}){const _0x10722f=_0x536f91;this[_0x10722f(0x135)][_0x10722f(0x14f)][_0x10722f(0x148)](_0x10722f(0x159),{'initialContent':_0x10722f(0x136)+_0x481764+_0x10722f(0x1b2),'id':_0x54599e});}[_0x536f91(0x12f)](_0x558922){const _0x2b7f7e=_0x536f91;return this[_0x2b7f7e(0x149)][_0x2b7f7e(0x1af)](async()=>{const _0xe17172=_0x2b7f7e;this[_0xe17172(0x135)][_0xe17172(0x14f)][_0xe17172(0x148)](_0xe17172(0x14a),{'id':_0x558922[_0xe17172(0x1a1)]+':'+_0x558922['id']}),this[_0xe17172(0x15e)](null);});}async[_0x536f91(0x150)](_0x5832ca){const _0x31d777=_0x536f91,_0x4a9da0=_0x3abcde(this[_0x31d777(0x15b)]);let _0xf47c94=_0x4a9da0[_0x31d777(0x190)][_0x31d777(0x19e)](_0x31d777(0x178))||[..._0x4fd586];if(_0x4a9da0[_0x31d777(0x1b1)][_0x31d777(0x1ad)](_0x31d777(0x15d))){if(!this[_0x31d777(0x15a)]){this[_0x31d777(0x15a)]=!0x0;const _0x2b9ce5=_0x4a9da0[_0x31d777(0x19f)][_0x31d777(0x19e)](_0x31d777(0x1b0));this[_0x31d777(0x135)][_0x31d777(0x14f)][_0x31d777(0x14c)](_0x31d777(0x185))['to'](_0x2b9ce5,_0x31d777(0x173));}}else _0xf47c94=_0xf47c94[_0x31d777(0x134)](_0x1f9a00=>_0x31d777(0x140)!=_0x1f9a00);return this[_0x31d777(0x149)][_0x31d777(0x1af)](async()=>{const _0x1562ab=_0x31d777;this[_0x1562ab(0x135)][_0x1562ab(0x14f)][_0x1562ab(0x148)](_0x1562ab(0x171),{'id':_0x5832ca[_0x1562ab(0x1a1)]+':'+_0x5832ca['id'],'areActionsDisabled':_0x5832ca[_0x1562ab(0x184)],'showDiff':this[_0x1562ab(0x147)],'availableActions':_0xf47c94}),this[_0x1562ab(0x15e)](null);});}[_0x536f91(0x153)](_0x247d18,_0x393e07){const _0x28162d=_0x536f91,_0x275a14=this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x19b)][_0x28162d(0x12a)];if(_0x275a14 instanceof _0x4f34ab)return this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x19b)][_0x28162d(0x114)](_0x275a14),void this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x148)](_0x28162d(0x197),{'id':_0x247d18['id'],'capabilities':{'isWebSearchEnabled':_0x275a14[_0x28162d(0x1ac)][_0x28162d(0x167)]||_0x393e07[_0x28162d(0x167)],'isReasoningEnabled':_0x275a14[_0x28162d(0x1ac)][_0x28162d(0x19d)]||_0x393e07[_0x28162d(0x19d)]}});this[_0x28162d(0x135)][_0x28162d(0x14f)][_0x28162d(0x148)](_0x28162d(0x197),{'id':_0x247d18['id'],'capabilities':_0x393e07});}[_0x536f91(0x11c)](_0x18a3f5){const _0x5a9535=_0x536f91,_0x1cb064=this[_0x5a9535(0x135)][_0x5a9535(0x14f)][_0x5a9535(0x19b)][_0x5a9535(0x152)](_0x3d3dca=>_0x3d3dca[_0x5a9535(0x181)]['id']==_0x18a3f5['id']&&_0x3d3dca instanceof _0x4f34ab);_0x1cb064&&_0x1cb064[_0x5a9535(0x10f)](_0x5a9535(0x126),_0x18a3f5[_0x5a9535(0x126)]);}async[_0x536f91(0x11a)](_0x346136){const _0x190f67=_0x536f91,_0x459acd=_0x346136[_0x190f67(0x199)]||this[_0x190f67(0x145)];return this[_0x190f67(0x149)][_0x190f67(0x1af)](async _0x48647d=>{const _0x469104=_0x190f67;await this[_0x469104(0x135)][_0x469104(0x14f)][_0x469104(0x18a)]({..._0x346136,'abortSignal':_0x48647d,'renderingStrategy':_0x459acd}),_0x346136[_0x469104(0x176)]&&this[_0x469104(0x13e)](_0x346136['id']);});}[_0x536f91(0x122)](_0xa6c1c7,_0x14f77d){const _0x35d3ef=_0x536f91;this[_0x35d3ef(0x135)][_0x35d3ef(0x14f)][_0x35d3ef(0x128)](_0xa6c1c7,_0x14f77d);}async[_0x536f91(0x198)](_0x3260d7){const _0x298713=_0x536f91,_0x4b480c=_0x3260d7[_0x298713(0x199)]||this[_0x298713(0x145)];return this[_0x298713(0x149)][_0x298713(0x1af)](async _0x229cf8=>{const _0x3ef5db=_0x298713;await this[_0x3ef5db(0x135)][_0x3ef5db(0x14f)][_0x3ef5db(0x172)]({..._0x3260d7,'abortSignal':_0x229cf8,'renderingStrategy':_0x4b480c}),_0x3260d7[_0x3ef5db(0x176)]&&this[_0x3ef5db(0x13e)](_0x3260d7['id']);});}[_0x536f91(0x19a)](_0x5b244b){const _0x467500=_0x536f91;this[_0x467500(0x135)][_0x467500(0x14f)][_0x467500(0x157)](_0x5b244b);}[_0x536f91(0x13e)](_0x2a2f58){const _0x8290da=_0x536f91;this[_0x8290da(0x135)][_0x8290da(0x14f)][_0x8290da(0x11b)](_0x2a2f58);}[_0x536f91(0x177)](_0x3d01d0){const _0x5ad52a=_0x536f91;this[_0x5ad52a(0x135)][_0x5ad52a(0x14f)][_0x5ad52a(0x1a0)]()[_0x5ad52a(0x134)](_0x410960=>_0x410960[_0x5ad52a(0x16b)](_0x3d01d0))[_0x5ad52a(0x174)](_0x5bae7d=>this[_0x5ad52a(0x135)][_0x5ad52a(0x14f)][_0x5ad52a(0x1a4)](_0x5bae7d));}[_0x536f91(0x146)](){const _0x1e2888=_0x536f91;this[_0x1e2888(0x15e)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x1e2888(0x135)][_0x1e2888(0x189)][_0x1e2888(0x10d)](!this[_0x1e2888(0x15b)][_0x1e2888(0x190)][_0x1e2888(0x19e)](_0x1e2888(0x1a5))),this[_0x1e2888(0x119)]=!0x0,this[_0x1e2888(0x135)][_0x1e2888(0x14f)][_0x1e2888(0x141)]();}[_0x536f91(0x170)](_0xab07d4){const _0x1879ce=_0x536f91;this[_0x1879ce(0x149)][_0x1879ce(0x17b)](),this[_0x1879ce(0x135)][_0x1879ce(0x14f)][_0x1879ce(0x1a0)]()[_0x1879ce(0x134)](_0x1f79b2=>_0x1f79b2[_0x1879ce(0x16b)](_0xab07d4['id']))[_0x1879ce(0x174)](_0x537119=>this[_0x1879ce(0x13e)](_0x537119)),this[_0x1879ce(0x119)]=!0x1,this[_0x1879ce(0x135)][_0x1879ce(0x14f)][_0x1879ce(0x1ae)]();}async[_0x536f91(0x155)](){const _0x3eb5bd=_0x536f91;return this[_0x3eb5bd(0x149)][_0x3eb5bd(0x16f)][_0x3eb5bd(0x12d)](()=>{const _0x52d08b=_0x3eb5bd;this[_0x52d08b(0x119)]=!0x1,this[_0x52d08b(0x135)][_0x52d08b(0x14f)][_0x52d08b(0x1ae)]();});}[_0x536f91(0x18e)](_0x4c3386,_0x1dd34f){const _0x5cc3b9=_0x536f91;this[_0x5cc3b9(0x135)][_0x5cc3b9(0x189)][_0x5cc3b9(0x18e)](_0x4c3386,_0x1dd34f);}[_0x536f91(0x117)](_0x2dcc58){const _0x490c92=_0x536f91;this[_0x490c92(0x135)][_0x490c92(0x189)][_0x490c92(0x117)](_0x2dcc58);}[_0x536f91(0x161)](_0x47fdfa,_0x190eba){const _0x2f11cd=_0x536f91;this[_0x2f11cd(0x135)][_0x2f11cd(0x189)][_0x2f11cd(0x161)](_0x47fdfa,_0x190eba);}[_0x536f91(0x17d)](_0x5eb20e){const _0x3cdf53=_0x536f91;this[_0x3cdf53(0x135)][_0x3cdf53(0x189)][_0x3cdf53(0x17d)](_0x5eb20e);}[_0x536f91(0x112)](_0x3e9aa2){const _0x46d497=_0x536f91;this[_0x46d497(0x135)][_0x46d497(0x189)][_0x46d497(0x112)](_0x3e9aa2);}[_0x536f91(0x160)](){const _0x24a6b5=_0x536f91;this[_0x24a6b5(0x135)][_0x24a6b5(0x189)][_0x24a6b5(0x160)]();}[_0x536f91(0x14b)](){const _0x309eb9=_0x536f91;this[_0x309eb9(0x135)][_0x309eb9(0x189)][_0x309eb9(0x14b)]();}[_0x536f91(0x18f)](_0x7a374d,_0x53113b,_0x12088b){const _0x9292bd=_0x536f91;this[_0x9292bd(0x135)][_0x9292bd(0x189)][_0x9292bd(0x18f)](_0x7a374d,_0x53113b,_0x12088b);}[_0x536f91(0x180)](){const _0x5d5555=_0x536f91;this[_0x5d5555(0x135)][_0x5d5555(0x189)][_0x5d5555(0x180)](),this[_0x5d5555(0x135)][_0x5d5555(0x189)][_0x5d5555(0x113)](this[_0x5d5555(0x16a)]());}[_0x536f91(0x194)](_0x2ffca8){const _0x43cf29=_0x536f91;this[_0x43cf29(0x135)][_0x43cf29(0x189)][_0x43cf29(0x194)](_0x2ffca8);}[_0x536f91(0x1ab)](_0x2c1df3){const _0x58af12=_0x536f91;this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x162)](_0x2c1df3[_0x58af12(0x167)]),this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x18c)](_0x2c1df3[_0x58af12(0x19d)]),this[_0x58af12(0x135)][_0x58af12(0x189)][_0x58af12(0x113)](this[_0x58af12(0x16a)](_0x2c1df3));}[_0x536f91(0x1a7)](_0x35390c,_0x21b723){const _0x14e125=_0x536f91;this[_0x14e125(0x135)][_0x14e125(0x189)][_0x14e125(0x195)](_0x35390c),_0x21b723&&this[_0x14e125(0x135)][_0x14e125(0x189)][_0x14e125(0x10d)](!0x1);}[_0x536f91(0x139)](_0xed0449){const _0x2d77d0=_0x536f91;this[_0x2d77d0(0x145)]=_0xed0449;}[_0x536f91(0x1a9)](_0xc1875e){const _0x51740f=_0x536f91;this[_0x51740f(0x135)][_0x51740f(0x14f)][_0x51740f(0x1a9)](_0xc1875e);}[_0x536f91(0x10e)](){const _0x3a6270=_0x536f91;this[_0x3a6270(0x191)](_0x860f42(this[_0x3a6270(0x15b)][_0x3a6270(0x187)],_0x3a6270(0x16e)));}[_0x536f91(0x191)](_0xec943d,_0x89d75=!0x1){const _0x372642=_0x536f91;if(_0x89d75&&!_0x3f462a()&&_0xec943d[_0x372642(0x156)])return this[_0x372642(0x135)][_0x372642(0x115)][_0x372642(0x123)]='',void this[_0x372642(0x11e)](_0xec943d);this[_0x372642(0x135)][_0x372642(0x115)][_0x372642(0x123)]=_0xec943d;}[_0x536f91(0x15e)](_0x4a3a53){const _0x3f8d69=_0x536f91,_0x20992f=this[_0x3f8d69(0x133)](_0x4a3a53);this[_0x3f8d69(0x135)][_0x3f8d69(0x14f)][_0x3f8d69(0x15e)](_0x20992f);}[_0x536f91(0x11e)](_0x13e126){const _0x5a1582=_0x536f91;let _0x1da8e6=0x0;clearInterval(this[_0x5a1582(0x154)]),this[_0x5a1582(0x154)]=setInterval(()=>{const _0x47022a=_0x5a1582;this[_0x47022a(0x135)][_0x47022a(0x115)][_0x47022a(0x123)]=this[_0x47022a(0x135)][_0x47022a(0x115)][_0x47022a(0x123)]+_0x13e126[_0x1da8e6],_0x1da8e6++,_0x1da8e6===_0x13e126[_0x47022a(0x156)]&&clearInterval(this[_0x47022a(0x154)]);},0x1e);}[_0x536f91(0x124)](_0x3b7110){const _0x3a780f=_0x536f91;this[_0x3a780f(0x135)][_0x3a780f(0x115)][_0x3a780f(0x13c)]=_0x3b7110;}[_0x536f91(0x133)](_0xdcebfd){const _0x35371=_0x536f91;return _0xdcebfd?_0xdcebfd[_0x35371(0x167)]&&_0xdcebfd[_0x35371(0x19d)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x151)):_0xdcebfd[_0x35371(0x167)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x144)):_0xdcebfd[_0x35371(0x19d)]?_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x164)):_0x860f42(this[_0x35371(0x15b)][_0x35371(0x187)],_0x35371(0x19c)):'';}[_0x536f91(0x16a)](_0x44f248){const _0x3cab44=_0x536f91;return _0x44f248?_0x44f248[_0x3cab44(0x167)]&&_0x44f248[_0x3cab44(0x19d)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x188)):_0x44f248[_0x3cab44(0x167)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13b)):_0x44f248[_0x3cab44(0x19d)]?_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x17c)):_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13f)):_0x860f42(this[_0x3cab44(0x15b)][_0x3cab44(0x187)],_0x3cab44(0x13f));}[_0x536f91(0x17e)](_0x316783,_0x388f2f,_0x1da3a0,_0x37b0f9){const _0x31b7e7=_0x536f91;this[_0x31b7e7(0x135)][_0x31b7e7(0x17e)](_0x316783,_0x388f2f,_0x1da3a0,_0x37b0f9);}[_0x536f91(0x1a8)](_0x29701d){const _0x1f391e=_0x536f91;this[_0x1f391e(0x135)][_0x1f391e(0x1a8)](_0x29701d);}[_0x536f91(0x1b3)](){const _0x297307=_0x536f91;this[_0x297307(0x135)][_0x297307(0x189)][_0x297307(0x1b3)]();}[_0x536f91(0x1a6)](_0xdb133f,_0x5aedc1){const _0x43f0bf=_0x536f91;this[_0x43f0bf(0x135)][_0x43f0bf(0x14f)][_0x43f0bf(0x143)](_0xdb133f,_0x5aedc1);}[_0x536f91(0x141)](){const _0x45593c=_0x536f91;this[_0x45593c(0x135)][_0x45593c(0x14f)][_0x45593c(0x141)]();}[_0x536f91(0x17a)](){const _0x1ec884=_0x536f91;this[_0x1ec884(0x135)][_0x1ec884(0x189)][_0x1ec884(0x111)]=!0x0;}[_0x536f91(0x158)](){const _0x28216b=_0x536f91;this[_0x28216b(0x135)][_0x28216b(0x189)][_0x28216b(0x111)]=!0x1;}}
@@ -253,6 +253,10 @@ export type AIChatContextConfig = {
253
253
  enabled: boolean;
254
254
  };
255
255
  sources?: Array<AIContextProvider>;
256
+ /**
257
+ * The minimum number of resources to show the search input.
258
+ */
259
+ searchInputVisibleFrom?: number;
256
260
  };
257
261
  /**
258
262
  * The configuration of a custom option in the AI Chat menu for adding resources to the prompt context.
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f905d=_0x3d21;(function(_0xf8b4fa,_0x18f096){const _0x3febc2=_0x3d21,_0x564ea7=_0xf8b4fa();while(!![]){try{const _0x1259d2=-parseInt(_0x3febc2(0x17f))/0x1+parseInt(_0x3febc2(0x189))/0x2+parseInt(_0x3febc2(0x1a4))/0x3+parseInt(_0x3febc2(0x181))/0x4+-parseInt(_0x3febc2(0x198))/0x5*(parseInt(_0x3febc2(0x186))/0x6)+parseInt(_0x3febc2(0x1b0))/0x7+-parseInt(_0x3febc2(0x185))/0x8;if(_0x1259d2===_0x18f096)break;else _0x564ea7['push'](_0x564ea7['shift']());}catch(_0x4bc397){_0x564ea7['push'](_0x564ea7['shift']());}}}(_0x7f3a,0x628dc));import{CKEditorError as _0x6ff7d9,ObservableMixin as _0xc05edb,uid as _0x48b52e}from'ckeditor5/src/utils.js';function _0x3d21(_0x7613af,_0x324e4c){const _0x7f3a7e=_0x7f3a();return _0x3d21=function(_0x3d219c,_0x5c7af1){_0x3d219c=_0x3d219c-0x15e;let _0x53ca84=_0x7f3a7e[_0x3d219c];return _0x53ca84;},_0x3d21(_0x7613af,_0x324e4c);}function _0x7f3a(){const _0x322c3b=['message','isCurrentDocumentInContext','addFilesToContext','filter','fetchDocument','length','ai-chat-resource-no-data','getId','getSentContextItems','ai-chat-resource-load-failed','push','enabled','map','files','set','uploadUrl','name','isHidden','uiId','FILE','addResourceToContext','Current\x20document','uploadFile','_config','uploadDocument','_finishUploadOperation','_pendingContextItems','sourceResourcesLoaded','ai-chat-source-not-found','url-','from','clearPendingContextItems','TEXT','delete','type','getDocument','HTML','mapContextItemsToRequestData','contextItemLoadingEnded','size','end','has','_addToConversationContextItem','populateFromMessage','_removeContextItem','_setAddContextOptionsDefaultState','text/html','text/plain','ai-chat-context-invalid-data','_addContextItem','version','updateCurrentDocument','SELECTION','stack','_updateResourceInContextState','_createContextItemFromContent','abort','startsWith','all','addContextOptionsChanged','resources','get','sources','label','ai-request-aborted','forEach','ai-chat-source-resources-load-failed','63880uxQynE','isReadOnly','1835596qOHmOJ','_ongoingUploads','urls','uploadProgressChanged','12210544aiMIpu','60aXFzkM','files-','values','714666aHeckn','File','addToConversationContext','sessionId','addSelectionToContext','object\x20with\x20content\x20and\x20type\x20properties','fire','selection','isInContext','_conversationContextItems','URL','_startUploadOperation','contextItemAdded','_finishContextItemLoading','attributes','94745uSJdcm','getResources','getPendingContextItems','isSelectionInContext','_convertTextResourceToFile','_toggleAddCurrentDocumentOptionVisibility','object','contextSent','_ownerId','content','_mapContextItemToRequestData','removeSelectionFromContext','1795788OPYpMi','start','string','url','contextItemRemoved','_addContextOptionsState','data','_getCustomSourcesInitialState','isCurrentDocumentInConversation','hidden','abortController','loadSourceResources','5379752cHIPOk','_isResourceInContext','resourceId','getData','ai-chat-file-upload-failed','current-document','file-','_findSourceIdsByResourceId','error','resourceStateChanged','_connector','addUrlToContext','text/markdown','_ongoingUploadOperations','ai-chat-context-unsupported-type','ai-chat-url-upload-failed','addCurrentDocumentToContext','document','init','removeFromContext','ai-chat-document-upload-failed','find','DOCUMENT','MARKDOWN'];_0x7f3a=function(){return _0x322c3b;};return _0x7f3a();}import{AIContextItemType as _0x2f6bc3,AIContextTextResourceType as _0x59b10e}from'../../aicore/model/aicontext.js';import{escape as _0x2860e7}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3f905d(0x195),_0x3f905d(0x1a8),_0x3f905d(0x162),_0x3f905d(0x19f),_0x3f905d(0x1b8),_0x3f905d(0x177),_0x3f905d(0x1e3),_0x3f905d(0x1b9),_0x3f905d(0x184)];export class AIChatContext extends _0xc05edb(){[_0x3f905d(0x1ba)];[_0x3f905d(0x1df)];[_0x3f905d(0x1a0)];constructor({connector:_0x3b6b7b,config:_0x201f4b,ownerId:_0x44ef58}){const _0x59ebe3=_0x3f905d;super(),this[_0x59ebe3(0x1ba)]=_0x3b6b7b,this[_0x59ebe3(0x1df)]=_0x201f4b,this[_0x59ebe3(0x1a0)]=_0x44ef58;}[_0x3f905d(0x1c2)](){const _0x42b00e=_0x3f905d;this[_0x42b00e(0x1e2)]=new Map(),this[_0x42b00e(0x192)]=new Map(),this[_0x42b00e(0x182)]=new Map(),this[_0x42b00e(0x1bd)]=new Map(),this[_0x42b00e(0x169)]();}[_0x3f905d(0x19a)](){const _0x5246f6=_0x3f905d;return this[_0x5246f6(0x1e2)];}async[_0x3f905d(0x167)](_0x5a9824){const _0x3a1400=_0x3f905d,_0x44c2c5=await this[_0x3a1400(0x173)](_0x5a9824);return this[_0x3a1400(0x166)](_0x44c2c5),_0x3a1400(0x1b5)===_0x44c2c5[_0x3a1400(0x1da)]&&this[_0x3a1400(0x19d)](),_0x44c2c5;}async[_0x3f905d(0x173)](_0x5cec0e){const _0x5a415f=_0x3f905d;if(_0x5cec0e[_0x5a415f(0x15e)]===_0x2f6bc3[_0x5a415f(0x1c6)]){const _0x4ffa20=await this[_0x5a415f(0x1ba)][_0x5a415f(0x1cc)](this[_0x5a415f(0x1a0)],_0x5cec0e['id'])[_0x5a415f(0x15f)]();return{'id':_0x5a415f(0x1b5),'uiId':_0x5a415f(0x1b5),'label':_0x5a415f(0x1dd),'type':_0x5cec0e[_0x5a415f(0x15e)],'content':_0x4ffa20[_0x5a415f(0x1a1)],'hidden':this[_0x5a415f(0x192)][_0x5a415f(0x165)](_0x5a415f(0x1b5)),'version':_0x4ffa20[_0x5a415f(0x197)]?.[_0x5a415f(0x16e)],'sessionId':_0x4ffa20[_0x5a415f(0x197)]?.[_0x5a415f(0x18c)]};}return{'id':_0x5cec0e['id'],'uiId':_0x5cec0e['id'],'label':_0x5cec0e[_0x5a415f(0x197)]?.[_0x5a415f(0x17b)]||_0x5cec0e[_0x5a415f(0x1d8)]||_0x5cec0e[_0x5a415f(0x1a7)]||_0x5cec0e['id'],'type':_0x5cec0e[_0x5a415f(0x15e)],..._0x5cec0e?.[_0x5a415f(0x197)]?.[_0x5a415f(0x1b2)]?{'resourceId':_0x5cec0e[_0x5a415f(0x197)]?.[_0x5a415f(0x1b2)]}:{}};}[_0x3f905d(0x1d0)](){const _0x33f743=_0x3f905d;return new Map(this[_0x33f743(0x192)]);}[_0x3f905d(0x1c3)](_0xe7bfa3){const _0x5d9719=_0x3f905d,_0x57e081=this[_0x5d9719(0x1e2)][_0x5d9719(0x179)](_0xe7bfa3);_0x57e081?.[_0x5d9719(0x180)]||this[_0x5d9719(0x168)](_0xe7bfa3);}[_0x3f905d(0x1e7)](){const _0x5a4a4b=_0x3f905d;if(0x0===this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x163)])return;for(const _0x137ebc of this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x188)]())this[_0x5a4a4b(0x168)](_0x137ebc[_0x5a4a4b(0x1da)]);const _0x39cca0=this[_0x5a4a4b(0x192)][_0x5a4a4b(0x179)](_0x5a4a4b(0x1b5))||this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x179)](_0x5a4a4b(0x1b5));_0x39cca0&&this[_0x5a4a4b(0x16d)]({..._0x39cca0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3f905d(0x18b)](_0x59ead7){const _0x2dd530=_0x3f905d;for(const _0x1abf6 of _0x59ead7[_0x2dd530(0x188)]())this[_0x2dd530(0x166)](_0x1abf6);this[_0x2dd530(0x1e7)](),this[_0x2dd530(0x18f)](_0x2dd530(0x19f),{'contextItems':Array[_0x2dd530(0x1e6)](this[_0x2dd530(0x1d0)]()[_0x2dd530(0x188)]())});}[_0x3f905d(0x1c9)](){const _0x3ec319=_0x3f905d;return this[_0x3ec319(0x1e2)][_0x3ec319(0x165)](_0x3ec319(0x1b5));}[_0x3f905d(0x19b)](){const _0x1545fa=_0x3f905d;return this[_0x1545fa(0x1e2)][_0x1545fa(0x165)](_0x1545fa(0x190));}[_0x3f905d(0x1ac)](){const _0x2bd453=_0x3f905d;return this[_0x2bd453(0x192)][_0x2bd453(0x165)](_0x2bd453(0x1b5));}static[_0x3f905d(0x161)](_0x5661dc){const _0x47be00=_0x3f905d;return Array[_0x47be00(0x1e6)](_0x5661dc[_0x47be00(0x188)]())[_0x47be00(0x1d4)](_0x4647ef=>this[_0x47be00(0x1a2)](_0x4647ef))[_0x47be00(0x1cb)](_0x2712a7=>null!==_0x2712a7);}async[_0x3f905d(0x1ca)](_0x3df38a,_0x49802d,_0x1f089e=_0x2f6bc3[_0x3f905d(0x1db)]){const _0x53e15a=_0x3f905d,_0x42dc33=_0x53e15a(0x187)+_0x48b52e();this[_0x53e15a(0x194)](_0x42dc33);try{await Promise[_0x53e15a(0x176)](_0x3df38a[_0x53e15a(0x1d4)](async _0x3a8599=>{const _0xa4d109=_0x53e15a,_0x1a207a=_0xa4d109(0x1b6)+_0x48b52e(),_0x4885c9=_0x2860e7(_0x3a8599[_0xa4d109(0x1d8)]);try{this[_0xa4d109(0x16d)]({'type':_0x1f089e,'label':_0x49802d?.[_0xa4d109(0x17b)]||_0x4885c9,'uiId':_0x1a207a,'resourceId':_0x49802d?.[_0xa4d109(0x1b2)]},!0x0);const _0x4569ca=this[_0xa4d109(0x1ba)][_0xa4d109(0x1de)](this[_0xa4d109(0x1a0)],_0x3a8599,_0x49802d);this[_0xa4d109(0x182)][_0xa4d109(0x1d6)](_0x1a207a,_0x4569ca[_0xa4d109(0x1ae)]);const {id:_0x41c8c2}=await _0x4569ca[_0xa4d109(0x1cf)]();this[_0xa4d109(0x182)][_0xa4d109(0x1e9)](_0x1a207a),this[_0xa4d109(0x196)]({'type':_0x1f089e,'id':_0x41c8c2,'label':_0x49802d?.[_0xa4d109(0x17b)]||_0x4885c9,'uiId':_0x1a207a,'resourceId':_0x49802d?.[_0xa4d109(0x1b2)]},!0x1);}catch(_0x2232e9){this[_0xa4d109(0x182)][_0xa4d109(0x1e9)](_0x1a207a);if(!_0x2232e9[_0xa4d109(0x1c8)][_0xa4d109(0x175)](_0xa4d109(0x17c))){const _0x2996ab=new _0x6ff7d9(_0xa4d109(0x1b4),null,{'fileName':_0x4885c9});_0x2996ab[_0xa4d109(0x171)]=_0x2232e9[_0xa4d109(0x171)],this[_0xa4d109(0x18f)](_0xa4d109(0x1b8),{'error':_0x2996ab,'fileName':_0x4885c9});}this[_0xa4d109(0x168)](_0x1a207a);}}));}finally{this[_0x53e15a(0x1e1)](_0x42dc33);}}[_0x3f905d(0x1c0)](_0x2d4764){const _0x4f91bb=_0x3f905d;if(this[_0x4f91bb(0x1c9)]())return;const _0x1b9520={'type':_0x2f6bc3[_0x4f91bb(0x1c6)],'uiId':_0x4f91bb(0x1b5),'label':_0x2d4764,'isReadOnly':this[_0x4f91bb(0x192)][_0x4f91bb(0x165)](_0x4f91bb(0x1b5)),'hidden':this[_0x4f91bb(0x192)][_0x4f91bb(0x165)](_0x4f91bb(0x1b5))};this[_0x4f91bb(0x16d)](_0x1b9520);}async[_0x3f905d(0x16f)](_0x87c00,_0x4bb9ae,_0x1cb4f1,_0x4c7407){const _0x7aa733=_0x3f905d,_0x53d3ab=this[_0x7aa733(0x1e2)][_0x7aa733(0x179)](_0x7aa733(0x1b5));if(_0x53d3ab&&_0x87c00){_0x53d3ab[_0x7aa733(0x190)]=_0x4c7407?_0x4c7407[_0x7aa733(0x1d4)](_0x2b83ee=>({'start':_0x2b83ee[_0x7aa733(0x1a5)],'end':_0x2b83ee[_0x7aa733(0x164)]})):[];try{if(_0x53d3ab[_0x7aa733(0x16e)]===_0x4bb9ae)return;const {id:_0x4c3035}=await this[_0x7aa733(0x1ba)][_0x7aa733(0x1e0)](this[_0x7aa733(0x1a0)],_0x87c00,{'version':_0x4bb9ae,'sessionId':_0x1cb4f1})[_0x7aa733(0x1cf)]();_0x53d3ab['id']=_0x4c3035,_0x53d3ab[_0x7aa733(0x1a1)]=_0x87c00,_0x53d3ab[_0x7aa733(0x16e)]=_0x4bb9ae,_0x53d3ab[_0x7aa733(0x18c)]=_0x1cb4f1;}catch(_0x3e0c17){const _0x40fefa=new _0x6ff7d9(_0x7aa733(0x1c4),null);_0x40fefa[_0x7aa733(0x171)]=_0x3e0c17[_0x7aa733(0x171)],this[_0x7aa733(0x18f)](_0x7aa733(0x1b8),{'error':_0x40fefa});}}}[_0x3f905d(0x18d)](_0x4d0136){const _0x54e387=_0x3f905d;this[_0x54e387(0x16d)]({'type':_0x2f6bc3[_0x54e387(0x170)],'label':_0x4d0136,'uiId':_0x54e387(0x190),'content':_0x4d0136});}[_0x3f905d(0x1a3)](){const _0x2136b0=_0x3f905d;this[_0x2136b0(0x168)](_0x2136b0(0x190));}async[_0x3f905d(0x1bb)](_0x2175f1,_0x543768){const _0x19818d=_0x3f905d,_0xc1cfb5=_0x19818d(0x1e5)+_0x48b52e();this[_0x19818d(0x194)](_0xc1cfb5);const _0x54fd18=_0x19818d(0x1e5)+_0x48b52e();try{this[_0x19818d(0x16d)]({'type':_0x2f6bc3[_0x19818d(0x193)],'label':_0x543768?.[_0x19818d(0x17b)]||_0x2175f1,'uiId':_0x54fd18,'resourceId':_0x543768?.[_0x19818d(0x1b2)]},!0x0);const _0x27632e=this[_0x19818d(0x1ba)][_0x19818d(0x1d7)](this[_0x19818d(0x1a0)],_0x2175f1,_0x543768);this[_0x19818d(0x182)][_0x19818d(0x1d6)](_0x54fd18,_0x27632e[_0x19818d(0x1ae)]);const {id:_0x1d77ca}=await _0x27632e[_0x19818d(0x1cf)]();this[_0x19818d(0x182)][_0x19818d(0x1e9)](_0x54fd18),this[_0x19818d(0x196)]({'type':_0x2f6bc3[_0x19818d(0x193)],'id':_0x1d77ca,'label':_0x543768?.[_0x19818d(0x17b)]||_0x2175f1,'uiId':_0x54fd18,'resourceId':_0x543768?.[_0x19818d(0x1b2)]},!0x1);}catch(_0x5b40d5){this[_0x19818d(0x182)][_0x19818d(0x1e9)](_0x54fd18),(_0x5b40d5[_0x19818d(0x1c8)][_0x19818d(0x175)](_0x19818d(0x17c))||this[_0x19818d(0x18f)](_0x19818d(0x1b8),{'error':new _0x6ff7d9(_0x19818d(0x1bf),this,{'url':_0x2175f1,'originalError':_0x5b40d5}),'url':_0x2175f1}),this[_0x19818d(0x168)](_0x54fd18));}finally{this[_0x19818d(0x1e1)](_0xc1cfb5);}}async[_0x3f905d(0x1af)](_0x2fc0ed,_0x30ee0b,_0x3aefee){const _0x491962=_0x3f905d,_0x5bbe94=this[_0x491962(0x1a9)][_0x491962(0x17a)][_0x491962(0x1c5)](_0x66af4f=>_0x66af4f['id']===_0x2fc0ed);if(!_0x5bbe94)return this[_0x491962(0x18f)](_0x491962(0x1b8),{'error':new _0x6ff7d9(_0x491962(0x1e4),this,{'sourceId':_0x2fc0ed}),'sourceId':_0x2fc0ed}),[];try{const _0x53e974=(await _0x5bbe94[_0x491962(0x199)](_0x30ee0b))[_0x491962(0x1d4)](_0x2773f1=>{const _0x31689d=_0x491962,_0x2687df=this[_0x31689d(0x1b1)](_0x2773f1['id']);return{..._0x2773f1,'isInContext':_0x2687df};});return _0x5bbe94[_0x491962(0x178)]=_0x53e974,this[_0x491962(0x18f)](_0x491962(0x1e3),{'sourceId':_0x2fc0ed,'source':_0x5bbe94,'resources':_0x53e974,'uid':_0x3aefee}),_0x53e974;}catch(_0x1b6d1f){return this[_0x491962(0x18f)](_0x491962(0x1b8),{'error':new _0x6ff7d9(_0x491962(0x17e),this,{'sourceId':_0x2fc0ed,'originalError':_0x1b6d1f}),'sourceId':_0x2fc0ed,'sourceLabel':_0x5bbe94[_0x491962(0x17b)]}),[];}}async[_0x3f905d(0x1dc)](_0x3cd34b,_0x1a9e77){const _0x1ca901=_0x3f905d;if(this[_0x1ca901(0x1b1)](_0x1a9e77['id']))return;let _0x1aebe5=_0x1a9e77[_0x1ca901(0x1aa)];if(!_0x1aebe5&&_0x3cd34b[_0x1ca901(0x1b3)])try{_0x1aebe5=await _0x3cd34b[_0x1ca901(0x1b3)](_0x1a9e77['id']);}catch(_0x375ef){return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1d1),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'originalError':_0x375ef}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}if(_0x1aebe5)switch(_0x1a9e77[_0x1ca901(0x15e)]){case _0x2f6bc3[_0x1ca901(0x193)]:if(_0x1ca901(0x1a6)!=typeof _0x1aebe5)return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x1a6),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});await this[_0x1ca901(0x1bb)](_0x1aebe5,{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']});break;case _0x2f6bc3[_0x1ca901(0x1db)]:if(!(_0x1aebe5 instanceof File))return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x18a),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});await this[_0x1ca901(0x1ca)]([_0x1aebe5],{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']});break;case _0x2f6bc3[_0x1ca901(0x1e8)]:if(_0x1ca901(0x19e)!=typeof _0x1aebe5||!(_0x1ca901(0x1a1)in _0x1aebe5)||!(_0x1ca901(0x15e)in _0x1aebe5))return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x18e),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});_0x1aebe5=AIChatContext[_0x1ca901(0x19c)](_0x1aebe5,_0x1a9e77[_0x1ca901(0x17b)]),await this[_0x1ca901(0x1ca)]([_0x1aebe5],{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']},_0x2f6bc3[_0x1ca901(0x1e8)]);break;default:this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1be),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'resourceType':_0x1a9e77[_0x1ca901(0x15e)]}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}else this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1ce),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}static[_0x3f905d(0x19c)](_0x2c39fd,_0xbee453){const _0x426fac=_0x3f905d;switch(_0x2c39fd[_0x426fac(0x15e)]){case _0x59b10e[_0x426fac(0x1c7)]:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x1bc)});case _0x59b10e[_0x426fac(0x160)]:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x16a)});default:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x16b)});}}static[_0x3f905d(0x1a2)](_0x3ebb4b){const _0x109206=_0x3f905d;switch(_0x3ebb4b[_0x109206(0x15e)]){case _0x2f6bc3[_0x109206(0x1db)]:return{'type':_0x2f6bc3[_0x109206(0x1db)],'id':_0x3ebb4b['id']};case _0x2f6bc3[_0x109206(0x193)]:return{'type':_0x2f6bc3[_0x109206(0x193)],'id':_0x3ebb4b['id']};case _0x2f6bc3[_0x109206(0x1c6)]:return{'type':_0x2f6bc3[_0x109206(0x1c6)],'id':_0x3ebb4b['id'],..._0x3ebb4b[_0x109206(0x190)]?.[_0x109206(0x1cd)]&&{'selection':_0x3ebb4b[_0x109206(0x190)]}};case _0x2f6bc3[_0x109206(0x1e8)]:return{'type':_0x2f6bc3[_0x109206(0x1db)],'id':_0x3ebb4b['id']};default:return null;}}[_0x3f905d(0x16d)](_0x3c1f15,_0x5b4a04=!0x1){const _0x4fc5f7=_0x3f905d;if(this[_0x4fc5f7(0x1e2)][_0x4fc5f7(0x1d6)](_0x3c1f15[_0x4fc5f7(0x1da)],_0x3c1f15),_0x3c1f15[_0x4fc5f7(0x1ad)]||this[_0x4fc5f7(0x18f)](_0x4fc5f7(0x195),{'contextItem':_0x3c1f15,'isLoading':_0x5b4a04}),_0x4fc5f7(0x1b5)===_0x3c1f15[_0x4fc5f7(0x1da)]&&this[_0x4fc5f7(0x19d)](),_0x3c1f15[_0x4fc5f7(0x1b2)]){const _0x4639cf=this[_0x4fc5f7(0x1b7)](_0x3c1f15[_0x4fc5f7(0x1b2)]);_0x4639cf&&_0x4639cf[_0x4fc5f7(0x17d)](_0x340657=>{const _0xaa620a=_0x4fc5f7;this[_0xaa620a(0x172)](_0x340657,_0x3c1f15[_0xaa620a(0x1b2)],!0x0);});}}[_0x3f905d(0x168)](_0x26dbd4){const _0x41aed3=_0x3f905d,_0x5a2db0=this[_0x41aed3(0x1e2)][_0x41aed3(0x179)](_0x26dbd4),_0x54736f=this[_0x41aed3(0x182)][_0x41aed3(0x179)](_0x26dbd4);if(_0x54736f&&(_0x54736f[_0x41aed3(0x174)](),this[_0x41aed3(0x182)][_0x41aed3(0x1e9)](_0x26dbd4)),_0x5a2db0?.[_0x41aed3(0x1b2)]){const _0x539a0e=this[_0x41aed3(0x1b7)](_0x5a2db0[_0x41aed3(0x1b2)]);_0x539a0e&&_0x539a0e[_0x41aed3(0x17d)](_0x5ac443=>{const _0x2d7169=_0x41aed3;this[_0x2d7169(0x172)](_0x5ac443,_0x5a2db0[_0x2d7169(0x1b2)],!0x1);});}this[_0x41aed3(0x1e2)][_0x41aed3(0x1e9)](_0x26dbd4),this[_0x41aed3(0x18f)](_0x41aed3(0x1a8),{'uiId':_0x26dbd4,'type':_0x5a2db0?.[_0x41aed3(0x15e)]}),_0x41aed3(0x1b5)===_0x26dbd4&&this[_0x41aed3(0x19d)]();}[_0x3f905d(0x196)](_0x194ffe,_0x5f4347){const _0x5772ee=_0x3f905d;if(this[_0x5772ee(0x1e2)][_0x5772ee(0x165)](_0x194ffe[_0x5772ee(0x1da)])&&(this[_0x5772ee(0x1e2)][_0x5772ee(0x1d6)](_0x194ffe[_0x5772ee(0x1da)],_0x194ffe),this[_0x5772ee(0x18f)](_0x5772ee(0x162),{'contextItem':_0x194ffe,'isLoading':_0x5f4347}),_0x194ffe[_0x5772ee(0x1b2)])){const _0x1b18a5=this[_0x5772ee(0x1b7)](_0x194ffe[_0x5772ee(0x1b2)]);_0x1b18a5&&_0x1b18a5[_0x5772ee(0x17d)](_0x5c4929=>{const _0x4b5ff2=_0x5772ee;this[_0x4b5ff2(0x172)](_0x5c4929,_0x194ffe[_0x4b5ff2(0x1b2)],!0x0);});}}[_0x3f905d(0x166)](_0x5c7e01){const _0x3a8c79=_0x3f905d;this[_0x3a8c79(0x192)][_0x3a8c79(0x1d6)](_0x5c7e01[_0x3a8c79(0x1da)],_0x5c7e01);}[_0x3f905d(0x169)](){const _0x99081f=_0x3f905d;this[_0x99081f(0x1a9)]={'document':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x1c1)]?.[_0x99081f(0x1d3)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x183)]?.[_0x99081f(0x1d3)]},'files':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x1d5)]?.[_0x99081f(0x1d3)]},'sources':this[_0x99081f(0x1ab)]()},this[_0x99081f(0x18f)](_0x99081f(0x177),{'options':this[_0x99081f(0x1a9)]});}[_0x3f905d(0x1ab)](){const _0x1ea756=_0x3f905d;return this[_0x1ea756(0x1df)]?.[_0x1ea756(0x17a)]?.[_0x1ea756(0x1d4)](_0xed4b86=>({..._0xed4b86,'resources':[]}))??[];}[_0x3f905d(0x19d)](){const _0x36a3fc=_0x3f905d,_0x2adfd1=this[_0x36a3fc(0x1c9)]()||this[_0x36a3fc(0x1ac)]();this[_0x36a3fc(0x1a9)][_0x36a3fc(0x1c1)][_0x36a3fc(0x1d9)]=_0x2adfd1,this[_0x36a3fc(0x18f)](_0x36a3fc(0x177),{'options':this[_0x36a3fc(0x1a9)]});}[_0x3f905d(0x1b1)](_0x5af946){const _0x36f18e=_0x3f905d;for(const _0x3381de of this[_0x36f18e(0x1e2)][_0x36f18e(0x188)]())if(_0x3381de[_0x36f18e(0x1b2)]===_0x5af946)return!0x0;for(const _0x3efb89 of this[_0x36f18e(0x192)][_0x36f18e(0x188)]())if(_0x3efb89[_0x36f18e(0x1b2)]===_0x5af946)return!0x0;return!0x1;}[_0x3f905d(0x1b7)](_0x3a45d8){const _0x5b890b=_0x3f905d,_0x4e61e6=[];for(const _0x1cf325 of this[_0x5b890b(0x1a9)][_0x5b890b(0x17a)]){_0x1cf325[_0x5b890b(0x178)][_0x5b890b(0x1c5)](_0x56c611=>_0x56c611['id']===_0x3a45d8)&&_0x4e61e6[_0x5b890b(0x1d2)](_0x1cf325['id']);}return 0x0===_0x4e61e6[_0x5b890b(0x1cd)]?null:_0x4e61e6;}[_0x3f905d(0x172)](_0x2c83b3,_0x177b92,_0x207fc0){const _0x71f066=_0x3f905d,_0x41d0b8=this[_0x71f066(0x1a9)][_0x71f066(0x17a)][_0x71f066(0x1c5)](_0x267504=>_0x267504['id']===_0x2c83b3);if(!_0x41d0b8)return;const _0x4f68ef=_0x41d0b8[_0x71f066(0x178)][_0x71f066(0x1c5)](_0x295144=>_0x295144['id']===_0x177b92);_0x4f68ef&&(_0x4f68ef[_0x71f066(0x191)]=_0x207fc0,this[_0x71f066(0x18f)](_0x71f066(0x1b9),{'sourceId':_0x2c83b3,'resourceId':_0x177b92,'isInContext':_0x207fc0}));}[_0x3f905d(0x194)](_0x1c0c50){const _0x34c056=_0x3f905d;this[_0x34c056(0x1bd)][_0x34c056(0x1d6)](_0x1c0c50,!0x0),this[_0x34c056(0x1bd)][_0x34c056(0x163)]&&this[_0x34c056(0x18f)](_0x34c056(0x184),{'isUploadInProgress':!0x0});}[_0x3f905d(0x1e1)](_0x516a7b){const _0x23bf43=_0x3f905d;this[_0x23bf43(0x1bd)][_0x23bf43(0x1e9)](_0x516a7b),0x0===this[_0x23bf43(0x1bd)][_0x23bf43(0x163)]&&this[_0x23bf43(0x18f)](_0x23bf43(0x184),{'isUploadInProgress':!0x1});}}
23
+ function _0x556b(_0x398772,_0xd712da){const _0x18b506=_0x18b5();return _0x556b=function(_0x556b5f,_0x244a29){_0x556b5f=_0x556b5f-0x19c;let _0xa3373f=_0x18b506[_0x556b5f];return _0xa3373f;},_0x556b(_0x398772,_0xd712da);}const _0x5a8d72=_0x556b;(function(_0x126612,_0xc0b3a7){const _0x533fd0=_0x556b,_0x3f8a5a=_0x126612();while(!![]){try{const _0x5c811a=-parseInt(_0x533fd0(0x1eb))/0x1+parseInt(_0x533fd0(0x1d9))/0x2+-parseInt(_0x533fd0(0x1d3))/0x3*(-parseInt(_0x533fd0(0x1a7))/0x4)+parseInt(_0x533fd0(0x1f7))/0x5+parseInt(_0x533fd0(0x1ee))/0x6*(parseInt(_0x533fd0(0x1c6))/0x7)+parseInt(_0x533fd0(0x1c3))/0x8+-parseInt(_0x533fd0(0x1d6))/0x9*(parseInt(_0x533fd0(0x1d5))/0xa);if(_0x5c811a===_0xc0b3a7)break;else _0x3f8a5a['push'](_0x3f8a5a['shift']());}catch(_0x420e09){_0x3f8a5a['push'](_0x3f8a5a['shift']());}}}(_0x18b5,0x48fb5));function _0x18b5(){const _0x4fc078=['335976PVBAle','url-','_finishContextItemLoading','isSelectionInContext','ai-chat-document-upload-failed','abortController','object','resourceStateChanged','ai-chat-source-not-found','FILE','contextItemAdded','_createContextItemFromContent','addToConversationContext','sourceResourcesLoaded','_setAddContextOptionsDefaultState','_conversationContextItems','sessionId','version','addResourceToContext','file-','fire','getData','Current\x20document','ai-chat-file-upload-failed','startsWith','isReadOnly','_convertTextResourceToFile','content','3343416hQBgHU','_mapContextItemToRequestData','label','28833KnipvR','document','init','contextItemLoadingEnded','addContextOptionsChanged','size','filter','current-document','addUrlToContext','populateFromMessage','forEach','has','MARKDOWN','9frhjJR','map','1236310hFuzme','72jPKwyh','error','text/html','1100206BUdKEr','getId','TEXT','resources','_updateResourceInContextState','_toggleAddCurrentDocumentOptionVisibility','enabled','removeFromContext','files-','fetchDocument','SELECTION','uploadFile','getSentContextItems','length','uploadUrl','attributes','ai-chat-context-unsupported-type','addFilesToContext','144863JCYnDc','text/plain','loadSourceResources','240EzFvcR','ai-chat-url-upload-failed','isCurrentDocumentInContext','url','push','_config','set','isCurrentDocumentInConversation','string','240360iyMQaX','files','find','ai-request-aborted','_ownerId','uploadProgressChanged','updateCurrentDocument','end','_isResourceInContext','stack','_startUploadOperation','values','abort','_finishUploadOperation','ai-chat-resource-load-failed','sources','hidden','isHidden','isInContext','ai-chat-resource-no-data','_addContextItem','from','_addContextOptionsState','URL','addSelectionToContext','get','_pendingContextItems','HTML','data','DOCUMENT','resourceId','ai-chat-source-resources-load-failed','_ongoingUploads','start','message','clearPendingContextItems','contextItemRemoved','getPendingContextItems','object\x20with\x20content\x20and\x20type\x20properties','_addToConversationContextItem','type','selection','name','getDocument','_getCustomSourcesInitialState','addCurrentDocumentToContext','File','_connector','mapContextItemsToRequestData','removeSelectionFromContext','getResources','urls','_findSourceIdsByResourceId','delete','text/markdown','contextSent','all','uiId','ai-chat-context-invalid-data','_ongoingUploadOperations','uploadDocument','_removeContextItem'];_0x18b5=function(){return _0x4fc078;};return _0x18b5();}import{CKEditorError as _0x14541f,ObservableMixin as _0x327bf4,uid as _0x578ffc}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x4a326c,AIContextTextResourceType as _0x319533}from'../../aicore/model/aicontext.js';import{escape as _0x31bb39}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x5a8d72(0x1b1),_0x5a8d72(0x21b),_0x5a8d72(0x1c9),_0x5a8d72(0x1a0),_0x5a8d72(0x1d7),_0x5a8d72(0x1ca),_0x5a8d72(0x1b4),_0x5a8d72(0x1ae),_0x5a8d72(0x1fc)];export class AIChatContext extends _0x327bf4(){[_0x5a8d72(0x226)];[_0x5a8d72(0x1f3)];[_0x5a8d72(0x1fb)];constructor({connector:_0x3f7e6e,config:_0x3b6def,ownerId:_0x3882ac}){const _0x2a29d4=_0x5a8d72;super(),this[_0x2a29d4(0x226)]=_0x3f7e6e,this[_0x2a29d4(0x1f3)]=_0x3b6def,this[_0x2a29d4(0x1fb)]=_0x3882ac;}[_0x5a8d72(0x1c8)](){const _0x4dc3b4=_0x5a8d72;this[_0x4dc3b4(0x211)]=new Map(),this[_0x4dc3b4(0x1b6)]=new Map(),this[_0x4dc3b4(0x217)]=new Map(),this[_0x4dc3b4(0x1a4)]=new Map(),this[_0x4dc3b4(0x1b5)]();}[_0x5a8d72(0x21c)](){const _0x39ab0f=_0x5a8d72;return this[_0x39ab0f(0x211)];}async[_0x5a8d72(0x1cf)](_0x829928){const _0x1c9ee3=_0x5a8d72,_0x55fa6d=await this[_0x1c9ee3(0x1b2)](_0x829928);return this[_0x1c9ee3(0x21e)](_0x55fa6d),_0x1c9ee3(0x1cd)===_0x55fa6d[_0x1c9ee3(0x1a2)]&&this[_0x1c9ee3(0x1de)](),_0x55fa6d;}async[_0x5a8d72(0x1b2)](_0x558406){const _0x3bd7f9=_0x5a8d72;if(_0x558406[_0x3bd7f9(0x21f)]===_0x4a326c[_0x3bd7f9(0x214)]){const _0x1ba252=await this[_0x3bd7f9(0x226)][_0x3bd7f9(0x1e2)](this[_0x3bd7f9(0x1fb)],_0x558406['id'])[_0x3bd7f9(0x222)]();return{'id':_0x3bd7f9(0x1cd),'uiId':_0x3bd7f9(0x1cd),'label':_0x3bd7f9(0x1bd),'type':_0x558406[_0x3bd7f9(0x21f)],'content':_0x1ba252[_0x3bd7f9(0x1c2)],'hidden':this[_0x3bd7f9(0x1b6)][_0x3bd7f9(0x1d1)](_0x3bd7f9(0x1cd)),'version':_0x1ba252[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1b8)],'sessionId':_0x1ba252[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1b7)]};}return{'id':_0x558406['id'],'uiId':_0x558406['id'],'label':_0x558406[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x1c5)]||_0x558406[_0x3bd7f9(0x221)]||_0x558406[_0x3bd7f9(0x1f1)]||_0x558406['id'],'type':_0x558406[_0x3bd7f9(0x21f)],..._0x558406?.[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x215)]?{'resourceId':_0x558406[_0x3bd7f9(0x1e8)]?.[_0x3bd7f9(0x215)]}:{}};}[_0x5a8d72(0x1e5)](){const _0x31d5e1=_0x5a8d72;return new Map(this[_0x31d5e1(0x1b6)]);}[_0x5a8d72(0x1e0)](_0x4d657c){const _0x3d4250=_0x5a8d72,_0x16aede=this[_0x3d4250(0x211)][_0x3d4250(0x210)](_0x4d657c);_0x16aede?.[_0x3d4250(0x1c0)]||this[_0x3d4250(0x1a6)](_0x4d657c);}[_0x5a8d72(0x21a)](){const _0x208986=_0x5a8d72;if(0x0===this[_0x208986(0x211)][_0x208986(0x1cb)])return;for(const _0x454982 of this[_0x208986(0x211)][_0x208986(0x202)]())this[_0x208986(0x1a6)](_0x454982[_0x208986(0x1a2)]);const _0x2a6ca8=this[_0x208986(0x1b6)][_0x208986(0x210)](_0x208986(0x1cd))||this[_0x208986(0x211)][_0x208986(0x210)](_0x208986(0x1cd));_0x2a6ca8&&this[_0x208986(0x20b)]({..._0x2a6ca8,'isReadOnly':!0x0,'hidden':!0x0});}[_0x5a8d72(0x1b3)](_0x254c91){const _0x2016e4=_0x5a8d72;for(const _0x2d2ccf of _0x254c91[_0x2016e4(0x202)]())this[_0x2016e4(0x21e)](_0x2d2ccf);this[_0x2016e4(0x21a)](),this[_0x2016e4(0x1bb)](_0x2016e4(0x1a0),{'contextItems':Array[_0x2016e4(0x20c)](this[_0x2016e4(0x1e5)]()[_0x2016e4(0x202)]())});}[_0x5a8d72(0x1f0)](){const _0x51b6b4=_0x5a8d72;return this[_0x51b6b4(0x211)][_0x51b6b4(0x1d1)](_0x51b6b4(0x1cd));}[_0x5a8d72(0x1aa)](){const _0x24aac8=_0x5a8d72;return this[_0x24aac8(0x211)][_0x24aac8(0x1d1)](_0x24aac8(0x220));}[_0x5a8d72(0x1f5)](){const _0x4e5dff=_0x5a8d72;return this[_0x4e5dff(0x1b6)][_0x4e5dff(0x1d1)](_0x4e5dff(0x1cd));}static[_0x5a8d72(0x227)](_0x249793){const _0x549043=_0x5a8d72;return Array[_0x549043(0x20c)](_0x249793[_0x549043(0x202)]())[_0x549043(0x1d4)](_0x50c8ec=>this[_0x549043(0x1c4)](_0x50c8ec))[_0x549043(0x1cc)](_0x159701=>null!==_0x159701);}async[_0x5a8d72(0x1ea)](_0x32593b,_0x14a242,_0xd0845c=_0x4a326c[_0x5a8d72(0x1b0)]){const _0x57d460=_0x5a8d72,_0x3bd3e6=_0x57d460(0x1e1)+_0x578ffc();this[_0x57d460(0x201)](_0x3bd3e6);try{await Promise[_0x57d460(0x1a1)](_0x32593b[_0x57d460(0x1d4)](async _0x48667d=>{const _0x37220f=_0x57d460,_0x1f7afc=_0x37220f(0x1ba)+_0x578ffc(),_0x5325aa=_0x31bb39(_0x48667d[_0x37220f(0x221)]);try{this[_0x37220f(0x20b)]({'type':_0xd0845c,'label':_0x14a242?.[_0x37220f(0x1c5)]||_0x5325aa,'uiId':_0x1f7afc,'resourceId':_0x14a242?.[_0x37220f(0x215)]},!0x0);const _0xb35efc=this[_0x37220f(0x226)][_0x37220f(0x1e4)](this[_0x37220f(0x1fb)],_0x48667d,_0x14a242);this[_0x37220f(0x217)][_0x37220f(0x1f4)](_0x1f7afc,_0xb35efc[_0x37220f(0x1ac)]);const {id:_0x31382e}=await _0xb35efc[_0x37220f(0x1da)]();this[_0x37220f(0x217)][_0x37220f(0x19e)](_0x1f7afc),this[_0x37220f(0x1a9)]({'type':_0xd0845c,'id':_0x31382e,'label':_0x14a242?.[_0x37220f(0x1c5)]||_0x5325aa,'uiId':_0x1f7afc,'resourceId':_0x14a242?.[_0x37220f(0x215)]},!0x1);}catch(_0xd3fdac){this[_0x37220f(0x217)][_0x37220f(0x19e)](_0x1f7afc);if(!_0xd3fdac[_0x37220f(0x219)][_0x37220f(0x1bf)](_0x37220f(0x1fa))){const _0x3d6577=new _0x14541f(_0x37220f(0x1be),null,{'fileName':_0x5325aa});_0x3d6577[_0x37220f(0x200)]=_0xd3fdac[_0x37220f(0x200)],this[_0x37220f(0x1bb)](_0x37220f(0x1d7),{'error':_0x3d6577,'fileName':_0x5325aa});}this[_0x37220f(0x1a6)](_0x1f7afc);}}));}finally{this[_0x57d460(0x204)](_0x3bd3e6);}}[_0x5a8d72(0x224)](_0x264325){const _0x1d9e57=_0x5a8d72;if(this[_0x1d9e57(0x1f0)]())return;const _0x25dc82={'type':_0x4a326c[_0x1d9e57(0x214)],'uiId':_0x1d9e57(0x1cd),'label':_0x264325,'isReadOnly':this[_0x1d9e57(0x1b6)][_0x1d9e57(0x1d1)](_0x1d9e57(0x1cd)),'hidden':this[_0x1d9e57(0x1b6)][_0x1d9e57(0x1d1)](_0x1d9e57(0x1cd))};this[_0x1d9e57(0x20b)](_0x25dc82);}async[_0x5a8d72(0x1fd)](_0x3267a4,_0x109aaf,_0x38d841,_0x588e13){const _0x3bcf2e=_0x5a8d72,_0x1cab8b=this[_0x3bcf2e(0x211)][_0x3bcf2e(0x210)](_0x3bcf2e(0x1cd));if(_0x1cab8b&&_0x3267a4){_0x1cab8b[_0x3bcf2e(0x220)]=_0x588e13?_0x588e13[_0x3bcf2e(0x1d4)](_0x58c8f5=>({'start':_0x58c8f5[_0x3bcf2e(0x218)],'end':_0x58c8f5[_0x3bcf2e(0x1fe)]})):[];try{if(_0x1cab8b[_0x3bcf2e(0x1b8)]===_0x109aaf)return;const {id:_0x41da69}=await this[_0x3bcf2e(0x226)][_0x3bcf2e(0x1a5)](this[_0x3bcf2e(0x1fb)],_0x3267a4,{'version':_0x109aaf,'sessionId':_0x38d841})[_0x3bcf2e(0x1da)]();_0x1cab8b['id']=_0x41da69,_0x1cab8b[_0x3bcf2e(0x1c2)]=_0x3267a4,_0x1cab8b[_0x3bcf2e(0x1b8)]=_0x109aaf,_0x1cab8b[_0x3bcf2e(0x1b7)]=_0x38d841;}catch(_0x513652){const _0x2055aa=new _0x14541f(_0x3bcf2e(0x1ab),null);_0x2055aa[_0x3bcf2e(0x200)]=_0x513652[_0x3bcf2e(0x200)],this[_0x3bcf2e(0x1bb)](_0x3bcf2e(0x1d7),{'error':_0x2055aa});}}}[_0x5a8d72(0x20f)](_0x227fbf){const _0x184570=_0x5a8d72;this[_0x184570(0x20b)]({'type':_0x4a326c[_0x184570(0x1e3)],'label':_0x227fbf,'uiId':_0x184570(0x220),'content':_0x227fbf});}[_0x5a8d72(0x228)](){const _0x5656da=_0x5a8d72;this[_0x5656da(0x1a6)](_0x5656da(0x220));}async[_0x5a8d72(0x1ce)](_0x3730ac,_0x2b98ab){const _0x538bef=_0x5a8d72,_0xf5131f=_0x538bef(0x1a8)+_0x578ffc();this[_0x538bef(0x201)](_0xf5131f);const _0x2edb92=_0x538bef(0x1a8)+_0x578ffc();try{this[_0x538bef(0x20b)]({'type':_0x4a326c[_0x538bef(0x20e)],'label':_0x2b98ab?.[_0x538bef(0x1c5)]||_0x3730ac,'uiId':_0x2edb92,'resourceId':_0x2b98ab?.[_0x538bef(0x215)]},!0x0);const _0x74f744=this[_0x538bef(0x226)][_0x538bef(0x1e7)](this[_0x538bef(0x1fb)],_0x3730ac,_0x2b98ab);this[_0x538bef(0x217)][_0x538bef(0x1f4)](_0x2edb92,_0x74f744[_0x538bef(0x1ac)]);const {id:_0x53aef9}=await _0x74f744[_0x538bef(0x1da)]();this[_0x538bef(0x217)][_0x538bef(0x19e)](_0x2edb92),this[_0x538bef(0x1a9)]({'type':_0x4a326c[_0x538bef(0x20e)],'id':_0x53aef9,'label':_0x2b98ab?.[_0x538bef(0x1c5)]||_0x3730ac,'uiId':_0x2edb92,'resourceId':_0x2b98ab?.[_0x538bef(0x215)]},!0x1);}catch(_0x119ace){this[_0x538bef(0x217)][_0x538bef(0x19e)](_0x2edb92),(_0x119ace[_0x538bef(0x219)][_0x538bef(0x1bf)](_0x538bef(0x1fa))||this[_0x538bef(0x1bb)](_0x538bef(0x1d7),{'error':new _0x14541f(_0x538bef(0x1ef),this,{'url':_0x3730ac,'originalError':_0x119ace}),'url':_0x3730ac}),this[_0x538bef(0x1a6)](_0x2edb92));}finally{this[_0x538bef(0x204)](_0xf5131f);}}async[_0x5a8d72(0x1ed)](_0x5f024c,_0x140d9a,_0x5e8031){const _0x5494b1=_0x5a8d72,_0x55377c=this[_0x5494b1(0x20d)][_0x5494b1(0x206)][_0x5494b1(0x1f9)](_0x50863e=>_0x50863e['id']===_0x5f024c);if(!_0x55377c)return this[_0x5494b1(0x1bb)](_0x5494b1(0x1d7),{'error':new _0x14541f(_0x5494b1(0x1af),this,{'sourceId':_0x5f024c}),'sourceId':_0x5f024c}),[];try{const _0x2d5a88=(await _0x55377c[_0x5494b1(0x229)](_0x140d9a))[_0x5494b1(0x1d4)](_0x4d03c4=>{const _0x97a8bd=_0x5494b1,_0xabfbc5=this[_0x97a8bd(0x1ff)](_0x4d03c4['id']);return{..._0x4d03c4,'isInContext':_0xabfbc5};});return _0x55377c[_0x5494b1(0x1dc)]=_0x2d5a88,this[_0x5494b1(0x1bb)](_0x5494b1(0x1b4),{'sourceId':_0x5f024c,'source':_0x55377c,'resources':_0x2d5a88,'uid':_0x5e8031}),_0x2d5a88;}catch(_0x35275e){return this[_0x5494b1(0x1bb)](_0x5494b1(0x1d7),{'error':new _0x14541f(_0x5494b1(0x216),this,{'sourceId':_0x5f024c,'originalError':_0x35275e}),'sourceId':_0x5f024c,'sourceLabel':_0x55377c[_0x5494b1(0x1c5)]}),[];}}async[_0x5a8d72(0x1b9)](_0x27d750,_0x57528a){const _0x29738c=_0x5a8d72;if(this[_0x29738c(0x1ff)](_0x57528a['id']))return;let _0x15a408=_0x57528a[_0x29738c(0x213)];if(!_0x15a408&&_0x27d750[_0x29738c(0x1bc)])try{_0x15a408=await _0x27d750[_0x29738c(0x1bc)](_0x57528a['id']);}catch(_0x397ab8){return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x205),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'originalError':_0x397ab8}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}if(_0x15a408)switch(_0x57528a[_0x29738c(0x21f)]){case _0x4a326c[_0x29738c(0x20e)]:if(_0x29738c(0x1f6)!=typeof _0x15a408)return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x1f6),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});await this[_0x29738c(0x1ce)](_0x15a408,{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']});break;case _0x4a326c[_0x29738c(0x1b0)]:if(!(_0x15a408 instanceof File))return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x225),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});await this[_0x29738c(0x1ea)]([_0x15a408],{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']});break;case _0x4a326c[_0x29738c(0x1db)]:if(_0x29738c(0x1ad)!=typeof _0x15a408||!(_0x29738c(0x1c2)in _0x15a408)||!(_0x29738c(0x21f)in _0x15a408))return void this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1a3),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'expectedType':_0x29738c(0x21d),'actualType':typeof _0x15a408}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});_0x15a408=AIChatContext[_0x29738c(0x1c1)](_0x15a408,_0x57528a[_0x29738c(0x1c5)]),await this[_0x29738c(0x1ea)]([_0x15a408],{'label':_0x57528a[_0x29738c(0x1c5)],'resourceId':_0x57528a['id']},_0x4a326c[_0x29738c(0x1db)]);break;default:this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x1e9),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id'],'resourceType':_0x57528a[_0x29738c(0x21f)]}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}else this[_0x29738c(0x1bb)](_0x29738c(0x1d7),{'error':new _0x14541f(_0x29738c(0x20a),this,{'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']}),'resourceId':_0x57528a['id'],'sourceId':_0x27d750['id']});}static[_0x5a8d72(0x1c1)](_0x43537f,_0x49171f){const _0x544d98=_0x5a8d72;switch(_0x43537f[_0x544d98(0x21f)]){case _0x319533[_0x544d98(0x1d2)]:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x19f)});case _0x319533[_0x544d98(0x212)]:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x1d8)});default:return new File([_0x43537f[_0x544d98(0x1c2)]],_0x49171f,{'type':_0x544d98(0x1ec)});}}static[_0x5a8d72(0x1c4)](_0x230d89){const _0x323f03=_0x5a8d72;switch(_0x230d89[_0x323f03(0x21f)]){case _0x4a326c[_0x323f03(0x1b0)]:return{'type':_0x4a326c[_0x323f03(0x1b0)],'id':_0x230d89['id']};case _0x4a326c[_0x323f03(0x20e)]:return{'type':_0x4a326c[_0x323f03(0x20e)],'id':_0x230d89['id']};case _0x4a326c[_0x323f03(0x214)]:return{'type':_0x4a326c[_0x323f03(0x214)],'id':_0x230d89['id'],..._0x230d89[_0x323f03(0x220)]?.[_0x323f03(0x1e6)]&&{'selection':_0x230d89[_0x323f03(0x220)]}};case _0x4a326c[_0x323f03(0x1db)]:return{'type':_0x4a326c[_0x323f03(0x1b0)],'id':_0x230d89['id']};default:return null;}}[_0x5a8d72(0x20b)](_0x575a57,_0x1fd021=!0x1){const _0x5652f6=_0x5a8d72;if(this[_0x5652f6(0x211)][_0x5652f6(0x1f4)](_0x575a57[_0x5652f6(0x1a2)],_0x575a57),_0x575a57[_0x5652f6(0x207)]||this[_0x5652f6(0x1bb)](_0x5652f6(0x1b1),{'contextItem':_0x575a57,'isLoading':_0x1fd021}),_0x5652f6(0x1cd)===_0x575a57[_0x5652f6(0x1a2)]&&this[_0x5652f6(0x1de)](),_0x575a57[_0x5652f6(0x215)]){const _0x3cfb6d=this[_0x5652f6(0x19d)](_0x575a57[_0x5652f6(0x215)]);_0x3cfb6d&&_0x3cfb6d[_0x5652f6(0x1d0)](_0x316990=>{const _0x4eca5f=_0x5652f6;this[_0x4eca5f(0x1dd)](_0x316990,_0x575a57[_0x4eca5f(0x215)],!0x0);});}}[_0x5a8d72(0x1a6)](_0x4dfcf8){const _0x3800da=_0x5a8d72,_0x9b7d37=this[_0x3800da(0x211)][_0x3800da(0x210)](_0x4dfcf8),_0x4a3211=this[_0x3800da(0x217)][_0x3800da(0x210)](_0x4dfcf8);if(_0x4a3211&&(_0x4a3211[_0x3800da(0x203)](),this[_0x3800da(0x217)][_0x3800da(0x19e)](_0x4dfcf8)),_0x9b7d37?.[_0x3800da(0x215)]){const _0x14affb=this[_0x3800da(0x19d)](_0x9b7d37[_0x3800da(0x215)]);_0x14affb&&_0x14affb[_0x3800da(0x1d0)](_0x29fa7a=>{const _0x29f924=_0x3800da;this[_0x29f924(0x1dd)](_0x29fa7a,_0x9b7d37[_0x29f924(0x215)],!0x1);});}this[_0x3800da(0x211)][_0x3800da(0x19e)](_0x4dfcf8),this[_0x3800da(0x1bb)](_0x3800da(0x21b),{'uiId':_0x4dfcf8,'type':_0x9b7d37?.[_0x3800da(0x21f)]}),_0x3800da(0x1cd)===_0x4dfcf8&&this[_0x3800da(0x1de)]();}[_0x5a8d72(0x1a9)](_0x2f4679,_0x5808d3){const _0x4f459c=_0x5a8d72;if(this[_0x4f459c(0x211)][_0x4f459c(0x1d1)](_0x2f4679[_0x4f459c(0x1a2)])&&(this[_0x4f459c(0x211)][_0x4f459c(0x1f4)](_0x2f4679[_0x4f459c(0x1a2)],_0x2f4679),this[_0x4f459c(0x1bb)](_0x4f459c(0x1c9),{'contextItem':_0x2f4679,'isLoading':_0x5808d3}),_0x2f4679[_0x4f459c(0x215)])){const _0x5a3ded=this[_0x4f459c(0x19d)](_0x2f4679[_0x4f459c(0x215)]);_0x5a3ded&&_0x5a3ded[_0x4f459c(0x1d0)](_0x140ed0=>{const _0xa3de19=_0x4f459c;this[_0xa3de19(0x1dd)](_0x140ed0,_0x2f4679[_0xa3de19(0x215)],!0x0);});}}[_0x5a8d72(0x21e)](_0x176b78){const _0x31429f=_0x5a8d72;this[_0x31429f(0x1b6)][_0x31429f(0x1f4)](_0x176b78[_0x31429f(0x1a2)],_0x176b78);}[_0x5a8d72(0x1b5)](){const _0x3f8174=_0x5a8d72;this[_0x3f8174(0x20d)]={'document':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x1c7)]?.[_0x3f8174(0x1df)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x19c)]?.[_0x3f8174(0x1df)]},'files':{'enabled':!0x1!==this[_0x3f8174(0x1f3)]?.[_0x3f8174(0x1f8)]?.[_0x3f8174(0x1df)]},'sources':this[_0x3f8174(0x223)]()},this[_0x3f8174(0x1bb)](_0x3f8174(0x1ca),{'options':this[_0x3f8174(0x20d)]});}[_0x5a8d72(0x223)](){const _0x4278f9=_0x5a8d72;return this[_0x4278f9(0x1f3)]?.[_0x4278f9(0x206)]?.[_0x4278f9(0x1d4)](_0x16a543=>({..._0x16a543,'resources':[]}))??[];}[_0x5a8d72(0x1de)](){const _0x55e094=_0x5a8d72,_0x3e05d8=this[_0x55e094(0x1f0)]()||this[_0x55e094(0x1f5)]();this[_0x55e094(0x20d)][_0x55e094(0x1c7)][_0x55e094(0x208)]=_0x3e05d8,this[_0x55e094(0x1bb)](_0x55e094(0x1ca),{'options':this[_0x55e094(0x20d)]});}[_0x5a8d72(0x1ff)](_0x52fb2b){const _0x4b9c02=_0x5a8d72;for(const _0x3dc8e3 of this[_0x4b9c02(0x211)][_0x4b9c02(0x202)]())if(_0x3dc8e3[_0x4b9c02(0x215)]===_0x52fb2b)return!0x0;for(const _0x6765d3 of this[_0x4b9c02(0x1b6)][_0x4b9c02(0x202)]())if(_0x6765d3[_0x4b9c02(0x215)]===_0x52fb2b)return!0x0;return!0x1;}[_0x5a8d72(0x19d)](_0x46d1c1){const _0x105879=_0x5a8d72,_0x529af5=[];for(const _0x1d7af2 of this[_0x105879(0x20d)][_0x105879(0x206)]){_0x1d7af2[_0x105879(0x1dc)][_0x105879(0x1f9)](_0x5eb36c=>_0x5eb36c['id']===_0x46d1c1)&&_0x529af5[_0x105879(0x1f2)](_0x1d7af2['id']);}return 0x0===_0x529af5[_0x105879(0x1e6)]?null:_0x529af5;}[_0x5a8d72(0x1dd)](_0x5d886d,_0x3a5652,_0x24bdc1){const _0x3f2e9d=_0x5a8d72,_0x16005d=this[_0x3f2e9d(0x20d)][_0x3f2e9d(0x206)][_0x3f2e9d(0x1f9)](_0x3a71af=>_0x3a71af['id']===_0x5d886d);if(!_0x16005d)return;const _0x545161=_0x16005d[_0x3f2e9d(0x1dc)][_0x3f2e9d(0x1f9)](_0x1d7456=>_0x1d7456['id']===_0x3a5652);_0x545161&&(_0x545161[_0x3f2e9d(0x209)]=_0x24bdc1,this[_0x3f2e9d(0x1bb)](_0x3f2e9d(0x1ae),{'sourceId':_0x5d886d,'resourceId':_0x3a5652,'isInContext':_0x24bdc1}));}[_0x5a8d72(0x201)](_0xb6783f){const _0x1fbe11=_0x5a8d72;this[_0x1fbe11(0x1a4)][_0x1fbe11(0x1f4)](_0xb6783f,!0x0),this[_0x1fbe11(0x1a4)][_0x1fbe11(0x1cb)]&&this[_0x1fbe11(0x1bb)](_0x1fbe11(0x1fc),{'isUploadInProgress':!0x0});}[_0x5a8d72(0x204)](_0x107010){const _0x1c5ec6=_0x5a8d72;this[_0x1c5ec6(0x1a4)][_0x1c5ec6(0x19e)](_0x107010),0x0===this[_0x1c5ec6(0x1a4)][_0x1c5ec6(0x1cb)]&&this[_0x1c5ec6(0x1bb)](_0x1c5ec6(0x1fc),{'isUploadInProgress':!0x1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d8b17=_0x7e14;(function(_0x9f2140,_0x2a6829){const _0x40baaa=_0x7e14,_0x2fd8f1=_0x9f2140();while(!![]){try{const _0x141d9e=parseInt(_0x40baaa(0x18c))/0x1+parseInt(_0x40baaa(0x1b9))/0x2+-parseInt(_0x40baaa(0x1b2))/0x3*(parseInt(_0x40baaa(0x17d))/0x4)+-parseInt(_0x40baaa(0x19a))/0x5+-parseInt(_0x40baaa(0x189))/0x6*(parseInt(_0x40baaa(0x161))/0x7)+-parseInt(_0x40baaa(0x177))/0x8+parseInt(_0x40baaa(0x1aa))/0x9*(parseInt(_0x40baaa(0x15e))/0xa);if(_0x141d9e===_0x2a6829)break;else _0x2fd8f1['push'](_0x2fd8f1['shift']());}catch(_0x3b4eb3){_0x2fd8f1['push'](_0x2fd8f1['shift']());}}}(_0x50b5,0xbf467));function _0x50b5(){const _0x4de6f8=['updateCurrentDocument','isCurrentDocumentInContext','getConversation','modification-delta','destroy','3763730zDzJkO','sessionId','ai-chat-conversation-already-started','7ApVdRh','reset','startConversation','error','getAll','getInteraction','getDocumentContext','hasOwn','contextItems','chatCapabilities','model','_extractContextItems','attributes','isAvailable','lastInteraction','selectedModel','interactions','getCapabilitiesConfig','ai-chat-conversation-init-from-id-failed','ai-chat-handle-user-conversation-not-initialized','_processMessagesToInteractions','addFilesToContext','12489240xfEKkC','fire','group','indexOf','conversationInitialized','addUrlToContext','3988888wsyySR','conversationStarted','addSelectionToContext','getAvailableModels','ai-chat-conversation-set-model-null','createReply','removeInteraction','ai-chat-conversation-set-model-not-available','addResourceToContext','options','reasoning','text','5786448ETQuLt','ai-chat-conversation-start-failed','modelSelected','472397aUwLXN','stop','content','webSearch','getEditor','ai-chat-conversation-init-failed','delegate','getPendingContextItems','conversationId','message','appendContent','addToConversationContext','find','prompt','5632320XlGEPD','toggleWebSearch','isStarted','currentInteraction','loadSourceResources','ai-chat-handle-user-interaction-already-in-progress','toLowerCase','interactionCreated','currentReply','removeSelectionFromContext','createInteraction','init','quickActionData','capabilities','user','toggleReasoning','117hqVSGO','push','role','title','connector','set','isSelectionInContext','type','3kfqjYP','length','chatContext','load','isCurrentDocumentInConversation','updateCurrentDocumentInContext','text-delta','134932mXxBug','getCurrentDocumentContext','setModel','stack','chatModels','assistant','getModel','fetchConversationMessages','removeFromContext','selectedModelId','splice','ai-chat-conversation-start-no-model-selected','handleUserInteraction','getMessages','setConversationTitle','start','populateFromMessage','fetchConversation','addCurrentDocumentToContext'];_0x50b5=function(){return _0x4de6f8;};return _0x50b5();}import{CKEditorError as _0x5cd399,EmitterMixin as _0x4ccff6,logWarning as _0x4c944b}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4b5fbe}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x31de19,AI_CONTEXT_MODEL_EVENT_NAMES as _0x8b9e8b}from'./aichatcontext.js';function _0x7e14(_0x19fbe8,_0x7e7b06){const _0x50b520=_0x50b5();return _0x7e14=function(_0x7e14e7,_0x4ed6ee){_0x7e14e7=_0x7e14e7-0x147;let _0x39d9fd=_0x50b520[_0x7e14e7];return _0x39d9fd;},_0x7e14(_0x19fbe8,_0x7e7b06);}import{AICapabilities as _0x1f24d1,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b0eb5}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x111896}from'./aichatinteraction.js';export class AIChatConversation extends _0x4ccff6(){['id'];[_0x3d8b17(0x19c)]=!0x1;[_0x3d8b17(0x171)]=[];[_0x3d8b17(0x19d)];[_0x3d8b17(0x170)];[_0x3d8b17(0x1ae)];[_0x3d8b17(0x186)];constructor(_0x530b0f){const _0x4ac02a=_0x3d8b17;super(),this[_0x4ac02a(0x186)]=_0x530b0f,this[_0x4ac02a(0x1ae)]=_0x530b0f[_0x4ac02a(0x1ae)],this[_0x4ac02a(0x14a)]=_0x530b0f[_0x4ac02a(0x14a)],this['id']=_0x530b0f[_0x4ac02a(0x194)];}async[_0x3d8b17(0x1a5)](_0x16b680){const _0x1b6bea=_0x3d8b17;try{this[_0x1b6bea(0x1b4)]=new _0x31de19({'connector':this[_0x1b6bea(0x1ae)],'config':_0x16b680,'ownerId':this['id']}),this[_0x1b6bea(0x1b4)][_0x1b6bea(0x192)](..._0x8b9e8b)['to'](this),this[_0x1b6bea(0x1b4)][_0x1b6bea(0x1a5)](),this[_0x1b6bea(0x16a)]=new _0x1f24d1(),this[_0x1b6bea(0x16a)][_0x1b6bea(0x192)](..._0x5b0eb5)['to'](this),this[_0x1b6bea(0x16a)][_0x1b6bea(0x1a5)]();const _0x2c2c5b=await this[_0x1b6bea(0x14a)][_0x1b6bea(0x180)]();this[_0x1b6bea(0x178)](_0x1b6bea(0x17b),{'availableModels':_0x2c2c5b});const _0x25fc41=await this[_0x1b6bea(0x14a)][_0x1b6bea(0x14c)](this[_0x1b6bea(0x186)][_0x1b6bea(0x14f)]);_0x25fc41&&await this[_0x1b6bea(0x148)](_0x25fc41);}catch(_0x443ec2){const _0x4e0f8c=new _0x5cd399(_0x1b6bea(0x191),null,{'message':_0x443ec2[_0x1b6bea(0x195)]});_0x4e0f8c[_0x1b6bea(0x149)]=_0x443ec2[_0x1b6bea(0x149)],this[_0x1b6bea(0x178)](_0x1b6bea(0x164),{'error':_0x4e0f8c});}}async[_0x3d8b17(0x155)](){const _0x5865d5=_0x3d8b17;if(this[_0x5865d5(0x19c)])throw new _0x5cd399(_0x5865d5(0x160),null,{'conversation':this});if(!this[_0x5865d5(0x170)])throw new _0x5cd399(_0x5865d5(0x151),null,{'conversation':this});try{const {id:_0x3fbd63}=await this[_0x5865d5(0x1ae)][_0x5865d5(0x163)](this['id'],this[_0x5865d5(0x186)][_0x5865d5(0x179)])[_0x5865d5(0x15b)]();this['id']=_0x3fbd63,this[_0x5865d5(0x19c)]=!0x0,this[_0x5865d5(0x178)](_0x5865d5(0x17e),{'conversationId':this['id'],'selectedModel':this[_0x5865d5(0x170)]});}catch(_0x22f4a1){const _0x3476d6=new _0x5cd399(_0x5865d5(0x18a),null,{'message':_0x22f4a1[_0x5865d5(0x195)]});_0x3476d6[_0x5865d5(0x149)]=_0x22f4a1[_0x5865d5(0x149)],this[_0x5865d5(0x178)](_0x5865d5(0x164),{'error':_0x3476d6});}}async[_0x3d8b17(0x1b5)](_0x24df5c,_0x2e77e9){const _0x345c31=_0x3d8b17;try{const _0x3c8dfc=await this[_0x345c31(0x1ae)][_0x345c31(0x157)](_0x24df5c)[_0x345c31(0x15b)](),_0x3bfa42=await this[_0x345c31(0x1ae)][_0x345c31(0x14d)](_0x24df5c)[_0x345c31(0x153)](),_0x45ab4a=_0x3bfa42[0x0][_0x345c31(0x16b)];this[_0x345c31(0x19c)]=!0x0,this['id']=_0x3c8dfc['id'],_0x345c31(0x1ad)in _0x3c8dfc?this[_0x345c31(0x178)](_0x345c31(0x154),_0x3c8dfc[_0x345c31(0x1ad)],!0x0):this[_0x345c31(0x178)](_0x345c31(0x154),'',!0x0);const _0x4d7892=(await this[_0x345c31(0x14a)][_0x345c31(0x165)]())[_0x345c31(0x198)](_0x39ca9a=>_0x39ca9a['id'][_0x345c31(0x1a0)]()===_0x45ab4a[_0x345c31(0x1a0)]());return this[_0x345c31(0x170)]=_0x4d7892,this[_0x345c31(0x178)](_0x345c31(0x18b),{'selectedModel':_0x4d7892,'isDisabled':!0x0}),await this[_0x345c31(0x175)](_0x3bfa42,_0x2e77e9,_0x45ab4a),this[_0x345c31(0x19d)]=void 0x0,this;}catch(_0x4a4d42){const _0x133d11=new _0x5cd399(_0x345c31(0x173),null,{'message':_0x4a4d42[_0x345c31(0x195)],'conversationId':_0x24df5c});throw _0x133d11[_0x345c31(0x149)]=_0x4a4d42[_0x345c31(0x149)],this[_0x345c31(0x178)](_0x345c31(0x164),{'error':_0x133d11}),_0x133d11;}}async[_0x3d8b17(0x175)](_0x5c76b8,_0x4929ea,_0x267c2c){const _0x5d4ffb=_0x3d8b17;let _0x202122;for(const _0x39d162 of _0x5c76b8)if(_0x5d4ffb(0x1a8)===_0x39d162[_0x5d4ffb(0x1ac)]){const _0x4f1e05=await this[_0x5d4ffb(0x16c)](_0x39d162),_0x38fbdd={'isReasoningEnabled':Object[_0x5d4ffb(0x168)](_0x39d162[_0x5d4ffb(0x1a7)],_0x5d4ffb(0x187)),'isWebSearchEnabled':Object[_0x5d4ffb(0x168)](_0x39d162[_0x5d4ffb(0x1a7)],_0x5d4ffb(0x18f))};_0x202122=this[_0x5d4ffb(0x1a4)]({'userMessage':_0x39d162[_0x5d4ffb(0x199)],'contextItems':_0x4f1e05,'capabilities':_0x38fbdd,'modelId':_0x267c2c,'quickActionData':_0x39d162[_0x5d4ffb(0x16d)]?.[_0x5d4ffb(0x1a6)]}),this[_0x5d4ffb(0x19d)]=_0x202122,this[_0x5d4ffb(0x1b4)][_0x5d4ffb(0x197)](this[_0x5d4ffb(0x19d)][_0x5d4ffb(0x169)]);}else{if(_0x5d4ffb(0x14b)===_0x39d162[_0x5d4ffb(0x1ac)]&&_0x202122)for(const _0x21e6cc of _0x39d162[_0x5d4ffb(0x18e)]){const _0x468299=_0x5d4ffb(0x188)===_0x21e6cc[_0x5d4ffb(0x1b1)]?_0x5d4ffb(0x1b8):_0x5d4ffb(0x15c),_0x274bfb=_0x202122[_0x5d4ffb(0x167)]()?.[_0x5d4ffb(0x15f)]!==_0x4929ea;_0x202122[_0x5d4ffb(0x1a2)]=_0x202122[_0x5d4ffb(0x182)]({'type':_0x468299,'isDone':!0x0,'interactionId':_0x202122['id'],'areActionsDisabled':_0x274bfb}),_0x202122[_0x5d4ffb(0x1a2)][_0x5d4ffb(0x196)](_0x21e6cc[_0x5d4ffb(0x18e)]);}}}async[_0x3d8b17(0x16c)](_0x2a36be){const _0x5949fb=_0x3d8b17,_0x2248ab=new Map();if(!_0x2a36be[_0x5949fb(0x18e)])return _0x2248ab;for(const _0x13bc13 of _0x2a36be[_0x5949fb(0x18e)]){const _0x123321=await this[_0x5949fb(0x1b4)][_0x5949fb(0x156)](_0x13bc13);_0x123321&&_0x2248ab[_0x5949fb(0x1af)](_0x123321['id'],_0x123321);}return _0x2248ab;}async[_0x3d8b17(0x152)]({userMessage:_0x18d782,quickActionData:_0x39c718}){const _0x5024b4=_0x3d8b17;if(!this[_0x5024b4(0x19c)])throw new _0x5cd399(_0x5024b4(0x174),null,{'conversation':this});if(this[_0x5024b4(0x19d)])throw new _0x5cd399(_0x5024b4(0x19f),null,{'conversation':this});try{const _0x1b0a41=this[_0x5024b4(0x1b4)][_0x5024b4(0x193)](),_0x473d15=this[_0x5024b4(0x16a)][_0x5024b4(0x172)](),_0x48d51c=this[_0x5024b4(0x170)]['id'];this[_0x5024b4(0x19d)]=this[_0x5024b4(0x1a4)]({'userMessage':_0x18d782,'contextItems':_0x1b0a41,'capabilities':_0x473d15,'modelId':_0x48d51c,'quickActionData':_0x39c718}),await this[_0x5024b4(0x19d)][_0x5024b4(0x155)](),this[_0x5024b4(0x1b4)][_0x5024b4(0x197)](this[_0x5024b4(0x19d)][_0x5024b4(0x169)]);}catch(_0xf05fc5){this[_0x5024b4(0x178)](_0x5024b4(0x164),{'interactionId':this[_0x5024b4(0x19d)]?this[_0x5024b4(0x19d)]['id']:void 0x0,'error':_0xf05fc5});}finally{this[_0x5024b4(0x19d)]?.[_0x5024b4(0x18d)](),this[_0x5024b4(0x19d)]=void 0x0;}}[_0x3d8b17(0x1a4)]({userMessage:_0x782412,contextItems:_0x586aed,capabilities:_0x531c49,modelId:_0x523ddc,quickActionData:_0x475e31}){const _0x52011b=_0x3d8b17,_0x303b67=new _0x111896({'userMessage':_0x782412,'contextItems':_0x586aed,'capabilities':_0x531c49,'conversationId':this['id'],'connector':this[_0x52011b(0x1ae)],'editor':this[_0x52011b(0x186)][_0x52011b(0x190)]&&this[_0x52011b(0x186)][_0x52011b(0x190)](),'model':_0x523ddc,'quickActionData':_0x475e31});return _0x303b67[_0x52011b(0x192)](..._0x4b5fbe)['to'](this),this[_0x52011b(0x171)][_0x52011b(0x1ab)](_0x303b67),this[_0x52011b(0x178)](_0x52011b(0x1a1),_0x303b67),_0x303b67;}[_0x3d8b17(0x166)](_0x527be4){const _0x42d38a=_0x3d8b17;return this[_0x42d38a(0x171)][_0x42d38a(0x198)](_0x56a59b=>_0x56a59b['id']===_0x527be4);}[_0x3d8b17(0x183)](_0x5a42f2){const _0x5e79f8=_0x3d8b17,_0x55fc1a=this[_0x5e79f8(0x166)](_0x5a42f2);_0x55fc1a&&(_0x55fc1a[_0x5e79f8(0x15d)](),this[_0x5e79f8(0x171)][_0x5e79f8(0x150)](this[_0x5e79f8(0x171)][_0x5e79f8(0x17a)](_0x55fc1a),0x1));}get[_0x3d8b17(0x16f)](){const _0x1fbc8e=_0x3d8b17;return this[_0x1fbc8e(0x171)][this[_0x1fbc8e(0x171)][_0x1fbc8e(0x1b3)]-0x1];}[_0x3d8b17(0x158)](_0x17f94d){const _0x2c37f8=_0x3d8b17;this[_0x2c37f8(0x1b4)][_0x2c37f8(0x158)](_0x17f94d);}async[_0x3d8b17(0x1b7)]({content:_0x36b959,version:_0x58b395,sessionId:_0x584c71,selections:_0x4681fe}){const _0x9ee41a=_0x3d8b17;await this[_0x9ee41a(0x1b4)][_0x9ee41a(0x159)](_0x36b959,_0x58b395,_0x584c71,_0x4681fe);}[_0x3d8b17(0x147)](){const _0xc1b83b=_0x3d8b17;return this[_0xc1b83b(0x19d)]?.[_0xc1b83b(0x167)]()?.[_0xc1b83b(0x18e)]||'';}[_0x3d8b17(0x17f)](_0x14b905){const _0x2ec0eb=_0x3d8b17;this[_0x2ec0eb(0x1b4)][_0x2ec0eb(0x17f)](_0x14b905);}[_0x3d8b17(0x1a3)](){const _0x43b5f9=_0x3d8b17;this[_0x43b5f9(0x1b4)][_0x43b5f9(0x1a3)]();}[_0x3d8b17(0x176)](_0x3422ef){const _0x425e63=_0x3d8b17;this[_0x425e63(0x1b4)][_0x425e63(0x176)](_0x3422ef);}[_0x3d8b17(0x17c)](_0x37ec73){const _0x17d899=_0x3d8b17;this[_0x17d899(0x1b4)][_0x17d899(0x17c)](_0x37ec73);}[_0x3d8b17(0x185)](_0x15be05,_0x383728){const _0x18e68a=_0x3d8b17;this[_0x18e68a(0x1b4)][_0x18e68a(0x185)](_0x15be05,_0x383728);}[_0x3d8b17(0x19e)](_0x2c27c6,_0x4afe9c,_0x3fee95){const _0xa7980a=_0x3d8b17;return this[_0xa7980a(0x1b4)][_0xa7980a(0x19e)](_0x2c27c6,_0x4afe9c,_0x3fee95);}[_0x3d8b17(0x14e)](_0x216de7){const _0x5ee816=_0x3d8b17;this[_0x5ee816(0x1b4)][_0x5ee816(0x14e)](_0x216de7);}[_0x3d8b17(0x19b)](){const _0x5be922=_0x3d8b17;this[_0x5be922(0x16a)][_0x5be922(0x19b)]();}[_0x3d8b17(0x1a9)](){const _0x562973=_0x3d8b17;this[_0x562973(0x16a)][_0x562973(0x1a9)]();}[_0x3d8b17(0x15a)](){const _0xc27dc0=_0x3d8b17;return this[_0xc27dc0(0x1b4)][_0xc27dc0(0x15a)]();}[_0x3d8b17(0x1b6)](){const _0x2c99ba=_0x3d8b17;return this[_0x2c99ba(0x1b4)][_0x2c99ba(0x1b6)]();}[_0x3d8b17(0x1b0)](){const _0x51e7d3=_0x3d8b17;return this[_0x51e7d3(0x1b4)][_0x51e7d3(0x1b0)]();}async[_0x3d8b17(0x148)](_0x10f5be){const _0xd154db=_0x3d8b17;_0x10f5be?!0x1===await this[_0xd154db(0x14a)][_0xd154db(0x16e)](_0x10f5be)&&(_0x4c944b(_0xd154db(0x184),{'conversation':this,'model':_0x10f5be}),_0x10f5be=(await this[_0xd154db(0x14a)][_0xd154db(0x180)]())[0x0]):(_0x4c944b(_0xd154db(0x181),{'conversation':this}),_0x10f5be=(await this[_0xd154db(0x14a)][_0xd154db(0x180)]())[0x0]),_0x10f5be['id']!==this[_0xd154db(0x170)]?.['id']&&(this[_0xd154db(0x170)]=_0x10f5be,this[_0xd154db(0x16a)][_0xd154db(0x162)](),this[_0xd154db(0x178)](_0xd154db(0x18b),{'selectedModel':_0x10f5be}));}}
23
+ const _0xf61193=_0x3497;(function(_0x44eea2,_0xab784f){const _0x273089=_0x3497,_0x2b7738=_0x44eea2();while(!![]){try{const _0x52d6cb=parseInt(_0x273089(0x11c))/0x1*(-parseInt(_0x273089(0xe0))/0x2)+parseInt(_0x273089(0x11b))/0x3*(-parseInt(_0x273089(0x12c))/0x4)+parseInt(_0x273089(0x106))/0x5+-parseInt(_0x273089(0xcb))/0x6+-parseInt(_0x273089(0x10b))/0x7+parseInt(_0x273089(0xfe))/0x8+parseInt(_0x273089(0xed))/0x9*(parseInt(_0x273089(0x102))/0xa);if(_0x52d6cb===_0xab784f)break;else _0x2b7738['push'](_0x2b7738['shift']());}catch(_0x5554cd){_0x2b7738['push'](_0x2b7738['shift']());}}}(_0x26a7,0x3e873));import{CKEditorError as _0x3453c9,EmitterMixin as _0xdde8a,logWarning as _0x42a3fd}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x3e2df2}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x214691,AI_CONTEXT_MODEL_EVENT_NAMES as _0x3c8072}from'./aichatcontext.js';import{AICapabilities as _0x5350e3,CAPABILITIES_MODEL_EVENT_NAMES as _0x28227e}from'../../aicore/model/aicapabilities.js';function _0x26a7(){const _0x28a241=['interactionCreated','isStarted','ai-chat-conversation-start-failed','init','removeFromContext','isAvailable','54otNFDc','117357ZMjYaJ','type','isCurrentDocumentInContext','set','destroy','ai-chat-handle-user-interaction-already-in-progress','attributes','group','appendContent','indexOf','setModel','getConversation','delegate','start','contextItems','addFilesToContext','20576DaUYez','model','setConversationTitle','error','push','getModel','ai-chat-conversation-init-failed','ai-chat-conversation-already-started','conversationInitialized','prompt','startConversation','_processMessagesToInteractions','isSelectionInContext','sessionId','ai-chat-conversation-init-from-id-failed','createReply','selectedModel','webSearch','2759010KttpWF','removeSelectionFromContext','reset','getCapabilitiesConfig','getAvailableModels','text','content','fire','addSelectionToContext','reasoning','addResourceToContext','lastInteraction','populateFromMessage','getCurrentDocumentContext','currentInteraction','updateCurrentDocument','interactions','ai-chat-conversation-set-model-not-available','splice','removeInteraction','connector','2IPGObA','chatModels','getPendingContextItems','getAll','options','isCurrentDocumentInConversation','addCurrentDocumentToContext','getEditor','modelSelected','quickActionData','getInteraction','chatCapabilities','ai-chat-conversation-set-model-null','36byUocw','ai-chat-handle-user-conversation-not-initialized','fetchConversationMessages','length','conversationId','_extractContextItems','toggleWebSearch','capabilities','fetchConversation','addUrlToContext','selectedModelId','role','assistant','load','toLowerCase','modification-delta','hasOwn','2938992JwvTem','getDocumentContext','currentReply','find','1861490SFOzEw','loadSourceResources','text-delta','addToConversationContext','839860zfoLAB','ai-chat-conversation-start-no-model-selected','message','createInteraction','updateCurrentDocumentInContext','2478301QLbwQy','stack','chatContext','conversationStarted','handleUserInteraction','stop','toggleReasoning','title','getMessages','user'];_0x26a7=function(){return _0x28a241;};return _0x26a7();}function _0x3497(_0x5ca5d3,_0xe8209f){const _0x26a7e6=_0x26a7();return _0x3497=function(_0x349710,_0x3a6e9d){_0x349710=_0x349710-0xc3;let _0x21255c=_0x26a7e6[_0x349710];return _0x21255c;},_0x3497(_0x5ca5d3,_0xe8209f);}import{AIChatInteraction as _0x41d256}from'./aichatinteraction.js';export class AIChatConversation extends _0xdde8a(){['id'];[_0xf61193(0x116)]=!0x1;[_0xf61193(0xdb)]=[];[_0xf61193(0xd9)];[_0xf61193(0xc9)];[_0xf61193(0xdf)];[_0xf61193(0xe4)];constructor(_0x1590c3){const _0x274d57=_0xf61193;super(),this[_0x274d57(0xe4)]=_0x1590c3,this[_0x274d57(0xdf)]=_0x1590c3[_0x274d57(0xdf)],this[_0x274d57(0xe1)]=_0x1590c3[_0x274d57(0xe1)],this['id']=_0x1590c3[_0x274d57(0xf1)];}async[_0xf61193(0x118)](_0x29c73e){const _0x9c9ecd=_0xf61193;try{this[_0x9c9ecd(0x10d)]=new _0x214691({'connector':this[_0x9c9ecd(0xdf)],'config':_0x29c73e,'ownerId':this['id']}),this[_0x9c9ecd(0x10d)][_0x9c9ecd(0x128)](..._0x3c8072)['to'](this),this[_0x9c9ecd(0x10d)][_0x9c9ecd(0x118)](),this[_0x9c9ecd(0xeb)]=new _0x5350e3(),this[_0x9c9ecd(0xeb)][_0x9c9ecd(0x128)](..._0x28227e)['to'](this),this[_0x9c9ecd(0xeb)][_0x9c9ecd(0x118)]();const _0x2944b8=await this[_0x9c9ecd(0xe1)][_0x9c9ecd(0xcf)]();this[_0x9c9ecd(0xd2)](_0x9c9ecd(0x134),{'availableModels':_0x2944b8});const _0x4cbeed=await this[_0x9c9ecd(0xe1)][_0x9c9ecd(0x131)](this[_0x9c9ecd(0xe4)][_0x9c9ecd(0xf7)]);_0x4cbeed&&await this[_0x9c9ecd(0x126)](_0x4cbeed);}catch(_0x159b9d){const _0x47d2e2=new _0x3453c9(_0x9c9ecd(0x132),null,{'message':_0x159b9d[_0x9c9ecd(0x108)]});_0x47d2e2[_0x9c9ecd(0x10c)]=_0x159b9d[_0x9c9ecd(0x10c)],this[_0x9c9ecd(0xd2)](_0x9c9ecd(0x12f),{'error':_0x47d2e2});}}async[_0xf61193(0x129)](){const _0x73e7c7=_0xf61193;if(this[_0x73e7c7(0x116)])throw new _0x3453c9(_0x73e7c7(0x133),null,{'conversation':this});if(!this[_0x73e7c7(0xc9)])throw new _0x3453c9(_0x73e7c7(0x107),null,{'conversation':this});try{const {id:_0x534c10}=await this[_0x73e7c7(0xdf)][_0x73e7c7(0xc3)](this['id'],this[_0x73e7c7(0xe4)][_0x73e7c7(0x123)])[_0x73e7c7(0x127)]();this['id']=_0x534c10,this[_0x73e7c7(0x116)]=!0x0,this[_0x73e7c7(0xd2)](_0x73e7c7(0x10e),{'conversationId':this['id'],'selectedModel':this[_0x73e7c7(0xc9)]});}catch(_0x5e451d){const _0x5bb3e9=new _0x3453c9(_0x73e7c7(0x117),null,{'message':_0x5e451d[_0x73e7c7(0x108)]});_0x5bb3e9[_0x73e7c7(0x10c)]=_0x5e451d[_0x73e7c7(0x10c)],this[_0x73e7c7(0xd2)](_0x73e7c7(0x12f),{'error':_0x5bb3e9});}}async[_0xf61193(0xfa)](_0x35a156,_0x1abfe0){const _0x771a2=_0xf61193;try{const _0x15f70c=await this[_0x771a2(0xdf)][_0x771a2(0xf5)](_0x35a156)[_0x771a2(0x127)](),_0x3368a1=await this[_0x771a2(0xdf)][_0x771a2(0xef)](_0x35a156)[_0x771a2(0x113)](),_0x21a20d=_0x3368a1[0x0][_0x771a2(0x12d)];this[_0x771a2(0x116)]=!0x0,this['id']=_0x15f70c['id'],_0x771a2(0x112)in _0x15f70c?this[_0x771a2(0xd2)](_0x771a2(0x12e),_0x15f70c[_0x771a2(0x112)],!0x0):this[_0x771a2(0xd2)](_0x771a2(0x12e),'',!0x0);const _0x387bee=(await this[_0x771a2(0xe1)][_0x771a2(0xe3)]())[_0x771a2(0x101)](_0x706b8e=>_0x706b8e['id'][_0x771a2(0xfb)]()===_0x21a20d[_0x771a2(0xfb)]());return this[_0x771a2(0xc9)]=_0x387bee,this[_0x771a2(0xd2)](_0x771a2(0xe8),{'selectedModel':_0x387bee,'isDisabled':!0x0}),await this[_0x771a2(0xc4)](_0x3368a1,_0x1abfe0,_0x21a20d),this[_0x771a2(0xd9)]=void 0x0,this;}catch(_0x5f5516){const _0x4edf72=new _0x3453c9(_0x771a2(0xc7),null,{'message':_0x5f5516[_0x771a2(0x108)],'conversationId':_0x35a156});throw _0x4edf72[_0x771a2(0x10c)]=_0x5f5516[_0x771a2(0x10c)],this[_0x771a2(0xd2)](_0x771a2(0x12f),{'error':_0x4edf72}),_0x4edf72;}}async[_0xf61193(0xc4)](_0x2b822f,_0x140352,_0x39c0bc){const _0x3dcc7a=_0xf61193;let _0x4f999c;for(const _0x44a53b of _0x2b822f)if(_0x3dcc7a(0x114)===_0x44a53b[_0x3dcc7a(0xf8)]){const _0x96ba52=await this[_0x3dcc7a(0xf2)](_0x44a53b),_0x1d273a={'isReasoningEnabled':Object[_0x3dcc7a(0xfd)](_0x44a53b[_0x3dcc7a(0xf4)],_0x3dcc7a(0xd4)),'isWebSearchEnabled':Object[_0x3dcc7a(0xfd)](_0x44a53b[_0x3dcc7a(0xf4)],_0x3dcc7a(0xca))};_0x4f999c=this[_0x3dcc7a(0x109)]({'userMessage':_0x44a53b[_0x3dcc7a(0x135)],'contextItems':_0x96ba52,'capabilities':_0x1d273a,'modelId':_0x39c0bc,'quickActionData':_0x44a53b[_0x3dcc7a(0x122)]?.[_0x3dcc7a(0xe9)]}),this[_0x3dcc7a(0xd9)]=_0x4f999c,this[_0x3dcc7a(0x10d)][_0x3dcc7a(0x105)](this[_0x3dcc7a(0xd9)][_0x3dcc7a(0x12a)]);}else{if(_0x3dcc7a(0xf9)===_0x44a53b[_0x3dcc7a(0xf8)]&&_0x4f999c)for(const _0x10c397 of _0x44a53b[_0x3dcc7a(0xd1)]){const _0x5acd03=_0x3dcc7a(0xd0)===_0x10c397[_0x3dcc7a(0x11d)]?_0x3dcc7a(0x104):_0x3dcc7a(0xfc),_0x32103e=_0x4f999c[_0x3dcc7a(0xff)]()?.[_0x3dcc7a(0xc6)]!==_0x140352;_0x4f999c[_0x3dcc7a(0x100)]=_0x4f999c[_0x3dcc7a(0xc8)]({'type':_0x5acd03,'isDone':!0x0,'interactionId':_0x4f999c['id'],'areActionsDisabled':_0x32103e}),_0x4f999c[_0x3dcc7a(0x100)][_0x3dcc7a(0x124)](_0x10c397[_0x3dcc7a(0xd1)]);}}}async[_0xf61193(0xf2)](_0x1dde87){const _0x41a543=_0xf61193,_0x1a6bad=new Map();if(!_0x1dde87[_0x41a543(0xd1)])return _0x1a6bad;for(const _0x100660 of _0x1dde87[_0x41a543(0xd1)]){const _0x36c86b=await this[_0x41a543(0x10d)][_0x41a543(0xd7)](_0x100660);_0x36c86b&&_0x1a6bad[_0x41a543(0x11f)](_0x36c86b['id'],_0x36c86b);}return _0x1a6bad;}async[_0xf61193(0x10f)]({userMessage:_0x555a53,quickActionData:_0x3b2ea9}){const _0x34cbe9=_0xf61193;if(!this[_0x34cbe9(0x116)])throw new _0x3453c9(_0x34cbe9(0xee),null,{'conversation':this});if(this[_0x34cbe9(0xd9)])throw new _0x3453c9(_0x34cbe9(0x121),null,{'conversation':this});try{const _0x5702af=this[_0x34cbe9(0x10d)][_0x34cbe9(0xe2)](),_0x222535=this[_0x34cbe9(0xeb)][_0x34cbe9(0xce)](),_0x4afdcc=this[_0x34cbe9(0xc9)]['id'];this[_0x34cbe9(0xd9)]=this[_0x34cbe9(0x109)]({'userMessage':_0x555a53,'contextItems':_0x5702af,'capabilities':_0x222535,'modelId':_0x4afdcc,'quickActionData':_0x3b2ea9}),await this[_0x34cbe9(0xd9)][_0x34cbe9(0x129)](),this[_0x34cbe9(0x10d)][_0x34cbe9(0x105)](this[_0x34cbe9(0xd9)][_0x34cbe9(0x12a)]);}catch(_0x459b1a){this[_0x34cbe9(0xd2)](_0x34cbe9(0x12f),{'interactionId':this[_0x34cbe9(0xd9)]?this[_0x34cbe9(0xd9)]['id']:void 0x0,'error':_0x459b1a});}finally{this[_0x34cbe9(0xd9)]?.[_0x34cbe9(0x110)](),this[_0x34cbe9(0xd9)]=void 0x0;}}[_0xf61193(0x109)]({userMessage:_0x30f8f0,contextItems:_0x20c982,capabilities:_0xa8147b,modelId:_0x34dccc,quickActionData:_0x28735d}){const _0x132ad1=_0xf61193,_0x1b6cb2=new _0x41d256({'userMessage':_0x30f8f0,'contextItems':_0x20c982,'capabilities':_0xa8147b,'conversationId':this['id'],'connector':this[_0x132ad1(0xdf)],'editor':this[_0x132ad1(0xe4)][_0x132ad1(0xe7)]&&this[_0x132ad1(0xe4)][_0x132ad1(0xe7)](),'model':_0x34dccc,'quickActionData':_0x28735d});return _0x1b6cb2[_0x132ad1(0x128)](..._0x3e2df2)['to'](this),this[_0x132ad1(0xdb)][_0x132ad1(0x130)](_0x1b6cb2),this[_0x132ad1(0xd2)](_0x132ad1(0x115),_0x1b6cb2),_0x1b6cb2;}[_0xf61193(0xea)](_0x424a09){const _0x5a0902=_0xf61193;return this[_0x5a0902(0xdb)][_0x5a0902(0x101)](_0x4ded91=>_0x4ded91['id']===_0x424a09);}[_0xf61193(0xde)](_0x39df23){const _0x517705=_0xf61193,_0x24c2b8=this[_0x517705(0xea)](_0x39df23);_0x24c2b8&&(_0x24c2b8[_0x517705(0x120)](),this[_0x517705(0xdb)][_0x517705(0xdd)](this[_0x517705(0xdb)][_0x517705(0x125)](_0x24c2b8),0x1));}get[_0xf61193(0xd6)](){const _0x5a8ac1=_0xf61193;return this[_0x5a8ac1(0xdb)][this[_0x5a8ac1(0xdb)][_0x5a8ac1(0xf0)]-0x1];}[_0xf61193(0xe6)](_0x4e9039){const _0x3744fd=_0xf61193;this[_0x3744fd(0x10d)][_0x3744fd(0xe6)](_0x4e9039);}async[_0xf61193(0x10a)]({content:_0x4c2fff,version:_0x471df9,sessionId:_0xfce82d,selections:_0x2db3c0}){const _0x25d257=_0xf61193;await this[_0x25d257(0x10d)][_0x25d257(0xda)](_0x4c2fff,_0x471df9,_0xfce82d,_0x2db3c0);}[_0xf61193(0xd8)](){const _0x295029=_0xf61193;return this[_0x295029(0xd9)]?.[_0x295029(0xff)]()?.[_0x295029(0xd1)]||'';}[_0xf61193(0xd3)](_0x2013c4){const _0x68cb99=_0xf61193;this[_0x68cb99(0x10d)][_0x68cb99(0xd3)](_0x2013c4);}[_0xf61193(0xcc)](){const _0x23fc38=_0xf61193;this[_0x23fc38(0x10d)][_0x23fc38(0xcc)]();}[_0xf61193(0x12b)](_0x416fdd){const _0x13e7d7=_0xf61193;this[_0x13e7d7(0x10d)][_0x13e7d7(0x12b)](_0x416fdd);}[_0xf61193(0xf6)](_0x1022dd){const _0x2fe86a=_0xf61193;this[_0x2fe86a(0x10d)][_0x2fe86a(0xf6)](_0x1022dd);}[_0xf61193(0xd5)](_0x7ed598,_0x4a43bd){const _0x281d80=_0xf61193;this[_0x281d80(0x10d)][_0x281d80(0xd5)](_0x7ed598,_0x4a43bd);}[_0xf61193(0x103)](_0x35fc15,_0x3f1209,_0x9f1684){const _0xaeff41=_0xf61193;return this[_0xaeff41(0x10d)][_0xaeff41(0x103)](_0x35fc15,_0x3f1209,_0x9f1684);}[_0xf61193(0x119)](_0x3303e2){const _0x42b5b9=_0xf61193;this[_0x42b5b9(0x10d)][_0x42b5b9(0x119)](_0x3303e2);}[_0xf61193(0xf3)](){const _0x5dd75a=_0xf61193;this[_0x5dd75a(0xeb)][_0x5dd75a(0xf3)]();}[_0xf61193(0x111)](){const _0x3d5971=_0xf61193;this[_0x3d5971(0xeb)][_0x3d5971(0x111)]();}[_0xf61193(0x11e)](){const _0x4bc41b=_0xf61193;return this[_0x4bc41b(0x10d)][_0x4bc41b(0x11e)]();}[_0xf61193(0xe5)](){const _0x596896=_0xf61193;return this[_0x596896(0x10d)][_0x596896(0xe5)]();}[_0xf61193(0xc5)](){const _0x63ffbc=_0xf61193;return this[_0x63ffbc(0x10d)][_0x63ffbc(0xc5)]();}async[_0xf61193(0x126)](_0x24e5a7){const _0x5c8b1=_0xf61193;_0x24e5a7?!0x1===await this[_0x5c8b1(0xe1)][_0x5c8b1(0x11a)](_0x24e5a7)&&(_0x42a3fd(_0x5c8b1(0xdc),{'conversation':this,'model':_0x24e5a7}),_0x24e5a7=(await this[_0x5c8b1(0xe1)][_0x5c8b1(0xcf)]())[0x0]):(_0x42a3fd(_0x5c8b1(0xec),{'conversation':this}),_0x24e5a7=(await this[_0x5c8b1(0xe1)][_0x5c8b1(0xcf)]())[0x0]),_0x24e5a7['id']!==this[_0x5c8b1(0xc9)]?.['id']&&(this[_0x5c8b1(0xc9)]=_0x24e5a7,this[_0x5c8b1(0xeb)][_0x5c8b1(0xcd)](),this[_0x5c8b1(0xd2)](_0x5c8b1(0xe8),{'selectedModel':_0x24e5a7}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x205777=_0x4ae5;function _0x3a9e(){var _0xb7d563=['queryAssistant','mapContextItemsToRequestData','2959380zNuvwn','conversationId','sendRequest','current-document','quickActionData','contextItems','capabilities','433650aniTuR','get','getCapabilitiesRequestData','738594GRjSOe','2514RXaIVX','537HOKjSV','connector','16637710MjsvTe','165328WkDVrQ','getDocumentContext','model','userMessage','634QDEZLP','273kwUEWp','7880vqAhUh'];_0x3a9e=function(){return _0xb7d563;};return _0x3a9e();}function _0x4ae5(_0x384667,_0x325797){var _0x3a9ed5=_0x3a9e();return _0x4ae5=function(_0x4ae585,_0x350d67){_0x4ae585=_0x4ae585-0x178;var _0x2fc83d=_0x3a9ed5[_0x4ae585];return _0x2fc83d;},_0x4ae5(_0x384667,_0x325797);}(function(_0x281007,_0x9032df){var _0x2ec7ac=_0x4ae5,_0x264fa5=_0x281007();while(!![]){try{var _0x2cc064=-parseInt(_0x2ec7ac(0x17d))/0x1+-parseInt(_0x2ec7ac(0x189))/0x2*(-parseInt(_0x2ec7ac(0x182))/0x3)+-parseInt(_0x2ec7ac(0x18e))/0x4+parseInt(_0x2ec7ac(0x18b))/0x5*(parseInt(_0x2ec7ac(0x181))/0x6)+-parseInt(_0x2ec7ac(0x18a))/0x7*(parseInt(_0x2ec7ac(0x185))/0x8)+parseInt(_0x2ec7ac(0x180))/0x9+parseInt(_0x2ec7ac(0x184))/0xa;if(_0x2cc064===_0x9032df)break;else _0x264fa5['push'](_0x264fa5['shift']());}catch(_0x255902){_0x264fa5['push'](_0x264fa5['shift']());}}}(_0x3a9e,0x7607f));import{AICapabilities as _0xa67426}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x4be0fd}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x57ebc4}from'./aichatcontext.js';export class AIChatInteraction extends _0x4be0fd{[_0x205777(0x188)];[_0x205777(0x18f)];[_0x205777(0x17b)]=new Map();[_0x205777(0x187)];[_0x205777(0x17a)];constructor(_0x402985){var _0x481f25=_0x205777;super(_0x402985),this[_0x481f25(0x18f)]=_0x402985[_0x481f25(0x18f)],this[_0x481f25(0x17b)]=_0x402985[_0x481f25(0x17b)],this[_0x481f25(0x17c)]=_0x402985[_0x481f25(0x17c)],this[_0x481f25(0x188)]=_0x402985[_0x481f25(0x188)],this[_0x481f25(0x187)]=_0x402985[_0x481f25(0x187)],this[_0x481f25(0x17a)]=_0x402985[_0x481f25(0x17a)];}async[_0x205777(0x178)](){var _0x2a4ce6=_0x205777;return this[_0x2a4ce6(0x183)][_0x2a4ce6(0x18c)]({'message':this[_0x2a4ce6(0x188)],'conversationId':this[_0x2a4ce6(0x18f)],'parts':_0x57ebc4[_0x2a4ce6(0x18d)](this[_0x2a4ce6(0x17b)]),'capabilities':_0xa67426[_0x2a4ce6(0x17f)](this[_0x2a4ce6(0x17c)]),'model':this[_0x2a4ce6(0x187)],'quickActionData':this[_0x2a4ce6(0x17a)]});}[_0x205777(0x186)](){var _0x188ad3=_0x205777;return this[_0x188ad3(0x17b)][_0x188ad3(0x17e)](_0x188ad3(0x179));}}
23
+ function _0x2f71(_0x3e7852,_0x39198c){var _0x4df20d=_0x4df2();return _0x2f71=function(_0x2f716c,_0x2a4ad7){_0x2f716c=_0x2f716c-0x1db;var _0x5e3279=_0x4df20d[_0x2f716c];return _0x5e3279;},_0x2f71(_0x3e7852,_0x39198c);}function _0x4df2(){var _0x1d659c=['6ndSoUH','contextItems','capabilities','1976592TEqFKN','10480MPkwde','mapContextItemsToRequestData','625696fgKhVL','userMessage','8722240VgRKNs','queryAssistant','get','25415357OoFecE','conversationId','getDocumentContext','12WCASMb','sendRequest','441428iQgACW','current-document','1243932zzxxMJ','5NgpTJF','2871wUwtrQ','connector','quickActionData','model','14bROujp','getCapabilitiesRequestData'];_0x4df2=function(){return _0x1d659c;};return _0x4df2();}var _0x3f2250=_0x2f71;(function(_0x4f8bdb,_0x770bef){var _0x253d97=_0x2f71,_0x2a2d44=_0x4f8bdb();while(!![]){try{var _0x353991=parseInt(_0x253d97(0x1e2))/0x1+parseInt(_0x253d97(0x1ec))/0x2*(parseInt(_0x253d97(0x1e4))/0x3)+parseInt(_0x253d97(0x1f2))/0x4*(-parseInt(_0x253d97(0x1e5))/0x5)+-parseInt(_0x253d97(0x1ef))/0x6*(-parseInt(_0x253d97(0x1ea))/0x7)+parseInt(_0x253d97(0x1f4))/0x8+parseInt(_0x253d97(0x1e6))/0x9*(-parseInt(_0x253d97(0x1f0))/0xa)+parseInt(_0x253d97(0x1dd))/0xb*(-parseInt(_0x253d97(0x1e0))/0xc);if(_0x353991===_0x770bef)break;else _0x2a2d44['push'](_0x2a2d44['shift']());}catch(_0x363d22){_0x2a2d44['push'](_0x2a2d44['shift']());}}}(_0x4df2,0x9a9c1));import{AICapabilities as _0x262fae}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x34dcac}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4d8b77}from'./aichatcontext.js';export class AIChatInteraction extends _0x34dcac{[_0x3f2250(0x1f3)];[_0x3f2250(0x1de)];[_0x3f2250(0x1ed)]=new Map();[_0x3f2250(0x1e9)];[_0x3f2250(0x1e8)];constructor(_0x314197){var _0x35ae52=_0x3f2250;super(_0x314197),this[_0x35ae52(0x1de)]=_0x314197[_0x35ae52(0x1de)],this[_0x35ae52(0x1ed)]=_0x314197[_0x35ae52(0x1ed)],this[_0x35ae52(0x1ee)]=_0x314197[_0x35ae52(0x1ee)],this[_0x35ae52(0x1f3)]=_0x314197[_0x35ae52(0x1f3)],this[_0x35ae52(0x1e9)]=_0x314197[_0x35ae52(0x1e9)],this[_0x35ae52(0x1e8)]=_0x314197[_0x35ae52(0x1e8)];}async[_0x3f2250(0x1e1)](){var _0x195602=_0x3f2250;return this[_0x195602(0x1e7)][_0x195602(0x1db)]({'message':this[_0x195602(0x1f3)],'conversationId':this[_0x195602(0x1de)],'parts':_0x4d8b77[_0x195602(0x1f1)](this[_0x195602(0x1ed)]),'capabilities':_0x262fae[_0x195602(0x1eb)](this[_0x195602(0x1ee)]),'model':this[_0x195602(0x1e9)],'quickActionData':this[_0x195602(0x1e8)]});}[_0x3f2250(0x1df)](){var _0x5568dd=_0x3f2250;return this[_0x5568dd(0x1ed)][_0x5568dd(0x1dc)](_0x5568dd(0x1e3));}}