@ckeditor/ckeditor5-ai 47.5.0 → 47.6.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (515) hide show
  1. package/build/966.ai.js +5 -0
  2. package/build/ai.js +1 -2
  3. package/build/translations/af.js +1 -1
  4. package/build/translations/ar.js +1 -1
  5. package/build/translations/ast.js +1 -1
  6. package/build/translations/az.js +1 -1
  7. package/build/translations/be.js +1 -1
  8. package/build/translations/bg.js +1 -1
  9. package/build/translations/bn.js +1 -1
  10. package/build/translations/bs.js +1 -1
  11. package/build/translations/ca.js +1 -1
  12. package/build/translations/cs.js +1 -1
  13. package/build/translations/da.js +1 -1
  14. package/build/translations/de-ch.js +1 -1
  15. package/build/translations/de.js +1 -1
  16. package/build/translations/el.js +1 -1
  17. package/build/translations/en-au.js +1 -1
  18. package/build/translations/en-gb.js +1 -1
  19. package/build/translations/en.js +1 -0
  20. package/build/translations/eo.js +1 -1
  21. package/build/translations/es-co.js +1 -1
  22. package/build/translations/es.js +1 -1
  23. package/build/translations/et.js +1 -1
  24. package/build/translations/eu.js +1 -1
  25. package/build/translations/fa.js +1 -1
  26. package/build/translations/fi.js +1 -1
  27. package/build/translations/fr.js +1 -1
  28. package/build/translations/gl.js +1 -1
  29. package/build/translations/gu.js +1 -1
  30. package/build/translations/he.js +1 -1
  31. package/build/translations/hi.js +1 -1
  32. package/build/translations/hr.js +1 -1
  33. package/build/translations/hu.js +1 -1
  34. package/build/translations/hy.js +1 -1
  35. package/build/translations/id.js +1 -1
  36. package/build/translations/it.js +1 -1
  37. package/build/translations/ja.js +1 -1
  38. package/build/translations/jv.js +1 -1
  39. package/build/translations/kk.js +1 -1
  40. package/build/translations/km.js +1 -1
  41. package/build/translations/kn.js +1 -1
  42. package/build/translations/ko.js +1 -1
  43. package/build/translations/ku.js +1 -1
  44. package/build/translations/lt.js +1 -1
  45. package/build/translations/lv.js +1 -1
  46. package/build/translations/ms.js +1 -1
  47. package/build/translations/nb.js +1 -1
  48. package/build/translations/ne.js +1 -1
  49. package/build/translations/nl.js +1 -1
  50. package/build/translations/no.js +1 -1
  51. package/build/translations/oc.js +1 -1
  52. package/build/translations/pl.js +1 -1
  53. package/build/translations/pt-br.js +1 -1
  54. package/build/translations/pt.js +1 -1
  55. package/build/translations/ro.js +1 -1
  56. package/build/translations/ru.js +1 -1
  57. package/build/translations/si.js +1 -1
  58. package/build/translations/sk.js +1 -1
  59. package/build/translations/sl.js +1 -1
  60. package/build/translations/sq.js +1 -1
  61. package/build/translations/sr-latn.js +1 -1
  62. package/build/translations/sr.js +1 -1
  63. package/build/translations/sv.js +1 -1
  64. package/build/translations/th.js +1 -1
  65. package/build/translations/ti.js +1 -1
  66. package/build/translations/tk.js +1 -1
  67. package/build/translations/tr.js +1 -1
  68. package/build/translations/tt.js +1 -1
  69. package/build/translations/ug.js +1 -1
  70. package/build/translations/uk.js +1 -1
  71. package/build/translations/ur.js +1 -1
  72. package/build/translations/uz.js +1 -1
  73. package/build/translations/vi.js +1 -1
  74. package/build/translations/zh-cn.js +1 -1
  75. package/build/translations/zh.js +1 -1
  76. package/dist/index-editor.css +387 -403
  77. package/dist/index.css +441 -413
  78. package/dist/index.js +5 -5
  79. package/dist/translations/af.js +1 -1
  80. package/dist/translations/af.umd.js +1 -1
  81. package/dist/translations/ar.js +1 -1
  82. package/dist/translations/ar.umd.js +1 -1
  83. package/dist/translations/ast.js +1 -1
  84. package/dist/translations/ast.umd.js +1 -1
  85. package/dist/translations/az.js +1 -1
  86. package/dist/translations/az.umd.js +1 -1
  87. package/dist/translations/be.js +1 -1
  88. package/dist/translations/be.umd.js +1 -1
  89. package/dist/translations/bg.js +1 -1
  90. package/dist/translations/bg.umd.js +1 -1
  91. package/dist/translations/bn.js +1 -1
  92. package/dist/translations/bn.umd.js +1 -1
  93. package/dist/translations/bs.js +1 -1
  94. package/dist/translations/bs.umd.js +1 -1
  95. package/dist/translations/ca.js +1 -1
  96. package/dist/translations/ca.umd.js +1 -1
  97. package/dist/translations/cs.js +1 -1
  98. package/dist/translations/cs.umd.js +1 -1
  99. package/dist/translations/da.js +1 -1
  100. package/dist/translations/da.umd.js +1 -1
  101. package/dist/translations/de-ch.js +1 -1
  102. package/dist/translations/de-ch.umd.js +1 -1
  103. package/dist/translations/de.js +1 -1
  104. package/dist/translations/de.umd.js +1 -1
  105. package/dist/translations/el.js +1 -1
  106. package/dist/translations/el.umd.js +1 -1
  107. package/dist/translations/en-au.js +1 -1
  108. package/dist/translations/en-au.umd.js +1 -1
  109. package/dist/translations/en-gb.js +1 -1
  110. package/dist/translations/en-gb.umd.js +1 -1
  111. package/dist/translations/en.js +1 -1
  112. package/dist/translations/en.umd.js +1 -1
  113. package/dist/translations/eo.js +1 -1
  114. package/dist/translations/eo.umd.js +1 -1
  115. package/dist/translations/es-co.js +1 -1
  116. package/dist/translations/es-co.umd.js +1 -1
  117. package/dist/translations/es.js +1 -1
  118. package/dist/translations/es.umd.js +1 -1
  119. package/dist/translations/et.js +1 -1
  120. package/dist/translations/et.umd.js +1 -1
  121. package/dist/translations/eu.js +1 -1
  122. package/dist/translations/eu.umd.js +1 -1
  123. package/dist/translations/fa.js +1 -1
  124. package/dist/translations/fa.umd.js +1 -1
  125. package/dist/translations/fi.js +1 -1
  126. package/dist/translations/fi.umd.js +1 -1
  127. package/dist/translations/fr.js +1 -1
  128. package/dist/translations/fr.umd.js +1 -1
  129. package/dist/translations/gl.js +1 -1
  130. package/dist/translations/gl.umd.js +1 -1
  131. package/dist/translations/gu.js +1 -1
  132. package/dist/translations/gu.umd.js +1 -1
  133. package/dist/translations/he.js +1 -1
  134. package/dist/translations/he.umd.js +1 -1
  135. package/dist/translations/hi.js +1 -1
  136. package/dist/translations/hi.umd.js +1 -1
  137. package/dist/translations/hr.js +1 -1
  138. package/dist/translations/hr.umd.js +1 -1
  139. package/dist/translations/hu.js +1 -1
  140. package/dist/translations/hu.umd.js +1 -1
  141. package/dist/translations/hy.js +1 -1
  142. package/dist/translations/hy.umd.js +1 -1
  143. package/dist/translations/id.js +1 -1
  144. package/dist/translations/id.umd.js +1 -1
  145. package/dist/translations/it.js +1 -1
  146. package/dist/translations/it.umd.js +1 -1
  147. package/dist/translations/ja.js +1 -1
  148. package/dist/translations/ja.umd.js +1 -1
  149. package/dist/translations/jv.js +1 -1
  150. package/dist/translations/jv.umd.js +1 -1
  151. package/dist/translations/kk.js +1 -1
  152. package/dist/translations/kk.umd.js +1 -1
  153. package/dist/translations/km.js +1 -1
  154. package/dist/translations/km.umd.js +1 -1
  155. package/dist/translations/kn.js +1 -1
  156. package/dist/translations/kn.umd.js +1 -1
  157. package/dist/translations/ko.js +1 -1
  158. package/dist/translations/ko.umd.js +1 -1
  159. package/dist/translations/ku.js +1 -1
  160. package/dist/translations/ku.umd.js +1 -1
  161. package/dist/translations/lt.js +1 -1
  162. package/dist/translations/lt.umd.js +1 -1
  163. package/dist/translations/lv.js +1 -1
  164. package/dist/translations/lv.umd.js +1 -1
  165. package/dist/translations/ms.js +1 -1
  166. package/dist/translations/ms.umd.js +1 -1
  167. package/dist/translations/nb.js +1 -1
  168. package/dist/translations/nb.umd.js +1 -1
  169. package/dist/translations/ne.js +1 -1
  170. package/dist/translations/ne.umd.js +1 -1
  171. package/dist/translations/nl.js +1 -1
  172. package/dist/translations/nl.umd.js +1 -1
  173. package/dist/translations/no.js +1 -1
  174. package/dist/translations/no.umd.js +1 -1
  175. package/dist/translations/oc.js +1 -1
  176. package/dist/translations/oc.umd.js +1 -1
  177. package/dist/translations/pl.js +1 -1
  178. package/dist/translations/pl.umd.js +1 -1
  179. package/dist/translations/pt-br.js +1 -1
  180. package/dist/translations/pt-br.umd.js +1 -1
  181. package/dist/translations/pt.js +1 -1
  182. package/dist/translations/pt.umd.js +1 -1
  183. package/dist/translations/ro.js +1 -1
  184. package/dist/translations/ro.umd.js +1 -1
  185. package/dist/translations/ru.js +1 -1
  186. package/dist/translations/ru.umd.js +1 -1
  187. package/dist/translations/si.js +1 -1
  188. package/dist/translations/si.umd.js +1 -1
  189. package/dist/translations/sk.js +1 -1
  190. package/dist/translations/sk.umd.js +1 -1
  191. package/dist/translations/sl.js +1 -1
  192. package/dist/translations/sl.umd.js +1 -1
  193. package/dist/translations/sq.js +1 -1
  194. package/dist/translations/sq.umd.js +1 -1
  195. package/dist/translations/sr-latn.js +1 -1
  196. package/dist/translations/sr-latn.umd.js +1 -1
  197. package/dist/translations/sr.js +1 -1
  198. package/dist/translations/sr.umd.js +1 -1
  199. package/dist/translations/sv.js +1 -1
  200. package/dist/translations/sv.umd.js +1 -1
  201. package/dist/translations/th.js +1 -1
  202. package/dist/translations/th.umd.js +1 -1
  203. package/dist/translations/ti.js +1 -1
  204. package/dist/translations/ti.umd.js +1 -1
  205. package/dist/translations/tk.js +1 -1
  206. package/dist/translations/tk.umd.js +1 -1
  207. package/dist/translations/tr.js +1 -1
  208. package/dist/translations/tr.umd.js +1 -1
  209. package/dist/translations/tt.js +1 -1
  210. package/dist/translations/tt.umd.js +1 -1
  211. package/dist/translations/ug.js +1 -1
  212. package/dist/translations/ug.umd.js +1 -1
  213. package/dist/translations/uk.js +1 -1
  214. package/dist/translations/uk.umd.js +1 -1
  215. package/dist/translations/ur.js +1 -1
  216. package/dist/translations/ur.umd.js +1 -1
  217. package/dist/translations/uz.js +1 -1
  218. package/dist/translations/uz.umd.js +1 -1
  219. package/dist/translations/vi.js +1 -1
  220. package/dist/translations/vi.umd.js +1 -1
  221. package/dist/translations/zh-cn.js +1 -1
  222. package/dist/translations/zh-cn.umd.js +1 -1
  223. package/dist/translations/zh.js +1 -1
  224. package/dist/translations/zh.umd.js +1 -1
  225. package/lang/contexts.json +1 -0
  226. package/lang/translations/af.po +8 -4
  227. package/lang/translations/ar.po +8 -4
  228. package/lang/translations/ast.po +8 -4
  229. package/lang/translations/az.po +8 -4
  230. package/lang/translations/be.po +8 -4
  231. package/lang/translations/bg.po +8 -4
  232. package/lang/translations/bn.po +8 -4
  233. package/lang/translations/bs.po +8 -4
  234. package/lang/translations/ca.po +8 -4
  235. package/lang/translations/cs.po +8 -4
  236. package/lang/translations/da.po +8 -4
  237. package/lang/translations/de-ch.po +8 -4
  238. package/lang/translations/de.po +8 -4
  239. package/lang/translations/el.po +8 -4
  240. package/lang/translations/en-au.po +8 -4
  241. package/lang/translations/en-gb.po +8 -4
  242. package/lang/translations/en.po +8 -4
  243. package/lang/translations/eo.po +8 -4
  244. package/lang/translations/es-co.po +8 -4
  245. package/lang/translations/es.po +8 -4
  246. package/lang/translations/et.po +8 -4
  247. package/lang/translations/eu.po +8 -4
  248. package/lang/translations/fa.po +8 -4
  249. package/lang/translations/fi.po +8 -4
  250. package/lang/translations/fr.po +8 -4
  251. package/lang/translations/gl.po +8 -4
  252. package/lang/translations/gu.po +8 -4
  253. package/lang/translations/he.po +8 -4
  254. package/lang/translations/hi.po +8 -4
  255. package/lang/translations/hr.po +8 -4
  256. package/lang/translations/hu.po +8 -4
  257. package/lang/translations/hy.po +8 -4
  258. package/lang/translations/id.po +8 -4
  259. package/lang/translations/it.po +8 -4
  260. package/lang/translations/ja.po +8 -4
  261. package/lang/translations/jv.po +8 -4
  262. package/lang/translations/kk.po +8 -4
  263. package/lang/translations/km.po +8 -4
  264. package/lang/translations/kn.po +8 -4
  265. package/lang/translations/ko.po +8 -4
  266. package/lang/translations/ku.po +8 -4
  267. package/lang/translations/lt.po +8 -4
  268. package/lang/translations/lv.po +8 -4
  269. package/lang/translations/ms.po +8 -4
  270. package/lang/translations/nb.po +8 -4
  271. package/lang/translations/ne.po +8 -4
  272. package/lang/translations/nl.po +8 -4
  273. package/lang/translations/no.po +8 -4
  274. package/lang/translations/oc.po +8 -4
  275. package/lang/translations/pl.po +8 -4
  276. package/lang/translations/pt-br.po +8 -4
  277. package/lang/translations/pt.po +8 -4
  278. package/lang/translations/ro.po +8 -4
  279. package/lang/translations/ru.po +8 -4
  280. package/lang/translations/si.po +8 -4
  281. package/lang/translations/sk.po +8 -4
  282. package/lang/translations/sl.po +8 -4
  283. package/lang/translations/sq.po +8 -4
  284. package/lang/translations/sr-latn.po +8 -4
  285. package/lang/translations/sr.po +8 -4
  286. package/lang/translations/sv.po +8 -4
  287. package/lang/translations/th.po +8 -4
  288. package/lang/translations/ti.po +8 -4
  289. package/lang/translations/tk.po +8 -4
  290. package/lang/translations/tr.po +8 -4
  291. package/lang/translations/tt.po +8 -4
  292. package/lang/translations/ug.po +8 -4
  293. package/lang/translations/uk.po +8 -4
  294. package/lang/translations/ur.po +8 -4
  295. package/lang/translations/uz.po +8 -4
  296. package/lang/translations/vi.po +8 -4
  297. package/lang/translations/zh-cn.po +8 -4
  298. package/lang/translations/zh.po +8 -4
  299. package/package.json +21 -21
  300. package/src/aiactions/aiactions.js +1 -1
  301. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  302. package/src/aiactions/model/aiactionsreply.js +1 -1
  303. package/src/aiassistant/adapters/aiadapter.js +1 -1
  304. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  305. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  306. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  307. package/src/aiassistant/aiassistant.js +1 -1
  308. package/src/aiassistant/aiassistantediting.js +1 -1
  309. package/src/aiassistant/aiassistantui.js +1 -1
  310. package/src/aiassistant/legacyerrors.js +1 -1
  311. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  312. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  313. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  314. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  315. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  316. package/src/aiassistant/ui/form/aiformview.js +1 -1
  317. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  318. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  319. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  320. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  321. package/src/aiassistant/utils/common-translations.js +1 -1
  322. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  323. package/src/aiballoon/aiballoon.js +1 -1
  324. package/src/aiballoon/ui/aiballoonview.js +1 -1
  325. package/src/aichat/aichat.d.ts +12 -8
  326. package/src/aichat/aichat.js +1 -1
  327. package/src/aichat/aichatballoon.js +1 -1
  328. package/src/aichat/aichatcontroller.d.ts +4 -0
  329. package/src/aichat/aichatcontroller.js +1 -1
  330. package/src/aichat/aichatui.d.ts +24 -1
  331. package/src/aichat/aichatui.js +1 -1
  332. package/src/aichat/model/aichatcontext.js +1 -1
  333. package/src/aichat/model/aichatconversation.d.ts +13 -0
  334. package/src/aichat/model/aichatconversation.js +1 -1
  335. package/src/aichat/model/aichatinteraction.js +1 -1
  336. package/src/aichat/ui/aichatballoonview.js +1 -1
  337. package/src/aichat/ui/aichatcontrolsview.d.ts +5 -1
  338. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  339. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  340. package/src/aichat/ui/aichatfeedview.js +1 -1
  341. package/src/aichat/ui/aichatheaderview.js +1 -1
  342. package/src/aichat/ui/aichatview.js +1 -1
  343. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  344. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  345. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  346. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  347. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  348. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  349. package/src/aichat/ui/controls/aichatpromptinputview.d.ts +5 -0
  350. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  351. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  352. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  353. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  354. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  355. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  356. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  357. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  358. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  359. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  360. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  361. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  362. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  363. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  364. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  365. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  366. package/src/aichat/utils/eventnames.js +1 -1
  367. package/src/aichat/utils/promisequeue.js +1 -1
  368. package/src/aichathistory/aichathistory.js +1 -1
  369. package/src/aichathistory/aichathistorycontroller.js +1 -1
  370. package/src/aichathistory/aichathistoryui.js +1 -1
  371. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  372. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  373. package/src/aichathistory/ui/aichathistorylistitemview.d.ts +1 -1
  374. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  375. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  376. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  377. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  378. package/src/aichatshortcuts/aichatshortcuts.d.ts +324 -0
  379. package/src/aichatshortcuts/aichatshortcuts.js +23 -0
  380. package/src/aichatshortcuts/ui/aichatshortcutsview.d.ts +23 -0
  381. package/src/aichatshortcuts/ui/aichatshortcutsview.js +23 -0
  382. package/src/aichatshortcuts/ui/aichatshortcutview.d.ts +23 -0
  383. package/src/aichatshortcuts/ui/aichatshortcutview.js +23 -0
  384. package/src/aiconfig.d.ts +7 -0
  385. package/src/aicore/aiconnector.js +1 -1
  386. package/src/aicore/aiediting.js +1 -1
  387. package/src/aicore/model/aicapabilities.d.ts +8 -0
  388. package/src/aicore/model/aicapabilities.js +1 -1
  389. package/src/aicore/model/aicontext.d.ts +7 -1
  390. package/src/aicore/model/aicontext.js +1 -1
  391. package/src/aicore/model/aiinteraction.js +1 -1
  392. package/src/aicore/model/aimodels.js +1 -1
  393. package/src/aicore/model/aireply.js +1 -1
  394. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  395. package/src/aicore/pipeline/airesponseparser.js +2 -2
  396. package/src/aicore/ui/aidisclaimerview.js +1 -1
  397. package/src/aicore/ui/aiskeleton.js +1 -1
  398. package/src/aicore/ui/aispinner.js +1 -1
  399. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  400. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  401. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  402. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  403. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  404. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  405. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  406. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  407. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  408. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  409. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  410. package/src/aicore/utils/common-translations.js +1 -1
  411. package/src/aicore/utils/createresizebutton.d.ts +1 -0
  412. package/src/aicore/utils/createresizebutton.js +1 -1
  413. package/src/aicore/utils/documentposition.js +1 -1
  414. package/src/aicore/utils/documentrange.js +1 -1
  415. package/src/aicore/utils/eventnames.js +1 -1
  416. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  417. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  418. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  419. package/src/aicore/utils/htmlparser.js +1 -1
  420. package/src/aicore/utils/htmlstreamer.js +1 -1
  421. package/src/aicore/utils/scrollmanager.js +1 -1
  422. package/src/aieditorintegration/aieditorintegration.js +1 -1
  423. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  424. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  425. package/src/aiquickactions/aiquickactions.js +1 -1
  426. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  427. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  428. package/src/aiquickactions/aiquickactionsui.js +1 -1
  429. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  430. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  431. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  432. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  433. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  434. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  435. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  436. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  437. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  438. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  439. package/src/aireviewcore/aireviewcoreui.js +1 -1
  440. package/src/aireviewcore/model/aireviewcheck.d.ts +4 -0
  441. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  442. package/src/aireviewcore/model/aireviewchecklist.d.ts +3 -3
  443. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  444. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  445. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  446. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  447. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  448. package/src/aireviewcore/types.d.ts +11 -2
  449. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  450. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  451. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  452. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  453. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  454. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  455. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  456. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  457. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  458. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  459. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  460. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  461. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  462. package/src/aireviewmode/aireviewcheckdefinitions.d.ts +4 -0
  463. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  464. package/src/aireviewmode/aireviewmode.d.ts +95 -0
  465. package/src/aireviewmode/aireviewmode.js +1 -1
  466. package/src/aireviewmode/aireviewmodecontroller.d.ts +5 -0
  467. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  468. package/src/aireviewmode/aireviewmodeui.js +1 -1
  469. package/src/aireviewmode/model/aireviewcheckcustom.d.ts +6 -3
  470. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  471. package/src/aireviewmode/model/aireviewcheckextra.d.ts +35 -0
  472. package/src/aireviewmode/model/aireviewcheckextra.js +23 -0
  473. package/src/aireviewmode/model/aireviewcustomcheckrun.d.ts +2 -1
  474. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  475. package/src/aireviewmode/model/aireviewextracheckrun.d.ts +20 -0
  476. package/src/aireviewmode/model/aireviewextracheckrun.js +23 -0
  477. package/src/aireviewmode/model/aireviewmodechecklist.d.ts +10 -0
  478. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  479. package/src/aitabs/aitabs.js +1 -1
  480. package/src/aitabs/aitabsmainview.js +1 -1
  481. package/src/aitabs/tabs/aitabsview.js +1 -1
  482. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  483. package/src/aitabs/tabs/tabpanelview.js +1 -1
  484. package/src/aitranslate/aitranslate.js +1 -1
  485. package/src/aitranslate/aitranslatecontroller.js +1 -1
  486. package/src/aitranslate/aitranslateui.js +1 -1
  487. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  488. package/src/aitranslate/model/aitranslatechecklist.d.ts +5 -0
  489. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  490. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  491. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  492. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  493. package/src/augmentation.d.ts +2 -0
  494. package/src/errors.js +1 -1
  495. package/src/errorsmap.js +1 -1
  496. package/src/index.d.ts +2 -1
  497. package/src/index.js +1 -1
  498. package/theme/aichat/aichat-controls/aichat-context-controls.css +0 -1
  499. package/theme/aichat/aichat-controls/aichat-controls-button.css +22 -23
  500. package/theme/aichat/aichat-controls/prompt-input.css +23 -0
  501. package/theme/aichat/aichat-controls.css +0 -19
  502. package/theme/aichat/aichathistory.css +1 -1
  503. package/theme/aichat/aiminitoolbar.css +0 -16
  504. package/theme/aichatshortcuts/aichatshortcuts.css +84 -0
  505. package/theme/aieditorintegration/aitogglebutton.css +5 -11
  506. package/theme/aiquickactions/aiquickactions.css +6 -11
  507. package/theme/aiquickactions/aiquickactionsballoon.css +37 -29
  508. package/theme/aireviewcore/aireviewcore-check-run.css +4 -0
  509. package/theme/aireviewcore/aireviewcore.css +4 -4
  510. package/theme/aitabs/aitabsresizebutton.css +14 -0
  511. package/theme/aitranslate/aitranslate.css +4 -0
  512. package/theme/common/aibutton.css +56 -67
  513. package/theme/common/aiheader.css +1 -1
  514. package/theme/common/aisuggestioncontentparttoolbar.css +1 -1
  515. package/theme/common/aisuggestionstreamablecontent.css +4 -1
