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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-editor.css +10 -1
  3. package/dist/index.css +10 -1
  4. package/dist/index.js +4 -4
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +15 -15
  152. package/src/aiactions/aiactions.js +1 -1
  153. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  154. package/src/aiactions/model/aiactionsreply.js +1 -1
  155. package/src/aiassistant/adapters/aiadapter.js +1 -1
  156. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  157. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  158. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  159. package/src/aiassistant/aiassistant.js +1 -1
  160. package/src/aiassistant/aiassistantediting.js +1 -1
  161. package/src/aiassistant/aiassistantui.js +1 -1
  162. package/src/aiassistant/legacyerrors.js +1 -1
  163. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  164. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  165. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformview.js +1 -1
  169. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  171. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  172. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  173. package/src/aiassistant/utils/common-translations.js +1 -1
  174. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  175. package/src/aiballoon/aiballoon.js +1 -1
  176. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  177. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatcontroller.js +1 -1
  181. package/src/aichat/aichatui.js +1 -1
  182. package/src/aichat/model/aichatcontext.js +1 -1
  183. package/src/aichat/model/aichatconversation.js +1 -1
  184. package/src/aichat/model/aichatinteraction.js +1 -1
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichat/utils/scrollmanager.js +1 -1
  214. package/src/aichathistory/aichathistory.js +1 -1
  215. package/src/aichathistory/aichathistorycontroller.js +1 -1
  216. package/src/aichathistory/aichathistoryui.js +1 -1
  217. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  218. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  219. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aiquickactions/aiquickactions.js +1 -1
  250. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  251. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  252. package/src/aiquickactions/aiquickactionsui.js +1 -1
  253. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  256. package/src/aiquickactions/utils/common-translations.js +1 -1
  257. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  258. package/src/aireviewmode/aireviewmode.js +1 -1
  259. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  260. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  261. package/src/aireviewmode/aireviewmodeui.js +1 -1
  262. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  264. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  268. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  280. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/index.js +1 -1
  289. package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x251163=_0x5718;(function(_0x6f510e,_0x580362){const _0x512d25=_0x5718,_0x1b2647=_0x6f510e();while(!![]){try{const _0x3a5adc=parseInt(_0x512d25(0x189))/0x1*(-parseInt(_0x512d25(0x17a))/0x2)+-parseInt(_0x512d25(0x191))/0x3*(parseInt(_0x512d25(0x178))/0x4)+-parseInt(_0x512d25(0x170))/0x5*(-parseInt(_0x512d25(0x16e))/0x6)+-parseInt(_0x512d25(0x18d))/0x7+parseInt(_0x512d25(0x198))/0x8+-parseInt(_0x512d25(0x180))/0x9*(-parseInt(_0x512d25(0x18f))/0xa)+parseInt(_0x512d25(0x18e))/0xb;if(_0x3a5adc===_0x580362)break;else _0x1b2647['push'](_0x1b2647['shift']());}catch(_0x5d6dab){_0x1b2647['push'](_0x1b2647['shift']());}}}(_0x47fc,0xce69a));import{Command as _0x3de4c0}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x2420ce}from'../aiassistantui.js';function _0x5718(_0x44b0ad,_0x14c84f){const _0x47fcac=_0x47fc();return _0x5718=function(_0x57182b,_0x9a133a){_0x57182b=_0x57182b-0x16c;let _0x46df34=_0x47fcac[_0x57182b];return _0x46df34;},_0x5718(_0x44b0ad,_0x14c84f);}function _0x47fc(){const _0x3f5fbd=['_commandDefinitions','getFirstRange','get','2601456pTlrik','getSelectedBlocks','model','934158CllAIo','getItems','45hwiJSv','change:_hasContext','element','document','requiresContent','add','enabledCommandsIds','editor','12QUwUqg','refresh','4996KiaVpv','selection','showUI','execute','plugins','values','9hRtNyc','isEnabled','includes','length','custom','hasContent','set','isCollapsed','ai.assistant.disabledElements','542rMXReX','change:isEnabled','from','name','1554994rEpCmt','13114321ZMHCCh','7268010YegDQK','isEmpty','1223907DBjPeE','getRanges','config','_hasContext'];_0x47fc=function(){return _0x3f5fbd;};return _0x47fc();}export class ShowAIAssistantCommand extends _0x3de4c0{[_0x251163(0x195)];constructor(_0x1c511c,_0x32dba8){const _0xcb2cd5=_0x251163;super(_0x1c511c),this[_0xcb2cd5(0x195)]=_0x32dba8,this[_0xcb2cd5(0x186)](_0xcb2cd5(0x176),[]),this['on'](_0xcb2cd5(0x171),(_0x580af2,_0xa3ffe7,_0x51d5e7)=>{const _0x10c1b7=_0xcb2cd5;this[_0x10c1b7(0x181)]&&(this[_0x10c1b7(0x176)]=ns(this[_0x10c1b7(0x195)],_0x51d5e7));}),this[_0xcb2cd5(0x186)](_0xcb2cd5(0x194),!0x1),this['on'](_0xcb2cd5(0x18a),(_0x3c31ec,_0x1ee5a8,_0x4bd0af)=>{const _0x189aab=_0xcb2cd5;this[_0x189aab(0x176)]=_0x4bd0af?ns(this[_0x189aab(0x195)],this[_0x189aab(0x194)]):[];});}[_0x251163(0x179)](){const _0x57a67f=_0x251163,_0x4f0086=this[_0x57a67f(0x177)][_0x57a67f(0x16d)];this[_0x57a67f(0x194)]=function(_0x4f1756){const _0x5bad0f=_0x57a67f,_0x1dd200=_0x4f1756[_0x5bad0f(0x173)][_0x5bad0f(0x17b)];return _0x1dd200[_0x5bad0f(0x187)]?0x0!==[..._0x1dd200[_0x5bad0f(0x16c)]()][_0x5bad0f(0x183)]&&![..._0x1dd200[_0x5bad0f(0x16c)]()][0x0][_0x5bad0f(0x190)]:!!_0x4f1756[_0x5bad0f(0x185)](_0x1dd200[_0x5bad0f(0x196)]());}(_0x4f0086);const _0x531c22=_0x4f0086[_0x57a67f(0x173)][_0x57a67f(0x17b)],_0x4d15bc=this[_0x57a67f(0x177)][_0x57a67f(0x193)][_0x57a67f(0x197)](_0x57a67f(0x188));for(const _0x5bdbc9 of _0x531c22[_0x57a67f(0x192)]())for(const _0x2f9779 of _0x5bdbc9[_0x57a67f(0x16f)]())if(_0x2f9779['is'](_0x57a67f(0x172))&&_0x4d15bc[_0x57a67f(0x182)](_0x2f9779[_0x57a67f(0x18c)]))return void(this[_0x57a67f(0x181)]=!0x1);this[_0x57a67f(0x181)]=!0x0;}[_0x251163(0x17d)](_0x156b73='',_0x248fee='',_0x188f36=_0x251163(0x184)){const _0x5ac1f6=_0x251163;this[_0x5ac1f6(0x177)][_0x5ac1f6(0x17e)][_0x5ac1f6(0x197)](_0x2420ce)[_0x5ac1f6(0x17c)](_0x156b73,_0x248fee,_0x188f36);}}function ns(_0x464646,_0x321c2c){const _0x3b6d2a=_0x251163,_0x4dfb24=new Set();for(const _0x5cc230 of _0x464646[_0x3b6d2a(0x17f)]())(_0x321c2c||!0x1===_0x5cc230[_0x3b6d2a(0x174)])&&_0x4dfb24[_0x3b6d2a(0x175)](_0x5cc230['id']);return Array[_0x3b6d2a(0x18b)](_0x4dfb24);}
