@ckeditor/ckeditor5-ai 47.2.0-alpha.1 → 47.2.0-alpha.3

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 (365) hide show
  1. package/build/ai.js +1 -1
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/bg.js +1 -1
  4. package/build/translations/bn.js +1 -1
  5. package/build/translations/ca.js +1 -1
  6. package/build/translations/cs.js +1 -1
  7. package/build/translations/da.js +1 -1
  8. package/build/translations/de.js +1 -1
  9. package/build/translations/el.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fi.js +1 -1
  13. package/build/translations/fr.js +1 -1
  14. package/build/translations/he.js +1 -1
  15. package/build/translations/hi.js +1 -1
  16. package/build/translations/hu.js +1 -1
  17. package/build/translations/id.js +1 -1
  18. package/build/translations/it.js +1 -1
  19. package/build/translations/ja.js +1 -1
  20. package/build/translations/ko.js +1 -1
  21. package/build/translations/lt.js +1 -1
  22. package/build/translations/lv.js +1 -1
  23. package/build/translations/ms.js +1 -1
  24. package/build/translations/nl.js +1 -1
  25. package/build/translations/no.js +1 -1
  26. package/build/translations/pl.js +1 -1
  27. package/build/translations/pt-br.js +1 -1
  28. package/build/translations/pt.js +1 -1
  29. package/build/translations/ro.js +1 -1
  30. package/build/translations/ru.js +1 -1
  31. package/build/translations/sk.js +1 -1
  32. package/build/translations/sr.js +1 -1
  33. package/build/translations/sv.js +1 -1
  34. package/build/translations/th.js +1 -1
  35. package/build/translations/tr.js +1 -1
  36. package/build/translations/uk.js +1 -1
  37. package/build/translations/vi.js +1 -1
  38. package/build/translations/zh-cn.js +1 -1
  39. package/build/translations/zh.js +1 -1
  40. package/dist/index.js +5 -5
  41. package/dist/translations/af.js +1 -1
  42. package/dist/translations/af.umd.js +1 -1
  43. package/dist/translations/ar.js +1 -1
  44. package/dist/translations/ar.umd.js +1 -1
  45. package/dist/translations/ast.js +1 -1
  46. package/dist/translations/ast.umd.js +1 -1
  47. package/dist/translations/az.js +1 -1
  48. package/dist/translations/az.umd.js +1 -1
  49. package/dist/translations/be.js +1 -1
  50. package/dist/translations/be.umd.js +1 -1
  51. package/dist/translations/bg.js +1 -1
  52. package/dist/translations/bg.umd.js +1 -1
  53. package/dist/translations/bn.js +1 -1
  54. package/dist/translations/bn.umd.js +1 -1
  55. package/dist/translations/bs.js +1 -1
  56. package/dist/translations/bs.umd.js +1 -1
  57. package/dist/translations/ca.js +1 -1
  58. package/dist/translations/ca.umd.js +1 -1
  59. package/dist/translations/cs.js +1 -1
  60. package/dist/translations/cs.umd.js +1 -1
  61. package/dist/translations/da.js +1 -1
  62. package/dist/translations/da.umd.js +1 -1
  63. package/dist/translations/de-ch.js +1 -1
  64. package/dist/translations/de-ch.umd.js +1 -1
  65. package/dist/translations/de.js +1 -1
  66. package/dist/translations/de.umd.js +1 -1
  67. package/dist/translations/el.js +1 -1
  68. package/dist/translations/el.umd.js +1 -1
  69. package/dist/translations/en-au.js +1 -1
  70. package/dist/translations/en-au.umd.js +1 -1
  71. package/dist/translations/en-gb.js +1 -1
  72. package/dist/translations/en-gb.umd.js +1 -1
  73. package/dist/translations/en.js +1 -1
  74. package/dist/translations/en.umd.js +1 -1
  75. package/dist/translations/eo.js +1 -1
  76. package/dist/translations/eo.umd.js +1 -1
  77. package/dist/translations/es-co.js +1 -1
  78. package/dist/translations/es-co.umd.js +1 -1
  79. package/dist/translations/es.js +1 -1
  80. package/dist/translations/es.umd.js +1 -1
  81. package/dist/translations/et.js +1 -1
  82. package/dist/translations/et.umd.js +1 -1
  83. package/dist/translations/eu.js +1 -1
  84. package/dist/translations/eu.umd.js +1 -1
  85. package/dist/translations/fa.js +1 -1
  86. package/dist/translations/fa.umd.js +1 -1
  87. package/dist/translations/fi.js +1 -1
  88. package/dist/translations/fi.umd.js +1 -1
  89. package/dist/translations/fr.js +1 -1
  90. package/dist/translations/fr.umd.js +1 -1
  91. package/dist/translations/gl.js +1 -1
  92. package/dist/translations/gl.umd.js +1 -1
  93. package/dist/translations/gu.js +1 -1
  94. package/dist/translations/gu.umd.js +1 -1
  95. package/dist/translations/he.js +1 -1
  96. package/dist/translations/he.umd.js +1 -1
  97. package/dist/translations/hi.js +1 -1
  98. package/dist/translations/hi.umd.js +1 -1
  99. package/dist/translations/hr.js +1 -1
  100. package/dist/translations/hr.umd.js +1 -1
  101. package/dist/translations/hu.js +1 -1
  102. package/dist/translations/hu.umd.js +1 -1
  103. package/dist/translations/hy.js +1 -1
  104. package/dist/translations/hy.umd.js +1 -1
  105. package/dist/translations/id.js +1 -1
  106. package/dist/translations/id.umd.js +1 -1
  107. package/dist/translations/it.js +1 -1
  108. package/dist/translations/it.umd.js +1 -1
  109. package/dist/translations/ja.js +1 -1
  110. package/dist/translations/ja.umd.js +1 -1
  111. package/dist/translations/jv.js +1 -1
  112. package/dist/translations/jv.umd.js +1 -1
  113. package/dist/translations/kk.js +1 -1
  114. package/dist/translations/kk.umd.js +1 -1
  115. package/dist/translations/km.js +1 -1
  116. package/dist/translations/km.umd.js +1 -1
  117. package/dist/translations/kn.js +1 -1
  118. package/dist/translations/kn.umd.js +1 -1
  119. package/dist/translations/ko.js +1 -1
  120. package/dist/translations/ko.umd.js +1 -1
  121. package/dist/translations/ku.js +1 -1
  122. package/dist/translations/ku.umd.js +1 -1
  123. package/dist/translations/lt.js +1 -1
  124. package/dist/translations/lt.umd.js +1 -1
  125. package/dist/translations/lv.js +1 -1
  126. package/dist/translations/lv.umd.js +1 -1
  127. package/dist/translations/ms.js +1 -1
  128. package/dist/translations/ms.umd.js +1 -1
  129. package/dist/translations/nb.js +1 -1
  130. package/dist/translations/nb.umd.js +1 -1
  131. package/dist/translations/ne.js +1 -1
  132. package/dist/translations/ne.umd.js +1 -1
  133. package/dist/translations/nl.js +1 -1
  134. package/dist/translations/nl.umd.js +1 -1
  135. package/dist/translations/no.js +1 -1
  136. package/dist/translations/no.umd.js +1 -1
  137. package/dist/translations/oc.js +1 -1
  138. package/dist/translations/oc.umd.js +1 -1
  139. package/dist/translations/pl.js +1 -1
  140. package/dist/translations/pl.umd.js +1 -1
  141. package/dist/translations/pt-br.js +1 -1
  142. package/dist/translations/pt-br.umd.js +1 -1
  143. package/dist/translations/pt.js +1 -1
  144. package/dist/translations/pt.umd.js +1 -1
  145. package/dist/translations/ro.js +1 -1
  146. package/dist/translations/ro.umd.js +1 -1
  147. package/dist/translations/ru.js +1 -1
  148. package/dist/translations/ru.umd.js +1 -1
  149. package/dist/translations/si.js +1 -1
  150. package/dist/translations/si.umd.js +1 -1
  151. package/dist/translations/sk.js +1 -1
  152. package/dist/translations/sk.umd.js +1 -1
  153. package/dist/translations/sl.js +1 -1
  154. package/dist/translations/sl.umd.js +1 -1
  155. package/dist/translations/sq.js +1 -1
  156. package/dist/translations/sq.umd.js +1 -1
  157. package/dist/translations/sr-latn.js +1 -1
  158. package/dist/translations/sr-latn.umd.js +1 -1
  159. package/dist/translations/sr.js +1 -1
  160. package/dist/translations/sr.umd.js +1 -1
  161. package/dist/translations/sv.js +1 -1
  162. package/dist/translations/sv.umd.js +1 -1
  163. package/dist/translations/th.js +1 -1
  164. package/dist/translations/th.umd.js +1 -1
  165. package/dist/translations/ti.js +1 -1
  166. package/dist/translations/ti.umd.js +1 -1
  167. package/dist/translations/tk.js +1 -1
  168. package/dist/translations/tk.umd.js +1 -1
  169. package/dist/translations/tr.js +1 -1
  170. package/dist/translations/tr.umd.js +1 -1
  171. package/dist/translations/tt.js +1 -1
  172. package/dist/translations/tt.umd.js +1 -1
  173. package/dist/translations/ug.js +1 -1
  174. package/dist/translations/ug.umd.js +1 -1
  175. package/dist/translations/uk.js +1 -1
  176. package/dist/translations/uk.umd.js +1 -1
  177. package/dist/translations/ur.js +1 -1
  178. package/dist/translations/ur.umd.js +1 -1
  179. package/dist/translations/uz.js +1 -1
  180. package/dist/translations/uz.umd.js +1 -1
  181. package/dist/translations/vi.js +1 -1
  182. package/dist/translations/vi.umd.js +1 -1
  183. package/dist/translations/zh-cn.js +1 -1
  184. package/dist/translations/zh-cn.umd.js +1 -1
  185. package/dist/translations/zh.js +1 -1
  186. package/dist/translations/zh.umd.js +1 -1
  187. package/lang/translations/ar.po +34 -34
  188. package/lang/translations/bg.po +26 -26
  189. package/lang/translations/bn.po +26 -26
  190. package/lang/translations/ca.po +26 -26
  191. package/lang/translations/cs.po +28 -28
  192. package/lang/translations/da.po +26 -26
  193. package/lang/translations/de.po +26 -26
  194. package/lang/translations/el.po +26 -26
  195. package/lang/translations/es.po +26 -26
  196. package/lang/translations/et.po +26 -26
  197. package/lang/translations/fi.po +26 -26
  198. package/lang/translations/fr.po +26 -26
  199. package/lang/translations/he.po +26 -26
  200. package/lang/translations/hi.po +26 -26
  201. package/lang/translations/hu.po +26 -26
  202. package/lang/translations/id.po +24 -24
  203. package/lang/translations/it.po +26 -26
  204. package/lang/translations/ja.po +24 -24
  205. package/lang/translations/ko.po +24 -24
  206. package/lang/translations/lt.po +28 -28
  207. package/lang/translations/lv.po +28 -28
  208. package/lang/translations/ms.po +24 -24
  209. package/lang/translations/nl.po +26 -26
  210. package/lang/translations/no.po +26 -26
  211. package/lang/translations/pl.po +28 -28
  212. package/lang/translations/pt-br.po +26 -26
  213. package/lang/translations/pt.po +26 -26
  214. package/lang/translations/ro.po +28 -28
  215. package/lang/translations/ru.po +28 -28
  216. package/lang/translations/sk.po +28 -28
  217. package/lang/translations/sr.po +28 -28
  218. package/lang/translations/sv.po +26 -26
  219. package/lang/translations/th.po +24 -24
  220. package/lang/translations/tr.po +26 -26
  221. package/lang/translations/uk.po +28 -28
  222. package/lang/translations/vi.po +24 -24
  223. package/lang/translations/zh-cn.po +24 -24
  224. package/lang/translations/zh.po +24 -24
  225. package/package.json +15 -15
  226. package/src/aiactions/aiactions.js +1 -1
  227. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  228. package/src/aiactions/model/aiactionsreply.js +1 -1
  229. package/src/aiassistant/adapters/aiadapter.js +1 -1
  230. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  231. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  232. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  233. package/src/aiassistant/aiassistant.js +1 -1
  234. package/src/aiassistant/aiassistantediting.js +1 -1
  235. package/src/aiassistant/aiassistantui.js +1 -1
  236. package/src/aiassistant/legacyerrors.js +1 -1
  237. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  238. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  239. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  240. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  241. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  242. package/src/aiassistant/ui/form/aiformview.js +1 -1
  243. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  244. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  245. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  246. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  247. package/src/aiassistant/utils/common-translations.js +1 -1
  248. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  249. package/src/aiballoon/aiballoon.js +1 -1
  250. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  251. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  252. package/src/aiballoon/ui/aiballoonview.js +1 -1
  253. package/src/aichat/aichat.js +1 -1
  254. package/src/aichat/aichatcontroller.js +1 -1
  255. package/src/aichat/aichatui.js +1 -1
  256. package/src/aichat/model/aichatcontext.js +1 -1
  257. package/src/aichat/model/aichatconversation.js +1 -1
  258. package/src/aichat/model/aichatinteraction.js +1 -1
  259. package/src/aichat/model/aichatmodels.js +1 -1
  260. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  261. package/src/aichat/ui/aichatfeedview.js +1 -1
  262. package/src/aichat/ui/aichatheaderview.js +1 -1
  263. package/src/aichat/ui/aichatview.js +1 -1
  264. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  265. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  266. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  267. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  268. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  269. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  270. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  271. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  272. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  273. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  274. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  275. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  276. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  277. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  278. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  279. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  280. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  281. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  282. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  283. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  284. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  285. package/src/aichat/utils/eventnames.js +1 -1
  286. package/src/aichat/utils/promisequeue.js +1 -1
  287. package/src/aichat/utils/scrollmanager.js +1 -1
  288. package/src/aichathistory/aichathistory.js +1 -1
  289. package/src/aichathistory/aichathistorycontroller.js +1 -1
  290. package/src/aichathistory/aichathistoryui.js +1 -1
  291. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  292. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  293. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  294. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  295. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  296. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  297. package/src/aicore/aiconnector.js +1 -1
  298. package/src/aicore/aiediting.js +1 -1
  299. package/src/aicore/model/aicapabilities.js +1 -1
  300. package/src/aicore/model/aicontext.js +1 -1
  301. package/src/aicore/model/aiinteraction.js +1 -1
  302. package/src/aicore/model/aimodels.js +1 -1
  303. package/src/aicore/model/aireply.js +1 -1
  304. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  305. package/src/aicore/pipeline/airesponseparser.js +2 -2
  306. package/src/aicore/ui/aidisclaimerview.js +1 -1
  307. package/src/aicore/ui/aiskeleton.js +1 -1
  308. package/src/aicore/ui/aispinner.js +1 -1
  309. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  310. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  311. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  312. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  313. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  314. package/src/aicore/utils/common-translations.js +1 -1
  315. package/src/aicore/utils/createresizebutton.js +1 -1
  316. package/src/aicore/utils/documentposition.js +1 -1
  317. package/src/aicore/utils/documentrange.js +1 -1
  318. package/src/aicore/utils/eventnames.js +1 -1
  319. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  320. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  321. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  322. package/src/aicore/utils/htmlparser.js +1 -1
  323. package/src/aicore/utils/htmlstreamer.js +1 -1
  324. package/src/aieditorintegration/aieditorintegration.js +1 -1
  325. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  326. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  327. package/src/aiquickactions/aiquickactions.js +1 -1
  328. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  329. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  330. package/src/aiquickactions/aiquickactionsui.js +1 -1
  331. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  332. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  333. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  334. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  335. package/src/aireviewmode/aireviewmode.js +1 -1
  336. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  337. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  338. package/src/aireviewmode/aireviewmodeui.js +1 -1
  339. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  340. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  341. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  342. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  343. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  344. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  345. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  346. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  347. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  348. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  349. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  350. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  351. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  352. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  353. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  354. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  355. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  356. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  357. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  358. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  359. package/src/aitabs/aitabs.js +1 -1
  360. package/src/aitabs/aitabsmainview.js +1 -1
  361. package/src/aitabs/tabs/aitabsview.js +1 -1
  362. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  363. package/src/aitabs/tabs/tabpanelview.js +1 -1
  364. package/src/errors.js +1 -1
  365. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29d505=_0x6d32;function _0x6d32(_0x159938,_0xa6bcfc){const _0x3d7b97=_0x3d7b();return _0x6d32=function(_0x6d329e,_0x156b8c){_0x6d329e=_0x6d329e-0x19e;let _0x3cc860=_0x3d7b97[_0x6d329e];return _0x3cc860;},_0x6d32(_0x159938,_0xa6bcfc);}function _0x3d7b(){const _0x552a0c=['filter','set','indexOf','isMatching','ck-ai-chat-history__section','removeItem','div','itemsViews','splice','30YaKzou','7lDiNWO','highlightText','isVisible','addMany','1452867tcREia','find','length','23056160vfeCyA','setTemplate','remove','ck-ai-chat-history__section-title','getItem','ck-hidden','title','237372QZctfi','items','12879873uwHMcQ','4Zjfpwb','1254936cvlCHc','bindTemplate','6053736UcBNin','_itemsListView','198408pTkvrv'];_0x3d7b=function(){return _0x552a0c;};return _0x3d7b();}(function(_0x40f253,_0x414050){const _0x441881=_0x6d32,_0x4189b6=_0x40f253();while(!![]){try{const _0x5ea9f0=-parseInt(_0x441881(0x1b7))/0x1+parseInt(_0x441881(0x1ba))/0x2*(parseInt(_0x441881(0x1ad))/0x3)+-parseInt(_0x441881(0x19e))/0x4*(parseInt(_0x441881(0x1a8))/0x5)+parseInt(_0x441881(0x1bd))/0x6+parseInt(_0x441881(0x1a9))/0x7*(parseInt(_0x441881(0x1bb))/0x8)+parseInt(_0x441881(0x1b9))/0x9+-parseInt(_0x441881(0x1b0))/0xa;if(_0x5ea9f0===_0x414050)break;else _0x4189b6['push'](_0x4189b6['shift']());}catch(_0x53e3f5){_0x4189b6['push'](_0x4189b6['shift']());}}}(_0x3d7b,0xb0fa2));import{ListItemView as _0x45d622,View as _0x543bcf,ListView as _0x2711ec}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x45d622{[_0x29d505(0x1b6)];[_0x29d505(0x1a6)];[_0x29d505(0x1be)];constructor(_0x4afe1d,{title:_0x50277e,items:_0x123efd}){const _0x5d9d7c=_0x29d505;super(_0x4afe1d);const _0x4f1608=this[_0x5d9d7c(0x1bc)];this[_0x5d9d7c(0x1a0)](_0x5d9d7c(0x1ab),!0x0),this[_0x5d9d7c(0x1b6)]=_0x50277e,this[_0x5d9d7c(0x1a6)]=_0x123efd;const _0x50da57=new _0x543bcf(_0x4afe1d);_0x50da57[_0x5d9d7c(0x1b1)]({'tag':_0x5d9d7c(0x1a5),'attributes':{'class':[_0x5d9d7c(0x1b3)]},'children':[this[_0x5d9d7c(0x1b6)]]}),this[_0x5d9d7c(0x1be)]=new _0x2711ec(_0x4afe1d),this[_0x5d9d7c(0x1be)][_0x5d9d7c(0x1b8)][_0x5d9d7c(0x1ac)](this[_0x5d9d7c(0x1a6)]),this[_0x5d9d7c(0x1b1)]({'tag':'li','attributes':{'class':[_0x5d9d7c(0x1a3),_0x4f1608['if'](_0x5d9d7c(0x1ab),_0x5d9d7c(0x1b5),_0xed5f6c=>!_0xed5f6c)]},'children':[_0x50da57,this[_0x5d9d7c(0x1be)]]});}[_0x29d505(0x19f)](_0x1138ce){const _0x17fdaa=_0x29d505,_0x3337c9=this[_0x17fdaa(0x1a6)][_0x17fdaa(0x1af)];let _0x1cf75e=0x0;for(const _0xad6a40 of this[_0x17fdaa(0x1a6)]){if(_0x1138ce){const _0x1cf17d=_0xad6a40[_0x17fdaa(0x1a2)](_0x1138ce);_0xad6a40[_0x17fdaa(0x1ab)]=!!_0x1cf17d,_0xad6a40[_0x17fdaa(0x1aa)](_0x1138ce);}else _0xad6a40[_0x17fdaa(0x1ab)]=!0x0,_0xad6a40[_0x17fdaa(0x1aa)](null);_0xad6a40[_0x17fdaa(0x1ab)]&&_0x1cf75e++;}return this[_0x17fdaa(0x1ab)]=_0x1cf75e>0x0,{'resultsCount':_0x1cf75e,'totalItemsCount':_0x3337c9};}[_0x29d505(0x1b4)](_0x182aa2){const _0x56d0d4=_0x29d505;return this[_0x56d0d4(0x1a6)][_0x56d0d4(0x1ae)](_0x33ac27=>_0x33ac27['id']===_0x182aa2);}[_0x29d505(0x1a4)](_0x488555){const _0x87be4e=_0x29d505,_0x3dcce2=this[_0x87be4e(0x1a6)][_0x87be4e(0x1a1)](_0x488555);-0x1!==_0x3dcce2&&(this[_0x87be4e(0x1a6)][_0x87be4e(0x1a7)](_0x3dcce2,0x1),this[_0x87be4e(0x1be)][_0x87be4e(0x1b8)][_0x87be4e(0x1b2)](_0x488555));}}