@@ -0,0 +1,324 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aichatshortcuts/aichatshortcuts
7
+ * @publicApi
8
+ */
9
+ import { AIChatUI } from '../aichat/aichatui.js';
10
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
11
+ import '../../theme/aichatshortcuts/aichatshortcuts.css';
12
+ /**
13
+ * The type of the shortcut.
14
+ */
15
+ export declare enum AIChatShortcutType {
16
+ /**
17
+ * A shortcut that interacts with the AI Chat.
18
+ */
19
+ CHAT = "chat",
20
+ /**
21
+ * A shortcut that interacts with the AI Review.
22
+ */
23
+ REVIEW = "review",
24
+ /**
25
+ * A shortcut that interacts with the AI Translate.
26
+ */
27
+ TRANSLATE = "translate"
28
+ }
29
+ /**
30
+ * The plugin that displays a list of handy, configurable shortcuts in the {@link module:ai/aichat/aichat~AIChat AI Chat} feed
31
+ * upon opening a new conversation.
32
+ *
33
+ * Learn more about configuring AI Chat Shortcuts in {@link module:ai/aichat/aichat~AIChatConfig#shortcuts}.
34
+ */
35
+ export declare class AIChatShortcuts extends ContextPlugin {
36
+ /**
37
+ * @inheritDoc
38
+ */
39
+ static get requires(): readonly [typeof AIChatUI];
40
+ /**
41
+ * @inheritDoc
42
+ */
43
+ static get pluginName(): "AIChatShortcuts";
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get isOfficialPlugin(): true;
48
+ /**
49
+ * @inheritDoc
50
+ */
51
+ static get isPremiumPlugin(): true;
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ init(): void;
56
+ }
57
+ declare module '../aichat/aichat.js' {
58
+ interface AIChatConfig {
59
+ /**
60
+ * A list of shortcuts to be displayed in the AI Chat Shortcuts feed.
61
+ *
62
+ * ```ts
63
+ * ClassicEditor
64
+ * .create( editorElement, {
65
+ * ai: {
66
+ * chat: {
67
+ * shortcuts: [
68
+ * // ...
69
+ * ]
70
+ * }
71
+ * }
72
+ * } )
73
+ * .then( ... )
74
+ * .catch( ... );
75
+ * ```
76
+ */
77
+ shortcuts?: ReadonlyArray<AIChatShortcutDefinition>;
78
+ }
79
+ }
80
+ /**
81
+ * Represents all shortcut definition types:
82
+ *
83
+ * * {@link module:ai/aichatshortcuts/aichatshortcuts~AIChatShortcutChatDefinition Chat shortcuts},
84
+ * * {@link module:ai/aichatshortcuts/aichatshortcuts~AIChatShortcutReviewDefinition Review shortcuts},
85
+ * * {@link module:ai/aichatshortcuts/aichatshortcuts~AIChatShortcutTranslateDefinition Translate shortcuts}.
86
+ */
87
+ export type AIChatShortcutDefinition = AIChatShortcutChatDefinition | AIChatShortcutReviewDefinition | AIChatShortcutTranslateDefinition;
88
+ /**
89
+ * The base definition for all shortcut types.
90
+ */
91
+ export interface AIChatShortcutBaseDefinition {
92
+ /**
93
+ * The unique identifier of the shortcut.
94
+ */
95
+ readonly id: string;
96
+ /**
97
+ * The human-readable label of the shortcut.
98
+ */
99
+ readonly label: string;
100
+ /**
101
+ * The type of the shortcut.
102
+ */
103
+ readonly type: AIChatShortcutType;
104
+ /**
105
+ * The icon of the shortcut in SVG string format.
106
+ *
107
+ * Learn more about setting the icon in the {@link module:ui/icon/iconview~IconView#content `IconView` API reference}.
108
+ *
109
+ * **Note**: When not provided, a generic icon associated with the shortcut type will be used instead.
110
+ */
111
+ readonly icon?: string;
112
+ }
113
+ /**
114
+ * A shortcut that interacts with the AI Chat.
115
+ *
116
+ * Example of a shortcut that executes an AI Chat prompt with {@glink features/ai/ckeditor-ai-chat#reasoning Reasoning} and
117
+ * {@glink features/ai/ckeditor-ai-chat#web-search Web&nbsp;Search} features turned on:
118
+ * ```ts
119
+ * {
120
+ * id: 'continue-writing',
121
+ * type: 'chat',
122
+ * label: 'Continue writing',
123
+ * prompt: 'Continue writing this article. Match the existing tone, vocabulary level, and formatting. ' +
124
+ * 'Do not repeat or summarize earlier sections. Ensure logical flow and progression of ideas. ' +
125
+ * 'Add approximately 3 paragraphs.',
126
+ * useReasoning: true,
127
+ * useWebSearch: true
128
+ * }
129
+ * ```
130
+ *
131
+ * Example of a shortcut that runs in draft mode allowing the user to fine-tune the prompt before sending it:
132
+ * ```ts
133
+ * {
134
+ * id: 'rewrite-article',
135
+ * type: 'chat',
136
+ * label: 'Rewrite the article',
137
+ * prompt: `Rewrite the article below for the following audience:
138
+ *
139
+ * Audience: [e.g. Product / Engineering /Leadership]
140
+ * Primary concern: [e.g., escalations, integrations, customer sentiment]
141
+ * Context: [e.g. Internal performance review]
142
+ *
143
+ * Guidelines:
144
+ *
145
+ * - Emphasize sections most relevant to this audience
146
+ * - De-emphasize or condense less relevant details
147
+ * - Adjust terminology to match how this team thinks and speaks
148
+ * - Keep metrics accurate and unchanged
149
+ *
150
+ * Tone: [e.g. Clear, practical, collaborative]`,
151
+ * useReasoning: true,
152
+ * draftMode: true
153
+ * },
154
+ * ```
155
+ */
156
+ export interface AIChatShortcutChatDefinition extends AIChatShortcutBaseDefinition {
157
+ type: AIChatShortcutType.CHAT;
158
+ /**
159
+ * The prompt to be sent to the AI Chat.
160
+ */
161
+ readonly prompt: string;
162
+ /**
163
+ * When enabled, the shortcut will use draft mode, which means that the prompt will
164
+ * not be submitted immediately, instead the AI Chat input will be filled with the shortcut prompt.
165
+ * This gives the user ability to fine-tune the prompt, or fill in missing data, before sending it to the AI Chat.
166
+ *
167
+ * @default false
168
+ */
169
+ readonly draftMode?: boolean;
170
+ /**
171
+ * When enabled, the shortcut will run in web search mode, which means the AI Chat will access
172
+ * and retrieve real-time information from the internet.
173
+ *
174
+ * See the {@glink features/ai/ckeditor-ai-integration#supported-ai-models integration guide} to learn more about models
175
+ * supporting web search.
176
+ *
177
+ * @default false
178
+ */
179
+ readonly useWebSearch?: boolean;
180
+ /**
181
+ * When enabled, the shortcut will run in reasoning mode, which means the AI Chat will use the
182
+ * ability to think through problems, draw logical conclusions, and make sense of complex information.
183
+ *
184
+ * See the {@glink features/ai/ckeditor-ai-integration#supported-ai-models integration guide} to learn more about models
185
+ * supporting reasoning.
186
+ *
187
+ * @default false
188
+ */
189
+ readonly useReasoning?: boolean;
190
+ /**
191
+ * The ID of the model to be used for the AI Chat shortcut.
192
+ *
193
+ * See the {@glink features/ai/ckeditor-ai-integration#supported-ai-models integration guide} to learn more about
194
+ * available models.
195
+ *
196
+ * **Note**: The used ID must be enabled in the
197
+ * {@link module:ai/aicore/model/aimodels~AIModelsConfig#displayedModels `config.ai.models.displayedModels`}.
198
+ *
199
+ * **Note**: When not provided, the default model will be used. See
200
+ * {@link module:ai/aicore/model/aimodels~AIModelsConfig#defaultModelId `config.ai.models.defaultModelId`} to learn more.
201
+ */
202
+ readonly model?: string;
203
+ }
204
+ /**
205
+ * A shortcut that interacts with the AI Review.
206
+ *
207
+ * **Note**: This shortcut type requires the {@link module:ai/aireviewmode/aireviewmode~AIReviewMode `AIReviewMode`} plugin to be loaded.
208
+ *
209
+ * This type of shortcut can run both predefined and extra review checks. The list of predefined review checks with available parameters
210
+ * can be found in the {@glink features/ai/ckeditor-ai-review#review-commands AI Review documentation}. Extra review checks are defined
211
+ * via the {@link module:ai/aireviewmode/aireviewmode~AIReviewModeConfig#extraCommands `config.ai.review.extraCommands`} configuration.
212
+ *
213
+ * Example of a shortcut that opens the AI Review mode:
214
+ * ```ts
215
+ * {
216
+ * id: 'open-review',
217
+ * label: 'Open review',
218
+ * type: 'review'
219
+ * }
220
+ * ```
221
+ *
222
+ * Example of a shortcut that runs the `'correctness'` review check:
223
+ * ```ts
224
+ * {
225
+ * id: 'check-correctness',
226
+ * label: 'Proofread this document',
227
+ * type: 'review',
228
+ * check: 'correctness'
229
+ * }
230
+ * ```
231
+ *
232
+ * Example of a shortcut that runs the `'tone'` review check with a parameter:
233
+ * ```ts
234
+ * {
235
+ * id: 'adjust-tone',
236
+ * label: 'Change the tone of this document to casual',
237
+ * type: 'review',
238
+ * check: 'tone',
239
+ * params: [ 'casual' ]
240
+ * }
241
+ * ```
242
+ *
243
+ * Example of a shortcut that runs the `'custom'` review check with a specific model and a prompt:
244
+ * ```ts
245
+ * {
246
+ * id: 'custom-review',
247
+ * label: 'Custom grammar check using the gpt-5.1 model',
248
+ * type: 'review',
249
+ * check: 'custom',
250
+ * model: 'gpt-5.1',
251
+ * prompt: 'Check grammar and style.'
252
+ * }
253
+ * ```
254
+ */
255
+ export interface AIChatShortcutReviewDefinition extends AIChatShortcutBaseDefinition {
256
+ type: AIChatShortcutType.REVIEW;
257
+ /**
258
+ * The ID of the review check to be run.
259
+ *
260
+ * **Note**: When not provided, the shortcut will switch the user interface to the AI Review.
261
+ *
262
+ * See {@link module:ai/aireviewmode/aireviewmode~AIReviewModeConfig#availableCommands `config.ai.review.availableCommands`}
263
+ * for the list of available review checks.
264
+ */
265
+ readonly check?: string;
266
+ /**
267
+ * The ID of the model to be used for the `'custom'` review check that requires a model identifier.
268
+ *
269
+ * See the {@glink features/ai/ckeditor-ai-integration#supported-ai-models integration guide} to learn more about
270
+ * available models.
271
+ *
272
+ * **Note**: When not provided, the default model will be used instead. See
273
+ * {@link module:ai/aicore/model/aimodels~AIModelsConfig#defaultModelId `config.ai.models.defaultModelId`} to learn more.
274
+ */
275
+ readonly model?: string;
276
+ /**
277
+ * The prompt to be sent to the AI Review for the `'custom'` review check that requires a prompt.
278
+ */
279
+ readonly prompt?: string;
280
+ /**
281
+ * The parameters to be used for review checks that require parameters (e.g. `'length'`, `'tone'`, etc.).
282
+ */
283
+ readonly params?: Array<string>;
284
+ }
285
+ /**
286
+ * A shortcut that interacts with the AI Translate.
287
+ *
288
+ * **Note**: This shortcut type requires the {@link module:ai/aitranslate/aitranslate~AITranslate `AITranslate`} plugin to be loaded.
289
+ *
290
+ * This type of shortcut can run the translation with any of the available languages. It can be
291
+ * {@glink features/ai/ckeditor-ai-translate#languages-list one of the languages available by default},
292
+ * or a custom language defined by the integrator via the
293
+ * {@link module:ai/aitranslate/aitranslate~AITranslateConfig#languages `config.ai.translate.languages`} configuration option.
294
+ *
295
+ * Example of a shortcut that opens the AI Translate mode:
296
+ * ```ts
297
+ * {
298
+ * id: 'open-translate',
299
+ * label: 'Open translate',
300
+ * type: 'translate'
301
+ * }
302
+ * ```
303
+ *
304
+ * Example of a shortcut that runs the translation to Spanish:
305
+ * ```ts
306
+ * {
307
+ * id: 'translate-to-spanish',
308
+ * label: 'Translate this document to Spanish',
309
+ * type: 'translate',
310
+ * language: 'spanish'
311
+ * }
312
+ * ```
313
+ */
314
+ export interface AIChatShortcutTranslateDefinition extends AIChatShortcutBaseDefinition {
315
+ type: AIChatShortcutType.TRANSLATE;
316
+ /**
317
+ * The language to be used for the translation.
318
+ *
319
+ * See {@link module:ai/aitranslate/aitranslate~AITranslateConfig#languages} for the list of supported languages.
320
+ *
321
+ * **Note**: When not provided, the shortcut will switch the user interface to the AI Translate.
322
+ */
323
+ readonly language?: string;
324
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x1c85f6=_0x33d0;(function(_0xb6d5c,_0xb1fc8c){const _0x4a2177=_0x33d0,_0x1be831=_0xb6d5c();while(!![]){try{const _0x4b85ca=-parseInt(_0x4a2177(0x21f))/0x1*(parseInt(_0x4a2177(0x227))/0x2)+parseInt(_0x4a2177(0x20a))/0x3*(-parseInt(_0x4a2177(0x233))/0x4)+parseInt(_0x4a2177(0x231))/0x5+-parseInt(_0x4a2177(0x1db))/0x6+-parseInt(_0x4a2177(0x1eb))/0x7*(parseInt(_0x4a2177(0x1dd))/0x8)+parseInt(_0x4a2177(0x209))/0x9*(parseInt(_0x4a2177(0x1d9))/0xa)+parseInt(_0x4a2177(0x217))/0xb;if(_0x4b85ca===_0xb1fc8c)break;else _0x1be831['push'](_0x1be831['shift']());}catch(_0x3d8519){_0x1be831['push'](_0x1be831['shift']());}}}(_0x3f5c,0x61750));import{AIChatUI as _0x42689e}from'../aichat/aichatui.js';import{ContextPlugin as _0xe67580}from'ckeditor5/src/core.js';function _0x3f5c(){const _0x2379f8=['_aiChatUI','params','chat-shortcuts','9FctlhU','3Rxrvcz','forEach','element','_validateShortcuts','setPromptInputValue','args','getDefault','init','activateTab','ai.chat.shortcuts','language','isPremiumPlugin','CHAT','26529910PXHuEM','translate','_shortcutsView','conversationCreated','_switchTab','addFeedItemCustomElement','AIChatShortcuts','check','56326XOBvJa','_runChatShortcut','pluginName','REVIEW','prompt','destroy','setWebSearch','_runReviewShortcut','16MEzoab','view','review','setModel','custom','config','has','label','length','find','866380Jvqrws','render','1668568bNumYz','get','plugins','203990dAAdck','listenTo','3998898baglGw','getModel','152LLFbVj','_removeShortcuts','ai-chat-shortcuts-translate-not-found','setReasoning','ai-chat-shortcuts-review-mode-not-found','AITabs','AIChat','type','isOfficialPlugin','activeConversation','_injectShortcuts','focusPromptInput','context','runReviewCheck','247604ENkjLe','fire','removeFeedItem','ai-chat-shortcuts-invalid-config','values','chat','TRANSLATE','source','execute','string','AIReviewModeUI','_executeShortcut','includes','sendMessage','addCurrentDocumentToChatContext','_shortcuts','interactionStarted','AITranslateUI','chatModels','requires','reviewMode','locale','isFromHistory','AIChatController','hasFeedItem','_runTranslateShortcut','ai-chat-shortcuts-ai-tabs-not-found'];_0x3f5c=function(){return _0x2379f8;};return _0x3f5c();}import{AIChatShortcutsView as _0x29d3f9}from'./ui/aichatshortcutsview.js';import{CKEditorError as _0x6abf11}from'ckeditor5/src/utils.js';import'../../theme/aichatshortcuts/aichatshortcuts.css';const kt=_0x1c85f6(0x208);export var AIChatShortcutType;function _0x33d0(_0x5dbcf5,_0x1571c0){const _0x3f5c26=_0x3f5c();return _0x33d0=function(_0x33d016,_0x45c8ed){_0x33d016=_0x33d016-0x1d8;let _0xe799b0=_0x3f5c26[_0x33d016];return _0xe799b0;},_0x33d0(_0x5dbcf5,_0x1571c0);}!function(_0x429e9c){const _0x369665=_0x1c85f6;_0x429e9c[_0x369665(0x216)]=_0x369665(0x1f0),_0x429e9c[_0x369665(0x222)]=_0x369665(0x229),_0x429e9c[_0x369665(0x1f1)]=_0x369665(0x218);}(AIChatShortcutType||(AIChatShortcutType={}));export class AIChatShortcuts extends _0xe67580{[_0x1c85f6(0x1fa)];[_0x1c85f6(0x219)];[_0x1c85f6(0x206)];static get[_0x1c85f6(0x1fe)](){return[_0x42689e];}static get[_0x1c85f6(0x221)](){const _0x50cd26=_0x1c85f6;return _0x50cd26(0x21d);}static get[_0x1c85f6(0x1e5)](){return!0x0;}static get[_0x1c85f6(0x215)](){return!0x0;}[_0x1c85f6(0x211)](){const _0x2e4625=_0x1c85f6;this[_0x2e4625(0x206)]=this[_0x2e4625(0x1e9)][_0x2e4625(0x1d8)][_0x2e4625(0x234)](_0x42689e),this[_0x2e4625(0x1fa)]=this[_0x2e4625(0x1e9)][_0x2e4625(0x22c)][_0x2e4625(0x234)](_0x2e4625(0x213))??[];const _0x1bef7c=this[_0x2e4625(0x1e9)][_0x2e4625(0x1d8)][_0x2e4625(0x234)](_0x2e4625(0x202));this[_0x2e4625(0x1fa)][_0x2e4625(0x22f)]&&(this[_0x2e4625(0x20d)](),this[_0x2e4625(0x206)]['on'](_0x2e4625(0x21a),()=>{const _0x564a95=_0x2e4625;_0x1bef7c[_0x564a95(0x1e6)][_0x564a95(0x201)]||this[_0x564a95(0x1e7)]();}),this[_0x2e4625(0x1da)](_0x1bef7c,_0x2e4625(0x1fb),()=>{const _0x3dd863=_0x2e4625;this[_0x3dd863(0x1de)]();}));}[_0x1c85f6(0x20d)](){const _0x3eeda4=_0x1c85f6,_0x3271bf=Object[_0x3eeda4(0x1ef)](AIChatShortcutType);this[_0x3eeda4(0x1fa)][_0x3eeda4(0x20b)](_0x1c77d2=>{const _0x1a3a75=_0x3eeda4;let _0x15053f=!0x0;if(_0x1c77d2['id']&&_0x1c77d2[_0x1a3a75(0x22e)]&&_0x3271bf[_0x1a3a75(0x1f7)](_0x1c77d2[_0x1a3a75(0x1e4)])?_0x1a3a75(0x1f0)===_0x1c77d2[_0x1a3a75(0x1e4)]&&(_0x15053f=_0x1a3a75(0x1f4)==typeof _0x1c77d2[_0x1a3a75(0x223)]):_0x15053f=!0x1,!_0x15053f)throw new _0x6abf11(_0x1a3a75(0x1ee),this[_0x1a3a75(0x1e9)],{'shortcut':_0x1c77d2});});}[_0x1c85f6(0x1e7)](){const _0x23b8fd=_0x1c85f6,_0x310d2f=this[_0x23b8fd(0x1e9)][_0x23b8fd(0x1d8)][_0x23b8fd(0x234)](_0x42689e);this[_0x23b8fd(0x219)]=new _0x29d3f9(this[_0x23b8fd(0x1e9)][_0x23b8fd(0x200)],this[_0x23b8fd(0x1fa)]),this[_0x23b8fd(0x219)][_0x23b8fd(0x232)](),_0x310d2f[_0x23b8fd(0x21c)](this[_0x23b8fd(0x219)][_0x23b8fd(0x20c)],kt),this[_0x23b8fd(0x219)]['on'](_0x23b8fd(0x1f3),_0x50ceae=>{const _0x4f8a38=_0x23b8fd,_0x2de2ce=_0x50ceae[_0x4f8a38(0x1f2)]['id'];this[_0x4f8a38(0x1f6)](_0x2de2ce);});}[_0x1c85f6(0x1de)](){const _0x1d378c=_0x1c85f6,_0xde378d=this[_0x1d378c(0x1e9)][_0x1d378c(0x1d8)][_0x1d378c(0x234)](_0x42689e);_0xde378d[_0x1d378c(0x203)](kt)&&_0xde378d[_0x1d378c(0x1ed)](kt),this[_0x1d378c(0x219)]?.[_0x1d378c(0x224)]();}[_0x1c85f6(0x1f6)](_0x1a9bca){const _0x5f5319=_0x1c85f6,_0x588982=this[_0x5f5319(0x1fa)][_0x5f5319(0x230)](_0x59f78a=>_0x59f78a['id']===_0x1a9bca),_0x3dad8c=_0x588982[_0x5f5319(0x1e4)];_0x5f5319(0x1f0)===_0x3dad8c?this[_0x5f5319(0x220)](_0x588982):_0x5f5319(0x229)===_0x3dad8c?_0x588982[_0x5f5319(0x21e)]?this[_0x5f5319(0x226)](_0x588982):this[_0x5f5319(0x21b)](_0x5f5319(0x1ff)):_0x5f5319(0x218)===_0x3dad8c&&(_0x588982[_0x5f5319(0x214)]?this[_0x5f5319(0x204)](_0x588982):this[_0x5f5319(0x21b)](_0x5f5319(0x218)));}[_0x1c85f6(0x21b)](_0x16ab0a){const _0xe12d91=_0x1c85f6;if(!this[_0xe12d91(0x1e9)][_0xe12d91(0x1d8)][_0xe12d91(0x22d)](_0xe12d91(0x1e2)))throw new _0x6abf11(_0xe12d91(0x205),this[_0xe12d91(0x1e9)],{'tabName':_0x16ab0a});this[_0xe12d91(0x1e9)][_0xe12d91(0x1d8)][_0xe12d91(0x234)](_0xe12d91(0x1e2))[_0xe12d91(0x228)][_0xe12d91(0x212)](_0x16ab0a);}async[_0x1c85f6(0x220)]({prompt:_0x44e66a,draftMode:_0x4f9582,useWebSearch:_0x42df7e=!0x1,useReasoning:_0x17b8d3=!0x1,model:_0x56f810}){const _0x5ed566=_0x1c85f6,_0x36d633=this[_0x5ed566(0x1e9)][_0x5ed566(0x1d8)][_0x5ed566(0x234)](_0x5ed566(0x1e3)),_0x4406f9=this[_0x5ed566(0x1e9)][_0x5ed566(0x1d8)][_0x5ed566(0x234)](_0x5ed566(0x202)),_0x4adb63=_0x4406f9[_0x5ed566(0x1e6)];let _0x13e816;_0x13e816=_0x56f810?await _0x4adb63[_0x5ed566(0x1fd)][_0x5ed566(0x1dc)](_0x56f810):await _0x4adb63[_0x5ed566(0x1fd)][_0x5ed566(0x210)](),_0x13e816&&await _0x4adb63[_0x5ed566(0x22a)](_0x13e816),_0x4adb63[_0x5ed566(0x225)](_0x42df7e),_0x4adb63[_0x5ed566(0x1e0)](_0x17b8d3),_0x4406f9[_0x5ed566(0x1f9)](),_0x4f9582?(this[_0x5ed566(0x206)][_0x5ed566(0x20e)](_0x44e66a),this[_0x5ed566(0x206)][_0x5ed566(0x1e8)](!0x0)):_0x36d633[_0x5ed566(0x1f8)]({'message':_0x44e66a});}[_0x1c85f6(0x226)]({check:_0x3707ed,model:_0x11f1fa,prompt:_0x435d2b,params:_0x5c2080}){const _0x435ff7=_0x1c85f6;if(!this[_0x435ff7(0x1e9)][_0x435ff7(0x1d8)][_0x435ff7(0x22d)](_0x435ff7(0x1f5)))throw new _0x6abf11(_0x435ff7(0x1e1),this[_0x435ff7(0x1e9)]);this[_0x435ff7(0x21b)](_0x435ff7(0x1ff));const _0x3f5f54={'id':_0x3707ed,'isCustom':_0x435ff7(0x22b)===_0x3707ed};_0x11f1fa&&_0x435d2b&&(_0x3f5f54[_0x435ff7(0x20f)]={'model':_0x11f1fa,'prompt':_0x435d2b}),_0x5c2080&&(_0x3f5f54[_0x435ff7(0x207)]=_0x5c2080),this[_0x435ff7(0x1e9)][_0x435ff7(0x1d8)][_0x435ff7(0x234)](_0x435ff7(0x1f5))[_0x435ff7(0x1ec)](_0x435ff7(0x1ea),_0x3f5f54);}[_0x1c85f6(0x204)]({language:_0x142577}){const _0xd58bb3=_0x1c85f6;if(!this[_0xd58bb3(0x1e9)][_0xd58bb3(0x1d8)][_0xd58bb3(0x22d)](_0xd58bb3(0x1fc)))throw new _0x6abf11(_0xd58bb3(0x1df),this[_0xd58bb3(0x1e9)]);this[_0xd58bb3(0x21b)](_0xd58bb3(0x218)),this[_0xd58bb3(0x1e9)][_0xd58bb3(0x1d8)][_0xd58bb3(0x234)](_0xd58bb3(0x1fc))[_0xd58bb3(0x1ec)](_0xd58bb3(0x1ea),{'id':_0x142577,'args':{'language':_0x142577}});}}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aichatshortcuts/ui/aichatshortcutsview
7
+ */
8
+ import { ListView, View } from 'ckeditor5/src/ui.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ import { type AIChatShortcutDefinition } from '../aichatshortcuts.js';
11
+ /**
12
+ * The view that displays the list of shortcuts in the AI Chat feed.
13
+ */
14
+ export declare class AIChatShortcutsView extends View {
15
+ /**
16
+ * The list view that displays the shortcuts.
17
+ */
18
+ listView: ListView;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ constructor(locale: Locale, shortcuts: ReadonlyArray<AIChatShortcutDefinition>);
23
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ const _0x4c6a18=_0x38a3;function _0x18cc(){const _0x128993=['items','add','2053srxeqk','listView','ck-ai-chat-shortcuts','294684NYkwPH','2862240xYukMU','6824DxHyxZ','7248645ECZgRa','delegate','children','11599vscEsc','setTemplate','map','addMany','3803739yppBIM','79338aaYUnA','div','execute','locale'];_0x18cc=function(){return _0x128993;};return _0x18cc();}(function(_0x21d466,_0x42fc1f){const _0x530d9d=_0x38a3,_0x43512b=_0x21d466();while(!![]){try{const _0x53125e=parseInt(_0x530d9d(0x83))/0x1+-parseInt(_0x530d9d(0x86))/0x2+-parseInt(_0x530d9d(0x7c))/0x3+-parseInt(_0x530d9d(0x73))/0x4+parseInt(_0x530d9d(0x75))/0x5+parseInt(_0x530d9d(0x7d))/0x6+parseInt(_0x530d9d(0x78))/0x7*(parseInt(_0x530d9d(0x74))/0x8);if(_0x53125e===_0x42fc1f)break;else _0x43512b['push'](_0x43512b['shift']());}catch(_0x25e269){_0x43512b['push'](_0x43512b['shift']());}}}(_0x18cc,0xb685b));import{ListItemView as _0x41d24d,ListView as _0x2b0111,View as _0x4cf505}from'ckeditor5/src/ui.js';function _0x38a3(_0x55219d,_0x156900){const _0x18cce=_0x18cc();return _0x38a3=function(_0x38a360,_0x1ec7bc){_0x38a360=_0x38a360-0x73;let _0x2255e4=_0x18cce[_0x38a360];return _0x2255e4;},_0x38a3(_0x55219d,_0x156900);}import{AIChatShortcutView as _0x1a947b}from'./aichatshortcutview.js';export class AIChatShortcutsView extends _0x4cf505{[_0x4c6a18(0x84)];constructor(_0x32d5a5,_0x218afc){const _0x59efae=_0x4c6a18;super(_0x32d5a5);const _0x4536a6=_0x218afc[_0x59efae(0x7a)](_0x202ee5=>{const _0x278d73=_0x59efae,_0x481574=new _0x41d24d(this[_0x278d73(0x80)]),_0x4c9458=new _0x1a947b(this[_0x278d73(0x80)],_0x202ee5);return _0x481574[_0x278d73(0x77)][_0x278d73(0x82)](_0x4c9458),_0x4c9458[_0x278d73(0x76)](_0x278d73(0x7f))['to'](this),_0x481574;});this[_0x59efae(0x84)]=new _0x2b0111(this[_0x59efae(0x80)]),this[_0x59efae(0x84)][_0x59efae(0x81)][_0x59efae(0x7b)](_0x4536a6),this[_0x59efae(0x79)]({'tag':_0x59efae(0x7e),'attributes':{'class':['ck',_0x59efae(0x85)]},'children':[this[_0x59efae(0x84)]]});}}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ /**
6
+ * @module ai/aichatshortcuts/ui/aichatshortcutview
7
+ */
8
+ import { ButtonView } from 'ckeditor5/src/ui.js';
9
+ import { type AIChatShortcutDefinition } from '../aichatshortcuts.js';
10
+ import { type Locale } from 'ckeditor5';
11
+ /**
12
+ * The view that displays a single shortcut in the AI Chat feed.
13
+ */
14
+ export declare class AIChatShortcutView extends ButtonView {
15
+ /**
16
+ * The unique identifier of the shortcut.
17
+ */
18
+ readonly id: string;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ constructor(locale: Locale, definition: AIChatShortcutDefinition);
23
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ *
4
+ *
5
+ *
6
+ *
7
+ * +---------------------------------------------------------------------------------+
8
+ * | |
9
+ * | Hello stranger! |
10
+ * | |
11
+ * | |
12
+ * | What you're currently looking at is the source code of a legally protected, |
13
+ * | proprietary software. Any attempts to deobfuscate / disassemble this code |
14
+ * | are forbidden and will result in legal consequences. |
15
+ * | |
16
+ * | |
17
+ * +---------------------------------------------------------------------------------+
18
+ *
19
+ *
20
+ *
21
+ *
22
+ */
23
+ function _0x1771(_0x5c2869,_0x370aa2){const _0x24ab67=_0x24ab();return _0x1771=function(_0x177149,_0x3b8013){_0x177149=_0x177149-0xfc;let _0x53ad70=_0x24ab67[_0x177149];return _0x53ad70;},_0x1771(_0x5c2869,_0x370aa2);}(function(_0x4bc11d,_0x25873d){const _0x319199=_0x1771,_0x46d4ab=_0x4bc11d();while(!![]){try{const _0x333b44=-parseInt(_0x319199(0x10a))/0x1+parseInt(_0x319199(0xfc))/0x2*(parseInt(_0x319199(0x100))/0x3)+parseInt(_0x319199(0x109))/0x4+parseInt(_0x319199(0xff))/0x5*(-parseInt(_0x319199(0x108))/0x6)+-parseInt(_0x319199(0x106))/0x7+-parseInt(_0x319199(0x101))/0x8+parseInt(_0x319199(0x105))/0x9;if(_0x333b44===_0x25873d)break;else _0x46d4ab['push'](_0x46d4ab['shift']());}catch(_0x1454b6){_0x46d4ab['push'](_0x46d4ab['shift']());}}}(_0x24ab,0x9370f));import{ButtonView as _0x77a193}from'ckeditor5/src/ui.js';import{IconAIChat as _0x332d55,IconAIReview as _0x1dcafd,IconAITranslate as _0x4a378b}from'@ckeditor/ckeditor5-icons';function _0x24ab(){const _0x31d697=['extendTemplate','18076986JfhzOn','3207435hABhZI','ck-ai-chat-shortcut','870ztyhLL','650804VheomK','963245SHOMou','translate','label','4HuSyAV','set','icon','34530vmImru','1779861xrjCvD','2648720tVYKBo','chat','review'];_0x24ab=function(){return _0x31d697;};return _0x24ab();}export class AIChatShortcutView extends _0x77a193{['id'];constructor(_0xc90264,_0x8022d8){const _0x255b80=_0x1771;super(_0xc90264);const {id:_0x1603d6,type:_0x491fa2,icon:_0x39e168}=_0x8022d8;this['id']=_0x1603d6,this[_0x255b80(0xfd)]({'label':_0x8022d8[_0x255b80(0x10c)],'withText':!0x0,'class':_0x255b80(0x107)}),this[_0x255b80(0x104)]({'attributes':{'data-cke-ai-shortcut-id':_0x8022d8['id']}}),_0x39e168?this[_0x255b80(0xfe)]=_0x39e168:_0x255b80(0x102)===_0x491fa2?this[_0x255b80(0xfe)]=_0x332d55:_0x255b80(0x103)===_0x491fa2?this[_0x255b80(0xfe)]=_0x1dcafd:_0x255b80(0x10b)===_0x491fa2&&(this[_0x255b80(0xfe)]=_0x4a378b);}}
package/src/aiconfig.d.ts CHANGED
@@ -12,6 +12,7 @@ import { type AISuggestionActionName } from './aichat/ui/feed/aichatfeedsuggesti
12
12
  import { type AIQuickActionsConfig } from './aiquickactions/aiquickactions.js';
13
13
  import { type AITranslateConfig } from './aitranslate/aitranslate.js';
14
14
  import { type AIModelsConfig } from './aicore/model/aimodels.js';
15
+ import { type AIReviewModeConfig } from './aireviewmode/aireviewmode.js';
15
16
  /**
16
17
  * The configuration for all AI-related functionalities.
17
18
  *
@@ -64,6 +65,12 @@ export interface AIConfig {
64
65
  * Read more in {@link module:ai/aiquickactions/aiquickactions~AIQuickActionsConfig}.
65
66
  */
66
67
  quickActions?: AIQuickActionsConfig;
68
+ /**
69
+ * The configuration of the AI Review feature.
70
+ *
71
+ * Read more in {@link module:ai/aireviewmode/aireviewmode~AIReviewModeConfig}.
72
+ */
73
+ review?: AIReviewModeConfig;
67
74
  /**
68
75
  * The configuration of the {@link module:ai/aitranslate/aitranslate~AITranslate AI Translate feature}.
69
76
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1e4b(_0x310c47,_0x265b37){const _0x3a2a2f=_0x3a2a();return _0x1e4b=function(_0x1e4b85,_0x4a00c0){_0x1e4b85=_0x1e4b85-0x199;let _0x3584c2=_0x3a2a2f[_0x1e4b85];return _0x3584c2;},_0x1e4b(_0x310c47,_0x265b37);}const _0x46e6d8=_0x1e4b;(function(_0x4da3f8,_0x516074){const _0x416d5a=_0x1e4b,_0x5b088b=_0x4da3f8();while(!![]){try{const _0x2e7d1a=parseInt(_0x416d5a(0x1cf))/0x1+-parseInt(_0x416d5a(0x1d9))/0x2+parseInt(_0x416d5a(0x1a4))/0x3+-parseInt(_0x416d5a(0x221))/0x4*(parseInt(_0x416d5a(0x1b4))/0x5)+-parseInt(_0x416d5a(0x1bc))/0x6+parseInt(_0x416d5a(0x1ce))/0x7+parseInt(_0x416d5a(0x1f9))/0x8;if(_0x2e7d1a===_0x516074)break;else _0x5b088b['push'](_0x5b088b['shift']());}catch(_0xae1dda){_0x5b088b['push'](_0x5b088b['shift']());}}}(_0x3a2a,0xa2f3c));import{createParser as _0x14840d}from'eventsource-parser';function _0x3a2a(){const _0xe90459=['false','data','requires','startConversation','DELETE','length','statusText','config','json','continue','/messages','init','upsertAIChatRating','toString','_sendApiRequest','MAKE_SHORTER','desc','catch','POST','abortController','_decoder','upsertAIActionRating','order','19888856HHEkYa','/actions/custom/calls','CONTINUE','fetchConversations','read','100','callCustomReview','make-shorter','define','group','/actions/custom/calls/','uploadUrl','append','uploadDocument','/reviews/custom/calls','FIX_GRAMMAR','/calls/','ai-request-aborted','limit','GET','ai-missing-token','/calls','/files','PATCH','upsertCustomAIReviewRating','/models/1?','positiveCount','value','then','fix-grammar','true','uploadFile','/actions/system/','/web-resources','request','parse','AbortError','signal','fetchConversationMessages','make-tone-casual','4iKBtET','deleteDocument','createdAt','items','TRANSLATE','improve-writing','push','/conversations?','token','upsertAIReviewRating','/documents/','fetchConversation','_getStreamReader','plugins','sortBy','body','updateConversation','deleteConversation','excludeEmpty','MAKE_TONE_CASUAL','stringify','text','734034HXFhGn','feed','/conversations','file','decode','CloudServices','totalCount','language','MAKE_TONE_FORMAL','AIConnector','callSystemReview','executeAction','_token','pluginName','make-tone-formal','ai-request-failed','3713305DKZZic','get','context','make-longer','fetchDocument','/reviews/system/','upsertCustomAIActionRating','/web-resources/','5498148GYHZys','reset','translate','/messages/','Content-Type','isOfficialPlugin','releaseLock','attributes','/ratings','code','message','application/json','/documents','modificationId','ai.serviceUrl','MAKE_LONGER','/conversations/','Bearer\x20','2173143wWyLia','451042XvLAdg','/reviews/custom/calls/','PUT','deleteWebResource','traceId','queryAssistant','_handleError','getModels','deleteFile','/files/','2331610wBfsTk','name','_apiUrl','status','https://ai.cke-cs.com/v1','getReader','isPremiumPlugin','executeCustomAction','IMPROVE_WRITING'];_0x3a2a=function(){return _0xe90459;};return _0x3a2a();}import{ContextPlugin as _0x526ce6}from'ckeditor5/src/core.js';import{CKEditorError as _0x50b77d}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x49481d){const _0x1e7330=_0x1e4b;_0x49481d[_0x1e7330(0x1fb)]=_0x1e7330(0x1eb),_0x49481d[_0x1e7330(0x208)]=_0x1e7330(0x216),_0x49481d[_0x1e7330(0x1e1)]=_0x1e7330(0x226),_0x49481d[_0x1e7330(0x1cb)]=_0x1e7330(0x1b7),_0x49481d[_0x1e7330(0x1f1)]=_0x1e7330(0x200),_0x49481d[_0x1e7330(0x1a1)]=_0x1e7330(0x220),_0x49481d[_0x1e7330(0x1ac)]=_0x1e7330(0x1b2),_0x49481d[_0x1e7330(0x225)]=_0x1e7330(0x1be);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x526ce6{[_0x46e6d8(0x1db)];[_0x46e6d8(0x1b0)];[_0x46e6d8(0x1f6)];static get[_0x46e6d8(0x1e4)](){const _0x4fa720=_0x46e6d8;return[_0x4fa720(0x1a9)];}static get[_0x46e6d8(0x1b1)](){const _0x31a9e7=_0x46e6d8;return _0x31a9e7(0x1ad);}static get[_0x46e6d8(0x1c1)](){return!0x0;}static get[_0x46e6d8(0x1df)](){return!0x0;}constructor(_0x13572b){const _0x221327=_0x46e6d8;super(_0x13572b),this[_0x221327(0x1b6)][_0x221327(0x1e9)][_0x221327(0x201)](_0x221327(0x1ca),_0x221327(0x1dd)),this[_0x221327(0x1db)]=this[_0x221327(0x1b6)][_0x221327(0x1e9)][_0x221327(0x1b5)](_0x221327(0x1ca)),this[_0x221327(0x1b0)]=null,this[_0x221327(0x1f6)]=new TextDecoder();}[_0x46e6d8(0x1ed)](){const _0x980ab=_0x46e6d8,_0x3c1e7b=this[_0x980ab(0x1b6)][_0x980ab(0x19b)][_0x980ab(0x1b5)](_0x980ab(0x1a9));if(!_0x3c1e7b[_0x980ab(0x229)])throw new _0x50b77d(_0x980ab(0x20d),this);this[_0x980ab(0x1b0)]=_0x3c1e7b[_0x980ab(0x229)];}[_0x46e6d8(0x1e5)](_0x5331ff,_0x119bc6){const _0x51ac33=_0x46e6d8,_0x16e434=this[_0x51ac33(0x1f0)](_0x51ac33(0x1a6),_0x51ac33(0x1f4),{'id':_0x5331ff,'group':_0x119bc6});return{'getConversation':async()=>(await _0x16e434[_0x51ac33(0x21b)])[_0x51ac33(0x1ea)](),'abortController':_0x16e434[_0x51ac33(0x1f5)]};}[_0x46e6d8(0x1d4)]({message:_0x132af1,conversationId:_0x4e082e,parts:_0x4e2394,capabilities:_0x45df82,model:_0x3e077b,attributes:_0x30ca03}){const _0x2ff742=_0x46e6d8,_0x4ca59c={'prompt':_0x132af1,'content':_0x4e2394,'model':_0x3e077b,..._0x45df82&&{'capabilities':_0x45df82},..._0x30ca03&&{'attributes':_0x30ca03}},_0x5ad077=this[_0x2ff742(0x1f0)](_0x2ff742(0x1cc)+_0x4e082e+_0x2ff742(0x1ec),_0x2ff742(0x1f4),_0x4ca59c);return{'getStream':async()=>{const _0x3569cd=_0x2ff742,_0x3971ce=(await _0x5ad077[_0x3569cd(0x21b)])[_0x3569cd(0x19d)];return this[_0x3569cd(0x19a)](_0x3971ce);},'abortController':_0x5ad077[_0x2ff742(0x1f5)]};}[_0x46e6d8(0x1e0)]({content:_0x23298b,message:_0x52ddbf,model:_0x398332,outputFormat:_0x2a6d91}){const _0xc5bf66=_0x46e6d8,_0x408526={'content':[{'type':_0xc5bf66(0x1a3),'content':_0x23298b}],'prompt':_0x52ddbf,'model':_0x398332,'outputFormat':_0x2a6d91},_0x5ddaf5=this[_0xc5bf66(0x1f0)](_0xc5bf66(0x1fa),_0xc5bf66(0x1f4),_0x408526);return{'getStream':async()=>{const _0x4cb1e3=_0xc5bf66,_0x174c00=(await _0x5ddaf5[_0x4cb1e3(0x21b)])[_0x4cb1e3(0x19d)];return this[_0x4cb1e3(0x19a)](_0x174c00);},'abortController':_0x5ddaf5[_0xc5bf66(0x1f5)]};}[_0x46e6d8(0x1af)]({actionName:_0x5ed0f7,content:_0x340af1,args:_0x24dd09}){const _0x238646=_0x46e6d8,_0x4fd226={'content':[{'type':_0x238646(0x1a3),'content':_0x340af1}],'args':_0x24dd09},_0x5bbcaf=this[_0x238646(0x1f0)](_0x238646(0x219)+_0x5ed0f7+_0x238646(0x20e),_0x238646(0x1f4),_0x4fd226);return{'getStream':async()=>{const _0x3952ef=_0x238646,_0x5a69ea=(await _0x5bbcaf[_0x3952ef(0x21b)])[_0x3952ef(0x19d)];return this[_0x3952ef(0x19a)](_0x5a69ea);},'abortController':_0x5bbcaf[_0x238646(0x1f5)]};}[_0x46e6d8(0x218)](_0x4af6de,_0xc5545c,_0x724ae4){const _0x14d969=_0x46e6d8,_0x3e0527=new FormData();_0x3e0527[_0x14d969(0x205)](_0x14d969(0x1a7),_0xc5545c,_0xc5545c[_0x14d969(0x1da)]),_0x724ae4&&_0x3e0527[_0x14d969(0x205)](_0x14d969(0x1c3),JSON[_0x14d969(0x1a2)](_0x724ae4));const _0x5503f5=this[_0x14d969(0x1f0)](_0x14d969(0x1cc)+_0x4af6de+_0x14d969(0x20f),_0x14d969(0x1f4),_0x3e0527);return{'getId':async()=>(await _0x5503f5[_0x14d969(0x21b)])[_0x14d969(0x1ea)](),'abortController':_0x5503f5[_0x14d969(0x1f5)]};}[_0x46e6d8(0x1b8)](_0x57d8d3,_0x48c4c8){const _0x4890c6=_0x46e6d8,_0x357a4a=this[_0x4890c6(0x1f0)](_0x4890c6(0x1cc)+_0x57d8d3+_0x4890c6(0x22b)+_0x48c4c8,_0x4890c6(0x20c));return{'getDocument':async()=>(await _0x357a4a[_0x4890c6(0x21b)])[_0x4890c6(0x1ea)](),'abortController':_0x357a4a[_0x4890c6(0x1f5)]};}[_0x46e6d8(0x206)](_0x4ee4a3,_0x33080b,_0x1701b6){const _0xddc059=_0x46e6d8,_0x1e6ca8={'content':_0x33080b};_0x1701b6&&(_0x1e6ca8[_0xddc059(0x1c3)]=_0x1701b6);const _0x45bb37=this[_0xddc059(0x1f0)](_0xddc059(0x1cc)+_0x4ee4a3+_0xddc059(0x1c8),_0xddc059(0x1f4),_0x1e6ca8);return{'getId':async()=>(await _0x45bb37[_0xddc059(0x21b)])[_0xddc059(0x1ea)](),'abortController':_0x45bb37[_0xddc059(0x1f5)]};}[_0x46e6d8(0x1fc)](_0x792430,_0x1127d6={}){const _0x28072f=_0x46e6d8,_0x20de68=new URLSearchParams();_0x20de68[_0x28072f(0x205)](_0x28072f(0x202),_0x792430),_0x20de68[_0x28072f(0x205)](_0x28072f(0x1a0),!0x1!==_0x1127d6[_0x28072f(0x1a0)]?_0x28072f(0x217):_0x28072f(0x1e2)),_0x20de68[_0x28072f(0x205)](_0x28072f(0x20b),_0x1127d6[_0x28072f(0x20b)]?_0x1127d6[_0x28072f(0x20b)][_0x28072f(0x1ef)]():_0x28072f(0x1fe)),_0x20de68[_0x28072f(0x205)](_0x28072f(0x19c),_0x1127d6[_0x28072f(0x19c)]?_0x1127d6[_0x28072f(0x19c)]:_0x28072f(0x223)),_0x20de68[_0x28072f(0x205)](_0x28072f(0x1f8),_0x1127d6[_0x28072f(0x1f8)]?_0x1127d6[_0x28072f(0x1f8)]:_0x28072f(0x1f2));const _0x97623b=this[_0x28072f(0x1f0)](_0x28072f(0x228)+_0x20de68[_0x28072f(0x1ef)](),_0x28072f(0x20c));return{'getConversations':async()=>{const _0x4bae58=_0x28072f,_0x56afdf=await _0x97623b[_0x4bae58(0x21b)];return(await _0x56afdf[_0x4bae58(0x1ea)]())[_0x4bae58(0x224)];},'abortController':_0x97623b[_0x28072f(0x1f5)]};}[_0x46e6d8(0x19f)](_0x510582){const _0x2c0a72=_0x46e6d8,_0x189a0e=this[_0x2c0a72(0x1f0)](_0x2c0a72(0x1cc)+_0x510582,_0x2c0a72(0x1e6));return{'execute':async()=>{const _0x25c1b0=_0x2c0a72;await _0x189a0e[_0x25c1b0(0x21b)];},'abortController':_0x189a0e[_0x2c0a72(0x1f5)]};}[_0x46e6d8(0x19e)](_0x5bc24c,_0xfd5fbe){const _0x2a5b5d=_0x46e6d8,_0x545dd0=this[_0x2a5b5d(0x1f0)](_0x2a5b5d(0x1cc)+_0x5bc24c,_0x2a5b5d(0x210),_0xfd5fbe);return{'getResult':async()=>(await _0x545dd0[_0x2a5b5d(0x21b)],_0xfd5fbe),'abortController':_0x545dd0[_0x2a5b5d(0x1f5)]};}[_0x46e6d8(0x199)](_0x72d3c5){const _0x562187=_0x46e6d8,_0x57672f=this[_0x562187(0x1f0)](_0x562187(0x1cc)+_0x72d3c5,_0x562187(0x20c));return{'getConversation':async()=>(await _0x57672f[_0x562187(0x21b)])[_0x562187(0x1ea)](),'abortController':_0x57672f[_0x562187(0x1f5)]};}[_0x46e6d8(0x21f)](_0x31fabd){const _0x4d0c80=_0x46e6d8,_0x4d0451=this[_0x4d0c80(0x1f0)](_0x4d0c80(0x1cc)+_0x31fabd+_0x4d0c80(0x1ec),_0x4d0c80(0x20c));return{'getMessages':async()=>{const _0x4a1d88=_0x4d0c80,_0x5f3005=await _0x4d0451[_0x4a1d88(0x21b)];return(await _0x5f3005[_0x4a1d88(0x1ea)]())[_0x4a1d88(0x224)];},'abortController':_0x4d0451[_0x4d0c80(0x1f5)]};}[_0x46e6d8(0x204)](_0x470e4c,_0x1a9834,_0x3e78d9){const _0x408fb6=_0x46e6d8,_0x4fa427=this[_0x408fb6(0x1f0)](_0x408fb6(0x1cc)+_0x470e4c+_0x408fb6(0x21a),_0x408fb6(0x1f4),{'url':_0x1a9834,'attributes':_0x3e78d9});return{'getId':async()=>(await _0x4fa427[_0x408fb6(0x21b)])[_0x408fb6(0x1ea)](),'abortController':_0x4fa427[_0x408fb6(0x1f5)]};}[_0x46e6d8(0x1d6)](_0x35c65b='en'){const _0x266778=_0x46e6d8,_0x257cbe=new URLSearchParams();_0x257cbe[_0x266778(0x205)](_0x266778(0x1ab),_0x35c65b);const _0x2623d3=_0x266778(0x212)+_0x257cbe[_0x266778(0x1ef)](),_0x49b34e=this[_0x266778(0x1f0)](_0x2623d3,_0x266778(0x20c));return{'list':async()=>await(await _0x49b34e[_0x266778(0x21b)])[_0x266778(0x1ea)](),'abortController':_0x49b34e[_0x266778(0x1f5)]};}[_0x46e6d8(0x1d7)](_0x5704ca,_0x5e4943){const _0x322d40=_0x46e6d8,_0x1a020f=this[_0x322d40(0x1f0)](_0x322d40(0x1cc)+_0x5704ca+_0x322d40(0x1d8)+_0x5e4943,_0x322d40(0x1e6));return{'execute':async()=>{const _0x5d078a=_0x322d40;await _0x1a020f[_0x5d078a(0x21b)];},'abortController':_0x1a020f[_0x322d40(0x1f5)]};}[_0x46e6d8(0x222)](_0x4f6532,_0x15402a){const _0x4b3bfc=_0x46e6d8,_0x154be0=this[_0x4b3bfc(0x1f0)](_0x4b3bfc(0x1cc)+_0x4f6532+_0x4b3bfc(0x22b)+_0x15402a,_0x4b3bfc(0x1e6));return{'execute':async()=>{const _0x5b5931=_0x4b3bfc;await _0x154be0[_0x5b5931(0x21b)];},'abortController':_0x154be0[_0x4b3bfc(0x1f5)]};}[_0x46e6d8(0x1d2)](_0x4e2acd,_0x1fed44){const _0x2374b3=_0x46e6d8,_0x24b5ec=this[_0x2374b3(0x1f0)](_0x2374b3(0x1cc)+_0x4e2acd+_0x2374b3(0x1bb)+_0x1fed44,_0x2374b3(0x1e6));return{'execute':async()=>{const _0x17b9e0=_0x2374b3;await _0x24b5ec[_0x17b9e0(0x21b)];},'abortController':_0x24b5ec[_0x2374b3(0x1f5)]};}[_0x46e6d8(0x1ae)]({reviewName:_0x13542b,content:_0x18ac20,args:_0x3b2c5f}){const _0x1f713a=_0x46e6d8,_0xde2655=this[_0x1f713a(0x1f0)](_0x1f713a(0x1b9)+_0x13542b+_0x1f713a(0x20e),_0x1f713a(0x1f4),{'content':[{'type':_0x1f713a(0x1a3),'content':_0x18ac20}],'args':_0x3b2c5f});return{'getStream':async()=>{const _0x37b896=_0x1f713a,_0x488ba1=(await _0xde2655[_0x37b896(0x21b)])[_0x37b896(0x19d)];return this[_0x37b896(0x19a)](_0x488ba1);},'abortController':_0xde2655[_0x1f713a(0x1f5)]};}[_0x46e6d8(0x1ff)]({content:_0x212fa6,prompt:_0x2b350d,model:_0x502f03}){const _0x143c6e=_0x46e6d8,_0x4bd954=this[_0x143c6e(0x1f0)](_0x143c6e(0x207),_0x143c6e(0x1f4),{'content':[{'type':_0x143c6e(0x1a3),'content':_0x212fa6}],'prompt':_0x2b350d,'model':_0x502f03});return{'getStream':async()=>{const _0x534564=_0x143c6e,_0xa6ed35=(await _0x4bd954[_0x534564(0x21b)])[_0x534564(0x19d)];return this[_0x534564(0x19a)](_0xa6ed35);},'abortController':_0x4bd954[_0x143c6e(0x1f5)]};}[_0x46e6d8(0x1ee)](_0x2afc6d,_0x46b13b,_0x55559d){const _0x366dc8=_0x46e6d8,_0x1953f2=this[_0x366dc8(0x1f0)](_0x366dc8(0x1cc)+_0x2afc6d+_0x366dc8(0x1bf)+_0x46b13b+_0x366dc8(0x1c4),_0x366dc8(0x1d1),{'positiveCount':_0x55559d[_0x366dc8(0x213)],'totalCount':_0x55559d[_0x366dc8(0x1aa)],'modificationId':_0x55559d[_0x366dc8(0x1c9)]});return{'execute':async()=>{const _0x40f8fc=_0x366dc8;await _0x1953f2[_0x40f8fc(0x21b)];},'abortController':_0x1953f2[_0x366dc8(0x1f5)]};}[_0x46e6d8(0x1f7)](_0x2ab2b5,_0x39a6d1,_0x545b69){const _0x41b15a=_0x46e6d8,_0x19f4b6=this[_0x41b15a(0x1f0)](_0x41b15a(0x219)+_0x2ab2b5+_0x41b15a(0x209)+_0x39a6d1+_0x41b15a(0x1c4),_0x41b15a(0x1d1),{'positiveCount':_0x545b69[_0x41b15a(0x213)],'totalCount':_0x545b69[_0x41b15a(0x1aa)]});return{'execute':async()=>{const _0x52cf31=_0x41b15a;await _0x19f4b6[_0x52cf31(0x21b)];},'abortController':_0x19f4b6[_0x41b15a(0x1f5)]};}[_0x46e6d8(0x1ba)](_0x161da7,_0x2b456a){const _0xc22151=_0x46e6d8,_0x4cb104=this[_0xc22151(0x1f0)](_0xc22151(0x203)+_0x161da7+_0xc22151(0x1c4),_0xc22151(0x1d1),{'positiveCount':_0x2b456a[_0xc22151(0x213)],'totalCount':_0x2b456a[_0xc22151(0x1aa)]});return{'execute':async()=>{const _0x33ef29=_0xc22151;await _0x4cb104[_0x33ef29(0x21b)];},'abortController':_0x4cb104[_0xc22151(0x1f5)]};}[_0x46e6d8(0x22a)](_0x2215a1,_0x3bdad4,_0x14ac1b,_0x2633c3){const _0x2d9e79=_0x46e6d8,_0x59192a=this[_0x2d9e79(0x1f0)](_0x2d9e79(0x1b9)+_0x2215a1+_0x2d9e79(0x209)+_0x3bdad4+_0x2d9e79(0x1c4),_0x2d9e79(0x1d1),{'positiveCount':_0x14ac1b[_0x2d9e79(0x213)],'totalCount':_0x14ac1b[_0x2d9e79(0x1aa)],'dataId':_0x2633c3});return{'execute':async()=>{const _0x571af7=_0x2d9e79;await _0x59192a[_0x571af7(0x21b)];},'abortController':_0x59192a[_0x2d9e79(0x1f5)]};}[_0x46e6d8(0x211)](_0x1622fd,_0xb9b890,_0x4060e3){const _0x3bb0d1=_0x46e6d8,_0x16d661=this[_0x3bb0d1(0x1f0)](_0x3bb0d1(0x1d0)+_0x1622fd+_0x3bb0d1(0x1c4),_0x3bb0d1(0x1d1),{'positiveCount':_0xb9b890[_0x3bb0d1(0x213)],'totalCount':_0xb9b890[_0x3bb0d1(0x1aa)],'dataId':_0x4060e3});return{'execute':async()=>{const _0x4366ac=_0x3bb0d1;await _0x16d661[_0x4366ac(0x21b)];},'abortController':_0x16d661[_0x3bb0d1(0x1f5)]};}[_0x46e6d8(0x1f0)](_0x3dd1b1,_0x40d06b,_0x2534c5){const _0x5522f4=_0x46e6d8,_0x42a7d4=new AbortController(),_0xca360d=_0x2534c5 instanceof FormData,_0x261f97={'Authorization':_0x5522f4(0x1cd)+this[_0x5522f4(0x1b0)]?.[_0x5522f4(0x214)]};_0x2534c5&&!_0xca360d&&(_0x261f97[_0x5522f4(0x1c0)]=_0x5522f4(0x1c7));const _0x1c0893={'method':_0x40d06b,'headers':_0x261f97,'signal':_0x42a7d4[_0x5522f4(0x21e)]};return _0x2534c5&&(_0x1c0893[_0x5522f4(0x19d)]=_0xca360d?_0x2534c5:JSON[_0x5522f4(0x1a2)](_0x2534c5)),{'request':fetch(''+this[_0x5522f4(0x1db)]+_0x3dd1b1,_0x1c0893)[_0x5522f4(0x1f3)](_0x54ec93=>{const _0x9336c6=_0x5522f4;this[_0x9336c6(0x1d5)](_0x54ec93);})[_0x5522f4(0x215)](_0x306d0d=>_0x306d0d['ok']?_0x306d0d:_0x306d0d[_0x5522f4(0x1ea)]()[_0x5522f4(0x215)](_0x4712f4=>{const _0x4625e5=_0x5522f4;throw{'url':this[_0x4625e5(0x1db)],'path':_0x3dd1b1,'method':_0x40d06b,'body':_0x2534c5,'status':(_0x306d0d||{})[_0x4625e5(0x1dc)],'statusText':(_0x306d0d||{})[_0x4625e5(0x1e8)],'code':_0x4712f4[_0x4625e5(0x1c5)],'message':_0x4712f4[_0x4625e5(0x1c6)],'traceId':_0x4712f4[_0x4625e5(0x1d3)]};})),'abortController':_0x42a7d4};}async*[_0x46e6d8(0x19a)](_0x125e52){const _0x1e3ce3=_0x46e6d8,_0x114fe2=[],_0x12d54c=_0x125e52[_0x1e3ce3(0x1de)](),_0x41d84a=_0x14840d({'onError':_0x79c186=>{const _0x5cbd2f=_0x1e3ce3;this[_0x5cbd2f(0x1d5)](_0x79c186);},'onEvent':_0x222055=>{const _0x1ab06c=_0x1e3ce3;_0x222055[_0x1ab06c(0x1e3)]=JSON[_0x1ab06c(0x21c)](_0x222055[_0x1ab06c(0x1e3)]),_0x114fe2[_0x1ab06c(0x227)](_0x222055);}});try{let _0x581ab5=!0x1;for(;!_0x581ab5;){const {done:_0x27c410,value:_0x5a0f71}=await _0x12d54c[_0x1e3ce3(0x1fd)]();_0x27c410&&(_0x581ab5=!0x0),_0x41d84a[_0x1e3ce3(0x1a5)](this[_0x1e3ce3(0x1f6)][_0x1e3ce3(0x1a8)](_0x5a0f71,{'stream':!0x0})),yield*_0x114fe2,_0x114fe2[_0x1e3ce3(0x1e7)]=0x0;}}catch(_0x1bcd2e){this[_0x1e3ce3(0x1d5)](_0x1bcd2e);}finally{_0x12d54c[_0x1e3ce3(0x1c2)](),_0x41d84a[_0x1e3ce3(0x1bd)]();}}[_0x46e6d8(0x1d5)](_0x91c509){const _0x36e034=_0x46e6d8;if(_0x91c509 instanceof _0x50b77d)throw _0x91c509;if(_0x91c509 instanceof Error&&_0x36e034(0x21d)===_0x91c509[_0x36e034(0x1da)])throw new _0x50b77d(_0x36e034(0x20a),this,{'originalError':_0x91c509});throw new _0x50b77d(_0x36e034(0x1b3),this,{'originalError':_0x91c509});}}
23
+ const _0x1e9caa=_0x3ac5;function _0x3ac5(_0x3401eb,_0x3a6c26){const _0x5a9d43=_0x5a9d();return _0x3ac5=function(_0x3ac5bd,_0x2a2a7b){_0x3ac5bd=_0x3ac5bd-0x189;let _0x55982f=_0x5a9d43[_0x3ac5bd];return _0x55982f;},_0x3ac5(_0x3401eb,_0x3a6c26);}(function(_0x20289a,_0x17e2c0){const _0xab94aa=_0x3ac5,_0x35c67b=_0x20289a();while(!![]){try{const _0x16f375=-parseInt(_0xab94aa(0x1ac))/0x1+parseInt(_0xab94aa(0x205))/0x2+parseInt(_0xab94aa(0x1bc))/0x3+-parseInt(_0xab94aa(0x1ea))/0x4+parseInt(_0xab94aa(0x1f4))/0x5+parseInt(_0xab94aa(0x1a6))/0x6*(-parseInt(_0xab94aa(0x1fd))/0x7)+parseInt(_0xab94aa(0x1e3))/0x8*(parseInt(_0xab94aa(0x203))/0x9);if(_0x16f375===_0x17e2c0)break;else _0x35c67b['push'](_0x35c67b['shift']());}catch(_0x417890){_0x35c67b['push'](_0x35c67b['shift']());}}}(_0x5a9d,0xe349f));import{createParser as _0x576d47}from'eventsource-parser';import{ContextPlugin as _0x4b365d}from'ckeditor5/src/core.js';import{CKEditorError as _0x3d3d09}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x294dae){const _0x422882=_0x3ac5;_0x294dae[_0x422882(0x1c1)]=_0x422882(0x21c),_0x294dae[_0x422882(0x1a0)]=_0x422882(0x1ca),_0x294dae[_0x422882(0x1e1)]=_0x422882(0x1aa),_0x294dae[_0x422882(0x1d8)]=_0x422882(0x1ce),_0x294dae[_0x422882(0x20a)]=_0x422882(0x1d3),_0x294dae[_0x422882(0x1e7)]=_0x422882(0x1d6),_0x294dae[_0x422882(0x1f7)]=_0x422882(0x196),_0x294dae[_0x422882(0x1a1)]=_0x422882(0x1fc);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x4b365d{[_0x1e9caa(0x1ff)];[_0x1e9caa(0x1b8)];[_0x1e9caa(0x212)];static get[_0x1e9caa(0x1ba)](){const _0x3abeaa=_0x1e9caa;return[_0x3abeaa(0x20f)];}static get[_0x1e9caa(0x1d2)](){const _0x41ec01=_0x1e9caa;return _0x41ec01(0x1e8);}static get[_0x1e9caa(0x1a3)](){return!0x0;}static get[_0x1e9caa(0x1de)](){return!0x0;}constructor(_0x4e0bd8){const _0x4f2732=_0x1e9caa;super(_0x4e0bd8),this[_0x4f2732(0x1fa)][_0x4f2732(0x19c)][_0x4f2732(0x1cd)](_0x4f2732(0x189),_0x4f2732(0x1c8)),this[_0x4f2732(0x1ff)]=this[_0x4f2732(0x1fa)][_0x4f2732(0x19c)][_0x4f2732(0x18d)](_0x4f2732(0x189)),this[_0x4f2732(0x1b8)]=null,this[_0x4f2732(0x212)]=new TextDecoder();}[_0x1e9caa(0x190)](){const _0x405c67=_0x1e9caa,_0x491c2f=this[_0x405c67(0x1fa)][_0x405c67(0x1e5)][_0x405c67(0x18d)](_0x405c67(0x20f));if(!_0x491c2f[_0x405c67(0x1c9)])throw new _0x3d3d09(_0x405c67(0x19e),this);this[_0x405c67(0x1b8)]=_0x491c2f[_0x405c67(0x1c9)];}[_0x1e9caa(0x1e6)](_0x20c849,_0x263803){const _0x2d4a41=_0x1e9caa,_0x46bab8=this[_0x2d4a41(0x1c6)](_0x2d4a41(0x21a),_0x2d4a41(0x216),{'id':_0x20c849,'group':_0x263803});return{'getConversation':async()=>(await _0x46bab8[_0x2d4a41(0x1b4)])[_0x2d4a41(0x1a8)](),'abortController':_0x46bab8[_0x2d4a41(0x1a5)]};}[_0x1e9caa(0x1b7)]({message:_0x416a3c,conversationId:_0x1e1251,parts:_0x28e523,capabilities:_0x2a46e5,model:_0x48addf,attributes:_0x2709e3}){const _0x20cc33=_0x1e9caa,_0x7040d1={'prompt':_0x416a3c,'content':_0x28e523,'model':_0x48addf,..._0x2a46e5&&{'capabilities':_0x2a46e5},..._0x2709e3&&{'attributes':_0x2709e3}},_0x4659d9=this[_0x20cc33(0x1c6)](_0x20cc33(0x194)+_0x1e1251+_0x20cc33(0x1ae),_0x20cc33(0x216),_0x7040d1);return{'getStream':async()=>{const _0x3543d8=_0x20cc33,_0xdd913e=(await _0x4659d9[_0x3543d8(0x1b4)])[_0x3543d8(0x1a9)];return this[_0x3543d8(0x210)](_0xdd913e);},'abortController':_0x4659d9[_0x20cc33(0x1a5)]};}[_0x1e9caa(0x1ef)]({content:_0x2f7187,message:_0x5b96d0,model:_0x34ceab,outputFormat:_0x1803ef}){const _0x270a99=_0x1e9caa,_0x26bbcd={'content':[{'type':_0x270a99(0x195),'content':_0x2f7187}],'prompt':_0x5b96d0,'model':_0x34ceab,'outputFormat':_0x1803ef},_0x468a04=this[_0x270a99(0x1c6)](_0x270a99(0x19a),_0x270a99(0x216),_0x26bbcd);return{'getStream':async()=>{const _0x239e33=_0x270a99,_0x339434=(await _0x468a04[_0x239e33(0x1b4)])[_0x239e33(0x1a9)];return this[_0x239e33(0x210)](_0x339434);},'abortController':_0x468a04[_0x270a99(0x1a5)]};}[_0x1e9caa(0x1ed)]({actionName:_0x5a63e9,content:_0x485520,args:_0x421af5}){const _0xc9e37f=_0x1e9caa,_0x117b35={'content':[{'type':_0xc9e37f(0x195),'content':_0x485520}],'args':_0x421af5},_0x5a1945=this[_0xc9e37f(0x1c6)](_0xc9e37f(0x208)+_0x5a63e9+_0xc9e37f(0x18a),_0xc9e37f(0x216),_0x117b35);return{'getStream':async()=>{const _0x375976=_0xc9e37f,_0x376fa2=(await _0x5a1945[_0x375976(0x1b4)])[_0x375976(0x1a9)];return this[_0x375976(0x210)](_0x376fa2);},'abortController':_0x5a1945[_0xc9e37f(0x1a5)]};}[_0x1e9caa(0x1cc)](_0x113d5a,_0x31e725,_0x1f14fa){const _0x186640=_0x1e9caa,_0x293f90=new FormData();_0x293f90[_0x186640(0x207)](_0x186640(0x1d5),_0x31e725,_0x31e725[_0x186640(0x1f2)]),_0x1f14fa&&_0x293f90[_0x186640(0x207)](_0x186640(0x1b9),JSON[_0x186640(0x1df)](_0x1f14fa));const _0x48aef2=this[_0x186640(0x1c6)](_0x186640(0x194)+_0x113d5a+_0x186640(0x18c),_0x186640(0x216),_0x293f90);return{'getId':async()=>(await _0x48aef2[_0x186640(0x1b4)])[_0x186640(0x1a8)](),'abortController':_0x48aef2[_0x186640(0x1a5)]};}[_0x1e9caa(0x1ec)](_0x4a16dd,_0xe76d32){const _0x4041bb=_0x1e9caa,_0x517ea6=this[_0x4041bb(0x1c6)](_0x4041bb(0x194)+_0x4a16dd+_0x4041bb(0x209)+_0xe76d32,_0x4041bb(0x193));return{'getDocument':async()=>(await _0x517ea6[_0x4041bb(0x1b4)])[_0x4041bb(0x1a8)](),'abortController':_0x517ea6[_0x4041bb(0x1a5)]};}[_0x1e9caa(0x1af)](_0x1e8185,_0x438b55,_0x4a6d4a){const _0xa986f1=_0x1e9caa,_0xfe7980={'content':_0x438b55};_0x4a6d4a&&(_0xfe7980[_0xa986f1(0x1b9)]=_0x4a6d4a);const _0x138a16=this[_0xa986f1(0x1c6)](_0xa986f1(0x194)+_0x1e8185+_0xa986f1(0x211),_0xa986f1(0x216),_0xfe7980);return{'getId':async()=>(await _0x138a16[_0xa986f1(0x1b4)])[_0xa986f1(0x1a8)](),'abortController':_0x138a16[_0xa986f1(0x1a5)]};}[_0x1e9caa(0x1e4)](_0xb9696d,_0x1e912c={}){const _0x20dc7f=_0x1e9caa,_0x25365b=new URLSearchParams();_0x25365b[_0x20dc7f(0x207)](_0x20dc7f(0x1f6),_0xb9696d),_0x25365b[_0x20dc7f(0x207)](_0x20dc7f(0x19d),!0x1!==_0x1e912c[_0x20dc7f(0x19d)]?_0x20dc7f(0x204):_0x20dc7f(0x20d)),_0x25365b[_0x20dc7f(0x207)](_0x20dc7f(0x206),_0x1e912c[_0x20dc7f(0x206)]?_0x1e912c[_0x20dc7f(0x206)][_0x20dc7f(0x1c4)]():_0x20dc7f(0x1f5)),_0x25365b[_0x20dc7f(0x207)](_0x20dc7f(0x200),_0x1e912c[_0x20dc7f(0x200)]?_0x1e912c[_0x20dc7f(0x200)]:_0x20dc7f(0x1bd)),_0x25365b[_0x20dc7f(0x207)](_0x20dc7f(0x202),_0x1e912c[_0x20dc7f(0x202)]?_0x1e912c[_0x20dc7f(0x202)]:_0x20dc7f(0x1f3));const _0x5378c7=this[_0x20dc7f(0x1c6)](_0x20dc7f(0x1d1)+_0x25365b[_0x20dc7f(0x1c4)](),_0x20dc7f(0x193));return{'getConversations':async()=>{const _0x323b33=_0x20dc7f,_0xcb34f5=await _0x5378c7[_0x323b33(0x1b4)];return(await _0xcb34f5[_0x323b33(0x1a8)]())[_0x323b33(0x192)];},'abortController':_0x5378c7[_0x20dc7f(0x1a5)]};}[_0x1e9caa(0x1c5)](_0x32a1b6){const _0x151ca2=_0x1e9caa,_0x1d0a7b=this[_0x151ca2(0x1c6)](_0x151ca2(0x194)+_0x32a1b6,_0x151ca2(0x19b));return{'execute':async()=>{const _0x5a222f=_0x151ca2;await _0x1d0a7b[_0x5a222f(0x1b4)];},'abortController':_0x1d0a7b[_0x151ca2(0x1a5)]};}[_0x1e9caa(0x1a7)](_0x4ce877,_0x2b232d){const _0x13bb28=_0x1e9caa,_0x53a7aa=this[_0x13bb28(0x1c6)](_0x13bb28(0x194)+_0x4ce877,_0x13bb28(0x197),_0x2b232d);return{'getResult':async()=>(await _0x53a7aa[_0x13bb28(0x1b4)],_0x2b232d),'abortController':_0x53a7aa[_0x13bb28(0x1a5)]};}[_0x1e9caa(0x1d4)](_0x30c46f){const _0x52966d=_0x1e9caa,_0x1f70e8=this[_0x52966d(0x1c6)](_0x52966d(0x194)+_0x30c46f,_0x52966d(0x193));return{'getConversation':async()=>(await _0x1f70e8[_0x52966d(0x1b4)])[_0x52966d(0x1a8)](),'abortController':_0x1f70e8[_0x52966d(0x1a5)]};}[_0x1e9caa(0x1cf)](_0x3318ca){const _0x3d3a49=_0x1e9caa,_0x49044f=this[_0x3d3a49(0x1c6)](_0x3d3a49(0x194)+_0x3318ca+_0x3d3a49(0x1ae),_0x3d3a49(0x193));return{'getMessages':async()=>{const _0x18a57d=_0x3d3a49,_0x47eb2d=await _0x49044f[_0x18a57d(0x1b4)];return(await _0x47eb2d[_0x18a57d(0x1a8)]())[_0x18a57d(0x192)];},'abortController':_0x49044f[_0x3d3a49(0x1a5)]};}[_0x1e9caa(0x1ad)](_0x4622bc,_0x40f844,_0x519c43){const _0x5e7ad8=_0x1e9caa,_0x4aec96=this[_0x5e7ad8(0x1c6)](_0x5e7ad8(0x194)+_0x4622bc+_0x5e7ad8(0x1b5),_0x5e7ad8(0x216),{'url':_0x40f844,'attributes':_0x519c43});return{'getId':async()=>(await _0x4aec96[_0x5e7ad8(0x1b4)])[_0x5e7ad8(0x1a8)](),'abortController':_0x4aec96[_0x5e7ad8(0x1a5)]};}[_0x1e9caa(0x1db)](_0x45823a='en'){const _0x808674=_0x1e9caa,_0x5f2a5a=new URLSearchParams();_0x5f2a5a[_0x808674(0x207)](_0x808674(0x18f),_0x45823a);const _0x4940b1=_0x808674(0x20e)+_0x5f2a5a[_0x808674(0x1c4)](),_0x51d30f=this[_0x808674(0x1c6)](_0x4940b1,_0x808674(0x193));return{'list':async()=>await(await _0x51d30f[_0x808674(0x1b4)])[_0x808674(0x1a8)](),'abortController':_0x51d30f[_0x808674(0x1a5)]};}[_0x1e9caa(0x1d9)](_0x540a7d,_0x223221){const _0x1e5bd1=_0x1e9caa,_0x21cdeb=this[_0x1e5bd1(0x1c6)](_0x1e5bd1(0x194)+_0x540a7d+_0x1e5bd1(0x1b1)+_0x223221,_0x1e5bd1(0x19b));return{'execute':async()=>{const _0x228aad=_0x1e5bd1;await _0x21cdeb[_0x228aad(0x1b4)];},'abortController':_0x21cdeb[_0x1e5bd1(0x1a5)]};}[_0x1e9caa(0x214)](_0x547c68,_0x41e8aa){const _0x1bc033=_0x1e9caa,_0x3b1b7c=this[_0x1bc033(0x1c6)](_0x1bc033(0x194)+_0x547c68+_0x1bc033(0x209)+_0x41e8aa,_0x1bc033(0x19b));return{'execute':async()=>{const _0x34f35b=_0x1bc033;await _0x3b1b7c[_0x34f35b(0x1b4)];},'abortController':_0x3b1b7c[_0x1bc033(0x1a5)]};}[_0x1e9caa(0x20b)](_0x53ee04,_0x3ab219){const _0x2e6d90=_0x1e9caa,_0x3d63f4=this[_0x2e6d90(0x1c6)](_0x2e6d90(0x194)+_0x53ee04+_0x2e6d90(0x1f8)+_0x3ab219,_0x2e6d90(0x19b));return{'execute':async()=>{const _0x26d4e8=_0x2e6d90;await _0x3d63f4[_0x26d4e8(0x1b4)];},'abortController':_0x3d63f4[_0x2e6d90(0x1a5)]};}[_0x1e9caa(0x1ab)]({reviewName:_0x756c13,content:_0x158391,args:_0x4d0bd6}){const _0x427d91=_0x1e9caa,_0x424f1c=this[_0x427d91(0x1c6)](_0x427d91(0x1b6)+_0x756c13+_0x427d91(0x18a),_0x427d91(0x216),{'content':[{'type':_0x427d91(0x195),'content':_0x158391}],'args':_0x4d0bd6});return{'getStream':async()=>{const _0x48d82a=_0x427d91,_0x32174e=(await _0x424f1c[_0x48d82a(0x1b4)])[_0x48d82a(0x1a9)];return this[_0x48d82a(0x210)](_0x32174e);},'abortController':_0x424f1c[_0x427d91(0x1a5)]};}[_0x1e9caa(0x198)]({content:_0x1f9e3c,prompt:_0x329d6b,model:_0x4ae356}){const _0x6e4866=_0x1e9caa,_0x524372=this[_0x6e4866(0x1c6)](_0x6e4866(0x18e),_0x6e4866(0x216),{'content':[{'type':_0x6e4866(0x195),'content':_0x1f9e3c}],'prompt':_0x329d6b,'model':_0x4ae356});return{'getStream':async()=>{const _0x54b7e4=_0x6e4866,_0x13286e=(await _0x524372[_0x54b7e4(0x1b4)])[_0x54b7e4(0x1a9)];return this[_0x54b7e4(0x210)](_0x13286e);},'abortController':_0x524372[_0x6e4866(0x1a5)]};}[_0x1e9caa(0x1dd)](_0x468e4a,_0x3d5a46,_0x2891e1){const _0x898008=_0x1e9caa,_0x46f06d=this[_0x898008(0x1c6)](_0x898008(0x194)+_0x468e4a+_0x898008(0x217)+_0x3d5a46+_0x898008(0x1e2),_0x898008(0x219),{'positiveCount':_0x2891e1[_0x898008(0x1f9)],'totalCount':_0x2891e1[_0x898008(0x1fe)],'modificationId':_0x2891e1[_0x898008(0x213)]});return{'execute':async()=>{const _0x9bb863=_0x898008;await _0x46f06d[_0x9bb863(0x1b4)];},'abortController':_0x46f06d[_0x898008(0x1a5)]};}[_0x1e9caa(0x1d0)](_0x45894b,_0x1aa27b,_0xfe2034){const _0x231b1c=_0x1e9caa,_0x2f5d2a=this[_0x231b1c(0x1c6)](_0x231b1c(0x208)+_0x45894b+_0x231b1c(0x1ee)+_0x1aa27b+_0x231b1c(0x1e2),_0x231b1c(0x219),{'positiveCount':_0xfe2034[_0x231b1c(0x1f9)],'totalCount':_0xfe2034[_0x231b1c(0x1fe)]});return{'execute':async()=>{const _0x46be36=_0x231b1c;await _0x2f5d2a[_0x46be36(0x1b4)];},'abortController':_0x2f5d2a[_0x231b1c(0x1a5)]};}[_0x1e9caa(0x1d7)](_0x4d063b,_0x2a0452){const _0x1eb0fb=_0x1e9caa,_0x56e1a2=this[_0x1eb0fb(0x1c6)](_0x1eb0fb(0x201)+_0x4d063b+_0x1eb0fb(0x1e2),_0x1eb0fb(0x219),{'positiveCount':_0x2a0452[_0x1eb0fb(0x1f9)],'totalCount':_0x2a0452[_0x1eb0fb(0x1fe)]});return{'execute':async()=>{const _0x223876=_0x1eb0fb;await _0x56e1a2[_0x223876(0x1b4)];},'abortController':_0x56e1a2[_0x1eb0fb(0x1a5)]};}[_0x1e9caa(0x21b)](_0x57ff18,_0x2ac671,_0x58c2e1,_0x12215c){const _0x19e4ac=_0x1e9caa,_0x3360ff=this[_0x19e4ac(0x1c6)](_0x19e4ac(0x1b6)+_0x57ff18+_0x19e4ac(0x1ee)+_0x2ac671+_0x19e4ac(0x1e2),_0x19e4ac(0x219),{'positiveCount':_0x58c2e1[_0x19e4ac(0x1f9)],'totalCount':_0x58c2e1[_0x19e4ac(0x1fe)],'dataId':_0x12215c});return{'execute':async()=>{const _0x32d34d=_0x19e4ac;await _0x3360ff[_0x32d34d(0x1b4)];},'abortController':_0x3360ff[_0x19e4ac(0x1a5)]};}[_0x1e9caa(0x1e9)](_0xa4b825,_0x16fcad,_0x26daeb){const _0xa7decd=_0x1e9caa,_0x427b6d=this[_0xa7decd(0x1c6)](_0xa7decd(0x1a2)+_0xa4b825+_0xa7decd(0x1e2),_0xa7decd(0x219),{'positiveCount':_0x16fcad[_0xa7decd(0x1f9)],'totalCount':_0x16fcad[_0xa7decd(0x1fe)],'dataId':_0x26daeb});return{'execute':async()=>{const _0x438c93=_0xa7decd;await _0x427b6d[_0x438c93(0x1b4)];},'abortController':_0x427b6d[_0xa7decd(0x1a5)]};}[_0x1e9caa(0x1c6)](_0x48d4d4,_0x3157b1,_0x391651){const _0xdf059b=_0x1e9caa,_0x2c2be3=new AbortController(),_0xf55c64=_0x391651 instanceof FormData,_0x1e1aab={'Authorization':_0xdf059b(0x1b2)+this[_0xdf059b(0x1b8)]?.[_0xdf059b(0x18b)]};_0x391651&&!_0xf55c64&&(_0x1e1aab[_0xdf059b(0x218)]=_0xdf059b(0x1e0));const _0x151bac={'method':_0x3157b1,'headers':_0x1e1aab,'signal':_0x2c2be3[_0xdf059b(0x1b0)]};return _0x391651&&(_0x151bac[_0xdf059b(0x1a9)]=_0xf55c64?_0x391651:JSON[_0xdf059b(0x1df)](_0x391651)),{'request':fetch(''+this[_0xdf059b(0x1ff)]+_0x48d4d4,_0x151bac)[_0xdf059b(0x1c2)](_0x368673=>{const _0x3d031f=_0xdf059b;this[_0x3d031f(0x1c7)](_0x368673);})[_0xdf059b(0x1da)](_0x4754b0=>_0x4754b0['ok']?_0x4754b0:_0x4754b0[_0xdf059b(0x1a8)]()[_0xdf059b(0x1da)](_0x1474e9=>{const _0x54a960=_0xdf059b;throw{'url':this[_0x54a960(0x1ff)],'path':_0x48d4d4,'method':_0x3157b1,'body':_0x391651,'status':(_0x4754b0||{})[_0x54a960(0x1bb)],'statusText':(_0x4754b0||{})[_0x54a960(0x1cb)],'code':_0x1474e9[_0x54a960(0x1f1)],'message':_0x1474e9[_0x54a960(0x191)],'traceId':_0x1474e9[_0x54a960(0x1dc)]};})),'abortController':_0x2c2be3};}async*[_0x1e9caa(0x210)](_0x47e088){const _0x394340=_0x1e9caa,_0x579b41=[],_0x44da33=_0x47e088[_0x394340(0x1eb)](),_0x2a5d9b=_0x576d47({'onError':_0x27eb35=>{const _0x5286fa=_0x394340;this[_0x5286fa(0x1c7)](_0x27eb35);},'onEvent':_0x28b3bb=>{const _0x5176d3=_0x394340;_0x28b3bb[_0x5176d3(0x20c)]=JSON[_0x5176d3(0x1c3)](_0x28b3bb[_0x5176d3(0x20c)]),_0x579b41[_0x5176d3(0x199)](_0x28b3bb);}});try{let _0x1ad8fd=!0x1;for(;!_0x1ad8fd;){const {done:_0x536c77,value:_0x8910d9}=await _0x44da33[_0x394340(0x1b3)]();_0x536c77&&(_0x1ad8fd=!0x0),_0x2a5d9b[_0x394340(0x1a4)](this[_0x394340(0x212)][_0x394340(0x1fb)](_0x8910d9,{'stream':!0x0})),yield*_0x579b41,_0x579b41[_0x394340(0x215)]=0x0;}}catch(_0x3578bb){this[_0x394340(0x1c7)](_0x3578bb);}finally{_0x44da33[_0x394340(0x1c0)](),_0x2a5d9b[_0x394340(0x1f0)]();}}[_0x1e9caa(0x1c7)](_0x103637){const _0x35426a=_0x1e9caa;if(_0x103637 instanceof _0x3d3d09)throw _0x103637;if(_0x103637 instanceof Error&&_0x35426a(0x1bf)===_0x103637[_0x35426a(0x1f2)])throw new _0x3d3d09(_0x35426a(0x1be),this,{'originalError':_0x103637});throw new _0x3d3d09(_0x35426a(0x19f),this,{'originalError':_0x103637});}}function _0x5a9d(){const _0x2c96dc=['upsertCustomAIReviewRating','7388784CNZRug','getReader','fetchDocument','executeAction','/calls/','executeCustomAction','reset','code','name','desc','3093660spiQOO','100','group','MAKE_TONE_FORMAL','/web-resources/','positiveCount','context','decode','translate','80297sgKLjh','totalCount','_apiUrl','sortBy','/actions/custom/calls/','order','18RzbTnD','true','1408004tsuSJL','limit','append','/actions/system/','/documents/','MAKE_SHORTER','deleteWebResource','data','false','/models/1?','CloudServices','_getStreamReader','/documents','_decoder','modificationId','deleteDocument','length','POST','/messages/','Content-Type','PUT','/conversations','upsertAIReviewRating','continue','ai.serviceUrl','/calls','value','/files','get','/reviews/custom/calls','language','init','message','items','GET','/conversations/','text','make-tone-formal','PATCH','callCustomReview','push','/actions/custom/calls','DELETE','config','excludeEmpty','ai-missing-token','ai-request-failed','FIX_GRAMMAR','TRANSLATE','/reviews/custom/calls/','isOfficialPlugin','feed','abortController','822XaBInY','updateConversation','json','body','improve-writing','callSystemReview','267961COGMJr','uploadUrl','/messages','uploadDocument','signal','/files/','Bearer\x20','read','request','/web-resources','/reviews/system/','queryAssistant','_token','attributes','requires','status','5558253YPxIVt','createdAt','ai-request-aborted','AbortError','releaseLock','CONTINUE','catch','parse','toString','deleteConversation','_sendApiRequest','_handleError','https://ai.cke-cs.com/v1','token','fix-grammar','statusText','uploadFile','define','make-longer','fetchConversationMessages','upsertAIActionRating','/conversations?','pluginName','make-shorter','fetchConversation','file','make-tone-casual','upsertCustomAIActionRating','MAKE_LONGER','deleteFile','then','getModels','traceId','upsertAIChatRating','isPremiumPlugin','stringify','application/json','IMPROVE_WRITING','/ratings','5768696HYcPjB','fetchConversations','plugins','startConversation','MAKE_TONE_CASUAL','AIConnector'];_0x5a9d=function(){return _0x2c96dc;};return _0x5a9d();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xaca29c=_0xc168;(function(_0x34d4ec,_0x4b106c){const _0x506535=_0xc168,_0x35765e=_0x34d4ec();while(!![]){try{const _0x1c084c=-parseInt(_0x506535(0x90))/0x1*(parseInt(_0x506535(0x7e))/0x2)+-parseInt(_0x506535(0xdb))/0x3*(parseInt(_0x506535(0x9b))/0x4)+parseInt(_0x506535(0x8e))/0x5+-parseInt(_0x506535(0x77))/0x6*(parseInt(_0x506535(0xda))/0x7)+parseInt(_0x506535(0xae))/0x8+parseInt(_0x506535(0xe6))/0x9*(-parseInt(_0x506535(0x86))/0xa)+parseInt(_0x506535(0x75))/0xb*(parseInt(_0x506535(0xc5))/0xc);if(_0x1c084c===_0x4b106c)break;else _0x35765e['push'](_0x35765e['shift']());}catch(_0x63c813){_0x35765e['push'](_0x35765e['shift']());}}}(_0x58a8,0xa3913));import{ViewDowncastWriter as _0x5eeb0f}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x3f2e8,Editor as _0x4a4c93}from'ckeditor5/src/core.js';import{uid as _0x9749f0}from'ckeditor5/src/utils.js';import{getEditorFromContext as _0x458989}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0xaca29c(0xd0);function _0x58a8(){const _0x20803a=['htmlWriter','4391416COytCl','markerToElement','listenTo','_getDocumentDataStringFromView','addMarker','getHtml','createUIElement','document','getLastMatchingPosition','for','_displayedFakeSelectionLocked','_nextDataId','data','modelToDataWithIds','define','_outputDataProcessor','indexOf','fromCharCode','ready','conversion','add','editors','markerName','204dMEzwZ','markers','substring','_sessionId','editing','isContent','getChildren','plugins','random','$textProxy','start','ai-selection','_setDataIdsOnChildren','config','_setOutputDataProcessor','_integrateEditor','dataDowncast','emptyElement','removeMarker','_getMarkersInDocumentOrder',':end></','6745571YjTeEk','3YteuJX','schema','name','createRange','isOfficialPlugin','sort','view','from','toData','viewToDom',':start></','5448717eRfRhL','removeAllRanges','containerElement','getDocumentData','1980473zLMyqu','end','6LPFscV','version','hideFakeVisualSelection','afterInit','data-id','ai.models.showModelSelector','isBefore','590ekEenj','createRangeIn','ck-fake-ai-selection','sessionId','getMarkersGroup','getWalker',':end>','editingDowncast','10orqFfF','floor','context','showFakeVisualSelection','isPremiumPlugin','getRoot','AIEditing','_displayedFakeSelectionId','280dWTpiG','change','3132jqBnSo','getSelectedContent','ck-ai-assistant-ui_theme','push',':start>','markerToHighlight','pluginName','model','get','getSelection','ai-selection:','1786948IoGKxq','domConverter','isAfter','setAttribute','convertAiChatSelectionMarker','element','isOpening','join','has','processor','getStart','toView','isAtEnd','RealTimeCollaborationClient','selection','getSelectionText','trim','length'];_0x58a8=function(){return _0x20803a;};return _0x58a8();}function _0xc168(_0xf29cac,_0x658efd){const _0x58a8ea=_0x58a8();return _0xc168=function(_0xc16843,_0x4b3619){_0xc16843=_0xc16843-0x73;let _0x443e3b=_0x58a8ea[_0xc16843];return _0x443e3b;},_0xc168(_0xf29cac,_0x658efd);}export class AIEditing extends _0x3f2e8{constructor(_0xeea677){const _0x322b3a=_0xaca29c;super(_0xeea677),this[_0x322b3a(0x88)][_0x322b3a(0xd2)][_0x322b3a(0xbc)](_0x322b3a(0x7c),!0x0);}[_0xaca29c(0xbd)];[_0xaca29c(0x8d)]=null;[_0xaca29c(0xb8)]=!0x1;[_0xaca29c(0xc8)];static get[_0xaca29c(0x96)](){const _0x20c6bd=_0xaca29c;return _0x20c6bd(0x8c);}static get[_0xaca29c(0xdf)](){return!0x0;}static get[_0xaca29c(0x8a)](){return!0x0;}get[_0xaca29c(0x81)](){const _0x1a0539=_0xaca29c;if(!this[_0x1a0539(0xc8)]){const _0x3f087f=_0x458989(this[_0x1a0539(0x88)]),_0x5786be=_0x3f087f[_0x1a0539(0xcc)][_0x1a0539(0xa3)](_0x1a0539(0xa8))&&_0x3f087f[_0x1a0539(0xcc)][_0x1a0539(0x98)](_0x1a0539(0xa8))[_0x1a0539(0x81)];this[_0x1a0539(0xc8)]=_0x5786be||_0x9749f0();}return this[_0x1a0539(0xc8)];}async[_0xaca29c(0x74)](){const _0x1d305a=_0xaca29c,_0x6432d4=_0x458989(this[_0x1d305a(0x88)]),_0x4a0c5c=_0x6432d4[_0x1d305a(0x97)],_0x232ba6=_0x6432d4[_0x1d305a(0xba)][_0x1d305a(0xa6)](_0x4a0c5c[_0x1d305a(0xb5)][_0x1d305a(0x8b)](),{'convertAiChatSelectionMarker':!0x0}),_0x162602=new _0x5eeb0f(_0x6432d4[_0x1d305a(0xc9)][_0x1d305a(0xe1)][_0x1d305a(0xb5)]);this[_0x1d305a(0xd1)](_0x232ba6,_0x162602);let _0x4f9ed3=await this[_0x1d305a(0xb1)](_0x232ba6);const _0x252a36=this[_0x1d305a(0xd8)](),_0x42c9cb=[];for(const _0x401cb0 of _0x252a36){const _0x3c9c3e='<'+_0x401cb0[_0x1d305a(0xdd)]+_0x1d305a(0xe5)+_0x401cb0[_0x1d305a(0xdd)]+_0x1d305a(0x94),_0x5600a6=_0x4f9ed3[_0x1d305a(0xbe)](_0x3c9c3e);_0x4f9ed3=_0x4f9ed3[_0x1d305a(0xc7)](0x0,_0x5600a6)+_0x4f9ed3[_0x1d305a(0xc7)](_0x5600a6+_0x3c9c3e[_0x1d305a(0xac)]);const _0x59421f='<'+_0x401cb0[_0x1d305a(0xdd)]+_0x1d305a(0xd9)+_0x401cb0[_0x1d305a(0xdd)]+_0x1d305a(0x84),_0x51b1e1=_0x4f9ed3[_0x1d305a(0xbe)](_0x59421f);_0x4f9ed3=_0x4f9ed3[_0x1d305a(0xc7)](0x0,_0x51b1e1)+_0x4f9ed3[_0x1d305a(0xc7)](_0x51b1e1+_0x59421f[_0x1d305a(0xac)]),_0x42c9cb[_0x1d305a(0x93)]({'markerName':_0x401cb0[_0x1d305a(0xdd)],'start':_0x5600a6,'end':_0x51b1e1,'htmlFragment':_0x4f9ed3[_0x1d305a(0xc7)](_0x5600a6,_0x51b1e1)});}return{'content':_0x4f9ed3,'version':_0x6432d4[_0x1d305a(0x97)][_0x1d305a(0xb5)][_0x1d305a(0x78)],'sessionId':this[_0x1d305a(0x81)],'selections':_0x42c9cb};}async[_0xaca29c(0x7a)](){const _0xb178c5=_0xaca29c;this[_0xb178c5(0x88)]instanceof _0x4a4c93?this[_0xb178c5(0xd4)](this[_0xb178c5(0x88)]):this[_0xb178c5(0xb0)](this[_0xb178c5(0x88)][_0xb178c5(0xc3)],_0xb178c5(0xc2),(_0x2ac322,_0x448c3a)=>{const _0x2b11f9=_0xb178c5;_0x448c3a['on'](_0x2b11f9(0xc0),()=>{const _0x2c0009=_0x2b11f9;this[_0x2c0009(0xd4)](_0x448c3a);});});}[_0xaca29c(0xd3)](_0x15b0ff){const _0x48b409=_0xaca29c;this[_0x48b409(0xbd)]=_0x15b0ff;}async[_0xaca29c(0xb1)](_0x5c606b){const _0xed3f7f=_0xaca29c;let _0x40e8ae;const _0x538dc4=_0x458989(this[_0xed3f7f(0x88)]);if(this[_0xed3f7f(0xbd)]){const _0x480712=_0x538dc4[_0xed3f7f(0xba)][_0xed3f7f(0xa4)][_0xed3f7f(0x9c)][_0xed3f7f(0xe4)](_0x5c606b),_0x10f778=await this[_0xed3f7f(0xbd)](_0x480712);_0x40e8ae=_0x538dc4[_0xed3f7f(0xba)][_0xed3f7f(0xa4)][_0xed3f7f(0xad)][_0xed3f7f(0xb3)](_0x10f778);}else _0x40e8ae=_0x538dc4[_0xed3f7f(0xba)][_0xed3f7f(0xa4)][_0xed3f7f(0xe3)](_0x5c606b);return _0x40e8ae;}[_0xaca29c(0xd4)](_0x608050){const _0x103b3a=_0xaca29c;_0x608050[_0x103b3a(0xc1)][_0x103b3a(0xb7)](_0x103b3a(0x85))[_0x103b3a(0x95)]({'model':_0x103b3a(0xd0),'view':{'classes':[_0x103b3a(0x80),_0x103b3a(0x92)],'priority':0xc}}),_0x608050[_0x103b3a(0xc1)][_0x103b3a(0xb7)](_0x103b3a(0xd5))[_0x103b3a(0xaf)]({'model':_0x103b3a(0xd0),'view':(_0x83998e,{writer:_0x4218d3,options:_0x34ed0c})=>_0x34ed0c[_0x103b3a(0x9f)]?_0x4218d3[_0x103b3a(0xb4)](_0x83998e[_0x103b3a(0xc4)]+':'+(_0x83998e[_0x103b3a(0xa1)]?_0x103b3a(0xcf):_0x103b3a(0x76))):null});}[_0xaca29c(0x89)](_0x6c50bd,_0x4b6aec,_0x54e26a=!0x1,_0x584f79=!0x1){const _0xb81d4=_0xaca29c;if(this[_0xb81d4(0xb8)]&&!_0x584f79)return!0x1;const _0x548ff7=_0x458989(this[_0xb81d4(0x88)])[_0xb81d4(0x97)];return _0x548ff7[_0xb81d4(0x8f)](_0x2b3880=>{const _0x1cde19=_0xb81d4;this[_0x1cde19(0x8d)]&&this[_0x1cde19(0x79)](this[_0x1cde19(0x8d)]),this[_0x1cde19(0x8d)]=_0x4b6aec,this[_0x1cde19(0xb8)]=_0x54e26a;let _0x3f1bc3=0x0;for(let _0x5c16a6 of _0x6c50bd){const _0x3ff20d=_0x1cde19(0x9a)+_0x3f1bc3;if(_0x5c16a6[_0x1cde19(0xcf)][_0x1cde19(0xa7)]){const _0xbabf4=_0x5c16a6[_0x1cde19(0xcf)][_0x1cde19(0xb6)](({item:_0x4d32dd})=>!_0x548ff7[_0x1cde19(0xdc)][_0x1cde19(0xca)](_0x4d32dd),{'boundaries':_0x5c16a6});_0x5c16a6=_0x2b3880[_0x1cde19(0xde)](_0xbabf4,_0x5c16a6[_0x1cde19(0x76)]);}_0x2b3880[_0x1cde19(0xb2)](_0x3ff20d,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x5c16a6}),_0x3f1bc3++;}}),window[_0xb81d4(0x99)]()?.[_0xb81d4(0xe7)](),!0x0;}[_0xaca29c(0x79)](_0x39c7ad){const _0x27aeeb=_0xaca29c;if(this[_0x27aeeb(0x8d)]!=_0x39c7ad)return!0x1;this[_0x27aeeb(0x8d)]=null,this[_0x27aeeb(0xb8)]=!0x1;const _0x5757eb=_0x458989(this[_0x27aeeb(0x88)]),_0x134c20=_0x5757eb[_0x27aeeb(0x97)][_0x27aeeb(0xc6)][_0x27aeeb(0x82)](_0x27aeeb(0xd0));return _0x5757eb[_0x27aeeb(0x97)][_0x27aeeb(0x8f)](_0x5782ff=>{const _0xc89bd1=_0x27aeeb;for(const _0x2524cf of _0x134c20)_0x5782ff[_0xc89bd1(0xd7)](_0x2524cf);}),!0x0;}async[_0xaca29c(0xbb)](_0x1ffa24){const _0x453300=_0xaca29c,_0x11e881=_0x458989(this[_0x453300(0x88)]),_0xf98091=_0x11e881[_0x453300(0xba)][_0x453300(0xa6)](_0x1ffa24),_0x37cf2e=new _0x5eeb0f(_0x11e881[_0x453300(0xc9)][_0x453300(0xe1)][_0x453300(0xb5)]);return this[_0x453300(0xd1)](_0xf98091,_0x37cf2e),this[_0x453300(0xb1)](_0xf98091);}[_0xaca29c(0xd1)](_0x1792a8,_0x3943f4){const _0x191cdb=_0xaca29c;let _0x1b887d=!0x1;const _0x45f8fd=new Set();for(const _0x1146ef of _0x1792a8[_0x191cdb(0xcb)]()){const _0x25c028=_0x1146ef['is'](_0x191cdb(0xd6))||_0x1146ef['is'](_0x191cdb(0x73));if(!_0x1146ef['is'](_0x191cdb(0xa0)))continue;(this[_0x191cdb(0xd1)](_0x1146ef,_0x3943f4)||_0x25c028)&&(_0x3943f4[_0x191cdb(0x9e)](_0x191cdb(0x7b),this[_0x191cdb(0xb9)](_0x45f8fd),_0x1146ef),_0x1b887d=!0x0);}return _0x1b887d;}[_0xaca29c(0xb9)](_0x443072){const _0x3f8226=_0xaca29c;let _0x2d9b78;do{_0x2d9b78='';for(let _0x125fec=0x0;_0x125fec<0x4;_0x125fec++)_0x2d9b78+=String[_0x3f8226(0xbf)](0x61+Math[_0x3f8226(0x87)](0x1a*Math[_0x3f8226(0xcd)]()));}while(_0x443072[_0x3f8226(0xa3)](_0x2d9b78));return _0x443072[_0x3f8226(0xc2)](_0x2d9b78),_0x2d9b78;}[_0xaca29c(0xaa)](){const _0x311f59=_0xaca29c,{model:_0x4998e0}=_0x458989(this[_0x311f59(0x88)]),_0x541d2e=_0x4998e0[_0x311f59(0xb5)][_0x311f59(0xa9)],_0x4f686a=_0x4998e0[_0x311f59(0x91)](_0x541d2e),_0x25b601=[],_0x7fff16=_0x4998e0[_0x311f59(0x7f)](_0x4f686a)[_0x311f59(0x83)]();for(const {item:_0x4246ae}of _0x7fff16)_0x4246ae['is'](_0x311f59(0xce))?_0x25b601[_0x311f59(0x93)](_0x4246ae[_0x311f59(0xba)]):_0x4246ae['is'](_0x311f59(0xa0))&&_0x25b601[_0x311f59(0xac)]>0x0&&'\x20'!==_0x25b601[_0x25b601[_0x311f59(0xac)]-0x1]&&_0x25b601[_0x311f59(0x93)]('\x20');return'\x22'+_0x25b601[_0x311f59(0xa2)]('')[_0x311f59(0xab)]()+'\x22';}[_0xaca29c(0xd8)](){const _0x4dd0ec=_0xaca29c,_0x2ff89c=_0x458989(this[_0x4dd0ec(0x88)])[_0x4dd0ec(0x97)];return Array[_0x4dd0ec(0xe2)](_0x2ff89c[_0x4dd0ec(0xc6)][_0x4dd0ec(0x82)](_0x4dd0ec(0xd0)))[_0x4dd0ec(0xe0)]((_0xd6a430,_0x1385f2)=>_0xd6a430[_0x4dd0ec(0xa5)]()[_0x4dd0ec(0x7d)](_0x1385f2[_0x4dd0ec(0xa5)]())?-0x1:_0xd6a430[_0x4dd0ec(0xa5)]()[_0x4dd0ec(0x9d)](_0x1385f2[_0x4dd0ec(0xa5)]())?0x1:0x0);}}
23
+ const _0x36ca49=_0x29d8;(function(_0xe6cfd4,_0x413a25){const _0x2f1128=_0x29d8,_0xb653b2=_0xe6cfd4();while(!![]){try{const _0x1dc0d9=-parseInt(_0x2f1128(0x16a))/0x1+-parseInt(_0x2f1128(0x166))/0x2+-parseInt(_0x2f1128(0x17b))/0x3*(parseInt(_0x2f1128(0x15a))/0x4)+parseInt(_0x2f1128(0x181))/0x5*(-parseInt(_0x2f1128(0x17f))/0x6)+-parseInt(_0x2f1128(0x167))/0x7+parseInt(_0x2f1128(0x1a1))/0x8+parseInt(_0x2f1128(0x199))/0x9*(parseInt(_0x2f1128(0x1ad))/0xa);if(_0x1dc0d9===_0x413a25)break;else _0xb653b2['push'](_0xb653b2['shift']());}catch(_0x458eba){_0xb653b2['push'](_0xb653b2['shift']());}}}(_0x3c1d,0xaac6f));import{ViewDowncastWriter as _0x2e33c9}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x158f0b,Editor as _0x455bb1}from'ckeditor5/src/core.js';import{uid as _0x552dd5}from'ckeditor5/src/utils.js';import{getTranslation as _0x35e358}from'./utils/common-translations.js';import{getEditorFromContext as _0x3cc619}from'./utils/geteditorfromcontext.js';function _0x29d8(_0x57530f,_0x2c82fd){const _0x3c1dcb=_0x3c1d();return _0x29d8=function(_0x29d82b,_0x503262){_0x29d82b=_0x29d82b-0x145;let _0x1f9021=_0x3c1dcb[_0x29d82b];return _0x1f9021;},_0x29d8(_0x57530f,_0x2c82fd);}function _0x3c1d(){const _0x36c826=['removeAllRanges','3LiSlgD','markerName','isPremiumPlugin','length','18Ufhvvs','markers','1362085kMmdYS','schema','getDocumentData','selection','push','indexOf','conversion','RealTimeCollaborationClient','_getMarkersInDocumentOrder','ck-fake-ai-selection','editors','editing','view','modelToDataWithIds','end','floor','editingDowncast','dataDowncast','_setDataIdsOnChildren','showFakeVisualSelection','getStart','getItems','ck-ai-assistant-ui_theme','isOpening','12221946olEKCq','ai-selection:','getSelection','from',':end></','domConverter','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','trim','9867720vNIsSd','define','toView','locale','getRoot','_integrateEditor','isAfter','afterInit','pluginName','AIEditing','data-id',':end>','20RAZzrn','_setOutputDataProcessor','emptyElement','document','markerToElement','fromCharCode','start','_nextDataId','for','convertAiChatSelectionMarker','plugins','viewToDom','change','addMarker','createUIElement','isBefore','_displayedFakeSelectionLocked','element','name','isContent','createRange',':start></','get','getMarkersGroup','sessionId','getHtml','_sessionId','processor','listenTo','isAtEnd','join','setAttribute','removeMarker','566164GmbVNU','isOfficialPlugin','ai.models.showModelSelector','getChildren','ready','sort','htmlWriter','ai-selection','model','markerToHighlight','containerElement','$textProxy','1372270boXIuu','5411938swirTC','context','data','831889pnQwKm',':start>','version','_outputDataProcessor','getLastMatchingPosition','toData','_getDocumentDataStringFromView','getSelectionText','config','random','add','has','hideFakeVisualSelection','getRanges','substring','_displayedFakeSelectionId'];_0x3c1d=function(){return _0x36c826;};return _0x3c1d();}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x36ca49(0x161);export class AIEditing extends _0x158f0b{constructor(_0x1ecfe9){const _0x1cc74a=_0x36ca49;super(_0x1ecfe9),this[_0x1cc74a(0x168)][_0x1cc74a(0x172)][_0x1cc74a(0x1a2)](_0x1cc74a(0x15c),!0x0);}[_0x36ca49(0x16d)];[_0x36ca49(0x179)]=null;[_0x36ca49(0x149)]=!0x1;[_0x36ca49(0x153)];static get[_0x36ca49(0x1a9)](){const _0x21bf0b=_0x36ca49;return _0x21bf0b(0x1aa);}static get[_0x36ca49(0x15b)](){return!0x0;}static get[_0x36ca49(0x17d)](){return!0x0;}get[_0x36ca49(0x151)](){const _0x24cc92=_0x36ca49;if(!this[_0x24cc92(0x153)]){const _0x268b88=_0x3cc619(this[_0x24cc92(0x168)]),_0x4d8c1a=_0x268b88[_0x24cc92(0x1b7)][_0x24cc92(0x175)](_0x24cc92(0x188))&&_0x268b88[_0x24cc92(0x1b7)][_0x24cc92(0x14f)](_0x24cc92(0x188))[_0x24cc92(0x151)];this[_0x24cc92(0x153)]=_0x4d8c1a||_0x552dd5();}return this[_0x24cc92(0x153)];}async[_0x36ca49(0x183)](){const _0x51c436=_0x36ca49,_0x5966de=_0x3cc619(this[_0x51c436(0x168)]),_0x15f554=_0x5966de[_0x51c436(0x162)],_0x545d5b=_0x5966de[_0x51c436(0x169)][_0x51c436(0x1a3)](_0x15f554[_0x51c436(0x1b0)][_0x51c436(0x1a5)](),{'convertAiChatSelectionMarker':!0x0}),_0x3c7255=new _0x2e33c9(_0x5966de[_0x51c436(0x18c)][_0x51c436(0x18d)][_0x51c436(0x1b0)]);this[_0x51c436(0x193)](_0x545d5b,_0x3c7255);let _0x957739=await this[_0x51c436(0x170)](_0x545d5b);const _0x4ac234=this[_0x51c436(0x189)](),_0x343f85=[];for(const _0x4b531a of _0x4ac234){const _0x256a96='<'+_0x4b531a[_0x51c436(0x14b)]+_0x51c436(0x14e)+_0x4b531a[_0x51c436(0x14b)]+_0x51c436(0x16b),_0x262b0f=_0x957739[_0x51c436(0x186)](_0x256a96);_0x957739=_0x957739[_0x51c436(0x178)](0x0,_0x262b0f)+_0x957739[_0x51c436(0x178)](_0x262b0f+_0x256a96[_0x51c436(0x17e)]);const _0x5bcb86='<'+_0x4b531a[_0x51c436(0x14b)]+_0x51c436(0x19d)+_0x4b531a[_0x51c436(0x14b)]+_0x51c436(0x1ac),_0x3b759e=_0x957739[_0x51c436(0x186)](_0x5bcb86);_0x957739=_0x957739[_0x51c436(0x178)](0x0,_0x3b759e)+_0x957739[_0x51c436(0x178)](_0x3b759e+_0x5bcb86[_0x51c436(0x17e)]),_0x343f85[_0x51c436(0x185)]({'markerName':_0x4b531a[_0x51c436(0x14b)],'start':_0x262b0f,'end':_0x3b759e,'htmlFragment':_0x957739[_0x51c436(0x178)](_0x262b0f,_0x3b759e)});}return{'content':_0x957739,'version':_0x5966de[_0x51c436(0x162)][_0x51c436(0x1b0)][_0x51c436(0x16c)],'sessionId':this[_0x51c436(0x151)],'selections':_0x343f85};}async[_0x36ca49(0x1a8)](){const _0x1cbb70=_0x36ca49;this[_0x1cbb70(0x168)]instanceof _0x455bb1?this[_0x1cbb70(0x1a6)](this[_0x1cbb70(0x168)]):this[_0x1cbb70(0x155)](this[_0x1cbb70(0x168)][_0x1cbb70(0x18b)],_0x1cbb70(0x174),(_0x47b373,_0xe20ea7)=>{const _0x1b914a=_0x1cbb70;_0xe20ea7['on'](_0x1b914a(0x15e),()=>{const _0x109258=_0x1b914a;this[_0x109258(0x1a6)](_0xe20ea7);});});}[_0x36ca49(0x1ae)](_0x1e62cc){const _0x173859=_0x36ca49;this[_0x173859(0x16d)]=_0x1e62cc;}async[_0x36ca49(0x170)](_0x129e46){const _0x2c1126=_0x36ca49;let _0x10de2e;const _0x22d54c=_0x3cc619(this[_0x2c1126(0x168)]);if(this[_0x2c1126(0x16d)]){const _0x5be7b4=_0x22d54c[_0x2c1126(0x169)][_0x2c1126(0x154)][_0x2c1126(0x19e)][_0x2c1126(0x1b8)](_0x129e46),_0x1a9448=await this[_0x2c1126(0x16d)](_0x5be7b4);_0x10de2e=_0x22d54c[_0x2c1126(0x169)][_0x2c1126(0x154)][_0x2c1126(0x160)][_0x2c1126(0x152)](_0x1a9448);}else _0x10de2e=_0x22d54c[_0x2c1126(0x169)][_0x2c1126(0x154)][_0x2c1126(0x16f)](_0x129e46);return _0x10de2e;}[_0x36ca49(0x1a6)](_0x4256b5){const _0x483ee7=_0x36ca49;_0x4256b5[_0x483ee7(0x187)][_0x483ee7(0x1b5)](_0x483ee7(0x191))[_0x483ee7(0x163)]({'model':_0x483ee7(0x161),'view':{'classes':[_0x483ee7(0x18a),_0x483ee7(0x197)],'priority':0xc}}),_0x4256b5[_0x483ee7(0x187)][_0x483ee7(0x1b5)](_0x483ee7(0x192))[_0x483ee7(0x1b1)]({'model':_0x483ee7(0x161),'view':(_0xf5082e,{writer:_0x318b09,options:_0x471343})=>_0x471343[_0x483ee7(0x1b6)]?_0x318b09[_0x483ee7(0x147)](_0xf5082e[_0x483ee7(0x17c)]+':'+(_0xf5082e[_0x483ee7(0x198)]?_0x483ee7(0x1b3):_0x483ee7(0x18f))):null});}[_0x36ca49(0x194)](_0x2293cb,_0x3b8175,_0x24d947=!0x1,_0x2bec4e=!0x1){const _0x4e82a3=_0x36ca49;if(this[_0x4e82a3(0x149)]&&!_0x2bec4e)return!0x1;const _0x5827ee=_0x3cc619(this[_0x4e82a3(0x168)])[_0x4e82a3(0x162)];return _0x5827ee[_0x4e82a3(0x145)](_0x1ed699=>{const _0x54f78c=_0x4e82a3;this[_0x54f78c(0x179)]&&this[_0x54f78c(0x176)](this[_0x54f78c(0x179)]),this[_0x54f78c(0x179)]=_0x3b8175,this[_0x54f78c(0x149)]=_0x24d947;let _0x3f65ee=0x0;for(let _0x7d7d4b of _0x2293cb){const _0x45b23b=_0x54f78c(0x19a)+_0x3f65ee;if(_0x7d7d4b[_0x54f78c(0x1b3)][_0x54f78c(0x156)]){const _0x4f6fe5=_0x7d7d4b[_0x54f78c(0x1b3)][_0x54f78c(0x16e)](({item:_0x4505f1})=>!_0x5827ee[_0x54f78c(0x182)][_0x54f78c(0x14c)](_0x4505f1),{'boundaries':_0x7d7d4b});_0x7d7d4b=_0x1ed699[_0x54f78c(0x14d)](_0x4f6fe5,_0x7d7d4b[_0x54f78c(0x18f)]);}_0x1ed699[_0x54f78c(0x146)](_0x45b23b,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x7d7d4b}),_0x3f65ee++;}}),window[_0x4e82a3(0x19b)]()?.[_0x4e82a3(0x17a)](),!0x0;}[_0x36ca49(0x176)](_0x4506af){const _0x5948cc=_0x36ca49;if(this[_0x5948cc(0x179)]!=_0x4506af)return!0x1;this[_0x5948cc(0x179)]=null,this[_0x5948cc(0x149)]=!0x1;const _0x363408=_0x3cc619(this[_0x5948cc(0x168)]),_0x1f652a=_0x363408[_0x5948cc(0x162)][_0x5948cc(0x180)][_0x5948cc(0x150)](_0x5948cc(0x161));return _0x363408[_0x5948cc(0x162)][_0x5948cc(0x145)](_0x23f731=>{const _0x56bb8c=_0x5948cc;for(const _0xe92d39 of _0x1f652a)_0x23f731[_0x56bb8c(0x159)](_0xe92d39);}),!0x0;}async[_0x36ca49(0x18e)](_0x359def){const _0x374936=_0x36ca49,_0x253099=_0x3cc619(this[_0x374936(0x168)]),_0x430c7a=_0x253099[_0x374936(0x169)][_0x374936(0x1a3)](_0x359def),_0x3a9535=new _0x2e33c9(_0x253099[_0x374936(0x18c)][_0x374936(0x18d)][_0x374936(0x1b0)]);return this[_0x374936(0x193)](_0x430c7a,_0x3a9535),this[_0x374936(0x170)](_0x430c7a);}[_0x36ca49(0x193)](_0x164523,_0x21f532){const _0x111cf0=_0x36ca49;let _0x529588=!0x1;const _0x2de779=new Set();for(const _0xd096c6 of _0x164523[_0x111cf0(0x15d)]()){const _0x5eb749=_0xd096c6['is'](_0x111cf0(0x1af))||_0xd096c6['is'](_0x111cf0(0x164));if(!_0xd096c6['is'](_0x111cf0(0x14a)))continue;(this[_0x111cf0(0x193)](_0xd096c6,_0x21f532)||_0x5eb749)&&(_0x21f532[_0x111cf0(0x158)](_0x111cf0(0x1ab),this[_0x111cf0(0x1b4)](_0x2de779),_0xd096c6),_0x529588=!0x0);}return _0x529588;}[_0x36ca49(0x1b4)](_0x157f4e){const _0x239d10=_0x36ca49;let _0x2dcf8c;do{_0x2dcf8c='';for(let _0x490422=0x0;_0x490422<0x4;_0x490422++)_0x2dcf8c+=String[_0x239d10(0x1b2)](0x61+Math[_0x239d10(0x190)](0x1a*Math[_0x239d10(0x173)]()));}while(_0x157f4e[_0x239d10(0x175)](_0x2dcf8c));return _0x157f4e[_0x239d10(0x174)](_0x2dcf8c),_0x2dcf8c;}[_0x36ca49(0x171)](){const _0x5b5202=_0x36ca49,{model:_0x2a55e3}=_0x3cc619(this[_0x5b5202(0x168)]),_0x3a9df8=_0x2a55e3[_0x5b5202(0x1b0)][_0x5b5202(0x184)],_0x15bd09=[];for(const _0x31ff37 of _0x3a9df8[_0x5b5202(0x177)]())for(const _0x1c7b57 of _0x31ff37[_0x5b5202(0x196)]())_0x1c7b57['is'](_0x5b5202(0x165))?_0x15bd09[_0x5b5202(0x185)](_0x1c7b57[_0x5b5202(0x169)]):_0x1c7b57['is'](_0x5b5202(0x14a))&&_0x15bd09[_0x5b5202(0x17e)]>0x0&&'\x20'!==_0x15bd09[_0x15bd09[_0x5b5202(0x17e)]-0x1]&&_0x15bd09[_0x5b5202(0x185)]('\x20');return _0x15bd09[_0x5b5202(0x17e)]?'\x22'+_0x15bd09[_0x5b5202(0x157)]('')[_0x5b5202(0x1a0)]()+'\x22':_0x35e358(this[_0x5b5202(0x168)][_0x5b5202(0x1a4)],_0x5b5202(0x19f));}[_0x36ca49(0x189)](){const _0x5f4e5f=_0x36ca49,_0x4b5475=_0x3cc619(this[_0x5f4e5f(0x168)])[_0x5f4e5f(0x162)];return Array[_0x5f4e5f(0x19c)](_0x4b5475[_0x5f4e5f(0x180)][_0x5f4e5f(0x150)](_0x5f4e5f(0x161)))[_0x5f4e5f(0x15f)]((_0x56ff4f,_0x485e34)=>_0x56ff4f[_0x5f4e5f(0x195)]()[_0x5f4e5f(0x148)](_0x485e34[_0x5f4e5f(0x195)]())?-0x1:_0x56ff4f[_0x5f4e5f(0x195)]()[_0x5f4e5f(0x1a7)](_0x485e34[_0x5f4e5f(0x195)]())?0x1:0x0);}}