23
+ const _0xa0f08=_0x43ec;(function(_0x276ff0,_0x4f6677){const _0x531924=_0x43ec,_0x2a441b=_0x276ff0();while(!![]){try{const _0x501d64=-parseInt(_0x531924(0x185))/0x1+parseInt(_0x531924(0x15b))/0x2+-parseInt(_0x531924(0x163))/0x3*(-parseInt(_0x531924(0x16b))/0x4)+-parseInt(_0x531924(0x160))/0x5*(parseInt(_0x531924(0x173))/0x6)+parseInt(_0x531924(0x170))/0x7*(parseInt(_0x531924(0x15e))/0x8)+parseInt(_0x531924(0x168))/0x9*(-parseInt(_0x531924(0x177))/0xa)+parseInt(_0x531924(0x161))/0xb;if(_0x501d64===_0x4f6677)break;else _0x2a441b['push'](_0x2a441b['shift']());}catch(_0x2c926f){_0x2a441b['push'](_0x2a441b['shift']());}}}(_0x2d2f,0xaf7d7));function _0x2d2f(){const _0x227087=['model','_commandDefinitions','744265kbTiKr','getRanges','isEnabled','1871616zwNAxA','plugins','change:_hasContext','928hsGFbb','includes','2054275aNOCwp','11267773ehHVCC','getSelectedBlocks','164922wUKWap','name','refresh','getFirstRange','requiresContent','72UICJzP','length','isEmpty','20KYTamt','ai.assistant.disabledElements','execute','showUI','get','76160bAYhyp','hasContent','isCollapsed','18phwQVL','values','editor','document','1001830YpQCgn','change:isEnabled','custom','element','config','set','getItems','from','selection','_hasContext','add','enabledCommandsIds'];_0x2d2f=function(){return _0x227087;};return _0x2d2f();}import{Command as _0x19fae8}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x1b0586}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x19fae8{[_0xa0f08(0x184)];constructor(_0x27b8e7,_0x2adf82){const _0x4e2822=_0xa0f08;super(_0x27b8e7),this[_0x4e2822(0x184)]=_0x2adf82,this[_0x4e2822(0x17c)](_0x4e2822(0x182),[]),this['on'](_0x4e2822(0x15d),(_0xac87d7,_0x5d4f2a,_0x196019)=>{const _0x3d4413=_0x4e2822;this[_0x3d4413(0x15a)]&&(this[_0x3d4413(0x182)]=ns(this[_0x3d4413(0x184)],_0x196019));}),this[_0x4e2822(0x17c)](_0x4e2822(0x180),!0x1),this['on'](_0x4e2822(0x178),(_0x1414f7,_0x108c2b,_0x4a2389)=>{const _0x4871e3=_0x4e2822;this[_0x4871e3(0x182)]=_0x4a2389?ns(this[_0x4871e3(0x184)],this[_0x4871e3(0x180)]):[];});}[_0xa0f08(0x165)](){const _0x33f397=_0xa0f08,_0x33691b=this[_0x33f397(0x175)][_0x33f397(0x183)];this[_0x33f397(0x180)]=function(_0x44b4e4){const _0x429c62=_0x33f397,_0x209fc1=_0x44b4e4[_0x429c62(0x176)][_0x429c62(0x17f)];return _0x209fc1[_0x429c62(0x172)]?0x0!==[..._0x209fc1[_0x429c62(0x162)]()][_0x429c62(0x169)]&&![..._0x209fc1[_0x429c62(0x162)]()][0x0][_0x429c62(0x16a)]:!!_0x44b4e4[_0x429c62(0x171)](_0x209fc1[_0x429c62(0x166)]());}(_0x33691b);const _0x2be29a=_0x33691b[_0x33f397(0x176)][_0x33f397(0x17f)],_0x3f57bd=this[_0x33f397(0x175)][_0x33f397(0x17b)][_0x33f397(0x16f)](_0x33f397(0x16c));for(const _0x52c934 of _0x2be29a[_0x33f397(0x186)]())for(const _0x4afea4 of _0x52c934[_0x33f397(0x17d)]())if(_0x4afea4['is'](_0x33f397(0x17a))&&_0x3f57bd[_0x33f397(0x15f)](_0x4afea4[_0x33f397(0x164)]))return void(this[_0x33f397(0x15a)]=!0x1);this[_0x33f397(0x15a)]=!0x0;}[_0xa0f08(0x16d)](_0x2b68d5='',_0x2f6793='',_0x8a603a=_0xa0f08(0x179)){const _0x3fa212=_0xa0f08;this[_0x3fa212(0x175)][_0x3fa212(0x15c)][_0x3fa212(0x16f)](_0x1b0586)[_0x3fa212(0x16e)](_0x2b68d5,_0x2f6793,_0x8a603a);}}function _0x43ec(_0x4bd7da,_0x4a628d){const _0x2d2f82=_0x2d2f();return _0x43ec=function(_0x43ec97,_0x380ea7){_0x43ec97=_0x43ec97-0x15a;let _0x487f86=_0x2d2f82[_0x43ec97];return _0x487f86;},_0x43ec(_0x4bd7da,_0x4a628d);}function ns(_0x5d9ff4,_0x454124){const _0x5cb4df=_0xa0f08,_0x192b3c=new Set();for(const _0x4ea54b of _0x5d9ff4[_0x5cb4df(0x174)]())(_0x454124||!0x1===_0x4ea54b[_0x5cb4df(0x167)])&&_0x192b3c[_0x5cb4df(0x181)](_0x4ea54b['id']);return Array[_0x5cb4df(0x17e)](_0x192b3c);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x36ca69,_0xab5637,_0x59922e){const t=_0x36ca69['t'];switch(_0xab5637){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x59922e);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x59922e);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x59922e);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0xab5637;}}
23
+ export function getTranslation(_0x518f1a,_0x2521e5,_0x384a3d){const t=_0x518f1a['t'];switch(_0x2521e5){case'Edit\x20or\x20review':return t('Edit\x20or\x20review');case'Improve\x20writing':return t('Improve\x20writing');case'Make\x20shorter':return t('Make\x20shorter');case'Make\x20longer':return t('Make\x20longer');case'Simplify\x20language':return t('Simplify\x20language');case'Generate\x20from\x20selection':return t('Generate\x20from\x20selection');case'Summarize':return t('Summarize');case'Continue':return t('Continue');case'Change\x20tone':return t('Change\x20tone');case'Professional':return t('Professional');case'Casual':return t('Casual');case'Direct':return t('Direct');case'Confident':return t('Confident');case'Friendly':return t('Friendly');case'Change\x20style':return t('Change\x20style');case'Business':return t('Business');case'Legal':return t('Legal');case'Journalism':return t('Journalism');case'Poetic':return t('Poetic');case'Translate':return t('Translate');case'English':return t('English');case'Spanish':return t('Spanish');case'German':return t('German');case'Portuguese':return t('Portuguese');case'French':return t('French');case'Simplified\x20Chinese':return t('Simplified\x20Chinese');case'Hindi':return t('Hindi');case'Arabic':return t('Arabic');case'AI\x20Assistant':return t('AI\x20Assistant');case'AI\x20Commands':return t('AI\x20Commands');case'Ask\x20AI\x20to\x20edit\x20or\x20generate':return t('Ask\x20AI\x20to\x20edit\x20or\x20generate');case'Ask\x20AI\x20to\x20improve\x20generated\x20text':return t('Ask\x20AI\x20to\x20improve\x20generated\x20text');case'Copy':return t('Copy');case'Submit':return t('Submit');case'Insert\x20below':return t('Insert\x20below');case'Try\x20again':return t('Try\x20again');case'Stop':return t('Stop');case'AI\x20is\x20writing...':return t('AI\x20is\x20writing...');case'AI\x20is\x20writing':return t('AI\x20is\x20writing');case'Generated\x20content:\x20%0':return t('Generated\x20content:\x20%0',_0x384a3d);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x384a3d);case'History':return t('History');case'Empty\x20history':return t('Empty\x20history');case'Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.':return t('Ask\x20AI\x20and\x20your\x20prompts\x20will\x20be\x20listed\x20here\x20for\x20you\x20to\x20use\x20later.');case'Prompt\x20history':return t('Prompt\x20history');case'Clear':return t('Clear');case'AI_REPLACE_CONTENT':return t({'id':'AI_REPLACE_CONTENT','string':'Replace'});case'AI_INSERT_CONTENT':return t({'id':'AI_INSERT_CONTENT','string':'Insert'});case'AI_ERROR_GET_HEADERS':return t({'id':'AI_ERROR_GET_HEADERS','string':'Preparing\x20request\x20headers\x20failed'});case'AI_ERROR_GET_PARAMETERS':return t({'id':'AI_ERROR_GET_PARAMETERS','string':'Preparing\x20request\x20parameters\x20failed'});case'AI_ERROR_UNSUPPORTED_MODEL':return t({'id':'AI_ERROR_UNSUPPORTED_MODEL','string':'The\x20requested\x20AI\x20model\x20(\x22%0\x22)\x20is\x20not\x20supported'},_0x384a3d);case'AI_ERROR_CONTEXT_LENGTH':return t({'id':'AI_ERROR_CONTEXT_LENGTH','string':'Selected\x20content\x20is\x20too\x20long'});case'AI_ERROR_MODERATION':return t({'id':'AI_ERROR_MODERATION','string':'Requested\x20query\x20does\x20not\x20pass\x20moderation\x20rules'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x2521e5;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x1a6854,_0x5c8ed1){const _0x496106=(0x0,_0x5c8ed1['t'])('Other');return _0x1a6854['length']?'groupId'in _0x1a6854[0x0]?_0x1a6854:[{'groupId':'_ungrouppedCommands','groupLabel':_0x496106,'order':0x1/0x0,'commands':_0x1a6854}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x496106,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0xc5d790,_0x5653f7){const _0x3e8b3c=(0x0,_0x5653f7['t'])('Other');return _0xc5d790['length']?'groupId'in _0xc5d790[0x0]?_0xc5d790:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3e8b3c,'order':0x1/0x0,'commands':_0xc5d790}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x3e8b3c,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41ba80=_0x17b9;(function(_0x4ee95c,_0x446acf){const _0x10b9d0=_0x17b9,_0x5ed7f8=_0x4ee95c();while(!![]){try{const _0x16f60d=-parseInt(_0x10b9d0(0x90))/0x1*(parseInt(_0x10b9d0(0xb0))/0x2)+parseInt(_0x10b9d0(0x95))/0x3*(-parseInt(_0x10b9d0(0x93))/0x4)+parseInt(_0x10b9d0(0x8f))/0x5*(parseInt(_0x10b9d0(0xc4))/0x6)+-parseInt(_0x10b9d0(0xab))/0x7*(-parseInt(_0x10b9d0(0x98))/0x8)+parseInt(_0x10b9d0(0xa3))/0x9*(-parseInt(_0x10b9d0(0xa2))/0xa)+-parseInt(_0x10b9d0(0xb2))/0xb+parseInt(_0x10b9d0(0x8d))/0xc;if(_0x16f60d===_0x446acf)break;else _0x5ed7f8['push'](_0x5ed7f8['shift']());}catch(_0x419561){_0x5ed7f8['push'](_0x5ed7f8['shift']());}}}(_0xf8bd,0xa1cbc));import{ContextPlugin as _0x1d5139}from'ckeditor5/src/core.js';import{AIConnector as _0x207f0e}from'../aicore/aiconnector.js';import{AIEditing as _0x148415}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x24e667,AIBalloonView as _0xeed289}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x8bfb1d}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x4a3fb5}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x24e667,_0x41ba80(0xa7)];export class AIBalloon extends _0x1d5139{static get[_0x41ba80(0x8c)](){return[_0x207f0e,_0x148415];}static get[_0x41ba80(0xb4)](){const _0xb2c915=_0x41ba80;return _0xb2c915(0xb5);}static get[_0x41ba80(0xa6)](){return!0x0;}static get[_0x41ba80(0xbd)](){return!0x0;}[_0x41ba80(0x97)]=!0x1;[_0x41ba80(0xc5)];[_0x41ba80(0xb1)](_0x37bafa){const _0x43d9d6=_0x41ba80,_0x23a979=_0x4a3fb5(this[_0x43d9d6(0xad)]);this[_0x43d9d6(0xc5)]=_0x37bafa,this[_0x43d9d6(0xbb)]=new _0xeed289(_0x23a979[_0x43d9d6(0xa1)],_0x37bafa),this[_0x43d9d6(0xbb)][_0x43d9d6(0x9e)](..._0x24e667)['to'](this),this[_0x43d9d6(0xbf)](_0x37bafa);}[_0x41ba80(0xaf)](){const _0x486a0e=_0x41ba80;_0x4a3fb5(this[_0x486a0e(0xad)])[_0x486a0e(0x96)][_0x486a0e(0xb7)](_0x486a0e(0xc2))[_0x486a0e(0xaa)]();}[_0x41ba80(0x91)](_0x27b436,_0x46fce3){const _0x491e75=_0x41ba80;this[_0x491e75(0xad)][_0x491e75(0x96)][_0x491e75(0xb7)](_0x148415)[_0x491e75(0xb6)](_0x27b436,_0x491e75(0xa9)+_0x46fce3,!0x0,!0x0);}[_0x41ba80(0xbf)](_0x38511e){const _0x4efd91=_0x41ba80,_0x529c88=_0x4a3fb5(this[_0x4efd91(0xad)]);this[_0x4efd91(0x91)](_0x38511e[_0x4efd91(0xbc)],_0x38511e[_0x4efd91(0xb3)]),_0x529c88[_0x4efd91(0x96)][_0x4efd91(0xb7)](_0x4efd91(0xc2))[_0x4efd91(0xba)]({'title':_0x38511e[_0x4efd91(0x9c)],'icon':_0x38511e[_0x4efd91(0xa0)],'hasCloseButton':!0x0,'id':_0x4efd91(0x9b),'position':this[_0x4efd91(0xc9)][_0x4efd91(0xbe)](this),'className':_0x4efd91(0x92)+(_0x38511e[_0x4efd91(0x9f)]?_0x4efd91(0xae):''),'content':this[_0x4efd91(0xbb)],'onShow':_0x43cebb=>{const _0x37baad=_0x4efd91;_0x38511e[_0x37baad(0x9f)]&&this[_0x37baad(0xbb)][_0x37baad(0xa8)](_0x43cebb),this[_0x37baad(0x97)]=!0x0;},'onHide':()=>{const _0x5300b4=_0x4efd91;this[_0x5300b4(0xad)][_0x5300b4(0x96)][_0x5300b4(0xb7)](_0x5300b4(0x8b))[_0x5300b4(0x8e)](_0x5300b4(0xa9)+_0x38511e[_0x5300b4(0xb3)]),this[_0x5300b4(0xca)](_0x5300b4(0xa7)),this[_0x5300b4(0x97)]=!0x1;}});}[_0x41ba80(0xc9)](_0x39a63e,_0x23fb46){const _0x193054=_0x41ba80,_0x18c74e=_0x4a3fb5(this[_0x193054(0xad)]);if(!_0x23fb46)return{'left':0x0,'top':0x0};const _0x4ddef1=_0x8bfb1d(_0x18c74e[_0x193054(0xc6)],[..._0x18c74e[_0x193054(0xb9)][_0x193054(0xc1)][_0x193054(0x99)](_0x193054(0xc3)),..._0x18c74e[_0x193054(0xb9)][_0x193054(0xc1)][_0x193054(0x99)](_0x193054(0xc7))]);if(!_0x4ddef1||0x0===_0x4ddef1[_0x193054(0x9d)])return{'left':Math[_0x193054(0xac)](_0x23fb46[_0x193054(0xc0)]+_0x23fb46[_0x193054(0xc8)]/0x2-_0x39a63e[_0x193054(0xc8)]/0x2),'top':Math[_0x193054(0xac)](_0x23fb46[_0x193054(0x94)]+_0x23fb46[_0x193054(0xb8)]/0x2-_0x39a63e[_0x193054(0xb8)]/0x2)};const _0x39b542=Math[_0x193054(0xac)](_0x23fb46[_0x193054(0xc0)]+_0x23fb46[_0x193054(0xc8)]/0x2-_0x39a63e[_0x193054(0xc8)]/0x2),_0xddfe9e=_0x4ddef1[0x0][_0x193054(0x9a)](),_0x3c2657=_0x4ddef1[_0x4ddef1[_0x193054(0x9d)]-0x1][_0x193054(0x9a)](),_0x2c8dbe=_0x39a63e[_0x193054(0xb8)],_0x269eec=this[_0x193054(0xc5)][_0x193054(0x9f)]?0x8:0x0;return{'left':_0x39b542,'top':this[_0x193054(0xa5)](_0xddfe9e,_0x3c2657,_0x2c8dbe,_0x269eec)};}[_0x41ba80(0xa5)](_0x151ade,_0x39f69a,_0x505d9b,_0x3346cc=0x0){const _0x277f02=_0x41ba80,_0x15d38a=_0x39f69a[_0x277f02(0x94)]+_0x39f69a[_0x277f02(0xb8)],_0x4dc32b=_0x151ade[_0x277f02(0x94)]-_0x505d9b-_0x3346cc,_0x5ade2d=window[_0x277f02(0xa4)]-_0x15d38a-0xa,_0x1705e4=_0x151ade[_0x277f02(0x94)]-_0x3346cc-0xa;let _0x5684e7;if(_0x5ade2d>=_0x505d9b)_0x5684e7=_0x15d38a+0xa;else{if(_0x1705e4>=_0x505d9b)_0x5684e7=_0x4dc32b-0xa;else _0x5684e7=_0x151ade[_0x277f02(0x94)]+(_0x39f69a[_0x277f02(0x94)]+_0x39f69a[_0x277f02(0xb8)])/0x2-(_0x505d9b+_0x3346cc)/0x2;}return _0x5684e7;}}function _0x17b9(_0x2cb844,_0x226b8a){const _0xf8bde4=_0xf8bd();return _0x17b9=function(_0x17b942,_0x5b05c8){_0x17b942=_0x17b942-0x8b;let _0x2615ca=_0xf8bde4[_0x17b942];return _0x2615ca;},_0x17b9(_0x2cb844,_0x226b8a);}function _0xf8bd(){const _0x4778cd=['setupRotator','ai-balloon-','hide','154aokTMv','round','context','\x20ai-balloon-rotator','close','34dZuBed','open','14255626LTZLvd','index','pluginName','AIBalloon','showFakeVisualSelection','get','height','model','show','balloonView','ranges','isPremiumPlugin','bind','_showDialog','left','markers','Dialog','ai-selection','606wRVEgm','_config','editing','ai-balloon-selection','width','_calculateDialogPosition','fire','AIEditing','requires','42962112DbeKPe','hideFakeVisualSelection','47165rxBhLb','74339YOLRuj','_setupVisualSelection','ai-balloon','15452YUHxEd','top','597JpHfiS','plugins','isOpen','274912JtdTtB','getMarkersGroup','getBoundingClientRect','aiBalloon','title','length','delegate','showRotator','icon','locale','10AthPKX','11679615KExgjH','innerHeight','_calculateOptimalTopPosition','isOfficialPlugin','dialogClosed'];_0xf8bd=function(){return _0x4778cd;};return _0xf8bd();}
23
+ const _0x1bd1f4=_0x38e0;(function(_0x279fe1,_0x5e6cb0){const _0x543fa2=_0x38e0,_0x55cb8e=_0x279fe1();while(!![]){try{const _0x5ee4a3=-parseInt(_0x543fa2(0xde))/0x1+-parseInt(_0x543fa2(0xbd))/0x2+parseInt(_0x543fa2(0xc2))/0x3*(parseInt(_0x543fa2(0xe6))/0x4)+-parseInt(_0x543fa2(0xe3))/0x5+-parseInt(_0x543fa2(0xd7))/0x6*(-parseInt(_0x543fa2(0xd0))/0x7)+parseInt(_0x543fa2(0xec))/0x8*(-parseInt(_0x543fa2(0xba))/0x9)+parseInt(_0x543fa2(0xb4))/0xa*(parseInt(_0x543fa2(0xbe))/0xb);if(_0x5ee4a3===_0x5e6cb0)break;else _0x55cb8e['push'](_0x55cb8e['shift']());}catch(_0x49e881){_0x55cb8e['push'](_0x55cb8e['shift']());}}}(_0xfa9b,0x6952c));import{ContextPlugin as _0x30b2bf}from'ckeditor5/src/core.js';function _0xfa9b(){const _0x1f8c4e=['index','showRotator','innerHeight','markers','AIBalloon','572155GwHFiS','_showDialog','title','ai-selection','ai-balloon-selection','1622975FmncXj','_calculateDialogPosition','isOpen','157268KRHBLe','showFakeVisualSelection','hideFakeVisualSelection','height','_setupVisualSelection','ranges','2543368PEvRqD','getBoundingClientRect','AIEditing','fire','bind','get','locale','22878550CFTLJv','round','getMarkersGroup','left','plugins','_calculateOptimalTopPosition','18FoRVYH','requires','Dialog','1520686ITcGYC','11HqaZsY','show','editing','dialogClosed','21oBmeBQ','ai-balloon','length','setupRotator','isOfficialPlugin','width','open','close','balloonView','top','ai-balloon-','\x20ai-balloon-rotator','_config','context','28945RRqNNB','model','icon','isPremiumPlugin','hide','delegate','pluginName','234DhkTIv','aiBalloon'];_0xfa9b=function(){return _0x1f8c4e;};return _0xfa9b();}function _0x38e0(_0x477d1b,_0x4d9320){const _0xfa9b5b=_0xfa9b();return _0x38e0=function(_0x38e0a6,_0x172da9){_0x38e0a6=_0x38e0a6-0xb0;let _0x1a1d79=_0xfa9b5b[_0x38e0a6];return _0x1a1d79;},_0x38e0(_0x477d1b,_0x4d9320);}import{AIConnector as _0x4b66e7}from'../aicore/aiconnector.js';import{AIEditing as _0xb247ae}from'../aicore/aiediting.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x364720,AIBalloonView as _0x13c8db}from'./ui/aiballoonview.js';import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x3816f3}from'@ckeditor/ckeditor5-collaboration-core';import{getEditorFromContext as _0x1073b8}from'../aicore/utils/geteditorfromcontext.js';export const AI_BALLOON_EVENT_NAMES=[..._0x364720,_0x1bd1f4(0xc1)];export class AIBalloon extends _0x30b2bf{static get[_0x1bd1f4(0xbb)](){return[_0x4b66e7,_0xb247ae];}static get[_0x1bd1f4(0xd6)](){const _0x1e6014=_0x1bd1f4;return _0x1e6014(0xdd);}static get[_0x1bd1f4(0xc6)](){return!0x0;}static get[_0x1bd1f4(0xd3)](){return!0x0;}[_0x1bd1f4(0xe5)]=!0x1;[_0x1bd1f4(0xce)];[_0x1bd1f4(0xc8)](_0x2860bf){const _0x387600=_0x1bd1f4,_0x12ac44=_0x1073b8(this[_0x387600(0xcf)]);this[_0x387600(0xce)]=_0x2860bf,this[_0x387600(0xca)]=new _0x13c8db(_0x12ac44[_0x387600(0xb3)],_0x2860bf),this[_0x387600(0xca)][_0x387600(0xd5)](..._0x364720)['to'](this),this[_0x387600(0xdf)](_0x2860bf);}[_0x1bd1f4(0xc9)](){const _0x242dee=_0x1bd1f4;_0x1073b8(this[_0x242dee(0xcf)])[_0x242dee(0xb8)][_0x242dee(0xb2)](_0x242dee(0xbc))[_0x242dee(0xd4)]();}[_0x1bd1f4(0xea)](_0x445087,_0x5c15f4){const _0x4604a2=_0x1bd1f4;this[_0x4604a2(0xcf)][_0x4604a2(0xb8)][_0x4604a2(0xb2)](_0xb247ae)[_0x4604a2(0xe7)](_0x445087,_0x4604a2(0xcc)+_0x5c15f4,!0x0,!0x0);}[_0x1bd1f4(0xdf)](_0xdd5fe1){const _0x703562=_0x1bd1f4,_0x23e771=_0x1073b8(this[_0x703562(0xcf)]);this[_0x703562(0xea)](_0xdd5fe1[_0x703562(0xeb)],_0xdd5fe1[_0x703562(0xd9)]),_0x23e771[_0x703562(0xb8)][_0x703562(0xb2)](_0x703562(0xbc))[_0x703562(0xbf)]({'title':_0xdd5fe1[_0x703562(0xe0)],'icon':_0xdd5fe1[_0x703562(0xd2)],'hasCloseButton':!0x0,'id':_0x703562(0xd8),'position':this[_0x703562(0xe4)][_0x703562(0xb1)](this),'className':_0x703562(0xc3)+(_0xdd5fe1[_0x703562(0xda)]?_0x703562(0xcd):''),'content':this[_0x703562(0xca)],'onShow':_0x55548f=>{const _0x4ae34e=_0x703562;_0xdd5fe1[_0x4ae34e(0xda)]&&this[_0x4ae34e(0xca)][_0x4ae34e(0xc5)](_0x55548f),this[_0x4ae34e(0xe5)]=!0x0;},'onHide':()=>{const _0x5d67b4=_0x703562;this[_0x5d67b4(0xcf)][_0x5d67b4(0xb8)][_0x5d67b4(0xb2)](_0x5d67b4(0xee))[_0x5d67b4(0xe8)](_0x5d67b4(0xcc)+_0xdd5fe1[_0x5d67b4(0xd9)]),this[_0x5d67b4(0xb0)](_0x5d67b4(0xc1)),this[_0x5d67b4(0xe5)]=!0x1;}});}[_0x1bd1f4(0xe4)](_0x4cc11c,_0x5964fb){const _0xee4f5c=_0x1bd1f4,_0xd00140=_0x1073b8(this[_0xee4f5c(0xcf)]);if(!_0x5964fb)return null;const _0x2d125e=_0x3816f3(_0xd00140[_0xee4f5c(0xc0)],[..._0xd00140[_0xee4f5c(0xd1)][_0xee4f5c(0xdc)][_0xee4f5c(0xb6)](_0xee4f5c(0xe1)),..._0xd00140[_0xee4f5c(0xd1)][_0xee4f5c(0xdc)][_0xee4f5c(0xb6)](_0xee4f5c(0xe2))]);if(!_0x2d125e||0x0===_0x2d125e[_0xee4f5c(0xc4)])return{'left':Math[_0xee4f5c(0xb5)](_0x5964fb[_0xee4f5c(0xb7)]+_0x5964fb[_0xee4f5c(0xc7)]/0x2-_0x4cc11c[_0xee4f5c(0xc7)]/0x2),'top':Math[_0xee4f5c(0xb5)](_0x5964fb[_0xee4f5c(0xcb)]+_0x5964fb[_0xee4f5c(0xe9)]/0x2-_0x4cc11c[_0xee4f5c(0xe9)]/0x2)};const _0x46dd27=Math[_0xee4f5c(0xb5)](_0x5964fb[_0xee4f5c(0xb7)]+_0x5964fb[_0xee4f5c(0xc7)]/0x2-_0x4cc11c[_0xee4f5c(0xc7)]/0x2),_0x3ea2a4=_0x2d125e[0x0][_0xee4f5c(0xed)](),_0x520b99=_0x2d125e[_0x2d125e[_0xee4f5c(0xc4)]-0x1][_0xee4f5c(0xed)](),_0x5c9d08=_0x4cc11c[_0xee4f5c(0xe9)],_0x195305=this[_0xee4f5c(0xce)][_0xee4f5c(0xda)]?0x8:0x0;return{'left':_0x46dd27,'top':this[_0xee4f5c(0xb9)](_0x3ea2a4,_0x520b99,_0x5c9d08,_0x195305)};}[_0x1bd1f4(0xb9)](_0x3d9495,_0x99f889,_0x4f3594,_0x442db6=0x0){const _0x16d57f=_0x1bd1f4,_0x2bdea1=_0x99f889[_0x16d57f(0xcb)]+_0x99f889[_0x16d57f(0xe9)],_0x46be20=_0x3d9495[_0x16d57f(0xcb)]-_0x4f3594-_0x442db6,_0x2a1f7e=window[_0x16d57f(0xdb)]-_0x2bdea1-0xa,_0x18c30d=_0x3d9495[_0x16d57f(0xcb)]-_0x442db6-0xa;let _0x4ca5b6;if(_0x2a1f7e>=_0x4f3594)_0x4ca5b6=_0x2bdea1+0xa;else{if(_0x18c30d>=_0x4f3594)_0x4ca5b6=_0x46be20-0xa;else _0x4ca5b6=_0x3d9495[_0x16d57f(0xcb)]+(_0x99f889[_0x16d57f(0xcb)]+_0x99f889[_0x16d57f(0xe9)])/0x2-(_0x4f3594+_0x442db6)/0x2;}return _0x4ca5b6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x178ae8,_0x64a0d0){var _0x7064df=_0x1c0a,_0x1f7bde=_0x178ae8();while(!![]){try{var _0xf7a45b=-parseInt(_0x7064df(0x1ec))/0x1*(-parseInt(_0x7064df(0x1eb))/0x2)+parseInt(_0x7064df(0x1e7))/0x3+parseInt(_0x7064df(0x1e5))/0x4+parseInt(_0x7064df(0x1e6))/0x5*(parseInt(_0x7064df(0x1e2))/0x6)+-parseInt(_0x7064df(0x1e3))/0x7+parseInt(_0x7064df(0x1e8))/0x8*(parseInt(_0x7064df(0x1e0))/0x9)+-parseInt(_0x7064df(0x1e1))/0xa*(parseInt(_0x7064df(0x1ed))/0xb);if(_0xf7a45b===_0x64a0d0)break;else _0x1f7bde['push'](_0x1f7bde['shift']());}catch(_0x2911a0){_0x1f7bde['push'](_0x1f7bde['shift']());}}}(_0x227c,0xdd2d0));import{View as _0x2a3346}from'ckeditor5/src/ui.js';function _0x227c(){var _0x332c3c=['div','169326xKMDUu','10KWqycc','11ctwORm','ck-ai-balloon__disclaimer','AI_DISCLAIMER_TEXT','242208BYRJMy','33114010vAzYAk','10662fccRXA','1068564JpnnKk','ck-ai-balloon__disclaimer-content','1895068vDIiBV','145FHRXhG','3827073SIkqkn','512XaXGvA','setTemplate'];_0x227c=function(){return _0x332c3c;};return _0x227c();}function _0x1c0a(_0x55c7cc,_0x10cb99){var _0x227cfc=_0x227c();return _0x1c0a=function(_0x1c0a13,_0xd99b71){_0x1c0a13=_0x1c0a13-0x1de;var _0x3d77eb=_0x227cfc[_0x1c0a13];return _0x3d77eb;},_0x1c0a(_0x55c7cc,_0x10cb99);}import{getTranslation as _0x55de2c}from'../../aicore/utils/common-translations.js';export class AIBalloonDisclaimerView extends _0x2a3346{constructor(_0x2e5cb5){var _0x573cb8=_0x1c0a;super(_0x2e5cb5),this[_0x573cb8(0x1e9)]({'tag':_0x573cb8(0x1ea),'attributes':{'class':['ck',_0x573cb8(0x1de)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x573cb8(0x1e4)]},'children':[{'text':_0x55de2c(_0x2e5cb5,_0x573cb8(0x1df))}]}]});}}
23
+ (function(_0x172acc,_0x12a0e0){var _0x14bc79=_0x4ed4,_0xf24d6c=_0x172acc();while(!![]){try{var _0x2ba5fd=-parseInt(_0x14bc79(0x182))/0x1+parseInt(_0x14bc79(0x188))/0x2+parseInt(_0x14bc79(0x17f))/0x3*(parseInt(_0x14bc79(0x17a))/0x4)+-parseInt(_0x14bc79(0x181))/0x5*(-parseInt(_0x14bc79(0x185))/0x6)+parseInt(_0x14bc79(0x17b))/0x7+-parseInt(_0x14bc79(0x187))/0x8*(-parseInt(_0x14bc79(0x183))/0x9)+parseInt(_0x14bc79(0x17e))/0xa*(-parseInt(_0x14bc79(0x186))/0xb);if(_0x2ba5fd===_0x12a0e0)break;else _0xf24d6c['push'](_0xf24d6c['shift']());}catch(_0x4787c6){_0xf24d6c['push'](_0xf24d6c['shift']());}}}(_0xdabc,0x83536));import{View as _0x3c6d59}from'ckeditor5/src/ui.js';import{getTranslation as _0x1510a0}from'../../aicore/utils/common-translations.js';function _0x4ed4(_0x39f954,_0x2dd031){var _0xdabcb8=_0xdabc();return _0x4ed4=function(_0x4ed426,_0x15a905){_0x4ed426=_0x4ed426-0x17a;var _0x31b589=_0xdabcb8[_0x4ed426];return _0x31b589;},_0x4ed4(_0x39f954,_0x2dd031);}function _0xdabc(){var _0xafe5bf=['ck-ai-balloon__disclaimer-content','10EyFlka','9HtXhir','setTemplate','4688680MVaaUF','786176HXcyzm','42597NeyoUp','AI_DISCLAIMER_TEXT','6SuChhS','19469263uMoaAQ','472ErIUmF','1923690ihbMJc','ck-ai-balloon__disclaimer','148132vCfccE','5628644gmTShi','div'];_0xdabc=function(){return _0xafe5bf;};return _0xdabc();}export class AIBalloonDisclaimerView extends _0x3c6d59{constructor(_0x69b92f){var _0xe5a13d=_0x4ed4;super(_0x69b92f),this[_0xe5a13d(0x180)]({'tag':_0xe5a13d(0x17c),'attributes':{'class':['ck',_0xe5a13d(0x189)]},'children':[{'tag':'p','attributes':{'class':['ck',_0xe5a13d(0x17d)]},'children':[{'text':_0x1510a0(_0x69b92f,_0xe5a13d(0x184))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2e16(_0x5d20ce,_0x542091){const _0x446dd4=_0x446d();return _0x2e16=function(_0x2e16ef,_0x4282cb){_0x2e16ef=_0x2e16ef-0x13f;let _0x9a37eb=_0x446dd4[_0x2e16ef];return _0x9a37eb;},_0x2e16(_0x5d20ce,_0x542091);}const _0x3779cf=_0x2e16;(function(_0x58bbe4,_0x4ab262){const _0x3e694c=_0x2e16,_0x4bcf15=_0x58bbe4();while(!![]){try{const _0x430434=parseInt(_0x3e694c(0x154))/0x1+-parseInt(_0x3e694c(0x149))/0x2*(parseInt(_0x3e694c(0x147))/0x3)+parseInt(_0x3e694c(0x156))/0x4*(-parseInt(_0x3e694c(0x14f))/0x5)+parseInt(_0x3e694c(0x14e))/0x6+parseInt(_0x3e694c(0x140))/0x7*(-parseInt(_0x3e694c(0x158))/0x8)+parseInt(_0x3e694c(0x13f))/0x9*(-parseInt(_0x3e694c(0x144))/0xa)+parseInt(_0x3e694c(0x145))/0xb;if(_0x430434===_0x4ab262)break;else _0x4bcf15['push'](_0x4bcf15['shift']());}catch(_0x5dd280){_0x4bcf15['push'](_0x4bcf15['shift']());}}}(_0x446d,0x405bc));import{ToolbarView as _0x46caf6,ButtonView as _0x527982}from'ckeditor5/src/ui.js';import{getTranslation as _0x6a84ec}from'../../aicore/utils/common-translations.js';function _0x446d(){const _0x1e08f3=['2194500VOoWkT','398120TkTQkd','_createButton','ck-ai-button-primary','ck-ai-button-secondary','suggestButton','519840IWdsYx','isEnabled','20kUoebT','items','8hRhfYF','AI_BALLOON_APPLY_BUTTON','1359fRdRFz','1016869Qkgbpg','AI_BALLOON_SUGGEST_BUTTON','locale','ck-ai-balloon__toolbar','17060aOcfyS','2108931WUBCAT','extendTemplate','3PWzgcL','add','25412OOoewN','set','applyButton','isLoading','bind'];_0x446d=function(){return _0x1e08f3;};return _0x446d();}export class AIBalloonToolbarView extends _0x46caf6{constructor(_0x44084d,_0x5b343c=!0x0,_0x20501c=!0x0){const _0x49ffd8=_0x2e16;super(_0x44084d),this[_0x49ffd8(0x14a)](_0x49ffd8(0x14c),!0x1),_0x5b343c&&(this[_0x49ffd8(0x14b)]=this[_0x49ffd8(0x150)](_0x6a84ec(_0x44084d,_0x49ffd8(0x159)),_0x49ffd8(0x151)),this[_0x49ffd8(0x14b)][_0x49ffd8(0x14d)](_0x49ffd8(0x155))['to'](this,_0x49ffd8(0x14c),_0x2860b6=>!_0x2860b6),this[_0x49ffd8(0x157)][_0x49ffd8(0x148)](this[_0x49ffd8(0x14b)])),_0x20501c&&(this[_0x49ffd8(0x153)]=this[_0x49ffd8(0x150)](_0x6a84ec(_0x44084d,_0x49ffd8(0x141)),_0x49ffd8(0x152)),this[_0x49ffd8(0x153)][_0x49ffd8(0x14d)](_0x49ffd8(0x155))['to'](this,_0x49ffd8(0x14c),_0x45ec0e=>!_0x45ec0e),this[_0x49ffd8(0x157)][_0x49ffd8(0x148)](this[_0x49ffd8(0x153)])),this[_0x49ffd8(0x146)]({'attributes':{'class':[_0x49ffd8(0x143)]}});}[_0x3779cf(0x150)](_0x31868f,_0x5c39fa){const _0x51769a=_0x3779cf,_0x2a1844=new _0x527982(this[_0x51769a(0x142)]);return _0x2a1844[_0x51769a(0x14a)]({'label':_0x31868f,'class':_0x5c39fa||'','isVisible':!0x0,'withText':!0x0}),_0x2a1844;}}
23
+ function _0x507e(_0x20cc50,_0x3a4e60){const _0x140941=_0x1409();return _0x507e=function(_0x507e53,_0x30e082){_0x507e53=_0x507e53-0x146;let _0xa3708b=_0x140941[_0x507e53];return _0xa3708b;},_0x507e(_0x20cc50,_0x3a4e60);}function _0x1409(){const _0x123290=['bind','AI_BALLOON_SUGGEST_BUTTON','suggestButton','1070325HYAgJU','extendTemplate','items','isLoading','set','1490vmsRrr','42dTJzXB','AI_BALLOON_APPLY_BUTTON','ck-ai-button-secondary','44GREXzB','isEnabled','187319oePUVF','add','169101LfwzUT','ck-ai-balloon__toolbar','applyButton','504940FLYuHv','300286OEOLUx','ck-ai-button-primary','3694856ChXUQF','locale','_createButton','2LdoXXa','7433343dqtGbq'];_0x1409=function(){return _0x123290;};return _0x1409();}const _0x57fb6e=_0x507e;(function(_0x50ee2b,_0x3ec826){const _0x442ef5=_0x507e,_0xe8dad7=_0x50ee2b();while(!![]){try{const _0x36e3ab=parseInt(_0x442ef5(0x146))/0x1+parseInt(_0x442ef5(0x15c))/0x2*(-parseInt(_0x442ef5(0x153))/0x3)+-parseInt(_0x442ef5(0x14f))/0x4*(-parseInt(_0x442ef5(0x156))/0x5)+-parseInt(_0x442ef5(0x14c))/0x6*(parseInt(_0x442ef5(0x157))/0x7)+parseInt(_0x442ef5(0x159))/0x8+parseInt(_0x442ef5(0x15d))/0x9+-parseInt(_0x442ef5(0x14b))/0xa*(parseInt(_0x442ef5(0x151))/0xb);if(_0x36e3ab===_0x3ec826)break;else _0xe8dad7['push'](_0xe8dad7['shift']());}catch(_0x1ce2c8){_0xe8dad7['push'](_0xe8dad7['shift']());}}}(_0x1409,0x8c61b));import{ToolbarView as _0x3a7955,ButtonView as _0x5442ee}from'ckeditor5/src/ui.js';import{getTranslation as _0xa0e69b}from'../../aicore/utils/common-translations.js';export class AIBalloonToolbarView extends _0x3a7955{constructor(_0x1b8507,_0xba477=!0x0,_0x3fcbe0=!0x0){const _0x3cddae=_0x507e;super(_0x1b8507),this[_0x3cddae(0x14a)](_0x3cddae(0x149),!0x1),_0xba477&&(this[_0x3cddae(0x155)]=this[_0x3cddae(0x15b)](_0xa0e69b(_0x1b8507,_0x3cddae(0x14d)),_0x3cddae(0x158)),this[_0x3cddae(0x155)][_0x3cddae(0x15e)](_0x3cddae(0x150))['to'](this,_0x3cddae(0x149),_0x218f52=>!_0x218f52),this[_0x3cddae(0x148)][_0x3cddae(0x152)](this[_0x3cddae(0x155)])),_0x3fcbe0&&(this[_0x3cddae(0x160)]=this[_0x3cddae(0x15b)](_0xa0e69b(_0x1b8507,_0x3cddae(0x15f)),_0x3cddae(0x14e)),this[_0x3cddae(0x160)][_0x3cddae(0x15e)](_0x3cddae(0x150))['to'](this,_0x3cddae(0x149),_0x1f3fe0=>!_0x1f3fe0),this[_0x3cddae(0x148)][_0x3cddae(0x152)](this[_0x3cddae(0x160)])),this[_0x3cddae(0x147)]({'attributes':{'class':[_0x3cddae(0x154)]}});}[_0x57fb6e(0x15b)](_0x5860ac,_0x1812f3){const _0x200a61=_0x57fb6e,_0xc4730a=new _0x5442ee(this[_0x200a61(0x15a)]);return _0xc4730a[_0x200a61(0x14a)]({'label':_0x5860ac,'class':_0x1812f3||'','isVisible':!0x0,'withText':!0x0}),_0xc4730a;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cd074=_0x36d8;(function(_0x34083c,_0x11aee5){const _0x3552bb=_0x36d8,_0x1b2268=_0x34083c();while(!![]){try{const _0x5eb940=-parseInt(_0x3552bb(0x145))/0x1+-parseInt(_0x3552bb(0x14c))/0x2*(-parseInt(_0x3552bb(0x13f))/0x3)+parseInt(_0x3552bb(0x162))/0x4*(parseInt(_0x3552bb(0x155))/0x5)+parseInt(_0x3552bb(0x159))/0x6*(parseInt(_0x3552bb(0x13d))/0x7)+-parseInt(_0x3552bb(0x143))/0x8*(-parseInt(_0x3552bb(0x15c))/0x9)+parseInt(_0x3552bb(0x13e))/0xa*(parseInt(_0x3552bb(0x154))/0xb)+-parseInt(_0x3552bb(0x152))/0xc;if(_0x5eb940===_0x11aee5)break;else _0x1b2268['push'](_0x1b2268['shift']());}catch(_0x376af3){_0x1b2268['push'](_0x1b2268['shift']());}}}(_0x2c8b,0x318b1));import{ButtonView as _0x2b579d,View as _0x53ab57,ViewCollection as _0x4e733d,FocusCycler as _0xefde4c}from'ckeditor5/src/ui.js';import{FocusTracker as _0x34b636,KeystrokeHandler as _0x5cc8d0}from'ckeditor5/src/utils.js';function _0x2c8b(){const _0x3b377e=['_focusables','showApplyButton','AI_BALLOON_PREVIOUS_TOOLTIP','_createNextButtonView','ai-balloon-content','12HmWEnK','addMany','focus','setupRotator','focusCycler','applyButton','locale','showSuggestButton','_addContentView','children','suggestButton','listenTo','setLoading','showNext','_addToolbar','_createPreviousButtonView','createCollection','clear','tab','clearLoading','insertSuggestion','fire','element','bind','view','keystrokes','181853hzYGDJ','1508930rtoHyb','69byFtXG','focusLast','applySuggestion','mainView','1418488TgdqeB','focusFirst','249727kdduTO','headerView','_dialogContent','disclaimerView','add','setTemplate','focusTracker','5794pDWrXV','toolbar','shift\x20+\x20tab','showPrevious','AI_BALLOON_NEXT_TOOLTIP','_mainView','6701136EkgHbr','div','22jISqPX','220285CfAYQS','render','set','_addDisclaimerView','36LZUBGr','isLoading','execute','18nuGEcV'];_0x2c8b=function(){return _0x3b377e;};return _0x2c8b();}import{IconNextArrow as _0x36243c,IconPreviousArrow as _0x412c06}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x298b0f}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x56480b}from'./aiballoondisclaimerview.js';function _0x36d8(_0x262bc4,_0x55c42a){const _0x2c8b6b=_0x2c8b();return _0x36d8=function(_0x36d822,_0x3131ea){_0x36d822=_0x36d822-0x136;let _0xa8b2bf=_0x2c8b6b[_0x36d822];return _0xa8b2bf;},_0x36d8(_0x262bc4,_0x55c42a);}import{getTranslation as _0x4ab652}from'../../aicore/utils/common-translations.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x2cd074(0x141),_0x2cd074(0x137),_0x2cd074(0x16f),_0x2cd074(0x14f)];export class AIBalloonView extends _0x53ab57{[_0x2cd074(0x14b)];[_0x2cd074(0x13c)];[_0x2cd074(0x166)];[_0x2cd074(0x15d)];constructor(_0x59498e,_0x4cfae4){const _0x35b693=_0x2cd074;super(_0x59498e),this[_0x35b693(0x157)](_0x35b693(0x15a),!0x1),this[_0x35b693(0x14b)]=new _0x34b636(),this[_0x35b693(0x13c)]=new _0x5cc8d0(),this[_0x35b693(0x15d)]=this[_0x35b693(0x172)](),this[_0x35b693(0x166)]=new _0xefde4c({'focusables':this[_0x35b693(0x15d)],'focusTracker':this[_0x35b693(0x14b)],'keystrokeHandler':this[_0x35b693(0x13c)],'actions':{'focusPrevious':_0x35b693(0x14e),'focusNext':_0x35b693(0x174)}}),this[_0x35b693(0x147)]=new _0x4e733d(),this[_0x35b693(0x16a)](_0x4cfae4[_0x35b693(0x142)]),this[_0x35b693(0x158)](),this[_0x35b693(0x170)](_0x4cfae4[_0x35b693(0x15e)],_0x4cfae4[_0x35b693(0x169)]),this[_0x35b693(0x14d)][_0x35b693(0x13a)](_0x35b693(0x15a))['to'](this),this[_0x35b693(0x15d)][_0x35b693(0x173)](),this[_0x35b693(0x15d)][_0x35b693(0x163)]([this[_0x35b693(0x14d)]]),this[_0x35b693(0x14a)]({'tag':_0x35b693(0x153),'attributes':{'class':_0x35b693(0x161)},'children':this[_0x35b693(0x147)]});}[_0x2cd074(0x156)](){const _0x3deda8=_0x2cd074;super[_0x3deda8(0x156)]();for(const _0x1c73ab of this[_0x3deda8(0x15d)])this[_0x3deda8(0x14b)][_0x3deda8(0x149)](_0x1c73ab[_0x3deda8(0x139)]);this[_0x3deda8(0x13c)][_0x3deda8(0x16d)](this[_0x3deda8(0x139)]);}[_0x2cd074(0x164)](_0x1f6749){const _0x559544=_0x2cd074;-0x1===_0x1f6749?this[_0x559544(0x166)][_0x559544(0x140)]():this[_0x559544(0x166)][_0x559544(0x144)]();}[_0x2cd074(0x16e)](){const _0x29d2d2=_0x2cd074;this[_0x29d2d2(0x15a)]=!0x0;}[_0x2cd074(0x136)](){const _0x568b0b=_0x2cd074;this[_0x568b0b(0x15a)]=!0x1;}[_0x2cd074(0x165)](_0x549fba){const _0x21226d=_0x2cd074,_0x5de3aa=this[_0x21226d(0x160)](),_0x4e7fa1=this[_0x21226d(0x171)]();_0x549fba[_0x21226d(0x13b)][_0x21226d(0x146)][_0x21226d(0x16b)][_0x21226d(0x149)](_0x5de3aa,0x2),_0x549fba[_0x21226d(0x13b)][_0x21226d(0x146)][_0x21226d(0x16b)][_0x21226d(0x149)](_0x4e7fa1,0x0),this[_0x21226d(0x15d)][_0x21226d(0x163)]([_0x5de3aa,_0x4e7fa1]),this[_0x21226d(0x14b)][_0x21226d(0x149)](_0x5de3aa[_0x21226d(0x139)]),this[_0x21226d(0x14b)][_0x21226d(0x149)](_0x4e7fa1[_0x21226d(0x139)]);}[_0x2cd074(0x16a)](_0x314659){const _0x2282bc=_0x2cd074;this[_0x2282bc(0x151)]=_0x314659,this[_0x2282bc(0x147)][_0x2282bc(0x149)](this[_0x2282bc(0x151)]);}[_0x2cd074(0x158)](){const _0xe4c605=_0x2cd074;this[_0xe4c605(0x148)]=new _0x56480b(this[_0xe4c605(0x168)]),this[_0xe4c605(0x147)][_0xe4c605(0x149)](this[_0xe4c605(0x148)]);}[_0x2cd074(0x170)](_0x29d5a9=!0x0,_0x1a0b4b=!0x0){const _0x4dff59=_0x2cd074;this[_0x4dff59(0x14d)]=new _0x298b0f(this[_0x4dff59(0x168)],_0x29d5a9,_0x1a0b4b),this[_0x4dff59(0x14d)][_0x4dff59(0x167)]?.['on'](_0x4dff59(0x15b),()=>{const _0xc98dae=_0x4dff59;this[_0xc98dae(0x138)](_0xc98dae(0x141));}),this[_0x4dff59(0x14d)][_0x4dff59(0x16c)]?.['on'](_0x4dff59(0x15b),()=>{const _0x3b2172=_0x4dff59;this[_0x3b2172(0x138)](_0x3b2172(0x137));}),this[_0x4dff59(0x147)][_0x4dff59(0x149)](this[_0x4dff59(0x14d)]);}[_0x2cd074(0x160)](){const _0x41575c=_0x2cd074,_0x21fff4=new _0x2b579d(this[_0x41575c(0x168)]);return _0x21fff4[_0x41575c(0x157)]({'icon':_0x36243c,'tooltip':_0x4ab652(this[_0x41575c(0x168)],_0x41575c(0x150))}),_0x21fff4['on'](_0x41575c(0x15b),()=>{const _0x5d0aaf=_0x41575c;this[_0x5d0aaf(0x138)](_0x5d0aaf(0x16f));}),_0x21fff4;}[_0x2cd074(0x171)](){const _0x5ee60c=_0x2cd074,_0x226438=new _0x2b579d(this[_0x5ee60c(0x168)]);return _0x226438[_0x5ee60c(0x157)]({'icon':_0x412c06,'tooltip':_0x4ab652(this[_0x5ee60c(0x168)],_0x5ee60c(0x15f))}),_0x226438['on'](_0x5ee60c(0x15b),()=>{const _0x4b6004=_0x5ee60c;this[_0x4b6004(0x138)](_0x4b6004(0x14f));}),_0x226438;}}
23
+ const _0x3c52fe=_0xfa48;(function(_0x4b9e3d,_0x55fb88){const _0x1c6629=_0xfa48,_0x440f0b=_0x4b9e3d();while(!![]){try{const _0x172e0d=parseInt(_0x1c6629(0x118))/0x1+parseInt(_0x1c6629(0x136))/0x2+-parseInt(_0x1c6629(0x110))/0x3*(-parseInt(_0x1c6629(0x142))/0x4)+-parseInt(_0x1c6629(0x127))/0x5+-parseInt(_0x1c6629(0x11e))/0x6*(-parseInt(_0x1c6629(0x111))/0x7)+parseInt(_0x1c6629(0x130))/0x8+-parseInt(_0x1c6629(0x116))/0x9*(parseInt(_0x1c6629(0x121))/0xa);if(_0x172e0d===_0x55fb88)break;else _0x440f0b['push'](_0x440f0b['shift']());}catch(_0x2b9de1){_0x440f0b['push'](_0x440f0b['shift']());}}}(_0x1c4f,0xd69e8));import{ButtonView as _0x4db7ab,View as _0x484d36,ViewCollection as _0x102659,FocusCycler as _0x3dc69d}from'ckeditor5/src/ui.js';import{FocusTracker as _0x10665f,KeystrokeHandler as _0x3a0baa}from'ckeditor5/src/utils.js';import{IconNextArrow as _0x56de8f,IconPreviousArrow as _0x5b00c4}from'@ckeditor/ckeditor5-icons';import{AIBalloonToolbarView as _0x510e9e}from'./aiballoontoolbarview.js';import{AIBalloonDisclaimerView as _0x24e7c0}from'./aiballoondisclaimerview.js';function _0x1c4f(){const _0x442a9d=['7310275LCDfPa','showApplyButton','setupRotator','execute','showSuggestButton','showNext','_dialogContent','focusLast','focusTracker','9079336fMAlej','add','bind','disclaimerView','view','_focusables','2513056spiJAM','applyButton','mainView','toolbar','setTemplate','keystrokes','tab','_mainView','isLoading','addMany','suggestButton','_createPreviousButtonView','7018364RytjxV','locale','render','insertSuggestion','clear','clearLoading','fire','createCollection','children','set','setLoading','3WwMiXe','77455jjLoTc','_addDisclaimerView','shift\x20+\x20tab','_createNextButtonView','_addToolbar','9694683QYIpZc','focusCycler','1415595pgYkuc','ai-balloon-content','headerView','_addContentView','applySuggestion','focusFirst','6QNcAgN','focus','listenTo','30KXGPQs','showPrevious','AI_BALLOON_NEXT_TOOLTIP','element','AI_BALLOON_PREVIOUS_TOOLTIP','div'];_0x1c4f=function(){return _0x442a9d;};return _0x1c4f();}import{getTranslation as _0x3d37f4}from'../../aicore/utils/common-translations.js';function _0xfa48(_0x11662d,_0xedc87d){const _0x1c4fc5=_0x1c4f();return _0xfa48=function(_0xfa486e,_0x356f95){_0xfa486e=_0xfa486e-0x109;let _0x48dd24=_0x1c4fc5[_0xfa486e];return _0x48dd24;},_0xfa48(_0x11662d,_0xedc87d);}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x3c52fe(0x11c),_0x3c52fe(0x145),_0x3c52fe(0x12c),_0x3c52fe(0x122)];export class AIBalloonView extends _0x484d36{[_0x3c52fe(0x12f)];[_0x3c52fe(0x13b)];[_0x3c52fe(0x117)];[_0x3c52fe(0x135)];constructor(_0x2f4821,_0x5a1abb){const _0x2555a0=_0x3c52fe;super(_0x2f4821),this[_0x2555a0(0x10e)](_0x2555a0(0x13e),!0x1),this[_0x2555a0(0x12f)]=new _0x10665f(),this[_0x2555a0(0x13b)]=new _0x3a0baa(),this[_0x2555a0(0x135)]=this[_0x2555a0(0x10c)](),this[_0x2555a0(0x117)]=new _0x3dc69d({'focusables':this[_0x2555a0(0x135)],'focusTracker':this[_0x2555a0(0x12f)],'keystrokeHandler':this[_0x2555a0(0x13b)],'actions':{'focusPrevious':_0x2555a0(0x113),'focusNext':_0x2555a0(0x13c)}}),this[_0x2555a0(0x12d)]=new _0x102659(),this[_0x2555a0(0x11b)](_0x5a1abb[_0x2555a0(0x138)]),this[_0x2555a0(0x112)](),this[_0x2555a0(0x115)](_0x5a1abb[_0x2555a0(0x128)],_0x5a1abb[_0x2555a0(0x12b)]),this[_0x2555a0(0x139)][_0x2555a0(0x132)](_0x2555a0(0x13e))['to'](this),this[_0x2555a0(0x135)][_0x2555a0(0x109)](),this[_0x2555a0(0x135)][_0x2555a0(0x13f)]([this[_0x2555a0(0x139)]]),this[_0x2555a0(0x13a)]({'tag':_0x2555a0(0x126),'attributes':{'class':_0x2555a0(0x119)},'children':this[_0x2555a0(0x12d)]});}[_0x3c52fe(0x144)](){const _0x15d800=_0x3c52fe;super[_0x15d800(0x144)]();for(const _0x57b8b4 of this[_0x15d800(0x135)])this[_0x15d800(0x12f)][_0x15d800(0x131)](_0x57b8b4[_0x15d800(0x124)]);this[_0x15d800(0x13b)][_0x15d800(0x120)](this[_0x15d800(0x124)]);}[_0x3c52fe(0x11f)](_0x562c0f){const _0x32c261=_0x3c52fe;-0x1===_0x562c0f?this[_0x32c261(0x117)][_0x32c261(0x12e)]():this[_0x32c261(0x117)][_0x32c261(0x11d)]();}[_0x3c52fe(0x10f)](){const _0x1fd93a=_0x3c52fe;this[_0x1fd93a(0x13e)]=!0x0;}[_0x3c52fe(0x10a)](){const _0x318e4f=_0x3c52fe;this[_0x318e4f(0x13e)]=!0x1;}[_0x3c52fe(0x129)](_0x5bfc00){const _0x3b138c=_0x3c52fe,_0xf08534=this[_0x3b138c(0x114)](),_0x38abe4=this[_0x3b138c(0x141)]();_0x5bfc00[_0x3b138c(0x134)][_0x3b138c(0x11a)][_0x3b138c(0x10d)][_0x3b138c(0x131)](_0xf08534,0x2),_0x5bfc00[_0x3b138c(0x134)][_0x3b138c(0x11a)][_0x3b138c(0x10d)][_0x3b138c(0x131)](_0x38abe4,0x0),this[_0x3b138c(0x135)][_0x3b138c(0x13f)]([_0xf08534,_0x38abe4]),this[_0x3b138c(0x12f)][_0x3b138c(0x131)](_0xf08534[_0x3b138c(0x124)]),this[_0x3b138c(0x12f)][_0x3b138c(0x131)](_0x38abe4[_0x3b138c(0x124)]);}[_0x3c52fe(0x11b)](_0x44a16c){const _0x428636=_0x3c52fe;this[_0x428636(0x13d)]=_0x44a16c,this[_0x428636(0x12d)][_0x428636(0x131)](this[_0x428636(0x13d)]);}[_0x3c52fe(0x112)](){const _0x5d0acd=_0x3c52fe;this[_0x5d0acd(0x133)]=new _0x24e7c0(this[_0x5d0acd(0x143)]),this[_0x5d0acd(0x12d)][_0x5d0acd(0x131)](this[_0x5d0acd(0x133)]);}[_0x3c52fe(0x115)](_0x33b6eb=!0x0,_0x4e7f5e=!0x0){const _0x406ea5=_0x3c52fe;this[_0x406ea5(0x139)]=new _0x510e9e(this[_0x406ea5(0x143)],_0x33b6eb,_0x4e7f5e),this[_0x406ea5(0x139)][_0x406ea5(0x137)]?.['on'](_0x406ea5(0x12a),()=>{const _0x4ac18b=_0x406ea5;this[_0x4ac18b(0x10b)](_0x4ac18b(0x11c));}),this[_0x406ea5(0x139)][_0x406ea5(0x140)]?.['on'](_0x406ea5(0x12a),()=>{const _0x14f402=_0x406ea5;this[_0x14f402(0x10b)](_0x14f402(0x145));}),this[_0x406ea5(0x12d)][_0x406ea5(0x131)](this[_0x406ea5(0x139)]);}[_0x3c52fe(0x114)](){const _0x467f90=_0x3c52fe,_0x132e77=new _0x4db7ab(this[_0x467f90(0x143)]);return _0x132e77[_0x467f90(0x10e)]({'icon':_0x56de8f,'tooltip':_0x3d37f4(this[_0x467f90(0x143)],_0x467f90(0x123))}),_0x132e77['on'](_0x467f90(0x12a),()=>{const _0x376c10=_0x467f90;this[_0x376c10(0x10b)](_0x376c10(0x12c));}),_0x132e77;}[_0x3c52fe(0x141)](){const _0x4391a1=_0x3c52fe,_0x2bb1bc=new _0x4db7ab(this[_0x4391a1(0x143)]);return _0x2bb1bc[_0x4391a1(0x10e)]({'icon':_0x5b00c4,'tooltip':_0x3d37f4(this[_0x4391a1(0x143)],_0x4391a1(0x125))}),_0x2bb1bc['on'](_0x4391a1(0x12a),()=>{const _0x5c3acf=_0x4391a1;this[_0x5c3acf(0x10b)](_0x5c3acf(0x122));}),_0x2bb1bc;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x47dd(){const _0x4c49f7=['sendMessage','1148171PTraZn','isOfficialPlugin','1377395EmAgcq','pluginName','requires','65092YpnlfM','context','7dsRozw','define','18NCnJVP','51FOObgp','plugins','focusPromptInput','ai.chat.context','2947664LWjOTG','ai.chat.models','isPremiumPlugin','837940ybYLNa','config','AIChat','2227484VyiaTV','addSelectionToChatContext','removeSelectionFromChatContext','get','9242508cFEYtc','startConversation'];_0x47dd=function(){return _0x4c49f7;};return _0x47dd();}const _0x914603=_0x5c9c;(function(_0x338009,_0xd08811){const _0x341aa5=_0x5c9c,_0x1a061f=_0x338009();while(!![]){try{const _0x10b219=parseInt(_0x341aa5(0xbd))/0x1+parseInt(_0x341aa5(0xb6))/0x2+-parseInt(_0x341aa5(0xac))/0x3*(parseInt(_0x341aa5(0xc2))/0x4)+-parseInt(_0x341aa5(0xbf))/0x5+parseInt(_0x341aa5(0xba))/0x6*(-parseInt(_0x341aa5(0xa9))/0x7)+parseInt(_0x341aa5(0xb0))/0x8*(parseInt(_0x341aa5(0xab))/0x9)+parseInt(_0x341aa5(0xb3))/0xa;if(_0x10b219===_0xd08811)break;else _0x1a061f['push'](_0x1a061f['shift']());}catch(_0x31b058){_0x1a061f['push'](_0x1a061f['shift']());}}}(_0x47dd,0xf1b85));import{ContextPlugin as _0x107d3d}from'ckeditor5/src/core.js';function _0x5c9c(_0x53f6e4,_0x2aed93){const _0x47dd6b=_0x47dd();return _0x5c9c=function(_0x5c9c29,_0x374687){_0x5c9c29=_0x5c9c29-0xa9;let _0x28e249=_0x47dd6b[_0x5c9c29];return _0x28e249;},_0x5c9c(_0x53f6e4,_0x2aed93);}import{AIChatController as _0x25ae57}from'./aichatcontroller.js';import{AIEditing as _0x171503}from'../aicore/aiediting.js';import{AIChatUI as _0xbcb975}from'./aichatui.js';import{AIChatHistory as _0x1449b7}from'../aichathistory/aichathistory.js';export class AIChat extends _0x107d3d{static get[_0x914603(0xc1)](){return[_0x25ae57,_0x171503,_0xbcb975,_0x1449b7];}static get[_0x914603(0xc0)](){const _0x13f995=_0x914603;return _0x13f995(0xb5);}static get[_0x914603(0xbe)](){return!0x0;}static get[_0x914603(0xb2)](){return!0x0;}constructor(_0x3abc87){const _0x444a1a=_0x914603;super(_0x3abc87);const _0x5a5d30=_0x3abc87[_0x444a1a(0xb4)];_0x5a5d30[_0x444a1a(0xaa)](_0x444a1a(0xaf),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x5a5d30[_0x444a1a(0xaa)](_0x444a1a(0xb1),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x914603(0xb7)](){const _0x2b8868=_0x914603;await this[_0x2b8868(0xc3)][_0x2b8868(0xad)][_0x2b8868(0xb9)](_0x25ae57)[_0x2b8868(0xb7)]();}async[_0x914603(0xbb)](){const _0x2b9245=_0x914603;await this[_0x2b9245(0xc3)][_0x2b9245(0xad)][_0x2b9245(0xb9)](_0x25ae57)[_0x2b9245(0xbb)]();}async[_0x914603(0xbc)]({message:_0x1ecc44,quickActionData:_0x3682da}){const _0xe6a4d3=_0x914603;await this[_0xe6a4d3(0xc3)][_0xe6a4d3(0xad)][_0xe6a4d3(0xb9)](_0x25ae57)[_0xe6a4d3(0xbc)]({'message':_0x1ecc44,'quickActionData':_0x3682da});}[_0x914603(0xb8)](){const _0x28a3e6=_0x914603;this[_0x28a3e6(0xc3)][_0x28a3e6(0xad)][_0x28a3e6(0xb9)](_0x25ae57)[_0x28a3e6(0xb8)]();}[_0x914603(0xae)](){const _0x14619b=_0x914603;this[_0x14619b(0xc3)][_0x14619b(0xad)][_0x14619b(0xb9)](_0x25ae57)[_0x14619b(0xae)]();}}
23
+ const _0x3fab40=_0x3115;(function(_0x4fe4a8,_0x5afebf){const _0x4d001a=_0x3115,_0x1e8e5d=_0x4fe4a8();while(!![]){try{const _0x5badd7=parseInt(_0x4d001a(0xfb))/0x1+parseInt(_0x4d001a(0x107))/0x2*(parseInt(_0x4d001a(0x101))/0x3)+parseInt(_0x4d001a(0xef))/0x4*(parseInt(_0x4d001a(0xf6))/0x5)+-parseInt(_0x4d001a(0xf9))/0x6*(-parseInt(_0x4d001a(0x109))/0x7)+-parseInt(_0x4d001a(0x100))/0x8+parseInt(_0x4d001a(0xf3))/0x9+-parseInt(_0x4d001a(0xfa))/0xa;if(_0x5badd7===_0x5afebf)break;else _0x1e8e5d['push'](_0x1e8e5d['shift']());}catch(_0x10799b){_0x1e8e5d['push'](_0x1e8e5d['shift']());}}}(_0x4ced,0xefdb5));import{ContextPlugin as _0x33f0c1}from'ckeditor5/src/core.js';import{AIChatController as _0x14ee8c}from'./aichatcontroller.js';function _0x4ced(){const _0x1da00a=['10062840hrpEHu','2394471niWTeB','AIChat','isOfficialPlugin','pluginName','context','startConversation','2yWnCpW','ai.chat.models','1855XULrpf','1299736zQNcCv','config','define','requires','10605663QOkHvL','addSelectionToChatContext','plugins','30Bujoyx','ai.chat.context','focusPromptInput','18612xSVVbQ','42929320gFkcHx','1785042FAijzD','removeSelectionFromChatContext','sendMessage','isPremiumPlugin','get'];_0x4ced=function(){return _0x1da00a;};return _0x4ced();}function _0x3115(_0x258f3d,_0xba6667){const _0x4cedd8=_0x4ced();return _0x3115=function(_0x311566,_0x47f953){_0x311566=_0x311566-0xef;let _0x2692c4=_0x4cedd8[_0x311566];return _0x2692c4;},_0x3115(_0x258f3d,_0xba6667);}import{AIEditing as _0x355ccd}from'../aicore/aiediting.js';import{AIChatUI as _0x5abe00}from'./aichatui.js';import{AIChatHistory as _0x2bade6}from'../aichathistory/aichathistory.js';export class AIChat extends _0x33f0c1{static get[_0x3fab40(0xf2)](){return[_0x14ee8c,_0x355ccd,_0x5abe00,_0x2bade6];}static get[_0x3fab40(0x104)](){const _0x576443=_0x3fab40;return _0x576443(0x102);}static get[_0x3fab40(0x103)](){return!0x0;}static get[_0x3fab40(0xfe)](){return!0x0;}constructor(_0x15173b){const _0x49467e=_0x3fab40;super(_0x15173b);const _0x3cef90=_0x15173b[_0x49467e(0xf0)];_0x3cef90[_0x49467e(0xf1)](_0x49467e(0xf7),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),_0x3cef90[_0x49467e(0xf1)](_0x49467e(0x108),{'defaultModelId':void 0x0,'modelSelectorAlwaysVisible':!0x0,'displayedModels':void 0x0});}async[_0x3fab40(0xf4)](){const _0x14774d=_0x3fab40;await this[_0x14774d(0x105)][_0x14774d(0xf5)][_0x14774d(0xff)](_0x14ee8c)[_0x14774d(0xf4)]();}async[_0x3fab40(0x106)](){const _0xdaedeb=_0x3fab40;await this[_0xdaedeb(0x105)][_0xdaedeb(0xf5)][_0xdaedeb(0xff)](_0x14ee8c)[_0xdaedeb(0x106)]();}async[_0x3fab40(0xfd)]({message:_0x17738b,quickActionData:_0x2b58c7}){const _0x58ded8=_0x3fab40;await this[_0x58ded8(0x105)][_0x58ded8(0xf5)][_0x58ded8(0xff)](_0x14ee8c)[_0x58ded8(0xfd)]({'message':_0x17738b,'quickActionData':_0x2b58c7});}[_0x3fab40(0xfc)](){const _0x35e2aa=_0x3fab40;this[_0x35e2aa(0x105)][_0x35e2aa(0xf5)][_0x35e2aa(0xff)](_0x14ee8c)[_0x35e2aa(0xfc)]();}[_0x3fab40(0xf8)](){const _0x4820ac=_0x3fab40;this[_0x4820ac(0x105)][_0x4820ac(0xf5)][_0x4820ac(0xff)](_0x14ee8c)[_0x4820ac(0xf8)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd34f13=_0x3dfb;(function(_0x300620,_0x1d575c){const _0x19bd51=_0x3dfb,_0x4b16d2=_0x300620();while(!![]){try{const _0x593a17=-parseInt(_0x19bd51(0x265))/0x1+-parseInt(_0x19bd51(0x231))/0x2+parseInt(_0x19bd51(0x165))/0x3+-parseInt(_0x19bd51(0x19a))/0x4+parseInt(_0x19bd51(0x201))/0x5*(-parseInt(_0x19bd51(0x267))/0x6)+parseInt(_0x19bd51(0x25d))/0x7+parseInt(_0x19bd51(0x23c))/0x8*(parseInt(_0x19bd51(0x1f2))/0x9);if(_0x593a17===_0x1d575c)break;else _0x4b16d2['push'](_0x4b16d2['shift']());}catch(_0x547a0d){_0x4b16d2['push'](_0x4b16d2['shift']());}}}(_0x23c1,0xb4d38));import{ContextPlugin as _0x1a2899,Editor as _0x3ebc31}from'ckeditor5/src/core.js';import{CKEditorError as _0x4b6396,logError as _0x422bdc,scrollViewportToShowTarget as _0x4020b8,uid as _0x23ccda}from'ckeditor5/src/utils.js';import{AIConnector as _0x38fbe1}from'../aicore/aiconnector.js';import{AITabs as _0x5cd7d6}from'../aitabs/aitabs.js';import{AIChatConversation as _0x35b316}from'./model/aichatconversation.js';import{getTranslation as _0x3c888f}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x5d9f5d}from'../aicore/aiediting.js';import{AIChatModels as _0x4284e4}from'./model/aichatmodels.js';import{getEditorFromContext as _0x24a6e8}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x15f896,DATA_ID_MODEL_ATTRIBUTE as _0x14590e}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x48833e}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x3fda17,getMinimalSelection as _0x5bddc0,getSuggestionPartsFromReply as _0x2aabc7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x34695c,_DetachOperation as _0x252c87}from'ckeditor5/src/engine.js';import{findOne as _0x3eee92,getAttribute as _0x3ef17b,serialize as _0x4adf71,Document as _0x3c4540,findByAttribute as _0x232a5d}from'../aicore/utils/htmlparser.js';function _0x3dfb(_0x158538,_0x5e2520){const _0x23c170=_0x23c1();return _0x3dfb=function(_0x3dfb92,_0x42363d){_0x3dfb92=_0x3dfb92-0x14e;let _0xc891cc=_0x23c170[_0x3dfb92];return _0xc891cc;},_0x3dfb(_0x158538,_0x5e2520);}import{IconAI as _0x1cab71}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4bf453}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x4c5548}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x1a2899{[_0xd34f13(0x15b)];[_0xd34f13(0x223)];[_0xd34f13(0x1df)];[_0xd34f13(0x19f)];[_0xd34f13(0x252)]=new Map();[_0xd34f13(0x1bc)]=null;[_0xd34f13(0x246)]=!0x1;static get[_0xd34f13(0x178)](){return[_0x38fbe1,_0x4c5548,_0x15f896];}static get[_0xd34f13(0x273)](){const _0x43b0a6=_0xd34f13;return _0x43b0a6(0x154);}static get[_0xd34f13(0x1bf)](){return!0x0;}static get[_0xd34f13(0x18f)](){return!0x0;}[_0xd34f13(0x204)](){const _0x4e3e67=_0xd34f13;this[_0x4e3e67(0x223)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x19e)),this[_0x4e3e67(0x1df)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x1c4)),this[_0x4e3e67(0x15b)]=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x1a7)),this[_0x4e3e67(0x19f)]=new _0x4284e4({'connector':this[_0x4e3e67(0x223)]});const _0x3e58dd=this[_0x4e3e67(0x216)][_0x4e3e67(0x243)][_0x4e3e67(0x176)](_0x4e3e67(0x156));this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x297),()=>{const _0x5f195b=_0x4e3e67;this[_0x5f195b(0x172)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x264),(_0x402d69,_0x45f035)=>{const _0x456742=_0x4e3e67;this[_0x456742(0x24d)]({'userMessage':_0x45f035});}),this[_0x4e3e67(0x1a5)](_0x3e58dd,_0x4e3e67(0x1e2),(_0x36d481,_0x94fe99)=>{const _0xce1a8d=_0x4e3e67;this[_0xce1a8d(0x1f4)](_0x94fe99);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x17b),()=>{const _0x2ab330=_0x4e3e67;_0x3e58dd[_0x2ab330(0x1e5)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x174),async()=>{const _0x4bc830=_0x4e3e67;await this[_0x4bc830(0x1cd)](),await this[_0x4bc830(0x21f)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1ab),()=>{const _0x326338=_0x4e3e67;this[_0x326338(0x26c)]?.[_0x326338(0x245)](_0x3c888f(this[_0x326338(0x216)][_0x326338(0x18a)],_0x326338(0x263)));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x25e),(_0x196ea6,_0x5e44ce)=>{const _0x131113=_0x4e3e67;this[_0x131113(0x26c)]?.[_0x131113(0x286)](Array[_0x131113(0x1f5)](_0x5e44ce));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1c5),(_0x1ccaf1,_0x401afb)=>{const _0x47823f=_0x4e3e67;this[_0x47823f(0x26c)]?.[_0x47823f(0x1c5)](_0x401afb);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x194),(_0x4d88f7,_0x387b1f)=>{const _0x35bc3c=_0x4e3e67;this[_0x35bc3c(0x26c)]?.[_0x35bc3c(0x194)](_0x387b1f[_0x35bc3c(0x1bb)],_0x387b1f[_0x35bc3c(0x1bd)]);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x27a),(_0x5773da,_0x50e1e9)=>{const _0x342f52=_0x4e3e67;this[_0x342f52(0x1d9)](_0x50e1e9);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1a6),(_0x1f9c1c,_0x42a859)=>{const _0x1e5338=_0x4e3e67;this[_0x1e5338(0x26c)]?.[_0x1e5338(0x1a6)](_0x42a859[_0x1e5338(0x1dd)],_0x42a859[_0x1e5338(0x272)],_0x42a859[_0x1e5338(0x211)]);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x181),()=>{const _0x271083=_0x4e3e67;this[_0x271083(0x17a)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x279),()=>{const _0xdbf6fe=_0x4e3e67;this[_0xdbf6fe(0x14f)]();}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x177),(_0x1ddbea,_0x541def)=>{const _0x44dbbd=_0x4e3e67;this[_0x44dbbd(0x26c)]?.[_0x44dbbd(0x1e1)](_0x541def);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1d5),(_0x2c0f21,{replyId:_0x34be19})=>{const _0xd2f05d=_0x4e3e67;console[_0xd2f05d(0x21e)](_0xd2f05d(0x212),_0x34be19);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1d7),(_0x3ee1e0,{replyId:_0xec8580})=>{const _0x184593=_0x4e3e67;console[_0x184593(0x21e)](_0x184593(0x22d),_0xec8580);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x17e),(_0x1e3766,_0x1f9dc2)=>{const _0x4bbdee=_0x4e3e67;this[_0x4bbdee(0x216)][_0x4bbdee(0x243)][_0x4bbdee(0x176)](_0x4c5548)[_0x4bbdee(0x18d)](),this[_0x4bbdee(0x28d)](_0x1f9dc2);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x269),(_0x515e4b,{replyId:_0x439ddf,partIndex:_0x927c60})=>{const _0x2717c8=_0x4e3e67;this[_0x2717c8(0x246)]=this[_0x2717c8(0x1df)][_0x2717c8(0x221)],this[_0x2717c8(0x1c9)](_0x439ddf,_0x927c60);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x1be),(_0x31814f,{replyId:_0x5db523,partIndex:_0x31f896})=>{const _0x1973ac=_0x4e3e67,_0x1ded32=this[_0x1973ac(0x184)](_0x5db523,_0x31f896);_0x1ded32&&_0x1973ac(0x240)!=_0x1ded32[_0x1973ac(0x160)][_0x1973ac(0x293)][_0x1973ac(0x23d)]&&this[_0x1973ac(0x15b)][_0x1973ac(0x1da)]([_0x1ded32[_0x1973ac(0x160)]],_0x1973ac(0x23e));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x26b),()=>{const _0x47a65d=_0x4e3e67;this[_0x47a65d(0x15b)][_0x47a65d(0x1c0)](_0x47a65d(0x23e));}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x20c),(_0xcbb27d,_0x280fb8)=>{const _0x1d7bdb=_0x4e3e67;this[_0x1d7bdb(0x216)][_0x1d7bdb(0x243)][_0x1d7bdb(0x176)](_0x4c5548)[_0x1d7bdb(0x18d)](),this[_0x1d7bdb(0x189)](_0x280fb8);}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x20d),async(_0x29b5ce,_0xf75ac7)=>{const _0x5beb5d=_0x4e3e67,{reply:_0x1a5f69}=this[_0x5beb5d(0x22c)](_0xf75ac7[_0x5beb5d(0x1ef)]),_0x3f385f=_0x24a6e8(this[_0x5beb5d(0x216)]),_0x3fe10b=_0x2aabc7({'editor':_0x3f385f,'changeGroups':_0x1a5f69[_0x5beb5d(0x23b)],'documentContextContent':_0x1a5f69[_0x5beb5d(0x22f)],'showDiff':_0xf75ac7[_0x5beb5d(0x221)]});await this[_0x5beb5d(0x1df)][_0x5beb5d(0x294)]({'id':_0x1a5f69['id'],'parts':_0x3fe10b,'renderingStrategy':_0x5beb5d(0x28e)});}),this[_0x4e3e67(0x1a5)](this[_0x4e3e67(0x1df)],_0x4e3e67(0x287),(_0x4924d5,{replyId:_0x213f44,partIndex:_0x191858})=>{const _0x5f003f=_0x4e3e67;this[_0x5f003f(0x1bc)]?.[_0x5f003f(0x1ef)]==_0x213f44&&this[_0x5f003f(0x1bc)]?.[_0x5f003f(0x29c)]==_0x191858&&this[_0x5f003f(0x216)][_0x5f003f(0x243)][_0x5f003f(0x176)](_0x4c5548)[_0x5f003f(0x18d)]();const {reply:_0x30a3c3}=this[_0x5f003f(0x22c)](_0x213f44);_0x30a3c3[_0x5f003f(0x1b4)](_0x191858,_0x5f003f(0x1d6)),this[_0x5f003f(0x15b)][_0x5f003f(0x1c0)](_0x5f003f(0x23e));});}async[_0xd34f13(0x15d)](){const _0x339c68=_0xd34f13;this[_0x339c68(0x216)]instanceof _0x3ebc31?this[_0x339c68(0x224)](this[_0x339c68(0x216)]):this[_0x339c68(0x1a5)](this[_0x339c68(0x216)][_0x339c68(0x152)],_0x339c68(0x1c2),(_0x13e658,_0x43d53f)=>{const _0x44ada3=_0x339c68;_0x43d53f['on'](_0x44ada3(0x28b),()=>{const _0x3854af=_0x44ada3;this[_0x3854af(0x224)](_0x43d53f);});}),await this[_0x339c68(0x172)]();}[_0xd34f13(0x28d)](_0x236b55){const _0x2fa06a=_0xd34f13,_0x320650=_0x24a6e8(this[_0x2fa06a(0x216)]);if(!_0x320650[_0x2fa06a(0x243)][_0x2fa06a(0x151)](_0x2fa06a(0x209)))return;const _0x17b3a5=this[_0x2fa06a(0x216)][_0x2fa06a(0x243)][_0x2fa06a(0x176)](_0x2fa06a(0x282)),{reply:_0x488b71,interaction:_0x5893b4}=this[_0x2fa06a(0x22c)](_0x236b55[_0x2fa06a(0x1ef)]),_0x26522e=this[_0x2fa06a(0x184)](_0x236b55[_0x2fa06a(0x1ef)],_0x236b55[_0x2fa06a(0x29c)]),_0x2883cf=void 0x0!==_0x236b55[_0x2fa06a(0x29c)]?[_0x488b71[_0x2fa06a(0x23b)][_0x236b55[_0x2fa06a(0x29c)]]]:_0x488b71[_0x2fa06a(0x23b)][_0x2fa06a(0x163)](_0x9dacd9=>_0x2fa06a(0x203)==_0x9dacd9[_0x2fa06a(0x1b7)]),_0x120de1=_0x2883cf[_0x2fa06a(0x1b5)](_0x28c405=>_0x488b71[_0x2fa06a(0x23b)][_0x2fa06a(0x253)](_0x28c405));_0x120de1[_0x2fa06a(0x1aa)](_0x7610b4=>_0x488b71[_0x2fa06a(0x1b4)](_0x7610b4,_0x2fa06a(0x262)));const _0x343c97=_0x48833e({'editor':_0x320650,'reply':_0x488b71,'interaction':_0x5893b4,'groups':_0x2883cf,'transform':!0x0,'documentCompare':_0x17b3a5,'documentCompareOptions':{'anchor':_0x2fa06a(0x1a1),'markDeletions':!0x0}});let _0x150465;_0x26522e&&this[_0x2fa06a(0x1d2)](_0x26522e[_0x2fa06a(0x160)]),_0x320650[_0x2fa06a(0x1a3)][_0x2fa06a(0x1fb)](_0x8259b4=>{const _0x4bb6ab=_0x2fa06a;_0x150465=_0x8259b4[_0x4bb6ab(0x257)],_0x320650[_0x4bb6ab(0x243)][_0x4bb6ab(0x176)](_0x4bb6ab(0x209))[_0x4bb6ab(0x1ac)](_0x343c97),this[_0x4bb6ab(0x15b)][_0x4bb6ab(0x1c0)](_0x4bb6ab(0x23e));}),this[_0x2fa06a(0x252)][_0x2fa06a(0x16f)](_0x150465,{'interactionId':_0x5893b4['id'],'replyId':_0x488b71['id'],'indexes':_0x120de1[_0x2fa06a(0x236)]()});}[_0xd34f13(0x189)](_0x146db5){const _0x2cc18c=_0xd34f13,_0x3bc242=_0x24a6e8(this[_0x2cc18c(0x216)]),_0x21b8f0=this[_0x2cc18c(0x216)][_0x2cc18c(0x243)][_0x2cc18c(0x176)](_0x15f896),{reply:_0x6bb69b,interaction:_0x41122b}=this[_0x2cc18c(0x22c)](_0x146db5[_0x2cc18c(0x1ef)]),_0xe1997f=this[_0x2cc18c(0x184)](_0x146db5[_0x2cc18c(0x1ef)],_0x146db5[_0x2cc18c(0x29c)]),_0x2d5f96=void 0x0!==_0x146db5[_0x2cc18c(0x29c)]?[_0x6bb69b[_0x2cc18c(0x23b)][_0x146db5[_0x2cc18c(0x29c)]]]:_0x6bb69b[_0x2cc18c(0x23b)][_0x2cc18c(0x163)](_0xb0b1fa=>_0x2cc18c(0x203)==_0xb0b1fa[_0x2cc18c(0x1b7)]),_0x550d4c=_0x2d5f96[_0x2cc18c(0x1b5)](_0x2a8f31=>_0x6bb69b[_0x2cc18c(0x23b)][_0x2cc18c(0x253)](_0x2a8f31));_0x550d4c[_0x2cc18c(0x1aa)](_0x3d6bae=>_0x6bb69b[_0x2cc18c(0x1b4)](_0x3d6bae,_0x2cc18c(0x262)));const _0x2f0da9=_0x48833e({'editor':_0x3bc242,'reply':_0x6bb69b,'interaction':_0x41122b,'groups':_0x2d5f96,'transform':!0x0,'documentCompare':_0x21b8f0,'documentCompareOptions':{'anchor':_0x2cc18c(0x1a1),'markDeletions':!0x1}});let _0x474b94;_0xe1997f&&this[_0x2cc18c(0x1d2)](_0xe1997f[_0x2cc18c(0x160)]),_0x3bc242[_0x2cc18c(0x1a3)][_0x2cc18c(0x1fb)](_0x508023=>{const _0x515b22=_0x2cc18c;_0x474b94=_0x508023[_0x515b22(0x257)];for(const _0x30488c of _0x2f0da9)_0x30488c[_0x515b22(0x23f)]=_0x3bc242[_0x515b22(0x1a3)][_0x515b22(0x29a)][_0x515b22(0x166)],_0x508023[_0x515b22(0x257)][_0x515b22(0x171)](_0x30488c),_0x3bc242[_0x515b22(0x1a3)][_0x515b22(0x1cf)](_0x30488c);}),this[_0x2cc18c(0x252)][_0x2cc18c(0x16f)](_0x474b94,{'interactionId':_0x41122b['id'],'replyId':_0x6bb69b['id'],'indexes':_0x550d4c[_0x2cc18c(0x236)]()});}[_0xd34f13(0x1c9)](_0x53128a,_0x10796d){const _0x2f67f2=_0xd34f13,_0x40c0a0=_0x24a6e8(this[_0x2f67f2(0x216)]),_0x16f7d8=this[_0x2f67f2(0x184)](_0x53128a,_0x10796d),_0x57c6f2=this[_0x2f67f2(0x216)][_0x2f67f2(0x243)][_0x2f67f2(0x176)](_0x4c5548);if(!_0x16f7d8)return void _0x57c6f2[_0x2f67f2(0x18d)]();const {range:_0x415a46,currentIndex:_0x1ae69a,previousIndex:_0x5e4fff,nextIndex:_0x2c6467}=_0x16f7d8;if(this[_0x2f67f2(0x1bc)]?.[_0x2f67f2(0x1ef)]==_0x53128a&&this[_0x2f67f2(0x1bc)]?.[_0x2f67f2(0x29c)]==_0x1ae69a)return;this[_0x2f67f2(0x1bc)]={'replyId':_0x53128a,'partIndex':_0x1ae69a};const _0x499ae2=new _0x4bf453(_0x40c0a0[_0x2f67f2(0x18a)],{'showDiff':this[_0x2f67f2(0x246)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x2f67f2(0x16b)},'hideHeader':!0x0}),{reply:_0x1d1bbb}=this[_0x2f67f2(0x22c)](_0x53128a),_0x4487ab=_0x2aabc7({'editor':_0x40c0a0,'changeGroups':[_0x1d1bbb[_0x2f67f2(0x23b)][_0x1ae69a]],'documentContextContent':_0x1d1bbb[_0x2f67f2(0x22f)],'showDiff':this[_0x2f67f2(0x246)]});_0x499ae2[_0x2f67f2(0x270)]({'parts':_0x4487ab,'renderingStrategy':_0x2f67f2(0x28e)});const _0x212116=_0x1ae69a!==_0x5e4fff;this[_0x2f67f2(0x1d2)](_0x415a46,!0x0),_0x57c6f2[_0x2f67f2(0x1ff)]({'index':_0x1ae69a,'title':_0x3c888f(this[_0x2f67f2(0x216)][_0x2f67f2(0x18a)],_0x2f67f2(0x254),(_0x1ae69a+0x1)[_0x2f67f2(0x23a)]()),'icon':_0x1cab71,'mainView':_0x499ae2,'showRotator':_0x212116,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x415a46]}),this[_0x2f67f2(0x1df)][_0x2f67f2(0x155)](_0x53128a,_0x1ae69a),this[_0x2f67f2(0x1a5)](_0x499ae2,_0x2f67f2(0x20d),(_0xddb5aa,{showDiff:_0x217741})=>{const _0xdf34c3=_0x2f67f2;this[_0xdf34c3(0x246)]=_0x217741;const {reply:_0x5ed6bc}=this[_0xdf34c3(0x22c)](_0x53128a),_0x3d1f80=_0x2aabc7({'editor':_0x40c0a0,'changeGroups':[_0x5ed6bc[_0xdf34c3(0x23b)][_0x1ae69a]],'documentContextContent':_0x5ed6bc[_0xdf34c3(0x22f)],'showDiff':_0x217741});_0x499ae2[_0xdf34c3(0x270)]({'parts':_0x3d1f80,'renderingStrategy':_0xdf34c3(0x28e)});}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x20c),()=>{const _0x277e2b=_0x2f67f2;this[_0x277e2b(0x189)]({'replyId':_0x53128a,'partIndex':_0x1ae69a}),_0x212116?this[_0x277e2b(0x1c9)](_0x53128a,_0x2c6467):_0x57c6f2[_0x277e2b(0x18d)]();}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x17e),()=>{const _0x4856e8=_0x2f67f2;this[_0x4856e8(0x28d)]({'replyId':_0x53128a,'partIndex':_0x1ae69a}),_0x212116?this[_0x4856e8(0x1c9)](_0x53128a,_0x2c6467):_0x57c6f2[_0x4856e8(0x18d)]();}),_0x212116&&(this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x196),()=>{const _0x417c69=_0x2f67f2;this[_0x417c69(0x1c9)](_0x53128a,_0x2c6467);}),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x20f),()=>{const _0x2dba83=_0x2f67f2;this[_0x2dba83(0x1c9)](_0x53128a,_0x5e4fff);})),this[_0x2f67f2(0x1a5)](_0x57c6f2,_0x2f67f2(0x1f3),()=>{const _0x341767=_0x2f67f2;this[_0x341767(0x299)](_0x57c6f2),this[_0x341767(0x299)](_0x499ae2),this[_0x341767(0x1bc)]=null;});}[_0xd34f13(0x184)](_0x1cf80c,_0x2e157e){const _0x513f42=_0xd34f13,_0x54f093=_0x24a6e8(this[_0x513f42(0x216)]),{reply:_0x329e55,interaction:_0xace11c}=this[_0x513f42(0x22c)](_0x1cf80c),_0x114482=_0x329e55[_0x513f42(0x23b)][_0x513f42(0x163)](_0x22cbc2=>_0x513f42(0x203)==_0x22cbc2[_0x513f42(0x1b7)]),_0x141d0f=_0x114482[_0x513f42(0x1b5)](_0x99d181=>_0x329e55[_0x513f42(0x23b)][_0x513f42(0x253)](_0x99d181));void 0x0===_0x2e157e&&(_0x2e157e=_0x141d0f[0x0]);const _0x3bc4b4=_0x141d0f[_0x513f42(0x253)](_0x2e157e);if(-0x1==_0x3bc4b4)return null;const _0x250b4d=0x0==_0x3bc4b4?_0x141d0f[_0x141d0f[_0x513f42(0x26e)]-0x1]:_0x141d0f[_0x3bc4b4-0x1],_0x249539=_0x3bc4b4==_0x141d0f[_0x513f42(0x26e)]-0x1?_0x141d0f[0x0]:_0x141d0f[_0x3bc4b4+0x1],_0x38b0f8=_0x114482[_0x3bc4b4],_0x1857cd=new _0x3c4540([]),_0x19ae2e=new _0x3c4540([]);for(const _0xb59073 of _0x38b0f8[_0x513f42(0x234)])if(_0x513f42(0x1b0)!=_0xb59073[_0x513f42(0x1e4)]&&_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0xb59073[_0x513f42(0x281)][_0x513f42(0x280)](!0x0)),_0x513f42(0x19c)!=_0xb59073[_0x513f42(0x1e4)]){const _0x46c797=_0x3eee92(_0x34ebd4=>_0x3ef17b(_0x34ebd4,_0x513f42(0x271))==_0xb59073['id'],_0x329e55[_0x513f42(0x22f)],!0x0);_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x46c797[_0x513f42(0x280)](!0x0));}if(0x0==_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x26e)]){if(_0x38b0f8[_0x513f42(0x234)][0x0][_0x513f42(0x1a0)]){const _0x9e1811=_0x232a5d(_0x513f42(0x271),_0x38b0f8[_0x513f42(0x234)][0x0][_0x513f42(0x1a0)],_0x329e55[_0x513f42(0x22f)]);_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x244)](_0x9e1811[_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x244)](_0x9e1811[_0x513f42(0x280)](!0x0)),_0x9e1811[_0x513f42(0x230)]&&(_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x9e1811[_0x513f42(0x230)][_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x9e1811[_0x513f42(0x230)][_0x513f42(0x280)](!0x0)));}else{const _0x44ce04=_0x329e55[_0x513f42(0x22f)][_0x513f42(0x1f1)][0x0];if(!_0x44ce04)return null;_0x1857cd[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x44ce04[_0x513f42(0x280)](!0x0)),_0x19ae2e[_0x513f42(0x1f1)][_0x513f42(0x18c)](_0x44ce04[_0x513f42(0x280)](!0x0));}}const _0x3e369c=_0xace11c[_0x513f42(0x220)](),_0x5d108e=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0x3e369c[_0x513f42(0x247)]),_0xbbc8ee=_0x4adf71(_0x1857cd),_0x55e367=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0xbbc8ee),_0x57608e=_0x54f093[_0x513f42(0x274)][_0x513f42(0x193)](_0xbbc8ee),_0x5274b3=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x188)](_0x55e367,0x0),_0xf01e18=_0x4adf71(_0x19ae2e),_0x1139dc={'anchor':_0x5274b3,'markDeletions':!0x1},_0x1edb67=_0x54f093[_0x513f42(0x243)][_0x513f42(0x176)](_0x15f896)[_0x513f42(0x20a)](_0xbbc8ee,_0xf01e18,_0x1139dc)[_0x513f42(0x16e)]();if(!_0x1edb67[_0x513f42(0x26e)])return null;_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1fb)](_0x55b363=>{const _0x13e203=_0x513f42;for(const _0xa3ffdb of _0x1edb67)if(_0x13e203(0x1b3)==_0xa3ffdb[_0x13e203(0x1e4)]){const _0x6ace33=_0xa3ffdb[_0x13e203(0x1ed)],_0xbec179=_0xa3ffdb[_0x13e203(0x1ce)],_0x2182ec=new _0x252c87(_0x6ace33,_0xbec179);_0x55b363[_0x13e203(0x257)][_0x13e203(0x171)](_0x2182ec),_0x54f093[_0x13e203(0x1a3)][_0x13e203(0x1cf)](_0x2182ec);}else _0xa3ffdb[_0x13e203(0x23f)]=null,_0xa3ffdb[_0x13e203(0x191)]=!0x1,_0x55b363[_0x13e203(0x257)][_0x13e203(0x171)](_0xa3ffdb),_0x54f093[_0x13e203(0x1a3)][_0x13e203(0x1cf)](_0xa3ffdb);});const _0x4c4ff9=_0x5bddc0(_0x54f093,_0x1edb67,_0x55e367);_0x3fda17(_0x54f093[_0x513f42(0x1a3)],_0x4c4ff9);const _0x100f89=_0x4c4ff9[_0x513f42(0x277)]()[_0x513f42(0x167)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x33dff5=_0x4c4ff9[_0x513f42(0x277)]()[_0x513f42(0x17d)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x264965=[];let _0x13ec2c=_0x55e367,_0x170af9=_0x57608e;for(let _0x26ee82=0x0;_0x26ee82<_0x33dff5[_0x513f42(0x26e)];_0x26ee82++){const _0xe83cf7=_0x13ec2c[_0x513f42(0x162)]-_0x33dff5[_0x26ee82];_0x264965[_0x26ee82]=_0x170af9[_0x513f42(0x162)]-_0xe83cf7,_0x13ec2c=_0x13ec2c[_0x513f42(0x175)](_0x33dff5[_0x26ee82]),_0x170af9=_0x170af9[_0x513f42(0x175)](_0x264965[_0x26ee82]);}const _0x17f6e6=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1ad)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x57608e,_0x100f89),_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x57608e,_0x264965)),_0x54f3a0=_0x57608e[_0x513f42(0x159)](0x0)[_0x513f42(0x24e)](_0x14590e),_0x5a1eb7=Array[_0x513f42(0x1f5)](_0x5d108e[_0x513f42(0x278)]())[_0x513f42(0x27c)](_0x5c8d25=>_0x5c8d25[_0x513f42(0x24e)](_0x14590e)==_0x54f3a0)[_0x513f42(0x222)](),_0x44e259=_0x17f6e6[_0x513f42(0x167)][_0x513f42(0x285)][_0x513f42(0x236)](),_0x13487b=_0x17f6e6[_0x513f42(0x17d)][_0x513f42(0x285)][_0x513f42(0x236)]();_0x44e259[0x0]=_0x5a1eb7[0x0]+_0x44e259[0x0],_0x13487b[0x0]=_0x5a1eb7[0x0]+_0x13487b[0x0];let _0x486d47=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1ad)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x1b6)](),_0x44e259),_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x1cb)](_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x1b6)](),_0x13487b));const _0x186913=_0x54f093[_0x513f42(0x1a3)][_0x513f42(0x29a)][_0x513f42(0x237)][_0x513f42(0x16e)](_0x3e369c[_0x513f42(0x166)]);for(const _0x3f1fe9 of _0x186913)_0x486d47=_0x34695c[_0x513f42(0x238)](_0x486d47[_0x513f42(0x1b8)](_0x3f1fe9));return{'range':_0x486d47,'previousIndex':_0x250b4d,'nextIndex':_0x249539,'currentIndex':_0x2e157e};}[_0xd34f13(0x224)](_0x1f540a){const _0x171f26=_0xd34f13;if(!_0x1f540a[_0x171f26(0x243)][_0x171f26(0x151)](_0x171f26(0x249)))return;const _0x8560d5=_0x1f540a[_0x171f26(0x198)][_0x171f26(0x176)](_0x171f26(0x227)),_0x30abee=_0x1f540a[_0x171f26(0x198)][_0x171f26(0x176)](_0x171f26(0x1e6));this[_0x171f26(0x1a5)](_0x8560d5,_0x171f26(0x1dc),(_0x5298b3,_0x1ef2d9,_0x57fce8)=>{const _0x33a029=_0x171f26,_0x43f48e=this[_0x33a029(0x252)][_0x33a029(0x176)](_0x1ef2d9);if(!_0x43f48e)return;const _0x157217=this[_0x33a029(0x26c)][_0x33a029(0x28a)](_0x43f48e[_0x33a029(0x16d)])[_0x33a029(0x164)](_0x43f48e[_0x33a029(0x1ef)]);_0x43f48e[_0x33a029(0x1e7)][_0x33a029(0x1aa)](_0x63d3b8=>_0x157217[_0x33a029(0x1b4)](_0x63d3b8,_0x33a029(0x203))),this[_0x33a029(0x252)][_0x33a029(0x1db)](_0x1ef2d9),this[_0x33a029(0x252)][_0x33a029(0x16f)](_0x57fce8,_0x43f48e);}),this[_0x171f26(0x1a5)](_0x30abee,_0x171f26(0x1dc),(_0x1b8737,_0x421358,_0x1b5ae8)=>{const _0x2cd166=_0x171f26,_0x265784=this[_0x2cd166(0x252)][_0x2cd166(0x176)](_0x421358);if(!_0x265784)return;const _0x9bee13=this[_0x2cd166(0x26c)][_0x2cd166(0x28a)](_0x265784[_0x2cd166(0x16d)])[_0x2cd166(0x164)](_0x265784[_0x2cd166(0x1ef)]);_0x265784[_0x2cd166(0x1e7)][_0x2cd166(0x1aa)](_0x63e3ee=>_0x9bee13[_0x2cd166(0x1b4)](_0x63e3ee,_0x2cd166(0x262))),this[_0x2cd166(0x252)][_0x2cd166(0x1db)](_0x421358),this[_0x2cd166(0x252)][_0x2cd166(0x16f)](_0x1b5ae8,_0x265784);});}async[_0xd34f13(0x1cc)](_0xe4a1e3){const _0x3315d7=_0xd34f13;this[_0x3315d7(0x216)][_0x3315d7(0x243)][_0x3315d7(0x176)](_0x4c5548)[_0x3315d7(0x18d)](),this[_0x3315d7(0x1df)][_0x3315d7(0x219)](_0x3315d7(0x28e)),this[_0x3315d7(0x1df)][_0x3315d7(0x18b)](!0x0),await this[_0x3315d7(0x1cd)]();try{const _0xc2c900=this[_0x3315d7(0x216)][_0x3315d7(0x243)][_0x3315d7(0x176)](_0x5cd7d6);this[_0x3315d7(0x1f7)]('\x20'),_0xc2c900[_0x3315d7(0x1e3)][_0x3315d7(0x15c)](_0x3315d7(0x22e)),await this[_0x3315d7(0x172)](_0xe4a1e3);const {sessionId:_0x2d687b}=this[_0x3315d7(0x15b)][_0x3315d7(0x1c1)]();await this[_0x3315d7(0x26c)][_0x3315d7(0x1c3)](_0xe4a1e3,_0x2d687b),this[_0x3315d7(0x26c)][_0x3315d7(0x199)]()&&this[_0x3315d7(0x26c)][_0x3315d7(0x245)](_0x3c888f(this[_0x3315d7(0x216)][_0x3315d7(0x18a)],_0x3315d7(0x263)));}catch(_0x46a103){console[_0x3315d7(0x275)](_0x3315d7(0x283),_0x46a103);}finally{this[_0x3315d7(0x1df)][_0x3315d7(0x219)](_0x3315d7(0x215)),this[_0x3315d7(0x1df)][_0x3315d7(0x18b)](!0x1);}}[_0xd34f13(0x20e)](_0x539663){const _0x2ab315=_0xd34f13;this[_0x2ab315(0x26c)]['id']===_0x539663&&this[_0x2ab315(0x172)]();}async[_0xd34f13(0x1eb)](){const _0x49e8cd=_0xd34f13,_0x5925c5=this[_0x49e8cd(0x15b)][_0x49e8cd(0x29b)]();this[_0x49e8cd(0x26c)]?.[_0x49e8cd(0x1c7)](_0x5925c5),this[_0x49e8cd(0x26c)]?.[_0x49e8cd(0x245)](_0x3c888f(this[_0x49e8cd(0x216)][_0x49e8cd(0x18a)],_0x49e8cd(0x263)));}[_0xd34f13(0x15e)](){const _0x51f54a=_0xd34f13;this[_0x51f54a(0x26c)]?.[_0x51f54a(0x1f6)]();}[_0xd34f13(0x153)](){const _0x3a9400=_0xd34f13;this[_0x3a9400(0x1df)][_0x3a9400(0x153)]();}async[_0xd34f13(0x297)](){const _0x299885=_0xd34f13;await this[_0x299885(0x172)]();}async[_0xd34f13(0x261)]({message:_0x43889e,quickActionData:_0x3b73db}){const _0x220c27=_0xd34f13;await this[_0x220c27(0x24d)]({'userMessage':_0x43889e,'quickActionData':_0x3b73db});}[_0xd34f13(0x26f)](){const _0x4e648b=_0xd34f13,_0xf3a7d8=this[_0x4e648b(0x216)][_0x4e648b(0x168)][_0x4e648b(0x176)](_0x4e648b(0x226));if(!_0xf3a7d8)throw new _0x4b6396(_0x4e648b(0x205),this);return _0xf3a7d8;}async[_0xd34f13(0x172)](_0x55e4be){const _0x415683=_0xd34f13,_0x3f53f7=this[_0x415683(0x216)][_0x415683(0x243)][_0x415683(0x176)](_0x4c5548);let _0x307d64;_0x3f53f7[_0x415683(0x25c)]&&_0x3f53f7[_0x415683(0x18d)](),_0x307d64=_0x55e4be||!this[_0x415683(0x26c)]?this[_0x415683(0x216)][_0x415683(0x168)][_0x415683(0x176)](_0x415683(0x25b)):this[_0x415683(0x26c)][_0x415683(0x18e)]['id'],await this[_0x415683(0x1cd)]();const _0x2e056b=this[_0x415683(0x26f)](),_0x19dc73=_0x55e4be||_0x23ccda();this[_0x415683(0x26c)]=new _0x35b316({'connector':this[_0x415683(0x223)],'chatModels':this[_0x415683(0x19f)],'defaultModelId':_0x307d64,'conversationId':_0x19dc73,'group':_0x2e056b,'getEditor':()=>_0x24a6e8(this[_0x415683(0x216)])}),this[_0x415683(0x26c)]['on'](_0x415683(0x251),(_0x59ef55,_0x49ea94)=>{const _0x3326d0=_0x415683;_0x49ea94[_0x3326d0(0x210)]=this[_0x3326d0(0x228)](_0x49ea94[_0x3326d0(0x210)],this[_0x3326d0(0x216)][_0x3326d0(0x168)][_0x3326d0(0x176)](_0x3326d0(0x170))),this[_0x3326d0(0x1df)][_0x3326d0(0x1ae)](_0x49ea94),this[_0x3326d0(0x1df)][_0x3326d0(0x289)](),this[_0x3326d0(0x1df)][_0x3326d0(0x17c)](),this[_0x3326d0(0x1df)][_0x3326d0(0x1ca)](),_0x55e4be||(this[_0x3326d0(0x1df)][_0x3326d0(0x288)](),this[_0x3326d0(0x26c)]?.[_0x3326d0(0x245)](_0x3c888f(this[_0x3326d0(0x216)][_0x3326d0(0x18a)],_0x3326d0(0x263))));}),this[_0x415683(0x26c)]['on'](_0x415683(0x21c),(_0x526168,_0x14c111)=>{const _0x34da3e=_0x415683;this[_0x34da3e(0x1df)][_0x34da3e(0x218)](_0x14c111[_0x34da3e(0x1c6)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x298),(_0x27a954,_0x52544d)=>{const _0x2ac664=_0x415683;this[_0x2ac664(0x1df)][_0x2ac664(0x1f8)](_0x52544d),this[_0x2ac664(0x1df)][_0x2ac664(0x21a)](_0x52544d);}),this[_0x415683(0x26c)]['on'](_0x415683(0x250),(_0x147ef6,_0x2c4fe4)=>{const _0x4b5199=_0x415683;this[_0x4b5199(0x1df)][_0x4b5199(0x24f)](_0x2c4fe4);}),this[_0x415683(0x26c)]['on'](_0x415683(0x256),async()=>{const _0x3afee0=_0x415683;await this[_0x3afee0(0x1df)][_0x3afee0(0x19d)]();}),this[_0x415683(0x26c)]['on'](_0x415683(0x1ee),(_0xd0e201,_0x496e28)=>{const _0x1ea0b5=_0x415683;this[_0x1ea0b5(0x1df)][_0x1ea0b5(0x235)](_0x496e28['id']);}),this[_0x415683(0x26c)]['on'](_0x415683(0x290),(_0x402224,_0x3fd0f2,_0x5052f4)=>{const _0x529457=_0x415683;this[_0x529457(0x1f7)](_0x3fd0f2,_0x5052f4);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1e8),(_0x1c24ea,_0x2663c9)=>{const _0x2f1069=_0x415683;this[_0x2f1069(0x1df)][_0x2f1069(0x1a8)]({'isVisible':!0x0,'id':_0x2663c9[_0x2f1069(0x16d)]}),_0x2f1069(0x1fa)===_0x2663c9[_0x2f1069(0x1e4)]?this[_0x2f1069(0x1df)][_0x2f1069(0x28c)](_0x2663c9):this[_0x2f1069(0x1df)][_0x2f1069(0x1a2)](_0x2663c9);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1f9),async(_0x5f4203,_0x1774ce,_0x2a9393)=>{const _0x16ad78=_0x415683;await this[_0x16ad78(0x197)]({'reply':_0x1774ce,'changeGroups':_0x2a9393});}),this[_0x415683(0x26c)]['on'](_0x415683(0x195),(_0x100a63,{reply:_0x2a7e27,index:_0x420534,state:_0x366b14})=>{const _0xbc4a5a=_0x415683;this[_0xbc4a5a(0x1df)][_0xbc4a5a(0x268)]({'id':_0x2a7e27['id'],'index':_0x420534,'state':_0x366b14});}),this[_0x415683(0x26c)]['on'](_0x415683(0x25a),(_0x26057a,_0x3ee83c)=>{const _0x23b90b=_0x415683;if(this[_0x23b90b(0x1df)][_0x23b90b(0x27f)](_0x3ee83c[_0x23b90b(0x255)],_0x3ee83c[_0x23b90b(0x1d3)]),_0x23b90b(0x1f0)===_0x3ee83c[_0x23b90b(0x255)][_0x23b90b(0x1e4)]){const _0x35ed85=[..._0x24a6e8(this[_0x23b90b(0x216)])[_0x23b90b(0x1a3)][_0x23b90b(0x29a)][_0x23b90b(0x1f0)][_0x23b90b(0x161)]()];this[_0x23b90b(0x15b)][_0x23b90b(0x1da)](_0x35ed85,_0x23b90b(0x24c)+this[_0x23b90b(0x26c)]?.['id']);}}),this[_0x415683(0x26c)]['on'](_0x415683(0x22a),(_0x305110,_0x558f49)=>{const _0x2f8379=_0x415683;this[_0x2f8379(0x1df)][_0x2f8379(0x27a)](_0x558f49[_0x2f8379(0x157)]),_0x2f8379(0x14e)==_0x558f49[_0x2f8379(0x157)]&&this[_0x2f8379(0x15e)](),_0x2f8379(0x1f0)===_0x558f49[_0x2f8379(0x1e4)]&&this[_0x2f8379(0x15b)][_0x2f8379(0x1c0)](_0x2f8379(0x24c)+this[_0x2f8379(0x26c)]?.['id']);}),this[_0x415683(0x26c)]['on'](_0x415683(0x217),(_0x1d6774,_0x247bce)=>{const _0x4a6700=_0x415683;this[_0x4a6700(0x1df)][_0x4a6700(0x169)](_0x247bce[_0x4a6700(0x255)][_0x4a6700(0x157)],_0x247bce[_0x4a6700(0x1d3)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x182),(_0x323929,_0xff41d5)=>{const _0x1835b8=_0x415683;this[_0x1835b8(0x1df)][_0x1835b8(0x16c)](_0xff41d5[_0x1835b8(0x206)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x259),(_0x2bfb97,_0x2e28f1)=>{const _0x5cec19=_0x415683;this[_0x5cec19(0x1df)][_0x5cec19(0x158)](_0x2e28f1[_0x5cec19(0x22b)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1a9),(_0x3addbf,_0x567020)=>{const _0x58a5c2=_0x415683;this[_0x58a5c2(0x1df)][_0x58a5c2(0x242)](_0x567020[_0x58a5c2(0x1dd)],_0x567020[_0x58a5c2(0x1bb)],_0x567020[_0x58a5c2(0x214)],_0x567020[_0x58a5c2(0x211)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x26a),(_0x54e7ec,_0x16d9c0)=>{const _0x2aed54=_0x415683;this[_0x2aed54(0x1df)][_0x2aed54(0x187)](_0x16d9c0[_0x2aed54(0x1dd)],_0x16d9c0[_0x2aed54(0x24b)],_0x16d9c0[_0x2aed54(0x173)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x208),(_0x5eccdc,_0x9a0a8d)=>{const _0x3b49ca=_0x415683;this[_0x3b49ca(0x1df)][_0x3b49ca(0x27d)](_0x9a0a8d);}),this[_0x415683(0x26c)]['on'](_0x415683(0x1fe),(_0x58e67c,_0x2e54bb)=>{const _0x36471e=_0x415683;this[_0x36471e(0x1df)][_0x36471e(0x1ea)](_0x2e54bb[_0x36471e(0x18e)],_0x2e54bb[_0x36471e(0x28f)]);}),this[_0x415683(0x26c)]['on'](_0x415683(0x275),(_0x56c56a,{error:_0x1fe2d0,interactionId:_0x3616b2,fileName:_0x440901,url:_0x836ce1,sourceId:_0x386de2,sourceLabel:_0x5de0f5})=>{const _0xc7d8ad=_0x415683,_0x37ed6a=_0x3616b2?_0x3616b2+':'+_0x23ccda():_0x23ccda();_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x276))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x1fd)]({'staticMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1ba)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1d0))||_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x296))?(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x291)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1b1))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x25f),_0x440901),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x186))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x183),_0x836ce1),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x180))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1de)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1d4))?this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x190)),'id':_0x37ed6a}):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x1c8))?(_0x386de2&&this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x17f)](_0x386de2),this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x1fc),_0x5de0f5||_0xc7d8ad(0x1bb)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):_0x1fe2d0[_0xc7d8ad(0x1d1)][_0xc7d8ad(0x1af)](_0xc7d8ad(0x21b))?(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x233)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0)):(this[_0xc7d8ad(0x1df)][_0xc7d8ad(0x229)]({'errorMessage':_0x3c888f(this[_0xc7d8ad(0x216)][_0xc7d8ad(0x18a)],_0xc7d8ad(0x27b)),'id':_0x37ed6a}),this[_0xc7d8ad(0x15a)](_0x1fe2d0));}),await this[_0x415683(0x26c)][_0x415683(0x204)](this[_0x415683(0x216)][_0x415683(0x168)][_0x415683(0x176)](_0x415683(0x292))),_0x55e4be||await this[_0x415683(0x26c)][_0x415683(0x167)]();}async[_0xd34f13(0x24d)]({userMessage:_0x65fa0a,quickActionData:_0x5f2d35}){const _0x39e787=_0xd34f13;if(!this[_0x39e787(0x26c)])throw new _0x4b6396(_0x39e787(0x1a4));this[_0x39e787(0x26c)][_0x39e787(0x15f)]()&&await this[_0x39e787(0x26c)][_0x39e787(0x225)](this[_0x39e787(0x15b)][_0x39e787(0x1c1)]()),this[_0x39e787(0x26c)]['id']&&this[_0x39e787(0x26c)][_0x39e787(0x179)]&&await this[_0x39e787(0x26c)][_0x39e787(0x185)]({'userMessage':_0x65fa0a,'quickActionData':_0x5f2d35}),this[_0x39e787(0x200)]();}[_0xd34f13(0x200)](){const _0x18b7fa=_0xd34f13,_0x1ee965=_0x24a6e8(this[_0x18b7fa(0x216)])[_0x18b7fa(0x1a3)],_0x336988=Array[_0x18b7fa(0x1f5)](_0x1ee965[_0x18b7fa(0x213)][_0x18b7fa(0x295)](_0x5d9f5d));_0x1ee965[_0x18b7fa(0x1fb)](_0x155b17=>{const _0x146396=_0x18b7fa;_0x336988[_0x146396(0x1aa)](_0x1300a0=>_0x155b17[_0x146396(0x207)](_0x1300a0));});}[_0xd34f13(0x1e9)](){const _0x19685f=_0xd34f13;console[_0x19685f(0x21e)](_0x19685f(0x21d));}[_0xd34f13(0x1f4)](_0x4d3cf2){const _0x1942fb=_0xd34f13;this[_0x1942fb(0x1df)][_0x1942fb(0x1e0)](_0x4d3cf2);}[_0xd34f13(0x15a)](_0xd501db){const _0x45e2d3=_0xd34f13;_0x422bdc(_0xd501db[_0x45e2d3(0x1d1)]);}[_0xd34f13(0x1d9)](_0x3d84e4){const _0x54d581=_0xd34f13;this[_0x54d581(0x26c)]?.[_0x54d581(0x1d8)](_0x3d84e4);}[_0xd34f13(0x17a)](){const _0xcbc03c=_0xd34f13;this[_0xcbc03c(0x26c)]?.[_0xcbc03c(0x181)]();}[_0xd34f13(0x14f)](){const _0x243dff=_0xd34f13;this[_0x243dff(0x26c)]?.[_0x243dff(0x279)]();}[_0xd34f13(0x22c)](_0x1af385){const _0x581dd8=_0xd34f13,[_0x5a6ea3,_0x1a6a76]=_0x1af385[_0x581dd8(0x19b)](':'),_0x5accbc=this[_0x581dd8(0x26c)][_0x581dd8(0x28a)](_0x5a6ea3),_0x5645cf=_0x5accbc[_0x581dd8(0x164)](_0x1a6a76);return{'interaction':_0x5accbc,'reply':_0x5645cf};}[_0xd34f13(0x1d2)](_0x59e820,_0x29069a=!0x1){const _0x2b9ce5=_0xd34f13,_0x495d43=_0x24a6e8(this[_0x2b9ce5(0x216)]),_0xdb92ff={'target':_0x495d43[_0x2b9ce5(0x1b9)][_0x2b9ce5(0x1e3)][_0x2b9ce5(0x284)][_0x2b9ce5(0x248)](_0x495d43[_0x2b9ce5(0x1b9)][_0x2b9ce5(0x16a)][_0x2b9ce5(0x27e)](_0x59e820)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x29069a};_0x29069a&&(_0xdb92ff[_0x2b9ce5(0x258)]=!0x0),_0x4020b8(_0xdb92ff);}[_0xd34f13(0x1f7)](_0x472a22,_0x51b1a6=!0x1){const _0x84a89f=_0xd34f13;this[_0x84a89f(0x1df)][_0x84a89f(0x290)](_0x472a22||_0x3c888f(this[_0x84a89f(0x216)][_0x84a89f(0x18a)],_0x84a89f(0x1b2)),_0x51b1a6);}[_0xd34f13(0x228)](_0x522695,_0x177df4){const _0x464830=_0xd34f13;let _0x131549;if(_0x177df4){_0x131549=[];const _0x128f66=_0x464830(0x24a)==typeof _0x177df4?[_0x177df4[_0x464830(0x150)]()]:_0x177df4[_0x464830(0x1b5)](_0x61091c=>_0x61091c[_0x464830(0x150)]());for(const _0x37345c of _0x128f66)for(const _0xaa82e0 of _0x522695)(_0xaa82e0['id'][_0x464830(0x150)]()===_0x37345c||_0xaa82e0[_0x464830(0x26d)][_0x464830(0x150)]()===_0x37345c||_0xaa82e0[_0x464830(0x1ec)][_0x464830(0x150)]()===_0x37345c||_0xaa82e0['id'][_0x464830(0x150)]()[_0x464830(0x1af)](_0x37345c))&&_0x131549[_0x464830(0x18c)](_0xaa82e0);}else _0x131549=_0x522695;return _0x131549;}async[_0xd34f13(0x197)]({reply:_0x5dc988,changeGroups:_0x34dcbd,renderingStrategy:_0x6b45fa}){const _0x1b7092=_0xd34f13,{id:_0x23d541,isDone:_0xfd66c9,type:_0x26b20d,parsedContent:_0x337eda}=_0x5dc988;if(_0x1b7092(0x266)===_0x26b20d){const _0x3e9592=_0x24a6e8(this[_0x1b7092(0x216)]),_0x56d142=_0x2aabc7({'editor':_0x3e9592,'showDiff':this[_0x1b7092(0x1df)][_0x1b7092(0x221)],'changeGroups':_0x34dcbd,'documentContextContent':_0x5dc988[_0x1b7092(0x22f)]});await this[_0x1b7092(0x1df)][_0x1b7092(0x294)]({'id':_0x23d541,'parts':_0x56d142,'renderingStrategy':_0x6b45fa,'isDone':_0xfd66c9});}else _0x1b7092(0x1fa)===_0x26b20d&&await this[_0x1b7092(0x1df)][_0x1b7092(0x260)]({'id':_0x23d541,'parsedContent':_0x337eda,'renderingStrategy':_0x6b45fa,'isDone':_0xfd66c9});_0xfd66c9&&_0x5dc988[_0x1b7092(0x241)][_0x1b7092(0x26e)]>0x0&&this[_0x1b7092(0x1df)][_0x1b7092(0x202)](_0x23d541,_0x5dc988[_0x1b7092(0x241)]);}async[_0xd34f13(0x1cd)](){const _0xe190de=_0xd34f13,_0x4e04a0=this[_0xe190de(0x26c)]?.[_0xe190de(0x239)];_0x4e04a0&&(_0x4e04a0[_0xe190de(0x192)](),this[_0xe190de(0x1df)][_0xe190de(0x232)](_0x4e04a0));}async[_0xd34f13(0x21f)](){const _0x59691c=_0xd34f13,_0x5115c6=this[_0x59691c(0x26c)]?.[_0x59691c(0x239)];if(_0x5115c6){for await(const _0x553add of _0x5115c6[_0x59691c(0x20b)])await this[_0x59691c(0x197)]({'reply':_0x553add,'changeGroups':_0x553add[_0x59691c(0x23b)],'renderingStrategy':_0x59691c(0x28e)});}}}function _0x23c1(){const _0x3c7068=['ai.chat.context','root','updateFeedItemAIReplySuggestionContent','getMarkersGroup','ai-chat-conversation-start-failed','startConversation','interactionCreated','stopListening','document','getSelectionText','partIndex','current-document','_toggleReasoning','toLocaleLowerCase','has','editors','focusPromptInput','AIChatController','scrollFeedToSuggestion','AITabs','uiId','setAddContextOptions','getChild','_logError','_aiEditing','activateTab','afterInit','removeSelectionFromChatContext','isCurrentDocumentInContext','range','getRanges','maxOffset','filter','getReply','3519132rVSLrP','version','start','config','setContextItemLoading','mapper','full','setConversationContext','interactionId','getOperations','set','ai.chat.models.displayedModels','addOperation','_handleStartConversation','isInContext','abortPromptStream','getChildAtOffset','get','selectModel','requires','isStarted','_toggleWebSearch','resizeTabs','clearPendingContextUI','end','insertSuggestion','closeSourceResourceBalloon','ai-chat-context-invalid-data','toggleWebSearch','contextSent','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','_getDocumentRangeForReplyChanges','handleUserInteraction','ai-chat-url-upload-failed','updateResourceState','createPositionAt','_applySuggestion','locale','toggleLoadingSkeleton','push','close','selectedModel','isPremiumPlugin','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','isDocumentOperation','stop','parse','addResourceToContext','replyChangeGroupStateUpdated','showNext','_updateReplyContent','commands','isCurrentDocumentInConversation','2023232yZFCIY','split','new','finishInteraction','AIConnector','_aiChatModels','anchorId','main','addFeedItemAISuggestion','model','ai-chat-controller-no-active-conversation','listenTo','loadSourceResources','AIEditing','updateFeedInteractionHeader','sourceResourcesLoaded','forEach','addDocumentToContext','_applyOperationsAsSuggestions','createRange','createConversation','startsWith','removed','ai-chat-file-upload-failed','AI_CHAT_UNTITLED_CONVERSATION','remove','setChangeGroupState','map','getRoot','state','getTransformedByOperation','editing','AI_CHAT_ABORTED_MESSAGE','source','_previewedChangeGroup','resource','mouseOverSuggestion','isOfficialPlugin','hideFakeVisualSelection','getDocumentData','add','load','AIChatUI','addUrlToContext','isUploadInProgress','addSelectionToContext','ai-chat-source-resources-load-failed','_openBalloonFor','clearConversationContextUI','createPositionFromPath','loadConversation','_stopLastInteraction','howMany','applyOperation','ai-chat-conversation-init-failed','message','_scrollToSuggestionRange','isLoading','ai-chat-context-unsupported-type','like','rejected','dislike','removeFromContext','_removeFromContext','showFakeVisualSelection','delete','revert','sourceId','AI_CHAT_CONTEXT_INVALID_DATA','_aiChatUi','setIsMaximized','setModel','resizedTabs','view','type','resize','redo','indexes','replyCreated','_showConversationHistory','setSelectedModel','addSelectionToChatContext','provider','sourcePosition','interactionDestroyed','replyId','selection','children','1143CeTujN','dialogClosed','_setIsMaximized','from','removeSelectionFromContext','updateConversationTitle','addFeedItemUserMessage','replyContentUpdated','text-delta','change','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','addFeedItemStaticMessage','modelSelected','open','_removeAISelectionMarkers','4805jaSQcZ','updateFeedItemAIReplySources','pending','init','ai-chat-missing-channel-id','contextItems','removeMarker','capabilitiesUpdated','TrackChangesEditing','getDiff','replies','applySuggestion','toggleSuggestionDisplayMode','handleRemovedConversation','showPrevious','availableModels','uid','Liked\x20response','markers','resources','streaming','context','contextItemLoadingEnded','setIsUploadInProgress','setFeedItemRenderingStrategy','addFeedInteractionHeader','ai-chat-resource-load-failed','uploadProgressChanged','Showing\x20conversation\x20history...','log','_flushLastInteractionUI','getDocumentContext','showDiff','getPath','_aiConnector','_integrateEditor','updateCurrentDocumentInContext','collaboration.channelId','undo','_filterModels','addFeedItemError','contextItemRemoved','options','getInteractionAndReplyById','Disliked\x20response','chat','documentContextContent','nextSibling','34756BWFeec','stopInteraction','AI_CHAT_RESOURCE_LOAD_FAILED','changes','removeFeedInteraction','slice','history','_createFromRanges','lastInteraction','toString','changeGroups','28984gifaJB','rootName','ai-chat-controller-mouse-over','baseVersion','$graveyard','sources','populateSourceResourceBalloon','plugins','unshift','addCurrentDocumentToContext','_balloonShowDiff','content','viewRangeToDom','Undo','string','resourceId','ai-conversation-','_handleUIUserMessage','getAttribute','startInteraction','interactionStarted','conversationInitialized','_batchToChanges','indexOf','AI_BALLOON_HEADER_TITLE','contextItem','interactionFinished','batch','alignToTop','addContextOptionsChanged','contextItemAdded','ai.chat.models.defaultModelId','isOpen','5843201sBxMWt','addFileToContext','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','updateFeedItemAIReplyContent','sendMessage','accepted','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','sendUserMessage','599589KezsJV','modification-delta','3774nrNArb','updateFeedItemAIReplySuggestionPartState','showChangeInText','resourceStateChanged','mouseLeaveSuggestion','activeConversation','name','length','getGroupId','updateContent','data-id','query','pluginName','data','error','ai-request-aborted','getFirstRange','getChildren','toggleReasoning','removeContextItem','AI_CHAT_GENERIC_ERROR','find','updateCapabilities','toViewRange','addContextItem','cloneNode','node','DocumentCompare','Failed\x20to\x20load\x20conversation','domConverter','path','addFilesToContext','rejectSuggestion','resetConversationTitle','resetMessageInput','getInteraction','ready','addFeedItemAIReply','_insertSuggestion','static','isDisabled','setConversationTitle','AI_CHAT_UNABLE_TO_START_CONVERSATION'];_0x23c1=function(){return _0x3c7068;};return _0x23c1();}
23
+ const _0x5ccb75=_0x77ff;(function(_0x5d202c,_0x4dc494){const _0x5953ca=_0x77ff,_0x1a314a=_0x5d202c();while(!![]){try{const _0x1a889b=-parseInt(_0x5953ca(0x200))/0x1+-parseInt(_0x5953ca(0x2a8))/0x2*(parseInt(_0x5953ca(0x29f))/0x3)+parseInt(_0x5953ca(0x24b))/0x4*(-parseInt(_0x5953ca(0x255))/0x5)+-parseInt(_0x5953ca(0x248))/0x6+-parseInt(_0x5953ca(0x227))/0x7*(parseInt(_0x5953ca(0x20c))/0x8)+-parseInt(_0x5953ca(0x2a1))/0x9+parseInt(_0x5953ca(0x241))/0xa;if(_0x1a889b===_0x4dc494)break;else _0x1a314a['push'](_0x1a314a['shift']());}catch(_0x55e894){_0x1a314a['push'](_0x1a314a['shift']());}}}(_0x34fb,0xc5484));import{ContextPlugin as _0x38ea84,Editor as _0x59994c}from'ckeditor5/src/core.js';function _0x77ff(_0x48cdc9,_0x132993){const _0x34fbcf=_0x34fb();return _0x77ff=function(_0x77ff13,_0x315318){_0x77ff13=_0x77ff13-0x18d;let _0x45228e=_0x34fbcf[_0x77ff13];return _0x45228e;},_0x77ff(_0x48cdc9,_0x132993);}import{CKEditorError as _0x175785,logError as _0x39aa5f,scrollViewportToShowTarget as _0x2b5e1d,uid as _0x4780ab}from'ckeditor5/src/utils.js';import{AIConnector as _0x4a511e}from'../aicore/aiconnector.js';import{AITabs as _0x37e958}from'../aitabs/aitabs.js';import{AIChatConversation as _0xafa66f}from'./model/aichatconversation.js';import{getTranslation as _0x1acc5f}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x55ea50}from'../aicore/aiediting.js';import{AIChatModels as _0x4ff5e}from'./model/aichatmodels.js';import{getEditorFromContext as _0xf681fe}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x571329,DATA_ID_MODEL_ATTRIBUTE as _0x214b0f}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2e0d63}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x11f371,getMinimalSelection as _0x3376ea,getSuggestionPartsFromReply as _0x8892ff}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x47ac46,_DetachOperation as _0xebdfd9}from'ckeditor5/src/engine.js';import{findOne as _0x40b3aa,getAttribute as _0x106f93,serialize as _0x3024ef,Document as _0x234039,findByAttribute as _0x4e3f7f}from'../aicore/utils/htmlparser.js';import{IconAI as _0x12fa78}from'@ckeditor/ckeditor5-icons';function _0x34fb(){const _0x2f4a50=['ai-request-aborted','chat','forEach','stopInteraction','Showing\x20conversation\x20history...','undo','removeContextItem','interactionFinished','_showConversationHistory','isPremiumPlugin','root','_removeFromContext','abortPromptStream','resetMessageInput','_previewedChangeGroup','isOpen','ai-conversation-','like','_stopLastInteraction','Failed\x20to\x20load\x20conversation','$graveyard','_openBalloonFor','main','showPrevious','resourceStateChanged','rejected','open','_logError','contextItems','listenTo','AI_CHAT_UNABLE_TO_START_CONVERSATION','init','isStarted','uploadProgressChanged','removeSelectionFromContext','replyCreated','showDiff','getChild','toggleLoadingSkeleton','query','streaming','addFeedItemAIReply','addCurrentDocumentToContext','message','commands','afterInit','ai-chat-file-upload-failed','interactionCreated','sendMessage','_flushLastInteractionUI','stop','AIEditing','current-document','accepted','resize','collaboration.channelId','documentContextContent','_filterModels','uiId','hideFakeVisualSelection','view','document','addFeedItemError','_aiEditing','requires','interactionId','removed','_getDocumentRangeForReplyChanges','closeSourceResourceBalloon','sources','contextItemAdded','error','setIsUploadInProgress','conversationInitialized','isOfficialPlugin','_setIsMaximized','unshift','sendUserMessage','data-id','getInteractionAndReplyById','_insertSuggestion','addUrlToContext','find','toViewRange','_applySuggestion','contextSent','isLoading','resource','DocumentCompare','handleUserInteraction','activeConversation','resources','addOperation','AITabs','remove','startInteraction','markers','isDocumentOperation','sourcePosition','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','ai-chat-source-resources-load-failed','indexes','contextItemRemoved','getChildAtOffset','editors','createRange','config','addSelectionToContext','startsWith','new','node','getAttribute','batch','createPositionFromPath','scrollFeedToSuggestion','history','ai-chat-controller-mouse-over','push','addFeedInteractionHeader','options','showNext','isUploadInProgress','_toggleReasoning','ai-chat-conversation-start-failed','_aiConnector','selection','pluginName','stopListening','delete','addDocumentToContext','setConversationContext','getPath','871016cUsUDB','AIChatController','locale','replies','text-delta','selectModel','domConverter','interactionDestroyed','getMarkersGroup','startConversation','has','toString','608XjEDTG','finishInteraction','populateSourceResourceBalloon','editing','setContextItemLoading','source','replyContentUpdated','map','clearPendingContextUI','_balloonShowDiff','range','ai-chat-context-invalid-data','replyId','getChildren','nextSibling','createPositionAt','revert','version','Liked\x20response','modification-delta','insertSuggestion','loadSourceResources','indexOf','viewRangeToDom','updateFeedItemAIReplySuggestionPartState','_handleUIUserMessage','close','13923UrVroV','applyOperation','_updateReplyContent','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','updateCapabilities','plugins','_createFromRanges','Undo','addContextItem','modelSelected','updateFeedItemAIReplySuggestionContent','split','baseVersion','_toggleWebSearch','howMany','toggleSuggestionDisplayMode','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','state','parse','_aiChatUi','contextItemLoadingEnded','replyChangeGroupStateUpdated','filter','partIndex','addContextOptionsChanged','toggleReasoning','43196050SDepVN','AI_BALLOON_HEADER_TITLE','mouseOverSuggestion','rejectSuggestion','updateFeedInteractionHeader','applySuggestion','focusPromptInput','724500NTgNpF','AI_CHAT_ABORTED_MESSAGE','toggleWebSearch','1269780GmMzBP','getGroupId','addFeedItemAISuggestion','_batchToChanges','resetConversationTitle','model','isInContext','uid','AI_CHAT_GENERIC_ERROR','availableModels','20FkzLzK','removeFromContext','isCurrentDocumentInConversation','AIConnector','Disliked\x20response','addFileToContext','getReply','AI_CHAT_RESOURCE_LOAD_FAILED','showFakeVisualSelection','setIsMaximized','removeSelectionFromChatContext','ai-chat-resource-load-failed','addSelectionToChatContext','_handleStartConversation','getSelectionText','get','isCurrentDocumentInContext','path','ai-chat-conversation-init-failed','log','ai-chat-url-upload-failed','isDisabled','createConversation','ai-chat-controller-no-active-conversation','getRoot','contextItem','content','ai.chat.models.defaultModelId','cloneNode','getDiff','setSelectedModel','children','getOperations','length','resourceId','_integrateEditor','updateResourceState','loadConversation','name','setAddContextOptions','removeFeedInteraction','getDocumentContext','setChangeGroupState','dislike','mouseLeaveSuggestion','data','anchorId','_removeAISelectionMarkers','ai-chat-missing-channel-id','ai.chat.context','resizedTabs','updateFeedItemAIReplySources','string','pending','addFilesToContext','_scrollToSuggestionRange','activateTab','removeMarker','toLocaleLowerCase','dialogClosed','set','_applyOperationsAsSuggestions','sourceResourcesLoaded','full','updateConversationTitle','ai-chat-context-unsupported-type','change','setFeedItemRenderingStrategy','getTransformedByOperation','TrackChangesEditing','end','addResourceToContext','getFirstRange','context','777hbOLHp','resizeTabs','1626048MtvPNf','updateContent','getRanges','selectedModel','mapper','setConversationTitle','clearConversationContextUI','7090hNEbdI','updateFeedItemAIReplyContent','lastInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','AI_CHAT_CONTEXT_INVALID_DATA','maxOffset','sourceId','redo','changeGroups','static','ready','type','AIChatUI','handleRemovedConversation','getDocumentData','ai.chat.models.displayedModels','changes','alignToTop','from','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','capabilitiesUpdated','start','updateCurrentDocumentInContext','rootName','provider','AI_CHAT_UNTITLED_CONVERSATION','addFeedItemStaticMessage','getInteraction','setModel','interactionStarted','load','_aiChatModels','slice','add','addFeedItemUserMessage','showChangeInText'];_0x34fb=function(){return _0x2f4a50;};return _0x34fb();}import{AISuggestionContainerView as _0x1038b6}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x1785af}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x38ea84{[_0x5ccb75(0x1bb)];[_0x5ccb75(0x1f8)];[_0x5ccb75(0x23a)];[_0x5ccb75(0x2c7)];[_0x5ccb75(0x24e)]=new Map();[_0x5ccb75(0x2da)]=null;[_0x5ccb75(0x215)]=!0x1;static get[_0x5ccb75(0x1bc)](){return[_0x4a511e,_0x1785af,_0x571329];}static get[_0x5ccb75(0x1fa)](){const _0x166cac=_0x5ccb75;return _0x166cac(0x201);}static get[_0x5ccb75(0x1c6)](){return!0x0;}static get[_0x5ccb75(0x2d5)](){return!0x0;}[_0x5ccb75(0x19b)](){const _0x21cd95=_0x5ccb75;this[_0x21cd95(0x1f8)]=this[_0x21cd95(0x29e)][_0x21cd95(0x22c)][_0x21cd95(0x264)](_0x21cd95(0x258)),this[_0x21cd95(0x23a)]=this[_0x21cd95(0x29e)][_0x21cd95(0x22c)][_0x21cd95(0x264)](_0x21cd95(0x2b4)),this[_0x21cd95(0x1bb)]=this[_0x21cd95(0x29e)][_0x21cd95(0x22c)][_0x21cd95(0x264)](_0x21cd95(0x1af)),this[_0x21cd95(0x2c7)]=new _0x4ff5e({'connector':this[_0x21cd95(0x1f8)]});const _0x4671d4=this[_0x21cd95(0x29e)][_0x21cd95(0x22c)][_0x21cd95(0x264)](_0x21cd95(0x1d9));this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x209),()=>{const _0x56d33a=_0x21cd95;this[_0x56d33a(0x262)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x1c9),(_0x54f60c,_0x1d1be)=>{const _0x376c8c=_0x21cd95;this[_0x376c8c(0x225)]({'userMessage':_0x1d1be});}),this[_0x21cd95(0x199)](_0x4671d4,_0x21cd95(0x287),(_0x395726,_0xb706b3)=>{const _0x4c9d3b=_0x21cd95;this[_0x4c9d3b(0x1c7)](_0xb706b3);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x2a0),()=>{const _0x45bc3d=_0x21cd95;_0x4671d4[_0x45bc3d(0x1b2)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x2d8),async()=>{const _0x1f2166=_0x21cd95;await this[_0x1f2166(0x18e)](),await this[_0x1f2166(0x1ad)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x1fd),()=>{const _0x4a3e8a=_0x21cd95;this[_0x4a3e8a(0x1d6)]?.[_0x4a3e8a(0x1a6)](_0x1acc5f(this[_0x4a3e8a(0x29e)][_0x4a3e8a(0x202)],_0x4a3e8a(0x2bb)));}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x25a),(_0x2952b5,_0x310f40)=>{const _0x4f8893=_0x21cd95;this[_0x4f8893(0x1d6)]?.[_0x4f8893(0x28b)](Array[_0x4f8893(0x2ba)](_0x310f40));}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x1cd),(_0x3d09df,_0x32ac1b)=>{const _0x3ea647=_0x21cd95;this[_0x3ea647(0x1d6)]?.[_0x3ea647(0x1cd)](_0x32ac1b);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x29c),(_0x5368f3,_0x1f0c05)=>{const _0x129c8a=_0x21cd95;this[_0x129c8a(0x1d6)]?.[_0x129c8a(0x29c)](_0x1f0c05[_0x129c8a(0x211)],_0x1f0c05[_0x129c8a(0x1d3)]);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x2d2),(_0x461a93,_0x115baa)=>{const _0x45ec34=_0x21cd95;this[_0x45ec34(0x2d7)](_0x115baa);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x221),(_0x240de8,_0x7ca23f)=>{const _0x54e27e=_0x21cd95;this[_0x54e27e(0x1d6)]?.[_0x54e27e(0x221)](_0x7ca23f[_0x54e27e(0x2ae)],_0x7ca23f[_0x54e27e(0x1a3)],_0x7ca23f[_0x54e27e(0x252)]);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x24a),()=>{const _0x116767=_0x21cd95;this[_0x116767(0x234)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x240),()=>{const _0x2dc651=_0x21cd95;this[_0x2dc651(0x1f6)]();}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x205),(_0x572fc4,_0x439712)=>{const _0xa977ee=_0x21cd95;this[_0xa977ee(0x1d6)]?.[_0xa977ee(0x2c4)](_0x439712);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x18d),(_0x4bb6c2,{replyId:_0x2891e2})=>{const _0x5935dd=_0x21cd95;console[_0x5935dd(0x268)](_0x5935dd(0x21e),_0x2891e2);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x280),(_0x4181c2,{replyId:_0x4fbf07})=>{const _0x57fc5f=_0x21cd95;console[_0x57fc5f(0x268)](_0x57fc5f(0x259),_0x4fbf07);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x220),(_0x3c44da,_0x820edc)=>{const _0x32cd95=_0x21cd95;this[_0x32cd95(0x29e)][_0x32cd95(0x22c)][_0x32cd95(0x264)](_0x1785af)[_0x32cd95(0x226)](),this[_0x32cd95(0x1cc)](_0x820edc);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x2cb),(_0x3ed690,{replyId:_0x5b05a2,partIndex:_0x4557bf})=>{const _0x17184b=_0x21cd95;this[_0x17184b(0x215)]=this[_0x17184b(0x23a)][_0x17184b(0x1a0)],this[_0x17184b(0x191)](_0x5b05a2,_0x4557bf);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x243),(_0x17a025,{replyId:_0x30cb45,partIndex:_0x138bfd})=>{const _0x5923c4=_0x21cd95,_0x4f1d69=this[_0x5923c4(0x1bf)](_0x30cb45,_0x138bfd);_0x4f1d69&&_0x5923c4(0x190)!=_0x4f1d69[_0x5923c4(0x216)][_0x5923c4(0x2d6)][_0x5923c4(0x2bf)]&&this[_0x5923c4(0x1bb)][_0x5923c4(0x25d)]([_0x4f1d69[_0x5923c4(0x216)]],_0x5923c4(0x1f0));}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x281),()=>{const _0x543937=_0x21cd95;this[_0x543937(0x1bb)][_0x543937(0x1b7)](_0x543937(0x1f0));}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x246),(_0xdf1838,_0x51fa64)=>{const _0x29e3c6=_0x21cd95;this[_0x29e3c6(0x29e)][_0x29e3c6(0x22c)][_0x29e3c6(0x264)](_0x1785af)[_0x29e3c6(0x226)](),this[_0x29e3c6(0x1d0)](_0x51fa64);}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x236),async(_0x124493,_0x385a8b)=>{const _0x11b6b6=_0x21cd95,{reply:_0x219d58}=this[_0x11b6b6(0x1cb)](_0x385a8b[_0x11b6b6(0x218)]),_0x56c3b7=_0xf681fe(this[_0x11b6b6(0x29e)]),_0x5c7943=_0x8892ff({'editor':_0x56c3b7,'changeGroups':_0x219d58[_0x11b6b6(0x2b0)],'documentContextContent':_0x219d58[_0x11b6b6(0x1b4)],'showDiff':_0x385a8b[_0x11b6b6(0x1a0)]});await this[_0x11b6b6(0x23a)][_0x11b6b6(0x231)]({'id':_0x219d58['id'],'parts':_0x5c7943,'renderingStrategy':_0x11b6b6(0x2b1)});}),this[_0x21cd95(0x199)](this[_0x21cd95(0x23a)],_0x21cd95(0x244),(_0x568608,{replyId:_0x170287,partIndex:_0x532def})=>{const _0x56c2db=_0x21cd95;this[_0x56c2db(0x2da)]?.[_0x56c2db(0x218)]==_0x170287&&this[_0x56c2db(0x2da)]?.[_0x56c2db(0x23e)]==_0x532def&&this[_0x56c2db(0x29e)][_0x56c2db(0x22c)][_0x56c2db(0x264)](_0x1785af)[_0x56c2db(0x226)]();const {reply:_0x1b86c1}=this[_0x56c2db(0x1cb)](_0x170287);_0x1b86c1[_0x56c2db(0x27f)](_0x532def,_0x56c2db(0x195)),this[_0x56c2db(0x1bb)][_0x56c2db(0x1b7)](_0x56c2db(0x1f0));});}async[_0x5ccb75(0x1a9)](){const _0x26461c=_0x5ccb75;this[_0x26461c(0x29e)]instanceof _0x59994c?this[_0x26461c(0x278)](this[_0x26461c(0x29e)]):this[_0x26461c(0x199)](this[_0x26461c(0x29e)][_0x26461c(0x1e4)],_0x26461c(0x2c9),(_0x5d2730,_0x3baf59)=>{const _0x47c97d=_0x26461c;_0x3baf59['on'](_0x47c97d(0x2b2),()=>{const _0x2b947e=_0x47c97d;this[_0x2b947e(0x278)](_0x3baf59);});}),await this[_0x26461c(0x262)]();}[_0x5ccb75(0x1cc)](_0x34df69){const _0x116cbc=_0x5ccb75,_0x3267de=_0xf681fe(this[_0x116cbc(0x29e)]);if(!_0x3267de[_0x116cbc(0x22c)][_0x116cbc(0x20a)](_0x116cbc(0x29a)))return;const _0x466ddd=this[_0x116cbc(0x29e)][_0x116cbc(0x22c)][_0x116cbc(0x264)](_0x116cbc(0x1d4)),{reply:_0x5441ea,interaction:_0x454549}=this[_0x116cbc(0x1cb)](_0x34df69[_0x116cbc(0x218)]),_0x351429=this[_0x116cbc(0x1bf)](_0x34df69[_0x116cbc(0x218)],_0x34df69[_0x116cbc(0x23e)]),_0x598144=void 0x0!==_0x34df69[_0x116cbc(0x23e)]?[_0x5441ea[_0x116cbc(0x2b0)][_0x34df69[_0x116cbc(0x23e)]]]:_0x5441ea[_0x116cbc(0x2b0)][_0x116cbc(0x23d)](_0x4b7e2d=>_0x116cbc(0x28a)==_0x4b7e2d[_0x116cbc(0x238)]),_0x1f9b90=_0x598144[_0x116cbc(0x213)](_0x402a19=>_0x5441ea[_0x116cbc(0x2b0)][_0x116cbc(0x222)](_0x402a19));_0x1f9b90[_0x116cbc(0x2ce)](_0x1f25ca=>_0x5441ea[_0x116cbc(0x27f)](_0x1f25ca,_0x116cbc(0x1b1)));const _0x433e29=_0x2e0d63({'editor':_0x3267de,'reply':_0x5441ea,'interaction':_0x454549,'groups':_0x598144,'transform':!0x0,'documentCompare':_0x466ddd,'documentCompareOptions':{'anchor':_0x116cbc(0x192),'markDeletions':!0x0}});let _0x262667;_0x351429&&this[_0x116cbc(0x28c)](_0x351429[_0x116cbc(0x216)]),_0x3267de[_0x116cbc(0x250)][_0x116cbc(0x297)](_0x1aad10=>{const _0x3b53ca=_0x116cbc;_0x262667=_0x1aad10[_0x3b53ca(0x1ec)],_0x3267de[_0x3b53ca(0x22c)][_0x3b53ca(0x264)](_0x3b53ca(0x29a))[_0x3b53ca(0x292)](_0x433e29),this[_0x3b53ca(0x1bb)][_0x3b53ca(0x1b7)](_0x3b53ca(0x1f0));}),this[_0x116cbc(0x24e)][_0x116cbc(0x291)](_0x262667,{'interactionId':_0x454549['id'],'replyId':_0x5441ea['id'],'indexes':_0x1f9b90[_0x116cbc(0x2c8)]()});}[_0x5ccb75(0x1d0)](_0x1dc724){const _0x2c930c=_0x5ccb75,_0x4d8b69=_0xf681fe(this[_0x2c930c(0x29e)]),_0x43f923=this[_0x2c930c(0x29e)][_0x2c930c(0x22c)][_0x2c930c(0x264)](_0x571329),{reply:_0xb490f1,interaction:_0x114db5}=this[_0x2c930c(0x1cb)](_0x1dc724[_0x2c930c(0x218)]),_0x2831b2=this[_0x2c930c(0x1bf)](_0x1dc724[_0x2c930c(0x218)],_0x1dc724[_0x2c930c(0x23e)]),_0x5d8219=void 0x0!==_0x1dc724[_0x2c930c(0x23e)]?[_0xb490f1[_0x2c930c(0x2b0)][_0x1dc724[_0x2c930c(0x23e)]]]:_0xb490f1[_0x2c930c(0x2b0)][_0x2c930c(0x23d)](_0x227752=>_0x2c930c(0x28a)==_0x227752[_0x2c930c(0x238)]),_0x34604f=_0x5d8219[_0x2c930c(0x213)](_0xaf16d4=>_0xb490f1[_0x2c930c(0x2b0)][_0x2c930c(0x222)](_0xaf16d4));_0x34604f[_0x2c930c(0x2ce)](_0x2dcd12=>_0xb490f1[_0x2c930c(0x27f)](_0x2dcd12,_0x2c930c(0x1b1)));const _0x22a56a=_0x2e0d63({'editor':_0x4d8b69,'reply':_0xb490f1,'interaction':_0x114db5,'groups':_0x5d8219,'transform':!0x0,'documentCompare':_0x43f923,'documentCompareOptions':{'anchor':_0x2c930c(0x192),'markDeletions':!0x1}});let _0x1c5d71;_0x2831b2&&this[_0x2c930c(0x28c)](_0x2831b2[_0x2c930c(0x216)]),_0x4d8b69[_0x2c930c(0x250)][_0x2c930c(0x297)](_0x128c7b=>{const _0x509929=_0x2c930c;_0x1c5d71=_0x128c7b[_0x509929(0x1ec)];for(const _0x36835d of _0x22a56a)_0x36835d[_0x509929(0x233)]=_0x4d8b69[_0x509929(0x250)][_0x509929(0x1b9)][_0x509929(0x21d)],_0x128c7b[_0x509929(0x1ec)][_0x509929(0x1d8)](_0x36835d),_0x4d8b69[_0x509929(0x250)][_0x509929(0x228)](_0x36835d);}),this[_0x2c930c(0x24e)][_0x2c930c(0x291)](_0x1c5d71,{'interactionId':_0x114db5['id'],'replyId':_0xb490f1['id'],'indexes':_0x34604f[_0x2c930c(0x2c8)]()});}[_0x5ccb75(0x191)](_0x249a76,_0x326266){const _0x36e621=_0x5ccb75,_0x395a55=_0xf681fe(this[_0x36e621(0x29e)]),_0x395f2c=this[_0x36e621(0x1bf)](_0x249a76,_0x326266),_0xf3fc05=this[_0x36e621(0x29e)][_0x36e621(0x22c)][_0x36e621(0x264)](_0x1785af);if(!_0x395f2c)return void _0xf3fc05[_0x36e621(0x226)]();const {range:_0x23bab7,currentIndex:_0x423fe3,previousIndex:_0x4c5cc5,nextIndex:_0x3c375b}=_0x395f2c;if(this[_0x36e621(0x2da)]?.[_0x36e621(0x218)]==_0x249a76&&this[_0x36e621(0x2da)]?.[_0x36e621(0x23e)]==_0x423fe3)return;this[_0x36e621(0x2da)]={'replyId':_0x249a76,'partIndex':_0x423fe3};const _0xe7d04f=new _0x1038b6(_0x395a55[_0x36e621(0x202)],{'showDiff':this[_0x36e621(0x215)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x36e621(0x294)},'hideHeader':!0x0}),{reply:_0x1e1166}=this[_0x36e621(0x1cb)](_0x249a76),_0x56c3f2=_0x8892ff({'editor':_0x395a55,'changeGroups':[_0x1e1166[_0x36e621(0x2b0)][_0x423fe3]],'documentContextContent':_0x1e1166[_0x36e621(0x1b4)],'showDiff':this[_0x36e621(0x215)]});_0xe7d04f[_0x36e621(0x2a2)]({'parts':_0x56c3f2,'renderingStrategy':_0x36e621(0x2b1)});const _0x329671=_0x423fe3!==_0x4c5cc5;this[_0x36e621(0x28c)](_0x23bab7,!0x0),_0xf3fc05[_0x36e621(0x196)]({'index':_0x423fe3,'title':_0x1acc5f(this[_0x36e621(0x29e)][_0x36e621(0x202)],_0x36e621(0x242),(_0x423fe3+0x1)[_0x36e621(0x20b)]()),'icon':_0x12fa78,'mainView':_0xe7d04f,'showRotator':_0x329671,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x23bab7]}),this[_0x36e621(0x23a)][_0x36e621(0x1ee)](_0x249a76,_0x423fe3),this[_0x36e621(0x199)](_0xe7d04f,_0x36e621(0x236),(_0x3c9a69,{showDiff:_0x4f4df7})=>{const _0x1eafaa=_0x36e621;this[_0x1eafaa(0x215)]=_0x4f4df7;const {reply:_0x44cbb9}=this[_0x1eafaa(0x1cb)](_0x249a76),_0x2742b5=_0x8892ff({'editor':_0x395a55,'changeGroups':[_0x44cbb9[_0x1eafaa(0x2b0)][_0x423fe3]],'documentContextContent':_0x44cbb9[_0x1eafaa(0x1b4)],'showDiff':_0x4f4df7});_0xe7d04f[_0x1eafaa(0x2a2)]({'parts':_0x2742b5,'renderingStrategy':_0x1eafaa(0x2b1)});}),this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x246),()=>{const _0x6c06ca=_0x36e621;this[_0x6c06ca(0x1d0)]({'replyId':_0x249a76,'partIndex':_0x423fe3}),_0x329671?this[_0x6c06ca(0x191)](_0x249a76,_0x3c375b):_0xf3fc05[_0x6c06ca(0x226)]();}),this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x220),()=>{const _0x258362=_0x36e621;this[_0x258362(0x1cc)]({'replyId':_0x249a76,'partIndex':_0x423fe3}),_0x329671?this[_0x258362(0x191)](_0x249a76,_0x3c375b):_0xf3fc05[_0x258362(0x226)]();}),_0x329671&&(this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x1f4),()=>{const _0x4f0df5=_0x36e621;this[_0x4f0df5(0x191)](_0x249a76,_0x3c375b);}),this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x193),()=>{const _0x4311e2=_0x36e621;this[_0x4311e2(0x191)](_0x249a76,_0x4c5cc5);})),this[_0x36e621(0x199)](_0xf3fc05,_0x36e621(0x290),()=>{const _0x436a4b=_0x36e621;this[_0x436a4b(0x1fb)](_0xf3fc05),this[_0x436a4b(0x1fb)](_0xe7d04f),this[_0x436a4b(0x2da)]=null;});}[_0x5ccb75(0x1bf)](_0x5b8db3,_0xbbd790){const _0x17d7bd=_0x5ccb75,_0x1427fa=_0xf681fe(this[_0x17d7bd(0x29e)]),{reply:_0x21a85b,interaction:_0x2671cb}=this[_0x17d7bd(0x1cb)](_0x5b8db3),_0x16f834=_0x21a85b[_0x17d7bd(0x2b0)][_0x17d7bd(0x23d)](_0xeb637a=>_0x17d7bd(0x28a)==_0xeb637a[_0x17d7bd(0x238)]),_0x20534b=_0x16f834[_0x17d7bd(0x213)](_0x3c705f=>_0x21a85b[_0x17d7bd(0x2b0)][_0x17d7bd(0x222)](_0x3c705f));void 0x0===_0xbbd790&&(_0xbbd790=_0x20534b[0x0]);const _0xc42e4b=_0x20534b[_0x17d7bd(0x222)](_0xbbd790);if(-0x1==_0xc42e4b)return null;const _0x258186=0x0==_0xc42e4b?_0x20534b[_0x20534b[_0x17d7bd(0x276)]-0x1]:_0x20534b[_0xc42e4b-0x1],_0x430cb7=_0xc42e4b==_0x20534b[_0x17d7bd(0x276)]-0x1?_0x20534b[0x0]:_0x20534b[_0xc42e4b+0x1],_0x22f36b=_0x16f834[_0xc42e4b],_0x5eb561=new _0x234039([]),_0x245ff5=new _0x234039([]);for(const _0x214aa3 of _0x22f36b[_0x17d7bd(0x2b8)])if(_0x17d7bd(0x1be)!=_0x214aa3[_0x17d7bd(0x2b3)]&&_0x245ff5[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x214aa3[_0x17d7bd(0x1ea)][_0x17d7bd(0x271)](!0x0)),_0x17d7bd(0x1e9)!=_0x214aa3[_0x17d7bd(0x2b3)]){const _0x224525=_0x40b3aa(_0x230077=>_0x106f93(_0x230077,_0x17d7bd(0x1ca))==_0x214aa3['id'],_0x21a85b[_0x17d7bd(0x1b4)],!0x0);_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x224525[_0x17d7bd(0x271)](!0x0));}if(0x0==_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x276)]){if(_0x22f36b[_0x17d7bd(0x2b8)][0x0][_0x17d7bd(0x283)]){const _0x174a46=_0x4e3f7f(_0x17d7bd(0x1ca),_0x22f36b[_0x17d7bd(0x2b8)][0x0][_0x17d7bd(0x283)],_0x21a85b[_0x17d7bd(0x1b4)]);_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x1c8)](_0x174a46[_0x17d7bd(0x271)](!0x0)),_0x245ff5[_0x17d7bd(0x274)][_0x17d7bd(0x1c8)](_0x174a46[_0x17d7bd(0x271)](!0x0)),_0x174a46[_0x17d7bd(0x21a)]&&(_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x174a46[_0x17d7bd(0x21a)][_0x17d7bd(0x271)](!0x0)),_0x245ff5[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x174a46[_0x17d7bd(0x21a)][_0x17d7bd(0x271)](!0x0)));}else{const _0x7eb988=_0x21a85b[_0x17d7bd(0x1b4)][_0x17d7bd(0x274)][0x0];if(!_0x7eb988)return null;_0x5eb561[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x7eb988[_0x17d7bd(0x271)](!0x0)),_0x245ff5[_0x17d7bd(0x274)][_0x17d7bd(0x1f1)](_0x7eb988[_0x17d7bd(0x271)](!0x0));}}const _0x294449=_0x2671cb[_0x17d7bd(0x27e)](),_0x299fc6=_0x1427fa[_0x17d7bd(0x282)][_0x17d7bd(0x239)](_0x294449[_0x17d7bd(0x26f)]),_0x3b8984=_0x3024ef(_0x5eb561),_0x235078=_0x1427fa[_0x17d7bd(0x282)][_0x17d7bd(0x239)](_0x3b8984),_0x3bb753=_0x1427fa[_0x17d7bd(0x282)][_0x17d7bd(0x239)](_0x3b8984),_0x1f8c55=_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x21b)](_0x235078,0x0),_0x5aa325=_0x3024ef(_0x245ff5),_0x2311f6={'anchor':_0x1f8c55,'markDeletions':!0x1},_0x4b78f3=_0x1427fa[_0x17d7bd(0x22c)][_0x17d7bd(0x264)](_0x571329)[_0x17d7bd(0x272)](_0x3b8984,_0x5aa325,_0x2311f6)[_0x17d7bd(0x275)]();if(!_0x4b78f3[_0x17d7bd(0x276)])return null;_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x297)](_0x5ef0c4=>{const _0x39ecbf=_0x17d7bd;for(const _0x4fe312 of _0x4b78f3)if(_0x39ecbf(0x1da)==_0x4fe312[_0x39ecbf(0x2b3)]){const _0x1331ae=_0x4fe312[_0x39ecbf(0x1de)],_0x2d3125=_0x4fe312[_0x39ecbf(0x235)],_0x47be5f=new _0xebdfd9(_0x1331ae,_0x2d3125);_0x5ef0c4[_0x39ecbf(0x1ec)][_0x39ecbf(0x1d8)](_0x47be5f),_0x1427fa[_0x39ecbf(0x250)][_0x39ecbf(0x228)](_0x47be5f);}else _0x4fe312[_0x39ecbf(0x233)]=null,_0x4fe312[_0x39ecbf(0x1dd)]=!0x1,_0x5ef0c4[_0x39ecbf(0x1ec)][_0x39ecbf(0x1d8)](_0x4fe312),_0x1427fa[_0x39ecbf(0x250)][_0x39ecbf(0x228)](_0x4fe312);});const _0x3d5c96=_0x3376ea(_0x1427fa,_0x4b78f3,_0x235078);_0x11f371(_0x1427fa[_0x17d7bd(0x250)],_0x3d5c96);const _0x4016ed=_0x3d5c96[_0x17d7bd(0x29d)]()[_0x17d7bd(0x2bd)][_0x17d7bd(0x266)][_0x17d7bd(0x2c8)](),_0x5a14e6=_0x3d5c96[_0x17d7bd(0x29d)]()[_0x17d7bd(0x29b)][_0x17d7bd(0x266)][_0x17d7bd(0x2c8)](),_0x259b45=[];let _0x4d7184=_0x235078,_0x15fd6a=_0x3bb753;for(let _0x55ffda=0x0;_0x55ffda<_0x5a14e6[_0x17d7bd(0x276)];_0x55ffda++){const _0x18b996=_0x4d7184[_0x17d7bd(0x2ad)]-_0x5a14e6[_0x55ffda];_0x259b45[_0x55ffda]=_0x15fd6a[_0x17d7bd(0x2ad)]-_0x18b996,_0x4d7184=_0x4d7184[_0x17d7bd(0x1e3)](_0x5a14e6[_0x55ffda]),_0x15fd6a=_0x15fd6a[_0x17d7bd(0x1e3)](_0x259b45[_0x55ffda]);}const _0x244755=_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1e5)](_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1ed)](_0x3bb753,_0x4016ed),_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1ed)](_0x3bb753,_0x259b45)),_0x3517be=_0x3bb753[_0x17d7bd(0x1a1)](0x0)[_0x17d7bd(0x1eb)](_0x214b0f),_0x422181=Array[_0x17d7bd(0x2ba)](_0x299fc6[_0x17d7bd(0x219)]())[_0x17d7bd(0x1ce)](_0x419899=>_0x419899[_0x17d7bd(0x1eb)](_0x214b0f)==_0x3517be)[_0x17d7bd(0x1ff)](),_0x20da90=_0x244755[_0x17d7bd(0x2bd)][_0x17d7bd(0x266)][_0x17d7bd(0x2c8)](),_0xae7ace=_0x244755[_0x17d7bd(0x29b)][_0x17d7bd(0x266)][_0x17d7bd(0x2c8)]();_0x20da90[0x0]=_0x422181[0x0]+_0x20da90[0x0],_0xae7ace[0x0]=_0x422181[0x0]+_0xae7ace[0x0];let _0x5c0033=_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1e5)](_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1ed)](_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1b9)][_0x17d7bd(0x26d)](),_0x20da90),_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1ed)](_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1b9)][_0x17d7bd(0x26d)](),_0xae7ace));const _0x136037=_0x1427fa[_0x17d7bd(0x250)][_0x17d7bd(0x1b9)][_0x17d7bd(0x1ef)][_0x17d7bd(0x275)](_0x294449[_0x17d7bd(0x21d)]);for(const _0x554b3d of _0x136037)_0x5c0033=_0x47ac46[_0x17d7bd(0x22d)](_0x5c0033[_0x17d7bd(0x299)](_0x554b3d));return{'range':_0x5c0033,'previousIndex':_0x258186,'nextIndex':_0x430cb7,'currentIndex':_0xbbd790};}[_0x5ccb75(0x278)](_0x24d71b){const _0xf9494=_0x5ccb75;if(!_0x24d71b[_0xf9494(0x22c)][_0xf9494(0x20a)](_0xf9494(0x22e)))return;const _0x2351ca=_0x24d71b[_0xf9494(0x1a8)][_0xf9494(0x264)](_0xf9494(0x2d1)),_0x1c5f20=_0x24d71b[_0xf9494(0x1a8)][_0xf9494(0x264)](_0xf9494(0x2af));this[_0xf9494(0x199)](_0x2351ca,_0xf9494(0x21c),(_0x13edf3,_0x1d5eb5,_0x1ca07d)=>{const _0x2384d8=_0xf9494,_0x31c1b7=this[_0x2384d8(0x24e)][_0x2384d8(0x264)](_0x1d5eb5);if(!_0x31c1b7)return;const _0x18fc14=this[_0x2384d8(0x1d6)][_0x2384d8(0x2c3)](_0x31c1b7[_0x2384d8(0x1bd)])[_0x2384d8(0x25b)](_0x31c1b7[_0x2384d8(0x218)]);_0x31c1b7[_0x2384d8(0x1e1)][_0x2384d8(0x2ce)](_0x5ec62c=>_0x18fc14[_0x2384d8(0x27f)](_0x5ec62c,_0x2384d8(0x28a))),this[_0x2384d8(0x24e)][_0x2384d8(0x1fc)](_0x1d5eb5),this[_0x2384d8(0x24e)][_0x2384d8(0x291)](_0x1ca07d,_0x31c1b7);}),this[_0xf9494(0x199)](_0x1c5f20,_0xf9494(0x21c),(_0xacdfbc,_0x2aa75f,_0x4715f8)=>{const _0x274d52=_0xf9494,_0x545dea=this[_0x274d52(0x24e)][_0x274d52(0x264)](_0x2aa75f);if(!_0x545dea)return;const _0x2b69c0=this[_0x274d52(0x1d6)][_0x274d52(0x2c3)](_0x545dea[_0x274d52(0x1bd)])[_0x274d52(0x25b)](_0x545dea[_0x274d52(0x218)]);_0x545dea[_0x274d52(0x1e1)][_0x274d52(0x2ce)](_0xa49bf9=>_0x2b69c0[_0x274d52(0x27f)](_0xa49bf9,_0x274d52(0x1b1))),this[_0x274d52(0x24e)][_0x274d52(0x1fc)](_0x2aa75f),this[_0x274d52(0x24e)][_0x274d52(0x291)](_0x4715f8,_0x545dea);});}async[_0x5ccb75(0x27a)](_0x209707){const _0x2e9179=_0x5ccb75;this[_0x2e9179(0x29e)][_0x2e9179(0x22c)][_0x2e9179(0x264)](_0x1785af)[_0x2e9179(0x226)](),this[_0x2e9179(0x23a)][_0x2e9179(0x298)](_0x2e9179(0x2b1)),this[_0x2e9179(0x23a)][_0x2e9179(0x1a2)](!0x0),await this[_0x2e9179(0x18e)]();try{const _0x15c0f1=this[_0x2e9179(0x29e)][_0x2e9179(0x22c)][_0x2e9179(0x264)](_0x37e958);this[_0x2e9179(0x295)]('\x20'),_0x15c0f1[_0x2e9179(0x1b8)][_0x2e9179(0x28d)](_0x2e9179(0x2cd)),await this[_0x2e9179(0x262)](_0x209707);const {sessionId:_0xca56ac}=this[_0x2e9179(0x1bb)][_0x2e9179(0x2b6)]();await this[_0x2e9179(0x1d6)][_0x2e9179(0x2c6)](_0x209707,_0xca56ac),this[_0x2e9179(0x1d6)][_0x2e9179(0x257)]()&&this[_0x2e9179(0x1d6)][_0x2e9179(0x1a6)](_0x1acc5f(this[_0x2e9179(0x29e)][_0x2e9179(0x202)],_0x2e9179(0x2bb)));}catch(_0x4c132e){console[_0x2e9179(0x1c3)](_0x2e9179(0x18f),_0x4c132e);}finally{this[_0x2e9179(0x23a)][_0x2e9179(0x298)](_0x2e9179(0x1a4)),this[_0x2e9179(0x23a)][_0x2e9179(0x1a2)](!0x1);}}[_0x5ccb75(0x2b5)](_0x2301ea){const _0x4cb525=_0x5ccb75;this[_0x4cb525(0x1d6)]['id']===_0x2301ea&&this[_0x4cb525(0x262)]();}async[_0x5ccb75(0x261)](){const _0x2da06f=_0x5ccb75,_0x5055a4=this[_0x2da06f(0x1bb)][_0x2da06f(0x263)]();this[_0x2da06f(0x1d6)]?.[_0x2da06f(0x1e7)](_0x5055a4),this[_0x2da06f(0x1d6)]?.[_0x2da06f(0x1a6)](_0x1acc5f(this[_0x2da06f(0x29e)][_0x2da06f(0x202)],_0x2da06f(0x2bb)));}[_0x5ccb75(0x25f)](){const _0x4710be=_0x5ccb75;this[_0x4710be(0x1d6)]?.[_0x4710be(0x19e)]();}[_0x5ccb75(0x247)](){const _0x130e54=_0x5ccb75;this[_0x130e54(0x23a)][_0x130e54(0x247)]();}async[_0x5ccb75(0x209)](){const _0x425266=_0x5ccb75;await this[_0x425266(0x262)]();}async[_0x5ccb75(0x1ac)]({message:_0x3aef4d,quickActionData:_0x21e61a}){const _0x4a3d2b=_0x5ccb75;await this[_0x4a3d2b(0x225)]({'userMessage':_0x3aef4d,'quickActionData':_0x21e61a});}[_0x5ccb75(0x24c)](){const _0x11e5f4=_0x5ccb75,_0x1cffad=this[_0x11e5f4(0x29e)][_0x11e5f4(0x1e6)][_0x11e5f4(0x264)](_0x11e5f4(0x1b3));if(!_0x1cffad)throw new _0x175785(_0x11e5f4(0x285),this);return _0x1cffad;}async[_0x5ccb75(0x262)](_0x5f318f){const _0x258695=_0x5ccb75,_0xbc804a=this[_0x258695(0x29e)][_0x258695(0x22c)][_0x258695(0x264)](_0x1785af);let _0x4dfcc2;_0xbc804a[_0x258695(0x2db)]&&_0xbc804a[_0x258695(0x226)](),_0x4dfcc2=_0x5f318f||!this[_0x258695(0x1d6)]?this[_0x258695(0x29e)][_0x258695(0x1e6)][_0x258695(0x264)](_0x258695(0x270)):this[_0x258695(0x1d6)][_0x258695(0x2a4)]['id'],await this[_0x258695(0x18e)]();const _0x6a3c82=this[_0x258695(0x24c)](),_0x198b6a=_0x5f318f||_0x4780ab();this[_0x258695(0x1d6)]=new _0xafa66f({'connector':this[_0x258695(0x1f8)],'chatModels':this[_0x258695(0x2c7)],'defaultModelId':_0x4dfcc2,'conversationId':_0x198b6a,'group':_0x6a3c82,'getEditor':()=>_0xf681fe(this[_0x258695(0x29e)])}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1c5),(_0x3ca173,_0x320b5f)=>{const _0x277c99=_0x258695;_0x320b5f[_0x277c99(0x254)]=this[_0x277c99(0x1b5)](_0x320b5f[_0x277c99(0x254)],this[_0x277c99(0x29e)][_0x277c99(0x1e6)][_0x277c99(0x264)](_0x277c99(0x2b7))),this[_0x277c99(0x23a)][_0x277c99(0x26b)](_0x320b5f),this[_0x277c99(0x23a)][_0x277c99(0x2d9)](),this[_0x277c99(0x23a)][_0x277c99(0x214)](),this[_0x277c99(0x23a)][_0x277c99(0x2a7)](),_0x5f318f||(this[_0x277c99(0x23a)][_0x277c99(0x24f)](),this[_0x277c99(0x1d6)]?.[_0x277c99(0x1a6)](_0x1acc5f(this[_0x277c99(0x29e)][_0x277c99(0x202)],_0x277c99(0x2bb))));}),this[_0x258695(0x1d6)]['on'](_0x258695(0x19d),(_0x3acdaa,_0x58fb54)=>{const _0x20b9d4=_0x258695;this[_0x20b9d4(0x23a)][_0x20b9d4(0x1c4)](_0x58fb54[_0x20b9d4(0x1f5)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1ab),(_0x4370dc,_0x319089)=>{const _0x163d01=_0x258695;this[_0x163d01(0x23a)][_0x163d01(0x2ca)](_0x319089),this[_0x163d01(0x23a)][_0x163d01(0x1f2)](_0x319089);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x2c5),(_0x4d2095,_0x1724b6)=>{const _0x5ceecb=_0x258695;this[_0x5ceecb(0x23a)][_0x5ceecb(0x1db)](_0x1724b6);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x2d3),async()=>{const _0x503627=_0x258695;await this[_0x503627(0x23a)][_0x503627(0x20d)]();}),this[_0x258695(0x1d6)]['on'](_0x258695(0x207),(_0x19e402,_0x505fbf)=>{const _0x4d0f4f=_0x258695;this[_0x4d0f4f(0x23a)][_0x4d0f4f(0x27d)](_0x505fbf['id']);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x2a6),(_0x503b84,_0x5830c8,_0x440618)=>{const _0x1a7158=_0x258695;this[_0x1a7158(0x295)](_0x5830c8,_0x440618);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x19f),(_0x21aa81,_0x42a0fb)=>{const _0x213e14=_0x258695;this[_0x213e14(0x23a)][_0x213e14(0x245)]({'isVisible':!0x0,'id':_0x42a0fb[_0x213e14(0x1bd)]}),_0x213e14(0x204)===_0x42a0fb[_0x213e14(0x2b3)]?this[_0x213e14(0x23a)][_0x213e14(0x1a5)](_0x42a0fb):this[_0x213e14(0x23a)][_0x213e14(0x24d)](_0x42a0fb);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x212),async(_0x5e26a7,_0x329f91,_0x3e1d6a)=>{const _0x19f2ae=_0x258695;await this[_0x19f2ae(0x229)]({'reply':_0x329f91,'changeGroups':_0x3e1d6a});}),this[_0x258695(0x1d6)]['on'](_0x258695(0x23c),(_0x595fc1,{reply:_0xedfd48,index:_0x47dad3,state:_0x172f1c})=>{const _0x30ecc0=_0x258695;this[_0x30ecc0(0x23a)][_0x30ecc0(0x224)]({'id':_0xedfd48['id'],'index':_0x47dad3,'state':_0x172f1c});}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1c2),(_0x45584b,_0x3a5102)=>{const _0x1ee27b=_0x258695;if(this[_0x1ee27b(0x23a)][_0x1ee27b(0x22f)](_0x3a5102[_0x1ee27b(0x26e)],_0x3a5102[_0x1ee27b(0x1d2)]),_0x1ee27b(0x1f9)===_0x3a5102[_0x1ee27b(0x26e)][_0x1ee27b(0x2b3)]){const _0x59392a=[..._0xf681fe(this[_0x1ee27b(0x29e)])[_0x1ee27b(0x250)][_0x1ee27b(0x1b9)][_0x1ee27b(0x1f9)][_0x1ee27b(0x2a3)]()];this[_0x1ee27b(0x1bb)][_0x1ee27b(0x25d)](_0x59392a,_0x1ee27b(0x2dc)+this[_0x1ee27b(0x1d6)]?.['id']);}}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1e2),(_0x3f3ba7,_0x3a1822)=>{const _0x285d11=_0x258695;this[_0x285d11(0x23a)][_0x285d11(0x2d2)](_0x3a1822[_0x285d11(0x1b6)]),_0x285d11(0x1b0)==_0x3a1822[_0x285d11(0x1b6)]&&this[_0x285d11(0x25f)](),_0x285d11(0x1f9)===_0x3a1822[_0x285d11(0x2b3)]&&this[_0x285d11(0x1bb)][_0x285d11(0x1b7)](_0x285d11(0x2dc)+this[_0x285d11(0x1d6)]?.['id']);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x23b),(_0x3dd467,_0x5be8e3)=>{const _0x299097=_0x258695;this[_0x299097(0x23a)][_0x299097(0x210)](_0x5be8e3[_0x299097(0x26e)][_0x299097(0x1b6)],_0x5be8e3[_0x299097(0x1d2)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1d1),(_0x18773a,_0xa8d908)=>{const _0xc104a6=_0x258695;this[_0xc104a6(0x23a)][_0xc104a6(0x1fe)](_0xa8d908[_0xc104a6(0x198)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x23f),(_0x10e756,_0x582025)=>{const _0x38a659=_0x258695;this[_0x38a659(0x23a)][_0x38a659(0x27c)](_0x582025[_0x38a659(0x1f3)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x293),(_0x4364ba,_0x3a1c1b)=>{const _0x322686=_0x258695;this[_0x322686(0x23a)][_0x322686(0x20e)](_0x3a1c1b[_0x322686(0x2ae)],_0x3a1c1b[_0x322686(0x211)],_0x3a1c1b[_0x322686(0x1d7)],_0x3a1c1b[_0x322686(0x252)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x194),(_0x59d62e,_0x44829d)=>{const _0x490aab=_0x258695;this[_0x490aab(0x23a)][_0x490aab(0x279)](_0x44829d[_0x490aab(0x2ae)],_0x44829d[_0x490aab(0x277)],_0x44829d[_0x490aab(0x251)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x2bc),(_0x820068,_0x3c437d)=>{const _0x53b565=_0x258695;this[_0x53b565(0x23a)][_0x53b565(0x22b)](_0x3c437d);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x230),(_0x1b52ae,_0x48d8ef)=>{const _0x11e977=_0x258695;this[_0x11e977(0x23a)][_0x11e977(0x273)](_0x48d8ef[_0x11e977(0x2a4)],_0x48d8ef[_0x11e977(0x26a)]);}),this[_0x258695(0x1d6)]['on'](_0x258695(0x1c3),(_0x27ddfc,{error:_0x4ac1b7,interactionId:_0x1fa6fb,fileName:_0x4fdadd,url:_0x5c9590,sourceId:_0x5bd340,sourceLabel:_0x460429})=>{const _0x4c120a=_0x258695,_0x2c0e62=_0x1fa6fb?_0x1fa6fb+':'+_0x4780ab():_0x4780ab();_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x2cc))?this[_0x4c120a(0x23a)][_0x4c120a(0x2c2)]({'staticMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x249)),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x267))||_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x1f7))?(this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x19a)),'id':_0x2c0e62}),this[_0x4c120a(0x197)](_0x4ac1b7)):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x1aa))?this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x2ab),_0x4fdadd),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x269))?this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x237),_0x5c9590),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x217))?this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x2ac)),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x296))?this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x22a)),'id':_0x2c0e62}):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x1e0))?(_0x5bd340&&this[_0x4c120a(0x23a)][_0x4c120a(0x1c0)](_0x5bd340),this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x1df),_0x460429||_0x4c120a(0x211)),'id':_0x2c0e62}),this[_0x4c120a(0x197)](_0x4ac1b7)):_0x4ac1b7[_0x4c120a(0x1a7)][_0x4c120a(0x1e8)](_0x4c120a(0x260))?(this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x25c)),'id':_0x2c0e62}),this[_0x4c120a(0x197)](_0x4ac1b7)):(this[_0x4c120a(0x23a)][_0x4c120a(0x1ba)]({'errorMessage':_0x1acc5f(this[_0x4c120a(0x29e)][_0x4c120a(0x202)],_0x4c120a(0x253)),'id':_0x2c0e62}),this[_0x4c120a(0x197)](_0x4ac1b7));}),await this[_0x258695(0x1d6)][_0x258695(0x19b)](this[_0x258695(0x29e)][_0x258695(0x1e6)][_0x258695(0x264)](_0x258695(0x286))),_0x5f318f||await this[_0x258695(0x1d6)][_0x258695(0x2bd)]();}async[_0x5ccb75(0x225)]({userMessage:_0xf38a46,quickActionData:_0x42ca77}){const _0x25945d=_0x5ccb75;if(!this[_0x25945d(0x1d6)])throw new _0x175785(_0x25945d(0x26c));this[_0x25945d(0x1d6)][_0x25945d(0x265)]()&&await this[_0x25945d(0x1d6)][_0x25945d(0x2be)](this[_0x25945d(0x1bb)][_0x25945d(0x2b6)]()),this[_0x25945d(0x1d6)]['id']&&this[_0x25945d(0x1d6)][_0x25945d(0x19c)]&&await this[_0x25945d(0x1d6)][_0x25945d(0x1d5)]({'userMessage':_0xf38a46,'quickActionData':_0x42ca77}),this[_0x25945d(0x284)]();}[_0x5ccb75(0x284)](){const _0x34e54e=_0x5ccb75,_0x474cf0=_0xf681fe(this[_0x34e54e(0x29e)])[_0x34e54e(0x250)],_0x39b7e0=Array[_0x34e54e(0x2ba)](_0x474cf0[_0x34e54e(0x1dc)][_0x34e54e(0x208)](_0x55ea50));_0x474cf0[_0x34e54e(0x297)](_0xe9b667=>{const _0x3d99a2=_0x34e54e;_0x39b7e0[_0x3d99a2(0x2ce)](_0xc2045b=>_0xe9b667[_0x3d99a2(0x28e)](_0xc2045b));});}[_0x5ccb75(0x2d4)](){const _0x3fe9db=_0x5ccb75;console[_0x3fe9db(0x268)](_0x3fe9db(0x2d0));}[_0x5ccb75(0x1c7)](_0x446f0e){const _0x3820b3=_0x5ccb75;this[_0x3820b3(0x23a)][_0x3820b3(0x25e)](_0x446f0e);}[_0x5ccb75(0x197)](_0x4be29a){const _0x1db312=_0x5ccb75;_0x39aa5f(_0x4be29a[_0x1db312(0x1a7)]);}[_0x5ccb75(0x2d7)](_0x56f1b2){const _0xb743ef=_0x5ccb75;this[_0xb743ef(0x1d6)]?.[_0xb743ef(0x256)](_0x56f1b2);}[_0x5ccb75(0x234)](){const _0x3bccb2=_0x5ccb75;this[_0x3bccb2(0x1d6)]?.[_0x3bccb2(0x24a)]();}[_0x5ccb75(0x1f6)](){const _0x14b8a8=_0x5ccb75;this[_0x14b8a8(0x1d6)]?.[_0x14b8a8(0x240)]();}[_0x5ccb75(0x1cb)](_0x11a510){const _0x4d6272=_0x5ccb75,[_0x36301d,_0x2035ca]=_0x11a510[_0x4d6272(0x232)](':'),_0x46fbb2=this[_0x4d6272(0x1d6)][_0x4d6272(0x2c3)](_0x36301d),_0x441b6b=_0x46fbb2[_0x4d6272(0x25b)](_0x2035ca);return{'interaction':_0x46fbb2,'reply':_0x441b6b};}[_0x5ccb75(0x28c)](_0x3828c5,_0x4add8b=!0x1){const _0x3c9097=_0x5ccb75,_0x31ddfc=_0xf681fe(this[_0x3c9097(0x29e)]),_0x3c895f={'target':_0x31ddfc[_0x3c9097(0x20f)][_0x3c9097(0x1b8)][_0x3c9097(0x206)][_0x3c9097(0x223)](_0x31ddfc[_0x3c9097(0x20f)][_0x3c9097(0x2a5)][_0x3c9097(0x1cf)](_0x3828c5)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x4add8b};_0x4add8b&&(_0x3c895f[_0x3c9097(0x2b9)]=!0x0),_0x2b5e1d(_0x3c895f);}[_0x5ccb75(0x295)](_0x53f299,_0x3127e1=!0x1){const _0x4ffad2=_0x5ccb75;this[_0x4ffad2(0x23a)][_0x4ffad2(0x2a6)](_0x53f299||_0x1acc5f(this[_0x4ffad2(0x29e)][_0x4ffad2(0x202)],_0x4ffad2(0x2c1)),_0x3127e1);}[_0x5ccb75(0x1b5)](_0xd68041,_0x40cda8){const _0x1722df=_0x5ccb75;let _0x3d4702;if(_0x40cda8){_0x3d4702=[];const _0x36c5fa=_0x1722df(0x289)==typeof _0x40cda8?[_0x40cda8[_0x1722df(0x28f)]()]:_0x40cda8[_0x1722df(0x213)](_0x27d1cc=>_0x27d1cc[_0x1722df(0x28f)]());for(const _0x19149d of _0x36c5fa)for(const _0x1bc293 of _0xd68041)(_0x1bc293['id'][_0x1722df(0x28f)]()===_0x19149d||_0x1bc293[_0x1722df(0x27b)][_0x1722df(0x28f)]()===_0x19149d||_0x1bc293[_0x1722df(0x2c0)][_0x1722df(0x28f)]()===_0x19149d||_0x1bc293['id'][_0x1722df(0x28f)]()[_0x1722df(0x1e8)](_0x19149d))&&_0x3d4702[_0x1722df(0x1f1)](_0x1bc293);}else _0x3d4702=_0xd68041;return _0x3d4702;}async[_0x5ccb75(0x229)]({reply:_0x377afc,changeGroups:_0x2bc0a9,renderingStrategy:_0x187b10}){const _0x3f539d=_0x5ccb75,{id:_0x24c6ca,isDone:_0x55316d,type:_0x4b6424,parsedContent:_0x3f6f3f}=_0x377afc;if(_0x3f539d(0x21f)===_0x4b6424){const _0x3db8e7=_0xf681fe(this[_0x3f539d(0x29e)]),_0x59af5e=_0x8892ff({'editor':_0x3db8e7,'showDiff':this[_0x3f539d(0x23a)][_0x3f539d(0x1a0)],'changeGroups':_0x2bc0a9,'documentContextContent':_0x377afc[_0x3f539d(0x1b4)]});await this[_0x3f539d(0x23a)][_0x3f539d(0x231)]({'id':_0x24c6ca,'parts':_0x59af5e,'renderingStrategy':_0x187b10,'isDone':_0x55316d});}else _0x3f539d(0x204)===_0x4b6424&&await this[_0x3f539d(0x23a)][_0x3f539d(0x2a9)]({'id':_0x24c6ca,'parsedContent':_0x3f6f3f,'renderingStrategy':_0x187b10,'isDone':_0x55316d});_0x55316d&&_0x377afc[_0x3f539d(0x1c1)][_0x3f539d(0x276)]>0x0&&this[_0x3f539d(0x23a)][_0x3f539d(0x288)](_0x24c6ca,_0x377afc[_0x3f539d(0x1c1)]);}async[_0x5ccb75(0x18e)](){const _0x50f3a9=_0x5ccb75,_0x434873=this[_0x50f3a9(0x1d6)]?.[_0x50f3a9(0x2aa)];_0x434873&&(_0x434873[_0x50f3a9(0x1ae)](),this[_0x50f3a9(0x23a)][_0x50f3a9(0x2cf)](_0x434873));}async[_0x5ccb75(0x1ad)](){const _0x1a3625=_0x5ccb75,_0x18f7ff=this[_0x1a3625(0x1d6)]?.[_0x1a3625(0x2aa)];if(_0x18f7ff){for await(const _0x376823 of _0x18f7ff[_0x1a3625(0x203)])await this[_0x1a3625(0x229)]({'reply':_0x376823,'changeGroups':_0x376823[_0x1a3625(0x2b0)],'renderingStrategy':_0x1a3625(0x2b1)});}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3b5382=_0x59d2;(function(_0x57c006,_0xfd9ce6){const _0x559a90=_0x59d2,_0x49006e=_0x57c006();while(!![]){try{const _0x429795=parseInt(_0x559a90(0x173))/0x1*(-parseInt(_0x559a90(0x101))/0x2)+parseInt(_0x559a90(0x10a))/0x3+parseInt(_0x559a90(0xe6))/0x4*(-parseInt(_0x559a90(0x121))/0x5)+parseInt(_0x559a90(0xde))/0x6*(parseInt(_0x559a90(0xea))/0x7)+-parseInt(_0x559a90(0x14b))/0x8*(parseInt(_0x559a90(0x138))/0x9)+parseInt(_0x559a90(0x159))/0xa*(-parseInt(_0x559a90(0x13b))/0xb)+parseInt(_0x559a90(0xe8))/0xc;if(_0x429795===_0xfd9ce6)break;else _0x49006e['push'](_0x49006e['shift']());}catch(_0x126a59){_0x49006e['push'](_0x49006e['shift']());}}}(_0x5b22,0x54330));import{ContextPlugin as _0x4ec831}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x2b4318}from'ckeditor5/src/utils.js';import{AIChatView as _0x5a28c8}from'./ui/aichatview.js';import{AITabs as _0x262287}from'../aitabs/aitabs.js';import{getTranslation as _0x4404f3}from'../aicore/utils/common-translations.js';function _0x5b22(){const _0x4632e9=['addItem','addContextItem','markFeedItemAsDone','options','removeContextItem','setFeedItemRenderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','queueEmptyPromise','clearConversationContextUI','_titleAnimationInterval','capabilities','bind','plugins','finishInteraction','contextItems','resetConversationTitle','startsWith','interactionId','setIsUploadInProgress','setReasoning','</p>','toggleLoadingSkeleton','focusPromptInput','pluginName','145957Qmxwco','updateFeedItemAIReplySuggestionContent','_promiseQueue','displayedPrompt','82122DYiuax','interaction-header','updateSuggestionPartState','updateFeedItemAIReplyContent','addFeedInteractionHeader','startInteraction','resetMessageInput','isPremiumPlugin','652rwPVKi','then','11852856iNJLWI','scrollFeedToSuggestion','91BXcWpy','updateReplyItem','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','delegate','AIChatUI','isBusy','setInputPlaceholder','setContextItemLoading','user-message','enqueue','feedItemRenderingStrategy','context','ai.chat.models.modelSelectorAlwaysVisible','abort','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','isVisible','view','_getInputPlaceholder','updateWebSources','forEach','availableModels','addFeedItemAIReply','_animateConversationTitle','2aHvDmG','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','addTab','AITabs','_getLoadingMessage','conversation-start','updateSuggestionItem','find','stopInteraction','464736qkVbAc','_view','removeItem','disableModelSelector','getItemIds','isPending','closeSourceResourceBalloon','AI_CHAT_HEADING','clear','ai-reply','stopAutoScroll','chat','from','isLoading','areActionsDisabled','updateFeedItemAIReplySuggestionPartState','updateFeedItemAIReplySources','chatControls','isWebSearchEnabled','streaming','filter','values','createConversation','9845qToDxS','populateSourceResourceBalloon','label','setConversationTitle','clearPendingContextUI','chatHeader','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','setAddContextOptions','get','chatFeed','addFeedItemError','setModel','toggleSuggestionDisplayMode','isOfficialPlugin','_interactionPromiseResolver','quickActionData','setModelList','destroy','requires','updateCapabilities','addFeedItemAISuggestion','setWebSearch','showResizeButton','471177bRvHvt','config','setSelectedModel','644853bHIZfu','startAutoScroll','setLoadingMessage','addFeedItemStaticMessage','updateFeedInteractionHeader','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','userMessage','isDone','set','setIsMaximized','length','setConversationContext','locale','updateResourceState','showDiff','AI_CHAT_WELCOME_MESSAGE','24pSLUfk','scrollToSuggestion','error-message','renderingStrategy','ai-suggestion-reply','children','enableModelSelector','removeFeedInteraction','isReasoningEnabled','addFeedItemUserMessage','<p>','isMaximized','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','markItemAsDone','60pzLrZQ','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING'];_0x5b22=function(){return _0x4632e9;};return _0x5b22();}function _0x59d2(_0x4ba91d,_0x3e6679){const _0x5b227a=_0x5b22();return _0x59d2=function(_0x59d20c,_0x6ec585){_0x59d20c=_0x59d20c-0xdb;let _0x1ce62=_0x5b227a[_0x59d20c];return _0x1ce62;},_0x59d2(_0x4ba91d,_0x3e6679);}import{IconAIChat as _0x4e1a1e}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x10621f}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1d6154}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x16ae80}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x4ec831{static get[_0x3b5382(0x133)](){return[_0x262287];}[_0x3b5382(0x10b)];static get[_0x3b5382(0x172)](){const _0x34ae2d=_0x3b5382;return _0x34ae2d(0xee);}static get[_0x3b5382(0x12e)](){return!0x0;}static get[_0x3b5382(0xe5)](){return!0x0;}[_0x3b5382(0xf4)]=_0x3b5382(0x11d);[_0x3b5382(0x149)]=!0x0;[_0x3b5382(0xdc)];[_0x3b5382(0x12f)];[_0x3b5382(0x164)]=void 0x0;constructor(_0x581d38){const _0x1d760e=_0x3b5382;super(_0x581d38);const _0x3b9f15=this[_0x1d760e(0xf5)][_0x1d760e(0x167)][_0x1d760e(0x129)](_0x1d760e(0x104));this[_0x1d760e(0x143)](_0x1d760e(0xef),!0x1),this[_0x1d760e(0xdc)]=new _0x1d6154(),this[_0x1d760e(0x10b)]=new _0x5a28c8(this[_0x1d760e(0xf5)][_0x1d760e(0x147)],_0x3b9f15[_0x1d760e(0x137)]),this[_0x1d760e(0x10b)][_0x1d760e(0xed)](..._0x16ae80)['to'](this),this[_0x1d760e(0x10b)]['on'](_0x1d760e(0x12d),(_0x55f128,{showDiff:_0x5d55c2})=>{const _0x18145e=_0x1d760e;this[_0x18145e(0x149)]=_0x5d55c2;}),_0x3b9f15[_0x1d760e(0xfa)][_0x1d760e(0x103)]({'id':_0x1d760e(0x115),'buttonLabel':_0x4404f3(this[_0x1d760e(0xf5)][_0x1d760e(0x147)],_0x1d760e(0x111)),'buttonIcon':_0x4e1a1e,'order':0x0,'content':this[_0x1d760e(0x10b)]}),this[_0x1d760e(0x10b)][_0x1d760e(0x11b)][_0x1d760e(0x166)](_0x1d760e(0x117))['to'](this,_0x1d760e(0xef),_0x2f171e=>_0x2f171e),this[_0x1d760e(0x10b)][_0x1d760e(0x12a)][_0x1d760e(0x166)](_0x1d760e(0x10f))['to'](this,_0x1d760e(0xef),_0x4994c8=>_0x4994c8),this[_0x1d760e(0x10b)][_0x1d760e(0x11b)][_0x1d760e(0xf0)](this[_0x1d760e(0xfb)]());}[_0x3b5382(0x132)](){const _0x8b2c9a=_0x3b5382;super[_0x8b2c9a(0x132)](),this[_0x8b2c9a(0x164)]&&clearInterval(this[_0x8b2c9a(0x164)]);}[_0x3b5382(0x120)](_0x4052d0){const _0x30880a=_0x3b5382;this[_0x30880a(0x10b)][_0x30880a(0x12a)][_0x30880a(0x112)](),this[_0x30880a(0x10b)][_0x30880a(0x11b)][_0x30880a(0x151)](),this[_0x30880a(0x10b)][_0x30880a(0x11b)][_0x30880a(0x131)](_0x4052d0[_0x30880a(0xfe)],!this[_0x30880a(0xf5)][_0x30880a(0x139)][_0x30880a(0x129)](_0x30880a(0xf6))),this[_0x30880a(0x13e)]({'id':_0x30880a(0x106),'staticMessage':_0x4404f3(this[_0x30880a(0xf5)][_0x30880a(0x147)],_0x30880a(0x14a))});}[_0x3b5382(0x13e)]({id:_0x101e58,staticMessage:_0x354e31}){const _0x5aafa8=_0x3b5382;this[_0x5aafa8(0x10b)][_0x5aafa8(0x12a)][_0x5aafa8(0x15b)](_0x5aafa8(0x113),{'id':_0x101e58,'initialContent':_0x5aafa8(0x155)+_0x354e31+_0x5aafa8(0x16f)});}[_0x3b5382(0x154)](_0x2eb3b2){const _0x330a6e=_0x3b5382,_0x24d0d4=_0x2eb3b2[_0x330a6e(0x130)]?.[_0x330a6e(0xdd)]||_0x2eb3b2[_0x330a6e(0x141)];this[_0x330a6e(0x10b)][_0x330a6e(0x12a)][_0x330a6e(0x15b)](_0x330a6e(0xf2),{'contextItems':Array[_0x330a6e(0x116)](_0x2eb3b2[_0x330a6e(0x169)][_0x330a6e(0x11f)]()),'initialContent':_0x330a6e(0x155)+_0x24d0d4+_0x330a6e(0x16f),'id':_0x2eb3b2['id']});}[_0x3b5382(0x12b)]({errorMessage:_0x5e5cc4,id:_0x1c06b0}){const _0x5ea6dd=_0x3b5382;this[_0x5ea6dd(0x10b)][_0x5ea6dd(0x12a)][_0x5ea6dd(0x15b)](_0x5ea6dd(0x14d),{'initialContent':_0x5ea6dd(0x155)+_0x5e5cc4+_0x5ea6dd(0x16f),'id':_0x1c06b0});}[_0x3b5382(0xff)](_0x27ab8d){const _0x1b65c1=_0x3b5382;return this[_0x1b65c1(0xdc)][_0x1b65c1(0xf3)](async()=>{const _0x4ac41b=_0x1b65c1;this[_0x4ac41b(0x10b)][_0x4ac41b(0x12a)][_0x4ac41b(0x15b)](_0x4ac41b(0x113),{'id':_0x27ab8d[_0x4ac41b(0x16c)]+':'+_0x27ab8d['id']}),this[_0x4ac41b(0x10b)][_0x4ac41b(0x12a)][_0x4ac41b(0x13d)]('');});}async[_0x3b5382(0x135)](_0x391317){const _0x45a149=_0x3b5382;return this[_0x45a149(0xdc)][_0x45a149(0xf3)](async()=>{const _0x4885f4=_0x45a149;this[_0x4885f4(0x10b)][_0x4885f4(0x12a)][_0x4885f4(0x15b)](_0x4885f4(0x14f),{'id':_0x391317[_0x4885f4(0x16c)]+':'+_0x391317['id'],'areActionsDisabled':_0x391317[_0x4885f4(0x118)],'showDiff':this[_0x4885f4(0x149)]}),this[_0x4885f4(0x10b)][_0x4885f4(0x12a)][_0x4885f4(0x13d)]('');});}[_0x3b5382(0xe2)](_0x12b354){const _0x4c0a16=_0x3b5382;this[_0x4c0a16(0x10b)][_0x4c0a16(0x12a)][_0x4c0a16(0x15b)](_0x4c0a16(0xdf),{'id':_0x12b354['id'],'capabilities':_0x12b354[_0x4c0a16(0x165)]});}[_0x3b5382(0x13f)](_0x30af60){const _0x119b52=_0x3b5382,_0x395800=this[_0x119b52(0x10b)][_0x119b52(0x12a)][_0x119b52(0x150)][_0x119b52(0x108)](_0x5ab651=>_0x5ab651[_0x119b52(0x15e)]['id']==_0x30af60['id']&&_0x5ab651 instanceof _0x10621f);_0x395800&&_0x395800[_0x119b52(0x143)](_0x119b52(0xf9),_0x30af60[_0x119b52(0xf9)]);}async[_0x3b5382(0xe1)](_0x1e6859){const _0x5097ca=_0x3b5382,_0x2ab723=_0x1e6859[_0x5097ca(0x14e)]||this[_0x5097ca(0xf4)];return this[_0x5097ca(0xdc)][_0x5097ca(0xf3)](async _0x5de92a=>{const _0x55ba11=_0x5097ca;await this[_0x55ba11(0x10b)][_0x55ba11(0x12a)][_0x55ba11(0xeb)]({..._0x1e6859,'abortSignal':_0x5de92a,'renderingStrategy':_0x2ab723}),_0x1e6859[_0x55ba11(0x142)]&&this[_0x55ba11(0x15d)](_0x1e6859['id']);});}[_0x3b5382(0x11a)](_0x3f466e,_0x229146){const _0x538dcd=_0x3b5382;this[_0x538dcd(0x10b)][_0x538dcd(0x12a)][_0x538dcd(0xfc)](_0x3f466e,_0x229146);}async[_0x3b5382(0xdb)](_0x477eaf){const _0x86d443=_0x3b5382,_0x32e4aa=_0x477eaf[_0x86d443(0x14e)]||this[_0x86d443(0xf4)];return this[_0x86d443(0xdc)][_0x86d443(0xf3)](async _0x140e8c=>{const _0x4bb422=_0x86d443;await this[_0x4bb422(0x10b)][_0x4bb422(0x12a)][_0x4bb422(0x107)]({..._0x477eaf,'abortSignal':_0x140e8c,'renderingStrategy':_0x32e4aa}),_0x477eaf[_0x4bb422(0x142)]&&this[_0x4bb422(0x15d)](_0x477eaf['id']);});}[_0x3b5382(0x119)](_0x38315d){const _0x3091cd=_0x3b5382;this[_0x3091cd(0x10b)][_0x3091cd(0x12a)][_0x3091cd(0xe0)](_0x38315d);}[_0x3b5382(0x15d)](_0x2ceae0){const _0x314fb5=_0x3b5382;this[_0x314fb5(0x10b)][_0x314fb5(0x12a)][_0x314fb5(0x158)](_0x2ceae0);}[_0x3b5382(0x152)](_0x4b038b){const _0x2c4adb=_0x3b5382;this[_0x2c4adb(0x10b)][_0x2c4adb(0x12a)][_0x2c4adb(0x10e)]()[_0x2c4adb(0x11e)](_0x2d92cb=>_0x2d92cb[_0x2c4adb(0x16b)](_0x4b038b))[_0x2c4adb(0xfd)](_0x5e8a2a=>this[_0x2c4adb(0x10b)][_0x2c4adb(0x12a)][_0x2c4adb(0x10c)](_0x5e8a2a));}[_0x3b5382(0xe3)](_0x589456){const _0x3bce0b=_0x3b5382;this[_0x3bce0b(0x10b)][_0x3bce0b(0x12a)][_0x3bce0b(0x13d)](this[_0x3bce0b(0x105)](_0x589456)),this[_0x3bce0b(0x10b)][_0x3bce0b(0x11b)][_0x3bce0b(0x10d)](!this[_0x3bce0b(0xf5)][_0x3bce0b(0x139)][_0x3bce0b(0x129)](_0x3bce0b(0xf6))),this[_0x3bce0b(0xef)]=!0x0,this[_0x3bce0b(0x10b)][_0x3bce0b(0x12a)][_0x3bce0b(0x13c)]();}[_0x3b5382(0x109)](_0x1d89b7){const _0x36353a=_0x3b5382;this[_0x36353a(0xdc)][_0x36353a(0xf7)](),this[_0x36353a(0x10b)][_0x36353a(0x12a)][_0x36353a(0x10e)]()[_0x36353a(0x11e)](_0x442875=>_0x442875[_0x36353a(0x16b)](_0x1d89b7['id']))[_0x36353a(0xfd)](_0x2f49cc=>this[_0x36353a(0x15d)](_0x2f49cc)),this[_0x36353a(0xef)]=!0x1,this[_0x36353a(0x10b)][_0x36353a(0x12a)][_0x36353a(0x114)]();}async[_0x3b5382(0x168)](){const _0x45c004=_0x3b5382;return this[_0x45c004(0xdc)][_0x45c004(0x162)][_0x45c004(0xe7)](()=>{const _0xc04d83=_0x45c004;this[_0xc04d83(0xef)]=!0x1,this[_0xc04d83(0x10b)][_0xc04d83(0x12a)][_0xc04d83(0x114)]();});}[_0x3b5382(0x15c)](_0x1433e6,_0x4cd0f9){const _0x47c644=_0x3b5382;this[_0x47c644(0x10b)][_0x47c644(0x11b)][_0x47c644(0x15c)](_0x1433e6,_0x4cd0f9);}[_0x3b5382(0x15f)](_0x457d12){const _0x2e576e=_0x3b5382;this[_0x2e576e(0x10b)][_0x2e576e(0x11b)][_0x2e576e(0x15f)](_0x457d12);}[_0x3b5382(0xf1)](_0xd52dda,_0x4074ad){const _0x5219c6=_0x3b5382;this[_0x5219c6(0x10b)][_0x5219c6(0x11b)][_0x5219c6(0xf1)](_0xd52dda,_0x4074ad);}[_0x3b5382(0x16d)](_0x3f7baa){const _0x5effcf=_0x3b5382;this[_0x5effcf(0x10b)][_0x5effcf(0x11b)][_0x5effcf(0x16d)](_0x3f7baa);}[_0x3b5382(0x146)](_0x889a84){const _0x5ea714=_0x3b5382;this[_0x5ea714(0x10b)][_0x5ea714(0x11b)][_0x5ea714(0x146)](_0x889a84);}[_0x3b5382(0x125)](){const _0x1facfb=_0x3b5382;this[_0x1facfb(0x10b)][_0x1facfb(0x11b)][_0x1facfb(0x125)]();}[_0x3b5382(0x163)](){const _0x4f290d=_0x3b5382;this[_0x4f290d(0x10b)][_0x4f290d(0x11b)][_0x4f290d(0x163)]();}[_0x3b5382(0x148)](_0x3e3847,_0x24123c,_0x1754e5){const _0x8936bb=_0x3b5382;this[_0x8936bb(0x10b)][_0x8936bb(0x11b)][_0x8936bb(0x148)](_0x3e3847,_0x24123c,_0x1754e5);}[_0x3b5382(0xe4)](){const _0x36b2d6=_0x3b5382;this[_0x36b2d6(0x10b)][_0x36b2d6(0x11b)][_0x36b2d6(0xe4)](),this[_0x36b2d6(0x10b)][_0x36b2d6(0x11b)][_0x36b2d6(0xf0)](this[_0x36b2d6(0xfb)]());}[_0x3b5382(0x128)](_0x35e638){const _0x5226d1=_0x3b5382;this[_0x5226d1(0x10b)][_0x5226d1(0x11b)][_0x5226d1(0x128)](_0x35e638);}[_0x3b5382(0x134)](_0x1ac2d4){const _0xcdd29a=_0x3b5382;this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0x136)](_0x1ac2d4[_0xcdd29a(0x11c)]),this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0x16e)](_0x1ac2d4[_0xcdd29a(0x153)]),this[_0xcdd29a(0x10b)][_0xcdd29a(0x11b)][_0xcdd29a(0xf0)](this[_0xcdd29a(0xfb)](_0x1ac2d4));}[_0x3b5382(0x13a)](_0xb593dc,_0x2fb432){const _0x3f60b3=_0x3b5382;this[_0x3f60b3(0x10b)][_0x3f60b3(0x11b)][_0x3f60b3(0x12c)](_0xb593dc),_0x2fb432&&this[_0x3f60b3(0x10b)][_0x3f60b3(0x11b)][_0x3f60b3(0x10d)](!0x1);}[_0x3b5382(0x160)](_0x4aeb7d){const _0x48c5ff=_0x3b5382;this[_0x48c5ff(0xf4)]=_0x4aeb7d;}[_0x3b5382(0x170)](_0x288bd1){const _0x3c4088=_0x3b5382;this[_0x3c4088(0x10b)][_0x3c4088(0x12a)][_0x3c4088(0x170)](_0x288bd1);}[_0x3b5382(0x16a)](){const _0x547fd2=_0x3b5382;this[_0x547fd2(0x124)](_0x4404f3(this[_0x547fd2(0xf5)][_0x547fd2(0x147)],_0x547fd2(0x111)));}[_0x3b5382(0x124)](_0x50d136,_0x144cda=!0x1){const _0x1dc9df=_0x3b5382;if(_0x144cda&&!_0x2b4318()&&_0x50d136[_0x1dc9df(0x145)])return this[_0x1dc9df(0x10b)][_0x1dc9df(0x126)][_0x1dc9df(0x123)]='',void this[_0x1dc9df(0x100)](_0x50d136);this[_0x1dc9df(0x10b)][_0x1dc9df(0x126)][_0x1dc9df(0x123)]=_0x50d136;}[_0x3b5382(0x100)](_0x3bf405){const _0x282d82=_0x3b5382;let _0x349209=0x0;clearInterval(this[_0x282d82(0x164)]),this[_0x282d82(0x164)]=setInterval(()=>{const _0xea4b07=_0x282d82;this[_0xea4b07(0x10b)][_0xea4b07(0x126)][_0xea4b07(0x123)]=this[_0xea4b07(0x10b)][_0xea4b07(0x126)][_0xea4b07(0x123)]+_0x3bf405[_0x349209],_0x349209++,_0x349209===_0x3bf405[_0xea4b07(0x145)]&&clearInterval(this[_0xea4b07(0x164)]);},0x1e);}[_0x3b5382(0x144)](_0x4ccd5b){const _0x313810=_0x3b5382;this[_0x313810(0x10b)][_0x313810(0x126)][_0x313810(0x156)]=_0x4ccd5b;}[_0x3b5382(0x105)](_0x5ead87){const _0x2ad62d=_0x3b5382,_0x3d9c87=_0x5ead87[_0x2ad62d(0x165)];return _0x3d9c87[_0x2ad62d(0x11c)]&&_0x3d9c87[_0x2ad62d(0x153)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0x127)):_0x3d9c87[_0x2ad62d(0x11c)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0x157)):_0x3d9c87[_0x2ad62d(0x153)]?_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0xf8)):_0x4404f3(this[_0x2ad62d(0xf5)][_0x2ad62d(0x147)],_0x2ad62d(0xec));}[_0x3b5382(0xfb)](_0x1faf4f){const _0x1b3fe9=_0x3b5382;return _0x1faf4f?_0x1faf4f[_0x1b3fe9(0x11c)]&&_0x1faf4f[_0x1b3fe9(0x153)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x15a)):_0x1faf4f[_0x1b3fe9(0x11c)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x102)):_0x1faf4f[_0x1b3fe9(0x153)]?_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x140)):_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x161)):_0x4404f3(this[_0x1b3fe9(0xf5)][_0x1b3fe9(0x147)],_0x1b3fe9(0x161));}[_0x3b5382(0x122)](_0x484bd0,_0x6de347,_0x120dee,_0x246f36){const _0x1af17c=_0x3b5382;this[_0x1af17c(0x10b)][_0x1af17c(0x122)](_0x484bd0,_0x6de347,_0x120dee,_0x246f36);}[_0x3b5382(0x110)](_0x2a4afa){const _0x4daa04=_0x3b5382;this[_0x4daa04(0x10b)][_0x4daa04(0x110)](_0x2a4afa);}[_0x3b5382(0x171)](){const _0x5db3bf=_0x3b5382;this[_0x5db3bf(0x10b)][_0x5db3bf(0x11b)][_0x5db3bf(0x171)]();}[_0x3b5382(0xe9)](_0x5915db,_0x348490){const _0x4c3653=_0x3b5382;this[_0x4c3653(0x10b)][_0x4c3653(0x12a)][_0x4c3653(0x14c)](_0x5915db,_0x348490);}}
23
+ function _0x30c1(_0x510d90,_0x525f6c){const _0xcbf68a=_0xcbf6();return _0x30c1=function(_0x30c1c6,_0x48b76a){_0x30c1c6=_0x30c1c6-0x1e0;let _0x47aa4f=_0xcbf68a[_0x30c1c6];return _0x47aa4f;},_0x30c1(_0x510d90,_0x525f6c);}const _0x35179c=_0x30c1;(function(_0x111e8c,_0xcfb618){const _0x10d392=_0x30c1,_0x139555=_0x111e8c();while(!![]){try{const _0x3bbf76=parseInt(_0x10d392(0x1e6))/0x1+-parseInt(_0x10d392(0x25d))/0x2+-parseInt(_0x10d392(0x20f))/0x3*(parseInt(_0x10d392(0x264))/0x4)+parseInt(_0x10d392(0x1e3))/0x5+-parseInt(_0x10d392(0x1f2))/0x6*(-parseInt(_0x10d392(0x253))/0x7)+parseInt(_0x10d392(0x223))/0x8*(-parseInt(_0x10d392(0x209))/0x9)+parseInt(_0x10d392(0x1f5))/0xa;if(_0x3bbf76===_0xcfb618)break;else _0x139555['push'](_0x139555['shift']());}catch(_0x3f0c7e){_0x139555['push'](_0x139555['shift']());}}}(_0xcbf6,0x1b575));import{ContextPlugin as _0x113467}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x42f1e2}from'ckeditor5/src/utils.js';import{AIChatView as _0x2133e7}from'./ui/aichatview.js';import{AITabs as _0x2b9dce}from'../aitabs/aitabs.js';import{getTranslation as _0x84fc5a}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x3e8f08}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x1079d4}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x1bc109}from'./utils/promisequeue.js';function _0xcbf6(){const _0x58044b=['isPending','createConversation','updateResourceState','addTab','isPremiumPlugin','setSelectedModel','updateReplyItem','removeContextItem','126836gxvjcO','chatFeed','locale','find','error-message','queueEmptyPromise','<p>','24668kdmigu','streaming','interaction-header','addFeedItemError','_promiseQueue','scrollFeedToSuggestion','setModelList','setInputPlaceholder','addContextItem','stopInteraction','setContextItemLoading','addFeedItemAISuggestion','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','bind','resetMessageInput','addItem','setConversationContext','startInteraction','AI_CHAT_WELCOME_MESSAGE','label','setWebSearch','focusPromptInput','451810aLkDjY','stopAutoScroll','closeSourceResourceBalloon','95993yUjQjQ','requires','context','isWebSearchEnabled','markFeedItemAsDone','options','disableModelSelector','getItemIds','interactionId','toggleLoadingSkeleton','addFeedItemStaticMessage','clear','12HypbHL','setFeedItemRenderingStrategy','availableModels','792280JMTXSl','startsWith','addFeedItemAIReply','pluginName','updateCapabilities','areActionsDisabled','finishInteraction','clearConversationContextUI','showDiff','plugins','markItemAsDone','set','forEach','renderingStrategy','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','clearPendingContextUI','user-message','setAddContextOptions','_view','get','27aQFxvy','updateFeedItemAIReplySources','from','enableModelSelector','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','AI_CHAT_HEADING','69QSLaWx','filter','setIsUploadInProgress','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','setModel','delegate','updateFeedItemAIReplySuggestionPartState','_getLoadingMessage','setReasoning','startAutoScroll','scrollToSuggestion','isOfficialPlugin','setConversationTitle','feedItemRenderingStrategy','chatHeader','updateFeedItemAIReplySuggestionContent','_animateConversationTitle','chat','values','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','149800mtVJHJ','destroy','addFeedInteractionHeader','capabilities','isLoading','updateWebSources','updateSuggestionItem','then','removeFeedInteraction','enqueue','isMaximized','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','contextItems','conversation-start','setLoadingMessage','isBusy','userMessage','_interactionPromiseResolver','abort','ai.chat.models.modelSelectorAlwaysVisible','updateFeedInteractionHeader','removeItem','view','config','displayedPrompt','populateSourceResourceBalloon','ai-suggestion-reply','_getInputPlaceholder','showResizeButton','resetConversationTitle','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','AIChatUI','quickActionData','</p>','children','addFeedItemUserMessage','isDone','length','setIsMaximized','_titleAnimationInterval','isVisible','chatControls','AITabs','updateFeedItemAIReplyContent','updateSuggestionPartState','isReasoningEnabled','toggleSuggestionDisplayMode','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','377440dNhbpU','ai-reply'];_0xcbf6=function(){return _0x58044b;};return _0xcbf6();}import{AI_CHAT_UI_EVENT_NAMES as _0x12440c}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';export class AIChatUI extends _0x113467{static get[_0x35179c(0x1e7)](){return[_0x2b9dce];}[_0x35179c(0x207)];static get[_0x35179c(0x1f8)](){const _0x3e16fe=_0x35179c;return _0x3e16fe(0x242);}static get[_0x35179c(0x21a)](){return!0x0;}static get[_0x35179c(0x259)](){return!0x0;}[_0x35179c(0x21c)]=_0x35179c(0x265);[_0x35179c(0x1fd)]=!0x0;[_0x35179c(0x268)];[_0x35179c(0x234)];[_0x35179c(0x24a)]=void 0x0;constructor(_0x368001){const _0x39db53=_0x35179c;super(_0x368001);const _0x1d2baf=this[_0x39db53(0x1e8)][_0x39db53(0x1fe)][_0x39db53(0x208)](_0x39db53(0x24d));this[_0x39db53(0x200)](_0x39db53(0x232),!0x1),this[_0x39db53(0x268)]=new _0x1bc109(),this[_0x39db53(0x207)]=new _0x2133e7(this[_0x39db53(0x1e8)][_0x39db53(0x25f)],_0x1d2baf[_0x39db53(0x23f)]),this[_0x39db53(0x207)][_0x39db53(0x214)](..._0x12440c)['to'](this),this[_0x39db53(0x207)]['on'](_0x39db53(0x251),(_0x531370,{showDiff:_0xd5c01a})=>{const _0x3103be=_0x39db53;this[_0x3103be(0x1fd)]=_0xd5c01a;}),_0x1d2baf[_0x39db53(0x239)][_0x39db53(0x258)]({'id':_0x39db53(0x220),'buttonLabel':_0x84fc5a(this[_0x39db53(0x1e8)][_0x39db53(0x25f)],_0x39db53(0x20e)),'buttonIcon':_0x3e8f08,'order':0x0,'content':this[_0x39db53(0x207)]}),this[_0x39db53(0x207)][_0x39db53(0x24c)][_0x39db53(0x271)](_0x39db53(0x227))['to'](this,_0x39db53(0x232),_0x3bd1ce=>_0x3bd1ce),this[_0x39db53(0x207)][_0x39db53(0x25e)][_0x39db53(0x271)](_0x39db53(0x255))['to'](this,_0x39db53(0x232),_0x5c39cc=>_0x5c39cc),this[_0x39db53(0x207)][_0x39db53(0x24c)][_0x39db53(0x26b)](this[_0x39db53(0x23e)]());}[_0x35179c(0x224)](){const _0x5baab0=_0x35179c;super[_0x5baab0(0x224)](),this[_0x5baab0(0x24a)]&&clearInterval(this[_0x5baab0(0x24a)]);}[_0x35179c(0x256)](_0x291d8c){const _0x6290bd=_0x35179c;this[_0x6290bd(0x207)][_0x6290bd(0x25e)][_0x6290bd(0x1f1)](),this[_0x6290bd(0x207)][_0x6290bd(0x24c)][_0x6290bd(0x20c)](),this[_0x6290bd(0x207)][_0x6290bd(0x24c)][_0x6290bd(0x26a)](_0x291d8c[_0x6290bd(0x1f4)],!this[_0x6290bd(0x1e8)][_0x6290bd(0x23a)][_0x6290bd(0x208)](_0x6290bd(0x236))),this[_0x6290bd(0x1f0)]({'id':_0x6290bd(0x230),'staticMessage':_0x84fc5a(this[_0x6290bd(0x1e8)][_0x6290bd(0x25f)],_0x6290bd(0x276))});}[_0x35179c(0x1f0)]({id:_0x4f8a1e,staticMessage:_0x1a6144}){const _0x479aa5=_0x35179c;this[_0x479aa5(0x207)][_0x479aa5(0x25e)][_0x479aa5(0x273)](_0x479aa5(0x254),{'id':_0x4f8a1e,'initialContent':_0x479aa5(0x263)+_0x1a6144+_0x479aa5(0x244)});}[_0x35179c(0x246)](_0x11282d){const _0x50e520=_0x35179c,_0xbba92=_0x11282d[_0x50e520(0x243)]?.[_0x50e520(0x23b)]||_0x11282d[_0x50e520(0x233)];this[_0x50e520(0x207)][_0x50e520(0x25e)][_0x50e520(0x273)](_0x50e520(0x205),{'contextItems':Array[_0x50e520(0x20b)](_0x11282d[_0x50e520(0x22f)][_0x50e520(0x221)]()),'initialContent':_0x50e520(0x263)+_0xbba92+_0x50e520(0x244),'id':_0x11282d['id']});}[_0x35179c(0x267)]({errorMessage:_0x262d85,id:_0x12ec20}){const _0x58c8a1=_0x35179c;this[_0x58c8a1(0x207)][_0x58c8a1(0x25e)][_0x58c8a1(0x273)](_0x58c8a1(0x261),{'initialContent':_0x58c8a1(0x263)+_0x262d85+_0x58c8a1(0x244),'id':_0x12ec20});}[_0x35179c(0x1f7)](_0x3df779){const _0x1609c3=_0x35179c;return this[_0x1609c3(0x268)][_0x1609c3(0x22c)](async()=>{const _0x91f0af=_0x1609c3;this[_0x91f0af(0x207)][_0x91f0af(0x25e)][_0x91f0af(0x273)](_0x91f0af(0x254),{'id':_0x3df779[_0x91f0af(0x1ee)]+':'+_0x3df779['id']}),this[_0x91f0af(0x207)][_0x91f0af(0x25e)][_0x91f0af(0x231)]('');});}async[_0x35179c(0x26f)](_0x259de1){const _0x36dec8=_0x35179c;return this[_0x36dec8(0x268)][_0x36dec8(0x22c)](async()=>{const _0x34cc7c=_0x36dec8;this[_0x34cc7c(0x207)][_0x34cc7c(0x25e)][_0x34cc7c(0x273)](_0x34cc7c(0x23d),{'id':_0x259de1[_0x34cc7c(0x1ee)]+':'+_0x259de1['id'],'areActionsDisabled':_0x259de1[_0x34cc7c(0x1fa)],'showDiff':this[_0x34cc7c(0x1fd)]}),this[_0x34cc7c(0x207)][_0x34cc7c(0x25e)][_0x34cc7c(0x231)]('');});}[_0x35179c(0x225)](_0x34df71){const _0x35ad87=_0x35179c;this[_0x35ad87(0x207)][_0x35ad87(0x25e)][_0x35ad87(0x273)](_0x35ad87(0x266),{'id':_0x34df71['id'],'capabilities':_0x34df71[_0x35ad87(0x226)]});}[_0x35179c(0x237)](_0x3dcfbe){const _0x314288=_0x35179c,_0x47b928=this[_0x314288(0x207)][_0x314288(0x25e)][_0x314288(0x245)][_0x314288(0x260)](_0x149c1c=>_0x149c1c[_0x314288(0x1eb)]['id']==_0x3dcfbe['id']&&_0x149c1c instanceof _0x1079d4);_0x47b928&&_0x47b928[_0x314288(0x200)](_0x314288(0x24b),_0x3dcfbe[_0x314288(0x24b)]);}async[_0x35179c(0x24e)](_0x46e3fe){const _0x3fb2c0=_0x35179c,_0x40d69d=_0x46e3fe[_0x3fb2c0(0x202)]||this[_0x3fb2c0(0x21c)];return this[_0x3fb2c0(0x268)][_0x3fb2c0(0x22c)](async _0x36b82f=>{const _0x38c448=_0x3fb2c0;await this[_0x38c448(0x207)][_0x38c448(0x25e)][_0x38c448(0x25b)]({..._0x46e3fe,'abortSignal':_0x36b82f,'renderingStrategy':_0x40d69d}),_0x46e3fe[_0x38c448(0x247)]&&this[_0x38c448(0x1ea)](_0x46e3fe['id']);});}[_0x35179c(0x20a)](_0x4a6d49,_0xc1e3c2){const _0x57e462=_0x35179c;this[_0x57e462(0x207)][_0x57e462(0x25e)][_0x57e462(0x228)](_0x4a6d49,_0xc1e3c2);}async[_0x35179c(0x21e)](_0x80425e){const _0x1b31c1=_0x35179c,_0x4daf46=_0x80425e[_0x1b31c1(0x202)]||this[_0x1b31c1(0x21c)];return this[_0x1b31c1(0x268)][_0x1b31c1(0x22c)](async _0x5b225d=>{const _0x39939f=_0x1b31c1;await this[_0x39939f(0x207)][_0x39939f(0x25e)][_0x39939f(0x229)]({..._0x80425e,'abortSignal':_0x5b225d,'renderingStrategy':_0x4daf46}),_0x80425e[_0x39939f(0x247)]&&this[_0x39939f(0x1ea)](_0x80425e['id']);});}[_0x35179c(0x215)](_0x2be245){const _0x1bdadf=_0x35179c;this[_0x1bdadf(0x207)][_0x1bdadf(0x25e)][_0x1bdadf(0x24f)](_0x2be245);}[_0x35179c(0x1ea)](_0x3e841d){const _0x150201=_0x35179c;this[_0x150201(0x207)][_0x150201(0x25e)][_0x150201(0x1ff)](_0x3e841d);}[_0x35179c(0x22b)](_0x5ea061){const _0x246ebd=_0x35179c;this[_0x246ebd(0x207)][_0x246ebd(0x25e)][_0x246ebd(0x1ed)]()[_0x246ebd(0x210)](_0x276e3a=>_0x276e3a[_0x246ebd(0x1f6)](_0x5ea061))[_0x246ebd(0x201)](_0x1d87fc=>this[_0x246ebd(0x207)][_0x246ebd(0x25e)][_0x246ebd(0x238)](_0x1d87fc));}[_0x35179c(0x275)](_0x50c02b){const _0x257ebf=_0x35179c;this[_0x257ebf(0x207)][_0x257ebf(0x25e)][_0x257ebf(0x231)](this[_0x257ebf(0x216)](_0x50c02b)),this[_0x257ebf(0x207)][_0x257ebf(0x24c)][_0x257ebf(0x1ec)](!this[_0x257ebf(0x1e8)][_0x257ebf(0x23a)][_0x257ebf(0x208)](_0x257ebf(0x236))),this[_0x257ebf(0x232)]=!0x0,this[_0x257ebf(0x207)][_0x257ebf(0x25e)][_0x257ebf(0x218)]();}[_0x35179c(0x26d)](_0x536f74){const _0x16c00e=_0x35179c;this[_0x16c00e(0x268)][_0x16c00e(0x235)](),this[_0x16c00e(0x207)][_0x16c00e(0x25e)][_0x16c00e(0x1ed)]()[_0x16c00e(0x210)](_0x274fa0=>_0x274fa0[_0x16c00e(0x1f6)](_0x536f74['id']))[_0x16c00e(0x201)](_0x575113=>this[_0x16c00e(0x1ea)](_0x575113)),this[_0x16c00e(0x232)]=!0x1,this[_0x16c00e(0x207)][_0x16c00e(0x25e)][_0x16c00e(0x1e4)]();}async[_0x35179c(0x1fb)](){const _0x3ac6f9=_0x35179c;return this[_0x3ac6f9(0x268)][_0x3ac6f9(0x262)][_0x3ac6f9(0x22a)](()=>{const _0x5bb697=_0x3ac6f9;this[_0x5bb697(0x232)]=!0x1,this[_0x5bb697(0x207)][_0x5bb697(0x25e)][_0x5bb697(0x1e4)]();});}[_0x35179c(0x26c)](_0x4ccb41,_0x4890ad){const _0x1e3722=_0x35179c;this[_0x1e3722(0x207)][_0x1e3722(0x24c)][_0x1e3722(0x26c)](_0x4ccb41,_0x4890ad);}[_0x35179c(0x25c)](_0x4a581e){const _0x2a8fb2=_0x35179c;this[_0x2a8fb2(0x207)][_0x2a8fb2(0x24c)][_0x2a8fb2(0x25c)](_0x4a581e);}[_0x35179c(0x26e)](_0x48c1fc,_0x1a6e69){const _0x2f205a=_0x35179c;this[_0x2f205a(0x207)][_0x2f205a(0x24c)][_0x2f205a(0x26e)](_0x48c1fc,_0x1a6e69);}[_0x35179c(0x211)](_0x5d2917){const _0x1463b0=_0x35179c;this[_0x1463b0(0x207)][_0x1463b0(0x24c)][_0x1463b0(0x211)](_0x5d2917);}[_0x35179c(0x274)](_0x593002){const _0x504510=_0x35179c;this[_0x504510(0x207)][_0x504510(0x24c)][_0x504510(0x274)](_0x593002);}[_0x35179c(0x204)](){const _0x15b5c0=_0x35179c;this[_0x15b5c0(0x207)][_0x15b5c0(0x24c)][_0x15b5c0(0x204)]();}[_0x35179c(0x1fc)](){const _0x3b11b2=_0x35179c;this[_0x3b11b2(0x207)][_0x3b11b2(0x24c)][_0x3b11b2(0x1fc)]();}[_0x35179c(0x257)](_0x4e751d,_0x23fcca,_0x49b0ab){const _0x4029a0=_0x35179c;this[_0x4029a0(0x207)][_0x4029a0(0x24c)][_0x4029a0(0x257)](_0x4e751d,_0x23fcca,_0x49b0ab);}[_0x35179c(0x272)](){const _0x97f9f3=_0x35179c;this[_0x97f9f3(0x207)][_0x97f9f3(0x24c)][_0x97f9f3(0x272)](),this[_0x97f9f3(0x207)][_0x97f9f3(0x24c)][_0x97f9f3(0x26b)](this[_0x97f9f3(0x23e)]());}[_0x35179c(0x206)](_0x1847ac){const _0xe4e51=_0x35179c;this[_0xe4e51(0x207)][_0xe4e51(0x24c)][_0xe4e51(0x206)](_0x1847ac);}[_0x35179c(0x1f9)](_0x41b430){const _0x4ccc87=_0x35179c;this[_0x4ccc87(0x207)][_0x4ccc87(0x24c)][_0x4ccc87(0x1e1)](_0x41b430[_0x4ccc87(0x1e9)]),this[_0x4ccc87(0x207)][_0x4ccc87(0x24c)][_0x4ccc87(0x217)](_0x41b430[_0x4ccc87(0x250)]),this[_0x4ccc87(0x207)][_0x4ccc87(0x24c)][_0x4ccc87(0x26b)](this[_0x4ccc87(0x23e)](_0x41b430));}[_0x35179c(0x25a)](_0xde3d34,_0x279738){const _0x5181f4=_0x35179c;this[_0x5181f4(0x207)][_0x5181f4(0x24c)][_0x5181f4(0x213)](_0xde3d34),_0x279738&&this[_0x5181f4(0x207)][_0x5181f4(0x24c)][_0x5181f4(0x1ec)](!0x1);}[_0x35179c(0x1f3)](_0x148cd1){const _0x532de4=_0x35179c;this[_0x532de4(0x21c)]=_0x148cd1;}[_0x35179c(0x1ef)](_0x1f2db4){const _0x1538a3=_0x35179c;this[_0x1538a3(0x207)][_0x1538a3(0x25e)][_0x1538a3(0x1ef)](_0x1f2db4);}[_0x35179c(0x240)](){const _0x151e66=_0x35179c;this[_0x151e66(0x21b)](_0x84fc5a(this[_0x151e66(0x1e8)][_0x151e66(0x25f)],_0x151e66(0x20e)));}[_0x35179c(0x21b)](_0x558683,_0x4b747b=!0x1){const _0x2799e4=_0x35179c;if(_0x4b747b&&!_0x42f1e2()&&_0x558683[_0x2799e4(0x248)])return this[_0x2799e4(0x207)][_0x2799e4(0x21d)][_0x2799e4(0x1e0)]='',void this[_0x2799e4(0x21f)](_0x558683);this[_0x2799e4(0x207)][_0x2799e4(0x21d)][_0x2799e4(0x1e0)]=_0x558683;}[_0x35179c(0x21f)](_0x3d8153){const _0x225337=_0x35179c;let _0x204958=0x0;clearInterval(this[_0x225337(0x24a)]),this[_0x225337(0x24a)]=setInterval(()=>{const _0x494dae=_0x225337;this[_0x494dae(0x207)][_0x494dae(0x21d)][_0x494dae(0x1e0)]=this[_0x494dae(0x207)][_0x494dae(0x21d)][_0x494dae(0x1e0)]+_0x3d8153[_0x204958],_0x204958++,_0x204958===_0x3d8153[_0x494dae(0x248)]&&clearInterval(this[_0x494dae(0x24a)]);},0x1e);}[_0x35179c(0x249)](_0x46f0dd){const _0x9dd9d0=_0x35179c;this[_0x9dd9d0(0x207)][_0x9dd9d0(0x21d)][_0x9dd9d0(0x22d)]=_0x46f0dd;}[_0x35179c(0x216)](_0x3d39d1){const _0x2fac59=_0x35179c,_0x16a076=_0x3d39d1[_0x2fac59(0x226)];return _0x16a076[_0x2fac59(0x1e9)]&&_0x16a076[_0x2fac59(0x250)]?_0x84fc5a(this[_0x2fac59(0x1e8)][_0x2fac59(0x25f)],_0x2fac59(0x270)):_0x16a076[_0x2fac59(0x1e9)]?_0x84fc5a(this[_0x2fac59(0x1e8)][_0x2fac59(0x25f)],_0x2fac59(0x212)):_0x16a076[_0x2fac59(0x250)]?_0x84fc5a(this[_0x2fac59(0x1e8)][_0x2fac59(0x25f)],_0x2fac59(0x222)):_0x84fc5a(this[_0x2fac59(0x1e8)][_0x2fac59(0x25f)],_0x2fac59(0x241));}[_0x35179c(0x23e)](_0x46af3d){const _0x1429c2=_0x35179c;return _0x46af3d?_0x46af3d[_0x1429c2(0x1e9)]&&_0x46af3d[_0x1429c2(0x250)]?_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x203)):_0x46af3d[_0x1429c2(0x1e9)]?_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x252)):_0x46af3d[_0x1429c2(0x250)]?_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x20d)):_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x22e)):_0x84fc5a(this[_0x1429c2(0x1e8)][_0x1429c2(0x25f)],_0x1429c2(0x22e));}[_0x35179c(0x23c)](_0x1de3d4,_0x5780f0,_0x5e4bc3,_0x5dd5d4){const _0x2d706e=_0x35179c;this[_0x2d706e(0x207)][_0x2d706e(0x23c)](_0x1de3d4,_0x5780f0,_0x5e4bc3,_0x5dd5d4);}[_0x35179c(0x1e5)](_0x2f63c4){const _0x3ed24b=_0x35179c;this[_0x3ed24b(0x207)][_0x3ed24b(0x1e5)](_0x2f63c4);}[_0x35179c(0x1e2)](){const _0x3f050b=_0x35179c;this[_0x3f050b(0x207)][_0x3f050b(0x24c)][_0x3f050b(0x1e2)]();}[_0x35179c(0x269)](_0x22e2f7,_0x16b85b){const _0x5c7434=_0x35179c;this[_0x5c7434(0x207)][_0x5c7434(0x25e)][_0x5c7434(0x219)](_0x22e2f7,_0x16b85b);}}