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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index-editor.css +10 -1
  3. package/dist/index.css +10 -1
  4. package/dist/index.js +4 -4
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +15 -15
  152. package/src/aiactions/aiactions.js +1 -1
  153. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  154. package/src/aiactions/model/aiactionsreply.js +1 -1
  155. package/src/aiassistant/adapters/aiadapter.js +1 -1
  156. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  157. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  158. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  159. package/src/aiassistant/aiassistant.js +1 -1
  160. package/src/aiassistant/aiassistantediting.js +1 -1
  161. package/src/aiassistant/aiassistantui.js +1 -1
  162. package/src/aiassistant/legacyerrors.js +1 -1
  163. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  164. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  165. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  167. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformview.js +1 -1
  169. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  170. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  171. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  172. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  173. package/src/aiassistant/utils/common-translations.js +1 -1
  174. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  175. package/src/aiballoon/aiballoon.js +1 -1
  176. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  177. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatcontroller.js +1 -1
  181. package/src/aichat/aichatui.js +1 -1
  182. package/src/aichat/model/aichatcontext.js +1 -1
  183. package/src/aichat/model/aichatconversation.js +1 -1
  184. package/src/aichat/model/aichatinteraction.js +1 -1
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichat/utils/scrollmanager.js +1 -1
  214. package/src/aichathistory/aichathistory.js +1 -1
  215. package/src/aichathistory/aichathistorycontroller.js +1 -1
  216. package/src/aichathistory/aichathistoryui.js +1 -1
  217. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  218. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  219. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aiquickactions/aiquickactions.js +1 -1
  250. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  251. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  252. package/src/aiquickactions/aiquickactionsui.js +1 -1
  253. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  256. package/src/aiquickactions/utils/common-translations.js +1 -1
  257. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  258. package/src/aireviewmode/aireviewmode.js +1 -1
  259. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  260. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  261. package/src/aireviewmode/aireviewmodeui.js +1 -1
  262. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  264. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  268. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  280. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/index.js +1 -1
  289. package/theme/aireviewmode/aireviewmode-check-list.css +10 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x342d(_0x3d0f52,_0x18f0ff){const _0x23013f=_0x2301();return _0x342d=function(_0x342d9c,_0x5d11f9){_0x342d9c=_0x342d9c-0x120;let _0x18b4f1=_0x23013f[_0x342d9c];return _0x18b4f1;},_0x342d(_0x3d0f52,_0x18f0ff);}const _0x477415=_0x342d;(function(_0x4d4bbc,_0x4ed117){const _0x204356=_0x342d,_0x35758d=_0x4d4bbc();while(!![]){try{const _0x2c5bb7=parseInt(_0x204356(0x12c))/0x1*(-parseInt(_0x204356(0x145))/0x2)+parseInt(_0x204356(0x12d))/0x3*(-parseInt(_0x204356(0x122))/0x4)+-parseInt(_0x204356(0x129))/0x5+-parseInt(_0x204356(0x14c))/0x6*(-parseInt(_0x204356(0x12b))/0x7)+parseInt(_0x204356(0x13a))/0x8+parseInt(_0x204356(0x130))/0x9*(parseInt(_0x204356(0x136))/0xa)+parseInt(_0x204356(0x144))/0xb;if(_0x2c5bb7===_0x4ed117)break;else _0x35758d['push'](_0x35758d['shift']());}catch(_0xc8c163){_0x35758d['push'](_0x35758d['shift']());}}}(_0x2301,0xabe52));import{EmitterMixin as _0x15820d}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x345064}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x15820d(){[_0x477415(0x134)]=[];[_0x477415(0x121)];[_0x477415(0x149)];constructor({connector:_0x2b79bd,group:_0x35bed9}){const _0xb243d3=_0x477415;super(),this[_0xb243d3(0x121)]=_0x2b79bd,this[_0xb243d3(0x149)]=_0x35bed9;}async[_0x477415(0x13f)](){const _0x4bb7d6=_0x477415;try{const _0xcdef00=this[_0x4bb7d6(0x121)][_0x4bb7d6(0x14b)](this[_0x4bb7d6(0x149)]),_0x145b6b=await _0xcdef00[_0x4bb7d6(0x123)]();this[_0x4bb7d6(0x125)](_0x145b6b);}catch(_0x17eb8c){this[_0x4bb7d6(0x131)](_0x4bb7d6(0x127),{'error':_0x17eb8c,'operation':_0x4bb7d6(0x13f)});}}[_0x477415(0x124)](_0x49f825){const _0x14b8dd=_0x477415;this[_0x14b8dd(0x134)][_0x14b8dd(0x139)](_0x49f825);}async[_0x477415(0x120)](_0x441162){const _0x4a0340=_0x477415,_0xa87394=this[_0x4a0340(0x134)][_0x4a0340(0x132)](_0x40e0eb=>_0x40e0eb['id']===_0x441162);if(-0x1===_0xa87394)return!0x1;try{return await this[_0x4a0340(0x121)][_0x4a0340(0x14a)](_0x441162)[_0x4a0340(0x12e)](),this[_0x4a0340(0x134)][_0x4a0340(0x12a)](_0xa87394,0x1),this[_0x4a0340(0x131)](_0x4a0340(0x13e),{'itemId':_0x441162}),!0x0;}catch(_0x3c946a){return this[_0x4a0340(0x131)](_0x4a0340(0x127),{'error':_0x3c946a,'operation':_0x4a0340(0x120),'itemId':_0x441162}),!0x1;}}[_0x477415(0x14e)](_0x36ecee){const _0x46e402=_0x477415;return this[_0x46e402(0x134)][_0x46e402(0x147)](_0x13b509=>_0x13b509['id']===_0x36ecee);}async[_0x477415(0x135)](_0x2366d6,_0x35b619){const _0x130211=_0x477415,_0x547633=this[_0x130211(0x14e)](_0x2366d6);if(!_0x547633)return!0x1;try{return await this[_0x130211(0x121)][_0x130211(0x14d)](_0x2366d6,{'title':_0x35b619})[_0x130211(0x126)](),_0x547633[_0x130211(0x133)](_0x35b619),this[_0x130211(0x131)](_0x130211(0x13d),{'itemId':_0x2366d6,'updates':{'title':_0x35b619}}),!0x0;}catch(_0x2cae5d){return this[_0x130211(0x131)](_0x130211(0x127),{'error':_0x2cae5d,'operation':_0x130211(0x135),'itemId':_0x2366d6}),!0x1;}}async[_0x477415(0x146)](_0x392763,_0x200883){const _0x5c9507=_0x477415,_0x241b61=this[_0x5c9507(0x14e)](_0x392763);if(!_0x241b61)return!0x1;try{return await this[_0x5c9507(0x121)][_0x5c9507(0x14d)](_0x392763,{'pinned':_0x200883})[_0x5c9507(0x126)](),_0x241b61[_0x5c9507(0x128)](_0x200883),this[_0x5c9507(0x131)](_0x5c9507(0x13d),{'itemId':_0x392763,'updates':{'pinned':_0x200883}}),!0x0;}catch(_0x382a20){return this[_0x5c9507(0x131)](_0x5c9507(0x127),{'error':_0x382a20,'operation':_0x5c9507(0x146),'itemId':_0x392763}),!0x1;}}[_0x477415(0x125)](_0x11eaf6){const _0x5ec832=_0x477415;try{this[_0x5ec832(0x134)]=[],_0x11eaf6[_0x5ec832(0x142)](_0x35c799=>{const _0x28a094=_0x5ec832;this[_0x28a094(0x124)](new _0x345064(_0x35c799));}),this[_0x5ec832(0x131)](_0x5ec832(0x143),{'items':[...this[_0x5ec832(0x134)]]});}catch(_0x3a3327){this[_0x5ec832(0x131)](_0x5ec832(0x127),{'error':_0x3a3327,'operation':_0x5ec832(0x125)});}}[_0x477415(0x13b)](_0x574e63={}){const _0x72cc7f=_0x477415,_0x3443a0=void 0x0!==_0x574e63[_0x72cc7f(0x140)]&&_0x574e63[_0x72cc7f(0x140)],_0x4773c9=_0x574e63[_0x72cc7f(0x141)]?new Date(_0x574e63[_0x72cc7f(0x141)][_0x72cc7f(0x12f)](),_0x574e63[_0x72cc7f(0x141)][_0x72cc7f(0x137)](),_0x574e63[_0x72cc7f(0x141)][_0x72cc7f(0x13c)]()):null,_0x287b7e=_0x574e63['to']?new Date(_0x574e63['to'][_0x72cc7f(0x12f)](),_0x574e63['to'][_0x72cc7f(0x137)](),_0x574e63['to'][_0x72cc7f(0x13c)]()):null;return this[_0x72cc7f(0x134)][_0x72cc7f(0x138)](_0x1412fa=>{const _0x231666=_0x72cc7f;if(_0x1412fa[_0x231666(0x140)]!==_0x3443a0)return!0x1;if(_0x287b7e){const _0x50cec2=new Date(_0x1412fa[_0x231666(0x148)][_0x231666(0x12f)](),_0x1412fa[_0x231666(0x148)][_0x231666(0x137)](),_0x1412fa[_0x231666(0x148)][_0x231666(0x13c)]());return _0x4773c9?_0x4773c9[_0x231666(0x14f)]()===_0x287b7e[_0x231666(0x14f)]()?_0x50cec2[_0x231666(0x14f)]()===_0x4773c9[_0x231666(0x14f)]():_0x50cec2<_0x287b7e&&_0x50cec2>=_0x4773c9:_0x50cec2<_0x287b7e;}return!0x0;});}}function _0x2301(){const _0x444b22=['getItem','getTime','removeItem','connector','8PnVWVa','getConversations','addItem','loadItems','getResult','error','updatePinned','6038260KQBuWC','splice','7eylydQ','122192AyLMsD','2000577CjxNnk','execute','getFullYear','1125tFHExc','fire','findIndex','updateTitle','items','updateItemTitle','94110JLVwAz','getMonth','filter','push','1943072pLCDhX','getItems','getDate','itemUpdated','itemRemoved','init','pinned','from','map','itemsLoaded','17690849hUTPSa','2RCLQdz','updateItemPinned','find','createdAt','group','deleteConversation','fetchConversations','2040756AeDdoQ','updateConversation'];_0x2301=function(){return _0x444b22;};return _0x2301();}
