@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/LICENSE.md +0 -4
  2. package/build/ai.js +2 -1
  3. package/dist/index.js +5 -5
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/be.js +1 -1
  13. package/dist/translations/be.umd.js +1 -1
  14. package/dist/translations/bg.js +1 -1
  15. package/dist/translations/bg.umd.js +1 -1
  16. package/dist/translations/bn.js +1 -1
  17. package/dist/translations/bn.umd.js +1 -1
  18. package/dist/translations/bs.js +1 -1
  19. package/dist/translations/bs.umd.js +1 -1
  20. package/dist/translations/ca.js +1 -1
  21. package/dist/translations/ca.umd.js +1 -1
  22. package/dist/translations/cs.js +1 -1
  23. package/dist/translations/cs.umd.js +1 -1
  24. package/dist/translations/da.js +1 -1
  25. package/dist/translations/da.umd.js +1 -1
  26. package/dist/translations/de-ch.js +1 -1
  27. package/dist/translations/de-ch.umd.js +1 -1
  28. package/dist/translations/de.js +1 -1
  29. package/dist/translations/de.umd.js +1 -1
  30. package/dist/translations/el.js +1 -1
  31. package/dist/translations/el.umd.js +1 -1
  32. package/dist/translations/en-au.js +1 -1
  33. package/dist/translations/en-au.umd.js +1 -1
  34. package/dist/translations/en-gb.js +1 -1
  35. package/dist/translations/en-gb.umd.js +1 -1
  36. package/dist/translations/en.js +1 -1
  37. package/dist/translations/en.umd.js +1 -1
  38. package/dist/translations/eo.js +1 -1
  39. package/dist/translations/eo.umd.js +1 -1
  40. package/dist/translations/es-co.js +1 -1
  41. package/dist/translations/es-co.umd.js +1 -1
  42. package/dist/translations/es.js +1 -1
  43. package/dist/translations/es.umd.js +1 -1
  44. package/dist/translations/et.js +1 -1
  45. package/dist/translations/et.umd.js +1 -1
  46. package/dist/translations/eu.js +1 -1
  47. package/dist/translations/eu.umd.js +1 -1
  48. package/dist/translations/fa.js +1 -1
  49. package/dist/translations/fa.umd.js +1 -1
  50. package/dist/translations/fi.js +1 -1
  51. package/dist/translations/fi.umd.js +1 -1
  52. package/dist/translations/fr.js +1 -1
  53. package/dist/translations/fr.umd.js +1 -1
  54. package/dist/translations/gl.js +1 -1
  55. package/dist/translations/gl.umd.js +1 -1
  56. package/dist/translations/gu.js +1 -1
  57. package/dist/translations/gu.umd.js +1 -1
  58. package/dist/translations/he.js +1 -1
  59. package/dist/translations/he.umd.js +1 -1
  60. package/dist/translations/hi.js +1 -1
  61. package/dist/translations/hi.umd.js +1 -1
  62. package/dist/translations/hr.js +1 -1
  63. package/dist/translations/hr.umd.js +1 -1
  64. package/dist/translations/hu.js +1 -1
  65. package/dist/translations/hu.umd.js +1 -1
  66. package/dist/translations/hy.js +1 -1
  67. package/dist/translations/hy.umd.js +1 -1
  68. package/dist/translations/id.js +1 -1
  69. package/dist/translations/id.umd.js +1 -1
  70. package/dist/translations/it.js +1 -1
  71. package/dist/translations/it.umd.js +1 -1
  72. package/dist/translations/ja.js +1 -1
  73. package/dist/translations/ja.umd.js +1 -1
  74. package/dist/translations/jv.js +1 -1
  75. package/dist/translations/jv.umd.js +1 -1
  76. package/dist/translations/kk.js +1 -1
  77. package/dist/translations/kk.umd.js +1 -1
  78. package/dist/translations/km.js +1 -1
  79. package/dist/translations/km.umd.js +1 -1
  80. package/dist/translations/kn.js +1 -1
  81. package/dist/translations/kn.umd.js +1 -1
  82. package/dist/translations/ko.js +1 -1
  83. package/dist/translations/ko.umd.js +1 -1
  84. package/dist/translations/ku.js +1 -1
  85. package/dist/translations/ku.umd.js +1 -1
  86. package/dist/translations/lt.js +1 -1
  87. package/dist/translations/lt.umd.js +1 -1
  88. package/dist/translations/lv.js +1 -1
  89. package/dist/translations/lv.umd.js +1 -1
  90. package/dist/translations/ms.js +1 -1
  91. package/dist/translations/ms.umd.js +1 -1
  92. package/dist/translations/nb.js +1 -1
  93. package/dist/translations/nb.umd.js +1 -1
  94. package/dist/translations/ne.js +1 -1
  95. package/dist/translations/ne.umd.js +1 -1
  96. package/dist/translations/nl.js +1 -1
  97. package/dist/translations/nl.umd.js +1 -1
  98. package/dist/translations/no.js +1 -1
  99. package/dist/translations/no.umd.js +1 -1
  100. package/dist/translations/oc.js +1 -1
  101. package/dist/translations/oc.umd.js +1 -1
  102. package/dist/translations/pl.js +1 -1
  103. package/dist/translations/pl.umd.js +1 -1
  104. package/dist/translations/pt-br.js +1 -1
  105. package/dist/translations/pt-br.umd.js +1 -1
  106. package/dist/translations/pt.js +1 -1
  107. package/dist/translations/pt.umd.js +1 -1
  108. package/dist/translations/ro.js +1 -1
  109. package/dist/translations/ro.umd.js +1 -1
  110. package/dist/translations/ru.js +1 -1
  111. package/dist/translations/ru.umd.js +1 -1
  112. package/dist/translations/si.js +1 -1
  113. package/dist/translations/si.umd.js +1 -1
  114. package/dist/translations/sk.js +1 -1
  115. package/dist/translations/sk.umd.js +1 -1
  116. package/dist/translations/sl.js +1 -1
  117. package/dist/translations/sl.umd.js +1 -1
  118. package/dist/translations/sq.js +1 -1
  119. package/dist/translations/sq.umd.js +1 -1
  120. package/dist/translations/sr-latn.js +1 -1
  121. package/dist/translations/sr-latn.umd.js +1 -1
  122. package/dist/translations/sr.js +1 -1
  123. package/dist/translations/sr.umd.js +1 -1
  124. package/dist/translations/sv.js +1 -1
  125. package/dist/translations/sv.umd.js +1 -1
  126. package/dist/translations/th.js +1 -1
  127. package/dist/translations/th.umd.js +1 -1
  128. package/dist/translations/ti.js +1 -1
  129. package/dist/translations/ti.umd.js +1 -1
  130. package/dist/translations/tk.js +1 -1
  131. package/dist/translations/tk.umd.js +1 -1
  132. package/dist/translations/tr.js +1 -1
  133. package/dist/translations/tr.umd.js +1 -1
  134. package/dist/translations/tt.js +1 -1
  135. package/dist/translations/tt.umd.js +1 -1
  136. package/dist/translations/ug.js +1 -1
  137. package/dist/translations/ug.umd.js +1 -1
  138. package/dist/translations/uk.js +1 -1
  139. package/dist/translations/uk.umd.js +1 -1
  140. package/dist/translations/ur.js +1 -1
  141. package/dist/translations/ur.umd.js +1 -1
  142. package/dist/translations/uz.js +1 -1
  143. package/dist/translations/uz.umd.js +1 -1
  144. package/dist/translations/vi.js +1 -1
  145. package/dist/translations/vi.umd.js +1 -1
  146. package/dist/translations/zh-cn.js +1 -1
  147. package/dist/translations/zh-cn.umd.js +1 -1
  148. package/dist/translations/zh.js +1 -1
  149. package/dist/translations/zh.umd.js +1 -1
  150. package/lang/contexts.json +1 -0
  151. package/package.json +15 -16
  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.d.ts +15 -156
  158. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  159. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  160. package/src/aiassistant/aiassistant.d.ts +2 -0
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatballoon.js +1 -1
  181. package/src/aichat/aichatcontroller.js +1 -1
  182. package/src/aichat/aichatui.js +1 -1
  183. package/src/aichat/model/aichatcontext.js +1 -1
  184. package/src/aichat/model/aichatconversation.js +1 -1
  185. package/src/aichat/model/aichatinteraction.js +1 -1
  186. package/src/aichat/ui/aichatballoonview.js +1 -1
  187. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  188. package/src/aichat/ui/aichatfeedview.js +1 -1
  189. package/src/aichat/ui/aichatheaderview.js +1 -1
  190. package/src/aichat/ui/aichatview.js +1 -1
  191. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  195. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  213. package/src/aichat/utils/eventnames.js +1 -1
  214. package/src/aichat/utils/promisequeue.js +1 -1
  215. package/src/aichathistory/aichathistory.js +1 -1
  216. package/src/aichathistory/aichathistorycontroller.js +1 -1
  217. package/src/aichathistory/aichathistoryui.js +1 -1
  218. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  219. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  221. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  223. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  224. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  225. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  226. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  227. package/src/aicore/aiconnector.js +1 -1
  228. package/src/aicore/aiediting.js +1 -1
  229. package/src/aicore/model/aicapabilities.js +1 -1
  230. package/src/aicore/model/aicontext.js +1 -1
  231. package/src/aicore/model/aiinteraction.js +1 -1
  232. package/src/aicore/model/aimodels.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  248. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  249. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  250. package/src/aicore/utils/common-translations.js +1 -1
  251. package/src/aicore/utils/createresizebutton.js +1 -1
  252. package/src/aicore/utils/documentposition.js +1 -1
  253. package/src/aicore/utils/documentrange.js +1 -1
  254. package/src/aicore/utils/eventnames.js +1 -1
  255. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  256. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  257. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  258. package/src/aicore/utils/htmlparser.js +1 -1
  259. package/src/aicore/utils/htmlstreamer.js +1 -1
  260. package/src/aicore/utils/scrollmanager.js +1 -1
  261. package/src/aieditorintegration/aieditorintegration.js +1 -1
  262. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  263. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  264. package/src/aiquickactions/aiquickactions.js +1 -1
  265. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  266. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  267. package/src/aiquickactions/aiquickactionsui.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  270. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  271. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  272. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  273. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  274. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  275. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  276. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  277. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  278. package/src/aireviewcore/aireviewcoreui.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  280. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  281. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  282. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  283. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  293. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  294. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  295. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  296. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  297. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  298. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  299. package/src/aireviewmode/aireviewmode.js +1 -1
  300. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  301. package/src/aireviewmode/aireviewmodeui.js +1 -1
  302. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  303. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  304. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  305. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  306. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  307. package/src/aitabs/aitabs.js +1 -1
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/aitranslate/aitranslate.js +1 -1
  313. package/src/aitranslate/aitranslatecontroller.js +1 -1
  314. package/src/aitranslate/aitranslateui.js +1 -1
  315. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  316. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  317. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  318. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  319. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  320. package/src/errors.js +1 -1
  321. package/src/errorsmap.js +1 -1
  322. package/src/index.js +1 -1
  323. package/build/966.ai.js +0 -5
  324. package/build/translations/en.js +0 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5d748d=_0x1ad7;(function(_0x27e287,_0x1c79ea){const _0x127dfd=_0x1ad7,_0x5aecf4=_0x27e287();while(!![]){try{const _0x41985e=parseInt(_0x127dfd(0x156))/0x1+-parseInt(_0x127dfd(0x13b))/0x2+parseInt(_0x127dfd(0x14e))/0x3*(parseInt(_0x127dfd(0x15f))/0x4)+-parseInt(_0x127dfd(0x15b))/0x5*(-parseInt(_0x127dfd(0x151))/0x6)+-parseInt(_0x127dfd(0x137))/0x7*(-parseInt(_0x127dfd(0x146))/0x8)+-parseInt(_0x127dfd(0x157))/0x9+parseInt(_0x127dfd(0x15c))/0xa*(-parseInt(_0x127dfd(0x140))/0xb);if(_0x41985e===_0x1c79ea)break;else _0x5aecf4['push'](_0x5aecf4['shift']());}catch(_0x50eb07){_0x5aecf4['push'](_0x5aecf4['shift']());}}}(_0x1c76,0xe232a));function _0x1ad7(_0x2d192f,_0x1b7ca4){const _0x1c764d=_0x1c76();return _0x1ad7=function(_0x1ad7e8,_0x21cbe9){_0x1ad7e8=_0x1ad7e8-0x135;let _0x1563d4=_0x1c764d[_0x1ad7e8];return _0x1563d4;},_0x1ad7(_0x2d192f,_0x1b7ca4);}function _0x1c76(){const _0x21c533=['isEnabled','custom','6215qnUqGw','model','hasContent','isCollapsed','showUI','refresh','176UMnVGl','length','element','change:_hasContext','ai.assistant.disabledElements','get','getItems','set','39suEPNu','getSelectedBlocks','from','1146uBxcPN','document','enabledCommandsIds','getFirstRange','includes','1626926SwQHor','6130278oViJPG','editor','getRanges','selection','15825sXyaRC','45700EPuafa','_commandDefinitions','plugins','410972obqRIh','isEmpty','name','values','requiresContent','583737NmMqMX','execute','_hasContext','add','2424008vejyrU','change:isEnabled','config'];_0x1c76=function(){return _0x21c533;};return _0x1c76();}import{Command as _0x445b07}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x12d35c}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x445b07{[_0x5d748d(0x15d)];constructor(_0x1a9f0c,_0x10fcbf){const _0x3eb2f6=_0x5d748d;super(_0x1a9f0c),this[_0x3eb2f6(0x15d)]=_0x10fcbf,this[_0x3eb2f6(0x14d)](_0x3eb2f6(0x153),[]),this['on'](_0x3eb2f6(0x149),(_0x335027,_0x295b75,_0xb2d1e8)=>{const _0x596602=_0x3eb2f6;this[_0x596602(0x13e)]&&(this[_0x596602(0x153)]=ns(this[_0x596602(0x15d)],_0xb2d1e8));}),this[_0x3eb2f6(0x14d)](_0x3eb2f6(0x139),!0x1),this['on'](_0x3eb2f6(0x13c),(_0x4cc258,_0x48592d,_0x42e0b8)=>{const _0x50a22e=_0x3eb2f6;this[_0x50a22e(0x153)]=_0x42e0b8?ns(this[_0x50a22e(0x15d)],this[_0x50a22e(0x139)]):[];});}[_0x5d748d(0x145)](){const _0x286bcc=_0x5d748d,_0x30fdaa=this[_0x286bcc(0x158)][_0x286bcc(0x141)];this[_0x286bcc(0x139)]=function(_0x4466f6){const _0x4cdae3=_0x286bcc,_0x272fb8=_0x4466f6[_0x4cdae3(0x152)][_0x4cdae3(0x15a)];return _0x272fb8[_0x4cdae3(0x143)]?0x0!==[..._0x272fb8[_0x4cdae3(0x14f)]()][_0x4cdae3(0x147)]&&![..._0x272fb8[_0x4cdae3(0x14f)]()][0x0][_0x4cdae3(0x160)]:!!_0x4466f6[_0x4cdae3(0x142)](_0x272fb8[_0x4cdae3(0x154)]());}(_0x30fdaa);const _0x3441db=_0x30fdaa[_0x286bcc(0x152)][_0x286bcc(0x15a)],_0x436194=this[_0x286bcc(0x158)][_0x286bcc(0x13d)][_0x286bcc(0x14b)](_0x286bcc(0x14a));for(const _0x136dba of _0x3441db[_0x286bcc(0x159)]())for(const _0x3ca898 of _0x136dba[_0x286bcc(0x14c)]())if(_0x3ca898['is'](_0x286bcc(0x148))&&_0x436194[_0x286bcc(0x155)](_0x3ca898[_0x286bcc(0x161)]))return void(this[_0x286bcc(0x13e)]=!0x1);this[_0x286bcc(0x13e)]=!0x0;}[_0x5d748d(0x138)](_0x42ac11='',_0x49a20b='',_0x878083=_0x5d748d(0x13f)){const _0x126b21=_0x5d748d;this[_0x126b21(0x158)][_0x126b21(0x15e)][_0x126b21(0x14b)](_0x12d35c)[_0x126b21(0x144)](_0x42ac11,_0x49a20b,_0x878083);}}function ns(_0x5915c8,_0x1a1c09){const _0x3728ff=_0x5d748d,_0x2f0293=new Set();for(const _0x55ebce of _0x5915c8[_0x3728ff(0x135)]())(_0x1a1c09||!0x1===_0x55ebce[_0x3728ff(0x136)])&&_0x2f0293[_0x3728ff(0x13a)](_0x55ebce['id']);return Array[_0x3728ff(0x150)](_0x2f0293);}
