@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.4

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.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.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/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.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/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.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/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c948c=_0x3b6d;(function(_0x12abdc,_0xa28818){const _0x4c7b01=_0x3b6d,_0x1f2edf=_0x12abdc();while(!![]){try{const _0x4e76be=-parseInt(_0x4c7b01(0x1e8))/0x1*(-parseInt(_0x4c7b01(0x1fa))/0x2)+parseInt(_0x4c7b01(0x20d))/0x3+-parseInt(_0x4c7b01(0x1f0))/0x4*(-parseInt(_0x4c7b01(0x20f))/0x5)+-parseInt(_0x4c7b01(0x1fc))/0x6+-parseInt(_0x4c7b01(0x1f1))/0x7*(-parseInt(_0x4c7b01(0x1f2))/0x8)+parseInt(_0x4c7b01(0x1f9))/0x9*(-parseInt(_0x4c7b01(0x1ef))/0xa)+-parseInt(_0x4c7b01(0x1fd))/0xb;if(_0x4e76be===_0xa28818)break;else _0x1f2edf['push'](_0x1f2edf['shift']());}catch(_0x18db84){_0x1f2edf['push'](_0x1f2edf['shift']());}}}(_0x1546,0x62a3d));import{ContextPlugin as _0x580643}from'ckeditor5/src/core.js';function _0x1546(){const _0x10ee40=['450515aLLsMT','updateItemLoadingState','delegate','openChat','_historyView','isLoading','view','showConversationHistory','4FjcXTt','removeConversation','get','resizeTabs','history','isMaximized','updateHistoryItemsWithCategories','2628290gUoyHw','12nNTPGK','3968027seorMk','8MWkVNu','selectConversation','setIsMaximized','addTab','plugins','setConversationPinned','editConversationTitle','9KPTJeV','113414ClLttA','showError','283992kNspDW','11034826DAquFm','requires','errorMessage','AIChatHistoryUI','locale','hideError','AI_CHAT_HISTORY_HEADING','context','showResizeButton','setLoadingSkeleton','updateItemTitle','AITabs','updateItems','removeHistoryItem','pluginName','isOfficialPlugin','1960074yqwSjc','isPremiumPlugin'];_0x1546=function(){return _0x10ee40;};return _0x1546();}import{AITabs as _0x1630d4}from'../aitabs/aitabs.js';function _0x3b6d(_0x3b4ff0,_0x2addaf){const _0x154695=_0x1546();return _0x3b6d=function(_0x3b6d40,_0x58c2af){_0x3b6d40=_0x3b6d40-0x1e7;let _0x582e3c=_0x154695[_0x3b6d40];return _0x582e3c;},_0x3b6d(_0x3b4ff0,_0x2addaf);}import{IconAIHistory as _0x3ed23a}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x212b72}from'./ui/aichathistoryview.js';import{getTranslation as _0x35ac13}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x5c948c(0x1e7),_0x5c948c(0x1e9),_0x5c948c(0x1f8),_0x5c948c(0x1f7),_0x5c948c(0x1f3),_0x5c948c(0x212),_0x5c948c(0x1eb)];export class AIChatHistoryUI extends _0x580643{static get[_0x5c948c(0x1fe)](){return[_0x1630d4];}[_0x5c948c(0x213)];static get[_0x5c948c(0x20b)](){const _0x9b4838=_0x5c948c;return _0x9b4838(0x200);}static get[_0x5c948c(0x20c)](){return!0x0;}static get[_0x5c948c(0x20e)](){return!0x0;}constructor(_0x2cb1ea){const _0x3e3515=_0x5c948c;super(_0x2cb1ea);const _0x358b62=this[_0x3e3515(0x204)][_0x3e3515(0x1f6)][_0x3e3515(0x1ea)](_0x3e3515(0x208));this[_0x3e3515(0x213)]=new _0x212b72(this[_0x3e3515(0x204)][_0x3e3515(0x201)],_0x358b62[_0x3e3515(0x205)]),this[_0x3e3515(0x213)][_0x3e3515(0x211)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x358b62[_0x3e3515(0x215)][_0x3e3515(0x1f5)]({'id':_0x3e3515(0x1ec),'buttonLabel':_0x35ac13(this[_0x3e3515(0x204)][_0x3e3515(0x201)],_0x3e3515(0x203)),'buttonIcon':_0x3ed23a,'order':0x0,'content':this[_0x3e3515(0x213)]});}[_0x5c948c(0x20a)](_0x5413d3){const _0x4e71f8=_0x5c948c;this[_0x4e71f8(0x213)][_0x4e71f8(0x20a)](_0x5413d3);}[_0x5c948c(0x209)](_0x373df4){const _0x5b9b79=_0x5c948c;this[_0x5b9b79(0x213)][_0x5b9b79(0x1ee)](_0x373df4);}[_0x5c948c(0x207)](_0x221583,_0x1bdd7d){const _0x2a24d9=_0x5c948c;this[_0x2a24d9(0x213)][_0x2a24d9(0x207)](_0x221583,_0x1bdd7d);}[_0x5c948c(0x210)](_0x15d0b4,_0x3a143d,_0x3e383f){const _0x36b5ce=_0x5c948c;this[_0x36b5ce(0x213)][_0x36b5ce(0x210)](_0x15d0b4,_0x3a143d,_0x3e383f);}[_0x5c948c(0x206)](_0xa3beef){const _0x54d301=_0x5c948c;this[_0x54d301(0x213)][_0x54d301(0x214)]=_0xa3beef;}[_0x5c948c(0x1fb)](_0x391d99){const _0x1711aa=_0x5c948c;this[_0x1711aa(0x213)][_0x1711aa(0x1ff)]=_0x391d99;}[_0x5c948c(0x202)](){const _0x315d33=_0x5c948c;this[_0x315d33(0x213)][_0x315d33(0x1ff)]='';}[_0x5c948c(0x1f4)](_0x1945f6){const _0x233612=_0x5c948c;this[_0x233612(0x213)][_0x233612(0x1ed)]=_0x1945f6;}}
23
+ const _0x22d1df=_0x35a2;(function(_0x33e644,_0x5ee0bd){const _0x1dd3cc=_0x35a2,_0x343d95=_0x33e644();while(!![]){try{const _0x53b28c=-parseInt(_0x1dd3cc(0xd9))/0x1*(-parseInt(_0x1dd3cc(0xee))/0x2)+-parseInt(_0x1dd3cc(0xd6))/0x3+parseInt(_0x1dd3cc(0xde))/0x4*(parseInt(_0x1dd3cc(0xf2))/0x5)+-parseInt(_0x1dd3cc(0xe9))/0x6*(-parseInt(_0x1dd3cc(0xfd))/0x7)+-parseInt(_0x1dd3cc(0xd3))/0x8+-parseInt(_0x1dd3cc(0xf4))/0x9*(parseInt(_0x1dd3cc(0xff))/0xa)+parseInt(_0x1dd3cc(0xed))/0xb*(parseInt(_0x1dd3cc(0xf1))/0xc);if(_0x53b28c===_0x5ee0bd)break;else _0x343d95['push'](_0x343d95['shift']());}catch(_0x2c18a8){_0x343d95['push'](_0x343d95['shift']());}}}(_0x352e,0x92d18));import{ContextPlugin as _0x18b6ea}from'ckeditor5/src/core.js';import{AITabs as _0x314b2d}from'../aitabs/aitabs.js';function _0x352e(){const _0x46ee15=['14LLvOCY','view','470GPydVW','get','history','setLoadingSkeleton','9060280dhFXjv','errorMessage','isLoading','2997180ogUulh','selectConversation','updateItems','229vOOxHo','_historyView','plugins','isOfficialPlugin','removeHistoryItem','1164HTJCLx','updateHistoryItemsWithCategories','hideError','locale','requires','updateItemLoadingState','isMaximized','AI_CHAT_HISTORY_HEADING','editConversationTitle','resizeTabs','AIChatHistoryUI','648426xLrPha','setConversationPinned','showResizeButton','isPremiumPlugin','11jacxXU','2338eeIPUP','pluginName','removeConversation','14080092xlBExd','19555tkTmkJ','showError','11934YivIZb','setIsMaximized','AITabs','openChat','addTab','showConversationHistory','updateItemTitle','delegate','context'];_0x352e=function(){return _0x46ee15;};return _0x352e();}import{IconAIHistory as _0x50e2a4}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x53b930}from'./ui/aichathistoryview.js';import{getTranslation as _0x16cc9d}from'../aicore/utils/common-translations.js';function _0x35a2(_0x49d9b9,_0x1bcea7){const _0x352eed=_0x352e();return _0x35a2=function(_0x35a2c7,_0x457c34){_0x35a2c7=_0x35a2c7-0xd0;let _0x18240b=_0x352eed[_0x35a2c7];return _0x18240b;},_0x35a2(_0x49d9b9,_0x1bcea7);}import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x22d1df(0xf9),_0x22d1df(0xf0),_0x22d1df(0xe6),_0x22d1df(0xea),_0x22d1df(0xd7),_0x22d1df(0xf7),_0x22d1df(0xe7)];export class AIChatHistoryUI extends _0x18b6ea{static get[_0x22d1df(0xe2)](){return[_0x314b2d];}[_0x22d1df(0xda)];static get[_0x22d1df(0xef)](){const _0x50e0d0=_0x22d1df;return _0x50e0d0(0xe8);}static get[_0x22d1df(0xdc)](){return!0x0;}static get[_0x22d1df(0xec)](){return!0x0;}constructor(_0x2176cf){const _0x452264=_0x22d1df;super(_0x2176cf);const _0x4b907f=this[_0x452264(0xfc)][_0x452264(0xdb)][_0x452264(0xd0)](_0x452264(0xf6));this[_0x452264(0xda)]=new _0x53b930(this[_0x452264(0xfc)][_0x452264(0xe1)],_0x4b907f[_0x452264(0xeb)]),this[_0x452264(0xda)][_0x452264(0xfb)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x4b907f[_0x452264(0xfe)][_0x452264(0xf8)]({'id':_0x452264(0xd1),'buttonLabel':_0x16cc9d(this[_0x452264(0xfc)][_0x452264(0xe1)],_0x452264(0xe5)),'buttonIcon':_0x50e2a4,'order':0x0,'content':this[_0x452264(0xda)]});}[_0x22d1df(0xdd)](_0x48d61e){const _0x21822a=_0x22d1df;this[_0x21822a(0xda)][_0x21822a(0xdd)](_0x48d61e);}[_0x22d1df(0xd8)](_0xbe6cf8){const _0x2edcbd=_0x22d1df;this[_0x2edcbd(0xda)][_0x2edcbd(0xdf)](_0xbe6cf8);}[_0x22d1df(0xfa)](_0x5c5bab,_0x192971){const _0x109986=_0x22d1df;this[_0x109986(0xda)][_0x109986(0xfa)](_0x5c5bab,_0x192971);}[_0x22d1df(0xe3)](_0x109ddf,_0x828c50,_0x45e8b5){const _0x42792e=_0x22d1df;this[_0x42792e(0xda)][_0x42792e(0xe3)](_0x109ddf,_0x828c50,_0x45e8b5);}[_0x22d1df(0xd2)](_0x2f5483){const _0x569dea=_0x22d1df;this[_0x569dea(0xda)][_0x569dea(0xd5)]=_0x2f5483;}[_0x22d1df(0xf3)](_0x12d637){const _0x54f60f=_0x22d1df;this[_0x54f60f(0xda)][_0x54f60f(0xd4)]=_0x12d637;}[_0x22d1df(0xe0)](){const _0x43b52d=_0x22d1df;this[_0x43b52d(0xda)][_0x43b52d(0xd4)]='';}[_0x22d1df(0xf5)](_0x2e5219){const _0x14cb4d=_0x22d1df;this[_0x14cb4d(0xda)][_0x14cb4d(0xe4)]=_0x2e5219;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x980075=_0x166d;function _0x166d(_0x1e9529,_0x82c83b){const _0x1ad555=_0x1ad5();return _0x166d=function(_0x166d65,_0x50a9d2){_0x166d65=_0x166d65-0x1ce;let _0x44fc3b=_0x1ad555[_0x166d65];return _0x44fc3b;},_0x166d(_0x1e9529,_0x82c83b);}(function(_0x120141,_0x225023){const _0xf1009c=_0x166d,_0x5207f1=_0x120141();while(!![]){try{const _0x3a559b=-parseInt(_0xf1009c(0x1f7))/0x1+-parseInt(_0xf1009c(0x1d1))/0x2*(-parseInt(_0xf1009c(0x1ef))/0x3)+parseInt(_0xf1009c(0x1e8))/0x4*(parseInt(_0xf1009c(0x1e4))/0x5)+parseInt(_0xf1009c(0x1fe))/0x6*(parseInt(_0xf1009c(0x1d4))/0x7)+parseInt(_0xf1009c(0x1f0))/0x8*(parseInt(_0xf1009c(0x1dc))/0x9)+-parseInt(_0xf1009c(0x1e6))/0xa*(-parseInt(_0xf1009c(0x1f1))/0xb)+-parseInt(_0xf1009c(0x1f4))/0xc*(parseInt(_0xf1009c(0x1da))/0xd);if(_0x3a559b===_0x225023)break;else _0x5207f1['push'](_0x5207f1['shift']());}catch(_0x39525f){_0x5207f1['push'](_0x5207f1['shift']());}}}(_0x1ad5,0xc8877));import{EmitterMixin as _0x4bc932}from'ckeditor5/src/utils.js';function _0x1ad5(){const _0x1f232f=['getFullYear','3527865mVkzhL','updateItemTitle','items','getResult','loadItems','getItems','itemRemoved','getItem','1775hdXuDb','updatePinned','91030sgYZrm','execute','2788glrcZg','updateTitle','removeItem','fire','group','error','fetchConversations','23556mYyvXg','24CNZLZd','1661fkfGNd','updateItemPinned','deleteConversation','12vCxaUk','init','filter','336286qiAkLj','splice','getTime','getMonth','findIndex','pinned','itemsLoaded','402FfpKMj','addItem','map','find','createdAt','258AIsUOj','push','getConversations','53641BMrkvo','connector','from','itemUpdated','getDate','updateConversation','41166047xCzjfc'];_0x1ad5=function(){return _0x1f232f;};return _0x1ad5();}import{AIChatHistoryItem as _0x1c4424}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x4bc932(){[_0x980075(0x1de)]=[];[_0x980075(0x1d5)];[_0x980075(0x1ec)];constructor({connector:_0x44e401,group:_0x2e07ff}){const _0x5becf9=_0x980075;super(),this[_0x5becf9(0x1d5)]=_0x44e401,this[_0x5becf9(0x1ec)]=_0x2e07ff;}async[_0x980075(0x1f5)](){const _0x39d958=_0x980075;try{const _0x36ee15=this[_0x39d958(0x1d5)][_0x39d958(0x1ee)](this[_0x39d958(0x1ec)]),_0x10ebe1=await _0x36ee15[_0x39d958(0x1d3)]();this[_0x39d958(0x1e0)](_0x10ebe1);}catch(_0x3588f6){this[_0x39d958(0x1eb)](_0x39d958(0x1ed),{'error':_0x3588f6,'operation':_0x39d958(0x1f5)});}}[_0x980075(0x1ff)](_0x41e48c){const _0x1bd82b=_0x980075;this[_0x1bd82b(0x1de)][_0x1bd82b(0x1d2)](_0x41e48c);}async[_0x980075(0x1ea)](_0xa3694a){const _0x4117bf=_0x980075,_0x452c30=this[_0x4117bf(0x1de)][_0x4117bf(0x1fb)](_0x320de8=>_0x320de8['id']===_0xa3694a);if(-0x1===_0x452c30)return!0x1;try{return await this[_0x4117bf(0x1d5)][_0x4117bf(0x1f3)](_0xa3694a)[_0x4117bf(0x1e7)](),this[_0x4117bf(0x1de)][_0x4117bf(0x1f8)](_0x452c30,0x1),this[_0x4117bf(0x1eb)](_0x4117bf(0x1e2),{'itemId':_0xa3694a}),!0x0;}catch(_0x1a0e01){return this[_0x4117bf(0x1eb)](_0x4117bf(0x1ed),{'error':_0x1a0e01,'operation':_0x4117bf(0x1ea),'itemId':_0xa3694a}),!0x1;}}[_0x980075(0x1e3)](_0x5ba6a0){const _0x45de20=_0x980075;return this[_0x45de20(0x1de)][_0x45de20(0x1cf)](_0x4f8b82=>_0x4f8b82['id']===_0x5ba6a0);}async[_0x980075(0x1dd)](_0x414a39,_0x1a8657){const _0x3b7ce1=_0x980075,_0x51fbda=this[_0x3b7ce1(0x1e3)](_0x414a39);if(!_0x51fbda)return!0x1;try{return await this[_0x3b7ce1(0x1d5)][_0x3b7ce1(0x1d9)](_0x414a39,{'title':_0x1a8657})[_0x3b7ce1(0x1df)](),_0x51fbda[_0x3b7ce1(0x1e9)](_0x1a8657),this[_0x3b7ce1(0x1eb)](_0x3b7ce1(0x1d7),{'itemId':_0x414a39,'updates':{'title':_0x1a8657}}),!0x0;}catch(_0x1e3842){return this[_0x3b7ce1(0x1eb)](_0x3b7ce1(0x1ed),{'error':_0x1e3842,'operation':_0x3b7ce1(0x1dd),'itemId':_0x414a39}),!0x1;}}async[_0x980075(0x1f2)](_0x53eaac,_0x3cd426){const _0x1b5322=_0x980075,_0x5b5dab=this[_0x1b5322(0x1e3)](_0x53eaac);if(!_0x5b5dab)return!0x1;try{return await this[_0x1b5322(0x1d5)][_0x1b5322(0x1d9)](_0x53eaac,{'pinned':_0x3cd426})[_0x1b5322(0x1df)](),_0x5b5dab[_0x1b5322(0x1e5)](_0x3cd426),this[_0x1b5322(0x1eb)](_0x1b5322(0x1d7),{'itemId':_0x53eaac,'updates':{'pinned':_0x3cd426}}),!0x0;}catch(_0x41e387){return this[_0x1b5322(0x1eb)](_0x1b5322(0x1ed),{'error':_0x41e387,'operation':_0x1b5322(0x1f2),'itemId':_0x53eaac}),!0x1;}}[_0x980075(0x1e0)](_0x32a550){const _0x307b32=_0x980075;try{this[_0x307b32(0x1de)]=[],_0x32a550[_0x307b32(0x1ce)](_0x4d5fb2=>{const _0x39c61b=_0x307b32;this[_0x39c61b(0x1ff)](new _0x1c4424(_0x4d5fb2));}),this[_0x307b32(0x1eb)](_0x307b32(0x1fd),{'items':[...this[_0x307b32(0x1de)]]});}catch(_0x4fc4f4){this[_0x307b32(0x1eb)](_0x307b32(0x1ed),{'error':_0x4fc4f4,'operation':_0x307b32(0x1e0)});}}[_0x980075(0x1e1)](_0x48e114={}){const _0x298270=_0x980075,_0x50ebbc=void 0x0!==_0x48e114[_0x298270(0x1fc)]&&_0x48e114[_0x298270(0x1fc)],_0x3c9db0=_0x48e114[_0x298270(0x1d6)]?new Date(_0x48e114[_0x298270(0x1d6)][_0x298270(0x1db)](),_0x48e114[_0x298270(0x1d6)][_0x298270(0x1fa)](),_0x48e114[_0x298270(0x1d6)][_0x298270(0x1d8)]()):null,_0x1ce580=_0x48e114['to']?new Date(_0x48e114['to'][_0x298270(0x1db)](),_0x48e114['to'][_0x298270(0x1fa)](),_0x48e114['to'][_0x298270(0x1d8)]()):null;return this[_0x298270(0x1de)][_0x298270(0x1f6)](_0x40ea23=>{const _0x260718=_0x298270;if(_0x40ea23[_0x260718(0x1fc)]!==_0x50ebbc)return!0x1;if(_0x1ce580){const _0x4f0903=new Date(_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1db)](),_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1fa)](),_0x40ea23[_0x260718(0x1d0)][_0x260718(0x1d8)]());return _0x3c9db0?_0x3c9db0[_0x260718(0x1f9)]()===_0x1ce580[_0x260718(0x1f9)]()?_0x4f0903[_0x260718(0x1f9)]()===_0x3c9db0[_0x260718(0x1f9)]():_0x4f0903<_0x1ce580&&_0x4f0903>=_0x3c9db0:_0x4f0903<_0x1ce580;}return!0x0;});}}
23
+ function _0x221f(_0x6d33d9,_0x517af8){const _0x1a05e8=_0x1a05();return _0x221f=function(_0x221fa9,_0x39f010){_0x221fa9=_0x221fa9-0xa1;let _0x203cd5=_0x1a05e8[_0x221fa9];return _0x203cd5;},_0x221f(_0x6d33d9,_0x517af8);}const _0xb9e7cd=_0x221f;function _0x1a05(){const _0x53ef30=['getItem','3145648kjnrAu','createdAt','fire','filter','getMonth','getDate','fetchConversations','itemRemoved','getFullYear','1715931yCAlrI','map','updateConversation','splice','updateItemPinned','updateItemTitle','2236199LESqeX','items','itemsLoaded','getItems','1875269qWYfVj','getResult','84hZyErf','itemUpdated','findIndex','error','545995QkKgoh','init','group','updatePinned','30416560SXfSNC','from','loadItems','connector','pinned','removeItem','find','execute','getConversations','addItem','950062tlfPZr','getTime','deleteConversation','updateTitle','push'];_0x1a05=function(){return _0x53ef30;};return _0x1a05();}(function(_0x46c0e1,_0x1990a8){const _0xef0f9f=_0x221f,_0x5a1eff=_0x46c0e1();while(!![]){try{const _0x217d40=-parseInt(_0xef0f9f(0xa9))/0x1+parseInt(_0xef0f9f(0xbd))/0x2+parseInt(_0xef0f9f(0xcc))/0x3+-parseInt(_0xef0f9f(0xc3))/0x4+-parseInt(_0xef0f9f(0xaf))/0x5*(parseInt(_0xef0f9f(0xab))/0x6)+parseInt(_0xef0f9f(0xa5))/0x7+parseInt(_0xef0f9f(0xb3))/0x8;if(_0x217d40===_0x1990a8)break;else _0x5a1eff['push'](_0x5a1eff['shift']());}catch(_0x2db3ce){_0x5a1eff['push'](_0x5a1eff['shift']());}}}(_0x1a05,0xeec94));import{EmitterMixin as _0xb9b9d0}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x17e9d3}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0xb9b9d0(){[_0xb9e7cd(0xa6)]=[];[_0xb9e7cd(0xb6)];[_0xb9e7cd(0xb1)];constructor({connector:_0x460bb2,group:_0x46efb7}){const _0x1e3e6c=_0xb9e7cd;super(),this[_0x1e3e6c(0xb6)]=_0x460bb2,this[_0x1e3e6c(0xb1)]=_0x46efb7;}async[_0xb9e7cd(0xb0)](){const _0x4d2c0f=_0xb9e7cd;try{const _0x171292=this[_0x4d2c0f(0xb6)][_0x4d2c0f(0xc9)](this[_0x4d2c0f(0xb1)]),_0xdf9ce6=await _0x171292[_0x4d2c0f(0xbb)]();this[_0x4d2c0f(0xb5)](_0xdf9ce6);}catch(_0x132955){this[_0x4d2c0f(0xc5)](_0x4d2c0f(0xae),{'error':_0x132955,'operation':_0x4d2c0f(0xb0)});}}[_0xb9e7cd(0xbc)](_0x4285ff){const _0x29975d=_0xb9e7cd;this[_0x29975d(0xa6)][_0x29975d(0xc1)](_0x4285ff);}async[_0xb9e7cd(0xb8)](_0x228d1b){const _0x52b6ba=_0xb9e7cd,_0x5bad0a=this[_0x52b6ba(0xa6)][_0x52b6ba(0xad)](_0x34361e=>_0x34361e['id']===_0x228d1b);if(-0x1===_0x5bad0a)return!0x1;try{return await this[_0x52b6ba(0xb6)][_0x52b6ba(0xbf)](_0x228d1b)[_0x52b6ba(0xba)](),this[_0x52b6ba(0xa6)][_0x52b6ba(0xa2)](_0x5bad0a,0x1),this[_0x52b6ba(0xc5)](_0x52b6ba(0xca),{'itemId':_0x228d1b}),!0x0;}catch(_0x311a01){return this[_0x52b6ba(0xc5)](_0x52b6ba(0xae),{'error':_0x311a01,'operation':_0x52b6ba(0xb8),'itemId':_0x228d1b}),!0x1;}}[_0xb9e7cd(0xc2)](_0x4d179d){const _0x1097aa=_0xb9e7cd;return this[_0x1097aa(0xa6)][_0x1097aa(0xb9)](_0x473638=>_0x473638['id']===_0x4d179d);}async[_0xb9e7cd(0xa4)](_0x3bd758,_0x466114){const _0x1f6e0d=_0xb9e7cd,_0x5a81ab=this[_0x1f6e0d(0xc2)](_0x3bd758);if(!_0x5a81ab)return!0x1;try{return await this[_0x1f6e0d(0xb6)][_0x1f6e0d(0xa1)](_0x3bd758,{'title':_0x466114})[_0x1f6e0d(0xaa)](),_0x5a81ab[_0x1f6e0d(0xc0)](_0x466114),this[_0x1f6e0d(0xc5)](_0x1f6e0d(0xac),{'itemId':_0x3bd758,'updates':{'title':_0x466114}}),!0x0;}catch(_0x3359dc){return this[_0x1f6e0d(0xc5)](_0x1f6e0d(0xae),{'error':_0x3359dc,'operation':_0x1f6e0d(0xa4),'itemId':_0x3bd758}),!0x1;}}async[_0xb9e7cd(0xa3)](_0x3825e6,_0x44e318){const _0x4eca3d=_0xb9e7cd,_0x41a6dd=this[_0x4eca3d(0xc2)](_0x3825e6);if(!_0x41a6dd)return!0x1;try{return await this[_0x4eca3d(0xb6)][_0x4eca3d(0xa1)](_0x3825e6,{'pinned':_0x44e318})[_0x4eca3d(0xaa)](),_0x41a6dd[_0x4eca3d(0xb2)](_0x44e318),this[_0x4eca3d(0xc5)](_0x4eca3d(0xac),{'itemId':_0x3825e6,'updates':{'pinned':_0x44e318}}),!0x0;}catch(_0x4bddf0){return this[_0x4eca3d(0xc5)](_0x4eca3d(0xae),{'error':_0x4bddf0,'operation':_0x4eca3d(0xa3),'itemId':_0x3825e6}),!0x1;}}[_0xb9e7cd(0xb5)](_0x486833){const _0x3e840c=_0xb9e7cd;try{this[_0x3e840c(0xa6)]=[],_0x486833[_0x3e840c(0xcd)](_0x55c8b9=>{const _0x4732b4=_0x3e840c;this[_0x4732b4(0xbc)](new _0x17e9d3(_0x55c8b9));}),this[_0x3e840c(0xc5)](_0x3e840c(0xa7),{'items':[...this[_0x3e840c(0xa6)]]});}catch(_0x3c9600){this[_0x3e840c(0xc5)](_0x3e840c(0xae),{'error':_0x3c9600,'operation':_0x3e840c(0xb5)});}}[_0xb9e7cd(0xa8)](_0x2b7a27={}){const _0x1ee965=_0xb9e7cd,_0x4bbae7=void 0x0!==_0x2b7a27[_0x1ee965(0xb7)]&&_0x2b7a27[_0x1ee965(0xb7)],_0x5216ec=_0x2b7a27[_0x1ee965(0xb4)]?new Date(_0x2b7a27[_0x1ee965(0xb4)][_0x1ee965(0xcb)](),_0x2b7a27[_0x1ee965(0xb4)][_0x1ee965(0xc7)](),_0x2b7a27[_0x1ee965(0xb4)][_0x1ee965(0xc8)]()):null,_0x2a6ab3=_0x2b7a27['to']?new Date(_0x2b7a27['to'][_0x1ee965(0xcb)](),_0x2b7a27['to'][_0x1ee965(0xc7)](),_0x2b7a27['to'][_0x1ee965(0xc8)]()):null;return this[_0x1ee965(0xa6)][_0x1ee965(0xc6)](_0x237bf3=>{const _0x53d966=_0x1ee965;if(_0x237bf3[_0x53d966(0xb7)]!==_0x4bbae7)return!0x1;if(_0x2a6ab3){const _0x3a930e=new Date(_0x237bf3[_0x53d966(0xc4)][_0x53d966(0xcb)](),_0x237bf3[_0x53d966(0xc4)][_0x53d966(0xc7)](),_0x237bf3[_0x53d966(0xc4)][_0x53d966(0xc8)]());return _0x5216ec?_0x5216ec[_0x53d966(0xbe)]()===_0x2a6ab3[_0x53d966(0xbe)]()?_0x3a930e[_0x53d966(0xbe)]()===_0x5216ec[_0x53d966(0xbe)]():_0x3a930e<_0x2a6ab3&&_0x3a930e>=_0x5216ec:_0x3a930e<_0x2a6ab3;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x56e1(_0x16e54a,_0x445798){var _0x245ebe=_0x245e();return _0x56e1=function(_0x56e1ef,_0x21aece){_0x56e1ef=_0x56e1ef-0x1a9;var _0x26bced=_0x245ebe[_0x56e1ef];return _0x26bced;},_0x56e1(_0x16e54a,_0x445798);}var _0x42ab6b=_0x56e1;(function(_0x198fd1,_0x3a718d){var _0x2ee93e=_0x56e1,_0x2e7c90=_0x198fd1();while(!![]){try{var _0x1545dd=parseInt(_0x2ee93e(0x1ad))/0x1+-parseInt(_0x2ee93e(0x1aa))/0x2+-parseInt(_0x2ee93e(0x1af))/0x3*(parseInt(_0x2ee93e(0x1ab))/0x4)+parseInt(_0x2ee93e(0x1b1))/0x5+parseInt(_0x2ee93e(0x1b3))/0x6+parseInt(_0x2ee93e(0x1b4))/0x7*(-parseInt(_0x2ee93e(0x1b2))/0x8)+-parseInt(_0x2ee93e(0x1b6))/0x9;if(_0x1545dd===_0x3a718d)break;else _0x2e7c90['push'](_0x2e7c90['shift']());}catch(_0x2adf00){_0x2e7c90['push'](_0x2e7c90['shift']());}}}(_0x245e,0x2c156));function _0x245e(){var _0x15f44c=['3184335MkGTDD','set','createdAt','updatePinned','169702UoCSue','3472NDJaCB','updateTitle','254006uWFWiz','updatedAt','381vUSOOC','title','1215385uKJaOa','7432iyeLTt','1516938iwMkVo','154cbQkcO','pinned'];_0x245e=function(){return _0x15f44c;};return _0x245e();}import{ObservableMixin as _0x340112}from'ckeditor5/src/utils.js';import{escape as _0x45857e}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x340112(){['id'];[_0x42ab6b(0x1b8)];constructor({id:_0xab8567,title:_0x54d040,createdAt:_0x1feafa,updatedAt:_0x47b9cd,pinned:_0x2eb0f5}){var _0x25c2cb=_0x42ab6b;super(),this['id']=_0xab8567,this[_0x25c2cb(0x1b8)]=new Date(_0x1feafa),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1b0),_0x54d040),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1ae),_0x47b9cd?new Date(_0x47b9cd):null),this[_0x25c2cb(0x1b7)](_0x25c2cb(0x1b5),_0x2eb0f5||!0x1);}[_0x42ab6b(0x1ac)](_0x41e29e){var _0x2d0cd7=_0x42ab6b;this[_0x2d0cd7(0x1b7)](_0x2d0cd7(0x1b0),_0x45857e(_0x41e29e)),this[_0x2d0cd7(0x1ae)]=new Date();}[_0x42ab6b(0x1a9)](_0x394e4c){var _0x4c7b28=_0x42ab6b;this[_0x4c7b28(0x1b7)](_0x4c7b28(0x1b5),_0x394e4c),this[_0x4c7b28(0x1ae)]=new Date();}}
23
+ var _0x42beca=_0x2c27;(function(_0x5b65cc,_0x552be4){var _0x2488ed=_0x2c27,_0x20bc84=_0x5b65cc();while(!![]){try{var _0x4fced8=parseInt(_0x2488ed(0x19b))/0x1*(parseInt(_0x2488ed(0x1a6))/0x2)+-parseInt(_0x2488ed(0x1a5))/0x3*(parseInt(_0x2488ed(0x1a1))/0x4)+-parseInt(_0x2488ed(0x1a3))/0x5*(-parseInt(_0x2488ed(0x19f))/0x6)+parseInt(_0x2488ed(0x1a7))/0x7+parseInt(_0x2488ed(0x1a2))/0x8+parseInt(_0x2488ed(0x199))/0x9*(-parseInt(_0x2488ed(0x1a8))/0xa)+-parseInt(_0x2488ed(0x1aa))/0xb;if(_0x4fced8===_0x552be4)break;else _0x20bc84['push'](_0x20bc84['shift']());}catch(_0x86b69b){_0x20bc84['push'](_0x20bc84['shift']());}}}(_0x104b,0xaa29f));import{ObservableMixin as _0x1010ba}from'ckeditor5/src/utils.js';function _0x2c27(_0xd90de5,_0x3ac3f1){var _0x104b31=_0x104b();return _0x2c27=function(_0x2c278b,_0x351411){_0x2c278b=_0x2c278b-0x199;var _0x5dca5c=_0x104b31[_0x2c278b];return _0x5dca5c;},_0x2c27(_0xd90de5,_0x3ac3f1);}function _0x104b(){var _0x14fe25=['526842ZxuIDX','title','735409ZoRQoL','updatePinned','set','createdAt','12SQxNIn','updateTitle','28wmrgQT','5272824hgSTbV','575325ctWbuK','pinned','479421aZHpQu','2gwPlhS','8599087udDDXb','10PPgIIV','updatedAt','10767955ezljVR'];_0x104b=function(){return _0x14fe25;};return _0x104b();}import{escape as _0x2328b0}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x1010ba(){['id'];[_0x42beca(0x19e)];constructor({id:_0x526dea,title:_0x2078a3,createdAt:_0x34d513,updatedAt:_0x3e4adb,pinned:_0x54c135}){var _0x54d154=_0x42beca;super(),this['id']=_0x526dea,this[_0x54d154(0x19e)]=new Date(_0x34d513),this[_0x54d154(0x19d)](_0x54d154(0x19a),_0x2078a3),this[_0x54d154(0x19d)](_0x54d154(0x1a9),_0x3e4adb?new Date(_0x3e4adb):null),this[_0x54d154(0x19d)](_0x54d154(0x1a4),_0x54c135||!0x1);}[_0x42beca(0x1a0)](_0x3222c5){var _0x4911b5=_0x42beca;this[_0x4911b5(0x19d)](_0x4911b5(0x19a),_0x2328b0(_0x3222c5)),this[_0x4911b5(0x1a9)]=new Date();}[_0x42beca(0x19c)](_0x3e90fe){var _0x4ec78f=_0x42beca;this[_0x4ec78f(0x19d)](_0x4ec78f(0x1a4),_0x3e90fe),this[_0x4ec78f(0x1a9)]=new Date();}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3b12(){const _0x442fc5=['execute','children','5714170WKiBow','AI_CHAT_HISTORY_LOADING_REMOVING','then','fire','ck-ai-chat-history__item-actions','click','LOADING_LABELS','set','bind','updateTitle','5391YwFmcA','_createEditInputView','locale','buttonView','selectConversation','ck-ai-chat-history__item-check-container','key','_createCheckView','value','AI_CHAT_HISTORY_EDIT_NAME','match','ck-ai-chat-history__item--active','ck-ai-loader__text','ck-confirm-view-cancel','tiny','Enter','isVisible','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-content','300020iRAKfN','_createSpinnerView','AI_CHAT_HISTORY_CANCEL','4FJzSox','ck-hidden','_createPinButtonView','AI_CHAT_HISTORY_LOADING_PINNING','editConversationTitle','443148moAwua','removeConversation','highlightText','createCollection','8UOcISF','add','addMany','AI_CHAT_HISTORY_REMOVE','isEdit','ck-ai-chat-history__item-main-content','AI_CHAT_HISTORY_LOADING_UNPINNING','panelView','edit:cancel','63WlfGMg','actions','text','mainContent','div','withText','_commitEditInputValue','_createMenuDropdownView','setConversationPinned','ck-ai-chat-history__item-check','isOn','AI_CHAT_HISTORY_LOADING_RENAMING','_titleView','updateLoadingState','51798IgrHmn','ck-confirm-view-submit','2200075LQIVdh','ck-ai-chat-history__item','extendTemplate','ck-ai-loader','element','items','ck-ai-chat-history__item-row','clear','string','AI_CHAT_HISTORY_ACCEPT','ck-ai-chat-history__item-title','238803HLrSwr','bindTemplate','showConfirm','isMatching','pinned','ck-ai-chat-history__item-date','panelPosition','focus','_createAcceptEditButtonView','loadingState','setTemplate','span','ck-ai-chat-history__item--edit','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','change:isEdit','listitem','_createCancelEditButtonView','AI_CHAT_HISTORY_REMOVE_CONFIRM','label'];_0x3b12=function(){return _0x442fc5;};return _0x3b12();}const _0xf98b64=_0x1060;(function(_0x54d561,_0x32cc7c){const _0x461779=_0x1060,_0x8a5fef=_0x54d561();while(!![]){try{const _0x6324cc=parseInt(_0x461779(0x180))/0x1+parseInt(_0x461779(0x188))/0x2+-parseInt(_0x461779(0x1b0))/0x3+-parseInt(_0x461779(0x183))/0x4*(-parseInt(_0x461779(0x1a5))/0x5)+-parseInt(_0x461779(0x1a3))/0x6*(parseInt(_0x461779(0x195))/0x7)+-parseInt(_0x461779(0x18c))/0x8*(-parseInt(_0x461779(0x1cf))/0x9)+-parseInt(_0x461779(0x1c5))/0xa;if(_0x6324cc===_0x32cc7c)break;else _0x8a5fef['push'](_0x8a5fef['shift']());}catch(_0x1fd7a9){_0x8a5fef['push'](_0x8a5fef['shift']());}}}(_0x3b12,0x39015));import{ListItemView as _0x1a6f75,HighlightedTextView as _0x41f5c0,ButtonView as _0x39c900,ListView as _0x199cb3,IconView as _0x591a5c,createDropdown as _0x248066,InputTextView as _0x18be3d}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x5e899e,IconPin as _0x5c8947,IconCheck as _0x334e63,IconCancel as _0x5f5275}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x508adb,ConfirmMixin as _0x2a0975}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xce7a26}from'es-toolkit/compat';import{AISpinnerView as _0x36d757}from'../../aicore/ui/aispinner.js';function _0x1060(_0x2a3608,_0x3e476b){const _0x3b1226=_0x3b12();return _0x1060=function(_0x10602f,_0x98f7ae){_0x10602f=_0x10602f-0x17e;let _0x496b4f=_0x3b1226[_0x10602f];return _0x496b4f;},_0x1060(_0x2a3608,_0x3e476b);}import{getTranslation as _0x16a506}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
- _0x2a0975(_0x1a6f75){['id'];static [_0xf98b64(0x1cb)]={'remove':_0xf98b64(0x1c6),'rename':_0xf98b64(0x1a0),'pin':_0xf98b64(0x186),'unpin':_0xf98b64(0x192)};[_0xf98b64(0x196)];[_0xf98b64(0x198)];[_0xf98b64(0x1a1)];constructor(_0x163551,_0x6450f5){const _0x3ec23f=_0xf98b64;super(_0x163551);const _0x1c2251=this[_0x3ec23f(0x1b1)];this[_0x3ec23f(0x1cc)](_0x3ec23f(0x190),!0x1),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1df),!0x0),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1b4),!!_0x6450f5[_0x3ec23f(0x1b4)]),this[_0x3ec23f(0x1cc)](_0x3ec23f(0x1b9),null),this['id']=_0x6450f5['id'];const {title:_0x33de2e,createdAt:_0x18af2e,active:_0x102ec4=!0x1}=_0x6450f5;this[_0x3ec23f(0x1a1)]=new _0x41f5c0(),this[_0x3ec23f(0x1a1)][_0x3ec23f(0x197)]=_0x33de2e,this[_0x3ec23f(0x1a1)][_0x3ec23f(0x1a7)]({'attributes':{'class':[_0x3ec23f(0x1af)]}});const _0x214484=this[_0x3ec23f(0x1d6)](),_0x139892=this[_0x3ec23f(0x185)](_0x163551),_0x554acd=this[_0x3ec23f(0x19c)](),_0x5ce52e=this[_0x3ec23f(0x1d0)](_0x163551,_0x33de2e),_0x3768ec=this[_0x3ec23f(0x1b8)](_0x163551,_0x5ce52e),_0x3efd7d=this[_0x3ec23f(0x1c0)](_0x163551,_0x5ce52e);this[_0x3ec23f(0x196)]=this[_0x3ec23f(0x18b)](),this[_0x3ec23f(0x198)]=this[_0x3ec23f(0x18b)](),this[_0x3ec23f(0x198)][_0x3ec23f(0x18d)](this[_0x3ec23f(0x1a1)]),this[_0x3ec23f(0x196)][_0x3ec23f(0x18d)](_0x139892),this[_0x3ec23f(0x196)][_0x3ec23f(0x18d)](_0x554acd),this['on'](_0x3ec23f(0x1be),(_0x549e81,_0x4d63cf,_0x20e5f9)=>{const _0x296bb4=_0x3ec23f;this[_0x296bb4(0x196)][_0x296bb4(0x1ac)](),this[_0x296bb4(0x198)][_0x296bb4(0x1ac)](),_0x20e5f9?(this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x3768ec),this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x3efd7d),this[_0x296bb4(0x198)][_0x296bb4(0x18d)](_0x5ce52e),_0x5ce52e[_0x296bb4(0x1a9)][_0x296bb4(0x1b7)]()):(this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x139892),this[_0x296bb4(0x196)][_0x296bb4(0x18d)](_0x554acd),this[_0x296bb4(0x198)][_0x296bb4(0x18d)](this[_0x296bb4(0x1a1)]));}),this[_0x3ec23f(0x1ba)]({'tag':'li','attributes':{'class':[_0x3ec23f(0x1a6),_0x102ec4?_0x3ec23f(0x1da):'',_0x1c2251['if'](_0x3ec23f(0x1df),_0x3ec23f(0x184),_0x2aa4a0=>!_0x2aa4a0),_0x1c2251['if'](_0x3ec23f(0x190),_0x3ec23f(0x1bc))],'role':_0x3ec23f(0x1bf)},'children':[{'tag':_0x3ec23f(0x1bb),'attributes':{'class':[_0x3ec23f(0x1d4)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x19e),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x82e316=>!!_0x82e316)]},'children':_0x102ec4?[_0x214484]:[]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1a8),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x54e0a8=>!_0x54e0a8)]},'children':[this[_0x3ec23f(0x181)]()]}]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1ab)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x17f)]},'on':{'click':this[_0x3ec23f(0x1b1)]['to'](_0x3ec23f(0x1ca))},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x191)]},'children':[{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1af),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x2e6a00=>!!_0x2e6a00)]},'children':this[_0x3ec23f(0x198)]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1db),_0x1c2251['if'](_0x3ec23f(0x1b9),_0x3ec23f(0x184),_0x482d62=>!_0x482d62)]},'children':[{'text':_0x1c2251['to'](_0x3ec23f(0x1b9),_0x2f0fc4=>_0x2f0fc4?_0x16a506(this[_0x3ec23f(0x1d1)],AIChatHistoryListItemView[_0x3ec23f(0x1cb)][_0x2f0fc4]):'')}]}]},{'tag':_0x3ec23f(0x1bb),'attributes':{'class':[_0x3ec23f(0x1b5)]},'children':[_0x18af2e]}]},{'tag':_0x3ec23f(0x199),'attributes':{'class':[_0x3ec23f(0x1c9)]},'children':this[_0x3ec23f(0x196)]}]}]}),this['on'](_0x3ec23f(0x1ca),()=>{const _0x2b7a6c=_0x3ec23f;this[_0x2b7a6c(0x190)]||this[_0x2b7a6c(0x1c8)](_0x2b7a6c(0x1d3),{'id':this['id']});});}[_0xf98b64(0x1ce)](_0x5da3bf){const _0x51da51=_0xf98b64;this[_0x51da51(0x1a1)][_0x51da51(0x197)]=_0xce7a26(_0x5da3bf);}[_0xf98b64(0x1a2)](_0x3f9c16,_0x542d06){const _0x2c7d35=_0xf98b64;this[_0x2c7d35(0x1cc)](_0x2c7d35(0x1b9),_0x542d06?_0x3f9c16:null);}[_0xf98b64(0x1d6)](){const _0xeddd4f=_0xf98b64,_0x567e06=new _0x591a5c();return _0x567e06[_0xeddd4f(0x1cc)]({'content':_0x334e63}),_0x567e06;}[_0xf98b64(0x185)](_0x5aa8ef){const _0x5da79d=_0xf98b64,_0x3ecc4a=new _0x39c900(_0x5aa8ef);return _0x3ecc4a[_0x5da79d(0x1cc)]({'label':_0x16a506(_0x5aa8ef,_0x5da79d(0x17e)),'icon':_0x5c8947,'withText':!0x1,'tooltip':!0x0}),_0x3ecc4a[_0x5da79d(0x1cd)](_0x5da79d(0x19f))['to'](this,_0x5da79d(0x1b4)),_0x3ecc4a['on'](_0x5da79d(0x1c3),()=>{const _0x54831b=_0x5da79d,_0x384016=!this[_0x54831b(0x1b4)];this[_0x54831b(0x1c8)](_0x54831b(0x19d),{'id':this['id'],'pinned':_0x384016});}),_0x3ecc4a;}[_0xf98b64(0x19c)](){const _0x3aa535=_0xf98b64,_0x496646=_0x248066(this[_0x3aa535(0x1d1)],_0x508adb),_0xa6d94=_0x496646[_0x3aa535(0x193)][_0x3aa535(0x1c4)];_0x496646[_0x3aa535(0x1d2)][_0x3aa535(0x1cc)]({'label':_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x1bd)),'icon':_0x5e899e}),_0x496646[_0x3aa535(0x1b6)]='sw';const _0x5b7a14=new _0x39c900(this[_0x3aa535(0x1d1)]);_0x5b7a14[_0x3aa535(0x1c2)]=_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x1d8)),_0x5b7a14[_0x3aa535(0x19a)]=!0x0,_0x5b7a14['on'](_0x3aa535(0x1c3),()=>{const _0x332c32=_0x3aa535;this[_0x332c32(0x190)]=!0x0;});const _0xeb66c0=new _0x39c900(this[_0x3aa535(0x1d1)]);_0xeb66c0[_0x3aa535(0x1c2)]=_0x16a506(this[_0x3aa535(0x1d1)],_0x3aa535(0x18f)),_0xeb66c0[_0x3aa535(0x19a)]=!0x0,_0xeb66c0['on'](_0x3aa535(0x1c3),()=>{const _0x3dc4bf=_0x3aa535;this[_0x3dc4bf(0x1b2)](_0x16a506(this[_0x3dc4bf(0x1d1)],_0x3dc4bf(0x1c1)),this[_0x3dc4bf(0x1a9)])[_0x3dc4bf(0x1c7)](()=>{const _0x4a99ee=_0x3dc4bf;this[_0x4a99ee(0x1c8)](_0x4a99ee(0x189),{'id':this['id']});});});const _0x4edb30=new _0x199cb3(this[_0x3aa535(0x1d1)]),_0x3b4565=new _0x1a6f75(this[_0x3aa535(0x1d1)]);_0x3b4565[_0x3aa535(0x1c4)][_0x3aa535(0x18d)](_0x5b7a14);const _0x326240=new _0x1a6f75(this[_0x3aa535(0x1d1)]);return _0x326240[_0x3aa535(0x1c4)][_0x3aa535(0x18d)](_0xeb66c0),_0x4edb30[_0x3aa535(0x1aa)][_0x3aa535(0x18e)]([_0x3b4565,_0x326240]),_0xa6d94[_0x3aa535(0x18d)](_0x4edb30),_0x496646;}[_0xf98b64(0x1d0)](_0x1ccaa6,_0x154558){const _0x2f1809=_0xf98b64,_0x130df7=new _0x18be3d(_0x1ccaa6),_0x1521a4=_0x130df7[_0x2f1809(0x1b1)];return _0x130df7[_0x2f1809(0x1d7)]=_0x154558,_0x130df7[_0x2f1809(0x1a7)]({'on':{'keydown':_0x1521a4['to'](_0x3e984e=>{const _0x4c98ab=_0x2f1809;_0x4c98ab(0x1de)==_0x3e984e[_0x4c98ab(0x1d5)]&&this[_0x4c98ab(0x19b)](_0x130df7);})}}),_0x130df7;}[_0xf98b64(0x1b8)](_0x2e28da,_0x3ae6c8){const _0x27007f=_0xf98b64,_0x35cdf5=new _0x39c900(_0x2e28da);return _0x35cdf5[_0x27007f(0x1cc)]({'icon':_0x334e63,'withText':!0x1,'tooltip':_0x16a506(_0x2e28da,_0x27007f(0x1ae))}),_0x35cdf5[_0x27007f(0x1a7)]({'attributes':{'class':[_0x27007f(0x1a4)]}}),_0x35cdf5['on'](_0x27007f(0x1c3),()=>{const _0x44a5fb=_0x27007f;this[_0x44a5fb(0x19b)](_0x3ae6c8);}),_0x35cdf5;}[_0xf98b64(0x19b)](_0x2114da){const _0x201ea8=_0xf98b64,_0x3a0ee0=_0x2114da[_0x201ea8(0x1a9)][_0x201ea8(0x1d7)]||'';this[_0x201ea8(0x1a1)][_0x201ea8(0x197)]=_0x3a0ee0,this[_0x201ea8(0x190)]=!0x1,this[_0x201ea8(0x1c8)](_0x201ea8(0x187),{'id':this['id'],'title':_0x3a0ee0});}[_0xf98b64(0x1c0)](_0xb65f12,_0x22f5e7){const _0x31016c=_0xf98b64,_0x238343=new _0x39c900(_0xb65f12);return _0x238343[_0x31016c(0x1cc)]({'icon':_0x5f5275,'withText':!0x1,'tooltip':_0x16a506(_0xb65f12,_0x31016c(0x182))}),_0x238343[_0x31016c(0x1a7)]({'attributes':{'class':[_0x31016c(0x1dc)]}}),_0x238343['on'](_0x31016c(0x1c3),()=>{const _0x2e0f62=_0x31016c;this[_0x2e0f62(0x190)]=!0x1,_0x22f5e7[_0x2e0f62(0x1d7)]=this[_0x2e0f62(0x1a1)][_0x2e0f62(0x197)]||'',this[_0x2e0f62(0x1c8)](_0x2e0f62(0x194));}),_0x238343;}[_0xf98b64(0x181)](){const _0x4ba509=_0xf98b64,_0x3d77f6=new _0x36d757(_0x4ba509(0x1dd));return _0x3d77f6[_0x4ba509(0x1df)]=!0x0,_0x3d77f6;}[_0xf98b64(0x1b3)](_0x3ec726){const _0x40883f=_0xf98b64;return this[_0x40883f(0x1a1)]&&_0x40883f(0x1ad)==typeof this[_0x40883f(0x1a1)][_0x40883f(0x197)]&&this[_0x40883f(0x1a1)][_0x40883f(0x197)][_0x40883f(0x1d9)](_0x3ec726)?{'title':!0x0}:null;}[_0xf98b64(0x18a)](_0x321048){const _0x216836=_0xf98b64;this[_0x216836(0x1a1)][_0x216836(0x18a)](_0x321048);}}
23
+ const _0x1ee751=_0x39c2;(function(_0x2efe26,_0x9a33e7){const _0x54e30d=_0x39c2,_0x2d67f2=_0x2efe26();while(!![]){try{const _0x346ef5=parseInt(_0x54e30d(0x13b))/0x1+-parseInt(_0x54e30d(0xf6))/0x2*(parseInt(_0x54e30d(0x121))/0x3)+-parseInt(_0x54e30d(0x13e))/0x4+-parseInt(_0x54e30d(0x110))/0x5+parseInt(_0x54e30d(0x111))/0x6*(-parseInt(_0x54e30d(0xf8))/0x7)+-parseInt(_0x54e30d(0x12b))/0x8*(parseInt(_0x54e30d(0x10d))/0x9)+parseInt(_0x54e30d(0x114))/0xa;if(_0x346ef5===_0x9a33e7)break;else _0x2d67f2['push'](_0x2d67f2['shift']());}catch(_0x430650){_0x2d67f2['push'](_0x2d67f2['shift']());}}}(_0x2413,0x27110));function _0x39c2(_0x352c13,_0xca47bd){const _0x241354=_0x2413();return _0x39c2=function(_0x39c2d5,_0x17085c){_0x39c2d5=_0x39c2d5-0xe1;let _0x8ba6d=_0x241354[_0x39c2d5];return _0x8ba6d;},_0x39c2(_0x352c13,_0xca47bd);}import{ListItemView as _0x249edb,HighlightedTextView as _0x2ecfc4,ButtonView as _0x1c8378,ListView as _0x596afd,IconView as _0x1a655f,createDropdown as _0x440d9c,InputTextView as _0x5082bb}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x26482b,IconPin as _0x468eef,IconCheck as _0x57e9bc,IconCancel as _0x5c5e8a}from'ckeditor5/src/icons.js';function _0x2413(){const _0x4721c3=['value','_createMenuDropdownView','211722hvsvcW','_createCancelEditButtonView','isMatching','1145880RiZoUl','clear','ck-ai-loader','extendTemplate','AI_CHAT_HISTORY_ACCEPT','setTemplate','tiny','_createSpinnerView','pinned','_commitEditInputValue','ck-ai-chat-history__item-content','AI_CHAT_HISTORY_LOADING_REMOVING','AI_CHAT_HISTORY_PIN_BUTTON','ck-ai-chat-history__item-check-container','listitem','edit:cancel','isVisible','_createAcceptEditButtonView','set','add','removeConversation','actions','AI_CHAT_HISTORY_CANCEL','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-row','showConfirm','13730upOHut','AI_CHAT_HISTORY_REMOVE_CONFIRM','35GLLoHP','updateTitle','addMany','_titleView','highlightText','createCollection','label','ck-ai-chat-history__item-main-content','setConversationPinned','ck-ai-chat-history__item-date','buttonView','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_LOADING_PINNING','focus','isEdit','isOn','locale','_createEditInputView','ck-confirm-view-cancel','_createPinButtonView','updateLoadingState','9kkOCwd','match','_createCheckView','1029125KbTxcY','289290VvMmuN','ck-ai-loader__text','string','9540020BklwWl','element','bindTemplate','loadingState','selectConversation','ck-hidden','fire','bind','execute','ck-ai-chat-history__item','change:isEdit','ck-ai-chat-history__item-actions','children','63MtZogn','text','Enter','then','span','AI_CHAT_HISTORY_EDIT_NAME','panelPosition','ck-ai-chat-history__item-check','click','mainContent','1025384ZGknGX','key','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','ck-ai-chat-history__item--edit','items','ck-ai-chat-history__item--active','div','LOADING_LABELS','panelView','ck-confirm-view-submit','editConversationTitle','ck-ai-chat-history__item-title','withText','AI_CHAT_HISTORY_REMOVE'];_0x2413=function(){return _0x4721c3;};return _0x2413();}import{LateFocusDropdownButtonView as _0x2e248c,ConfirmMixin as _0x39a86b}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x25c8e1}from'es-toolkit/compat';import{AISpinnerView as _0xaa6bb1}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x544254}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends/* #__PURE__ -- @preserve */
24
+ _0x39a86b(_0x249edb){['id'];static [_0x1ee751(0x132)]={'remove':_0x1ee751(0xe7),'rename':_0x1ee751(0xf3),'pin':_0x1ee751(0x104),'unpin':_0x1ee751(0x103)};[_0x1ee751(0xf1)];[_0x1ee751(0x12a)];[_0x1ee751(0xfb)];constructor(_0x105a89,_0x137ca1){const _0x3a60f6=_0x1ee751;super(_0x105a89);const _0x4e3170=this[_0x3a60f6(0x116)];this[_0x3a60f6(0xee)](_0x3a60f6(0x106),!0x1),this[_0x3a60f6(0xee)](_0x3a60f6(0xec),!0x0),this[_0x3a60f6(0xee)](_0x3a60f6(0xe4),!!_0x137ca1[_0x3a60f6(0xe4)]),this[_0x3a60f6(0xee)](_0x3a60f6(0x117),null),this['id']=_0x137ca1['id'];const {title:_0x549b0e,createdAt:_0x597a32,active:_0x443794=!0x1}=_0x137ca1;this[_0x3a60f6(0xfb)]=new _0x2ecfc4(),this[_0x3a60f6(0xfb)][_0x3a60f6(0x122)]=_0x549b0e,this[_0x3a60f6(0xfb)][_0x3a60f6(0x141)]({'attributes':{'class':[_0x3a60f6(0x136)]}});const _0x2fb941=this[_0x3a60f6(0x10f)](),_0x3b0f0d=this[_0x3a60f6(0x10b)](_0x105a89),_0x534ec5=this[_0x3a60f6(0x13a)](),_0xd2d4d9=this[_0x3a60f6(0x109)](_0x105a89,_0x549b0e),_0x30bde5=this[_0x3a60f6(0xed)](_0x105a89,_0xd2d4d9),_0x3d79ee=this[_0x3a60f6(0x13c)](_0x105a89,_0xd2d4d9);this[_0x3a60f6(0xf1)]=this[_0x3a60f6(0xfd)](),this[_0x3a60f6(0x12a)]=this[_0x3a60f6(0xfd)](),this[_0x3a60f6(0x12a)][_0x3a60f6(0xef)](this[_0x3a60f6(0xfb)]),this[_0x3a60f6(0xf1)][_0x3a60f6(0xef)](_0x3b0f0d),this[_0x3a60f6(0xf1)][_0x3a60f6(0xef)](_0x534ec5),this['on'](_0x3a60f6(0x11e),(_0x3468cb,_0x4b394f,_0x48b9f9)=>{const _0x3ac689=_0x3a60f6;this[_0x3ac689(0xf1)][_0x3ac689(0x13f)](),this[_0x3ac689(0x12a)][_0x3ac689(0x13f)](),_0x48b9f9?(this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x30bde5),this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x3d79ee),this[_0x3ac689(0x12a)][_0x3ac689(0xef)](_0xd2d4d9),_0xd2d4d9[_0x3ac689(0x115)][_0x3ac689(0x105)]()):(this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x3b0f0d),this[_0x3ac689(0xf1)][_0x3ac689(0xef)](_0x534ec5),this[_0x3ac689(0x12a)][_0x3ac689(0xef)](this[_0x3ac689(0xfb)]));}),this[_0x3a60f6(0xe1)]({'tag':'li','attributes':{'class':[_0x3a60f6(0x11d),_0x443794?_0x3a60f6(0x130):'',_0x4e3170['if'](_0x3a60f6(0xec),_0x3a60f6(0x119),_0x4a9d0c=>!_0x4a9d0c),_0x4e3170['if'](_0x3a60f6(0x106),_0x3a60f6(0x12e))],'role':_0x3a60f6(0xea)},'children':[{'tag':_0x3a60f6(0x125),'attributes':{'class':[_0x3a60f6(0xe9)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x128),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x442057=>!!_0x442057)]},'children':_0x443794?[_0x2fb941]:[]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x140),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x2b2c61=>!_0x2b2c61)]},'children':[this[_0x3a60f6(0xe3)]()]}]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xf4)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xe6)]},'on':{'click':this[_0x3a60f6(0x116)]['to'](_0x3a60f6(0x129))},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0xff)]},'children':[{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x136),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x188af2=>!!_0x188af2)]},'children':this[_0x3a60f6(0x12a)]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x112),_0x4e3170['if'](_0x3a60f6(0x117),_0x3a60f6(0x119),_0x17925f=>!_0x17925f)]},'children':[{'text':_0x4e3170['to'](_0x3a60f6(0x117),_0x21fb19=>_0x21fb19?_0x544254(this[_0x3a60f6(0x108)],AIChatHistoryListItemView[_0x3a60f6(0x132)][_0x21fb19]):'')}]}]},{'tag':_0x3a60f6(0x125),'attributes':{'class':[_0x3a60f6(0x101)]},'children':[_0x597a32]}]},{'tag':_0x3a60f6(0x131),'attributes':{'class':[_0x3a60f6(0x11f)]},'children':this[_0x3a60f6(0xf1)]}]}]}),this['on'](_0x3a60f6(0x129),()=>{const _0x2145ee=_0x3a60f6;this[_0x2145ee(0x106)]||this[_0x2145ee(0x11a)](_0x2145ee(0x118),{'id':this['id']});});}[_0x1ee751(0xf9)](_0x363d99){const _0x36c696=_0x1ee751;this[_0x36c696(0xfb)][_0x36c696(0x122)]=_0x25c8e1(_0x363d99);}[_0x1ee751(0x10c)](_0x3491bd,_0x2e8e1b){const _0x15cb74=_0x1ee751;this[_0x15cb74(0xee)](_0x15cb74(0x117),_0x2e8e1b?_0x3491bd:null);}[_0x1ee751(0x10f)](){const _0x37a5e1=_0x1ee751,_0x9f1a6f=new _0x1a655f();return _0x9f1a6f[_0x37a5e1(0xee)]({'content':_0x57e9bc}),_0x9f1a6f;}[_0x1ee751(0x10b)](_0x9e5f6f){const _0x4bd316=_0x1ee751,_0x21032a=new _0x1c8378(_0x9e5f6f);return _0x21032a[_0x4bd316(0xee)]({'label':_0x544254(_0x9e5f6f,_0x4bd316(0xe8)),'icon':_0x468eef,'withText':!0x1,'tooltip':!0x0}),_0x21032a[_0x4bd316(0x11b)](_0x4bd316(0x107))['to'](this,_0x4bd316(0xe4)),_0x21032a['on'](_0x4bd316(0x11c),()=>{const _0x28cf68=_0x4bd316,_0x125120=!this[_0x28cf68(0xe4)];this[_0x28cf68(0x11a)](_0x28cf68(0x100),{'id':this['id'],'pinned':_0x125120});}),_0x21032a;}[_0x1ee751(0x13a)](){const _0x4359d3=_0x1ee751,_0x1a1728=_0x440d9c(this[_0x4359d3(0x108)],_0x2e248c),_0x269a85=_0x1a1728[_0x4359d3(0x133)][_0x4359d3(0x120)];_0x1a1728[_0x4359d3(0x102)][_0x4359d3(0xee)]({'label':_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x12d)),'icon':_0x26482b}),_0x1a1728[_0x4359d3(0x127)]='sw';const _0x58dadb=new _0x1c8378(this[_0x4359d3(0x108)]);_0x58dadb[_0x4359d3(0xfe)]=_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x126)),_0x58dadb[_0x4359d3(0x137)]=!0x0,_0x58dadb['on'](_0x4359d3(0x11c),()=>{const _0x1db1f4=_0x4359d3;this[_0x1db1f4(0x106)]=!0x0;});const _0x5134ad=new _0x1c8378(this[_0x4359d3(0x108)]);_0x5134ad[_0x4359d3(0xfe)]=_0x544254(this[_0x4359d3(0x108)],_0x4359d3(0x138)),_0x5134ad[_0x4359d3(0x137)]=!0x0,_0x5134ad['on'](_0x4359d3(0x11c),()=>{const _0x1b335f=_0x4359d3;this[_0x1b335f(0xf5)](_0x544254(this[_0x1b335f(0x108)],_0x1b335f(0xf7)),this[_0x1b335f(0x115)])[_0x1b335f(0x124)](()=>{const _0x5ae3ec=_0x1b335f;this[_0x5ae3ec(0x11a)](_0x5ae3ec(0xf0),{'id':this['id']});});});const _0x443572=new _0x596afd(this[_0x4359d3(0x108)]),_0x18285f=new _0x249edb(this[_0x4359d3(0x108)]);_0x18285f[_0x4359d3(0x120)][_0x4359d3(0xef)](_0x58dadb);const _0xe40128=new _0x249edb(this[_0x4359d3(0x108)]);return _0xe40128[_0x4359d3(0x120)][_0x4359d3(0xef)](_0x5134ad),_0x443572[_0x4359d3(0x12f)][_0x4359d3(0xfa)]([_0x18285f,_0xe40128]),_0x269a85[_0x4359d3(0xef)](_0x443572),_0x1a1728;}[_0x1ee751(0x109)](_0x3993f9,_0x2f91b5){const _0x5e616f=_0x1ee751,_0x5a8255=new _0x5082bb(_0x3993f9),_0x34f281=_0x5a8255[_0x5e616f(0x116)];return _0x5a8255[_0x5e616f(0x139)]=_0x2f91b5,_0x5a8255[_0x5e616f(0x141)]({'on':{'keydown':_0x34f281['to'](_0x371822=>{const _0x3608bc=_0x5e616f;_0x3608bc(0x123)==_0x371822[_0x3608bc(0x12c)]&&this[_0x3608bc(0xe5)](_0x5a8255);})}}),_0x5a8255;}[_0x1ee751(0xed)](_0x329912,_0x2463f9){const _0x480eb4=_0x1ee751,_0x23b5cd=new _0x1c8378(_0x329912);return _0x23b5cd[_0x480eb4(0xee)]({'icon':_0x57e9bc,'withText':!0x1,'tooltip':_0x544254(_0x329912,_0x480eb4(0x142))}),_0x23b5cd[_0x480eb4(0x141)]({'attributes':{'class':[_0x480eb4(0x134)]}}),_0x23b5cd['on'](_0x480eb4(0x11c),()=>{const _0x59d4f3=_0x480eb4;this[_0x59d4f3(0xe5)](_0x2463f9);}),_0x23b5cd;}[_0x1ee751(0xe5)](_0x14430c){const _0x174d3c=_0x1ee751,_0x44a279=_0x14430c[_0x174d3c(0x115)][_0x174d3c(0x139)]||'';this[_0x174d3c(0xfb)][_0x174d3c(0x122)]=_0x44a279,this[_0x174d3c(0x106)]=!0x1,this[_0x174d3c(0x11a)](_0x174d3c(0x135),{'id':this['id'],'title':_0x44a279});}[_0x1ee751(0x13c)](_0x43c594,_0x3e0295){const _0xae3a60=_0x1ee751,_0xcf3a01=new _0x1c8378(_0x43c594);return _0xcf3a01[_0xae3a60(0xee)]({'icon':_0x5c5e8a,'withText':!0x1,'tooltip':_0x544254(_0x43c594,_0xae3a60(0xf2))}),_0xcf3a01[_0xae3a60(0x141)]({'attributes':{'class':[_0xae3a60(0x10a)]}}),_0xcf3a01['on'](_0xae3a60(0x11c),()=>{const _0x3305eb=_0xae3a60;this[_0x3305eb(0x106)]=!0x1,_0x3e0295[_0x3305eb(0x139)]=this[_0x3305eb(0xfb)][_0x3305eb(0x122)]||'',this[_0x3305eb(0x11a)](_0x3305eb(0xeb));}),_0xcf3a01;}[_0x1ee751(0xe3)](){const _0x38c11f=_0x1ee751,_0x4d2ddd=new _0xaa6bb1(_0x38c11f(0xe2));return _0x4d2ddd[_0x38c11f(0xec)]=!0x0,_0x4d2ddd;}[_0x1ee751(0x13d)](_0x5882ea){const _0xb54bbb=_0x1ee751;return this[_0xb54bbb(0xfb)]&&_0xb54bbb(0x113)==typeof this[_0xb54bbb(0xfb)][_0xb54bbb(0x122)]&&this[_0xb54bbb(0xfb)][_0xb54bbb(0x122)][_0xb54bbb(0x10e)](_0x5882ea)?{'title':!0x0}:null;}[_0x1ee751(0xfc)](_0xf05e2c){const _0x5b84b3=_0x1ee751;this[_0x5b84b3(0xfb)][_0x5b84b3(0xfc)](_0xf05e2c);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x125184=_0x54d0;(function(_0x14222b,_0x334dc6){const _0x3cd3ea=_0x54d0,_0x1d7367=_0x14222b();while(!![]){try{const _0x529bc3=parseInt(_0x3cd3ea(0x190))/0x1+parseInt(_0x3cd3ea(0x187))/0x2*(parseInt(_0x3cd3ea(0x184))/0x3)+-parseInt(_0x3cd3ea(0x193))/0x4+parseInt(_0x3cd3ea(0x185))/0x5*(parseInt(_0x3cd3ea(0x177))/0x6)+parseInt(_0x3cd3ea(0x17a))/0x7+-parseInt(_0x3cd3ea(0x17d))/0x8*(-parseInt(_0x3cd3ea(0x18f))/0x9)+parseInt(_0x3cd3ea(0x191))/0xa*(-parseInt(_0x3cd3ea(0x196))/0xb);if(_0x529bc3===_0x334dc6)break;else _0x1d7367['push'](_0x1d7367['shift']());}catch(_0x15e1b1){_0x1d7367['push'](_0x1d7367['shift']());}}}(_0x1f80,0xdf799));import{ListItemView as _0x33cc2b,View as _0x51a68f,ListView as _0x296c25}from'ckeditor5/src/ui.js';function _0x54d0(_0x179d05,_0xb3c361){const _0x1f8061=_0x1f80();return _0x54d0=function(_0x54d050,_0x62c4b4){_0x54d050=_0x54d050-0x176;let _0x3556cf=_0x1f8061[_0x54d050];return _0x3556cf;},_0x54d0(_0x179d05,_0xb3c361);}function _0x1f80(){const _0x3bfb31=['ck-ai-chat-history__section','11658qbLKdO','ck-ai-chat-history__section-title','bindTemplate','filter','isVisible','items','removeItem','splice','180HofhsG','1171403azhoLw','84190GMiiBF','title','2235128ZhrdhH','addMany','ck-hidden','6633OIhsQc','highlightText','getItem','1038Qsylfx','find','_itemsListView','9717008XnrKPr','length','isMatching','718384gwkjET','indexOf','remove','div','set','setTemplate','itemsViews','798lqKKdF','18635EWPXWD'];_0x1f80=function(){return _0x3bfb31;};return _0x1f80();}export class AIChatHistoryListView extends _0x33cc2b{[_0x125184(0x192)];[_0x125184(0x183)];[_0x125184(0x179)];constructor(_0x5341fc,{title:_0x3f6179,items:_0x40a417}){const _0x912f82=_0x125184;super(_0x5341fc);const _0x1539ff=this[_0x912f82(0x189)];this[_0x912f82(0x181)](_0x912f82(0x18b),!0x0),this[_0x912f82(0x192)]=_0x3f6179,this[_0x912f82(0x183)]=_0x40a417;const _0x890ac2=new _0x51a68f(_0x5341fc);_0x890ac2[_0x912f82(0x182)]({'tag':_0x912f82(0x180),'attributes':{'class':[_0x912f82(0x188)]},'children':[this[_0x912f82(0x192)]]}),this[_0x912f82(0x179)]=new _0x296c25(_0x5341fc),this[_0x912f82(0x179)][_0x912f82(0x18c)][_0x912f82(0x194)](this[_0x912f82(0x183)]),this[_0x912f82(0x182)]({'tag':'li','attributes':{'class':[_0x912f82(0x186),_0x1539ff['if'](_0x912f82(0x18b),_0x912f82(0x195),_0x46cb0e=>!_0x46cb0e)]},'children':[_0x890ac2,this[_0x912f82(0x179)]]});}[_0x125184(0x18a)](_0x9ce2f6){const _0x544d67=_0x125184,_0x4f023c=this[_0x544d67(0x183)][_0x544d67(0x17b)];let _0x179e30=0x0;for(const _0x1ca1f4 of this[_0x544d67(0x183)]){if(_0x9ce2f6){const _0x38ab94=_0x1ca1f4[_0x544d67(0x17c)](_0x9ce2f6);_0x1ca1f4[_0x544d67(0x18b)]=!!_0x38ab94,_0x1ca1f4[_0x544d67(0x197)](_0x9ce2f6);}else _0x1ca1f4[_0x544d67(0x18b)]=!0x0,_0x1ca1f4[_0x544d67(0x197)](null);_0x1ca1f4[_0x544d67(0x18b)]&&_0x179e30++;}return this[_0x544d67(0x18b)]=_0x179e30>0x0,{'resultsCount':_0x179e30,'totalItemsCount':_0x4f023c};}[_0x125184(0x176)](_0x19eac7){const _0x468c1f=_0x125184;return this[_0x468c1f(0x183)][_0x468c1f(0x178)](_0x5bd8f1=>_0x5bd8f1['id']===_0x19eac7);}[_0x125184(0x18d)](_0x5f5199){const _0x32afea=_0x125184,_0x3e71f3=this[_0x32afea(0x183)][_0x32afea(0x17e)](_0x5f5199);-0x1!==_0x3e71f3&&(this[_0x32afea(0x183)][_0x32afea(0x18e)](_0x3e71f3,0x1),this[_0x32afea(0x179)][_0x32afea(0x18c)][_0x32afea(0x17f)](_0x5f5199));}}
23
+ const _0xfa6376=_0x530b;(function(_0x1c0b7a,_0x1d582d){const _0x24d1bc=_0x530b,_0x126aa2=_0x1c0b7a();while(!![]){try{const _0xa216f8=parseInt(_0x24d1bc(0xe0))/0x1+-parseInt(_0x24d1bc(0xec))/0x2*(-parseInt(_0x24d1bc(0xf3))/0x3)+parseInt(_0x24d1bc(0xed))/0x4+-parseInt(_0x24d1bc(0xe3))/0x5*(parseInt(_0x24d1bc(0xef))/0x6)+-parseInt(_0x24d1bc(0xe5))/0x7+-parseInt(_0x24d1bc(0xea))/0x8+-parseInt(_0x24d1bc(0xe7))/0x9*(-parseInt(_0x24d1bc(0xe2))/0xa);if(_0xa216f8===_0x1d582d)break;else _0x126aa2['push'](_0x126aa2['shift']());}catch(_0x3df023){_0x126aa2['push'](_0x126aa2['shift']());}}}(_0x4ea6,0xecac2));function _0x530b(_0x4d23ac,_0x822b97){const _0x4ea6df=_0x4ea6();return _0x530b=function(_0x530b85,_0x5679cc){_0x530b85=_0x530b85-0xdc;let _0x2e042e=_0x4ea6df[_0x530b85];return _0x2e042e;},_0x530b(_0x4d23ac,_0x822b97);}function _0x4ea6(){const _0x1363cd=['isMatching','find','ck-ai-chat-history__section','addMany','ck-ai-chat-history__section-title','bindTemplate','indexOf','items','splice','div','140317kwugyp','itemsViews','10uqgXpz','19005EIVrpX','length','4923240iFKsZO','isVisible','33417387iVRynE','filter','set','14723648xDCGQu','highlightText','1746094UxYhom','2627484BycFHh','removeItem','2952fTuBmu','getItem','_itemsListView','setTemplate','3gmknYq','title','ck-hidden','remove'];_0x4ea6=function(){return _0x1363cd;};return _0x4ea6();}import{ListItemView as _0x45cc37,View as _0x34486f,ListView as _0x20e316}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x45cc37{[_0xfa6376(0xf4)];[_0xfa6376(0xe1)];[_0xfa6376(0xf1)];constructor(_0x1ac849,{title:_0xef8ca2,items:_0x377b38}){const _0x4d09ae=_0xfa6376;super(_0x1ac849);const _0x2dc839=this[_0x4d09ae(0xfc)];this[_0x4d09ae(0xe9)](_0x4d09ae(0xe6),!0x0),this[_0x4d09ae(0xf4)]=_0xef8ca2,this[_0x4d09ae(0xe1)]=_0x377b38;const _0x1b0115=new _0x34486f(_0x1ac849);_0x1b0115[_0x4d09ae(0xf2)]({'tag':_0x4d09ae(0xdf),'attributes':{'class':[_0x4d09ae(0xfb)]},'children':[this[_0x4d09ae(0xf4)]]}),this[_0x4d09ae(0xf1)]=new _0x20e316(_0x1ac849),this[_0x4d09ae(0xf1)][_0x4d09ae(0xdd)][_0x4d09ae(0xfa)](this[_0x4d09ae(0xe1)]),this[_0x4d09ae(0xf2)]({'tag':'li','attributes':{'class':[_0x4d09ae(0xf9),_0x2dc839['if'](_0x4d09ae(0xe6),_0x4d09ae(0xf5),_0x4dc18c=>!_0x4dc18c)]},'children':[_0x1b0115,this[_0x4d09ae(0xf1)]]});}[_0xfa6376(0xe8)](_0x341bae){const _0x127276=_0xfa6376,_0x2b5845=this[_0x127276(0xe1)][_0x127276(0xe4)];let _0x3be91a=0x0;for(const _0x4d632b of this[_0x127276(0xe1)]){if(_0x341bae){const _0x41f999=_0x4d632b[_0x127276(0xf7)](_0x341bae);_0x4d632b[_0x127276(0xe6)]=!!_0x41f999,_0x4d632b[_0x127276(0xeb)](_0x341bae);}else _0x4d632b[_0x127276(0xe6)]=!0x0,_0x4d632b[_0x127276(0xeb)](null);_0x4d632b[_0x127276(0xe6)]&&_0x3be91a++;}return this[_0x127276(0xe6)]=_0x3be91a>0x0,{'resultsCount':_0x3be91a,'totalItemsCount':_0x2b5845};}[_0xfa6376(0xf0)](_0x2fc34d){const _0x11b2e6=_0xfa6376;return this[_0x11b2e6(0xe1)][_0x11b2e6(0xf8)](_0x265d88=>_0x265d88['id']===_0x2fc34d);}[_0xfa6376(0xee)](_0x43a61c){const _0xf746d7=_0xfa6376,_0x44af22=this[_0xf746d7(0xe1)][_0xf746d7(0xdc)](_0x43a61c);-0x1!==_0x44af22&&(this[_0xf746d7(0xe1)][_0xf746d7(0xde)](_0x44af22,0x1),this[_0xf746d7(0xf1)][_0xf746d7(0xdd)][_0xf746d7(0xf6)](_0x43a61c));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x57de(_0x3394bb,_0x3d4a60){const _0x2d9116=_0x2d91();return _0x57de=function(_0x57de4a,_0x3bf7e4){_0x57de4a=_0x57de4a-0x10d;let _0x256a78=_0x2d9116[_0x57de4a];return _0x256a78;},_0x57de(_0x3394bb,_0x3d4a60);}const _0x4b5960=_0x57de;(function(_0xcbed6d,_0x234b03){const _0x2004f5=_0x57de,_0x441526=_0xcbed6d();while(!![]){try{const _0x5c048b=-parseInt(_0x2004f5(0x111))/0x1+-parseInt(_0x2004f5(0x11b))/0x2*(parseInt(_0x2004f5(0x117))/0x3)+-parseInt(_0x2004f5(0x114))/0x4*(-parseInt(_0x2004f5(0x11c))/0x5)+-parseInt(_0x2004f5(0x116))/0x6+parseInt(_0x2004f5(0x119))/0x7+-parseInt(_0x2004f5(0x115))/0x8+parseInt(_0x2004f5(0x112))/0x9*(parseInt(_0x2004f5(0x118))/0xa);if(_0x5c048b===_0x234b03)break;else _0x441526['push'](_0x441526['shift']());}catch(_0x351008){_0x441526['push'](_0x441526['shift']());}}}(_0x2d91,0xeefa6));import{ListView as _0x3dec17}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x3dec17{[_0x4b5960(0x10d)];constructor(_0x465381,_0x1f1662){const _0x305601=_0x4b5960;super(_0x465381),this[_0x305601(0x10d)]=_0x1f1662,this[_0x305601(0x110)][_0x305601(0x113)](this[_0x305601(0x10d)]),this[_0x305601(0x10f)]({'attributes':{'class':[_0x305601(0x10e)]}});}[_0x4b5960(0x11a)](_0x5ee847){const _0xaad05=_0x4b5960;let _0x211680=0x0,_0x249d83=0x0;for(const _0x22c9d of this[_0xaad05(0x10d)]){const {resultsCount:_0x1b41ad,totalItemsCount:_0x2a3881}=_0x22c9d[_0xaad05(0x11a)](_0x5ee847);_0x211680+=_0x1b41ad,_0x249d83+=_0x2a3881;}return{'resultsCount':_0x211680,'totalItemsCount':_0x249d83};}}function _0x2d91(){const _0x245315=['extendTemplate','items','662300GHIfnD','873rcFPiR','addMany','172ixLNCT','13769520IvKjQp','1202784lLvcnz','2124258nbrSxf','247470jIYMAh','758667TPLKqZ','filter','2PUzjVm','204890YDyklj','sections','ck-ai-chat-history__sections'];_0x2d91=function(){return _0x245315;};return _0x2d91();}
23
+ function _0x1368(_0x432c23,_0x2a143d){const _0x3afa37=_0x3afa();return _0x1368=function(_0x1368aa,_0x107c14){_0x1368aa=_0x1368aa-0x1b6;let _0x21379f=_0x3afa37[_0x1368aa];return _0x21379f;},_0x1368(_0x432c23,_0x2a143d);}const _0x5d60ba=_0x1368;(function(_0x316bb1,_0x3a7c61){const _0x20b708=_0x1368,_0x5700df=_0x316bb1();while(!![]){try{const _0x3d0414=parseInt(_0x20b708(0x1bf))/0x1+parseInt(_0x20b708(0x1be))/0x2+parseInt(_0x20b708(0x1bc))/0x3+-parseInt(_0x20b708(0x1bb))/0x4+-parseInt(_0x20b708(0x1c2))/0x5+-parseInt(_0x20b708(0x1c3))/0x6+-parseInt(_0x20b708(0x1c1))/0x7*(-parseInt(_0x20b708(0x1b6))/0x8);if(_0x3d0414===_0x3a7c61)break;else _0x5700df['push'](_0x5700df['shift']());}catch(_0x4b20bc){_0x5700df['push'](_0x5700df['shift']());}}}(_0x3afa,0x36c5d));import{ListView as _0x27d8a1}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x27d8a1{[_0x5d60ba(0x1c0)];constructor(_0x5d4b28,_0xb08e05){const _0xcc15be=_0x5d60ba;super(_0x5d4b28),this[_0xcc15be(0x1c0)]=_0xb08e05,this[_0xcc15be(0x1bd)][_0xcc15be(0x1b9)](this[_0xcc15be(0x1c0)]),this[_0xcc15be(0x1ba)]({'attributes':{'class':[_0xcc15be(0x1b8)]}});}[_0x5d60ba(0x1b7)](_0x14aee2){const _0x5ceb8d=_0x5d60ba;let _0x2682ea=0x0,_0x54e370=0x0;for(const _0x4ad918 of this[_0x5ceb8d(0x1c0)]){const {resultsCount:_0x5e032e,totalItemsCount:_0x119f19}=_0x4ad918[_0x5ceb8d(0x1b7)](_0x14aee2);_0x2682ea+=_0x5e032e,_0x54e370+=_0x119f19;}return{'resultsCount':_0x2682ea,'totalItemsCount':_0x54e370};}}function _0x3afa(){const _0x313f0b=['240565wPLHTD','sections','1770797cxvONM','2113065rZBMJT','2643906QDRaId','24LfnGoC','filter','ck-ai-chat-history__sections','addMany','extendTemplate','665216oQizBl','743736RnskKM','items','13054klQtIR'];_0x3afa=function(){return _0x313f0b;};return _0x3afa();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xf6b8e7=_0x589d;(function(_0x30008c,_0xcb5811){const _0x1b6d85=_0x589d,_0x24a236=_0x30008c();while(!![]){try{const _0x458fc8=parseInt(_0x1b6d85(0x1de))/0x1+parseInt(_0x1b6d85(0x211))/0x2+-parseInt(_0x1b6d85(0x1fd))/0x3*(parseInt(_0x1b6d85(0x227))/0x4)+-parseInt(_0x1b6d85(0x1fc))/0x5+parseInt(_0x1b6d85(0x1f4))/0x6+parseInt(_0x1b6d85(0x1e3))/0x7*(parseInt(_0x1b6d85(0x1e2))/0x8)+parseInt(_0x1b6d85(0x1d7))/0x9*(-parseInt(_0x1b6d85(0x205))/0xa);if(_0x458fc8===_0xcb5811)break;else _0x24a236['push'](_0x24a236['shift']());}catch(_0x1f7cc1){_0x24a236['push'](_0x24a236['shift']());}}}(_0x3818,0x249de));import{View as _0x4fe555,SearchTextView as _0x46a7be,FormHeaderView as _0x33749d,ButtonView as _0x1b01db}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x18b90d,IconCancel as _0x1e68d4,IconPlus as _0x7daa43}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x1195d9}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0xe7bfd7}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x55f685}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x3994c1}from'../aichathistoryui.js';function _0x3818(){const _0x5c9b44=['sections','addMany','updateItemTitle','updateLoadingState','locale','add','updateItemLoadingState','ck-rounded-corners','ck-ai-header\x20ck-ai-header_history','set','9HtgmBA','change:isLoading','bind','_createListItemViews','change:hasItems','fire','extendTemplate','293504FUiBIk','bindTemplate','ck-ai-chat__start-conversation','hasItems','82408YGYuNq','49DueXHX','value','AI_CHAT_HISTORY_HEADING','errorView','remove','AI_CHAT_HISTORY_SEARCH_LABEL','title','queryView','isMaximized','searchView','element','search','openChat','skeletonView','splice','updateTitle','removeItem','28770oQfTVZ','itemsViews','some','isEmptyViewVisible','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','sectionsView','ck-hidden','isLoading','83550dXodPr','131871ltesmf','push','fieldView','_updateViewVisibility','ck-reset_all','_createErrorView','errorMessage','ck-ai-chat-error','2988610JymTfI','render','ltr','ck-ai-chat-history__content','_createSearchView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createSkeletonView','indexOf','execute','emptyView','aiHistory','ck-ai-chat-history__empty-message','454036QDBLVH','clear','setTemplate','updateHistoryItemsWithCategories','children','isVisible','items','delegate','ck-ai-chat-error__dismiss-button','change:errorMessage','div','AI_CHAT_LABEL_NEW_CHAT','removeHistoryItem','_refreshSearch','ck-ai-chat-history','getItem','length','ck-ai-chat-history__empty','isSearchViewVisible','resizeButton','AI_CHAT_HISTORY_EMPTY_MESSAGE','_createEmptyStateView','12JWUrbu'];_0x3818=function(){return _0x5c9b44;};return _0x3818();}import{AISkeletonView as _0x9f4ddc,SKELETON_DEFINITIONS as _0x530c43}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3760e5}from'../../aicore/utils/createresizebutton.js';function _0x589d(_0x312a0e,_0x12b7b5){const _0x38185f=_0x3818();return _0x589d=function(_0x589d90,_0x33351b){_0x589d90=_0x589d90-0x1d2;let _0x15f9f2=_0x38185f[_0x589d90];return _0x15f9f2;},_0x589d(_0x312a0e,_0x12b7b5);}import{getTranslation as _0x151a0f}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x4fe555{[_0xf6b8e7(0x1ec)];[_0xf6b8e7(0x1e6)];[_0xf6b8e7(0x1f0)];[_0xf6b8e7(0x20e)];[_0xf6b8e7(0x1f9)];[_0xf6b8e7(0x224)];constructor(_0x33eb4f,_0x2d16f2){const _0x35b106=_0xf6b8e7;super(_0x33eb4f),this[_0x35b106(0x1d6)](_0x35b106(0x1e1),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x1fb),!0x0),this[_0x35b106(0x1d6)](_0x35b106(0x203),''),this[_0x35b106(0x1d6)](_0x35b106(0x1eb),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x223),!0x1),this[_0x35b106(0x1d6)](_0x35b106(0x1f7),!0x1);const _0x1cfa4a=new _0x33749d(_0x33eb4f,{'label':_0x151a0f(_0x33eb4f,_0x35b106(0x1e5)),'icon':_0x18b90d,'class':_0x35b106(0x1d5)});_0x2d16f2&&(this[_0x35b106(0x224)]=_0x3760e5(_0x33eb4f,this),_0x1cfa4a[_0x35b106(0x215)][_0x35b106(0x1d2)](this[_0x35b106(0x224)])),this[_0x35b106(0x1f9)]=new _0x1195d9(_0x33eb4f,[]),this[_0x35b106(0x1f9)][_0x35b106(0x218)](..._0x3994c1)['to'](this),this[_0x35b106(0x1e6)]=this[_0x35b106(0x202)](),this[_0x35b106(0x1f0)]=this[_0x35b106(0x20b)](),this[_0x35b106(0x20e)]=this[_0x35b106(0x226)](),this[_0x35b106(0x1ec)]=this[_0x35b106(0x209)](),this['on'](_0x35b106(0x1d8),()=>this[_0x35b106(0x200)]()),this['on'](_0x35b106(0x1db),()=>this[_0x35b106(0x200)]()),this['on'](_0x35b106(0x21a),()=>this[_0x35b106(0x200)]()),this[_0x35b106(0x213)]({'tag':_0x35b106(0x21b),'attributes':{'class':['ck',_0x35b106(0x201),_0x35b106(0x21f),_0x35b106(0x1d4)],'dir':_0x35b106(0x207)},'children':[_0x1cfa4a,{'tag':_0x35b106(0x21b),'attributes':{'class':[_0x35b106(0x208)]},'children':[this[_0x35b106(0x1f0)],this[_0x35b106(0x1e6)],this[_0x35b106(0x20e)],this[_0x35b106(0x1ec)]]}]});}[_0xf6b8e7(0x200)](){const _0x3471d8=_0xf6b8e7;this[_0x3471d8(0x223)]=!this[_0x3471d8(0x1fb)]&&this[_0x3471d8(0x1e1)]&&!this[_0x3471d8(0x203)],this[_0x3471d8(0x1f7)]=!this[_0x3471d8(0x1fb)]&&!this[_0x3471d8(0x1e1)]&&!this[_0x3471d8(0x203)];}[_0xf6b8e7(0x209)](){const _0xed366e=_0xf6b8e7,_0x414e90=new _0x46a7be(this[_0xed366e(0x22c)],{'filteredView':this[_0xed366e(0x1f9)],'queryView':{'label':_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x1e8))},'infoView':{'text':{'notFound':{'primary':_0xa3659=>_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x20a),_0xa3659),'secondary':_0x151a0f(this[_0xed366e(0x22c)],_0xed366e(0x1f8))}}}});return _0x414e90['on'](_0xed366e(0x206),()=>{const _0x2ab725=_0xed366e;this[_0x2ab725(0x1ec)][_0x2ab725(0x215)][_0x2ab725(0x1d2)](this[_0x2ab725(0x1e6)],0x1);}),_0x414e90[_0xed366e(0x1dd)]({'attributes':{'class':[this[_0xed366e(0x1df)]['if'](_0xed366e(0x223),_0xed366e(0x1fa),_0x1d921f=>!_0x1d921f)]}}),_0x414e90;}[_0xf6b8e7(0x20b)](){const _0x2dfda5=_0xf6b8e7,_0x1c03d5=new _0x9f4ddc(this[_0x2dfda5(0x22c)],_0x530c43[_0x2dfda5(0x20f)]);return _0x1c03d5[_0x2dfda5(0x1dd)]({'attributes':{'class':[this[_0x2dfda5(0x1df)]['if'](_0x2dfda5(0x1fb),_0x2dfda5(0x1fa),_0x5e81ac=>!_0x5e81ac)]}}),_0x1c03d5;}[_0xf6b8e7(0x202)](){const _0x1b23f1=_0xf6b8e7,_0x2cb851=new _0x4fe555(this[_0x1b23f1(0x22c)]),_0x5119e8=new _0x1b01db(this[_0x1b23f1(0x22c)]);return _0x5119e8[_0x1b23f1(0x1d6)]({'withText':!0x1,'icon':_0x1e68d4,'class':_0x1b23f1(0x219)}),_0x5119e8[_0x1b23f1(0x1d9)](_0x1b23f1(0x216))['to'](this,_0x1b23f1(0x1e1),_0x34133f=>!!_0x34133f),_0x5119e8['on'](_0x1b23f1(0x20d),()=>{const _0x3cee77=_0x1b23f1;this[_0x3cee77(0x203)]='';}),_0x2cb851[_0x1b23f1(0x213)]({'tag':_0x1b23f1(0x21b),'attributes':{'class':['ck',_0x1b23f1(0x204),this[_0x1b23f1(0x1df)]['if'](_0x1b23f1(0x203),_0x1b23f1(0x1fa),_0x4bf355=>!_0x4bf355)]},'children':[{'tag':'p','children':[{'text':this[_0x1b23f1(0x1df)]['to'](_0x1b23f1(0x203))}]},_0x5119e8]}),_0x2cb851;}[_0xf6b8e7(0x226)](){const _0x31d12c=_0xf6b8e7,_0x2a05cc=new _0x1b01db(this[_0x31d12c(0x22c)]);_0x2a05cc[_0x31d12c(0x1d6)]({'label':_0x151a0f(this[_0x31d12c(0x22c)],_0x31d12c(0x21c)),'withText':!0x0,'icon':_0x7daa43,'class':_0x31d12c(0x1e0)}),_0x2a05cc['on'](_0x31d12c(0x20d),()=>{const _0x2c705f=_0x31d12c;this[_0x2c705f(0x1dc)](_0x2c705f(0x1ef));});const _0x378be2=new _0x4fe555(this[_0x31d12c(0x22c)]);return _0x378be2[_0x31d12c(0x213)]({'tag':_0x31d12c(0x21b),'attributes':{'class':[_0x31d12c(0x222),this[_0x31d12c(0x1df)]['if'](_0x31d12c(0x1f7),_0x31d12c(0x1fa),_0x40f941=>!_0x40f941)]},'children':[{'tag':'p','attributes':{'class':[_0x31d12c(0x210)]},'children':[_0x151a0f(this[_0x31d12c(0x22c)],_0x31d12c(0x225))]},_0x2a05cc]}),_0x378be2;}[_0xf6b8e7(0x1da)](_0x413755,_0x22f9fc){const _0x463dd9=_0xf6b8e7,_0x3fde60=[];for(const _0x3e9dbc of _0x413755){const _0x1aa154=new _0x55f685(_0x22f9fc,_0x3e9dbc);_0x1aa154[_0x463dd9(0x218)](..._0x3994c1)['to'](this),_0x3fde60[_0x463dd9(0x1fe)](_0x1aa154);}return _0x3fde60;}[_0xf6b8e7(0x214)](_0x55f1a8){const _0x32c87c=_0xf6b8e7,_0x5f42c3=this[_0x32c87c(0x22c)]||'en',_0x4ca166=[];for(const _0x1af7c2 of _0x55f1a8){const _0x7cf645=this[_0x32c87c(0x1da)](_0x1af7c2[_0x32c87c(0x217)],_0x5f42c3);_0x4ca166[_0x32c87c(0x1fe)](new _0xe7bfd7(_0x5f42c3,{'title':_0x1af7c2[_0x32c87c(0x1e9)],'items':_0x7cf645}));}this[_0x32c87c(0x1f9)][_0x32c87c(0x228)]=_0x4ca166,this[_0x32c87c(0x1f9)][_0x32c87c(0x217)][_0x32c87c(0x212)](),this[_0x32c87c(0x1f9)][_0x32c87c(0x217)][_0x32c87c(0x229)](_0x4ca166),this[_0x32c87c(0x1e1)]=_0x55f1a8[_0x32c87c(0x1f6)](_0x4d2b04=>_0x4d2b04[_0x32c87c(0x217)][_0x32c87c(0x221)]>0x0),this[_0x32c87c(0x21e)]();}[_0xf6b8e7(0x21d)](_0x48f250){const _0x465859=_0xf6b8e7;for(const _0x5cbb28 of this[_0x465859(0x1f9)][_0x465859(0x228)]){const _0x3309ce=_0x5cbb28[_0x465859(0x220)](_0x48f250);if(_0x3309ce){if(_0x5cbb28[_0x465859(0x1f3)](_0x3309ce),0x0===_0x5cbb28[_0x465859(0x1f5)][_0x465859(0x221)]){const _0x275ab2=this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x20c)](_0x5cbb28);-0x1!==_0x275ab2&&(this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x1f1)](_0x275ab2,0x1),this[_0x465859(0x1f9)][_0x465859(0x217)][_0x465859(0x1e7)](_0x5cbb28));}this[_0x465859(0x1e1)]=this[_0x465859(0x1f9)][_0x465859(0x228)][_0x465859(0x221)]>0x0,this[_0x465859(0x21e)]();break;}}}[_0xf6b8e7(0x22a)](_0x572497,_0x2b5007){const _0x4c1621=_0xf6b8e7;for(const _0x3f9086 of this[_0x4c1621(0x1f9)][_0x4c1621(0x228)]){const _0x3df2ab=_0x3f9086[_0x4c1621(0x220)](_0x572497);if(_0x3df2ab){_0x3df2ab[_0x4c1621(0x1f2)](_0x2b5007);break;}}}[_0xf6b8e7(0x1d3)](_0x42873c,_0xd3869e,_0x121292){const _0x5f5a95=_0xf6b8e7;for(const _0x539059 of this[_0x5f5a95(0x1f9)][_0x5f5a95(0x228)]){const _0x5f2098=_0x539059[_0x5f5a95(0x220)](_0x42873c);if(_0x5f2098){_0x5f2098[_0x5f5a95(0x22b)](_0xd3869e,_0x121292);break;}}}[_0xf6b8e7(0x21e)](){const _0x162fa2=_0xf6b8e7;if(this[_0x162fa2(0x1e1)]){const _0x6ee209=this[_0x162fa2(0x1ec)][_0x162fa2(0x1ea)][_0x162fa2(0x1ff)]?.[_0x162fa2(0x1ed)]?.[_0x162fa2(0x1e4)]||'';this[_0x162fa2(0x1ec)][_0x162fa2(0x1ee)](_0x6ee209);}}}
23
+ const _0x2687f2=_0x2a94;(function(_0x33e177,_0x14472a){const _0x4b5457=_0x2a94,_0x353575=_0x33e177();while(!![]){try{const _0x3cf3ea=parseInt(_0x4b5457(0x181))/0x1+-parseInt(_0x4b5457(0x168))/0x2+-parseInt(_0x4b5457(0x17f))/0x3+parseInt(_0x4b5457(0x17c))/0x4+parseInt(_0x4b5457(0x18c))/0x5*(-parseInt(_0x4b5457(0x1a4))/0x6)+parseInt(_0x4b5457(0x14e))/0x7*(-parseInt(_0x4b5457(0x167))/0x8)+parseInt(_0x4b5457(0x18e))/0x9;if(_0x3cf3ea===_0x14472a)break;else _0x353575['push'](_0x353575['shift']());}catch(_0x2b140d){_0x353575['push'](_0x353575['shift']());}}}(_0x4aea,0x6772e));import{View as _0x36b455,SearchTextView as _0x276fa8,FormHeaderView as _0x2c3915,ButtonView as _0x308622}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x37fd09,IconCancel as _0x4d846a,IconPlus as _0x5d1582}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x36ebce}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x32c73a}from'./aichathistorylistview.js';function _0x2a94(_0x240b27,_0x15b18a){const _0x4aea60=_0x4aea();return _0x2a94=function(_0x2a947a,_0x187f4d){_0x2a947a=_0x2a947a-0x14e;let _0x30edbd=_0x4aea60[_0x2a947a];return _0x30edbd;},_0x2a94(_0x240b27,_0x15b18a);}import{AIChatHistoryListItemView as _0x28b94c}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x17b87c}from'../aichathistoryui.js';import{AISkeletonView as _0x5aa7bc,SKELETON_DEFINITIONS as _0x404e1a}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x3ee0de}from'../../aicore/utils/createresizebutton.js';function _0x4aea(){const _0x4f1c44=['add','push','search','updateHistoryItemsWithCategories','1345772kKfbHZ','isMaximized','isLoading','1517040WlPgRK','change:errorMessage','599936VFsMUh','clear','aiHistory','hasItems','items','render','some','length','setTemplate','extendTemplate','change:hasItems','2020AeOoMi','delegate','6374322NUTGmg','ck-ai-chat__start-conversation','errorMessage','change:isLoading','removeItem','_createSkeletonView','div','AI_CHAT_HISTORY_HEADING','fieldView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','_createErrorView','searchView','value','ck-ai-chat-history__empty','AI_CHAT_HISTORY_EMPTY_MESSAGE','skeletonView','bind','locale','emptyView','execute','indexOf','remove','3324XKveCE','getItem','ck-hidden','element','14BxEMSH','_createEmptyStateView','updateTitle','queryView','openChat','updateItemTitle','fire','sectionsView','errorView','updateLoadingState','ck-ai-chat-error__dismiss-button','ck-ai-chat-history','set','updateItemLoadingState','children','ck-reset_all','_refreshSearch','resizeButton','AI_CHAT_LABEL_NEW_CHAT','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','_createListItemViews','ck-ai-chat-history__empty-message','_createSearchView','isEmptyViewVisible','title','852360KMvmJR','556650OgPmFV','isSearchViewVisible','AI_CHAT_HISTORY_SEARCH_LABEL','ltr','splice','bindTemplate','ck-rounded-corners','isVisible','itemsViews','ck-ai-chat-error','ck-ai-header\x20ck-ai-header_history','sections','ck-ai-chat-history__content','_updateViewVisibility','removeHistoryItem','addMany'];_0x4aea=function(){return _0x4f1c44;};return _0x4aea();}import{getTranslation as _0x4fd4d7}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x36b455{[_0x2687f2(0x199)];[_0x2687f2(0x156)];[_0x2687f2(0x19d)];[_0x2687f2(0x1a0)];[_0x2687f2(0x155)];[_0x2687f2(0x15f)];constructor(_0x134f21,_0x139b86){const _0x3bd5b2=_0x2687f2;super(_0x134f21),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x184),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x17e),!0x0),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x190),''),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x17d),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x169),!0x1),this[_0x3bd5b2(0x15a)](_0x3bd5b2(0x165),!0x1);const _0x5de675=new _0x2c3915(_0x134f21,{'label':_0x4fd4d7(_0x134f21,_0x3bd5b2(0x195)),'icon':_0x37fd09,'class':_0x3bd5b2(0x172)});_0x139b86&&(this[_0x3bd5b2(0x15f)]=_0x3ee0de(_0x134f21,this),_0x5de675[_0x3bd5b2(0x15c)][_0x3bd5b2(0x178)](this[_0x3bd5b2(0x15f)])),this[_0x3bd5b2(0x155)]=new _0x36ebce(_0x134f21,[]),this[_0x3bd5b2(0x155)][_0x3bd5b2(0x18d)](..._0x17b87c)['to'](this),this[_0x3bd5b2(0x156)]=this[_0x3bd5b2(0x198)](),this[_0x3bd5b2(0x19d)]=this[_0x3bd5b2(0x193)](),this[_0x3bd5b2(0x1a0)]=this[_0x3bd5b2(0x14f)](),this[_0x3bd5b2(0x199)]=this[_0x3bd5b2(0x164)](),this['on'](_0x3bd5b2(0x191),()=>this[_0x3bd5b2(0x175)]()),this['on'](_0x3bd5b2(0x18b),()=>this[_0x3bd5b2(0x175)]()),this['on'](_0x3bd5b2(0x180),()=>this[_0x3bd5b2(0x175)]()),this[_0x3bd5b2(0x189)]({'tag':_0x3bd5b2(0x194),'attributes':{'class':['ck',_0x3bd5b2(0x15d),_0x3bd5b2(0x159),_0x3bd5b2(0x16e)],'dir':_0x3bd5b2(0x16b)},'children':[_0x5de675,{'tag':_0x3bd5b2(0x194),'attributes':{'class':[_0x3bd5b2(0x174)]},'children':[this[_0x3bd5b2(0x19d)],this[_0x3bd5b2(0x156)],this[_0x3bd5b2(0x1a0)],this[_0x3bd5b2(0x199)]]}]});}[_0x2687f2(0x175)](){const _0x3bed88=_0x2687f2;this[_0x3bed88(0x169)]=!this[_0x3bed88(0x17e)]&&this[_0x3bed88(0x184)]&&!this[_0x3bed88(0x190)],this[_0x3bed88(0x165)]=!this[_0x3bed88(0x17e)]&&!this[_0x3bed88(0x184)]&&!this[_0x3bed88(0x190)];}[_0x2687f2(0x164)](){const _0x2b9984=_0x2687f2,_0x13b526=new _0x276fa8(this[_0x2b9984(0x19f)],{'filteredView':this[_0x2b9984(0x155)],'queryView':{'label':_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x16a))},'infoView':{'text':{'notFound':{'primary':_0x3fe1b2=>_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x161),_0x3fe1b2),'secondary':_0x4fd4d7(this[_0x2b9984(0x19f)],_0x2b9984(0x197))}}}});return _0x13b526['on'](_0x2b9984(0x186),()=>{const _0x3136bf=_0x2b9984;this[_0x3136bf(0x199)][_0x3136bf(0x15c)][_0x3136bf(0x178)](this[_0x3136bf(0x156)],0x1);}),_0x13b526[_0x2b9984(0x18a)]({'attributes':{'class':[this[_0x2b9984(0x16d)]['if'](_0x2b9984(0x169),_0x2b9984(0x1a6),_0x26ad28=>!_0x26ad28)]}}),_0x13b526;}[_0x2687f2(0x193)](){const _0x2477a0=_0x2687f2,_0x3c8b07=new _0x5aa7bc(this[_0x2477a0(0x19f)],_0x404e1a[_0x2477a0(0x183)]);return _0x3c8b07[_0x2477a0(0x18a)]({'attributes':{'class':[this[_0x2477a0(0x16d)]['if'](_0x2477a0(0x17e),_0x2477a0(0x1a6),_0x3b330f=>!_0x3b330f)]}}),_0x3c8b07;}[_0x2687f2(0x198)](){const _0x1d4301=_0x2687f2,_0x54400c=new _0x36b455(this[_0x1d4301(0x19f)]),_0x5ac646=new _0x308622(this[_0x1d4301(0x19f)]);return _0x5ac646[_0x1d4301(0x15a)]({'withText':!0x1,'icon':_0x4d846a,'class':_0x1d4301(0x158)}),_0x5ac646[_0x1d4301(0x19e)](_0x1d4301(0x16f))['to'](this,_0x1d4301(0x184),_0x52318f=>!!_0x52318f),_0x5ac646['on'](_0x1d4301(0x1a1),()=>{const _0x1e22cb=_0x1d4301;this[_0x1e22cb(0x190)]='';}),_0x54400c[_0x1d4301(0x189)]({'tag':_0x1d4301(0x194),'attributes':{'class':['ck',_0x1d4301(0x171),this[_0x1d4301(0x16d)]['if'](_0x1d4301(0x190),_0x1d4301(0x1a6),_0x48862f=>!_0x48862f)]},'children':[{'tag':'p','children':[{'text':this[_0x1d4301(0x16d)]['to'](_0x1d4301(0x190))}]},_0x5ac646]}),_0x54400c;}[_0x2687f2(0x14f)](){const _0x51e9b9=_0x2687f2,_0x5d40ac=new _0x308622(this[_0x51e9b9(0x19f)]);_0x5d40ac[_0x51e9b9(0x15a)]({'label':_0x4fd4d7(this[_0x51e9b9(0x19f)],_0x51e9b9(0x160)),'withText':!0x0,'icon':_0x5d1582,'class':_0x51e9b9(0x18f)}),_0x5d40ac['on'](_0x51e9b9(0x1a1),()=>{const _0x204a92=_0x51e9b9;this[_0x204a92(0x154)](_0x204a92(0x152));});const _0x484336=new _0x36b455(this[_0x51e9b9(0x19f)]);return _0x484336[_0x51e9b9(0x189)]({'tag':_0x51e9b9(0x194),'attributes':{'class':[_0x51e9b9(0x19b),this[_0x51e9b9(0x16d)]['if'](_0x51e9b9(0x165),_0x51e9b9(0x1a6),_0x3efece=>!_0x3efece)]},'children':[{'tag':'p','attributes':{'class':[_0x51e9b9(0x163)]},'children':[_0x4fd4d7(this[_0x51e9b9(0x19f)],_0x51e9b9(0x19c))]},_0x5d40ac]}),_0x484336;}[_0x2687f2(0x162)](_0x9b9370,_0x3316b4){const _0x5ebe8b=_0x2687f2,_0x41e444=[];for(const _0x57fa26 of _0x9b9370){const _0x1fcfc4=new _0x28b94c(_0x3316b4,_0x57fa26);_0x1fcfc4[_0x5ebe8b(0x18d)](..._0x17b87c)['to'](this),_0x41e444[_0x5ebe8b(0x179)](_0x1fcfc4);}return _0x41e444;}[_0x2687f2(0x17b)](_0x3d7f5c){const _0x28b4e0=_0x2687f2,_0x53f874=this[_0x28b4e0(0x19f)]||'en',_0x50f0aa=[];for(const _0x1869ab of _0x3d7f5c){const _0x33a8e4=this[_0x28b4e0(0x162)](_0x1869ab[_0x28b4e0(0x185)],_0x53f874);_0x50f0aa[_0x28b4e0(0x179)](new _0x32c73a(_0x53f874,{'title':_0x1869ab[_0x28b4e0(0x166)],'items':_0x33a8e4}));}this[_0x28b4e0(0x155)][_0x28b4e0(0x173)]=_0x50f0aa,this[_0x28b4e0(0x155)][_0x28b4e0(0x185)][_0x28b4e0(0x182)](),this[_0x28b4e0(0x155)][_0x28b4e0(0x185)][_0x28b4e0(0x177)](_0x50f0aa),this[_0x28b4e0(0x184)]=_0x3d7f5c[_0x28b4e0(0x187)](_0x199f98=>_0x199f98[_0x28b4e0(0x185)][_0x28b4e0(0x188)]>0x0),this[_0x28b4e0(0x15e)]();}[_0x2687f2(0x176)](_0x2b57bb){const _0xb0abbf=_0x2687f2;for(const _0x4d0203 of this[_0xb0abbf(0x155)][_0xb0abbf(0x173)]){const _0x1477c2=_0x4d0203[_0xb0abbf(0x1a5)](_0x2b57bb);if(_0x1477c2){if(_0x4d0203[_0xb0abbf(0x192)](_0x1477c2),0x0===_0x4d0203[_0xb0abbf(0x170)][_0xb0abbf(0x188)]){const _0x2ffbd6=this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x1a2)](_0x4d0203);-0x1!==_0x2ffbd6&&(this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x16c)](_0x2ffbd6,0x1),this[_0xb0abbf(0x155)][_0xb0abbf(0x185)][_0xb0abbf(0x1a3)](_0x4d0203));}this[_0xb0abbf(0x184)]=this[_0xb0abbf(0x155)][_0xb0abbf(0x173)][_0xb0abbf(0x188)]>0x0,this[_0xb0abbf(0x15e)]();break;}}}[_0x2687f2(0x153)](_0x4becf9,_0x40334c){const _0x1eddc0=_0x2687f2;for(const _0x5b3748 of this[_0x1eddc0(0x155)][_0x1eddc0(0x173)]){const _0x3bea96=_0x5b3748[_0x1eddc0(0x1a5)](_0x4becf9);if(_0x3bea96){_0x3bea96[_0x1eddc0(0x150)](_0x40334c);break;}}}[_0x2687f2(0x15b)](_0x63856a,_0x25c027,_0x34d7f){const _0x177b45=_0x2687f2;for(const _0x22a195 of this[_0x177b45(0x155)][_0x177b45(0x173)]){const _0x84c171=_0x22a195[_0x177b45(0x1a5)](_0x63856a);if(_0x84c171){_0x84c171[_0x177b45(0x157)](_0x25c027,_0x34d7f);break;}}}[_0x2687f2(0x15e)](){const _0x52ac81=_0x2687f2;if(this[_0x52ac81(0x184)]){const _0x3754c1=this[_0x52ac81(0x199)][_0x52ac81(0x151)][_0x52ac81(0x196)]?.[_0x52ac81(0x1a7)]?.[_0x52ac81(0x19a)]||'';this[_0x52ac81(0x199)][_0x52ac81(0x17a)](_0x3754c1);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xa37214=_0x2270;(function(_0x1ca782,_0x1187f6){const _0x29acdb=_0x2270,_0x34eaa5=_0x1ca782();while(!![]){try{const _0xd1fcd8=-parseInt(_0x29acdb(0x132))/0x1+parseInt(_0x29acdb(0x152))/0x2*(-parseInt(_0x29acdb(0x160))/0x3)+-parseInt(_0x29acdb(0x142))/0x4+-parseInt(_0x29acdb(0x167))/0x5+-parseInt(_0x29acdb(0x198))/0x6*(parseInt(_0x29acdb(0x14a))/0x7)+-parseInt(_0x29acdb(0x16f))/0x8+parseInt(_0x29acdb(0x153))/0x9;if(_0xd1fcd8===_0x1187f6)break;else _0x34eaa5['push'](_0x34eaa5['shift']());}catch(_0x5b9f1b){_0x34eaa5['push'](_0x34eaa5['shift']());}}}(_0x573d,0x52203));function _0x2270(_0x21a44e,_0x14aeac){const _0x573d06=_0x573d();return _0x2270=function(_0x22704f,_0x1c3fc8){_0x22704f=_0x22704f-0x11f;let _0x4b69c3=_0x573d06[_0x22704f];return _0x4b69c3;},_0x2270(_0x21a44e,_0x14aeac);}import{createParser as _0x45f688}from'eventsource-parser';function _0x573d(){const _0x79d8c1=['50JaODgh','20415753HYwgIy','uploadDocument','executeAction','queryAssistant','FIX_GRAMMAR','group','/conversations?','/documents','uploadUrl','AbortError','/actions/custom/calls/','fetchConversationMessages','attributes','30036eyWbpV','/messages/','upsertAIChatRating','fetchDocument','executeCustomAction','excludeEmpty','length','588420mmSqmN','releaseLock','getReader','/ratings','ai-request-aborted','text','uploadFile','toString','4402856TnltIR','isOfficialPlugin','make-tone-formal','value','catch','name','define','ai-missing-token','append','totalCount','_sendApiRequest','keys','MAKE_LONGER','search','startConversation','callSystemReview','upsertAIReviewRating','/web-resources/','abortController','/reviews/system/','MAKE_TONE_CASUAL','https://ai.cke-cs.com/v1','_getStreamReader','AIConnector','updateConversation','MAKE_TONE_FORMAL','_handleError','fetchConversations','continue','deleteConversation','pluginName','/web-resources','callCustomReview','/reviews/custom/calls','request','ai-request-failed','POST','json','translate','100','/files','1974rjuDiF','Bearer\x20','file','true','/messages','/actions/system/','CloudServices','Content-Type','IMPROVE_WRITING','token','make-tone-casual','signal','stringify','/calls','parse','data','/reviews/custom/calls/','push','/documents/','limit','_decoder','getModels','/files/','plugins','_apiUrl','_token','upsertCustomAIActionRating','config','fetchConversation','PUT','PATCH','/actions/custom/calls','CONTINUE','make-longer','reset','upsertCustomAIReviewRating','upsertAIActionRating','make-shorter','TRANSLATE','162918zBJFOY','deleteDocument','GET','positiveCount','context','fix-grammar','body','application/json','ai.serviceUrl','modificationId','then','statusText','feed','isPremiumPlugin','deleteWebResource','improve-writing','1325120GBZKkr','/conversations/','/calls/','get','read','deleteFile','items','decode','11053rjnbNF','MAKE_SHORTER','init','/conversations','status','requires','/models/1','DELETE'];_0x573d=function(){return _0x79d8c1;};return _0x573d();}import{ContextPlugin as _0x38ad55}from'ckeditor5/src/core.js';import{CKEditorError as _0x5a2083}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x36ab73){const _0x1fe90f=_0x2270;_0x36ab73[_0x1fe90f(0x12b)]=_0x1fe90f(0x18b),_0x36ab73[_0x1fe90f(0x157)]=_0x1fe90f(0x137),_0x36ab73[_0x1fe90f(0x1a0)]=_0x1fe90f(0x141),_0x36ab73[_0x1fe90f(0x17b)]=_0x1fe90f(0x12c),_0x36ab73[_0x1fe90f(0x14b)]=_0x1fe90f(0x130),_0x36ab73[_0x1fe90f(0x183)]=_0x1fe90f(0x1a2),_0x36ab73[_0x1fe90f(0x188)]=_0x1fe90f(0x171),_0x36ab73[_0x1fe90f(0x131)]=_0x1fe90f(0x195);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x38ad55{[_0xa37214(0x123)];[_0xa37214(0x124)];[_0xa37214(0x11f)];static get[_0xa37214(0x14f)](){const _0x5ac90a=_0xa37214;return[_0x5ac90a(0x19e)];}static get[_0xa37214(0x18d)](){const _0x3b0c1f=_0xa37214;return _0x3b0c1f(0x186);}static get[_0xa37214(0x170)](){return!0x0;}static get[_0xa37214(0x13f)](){return!0x0;}constructor(_0x38e20b){const _0x54eb8e=_0xa37214;super(_0x38e20b),this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x175)](_0x54eb8e(0x13a),_0x54eb8e(0x184)),this[_0x54eb8e(0x123)]=this[_0x54eb8e(0x136)][_0x54eb8e(0x126)][_0x54eb8e(0x145)](_0x54eb8e(0x13a)),this[_0x54eb8e(0x124)]=null,this[_0x54eb8e(0x11f)]=new TextDecoder();}[_0xa37214(0x14c)](){const _0x1ea687=_0xa37214,_0x28155e=this[_0x1ea687(0x136)][_0x1ea687(0x122)][_0x1ea687(0x145)](_0x1ea687(0x19e));if(!_0x28155e[_0x1ea687(0x1a1)])throw new _0x5a2083(_0x1ea687(0x176),this);this[_0x1ea687(0x124)]=_0x28155e[_0x1ea687(0x1a1)];}[_0xa37214(0x17d)](_0x4db7fb,_0xa4ea43){const _0x1ffc07=_0xa37214,_0x32a4cd=this[_0x1ffc07(0x179)](_0x1ffc07(0x14d),_0x1ffc07(0x193),{'id':_0x4db7fb,'group':_0xa4ea43});return{'getConversation':async()=>(await _0x32a4cd[_0x1ffc07(0x191)])[_0x1ffc07(0x194)](),'abortController':_0x32a4cd[_0x1ffc07(0x181)]};}[_0xa37214(0x156)]({message:_0x3bfd41,conversationId:_0x5f2eb1,parts:_0x55211b,capabilities:_0x499447,model:_0x551032,quickActionData:_0x1b0c21}){const _0x46e3a1=_0xa37214,_0x30bd00={..._0x1b0c21&&{'quickActionData':_0x1b0c21}},_0x2d4d5c={'prompt':_0x3bfd41,'content':_0x55211b,'model':_0x551032,..._0x499447&&{'capabilities':_0x499447},...Object[_0x46e3a1(0x17a)](_0x30bd00)[_0x46e3a1(0x166)]>0x0&&{'attributes':_0x30bd00}},_0x144d47=this[_0x46e3a1(0x179)](_0x46e3a1(0x143)+_0x5f2eb1+_0x46e3a1(0x19c),_0x46e3a1(0x193),_0x2d4d5c);return{'getStream':async()=>{const _0x4462be=_0x46e3a1,_0x3fc177=(await _0x144d47[_0x4462be(0x191)])[_0x4462be(0x138)];return this[_0x4462be(0x185)](_0x3fc177);},'abortController':_0x144d47[_0x46e3a1(0x181)]};}[_0xa37214(0x164)]({content:_0x541fc4,message:_0xe7d835,model:_0x35dd4a,outputFormat:_0x264918}){const _0x1c5232=_0xa37214,_0x47f14b={'content':[{'type':_0x1c5232(0x16c),'content':_0x541fc4}],'prompt':_0xe7d835,'model':_0x35dd4a,'outputFormat':_0x264918},_0x5ba83c=this[_0x1c5232(0x179)](_0x1c5232(0x12a),_0x1c5232(0x193),_0x47f14b);return{'getStream':async()=>{const _0x3ad652=_0x1c5232,_0x2d2c66=(await _0x5ba83c[_0x3ad652(0x191)])[_0x3ad652(0x138)];return this[_0x3ad652(0x185)](_0x2d2c66);},'abortController':_0x5ba83c[_0x1c5232(0x181)]};}[_0xa37214(0x155)]({actionName:_0x3ae266,content:_0x260d44,args:_0x5faa48}){const _0x1ac8dd=_0xa37214,_0x31609e={'content':[{'type':_0x1ac8dd(0x16c),'content':_0x260d44}],'args':_0x5faa48},_0x2255f8=this[_0x1ac8dd(0x179)](_0x1ac8dd(0x19d)+_0x3ae266+_0x1ac8dd(0x1a5),_0x1ac8dd(0x193),_0x31609e);return{'getStream':async()=>{const _0x191183=_0x1ac8dd,_0x97f332=(await _0x2255f8[_0x191183(0x191)])[_0x191183(0x138)];return this[_0x191183(0x185)](_0x97f332);},'abortController':_0x2255f8[_0x1ac8dd(0x181)]};}[_0xa37214(0x16d)](_0x32a312,_0xe84774,_0x20465a){const _0x25e233=_0xa37214,_0x1f58d4=new FormData();_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x19a),_0xe84774,_0xe84774[_0x25e233(0x174)]),_0x20465a&&_0x1f58d4[_0x25e233(0x177)](_0x25e233(0x15f),JSON[_0x25e233(0x1a4)](_0x20465a));const _0x45c661=this[_0x25e233(0x179)](_0x25e233(0x143)+_0x32a312+_0x25e233(0x197),_0x25e233(0x193),_0x1f58d4);return{'getId':async()=>(await _0x45c661[_0x25e233(0x191)])[_0x25e233(0x194)](),'abortController':_0x45c661[_0x25e233(0x181)]};}[_0xa37214(0x163)](_0x1211bc,_0x40aea1){const _0x57e1a1=_0xa37214,_0x34b5c6=this[_0x57e1a1(0x179)](_0x57e1a1(0x143)+_0x1211bc+_0x57e1a1(0x1aa)+_0x40aea1,_0x57e1a1(0x134));return{'getDocument':async()=>(await _0x34b5c6[_0x57e1a1(0x191)])[_0x57e1a1(0x194)](),'abortController':_0x34b5c6[_0x57e1a1(0x181)]};}[_0xa37214(0x154)](_0x5c35f4,_0x118cc3,_0x4e66d8){const _0x535d1c=_0xa37214,_0xc39e36={'content':_0x118cc3};_0x4e66d8&&(_0xc39e36[_0x535d1c(0x15f)]=_0x4e66d8);const _0x2dc571=this[_0x535d1c(0x179)](_0x535d1c(0x143)+_0x5c35f4+_0x535d1c(0x15a),_0x535d1c(0x193),_0xc39e36);return{'getId':async()=>(await _0x2dc571[_0x535d1c(0x191)])[_0x535d1c(0x194)](),'abortController':_0x2dc571[_0x535d1c(0x181)]};}[_0xa37214(0x18a)](_0x5ae149,_0xeb725){const _0x59afb8=_0xa37214,_0x4a5420=new URLSearchParams();_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x165),_0x59afb8(0x19b)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x1ab),_0x59afb8(0x196)),_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x158),_0x5ae149),_0xeb725&&_0x4a5420[_0x59afb8(0x177)](_0x59afb8(0x17c),_0xeb725);const _0x2e3c92=this[_0x59afb8(0x179)](_0x59afb8(0x159)+_0x4a5420[_0x59afb8(0x16e)](),_0x59afb8(0x134));return{'getConversations':async()=>{const _0x3f1e2d=_0x59afb8,_0x1e0574=await _0x2e3c92[_0x3f1e2d(0x191)];return(await _0x1e0574[_0x3f1e2d(0x194)]())[_0x3f1e2d(0x148)];},'abortController':_0x2e3c92[_0x59afb8(0x181)]};}[_0xa37214(0x18c)](_0x2fcd1b){const _0x5d6067=_0xa37214,_0x256a2f=this[_0x5d6067(0x179)](_0x5d6067(0x143)+_0x2fcd1b,_0x5d6067(0x151));return{'execute':async()=>{const _0x3e2254=_0x5d6067;await _0x256a2f[_0x3e2254(0x191)];},'abortController':_0x256a2f[_0x5d6067(0x181)]};}[_0xa37214(0x187)](_0x136f33,_0x51c162){const _0x3dc4ff=_0xa37214,_0x29ff9f=this[_0x3dc4ff(0x179)](_0x3dc4ff(0x143)+_0x136f33,_0x3dc4ff(0x129),_0x51c162);return{'getResult':async()=>(await _0x29ff9f[_0x3dc4ff(0x191)],_0x51c162),'abortController':_0x29ff9f[_0x3dc4ff(0x181)]};}[_0xa37214(0x127)](_0x1b213b){const _0x23d999=_0xa37214,_0x74738=this[_0x23d999(0x179)](_0x23d999(0x143)+_0x1b213b,_0x23d999(0x134));return{'getConversation':async()=>(await _0x74738[_0x23d999(0x191)])[_0x23d999(0x194)](),'abortController':_0x74738[_0x23d999(0x181)]};}[_0xa37214(0x15e)](_0x46748b){const _0x852819=_0xa37214,_0x538e8e=this[_0x852819(0x179)](_0x852819(0x143)+_0x46748b+_0x852819(0x19c),_0x852819(0x134));return{'getMessages':async()=>{const _0x366e9e=_0x852819,_0x1f8d31=await _0x538e8e[_0x366e9e(0x191)];return(await _0x1f8d31[_0x366e9e(0x194)]())[_0x366e9e(0x148)];},'abortController':_0x538e8e[_0x852819(0x181)]};}[_0xa37214(0x15b)](_0x3f8d27,_0x55a92c,_0x228e5c){const _0x4610c8=_0xa37214,_0x3f6426=this[_0x4610c8(0x179)](_0x4610c8(0x143)+_0x3f8d27+_0x4610c8(0x18e),_0x4610c8(0x193),{'url':_0x55a92c,'attributes':_0x228e5c});return{'getId':async()=>(await _0x3f6426[_0x4610c8(0x191)])[_0x4610c8(0x194)](),'abortController':_0x3f6426[_0x4610c8(0x181)]};}[_0xa37214(0x120)](){const _0x30f3b9=_0xa37214,_0x417a8b=this[_0x30f3b9(0x179)](_0x30f3b9(0x150),_0x30f3b9(0x134));return{'list':async()=>await(await _0x417a8b[_0x30f3b9(0x191)])[_0x30f3b9(0x194)](),'abortController':_0x417a8b[_0x30f3b9(0x181)]};}[_0xa37214(0x147)](_0x31d7fd,_0x378b9f){const _0x4f6350=_0xa37214,_0x36f25e=this[_0x4f6350(0x179)](_0x4f6350(0x143)+_0x31d7fd+_0x4f6350(0x121)+_0x378b9f,_0x4f6350(0x151));return{'execute':async()=>{const _0x32488f=_0x4f6350;await _0x36f25e[_0x32488f(0x191)];},'abortController':_0x36f25e[_0x4f6350(0x181)]};}[_0xa37214(0x133)](_0xea30ae,_0x36643f){const _0x283d19=_0xa37214,_0x32240c=this[_0x283d19(0x179)](_0x283d19(0x143)+_0xea30ae+_0x283d19(0x1aa)+_0x36643f,_0x283d19(0x151));return{'execute':async()=>{const _0x32c7f5=_0x283d19;await _0x32240c[_0x32c7f5(0x191)];},'abortController':_0x32240c[_0x283d19(0x181)]};}[_0xa37214(0x140)](_0x92bbe9,_0x3cde9f){const _0x375bb3=_0xa37214,_0x525491=this[_0x375bb3(0x179)](_0x375bb3(0x143)+_0x92bbe9+_0x375bb3(0x180)+_0x3cde9f,_0x375bb3(0x151));return{'execute':async()=>{const _0xcd8fde=_0x375bb3;await _0x525491[_0xcd8fde(0x191)];},'abortController':_0x525491[_0x375bb3(0x181)]};}[_0xa37214(0x17e)]({reviewName:_0x20c6b2,content:_0x23a74e,args:_0x4cbe45}){const _0x5a73dd=_0xa37214,_0x4ea7b5=this[_0x5a73dd(0x179)](_0x5a73dd(0x182)+_0x20c6b2+_0x5a73dd(0x1a5),_0x5a73dd(0x193),{'content':[{'type':_0x5a73dd(0x16c),'content':_0x23a74e}],'args':_0x4cbe45});return{'getStream':async()=>{const _0x42e123=_0x5a73dd,_0x19eaae=(await _0x4ea7b5[_0x42e123(0x191)])[_0x42e123(0x138)];return this[_0x42e123(0x185)](_0x19eaae);},'abortController':_0x4ea7b5[_0x5a73dd(0x181)]};}[_0xa37214(0x18f)]({content:_0x38e0c3,prompt:_0x673368,model:_0x264440}){const _0x2bf373=_0xa37214,_0x2037eb=this[_0x2bf373(0x179)](_0x2bf373(0x190),_0x2bf373(0x193),{'content':[{'type':_0x2bf373(0x16c),'content':_0x38e0c3}],'prompt':_0x673368,'model':_0x264440});return{'getStream':async()=>{const _0x5be7a5=_0x2bf373,_0x194909=(await _0x2037eb[_0x5be7a5(0x191)])[_0x5be7a5(0x138)];return this[_0x5be7a5(0x185)](_0x194909);},'abortController':_0x2037eb[_0x2bf373(0x181)]};}[_0xa37214(0x162)](_0x5ec74f,_0x3f7e39,_0x443112){const _0x319fa0=_0xa37214,_0x535120=this[_0x319fa0(0x179)](_0x319fa0(0x143)+_0x5ec74f+_0x319fa0(0x161)+_0x3f7e39+_0x319fa0(0x16a),_0x319fa0(0x128),{'positiveCount':_0x443112[_0x319fa0(0x135)],'totalCount':_0x443112[_0x319fa0(0x178)],'modificationId':_0x443112[_0x319fa0(0x13b)]});return{'execute':async()=>{const _0x46f027=_0x319fa0;await _0x535120[_0x46f027(0x191)];},'abortController':_0x535120[_0x319fa0(0x181)]};}[_0xa37214(0x12f)](_0x3b5b85,_0x5be6e2,_0x5159c8){const _0x2ddb3b=_0xa37214,_0x1cb9df=this[_0x2ddb3b(0x179)](_0x2ddb3b(0x19d)+_0x3b5b85+_0x2ddb3b(0x144)+_0x5be6e2+_0x2ddb3b(0x16a),_0x2ddb3b(0x128),{'positiveCount':_0x5159c8[_0x2ddb3b(0x135)],'totalCount':_0x5159c8[_0x2ddb3b(0x178)]});return{'execute':async()=>{const _0x271e57=_0x2ddb3b;await _0x1cb9df[_0x271e57(0x191)];},'abortController':_0x1cb9df[_0x2ddb3b(0x181)]};}[_0xa37214(0x125)](_0x1d6793,_0x24b445){const _0x1a9e36=_0xa37214,_0x5431ff=this[_0x1a9e36(0x179)](_0x1a9e36(0x15d)+_0x1d6793+_0x1a9e36(0x16a),_0x1a9e36(0x128),{'positiveCount':_0x24b445[_0x1a9e36(0x135)],'totalCount':_0x24b445[_0x1a9e36(0x178)]});return{'execute':async()=>{const _0x37a87e=_0x1a9e36;await _0x5431ff[_0x37a87e(0x191)];},'abortController':_0x5431ff[_0x1a9e36(0x181)]};}[_0xa37214(0x17f)](_0x3c7418,_0x3d33ba,_0x2e0759,_0x5d266f){const _0x1be42a=_0xa37214,_0x1417aa=this[_0x1be42a(0x179)](_0x1be42a(0x182)+_0x3c7418+_0x1be42a(0x144)+_0x3d33ba+_0x1be42a(0x16a),_0x1be42a(0x128),{'positiveCount':_0x2e0759[_0x1be42a(0x135)],'totalCount':_0x2e0759[_0x1be42a(0x178)],'dataId':_0x5d266f});return{'execute':async()=>{const _0x3359b1=_0x1be42a;await _0x1417aa[_0x3359b1(0x191)];},'abortController':_0x1417aa[_0x1be42a(0x181)]};}[_0xa37214(0x12e)](_0x6cbe24,_0x2998d3,_0x398e1e){const _0x586b23=_0xa37214,_0x2a42ea=this[_0x586b23(0x179)](_0x586b23(0x1a8)+_0x6cbe24+_0x586b23(0x16a),_0x586b23(0x128),{'positiveCount':_0x2998d3[_0x586b23(0x135)],'totalCount':_0x2998d3[_0x586b23(0x178)],'dataId':_0x398e1e});return{'execute':async()=>{const _0x5ee16d=_0x586b23;await _0x2a42ea[_0x5ee16d(0x191)];},'abortController':_0x2a42ea[_0x586b23(0x181)]};}[_0xa37214(0x179)](_0x5cbb42,_0x5f1b0f,_0x506316){const _0x1f8d47=_0xa37214,_0x348be5=new AbortController(),_0x406cd4=_0x506316 instanceof FormData,_0xa467c={'Authorization':_0x1f8d47(0x199)+this[_0x1f8d47(0x124)]?.[_0x1f8d47(0x172)]};_0x506316&&!_0x406cd4&&(_0xa467c[_0x1f8d47(0x19f)]=_0x1f8d47(0x139));const _0x3a9b99={'method':_0x5f1b0f,'headers':_0xa467c,'signal':_0x348be5[_0x1f8d47(0x1a3)]};return _0x506316&&(_0x3a9b99[_0x1f8d47(0x138)]=_0x406cd4?_0x506316:JSON[_0x1f8d47(0x1a4)](_0x506316)),{'request':fetch(''+this[_0x1f8d47(0x123)]+_0x5cbb42,_0x3a9b99)[_0x1f8d47(0x173)](_0x1c7b67=>{const _0x2a15fb=_0x1f8d47;this[_0x2a15fb(0x189)](_0x1c7b67);})[_0x1f8d47(0x13c)](_0x4e80a2=>{const _0x5bf6c9=_0x1f8d47;if(!_0x4e80a2['ok'])throw new _0x5a2083(_0x5bf6c9(0x192),this,{'url':this[_0x5bf6c9(0x123)],'path':_0x5cbb42,'method':_0x5f1b0f,'body':_0x506316,'status':(_0x4e80a2||{})[_0x5bf6c9(0x14e)],'statusText':(_0x4e80a2||{})[_0x5bf6c9(0x13d)]});return _0x4e80a2;}),'abortController':_0x348be5};}async*[_0xa37214(0x185)](_0x4519fa){const _0x275a60=_0xa37214,_0x345a91=[],_0x3e8e6b=_0x4519fa[_0x275a60(0x169)](),_0x52751d=_0x45f688({'onError':_0x275594=>{const _0x39808a=_0x275a60;this[_0x39808a(0x189)](_0x275594);},'onEvent':_0x211c1e=>{const _0x4528b2=_0x275a60;_0x211c1e[_0x4528b2(0x1a7)]=JSON[_0x4528b2(0x1a6)](_0x211c1e[_0x4528b2(0x1a7)]),_0x345a91[_0x4528b2(0x1a9)](_0x211c1e);}});try{let _0x1025e2=!0x1;for(;!_0x1025e2;){const {done:_0x49f2d5,value:_0x5552a9}=await _0x3e8e6b[_0x275a60(0x146)]();_0x49f2d5&&(_0x1025e2=!0x0),_0x52751d[_0x275a60(0x13e)](this[_0x275a60(0x11f)][_0x275a60(0x149)](_0x5552a9,{'stream':!0x0})),yield*_0x345a91,_0x345a91[_0x275a60(0x166)]=0x0;}}catch(_0x4b4c88){this[_0x275a60(0x189)](_0x4b4c88);}finally{_0x3e8e6b[_0x275a60(0x168)](),_0x52751d[_0x275a60(0x12d)]();}}[_0xa37214(0x189)](_0x156e35){const _0x2b3887=_0xa37214;if(_0x156e35 instanceof _0x5a2083)throw _0x156e35;if(_0x156e35 instanceof Error&&_0x2b3887(0x15c)===_0x156e35[_0x2b3887(0x174)])throw new _0x5a2083(_0x2b3887(0x16b),this,{'originalError':_0x156e35});throw new _0x5a2083(_0x2b3887(0x192),this,{'originalError':_0x156e35});}}
23
+ const _0x51e0ed=_0x515e;(function(_0x57ec7f,_0x3b6149){const _0x4068be=_0x515e,_0x41eda3=_0x57ec7f();while(!![]){try{const _0x3ca5cb=-parseInt(_0x4068be(0x1ee))/0x1+parseInt(_0x4068be(0x258))/0x2*(parseInt(_0x4068be(0x213))/0x3)+parseInt(_0x4068be(0x222))/0x4+-parseInt(_0x4068be(0x26f))/0x5+parseInt(_0x4068be(0x23e))/0x6*(-parseInt(_0x4068be(0x1f5))/0x7)+-parseInt(_0x4068be(0x262))/0x8+parseInt(_0x4068be(0x240))/0x9;if(_0x3ca5cb===_0x3b6149)break;else _0x41eda3['push'](_0x41eda3['shift']());}catch(_0x2d2a01){_0x41eda3['push'](_0x41eda3['shift']());}}}(_0x4bb9,0xd154b));import{createParser as _0x9dc336}from'eventsource-parser';function _0x4bb9(){const _0x2862ea=['/reviews/custom/calls/','make-shorter','then','continue','/ratings','file','config','abortController','group','getModels','queryAssistant','requires','push','PATCH','_decoder','MAKE_SHORTER','getReader','/messages/','plugins','_token','AbortError','token','FIX_GRAMMAR','make-tone-casual','AIConnector','upsertAIChatRating','/documents/','statusText','3kpwEXo','ai-request-failed','deleteDocument','define','DELETE','status','/reviews/system/','callCustomReview','feed','callSystemReview','deleteWebResource','ai.serviceUrl','attributes','Bearer\x20','/messages','5454736PqpEcq','Content-Type','executeAction','uploadUrl','init','text','decode','deleteConversation','CloudServices','true','ai-missing-token','/conversations/','fetchDocument','/files/','TRANSLATE','search','append','startConversation','ai-request-aborted','100','_sendApiRequest','upsertAIActionRating','translate','request','stringify','fetchConversationMessages','toString','/conversations?','6eAXxci','uploadFile','32157549UmShLx','/calls/','_apiUrl','body','data','upsertAIReviewRating','/reviews/custom/calls','fetchConversation','/models/1','isPremiumPlugin','fetchConversations','totalCount','executeCustomAction','isOfficialPlugin','upsertCustomAIReviewRating','CONTINUE','improve-writing','limit','IMPROVE_WRITING','/calls','reset','/actions/custom/calls/','name','releaseLock','807816TaLMYL','application/json','modificationId','value','fix-grammar','updateConversation','signal','catch','length','context','11894600oaHEzT','/conversations','MAKE_TONE_CASUAL','PUT','positiveCount','/documents','_handleError','excludeEmpty','GET','make-tone-formal','_getStreamReader','items','https://ai.cke-cs.com/v1','6698140ksOHBL','json','MAKE_LONGER','get','upsertCustomAIActionRating','keys','/web-resources','POST','uploadDocument','/actions/custom/calls','/files','parse','281565DDpaeS','/web-resources/','MAKE_TONE_FORMAL','read','deleteFile','make-longer','/actions/system/','9626512UMNHKm','pluginName'];_0x4bb9=function(){return _0x2862ea;};return _0x4bb9();}import{ContextPlugin as _0x35edf8}from'ckeditor5/src/core.js';import{CKEditorError as _0x349de8}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x515e(_0x1d9d4b,_0x2e1d22){const _0x4bb981=_0x4bb9();return _0x515e=function(_0x515ebc,_0x4f0358){_0x515ebc=_0x515ebc-0x1e7;let _0x1deab5=_0x4bb981[_0x515ebc];return _0x1deab5;},_0x515e(_0x1d9d4b,_0x2e1d22);}!function(_0x5036d3){const _0x1329cd=_0x515e;_0x5036d3[_0x1329cd(0x24f)]=_0x1329cd(0x1fa),_0x5036d3[_0x1329cd(0x20d)]=_0x1329cd(0x25c),_0x5036d3[_0x1329cd(0x252)]=_0x1329cd(0x250),_0x5036d3[_0x1329cd(0x271)]=_0x1329cd(0x1f3),_0x5036d3[_0x1329cd(0x206)]=_0x1329cd(0x1f8),_0x5036d3[_0x1329cd(0x264)]=_0x1329cd(0x20e),_0x5036d3[_0x1329cd(0x1f0)]=_0x1329cd(0x26b),_0x5036d3[_0x1329cd(0x230)]=_0x1329cd(0x238);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x35edf8{[_0x51e0ed(0x242)];[_0x51e0ed(0x20a)];[_0x51e0ed(0x205)];static get[_0x51e0ed(0x202)](){const _0x2cde27=_0x51e0ed;return[_0x2cde27(0x22a)];}static get[_0x51e0ed(0x1f6)](){const _0x149396=_0x51e0ed;return _0x149396(0x20f);}static get[_0x51e0ed(0x24d)](){return!0x0;}static get[_0x51e0ed(0x249)](){return!0x0;}constructor(_0x283da2){const _0x15c0d3=_0x51e0ed;super(_0x283da2),this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x216)](_0x15c0d3(0x21e),_0x15c0d3(0x26e)),this[_0x15c0d3(0x242)]=this[_0x15c0d3(0x261)][_0x15c0d3(0x1fd)][_0x15c0d3(0x272)](_0x15c0d3(0x21e)),this[_0x15c0d3(0x20a)]=null,this[_0x15c0d3(0x205)]=new TextDecoder();}[_0x51e0ed(0x226)](){const _0xc32aa0=_0x51e0ed,_0x4950a5=this[_0xc32aa0(0x261)][_0xc32aa0(0x209)][_0xc32aa0(0x272)](_0xc32aa0(0x22a));if(!_0x4950a5[_0xc32aa0(0x20c)])throw new _0x349de8(_0xc32aa0(0x22c),this);this[_0xc32aa0(0x20a)]=_0x4950a5[_0xc32aa0(0x20c)];}[_0x51e0ed(0x233)](_0x4df5a5,_0x4cef01){const _0x2c8c6f=_0x51e0ed,_0x320a0e=this[_0x2c8c6f(0x236)](_0x2c8c6f(0x263),_0x2c8c6f(0x1e9),{'id':_0x4df5a5,'group':_0x4cef01});return{'getConversation':async()=>(await _0x320a0e[_0x2c8c6f(0x239)])[_0x2c8c6f(0x270)](),'abortController':_0x320a0e[_0x2c8c6f(0x1fe)]};}[_0x51e0ed(0x201)]({message:_0x28765d,conversationId:_0x17fa4b,parts:_0x574f00,capabilities:_0x3ea7b2,model:_0x56de3d,quickActionData:_0x5aa6f2}){const _0x4a455e=_0x51e0ed,_0xc96158={..._0x5aa6f2&&{'quickActionData':_0x5aa6f2}},_0x1c566a={'prompt':_0x28765d,'content':_0x574f00,'model':_0x56de3d,..._0x3ea7b2&&{'capabilities':_0x3ea7b2},...Object[_0x4a455e(0x1e7)](_0xc96158)[_0x4a455e(0x260)]>0x0&&{'attributes':_0xc96158}},_0x55dc51=this[_0x4a455e(0x236)](_0x4a455e(0x22d)+_0x17fa4b+_0x4a455e(0x221),_0x4a455e(0x1e9),_0x1c566a);return{'getStream':async()=>{const _0x9b9642=_0x4a455e,_0x46948d=(await _0x55dc51[_0x9b9642(0x239)])[_0x9b9642(0x243)];return this[_0x9b9642(0x26c)](_0x46948d);},'abortController':_0x55dc51[_0x4a455e(0x1fe)]};}[_0x51e0ed(0x24c)]({content:_0xf823dd,message:_0x32cbba,model:_0x5b5a67,outputFormat:_0x297820}){const _0x53b71f=_0x51e0ed,_0x738cf4={'content':[{'type':_0x53b71f(0x227),'content':_0xf823dd}],'prompt':_0x32cbba,'model':_0x5b5a67,'outputFormat':_0x297820},_0x5ee86a=this[_0x53b71f(0x236)](_0x53b71f(0x1eb),_0x53b71f(0x1e9),_0x738cf4);return{'getStream':async()=>{const _0x58d60b=_0x53b71f,_0x289079=(await _0x5ee86a[_0x58d60b(0x239)])[_0x58d60b(0x243)];return this[_0x58d60b(0x26c)](_0x289079);},'abortController':_0x5ee86a[_0x53b71f(0x1fe)]};}[_0x51e0ed(0x224)]({actionName:_0x23d3dc,content:_0x534419,args:_0x532797}){const _0x45ebb3=_0x51e0ed,_0x5a55e2={'content':[{'type':_0x45ebb3(0x227),'content':_0x534419}],'args':_0x532797},_0x245bb2=this[_0x45ebb3(0x236)](_0x45ebb3(0x1f4)+_0x23d3dc+_0x45ebb3(0x253),_0x45ebb3(0x1e9),_0x5a55e2);return{'getStream':async()=>{const _0x536552=_0x45ebb3,_0x58a4d1=(await _0x245bb2[_0x536552(0x239)])[_0x536552(0x243)];return this[_0x536552(0x26c)](_0x58a4d1);},'abortController':_0x245bb2[_0x45ebb3(0x1fe)]};}[_0x51e0ed(0x23f)](_0x347a18,_0x953a3d,_0x3a8aaf){const _0x254bd0=_0x51e0ed,_0x586766=new FormData();_0x586766[_0x254bd0(0x232)](_0x254bd0(0x1fc),_0x953a3d,_0x953a3d[_0x254bd0(0x256)]),_0x3a8aaf&&_0x586766[_0x254bd0(0x232)](_0x254bd0(0x21f),JSON[_0x254bd0(0x23a)](_0x3a8aaf));const _0x508e3f=this[_0x254bd0(0x236)](_0x254bd0(0x22d)+_0x347a18+_0x254bd0(0x1ec),_0x254bd0(0x1e9),_0x586766);return{'getId':async()=>(await _0x508e3f[_0x254bd0(0x239)])[_0x254bd0(0x270)](),'abortController':_0x508e3f[_0x254bd0(0x1fe)]};}[_0x51e0ed(0x22e)](_0x23f324,_0x2f481d){const _0x1abf49=_0x51e0ed,_0x112052=this[_0x1abf49(0x236)](_0x1abf49(0x22d)+_0x23f324+_0x1abf49(0x211)+_0x2f481d,_0x1abf49(0x26a));return{'getDocument':async()=>(await _0x112052[_0x1abf49(0x239)])[_0x1abf49(0x270)](),'abortController':_0x112052[_0x1abf49(0x1fe)]};}[_0x51e0ed(0x1ea)](_0x4390b7,_0x4bc2b0,_0x83ac02){const _0x28ab75=_0x51e0ed,_0x46e4d6={'content':_0x4bc2b0};_0x83ac02&&(_0x46e4d6[_0x28ab75(0x21f)]=_0x83ac02);const _0x39a11f=this[_0x28ab75(0x236)](_0x28ab75(0x22d)+_0x4390b7+_0x28ab75(0x267),_0x28ab75(0x1e9),_0x46e4d6);return{'getId':async()=>(await _0x39a11f[_0x28ab75(0x239)])[_0x28ab75(0x270)](),'abortController':_0x39a11f[_0x28ab75(0x1fe)]};}[_0x51e0ed(0x24a)](_0x56a0d3,_0x1edc93){const _0x5ee1f8=_0x51e0ed,_0x1b7b83=new URLSearchParams();_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x269),_0x5ee1f8(0x22b)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x251),_0x5ee1f8(0x235)),_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x1ff),_0x56a0d3),_0x1edc93&&_0x1b7b83[_0x5ee1f8(0x232)](_0x5ee1f8(0x231),_0x1edc93);const _0x1e6d74=this[_0x5ee1f8(0x236)](_0x5ee1f8(0x23d)+_0x1b7b83[_0x5ee1f8(0x23c)](),_0x5ee1f8(0x26a));return{'getConversations':async()=>{const _0x20e742=_0x5ee1f8,_0x4ba38e=await _0x1e6d74[_0x20e742(0x239)];return(await _0x4ba38e[_0x20e742(0x270)]())[_0x20e742(0x26d)];},'abortController':_0x1e6d74[_0x5ee1f8(0x1fe)]};}[_0x51e0ed(0x229)](_0x5cb549){const _0x1f6410=_0x51e0ed,_0x4eab71=this[_0x1f6410(0x236)](_0x1f6410(0x22d)+_0x5cb549,_0x1f6410(0x217));return{'execute':async()=>{const _0x4f9a0e=_0x1f6410;await _0x4eab71[_0x4f9a0e(0x239)];},'abortController':_0x4eab71[_0x1f6410(0x1fe)]};}[_0x51e0ed(0x25d)](_0xa9422a,_0x10110b){const _0x4613d1=_0x51e0ed,_0x26e3f2=this[_0x4613d1(0x236)](_0x4613d1(0x22d)+_0xa9422a,_0x4613d1(0x204),_0x10110b);return{'getResult':async()=>(await _0x26e3f2[_0x4613d1(0x239)],_0x10110b),'abortController':_0x26e3f2[_0x4613d1(0x1fe)]};}[_0x51e0ed(0x247)](_0x4c6746){const _0x2a6d18=_0x51e0ed,_0x34e455=this[_0x2a6d18(0x236)](_0x2a6d18(0x22d)+_0x4c6746,_0x2a6d18(0x26a));return{'getConversation':async()=>(await _0x34e455[_0x2a6d18(0x239)])[_0x2a6d18(0x270)](),'abortController':_0x34e455[_0x2a6d18(0x1fe)]};}[_0x51e0ed(0x23b)](_0x370d86){const _0x4cfc21=_0x51e0ed,_0x1466d9=this[_0x4cfc21(0x236)](_0x4cfc21(0x22d)+_0x370d86+_0x4cfc21(0x221),_0x4cfc21(0x26a));return{'getMessages':async()=>{const _0x41757b=_0x4cfc21,_0x51d33f=await _0x1466d9[_0x41757b(0x239)];return(await _0x51d33f[_0x41757b(0x270)]())[_0x41757b(0x26d)];},'abortController':_0x1466d9[_0x4cfc21(0x1fe)]};}[_0x51e0ed(0x225)](_0x17c219,_0x4d1516,_0x3c0b07){const _0x282b81=_0x51e0ed,_0x5169f0=this[_0x282b81(0x236)](_0x282b81(0x22d)+_0x17c219+_0x282b81(0x1e8),_0x282b81(0x1e9),{'url':_0x4d1516,'attributes':_0x3c0b07});return{'getId':async()=>(await _0x5169f0[_0x282b81(0x239)])[_0x282b81(0x270)](),'abortController':_0x5169f0[_0x282b81(0x1fe)]};}[_0x51e0ed(0x200)](){const _0x40cdd7=_0x51e0ed,_0x18c687=this[_0x40cdd7(0x236)](_0x40cdd7(0x248),_0x40cdd7(0x26a));return{'list':async()=>await(await _0x18c687[_0x40cdd7(0x239)])[_0x40cdd7(0x270)](),'abortController':_0x18c687[_0x40cdd7(0x1fe)]};}[_0x51e0ed(0x1f2)](_0x1f05cd,_0x887713){const _0x11de09=_0x51e0ed,_0x28b682=this[_0x11de09(0x236)](_0x11de09(0x22d)+_0x1f05cd+_0x11de09(0x22f)+_0x887713,_0x11de09(0x217));return{'execute':async()=>{const _0x547f64=_0x11de09;await _0x28b682[_0x547f64(0x239)];},'abortController':_0x28b682[_0x11de09(0x1fe)]};}[_0x51e0ed(0x215)](_0x320d1e,_0x4ab39c){const _0x1c08fb=_0x51e0ed,_0x161cd8=this[_0x1c08fb(0x236)](_0x1c08fb(0x22d)+_0x320d1e+_0x1c08fb(0x211)+_0x4ab39c,_0x1c08fb(0x217));return{'execute':async()=>{const _0x540ec5=_0x1c08fb;await _0x161cd8[_0x540ec5(0x239)];},'abortController':_0x161cd8[_0x1c08fb(0x1fe)]};}[_0x51e0ed(0x21d)](_0xbc6c5f,_0x2d8aed){const _0x3c6e14=_0x51e0ed,_0x33caa2=this[_0x3c6e14(0x236)](_0x3c6e14(0x22d)+_0xbc6c5f+_0x3c6e14(0x1ef)+_0x2d8aed,_0x3c6e14(0x217));return{'execute':async()=>{const _0x38ac38=_0x3c6e14;await _0x33caa2[_0x38ac38(0x239)];},'abortController':_0x33caa2[_0x3c6e14(0x1fe)]};}[_0x51e0ed(0x21c)]({reviewName:_0x32217d,content:_0x8d47bc,args:_0x394d1a}){const _0x4e2804=_0x51e0ed,_0x569b23=this[_0x4e2804(0x236)](_0x4e2804(0x219)+_0x32217d+_0x4e2804(0x253),_0x4e2804(0x1e9),{'content':[{'type':_0x4e2804(0x227),'content':_0x8d47bc}],'args':_0x394d1a});return{'getStream':async()=>{const _0x1ca8b5=_0x4e2804,_0x4a3c7d=(await _0x569b23[_0x1ca8b5(0x239)])[_0x1ca8b5(0x243)];return this[_0x1ca8b5(0x26c)](_0x4a3c7d);},'abortController':_0x569b23[_0x4e2804(0x1fe)]};}[_0x51e0ed(0x21a)]({content:_0x42b1cc,prompt:_0x2508e8,model:_0x568117}){const _0x6a9f70=_0x51e0ed,_0x5969ff=this[_0x6a9f70(0x236)](_0x6a9f70(0x246),_0x6a9f70(0x1e9),{'content':[{'type':_0x6a9f70(0x227),'content':_0x42b1cc}],'prompt':_0x2508e8,'model':_0x568117});return{'getStream':async()=>{const _0x1d00f4=_0x6a9f70,_0x4dc0ad=(await _0x5969ff[_0x1d00f4(0x239)])[_0x1d00f4(0x243)];return this[_0x1d00f4(0x26c)](_0x4dc0ad);},'abortController':_0x5969ff[_0x6a9f70(0x1fe)]};}[_0x51e0ed(0x210)](_0x5d41ac,_0x5a07df,_0x3acd3f){const _0x43fbc4=_0x51e0ed,_0x5ac81e=this[_0x43fbc4(0x236)](_0x43fbc4(0x22d)+_0x5d41ac+_0x43fbc4(0x208)+_0x5a07df+_0x43fbc4(0x1fb),_0x43fbc4(0x265),{'positiveCount':_0x3acd3f[_0x43fbc4(0x266)],'totalCount':_0x3acd3f[_0x43fbc4(0x24b)],'modificationId':_0x3acd3f[_0x43fbc4(0x25a)]});return{'execute':async()=>{const _0x9f99e6=_0x43fbc4;await _0x5ac81e[_0x9f99e6(0x239)];},'abortController':_0x5ac81e[_0x43fbc4(0x1fe)]};}[_0x51e0ed(0x237)](_0x527feb,_0x216b6a,_0xa09b07){const _0x4fff89=_0x51e0ed,_0x231ba5=this[_0x4fff89(0x236)](_0x4fff89(0x1f4)+_0x527feb+_0x4fff89(0x241)+_0x216b6a+_0x4fff89(0x1fb),_0x4fff89(0x265),{'positiveCount':_0xa09b07[_0x4fff89(0x266)],'totalCount':_0xa09b07[_0x4fff89(0x24b)]});return{'execute':async()=>{const _0x3a4e2e=_0x4fff89;await _0x231ba5[_0x3a4e2e(0x239)];},'abortController':_0x231ba5[_0x4fff89(0x1fe)]};}[_0x51e0ed(0x273)](_0x41e6c2,_0x3dd41e){const _0x4f6fcb=_0x51e0ed,_0x53aa23=this[_0x4f6fcb(0x236)](_0x4f6fcb(0x255)+_0x41e6c2+_0x4f6fcb(0x1fb),_0x4f6fcb(0x265),{'positiveCount':_0x3dd41e[_0x4f6fcb(0x266)],'totalCount':_0x3dd41e[_0x4f6fcb(0x24b)]});return{'execute':async()=>{const _0x2be315=_0x4f6fcb;await _0x53aa23[_0x2be315(0x239)];},'abortController':_0x53aa23[_0x4f6fcb(0x1fe)]};}[_0x51e0ed(0x245)](_0x1cc9ab,_0x258019,_0x1b6a2a,_0x1420a9){const _0x40dbfd=_0x51e0ed,_0x1eae76=this[_0x40dbfd(0x236)](_0x40dbfd(0x219)+_0x1cc9ab+_0x40dbfd(0x241)+_0x258019+_0x40dbfd(0x1fb),_0x40dbfd(0x265),{'positiveCount':_0x1b6a2a[_0x40dbfd(0x266)],'totalCount':_0x1b6a2a[_0x40dbfd(0x24b)],'dataId':_0x1420a9});return{'execute':async()=>{const _0x2b40d3=_0x40dbfd;await _0x1eae76[_0x2b40d3(0x239)];},'abortController':_0x1eae76[_0x40dbfd(0x1fe)]};}[_0x51e0ed(0x24e)](_0x4719ce,_0x455d13,_0x36ffb7){const _0x62d6dc=_0x51e0ed,_0x26dd1e=this[_0x62d6dc(0x236)](_0x62d6dc(0x1f7)+_0x4719ce+_0x62d6dc(0x1fb),_0x62d6dc(0x265),{'positiveCount':_0x455d13[_0x62d6dc(0x266)],'totalCount':_0x455d13[_0x62d6dc(0x24b)],'dataId':_0x36ffb7});return{'execute':async()=>{const _0x2e5271=_0x62d6dc;await _0x26dd1e[_0x2e5271(0x239)];},'abortController':_0x26dd1e[_0x62d6dc(0x1fe)]};}[_0x51e0ed(0x236)](_0x69655b,_0x63d4ed,_0x2bb954){const _0x578c60=_0x51e0ed,_0x11c32b=new AbortController(),_0x43d04a=_0x2bb954 instanceof FormData,_0x53ba43={'Authorization':_0x578c60(0x220)+this[_0x578c60(0x20a)]?.[_0x578c60(0x25b)]};_0x2bb954&&!_0x43d04a&&(_0x53ba43[_0x578c60(0x223)]=_0x578c60(0x259));const _0x3c3f08={'method':_0x63d4ed,'headers':_0x53ba43,'signal':_0x11c32b[_0x578c60(0x25e)]};return _0x2bb954&&(_0x3c3f08[_0x578c60(0x243)]=_0x43d04a?_0x2bb954:JSON[_0x578c60(0x23a)](_0x2bb954)),{'request':fetch(''+this[_0x578c60(0x242)]+_0x69655b,_0x3c3f08)[_0x578c60(0x25f)](_0x1b7de7=>{const _0x49cbc6=_0x578c60;this[_0x49cbc6(0x268)](_0x1b7de7);})[_0x578c60(0x1f9)](_0x3fcb74=>{const _0x41d6c9=_0x578c60;if(!_0x3fcb74['ok'])throw new _0x349de8(_0x41d6c9(0x214),this,{'url':this[_0x41d6c9(0x242)],'path':_0x69655b,'method':_0x63d4ed,'body':_0x2bb954,'status':(_0x3fcb74||{})[_0x41d6c9(0x218)],'statusText':(_0x3fcb74||{})[_0x41d6c9(0x212)]});return _0x3fcb74;}),'abortController':_0x11c32b};}async*[_0x51e0ed(0x26c)](_0x139431){const _0x8d6cd3=_0x51e0ed,_0x478c31=[],_0x4acdb6=_0x139431[_0x8d6cd3(0x207)](),_0x28a2c2=_0x9dc336({'onError':_0x54c766=>{const _0x4c0afd=_0x8d6cd3;this[_0x4c0afd(0x268)](_0x54c766);},'onEvent':_0xe51559=>{const _0x391f53=_0x8d6cd3;_0xe51559[_0x391f53(0x244)]=JSON[_0x391f53(0x1ed)](_0xe51559[_0x391f53(0x244)]),_0x478c31[_0x391f53(0x203)](_0xe51559);}});try{let _0x52c218=!0x1;for(;!_0x52c218;){const {done:_0x34d458,value:_0x36ead9}=await _0x4acdb6[_0x8d6cd3(0x1f1)]();_0x34d458&&(_0x52c218=!0x0),_0x28a2c2[_0x8d6cd3(0x21b)](this[_0x8d6cd3(0x205)][_0x8d6cd3(0x228)](_0x36ead9,{'stream':!0x0})),yield*_0x478c31,_0x478c31[_0x8d6cd3(0x260)]=0x0;}}catch(_0x2da931){this[_0x8d6cd3(0x268)](_0x2da931);}finally{_0x4acdb6[_0x8d6cd3(0x257)](),_0x28a2c2[_0x8d6cd3(0x254)]();}}[_0x51e0ed(0x268)](_0xbea7e){const _0x3bf90e=_0x51e0ed;if(_0xbea7e instanceof _0x349de8)throw _0xbea7e;if(_0xbea7e instanceof Error&&_0x3bf90e(0x20b)===_0xbea7e[_0x3bf90e(0x256)])throw new _0x349de8(_0x3bf90e(0x234),this,{'originalError':_0xbea7e});throw new _0x349de8(_0x3bf90e(0x214),this,{'originalError':_0xbea7e});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1354cc=_0x3b8b;(function(_0x186084,_0x1b25a1){const _0x343e18=_0x3b8b,_0x220167=_0x186084();while(!![]){try{const _0x5d046f=-parseInt(_0x343e18(0x8a))/0x1*(parseInt(_0x343e18(0xa5))/0x2)+parseInt(_0x343e18(0x97))/0x3*(parseInt(_0x343e18(0xd7))/0x4)+parseInt(_0x343e18(0xd3))/0x5+-parseInt(_0x343e18(0xb2))/0x6*(-parseInt(_0x343e18(0xa9))/0x7)+-parseInt(_0x343e18(0xc3))/0x8+parseInt(_0x343e18(0xce))/0x9+-parseInt(_0x343e18(0xe2))/0xa*(parseInt(_0x343e18(0xaa))/0xb);if(_0x5d046f===_0x1b25a1)break;else _0x220167['push'](_0x220167['shift']());}catch(_0x5926b3){_0x220167['push'](_0x220167['shift']());}}}(_0x171e,0x34c3d));import{ViewDowncastWriter as _0x34d543}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x53fe17,Editor as _0x8d2c3d}from'ckeditor5/src/core.js';function _0x171e(){const _0xa5fc33=['emptyElement','getLastMatchingPosition','isPremiumPlugin','1997845rqgoEN','context','floor','element','222212FIBVOw','listenTo','for','push','length','createUIElement','getSelectionText','setAttribute','AIEditing','$textProxy','_displayedFakeSelectionLocked','10RiTHJM','indexOf','ai-selection:','_nextDataId','addMarker','getStart','containerElement','add','_setDataIdsOnChildren','plugins','toView','schema','version','editingDowncast','getMarkersGroup','markers','getSelection','fromCharCode','20662kgxDRU','pluginName','RealTimeCollaborationClient','ck-fake-ai-selection','data-id','model','isOpening','isAtEnd','getWalker','afterInit','createRangeIn','markerToElement','get','6uPjvSv',':start></','getSelectedContent','markerName','modelToViewWithIds',':end></','sessionId','_integrateEditor','isContent','name','_getMarkersInDocumentOrder','random','from','join','40wCpsLy','showFakeVisualSelection','ai-selection','getChildren','5397QuHNCv','3369861BANYDq','conversion','_displayedFakeSelectionId','editors','processor','selection','isOfficialPlugin','view','1506wJqwhw','getDocumentData','end','toData','hideFakeVisualSelection','isBefore','isAfter','convertAiChatSelectionMarker','removeMarker','editing','data','trim','createRange','_sessionId','ck-ai-assistant-ui_theme','change',':start>','1476720rVTgeS','ready','sort','substring','markerToHighlight','start','getRoot','dataDowncast','removeAllRanges','has',':end>','3744990AhabrR','document'];_0x171e=function(){return _0xa5fc33;};return _0x171e();}function _0x3b8b(_0x3ef78d,_0x4745e0){const _0x171e0b=_0x171e();return _0x3b8b=function(_0x3b8bc0,_0x1eda1e){_0x3b8bc0=_0x3b8bc0-0x7b;let _0xecf21d=_0x171e0b[_0x3b8bc0];return _0xecf21d;},_0x3b8b(_0x3ef78d,_0x4745e0);}import{uid as _0x588605}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3b8585}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x1354cc(0xa7);export class AIEditing extends _0x53fe17{[_0x1354cc(0xac)]=null;[_0x1354cc(0xe1)]=!0x1;[_0x1354cc(0xbf)];static get[_0x1354cc(0x8b)](){const _0x8f8c8f=_0x1354cc;return _0x8f8c8f(0xdf);}static get[_0x1354cc(0xb0)](){return!0x0;}static get[_0x1354cc(0xd2)](){return!0x0;}get[_0x1354cc(0x9d)](){const _0x2cdc52=_0x1354cc;if(!this[_0x2cdc52(0xbf)]){const _0x5360da=_0x3b8585(this[_0x2cdc52(0xd4)]),_0x4832a1=_0x5360da[_0x2cdc52(0x81)][_0x2cdc52(0xcc)](_0x2cdc52(0x8c))&&_0x5360da[_0x2cdc52(0x81)][_0x2cdc52(0x96)](_0x2cdc52(0x8c))[_0x2cdc52(0x9d)];this[_0x2cdc52(0xbf)]=_0x4832a1||_0x588605();}return this[_0x2cdc52(0xbf)];}[_0x1354cc(0xb3)](){const _0x3299ea=_0x1354cc,_0x405c15=_0x3b8585(this[_0x3299ea(0xd4)]),_0x3c4214=_0x405c15[_0x3299ea(0x8f)],_0x5e4a59=_0x405c15[_0x3299ea(0xbc)][_0x3299ea(0x82)](_0x3c4214[_0x3299ea(0xcf)][_0x3299ea(0xc9)](),{'convertAiChatSelectionMarker':!0x0}),_0x2218cf=new _0x34d543(_0x405c15[_0x3299ea(0xbb)][_0x3299ea(0xb1)][_0x3299ea(0xcf)]);this[_0x3299ea(0x80)](_0x5e4a59,_0x2218cf);let _0x23d330=_0x405c15[_0x3299ea(0xbc)][_0x3299ea(0xae)][_0x3299ea(0xb5)](_0x5e4a59);const _0x5a7b48=this[_0x3299ea(0xa1)](),_0x4c611c=[];for(const _0x2c3917 of _0x5a7b48){const _0x4c23b7='<'+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0x98)+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0xc2),_0x9f9cef=_0x23d330[_0x3299ea(0xe3)](_0x4c23b7);_0x23d330=_0x23d330[_0x3299ea(0xc6)](0x0,_0x9f9cef)+_0x23d330[_0x3299ea(0xc6)](_0x9f9cef+_0x4c23b7[_0x3299ea(0xdb)]);const _0x23102c='<'+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0x9c)+_0x2c3917[_0x3299ea(0xa0)]+_0x3299ea(0xcd),_0x59c798=_0x23d330[_0x3299ea(0xe3)](_0x23102c);_0x23d330=_0x23d330[_0x3299ea(0xc6)](0x0,_0x59c798)+_0x23d330[_0x3299ea(0xc6)](_0x59c798+_0x23102c[_0x3299ea(0xdb)]),_0x4c611c[_0x3299ea(0xda)]({'markerName':_0x2c3917[_0x3299ea(0xa0)],'start':_0x9f9cef,'end':_0x59c798,'htmlFragment':_0x23d330[_0x3299ea(0xc6)](_0x9f9cef,_0x59c798)});}return{'content':_0x23d330,'version':_0x405c15[_0x3299ea(0x8f)][_0x3299ea(0xcf)][_0x3299ea(0x84)],'sessionId':this[_0x3299ea(0x9d)],'selections':_0x4c611c};}async[_0x1354cc(0x93)](){const _0x5bb20e=_0x1354cc;this[_0x5bb20e(0xd4)]instanceof _0x8d2c3d?this[_0x5bb20e(0x9e)](this[_0x5bb20e(0xd4)]):this[_0x5bb20e(0xd8)](this[_0x5bb20e(0xd4)][_0x5bb20e(0xad)],_0x5bb20e(0x7f),(_0x4ad3ea,_0x575220)=>{const _0xcd756d=_0x5bb20e;_0x575220['on'](_0xcd756d(0xc4),()=>{const _0x4da1f8=_0xcd756d;this[_0x4da1f8(0x9e)](_0x575220);});});}[_0x1354cc(0x9e)](_0x191e5a){const _0x14a0d4=_0x1354cc;_0x191e5a[_0x14a0d4(0xab)][_0x14a0d4(0xd9)](_0x14a0d4(0x85))[_0x14a0d4(0xc7)]({'model':_0x14a0d4(0xa7),'view':{'classes':[_0x14a0d4(0x8d),_0x14a0d4(0xc0)],'priority':0xc}}),_0x191e5a[_0x14a0d4(0xab)][_0x14a0d4(0xd9)](_0x14a0d4(0xca))[_0x14a0d4(0x95)]({'model':_0x14a0d4(0xa7),'view':(_0x2a0d59,{writer:_0x3690a1,options:_0x1d10ae})=>_0x1d10ae[_0x14a0d4(0xb9)]?_0x3690a1[_0x14a0d4(0xdc)](_0x2a0d59[_0x14a0d4(0x9a)]+':'+(_0x2a0d59[_0x14a0d4(0x90)]?_0x14a0d4(0xc8):_0x14a0d4(0xb4))):null});}[_0x1354cc(0xa6)](_0x574965,_0x3c84e7,_0x1c62e6=!0x1,_0x2ba6c7=!0x1){const _0x582dce=_0x1354cc;if(this[_0x582dce(0xe1)]&&!_0x2ba6c7)return!0x1;const _0x14f2e2=_0x3b8585(this[_0x582dce(0xd4)])[_0x582dce(0x8f)];return _0x14f2e2[_0x582dce(0xc1)](_0x44712e=>{const _0x4c8801=_0x582dce;this[_0x4c8801(0xac)]&&this[_0x4c8801(0xb6)](this[_0x4c8801(0xac)]),this[_0x4c8801(0xac)]=_0x3c84e7,this[_0x4c8801(0xe1)]=_0x1c62e6;let _0x54e454=0x0;for(let _0x40244a of _0x574965){const _0x2295a9=_0x4c8801(0xe4)+_0x54e454;if(_0x40244a[_0x4c8801(0xc8)][_0x4c8801(0x91)]){const _0x3482e9=_0x40244a[_0x4c8801(0xc8)][_0x4c8801(0xd1)](({item:_0x5313e6})=>!_0x14f2e2[_0x4c8801(0x83)][_0x4c8801(0x9f)](_0x5313e6),{'boundaries':_0x40244a});_0x40244a=_0x44712e[_0x4c8801(0xbe)](_0x3482e9,_0x40244a[_0x4c8801(0xb4)]);}_0x44712e[_0x4c8801(0x7c)](_0x2295a9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x40244a}),_0x54e454++;}}),window[_0x582dce(0x88)]()?.[_0x582dce(0xcb)](),!0x0;}[_0x1354cc(0xb6)](_0x4329ab){const _0x4b22c7=_0x1354cc;if(this[_0x4b22c7(0xac)]!=_0x4329ab)return!0x1;this[_0x4b22c7(0xac)]=null,this[_0x4b22c7(0xe1)]=!0x1;const _0x369325=_0x3b8585(this[_0x4b22c7(0xd4)]),_0x3e00b3=_0x369325[_0x4b22c7(0x8f)][_0x4b22c7(0x87)][_0x4b22c7(0x86)](_0x4b22c7(0xa7));return _0x369325[_0x4b22c7(0x8f)][_0x4b22c7(0xc1)](_0x139f70=>{const _0xe0a454=_0x4b22c7;for(const _0x330a6e of _0x3e00b3)_0x139f70[_0xe0a454(0xba)](_0x330a6e);}),!0x0;}[_0x1354cc(0x9b)](_0x2748a1){const _0x12d1c4=_0x1354cc,_0x33c97f=_0x3b8585(this[_0x12d1c4(0xd4)]),_0x2b6c92=_0x33c97f[_0x12d1c4(0xbc)][_0x12d1c4(0x82)](_0x2748a1),_0x235d55=new _0x34d543(_0x33c97f[_0x12d1c4(0xbb)][_0x12d1c4(0xb1)][_0x12d1c4(0xcf)]);return this[_0x12d1c4(0x80)](_0x2b6c92,_0x235d55),_0x2b6c92;}[_0x1354cc(0x80)](_0x5553d3,_0x5648d0){const _0x4a54fe=_0x1354cc;let _0x33b845=!0x1;const _0x551dcd=new Set();for(const _0x1ec960 of _0x5553d3[_0x4a54fe(0xa8)]()){const _0x2cae2c=_0x1ec960['is'](_0x4a54fe(0xd0))||_0x1ec960['is'](_0x4a54fe(0x7e));if(!_0x1ec960['is'](_0x4a54fe(0xd6)))continue;(this[_0x4a54fe(0x80)](_0x1ec960,_0x5648d0)||_0x2cae2c)&&(_0x5648d0[_0x4a54fe(0xde)](_0x4a54fe(0x8e),this[_0x4a54fe(0x7b)](_0x551dcd),_0x1ec960),_0x33b845=!0x0);}return _0x33b845;}[_0x1354cc(0x7b)](_0x32a41d){const _0x472d84=_0x1354cc;let _0x76b12b;do{_0x76b12b='';for(let _0x16d6b3=0x0;_0x16d6b3<0x4;_0x16d6b3++)_0x76b12b+=String[_0x472d84(0x89)](0x61+Math[_0x472d84(0xd5)](0x1a*Math[_0x472d84(0xa2)]()));}while(_0x32a41d[_0x472d84(0xcc)](_0x76b12b));return _0x32a41d[_0x472d84(0x7f)](_0x76b12b),_0x76b12b;}[_0x1354cc(0xdd)](){const _0x398725=_0x1354cc,{model:_0x1cb78e}=_0x3b8585(this[_0x398725(0xd4)]),_0x34b46d=_0x1cb78e[_0x398725(0xcf)][_0x398725(0xaf)],_0x384a44=_0x1cb78e[_0x398725(0x99)](_0x34b46d),_0x10f2a5=[],_0x528174=_0x1cb78e[_0x398725(0x94)](_0x384a44)[_0x398725(0x92)]();for(const {item:_0x4ff4f0}of _0x528174)_0x4ff4f0['is'](_0x398725(0xe0))?_0x10f2a5[_0x398725(0xda)](_0x4ff4f0[_0x398725(0xbc)]):_0x4ff4f0['is'](_0x398725(0xd6))&&_0x10f2a5[_0x398725(0xdb)]>0x0&&'\x20'!==_0x10f2a5[_0x10f2a5[_0x398725(0xdb)]-0x1]&&_0x10f2a5[_0x398725(0xda)]('\x20');return'\x22'+_0x10f2a5[_0x398725(0xa4)]('')[_0x398725(0xbd)]()+'\x22';}[_0x1354cc(0xa1)](){const _0xc35e9a=_0x1354cc,_0x41c25c=_0x3b8585(this[_0xc35e9a(0xd4)])[_0xc35e9a(0x8f)];return Array[_0xc35e9a(0xa3)](_0x41c25c[_0xc35e9a(0x87)][_0xc35e9a(0x86)](_0xc35e9a(0xa7)))[_0xc35e9a(0xc5)]((_0x5a031a,_0x16e0df)=>_0x5a031a[_0xc35e9a(0x7d)]()[_0xc35e9a(0xb7)](_0x16e0df[_0xc35e9a(0x7d)]())?-0x1:_0x5a031a[_0xc35e9a(0x7d)]()[_0xc35e9a(0xb8)](_0x16e0df[_0xc35e9a(0x7d)]())?0x1:0x0);}}
23
+ const _0x41b118=_0x2444;(function(_0x57255b,_0x1165ab){const _0x1b2f54=_0x2444,_0x4b2868=_0x57255b();while(!![]){try{const _0x5e8e84=parseInt(_0x1b2f54(0x12f))/0x1*(parseInt(_0x1b2f54(0x143))/0x2)+parseInt(_0x1b2f54(0x140))/0x3+-parseInt(_0x1b2f54(0x132))/0x4*(parseInt(_0x1b2f54(0xfe))/0x5)+parseInt(_0x1b2f54(0x138))/0x6*(parseInt(_0x1b2f54(0xea))/0x7)+parseInt(_0x1b2f54(0x106))/0x8*(-parseInt(_0x1b2f54(0x121))/0x9)+parseInt(_0x1b2f54(0xf9))/0xa*(-parseInt(_0x1b2f54(0x13d))/0xb)+parseInt(_0x1b2f54(0xfb))/0xc;if(_0x5e8e84===_0x1165ab)break;else _0x4b2868['push'](_0x4b2868['shift']());}catch(_0x386642){_0x4b2868['push'](_0x4b2868['shift']());}}}(_0x5ed2,0x22dc0));import{ViewDowncastWriter as _0x2d5255}from'ckeditor5/src/engine.js';function _0x2444(_0x2122b4,_0x4aa089){const _0x5ed210=_0x5ed2();return _0x2444=function(_0x24443e,_0x4081f7){_0x24443e=_0x24443e-0xe8;let _0x2ae5f4=_0x5ed210[_0x24443e];return _0x2ae5f4;},_0x2444(_0x2122b4,_0x4aa089);}import{ContextPlugin as _0x505b2a,Editor as _0x16745d}from'ckeditor5/src/core.js';import{uid as _0x169d4d}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x3811f7}from'./utils/geteditorfromcontext.js';function _0x5ed2(){const _0x1e86e0=['length','11AWPTpM','editing','convertAiChatSelectionMarker','498192bCILKT','context','createUIElement','546338Aceabz','containerElement','modelToViewWithIds','end','emptyElement','getDocumentData',':end></','ai-selection','getWalker',':end>',':start>','getRoot','$textProxy','_nextDataId',':start></','toView','isOpening','toData','124747DOdubs','isContent','plugins','start','AIEditing','afterInit','processor','RealTimeCollaborationClient','removeAllRanges','schema','isOfficialPlugin','document','data-id','markerToHighlight','name','1907860wcdBsR','get','2347836BkiSWQ','from','add','214935dhVwzj','removeMarker','push','fromCharCode','pluginName','isBefore','element','createRangeIn','168ZOfNPx','markerName','_setDataIdsOnChildren','floor','getMarkersGroup','_getMarkersInDocumentOrder','version','sort','setAttribute','trim','ai-selection:','markers','getChildren','_sessionId','ck-fake-ai-selection','isPremiumPlugin','conversion','isAfter','_displayedFakeSelectionLocked','ck-ai-assistant-ui_theme','listenTo','sessionId','for','view','_displayedFakeSelectionId','getSelectedContent','selection','99927ztRiqe','data','_integrateEditor','change','getStart','editors','showFakeVisualSelection','editingDowncast','model','getSelection','addMarker','getLastMatchingPosition','has','markerToElement','1sUfVUL','substring','isAtEnd','8DSJpqv','dataDowncast','ready','indexOf','getSelectionText','hideFakeVisualSelection','6qReXTy','join','createRange','random'];_0x5ed2=function(){return _0x1e86e0;};return _0x5ed2();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x41b118(0x14a);export class AIEditing extends _0x505b2a{[_0x41b118(0x11e)]=null;[_0x41b118(0x118)]=!0x1;[_0x41b118(0x113)];static get[_0x41b118(0x102)](){const _0xad2f05=_0x41b118;return _0xad2f05(0xee);}static get[_0x41b118(0xf4)](){return!0x0;}static get[_0x41b118(0x115)](){return!0x0;}get[_0x41b118(0x11b)](){const _0x1ea9b0=_0x41b118;if(!this[_0x1ea9b0(0x113)]){const _0x1e9168=_0x3811f7(this[_0x1ea9b0(0x141)]),_0x239013=_0x1e9168[_0x1ea9b0(0xec)][_0x1ea9b0(0x12d)](_0x1ea9b0(0xf1))&&_0x1e9168[_0x1ea9b0(0xec)][_0x1ea9b0(0xfa)](_0x1ea9b0(0xf1))[_0x1ea9b0(0x11b)];this[_0x1ea9b0(0x113)]=_0x239013||_0x169d4d();}return this[_0x1ea9b0(0x113)];}[_0x41b118(0x148)](){const _0x3e318b=_0x41b118,_0x571cc8=_0x3811f7(this[_0x3e318b(0x141)]),_0x4bc312=_0x571cc8[_0x3e318b(0x129)],_0x2caac8=_0x571cc8[_0x3e318b(0x122)][_0x3e318b(0x152)](_0x4bc312[_0x3e318b(0xf5)][_0x3e318b(0x14e)](),{'convertAiChatSelectionMarker':!0x0}),_0x3969a9=new _0x2d5255(_0x571cc8[_0x3e318b(0x13e)][_0x3e318b(0x11d)][_0x3e318b(0xf5)]);this[_0x3e318b(0x108)](_0x2caac8,_0x3969a9);let _0x4127f2=_0x571cc8[_0x3e318b(0x122)][_0x3e318b(0xf0)][_0x3e318b(0xe9)](_0x2caac8);const _0x11f574=this[_0x3e318b(0x10b)](),_0x4fca79=[];for(const _0x435d29 of _0x11f574){const _0x5236f9='<'+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x151)+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x14d),_0x5f8613=_0x4127f2[_0x3e318b(0x135)](_0x5236f9);_0x4127f2=_0x4127f2[_0x3e318b(0x130)](0x0,_0x5f8613)+_0x4127f2[_0x3e318b(0x130)](_0x5f8613+_0x5236f9[_0x3e318b(0x13c)]);const _0x316543='<'+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x149)+_0x435d29[_0x3e318b(0xf8)]+_0x3e318b(0x14c),_0x5b5c64=_0x4127f2[_0x3e318b(0x135)](_0x316543);_0x4127f2=_0x4127f2[_0x3e318b(0x130)](0x0,_0x5b5c64)+_0x4127f2[_0x3e318b(0x130)](_0x5b5c64+_0x316543[_0x3e318b(0x13c)]),_0x4fca79[_0x3e318b(0x100)]({'markerName':_0x435d29[_0x3e318b(0xf8)],'start':_0x5f8613,'end':_0x5b5c64,'htmlFragment':_0x4127f2[_0x3e318b(0x130)](_0x5f8613,_0x5b5c64)});}return{'content':_0x4127f2,'version':_0x571cc8[_0x3e318b(0x129)][_0x3e318b(0xf5)][_0x3e318b(0x10c)],'sessionId':this[_0x3e318b(0x11b)],'selections':_0x4fca79};}async[_0x41b118(0xef)](){const _0x9101fb=_0x41b118;this[_0x9101fb(0x141)]instanceof _0x16745d?this[_0x9101fb(0x123)](this[_0x9101fb(0x141)]):this[_0x9101fb(0x11a)](this[_0x9101fb(0x141)][_0x9101fb(0x126)],_0x9101fb(0xfd),(_0x385ac4,_0x3c4fbf)=>{const _0x4ff0db=_0x9101fb;_0x3c4fbf['on'](_0x4ff0db(0x134),()=>{const _0x3869f4=_0x4ff0db;this[_0x3869f4(0x123)](_0x3c4fbf);});});}[_0x41b118(0x123)](_0x49778c){const _0xbddc48=_0x41b118;_0x49778c[_0xbddc48(0x116)][_0xbddc48(0x11c)](_0xbddc48(0x128))[_0xbddc48(0xf7)]({'model':_0xbddc48(0x14a),'view':{'classes':[_0xbddc48(0x114),_0xbddc48(0x119)],'priority':0xc}}),_0x49778c[_0xbddc48(0x116)][_0xbddc48(0x11c)](_0xbddc48(0x133))[_0xbddc48(0x12e)]({'model':_0xbddc48(0x14a),'view':(_0x1cdb77,{writer:_0x5697bc,options:_0xc6a05b})=>_0xc6a05b[_0xbddc48(0x13f)]?_0x5697bc[_0xbddc48(0x142)](_0x1cdb77[_0xbddc48(0x107)]+':'+(_0x1cdb77[_0xbddc48(0xe8)]?_0xbddc48(0xed):_0xbddc48(0x146))):null});}[_0x41b118(0x127)](_0x3e8d0b,_0x3eede9,_0x54d292=!0x1,_0x322efe=!0x1){const _0x296bc0=_0x41b118;if(this[_0x296bc0(0x118)]&&!_0x322efe)return!0x1;const _0x1814d0=_0x3811f7(this[_0x296bc0(0x141)])[_0x296bc0(0x129)];return _0x1814d0[_0x296bc0(0x124)](_0x248a17=>{const _0x3323fd=_0x296bc0;this[_0x3323fd(0x11e)]&&this[_0x3323fd(0x137)](this[_0x3323fd(0x11e)]),this[_0x3323fd(0x11e)]=_0x3eede9,this[_0x3323fd(0x118)]=_0x54d292;let _0x2a3aaf=0x0;for(let _0x625d9f of _0x3e8d0b){const _0x95a463=_0x3323fd(0x110)+_0x2a3aaf;if(_0x625d9f[_0x3323fd(0xed)][_0x3323fd(0x131)]){const _0x1d9dfc=_0x625d9f[_0x3323fd(0xed)][_0x3323fd(0x12c)](({item:_0x54a67b})=>!_0x1814d0[_0x3323fd(0xf3)][_0x3323fd(0xeb)](_0x54a67b),{'boundaries':_0x625d9f});_0x625d9f=_0x248a17[_0x3323fd(0x13a)](_0x1d9dfc,_0x625d9f[_0x3323fd(0x146)]);}_0x248a17[_0x3323fd(0x12b)](_0x95a463,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x625d9f}),_0x2a3aaf++;}}),window[_0x296bc0(0x12a)]()?.[_0x296bc0(0xf2)](),!0x0;}[_0x41b118(0x137)](_0x5e7485){const _0x4e5f1f=_0x41b118;if(this[_0x4e5f1f(0x11e)]!=_0x5e7485)return!0x1;this[_0x4e5f1f(0x11e)]=null,this[_0x4e5f1f(0x118)]=!0x1;const _0x354ad9=_0x3811f7(this[_0x4e5f1f(0x141)]),_0x16bb2c=_0x354ad9[_0x4e5f1f(0x129)][_0x4e5f1f(0x111)][_0x4e5f1f(0x10a)](_0x4e5f1f(0x14a));return _0x354ad9[_0x4e5f1f(0x129)][_0x4e5f1f(0x124)](_0x44ed94=>{const _0x1aa2ac=_0x4e5f1f;for(const _0x204c19 of _0x16bb2c)_0x44ed94[_0x1aa2ac(0xff)](_0x204c19);}),!0x0;}[_0x41b118(0x145)](_0x245ac7){const _0x227bdc=_0x41b118,_0x5ec312=_0x3811f7(this[_0x227bdc(0x141)]),_0x773e0f=_0x5ec312[_0x227bdc(0x122)][_0x227bdc(0x152)](_0x245ac7),_0x579f13=new _0x2d5255(_0x5ec312[_0x227bdc(0x13e)][_0x227bdc(0x11d)][_0x227bdc(0xf5)]);return this[_0x227bdc(0x108)](_0x773e0f,_0x579f13),_0x773e0f;}[_0x41b118(0x108)](_0x352037,_0x270ab7){const _0xb5df79=_0x41b118;let _0x359cb0=!0x1;const _0x50c38b=new Set();for(const _0x224c3 of _0x352037[_0xb5df79(0x112)]()){const _0x5992d3=_0x224c3['is'](_0xb5df79(0x147))||_0x224c3['is'](_0xb5df79(0x144));if(!_0x224c3['is'](_0xb5df79(0x104)))continue;(this[_0xb5df79(0x108)](_0x224c3,_0x270ab7)||_0x5992d3)&&(_0x270ab7[_0xb5df79(0x10e)](_0xb5df79(0xf6),this[_0xb5df79(0x150)](_0x50c38b),_0x224c3),_0x359cb0=!0x0);}return _0x359cb0;}[_0x41b118(0x150)](_0x5ef6a5){const _0x206054=_0x41b118;let _0x1436ac;do{_0x1436ac='';for(let _0x18eaab=0x0;_0x18eaab<0x4;_0x18eaab++)_0x1436ac+=String[_0x206054(0x101)](0x61+Math[_0x206054(0x109)](0x1a*Math[_0x206054(0x13b)]()));}while(_0x5ef6a5[_0x206054(0x12d)](_0x1436ac));return _0x5ef6a5[_0x206054(0xfd)](_0x1436ac),_0x1436ac;}[_0x41b118(0x136)](){const _0x515043=_0x41b118,{model:_0x5f0a69}=_0x3811f7(this[_0x515043(0x141)]),_0x269d9f=_0x5f0a69[_0x515043(0xf5)][_0x515043(0x120)],_0x2b1523=_0x5f0a69[_0x515043(0x11f)](_0x269d9f),_0x5c2bf6=[],_0x5388b0=_0x5f0a69[_0x515043(0x105)](_0x2b1523)[_0x515043(0x14b)]();for(const {item:_0x1045be}of _0x5388b0)_0x1045be['is'](_0x515043(0x14f))?_0x5c2bf6[_0x515043(0x100)](_0x1045be[_0x515043(0x122)]):_0x1045be['is'](_0x515043(0x104))&&_0x5c2bf6[_0x515043(0x13c)]>0x0&&'\x20'!==_0x5c2bf6[_0x5c2bf6[_0x515043(0x13c)]-0x1]&&_0x5c2bf6[_0x515043(0x100)]('\x20');return'\x22'+_0x5c2bf6[_0x515043(0x139)]('')[_0x515043(0x10f)]()+'\x22';}[_0x41b118(0x10b)](){const _0x327513=_0x41b118,_0x4372d4=_0x3811f7(this[_0x327513(0x141)])[_0x327513(0x129)];return Array[_0x327513(0xfc)](_0x4372d4[_0x327513(0x111)][_0x327513(0x10a)](_0x327513(0x14a)))[_0x327513(0x10d)]((_0x290c89,_0x4dc648)=>_0x290c89[_0x327513(0x125)]()[_0x327513(0x103)](_0x4dc648[_0x327513(0x125)]())?-0x1:_0x290c89[_0x327513(0x125)]()[_0x327513(0x117)](_0x4dc648[_0x327513(0x125)]())?0x1:0x0);}}