23
+ const _0x2d8a0f=_0x359d;(function(_0x2f3d44,_0x2ca296){const _0x58d500=_0x359d,_0x9cba31=_0x2f3d44();while(!![]){try{const _0x5a88d0=-parseInt(_0x58d500(0xaa))/0x1+parseInt(_0x58d500(0xa0))/0x2+-parseInt(_0x58d500(0xc0))/0x3+parseInt(_0x58d500(0x9f))/0x4+-parseInt(_0x58d500(0xb8))/0x5+parseInt(_0x58d500(0xb5))/0x6*(parseInt(_0x58d500(0xa8))/0x7)+parseInt(_0x58d500(0xca))/0x8;if(_0x5a88d0===_0x2ca296)break;else _0x9cba31['push'](_0x9cba31['shift']());}catch(_0x2b81b9){_0x9cba31['push'](_0x9cba31['shift']());}}}(_0x3380,0x1a719));import{EmitterMixin as _0x46c559}from'ckeditor5/src/utils.js';function _0x3380(){const _0x4df884=['itemsLoaded','splice','getItem','updatePinned','getFullYear','deleteConversation','fire','3493njILDi','map','160013gxenUo','removeItem','updateTitle','updateConversation','group','pinned','findIndex','find','itemUpdated','getConversations','getItems','1902xkYodq','updateItemTitle','filter','1013485OfTxua','init','createdAt','updateItemPinned','itemRemoved','addItem','loadItems','push','191904yraxWE','fetchConversations','getMonth','getResult','getDate','execute','connector','from','items','error','1563672qxCFAz','getTime','360332XXQxhW','182532MAPCDi'];_0x3380=function(){return _0x4df884;};return _0x3380();}function _0x359d(_0x4a379d,_0x1f6e1c){const _0x3380c5=_0x3380();return _0x359d=function(_0x359dc7,_0x55959e){_0x359dc7=_0x359dc7-0x9e;let _0x1cbb78=_0x3380c5[_0x359dc7];return _0x1cbb78;},_0x359d(_0x4a379d,_0x1f6e1c);}import{AIChatHistoryItem as _0x2611b3}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x46c559(){[_0x2d8a0f(0xc8)]=[];[_0x2d8a0f(0xc6)];[_0x2d8a0f(0xae)];constructor({connector:_0x5783f3,group:_0x2d02e1}){const _0x2dd0a4=_0x2d8a0f;super(),this[_0x2dd0a4(0xc6)]=_0x5783f3,this[_0x2dd0a4(0xae)]=_0x2d02e1;}async[_0x2d8a0f(0xb9)](){const _0x1305d2=_0x2d8a0f;try{const _0x19115d=this[_0x1305d2(0xc6)][_0x1305d2(0xc1)](this[_0x1305d2(0xae)]),_0x3902d8=await _0x19115d[_0x1305d2(0xb3)]();this[_0x1305d2(0xbe)](_0x3902d8);}catch(_0x301ec6){this[_0x1305d2(0xa7)](_0x1305d2(0xc9),{'error':_0x301ec6,'operation':_0x1305d2(0xb9)});}}[_0x2d8a0f(0xbd)](_0x18cb8e){const _0x276e5e=_0x2d8a0f;this[_0x276e5e(0xc8)][_0x276e5e(0xbf)](_0x18cb8e);}async[_0x2d8a0f(0xab)](_0x9403f0){const _0x3661b7=_0x2d8a0f,_0x3e9ad5=this[_0x3661b7(0xc8)][_0x3661b7(0xb0)](_0x4311ed=>_0x4311ed['id']===_0x9403f0);if(-0x1===_0x3e9ad5)return!0x1;try{return await this[_0x3661b7(0xc6)][_0x3661b7(0xa6)](_0x9403f0)[_0x3661b7(0xc5)](),this[_0x3661b7(0xc8)][_0x3661b7(0xa2)](_0x3e9ad5,0x1),this[_0x3661b7(0xa7)](_0x3661b7(0xbc),{'itemId':_0x9403f0}),!0x0;}catch(_0x542117){return this[_0x3661b7(0xa7)](_0x3661b7(0xc9),{'error':_0x542117,'operation':_0x3661b7(0xab),'itemId':_0x9403f0}),!0x1;}}[_0x2d8a0f(0xa3)](_0x2e30b2){const _0x5ce9ac=_0x2d8a0f;return this[_0x5ce9ac(0xc8)][_0x5ce9ac(0xb1)](_0x34fa4e=>_0x34fa4e['id']===_0x2e30b2);}async[_0x2d8a0f(0xb6)](_0x4e7ddd,_0x4e4d92){const _0x29267c=_0x2d8a0f,_0x512131=this[_0x29267c(0xa3)](_0x4e7ddd);if(!_0x512131)return!0x1;try{return await this[_0x29267c(0xc6)][_0x29267c(0xad)](_0x4e7ddd,{'title':_0x4e4d92})[_0x29267c(0xc3)](),_0x512131[_0x29267c(0xac)](_0x4e4d92),this[_0x29267c(0xa7)](_0x29267c(0xb2),{'itemId':_0x4e7ddd,'updates':{'title':_0x4e4d92}}),!0x0;}catch(_0x29ffad){return this[_0x29267c(0xa7)](_0x29267c(0xc9),{'error':_0x29ffad,'operation':_0x29267c(0xb6),'itemId':_0x4e7ddd}),!0x1;}}async[_0x2d8a0f(0xbb)](_0xbff32a,_0x240d25){const _0xa45210=_0x2d8a0f,_0x3476d0=this[_0xa45210(0xa3)](_0xbff32a);if(!_0x3476d0)return!0x1;try{return await this[_0xa45210(0xc6)][_0xa45210(0xad)](_0xbff32a,{'pinned':_0x240d25})[_0xa45210(0xc3)](),_0x3476d0[_0xa45210(0xa4)](_0x240d25),this[_0xa45210(0xa7)](_0xa45210(0xb2),{'itemId':_0xbff32a,'updates':{'pinned':_0x240d25}}),!0x0;}catch(_0x5dd987){return this[_0xa45210(0xa7)](_0xa45210(0xc9),{'error':_0x5dd987,'operation':_0xa45210(0xbb),'itemId':_0xbff32a}),!0x1;}}[_0x2d8a0f(0xbe)](_0x329ffc){const _0x3aa96f=_0x2d8a0f;try{this[_0x3aa96f(0xc8)]=[],_0x329ffc[_0x3aa96f(0xa9)](_0x332636=>{const _0x5535e0=_0x3aa96f;this[_0x5535e0(0xbd)](new _0x2611b3(_0x332636));}),this[_0x3aa96f(0xa7)](_0x3aa96f(0xa1),{'items':[...this[_0x3aa96f(0xc8)]]});}catch(_0x15ac38){this[_0x3aa96f(0xa7)](_0x3aa96f(0xc9),{'error':_0x15ac38,'operation':_0x3aa96f(0xbe)});}}[_0x2d8a0f(0xb4)](_0x799524={}){const _0x56c0ef=_0x2d8a0f,_0x233def=void 0x0!==_0x799524[_0x56c0ef(0xaf)]&&_0x799524[_0x56c0ef(0xaf)],_0x53c194=_0x799524[_0x56c0ef(0xc7)]?new Date(_0x799524[_0x56c0ef(0xc7)][_0x56c0ef(0xa5)](),_0x799524[_0x56c0ef(0xc7)][_0x56c0ef(0xc2)](),_0x799524[_0x56c0ef(0xc7)][_0x56c0ef(0xc4)]()):null,_0x51a28d=_0x799524['to']?new Date(_0x799524['to'][_0x56c0ef(0xa5)](),_0x799524['to'][_0x56c0ef(0xc2)](),_0x799524['to'][_0x56c0ef(0xc4)]()):null;return this[_0x56c0ef(0xc8)][_0x56c0ef(0xb7)](_0x8c10dc=>{const _0x19e493=_0x56c0ef;if(_0x8c10dc[_0x19e493(0xaf)]!==_0x233def)return!0x1;if(_0x51a28d){const _0x4a067e=new Date(_0x8c10dc[_0x19e493(0xba)][_0x19e493(0xa5)](),_0x8c10dc[_0x19e493(0xba)][_0x19e493(0xc2)](),_0x8c10dc[_0x19e493(0xba)][_0x19e493(0xc4)]());return _0x53c194?_0x53c194[_0x19e493(0x9e)]()===_0x51a28d[_0x19e493(0x9e)]()?_0x4a067e[_0x19e493(0x9e)]()===_0x53c194[_0x19e493(0x9e)]():_0x4a067e<_0x51a28d&&_0x4a067e>=_0x53c194:_0x4a067e<_0x51a28d;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3f3e05=_0x5e76;(function(_0x489ecb,_0x1a636d){var _0x57fe5c=_0x5e76,_0x2dc9b5=_0x489ecb();while(!![]){try{var _0xe4c569=parseInt(_0x57fe5c(0x6a))/0x1*(parseInt(_0x57fe5c(0x70))/0x2)+parseInt(_0x57fe5c(0x6e))/0x3*(parseInt(_0x57fe5c(0x6b))/0x4)+parseInt(_0x57fe5c(0x6d))/0x5+-parseInt(_0x57fe5c(0x74))/0x6+-parseInt(_0x57fe5c(0x78))/0x7+-parseInt(_0x57fe5c(0x69))/0x8*(-parseInt(_0x57fe5c(0x77))/0x9)+parseInt(_0x57fe5c(0x71))/0xa*(-parseInt(_0x57fe5c(0x67))/0xb);if(_0xe4c569===_0x1a636d)break;else _0x2dc9b5['push'](_0x2dc9b5['shift']());}catch(_0x319f66){_0x2dc9b5['push'](_0x2dc9b5['shift']());}}}(_0x24d4,0x6a958));function _0x5e76(_0x26bf82,_0x282920){var _0x24d49a=_0x24d4();return _0x5e76=function(_0x5e765a,_0x13c356){_0x5e765a=_0x5e765a-0x67;var _0xfbff22=_0x24d49a[_0x5e765a];return _0xfbff22;},_0x5e76(_0x26bf82,_0x282920);}import{ObservableMixin as _0x36c62b}from'ckeditor5/src/utils.js';import{escape as _0x2389fd}from'es-toolkit/compat';function _0x24d4(){var _0x284dd9=['pinned','2794250FCedIX','172665YakFbh','set','110bBLSZF','15280YxGbDM','createdAt','updatePinned','1035624okbwnf','updateTitle','title','592812WJTfvK','3214036QYxvAK','8591qVpJil','updatedAt','88OkOPrM','8369HUzVwN','36zUnFbO'];_0x24d4=function(){return _0x284dd9;};return _0x24d4();}export class AIChatHistoryItem extends _0x36c62b(){['id'];[_0x3f3e05(0x72)];constructor({id:_0x54267f,title:_0x551908,createdAt:_0x2c01b5,updatedAt:_0x3f4b66,pinned:_0x5cb9f5}){var _0xc15ee7=_0x3f3e05;super(),this['id']=_0x54267f,this[_0xc15ee7(0x72)]=new Date(_0x2c01b5),this[_0xc15ee7(0x6f)](_0xc15ee7(0x76),_0x551908),this[_0xc15ee7(0x6f)](_0xc15ee7(0x68),_0x3f4b66?new Date(_0x3f4b66):null),this[_0xc15ee7(0x6f)](_0xc15ee7(0x6c),_0x5cb9f5||!0x1);}[_0x3f3e05(0x75)](_0xf372ee){var _0x2ded45=_0x3f3e05;this[_0x2ded45(0x6f)](_0x2ded45(0x76),_0x2389fd(_0xf372ee)),this[_0x2ded45(0x68)]=new Date();}[_0x3f3e05(0x73)](_0x3f331e){var _0x2f0d47=_0x3f3e05;this[_0x2f0d47(0x6f)](_0x2f0d47(0x6c),_0x3f331e),this[_0x2f0d47(0x68)]=new Date();}}
23
+ var _0x51276f=_0x53ee;(function(_0x11df91,_0x4168a3){var _0x8dadf5=_0x53ee,_0x47413e=_0x11df91();while(!![]){try{var _0x303ab5=parseInt(_0x8dadf5(0x1c8))/0x1*(-parseInt(_0x8dadf5(0x1c7))/0x2)+-parseInt(_0x8dadf5(0x1d1))/0x3*(-parseInt(_0x8dadf5(0x1cc))/0x4)+-parseInt(_0x8dadf5(0x1c9))/0x5*(-parseInt(_0x8dadf5(0x1ce))/0x6)+-parseInt(_0x8dadf5(0x1c2))/0x7*(-parseInt(_0x8dadf5(0x1c0))/0x8)+parseInt(_0x8dadf5(0x1cd))/0x9*(-parseInt(_0x8dadf5(0x1d2))/0xa)+parseInt(_0x8dadf5(0x1d3))/0xb*(parseInt(_0x8dadf5(0x1cb))/0xc)+-parseInt(_0x8dadf5(0x1d4))/0xd*(parseInt(_0x8dadf5(0x1cf))/0xe);if(_0x303ab5===_0x4168a3)break;else _0x47413e['push'](_0x47413e['shift']());}catch(_0x47f47e){_0x47413e['push'](_0x47413e['shift']());}}}(_0x37f8,0xb9f5c));import{ObservableMixin as _0x3adeea}from'ckeditor5/src/utils.js';function _0x53ee(_0x454040,_0x2842eb){var _0x37f87f=_0x37f8();return _0x53ee=function(_0x53eed1,_0x40d91d){_0x53eed1=_0x53eed1-0x1c0;var _0x28d04f=_0x37f87f[_0x53eed1];return _0x28d04f;},_0x53ee(_0x454040,_0x2842eb);}import{escape as _0x5e9d94}from'es-toolkit/compat';function _0x37f8(){var _0x1a6e85=['6458uKyHIB','389FYtlBi','11745IRflJC','updatePinned','12QmeHZb','4dKMmVa','4599657ohXHaO','426kCHPdI','14VnTtCB','createdAt','4089678HBiWve','10eRZBGe','9058489FNPObz','4714697pOIwCY','24hhKeoo','title','1255359PaxVDQ','pinned','updatedAt','set','updateTitle'];_0x37f8=function(){return _0x1a6e85;};return _0x37f8();}export class AIChatHistoryItem extends _0x3adeea(){['id'];[_0x51276f(0x1d0)];constructor({id:_0x5c26fd,title:_0x56ebc7,createdAt:_0x171817,updatedAt:_0x392636,pinned:_0xca9f02}){var _0x2269b3=_0x51276f;super(),this['id']=_0x5c26fd,this[_0x2269b3(0x1d0)]=new Date(_0x171817),this[_0x2269b3(0x1c5)](_0x2269b3(0x1c1),_0x56ebc7),this[_0x2269b3(0x1c5)](_0x2269b3(0x1c4),_0x392636?new Date(_0x392636):null),this[_0x2269b3(0x1c5)](_0x2269b3(0x1c3),_0xca9f02||!0x1);}[_0x51276f(0x1c6)](_0x333f04){var _0x72b796=_0x51276f;this[_0x72b796(0x1c5)](_0x72b796(0x1c1),_0x5e9d94(_0x333f04)),this[_0x72b796(0x1c4)]=new Date();}[_0x51276f(0x1ca)](_0x3febc5){var _0x505dd1=_0x51276f;this[_0x505dd1(0x1c5)](_0x505dd1(0x1c3),_0x3febc5),this[_0x505dd1(0x1c4)]=new Date();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x459cf2=_0x14bc;function _0x14bc(_0x3ebc64,_0x1ffd66){const _0x2eacb4=_0x2eac();return _0x14bc=function(_0x14bccb,_0x339026){_0x14bccb=_0x14bccb-0xcd;let _0x360481=_0x2eacb4[_0x14bccb];return _0x360481;},_0x14bc(_0x3ebc64,_0x1ffd66);}(function(_0x2aefa7,_0x1206d2){const _0x24c3b0=_0x14bc,_0x5104ad=_0x2aefa7();while(!![]){try{const _0x3bcdf8=parseInt(_0x24c3b0(0xeb))/0x1+-parseInt(_0x24c3b0(0x12b))/0x2+parseInt(_0x24c3b0(0xdd))/0x3+-parseInt(_0x24c3b0(0x109))/0x4*(parseInt(_0x24c3b0(0x11b))/0x5)+parseInt(_0x24c3b0(0xe3))/0x6+parseInt(_0x24c3b0(0xcf))/0x7+parseInt(_0x24c3b0(0xea))/0x8*(-parseInt(_0x24c3b0(0x11c))/0x9);if(_0x3bcdf8===_0x1206d2)break;else _0x5104ad['push'](_0x5104ad['shift']());}catch(_0x17aab4){_0x5104ad['push'](_0x5104ad['shift']());}}}(_0x2eac,0xb34c7));import{ListItemView as _0x2bee09,HighlightedTextView as _0xe0e2b6,ButtonView as _0x4aa727,ListView as _0x14819f,IconView as _0x3652dc,createDropdown as _0x44eb30,InputTextView as _0x558406}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x251b70,IconPin as _0x24a197,IconCheck as _0x9fd076,IconCancel as _0x15a402}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x49c088,ConfirmMixin as _0x876039}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x132822}from'es-toolkit/compat';import{AISpinnerView as _0x3ad322}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x172310}from'../../aicore/utils/common-translations.js';function _0x2eac(){const _0x1b644c=['1265klIWiU','85446sbtNUJ','ck-ai-chat-history__item-title','value','setConversationPinned','removeConversation','_createPinButtonView','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_LOADING_UNPINNING','updateTitle','label','fire','withText','click','actions','isMatching','1272010LWySAY','ck-ai-chat-history__item-check','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-row','10116197vCDXKH','items','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item','add','AI_CHAT_HISTORY_REMOVE','ck-ai-loader','_createAcceptEditButtonView','AI_CHAT_HISTORY_LOADING_RENAMING','locale','showConfirm','bind','span','ck-ai-chat-history__item-main-content','111504rVxyNI','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_EDIT_NAME','panelPosition','children','then','7403028oVNemg','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','_createSpinnerView','ck-confirm-view-cancel','execute','listitem','pinned','1192owRpHC','840238uQoNtV','mainContent','set','setTemplate','highlightText','ck-confirm-view-submit','text','string','_titleView','selectConversation','_createEditInputView','editConversationTitle','loadingState','ck-ai-chat-history__item-content','tiny','AI_CHAT_HISTORY_PIN_BUTTON','LOADING_LABELS','AI_CHAT_HISTORY_LOADING_PINNING','ck-ai-loader__text','AI_CHAT_HISTORY_CANCEL','Enter','div','isOn','_createCheckView','ck-ai-chat-history__item-actions','match','key','bindTemplate','ck-ai-chat-history__item-date','ck-ai-chat-history__item--active','12196tFgBzZ','extendTemplate','_commitEditInputValue','buttonView','change:isEdit','element','focus','edit:cancel','addMany','isEdit','isVisible','createCollection','ck-hidden','clear','updateLoadingState','panelView','_createMenuDropdownView','ck-ai-chat-history__item--edit'];_0x2eac=function(){return _0x1b644c;};return _0x2eac();}export class AIChatHistoryListItemView extends _0x876039(_0x2bee09){['id'];static [_0x459cf2(0xfb)]={'remove':_0x459cf2(0x122),'rename':_0x459cf2(0xd7),'pin':_0x459cf2(0xfc),'unpin':_0x459cf2(0x123)};[_0x459cf2(0x129)];[_0x459cf2(0xec)];[_0x459cf2(0xf3)];constructor(_0x20cdce,_0x1bb930){const _0x21629a=_0x459cf2;super(_0x20cdce);const _0x4d32ec=this[_0x21629a(0x106)];this[_0x21629a(0xed)](_0x21629a(0x112),!0x1),this[_0x21629a(0xed)](_0x21629a(0x113),!0x0),this[_0x21629a(0xed)](_0x21629a(0xe9),!!_0x1bb930[_0x21629a(0xe9)]),this[_0x21629a(0xed)](_0x21629a(0xf7),null),this['id']=_0x1bb930['id'];const {title:_0x1f7cb9,createdAt:_0x16491b,active:_0xc8ad13=!0x1}=_0x1bb930;this[_0x21629a(0xf3)]=new _0xe0e2b6(),this[_0x21629a(0xf3)][_0x21629a(0xf1)]=_0x1f7cb9,this[_0x21629a(0xf3)][_0x21629a(0x10a)]({'attributes':{'class':[_0x21629a(0x11d)]}});const _0x4dcf77=this[_0x21629a(0x102)](),_0x60ce50=this[_0x21629a(0x121)](_0x20cdce),_0x470a58=this[_0x21629a(0x119)](),_0xa81e4e=this[_0x21629a(0xf5)](_0x20cdce,_0x1f7cb9),_0x53e315=this[_0x21629a(0xd6)](_0x20cdce,_0xa81e4e),_0x389df3=this[_0x21629a(0x12d)](_0x20cdce,_0xa81e4e);this[_0x21629a(0x129)]=this[_0x21629a(0x114)](),this[_0x21629a(0xec)]=this[_0x21629a(0x114)](),this[_0x21629a(0xec)][_0x21629a(0xd3)](this[_0x21629a(0xf3)]),this[_0x21629a(0x129)][_0x21629a(0xd3)](_0x60ce50),this[_0x21629a(0x129)][_0x21629a(0xd3)](_0x470a58),this['on'](_0x21629a(0x10d),(_0x216403,_0x59b792,_0x3c4d07)=>{const _0x11172c=_0x21629a;this[_0x11172c(0x129)][_0x11172c(0x116)](),this[_0x11172c(0xec)][_0x11172c(0x116)](),_0x3c4d07?(this[_0x11172c(0x129)][_0x11172c(0xd3)](_0x53e315),this[_0x11172c(0x129)][_0x11172c(0xd3)](_0x389df3),this[_0x11172c(0xec)][_0x11172c(0xd3)](_0xa81e4e),_0xa81e4e[_0x11172c(0x10e)][_0x11172c(0x10f)]()):(this[_0x11172c(0x129)][_0x11172c(0xd3)](_0x60ce50),this[_0x11172c(0x129)][_0x11172c(0xd3)](_0x470a58),this[_0x11172c(0xec)][_0x11172c(0xd3)](this[_0x11172c(0xf3)]));}),this[_0x21629a(0xee)]({'tag':'li','attributes':{'class':[_0x21629a(0xd2),_0xc8ad13?_0x21629a(0x108):'',_0x4d32ec['if'](_0x21629a(0x113),_0x21629a(0x115),_0xa2a5a1=>!_0xa2a5a1),_0x4d32ec['if'](_0x21629a(0x112),_0x21629a(0x11a))],'role':_0x21629a(0xe8)},'children':[{'tag':_0x21629a(0xdb),'attributes':{'class':[_0x21629a(0xde)]},'children':[{'tag':_0x21629a(0x100),'attributes':{'class':[_0x21629a(0x12c),_0x4d32ec['if'](_0x21629a(0xf7),_0x21629a(0x115),_0x3f4990=>!!_0x3f4990)]},'children':_0xc8ad13?[_0x4dcf77]:[]},{'tag':_0x21629a(0x100),'attributes':{'class':[_0x21629a(0xd5),_0x4d32ec['if'](_0x21629a(0xf7),_0x21629a(0x115),_0x50faea=>!_0x50faea)]},'children':[this[_0x21629a(0xe5)]()]}]},{'tag':_0x21629a(0x100),'attributes':{'class':[_0x21629a(0xce)]},'children':[{'tag':_0x21629a(0x100),'attributes':{'class':[_0x21629a(0xf8)]},'on':{'click':this[_0x21629a(0x106)]['to'](_0x21629a(0x128))},'children':[{'tag':_0x21629a(0x100),'attributes':{'class':[_0x21629a(0xdc)]},'children':[{'tag':_0x21629a(0x100),'attributes':{'class':[_0x21629a(0x11d),_0x4d32ec['if'](_0x21629a(0xf7),_0x21629a(0x115),_0x292cea=>!!_0x292cea)]},'children':this[_0x21629a(0xec)]},{'tag':_0x21629a(0x100),'attributes':{'class':[_0x21629a(0xfd),_0x4d32ec['if'](_0x21629a(0xf7),_0x21629a(0x115),_0x209ce2=>!_0x209ce2)]},'children':[{'text':_0x4d32ec['to'](_0x21629a(0xf7),_0x53a5a0=>_0x53a5a0?_0x172310(this[_0x21629a(0xd8)],AIChatHistoryListItemView[_0x21629a(0xfb)][_0x53a5a0]):'')}]}]},{'tag':_0x21629a(0xdb),'attributes':{'class':[_0x21629a(0x107)]},'children':[_0x16491b]}]},{'tag':_0x21629a(0x100),'attributes':{'class':[_0x21629a(0x103)]},'children':this[_0x21629a(0x129)]}]}]}),this['on'](_0x21629a(0x128),()=>{const _0x4d7466=_0x21629a;this[_0x4d7466(0x112)]||this[_0x4d7466(0x126)](_0x4d7466(0xf4),{'id':this['id']});});}[_0x459cf2(0x124)](_0x3d38f4){const _0x3525e3=_0x459cf2;this[_0x3525e3(0xf3)][_0x3525e3(0xf1)]=_0x132822(_0x3d38f4);}[_0x459cf2(0x117)](_0x512c0c,_0x3c3aa2){const _0x3a3960=_0x459cf2;this[_0x3a3960(0xed)](_0x3a3960(0xf7),_0x3c3aa2?_0x512c0c:null);}[_0x459cf2(0x102)](){const _0xf229b4=_0x459cf2,_0x103a32=new _0x3652dc();return _0x103a32[_0xf229b4(0xed)]({'content':_0x9fd076}),_0x103a32;}[_0x459cf2(0x121)](_0x4ae615){const _0x4a6084=_0x459cf2,_0x23fff5=new _0x4aa727(_0x4ae615);return _0x23fff5[_0x4a6084(0xed)]({'label':_0x172310(_0x4ae615,_0x4a6084(0xfa)),'icon':_0x24a197,'withText':!0x1,'tooltip':!0x0}),_0x23fff5[_0x4a6084(0xda)](_0x4a6084(0x101))['to'](this,_0x4a6084(0xe9)),_0x23fff5['on'](_0x4a6084(0xe7),()=>{const _0x253e1c=_0x4a6084,_0x9946fd=!this[_0x253e1c(0xe9)];this[_0x253e1c(0x126)](_0x253e1c(0x11f),{'id':this['id'],'pinned':_0x9946fd});}),_0x23fff5;}[_0x459cf2(0x119)](){const _0x2d5cf2=_0x459cf2,_0x426a75=_0x44eb30(this[_0x2d5cf2(0xd8)],_0x49c088),_0x14abce=_0x426a75[_0x2d5cf2(0x118)][_0x2d5cf2(0xe1)];_0x426a75[_0x2d5cf2(0x10c)][_0x2d5cf2(0xed)]({'label':_0x172310(this[_0x2d5cf2(0xd8)],_0x2d5cf2(0xe4)),'icon':_0x251b70}),_0x426a75[_0x2d5cf2(0xe0)]='sw';const _0x15ef9b=new _0x4aa727(this[_0x2d5cf2(0xd8)]);_0x15ef9b[_0x2d5cf2(0x125)]=_0x172310(this[_0x2d5cf2(0xd8)],_0x2d5cf2(0xdf)),_0x15ef9b[_0x2d5cf2(0x127)]=!0x0,_0x15ef9b['on'](_0x2d5cf2(0xe7),()=>{const _0x321eb9=_0x2d5cf2;this[_0x321eb9(0x112)]=!0x0;});const _0x2b892c=new _0x4aa727(this[_0x2d5cf2(0xd8)]);_0x2b892c[_0x2d5cf2(0x125)]=_0x172310(this[_0x2d5cf2(0xd8)],_0x2d5cf2(0xd4)),_0x2b892c[_0x2d5cf2(0x127)]=!0x0,_0x2b892c['on'](_0x2d5cf2(0xe7),()=>{const _0x110765=_0x2d5cf2;this[_0x110765(0xd9)](_0x172310(this[_0x110765(0xd8)],_0x110765(0xcd)),this[_0x110765(0x10e)])[_0x110765(0xe2)](()=>{const _0x5ed92c=_0x110765;this[_0x5ed92c(0x126)](_0x5ed92c(0x120),{'id':this['id']});});});const _0x3bd7f2=new _0x14819f(this[_0x2d5cf2(0xd8)]),_0x3d1e85=new _0x2bee09(this[_0x2d5cf2(0xd8)]);_0x3d1e85[_0x2d5cf2(0xe1)][_0x2d5cf2(0xd3)](_0x15ef9b);const _0x27cace=new _0x2bee09(this[_0x2d5cf2(0xd8)]);return _0x27cace[_0x2d5cf2(0xe1)][_0x2d5cf2(0xd3)](_0x2b892c),_0x3bd7f2[_0x2d5cf2(0xd0)][_0x2d5cf2(0x111)]([_0x3d1e85,_0x27cace]),_0x14abce[_0x2d5cf2(0xd3)](_0x3bd7f2),_0x426a75;}[_0x459cf2(0xf5)](_0x364e52,_0x43f7b2){const _0x3fa8fb=_0x459cf2,_0x2e75ab=new _0x558406(_0x364e52),_0x2d1f39=_0x2e75ab[_0x3fa8fb(0x106)];return _0x2e75ab[_0x3fa8fb(0x11e)]=_0x43f7b2,_0x2e75ab[_0x3fa8fb(0x10a)]({'on':{'keydown':_0x2d1f39['to'](_0x146dbc=>{const _0x9155c7=_0x3fa8fb;_0x9155c7(0xff)==_0x146dbc[_0x9155c7(0x105)]&&this[_0x9155c7(0x10b)](_0x2e75ab);})}}),_0x2e75ab;}[_0x459cf2(0xd6)](_0x3d2b31,_0x55651c){const _0x16ebcd=_0x459cf2,_0x56e6e5=new _0x4aa727(_0x3d2b31);return _0x56e6e5[_0x16ebcd(0xed)]({'icon':_0x9fd076,'withText':!0x1,'tooltip':_0x172310(_0x3d2b31,_0x16ebcd(0xd1))}),_0x56e6e5[_0x16ebcd(0x10a)]({'attributes':{'class':[_0x16ebcd(0xf0)]}}),_0x56e6e5['on'](_0x16ebcd(0xe7),()=>{const _0x207ad8=_0x16ebcd;this[_0x207ad8(0x10b)](_0x55651c);}),_0x56e6e5;}[_0x459cf2(0x10b)](_0x40ffcf){const _0x52f4dd=_0x459cf2,_0x590c4d=_0x40ffcf[_0x52f4dd(0x10e)][_0x52f4dd(0x11e)]||'';this[_0x52f4dd(0xf3)][_0x52f4dd(0xf1)]=_0x590c4d,this[_0x52f4dd(0x112)]=!0x1,this[_0x52f4dd(0x126)](_0x52f4dd(0xf6),{'id':this['id'],'title':_0x590c4d});}[_0x459cf2(0x12d)](_0x16a33b,_0x47f4e6){const _0x574710=_0x459cf2,_0x4f9fc2=new _0x4aa727(_0x16a33b);return _0x4f9fc2[_0x574710(0xed)]({'icon':_0x15a402,'withText':!0x1,'tooltip':_0x172310(_0x16a33b,_0x574710(0xfe))}),_0x4f9fc2[_0x574710(0x10a)]({'attributes':{'class':[_0x574710(0xe6)]}}),_0x4f9fc2['on'](_0x574710(0xe7),()=>{const _0x54f449=_0x574710;this[_0x54f449(0x112)]=!0x1,_0x47f4e6[_0x54f449(0x11e)]=this[_0x54f449(0xf3)][_0x54f449(0xf1)]||'',this[_0x54f449(0x126)](_0x54f449(0x110));}),_0x4f9fc2;}[_0x459cf2(0xe5)](){const _0x46dc9d=_0x459cf2,_0x56767e=new _0x3ad322(_0x46dc9d(0xf9));return _0x56767e[_0x46dc9d(0x113)]=!0x0,_0x56767e;}[_0x459cf2(0x12a)](_0x1da7ff){const _0x21271c=_0x459cf2;return this[_0x21271c(0xf3)]&&_0x21271c(0xf2)==typeof this[_0x21271c(0xf3)][_0x21271c(0xf1)]&&this[_0x21271c(0xf3)][_0x21271c(0xf1)][_0x21271c(0x104)](_0x1da7ff)?{'title':!0x0}:null;}[_0x459cf2(0xef)](_0x2bea16){const _0xf145b0=_0x459cf2;this[_0xf145b0(0xf3)][_0xf145b0(0xef)](_0x2bea16);}}
23
+ const _0x30f87b=_0x5789;(function(_0x5d2b07,_0x4eb62){const _0x3ce0f9=_0x5789,_0x995c5=_0x5d2b07();while(!![]){try{const _0x361a63=-parseInt(_0x3ce0f9(0x142))/0x1+parseInt(_0x3ce0f9(0x13d))/0x2*(parseInt(_0x3ce0f9(0x131))/0x3)+parseInt(_0x3ce0f9(0x13a))/0x4*(-parseInt(_0x3ce0f9(0xf0))/0x5)+-parseInt(_0x3ce0f9(0x12a))/0x6*(parseInt(_0x3ce0f9(0x111))/0x7)+parseInt(_0x3ce0f9(0x10a))/0x8+-parseInt(_0x3ce0f9(0x12f))/0x9+parseInt(_0x3ce0f9(0x122))/0xa;if(_0x361a63===_0x4eb62)break;else _0x995c5['push'](_0x995c5['shift']());}catch(_0x1bfb74){_0x995c5['push'](_0x995c5['shift']());}}}(_0x2bb7,0x9557c));import{ListItemView as _0x1809a9,HighlightedTextView as _0x4844ea,ButtonView as _0x255769,ListView as _0x4d29de,IconView as _0xd5fa86,createDropdown as _0x2df969,InputTextView as _0x247e66}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x597846,IconPin as _0x13b0e9,IconCheck as _0x40981d,IconCancel as _0x141836}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x12ed79,ConfirmMixin as _0x270a0e}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2bb7(){const _0x2b0b93=['createCollection','span','AI_CHAT_HISTORY_LOADING_UNPINNING','items','_createPinButtonView','bind','key','AI_CHAT_HISTORY_LOADING_PINNING','updateTitle','AI_CHAT_HISTORY_LOADING_RENAMING','AI_CHAT_HISTORY_CANCEL','panelPosition','children','click','add','_createMenuDropdownView','withText','ck-ai-loader','ck-ai-chat-history__item--active','3665936qZdwbP','locale','isVisible','set','match','removeConversation','setConversationPinned','147oAGzPl','_createEditInputView','AI_CHAT_HISTORY_EDIT_NAME','ck-ai-chat-history__item-check-container','showConfirm','ck-ai-chat-history__item','clear','editConversationTitle','label','updateLoadingState','then','highlightText','div','ck-ai-chat-history__item--edit','_createAcceptEditButtonView','edit:cancel','buttonView','25864680XhpkIV','_titleView','listitem','ck-ai-chat-history__item-content','ck-ai-chat-history__item-main-content','_commitEditInputValue','execute','focus','53796AIoibD','Enter','ck-hidden','value','AI_CHAT_HISTORY_ACCEPT','6761889KAUoTL','ck-ai-chat-history__item-actions','6lVBSgP','change:isEdit','element','bindTemplate','extendTemplate','pinned','panelView','string','isOn','8uIzcof','fire','LOADING_LABELS','148756BPLbKo','AI_CHAT_HISTORY_REMOVE_CONFIRM','isMatching','_createSpinnerView','ck-confirm-view-cancel','727353pnDgFT','text','AI_CHAT_HISTORY_REMOVE','tiny','ck-ai-loader__text','_createCancelEditButtonView','_createCheckView','addMany','setTemplate','AI_CHAT_HISTORY_LOADING_REMOVING','isEdit','ck-confirm-view-submit','selectConversation','ck-ai-chat-history__item-check','ck-ai-chat-history__item-date','AI_CHAT_HISTORY_PIN_BUTTON','2286995HHmbPI','loadingState','actions','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','mainContent','ck-ai-chat-history__item-title','ck-ai-chat-history__item-row'];_0x2bb7=function(){return _0x2b0b93;};return _0x2bb7();}function _0x5789(_0x4c9552,_0x66d130){const _0x2bb7ba=_0x2bb7();return _0x5789=function(_0x5789f3,_0x3a1109){_0x5789f3=_0x5789f3-0xe7;let _0x425178=_0x2bb7ba[_0x5789f3];return _0x425178;},_0x5789(_0x4c9552,_0x66d130);}import{escape as _0x592aee}from'es-toolkit/compat';import{AISpinnerView as _0x377153}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x597c78}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x270a0e(_0x1809a9){['id'];static [_0x30f87b(0x13c)]={'remove':_0x30f87b(0xe9),'rename':_0x30f87b(0x100),'pin':_0x30f87b(0xfe),'unpin':_0x30f87b(0xf9)};[_0x30f87b(0xf2)];[_0x30f87b(0xf4)];[_0x30f87b(0x123)];constructor(_0x4279fd,_0x2d02b0){const _0x18cc19=_0x30f87b;super(_0x4279fd);const _0x22ddc0=this[_0x18cc19(0x134)];this[_0x18cc19(0x10d)](_0x18cc19(0xea),!0x1),this[_0x18cc19(0x10d)](_0x18cc19(0x10c),!0x0),this[_0x18cc19(0x10d)](_0x18cc19(0x136),!!_0x2d02b0[_0x18cc19(0x136)]),this[_0x18cc19(0x10d)](_0x18cc19(0xf1),null),this['id']=_0x2d02b0['id'];const {title:_0x110b40,createdAt:_0x566ae9,active:_0x183c87=!0x1}=_0x2d02b0;this[_0x18cc19(0x123)]=new _0x4844ea(),this[_0x18cc19(0x123)][_0x18cc19(0x143)]=_0x110b40,this[_0x18cc19(0x123)][_0x18cc19(0x135)]({'attributes':{'class':[_0x18cc19(0xf5)]}});const _0x3330b8=this[_0x18cc19(0x148)](),_0x258b2b=this[_0x18cc19(0xfb)](_0x4279fd),_0x13447c=this[_0x18cc19(0x106)](),_0x9a9d32=this[_0x18cc19(0x112)](_0x4279fd,_0x110b40),_0x157da9=this[_0x18cc19(0x11f)](_0x4279fd,_0x9a9d32),_0x40fee0=this[_0x18cc19(0x147)](_0x4279fd,_0x9a9d32);this[_0x18cc19(0xf2)]=this[_0x18cc19(0xf7)](),this[_0x18cc19(0xf4)]=this[_0x18cc19(0xf7)](),this[_0x18cc19(0xf4)][_0x18cc19(0x105)](this[_0x18cc19(0x123)]),this[_0x18cc19(0xf2)][_0x18cc19(0x105)](_0x258b2b),this[_0x18cc19(0xf2)][_0x18cc19(0x105)](_0x13447c),this['on'](_0x18cc19(0x132),(_0x5eb6fe,_0x3fe8a4,_0x326ed3)=>{const _0x5302a5=_0x18cc19;this[_0x5302a5(0xf2)][_0x5302a5(0x117)](),this[_0x5302a5(0xf4)][_0x5302a5(0x117)](),_0x326ed3?(this[_0x5302a5(0xf2)][_0x5302a5(0x105)](_0x157da9),this[_0x5302a5(0xf2)][_0x5302a5(0x105)](_0x40fee0),this[_0x5302a5(0xf4)][_0x5302a5(0x105)](_0x9a9d32),_0x9a9d32[_0x5302a5(0x133)][_0x5302a5(0x129)]()):(this[_0x5302a5(0xf2)][_0x5302a5(0x105)](_0x258b2b),this[_0x5302a5(0xf2)][_0x5302a5(0x105)](_0x13447c),this[_0x5302a5(0xf4)][_0x5302a5(0x105)](this[_0x5302a5(0x123)]));}),this[_0x18cc19(0xe8)]({'tag':'li','attributes':{'class':[_0x18cc19(0x116),_0x183c87?_0x18cc19(0x109):'',_0x22ddc0['if'](_0x18cc19(0x10c),_0x18cc19(0x12c),_0x30a4f2=>!_0x30a4f2),_0x22ddc0['if'](_0x18cc19(0xea),_0x18cc19(0x11e))],'role':_0x18cc19(0x124)},'children':[{'tag':_0x18cc19(0xf8),'attributes':{'class':[_0x18cc19(0x114)]},'children':[{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0xed),_0x22ddc0['if'](_0x18cc19(0xf1),_0x18cc19(0x12c),_0x59a2f6=>!!_0x59a2f6)]},'children':_0x183c87?[_0x3330b8]:[]},{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x108),_0x22ddc0['if'](_0x18cc19(0xf1),_0x18cc19(0x12c),_0x4c2d20=>!_0x4c2d20)]},'children':[this[_0x18cc19(0x140)]()]}]},{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0xf6)]},'children':[{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x125)]},'on':{'click':this[_0x18cc19(0x134)]['to'](_0x18cc19(0x104))},'children':[{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x126)]},'children':[{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0xf5),_0x22ddc0['if'](_0x18cc19(0xf1),_0x18cc19(0x12c),_0xce3b01=>!!_0xce3b01)]},'children':this[_0x18cc19(0xf4)]},{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x146),_0x22ddc0['if'](_0x18cc19(0xf1),_0x18cc19(0x12c),_0x36e8fe=>!_0x36e8fe)]},'children':[{'text':_0x22ddc0['to'](_0x18cc19(0xf1),_0x2266e6=>_0x2266e6?_0x597c78(this[_0x18cc19(0x10b)],AIChatHistoryListItemView[_0x18cc19(0x13c)][_0x2266e6]):'')}]}]},{'tag':_0x18cc19(0xf8),'attributes':{'class':[_0x18cc19(0xee)]},'children':[_0x566ae9]}]},{'tag':_0x18cc19(0x11d),'attributes':{'class':[_0x18cc19(0x130)]},'children':this[_0x18cc19(0xf2)]}]}]}),this['on'](_0x18cc19(0x104),()=>{const _0x41fb35=_0x18cc19;this[_0x41fb35(0xea)]||this[_0x41fb35(0x13b)](_0x41fb35(0xec),{'id':this['id']});});}[_0x30f87b(0xff)](_0x3a5749){const _0x27d852=_0x30f87b;this[_0x27d852(0x123)][_0x27d852(0x143)]=_0x592aee(_0x3a5749);}[_0x30f87b(0x11a)](_0x2ff43d,_0xda2cdf){const _0x1d072d=_0x30f87b;this[_0x1d072d(0x10d)](_0x1d072d(0xf1),_0xda2cdf?_0x2ff43d:null);}[_0x30f87b(0x148)](){const _0x1a63b3=_0x30f87b,_0x5d2614=new _0xd5fa86();return _0x5d2614[_0x1a63b3(0x10d)]({'content':_0x40981d}),_0x5d2614;}[_0x30f87b(0xfb)](_0x3570e3){const _0x16d5ea=_0x30f87b,_0x2ffd81=new _0x255769(_0x3570e3);return _0x2ffd81[_0x16d5ea(0x10d)]({'label':_0x597c78(_0x3570e3,_0x16d5ea(0xef)),'icon':_0x13b0e9,'withText':!0x1,'tooltip':!0x0}),_0x2ffd81[_0x16d5ea(0xfc)](_0x16d5ea(0x139))['to'](this,_0x16d5ea(0x136)),_0x2ffd81['on'](_0x16d5ea(0x128),()=>{const _0x433cbd=_0x16d5ea,_0x4cd5be=!this[_0x433cbd(0x136)];this[_0x433cbd(0x13b)](_0x433cbd(0x110),{'id':this['id'],'pinned':_0x4cd5be});}),_0x2ffd81;}[_0x30f87b(0x106)](){const _0x2be817=_0x30f87b,_0x1f129f=_0x2df969(this[_0x2be817(0x10b)],_0x12ed79),_0x52ffb9=_0x1f129f[_0x2be817(0x137)][_0x2be817(0x103)];_0x1f129f[_0x2be817(0x121)][_0x2be817(0x10d)]({'label':_0x597c78(this[_0x2be817(0x10b)],_0x2be817(0xf3)),'icon':_0x597846}),_0x1f129f[_0x2be817(0x102)]='sw';const _0x59b969=new _0x255769(this[_0x2be817(0x10b)]);_0x59b969[_0x2be817(0x119)]=_0x597c78(this[_0x2be817(0x10b)],_0x2be817(0x113)),_0x59b969[_0x2be817(0x107)]=!0x0,_0x59b969['on'](_0x2be817(0x128),()=>{const _0x1d0d56=_0x2be817;this[_0x1d0d56(0xea)]=!0x0;});const _0x4a3f07=new _0x255769(this[_0x2be817(0x10b)]);_0x4a3f07[_0x2be817(0x119)]=_0x597c78(this[_0x2be817(0x10b)],_0x2be817(0x144)),_0x4a3f07[_0x2be817(0x107)]=!0x0,_0x4a3f07['on'](_0x2be817(0x128),()=>{const _0x4b1706=_0x2be817;this[_0x4b1706(0x115)](_0x597c78(this[_0x4b1706(0x10b)],_0x4b1706(0x13e)),this[_0x4b1706(0x133)])[_0x4b1706(0x11b)](()=>{const _0x13d273=_0x4b1706;this[_0x13d273(0x13b)](_0x13d273(0x10f),{'id':this['id']});});});const _0x107a5b=new _0x4d29de(this[_0x2be817(0x10b)]),_0x5de002=new _0x1809a9(this[_0x2be817(0x10b)]);_0x5de002[_0x2be817(0x103)][_0x2be817(0x105)](_0x59b969);const _0xf68739=new _0x1809a9(this[_0x2be817(0x10b)]);return _0xf68739[_0x2be817(0x103)][_0x2be817(0x105)](_0x4a3f07),_0x107a5b[_0x2be817(0xfa)][_0x2be817(0xe7)]([_0x5de002,_0xf68739]),_0x52ffb9[_0x2be817(0x105)](_0x107a5b),_0x1f129f;}[_0x30f87b(0x112)](_0x4bbab8,_0x3bbf9d){const _0x603310=_0x30f87b,_0x40c0b6=new _0x247e66(_0x4bbab8),_0x81dcb5=_0x40c0b6[_0x603310(0x134)];return _0x40c0b6[_0x603310(0x12d)]=_0x3bbf9d,_0x40c0b6[_0x603310(0x135)]({'on':{'keydown':_0x81dcb5['to'](_0x1f4a2f=>{const _0x315657=_0x603310;_0x315657(0x12b)==_0x1f4a2f[_0x315657(0xfd)]&&this[_0x315657(0x127)](_0x40c0b6);})}}),_0x40c0b6;}[_0x30f87b(0x11f)](_0xeeeb00,_0x5acef9){const _0x4e70c0=_0x30f87b,_0x23c920=new _0x255769(_0xeeeb00);return _0x23c920[_0x4e70c0(0x10d)]({'icon':_0x40981d,'withText':!0x1,'tooltip':_0x597c78(_0xeeeb00,_0x4e70c0(0x12e))}),_0x23c920[_0x4e70c0(0x135)]({'attributes':{'class':[_0x4e70c0(0xeb)]}}),_0x23c920['on'](_0x4e70c0(0x128),()=>{const _0x58b4a6=_0x4e70c0;this[_0x58b4a6(0x127)](_0x5acef9);}),_0x23c920;}[_0x30f87b(0x127)](_0x4812fb){const _0x206cf4=_0x30f87b,_0x5e9d35=_0x4812fb[_0x206cf4(0x133)][_0x206cf4(0x12d)]||'';this[_0x206cf4(0x123)][_0x206cf4(0x143)]=_0x5e9d35,this[_0x206cf4(0xea)]=!0x1,this[_0x206cf4(0x13b)](_0x206cf4(0x118),{'id':this['id'],'title':_0x5e9d35});}[_0x30f87b(0x147)](_0x56e365,_0x5e8ed5){const _0x333487=_0x30f87b,_0x588198=new _0x255769(_0x56e365);return _0x588198[_0x333487(0x10d)]({'icon':_0x141836,'withText':!0x1,'tooltip':_0x597c78(_0x56e365,_0x333487(0x101))}),_0x588198[_0x333487(0x135)]({'attributes':{'class':[_0x333487(0x141)]}}),_0x588198['on'](_0x333487(0x128),()=>{const _0x4c6b53=_0x333487;this[_0x4c6b53(0xea)]=!0x1,_0x5e8ed5[_0x4c6b53(0x12d)]=this[_0x4c6b53(0x123)][_0x4c6b53(0x143)]||'',this[_0x4c6b53(0x13b)](_0x4c6b53(0x120));}),_0x588198;}[_0x30f87b(0x140)](){const _0x290097=_0x30f87b,_0x44b4e8=new _0x377153(_0x290097(0x145));return _0x44b4e8[_0x290097(0x10c)]=!0x0,_0x44b4e8;}[_0x30f87b(0x13f)](_0x1e127a){const _0x25a7fe=_0x30f87b;return this[_0x25a7fe(0x123)]&&_0x25a7fe(0x138)==typeof this[_0x25a7fe(0x123)][_0x25a7fe(0x143)]&&this[_0x25a7fe(0x123)][_0x25a7fe(0x143)][_0x25a7fe(0x10e)](_0x1e127a)?{'title':!0x0}:null;}[_0x30f87b(0x11c)](_0x41dddc){const _0xcacd7e=_0x30f87b;this[_0xcacd7e(0x123)][_0xcacd7e(0x11c)](_0x41dddc);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f0f30=_0x2b5e;(function(_0x5e2140,_0x228405){const _0x562597=_0x2b5e,_0x241f01=_0x5e2140();while(!![]){try{const _0x27dbca=-parseInt(_0x562597(0x1be))/0x1+parseInt(_0x562597(0x1bb))/0x2*(-parseInt(_0x562597(0x1c4))/0x3)+parseInt(_0x562597(0x1ca))/0x4*(parseInt(_0x562597(0x1c7))/0x5)+-parseInt(_0x562597(0x1bc))/0x6+-parseInt(_0x562597(0x1d1))/0x7*(parseInt(_0x562597(0x1ba))/0x8)+parseInt(_0x562597(0x1b2))/0x9*(parseInt(_0x562597(0x1bf))/0xa)+-parseInt(_0x562597(0x1c1))/0xb*(-parseInt(_0x562597(0x1c8))/0xc);if(_0x27dbca===_0x228405)break;else _0x241f01['push'](_0x241f01['shift']());}catch(_0x57f542){_0x241f01['push'](_0x241f01['shift']());}}}(_0x130b,0xe2e0d));import{ListItemView as _0x4cf717,View as _0x406121,ListView as _0x4d0748}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x4cf717{[_0x5f0f30(0x1ce)];[_0x5f0f30(0x1cf)];[_0x5f0f30(0x1c2)];constructor(_0x116007,{title:_0x1ba0bf,items:_0x4e12be}){const _0x4abee2=_0x5f0f30;super(_0x116007);const _0x3c44d9=this[_0x4abee2(0x1cc)];this[_0x4abee2(0x1b3)](_0x4abee2(0x1b9),!0x0),this[_0x4abee2(0x1ce)]=_0x1ba0bf,this[_0x4abee2(0x1cf)]=_0x4e12be;const _0x2f2ac0=new _0x406121(_0x116007);_0x2f2ac0[_0x4abee2(0x1b6)]({'tag':_0x4abee2(0x1d0),'attributes':{'class':[_0x4abee2(0x1b7)]},'children':[this[_0x4abee2(0x1ce)]]}),this[_0x4abee2(0x1c2)]=new _0x4d0748(_0x116007),this[_0x4abee2(0x1c2)][_0x4abee2(0x1b0)][_0x4abee2(0x1c3)](this[_0x4abee2(0x1cf)]),this[_0x4abee2(0x1b6)]({'tag':'li','attributes':{'class':[_0x4abee2(0x1cb),_0x3c44d9['if'](_0x4abee2(0x1b9),_0x4abee2(0x1d2),_0x1a4889=>!_0x1a4889)]},'children':[_0x2f2ac0,this[_0x4abee2(0x1c2)]]});}[_0x5f0f30(0x1b1)](_0x4987b3){const _0x43e6ac=_0x5f0f30,_0x16c74c=this[_0x43e6ac(0x1cf)][_0x43e6ac(0x1bd)];let _0x1887a5=0x0;for(const _0xdbc35e of this[_0x43e6ac(0x1cf)]){if(_0x4987b3){const _0xe0e25a=_0xdbc35e[_0x43e6ac(0x1b4)](_0x4987b3);_0xdbc35e[_0x43e6ac(0x1b9)]=!!_0xe0e25a,_0xdbc35e[_0x43e6ac(0x1c6)](_0x4987b3);}else _0xdbc35e[_0x43e6ac(0x1b9)]=!0x0,_0xdbc35e[_0x43e6ac(0x1c6)](null);_0xdbc35e[_0x43e6ac(0x1b9)]&&_0x1887a5++;}return this[_0x43e6ac(0x1b9)]=_0x1887a5>0x0,{'resultsCount':_0x1887a5,'totalItemsCount':_0x16c74c};}[_0x5f0f30(0x1b5)](_0x581485){const _0x4d5f35=_0x5f0f30;return this[_0x4d5f35(0x1cf)][_0x4d5f35(0x1c0)](_0x508820=>_0x508820['id']===_0x581485);}[_0x5f0f30(0x1cd)](_0x2595ad){const _0x13002b=_0x5f0f30,_0x3bddb3=this[_0x13002b(0x1cf)][_0x13002b(0x1b8)](_0x2595ad);-0x1!==_0x3bddb3&&(this[_0x13002b(0x1cf)][_0x13002b(0x1c5)](_0x3bddb3,0x1),this[_0x13002b(0x1c2)][_0x13002b(0x1b0)][_0x13002b(0x1c9)](_0x2595ad));}}function _0x2b5e(_0xd339a7,_0x484237){const _0x130bc9=_0x130b();return _0x2b5e=function(_0x2b5ef4,_0x25bf0f){_0x2b5ef4=_0x2b5ef4-0x1b0;let _0x555176=_0x130bc9[_0x2b5ef4];return _0x555176;},_0x2b5e(_0xd339a7,_0x484237);}function _0x130b(){const _0x1db4af=['items','filter','9EvvlHG','set','isMatching','getItem','setTemplate','ck-ai-chat-history__section-title','indexOf','isVisible','189512pwhhha','2axXzNz','4486680dIVBhR','length','1273780bqgAsl','14503670NQYely','find','41153453yvYTdl','_itemsListView','addMany','1751730FXVBUX','splice','highlightText','25bhryts','12kpbmVl','remove','57976iFkMeE','ck-ai-chat-history__section','bindTemplate','removeItem','title','itemsViews','div','511xYLBJk','ck-hidden'];_0x130b=function(){return _0x1db4af;};return _0x130b();}
23
+ function _0x5dcc(_0x2748de,_0x4ce0c2){const _0x23bcd0=_0x23bc();return _0x5dcc=function(_0x5dcc24,_0x1a4083){_0x5dcc24=_0x5dcc24-0x14e;let _0x443759=_0x23bcd0[_0x5dcc24];return _0x443759;},_0x5dcc(_0x2748de,_0x4ce0c2);}const _0x5d8216=_0x5dcc;(function(_0x54381a,_0x2c4413){const _0x5b13f7=_0x5dcc,_0x266189=_0x54381a();while(!![]){try{const _0x5f2bba=-parseInt(_0x5b13f7(0x15d))/0x1+parseInt(_0x5b13f7(0x15a))/0x2+-parseInt(_0x5b13f7(0x152))/0x3+-parseInt(_0x5b13f7(0x15e))/0x4*(-parseInt(_0x5b13f7(0x15c))/0x5)+-parseInt(_0x5b13f7(0x16c))/0x6+-parseInt(_0x5b13f7(0x16d))/0x7*(-parseInt(_0x5b13f7(0x16a))/0x8)+parseInt(_0x5b13f7(0x167))/0x9*(parseInt(_0x5b13f7(0x161))/0xa);if(_0x5f2bba===_0x2c4413)break;else _0x266189['push'](_0x266189['shift']());}catch(_0x1156e8){_0x266189['push'](_0x266189['shift']());}}}(_0x23bc,0xb2980));function _0x23bc(){const _0x276a8a=['770795QSZhac','116758OGDQUU','36pkIeXB','bindTemplate','ck-ai-chat-history__section-title','2270zdDUoD','splice','find','remove','indexOf','itemsViews','495fxLCRW','div','isMatching','8IzjaZN','set','112212XpwyGJ','3061401wVIadO','title','filter','_itemsListView','addMany','removeItem','3867321iSzHkc','ck-hidden','setTemplate','getItem','ck-ai-chat-history__section','items','isVisible','length','637656zdIZFZ','highlightText'];_0x23bc=function(){return _0x276a8a;};return _0x23bc();}import{ListItemView as _0x54a27d,View as _0x39a99b,ListView as _0x16804b}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x54a27d{[_0x5d8216(0x16e)];[_0x5d8216(0x166)];[_0x5d8216(0x14f)];constructor(_0x58ede4,{title:_0x548539,items:_0x5a9902}){const _0x6cd48f=_0x5d8216;super(_0x58ede4);const _0x343f82=this[_0x6cd48f(0x15f)];this[_0x6cd48f(0x16b)](_0x6cd48f(0x158),!0x0),this[_0x6cd48f(0x16e)]=_0x548539,this[_0x6cd48f(0x166)]=_0x5a9902;const _0xd8ebb9=new _0x39a99b(_0x58ede4);_0xd8ebb9[_0x6cd48f(0x154)]({'tag':_0x6cd48f(0x168),'attributes':{'class':[_0x6cd48f(0x160)]},'children':[this[_0x6cd48f(0x16e)]]}),this[_0x6cd48f(0x14f)]=new _0x16804b(_0x58ede4),this[_0x6cd48f(0x14f)][_0x6cd48f(0x157)][_0x6cd48f(0x150)](this[_0x6cd48f(0x166)]),this[_0x6cd48f(0x154)]({'tag':'li','attributes':{'class':[_0x6cd48f(0x156),_0x343f82['if'](_0x6cd48f(0x158),_0x6cd48f(0x153),_0x320665=>!_0x320665)]},'children':[_0xd8ebb9,this[_0x6cd48f(0x14f)]]});}[_0x5d8216(0x14e)](_0x5ae65c){const _0x2ea14d=_0x5d8216,_0x2dd291=this[_0x2ea14d(0x166)][_0x2ea14d(0x159)];let _0x284545=0x0;for(const _0x525208 of this[_0x2ea14d(0x166)]){if(_0x5ae65c){const _0x79754=_0x525208[_0x2ea14d(0x169)](_0x5ae65c);_0x525208[_0x2ea14d(0x158)]=!!_0x79754,_0x525208[_0x2ea14d(0x15b)](_0x5ae65c);}else _0x525208[_0x2ea14d(0x158)]=!0x0,_0x525208[_0x2ea14d(0x15b)](null);_0x525208[_0x2ea14d(0x158)]&&_0x284545++;}return this[_0x2ea14d(0x158)]=_0x284545>0x0,{'resultsCount':_0x284545,'totalItemsCount':_0x2dd291};}[_0x5d8216(0x155)](_0x212a23){const _0x58c0a4=_0x5d8216;return this[_0x58c0a4(0x166)][_0x58c0a4(0x163)](_0x92d8f=>_0x92d8f['id']===_0x212a23);}[_0x5d8216(0x151)](_0x4d2913){const _0x2b938d=_0x5d8216,_0x504b92=this[_0x2b938d(0x166)][_0x2b938d(0x165)](_0x4d2913);-0x1!==_0x504b92&&(this[_0x2b938d(0x166)][_0x2b938d(0x162)](_0x504b92,0x1),this[_0x2b938d(0x14f)][_0x2b938d(0x157)][_0x2b938d(0x164)](_0x4d2913));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5704(_0x45a39f,_0x49da1b){const _0x242ed3=_0x242e();return _0x5704=function(_0x5704a5,_0x20f642){_0x5704a5=_0x5704a5-0xa9;let _0x29b165=_0x242ed3[_0x5704a5];return _0x29b165;},_0x5704(_0x45a39f,_0x49da1b);}const _0x3b7f13=_0x5704;(function(_0x236893,_0x291951){const _0x7106e9=_0x5704,_0x2f0162=_0x236893();while(!![]){try{const _0x5b3ba0=-parseInt(_0x7106e9(0xa9))/0x1*(parseInt(_0x7106e9(0xb1))/0x2)+-parseInt(_0x7106e9(0xae))/0x3*(-parseInt(_0x7106e9(0xb0))/0x4)+-parseInt(_0x7106e9(0xb7))/0x5+parseInt(_0x7106e9(0xb4))/0x6*(parseInt(_0x7106e9(0xb2))/0x7)+-parseInt(_0x7106e9(0xb5))/0x8*(-parseInt(_0x7106e9(0xb9))/0x9)+-parseInt(_0x7106e9(0xb6))/0xa+parseInt(_0x7106e9(0xad))/0xb*(-parseInt(_0x7106e9(0xb3))/0xc);if(_0x5b3ba0===_0x291951)break;else _0x2f0162['push'](_0x2f0162['shift']());}catch(_0x39edb9){_0x2f0162['push'](_0x2f0162['shift']());}}}(_0x242e,0x42405));import{ListView as _0x1bf04f}from'ckeditor5/src/ui.js';function _0x242e(){const _0x523921=['176022gXYGfB','3719891jaJukC','6876qWLxwB','6tlJxsp','2792aTjTbr','2958400OluvAP','901175OTbQRs','extendTemplate','7011NcyGnX','sections','2FJVqzw','ck-ai-chat-history__sections','items','filter','7953IbcYBa','21IVZQMV','addMany','305404cISiyI'];_0x242e=function(){return _0x523921;};return _0x242e();}export class AIChatHistorySectionListView extends _0x1bf04f{[_0x3b7f13(0xba)];constructor(_0x59d00f,_0x441c99){const _0x2a2208=_0x3b7f13;super(_0x59d00f),this[_0x2a2208(0xba)]=_0x441c99,this[_0x2a2208(0xab)][_0x2a2208(0xaf)](this[_0x2a2208(0xba)]),this[_0x2a2208(0xb8)]({'attributes':{'class':[_0x2a2208(0xaa)]}});}[_0x3b7f13(0xac)](_0x3530d8){const _0x559d07=_0x3b7f13;let _0x2b3863=0x0,_0x8a45f2=0x0;for(const _0x54d075 of this[_0x559d07(0xba)]){const {resultsCount:_0x3f4553,totalItemsCount:_0xad8b49}=_0x54d075[_0x559d07(0xac)](_0x3530d8);_0x2b3863+=_0x3f4553,_0x8a45f2+=_0xad8b49;}return{'resultsCount':_0x2b3863,'totalItemsCount':_0x8a45f2};}}
23
+ function _0x2ccd(_0x145eae,_0x11e878){const _0x28e8c3=_0x28e8();return _0x2ccd=function(_0x2ccdee,_0x5a9ef0){_0x2ccdee=_0x2ccdee-0x1e4;let _0x1ccd5e=_0x28e8c3[_0x2ccdee];return _0x1ccd5e;},_0x2ccd(_0x145eae,_0x11e878);}const _0x10488f=_0x2ccd;(function(_0x172d3a,_0x4205de){const _0x1b9ca8=_0x2ccd,_0x5902c1=_0x172d3a();while(!![]){try{const _0x3834e8=-parseInt(_0x1b9ca8(0x1e8))/0x1*(-parseInt(_0x1b9ca8(0x1f3))/0x2)+parseInt(_0x1b9ca8(0x1ee))/0x3*(parseInt(_0x1b9ca8(0x1e6))/0x4)+parseInt(_0x1b9ca8(0x1e7))/0x5*(-parseInt(_0x1b9ca8(0x1e9))/0x6)+-parseInt(_0x1b9ca8(0x1e5))/0x7*(-parseInt(_0x1b9ca8(0x1f1))/0x8)+parseInt(_0x1b9ca8(0x1f0))/0x9*(-parseInt(_0x1b9ca8(0x1ec))/0xa)+-parseInt(_0x1b9ca8(0x1ed))/0xb*(parseInt(_0x1b9ca8(0x1f2))/0xc)+-parseInt(_0x1b9ca8(0x1ea))/0xd;if(_0x3834e8===_0x4205de)break;else _0x5902c1['push'](_0x5902c1['shift']());}catch(_0x2941fd){_0x5902c1['push'](_0x5902c1['shift']());}}}(_0x28e8,0x2385d));import{ListView as _0x102ac5}from'ckeditor5/src/ui.js';function _0x28e8(){const _0x1f0d0e=['35GPoOMw','2220rYUioy','364545PVjyxT','13vxSDWe','6ZIVulk','2085434TENEeB','extendTemplate','34390WRcDeI','18986TJwxiI','1395EUGiqf','items','180IJrFNC','163536wYSfJI','996HEEGKs','35474jOGuUT','addMany','filter','ck-ai-chat-history__sections','sections'];_0x28e8=function(){return _0x1f0d0e;};return _0x28e8();}export class AIChatHistorySectionListView extends _0x102ac5{[_0x10488f(0x1e4)];constructor(_0xa251f7,_0x8ccf51){const _0x3e68d8=_0x10488f;super(_0xa251f7),this[_0x3e68d8(0x1e4)]=_0x8ccf51,this[_0x3e68d8(0x1ef)][_0x3e68d8(0x1f4)](this[_0x3e68d8(0x1e4)]),this[_0x3e68d8(0x1eb)]({'attributes':{'class':[_0x3e68d8(0x1f6)]}});}[_0x10488f(0x1f5)](_0x265f4a){const _0xfcdf95=_0x10488f;let _0x3caeb6=0x0,_0x597d5d=0x0;for(const _0x133de7 of this[_0xfcdf95(0x1e4)]){const {resultsCount:_0x28a311,totalItemsCount:_0x2bb79a}=_0x133de7[_0xfcdf95(0x1f5)](_0x265f4a);_0x3caeb6+=_0x28a311,_0x597d5d+=_0x2bb79a;}return{'resultsCount':_0x3caeb6,'totalItemsCount':_0x597d5d};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5259(){const _0x27ba6b=['updateHistoryItemsWithCategories','_createErrorView','openChat','errorMessage','removeItem','ck-ai-chat-history','updateItemLoadingState','element','160NIMTpu','2097uLrcXw','change:hasItems','isEmptyViewVisible','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','3264226ZmHqst','addMany','sectionsView','isVisible','849276QlMmsr','ck-ai-chat-history__empty-message','fire','emptyView','delegate','_updateViewVisibility','_createEmptyStateView','setTemplate','_createSkeletonView','queryView','itemsViews','isLoading','search','_createSearchView','resizeButton','locale','add','ck-hidden','isMaximized','6XrXAey','skeletonView','ck-rounded-corners','updateItemTitle','div','445499LiIYVo','removeHistoryItem','hasItems','ck-ai-header\x20ck-ai-header_history','ck-ai-chat-history__content','ck-ai-chat-history__open-chat-button','bindTemplate','_createListItemViews','AI_CHAT_HISTORY_HEADING','15470FzIXyP','title','render','AI_CHAT_HISTORY_EMPTY_MESSAGE','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','updateLoadingState','remove','ltr','change:errorMessage','490542lUzUjG','getItem','some','8530520gVVyLl','children','execute','push','value','isSearchViewVisible','aiHistory','fieldView','items','sections','ck-ai-chat-history__empty','change:isLoading','searchView','ck-ai-chat-error','indexOf','ck-ai-chat-error__dismiss-button','splice','ck-reset_all','clear','AI_CHAT_HISTORY_SEARCH_LABEL','set','errorView','updateTitle','3544kvnHLS','bind','extendTemplate','length','_refreshSearch'];_0x5259=function(){return _0x27ba6b;};return _0x5259();}const _0x2875be=_0x4d85;(function(_0x396556,_0x1311f6){const _0x51f62b=_0x4d85,_0x59edd7=_0x396556();while(!![]){try{const _0xf99a7b=parseInt(_0x51f62b(0x1bb))/0x1+-parseInt(_0x51f62b(0x1cd))/0x2+parseInt(_0x51f62b(0x1a3))/0x3+parseInt(_0x51f62b(0x1f4))/0x4*(parseInt(_0x51f62b(0x1c4))/0x5)+parseInt(_0x51f62b(0x1b6))/0x6*(parseInt(_0x51f62b(0x19f))/0x7)+-parseInt(_0x51f62b(0x1e7))/0x8*(-parseInt(_0x51f62b(0x1f5))/0x9)+-parseInt(_0x51f62b(0x1d0))/0xa;if(_0xf99a7b===_0x1311f6)break;else _0x59edd7['push'](_0x59edd7['shift']());}catch(_0xda40ff){_0x59edd7['push'](_0x59edd7['shift']());}}}(_0x5259,0x4efed));import{View as _0x5deb9c,SearchTextView as _0x217a0a,FormHeaderView as _0x40cc63,ButtonView as _0x4ee6ee}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x4a1992,IconCancel as _0x39f84b}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x6b9bf2}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x4e30cc}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x5a8131}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x31b200}from'../aichathistoryui.js';function _0x4d85(_0x3c0aff,_0x28fa96){const _0x525982=_0x5259();return _0x4d85=function(_0x4d85b1,_0x67e8d8){_0x4d85b1=_0x4d85b1-0x19c;let _0x390171=_0x525982[_0x4d85b1];return _0x390171;},_0x4d85(_0x3c0aff,_0x28fa96);}import{AISkeletonView as _0x1ba91e,SKELETON_DEFINITIONS as _0x102c5c}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x64f4ac}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x38aaa6}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5deb9c{[_0x2875be(0x1dc)];[_0x2875be(0x1e5)];[_0x2875be(0x1b7)];[_0x2875be(0x1a6)];[_0x2875be(0x1a1)];[_0x2875be(0x1b1)];constructor(_0x1554d4,_0x551ecd){const _0x3e6870=_0x2875be;super(_0x1554d4),this[_0x3e6870(0x1e4)](_0x3e6870(0x1bd),!0x1),this[_0x3e6870(0x1e4)](_0x3e6870(0x1ae),!0x0),this[_0x3e6870(0x1e4)](_0x3e6870(0x1ef),''),this[_0x3e6870(0x1e4)](_0x3e6870(0x1b5),!0x1),this[_0x3e6870(0x1e4)](_0x3e6870(0x1d5),!0x1),this[_0x3e6870(0x1e4)](_0x3e6870(0x19c),!0x1);const _0x3b7046=new _0x40cc63(_0x1554d4,{'label':_0x38aaa6(_0x1554d4,_0x3e6870(0x1c3)),'icon':_0x4a1992,'class':_0x3e6870(0x1be)});_0x551ecd&&(this[_0x3e6870(0x1b1)]=_0x64f4ac(_0x1554d4,this),_0x3b7046[_0x3e6870(0x1d1)][_0x3e6870(0x1b3)](this[_0x3e6870(0x1b1)])),this[_0x3e6870(0x1a1)]=new _0x6b9bf2(_0x1554d4,[]),this[_0x3e6870(0x1a1)][_0x3e6870(0x1a7)](..._0x31b200)['to'](this),this[_0x3e6870(0x1e5)]=this[_0x3e6870(0x1ed)](),this[_0x3e6870(0x1b7)]=this[_0x3e6870(0x1ab)](),this[_0x3e6870(0x1a6)]=this[_0x3e6870(0x1a9)](),this[_0x3e6870(0x1dc)]=this[_0x3e6870(0x1b0)](),this['on'](_0x3e6870(0x1db),()=>this[_0x3e6870(0x1a8)]()),this['on'](_0x3e6870(0x1f6),()=>this[_0x3e6870(0x1a8)]()),this['on'](_0x3e6870(0x1cc),()=>this[_0x3e6870(0x1a8)]()),this[_0x3e6870(0x1aa)]({'tag':_0x3e6870(0x1ba),'attributes':{'class':['ck',_0x3e6870(0x1e1),_0x3e6870(0x1f1),_0x3e6870(0x1b8)],'dir':_0x3e6870(0x1cb)},'children':[_0x3b7046,{'tag':_0x3e6870(0x1ba),'attributes':{'class':[_0x3e6870(0x1bf)]},'children':[this[_0x3e6870(0x1b7)],this[_0x3e6870(0x1e5)],this[_0x3e6870(0x1a6)],this[_0x3e6870(0x1dc)]]}]});}[_0x2875be(0x1a8)](){const _0x1304e3=_0x2875be;this[_0x1304e3(0x1d5)]=!this[_0x1304e3(0x1ae)]&&this[_0x1304e3(0x1bd)]&&!this[_0x1304e3(0x1ef)],this[_0x1304e3(0x19c)]=!this[_0x1304e3(0x1ae)]&&!this[_0x1304e3(0x1bd)]&&!this[_0x1304e3(0x1ef)];}[_0x2875be(0x1b0)](){const _0x4ad052=_0x2875be,_0x29aaa2=new _0x217a0a(this[_0x4ad052(0x1b2)],{'filteredView':this[_0x4ad052(0x1a1)],'queryView':{'label':_0x38aaa6(this[_0x4ad052(0x1b2)],_0x4ad052(0x1e3))},'infoView':{'text':{'notFound':{'primary':_0x2cc6b6=>_0x38aaa6(this[_0x4ad052(0x1b2)],_0x4ad052(0x1c8),_0x2cc6b6),'secondary':_0x38aaa6(this[_0x4ad052(0x1b2)],_0x4ad052(0x19e))}}}});return _0x29aaa2['on'](_0x4ad052(0x1c6),()=>{const _0x21a17d=_0x4ad052;this[_0x21a17d(0x1dc)][_0x21a17d(0x1d1)][_0x21a17d(0x1b3)](this[_0x21a17d(0x1e5)],0x1);}),_0x29aaa2[_0x4ad052(0x1e9)]({'attributes':{'class':[this[_0x4ad052(0x1c1)]['if'](_0x4ad052(0x1d5),_0x4ad052(0x1b4),_0x7dd2a3=>!_0x7dd2a3)]}}),_0x29aaa2;}[_0x2875be(0x1ab)](){const _0x30e3dc=_0x2875be,_0x4b86e9=new _0x1ba91e(this[_0x30e3dc(0x1b2)],_0x102c5c[_0x30e3dc(0x1d6)]);return _0x4b86e9[_0x30e3dc(0x1e9)]({'attributes':{'class':[this[_0x30e3dc(0x1c1)]['if'](_0x30e3dc(0x1ae),_0x30e3dc(0x1b4),_0x45173d=>!_0x45173d)]}}),_0x4b86e9;}[_0x2875be(0x1ed)](){const _0x525f50=_0x2875be,_0x99f44d=new _0x5deb9c(this[_0x525f50(0x1b2)]),_0x273f4a=new _0x4ee6ee(this[_0x525f50(0x1b2)]);return _0x273f4a[_0x525f50(0x1e4)]({'withText':!0x1,'icon':_0x39f84b,'class':_0x525f50(0x1df)}),_0x273f4a[_0x525f50(0x1e8)](_0x525f50(0x1a2))['to'](this,_0x525f50(0x1bd),_0x162fa8=>!!_0x162fa8),_0x273f4a['on'](_0x525f50(0x1d2),()=>{const _0x99b363=_0x525f50;this[_0x99b363(0x1ef)]='';}),_0x99f44d[_0x525f50(0x1aa)]({'tag':_0x525f50(0x1ba),'attributes':{'class':['ck',_0x525f50(0x1dd),this[_0x525f50(0x1c1)]['if'](_0x525f50(0x1ef),_0x525f50(0x1b4),_0x4be381=>!_0x4be381)]},'children':[{'tag':'p','children':[{'text':this[_0x525f50(0x1c1)]['to'](_0x525f50(0x1ef))}]},_0x273f4a]}),_0x99f44d;}[_0x2875be(0x1a9)](){const _0x5c60fa=_0x2875be,_0x26a5eb=new _0x4ee6ee(this[_0x5c60fa(0x1b2)]);_0x26a5eb[_0x5c60fa(0x1e4)]({'withText':!0x0,'label':_0x38aaa6(this[_0x5c60fa(0x1b2)],_0x5c60fa(0x19d)),'class':_0x5c60fa(0x1c0)}),_0x26a5eb['on'](_0x5c60fa(0x1d2),()=>{const _0x217be1=_0x5c60fa;this[_0x217be1(0x1a5)](_0x217be1(0x1ee));});const _0x4e8710=new _0x5deb9c(this[_0x5c60fa(0x1b2)]);return _0x4e8710[_0x5c60fa(0x1aa)]({'tag':_0x5c60fa(0x1ba),'attributes':{'class':[_0x5c60fa(0x1da),this[_0x5c60fa(0x1c1)]['if'](_0x5c60fa(0x19c),_0x5c60fa(0x1b4),_0x3696e=>!_0x3696e)]},'children':[{'tag':'p','attributes':{'class':[_0x5c60fa(0x1a4)]},'children':[_0x38aaa6(this[_0x5c60fa(0x1b2)],_0x5c60fa(0x1c7))]},_0x26a5eb]}),_0x4e8710;}[_0x2875be(0x1c2)](_0x4851e6,_0x1d0fd4){const _0x77f830=_0x2875be,_0x2e67d9=[];for(const _0xf0bc63 of _0x4851e6){const _0x465d55=new _0x5a8131(_0x1d0fd4,_0xf0bc63);_0x465d55[_0x77f830(0x1a7)](..._0x31b200)['to'](this),_0x2e67d9[_0x77f830(0x1d3)](_0x465d55);}return _0x2e67d9;}[_0x2875be(0x1ec)](_0x58a3c1){const _0x45cb5c=_0x2875be,_0x78b6d6=this[_0x45cb5c(0x1b2)]||'en',_0x1b9868=[];for(const _0x5e1ce3 of _0x58a3c1){const _0x1a14a6=this[_0x45cb5c(0x1c2)](_0x5e1ce3[_0x45cb5c(0x1d8)],_0x78b6d6);_0x1b9868[_0x45cb5c(0x1d3)](new _0x4e30cc(_0x78b6d6,{'title':_0x5e1ce3[_0x45cb5c(0x1c5)],'items':_0x1a14a6}));}this[_0x45cb5c(0x1a1)][_0x45cb5c(0x1d9)]=_0x1b9868,this[_0x45cb5c(0x1a1)][_0x45cb5c(0x1d8)][_0x45cb5c(0x1e2)](),this[_0x45cb5c(0x1a1)][_0x45cb5c(0x1d8)][_0x45cb5c(0x1a0)](_0x1b9868),this[_0x45cb5c(0x1bd)]=_0x58a3c1[_0x45cb5c(0x1cf)](_0x23b792=>_0x23b792[_0x45cb5c(0x1d8)][_0x45cb5c(0x1ea)]>0x0),this[_0x45cb5c(0x1eb)]();}[_0x2875be(0x1bc)](_0x1543fa){const _0x826a3f=_0x2875be;for(const _0x400191 of this[_0x826a3f(0x1a1)][_0x826a3f(0x1d9)]){const _0x132a48=_0x400191[_0x826a3f(0x1ce)](_0x1543fa);if(_0x132a48){if(_0x400191[_0x826a3f(0x1f0)](_0x132a48),0x0===_0x400191[_0x826a3f(0x1ad)][_0x826a3f(0x1ea)]){const _0x19c9f1=this[_0x826a3f(0x1a1)][_0x826a3f(0x1d9)][_0x826a3f(0x1de)](_0x400191);-0x1!==_0x19c9f1&&(this[_0x826a3f(0x1a1)][_0x826a3f(0x1d9)][_0x826a3f(0x1e0)](_0x19c9f1,0x1),this[_0x826a3f(0x1a1)][_0x826a3f(0x1d8)][_0x826a3f(0x1ca)](_0x400191));}this[_0x826a3f(0x1bd)]=this[_0x826a3f(0x1a1)][_0x826a3f(0x1d9)][_0x826a3f(0x1ea)]>0x0,this[_0x826a3f(0x1eb)]();break;}}}[_0x2875be(0x1b9)](_0x37b5a4,_0x2b000c){const _0x558e7a=_0x2875be;for(const _0x31fbba of this[_0x558e7a(0x1a1)][_0x558e7a(0x1d9)]){const _0x34b6ac=_0x31fbba[_0x558e7a(0x1ce)](_0x37b5a4);if(_0x34b6ac){_0x34b6ac[_0x558e7a(0x1e6)](_0x2b000c);break;}}}[_0x2875be(0x1f2)](_0x24f608,_0x254888,_0x3ec5a2){const _0x5ef038=_0x2875be;for(const _0x36b46e of this[_0x5ef038(0x1a1)][_0x5ef038(0x1d9)]){const _0x3a1b45=_0x36b46e[_0x5ef038(0x1ce)](_0x24f608);if(_0x3a1b45){_0x3a1b45[_0x5ef038(0x1c9)](_0x254888,_0x3ec5a2);break;}}}[_0x2875be(0x1eb)](){const _0x4dcd43=_0x2875be;if(this[_0x4dcd43(0x1bd)]){const _0x207c63=this[_0x4dcd43(0x1dc)][_0x4dcd43(0x1ac)][_0x4dcd43(0x1d7)]?.[_0x4dcd43(0x1f3)]?.[_0x4dcd43(0x1d4)]||'';this[_0x4dcd43(0x1dc)][_0x4dcd43(0x1af)](_0x207c63);}}}
23
+ const _0x3cc1c4=_0x47c2;(function(_0x2266f8,_0x4e2b6c){const _0x26a144=_0x47c2,_0x119067=_0x2266f8();while(!![]){try{const _0x17b7fa=parseInt(_0x26a144(0x82))/0x1*(-parseInt(_0x26a144(0x69))/0x2)+parseInt(_0x26a144(0xa5))/0x3+parseInt(_0x26a144(0x71))/0x4+-parseInt(_0x26a144(0x98))/0x5*(-parseInt(_0x26a144(0x8e))/0x6)+-parseInt(_0x26a144(0xbd))/0x7+-parseInt(_0x26a144(0xb1))/0x8*(parseInt(_0x26a144(0x7a))/0x9)+-parseInt(_0x26a144(0xba))/0xa*(-parseInt(_0x26a144(0x67))/0xb);if(_0x17b7fa===_0x4e2b6c)break;else _0x119067['push'](_0x119067['shift']());}catch(_0x1652e0){_0x119067['push'](_0x119067['shift']());}}}(_0x17bc,0x3c4a4));import{View as _0x343cb9,SearchTextView as _0x45e5fc,FormHeaderView as _0x107913,ButtonView as _0x1640ea}from'ckeditor5/src/ui.js';function _0x47c2(_0x16aa72,_0x29bb55){const _0x17bc25=_0x17bc();return _0x47c2=function(_0x47c212,_0x4763cf){_0x47c212=_0x47c212-0x67;let _0x5317ec=_0x17bc25[_0x47c212];return _0x5317ec;},_0x47c2(_0x16aa72,_0x29bb55);}import{IconAIHistory as _0x3cc090,IconCancel as _0x2778e4}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1a8eac}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xd66ad3}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x165632}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x30d10d}from'../aichathistoryui.js';import{AISkeletonView as _0x5cfc7e,SKELETON_DEFINITIONS as _0x552dfb}from'../../aicore/ui/aiskeleton.js';function _0x17bc(){const _0x11540c=['updateTitle','362403yiGESw','sectionsView','bindTemplate','indexOf','fieldView','ck-ai-chat-history__empty-message','ck-ai-header\x20ck-ai-header_history','emptyView','27MiftPX','_createEmptyStateView','resizeButton','queryView','title','hasItems','ck-ai-chat-history__content','_updateViewVisibility','change:errorMessage','updateHistoryItemsWithCategories','search','_refreshSearch','137490vlhMhs','execute','ck-ai-chat-error','sections','setTemplate','errorMessage','removeHistoryItem','ck-ai-chat-history__open-chat-button','remove','removeItem','30TJsUUg','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateLoadingState','isLoading','clear','AI_CHAT_HISTORY_SEARCH_LABEL','_createSearchView','_createSkeletonView','add','bind','delegate','openChat','isEmptyViewVisible','1002369tGURGd','ck-reset_all','change:hasItems','getItem','element','render','ltr','items','_createListItemViews','updateItemTitle','some','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','40qRNWLy','isVisible','addMany','isMaximized','change:isLoading','locale','ck-ai-chat-history__empty','AI_CHAT_HISTORY_GO_TO_CHAT_BUTTON','extendTemplate','50RDUwYR','AI_CHAT_HISTORY_EMPTY_MESSAGE','ck-ai-chat-history','1453333hvwWDN','length','skeletonView','set','children','push','471163FeTKAC','fire','13136lyaYUe','ck-hidden','searchView','ck-rounded-corners','updateItemLoadingState','AI_CHAT_HISTORY_HEADING','value','itemsViews','589840LYhNFB','_createErrorView','ck-ai-chat-error__dismiss-button','splice','errorView','div','aiHistory','isSearchViewVisible'];_0x17bc=function(){return _0x11540c;};return _0x17bc();}import{createResizeButton as _0x4a1be7}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x4d7a72}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x343cb9{[_0x3cc1c4(0x6b)];[_0x3cc1c4(0x75)];[_0x3cc1c4(0xbf)];[_0x3cc1c4(0x81)];[_0x3cc1c4(0x7b)];[_0x3cc1c4(0x84)];constructor(_0x564500,_0x2aa65d){const _0x5bea0c=_0x3cc1c4;super(_0x564500),this[_0x5bea0c(0xc0)](_0x5bea0c(0x87),!0x1),this[_0x5bea0c(0xc0)](_0x5bea0c(0x9b),!0x0),this[_0x5bea0c(0xc0)](_0x5bea0c(0x93),''),this[_0x5bea0c(0xc0)](_0x5bea0c(0xb4),!0x1),this[_0x5bea0c(0xc0)](_0x5bea0c(0x78),!0x1),this[_0x5bea0c(0xc0)](_0x5bea0c(0xa4),!0x1);const _0x393a60=new _0x107913(_0x564500,{'label':_0x4d7a72(_0x564500,_0x5bea0c(0x6e)),'icon':_0x3cc090,'class':_0x5bea0c(0x80)});_0x2aa65d&&(this[_0x5bea0c(0x84)]=_0x4a1be7(_0x564500,this),_0x393a60[_0x5bea0c(0xc1)][_0x5bea0c(0xa0)](this[_0x5bea0c(0x84)])),this[_0x5bea0c(0x7b)]=new _0x1a8eac(_0x564500,[]),this[_0x5bea0c(0x7b)][_0x5bea0c(0xa2)](..._0x30d10d)['to'](this),this[_0x5bea0c(0x75)]=this[_0x5bea0c(0x72)](),this[_0x5bea0c(0xbf)]=this[_0x5bea0c(0x9f)](),this[_0x5bea0c(0x81)]=this[_0x5bea0c(0x83)](),this[_0x5bea0c(0x6b)]=this[_0x5bea0c(0x9e)](),this['on'](_0x5bea0c(0xb5),()=>this[_0x5bea0c(0x89)]()),this['on'](_0x5bea0c(0xa7),()=>this[_0x5bea0c(0x89)]()),this['on'](_0x5bea0c(0x8a),()=>this[_0x5bea0c(0x89)]()),this[_0x5bea0c(0x92)]({'tag':_0x5bea0c(0x76),'attributes':{'class':['ck',_0x5bea0c(0xa6),_0x5bea0c(0xbc),_0x5bea0c(0x6c)],'dir':_0x5bea0c(0xab)},'children':[_0x393a60,{'tag':_0x5bea0c(0x76),'attributes':{'class':[_0x5bea0c(0x88)]},'children':[this[_0x5bea0c(0xbf)],this[_0x5bea0c(0x75)],this[_0x5bea0c(0x81)],this[_0x5bea0c(0x6b)]]}]});}[_0x3cc1c4(0x89)](){const _0x4cb7ab=_0x3cc1c4;this[_0x4cb7ab(0x78)]=!this[_0x4cb7ab(0x9b)]&&this[_0x4cb7ab(0x87)]&&!this[_0x4cb7ab(0x93)],this[_0x4cb7ab(0xa4)]=!this[_0x4cb7ab(0x9b)]&&!this[_0x4cb7ab(0x87)]&&!this[_0x4cb7ab(0x93)];}[_0x3cc1c4(0x9e)](){const _0x48fd8a=_0x3cc1c4,_0x4632d8=new _0x45e5fc(this[_0x48fd8a(0xb6)],{'filteredView':this[_0x48fd8a(0x7b)],'queryView':{'label':_0x4d7a72(this[_0x48fd8a(0xb6)],_0x48fd8a(0x9d))},'infoView':{'text':{'notFound':{'primary':_0x502f7e=>_0x4d7a72(this[_0x48fd8a(0xb6)],_0x48fd8a(0xb0),_0x502f7e),'secondary':_0x4d7a72(this[_0x48fd8a(0xb6)],_0x48fd8a(0x99))}}}});return _0x4632d8['on'](_0x48fd8a(0xaa),()=>{const _0x31fd15=_0x48fd8a;this[_0x31fd15(0x6b)][_0x31fd15(0xc1)][_0x31fd15(0xa0)](this[_0x31fd15(0x75)],0x1);}),_0x4632d8[_0x48fd8a(0xb9)]({'attributes':{'class':[this[_0x48fd8a(0x7c)]['if'](_0x48fd8a(0x78),_0x48fd8a(0x6a),_0x334e15=>!_0x334e15)]}}),_0x4632d8;}[_0x3cc1c4(0x9f)](){const _0x384cb7=_0x3cc1c4,_0x588497=new _0x5cfc7e(this[_0x384cb7(0xb6)],_0x552dfb[_0x384cb7(0x77)]);return _0x588497[_0x384cb7(0xb9)]({'attributes':{'class':[this[_0x384cb7(0x7c)]['if'](_0x384cb7(0x9b),_0x384cb7(0x6a),_0x1f6478=>!_0x1f6478)]}}),_0x588497;}[_0x3cc1c4(0x72)](){const _0xd48c3c=_0x3cc1c4,_0x37a61d=new _0x343cb9(this[_0xd48c3c(0xb6)]),_0x5c8fc0=new _0x1640ea(this[_0xd48c3c(0xb6)]);return _0x5c8fc0[_0xd48c3c(0xc0)]({'withText':!0x1,'icon':_0x2778e4,'class':_0xd48c3c(0x73)}),_0x5c8fc0[_0xd48c3c(0xa1)](_0xd48c3c(0xb2))['to'](this,_0xd48c3c(0x87),_0x152810=>!!_0x152810),_0x5c8fc0['on'](_0xd48c3c(0x8f),()=>{const _0x5bf81b=_0xd48c3c;this[_0x5bf81b(0x93)]='';}),_0x37a61d[_0xd48c3c(0x92)]({'tag':_0xd48c3c(0x76),'attributes':{'class':['ck',_0xd48c3c(0x90),this[_0xd48c3c(0x7c)]['if'](_0xd48c3c(0x93),_0xd48c3c(0x6a),_0x14049a=>!_0x14049a)]},'children':[{'tag':'p','children':[{'text':this[_0xd48c3c(0x7c)]['to'](_0xd48c3c(0x93))}]},_0x5c8fc0]}),_0x37a61d;}[_0x3cc1c4(0x83)](){const _0x5d97ad=_0x3cc1c4,_0x366a30=new _0x1640ea(this[_0x5d97ad(0xb6)]);_0x366a30[_0x5d97ad(0xc0)]({'withText':!0x0,'label':_0x4d7a72(this[_0x5d97ad(0xb6)],_0x5d97ad(0xb8)),'class':_0x5d97ad(0x95)}),_0x366a30['on'](_0x5d97ad(0x8f),()=>{const _0x584494=_0x5d97ad;this[_0x584494(0x68)](_0x584494(0xa3));});const _0x390ede=new _0x343cb9(this[_0x5d97ad(0xb6)]);return _0x390ede[_0x5d97ad(0x92)]({'tag':_0x5d97ad(0x76),'attributes':{'class':[_0x5d97ad(0xb7),this[_0x5d97ad(0x7c)]['if'](_0x5d97ad(0xa4),_0x5d97ad(0x6a),_0xdb4041=>!_0xdb4041)]},'children':[{'tag':'p','attributes':{'class':[_0x5d97ad(0x7f)]},'children':[_0x4d7a72(this[_0x5d97ad(0xb6)],_0x5d97ad(0xbb))]},_0x366a30]}),_0x390ede;}[_0x3cc1c4(0xad)](_0x413ed1,_0x366b80){const _0x2c5415=_0x3cc1c4,_0x2def9c=[];for(const _0x2e78bd of _0x413ed1){const _0x2d97ba=new _0x165632(_0x366b80,_0x2e78bd);_0x2d97ba[_0x2c5415(0xa2)](..._0x30d10d)['to'](this),_0x2def9c[_0x2c5415(0xc2)](_0x2d97ba);}return _0x2def9c;}[_0x3cc1c4(0x8b)](_0x38cdde){const _0x34a461=_0x3cc1c4,_0x48d0ee=this[_0x34a461(0xb6)]||'en',_0x16d46d=[];for(const _0x2a3c06 of _0x38cdde){const _0xa4e68b=this[_0x34a461(0xad)](_0x2a3c06[_0x34a461(0xac)],_0x48d0ee);_0x16d46d[_0x34a461(0xc2)](new _0xd66ad3(_0x48d0ee,{'title':_0x2a3c06[_0x34a461(0x86)],'items':_0xa4e68b}));}this[_0x34a461(0x7b)][_0x34a461(0x91)]=_0x16d46d,this[_0x34a461(0x7b)][_0x34a461(0xac)][_0x34a461(0x9c)](),this[_0x34a461(0x7b)][_0x34a461(0xac)][_0x34a461(0xb3)](_0x16d46d),this[_0x34a461(0x87)]=_0x38cdde[_0x34a461(0xaf)](_0x4a7a82=>_0x4a7a82[_0x34a461(0xac)][_0x34a461(0xbe)]>0x0),this[_0x34a461(0x8d)]();}[_0x3cc1c4(0x94)](_0x3859f6){const _0x524714=_0x3cc1c4;for(const _0x35b881 of this[_0x524714(0x7b)][_0x524714(0x91)]){const _0x491580=_0x35b881[_0x524714(0xa8)](_0x3859f6);if(_0x491580){if(_0x35b881[_0x524714(0x97)](_0x491580),0x0===_0x35b881[_0x524714(0x70)][_0x524714(0xbe)]){const _0x14f0b0=this[_0x524714(0x7b)][_0x524714(0x91)][_0x524714(0x7d)](_0x35b881);-0x1!==_0x14f0b0&&(this[_0x524714(0x7b)][_0x524714(0x91)][_0x524714(0x74)](_0x14f0b0,0x1),this[_0x524714(0x7b)][_0x524714(0xac)][_0x524714(0x96)](_0x35b881));}this[_0x524714(0x87)]=this[_0x524714(0x7b)][_0x524714(0x91)][_0x524714(0xbe)]>0x0,this[_0x524714(0x8d)]();break;}}}[_0x3cc1c4(0xae)](_0x2b53da,_0x5513f3){const _0x1e6080=_0x3cc1c4;for(const _0x26554d of this[_0x1e6080(0x7b)][_0x1e6080(0x91)]){const _0x2e7c7a=_0x26554d[_0x1e6080(0xa8)](_0x2b53da);if(_0x2e7c7a){_0x2e7c7a[_0x1e6080(0x79)](_0x5513f3);break;}}}[_0x3cc1c4(0x6d)](_0xe42860,_0x46c49c,_0x16a0fb){const _0x3d8917=_0x3cc1c4;for(const _0x6482d6 of this[_0x3d8917(0x7b)][_0x3d8917(0x91)]){const _0x286720=_0x6482d6[_0x3d8917(0xa8)](_0xe42860);if(_0x286720){_0x286720[_0x3d8917(0x9a)](_0x46c49c,_0x16a0fb);break;}}}[_0x3cc1c4(0x8d)](){const _0xa27048=_0x3cc1c4;if(this[_0xa27048(0x87)]){const _0x308f68=this[_0xa27048(0x6b)][_0xa27048(0x85)][_0xa27048(0x7e)]?.[_0xa27048(0xa9)]?.[_0xa27048(0x6f)]||'';this[_0xa27048(0x6b)][_0xa27048(0x8c)](_0x308f68);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x459fb7=_0x4319;(function(_0x50960b,_0x595c31){const _0x17f270=_0x4319,_0xbc525d=_0x50960b();while(!![]){try{const _0x17acdd=-parseInt(_0x17f270(0xd9))/0x1+parseInt(_0x17f270(0xe1))/0x2+parseInt(_0x17f270(0xdd))/0x3+parseInt(_0x17f270(0xa1))/0x4+parseInt(_0x17f270(0xaf))/0x5*(-parseInt(_0x17f270(0xcf))/0x6)+parseInt(_0x17f270(0xd5))/0x7*(-parseInt(_0x17f270(0xc6))/0x8)+parseInt(_0x17f270(0xe4))/0x9;if(_0x17acdd===_0x595c31)break;else _0xbc525d['push'](_0xbc525d['shift']());}catch(_0x1e32bd){_0xbc525d['push'](_0xbc525d['shift']());}}}(_0xbc65,0x1e881));function _0xbc65(){const _0x16e66e=['_apiUrl','https://ai.cke-cs.com/v1','_handleError','callCustomReview','excludeEmpty','read','DELETE','/files/','deleteConversation','text','_sendApiRequest','/web-resources/','translate','314188GTqywL','isPremiumPlugin','init','/actions/system/','GET','token','signal','/files','fix-grammar','deleteFile','/documents/','reset','value','_decoder','222820VLRzJR','/calls','then','releaseLock','/reviews/custom/calls','limit','fetchConversation','append','/conversations/','MAKE_TONE_FORMAL','MAKE_LONGER','data','executeCustomAction','getModels','attributes','deleteDocument','toUpperCase','make-longer','locale','context','application/json','name','/actions/custom/calls','144FUKvZv','search','ai-request-aborted','PATCH','AIConnector','/conversations?','FIX_GRAMMAR','/documents','fetchDocument','18tJfFTM','IMPROVE_WRITING','feed','100','length','config','34895pbZBLp','json','CloudServices','group','112943YSUgFl','POST','Bearer\x20','keys','411873WaUuXW','request','AI_MODEL_DESCRIPTION_','toString','101088CFbFxe','map','startConversation','1755360jMtoSg','getReader','updateConversation','_getStreamReader','uploadDocument','fetchConversationMessages','uploadUrl','true','catch','parse','/conversations','AbortError','continue','make-shorter','fetchConversations','TRANSLATE','make-tone-casual','requires','ai.serviceUrl','items','_token','stringify','executeAction','define','pluginName','MAKE_SHORTER','/messages','get','queryAssistant','abortController','decode','CONTINUE','Content-Type','improve-writing','file','make-tone-formal','/web-resources','ai-request-failed','/models/1','body','uploadFile','callSystemReview','push','deleteWebResource','isOfficialPlugin','plugins','MAKE_TONE_CASUAL','ai-missing-token','/reviews/system/'];_0xbc65=function(){return _0x16e66e;};return _0xbc65();}import{createParser as _0xe112dd}from'eventsource-parser';import{ContextPlugin as _0x592c6b}from'ckeditor5/src/core.js';import{CKEditorError as _0x1c55d3}from'ckeditor5/src/utils.js';import{getTranslation as _0x18b5d0}from'./utils/common-translations.js';function _0x4319(_0x188784,_0x447038){const _0xbc6538=_0xbc65();return _0x4319=function(_0x431927,_0x1cd409){_0x431927=_0x431927-0x85;let _0x17d720=_0xbc6538[_0x431927];return _0x17d720;},_0x4319(_0x188784,_0x447038);}export var AIActionsNames;!function(_0x3002af){const _0x46e64a=_0x4319;_0x3002af[_0x46e64a(0x103)]=_0x46e64a(0xf0),_0x3002af[_0x46e64a(0xcc)]=_0x46e64a(0xa9),_0x3002af[_0x46e64a(0xd0)]=_0x46e64a(0x105),_0x3002af[_0x46e64a(0xb9)]=_0x46e64a(0xc0),_0x3002af[_0x46e64a(0xfd)]=_0x46e64a(0xf1),_0x3002af[_0x46e64a(0x91)]=_0x46e64a(0xf4),_0x3002af[_0x46e64a(0xb8)]=_0x46e64a(0x86),_0x3002af[_0x46e64a(0xf3)]=_0x46e64a(0xa0);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x592c6b{[_0x459fb7(0x94)];[_0x459fb7(0xf8)];[_0x459fb7(0xae)];static get[_0x459fb7(0xf5)](){const _0x12a2de=_0x459fb7;return[_0x12a2de(0xd7)];}static get[_0x459fb7(0xfc)](){const _0x435efd=_0x459fb7;return _0x435efd(0xca);}static get[_0x459fb7(0x8f)](){return!0x0;}static get[_0x459fb7(0xa2)](){return!0x0;}constructor(_0x574ab3){const _0x192a39=_0x459fb7;super(_0x574ab3),this[_0x192a39(0xc2)][_0x192a39(0xd4)][_0x192a39(0xfb)](_0x192a39(0xf6),_0x192a39(0x95)),this[_0x192a39(0x94)]=this[_0x192a39(0xc2)][_0x192a39(0xd4)][_0x192a39(0xff)](_0x192a39(0xf6)),this[_0x192a39(0xf8)]=null,this[_0x192a39(0xae)]=new TextDecoder();}[_0x459fb7(0xa3)](){const _0x3865b0=_0x459fb7,_0x44eb74=this[_0x3865b0(0xc2)][_0x3865b0(0x90)][_0x3865b0(0xff)](_0x3865b0(0xd7));if(!_0x44eb74[_0x3865b0(0xa6)])throw new _0x1c55d3(_0x3865b0(0x92),this);this[_0x3865b0(0xf8)]=_0x44eb74[_0x3865b0(0xa6)];}[_0x459fb7(0xe3)](_0x3ac4f7,_0x423326){const _0x326772=_0x459fb7,_0xa0a6a2=this[_0x326772(0x9e)](_0x326772(0xee),_0x326772(0xda),{'id':_0x3ac4f7,'group':_0x423326});return{'getConversation':async()=>(await _0xa0a6a2[_0x326772(0xde)])[_0x326772(0xd6)](),'abortController':_0xa0a6a2[_0x326772(0x101)]};}[_0x459fb7(0x100)]({message:_0x53e9a2,conversationId:_0x3f40ec,parts:_0x4c6a77,capabilities:_0x1699d3,model:_0x2ed73f,quickActionData:_0x3f6a93}){const _0x302499=_0x459fb7,_0x59fd03={..._0x3f6a93&&{'quickActionData':_0x3f6a93}},_0x5afd03={'prompt':_0x53e9a2,'content':_0x4c6a77,'model':_0x2ed73f,..._0x1699d3&&{'capabilities':_0x1699d3},...Object[_0x302499(0xdc)](_0x59fd03)[_0x302499(0xd3)]>0x0&&{'attributes':_0x59fd03}},_0x2678b9=this[_0x302499(0x9e)](_0x302499(0xb7)+_0x3f40ec+_0x302499(0xfe),_0x302499(0xda),_0x5afd03);return{'getStream':async()=>{const _0x31d622=_0x302499,_0x3b256e=(await _0x2678b9[_0x31d622(0xde)])[_0x31d622(0x8a)];return this[_0x31d622(0xe7)](_0x3b256e);},'abortController':_0x2678b9[_0x302499(0x101)]};}[_0x459fb7(0xbb)]({content:_0x57b5f0,message:_0x41db99,model:_0x59dbbb,outputFormat:_0x5db397}){const _0x35e7f8=_0x459fb7,_0x44186e={'content':[{'type':_0x35e7f8(0x9d),'content':_0x57b5f0}],'prompt':_0x41db99,'model':_0x59dbbb,'outputFormat':_0x5db397},_0xb77fa3=this[_0x35e7f8(0x9e)](_0x35e7f8(0xc5),_0x35e7f8(0xda),_0x44186e);return{'getStream':async()=>{const _0x12f4f5=_0x35e7f8,_0x223aba=(await _0xb77fa3[_0x12f4f5(0xde)])[_0x12f4f5(0x8a)];return this[_0x12f4f5(0xe7)](_0x223aba);},'abortController':_0xb77fa3[_0x35e7f8(0x101)]};}[_0x459fb7(0xfa)]({actionName:_0x46c1c9,content:_0x357fa8,args:_0x9db0fe}){const _0x2b6c48=_0x459fb7,_0x3bb0eb={'content':[{'type':_0x2b6c48(0x9d),'content':_0x357fa8}],'args':_0x9db0fe},_0x2fb6c3=this[_0x2b6c48(0x9e)](_0x2b6c48(0xa4)+_0x46c1c9+_0x2b6c48(0xb0),_0x2b6c48(0xda),_0x3bb0eb);return{'getStream':async()=>{const _0x8736d9=_0x2b6c48,_0x26395f=(await _0x2fb6c3[_0x8736d9(0xde)])[_0x8736d9(0x8a)];return this[_0x8736d9(0xe7)](_0x26395f);},'abortController':_0x2fb6c3[_0x2b6c48(0x101)]};}[_0x459fb7(0x8b)](_0x2f12ad,_0x2ae09f,_0x375e01){const _0x59a687=_0x459fb7,_0x276bb0=new FormData();_0x276bb0[_0x59a687(0xb6)](_0x59a687(0x85),_0x2ae09f,_0x2ae09f[_0x59a687(0xc4)]),_0x375e01&&_0x276bb0[_0x59a687(0xb6)](_0x59a687(0xbd),JSON[_0x59a687(0xf9)](_0x375e01));const _0x7fc959=this[_0x59a687(0x9e)](_0x59a687(0xb7)+_0x2f12ad+_0x59a687(0xa8),_0x59a687(0xda),_0x276bb0);return{'getId':async()=>(await _0x7fc959[_0x59a687(0xde)])[_0x59a687(0xd6)](),'abortController':_0x7fc959[_0x59a687(0x101)]};}[_0x459fb7(0xce)](_0x38db85,_0x8ae230){const _0x23e3f3=_0x459fb7,_0x28792d=this[_0x23e3f3(0x9e)](_0x23e3f3(0xb7)+_0x38db85+_0x23e3f3(0xab)+_0x8ae230,_0x23e3f3(0xa5));return{'getDocument':async()=>(await _0x28792d[_0x23e3f3(0xde)])[_0x23e3f3(0xd6)](),'abortController':_0x28792d[_0x23e3f3(0x101)]};}[_0x459fb7(0xe8)](_0x5cc0a0,_0x503521,_0x5b84dd){const _0x403209=_0x459fb7,_0x5e6932={'content':_0x503521};_0x5b84dd&&(_0x5e6932[_0x403209(0xbd)]=_0x5b84dd);const _0x190ad7=this[_0x403209(0x9e)](_0x403209(0xb7)+_0x5cc0a0+_0x403209(0xcd),_0x403209(0xda),_0x5e6932);return{'getId':async()=>(await _0x190ad7[_0x403209(0xde)])[_0x403209(0xd6)](),'abortController':_0x190ad7[_0x403209(0x101)]};}[_0x459fb7(0xf2)](_0x8f9c10,_0x55f268){const _0x2f1d81=_0x459fb7,_0x1b9690=new URLSearchParams();_0x1b9690[_0x2f1d81(0xb6)](_0x2f1d81(0x98),_0x2f1d81(0xeb)),_0x1b9690[_0x2f1d81(0xb6)](_0x2f1d81(0xb4),_0x2f1d81(0xd2)),_0x1b9690[_0x2f1d81(0xb6)](_0x2f1d81(0xd8),_0x8f9c10),_0x55f268&&_0x1b9690[_0x2f1d81(0xb6)](_0x2f1d81(0xc7),_0x55f268);const _0xd78160=this[_0x2f1d81(0x9e)](_0x2f1d81(0xcb)+_0x1b9690[_0x2f1d81(0xe0)](),_0x2f1d81(0xa5));return{'getConversations':async()=>{const _0x1c0c30=_0x2f1d81,_0x170205=await _0xd78160[_0x1c0c30(0xde)];return(await _0x170205[_0x1c0c30(0xd6)]())[_0x1c0c30(0xf7)];},'abortController':_0xd78160[_0x2f1d81(0x101)]};}[_0x459fb7(0x9c)](_0x31ca34){const _0x257f32=_0x459fb7,_0xbe2ce7=this[_0x257f32(0x9e)](_0x257f32(0xb7)+_0x31ca34,_0x257f32(0x9a));return{'execute':async()=>{const _0x5ab867=_0x257f32;await _0xbe2ce7[_0x5ab867(0xde)];},'abortController':_0xbe2ce7[_0x257f32(0x101)]};}[_0x459fb7(0xe6)](_0x3009b0,_0x169690){const _0x10a994=_0x459fb7,_0xd85fd9=this[_0x10a994(0x9e)](_0x10a994(0xb7)+_0x3009b0,_0x10a994(0xc9),_0x169690);return{'getResult':async()=>(await _0xd85fd9[_0x10a994(0xde)],_0x169690),'abortController':_0xd85fd9[_0x10a994(0x101)]};}[_0x459fb7(0xb5)](_0x471d1e){const _0x3b1f35=_0x459fb7,_0x489b45=this[_0x3b1f35(0x9e)](_0x3b1f35(0xb7)+_0x471d1e,_0x3b1f35(0xa5));return{'getConversation':async()=>(await _0x489b45[_0x3b1f35(0xde)])[_0x3b1f35(0xd6)](),'abortController':_0x489b45[_0x3b1f35(0x101)]};}[_0x459fb7(0xe9)](_0x359426){const _0x2be1ca=_0x459fb7,_0x4ef1c9=this[_0x2be1ca(0x9e)](_0x2be1ca(0xb7)+_0x359426+_0x2be1ca(0xfe),_0x2be1ca(0xa5));return{'getMessages':async()=>{const _0x5f0fa0=_0x2be1ca,_0x33bf90=await _0x4ef1c9[_0x5f0fa0(0xde)];return(await _0x33bf90[_0x5f0fa0(0xd6)]())[_0x5f0fa0(0xf7)];},'abortController':_0x4ef1c9[_0x2be1ca(0x101)]};}[_0x459fb7(0xea)](_0x3f4c52,_0x33e928,_0x31f8cf){const _0x3db686=_0x459fb7,_0x164e97=this[_0x3db686(0x9e)](_0x3db686(0xb7)+_0x3f4c52+_0x3db686(0x87),_0x3db686(0xda),{'url':_0x33e928,'attributes':_0x31f8cf});return{'getId':async()=>(await _0x164e97[_0x3db686(0xde)])[_0x3db686(0xd6)](),'abortController':_0x164e97[_0x3db686(0x101)]};}[_0x459fb7(0xbc)](){const _0x83e14d=_0x459fb7,_0x329da7=this[_0x83e14d(0x9e)](_0x83e14d(0x89),_0x83e14d(0xa5));return{'list':async()=>{const _0x585ccc=_0x83e14d,_0x3fbbea=await(await _0x329da7[_0x585ccc(0xde)])[_0x585ccc(0xd6)](),_0x459de3=_0x3fbbea[_0x585ccc(0xf7)][_0x585ccc(0xe2)](_0x4e656a=>({..._0x4e656a,'description':_0x18b5d0(this[_0x585ccc(0xc2)][_0x585ccc(0xc1)],_0x585ccc(0xdf)+_0x4e656a['id'][_0x585ccc(0xbf)]())}));return{..._0x3fbbea,'items':_0x459de3};},'abortController':_0x329da7[_0x83e14d(0x101)]};}[_0x459fb7(0xaa)](_0x456bba,_0x204580){const _0x361fb2=_0x459fb7,_0xeb8da7=this[_0x361fb2(0x9e)](_0x361fb2(0xb7)+_0x456bba+_0x361fb2(0x9b)+_0x204580,_0x361fb2(0x9a));return{'execute':async()=>{const _0x5c1d57=_0x361fb2;await _0xeb8da7[_0x5c1d57(0xde)];},'abortController':_0xeb8da7[_0x361fb2(0x101)]};}[_0x459fb7(0xbe)](_0x4abea5,_0x44fbf0){const _0x987f3d=_0x459fb7,_0x4958e3=this[_0x987f3d(0x9e)](_0x987f3d(0xb7)+_0x4abea5+_0x987f3d(0xab)+_0x44fbf0,_0x987f3d(0x9a));return{'execute':async()=>{const _0x3ea898=_0x987f3d;await _0x4958e3[_0x3ea898(0xde)];},'abortController':_0x4958e3[_0x987f3d(0x101)]};}[_0x459fb7(0x8e)](_0x4eefaa,_0x1e2062){const _0x38c70e=_0x459fb7,_0x4bda04=this[_0x38c70e(0x9e)](_0x38c70e(0xb7)+_0x4eefaa+_0x38c70e(0x9f)+_0x1e2062,_0x38c70e(0x9a));return{'execute':async()=>{const _0x2f688b=_0x38c70e;await _0x4bda04[_0x2f688b(0xde)];},'abortController':_0x4bda04[_0x38c70e(0x101)]};}[_0x459fb7(0x8c)]({reviewName:_0x105c98,content:_0x5741a2,args:_0x1c7416}){const _0x52a84d=_0x459fb7,_0x330b1e=this[_0x52a84d(0x9e)](_0x52a84d(0x93)+_0x105c98+_0x52a84d(0xb0),_0x52a84d(0xda),{'content':[{'type':_0x52a84d(0x9d),'content':_0x5741a2}],'args':_0x1c7416});return{'getStream':async()=>{const _0x19a726=_0x52a84d,_0x4c8103=(await _0x330b1e[_0x19a726(0xde)])[_0x19a726(0x8a)];return this[_0x19a726(0xe7)](_0x4c8103);},'abortController':_0x330b1e[_0x52a84d(0x101)]};}[_0x459fb7(0x97)]({content:_0x1563f8,prompt:_0xa98af1,model:_0x4cf61f}){const _0x308104=_0x459fb7,_0x4cb633=this[_0x308104(0x9e)](_0x308104(0xb3),_0x308104(0xda),{'content':[{'type':_0x308104(0x9d),'content':_0x1563f8}],'prompt':_0xa98af1,'model':_0x4cf61f});return{'getStream':async()=>{const _0x55cf29=_0x308104,_0x47fba7=(await _0x4cb633[_0x55cf29(0xde)])[_0x55cf29(0x8a)];return this[_0x55cf29(0xe7)](_0x47fba7);},'abortController':_0x4cb633[_0x308104(0x101)]};}[_0x459fb7(0x9e)](_0x35d595,_0x560d08,_0x590055){const _0x2da7e3=_0x459fb7,_0x43676c=new AbortController(),_0x4cb035=_0x590055 instanceof FormData,_0x303677={'Authorization':_0x2da7e3(0xdb)+this[_0x2da7e3(0xf8)]?.[_0x2da7e3(0xad)]};_0x590055&&!_0x4cb035&&(_0x303677[_0x2da7e3(0x104)]=_0x2da7e3(0xc3));const _0x1fdfa7={'method':_0x560d08,'headers':_0x303677,'signal':_0x43676c[_0x2da7e3(0xa7)]};return _0x590055&&(_0x1fdfa7[_0x2da7e3(0x8a)]=_0x4cb035?_0x590055:JSON[_0x2da7e3(0xf9)](_0x590055)),{'request':fetch(''+this[_0x2da7e3(0x94)]+_0x35d595,_0x1fdfa7)[_0x2da7e3(0xec)](_0x1cf162=>{const _0x22d2c6=_0x2da7e3;this[_0x22d2c6(0x96)](_0x1cf162);})[_0x2da7e3(0xb1)](_0x50e331=>{const _0x3331b3=_0x2da7e3;if(!_0x50e331['ok'])throw new _0x1c55d3(_0x3331b3(0x88),this);return _0x50e331;}),'abortController':_0x43676c};}async*[_0x459fb7(0xe7)](_0x530885){const _0xdc66e5=_0x459fb7,_0x40252b=[],_0xdc4132=_0x530885[_0xdc66e5(0xe5)](),_0xa27458=_0xe112dd({'onError':_0x5f56ac=>{const _0x28946b=_0xdc66e5;this[_0x28946b(0x96)](_0x5f56ac);},'onEvent':_0x15d52d=>{const _0x33962d=_0xdc66e5;_0x15d52d[_0x33962d(0xba)]=JSON[_0x33962d(0xed)](_0x15d52d[_0x33962d(0xba)]),_0x40252b[_0x33962d(0x8d)](_0x15d52d);}});try{let _0x1fe797=!0x1;for(;!_0x1fe797;){const {done:_0x44a319,value:_0x1e4669}=await _0xdc4132[_0xdc66e5(0x99)]();_0x44a319&&(_0x1fe797=!0x0),_0xa27458[_0xdc66e5(0xd1)](this[_0xdc66e5(0xae)][_0xdc66e5(0x102)](_0x1e4669,{'stream':!0x0})),yield*_0x40252b,_0x40252b[_0xdc66e5(0xd3)]=0x0;}}catch(_0x34a9e4){this[_0xdc66e5(0x96)](_0x34a9e4);}finally{_0xdc4132[_0xdc66e5(0xb2)](),_0xa27458[_0xdc66e5(0xac)]();}}[_0x459fb7(0x96)](_0x5191ed){const _0x101b6a=_0x459fb7;if(_0x5191ed instanceof _0x1c55d3)throw _0x5191ed;if(_0x5191ed instanceof Error&&_0x101b6a(0xef)===_0x5191ed[_0x101b6a(0xc4)])throw new _0x1c55d3(_0x101b6a(0xc8),this,{'originalError':_0x5191ed});throw new _0x1c55d3(_0x101b6a(0x88),this,{'originalError':_0x5191ed});}}
23
+ function _0x1b07(){const _0x5c6804=['items','decode','reset','plugins','isOfficialPlugin','3lBuUXq','init','getReader','requires','startConversation','length','PATCH','keys','request','deleteWebResource','text','MAKE_TONE_CASUAL','deleteDocument','CloudServices','executeCustomAction','/actions/system/','make-tone-casual','https://ai.cke-cs.com/v1','Content-Type','fetchDocument','605oUSljN','/conversations/','file','abortController','limit','name','TRANSLATE','DELETE','MAKE_LONGER','updateConversation','7tQJXbh','append','/reviews/system/','parse','executeAction','/web-resources','ai-request-aborted','/calls','FIX_GRAMMAR','fix-grammar','read','json','uploadUrl','410416pArroI','753530niHGMN','make-longer','feed','get','/reviews/custom/calls','_getStreamReader','continue','deleteConversation','MAKE_SHORTER','push','callCustomReview','callSystemReview','/actions/custom/calls','GET','ai-missing-token','_handleError','body','AIConnector','CONTINUE','MAKE_TONE_FORMAL','signal','token','translate','releaseLock','/web-resources/','ai.serviceUrl','stringify','IMPROVE_WRITING','true','attributes','AbortError','excludeEmpty','/documents','queryAssistant','/conversations?','pluginName','map','search','isPremiumPlugin','then','value','100','getModels','_apiUrl','application/json','/files/','toString','deleteFile','770124nkMvoJ','group','uploadFile','_decoder','4191402cHuSGT','Bearer\x20','make-tone-formal','/documents/','POST','/messages','toUpperCase','fetchConversations','context','uploadDocument','_token','28916jQlrJw','config','ai-request-failed','fetchConversation','improve-writing','define','make-shorter','catch','AI_MODEL_DESCRIPTION_','512752VaZpeS','_sendApiRequest','data','/files','fetchConversationMessages','/models/1','2334249SaDvBY','locale','/conversations'];_0x1b07=function(){return _0x5c6804;};return _0x1b07();}function _0x5966(_0x2d6a6c,_0x1c8d21){const _0x1b076c=_0x1b07();return _0x5966=function(_0x5966a5,_0x34d15c){_0x5966a5=_0x5966a5-0x1d8;let _0x14a09e=_0x1b076c[_0x5966a5];return _0x14a09e;},_0x5966(_0x2d6a6c,_0x1c8d21);}const _0xbfed2c=_0x5966;(function(_0x2ac410,_0x169fab){const _0x3a325a=_0x5966,_0x48df64=_0x2ac410();while(!![]){try{const _0x8ce38d=parseInt(_0x3a325a(0x1db))/0x1*(parseInt(_0x3a325a(0x24f))/0x2)+-parseInt(_0x3a325a(0x237))/0x3+parseInt(_0x3a325a(0x246))/0x4*(-parseInt(_0x3a325a(0x1ef))/0x5)+parseInt(_0x3a325a(0x23b))/0x6+-parseInt(_0x3a325a(0x1f9))/0x7*(parseInt(_0x3a325a(0x206))/0x8)+parseInt(_0x3a325a(0x255))/0x9+-parseInt(_0x3a325a(0x207))/0xa;if(_0x8ce38d===_0x169fab)break;else _0x48df64['push'](_0x48df64['shift']());}catch(_0x1b0807){_0x48df64['push'](_0x48df64['shift']());}}}(_0x1b07,0x727f8));import{createParser as _0x2b4ae0}from'eventsource-parser';import{ContextPlugin as _0x34285c}from'ckeditor5/src/core.js';import{CKEditorError as _0x54396f}from'ckeditor5/src/utils.js';import{getTranslation as _0x14d667}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x1b0910){const _0x341f9c=_0x5966;_0x1b0910[_0x341f9c(0x219)]=_0x341f9c(0x20d),_0x1b0910[_0x341f9c(0x201)]=_0x341f9c(0x202),_0x1b0910[_0x341f9c(0x222)]=_0x341f9c(0x24a),_0x1b0910[_0x341f9c(0x1f7)]=_0x341f9c(0x208),_0x1b0910[_0x341f9c(0x20f)]=_0x341f9c(0x24c),_0x1b0910[_0x341f9c(0x1e6)]=_0x341f9c(0x1eb),_0x1b0910[_0x341f9c(0x21a)]=_0x341f9c(0x23d),_0x1b0910[_0x341f9c(0x1f5)]=_0x341f9c(0x21d);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x34285c{[_0xbfed2c(0x232)];[_0xbfed2c(0x245)];[_0xbfed2c(0x23a)];static get[_0xbfed2c(0x1de)](){const _0x41b529=_0xbfed2c;return[_0x41b529(0x1e8)];}static get[_0xbfed2c(0x22a)](){const _0x4b5733=_0xbfed2c;return _0x4b5733(0x218);}static get[_0xbfed2c(0x1da)](){return!0x0;}static get[_0xbfed2c(0x22d)](){return!0x0;}constructor(_0x3954f7){const _0x451728=_0xbfed2c;super(_0x3954f7),this[_0x451728(0x243)][_0x451728(0x247)][_0x451728(0x24b)](_0x451728(0x220),_0x451728(0x1ec)),this[_0x451728(0x232)]=this[_0x451728(0x243)][_0x451728(0x247)][_0x451728(0x20a)](_0x451728(0x220)),this[_0x451728(0x245)]=null,this[_0x451728(0x23a)]=new TextDecoder();}[_0xbfed2c(0x1dc)](){const _0x5ebf46=_0xbfed2c,_0x810ba3=this[_0x5ebf46(0x243)][_0x5ebf46(0x1d9)][_0x5ebf46(0x20a)](_0x5ebf46(0x1e8));if(!_0x810ba3[_0x5ebf46(0x21c)])throw new _0x54396f(_0x5ebf46(0x215),this);this[_0x5ebf46(0x245)]=_0x810ba3[_0x5ebf46(0x21c)];}[_0xbfed2c(0x1df)](_0x13ee20,_0x3689a2){const _0xc55f82=_0xbfed2c,_0xea5032=this[_0xc55f82(0x250)](_0xc55f82(0x257),_0xc55f82(0x23f),{'id':_0x13ee20,'group':_0x3689a2});return{'getConversation':async()=>(await _0xea5032[_0xc55f82(0x1e3)])[_0xc55f82(0x204)](),'abortController':_0xea5032[_0xc55f82(0x1f2)]};}[_0xbfed2c(0x228)]({message:_0x18d756,conversationId:_0x540422,parts:_0x19d0a2,capabilities:_0x32f5ff,model:_0x46ca61,quickActionData:_0x3a88c2}){const _0x284f64=_0xbfed2c,_0x5bbf05={..._0x3a88c2&&{'quickActionData':_0x3a88c2}},_0x2828a9={'prompt':_0x18d756,'content':_0x19d0a2,'model':_0x46ca61,..._0x32f5ff&&{'capabilities':_0x32f5ff},...Object[_0x284f64(0x1e2)](_0x5bbf05)[_0x284f64(0x1e0)]>0x0&&{'attributes':_0x5bbf05}},_0x4648e9=this[_0x284f64(0x250)](_0x284f64(0x1f0)+_0x540422+_0x284f64(0x240),_0x284f64(0x23f),_0x2828a9);return{'getStream':async()=>{const _0x457c6c=_0x284f64,_0x4d190c=(await _0x4648e9[_0x457c6c(0x1e3)])[_0x457c6c(0x217)];return this[_0x457c6c(0x20c)](_0x4d190c);},'abortController':_0x4648e9[_0x284f64(0x1f2)]};}[_0xbfed2c(0x1e9)]({content:_0x251c69,message:_0x4a983a,model:_0x3ea799,outputFormat:_0x5e6f94}){const _0x42796f=_0xbfed2c,_0x893382={'content':[{'type':_0x42796f(0x1e5),'content':_0x251c69}],'prompt':_0x4a983a,'model':_0x3ea799,'outputFormat':_0x5e6f94},_0x568338=this[_0x42796f(0x250)](_0x42796f(0x213),_0x42796f(0x23f),_0x893382);return{'getStream':async()=>{const _0x40d1d9=_0x42796f,_0x145354=(await _0x568338[_0x40d1d9(0x1e3)])[_0x40d1d9(0x217)];return this[_0x40d1d9(0x20c)](_0x145354);},'abortController':_0x568338[_0x42796f(0x1f2)]};}[_0xbfed2c(0x1fd)]({actionName:_0x3ce5ce,content:_0x37b99d,args:_0x4d41bc}){const _0x11c185=_0xbfed2c,_0x3bf3be={'content':[{'type':_0x11c185(0x1e5),'content':_0x37b99d}],'args':_0x4d41bc},_0x383bbb=this[_0x11c185(0x250)](_0x11c185(0x1ea)+_0x3ce5ce+_0x11c185(0x200),_0x11c185(0x23f),_0x3bf3be);return{'getStream':async()=>{const _0x17323f=_0x11c185,_0x50b043=(await _0x383bbb[_0x17323f(0x1e3)])[_0x17323f(0x217)];return this[_0x17323f(0x20c)](_0x50b043);},'abortController':_0x383bbb[_0x11c185(0x1f2)]};}[_0xbfed2c(0x239)](_0x297011,_0x9e5a3c,_0x2c4798){const _0xf4d4e=_0xbfed2c,_0x35c973=new FormData();_0x35c973[_0xf4d4e(0x1fa)](_0xf4d4e(0x1f1),_0x9e5a3c,_0x9e5a3c[_0xf4d4e(0x1f4)]),_0x2c4798&&_0x35c973[_0xf4d4e(0x1fa)](_0xf4d4e(0x224),JSON[_0xf4d4e(0x221)](_0x2c4798));const _0x32724f=this[_0xf4d4e(0x250)](_0xf4d4e(0x1f0)+_0x297011+_0xf4d4e(0x252),_0xf4d4e(0x23f),_0x35c973);return{'getId':async()=>(await _0x32724f[_0xf4d4e(0x1e3)])[_0xf4d4e(0x204)](),'abortController':_0x32724f[_0xf4d4e(0x1f2)]};}[_0xbfed2c(0x1ee)](_0x274b21,_0x282c9e){const _0x3e3e2e=_0xbfed2c,_0x4ab415=this[_0x3e3e2e(0x250)](_0x3e3e2e(0x1f0)+_0x274b21+_0x3e3e2e(0x23e)+_0x282c9e,_0x3e3e2e(0x214));return{'getDocument':async()=>(await _0x4ab415[_0x3e3e2e(0x1e3)])[_0x3e3e2e(0x204)](),'abortController':_0x4ab415[_0x3e3e2e(0x1f2)]};}[_0xbfed2c(0x244)](_0x3caeb0,_0x573936,_0x28ce1e){const _0x13127f=_0xbfed2c,_0x133a4b={'content':_0x573936};_0x28ce1e&&(_0x133a4b[_0x13127f(0x224)]=_0x28ce1e);const _0x1f12fe=this[_0x13127f(0x250)](_0x13127f(0x1f0)+_0x3caeb0+_0x13127f(0x227),_0x13127f(0x23f),_0x133a4b);return{'getId':async()=>(await _0x1f12fe[_0x13127f(0x1e3)])[_0x13127f(0x204)](),'abortController':_0x1f12fe[_0x13127f(0x1f2)]};}[_0xbfed2c(0x242)](_0x34fd57,_0x17ae2b){const _0x5be181=_0xbfed2c,_0x580ab5=new URLSearchParams();_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x226),_0x5be181(0x223)),_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x1f3),_0x5be181(0x230)),_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x238),_0x34fd57),_0x17ae2b&&_0x580ab5[_0x5be181(0x1fa)](_0x5be181(0x22c),_0x17ae2b);const _0x3b0208=this[_0x5be181(0x250)](_0x5be181(0x229)+_0x580ab5[_0x5be181(0x235)](),_0x5be181(0x214));return{'getConversations':async()=>{const _0x3da9bd=_0x5be181,_0xbfa2d3=await _0x3b0208[_0x3da9bd(0x1e3)];return(await _0xbfa2d3[_0x3da9bd(0x204)]())[_0x3da9bd(0x258)];},'abortController':_0x3b0208[_0x5be181(0x1f2)]};}[_0xbfed2c(0x20e)](_0x2dce0c){const _0x424075=_0xbfed2c,_0x2dac65=this[_0x424075(0x250)](_0x424075(0x1f0)+_0x2dce0c,_0x424075(0x1f6));return{'execute':async()=>{const _0x21ed6e=_0x424075;await _0x2dac65[_0x21ed6e(0x1e3)];},'abortController':_0x2dac65[_0x424075(0x1f2)]};}[_0xbfed2c(0x1f8)](_0x2ecd32,_0x1c39cf){const _0x4590cf=_0xbfed2c,_0x5c9d46=this[_0x4590cf(0x250)](_0x4590cf(0x1f0)+_0x2ecd32,_0x4590cf(0x1e1),_0x1c39cf);return{'getResult':async()=>(await _0x5c9d46[_0x4590cf(0x1e3)],_0x1c39cf),'abortController':_0x5c9d46[_0x4590cf(0x1f2)]};}[_0xbfed2c(0x249)](_0x1bb45f){const _0x49ad12=_0xbfed2c,_0x36184c=this[_0x49ad12(0x250)](_0x49ad12(0x1f0)+_0x1bb45f,_0x49ad12(0x214));return{'getConversation':async()=>(await _0x36184c[_0x49ad12(0x1e3)])[_0x49ad12(0x204)](),'abortController':_0x36184c[_0x49ad12(0x1f2)]};}[_0xbfed2c(0x253)](_0x590d30){const _0x27dc36=_0xbfed2c,_0x5364aa=this[_0x27dc36(0x250)](_0x27dc36(0x1f0)+_0x590d30+_0x27dc36(0x240),_0x27dc36(0x214));return{'getMessages':async()=>{const _0x275728=_0x27dc36,_0x4325f0=await _0x5364aa[_0x275728(0x1e3)];return(await _0x4325f0[_0x275728(0x204)]())[_0x275728(0x258)];},'abortController':_0x5364aa[_0x27dc36(0x1f2)]};}[_0xbfed2c(0x205)](_0x543b6b,_0x162fab,_0x654c73){const _0x4fa045=_0xbfed2c,_0x5b7ffd=this[_0x4fa045(0x250)](_0x4fa045(0x1f0)+_0x543b6b+_0x4fa045(0x1fe),_0x4fa045(0x23f),{'url':_0x162fab,'attributes':_0x654c73});return{'getId':async()=>(await _0x5b7ffd[_0x4fa045(0x1e3)])[_0x4fa045(0x204)](),'abortController':_0x5b7ffd[_0x4fa045(0x1f2)]};}[_0xbfed2c(0x231)](){const _0x13258f=_0xbfed2c,_0x4d4cce=this[_0x13258f(0x250)](_0x13258f(0x254),_0x13258f(0x214));return{'list':async()=>{const _0x1843c7=_0x13258f,_0x412dfc=await(await _0x4d4cce[_0x1843c7(0x1e3)])[_0x1843c7(0x204)](),_0xa7eff9=_0x412dfc[_0x1843c7(0x258)][_0x1843c7(0x22b)](_0x41c681=>({..._0x41c681,'description':_0x14d667(this[_0x1843c7(0x243)][_0x1843c7(0x256)],_0x1843c7(0x24e)+_0x41c681['id'][_0x1843c7(0x241)]())}));return{..._0x412dfc,'items':_0xa7eff9};},'abortController':_0x4d4cce[_0x13258f(0x1f2)]};}[_0xbfed2c(0x236)](_0x5d500f,_0x4ed8bc){const _0x4d193d=_0xbfed2c,_0x17e743=this[_0x4d193d(0x250)](_0x4d193d(0x1f0)+_0x5d500f+_0x4d193d(0x234)+_0x4ed8bc,_0x4d193d(0x1f6));return{'execute':async()=>{const _0x3545cc=_0x4d193d;await _0x17e743[_0x3545cc(0x1e3)];},'abortController':_0x17e743[_0x4d193d(0x1f2)]};}[_0xbfed2c(0x1e7)](_0x48464a,_0x4ca9b8){const _0x4586c0=_0xbfed2c,_0x28716d=this[_0x4586c0(0x250)](_0x4586c0(0x1f0)+_0x48464a+_0x4586c0(0x23e)+_0x4ca9b8,_0x4586c0(0x1f6));return{'execute':async()=>{const _0x55dc4f=_0x4586c0;await _0x28716d[_0x55dc4f(0x1e3)];},'abortController':_0x28716d[_0x4586c0(0x1f2)]};}[_0xbfed2c(0x1e4)](_0x420a85,_0x2b757e){const _0x225d87=_0xbfed2c,_0x3c8c1=this[_0x225d87(0x250)](_0x225d87(0x1f0)+_0x420a85+_0x225d87(0x21f)+_0x2b757e,_0x225d87(0x1f6));return{'execute':async()=>{const _0x532881=_0x225d87;await _0x3c8c1[_0x532881(0x1e3)];},'abortController':_0x3c8c1[_0x225d87(0x1f2)]};}[_0xbfed2c(0x212)]({reviewName:_0x25106b,content:_0x252a2f,args:_0x34f6e1}){const _0x395f69=_0xbfed2c,_0x5050e2=this[_0x395f69(0x250)](_0x395f69(0x1fb)+_0x25106b+_0x395f69(0x200),_0x395f69(0x23f),{'content':[{'type':_0x395f69(0x1e5),'content':_0x252a2f}],'args':_0x34f6e1});return{'getStream':async()=>{const _0x1ae0a6=_0x395f69,_0x2160b9=(await _0x5050e2[_0x1ae0a6(0x1e3)])[_0x1ae0a6(0x217)];return this[_0x1ae0a6(0x20c)](_0x2160b9);},'abortController':_0x5050e2[_0x395f69(0x1f2)]};}[_0xbfed2c(0x211)]({content:_0x3883c5,prompt:_0x74f5bc,model:_0x154a38}){const _0x46cdae=_0xbfed2c,_0x15c9a5=this[_0x46cdae(0x250)](_0x46cdae(0x20b),_0x46cdae(0x23f),{'content':[{'type':_0x46cdae(0x1e5),'content':_0x3883c5}],'prompt':_0x74f5bc,'model':_0x154a38});return{'getStream':async()=>{const _0x313dc1=_0x46cdae,_0x367a32=(await _0x15c9a5[_0x313dc1(0x1e3)])[_0x313dc1(0x217)];return this[_0x313dc1(0x20c)](_0x367a32);},'abortController':_0x15c9a5[_0x46cdae(0x1f2)]};}[_0xbfed2c(0x250)](_0x32d092,_0x15c6fd,_0x25065e){const _0x5558af=_0xbfed2c,_0x64198d=new AbortController(),_0x248748=_0x25065e instanceof FormData,_0x3fac87={'Authorization':_0x5558af(0x23c)+this[_0x5558af(0x245)]?.[_0x5558af(0x22f)]};_0x25065e&&!_0x248748&&(_0x3fac87[_0x5558af(0x1ed)]=_0x5558af(0x233));const _0x447b8d={'method':_0x15c6fd,'headers':_0x3fac87,'signal':_0x64198d[_0x5558af(0x21b)]};return _0x25065e&&(_0x447b8d[_0x5558af(0x217)]=_0x248748?_0x25065e:JSON[_0x5558af(0x221)](_0x25065e)),{'request':fetch(''+this[_0x5558af(0x232)]+_0x32d092,_0x447b8d)[_0x5558af(0x24d)](_0x450253=>{const _0x35af5a=_0x5558af;this[_0x35af5a(0x216)](_0x450253);})[_0x5558af(0x22e)](_0x1bc10b=>{const _0x5f01e1=_0x5558af;if(!_0x1bc10b['ok'])throw new _0x54396f(_0x5f01e1(0x248),this);return _0x1bc10b;}),'abortController':_0x64198d};}async*[_0xbfed2c(0x20c)](_0x464190){const _0x4269dc=_0xbfed2c,_0xabdea2=[],_0xbd7d89=_0x464190[_0x4269dc(0x1dd)](),_0x3ca67b=_0x2b4ae0({'onError':_0xe9ce7e=>{const _0x573fbe=_0x4269dc;this[_0x573fbe(0x216)](_0xe9ce7e);},'onEvent':_0x4f4c4a=>{const _0x491a8c=_0x4269dc;_0x4f4c4a[_0x491a8c(0x251)]=JSON[_0x491a8c(0x1fc)](_0x4f4c4a[_0x491a8c(0x251)]),_0xabdea2[_0x491a8c(0x210)](_0x4f4c4a);}});try{let _0x2871cd=!0x1;for(;!_0x2871cd;){const {done:_0x2fc62a,value:_0x51db11}=await _0xbd7d89[_0x4269dc(0x203)]();_0x2fc62a&&(_0x2871cd=!0x0),_0x3ca67b[_0x4269dc(0x209)](this[_0x4269dc(0x23a)][_0x4269dc(0x259)](_0x51db11,{'stream':!0x0})),yield*_0xabdea2,_0xabdea2[_0x4269dc(0x1e0)]=0x0;}}catch(_0x9be64f){this[_0x4269dc(0x216)](_0x9be64f);}finally{_0xbd7d89[_0x4269dc(0x21e)](),_0x3ca67b[_0x4269dc(0x1d8)]();}}[_0xbfed2c(0x216)](_0x43530f){const _0x3be6c0=_0xbfed2c;if(_0x43530f instanceof _0x54396f)throw _0x43530f;if(_0x43530f instanceof Error&&_0x3be6c0(0x225)===_0x43530f[_0x3be6c0(0x1f4)])throw new _0x54396f(_0x3be6c0(0x1ff),this,{'originalError':_0x43530f});throw new _0x54396f(_0x3be6c0(0x248),this,{'originalError':_0x43530f});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x17b165=_0x1441;(function(_0x14c02e,_0x4db28e){const _0x4dde60=_0x1441,_0xc27acc=_0x14c02e();while(!![]){try{const _0x2c57a7=-parseInt(_0x4dde60(0x16a))/0x1*(-parseInt(_0x4dde60(0x173))/0x2)+-parseInt(_0x4dde60(0x127))/0x3+parseInt(_0x4dde60(0x176))/0x4*(-parseInt(_0x4dde60(0x15a))/0x5)+parseInt(_0x4dde60(0x121))/0x6+parseInt(_0x4dde60(0x139))/0x7*(parseInt(_0x4dde60(0x126))/0x8)+parseInt(_0x4dde60(0x169))/0x9*(-parseInt(_0x4dde60(0x164))/0xa)+parseInt(_0x4dde60(0x132))/0xb;if(_0x2c57a7===_0x4db28e)break;else _0xc27acc['push'](_0xc27acc['shift']());}catch(_0x498025){_0xc27acc['push'](_0xc27acc['shift']());}}}(_0x5a70,0x36f2c));import{ViewDowncastWriter as _0x948f68}from'ckeditor5/src/engine.js';function _0x1441(_0x2641db,_0x4f9cf5){const _0x5a7063=_0x5a70();return _0x1441=function(_0x1441a7,_0xa3e42a){_0x1441a7=_0x1441a7-0x121;let _0x4ca14b=_0x5a7063[_0x1441a7];return _0x4ca14b;},_0x1441(_0x2641db,_0x4f9cf5);}import{ContextPlugin as _0x31261d,Editor as _0x1b61eb}from'ckeditor5/src/core.js';import{uid as _0xdd21e3}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3954c4}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x17b165(0x12c);function _0x5a70(){const _0x7112a1=['_displayedFakeSelectionId','_sessionId','ck-fake-ai-selection','modelToViewWithIds','plugins','editingDowncast','substring','conversion','pluginName','hideFakeVisualSelection','indexOf','context','getRoot','fromCharCode','getLastMatchingPosition','getWalker','getChildren','getStart','data','ready','getMarkersGroup','isOfficialPlugin','processor','start','getSelectedContent',':end>','toView','sort','document','version','121285XrVeqY','removeAllRanges',':end></','getDocumentData','convertAiChatSelectionMarker','ck-ai-assistant-ui_theme','sessionId','get','_getMarkersInDocumentOrder','isBefore','10930TDvcUV','isContent','add','isAtEnd','toData','1251jAhkCj','25sfJNzb','schema','join','containerElement','ai-selection:','getSelectionText','model','getSelection','name','27914NfoykK','trim','showFakeVisualSelection','52mQTbKV','view','emptyElement','floor','afterInit','push','_displayedFakeSelectionLocked','addMarker','_nextDataId','_setDataIdsOnChildren','_integrateEditor','from','markerName','setAttribute','random',':start></','markers','has','end','editors','editing','208434GdFjmF','AIEditing','listenTo','data-id','createUIElement','2294384rFHkth','470025dEUAMx','dataDowncast','markerToHighlight','createRange','createRangeIn','ai-selection','removeMarker','change','RealTimeCollaborationClient','markerToElement','selection','1964039yfjDjo','$textProxy',':start>','length','for','element','isAfter','7PCVhZd','isOpening','isPremiumPlugin'];_0x5a70=function(){return _0x7112a1;};return _0x5a70();}export class AIEditing extends _0x31261d{[_0x17b165(0x13c)]=null;[_0x17b165(0x17c)]=!0x1;[_0x17b165(0x13d)];static get[_0x17b165(0x144)](){const _0x28bfa2=_0x17b165;return _0x28bfa2(0x122);}static get[_0x17b165(0x151)](){return!0x0;}static get[_0x17b165(0x13b)](){return!0x0;}get[_0x17b165(0x160)](){const _0x26d458=_0x17b165;if(!this[_0x26d458(0x13d)]){const _0x4f138f=_0x3954c4(this[_0x26d458(0x147)]),_0x2f7067=_0x4f138f[_0x26d458(0x140)][_0x26d458(0x187)](_0x26d458(0x12f))&&_0x4f138f[_0x26d458(0x140)][_0x26d458(0x161)](_0x26d458(0x12f))[_0x26d458(0x160)];this[_0x26d458(0x13d)]=_0x2f7067||_0xdd21e3();}return this[_0x26d458(0x13d)];}[_0x17b165(0x15d)](){const _0x58a0a1=_0x17b165,_0x2b6c1b=_0x3954c4(this[_0x58a0a1(0x147)]),_0x44abf0=_0x2b6c1b[_0x58a0a1(0x170)],_0x56bf7f=_0x2b6c1b[_0x58a0a1(0x14e)][_0x58a0a1(0x156)](_0x44abf0[_0x58a0a1(0x158)][_0x58a0a1(0x148)](),{'convertAiChatSelectionMarker':!0x0}),_0x9ef1b9=new _0x948f68(_0x2b6c1b[_0x58a0a1(0x18a)][_0x58a0a1(0x177)][_0x58a0a1(0x158)]);this[_0x58a0a1(0x17f)](_0x56bf7f,_0x9ef1b9);let _0x3a2318=_0x2b6c1b[_0x58a0a1(0x14e)][_0x58a0a1(0x152)][_0x58a0a1(0x168)](_0x56bf7f);const _0x272b0e=this[_0x58a0a1(0x162)](),_0x36c0c6=[];for(const _0x32b79c of _0x272b0e){const _0x4207d9='<'+_0x32b79c[_0x58a0a1(0x172)]+_0x58a0a1(0x185)+_0x32b79c[_0x58a0a1(0x172)]+_0x58a0a1(0x134),_0xdb91e8=_0x3a2318[_0x58a0a1(0x146)](_0x4207d9);_0x3a2318=_0x3a2318[_0x58a0a1(0x142)](0x0,_0xdb91e8)+_0x3a2318[_0x58a0a1(0x142)](_0xdb91e8+_0x4207d9[_0x58a0a1(0x135)]);const _0x41eafa='<'+_0x32b79c[_0x58a0a1(0x172)]+_0x58a0a1(0x15c)+_0x32b79c[_0x58a0a1(0x172)]+_0x58a0a1(0x155),_0x4e8104=_0x3a2318[_0x58a0a1(0x146)](_0x41eafa);_0x3a2318=_0x3a2318[_0x58a0a1(0x142)](0x0,_0x4e8104)+_0x3a2318[_0x58a0a1(0x142)](_0x4e8104+_0x41eafa[_0x58a0a1(0x135)]),_0x36c0c6[_0x58a0a1(0x17b)]({'markerName':_0x32b79c[_0x58a0a1(0x172)],'start':_0xdb91e8,'end':_0x4e8104,'htmlFragment':_0x3a2318[_0x58a0a1(0x142)](_0xdb91e8,_0x4e8104)});}return{'content':_0x3a2318,'version':_0x2b6c1b[_0x58a0a1(0x170)][_0x58a0a1(0x158)][_0x58a0a1(0x159)],'sessionId':this[_0x58a0a1(0x160)],'selections':_0x36c0c6};}async[_0x17b165(0x17a)](){const _0x137bc7=_0x17b165;this[_0x137bc7(0x147)]instanceof _0x1b61eb?this[_0x137bc7(0x180)](this[_0x137bc7(0x147)]):this[_0x137bc7(0x123)](this[_0x137bc7(0x147)][_0x137bc7(0x189)],_0x137bc7(0x166),(_0x131794,_0x141c5c)=>{const _0x22b7ef=_0x137bc7;_0x141c5c['on'](_0x22b7ef(0x14f),()=>{const _0x7c5bfe=_0x22b7ef;this[_0x7c5bfe(0x180)](_0x141c5c);});});}[_0x17b165(0x180)](_0x309eb6){const _0x1fc2a2=_0x17b165;_0x309eb6[_0x1fc2a2(0x143)][_0x1fc2a2(0x136)](_0x1fc2a2(0x141))[_0x1fc2a2(0x129)]({'model':_0x1fc2a2(0x12c),'view':{'classes':[_0x1fc2a2(0x13e),_0x1fc2a2(0x15f)],'priority':0xc}}),_0x309eb6[_0x1fc2a2(0x143)][_0x1fc2a2(0x136)](_0x1fc2a2(0x128))[_0x1fc2a2(0x130)]({'model':_0x1fc2a2(0x12c),'view':(_0x2c5c3d,{writer:_0x9487a9,options:_0x8ee690})=>_0x8ee690[_0x1fc2a2(0x15e)]?_0x9487a9[_0x1fc2a2(0x125)](_0x2c5c3d[_0x1fc2a2(0x182)]+':'+(_0x2c5c3d[_0x1fc2a2(0x13a)]?_0x1fc2a2(0x153):_0x1fc2a2(0x188))):null});}[_0x17b165(0x175)](_0x1de0d2,_0x42e17b,_0x13ac97=!0x1,_0x1e429e=!0x1){const _0x471c07=_0x17b165;if(this[_0x471c07(0x17c)]&&!_0x1e429e)return!0x1;this[_0x471c07(0x13c)]&&this[_0x471c07(0x145)](this[_0x471c07(0x13c)]),this[_0x471c07(0x13c)]=_0x42e17b,this[_0x471c07(0x17c)]=_0x13ac97;const _0x3ef8a9=_0x3954c4(this[_0x471c07(0x147)])[_0x471c07(0x170)];return _0x3ef8a9[_0x471c07(0x12e)](_0x2a0df3=>{const _0x505031=_0x471c07;let _0x4e8465=0x0;for(let _0x195de4 of _0x1de0d2){const _0x239535=_0x505031(0x16e)+_0x4e8465;if(_0x195de4[_0x505031(0x153)][_0x505031(0x167)]){const _0x22f78b=_0x195de4[_0x505031(0x153)][_0x505031(0x14a)](({item:_0x5d30a6})=>!_0x3ef8a9[_0x505031(0x16b)][_0x505031(0x165)](_0x5d30a6),{'boundaries':_0x195de4});_0x195de4=_0x2a0df3[_0x505031(0x12a)](_0x22f78b,_0x195de4[_0x505031(0x188)]);}_0x2a0df3[_0x505031(0x17d)](_0x239535,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x195de4}),_0x4e8465++;}}),window[_0x471c07(0x171)]()?.[_0x471c07(0x15b)](),!0x0;}[_0x17b165(0x145)](_0x5415f1){const _0x1170da=_0x17b165;if(this[_0x1170da(0x13c)]!=_0x5415f1)return!0x1;this[_0x1170da(0x13c)]=null,this[_0x1170da(0x17c)]=!0x1;const _0x3e4e61=_0x3954c4(this[_0x1170da(0x147)]),_0x6913ee=_0x3e4e61[_0x1170da(0x170)][_0x1170da(0x186)][_0x1170da(0x150)](_0x1170da(0x12c));return _0x3e4e61[_0x1170da(0x170)][_0x1170da(0x12e)](_0x3e154d=>{const _0x4f44bf=_0x1170da;for(const _0x73ca43 of _0x6913ee)_0x3e154d[_0x4f44bf(0x12d)](_0x73ca43);}),!0x0;}[_0x17b165(0x13f)](_0x1c5a31){const _0x538bfd=_0x17b165,_0x531e3e=_0x3954c4(this[_0x538bfd(0x147)]),_0x50cdac=_0x531e3e[_0x538bfd(0x14e)][_0x538bfd(0x156)](_0x1c5a31),_0x3e13ff=new _0x948f68(_0x531e3e[_0x538bfd(0x18a)][_0x538bfd(0x177)][_0x538bfd(0x158)]);return this[_0x538bfd(0x17f)](_0x50cdac,_0x3e13ff),_0x50cdac;}[_0x17b165(0x17f)](_0x3fc1fd,_0x54de74){const _0x390dd9=_0x17b165;let _0x5b321e=!0x1;const _0x4ebb7b=new Set();for(const _0x446457 of _0x3fc1fd[_0x390dd9(0x14c)]()){const _0x4e02f5=_0x446457['is'](_0x390dd9(0x178))||_0x446457['is'](_0x390dd9(0x16d));if(!_0x446457['is'](_0x390dd9(0x137)))continue;(this[_0x390dd9(0x17f)](_0x446457,_0x54de74)||_0x4e02f5)&&(_0x54de74[_0x390dd9(0x183)](_0x390dd9(0x124),this[_0x390dd9(0x17e)](_0x4ebb7b),_0x446457),_0x5b321e=!0x0);}return _0x5b321e;}[_0x17b165(0x17e)](_0x99d917){const _0x2c23b6=_0x17b165;let _0x448d16;do{_0x448d16='';for(let _0x2decff=0x0;_0x2decff<0x4;_0x2decff++)_0x448d16+=String[_0x2c23b6(0x149)](0x61+Math[_0x2c23b6(0x179)](0x1a*Math[_0x2c23b6(0x184)]()));}while(_0x99d917[_0x2c23b6(0x187)](_0x448d16));return _0x99d917[_0x2c23b6(0x166)](_0x448d16),_0x448d16;}[_0x17b165(0x16f)](){const _0x23bb50=_0x17b165,{model:_0x25e4b7}=_0x3954c4(this[_0x23bb50(0x147)]),_0x3a4443=_0x25e4b7[_0x23bb50(0x158)][_0x23bb50(0x131)],_0x3432cc=_0x25e4b7[_0x23bb50(0x154)](_0x3a4443),_0x41a1c8=[],_0xeea98c=_0x25e4b7[_0x23bb50(0x12b)](_0x3432cc)[_0x23bb50(0x14b)]();for(const {item:_0x2d4e85}of _0xeea98c)_0x2d4e85['is'](_0x23bb50(0x133))?_0x41a1c8[_0x23bb50(0x17b)](_0x2d4e85[_0x23bb50(0x14e)]):_0x2d4e85['is'](_0x23bb50(0x137))&&_0x41a1c8[_0x23bb50(0x135)]>0x0&&'\x20'!==_0x41a1c8[_0x41a1c8[_0x23bb50(0x135)]-0x1]&&_0x41a1c8[_0x23bb50(0x17b)]('\x20');return'\x22'+_0x41a1c8[_0x23bb50(0x16c)]('')[_0x23bb50(0x174)]()+'\x22';}[_0x17b165(0x162)](){const _0x2d30fc=_0x17b165,_0x428347=_0x3954c4(this[_0x2d30fc(0x147)])[_0x2d30fc(0x170)];return Array[_0x2d30fc(0x181)](_0x428347[_0x2d30fc(0x186)][_0x2d30fc(0x150)](_0x2d30fc(0x12c)))[_0x2d30fc(0x157)]((_0x78b10,_0x3de72c)=>_0x78b10[_0x2d30fc(0x14d)]()[_0x2d30fc(0x163)](_0x3de72c[_0x2d30fc(0x14d)]())?-0x1:_0x78b10[_0x2d30fc(0x14d)]()[_0x2d30fc(0x138)](_0x3de72c[_0x2d30fc(0x14d)]())?0x1:0x0);}}
23
+ const _0x242f74=_0x1f39;function _0x1f39(_0x3630e7,_0x5ef382){const _0x208c04=_0x208c();return _0x1f39=function(_0x1f3969,_0xf85a43){_0x1f3969=_0x1f3969-0x163;let _0x21ad63=_0x208c04[_0x1f3969];return _0x21ad63;},_0x1f39(_0x3630e7,_0x5ef382);}(function(_0x55bb2a,_0x4cf065){const _0x3d5d2e=_0x1f39,_0x3a8a3b=_0x55bb2a();while(!![]){try{const _0x1512bb=parseInt(_0x3d5d2e(0x178))/0x1+parseInt(_0x3d5d2e(0x165))/0x2*(parseInt(_0x3d5d2e(0x193))/0x3)+parseInt(_0x3d5d2e(0x1b6))/0x4*(-parseInt(_0x3d5d2e(0x1cb))/0x5)+-parseInt(_0x3d5d2e(0x188))/0x6*(-parseInt(_0x3d5d2e(0x1a3))/0x7)+parseInt(_0x3d5d2e(0x17a))/0x8+parseInt(_0x3d5d2e(0x17f))/0x9+-parseInt(_0x3d5d2e(0x1b1))/0xa;if(_0x1512bb===_0x4cf065)break;else _0x3a8a3b['push'](_0x3a8a3b['shift']());}catch(_0x299379){_0x3a8a3b['push'](_0x3a8a3b['shift']());}}}(_0x208c,0x47424));import{ViewDowncastWriter as _0x30d994}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x288a69,Editor as _0x1bff1b}from'ckeditor5/src/core.js';import{uid as _0xced91c}from'ckeditor5/src/utils.js';function _0x208c(){const _0xaf1495=['substring','conversion','ck-fake-ai-selection','4NeQmGp','listenTo','createRangeIn','_displayedFakeSelectionLocked','RealTimeCollaborationClient','has','_getMarkersInDocumentOrder','getChildren','push','dataDowncast','for','getRoot','createUIElement','_displayedFakeSelectionId','editors','start','data','fromCharCode','change','markerName','isAtEnd','2072390cYBccu','isOfficialPlugin','document','2vrxlBe','_sessionId','getStart','length','model','markerToHighlight','$textProxy','element','sort','createRange','markers','version','getMarkersGroup','addMarker','getWalker','afterInit','setAttribute','view','floor','259815cPmnnf','ai-selection','2514368BwDZJf',':start>','from',':end></','isContent','2638071WLMJbJ','getDocumentData','getSelectionText','plugins','pluginName','_integrateEditor','convertAiChatSelectionMarker','name','getSelectedContent','12NBTkTo','toView','modelToViewWithIds','join','isPremiumPlugin','add','random','toData','trim','editing','_setDataIdsOnChildren','202683ZEccOY','containerElement','_nextDataId','getLastMatchingPosition','indexOf',':start></','hideFakeVisualSelection','isOpening','data-id','emptyElement','isBefore','getSelection','editingDowncast','schema','ready','selection','701897nPQsew','removeMarker','context','removeAllRanges','isAfter','markerToElement','processor','AIEditing','end','sessionId','ck-ai-assistant-ui_theme',':end>','ai-selection:','get','4289790gOYKFi','showFakeVisualSelection'];_0x208c=function(){return _0xaf1495;};return _0x208c();}import{getEditorFromContext as _0x48a37c}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x242f74(0x179);export class AIEditing extends _0x288a69{[_0x242f74(0x1c3)]=null;[_0x242f74(0x1b9)]=!0x1;[_0x242f74(0x166)];static get[_0x242f74(0x183)](){const _0x468961=_0x242f74;return _0x468961(0x1aa);}static get[_0x242f74(0x163)](){return!0x0;}static get[_0x242f74(0x18c)](){return!0x0;}get[_0x242f74(0x1ac)](){const _0x340d6c=_0x242f74;if(!this[_0x340d6c(0x166)]){const _0x28d7a5=_0x48a37c(this[_0x340d6c(0x1a5)]),_0x1c9d97=_0x28d7a5[_0x340d6c(0x182)][_0x340d6c(0x1bb)](_0x340d6c(0x1ba))&&_0x28d7a5[_0x340d6c(0x182)][_0x340d6c(0x1b0)](_0x340d6c(0x1ba))[_0x340d6c(0x1ac)];this[_0x340d6c(0x166)]=_0x1c9d97||_0xced91c();}return this[_0x340d6c(0x166)];}[_0x242f74(0x180)](){const _0x4e318a=_0x242f74,_0x3c8f66=_0x48a37c(this[_0x4e318a(0x1a5)]),_0x2ff81e=_0x3c8f66[_0x4e318a(0x169)],_0x237b78=_0x3c8f66[_0x4e318a(0x1c6)][_0x4e318a(0x189)](_0x2ff81e[_0x4e318a(0x164)][_0x4e318a(0x1c1)](),{'convertAiChatSelectionMarker':!0x0}),_0x26260f=new _0x30d994(_0x3c8f66[_0x4e318a(0x191)][_0x4e318a(0x176)][_0x4e318a(0x164)]);this[_0x4e318a(0x192)](_0x237b78,_0x26260f);let _0x4956f9=_0x3c8f66[_0x4e318a(0x1c6)][_0x4e318a(0x1a9)][_0x4e318a(0x18f)](_0x237b78);const _0x499d17=this[_0x4e318a(0x1bc)](),_0x1b59f5=[];for(const _0x4e6b4c of _0x499d17){const _0xa3364a='<'+_0x4e6b4c[_0x4e318a(0x186)]+_0x4e318a(0x198)+_0x4e6b4c[_0x4e318a(0x186)]+_0x4e318a(0x17b),_0x22d232=_0x4956f9[_0x4e318a(0x197)](_0xa3364a);_0x4956f9=_0x4956f9[_0x4e318a(0x1b3)](0x0,_0x22d232)+_0x4956f9[_0x4e318a(0x1b3)](_0x22d232+_0xa3364a[_0x4e318a(0x168)]);const _0x46e5fd='<'+_0x4e6b4c[_0x4e318a(0x186)]+_0x4e318a(0x17d)+_0x4e6b4c[_0x4e318a(0x186)]+_0x4e318a(0x1ae),_0x36f1d6=_0x4956f9[_0x4e318a(0x197)](_0x46e5fd);_0x4956f9=_0x4956f9[_0x4e318a(0x1b3)](0x0,_0x36f1d6)+_0x4956f9[_0x4e318a(0x1b3)](_0x36f1d6+_0x46e5fd[_0x4e318a(0x168)]),_0x1b59f5[_0x4e318a(0x1be)]({'markerName':_0x4e6b4c[_0x4e318a(0x186)],'start':_0x22d232,'end':_0x36f1d6,'htmlFragment':_0x4956f9[_0x4e318a(0x1b3)](_0x22d232,_0x36f1d6)});}return{'content':_0x4956f9,'version':_0x3c8f66[_0x4e318a(0x169)][_0x4e318a(0x164)][_0x4e318a(0x170)],'sessionId':this[_0x4e318a(0x1ac)],'selections':_0x1b59f5};}async[_0x242f74(0x174)](){const _0x19ef8b=_0x242f74;this[_0x19ef8b(0x1a5)]instanceof _0x1bff1b?this[_0x19ef8b(0x184)](this[_0x19ef8b(0x1a5)]):this[_0x19ef8b(0x1b7)](this[_0x19ef8b(0x1a5)][_0x19ef8b(0x1c4)],_0x19ef8b(0x18d),(_0x1b3ede,_0x5947f2)=>{const _0x5a9d67=_0x19ef8b;_0x5947f2['on'](_0x5a9d67(0x1a1),()=>{const _0x28ccea=_0x5a9d67;this[_0x28ccea(0x184)](_0x5947f2);});});}[_0x242f74(0x184)](_0x39e05e){const _0x48840d=_0x242f74;_0x39e05e[_0x48840d(0x1b4)][_0x48840d(0x1c0)](_0x48840d(0x19f))[_0x48840d(0x16a)]({'model':_0x48840d(0x179),'view':{'classes':[_0x48840d(0x1b5),_0x48840d(0x1ad)],'priority':0xc}}),_0x39e05e[_0x48840d(0x1b4)][_0x48840d(0x1c0)](_0x48840d(0x1bf))[_0x48840d(0x1a8)]({'model':_0x48840d(0x179),'view':(_0x4d9447,{writer:_0x2f3dc9,options:_0x2c10f5})=>_0x2c10f5[_0x48840d(0x185)]?_0x2f3dc9[_0x48840d(0x1c2)](_0x4d9447[_0x48840d(0x1c9)]+':'+(_0x4d9447[_0x48840d(0x19a)]?_0x48840d(0x1c5):_0x48840d(0x1ab))):null});}[_0x242f74(0x1b2)](_0x4e0a74,_0x23640d,_0x5dccb7=!0x1,_0x52b03b=!0x1){const _0x3d6e56=_0x242f74;if(this[_0x3d6e56(0x1b9)]&&!_0x52b03b)return!0x1;this[_0x3d6e56(0x1c3)]&&this[_0x3d6e56(0x199)](this[_0x3d6e56(0x1c3)]),this[_0x3d6e56(0x1c3)]=_0x23640d,this[_0x3d6e56(0x1b9)]=_0x5dccb7;const _0x5426bc=_0x48a37c(this[_0x3d6e56(0x1a5)])[_0x3d6e56(0x169)];return _0x5426bc[_0x3d6e56(0x1c8)](_0x427295=>{const _0x199422=_0x3d6e56;let _0x5eb90f=0x0;for(let _0x593ab0 of _0x4e0a74){const _0x1c1c31=_0x199422(0x1af)+_0x5eb90f;if(_0x593ab0[_0x199422(0x1c5)][_0x199422(0x1ca)]){const _0x453f0c=_0x593ab0[_0x199422(0x1c5)][_0x199422(0x196)](({item:_0x1e4bf3})=>!_0x5426bc[_0x199422(0x1a0)][_0x199422(0x17e)](_0x1e4bf3),{'boundaries':_0x593ab0});_0x593ab0=_0x427295[_0x199422(0x16e)](_0x453f0c,_0x593ab0[_0x199422(0x1ab)]);}_0x427295[_0x199422(0x172)](_0x1c1c31,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x593ab0}),_0x5eb90f++;}}),window[_0x3d6e56(0x19e)]()?.[_0x3d6e56(0x1a6)](),!0x0;}[_0x242f74(0x199)](_0x1cc97e){const _0x504da3=_0x242f74;if(this[_0x504da3(0x1c3)]!=_0x1cc97e)return!0x1;this[_0x504da3(0x1c3)]=null,this[_0x504da3(0x1b9)]=!0x1;const _0x292972=_0x48a37c(this[_0x504da3(0x1a5)]),_0x27a683=_0x292972[_0x504da3(0x169)][_0x504da3(0x16f)][_0x504da3(0x171)](_0x504da3(0x179));return _0x292972[_0x504da3(0x169)][_0x504da3(0x1c8)](_0x520c42=>{const _0xeca117=_0x504da3;for(const _0x36c4c3 of _0x27a683)_0x520c42[_0xeca117(0x1a4)](_0x36c4c3);}),!0x0;}[_0x242f74(0x18a)](_0x400301){const _0x3b3152=_0x242f74,_0xd1b8be=_0x48a37c(this[_0x3b3152(0x1a5)]),_0x1b1fcf=_0xd1b8be[_0x3b3152(0x1c6)][_0x3b3152(0x189)](_0x400301),_0x140d31=new _0x30d994(_0xd1b8be[_0x3b3152(0x191)][_0x3b3152(0x176)][_0x3b3152(0x164)]);return this[_0x3b3152(0x192)](_0x1b1fcf,_0x140d31),_0x1b1fcf;}[_0x242f74(0x192)](_0x352b4c,_0x3c5154){const _0x32ed48=_0x242f74;let _0x20bae7=!0x1;const _0x3e1092=new Set();for(const _0x581631 of _0x352b4c[_0x32ed48(0x1bd)]()){const _0x2cf93a=_0x581631['is'](_0x32ed48(0x19c))||_0x581631['is'](_0x32ed48(0x194));if(!_0x581631['is'](_0x32ed48(0x16c)))continue;(this[_0x32ed48(0x192)](_0x581631,_0x3c5154)||_0x2cf93a)&&(_0x3c5154[_0x32ed48(0x175)](_0x32ed48(0x19b),this[_0x32ed48(0x195)](_0x3e1092),_0x581631),_0x20bae7=!0x0);}return _0x20bae7;}[_0x242f74(0x195)](_0x317ce4){const _0x13a579=_0x242f74;let _0x3c58e3;do{_0x3c58e3='';for(let _0x5241f2=0x0;_0x5241f2<0x4;_0x5241f2++)_0x3c58e3+=String[_0x13a579(0x1c7)](0x61+Math[_0x13a579(0x177)](0x1a*Math[_0x13a579(0x18e)]()));}while(_0x317ce4[_0x13a579(0x1bb)](_0x3c58e3));return _0x317ce4[_0x13a579(0x18d)](_0x3c58e3),_0x3c58e3;}[_0x242f74(0x181)](){const _0x120a79=_0x242f74,{model:_0x222f5b}=_0x48a37c(this[_0x120a79(0x1a5)]),_0x1b4cbe=_0x222f5b[_0x120a79(0x164)][_0x120a79(0x1a2)],_0x22266d=_0x222f5b[_0x120a79(0x187)](_0x1b4cbe),_0x431b38=[],_0x54cd83=_0x222f5b[_0x120a79(0x1b8)](_0x22266d)[_0x120a79(0x173)]();for(const {item:_0x29ddfb}of _0x54cd83)_0x29ddfb['is'](_0x120a79(0x16b))?_0x431b38[_0x120a79(0x1be)](_0x29ddfb[_0x120a79(0x1c6)]):_0x29ddfb['is'](_0x120a79(0x16c))&&_0x431b38[_0x120a79(0x168)]>0x0&&'\x20'!==_0x431b38[_0x431b38[_0x120a79(0x168)]-0x1]&&_0x431b38[_0x120a79(0x1be)]('\x20');return'\x22'+_0x431b38[_0x120a79(0x18b)]('')[_0x120a79(0x190)]()+'\x22';}[_0x242f74(0x1bc)](){const _0x4c57a6=_0x242f74,_0x3d6adb=_0x48a37c(this[_0x4c57a6(0x1a5)])[_0x4c57a6(0x169)];return Array[_0x4c57a6(0x17c)](_0x3d6adb[_0x4c57a6(0x16f)][_0x4c57a6(0x171)](_0x4c57a6(0x179)))[_0x4c57a6(0x16d)]((_0x41e73a,_0xf6ed84)=>_0x41e73a[_0x4c57a6(0x167)]()[_0x4c57a6(0x19d)](_0xf6ed84[_0x4c57a6(0x167)]())?-0x1:_0x41e73a[_0x4c57a6(0x167)]()[_0x4c57a6(0x1a7)](_0xf6ed84[_0x4c57a6(0x167)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbfbe9d=_0x3a0a;function _0x37a7(){const _0xabd63e=['6067716IbTMMh','setReasoning','fire','11VyTNMn','setWebSearch','5300700FYOiFA','reasoning','init','148458sbSjtb','capabilitiesUpdated','_isReasoningEnabled','5qVvCZN','toggleReasoning','3280887RWjHuX','toggleWebSearch','76874wecaCp','getCapabilitiesConfig','161OvqKyJ','16vnQbFq','webSearch','_isWebSearchEnabled','1499418qOiYCe','31ONagpb','3446396GGodau','isReasoningEnabled','isWebSearchEnabled','reset','getCapabilitiesRequestData'];_0x37a7=function(){return _0xabd63e;};return _0x37a7();}function _0x3a0a(_0xbf70fb,_0x3a9fb3){const _0x37a703=_0x37a7();return _0x3a0a=function(_0x3a0afa,_0x3e6fb7){_0x3a0afa=_0x3a0afa-0x1e6;let _0x169d1d=_0x37a703[_0x3a0afa];return _0x169d1d;},_0x3a0a(_0xbf70fb,_0x3a9fb3);}(function(_0x4f7450,_0x2daf04){const _0x47e016=_0x3a0a,_0x39c006=_0x4f7450();while(!![]){try{const _0x465559=parseInt(_0x47e016(0x1f4))/0x1*(parseInt(_0x47e016(0x1ed))/0x2)+parseInt(_0x47e016(0x1f3))/0x3+parseInt(_0x47e016(0x1f5))/0x4*(-parseInt(_0x47e016(0x1e9))/0x5)+parseInt(_0x47e016(0x1e6))/0x6*(parseInt(_0x47e016(0x1ef))/0x7)+-parseInt(_0x47e016(0x1f0))/0x8*(parseInt(_0x47e016(0x1eb))/0x9)+parseInt(_0x47e016(0x1ff))/0xa+-parseInt(_0x47e016(0x1fd))/0xb*(parseInt(_0x47e016(0x1fa))/0xc);if(_0x465559===_0x2daf04)break;else _0x39c006['push'](_0x39c006['shift']());}catch(_0x457e3b){_0x39c006['push'](_0x39c006['shift']());}}}(_0x37a7,0xa97a8));import{EmitterMixin as _0x2d1e68}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0xbfbe9d(0x1e7)];export class AICapabilities extends _0x2d1e68(){[_0xbfbe9d(0x1f2)];[_0xbfbe9d(0x1e8)];constructor(){const _0xa001a=_0xbfbe9d;super(),this[_0xa001a(0x1f2)]=!0x1,this[_0xa001a(0x1e8)]=!0x1;}[_0xbfbe9d(0x201)](){const _0x3696c5=_0xbfbe9d;this[_0x3696c5(0x1f8)]();}[_0xbfbe9d(0x1f8)](){const _0xad1556=_0xbfbe9d;this[_0xad1556(0x1fe)](!0x1),this[_0xad1556(0x1fb)](!0x1);}[_0xbfbe9d(0x1ee)](){const _0x436642=_0xbfbe9d;return{'isWebSearchEnabled':this[_0x436642(0x1f2)],'isReasoningEnabled':this[_0x436642(0x1e8)]};}static[_0xbfbe9d(0x1f9)](_0x299d36){const _0x4f53a7=_0xbfbe9d,_0xae5a9a={};return _0x299d36&&_0x299d36[_0x4f53a7(0x1f7)]&&(_0xae5a9a[_0x4f53a7(0x1f1)]={}),_0x299d36&&_0x299d36[_0x4f53a7(0x1f6)]&&(_0xae5a9a[_0x4f53a7(0x200)]={}),_0xae5a9a;}[_0xbfbe9d(0x1ec)](){const _0x34062c=_0xbfbe9d;this[_0x34062c(0x1fe)](!this[_0x34062c(0x1f2)]);}[_0xbfbe9d(0x1ea)](){const _0x44aa05=_0xbfbe9d;this[_0x44aa05(0x1fb)](!this[_0x44aa05(0x1e8)]);}[_0xbfbe9d(0x1fe)](_0x31c7e6){const _0xfe5160=_0xbfbe9d;_0x31c7e6!==this[_0xfe5160(0x1f2)]&&(this[_0xfe5160(0x1f2)]=_0x31c7e6,this[_0xfe5160(0x1fc)](_0xfe5160(0x1e7),this[_0xfe5160(0x1ee)]()));}[_0xbfbe9d(0x1fb)](_0x3046b6){const _0x3ee333=_0xbfbe9d;_0x3046b6!==this[_0x3ee333(0x1e8)]&&(this[_0x3ee333(0x1e8)]=_0x3046b6,this[_0x3ee333(0x1fc)](_0x3ee333(0x1e7),this[_0x3ee333(0x1ee)]()));}}
23
+ const _0x2ced05=_0x30c2;function _0x30c2(_0x1423ba,_0x568faa){const _0x1668f4=_0x1668();return _0x30c2=function(_0x30c2b2,_0x103b59){_0x30c2b2=_0x30c2b2-0xfb;let _0x1b35f1=_0x1668f4[_0x30c2b2];return _0x1b35f1;},_0x30c2(_0x1423ba,_0x568faa);}(function(_0xd85589,_0xd1f710){const _0x319187=_0x30c2,_0x27b936=_0xd85589();while(!![]){try{const _0x5504f7=parseInt(_0x319187(0x10b))/0x1+-parseInt(_0x319187(0x114))/0x2+parseInt(_0x319187(0x100))/0x3+-parseInt(_0x319187(0xfc))/0x4*(-parseInt(_0x319187(0x115))/0x5)+-parseInt(_0x319187(0x106))/0x6*(-parseInt(_0x319187(0x102))/0x7)+parseInt(_0x319187(0x111))/0x8*(parseInt(_0x319187(0x110))/0x9)+-parseInt(_0x319187(0x112))/0xa*(parseInt(_0x319187(0xfe))/0xb);if(_0x5504f7===_0xd1f710)break;else _0x27b936['push'](_0x27b936['shift']());}catch(_0x4d76a2){_0x27b936['push'](_0x27b936['shift']());}}}(_0x1668,0x3f7b1));function _0x1668(){const _0x492aa=['init','18747SdMyRL','264JuhpPS','10nEWSLl','reasoning','805212ticgqD','5000tpyIKJ','capabilitiesUpdated','1468hnScJX','isReasoningEnabled','4005122XnIjha','isWebSearchEnabled','129258XANpAH','toggleReasoning','133CzyAQs','setWebSearch','toggleWebSearch','getCapabilitiesRequestData','92694GxAzwn','setReasoning','fire','reset','_isWebSearchEnabled','254369KvGtuW','webSearch','_isReasoningEnabled','getCapabilitiesConfig'];_0x1668=function(){return _0x492aa;};return _0x1668();}import{EmitterMixin as _0x21f2ab}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2ced05(0xfb)];export class AICapabilities extends _0x21f2ab(){[_0x2ced05(0x10a)];[_0x2ced05(0x10d)];constructor(){const _0x5999d9=_0x2ced05;super(),this[_0x5999d9(0x10a)]=!0x1,this[_0x5999d9(0x10d)]=!0x1;}[_0x2ced05(0x10f)](){const _0x2acb4a=_0x2ced05;this[_0x2acb4a(0x109)]();}[_0x2ced05(0x109)](){const _0x40a3e4=_0x2ced05;this[_0x40a3e4(0x103)](!0x1),this[_0x40a3e4(0x107)](!0x1);}[_0x2ced05(0x10e)](){const _0x2a6fe7=_0x2ced05;return{'isWebSearchEnabled':this[_0x2a6fe7(0x10a)],'isReasoningEnabled':this[_0x2a6fe7(0x10d)]};}static[_0x2ced05(0x105)](_0x30d155){const _0x24c6d1=_0x2ced05,_0x3c2566={};return _0x30d155&&_0x30d155[_0x24c6d1(0xff)]&&(_0x3c2566[_0x24c6d1(0x10c)]={}),_0x30d155&&_0x30d155[_0x24c6d1(0xfd)]&&(_0x3c2566[_0x24c6d1(0x113)]={}),_0x3c2566;}[_0x2ced05(0x104)](){const _0x243b52=_0x2ced05;this[_0x243b52(0x103)](!this[_0x243b52(0x10a)]);}[_0x2ced05(0x101)](){const _0x18ac37=_0x2ced05;this[_0x18ac37(0x107)](!this[_0x18ac37(0x10d)]);}[_0x2ced05(0x103)](_0x1752dd){const _0x48d8aa=_0x2ced05;_0x1752dd!==this[_0x48d8aa(0x10a)]&&(this[_0x48d8aa(0x10a)]=_0x1752dd,this[_0x48d8aa(0x108)](_0x48d8aa(0xfb),this[_0x48d8aa(0x10e)]()));}[_0x2ced05(0x107)](_0x3b4ef8){const _0x180724=_0x2ced05;_0x3b4ef8!==this[_0x180724(0x10d)]&&(this[_0x180724(0x10d)]=_0x3b4ef8,this[_0x180724(0x108)](_0x180724(0xfb),this[_0x180724(0x10e)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x442fa2,_0x56f405){var _0x459893=_0x3e74,_0x27cde8=_0x442fa2();while(!![]){try{var _0x1a30ca=-parseInt(_0x459893(0xbb))/0x1*(-parseInt(_0x459893(0xc2))/0x2)+parseInt(_0x459893(0xc3))/0x3*(-parseInt(_0x459893(0xca))/0x4)+-parseInt(_0x459893(0xc1))/0x5+-parseInt(_0x459893(0xc6))/0x6+parseInt(_0x459893(0xc7))/0x7*(parseInt(_0x459893(0xc5))/0x8)+parseInt(_0x459893(0xcd))/0x9+parseInt(_0x459893(0xbc))/0xa;if(_0x1a30ca===_0x56f405)break;else _0x27cde8['push'](_0x27cde8['shift']());}catch(_0x4a375b){_0x27cde8['push'](_0x27cde8['shift']());}}}(_0x35ed,0xc0207));export var AIContextItemType;function _0x3e74(_0x5391d5,_0x40b612){var _0x35ed68=_0x35ed();return _0x3e74=function(_0x3e7416,_0x1e1e06){_0x3e7416=_0x3e7416-0xbb;var _0x5e4ad0=_0x35ed68[_0x3e7416];return _0x5e4ad0;},_0x3e74(_0x5391d5,_0x40b612);}!function(_0x571e41){var _0xd00b97=_0x3e74;_0x571e41[_0xd00b97(0xcb)]=_0xd00b97(0xc0),_0x571e41[_0xd00b97(0xbe)]=_0xd00b97(0xcc),_0x571e41[_0xd00b97(0xd1)]=_0xd00b97(0xd2),_0x571e41[_0xd00b97(0xcf)]=_0xd00b97(0xce),_0x571e41[_0xd00b97(0xc9)]=_0xd00b97(0xbd);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x24a03e){var _0x38542a=_0x3e74;_0x24a03e[_0x38542a(0xcf)]=_0x38542a(0xce),_0x24a03e[_0x38542a(0xc4)]=_0x38542a(0xc8),_0x24a03e[_0x38542a(0xbf)]=_0x38542a(0xd0);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x35ed(){var _0xc6a80e=['10339490YCGUVi','markdown','SELECTION','4690124GiIXpK','FILE','document','8452836KvKTRm','text','TEXT','html','URL','web-resource','2dircIo','6436610YCLaFW','selection','DOCUMENT','HTML','file','2261925VCUMia','3422cTTIbX','3ftCpkb','MARKDOWN','8RWQjdM','3908940pxZrAK'];_0x35ed=function(){return _0xc6a80e;};return _0x35ed();}
23
+ (function(_0x3bfa61,_0xc5c83d){var _0x45ec80=_0x5a21,_0x7d3829=_0x3bfa61();while(!![]){try{var _0x4c801b=parseInt(_0x45ec80(0x123))/0x1+parseInt(_0x45ec80(0x134))/0x2+-parseInt(_0x45ec80(0x12a))/0x3+-parseInt(_0x45ec80(0x121))/0x4*(parseInt(_0x45ec80(0x126))/0x5)+parseInt(_0x45ec80(0x131))/0x6*(parseInt(_0x45ec80(0x125))/0x7)+parseInt(_0x45ec80(0x11e))/0x8*(-parseInt(_0x45ec80(0x124))/0x9)+-parseInt(_0x45ec80(0x127))/0xa*(-parseInt(_0x45ec80(0x136))/0xb);if(_0x4c801b===_0xc5c83d)break;else _0x7d3829['push'](_0x7d3829['shift']());}catch(_0x3ea6cf){_0x7d3829['push'](_0x7d3829['shift']());}}}(_0x1c55,0x5bb07));export var AIContextItemType;!function(_0x506591){var _0x3167e6=_0x5a21;_0x506591[_0x3167e6(0x12b)]=_0x3167e6(0x129),_0x506591[_0x3167e6(0x133)]=_0x3167e6(0x130),_0x506591[_0x3167e6(0x135)]=_0x3167e6(0x120),_0x506591[_0x3167e6(0x128)]=_0x3167e6(0x12d),_0x506591[_0x3167e6(0x12c)]=_0x3167e6(0x132);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x5c5017){var _0x5fbd0=_0x5a21;_0x5c5017[_0x5fbd0(0x128)]=_0x5fbd0(0x12d),_0x5c5017[_0x5fbd0(0x11f)]=_0x5fbd0(0x12e),_0x5c5017[_0x5fbd0(0x122)]=_0x5fbd0(0x12f);}(AIContextTextResourceType||(AIContextTextResourceType={}));function _0x5a21(_0x5be377,_0x27aa9a){var _0x1c5556=_0x1c55();return _0x5a21=function(_0x5a21cd,_0xc410e3){_0x5a21cd=_0x5a21cd-0x11e;var _0x41b673=_0x1c5556[_0x5a21cd];return _0x41b673;},_0x5a21(_0x5be377,_0x27aa9a);}function _0x1c55(){var _0x4c78c5=['markdown','html','document','3342zYsRmw','selection','DOCUMENT','255352fFmBze','URL','11MFXaBy','5021648smJwMI','MARKDOWN','web-resource','25960ogbrbj','HTML','403757PpkUzL','9uUJiBe','1869yFyoGp','120VbnYVu','9896970MhQQVt','TEXT','file','1532472uBNykX','FILE','SELECTION','text'];_0x1c55=function(){return _0x4c78c5;};return _0x1c55();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x38e025=_0x16a8;(function(_0x2c1749,_0x36e9ac){const _0x218093=_0x16a8,_0x5bd117=_0x2c1749();while(!![]){try{const _0x20544e=-parseInt(_0x218093(0x1ad))/0x1*(parseInt(_0x218093(0x1c2))/0x2)+-parseInt(_0x218093(0x1a7))/0x3+parseInt(_0x218093(0x1ce))/0x4+parseInt(_0x218093(0x19d))/0x5*(parseInt(_0x218093(0x1a1))/0x6)+-parseInt(_0x218093(0x1d0))/0x7*(-parseInt(_0x218093(0x1d5))/0x8)+-parseInt(_0x218093(0x1bc))/0x9*(-parseInt(_0x218093(0x1c6))/0xa)+parseInt(_0x218093(0x1d3))/0xb;if(_0x20544e===_0x36e9ac)break;else _0x5bd117['push'](_0x5bd117['shift']());}catch(_0x3ca3d3){_0x5bd117['push'](_0x5bd117['shift']());}}}(_0x49ae,0x71d51));import{CKEditorError as _0xdb604a,EmitterMixin as _0x500471,logWarning as _0x29e94a,uid as _0x3b66af}from'ckeditor5/src/utils.js';import{AIReply as _0x7cae63,isIgnoredReplyType as _0x1a0b2f,isValidReplyType as _0x46ecbf,isReplyTitleType as _0x1f6546,isSourceType as _0x195fe0}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x38e025(0x1b8),_0x38e025(0x1c0),_0x38e025(0x1c1),_0x38e025(0x19c),_0x38e025(0x1ab),_0x38e025(0x1b4),_0x38e025(0x1b3),_0x38e025(0x1b9),_0x38e025(0x1ae),_0x38e025(0x1c4)];function _0x49ae(){const _0x787478=['abort','source','fire','abortController','2097672eSZjEC','connector','56AsZnOr','getStream','start','3588189MsWKfc','conversationTitle','751200sYGcMo','interactionFinished','15OWPHsA','currentReply','textDelta','content','170370boWvqm','stop','getDocumentContext','_finalizeInteraction','splice','currentRequest','2177697kQrfYs','editor','sources','find','interactionDestroyed','destroy','31oqYQVs','setConversationTitle','done','isStopped','push','event','replyContentUpdated','replyCreated','isDestroyed','appendContent','stopListening','interactionCreated','replyChangeGroupStateUpdated','data','delegate','24723sXoRTU','ai-chat-interaction-error','createReply','getReply','interactionStarted','interactionStopped','59750eSpQpG','ai-interaction-invalid-event-type','error','sendRequest','1570RoWMFS','forEach','length','replies'];_0x49ae=function(){return _0x787478;};return _0x49ae();}function _0x16a8(_0x1667c6,_0x1c06ba){const _0x49ae96=_0x49ae();return _0x16a8=function(_0x16a82b,_0x143561){_0x16a82b=_0x16a82b-0x19c;let _0x258216=_0x49ae96[_0x16a82b];return _0x258216;},_0x16a8(_0x1667c6,_0x1c06ba);}export class AIInteraction extends _0x500471(){['id'];[_0x38e025(0x1c9)]=[];[_0x38e025(0x19e)];[_0x38e025(0x1a6)];[_0x38e025(0x1cf)];[_0x38e025(0x1b0)]=!0x1;[_0x38e025(0x1b5)]=!0x1;[_0x38e025(0x1a8)];constructor({connector:_0x162513,editor:_0x59f934}){const _0x5be1d1=_0x38e025;super(),this['id']=_0x3b66af(),this[_0x5be1d1(0x1cf)]=_0x162513,this[_0x5be1d1(0x1b0)]=!0x0,this[_0x5be1d1(0x1a8)]=_0x59f934;}async[_0x38e025(0x1d2)](){const _0x10cde6=_0x38e025;let _0x443ae1;this[_0x10cde6(0x1b0)]=!0x1;try{this[_0x10cde6(0x1a6)]=await this[_0x10cde6(0x1c5)](),this[_0x10cde6(0x1cc)](_0x10cde6(0x1c0),this);const _0x3d2995=await this[_0x10cde6(0x1a6)][_0x10cde6(0x1d1)](),_0x4ac101=[];for await(const _0x5686e8 of _0x3d2995){if(this[_0x10cde6(0x1b0)])return;if(_0x10cde6(0x1c4)===_0x5686e8[_0x10cde6(0x1b2)])return void this[_0x10cde6(0x1cc)](_0x10cde6(0x1c4),{'error':new _0xdb604a(_0x10cde6(0x1bd),this)});_0x1f6546(_0x5686e8[_0x10cde6(0x1b2)])&&this[_0x10cde6(0x1ae)](_0x5686e8[_0x10cde6(0x1ba)][_0x10cde6(0x1d4)],!0x0),_0x195fe0(_0x5686e8[_0x10cde6(0x1b2)])?_0x4ac101[_0x10cde6(0x1b1)](_0x5686e8[_0x10cde6(0x1ba)][_0x10cde6(0x1cb)]):_0x46ecbf(_0x5686e8[_0x10cde6(0x1b2)])?(_0x5686e8[_0x10cde6(0x1b2)]!==_0x443ae1&&(this[_0x10cde6(0x19e)]&&this[_0x10cde6(0x19e)][_0x10cde6(0x1af)](),this[_0x10cde6(0x19e)]=this[_0x10cde6(0x1be)]({'type':_0x5686e8[_0x10cde6(0x1b2)],'interactionId':this['id']}),_0x4ac101[_0x10cde6(0x1c8)]>0x0&&(this[_0x10cde6(0x19e)][_0x10cde6(0x1a9)]=_0x4ac101[_0x10cde6(0x1a5)](0x0)),_0x443ae1=_0x5686e8[_0x10cde6(0x1b2)]),this[_0x10cde6(0x19e)][_0x10cde6(0x1b6)](_0x5686e8[_0x10cde6(0x1ba)][_0x10cde6(0x19f)])):_0x1a0b2f(_0x5686e8[_0x10cde6(0x1b2)])||_0x29e94a(_0x10cde6(0x1c3),{'chunk':_0x5686e8});}}finally{this[_0x10cde6(0x1b0)]||(this[_0x10cde6(0x1a4)](),this[_0x10cde6(0x1cc)](_0x10cde6(0x19c),this));}}[_0x38e025(0x1a2)](){const _0x34bfa7=_0x38e025;this[_0x34bfa7(0x1b0)]||(this[_0x34bfa7(0x1a4)](),this[_0x34bfa7(0x1cc)](_0x34bfa7(0x1c1),this));}[_0x38e025(0x1bf)](_0x1cb371){const _0x53d40e=_0x38e025;return this[_0x53d40e(0x1c9)][_0x53d40e(0x1aa)](_0x25b083=>_0x25b083['id']===_0x1cb371);}[_0x38e025(0x1ac)](){const _0x4f4652=_0x38e025;this[_0x4f4652(0x1b5)]||(this[_0x4f4652(0x1a2)](),this[_0x4f4652(0x1c9)][_0x4f4652(0x1c7)](_0x355771=>_0x355771[_0x4f4652(0x1ac)]()),this[_0x4f4652(0x1c9)]=[],this[_0x4f4652(0x1b5)]=!0x0,this[_0x4f4652(0x1cc)](_0x4f4652(0x1ab),this),this[_0x4f4652(0x1b7)]());}[_0x38e025(0x1be)](_0x251bfc){const _0x10ac31=_0x38e025,_0x2b4b50=new _0x7cae63({'editor':this[_0x10ac31(0x1a8)],'documentContextContent':this[_0x10ac31(0x1a3)]()?.[_0x10ac31(0x1a0)],..._0x251bfc});return this[_0x10ac31(0x1c9)][_0x10ac31(0x1b1)](_0x2b4b50),_0x2b4b50[_0x10ac31(0x1bb)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x10ac31(0x1cc)](_0x10ac31(0x1b4),_0x2b4b50),_0x2b4b50;}[_0x38e025(0x1ae)](_0x1afbc2,_0x3d708f=!0x1){const _0x1aff9f=_0x38e025;this[_0x1aff9f(0x1cc)](_0x1aff9f(0x1ae),_0x1afbc2,_0x3d708f);}[_0x38e025(0x1a4)](){const _0x46309f=_0x38e025;this[_0x46309f(0x1b0)]=!0x0,this[_0x46309f(0x1a6)]&&this[_0x46309f(0x1a6)][_0x46309f(0x1cd)][_0x46309f(0x1ca)](),this[_0x46309f(0x19e)]&&this[_0x46309f(0x19e)][_0x46309f(0x1af)](),this[_0x46309f(0x1a6)]=this[_0x46309f(0x19e)]=void 0x0;}}
23
+ const _0x5e0156=_0x4617;function _0x4617(_0x4043cd,_0x46a28e){const _0x43e903=_0x43e9();return _0x4617=function(_0x4617b6,_0x68d2f9){_0x4617b6=_0x4617b6-0x9e;let _0x4760b9=_0x43e903[_0x4617b6];return _0x4760b9;},_0x4617(_0x4043cd,_0x46a28e);}(function(_0x2325a5,_0x494a56){const _0x2fea5a=_0x4617,_0x7ad9e2=_0x2325a5();while(!![]){try{const _0x2cab03=-parseInt(_0x2fea5a(0xc3))/0x1+-parseInt(_0x2fea5a(0xd0))/0x2*(parseInt(_0x2fea5a(0xb2))/0x3)+-parseInt(_0x2fea5a(0xd6))/0x4+-parseInt(_0x2fea5a(0xd2))/0x5+-parseInt(_0x2fea5a(0xb6))/0x6*(parseInt(_0x2fea5a(0xbc))/0x7)+parseInt(_0x2fea5a(0xb4))/0x8+-parseInt(_0x2fea5a(0xa2))/0x9*(-parseInt(_0x2fea5a(0xc6))/0xa);if(_0x2cab03===_0x494a56)break;else _0x7ad9e2['push'](_0x7ad9e2['shift']());}catch(_0x8dcb81){_0x7ad9e2['push'](_0x7ad9e2['shift']());}}}(_0x43e9,0x72bab));import{CKEditorError as _0x27d5ba,EmitterMixin as _0x2b9fad,logWarning as _0x2de26c,uid as _0xafb867}from'ckeditor5/src/utils.js';import{AIReply as _0xc1f26,isIgnoredReplyType as _0x383f42,isValidReplyType as _0x3f9c06,isReplyTitleType as _0x12ebb3,isSourceType as _0x5eb330}from'./aireply.js';function _0x43e9(){const _0x25e129=['isDestroyed','_finalizeInteraction','source','currentRequest','ai-interaction-invalid-event-type','event','177583movoBA','forEach','find','60930lTkdvM','replyCreated','textDelta','replyChangeGroupStateUpdated','interactionFinished','length','connector','done','setConversationTitle','delegate','2FBubKl','getDocumentContext','3490555utFxQE','createReply','content','destroy','422600AAQPiR','getStream','splice','fire','data','2907CRUwJK','error','interactionCreated','interactionDestroyed','appendContent','editor','interactionStopped','isStopped','ai-chat-interaction-error','interactionStarted','start','abort','stopListening','currentReply','replyContentUpdated','replies','1138332dKojqN','sources','407832OhNAfz','stop','1129794eIVbfr','push','abortController','conversationTitle','sendRequest','getReply','7KhEIoh'];_0x43e9=function(){return _0x25e129;};return _0x43e9();}export const AI_MODEL_EVENT_NAMES=[_0x5e0156(0xa4),_0x5e0156(0xab),_0x5e0156(0xa8),_0x5e0156(0xca),_0x5e0156(0xa5),_0x5e0156(0xc7),_0x5e0156(0xb0),_0x5e0156(0xc9),_0x5e0156(0xce),_0x5e0156(0xa3)];export class AIInteraction extends _0x2b9fad(){['id'];[_0x5e0156(0xb1)]=[];[_0x5e0156(0xaf)];[_0x5e0156(0xc0)];[_0x5e0156(0xcc)];[_0x5e0156(0xa9)]=!0x1;[_0x5e0156(0xbd)]=!0x1;[_0x5e0156(0xa7)];constructor({connector:_0x52fb00,editor:_0x17219c}){const _0x430039=_0x5e0156;super(),this['id']=_0xafb867(),this[_0x430039(0xcc)]=_0x52fb00,this[_0x430039(0xa9)]=!0x0,this[_0x430039(0xa7)]=_0x17219c;}async[_0x5e0156(0xac)](){const _0x496244=_0x5e0156;let _0x19ecef;this[_0x496244(0xa9)]=!0x1;try{this[_0x496244(0xc0)]=await this[_0x496244(0xba)](),this[_0x496244(0xa0)](_0x496244(0xab),this);const _0x47b6d5=await this[_0x496244(0xc0)][_0x496244(0x9e)](),_0x590c6d=[];for await(const _0x330e9c of _0x47b6d5){if(this[_0x496244(0xa9)])return;if(_0x496244(0xa3)===_0x330e9c[_0x496244(0xc2)])return void this[_0x496244(0xa0)](_0x496244(0xa3),{'error':new _0x27d5ba(_0x496244(0xaa),this)});_0x12ebb3(_0x330e9c[_0x496244(0xc2)])&&this[_0x496244(0xce)](_0x330e9c[_0x496244(0xa1)][_0x496244(0xb9)],!0x0),_0x5eb330(_0x330e9c[_0x496244(0xc2)])?_0x590c6d[_0x496244(0xb7)](_0x330e9c[_0x496244(0xa1)][_0x496244(0xbf)]):_0x3f9c06(_0x330e9c[_0x496244(0xc2)])?(_0x330e9c[_0x496244(0xc2)]!==_0x19ecef&&(this[_0x496244(0xaf)]&&this[_0x496244(0xaf)][_0x496244(0xcd)](),this[_0x496244(0xaf)]=this[_0x496244(0xd3)]({'type':_0x330e9c[_0x496244(0xc2)],'interactionId':this['id']}),_0x590c6d[_0x496244(0xcb)]>0x0&&(this[_0x496244(0xaf)][_0x496244(0xb3)]=_0x590c6d[_0x496244(0x9f)](0x0)),_0x19ecef=_0x330e9c[_0x496244(0xc2)]),this[_0x496244(0xaf)][_0x496244(0xa6)](_0x330e9c[_0x496244(0xa1)][_0x496244(0xc8)])):_0x383f42(_0x330e9c[_0x496244(0xc2)])||_0x2de26c(_0x496244(0xc1),{'chunk':_0x330e9c});}}finally{this[_0x496244(0xa9)]||(this[_0x496244(0xbe)](),this[_0x496244(0xa0)](_0x496244(0xca),this));}}[_0x5e0156(0xb5)](){const _0x4b4963=_0x5e0156;this[_0x4b4963(0xa9)]||(this[_0x4b4963(0xbe)](),this[_0x4b4963(0xa0)](_0x4b4963(0xa8),this));}[_0x5e0156(0xbb)](_0x1c62a1){const _0x58071b=_0x5e0156;return this[_0x58071b(0xb1)][_0x58071b(0xc5)](_0x380969=>_0x380969['id']===_0x1c62a1);}[_0x5e0156(0xd5)](){const _0x56820f=_0x5e0156;this[_0x56820f(0xbd)]||(this[_0x56820f(0xb5)](),this[_0x56820f(0xb1)][_0x56820f(0xc4)](_0x583975=>_0x583975[_0x56820f(0xd5)]()),this[_0x56820f(0xb1)]=[],this[_0x56820f(0xbd)]=!0x0,this[_0x56820f(0xa0)](_0x56820f(0xa5),this),this[_0x56820f(0xae)]());}[_0x5e0156(0xd3)](_0x3c285d){const _0x1ffc57=_0x5e0156,_0x17afbd=new _0xc1f26({'editor':this[_0x1ffc57(0xa7)],'documentContextContent':this[_0x1ffc57(0xd1)]()?.[_0x1ffc57(0xd4)],..._0x3c285d});return this[_0x1ffc57(0xb1)][_0x1ffc57(0xb7)](_0x17afbd),_0x17afbd[_0x1ffc57(0xcf)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1ffc57(0xa0)](_0x1ffc57(0xc7),_0x17afbd),_0x17afbd;}[_0x5e0156(0xce)](_0x1f69d6,_0x47f9e1=!0x1){const _0x50a58a=_0x5e0156;this[_0x50a58a(0xa0)](_0x50a58a(0xce),_0x1f69d6,_0x47f9e1);}[_0x5e0156(0xbe)](){const _0xe84513=_0x5e0156;this[_0xe84513(0xa9)]=!0x0,this[_0xe84513(0xc0)]&&this[_0xe84513(0xc0)][_0xe84513(0xb8)][_0xe84513(0xad)](),this[_0xe84513(0xaf)]&&this[_0xe84513(0xaf)][_0xe84513(0xcd)](),this[_0xe84513(0xc0)]=this[_0xe84513(0xaf)]=void 0x0;}}