23
+ const _0x44d18e=_0x3de4;(function(_0x2828fb,_0x2248c2){const _0x4dc3c7=_0x3de4,_0x22273b=_0x2828fb();while(!![]){try{const _0x27ef55=-parseInt(_0x4dc3c7(0x13f))/0x1+parseInt(_0x4dc3c7(0x162))/0x2*(parseInt(_0x4dc3c7(0x14c))/0x3)+parseInt(_0x4dc3c7(0x152))/0x4*(parseInt(_0x4dc3c7(0x147))/0x5)+parseInt(_0x4dc3c7(0x14a))/0x6*(parseInt(_0x4dc3c7(0x151))/0x7)+-parseInt(_0x4dc3c7(0x13d))/0x8*(parseInt(_0x4dc3c7(0x149))/0x9)+-parseInt(_0x4dc3c7(0x15c))/0xa+-parseInt(_0x4dc3c7(0x153))/0xb*(-parseInt(_0x4dc3c7(0x166))/0xc);if(_0x27ef55===_0x2248c2)break;else _0x22273b['push'](_0x22273b['shift']());}catch(_0x3f357a){_0x22273b['push'](_0x22273b['shift']());}}}(_0x3053,0xcbc84));function _0x3de4(_0x22ac19,_0x5f03e3){const _0x3053b4=_0x3053();return _0x3de4=function(_0x3de4ef,_0x1df5ec){_0x3de4ef=_0x3de4ef-0x13c;let _0x486841=_0x3053b4[_0x3de4ef];return _0x486841;},_0x3de4(_0x22ac19,_0x5f03e3);}import{Command as _0x9f4bf2}from'ckeditor5/src/core.js';function _0x3053(){const _0xb6e30f=['requiresContent','length','values','change:_hasContext','getFirstRange','11930610PfGgnL','getItems','getRanges','isEnabled','selection','includes','404KCIxya','hasContent','refresh','get','30816ocRRdS','model','element','isEmpty','plugins','619000LkyjEY','showUI','405884yTmdtQ','add','execute','enabledCommandsIds','isCollapsed','config','editor','custom','905WhiGYa','change:isEnabled','81ZiuKIL','6iqsKlA','set','9117rdUCQi','ai.assistant.disabledElements','name','document','_hasContext','6888721gbeoIf','32268qvzqQb','308AqHLhW','getSelectedBlocks','from','_commandDefinitions'];_0x3053=function(){return _0xb6e30f;};return _0x3053();}import{AIAssistantUI as _0x21a013}from'../aiassistantui.js';export class ShowAIAssistantCommand extends _0x9f4bf2{[_0x44d18e(0x156)];constructor(_0x52c8cd,_0x1a1b20){const _0x32ae9d=_0x44d18e;super(_0x52c8cd),this[_0x32ae9d(0x156)]=_0x1a1b20,this[_0x32ae9d(0x14b)](_0x32ae9d(0x142),[]),this['on'](_0x32ae9d(0x15a),(_0x582542,_0x14dd86,_0x40fddf)=>{const _0x5a2898=_0x32ae9d;this[_0x5a2898(0x15f)]&&(this[_0x5a2898(0x142)]=ns(this[_0x5a2898(0x156)],_0x40fddf));}),this[_0x32ae9d(0x14b)](_0x32ae9d(0x150),!0x1),this['on'](_0x32ae9d(0x148),(_0x1853b0,_0x137255,_0x175438)=>{const _0x271a36=_0x32ae9d;this[_0x271a36(0x142)]=_0x175438?ns(this[_0x271a36(0x156)],this[_0x271a36(0x150)]):[];});}[_0x44d18e(0x164)](){const _0x3d83dc=_0x44d18e,_0x33ad5d=this[_0x3d83dc(0x145)][_0x3d83dc(0x167)];this[_0x3d83dc(0x150)]=function(_0x248b49){const _0x2f7f89=_0x3d83dc,_0x11852=_0x248b49[_0x2f7f89(0x14f)][_0x2f7f89(0x160)];return _0x11852[_0x2f7f89(0x143)]?0x0!==[..._0x11852[_0x2f7f89(0x154)]()][_0x2f7f89(0x158)]&&![..._0x11852[_0x2f7f89(0x154)]()][0x0][_0x2f7f89(0x169)]:!!_0x248b49[_0x2f7f89(0x163)](_0x11852[_0x2f7f89(0x15b)]());}(_0x33ad5d);const _0x2cf491=_0x33ad5d[_0x3d83dc(0x14f)][_0x3d83dc(0x160)],_0x58b08b=this[_0x3d83dc(0x145)][_0x3d83dc(0x144)][_0x3d83dc(0x165)](_0x3d83dc(0x14d));for(const _0x59a2f6 of _0x2cf491[_0x3d83dc(0x15e)]())for(const _0x15a39a of _0x59a2f6[_0x3d83dc(0x15d)]())if(_0x15a39a['is'](_0x3d83dc(0x168))&&_0x58b08b[_0x3d83dc(0x161)](_0x15a39a[_0x3d83dc(0x14e)]))return void(this[_0x3d83dc(0x15f)]=!0x1);this[_0x3d83dc(0x15f)]=!0x0;}[_0x44d18e(0x141)](_0x1eff7e='',_0x52c22e='',_0xec6f2b=_0x44d18e(0x146)){const _0x1ae122=_0x44d18e;this[_0x1ae122(0x145)][_0x1ae122(0x13c)][_0x1ae122(0x165)](_0x21a013)[_0x1ae122(0x13e)](_0x1eff7e,_0x52c22e,_0xec6f2b);}}function ns(_0x278f25,_0x366e41){const _0xa054b1=_0x44d18e,_0x12ded6=new Set();for(const _0x32d067 of _0x278f25[_0xa054b1(0x159)]())(_0x366e41||!0x1===_0x32d067[_0xa054b1(0x157)])&&_0x12ded6[_0xa054b1(0x140)](_0x32d067['id']);return Array[_0xa054b1(0x155)](_0x12ded6);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export function getTranslation(_0x4d90ef,_0xeb11e7,_0x29fea1){const t=_0x4d90ef['t'];switch(_0xeb11e7){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',_0x29fea1);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x29fea1);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'},_0x29fea1);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 _0xeb11e7;}}
23
+ export function getTranslation(_0x376b93,_0x3fd962,_0x2ca371){const t=_0x376b93['t'];switch(_0x3fd962){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',_0x2ca371);case'Error\x20during\x20AI\x20content\x20generation:\x20%0':return t('Error\x20during\x20AI\x20content\x20generation:\x20%0',_0x2ca371);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'},_0x2ca371);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_AWS_NOT_SUPPORTED':return t({'id':'AI_ERROR_AWS_NOT_SUPPORTED','string':'The\x20AWS\x20integration\x20is\x20no\x20longer\x20supported.\x20Please\x20contact\x20the\x20support.'});case'AI_ERROR_FAILED':return t({'id':'AI_ERROR_FAILED','string':'Failed\x20to\x20communicate\x20with\x20the\x20AI\x20service'});default:return _0x3fd962;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x53f529,_0xf10b8b){const _0x5896a6=(0x0,_0xf10b8b['t'])('Other');return _0x53f529['length']?'groupId'in _0x53f529[0x0]?_0x53f529:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5896a6,'order':0x1/0x0,'commands':_0x53f529}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x5896a6,'order':0x1/0x0,'commands':[]}];}
23
+ export const UNGROUPED_COMMANDS_GROUP_ID='_ungrouppedCommands';export function normalizeCommandsConfig(_0x3fb2cb,_0x30325c){const _0x6ff8ec=(0x0,_0x30325c['t'])('Other');return _0x3fb2cb['length']?'groupId'in _0x3fb2cb[0x0]?_0x3fb2cb:[{'groupId':'_ungrouppedCommands','groupLabel':_0x6ff8ec,'order':0x1/0x0,'commands':_0x3fb2cb}]:[{'groupId':'_ungrouppedCommands','groupLabel':_0x6ff8ec,'order':0x1/0x0,'commands':[]}];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x126c(){const _0x3ff6c1=['length','_calculateOptimalTopPosition','isPremiumPlugin','_cleanupFakeVisualSelectionMarkerRemovalListener','rootName','2980560cxHGmv','headerView','isOpen','getBoundingRect','dialogClosed','left','window','ranges','beforeDialogClosed','get','document','_calculateDialogPosition','showFakeVisualSelection','getVisible','filter','mainView','max','stopListening','markers','differ','listenTo','isEqual','310616bMgivi','1160775QaAcTb','updatePosition','map','index','top','view','1OxycNS','showBlockingError','422847sQJKFk','open','4loSNop','243400GlIOFr','Dialog','ck-ai-balloon\x20','context','ai-balloon-selection','392OWTzqP','AI_BALLOON_SELECTION_REMOVED_ERROR','_getSelectionElements','plugins','_hideFakeVisualSelection','ai-selection','root','label','getChangedMarkers','bottom','editing','getIntersection','$graveyard','width','change','AIBalloon','end','round','requires','19390VOXMHe','height','_currentConfig','ai-balloon-','locale','close','bind','_setupFakeVisualSelectionMarkerRemovalListener','hideFakeVisualSelection','_showDialog','hideError','startsWith','isOfficialPlugin','high','hide','fire','model','getMarkersGroup','content','show','once','12645960zcTdGh','selectionRemoved','pluginName','_updateDialog','_isUpdatingMarkers','delegate','_showFakeVisualSelection','iconView','start'];_0x126c=function(){return _0x3ff6c1;};return _0x126c();}const _0x1924fe=_0x51e3;(function(_0x57fa5d,_0x4ca4d4){const _0x33afad=_0x51e3,_0x41a8df=_0x57fa5d();while(!![]){try{const _0x104a38=parseInt(_0x33afad(0x1a3))/0x1*(-parseInt(_0x33afad(0x19c))/0x2)+-parseInt(_0x33afad(0x1a5))/0x3*(-parseInt(_0x33afad(0x1a7))/0x4)+parseInt(_0x33afad(0x1a8))/0x5+-parseInt(_0x33afad(0x1e3))/0x6+-parseInt(_0x33afad(0x1c0))/0x7*(parseInt(_0x33afad(0x1ad))/0x8)+-parseInt(_0x33afad(0x19d))/0x9+parseInt(_0x33afad(0x1d5))/0xa;if(_0x104a38===_0x4ca4d4)break;else _0x41a8df['push'](_0x41a8df['shift']());}catch(_0x3f0cb6){_0x41a8df['push'](_0x41a8df['shift']());}}}(_0x126c,0x8336c));import{ContextPlugin as _0x50e05f}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x484bee,AIEditing as _0x2fadaa}from'../aicore/aiediting.js';import'../../theme/aiballoon/aiballoon.css';function _0x51e3(_0x23535a,_0x1d7140){const _0x126c47=_0x126c();return _0x51e3=function(_0x51e3e8,_0x34f9f7){_0x51e3e8=_0x51e3e8-0x187;let _0x2172e5=_0x126c47[_0x51e3e8];return _0x2172e5;},_0x51e3(_0x23535a,_0x1d7140);}import{getAllMarkersDomElementsSorted as _0x32329e}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x1f1a29,Rect as _0xbce4e4,scrollViewportToShowTarget as _0xfcf8b7}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x1dd8d2}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x2b6aa5}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x3d4607}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x3d4607,_0x1924fe(0x18a),_0x1924fe(0x1d6)];const $=0xa;export class AIBalloon extends _0x50e05f{static get[_0x1924fe(0x1bf)](){return[_0x2fadaa];}static get[_0x1924fe(0x1d7)](){const _0x46834a=_0x1924fe;return _0x46834a(0x1bc);}static get[_0x1924fe(0x1cc)](){return!0x0;}static get[_0x1924fe(0x1e0)](){return!0x0;}[_0x1924fe(0x188)]=!0x1;[_0x1924fe(0x1c2)];[_0x1924fe(0x1d9)]=!0x1;[_0x1924fe(0x1a6)](_0x1d3635){const _0x261e0c=_0x1924fe,{id:_0x3506c5}=this[_0x261e0c(0x1c2)]??{};this[_0x261e0c(0x1c2)]=_0x1d3635;const {id:_0x125714}=this[_0x261e0c(0x1c2)];this[_0x261e0c(0x188)]&&_0x3506c5===_0x125714?this[_0x261e0c(0x1d8)]():this[_0x261e0c(0x1c9)]();}[_0x1924fe(0x1c5)](){const _0x2704ec=_0x1924fe,_0x5e0edb=_0x1dd8d2(this[_0x2704ec(0x1ab)])[_0x2704ec(0x1b0)][_0x2704ec(0x18f)](_0x2704ec(0x1a9));_0x5e0edb[_0x2704ec(0x188)]&&this[_0x2704ec(0x1c2)]&&_0x5e0edb['id']===this[_0x2704ec(0x1c2)]['id']&&_0x5e0edb[_0x2704ec(0x1ce)]();}[_0x1924fe(0x1d8)](){const _0x2a7d82=_0x1924fe,_0x58f171=_0x1dd8d2(this[_0x2a7d82(0x1ab)])[_0x2a7d82(0x1b0)][_0x2a7d82(0x18f)](_0x2a7d82(0x1a9)),{icon:_0x35bec3,title:_0x209748}=this[_0x2a7d82(0x1c2)];_0x58f171[_0x2a7d82(0x1a2)]?.[_0x2a7d82(0x187)]&&(_0x58f171[_0x2a7d82(0x1a2)][_0x2a7d82(0x187)][_0x2a7d82(0x1b4)]=_0x209748,_0x58f171[_0x2a7d82(0x1a2)][_0x2a7d82(0x187)][_0x2a7d82(0x1dc)]&&_0x35bec3&&(_0x58f171[_0x2a7d82(0x1a2)][_0x2a7d82(0x187)][_0x2a7d82(0x1dc)][_0x2a7d82(0x1d2)]=_0x35bec3)),this[_0x2a7d82(0x1d9)]=!0x0,this[_0x2a7d82(0x1db)](),this[_0x2a7d82(0x1d9)]=!0x1,_0x58f171[_0x2a7d82(0x1a2)]?.[_0x2a7d82(0x19e)]();}[_0x1924fe(0x1db)](){const _0x274da1=_0x1924fe;this[_0x274da1(0x1ab)][_0x274da1(0x1b0)][_0x274da1(0x18f)](_0x2fadaa)[_0x274da1(0x192)](this[_0x274da1(0x1c2)][_0x274da1(0x18d)],_0x274da1(0x1c3)+this[_0x274da1(0x1c2)][_0x274da1(0x1a0)],!0x0,!0x0);}[_0x1924fe(0x1b1)](_0x45c573){const _0x254595=_0x1924fe;this[_0x254595(0x1ab)][_0x254595(0x1b0)][_0x254595(0x18f)](_0x2fadaa)[_0x254595(0x1c8)](_0x254595(0x1c3)+_0x45c573);}[_0x1924fe(0x1c9)](){const _0xe67c25=_0x1924fe,_0x38a03a=_0x1dd8d2(this[_0xe67c25(0x1ab)])[_0xe67c25(0x1b0)][_0xe67c25(0x18f)](_0xe67c25(0x1a9)),{id:_0x5b9eee,title:_0x20f915,icon:_0x2849c1,class:_0x406f53,mainView:_0x19dd19}=this[_0xe67c25(0x1c2)];_0x19dd19[_0xe67c25(0x1da)](..._0x3d4607)['to'](this),_0x38a03a[_0xe67c25(0x1d3)]({'title':_0x20f915,'icon':_0x2849c1,'hasCloseButton':!0x0,'id':_0x5b9eee,'position':this[_0xe67c25(0x191)][_0xe67c25(0x1c6)](this),'className':_0xe67c25(0x1aa)+(_0x406f53||''),'content':_0x19dd19,'onShow':_0x33c833=>{const _0x4841e4=_0xe67c25;this[_0x4841e4(0x1db)](),this[_0x4841e4(0x1c7)]();const _0x1a9556=this[_0x4841e4(0x1af)]();_0x1a9556&&_0x1a9556[0x0]&&_0xfcf8b7({'target':_0x1a9556[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x4841e4(0x188)]=!0x0,_0x33c833[_0x4841e4(0x1d4)](_0x4841e4(0x1ce),()=>{const _0x274d6c=_0x4841e4;this[_0x274d6c(0x1cf)](_0x274d6c(0x18e),{'id':_0x5b9eee});},{'priority':_0x4841e4(0x1cd)});},'onHide':()=>{const _0x181c08=_0xe67c25;this[_0x181c08(0x1b1)](this[_0x181c08(0x1c2)][_0x181c08(0x1a0)]),this[_0x181c08(0x1e1)](),this[_0x181c08(0x1cf)](_0x181c08(0x18a),{'id':_0x5b9eee}),this[_0x181c08(0x188)]=!0x1;}});}[_0x1924fe(0x191)](_0x50d9a6,_0x16e215){const _0x3d5701=_0x1924fe;if(!_0x16e215)return null;const _0x33f595=this[_0x3d5701(0x1af)]();if(!_0x33f595||0x0===_0x33f595[_0x3d5701(0x1de)])return{'left':Math[_0x3d5701(0x1be)](_0x16e215[_0x3d5701(0x18b)]+_0x16e215[_0x3d5701(0x1ba)]/0x2-_0x50d9a6[_0x3d5701(0x1ba)]/0x2),'top':Math[_0x3d5701(0x1be)](_0x16e215[_0x3d5701(0x1a1)]+_0x16e215[_0x3d5701(0x1c1)]/0x2-_0x50d9a6[_0x3d5701(0x1c1)]/0x2)};const _0x5dadec=Math[_0x3d5701(0x1be)](_0x16e215[_0x3d5701(0x18b)]+_0x16e215[_0x3d5701(0x1ba)]/0x2-_0x50d9a6[_0x3d5701(0x1ba)]/0x2),_0x383035=_0x33f595[_0x3d5701(0x19f)](_0xcab3c7=>new _0xbce4e4(_0xcab3c7)),_0x26dd7a=_0x50d9a6[_0x3d5701(0x1c1)];return{'left':_0x5dadec,'top':this[_0x3d5701(0x1df)](_0x383035,_0x26dd7a,_0x16e215)};}[_0x1924fe(0x1df)](_0x16c220,_0x5e0622,_0x2a783a){const _0x520a1c=_0x1924fe,_0x32fa27=new _0xbce4e4(_0x1f1a29[_0x520a1c(0x18c)]),_0x44f5de=_0x16c220[_0x520a1c(0x19f)](_0x458066=>_0x458066[_0x520a1c(0x193)]())[_0x520a1c(0x194)](_0x32592e=>_0x32592e),_0x22f942=_0xbce4e4[_0x520a1c(0x189)](_0x44f5de);if(!_0x22f942)return Math[_0x520a1c(0x1be)](_0x2a783a[_0x520a1c(0x1a1)]+_0x2a783a[_0x520a1c(0x1c1)]/0x2);const _0xb2c5ca=_0x32fa27[_0x520a1c(0x1b8)](_0x22f942);if(!_0xb2c5ca)return Math[_0x520a1c(0x1be)](_0x2a783a[_0x520a1c(0x1a1)]+_0x2a783a[_0x520a1c(0x1c1)]/0x2);const _0x19e86c=_0x2a783a[_0x520a1c(0x193)](),_0x4c7900=_0x19e86c&&_0x22f942[_0x520a1c(0x1c1)]>_0x19e86c[_0x520a1c(0x1c1)],_0xcf055b=_0xb2c5ca[_0x520a1c(0x1a1)],_0x23436e=_0xb2c5ca[_0x520a1c(0x1b6)];if(_0x4c7900){const _0x3b38eb=(_0x19e86c||_0x32fa27)[_0x520a1c(0x1c1)]/0x2-_0x5e0622/0x2,_0x5a0547=_0xcf055b-$-_0x2a783a[_0x520a1c(0x1a1)],_0x59afa4=_0x2a783a[_0x520a1c(0x1b6)]-_0x23436e-$;return _0x5a0547>=_0x5e0622?Math[_0x520a1c(0x196)]($,_0xcf055b-_0x5e0622-$):_0x59afa4>=_0x5e0622?_0x23436e+$:Math[_0x520a1c(0x196)]($,_0x3b38eb);}const _0x143a37=_0xcf055b-_0x5e0622,_0x4c7caf=_0x2a783a[_0x520a1c(0x1b6)]-_0x23436e-$,_0x272600=_0xcf055b-$-_0x2a783a[_0x520a1c(0x1a1)];let _0x4468e7;if(_0x4c7caf>=_0x5e0622)_0x4468e7=_0x23436e+$;else{if(_0x272600>=_0x5e0622)_0x4468e7=_0x143a37-$;else _0x4468e7=_0xcf055b+_0x22f942[_0x520a1c(0x1c1)]/0x2-_0x5e0622/0x2;}return _0x4468e7;}[_0x1924fe(0x1c7)](){const _0x351166=_0x1924fe,_0x2ff602=_0x1dd8d2(this[_0x351166(0x1ab)]);this[_0x351166(0x19a)](_0x2ff602[_0x351166(0x1d0)][_0x351166(0x190)],_0x351166(0x1bb),()=>{const _0xe2bf34=_0x351166;if(!this[_0xe2bf34(0x1d9)]){for(const {name:_0x2f542b,data:{newRange:_0xd7920c}}of _0x2ff602[_0xe2bf34(0x1d0)][_0xe2bf34(0x190)][_0xe2bf34(0x199)][_0xe2bf34(0x1b5)]())if(_0x2f542b[_0xe2bf34(0x1cb)](_0x484bee+':')&&(_0xd7920c&&(_0xd7920c[_0xe2bf34(0x1dd)][_0xe2bf34(0x19b)](_0xd7920c[_0xe2bf34(0x1bd)])||_0xe2bf34(0x1b9)==_0xd7920c[_0xe2bf34(0x1b3)][_0xe2bf34(0x1e2)])||null==_0xd7920c)){const _0x4eb730=_0x2b6aa5(this[_0xe2bf34(0x1ab)][_0xe2bf34(0x1c4)],_0xe2bf34(0x1ae));this[_0xe2bf34(0x1c2)][_0xe2bf34(0x195)][_0xe2bf34(0x1a4)](_0x4eb730),this[_0xe2bf34(0x1cf)](_0xe2bf34(0x1d6));}}});}[_0x1924fe(0x1e1)](){const _0x5d86ba=_0x1924fe,_0x34f6ed=_0x1dd8d2(this[_0x5d86ba(0x1ab)]);this[_0x5d86ba(0x1c2)][_0x5d86ba(0x195)][_0x5d86ba(0x1ca)](),this[_0x5d86ba(0x197)](_0x34f6ed[_0x5d86ba(0x1d0)][_0x5d86ba(0x190)]);}[_0x1924fe(0x1af)](){const _0x4cf0ea=_0x1924fe,_0x4ff69b=_0x1dd8d2(this[_0x4cf0ea(0x1ab)]);return _0x32329e(_0x4ff69b[_0x4cf0ea(0x1b7)],[..._0x4ff69b[_0x4cf0ea(0x1d0)][_0x4cf0ea(0x198)][_0x4cf0ea(0x1d1)](_0x4cf0ea(0x1b2)),..._0x4ff69b[_0x4cf0ea(0x1d0)][_0x4cf0ea(0x198)][_0x4cf0ea(0x1d1)](_0x4cf0ea(0x1ac))]);}}
23
+ const _0x144ded=_0x4664;(function(_0x5a9745,_0x140fbe){const _0x5aedf3=_0x4664,_0x6ea073=_0x5a9745();while(!![]){try{const _0x2b7b35=-parseInt(_0x5aedf3(0x106))/0x1*(-parseInt(_0x5aedf3(0xf6))/0x2)+-parseInt(_0x5aedf3(0xd4))/0x3+-parseInt(_0x5aedf3(0x107))/0x4+parseInt(_0x5aedf3(0xf9))/0x5*(-parseInt(_0x5aedf3(0xe2))/0x6)+parseInt(_0x5aedf3(0xbf))/0x7*(-parseInt(_0x5aedf3(0xeb))/0x8)+-parseInt(_0x5aedf3(0x10b))/0x9*(-parseInt(_0x5aedf3(0x100))/0xa)+-parseInt(_0x5aedf3(0xbe))/0xb*(-parseInt(_0x5aedf3(0xc8))/0xc);if(_0x2b7b35===_0x140fbe)break;else _0x6ea073['push'](_0x6ea073['shift']());}catch(_0x4f950b){_0x6ea073['push'](_0x6ea073['shift']());}}}(_0x4f30,0xcb6a5));import{ContextPlugin as _0x23f9cb}from'ckeditor5/src/core.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0xa6514a,AIEditing as _0x2297ea}from'../aicore/aiediting.js';function _0x4f30(){const _0x3d2299=['getIntersection','mainView','ai-selection','context','944FJLRuF','_updateDialog','AIBalloon','document','ai-balloon-','map','isEqual','end','locale','top','_hideFakeVisualSelection','70478XpqhyK','_currentConfig','getBoundingRect','32975HGBlxM','ranges','_setupFakeVisualSelectionMarkerRemovalListener','plugins','view','requires','rootName','275020VUaeyl','_cleanupFakeVisualSelectionMarkerRemovalListener','_isUpdatingMarkers','length','AI_BALLOON_SELECTION_REMOVED_ERROR','_showDialog','43upvnmi','4634452gkimzF','$graveyard','hide','getMarkersGroup','90yyaCrp','startsWith','delegate','left','beforeDialogClosed','height','get','ai-balloon-selection','isOpen','_calculateDialogPosition','getChangedMarkers','show','_showFakeVisualSelection','_calculateOptimalTopPosition','headerView','isOfficialPlugin','high','fire','11sudOuf','57841xnXOhj','max','content','pluginName','stopListening','open','isPremiumPlugin','window','differ','18990888shmcuP','editing','once','Dialog','listenTo','width','ck-ai-balloon\x20','showBlockingError','hideError','dialogClosed','hideFakeVisualSelection','filter','842190DYuGlZ','index','getVisible','close','change','updatePosition','_getSelectionElements','label','round','bind','showFakeVisualSelection','start','root','iconView','114mAHzfX','bottom','markers','selectionRemoved','model'];_0x4f30=function(){return _0x3d2299;};return _0x4f30();}function _0x4664(_0x44a2e7,_0x6b996b){const _0x4f30da=_0x4f30();return _0x4664=function(_0x4664a9,_0x1242b2){_0x4664a9=_0x4664a9-0xbc;let _0x1e6372=_0x4f30da[_0x4664a9];return _0x1e6372;},_0x4664(_0x44a2e7,_0x6b996b);}import'../../theme/aiballoon/aiballoon.css';import{getAllMarkersDomElementsSorted as _0x212b7d}from'ckeditor5-collaboration/src/collaboration-core.js';import{global as _0x260619,Rect as _0x1519fe,scrollViewportToShowTarget as _0x12f322}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x21b57f}from'../aicore/utils/geteditorfromcontext.js';import{getTranslation as _0x4c8fec}from'../aicore/utils/common-translations.js';import{AI_BALLOON_VIEW_EVENT_NAMES as _0x4a9f8b}from'./ui/aiballoonview.js';export const AI_BALLOON_EVENT_NAMES=[..._0x4a9f8b,_0x144ded(0xd1),_0x144ded(0xe5)];const $=0xa;export class AIBalloon extends _0x23f9cb{static get[_0x144ded(0xfe)](){return[_0x2297ea];}static get[_0x144ded(0xc2)](){const _0x3e5854=_0x144ded;return _0x3e5854(0xed);}static get[_0x144ded(0x11a)](){return!0x0;}static get[_0x144ded(0xc5)](){return!0x0;}[_0x144ded(0x113)]=!0x1;[_0x144ded(0xf7)];[_0x144ded(0x102)]=!0x1;[_0x144ded(0xc4)](_0x5efcbf){const _0x336fcc=_0x144ded,{id:_0x1ceffe}=this[_0x336fcc(0xf7)]??{};this[_0x336fcc(0xf7)]=_0x5efcbf;const {id:_0x930548}=this[_0x336fcc(0xf7)];this[_0x336fcc(0x113)]&&_0x1ceffe===_0x930548?this[_0x336fcc(0xec)]():this[_0x336fcc(0x105)]();}[_0x144ded(0xd7)](){const _0x1eb0d0=_0x144ded,_0x1e3d1f=_0x21b57f(this[_0x1eb0d0(0xea)])[_0x1eb0d0(0xfc)][_0x1eb0d0(0x111)](_0x1eb0d0(0xcb));_0x1e3d1f[_0x1eb0d0(0x113)]&&this[_0x1eb0d0(0xf7)]&&_0x1e3d1f['id']===this[_0x1eb0d0(0xf7)]['id']&&_0x1e3d1f[_0x1eb0d0(0x109)]();}[_0x144ded(0xec)](){const _0x1e1ce7=_0x144ded,_0x2d3719=_0x21b57f(this[_0x1e1ce7(0xea)])[_0x1e1ce7(0xfc)][_0x1e1ce7(0x111)](_0x1e1ce7(0xcb)),{icon:_0x5fea3d,title:_0x293875}=this[_0x1e1ce7(0xf7)];_0x2d3719[_0x1e1ce7(0xfd)]?.[_0x1e1ce7(0x119)]&&(_0x2d3719[_0x1e1ce7(0xfd)][_0x1e1ce7(0x119)][_0x1e1ce7(0xdb)]=_0x293875,_0x2d3719[_0x1e1ce7(0xfd)][_0x1e1ce7(0x119)][_0x1e1ce7(0xe1)]&&_0x5fea3d&&(_0x2d3719[_0x1e1ce7(0xfd)][_0x1e1ce7(0x119)][_0x1e1ce7(0xe1)][_0x1e1ce7(0xc1)]=_0x5fea3d)),this[_0x1e1ce7(0x102)]=!0x0,this[_0x1e1ce7(0x117)](),this[_0x1e1ce7(0x102)]=!0x1,_0x2d3719[_0x1e1ce7(0xfd)]?.[_0x1e1ce7(0xd9)]();}[_0x144ded(0x117)](){const _0x402a95=_0x144ded;this[_0x402a95(0xea)][_0x402a95(0xfc)][_0x402a95(0x111)](_0x2297ea)[_0x402a95(0xde)](this[_0x402a95(0xf7)][_0x402a95(0xfa)],_0x402a95(0xef)+this[_0x402a95(0xf7)][_0x402a95(0xd5)],!0x0,!0x0);}[_0x144ded(0xf5)](_0x38ffcd){const _0x541ca0=_0x144ded;this[_0x541ca0(0xea)][_0x541ca0(0xfc)][_0x541ca0(0x111)](_0x2297ea)[_0x541ca0(0xd2)](_0x541ca0(0xef)+_0x38ffcd);}[_0x144ded(0x105)](){const _0x4cfcd9=_0x144ded,_0x1a590d=_0x21b57f(this[_0x4cfcd9(0xea)])[_0x4cfcd9(0xfc)][_0x4cfcd9(0x111)](_0x4cfcd9(0xcb)),{id:_0x39fdf2,title:_0x942559,icon:_0x529cb2,class:_0xc4dfdd,mainView:_0x23cc4f}=this[_0x4cfcd9(0xf7)];_0x23cc4f[_0x4cfcd9(0x10d)](..._0x4a9f8b)['to'](this),_0x1a590d[_0x4cfcd9(0x116)]({'title':_0x942559,'icon':_0x529cb2,'hasCloseButton':!0x0,'id':_0x39fdf2,'position':this[_0x4cfcd9(0x114)][_0x4cfcd9(0xdd)](this),'className':_0x4cfcd9(0xce)+(_0xc4dfdd||''),'content':_0x23cc4f,'onShow':_0x1e63dd=>{const _0x2ee073=_0x4cfcd9;this[_0x2ee073(0x117)](),this[_0x2ee073(0xfb)]();const _0x2c3629=this[_0x2ee073(0xda)]();_0x2c3629&&_0x2c3629[0x0]&&_0x12f322({'target':_0x2c3629[0x0],'ancestorOffset':0x14,'alignToTop':!0x0,'viewportOffset':{'top':0x14,'bottom':0x14,'left':0x0,'right':0x0}}),this[_0x2ee073(0x113)]=!0x0,_0x1e63dd[_0x2ee073(0xca)](_0x2ee073(0x109),()=>{const _0x43b093=_0x2ee073;this[_0x43b093(0xbd)](_0x43b093(0x10f),{'id':_0x39fdf2});},{'priority':_0x2ee073(0xbc)});},'onHide':()=>{const _0x8c406b=_0x4cfcd9;this[_0x8c406b(0xf5)](this[_0x8c406b(0xf7)][_0x8c406b(0xd5)]),this[_0x8c406b(0x101)](),this[_0x8c406b(0xbd)](_0x8c406b(0xd1),{'id':_0x39fdf2}),this[_0x8c406b(0x113)]=!0x1;}});}[_0x144ded(0x114)](_0x347e9f,_0x5b1fc4){const _0x154bf6=_0x144ded;if(!_0x5b1fc4)return null;const _0x289b03=this[_0x154bf6(0xda)]();if(!_0x289b03||0x0===_0x289b03[_0x154bf6(0x103)])return{'left':Math[_0x154bf6(0xdc)](_0x5b1fc4[_0x154bf6(0x10e)]+_0x5b1fc4[_0x154bf6(0xcd)]/0x2-_0x347e9f[_0x154bf6(0xcd)]/0x2),'top':Math[_0x154bf6(0xdc)](_0x5b1fc4[_0x154bf6(0xf4)]+_0x5b1fc4[_0x154bf6(0x110)]/0x2-_0x347e9f[_0x154bf6(0x110)]/0x2)};const _0x2e21c3=Math[_0x154bf6(0xdc)](_0x5b1fc4[_0x154bf6(0x10e)]+_0x5b1fc4[_0x154bf6(0xcd)]/0x2-_0x347e9f[_0x154bf6(0xcd)]/0x2),_0xe32c22=_0x289b03[_0x154bf6(0xf0)](_0x532628=>new _0x1519fe(_0x532628)),_0x2dd5d8=_0x347e9f[_0x154bf6(0x110)];return{'left':_0x2e21c3,'top':this[_0x154bf6(0x118)](_0xe32c22,_0x2dd5d8,_0x5b1fc4)};}[_0x144ded(0x118)](_0x294c06,_0x312202,_0x1792cc){const _0x2cb109=_0x144ded,_0x139852=new _0x1519fe(_0x260619[_0x2cb109(0xc6)]),_0x1907ea=_0x294c06[_0x2cb109(0xf0)](_0x2c40fa=>_0x2c40fa[_0x2cb109(0xd6)]())[_0x2cb109(0xd3)](_0x100002=>_0x100002),_0x2a07ff=_0x1519fe[_0x2cb109(0xf8)](_0x1907ea);if(!_0x2a07ff)return Math[_0x2cb109(0xdc)](_0x1792cc[_0x2cb109(0xf4)]+_0x1792cc[_0x2cb109(0x110)]/0x2);const _0x50a3a5=_0x139852[_0x2cb109(0xe7)](_0x2a07ff);if(!_0x50a3a5)return Math[_0x2cb109(0xdc)](_0x1792cc[_0x2cb109(0xf4)]+_0x1792cc[_0x2cb109(0x110)]/0x2);const _0x27e7d3=_0x1792cc[_0x2cb109(0xd6)](),_0x473883=_0x27e7d3&&_0x2a07ff[_0x2cb109(0x110)]>_0x27e7d3[_0x2cb109(0x110)],_0x11170e=_0x50a3a5[_0x2cb109(0xf4)],_0x1cb788=_0x50a3a5[_0x2cb109(0xe3)];if(_0x473883){const _0xdf0b41=(_0x27e7d3||_0x139852)[_0x2cb109(0x110)]/0x2-_0x312202/0x2,_0x4c6bbc=_0x11170e-$-_0x1792cc[_0x2cb109(0xf4)],_0x4c1ade=_0x1792cc[_0x2cb109(0xe3)]-_0x1cb788-$;return _0x4c6bbc>=_0x312202?Math[_0x2cb109(0xc0)]($,_0x11170e-_0x312202-$):_0x4c1ade>=_0x312202?_0x1cb788+$:Math[_0x2cb109(0xc0)]($,_0xdf0b41);}const _0x138d50=_0x11170e-_0x312202,_0x154526=_0x1792cc[_0x2cb109(0xe3)]-_0x1cb788-$,_0x204f41=_0x11170e-$-_0x1792cc[_0x2cb109(0xf4)];let _0x230372;if(_0x154526>=_0x312202)_0x230372=_0x1cb788+$;else{if(_0x204f41>=_0x312202)_0x230372=_0x138d50-$;else _0x230372=_0x11170e+_0x2a07ff[_0x2cb109(0x110)]/0x2-_0x312202/0x2;}return _0x230372;}[_0x144ded(0xfb)](){const _0x9e9234=_0x144ded,_0x406c0b=_0x21b57f(this[_0x9e9234(0xea)]);this[_0x9e9234(0xcc)](_0x406c0b[_0x9e9234(0xe6)][_0x9e9234(0xee)],_0x9e9234(0xd8),()=>{const _0x20a486=_0x9e9234;if(!this[_0x20a486(0x102)]){for(const {name:_0x22317c,data:{newRange:_0x24c39a}}of _0x406c0b[_0x20a486(0xe6)][_0x20a486(0xee)][_0x20a486(0xc7)][_0x20a486(0x115)]())if(_0x22317c[_0x20a486(0x10c)](_0xa6514a+':')&&(_0x24c39a&&(_0x24c39a[_0x20a486(0xdf)][_0x20a486(0xf1)](_0x24c39a[_0x20a486(0xf2)])||_0x20a486(0x108)==_0x24c39a[_0x20a486(0xe0)][_0x20a486(0xff)])||null==_0x24c39a)){const _0x22fdba=_0x4c8fec(this[_0x20a486(0xea)][_0x20a486(0xf3)],_0x20a486(0x104));this[_0x20a486(0xf7)][_0x20a486(0xe8)][_0x20a486(0xcf)](_0x22fdba),this[_0x20a486(0xbd)](_0x20a486(0xe5));}}});}[_0x144ded(0x101)](){const _0x55e431=_0x144ded,_0x367653=_0x21b57f(this[_0x55e431(0xea)]);this[_0x55e431(0xf7)][_0x55e431(0xe8)][_0x55e431(0xd0)](),this[_0x55e431(0xc3)](_0x367653[_0x55e431(0xe6)][_0x55e431(0xee)]);}[_0x144ded(0xda)](){const _0x4ed89d=_0x144ded,_0xc9d4f3=_0x21b57f(this[_0x4ed89d(0xea)]);return _0x212b7d(_0xc9d4f3[_0x4ed89d(0xc9)],[..._0xc9d4f3[_0x4ed89d(0xe6)][_0x4ed89d(0xe4)][_0x4ed89d(0x10a)](_0x4ed89d(0xe9)),..._0xc9d4f3[_0x4ed89d(0xe6)][_0x4ed89d(0xe4)][_0x4ed89d(0x10a)](_0x4ed89d(0x112))]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4a03eb=_0x22fe;(function(_0x3e9c95,_0x24b119){const _0x3c1fb7=_0x22fe,_0x332b6b=_0x3e9c95();while(!![]){try{const _0x575a6e=parseInt(_0x3c1fb7(0x14e))/0x1*(-parseInt(_0x3c1fb7(0x152))/0x2)+parseInt(_0x3c1fb7(0x151))/0x3+-parseInt(_0x3c1fb7(0x14f))/0x4*(parseInt(_0x3c1fb7(0x15c))/0x5)+-parseInt(_0x3c1fb7(0x143))/0x6*(parseInt(_0x3c1fb7(0x159))/0x7)+-parseInt(_0x3c1fb7(0x15b))/0x8+-parseInt(_0x3c1fb7(0x146))/0x9+parseInt(_0x3c1fb7(0x144))/0xa;if(_0x575a6e===_0x24b119)break;else _0x332b6b['push'](_0x332b6b['shift']());}catch(_0x22dfed){_0x332b6b['push'](_0x332b6b['shift']());}}}(_0x425e,0x1b01f));import{View as _0x22e2b3}from'ckeditor5/src/ui.js';function _0x22fe(_0x468927,_0x3f0a2c){const _0x425e89=_0x425e();return _0x22fe=function(_0x22feec,_0x42c722){_0x22feec=_0x22feec-0x140;let _0xe2ae06=_0x425e89[_0x22feec];return _0xe2ae06;},_0x22fe(_0x468927,_0x3f0a2c);}export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4a03eb(0x149),_0x4a03eb(0x148),_0x4a03eb(0x140),_0x4a03eb(0x150)];function _0x425e(){const _0x306e4d=['setTemplate','_isErrorVisible','_errorMessage','ck-hidden','showBlockingError','set','696017EtObXC','showError','1504936tUvcZu','100hhFzoP','_createErrorView','hideError','showNext','ck-ai-suggestion__error','div','6qmEetI','5760360ApuiMZ','locale','1435464BTOJdt','bindTemplate','insertSuggestion','applySuggestion','ck-ai-suggestion__error-text','ck-ai-balloon-error','span','_errorView','1879EJKJgC','21884MHyYdI','showPrevious','284427rUMpEP','4ntlqqT'];_0x425e=function(){return _0x306e4d;};return _0x425e();}export class AIBalloonView extends _0x22e2b3{[_0x4a03eb(0x14d)];constructor(_0x3d721e){const _0xe83e84=_0x4a03eb;super(_0x3d721e),this[_0xe83e84(0x158)](_0xe83e84(0x155),''),this[_0xe83e84(0x158)](_0xe83e84(0x154),!0x1);}[_0x4a03eb(0x157)](_0x528b15){const _0x22d41a=_0x4a03eb;this[_0x22d41a(0x15a)](_0x528b15);}[_0x4a03eb(0x15a)](_0x3b033a){const _0x50e28d=_0x4a03eb;this[_0x50e28d(0x14d)]||(this[_0x50e28d(0x14d)]=this[_0x50e28d(0x15d)]()),this[_0x50e28d(0x155)]=_0x3b033a,this[_0x50e28d(0x154)]=!0x0;}[_0x4a03eb(0x15e)](){const _0xe7aa8a=_0x4a03eb;this[_0xe7aa8a(0x154)]=!0x1;}[_0x4a03eb(0x15d)](){const _0x14f4fb=_0x4a03eb,_0x2e5049=new _0x22e2b3(this[_0x14f4fb(0x145)]),_0x359918=new _0x22e2b3(this[_0x14f4fb(0x145)]);return _0x359918[_0x14f4fb(0x153)]({'tag':_0x14f4fb(0x14c),'attributes':{'class':['ck',_0x14f4fb(0x14a)]},'children':[{'text':this[_0x14f4fb(0x147)]['to'](_0x14f4fb(0x155))}]}),_0x2e5049[_0x14f4fb(0x153)]({'tag':_0x14f4fb(0x142),'attributes':{'class':['ck',_0x14f4fb(0x141),_0x14f4fb(0x14b),this[_0x14f4fb(0x147)]['if'](_0x14f4fb(0x154),_0x14f4fb(0x156),_0x443419=>!_0x443419)]},'children':[_0x359918]}),_0x2e5049;}}
23
+ const _0x4820da=_0x1a83;(function(_0x3bd5c3,_0xbe874a){const _0x45f3dd=_0x1a83,_0x5eeebd=_0x3bd5c3();while(!![]){try{const _0xaf9a39=-parseInt(_0x45f3dd(0xc3))/0x1*(parseInt(_0x45f3dd(0xb1))/0x2)+parseInt(_0x45f3dd(0xc1))/0x3*(-parseInt(_0x45f3dd(0xbf))/0x4)+parseInt(_0x45f3dd(0xb8))/0x5+-parseInt(_0x45f3dd(0xae))/0x6+-parseInt(_0x45f3dd(0xac))/0x7+parseInt(_0x45f3dd(0xad))/0x8+parseInt(_0x45f3dd(0xc6))/0x9*(parseInt(_0x45f3dd(0xc2))/0xa);if(_0xaf9a39===_0xbe874a)break;else _0x5eeebd['push'](_0x5eeebd['shift']());}catch(_0x2507d2){_0x5eeebd['push'](_0x5eeebd['shift']());}}}(_0x458f,0xdec40));import{View as _0x3e4ecd}from'ckeditor5/src/ui.js';export const AI_BALLOON_VIEW_EVENT_NAMES=[_0x4820da(0xc9),_0x4820da(0xb2),_0x4820da(0xc5),_0x4820da(0xbb)];export class AIBalloonView extends _0x3e4ecd{[_0x4820da(0xc4)];constructor(_0x543030){const _0x3e05df=_0x4820da;super(_0x543030),this[_0x3e05df(0xb4)](_0x3e05df(0xaf),''),this[_0x3e05df(0xb4)](_0x3e05df(0xb5),!0x1);}[_0x4820da(0xc8)](_0x323db3){const _0x3d150b=_0x4820da;this[_0x3d150b(0xc0)](_0x323db3);}[_0x4820da(0xc0)](_0x48b692){const _0x27f448=_0x4820da;this[_0x27f448(0xc4)]||(this[_0x27f448(0xc4)]=this[_0x27f448(0xab)]()),this[_0x27f448(0xaf)]=_0x48b692,this[_0x27f448(0xb5)]=!0x0;}[_0x4820da(0xba)](){const _0x380e2d=_0x4820da;this[_0x380e2d(0xb5)]=!0x1;}[_0x4820da(0xab)](){const _0x1eee0c=_0x4820da,_0x2865d0=new _0x3e4ecd(this[_0x1eee0c(0xbc)]),_0x1162fa=new _0x3e4ecd(this[_0x1eee0c(0xbc)]);return _0x1162fa[_0x1eee0c(0xbe)]({'tag':_0x1eee0c(0xb9),'attributes':{'class':['ck',_0x1eee0c(0xb6)]},'children':[{'text':this[_0x1eee0c(0xb7)]['to'](_0x1eee0c(0xaf))}]}),_0x2865d0[_0x1eee0c(0xbe)]({'tag':_0x1eee0c(0xbd),'attributes':{'class':['ck',_0x1eee0c(0xc7),_0x1eee0c(0xb3),this[_0x1eee0c(0xb7)]['if'](_0x1eee0c(0xb5),_0x1eee0c(0xb0),_0x3b5aed=>!_0x3b5aed)]},'children':[_0x1162fa]}),_0x2865d0;}}function _0x1a83(_0x4e4d49,_0x36a429){const _0x458f12=_0x458f();return _0x1a83=function(_0x1a83cc,_0x51a8b2){_0x1a83cc=_0x1a83cc-0xab;let _0x628bc9=_0x458f12[_0x1a83cc];return _0x628bc9;},_0x1a83(_0x4e4d49,_0x36a429);}function _0x458f(){const _0xd67571=['hideError','showPrevious','locale','div','setTemplate','31196krIqYJ','showError','477ewfhbg','40JLSKyr','4PYAYbc','_errorView','showNext','7734816wBUzxd','ck-ai-suggestion__error','showBlockingError','applySuggestion','_createErrorView','4437524MkDQXi','1226224wqCBlQ','9222978reRWwO','_errorMessage','ck-hidden','23358fxQprK','insertSuggestion','ck-ai-balloon-error','set','_isErrorVisible','ck-ai-suggestion__error-text','bindTemplate','3896630QrsKqK','span'];_0x458f=function(){return _0xd67571;};return _0x458f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x56f877=_0x1670;(function(_0x5da1e4,_0x577f7b){var _0x346590=_0x1670,_0x5771a5=_0x5da1e4();while(!![]){try{var _0x5d6a7a=parseInt(_0x346590(0x1f8))/0x1*(-parseInt(_0x346590(0x206))/0x2)+-parseInt(_0x346590(0x205))/0x3*(parseInt(_0x346590(0x1f9))/0x4)+parseInt(_0x346590(0x214))/0x5*(parseInt(_0x346590(0x200))/0x6)+-parseInt(_0x346590(0x201))/0x7*(parseInt(_0x346590(0x213))/0x8)+-parseInt(_0x346590(0x1fa))/0x9*(parseInt(_0x346590(0x1f6))/0xa)+-parseInt(_0x346590(0x202))/0xb*(parseInt(_0x346590(0x20b))/0xc)+-parseInt(_0x346590(0x20c))/0xd*(-parseInt(_0x346590(0x20e))/0xe);if(_0x5d6a7a===_0x577f7b)break;else _0x5771a5['push'](_0x5771a5['shift']());}catch(_0xb4bc0f){_0x5771a5['push'](_0x5771a5['shift']());}}}(_0x4a0a,0xd764a));import{ContextPlugin as _0x13dc98}from'ckeditor5/src/core.js';import{AIChatController as _0x761ed}from'./aichatcontroller.js';function _0x1670(_0x3b806e,_0x4840c8){var _0x4a0a2e=_0x4a0a();return _0x1670=function(_0x1670f2,_0x2ff68b){_0x1670f2=_0x1670f2-0x1f3;var _0x1fb849=_0x4a0a2e[_0x1670f2];return _0x1fb849;},_0x1670(_0x3b806e,_0x4840c8);}import{AIEditing as _0x1daf00}from'../aicore/aiediting.js';import{AIChatUI as _0x1d21f7}from'./aichatui.js';import{AIChatHistory as _0x50ca55}from'../aichathistory/aichathistory.js';export class AIChat extends _0x13dc98{static get[_0x56f877(0x1fd)](){return[_0x761ed,_0x1daf00,_0x1d21f7,_0x50ca55];}static get[_0x56f877(0x207)](){var _0x42518f=_0x56f877;return _0x42518f(0x1ff);}static get[_0x56f877(0x203)](){return!0x0;}static get[_0x56f877(0x1f3)](){return!0x0;}constructor(_0x440feb){var _0x403cf9=_0x56f877;super(_0x440feb),this[_0x403cf9(0x210)][_0x403cf9(0x1f4)][_0x403cf9(0x212)](_0x403cf9(0x1fc),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0x403cf9(0x210)][_0x403cf9(0x1f4)][_0x403cf9(0x212)](_0x403cf9(0x1f5),_0x403cf9(0x204));}async[_0x56f877(0x1f7)](){var _0x561805=_0x56f877;await this[_0x561805(0x210)][_0x561805(0x209)][_0x561805(0x20a)](_0x761ed)[_0x561805(0x1f7)]();}async[_0x56f877(0x20d)](){var _0x39840c=_0x56f877;await this[_0x39840c(0x210)][_0x39840c(0x209)][_0x39840c(0x20a)](_0x761ed)[_0x39840c(0x20d)]();}async[_0x56f877(0x1fe)]({message:_0x2bbf6f,attributes:_0x24c552}){var _0xee9e78=_0x56f877;await this[_0xee9e78(0x210)][_0xee9e78(0x209)][_0xee9e78(0x20a)](_0x761ed)[_0xee9e78(0x1fe)]({'message':_0x2bbf6f,'attributes':_0x24c552});}[_0x56f877(0x20f)](){var _0x34df7a=_0x56f877;this[_0x34df7a(0x210)][_0x34df7a(0x209)][_0x34df7a(0x20a)](_0x761ed)[_0x34df7a(0x20f)]();}[_0x56f877(0x211)](){var _0x465d23=_0x56f877;this[_0x465d23(0x210)][_0x465d23(0x209)][_0x465d23(0x20a)](_0x761ed)[_0x465d23(0x211)]();}[_0x56f877(0x208)](_0x16c183){var _0x214007=_0x56f877;this[_0x214007(0x210)][_0x214007(0x209)][_0x214007(0x20a)](_0x761ed)[_0x214007(0x1fb)](_0x16c183);}}function _0x4a0a(){var _0x1ed39d=['removeSelectionFromChatContext','context','focusPromptInput','define','8cetAGt','80585mHeXvy','isPremiumPlugin','config','ai.chat.initialConversation','6270QvWsIO','addSelectionToChatContext','1340zbUNci','3327692ilkpwU','21303jkJyed','_registerToolDataCallback','ai.chat.context','requires','sendMessage','AIChat','534wZlSmH','1620227awzhto','11VIzRlp','isOfficialPlugin','new','6wuDFgF','1090TCJxgd','pluginName','registerToolDataCallback','plugins','get','13247628pSfNZL','60599786NHumTN','startConversation','14xGgcFv'];_0x4a0a=function(){return _0x1ed39d;};return _0x4a0a();}
23
+ var _0x4382ea=_0x2a44;(function(_0x2d373a,_0x41f75c){var _0x25929f=_0x2a44,_0x2a9e36=_0x2d373a();while(!![]){try{var _0x1e165f=-parseInt(_0x25929f(0x14a))/0x1+-parseInt(_0x25929f(0x14d))/0x2+parseInt(_0x25929f(0x144))/0x3+parseInt(_0x25929f(0x131))/0x4+parseInt(_0x25929f(0x137))/0x5*(-parseInt(_0x25929f(0x134))/0x6)+-parseInt(_0x25929f(0x136))/0x7*(parseInt(_0x25929f(0x14c))/0x8)+parseInt(_0x25929f(0x145))/0x9;if(_0x1e165f===_0x41f75c)break;else _0x2a9e36['push'](_0x2a9e36['shift']());}catch(_0x408619){_0x2a9e36['push'](_0x2a9e36['shift']());}}}(_0x297e,0xc2cd5));function _0x2a44(_0x2d05d9,_0x2c0b27){var _0x297eba=_0x297e();return _0x2a44=function(_0x2a4400,_0x50fcdc){_0x2a4400=_0x2a4400-0x131;var _0x535e9b=_0x297eba[_0x2a4400];return _0x535e9b;},_0x2a44(_0x2d05d9,_0x2c0b27);}import{ContextPlugin as _0x152c6e}from'ckeditor5/src/core.js';function _0x297e(){var _0x117853=['plugins','requires','200688pGYINN','config','1050UCpNML','155FITwAQ','sendMessage','registerToolDataCallback','isPremiumPlugin','removeSelectionFromChatContext','AIChat','define','_registerToolDataCallback','focusPromptInput','ai.chat.context','addSelectionToChatContext','new','pluginName','600303nGeFcQ','28976607KccoXI','context','get','startConversation','ai.chat.initialConversation','1082746zUERnK','isOfficialPlugin','54392SdJXBH','1781644gOOeZT','5633964QrXTub'];_0x297e=function(){return _0x117853;};return _0x297e();}import{AIChatController as _0x2b2cdc}from'./aichatcontroller.js';import{AIEditing as _0x253dd2}from'../aicore/aiediting.js';import{AIChatUI as _0x1c3c56}from'./aichatui.js';import{AIChatHistory as _0x432ce2}from'../aichathistory/aichathistory.js';export class AIChat extends _0x152c6e{static get[_0x4382ea(0x133)](){return[_0x2b2cdc,_0x253dd2,_0x1c3c56,_0x432ce2];}static get[_0x4382ea(0x143)](){var _0x5669d5=_0x4382ea;return _0x5669d5(0x13c);}static get[_0x4382ea(0x14b)](){return!0x0;}static get[_0x4382ea(0x13a)](){return!0x0;}constructor(_0x39c392){var _0xa47d45=_0x4382ea;super(_0x39c392),this[_0xa47d45(0x146)][_0xa47d45(0x135)][_0xa47d45(0x13d)](_0xa47d45(0x140),{'document':{'enabled':!0x0},'urls':{'enabled':!0x0},'files':{'enabled':!0x0},'sources':[]}),this[_0xa47d45(0x146)][_0xa47d45(0x135)][_0xa47d45(0x13d)](_0xa47d45(0x149),_0xa47d45(0x142));}async[_0x4382ea(0x141)](){var _0x203508=_0x4382ea;await this[_0x203508(0x146)][_0x203508(0x132)][_0x203508(0x147)](_0x2b2cdc)[_0x203508(0x141)]();}async[_0x4382ea(0x148)](){var _0x170005=_0x4382ea;await this[_0x170005(0x146)][_0x170005(0x132)][_0x170005(0x147)](_0x2b2cdc)[_0x170005(0x148)]();}async[_0x4382ea(0x138)]({message:_0x28eb54,attributes:_0x1d8240}){var _0x379d67=_0x4382ea;await this[_0x379d67(0x146)][_0x379d67(0x132)][_0x379d67(0x147)](_0x2b2cdc)[_0x379d67(0x138)]({'message':_0x28eb54,'attributes':_0x1d8240});}[_0x4382ea(0x13b)](){var _0x52b0ff=_0x4382ea;this[_0x52b0ff(0x146)][_0x52b0ff(0x132)][_0x52b0ff(0x147)](_0x2b2cdc)[_0x52b0ff(0x13b)]();}[_0x4382ea(0x13f)](){var _0x2bb2a3=_0x4382ea;this[_0x2bb2a3(0x146)][_0x2bb2a3(0x132)][_0x2bb2a3(0x147)](_0x2b2cdc)[_0x2bb2a3(0x13f)]();}[_0x4382ea(0x139)](_0x4437e2){var _0x278f34=_0x4382ea;this[_0x278f34(0x146)][_0x278f34(0x132)][_0x278f34(0x147)](_0x2b2cdc)[_0x278f34(0x13e)](_0x4437e2);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20e08b=_0x45f2;(function(_0x22da97,_0x40491e){const _0x598f3f=_0x45f2,_0x4bc3a5=_0x22da97();while(!![]){try{const _0x4efa51=-parseInt(_0x598f3f(0x1b1))/0x1*(parseInt(_0x598f3f(0x1d7))/0x2)+parseInt(_0x598f3f(0x1bb))/0x3*(parseInt(_0x598f3f(0x1a8))/0x4)+parseInt(_0x598f3f(0x1a3))/0x5*(parseInt(_0x598f3f(0x1ae))/0x6)+-parseInt(_0x598f3f(0x1ca))/0x7+-parseInt(_0x598f3f(0x1ab))/0x8+-parseInt(_0x598f3f(0x1cc))/0x9*(parseInt(_0x598f3f(0x1b4))/0xa)+parseInt(_0x598f3f(0x1bd))/0xb*(parseInt(_0x598f3f(0x1df))/0xc);if(_0x4efa51===_0x40491e)break;else _0x4bc3a5['push'](_0x4bc3a5['shift']());}catch(_0x21db38){_0x4bc3a5['push'](_0x4bc3a5['shift']());}}}(_0x3778,0x919ee));function _0x45f2(_0xfabd26,_0x2b66b0){const _0x37781b=_0x3778();return _0x45f2=function(_0x45f23e,_0x2de4cb){_0x45f23e=_0x45f23e-0x1a0;let _0x482f4f=_0x37781b[_0x45f23e];return _0x482f4f;},_0x45f2(_0xfabd26,_0x2b66b0);}import{Plugin as _0x183de7}from'ckeditor5/src/core.js';import{AIBalloon as _0x136ea8}from'../aiballoon/aiballoon.js';function _0x3778(){const _0x2ef40d=['updateContent','AIChatBalloon','isPremiumPlugin','children','showRotator','close','5gapXjB','has','get','_toggleRotatorButtonsInDialogHeader','delegate','905044OwRPOR','headerView','_createChatBalloonView','5174032YbWQvp','nextButtonView','setState','205404czFhSE','render','TrackChanges','2515MPnGNf','isOfficialPlugin','insertSuggestion','9631660FzoCOj','aiChatBalloon','applySuggestion','areActionsDisabled','ck-ai-chat-balloon','showNext','AIBalloon','12eySlLJ','locale','11BkKici','filter','view','beforeDialogClosed','showDiff','once','plugins','focus','commands','set','Dialog','requires','ai.availableReplyActions','1310022DooJZD','editor','9zMdwxx','addMany','isTrackChangesOn','value','togglePartToolbarEnabled','remove','bind','open','rejectSuggestion','_restoreDefaultViewFocus','config','386TVMvsX','previousButtonView','trackChanges','_chatBalloonView','showPrevious','pluginName','dialogClosed','toggleRotatorButtonsVisibility','23275740mfeaUA'];_0x3778=function(){return _0x2ef40d;};return _0x3778();}import{AI_REPLY_ACTIONS as _0x59bb60}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0x4b4c72}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x4dee4a}from'../aicore/utils/eventnames.js';import{Dialog as _0x4d22e6}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x183de7{static get[_0x20e08b(0x1c8)](){return[_0x4d22e6,_0x136ea8];}static get[_0x20e08b(0x1dc)](){const _0x56e044=_0x20e08b;return _0x56e044(0x1e1);}static get[_0x20e08b(0x1b2)](){return!0x0;}static get[_0x20e08b(0x1e2)](){return!0x0;}[_0x20e08b(0x1da)];constructor(_0x405c79){const _0x39c611=_0x20e08b;super(_0x405c79),this[_0x39c611(0x1c6)](_0x39c611(0x1c1),!0x1);}[_0x20e08b(0x1d3)](_0x4f0a15){const _0x1086d3=_0x20e08b,_0x37a4a3=this[_0x1086d3(0x1cb)];this[_0x1086d3(0x1da)]||(this[_0x1086d3(0x1da)]=this[_0x1086d3(0x1aa)]()),_0x37a4a3[_0x1086d3(0x1c3)][_0x1086d3(0x1a5)](_0x1086d3(0x1ba))[_0x1086d3(0x1d3)]({..._0x4f0a15,'id':_0x1086d3(0x1b5),'class':_0x1086d3(0x1b8),'mainView':this[_0x1086d3(0x1da)]}),this[_0x1086d3(0x1a6)](_0x4f0a15[_0x1086d3(0x1a1)]),this[_0x1086d3(0x1da)][_0x1086d3(0x1d0)](!_0x4f0a15[_0x1086d3(0x1b7)]),this[_0x1086d3(0x1d5)]();}[_0x20e08b(0x1a2)](){const _0x148105=_0x20e08b;this[_0x148105(0x1cb)][_0x148105(0x1c3)][_0x148105(0x1a5)](_0x148105(0x1ba))[_0x148105(0x1a2)]();}[_0x20e08b(0x1e0)](_0x588210){const _0xd60326=_0x20e08b;return this[_0xd60326(0x1da)]||(this[_0xd60326(0x1da)]=this[_0xd60326(0x1aa)]()),this[_0xd60326(0x1da)][_0xd60326(0x1e0)](_0x588210);}[_0x20e08b(0x1ad)](_0x93a9f4){const _0x30af12=_0x20e08b;this[_0x30af12(0x1da)]&&this[_0x30af12(0x1da)][_0x30af12(0x1ad)](_0x93a9f4);}[_0x20e08b(0x1aa)](){const _0x53005a=_0x20e08b,_0x199253=this[_0x53005a(0x1cb)],_0x47bf98=_0x199253[_0x53005a(0x1c3)][_0x53005a(0x1a5)](_0x53005a(0x1ba)),_0x5694f9=_0x199253[_0x53005a(0x1c5)][_0x53005a(0x1a5)](_0x53005a(0x1d9));let _0x309523=_0x199253[_0x53005a(0x1d6)][_0x53005a(0x1a5)](_0x53005a(0x1c9))||[..._0x59bb60];_0x199253[_0x53005a(0x1c3)][_0x53005a(0x1a4)](_0x53005a(0x1b0))||(_0x309523=_0x309523[_0x53005a(0x1be)](_0x3a5e6e=>_0x53005a(0x1b3)!=_0x3a5e6e));const _0x5dd066=new _0x4b4c72(_0x199253[_0x53005a(0x1bc)],{'availableActions':_0x309523,'showApplyButton':!0x0,'showSuggestButton':!!_0x5694f9});return _0x5dd066[_0x53005a(0x1d2)](_0x53005a(0x1c1))['to'](this),_0x5dd066[_0x53005a(0x1a7)](..._0x4dee4a)['to'](this),_0x5dd066[_0x53005a(0x1a7)](_0x53005a(0x1db),_0x53005a(0x1b9))['to'](this),_0x47bf98[_0x53005a(0x1a7)](_0x53005a(0x1dd))['to'](this),_0x5dd066['on'](_0x53005a(0x1b6),this[_0x53005a(0x1d5)][_0x53005a(0x1d2)](this)),_0x5dd066['on'](_0x53005a(0x1b3),this[_0x53005a(0x1d5)][_0x53005a(0x1d2)](this)),_0x5dd066['on'](_0x53005a(0x1d4),this[_0x53005a(0x1d5)][_0x53005a(0x1d2)](this)),_0x5694f9&&_0x5dd066[_0x53005a(0x1d2)](_0x53005a(0x1ce))['to'](_0x5694f9,_0x53005a(0x1cf)),_0x5dd066[_0x53005a(0x1af)](),_0x5dd066;}[_0x20e08b(0x1a6)](_0x129f29){const _0x599342=_0x20e08b,_0x23ad7c=this[_0x599342(0x1cb)],_0x332ea7=_0x23ad7c[_0x599342(0x1c3)][_0x599342(0x1a5)](_0x599342(0x1c7))[_0x599342(0x1bf)][_0x599342(0x1a9)][_0x599342(0x1a0)];this[_0x599342(0x1da)][_0x599342(0x1de)](_0x129f29),_0x332ea7[_0x599342(0x1a4)](this[_0x599342(0x1da)][_0x599342(0x1d8)])||(_0x332ea7[_0x599342(0x1cd)]([this[_0x599342(0x1da)][_0x599342(0x1d8)],this[_0x599342(0x1da)][_0x599342(0x1ac)]],0x0),_0x23ad7c[_0x599342(0x1c3)][_0x599342(0x1a5)](_0x599342(0x1ba))[_0x599342(0x1c2)](_0x599342(0x1c0),()=>{const _0x4ea72a=_0x599342;_0x332ea7[_0x4ea72a(0x1d1)](this[_0x4ea72a(0x1da)][_0x4ea72a(0x1d8)]),_0x332ea7[_0x4ea72a(0x1d1)](this[_0x4ea72a(0x1da)][_0x4ea72a(0x1ac)]);}));}[_0x20e08b(0x1d5)](){const _0x343961=_0x20e08b;this[_0x343961(0x1da)][_0x343961(0x1c4)]();}}
23
+ const _0xb6a953=_0x2707;(function(_0x99ea79,_0x675acd){const _0x29d67b=_0x2707,_0x134469=_0x99ea79();while(!![]){try{const _0x27aef0=parseInt(_0x29d67b(0xdf))/0x1+-parseInt(_0x29d67b(0x102))/0x2*(parseInt(_0x29d67b(0xdb))/0x3)+-parseInt(_0x29d67b(0xeb))/0x4+-parseInt(_0x29d67b(0xec))/0x5*(parseInt(_0x29d67b(0xe1))/0x6)+parseInt(_0x29d67b(0x101))/0x7*(-parseInt(_0x29d67b(0xd7))/0x8)+-parseInt(_0x29d67b(0xf2))/0x9*(-parseInt(_0x29d67b(0xfe))/0xa)+-parseInt(_0x29d67b(0x10e))/0xb*(-parseInt(_0x29d67b(0xee))/0xc);if(_0x27aef0===_0x675acd)break;else _0x134469['push'](_0x134469['shift']());}catch(_0xc27539){_0x134469['push'](_0x134469['shift']());}}}(_0x54c0,0xca84d));function _0x2707(_0x474e4f,_0x42ad15){const _0x54c0fa=_0x54c0();return _0x2707=function(_0x270756,_0x19467b){_0x270756=_0x270756-0xd1;let _0xdc9eb1=_0x54c0fa[_0x270756];return _0xdc9eb1;},_0x2707(_0x474e4f,_0x42ad15);}import{Plugin as _0x51a0c7}from'ckeditor5/src/core.js';import{AIBalloon as _0x34c463}from'../aiballoon/aiballoon.js';import{AI_REPLY_ACTIONS as _0x230597}from'./ui/feed/aichatfeedsuggestionitemactionsview.js';import{AIChatBalloonView as _0xfc38d5}from'./ui/aichatballoonview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x308287}from'../aicore/utils/eventnames.js';function _0x54c0(){const _0x4dafa7=['_toggleRotatorButtonsInDialogHeader','showPrevious','previousButtonView','7578TNGTDu','editor','_chatBalloonView','config','requires','AIBalloon','_restoreDefaultViewFocus','locale','isTrackChangesOn','headerView','applySuggestion','ai.availableReplyActions','14470sXOWWy','addMany','showNext','5607Zeufad','2oTEfnD','pluginName','delegate','ck-ai-chat-balloon','updateContent','dialogClosed','Dialog','rejectSuggestion','value','focus','_createChatBalloonView','isPremiumPlugin','1738kNePqF','open','close','view','remove','once','commands','togglePartToolbarEnabled','plugins','isOfficialPlugin','set','get','2792LCakAf','aiChatBalloon','AIChatBalloon','TrackChanges','773271wHQuiE','has','nextButtonView','beforeDialogClosed','1318292ZRAoVJ','areActionsDisabled','220926NhhUau','children','showDiff','showRotator','setState','render','trackChanges','bind','toggleRotatorButtonsVisibility','insertSuggestion','4334120MyxfZZ','145zoFBjB','filter','74544eoocmg'];_0x54c0=function(){return _0x4dafa7;};return _0x54c0();}import{Dialog as _0x1911f3}from'ckeditor5/src/ui.js';export class AIChatBalloon extends _0x51a0c7{static get[_0xb6a953(0xf6)](){return[_0x1911f3,_0x34c463];}static get[_0xb6a953(0x103)](){const _0x5bf395=_0xb6a953;return _0x5bf395(0xd9);}static get[_0xb6a953(0xd4)](){return!0x0;}static get[_0xb6a953(0x10d)](){return!0x0;}[_0xb6a953(0xf4)];constructor(_0x25dc7f){const _0x429e1a=_0xb6a953;super(_0x25dc7f),this[_0x429e1a(0xd5)](_0x429e1a(0xe3),!0x1);}[_0xb6a953(0x10f)](_0x32ef81){const _0x54ef74=_0xb6a953,_0x189c52=this[_0x54ef74(0xf3)];this[_0x54ef74(0xf4)]||(this[_0x54ef74(0xf4)]=this[_0x54ef74(0x10c)]()),_0x189c52[_0x54ef74(0xd3)][_0x54ef74(0xd6)](_0x54ef74(0xf7))[_0x54ef74(0x10f)]({..._0x32ef81,'id':_0x54ef74(0xd8),'class':_0x54ef74(0x105),'mainView':this[_0x54ef74(0xf4)]}),this[_0x54ef74(0xef)](_0x32ef81[_0x54ef74(0xe4)]),this[_0x54ef74(0xf4)][_0x54ef74(0xd2)](!_0x32ef81[_0x54ef74(0xe0)]),this[_0x54ef74(0xf8)]();}[_0xb6a953(0x110)](){const _0x51ea03=_0xb6a953;this[_0x51ea03(0xf3)][_0x51ea03(0xd3)][_0x51ea03(0xd6)](_0x51ea03(0xf7))[_0x51ea03(0x110)]();}[_0xb6a953(0x106)](_0x170520){const _0x67b50=_0xb6a953;return this[_0x67b50(0xf4)]||(this[_0x67b50(0xf4)]=this[_0x67b50(0x10c)]()),this[_0x67b50(0xf4)][_0x67b50(0x106)](_0x170520);}[_0xb6a953(0xe5)](_0x455de6){const _0x159766=_0xb6a953;this[_0x159766(0xf4)]&&this[_0x159766(0xf4)][_0x159766(0xe5)](_0x455de6);}[_0xb6a953(0x10c)](){const _0x104bdb=_0xb6a953,_0x18202f=this[_0x104bdb(0xf3)],_0x1fbd59=_0x18202f[_0x104bdb(0xd3)][_0x104bdb(0xd6)](_0x104bdb(0xf7)),_0x2a8e33=_0x18202f[_0x104bdb(0xd1)][_0x104bdb(0xd6)](_0x104bdb(0xe7));let _0x919c81=_0x18202f[_0x104bdb(0xf5)][_0x104bdb(0xd6)](_0x104bdb(0xfd))||[..._0x230597];_0x18202f[_0x104bdb(0xd3)][_0x104bdb(0xdc)](_0x104bdb(0xda))||(_0x919c81=_0x919c81[_0x104bdb(0xed)](_0x3b9bc5=>_0x104bdb(0xea)!=_0x3b9bc5));const _0x3d704c=new _0xfc38d5(_0x18202f[_0x104bdb(0xf9)],{'availableActions':_0x919c81,'showApplyButton':!0x0,'showSuggestButton':!!_0x2a8e33});return _0x3d704c[_0x104bdb(0xe8)](_0x104bdb(0xe3))['to'](this),_0x3d704c[_0x104bdb(0x104)](..._0x308287)['to'](this),_0x3d704c[_0x104bdb(0x104)](_0x104bdb(0xf0),_0x104bdb(0x100))['to'](this),_0x1fbd59[_0x104bdb(0x104)](_0x104bdb(0x107))['to'](this),_0x3d704c['on'](_0x104bdb(0xfc),this[_0x104bdb(0xf8)][_0x104bdb(0xe8)](this)),_0x3d704c['on'](_0x104bdb(0xea),this[_0x104bdb(0xf8)][_0x104bdb(0xe8)](this)),_0x3d704c['on'](_0x104bdb(0x109),this[_0x104bdb(0xf8)][_0x104bdb(0xe8)](this)),_0x2a8e33&&_0x3d704c[_0x104bdb(0xe8)](_0x104bdb(0xfa))['to'](_0x2a8e33,_0x104bdb(0x10a)),_0x3d704c[_0x104bdb(0xe6)](),_0x3d704c;}[_0xb6a953(0xef)](_0x24e614){const _0x33c026=_0xb6a953,_0x3f1f1e=this[_0x33c026(0xf3)],_0x267bb8=_0x3f1f1e[_0x33c026(0xd3)][_0x33c026(0xd6)](_0x33c026(0x108))[_0x33c026(0x111)][_0x33c026(0xfb)][_0x33c026(0xe2)];this[_0x33c026(0xf4)][_0x33c026(0xe9)](_0x24e614),_0x267bb8[_0x33c026(0xdc)](this[_0x33c026(0xf4)][_0x33c026(0xf1)])||(_0x267bb8[_0x33c026(0xff)]([this[_0x33c026(0xf4)][_0x33c026(0xf1)],this[_0x33c026(0xf4)][_0x33c026(0xdd)]],0x0),_0x3f1f1e[_0x33c026(0xd3)][_0x33c026(0xd6)](_0x33c026(0xf7))[_0x33c026(0x113)](_0x33c026(0xde),()=>{const _0x297230=_0x33c026;_0x267bb8[_0x297230(0x112)](this[_0x297230(0xf4)][_0x297230(0xf1)]),_0x267bb8[_0x297230(0x112)](this[_0x297230(0xf4)][_0x297230(0xdd)]);}));}[_0xb6a953(0xf8)](){const _0x46c8aa=_0xb6a953;this[_0x46c8aa(0xf4)][_0x46c8aa(0x10b)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55d179=_0x5c3e;(function(_0x4a6efe,_0x8df7b){const _0x303738=_0x5c3e,_0x15b64b=_0x4a6efe();while(!![]){try{const _0x53bf88=-parseInt(_0x303738(0x108))/0x1+parseInt(_0x303738(0x1a2))/0x2*(parseInt(_0x303738(0x104))/0x3)+parseInt(_0x303738(0x229))/0x4*(parseInt(_0x303738(0x217))/0x5)+parseInt(_0x303738(0x110))/0x6*(-parseInt(_0x303738(0x1ae))/0x7)+parseInt(_0x303738(0x216))/0x8*(parseInt(_0x303738(0x268))/0x9)+parseInt(_0x303738(0x237))/0xa*(-parseInt(_0x303738(0x155))/0xb)+-parseInt(_0x303738(0x135))/0xc*(-parseInt(_0x303738(0x1f7))/0xd);if(_0x53bf88===_0x8df7b)break;else _0x15b64b['push'](_0x15b64b['shift']());}catch(_0x1fff9e){_0x15b64b['push'](_0x15b64b['shift']());}}}(_0x3663,0xe31e0));import{ContextPlugin as _0xed94bd,Editor as _0x2f62e5}from'ckeditor5/src/core.js';import{BodyCollection as _0x4d04e1}from'ckeditor5/src/ui.js';import{CKEditorError as _0x15792e,logError as _0x419030,scrollViewportToShowTarget as _0x2bcda0,uid as _0x4e0318}from'ckeditor5/src/utils.js';import{AIConnector as _0x593d3e}from'../aicore/aiconnector.js';import{AITabs as _0x3cd74b}from'../aitabs/aitabs.js';function _0x3663(){const _0xb73f68=['stop','fetchConversations','alignToTop','addUrlToContext','_rejectSuggestion','afterInit','55876OZkBDe','changeGroups','howMany','new','sourceId','isCurrentDocumentInConversation','_aiChatModels','createConversation','AITabs','_registerToolDataCallback','filter','ai-conversation-','interactionFinished','createRange','20dUYFNj','getChildAtOffset','redo','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','areActionsDisabled','AI_CHAT_GENERIC_ERROR','undo','cloneNode','version','_removeFromContext','mouseOverSuggestion','toggleReasoning','createdAt','model','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','uid','set','end','maxOffset','_applyOperationsAsSuggestions','removeSelectionFromContext','Liked\x20response','updateFeedItemAIReplyContent','documentContextContent','loadSourceResources','uploadProgressChanged','rejectSuggestion','getReply','getSelectionText','setState','uiId','_insertSuggestion','resetWebSearchState','loadConversation','source','applySuggestion','reasoningStarted','accepted','resourceStateChanged','disableControls','resetMessageInput','marker','AI_BALLOON_HEADER_TITLE','commands','text','selectModel','resourceId','ai-chat-invalid-request','addFeedItemError','306rGLdfD','ai.models','setConversationTitle','startAutoScroll','isPremiumPlugin','messageId','isModelAvailable','activeConversation','toggleLoadingSkeleton','handleRemovedConversation','remove','detachFromDom','addFeedInteractionHeader','AIConnector','start','abortPromptStream','isUploadInProgress','add','_startConversationSafely','_getUserPresentableContentPartDocumentRange','rootName','lastInteraction','config','error','addFileToContext','resizedTabs','delegate','DocumentCompare','isStarted','ai-chat-context-file-too-many-pages','_aiChatUi','addFilesToContext','getPath','setAddContextOptions','_scrollToSuggestionRange','next','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','_applySuggestion','AI_CHAT_CONTEXT_FILE_TOO_LARGE','getOperations','indexes','chat','ai-chat-controller-mouse-over','663tyngGQ','Undo','conversationInitialized','isInContext','327278DAxYBT','ai-chat-conversation-start-failed','getDocumentContext','enableControls','finishInteraction','createPositionFromPath','_getDocumentRangeForReplyChanges','root','414UDDVJP','clearConversationContextUI','getContentParts','like','addCurrentDocumentToContext','removeSelectionFromChatContext','setIsUploadInProgress','closeSourceResourceBalloon','ai-chat-context-invalid-data','ai-chat-missing-channel-id','main','addFeedItemAISuggestion','getDiff','removeFromContext','activateTab','upsertAIChatRating','selection','showPrevious','updateCurrentDocumentInContext','change','addSelectionToContext','interactionDestroyed','addFeedItemStaticMessage','_integrateEditor','Disliked\x20response','sendMessage','forEach','_aiChatBalloon','from','AIChatBalloon','AI_CHAT_RESOURCE_LOAD_FAILED','TrackChangesEditing','data','indexOf','requires','resetConversationTitle','getChildren','36DlIHIM','getFirstRange','getGroupId','_createFromRanges','getRanges','index','aiChatBalloon','streaming','toViewRange','replyChangeGroupStateUpdated','addContextOptionsChanged','_aiEditing','populateSourceResourceBalloon','has','AIChatController','createPositionAt','locale','AIEditing','setFeedItemAIReplySuggestionPartActive','done','addFeedItemCustomElement','children','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','getInteractionAndReplyById','isLoading','collaboration.channelId','startsWith','replyId','toolDataReceived','dialogClosed','ai-chat-context-form-data-size-limits-exceeded','clearPendingContextUI','7168183qUUYaZ','path','callback','_currentPreviewedChangeGroup','_updateRatings','AIChatUI','resources','current-document','ai.chat.initialConversation','ai-chat-url-upload-failed','showFakeVisualSelection','_handleStartConversation','ai-chat-context-unsupported-type','_handleUIUserMessage','ai-chat-conversation-init-failed','unshift','changes','AI_CHAT_UNABLE_TO_START_CONVERSATION','listenTo','updateResourceState','_toggleWebSearch','startConversation','executeCustomItemCallback','currentReply','setLoadingMessage','mapper','getAll','selectedModel','view','getChild','removeContextItem','getRoot','resizeTabs','addOperation','_batchToChanges','length','init','resource','hideFakeVisualSelection','find','plugins','reasoningFinished','data-id','contextItemAdded','revert','interactionCreated','node','partIndex','addContextItem','resize','ai-chat-context-file-too-large','query','sourcePosition','AI_CHAT_INVALID_REQUEST','close','setContextItemLoading','_toggleReasoning','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','startInteraction','bind','pending','options','_bodyCollection','delete','updateFeedItemAIReplySources','ready','load','handleUserInteraction','toggleSuggestionDisplayMode','insertSuggestion','nextSibling','interactionStarted','_showConversationHistory','showNext','ai-chat-source-resources-load-failed','removeFeedInteraction','resetReasoningState','10652TlleOo','createReply','domConverter','batch','hasChanges','_aiConnector','includes','ai-chat-controller-no-active-conversation','document','getConversation','prepareLoadingMessage','getTransformedByOperation','130291TSZFMB','AI_CHAT_ABORTED_MESSAGE','slice','pluginName','log','content','ai.models.defaultModelId','parse','editing','outdated','AI_CHAT_UNTITLED_CONVERSATION','Showing\x20conversation\x20history...','ai.chat.context','addFeedItemAIReply','contextSent','modification','showDiff','AI_CHAT_CONTEXT_INVALID_DATA','setSelectedModel','getInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','lastCreated','setIsMaximized','_flushLastInteractionUI','capabilitiesUpdated','map','webSearchFinished','_getPresentableSiblingContentPartIndex','updateContent','ai-chat-resource-load-failed','history','baseVersion','contextItemLoadingEnded','addDocumentToContext','editors','ai-request-aborted','addResourceToContext','updateConversationTitle','replies','sendUserMessage','contextItemRemoved','removed','_aiChatBalloonShowDiff','_updateReplyContent','sessionId','setChangeGroupState','interactionId','clearLoadingMessage','anchorId','_getLastCreatedConversationId','isDocumentOperation','get','setConversationContext','split','replyCreated','ai-chat-conversation-not-found','destroy','context','replyContentUpdated','fetchConversation','ai-no-track-changes','contextItem','mouseLeaveSuggestion','isCurrentDocumentInContext','addSelectionToChatContext','applyOperation','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','focusPromptInput','findIndex','modelSelected','contextItems','rejected','isDisabled','9943531mLudFU','setFeedItemRenderingStrategy','_setIsMaximized','_stopLastInteraction','showChangeInText','isOfficialPlugin','viewRangeToDom','webSearchStarted','dislike','ai-chat-file-upload-failed','type','ai-chat-context-unsupported-file-type','updateCapabilities','range','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','push','updateFeedItemAIReplySuggestionContent','toggleWebSearch','addCurrentDocumentToChatContext','_openBalloonFor','$graveyard','state','attachToDom','sources','scrollFeedToSuggestion','_logError','getConversations','addFeedItemUserMessage','sourceResourcesLoaded','getAttribute','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','81296qPWXbj','10aVswdm','TrackChanges','getDocumentData','toString','updateFeedItemAIReplySuggestionPartState','_getAIChatInteractionAPI','stopInteraction','message','open','setModel','previous','static'];_0x3663=function(){return _0xb73f68;};return _0x3663();}import{AIChatConversation as _0x1e4d8d}from'./model/aichatconversation.js';import{getTranslation as _0x2aaeb3}from'../aicore/utils/common-translations.js';import{AIModels as _0x170d37}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x5aac2c}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4a5630,DATA_ID_MODEL_ATTRIBUTE as _0x249de1}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x2aac5b,getOperationsFromReply as _0x371b51}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x272146,getMinimalSelection as _0x9fa59a}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0xf156c3,_DetachOperation as _0x14e20e}from'ckeditor5/src/engine.js';import{findOne as _0x3f070c,getAttribute as _0x1f28be,serialize as _0x49efa6,Document as _0x2608ef,findByAttribute as _0x25394c}from'../aicore/utils/htmlparser.js';function _0x5c3e(_0x5f384b,_0x5418e6){const _0x36639a=_0x3663();return _0x5c3e=function(_0x5c3e2b,_0xe4d69b){_0x5c3e2b=_0x5c3e2b-0xf5;let _0x17f47d=_0x36639a[_0x5c3e2b];return _0x17f47d;},_0x5c3e(_0x5f384b,_0x5418e6);}export class AIChatController extends _0xed94bd{[_0x55d179(0x140)];[_0x55d179(0x1a7)];[_0x55d179(0xf7)];[_0x55d179(0x22f)];[_0x55d179(0x12b)];[_0x55d179(0x177)]=new Map();[_0x55d179(0x158)]=null;[_0x55d179(0x193)];static get[_0x55d179(0x132)](){return[_0x593d3e,_0x4a5630];}static get[_0x55d179(0x1b1)](){const _0x547acb=_0x55d179;return _0x547acb(0x143);}static get[_0x55d179(0x1fc)](){return!0x0;}static get[_0x55d179(0x26c)](){return!0x0;}[_0x55d179(0x179)](){const _0x85fb75=_0x55d179;this[_0x85fb75(0x193)]=new _0x4d04e1(this[_0x85fb75(0x1e7)][_0x85fb75(0x145)]),this[_0x85fb75(0x193)][_0x85fb75(0x20d)](),this[_0x85fb75(0x1a7)]=this[_0x85fb75(0x1e7)][_0x85fb75(0x17d)][_0x85fb75(0x1e1)](_0x85fb75(0x275)),this[_0x85fb75(0xf7)]=this[_0x85fb75(0x1e7)][_0x85fb75(0x17d)][_0x85fb75(0x1e1)](_0x85fb75(0x15a)),this[_0x85fb75(0x140)]=this[_0x85fb75(0x1e7)][_0x85fb75(0x17d)][_0x85fb75(0x1e1)](_0x85fb75(0x146)),this[_0x85fb75(0x22f)]=new _0x170d37({'connector':this[_0x85fb75(0x1a7)],'config':this[_0x85fb75(0x1e7)][_0x85fb75(0x27e)][_0x85fb75(0x1e1)](_0x85fb75(0x269)),'locale':this[_0x85fb75(0x1e7)][_0x85fb75(0x145)]});const _0x5bb29c=this[_0x85fb75(0x1e7)][_0x85fb75(0x17d)][_0x85fb75(0x1e1)](_0x85fb75(0x231));this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x16a),()=>{const _0x4b3c00=_0x85fb75;this[_0x4b3c00(0x27a)]();}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x1d5),(_0x38a936,_0x17f645)=>{const _0x329af6=_0x85fb75;this[_0x329af6(0x162)]({'userMessage':_0x17f645});}),this[_0x85fb75(0x167)](_0x5bb29c,_0x85fb75(0x281),(_0x3ae2bb,_0x5939d5)=>{const _0x30bf07=_0x85fb75;this[_0x30bf07(0x1f9)](_0x5939d5);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x175),()=>{const _0x1d2d6f=_0x85fb75;_0x5bb29c[_0x1d2d6f(0x186)]();}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x277),async()=>{const _0x58c2dc=_0x85fb75;await this[_0x58c2dc(0x1fa)](),await this[_0x58c2dc(0x1c5)](),this[_0x58c2dc(0x115)]();}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x1cf),()=>{const _0xfdfc42=_0x85fb75;this[_0xfdfc42(0x209)]();}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x280),(_0x5ebef7,_0x5a34e7)=>{const _0xf5fefc=_0x85fb75;this[_0xf5fefc(0x26f)]?.[_0xf5fefc(0xf8)](Array[_0xf5fefc(0x12c)](_0x5a34e7));}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x226),(_0x45af9c,_0xaedead)=>{const _0xb4b91=_0x85fb75;this[_0xb4b91(0x26f)]?.[_0xb4b91(0x226)](_0xaedead);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x16b),(_0x19682b,_0x5bce34)=>{const _0x2f1159=_0x85fb75;_0x5bce34[_0x2f1159(0x157)](this[_0x2f1159(0x1e7)]);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x1d2),(_0x122c7f,_0x2ad0b8)=>{const _0x21b650=_0x85fb75;this[_0x21b650(0x26f)]?.[_0x21b650(0x1d2)](_0x2ad0b8[_0x21b650(0x259)],_0x2ad0b8[_0x21b650(0x17a)]);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x173),(_0x3707eb,_0x34ee3e)=>{const _0x266b6e=_0x85fb75;this[_0x266b6e(0x240)](_0x34ee3e);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x24f),(_0x1b17ad,_0x7c6cc0)=>{const _0x1b5724=_0x85fb75;this[_0x1b5724(0x26f)]?.[_0x1b5724(0x24f)](_0x7c6cc0[_0x1b5724(0x22d)],_0x7c6cc0[_0x1b5724(0x188)],_0x7c6cc0[_0x1b5724(0x246)]);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x208),()=>{const _0x4ec4b6=_0x85fb75;this[_0x4ec4b6(0x169)]();}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x242),()=>{const _0x15b6f3=_0x85fb75;this[_0x15b6f3(0x18d)]();}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x264),(_0x436b36,_0x3cd2c8)=>{const _0x3e1af4=_0x85fb75;this[_0x3e1af4(0x26f)]?.[_0x3e1af4(0x220)](_0x3cd2c8);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x113),(_0x52a695,{replyId:_0x16e652})=>{const _0x79a936=_0x85fb75;console[_0x79a936(0x1b2)](_0x79a936(0x24c),_0x16e652);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x1ff),(_0x2fcaf3,{replyId:_0x324a5f})=>{const _0x3f4772=_0x85fb75;console[_0x3f4772(0x1b2)](_0x3f4772(0x128),_0x324a5f);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x19a),(_0x11573a,_0x2cb3e5)=>{const _0x1cba0d=_0x85fb75;this[_0x1cba0d(0x256)](_0x2cb3e5);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x1fb),(_0x2dc69f,{replyId:_0x2c8290,partIndex:_0x3fca00})=>{const _0x24edd1=_0x85fb75;this[_0x24edd1(0x1d8)]=this[_0x24edd1(0xf7)][_0x24edd1(0x1be)],this[_0x24edd1(0x20a)](_0x2c8290,_0x3fca00);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x241),(_0x15220f,{replyId:_0x550cca,partIndex:_0x360b27})=>{const _0x19e893=_0x85fb75,_0x2cece3=this[_0x19e893(0x10e)](_0x550cca,_0x360b27);_0x2cece3&&_0x19e893(0x20b)!=_0x2cece3[_0x19e893(0x204)][_0x19e893(0x10f)][_0x19e893(0x27c)]&&this[_0x19e893(0x140)][_0x19e893(0x15f)]([_0x2cece3[_0x19e893(0x204)]],_0x19e893(0x103));}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x1ec),()=>{const _0x44c9ce=_0x85fb75;this[_0x44c9ce(0x140)][_0x44c9ce(0x17b)](_0x44c9ce(0x103));}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x25a),(_0x44252c,_0x44939c)=>{const _0x57671b=_0x85fb75;this[_0x57671b(0x140)][_0x57671b(0x17b)](_0x57671b(0x103)),this[_0x57671b(0xfe)](_0x44939c);}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x199),async(_0x112a7a,{replyId:_0x48d5f2,showDiff:_0xaf2059})=>{const _0x391d64=_0x85fb75,{reply:_0x3a3b62}=this[_0x391d64(0x14c)](_0x48d5f2),_0x186462=_0x3a3b62[_0x391d64(0x112)]({'showDiff':_0xaf2059});await this[_0x391d64(0xf7)][_0x391d64(0x207)]({'id':_0x3a3b62['id'],'parts':_0x186462,'renderingStrategy':_0x391d64(0x222)});}),this[_0x85fb75(0x167)](this[_0x85fb75(0xf7)],_0x85fb75(0x251),(_0x4596b3,{replyId:_0x56b53a,partIndex:_0x449586})=>{const _0x3f1013=_0x85fb75;this[_0x3f1013(0x227)]({'replyId':_0x56b53a,'partIndex':_0x449586}),this[_0x3f1013(0x140)][_0x3f1013(0x17b)](_0x3f1013(0x103));}),this[_0x85fb75(0x1e7)][_0x85fb75(0x17d)][_0x85fb75(0x142)](_0x85fb75(0x12d))&&(this[_0x85fb75(0x12b)]=this[_0x85fb75(0x1e7)][_0x85fb75(0x17d)][_0x85fb75(0x1e1)](_0x85fb75(0x12d)),this[_0x85fb75(0x247)](_0x85fb75(0x1d8),!0x1),this[_0x85fb75(0x12b)][_0x85fb75(0x190)](_0x85fb75(0x1be))['to'](this,_0x85fb75(0x1d8)),this[_0x85fb75(0x167)](this[_0x85fb75(0x12b)],_0x85fb75(0x199),()=>{const _0x1e6dfd=_0x85fb75,{replyId:_0x1e1057,partIndex:_0x2b20cf}=this[_0x1e6dfd(0x158)];this[_0x1e6dfd(0x1d8)]=!this[_0x1e6dfd(0x1d8)];const {reply:_0x3555d5}=this[_0x1e6dfd(0x14c)](_0x1e1057),_0xca83af=_0x3555d5[_0x1e6dfd(0x112)]({'showDiff':this[_0x1e6dfd(0x1d8)],'groupIndex':_0x2b20cf});this[_0x1e6dfd(0x12b)][_0x1e6dfd(0x1ca)]({'part':_0xca83af[0x0],'renderingStrategy':_0x1e6dfd(0x222),'keepErrors':!0x0});}),this[_0x85fb75(0x167)](this[_0x85fb75(0x12b)],_0x85fb75(0x25a),()=>{const _0x42820f=_0x85fb75,{replyId:_0x285ab7,partIndex:_0x377856}=this[_0x42820f(0x158)];this[_0x42820f(0xfe)]({'replyId':_0x285ab7,'partIndex':_0x377856}),this[_0x42820f(0x12b)][_0x42820f(0x254)](_0x42820f(0x25c));}),this[_0x85fb75(0x167)](this[_0x85fb75(0x12b)],_0x85fb75(0x19a),()=>{const _0x4bbb33=_0x85fb75,{replyId:_0x2f5928,partIndex:_0x4e5a05}=this[_0x4bbb33(0x158)];this[_0x4bbb33(0x256)]({'replyId':_0x2f5928,'partIndex':_0x4e5a05}),this[_0x4bbb33(0x12b)][_0x4bbb33(0x254)](_0x4bbb33(0x25c));}),this[_0x85fb75(0x167)](this[_0x85fb75(0x12b)],_0x85fb75(0x251),()=>{const _0x23f310=_0x85fb75,{replyId:_0x31e81b,partIndex:_0x15ec51}=this[_0x23f310(0x158)];this[_0x23f310(0x227)]({'replyId':_0x31e81b,'partIndex':_0x15ec51}),this[_0x23f310(0x12b)][_0x23f310(0x254)](_0x23f310(0x1f5));}),this[_0x85fb75(0x167)](this[_0x85fb75(0x12b)],_0x85fb75(0x19e),()=>{const _0x209a63=_0x85fb75,{replyId:_0x16352d,partIndex:_0x482f85}=this[_0x209a63(0x158)],_0x50ea03=this[_0x209a63(0x1c9)](_0x16352d,_0x482f85,_0x209a63(0xfc));null!==_0x50ea03&&this[_0x209a63(0x20a)](_0x16352d,_0x50ea03);}),this[_0x85fb75(0x167)](this[_0x85fb75(0x12b)],_0x85fb75(0x121),()=>{const _0x35ea45=_0x85fb75,{replyId:_0x15015c,partIndex:_0x1432d4}=this[_0x35ea45(0x158)],_0x4402e0=this[_0x35ea45(0x1c9)](_0x15015c,_0x1432d4,_0x35ea45(0x221));null!==_0x4402e0&&this[_0x35ea45(0x20a)](_0x15015c,_0x4402e0);}),this[_0x85fb75(0x167)](this[_0x85fb75(0x12b)],_0x85fb75(0x152),(_0x1906d0,{id:_0x4765a0})=>{const _0x3a933e=_0x85fb75;if(_0x3a933e(0x13b)!==_0x4765a0)return;const {replyId:_0x39ef4b,partIndex:_0x289455}=this[_0x3a933e(0x158)];this[_0x3a933e(0x158)]=null,this[_0x3a933e(0xf7)][_0x3a933e(0x147)]({'id':_0x39ef4b,'index':_0x289455,'isActive':!0x1});}));}async[_0x55d179(0x228)](){const _0x5ae7f3=_0x55d179;this[_0x5ae7f3(0x1e7)]instanceof _0x2f62e5?this[_0x5ae7f3(0x127)](this[_0x5ae7f3(0x1e7)]):this[_0x5ae7f3(0x167)](this[_0x5ae7f3(0x1e7)][_0x5ae7f3(0x1d0)],_0x5ae7f3(0x279),(_0x1713ee,_0x2b2fc8)=>{const _0xa13a1=_0x5ae7f3;_0x2b2fc8['on'](_0xa13a1(0x196),()=>{const _0x4dbf26=_0xa13a1;this[_0x4dbf26(0x127)](_0x2b2fc8);});});const _0x2907d1=this[_0x5ae7f3(0x1e7)][_0x5ae7f3(0x27e)][_0x5ae7f3(0x1e1)](_0x5ae7f3(0x15d));let _0x569937=_0x2907d1;if(_0x5ae7f3(0x1c3)!=_0x2907d1||(_0x569937=await this[_0x5ae7f3(0x1df)](),_0x569937))return _0x5ae7f3(0x22c)==_0x569937?this[_0x5ae7f3(0x27a)]():this[_0x5ae7f3(0x258)](_0x569937);}async[_0x55d179(0x1e6)](){const _0x56d1dd=_0x55d179;return await this[_0x56d1dd(0x1fa)](),this[_0x56d1dd(0x193)][_0x56d1dd(0x273)](),super[_0x56d1dd(0x1e6)]();}[_0x55d179(0x256)](_0x4f3a70){const _0x3301bc=_0x55d179,_0x5225f4=_0x5aac2c(this[_0x3301bc(0x1e7)]);if(!_0x5225f4[_0x3301bc(0x17d)][_0x3301bc(0x142)](_0x3301bc(0x218)))throw new _0x15792e(_0x3301bc(0x1ea),null);const _0x35e033=this[_0x3301bc(0x1e7)][_0x3301bc(0x17d)][_0x3301bc(0x1e1)](_0x3301bc(0x283)),{reply:_0x4e179b,interaction:_0x363af2}=this[_0x3301bc(0x14c)](_0x4f3a70[_0x3301bc(0x150)]),_0x2ebd9a=this[_0x3301bc(0x10e)](_0x4f3a70[_0x3301bc(0x150)],_0x4f3a70[_0x3301bc(0x184)]),_0x2aad4b=void 0x0!==_0x4f3a70[_0x3301bc(0x184)]?[_0x4e179b[_0x3301bc(0x22a)][_0x4f3a70[_0x3301bc(0x184)]]]:_0x4e179b[_0x3301bc(0x22a)][_0x3301bc(0x233)](_0x2c8585=>_0x3301bc(0x191)==_0x2c8585[_0x3301bc(0x20c)]),_0x542760=_0x2aad4b[_0x3301bc(0x1c7)](_0x35df06=>_0x4e179b[_0x3301bc(0x22a)][_0x3301bc(0x131)](_0x35df06));if(!_0x2ebd9a||_0x3301bc(0x20b)==_0x2ebd9a[_0x3301bc(0x204)][_0x3301bc(0x10f)][_0x3301bc(0x27c)])return void _0x542760[_0x3301bc(0x12a)](_0x191b46=>_0x4e179b[_0x3301bc(0x1db)](_0x191b46,_0x3301bc(0x1b7)));_0x542760[_0x3301bc(0x12a)](_0x1b4d77=>_0x4e179b[_0x3301bc(0x1db)](_0x1b4d77,_0x3301bc(0x25c)));const _0x3efb49=_0x371b51({'editor':_0x5225f4,'reply':_0x4e179b,'interaction':_0x363af2,'groups':_0x2aad4b,'transform':!0x0,'documentCompare':_0x35e033,'documentCompareOptions':{'anchor':_0x3301bc(0x11a),'markDeletions':!0x0}});let _0x1bb534;_0x2ebd9a&&this[_0x3301bc(0xfb)](_0x2ebd9a[_0x3301bc(0x204)]),_0x5225f4[_0x3301bc(0x244)][_0x3301bc(0x123)](_0x905ff1=>{const _0x213465=_0x3301bc;_0x1bb534=_0x905ff1[_0x213465(0x1a5)],_0x5225f4[_0x213465(0x17d)][_0x213465(0x1e1)](_0x213465(0x12f))[_0x213465(0x24a)](_0x3efb49),this[_0x213465(0x140)][_0x213465(0x17b)](_0x213465(0x103));}),this[_0x3301bc(0x177)][_0x3301bc(0x247)](_0x1bb534,{'interactionId':_0x363af2['id'],'replyId':_0x4e179b['id'],'indexes':_0x542760[_0x3301bc(0x1b0)]()}),this[_0x3301bc(0x159)](_0x4e179b);}[_0x55d179(0xfe)](_0x4ce3e5){const _0x1c7d73=_0x55d179,_0x3e07e2=_0x5aac2c(this[_0x1c7d73(0x1e7)]),_0x349c60=this[_0x1c7d73(0x1e7)][_0x1c7d73(0x17d)][_0x1c7d73(0x1e1)](_0x4a5630),{reply:_0x211700,interaction:_0x4b543c}=this[_0x1c7d73(0x14c)](_0x4ce3e5[_0x1c7d73(0x150)]),_0x41dde9=this[_0x1c7d73(0x10e)](_0x4ce3e5[_0x1c7d73(0x150)],_0x4ce3e5[_0x1c7d73(0x184)]),_0x2f0772=void 0x0!==_0x4ce3e5[_0x1c7d73(0x184)]?[_0x211700[_0x1c7d73(0x22a)][_0x4ce3e5[_0x1c7d73(0x184)]]]:_0x211700[_0x1c7d73(0x22a)][_0x1c7d73(0x233)](_0x53a8d4=>_0x1c7d73(0x191)==_0x53a8d4[_0x1c7d73(0x20c)]),_0x488ba3=_0x2f0772[_0x1c7d73(0x1c7)](_0x4978ac=>_0x211700[_0x1c7d73(0x22a)][_0x1c7d73(0x131)](_0x4978ac));if(!_0x41dde9||_0x1c7d73(0x20b)==_0x41dde9[_0x1c7d73(0x204)][_0x1c7d73(0x10f)][_0x1c7d73(0x27c)])return void _0x488ba3[_0x1c7d73(0x12a)](_0x4a9bda=>_0x211700[_0x1c7d73(0x1db)](_0x4a9bda,_0x1c7d73(0x1b7)));_0x488ba3[_0x1c7d73(0x12a)](_0x4064a8=>_0x211700[_0x1c7d73(0x1db)](_0x4064a8,_0x1c7d73(0x25c)));const _0x1783ea=_0x371b51({'editor':_0x3e07e2,'reply':_0x211700,'interaction':_0x4b543c,'groups':_0x2f0772,'transform':!0x0,'documentCompare':_0x349c60,'documentCompareOptions':{'anchor':_0x1c7d73(0x11a),'markDeletions':!0x1}});let _0x765134;_0x41dde9&&this[_0x1c7d73(0xfb)](_0x41dde9[_0x1c7d73(0x204)]),_0x3e07e2[_0x1c7d73(0x244)][_0x1c7d73(0x123)](_0x27fc7c=>{const _0x32d4ed=_0x1c7d73;_0x765134=_0x27fc7c[_0x32d4ed(0x1a5)];for(const _0x52b6c1 of _0x1783ea)_0x52b6c1[_0x32d4ed(0x1cd)]=_0x3e07e2[_0x32d4ed(0x244)][_0x32d4ed(0x1aa)][_0x32d4ed(0x23f)],_0x2aac5b(_0x3e07e2,_0x52b6c1),_0x27fc7c[_0x32d4ed(0x1a5)][_0x32d4ed(0x176)](_0x52b6c1),_0x3e07e2[_0x32d4ed(0x244)][_0x32d4ed(0x1ef)](_0x52b6c1);}),this[_0x1c7d73(0x177)][_0x1c7d73(0x247)](_0x765134,{'interactionId':_0x4b543c['id'],'replyId':_0x211700['id'],'indexes':_0x488ba3[_0x1c7d73(0x1b0)]()}),this[_0x1c7d73(0x159)](_0x211700);}[_0x55d179(0x227)](_0x833daf){const _0x1b371c=_0x55d179,{reply:_0x59ba91}=this[_0x1b371c(0x14c)](_0x833daf[_0x1b371c(0x150)]);_0x59ba91[_0x1b371c(0x1db)](_0x833daf[_0x1b371c(0x184)],_0x1b371c(0x1f5));}[_0x55d179(0x20a)](_0x395c8b,_0x5e11ce){const _0x5d0551=_0x55d179;if(!this[_0x5d0551(0x12b)])return;const {reply:_0x52216a}=this[_0x5d0551(0x14c)](_0x395c8b),_0x3f4dc1=_0x52216a[_0x5d0551(0x112)]({'showDiff':this[_0x5d0551(0x1d8)]});let _0x1eddf5,_0x2e64b3;if(void 0x0!==_0x5e11ce?(_0x2e64b3=_0x3f4dc1[_0x5d0551(0x17c)](_0x4a388a=>_0x4a388a[_0x5d0551(0x13a)]==_0x5e11ce),_0x1eddf5=_0x2e64b3?.[_0x5d0551(0x13a)]):(_0x2e64b3=_0x3f4dc1[0x0],_0x1eddf5=_0x2e64b3[_0x5d0551(0x13a)]),this[_0x5d0551(0x158)]?.[_0x5d0551(0x150)]==_0x395c8b&&this[_0x5d0551(0x158)]?.[_0x5d0551(0x184)]==_0x1eddf5)return;const _0x490013=this[_0x5d0551(0x27b)](_0x395c8b,_0x52216a,_0x2e64b3);if(!_0x490013)return void this[_0x5d0551(0x12b)][_0x5d0551(0x18b)]();this[_0x5d0551(0x158)]={'replyId':_0x395c8b,'partIndex':_0x1eddf5},this[_0x5d0551(0xfb)](_0x490013,!0x0);const _0x2a4055=this[_0x5d0551(0x1c9)](_0x395c8b,_0x1eddf5,_0x5d0551(0xfc));this[_0x5d0551(0x12b)][_0x5d0551(0x1ca)]({'part':_0x2e64b3,'renderingStrategy':_0x5d0551(0x222)}),this[_0x5d0551(0x12b)][_0x5d0551(0x21f)]({'index':_0x1eddf5,'title':_0x2aaeb3(this[_0x5d0551(0x1e7)][_0x5d0551(0x145)],_0x5d0551(0x261),(_0x1eddf5+0x1)[_0x5d0551(0x21a)]()),'showRotator':null!==_0x2a4055,'ranges':[_0x490013],'areActionsDisabled':_0x52216a[_0x5d0551(0x23b)]}),this[_0x5d0551(0x12b)][_0x5d0551(0x254)](_0x5d0551(0x191)),this[_0x5d0551(0xf7)][_0x5d0551(0x20f)](_0x395c8b,_0x1eddf5),this[_0x5d0551(0xf7)][_0x5d0551(0x147)]({'id':_0x395c8b,'index':_0x1eddf5,'isActive':!0x0});}[_0x55d179(0x1c9)](_0x251ee2,_0x2caf1a,_0x544a3e){const _0x5d83e1=_0x55d179,{reply:_0x572bea}=this[_0x5d83e1(0x14c)](_0x251ee2),_0x219a0d=_0x572bea[_0x5d83e1(0x112)]({'showDiff':this[_0x5d83e1(0x1d8)]});if(0x1==_0x219a0d[_0x5d83e1(0x178)])return null;const _0x337a7c=_0x219a0d[_0x5d83e1(0x1f2)](_0x16ec5a=>_0x16ec5a[_0x5d83e1(0x13a)]==_0x2caf1a),_0x2b2ad6=_0x5d83e1(0xfc)==_0x544a3e?0x1:-0x1;let _0x1d65f3=_0x219a0d['at']((_0x337a7c+_0x2b2ad6)%_0x219a0d[_0x5d83e1(0x178)])[_0x5d83e1(0x13a)],_0xddda5a=_0x219a0d[_0x1d65f3];for(;!this[_0x5d83e1(0x27b)](_0x251ee2,_0x572bea,_0xddda5a);){if(_0x1d65f3=_0x219a0d['at']((_0x1d65f3+_0x2b2ad6)%_0x219a0d[_0x5d83e1(0x178)])[_0x5d83e1(0x13a)],_0x1d65f3===_0x337a7c)return null;_0xddda5a=_0x219a0d[_0x1d65f3];}return _0x1d65f3;}[_0x55d179(0x27b)](_0x29dab3,_0x46c40c,_0x3624ab){const _0x2398bf=_0x55d179,_0x3feb09=_0x46c40c[_0x2398bf(0x22a)];if(!_0x3624ab[_0x2398bf(0x1a6)])return null;const _0xbeb4a0=_0x3feb09[_0x2398bf(0x17c)](_0x1af8bc=>_0x1af8bc[_0x2398bf(0x13a)]==_0x3624ab[_0x2398bf(0x13a)]);if(_0x2398bf(0x191)!==_0xbeb4a0?.[_0x2398bf(0x20c)])return null;const _0x48560d=this[_0x2398bf(0x10e)](_0x29dab3,_0x3624ab[_0x2398bf(0x13a)]);if(!_0x48560d)return null;const {range:_0x1321bc,currentIndex:_0xdf1d12}=_0x48560d;return _0x2398bf(0x20b)==_0x1321bc[_0x2398bf(0x10f)][_0x2398bf(0x27c)]?(_0x46c40c[_0x2398bf(0x1db)](_0xdf1d12,_0x2398bf(0x1b7)),null):_0x48560d[_0x2398bf(0x204)];}[_0x55d179(0x10e)](_0x1df945,_0x4d91c7){const _0x5cb07c=_0x55d179,_0xb105b9=_0x5aac2c(this[_0x5cb07c(0x1e7)]),{reply:_0x252700,interaction:_0x3bcdb5}=this[_0x5cb07c(0x14c)](_0x1df945),_0x4e14dd=_0x252700[_0x5cb07c(0x22a)][_0x5cb07c(0x233)](_0x1c80cc=>_0x5cb07c(0x191)==_0x1c80cc[_0x5cb07c(0x20c)]),_0x482ad7=_0x4e14dd[_0x5cb07c(0x1c7)](_0x20e6cc=>_0x252700[_0x5cb07c(0x22a)][_0x5cb07c(0x131)](_0x20e6cc));void 0x0===_0x4d91c7&&(_0x4d91c7=_0x482ad7[0x0]);const _0x4cbf81=_0x482ad7[_0x5cb07c(0x131)](_0x4d91c7);if(-0x1==_0x4cbf81)return null;const _0x4fd1c8=_0x4e14dd[_0x4cbf81],_0x2d108e=new _0x2608ef([]),_0x42d8cf=new _0x2608ef([]);for(const _0x1e6686 of _0x4fd1c8[_0x5cb07c(0x165)])if(_0x5cb07c(0x1d7)!=_0x1e6686[_0x5cb07c(0x201)]&&_0x42d8cf[_0x5cb07c(0x14a)][_0x5cb07c(0x206)](_0x1e6686[_0x5cb07c(0x183)][_0x5cb07c(0x23e)](!0x0)),_0x5cb07c(0x22c)!=_0x1e6686[_0x5cb07c(0x201)]){const _0x185ef=_0x3f070c(_0x5675fd=>_0x1f28be(_0x5675fd,_0x5cb07c(0x17f))==_0x1e6686['id'],_0x252700[_0x5cb07c(0x24e)],!0x0);_0x2d108e[_0x5cb07c(0x14a)][_0x5cb07c(0x206)](_0x185ef[_0x5cb07c(0x23e)](!0x0));}if(0x0==_0x2d108e[_0x5cb07c(0x14a)][_0x5cb07c(0x178)]){if(_0x4fd1c8[_0x5cb07c(0x165)][0x0][_0x5cb07c(0x1de)]){const _0x19c740=_0x25394c(_0x5cb07c(0x17f),_0x4fd1c8[_0x5cb07c(0x165)][0x0][_0x5cb07c(0x1de)],_0x252700[_0x5cb07c(0x24e)]);_0x2d108e[_0x5cb07c(0x14a)][_0x5cb07c(0x164)](_0x19c740[_0x5cb07c(0x23e)](!0x0)),_0x42d8cf[_0x5cb07c(0x14a)][_0x5cb07c(0x164)](_0x19c740[_0x5cb07c(0x23e)](!0x0)),_0x19c740[_0x5cb07c(0x19b)]&&(_0x2d108e[_0x5cb07c(0x14a)][_0x5cb07c(0x206)](_0x19c740[_0x5cb07c(0x19b)][_0x5cb07c(0x23e)](!0x0)),_0x42d8cf[_0x5cb07c(0x14a)][_0x5cb07c(0x206)](_0x19c740[_0x5cb07c(0x19b)][_0x5cb07c(0x23e)](!0x0)));}else{const _0x24a4a6=_0x252700[_0x5cb07c(0x24e)][_0x5cb07c(0x14a)][0x0];if(!_0x24a4a6)return null;_0x2d108e[_0x5cb07c(0x14a)][_0x5cb07c(0x206)](_0x24a4a6[_0x5cb07c(0x23e)](!0x0)),_0x42d8cf[_0x5cb07c(0x14a)][_0x5cb07c(0x206)](_0x24a4a6[_0x5cb07c(0x23e)](!0x0));}}const _0x5b4caf=_0x3bcdb5[_0x5cb07c(0x10a)](),_0x3d3262=_0xb105b9[_0x5cb07c(0x130)][_0x5cb07c(0x1b5)](_0x5b4caf[_0x5cb07c(0x1b3)]),_0x2c5a29=_0x49efa6(_0x2d108e),_0x307e98=_0xb105b9[_0x5cb07c(0x130)][_0x5cb07c(0x1b5)](_0x2c5a29),_0xd308d2=_0xb105b9[_0x5cb07c(0x130)][_0x5cb07c(0x1b5)](_0x2c5a29),_0x753272=_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x144)](_0x307e98,0x0),_0x4e2195=_0x49efa6(_0x42d8cf),_0x4622bb={'anchor':_0x753272,'markDeletions':!0x1},_0xf0343e=_0xb105b9[_0x5cb07c(0x17d)][_0x5cb07c(0x1e1)](_0x4a5630)[_0x5cb07c(0x11c)](_0x2c5a29,_0x4e2195,_0x4622bb)[_0x5cb07c(0x100)]();if(!_0xf0343e[_0x5cb07c(0x178)])return null;_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x123)](_0x202ef6=>{const _0x3c76f1=_0x5cb07c;for(const _0x3092ab of _0xf0343e)if(_0x3c76f1(0x272)==_0x3092ab[_0x3c76f1(0x201)]){const _0x34d19a=_0x3092ab[_0x3c76f1(0x189)],_0x4e1a62=_0x3092ab[_0x3c76f1(0x22b)],_0x54991a=new _0x14e20e(_0x34d19a,_0x4e1a62);_0x202ef6[_0x3c76f1(0x1a5)][_0x3c76f1(0x176)](_0x54991a),_0xb105b9[_0x3c76f1(0x244)][_0x3c76f1(0x1ef)](_0x54991a);}else _0x3c76f1(0x260)!==_0x3092ab[_0x3c76f1(0x201)]&&(_0x3092ab[_0x3c76f1(0x1cd)]=null,_0x3092ab[_0x3c76f1(0x1e0)]=!0x1,_0x202ef6[_0x3c76f1(0x1a5)][_0x3c76f1(0x176)](_0x3092ab),_0xb105b9[_0x3c76f1(0x244)][_0x3c76f1(0x1ef)](_0x3092ab));});const _0x5d87fa=_0x9fa59a(_0xb105b9,_0xf0343e,_0x307e98);_0x272146(_0xb105b9[_0x5cb07c(0x244)],_0x5d87fa);const _0x230054=_0x5d87fa[_0x5cb07c(0x136)]()[_0x5cb07c(0x276)][_0x5cb07c(0x156)][_0x5cb07c(0x1b0)](),_0x1a4c79=_0x5d87fa[_0x5cb07c(0x136)]()[_0x5cb07c(0x248)][_0x5cb07c(0x156)][_0x5cb07c(0x1b0)](),_0x3724b7=[];let _0x19968b=_0x307e98,_0x45b481=_0xd308d2;for(let _0x7cebbe=0x0;_0x7cebbe<_0x1a4c79[_0x5cb07c(0x178)];_0x7cebbe++){const _0x162c85=_0x19968b[_0x5cb07c(0x249)]-_0x1a4c79[_0x7cebbe];_0x3724b7[_0x7cebbe]=_0x45b481[_0x5cb07c(0x249)]-_0x162c85,_0x19968b=_0x19968b[_0x5cb07c(0x238)](_0x1a4c79[_0x7cebbe]),_0x45b481=_0x45b481[_0x5cb07c(0x238)](_0x3724b7[_0x7cebbe]);}const _0x4db8dc=_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x236)](_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x10d)](_0xd308d2,_0x230054),_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x10d)](_0xd308d2,_0x3724b7)),_0xba932b=_0xd308d2[_0x5cb07c(0x172)](0x0)[_0x5cb07c(0x214)](_0x249de1),_0x3878c9=Array[_0x5cb07c(0x12c)](_0x3d3262[_0x5cb07c(0x134)]())[_0x5cb07c(0x17c)](_0x3ce7d4=>_0x3ce7d4[_0x5cb07c(0x214)](_0x249de1)==_0xba932b)[_0x5cb07c(0xf9)](),_0x4c9e12=_0x4db8dc[_0x5cb07c(0x276)][_0x5cb07c(0x156)][_0x5cb07c(0x1b0)](),_0x2141fc=_0x4db8dc[_0x5cb07c(0x248)][_0x5cb07c(0x156)][_0x5cb07c(0x1b0)]();_0x4c9e12[0x0]=_0x3878c9[0x0]+_0x4c9e12[0x0],_0x2141fc[0x0]=_0x3878c9[0x0]+_0x2141fc[0x0];let _0x5b3eb5=_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x236)](_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x10d)](_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x1aa)][_0x5cb07c(0x174)](),_0x4c9e12),_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x10d)](_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x1aa)][_0x5cb07c(0x174)](),_0x2141fc));const _0x305ee5=_0xb105b9[_0x5cb07c(0x244)][_0x5cb07c(0x1aa)][_0x5cb07c(0x1cc)][_0x5cb07c(0x100)](_0x5b4caf[_0x5cb07c(0x23f)]);for(const _0x4342e5 of _0x305ee5)_0x5b3eb5=_0xf156c3[_0x5cb07c(0x138)](_0x5b3eb5[_0x5cb07c(0x1ad)](_0x4342e5));return{'range':_0x5b3eb5,'currentIndex':_0x4d91c7};}[_0x55d179(0x127)](_0xbdf839){const _0x320692=_0x55d179;if(!_0xbdf839[_0x320692(0x17d)][_0x320692(0x142)](_0x320692(0x105)))return;const _0x5c482d=_0xbdf839[_0x320692(0x262)][_0x320692(0x1e1)](_0x320692(0x23d)),_0x571546=_0xbdf839[_0x320692(0x262)][_0x320692(0x1e1)](_0x320692(0x239));this[_0x320692(0x167)](_0x5c482d,_0x320692(0x181),(_0x31bcdc,_0x373bff,_0xcd87f7)=>{const _0x3fdbf5=_0x320692,_0x14d7c0=this[_0x3fdbf5(0x177)][_0x3fdbf5(0x1e1)](_0x373bff);if(!_0x14d7c0)return;const _0x2139a6=this[_0x3fdbf5(0x26f)][_0x3fdbf5(0x1c1)](_0x14d7c0[_0x3fdbf5(0x1dc)])[_0x3fdbf5(0x252)](_0x14d7c0[_0x3fdbf5(0x150)]);_0x14d7c0[_0x3fdbf5(0x101)][_0x3fdbf5(0x12a)](_0x4fe051=>_0x2139a6[_0x3fdbf5(0x1db)](_0x4fe051,_0x3fdbf5(0x191))),this[_0x3fdbf5(0x177)][_0x3fdbf5(0x194)](_0x373bff),this[_0x3fdbf5(0x177)][_0x3fdbf5(0x247)](_0xcd87f7,_0x14d7c0);}),this[_0x320692(0x167)](_0x571546,_0x320692(0x181),(_0x2a6557,_0x25c914,_0x37c904)=>{const _0x25e617=_0x320692,_0x3d2881=this[_0x25e617(0x177)][_0x25e617(0x1e1)](_0x25c914);if(!_0x3d2881)return;const _0x19d613=this[_0x25e617(0x26f)][_0x25e617(0x1c1)](_0x3d2881[_0x25e617(0x1dc)])[_0x25e617(0x252)](_0x3d2881[_0x25e617(0x150)]);_0x3d2881[_0x25e617(0x101)][_0x25e617(0x12a)](_0x3a0481=>_0x19d613[_0x25e617(0x1db)](_0x3a0481,_0x25e617(0x25c))),this[_0x25e617(0x177)][_0x25e617(0x194)](_0x25c914),this[_0x25e617(0x177)][_0x25e617(0x247)](_0x37c904,_0x3d2881);});}async[_0x55d179(0x258)](_0x325190){const _0x3094ea=_0x55d179;this[_0x3094ea(0x1e7)][_0x3094ea(0x17d)][_0x3094ea(0x142)](_0x3094ea(0x12d))&&this[_0x3094ea(0x1e7)][_0x3094ea(0x17d)][_0x3094ea(0x1e1)](_0x3094ea(0x12d))[_0x3094ea(0x18b)](),(this[_0x3094ea(0x1e7)][_0x3094ea(0x17d)][_0x3094ea(0x1e1)](_0x3cd74b)[_0x3094ea(0x171)][_0x3094ea(0x11e)](_0x3094ea(0x102)),this[_0x3094ea(0xf7)][_0x3094ea(0x1f8)](_0x3094ea(0x222)),this[_0x3094ea(0xf7)][_0x3094ea(0x270)](!0x0),await this[_0x3094ea(0x1fa)]());try{await this[_0x3094ea(0x1a7)][_0x3094ea(0x1e9)](_0x325190)[_0x3094ea(0x1ab)](),await this[_0x3094ea(0x27a)](_0x325190),this[_0x3094ea(0x1d3)]('\x20'),await this[_0x3094ea(0x26f)][_0x3094ea(0x197)](_0x325190,this[_0x3094ea(0x140)][_0x3094ea(0x1da)]),this[_0x3094ea(0x26f)][_0x3094ea(0x22e)]()&&this[_0x3094ea(0x209)]();}catch(_0x5b2f54){this[_0x3094ea(0xf7)][_0x3094ea(0x267)]({'errorMessage':_0x2aaeb3(this[_0x3094ea(0x1e7)][_0x3094ea(0x145)],_0x3094ea(0x205)),'id':_0x325190}),this[_0x3094ea(0x210)](new _0x15792e(_0x3094ea(0x1e5),this,{'error':_0x5b2f54}));}finally{this[_0x3094ea(0xf7)][_0x3094ea(0x26b)](),this[_0x3094ea(0xf7)][_0x3094ea(0x1f8)](_0x3094ea(0x13c)),this[_0x3094ea(0xf7)][_0x3094ea(0x270)](!0x1);}}async[_0x55d179(0x1df)](){const _0x3edae8=_0x55d179,_0x5a7bd7=this[_0x3edae8(0x1a7)][_0x3edae8(0x224)](this[_0x3edae8(0x137)](),{'limit':0x1,'sortBy':_0x3edae8(0x243)});try{const _0x12f88e=await _0x5a7bd7[_0x3edae8(0x211)]();return _0x12f88e[_0x3edae8(0x178)]?_0x12f88e[0x0]['id']:_0x3edae8(0x22c);}catch(_0x319f85){return this[_0x3edae8(0xf7)][_0x3edae8(0x267)]({'errorMessage':_0x2aaeb3(this[_0x3edae8(0x1e7)][_0x3edae8(0x145)],_0x3edae8(0x205)),'id':_0x4e0318()}),this[_0x3edae8(0x210)](new _0x15792e(_0x3edae8(0x163),this,{'error':_0x319f85})),this[_0x3edae8(0xf7)][_0x3edae8(0x270)](!0x1),this[_0x3edae8(0xf7)][_0x3edae8(0x25e)](),null;}}[_0x55d179(0x271)](_0x16361c){const _0x4a695c=_0x55d179;this[_0x4a695c(0x26f)]['id']===_0x16361c&&this[_0x4a695c(0x27a)]();}[_0x55d179(0x209)](){const _0x2b2135=_0x55d179;this[_0x2b2135(0x26f)]?.[_0x2b2135(0x114)](_0x2aaeb3(this[_0x2b2135(0x1e7)][_0x2b2135(0x145)],_0x2b2135(0x14b)));}async[_0x55d179(0x1ee)](){const _0x48f11b=_0x55d179,_0x532fd5=this[_0x48f11b(0x140)][_0x48f11b(0x253)]();this[_0x48f11b(0x26f)]?.[_0x48f11b(0x124)](_0x532fd5),this[_0x48f11b(0x209)]();}[_0x55d179(0x115)](){const _0x3ac447=_0x55d179;this[_0x3ac447(0x26f)]?.[_0x3ac447(0x24b)]();}[_0x55d179(0x1f1)](){const _0x31cd3a=_0x55d179;this[_0x31cd3a(0xf7)][_0x31cd3a(0x1f1)]();}async[_0x55d179(0x16a)](){const _0x2f6aa3=_0x55d179;await this[_0x2f6aa3(0x27a)]();}async[_0x55d179(0x129)]({message:_0x5c6f89,attributes:_0x290175}){const _0x57a9c5=_0x55d179;await this[_0x57a9c5(0x162)]({'userMessage':_0x5c6f89,'attributes':_0x290175});}[_0x55d179(0x137)](){const _0x87bc2c=_0x55d179,_0x303a8d=this[_0x87bc2c(0x1e7)][_0x87bc2c(0x27e)][_0x87bc2c(0x1e1)](_0x87bc2c(0x14e));if(!_0x303a8d)throw new _0x15792e(_0x87bc2c(0x119),this);return _0x303a8d;}async[_0x55d179(0x27a)](_0x362c88){const _0x163193=_0x55d179;try{this[_0x163193(0xf7)][_0x163193(0x10b)](),await this[_0x163193(0x160)](_0x362c88);}catch(_0x165db0){this[_0x163193(0xf7)][_0x163193(0x267)]({'errorMessage':_0x2aaeb3(this[_0x163193(0x1e7)][_0x163193(0x145)],_0x163193(0x166)),'id':_0x362c88||_0x4e0318()}),console[_0x163193(0x27f)](_0x165db0),this[_0x163193(0x26f)]=void 0x0,this[_0x163193(0xf7)][_0x163193(0x25e)]();}}async[_0x55d179(0x160)](_0x48dbde){const _0x3dd803=_0x55d179;let _0x222122;this[_0x3dd803(0x1e7)][_0x3dd803(0x17d)][_0x3dd803(0x142)](_0x3dd803(0x12d))&&this[_0x3dd803(0x1e7)][_0x3dd803(0x17d)][_0x3dd803(0x1e1)](_0x3dd803(0x12d))[_0x3dd803(0x18b)](),_0x48dbde||!this[_0x3dd803(0x26f)]?_0x222122=this[_0x3dd803(0x1e7)][_0x3dd803(0x27e)][_0x3dd803(0x1e1)](_0x3dd803(0x1b4)):this[_0x3dd803(0xf7)][_0x3dd803(0x26e)]&&(_0x222122=this[_0x3dd803(0x26f)][_0x3dd803(0x170)]['id']),await this[_0x3dd803(0x1fa)]();const _0x48abe4=this[_0x3dd803(0x137)](),_0x2887a3=_0x48dbde||_0x4e0318();this[_0x3dd803(0x26f)]=new _0x1e4d8d({'connector':this[_0x3dd803(0x1a7)],'chatModels':this[_0x3dd803(0x22f)],'selectedModelId':_0x222122,'conversationId':_0x2887a3,'group':_0x48abe4,'getEditor':()=>_0x5aac2c(this[_0x3dd803(0x1e7)]),'isFromHistory':!!_0x48dbde}),this[_0x3dd803(0x26f)][_0x3dd803(0x282)](_0x3dd803(0x151),_0x3dd803(0x19c))['to'](this),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x106),(_0xdc2336,_0x380faf)=>{const _0x3d3176=_0x3dd803;this[_0x3d3176(0xf7)][_0x3d3176(0x230)](_0x380faf),this[_0x3d3176(0xf7)][_0x3d3176(0x25f)](),this[_0x3d3176(0xf7)][_0x3d3176(0x154)](),this[_0x3d3176(0xf7)][_0x3d3176(0x111)](),_0x48dbde||(this[_0x3d3176(0xf7)][_0x3d3176(0x133)](),this[_0x3d3176(0x209)]());}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x250),(_0x58b8e4,_0x227d4e)=>{const _0x37820f=_0x3dd803;this[_0x37820f(0xf7)][_0x37820f(0x116)](_0x227d4e[_0x37820f(0x278)]);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x182),(_0x3cbded,_0x47ec58)=>{const _0x144bbd=_0x3dd803;this[_0x144bbd(0xf7)][_0x144bbd(0x212)](_0x47ec58);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1fe),()=>{const _0x1373e2=_0x3dd803,_0x3a5cb3=this[_0x1373e2(0xf7)][_0x1373e2(0x1ac)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x1373e2(0xf7)][_0x1373e2(0x16d)](_0x3a5cb3);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x25b),()=>{const _0x92fae4=_0x3dd803,_0x2840ab=this[_0x92fae4(0xf7)][_0x92fae4(0x1ac)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x92fae4(0xf7)][_0x92fae4(0x16d)](_0x2840ab);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1c8),(_0x149253,_0x30e2bd)=>{const _0x257b04=_0x3dd803;this[_0x257b04(0xf7)][_0x257b04(0x274)](_0x30e2bd,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x17e),(_0x4158ca,_0x292bf1)=>{const _0x4d6e99=_0x3dd803;this[_0x4d6e99(0xf7)][_0x4d6e99(0x274)](_0x292bf1,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x19c),()=>{const _0x4eb9b2=_0x3dd803;this[_0x4eb9b2(0xf7)][_0x4eb9b2(0x18f)]();}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x235),async()=>{const _0xf1e6b0=_0x3dd803;await this[_0xf1e6b0(0xf7)][_0xf1e6b0(0x10c)]();}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x125),(_0x57c124,_0x153496)=>{const _0x3578bc=_0x3dd803;this[_0x3578bc(0xf7)][_0x3578bc(0x1a0)](_0x153496['id']);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x26a),(_0x2d697d,_0x739de9,_0x1c584f)=>{const _0x3daf7f=_0x3dd803;this[_0x3daf7f(0x1d3)](_0x739de9,_0x1c584f);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1e4),(_0xf18b53,_0x3f9c31)=>{const _0x4d97db=_0x3dd803;_0x4d97db(0x263)===_0x3f9c31[_0x4d97db(0x201)]?this[_0x4d97db(0xf7)][_0x4d97db(0x1bb)](_0x3f9c31):this[_0x4d97db(0xf7)][_0x4d97db(0x11b)](_0x3f9c31);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1e8),async(_0x91cba6,_0xea4fe8)=>{const _0x3a67fc=_0x3dd803;await this[_0x3a67fc(0x1d9)]({'reply':_0xea4fe8});}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x13e),(_0x239728,{reply:_0x262b4c,index:_0x3b1034,state:_0x560ad5})=>{const _0x1c2e2b=_0x3dd803;this[_0x1c2e2b(0xf7)][_0x1c2e2b(0x21b)]({'id':_0x262b4c['id'],'index':_0x3b1034,'state':_0x560ad5}),this[_0x1c2e2b(0x158)]?.[_0x1c2e2b(0x150)][_0x1c2e2b(0x1a8)](_0x262b4c['id'])&&this[_0x1c2e2b(0x158)]?.[_0x1c2e2b(0x184)]==_0x3b1034&&this[_0x1c2e2b(0x12b)]?.[_0x1c2e2b(0x254)](_0x560ad5);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x180),(_0x1e1783,_0x2cd8c7)=>{const _0x3ca34f=_0x3dd803;if(this[_0x3ca34f(0xf7)][_0x3ca34f(0x185)](_0x2cd8c7[_0x3ca34f(0x1eb)],_0x2cd8c7[_0x3ca34f(0x14d)]),_0x3ca34f(0x120)===_0x2cd8c7[_0x3ca34f(0x1eb)][_0x3ca34f(0x201)]){const _0x20009e=[..._0x5aac2c(this[_0x3ca34f(0x1e7)])[_0x3ca34f(0x244)][_0x3ca34f(0x1aa)][_0x3ca34f(0x120)][_0x3ca34f(0x139)]()];this[_0x3ca34f(0x140)][_0x3ca34f(0x15f)](_0x20009e,_0x3ca34f(0x234)+this[_0x3ca34f(0x26f)]?.['id']);}}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1d6),(_0x3951fc,_0x32eccb)=>{const _0x540778=_0x3dd803;this[_0x540778(0xf7)][_0x540778(0x173)](_0x32eccb[_0x540778(0x255)]),_0x540778(0x15c)==_0x32eccb[_0x540778(0x255)]&&this[_0x540778(0x115)](),_0x540778(0x120)===_0x32eccb[_0x540778(0x201)]&&this[_0x540778(0x140)][_0x540778(0x17b)](_0x540778(0x234)+this[_0x540778(0x26f)]?.['id']);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1ce),(_0xdaa874,_0x56b31d)=>{const _0x38a582=_0x3dd803;this[_0x38a582(0xf7)][_0x38a582(0x18c)](_0x56b31d[_0x38a582(0x1eb)][_0x38a582(0x255)],_0x56b31d[_0x38a582(0x14d)]);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1bc),(_0x2452dd,_0x2d4acd)=>{const _0x10a82b=_0x3dd803;this[_0x10a82b(0xf7)][_0x10a82b(0x1e2)](_0x2d4acd[_0x10a82b(0x1f4)]);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x13f),(_0x2e86a7,_0x54a7ad)=>{const _0x4dfd30=_0x3dd803;this[_0x4dfd30(0xf7)][_0x4dfd30(0xfa)](_0x54a7ad[_0x4dfd30(0x192)]);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x213),(_0x8ce64e,_0x533e93)=>{const _0x4f428d=_0x3dd803;this[_0x4f428d(0xf7)][_0x4f428d(0x141)](_0x533e93[_0x4f428d(0x22d)],_0x533e93[_0x4f428d(0x259)],_0x533e93[_0x4f428d(0x15b)],_0x533e93[_0x4f428d(0x246)]);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x25d),(_0x16c267,_0x91c48e)=>{const _0x5e5732=_0x3dd803;this[_0x5e5732(0xf7)][_0x5e5732(0x168)](_0x91c48e[_0x5e5732(0x22d)],_0x91c48e[_0x5e5732(0x265)],_0x91c48e[_0x5e5732(0x107)]);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1c6),(_0x18b3ef,_0x47561e)=>{const _0x421cad=_0x3dd803;this[_0x421cad(0xf7)][_0x421cad(0x203)](_0x47561e);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x1f3),async(_0x14a27c,_0x56d675)=>{const _0x377a72=_0x3dd803,_0x31541b=(await this[_0x377a72(0x22f)][_0x377a72(0x16f)]())[_0x377a72(0x17c)](_0x1a87d8=>_0x1a87d8['id']===_0x56d675[_0x377a72(0x170)]?.['id'])||null;this[_0x377a72(0xf7)][_0x377a72(0x1c0)](_0x31541b,_0x56d675[_0x377a72(0x1f6)]);}),this[_0x3dd803(0x26f)]['on'](_0x3dd803(0x27f),(_0x2b2b39,{error:_0xdf9b19,interactionId:_0x18e8e6,fileName:_0x47986a,url:_0x4de841,sourceId:_0x301dac,sourceLabel:_0x1f040d})=>{const _0x7c3cdd=_0x3dd803,_0x1ea7a1=_0x18e8e6?_0x18e8e6+':'+_0x4e0318():_0x4e0318();_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x1d1))?this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x126)]({'staticMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x1af)),'id':_0x1ea7a1}):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x163))||_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x109))?(this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x166)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19)):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x200))?this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x1c2),_0x47986a),'id':_0x1ea7a1}):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x15e))?this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x18e),_0x4de841),'id':_0x1ea7a1}):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x118))?this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x1bf)),'id':_0x1ea7a1}):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x161))?this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x245)),'id':_0x1ea7a1}):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x19f))?(_0x301dac&&this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x117)](_0x301dac),this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x23a),_0x1f040d||_0x7c3cdd(0x259)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19)):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x1cb))?(this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x12e)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19)):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x266))?(this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x18a)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19)):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x202))?(this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x1f0)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19)):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x187))?(this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0xff)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19)):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0xf6))?(this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x215)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19)):_0xdf9b19[_0x7c3cdd(0x21e)][_0x7c3cdd(0x14f)](_0x7c3cdd(0x153))?(this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0xfd)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19)):(this[_0x7c3cdd(0xf7)][_0x7c3cdd(0x267)]({'errorMessage':_0x2aaeb3(this[_0x7c3cdd(0x1e7)][_0x7c3cdd(0x145)],_0x7c3cdd(0x23c)),'id':_0x1ea7a1}),this[_0x7c3cdd(0x210)](_0xdf9b19));}),await this[_0x3dd803(0x26f)][_0x3dd803(0x179)](this[_0x3dd803(0x1e7)][_0x3dd803(0x27e)][_0x3dd803(0x1e1)](_0x3dd803(0x1ba))),_0x48dbde||await this[_0x3dd803(0x26f)][_0x3dd803(0x276)]();}async[_0x55d179(0x162)]({userMessage:_0x4778ae,attributes:_0x43ddc9}){const _0x25cb13=_0x55d179;if(!this[_0x25cb13(0x26f)])throw new _0x15792e(_0x25cb13(0x1a9));if(this[_0x25cb13(0x26f)][_0x25cb13(0x1ed)]()){const _0x54cdb5=await this[_0x25cb13(0x140)][_0x25cb13(0x219)]();await this[_0x25cb13(0x26f)][_0x25cb13(0x122)](_0x54cdb5);}this[_0x25cb13(0x26f)]['id']&&this[_0x25cb13(0x26f)][_0x25cb13(0xf5)]&&await this[_0x25cb13(0x26f)][_0x25cb13(0x198)]({'userMessage':_0x4778ae,'attributes':_0x43ddc9});}[_0x55d179(0x19d)](){const _0x4003ca=_0x55d179;console[_0x4003ca(0x1b2)](_0x4003ca(0x1b9));}[_0x55d179(0x1f9)](_0x15d786){const _0x57f015=_0x55d179;this[_0x57f015(0xf7)][_0x57f015(0x1c4)](_0x15d786);}[_0x55d179(0x210)](_0xd5c84c){const _0x5b9473=_0x55d179;_0x419030(_0xd5c84c[_0x5b9473(0x21e)]);}[_0x55d179(0x240)](_0x27d2f9){const _0x533cec=_0x55d179;this[_0x533cec(0x26f)]?.[_0x533cec(0x11d)](_0x27d2f9);}[_0x55d179(0x169)](){const _0x42977c=_0x55d179;this[_0x42977c(0x26f)]?.[_0x42977c(0x208)]();}[_0x55d179(0x18d)](){const _0x578e7a=_0x55d179;this[_0x578e7a(0x26f)]?.[_0x578e7a(0x242)]();}[_0x55d179(0x14c)](_0x3cb50a){const _0x205b94=_0x55d179,[_0x3f7e53,_0x50b01c]=_0x3cb50a[_0x205b94(0x1e3)](':'),_0x1331b2=this[_0x205b94(0x26f)][_0x205b94(0x1c1)](_0x3f7e53),_0xe28887=_0x1331b2[_0x205b94(0x252)](_0x50b01c);return{'interaction':_0x1331b2,'reply':_0xe28887};}[_0x55d179(0xfb)](_0x2bc480,_0x2cf551=!0x1){const _0x427208=_0x55d179,_0x1287a2=_0x5aac2c(this[_0x427208(0x1e7)]),_0xe10e26={'target':_0x1287a2[_0x427208(0x1b6)][_0x427208(0x171)][_0x427208(0x1a4)][_0x427208(0x1fd)](_0x1287a2[_0x427208(0x1b6)][_0x427208(0x16e)][_0x427208(0x13d)](_0x2bc480)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x2cf551};_0x2cf551&&(_0xe10e26[_0x427208(0x225)]=!0x0),_0x2bcda0(_0xe10e26);}[_0x55d179(0x1d3)](_0x13c623,_0x3a7d49=!0x1){const _0x37bf79=_0x55d179;this[_0x37bf79(0xf7)][_0x37bf79(0x26a)](_0x13c623||_0x2aaeb3(this[_0x37bf79(0x1e7)][_0x37bf79(0x145)],_0x37bf79(0x1b8)),_0x3a7d49);}async[_0x55d179(0x1d9)]({reply:_0x4da3bb,renderingStrategy:_0x5169bf}){const _0x2448d1=_0x55d179,{id:_0x31de91,interactionId:_0xca75ab,isDone:_0x724dff,type:_0x384f20,parsedContent:_0x345991}=_0x4da3bb,_0x384986=_0xca75ab+':'+_0x31de91;if(_0x2448d1(0x1bd)===_0x384f20){const _0x1a67d7=_0x4da3bb[_0x2448d1(0x112)]({'showDiff':this[_0x2448d1(0xf7)][_0x2448d1(0x1be)]});await this[_0x2448d1(0xf7)][_0x2448d1(0x207)]({'id':_0x384986,'parts':_0x1a67d7,'renderingStrategy':_0x5169bf,'isDone':_0x724dff});}else _0x2448d1(0x263)===_0x384f20&&await this[_0x2448d1(0xf7)][_0x2448d1(0x24d)]({'id':_0x384986,'parsedContent':_0x345991,'renderingStrategy':_0x5169bf,'isDone':_0x724dff});_0x724dff&&_0x4da3bb[_0x2448d1(0x20e)][_0x2448d1(0x178)]>0x0&&this[_0x2448d1(0xf7)][_0x2448d1(0x195)](_0x384986,_0x4da3bb[_0x2448d1(0x20e)]);}async[_0x55d179(0x1fa)](){const _0x3a6987=_0x55d179,_0x414699=this[_0x3a6987(0x26f)]?.[_0x3a6987(0x27d)];_0x414699&&(_0x414699[_0x3a6987(0x223)](),this[_0x3a6987(0xf7)][_0x3a6987(0x21d)](_0x414699));}async[_0x55d179(0x1c5)](){const _0x5c149f=_0x55d179,_0x1259f6=this[_0x5c149f(0x26f)]?.[_0x5c149f(0x27d)];if(_0x1259f6){for await(const _0xac658b of _0x1259f6[_0x5c149f(0x1d4)])await this[_0x5c149f(0x1d9)]({'reply':_0xac658b,'renderingStrategy':_0x5c149f(0x222)});}}[_0x55d179(0x159)](_0x1e2401){const _0x463f46=_0x55d179,_0x1837b5={'positiveCount':_0x1e2401[_0x463f46(0x22a)][_0x463f46(0x233)](_0x591c8b=>_0x463f46(0x25c)===_0x591c8b[_0x463f46(0x20c)])[_0x463f46(0x178)],'totalCount':_0x1e2401[_0x463f46(0x22a)][_0x463f46(0x178)],'modificationId':_0x1e2401['id']},_0x23a243=this[_0x463f46(0x26f)][_0x463f46(0x1c1)](_0x1e2401[_0x463f46(0x1dc)])[_0x463f46(0x26d)];_0x23a243&&this[_0x463f46(0x1a7)][_0x463f46(0x11f)](this[_0x463f46(0x26f)]['id'],_0x23a243,_0x1837b5);}[_0x55d179(0x232)](_0x19febd){const _0xf612f6=_0x55d179;let _0x1e83c6=null,_0x3b91eb=null;this['on'](_0xf612f6(0x151),(_0x56efbb,_0x275ffa,_0x37bfb8)=>{const _0x58c384=_0xf612f6;_0x37bfb8['id']!==_0x1e83c6&&(_0x1e83c6=_0x37bfb8['id'],_0x3b91eb=this[_0x58c384(0x21c)](_0x37bfb8)),_0x19febd(_0x275ffa,_0x3b91eb);});}[_0x55d179(0x21c)](_0x2a7f58){const _0xb8638=_0x55d179,_0x37d192=this[_0xb8638(0xf7)],_0x2d57cd=()=>{const _0x313d7c=_0xb8638;_0x2a7f58[_0x313d7c(0x257)](),_0x2a7f58[_0x313d7c(0x1a1)](),_0x37d192[_0x313d7c(0x1dd)]();},_0xab5c1=()=>{const _0x4f78c2=_0xb8638;_0x2a7f58[_0x4f78c2(0x16c)]&&(_0x2a7f58[_0x4f78c2(0x16c)][_0x4f78c2(0x148)](),_0x2a7f58[_0x4f78c2(0x16c)]=void 0x0);};return{'insertTextReply':(_0x22875b,_0x1c8a60)=>{const _0x3dbf44=_0xb8638;_0xab5c1(),_0x2d57cd();const _0x3a0887=_0x2a7f58[_0x3dbf44(0x16c)]=_0x2a7f58[_0x3dbf44(0x1a3)]({'type':_0x3dbf44(0x263),'interactionId':_0x2a7f58['id'],'content':_0x22875b,'id':_0x1c8a60||_0x4e0318()});return _0xab5c1(),_0x3a0887;},'insertCustomElement':async(_0x2c3880,_0x130af4)=>(_0xab5c1(),_0x2d57cd(),_0x37d192[_0xb8638(0x149)](_0x2c3880,_0x130af4||_0x4e0318())),'setLoadingMessage':_0x584557=>{const _0x15706f=_0xb8638;_0x37d192[_0x15706f(0x16d)](_0x584557);},'clearLoadingMessage':()=>{const _0xb38146=_0xb8638;_0x37d192[_0xb38146(0x1dd)]();}};}}
23
+ const _0x1858dd=_0x5731;(function(_0x5263d6,_0x3f7d21){const _0x542681=_0x5731,_0x46ffd5=_0x5263d6();while(!![]){try{const _0x426ff0=parseInt(_0x542681(0x182))/0x1+-parseInt(_0x542681(0x1cf))/0x2*(parseInt(_0x542681(0x154))/0x3)+-parseInt(_0x542681(0x244))/0x4*(-parseInt(_0x542681(0x258))/0x5)+-parseInt(_0x542681(0x120))/0x6+parseInt(_0x542681(0x164))/0x7+parseInt(_0x542681(0x247))/0x8+-parseInt(_0x542681(0x155))/0x9*(-parseInt(_0x542681(0x1e8))/0xa);if(_0x426ff0===_0x3f7d21)break;else _0x46ffd5['push'](_0x46ffd5['shift']());}catch(_0x4623b8){_0x46ffd5['push'](_0x46ffd5['shift']());}}}(_0x1602,0x49479));import{ContextPlugin as _0x2b2eed,Editor as _0x2e49f1}from'ckeditor5/src/core.js';import{BodyCollection as _0x391435}from'ckeditor5/src/ui.js';import{CKEditorError as _0x58385f,logError as _0x233dba,scrollViewportToShowTarget as _0x531395,uid as _0x989407}from'ckeditor5/src/utils.js';import{AIConnector as _0x5755ad}from'../aicore/aiconnector.js';import{AITabs as _0xbdfbbe}from'../aitabs/aitabs.js';import{AIChatConversation as _0x12c3c9}from'./model/aichatconversation.js';import{getTranslation as _0x3acc4b}from'../aicore/utils/common-translations.js';import{AIModels as _0x13b4c5}from'../aicore/model/aimodels.js';import{getEditorFromContext as _0x5efda0}from'../aicore/utils/geteditorfromcontext.js';function _0x5731(_0x387077,_0x5aaa9c){const _0x160269=_0x1602();return _0x5731=function(_0x573155,_0x4eb6d6){_0x573155=_0x573155-0xd0;let _0x4cc8d4=_0x160269[_0x573155];return _0x4cc8d4;},_0x5731(_0x387077,_0x5aaa9c);}import{DocumentCompare as _0x503be0,DATA_ID_MODEL_ATTRIBUTE as _0x543aba}from'ckeditor5-collaboration/src/collaboration-core.js';import{fixMarkerOperationOldRange as _0x61bb10,getOperationsFromReply as _0x165316}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x1646cf,getMinimalSelection as _0x44f6e2}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x146edd,_DetachOperation as _0x5832fc}from'ckeditor5/src/engine.js';import{findOne as _0x28410a,getAttribute as _0x59e1d5,serialize as _0x448488,Document as _0x5573d5,findByAttribute as _0x27c6fa}from'../aicore/utils/htmlparser.js';function _0x1602(){const _0x5a35b2=['_removeFromContext','anchorId','editors','fetchConversations','$graveyard','marker','updateFeedItemAIReplySources','webSearchFinished','_batchToChanges','outdated','2254044laIJJs','error','ai.models','lastInteraction','getChildren','detachFromDom','type','TrackChanges','_aiChatModels','documentContextContent','TrackChangesEditing','start','reasoningStarted','addFeedItemAIReply','reasoningFinished','_logError','resetMessageInput','selection','sourceId','getChildAtOffset','next','addFeedItemError','addFeedItemStaticMessage','getInteractionAndReplyById','open','AIEditing','ai-chat-context-file-too-large','getRoot','streaming','contextItemAdded','isDisabled','createPositionAt','add','setConversationContext','Undo','upsertAIChatRating','uid','getDocumentContext','done','setContextItemLoading','startAutoScroll','removeSelectionFromChatContext','ai.models.defaultModelId','indexOf','previous','sendMessage','selectedModel','modification','ai-chat-file-upload-failed','context','attachToDom','DocumentCompare','3FpHPOq','280647uvIkis','revert','AI_CHAT_CONTEXT_FILE_TOO_MANY_PAGES','callback','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','getConversation','log','load','addSelectionToChatContext','mapper','plugins','ai-chat-url-upload-failed','ai-no-track-changes','addFeedItemUserMessage','ai-chat-conversation-init-failed','526729MBrJdA','updateConversationTitle','setConversationTitle','from','nextSibling','updateCurrentDocumentInContext','showNext','removeFeedInteraction','createConversation','slice','undo','split','state','rejected','insertSuggestion','getChild','has','document','resize','toggleSuggestionDisplayMode','sourcePosition','_applyOperationsAsSuggestions','getAttribute','_updateReplyContent','_applySuggestion','populateSourceResourceBalloon','executeCustomItemCallback','_aiChatBalloon','setIsMaximized','ai-conversation-','157040ftdwfv','pending','addFeedItemCustomElement','resetWebSearchState','loadSourceResources','getRanges','pluginName','getSelectionText','scrollFeedToSuggestion','ai.chat.context','init','selectModel','_getUserPresentableContentPartDocumentRange','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','ai-chat-conversation-start-failed','ai-chat-context-unsupported-type','interactionStarted','getGroupId','sourceResourcesLoaded','AI_BALLOON_HEADER_TITLE','disableControls','getOperations','findIndex','changeGroups','resources','_insertSuggestion','end','getDiff','ai-chat-controller-mouse-over','interactionCreated','config','enableControls','view','_stopLastInteraction','indexes','replyId','applySuggestion','getContentParts','getFirstRange','requires','_aiChatUi','Liked\x20response','setChangeGroupState','_startConversationSafely','updateContent','accepted','replies','interactionId','ai-chat-context-invalid-data','AI_CHAT_UNABLE_TO_LOAD_CONVERSATION','isPremiumPlugin','startsWith','node','toolDataReceived','activateTab','ai-chat-context-form-data-size-limits-exceeded','addDocumentToContext','activeConversation','createReply','get','interactionFinished','range','getAll','close','setFeedItemAIReplySuggestionPartActive','uiId','commands','query','AIConnector','forEach','createRange','_updateRatings','ai-chat-resource-load-failed','path','addOperation','afterInit','updateResourceState','894670pqDCyI','alignToTop','_rejectSuggestion','focusPromptInput','static','collaboration.channelId','isStarted','rejectSuggestion','showFakeVisualSelection','replyChangeGroupStateUpdated','AI_CHAT_ABORTED_MESSAGE','abortPromptStream','ai.chat.initialConversation','clearLoadingMessage','push','_toggleReasoning','_getAIChatInteractionAPI','_showConversationHistory','version','_getPresentableSiblingContentPartIndex','addContextItem','delete','listenTo','capabilitiesUpdated','destroy','110CuxPaK','length','_handleStartConversation','setState','main','finishInteraction','hasChanges','addSelectionToContext','createPositionFromPath','_flushLastInteractionUI','viewRangeToDom','getTransformedByOperation','_createFromRanges','_registerToolDataCallback','AI_CHAT_INVALID_REQUEST','toString','cloneNode','data-id','AI_CHAT_CONTEXT_INVALID_DATA','root','toViewRange','modelSelected','addCurrentDocumentToContext','setSelectedModel','AITabs','dislike','history','redo','mouseOverSuggestion','resourceId','updateFeedItemAIReplyContent','getConversations','clearConversationContextUI','resetConversationTitle','_integrateEditor','AI_CHAT_GENERIC_ERROR','contextItemRemoved','new','sources','getDocumentData','isLoading','resource','contextSent','contextItem','_getDocumentRangeForReplyChanges','partIndex','closeSourceResourceBalloon','isModelAvailable','_getLastCreatedConversationId','startInteraction','updateCapabilities','_aiChatBalloonShowDiff','prepareLoadingMessage','dialogClosed','addResourceToContext','getPath','AI_CHAT_UNTITLED_CONVERSATION','index','lastCreated','chat','interactionDestroyed','AIChatUI','_aiConnector','addFeedItemAISuggestion','resourceStateChanged','map','updateFeedItemAIReplySuggestionContent','createdAt','resetReasoningState','hideFakeVisualSelection','aiChatBalloon','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','getReply','_currentPreviewedChangeGroup','isOfficialPlugin','updateFeedItemAIReplySuggestionPartState','ai-chat-controller-no-active-conversation','contextItemLoadingEnded','clearPendingContextUI','ai-request-aborted','setLoadingMessage','remove','handleRemovedConversation','addCurrentDocumentToChatContext','resizedTabs','content','ai-chat-missing-channel-id','mouseLeaveSuggestion','ai-chat-context-unsupported-file-type','find','model','_scrollToSuggestionRange','10796LegjQI','startConversation','sendUserMessage','3368072JUDZTy','parse','showPrevious','set','setModel','_setIsMaximized','removeFromContext','removeContextItem','AI_CHAT_RESOURCE_LOAD_FAILED','current-document','setAddContextOptions','isCurrentDocumentInConversation','AI_CHAT_UNABLE_TO_START_CONVERSATION','rootName','addUrlToContext','stopInteraction','bind','235jiZhlG','baseVersion','message','change','_openBalloonFor','toggleLoadingSkeleton','resizeTabs','AI_CHAT_CONTEXT_FILE_TOO_LARGE','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','Disliked\x20response','changes','currentReply','webSearchStarted','filter','messageId','delegate','areActionsDisabled','sessionId','includes','_aiEditing','fetchConversation','ai-chat-source-resources-load-failed','ai-chat-invalid-request','showDiff','addFileToContext','howMany','toggleReasoning','like','_toggleWebSearch','domConverter','contextItems','AIChatBalloon','batch','addContextOptionsChanged','ai-chat-conversation-not-found','AI_CHAT_CONTEXT_UNSUPPORTED_FILE_TYPE','replyCreated','isCurrentDocumentInContext','children','showChangeInText','locale','handleUserInteraction','_bodyCollection','AIChatController','ready','toggleWebSearch','stop','uploadProgressChanged','_handleUIUserMessage','AI_CHAT_CONTEXT_FORM_DATA_SIZE_LIMITS_EXCEEDED','maxOffset','setFeedItemRenderingStrategy','replyContentUpdated','isInContext','text','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','removed','options','conversationInitialized','addFilesToContext','addFeedInteractionHeader','getInteraction','removeSelectionFromContext','isUploadInProgress','editing','isDocumentOperation','source','setIsUploadInProgress','loadConversation','data','ai-chat-context-file-too-many-pages','Showing\x20conversation\x20history...','unshift','applyOperation'];_0x1602=function(){return _0x5a35b2;};return _0x1602();}export class AIChatController extends _0x2b2eed{[_0x1858dd(0xdf)];[_0x1858dd(0x226)];[_0x1858dd(0x1aa)];[_0x1858dd(0x128)];[_0x1858dd(0x17f)];[_0x1858dd(0x11e)]=new Map();[_0x1858dd(0x231)]=null;[_0x1858dd(0xf6)];static get[_0x1858dd(0x1a9)](){return[_0x5755ad,_0x503be0];}static get[_0x1858dd(0x188)](){const _0x2a5ed3=_0x1858dd;return _0x2a5ed3(0xf7);}static get[_0x1858dd(0x232)](){return!0x0;}static get[_0x1858dd(0x1b4)](){return!0x0;}[_0x1858dd(0x18c)](){const _0x1e648c=_0x1858dd;this[_0x1e648c(0xf6)]=new _0x391435(this[_0x1e648c(0x151)][_0x1e648c(0xf4)]),this[_0x1e648c(0xf6)][_0x1e648c(0x152)](),this[_0x1e648c(0x226)]=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0x1c6)),this[_0x1e648c(0x1aa)]=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0x225)),this[_0x1e648c(0xdf)]=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0x139)),this[_0x1e648c(0x128)]=new _0x13b4c5({'connector':this[_0x1e648c(0x226)],'config':this[_0x1e648c(0x151)][_0x1e648c(0x1a0)][_0x1e648c(0x1bd)](_0x1e648c(0x122)),'locale':this[_0x1e648c(0x151)][_0x1e648c(0xf4)]});const _0x29ee4=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0x200));this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x245),()=>{const _0x5a6bb1=_0x1e648c;this[_0x5a6bb1(0x1ad)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x246),(_0x1e6991,_0x15472d)=>{const _0x280bb5=_0x1e648c;this[_0x280bb5(0xfc)]({'userMessage':_0x15472d});}),this[_0x1e648c(0x1e5)](_0x29ee4,_0x1e648c(0x23c),(_0x48822f,_0x2ff7bf)=>{const _0x55f645=_0x1e648c;this[_0x55f645(0x24c)](_0x2ff7bf);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xd2),()=>{const _0x29732f=_0x1e648c;_0x29ee4[_0x29732f(0x176)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x1da),async()=>{const _0x47fc39=_0x1e648c;await this[_0x47fc39(0x1a3)](),await this[_0x47fc39(0x1f1)](),this[_0x47fc39(0x149)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x1ba),()=>{const _0x542752=_0x1e648c;this[_0x542752(0x23b)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xe4),(_0x570e14,_0x3c041c)=>{const _0x1f1dc6=_0x1e648c;this[_0x1f1dc6(0x1bb)]?.[_0x1f1dc6(0x107)](Array[_0x1f1dc6(0x167)](_0x3c041c));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x255),(_0x577369,_0x3c62cc)=>{const _0x3cc6c4=_0x1e648c;this[_0x3cc6c4(0x1bb)]?.[_0x3cc6c4(0x255)](_0x3c62cc);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x17e),(_0x5386be,_0x88827c)=>{const _0x26348c=_0x1e648c;_0x88827c[_0x26348c(0x158)](this[_0x26348c(0x151)]);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x21e),(_0x2df703,_0x2280ec)=>{const _0x40aabe=_0x1e648c;this[_0x40aabe(0x1bb)]?.[_0x40aabe(0x21e)](_0x2280ec[_0x40aabe(0x10e)],_0x2280ec[_0x40aabe(0x211)]);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x24e),(_0x4fe504,_0x597823)=>{const _0x1d2a5a=_0x1e648c;this[_0x1d2a5a(0x116)](_0x597823);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x186),(_0x4dde67,_0xc5b510)=>{const _0x5267c5=_0x1e648c;this[_0x5267c5(0x1bb)]?.[_0x5267c5(0x186)](_0xc5b510[_0x5267c5(0x132)],_0xc5b510[_0x5267c5(0x1c5)],_0xc5b510[_0x5267c5(0x144)]);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xf9),()=>{const _0x31dcb8=_0x1e648c;this[_0x31dcb8(0xe8)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xe6),()=>{const _0x103223=_0x1e648c;this[_0x103223(0x1de)]();}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x18d),(_0x1e0ce2,_0x4daabe)=>{const _0x83ceca=_0x1e648c;this[_0x83ceca(0x1bb)]?.[_0x83ceca(0x24b)](_0x4daabe);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xe7),(_0x51e573,{replyId:_0x37ea0b})=>{const _0x5a9e67=_0x1e648c;console[_0x5a9e67(0x15b)](_0x5a9e67(0x1ab),_0x37ea0b);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x201),(_0x4a4d95,{replyId:_0x1f738d})=>{const _0xd75351=_0x1e648c;console[_0xd75351(0x15b)](_0xd75351(0xd5),_0x1f738d);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x172),(_0x43780b,_0x1f54b7)=>{const _0x43a60c=_0x1e648c;this[_0x43a60c(0x19b)](_0x1f54b7);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0xf3),(_0x164bc6,{replyId:_0x299215,partIndex:_0x521f16})=>{const _0x31932c=_0x1e648c;this[_0x31932c(0x21b)]=this[_0x31932c(0x1aa)][_0x31932c(0xe3)],this[_0x31932c(0xd0)](_0x299215,_0x521f16);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x204),(_0x595cc4,{replyId:_0x2b7a00,partIndex:_0x225fec})=>{const _0x415ff3=_0x1e648c,_0x4b1131=this[_0x415ff3(0x214)](_0x2b7a00,_0x225fec);_0x4b1131&&_0x415ff3(0x11a)!=_0x4b1131[_0x415ff3(0x1bf)][_0x415ff3(0x1fb)][_0x415ff3(0x254)]&&this[_0x415ff3(0xdf)][_0x415ff3(0x1d7)]([_0x4b1131[_0x415ff3(0x1bf)]],_0x415ff3(0x19e));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x23f),()=>{const _0x1717dd=_0x1e648c;this[_0x1717dd(0xdf)][_0x1717dd(0x22d)](_0x1717dd(0x19e));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x1a6),(_0x29d36a,_0x3f0837)=>{const _0x359c18=_0x1e648c;this[_0x359c18(0xdf)][_0x359c18(0x22d)](_0x359c18(0x19e)),this[_0x359c18(0x17c)](_0x3f0837);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x177),async(_0xa41846,{replyId:_0x18152c,showDiff:_0x26f9f0})=>{const _0x2ea180=_0x1e648c,{reply:_0xc9f44a}=this[_0x2ea180(0x137)](_0x18152c),_0x168bdb=_0xc9f44a[_0x2ea180(0x1a7)]({'showDiff':_0x26f9f0});await this[_0x2ea180(0x1aa)][_0x2ea180(0x22a)]({'id':_0xc9f44a['id'],'parts':_0x168bdb,'renderingStrategy':_0x2ea180(0x1d3)});}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x1aa)],_0x1e648c(0x1d6),(_0x37ac6c,{replyId:_0x1a50c7,partIndex:_0x256720})=>{const _0x14a7d3=_0x1e648c;this[_0x14a7d3(0x1d1)]({'replyId':_0x1a50c7,'partIndex':_0x256720}),this[_0x14a7d3(0xdf)][_0x14a7d3(0x22d)](_0x14a7d3(0x19e));}),this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x174)](_0x1e648c(0xeb))&&(this[_0x1e648c(0x17f)]=this[_0x1e648c(0x151)][_0x1e648c(0x15f)][_0x1e648c(0x1bd)](_0x1e648c(0xeb)),this[_0x1e648c(0x24a)](_0x1e648c(0x21b),!0x1),this[_0x1e648c(0x17f)][_0x1e648c(0x257)](_0x1e648c(0xe3))['to'](this,_0x1e648c(0x21b)),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x177),()=>{const _0x9f3fb4=_0x1e648c,{replyId:_0x5cc5d1,partIndex:_0x1d2315}=this[_0x9f3fb4(0x231)];this[_0x9f3fb4(0x21b)]=!this[_0x9f3fb4(0x21b)];const {reply:_0x58f5fa}=this[_0x9f3fb4(0x137)](_0x5cc5d1),_0x27cde5=_0x58f5fa[_0x9f3fb4(0x1a7)]({'showDiff':this[_0x9f3fb4(0x21b)],'groupIndex':_0x1d2315});this[_0x9f3fb4(0x17f)][_0x9f3fb4(0x1ae)]({'part':_0x27cde5[0x0],'renderingStrategy':_0x9f3fb4(0x1d3),'keepErrors':!0x0});}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x1a6),()=>{const _0x1a7674=_0x1e648c,{replyId:_0x541cb2,partIndex:_0x52634e}=this[_0x1a7674(0x231)];this[_0x1a7674(0x17c)]({'replyId':_0x541cb2,'partIndex':_0x52634e}),this[_0x1a7674(0x17f)][_0x1a7674(0x1eb)](_0x1a7674(0x1af));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x172),()=>{const _0x360928=_0x1e648c,{replyId:_0x44e272,partIndex:_0xd42d7d}=this[_0x360928(0x231)];this[_0x360928(0x19b)]({'replyId':_0x44e272,'partIndex':_0xd42d7d}),this[_0x360928(0x17f)][_0x360928(0x1eb)](_0x360928(0x1af));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x1d6),()=>{const _0x3b99a4=_0x1e648c,{replyId:_0x1140f5,partIndex:_0x43c592}=this[_0x3b99a4(0x231)];this[_0x3b99a4(0x1d1)]({'replyId':_0x1140f5,'partIndex':_0x43c592}),this[_0x3b99a4(0x17f)][_0x3b99a4(0x1eb)](_0x3b99a4(0x171));}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x16a),()=>{const _0x4baec4=_0x1e648c,{replyId:_0x31e74f,partIndex:_0x402886}=this[_0x4baec4(0x231)],_0xced8d=this[_0x4baec4(0x1e2)](_0x31e74f,_0x402886,_0x4baec4(0x134));null!==_0xced8d&&this[_0x4baec4(0xd0)](_0x31e74f,_0xced8d);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x249),()=>{const _0xea9647=_0x1e648c,{replyId:_0x1170a2,partIndex:_0x405466}=this[_0xea9647(0x231)],_0x4f994b=this[_0xea9647(0x1e2)](_0x1170a2,_0x405466,_0xea9647(0x14c));null!==_0x4f994b&&this[_0xea9647(0xd0)](_0x1170a2,_0x4f994b);}),this[_0x1e648c(0x1e5)](this[_0x1e648c(0x17f)],_0x1e648c(0x21d),(_0x1cf533,{id:_0x3a55cb})=>{const _0xfc83a9=_0x1e648c;if(_0xfc83a9(0x22e)!==_0x3a55cb)return;const {replyId:_0x262aa0,partIndex:_0x469f8a}=this[_0xfc83a9(0x231)];this[_0xfc83a9(0x231)]=null,this[_0xfc83a9(0x1aa)][_0xfc83a9(0x1c2)]({'id':_0x262aa0,'index':_0x469f8a,'isActive':!0x1});}));}async[_0x1858dd(0x1cd)](){const _0x48b834=_0x1858dd;this[_0x48b834(0x151)]instanceof _0x2e49f1?this[_0x48b834(0x20a)](this[_0x48b834(0x151)]):this[_0x48b834(0x1e5)](this[_0x48b834(0x151)][_0x48b834(0x118)],_0x48b834(0x140),(_0x359609,_0x3f43c7)=>{const _0x5b3a9c=_0x48b834;_0x3f43c7['on'](_0x5b3a9c(0xf8),()=>{const _0x456b53=_0x5b3a9c;this[_0x456b53(0x20a)](_0x3f43c7);});});const _0x138cfe=this[_0x48b834(0x151)][_0x48b834(0x1a0)][_0x48b834(0x1bd)](_0x48b834(0x1db));let _0x87737c=_0x138cfe;if(_0x48b834(0x222)!=_0x138cfe||(_0x87737c=await this[_0x48b834(0x218)](),_0x87737c))return _0x48b834(0x20d)==_0x87737c?this[_0x48b834(0x1ad)]():this[_0x48b834(0x110)](_0x87737c);}async[_0x1858dd(0x1e7)](){const _0x2a1c04=_0x1858dd;return await this[_0x2a1c04(0x1a3)](),this[_0x2a1c04(0xf6)][_0x2a1c04(0x125)](),super[_0x2a1c04(0x1e7)]();}[_0x1858dd(0x19b)](_0xb6b143){const _0x4d8726=_0x1858dd,_0x47e281=_0x5efda0(this[_0x4d8726(0x151)]);if(!_0x47e281[_0x4d8726(0x15f)][_0x4d8726(0x174)](_0x4d8726(0x127)))throw new _0x58385f(_0x4d8726(0x161),null);const _0xecef08=this[_0x4d8726(0x151)][_0x4d8726(0x15f)][_0x4d8726(0x1bd)](_0x4d8726(0x153)),{reply:_0x5a77ad,interaction:_0x594cdd}=this[_0x4d8726(0x137)](_0xb6b143[_0x4d8726(0x1a5)]),_0x1be0f9=this[_0x4d8726(0x214)](_0xb6b143[_0x4d8726(0x1a5)],_0xb6b143[_0x4d8726(0x215)]),_0x2bda3c=void 0x0!==_0xb6b143[_0x4d8726(0x215)]?[_0x5a77ad[_0x4d8726(0x199)][_0xb6b143[_0x4d8726(0x215)]]]:_0x5a77ad[_0x4d8726(0x199)][_0x4d8726(0xd9)](_0x161239=>_0x4d8726(0x183)==_0x161239[_0x4d8726(0x170)]),_0x354372=_0x2bda3c[_0x4d8726(0x229)](_0x539061=>_0x5a77ad[_0x4d8726(0x199)][_0x4d8726(0x14b)](_0x539061));if(!_0x1be0f9||_0x4d8726(0x11a)==_0x1be0f9[_0x4d8726(0x1bf)][_0x4d8726(0x1fb)][_0x4d8726(0x254)])return void _0x354372[_0x4d8726(0x1c7)](_0x2eedd9=>_0x5a77ad[_0x4d8726(0x1ac)](_0x2eedd9,_0x4d8726(0x11f)));_0x354372[_0x4d8726(0x1c7)](_0x2ff93e=>_0x5a77ad[_0x4d8726(0x1ac)](_0x2ff93e,_0x4d8726(0x1af)));const _0xe4830f=_0x165316({'editor':_0x47e281,'reply':_0x5a77ad,'interaction':_0x594cdd,'groups':_0x2bda3c,'transform':!0x0,'documentCompare':_0xecef08,'documentCompareOptions':{'anchor':_0x4d8726(0x1ec),'markDeletions':!0x0}});let _0x50ded2;_0x1be0f9&&this[_0x4d8726(0x243)](_0x1be0f9[_0x4d8726(0x1bf)]),_0x47e281[_0x4d8726(0x242)][_0x4d8726(0x25b)](_0x19eb67=>{const _0x5dd9f7=_0x4d8726;_0x50ded2=_0x19eb67[_0x5dd9f7(0xec)],_0x47e281[_0x5dd9f7(0x15f)][_0x5dd9f7(0x1bd)](_0x5dd9f7(0x12a))[_0x5dd9f7(0x179)](_0xe4830f),this[_0x5dd9f7(0xdf)][_0x5dd9f7(0x22d)](_0x5dd9f7(0x19e));}),this[_0x4d8726(0x11e)][_0x4d8726(0x24a)](_0x50ded2,{'interactionId':_0x594cdd['id'],'replyId':_0x5a77ad['id'],'indexes':_0x354372[_0x4d8726(0x16d)]()}),this[_0x4d8726(0x1c9)](_0x5a77ad);}[_0x1858dd(0x17c)](_0x367c83){const _0x486837=_0x1858dd,_0x4920dd=_0x5efda0(this[_0x486837(0x151)]),_0xc1f704=this[_0x486837(0x151)][_0x486837(0x15f)][_0x486837(0x1bd)](_0x503be0),{reply:_0x288761,interaction:_0x2fdc25}=this[_0x486837(0x137)](_0x367c83[_0x486837(0x1a5)]),_0x35b43a=this[_0x486837(0x214)](_0x367c83[_0x486837(0x1a5)],_0x367c83[_0x486837(0x215)]),_0x32c3f0=void 0x0!==_0x367c83[_0x486837(0x215)]?[_0x288761[_0x486837(0x199)][_0x367c83[_0x486837(0x215)]]]:_0x288761[_0x486837(0x199)][_0x486837(0xd9)](_0xe6fe63=>_0x486837(0x183)==_0xe6fe63[_0x486837(0x170)]),_0xd508c4=_0x32c3f0[_0x486837(0x229)](_0x70983c=>_0x288761[_0x486837(0x199)][_0x486837(0x14b)](_0x70983c));if(!_0x35b43a||_0x486837(0x11a)==_0x35b43a[_0x486837(0x1bf)][_0x486837(0x1fb)][_0x486837(0x254)])return void _0xd508c4[_0x486837(0x1c7)](_0x1f7c14=>_0x288761[_0x486837(0x1ac)](_0x1f7c14,_0x486837(0x11f)));_0xd508c4[_0x486837(0x1c7)](_0x2946a3=>_0x288761[_0x486837(0x1ac)](_0x2946a3,_0x486837(0x1af)));const _0x44c0e2=_0x165316({'editor':_0x4920dd,'reply':_0x288761,'interaction':_0x2fdc25,'groups':_0x32c3f0,'transform':!0x0,'documentCompare':_0xc1f704,'documentCompareOptions':{'anchor':_0x486837(0x1ec),'markDeletions':!0x1}});let _0x12a61d;_0x35b43a&&this[_0x486837(0x243)](_0x35b43a[_0x486837(0x1bf)]),_0x4920dd[_0x486837(0x242)][_0x486837(0x25b)](_0x1a27c9=>{const _0x2e930a=_0x486837;_0x12a61d=_0x1a27c9[_0x2e930a(0xec)];for(const _0x1f6ded of _0x44c0e2)_0x1f6ded[_0x2e930a(0x259)]=_0x4920dd[_0x2e930a(0x242)][_0x2e930a(0x175)][_0x2e930a(0x1e1)],_0x61bb10(_0x4920dd,_0x1f6ded),_0x1a27c9[_0x2e930a(0xec)][_0x2e930a(0x1cc)](_0x1f6ded),_0x4920dd[_0x2e930a(0x242)][_0x2e930a(0x115)](_0x1f6ded);}),this[_0x486837(0x11e)][_0x486837(0x24a)](_0x12a61d,{'interactionId':_0x2fdc25['id'],'replyId':_0x288761['id'],'indexes':_0xd508c4[_0x486837(0x16d)]()}),this[_0x486837(0x1c9)](_0x288761);}[_0x1858dd(0x1d1)](_0x86cb16){const _0x43d2d3=_0x1858dd,{reply:_0x20e748}=this[_0x43d2d3(0x137)](_0x86cb16[_0x43d2d3(0x1a5)]);_0x20e748[_0x43d2d3(0x1ac)](_0x86cb16[_0x43d2d3(0x215)],_0x43d2d3(0x171));}[_0x1858dd(0xd0)](_0x161a4a,_0x3db9f4){const _0x35ccc6=_0x1858dd;if(!this[_0x35ccc6(0x17f)])return;const {reply:_0x341f81}=this[_0x35ccc6(0x137)](_0x161a4a),_0x10eeef=_0x341f81[_0x35ccc6(0x1a7)]({'showDiff':this[_0x35ccc6(0x21b)]});let _0x3ed7cc,_0x4b019e;if(void 0x0!==_0x3db9f4?(_0x4b019e=_0x10eeef[_0x35ccc6(0x241)](_0x423e6b=>_0x423e6b[_0x35ccc6(0x221)]==_0x3db9f4),_0x3ed7cc=_0x4b019e?.[_0x35ccc6(0x221)]):(_0x4b019e=_0x10eeef[0x0],_0x3ed7cc=_0x4b019e[_0x35ccc6(0x221)]),this[_0x35ccc6(0x231)]?.[_0x35ccc6(0x1a5)]==_0x161a4a&&this[_0x35ccc6(0x231)]?.[_0x35ccc6(0x215)]==_0x3ed7cc)return;const _0x8600f=this[_0x35ccc6(0x18e)](_0x161a4a,_0x341f81,_0x4b019e);if(!_0x8600f)return void this[_0x35ccc6(0x17f)][_0x35ccc6(0x1c1)]();this[_0x35ccc6(0x231)]={'replyId':_0x161a4a,'partIndex':_0x3ed7cc},this[_0x35ccc6(0x243)](_0x8600f,!0x0);const _0x4aa185=this[_0x35ccc6(0x1e2)](_0x161a4a,_0x3ed7cc,_0x35ccc6(0x134));this[_0x35ccc6(0x17f)][_0x35ccc6(0x1ae)]({'part':_0x4b019e,'renderingStrategy':_0x35ccc6(0x1d3)}),this[_0x35ccc6(0x17f)][_0x35ccc6(0x138)]({'index':_0x3ed7cc,'title':_0x3acc4b(this[_0x35ccc6(0x151)][_0x35ccc6(0xf4)],_0x35ccc6(0x195),(_0x3ed7cc+0x1)[_0x35ccc6(0x1f7)]()),'showRotator':null!==_0x4aa185,'ranges':[_0x8600f],'areActionsDisabled':_0x341f81[_0x35ccc6(0xdc)]}),this[_0x35ccc6(0x17f)][_0x35ccc6(0x1eb)](_0x35ccc6(0x183)),this[_0x35ccc6(0x1aa)][_0x35ccc6(0x18a)](_0x161a4a,_0x3ed7cc),this[_0x35ccc6(0x1aa)][_0x35ccc6(0x1c2)]({'id':_0x161a4a,'index':_0x3ed7cc,'isActive':!0x0});}[_0x1858dd(0x1e2)](_0x3f37c8,_0xc82857,_0x4fa1f4){const _0x2f83b6=_0x1858dd,{reply:_0x1c476b}=this[_0x2f83b6(0x137)](_0x3f37c8),_0x3488e3=_0x1c476b[_0x2f83b6(0x1a7)]({'showDiff':this[_0x2f83b6(0x21b)]});if(0x1==_0x3488e3[_0x2f83b6(0x1e9)])return null;const _0x359938=_0x3488e3[_0x2f83b6(0x198)](_0x5d8222=>_0x5d8222[_0x2f83b6(0x221)]==_0xc82857),_0x54ac0e=_0x2f83b6(0x134)==_0x4fa1f4?0x1:-0x1;let _0x1bb28c=_0x3488e3['at']((_0x359938+_0x54ac0e)%_0x3488e3[_0x2f83b6(0x1e9)])[_0x2f83b6(0x221)],_0x11b6f8=_0x3488e3[_0x1bb28c];for(;!this[_0x2f83b6(0x18e)](_0x3f37c8,_0x1c476b,_0x11b6f8);){if(_0x1bb28c=_0x3488e3['at']((_0x1bb28c+_0x54ac0e)%_0x3488e3[_0x2f83b6(0x1e9)])[_0x2f83b6(0x221)],_0x1bb28c===_0x359938)return null;_0x11b6f8=_0x3488e3[_0x1bb28c];}return _0x1bb28c;}[_0x1858dd(0x18e)](_0x33ec50,_0x46061c,_0x6d85df){const _0x13c3cc=_0x1858dd,_0x28e5f7=_0x46061c[_0x13c3cc(0x199)];if(!_0x6d85df[_0x13c3cc(0x1ee)])return null;const _0x5eed46=_0x28e5f7[_0x13c3cc(0x241)](_0x2aac05=>_0x2aac05[_0x13c3cc(0x221)]==_0x6d85df[_0x13c3cc(0x221)]);if(_0x13c3cc(0x183)!==_0x5eed46?.[_0x13c3cc(0x170)])return null;const _0x250e30=this[_0x13c3cc(0x214)](_0x33ec50,_0x6d85df[_0x13c3cc(0x221)]);if(!_0x250e30)return null;const {range:_0xd591b1,currentIndex:_0x4fdf1b}=_0x250e30;return _0x13c3cc(0x11a)==_0xd591b1[_0x13c3cc(0x1fb)][_0x13c3cc(0x254)]?(_0x46061c[_0x13c3cc(0x1ac)](_0x4fdf1b,_0x13c3cc(0x11f)),null):_0x250e30[_0x13c3cc(0x1bf)];}[_0x1858dd(0x214)](_0x190da6,_0x544673){const _0x32ac3c=_0x1858dd,_0x5decc9=_0x5efda0(this[_0x32ac3c(0x151)]),{reply:_0x129162,interaction:_0x1d0324}=this[_0x32ac3c(0x137)](_0x190da6),_0x374c77=_0x129162[_0x32ac3c(0x199)][_0x32ac3c(0xd9)](_0x17874=>_0x32ac3c(0x183)==_0x17874[_0x32ac3c(0x170)]),_0xb18853=_0x374c77[_0x32ac3c(0x229)](_0x3019aa=>_0x129162[_0x32ac3c(0x199)][_0x32ac3c(0x14b)](_0x3019aa));void 0x0===_0x544673&&(_0x544673=_0xb18853[0x0]);const _0x308354=_0xb18853[_0x32ac3c(0x14b)](_0x544673);if(-0x1==_0x308354)return null;const _0x26410e=_0x374c77[_0x308354],_0x27a03e=new _0x5573d5([]),_0x5b5481=new _0x5573d5([]);for(const _0x5833c9 of _0x26410e[_0x32ac3c(0xd6)])if(_0x32ac3c(0x104)!=_0x5833c9[_0x32ac3c(0x126)]&&_0x5b5481[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x5833c9[_0x32ac3c(0x1b6)][_0x32ac3c(0x1f8)](!0x0)),_0x32ac3c(0x20d)!=_0x5833c9[_0x32ac3c(0x126)]){const _0x38f192=_0x28410a(_0x2d47e6=>_0x59e1d5(_0x2d47e6,_0x32ac3c(0x1f9))==_0x5833c9['id'],_0x129162[_0x32ac3c(0x129)],!0x0);_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x38f192[_0x32ac3c(0x1f8)](!0x0));}if(0x0==_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x1e9)]){if(_0x26410e[_0x32ac3c(0xd6)][0x0][_0x32ac3c(0x117)]){const _0x33afce=_0x27c6fa(_0x32ac3c(0x1f9),_0x26410e[_0x32ac3c(0xd6)][0x0][_0x32ac3c(0x117)],_0x129162[_0x32ac3c(0x129)]);_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x114)](_0x33afce[_0x32ac3c(0x1f8)](!0x0)),_0x5b5481[_0x32ac3c(0xf2)][_0x32ac3c(0x114)](_0x33afce[_0x32ac3c(0x1f8)](!0x0)),_0x33afce[_0x32ac3c(0x168)]&&(_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x33afce[_0x32ac3c(0x168)][_0x32ac3c(0x1f8)](!0x0)),_0x5b5481[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x33afce[_0x32ac3c(0x168)][_0x32ac3c(0x1f8)](!0x0)));}else{const _0x4bcd6f=_0x129162[_0x32ac3c(0x129)][_0x32ac3c(0xf2)][0x0];if(!_0x4bcd6f)return null;_0x27a03e[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x4bcd6f[_0x32ac3c(0x1f8)](!0x0)),_0x5b5481[_0x32ac3c(0xf2)][_0x32ac3c(0x1dd)](_0x4bcd6f[_0x32ac3c(0x1f8)](!0x0));}}const _0x2cf6cb=_0x1d0324[_0x32ac3c(0x145)](),_0x328e74=_0x5decc9[_0x32ac3c(0x111)][_0x32ac3c(0x248)](_0x2cf6cb[_0x32ac3c(0x23d)]),_0xf309f3=_0x448488(_0x27a03e),_0x389259=_0x5decc9[_0x32ac3c(0x111)][_0x32ac3c(0x248)](_0xf309f3),_0x3db5a1=_0x5decc9[_0x32ac3c(0x111)][_0x32ac3c(0x248)](_0xf309f3),_0x415810=_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x13f)](_0x389259,0x0),_0x1e86c2=_0x448488(_0x5b5481),_0x12afe4={'anchor':_0x415810,'markDeletions':!0x1},_0x60566f=_0x5decc9[_0x32ac3c(0x15f)][_0x32ac3c(0x1bd)](_0x503be0)[_0x32ac3c(0x19d)](_0xf309f3,_0x1e86c2,_0x12afe4)[_0x32ac3c(0x197)]();if(!_0x60566f[_0x32ac3c(0x1e9)])return null;_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x25b)](_0x152de1=>{const _0x1bd9d3=_0x32ac3c;for(const _0x135a95 of _0x60566f)if(_0x1bd9d3(0x239)==_0x135a95[_0x1bd9d3(0x126)]){const _0x1cffe4=_0x135a95[_0x1bd9d3(0x178)],_0x50e405=_0x135a95[_0x1bd9d3(0xe5)],_0x45f27c=new _0x5832fc(_0x1cffe4,_0x50e405);_0x152de1[_0x1bd9d3(0xec)][_0x1bd9d3(0x1cc)](_0x45f27c),_0x5decc9[_0x1bd9d3(0x242)][_0x1bd9d3(0x115)](_0x45f27c);}else _0x1bd9d3(0x11b)!==_0x135a95[_0x1bd9d3(0x126)]&&(_0x135a95[_0x1bd9d3(0x259)]=null,_0x135a95[_0x1bd9d3(0x10d)]=!0x1,_0x152de1[_0x1bd9d3(0xec)][_0x1bd9d3(0x1cc)](_0x135a95),_0x5decc9[_0x1bd9d3(0x242)][_0x1bd9d3(0x115)](_0x135a95));});const _0x266993=_0x44f6e2(_0x5decc9,_0x60566f,_0x389259);_0x1646cf(_0x5decc9[_0x32ac3c(0x242)],_0x266993);const _0x4884cc=_0x266993[_0x32ac3c(0x1a8)]()[_0x32ac3c(0x12b)][_0x32ac3c(0x1cb)][_0x32ac3c(0x16d)](),_0x45c534=_0x266993[_0x32ac3c(0x1a8)]()[_0x32ac3c(0x19c)][_0x32ac3c(0x1cb)][_0x32ac3c(0x16d)](),_0x57c69d=[];let _0x422215=_0x389259,_0x33b0e6=_0x3db5a1;for(let _0x24c122=0x0;_0x24c122<_0x45c534[_0x32ac3c(0x1e9)];_0x24c122++){const _0x458e85=_0x422215[_0x32ac3c(0xfe)]-_0x45c534[_0x24c122];_0x57c69d[_0x24c122]=_0x33b0e6[_0x32ac3c(0xfe)]-_0x458e85,_0x422215=_0x422215[_0x32ac3c(0x133)](_0x45c534[_0x24c122]),_0x33b0e6=_0x33b0e6[_0x32ac3c(0x133)](_0x57c69d[_0x24c122]);}const _0x2799b7=_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1c8)](_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1f0)](_0x3db5a1,_0x4884cc),_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1f0)](_0x3db5a1,_0x57c69d)),_0x36baa6=_0x3db5a1[_0x32ac3c(0x173)](0x0)[_0x32ac3c(0x17a)](_0x543aba),_0x388e62=Array[_0x32ac3c(0x167)](_0x328e74[_0x32ac3c(0x124)]())[_0x32ac3c(0x241)](_0x52ef7d=>_0x52ef7d[_0x32ac3c(0x17a)](_0x543aba)==_0x36baa6)[_0x32ac3c(0x21f)](),_0x2a7fa8=_0x2799b7[_0x32ac3c(0x12b)][_0x32ac3c(0x1cb)][_0x32ac3c(0x16d)](),_0x147663=_0x2799b7[_0x32ac3c(0x19c)][_0x32ac3c(0x1cb)][_0x32ac3c(0x16d)]();_0x2a7fa8[0x0]=_0x388e62[0x0]+_0x2a7fa8[0x0],_0x147663[0x0]=_0x388e62[0x0]+_0x147663[0x0];let _0x62f6a8=_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1c8)](_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1f0)](_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x175)][_0x32ac3c(0x13b)](),_0x2a7fa8),_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x1f0)](_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x175)][_0x32ac3c(0x13b)](),_0x147663));const _0x222413=_0x5decc9[_0x32ac3c(0x242)][_0x32ac3c(0x175)][_0x32ac3c(0x202)][_0x32ac3c(0x197)](_0x2cf6cb[_0x32ac3c(0x1e1)]);for(const _0x39f071 of _0x222413)_0x62f6a8=_0x146edd[_0x32ac3c(0x1f4)](_0x62f6a8[_0x32ac3c(0x1f3)](_0x39f071));return{'range':_0x62f6a8,'currentIndex':_0x544673};}[_0x1858dd(0x20a)](_0xe4be25){const _0x3be595=_0x1858dd;if(!_0xe4be25[_0x3be595(0x15f)][_0x3be595(0x174)](_0x3be595(0x142)))return;const _0x57466=_0xe4be25[_0x3be595(0x1c4)][_0x3be595(0x1bd)](_0x3be595(0x16e)),_0x3031ef=_0xe4be25[_0x3be595(0x1c4)][_0x3be595(0x1bd)](_0x3be595(0x203));this[_0x3be595(0x1e5)](_0x57466,_0x3be595(0x156),(_0x462f22,_0x33cb0c,_0x173b27)=>{const _0x106418=_0x3be595,_0xffbd7e=this[_0x106418(0x11e)][_0x106418(0x1bd)](_0x33cb0c);if(!_0xffbd7e)return;const _0x52f212=this[_0x106418(0x1bb)][_0x106418(0x109)](_0xffbd7e[_0x106418(0x1b1)])[_0x106418(0x230)](_0xffbd7e[_0x106418(0x1a5)]);_0xffbd7e[_0x106418(0x1a4)][_0x106418(0x1c7)](_0x2c4181=>_0x52f212[_0x106418(0x1ac)](_0x2c4181,_0x106418(0x183))),this[_0x106418(0x11e)][_0x106418(0x1e4)](_0x33cb0c),this[_0x106418(0x11e)][_0x106418(0x24a)](_0x173b27,_0xffbd7e);}),this[_0x3be595(0x1e5)](_0x3031ef,_0x3be595(0x156),(_0x3c5f80,_0x2028e3,_0x3929c7)=>{const _0x5d735f=_0x3be595,_0xc5d6e4=this[_0x5d735f(0x11e)][_0x5d735f(0x1bd)](_0x2028e3);if(!_0xc5d6e4)return;const _0xc0d2cd=this[_0x5d735f(0x1bb)][_0x5d735f(0x109)](_0xc5d6e4[_0x5d735f(0x1b1)])[_0x5d735f(0x230)](_0xc5d6e4[_0x5d735f(0x1a5)]);_0xc5d6e4[_0x5d735f(0x1a4)][_0x5d735f(0x1c7)](_0x1e795a=>_0xc0d2cd[_0x5d735f(0x1ac)](_0x1e795a,_0x5d735f(0x1af))),this[_0x5d735f(0x11e)][_0x5d735f(0x1e4)](_0x2028e3),this[_0x5d735f(0x11e)][_0x5d735f(0x24a)](_0x3929c7,_0xc5d6e4);});}async[_0x1858dd(0x110)](_0x1bf12f){const _0x17bfaf=_0x1858dd;this[_0x17bfaf(0x151)][_0x17bfaf(0x15f)][_0x17bfaf(0x174)](_0x17bfaf(0xeb))&&this[_0x17bfaf(0x151)][_0x17bfaf(0x15f)][_0x17bfaf(0x1bd)](_0x17bfaf(0xeb))[_0x17bfaf(0x1c1)](),(this[_0x17bfaf(0x151)][_0x17bfaf(0x15f)][_0x17bfaf(0x1bd)](_0xbdfbbe)[_0x17bfaf(0x1a2)][_0x17bfaf(0x1b8)](_0x17bfaf(0x223)),this[_0x17bfaf(0x1aa)][_0x17bfaf(0xff)](_0x17bfaf(0x1d3)),this[_0x17bfaf(0x1aa)][_0x17bfaf(0xd1)](!0x0),await this[_0x17bfaf(0x1a3)]());try{await this[_0x17bfaf(0x226)][_0x17bfaf(0xe0)](_0x1bf12f)[_0x17bfaf(0x15a)](),await this[_0x17bfaf(0x1ad)](_0x1bf12f),this[_0x17bfaf(0x165)]('\x20'),await this[_0x17bfaf(0x1bb)][_0x17bfaf(0x15c)](_0x1bf12f,this[_0x17bfaf(0xdf)][_0x17bfaf(0xdd)]),this[_0x17bfaf(0x1bb)][_0x17bfaf(0x252)]()&&this[_0x17bfaf(0x23b)]();}catch(_0x3194ff){this[_0x17bfaf(0x1aa)][_0x17bfaf(0x135)]({'errorMessage':_0x3acc4b(this[_0x17bfaf(0x151)][_0x17bfaf(0xf4)],_0x17bfaf(0x1b3)),'id':_0x1bf12f}),this[_0x17bfaf(0x12f)](new _0x58385f(_0x17bfaf(0xee),this,{'error':_0x3194ff}));}finally{this[_0x17bfaf(0x1aa)][_0x17bfaf(0x148)](),this[_0x17bfaf(0x1aa)][_0x17bfaf(0xff)](_0x17bfaf(0x13c)),this[_0x17bfaf(0x1aa)][_0x17bfaf(0xd1)](!0x1);}}async[_0x1858dd(0x218)](){const _0x16fa86=_0x1858dd,_0x4be18d=this[_0x16fa86(0x226)][_0x16fa86(0x119)](this[_0x16fa86(0x193)](),{'limit':0x1,'sortBy':_0x16fa86(0x22b)});try{const _0x2da99b=await _0x4be18d[_0x16fa86(0x207)]();return _0x2da99b[_0x16fa86(0x1e9)]?_0x2da99b[0x0]['id']:_0x16fa86(0x20d);}catch(_0x21b45c){return this[_0x16fa86(0x1aa)][_0x16fa86(0x135)]({'errorMessage':_0x3acc4b(this[_0x16fa86(0x151)][_0x16fa86(0xf4)],_0x16fa86(0x1b3)),'id':_0x989407()}),this[_0x16fa86(0x12f)](new _0x58385f(_0x16fa86(0x163),this,{'error':_0x21b45c})),this[_0x16fa86(0x1aa)][_0x16fa86(0xd1)](!0x1),this[_0x16fa86(0x1aa)][_0x16fa86(0x196)](),null;}}[_0x1858dd(0x23a)](_0x55f6d7){const _0x3ebac3=_0x1858dd;this[_0x3ebac3(0x1bb)]['id']===_0x55f6d7&&this[_0x3ebac3(0x1ad)]();}[_0x1858dd(0x23b)](){const _0x40c591=_0x1858dd;this[_0x40c591(0x1bb)]?.[_0x40c591(0x1fe)](_0x3acc4b(this[_0x40c591(0x151)][_0x40c591(0xf4)],_0x40c591(0x103)));}async[_0x1858dd(0x15d)](){const _0x2fbb62=_0x1858dd,_0x3446fb=this[_0x2fbb62(0xdf)][_0x2fbb62(0x189)]();this[_0x2fbb62(0x1bb)]?.[_0x2fbb62(0x1ef)](_0x3446fb),this[_0x2fbb62(0x23b)]();}[_0x1858dd(0x149)](){const _0x39af6f=_0x1858dd;this[_0x39af6f(0x1bb)]?.[_0x39af6f(0x10a)]();}[_0x1858dd(0x1d2)](){const _0x2e0a36=_0x1858dd;this[_0x2e0a36(0x1aa)][_0x2e0a36(0x1d2)]();}async[_0x1858dd(0x245)](){const _0x1113ce=_0x1858dd;await this[_0x1113ce(0x1ad)]();}async[_0x1858dd(0x14d)]({message:_0x27acf3,attributes:_0x452539}){const _0x12707e=_0x1858dd;await this[_0x12707e(0xfc)]({'userMessage':_0x27acf3,'attributes':_0x452539});}[_0x1858dd(0x193)](){const _0x458c65=_0x1858dd,_0x515b5d=this[_0x458c65(0x151)][_0x458c65(0x1a0)][_0x458c65(0x1bd)](_0x458c65(0x1d4));if(!_0x515b5d)throw new _0x58385f(_0x458c65(0x23e),this);return _0x515b5d;}async[_0x1858dd(0x1ad)](_0x5ab6a3){const _0x1ff9f6=_0x1858dd;try{this[_0x1ff9f6(0x1aa)][_0x1ff9f6(0x1a1)](),await this[_0x1ff9f6(0x1ea)](_0x5ab6a3);}catch(_0x242eff){this[_0x1ff9f6(0x1aa)][_0x1ff9f6(0x135)]({'errorMessage':_0x3acc4b(this[_0x1ff9f6(0x151)][_0x1ff9f6(0xf4)],_0x1ff9f6(0x253)),'id':_0x5ab6a3||_0x989407()}),console[_0x1ff9f6(0x121)](_0x242eff),this[_0x1ff9f6(0x1bb)]=void 0x0,this[_0x1ff9f6(0x1aa)][_0x1ff9f6(0x196)]();}}async[_0x1858dd(0x1ea)](_0x21d968){const _0x2ae7b6=_0x1858dd;let _0x293c1c;this[_0x2ae7b6(0x151)][_0x2ae7b6(0x15f)][_0x2ae7b6(0x174)](_0x2ae7b6(0xeb))&&this[_0x2ae7b6(0x151)][_0x2ae7b6(0x15f)][_0x2ae7b6(0x1bd)](_0x2ae7b6(0xeb))[_0x2ae7b6(0x1c1)](),_0x21d968||!this[_0x2ae7b6(0x1bb)]?_0x293c1c=this[_0x2ae7b6(0x151)][_0x2ae7b6(0x1a0)][_0x2ae7b6(0x1bd)](_0x2ae7b6(0x14a)):this[_0x2ae7b6(0x1aa)][_0x2ae7b6(0x217)]&&(_0x293c1c=this[_0x2ae7b6(0x1bb)][_0x2ae7b6(0x14e)]['id']),await this[_0x2ae7b6(0x1a3)]();const _0x6e2f31=this[_0x2ae7b6(0x193)](),_0xd14718=_0x21d968||_0x989407();this[_0x2ae7b6(0x1bb)]=new _0x12c3c9({'connector':this[_0x2ae7b6(0x226)],'chatModels':this[_0x2ae7b6(0x128)],'selectedModelId':_0x293c1c,'conversationId':_0xd14718,'group':_0x6e2f31,'getEditor':()=>_0x5efda0(this[_0x2ae7b6(0x151)]),'isFromHistory':!!_0x21d968}),this[_0x2ae7b6(0x1bb)][_0x2ae7b6(0xdb)](_0x2ae7b6(0x1b7),_0x2ae7b6(0x192))['to'](this),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x106),(_0x2e395b,_0x4b7d5d)=>{const _0x500a5d=_0x2ae7b6;this[_0x500a5d(0x1aa)][_0x500a5d(0x16c)](_0x4b7d5d),this[_0x500a5d(0x1aa)][_0x500a5d(0x130)](),this[_0x500a5d(0x1aa)][_0x500a5d(0x236)](),this[_0x500a5d(0x1aa)][_0x500a5d(0x208)](),_0x21d968||(this[_0x500a5d(0x1aa)][_0x500a5d(0x209)](),this[_0x500a5d(0x23b)]());}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0xfb),(_0x221a84,_0x253119)=>{const _0x383a6a=_0x2ae7b6;this[_0x383a6a(0x1aa)][_0x383a6a(0x10f)](_0x253119[_0x383a6a(0x10b)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x19f),(_0x2b913f,_0x14c5be)=>{const _0x33640d=_0x2ae7b6;this[_0x33640d(0x1aa)][_0x33640d(0x162)](_0x14c5be);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0xd8),()=>{const _0x10d617=_0x2ae7b6,_0x2ba57a=this[_0x10d617(0x1aa)][_0x10d617(0x21c)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});this[_0x10d617(0x1aa)][_0x10d617(0x238)](_0x2ba57a);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x12c),()=>{const _0x26010d=_0x2ae7b6,_0x2fb50b=this[_0x26010d(0x1aa)][_0x26010d(0x21c)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});this[_0x26010d(0x1aa)][_0x26010d(0x238)](_0x2fb50b);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x11d),(_0x2b364a,_0x149613)=>{const _0x3b96fb=_0x2ae7b6;this[_0x3b96fb(0x1aa)][_0x3b96fb(0x108)](_0x149613,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x12e),(_0x2802af,_0x3b54dc)=>{const _0x5b0560=_0x2ae7b6;this[_0x5b0560(0x1aa)][_0x5b0560(0x108)](_0x3b54dc,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x192),()=>{const _0x5b98fc=_0x2ae7b6;this[_0x5b98fc(0x1aa)][_0x5b98fc(0x219)]();}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x1be),async()=>{const _0x31f045=_0x2ae7b6;await this[_0x31f045(0x1aa)][_0x31f045(0x1ed)]();}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x224),(_0x4cc75a,_0x41c854)=>{const _0x105e8a=_0x2ae7b6;this[_0x105e8a(0x1aa)][_0x105e8a(0x16b)](_0x41c854['id']);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x166),(_0x22610c,_0xbab44,_0x379d20)=>{const _0x5976e7=_0x2ae7b6;this[_0x5976e7(0x165)](_0xbab44,_0x379d20);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0xf0),(_0x296e02,_0x2553ea)=>{const _0x327229=_0x2ae7b6;_0x327229(0x102)===_0x2553ea[_0x327229(0x126)]?this[_0x327229(0x1aa)][_0x327229(0x12d)](_0x2553ea):this[_0x327229(0x1aa)][_0x327229(0x227)](_0x2553ea);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x100),async(_0x23c900,_0x454d84)=>{const _0xa484c6=_0x2ae7b6;await this[_0xa484c6(0x17b)]({'reply':_0x454d84});}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x1d8),(_0x274607,{reply:_0xb99884,index:_0x23a55f,state:_0x23e432})=>{const _0x2a0903=_0x2ae7b6;this[_0x2a0903(0x1aa)][_0x2a0903(0x233)]({'id':_0xb99884['id'],'index':_0x23a55f,'state':_0x23e432}),this[_0x2a0903(0x231)]?.[_0x2a0903(0x1a5)][_0x2a0903(0xde)](_0xb99884['id'])&&this[_0x2a0903(0x231)]?.[_0x2a0903(0x215)]==_0x23a55f&&this[_0x2a0903(0x17f)]?.[_0x2a0903(0x1eb)](_0x23e432);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x13d),(_0x523a0b,_0x23b54d)=>{const _0x29d9df=_0x2ae7b6;if(this[_0x29d9df(0x1aa)][_0x29d9df(0x1e3)](_0x23b54d[_0x29d9df(0x213)],_0x23b54d[_0x29d9df(0x210)]),_0x29d9df(0x131)===_0x23b54d[_0x29d9df(0x213)][_0x29d9df(0x126)]){const _0x58d6d7=[..._0x5efda0(this[_0x29d9df(0x151)])[_0x29d9df(0x242)][_0x29d9df(0x175)][_0x29d9df(0x131)][_0x29d9df(0x187)]()];this[_0x29d9df(0xdf)][_0x29d9df(0x1d7)](_0x58d6d7,_0x29d9df(0x181)+this[_0x29d9df(0x1bb)]?.['id']);}}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x20c),(_0x2b6b94,_0x3636c6)=>{const _0x1f79d7=_0x2ae7b6;this[_0x1f79d7(0x1aa)][_0x1f79d7(0x24e)](_0x3636c6[_0x1f79d7(0x1c3)]),_0x1f79d7(0x250)==_0x3636c6[_0x1f79d7(0x1c3)]&&this[_0x1f79d7(0x149)](),_0x1f79d7(0x131)===_0x3636c6[_0x1f79d7(0x126)]&&this[_0x1f79d7(0xdf)][_0x1f79d7(0x22d)](_0x1f79d7(0x181)+this[_0x1f79d7(0x1bb)]?.['id']);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x235),(_0x59d8a4,_0x652774)=>{const _0x33a2a9=_0x2ae7b6;this[_0x33a2a9(0x1aa)][_0x33a2a9(0x147)](_0x652774[_0x33a2a9(0x213)][_0x33a2a9(0x1c3)],_0x652774[_0x33a2a9(0x210)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x212),(_0x96d36e,_0x25d4ec)=>{const _0x524a42=_0x2ae7b6;this[_0x524a42(0x1aa)][_0x524a42(0x141)](_0x25d4ec[_0x524a42(0xea)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0xed),(_0x210c24,_0xb64d3e)=>{const _0x4f5841=_0x2ae7b6;this[_0x4f5841(0x1aa)][_0x4f5841(0x251)](_0xb64d3e[_0x4f5841(0x105)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x194),(_0x1863c2,_0x4859e1)=>{const _0x243c18=_0x2ae7b6;this[_0x243c18(0x1aa)][_0x243c18(0x17d)](_0x4859e1[_0x243c18(0x132)],_0x4859e1[_0x243c18(0x10e)],_0x4859e1[_0x243c18(0x19a)],_0x4859e1[_0x243c18(0x144)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x228),(_0x31b3b6,_0x383330)=>{const _0x89c0c5=_0x2ae7b6;this[_0x89c0c5(0x1aa)][_0x89c0c5(0x1ce)](_0x383330[_0x89c0c5(0x132)],_0x383330[_0x89c0c5(0x205)],_0x383330[_0x89c0c5(0x101)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x1e6),(_0x31ea1f,_0x36df34)=>{const _0x3d97f4=_0x2ae7b6;this[_0x3d97f4(0x1aa)][_0x3d97f4(0x21a)](_0x36df34);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x1fd),async(_0x2a4144,_0x415bf0)=>{const _0x475367=_0x2ae7b6,_0x590c83=(await this[_0x475367(0x128)][_0x475367(0x1c0)]())[_0x475367(0x241)](_0x1731cc=>_0x1731cc['id']===_0x415bf0[_0x475367(0x14e)]?.['id'])||null;this[_0x475367(0x1aa)][_0x475367(0x1ff)](_0x590c83,_0x415bf0[_0x475367(0x13e)]);}),this[_0x2ae7b6(0x1bb)]['on'](_0x2ae7b6(0x121),(_0x54d22e,{error:_0x7bff33,interactionId:_0x437e96,fileName:_0x4c80ad,url:_0x501999,sourceId:_0x21e6e0,sourceLabel:_0x1a7c54})=>{const _0x34b04a=_0x2ae7b6,_0x11a3c6=_0x437e96?_0x437e96+':'+_0x989407():_0x989407();_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x237))?this[_0x34b04a(0x1aa)][_0x34b04a(0x136)]({'staticMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x1d9)),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x163))||_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x190))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x253)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x150))?this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x159),_0x4c80ad),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x160))?this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0xd4),_0x501999),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x1b2))?this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x1fa)),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x191))?this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x18f)),'id':_0x11a3c6}):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0xe1))?(_0x21e6e0&&this[_0x34b04a(0x1aa)][_0x34b04a(0x216)](_0x21e6e0),this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x22f),_0x1a7c54||_0x34b04a(0x10e)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x1ca))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x24f)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0xe2))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x1f6)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x240))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0xef)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x13a))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0xd3)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x112))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x157)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):_0x7bff33[_0x34b04a(0x25a)][_0x34b04a(0x1b5)](_0x34b04a(0x1b9))?(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0xfd)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33)):(this[_0x34b04a(0x1aa)][_0x34b04a(0x135)]({'errorMessage':_0x3acc4b(this[_0x34b04a(0x151)][_0x34b04a(0xf4)],_0x34b04a(0x20b)),'id':_0x11a3c6}),this[_0x34b04a(0x12f)](_0x7bff33));}),await this[_0x2ae7b6(0x1bb)][_0x2ae7b6(0x18c)](this[_0x2ae7b6(0x151)][_0x2ae7b6(0x1a0)][_0x2ae7b6(0x1bd)](_0x2ae7b6(0x18b))),_0x21d968||await this[_0x2ae7b6(0x1bb)][_0x2ae7b6(0x12b)]();}async[_0x1858dd(0xfc)]({userMessage:_0x1286a0,attributes:_0xa13516}){const _0x294604=_0x1858dd;if(!this[_0x294604(0x1bb)])throw new _0x58385f(_0x294604(0x234));if(this[_0x294604(0x1bb)][_0x294604(0xf1)]()){const _0x493df6=await this[_0x294604(0xdf)][_0x294604(0x20f)]();await this[_0x294604(0x1bb)][_0x294604(0x169)](_0x493df6);}this[_0x294604(0x1bb)]['id']&&this[_0x294604(0x1bb)][_0x294604(0x1d5)]&&await this[_0x294604(0x1bb)][_0x294604(0xf5)]({'userMessage':_0x1286a0,'attributes':_0xa13516});}[_0x1858dd(0x1e0)](){const _0x49aad4=_0x1858dd;console[_0x49aad4(0x15b)](_0x49aad4(0x113));}[_0x1858dd(0x24c)](_0x4837b8){const _0x552cf7=_0x1858dd;this[_0x552cf7(0x1aa)][_0x552cf7(0x180)](_0x4837b8);}[_0x1858dd(0x12f)](_0x1aca72){const _0xf34477=_0x1858dd;_0x233dba(_0x1aca72[_0xf34477(0x25a)]);}[_0x1858dd(0x116)](_0x49195c){const _0x2e80bb=_0x1858dd;this[_0x2e80bb(0x1bb)]?.[_0x2e80bb(0x24d)](_0x49195c);}[_0x1858dd(0xe8)](){const _0x5639f5=_0x1858dd;this[_0x5639f5(0x1bb)]?.[_0x5639f5(0xf9)]();}[_0x1858dd(0x1de)](){const _0x6caad7=_0x1858dd;this[_0x6caad7(0x1bb)]?.[_0x6caad7(0xe6)]();}[_0x1858dd(0x137)](_0x55f2e3){const _0x44a6bb=_0x1858dd,[_0x1b59e9,_0x5b4cba]=_0x55f2e3[_0x44a6bb(0x16f)](':'),_0x691df2=this[_0x44a6bb(0x1bb)][_0x44a6bb(0x109)](_0x1b59e9),_0x101889=_0x691df2[_0x44a6bb(0x230)](_0x5b4cba);return{'interaction':_0x691df2,'reply':_0x101889};}[_0x1858dd(0x243)](_0x29231a,_0x32b0e4=!0x1){const _0x5c548b=_0x1858dd,_0x1ef644=_0x5efda0(this[_0x5c548b(0x151)]),_0x4eca02={'target':_0x1ef644[_0x5c548b(0x10c)][_0x5c548b(0x1a2)][_0x5c548b(0xe9)][_0x5c548b(0x1f2)](_0x1ef644[_0x5c548b(0x10c)][_0x5c548b(0x15e)][_0x5c548b(0x1fc)](_0x29231a)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x32b0e4};_0x32b0e4&&(_0x4eca02[_0x5c548b(0x1d0)]=!0x0),_0x531395(_0x4eca02);}[_0x1858dd(0x165)](_0x9bfdb6,_0x4912dc=!0x1){const _0x3c0764=_0x1858dd;this[_0x3c0764(0x1aa)][_0x3c0764(0x166)](_0x9bfdb6||_0x3acc4b(this[_0x3c0764(0x151)][_0x3c0764(0xf4)],_0x3c0764(0x220)),_0x4912dc);}async[_0x1858dd(0x17b)]({reply:_0x466fbf,renderingStrategy:_0x1720d8}){const _0x5b1037=_0x1858dd,{id:_0x14bfca,interactionId:_0x33fa00,isDone:_0x21c8bb,type:_0x296a16,parsedContent:_0x5c70ae}=_0x466fbf,_0x55d7af=_0x33fa00+':'+_0x14bfca;if(_0x5b1037(0x14f)===_0x296a16){const _0xd92465=_0x466fbf[_0x5b1037(0x1a7)]({'showDiff':this[_0x5b1037(0x1aa)][_0x5b1037(0xe3)]});await this[_0x5b1037(0x1aa)][_0x5b1037(0x22a)]({'id':_0x55d7af,'parts':_0xd92465,'renderingStrategy':_0x1720d8,'isDone':_0x21c8bb});}else _0x5b1037(0x102)===_0x296a16&&await this[_0x5b1037(0x1aa)][_0x5b1037(0x206)]({'id':_0x55d7af,'parsedContent':_0x5c70ae,'renderingStrategy':_0x1720d8,'isDone':_0x21c8bb});_0x21c8bb&&_0x466fbf[_0x5b1037(0x20e)][_0x5b1037(0x1e9)]>0x0&&this[_0x5b1037(0x1aa)][_0x5b1037(0x11c)](_0x55d7af,_0x466fbf[_0x5b1037(0x20e)]);}async[_0x1858dd(0x1a3)](){const _0x94f95d=_0x1858dd,_0x1bdd07=this[_0x94f95d(0x1bb)]?.[_0x94f95d(0x123)];_0x1bdd07&&(_0x1bdd07[_0x94f95d(0xfa)](),this[_0x94f95d(0x1aa)][_0x94f95d(0x256)](_0x1bdd07));}async[_0x1858dd(0x1f1)](){const _0x652849=_0x1858dd,_0x3f4843=this[_0x652849(0x1bb)]?.[_0x652849(0x123)];if(_0x3f4843){for await(const _0x243d93 of _0x3f4843[_0x652849(0x1b0)])await this[_0x652849(0x17b)]({'reply':_0x243d93,'renderingStrategy':_0x652849(0x1d3)});}}[_0x1858dd(0x1c9)](_0x53a51e){const _0x2baeae=_0x1858dd,_0x4ba04f={'positiveCount':_0x53a51e[_0x2baeae(0x199)][_0x2baeae(0xd9)](_0x2bef01=>_0x2baeae(0x1af)===_0x2bef01[_0x2baeae(0x170)])[_0x2baeae(0x1e9)],'totalCount':_0x53a51e[_0x2baeae(0x199)][_0x2baeae(0x1e9)],'modificationId':_0x53a51e['id']},_0x4a5ee5=this[_0x2baeae(0x1bb)][_0x2baeae(0x109)](_0x53a51e[_0x2baeae(0x1b1)])[_0x2baeae(0xda)];_0x4a5ee5&&this[_0x2baeae(0x226)][_0x2baeae(0x143)](this[_0x2baeae(0x1bb)]['id'],_0x4a5ee5,_0x4ba04f);}[_0x1858dd(0x1f5)](_0x3bedf3){const _0x4d2791=_0x1858dd;let _0x1f1654=null,_0x3c1461=null;this['on'](_0x4d2791(0x1b7),(_0x5cdcf9,_0x40aa2d,_0x5c76a9)=>{const _0x215fad=_0x4d2791;_0x5c76a9['id']!==_0x1f1654&&(_0x1f1654=_0x5c76a9['id'],_0x3c1461=this[_0x215fad(0x1df)](_0x5c76a9)),_0x3bedf3(_0x40aa2d,_0x3c1461);});}[_0x1858dd(0x1df)](_0x338375){const _0x12ac07=_0x1858dd,_0x35ad65=this[_0x12ac07(0x1aa)],_0x441d23=()=>{const _0x9d267d=_0x12ac07;_0x338375[_0x9d267d(0x185)](),_0x338375[_0x9d267d(0x22c)](),_0x35ad65[_0x9d267d(0x1dc)]();},_0x495654=()=>{const _0x456aaf=_0x12ac07;_0x338375[_0x456aaf(0xd7)]&&(_0x338375[_0x456aaf(0xd7)][_0x456aaf(0x146)](),_0x338375[_0x456aaf(0xd7)]=void 0x0);};return{'insertTextReply':(_0x4a6c67,_0xcfdc37)=>{const _0x5536d5=_0x12ac07;_0x495654(),_0x441d23();const _0x37b947=_0x338375[_0x5536d5(0xd7)]=_0x338375[_0x5536d5(0x1bc)]({'type':_0x5536d5(0x102),'interactionId':_0x338375['id'],'content':_0x4a6c67,'id':_0xcfdc37||_0x989407()});return _0x495654(),_0x37b947;},'insertCustomElement':async(_0x1310e5,_0x40b391)=>(_0x495654(),_0x441d23(),_0x35ad65[_0x12ac07(0x184)](_0x1310e5,_0x40b391||_0x989407())),'setLoadingMessage':_0x3d3023=>{const _0x215d87=_0x12ac07;_0x35ad65[_0x215d87(0x238)](_0x3d3023);},'clearLoadingMessage':()=>{const _0x2182e3=_0x12ac07;_0x35ad65[_0x2182e3(0x1dc)]();}};}}