@ckeditor/ckeditor5-ai 47.0.0-alpha.8 → 47.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +4 -4
  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.d.ts +197 -1
  181. package/src/aichat/model/aichatcontext.js +1 -1
  182. package/src/aichat/model/aichatconversation.js +1 -1
  183. package/src/aichat/model/aichatinteraction.js +1 -1
  184. package/src/aichat/model/aichatmodels.d.ts +30 -0
  185. package/src/aichat/model/aichatmodels.js +1 -1
  186. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  187. package/src/aichat/ui/aichatfeedview.js +1 -1
  188. package/src/aichat/ui/aichatheaderview.js +1 -1
  189. package/src/aichat/ui/aichatview.js +1 -1
  190. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  211. package/src/aichat/utils/eventnames.js +1 -1
  212. package/src/aichat/utils/promisequeue.js +1 -1
  213. package/src/aichat/utils/scrollmanager.js +1 -1
  214. package/src/aichathistory/aichathistory.js +1 -1
  215. package/src/aichathistory/aichathistorycontroller.js +1 -1
  216. package/src/aichathistory/aichathistoryui.js +1 -1
  217. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  218. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  219. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  221. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  223. package/src/aicore/aiconnector.js +1 -1
  224. package/src/aicore/aiediting.js +1 -1
  225. package/src/aicore/model/aicapabilities.js +1 -1
  226. package/src/aicore/model/aicontext.js +1 -1
  227. package/src/aicore/model/aiinteraction.js +1 -1
  228. package/src/aicore/model/aireply.js +1 -1
  229. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  230. package/src/aicore/pipeline/airesponseparser.js +2 -2
  231. package/src/aicore/ui/aidisclaimerview.js +1 -1
  232. package/src/aicore/ui/aiskeleton.js +1 -1
  233. package/src/aicore/ui/aispinner.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  239. package/src/aicore/utils/common-translations.js +1 -1
  240. package/src/aicore/utils/createresizebutton.js +1 -1
  241. package/src/aicore/utils/documentposition.js +1 -1
  242. package/src/aicore/utils/documentrange.js +1 -1
  243. package/src/aicore/utils/eventnames.js +1 -1
  244. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  245. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  246. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  247. package/src/aicore/utils/htmlparser.js +1 -1
  248. package/src/aicore/utils/htmlstreamer.js +1 -1
  249. package/src/aieditorintegration/aieditorintegration.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  251. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  252. package/src/aiquickactions/aiquickactions.d.ts +1 -0
  253. package/src/aiquickactions/aiquickactions.js +1 -1
  254. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  255. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  256. package/src/aiquickactions/aiquickactionsui.d.ts +49 -0
  257. package/src/aiquickactions/aiquickactionsui.js +1 -1
  258. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  259. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  260. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  261. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  262. package/src/aireviewmode/aireviewmode.js +1 -1
  263. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  264. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  265. package/src/aireviewmode/aireviewmodeui.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  268. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  270. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  271. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  272. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  273. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  274. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  275. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  283. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  285. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  286. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  287. package/src/aitabs/aitabs.d.ts +14 -0
  288. package/src/aitabs/aitabs.js +1 -1
  289. package/src/aitabs/aitabsmainview.js +1 -1
  290. package/src/aitabs/tabs/aitabsview.js +1 -1
  291. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  292. package/src/aitabs/tabs/tabpanelview.js +1 -1
  293. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5931df=_0x27b6;function _0x9d61(){const _0x113a4d=['unpin','operation','selectConversation','itemId','updateItemLoadingState','activeConversation','updateItemTitle','624xflChC','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','AI_CHAT_HISTORY_CATEGORY_LATER','get','openChat','toLocaleDateString','getGroupId','context','4UrVLFX','1662930SVPWOY','setLoadingSkeleton','getItems','_handleHistoryErrorUI','10603934qfxKbH','_setIsMaximized','AI_CHAT_UNTITLED_CONVERSATION','itemRemoved','_clearItemLoading','itemsLoaded','_showConversationHistory','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','rename','_handleRemove','_aiChatController','resize','_generateErrorMessage','view','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','AI_CHAT_HISTORY_UNPIN_ACTION','isOfficialPlugin','_setItemLoading','updateItems','3689BYnvrz','length','showError','getItem','isPremiumPlugin','getFullYear','resizedTabs','activateTab','editConversationTitle','plugins','AI_CHAT_HISTORY_CATEGORY_TODAY','5704IxqEAk','push','816200aszbhE','remove','chat','_handleSelectConversation','items','getDate','setDate','resizeTabs','removeConversation','listenTo','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','_getCategorizedItems','setIsMaximized','history','map','updates','_updateHistoryItemsUI','updateItemPinned','activateTab:history','loadConversation','pin','locale','createdAt','_handleTogglePin','pinned','532878IMHPCR','AI_CHAT_HISTORY_ERROR_GENERIC','AI_CHAT_HISTORY_PIN_ACTION','error','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','change:activeConversation','title','pluginName','16955vywHNE','AIChatHistoryController','getMonth','itemUpdated','init','AI_CHAT_HISTORY_CATEGORY_PINNED','_aiChatHistoryUi','removeHistoryItem','requires','4090404kPJJtw','handleRemovedConversation','30BKmjKG','setConversationPinned','_handleEditTitle','removeItem','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','loadItems','_aiConnector'];_0x9d61=function(){return _0x113a4d;};return _0x9d61();}(function(_0x36d52a,_0x3161ec){const _0x18960b=_0x27b6,_0x5bd68e=_0x36d52a();while(!![]){try{const _0x4e3f61=-parseInt(_0x18960b(0x113))/0x1+-parseInt(_0x18960b(0x155))/0x2*(parseInt(_0x18960b(0x12c))/0x3)+-parseInt(_0x18960b(0x13d))/0x4+parseInt(_0x18960b(0x134))/0x5*(-parseInt(_0x18960b(0x14d))/0x6)+parseInt(_0x18960b(0x106))/0x7*(parseInt(_0x18960b(0x111))/0x8)+-parseInt(_0x18960b(0x156))/0x9+-parseInt(_0x18960b(0x13f))/0xa*(-parseInt(_0x18960b(0x15a))/0xb);if(_0x4e3f61===_0x3161ec)break;else _0x5bd68e['push'](_0x5bd68e['shift']());}catch(_0x2004a0){_0x5bd68e['push'](_0x5bd68e['shift']());}}}(_0x9d61,0x82eb6));function _0x27b6(_0x1dbeaa,_0x5e617a){const _0x9d6190=_0x9d61();return _0x27b6=function(_0x27b695,_0x40c9c4){_0x27b695=_0x27b695-0xff;let _0x5490da=_0x9d6190[_0x27b695];return _0x5490da;},_0x27b6(_0x1dbeaa,_0x5e617a);}import{ContextPlugin as _0x3226e5}from'ckeditor5/src/core.js';import{AIConnector as _0x140f49}from'../aicore/aiconnector.js';import{AIChatController as _0x72ca44}from'../aichat/aichatcontroller.js';import{AITabs as _0x3c1c78}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x380b52}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x1752c3}from'./model/aichathistoryconversations.js';import{getTranslation as _0x48c4e6}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x3226e5{[_0x5931df(0x145)];[_0x5931df(0x13a)];[_0x5931df(0x164)];static get[_0x5931df(0x13c)](){return[_0x140f49,_0x72ca44,_0x380b52,_0x3c1c78];}static get[_0x5931df(0x133)](){const _0x457a63=_0x5931df;return _0x457a63(0x135);}static get[_0x5931df(0x103)](){return!0x0;}static get[_0x5931df(0x10a)](){return!0x0;}[_0x5931df(0x138)](){const _0x1c4ee6=_0x5931df;this[_0x1c4ee6(0x145)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x140f49),this[_0x1c4ee6(0x13a)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x380b52),this[_0x1c4ee6(0x164)]=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x72ca44);const _0x496ee3=this[_0x1c4ee6(0x154)][_0x1c4ee6(0x10f)][_0x1c4ee6(0x150)](_0x3c1c78),_0x467acd=this[_0x1c4ee6(0x164)][_0x1c4ee6(0x153)]();this[_0x1c4ee6(0x120)]=new _0x1752c3({'connector':this[_0x1c4ee6(0x145)],'group':_0x467acd}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x11b),(_0x5e5156,_0x26d69a)=>{const _0x454ed2=_0x1c4ee6;this[_0x454ed2(0x104)](_0x26d69a['id'],_0x454ed2(0x114)),this[_0x454ed2(0x163)](_0x26d69a['id']);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x10e),(_0x51bed8,_0x49fd96)=>{const _0x4f3d12=_0x1c4ee6;this[_0x4f3d12(0x104)](_0x49fd96['id'],_0x4f3d12(0x162)),this[_0x4f3d12(0x141)](_0x49fd96['id'],_0x49fd96[_0x4f3d12(0x132)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x137),(_0x517c9e,_0x10f9c8)=>{const _0x133781=_0x1c4ee6;void 0x0!==_0x10f9c8[_0x133781(0x122)][_0x133781(0x132)]&&this[_0x133781(0x13a)][_0x133781(0x14c)](_0x10f9c8[_0x133781(0x149)],_0x10f9c8[_0x133781(0x122)][_0x133781(0x132)]),void 0x0!==_0x10f9c8[_0x133781(0x122)][_0x133781(0x12b)]&&this[_0x133781(0x123)](),this[_0x133781(0x15e)](_0x10f9c8[_0x133781(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x15d),(_0x27bc2a,_0x35a453)=>{const _0x5a24e9=_0x1c4ee6;this[_0x5a24e9(0x164)][_0x5a24e9(0x13e)](_0x35a453[_0x5a24e9(0x149)]),this[_0x5a24e9(0x13a)][_0x5a24e9(0x13b)](_0x35a453[_0x5a24e9(0x149)]),this[_0x5a24e9(0x15e)](_0x35a453[_0x5a24e9(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x15f),()=>{const _0x53ebe4=_0x1c4ee6;this[_0x53ebe4(0x123)]();}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x120)],_0x1c4ee6(0x12f),(_0xa6a676,_0x2cb063)=>{const _0x4eab04=_0x1c4ee6;this[_0x4eab04(0x159)](_0x2cb063[_0x4eab04(0x12f)],_0x2cb063[_0x4eab04(0x147)],_0x2cb063[_0x4eab04(0x149)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x148),(_0x1c6146,_0x28ef29)=>{const _0x2b0ac7=_0x1c4ee6;this[_0x2b0ac7(0x116)](_0x28ef29['id']);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x140),(_0x4903bf,_0x2bed83)=>{const _0x25a27e=_0x1c4ee6,_0x45d851=_0x2bed83[_0x25a27e(0x12b)]?_0x25a27e(0x127):_0x25a27e(0x146);this[_0x25a27e(0x104)](_0x2bed83['id'],_0x45d851),this[_0x25a27e(0x12a)](_0x2bed83['id'],_0x2bed83[_0x25a27e(0x12b)]);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x151),()=>{const _0x4178bd=_0x1c4ee6;_0x496ee3[_0x4178bd(0x100)][_0x4178bd(0x10d)](_0x4178bd(0x115));}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x164)],_0x1c4ee6(0x131),()=>{const _0x7e8f16=_0x1c4ee6;this[_0x7e8f16(0x123)]();}),_0x496ee3[_0x1c4ee6(0x100)]['on'](_0x1c4ee6(0x125),()=>{const _0x17c012=_0x1c4ee6;this[_0x17c012(0x160)]();}),this[_0x1c4ee6(0x11c)](_0x496ee3,_0x1c4ee6(0x10c),(_0x3e8564,_0x34d5c1)=>{const _0x6d9e00=_0x1c4ee6;this[_0x6d9e00(0x15b)](_0x34d5c1);}),this[_0x1c4ee6(0x11c)](this[_0x1c4ee6(0x13a)],_0x1c4ee6(0x11a),()=>{const _0x5eafc2=_0x1c4ee6;_0x496ee3[_0x5eafc2(0x165)]();});}async[_0x5931df(0x141)](_0x29242a,_0x53ffd3){const _0x211e63=_0x5931df;await this[_0x211e63(0x120)][_0x211e63(0x14c)](_0x29242a,_0x53ffd3);}async[_0x5931df(0x12a)](_0x108421,_0x3ede99){const _0x26ad0e=_0x5931df;await this[_0x26ad0e(0x120)][_0x26ad0e(0x124)](_0x108421,_0x3ede99);}async[_0x5931df(0x163)](_0xa12917){const _0x2a7e84=_0x5931df;await this[_0x2a7e84(0x120)][_0x2a7e84(0x142)](_0xa12917);}async[_0x5931df(0x116)](_0x3b1a07){const _0xef1a45=_0x5931df;await this[_0xef1a45(0x164)][_0xef1a45(0x126)](_0x3b1a07);}async[_0x5931df(0x160)](){const _0x5c1d43=_0x5931df;this[_0x5c1d43(0x13a)][_0x5c1d43(0x108)](''),this[_0x5c1d43(0x13a)][_0x5c1d43(0x157)](!0x0),await this[_0x5c1d43(0x120)][_0x5c1d43(0x138)](),this[_0x5c1d43(0x13a)][_0x5c1d43(0x157)](!0x1);}[_0x5931df(0x123)](){const _0x36bdcf=_0x5931df,_0x3fbae3=this[_0x36bdcf(0x164)][_0x36bdcf(0x14b)]?.['id'],_0x3741bb=this[_0x36bdcf(0x11e)]()[_0x36bdcf(0x121)](_0x26b501=>({'title':_0x26b501[_0x36bdcf(0x132)],'items':_0x26b501[_0x36bdcf(0x117)][_0x36bdcf(0x121)](_0x5d5e9b=>({'id':_0x5d5e9b['id'],'title':_0x5d5e9b[_0x36bdcf(0x132)]||_0x48c4e6(this[_0x36bdcf(0x154)][_0x36bdcf(0x128)],_0x36bdcf(0x15c)),'createdAt':new Date(_0x5d5e9b[_0x36bdcf(0x129)])[_0x36bdcf(0x152)](),'active':_0x5d5e9b['id']===_0x3fbae3,'pinned':_0x5d5e9b[_0x36bdcf(0x12b)]}))}));this[_0x36bdcf(0x13a)][_0x36bdcf(0x105)](_0x3741bb);}[_0x5931df(0x104)](_0x3910fa,_0x4d9ad0){const _0x18954c=_0x5931df;this[_0x18954c(0x13a)][_0x18954c(0x14a)](_0x3910fa,_0x4d9ad0,!0x0);}[_0x5931df(0x15e)](_0x48233f){const _0x316793=_0x5931df;this[_0x316793(0x13a)][_0x316793(0x14a)](_0x48233f,null,!0x1);}[_0x5931df(0x159)](_0x561ee9,_0x499735,_0x53e72f){const _0x14f49c=_0x5931df,_0x4aadda=this[_0x14f49c(0xff)](_0x499735,_0x53e72f);this[_0x14f49c(0x13a)][_0x14f49c(0x108)](_0x4aadda),_0x53e72f&&this[_0x14f49c(0x15e)](_0x53e72f),this[_0x14f49c(0x13a)][_0x14f49c(0x157)](!0x1);}[_0x5931df(0xff)](_0x5ac482,_0x2767fe){const _0x160ff9=_0x5931df,_0x45539e=_0x2767fe?this[_0x160ff9(0x120)][_0x160ff9(0x109)](_0x2767fe):null,_0x79131c=_0x45539e?.[_0x160ff9(0x132)]||_0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x15c));switch(_0x5ac482){case _0x160ff9(0x14c):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x101),_0x79131c);case _0x160ff9(0x124):{const _0x3b1a1e=_0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x45539e?.[_0x160ff9(0x12b)]?_0x160ff9(0x102):_0x160ff9(0x12e));return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x14e),[_0x3b1a1e,_0x79131c]);}case _0x160ff9(0x142):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x161),_0x79131c);case _0x160ff9(0x138):case _0x160ff9(0x144):return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x11d));default:return _0x48c4e6(this[_0x160ff9(0x154)][_0x160ff9(0x128)],_0x160ff9(0x12d));}}[_0x5931df(0x11e)](){const _0x427618=_0x5931df,_0x127d89=new Date(),_0x50321b=new Date(_0x127d89[_0x427618(0x10b)](),_0x127d89[_0x427618(0x136)](),_0x127d89[_0x427618(0x118)]()),_0x363070=new Date(_0x50321b);_0x363070[_0x427618(0x119)](_0x363070[_0x427618(0x118)]()-0x1);const _0xd992d=new Date(_0x50321b);_0xd992d[_0x427618(0x119)](_0xd992d[_0x427618(0x118)]()-0xe);const _0xc05930=this[_0x427618(0x120)][_0x427618(0x158)]({'pinned':!0x0}),_0x55991b=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0x50321b,'to':_0x50321b}),_0xb372a6=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0x363070,'to':_0x363070}),_0x384dec=this[_0x427618(0x120)][_0x427618(0x158)]({'from':_0xd992d,'to':_0x363070}),_0x544ed5=this[_0x427618(0x120)][_0x427618(0x158)]({'to':_0xd992d}),_0x45ffd4=[];return _0xc05930[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x139)),'items':_0xc05930}),_0x55991b[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x110)),'items':_0x55991b}),_0xb372a6[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x130)),'items':_0xb372a6}),_0x384dec[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x143)),'items':_0x384dec}),_0x544ed5[_0x427618(0x107)]>0x0&&_0x45ffd4[_0x427618(0x112)]({'title':_0x48c4e6(this[_0x427618(0x154)][_0x427618(0x128)],_0x427618(0x14f)),'items':_0x544ed5}),_0x45ffd4;}[_0x5931df(0x15b)](_0x465633){const _0x70959d=_0x5931df;this[_0x70959d(0x13a)][_0x70959d(0x11f)](_0x465633);}}