23
+ function _0x4403(_0x3d2bf8,_0x5c8c29){const _0x43ba9d=_0x43ba();return _0x4403=function(_0x44032e,_0x85f4ef){_0x44032e=_0x44032e-0x10c;let _0x2499d5=_0x43ba9d[_0x44032e];return _0x2499d5;},_0x4403(_0x3d2bf8,_0x5c8c29);}const _0x378abb=_0x4403;function _0x43ba(){const _0x1fb99f=['474XLgLEB','241836yGNeVw','915663nCgmpy','title','isVisible','highlightText','length','_itemsListView','180ecSxeR','getItem','items','3130804phTUIr','set','remove','addMany','splice','7599AShlXW','setTemplate','69183EmPWli','ck-hidden','isMatching','ck-ai-chat-history__section','24eZLyOj','find','1094470bctkEe','div','indexOf','33wcRRSz','itemsViews','24KGcDAf','10750380ggMIdD','ck-ai-chat-history__section-title','bindTemplate','filter','removeItem'];_0x43ba=function(){return _0x1fb99f;};return _0x43ba();}(function(_0x3524d7,_0x53752e){const _0x32f698=_0x4403,_0x89719a=_0x3524d7();while(!![]){try{const _0x15fdf9=-parseInt(_0x32f698(0x11b))/0x1+parseInt(_0x32f698(0x11a))/0x2*(-parseInt(_0x32f698(0x12a))/0x3)+-parseInt(_0x32f698(0x125))/0x4+parseInt(_0x32f698(0x10f))/0x5*(-parseInt(_0x32f698(0x10d))/0x6)+-parseInt(_0x32f698(0x11c))/0x7*(-parseInt(_0x32f698(0x114))/0x8)+-parseInt(_0x32f698(0x12c))/0x9*(parseInt(_0x32f698(0x122))/0xa)+-parseInt(_0x32f698(0x112))/0xb*(-parseInt(_0x32f698(0x115))/0xc);if(_0x15fdf9===_0x53752e)break;else _0x89719a['push'](_0x89719a['shift']());}catch(_0x41e7a9){_0x89719a['push'](_0x89719a['shift']());}}}(_0x43ba,0x6bb86));import{ListItemView as _0x2e842d,View as _0x345bc0,ListView as _0x1487ec}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x2e842d{[_0x378abb(0x11d)];[_0x378abb(0x113)];[_0x378abb(0x121)];constructor(_0x1fa8f1,{title:_0x2543ae,items:_0x16bd78}){const _0x3ce5ce=_0x378abb;super(_0x1fa8f1);const _0x6544f1=this[_0x3ce5ce(0x117)];this[_0x3ce5ce(0x126)](_0x3ce5ce(0x11e),!0x0),this[_0x3ce5ce(0x11d)]=_0x2543ae,this[_0x3ce5ce(0x113)]=_0x16bd78;const _0x26b03d=new _0x345bc0(_0x1fa8f1);_0x26b03d[_0x3ce5ce(0x12b)]({'tag':_0x3ce5ce(0x110),'attributes':{'class':[_0x3ce5ce(0x116)]},'children':[this[_0x3ce5ce(0x11d)]]}),this[_0x3ce5ce(0x121)]=new _0x1487ec(_0x1fa8f1),this[_0x3ce5ce(0x121)][_0x3ce5ce(0x124)][_0x3ce5ce(0x128)](this[_0x3ce5ce(0x113)]),this[_0x3ce5ce(0x12b)]({'tag':'li','attributes':{'class':[_0x3ce5ce(0x10c),_0x6544f1['if'](_0x3ce5ce(0x11e),_0x3ce5ce(0x12d),_0x414efa=>!_0x414efa)]},'children':[_0x26b03d,this[_0x3ce5ce(0x121)]]});}[_0x378abb(0x118)](_0x3bc314){const _0x5e1e2b=_0x378abb,_0x3335ff=this[_0x5e1e2b(0x113)][_0x5e1e2b(0x120)];let _0x2b7d4f=0x0;for(const _0x335248 of this[_0x5e1e2b(0x113)]){if(_0x3bc314){const _0x4ad793=_0x335248[_0x5e1e2b(0x12e)](_0x3bc314);_0x335248[_0x5e1e2b(0x11e)]=!!_0x4ad793,_0x335248[_0x5e1e2b(0x11f)](_0x3bc314);}else _0x335248[_0x5e1e2b(0x11e)]=!0x0,_0x335248[_0x5e1e2b(0x11f)](null);_0x335248[_0x5e1e2b(0x11e)]&&_0x2b7d4f++;}return this[_0x5e1e2b(0x11e)]=_0x2b7d4f>0x0,{'resultsCount':_0x2b7d4f,'totalItemsCount':_0x3335ff};}[_0x378abb(0x123)](_0x5f2441){const _0x3f005f=_0x378abb;return this[_0x3f005f(0x113)][_0x3f005f(0x10e)](_0x47321a=>_0x47321a['id']===_0x5f2441);}[_0x378abb(0x119)](_0x1178fe){const _0x1eb094=_0x378abb,_0x2fe375=this[_0x1eb094(0x113)][_0x1eb094(0x111)](_0x1178fe);-0x1!==_0x2fe375&&(this[_0x1eb094(0x113)][_0x1eb094(0x129)](_0x2fe375,0x1),this[_0x1eb094(0x121)][_0x1eb094(0x124)][_0x1eb094(0x127)](_0x1178fe));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18b0d6=_0x5134;function _0x400c(){const _0x380d4e=['filter','187leGHQc','162252niFvSz','sections','4NBWzPo','423SMqAXu','3tMEZgf','578328DaFCTl','extendTemplate','6234584aKCbHG','ck-ai-chat-history__sections','802156RdRfgF','8610714bHFsZG','237690PyfPaI','60LUlvwY','items','addMany','129082bBtvuR'];_0x400c=function(){return _0x380d4e;};return _0x400c();}(function(_0x3938c6,_0x1075b5){const _0x6cb8a0=_0x5134,_0xdbcf8b=_0x3938c6();while(!![]){try{const _0x4d632d=-parseInt(_0x6cb8a0(0xb5))/0x1*(parseInt(_0x6cb8a0(0xa8))/0x2)+-parseInt(_0x6cb8a0(0xaa))/0x3*(-parseInt(_0x6cb8a0(0xaf))/0x4)+parseInt(_0x6cb8a0(0xb2))/0x5*(parseInt(_0x6cb8a0(0xab))/0x6)+parseInt(_0x6cb8a0(0xb0))/0x7+-parseInt(_0x6cb8a0(0xad))/0x8+parseInt(_0x6cb8a0(0xa9))/0x9*(-parseInt(_0x6cb8a0(0xb1))/0xa)+-parseInt(_0x6cb8a0(0xb7))/0xb*(-parseInt(_0x6cb8a0(0xa6))/0xc);if(_0x4d632d===_0x1075b5)break;else _0xdbcf8b['push'](_0xdbcf8b['shift']());}catch(_0x322046){_0xdbcf8b['push'](_0xdbcf8b['shift']());}}}(_0x400c,0xa1bfc));import{ListView as _0x493cf7}from'ckeditor5/src/ui.js';function _0x5134(_0x1ad35a,_0x255b76){const _0x400cb9=_0x400c();return _0x5134=function(_0x513465,_0x5848d6){_0x513465=_0x513465-0xa6;let _0x5e5bdf=_0x400cb9[_0x513465];return _0x5e5bdf;},_0x5134(_0x1ad35a,_0x255b76);}export class AIChatHistorySectionListView extends _0x493cf7{[_0x18b0d6(0xa7)];constructor(_0x37b659,_0x29e673){const _0x75a7ca=_0x18b0d6;super(_0x37b659),this[_0x75a7ca(0xa7)]=_0x29e673,this[_0x75a7ca(0xb3)][_0x75a7ca(0xb4)](this[_0x75a7ca(0xa7)]),this[_0x75a7ca(0xac)]({'attributes':{'class':[_0x75a7ca(0xae)]}});}[_0x18b0d6(0xb6)](_0x25e321){const _0x45b895=_0x18b0d6;let _0x1ab708=0x0,_0x953e38=0x0;for(const _0x2fa8ef of this[_0x45b895(0xa7)]){const {resultsCount:_0x3191ef,totalItemsCount:_0x332920}=_0x2fa8ef[_0x45b895(0xb6)](_0x25e321);_0x1ab708+=_0x3191ef,_0x953e38+=_0x332920;}return{'resultsCount':_0x1ab708,'totalItemsCount':_0x953e38};}}
23
+ const _0x29cccf=_0x2723;(function(_0x867c81,_0x31e754){const _0x42e78a=_0x2723,_0x3b60b7=_0x867c81();while(!![]){try{const _0x1e4590=parseInt(_0x42e78a(0x1ea))/0x1+parseInt(_0x42e78a(0x1eb))/0x2+parseInt(_0x42e78a(0x1de))/0x3+parseInt(_0x42e78a(0x1e9))/0x4*(-parseInt(_0x42e78a(0x1e6))/0x5)+parseInt(_0x42e78a(0x1df))/0x6*(parseInt(_0x42e78a(0x1e8))/0x7)+parseInt(_0x42e78a(0x1e3))/0x8+-parseInt(_0x42e78a(0x1e4))/0x9;if(_0x1e4590===_0x31e754)break;else _0x3b60b7['push'](_0x3b60b7['shift']());}catch(_0x304229){_0x3b60b7['push'](_0x3b60b7['shift']());}}}(_0x181f,0x984c9));function _0x2723(_0x3ef653,_0x49412f){const _0x181fdd=_0x181f();return _0x2723=function(_0x2723ec,_0x3ce004){_0x2723ec=_0x2723ec-0x1dd;let _0x17be7a=_0x181fdd[_0x2723ec];return _0x17be7a;},_0x2723(_0x3ef653,_0x49412f);}import{ListView as _0x23ed58}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x23ed58{[_0x29cccf(0x1dd)];constructor(_0x5a002d,_0x1f2a8d){const _0x15479b=_0x29cccf;super(_0x5a002d),this[_0x15479b(0x1dd)]=_0x1f2a8d,this[_0x15479b(0x1e5)][_0x15479b(0x1e1)](this[_0x15479b(0x1dd)]),this[_0x15479b(0x1e2)]({'attributes':{'class':[_0x15479b(0x1e0)]}});}[_0x29cccf(0x1e7)](_0x10a14a){const _0x418428=_0x29cccf;let _0x1acee9=0x0,_0x1b6059=0x0;for(const _0x30b906 of this[_0x418428(0x1dd)]){const {resultsCount:_0x23099f,totalItemsCount:_0x671182}=_0x30b906[_0x418428(0x1e7)](_0x10a14a);_0x1acee9+=_0x23099f,_0x1b6059+=_0x671182;}return{'resultsCount':_0x1acee9,'totalItemsCount':_0x1b6059};}}function _0x181f(){const _0x319f87=['486489GEflRq','2244814XesGrm','sections','807171LSzaIJ','393018tAzSqw','ck-ai-chat-history__sections','addMany','extendTemplate','8957688gOuTpI','23099760mkSRrq','items','10ZShLjP','filter','21uBvDCD','7432xIqEfo'];_0x181f=function(){return _0x319f87;};return _0x181f();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5acd56=_0x4c09;(function(_0xf258f2,_0x44a151){const _0x4ecef9=_0x4c09,_0x4f4808=_0xf258f2();while(!![]){try{const _0x4f1e29=parseInt(_0x4ecef9(0x201))/0x1+-parseInt(_0x4ecef9(0x1f6))/0x2+parseInt(_0x4ecef9(0x1de))/0x3*(-parseInt(_0x4ecef9(0x210))/0x4)+parseInt(_0x4ecef9(0x1db))/0x5+-parseInt(_0x4ecef9(0x20c))/0x6+-parseInt(_0x4ecef9(0x1da))/0x7+parseInt(_0x4ecef9(0x21a))/0x8*(parseInt(_0x4ecef9(0x227))/0x9);if(_0x4f1e29===_0x44a151)break;else _0x4f4808['push'](_0x4f4808['shift']());}catch(_0x11d8f9){_0x4f4808['push'](_0x4f4808['shift']());}}}(_0x55ed,0xd0139));import{View as _0x4abba0,SearchTextView as _0x525f1f,FormHeaderView as _0x5e011f,ButtonView as _0xed1461}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x1ed0d6,IconCancel as _0x5b0296,IconPlus as _0x246400}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x25556a}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x580699}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x7fb1e0}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x5b3285}from'../aichathistoryui.js';function _0x55ed(){const _0x5d1306=['title','ck-ai-chat-history__empty-message','_createSkeletonView','AI_CHAT_LABEL_NEW_CHAT','ck-rounded-corners','ck-ai-chat-history__content','ck-ai-chat-error','249344nPHhxD','extendTemplate','ck-ai-chat-history','emptyView','locale','_createSearchView','push','itemsViews','bindTemplate','removeItem','fire','994311FrHXfw','hasItems','change:isLoading','_createListItemViews','ck-ai-chat-error__dismiss-button','errorView','ck-reset_all','AI_CHAT_HISTORY_EMPTY_MESSAGE','indexOf','delegate','getItem','2706726GyBHYK','ck-ai-chat__start-conversation','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','3122824SXieUB','_createEmptyStateView','element','fieldView','ltr','execute','queryView','_refreshSearch','ck-hidden','updateTitle','2916520hFwjyK','openChat','remove','bind','change:hasItems','isLoading','render','isSearchViewVisible','set','clear','length','updateHistoryItemsWithCategories','aiHistory','27ojJIqe','children','setTemplate','updateItemTitle','AI_CHAT_HISTORY_HEADING','updateItemLoadingState','ck-ai-header\x20ck-ai-header_history','splice','searchView','resizeButton','addMany','sectionsView','isVisible','6523678cNEZlB','5263640BlBySw','some','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','3kXaKXf','div','value','_updateViewVisibility','search','ck-ai-chat-history__empty','sections','errorMessage','AI_CHAT_HISTORY_SEARCH_LABEL','isEmptyViewVisible','change:errorMessage','removeHistoryItem','skeletonView','isMaximized','_createErrorView','items','updateLoadingState'];_0x55ed=function(){return _0x5d1306;};return _0x55ed();}import{AISkeletonView as _0xf2dddc,SKELETON_DEFINITIONS as _0x2540bc}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3767a1}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x204f76}from'../../aicore/utils/common-translations.js';function _0x4c09(_0x51e62f,_0x5ec38f){const _0x55ed36=_0x55ed();return _0x4c09=function(_0x4c098a,_0x58f32b){_0x4c098a=_0x4c098a-0x1d2;let _0x268987=_0x55ed36[_0x4c098a];return _0x268987;},_0x4c09(_0x51e62f,_0x5ec38f);}export class AIChatHistoryView extends _0x4abba0{[_0x5acd56(0x1d5)];[_0x5acd56(0x206)];[_0x5acd56(0x1ea)];[_0x5acd56(0x1f9)];[_0x5acd56(0x1d8)];[_0x5acd56(0x1d6)];constructor(_0x362840,_0x304ed8){const _0x4fb8ed=_0x5acd56;super(_0x362840),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x202),!0x1),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x21f),!0x0),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x1e5),''),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x1eb),!0x1),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x221),!0x1),this[_0x4fb8ed(0x222)](_0x4fb8ed(0x1e7),!0x1);const _0x52d6ac=new _0x5e011f(_0x362840,{'label':_0x204f76(_0x362840,_0x4fb8ed(0x22b)),'icon':_0x1ed0d6,'class':_0x4fb8ed(0x1d3)});_0x304ed8&&(this[_0x4fb8ed(0x1d6)]=_0x3767a1(_0x362840,this),_0x52d6ac[_0x4fb8ed(0x228)][_0x4fb8ed(0x20e)](this[_0x4fb8ed(0x1d6)])),this[_0x4fb8ed(0x1d8)]=new _0x25556a(_0x362840,[]),this[_0x4fb8ed(0x1d8)][_0x4fb8ed(0x20a)](..._0x5b3285)['to'](this),this[_0x4fb8ed(0x206)]=this[_0x4fb8ed(0x1ec)](),this[_0x4fb8ed(0x1ea)]=this[_0x4fb8ed(0x1f1)](),this[_0x4fb8ed(0x1f9)]=this[_0x4fb8ed(0x211)](),this[_0x4fb8ed(0x1d5)]=this[_0x4fb8ed(0x1fb)](),this['on'](_0x4fb8ed(0x203),()=>this[_0x4fb8ed(0x1e1)]()),this['on'](_0x4fb8ed(0x21e),()=>this[_0x4fb8ed(0x1e1)]()),this['on'](_0x4fb8ed(0x1e8),()=>this[_0x4fb8ed(0x1e1)]()),this[_0x4fb8ed(0x229)]({'tag':_0x4fb8ed(0x1df),'attributes':{'class':['ck',_0x4fb8ed(0x207),_0x4fb8ed(0x1f8),_0x4fb8ed(0x1f3)],'dir':_0x4fb8ed(0x214)},'children':[_0x52d6ac,{'tag':_0x4fb8ed(0x1df),'attributes':{'class':[_0x4fb8ed(0x1f4)]},'children':[this[_0x4fb8ed(0x1ea)],this[_0x4fb8ed(0x206)],this[_0x4fb8ed(0x1f9)],this[_0x4fb8ed(0x1d5)]]}]});}[_0x5acd56(0x1e1)](){const _0x477375=_0x5acd56;this[_0x477375(0x221)]=!this[_0x477375(0x21f)]&&this[_0x477375(0x202)]&&!this[_0x477375(0x1e5)],this[_0x477375(0x1e7)]=!this[_0x477375(0x21f)]&&!this[_0x477375(0x202)]&&!this[_0x477375(0x1e5)];}[_0x5acd56(0x1fb)](){const _0x366acc=_0x5acd56,_0x5b67ed=new _0x525f1f(this[_0x366acc(0x1fa)],{'filteredView':this[_0x366acc(0x1d8)],'queryView':{'label':_0x204f76(this[_0x366acc(0x1fa)],_0x366acc(0x1e6))},'infoView':{'text':{'notFound':{'primary':_0x27deab=>_0x204f76(this[_0x366acc(0x1fa)],_0x366acc(0x1dd),_0x27deab),'secondary':_0x204f76(this[_0x366acc(0x1fa)],_0x366acc(0x20f))}}}});return _0x5b67ed['on'](_0x366acc(0x220),()=>{const _0x4eac9b=_0x366acc;this[_0x4eac9b(0x1d5)][_0x4eac9b(0x228)][_0x4eac9b(0x20e)](this[_0x4eac9b(0x206)],0x1);}),_0x5b67ed[_0x366acc(0x1f7)]({'attributes':{'class':[this[_0x366acc(0x1fe)]['if'](_0x366acc(0x221),_0x366acc(0x218),_0x36e95c=>!_0x36e95c)]}}),_0x5b67ed;}[_0x5acd56(0x1f1)](){const _0x3877bc=_0x5acd56,_0x14f835=new _0xf2dddc(this[_0x3877bc(0x1fa)],_0x2540bc[_0x3877bc(0x226)]);return _0x14f835[_0x3877bc(0x1f7)]({'attributes':{'class':[this[_0x3877bc(0x1fe)]['if'](_0x3877bc(0x21f),_0x3877bc(0x218),_0x516280=>!_0x516280)]}}),_0x14f835;}[_0x5acd56(0x1ec)](){const _0x429c00=_0x5acd56,_0x3d336b=new _0x4abba0(this[_0x429c00(0x1fa)]),_0x2399dc=new _0xed1461(this[_0x429c00(0x1fa)]);return _0x2399dc[_0x429c00(0x222)]({'withText':!0x1,'icon':_0x5b0296,'class':_0x429c00(0x205)}),_0x2399dc[_0x429c00(0x21d)](_0x429c00(0x1d9))['to'](this,_0x429c00(0x202),_0x47a64e=>!!_0x47a64e),_0x2399dc['on'](_0x429c00(0x215),()=>{const _0x4b0652=_0x429c00;this[_0x4b0652(0x1e5)]='';}),_0x3d336b[_0x429c00(0x229)]({'tag':_0x429c00(0x1df),'attributes':{'class':['ck',_0x429c00(0x1f5),this[_0x429c00(0x1fe)]['if'](_0x429c00(0x1e5),_0x429c00(0x218),_0x2f53e8=>!_0x2f53e8)]},'children':[{'tag':'p','children':[{'text':this[_0x429c00(0x1fe)]['to'](_0x429c00(0x1e5))}]},_0x2399dc]}),_0x3d336b;}[_0x5acd56(0x211)](){const _0x473822=_0x5acd56,_0x1a1ac2=new _0xed1461(this[_0x473822(0x1fa)]);_0x1a1ac2[_0x473822(0x222)]({'label':_0x204f76(this[_0x473822(0x1fa)],_0x473822(0x1f2)),'withText':!0x0,'icon':_0x246400,'class':_0x473822(0x20d)}),_0x1a1ac2['on'](_0x473822(0x215),()=>{const _0x5618aa=_0x473822;this[_0x5618aa(0x200)](_0x5618aa(0x21b));});const _0x483641=new _0x4abba0(this[_0x473822(0x1fa)]);return _0x483641[_0x473822(0x229)]({'tag':_0x473822(0x1df),'attributes':{'class':[_0x473822(0x1e3),this[_0x473822(0x1fe)]['if'](_0x473822(0x1e7),_0x473822(0x218),_0x131ab9=>!_0x131ab9)]},'children':[{'tag':'p','attributes':{'class':[_0x473822(0x1f0)]},'children':[_0x204f76(this[_0x473822(0x1fa)],_0x473822(0x208))]},_0x1a1ac2]}),_0x483641;}[_0x5acd56(0x204)](_0x1f81f8,_0x12f3a6){const _0x2c0cfc=_0x5acd56,_0x382330=[];for(const _0x3530c7 of _0x1f81f8){const _0x373218=new _0x7fb1e0(_0x12f3a6,_0x3530c7);_0x373218[_0x2c0cfc(0x20a)](..._0x5b3285)['to'](this),_0x382330[_0x2c0cfc(0x1fc)](_0x373218);}return _0x382330;}[_0x5acd56(0x225)](_0x176b36){const _0x1cffea=_0x5acd56,_0x45cbff=this[_0x1cffea(0x1fa)]||'en',_0x1e6b90=[];for(const _0x1a34ea of _0x176b36){const _0x41c860=this[_0x1cffea(0x204)](_0x1a34ea[_0x1cffea(0x1ed)],_0x45cbff);_0x1e6b90[_0x1cffea(0x1fc)](new _0x580699(_0x45cbff,{'title':_0x1a34ea[_0x1cffea(0x1ef)],'items':_0x41c860}));}this[_0x1cffea(0x1d8)][_0x1cffea(0x1e4)]=_0x1e6b90,this[_0x1cffea(0x1d8)][_0x1cffea(0x1ed)][_0x1cffea(0x223)](),this[_0x1cffea(0x1d8)][_0x1cffea(0x1ed)][_0x1cffea(0x1d7)](_0x1e6b90),this[_0x1cffea(0x202)]=_0x176b36[_0x1cffea(0x1dc)](_0x5eb4d2=>_0x5eb4d2[_0x1cffea(0x1ed)][_0x1cffea(0x224)]>0x0),this[_0x1cffea(0x217)]();}[_0x5acd56(0x1e9)](_0xb1689){const _0xf4b8d5=_0x5acd56;for(const _0x3a1eba of this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1e4)]){const _0x50771b=_0x3a1eba[_0xf4b8d5(0x20b)](_0xb1689);if(_0x50771b){if(_0x3a1eba[_0xf4b8d5(0x1ff)](_0x50771b),0x0===_0x3a1eba[_0xf4b8d5(0x1fd)][_0xf4b8d5(0x224)]){const _0xaf5a49=this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1e4)][_0xf4b8d5(0x209)](_0x3a1eba);-0x1!==_0xaf5a49&&(this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1e4)][_0xf4b8d5(0x1d4)](_0xaf5a49,0x1),this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1ed)][_0xf4b8d5(0x21c)](_0x3a1eba));}this[_0xf4b8d5(0x202)]=this[_0xf4b8d5(0x1d8)][_0xf4b8d5(0x1e4)][_0xf4b8d5(0x224)]>0x0,this[_0xf4b8d5(0x217)]();break;}}}[_0x5acd56(0x22a)](_0x14d072,_0x17cc81){const _0x3b17ef=_0x5acd56;for(const _0x4453f8 of this[_0x3b17ef(0x1d8)][_0x3b17ef(0x1e4)]){const _0x3add14=_0x4453f8[_0x3b17ef(0x20b)](_0x14d072);if(_0x3add14){_0x3add14[_0x3b17ef(0x219)](_0x17cc81);break;}}}[_0x5acd56(0x1d2)](_0x53a138,_0x3ddcd5,_0x3ab3c0){const _0x3c9131=_0x5acd56;for(const _0x347c6a of this[_0x3c9131(0x1d8)][_0x3c9131(0x1e4)]){const _0x55de75=_0x347c6a[_0x3c9131(0x20b)](_0x53a138);if(_0x55de75){_0x55de75[_0x3c9131(0x1ee)](_0x3ddcd5,_0x3ab3c0);break;}}}[_0x5acd56(0x217)](){const _0x447dcf=_0x5acd56;if(this[_0x447dcf(0x202)]){const _0x586d22=this[_0x447dcf(0x1d5)][_0x447dcf(0x216)][_0x447dcf(0x213)]?.[_0x447dcf(0x212)]?.[_0x447dcf(0x1e0)]||'';this[_0x447dcf(0x1d5)][_0x447dcf(0x1e2)](_0x586d22);}}}
23
+ const _0xf223ee=_0x53b3;function _0x560e(){const _0x15c358=['delegate','bind','extendTemplate','render','_updateViewVisibility','search','removeItem','730VEeCUI','ck-ai-chat-error','2997765inkQdr','sectionsView','118188uvBBNq','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-reset_all','updateLoadingState','errorView','54187jSqKSP','add','isMaximized','5566624sOCybQ','ck-ai-chat-error__dismiss-button','39zEguVI','bindTemplate','sections','ck-ai-chat-history__content','fire','fieldView','ck-ai-chat-history__empty','searchView','resizeButton','change:hasItems','hasItems','div','_createSkeletonView','ck-hidden','ck-ai-chat-history__empty-message','ck-ai-header\x20ck-ai-header_history','_refreshSearch','items','addMany','22840543UAlDky','value','element','_createListItemViews','removeHistoryItem','ck-rounded-corners','AI_CHAT_HISTORY_HEADING','_createEmptyStateView','ck-ai-chat__start-conversation','isSearchViewVisible','294Hktrpt','locale','emptyView','isLoading','AI_CHAT_LABEL_NEW_CHAT','change:errorMessage','itemsViews','push','length','children','_createErrorView','title','_createSearchView','splice','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','ck-ai-chat-history','getItem','updateTitle','730OmXthv','updateItemTitle','clear','indexOf','errorMessage','isVisible','change:isLoading','set','aiHistory','ltr','AI_CHAT_HISTORY_SEARCH_LABEL','some','isEmptyViewVisible','queryView','openChat','4827nHPkkF','updateHistoryItemsWithCategories','updateItemLoadingState','execute','remove','30904ycjSzq','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','setTemplate','skeletonView'];_0x560e=function(){return _0x15c358;};return _0x560e();}(function(_0x2f1314,_0x58a9e9){const _0x1a2ba7=_0x53b3,_0x5665fd=_0x2f1314();while(!![]){try{const _0x619f0a=parseInt(_0x1a2ba7(0x154))/0x1*(-parseInt(_0x1a2ba7(0x145))/0x2)+-parseInt(_0x1a2ba7(0x172))/0x3*(parseInt(_0x1a2ba7(0x159))/0x4)+-parseInt(_0x1a2ba7(0x166))/0x5+-parseInt(_0x1a2ba7(0x133))/0x6*(parseInt(_0x1a2ba7(0x16d))/0x7)+parseInt(_0x1a2ba7(0x170))/0x8+parseInt(_0x1a2ba7(0x168))/0x9*(parseInt(_0x1a2ba7(0x164))/0xa)+parseInt(_0x1a2ba7(0x129))/0xb;if(_0x619f0a===_0x58a9e9)break;else _0x5665fd['push'](_0x5665fd['shift']());}catch(_0x700a29){_0x5665fd['push'](_0x5665fd['shift']());}}}(_0x560e,0xd937a));function _0x53b3(_0x3be1a5,_0x17b721){const _0x560e40=_0x560e();return _0x53b3=function(_0x53b35b,_0x5e7e8f){_0x53b35b=_0x53b35b-0x11e;let _0x242afb=_0x560e40[_0x53b35b];return _0x242afb;},_0x53b3(_0x3be1a5,_0x17b721);}import{View as _0x43387b,SearchTextView as _0x53dfc4,FormHeaderView as _0x1add31,ButtonView as _0x3a15ed}from'ckeditor5/src/ui.js';import{IconAIHistory as _0xa20093,IconCancel as _0x2602ab,IconPlus as _0xedce62}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x39fe80}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x2f86c9}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x2ffbd3}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x2a677e}from'../aichathistoryui.js';import{AISkeletonView as _0x3b0813,SKELETON_DEFINITIONS as _0x2bac8b}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x4fffaf}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4592fe}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x43387b{[_0xf223ee(0x179)];[_0xf223ee(0x16c)];[_0xf223ee(0x15c)];[_0xf223ee(0x135)];[_0xf223ee(0x167)];[_0xf223ee(0x11e)];constructor(_0xc4bbc5,_0xc515a7){const _0x923182=_0xf223ee;super(_0xc4bbc5),this[_0x923182(0x14c)](_0x923182(0x120),!0x1),this[_0x923182(0x14c)](_0x923182(0x136),!0x0),this[_0x923182(0x14c)](_0x923182(0x149),''),this[_0x923182(0x14c)](_0x923182(0x16f),!0x1),this[_0x923182(0x14c)](_0x923182(0x132),!0x1),this[_0x923182(0x14c)](_0x923182(0x151),!0x1);const _0x5d2db2=new _0x1add31(_0xc4bbc5,{'label':_0x4592fe(_0xc4bbc5,_0x923182(0x12f)),'icon':_0xa20093,'class':_0x923182(0x125)});_0xc515a7&&(this[_0x923182(0x11e)]=_0x4fffaf(_0xc4bbc5,this),_0x5d2db2[_0x923182(0x13c)][_0x923182(0x16e)](this[_0x923182(0x11e)])),this[_0x923182(0x167)]=new _0x39fe80(_0xc4bbc5,[]),this[_0x923182(0x167)][_0x923182(0x15d)](..._0x2a677e)['to'](this),this[_0x923182(0x16c)]=this[_0x923182(0x13d)](),this[_0x923182(0x15c)]=this[_0x923182(0x122)](),this[_0x923182(0x135)]=this[_0x923182(0x130)](),this[_0x923182(0x179)]=this[_0x923182(0x13f)](),this['on'](_0x923182(0x14b),()=>this[_0x923182(0x161)]()),this['on'](_0x923182(0x11f),()=>this[_0x923182(0x161)]()),this['on'](_0x923182(0x138),()=>this[_0x923182(0x161)]()),this[_0x923182(0x15b)]({'tag':_0x923182(0x121),'attributes':{'class':['ck',_0x923182(0x16a),_0x923182(0x142),_0x923182(0x12e)],'dir':_0x923182(0x14e)},'children':[_0x5d2db2,{'tag':_0x923182(0x121),'attributes':{'class':[_0x923182(0x175)]},'children':[this[_0x923182(0x15c)],this[_0x923182(0x16c)],this[_0x923182(0x135)],this[_0x923182(0x179)]]}]});}[_0xf223ee(0x161)](){const _0x386235=_0xf223ee;this[_0x386235(0x132)]=!this[_0x386235(0x136)]&&this[_0x386235(0x120)]&&!this[_0x386235(0x149)],this[_0x386235(0x151)]=!this[_0x386235(0x136)]&&!this[_0x386235(0x120)]&&!this[_0x386235(0x149)];}[_0xf223ee(0x13f)](){const _0x26ab9f=_0xf223ee,_0x5b38bb=new _0x53dfc4(this[_0x26ab9f(0x134)],{'filteredView':this[_0x26ab9f(0x167)],'queryView':{'label':_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x14f))},'infoView':{'text':{'notFound':{'primary':_0x51b247=>_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x141),_0x51b247),'secondary':_0x4592fe(this[_0x26ab9f(0x134)],_0x26ab9f(0x15a))}}}});return _0x5b38bb['on'](_0x26ab9f(0x160),()=>{const _0x224080=_0x26ab9f;this[_0x224080(0x179)][_0x224080(0x13c)][_0x224080(0x16e)](this[_0x224080(0x16c)],0x1);}),_0x5b38bb[_0x26ab9f(0x15f)]({'attributes':{'class':[this[_0x26ab9f(0x173)]['if'](_0x26ab9f(0x132),_0x26ab9f(0x123),_0x1a2e9=>!_0x1a2e9)]}}),_0x5b38bb;}[_0xf223ee(0x122)](){const _0x2f5861=_0xf223ee,_0x4e63de=new _0x3b0813(this[_0x2f5861(0x134)],_0x2bac8b[_0x2f5861(0x14d)]);return _0x4e63de[_0x2f5861(0x15f)]({'attributes':{'class':[this[_0x2f5861(0x173)]['if'](_0x2f5861(0x136),_0x2f5861(0x123),_0x110bee=>!_0x110bee)]}}),_0x4e63de;}[_0xf223ee(0x13d)](){const _0x271da0=_0xf223ee,_0x32d2c2=new _0x43387b(this[_0x271da0(0x134)]),_0x45169d=new _0x3a15ed(this[_0x271da0(0x134)]);return _0x45169d[_0x271da0(0x14c)]({'withText':!0x1,'icon':_0x2602ab,'class':_0x271da0(0x171)}),_0x45169d[_0x271da0(0x15e)](_0x271da0(0x14a))['to'](this,_0x271da0(0x120),_0x57564c=>!!_0x57564c),_0x45169d['on'](_0x271da0(0x157),()=>{const _0x4e0e9b=_0x271da0;this[_0x4e0e9b(0x149)]='';}),_0x32d2c2[_0x271da0(0x15b)]({'tag':_0x271da0(0x121),'attributes':{'class':['ck',_0x271da0(0x165),this[_0x271da0(0x173)]['if'](_0x271da0(0x149),_0x271da0(0x123),_0x297569=>!_0x297569)]},'children':[{'tag':'p','children':[{'text':this[_0x271da0(0x173)]['to'](_0x271da0(0x149))}]},_0x45169d]}),_0x32d2c2;}[_0xf223ee(0x130)](){const _0x45622a=_0xf223ee,_0x400fc9=new _0x3a15ed(this[_0x45622a(0x134)]);_0x400fc9[_0x45622a(0x14c)]({'label':_0x4592fe(this[_0x45622a(0x134)],_0x45622a(0x137)),'withText':!0x0,'icon':_0xedce62,'class':_0x45622a(0x131)}),_0x400fc9['on'](_0x45622a(0x157),()=>{const _0x56a67c=_0x45622a;this[_0x56a67c(0x176)](_0x56a67c(0x153));});const _0x5c5a18=new _0x43387b(this[_0x45622a(0x134)]);return _0x5c5a18[_0x45622a(0x15b)]({'tag':_0x45622a(0x121),'attributes':{'class':[_0x45622a(0x178),this[_0x45622a(0x173)]['if'](_0x45622a(0x151),_0x45622a(0x123),_0x395c14=>!_0x395c14)]},'children':[{'tag':'p','attributes':{'class':[_0x45622a(0x124)]},'children':[_0x4592fe(this[_0x45622a(0x134)],_0x45622a(0x169))]},_0x400fc9]}),_0x5c5a18;}[_0xf223ee(0x12c)](_0x3ee53d,_0x507638){const _0x5f9a65=_0xf223ee,_0x4b5ef0=[];for(const _0x2d4ba6 of _0x3ee53d){const _0x40379a=new _0x2ffbd3(_0x507638,_0x2d4ba6);_0x40379a[_0x5f9a65(0x15d)](..._0x2a677e)['to'](this),_0x4b5ef0[_0x5f9a65(0x13a)](_0x40379a);}return _0x4b5ef0;}[_0xf223ee(0x155)](_0x597007){const _0x23fc5b=_0xf223ee,_0x10492a=this[_0x23fc5b(0x134)]||'en',_0xf5e4d9=[];for(const _0x2c7c56 of _0x597007){const _0x506139=this[_0x23fc5b(0x12c)](_0x2c7c56[_0x23fc5b(0x127)],_0x10492a);_0xf5e4d9[_0x23fc5b(0x13a)](new _0x2f86c9(_0x10492a,{'title':_0x2c7c56[_0x23fc5b(0x13e)],'items':_0x506139}));}this[_0x23fc5b(0x167)][_0x23fc5b(0x174)]=_0xf5e4d9,this[_0x23fc5b(0x167)][_0x23fc5b(0x127)][_0x23fc5b(0x147)](),this[_0x23fc5b(0x167)][_0x23fc5b(0x127)][_0x23fc5b(0x128)](_0xf5e4d9),this[_0x23fc5b(0x120)]=_0x597007[_0x23fc5b(0x150)](_0x3b37b3=>_0x3b37b3[_0x23fc5b(0x127)][_0x23fc5b(0x13b)]>0x0),this[_0x23fc5b(0x126)]();}[_0xf223ee(0x12d)](_0x836ffc){const _0xce6fa1=_0xf223ee;for(const _0xa7d76d of this[_0xce6fa1(0x167)][_0xce6fa1(0x174)]){const _0x154468=_0xa7d76d[_0xce6fa1(0x143)](_0x836ffc);if(_0x154468){if(_0xa7d76d[_0xce6fa1(0x163)](_0x154468),0x0===_0xa7d76d[_0xce6fa1(0x139)][_0xce6fa1(0x13b)]){const _0x2e5587=this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x148)](_0xa7d76d);-0x1!==_0x2e5587&&(this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x140)](_0x2e5587,0x1),this[_0xce6fa1(0x167)][_0xce6fa1(0x127)][_0xce6fa1(0x158)](_0xa7d76d));}this[_0xce6fa1(0x120)]=this[_0xce6fa1(0x167)][_0xce6fa1(0x174)][_0xce6fa1(0x13b)]>0x0,this[_0xce6fa1(0x126)]();break;}}}[_0xf223ee(0x146)](_0x15739a,_0x51aee2){const _0x586791=_0xf223ee;for(const _0x5a7b7d of this[_0x586791(0x167)][_0x586791(0x174)]){const _0x13c379=_0x5a7b7d[_0x586791(0x143)](_0x15739a);if(_0x13c379){_0x13c379[_0x586791(0x144)](_0x51aee2);break;}}}[_0xf223ee(0x156)](_0x54a2b5,_0x4c49f3,_0x1805a7){const _0x586114=_0xf223ee;for(const _0x43d92e of this[_0x586114(0x167)][_0x586114(0x174)]){const _0x436786=_0x43d92e[_0x586114(0x143)](_0x54a2b5);if(_0x436786){_0x436786[_0x586114(0x16b)](_0x4c49f3,_0x1805a7);break;}}}[_0xf223ee(0x126)](){const _0x265bbe=_0xf223ee;if(this[_0x265bbe(0x120)]){const _0x1b336c=this[_0x265bbe(0x179)][_0x265bbe(0x152)][_0x265bbe(0x177)]?.[_0x265bbe(0x12b)]?.[_0x265bbe(0x12a)]||'';this[_0x265bbe(0x179)][_0x265bbe(0x162)](_0x1b336c);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x876b10=_0xba2b;(function(_0xbedb7c,_0x36b08e){const _0x4e6c7f=_0xba2b,_0xd471e3=_0xbedb7c();while(!![]){try{const _0x5312bd=-parseInt(_0x4e6c7f(0x13a))/0x1+parseInt(_0x4e6c7f(0x12c))/0x2*(-parseInt(_0x4e6c7f(0x151))/0x3)+parseInt(_0x4e6c7f(0x139))/0x4*(-parseInt(_0x4e6c7f(0x10c))/0x5)+-parseInt(_0x4e6c7f(0xf7))/0x6+-parseInt(_0x4e6c7f(0x148))/0x7+parseInt(_0x4e6c7f(0xe9))/0x8+parseInt(_0x4e6c7f(0x131))/0x9;if(_0x5312bd===_0x36b08e)break;else _0xd471e3['push'](_0xd471e3['shift']());}catch(_0x55848e){_0xd471e3['push'](_0xd471e3['shift']());}}}(_0x1d35,0xe804e));import{createParser as _0x33effb}from'eventsource-parser';import{ContextPlugin as _0x2edd48}from'ckeditor5/src/core.js';import{CKEditorError as _0x1742ee}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5c28a4){const _0x25b99b=_0xba2b;_0x5c28a4[_0x25b99b(0x112)]=_0x25b99b(0x146),_0x5c28a4[_0x25b99b(0xec)]=_0x25b99b(0x153),_0x5c28a4[_0x25b99b(0x115)]=_0x25b99b(0x11d),_0x5c28a4[_0x25b99b(0x138)]=_0x25b99b(0x106),_0x5c28a4[_0x25b99b(0x110)]=_0x25b99b(0xeb),_0x5c28a4[_0x25b99b(0x10b)]=_0x25b99b(0x145),_0x5c28a4[_0x25b99b(0x127)]=_0x25b99b(0x11e),_0x5c28a4[_0x25b99b(0x11f)]=_0x25b99b(0xd3);}(AIActionsNames||(AIActionsNames={}));function _0xba2b(_0x1ca66e,_0x8541f){const _0x1d3503=_0x1d35();return _0xba2b=function(_0xba2bae,_0x31adc2){_0xba2bae=_0xba2bae-0xcf;let _0x3ac2a5=_0x1d3503[_0xba2bae];return _0x3ac2a5;},_0xba2b(_0x1ca66e,_0x8541f);}function _0x1d35(){const _0x20514e=['AIConnector','100','json','5679DFSnkP','decode','fix-grammar','CloudServices','ai-request-failed','/web-resources/','stringify','/models/1','/web-resources','excludeEmpty','statusText','queryAssistant','uploadFile','request','isPremiumPlugin','translate','GET','define','deleteConversation','fetchConversations','feed','getModels','fetchConversation','parse','_token','deleteFile','get','upsertAIChatRating','true','config','isOfficialPlugin','read','value','getReader','attributes','context','positiveCount','9482584nKvEja','updateConversation','make-shorter','FIX_GRAMMAR','fetchDocument','/actions/custom/calls','Content-Type','callSystemReview','fetchConversationMessages','reset','limit','/documents/','status','executeAction','10727610lKgNFn','/ratings','/reviews/custom/calls','keys','ai.serviceUrl','/conversations/','_handleError','https://ai.cke-cs.com/v1','/files/','body','push','items','/reviews/system/','modificationId','/calls/','make-longer','/reviews/custom/calls/','upsertAIReviewRating','totalCount','then','MAKE_TONE_CASUAL','1175crOTMY','callCustomReview','/actions/custom/calls/','/actions/system/','MAKE_SHORTER','toString','CONTINUE','token','application/json','IMPROVE_WRITING','file','requires','uploadDocument','data','DELETE','_apiUrl','name','improve-writing','make-tone-formal','TRANSLATE','/documents','ai-missing-token','ai-request-aborted','pluginName','upsertCustomAIReviewRating','/messages','text','MAKE_TONE_FORMAL','PUT','length','deleteDocument','/calls','450azgKkA','/conversations','append','_sendApiRequest','PATCH','45229563TnFhJm','catch','uploadUrl','startConversation','/messages/','group','signal','MAKE_LONGER','5944iwajkB','1029683PJafzo','/files','upsertAIActionRating','/conversations?','search','_decoder','executeCustomAction','init','POST','plugins','releaseLock','make-tone-casual','continue','abortController','11674089Gwdxiz','_getStreamReader','AbortError','Bearer\x20','deleteWebResource','upsertCustomAIActionRating'];_0x1d35=function(){return _0x20514e;};return _0x1d35();}export class AIConnector extends _0x2edd48{[_0x876b10(0x11b)];[_0x876b10(0xdc)];[_0x876b10(0x13f)];static get[_0x876b10(0x117)](){const _0x13a16b=_0x876b10;return[_0x13a16b(0x154)];}static get[_0x876b10(0x123)](){const _0xb4bc73=_0x876b10;return _0xb4bc73(0x14e);}static get[_0x876b10(0xe2)](){return!0x0;}static get[_0x876b10(0xd2)](){return!0x0;}constructor(_0x26c064){const _0x4a43f5=_0x876b10;super(_0x26c064),this[_0x4a43f5(0xe7)][_0x4a43f5(0xe1)][_0x4a43f5(0xd5)](_0x4a43f5(0xfb),_0x4a43f5(0xfe)),this[_0x4a43f5(0x11b)]=this[_0x4a43f5(0xe7)][_0x4a43f5(0xe1)][_0x4a43f5(0xde)](_0x4a43f5(0xfb)),this[_0x4a43f5(0xdc)]=null,this[_0x4a43f5(0x13f)]=new TextDecoder();}[_0x876b10(0x141)](){const _0x5662af=_0x876b10,_0x34d107=this[_0x5662af(0xe7)][_0x5662af(0x143)][_0x5662af(0xde)](_0x5662af(0x154));if(!_0x34d107[_0x5662af(0x113)])throw new _0x1742ee(_0x5662af(0x121),this);this[_0x5662af(0xdc)]=_0x34d107[_0x5662af(0x113)];}[_0x876b10(0x134)](_0x3ed264,_0x269509){const _0x179ef6=_0x876b10,_0x490ef5=this[_0x179ef6(0x12f)](_0x179ef6(0x12d),_0x179ef6(0x142),{'id':_0x3ed264,'group':_0x269509});return{'getConversation':async()=>(await _0x490ef5[_0x179ef6(0xd1)])[_0x179ef6(0x150)](),'abortController':_0x490ef5[_0x179ef6(0x147)]};}[_0x876b10(0xcf)]({message:_0x5b2195,conversationId:_0x541e16,parts:_0x4006a4,capabilities:_0x2695c8,model:_0x432d9f,quickActionData:_0x1d264e}){const _0xc3eb12=_0x876b10,_0x1dbd4e={..._0x1d264e&&{'quickActionData':_0x1d264e}},_0x4305bf={'prompt':_0x5b2195,'content':_0x4006a4,'model':_0x432d9f,..._0x2695c8&&{'capabilities':_0x2695c8},...Object[_0xc3eb12(0xfa)](_0x1dbd4e)[_0xc3eb12(0x129)]>0x0&&{'attributes':_0x1dbd4e}},_0x21975c=this[_0xc3eb12(0x12f)](_0xc3eb12(0xfc)+_0x541e16+_0xc3eb12(0x125),_0xc3eb12(0x142),_0x4305bf);return{'getStream':async()=>{const _0x52099a=_0xc3eb12,_0x18af1d=(await _0x21975c[_0x52099a(0xd1)])[_0x52099a(0x100)];return this[_0x52099a(0x149)](_0x18af1d);},'abortController':_0x21975c[_0xc3eb12(0x147)]};}[_0x876b10(0x140)]({content:_0x5bf382,message:_0x4640c2,model:_0x25c24c,outputFormat:_0x31099d}){const _0x2c7e73=_0x876b10,_0x2f9177={'content':[{'type':_0x2c7e73(0x126),'content':_0x5bf382}],'prompt':_0x4640c2,'model':_0x25c24c,'outputFormat':_0x31099d},_0x57836d=this[_0x2c7e73(0x12f)](_0x2c7e73(0xee),_0x2c7e73(0x142),_0x2f9177);return{'getStream':async()=>{const _0x184228=_0x2c7e73,_0x2f17b7=(await _0x57836d[_0x184228(0xd1)])[_0x184228(0x100)];return this[_0x184228(0x149)](_0x2f17b7);},'abortController':_0x57836d[_0x2c7e73(0x147)]};}[_0x876b10(0xf6)]({actionName:_0x10f259,content:_0x380741,args:_0x5c9980}){const _0x33accb=_0x876b10,_0x1f8e07={'content':[{'type':_0x33accb(0x126),'content':_0x380741}],'args':_0x5c9980},_0x326309=this[_0x33accb(0x12f)](_0x33accb(0x10f)+_0x10f259+_0x33accb(0x12b),_0x33accb(0x142),_0x1f8e07);return{'getStream':async()=>{const _0x5c6049=_0x33accb,_0x52778d=(await _0x326309[_0x5c6049(0xd1)])[_0x5c6049(0x100)];return this[_0x5c6049(0x149)](_0x52778d);},'abortController':_0x326309[_0x33accb(0x147)]};}[_0x876b10(0xd0)](_0x21e1d0,_0x18d1ce,_0x3641d4){const _0x4a7225=_0x876b10,_0x495508=new FormData();_0x495508[_0x4a7225(0x12e)](_0x4a7225(0x116),_0x18d1ce,_0x18d1ce[_0x4a7225(0x11c)]),_0x3641d4&&_0x495508[_0x4a7225(0x12e)](_0x4a7225(0xe6),JSON[_0x4a7225(0x157)](_0x3641d4));const _0x46338b=this[_0x4a7225(0x12f)](_0x4a7225(0xfc)+_0x21e1d0+_0x4a7225(0x13b),_0x4a7225(0x142),_0x495508);return{'getId':async()=>(await _0x46338b[_0x4a7225(0xd1)])[_0x4a7225(0x150)](),'abortController':_0x46338b[_0x4a7225(0x147)]};}[_0x876b10(0xed)](_0x452f2b,_0x4b9822){const _0x1a6cce=_0x876b10,_0x430e91=this[_0x1a6cce(0x12f)](_0x1a6cce(0xfc)+_0x452f2b+_0x1a6cce(0xf4)+_0x4b9822,_0x1a6cce(0xd4));return{'getDocument':async()=>(await _0x430e91[_0x1a6cce(0xd1)])[_0x1a6cce(0x150)](),'abortController':_0x430e91[_0x1a6cce(0x147)]};}[_0x876b10(0x118)](_0x26f0dd,_0x5a4c89,_0x3fdc2e){const _0x4290eb=_0x876b10,_0x49e80e={'content':_0x5a4c89};_0x3fdc2e&&(_0x49e80e[_0x4290eb(0xe6)]=_0x3fdc2e);const _0x26b3ef=this[_0x4290eb(0x12f)](_0x4290eb(0xfc)+_0x26f0dd+_0x4290eb(0x120),_0x4290eb(0x142),_0x49e80e);return{'getId':async()=>(await _0x26b3ef[_0x4290eb(0xd1)])[_0x4290eb(0x150)](),'abortController':_0x26b3ef[_0x4290eb(0x147)]};}[_0x876b10(0xd7)](_0xf163ac,_0x2b98eb){const _0x18eb34=_0x876b10,_0x91e235=new URLSearchParams();_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x15a),_0x18eb34(0xe0)),_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0xf3),_0x18eb34(0x14f)),_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x136),_0xf163ac),_0x2b98eb&&_0x91e235[_0x18eb34(0x12e)](_0x18eb34(0x13e),_0x2b98eb);const _0x1b3f41=this[_0x18eb34(0x12f)](_0x18eb34(0x13d)+_0x91e235[_0x18eb34(0x111)](),_0x18eb34(0xd4));return{'getConversations':async()=>{const _0x5e8b16=_0x18eb34,_0x2dabd3=await _0x1b3f41[_0x5e8b16(0xd1)];return(await _0x2dabd3[_0x5e8b16(0x150)]())[_0x5e8b16(0x102)];},'abortController':_0x1b3f41[_0x18eb34(0x147)]};}[_0x876b10(0xd6)](_0x26c7a2){const _0x17f16c=_0x876b10,_0x30c91f=this[_0x17f16c(0x12f)](_0x17f16c(0xfc)+_0x26c7a2,_0x17f16c(0x11a));return{'execute':async()=>{const _0x17833e=_0x17f16c;await _0x30c91f[_0x17833e(0xd1)];},'abortController':_0x30c91f[_0x17f16c(0x147)]};}[_0x876b10(0xea)](_0x1bb0c7,_0x3970a8){const _0xa156a8=_0x876b10,_0x38050c=this[_0xa156a8(0x12f)](_0xa156a8(0xfc)+_0x1bb0c7,_0xa156a8(0x130),_0x3970a8);return{'getResult':async()=>(await _0x38050c[_0xa156a8(0xd1)],_0x3970a8),'abortController':_0x38050c[_0xa156a8(0x147)]};}[_0x876b10(0xda)](_0x4ab69b){const _0x3ef1a1=_0x876b10,_0x24f6a7=this[_0x3ef1a1(0x12f)](_0x3ef1a1(0xfc)+_0x4ab69b,_0x3ef1a1(0xd4));return{'getConversation':async()=>(await _0x24f6a7[_0x3ef1a1(0xd1)])[_0x3ef1a1(0x150)](),'abortController':_0x24f6a7[_0x3ef1a1(0x147)]};}[_0x876b10(0xf1)](_0x3ffa75){const _0x259633=_0x876b10,_0x29b7eb=this[_0x259633(0x12f)](_0x259633(0xfc)+_0x3ffa75+_0x259633(0x125),_0x259633(0xd4));return{'getMessages':async()=>{const _0x2381cc=_0x259633,_0x42d760=await _0x29b7eb[_0x2381cc(0xd1)];return(await _0x42d760[_0x2381cc(0x150)]())[_0x2381cc(0x102)];},'abortController':_0x29b7eb[_0x259633(0x147)]};}[_0x876b10(0x133)](_0x51c25f,_0x18cb9a,_0x21ab4e){const _0x48461e=_0x876b10,_0x5bf0d7=this[_0x48461e(0x12f)](_0x48461e(0xfc)+_0x51c25f+_0x48461e(0x159),_0x48461e(0x142),{'url':_0x18cb9a,'attributes':_0x21ab4e});return{'getId':async()=>(await _0x5bf0d7[_0x48461e(0xd1)])[_0x48461e(0x150)](),'abortController':_0x5bf0d7[_0x48461e(0x147)]};}[_0x876b10(0xd9)](){const _0x4dcb67=_0x876b10,_0x533ddd=this[_0x4dcb67(0x12f)](_0x4dcb67(0x158),_0x4dcb67(0xd4));return{'list':async()=>await(await _0x533ddd[_0x4dcb67(0xd1)])[_0x4dcb67(0x150)](),'abortController':_0x533ddd[_0x4dcb67(0x147)]};}[_0x876b10(0xdd)](_0x40a2db,_0x35db83){const _0x279ca4=_0x876b10,_0xfd63e3=this[_0x279ca4(0x12f)](_0x279ca4(0xfc)+_0x40a2db+_0x279ca4(0xff)+_0x35db83,_0x279ca4(0x11a));return{'execute':async()=>{const _0x209a12=_0x279ca4;await _0xfd63e3[_0x209a12(0xd1)];},'abortController':_0xfd63e3[_0x279ca4(0x147)]};}[_0x876b10(0x12a)](_0x3ab5a8,_0x3ce122){const _0xbf4fa4=_0x876b10,_0x479c31=this[_0xbf4fa4(0x12f)](_0xbf4fa4(0xfc)+_0x3ab5a8+_0xbf4fa4(0xf4)+_0x3ce122,_0xbf4fa4(0x11a));return{'execute':async()=>{const _0x5a1b18=_0xbf4fa4;await _0x479c31[_0x5a1b18(0xd1)];},'abortController':_0x479c31[_0xbf4fa4(0x147)]};}[_0x876b10(0x14c)](_0x1c94ab,_0x2fcfcf){const _0x1d5186=_0x876b10,_0x1553da=this[_0x1d5186(0x12f)](_0x1d5186(0xfc)+_0x1c94ab+_0x1d5186(0x156)+_0x2fcfcf,_0x1d5186(0x11a));return{'execute':async()=>{const _0x4a93e3=_0x1d5186;await _0x1553da[_0x4a93e3(0xd1)];},'abortController':_0x1553da[_0x1d5186(0x147)]};}[_0x876b10(0xf0)]({reviewName:_0x289624,content:_0x1a9ded,args:_0x2a6480}){const _0x1d7d3f=_0x876b10,_0x13269f=this[_0x1d7d3f(0x12f)](_0x1d7d3f(0x103)+_0x289624+_0x1d7d3f(0x12b),_0x1d7d3f(0x142),{'content':[{'type':_0x1d7d3f(0x126),'content':_0x1a9ded}],'args':_0x2a6480});return{'getStream':async()=>{const _0x225686=_0x1d7d3f,_0x3e48bc=(await _0x13269f[_0x225686(0xd1)])[_0x225686(0x100)];return this[_0x225686(0x149)](_0x3e48bc);},'abortController':_0x13269f[_0x1d7d3f(0x147)]};}[_0x876b10(0x10d)]({content:_0x57c32a,prompt:_0x3e1d36,model:_0x473461}){const _0x429227=_0x876b10,_0xe11836=this[_0x429227(0x12f)](_0x429227(0xf9),_0x429227(0x142),{'content':[{'type':_0x429227(0x126),'content':_0x57c32a}],'prompt':_0x3e1d36,'model':_0x473461});return{'getStream':async()=>{const _0x24c43b=_0x429227,_0x1a41d3=(await _0xe11836[_0x24c43b(0xd1)])[_0x24c43b(0x100)];return this[_0x24c43b(0x149)](_0x1a41d3);},'abortController':_0xe11836[_0x429227(0x147)]};}[_0x876b10(0xdf)](_0x3fdbee,_0x3694d8,_0x2d9c16){const _0x225a57=_0x876b10,_0x229f06=this[_0x225a57(0x12f)](_0x225a57(0xfc)+_0x3fdbee+_0x225a57(0x135)+_0x3694d8+_0x225a57(0xf8),_0x225a57(0x128),{'positiveCount':_0x2d9c16[_0x225a57(0xe8)],'totalCount':_0x2d9c16[_0x225a57(0x109)],'modificationId':_0x2d9c16[_0x225a57(0x104)]});return{'execute':async()=>{const _0x408ea9=_0x225a57;await _0x229f06[_0x408ea9(0xd1)];},'abortController':_0x229f06[_0x225a57(0x147)]};}[_0x876b10(0x13c)](_0x5ad40e,_0x32a142,_0x12eb4c){const _0x5ce5b4=_0x876b10,_0x1b013e=this[_0x5ce5b4(0x12f)](_0x5ce5b4(0x10f)+_0x5ad40e+_0x5ce5b4(0x105)+_0x32a142+_0x5ce5b4(0xf8),_0x5ce5b4(0x128),{'positiveCount':_0x12eb4c[_0x5ce5b4(0xe8)],'totalCount':_0x12eb4c[_0x5ce5b4(0x109)]});return{'execute':async()=>{const _0x7d1c82=_0x5ce5b4;await _0x1b013e[_0x7d1c82(0xd1)];},'abortController':_0x1b013e[_0x5ce5b4(0x147)]};}[_0x876b10(0x14d)](_0x532c23,_0x2f86e2){const _0x4493ce=_0x876b10,_0x57d2eb=this[_0x4493ce(0x12f)](_0x4493ce(0x10e)+_0x532c23+_0x4493ce(0xf8),_0x4493ce(0x128),{'positiveCount':_0x2f86e2[_0x4493ce(0xe8)],'totalCount':_0x2f86e2[_0x4493ce(0x109)]});return{'execute':async()=>{const _0x540c1a=_0x4493ce;await _0x57d2eb[_0x540c1a(0xd1)];},'abortController':_0x57d2eb[_0x4493ce(0x147)]};}[_0x876b10(0x108)](_0x4697f3,_0x40417f,_0x5ae921,_0x2bb81e){const _0x51d522=_0x876b10,_0x2ac46f=this[_0x51d522(0x12f)](_0x51d522(0x103)+_0x4697f3+_0x51d522(0x105)+_0x40417f+_0x51d522(0xf8),_0x51d522(0x128),{'positiveCount':_0x5ae921[_0x51d522(0xe8)],'totalCount':_0x5ae921[_0x51d522(0x109)],'dataId':_0x2bb81e});return{'execute':async()=>{const _0x56957a=_0x51d522;await _0x2ac46f[_0x56957a(0xd1)];},'abortController':_0x2ac46f[_0x51d522(0x147)]};}[_0x876b10(0x124)](_0x11445e,_0x93919c,_0x560a63){const _0x57fec1=_0x876b10,_0x486ea9=this[_0x57fec1(0x12f)](_0x57fec1(0x107)+_0x11445e+_0x57fec1(0xf8),_0x57fec1(0x128),{'positiveCount':_0x93919c[_0x57fec1(0xe8)],'totalCount':_0x93919c[_0x57fec1(0x109)],'dataId':_0x560a63});return{'execute':async()=>{const _0x10d0ad=_0x57fec1;await _0x486ea9[_0x10d0ad(0xd1)];},'abortController':_0x486ea9[_0x57fec1(0x147)]};}[_0x876b10(0x12f)](_0x221097,_0x3838b5,_0x3d0551){const _0xc6bef2=_0x876b10,_0x41b60f=new AbortController(),_0x4ab0f6=_0x3d0551 instanceof FormData,_0x1b7daa={'Authorization':_0xc6bef2(0x14b)+this[_0xc6bef2(0xdc)]?.[_0xc6bef2(0xe4)]};_0x3d0551&&!_0x4ab0f6&&(_0x1b7daa[_0xc6bef2(0xef)]=_0xc6bef2(0x114));const _0x31ae24={'method':_0x3838b5,'headers':_0x1b7daa,'signal':_0x41b60f[_0xc6bef2(0x137)]};return _0x3d0551&&(_0x31ae24[_0xc6bef2(0x100)]=_0x4ab0f6?_0x3d0551:JSON[_0xc6bef2(0x157)](_0x3d0551)),{'request':fetch(''+this[_0xc6bef2(0x11b)]+_0x221097,_0x31ae24)[_0xc6bef2(0x132)](_0x4597dc=>{const _0xd54e26=_0xc6bef2;this[_0xd54e26(0xfd)](_0x4597dc);})[_0xc6bef2(0x10a)](_0x1bd024=>{const _0xd4f0ee=_0xc6bef2;if(!_0x1bd024['ok'])throw new _0x1742ee(_0xd4f0ee(0x155),this,{'url':this[_0xd4f0ee(0x11b)],'path':_0x221097,'method':_0x3838b5,'body':_0x3d0551,'status':(_0x1bd024||{})[_0xd4f0ee(0xf5)],'statusText':(_0x1bd024||{})[_0xd4f0ee(0x15b)]});return _0x1bd024;}),'abortController':_0x41b60f};}async*[_0x876b10(0x149)](_0xf331af){const _0x326f42=_0x876b10,_0x172182=[],_0x1fcef2=_0xf331af[_0x326f42(0xe5)](),_0x730b74=_0x33effb({'onError':_0x3c13f0=>{const _0xae89a9=_0x326f42;this[_0xae89a9(0xfd)](_0x3c13f0);},'onEvent':_0x4d16c8=>{const _0x5c52d6=_0x326f42;_0x4d16c8[_0x5c52d6(0x119)]=JSON[_0x5c52d6(0xdb)](_0x4d16c8[_0x5c52d6(0x119)]),_0x172182[_0x5c52d6(0x101)](_0x4d16c8);}});try{let _0x2cd202=!0x1;for(;!_0x2cd202;){const {done:_0x561980,value:_0x37a601}=await _0x1fcef2[_0x326f42(0xe3)]();_0x561980&&(_0x2cd202=!0x0),_0x730b74[_0x326f42(0xd8)](this[_0x326f42(0x13f)][_0x326f42(0x152)](_0x37a601,{'stream':!0x0})),yield*_0x172182,_0x172182[_0x326f42(0x129)]=0x0;}}catch(_0x2faa94){this[_0x326f42(0xfd)](_0x2faa94);}finally{_0x1fcef2[_0x326f42(0x144)](),_0x730b74[_0x326f42(0xf2)]();}}[_0x876b10(0xfd)](_0x5c0d3a){const _0x108e13=_0x876b10;if(_0x5c0d3a instanceof _0x1742ee)throw _0x5c0d3a;if(_0x5c0d3a instanceof Error&&_0x108e13(0x14a)===_0x5c0d3a[_0x108e13(0x11c)])throw new _0x1742ee(_0x108e13(0x122),this,{'originalError':_0x5c0d3a});throw new _0x1742ee(_0x108e13(0x155),this,{'originalError':_0x5c0d3a});}}
23
+ function _0x8eb8(){const _0x208626=['define','MAKE_TONE_CASUAL','decode','CloudServices','upsertCustomAIReviewRating','/conversations','uploadDocument','pluginName','application/json','catch','_decoder','1253858IYRyhB','then','translate','_getStreamReader','text','581680obwGXT','fetchConversation','/messages/','396MPLMCc','true','stringify','/conversations?','executeCustomAction','uploadUrl','/ratings','/models/1','PATCH','keys','read','limit','/messages','AIConnector','file','7836zlgJcB','context','data','fetchConversations','ai-request-aborted','make-shorter','push','FIX_GRAMMAR','request','make-tone-casual','body','releaseLock','feed','upsertAIReviewRating','Content-Type','TRANSLATE','excludeEmpty','uploadFile','get','ai.serviceUrl','reset','/reviews/custom/calls','/web-resources/','/actions/system/','/calls','upsertAIChatRating','name','_sendApiRequest','init','38QfBWyO','/documents/','_handleError','plugins','length','POST','MAKE_TONE_FORMAL','100','getModels','/conversations/','attributes','/files','abortController','getReader','ai-missing-token','executeAction','make-tone-formal','PUT','status','group','isPremiumPlugin','1788182fvdOVs','callSystemReview','260pOftqi','IMPROVE_WRITING','/reviews/system/','callCustomReview','/reviews/custom/calls/','make-longer','deleteConversation','isOfficialPlugin','totalCount','fetchDocument','deleteWebResource','improve-writing','_token','/actions/custom/calls','requires','value','321832RNtBsX','startConversation','statusText','CONTINUE','_apiUrl','/web-resources','DELETE','json','266547pcovRu','continue','MAKE_SHORTER','/files/','deleteDocument','config','595whFAOa','updateConversation','4167570CzIMts','fix-grammar','/actions/custom/calls/','deleteFile','queryAssistant','MAKE_LONGER','/documents','toString','search','token','ai-request-failed','/calls/','Bearer\x20','positiveCount','GET','items','append','AbortError','upsertCustomAIActionRating','modificationId','fetchConversationMessages','upsertAIActionRating','parse','https://ai.cke-cs.com/v1','signal'];_0x8eb8=function(){return _0x208626;};return _0x8eb8();}const _0x26b8d3=_0x3589;(function(_0x3e4c2a,_0x99bc4){const _0x20f7ac=_0x3589,_0x36e64f=_0x3e4c2a();while(!![]){try{const _0x17f672=parseInt(_0x20f7ac(0x23c))/0x1+-parseInt(_0x20f7ac(0x1e1))/0x2*(parseInt(_0x20f7ac(0x210))/0x3)+-parseInt(_0x20f7ac(0x1b2))/0x4+-parseInt(_0x20f7ac(0x218))/0x5+-parseInt(_0x20f7ac(0x1c4))/0x6*(parseInt(_0x20f7ac(0x216))/0x7)+parseInt(_0x20f7ac(0x208))/0x8*(-parseInt(_0x20f7ac(0x1b5))/0x9)+parseInt(_0x20f7ac(0x1f8))/0xa*(parseInt(_0x20f7ac(0x1f6))/0xb);if(_0x17f672===_0x99bc4)break;else _0x36e64f['push'](_0x36e64f['shift']());}catch(_0x4bc88f){_0x36e64f['push'](_0x36e64f['shift']());}}}(_0x8eb8,0xe39df));import{createParser as _0xeac24c}from'eventsource-parser';function _0x3589(_0x5a0878,_0x392b4a){const _0x8eb82f=_0x8eb8();return _0x3589=function(_0x3589e9,_0x4dc704){_0x3589e9=_0x3589e9-0x1b0;let _0xe35a70=_0x8eb82f[_0x3589e9];return _0xe35a70;},_0x3589(_0x5a0878,_0x392b4a);}import{ContextPlugin as _0x323787}from'ckeditor5/src/core.js';import{CKEditorError as _0x4d585d}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x2b0c2e){const _0x54968e=_0x3589;_0x2b0c2e[_0x54968e(0x20b)]=_0x54968e(0x211),_0x2b0c2e[_0x54968e(0x1cb)]=_0x54968e(0x219),_0x2b0c2e[_0x54968e(0x1f9)]=_0x54968e(0x203),_0x2b0c2e[_0x54968e(0x21d)]=_0x54968e(0x1fd),_0x2b0c2e[_0x54968e(0x212)]=_0x54968e(0x1c9),_0x2b0c2e[_0x54968e(0x232)]=_0x54968e(0x1cd),_0x2b0c2e[_0x54968e(0x1e7)]=_0x54968e(0x1f1),_0x2b0c2e[_0x54968e(0x1d3)]=_0x54968e(0x23e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x323787{[_0x26b8d3(0x20c)];[_0x26b8d3(0x204)];[_0x26b8d3(0x23b)];static get[_0x26b8d3(0x206)](){const _0x362510=_0x26b8d3;return[_0x362510(0x234)];}static get[_0x26b8d3(0x238)](){const _0x3d3e8b=_0x26b8d3;return _0x3d3e8b(0x1c2);}static get[_0x26b8d3(0x1ff)](){return!0x0;}static get[_0x26b8d3(0x1f5)](){return!0x0;}constructor(_0x334ca6){const _0x23d888=_0x26b8d3;super(_0x334ca6),this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x231)](_0x23d888(0x1d7),_0x23d888(0x22f)),this[_0x23d888(0x20c)]=this[_0x23d888(0x1c5)][_0x23d888(0x215)][_0x23d888(0x1d6)](_0x23d888(0x1d7)),this[_0x23d888(0x204)]=null,this[_0x23d888(0x23b)]=new TextDecoder();}[_0x26b8d3(0x1e0)](){const _0x11a9fb=_0x26b8d3,_0x2c4541=this[_0x11a9fb(0x1c5)][_0x11a9fb(0x1e4)][_0x11a9fb(0x1d6)](_0x11a9fb(0x234));if(!_0x2c4541[_0x11a9fb(0x221)])throw new _0x4d585d(_0x11a9fb(0x1ef),this);this[_0x11a9fb(0x204)]=_0x2c4541[_0x11a9fb(0x221)];}[_0x26b8d3(0x209)](_0x43132f,_0x46692d){const _0x55ca94=_0x26b8d3,_0x288dca=this[_0x55ca94(0x1df)](_0x55ca94(0x236),_0x55ca94(0x1e6),{'id':_0x43132f,'group':_0x46692d});return{'getConversation':async()=>(await _0x288dca[_0x55ca94(0x1cc)])[_0x55ca94(0x20f)](),'abortController':_0x288dca[_0x55ca94(0x1ed)]};}[_0x26b8d3(0x21c)]({message:_0x822647,conversationId:_0x1e12a4,parts:_0x59e0de,capabilities:_0xc369e7,model:_0x5345d1,quickActionData:_0x560f89}){const _0xa5ac78=_0x26b8d3,_0x215e75={..._0x560f89&&{'quickActionData':_0x560f89}},_0x5841b4={'prompt':_0x822647,'content':_0x59e0de,'model':_0x5345d1,..._0xc369e7&&{'capabilities':_0xc369e7},...Object[_0xa5ac78(0x1be)](_0x215e75)[_0xa5ac78(0x1e5)]>0x0&&{'attributes':_0x215e75}},_0x47e085=this[_0xa5ac78(0x1df)](_0xa5ac78(0x1ea)+_0x1e12a4+_0xa5ac78(0x1c1),_0xa5ac78(0x1e6),_0x5841b4);return{'getStream':async()=>{const _0x64b8b7=_0xa5ac78,_0x24d56b=(await _0x47e085[_0x64b8b7(0x1cc)])[_0x64b8b7(0x1ce)];return this[_0x64b8b7(0x1b0)](_0x24d56b);},'abortController':_0x47e085[_0xa5ac78(0x1ed)]};}[_0x26b8d3(0x1b9)]({content:_0x13e804,message:_0x30a99e,model:_0x23983b,outputFormat:_0x40d130}){const _0x4575fa=_0x26b8d3,_0x45ff2a={'content':[{'type':_0x4575fa(0x1b1),'content':_0x13e804}],'prompt':_0x30a99e,'model':_0x23983b,'outputFormat':_0x40d130},_0x5194b7=this[_0x4575fa(0x1df)](_0x4575fa(0x205),_0x4575fa(0x1e6),_0x45ff2a);return{'getStream':async()=>{const _0x28a36f=_0x4575fa,_0x5561fe=(await _0x5194b7[_0x28a36f(0x1cc)])[_0x28a36f(0x1ce)];return this[_0x28a36f(0x1b0)](_0x5561fe);},'abortController':_0x5194b7[_0x4575fa(0x1ed)]};}[_0x26b8d3(0x1f0)]({actionName:_0x4d9f46,content:_0x52b9a3,args:_0x5b7703}){const _0x11b09e=_0x26b8d3,_0x22dd22={'content':[{'type':_0x11b09e(0x1b1),'content':_0x52b9a3}],'args':_0x5b7703},_0x561b0b=this[_0x11b09e(0x1df)](_0x11b09e(0x1db)+_0x4d9f46+_0x11b09e(0x1dc),_0x11b09e(0x1e6),_0x22dd22);return{'getStream':async()=>{const _0x1e2548=_0x11b09e,_0xfed2c9=(await _0x561b0b[_0x1e2548(0x1cc)])[_0x1e2548(0x1ce)];return this[_0x1e2548(0x1b0)](_0xfed2c9);},'abortController':_0x561b0b[_0x11b09e(0x1ed)]};}[_0x26b8d3(0x1d5)](_0x9a892a,_0x36bded,_0x2fcdd2){const _0x1f4b9a=_0x26b8d3,_0x15c343=new FormData();_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1c3),_0x36bded,_0x36bded[_0x1f4b9a(0x1de)]),_0x2fcdd2&&_0x15c343[_0x1f4b9a(0x228)](_0x1f4b9a(0x1eb),JSON[_0x1f4b9a(0x1b7)](_0x2fcdd2));const _0x1c0b97=this[_0x1f4b9a(0x1df)](_0x1f4b9a(0x1ea)+_0x9a892a+_0x1f4b9a(0x1ec),_0x1f4b9a(0x1e6),_0x15c343);return{'getId':async()=>(await _0x1c0b97[_0x1f4b9a(0x1cc)])[_0x1f4b9a(0x20f)](),'abortController':_0x1c0b97[_0x1f4b9a(0x1ed)]};}[_0x26b8d3(0x201)](_0x48a4e3,_0x34a47c){const _0x32332b=_0x26b8d3,_0x28e71b=this[_0x32332b(0x1df)](_0x32332b(0x1ea)+_0x48a4e3+_0x32332b(0x1e2)+_0x34a47c,_0x32332b(0x226));return{'getDocument':async()=>(await _0x28e71b[_0x32332b(0x1cc)])[_0x32332b(0x20f)](),'abortController':_0x28e71b[_0x32332b(0x1ed)]};}[_0x26b8d3(0x237)](_0x529d61,_0x55a3df,_0x118e2c){const _0x107dc7=_0x26b8d3,_0x592a1c={'content':_0x55a3df};_0x118e2c&&(_0x592a1c[_0x107dc7(0x1eb)]=_0x118e2c);const _0x2c165b=this[_0x107dc7(0x1df)](_0x107dc7(0x1ea)+_0x529d61+_0x107dc7(0x21e),_0x107dc7(0x1e6),_0x592a1c);return{'getId':async()=>(await _0x2c165b[_0x107dc7(0x1cc)])[_0x107dc7(0x20f)](),'abortController':_0x2c165b[_0x107dc7(0x1ed)]};}[_0x26b8d3(0x1c7)](_0x97182f,_0x5b7266){const _0x18c3b8=_0x26b8d3,_0x33c6c4=new URLSearchParams();_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1d4),_0x18c3b8(0x1b6)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1c0),_0x18c3b8(0x1e8)),_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x1f4),_0x97182f),_0x5b7266&&_0x33c6c4[_0x18c3b8(0x228)](_0x18c3b8(0x220),_0x5b7266);const _0x1e65ac=this[_0x18c3b8(0x1df)](_0x18c3b8(0x1b8)+_0x33c6c4[_0x18c3b8(0x21f)](),_0x18c3b8(0x226));return{'getConversations':async()=>{const _0x9f8b25=_0x18c3b8,_0x5ab564=await _0x1e65ac[_0x9f8b25(0x1cc)];return(await _0x5ab564[_0x9f8b25(0x20f)]())[_0x9f8b25(0x227)];},'abortController':_0x1e65ac[_0x18c3b8(0x1ed)]};}[_0x26b8d3(0x1fe)](_0xedc134){const _0x466c37=_0x26b8d3,_0xa8c2c0=this[_0x466c37(0x1df)](_0x466c37(0x1ea)+_0xedc134,_0x466c37(0x20e));return{'execute':async()=>{const _0x47f242=_0x466c37;await _0xa8c2c0[_0x47f242(0x1cc)];},'abortController':_0xa8c2c0[_0x466c37(0x1ed)]};}[_0x26b8d3(0x217)](_0x3af564,_0x20f025){const _0x1bcd63=_0x26b8d3,_0x5dd6f2=this[_0x1bcd63(0x1df)](_0x1bcd63(0x1ea)+_0x3af564,_0x1bcd63(0x1bd),_0x20f025);return{'getResult':async()=>(await _0x5dd6f2[_0x1bcd63(0x1cc)],_0x20f025),'abortController':_0x5dd6f2[_0x1bcd63(0x1ed)]};}[_0x26b8d3(0x1b3)](_0x4e675a){const _0x41afaa=_0x26b8d3,_0x576fa1=this[_0x41afaa(0x1df)](_0x41afaa(0x1ea)+_0x4e675a,_0x41afaa(0x226));return{'getConversation':async()=>(await _0x576fa1[_0x41afaa(0x1cc)])[_0x41afaa(0x20f)](),'abortController':_0x576fa1[_0x41afaa(0x1ed)]};}[_0x26b8d3(0x22c)](_0x4c0891){const _0x5404b8=_0x26b8d3,_0x1d8895=this[_0x5404b8(0x1df)](_0x5404b8(0x1ea)+_0x4c0891+_0x5404b8(0x1c1),_0x5404b8(0x226));return{'getMessages':async()=>{const _0x1a31f7=_0x5404b8,_0x59ff35=await _0x1d8895[_0x1a31f7(0x1cc)];return(await _0x59ff35[_0x1a31f7(0x20f)]())[_0x1a31f7(0x227)];},'abortController':_0x1d8895[_0x5404b8(0x1ed)]};}[_0x26b8d3(0x1ba)](_0x309806,_0x2a78e5,_0x62a3f0){const _0x3d55cb=_0x26b8d3,_0x58b8fa=this[_0x3d55cb(0x1df)](_0x3d55cb(0x1ea)+_0x309806+_0x3d55cb(0x20d),_0x3d55cb(0x1e6),{'url':_0x2a78e5,'attributes':_0x62a3f0});return{'getId':async()=>(await _0x58b8fa[_0x3d55cb(0x1cc)])[_0x3d55cb(0x20f)](),'abortController':_0x58b8fa[_0x3d55cb(0x1ed)]};}[_0x26b8d3(0x1e9)](){const _0x2dbacb=_0x26b8d3,_0x2ad60b=this[_0x2dbacb(0x1df)](_0x2dbacb(0x1bc),_0x2dbacb(0x226));return{'list':async()=>await(await _0x2ad60b[_0x2dbacb(0x1cc)])[_0x2dbacb(0x20f)](),'abortController':_0x2ad60b[_0x2dbacb(0x1ed)]};}[_0x26b8d3(0x21b)](_0x304825,_0x2117c2){const _0x43fbbc=_0x26b8d3,_0xabfb=this[_0x43fbbc(0x1df)](_0x43fbbc(0x1ea)+_0x304825+_0x43fbbc(0x213)+_0x2117c2,_0x43fbbc(0x20e));return{'execute':async()=>{const _0x8c77ae=_0x43fbbc;await _0xabfb[_0x8c77ae(0x1cc)];},'abortController':_0xabfb[_0x43fbbc(0x1ed)]};}[_0x26b8d3(0x214)](_0x44136c,_0x19e60c){const _0x26c090=_0x26b8d3,_0xd6205e=this[_0x26c090(0x1df)](_0x26c090(0x1ea)+_0x44136c+_0x26c090(0x1e2)+_0x19e60c,_0x26c090(0x20e));return{'execute':async()=>{const _0x31217c=_0x26c090;await _0xd6205e[_0x31217c(0x1cc)];},'abortController':_0xd6205e[_0x26c090(0x1ed)]};}[_0x26b8d3(0x202)](_0x133e29,_0x3d0bc6){const _0x442535=_0x26b8d3,_0x303aa5=this[_0x442535(0x1df)](_0x442535(0x1ea)+_0x133e29+_0x442535(0x1da)+_0x3d0bc6,_0x442535(0x20e));return{'execute':async()=>{const _0x3f4cae=_0x442535;await _0x303aa5[_0x3f4cae(0x1cc)];},'abortController':_0x303aa5[_0x442535(0x1ed)]};}[_0x26b8d3(0x1f7)]({reviewName:_0x265a88,content:_0x12514c,args:_0x53a4a7}){const _0x5f429a=_0x26b8d3,_0x4610cb=this[_0x5f429a(0x1df)](_0x5f429a(0x1fa)+_0x265a88+_0x5f429a(0x1dc),_0x5f429a(0x1e6),{'content':[{'type':_0x5f429a(0x1b1),'content':_0x12514c}],'args':_0x53a4a7});return{'getStream':async()=>{const _0x3024a7=_0x5f429a,_0x42fb03=(await _0x4610cb[_0x3024a7(0x1cc)])[_0x3024a7(0x1ce)];return this[_0x3024a7(0x1b0)](_0x42fb03);},'abortController':_0x4610cb[_0x5f429a(0x1ed)]};}[_0x26b8d3(0x1fb)]({content:_0x17e280,prompt:_0x4ee538,model:_0x4fc200}){const _0x236aa4=_0x26b8d3,_0x2f1ac1=this[_0x236aa4(0x1df)](_0x236aa4(0x1d9),_0x236aa4(0x1e6),{'content':[{'type':_0x236aa4(0x1b1),'content':_0x17e280}],'prompt':_0x4ee538,'model':_0x4fc200});return{'getStream':async()=>{const _0x4805b1=_0x236aa4,_0x22f8f8=(await _0x2f1ac1[_0x4805b1(0x1cc)])[_0x4805b1(0x1ce)];return this[_0x4805b1(0x1b0)](_0x22f8f8);},'abortController':_0x2f1ac1[_0x236aa4(0x1ed)]};}[_0x26b8d3(0x1dd)](_0x4c3ec0,_0x1304c4,_0x1bdbcc){const _0x539faa=_0x26b8d3,_0x4d56de=this[_0x539faa(0x1df)](_0x539faa(0x1ea)+_0x4c3ec0+_0x539faa(0x1b4)+_0x1304c4+_0x539faa(0x1bb),_0x539faa(0x1f2),{'positiveCount':_0x1bdbcc[_0x539faa(0x225)],'totalCount':_0x1bdbcc[_0x539faa(0x200)],'modificationId':_0x1bdbcc[_0x539faa(0x22b)]});return{'execute':async()=>{const _0x88dd9=_0x539faa;await _0x4d56de[_0x88dd9(0x1cc)];},'abortController':_0x4d56de[_0x539faa(0x1ed)]};}[_0x26b8d3(0x22d)](_0x4a708,_0x3b5779,_0x36ceec){const _0x3d515a=_0x26b8d3,_0x37866b=this[_0x3d515a(0x1df)](_0x3d515a(0x1db)+_0x4a708+_0x3d515a(0x223)+_0x3b5779+_0x3d515a(0x1bb),_0x3d515a(0x1f2),{'positiveCount':_0x36ceec[_0x3d515a(0x225)],'totalCount':_0x36ceec[_0x3d515a(0x200)]});return{'execute':async()=>{const _0x5e87a2=_0x3d515a;await _0x37866b[_0x5e87a2(0x1cc)];},'abortController':_0x37866b[_0x3d515a(0x1ed)]};}[_0x26b8d3(0x22a)](_0x1252bd,_0x50991d){const _0x24aad1=_0x26b8d3,_0x516a2f=this[_0x24aad1(0x1df)](_0x24aad1(0x21a)+_0x1252bd+_0x24aad1(0x1bb),_0x24aad1(0x1f2),{'positiveCount':_0x50991d[_0x24aad1(0x225)],'totalCount':_0x50991d[_0x24aad1(0x200)]});return{'execute':async()=>{const _0x17a7bb=_0x24aad1;await _0x516a2f[_0x17a7bb(0x1cc)];},'abortController':_0x516a2f[_0x24aad1(0x1ed)]};}[_0x26b8d3(0x1d1)](_0x88ebca,_0x419aa0,_0x235ba3,_0x5d2502){const _0x152831=_0x26b8d3,_0x583c93=this[_0x152831(0x1df)](_0x152831(0x1fa)+_0x88ebca+_0x152831(0x223)+_0x419aa0+_0x152831(0x1bb),_0x152831(0x1f2),{'positiveCount':_0x235ba3[_0x152831(0x225)],'totalCount':_0x235ba3[_0x152831(0x200)],'dataId':_0x5d2502});return{'execute':async()=>{const _0x577b06=_0x152831;await _0x583c93[_0x577b06(0x1cc)];},'abortController':_0x583c93[_0x152831(0x1ed)]};}[_0x26b8d3(0x235)](_0x34dfb9,_0xc94e1,_0x424abb){const _0x1bc873=_0x26b8d3,_0x5240e5=this[_0x1bc873(0x1df)](_0x1bc873(0x1fc)+_0x34dfb9+_0x1bc873(0x1bb),_0x1bc873(0x1f2),{'positiveCount':_0xc94e1[_0x1bc873(0x225)],'totalCount':_0xc94e1[_0x1bc873(0x200)],'dataId':_0x424abb});return{'execute':async()=>{const _0x2d03dd=_0x1bc873;await _0x5240e5[_0x2d03dd(0x1cc)];},'abortController':_0x5240e5[_0x1bc873(0x1ed)]};}[_0x26b8d3(0x1df)](_0x34f5b3,_0x5192aa,_0x9d1ac7){const _0x470b3c=_0x26b8d3,_0x2c9be3=new AbortController(),_0x1150d3=_0x9d1ac7 instanceof FormData,_0x1e1778={'Authorization':_0x470b3c(0x224)+this[_0x470b3c(0x204)]?.[_0x470b3c(0x207)]};_0x9d1ac7&&!_0x1150d3&&(_0x1e1778[_0x470b3c(0x1d2)]=_0x470b3c(0x239));const _0x2723be={'method':_0x5192aa,'headers':_0x1e1778,'signal':_0x2c9be3[_0x470b3c(0x230)]};return _0x9d1ac7&&(_0x2723be[_0x470b3c(0x1ce)]=_0x1150d3?_0x9d1ac7:JSON[_0x470b3c(0x1b7)](_0x9d1ac7)),{'request':fetch(''+this[_0x470b3c(0x20c)]+_0x34f5b3,_0x2723be)[_0x470b3c(0x23a)](_0x8b9fee=>{const _0x5252fd=_0x470b3c;this[_0x5252fd(0x1e3)](_0x8b9fee);})[_0x470b3c(0x23d)](_0x51237=>{const _0x203274=_0x470b3c;if(!_0x51237['ok'])throw new _0x4d585d(_0x203274(0x222),this,{'url':this[_0x203274(0x20c)],'path':_0x34f5b3,'method':_0x5192aa,'body':_0x9d1ac7,'status':(_0x51237||{})[_0x203274(0x1f3)],'statusText':(_0x51237||{})[_0x203274(0x20a)]});return _0x51237;}),'abortController':_0x2c9be3};}async*[_0x26b8d3(0x1b0)](_0x3b68ea){const _0x5b630b=_0x26b8d3,_0x535c73=[],_0x4b811f=_0x3b68ea[_0x5b630b(0x1ee)](),_0x52508f=_0xeac24c({'onError':_0x1f848e=>{const _0x59d7ba=_0x5b630b;this[_0x59d7ba(0x1e3)](_0x1f848e);},'onEvent':_0x306717=>{const _0x3b5568=_0x5b630b;_0x306717[_0x3b5568(0x1c6)]=JSON[_0x3b5568(0x22e)](_0x306717[_0x3b5568(0x1c6)]),_0x535c73[_0x3b5568(0x1ca)](_0x306717);}});try{let _0x2bdb19=!0x1;for(;!_0x2bdb19;){const {done:_0x5943c0,value:_0xa84f3b}=await _0x4b811f[_0x5b630b(0x1bf)]();_0x5943c0&&(_0x2bdb19=!0x0),_0x52508f[_0x5b630b(0x1d0)](this[_0x5b630b(0x23b)][_0x5b630b(0x233)](_0xa84f3b,{'stream':!0x0})),yield*_0x535c73,_0x535c73[_0x5b630b(0x1e5)]=0x0;}}catch(_0x3ee495){this[_0x5b630b(0x1e3)](_0x3ee495);}finally{_0x4b811f[_0x5b630b(0x1cf)](),_0x52508f[_0x5b630b(0x1d8)]();}}[_0x26b8d3(0x1e3)](_0x14a1de){const _0x4209b9=_0x26b8d3;if(_0x14a1de instanceof _0x4d585d)throw _0x14a1de;if(_0x14a1de instanceof Error&&_0x4209b9(0x229)===_0x14a1de[_0x4209b9(0x1de)])throw new _0x4d585d(_0x4209b9(0x1c8),this,{'originalError':_0x14a1de});throw new _0x4d585d(_0x4209b9(0x222),this,{'originalError':_0x14a1de});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x71efb6=_0x5e27;function _0x58c5(){const _0x2f0d90=['for','start','_displayedFakeSelectionId','addMarker','ai-selection:','_setDataIdsOnChildren','ai-selection','markerToElement','591819jRNgFr','from',':start>','isOfficialPlugin','view','substring',':start></','getMarkersGroup','containerElement','19430505BzmFNt',':end></','getDocumentData','push','editing','markerName','sort','plugins','conversion','isAfter','getLastMatchingPosition','3644526cAWxlk','RealTimeCollaborationClient','getStart','showFakeVisualSelection','hideFakeVisualSelection','toView','createRange','_nextDataId','processor','selection','getSelectionText','removeMarker','join','_integrateEditor','1330580GCOkru','data-id','end','createRangeIn','ck-fake-ai-selection','1sDvbAi','_displayedFakeSelectionLocked','editingDowncast','length','dataDowncast','getWalker',':end>','AIEditing','element','trim','version','ck-ai-assistant-ui_theme','createUIElement','random','model','getRoot','isPremiumPlugin','change','markers','add','schema','markerToHighlight','_sessionId','getSelection','_getMarkersInDocumentOrder','removeAllRanges','data','pluginName','isOpening','2395580KckjCo','5eyOAHK','fromCharCode','ready','context','setAttribute','4073272gDqdwm','has','get','sessionId','document','$textProxy','convertAiChatSelectionMarker','getSelectedContent','listenTo','3006712SgXPFW','isBefore','isAtEnd','isContent','indexOf','afterInit','floor','getChildren','editors','name','modelToViewWithIds','toData','emptyElement'];_0x58c5=function(){return _0x2f0d90;};return _0x58c5();}function _0x5e27(_0x52081e,_0x2c4c36){const _0x58c5b5=_0x58c5();return _0x5e27=function(_0x5e27ca,_0x347036){_0x5e27ca=_0x5e27ca-0x16a;let _0x544f3a=_0x58c5b5[_0x5e27ca];return _0x544f3a;},_0x5e27(_0x52081e,_0x2c4c36);}(function(_0x279edb,_0x4cd418){const _0x5a22cb=_0x5e27,_0xbaba99=_0x279edb();while(!![]){try{const _0x3ce57d=parseInt(_0x5a22cb(0x1bd))/0x1*(-parseInt(_0x5a22cb(0x1b8))/0x2)+-parseInt(_0x5a22cb(0x196))/0x3+-parseInt(_0x5a22cb(0x172))/0x4+parseInt(_0x5a22cb(0x173))/0x5*(parseInt(_0x5a22cb(0x1aa))/0x6)+-parseInt(_0x5a22cb(0x178))/0x7+-parseInt(_0x5a22cb(0x181))/0x8+parseInt(_0x5a22cb(0x19f))/0x9;if(_0x3ce57d===_0x4cd418)break;else _0xbaba99['push'](_0xbaba99['shift']());}catch(_0x1c8083){_0xbaba99['push'](_0xbaba99['shift']());}}}(_0x58c5,0x54c25));import{ViewDowncastWriter as _0x459de5}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2b884a,Editor as _0x1d7ccd}from'ckeditor5/src/core.js';import{uid as _0x3fe478}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x346dc7}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x71efb6(0x194);export class AIEditing extends _0x2b884a{[_0x71efb6(0x190)]=null;[_0x71efb6(0x1be)]=!0x1;[_0x71efb6(0x16b)];static get[_0x71efb6(0x170)](){const _0x507c55=_0x71efb6;return _0x507c55(0x1c4);}static get[_0x71efb6(0x199)](){return!0x0;}static get[_0x71efb6(0x1cd)](){return!0x0;}get[_0x71efb6(0x17b)](){const _0xbea11b=_0x71efb6;if(!this[_0xbea11b(0x16b)]){const _0x59c039=_0x346dc7(this[_0xbea11b(0x176)]),_0x42c936=_0x59c039[_0xbea11b(0x1a6)][_0xbea11b(0x179)](_0xbea11b(0x1ab))&&_0x59c039[_0xbea11b(0x1a6)][_0xbea11b(0x17a)](_0xbea11b(0x1ab))[_0xbea11b(0x17b)];this[_0xbea11b(0x16b)]=_0x42c936||_0x3fe478();}return this[_0xbea11b(0x16b)];}[_0x71efb6(0x1a1)](){const _0x5056b9=_0x71efb6,_0x4afcde=_0x346dc7(this[_0x5056b9(0x176)]),_0x123e28=_0x4afcde[_0x5056b9(0x1cb)],_0x289d2c=_0x4afcde[_0x5056b9(0x16f)][_0x5056b9(0x1af)](_0x123e28[_0x5056b9(0x17c)][_0x5056b9(0x1cc)](),{'convertAiChatSelectionMarker':!0x0}),_0x1f8e66=new _0x459de5(_0x4afcde[_0x5056b9(0x1a3)][_0x5056b9(0x19a)][_0x5056b9(0x17c)]);this[_0x5056b9(0x193)](_0x289d2c,_0x1f8e66);let _0xff7473=_0x4afcde[_0x5056b9(0x16f)][_0x5056b9(0x1b2)][_0x5056b9(0x18c)](_0x289d2c);const _0x252da6=this[_0x5056b9(0x16d)](),_0x4a12ce=[];for(const _0xf8d10 of _0x252da6){const _0x294002='<'+_0xf8d10[_0x5056b9(0x18a)]+_0x5056b9(0x19c)+_0xf8d10[_0x5056b9(0x18a)]+_0x5056b9(0x198),_0x565369=_0xff7473[_0x5056b9(0x185)](_0x294002);_0xff7473=_0xff7473[_0x5056b9(0x19b)](0x0,_0x565369)+_0xff7473[_0x5056b9(0x19b)](_0x565369+_0x294002[_0x5056b9(0x1c0)]);const _0x39de38='<'+_0xf8d10[_0x5056b9(0x18a)]+_0x5056b9(0x1a0)+_0xf8d10[_0x5056b9(0x18a)]+_0x5056b9(0x1c3),_0x3ff433=_0xff7473[_0x5056b9(0x185)](_0x39de38);_0xff7473=_0xff7473[_0x5056b9(0x19b)](0x0,_0x3ff433)+_0xff7473[_0x5056b9(0x19b)](_0x3ff433+_0x39de38[_0x5056b9(0x1c0)]),_0x4a12ce[_0x5056b9(0x1a2)]({'markerName':_0xf8d10[_0x5056b9(0x18a)],'start':_0x565369,'end':_0x3ff433,'htmlFragment':_0xff7473[_0x5056b9(0x19b)](_0x565369,_0x3ff433)});}return{'content':_0xff7473,'version':_0x4afcde[_0x5056b9(0x1cb)][_0x5056b9(0x17c)][_0x5056b9(0x1c7)],'sessionId':this[_0x5056b9(0x17b)],'selections':_0x4a12ce};}async[_0x71efb6(0x186)](){const _0x492b6b=_0x71efb6;this[_0x492b6b(0x176)]instanceof _0x1d7ccd?this[_0x492b6b(0x1b7)](this[_0x492b6b(0x176)]):this[_0x492b6b(0x180)](this[_0x492b6b(0x176)][_0x492b6b(0x189)],_0x492b6b(0x1d0),(_0x5d6956,_0x30ebb8)=>{const _0x2e0662=_0x492b6b;_0x30ebb8['on'](_0x2e0662(0x175),()=>{const _0x53d9f5=_0x2e0662;this[_0x53d9f5(0x1b7)](_0x30ebb8);});});}[_0x71efb6(0x1b7)](_0xfd48f9){const _0x2cb72f=_0x71efb6;_0xfd48f9[_0x2cb72f(0x1a7)][_0x2cb72f(0x18e)](_0x2cb72f(0x1bf))[_0x2cb72f(0x16a)]({'model':_0x2cb72f(0x194),'view':{'classes':[_0x2cb72f(0x1bc),_0x2cb72f(0x1c8)],'priority':0xc}}),_0xfd48f9[_0x2cb72f(0x1a7)][_0x2cb72f(0x18e)](_0x2cb72f(0x1c1))[_0x2cb72f(0x195)]({'model':_0x2cb72f(0x194),'view':(_0x677cb8,{writer:_0x36e556,options:_0x170f5a})=>_0x170f5a[_0x2cb72f(0x17e)]?_0x36e556[_0x2cb72f(0x1c9)](_0x677cb8[_0x2cb72f(0x1a4)]+':'+(_0x677cb8[_0x2cb72f(0x171)]?_0x2cb72f(0x18f):_0x2cb72f(0x1ba))):null});}[_0x71efb6(0x1ad)](_0x58c273,_0x345dd3,_0x3e321a=!0x1,_0x37474b=!0x1){const _0x490e8a=_0x71efb6;if(this[_0x490e8a(0x1be)]&&!_0x37474b)return!0x1;const _0x315048=_0x346dc7(this[_0x490e8a(0x176)])[_0x490e8a(0x1cb)];return _0x315048[_0x490e8a(0x1ce)](_0x4a77f0=>{const _0xa0375c=_0x490e8a;this[_0xa0375c(0x190)]&&this[_0xa0375c(0x1ae)](this[_0xa0375c(0x190)]),this[_0xa0375c(0x190)]=_0x345dd3,this[_0xa0375c(0x1be)]=_0x3e321a;let _0x41ab66=0x0;for(let _0x8c82ef of _0x58c273){const _0x19a569=_0xa0375c(0x192)+_0x41ab66;if(_0x8c82ef[_0xa0375c(0x18f)][_0xa0375c(0x183)]){const _0x596278=_0x8c82ef[_0xa0375c(0x18f)][_0xa0375c(0x1a9)](({item:_0x3f57d4})=>!_0x315048[_0xa0375c(0x1d1)][_0xa0375c(0x184)](_0x3f57d4),{'boundaries':_0x8c82ef});_0x8c82ef=_0x4a77f0[_0xa0375c(0x1b0)](_0x596278,_0x8c82ef[_0xa0375c(0x1ba)]);}_0x4a77f0[_0xa0375c(0x191)](_0x19a569,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x8c82ef}),_0x41ab66++;}}),window[_0x490e8a(0x16c)]()?.[_0x490e8a(0x16e)](),!0x0;}[_0x71efb6(0x1ae)](_0x448f66){const _0x34ddf6=_0x71efb6;if(this[_0x34ddf6(0x190)]!=_0x448f66)return!0x1;this[_0x34ddf6(0x190)]=null,this[_0x34ddf6(0x1be)]=!0x1;const _0x29b7b6=_0x346dc7(this[_0x34ddf6(0x176)]),_0x1662e2=_0x29b7b6[_0x34ddf6(0x1cb)][_0x34ddf6(0x1cf)][_0x34ddf6(0x19d)](_0x34ddf6(0x194));return _0x29b7b6[_0x34ddf6(0x1cb)][_0x34ddf6(0x1ce)](_0xbb21c2=>{const _0x1f60bb=_0x34ddf6;for(const _0x81d070 of _0x1662e2)_0xbb21c2[_0x1f60bb(0x1b5)](_0x81d070);}),!0x0;}[_0x71efb6(0x18b)](_0x1376ed){const _0x1e795d=_0x71efb6,_0x28af74=_0x346dc7(this[_0x1e795d(0x176)]),_0x682ea8=_0x28af74[_0x1e795d(0x16f)][_0x1e795d(0x1af)](_0x1376ed),_0x14f90d=new _0x459de5(_0x28af74[_0x1e795d(0x1a3)][_0x1e795d(0x19a)][_0x1e795d(0x17c)]);return this[_0x1e795d(0x193)](_0x682ea8,_0x14f90d),_0x682ea8;}[_0x71efb6(0x193)](_0x5a641a,_0x3e322a){const _0x376896=_0x71efb6;let _0x2e6125=!0x1;const _0x567e99=new Set();for(const _0x40b2c of _0x5a641a[_0x376896(0x188)]()){const _0x3b8910=_0x40b2c['is'](_0x376896(0x18d))||_0x40b2c['is'](_0x376896(0x19e));if(!_0x40b2c['is'](_0x376896(0x1c5)))continue;(this[_0x376896(0x193)](_0x40b2c,_0x3e322a)||_0x3b8910)&&(_0x3e322a[_0x376896(0x177)](_0x376896(0x1b9),this[_0x376896(0x1b1)](_0x567e99),_0x40b2c),_0x2e6125=!0x0);}return _0x2e6125;}[_0x71efb6(0x1b1)](_0x430d55){const _0xe7b63a=_0x71efb6;let _0x42afe6;do{_0x42afe6='';for(let _0x2f0aa9=0x0;_0x2f0aa9<0x4;_0x2f0aa9++)_0x42afe6+=String[_0xe7b63a(0x174)](0x61+Math[_0xe7b63a(0x187)](0x1a*Math[_0xe7b63a(0x1ca)]()));}while(_0x430d55[_0xe7b63a(0x179)](_0x42afe6));return _0x430d55[_0xe7b63a(0x1d0)](_0x42afe6),_0x42afe6;}[_0x71efb6(0x1b4)](){const _0x3bac70=_0x71efb6,{model:_0x32bda9}=_0x346dc7(this[_0x3bac70(0x176)]),_0x221fc7=_0x32bda9[_0x3bac70(0x17c)][_0x3bac70(0x1b3)],_0x53a9f0=_0x32bda9[_0x3bac70(0x17f)](_0x221fc7),_0x71849f=[],_0x110559=_0x32bda9[_0x3bac70(0x1bb)](_0x53a9f0)[_0x3bac70(0x1c2)]();for(const {item:_0x6c80e9}of _0x110559)_0x6c80e9['is'](_0x3bac70(0x17d))?_0x71849f[_0x3bac70(0x1a2)](_0x6c80e9[_0x3bac70(0x16f)]):_0x6c80e9['is'](_0x3bac70(0x1c5))&&_0x71849f[_0x3bac70(0x1c0)]>0x0&&'\x20'!==_0x71849f[_0x71849f[_0x3bac70(0x1c0)]-0x1]&&_0x71849f[_0x3bac70(0x1a2)]('\x20');return'\x22'+_0x71849f[_0x3bac70(0x1b6)]('')[_0x3bac70(0x1c6)]()+'\x22';}[_0x71efb6(0x16d)](){const _0x5c1366=_0x71efb6,_0x5712ce=_0x346dc7(this[_0x5c1366(0x176)])[_0x5c1366(0x1cb)];return Array[_0x5c1366(0x197)](_0x5712ce[_0x5c1366(0x1cf)][_0x5c1366(0x19d)](_0x5c1366(0x194)))[_0x5c1366(0x1a5)]((_0x54227e,_0x2a1c2e)=>_0x54227e[_0x5c1366(0x1ac)]()[_0x5c1366(0x182)](_0x2a1c2e[_0x5c1366(0x1ac)]())?-0x1:_0x54227e[_0x5c1366(0x1ac)]()[_0x5c1366(0x1a8)](_0x2a1c2e[_0x5c1366(0x1ac)]())?0x1:0x0);}}
23
+ const _0x53ce06=_0x15c9;(function(_0x380086,_0x52226d){const _0x44b487=_0x15c9,_0x63bfa0=_0x380086();while(!![]){try{const _0x58c527=-parseInt(_0x44b487(0x102))/0x1+parseInt(_0x44b487(0xeb))/0x2*(parseInt(_0x44b487(0x12b))/0x3)+-parseInt(_0x44b487(0x11f))/0x4+parseInt(_0x44b487(0x104))/0x5*(parseInt(_0x44b487(0xf2))/0x6)+parseInt(_0x44b487(0xfd))/0x7+-parseInt(_0x44b487(0xe4))/0x8*(-parseInt(_0x44b487(0x10a))/0x9)+parseInt(_0x44b487(0xd8))/0xa*(-parseInt(_0x44b487(0xc8))/0xb);if(_0x58c527===_0x52226d)break;else _0x63bfa0['push'](_0x63bfa0['shift']());}catch(_0x1de1e4){_0x63bfa0['push'](_0x63bfa0['shift']());}}}(_0x17d3,0x543a6));import{ViewDowncastWriter as _0x270c4e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2feff5,Editor as _0x1ded02}from'ckeditor5/src/core.js';import{uid as _0x2ce3e3}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x385df4}from'./utils/geteditorfromcontext.js';function _0x15c9(_0x1c8147,_0x561758){const _0x17d36f=_0x17d3();return _0x15c9=function(_0x15c9be,_0x2277a9){_0x15c9be=_0x15c9be-0xc7;let _0x44c98b=_0x17d36f[_0x15c9be];return _0x44c98b;},_0x15c9(_0x1c8147,_0x561758);}function _0x17d3(){const _0x5f209b=['246085AbjYaA','ready','3655cSkdCj',':start></','join','get','emptyElement','view','100881cGishA','isPremiumPlugin',':end></','ck-ai-assistant-ui_theme','containerElement','random','listenTo','ai-selection','ai-selection:','createRange','start','modelToViewWithIds','getLastMatchingPosition','isOpening','getStart','dataDowncast','hideFakeVisualSelection','getChildren','isContent','getWalker','getSelectionText','923956TsCnap','_setDataIdsOnChildren','ck-fake-ai-selection','add','_integrateEditor','removeMarker','document','selection','markerToHighlight','pluginName','name','AIEditing','56043EGhPIn','removeAllRanges',':end>','data-id','processor','data','getSelection','462803VcoGJE','element','addMarker','getDocumentData','markerToElement','getMarkersGroup','end','fromCharCode','markerName','_nextDataId','createUIElement','push','convertAiChatSelectionMarker','$textProxy','isAtEnd','substring','60pupAUO','change','isBefore','editing','_displayedFakeSelectionId','trim','markers',':start>','getRoot','sort','editingDowncast','for','56MXDhQd','version','isOfficialPlugin','conversion','sessionId','RealTimeCollaborationClient','setAttribute','46YgFogf','schema','has','editors','showFakeVisualSelection','afterInit','length','4638YXOsOW','plugins','_getMarkersInDocumentOrder','floor','isAfter','toView','from','_displayedFakeSelectionLocked','toData','createRangeIn','context','9247BvGXYg','model','getSelectedContent','indexOf','_sessionId'];_0x17d3=function(){return _0x5f209b;};return _0x17d3();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x53ce06(0x111);export class AIEditing extends _0x2feff5{[_0x53ce06(0xdc)]=null;[_0x53ce06(0xf9)]=!0x1;[_0x53ce06(0x101)];static get[_0x53ce06(0x128)](){const _0x45f111=_0x53ce06;return _0x45f111(0x12a);}static get[_0x53ce06(0xe6)](){return!0x0;}static get[_0x53ce06(0x10b)](){return!0x0;}get[_0x53ce06(0xe8)](){const _0x4df52b=_0x53ce06;if(!this[_0x4df52b(0x101)]){const _0x32b217=_0x385df4(this[_0x4df52b(0xfc)]),_0x45cfe5=_0x32b217[_0x4df52b(0xf3)][_0x4df52b(0xed)](_0x4df52b(0xe9))&&_0x32b217[_0x4df52b(0xf3)][_0x4df52b(0x107)](_0x4df52b(0xe9))[_0x4df52b(0xe8)];this[_0x4df52b(0x101)]=_0x45cfe5||_0x2ce3e3();}return this[_0x4df52b(0x101)];}[_0x53ce06(0xcb)](){const _0x251a76=_0x53ce06,_0x4c7f30=_0x385df4(this[_0x251a76(0xfc)]),_0x2e27e5=_0x4c7f30[_0x251a76(0xfe)],_0x49a67b=_0x4c7f30[_0x251a76(0x130)][_0x251a76(0xf7)](_0x2e27e5[_0x251a76(0x125)][_0x251a76(0xe0)](),{'convertAiChatSelectionMarker':!0x0}),_0x5d8827=new _0x270c4e(_0x4c7f30[_0x251a76(0xdb)][_0x251a76(0x109)][_0x251a76(0x125)]);this[_0x251a76(0x120)](_0x49a67b,_0x5d8827);let _0x42d590=_0x4c7f30[_0x251a76(0x130)][_0x251a76(0x12f)][_0x251a76(0xfa)](_0x49a67b);const _0x5455e9=this[_0x251a76(0xf4)](),_0x418a13=[];for(const _0x30bc60 of _0x5455e9){const _0x1b5e48='<'+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x105)+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0xdf),_0x4a5e07=_0x42d590[_0x251a76(0x100)](_0x1b5e48);_0x42d590=_0x42d590[_0x251a76(0xd7)](0x0,_0x4a5e07)+_0x42d590[_0x251a76(0xd7)](_0x4a5e07+_0x1b5e48[_0x251a76(0xf1)]);const _0x45e8b6='<'+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x10c)+_0x30bc60[_0x251a76(0x129)]+_0x251a76(0x12d),_0x250eb=_0x42d590[_0x251a76(0x100)](_0x45e8b6);_0x42d590=_0x42d590[_0x251a76(0xd7)](0x0,_0x250eb)+_0x42d590[_0x251a76(0xd7)](_0x250eb+_0x45e8b6[_0x251a76(0xf1)]),_0x418a13[_0x251a76(0xd3)]({'markerName':_0x30bc60[_0x251a76(0x129)],'start':_0x4a5e07,'end':_0x250eb,'htmlFragment':_0x42d590[_0x251a76(0xd7)](_0x4a5e07,_0x250eb)});}return{'content':_0x42d590,'version':_0x4c7f30[_0x251a76(0xfe)][_0x251a76(0x125)][_0x251a76(0xe5)],'sessionId':this[_0x251a76(0xe8)],'selections':_0x418a13};}async[_0x53ce06(0xf0)](){const _0x178a20=_0x53ce06;this[_0x178a20(0xfc)]instanceof _0x1ded02?this[_0x178a20(0x123)](this[_0x178a20(0xfc)]):this[_0x178a20(0x110)](this[_0x178a20(0xfc)][_0x178a20(0xee)],_0x178a20(0x122),(_0x246630,_0x17a326)=>{const _0x5ad924=_0x178a20;_0x17a326['on'](_0x5ad924(0x103),()=>{const _0x5bf5e5=_0x5ad924;this[_0x5bf5e5(0x123)](_0x17a326);});});}[_0x53ce06(0x123)](_0x26b041){const _0xdbf3f4=_0x53ce06;_0x26b041[_0xdbf3f4(0xe7)][_0xdbf3f4(0xe3)](_0xdbf3f4(0xe2))[_0xdbf3f4(0x127)]({'model':_0xdbf3f4(0x111),'view':{'classes':[_0xdbf3f4(0x121),_0xdbf3f4(0x10d)],'priority':0xc}}),_0x26b041[_0xdbf3f4(0xe7)][_0xdbf3f4(0xe3)](_0xdbf3f4(0x119))[_0xdbf3f4(0xcc)]({'model':_0xdbf3f4(0x111),'view':(_0xd2399f,{writer:_0x37b90f,options:_0x2d8ff5})=>_0x2d8ff5[_0xdbf3f4(0xd4)]?_0x37b90f[_0xdbf3f4(0xd2)](_0xd2399f[_0xdbf3f4(0xd0)]+':'+(_0xd2399f[_0xdbf3f4(0x117)]?_0xdbf3f4(0x114):_0xdbf3f4(0xce))):null});}[_0x53ce06(0xef)](_0x2ed295,_0x2353e9,_0x2f53b2=!0x1,_0x500a70=!0x1){const _0x438f7d=_0x53ce06;if(this[_0x438f7d(0xf9)]&&!_0x500a70)return!0x1;const _0x5fa5c1=_0x385df4(this[_0x438f7d(0xfc)])[_0x438f7d(0xfe)];return _0x5fa5c1[_0x438f7d(0xd9)](_0x45d36c=>{const _0x2f3d2b=_0x438f7d;this[_0x2f3d2b(0xdc)]&&this[_0x2f3d2b(0x11a)](this[_0x2f3d2b(0xdc)]),this[_0x2f3d2b(0xdc)]=_0x2353e9,this[_0x2f3d2b(0xf9)]=_0x2f53b2;let _0x35a2ad=0x0;for(let _0x45bc9b of _0x2ed295){const _0x1892d2=_0x2f3d2b(0x112)+_0x35a2ad;if(_0x45bc9b[_0x2f3d2b(0x114)][_0x2f3d2b(0xd6)]){const _0x23c4db=_0x45bc9b[_0x2f3d2b(0x114)][_0x2f3d2b(0x116)](({item:_0x3833f6})=>!_0x5fa5c1[_0x2f3d2b(0xec)][_0x2f3d2b(0x11c)](_0x3833f6),{'boundaries':_0x45bc9b});_0x45bc9b=_0x45d36c[_0x2f3d2b(0x113)](_0x23c4db,_0x45bc9b[_0x2f3d2b(0xce)]);}_0x45d36c[_0x2f3d2b(0xca)](_0x1892d2,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x45bc9b}),_0x35a2ad++;}}),window[_0x438f7d(0xc7)]()?.[_0x438f7d(0x12c)](),!0x0;}[_0x53ce06(0x11a)](_0x5820de){const _0x1fad7f=_0x53ce06;if(this[_0x1fad7f(0xdc)]!=_0x5820de)return!0x1;this[_0x1fad7f(0xdc)]=null,this[_0x1fad7f(0xf9)]=!0x1;const _0x3fa174=_0x385df4(this[_0x1fad7f(0xfc)]),_0x22509f=_0x3fa174[_0x1fad7f(0xfe)][_0x1fad7f(0xde)][_0x1fad7f(0xcd)](_0x1fad7f(0x111));return _0x3fa174[_0x1fad7f(0xfe)][_0x1fad7f(0xd9)](_0x19c85a=>{const _0x21165=_0x1fad7f;for(const _0x16262d of _0x22509f)_0x19c85a[_0x21165(0x124)](_0x16262d);}),!0x0;}[_0x53ce06(0x115)](_0x298fd0){const _0x4e1df7=_0x53ce06,_0x5abc43=_0x385df4(this[_0x4e1df7(0xfc)]),_0x26fd78=_0x5abc43[_0x4e1df7(0x130)][_0x4e1df7(0xf7)](_0x298fd0),_0x1ce153=new _0x270c4e(_0x5abc43[_0x4e1df7(0xdb)][_0x4e1df7(0x109)][_0x4e1df7(0x125)]);return this[_0x4e1df7(0x120)](_0x26fd78,_0x1ce153),_0x26fd78;}[_0x53ce06(0x120)](_0x50d40d,_0x5301fa){const _0x4549b4=_0x53ce06;let _0x24f472=!0x1;const _0x123548=new Set();for(const _0x52cf88 of _0x50d40d[_0x4549b4(0x11b)]()){const _0x13e684=_0x52cf88['is'](_0x4549b4(0x108))||_0x52cf88['is'](_0x4549b4(0x10e));if(!_0x52cf88['is'](_0x4549b4(0xc9)))continue;(this[_0x4549b4(0x120)](_0x52cf88,_0x5301fa)||_0x13e684)&&(_0x5301fa[_0x4549b4(0xea)](_0x4549b4(0x12e),this[_0x4549b4(0xd1)](_0x123548),_0x52cf88),_0x24f472=!0x0);}return _0x24f472;}[_0x53ce06(0xd1)](_0x27bef4){const _0x2b0358=_0x53ce06;let _0x646bd;do{_0x646bd='';for(let _0x58034e=0x0;_0x58034e<0x4;_0x58034e++)_0x646bd+=String[_0x2b0358(0xcf)](0x61+Math[_0x2b0358(0xf5)](0x1a*Math[_0x2b0358(0x10f)]()));}while(_0x27bef4[_0x2b0358(0xed)](_0x646bd));return _0x27bef4[_0x2b0358(0x122)](_0x646bd),_0x646bd;}[_0x53ce06(0x11e)](){const _0x2c4f1d=_0x53ce06,{model:_0x502579}=_0x385df4(this[_0x2c4f1d(0xfc)]),_0x132906=_0x502579[_0x2c4f1d(0x125)][_0x2c4f1d(0x126)],_0x2f614c=_0x502579[_0x2c4f1d(0xff)](_0x132906),_0x35f7f3=[],_0x5d9ba2=_0x502579[_0x2c4f1d(0xfb)](_0x2f614c)[_0x2c4f1d(0x11d)]();for(const {item:_0x40bb1d}of _0x5d9ba2)_0x40bb1d['is'](_0x2c4f1d(0xd5))?_0x35f7f3[_0x2c4f1d(0xd3)](_0x40bb1d[_0x2c4f1d(0x130)]):_0x40bb1d['is'](_0x2c4f1d(0xc9))&&_0x35f7f3[_0x2c4f1d(0xf1)]>0x0&&'\x20'!==_0x35f7f3[_0x35f7f3[_0x2c4f1d(0xf1)]-0x1]&&_0x35f7f3[_0x2c4f1d(0xd3)]('\x20');return'\x22'+_0x35f7f3[_0x2c4f1d(0x106)]('')[_0x2c4f1d(0xdd)]()+'\x22';}[_0x53ce06(0xf4)](){const _0x4d2b42=_0x53ce06,_0x367254=_0x385df4(this[_0x4d2b42(0xfc)])[_0x4d2b42(0xfe)];return Array[_0x4d2b42(0xf8)](_0x367254[_0x4d2b42(0xde)][_0x4d2b42(0xcd)](_0x4d2b42(0x111)))[_0x4d2b42(0xe1)]((_0x2d1693,_0x442329)=>_0x2d1693[_0x4d2b42(0x118)]()[_0x4d2b42(0xda)](_0x442329[_0x4d2b42(0x118)]())?-0x1:_0x2d1693[_0x4d2b42(0x118)]()[_0x4d2b42(0xf6)](_0x442329[_0x4d2b42(0x118)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2ee8(_0x3b14bd,_0x30ca53){const _0xf1d5e=_0xf1d5();return _0x2ee8=function(_0x2ee8e1,_0x152327){_0x2ee8e1=_0x2ee8e1-0x74;let _0x16d680=_0xf1d5e[_0x2ee8e1];return _0x16d680;},_0x2ee8(_0x3b14bd,_0x30ca53);}const _0x350811=_0x2ee8;(function(_0x1915ab,_0x111c2d){const _0x221b69=_0x2ee8,_0x11d4bb=_0x1915ab();while(!![]){try{const _0x5691a6=-parseInt(_0x221b69(0x83))/0x1+-parseInt(_0x221b69(0x78))/0x2+parseInt(_0x221b69(0x74))/0x3+parseInt(_0x221b69(0x7b))/0x4+parseInt(_0x221b69(0x7d))/0x5+-parseInt(_0x221b69(0x75))/0x6+parseInt(_0x221b69(0x85))/0x7;if(_0x5691a6===_0x111c2d)break;else _0x11d4bb['push'](_0x11d4bb['shift']());}catch(_0x844434){_0x11d4bb['push'](_0x11d4bb['shift']());}}}(_0xf1d5,0xbdcae));import{EmitterMixin as _0x5503c1}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x350811(0x8a)];function _0xf1d5(){const _0x5ca23a=['4027782KQfsSl','4837260aNjvTp','isReasoningEnabled','reset','1040940BnpKkt','webSearch','toggleReasoning','695812ccEuxu','fire','589445yPAlfN','getCapabilitiesConfig','setReasoning','toggleWebSearch','getCapabilitiesRequestData','setWebSearch','84427rIYVYl','reasoning','3878427tLyclb','_isWebSearchEnabled','isWebSearchEnabled','_isReasoningEnabled','init','capabilitiesUpdated'];_0xf1d5=function(){return _0x5ca23a;};return _0xf1d5();}export class AICapabilities extends _0x5503c1(){[_0x350811(0x86)];[_0x350811(0x88)];constructor(){const _0x440455=_0x350811;super(),this[_0x440455(0x86)]=!0x1,this[_0x440455(0x88)]=!0x1;}[_0x350811(0x89)](){const _0x2d5363=_0x350811;this[_0x2d5363(0x77)]();}[_0x350811(0x77)](){const _0x305f02=_0x350811;this[_0x305f02(0x82)](!0x1),this[_0x305f02(0x7f)](!0x1);}[_0x350811(0x7e)](){const _0x5dbe63=_0x350811;return{'isWebSearchEnabled':this[_0x5dbe63(0x86)],'isReasoningEnabled':this[_0x5dbe63(0x88)]};}static[_0x350811(0x81)](_0x2bc8fb){const _0x558b0b=_0x350811,_0x1f7db8={};return _0x2bc8fb&&_0x2bc8fb[_0x558b0b(0x87)]&&(_0x1f7db8[_0x558b0b(0x79)]={}),_0x2bc8fb&&_0x2bc8fb[_0x558b0b(0x76)]&&(_0x1f7db8[_0x558b0b(0x84)]={}),_0x1f7db8;}[_0x350811(0x80)](){const _0xc3cadd=_0x350811;this[_0xc3cadd(0x82)](!this[_0xc3cadd(0x86)]);}[_0x350811(0x7a)](){const _0x37c087=_0x350811;this[_0x37c087(0x7f)](!this[_0x37c087(0x88)]);}[_0x350811(0x82)](_0x5a901e){const _0x5ea8a3=_0x350811;_0x5a901e!==this[_0x5ea8a3(0x86)]&&(this[_0x5ea8a3(0x86)]=_0x5a901e,this[_0x5ea8a3(0x7c)](_0x5ea8a3(0x8a),this[_0x5ea8a3(0x7e)]()));}[_0x350811(0x7f)](_0x169296){const _0xf27c46=_0x350811;_0x169296!==this[_0xf27c46(0x88)]&&(this[_0xf27c46(0x88)]=_0x169296,this[_0xf27c46(0x7c)](_0xf27c46(0x8a),this[_0xf27c46(0x7e)]()));}}
23
+ const _0x2bebf6=_0x50ff;(function(_0x39d8d8,_0x5e0110){const _0x3b60a4=_0x50ff,_0xe89480=_0x39d8d8();while(!![]){try{const _0x4fc286=-parseInt(_0x3b60a4(0x1c8))/0x1+parseInt(_0x3b60a4(0x1b2))/0x2+-parseInt(_0x3b60a4(0x1ba))/0x3+parseInt(_0x3b60a4(0x1b7))/0x4+parseInt(_0x3b60a4(0x1c0))/0x5+-parseInt(_0x3b60a4(0x1b6))/0x6*(-parseInt(_0x3b60a4(0x1bd))/0x7)+-parseInt(_0x3b60a4(0x1bf))/0x8;if(_0x4fc286===_0x5e0110)break;else _0xe89480['push'](_0xe89480['shift']());}catch(_0x403ecf){_0xe89480['push'](_0xe89480['shift']());}}}(_0x5191,0x539f6));function _0x50ff(_0x317f03,_0x10b705){const _0x519173=_0x5191();return _0x50ff=function(_0x50fffb,_0x34de02){_0x50fffb=_0x50fffb-0x1b2;let _0x23e627=_0x519173[_0x50fffb];return _0x23e627;},_0x50ff(_0x317f03,_0x10b705);}function _0x5191(){const _0x232628=['setReasoning','toggleWebSearch','capabilitiesUpdated','49722UBrQQu','2090088XCVIut','setWebSearch','init','280917xhFRIn','reasoning','getCapabilitiesConfig','77UAukGq','toggleReasoning','3069536adWtZE','569700sBmsuu','_isWebSearchEnabled','_isReasoningEnabled','isReasoningEnabled','webSearch','fire','reset','getCapabilitiesRequestData','73059hljWNb','isWebSearchEnabled','330578hBqtod'];_0x5191=function(){return _0x232628;};return _0x5191();}import{EmitterMixin as _0x5bf421}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2bebf6(0x1b5)];export class AICapabilities extends _0x5bf421(){[_0x2bebf6(0x1c1)];[_0x2bebf6(0x1c2)];constructor(){const _0x4d6256=_0x2bebf6;super(),this[_0x4d6256(0x1c1)]=!0x1,this[_0x4d6256(0x1c2)]=!0x1;}[_0x2bebf6(0x1b9)](){const _0x1994aa=_0x2bebf6;this[_0x1994aa(0x1c6)]();}[_0x2bebf6(0x1c6)](){const _0x13a573=_0x2bebf6;this[_0x13a573(0x1b8)](!0x1),this[_0x13a573(0x1b3)](!0x1);}[_0x2bebf6(0x1bc)](){const _0x270325=_0x2bebf6;return{'isWebSearchEnabled':this[_0x270325(0x1c1)],'isReasoningEnabled':this[_0x270325(0x1c2)]};}static[_0x2bebf6(0x1c7)](_0x1eda6c){const _0xc30f79=_0x2bebf6,_0x31c448={};return _0x1eda6c&&_0x1eda6c[_0xc30f79(0x1c9)]&&(_0x31c448[_0xc30f79(0x1c4)]={}),_0x1eda6c&&_0x1eda6c[_0xc30f79(0x1c3)]&&(_0x31c448[_0xc30f79(0x1bb)]={}),_0x31c448;}[_0x2bebf6(0x1b4)](){const _0x30d3c9=_0x2bebf6;this[_0x30d3c9(0x1b8)](!this[_0x30d3c9(0x1c1)]);}[_0x2bebf6(0x1be)](){const _0x212436=_0x2bebf6;this[_0x212436(0x1b3)](!this[_0x212436(0x1c2)]);}[_0x2bebf6(0x1b8)](_0xdef12a){const _0x2a8b6b=_0x2bebf6;_0xdef12a!==this[_0x2a8b6b(0x1c1)]&&(this[_0x2a8b6b(0x1c1)]=_0xdef12a,this[_0x2a8b6b(0x1c5)](_0x2a8b6b(0x1b5),this[_0x2a8b6b(0x1bc)]()));}[_0x2bebf6(0x1b3)](_0x1cbef5){const _0x25aa1c=_0x2bebf6;_0x1cbef5!==this[_0x25aa1c(0x1c2)]&&(this[_0x25aa1c(0x1c2)]=_0x1cbef5,this[_0x25aa1c(0x1c5)](_0x25aa1c(0x1b5),this[_0x25aa1c(0x1bc)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x265f73,_0xa0f75e){var _0x49c6b4=_0x52cb,_0x1b6c6b=_0x265f73();while(!![]){try{var _0x3b455a=parseInt(_0x49c6b4(0x10d))/0x1*(-parseInt(_0x49c6b4(0xfc))/0x2)+-parseInt(_0x49c6b4(0xfb))/0x3+parseInt(_0x49c6b4(0x10a))/0x4*(-parseInt(_0x49c6b4(0xff))/0x5)+-parseInt(_0x49c6b4(0x108))/0x6*(-parseInt(_0x49c6b4(0x103))/0x7)+-parseInt(_0x49c6b4(0x101))/0x8*(parseInt(_0x49c6b4(0x105))/0x9)+parseInt(_0x49c6b4(0x10c))/0xa*(-parseInt(_0x49c6b4(0x10e))/0xb)+parseInt(_0x49c6b4(0xfa))/0xc*(parseInt(_0x49c6b4(0x110))/0xd);if(_0x3b455a===_0xa0f75e)break;else _0x1b6c6b['push'](_0x1b6c6b['shift']());}catch(_0x456ce9){_0x1b6c6b['push'](_0x1b6c6b['shift']());}}}(_0x1d2b,0x74a0a));export var AIContextItemType;!function(_0x433d7b){var _0x58997b=_0x52cb;_0x433d7b[_0x58997b(0xfe)]=_0x58997b(0x106),_0x433d7b[_0x58997b(0x112)]=_0x58997b(0x107),_0x433d7b[_0x58997b(0x104)]=_0x58997b(0x10b),_0x433d7b[_0x58997b(0x113)]=_0x58997b(0x100),_0x433d7b[_0x58997b(0x109)]=_0x58997b(0xf9);}(AIContextItemType||(AIContextItemType={}));function _0x1d2b(){var _0x5e6ffc=['TEXT','selection','95124TChQee','386130proVja','168496kyzXEq','HTML','FILE','1795hsizQN','text','72088nsHuGI','markdown','487389BGnWAI','URL','801mpfIHL','file','document','18cwfEsa','SELECTION','6268JCPbhA','web-resource','7832310YOlRos','11ZCJIyp','11SZLwcf','MARKDOWN','5694YvELsc','html','DOCUMENT'];_0x1d2b=function(){return _0x5e6ffc;};return _0x1d2b();}export var AIContextTextResourceType;function _0x52cb(_0x406ead,_0xe2573e){var _0x1d2b6a=_0x1d2b();return _0x52cb=function(_0x52cb16,_0x3e30c1){_0x52cb16=_0x52cb16-0xf9;var _0x269386=_0x1d2b6a[_0x52cb16];return _0x269386;},_0x52cb(_0x406ead,_0xe2573e);}!function(_0x1b5ab4){var _0x2bdcc5=_0x52cb;_0x1b5ab4[_0x2bdcc5(0x113)]=_0x2bdcc5(0x100),_0x1b5ab4[_0x2bdcc5(0x10f)]=_0x2bdcc5(0x102),_0x1b5ab4[_0x2bdcc5(0xfd)]=_0x2bdcc5(0x111);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x189e1e,_0x1e181c){var _0x42c6e4=_0x8365,_0x5ba332=_0x189e1e();while(!![]){try{var _0x8a93ab=-parseInt(_0x42c6e4(0x182))/0x1*(parseInt(_0x42c6e4(0x187))/0x2)+-parseInt(_0x42c6e4(0x184))/0x3+parseInt(_0x42c6e4(0x183))/0x4+-parseInt(_0x42c6e4(0x195))/0x5*(-parseInt(_0x42c6e4(0x18e))/0x6)+-parseInt(_0x42c6e4(0x192))/0x7*(parseInt(_0x42c6e4(0x191))/0x8)+-parseInt(_0x42c6e4(0x196))/0x9*(parseInt(_0x42c6e4(0x181))/0xa)+parseInt(_0x42c6e4(0x18d))/0xb;if(_0x8a93ab===_0x1e181c)break;else _0x5ba332['push'](_0x5ba332['shift']());}catch(_0x53529b){_0x5ba332['push'](_0x5ba332['shift']());}}}(_0x3ae5,0x443e5));function _0x3ae5(){var _0x165497=['569613iuLWST','html','selection','983924LzGgqb','text','URL','markdown','MARKDOWN','TEXT','14394468Bpbwpf','34980fZIFWF','HTML','document','3793352uHLYej','7cZkRvs','web-resource','file','50YeHeHl','18wXPRuu','FILE','SELECTION','DOCUMENT','1271370hesnuR','1CYsXrk','1291652HXuvCU'];_0x3ae5=function(){return _0x165497;};return _0x3ae5();}export var AIContextItemType;function _0x8365(_0x3b40cb,_0x240307){var _0x3ae5a6=_0x3ae5();return _0x8365=function(_0x836563,_0x19f841){_0x836563=_0x836563-0x17f;var _0x7ed9a8=_0x3ae5a6[_0x836563];return _0x7ed9a8;},_0x8365(_0x3b40cb,_0x240307);}!function(_0x4a21c9){var _0x313362=_0x8365;_0x4a21c9[_0x313362(0x197)]=_0x313362(0x194),_0x4a21c9[_0x313362(0x180)]=_0x313362(0x190),_0x4a21c9[_0x313362(0x189)]=_0x313362(0x193),_0x4a21c9[_0x313362(0x18c)]=_0x313362(0x188),_0x4a21c9[_0x313362(0x17f)]=_0x313362(0x186);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x400d3b){var _0x324331=_0x8365;_0x400d3b[_0x324331(0x18c)]=_0x324331(0x188),_0x400d3b[_0x324331(0x18b)]=_0x324331(0x18a),_0x400d3b[_0x324331(0x18f)]=_0x324331(0x185);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xed01bc=_0x1f54;(function(_0xd96b7b,_0x2b4eed){const _0x4aa209=_0x1f54,_0x23d22a=_0xd96b7b();while(!![]){try{const _0x11b5c8=parseInt(_0x4aa209(0x13d))/0x1+-parseInt(_0x4aa209(0x10c))/0x2+parseInt(_0x4aa209(0x108))/0x3*(-parseInt(_0x4aa209(0x110))/0x4)+-parseInt(_0x4aa209(0x12e))/0x5*(parseInt(_0x4aa209(0x10a))/0x6)+-parseInt(_0x4aa209(0x12d))/0x7*(parseInt(_0x4aa209(0x125))/0x8)+-parseInt(_0x4aa209(0x105))/0x9+parseInt(_0x4aa209(0x128))/0xa;if(_0x11b5c8===_0x2b4eed)break;else _0x23d22a['push'](_0x23d22a['shift']());}catch(_0x9c2f36){_0x23d22a['push'](_0x23d22a['shift']());}}}(_0x3ae4,0x1e66e));function _0x1f54(_0x3b97d4,_0x2d47cb){const _0x3ae4a3=_0x3ae4();return _0x1f54=function(_0x1f54c2,_0x206c0d){_0x1f54c2=_0x1f54c2-0xf8;let _0x418fbf=_0x3ae4a3[_0x1f54c2];return _0x418fbf;},_0x1f54(_0x3b97d4,_0x2d47cb);}import{CKEditorError as _0x550351,EmitterMixin as _0x30f7f1,logWarning as _0x13f60e,uid as _0x317fc7}from'ckeditor5/src/utils.js';import{AIReply as _0x5e86fb,isIgnoredReplyType as _0x4c1f24,isValidReplyType as _0x11ba46,isReplyTitleType as _0x2e95c3,isSourceType as _0x1e9e92}from'./aireply.js';function _0x3ae4(){const _0x2b9541=['8ULRHJb','push','messageId','length','_isReasoning','done','createReply','reasoningFinished','abort','content','actionCallId','web-search','interactionCreated','getStream','currentReply','conversationTitle','interactionStopped','find','replyContentUpdated','delegate','modification-delta','8SqGdPy','fire','replies','6504140lHRysN','message-metadata','isStopped','getReply','destroy','1613192zKLsWE','220ieVINh','interactionStarted','splice','ai-chat-interaction-error','webSearchStarted','reasoning','source','appendContent','stopListening','isDestroyed','replyChangeGroupStateUpdated','editor','ai-interaction-invalid-event-type','_isWebSearching','currentRequest','138324DngpUG','connector','getDocumentContext','action-metadata','replyCreated','abortController','error','forEach','_finalizeInteraction','webSearchFinished','interactionDestroyed','sendRequest','reasoningStarted','textDelta','event','951309YTBhGJ','interactionFinished','sources','119742bfNqsf','stop','32136ScrYCq','setConversationTitle','25126zJbLme','data','callId','start'];_0x3ae4=function(){return _0x2b9541;};return _0x3ae4();}export const AI_MODEL_EVENT_NAMES=[_0xed01bc(0x11c),_0xed01bc(0x12f),_0xed01bc(0x120),_0xed01bc(0x106),_0xed01bc(0x100),_0xed01bc(0xfa),_0xed01bc(0x122),_0xed01bc(0x138),_0xed01bc(0x10b),_0xed01bc(0x132),_0xed01bc(0xff),_0xed01bc(0x102),_0xed01bc(0x117),_0xed01bc(0xfc)];export class AIInteraction extends _0x30f7f1(){['id'];[_0xed01bc(0x127)]=[];[_0xed01bc(0x11e)];[_0xed01bc(0x112)];[_0xed01bc(0x11a)];[_0xed01bc(0x13c)];[_0xed01bc(0x13e)];[_0xed01bc(0x12a)]=!0x1;[_0xed01bc(0x137)]=!0x1;[_0xed01bc(0x139)];[_0xed01bc(0x114)]=!0x1;[_0xed01bc(0x13b)]=!0x1;constructor({connector:_0x1d8238,editor:_0x363893}){const _0x4aa0a4=_0xed01bc;super(),this['id']=_0x317fc7(),this[_0x4aa0a4(0x13e)]=_0x1d8238,this[_0x4aa0a4(0x12a)]=!0x0,this[_0x4aa0a4(0x139)]=_0x363893;}async[_0xed01bc(0x10f)](){const _0x5af7e9=_0xed01bc;let _0xee96a8;const _0x1f1bde=[];this[_0x5af7e9(0x12a)]=!0x1;try{this[_0x5af7e9(0x13c)]=await this[_0x5af7e9(0x101)](),this[_0x5af7e9(0x126)](_0x5af7e9(0x12f),this);const _0x4defef=await this[_0x5af7e9(0x13c)][_0x5af7e9(0x11d)]();for await(const _0x1f79fc of _0x4defef){if(this[_0x5af7e9(0x12a)])return;if(_0x5af7e9(0xfc)===_0x1f79fc[_0x5af7e9(0x104)])return void this[_0x5af7e9(0x126)](_0x5af7e9(0xfc),{'error':new _0x550351(_0x5af7e9(0x131),this)});if(_0x5af7e9(0x129)!==_0x1f79fc[_0x5af7e9(0x104)]){if(_0x5af7e9(0xf9)!==_0x1f79fc[_0x5af7e9(0x104)]){if(_0x2e95c3(_0x1f79fc[_0x5af7e9(0x104)])&&this[_0x5af7e9(0x10b)](_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x11f)],!0x0),_0x1e9e92(_0x1f79fc[_0x5af7e9(0x104)]))_0x1f1bde[_0x5af7e9(0x111)](_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x134)]);else{if(_0x11ba46(_0x1f79fc[_0x5af7e9(0x104)])){if(_0x1f79fc[_0x5af7e9(0x104)]!==_0xee96a8){if(_0xee96a8=_0x1f79fc[_0x5af7e9(0x104)],_0x5af7e9(0x11b)===_0x1f79fc[_0x5af7e9(0x104)]){this[_0x5af7e9(0x13b)]||(this[_0x5af7e9(0x13b)]=!0x0,this[_0x5af7e9(0x126)](_0x5af7e9(0x132),this));continue;}if(_0x5af7e9(0x133)===_0x1f79fc[_0x5af7e9(0x104)]){this[_0x5af7e9(0x114)]||(this[_0x5af7e9(0x114)]=!0x0,this[_0x5af7e9(0x126)](_0x5af7e9(0x102),this));continue;}this[_0x5af7e9(0x114)]&&(this[_0x5af7e9(0x114)]=!0x1,this[_0x5af7e9(0x126)](_0x5af7e9(0x117),this)),this[_0x5af7e9(0x13b)]&&(this[_0x5af7e9(0x13b)]=!0x1,this[_0x5af7e9(0x126)](_0x5af7e9(0xff),this)),this[_0x5af7e9(0x11e)]&&this[_0x5af7e9(0x11e)][_0x5af7e9(0x115)](),this[_0x5af7e9(0x11e)]=this[_0x5af7e9(0x116)]({'type':_0x1f79fc[_0x5af7e9(0x104)],'interactionId':this['id'],'id':_0x1f79fc[_0x5af7e9(0x10d)]?.['id']}),_0x1f1bde[_0x5af7e9(0x113)]>0x0&&_0x5af7e9(0x124)===_0x1f79fc[_0x5af7e9(0x104)]&&(this[_0x5af7e9(0x11e)][_0x5af7e9(0x107)]=_0x1f1bde[_0x5af7e9(0x130)](0x0));}_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x103)]&&this[_0x5af7e9(0x11e)][_0x5af7e9(0x135)](_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x103)]);}else _0x4c1f24(_0x1f79fc[_0x5af7e9(0x104)])||_0x13f60e(_0x5af7e9(0x13a),{'chunk':_0x1f79fc});}}else this[_0x5af7e9(0x11a)]=_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x10e)];}else this[_0x5af7e9(0x112)]=_0x1f79fc[_0x5af7e9(0x10d)][_0x5af7e9(0x112)];}}finally{this[_0x5af7e9(0x12a)]||(_0x1f1bde[_0x5af7e9(0x113)]>0x0&&(this[_0x5af7e9(0x11e)][_0x5af7e9(0x107)]=_0x1f1bde[_0x5af7e9(0x130)](0x0)),this[_0x5af7e9(0xfe)](),this[_0x5af7e9(0x126)](_0x5af7e9(0x106),this));}}[_0xed01bc(0x109)](){const _0x62229c=_0xed01bc;this[_0x62229c(0x12a)]||(this[_0x62229c(0xfe)](),this[_0x62229c(0x126)](_0x62229c(0x120),this));}[_0xed01bc(0x12b)](_0x4464be){const _0x11e832=_0xed01bc;return this[_0x11e832(0x127)][_0x11e832(0x121)](_0x45eef5=>_0x45eef5['id']===_0x4464be);}[_0xed01bc(0x12c)](){const _0xdf7387=_0xed01bc;this[_0xdf7387(0x137)]||(this[_0xdf7387(0x109)](),this[_0xdf7387(0x127)][_0xdf7387(0xfd)](_0x4f3d64=>_0x4f3d64[_0xdf7387(0x12c)]()),this[_0xdf7387(0x127)]=[],this[_0xdf7387(0x137)]=!0x0,this[_0xdf7387(0x126)](_0xdf7387(0x100),this),this[_0xdf7387(0x136)]());}[_0xed01bc(0x116)](_0x5975dc){const _0x1effe2=_0xed01bc,_0x56628e=new _0x5e86fb({'editor':this[_0x1effe2(0x139)],'documentContextContent':this[_0x1effe2(0xf8)]()?.[_0x1effe2(0x119)],..._0x5975dc});return this[_0x1effe2(0x127)][_0x1effe2(0x111)](_0x56628e),_0x56628e[_0x1effe2(0x123)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1effe2(0x126)](_0x1effe2(0xfa),_0x56628e),_0x56628e;}[_0xed01bc(0x10b)](_0x11fbbd,_0x48ddad=!0x1){const _0x54419f=_0xed01bc;this[_0x54419f(0x126)](_0x54419f(0x10b),_0x11fbbd,_0x48ddad);}[_0xed01bc(0xfe)](){const _0x258fa2=_0xed01bc;this[_0x258fa2(0x12a)]=!0x0,this[_0x258fa2(0x13c)]&&this[_0x258fa2(0x13c)][_0x258fa2(0xfb)][_0x258fa2(0x118)](),this[_0x258fa2(0x11e)]&&this[_0x258fa2(0x11e)][_0x258fa2(0x115)](),this[_0x258fa2(0x13c)]=this[_0x258fa2(0x11e)]=void 0x0;}}
23
+ function _0x12a0(_0x3231af,_0x3a8f0e){const _0x232174=_0x2321();return _0x12a0=function(_0x12a0a4,_0xa985ea){_0x12a0a4=_0x12a0a4-0x1dd;let _0x5d6654=_0x232174[_0x12a0a4];return _0x5d6654;},_0x12a0(_0x3231af,_0x3a8f0e);}const _0x316168=_0x12a0;(function(_0x24354c,_0x383e9e){const _0x49cc9d=_0x12a0,_0x1d2658=_0x24354c();while(!![]){try{const _0xac1dd=parseInt(_0x49cc9d(0x218))/0x1+parseInt(_0x49cc9d(0x1f0))/0x2+parseInt(_0x49cc9d(0x21b))/0x3+parseInt(_0x49cc9d(0x201))/0x4*(-parseInt(_0x49cc9d(0x1ef))/0x5)+parseInt(_0x49cc9d(0x214))/0x6+-parseInt(_0x49cc9d(0x1e7))/0x7+-parseInt(_0x49cc9d(0x1f2))/0x8;if(_0xac1dd===_0x383e9e)break;else _0x1d2658['push'](_0x1d2658['shift']());}catch(_0x18c72){_0x1d2658['push'](_0x1d2658['shift']());}}}(_0x2321,0xc4f88));function _0x2321(){const _0x3d73ef=['11927032PRyVTm','conversationTitle','sendRequest','data','find','abort','_finalizeInteraction','abortController','event','stop','reasoningFinished','length','currentReply','actionCallId','reasoningStarted','119984vgNTqs','ai-interaction-invalid-event-type','currentRequest','editor','replyContentUpdated','interactionStopped','replyCreated','error','textDelta','start','web-search','getDocumentContext','reasoning','interactionFinished','webSearchStarted','interactionDestroyed','messageId','getStream','_isReasoning','480396HkrCUR','replies','replyChangeGroupStateUpdated','setConversationTitle','1103134FZovqJ','ai-chat-interaction-error','destroy','4777170EXjIhy','splice','isStopped','action-metadata','stopListening','forEach','done','interactionStarted','modification-delta','push','connector','callId','content','webSearchFinished','getReply','fire','appendContent','5780348PHWSjU','interactionCreated','createReply','source','message-metadata','isDestroyed','_isWebSearching','delegate','185GUrzwP','2915394nstOEe','sources'];_0x2321=function(){return _0x3d73ef;};return _0x2321();}import{CKEditorError as _0x101518,EmitterMixin as _0x24e247,logWarning as _0x5703ac,uid as _0x382f53}from'ckeditor5/src/utils.js';import{AIReply as _0x1ec839,isIgnoredReplyType as _0x5344c0,isValidReplyType as _0x112af2,isReplyTitleType as _0xb17076,isSourceType as _0x5c7d92}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x316168(0x1e8),_0x316168(0x1dd),_0x316168(0x206),_0x316168(0x20e),_0x316168(0x210),_0x316168(0x207),_0x316168(0x205),_0x316168(0x216),_0x316168(0x217),_0x316168(0x20f),_0x316168(0x1e3),_0x316168(0x200),_0x316168(0x1fc),_0x316168(0x208)];export class AIInteraction extends _0x24e247(){['id'];[_0x316168(0x215)]=[];[_0x316168(0x1fe)];[_0x316168(0x211)];[_0x316168(0x1ff)];[_0x316168(0x203)];[_0x316168(0x1e0)];[_0x316168(0x21d)]=!0x1;[_0x316168(0x1ec)]=!0x1;[_0x316168(0x204)];[_0x316168(0x213)]=!0x1;[_0x316168(0x1ed)]=!0x1;constructor({connector:_0x25bf7a,editor:_0x56fd2a}){const _0x5d0511=_0x316168;super(),this['id']=_0x382f53(),this[_0x5d0511(0x1e0)]=_0x25bf7a,this[_0x5d0511(0x21d)]=!0x0,this[_0x5d0511(0x204)]=_0x56fd2a;}async[_0x316168(0x20a)](){const _0x5d2aad=_0x316168;let _0x5b9e10;const _0x45d767=[];this[_0x5d2aad(0x21d)]=!0x1;try{this[_0x5d2aad(0x203)]=await this[_0x5d2aad(0x1f4)](),this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1dd),this);const _0x2e8291=await this[_0x5d2aad(0x203)][_0x5d2aad(0x212)]();for await(const _0x307bbe of _0x2e8291){if(this[_0x5d2aad(0x21d)])return;if(_0x5d2aad(0x208)===_0x307bbe[_0x5d2aad(0x1fa)])return void this[_0x5d2aad(0x1e5)](_0x5d2aad(0x208),{'error':new _0x101518(_0x5d2aad(0x219),this)});if(_0x5d2aad(0x1eb)!==_0x307bbe[_0x5d2aad(0x1fa)]){if(_0x5d2aad(0x21e)!==_0x307bbe[_0x5d2aad(0x1fa)]){if(_0xb17076(_0x307bbe[_0x5d2aad(0x1fa)])&&this[_0x5d2aad(0x217)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1f3)],!0x0),_0x5c7d92(_0x307bbe[_0x5d2aad(0x1fa)]))_0x45d767[_0x5d2aad(0x1df)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1ea)]);else{if(_0x112af2(_0x307bbe[_0x5d2aad(0x1fa)])){if(_0x307bbe[_0x5d2aad(0x1fa)]!==_0x5b9e10){if(_0x5b9e10=_0x307bbe[_0x5d2aad(0x1fa)],_0x5d2aad(0x20b)===_0x307bbe[_0x5d2aad(0x1fa)]){this[_0x5d2aad(0x1ed)]||(this[_0x5d2aad(0x1ed)]=!0x0,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x20f),this));continue;}if(_0x5d2aad(0x20d)===_0x307bbe[_0x5d2aad(0x1fa)]){this[_0x5d2aad(0x213)]||(this[_0x5d2aad(0x213)]=!0x0,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x200),this));continue;}this[_0x5d2aad(0x213)]&&(this[_0x5d2aad(0x213)]=!0x1,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1fc),this)),this[_0x5d2aad(0x1ed)]&&(this[_0x5d2aad(0x1ed)]=!0x1,this[_0x5d2aad(0x1e5)](_0x5d2aad(0x1e3),this)),this[_0x5d2aad(0x1fe)]&&this[_0x5d2aad(0x1fe)][_0x5d2aad(0x221)](),this[_0x5d2aad(0x1fe)]=this[_0x5d2aad(0x1e9)]({'type':_0x307bbe[_0x5d2aad(0x1fa)],'interactionId':this['id'],'id':_0x307bbe[_0x5d2aad(0x1f5)]?.['id']}),_0x45d767[_0x5d2aad(0x1fd)]>0x0&&_0x5d2aad(0x1de)===_0x307bbe[_0x5d2aad(0x1fa)]&&(this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1f1)]=_0x45d767[_0x5d2aad(0x21c)](0x0));}_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x209)]&&this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1e6)](_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x209)]);}else _0x5344c0(_0x307bbe[_0x5d2aad(0x1fa)])||_0x5703ac(_0x5d2aad(0x202),{'chunk':_0x307bbe});}}else this[_0x5d2aad(0x1ff)]=_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x1e1)];}else this[_0x5d2aad(0x211)]=_0x307bbe[_0x5d2aad(0x1f5)][_0x5d2aad(0x211)];}}finally{this[_0x5d2aad(0x21d)]||(_0x45d767[_0x5d2aad(0x1fd)]>0x0&&(this[_0x5d2aad(0x1fe)][_0x5d2aad(0x1f1)]=_0x45d767[_0x5d2aad(0x21c)](0x0)),this[_0x5d2aad(0x1f8)](),this[_0x5d2aad(0x1e5)](_0x5d2aad(0x20e),this));}}[_0x316168(0x1fb)](){const _0x5e0063=_0x316168;this[_0x5e0063(0x21d)]||(this[_0x5e0063(0x1f8)](),this[_0x5e0063(0x1e5)](_0x5e0063(0x206),this));}[_0x316168(0x1e4)](_0x179dcc){const _0x41b9b5=_0x316168;return this[_0x41b9b5(0x215)][_0x41b9b5(0x1f6)](_0xfe2f82=>_0xfe2f82['id']===_0x179dcc);}[_0x316168(0x21a)](){const _0x1faacd=_0x316168;this[_0x1faacd(0x1ec)]||(this[_0x1faacd(0x1fb)](),this[_0x1faacd(0x215)][_0x1faacd(0x220)](_0x5a5638=>_0x5a5638[_0x1faacd(0x21a)]()),this[_0x1faacd(0x215)]=[],this[_0x1faacd(0x1ec)]=!0x0,this[_0x1faacd(0x1e5)](_0x1faacd(0x210),this),this[_0x1faacd(0x21f)]());}[_0x316168(0x1e9)](_0xc1702d){const _0x734798=_0x316168,_0x4b650b=new _0x1ec839({'editor':this[_0x734798(0x204)],'documentContextContent':this[_0x734798(0x20c)]()?.[_0x734798(0x1e2)],..._0xc1702d});return this[_0x734798(0x215)][_0x734798(0x1df)](_0x4b650b),_0x4b650b[_0x734798(0x1ee)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x734798(0x1e5)](_0x734798(0x207),_0x4b650b),_0x4b650b;}[_0x316168(0x217)](_0x2bd808,_0x311fa4=!0x1){const _0x483f07=_0x316168;this[_0x483f07(0x1e5)](_0x483f07(0x217),_0x2bd808,_0x311fa4);}[_0x316168(0x1f8)](){const _0x4f0650=_0x316168;this[_0x4f0650(0x21d)]=!0x0,this[_0x4f0650(0x203)]&&this[_0x4f0650(0x203)][_0x4f0650(0x1f9)][_0x4f0650(0x1f7)](),this[_0x4f0650(0x1fe)]&&this[_0x4f0650(0x1fe)][_0x4f0650(0x221)](),this[_0x4f0650(0x203)]=this[_0x4f0650(0x1fe)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2580(){const _0x2d2cf8=['_connector','ai-models-unable-to-retrieve','find','agent','AI_MODEL_NAME_AUTO','21226560HLwuKS','getDefault','getAll','map','auto','getAvailableModels','_modelList','1527194fWTZvv','212450KWWVTU','toLocaleLowerCase','_filterModels','_getModelById','getModel','8871079HzUQKp','ai-chat-default-model-id-unrecognized','length','166650TxKFNt','isAvailable','113814xtLEKY','string','some','push','3myhgQN','AI_MODEL_DESCRIPTION_AUTO','getModels','items','provider','464wBnRqe','getLocalized','startsWith','970680norIDl','11VDVYTM','description','ai-chat-model-id-unrecognized','toUpperCase','_availableModels','6bMHIrx','_defaultModelId','AI_MODEL_DESCRIPTION_','name','list'];_0x2580=function(){return _0x2d2cf8;};return _0x2580();}const _0xc22ea4=_0xe9a9;(function(_0x2c9132,_0x1a84dd){const _0x4bba90=_0xe9a9,_0x4def4f=_0x2c9132();while(!![]){try{const _0xf4720c=-parseInt(_0x4bba90(0xba))/0x1+-parseInt(_0x4bba90(0xb9))/0x2*(-parseInt(_0x4bba90(0x9a))/0x3)+parseInt(_0x4bba90(0xa2))/0x4+parseInt(_0x4bba90(0x94))/0x5+parseInt(_0x4bba90(0xa8))/0x6*(-parseInt(_0x4bba90(0xbf))/0x7)+-parseInt(_0x4bba90(0x9f))/0x8*(parseInt(_0x4bba90(0x96))/0x9)+-parseInt(_0x4bba90(0xb2))/0xa*(-parseInt(_0x4bba90(0xa3))/0xb);if(_0xf4720c===_0x1a84dd)break;else _0x4def4f['push'](_0x4def4f['shift']());}catch(_0x4c49bd){_0x4def4f['push'](_0x4def4f['shift']());}}}(_0x2580,0xe7b2e));import{CKEditorError as _0x3d81b0,EmitterMixin as _0x5cf326,logWarning as _0x1104a1}from'ckeditor5/src/utils.js';function _0xe9a9(_0x5968de,_0x2c4c56){const _0x258006=_0x2580();return _0xe9a9=function(_0xe9a931,_0x5f277b){_0xe9a931=_0xe9a931-0x94;let _0x58c286=_0x258006[_0xe9a931];return _0x58c286;},_0xe9a9(_0x5968de,_0x2c4c56);}import{getTranslation as _0x17a813}from'../utils/common-translations.js';export class AIModels extends _0x5cf326(){[_0xc22ea4(0xad)];[_0xc22ea4(0xa7)];[_0xc22ea4(0xa9)];[_0xc22ea4(0xb8)]=[];constructor({connector:_0x49937b,availableModels:_0x3bf030,defaultModelId:_0x3c731c}){const _0x122d8b=_0xc22ea4;super(),this[_0x122d8b(0xad)]=_0x49937b,this[_0x122d8b(0xa7)]=_0x3bf030,this[_0x122d8b(0xa9)]=_0x3c731c;}async[_0xc22ea4(0xb4)](){const _0x7f99e5=_0xc22ea4;if(!this[_0x7f99e5(0xb8)][_0x7f99e5(0xc1)])try{const _0x5e8a9b=this[_0x7f99e5(0xad)][_0x7f99e5(0x9c)](),_0x5c4fe5=await _0x5e8a9b[_0x7f99e5(0xac)]();this[_0x7f99e5(0xb8)]=_0x5c4fe5[_0x7f99e5(0x9d)];}catch(_0x1105e4){throw new _0x3d81b0(_0x7f99e5(0xae),null,{'error':_0x1105e4});}return[...this[_0x7f99e5(0xb8)]];}async[_0xc22ea4(0xb7)](){const _0x55a207=_0xc22ea4,_0x1b11e8=await this[_0x55a207(0xb4)]();return this[_0x55a207(0xbc)](_0x1b11e8,this[_0x55a207(0xa7)]);}async[_0xc22ea4(0xbe)](_0x241db0){const _0x5053f1=_0xc22ea4,_0x5d0a85=await this[_0x5053f1(0xb4)]();if(!_0x5d0a85[_0x5053f1(0xc1)])return null;if(_0x241db0){const _0x364744=this[_0x5053f1(0xbd)](_0x5d0a85,_0x241db0);if(_0x364744)return _0x364744;_0x1104a1(_0x5053f1(0xa5),{'modelId':_0x241db0,'fallBackModelId':this[_0x5053f1(0xa9)]});}return this[_0x5053f1(0xb3)]();}async[_0xc22ea4(0xb3)](){const _0x44443d=_0xc22ea4,_0x2f602f=await this[_0x44443d(0xb7)]();if(!_0x2f602f[_0x44443d(0xc1)])return null;if(this[_0x44443d(0xa9)]){const _0x3b69d6=this[_0x44443d(0xbd)](_0x2f602f,this[_0x44443d(0xa9)]);if(_0x3b69d6)return _0x3b69d6;_0x1104a1(_0x44443d(0xc0),{'defaultModelId':this[_0x44443d(0xa9)],'fallBackModelId':_0x2f602f[0x0]['id']});}return _0x2f602f[0x0];}async[_0xc22ea4(0x95)](_0x15f513){const _0x4068c9=_0xc22ea4;return(await this[_0x4068c9(0xb7)]())[_0x4068c9(0x98)](_0x10f9bb=>_0x10f9bb[_0x4068c9(0xab)]===_0x15f513[_0x4068c9(0xab)]&&_0x10f9bb[_0x4068c9(0x9e)]===_0x15f513[_0x4068c9(0x9e)]);}[_0xc22ea4(0xbc)](_0x42a9ad,_0x14e4ba){const _0x51f12f=_0xc22ea4;let _0x165bb6;if(_0x14e4ba){_0x165bb6=[];const _0x2cca35=_0x51f12f(0x97)==typeof _0x14e4ba?[_0x14e4ba[_0x51f12f(0xbb)]()]:_0x14e4ba[_0x51f12f(0xb5)](_0x21519c=>_0x21519c[_0x51f12f(0xbb)]());for(const _0x2f93c4 of _0x2cca35)for(const _0x453557 of _0x42a9ad)(_0x453557['id'][_0x51f12f(0xbb)]()===_0x2f93c4||_0x453557[_0x51f12f(0xab)][_0x51f12f(0xbb)]()===_0x2f93c4||Me(_0x453557)&&_0x51f12f(0xb6)===_0x2f93c4||_0x453557[_0x51f12f(0x9e)][_0x51f12f(0xbb)]()===_0x2f93c4||_0x453557['id'][_0x51f12f(0xbb)]()[_0x51f12f(0xa1)](_0x2f93c4))&&_0x165bb6[_0x51f12f(0x99)](_0x453557);}else _0x165bb6=_0x42a9ad;return _0x165bb6;}[_0xc22ea4(0xbd)](_0x283560,_0x20d611){const _0x315db8=_0xc22ea4;return _0x283560[_0x315db8(0xaf)](_0x42bfed=>Me(_0x42bfed)&&_0x315db8(0xb6)===_0x20d611?_0x42bfed:_0x42bfed['id']===_0x20d611)||null;}static[_0xc22ea4(0xa0)](_0xfc92c1,_0x364cf8){const _0x48ba1c=_0xc22ea4;return _0x364cf8[_0x48ba1c(0xb5)](_0x260a58=>{const _0x1b3121=_0x48ba1c;if(Me(_0x260a58))_0x260a58[_0x1b3121(0xab)]=_0x17a813(_0xfc92c1,_0x1b3121(0xb1)),_0x260a58[_0x1b3121(0xa4)]=_0x17a813(_0xfc92c1,_0x1b3121(0x9b));else _0x17a813(_0xfc92c1,_0x1b3121(0xaa)+_0x260a58['id'][_0x1b3121(0xa6)]())[_0x1b3121(0xa1)](_0x1b3121(0xaa))||(_0x260a58[_0x1b3121(0xa4)]=_0x17a813(_0xfc92c1,_0x1b3121(0xaa)+_0x260a58['id'][_0x1b3121(0xa6)]()));return _0x260a58;});}}function Me(_0x18cdd1){const _0xb52658=_0xc22ea4;return _0x18cdd1['id'][_0xb52658(0xa1)](_0xb52658(0xb0));}
23
+ function _0x26bf(_0x205cbe,_0xfa55d5){const _0x52e3be=_0x52e3();return _0x26bf=function(_0x26bfed,_0x345532){_0x26bfed=_0x26bfed-0x1a1;let _0x4ce449=_0x52e3be[_0x26bfed];return _0x4ce449;},_0x26bf(_0x205cbe,_0xfa55d5);}const _0x51e214=_0x26bf;(function(_0x464adc,_0x172d60){const _0x4b4c0f=_0x26bf,_0x84018f=_0x464adc();while(!![]){try{const _0x40d906=-parseInt(_0x4b4c0f(0x1c3))/0x1+parseInt(_0x4b4c0f(0x1c7))/0x2*(-parseInt(_0x4b4c0f(0x1b5))/0x3)+parseInt(_0x4b4c0f(0x1a2))/0x4*(parseInt(_0x4b4c0f(0x1ce))/0x5)+-parseInt(_0x4b4c0f(0x1a4))/0x6*(parseInt(_0x4b4c0f(0x1c9))/0x7)+parseInt(_0x4b4c0f(0x1aa))/0x8+parseInt(_0x4b4c0f(0x1b8))/0x9+parseInt(_0x4b4c0f(0x1b9))/0xa*(-parseInt(_0x4b4c0f(0x1c8))/0xb);if(_0x40d906===_0x172d60)break;else _0x84018f['push'](_0x84018f['shift']());}catch(_0x185398){_0x84018f['push'](_0x84018f['shift']());}}}(_0x52e3,0x6beb0));import{CKEditorError as _0x5d22e0,EmitterMixin as _0x14c13b,logWarning as _0x47dae3}from'ckeditor5/src/utils.js';import{getTranslation as _0x3f7244}from'../utils/common-translations.js';export class AIModels extends _0x14c13b(){[_0x51e214(0x1a3)];[_0x51e214(0x1a1)];[_0x51e214(0x1af)];[_0x51e214(0x1a7)]=[];constructor({connector:_0x3982cf,availableModels:_0x33d21b,defaultModelId:_0x3de551}){const _0x19961f=_0x51e214;super(),this[_0x19961f(0x1a3)]=_0x3982cf,this[_0x19961f(0x1a1)]=_0x33d21b,this[_0x19961f(0x1af)]=_0x3de551;}async[_0x51e214(0x1b7)](){const _0x4ec3f7=_0x51e214;if(!this[_0x4ec3f7(0x1a7)][_0x4ec3f7(0x1c0)])try{const _0x5461b9=this[_0x4ec3f7(0x1a3)][_0x4ec3f7(0x1ad)](),_0x504a5a=await _0x5461b9[_0x4ec3f7(0x1a5)]();this[_0x4ec3f7(0x1a7)]=_0x504a5a[_0x4ec3f7(0x1ca)];}catch(_0x14fb6e){throw new _0x5d22e0(_0x4ec3f7(0x1b2),null,{'error':_0x14fb6e});}return[...this[_0x4ec3f7(0x1a7)]];}async[_0x51e214(0x1bf)](){const _0x12da4a=_0x51e214,_0x126c25=await this[_0x12da4a(0x1b7)]();return this[_0x12da4a(0x1cc)](_0x126c25,this[_0x12da4a(0x1a1)]);}async[_0x51e214(0x1cd)](_0x8007f2){const _0x58ede4=_0x51e214,_0x45fa2d=await this[_0x58ede4(0x1b7)]();if(!_0x45fa2d[_0x58ede4(0x1c0)])return null;if(_0x8007f2){const _0x44a07d=this[_0x58ede4(0x1b0)](_0x45fa2d,_0x8007f2);if(_0x44a07d)return _0x44a07d;_0x47dae3(_0x58ede4(0x1ab),{'modelId':_0x8007f2,'fallBackModelId':this[_0x58ede4(0x1af)]});}return this[_0x58ede4(0x1b6)]();}async[_0x51e214(0x1b6)](){const _0x861d5b=_0x51e214,_0x4f3bc1=await this[_0x861d5b(0x1bf)]();if(!_0x4f3bc1[_0x861d5b(0x1c0)])return null;if(this[_0x861d5b(0x1af)]){const _0x3c36bb=this[_0x861d5b(0x1b0)](_0x4f3bc1,this[_0x861d5b(0x1af)]);if(_0x3c36bb)return _0x3c36bb;_0x47dae3(_0x861d5b(0x1c4),{'defaultModelId':this[_0x861d5b(0x1af)],'fallBackModelId':_0x4f3bc1[0x0]['id']});}return _0x4f3bc1[0x0];}async[_0x51e214(0x1cb)](_0x3f2b2d){const _0x3a2ebe=_0x51e214;return(await this[_0x3a2ebe(0x1bf)]())[_0x3a2ebe(0x1b4)](_0x14a829=>_0x14a829[_0x3a2ebe(0x1bd)]===_0x3f2b2d[_0x3a2ebe(0x1bd)]&&_0x14a829[_0x3a2ebe(0x1a6)]===_0x3f2b2d[_0x3a2ebe(0x1a6)]);}[_0x51e214(0x1cc)](_0x33b6a0,_0x455405){const _0x361431=_0x51e214;let _0x5cee28;if(_0x455405){_0x5cee28=[];const _0x6d5ca0=_0x361431(0x1b1)==typeof _0x455405?[_0x455405[_0x361431(0x1be)]()]:_0x455405[_0x361431(0x1ba)](_0x4a66d2=>_0x4a66d2[_0x361431(0x1be)]());for(const _0x1ff332 of _0x6d5ca0)for(const _0x56a652 of _0x33b6a0)(_0x56a652['id'][_0x361431(0x1be)]()===_0x1ff332||_0x56a652[_0x361431(0x1bd)][_0x361431(0x1be)]()===_0x1ff332||Me(_0x56a652)&&_0x361431(0x1bc)===_0x1ff332||_0x56a652[_0x361431(0x1a6)][_0x361431(0x1be)]()===_0x1ff332||_0x56a652['id'][_0x361431(0x1be)]()[_0x361431(0x1c6)](_0x1ff332))&&_0x5cee28[_0x361431(0x1ae)](_0x56a652);}else _0x5cee28=_0x33b6a0;return _0x5cee28;}[_0x51e214(0x1b0)](_0x12b46b,_0x561ffd){const _0x3b81aa=_0x51e214;return _0x12b46b[_0x3b81aa(0x1ac)](_0x522e78=>Me(_0x522e78)&&_0x3b81aa(0x1bc)===_0x561ffd?_0x522e78:_0x522e78['id']===_0x561ffd)||null;}static[_0x51e214(0x1c5)](_0x488077,_0x5f3531){const _0x1b6e22=_0x51e214;return _0x5f3531[_0x1b6e22(0x1ba)](_0x26f37a=>{const _0x482273=_0x1b6e22;if(Me(_0x26f37a))_0x26f37a[_0x482273(0x1bd)]=_0x3f7244(_0x488077,_0x482273(0x1c2)),_0x26f37a[_0x482273(0x1a8)]=_0x3f7244(_0x488077,_0x482273(0x1bb));else _0x3f7244(_0x488077,_0x482273(0x1b3)+_0x26f37a['id'][_0x482273(0x1a9)]())[_0x482273(0x1c6)](_0x482273(0x1b3))||(_0x26f37a[_0x482273(0x1a8)]=_0x3f7244(_0x488077,_0x482273(0x1b3)+_0x26f37a['id'][_0x482273(0x1a9)]()));return _0x26f37a;});}}function Me(_0x20747d){const _0x4ded47=_0x51e214;return _0x20747d['id'][_0x4ded47(0x1c6)](_0x4ded47(0x1c1));}function _0x52e3(){const _0x221329=['auto','name','toLocaleLowerCase','getAvailableModels','length','agent','AI_MODEL_NAME_AUTO','258699ZCzZNV','ai-chat-default-model-id-unrecognized','getLocalized','startsWith','28068OitzDT','5764iAzdbr','6139srSnmS','items','isAvailable','_filterModels','getModel','605XERhXP','_availableModels','14040LcwooA','_connector','4974VaPklL','list','provider','_modelList','description','toUpperCase','2964160MLHDYz','ai-chat-model-id-unrecognized','find','getModels','push','_defaultModelId','_getModelById','string','ai-models-unable-to-retrieve','AI_MODEL_DESCRIPTION_','some','9aflvVT','getDefault','getAll','6217920TmNryX','310ejHvfk','map','AI_MODEL_DESCRIPTION_AUTO'];_0x52e3=function(){return _0x221329;};return _0x52e3();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x526870=_0x14e2;(function(_0x43c11f,_0x40b431){const _0xff0fd1=_0x14e2,_0x4740c6=_0x43c11f();while(!![]){try{const _0x1e94a9=parseInt(_0xff0fd1(0x100))/0x1*(-parseInt(_0xff0fd1(0xd5))/0x2)+-parseInt(_0xff0fd1(0xc1))/0x3+parseInt(_0xff0fd1(0xdc))/0x4*(parseInt(_0xff0fd1(0xe2))/0x5)+parseInt(_0xff0fd1(0xf7))/0x6*(-parseInt(_0xff0fd1(0xb4))/0x7)+-parseInt(_0xff0fd1(0x102))/0x8*(parseInt(_0xff0fd1(0xd3))/0x9)+-parseInt(_0xff0fd1(0xf8))/0xa*(-parseInt(_0xff0fd1(0xaf))/0xb)+parseInt(_0xff0fd1(0xc4))/0xc;if(_0x1e94a9===_0x40b431)break;else _0x4740c6['push'](_0x4740c6['shift']());}catch(_0x21f714){_0x4740c6['push'](_0x4740c6['shift']());}}}(_0x13bb,0xd9d18));import{CKEditorError as _0x4700f7,ObservableMixin as _0x40732b,uid as _0x4354d2}from'ckeditor5/src/utils.js';import{Element as _0x233040,findAll as _0x2bfd78,getAttribute as _0x16491e,getParents as _0x191d4b,Document as _0x53ffc7,parse as _0x434920,Text as _0x39c950}from'../utils/htmlparser.js';import{AIResponseParser as _0x552f8b}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2a0dd3}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x35dde6}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4c0704}from'../utils/common-translations.js';function _0x14e2(_0x55dddf,_0x2086e7){const _0x13bbf5=_0x13bb();return _0x14e2=function(_0x14e23c,_0xe1c7aa){_0x14e23c=_0x14e23c-0xad;let _0x18345c=_0x13bbf5[_0x14e23c];return _0x18345c;},_0x14e2(_0x55dddf,_0x2086e7);}import{cloneDeep as _0x1ca221}from'es-toolkit';function _0x13bb(){const _0x1126aa=['indexOf','modification-delta','forEach','2647083iEJoyJ','values','parsedContent','35348916qNqtBU','source','parseAndNormalizeHTML','previousSibling','done','destroy','_getDifferentChangeGroups','nextSibling','_getCachedContentParts','appendContent','cloneNode','data-id','pending','ai-get-editor-from-context-no-editor','convertMarkdownToHTML','27IPuugo','web-search','8986MGVLaz','updateChangeGroups','modifiedNodeIds','aiResponseParser','_setCachedContentParts','onContentChange','changes','3223084KYXeHU','length','areActionsDisabled','replyContentUpdated','withDiff','unshift','5MSCXkh','documentContextContent','find','newNodeIds','interactionId','merge','includes','conversation-title','data-unstable','map','cachedSuggestionContentParts','push','replyChangeGroupStateUpdated','removedNodeIds','node','fire','aiResponseApplier','every','parsedMergedContent','index','change:content','162ySVjLU','430ZxPwSa','isDone','context','setChangeGroupState','sources','filter','withoutDiff','set','167zezUEz','state','574488vJNIaE','type','text-delta','locale','splice','86482pCEdZR','span','new','stopListening','changeGroups','349811cpIIVx','reasoning','modified','content','removed','ai-reply-get-content-parts-group-not-found','AI_SUGGESTION_CONTENT_PART_REMOVED','getContentParts','editor','color:\x20#808080;\x20font-style:\x20italic'];_0x13bb=function(){return _0x1126aa;};return _0x13bb();}export const AI_REPLY_TYPES=[_0x526870(0xbf),_0x526870(0x104),_0x526870(0xd4),_0x526870(0xb5)];export const AI_REPLY_TYPES_IGNORED=[_0x526870(0xe9)];export const AI_REPLY_TITLE_TYPE=_0x526870(0xe9);export class AIReply extends _0x40732b(){['id'];[_0x526870(0xe6)];[_0x526870(0x103)];[_0x526870(0xfc)]=[];[_0x526870(0xc3)]=new _0x53ffc7([]);[_0x526870(0xf4)]=new _0x53ffc7([]);[_0x526870(0xb3)]=[];[_0x526870(0xde)]=!0x1;[_0x526870(0xe3)];[_0x526870(0xd8)];[_0x526870(0xf2)];[_0x526870(0xbc)];[_0x526870(0xec)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x93440e,content:_0x816a14='',isDone:_0x38d721=!0x1,interactionId:_0x18d630,areActionsDisabled:_0x1047db,documentContextContent:_0x3f4d37,editor:_0x4cafb3,id:_0x5d696b}){const _0x3d6ec4=_0x526870;super(),this['id']=_0x5d696b||_0x4354d2(),this[_0x3d6ec4(0xe6)]=_0x18d630,this[_0x3d6ec4(0x103)]=_0x93440e,this[_0x3d6ec4(0xde)]=!!_0x1047db,this[_0x3d6ec4(0xbc)]=_0x4cafb3,this[_0x3d6ec4(0xd8)]=new _0x552f8b(),this[_0x3d6ec4(0xf2)]=new _0x2a0dd3(),this[_0x3d6ec4(0xe3)]=_0x434920(_0x3f4d37||''),this[_0x3d6ec4(0xff)](_0x3d6ec4(0xf9),_0x38d721),this['on'](_0x3d6ec4(0xf6),()=>{const _0x4165a9=_0x3d6ec4;this[_0x4165a9(0xda)]();}),this[_0x3d6ec4(0xff)](_0x3d6ec4(0xb7),_0x816a14);}[_0x526870(0xcd)](_0x19c224){const _0x50d921=_0x526870;this[_0x50d921(0xff)](_0x50d921(0xb7),this[_0x50d921(0xb7)]+_0x19c224);}[_0x526870(0xc8)](){const _0x57afc1=_0x526870;this[_0x57afc1(0xf9)]||(this[_0x57afc1(0xff)](_0x57afc1(0xf9),!0x0),this[_0x57afc1(0xda)]());}[_0x526870(0xc9)](){const _0x5f458b=_0x526870;this[_0x5f458b(0xb2)]();}[_0x526870(0xfb)](_0x59748c,_0xd75535){const _0x3c363e=_0x526870;this[_0x3c363e(0xb3)][_0x59748c][_0x3c363e(0x101)]=_0xd75535,this[_0x3c363e(0xf1)](_0x3c363e(0xee),{'reply':this,'index':_0x59748c,'state':_0xd75535});}[_0x526870(0xbb)]({showDiff:_0x17bc83,groupIndex:_0x361cd1}){const _0x4e84d4=_0x526870;if(!this[_0x4e84d4(0xbc)])throw new _0x4700f7(_0x4e84d4(0xd1),null,{'aiReply':this});const _0x344166=this[_0x4e84d4(0xcc)](_0x17bc83,_0x361cd1);if(_0x344166)return _0x344166;let _0x317e72=[];if(void 0x0===_0x361cd1)_0x317e72=this[_0x4e84d4(0xb3)];else{const _0x297dd1=this[_0x4e84d4(0xb3)][_0x4e84d4(0xe4)](({index:_0x12cb02})=>_0x12cb02===_0x361cd1);if(!_0x297dd1)throw new _0x4700f7(_0x4e84d4(0xb9),null,{'aiReply':this,'groupIndex':_0x361cd1});_0x317e72=[_0x297dd1];}const _0x9c28a8=_0x35dde6({'editor':this[_0x4e84d4(0xbc)],'showDiff':_0x17bc83,'changeGroups':_0x317e72,'documentContextContent':this[_0x4e84d4(0xe3)]});return this[_0x4e84d4(0xd9)](_0x17bc83,_0x9c28a8),_0x9c28a8;}[_0x526870(0xcc)](_0x15df68,_0x901fdb){const _0x760cc8=_0x526870,_0x5a0261=_0x15df68?_0x760cc8(0xe0):_0x760cc8(0xfe);if(!this[_0x760cc8(0xec)][_0x5a0261][_0x760cc8(0xdd)])return null;const _0x1d8a4e=this[_0x760cc8(0xec)][_0x5a0261];if(void 0x0===_0x901fdb)return _0x1ca221(_0x1d8a4e);{const _0x85b8e7=_0x1d8a4e[_0x760cc8(0xe4)](({index:_0x47150e})=>_0x47150e===_0x901fdb);if(_0x85b8e7)return[_0x1ca221(_0x85b8e7)];}return null;}[_0x526870(0xd9)](_0x454cb7,_0xff7b7c){const _0x1eb145=_0x526870,_0x3f520e=_0x454cb7?_0x1eb145(0xe0):_0x1eb145(0xfe);_0xff7b7c[_0x1eb145(0xc0)](_0x59d4d0=>{const _0x171be1=_0x1eb145,_0xd4d731=this[_0x171be1(0xec)][_0x3f520e],_0x5e8d72=_0xd4d731[_0x171be1(0xe4)](({index:_0x2e7214})=>_0x2e7214===_0x59d4d0[_0x171be1(0xf5)]);if(_0x5e8d72){const _0x194ad6=_0xd4d731[_0x171be1(0xbe)](_0x5e8d72);_0xd4d731[_0x171be1(0xae)](_0x194ad6,0x1,_0x59d4d0);}else _0xd4d731[_0x171be1(0xed)](_0x59d4d0);});}[_0x526870(0xda)](){const _0x4ad6ce=_0x526870;if(_0x4ad6ce(0xbf)===this[_0x4ad6ce(0x103)]){this[_0x4ad6ce(0xc3)]=this[_0x4ad6ce(0xd8)][_0x4ad6ce(0xc6)](this[_0x4ad6ce(0xb7)]);const _0x482ba=this[_0x4ad6ce(0xb3)];this[_0x4ad6ce(0xd6)]();const _0x195af2=this[_0x4ad6ce(0xca)](_0x482ba,this[_0x4ad6ce(0xb3)]);(_0x195af2[_0x4ad6ce(0xdd)]||this[_0x4ad6ce(0xf9)])&&(this[_0x4ad6ce(0xf1)](_0x4ad6ce(0xdf),this,_0x195af2),this[_0x4ad6ce(0xec)][_0x4ad6ce(0xe0)][_0x4ad6ce(0xdd)]=this[_0x4ad6ce(0xec)][_0x4ad6ce(0xfe)][_0x4ad6ce(0xdd)]=0x0);}else this[_0x4ad6ce(0xc3)]=this[_0x4ad6ce(0xd8)][_0x4ad6ce(0xd2)](this[_0x4ad6ce(0xb7)]),this[_0x4ad6ce(0xf1)](_0x4ad6ce(0xdf),this);}[_0x526870(0xca)](_0x3e5b78,_0x43cd25){const _0x59919c=_0x526870,_0x47656f=[];for(const _0x1b0037 of _0x43cd25){const _0x474681=_0x3e5b78[_0x1b0037[_0x59919c(0xf5)]];_0x474681?_0x474681[_0x59919c(0xdb)][_0x59919c(0xdd)]!==_0x1b0037[_0x59919c(0xdb)][_0x59919c(0xdd)]?_0x47656f[_0x59919c(0xed)](_0x1b0037):_0x474681[_0x59919c(0xdb)][_0x59919c(0xc0)]((_0x442152,_0x270bd3)=>{const _0x4cc35a=_0x59919c,_0x1540c2=_0x1b0037[_0x4cc35a(0xdb)][_0x270bd3];_0x442152['id']!==_0x1540c2['id']&&_0x47656f[_0x4cc35a(0xed)](_0x1b0037);}):_0x47656f[_0x59919c(0xed)](_0x1b0037);}return _0x47656f;}[_0x526870(0xd6)](){const _0xfbb1fc=_0x526870,_0x38908e=new _0x233040('p',{},[new _0x233040(_0xfbb1fc(0xb0),{'style':_0xfbb1fc(0xbd)},[new _0x39c950(_0x4c0704(this[_0xfbb1fc(0xbc)][_0xfbb1fc(0xad)],_0xfbb1fc(0xba)))])]),_0x3b425b=this[_0xfbb1fc(0xf2)][_0xfbb1fc(0xe7)](this[_0xfbb1fc(0xc3)],this[_0xfbb1fc(0xe3)][_0xfbb1fc(0xce)](!0x0),{'markUnstableElements':!this[_0xfbb1fc(0xf9)],'replaceRemovedWith':_0x38908e,'cutAfterLastChange':!this[_0xfbb1fc(0xf9)]});if(!_0x3b425b[_0xfbb1fc(0xd7)][_0xfbb1fc(0xdd)]&&!this[_0xfbb1fc(0xf9)])return;this[_0xfbb1fc(0xf4)]=_0x3b425b[_0xfbb1fc(0xc3)];let _0x44e865=[];if(_0x2bfd78(_0x580533=>{const _0x30789e=_0xfbb1fc,_0x1de470=_0x16491e(_0x580533,_0x30789e(0xcf));if(!_0x1de470||!_0x23b671(_0x1de470))return!0x1;const _0x1b7ac8=[_0x580533,..._0x191d4b(_0x580533)]['at'](-0x2);if(_0x580533!=_0x1b7ac8){const _0x411a44=_0x16491e(_0x1b7ac8,_0x30789e(0xcf));_0x23b671(_0x411a44)||(_0x44e865[_0x30789e(0xed)]({'node':_0x1b7ac8,'id':_0x411a44,'type':_0x30789e(0xb6)}),_0x3b425b[_0x30789e(0xd7)][_0x30789e(0xed)](_0x411a44));}else _0x3b425b[_0x30789e(0xd7)][_0x30789e(0xe8)](_0x1de470)?_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb6),'id':_0x1de470}):_0x3b425b[_0x30789e(0xe5)][_0x30789e(0xe8)](_0x1de470)?_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb1),'id':_0x1de470,'anchorId':_0x16491e(_0x580533[_0x30789e(0xc7)],_0x30789e(0xcf))}):_0x44e865[_0x30789e(0xed)]({'node':_0x580533,'type':_0x30789e(0xb8),'id':_0x1de470});return!0x0;},this[_0xfbb1fc(0xf4)]),_0x44e865=_0x44e865[_0xfbb1fc(0xfd)](({node:_0x15dd00})=>[..._0x191d4b(_0x15dd00),_0x15dd00][_0xfbb1fc(0xf3)](_0x1842d2=>!_0x16491e(_0x1842d2,_0xfbb1fc(0xea)))),0x0==_0x44e865[_0xfbb1fc(0xdd)])return;const _0x241a6b=[[_0x44e865[0x0]]];for(let _0x5ce3f3=0x1;_0x5ce3f3<_0x44e865[_0xfbb1fc(0xdd)];_0x5ce3f3++){const _0x3535f6=_0x241a6b[_0x241a6b[_0xfbb1fc(0xdd)]-0x1],_0x1b263e=_0x3535f6[_0x3535f6[_0xfbb1fc(0xdd)]-0x1];_0x44e865[_0x5ce3f3][_0xfbb1fc(0xf0)][_0xfbb1fc(0xc7)]==_0x1b263e[_0xfbb1fc(0xf0)]&&_0xfbb1fc(0xb6)!=_0x44e865[_0x5ce3f3][_0xfbb1fc(0x103)]&&_0xfbb1fc(0xb6)!=_0x1b263e[_0xfbb1fc(0x103)]?_0x3535f6[_0xfbb1fc(0xed)](_0x44e865[_0x5ce3f3]):_0x241a6b[_0xfbb1fc(0xed)]([_0x44e865[_0x5ce3f3]]);}for(const _0x6e17b6 of _0x241a6b){const _0x1cb0ad=_0x6e17b6[0x0],_0x4268f4=_0x6e17b6[_0x6e17b6[_0xfbb1fc(0xdd)]-0x1],_0x194cd1=_0x32ef12(_0x1cb0ad[_0xfbb1fc(0xf0)][_0xfbb1fc(0xc7)]);_0x194cd1&&_0x6e17b6[_0xfbb1fc(0xe1)](_0x194cd1);const _0x19933b=_0x32ef12(_0x4268f4[_0xfbb1fc(0xf0)][_0xfbb1fc(0xcb)]);_0x19933b&&_0x6e17b6[_0xfbb1fc(0xed)](_0x19933b);}function _0x23b671(_0x5b8f60){const _0x40ecac=_0xfbb1fc;return _0x3b425b[_0x40ecac(0xd7)][_0x40ecac(0xe8)](_0x5b8f60)||_0x3b425b[_0x40ecac(0xe5)][_0x40ecac(0xe8)](_0x5b8f60)||_0x3b425b[_0x40ecac(0xef)][_0x40ecac(0xe8)](_0x5b8f60);}function _0x32ef12(_0x25205a){const _0x2fa8e4=_0xfbb1fc;if(_0x25205a&&_0x16491e(_0x25205a,_0x2fa8e4(0xcf))&&!_0x16491e(_0x25205a,_0x2fa8e4(0xea))){const _0x39b742=_0x16491e(_0x25205a,_0x2fa8e4(0xcf));if(!_0x23b671(_0x39b742))return{'node':_0x25205a,'type':_0x2fa8e4(0xfa),'id':_0x39b742};}return null;}this[_0xfbb1fc(0xb3)]=_0x241a6b[_0xfbb1fc(0xeb)]((_0x5a663f,_0x2a5b97)=>({'changes':_0x5a663f,'state':_0xfbb1fc(0xd0),'index':_0x2a5b97}));}}export function isValidReplyType(_0x364ca8){const _0x11d14d=_0x526870;return Object[_0x11d14d(0xc2)](AI_REPLY_TYPES)[_0x11d14d(0xe8)](_0x364ca8);}export function isIgnoredReplyType(_0xc320e4){const _0x5580b1=_0x526870;return AI_REPLY_TYPES_IGNORED[_0x5580b1(0xe8)](_0xc320e4);}export function isReplyTitleType(_0x3c753c){return _0x3c753c===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2e3433){const _0x141fa2=_0x526870;return _0x141fa2(0xc5)===_0x2e3433;}
23
+ const _0x39cafa=_0x5afe;(function(_0x413847,_0x1bf6d2){const _0x251b6e=_0x5afe,_0x33f8e9=_0x413847();while(!![]){try{const _0x36f614=-parseInt(_0x251b6e(0x14b))/0x1*(parseInt(_0x251b6e(0x129))/0x2)+parseInt(_0x251b6e(0x144))/0x3*(parseInt(_0x251b6e(0x147))/0x4)+-parseInt(_0x251b6e(0x155))/0x5*(-parseInt(_0x251b6e(0x14f))/0x6)+-parseInt(_0x251b6e(0x14d))/0x7+-parseInt(_0x251b6e(0x120))/0x8+-parseInt(_0x251b6e(0x159))/0x9+-parseInt(_0x251b6e(0x13a))/0xa*(-parseInt(_0x251b6e(0x112))/0xb);if(_0x36f614===_0x1bf6d2)break;else _0x33f8e9['push'](_0x33f8e9['shift']());}catch(_0x36d995){_0x33f8e9['push'](_0x33f8e9['shift']());}}}(_0x2dde,0x8f50c));import{CKEditorError as _0xd00e30,ObservableMixin as _0x4b4ade,uid as _0x5b4e7e}from'ckeditor5/src/utils.js';function _0x5afe(_0x57bc23,_0x59db49){const _0x2ddef2=_0x2dde();return _0x5afe=function(_0x5afe05,_0x41c679){_0x5afe05=_0x5afe05-0x10a;let _0x5e5d47=_0x2ddef2[_0x5afe05];return _0x5e5d47;},_0x5afe(_0x57bc23,_0x59db49);}import{Element as _0x1afbf7,findAll as _0x33986f,getAttribute as _0x2d8dae,getParents as _0x1545f1,Document as _0x3332dd,parse as _0x361701,Text as _0x379eee}from'../utils/htmlparser.js';import{AIResponseParser as _0x4b13ac}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3091be}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x52995c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x20330c}from'../utils/common-translations.js';function _0x2dde(){const _0x2afbff=['areActionsDisabled','web-search','withoutDiff','text-delta','push','setChangeGroupState','434193DfRoRd','includes','interactionId','28nVOgge','modification-delta','state','appendContent','316jJBThJ','ai-get-editor-from-context-no-editor','3267943XVBbKg','sources','14154CkKGMw','indexOf','_getDifferentChangeGroups','modified','convertMarkdownToHTML','change:content','1250eCeLrg','conversation-title','stopListening','ai-reply-get-content-parts-group-not-found','6311925ekWzTY','editor','modifiedNodeIds','getContentParts','_getCachedContentParts','removed','span','find','color:\x20#808080;\x20font-style:\x20italic','removedNodeIds','newNodeIds','parsedMergedContent','data-id','done','reasoning','replyChangeGroupStateUpdated','96547Xusxei','set','locale','every','source','changes','nextSibling','parseAndNormalizeHTML','withDiff','length','forEach','map','documentContextContent','_setCachedContentParts','1539184nbTpqX','cachedSuggestionContentParts','pending','splice','content','previousSibling','type','cloneNode','index','2540AQeRWV','merge','aiResponseApplier','replyContentUpdated','data-unstable','changeGroups','destroy','fire','parsedContent','node','new','unshift','context','updateChangeGroups','values','aiResponseParser','filter','850qjrGGu','onContentChange','isDone','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x2dde=function(){return _0x2afbff;};return _0x2dde();}import{cloneDeep as _0x4d0dfb}from'es-toolkit';export const AI_REPLY_TYPES=[_0x39cafa(0x148),_0x39cafa(0x141),_0x39cafa(0x13f),_0x39cafa(0x110)];export const AI_REPLY_TYPES_IGNORED=[_0x39cafa(0x156)];export const AI_REPLY_TITLE_TYPE=_0x39cafa(0x156);export class AIReply extends _0x4b4ade(){['id'];[_0x39cafa(0x146)];[_0x39cafa(0x126)];[_0x39cafa(0x14e)]=[];[_0x39cafa(0x131)]=new _0x3332dd([]);[_0x39cafa(0x10d)]=new _0x3332dd([]);[_0x39cafa(0x12e)]=[];[_0x39cafa(0x13e)]=!0x1;[_0x39cafa(0x11e)];[_0x39cafa(0x138)];[_0x39cafa(0x12b)];[_0x39cafa(0x15a)];[_0x39cafa(0x121)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0xcb1212,content:_0x334ad7='',isDone:_0x1cb1e0=!0x1,interactionId:_0x57d817,areActionsDisabled:_0x133d51,documentContextContent:_0x4f9676,editor:_0x429b6e,id:_0x239681}){const _0x49ba85=_0x39cafa;super(),this['id']=_0x239681||_0x5b4e7e(),this[_0x49ba85(0x146)]=_0x57d817,this[_0x49ba85(0x126)]=_0xcb1212,this[_0x49ba85(0x13e)]=!!_0x133d51,this[_0x49ba85(0x15a)]=_0x429b6e,this[_0x49ba85(0x138)]=new _0x4b13ac(),this[_0x49ba85(0x12b)]=new _0x3091be(),this[_0x49ba85(0x11e)]=_0x361701(_0x4f9676||''),this[_0x49ba85(0x113)](_0x49ba85(0x13c),_0x1cb1e0),this['on'](_0x49ba85(0x154),()=>{const _0x1af39d=_0x49ba85;this[_0x1af39d(0x13b)]();}),this[_0x49ba85(0x113)](_0x49ba85(0x124),_0x334ad7);}[_0x39cafa(0x14a)](_0x3b8d0b){const _0x53ddf6=_0x39cafa;this[_0x53ddf6(0x113)](_0x53ddf6(0x124),this[_0x53ddf6(0x124)]+_0x3b8d0b);}[_0x39cafa(0x10f)](){const _0x5733d2=_0x39cafa;this[_0x5733d2(0x13c)]||(this[_0x5733d2(0x113)](_0x5733d2(0x13c),!0x0),this[_0x5733d2(0x13b)]());}[_0x39cafa(0x12f)](){const _0x1ba02a=_0x39cafa;this[_0x1ba02a(0x157)]();}[_0x39cafa(0x143)](_0x553e86,_0x5a2eaa){const _0x315548=_0x39cafa;this[_0x315548(0x12e)][_0x553e86][_0x315548(0x149)]=_0x5a2eaa,this[_0x315548(0x130)](_0x315548(0x111),{'reply':this,'index':_0x553e86,'state':_0x5a2eaa});}[_0x39cafa(0x15c)]({showDiff:_0x171aa6,groupIndex:_0x327bda}){const _0x31b1fd=_0x39cafa;if(!this[_0x31b1fd(0x15a)])throw new _0xd00e30(_0x31b1fd(0x14c),null,{'aiReply':this});const _0xb1c9f1=this[_0x31b1fd(0x15d)](_0x171aa6,_0x327bda);if(_0xb1c9f1)return _0xb1c9f1;let _0x4020cc=[];if(void 0x0===_0x327bda)_0x4020cc=this[_0x31b1fd(0x12e)];else{const _0x1dc2d6=this[_0x31b1fd(0x12e)][_0x31b1fd(0x160)](({index:_0x1e6e87})=>_0x1e6e87===_0x327bda);if(!_0x1dc2d6)throw new _0xd00e30(_0x31b1fd(0x158),null,{'aiReply':this,'groupIndex':_0x327bda});_0x4020cc=[_0x1dc2d6];}const _0x3a9e7c=_0x52995c({'editor':this[_0x31b1fd(0x15a)],'showDiff':_0x171aa6,'changeGroups':_0x4020cc,'documentContextContent':this[_0x31b1fd(0x11e)]});return this[_0x31b1fd(0x11f)](_0x171aa6,_0x3a9e7c),_0x3a9e7c;}[_0x39cafa(0x15d)](_0x533a74,_0x3567df){const _0x192fa9=_0x39cafa,_0x4d6560=_0x533a74?_0x192fa9(0x11a):_0x192fa9(0x140);if(!this[_0x192fa9(0x121)][_0x4d6560][_0x192fa9(0x11b)])return null;const _0x345400=this[_0x192fa9(0x121)][_0x4d6560];if(void 0x0===_0x3567df)return _0x4d0dfb(_0x345400);{const _0x1062b3=_0x345400[_0x192fa9(0x160)](({index:_0x41e86d})=>_0x41e86d===_0x3567df);if(_0x1062b3)return[_0x4d0dfb(_0x1062b3)];}return null;}[_0x39cafa(0x11f)](_0x1a2ae2,_0xaf677d){const _0x354a84=_0x39cafa,_0x28e741=_0x1a2ae2?_0x354a84(0x11a):_0x354a84(0x140);_0xaf677d[_0x354a84(0x11c)](_0x14b664=>{const _0x3872a4=_0x354a84,_0x124426=this[_0x3872a4(0x121)][_0x28e741],_0x3e3919=_0x124426[_0x3872a4(0x160)](({index:_0x11b3af})=>_0x11b3af===_0x14b664[_0x3872a4(0x128)]);if(_0x3e3919){const _0x2b8c0b=_0x124426[_0x3872a4(0x150)](_0x3e3919);_0x124426[_0x3872a4(0x123)](_0x2b8c0b,0x1,_0x14b664);}else _0x124426[_0x3872a4(0x142)](_0x14b664);});}[_0x39cafa(0x13b)](){const _0x3d67dd=_0x39cafa;if(_0x3d67dd(0x148)===this[_0x3d67dd(0x126)]){this[_0x3d67dd(0x131)]=this[_0x3d67dd(0x138)][_0x3d67dd(0x119)](this[_0x3d67dd(0x124)]);const _0x413c93=this[_0x3d67dd(0x12e)];this[_0x3d67dd(0x136)]();const _0xfab43e=this[_0x3d67dd(0x151)](_0x413c93,this[_0x3d67dd(0x12e)]);(_0xfab43e[_0x3d67dd(0x11b)]||this[_0x3d67dd(0x13c)])&&(this[_0x3d67dd(0x130)](_0x3d67dd(0x12c),this,_0xfab43e),this[_0x3d67dd(0x121)][_0x3d67dd(0x11a)][_0x3d67dd(0x11b)]=this[_0x3d67dd(0x121)][_0x3d67dd(0x140)][_0x3d67dd(0x11b)]=0x0);}else this[_0x3d67dd(0x131)]=this[_0x3d67dd(0x138)][_0x3d67dd(0x153)](this[_0x3d67dd(0x124)]),this[_0x3d67dd(0x130)](_0x3d67dd(0x12c),this);}[_0x39cafa(0x151)](_0xfd9d2d,_0x11893d){const _0x1726cf=_0x39cafa,_0x5264f7=[];for(const _0x2235f2 of _0x11893d){const _0x315a1a=_0xfd9d2d[_0x2235f2[_0x1726cf(0x128)]];_0x315a1a?_0x315a1a[_0x1726cf(0x117)][_0x1726cf(0x11b)]!==_0x2235f2[_0x1726cf(0x117)][_0x1726cf(0x11b)]?_0x5264f7[_0x1726cf(0x142)](_0x2235f2):_0x315a1a[_0x1726cf(0x117)][_0x1726cf(0x11c)]((_0x5d9811,_0x3c81c0)=>{const _0x239ef6=_0x1726cf,_0x357a3f=_0x2235f2[_0x239ef6(0x117)][_0x3c81c0];_0x5d9811['id']!==_0x357a3f['id']&&_0x5264f7[_0x239ef6(0x142)](_0x2235f2);}):_0x5264f7[_0x1726cf(0x142)](_0x2235f2);}return _0x5264f7;}[_0x39cafa(0x136)](){const _0x1ad6c9=_0x39cafa,_0x783659=new _0x1afbf7('p',{},[new _0x1afbf7(_0x1ad6c9(0x15f),{'style':_0x1ad6c9(0x10a)},[new _0x379eee(_0x20330c(this[_0x1ad6c9(0x15a)][_0x1ad6c9(0x114)],_0x1ad6c9(0x13d)))])]),_0x67a838=this[_0x1ad6c9(0x12b)][_0x1ad6c9(0x12a)](this[_0x1ad6c9(0x131)],this[_0x1ad6c9(0x11e)][_0x1ad6c9(0x127)](!0x0),{'markUnstableElements':!this[_0x1ad6c9(0x13c)],'replaceRemovedWith':_0x783659,'cutAfterLastChange':!this[_0x1ad6c9(0x13c)]});if(!_0x67a838[_0x1ad6c9(0x15b)][_0x1ad6c9(0x11b)]&&!this[_0x1ad6c9(0x13c)])return;this[_0x1ad6c9(0x10d)]=_0x67a838[_0x1ad6c9(0x131)];let _0x6b2adf=[];if(_0x33986f(_0x11fc85=>{const _0x7676fb=_0x1ad6c9,_0x531e17=_0x2d8dae(_0x11fc85,_0x7676fb(0x10e));if(!_0x531e17||!_0x471613(_0x531e17))return!0x1;const _0xe884a3=[_0x11fc85,..._0x1545f1(_0x11fc85)]['at'](-0x2);if(_0x11fc85!=_0xe884a3){const _0x188c11=_0x2d8dae(_0xe884a3,_0x7676fb(0x10e));_0x471613(_0x188c11)||(_0x6b2adf[_0x7676fb(0x142)]({'node':_0xe884a3,'id':_0x188c11,'type':_0x7676fb(0x152)}),_0x67a838[_0x7676fb(0x15b)][_0x7676fb(0x142)](_0x188c11));}else _0x67a838[_0x7676fb(0x15b)][_0x7676fb(0x145)](_0x531e17)?_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x152),'id':_0x531e17}):_0x67a838[_0x7676fb(0x10c)][_0x7676fb(0x145)](_0x531e17)?_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x133),'id':_0x531e17,'anchorId':_0x2d8dae(_0x11fc85[_0x7676fb(0x125)],_0x7676fb(0x10e))}):_0x6b2adf[_0x7676fb(0x142)]({'node':_0x11fc85,'type':_0x7676fb(0x15e),'id':_0x531e17});return!0x0;},this[_0x1ad6c9(0x10d)]),_0x6b2adf=_0x6b2adf[_0x1ad6c9(0x139)](({node:_0x4e5238})=>[..._0x1545f1(_0x4e5238),_0x4e5238][_0x1ad6c9(0x115)](_0x154a0a=>!_0x2d8dae(_0x154a0a,_0x1ad6c9(0x12d)))),0x0==_0x6b2adf[_0x1ad6c9(0x11b)])return;const _0x502ebe=[[_0x6b2adf[0x0]]];for(let _0x196077=0x1;_0x196077<_0x6b2adf[_0x1ad6c9(0x11b)];_0x196077++){const _0x437e40=_0x502ebe[_0x502ebe[_0x1ad6c9(0x11b)]-0x1],_0x555154=_0x437e40[_0x437e40[_0x1ad6c9(0x11b)]-0x1];_0x6b2adf[_0x196077][_0x1ad6c9(0x132)][_0x1ad6c9(0x125)]==_0x555154[_0x1ad6c9(0x132)]&&_0x1ad6c9(0x152)!=_0x6b2adf[_0x196077][_0x1ad6c9(0x126)]&&_0x1ad6c9(0x152)!=_0x555154[_0x1ad6c9(0x126)]?_0x437e40[_0x1ad6c9(0x142)](_0x6b2adf[_0x196077]):_0x502ebe[_0x1ad6c9(0x142)]([_0x6b2adf[_0x196077]]);}for(const _0x483e8e of _0x502ebe){const _0x119b51=_0x483e8e[0x0],_0x568717=_0x483e8e[_0x483e8e[_0x1ad6c9(0x11b)]-0x1],_0x6dc09b=_0x2bf7e6(_0x119b51[_0x1ad6c9(0x132)][_0x1ad6c9(0x125)]);_0x6dc09b&&_0x483e8e[_0x1ad6c9(0x134)](_0x6dc09b);const _0x22627e=_0x2bf7e6(_0x568717[_0x1ad6c9(0x132)][_0x1ad6c9(0x118)]);_0x22627e&&_0x483e8e[_0x1ad6c9(0x142)](_0x22627e);}function _0x471613(_0x1d2482){const _0x2f5aa2=_0x1ad6c9;return _0x67a838[_0x2f5aa2(0x15b)][_0x2f5aa2(0x145)](_0x1d2482)||_0x67a838[_0x2f5aa2(0x10c)][_0x2f5aa2(0x145)](_0x1d2482)||_0x67a838[_0x2f5aa2(0x10b)][_0x2f5aa2(0x145)](_0x1d2482);}function _0x2bf7e6(_0x69ee61){const _0x220e41=_0x1ad6c9;if(_0x69ee61&&_0x2d8dae(_0x69ee61,_0x220e41(0x10e))&&!_0x2d8dae(_0x69ee61,_0x220e41(0x12d))){const _0x448335=_0x2d8dae(_0x69ee61,_0x220e41(0x10e));if(!_0x471613(_0x448335))return{'node':_0x69ee61,'type':_0x220e41(0x135),'id':_0x448335};}return null;}this[_0x1ad6c9(0x12e)]=_0x502ebe[_0x1ad6c9(0x11d)]((_0x43976b,_0x262c0b)=>({'changes':_0x43976b,'state':_0x1ad6c9(0x122),'index':_0x262c0b}));}}export function isValidReplyType(_0x4b4ad0){const _0x5af8bb=_0x39cafa;return Object[_0x5af8bb(0x137)](AI_REPLY_TYPES)[_0x5af8bb(0x145)](_0x4b4ad0);}export function isIgnoredReplyType(_0x4a8822){const _0x376495=_0x39cafa;return AI_REPLY_TYPES_IGNORED[_0x376495(0x145)](_0x4a8822);}export function isReplyTitleType(_0x2313b7){return _0x2313b7===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x1b025f){const _0x209152=_0x39cafa;return _0x209152(0x116)===_0x1b025f;}