23
+ const _0x55af39=_0x20b2;(function(_0x1e2e4a,_0x5a0a45){const _0x263f25=_0x20b2,_0x5e14b4=_0x1e2e4a();while(!![]){try{const _0x18bdd3=parseInt(_0x263f25(0x1af))/0x1+parseInt(_0x263f25(0x176))/0x2+-parseInt(_0x263f25(0x195))/0x3*(parseInt(_0x263f25(0x18f))/0x4)+-parseInt(_0x263f25(0x17c))/0x5*(parseInt(_0x263f25(0x1b7))/0x6)+parseInt(_0x263f25(0x1b8))/0x7+-parseInt(_0x263f25(0x1b2))/0x8+-parseInt(_0x263f25(0x186))/0x9;if(_0x18bdd3===_0x5a0a45)break;else _0x5e14b4['push'](_0x5e14b4['shift']());}catch(_0x8f286e){_0x5e14b4['push'](_0x5e14b4['shift']());}}}(_0x3507,0x56383));function _0x3507(){const _0xf1d08d=['_showConversationHistory','locale','AIChatHistoryController','1735COeWWn','updateItems','setIsMaximized','loadConversation','isPremiumPlugin','setDate','handleRemovedConversation','openChat','_setItemLoading','remove','685890vvSQRg','context','AI_CHAT_HISTORY_ERROR_GENERIC','createdAt','showError','_handleTogglePin','_aiConnector','selectConversation','itemRemoved','4eAflyk','AI_CHAT_HISTORY_CATEGORY_YESTERDAY','init','AI_CHAT_HISTORY_UNPIN_ACTION','getDate','getGroupId','1397793PNDOqj','AI_CHAT_UNTITLED_CONVERSATION','AI_CHAT_HISTORY_CATEGORY_PINNED','getItem','getMonth','_handleEditTitle','updateItemTitle','updates','getFullYear','AI_CHAT_HISTORY_ERROR_UPDATE_PINNED','error','plugins','_aiChatHistoryUi','history','removeHistoryItem','_setIsMaximized','_clearItemLoading','setConversationPinned','AI_CHAT_HISTORY_CATEGORY_LAST_14_DAYS','activeConversation','change:activeConversation','map','activateTab:history','rename','push','AI_CHAT_HISTORY_ERROR_UPDATE_TITLE','440833cEmzwE','title','_handleRemove','1937224pQKjiw','resizedTabs','AI_CHAT_HISTORY_ERROR_REMOVE_ITEM','_handleHistoryErrorUI','_handleSelectConversation','11226OAKKnJ','4903626uwOnoa','updateItemPinned','operation','chat','length','itemsLoaded','requires','pluginName','_generateErrorMessage','editConversationTitle','pinned','AI_CHAT_HISTORY_CATEGORY_TODAY','activateTab','AI_CHAT_HISTORY_PIN_ACTION','itemId','updateItemLoadingState','view','getItems','_aiChatController','listenTo','get','removeConversation','setLoadingSkeleton','AI_CHAT_HISTORY_CATEGORY_LATER','removeItem','toLocaleDateString','itemUpdated','resize','loadItems','isOfficialPlugin','_updateHistoryItemsUI','pin','resizeTabs','_getCategorizedItems','AI_CHAT_HISTORY_ERROR_LOAD_ITEMS','1290670tZUEzP','items','unpin'];_0x3507=function(){return _0xf1d08d;};return _0x3507();}import{ContextPlugin as _0x4b19aa}from'ckeditor5/src/core.js';import{AIConnector as _0x520eef}from'../aicore/aiconnector.js';function _0x20b2(_0x47f18f,_0x40dfdf){const _0x3507c4=_0x3507();return _0x20b2=function(_0x20b294,_0x4c89e5){_0x20b294=_0x20b294-0x172;let _0x505ee9=_0x3507c4[_0x20b294];return _0x505ee9;},_0x20b2(_0x47f18f,_0x40dfdf);}import{AIChatController as _0x54d777}from'../aichat/aichatcontroller.js';import{AITabs as _0x395059}from'../aitabs/aitabs.js';import{AIChatHistoryUI as _0x4bbe15}from'./aichathistoryui.js';import{AIChatHistoryConversations as _0x2c82d1}from'./model/aichathistoryconversations.js';import{getTranslation as _0x3c438e}from'../aicore/utils/common-translations.js';export class AIChatHistoryController extends _0x4b19aa{[_0x55af39(0x18c)];[_0x55af39(0x1a1)];[_0x55af39(0x1ca)];static get[_0x55af39(0x1be)](){return[_0x520eef,_0x54d777,_0x4bbe15,_0x395059];}static get[_0x55af39(0x1bf)](){const _0x5cf960=_0x55af39;return _0x5cf960(0x17b);}static get[_0x55af39(0x1d5)](){return!0x0;}static get[_0x55af39(0x180)](){return!0x0;}[_0x55af39(0x191)](){const _0x2cd2ce=_0x55af39;this[_0x2cd2ce(0x18c)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x520eef),this[_0x2cd2ce(0x1a1)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x4bbe15),this[_0x2cd2ce(0x1ca)]=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x54d777);const _0x2c081f=this[_0x2cd2ce(0x187)][_0x2cd2ce(0x1a0)][_0x2cd2ce(0x1cc)](_0x395059),_0xdb6f27=this[_0x2cd2ce(0x1ca)][_0x2cd2ce(0x194)]();this[_0x2cd2ce(0x1a2)]=new _0x2c82d1({'connector':this[_0x2cd2ce(0x18c)],'group':_0xdb6f27}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1cd),(_0x5a49c0,_0xc4593b)=>{const _0x508dd3=_0x2cd2ce;this[_0x508dd3(0x184)](_0xc4593b['id'],_0x508dd3(0x185)),this[_0x508dd3(0x1b1)](_0xc4593b['id']);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1c1),(_0x1f2d7d,_0x181f57)=>{const _0x117d87=_0x2cd2ce;this[_0x117d87(0x184)](_0x181f57['id'],_0x117d87(0x1ac)),this[_0x117d87(0x19a)](_0x181f57['id'],_0x181f57[_0x117d87(0x1b0)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x1d2),(_0x3626f3,_0x2e5f92)=>{const _0x1babc3=_0x2cd2ce;void 0x0!==_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1b0)]&&this[_0x1babc3(0x1a1)][_0x1babc3(0x19b)](_0x2e5f92[_0x1babc3(0x1c6)],_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1b0)]),void 0x0!==_0x2e5f92[_0x1babc3(0x19c)][_0x1babc3(0x1c2)]&&this[_0x1babc3(0x1d6)](),this[_0x1babc3(0x1a5)](_0x2e5f92[_0x1babc3(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x18e),(_0x2b122f,_0x40f6e5)=>{const _0x15701d=_0x2cd2ce;this[_0x15701d(0x1ca)][_0x15701d(0x182)](_0x40f6e5[_0x15701d(0x1c6)]),this[_0x15701d(0x1a1)][_0x15701d(0x1a3)](_0x40f6e5[_0x15701d(0x1c6)]),this[_0x15701d(0x1a5)](_0x40f6e5[_0x15701d(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x1bd),()=>{const _0x583e06=_0x2cd2ce;this[_0x583e06(0x1d6)]();}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a2)],_0x2cd2ce(0x19f),(_0x46b751,_0x69c75b)=>{const _0x37765c=_0x2cd2ce;this[_0x37765c(0x1b5)](_0x69c75b[_0x37765c(0x19f)],_0x69c75b[_0x37765c(0x1ba)],_0x69c75b[_0x37765c(0x1c6)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x18d),(_0x14fc85,_0x1991e0)=>{const _0x433905=_0x2cd2ce;this[_0x433905(0x1b6)](_0x1991e0['id']);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x1a6),(_0xb1bd02,_0x1fc81d)=>{const _0x36d11a=_0x2cd2ce,_0x512780=_0x1fc81d[_0x36d11a(0x1c2)]?_0x36d11a(0x172):_0x36d11a(0x178);this[_0x36d11a(0x184)](_0x1fc81d['id'],_0x512780),this[_0x36d11a(0x18b)](_0x1fc81d['id'],_0x1fc81d[_0x36d11a(0x1c2)]);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x183),()=>{const _0x6248bd=_0x2cd2ce;_0x2c081f[_0x6248bd(0x1c8)][_0x6248bd(0x1c4)](_0x6248bd(0x1bb));}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1ca)],_0x2cd2ce(0x1a9),()=>{const _0x3b0f5f=_0x2cd2ce;this[_0x3b0f5f(0x1d6)]();}),_0x2c081f[_0x2cd2ce(0x1c8)]['on'](_0x2cd2ce(0x1ab),()=>{const _0x4bb598=_0x2cd2ce;this[_0x4bb598(0x179)]();}),this[_0x2cd2ce(0x1cb)](_0x2c081f,_0x2cd2ce(0x1b3),(_0x3fa33b,_0x4a3270)=>{const _0x4b848e=_0x2cd2ce;this[_0x4b848e(0x1a4)](_0x4a3270);}),this[_0x2cd2ce(0x1cb)](this[_0x2cd2ce(0x1a1)],_0x2cd2ce(0x173),()=>{const _0x58cb25=_0x2cd2ce;_0x2c081f[_0x58cb25(0x1d3)]();});}async[_0x55af39(0x19a)](_0x3f6890,_0x577b69){const _0x284477=_0x55af39;await this[_0x284477(0x1a2)][_0x284477(0x19b)](_0x3f6890,_0x577b69);}async[_0x55af39(0x18b)](_0x1b6b6b,_0x4bbda3){const _0x50d415=_0x55af39;await this[_0x50d415(0x1a2)][_0x50d415(0x1b9)](_0x1b6b6b,_0x4bbda3);}async[_0x55af39(0x1b1)](_0x468467){const _0x585135=_0x55af39;await this[_0x585135(0x1a2)][_0x585135(0x1d0)](_0x468467);}async[_0x55af39(0x1b6)](_0x57a566){const _0x95bc12=_0x55af39;await this[_0x95bc12(0x1ca)][_0x95bc12(0x17f)](_0x57a566);}async[_0x55af39(0x179)](){const _0x578053=_0x55af39;this[_0x578053(0x1a1)][_0x578053(0x18a)](''),this[_0x578053(0x1a1)][_0x578053(0x1ce)](!0x0),await this[_0x578053(0x1a2)][_0x578053(0x191)](),this[_0x578053(0x1a1)][_0x578053(0x1ce)](!0x1);}[_0x55af39(0x1d6)](){const _0xcd54a=_0x55af39,_0x5864f8=this[_0xcd54a(0x1ca)][_0xcd54a(0x1a8)]?.['id'],_0x41d575=this[_0xcd54a(0x174)]()[_0xcd54a(0x1aa)](_0x277ddf=>({'title':_0x277ddf[_0xcd54a(0x1b0)],'items':_0x277ddf[_0xcd54a(0x177)][_0xcd54a(0x1aa)](_0x100961=>({'id':_0x100961['id'],'title':_0x100961[_0xcd54a(0x1b0)]||_0x3c438e(this[_0xcd54a(0x187)][_0xcd54a(0x17a)],_0xcd54a(0x196)),'createdAt':new Date(_0x100961[_0xcd54a(0x189)])[_0xcd54a(0x1d1)](),'active':_0x100961['id']===_0x5864f8,'pinned':_0x100961[_0xcd54a(0x1c2)]}))}));this[_0xcd54a(0x1a1)][_0xcd54a(0x17d)](_0x41d575);}[_0x55af39(0x184)](_0x210395,_0x355e27){const _0x1fd298=_0x55af39;this[_0x1fd298(0x1a1)][_0x1fd298(0x1c7)](_0x210395,_0x355e27,!0x0);}[_0x55af39(0x1a5)](_0x5ce857){const _0x4f04df=_0x55af39;this[_0x4f04df(0x1a1)][_0x4f04df(0x1c7)](_0x5ce857,null,!0x1);}[_0x55af39(0x1b5)](_0x235d19,_0x5b7f5b,_0x181323){const _0x461c74=_0x55af39,_0x1de15d=this[_0x461c74(0x1c0)](_0x5b7f5b,_0x181323);this[_0x461c74(0x1a1)][_0x461c74(0x18a)](_0x1de15d),_0x181323&&this[_0x461c74(0x1a5)](_0x181323),this[_0x461c74(0x1a1)][_0x461c74(0x1ce)](!0x1);}[_0x55af39(0x1c0)](_0xa472f1,_0x2d89bb){const _0xdc61d9=_0x55af39,_0x454797=_0x2d89bb?this[_0xdc61d9(0x1a2)][_0xdc61d9(0x198)](_0x2d89bb):null,_0x169200=_0x454797?.[_0xdc61d9(0x1b0)]||_0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x196));switch(_0xa472f1){case _0xdc61d9(0x19b):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x1ae),_0x169200);case _0xdc61d9(0x1b9):{const _0x1a03ad=_0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0x454797?.[_0xdc61d9(0x1c2)]?_0xdc61d9(0x192):_0xdc61d9(0x1c5));return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x19e),[_0x1a03ad,_0x169200]);}case _0xdc61d9(0x1d0):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x1b4),_0x169200);case _0xdc61d9(0x191):case _0xdc61d9(0x1d4):return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x175));default:return _0x3c438e(this[_0xdc61d9(0x187)][_0xdc61d9(0x17a)],_0xdc61d9(0x188));}}[_0x55af39(0x174)](){const _0x12bfcb=_0x55af39,_0x5e7dc4=new Date(),_0x320759=new Date(_0x5e7dc4[_0x12bfcb(0x19d)](),_0x5e7dc4[_0x12bfcb(0x199)](),_0x5e7dc4[_0x12bfcb(0x193)]()),_0x26fa23=new Date(_0x320759);_0x26fa23[_0x12bfcb(0x181)](_0x26fa23[_0x12bfcb(0x193)]()-0x1);const _0x330458=new Date(_0x320759);_0x330458[_0x12bfcb(0x181)](_0x330458[_0x12bfcb(0x193)]()-0xe);const _0x15565d=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'pinned':!0x0}),_0x68ce4d=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x320759,'to':_0x320759}),_0xccce0a=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x26fa23,'to':_0x26fa23}),_0x41fbb0=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'from':_0x330458,'to':_0x26fa23}),_0x2dcfbd=this[_0x12bfcb(0x1a2)][_0x12bfcb(0x1c9)]({'to':_0x330458}),_0x11d326=[];return _0x15565d[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x197)),'items':_0x15565d}),_0x68ce4d[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1c3)),'items':_0x68ce4d}),_0xccce0a[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x190)),'items':_0xccce0a}),_0x41fbb0[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1a7)),'items':_0x41fbb0}),_0x2dcfbd[_0x12bfcb(0x1bc)]>0x0&&_0x11d326[_0x12bfcb(0x1ad)]({'title':_0x3c438e(this[_0x12bfcb(0x187)][_0x12bfcb(0x17a)],_0x12bfcb(0x1cf)),'items':_0x2dcfbd}),_0x11d326;}[_0x55af39(0x1a4)](_0x252442){const _0x2e7c6f=_0x55af39;this[_0x2e7c6f(0x1a1)][_0x2e7c6f(0x17e)](_0x252442);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x492313=_0x3382;(function(_0xcca3f,_0x459252){const _0x51ea5b=_0x3382,_0x46c154=_0xcca3f();while(!![]){try{const _0x43919f=-parseInt(_0x51ea5b(0x1ef))/0x1*(-parseInt(_0x51ea5b(0x21a))/0x2)+parseInt(_0x51ea5b(0x208))/0x3+-parseInt(_0x51ea5b(0x212))/0x4+-parseInt(_0x51ea5b(0x20b))/0x5*(-parseInt(_0x51ea5b(0x205))/0x6)+parseInt(_0x51ea5b(0x210))/0x7+-parseInt(_0x51ea5b(0x206))/0x8*(parseInt(_0x51ea5b(0x201))/0x9)+parseInt(_0x51ea5b(0x1f0))/0xa*(-parseInt(_0x51ea5b(0x1f6))/0xb);if(_0x43919f===_0x459252)break;else _0x46c154['push'](_0x46c154['shift']());}catch(_0x5dff68){_0x46c154['push'](_0x46c154['shift']());}}}(_0x5149,0xbf627));import{ContextPlugin as _0x4c8a0c}from'ckeditor5/src/core.js';import{AITabs as _0x5771da}from'../aitabs/aitabs.js';import{IconAIHistory as _0x11ea2c}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0xfe36f2}from'./ui/aichathistoryview.js';function _0x3382(_0x1450b6,_0x4fee5d){const _0x514933=_0x5149();return _0x3382=function(_0x3382df,_0x17aa65){_0x3382df=_0x3382df-0x1ef;let _0x3857d1=_0x514933[_0x3382df];return _0x3857d1;},_0x3382(_0x1450b6,_0x4fee5d);}import{getTranslation as _0x286e9b}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x492313(0x219),_0x492313(0x1f2),_0x492313(0x21d),_0x492313(0x20f),_0x492313(0x1fd),_0x492313(0x1fb),_0x492313(0x1f1)];function _0x5149(){const _0x4cd263=['setConversationPinned','10650206ZOvTBf','showResizeButton','2161292BHbuSe','AI_CHAT_HISTORY_HEADING','updateItemTitle','requires','isPremiumPlugin','updateHistoryItemsWithCategories','locale','showConversationHistory','2YgWlsH','updateItems','_historyView','editConversationTitle','98030QVklui','10BMSRhO','resizeTabs','removeConversation','context','setLoadingSkeleton','isOfficialPlugin','12420496cwThDy','pluginName','errorMessage','get','showError','openChat','view','selectConversation','hideError','updateItemLoadingState','addTab','1917CKtVQv','isMaximized','delegate','plugins','6MwScsc','33896cCUaeF','setIsMaximized','3878094WSCcgI','isLoading','removeHistoryItem','2218325dEpBuW','AIChatHistoryUI','AITabs','history'];_0x5149=function(){return _0x4cd263;};return _0x5149();}export class AIChatHistoryUI extends _0x4c8a0c{static get[_0x492313(0x215)](){return[_0x5771da];}[_0x492313(0x21c)];static get[_0x492313(0x1f7)](){const _0x26febf=_0x492313;return _0x26febf(0x20c);}static get[_0x492313(0x1f5)](){return!0x0;}static get[_0x492313(0x216)](){return!0x0;}constructor(_0x22ef36){const _0x4f5ced=_0x492313;super(_0x22ef36);const _0x32281d=this[_0x4f5ced(0x1f3)][_0x4f5ced(0x204)][_0x4f5ced(0x1f9)](_0x4f5ced(0x20d));this[_0x4f5ced(0x21c)]=new _0xfe36f2(this[_0x4f5ced(0x1f3)][_0x4f5ced(0x218)],_0x32281d[_0x4f5ced(0x211)]),this[_0x4f5ced(0x21c)][_0x4f5ced(0x203)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x32281d[_0x4f5ced(0x1fc)][_0x4f5ced(0x200)]({'id':_0x4f5ced(0x20e),'buttonLabel':_0x286e9b(this[_0x4f5ced(0x1f3)][_0x4f5ced(0x218)],_0x4f5ced(0x213)),'buttonIcon':_0x11ea2c,'order':0x0,'content':this[_0x4f5ced(0x21c)]});}[_0x492313(0x20a)](_0x21c81b){const _0x4fab34=_0x492313;this[_0x4fab34(0x21c)][_0x4fab34(0x20a)](_0x21c81b);}[_0x492313(0x21b)](_0x2cbd6d){const _0x441a5f=_0x492313;this[_0x441a5f(0x21c)][_0x441a5f(0x217)](_0x2cbd6d);}[_0x492313(0x214)](_0x4611bf,_0x58d515){const _0x366eb2=_0x492313;this[_0x366eb2(0x21c)][_0x366eb2(0x214)](_0x4611bf,_0x58d515);}[_0x492313(0x1ff)](_0x1838cd,_0x22c846,_0x464987){const _0x95210a=_0x492313;this[_0x95210a(0x21c)][_0x95210a(0x1ff)](_0x1838cd,_0x22c846,_0x464987);}[_0x492313(0x1f4)](_0x2a20ed){const _0xdaed1b=_0x492313;this[_0xdaed1b(0x21c)][_0xdaed1b(0x209)]=_0x2a20ed;}[_0x492313(0x1fa)](_0x5233df){const _0x21355a=_0x492313;this[_0x21355a(0x21c)][_0x21355a(0x1f8)]=_0x5233df;}[_0x492313(0x1fe)](){const _0x248061=_0x492313;this[_0x248061(0x21c)][_0x248061(0x1f8)]='';}[_0x492313(0x207)](_0x2e1af6){const _0x15f60=_0x492313;this[_0x15f60(0x21c)][_0x15f60(0x202)]=_0x2e1af6;}}
23
+ const _0x5ad23e=_0x3fc5;function _0x3fc5(_0x6f3f6,_0x3337b3){const _0x46486a=_0x4648();return _0x3fc5=function(_0x3fc556,_0x4b52f4){_0x3fc556=_0x3fc556-0x18f;let _0x5b8609=_0x46486a[_0x3fc556];return _0x5b8609;},_0x3fc5(_0x6f3f6,_0x3337b3);}function _0x4648(){const _0x3689c9=['isMaximized','isPremiumPlugin','isLoading','updateHistoryItemsWithCategories','updateItemLoadingState','1351920DljCWd','setIsMaximized','1703598yOFwYx','get','AIChatHistoryUI','updateItemTitle','removeConversation','locale','AITabs','isOfficialPlugin','AI_CHAT_HISTORY_HEADING','requires','220EmHBvc','removeHistoryItem','hideError','1759obrmVX','showResizeButton','view','3304drIrRK','addTab','updateItems','context','resizeTabs','7wQpoQc','delegate','pluginName','setLoadingSkeleton','openChat','7557qYKNnb','1170433MshCNZ','plugins','showConversationHistory','_historyView','757350aguKPP','4473fbVfBM','setConversationPinned','errorMessage','214LQXgvZ','editConversationTitle','selectConversation','history','showError'];_0x4648=function(){return _0x3689c9;};return _0x4648();}(function(_0x30dcfd,_0x3a5f8c){const _0xda6490=_0x3fc5,_0x12dbcd=_0x30dcfd();while(!![]){try{const _0x2947c9=parseInt(_0xda6490(0x192))/0x1*(parseInt(_0xda6490(0x1a8))/0x2)+-parseInt(_0xda6490(0x19f))/0x3*(-parseInt(_0xda6490(0x18f))/0x4)+-parseInt(_0xda6490(0x1b2))/0x5+parseInt(_0xda6490(0x1b4))/0x6*(-parseInt(_0xda6490(0x19a))/0x7)+parseInt(_0xda6490(0x195))/0x8*(parseInt(_0xda6490(0x1a5))/0x9)+parseInt(_0xda6490(0x1a4))/0xa+parseInt(_0xda6490(0x1a0))/0xb;if(_0x2947c9===_0x3a5f8c)break;else _0x12dbcd['push'](_0x12dbcd['shift']());}catch(_0x41c5d9){_0x12dbcd['push'](_0x12dbcd['shift']());}}}(_0x4648,0x27060));import{ContextPlugin as _0x1e9b30}from'ckeditor5/src/core.js';import{AITabs as _0x3891e2}from'../aitabs/aitabs.js';import{IconAIHistory as _0x2ee7c4}from'ckeditor5/src/icons.js';import{AIChatHistoryView as _0x3fcccd}from'./ui/aichathistoryview.js';import{getTranslation as _0x496a06}from'../aicore/utils/common-translations.js';import'../../theme/aichat/aichathistory.css';export const AI_CHAT_HISTORY_UI_EVENT_NAMES=[_0x5ad23e(0x1a2),_0x5ad23e(0x1b8),_0x5ad23e(0x1a9),_0x5ad23e(0x1a6),_0x5ad23e(0x1aa),_0x5ad23e(0x19e),_0x5ad23e(0x199)];export class AIChatHistoryUI extends _0x1e9b30{static get[_0x5ad23e(0x1bd)](){return[_0x3891e2];}[_0x5ad23e(0x1a3)];static get[_0x5ad23e(0x19c)](){const _0x2586b1=_0x5ad23e;return _0x2586b1(0x1b6);}static get[_0x5ad23e(0x1bb)](){return!0x0;}static get[_0x5ad23e(0x1ae)](){return!0x0;}constructor(_0x225aff){const _0x107d8b=_0x5ad23e;super(_0x225aff);const _0x1103fe=this[_0x107d8b(0x198)][_0x107d8b(0x1a1)][_0x107d8b(0x1b5)](_0x107d8b(0x1ba));this[_0x107d8b(0x1a3)]=new _0x3fcccd(this[_0x107d8b(0x198)][_0x107d8b(0x1b9)],_0x1103fe[_0x107d8b(0x193)]),this[_0x107d8b(0x1a3)][_0x107d8b(0x19b)](...AI_CHAT_HISTORY_UI_EVENT_NAMES)['to'](this),_0x1103fe[_0x107d8b(0x194)][_0x107d8b(0x196)]({'id':_0x107d8b(0x1ab),'buttonLabel':_0x496a06(this[_0x107d8b(0x198)][_0x107d8b(0x1b9)],_0x107d8b(0x1bc)),'buttonIcon':_0x2ee7c4,'order':0x0,'content':this[_0x107d8b(0x1a3)]});}[_0x5ad23e(0x190)](_0x4d3c2f){const _0x3b360c=_0x5ad23e;this[_0x3b360c(0x1a3)][_0x3b360c(0x190)](_0x4d3c2f);}[_0x5ad23e(0x197)](_0x56a181){const _0x326ce9=_0x5ad23e;this[_0x326ce9(0x1a3)][_0x326ce9(0x1b0)](_0x56a181);}[_0x5ad23e(0x1b7)](_0x96ac0e,_0x35cdc3){const _0x5e4d1a=_0x5ad23e;this[_0x5e4d1a(0x1a3)][_0x5e4d1a(0x1b7)](_0x96ac0e,_0x35cdc3);}[_0x5ad23e(0x1b1)](_0x220d08,_0x3bbc06,_0x51b251){const _0x2555e1=_0x5ad23e;this[_0x2555e1(0x1a3)][_0x2555e1(0x1b1)](_0x220d08,_0x3bbc06,_0x51b251);}[_0x5ad23e(0x19d)](_0xc1eae7){const _0x1d13ba=_0x5ad23e;this[_0x1d13ba(0x1a3)][_0x1d13ba(0x1af)]=_0xc1eae7;}[_0x5ad23e(0x1ac)](_0x5ac706){const _0xb19c2d=_0x5ad23e;this[_0xb19c2d(0x1a3)][_0xb19c2d(0x1a7)]=_0x5ac706;}[_0x5ad23e(0x191)](){const _0x36f10d=_0x5ad23e;this[_0x36f10d(0x1a3)][_0x36f10d(0x1a7)]='';}[_0x5ad23e(0x1b3)](_0x2af26c){const _0x5a8692=_0x5ad23e;this[_0x5a8692(0x1a3)][_0x5a8692(0x1ad)]=_0x2af26c;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x7e3d(_0x325910,_0x2e8b46){const _0x453c99=_0x453c();return _0x7e3d=function(_0x7e3d43,_0x30e5b0){_0x7e3d43=_0x7e3d43-0x185;let _0x709724=_0x453c99[_0x7e3d43];return _0x709724;},_0x7e3d(_0x325910,_0x2e8b46);}function _0x453c(){const _0xcc5006=['getFullYear','getMonth','push','error','1962030KowbFY','connector','updatePinned','getTime','loadItems','removeItem','deleteConversation','createdAt','7366HatXHq','getDate','findIndex','updateItemPinned','updateItemTitle','2753502DSQsmS','pinned','execute','fetchConversations','group','getItems','215kHsKNa','itemRemoved','updateConversation','762592QfgYiG','17878230SzBtkb','4084328kBrQma','splice','updateTitle','init','from','addItem','map','itemUpdated','3592780PSgJZN','getResult','56PaYWiv','items','getItem','getConversations','itemsLoaded','filter','find','fire'];_0x453c=function(){return _0xcc5006;};return _0x453c();}const _0x763b8b=_0x7e3d;(function(_0x21cda4,_0x4d97d4){const _0x2c3a4b=_0x7e3d,_0x133eae=_0x21cda4();while(!![]){try{const _0x20e8f2=-parseInt(_0x2c3a4b(0x1ab))/0x1*(-parseInt(_0x2c3a4b(0x1a0))/0x2)+-parseInt(_0x2c3a4b(0x1a5))/0x3+-parseInt(_0x2c3a4b(0x1b0))/0x4+-parseInt(_0x2c3a4b(0x18a))/0x5+-parseInt(_0x2c3a4b(0x198))/0x6+-parseInt(_0x2c3a4b(0x18c))/0x7*(-parseInt(_0x2c3a4b(0x1ae))/0x8)+parseInt(_0x2c3a4b(0x1af))/0x9;if(_0x20e8f2===_0x4d97d4)break;else _0x133eae['push'](_0x133eae['shift']());}catch(_0x129b99){_0x133eae['push'](_0x133eae['shift']());}}}(_0x453c,0x87d8e));import{EmitterMixin as _0x513568}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x227e25}from'./aichathistoryitem.js';export class AIChatHistoryConversations extends _0x513568(){[_0x763b8b(0x18d)]=[];[_0x763b8b(0x199)];[_0x763b8b(0x1a9)];constructor({connector:_0x200935,group:_0x19df55}){const _0x1317db=_0x763b8b;super(),this[_0x1317db(0x199)]=_0x200935,this[_0x1317db(0x1a9)]=_0x19df55;}async[_0x763b8b(0x185)](){const _0x2843a2=_0x763b8b;try{const _0x26a9d3=this[_0x2843a2(0x199)][_0x2843a2(0x1a8)](this[_0x2843a2(0x1a9)]),_0x4bef37=await _0x26a9d3[_0x2843a2(0x18f)]();this[_0x2843a2(0x19c)](_0x4bef37);}catch(_0x3938ba){this[_0x2843a2(0x193)](_0x2843a2(0x197),{'error':_0x3938ba,'operation':_0x2843a2(0x185)});}}[_0x763b8b(0x187)](_0x2c86af){const _0x9933a3=_0x763b8b;this[_0x9933a3(0x18d)][_0x9933a3(0x196)](_0x2c86af);}async[_0x763b8b(0x19d)](_0x23565b){const _0x1fd9cb=_0x763b8b,_0x3ba845=this[_0x1fd9cb(0x18d)][_0x1fd9cb(0x1a2)](_0x4c7982=>_0x4c7982['id']===_0x23565b);if(-0x1===_0x3ba845)return!0x1;try{return await this[_0x1fd9cb(0x199)][_0x1fd9cb(0x19e)](_0x23565b)[_0x1fd9cb(0x1a7)](),this[_0x1fd9cb(0x18d)][_0x1fd9cb(0x1b1)](_0x3ba845,0x1),this[_0x1fd9cb(0x193)](_0x1fd9cb(0x1ac),{'itemId':_0x23565b}),!0x0;}catch(_0x47d92c){return this[_0x1fd9cb(0x193)](_0x1fd9cb(0x197),{'error':_0x47d92c,'operation':_0x1fd9cb(0x19d),'itemId':_0x23565b}),!0x1;}}[_0x763b8b(0x18e)](_0x37486f){const _0x347ec9=_0x763b8b;return this[_0x347ec9(0x18d)][_0x347ec9(0x192)](_0xe89a9=>_0xe89a9['id']===_0x37486f);}async[_0x763b8b(0x1a4)](_0x4c1f3b,_0x3fd05a){const _0x25506e=_0x763b8b,_0x376f79=this[_0x25506e(0x18e)](_0x4c1f3b);if(!_0x376f79)return!0x1;try{return await this[_0x25506e(0x199)][_0x25506e(0x1ad)](_0x4c1f3b,{'title':_0x3fd05a})[_0x25506e(0x18b)](),_0x376f79[_0x25506e(0x1b2)](_0x3fd05a),this[_0x25506e(0x193)](_0x25506e(0x189),{'itemId':_0x4c1f3b,'updates':{'title':_0x3fd05a}}),!0x0;}catch(_0x29527a){return this[_0x25506e(0x193)](_0x25506e(0x197),{'error':_0x29527a,'operation':_0x25506e(0x1a4),'itemId':_0x4c1f3b}),!0x1;}}async[_0x763b8b(0x1a3)](_0xc811be,_0x5f329b){const _0x2bf3e0=_0x763b8b,_0x1dcd97=this[_0x2bf3e0(0x18e)](_0xc811be);if(!_0x1dcd97)return!0x1;try{return await this[_0x2bf3e0(0x199)][_0x2bf3e0(0x1ad)](_0xc811be,{'pinned':_0x5f329b})[_0x2bf3e0(0x18b)](),_0x1dcd97[_0x2bf3e0(0x19a)](_0x5f329b),this[_0x2bf3e0(0x193)](_0x2bf3e0(0x189),{'itemId':_0xc811be,'updates':{'pinned':_0x5f329b}}),!0x0;}catch(_0x54b993){return this[_0x2bf3e0(0x193)](_0x2bf3e0(0x197),{'error':_0x54b993,'operation':_0x2bf3e0(0x1a3),'itemId':_0xc811be}),!0x1;}}[_0x763b8b(0x19c)](_0x41a115){const _0x3f05bf=_0x763b8b;try{this[_0x3f05bf(0x18d)]=[],_0x41a115[_0x3f05bf(0x188)](_0x44d73c=>{const _0x2d4a5b=_0x3f05bf;this[_0x2d4a5b(0x187)](new _0x227e25(_0x44d73c));}),this[_0x3f05bf(0x193)](_0x3f05bf(0x190),{'items':[...this[_0x3f05bf(0x18d)]]});}catch(_0x2f72ae){this[_0x3f05bf(0x193)](_0x3f05bf(0x197),{'error':_0x2f72ae,'operation':_0x3f05bf(0x19c)});}}[_0x763b8b(0x1aa)](_0x4669a4={}){const _0x355279=_0x763b8b,_0x19fcac=void 0x0!==_0x4669a4[_0x355279(0x1a6)]&&_0x4669a4[_0x355279(0x1a6)],_0x4c5ab0=_0x4669a4[_0x355279(0x186)]?new Date(_0x4669a4[_0x355279(0x186)][_0x355279(0x194)](),_0x4669a4[_0x355279(0x186)][_0x355279(0x195)](),_0x4669a4[_0x355279(0x186)][_0x355279(0x1a1)]()):null,_0x18323a=_0x4669a4['to']?new Date(_0x4669a4['to'][_0x355279(0x194)](),_0x4669a4['to'][_0x355279(0x195)](),_0x4669a4['to'][_0x355279(0x1a1)]()):null;return this[_0x355279(0x18d)][_0x355279(0x191)](_0x3999a0=>{const _0x366539=_0x355279;if(_0x3999a0[_0x366539(0x1a6)]!==_0x19fcac)return!0x1;if(_0x18323a){const _0x1df78d=new Date(_0x3999a0[_0x366539(0x19f)][_0x366539(0x194)](),_0x3999a0[_0x366539(0x19f)][_0x366539(0x195)](),_0x3999a0[_0x366539(0x19f)][_0x366539(0x1a1)]());return _0x4c5ab0?_0x4c5ab0[_0x366539(0x19b)]()===_0x18323a[_0x366539(0x19b)]()?_0x1df78d[_0x366539(0x19b)]()===_0x4c5ab0[_0x366539(0x19b)]():_0x1df78d<_0x18323a&&_0x1df78d>=_0x4c5ab0:_0x1df78d<_0x18323a;}return!0x0;});}}
23
+ const _0x224426=_0x4eae;(function(_0x31cfe7,_0x1e5d48){const _0x17f7e4=_0x4eae,_0x36885a=_0x31cfe7();while(!![]){try{const _0x14deb6=parseInt(_0x17f7e4(0x18a))/0x1+-parseInt(_0x17f7e4(0x180))/0x2+parseInt(_0x17f7e4(0x187))/0x3*(-parseInt(_0x17f7e4(0x199))/0x4)+-parseInt(_0x17f7e4(0x17b))/0x5+parseInt(_0x17f7e4(0x190))/0x6+parseInt(_0x17f7e4(0x173))/0x7*(parseInt(_0x17f7e4(0x176))/0x8)+parseInt(_0x17f7e4(0x18f))/0x9*(-parseInt(_0x17f7e4(0x184))/0xa);if(_0x14deb6===_0x1e5d48)break;else _0x36885a['push'](_0x36885a['shift']());}catch(_0x4b425f){_0x36885a['push'](_0x36885a['shift']());}}}(_0x2de1,0x3ada5));import{EmitterMixin as _0x33d0e6}from'ckeditor5/src/utils.js';import{AIChatHistoryItem as _0x432898}from'./aichathistoryitem.js';function _0x2de1(){const _0x1a5c3e=['error','getConversations','updateTitle','from','fetchConversations','105NungBY','items','fire','191568adgCJt','map','getTime','getResult','itemsLoaded','950555jGytzy','updatePinned','getMonth','removeItem','deleteConversation','223994LPDAjH','splice','pinned','push','110CYbcDC','connector','updateItemTitle','17787JOMDiU','createdAt','getDate','370469dFAEBn','getItem','getFullYear','itemUpdated','execute','160245sHNLQf','1941612EPBKHB','group','loadItems','find','getItems','updateConversation','addItem','filter','updateItemPinned','212nsHfIl','init','itemRemoved','findIndex'];_0x2de1=function(){return _0x1a5c3e;};return _0x2de1();}function _0x4eae(_0xc2763f,_0x3defd0){const _0x2de1d5=_0x2de1();return _0x4eae=function(_0x4eae2d,_0x22ff2b){_0x4eae2d=_0x4eae2d-0x171;let _0x578489=_0x2de1d5[_0x4eae2d];return _0x578489;},_0x4eae(_0xc2763f,_0x3defd0);}export class AIChatHistoryConversations extends _0x33d0e6(){[_0x224426(0x174)]=[];[_0x224426(0x185)];[_0x224426(0x191)];constructor({connector:_0x24230f,group:_0x3fbc3b}){const _0x1dbda9=_0x224426;super(),this[_0x1dbda9(0x185)]=_0x24230f,this[_0x1dbda9(0x191)]=_0x3fbc3b;}async[_0x224426(0x19a)](){const _0x1bf55d=_0x224426;try{const _0x43cfae=this[_0x1bf55d(0x185)][_0x1bf55d(0x172)](this[_0x1bf55d(0x191)]),_0x2dd650=await _0x43cfae[_0x1bf55d(0x19e)]();this[_0x1bf55d(0x192)](_0x2dd650);}catch(_0x30d52a){this[_0x1bf55d(0x175)](_0x1bf55d(0x19d),{'error':_0x30d52a,'operation':_0x1bf55d(0x19a)});}}[_0x224426(0x196)](_0x2f8948){const _0xf44fca=_0x224426;this[_0xf44fca(0x174)][_0xf44fca(0x183)](_0x2f8948);}async[_0x224426(0x17e)](_0x2df599){const _0x1caf5e=_0x224426,_0x3320b6=this[_0x1caf5e(0x174)][_0x1caf5e(0x19c)](_0x591a32=>_0x591a32['id']===_0x2df599);if(-0x1===_0x3320b6)return!0x1;try{return await this[_0x1caf5e(0x185)][_0x1caf5e(0x17f)](_0x2df599)[_0x1caf5e(0x18e)](),this[_0x1caf5e(0x174)][_0x1caf5e(0x181)](_0x3320b6,0x1),this[_0x1caf5e(0x175)](_0x1caf5e(0x19b),{'itemId':_0x2df599}),!0x0;}catch(_0x5bc846){return this[_0x1caf5e(0x175)](_0x1caf5e(0x19d),{'error':_0x5bc846,'operation':_0x1caf5e(0x17e),'itemId':_0x2df599}),!0x1;}}[_0x224426(0x18b)](_0x200450){const _0x424e77=_0x224426;return this[_0x424e77(0x174)][_0x424e77(0x193)](_0x59f036=>_0x59f036['id']===_0x200450);}async[_0x224426(0x186)](_0x29f021,_0x49c03d){const _0x478b30=_0x224426,_0x31fbc4=this[_0x478b30(0x18b)](_0x29f021);if(!_0x31fbc4)return!0x1;try{return await this[_0x478b30(0x185)][_0x478b30(0x195)](_0x29f021,{'title':_0x49c03d})[_0x478b30(0x179)](),_0x31fbc4[_0x478b30(0x19f)](_0x49c03d),this[_0x478b30(0x175)](_0x478b30(0x18d),{'itemId':_0x29f021,'updates':{'title':_0x49c03d}}),!0x0;}catch(_0x5f4bfc){return this[_0x478b30(0x175)](_0x478b30(0x19d),{'error':_0x5f4bfc,'operation':_0x478b30(0x186),'itemId':_0x29f021}),!0x1;}}async[_0x224426(0x198)](_0x190be6,_0x2e1375){const _0x6e7db1=_0x224426,_0x562dab=this[_0x6e7db1(0x18b)](_0x190be6);if(!_0x562dab)return!0x1;try{return await this[_0x6e7db1(0x185)][_0x6e7db1(0x195)](_0x190be6,{'pinned':_0x2e1375})[_0x6e7db1(0x179)](),_0x562dab[_0x6e7db1(0x17c)](_0x2e1375),this[_0x6e7db1(0x175)](_0x6e7db1(0x18d),{'itemId':_0x190be6,'updates':{'pinned':_0x2e1375}}),!0x0;}catch(_0xc3661f){return this[_0x6e7db1(0x175)](_0x6e7db1(0x19d),{'error':_0xc3661f,'operation':_0x6e7db1(0x198),'itemId':_0x190be6}),!0x1;}}[_0x224426(0x192)](_0xd8c9ee){const _0x53ba2f=_0x224426;try{this[_0x53ba2f(0x174)]=[],_0xd8c9ee[_0x53ba2f(0x177)](_0x2f2cbc=>{const _0x5b1596=_0x53ba2f;this[_0x5b1596(0x196)](new _0x432898(_0x2f2cbc));}),this[_0x53ba2f(0x175)](_0x53ba2f(0x17a),{'items':[...this[_0x53ba2f(0x174)]]});}catch(_0x1c4432){this[_0x53ba2f(0x175)](_0x53ba2f(0x19d),{'error':_0x1c4432,'operation':_0x53ba2f(0x192)});}}[_0x224426(0x194)](_0x527b17={}){const _0x1525d1=_0x224426,_0xd16a6c=void 0x0!==_0x527b17[_0x1525d1(0x182)]&&_0x527b17[_0x1525d1(0x182)],_0x58af0a=_0x527b17[_0x1525d1(0x171)]?new Date(_0x527b17[_0x1525d1(0x171)][_0x1525d1(0x18c)](),_0x527b17[_0x1525d1(0x171)][_0x1525d1(0x17d)](),_0x527b17[_0x1525d1(0x171)][_0x1525d1(0x189)]()):null,_0x49d79a=_0x527b17['to']?new Date(_0x527b17['to'][_0x1525d1(0x18c)](),_0x527b17['to'][_0x1525d1(0x17d)](),_0x527b17['to'][_0x1525d1(0x189)]()):null;return this[_0x1525d1(0x174)][_0x1525d1(0x197)](_0x407ee2=>{const _0xaa739a=_0x1525d1;if(_0x407ee2[_0xaa739a(0x182)]!==_0xd16a6c)return!0x1;if(_0x49d79a){const _0x57bdda=new Date(_0x407ee2[_0xaa739a(0x188)][_0xaa739a(0x18c)](),_0x407ee2[_0xaa739a(0x188)][_0xaa739a(0x17d)](),_0x407ee2[_0xaa739a(0x188)][_0xaa739a(0x189)]());return _0x58af0a?_0x58af0a[_0xaa739a(0x178)]()===_0x49d79a[_0xaa739a(0x178)]()?_0x57bdda[_0xaa739a(0x178)]()===_0x58af0a[_0xaa739a(0x178)]():_0x57bdda<_0x49d79a&&_0x57bdda>=_0x58af0a:_0x57bdda<_0x49d79a;}return!0x0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x213b4a=_0x56ec;function _0x56ec(_0x1d825e,_0x2abad0){var _0x5294ad=_0x5294();return _0x56ec=function(_0x56ec2a,_0x10e767){_0x56ec2a=_0x56ec2a-0xdc;var _0x3272b9=_0x5294ad[_0x56ec2a];return _0x3272b9;},_0x56ec(_0x1d825e,_0x2abad0);}(function(_0x21e1bf,_0x2ecc49){var _0x210ccd=_0x56ec,_0x45fac0=_0x21e1bf();while(!![]){try{var _0x3d37ee=-parseInt(_0x210ccd(0xe7))/0x1+-parseInt(_0x210ccd(0xe3))/0x2+-parseInt(_0x210ccd(0xdf))/0x3*(parseInt(_0x210ccd(0xe4))/0x4)+parseInt(_0x210ccd(0xdc))/0x5*(-parseInt(_0x210ccd(0xe0))/0x6)+parseInt(_0x210ccd(0xe8))/0x7+-parseInt(_0x210ccd(0xe2))/0x8+parseInt(_0x210ccd(0xe6))/0x9;if(_0x3d37ee===_0x2ecc49)break;else _0x45fac0['push'](_0x45fac0['shift']());}catch(_0x434dd6){_0x45fac0['push'](_0x45fac0['shift']());}}}(_0x5294,0x48784));function _0x5294(){var _0x186bfd=['486Fgcvik','title','101992BURDIv','966476EpAPAE','36Ivqknm','set','6511023imlNzS','165575urtaHy','3792327oBqXWK','pinned','updateTitle','updatePinned','14585gcpPuB','createdAt','updatedAt','23511IKQdjh'];_0x5294=function(){return _0x186bfd;};return _0x5294();}import{ObservableMixin as _0x267f1a}from'ckeditor5/src/utils.js';import{escape as _0x16f5b4}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x267f1a(){['id'];[_0x213b4a(0xdd)];constructor({id:_0x2c9d93,title:_0x3bf094,createdAt:_0x284f09,updatedAt:_0x11e9f6,pinned:_0x3925c1}){var _0x3a612d=_0x213b4a;super(),this['id']=_0x2c9d93,this[_0x3a612d(0xdd)]=new Date(_0x284f09),this[_0x3a612d(0xe5)](_0x3a612d(0xe1),_0x3bf094),this[_0x3a612d(0xe5)](_0x3a612d(0xde),_0x11e9f6?new Date(_0x11e9f6):null),this[_0x3a612d(0xe5)](_0x3a612d(0xe9),_0x3925c1||!0x1);}[_0x213b4a(0xea)](_0x1d6338){var _0x12c962=_0x213b4a;this[_0x12c962(0xe5)](_0x12c962(0xe1),_0x16f5b4(_0x1d6338)),this[_0x12c962(0xde)]=new Date();}[_0x213b4a(0xeb)](_0x17ac8b){var _0x13623e=_0x213b4a;this[_0x13623e(0xe5)](_0x13623e(0xe9),_0x17ac8b),this[_0x13623e(0xde)]=new Date();}}
23
+ var _0x337608=_0x5a8a;(function(_0x4006e0,_0x40fa6f){var _0x221893=_0x5a8a,_0x555de8=_0x4006e0();while(!![]){try{var _0xccc116=parseInt(_0x221893(0x99))/0x1*(parseInt(_0x221893(0x9b))/0x2)+-parseInt(_0x221893(0x9d))/0x3+parseInt(_0x221893(0x9f))/0x4+-parseInt(_0x221893(0xa3))/0x5+-parseInt(_0x221893(0x9c))/0x6*(-parseInt(_0x221893(0x95))/0x7)+-parseInt(_0x221893(0xa5))/0x8*(parseInt(_0x221893(0x98))/0x9)+parseInt(_0x221893(0x9a))/0xa*(-parseInt(_0x221893(0xa0))/0xb);if(_0xccc116===_0x40fa6f)break;else _0x555de8['push'](_0x555de8['shift']());}catch(_0x134ba3){_0x555de8['push'](_0x555de8['shift']());}}}(_0x5c3e,0x207d3));import{ObservableMixin as _0x59bc02}from'ckeditor5/src/utils.js';import{escape as _0x3adc90}from'es-toolkit/compat';export class AIChatHistoryItem extends _0x59bc02(){['id'];[_0x337608(0xa4)];constructor({id:_0x5cc6c5,title:_0x3b2d05,createdAt:_0x30d24f,updatedAt:_0x3f175b,pinned:_0x1a5c53}){var _0x3dd9b4=_0x337608;super(),this['id']=_0x5cc6c5,this[_0x3dd9b4(0xa4)]=new Date(_0x30d24f),this[_0x3dd9b4(0xa2)](_0x3dd9b4(0x94),_0x3b2d05),this[_0x3dd9b4(0xa2)](_0x3dd9b4(0xa1),_0x3f175b?new Date(_0x3f175b):null),this[_0x3dd9b4(0xa2)](_0x3dd9b4(0x97),_0x1a5c53||!0x1);}[_0x337608(0x9e)](_0x4aab54){var _0x10e47b=_0x337608;this[_0x10e47b(0xa2)](_0x10e47b(0x94),_0x3adc90(_0x4aab54)),this[_0x10e47b(0xa1)]=new Date();}[_0x337608(0x96)](_0x27c67b){var _0x54474d=_0x337608;this[_0x54474d(0xa2)](_0x54474d(0x97),_0x27c67b),this[_0x54474d(0xa1)]=new Date();}}function _0x5a8a(_0x3151af,_0xeb80c5){var _0x5c3ed3=_0x5c3e();return _0x5a8a=function(_0x5a8a02,_0x3a13b2){_0x5a8a02=_0x5a8a02-0x94;var _0x356296=_0x5c3ed3[_0x5a8a02];return _0x356296;},_0x5a8a(_0x3151af,_0xeb80c5);}function _0x5c3e(){var _0x3a4d9b=['170217ZIpUjt','239087wCHwEX','320610MyXfSN','2QHvUZB','6gdRCPi','594720qONTJF','updateTitle','470992NJZQPK','11rOuerj','updatedAt','set','727875NtWNID','createdAt','8FXDQSd','title','1197203YAmycw','updatePinned','pinned'];_0x5c3e=function(){return _0x3a4d9b;};return _0x5c3e();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4189(_0x45f60f,_0x412faa){const _0x1a6065=_0x1a60();return _0x4189=function(_0x418936,_0x480330){_0x418936=_0x418936-0x1c3;let _0x348e5f=_0x1a6065[_0x418936];return _0x348e5f;},_0x4189(_0x45f60f,_0x412faa);}const _0x2fae02=_0x4189;(function(_0x14e67b,_0x332e69){const _0x5cf62e=_0x4189,_0x28a29d=_0x14e67b();while(!![]){try{const _0x7df415=parseInt(_0x5cf62e(0x1db))/0x1*(parseInt(_0x5cf62e(0x211))/0x2)+parseInt(_0x5cf62e(0x1c9))/0x3*(-parseInt(_0x5cf62e(0x1fc))/0x4)+parseInt(_0x5cf62e(0x1f2))/0x5*(-parseInt(_0x5cf62e(0x1fb))/0x6)+parseInt(_0x5cf62e(0x221))/0x7+-parseInt(_0x5cf62e(0x1ff))/0x8+-parseInt(_0x5cf62e(0x21f))/0x9+parseInt(_0x5cf62e(0x220))/0xa;if(_0x7df415===_0x332e69)break;else _0x28a29d['push'](_0x28a29d['shift']());}catch(_0x3091cc){_0x28a29d['push'](_0x28a29d['shift']());}}}(_0x1a60,0xadec8));function _0x1a60(){const _0x5ee34b=['28306iRINTt','set','AI_CHAT_HISTORY_ACCEPT','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','then','ck-ai-chat-history__item-check','ck-ai-loader__text','ck-ai-chat-history__item-title','AI_CHAT_HISTORY_LOADING_UNPINNING','ck-ai-chat-history__item--active','panelView','bind','clear','_createEditInputView','addMany','ck-hidden','AI_CHAT_HISTORY_REMOVE_CONFIRM','div','listitem','span','match','isMatching','_createCancelEditButtonView','3114380trawHZ','showConfirm','isOn','loadingState','ck-ai-chat-history__item-row','locale','LOADING_LABELS','edit:cancel','change:isEdit','12zdixwu','28116yYerju','isVisible','ck-ai-loader','6059344zSFcuO','ck-ai-chat-history__item--edit','buttonView','ck-ai-chat-history__item-date','text','_createPinButtonView','ck-ai-chat-history__item-content','add','mainContent','Enter','_commitEditInputValue','label','panelPosition','bindTemplate','tiny','items','AI_CHAT_HISTORY_PIN_BUTTON','pinned','88TbBkhM','removeConversation','isEdit','highlightText','fire','extendTemplate','ck-confirm-view-submit','AI_CHAT_HISTORY_LOADING_PINNING','_createAcceptEditButtonView','withText','ck-ai-chat-history__item-main-content','key','AI_CHAT_HISTORY_EDIT_NAME','_createCheckView','9153153cAAgPL','20551030ZhATTt','7009527fuhrWp','updateTitle','ck-ai-chat-history__item','click','_createMenuDropdownView','children','AI_CHAT_HISTORY_LOADING_RENAMING','ck-ai-chat-history__item-actions','actions','element','243oJNfee','AI_CHAT_HISTORY_REMOVE','ck-ai-chat-history__item-check-container','AI_CHAT_HISTORY_CANCEL','string','createCollection','selectConversation','updateLoadingState','_titleView','ck-confirm-view-cancel','execute','setConversationPinned','AI_CHAT_HISTORY_LOADING_REMOVING','_createSpinnerView','setTemplate','focus','value','editConversationTitle'];_0x1a60=function(){return _0x5ee34b;};return _0x1a60();}import{ListItemView as _0x34eda4,HighlightedTextView as _0x4e2b00,ButtonView as _0x26eb2b,ListView as _0x199220,IconView as _0x313751,createDropdown as _0x5ba9b9,InputTextView as _0x50dc56}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x40cbb9,IconPin as _0x5471c7,IconCheck as _0x5a8465,IconCancel as _0xc312d8}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x200ef2,ConfirmMixin as _0x234898}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0xdc4994}from'es-toolkit/compat';import{AISpinnerView as _0x276c40}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x456c4e}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x234898(_0x34eda4){['id'];static [_0x2fae02(0x1f8)]={'remove':_0x2fae02(0x1d5),'rename':_0x2fae02(0x1c5),'pin':_0x2fae02(0x218),'unpin':_0x2fae02(0x1e3)};[_0x2fae02(0x1c7)];[_0x2fae02(0x207)];[_0x2fae02(0x1d1)];constructor(_0x37e899,_0x46c89e){const _0x49ff33=_0x2fae02;super(_0x37e899);const _0x711183=this[_0x49ff33(0x20c)];this[_0x49ff33(0x1dc)](_0x49ff33(0x213),!0x1),this[_0x49ff33(0x1dc)](_0x49ff33(0x1fd),!0x0),this[_0x49ff33(0x1dc)](_0x49ff33(0x210),!!_0x46c89e[_0x49ff33(0x210)]),this[_0x49ff33(0x1dc)](_0x49ff33(0x1f5),null),this['id']=_0x46c89e['id'];const {title:_0x5c6631,createdAt:_0x307c1b,active:_0x439571=!0x1}=_0x46c89e;this[_0x49ff33(0x1d1)]=new _0x4e2b00(),this[_0x49ff33(0x1d1)][_0x49ff33(0x203)]=_0x5c6631,this[_0x49ff33(0x1d1)][_0x49ff33(0x216)]({'attributes':{'class':[_0x49ff33(0x1e2)]}});const _0x44008e=this[_0x49ff33(0x21e)](),_0x19772d=this[_0x49ff33(0x204)](_0x37e899),_0x3c3e28=this[_0x49ff33(0x1c3)](),_0x11bdd5=this[_0x49ff33(0x1e8)](_0x37e899,_0x5c6631),_0x3a9beb=this[_0x49ff33(0x219)](_0x37e899,_0x11bdd5),_0x34d791=this[_0x49ff33(0x1f1)](_0x37e899,_0x11bdd5);this[_0x49ff33(0x1c7)]=this[_0x49ff33(0x1ce)](),this[_0x49ff33(0x207)]=this[_0x49ff33(0x1ce)](),this[_0x49ff33(0x207)][_0x49ff33(0x206)](this[_0x49ff33(0x1d1)]),this[_0x49ff33(0x1c7)][_0x49ff33(0x206)](_0x19772d),this[_0x49ff33(0x1c7)][_0x49ff33(0x206)](_0x3c3e28),this['on'](_0x49ff33(0x1fa),(_0x37d252,_0x4b623b,_0x3463b0)=>{const _0xff1eb8=_0x49ff33;this[_0xff1eb8(0x1c7)][_0xff1eb8(0x1e7)](),this[_0xff1eb8(0x207)][_0xff1eb8(0x1e7)](),_0x3463b0?(this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x3a9beb),this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x34d791),this[_0xff1eb8(0x207)][_0xff1eb8(0x206)](_0x11bdd5),_0x11bdd5[_0xff1eb8(0x1c8)][_0xff1eb8(0x1d8)]()):(this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x19772d),this[_0xff1eb8(0x1c7)][_0xff1eb8(0x206)](_0x3c3e28),this[_0xff1eb8(0x207)][_0xff1eb8(0x206)](this[_0xff1eb8(0x1d1)]));}),this[_0x49ff33(0x1d7)]({'tag':'li','attributes':{'class':[_0x49ff33(0x223),_0x439571?_0x49ff33(0x1e4):'',_0x711183['if'](_0x49ff33(0x1fd),_0x49ff33(0x1ea),_0x5b16c7=>!_0x5b16c7),_0x711183['if'](_0x49ff33(0x213),_0x49ff33(0x200))],'role':_0x49ff33(0x1ed)},'children':[{'tag':_0x49ff33(0x1ee),'attributes':{'class':[_0x49ff33(0x1cb)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e0),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x1e984f=>!!_0x1e984f)]},'children':_0x439571?[_0x44008e]:[]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1fe),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x4a6281=>!_0x4a6281)]},'children':[this[_0x49ff33(0x1d6)]()]}]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1f6)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x205)]},'on':{'click':this[_0x49ff33(0x20c)]['to'](_0x49ff33(0x224))},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x21b)]},'children':[{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e2),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x3d57c3=>!!_0x3d57c3)]},'children':this[_0x49ff33(0x207)]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1e1),_0x711183['if'](_0x49ff33(0x1f5),_0x49ff33(0x1ea),_0x52cab2=>!_0x52cab2)]},'children':[{'text':_0x711183['to'](_0x49ff33(0x1f5),_0x3755bb=>_0x3755bb?_0x456c4e(this[_0x49ff33(0x1f7)],AIChatHistoryListItemView[_0x49ff33(0x1f8)][_0x3755bb]):'')}]}]},{'tag':_0x49ff33(0x1ee),'attributes':{'class':[_0x49ff33(0x202)]},'children':[_0x307c1b]}]},{'tag':_0x49ff33(0x1ec),'attributes':{'class':[_0x49ff33(0x1c6)]},'children':this[_0x49ff33(0x1c7)]}]}]}),this['on'](_0x49ff33(0x224),()=>{const _0x5ee292=_0x49ff33;this[_0x5ee292(0x213)]||this[_0x5ee292(0x215)](_0x5ee292(0x1cf),{'id':this['id']});});}[_0x2fae02(0x222)](_0x3b4e10){const _0x5ce139=_0x2fae02;this[_0x5ce139(0x1d1)][_0x5ce139(0x203)]=_0xdc4994(_0x3b4e10);}[_0x2fae02(0x1d0)](_0x176c75,_0x5a2517){const _0x3f1945=_0x2fae02;this[_0x3f1945(0x1dc)](_0x3f1945(0x1f5),_0x5a2517?_0x176c75:null);}[_0x2fae02(0x21e)](){const _0x249b6d=_0x2fae02,_0x3bc3f1=new _0x313751();return _0x3bc3f1[_0x249b6d(0x1dc)]({'content':_0x5a8465}),_0x3bc3f1;}[_0x2fae02(0x204)](_0x45c90f){const _0x61bb72=_0x2fae02,_0x5acf84=new _0x26eb2b(_0x45c90f);return _0x5acf84[_0x61bb72(0x1dc)]({'label':_0x456c4e(_0x45c90f,_0x61bb72(0x20f)),'icon':_0x5471c7,'withText':!0x1,'tooltip':!0x0}),_0x5acf84[_0x61bb72(0x1e6)](_0x61bb72(0x1f4))['to'](this,_0x61bb72(0x210)),_0x5acf84['on'](_0x61bb72(0x1d3),()=>{const _0x155682=_0x61bb72,_0x5c76e3=!this[_0x155682(0x210)];this[_0x155682(0x215)](_0x155682(0x1d4),{'id':this['id'],'pinned':_0x5c76e3});}),_0x5acf84;}[_0x2fae02(0x1c3)](){const _0x4838bd=_0x2fae02,_0x35be4d=_0x5ba9b9(this[_0x4838bd(0x1f7)],_0x200ef2),_0x26ab8e=_0x35be4d[_0x4838bd(0x1e5)][_0x4838bd(0x1c4)];_0x35be4d[_0x4838bd(0x201)][_0x4838bd(0x1dc)]({'label':_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x1de)),'icon':_0x40cbb9}),_0x35be4d[_0x4838bd(0x20b)]='sw';const _0x57c025=new _0x26eb2b(this[_0x4838bd(0x1f7)]);_0x57c025[_0x4838bd(0x20a)]=_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x21d)),_0x57c025[_0x4838bd(0x21a)]=!0x0,_0x57c025['on'](_0x4838bd(0x1d3),()=>{const _0x29ddeb=_0x4838bd;this[_0x29ddeb(0x213)]=!0x0;});const _0x2cac9c=new _0x26eb2b(this[_0x4838bd(0x1f7)]);_0x2cac9c[_0x4838bd(0x20a)]=_0x456c4e(this[_0x4838bd(0x1f7)],_0x4838bd(0x1ca)),_0x2cac9c[_0x4838bd(0x21a)]=!0x0,_0x2cac9c['on'](_0x4838bd(0x1d3),()=>{const _0x20721d=_0x4838bd;this[_0x20721d(0x1f3)](_0x456c4e(this[_0x20721d(0x1f7)],_0x20721d(0x1eb)),this[_0x20721d(0x1c8)])[_0x20721d(0x1df)](()=>{const _0x27d1d0=_0x20721d;this[_0x27d1d0(0x215)](_0x27d1d0(0x212),{'id':this['id']});});});const _0x5c058a=new _0x199220(this[_0x4838bd(0x1f7)]),_0xccd153=new _0x34eda4(this[_0x4838bd(0x1f7)]);_0xccd153[_0x4838bd(0x1c4)][_0x4838bd(0x206)](_0x57c025);const _0x3f5798=new _0x34eda4(this[_0x4838bd(0x1f7)]);return _0x3f5798[_0x4838bd(0x1c4)][_0x4838bd(0x206)](_0x2cac9c),_0x5c058a[_0x4838bd(0x20e)][_0x4838bd(0x1e9)]([_0xccd153,_0x3f5798]),_0x26ab8e[_0x4838bd(0x206)](_0x5c058a),_0x35be4d;}[_0x2fae02(0x1e8)](_0x4ee196,_0x3e4605){const _0x19871b=_0x2fae02,_0x1eadec=new _0x50dc56(_0x4ee196),_0x354287=_0x1eadec[_0x19871b(0x20c)];return _0x1eadec[_0x19871b(0x1d9)]=_0x3e4605,_0x1eadec[_0x19871b(0x216)]({'on':{'keydown':_0x354287['to'](_0x23f0b9=>{const _0xe8edc2=_0x19871b;_0xe8edc2(0x208)==_0x23f0b9[_0xe8edc2(0x21c)]&&this[_0xe8edc2(0x209)](_0x1eadec);})}}),_0x1eadec;}[_0x2fae02(0x219)](_0x15d971,_0x258f7f){const _0x46128b=_0x2fae02,_0x58ef99=new _0x26eb2b(_0x15d971);return _0x58ef99[_0x46128b(0x1dc)]({'icon':_0x5a8465,'withText':!0x1,'tooltip':_0x456c4e(_0x15d971,_0x46128b(0x1dd))}),_0x58ef99[_0x46128b(0x216)]({'attributes':{'class':[_0x46128b(0x217)]}}),_0x58ef99['on'](_0x46128b(0x1d3),()=>{const _0x406c12=_0x46128b;this[_0x406c12(0x209)](_0x258f7f);}),_0x58ef99;}[_0x2fae02(0x209)](_0x284a4d){const _0x95621c=_0x2fae02,_0x4978eb=_0x284a4d[_0x95621c(0x1c8)][_0x95621c(0x1d9)]||'';this[_0x95621c(0x1d1)][_0x95621c(0x203)]=_0x4978eb,this[_0x95621c(0x213)]=!0x1,this[_0x95621c(0x215)](_0x95621c(0x1da),{'id':this['id'],'title':_0x4978eb});}[_0x2fae02(0x1f1)](_0x2788ac,_0x3a3d6d){const _0x1d9dee=_0x2fae02,_0x282c45=new _0x26eb2b(_0x2788ac);return _0x282c45[_0x1d9dee(0x1dc)]({'icon':_0xc312d8,'withText':!0x1,'tooltip':_0x456c4e(_0x2788ac,_0x1d9dee(0x1cc))}),_0x282c45[_0x1d9dee(0x216)]({'attributes':{'class':[_0x1d9dee(0x1d2)]}}),_0x282c45['on'](_0x1d9dee(0x1d3),()=>{const _0x1feb24=_0x1d9dee;this[_0x1feb24(0x213)]=!0x1,_0x3a3d6d[_0x1feb24(0x1d9)]=this[_0x1feb24(0x1d1)][_0x1feb24(0x203)]||'',this[_0x1feb24(0x215)](_0x1feb24(0x1f9));}),_0x282c45;}[_0x2fae02(0x1d6)](){const _0x5c7e4e=_0x2fae02,_0x4c28dc=new _0x276c40(_0x5c7e4e(0x20d));return _0x4c28dc[_0x5c7e4e(0x1fd)]=!0x0,_0x4c28dc;}[_0x2fae02(0x1f0)](_0x115655){const _0x53ffd5=_0x2fae02;return this[_0x53ffd5(0x1d1)]&&_0x53ffd5(0x1cd)==typeof this[_0x53ffd5(0x1d1)][_0x53ffd5(0x203)]&&this[_0x53ffd5(0x1d1)][_0x53ffd5(0x203)][_0x53ffd5(0x1ef)](_0x115655)?{'title':!0x0}:null;}[_0x2fae02(0x214)](_0xa80152){const _0x3b8fc2=_0x2fae02;this[_0x3b8fc2(0x1d1)][_0x3b8fc2(0x214)](_0xa80152);}}
23
+ function _0x40ce(_0x3aef7f,_0x2408a4){const _0x205a35=_0x205a();return _0x40ce=function(_0x40ce7a,_0x241c59){_0x40ce7a=_0x40ce7a-0x1a9;let _0x252a9d=_0x205a35[_0x40ce7a];return _0x252a9d;},_0x40ce(_0x3aef7f,_0x2408a4);}const _0x1aa884=_0x40ce;(function(_0x44353a,_0x24a0f3){const _0x439368=_0x40ce,_0x2610d3=_0x44353a();while(!![]){try{const _0x27aebd=parseInt(_0x439368(0x1b7))/0x1*(parseInt(_0x439368(0x1cf))/0x2)+parseInt(_0x439368(0x1fa))/0x3+-parseInt(_0x439368(0x1e4))/0x4*(-parseInt(_0x439368(0x1dc))/0x5)+-parseInt(_0x439368(0x200))/0x6+parseInt(_0x439368(0x1ec))/0x7+-parseInt(_0x439368(0x1ca))/0x8*(-parseInt(_0x439368(0x204))/0x9)+parseInt(_0x439368(0x1e5))/0xa*(-parseInt(_0x439368(0x1f8))/0xb);if(_0x27aebd===_0x24a0f3)break;else _0x2610d3['push'](_0x2610d3['shift']());}catch(_0x5486b5){_0x2610d3['push'](_0x2610d3['shift']());}}}(_0x205a,0x51f9f));import{ListItemView as _0x24c960,HighlightedTextView as _0x50ec94,ButtonView as _0x33fd9f,ListView as _0x390921,IconView as _0x5433a7,createDropdown as _0x4cfbe7,InputTextView as _0xb0c0f2}from'ckeditor5/src/ui.js';import{IconThreeHorizontalDots as _0x48dbc8,IconPin as _0x350140,IconCheck as _0x17814b,IconCancel as _0x44a0de}from'ckeditor5/src/icons.js';import{LateFocusDropdownButtonView as _0x2754f0,ConfirmMixin as _0x197093}from'ckeditor5-collaboration/src/collaboration-core.js';import{escape as _0x52731b}from'es-toolkit/compat';import{AISpinnerView as _0x3a3a7d}from'../../aicore/ui/aispinner.js';import{getTranslation as _0x404df8}from'../../aicore/utils/common-translations.js';export class AIChatHistoryListItemView extends _0x197093(_0x24c960){['id'];static [_0x1aa884(0x1b6)]={'remove':_0x1aa884(0x1d2),'rename':_0x1aa884(0x1de),'pin':_0x1aa884(0x1be),'unpin':_0x1aa884(0x1fb)};[_0x1aa884(0x1ff)];[_0x1aa884(0x1a9)];[_0x1aa884(0x1d0)];constructor(_0x11bda4,_0x38faa5){const _0x26c7ea=_0x1aa884;super(_0x11bda4);const _0x571163=this[_0x26c7ea(0x206)];this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1f6),!0x1),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1ab),!0x0),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1d7),!!_0x38faa5[_0x26c7ea(0x1d7)]),this[_0x26c7ea(0x1c5)](_0x26c7ea(0x1c0),null),this['id']=_0x38faa5['id'];const {title:_0x1f4d22,createdAt:_0x3b61ed,active:_0x37fd08=!0x1}=_0x38faa5;this[_0x26c7ea(0x1d0)]=new _0x50ec94(),this[_0x26c7ea(0x1d0)][_0x26c7ea(0x1c2)]=_0x1f4d22,this[_0x26c7ea(0x1d0)][_0x26c7ea(0x1c1)]({'attributes':{'class':[_0x26c7ea(0x1d8)]}});const _0x5463b0=this[_0x26c7ea(0x1fd)](),_0x51c2c0=this[_0x26c7ea(0x1f4)](_0x11bda4),_0x1bed2a=this[_0x26c7ea(0x208)](),_0x5d0c4b=this[_0x26c7ea(0x1aa)](_0x11bda4,_0x1f4d22),_0x3c7c08=this[_0x26c7ea(0x1e7)](_0x11bda4,_0x5d0c4b),_0x57f840=this[_0x26c7ea(0x1b9)](_0x11bda4,_0x5d0c4b);this[_0x26c7ea(0x1ff)]=this[_0x26c7ea(0x1bd)](),this[_0x26c7ea(0x1a9)]=this[_0x26c7ea(0x1bd)](),this[_0x26c7ea(0x1a9)][_0x26c7ea(0x207)](this[_0x26c7ea(0x1d0)]),this[_0x26c7ea(0x1ff)][_0x26c7ea(0x207)](_0x51c2c0),this[_0x26c7ea(0x1ff)][_0x26c7ea(0x207)](_0x1bed2a),this['on'](_0x26c7ea(0x1b3),(_0x5b0993,_0x59e67f,_0x373f5d)=>{const _0x84c227=_0x26c7ea;this[_0x84c227(0x1ff)][_0x84c227(0x1cb)](),this[_0x84c227(0x1a9)][_0x84c227(0x1cb)](),_0x373f5d?(this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x3c7c08),this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x57f840),this[_0x84c227(0x1a9)][_0x84c227(0x207)](_0x5d0c4b),_0x5d0c4b[_0x84c227(0x1e3)][_0x84c227(0x1f3)]()):(this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x51c2c0),this[_0x84c227(0x1ff)][_0x84c227(0x207)](_0x1bed2a),this[_0x84c227(0x1a9)][_0x84c227(0x207)](this[_0x84c227(0x1d0)]));}),this[_0x26c7ea(0x1dd)]({'tag':'li','attributes':{'class':[_0x26c7ea(0x1f7),_0x37fd08?_0x26c7ea(0x202):'',_0x571163['if'](_0x26c7ea(0x1ab),_0x26c7ea(0x1ad),_0x559ca9=>!_0x559ca9),_0x571163['if'](_0x26c7ea(0x1f6),_0x26c7ea(0x1d9))],'role':_0x26c7ea(0x1df)},'children':[{'tag':_0x26c7ea(0x1f5),'attributes':{'class':[_0x26c7ea(0x1b1)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1ed),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x57c75a=>!!_0x57c75a)]},'children':_0x37fd08?[_0x5463b0]:[]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1fe),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x3bc532=>!_0x3bc532)]},'children':[this[_0x26c7ea(0x1ee)]()]}]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1bc)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d6)]},'on':{'click':this[_0x26c7ea(0x206)]['to'](_0x26c7ea(0x1ac))},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1db)]},'children':[{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d8),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0x192bce=>!!_0x192bce)]},'children':this[_0x26c7ea(0x1a9)]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1eb),_0x571163['if'](_0x26c7ea(0x1c0),_0x26c7ea(0x1ad),_0xe40de4=>!_0xe40de4)]},'children':[{'text':_0x571163['to'](_0x26c7ea(0x1c0),_0x46de6a=>_0x46de6a?_0x404df8(this[_0x26c7ea(0x1f0)],AIChatHistoryListItemView[_0x26c7ea(0x1b6)][_0x46de6a]):'')}]}]},{'tag':_0x26c7ea(0x1f5),'attributes':{'class':[_0x26c7ea(0x1f9)]},'children':[_0x3b61ed]}]},{'tag':_0x26c7ea(0x1c6),'attributes':{'class':[_0x26c7ea(0x1d5)]},'children':this[_0x26c7ea(0x1ff)]}]}]}),this['on'](_0x26c7ea(0x1ac),()=>{const _0x2943bd=_0x26c7ea;this[_0x2943bd(0x1f6)]||this[_0x2943bd(0x205)](_0x2943bd(0x1e8),{'id':this['id']});});}[_0x1aa884(0x20a)](_0x4bb7aa){const _0x5cba8e=_0x1aa884;this[_0x5cba8e(0x1d0)][_0x5cba8e(0x1c2)]=_0x52731b(_0x4bb7aa);}[_0x1aa884(0x1c7)](_0x2df4e8,_0xf61899){const _0x47abc3=_0x1aa884;this[_0x47abc3(0x1c5)](_0x47abc3(0x1c0),_0xf61899?_0x2df4e8:null);}[_0x1aa884(0x1fd)](){const _0x1418b4=_0x1aa884,_0x9f816c=new _0x5433a7();return _0x9f816c[_0x1418b4(0x1c5)]({'content':_0x17814b}),_0x9f816c;}[_0x1aa884(0x1f4)](_0x2cd519){const _0x170a9a=_0x1aa884,_0x436e7e=new _0x33fd9f(_0x2cd519);return _0x436e7e[_0x170a9a(0x1c5)]({'label':_0x404df8(_0x2cd519,_0x170a9a(0x1b8)),'icon':_0x350140,'withText':!0x1,'tooltip':!0x0}),_0x436e7e[_0x170a9a(0x1cd)](_0x170a9a(0x1d3))['to'](this,_0x170a9a(0x1d7)),_0x436e7e['on'](_0x170a9a(0x1b2),()=>{const _0xf27f24=_0x170a9a,_0x22565f=!this[_0xf27f24(0x1d7)];this[_0xf27f24(0x205)](_0xf27f24(0x1da),{'id':this['id'],'pinned':_0x22565f});}),_0x436e7e;}[_0x1aa884(0x208)](){const _0x1cd5e9=_0x1aa884,_0x514b90=_0x4cfbe7(this[_0x1cd5e9(0x1f0)],_0x2754f0),_0xcee5cd=_0x514b90[_0x1cd5e9(0x1bb)][_0x1cd5e9(0x1ba)];_0x514b90[_0x1cd5e9(0x1b5)][_0x1cd5e9(0x1c5)]({'label':_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1e1)),'icon':_0x48dbc8}),_0x514b90[_0x1cd5e9(0x1bf)]='sw';const _0x1bce7b=new _0x33fd9f(this[_0x1cd5e9(0x1f0)]);_0x1bce7b[_0x1cd5e9(0x1c9)]=_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1e0)),_0x1bce7b[_0x1cd5e9(0x20b)]=!0x0,_0x1bce7b['on'](_0x1cd5e9(0x1b2),()=>{const _0x57cee2=_0x1cd5e9;this[_0x57cee2(0x1f6)]=!0x0;});const _0x156d3d=new _0x33fd9f(this[_0x1cd5e9(0x1f0)]);_0x156d3d[_0x1cd5e9(0x1c9)]=_0x404df8(this[_0x1cd5e9(0x1f0)],_0x1cd5e9(0x1c3)),_0x156d3d[_0x1cd5e9(0x20b)]=!0x0,_0x156d3d['on'](_0x1cd5e9(0x1b2),()=>{const _0x20239b=_0x1cd5e9;this[_0x20239b(0x1d4)](_0x404df8(this[_0x20239b(0x1f0)],_0x20239b(0x1b0)),this[_0x20239b(0x1e3)])[_0x20239b(0x1e2)](()=>{const _0x356269=_0x20239b;this[_0x356269(0x205)](_0x356269(0x1ce),{'id':this['id']});});});const _0xc87a74=new _0x390921(this[_0x1cd5e9(0x1f0)]),_0x5cd91c=new _0x24c960(this[_0x1cd5e9(0x1f0)]);_0x5cd91c[_0x1cd5e9(0x1ba)][_0x1cd5e9(0x207)](_0x1bce7b);const _0x255076=new _0x24c960(this[_0x1cd5e9(0x1f0)]);return _0x255076[_0x1cd5e9(0x1ba)][_0x1cd5e9(0x207)](_0x156d3d),_0xc87a74[_0x1cd5e9(0x1ea)][_0x1cd5e9(0x1f1)]([_0x5cd91c,_0x255076]),_0xcee5cd[_0x1cd5e9(0x207)](_0xc87a74),_0x514b90;}[_0x1aa884(0x1aa)](_0x2dc809,_0x4166cd){const _0x43cc5d=_0x1aa884,_0x5741ac=new _0xb0c0f2(_0x2dc809),_0xe6d5e7=_0x5741ac[_0x43cc5d(0x206)];return _0x5741ac[_0x43cc5d(0x201)]=_0x4166cd,_0x5741ac[_0x43cc5d(0x1c1)]({'on':{'keydown':_0xe6d5e7['to'](_0x32be4a=>{const _0x41f727=_0x43cc5d;_0x41f727(0x1c8)==_0x32be4a[_0x41f727(0x1d1)]&&this[_0x41f727(0x1af)](_0x5741ac);})}}),_0x5741ac;}[_0x1aa884(0x1e7)](_0x4a37d8,_0x5f40a0){const _0x5dc659=_0x1aa884,_0x42a933=new _0x33fd9f(_0x4a37d8);return _0x42a933[_0x5dc659(0x1c5)]({'icon':_0x17814b,'withText':!0x1,'tooltip':_0x404df8(_0x4a37d8,_0x5dc659(0x1c4))}),_0x42a933[_0x5dc659(0x1c1)]({'attributes':{'class':[_0x5dc659(0x1f2)]}}),_0x42a933['on'](_0x5dc659(0x1b2),()=>{const _0x52ba00=_0x5dc659;this[_0x52ba00(0x1af)](_0x5f40a0);}),_0x42a933;}[_0x1aa884(0x1af)](_0xc291fd){const _0x2f44ca=_0x1aa884,_0x25ba40=_0xc291fd[_0x2f44ca(0x1e3)][_0x2f44ca(0x201)]||'';this[_0x2f44ca(0x1d0)][_0x2f44ca(0x1c2)]=_0x25ba40,this[_0x2f44ca(0x1f6)]=!0x1,this[_0x2f44ca(0x205)](_0x2f44ca(0x1e9),{'id':this['id'],'title':_0x25ba40});}[_0x1aa884(0x1b9)](_0x483454,_0x39110b){const _0x3825d4=_0x1aa884,_0xd71df2=new _0x33fd9f(_0x483454);return _0xd71df2[_0x3825d4(0x1c5)]({'icon':_0x44a0de,'withText':!0x1,'tooltip':_0x404df8(_0x483454,_0x3825d4(0x1fc))}),_0xd71df2[_0x3825d4(0x1c1)]({'attributes':{'class':[_0x3825d4(0x1cc)]}}),_0xd71df2['on'](_0x3825d4(0x1b2),()=>{const _0x576d53=_0x3825d4;this[_0x576d53(0x1f6)]=!0x1,_0x39110b[_0x576d53(0x201)]=this[_0x576d53(0x1d0)][_0x576d53(0x1c2)]||'',this[_0x576d53(0x205)](_0x576d53(0x1ae));}),_0xd71df2;}[_0x1aa884(0x1ee)](){const _0x53a979=_0x1aa884,_0x308e05=new _0x3a3a7d(_0x53a979(0x1b4));return _0x308e05[_0x53a979(0x1ab)]=!0x0,_0x308e05;}[_0x1aa884(0x1e6)](_0x443e94){const _0x522fee=_0x1aa884;return this[_0x522fee(0x1d0)]&&_0x522fee(0x1ef)==typeof this[_0x522fee(0x1d0)][_0x522fee(0x1c2)]&&this[_0x522fee(0x1d0)][_0x522fee(0x1c2)][_0x522fee(0x209)](_0x443e94)?{'title':!0x0}:null;}[_0x1aa884(0x203)](_0x12e40e){const _0x2ab86c=_0x1aa884;this[_0x2ab86c(0x1d0)][_0x2ab86c(0x203)](_0x12e40e);}}function _0x205a(){const _0x5ae45a=['ck-ai-chat-history__item-actions','ck-ai-chat-history__item-content','pinned','ck-ai-chat-history__item-title','ck-ai-chat-history__item--edit','setConversationPinned','ck-ai-chat-history__item-main-content','1987985GLSmwz','setTemplate','AI_CHAT_HISTORY_LOADING_RENAMING','listitem','AI_CHAT_HISTORY_EDIT_NAME','AI_CHAT_HISTORY_SHOW_MORE_ITEMS','then','element','4WZzlhA','13882980obVBml','isMatching','_createAcceptEditButtonView','selectConversation','editConversationTitle','items','ck-ai-loader__text','1313802lqILSR','ck-ai-chat-history__item-check','_createSpinnerView','string','locale','addMany','ck-confirm-view-submit','focus','_createPinButtonView','span','isEdit','ck-ai-chat-history__item','11lxXKMu','ck-ai-chat-history__item-date','1966911yxnwsk','AI_CHAT_HISTORY_LOADING_UNPINNING','AI_CHAT_HISTORY_CANCEL','_createCheckView','ck-ai-loader','actions','1530648lBmVMc','value','ck-ai-chat-history__item--active','highlightText','18rdBmht','fire','bindTemplate','add','_createMenuDropdownView','match','updateTitle','withText','mainContent','_createEditInputView','isVisible','click','ck-hidden','edit:cancel','_commitEditInputValue','AI_CHAT_HISTORY_REMOVE_CONFIRM','ck-ai-chat-history__item-check-container','execute','change:isEdit','tiny','buttonView','LOADING_LABELS','121ilugfb','AI_CHAT_HISTORY_PIN_BUTTON','_createCancelEditButtonView','children','panelView','ck-ai-chat-history__item-row','createCollection','AI_CHAT_HISTORY_LOADING_PINNING','panelPosition','loadingState','extendTemplate','text','AI_CHAT_HISTORY_REMOVE','AI_CHAT_HISTORY_ACCEPT','set','div','updateLoadingState','Enter','label','1695128qclqaV','clear','ck-confirm-view-cancel','bind','removeConversation','5198DyEjkR','_titleView','key','AI_CHAT_HISTORY_LOADING_REMOVING','isOn','showConfirm'];_0x205a=function(){return _0x5ae45a;};return _0x205a();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3198db=_0x1485;function _0x2a11(){const _0x195ef3=['361613LGBDiH','splice','_itemsListView','itemsViews','set','392168ASaAOG','36QrApIw','1168314xEnlRQ','removeItem','setTemplate','title','find','ck-ai-chat-history__section','div','2EXSwvS','510418KoUQqe','66zTREiE','1347945ciKpiv','1385960cEIzop','ck-ai-chat-history__section-title','1692644BcFSqS','length','isVisible','ck-hidden','bindTemplate','isMatching','highlightText','indexOf','getItem','addMany','items','remove','filter'];_0x2a11=function(){return _0x195ef3;};return _0x2a11();}(function(_0x513f2d,_0x24f7e1){const _0x5ab6e5=_0x1485,_0x5f218b=_0x513f2d();while(!![]){try{const _0x2e8d62=-parseInt(_0x5ab6e5(0x124))/0x1*(parseInt(_0x5ab6e5(0x125))/0x2)+parseInt(_0x5ab6e5(0x11d))/0x3+-parseInt(_0x5ab6e5(0x12a))/0x4+parseInt(_0x5ab6e5(0x127))/0x5+-parseInt(_0x5ab6e5(0x126))/0x6*(-parseInt(_0x5ab6e5(0x116))/0x7)+-parseInt(_0x5ab6e5(0x11b))/0x8*(-parseInt(_0x5ab6e5(0x11c))/0x9)+-parseInt(_0x5ab6e5(0x128))/0xa;if(_0x2e8d62===_0x24f7e1)break;else _0x5f218b['push'](_0x5f218b['shift']());}catch(_0x1e2f58){_0x5f218b['push'](_0x5f218b['shift']());}}}(_0x2a11,0x55bd1));function _0x1485(_0x332d5d,_0x34697d){const _0x2a11fe=_0x2a11();return _0x1485=function(_0x14859b,_0x17ec87){_0x14859b=_0x14859b-0x114;let _0x19ea0d=_0x2a11fe[_0x14859b];return _0x19ea0d;},_0x1485(_0x332d5d,_0x34697d);}import{ListItemView as _0x55bdab,View as _0x5224bf,ListView as _0x4ea0ac}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0x55bdab{[_0x3198db(0x120)];[_0x3198db(0x119)];[_0x3198db(0x118)];constructor(_0x443439,{title:_0xe1e3e3,items:_0x5e81d3}){const _0x426fe7=_0x3198db;super(_0x443439);const _0xcdaf9=this[_0x426fe7(0x12e)];this[_0x426fe7(0x11a)](_0x426fe7(0x12c),!0x0),this[_0x426fe7(0x120)]=_0xe1e3e3,this[_0x426fe7(0x119)]=_0x5e81d3;const _0x483906=new _0x5224bf(_0x443439);_0x483906[_0x426fe7(0x11f)]({'tag':_0x426fe7(0x123),'attributes':{'class':[_0x426fe7(0x129)]},'children':[this[_0x426fe7(0x120)]]}),this[_0x426fe7(0x118)]=new _0x4ea0ac(_0x443439),this[_0x426fe7(0x118)][_0x426fe7(0x134)][_0x426fe7(0x133)](this[_0x426fe7(0x119)]),this[_0x426fe7(0x11f)]({'tag':'li','attributes':{'class':[_0x426fe7(0x122),_0xcdaf9['if'](_0x426fe7(0x12c),_0x426fe7(0x12d),_0x261fb7=>!_0x261fb7)]},'children':[_0x483906,this[_0x426fe7(0x118)]]});}[_0x3198db(0x115)](_0x4ba667){const _0x1acc8f=_0x3198db,_0xa0111f=this[_0x1acc8f(0x119)][_0x1acc8f(0x12b)];let _0x849c43=0x0;for(const _0x4613f0 of this[_0x1acc8f(0x119)]){if(_0x4ba667){const _0x296520=_0x4613f0[_0x1acc8f(0x12f)](_0x4ba667);_0x4613f0[_0x1acc8f(0x12c)]=!!_0x296520,_0x4613f0[_0x1acc8f(0x130)](_0x4ba667);}else _0x4613f0[_0x1acc8f(0x12c)]=!0x0,_0x4613f0[_0x1acc8f(0x130)](null);_0x4613f0[_0x1acc8f(0x12c)]&&_0x849c43++;}return this[_0x1acc8f(0x12c)]=_0x849c43>0x0,{'resultsCount':_0x849c43,'totalItemsCount':_0xa0111f};}[_0x3198db(0x132)](_0x5740c5){const _0x509175=_0x3198db;return this[_0x509175(0x119)][_0x509175(0x121)](_0x1f06f5=>_0x1f06f5['id']===_0x5740c5);}[_0x3198db(0x11e)](_0x3961bd){const _0x2ab2f2=_0x3198db,_0x491830=this[_0x2ab2f2(0x119)][_0x2ab2f2(0x131)](_0x3961bd);-0x1!==_0x491830&&(this[_0x2ab2f2(0x119)][_0x2ab2f2(0x117)](_0x491830,0x1),this[_0x2ab2f2(0x118)][_0x2ab2f2(0x134)][_0x2ab2f2(0x114)](_0x3961bd));}}
23
+ function _0x4e52(_0x31c820,_0x3221c4){const _0x2cf295=_0x2cf2();return _0x4e52=function(_0x4e522e,_0x11b506){_0x4e522e=_0x4e522e-0xa6;let _0x37ad95=_0x2cf295[_0x4e522e];return _0x37ad95;},_0x4e52(_0x31c820,_0x3221c4);}const _0x464f54=_0x4e52;(function(_0x15f77c,_0x1f4b2d){const _0x23ef07=_0x4e52,_0x5b4e70=_0x15f77c();while(!![]){try{const _0x4e2969=-parseInt(_0x23ef07(0xc4))/0x1+-parseInt(_0x23ef07(0xbe))/0x2*(-parseInt(_0x23ef07(0xbf))/0x3)+parseInt(_0x23ef07(0xc8))/0x4*(-parseInt(_0x23ef07(0xaf))/0x5)+parseInt(_0x23ef07(0xb8))/0x6*(-parseInt(_0x23ef07(0xc5))/0x7)+-parseInt(_0x23ef07(0xbd))/0x8*(-parseInt(_0x23ef07(0xaa))/0x9)+-parseInt(_0x23ef07(0xb9))/0xa*(-parseInt(_0x23ef07(0xb4))/0xb)+parseInt(_0x23ef07(0xb2))/0xc;if(_0x4e2969===_0x1f4b2d)break;else _0x5b4e70['push'](_0x5b4e70['shift']());}catch(_0x406e44){_0x5b4e70['push'](_0x5b4e70['shift']());}}}(_0x2cf2,0xb58b2));import{ListItemView as _0xf39877,View as _0x53e44a,ListView as _0x7480b7}from'ckeditor5/src/ui.js';export class AIChatHistoryListView extends _0xf39877{[_0x464f54(0xb0)];[_0x464f54(0xad)];[_0x464f54(0xba)];constructor(_0x2418b2,{title:_0x3fc7be,items:_0x23fcc5}){const _0x1b324d=_0x464f54;super(_0x2418b2);const _0x138796=this[_0x1b324d(0xbc)];this[_0x1b324d(0xc6)](_0x1b324d(0xa6),!0x0),this[_0x1b324d(0xb0)]=_0x3fc7be,this[_0x1b324d(0xad)]=_0x23fcc5;const _0x4c9f0f=new _0x53e44a(_0x2418b2);_0x4c9f0f[_0x1b324d(0xae)]({'tag':_0x1b324d(0xb6),'attributes':{'class':[_0x1b324d(0xc3)]},'children':[this[_0x1b324d(0xb0)]]}),this[_0x1b324d(0xba)]=new _0x7480b7(_0x2418b2),this[_0x1b324d(0xba)][_0x1b324d(0xc1)][_0x1b324d(0xbb)](this[_0x1b324d(0xad)]),this[_0x1b324d(0xae)]({'tag':'li','attributes':{'class':[_0x1b324d(0xa9),_0x138796['if'](_0x1b324d(0xa6),_0x1b324d(0xb1),_0x443e1f=>!_0x443e1f)]},'children':[_0x4c9f0f,this[_0x1b324d(0xba)]]});}[_0x464f54(0xab)](_0x48e787){const _0x52a1c4=_0x464f54,_0x4c8141=this[_0x52a1c4(0xad)][_0x52a1c4(0xa7)];let _0x2ad279=0x0;for(const _0x2e7935 of this[_0x52a1c4(0xad)]){if(_0x48e787){const _0x36698a=_0x2e7935[_0x52a1c4(0xac)](_0x48e787);_0x2e7935[_0x52a1c4(0xa6)]=!!_0x36698a,_0x2e7935[_0x52a1c4(0xb7)](_0x48e787);}else _0x2e7935[_0x52a1c4(0xa6)]=!0x0,_0x2e7935[_0x52a1c4(0xb7)](null);_0x2e7935[_0x52a1c4(0xa6)]&&_0x2ad279++;}return this[_0x52a1c4(0xa6)]=_0x2ad279>0x0,{'resultsCount':_0x2ad279,'totalItemsCount':_0x4c8141};}[_0x464f54(0xc7)](_0x267ed1){const _0x47c1b1=_0x464f54;return this[_0x47c1b1(0xad)][_0x47c1b1(0xc0)](_0x19f2ee=>_0x19f2ee['id']===_0x267ed1);}[_0x464f54(0xc2)](_0x565553){const _0x421a2f=_0x464f54,_0x13cf9f=this[_0x421a2f(0xad)][_0x421a2f(0xb3)](_0x565553);-0x1!==_0x13cf9f&&(this[_0x421a2f(0xad)][_0x421a2f(0xa8)](_0x13cf9f,0x1),this[_0x421a2f(0xba)][_0x421a2f(0xc1)][_0x421a2f(0xb5)](_0x565553));}}function _0x2cf2(){const _0x5367bb=['4zaHmKo','isVisible','length','splice','ck-ai-chat-history__section','12201831WfgFeH','filter','isMatching','itemsViews','setTemplate','4485815GXBOeP','title','ck-hidden','2345724DarIIy','indexOf','1625921JpOctP','remove','div','highlightText','541722bhnsJs','10VCcIAA','_itemsListView','addMany','bindTemplate','8cvJOgM','1943042fXZlOQ','3GKQyIK','find','items','removeItem','ck-ai-chat-history__section-title','126933mxhWhD','70HJtWDy','set','getItem'];_0x2cf2=function(){return _0x5367bb;};return _0x2cf2();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e282c=_0x45ab;(function(_0x3ef094,_0x567bb5){const _0x41b99e=_0x45ab,_0xabf7f8=_0x3ef094();while(!![]){try{const _0x3c414a=-parseInt(_0x41b99e(0x184))/0x1*(-parseInt(_0x41b99e(0x183))/0x2)+-parseInt(_0x41b99e(0x179))/0x3*(parseInt(_0x41b99e(0x185))/0x4)+parseInt(_0x41b99e(0x180))/0x5*(parseInt(_0x41b99e(0x177))/0x6)+-parseInt(_0x41b99e(0x186))/0x7*(parseInt(_0x41b99e(0x17e))/0x8)+parseInt(_0x41b99e(0x181))/0x9+-parseInt(_0x41b99e(0x17d))/0xa+parseInt(_0x41b99e(0x178))/0xb*(parseInt(_0x41b99e(0x17b))/0xc);if(_0x3c414a===_0x567bb5)break;else _0xabf7f8['push'](_0xabf7f8['shift']());}catch(_0x238002){_0xabf7f8['push'](_0xabf7f8['shift']());}}}(_0x4578,0xe74f0));function _0x45ab(_0x433151,_0x301cf){const _0x4578cf=_0x4578();return _0x45ab=function(_0x45ab92,_0x57ec1c){_0x45ab92=_0x45ab92-0x177;let _0x525652=_0x4578cf[_0x45ab92];return _0x525652;},_0x45ab(_0x433151,_0x301cf);}import{ListView as _0x4db15b}from'ckeditor5/src/ui.js';function _0x4578(){const _0x1652c4=['8QpXzfy','258419RYkJic','4bPCQWG','204022gCTNsl','sections','addMany','4875918xueSyN','22jiVpeO','2944533UZCqjj','ck-ai-chat-history__sections','5079372rImVAx','items','7412410PwdsJO','264QxhWOF','filter','10mEAveZ','1138194wqoTcL','extendTemplate'];_0x4578=function(){return _0x1652c4;};return _0x4578();}export class AIChatHistorySectionListView extends _0x4db15b{[_0x1e282c(0x187)];constructor(_0x5bbc04,_0x2d7f98){const _0x5c4d44=_0x1e282c;super(_0x5bbc04),this[_0x5c4d44(0x187)]=_0x2d7f98,this[_0x5c4d44(0x17c)][_0x5c4d44(0x188)](this[_0x5c4d44(0x187)]),this[_0x5c4d44(0x182)]({'attributes':{'class':[_0x5c4d44(0x17a)]}});}[_0x1e282c(0x17f)](_0x2aec2d){const _0x71daa6=_0x1e282c;let _0x1f369a=0x0,_0x3879d2=0x0;for(const _0x3546be of this[_0x71daa6(0x187)]){const {resultsCount:_0x185687,totalItemsCount:_0x54ac62}=_0x3546be[_0x71daa6(0x17f)](_0x2aec2d);_0x1f369a+=_0x185687,_0x3879d2+=_0x54ac62;}return{'resultsCount':_0x1f369a,'totalItemsCount':_0x3879d2};}}
23
+ const _0x5ebb4c=_0x3383;function _0x3383(_0x5b2950,_0x8061f){const _0x49cab9=_0x49ca();return _0x3383=function(_0x3383e9,_0x3a00d9){_0x3383e9=_0x3383e9-0x64;let _0x57a35a=_0x49cab9[_0x3383e9];return _0x57a35a;},_0x3383(_0x5b2950,_0x8061f);}(function(_0x2f41f9,_0x1dd362){const _0x18c9c3=_0x3383,_0x181ee3=_0x2f41f9();while(!![]){try{const _0x4b2f37=-parseInt(_0x18c9c3(0x68))/0x1+parseInt(_0x18c9c3(0x6f))/0x2*(-parseInt(_0x18c9c3(0x6e))/0x3)+-parseInt(_0x18c9c3(0x64))/0x4+-parseInt(_0x18c9c3(0x6d))/0x5+-parseInt(_0x18c9c3(0x72))/0x6*(parseInt(_0x18c9c3(0x67))/0x7)+parseInt(_0x18c9c3(0x65))/0x8+-parseInt(_0x18c9c3(0x69))/0x9*(-parseInt(_0x18c9c3(0x6c))/0xa);if(_0x4b2f37===_0x1dd362)break;else _0x181ee3['push'](_0x181ee3['shift']());}catch(_0x190946){_0x181ee3['push'](_0x181ee3['shift']());}}}(_0x49ca,0x2d2d7));function _0x49ca(){const _0x1ddd63=['ck-ai-chat-history__sections','6GjxNXy','extendTemplate','415984iSHczf','697848aMMQBB','filter','1966741GItqwS','308648KNtWkE','837ioIVhC','addMany','items','95750qqSnMZ','137490TYYiUL','57MqsIJn','7532XbDYDn','sections'];_0x49ca=function(){return _0x1ddd63;};return _0x49ca();}import{ListView as _0x815b37}from'ckeditor5/src/ui.js';export class AIChatHistorySectionListView extends _0x815b37{[_0x5ebb4c(0x70)];constructor(_0x232637,_0x13c58b){const _0x18ba0a=_0x5ebb4c;super(_0x232637),this[_0x18ba0a(0x70)]=_0x13c58b,this[_0x18ba0a(0x6b)][_0x18ba0a(0x6a)](this[_0x18ba0a(0x70)]),this[_0x18ba0a(0x73)]({'attributes':{'class':[_0x18ba0a(0x71)]}});}[_0x5ebb4c(0x66)](_0x3c0e67){const _0xf2b80d=_0x5ebb4c;let _0x4f0ae0=0x0,_0x35de16=0x0;for(const _0x2fbbd3 of this[_0xf2b80d(0x70)]){const {resultsCount:_0x21d3fd,totalItemsCount:_0xa82058}=_0x2fbbd3[_0xf2b80d(0x66)](_0x3c0e67);_0x4f0ae0+=_0x21d3fd,_0x35de16+=_0xa82058;}return{'resultsCount':_0x4f0ae0,'totalItemsCount':_0x35de16};}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51f3ab=_0x2c5b;(function(_0x4dbc3e,_0xec6521){const _0x42e062=_0x2c5b,_0x36d5b7=_0x4dbc3e();while(!![]){try{const _0x51f3aa=-parseInt(_0x42e062(0x212))/0x1*(-parseInt(_0x42e062(0x1fd))/0x2)+-parseInt(_0x42e062(0x1d9))/0x3+parseInt(_0x42e062(0x20a))/0x4*(-parseInt(_0x42e062(0x1d0))/0x5)+-parseInt(_0x42e062(0x1df))/0x6+parseInt(_0x42e062(0x1f2))/0x7*(parseInt(_0x42e062(0x1db))/0x8)+-parseInt(_0x42e062(0x1d4))/0x9*(parseInt(_0x42e062(0x1fc))/0xa)+-parseInt(_0x42e062(0x1ce))/0xb*(-parseInt(_0x42e062(0x1e3))/0xc);if(_0x51f3aa===_0xec6521)break;else _0x36d5b7['push'](_0x36d5b7['shift']());}catch(_0x46e86f){_0x36d5b7['push'](_0x36d5b7['shift']());}}}(_0x3cee,0xdf54d));import{View as _0x5a3873,SearchTextView as _0x4d4b16,FormHeaderView as _0x2f2620,ButtonView as _0x425e13}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x34178d,IconCancel as _0x5a88d0,IconPlus as _0x2680cd}from'ckeditor5/src/icons.js';function _0x3cee(){const _0x29a4fd=['isMaximized','change:errorMessage','setTemplate','splice','remove','extendTemplate','ck-ai-chat__start-conversation','itemsViews','ck-ai-chat-history','ck-ai-header\x20ck-ai-header_history','ck-reset_all','ck-ai-chat-history__empty-message','addMany','updateItemTitle','ck-rounded-corners','79079CVUQRu','AI_CHAT_HISTORY_SEARCH_LABEL','17905ThNcJz','ck-ai-chat-error','children','execute','27eKrgVv','render','ck-ai-chat-history__empty','_createErrorView','_createSearchView','796464OkckUh','fieldView','808QMQxGx','items','sections','value','4100238XfjOYT','change:hasItems','errorMessage','resizeButton','1068NVGnRd','emptyView','bindTemplate','searchView','change:isLoading','delegate','search','element','isSearchViewVisible','div','_updateViewVisibility','ltr','_createEmptyStateView','getItem','openChat','63707vOJkij','indexOf','locale','skeletonView','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','add','title','push','some','2003470HiakqZ','6lLBITA','isEmptyViewVisible','isVisible','errorView','aiHistory','AI_CHAT_HISTORY_EMPTY_MESSAGE','_refreshSearch','isLoading','_createListItemViews','updateTitle','length','ck-hidden','hasItems','1004PFTYzW','removeItem','AI_CHAT_LABEL_NEW_CHAT','updateHistoryItemsWithCategories','fire','set','ck-ai-chat-error__dismiss-button','sectionsView','601492jFJiAb','ck-ai-chat-history__content','updateItemLoadingState','updateLoadingState','clear','AI_CHAT_HISTORY_HEADING','queryView','_createSkeletonView','removeHistoryItem','bind'];_0x3cee=function(){return _0x29a4fd;};return _0x3cee();}import{AIChatHistorySectionListView as _0x5122e6}from'./aichathistorysectionlistview.js';import{AIChatHistoryListView as _0x26d34e}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x359a6f}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0xd7faff}from'../aichathistoryui.js';import{AISkeletonView as _0x28fa08,SKELETON_DEFINITIONS as _0x3ea2cc}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x14160e}from'../../aicore/utils/createresizebutton.js';function _0x2c5b(_0x5295a4,_0x4be560){const _0x3cee68=_0x3cee();return _0x2c5b=function(_0x2c5b94,_0x49a087){_0x2c5b94=_0x2c5b94-0x1ce;let _0x25786c=_0x3cee68[_0x2c5b94];return _0x25786c;},_0x2c5b(_0x5295a4,_0x4be560);}import{getTranslation as _0xa2f439}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x5a3873{[_0x51f3ab(0x1e6)];[_0x51f3ab(0x200)];[_0x51f3ab(0x1f5)];[_0x51f3ab(0x1e4)];[_0x51f3ab(0x211)];[_0x51f3ab(0x1e2)];constructor(_0x656f0e,_0x47452b){const _0x39e3cd=_0x51f3ab;super(_0x656f0e),this[_0x39e3cd(0x20f)](_0x39e3cd(0x209),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x204),!0x0),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1e1),''),this[_0x39e3cd(0x20f)](_0x39e3cd(0x21c),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1eb),!0x1),this[_0x39e3cd(0x20f)](_0x39e3cd(0x1fe),!0x1);const _0x531f16=new _0x2f2620(_0x656f0e,{'label':_0xa2f439(_0x656f0e,_0x39e3cd(0x217)),'icon':_0x34178d,'class':_0x39e3cd(0x225)});_0x47452b&&(this[_0x39e3cd(0x1e2)]=_0x14160e(_0x656f0e,this),_0x531f16[_0x39e3cd(0x1d2)][_0x39e3cd(0x1f8)](this[_0x39e3cd(0x1e2)])),this[_0x39e3cd(0x211)]=new _0x5122e6(_0x656f0e,[]),this[_0x39e3cd(0x211)][_0x39e3cd(0x1e8)](..._0xd7faff)['to'](this),this[_0x39e3cd(0x200)]=this[_0x39e3cd(0x1d7)](),this[_0x39e3cd(0x1f5)]=this[_0x39e3cd(0x219)](),this[_0x39e3cd(0x1e4)]=this[_0x39e3cd(0x1ef)](),this[_0x39e3cd(0x1e6)]=this[_0x39e3cd(0x1d8)](),this['on'](_0x39e3cd(0x1e7),()=>this[_0x39e3cd(0x1ed)]()),this['on'](_0x39e3cd(0x1e0),()=>this[_0x39e3cd(0x1ed)]()),this['on'](_0x39e3cd(0x21d),()=>this[_0x39e3cd(0x1ed)]()),this[_0x39e3cd(0x21e)]({'tag':_0x39e3cd(0x1ec),'attributes':{'class':['ck',_0x39e3cd(0x226),_0x39e3cd(0x224),_0x39e3cd(0x22a)],'dir':_0x39e3cd(0x1ee)},'children':[_0x531f16,{'tag':_0x39e3cd(0x1ec),'attributes':{'class':[_0x39e3cd(0x213)]},'children':[this[_0x39e3cd(0x1f5)],this[_0x39e3cd(0x200)],this[_0x39e3cd(0x1e4)],this[_0x39e3cd(0x1e6)]]}]});}[_0x51f3ab(0x1ed)](){const _0x4b7ed2=_0x51f3ab;this[_0x4b7ed2(0x1eb)]=!this[_0x4b7ed2(0x204)]&&this[_0x4b7ed2(0x209)]&&!this[_0x4b7ed2(0x1e1)],this[_0x4b7ed2(0x1fe)]=!this[_0x4b7ed2(0x204)]&&!this[_0x4b7ed2(0x209)]&&!this[_0x4b7ed2(0x1e1)];}[_0x51f3ab(0x1d8)](){const _0xec066e=_0x51f3ab,_0x489ab6=new _0x4d4b16(this[_0xec066e(0x1f4)],{'filteredView':this[_0xec066e(0x211)],'queryView':{'label':_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1cf))},'infoView':{'text':{'notFound':{'primary':_0x26a6fb=>_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1f7),_0x26a6fb),'secondary':_0xa2f439(this[_0xec066e(0x1f4)],_0xec066e(0x1f6))}}}});return _0x489ab6['on'](_0xec066e(0x1d5),()=>{const _0x2e9d66=_0xec066e;this[_0x2e9d66(0x1e6)][_0x2e9d66(0x1d2)][_0x2e9d66(0x1f8)](this[_0x2e9d66(0x200)],0x1);}),_0x489ab6[_0xec066e(0x221)]({'attributes':{'class':[this[_0xec066e(0x1e5)]['if'](_0xec066e(0x1eb),_0xec066e(0x208),_0x5a41af=>!_0x5a41af)]}}),_0x489ab6;}[_0x51f3ab(0x219)](){const _0x1cb07c=_0x51f3ab,_0x3b5050=new _0x28fa08(this[_0x1cb07c(0x1f4)],_0x3ea2cc[_0x1cb07c(0x201)]);return _0x3b5050[_0x1cb07c(0x221)]({'attributes':{'class':[this[_0x1cb07c(0x1e5)]['if'](_0x1cb07c(0x204),_0x1cb07c(0x208),_0x1c3ebe=>!_0x1c3ebe)]}}),_0x3b5050;}[_0x51f3ab(0x1d7)](){const _0x18f7be=_0x51f3ab,_0x2bcd9a=new _0x5a3873(this[_0x18f7be(0x1f4)]),_0x56e3ad=new _0x425e13(this[_0x18f7be(0x1f4)]);return _0x56e3ad[_0x18f7be(0x20f)]({'withText':!0x1,'icon':_0x5a88d0,'class':_0x18f7be(0x210)}),_0x56e3ad[_0x18f7be(0x21b)](_0x18f7be(0x1ff))['to'](this,_0x18f7be(0x209),_0x4f3371=>!!_0x4f3371),_0x56e3ad['on'](_0x18f7be(0x1d3),()=>{const _0x5a8817=_0x18f7be;this[_0x5a8817(0x1e1)]='';}),_0x2bcd9a[_0x18f7be(0x21e)]({'tag':_0x18f7be(0x1ec),'attributes':{'class':['ck',_0x18f7be(0x1d1),this[_0x18f7be(0x1e5)]['if'](_0x18f7be(0x1e1),_0x18f7be(0x208),_0x45be5c=>!_0x45be5c)]},'children':[{'tag':'p','children':[{'text':this[_0x18f7be(0x1e5)]['to'](_0x18f7be(0x1e1))}]},_0x56e3ad]}),_0x2bcd9a;}[_0x51f3ab(0x1ef)](){const _0x15011d=_0x51f3ab,_0x1c5bd8=new _0x425e13(this[_0x15011d(0x1f4)]);_0x1c5bd8[_0x15011d(0x20f)]({'label':_0xa2f439(this[_0x15011d(0x1f4)],_0x15011d(0x20c)),'withText':!0x0,'icon':_0x2680cd,'class':_0x15011d(0x222)}),_0x1c5bd8['on'](_0x15011d(0x1d3),()=>{const _0x35c76e=_0x15011d;this[_0x35c76e(0x20e)](_0x35c76e(0x1f1));});const _0x49e0c6=new _0x5a3873(this[_0x15011d(0x1f4)]);return _0x49e0c6[_0x15011d(0x21e)]({'tag':_0x15011d(0x1ec),'attributes':{'class':[_0x15011d(0x1d6),this[_0x15011d(0x1e5)]['if'](_0x15011d(0x1fe),_0x15011d(0x208),_0x24b482=>!_0x24b482)]},'children':[{'tag':'p','attributes':{'class':[_0x15011d(0x227)]},'children':[_0xa2f439(this[_0x15011d(0x1f4)],_0x15011d(0x202))]},_0x1c5bd8]}),_0x49e0c6;}[_0x51f3ab(0x205)](_0x1959b7,_0x439a19){const _0x348a31=_0x51f3ab,_0x31e896=[];for(const _0x20428a of _0x1959b7){const _0xc25e4a=new _0x359a6f(_0x439a19,_0x20428a);_0xc25e4a[_0x348a31(0x1e8)](..._0xd7faff)['to'](this),_0x31e896[_0x348a31(0x1fa)](_0xc25e4a);}return _0x31e896;}[_0x51f3ab(0x20d)](_0x1acd0a){const _0x590129=_0x51f3ab,_0x58e5d3=this[_0x590129(0x1f4)]||'en',_0x2d4a26=[];for(const _0x55567b of _0x1acd0a){const _0x14b85b=this[_0x590129(0x205)](_0x55567b[_0x590129(0x1dc)],_0x58e5d3);_0x2d4a26[_0x590129(0x1fa)](new _0x26d34e(_0x58e5d3,{'title':_0x55567b[_0x590129(0x1f9)],'items':_0x14b85b}));}this[_0x590129(0x211)][_0x590129(0x1dd)]=_0x2d4a26,this[_0x590129(0x211)][_0x590129(0x1dc)][_0x590129(0x216)](),this[_0x590129(0x211)][_0x590129(0x1dc)][_0x590129(0x228)](_0x2d4a26),this[_0x590129(0x209)]=_0x1acd0a[_0x590129(0x1fb)](_0x174d71=>_0x174d71[_0x590129(0x1dc)][_0x590129(0x207)]>0x0),this[_0x590129(0x203)]();}[_0x51f3ab(0x21a)](_0x3770ff){const _0x931c8f=_0x51f3ab;for(const _0x2e38ae of this[_0x931c8f(0x211)][_0x931c8f(0x1dd)]){const _0x233314=_0x2e38ae[_0x931c8f(0x1f0)](_0x3770ff);if(_0x233314){if(_0x2e38ae[_0x931c8f(0x20b)](_0x233314),0x0===_0x2e38ae[_0x931c8f(0x223)][_0x931c8f(0x207)]){const _0x501040=this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x1f3)](_0x2e38ae);-0x1!==_0x501040&&(this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x21f)](_0x501040,0x1),this[_0x931c8f(0x211)][_0x931c8f(0x1dc)][_0x931c8f(0x220)](_0x2e38ae));}this[_0x931c8f(0x209)]=this[_0x931c8f(0x211)][_0x931c8f(0x1dd)][_0x931c8f(0x207)]>0x0,this[_0x931c8f(0x203)]();break;}}}[_0x51f3ab(0x229)](_0x242603,_0x7291ba){const _0x1a3c96=_0x51f3ab;for(const _0x2708fc of this[_0x1a3c96(0x211)][_0x1a3c96(0x1dd)]){const _0x459aef=_0x2708fc[_0x1a3c96(0x1f0)](_0x242603);if(_0x459aef){_0x459aef[_0x1a3c96(0x206)](_0x7291ba);break;}}}[_0x51f3ab(0x214)](_0x355fee,_0x35b3bd,_0x574a28){const _0x449cc3=_0x51f3ab;for(const _0x1f8b83 of this[_0x449cc3(0x211)][_0x449cc3(0x1dd)]){const _0x139db0=_0x1f8b83[_0x449cc3(0x1f0)](_0x355fee);if(_0x139db0){_0x139db0[_0x449cc3(0x215)](_0x35b3bd,_0x574a28);break;}}}[_0x51f3ab(0x203)](){const _0x3e7bb1=_0x51f3ab;if(this[_0x3e7bb1(0x209)]){const _0x333089=this[_0x3e7bb1(0x1e6)][_0x3e7bb1(0x218)][_0x3e7bb1(0x1da)]?.[_0x3e7bb1(0x1ea)]?.[_0x3e7bb1(0x1de)]||'';this[_0x3e7bb1(0x1e6)][_0x3e7bb1(0x1e9)](_0x333089);}}}
23
+ const _0x449955=_0x3790;(function(_0x3cc9fc,_0x5d6bdd){const _0x1b30ee=_0x3790,_0x26143d=_0x3cc9fc();while(!![]){try{const _0x2994cd=parseInt(_0x1b30ee(0x1b2))/0x1*(parseInt(_0x1b30ee(0x19e))/0x2)+-parseInt(_0x1b30ee(0x19c))/0x3*(-parseInt(_0x1b30ee(0x1c6))/0x4)+parseInt(_0x1b30ee(0x1b9))/0x5+parseInt(_0x1b30ee(0x1bb))/0x6*(parseInt(_0x1b30ee(0x178))/0x7)+-parseInt(_0x1b30ee(0x17f))/0x8*(parseInt(_0x1b30ee(0x184))/0x9)+-parseInt(_0x1b30ee(0x1bf))/0xa+parseInt(_0x1b30ee(0x19b))/0xb*(parseInt(_0x1b30ee(0x1a9))/0xc);if(_0x2994cd===_0x5d6bdd)break;else _0x26143d['push'](_0x26143d['shift']());}catch(_0x15b1ac){_0x26143d['push'](_0x26143d['shift']());}}}(_0x47ee,0xa50a5));function _0x3790(_0x464cf1,_0x5c5ad5){const _0x47ee88=_0x47ee();return _0x3790=function(_0x379000,_0x1856b6){_0x379000=_0x379000-0x178;let _0x1d7a19=_0x47ee88[_0x379000];return _0x1d7a19;},_0x3790(_0x464cf1,_0x5c5ad5);}import{View as _0x2b3381,SearchTextView as _0xd73dad,FormHeaderView as _0x1eaaf5,ButtonView as _0x486c4a}from'ckeditor5/src/ui.js';import{IconAIHistory as _0x4a6f62,IconCancel as _0x3590b1,IconPlus as _0x3eba57}from'ckeditor5/src/icons.js';import{AIChatHistorySectionListView as _0x2609a4}from'./aichathistorysectionlistview.js';function _0x47ee(){const _0x54d2e9=['isMaximized','fieldView','change:errorMessage','div','AI_CHAT_HISTORY_SEARCH_LABEL','4bMXEJL','ck-rounded-corners','_createSearchView','errorView','hasItems','remove','openChat','bind','ltr','updateLoadingState','search','addMany','AI_CHAT_HISTORY_EMPTY_MESSAGE','change:hasItems','isVisible','8761781JSYXiM','bindTemplate','locale','removeHistoryItem','ck-ai-chat-history__empty','add','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_PRIMARY','288pYZekI','_createErrorView','errorMessage','itemsViews','aiHistory','278811JZCKDT','delegate','updateItemLoadingState','ck-ai-header\x20ck-ai-header_history','ck-hidden','ck-ai-chat__start-conversation','children','ck-ai-chat-error','isEmptyViewVisible','render','AI_CHAT_LABEL_NEW_CHAT','execute','value','ck-ai-chat-history','updateItemTitle','items','clear','ck-ai-chat-error__dismiss-button','fire','ck-reset_all','AI_CHAT_HISTORY_SEARCH_NOT_FOUND_SECONDARY','updateTitle','length','2442737IxjDtH','684837ZAEzjt','queryView','14gSvYBf','isSearchViewVisible','indexOf','set','ck-ai-chat-history__empty-message','_createListItemViews','_refreshSearch','element','updateHistoryItemsWithCategories','change:isLoading','skeletonView','24DIowEQ','_createSkeletonView','removeItem','splice','some','extendTemplate','_updateViewVisibility','ck-ai-chat-history__content','sections','122427qwbdYI','resizeButton','searchView','getItem','emptyView','_createEmptyStateView','isLoading','119550WrLRKo','setTemplate','6QMvlHF','AI_CHAT_HISTORY_HEADING','title','push','10137460YoIDSZ','sectionsView'];_0x47ee=function(){return _0x54d2e9;};return _0x47ee();}import{AIChatHistoryListView as _0x16cbcb}from'./aichathistorylistview.js';import{AIChatHistoryListItemView as _0x348538}from'./aichathistorylistitemview.js';import{AI_CHAT_HISTORY_UI_EVENT_NAMES as _0x458124}from'../aichathistoryui.js';import{AISkeletonView as _0x41e7b5,SKELETON_DEFINITIONS as _0x2ca309}from'../../aicore/ui/aiskeleton.js';import{createResizeButton as _0x44ff7f}from'../../aicore/utils/createresizebutton.js';import{getTranslation as _0x269980}from'../../aicore/utils/common-translations.js';export class AIChatHistoryView extends _0x2b3381{[_0x449955(0x1b4)];[_0x449955(0x1c9)];[_0x449955(0x1a8)];[_0x449955(0x1b6)];[_0x449955(0x1c0)];[_0x449955(0x1b3)];constructor(_0x173123,_0x29d179){const _0x12a377=_0x449955;super(_0x173123),this[_0x12a377(0x1a1)](_0x12a377(0x1ca),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x1b8),!0x0),this[_0x12a377(0x1a1)](_0x12a377(0x181),''),this[_0x12a377(0x1a1)](_0x12a377(0x1c1),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x19f),!0x1),this[_0x12a377(0x1a1)](_0x12a377(0x18c),!0x1);const _0x5d7888=new _0x1eaaf5(_0x173123,{'label':_0x269980(_0x173123,_0x12a377(0x1bc)),'icon':_0x4a6f62,'class':_0x12a377(0x187)});_0x29d179&&(this[_0x12a377(0x1b3)]=_0x44ff7f(_0x173123,this),_0x5d7888[_0x12a377(0x18a)][_0x12a377(0x17d)](this[_0x12a377(0x1b3)])),this[_0x12a377(0x1c0)]=new _0x2609a4(_0x173123,[]),this[_0x12a377(0x1c0)][_0x12a377(0x185)](..._0x458124)['to'](this),this[_0x12a377(0x1c9)]=this[_0x12a377(0x180)](),this[_0x12a377(0x1a8)]=this[_0x12a377(0x1aa)](),this[_0x12a377(0x1b6)]=this[_0x12a377(0x1b7)](),this[_0x12a377(0x1b4)]=this[_0x12a377(0x1c8)](),this['on'](_0x12a377(0x1a7),()=>this[_0x12a377(0x1af)]()),this['on'](_0x12a377(0x1d3),()=>this[_0x12a377(0x1af)]()),this['on'](_0x12a377(0x1c3),()=>this[_0x12a377(0x1af)]()),this[_0x12a377(0x1ba)]({'tag':_0x12a377(0x1c4),'attributes':{'class':['ck',_0x12a377(0x197),_0x12a377(0x191),_0x12a377(0x1c7)],'dir':_0x12a377(0x1ce)},'children':[_0x5d7888,{'tag':_0x12a377(0x1c4),'attributes':{'class':[_0x12a377(0x1b0)]},'children':[this[_0x12a377(0x1a8)],this[_0x12a377(0x1c9)],this[_0x12a377(0x1b6)],this[_0x12a377(0x1b4)]]}]});}[_0x449955(0x1af)](){const _0x25decc=_0x449955;this[_0x25decc(0x19f)]=!this[_0x25decc(0x1b8)]&&this[_0x25decc(0x1ca)]&&!this[_0x25decc(0x181)],this[_0x25decc(0x18c)]=!this[_0x25decc(0x1b8)]&&!this[_0x25decc(0x1ca)]&&!this[_0x25decc(0x181)];}[_0x449955(0x1c8)](){const _0x478069=_0x449955,_0x2538c3=new _0xd73dad(this[_0x478069(0x17a)],{'filteredView':this[_0x478069(0x1c0)],'queryView':{'label':_0x269980(this[_0x478069(0x17a)],_0x478069(0x1c5))},'infoView':{'text':{'notFound':{'primary':_0x35075f=>_0x269980(this[_0x478069(0x17a)],_0x478069(0x17e),_0x35075f),'secondary':_0x269980(this[_0x478069(0x17a)],_0x478069(0x198))}}}});return _0x2538c3['on'](_0x478069(0x18d),()=>{const _0x53c016=_0x478069;this[_0x53c016(0x1b4)][_0x53c016(0x18a)][_0x53c016(0x17d)](this[_0x53c016(0x1c9)],0x1);}),_0x2538c3[_0x478069(0x1ae)]({'attributes':{'class':[this[_0x478069(0x179)]['if'](_0x478069(0x19f),_0x478069(0x188),_0x84a322=>!_0x84a322)]}}),_0x2538c3;}[_0x449955(0x1aa)](){const _0x18da1d=_0x449955,_0x189526=new _0x41e7b5(this[_0x18da1d(0x17a)],_0x2ca309[_0x18da1d(0x183)]);return _0x189526[_0x18da1d(0x1ae)]({'attributes':{'class':[this[_0x18da1d(0x179)]['if'](_0x18da1d(0x1b8),_0x18da1d(0x188),_0x337480=>!_0x337480)]}}),_0x189526;}[_0x449955(0x180)](){const _0x1fc9f5=_0x449955,_0x1891b4=new _0x2b3381(this[_0x1fc9f5(0x17a)]),_0x24e396=new _0x486c4a(this[_0x1fc9f5(0x17a)]);return _0x24e396[_0x1fc9f5(0x1a1)]({'withText':!0x1,'icon':_0x3590b1,'class':_0x1fc9f5(0x195)}),_0x24e396[_0x1fc9f5(0x1cd)](_0x1fc9f5(0x1d4))['to'](this,_0x1fc9f5(0x1ca),_0x6c361e=>!!_0x6c361e),_0x24e396['on'](_0x1fc9f5(0x18f),()=>{const _0x4c9f55=_0x1fc9f5;this[_0x4c9f55(0x181)]='';}),_0x1891b4[_0x1fc9f5(0x1ba)]({'tag':_0x1fc9f5(0x1c4),'attributes':{'class':['ck',_0x1fc9f5(0x18b),this[_0x1fc9f5(0x179)]['if'](_0x1fc9f5(0x181),_0x1fc9f5(0x188),_0x1d9cf5=>!_0x1d9cf5)]},'children':[{'tag':'p','children':[{'text':this[_0x1fc9f5(0x179)]['to'](_0x1fc9f5(0x181))}]},_0x24e396]}),_0x1891b4;}[_0x449955(0x1b7)](){const _0x56d7b6=_0x449955,_0x152594=new _0x486c4a(this[_0x56d7b6(0x17a)]);_0x152594[_0x56d7b6(0x1a1)]({'label':_0x269980(this[_0x56d7b6(0x17a)],_0x56d7b6(0x18e)),'withText':!0x0,'icon':_0x3eba57,'class':_0x56d7b6(0x189)}),_0x152594['on'](_0x56d7b6(0x18f),()=>{const _0x4c6ac2=_0x56d7b6;this[_0x4c6ac2(0x196)](_0x4c6ac2(0x1cc));});const _0x579ef7=new _0x2b3381(this[_0x56d7b6(0x17a)]);return _0x579ef7[_0x56d7b6(0x1ba)]({'tag':_0x56d7b6(0x1c4),'attributes':{'class':[_0x56d7b6(0x17c),this[_0x56d7b6(0x179)]['if'](_0x56d7b6(0x18c),_0x56d7b6(0x188),_0x8ffa0c=>!_0x8ffa0c)]},'children':[{'tag':'p','attributes':{'class':[_0x56d7b6(0x1a2)]},'children':[_0x269980(this[_0x56d7b6(0x17a)],_0x56d7b6(0x1d2))]},_0x152594]}),_0x579ef7;}[_0x449955(0x1a3)](_0x565010,_0x1f7012){const _0x96a1f1=_0x449955,_0x346bbd=[];for(const _0xb7df26 of _0x565010){const _0x5ca329=new _0x348538(_0x1f7012,_0xb7df26);_0x5ca329[_0x96a1f1(0x185)](..._0x458124)['to'](this),_0x346bbd[_0x96a1f1(0x1be)](_0x5ca329);}return _0x346bbd;}[_0x449955(0x1a6)](_0xf62f3c){const _0x4f65a7=_0x449955,_0x107ef4=this[_0x4f65a7(0x17a)]||'en',_0x497027=[];for(const _0x13a738 of _0xf62f3c){const _0x4b1fd1=this[_0x4f65a7(0x1a3)](_0x13a738[_0x4f65a7(0x193)],_0x107ef4);_0x497027[_0x4f65a7(0x1be)](new _0x16cbcb(_0x107ef4,{'title':_0x13a738[_0x4f65a7(0x1bd)],'items':_0x4b1fd1}));}this[_0x4f65a7(0x1c0)][_0x4f65a7(0x1b1)]=_0x497027,this[_0x4f65a7(0x1c0)][_0x4f65a7(0x193)][_0x4f65a7(0x194)](),this[_0x4f65a7(0x1c0)][_0x4f65a7(0x193)][_0x4f65a7(0x1d1)](_0x497027),this[_0x4f65a7(0x1ca)]=_0xf62f3c[_0x4f65a7(0x1ad)](_0x1a2390=>_0x1a2390[_0x4f65a7(0x193)][_0x4f65a7(0x19a)]>0x0),this[_0x4f65a7(0x1a4)]();}[_0x449955(0x17b)](_0x29e9d2){const _0x4747fb=_0x449955;for(const _0x375993 of this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)]){const _0x5b2576=_0x375993[_0x4747fb(0x1b5)](_0x29e9d2);if(_0x5b2576){if(_0x375993[_0x4747fb(0x1ab)](_0x5b2576),0x0===_0x375993[_0x4747fb(0x182)][_0x4747fb(0x19a)]){const _0x53ab7c=this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x1a0)](_0x375993);-0x1!==_0x53ab7c&&(this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x1ac)](_0x53ab7c,0x1),this[_0x4747fb(0x1c0)][_0x4747fb(0x193)][_0x4747fb(0x1cb)](_0x375993));}this[_0x4747fb(0x1ca)]=this[_0x4747fb(0x1c0)][_0x4747fb(0x1b1)][_0x4747fb(0x19a)]>0x0,this[_0x4747fb(0x1a4)]();break;}}}[_0x449955(0x192)](_0x33ad6d,_0x10c454){const _0x48e591=_0x449955;for(const _0x3a306b of this[_0x48e591(0x1c0)][_0x48e591(0x1b1)]){const _0x3fd4b1=_0x3a306b[_0x48e591(0x1b5)](_0x33ad6d);if(_0x3fd4b1){_0x3fd4b1[_0x48e591(0x199)](_0x10c454);break;}}}[_0x449955(0x186)](_0x9b8ade,_0x2bb20f,_0x35473e){const _0x21481e=_0x449955;for(const _0x11d278 of this[_0x21481e(0x1c0)][_0x21481e(0x1b1)]){const _0x545f8d=_0x11d278[_0x21481e(0x1b5)](_0x9b8ade);if(_0x545f8d){_0x545f8d[_0x21481e(0x1cf)](_0x2bb20f,_0x35473e);break;}}}[_0x449955(0x1a4)](){const _0x5f4c7c=_0x449955;if(this[_0x5f4c7c(0x1ca)]){const _0x2a60e4=this[_0x5f4c7c(0x1b4)][_0x5f4c7c(0x19d)][_0x5f4c7c(0x1c2)]?.[_0x5f4c7c(0x1a5)]?.[_0x5f4c7c(0x190)]||'';this[_0x5f4c7c(0x1b4)][_0x5f4c7c(0x1d0)](_0x2a60e4);}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x78fc6a=_0xa7f3;(function(_0x400183,_0x5513f9){const _0x1aabed=_0xa7f3,_0x2fd7c3=_0x400183();while(!![]){try{const _0x487d2a=-parseInt(_0x1aabed(0xde))/0x1*(parseInt(_0x1aabed(0x13b))/0x2)+-parseInt(_0x1aabed(0x116))/0x3*(parseInt(_0x1aabed(0xe2))/0x4)+parseInt(_0x1aabed(0x12f))/0x5*(parseInt(_0x1aabed(0xd1))/0x6)+-parseInt(_0x1aabed(0xf1))/0x7*(-parseInt(_0x1aabed(0xd0))/0x8)+parseInt(_0x1aabed(0x118))/0x9*(-parseInt(_0x1aabed(0xe9))/0xa)+-parseInt(_0x1aabed(0xee))/0xb+parseInt(_0x1aabed(0x142))/0xc;if(_0x487d2a===_0x5513f9)break;else _0x2fd7c3['push'](_0x2fd7c3['shift']());}catch(_0x32ceea){_0x2fd7c3['push'](_0x2fd7c3['shift']());}}}(_0x298f,0x56346));import{createParser as _0x33dbd8}from'eventsource-parser';import{ContextPlugin as _0xebef71}from'ckeditor5/src/core.js';function _0xa7f3(_0x45822d,_0x50829b){const _0x298f6e=_0x298f();return _0xa7f3=function(_0xa7f35e,_0x2f66f2){_0xa7f35e=_0xa7f35e-0xb9;let _0x1aca4b=_0x298f6e[_0xa7f35e];return _0x1aca4b;},_0xa7f3(_0x45822d,_0x50829b);}import{CKEditorError as _0x392663}from'ckeditor5/src/utils.js';function _0x298f(){const _0x1b4970=['stringify','make-shorter','upsertAIActionRating','Bearer\x20','deleteFile','uploadFile','/conversations?','/models/1','make-tone-casual','isPremiumPlugin','_sendApiRequest','upsertCustomAIReviewRating','AI_MODEL_DESCRIPTION_','/messages','read','fix-grammar','continue','MAKE_TONE_FORMAL','append','executeCustomAction','/conversations','ai.serviceUrl','PATCH','statusText','CloudServices','/reviews/custom/calls/','decode','abortController','/actions/custom/calls/','attributes','904oczKxi','1876332mgRZGv','AIConnector','callCustomReview','locale','TRANSLATE','positiveCount','body','getModels','group','isOfficialPlugin','upsertCustomAIActionRating','startConversation','totalCount','69619LOuYLP','length','GET','status','144132YPYnaZ','100','true','ai-request-failed','deleteConversation','releaseLock','callSystemReview','20TnDIIs','/conversations/','name','init','file','561022MuFAgN','context','/calls','6965hAgMKr','deleteDocument','uploadDocument','/calls/','reset','/files','getReader','search','CONTINUE','map','/messages/','updateConversation','signal','make-tone-formal','toUpperCase','request','uploadUrl','plugins','pluginName','MAKE_TONE_CASUAL','PUT','feed','/web-resources/','/reviews/system/','upsertAIReviewRating','queryAssistant','fetchConversationMessages','limit','toString','_decoder','_getStreamReader','fetchConversation','json','/documents/','fetchConversations','fetchDocument','/web-resources','6MgReIm','FIX_GRAMMAR','2286tQZZSd','requires','/actions/custom/calls','https://ai.cke-cs.com/v1','make-longer','Content-Type','define','MAKE_LONGER','value','DELETE','_handleError','keys','translate','config','push','/actions/system/','items','POST','get','/files/','catch','/documents','/ratings','10VdCpOR','excludeEmpty','IMPROVE_WRITING','AbortError','_apiUrl','deleteWebResource','upsertAIChatRating','_token','data','ai-missing-token','parse','MAKE_SHORTER','8xswbSe','ai-request-aborted','improve-writing','text','then','token','application/json','207204uKjhqI','executeAction','/reviews/custom/calls'];_0x298f=function(){return _0x1b4970;};return _0x298f();}import{getTranslation as _0x549dc4}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x301d56){const _0xa2e54b=_0xa7f3;_0x301d56[_0xa2e54b(0xf9)]=_0xa2e54b(0xc2),_0x301d56[_0xa2e54b(0x117)]=_0xa2e54b(0xc1),_0x301d56[_0xa2e54b(0x131)]=_0xa2e54b(0x13d),_0x301d56[_0xa2e54b(0x11f)]=_0xa2e54b(0x11c),_0x301d56[_0xa2e54b(0x13a)]=_0xa2e54b(0x146),_0x301d56[_0xa2e54b(0x104)]=_0xa2e54b(0xba),_0x301d56[_0xa2e54b(0xc3)]=_0xa2e54b(0xfe),_0x301d56[_0xa2e54b(0xd5)]=_0xa2e54b(0x124);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xebef71{[_0x78fc6a(0x133)];[_0x78fc6a(0x136)];[_0x78fc6a(0x10e)];static get[_0x78fc6a(0x119)](){const _0x3f24ad=_0x78fc6a;return[_0x3f24ad(0xca)];}static get[_0x78fc6a(0x103)](){const _0x53fdb2=_0x78fc6a;return _0x53fdb2(0xd2);}static get[_0x78fc6a(0xda)](){return!0x0;}static get[_0x78fc6a(0xbb)](){return!0x0;}constructor(_0x4beea0){const _0x3fbef4=_0x78fc6a;super(_0x4beea0),this[_0x3fbef4(0xef)][_0x3fbef4(0x125)][_0x3fbef4(0x11e)](_0x3fbef4(0xc7),_0x3fbef4(0x11b)),this[_0x3fbef4(0x133)]=this[_0x3fbef4(0xef)][_0x3fbef4(0x125)][_0x3fbef4(0x12a)](_0x3fbef4(0xc7)),this[_0x3fbef4(0x136)]=null,this[_0x3fbef4(0x10e)]=new TextDecoder();}[_0x78fc6a(0xec)](){const _0x20813f=_0x78fc6a,_0x32f780=this[_0x20813f(0xef)][_0x20813f(0x102)][_0x20813f(0x12a)](_0x20813f(0xca));if(!_0x32f780[_0x20813f(0x140)])throw new _0x392663(_0x20813f(0x138),this);this[_0x20813f(0x136)]=_0x32f780[_0x20813f(0x140)];}[_0x78fc6a(0xdc)](_0x5f0d51,_0xa778bb){const _0x59ee1e=_0x78fc6a,_0x4fcb73=this[_0x59ee1e(0xbc)](_0x59ee1e(0xc6),_0x59ee1e(0x129),{'id':_0x5f0d51,'group':_0xa778bb});return{'getConversation':async()=>(await _0x4fcb73[_0x59ee1e(0x100)])[_0x59ee1e(0x111)](),'abortController':_0x4fcb73[_0x59ee1e(0xcd)]};}[_0x78fc6a(0x10a)]({message:_0x5dfc28,conversationId:_0x11f064,parts:_0x1d2991,capabilities:_0x12e24a,model:_0x3e1149,quickActionData:_0x246219}){const _0x286052=_0x78fc6a,_0x5c4937={..._0x246219&&{'quickActionData':_0x246219}},_0x4859a4={'prompt':_0x5dfc28,'content':_0x1d2991,'model':_0x3e1149,..._0x12e24a&&{'capabilities':_0x12e24a},...Object[_0x286052(0x123)](_0x5c4937)[_0x286052(0xdf)]>0x0&&{'attributes':_0x5c4937}},_0x266f00=this[_0x286052(0xbc)](_0x286052(0xea)+_0x11f064+_0x286052(0xbf),_0x286052(0x129),_0x4859a4);return{'getStream':async()=>{const _0x216ba4=_0x286052,_0x107cba=(await _0x266f00[_0x216ba4(0x100)])[_0x216ba4(0xd7)];return this[_0x216ba4(0x10f)](_0x107cba);},'abortController':_0x266f00[_0x286052(0xcd)]};}[_0x78fc6a(0xc5)]({content:_0x1447ba,message:_0x5bc05a,model:_0x56d73e,outputFormat:_0x432fab}){const _0x31c97a=_0x78fc6a,_0x1b8e6b={'content':[{'type':_0x31c97a(0x13e),'content':_0x1447ba}],'prompt':_0x5bc05a,'model':_0x56d73e,'outputFormat':_0x432fab},_0x1fcbcf=this[_0x31c97a(0xbc)](_0x31c97a(0x11a),_0x31c97a(0x129),_0x1b8e6b);return{'getStream':async()=>{const _0x36fc22=_0x31c97a,_0x60617c=(await _0x1fcbcf[_0x36fc22(0x100)])[_0x36fc22(0xd7)];return this[_0x36fc22(0x10f)](_0x60617c);},'abortController':_0x1fcbcf[_0x31c97a(0xcd)]};}[_0x78fc6a(0x143)]({actionName:_0x46062a,content:_0x12246e,args:_0x37a756}){const _0x1ad0d6=_0x78fc6a,_0x9cf9da={'content':[{'type':_0x1ad0d6(0x13e),'content':_0x12246e}],'args':_0x37a756},_0x1caf0a=this[_0x1ad0d6(0xbc)](_0x1ad0d6(0x127)+_0x46062a+_0x1ad0d6(0xf0),_0x1ad0d6(0x129),_0x9cf9da);return{'getStream':async()=>{const _0x161868=_0x1ad0d6,_0x1b20f9=(await _0x1caf0a[_0x161868(0x100)])[_0x161868(0xd7)];return this[_0x161868(0x10f)](_0x1b20f9);},'abortController':_0x1caf0a[_0x1ad0d6(0xcd)]};}[_0x78fc6a(0x14a)](_0x1ac786,_0x11d706,_0x5695e7){const _0x407ef2=_0x78fc6a,_0xe91018=new FormData();_0xe91018[_0x407ef2(0xc4)](_0x407ef2(0xed),_0x11d706,_0x11d706[_0x407ef2(0xeb)]),_0x5695e7&&_0xe91018[_0x407ef2(0xc4)](_0x407ef2(0xcf),JSON[_0x407ef2(0x145)](_0x5695e7));const _0x37e6fc=this[_0x407ef2(0xbc)](_0x407ef2(0xea)+_0x1ac786+_0x407ef2(0xf6),_0x407ef2(0x129),_0xe91018);return{'getId':async()=>(await _0x37e6fc[_0x407ef2(0x100)])[_0x407ef2(0x111)](),'abortController':_0x37e6fc[_0x407ef2(0xcd)]};}[_0x78fc6a(0x114)](_0x27ad48,_0x31cceb){const _0x4e8711=_0x78fc6a,_0x423dd0=this[_0x4e8711(0xbc)](_0x4e8711(0xea)+_0x27ad48+_0x4e8711(0x112)+_0x31cceb,_0x4e8711(0xe0));return{'getDocument':async()=>(await _0x423dd0[_0x4e8711(0x100)])[_0x4e8711(0x111)](),'abortController':_0x423dd0[_0x4e8711(0xcd)]};}[_0x78fc6a(0xf3)](_0xc9a199,_0x4b2fcb,_0x324f8f){const _0x19a60c=_0x78fc6a,_0x57ffc8={'content':_0x4b2fcb};_0x324f8f&&(_0x57ffc8[_0x19a60c(0xcf)]=_0x324f8f);const _0x3e4071=this[_0x19a60c(0xbc)](_0x19a60c(0xea)+_0xc9a199+_0x19a60c(0x12d),_0x19a60c(0x129),_0x57ffc8);return{'getId':async()=>(await _0x3e4071[_0x19a60c(0x100)])[_0x19a60c(0x111)](),'abortController':_0x3e4071[_0x19a60c(0xcd)]};}[_0x78fc6a(0x113)](_0x19e824,_0xeed8f1){const _0x27e870=_0x78fc6a,_0x337af5=new URLSearchParams();_0x337af5[_0x27e870(0xc4)](_0x27e870(0x130),_0x27e870(0xe4)),_0x337af5[_0x27e870(0xc4)](_0x27e870(0x10c),_0x27e870(0xe3)),_0x337af5[_0x27e870(0xc4)](_0x27e870(0xd9),_0x19e824),_0xeed8f1&&_0x337af5[_0x27e870(0xc4)](_0x27e870(0xf8),_0xeed8f1);const _0x1405d0=this[_0x27e870(0xbc)](_0x27e870(0x14b)+_0x337af5[_0x27e870(0x10d)](),_0x27e870(0xe0));return{'getConversations':async()=>{const _0x479aa6=_0x27e870,_0xc62037=await _0x1405d0[_0x479aa6(0x100)];return(await _0xc62037[_0x479aa6(0x111)]())[_0x479aa6(0x128)];},'abortController':_0x1405d0[_0x27e870(0xcd)]};}[_0x78fc6a(0xe6)](_0x23b6c0){const _0x23b860=_0x78fc6a,_0x1d9304=this[_0x23b860(0xbc)](_0x23b860(0xea)+_0x23b6c0,_0x23b860(0x121));return{'execute':async()=>{const _0x94e661=_0x23b860;await _0x1d9304[_0x94e661(0x100)];},'abortController':_0x1d9304[_0x23b860(0xcd)]};}[_0x78fc6a(0xfc)](_0x312f95,_0x55c8ff){const _0x2b21b6=_0x78fc6a,_0xcd4f24=this[_0x2b21b6(0xbc)](_0x2b21b6(0xea)+_0x312f95,_0x2b21b6(0xc8),_0x55c8ff);return{'getResult':async()=>(await _0xcd4f24[_0x2b21b6(0x100)],_0x55c8ff),'abortController':_0xcd4f24[_0x2b21b6(0xcd)]};}[_0x78fc6a(0x110)](_0x1e97f6){const _0x525557=_0x78fc6a,_0x23b5e5=this[_0x525557(0xbc)](_0x525557(0xea)+_0x1e97f6,_0x525557(0xe0));return{'getConversation':async()=>(await _0x23b5e5[_0x525557(0x100)])[_0x525557(0x111)](),'abortController':_0x23b5e5[_0x525557(0xcd)]};}[_0x78fc6a(0x10b)](_0x433deb){const _0x913731=_0x78fc6a,_0x427a03=this[_0x913731(0xbc)](_0x913731(0xea)+_0x433deb+_0x913731(0xbf),_0x913731(0xe0));return{'getMessages':async()=>{const _0x3b2d33=_0x913731,_0x4e6e81=await _0x427a03[_0x3b2d33(0x100)];return(await _0x4e6e81[_0x3b2d33(0x111)]())[_0x3b2d33(0x128)];},'abortController':_0x427a03[_0x913731(0xcd)]};}[_0x78fc6a(0x101)](_0x2dafef,_0x25e529,_0x17793d){const _0x3dac43=_0x78fc6a,_0x43dc71=this[_0x3dac43(0xbc)](_0x3dac43(0xea)+_0x2dafef+_0x3dac43(0x115),_0x3dac43(0x129),{'url':_0x25e529,'attributes':_0x17793d});return{'getId':async()=>(await _0x43dc71[_0x3dac43(0x100)])[_0x3dac43(0x111)](),'abortController':_0x43dc71[_0x3dac43(0xcd)]};}[_0x78fc6a(0xd8)](){const _0x56853c=_0x78fc6a,_0x2ee2f1=this[_0x56853c(0xbc)](_0x56853c(0xb9),_0x56853c(0xe0));return{'list':async()=>{const _0x5c4389=_0x56853c,_0xb86afb=await(await _0x2ee2f1[_0x5c4389(0x100)])[_0x5c4389(0x111)](),_0x51909f=_0xb86afb[_0x5c4389(0x128)][_0x5c4389(0xfa)](_0x4a1f39=>({..._0x4a1f39,'description':_0x549dc4(this[_0x5c4389(0xef)][_0x5c4389(0xd4)],_0x5c4389(0xbe)+_0x4a1f39['id'][_0x5c4389(0xff)]())}));return{..._0xb86afb,'items':_0x51909f};},'abortController':_0x2ee2f1[_0x56853c(0xcd)]};}[_0x78fc6a(0x149)](_0x443529,_0x416979){const _0x36dbaf=_0x78fc6a,_0x2f2039=this[_0x36dbaf(0xbc)](_0x36dbaf(0xea)+_0x443529+_0x36dbaf(0x12b)+_0x416979,_0x36dbaf(0x121));return{'execute':async()=>{const _0x5adad2=_0x36dbaf;await _0x2f2039[_0x5adad2(0x100)];},'abortController':_0x2f2039[_0x36dbaf(0xcd)]};}[_0x78fc6a(0xf2)](_0x3f7be5,_0x21dd02){const _0x2fbcc0=_0x78fc6a,_0x2cfc3e=this[_0x2fbcc0(0xbc)](_0x2fbcc0(0xea)+_0x3f7be5+_0x2fbcc0(0x112)+_0x21dd02,_0x2fbcc0(0x121));return{'execute':async()=>{const _0xe1613d=_0x2fbcc0;await _0x2cfc3e[_0xe1613d(0x100)];},'abortController':_0x2cfc3e[_0x2fbcc0(0xcd)]};}[_0x78fc6a(0x134)](_0x3a195d,_0x1253a2){const _0x31dce3=_0x78fc6a,_0x155987=this[_0x31dce3(0xbc)](_0x31dce3(0xea)+_0x3a195d+_0x31dce3(0x107)+_0x1253a2,_0x31dce3(0x121));return{'execute':async()=>{const _0x34c9dc=_0x31dce3;await _0x155987[_0x34c9dc(0x100)];},'abortController':_0x155987[_0x31dce3(0xcd)]};}[_0x78fc6a(0xe8)]({reviewName:_0x3bfe2f,content:_0x4d1e17,args:_0x393e74}){const _0x6a5932=_0x78fc6a,_0x23de36=this[_0x6a5932(0xbc)](_0x6a5932(0x108)+_0x3bfe2f+_0x6a5932(0xf0),_0x6a5932(0x129),{'content':[{'type':_0x6a5932(0x13e),'content':_0x4d1e17}],'args':_0x393e74});return{'getStream':async()=>{const _0x398e48=_0x6a5932,_0x349b24=(await _0x23de36[_0x398e48(0x100)])[_0x398e48(0xd7)];return this[_0x398e48(0x10f)](_0x349b24);},'abortController':_0x23de36[_0x6a5932(0xcd)]};}[_0x78fc6a(0xd3)]({content:_0x35e332,prompt:_0x5bb83e,model:_0x753d83}){const _0xf99520=_0x78fc6a,_0x1078f0=this[_0xf99520(0xbc)](_0xf99520(0x144),_0xf99520(0x129),{'content':[{'type':_0xf99520(0x13e),'content':_0x35e332}],'prompt':_0x5bb83e,'model':_0x753d83});return{'getStream':async()=>{const _0x514a97=_0xf99520,_0x158227=(await _0x1078f0[_0x514a97(0x100)])[_0x514a97(0xd7)];return this[_0x514a97(0x10f)](_0x158227);},'abortController':_0x1078f0[_0xf99520(0xcd)]};}[_0x78fc6a(0x135)](_0x454c0c,_0x1e7a86,_0xcef420){const _0x1cbcd4=_0x78fc6a,_0x1a31dd=this[_0x1cbcd4(0xbc)](_0x1cbcd4(0xea)+_0x454c0c+_0x1cbcd4(0xfb)+_0x1e7a86+_0x1cbcd4(0x12e),_0x1cbcd4(0x105),{'positiveCount':_0xcef420[_0x1cbcd4(0xd6)],'totalCount':_0xcef420[_0x1cbcd4(0xdd)]});return{'execute':async()=>{const _0x1a651c=_0x1cbcd4;await _0x1a31dd[_0x1a651c(0x100)];},'abortController':_0x1a31dd[_0x1cbcd4(0xcd)]};}[_0x78fc6a(0x147)](_0x199a2b,_0x358deb,_0x24fac2){const _0x37bf04=_0x78fc6a,_0x1a4d9a=this[_0x37bf04(0xbc)](_0x37bf04(0x127)+_0x199a2b+_0x37bf04(0xf4)+_0x358deb+_0x37bf04(0x12e),_0x37bf04(0x105),{'positiveCount':_0x24fac2[_0x37bf04(0xd6)],'totalCount':_0x24fac2[_0x37bf04(0xdd)]});return{'execute':async()=>{const _0x43d43e=_0x37bf04;await _0x1a4d9a[_0x43d43e(0x100)];},'abortController':_0x1a4d9a[_0x37bf04(0xcd)]};}[_0x78fc6a(0xdb)](_0x444158,_0x4feb31){const _0x14e1e6=_0x78fc6a,_0x37b84c=this[_0x14e1e6(0xbc)](_0x14e1e6(0xce)+_0x444158+_0x14e1e6(0x12e),_0x14e1e6(0x105),{'positiveCount':_0x4feb31[_0x14e1e6(0xd6)],'totalCount':_0x4feb31[_0x14e1e6(0xdd)]});return{'execute':async()=>{const _0x3d242c=_0x14e1e6;await _0x37b84c[_0x3d242c(0x100)];},'abortController':_0x37b84c[_0x14e1e6(0xcd)]};}[_0x78fc6a(0x109)](_0xf318f7,_0x2979bc,_0x1ab9ae,_0x27f8e9){const _0x101b2f=_0x78fc6a,_0x584540=this[_0x101b2f(0xbc)](_0x101b2f(0x108)+_0xf318f7+_0x101b2f(0xf4)+_0x2979bc+_0x101b2f(0x12e),_0x101b2f(0x105),{'positiveCount':_0x1ab9ae[_0x101b2f(0xd6)],'totalCount':_0x1ab9ae[_0x101b2f(0xdd)],'dataId':_0x27f8e9});return{'execute':async()=>{const _0x3d9d11=_0x101b2f;await _0x584540[_0x3d9d11(0x100)];},'abortController':_0x584540[_0x101b2f(0xcd)]};}[_0x78fc6a(0xbd)](_0xd6bf18,_0x1bc0fc,_0xa5befe){const _0x4d7fed=_0x78fc6a,_0x49991c=this[_0x4d7fed(0xbc)](_0x4d7fed(0xcb)+_0xd6bf18+_0x4d7fed(0x12e),_0x4d7fed(0x105),{'positiveCount':_0x1bc0fc[_0x4d7fed(0xd6)],'totalCount':_0x1bc0fc[_0x4d7fed(0xdd)],'dataId':_0xa5befe});return{'execute':async()=>{const _0x46efe2=_0x4d7fed;await _0x49991c[_0x46efe2(0x100)];},'abortController':_0x49991c[_0x4d7fed(0xcd)]};}[_0x78fc6a(0xbc)](_0x36013d,_0x411921,_0x563dc3){const _0x532d45=_0x78fc6a,_0x52d9ae=new AbortController(),_0x34e1f0=_0x563dc3 instanceof FormData,_0x1ed89d={'Authorization':_0x532d45(0x148)+this[_0x532d45(0x136)]?.[_0x532d45(0x120)]};_0x563dc3&&!_0x34e1f0&&(_0x1ed89d[_0x532d45(0x11d)]=_0x532d45(0x141));const _0x5c43e9={'method':_0x411921,'headers':_0x1ed89d,'signal':_0x52d9ae[_0x532d45(0xfd)]};return _0x563dc3&&(_0x5c43e9[_0x532d45(0xd7)]=_0x34e1f0?_0x563dc3:JSON[_0x532d45(0x145)](_0x563dc3)),{'request':fetch(''+this[_0x532d45(0x133)]+_0x36013d,_0x5c43e9)[_0x532d45(0x12c)](_0x36dc8f=>{const _0x401abd=_0x532d45;this[_0x401abd(0x122)](_0x36dc8f);})[_0x532d45(0x13f)](_0x568d0b=>{const _0x1702e1=_0x532d45;if(!_0x568d0b['ok'])throw new _0x392663(_0x1702e1(0xe5),this,{'url':this[_0x1702e1(0x133)],'path':_0x36013d,'method':_0x411921,'body':_0x563dc3,'status':(_0x568d0b||{})[_0x1702e1(0xe1)],'statusText':(_0x568d0b||{})[_0x1702e1(0xc9)]});return _0x568d0b;}),'abortController':_0x52d9ae};}async*[_0x78fc6a(0x10f)](_0x2a6946){const _0x17d7a5=_0x78fc6a,_0x3ef970=[],_0x2b66d9=_0x2a6946[_0x17d7a5(0xf7)](),_0xf69544=_0x33dbd8({'onError':_0xf3386c=>{const _0x36a13b=_0x17d7a5;this[_0x36a13b(0x122)](_0xf3386c);},'onEvent':_0x1946d3=>{const _0x466f9e=_0x17d7a5;_0x1946d3[_0x466f9e(0x137)]=JSON[_0x466f9e(0x139)](_0x1946d3[_0x466f9e(0x137)]),_0x3ef970[_0x466f9e(0x126)](_0x1946d3);}});try{let _0x1d7b90=!0x1;for(;!_0x1d7b90;){const {done:_0xbec77e,value:_0x5a0c50}=await _0x2b66d9[_0x17d7a5(0xc0)]();_0xbec77e&&(_0x1d7b90=!0x0),_0xf69544[_0x17d7a5(0x106)](this[_0x17d7a5(0x10e)][_0x17d7a5(0xcc)](_0x5a0c50,{'stream':!0x0})),yield*_0x3ef970,_0x3ef970[_0x17d7a5(0xdf)]=0x0;}}catch(_0x4d7447){this[_0x17d7a5(0x122)](_0x4d7447);}finally{_0x2b66d9[_0x17d7a5(0xe7)](),_0xf69544[_0x17d7a5(0xf5)]();}}[_0x78fc6a(0x122)](_0x2f5406){const _0x256941=_0x78fc6a;if(_0x2f5406 instanceof _0x392663)throw _0x2f5406;if(_0x2f5406 instanceof Error&&_0x256941(0x132)===_0x2f5406[_0x256941(0xeb)])throw new _0x392663(_0x256941(0x13c),this,{'originalError':_0x2f5406});throw new _0x392663(_0x256941(0xe5),this,{'originalError':_0x2f5406});}}
23
+ const _0xba94ff=_0x4457;(function(_0xfef303,_0x4772e9){const _0x8a3b62=_0x4457,_0x5b7a54=_0xfef303();while(!![]){try{const _0x1bcfc1=-parseInt(_0x8a3b62(0x1df))/0x1+parseInt(_0x8a3b62(0x1a2))/0x2*(parseInt(_0x8a3b62(0x1b8))/0x3)+parseInt(_0x8a3b62(0x1c6))/0x4+parseInt(_0x8a3b62(0x18f))/0x5+-parseInt(_0x8a3b62(0x195))/0x6*(parseInt(_0x8a3b62(0x1c9))/0x7)+-parseInt(_0x8a3b62(0x1cc))/0x8+-parseInt(_0x8a3b62(0x1fc))/0x9*(-parseInt(_0x8a3b62(0x207))/0xa);if(_0x1bcfc1===_0x4772e9)break;else _0x5b7a54['push'](_0x5b7a54['shift']());}catch(_0x899e74){_0x5b7a54['push'](_0x5b7a54['shift']());}}}(_0x265c,0x91015));import{createParser as _0x38d6dd}from'eventsource-parser';import{ContextPlugin as _0x24dfbe}from'ckeditor5/src/core.js';function _0x265c(){const _0xab621d=['MAKE_LONGER','DELETE','4345000HymUTV','decode','locale','signal','upsertAIActionRating','FIX_GRAMMAR','queryAssistant','executeCustomAction','ai-request-aborted','/reviews/custom/calls/','startConversation','plugins','AIConnector','make-longer','deleteDocument','/messages','catch','upsertAIReviewRating','token','105958SEqlUd','make-tone-formal','length','AbortError','/models/1','get','init','body','feed','Bearer\x20','_token','MAKE_TONE_CASUAL','callCustomReview','parse','uploadDocument','fix-grammar','updateConversation','Content-Type','status','excludeEmpty','fetchDocument','deleteWebResource','upsertAIChatRating','uploadFile','ai-request-failed','/ratings','totalCount','CloudServices','/reviews/system/','15426XQjjEm','IMPROVE_WRITING','_sendApiRequest','/actions/custom/calls','name','upsertCustomAIReviewRating','/conversations?','ai-missing-token','ai.serviceUrl','100','continue','470RMJPBC','keys','/calls/','map','reset','read','attributes','/files/','isPremiumPlugin','isOfficialPlugin','positiveCount','json','CONTINUE','append','getReader','items','abortController','true','application/json','value','search','MAKE_SHORTER','uploadUrl','config','/conversations/','315000UtpQQX','pluginName','make-shorter','GET','toString','fetchConversations','294FNpajc','/documents','executeAction','statusText','_apiUrl','https://ai.cke-cs.com/v1','toUpperCase','/calls','text','/reviews/custom/calls','request','_getStreamReader','make-tone-casual','80QcqAzk','/web-resources/','deleteConversation','requires','fetchConversation','translate','_decoder','/actions/custom/calls/','file','callSystemReview','data','then','/conversations','PATCH','fetchConversationMessages','context','group','releaseLock','/web-resources','PUT','MAKE_TONE_FORMAL','improve-writing','69492bWjYCa','/files','upsertCustomAIActionRating','_handleError','/messages/','getModels','stringify','/documents/','define','TRANSLATE','/actions/system/','POST','deleteFile','limit','2913088rcfgMP','AI_MODEL_DESCRIPTION_','push','79338nOCgfD'];_0x265c=function(){return _0xab621d;};return _0x265c();}import{CKEditorError as _0x5cadba}from'ckeditor5/src/utils.js';import{getTranslation as _0x1055dc}from'./utils/common-translations.js';export var AIActionsNames;!function(_0x46a89b){const _0xe673d8=_0x4457;_0x46a89b[_0xe673d8(0x213)]=_0xe673d8(0x206),_0x46a89b[_0xe673d8(0x1d1)]=_0xe673d8(0x1ee),_0x46a89b[_0xe673d8(0x1fd)]=_0xe673d8(0x1b7),_0x46a89b[_0xe673d8(0x1ca)]=_0xe673d8(0x1d9),_0x46a89b[_0xe673d8(0x18b)]=_0xe673d8(0x191),_0x46a89b[_0xe673d8(0x1ea)]=_0xe673d8(0x1a1),_0x46a89b[_0xe673d8(0x1b6)]=_0xe673d8(0x1e0),_0x46a89b[_0xe673d8(0x1c1)]=_0xe673d8(0x1a7);}(AIActionsNames||(AIActionsNames={}));function _0x4457(_0x872983,_0x2aff31){const _0x265c68=_0x265c();return _0x4457=function(_0x44572b,_0x4eb909){_0x44572b=_0x44572b-0x183;let _0x15d15b=_0x265c68[_0x44572b];return _0x15d15b;},_0x4457(_0x872983,_0x2aff31);}export class AIConnector extends _0x24dfbe{[_0xba94ff(0x199)];[_0xba94ff(0x1e9)];[_0xba94ff(0x1a8)];static get[_0xba94ff(0x1a5)](){const _0x3fb8e5=_0xba94ff;return[_0x3fb8e5(0x1fa)];}static get[_0xba94ff(0x190)](){const _0x45e63b=_0xba94ff;return _0x45e63b(0x1d8);}static get[_0xba94ff(0x210)](){return!0x0;}static get[_0xba94ff(0x20f)](){return!0x0;}constructor(_0x34b4ea){const _0x51c0b3=_0xba94ff;super(_0x34b4ea),this[_0x51c0b3(0x1b1)][_0x51c0b3(0x18d)][_0x51c0b3(0x1c0)](_0x51c0b3(0x204),_0x51c0b3(0x19a)),this[_0x51c0b3(0x199)]=this[_0x51c0b3(0x1b1)][_0x51c0b3(0x18d)][_0x51c0b3(0x1e4)](_0x51c0b3(0x204)),this[_0x51c0b3(0x1e9)]=null,this[_0x51c0b3(0x1a8)]=new TextDecoder();}[_0xba94ff(0x1e5)](){const _0x2b89a9=_0xba94ff,_0x47d221=this[_0x2b89a9(0x1b1)][_0x2b89a9(0x1d7)][_0x2b89a9(0x1e4)](_0x2b89a9(0x1fa));if(!_0x47d221[_0x2b89a9(0x1de)])throw new _0x5cadba(_0x2b89a9(0x203),this);this[_0x2b89a9(0x1e9)]=_0x47d221[_0x2b89a9(0x1de)];}[_0xba94ff(0x1d6)](_0x48190d,_0x1b6f43){const _0x288917=_0xba94ff,_0xca954f=this[_0x288917(0x1fe)](_0x288917(0x1ae),_0x288917(0x1c3),{'id':_0x48190d,'group':_0x1b6f43});return{'getConversation':async()=>(await _0xca954f[_0x288917(0x19f)])[_0x288917(0x212)](),'abortController':_0xca954f[_0x288917(0x186)]};}[_0xba94ff(0x1d2)]({message:_0x58e6d0,conversationId:_0x3bca46,parts:_0x76cb9c,capabilities:_0xe0051c,model:_0x343614,quickActionData:_0x4de05d}){const _0x18039a=_0xba94ff,_0xb0766f={..._0x4de05d&&{'quickActionData':_0x4de05d}},_0xb8c563={'prompt':_0x58e6d0,'content':_0x76cb9c,'model':_0x343614,..._0xe0051c&&{'capabilities':_0xe0051c},...Object[_0x18039a(0x208)](_0xb0766f)[_0x18039a(0x1e1)]>0x0&&{'attributes':_0xb0766f}},_0x37a622=this[_0x18039a(0x1fe)](_0x18039a(0x18e)+_0x3bca46+_0x18039a(0x1db),_0x18039a(0x1c3),_0xb8c563);return{'getStream':async()=>{const _0x4b70b7=_0x18039a,_0x210763=(await _0x37a622[_0x4b70b7(0x19f)])[_0x4b70b7(0x1e6)];return this[_0x4b70b7(0x1a0)](_0x210763);},'abortController':_0x37a622[_0x18039a(0x186)]};}[_0xba94ff(0x1d3)]({content:_0x307776,message:_0x608bda,model:_0x5a8cdb,outputFormat:_0x1b2ba4}){const _0x33090a=_0xba94ff,_0x507279={'content':[{'type':_0x33090a(0x19d),'content':_0x307776}],'prompt':_0x608bda,'model':_0x5a8cdb,'outputFormat':_0x1b2ba4},_0xd523e2=this[_0x33090a(0x1fe)](_0x33090a(0x1ff),_0x33090a(0x1c3),_0x507279);return{'getStream':async()=>{const _0x326c26=_0x33090a,_0x3734a6=(await _0xd523e2[_0x326c26(0x19f)])[_0x326c26(0x1e6)];return this[_0x326c26(0x1a0)](_0x3734a6);},'abortController':_0xd523e2[_0x33090a(0x186)]};}[_0xba94ff(0x197)]({actionName:_0x522706,content:_0x5bc2ea,args:_0x237ec9}){const _0x49a2a6=_0xba94ff,_0x1302cd={'content':[{'type':_0x49a2a6(0x19d),'content':_0x5bc2ea}],'args':_0x237ec9},_0x5da372=this[_0x49a2a6(0x1fe)](_0x49a2a6(0x1c2)+_0x522706+_0x49a2a6(0x19c),_0x49a2a6(0x1c3),_0x1302cd);return{'getStream':async()=>{const _0x40218=_0x49a2a6,_0x10a65a=(await _0x5da372[_0x40218(0x19f)])[_0x40218(0x1e6)];return this[_0x40218(0x1a0)](_0x10a65a);},'abortController':_0x5da372[_0x49a2a6(0x186)]};}[_0xba94ff(0x1f6)](_0x130340,_0x4e793b,_0x103f93){const _0x4c3fc9=_0xba94ff,_0x4b859c=new FormData();_0x4b859c[_0x4c3fc9(0x183)](_0x4c3fc9(0x1aa),_0x4e793b,_0x4e793b[_0x4c3fc9(0x200)]),_0x103f93&&_0x4b859c[_0x4c3fc9(0x183)](_0x4c3fc9(0x20d),JSON[_0x4c3fc9(0x1be)](_0x103f93));const _0x38da46=this[_0x4c3fc9(0x1fe)](_0x4c3fc9(0x18e)+_0x130340+_0x4c3fc9(0x1b9),_0x4c3fc9(0x1c3),_0x4b859c);return{'getId':async()=>(await _0x38da46[_0x4c3fc9(0x19f)])[_0x4c3fc9(0x212)](),'abortController':_0x38da46[_0x4c3fc9(0x186)]};}[_0xba94ff(0x1f3)](_0xb5944c,_0x367085){const _0x2aeca5=_0xba94ff,_0x2189da=this[_0x2aeca5(0x1fe)](_0x2aeca5(0x18e)+_0xb5944c+_0x2aeca5(0x1bf)+_0x367085,_0x2aeca5(0x192));return{'getDocument':async()=>(await _0x2189da[_0x2aeca5(0x19f)])[_0x2aeca5(0x212)](),'abortController':_0x2189da[_0x2aeca5(0x186)]};}[_0xba94ff(0x1ed)](_0x541277,_0x42d65a,_0x472a02){const _0x126e40=_0xba94ff,_0x501706={'content':_0x42d65a};_0x472a02&&(_0x501706[_0x126e40(0x20d)]=_0x472a02);const _0x465b6c=this[_0x126e40(0x1fe)](_0x126e40(0x18e)+_0x541277+_0x126e40(0x196),_0x126e40(0x1c3),_0x501706);return{'getId':async()=>(await _0x465b6c[_0x126e40(0x19f)])[_0x126e40(0x212)](),'abortController':_0x465b6c[_0x126e40(0x186)]};}[_0xba94ff(0x194)](_0x297889,_0x4e6d87){const _0x2202d3=_0xba94ff,_0x13662b=new URLSearchParams();_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1f2),_0x2202d3(0x187)),_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1c5),_0x2202d3(0x205)),_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x1b2),_0x297889),_0x4e6d87&&_0x13662b[_0x2202d3(0x183)](_0x2202d3(0x18a),_0x4e6d87);const _0x452d6c=this[_0x2202d3(0x1fe)](_0x2202d3(0x202)+_0x13662b[_0x2202d3(0x193)](),_0x2202d3(0x192));return{'getConversations':async()=>{const _0x241d4d=_0x2202d3,_0x532f38=await _0x452d6c[_0x241d4d(0x19f)];return(await _0x532f38[_0x241d4d(0x212)]())[_0x241d4d(0x185)];},'abortController':_0x452d6c[_0x2202d3(0x186)]};}[_0xba94ff(0x1a4)](_0x5155d2){const _0x587ad6=_0xba94ff,_0x320bed=this[_0x587ad6(0x1fe)](_0x587ad6(0x18e)+_0x5155d2,_0x587ad6(0x1cb));return{'execute':async()=>{const _0x5b1d22=_0x587ad6;await _0x320bed[_0x5b1d22(0x19f)];},'abortController':_0x320bed[_0x587ad6(0x186)]};}[_0xba94ff(0x1ef)](_0x320326,_0x31b932){const _0x511aac=_0xba94ff,_0x27d6a4=this[_0x511aac(0x1fe)](_0x511aac(0x18e)+_0x320326,_0x511aac(0x1af),_0x31b932);return{'getResult':async()=>(await _0x27d6a4[_0x511aac(0x19f)],_0x31b932),'abortController':_0x27d6a4[_0x511aac(0x186)]};}[_0xba94ff(0x1a6)](_0xbb612c){const _0x449f96=_0xba94ff,_0x325c46=this[_0x449f96(0x1fe)](_0x449f96(0x18e)+_0xbb612c,_0x449f96(0x192));return{'getConversation':async()=>(await _0x325c46[_0x449f96(0x19f)])[_0x449f96(0x212)](),'abortController':_0x325c46[_0x449f96(0x186)]};}[_0xba94ff(0x1b0)](_0x5e6ad9){const _0x565036=_0xba94ff,_0xec3e38=this[_0x565036(0x1fe)](_0x565036(0x18e)+_0x5e6ad9+_0x565036(0x1db),_0x565036(0x192));return{'getMessages':async()=>{const _0x16c802=_0x565036,_0x11ae6a=await _0xec3e38[_0x16c802(0x19f)];return(await _0x11ae6a[_0x16c802(0x212)]())[_0x16c802(0x185)];},'abortController':_0xec3e38[_0x565036(0x186)]};}[_0xba94ff(0x18c)](_0x496a3b,_0x2f2e86,_0x1029a9){const _0x13731b=_0xba94ff,_0x315b88=this[_0x13731b(0x1fe)](_0x13731b(0x18e)+_0x496a3b+_0x13731b(0x1b4),_0x13731b(0x1c3),{'url':_0x2f2e86,'attributes':_0x1029a9});return{'getId':async()=>(await _0x315b88[_0x13731b(0x19f)])[_0x13731b(0x212)](),'abortController':_0x315b88[_0x13731b(0x186)]};}[_0xba94ff(0x1bd)](){const _0x21c514=_0xba94ff,_0x428992=this[_0x21c514(0x1fe)](_0x21c514(0x1e3),_0x21c514(0x192));return{'list':async()=>{const _0x500886=_0x21c514,_0x4a7308=await(await _0x428992[_0x500886(0x19f)])[_0x500886(0x212)](),_0x587d23=_0x4a7308[_0x500886(0x185)][_0x500886(0x20a)](_0x2502de=>({..._0x2502de,'description':_0x1055dc(this[_0x500886(0x1b1)][_0x500886(0x1ce)],_0x500886(0x1c7)+_0x2502de['id'][_0x500886(0x19b)]())}));return{..._0x4a7308,'items':_0x587d23};},'abortController':_0x428992[_0x21c514(0x186)]};}[_0xba94ff(0x1c4)](_0x337c64,_0x321ee3){const _0x15b42d=_0xba94ff,_0x4be2b0=this[_0x15b42d(0x1fe)](_0x15b42d(0x18e)+_0x337c64+_0x15b42d(0x20e)+_0x321ee3,_0x15b42d(0x1cb));return{'execute':async()=>{const _0x28965c=_0x15b42d;await _0x4be2b0[_0x28965c(0x19f)];},'abortController':_0x4be2b0[_0x15b42d(0x186)]};}[_0xba94ff(0x1da)](_0x524d45,_0x274877){const _0x172e67=_0xba94ff,_0x2231ce=this[_0x172e67(0x1fe)](_0x172e67(0x18e)+_0x524d45+_0x172e67(0x1bf)+_0x274877,_0x172e67(0x1cb));return{'execute':async()=>{const _0x4944a8=_0x172e67;await _0x2231ce[_0x4944a8(0x19f)];},'abortController':_0x2231ce[_0x172e67(0x186)]};}[_0xba94ff(0x1f4)](_0x196b1b,_0xcb8cc8){const _0x58aa12=_0xba94ff,_0x29cb19=this[_0x58aa12(0x1fe)](_0x58aa12(0x18e)+_0x196b1b+_0x58aa12(0x1a3)+_0xcb8cc8,_0x58aa12(0x1cb));return{'execute':async()=>{const _0x2f7770=_0x58aa12;await _0x29cb19[_0x2f7770(0x19f)];},'abortController':_0x29cb19[_0x58aa12(0x186)]};}[_0xba94ff(0x1ab)]({reviewName:_0x36070c,content:_0x2a3029,args:_0x27350f}){const _0x3d6de8=_0xba94ff,_0x421d81=this[_0x3d6de8(0x1fe)](_0x3d6de8(0x1fb)+_0x36070c+_0x3d6de8(0x19c),_0x3d6de8(0x1c3),{'content':[{'type':_0x3d6de8(0x19d),'content':_0x2a3029}],'args':_0x27350f});return{'getStream':async()=>{const _0x52e401=_0x3d6de8,_0x474fdc=(await _0x421d81[_0x52e401(0x19f)])[_0x52e401(0x1e6)];return this[_0x52e401(0x1a0)](_0x474fdc);},'abortController':_0x421d81[_0x3d6de8(0x186)]};}[_0xba94ff(0x1eb)]({content:_0x172fab,prompt:_0x4d793e,model:_0x5bda77}){const _0x20538c=_0xba94ff,_0x34f5a1=this[_0x20538c(0x1fe)](_0x20538c(0x19e),_0x20538c(0x1c3),{'content':[{'type':_0x20538c(0x19d),'content':_0x172fab}],'prompt':_0x4d793e,'model':_0x5bda77});return{'getStream':async()=>{const _0x2f1177=_0x20538c,_0x22fab4=(await _0x34f5a1[_0x2f1177(0x19f)])[_0x2f1177(0x1e6)];return this[_0x2f1177(0x1a0)](_0x22fab4);},'abortController':_0x34f5a1[_0x20538c(0x186)]};}[_0xba94ff(0x1f5)](_0x42de2a,_0x56d0c0,_0x30e0f5){const _0x45e111=_0xba94ff,_0x2888aa=this[_0x45e111(0x1fe)](_0x45e111(0x18e)+_0x42de2a+_0x45e111(0x1bc)+_0x56d0c0+_0x45e111(0x1f8),_0x45e111(0x1b5),{'positiveCount':_0x30e0f5[_0x45e111(0x211)],'totalCount':_0x30e0f5[_0x45e111(0x1f9)]});return{'execute':async()=>{const _0x3ceb64=_0x45e111;await _0x2888aa[_0x3ceb64(0x19f)];},'abortController':_0x2888aa[_0x45e111(0x186)]};}[_0xba94ff(0x1d0)](_0x107c1e,_0x81d9c3,_0x3d31e2){const _0x31d229=_0xba94ff,_0x558a58=this[_0x31d229(0x1fe)](_0x31d229(0x1c2)+_0x107c1e+_0x31d229(0x209)+_0x81d9c3+_0x31d229(0x1f8),_0x31d229(0x1b5),{'positiveCount':_0x3d31e2[_0x31d229(0x211)],'totalCount':_0x3d31e2[_0x31d229(0x1f9)]});return{'execute':async()=>{const _0x3bbbab=_0x31d229;await _0x558a58[_0x3bbbab(0x19f)];},'abortController':_0x558a58[_0x31d229(0x186)]};}[_0xba94ff(0x1ba)](_0x212f98,_0x265d08){const _0x2f73b5=_0xba94ff,_0x3693a7=this[_0x2f73b5(0x1fe)](_0x2f73b5(0x1a9)+_0x212f98+_0x2f73b5(0x1f8),_0x2f73b5(0x1b5),{'positiveCount':_0x265d08[_0x2f73b5(0x211)],'totalCount':_0x265d08[_0x2f73b5(0x1f9)]});return{'execute':async()=>{const _0x4c122e=_0x2f73b5;await _0x3693a7[_0x4c122e(0x19f)];},'abortController':_0x3693a7[_0x2f73b5(0x186)]};}[_0xba94ff(0x1dd)](_0x15e807,_0x4537f7,_0x4f17c5,_0x52527a){const _0x374033=_0xba94ff,_0x35738d=this[_0x374033(0x1fe)](_0x374033(0x1fb)+_0x15e807+_0x374033(0x209)+_0x4537f7+_0x374033(0x1f8),_0x374033(0x1b5),{'positiveCount':_0x4f17c5[_0x374033(0x211)],'totalCount':_0x4f17c5[_0x374033(0x1f9)],'dataId':_0x52527a});return{'execute':async()=>{const _0x274001=_0x374033;await _0x35738d[_0x274001(0x19f)];},'abortController':_0x35738d[_0x374033(0x186)]};}[_0xba94ff(0x201)](_0x4ec8fb,_0xc693ab,_0x23d035){const _0x19937a=_0xba94ff,_0x1d9519=this[_0x19937a(0x1fe)](_0x19937a(0x1d5)+_0x4ec8fb+_0x19937a(0x1f8),_0x19937a(0x1b5),{'positiveCount':_0xc693ab[_0x19937a(0x211)],'totalCount':_0xc693ab[_0x19937a(0x1f9)],'dataId':_0x23d035});return{'execute':async()=>{const _0x4f0c89=_0x19937a;await _0x1d9519[_0x4f0c89(0x19f)];},'abortController':_0x1d9519[_0x19937a(0x186)]};}[_0xba94ff(0x1fe)](_0x31d772,_0x561a20,_0x5ec521){const _0x5e7c81=_0xba94ff,_0x1873e8=new AbortController(),_0x26c4b6=_0x5ec521 instanceof FormData,_0x4b864c={'Authorization':_0x5e7c81(0x1e8)+this[_0x5e7c81(0x1e9)]?.[_0x5e7c81(0x189)]};_0x5ec521&&!_0x26c4b6&&(_0x4b864c[_0x5e7c81(0x1f0)]=_0x5e7c81(0x188));const _0x9f25dc={'method':_0x561a20,'headers':_0x4b864c,'signal':_0x1873e8[_0x5e7c81(0x1cf)]};return _0x5ec521&&(_0x9f25dc[_0x5e7c81(0x1e6)]=_0x26c4b6?_0x5ec521:JSON[_0x5e7c81(0x1be)](_0x5ec521)),{'request':fetch(''+this[_0x5e7c81(0x199)]+_0x31d772,_0x9f25dc)[_0x5e7c81(0x1dc)](_0x40037c=>{const _0x5ef18b=_0x5e7c81;this[_0x5ef18b(0x1bb)](_0x40037c);})[_0x5e7c81(0x1ad)](_0x345485=>{const _0x2034d1=_0x5e7c81;if(!_0x345485['ok'])throw new _0x5cadba(_0x2034d1(0x1f7),this,{'url':this[_0x2034d1(0x199)],'path':_0x31d772,'method':_0x561a20,'body':_0x5ec521,'status':(_0x345485||{})[_0x2034d1(0x1f1)],'statusText':(_0x345485||{})[_0x2034d1(0x198)]});return _0x345485;}),'abortController':_0x1873e8};}async*[_0xba94ff(0x1a0)](_0x19423c){const _0x2ef4ab=_0xba94ff,_0x1b7f84=[],_0x1cb6fd=_0x19423c[_0x2ef4ab(0x184)](),_0x53e522=_0x38d6dd({'onError':_0x27e231=>{const _0x5e2629=_0x2ef4ab;this[_0x5e2629(0x1bb)](_0x27e231);},'onEvent':_0x2febfb=>{const _0x544859=_0x2ef4ab;_0x2febfb[_0x544859(0x1ac)]=JSON[_0x544859(0x1ec)](_0x2febfb[_0x544859(0x1ac)]),_0x1b7f84[_0x544859(0x1c8)](_0x2febfb);}});try{let _0x471f8e=!0x1;for(;!_0x471f8e;){const {done:_0x2b75a1,value:_0x1984ff}=await _0x1cb6fd[_0x2ef4ab(0x20c)]();_0x2b75a1&&(_0x471f8e=!0x0),_0x53e522[_0x2ef4ab(0x1e7)](this[_0x2ef4ab(0x1a8)][_0x2ef4ab(0x1cd)](_0x1984ff,{'stream':!0x0})),yield*_0x1b7f84,_0x1b7f84[_0x2ef4ab(0x1e1)]=0x0;}}catch(_0x24a77f){this[_0x2ef4ab(0x1bb)](_0x24a77f);}finally{_0x1cb6fd[_0x2ef4ab(0x1b3)](),_0x53e522[_0x2ef4ab(0x20b)]();}}[_0xba94ff(0x1bb)](_0x55dbbb){const _0x3e6c0b=_0xba94ff;if(_0x55dbbb instanceof _0x5cadba)throw _0x55dbbb;if(_0x55dbbb instanceof Error&&_0x3e6c0b(0x1e2)===_0x55dbbb[_0x3e6c0b(0x200)])throw new _0x5cadba(_0x3e6c0b(0x1d4),this,{'originalError':_0x55dbbb});throw new _0x5cadba(_0x3e6c0b(0x1f7),this,{'originalError':_0x55dbbb});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48f6fa=_0xb22e;(function(_0x5891f6,_0x8990f){const _0x367502=_0xb22e,_0x2f8e08=_0x5891f6();while(!![]){try{const _0x1abcd6=parseInt(_0x367502(0x13b))/0x1*(-parseInt(_0x367502(0x129))/0x2)+parseInt(_0x367502(0x10c))/0x3*(-parseInt(_0x367502(0x11a))/0x4)+-parseInt(_0x367502(0x158))/0x5+parseInt(_0x367502(0x170))/0x6*(parseInt(_0x367502(0x122))/0x7)+-parseInt(_0x367502(0x12d))/0x8*(parseInt(_0x367502(0x174))/0x9)+parseInt(_0x367502(0x163))/0xa*(-parseInt(_0x367502(0x11d))/0xb)+parseInt(_0x367502(0x114))/0xc*(parseInt(_0x367502(0x16a))/0xd);if(_0x1abcd6===_0x8990f)break;else _0x2f8e08['push'](_0x2f8e08['shift']());}catch(_0x410cf6){_0x2f8e08['push'](_0x2f8e08['shift']());}}}(_0x51b4,0x6028c));import{ViewDowncastWriter as _0x558524}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x2edf55,Editor as _0x3a75fb}from'ckeditor5/src/core.js';import{uid as _0x2ad9a9}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x1838a9}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x48f6fa(0x173);function _0xb22e(_0x5c6210,_0x29fe4c){const _0x51b442=_0x51b4();return _0xb22e=function(_0xb22ed3,_0x363b7c){_0xb22ed3=_0xb22ed3-0x10b;let _0x39c846=_0x51b442[_0xb22ed3];return _0x39c846;},_0xb22e(_0x5c6210,_0x29fe4c);}function _0x51b4(){const _0x8fc3a5=['selection','_getMarkersInDocumentOrder','2569605IkvVMl','isAfter',':end>','getSelectionText','sort','emptyElement','ck-ai-assistant-ui_theme','for','createUIElement','_setDataIdsOnChildren','setAttribute','7441330AvNhPz','isOfficialPlugin','editors','ready','schema','getSelectedContent','document','30612712OysbMG','has','markerName','removeAllRanges','createRange','getMarkersGroup','2059158aEDEgB','get','listenTo','ai-selection','533052bGRXJs','editing','getWalker','isContent','81ffdHGL','convertAiChatSelectionMarker','getChildren','add','getSelection','element','markerToHighlight','ai-selection:','12LViOWF','data-id','modelToViewWithIds','markerToElement','substring','view','55824wegrCb','_sessionId','getRoot','11fHUyOS','editingDowncast','floor','markers','length','7VWrYvw','name','AIEditing','hideFakeVisualSelection','getDocumentData','model','end','2VhwbNn','version','fromCharCode','getStart','32ftPnJs','addMarker','_integrateEditor','dataDowncast','start','createRangeIn','showFakeVisualSelection','containerElement','toData','toView','push','random','_nextDataId','$textProxy','432371RWglGA','join','ck-fake-ai-selection','context','isPremiumPlugin','afterInit',':start>','getLastMatchingPosition','_displayedFakeSelectionId','isBefore','pluginName','RealTimeCollaborationClient','_displayedFakeSelectionLocked','removeMarker','from','isOpening','plugins','conversion','data','isAtEnd','indexOf','processor',':start></','change',':end></','sessionId','trim'];_0x51b4=function(){return _0x8fc3a5;};return _0x51b4();}export class AIEditing extends _0x2edf55{[_0x48f6fa(0x143)]=null;[_0x48f6fa(0x147)]=!0x1;[_0x48f6fa(0x11b)];static get[_0x48f6fa(0x145)](){const _0x21c445=_0x48f6fa;return _0x21c445(0x124);}static get[_0x48f6fa(0x164)](){return!0x0;}static get[_0x48f6fa(0x13f)](){return!0x0;}get[_0x48f6fa(0x154)](){const _0x4a7d12=_0x48f6fa;if(!this[_0x4a7d12(0x11b)]){const _0x49ade1=_0x1838a9(this[_0x4a7d12(0x13e)]),_0x5bc230=_0x49ade1[_0x4a7d12(0x14b)][_0x4a7d12(0x16b)](_0x4a7d12(0x146))&&_0x49ade1[_0x4a7d12(0x14b)][_0x4a7d12(0x171)](_0x4a7d12(0x146))[_0x4a7d12(0x154)];this[_0x4a7d12(0x11b)]=_0x5bc230||_0x2ad9a9();}return this[_0x4a7d12(0x11b)];}[_0x48f6fa(0x126)](){const _0x286184=_0x48f6fa,_0x5b78c=_0x1838a9(this[_0x286184(0x13e)]),_0x31a594=_0x5b78c[_0x286184(0x127)],_0x7c6159=_0x5b78c[_0x286184(0x14d)][_0x286184(0x136)](_0x31a594[_0x286184(0x169)][_0x286184(0x11c)](),{'convertAiChatSelectionMarker':!0x0}),_0x1f2e65=new _0x558524(_0x5b78c[_0x286184(0x175)][_0x286184(0x119)][_0x286184(0x169)]);this[_0x286184(0x161)](_0x7c6159,_0x1f2e65);let _0x55aa42=_0x5b78c[_0x286184(0x14d)][_0x286184(0x150)][_0x286184(0x135)](_0x7c6159);const _0x444f46=this[_0x286184(0x157)](),_0x21b9a4=[];for(const _0x278635 of _0x444f46){const _0x25d624='<'+_0x278635[_0x286184(0x123)]+_0x286184(0x151)+_0x278635[_0x286184(0x123)]+_0x286184(0x141),_0x5243db=_0x55aa42[_0x286184(0x14f)](_0x25d624);_0x55aa42=_0x55aa42[_0x286184(0x118)](0x0,_0x5243db)+_0x55aa42[_0x286184(0x118)](_0x5243db+_0x25d624[_0x286184(0x121)]);const _0x2c917c='<'+_0x278635[_0x286184(0x123)]+_0x286184(0x153)+_0x278635[_0x286184(0x123)]+_0x286184(0x15a),_0x5bb4b3=_0x55aa42[_0x286184(0x14f)](_0x2c917c);_0x55aa42=_0x55aa42[_0x286184(0x118)](0x0,_0x5bb4b3)+_0x55aa42[_0x286184(0x118)](_0x5bb4b3+_0x2c917c[_0x286184(0x121)]),_0x21b9a4[_0x286184(0x137)]({'markerName':_0x278635[_0x286184(0x123)],'start':_0x5243db,'end':_0x5bb4b3,'htmlFragment':_0x55aa42[_0x286184(0x118)](_0x5243db,_0x5bb4b3)});}return{'content':_0x55aa42,'version':_0x5b78c[_0x286184(0x127)][_0x286184(0x169)][_0x286184(0x12a)],'sessionId':this[_0x286184(0x154)],'selections':_0x21b9a4};}async[_0x48f6fa(0x140)](){const _0x4c28f9=_0x48f6fa;this[_0x4c28f9(0x13e)]instanceof _0x3a75fb?this[_0x4c28f9(0x12f)](this[_0x4c28f9(0x13e)]):this[_0x4c28f9(0x172)](this[_0x4c28f9(0x13e)][_0x4c28f9(0x165)],_0x4c28f9(0x10f),(_0xff38f6,_0x2584c6)=>{const _0x561dc6=_0x4c28f9;_0x2584c6['on'](_0x561dc6(0x166),()=>{const _0x37276f=_0x561dc6;this[_0x37276f(0x12f)](_0x2584c6);});});}[_0x48f6fa(0x12f)](_0x4a74a8){const _0x5d4b09=_0x48f6fa;_0x4a74a8[_0x5d4b09(0x14c)][_0x5d4b09(0x15f)](_0x5d4b09(0x11e))[_0x5d4b09(0x112)]({'model':_0x5d4b09(0x173),'view':{'classes':[_0x5d4b09(0x13d),_0x5d4b09(0x15e)],'priority':0xc}}),_0x4a74a8[_0x5d4b09(0x14c)][_0x5d4b09(0x15f)](_0x5d4b09(0x130))[_0x5d4b09(0x117)]({'model':_0x5d4b09(0x173),'view':(_0x5d8e9a,{writer:_0x2e41ec,options:_0x66b4c2})=>_0x66b4c2[_0x5d4b09(0x10d)]?_0x2e41ec[_0x5d4b09(0x160)](_0x5d8e9a[_0x5d4b09(0x16c)]+':'+(_0x5d8e9a[_0x5d4b09(0x14a)]?_0x5d4b09(0x131):_0x5d4b09(0x128))):null});}[_0x48f6fa(0x133)](_0x5da32d,_0x54277d,_0x346563=!0x1,_0x331d29=!0x1){const _0x13011d=_0x48f6fa;if(this[_0x13011d(0x147)]&&!_0x331d29)return!0x1;this[_0x13011d(0x143)]&&this[_0x13011d(0x125)](this[_0x13011d(0x143)]),this[_0x13011d(0x143)]=_0x54277d,this[_0x13011d(0x147)]=_0x346563;const _0x2c1072=_0x1838a9(this[_0x13011d(0x13e)])[_0x13011d(0x127)];return _0x2c1072[_0x13011d(0x152)](_0x201b84=>{const _0x20ec8f=_0x13011d;let _0x4dfcd6=0x0;for(let _0x18c058 of _0x5da32d){const _0x5302f0=_0x20ec8f(0x113)+_0x4dfcd6;if(_0x18c058[_0x20ec8f(0x131)][_0x20ec8f(0x14e)]){const _0x221318=_0x18c058[_0x20ec8f(0x131)][_0x20ec8f(0x142)](({item:_0x37b063})=>!_0x2c1072[_0x20ec8f(0x167)][_0x20ec8f(0x10b)](_0x37b063),{'boundaries':_0x18c058});_0x18c058=_0x201b84[_0x20ec8f(0x16e)](_0x221318,_0x18c058[_0x20ec8f(0x128)]);}_0x201b84[_0x20ec8f(0x12e)](_0x5302f0,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x18c058}),_0x4dfcd6++;}}),window[_0x13011d(0x110)]()?.[_0x13011d(0x16d)](),!0x0;}[_0x48f6fa(0x125)](_0x2e0139){const _0x1a1b12=_0x48f6fa;if(this[_0x1a1b12(0x143)]!=_0x2e0139)return!0x1;this[_0x1a1b12(0x143)]=null,this[_0x1a1b12(0x147)]=!0x1;const _0x3c3695=_0x1838a9(this[_0x1a1b12(0x13e)]),_0x18601b=_0x3c3695[_0x1a1b12(0x127)][_0x1a1b12(0x120)][_0x1a1b12(0x16f)](_0x1a1b12(0x173));return _0x3c3695[_0x1a1b12(0x127)][_0x1a1b12(0x152)](_0x4cb331=>{const _0x5c2b0c=_0x1a1b12;for(const _0xcad37b of _0x18601b)_0x4cb331[_0x5c2b0c(0x148)](_0xcad37b);}),!0x0;}[_0x48f6fa(0x116)](_0x321a51){const _0x2ac4c3=_0x48f6fa,_0x464ffd=_0x1838a9(this[_0x2ac4c3(0x13e)]),_0x45a6d6=_0x464ffd[_0x2ac4c3(0x14d)][_0x2ac4c3(0x136)](_0x321a51),_0x12be8a=new _0x558524(_0x464ffd[_0x2ac4c3(0x175)][_0x2ac4c3(0x119)][_0x2ac4c3(0x169)]);return this[_0x2ac4c3(0x161)](_0x45a6d6,_0x12be8a),_0x45a6d6;}[_0x48f6fa(0x161)](_0x23d44e,_0x50b5e3){const _0x2d4c5d=_0x48f6fa;let _0x6f69d7=!0x1;const _0x1c88b0=new Set();for(const _0xb90608 of _0x23d44e[_0x2d4c5d(0x10e)]()){const _0x12e19a=_0xb90608['is'](_0x2d4c5d(0x15d))||_0xb90608['is'](_0x2d4c5d(0x134));if(!_0xb90608['is'](_0x2d4c5d(0x111)))continue;(this[_0x2d4c5d(0x161)](_0xb90608,_0x50b5e3)||_0x12e19a)&&(_0x50b5e3[_0x2d4c5d(0x162)](_0x2d4c5d(0x115),this[_0x2d4c5d(0x139)](_0x1c88b0),_0xb90608),_0x6f69d7=!0x0);}return _0x6f69d7;}[_0x48f6fa(0x139)](_0x1a5c7c){const _0xec8019=_0x48f6fa;let _0x4d4f96;do{_0x4d4f96='';for(let _0x4ec4b2=0x0;_0x4ec4b2<0x4;_0x4ec4b2++)_0x4d4f96+=String[_0xec8019(0x12b)](0x61+Math[_0xec8019(0x11f)](0x1a*Math[_0xec8019(0x138)]()));}while(_0x1a5c7c[_0xec8019(0x16b)](_0x4d4f96));return _0x1a5c7c[_0xec8019(0x10f)](_0x4d4f96),_0x4d4f96;}[_0x48f6fa(0x15b)](){const _0x13a00d=_0x48f6fa,{model:_0xa77aef}=_0x1838a9(this[_0x13a00d(0x13e)]),_0x3867ba=_0xa77aef[_0x13a00d(0x169)][_0x13a00d(0x156)],_0xae160d=_0xa77aef[_0x13a00d(0x168)](_0x3867ba),_0x2976f5=[],_0x444d2d=_0xa77aef[_0x13a00d(0x132)](_0xae160d)[_0x13a00d(0x176)]();for(const {item:_0x249023}of _0x444d2d)_0x249023['is'](_0x13a00d(0x13a))?_0x2976f5[_0x13a00d(0x137)](_0x249023[_0x13a00d(0x14d)]):_0x249023['is'](_0x13a00d(0x111))&&_0x2976f5[_0x13a00d(0x121)]>0x0&&'\x20'!==_0x2976f5[_0x2976f5[_0x13a00d(0x121)]-0x1]&&_0x2976f5[_0x13a00d(0x137)]('\x20');return'\x22'+_0x2976f5[_0x13a00d(0x13c)]('')[_0x13a00d(0x155)]()+'\x22';}[_0x48f6fa(0x157)](){const _0x38ce21=_0x48f6fa,_0xe0fda1=_0x1838a9(this[_0x38ce21(0x13e)])[_0x38ce21(0x127)];return Array[_0x38ce21(0x149)](_0xe0fda1[_0x38ce21(0x120)][_0x38ce21(0x16f)](_0x38ce21(0x173)))[_0x38ce21(0x15c)]((_0xa4a041,_0x3ddf45)=>_0xa4a041[_0x38ce21(0x12c)]()[_0x38ce21(0x144)](_0x3ddf45[_0x38ce21(0x12c)]())?-0x1:_0xa4a041[_0x38ce21(0x12c)]()[_0x38ce21(0x159)](_0x3ddf45[_0x38ce21(0x12c)]())?0x1:0x0);}}
23
+ function _0x2295(){const _0x58167c=['getSelectedContent','markerName','ai-selection:',':end></','conversion','$textProxy','start','_setDataIdsOnChildren','emptyElement','removeAllRanges','toData','from','afterInit','listenTo','415900MOCuqR','trim','getSelectionText','_getMarkersInDocumentOrder','_integrateEditor','38231050bcDHbZ','74vQEXRR','addMarker','5000612toiRtT','setAttribute','editors','createUIElement','2357464JArJSQ','sort','substring','ai-selection','fromCharCode','getRoot','_displayedFakeSelectionId','push','context','isPremiumPlugin','getLastMatchingPosition','containerElement','length','getMarkersGroup','view','78fzSZWH','indexOf','isAfter','RealTimeCollaborationClient','_nextDataId','isOpening','isBefore','plugins','selection','_sessionId','38691EjuTnR','markerToHighlight','getSelection','getDocumentData','model','7ssjvmv','convertAiChatSelectionMarker','end','markers','getStart','name','hideFakeVisualSelection','ready','data-id','toView','createRangeIn','81BwtRGM','floor','processor',':start></','has','data','1432590KIXtsA','isAtEnd','random','isOfficialPlugin','version','AIEditing','getWalker','dataDowncast','removeMarker','pluginName',':end>','join','ck-ai-assistant-ui_theme',':start>','isContent','element','1076247oSwNdD','for','sessionId','_displayedFakeSelectionLocked','getChildren','markerToElement','modelToViewWithIds','ck-fake-ai-selection','createRange','editing','showFakeVisualSelection','schema','get','editingDowncast','add','document','change'];_0x2295=function(){return _0x58167c;};return _0x2295();}const _0x2b4d6f=_0x3dc7;function _0x3dc7(_0x4ecae2,_0x1ed126){const _0x229543=_0x2295();return _0x3dc7=function(_0x3dc784,_0x58c14a){_0x3dc784=_0x3dc784-0x7f;let _0x141da8=_0x229543[_0x3dc784];return _0x141da8;},_0x3dc7(_0x4ecae2,_0x1ed126);}(function(_0x28fe63,_0x436eff){const _0x248161=_0x3dc7,_0x3e31b5=_0x28fe63();while(!![]){try{const _0x2e8fc8=-parseInt(_0x248161(0xe0))/0x1+parseInt(_0x248161(0x9b))/0x2*(-parseInt(_0x248161(0xba))/0x3)+-parseInt(_0x248161(0x9d))/0x4+parseInt(_0x248161(0x95))/0x5*(parseInt(_0x248161(0xb0))/0x6)+parseInt(_0x248161(0xbf))/0x7*(parseInt(_0x248161(0xa1))/0x8)+parseInt(_0x248161(0xca))/0x9*(-parseInt(_0x248161(0xd0))/0xa)+parseInt(_0x248161(0x9a))/0xb;if(_0x2e8fc8===_0x436eff)break;else _0x3e31b5['push'](_0x3e31b5['shift']());}catch(_0x4c7ed5){_0x3e31b5['push'](_0x3e31b5['shift']());}}}(_0x2295,0xb937d));import{ViewDowncastWriter as _0x1bf124}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3f48ee,Editor as _0x428954}from'ckeditor5/src/core.js';import{uid as _0x4501af}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x34e559}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2b4d6f(0xa4);export class AIEditing extends _0x3f48ee{[_0x2b4d6f(0xa7)]=null;[_0x2b4d6f(0xe3)]=!0x1;[_0x2b4d6f(0xb9)];static get[_0x2b4d6f(0xd9)](){const _0x226939=_0x2b4d6f;return _0x226939(0xd5);}static get[_0x2b4d6f(0xd3)](){return!0x0;}static get[_0x2b4d6f(0xaa)](){return!0x0;}get[_0x2b4d6f(0xe2)](){const _0x223671=_0x2b4d6f;if(!this[_0x223671(0xb9)]){const _0x3a09b6=_0x34e559(this[_0x223671(0xa9)]),_0x1f019e=_0x3a09b6[_0x223671(0xb7)][_0x223671(0xce)](_0x223671(0xb3))&&_0x3a09b6[_0x223671(0xb7)][_0x223671(0x82)](_0x223671(0xb3))[_0x223671(0xe2)];this[_0x223671(0xb9)]=_0x1f019e||_0x4501af();}return this[_0x223671(0xb9)];}[_0x2b4d6f(0xbd)](){const _0x2f4789=_0x2b4d6f,_0x47e10d=_0x34e559(this[_0x2f4789(0xa9)]),_0xc0a28d=_0x47e10d[_0x2f4789(0xbe)],_0x43ccba=_0x47e10d[_0x2f4789(0xcf)][_0x2f4789(0xc8)](_0xc0a28d[_0x2f4789(0x85)][_0x2f4789(0xa6)](),{'convertAiChatSelectionMarker':!0x0}),_0x2e6d6b=new _0x1bf124(_0x47e10d[_0x2f4789(0x7f)][_0x2f4789(0xaf)][_0x2f4789(0x85)]);this[_0x2f4789(0x8e)](_0x43ccba,_0x2e6d6b);let _0x3f0c87=_0x47e10d[_0x2f4789(0xcf)][_0x2f4789(0xcc)][_0x2f4789(0x91)](_0x43ccba);const _0xaa0947=this[_0x2f4789(0x98)](),_0x36df19=[];for(const _0x2955bc of _0xaa0947){const _0x5224cb='<'+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xcd)+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xdd),_0x4b7410=_0x3f0c87[_0x2f4789(0xb1)](_0x5224cb);_0x3f0c87=_0x3f0c87[_0x2f4789(0xa3)](0x0,_0x4b7410)+_0x3f0c87[_0x2f4789(0xa3)](_0x4b7410+_0x5224cb[_0x2f4789(0xad)]);const _0x4b9174='<'+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0x8a)+_0x2955bc[_0x2f4789(0xc4)]+_0x2f4789(0xda),_0x5b571d=_0x3f0c87[_0x2f4789(0xb1)](_0x4b9174);_0x3f0c87=_0x3f0c87[_0x2f4789(0xa3)](0x0,_0x5b571d)+_0x3f0c87[_0x2f4789(0xa3)](_0x5b571d+_0x4b9174[_0x2f4789(0xad)]),_0x36df19[_0x2f4789(0xa8)]({'markerName':_0x2955bc[_0x2f4789(0xc4)],'start':_0x4b7410,'end':_0x5b571d,'htmlFragment':_0x3f0c87[_0x2f4789(0xa3)](_0x4b7410,_0x5b571d)});}return{'content':_0x3f0c87,'version':_0x47e10d[_0x2f4789(0xbe)][_0x2f4789(0x85)][_0x2f4789(0xd4)],'sessionId':this[_0x2f4789(0xe2)],'selections':_0x36df19};}async[_0x2b4d6f(0x93)](){const _0x1e308c=_0x2b4d6f;this[_0x1e308c(0xa9)]instanceof _0x428954?this[_0x1e308c(0x99)](this[_0x1e308c(0xa9)]):this[_0x1e308c(0x94)](this[_0x1e308c(0xa9)][_0x1e308c(0x9f)],_0x1e308c(0x84),(_0x2c67e9,_0xa419e6)=>{const _0x84be8d=_0x1e308c;_0xa419e6['on'](_0x84be8d(0xc6),()=>{const _0x32747f=_0x84be8d;this[_0x32747f(0x99)](_0xa419e6);});});}[_0x2b4d6f(0x99)](_0x817472){const _0x5f145b=_0x2b4d6f;_0x817472[_0x5f145b(0x8b)][_0x5f145b(0xe1)](_0x5f145b(0x83))[_0x5f145b(0xbb)]({'model':_0x5f145b(0xa4),'view':{'classes':[_0x5f145b(0xe7),_0x5f145b(0xdc)],'priority':0xc}}),_0x817472[_0x5f145b(0x8b)][_0x5f145b(0xe1)](_0x5f145b(0xd7))[_0x5f145b(0xe5)]({'model':_0x5f145b(0xa4),'view':(_0x5af8bc,{writer:_0x35ebe1,options:_0x2535c9})=>_0x2535c9[_0x5f145b(0xc0)]?_0x35ebe1[_0x5f145b(0xa0)](_0x5af8bc[_0x5f145b(0x88)]+':'+(_0x5af8bc[_0x5f145b(0xb5)]?_0x5f145b(0x8d):_0x5f145b(0xc1))):null});}[_0x2b4d6f(0x80)](_0xea1a7a,_0x3079b4,_0x12cd2d=!0x1,_0x5f47ec=!0x1){const _0x4f409e=_0x2b4d6f;if(this[_0x4f409e(0xe3)]&&!_0x5f47ec)return!0x1;this[_0x4f409e(0xa7)]&&this[_0x4f409e(0xc5)](this[_0x4f409e(0xa7)]),this[_0x4f409e(0xa7)]=_0x3079b4,this[_0x4f409e(0xe3)]=_0x12cd2d;const _0x41aea7=_0x34e559(this[_0x4f409e(0xa9)])[_0x4f409e(0xbe)];return _0x41aea7[_0x4f409e(0x86)](_0x273844=>{const _0x20ce36=_0x4f409e;let _0x40b167=0x0;for(let _0x20c40a of _0xea1a7a){const _0x5efaee=_0x20ce36(0x89)+_0x40b167;if(_0x20c40a[_0x20ce36(0x8d)][_0x20ce36(0xd1)]){const _0xaace7b=_0x20c40a[_0x20ce36(0x8d)][_0x20ce36(0xab)](({item:_0xd7c2bb})=>!_0x41aea7[_0x20ce36(0x81)][_0x20ce36(0xde)](_0xd7c2bb),{'boundaries':_0x20c40a});_0x20c40a=_0x273844[_0x20ce36(0xe8)](_0xaace7b,_0x20c40a[_0x20ce36(0xc1)]);}_0x273844[_0x20ce36(0x9c)](_0x5efaee,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x20c40a}),_0x40b167++;}}),window[_0x4f409e(0xbc)]()?.[_0x4f409e(0x90)](),!0x0;}[_0x2b4d6f(0xc5)](_0x68acff){const _0x4a9664=_0x2b4d6f;if(this[_0x4a9664(0xa7)]!=_0x68acff)return!0x1;this[_0x4a9664(0xa7)]=null,this[_0x4a9664(0xe3)]=!0x1;const _0x4c7139=_0x34e559(this[_0x4a9664(0xa9)]),_0x430096=_0x4c7139[_0x4a9664(0xbe)][_0x4a9664(0xc2)][_0x4a9664(0xae)](_0x4a9664(0xa4));return _0x4c7139[_0x4a9664(0xbe)][_0x4a9664(0x86)](_0x3d7a4c=>{const _0x4da126=_0x4a9664;for(const _0x4d7d8d of _0x430096)_0x3d7a4c[_0x4da126(0xd8)](_0x4d7d8d);}),!0x0;}[_0x2b4d6f(0xe6)](_0x18ebe2){const _0x3df5bb=_0x2b4d6f,_0x5318e8=_0x34e559(this[_0x3df5bb(0xa9)]),_0x9186ab=_0x5318e8[_0x3df5bb(0xcf)][_0x3df5bb(0xc8)](_0x18ebe2),_0x29fcb9=new _0x1bf124(_0x5318e8[_0x3df5bb(0x7f)][_0x3df5bb(0xaf)][_0x3df5bb(0x85)]);return this[_0x3df5bb(0x8e)](_0x9186ab,_0x29fcb9),_0x9186ab;}[_0x2b4d6f(0x8e)](_0x1fe6b9,_0x4ebd26){const _0xe3fcf7=_0x2b4d6f;let _0x36d534=!0x1;const _0x2fca29=new Set();for(const _0x3a2a75 of _0x1fe6b9[_0xe3fcf7(0xe4)]()){const _0x535a10=_0x3a2a75['is'](_0xe3fcf7(0x8f))||_0x3a2a75['is'](_0xe3fcf7(0xac));if(!_0x3a2a75['is'](_0xe3fcf7(0xdf)))continue;(this[_0xe3fcf7(0x8e)](_0x3a2a75,_0x4ebd26)||_0x535a10)&&(_0x4ebd26[_0xe3fcf7(0x9e)](_0xe3fcf7(0xc7),this[_0xe3fcf7(0xb4)](_0x2fca29),_0x3a2a75),_0x36d534=!0x0);}return _0x36d534;}[_0x2b4d6f(0xb4)](_0x580b6f){const _0x3970db=_0x2b4d6f;let _0x5e02d6;do{_0x5e02d6='';for(let _0x295013=0x0;_0x295013<0x4;_0x295013++)_0x5e02d6+=String[_0x3970db(0xa5)](0x61+Math[_0x3970db(0xcb)](0x1a*Math[_0x3970db(0xd2)]()));}while(_0x580b6f[_0x3970db(0xce)](_0x5e02d6));return _0x580b6f[_0x3970db(0x84)](_0x5e02d6),_0x5e02d6;}[_0x2b4d6f(0x97)](){const _0x110139=_0x2b4d6f,{model:_0xafa65f}=_0x34e559(this[_0x110139(0xa9)]),_0x54b147=_0xafa65f[_0x110139(0x85)][_0x110139(0xb8)],_0x19c2a4=_0xafa65f[_0x110139(0x87)](_0x54b147),_0x3e66e8=[],_0x7aca51=_0xafa65f[_0x110139(0xc9)](_0x19c2a4)[_0x110139(0xd6)]();for(const {item:_0x140664}of _0x7aca51)_0x140664['is'](_0x110139(0x8c))?_0x3e66e8[_0x110139(0xa8)](_0x140664[_0x110139(0xcf)]):_0x140664['is'](_0x110139(0xdf))&&_0x3e66e8[_0x110139(0xad)]>0x0&&'\x20'!==_0x3e66e8[_0x3e66e8[_0x110139(0xad)]-0x1]&&_0x3e66e8[_0x110139(0xa8)]('\x20');return'\x22'+_0x3e66e8[_0x110139(0xdb)]('')[_0x110139(0x96)]()+'\x22';}[_0x2b4d6f(0x98)](){const _0x24bdfe=_0x2b4d6f,_0x3e1f61=_0x34e559(this[_0x24bdfe(0xa9)])[_0x24bdfe(0xbe)];return Array[_0x24bdfe(0x92)](_0x3e1f61[_0x24bdfe(0xc2)][_0x24bdfe(0xae)](_0x24bdfe(0xa4)))[_0x24bdfe(0xa2)]((_0x3a864b,_0x5d3b87)=>_0x3a864b[_0x24bdfe(0xc3)]()[_0x24bdfe(0xb6)](_0x5d3b87[_0x24bdfe(0xc3)]())?-0x1:_0x3a864b[_0x24bdfe(0xc3)]()[_0x24bdfe(0xb2)](_0x5d3b87[_0x24bdfe(0xc3)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6892df=_0x3ad0;(function(_0x23e2bc,_0xa7167e){const _0x23a94f=_0x3ad0,_0x465fbd=_0x23e2bc();while(!![]){try{const _0x10b5e7=-parseInt(_0x23a94f(0x99))/0x1+-parseInt(_0x23a94f(0xa5))/0x2+parseInt(_0x23a94f(0x95))/0x3+-parseInt(_0x23a94f(0xa4))/0x4*(-parseInt(_0x23a94f(0xa7))/0x5)+-parseInt(_0x23a94f(0x97))/0x6+parseInt(_0x23a94f(0x94))/0x7*(parseInt(_0x23a94f(0xa6))/0x8)+-parseInt(_0x23a94f(0xa3))/0x9*(-parseInt(_0x23a94f(0x98))/0xa);if(_0x10b5e7===_0xa7167e)break;else _0x465fbd['push'](_0x465fbd['shift']());}catch(_0x2cc8a6){_0x465fbd['push'](_0x465fbd['shift']());}}}(_0x2e73,0x8edc4));import{EmitterMixin as _0x113772}from'ckeditor5/src/utils.js';function _0x2e73(){const _0x5865ec=['4710990NvnYBt','23911610sikESr','992511enSzPB','_isReasoningEnabled','toggleWebSearch','webSearch','reasoning','_isWebSearchEnabled','reset','isWebSearchEnabled','getCapabilitiesRequestData','init','9NJYVQc','859600QNQkLS','781078IcWpAJ','979976dSPejD','5HBFGax','fire','toggleReasoning','setWebSearch','setReasoning','isReasoningEnabled','capabilitiesUpdated','7bWQTQU','74439yuZShr','getCapabilitiesConfig'];_0x2e73=function(){return _0x5865ec;};return _0x2e73();}function _0x3ad0(_0x567a2d,_0xb76415){const _0x2e73aa=_0x2e73();return _0x3ad0=function(_0x3ad05e,_0xa9ed41){_0x3ad05e=_0x3ad05e-0x91;let _0x4b5737=_0x2e73aa[_0x3ad05e];return _0x4b5737;},_0x3ad0(_0x567a2d,_0xb76415);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x6892df(0x93)];export class AICapabilities extends _0x113772(){[_0x6892df(0x9e)];[_0x6892df(0x9a)];constructor(){const _0x3416ef=_0x6892df;super(),this[_0x3416ef(0x9e)]=!0x1,this[_0x3416ef(0x9a)]=!0x1;}[_0x6892df(0xa2)](){const _0x48909d=_0x6892df;this[_0x48909d(0x9f)]();}[_0x6892df(0x9f)](){const _0x61beb7=_0x6892df;this[_0x61beb7(0xaa)](!0x1),this[_0x61beb7(0x91)](!0x1);}[_0x6892df(0x96)](){const _0x1fc7eb=_0x6892df;return{'isWebSearchEnabled':this[_0x1fc7eb(0x9e)],'isReasoningEnabled':this[_0x1fc7eb(0x9a)]};}static[_0x6892df(0xa1)](_0x43f82c){const _0x20ee7e=_0x6892df,_0x22678b={};return _0x43f82c&&_0x43f82c[_0x20ee7e(0xa0)]&&(_0x22678b[_0x20ee7e(0x9c)]={}),_0x43f82c&&_0x43f82c[_0x20ee7e(0x92)]&&(_0x22678b[_0x20ee7e(0x9d)]={}),_0x22678b;}[_0x6892df(0x9b)](){const _0xc2533d=_0x6892df;this[_0xc2533d(0xaa)](!this[_0xc2533d(0x9e)]);}[_0x6892df(0xa9)](){const _0x36fc64=_0x6892df;this[_0x36fc64(0x91)](!this[_0x36fc64(0x9a)]);}[_0x6892df(0xaa)](_0x4c1b07){const _0x2f4d6f=_0x6892df;_0x4c1b07!==this[_0x2f4d6f(0x9e)]&&(this[_0x2f4d6f(0x9e)]=_0x4c1b07,this[_0x2f4d6f(0xa8)](_0x2f4d6f(0x93),this[_0x2f4d6f(0x96)]()));}[_0x6892df(0x91)](_0x3cabf8){const _0x117013=_0x6892df;_0x3cabf8!==this[_0x117013(0x9a)]&&(this[_0x117013(0x9a)]=_0x3cabf8,this[_0x117013(0xa8)](_0x117013(0x93),this[_0x117013(0x96)]()));}}
23
+ function _0x4ee2(){const _0x4bc937=['_isWebSearchEnabled','774132rUUFSO','2GGATGV','capabilitiesUpdated','1476290eCPZhA','reasoning','fire','4158840vaAeGs','2155508YnnJHw','setWebSearch','webSearch','_isReasoningEnabled','toggleReasoning','getCapabilitiesConfig','611859BfzPmQ','reset','setReasoning','toggleWebSearch','isReasoningEnabled','1217640zkHNyu','isWebSearchEnabled','getCapabilitiesRequestData','2435356WgtFXw','init'];_0x4ee2=function(){return _0x4bc937;};return _0x4ee2();}const _0x2a3658=_0x3c1d;(function(_0x2b8acd,_0x1606c7){const _0x5032b6=_0x3c1d,_0x462da8=_0x2b8acd();while(!![]){try{const _0x39ae4a=parseInt(_0x5032b6(0xde))/0x1+-parseInt(_0x5032b6(0xdf))/0x2*(-parseInt(_0x5032b6(0xeb))/0x3)+-parseInt(_0x5032b6(0xe5))/0x4+-parseInt(_0x5032b6(0xe1))/0x5+parseInt(_0x5032b6(0xe4))/0x6+-parseInt(_0x5032b6(0xdb))/0x7+parseInt(_0x5032b6(0xd8))/0x8;if(_0x39ae4a===_0x1606c7)break;else _0x462da8['push'](_0x462da8['shift']());}catch(_0x5f41e3){_0x462da8['push'](_0x462da8['shift']());}}}(_0x4ee2,0x9c96b));import{EmitterMixin as _0x2e709b}from'ckeditor5/src/utils.js';function _0x3c1d(_0x1adc0c,_0x1702ae){const _0x4ee2e8=_0x4ee2();return _0x3c1d=function(_0x3c1d68,_0x46ee78){_0x3c1d68=_0x3c1d68-0xd5;let _0x25e5e6=_0x4ee2e8[_0x3c1d68];return _0x25e5e6;},_0x3c1d(_0x1adc0c,_0x1702ae);}export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2a3658(0xe0)];export class AICapabilities extends _0x2e709b(){[_0x2a3658(0xdd)];[_0x2a3658(0xe8)];constructor(){const _0x5e0509=_0x2a3658;super(),this[_0x5e0509(0xdd)]=!0x1,this[_0x5e0509(0xe8)]=!0x1;}[_0x2a3658(0xdc)](){const _0x38f99f=_0x2a3658;this[_0x38f99f(0xec)]();}[_0x2a3658(0xec)](){const _0x8b8daa=_0x2a3658;this[_0x8b8daa(0xe6)](!0x1),this[_0x8b8daa(0xd5)](!0x1);}[_0x2a3658(0xea)](){const _0x10002a=_0x2a3658;return{'isWebSearchEnabled':this[_0x10002a(0xdd)],'isReasoningEnabled':this[_0x10002a(0xe8)]};}static[_0x2a3658(0xda)](_0x3eb35d){const _0x2711ed=_0x2a3658,_0x147fbe={};return _0x3eb35d&&_0x3eb35d[_0x2711ed(0xd9)]&&(_0x147fbe[_0x2711ed(0xe7)]={}),_0x3eb35d&&_0x3eb35d[_0x2711ed(0xd7)]&&(_0x147fbe[_0x2711ed(0xe2)]={}),_0x147fbe;}[_0x2a3658(0xd6)](){const _0x55f325=_0x2a3658;this[_0x55f325(0xe6)](!this[_0x55f325(0xdd)]);}[_0x2a3658(0xe9)](){const _0x1dc1f3=_0x2a3658;this[_0x1dc1f3(0xd5)](!this[_0x1dc1f3(0xe8)]);}[_0x2a3658(0xe6)](_0x23a263){const _0x1d01b2=_0x2a3658;_0x23a263!==this[_0x1d01b2(0xdd)]&&(this[_0x1d01b2(0xdd)]=_0x23a263,this[_0x1d01b2(0xe3)](_0x1d01b2(0xe0),this[_0x1d01b2(0xea)]()));}[_0x2a3658(0xd5)](_0x1e6ca9){const _0x5a59f3=_0x2a3658;_0x1e6ca9!==this[_0x5a59f3(0xe8)]&&(this[_0x5a59f3(0xe8)]=_0x1e6ca9,this[_0x5a59f3(0xe3)](_0x5a59f3(0xe0),this[_0x5a59f3(0xea)]()));}}