@ckeditor/ckeditor5-ai 47.0.0-alpha.6 → 47.0.0-alpha.7

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 (317) hide show
  1. package/LICENSE.md +4 -0
  2. package/build/ai.js +1 -1
  3. package/dist/index-editor.css +54 -18
  4. package/dist/index.css +64 -19
  5. package/dist/index.js +4 -4
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/lang/contexts.json +5 -0
  153. package/package.json +15 -15
  154. package/src/aiactions/aiactions.d.ts +0 -2
  155. package/src/aiactions/aiactions.js +1 -1
  156. package/src/aiactions/model/aiactionsinteraction.d.ts +1 -0
  157. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  158. package/src/aiactions/model/aiactionsreply.js +1 -1
  159. package/src/aiassistant/adapters/aiadapter.js +1 -1
  160. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  161. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  162. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  163. package/src/aiassistant/aiassistant.js +1 -1
  164. package/src/aiassistant/aiassistantediting.js +1 -1
  165. package/src/aiassistant/aiassistantui.js +1 -1
  166. package/src/aiassistant/legacyerrors.js +1 -1
  167. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  168. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  169. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  171. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  172. package/src/aiassistant/ui/form/aiformview.js +1 -1
  173. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  174. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  175. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  176. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  177. package/src/aiassistant/utils/common-translations.js +1 -1
  178. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  179. package/src/aiballoon/aiballoon.js +1 -1
  180. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  181. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  182. package/src/aiballoon/ui/aiballoonview.d.ts +3 -1
  183. package/src/aiballoon/ui/aiballoonview.js +1 -1
  184. package/src/aichat/aichat.js +1 -1
  185. package/src/aichat/aichatcontroller.js +1 -1
  186. package/src/aichat/aichatui.d.ts +7 -2
  187. package/src/aichat/aichatui.js +1 -1
  188. package/src/aichat/model/aichatcontext.js +1 -1
  189. package/src/aichat/model/aichatconversation.js +1 -1
  190. package/src/aichat/model/aichatinteraction.js +1 -1
  191. package/src/aichat/model/aichatmodels.js +1 -1
  192. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  193. package/src/aichat/ui/aichatfeedview.d.ts +4 -0
  194. package/src/aichat/ui/aichatfeedview.js +1 -1
  195. package/src/aichat/ui/aichatheaderview.js +1 -1
  196. package/src/aichat/ui/aichatview.js +1 -1
  197. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  198. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  199. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  200. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  201. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  202. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  203. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  204. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  205. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  206. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  207. package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
  208. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  209. package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.d.ts +1 -0
  213. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  214. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  215. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  216. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.d.ts +8 -2
  217. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  218. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.d.ts +9 -0
  219. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  220. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  221. package/src/aichat/utils/eventnames.js +1 -1
  222. package/src/aichat/utils/promisequeue.js +1 -1
  223. package/src/aichat/utils/scrollmanager.js +1 -1
  224. package/src/aichathistory/aichathistory.js +1 -1
  225. package/src/aichathistory/aichathistorycontroller.js +1 -1
  226. package/src/aichathistory/aichathistoryui.js +1 -1
  227. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  228. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  229. package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
  230. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  231. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  232. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  233. package/src/aiconfig.d.ts +17 -0
  234. package/src/aicore/aiconnector.d.ts +13 -0
  235. package/src/aicore/aiconnector.js +1 -1
  236. package/src/aicore/aiediting.js +1 -1
  237. package/src/aicore/model/aicapabilities.js +1 -1
  238. package/src/aicore/model/aicontext.js +1 -1
  239. package/src/aicore/model/aiinteraction.d.ts +41 -1
  240. package/src/aicore/model/aiinteraction.js +1 -1
  241. package/src/aicore/model/aireply.d.ts +2 -2
  242. package/src/aicore/model/aireply.js +1 -1
  243. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  244. package/src/aicore/pipeline/airesponseparser.js +2 -2
  245. package/src/aicore/ui/aidisclaimerview.js +1 -1
  246. package/src/aicore/ui/aiskeleton.js +1 -1
  247. package/src/aicore/ui/aispinner.js +1 -1
  248. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  249. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  250. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.d.ts +16 -0
  251. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  252. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  253. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  254. package/src/aicore/utils/common-translations.js +1 -1
  255. package/src/aicore/utils/createresizebutton.js +1 -1
  256. package/src/aicore/utils/documentposition.js +1 -1
  257. package/src/aicore/utils/documentrange.js +1 -1
  258. package/src/aicore/utils/eventnames.js +1 -1
  259. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  260. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  261. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  262. package/src/aicore/utils/htmlparser.js +1 -1
  263. package/src/aicore/utils/htmlstreamer.js +1 -1
  264. package/src/aieditorintegration/aieditorintegration.js +1 -1
  265. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  266. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  267. package/src/aiquickactions/aiquickactions.js +1 -1
  268. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  269. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  270. package/src/aiquickactions/aiquickactionsui.js +1 -1
  271. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  272. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  273. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  274. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  275. package/src/aireviewmode/aireviewmode.js +1 -1
  276. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  277. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  278. package/src/aireviewmode/aireviewmodeui.js +1 -1
  279. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  280. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  281. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  282. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  283. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  284. package/src/aireviewmode/model/aireviewcheckrun.d.ts +4 -0
  285. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  286. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  287. package/src/aireviewmode/model/aireviewmodels.js +1 -1
  288. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  289. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  290. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  291. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  292. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  293. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  294. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  295. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  296. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  297. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  298. package/src/aireviewmode/ui/form/aireviewmodeformamanager.js +1 -1
  299. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  300. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  301. package/src/aitabs/aitabs.js +1 -1
  302. package/src/aitabs/aitabsmainview.js +1 -1
  303. package/src/aitabs/tabs/aitabsview.js +1 -1
  304. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  305. package/src/aitabs/tabs/tabpanelview.js +1 -1
  306. package/src/index.d.ts +1 -1
  307. package/src/index.js +1 -1
  308. package/theme/aiballoon/aiballoon.css +17 -4
  309. package/theme/aichat/aichathistory.css +26 -9
  310. package/theme/aichat/aiminitoolbar.css +8 -0
  311. package/theme/aichat/aisuggestioncontainer.css +6 -0
  312. package/theme/aireviewmode/aireviewmode-check-run-result.css +3 -2
  313. package/theme/aitabs/aitabsview.css +6 -1
  314. package/theme/common/aibutton.css +0 -4
  315. package/theme/common/aiheader.css +1 -0
  316. package/src/aiquickactions/utils/common-translations.d.ts +0 -9
  317. package/src/aiquickactions/utils/common-translations.js +0 -23
@@ -6,7 +6,6 @@ import { type Editor, Plugin } from 'ckeditor5/src/core.js';
6
6
  import { type AIActionsNames, AIConnector } from '../aicore/aiconnector.js';
7
7
  import { Dialog } from 'ckeditor5/src/ui.js';
8
8
  import { AIEditing } from '../aicore/aiediting.js';
9
- import { AIActionsInteraction } from './model/aiactionsinteraction.js';
10
9
  import { AIBalloon } from '../aiballoon/aiballoon.js';
11
10
  import { DocumentCompare } from '@ckeditor/ckeditor5-collaboration-core';
12
11
  export declare class AIActions extends Plugin {
@@ -36,7 +35,6 @@ export declare class AIActions extends Plugin {
36
35
  isBusy: boolean;
37
36
  constructor(editor: Editor);
38
37
  stopInteraction(): void;
39
- get previousInteractions(): ReadonlyArray<AIActionsInteraction>;
40
38
  executeAction(action: AIActionDefinition, label: string, icon?: string): Promise<void>;
41
39
  private _createInteraction;
42
40
  }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1cb3af=_0x1d76;(function(_0x4cefa6,_0xb8421b){const _0x23ec7e=_0x1d76,_0x16563c=_0x4cefa6();while(!![]){try{const _0x2e5833=parseInt(_0x23ec7e(0x1fe))/0x1+parseInt(_0x23ec7e(0x1bb))/0x2*(-parseInt(_0x23ec7e(0x16f))/0x3)+-parseInt(_0x23ec7e(0x1e1))/0x4+parseInt(_0x23ec7e(0x1e4))/0x5*(-parseInt(_0x23ec7e(0x17f))/0x6)+-parseInt(_0x23ec7e(0x1f1))/0x7+parseInt(_0x23ec7e(0x18e))/0x8+parseInt(_0x23ec7e(0x1f9))/0x9;if(_0x2e5833===_0xb8421b)break;else _0x16563c['push'](_0x16563c['shift']());}catch(_0x145847){_0x16563c['push'](_0x16563c['shift']());}}}(_0x54b2,0x8963c));function _0x54b2(){const _0x169231=['end','enqueue','modelToViewWithIds','rootName','abort','_executeAction','_appendChild','editor','position','updateContent','streaming','_filterOperationsOutsideRange','_currentInteractionParams','3080072vRDuLC','replyContentUpdated','execute','insertSuggestion','random','addOperation','slice','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','previousInteractions','AIConnector','data','clone','length','_previousInteractions','isPremiumPlugin','TrackChangesEditing','isOfficialPlugin','applySuggestion','_applyChanges','getSelectedBlocks','Error\x20updating\x20content\x20in\x20replyContentUpdated:','changeGroups','parent','_balloonShowDiff','_stopInteraction','showLoader','locale','ck-ai-custom-action-button','nodeAfter','createPositionAt','executeAction','AIBalloon','type','getSelectedTableCells','_getExecuteDataRegular','howMany','reinsert','push','move','startsWith','processor','stickiness','createPositionBefore','isDocumentOperation','_interaction','4610FgSnGi','documentFragment','getDocumentContext','_clearLoadingState','_setupCustomViews','change','static','_clearSuggestionContent','version','Error\x20refreshing\x20interaction:','start','clearLoading','stop','range','operationsA','close','message','toData','ai-request-aborted','icon','replies','filter','_applyOperationsAsSuggestions','indexOf','Attribute','includes','getLimitElement','_setLoadingState','nextSibling','getSelectionAsFragment','schema','baseVersion','isEnabled','interactionFinished','hideLoader','createRange','_refreshInteraction','_wrapWithCommonAncestors','1387744dKjWzb','has','getChild','5560DkEdqW','batch','first','sourcePosition','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','getFirstRange','applyOperation','toggleSuggestionDisplayMode','Error\x20updating\x20content\x20in\x20replyCreated:','_promiseQueue','insert','documentContextContent','_clone','813512pTARyi','get','_clearInteractionHistory','setLoading','requires','selection','rename','history','13511358WNecLG','No\x20current\x20interaction\x20to\x20refresh','_anchorOperation','TableSelection','focus','686780mKQPSl','merge','hasPendingParts','model','replyCreated','dialogClosed','map','bodyView','getRanges','getAncestors','warn','isBusy','$graveyard','set','getRoot','_customViews','stopInteraction','queueEmptyPromise','_children','_createInteraction','bind','remove','getCommonAncestor','_isAbortError','getSelectedContent','open','plugins','stopListening','listenTo','pluginName','_getExecuteDataInTable','AIActions','837eRlclm','setSelection','root','catch','add','_aiConnector','isCollapsed','error','path','getOperations','split','createPositionAfter','getChildAtOffset','document','balloonView','AI_ACTIONS_TRY_AGAIN','4878UAZFEb','_execute'];_0x54b2=function(){return _0x169231;};return _0x54b2();}import{Plugin as _0x31fa12}from'ckeditor5/src/core.js';import{AIConnector as _0x2b80a3}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x4f1c9e}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0xacc1fc,ButtonView as _0x137a66,ViewCollection as _0x629451}from'ckeditor5/src/ui.js';import{AIEditing as _0xfb7b7f}from'../aicore/aiediting.js';import{AIActionsInteraction as _0x180878}from'./model/aiactionsinteraction.js';import{first as _0x4465b9}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x5b1099,IconRefresh as _0x225576}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x5757b5}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x12f0a7}from'../aichat/utils/promisequeue.js';function _0x1d76(_0x1e2c37,_0x50fcb7){const _0x54b295=_0x54b2();return _0x1d76=function(_0x1d76f0,_0x2b2324){_0x1d76f0=_0x1d76f0-0x157;let _0x2f4811=_0x54b295[_0x1d76f0];return _0x2f4811;},_0x1d76(_0x1e2c37,_0x50fcb7);}import{getTranslation as _0xa1c139}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x4ef310}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x3f3e59}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x3f835f}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x139095,ModelRange as _0x2efb5c,ModelPosition as _0x506d80,_DetachOperation as _0x128d9d,transformOperationSets as _0x2cdc5f}from'ckeditor5/src/engine.js';export class AIActions extends _0x31fa12{static get[_0x1cb3af(0x1f5)](){return[_0x2b80a3,_0xacc1fc,_0xfb7b7f,_0x5757b5,_0x3f3e59];}static get[_0x1cb3af(0x16c)](){const _0x5ec162=_0x1cb3af;return _0x5ec162(0x16e);}static get[_0x1cb3af(0x19e)](){return!0x0;}static get[_0x1cb3af(0x19c)](){return!0x0;}[_0x1cb3af(0x174)];[_0x1cb3af(0x19b)]=[];[_0x1cb3af(0x18d)];[_0x1cb3af(0x1a5)]=!0x1;[_0x1cb3af(0x15e)]=new _0x629451();[_0x1cb3af(0x1ed)];constructor(_0x13bbd9){const _0x562e6b=_0x1cb3af;super(_0x13bbd9),this[_0x562e6b(0x174)]=this[_0x562e6b(0x188)][_0x562e6b(0x169)][_0x562e6b(0x1f2)](_0x562e6b(0x197)),this[_0x562e6b(0x15c)](_0x562e6b(0x15a),!0x1),this[_0x562e6b(0x1ed)]=new _0x12f0a7(),this[_0x562e6b(0x1bf)]();}[_0x1cb3af(0x15f)](){const _0x142730=_0x1cb3af;this[_0x142730(0x1a6)]();}get[_0x1cb3af(0x196)](){const _0x232141=_0x1cb3af;return this[_0x232141(0x19b)];}async[_0x1cb3af(0x1ac)](_0x3dd099,_0x10d7c0,_0x4e596b){const _0x4274fd=_0x1cb3af;if(this[_0x4274fd(0x188)][_0x4274fd(0x169)][_0x4274fd(0x1e2)](_0x4274fd(0x1fc))){if(this[_0x4274fd(0x188)][_0x4274fd(0x169)][_0x4274fd(0x1f2)](_0x4274fd(0x1fc))[_0x4274fd(0x1af)]()){const {modelFragment:_0x851391,anchorData:_0x10b172}=this[_0x4274fd(0x16d)]();return this[_0x4274fd(0x186)](_0x3dd099,_0x851391,_0x10b172,_0x10d7c0,_0x4e596b);}}const {modelFragment:_0x5186ca,anchorData:_0xa9ae26}=this[_0x4274fd(0x1b0)]();return this[_0x4274fd(0x186)](_0x3dd099,_0x5186ca,_0xa9ae26,_0x10d7c0,_0x4e596b);}[_0x1cb3af(0x1b0)](){const _0x37eee0=_0x1cb3af,_0x1276df=this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x17c)][_0x37eee0(0x1f6)];if(_0x1276df[_0x37eee0(0x175)]){const _0x2367c6=_0x4465b9(_0x1276df[_0x37eee0(0x1a1)]())||this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x1d9)][_0x37eee0(0x1d5)](_0x1276df);this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x1c0)](_0x1ddb2d=>{const _0x350b54=_0x37eee0;_0x1ddb2d[_0x350b54(0x170)](_0x2367c6,'in');});}const _0x57e380=_0x1276df[_0x37eee0(0x1e9)](),_0x2024c8=this[_0x37eee0(0x1e0)](this[_0x37eee0(0x188)][_0x37eee0(0x201)][_0x37eee0(0x167)](_0x1276df),_0x57e380[_0x37eee0(0x1c5)],_0x57e380[_0x37eee0(0x181)]),_0x2d2bf8=_0x1276df[_0x37eee0(0x1e9)]()[_0x37eee0(0x1c5)],_0x36eb02=new Map();let _0x756d86=_0x2024c8;for(let _0x4f58ce=0x0;_0x4f58ce<_0x2d2bf8[_0x37eee0(0x177)][_0x37eee0(0x19a)];_0x4f58ce++)_0x36eb02[_0x37eee0(0x15c)](_0x756d86,_0x2d2bf8[_0x37eee0(0x177)][_0x4f58ce]),_0x756d86=_0x756d86[_0x37eee0(0x1e3)](0x0);return{'modelFragment':_0x2024c8,'anchorData':_0x36eb02};}[_0x1cb3af(0x16d)](){const _0x6deb29=_0x1cb3af,_0x4c3740=this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x17c)][_0x6deb29(0x1f6)],_0x1c7df7=this[_0x6deb29(0x188)][_0x6deb29(0x169)][_0x6deb29(0x1f2)](_0x6deb29(0x1fc))[_0x6deb29(0x1d8)](),_0x72c2a5=_0x4c3740[_0x6deb29(0x1e9)]()[_0x6deb29(0x1c5)][_0x6deb29(0x1a4)][_0x6deb29(0x1a4)],_0x4eef9e=this[_0x6deb29(0x1e0)](_0x1c7df7,this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x1b8)](_0x72c2a5),this[_0x6deb29(0x188)][_0x6deb29(0x201)][_0x6deb29(0x17a)](_0x72c2a5)),_0x400380=_0x4c3740[_0x6deb29(0x1e9)]()[_0x6deb29(0x1c5)],_0xdef5f3=new Map();let _0x3bb688=_0x4eef9e;for(let _0x34a3cb=0x0;_0x34a3cb<_0x400380[_0x6deb29(0x177)][_0x6deb29(0x19a)];_0x34a3cb++)if(_0xdef5f3[_0x6deb29(0x15c)](_0x3bb688,_0x400380[_0x6deb29(0x177)][_0x34a3cb]),_0x34a3cb<_0x400380[_0x6deb29(0x177)][_0x6deb29(0x19a)]-0x1)_0x3bb688=_0x3bb688[_0x6deb29(0x1e3)](0x0);else{let _0x58b528=_0x3bb688[_0x6deb29(0x1d7)];for(;_0x58b528;)_0xdef5f3[_0x6deb29(0x15c)](_0x58b528,_0x400380[_0x6deb29(0x177)][_0x34a3cb]),_0x58b528=_0x58b528[_0x6deb29(0x1d7)];}return{'modelFragment':_0x4eef9e,'anchorData':_0xdef5f3};}[_0x1cb3af(0x186)](_0x427527,_0x3397ad,_0x448ff4,_0xc126d7,_0x521f11){const _0x48e592=_0x1cb3af,_0xd0db6c=this[_0x48e592(0x188)][_0x48e592(0x169)][_0x48e592(0x1f2)](_0xfb7b7f),_0x202820=this[_0x48e592(0x188)][_0x48e592(0x169)][_0x48e592(0x1f2)](_0x5757b5),_0x56613a=this[_0x48e592(0x188)][_0x48e592(0x201)][_0x48e592(0x17c)][_0x48e592(0x1f6)],_0xf10a4c=_0xd0db6c[_0x48e592(0x183)](_0x3397ad),_0x38d5e3=this[_0x48e592(0x188)][_0x48e592(0x198)][_0x48e592(0x1b6)][_0x48e592(0x1cc)](_0xf10a4c),_0x2b521a=this[_0x48e592(0x188)][_0x48e592(0x201)][_0x48e592(0x17c)][_0x48e592(0x1c3)],_0x1b0ac7=[..._0x56613a[_0x48e592(0x157)]()],_0x418e76=new _0x4f1c9e(this[_0x48e592(0x188)][_0x48e592(0x1a8)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x48e592(0x1ce),'customView':this[_0x48e592(0x15e)]},'showUnchangedParts':!0x0});return _0x202820[_0x48e592(0x168)]({'index':0x3e8*Math[_0x48e592(0x192)]()%0x3e8,'title':_0xc126d7,'icon':_0x521f11||_0x5b1099,'mainView':_0x418e76,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x1b0ac7}),this[_0x48e592(0x1d6)](_0x418e76,_0x202820),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x19f),()=>{const _0x31aa3e=_0x48e592;this[_0x31aa3e(0x1a0)](_0x3397ad,_0x448ff4,!0x1);}),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x191),()=>{const _0x48c445=_0x48e592;this[_0x48c445(0x1a0)](_0x3397ad,_0x448ff4,!0x0);}),this[_0x48e592(0x16b)](_0x202820,_0x48e592(0x203),()=>{const _0x541f8f=_0x48e592;this[_0x541f8f(0x1a6)](),this[_0x541f8f(0x1f3)](),this[_0x541f8f(0x16a)](_0x202820);}),this[_0x48e592(0x162)](_0x38d5e3,_0x2b521a,_0x418e76,_0x202820,_0x427527);}[_0x1cb3af(0x1e0)](_0x11610e,_0xee6c7c,_0x1cc4e8){const _0x1c8681=_0x1cb3af,_0x189a06=this[_0x1c8681(0x188)][_0x1c8681(0x201)][_0x1c8681(0x1de)](_0xee6c7c,_0x1cc4e8)[_0x1c8681(0x165)](),_0x2e9346=_0x189a06['is'](_0x1c8681(0x1bc))?[]:_0x189a06[_0x1c8681(0x158)]({'includeSelf':!0x0})[_0x1c8681(0x194)](0x1);if(_0x2e9346[_0x1c8681(0x19a)]){const _0x3b48f2=_0x2e9346[_0x1c8681(0x204)](_0x126c81=>_0x126c81[_0x1c8681(0x1f0)](!0x1));for(let _0xa204ed=0x1;_0xa204ed<_0x3b48f2[_0x1c8681(0x19a)];_0xa204ed++)_0x3b48f2[_0xa204ed-0x1][_0x1c8681(0x187)](_0x3b48f2[_0xa204ed]);return _0x3b48f2[_0x3b48f2[_0x1c8681(0x19a)]-0x1][_0x1c8681(0x187)](_0x11610e),new _0x139095(_0x3b48f2[0x0]);}return _0x11610e;}async[_0x1cb3af(0x162)](_0x281c68,_0x46361d,_0x505e8b,_0x38de64,_0x3c3756){const _0x3ee084=_0x1cb3af,_0x1782b9=this[_0x3ee084(0x188)];this[_0x3ee084(0x18d)]={'action':_0x3c3756,'content':_0x281c68,'version':_0x46361d,'mainView':_0x505e8b,'aiBalloon':_0x38de64},this[_0x3ee084(0x1ba)]=new _0x180878({'connector':this[_0x3ee084(0x174)],'editor':_0x1782b9,'content':_0x281c68,'version':_0x46361d,..._0x3c3756});const _0x38fa5a=(_0x746a7e,_0x3f4022,_0x2f205c=!0x1,_0x1c905c=_0x3ee084(0x18b))=>this[_0x3ee084(0x1ed)][_0x3ee084(0x182)](async _0x384d66=>{const _0x5cccd4=_0x3ee084;try{const _0x2cbea1=_0x4ef310({'editor':_0x1782b9,'changeGroups':_0x746a7e[_0x5cccd4(0x1a3)],'documentContextContent':_0x746a7e[_0x5cccd4(0x1ef)],'showDiff':_0x2f205c,'trimUnchanged':!0x1});await _0x3f4022[_0x5cccd4(0x18a)]({'parts':_0x2cbea1,'renderingStrategy':_0x1c905c,'abortSignal':_0x384d66});}catch(_0x122602){if(this[_0x5cccd4(0x166)](_0x122602))return;throw _0x122602;}});this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x202),(_0x3f79b4,_0x56dd99)=>{const _0x1cef79=_0x3ee084;_0x505e8b[_0x1cef79(0x1dd)](),_0x38fa5a(_0x56dd99,_0x505e8b)[_0x1cef79(0x172)](_0x5d29e3=>{const _0x3f47e4=_0x1cef79;this[_0x3f47e4(0x166)](_0x5d29e3)||console[_0x3f47e4(0x176)](_0x3f47e4(0x1ec),_0x5d29e3);});}),this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x18f),(_0x40aced,_0x25a3b3)=>{const _0xbc84ea=_0x3ee084;_0x38fa5a(_0x25a3b3,_0x505e8b)[_0xbc84ea(0x172)](_0x47bd6e=>{const _0x4aabf8=_0xbc84ea;this[_0x4aabf8(0x166)](_0x47bd6e)||console[_0x4aabf8(0x176)](_0x4aabf8(0x1a2),_0x47bd6e);});}),this[_0x3ee084(0x1ba)]['on'](_0x3ee084(0x1dc),async()=>{const _0x1f3592=_0x3ee084;try{await this[_0x1f3592(0x1be)](_0x505e8b,_0x38de64);}catch(_0x438a27){this[_0x1f3592(0x166)](_0x438a27)||console[_0x1f3592(0x176)](_0x1f3592(0x1e8),_0x438a27);}}),this[_0x3ee084(0x16b)](_0x505e8b,_0x3ee084(0x1eb),(_0x1c7435,{showDiff:_0x50decf})=>{const _0x574c67=_0x3ee084;this[_0x574c67(0x1a5)]=_0x50decf;const _0x4f7b92=this[_0x574c67(0x1ba)][_0x574c67(0x1cf)][this[_0x574c67(0x1ba)][_0x574c67(0x1cf)][_0x574c67(0x19a)]-0x1];_0x4f7b92&&_0x38fa5a(_0x4f7b92,_0x505e8b,_0x50decf,_0x574c67(0x1c1))[_0x574c67(0x172)](_0x8db8da=>{const _0x445ffb=_0x574c67;this[_0x445ffb(0x166)](_0x8db8da)||console[_0x445ffb(0x176)](_0x445ffb(0x195),_0x8db8da);});}),this[_0x3ee084(0x1d6)](_0x505e8b,_0x38de64);try{return await this[_0x3ee084(0x1ba)][_0x3ee084(0x1c5)]();}catch(_0x502dcc){if(this[_0x3ee084(0x166)](_0x502dcc))return;throw _0x502dcc;}}[_0x1cb3af(0x1a0)](_0x1db3ce,_0x3d948a,_0x36a623){const _0x11f6d5=_0x1cb3af,_0x506dc9=this[_0x11f6d5(0x188)],_0x1631ad=this[_0x11f6d5(0x188)][_0x11f6d5(0x169)][_0x11f6d5(0x1f2)](_0x3f3e59),_0x424d70=this[_0x11f6d5(0x1ba)],_0x11a9fa=this[_0x11f6d5(0x1ba)][_0x11f6d5(0x1cf)][this[_0x11f6d5(0x1ba)][_0x11f6d5(0x1cf)][_0x11f6d5(0x19a)]-0x1],_0x5a33c2=_0x11a9fa[_0x11f6d5(0x1a3)];let _0x20b07b=_0x3f835f({'editor':_0x506dc9,'reply':_0x11a9fa,'interaction':_0x424d70,'groups':_0x5a33c2,'transform':!0x1,'documentCompare':_0x1631ad,'documentCompareOptions':{'anchor':_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x1ab)](_0x1db3ce,0x0),'markDeletions':_0x36a623}});_0x20b07b=this[_0x11f6d5(0x18c)](_0x20b07b,_0x3d948a);for(const _0x1c0aed of _0x20b07b)this[_0x11f6d5(0x1fb)](_0x3d948a,_0x1c0aed,_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)][_0x11f6d5(0x15d)]());const _0x316401=_0x424d70[_0x11f6d5(0x1bd)]()[_0x11f6d5(0x1c3)],_0x2333ea=_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)][_0x11f6d5(0x1f8)][_0x11f6d5(0x178)](_0x316401),_0x402e4e={'document':_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x17c)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x1653bb=_0x2cdc5f(_0x20b07b,_0x2333ea,_0x402e4e)[_0x11f6d5(0x1c9)];_0x506dc9[_0x11f6d5(0x201)][_0x11f6d5(0x1c0)](_0x8fc194=>{const _0x5ac148=_0x11f6d5;if(_0x8fc194[_0x5ac148(0x170)](_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x17c)][_0x5ac148(0x1f6)][_0x5ac148(0x1fd)]),_0x36a623)_0x506dc9[_0x5ac148(0x169)][_0x5ac148(0x1f2)](_0x5ac148(0x19d))[_0x5ac148(0x1d1)](_0x1653bb);else{for(const _0x5a3ffa of _0x1653bb)_0x5a3ffa[_0x5ac148(0x1da)]=_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x17c)][_0x5ac148(0x1c3)],_0x8fc194[_0x5ac148(0x1e5)][_0x5ac148(0x193)](_0x5a3ffa),_0x506dc9[_0x5ac148(0x201)][_0x5ac148(0x1ea)](_0x5a3ffa);}}),this[_0x11f6d5(0x188)][_0x11f6d5(0x169)][_0x11f6d5(0x1f2)](_0x11f6d5(0x1ad))[_0x11f6d5(0x1ca)]();}[_0x1cb3af(0x18c)](_0x546e47,_0x5a7a99){const _0x49b0e2=_0x1cb3af;return _0x546e47[_0x49b0e2(0x1d0)](_0x185281=>{const _0x3b5411=_0x49b0e2;if(_0x3b5411(0x1f7)==_0x185281[_0x3b5411(0x1ae)]){const _0x2e1ccc=_0x185281[_0x3b5411(0x189)][_0x3b5411(0x1aa)];return!_0x5a7a99[_0x3b5411(0x1e2)](_0x2e1ccc);}if(_0x185281[_0x3b5411(0x1ae)][_0x3b5411(0x1d2)](_0x3b5411(0x1d3))>-0x1){const _0x148312=_0x185281[_0x3b5411(0x1c8)][_0x3b5411(0x1c5)][_0x3b5411(0x1aa)];return!_0x5a7a99[_0x3b5411(0x1e2)](_0x148312);}return!0x0;});}[_0x1cb3af(0x1fb)](_0x561106,_0x3a8a8e,_0xce6284){const _0x4c8d97=_0x1cb3af,_0x12e3d3=_0x3a8a8e[_0x4c8d97(0x199)]();for(const _0x1b9fe2 in _0x3a8a8e){const _0x3ddadc=_0x3a8a8e[_0x1b9fe2];_0x3ddadc instanceof _0x2efb5c?_0x3a8a8e[_0x1b9fe2]=new _0x2efb5c(_0x9ae258(_0x3ddadc[_0x4c8d97(0x1c5)]),_0x9ae258(_0x3ddadc[_0x4c8d97(0x181)])):_0x3ddadc instanceof _0x506d80&&(_0x3a8a8e[_0x1b9fe2]=_0x9ae258(_0x3ddadc));}if([_0x4c8d97(0x1ee),_0x4c8d97(0x1b4),_0x4c8d97(0x164),_0x4c8d97(0x1b2),_0x4c8d97(0x179),_0x4c8d97(0x1ff)][_0x4c8d97(0x1d4)](_0x12e3d3[_0x4c8d97(0x1ae)])){if(_0x12e3d3[_0x4c8d97(0x1b9)]=!0x1,_0x12e3d3[_0x4c8d97(0x1da)]=null,_0x4c8d97(0x164)==_0x12e3d3[_0x4c8d97(0x1ae)]){const _0x1f09de=_0x12e3d3[_0x4c8d97(0x1e7)],_0x105907=_0x12e3d3[_0x4c8d97(0x1b1)];new _0x128d9d(_0x1f09de,_0x105907)[_0x4c8d97(0x180)]();}else _0x12e3d3[_0x4c8d97(0x180)]();}function _0x9ae258(_0x33f1b0){const _0x34c791=_0x4c8d97;if(_0x34c791(0x15b)==_0x33f1b0[_0x34c791(0x171)][_0x34c791(0x184)])return _0x33f1b0;const _0x3f0a32=[];let _0x53260d=_0x33f1b0[_0x34c791(0x171)];for(let _0x1c44c3=0x0;_0x1c44c3<_0x33f1b0[_0x34c791(0x177)][_0x34c791(0x19a)];_0x1c44c3++){const _0x29a475=_0x561106[_0x34c791(0x1f2)](_0x53260d)||0x0;_0x3f0a32[_0x1c44c3]=_0x33f1b0[_0x34c791(0x177)][_0x1c44c3]+_0x29a475,_0x53260d=_0x53260d[_0x34c791(0x17b)](_0x33f1b0[_0x34c791(0x177)][_0x1c44c3]);}return new _0x506d80(_0xce6284,_0x3f0a32,_0x33f1b0[_0x34c791(0x1b7)]);}}[_0x1cb3af(0x1df)](){const _0x21b413=_0x1cb3af;if(!this[_0x21b413(0x18d)])return void console[_0x21b413(0x159)](_0x21b413(0x1fa));this[_0x21b413(0x1ba)]&&(this[_0x21b413(0x19b)][_0x21b413(0x1b3)](this[_0x21b413(0x1ba)]),this[_0x21b413(0x1a6)]());const {action:_0x3e33f4,content:_0x34d367,version:_0x11d84c,mainView:_0x4efa5e,aiBalloon:_0x38f078}=this[_0x21b413(0x18d)];this[_0x21b413(0x1c2)](_0x4efa5e),_0x4efa5e[_0x21b413(0x1a7)](),this[_0x21b413(0x162)](_0x34d367,_0x11d84c,_0x4efa5e,_0x38f078,_0x3e33f4)[_0x21b413(0x172)](_0x54db50=>{const _0x530351=_0x21b413;this[_0x530351(0x166)](_0x54db50)||console[_0x530351(0x176)](_0x530351(0x1c4),_0x54db50);});}[_0x1cb3af(0x1c2)](_0x144c40){const _0x486114=_0x1cb3af,_0x2c16cf=_0x144c40[_0x486114(0x205)][_0x486114(0x161)];for(;_0x2c16cf[_0x486114(0x19a)]>0x0;)_0x2c16cf[_0x486114(0x164)](_0x2c16cf[_0x486114(0x1e6)]);_0x144c40[_0x486114(0x205)][_0x486114(0x200)]=!0x1;}[_0x1cb3af(0x166)](_0x4b76f6){const _0x6846a6=_0x1cb3af;return!!_0x4b76f6[_0x6846a6(0x1cb)]&&_0x4b76f6[_0x6846a6(0x1cb)][_0x6846a6(0x1b5)](_0x6846a6(0x1cd));}[_0x1cb3af(0x1f3)](){const _0x56e604=_0x1cb3af;this[_0x56e604(0x19b)]=[],this[_0x56e604(0x18d)]=void 0x0;}[_0x1cb3af(0x1a6)](){const _0x33a3d7=_0x1cb3af;this[_0x33a3d7(0x1ba)]&&this[_0x33a3d7(0x1ba)][_0x33a3d7(0x1c7)](),this[_0x33a3d7(0x1ed)][_0x33a3d7(0x185)](),this[_0x33a3d7(0x15a)]=!0x1;}[_0x1cb3af(0x1bf)](){const _0x25effc=_0x1cb3af,_0x2810af=new _0x137a66(this[_0x25effc(0x188)][_0x25effc(0x1a8)]);_0x2810af[_0x25effc(0x15c)]({'icon':_0x225576,'label':_0xa1c139(this[_0x25effc(0x188)][_0x25effc(0x1a8)],_0x25effc(0x17e)),'tooltip':!0x0,'class':_0x25effc(0x1a9)}),_0x2810af[_0x25effc(0x163)](_0x25effc(0x1db))['to'](this,_0x25effc(0x15a),_0x2ce8e0=>!_0x2ce8e0),_0x2810af['on'](_0x25effc(0x190),()=>{const _0x45e0d7=_0x25effc;this[_0x45e0d7(0x1df)]();}),this[_0x25effc(0x15e)][_0x25effc(0x173)](_0x2810af);}[_0x1cb3af(0x1d6)](_0x1b9ef4,_0x40e8ce){const _0x158828=_0x1cb3af;_0x1b9ef4[_0x158828(0x1f4)](),_0x40e8ce[_0x158828(0x17d)][_0x158828(0x1f4)](),this[_0x158828(0x15a)]=!0x0;}async[_0x1cb3af(0x1be)](_0x46220a,_0x83251e){const _0x38f726=_0x1cb3af;await this[_0x38f726(0x1ed)][_0x38f726(0x160)],this[_0x38f726(0x15a)]=!0x1,_0x46220a[_0x38f726(0x1c6)](),_0x83251e[_0x38f726(0x17d)][_0x38f726(0x1c6)]();}}
23
+ const _0x1af132=_0x4f02;(function(_0x348ca6,_0x240794){const _0x1f9d8d=_0x4f02,_0x2015b5=_0x348ca6();while(!![]){try{const _0x3085ed=parseInt(_0x1f9d8d(0x20d))/0x1+parseInt(_0x1f9d8d(0x216))/0x2*(parseInt(_0x1f9d8d(0x1f6))/0x3)+-parseInt(_0x1f9d8d(0x1ff))/0x4+parseInt(_0x1f9d8d(0x1dc))/0x5+-parseInt(_0x1f9d8d(0x1e7))/0x6*(-parseInt(_0x1f9d8d(0x20c))/0x7)+-parseInt(_0x1f9d8d(0x1c4))/0x8+-parseInt(_0x1f9d8d(0x298))/0x9*(-parseInt(_0x1f9d8d(0x29a))/0xa);if(_0x3085ed===_0x240794)break;else _0x2015b5['push'](_0x2015b5['shift']());}catch(_0x177989){_0x2015b5['push'](_0x2015b5['shift']());}}}(_0x3aa1,0x1e86a));import{Plugin as _0x5cc163}from'ckeditor5/src/core.js';import{AIConnector as _0x4aae16}from'../aicore/aiconnector.js';import{AISuggestionContainerView as _0x287f92}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{Dialog as _0x5267bb,ButtonView as _0x5662e1,ViewCollection as _0x374145,View as _0x3bc492}from'ckeditor5/src/ui.js';import{AIEditing as _0x568e5e}from'../aicore/aiediting.js';function _0x4f02(_0x2fea8c,_0x56c3f0){const _0x3aa14a=_0x3aa1();return _0x4f02=function(_0x4f02b5,_0x25313f){_0x4f02b5=_0x4f02b5-0x1c4;let _0x4515d6=_0x3aa14a[_0x4f02b5];return _0x4515d6;},_0x4f02(_0x2fea8c,_0x56c3f0);}import{AIActionsInteraction as _0x9a9da9}from'./model/aiactionsinteraction.js';import{first as _0x190261}from'ckeditor5/src/utils.js';import{IconAIQuickActions as _0x3e88a1,IconRefresh as _0x53a4ee,IconNextArrow as _0x4e495d,IconPreviousArrow as _0x206cb7,IconShowChangesOff as _0x773fc8}from'@ckeditor/ckeditor5-icons';import{AIBalloon as _0x38f40a}from'../aiballoon/aiballoon.js';import{PromiseQueue as _0x278283}from'../aichat/utils/promisequeue.js';function _0x3aa1(){const _0x2678ca=['setChangeGroupState','_isNavigationPreviousButtonInView','_setErrorState','message','signal','replyContentUpdated','start','getAncestors','add','_interactionParams','createPositionAfter','63920rLaJUh','isBusy','locale','changeGroups','upsertAIActionRating','push','root','rootName','_wrapWithCommonAncestors','enqueue','replies','43470vgDpoD','bind','requires','applyOperation','hideError','getChildAtOffset','_setLoadingState','AIActions','replyChangeGroupStateUpdated','getSelectedTableCells','ck-ai-custom-action-button','textContent','stopListening','_currentInteractionIndex','split','120639LxviXg','operationsA','history','_navigationPreviousButton','_isNavigationNextButtonInView','plugins','areChangesVisible','state','element','990952tFqqmR','version','AI_ACTIONS_GENERIC_ERROR','createPositionBefore','_interaction','getOperations','_clearLoadingState','indexOf','_customViews','ck-ai-navigation-button\x20ck-ai-next-button','rejected','_getExecuteDataInTable','_aiConnector','28zvsmki','181840TjZqyl','modelToViewWithIds','Error\x20clearing\x20loading\x20state\x20in\x20interactionFinished:','catch','_displayInteractionAtIndex','_appendChild','isOfficialPlugin','aiBalloon','replyCreated','4PobKXn','TrackChangesEditing','Error\x20updating\x20content\x20in\x20replyContentUpdated:','baseVersion','filter','_stopInteraction','ai-request-aborted','_balloonShowDiff','_refreshInteraction','mainView','hideLoader','executeAction','removeNavigationItem','TableSelection','documentContextContent','insert','addNavigationItem','getRoot','setTemplate','listenTo','toData','document','_clearInteractionHistory','hasPendingParts','getDocumentContext','stickiness','showError','1/1','_navigateToNext','ck-ai-interaction-counter','type','end','showLoader','includes','bodyView','isPremiumPlugin','_clone','getSelectedContent','_navigationNextButton','first','_applyOperationsAsSuggestions','createPositionAt','$graveyard','AI_ACTIONS_TRY_AGAIN','data','createRange','static','schema','_navigationCounter','queueEmptyPromise','ck-ai-navigation-button\x20ck-ai-previous-button','dialogClosed','span','interactionFinished','path','nextSibling','random','startsWith','abort','documentFragment','_createInteraction','clearErrorState','stopInteraction','_updateNavigationUI','getSelectedBlocks','model','getLimitElement','change','howMany','execute','Error\x20updating\x20content\x20in\x20toggleSuggestionDisplayMode:','has','toggleSuggestionDisplayMode','balloonView','editor','_isNavigationCounterInView','streaming','rename','_anchorOperation','merge','position','addOperation','focus','AIConnector','getSelectionAsFragment','get','setErrorState','processor','_isAbortError','_execute','actionCallId','_executeAction','error','isEnabled','length','_clearErrorState','accepted','isCollapsed','_children','upsertCustomAIActionRating','_applyChanges','_filterOperationsOutsideRange','icon','move','selection','toolbar','getFirstRange','_setupCustomViews','Error\x20refreshing\x20interaction:','actionName','isLoading','hasError','pending','AI_ACTIONS_NEXT_INTERACTION','showChangesButton','_interactions','open','slice','stop','range','AI_ACTIONS_PREVIOUS_INTERACTION','parent','setSelection','updateContent','close','_clearSuggestionContent','map','clone','_getExecuteDataRegular','setLoading','45yykZFP','_navigateToPrevious','569030HskWPR','isDocumentOperation','applySuggestion','pluginName','nodeAfter','set','AIBalloon','miniToolbarView','Error\x20updating\x20content\x20in\x20replyCreated:','1726184iqUtUh','getChild','Error\x20updating\x20content\x20during\x20navigation:','clearLoading','_promiseQueue','getRanges','reinsert','insertSuggestion','remove','sourcePosition','Attribute','getCommonAncestor','batch'];_0x3aa1=function(){return _0x2678ca;};return _0x3aa1();}import{getTranslation as _0xf1606d}from'../aicore/utils/common-translations.js';import{getSuggestionPartsFromReply as _0x147bf7}from'../aicore/utils/getsuggestionpartsfromreply.js';import{DocumentCompare as _0x28fcc4}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x2ab13d}from'../aicore/utils/getoperationsfromreply.js';import{ModelDocumentFragment as _0x1ba277,ModelRange as _0x2a52d5,ModelPosition as _0x2037d6,_DetachOperation as _0x3b804e,transformOperationSets as _0x1fc536}from'ckeditor5/src/engine.js';export class AIActions extends _0x5cc163{static get[_0x1af132(0x1e9)](){return[_0x4aae16,_0x5267bb,_0x568e5e,_0x38f40a,_0x28fcc4];}static get[_0x1af132(0x29d)](){const _0x4df7ed=_0x1af132;return _0x4df7ed(0x1ee);}static get[_0x1af132(0x213)](){return!0x0;}static get[_0x1af132(0x239)](){return!0x0;}[_0x1af132(0x20b)];[_0x1af132(0x289)]=[];[_0x1af132(0x1f4)]=0x0;[_0x1af132(0x1da)];[_0x1af132(0x21d)]=!0x1;[_0x1af132(0x207)]=new _0x374145();[_0x1af132(0x1f9)];[_0x1af132(0x246)];[_0x1af132(0x261)]=!0x1;[_0x1af132(0x23c)];[_0x1af132(0x1d2)]=!0x1;[_0x1af132(0x1fa)]=!0x1;[_0x1af132(0x1c8)];get[_0x1af132(0x203)](){const _0x90baf8=_0x1af132;return this[_0x90baf8(0x289)][this[_0x90baf8(0x289)][_0x90baf8(0x274)]-0x1];}constructor(_0x2052db){const _0x931280=_0x1af132;super(_0x2052db),this[_0x931280(0x20b)]=this[_0x931280(0x260)][_0x931280(0x1fb)][_0x931280(0x26b)](_0x931280(0x269)),this[_0x931280(0x29f)](_0x931280(0x1dd),!0x1),this[_0x931280(0x1c8)]=new _0x278283(),this[_0x931280(0x281)]();}[_0x1af132(0x254)](){const _0x407e07=_0x1af132;this[_0x407e07(0x21b)]();}async[_0x1af132(0x221)](_0x1c44f0,_0x1e1d78,_0x3f0301){const _0x1a3b83=_0x1af132;if(this[_0x1a3b83(0x260)][_0x1a3b83(0x1fb)][_0x1a3b83(0x25d)](_0x1a3b83(0x223))){if(this[_0x1a3b83(0x260)][_0x1a3b83(0x1fb)][_0x1a3b83(0x26b)](_0x1a3b83(0x223))[_0x1a3b83(0x1f0)]()){const {modelFragment:_0x4df8dc,anchorData:_0x5802fb}=this[_0x1a3b83(0x20a)]();return this[_0x1a3b83(0x271)](_0x1c44f0,_0x4df8dc,_0x5802fb,_0x1e1d78,_0x3f0301);}}const {modelFragment:_0x36cd37,anchorData:_0x1e2340}=this[_0x1a3b83(0x296)]();return this[_0x1a3b83(0x271)](_0x1c44f0,_0x36cd37,_0x1e2340,_0x1e1d78,_0x3f0301);}[_0x1af132(0x296)](){const _0xc50550=_0x1af132,_0x3e6298=this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x22b)][_0xc50550(0x27e)];if(_0x3e6298[_0xc50550(0x277)]){const _0x15e473=_0x190261(_0x3e6298[_0xc50550(0x256)]())||this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x245)][_0xc50550(0x258)](_0x3e6298);this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x259)](_0xa986f3=>{const _0x36b703=_0xc50550;_0xa986f3[_0x36b703(0x290)](_0x15e473,'in');});}const _0x436096=_0x3e6298[_0xc50550(0x280)](),_0x4d76d6=this[_0xc50550(0x1e4)](this[_0xc50550(0x260)][_0xc50550(0x257)][_0xc50550(0x23b)](_0x3e6298),_0x436096[_0xc50550(0x1d7)],_0x436096[_0xc50550(0x235)]),_0x11d0c7=_0x3e6298[_0xc50550(0x280)]()[_0xc50550(0x1d7)],_0x32685c=new Map();let _0x493e11=_0x4d76d6;for(let _0x1247c0=0x0;_0x1247c0<_0x11d0c7[_0xc50550(0x24c)][_0xc50550(0x274)];_0x1247c0++)_0x32685c[_0xc50550(0x29f)](_0x493e11,_0x11d0c7[_0xc50550(0x24c)][_0x1247c0]),_0x493e11=_0x493e11[_0xc50550(0x1c5)](0x0);return{'modelFragment':_0x4d76d6,'anchorData':_0x32685c};}[_0x1af132(0x20a)](){const _0x138de7=_0x1af132,_0x1f2f8d=this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x22b)][_0x138de7(0x27e)],_0x2b3aaa=this[_0x138de7(0x260)][_0x138de7(0x1fb)][_0x138de7(0x26b)](_0x138de7(0x223))[_0x138de7(0x26a)](),_0x11e223=_0x1f2f8d[_0x138de7(0x280)]()[_0x138de7(0x1d7)][_0x138de7(0x28f)][_0x138de7(0x28f)],_0x355dff=this[_0x138de7(0x1e4)](_0x2b3aaa,this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x202)](_0x11e223),this[_0x138de7(0x260)][_0x138de7(0x257)][_0x138de7(0x1db)](_0x11e223)),_0x3a82e4=_0x1f2f8d[_0x138de7(0x280)]()[_0x138de7(0x1d7)],_0x306236=new Map();let _0x4a93f1=_0x355dff;for(let _0x55ef62=0x0;_0x55ef62<_0x3a82e4[_0x138de7(0x24c)][_0x138de7(0x274)];_0x55ef62++)if(_0x306236[_0x138de7(0x29f)](_0x4a93f1,_0x3a82e4[_0x138de7(0x24c)][_0x55ef62]),_0x55ef62<_0x3a82e4[_0x138de7(0x24c)][_0x138de7(0x274)]-0x1)_0x4a93f1=_0x4a93f1[_0x138de7(0x1c5)](0x0);else{let _0x235888=_0x4a93f1[_0x138de7(0x24d)];for(;_0x235888;)_0x306236[_0x138de7(0x29f)](_0x235888,_0x3a82e4[_0x138de7(0x24c)][_0x55ef62]),_0x235888=_0x235888[_0x138de7(0x24d)];}return{'modelFragment':_0x355dff,'anchorData':_0x306236};}[_0x1af132(0x271)](_0x44196a,_0x3c7345,_0x4d99c5,_0x2e9684,_0x5725e6){const _0x4e0b25=_0x1af132,_0x3494e8=this[_0x4e0b25(0x260)][_0x4e0b25(0x1fb)][_0x4e0b25(0x26b)](_0x568e5e),_0x294f6d=this[_0x4e0b25(0x260)][_0x4e0b25(0x1fb)][_0x4e0b25(0x26b)](_0x38f40a),_0x4b9ccb=this[_0x4e0b25(0x260)][_0x4e0b25(0x257)][_0x4e0b25(0x22b)][_0x4e0b25(0x27e)],_0x566d03=_0x3494e8[_0x4e0b25(0x20e)](_0x3c7345),_0x235e56=this[_0x4e0b25(0x260)][_0x4e0b25(0x242)][_0x4e0b25(0x26d)][_0x4e0b25(0x22a)](_0x566d03),_0x13a0d1=this[_0x4e0b25(0x260)][_0x4e0b25(0x257)][_0x4e0b25(0x22b)][_0x4e0b25(0x200)],_0x5a99ee=[..._0x4b9ccb[_0x4e0b25(0x1c9)]()],_0x39bbfb=new _0x287f92(this[_0x4e0b25(0x260)][_0x4e0b25(0x1de)],{'showDiff':!0x1,'areActionsDisabled':!0x1,'hideHeader':!0x0,'showLoader':!0x0,'miniToolbarConfig':{'showChanges':_0x4e0b25(0x27c),'customView':this[_0x4e0b25(0x207)]},'showUnchangedParts':!0x0});return _0x294f6d[_0x4e0b25(0x28a)]({'index':0x3e8*Math[_0x4e0b25(0x24e)]()%0x3e8,'title':_0x2e9684,'icon':_0x5725e6||_0x3e88a1,'mainView':_0x39bbfb,'showRotator':!0x1,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':_0x5a99ee}),this[_0x4e0b25(0x1ed)](_0x39bbfb,_0x294f6d),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x29c),()=>{const _0x3ee564=_0x4e0b25;this[_0x3ee564(0x27a)](_0x3c7345,_0x4d99c5,!0x1);}),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x1cb),()=>{const _0xb0e58f=_0x4e0b25;this[_0xb0e58f(0x27a)](_0x3c7345,_0x4d99c5,!0x0);}),this[_0x4e0b25(0x229)](_0x294f6d,_0x4e0b25(0x249),()=>{const _0x2a7622=_0x4e0b25;if(this[_0x2a7622(0x203)]&&this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][_0x2a7622(0x274)]>0x0){const _0x768791=this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][this[_0x2a7622(0x203)][_0x2a7622(0x1e6)][_0x2a7622(0x274)]-0x1],_0x1d04b5=_0x768791[_0x2a7622(0x1df)][0x0];_0x1d04b5&&_0x2a7622(0x286)===_0x1d04b5[_0x2a7622(0x1fd)]&&_0x768791[_0x2a7622(0x1d1)](0x0,_0x2a7622(0x209));}this[_0x2a7622(0x21b)](),this[_0x2a7622(0x22c)](),this[_0x2a7622(0x1f3)](_0x294f6d);}),this[_0x4e0b25(0x252)](_0x235e56,_0x13a0d1,_0x39bbfb,_0x294f6d,_0x44196a);}[_0x1af132(0x1e4)](_0x3c8d02,_0x5d487a,_0x2d01b4){const _0x112912=_0x1af132,_0x395dd4=this[_0x112912(0x260)][_0x112912(0x257)][_0x112912(0x243)](_0x5d487a,_0x2d01b4)[_0x112912(0x1cf)](),_0x2b86f7=_0x395dd4['is'](_0x112912(0x251))?[]:_0x395dd4[_0x112912(0x1d8)]({'includeSelf':!0x0})[_0x112912(0x28b)](0x1);if(_0x2b86f7[_0x112912(0x274)]){const _0x3497ed=_0x2b86f7[_0x112912(0x294)](_0x55bff1=>_0x55bff1[_0x112912(0x23a)](!0x1));for(let _0x89e550=0x1;_0x89e550<_0x3497ed[_0x112912(0x274)];_0x89e550++)_0x3497ed[_0x89e550-0x1][_0x112912(0x212)](_0x3497ed[_0x89e550]);return _0x3497ed[_0x3497ed[_0x112912(0x274)]-0x1][_0x112912(0x212)](_0x3c8d02),new _0x1ba277(_0x3497ed[0x0]);}return _0x3c8d02;}async[_0x1af132(0x252)](_0x27caa5,_0x1c8a66,_0x37de99,_0x409931,_0x3cfdb7){const _0x4ffa70=_0x1af132,_0x39543b=this[_0x4ffa70(0x260)];this[_0x4ffa70(0x1da)]={'action':_0x3cfdb7,'content':_0x27caa5,'version':_0x1c8a66,'mainView':_0x37de99,'aiBalloon':_0x409931};const _0xd84d2e=new _0x9a9da9({'connector':this[_0x4ffa70(0x20b)],'editor':_0x39543b,'content':_0x27caa5,'version':_0x1c8a66,..._0x3cfdb7});this[_0x4ffa70(0x289)][_0x4ffa70(0x1e1)](_0xd84d2e),_0x37de99[_0x4ffa70(0x1eb)]();const _0x14896a=(_0x4e5be3,_0x1fa288,_0x2b5fdf=!0x1,_0x521fbf=_0x4ffa70(0x262))=>this[_0x4ffa70(0x1c8)][_0x4ffa70(0x1e5)](async _0x55d2ba=>{const _0x1537a9=_0x4ffa70;try{const _0xaeb580=_0x147bf7({'editor':_0x39543b,'changeGroups':_0x4e5be3[_0x1537a9(0x1df)],'documentContextContent':_0x4e5be3[_0x1537a9(0x224)],'showDiff':_0x2b5fdf,'trimUnchanged':!0x1});await _0x1fa288[_0x1537a9(0x291)]({'parts':_0xaeb580,'renderingStrategy':_0x521fbf,'abortSignal':_0x55d2ba});}catch(_0x57e583){if(this[_0x1537a9(0x26e)](_0x57e583))return;throw _0x57e583;}});this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x215),(_0x2b74bd,_0x2aa712)=>{const _0x47ed64=_0x4ffa70;_0x37de99[_0x47ed64(0x220)](),_0x14896a(_0x2aa712,_0x37de99)[_0x47ed64(0x210)](_0x4bf7c0=>{const _0x19efa5=_0x47ed64;this[_0x19efa5(0x26e)](_0x4bf7c0)||(console[_0x19efa5(0x272)](_0x19efa5(0x2a2),_0x4bf7c0),this[_0x19efa5(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x1d6),(_0x1287b3,_0x216e56)=>{const _0x1ad1f8=_0x4ffa70;_0x14896a(_0x216e56,_0x37de99)[_0x1ad1f8(0x210)](_0xe6770e=>{const _0xcacaff=_0x1ad1f8;this[_0xcacaff(0x26e)](_0xe6770e)||(console[_0xcacaff(0x272)](_0xcacaff(0x218),_0xe6770e),this[_0xcacaff(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x24b),async()=>{const _0x258235=_0x4ffa70;try{await this[_0x258235(0x205)](_0x37de99,_0x409931),this[_0x258235(0x255)]();}catch(_0x2c5ac3){this[_0x258235(0x26e)](_0x2c5ac3)||(console[_0x258235(0x272)](_0x258235(0x20f),_0x2c5ac3),this[_0x258235(0x1d3)](_0xd84d2e,_0x37de99));}}),this[_0x4ffa70(0x229)](_0x37de99,_0x4ffa70(0x25e),(_0x20e69f,{showDiff:_0xfa4a18})=>{const _0xb692b1=_0x4ffa70;this[_0xb692b1(0x21d)]=_0xfa4a18;const _0x1b7e50=this[_0xb692b1(0x203)][_0xb692b1(0x1e6)][this[_0xb692b1(0x203)][_0xb692b1(0x1e6)][_0xb692b1(0x274)]-0x1];_0x1b7e50&&_0x14896a(_0x1b7e50,_0x37de99,_0xfa4a18,_0xb692b1(0x244))[_0xb692b1(0x210)](_0x844768=>{const _0x20afce=_0xb692b1;this[_0x20afce(0x26e)](_0x844768)||(console[_0x20afce(0x272)](_0x20afce(0x25c),_0x844768),this[_0x20afce(0x1d3)](_0xd84d2e,_0x37de99));});}),this[_0x4ffa70(0x203)]['on'](_0x4ffa70(0x1ef),(_0x517a43,{reply:_0x3463c4})=>{const _0x877976=_0x4ffa70,_0x2f21f3={'positiveCount':_0x3463c4[_0x877976(0x1df)][_0x877976(0x21a)](_0x5b028d=>_0x877976(0x276)===_0x5b028d[_0x877976(0x1fd)])[_0x877976(0x274)],'totalCount':_0x3463c4[_0x877976(0x1df)][_0x877976(0x274)]},_0x5a824a=this[_0x877976(0x203)][_0x877976(0x270)],_0x113576=this[_0x877976(0x203)][_0x877976(0x283)];_0x113576?this[_0x877976(0x20b)][_0x877976(0x1e0)](_0x113576,_0x5a824a,_0x2f21f3):this[_0x877976(0x20b)][_0x877976(0x279)](_0x5a824a,_0x2f21f3);}),this[_0x4ffa70(0x1ed)](_0x37de99,_0x409931);try{const _0x5cc343=await this[_0x4ffa70(0x203)][_0x4ffa70(0x1d7)]();return this[_0x4ffa70(0x255)](),_0x5cc343;}catch(_0x522591){if(this[_0x4ffa70(0x26e)](_0x522591))return;_0x37de99[_0x4ffa70(0x220)](),this[_0x4ffa70(0x1d3)](_0xd84d2e,_0x37de99);}}[_0x1af132(0x27a)](_0x29f91c,_0x1f6857,_0x514823){const _0x30e46b=_0x1af132,_0x2ce11a=this[_0x30e46b(0x260)],_0x4ff95e=this[_0x30e46b(0x260)][_0x30e46b(0x1fb)][_0x30e46b(0x26b)](_0x28fcc4),_0x14e3b9=this[_0x30e46b(0x203)],_0x205cc4=this[_0x30e46b(0x203)][_0x30e46b(0x1e6)][this[_0x30e46b(0x203)][_0x30e46b(0x1e6)][_0x30e46b(0x274)]-0x1],_0x273aef=_0x205cc4[_0x30e46b(0x1df)];_0x205cc4[_0x30e46b(0x1d1)](0x0,_0x30e46b(0x276));let _0x1dcefc=_0x2ab13d({'editor':_0x2ce11a,'reply':_0x205cc4,'interaction':_0x14e3b9,'groups':_0x273aef,'transform':!0x1,'documentCompare':_0x4ff95e,'documentCompareOptions':{'anchor':_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x23f)](_0x29f91c,0x0),'markDeletions':_0x514823}});_0x1dcefc=this[_0x30e46b(0x27b)](_0x1dcefc,_0x1f6857);for(const _0x45c661 of _0x1dcefc)this[_0x30e46b(0x264)](_0x1f6857,_0x45c661,_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)][_0x30e46b(0x227)]());const _0x38e8d1=_0x14e3b9[_0x30e46b(0x22e)]()[_0x30e46b(0x200)],_0x377e2b=_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)][_0x30e46b(0x1f8)][_0x30e46b(0x204)](_0x38e8d1),_0x5340b5={'document':_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x22b)],'useRelations':!0x1,'padWithNoOps':!0x1},_0x4b5352=_0x1fc536(_0x1dcefc,_0x377e2b,_0x5340b5)[_0x30e46b(0x1f7)];_0x2ce11a[_0x30e46b(0x257)][_0x30e46b(0x259)](_0x289262=>{const _0x318bef=_0x30e46b;if(_0x289262[_0x318bef(0x290)](_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x22b)][_0x318bef(0x27e)][_0x318bef(0x268)]),_0x514823)_0x2ce11a[_0x318bef(0x1fb)][_0x318bef(0x26b)](_0x318bef(0x217))[_0x318bef(0x23e)](_0x4b5352);else{for(const _0x19332f of _0x4b5352)_0x19332f[_0x318bef(0x219)]=_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x22b)][_0x318bef(0x200)],_0x289262[_0x318bef(0x1d0)][_0x318bef(0x267)](_0x19332f),_0x2ce11a[_0x318bef(0x257)][_0x318bef(0x1ea)](_0x19332f);}}),this[_0x30e46b(0x260)][_0x30e46b(0x1fb)][_0x30e46b(0x26b)](_0x30e46b(0x2a0))[_0x30e46b(0x292)]();}[_0x1af132(0x27b)](_0x41b543,_0xa9f5ac){const _0xc7e59c=_0x1af132;return _0x41b543[_0xc7e59c(0x21a)](_0x1e52e9=>{const _0x1e8111=_0xc7e59c;if(_0x1e8111(0x263)==_0x1e52e9[_0x1e8111(0x234)]){const _0x32ba4d=_0x1e52e9[_0x1e8111(0x266)][_0x1e8111(0x29e)];return!_0xa9f5ac[_0x1e8111(0x25d)](_0x32ba4d);}if(_0x1e52e9[_0x1e8111(0x234)][_0x1e8111(0x206)](_0x1e8111(0x1ce))>-0x1){const _0x46f844=_0x1e52e9[_0x1e8111(0x28d)][_0x1e8111(0x1d7)][_0x1e8111(0x29e)];return!_0xa9f5ac[_0x1e8111(0x25d)](_0x46f844);}return!0x0;});}[_0x1af132(0x264)](_0x352526,_0x882274,_0x3ca555){const _0x2e55dc=_0x1af132,_0x420e22=_0x882274[_0x2e55dc(0x295)]();for(const _0x2e5f78 in _0x882274){const _0x1907e7=_0x882274[_0x2e5f78];_0x1907e7 instanceof _0x2a52d5?_0x882274[_0x2e5f78]=new _0x2a52d5(_0x38fe16(_0x1907e7[_0x2e55dc(0x1d7)]),_0x38fe16(_0x1907e7[_0x2e55dc(0x235)])):_0x1907e7 instanceof _0x2037d6&&(_0x882274[_0x2e5f78]=_0x38fe16(_0x1907e7));}if([_0x2e55dc(0x225),_0x2e55dc(0x27d),_0x2e55dc(0x1cc),_0x2e55dc(0x1ca),_0x2e55dc(0x1f5),_0x2e55dc(0x265)][_0x2e55dc(0x237)](_0x420e22[_0x2e55dc(0x234)])){if(_0x420e22[_0x2e55dc(0x29b)]=!0x1,_0x420e22[_0x2e55dc(0x219)]=null,_0x2e55dc(0x1cc)==_0x420e22[_0x2e55dc(0x234)]){const _0x45a6b0=_0x420e22[_0x2e55dc(0x1cd)],_0x2b3529=_0x420e22[_0x2e55dc(0x25a)];new _0x3b804e(_0x45a6b0,_0x2b3529)[_0x2e55dc(0x26f)]();}else _0x420e22[_0x2e55dc(0x26f)]();}function _0x38fe16(_0x1af884){const _0x100062=_0x2e55dc;if(_0x100062(0x240)==_0x1af884[_0x100062(0x1e2)][_0x100062(0x1e3)])return _0x1af884;const _0x553d96=[];let _0x433d92=_0x1af884[_0x100062(0x1e2)];for(let _0x34638a=0x0;_0x34638a<_0x1af884[_0x100062(0x24c)][_0x100062(0x274)];_0x34638a++){const _0x17cc49=_0x352526[_0x100062(0x26b)](_0x433d92)||0x0;_0x553d96[_0x34638a]=_0x1af884[_0x100062(0x24c)][_0x34638a]+_0x17cc49,_0x433d92=_0x433d92[_0x100062(0x1ec)](_0x1af884[_0x100062(0x24c)][_0x34638a]);}return new _0x2037d6(_0x3ca555,_0x553d96,_0x1af884[_0x100062(0x22f)]);}}[_0x1af132(0x21e)](){const _0x341d84=_0x1af132;if(!this[_0x341d84(0x1da)])return;this[_0x341d84(0x289)][_0x341d84(0x274)]>0x0&&this[_0x341d84(0x21b)](),this[_0x341d84(0x1f4)]=0x0,this[_0x341d84(0x21d)]=!0x1;const {action:_0x2b7b61,content:_0x2e1953,version:_0x312922,mainView:_0x2f76eb,aiBalloon:_0x12b547}=this[_0x341d84(0x1da)];_0x2f76eb[_0x341d84(0x1fc)]=!0x1,_0x2f76eb[_0x341d84(0x1eb)](),this[_0x341d84(0x275)](_0x2f76eb,_0x12b547);const _0x5c4cbe=_0x2f76eb;_0x5c4cbe[_0x341d84(0x2a1)]&&_0x5c4cbe[_0x341d84(0x2a1)][_0x341d84(0x288)]&&_0x5c4cbe[_0x341d84(0x2a1)][_0x341d84(0x288)][_0x341d84(0x29f)]({'isOn':!0x1,'icon':_0x773fc8}),this[_0x341d84(0x293)](_0x2f76eb),_0x2f76eb[_0x341d84(0x236)](),this[_0x341d84(0x255)](),this[_0x341d84(0x252)](_0x2e1953,_0x312922,_0x2f76eb,_0x12b547,_0x2b7b61)[_0x341d84(0x210)](_0x5796a7=>{const _0x4ca928=_0x341d84;this[_0x4ca928(0x26e)](_0x5796a7)||console[_0x4ca928(0x272)](_0x4ca928(0x282),_0x5796a7);});}[_0x1af132(0x293)](_0x13342b){const _0x15b6bf=_0x1af132,_0x12f1b3=_0x13342b[_0x15b6bf(0x238)][_0x15b6bf(0x278)];for(;_0x12f1b3[_0x15b6bf(0x274)]>0x0;)_0x12f1b3[_0x15b6bf(0x1cc)](_0x12f1b3[_0x15b6bf(0x23d)]);_0x13342b[_0x15b6bf(0x238)][_0x15b6bf(0x22d)]=!0x1;}[_0x1af132(0x26e)](_0x1960be){const _0x480b5a=_0x1af132;return!!_0x1960be[_0x480b5a(0x1d4)]&&_0x1960be[_0x480b5a(0x1d4)][_0x480b5a(0x24f)](_0x480b5a(0x21c));}[_0x1af132(0x22c)](){const _0x50ace2=_0x1af132;this[_0x50ace2(0x289)]=[],this[_0x50ace2(0x1da)]=void 0x0,this[_0x50ace2(0x1f4)]=0x0,this[_0x50ace2(0x255)]();}[_0x1af132(0x21b)](){const _0x278963=_0x1af132;this[_0x278963(0x203)]&&this[_0x278963(0x203)][_0x278963(0x28c)](),this[_0x278963(0x1c8)][_0x278963(0x250)](),this[_0x278963(0x1dd)]=!0x1;}[_0x1af132(0x281)](){const _0x45a790=_0x1af132,_0x40505d=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x48335f=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x4d72d6=new _0x3bc492(this[_0x45a790(0x260)][_0x45a790(0x1de)]),_0x18ca0b=new _0x5662e1(this[_0x45a790(0x260)][_0x45a790(0x1de)]);_0x40505d[_0x45a790(0x29f)]({'icon':_0x53a4ee,'label':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x241)),'tooltip':!0x0,'class':_0x45a790(0x1f1)}),_0x48335f[_0x45a790(0x29f)]({'icon':_0x206cb7,'tooltip':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x28e)),'class':_0x45a790(0x248)}),_0x4d72d6[_0x45a790(0x228)]({'tag':_0x45a790(0x24a),'attributes':{'class':[_0x45a790(0x233)]},'children':[_0x45a790(0x231)]}),_0x18ca0b[_0x45a790(0x29f)]({'icon':_0x4e495d,'tooltip':_0xf1606d(this[_0x45a790(0x260)][_0x45a790(0x1de)],_0x45a790(0x287)),'class':_0x45a790(0x208)}),_0x40505d[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x460d4b=>!_0x460d4b),_0x40505d['on'](_0x45a790(0x25b),()=>{const _0x3818f3=_0x45a790;this[_0x3818f3(0x21e)]();}),_0x48335f[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x4187b8=>!_0x4187b8),_0x48335f['on'](_0x45a790(0x25b),()=>{const _0xda1ba1=_0x45a790;this[_0xda1ba1(0x299)]();}),_0x18ca0b[_0x45a790(0x1e8)](_0x45a790(0x273))['to'](this,_0x45a790(0x1dd),_0x27ea6c=>!_0x27ea6c),_0x18ca0b['on'](_0x45a790(0x25b),()=>{const _0x473de7=_0x45a790;this[_0x473de7(0x232)]();}),this[_0x45a790(0x1f9)]=_0x48335f,this[_0x45a790(0x246)]=_0x4d72d6,this[_0x45a790(0x23c)]=_0x18ca0b,this[_0x45a790(0x207)][_0x45a790(0x1d9)](_0x40505d);}[_0x1af132(0x299)](){const _0x49576b=_0x1af132,_0x500bf0=this[_0x49576b(0x289)][_0x49576b(0x274)];this[_0x49576b(0x1f4)]<_0x500bf0-0x1&&this[_0x49576b(0x211)](this[_0x49576b(0x1f4)]+0x1);}[_0x1af132(0x232)](){const _0x3d9520=_0x1af132;this[_0x3d9520(0x1f4)]>0x0&&this[_0x3d9520(0x211)](this[_0x3d9520(0x1f4)]-0x1);}async[_0x1af132(0x211)](_0x227d75){const _0x3c1705=_0x1af132;if(!this[_0x3c1705(0x1da)])return;this[_0x3c1705(0x1f4)]=_0x227d75;const {mainView:_0xdc020d}=this[_0x3c1705(0x1da)],_0x57dc2c=this[_0x3c1705(0x289)][this[_0x3c1705(0x289)][_0x3c1705(0x274)]-0x1-this[_0x3c1705(0x1f4)]];if(!_0x57dc2c)return;if(_0x57dc2c[_0x3c1705(0x285)])return this[_0x3c1705(0x1d3)](_0x57dc2c,_0xdc020d),void this[_0x3c1705(0x255)]();if(!_0x57dc2c[_0x3c1705(0x1e6)][_0x3c1705(0x274)])return;_0xdc020d[_0x3c1705(0x1eb)](),this[_0x3c1705(0x1da)]&&this[_0x3c1705(0x275)](_0xdc020d,this[_0x3c1705(0x1da)][_0x3c1705(0x214)]);const _0x32c5bc=_0x57dc2c[_0x3c1705(0x1e6)][_0x57dc2c[_0x3c1705(0x1e6)][_0x3c1705(0x274)]-0x1];if(_0x32c5bc){const _0x1ab2ca=this[_0x3c1705(0x260)];this[_0x3c1705(0x293)](_0xdc020d);try{const _0x64d872=_0x147bf7({'editor':_0x1ab2ca,'changeGroups':_0x32c5bc[_0x3c1705(0x1df)],'documentContextContent':_0x32c5bc[_0x3c1705(0x224)],'showDiff':this[_0x3c1705(0x21d)],'trimUnchanged':!0x1});this[_0x3c1705(0x293)](_0xdc020d),await new Promise(_0x519668=>setTimeout(_0x519668,0x32)),await _0xdc020d[_0x3c1705(0x291)]({'parts':_0x64d872,'renderingStrategy':_0x3c1705(0x244),'abortSignal':new AbortController()[_0x3c1705(0x1d5)]});}catch(_0x5b3e95){this[_0x3c1705(0x26e)](_0x5b3e95)||console[_0x3c1705(0x272)](_0x3c1705(0x1c6),_0x5b3e95);}}this[_0x3c1705(0x255)]();}[_0x1af132(0x255)](){const _0x47cd8b=_0x1af132;if(!this[_0x47cd8b(0x1f9)]||!this[_0x47cd8b(0x246)]||!this[_0x47cd8b(0x23c)])return;const _0x4f87c7=this[_0x47cd8b(0x289)][_0x47cd8b(0x274)],_0x20e3b2=_0x4f87c7>0x1,_0x4b5674=this[_0x47cd8b(0x1da)]?.[_0x47cd8b(0x21f)];if(_0x20e3b2){this[_0x47cd8b(0x1d2)]||this[_0x47cd8b(0x261)]||this[_0x47cd8b(0x1fa)]||(this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x1f9)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x1f9)]),this[_0x47cd8b(0x1d2)]=!0x0,this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x246)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x246)]),this[_0x47cd8b(0x261)]=!0x0,this[_0x47cd8b(0x207)][_0x47cd8b(0x1d9)](this[_0x47cd8b(0x23c)]),_0x4b5674?.[_0x47cd8b(0x226)](this[_0x47cd8b(0x23c)]),this[_0x47cd8b(0x1fa)]=!0x0);const _0xea3e7c=_0x4f87c7-this[_0x47cd8b(0x1f4)];this[_0x47cd8b(0x246)][_0x47cd8b(0x1fe)]&&(this[_0x47cd8b(0x246)][_0x47cd8b(0x1fe)][_0x47cd8b(0x1f2)]=_0xea3e7c+'/'+_0x4f87c7),this[_0x47cd8b(0x1f9)][_0x47cd8b(0x273)]=this[_0x47cd8b(0x1f4)]<_0x4f87c7-0x1,this[_0x47cd8b(0x23c)][_0x47cd8b(0x273)]=this[_0x47cd8b(0x1f4)]>0x0;}else(this[_0x47cd8b(0x1d2)]||this[_0x47cd8b(0x261)]||this[_0x47cd8b(0x1fa)])&&(this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x1f9)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x1f9)]),this[_0x47cd8b(0x1d2)]=!0x1,this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x246)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x246)]),this[_0x47cd8b(0x261)]=!0x1,this[_0x47cd8b(0x207)][_0x47cd8b(0x1cc)](this[_0x47cd8b(0x23c)]),_0x4b5674?.[_0x47cd8b(0x222)](this[_0x47cd8b(0x23c)]),this[_0x47cd8b(0x1fa)]=!0x1);}[_0x1af132(0x1ed)](_0x4bd7e6,_0x4a401b){const _0x41d059=_0x1af132;_0x4bd7e6[_0x41d059(0x297)](),_0x4a401b[_0x41d059(0x25f)][_0x41d059(0x297)](),this[_0x41d059(0x1dd)]=!0x0;}async[_0x1af132(0x1d3)](_0x2908dc,_0x38560c){const _0x501628=_0x1af132,_0x1d9a7f=_0xf1606d(this[_0x501628(0x260)][_0x501628(0x1de)],_0x501628(0x201));_0x38560c[_0x501628(0x230)](_0x1d9a7f),_0x2908dc[_0x501628(0x285)]=!0x0,await this[_0x501628(0x1c8)][_0x501628(0x247)],_0x38560c[_0x501628(0x26c)](),this[_0x501628(0x1da)]?.[_0x501628(0x214)][_0x501628(0x25f)][_0x501628(0x27f)]&&(this[_0x501628(0x1da)][_0x501628(0x214)][_0x501628(0x25f)][_0x501628(0x27f)][_0x501628(0x284)]=!0x0);}[_0x1af132(0x275)](_0x2c7eb2,_0x993063){const _0x2fc467=_0x1af132;_0x2c7eb2[_0x2fc467(0x253)](),_0x993063[_0x2fc467(0x25f)][_0x2fc467(0x27f)]&&(_0x993063[_0x2fc467(0x25f)][_0x2fc467(0x27f)][_0x2fc467(0x284)]=!0x1);}async[_0x1af132(0x205)](_0x274325,_0x4d08a7){const _0x3d85d2=_0x1af132;await this[_0x3d85d2(0x1c8)][_0x3d85d2(0x247)],this[_0x3d85d2(0x1dd)]=!0x1,_0x274325[_0x3d85d2(0x1c7)](),_0x4d08a7[_0x3d85d2(0x25f)][_0x3d85d2(0x1c7)]();}}
@@ -32,6 +32,7 @@ export declare class AIActionsInteraction extends AIInteraction {
32
32
  * The model of the command. Specified only for custom actions.
33
33
  */
34
34
  readonly model?: string;
35
+ hasError: boolean;
35
36
  constructor(options: AIActionsInteractionOptions);
36
37
  sendRequest(): Promise<AIConnectorRequest>;
37
38
  getDocumentContext(): AIContextItem | undefined;
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3c59(_0x2a6f5a,_0x51e211){const _0x3739ee=_0x3739();return _0x3c59=function(_0x3c5912,_0x16251e){_0x3c5912=_0x3c5912-0x72;let _0x3604cf=_0x3739ee[_0x3c5912];return _0x3604cf;},_0x3c59(_0x2a6f5a,_0x51e211);}const _0x33b1f6=_0x3c59;(function(_0x408062,_0x241d66){const _0x2ff98d=_0x3c59,_0x3582ba=_0x408062();while(!![]){try{const _0x88808d=-parseInt(_0x2ff98d(0x7c))/0x1*(-parseInt(_0x2ff98d(0x78))/0x2)+parseInt(_0x2ff98d(0x8b))/0x3+parseInt(_0x2ff98d(0x77))/0x4*(-parseInt(_0x2ff98d(0x82))/0x5)+-parseInt(_0x2ff98d(0x84))/0x6+parseInt(_0x2ff98d(0x91))/0x7+-parseInt(_0x2ff98d(0x81))/0x8*(-parseInt(_0x2ff98d(0x89))/0x9)+-parseInt(_0x2ff98d(0x90))/0xa;if(_0x88808d===_0x241d66)break;else _0x3582ba['push'](_0x3582ba['shift']());}catch(_0x250a2d){_0x3582ba['push'](_0x3582ba['shift']());}}}(_0x3739,0x7885e));function _0x3739(){const _0x2873c3=['args','executeCustomAction','version','3wKCSIq','push','content','html','replies','1572072UBkHTL','25EUYpGv','userMessage','2720202RvFZtf','sendRequest','replyCreated','Current\x20document','actionName','9KuvPfx','fire','859143ASOdJt','delegate','connector','executeAction','editor','9768740hlbJfd','6660787msqbzZ','TEXT','getDocumentContext','current-document','model','createReply','177124cZOSLj','473918PkVgUP'];_0x3739=function(){return _0x2873c3;};return _0x3739();}import{AIInteraction as _0x5783f7,AI_MODEL_EVENT_NAMES as _0x432e2c}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x5f39b2}from'../../aicore/model/aicontext.js';import{AIActionsReply as _0x423d16}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x5783f7{[_0x33b1f6(0x7e)];[_0x33b1f6(0x7b)];[_0x33b1f6(0x88)];[_0x33b1f6(0x79)];[_0x33b1f6(0x83)];[_0x33b1f6(0x75)];constructor(_0x2616ed){const _0x627dc4=_0x33b1f6;super(_0x2616ed),this[_0x627dc4(0x7e)]=_0x2616ed[_0x627dc4(0x7e)],this[_0x627dc4(0x7b)]=_0x2616ed[_0x627dc4(0x7b)],this[_0x627dc4(0x88)]=_0x2616ed[_0x627dc4(0x88)],this[_0x627dc4(0x79)]=_0x2616ed[_0x627dc4(0x79)],this[_0x627dc4(0x83)]=_0x2616ed[_0x627dc4(0x83)],this[_0x627dc4(0x75)]=_0x2616ed[_0x627dc4(0x75)];}async[_0x33b1f6(0x85)](){const _0x145b8b=_0x33b1f6;return this[_0x145b8b(0x88)]?this[_0x145b8b(0x8d)][_0x145b8b(0x8e)]({'content':this[_0x145b8b(0x7e)],'actionName':this[_0x145b8b(0x88)],'args':this[_0x145b8b(0x79)]}):this[_0x145b8b(0x8d)][_0x145b8b(0x7a)]({'content':this[_0x145b8b(0x7e)],'message':this[_0x145b8b(0x83)],'model':this[_0x145b8b(0x75)],'outputFormat':_0x145b8b(0x7f)});}[_0x33b1f6(0x73)](){const _0x28ed1e=_0x33b1f6;return{'type':_0x5f39b2[_0x28ed1e(0x72)],'content':this[_0x28ed1e(0x7e)],'version':this[_0x28ed1e(0x7b)],'label':_0x28ed1e(0x87),'uiId':_0x28ed1e(0x74)};}[_0x33b1f6(0x76)](_0x4829a6){const _0x29124e=_0x33b1f6,_0x4a9e7b=new _0x423d16({'editor':this[_0x29124e(0x8f)],'documentContextContent':this[_0x29124e(0x7e)],..._0x4829a6});return this[_0x29124e(0x80)][_0x29124e(0x7d)](_0x4a9e7b),_0x4a9e7b[_0x29124e(0x8c)](..._0x432e2c)['to'](this),this[_0x29124e(0x8a)](_0x29124e(0x86),_0x4a9e7b),_0x4a9e7b;}}
23
+ const _0x25fb56=_0x5ccb;(function(_0x2daf77,_0xf7846){const _0x57be90=_0x5ccb,_0x27743a=_0x2daf77();while(!![]){try{const _0x17c9a5=parseInt(_0x57be90(0x9d))/0x1*(-parseInt(_0x57be90(0x9b))/0x2)+-parseInt(_0x57be90(0x96))/0x3+parseInt(_0x57be90(0x8e))/0x4+parseInt(_0x57be90(0x7f))/0x5+parseInt(_0x57be90(0x80))/0x6+parseInt(_0x57be90(0x95))/0x7*(-parseInt(_0x57be90(0x9a))/0x8)+parseInt(_0x57be90(0x81))/0x9*(parseInt(_0x57be90(0x88))/0xa);if(_0x17c9a5===_0xf7846)break;else _0x27743a['push'](_0x27743a['shift']());}catch(_0x2deac2){_0x27743a['push'](_0x27743a['shift']());}}}(_0xe72f,0x86a83));import{AIInteraction as _0x37af8c,AI_MODEL_EVENT_NAMES as _0xfb820d}from'../../aicore/model/aiinteraction.js';import{AIContextItemType as _0x4073ad}from'../../aicore/model/aicontext.js';function _0x5ccb(_0x5941f2,_0x2a2b01){const _0xe72f96=_0xe72f();return _0x5ccb=function(_0x5ccb74,_0x2aebd8){_0x5ccb74=_0x5ccb74-0x7e;let _0x4fb954=_0xe72f96[_0x5ccb74];return _0x4fb954;},_0x5ccb(_0x5941f2,_0x2a2b01);}function _0xe72f(){const _0x41dc7a=['4121568aAjEcg','delegate','TEXT','fire','html','sendRequest','createReply','4067CARnrc','1457466HPvXbN','model','userMessage','hasError','15064oPFSIM','2XBfBQm','current-document','585092pAWUcZ','actionName','executeCustomAction','5447010KdEYdp','3548142bLtQAB','63QkeNmz','args','Current\x20document','replyCreated','executeAction','replies','content','7630otnUhs','version','editor','push','connector','getDocumentContext'];_0xe72f=function(){return _0x41dc7a;};return _0xe72f();}import{AIActionsReply as _0x1c4533}from'./aiactionsreply.js';export class AIActionsInteraction extends _0x37af8c{[_0x25fb56(0x87)];[_0x25fb56(0x89)];[_0x25fb56(0x9e)];[_0x25fb56(0x82)];[_0x25fb56(0x98)];[_0x25fb56(0x97)];[_0x25fb56(0x99)]=!0x1;constructor(_0x1538cc){const _0x4f8ea9=_0x25fb56;super(_0x1538cc),this[_0x4f8ea9(0x87)]=_0x1538cc[_0x4f8ea9(0x87)],this[_0x4f8ea9(0x89)]=_0x1538cc[_0x4f8ea9(0x89)],this[_0x4f8ea9(0x9e)]=_0x1538cc[_0x4f8ea9(0x9e)],this[_0x4f8ea9(0x82)]=_0x1538cc[_0x4f8ea9(0x82)],this[_0x4f8ea9(0x98)]=_0x1538cc[_0x4f8ea9(0x98)],this[_0x4f8ea9(0x97)]=_0x1538cc[_0x4f8ea9(0x97)];}async[_0x25fb56(0x93)](){const _0x90539c=_0x25fb56;return this[_0x90539c(0x9e)]?this[_0x90539c(0x8c)][_0x90539c(0x85)]({'content':this[_0x90539c(0x87)],'actionName':this[_0x90539c(0x9e)],'args':this[_0x90539c(0x82)]}):this[_0x90539c(0x8c)][_0x90539c(0x7e)]({'content':this[_0x90539c(0x87)],'message':this[_0x90539c(0x98)],'model':this[_0x90539c(0x97)],'outputFormat':_0x90539c(0x92)});}[_0x25fb56(0x8d)](){const _0x339bdb=_0x25fb56;return{'type':_0x4073ad[_0x339bdb(0x90)],'content':this[_0x339bdb(0x87)],'version':this[_0x339bdb(0x89)],'label':_0x339bdb(0x83),'uiId':_0x339bdb(0x9c)};}[_0x25fb56(0x94)](_0x312250){const _0x14afa9=_0x25fb56,_0x246fef=new _0x1c4533({'editor':this[_0x14afa9(0x8a)],'documentContextContent':this[_0x14afa9(0x87)],..._0x312250});return this[_0x14afa9(0x86)][_0x14afa9(0x8b)](_0x246fef),_0x246fef[_0x14afa9(0x8f)](..._0xfb820d)['to'](this),this[_0x14afa9(0x91)](_0x14afa9(0x84),_0x246fef),_0x246fef;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc0e830=_0x161b;(function(_0x3bd1d4,_0x278db8){const _0xaaa2bb=_0x161b,_0x5058e3=_0x3bd1d4();while(!![]){try{const _0xaee224=-parseInt(_0xaaa2bb(0x134))/0x1*(-parseInt(_0xaaa2bb(0x126))/0x2)+parseInt(_0xaaa2bb(0x120))/0x3+parseInt(_0xaaa2bb(0x11d))/0x4+-parseInt(_0xaaa2bb(0x122))/0x5+-parseInt(_0xaaa2bb(0x123))/0x6+-parseInt(_0xaaa2bb(0x124))/0x7*(-parseInt(_0xaaa2bb(0x129))/0x8)+-parseInt(_0xaaa2bb(0x11c))/0x9;if(_0xaee224===_0x278db8)break;else _0x5058e3['push'](_0x5058e3['shift']());}catch(_0x5075ff){_0x5058e3['push'](_0x5058e3['shift']());}}}(_0x32e2,0xd71dd));import{AIReply as _0xac9e6e}from'../../aicore/model/aireply.js';function _0x161b(_0x463ddb,_0x251af3){const _0x32e292=_0x32e2();return _0x161b=function(_0x161bf9,_0x174132){_0x161bf9=_0x161bf9-0x11a;let _0x4bf799=_0x32e292[_0x161bf9];return _0x4bf799;},_0x161b(_0x463ddb,_0x251af3);}import{getAttribute as _0x2307c4}from'../../aicore/utils/htmlparser.js';import{uid as _0x4f5012}from'ckeditor5/src/utils.js';function _0x32e2(){const _0x202352=['data-id','71049TIyZjh','pending','_getDifferentChangeGroups','pop','new','documentContextContent','18396504dMIOkf','7026708AudfpK','childNodes','added','2443359eqIOYV','cloneNode','2803300toSCTm','1202214Puvrrl','7RGZZtB','updateChangeGroups','2QnlRHY','length','value','8352184TVsscS','removed','modified','changeGroups','isDone','node','parsedContent','parsedMergedContent','map','children'];_0x32e2=function(){return _0x202352;};return _0x32e2();}import{diffArrays as _0x3c4182}from'diff';export class AIActionsReply extends _0xac9e6e{[_0xc0e830(0x125)](){const _0x2a6e8b=_0xc0e830;if(this[_0x2a6e8b(0x130)]=this[_0x2a6e8b(0x12f)][_0x2a6e8b(0x121)](!0x0),0x0==this[_0x2a6e8b(0x130)][_0x2a6e8b(0x11e)][_0x2a6e8b(0x127)])return void(this[_0x2a6e8b(0x12c)]=[]);const _0x230809=this[_0x2a6e8b(0x11b)][_0x2a6e8b(0x132)][_0x2a6e8b(0x131)](_0x1cb710=>({'node':_0x1cb710,'id':_0x2307c4(_0x1cb710,_0x2a6e8b(0x133))})),_0x139464=this[_0x2a6e8b(0x130)][_0x2a6e8b(0x132)][_0x2a6e8b(0x131)](_0x4256a8=>({'node':_0x4256a8,'id':_0x2307c4(_0x4256a8,_0x2a6e8b(0x133))||_0x4f5012()})),_0xa83710=_0x3c4182(_0x230809,_0x139464,{'comparator':(_0x57fbb7,_0x1288aa)=>_0x57fbb7['id']==_0x1288aa['id'],'oneChangePerToken':!0x0});if(!this[_0x2a6e8b(0x12d)]){for(;_0xa83710[_0x2a6e8b(0x127)]&&_0xa83710[_0xa83710[_0x2a6e8b(0x127)]-0x1][_0x2a6e8b(0x12a)];)_0xa83710[_0x2a6e8b(0x137)]();}const _0x21d3b1=_0xa83710[_0x2a6e8b(0x131)](_0x4c3adc=>{const _0x1f4892=_0x2a6e8b,_0x2a0a52=_0x4c3adc[_0x1f4892(0x11f)]?_0x1f4892(0x11a):_0x4c3adc[_0x1f4892(0x12a)]?_0x1f4892(0x12a):_0x1f4892(0x12b);return{'node':_0x4c3adc[_0x1f4892(0x128)][0x0][_0x1f4892(0x12e)],'type':_0x2a0a52,'id':_0x4c3adc[_0x1f4892(0x128)][0x0]['id']};});this[_0x2a6e8b(0x12c)]=[{'changes':_0x21d3b1,'state':_0x2a6e8b(0x135),'index':0x0}];}[_0xc0e830(0x136)](_0x3d4535,_0x11efc1){return _0x11efc1;}}
23
+ const _0x58a275=_0x32c8;(function(_0x2b4f7e,_0x17fe13){const _0x36f3ba=_0x32c8,_0x311a12=_0x2b4f7e();while(!![]){try{const _0x25a30d=-parseInt(_0x36f3ba(0xc4))/0x1*(parseInt(_0x36f3ba(0xcf))/0x2)+parseInt(_0x36f3ba(0xc1))/0x3*(parseInt(_0x36f3ba(0xb9))/0x4)+parseInt(_0x36f3ba(0xd5))/0x5*(parseInt(_0x36f3ba(0xd6))/0x6)+parseInt(_0x36f3ba(0xd0))/0x7*(parseInt(_0x36f3ba(0xbd))/0x8)+parseInt(_0x36f3ba(0xcd))/0x9+parseInt(_0x36f3ba(0xbc))/0xa+parseInt(_0x36f3ba(0xc8))/0xb*(-parseInt(_0x36f3ba(0xc5))/0xc);if(_0x25a30d===_0x17fe13)break;else _0x311a12['push'](_0x311a12['shift']());}catch(_0x320dc5){_0x311a12['push'](_0x311a12['shift']());}}}(_0x3fca,0xb9a07));import{AIReply as _0x399411}from'../../aicore/model/aireply.js';function _0x3fca(){const _0x39ed4e=['parsedMergedContent','3755345VfVRoP','removed','length','cloneNode','data-id','6384717xPgNbY','documentContextContent','2768606FPMHVb','10255fvtxQD','new','parsedContent','map','pop','855835kUdWVX','12fIxMbw','node','_getDifferentChangeGroups','isDone','4UctgyU','value','added','4985150REBANI','7408nynMhj','updateChangeGroups','childNodes','modified','2834259FtTLoZ','children','changeGroups','1gZRRPe','60sqwQiJ','pending'];_0x3fca=function(){return _0x39ed4e;};return _0x3fca();}import{getAttribute as _0x4f5666}from'../../aicore/utils/htmlparser.js';function _0x32c8(_0x5040df,_0x240ffb){const _0x3fca0a=_0x3fca();return _0x32c8=function(_0x32c882,_0x55b0af){_0x32c882=_0x32c882-0xb6;let _0x28fa79=_0x3fca0a[_0x32c882];return _0x28fa79;},_0x32c8(_0x5040df,_0x240ffb);}import{uid as _0x41c3d8}from'ckeditor5/src/utils.js';import{diffArrays as _0x281245}from'diff';export class AIActionsReply extends _0x399411{[_0x58a275(0xbe)](){const _0x2e4019=_0x58a275;if(this[_0x2e4019(0xc7)]=this[_0x2e4019(0xd2)][_0x2e4019(0xcb)](!0x0),0x0==this[_0x2e4019(0xc7)][_0x2e4019(0xbf)][_0x2e4019(0xca)])return void(this[_0x2e4019(0xc3)]=[]);const _0x5a14ab=this[_0x2e4019(0xce)][_0x2e4019(0xc2)][_0x2e4019(0xd3)](_0x345097=>({'node':_0x345097,'id':_0x4f5666(_0x345097,_0x2e4019(0xcc))})),_0xfe26e7=this[_0x2e4019(0xc7)][_0x2e4019(0xc2)][_0x2e4019(0xd3)](_0x20707b=>({'node':_0x20707b,'id':_0x4f5666(_0x20707b,_0x2e4019(0xcc))||_0x41c3d8()})),_0x3b6614=_0x281245(_0x5a14ab,_0xfe26e7,{'comparator':(_0x3e6abd,_0x2fad66)=>_0x3e6abd['id']==_0x2fad66['id'],'oneChangePerToken':!0x0});if(!this[_0x2e4019(0xb8)]){for(;_0x3b6614[_0x2e4019(0xca)]&&_0x3b6614[_0x3b6614[_0x2e4019(0xca)]-0x1][_0x2e4019(0xc9)];)_0x3b6614[_0x2e4019(0xd4)]();}const _0x592c23=_0x3b6614[_0x2e4019(0xd3)](_0x44a71b=>{const _0x2e23ef=_0x2e4019,_0x55dc9b=_0x44a71b[_0x2e23ef(0xbb)]?_0x2e23ef(0xd1):_0x44a71b[_0x2e23ef(0xc9)]?_0x2e23ef(0xc9):_0x2e23ef(0xc0);return{'node':_0x44a71b[_0x2e23ef(0xba)][0x0][_0x2e23ef(0xb6)],'type':_0x55dc9b,'id':_0x44a71b[_0x2e23ef(0xba)][0x0]['id']};});this[_0x2e4019(0xc3)]=[{'changes':_0x592c23,'state':_0x2e4019(0xc6),'index':0x0}];}[_0x58a275(0xb7)](_0x320789,_0x599b8d){return _0x599b8d;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4d5f83=_0x5ae6;(function(_0x29aceb,_0x518c29){var _0x59740b=_0x5ae6,_0x4dba4f=_0x29aceb();while(!![]){try{var _0x4bf0c2=parseInt(_0x59740b(0x1cf))/0x1+parseInt(_0x59740b(0x1c9))/0x2+-parseInt(_0x59740b(0x1ca))/0x3+parseInt(_0x59740b(0x1c4))/0x4*(parseInt(_0x59740b(0x1cc))/0x5)+parseInt(_0x59740b(0x1d4))/0x6+-parseInt(_0x59740b(0x1d0))/0x7+parseInt(_0x59740b(0x1d2))/0x8*(-parseInt(_0x59740b(0x1d1))/0x9);if(_0x4bf0c2===_0x518c29)break;else _0x4dba4f['push'](_0x4dba4f['shift']());}catch(_0x5451f0){_0x4dba4f['push'](_0x4dba4f['shift']());}}}(_0x5019,0xd7e12));function _0x5ae6(_0x38b6ea,_0x52d962){var _0x5019c5=_0x5019();return _0x5ae6=function(_0x5ae6a1,_0x1d8817){_0x5ae6a1=_0x5ae6a1-0x1c3;var _0x4a4d44=_0x5019c5[_0x5ae6a1];return _0x4a4d44;},_0x5ae6(_0x38b6ea,_0x52d962);}function _0x5019(){var _0x5e99f0=['aiadapter-text-adapter-not-set','22976yUFAyy','isPremiumPlugin','pluginName','textAdapter','isOfficialPlugin','2257446hWOgja','792852DkblBW','afterInit','970QjOODS','AIAdapter','AIRequestError','146871NrKDHW','4519431anTtHS','9QmdOrP','11808696xtWSzJ','name','5281896fHkrVK'];_0x5019=function(){return _0x5e99f0;};return _0x5019();}import{Plugin as _0x259aa0}from'ckeditor5/src/core.js';import{CKEditorError as _0x3f86cb}from'ckeditor5/src/utils.js';export class AIAdapter extends _0x259aa0{static get[_0x4d5f83(0x1c6)](){var _0x4728e4=_0x4d5f83;return _0x4728e4(0x1cd);}static get[_0x4d5f83(0x1c8)](){return!0x0;}static get[_0x4d5f83(0x1c5)](){return!0x0;}[_0x4d5f83(0x1cb)](){var _0x19b016=_0x4d5f83;if(!this[_0x19b016(0x1c7)])throw new _0x3f86cb(_0x19b016(0x1c3),null);}}export class AIRequestError extends Error{constructor(_0x2fc461){var _0x5e7956=_0x4d5f83;super(_0x2fc461),this[_0x5e7956(0x1d3)]=_0x5e7956(0x1ce);}}
23
+ var _0x21cd80=_0xcb3a;(function(_0x4ada1b,_0x185d3c){var _0x183fde=_0xcb3a,_0x277b03=_0x4ada1b();while(!![]){try{var _0x547b75=-parseInt(_0x183fde(0x176))/0x1*(parseInt(_0x183fde(0x17e))/0x2)+parseInt(_0x183fde(0x181))/0x3+-parseInt(_0x183fde(0x174))/0x4*(-parseInt(_0x183fde(0x180))/0x5)+-parseInt(_0x183fde(0x179))/0x6*(parseInt(_0x183fde(0x17b))/0x7)+parseInt(_0x183fde(0x178))/0x8*(parseInt(_0x183fde(0x172))/0x9)+-parseInt(_0x183fde(0x17f))/0xa+parseInt(_0x183fde(0x175))/0xb;if(_0x547b75===_0x185d3c)break;else _0x277b03['push'](_0x277b03['shift']());}catch(_0x5d0736){_0x277b03['push'](_0x277b03['shift']());}}}(_0x5cdb,0xddf7b));import{Plugin as _0x206a17}from'ckeditor5/src/core.js';function _0xcb3a(_0x5e68e1,_0x5cc697){var _0x5cdb51=_0x5cdb();return _0xcb3a=function(_0xcb3a7c,_0xf0d0b6){_0xcb3a7c=_0xcb3a7c-0x170;var _0x2ab3bf=_0x5cdb51[_0xcb3a7c];return _0x2ab3bf;},_0xcb3a(_0x5e68e1,_0x5cc697);}import{CKEditorError as _0x17290d}from'ckeditor5/src/utils.js';function _0x5cdb(){var _0x42112d=['16462320xkXfmx','606190KvRSFR','5019714fdFdTt','isPremiumPlugin','AIAdapter','AIRequestError','aiadapter-text-adapter-not-set','205137NTsXzr','textAdapter','8SvFbcy','28369935JFksYY','101335MQRTKF','name','184KexgOZ','60864cTUIlT','isOfficialPlugin','791LcqEPd','afterInit','pluginName','26WCjJqV'];_0x5cdb=function(){return _0x42112d;};return _0x5cdb();}export class AIAdapter extends _0x206a17{static get[_0x21cd80(0x17d)](){var _0x141d18=_0x21cd80;return _0x141d18(0x183);}static get[_0x21cd80(0x17a)](){return!0x0;}static get[_0x21cd80(0x182)](){return!0x0;}[_0x21cd80(0x17c)](){var _0x4c41d3=_0x21cd80;if(!this[_0x4c41d3(0x173)])throw new _0x17290d(_0x4c41d3(0x171),null);}}export class AIRequestError extends Error{constructor(_0x327521){var _0x2c4d5d=_0x21cd80;super(_0x327521),this[_0x2c4d5d(0x177)]=_0x2c4d5d(0x170);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5988(){const _0x10873f=['error','abortController','396424LRNlkQ','editor','locale','723605jGkLPJ','11xEqBEA','abort','aitextadapter-send-request-failed','init','81096kdBbMQ','resolve','name','5057myzfkU','418069OFhwAh','requires','_prepareRequestHeaders','application/json','get','6pUtcdV','plugins','AbortError','20olwDPE','object','24eEjLTD','_prepareRequestParameters','reject','signal','AI_ERROR_GET_PARAMETERS','7461290RkhXUG','makeRequest','catch','24SRXEzQ','224721ogCcRW','1213387dgHiYE','AI_ERROR_GET_HEADERS','aborted','assign','sendRequest','textAdapter'];_0x5988=function(){return _0x10873f;};return _0x5988();}const _0x3a735c=_0x198b;(function(_0x551a7b,_0x12b8ca){const _0x500012=_0x198b,_0xd4551f=_0x551a7b();while(!![]){try{const _0x5df2be=parseInt(_0x500012(0x137))/0x1+parseInt(_0x500012(0x12b))/0x2*(parseInt(_0x500012(0x13c))/0x3)+-parseInt(_0x500012(0x13f))/0x4*(-parseInt(_0x500012(0x12e))/0x5)+parseInt(_0x500012(0x141))/0x6*(parseInt(_0x500012(0x14b))/0x7)+parseInt(_0x500012(0x149))/0x8*(parseInt(_0x500012(0x14a))/0x9)+parseInt(_0x500012(0x146))/0xa*(parseInt(_0x500012(0x12f))/0xb)+-parseInt(_0x500012(0x133))/0xc*(parseInt(_0x500012(0x136))/0xd);if(_0x5df2be===_0x12b8ca)break;else _0xd4551f['push'](_0xd4551f['shift']());}catch(_0x419e75){_0xd4551f['push'](_0xd4551f['shift']());}}}(_0x5988,0x676d4));import{Plugin as _0x18b5fc}from'ckeditor5/src/core.js';import{CKEditorError as _0x186b07}from'ckeditor5/src/utils.js';import{AIAdapter as _0x4755ab,AIRequestError as _0x110469}from'./aiadapter.js';function _0x198b(_0x1acedb,_0x416c79){const _0x5988a9=_0x5988();return _0x198b=function(_0x198b52,_0x3c9cc6){_0x198b52=_0x198b52-0x12b;let _0x1e42d0=_0x5988a9[_0x198b52];return _0x1e42d0;},_0x198b(_0x1acedb,_0x416c79);}import{getTranslation as _0x365bad}from'../utils/common-translations.js';export class AITextAdapter extends _0x18b5fc{[_0x3a735c(0x152)];static get[_0x3a735c(0x138)](){return[_0x4755ab];}constructor(_0x33d2e0){const _0x41f3bd=_0x3a735c;super(_0x33d2e0),this[_0x41f3bd(0x152)]=new AbortController();}[_0x3a735c(0x132)](){const _0xed16d6=_0x3a735c;this[_0xed16d6(0x12c)][_0xed16d6(0x13d)][_0xed16d6(0x13b)](_0x4755ab)[_0xed16d6(0x150)]=this;}[_0x3a735c(0x130)](){const _0x341d44=_0x3a735c;this[_0x341d44(0x152)][_0x341d44(0x144)][_0x341d44(0x14d)]||(this[_0x341d44(0x152)][_0x341d44(0x130)](),this[_0x341d44(0x152)]=new AbortController());}async[_0x3a735c(0x147)](_0x362954){const _0x4acace=_0x3a735c;return this[_0x4acace(0x14f)](_0x362954)[_0x4acace(0x148)](_0x4d885d=>{const _0x27327d=_0x4acace;if(_0x4d885d instanceof _0x110469)return Promise[_0x27327d(0x143)](_0x4d885d);if(_0x27327d(0x13e)==_0x4d885d[_0x27327d(0x135)])return Promise[_0x27327d(0x134)]();throw console[_0x27327d(0x151)](_0x4d885d),new _0x186b07(_0x27327d(0x131),null);});}async[_0x3a735c(0x139)](_0x32e09e,_0x13633e){const _0xa23e81=_0x3a735c,_0x4f4539=this[_0xa23e81(0x12c)][_0xa23e81(0x12d)],_0x2c98bd={'Content-Type':_0xa23e81(0x13a)};if(_0xa23e81(0x140)==typeof _0x32e09e)Object[_0xa23e81(0x14e)](_0x2c98bd,_0x32e09e);else{if(_0x32e09e)try{const _0x45ca43=await _0x32e09e(_0x13633e);Object[_0xa23e81(0x14e)](_0x2c98bd,_0x45ca43);}catch{return Promise[_0xa23e81(0x143)](new _0x110469(_0x365bad(_0x4f4539,_0xa23e81(0x14c))));}}return _0x2c98bd;}async[_0x3a735c(0x142)](_0xfe0a32,_0x3a3268){const _0x59d4db=_0x3a735c,_0x5d9842=this[_0x59d4db(0x12c)][_0x59d4db(0x12d)];if(_0x59d4db(0x140)==typeof _0xfe0a32)return _0xfe0a32;try{return await _0xfe0a32(_0x3a3268);}catch{return Promise[_0x59d4db(0x143)](new _0x110469(_0x365bad(_0x5d9842,_0x59d4db(0x145))));}}}
23
+ const _0x5b1fb2=_0x4405;function _0x1bec(){const _0xc24820=['requires','10295110QdIHgJ','9fBkfGG','catch','6UKbYUy','11266flBdQF','AI_ERROR_GET_HEADERS','locale','aitextadapter-send-request-failed','249lGxkVS','get','init','4056024sLSYvM','resolve','1363928cFPMwA','signal','error','aborted','plugins','5602005nTQWia','object','869548fzFmYu','_prepareRequestHeaders','application/json','27284283bmvWbT','makeRequest','sendRequest','assign','editor','reject','name','textAdapter','3wbDpOU','11EUzSyb','AI_ERROR_GET_PARAMETERS','AbortError','abort','_prepareRequestParameters','7xTJEKr','abortController'];_0x1bec=function(){return _0xc24820;};return _0x1bec();}function _0x4405(_0x4275c8,_0x1c0079){const _0x1bec3d=_0x1bec();return _0x4405=function(_0x440506,_0x3353d5){_0x440506=_0x440506-0x16d;let _0xcb8690=_0x1bec3d[_0x440506];return _0xcb8690;},_0x4405(_0x4275c8,_0x1c0079);}(function(_0x5d7cd0,_0x264f4b){const _0x37b733=_0x4405,_0x3d0285=_0x5d7cd0();while(!![]){try{const _0x4e7a33=parseInt(_0x37b733(0x174))/0x1*(-parseInt(_0x37b733(0x170))/0x2)+parseInt(_0x37b733(0x18b))/0x3*(parseInt(_0x37b733(0x180))/0x4)+parseInt(_0x37b733(0x17e))/0x5*(parseInt(_0x37b733(0x16f))/0x6)+-parseInt(_0x37b733(0x191))/0x7*(-parseInt(_0x37b733(0x179))/0x8)+-parseInt(_0x37b733(0x16d))/0x9*(parseInt(_0x37b733(0x194))/0xa)+parseInt(_0x37b733(0x18c))/0xb*(-parseInt(_0x37b733(0x177))/0xc)+parseInt(_0x37b733(0x183))/0xd;if(_0x4e7a33===_0x264f4b)break;else _0x3d0285['push'](_0x3d0285['shift']());}catch(_0x427e25){_0x3d0285['push'](_0x3d0285['shift']());}}}(_0x1bec,0xcc54c));import{Plugin as _0xfdbaa4}from'ckeditor5/src/core.js';import{CKEditorError as _0x1bd9a0}from'ckeditor5/src/utils.js';import{AIAdapter as _0x3f8488,AIRequestError as _0x3f877b}from'./aiadapter.js';import{getTranslation as _0x1e940f}from'../utils/common-translations.js';export class AITextAdapter extends _0xfdbaa4{[_0x5b1fb2(0x192)];static get[_0x5b1fb2(0x193)](){return[_0x3f8488];}constructor(_0xa6359a){const _0x75b001=_0x5b1fb2;super(_0xa6359a),this[_0x75b001(0x192)]=new AbortController();}[_0x5b1fb2(0x176)](){const _0x515768=_0x5b1fb2;this[_0x515768(0x187)][_0x515768(0x17d)][_0x515768(0x175)](_0x3f8488)[_0x515768(0x18a)]=this;}[_0x5b1fb2(0x18f)](){const _0x3aa0bd=_0x5b1fb2;this[_0x3aa0bd(0x192)][_0x3aa0bd(0x17a)][_0x3aa0bd(0x17c)]||(this[_0x3aa0bd(0x192)][_0x3aa0bd(0x18f)](),this[_0x3aa0bd(0x192)]=new AbortController());}async[_0x5b1fb2(0x184)](_0x5e502a){const _0x554f86=_0x5b1fb2;return this[_0x554f86(0x185)](_0x5e502a)[_0x554f86(0x16e)](_0x557466=>{const _0x512319=_0x554f86;if(_0x557466 instanceof _0x3f877b)return Promise[_0x512319(0x188)](_0x557466);if(_0x512319(0x18e)==_0x557466[_0x512319(0x189)])return Promise[_0x512319(0x178)]();throw console[_0x512319(0x17b)](_0x557466),new _0x1bd9a0(_0x512319(0x173),null);});}async[_0x5b1fb2(0x181)](_0x2e9725,_0x39ff2f){const _0x33b7ec=_0x5b1fb2,_0x87922e=this[_0x33b7ec(0x187)][_0x33b7ec(0x172)],_0x4caf00={'Content-Type':_0x33b7ec(0x182)};if(_0x33b7ec(0x17f)==typeof _0x2e9725)Object[_0x33b7ec(0x186)](_0x4caf00,_0x2e9725);else{if(_0x2e9725)try{const _0xf4ded0=await _0x2e9725(_0x39ff2f);Object[_0x33b7ec(0x186)](_0x4caf00,_0xf4ded0);}catch{return Promise[_0x33b7ec(0x188)](new _0x3f877b(_0x1e940f(_0x87922e,_0x33b7ec(0x171))));}}return _0x4caf00;}async[_0x5b1fb2(0x190)](_0x323815,_0x21480e){const _0x191d74=_0x5b1fb2,_0x211ec4=this[_0x191d74(0x187)][_0x191d74(0x172)];if(_0x191d74(0x17f)==typeof _0x323815)return _0x323815;try{return await _0x323815(_0x21480e);}catch{return Promise[_0x191d74(0x188)](new _0x3f877b(_0x1e940f(_0x211ec4,_0x191d74(0x18d))));}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd11b91=_0x5208;(function(_0x45382b,_0x272b86){const _0x3463b1=_0x5208,_0xc5babf=_0x45382b();while(!![]){try{const _0x2cc451=-parseInt(_0x3463b1(0xc7))/0x1+parseInt(_0x3463b1(0xe1))/0x2*(parseInt(_0x3463b1(0x10e))/0x3)+parseInt(_0x3463b1(0xd0))/0x4+parseInt(_0x3463b1(0xcb))/0x5+parseInt(_0x3463b1(0xe2))/0x6+-parseInt(_0x3463b1(0x108))/0x7+-parseInt(_0x3463b1(0xf2))/0x8;if(_0x2cc451===_0x272b86)break;else _0xc5babf['push'](_0xc5babf['shift']());}catch(_0x2d622f){_0xc5babf['push'](_0xc5babf['shift']());}}}(_0x2ae5,0x2fa88));import{AITextAdapter as _0x267a10}from'./aitextadapter.js';function _0x5208(_0x28f9c1,_0x54e7ce){const _0x2ae567=_0x2ae5();return _0x5208=function(_0x520849,_0x44f144){_0x520849=_0x520849-0xc2;let _0x10d535=_0x2ae567[_0x520849];return _0x10d535;},_0x5208(_0x28f9c1,_0x54e7ce);}import{AIRequestError as _0x4cef64}from'./aiadapter.js';function _0x2ae5(){const _0x514c03=['utf-8','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','completion','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','read','665606aywUGm','115260jzUjGI','join','filter','_readAsyncIterableResponse','generation','test','ai.assistant.adapter.aws.apiUrl','\x0a[/INST]','completions','sendRequest','meta.llama','split','anthropic.claude','_getGeneratedText','data','<<SYS>>\x0a','2490992CHXdih','send','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','define','generations','editor','_processAWSRequest','_readStaticResponse','_requestParameters','getReader','anthropic.claude-v2','_prepareRequestHeaders','decode','_processProxyRequest','signal','application/json','stringify','ai.assistant.adapter.aws.requestHeaders','resolve','_readStreamableResponse','pluginName','config','651763aAfAal','ai.assistant.adapter.aws.requestParameters','abortController','_prepareRequestParameters','get','Instruction:\x0a','3mKHGpY','_apiUrl','POST','\x0a<</SYS>>\x0a[INST]\x0a','length','_bedrockClientConfig','map','289754eFYgFF','bedrock-2023-05-31','AI_ERROR_UNSUPPORTED_MODEL','parse','1895795XnqAnZ','AWSTextAdapter','Human:\x0a','locale','ai.assistant.adapter.aws.bedrockClientConfig','633092sFkOmO','bytes','preparePrompt','text','ai21.j2','body','getModelFamily','cohere.command','\x0a\x0aAssistant:','chunk','_requestHeaders','json'];_0x2ae5=function(){return _0x514c03;};return _0x2ae5();}import{BedrockRuntimeClient as _0x28343f,InvokeModelCommand as _0x34f0ed,InvokeModelWithResponseStreamCommand as _0x20e054}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x1205ad}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x267a10{[_0xd11b91(0x10f)];[_0xd11b91(0xda)];[_0xd11b91(0xc5)];[_0xd11b91(0xfa)];static get[_0xd11b91(0x106)](){const _0x3af1fe=_0xd11b91;return _0x3af1fe(0xcc);}constructor(_0x49048a){const _0x1bbd83=_0xd11b91;super(_0x49048a),_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0x109))||_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0xf5)](_0x1bbd83(0x109),{'model':_0x1bbd83(0xfc),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x1bbd83(0xc8),'stream':!0x0}),this[_0x1bbd83(0x10f)]=_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0xe8)),this[_0x1bbd83(0xc5)]=_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0xcf)),this[_0x1bbd83(0xda)]=_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0x103)),this[_0x1bbd83(0xfa)]=_0x49048a[_0x1bbd83(0x107)][_0x1bbd83(0x10c)](_0x1bbd83(0x109));}async[_0xd11b91(0xeb)]({query:_0x5a2e18,context:_0x31f5c7,onData:_0xb8bf63,actionId:_0x374722}){const _0x12fda6=_0xd11b91,{model:_0x50227b,stream:_0x11da70,..._0x37b09e}=await this[_0x12fda6(0x10b)](this[_0x12fda6(0xfa)],_0x374722),_0x4e7f96={'prompt':await this[_0x12fda6(0xd2)](_0x5a2e18,_0x31f5c7,_0x50227b,_0x374722),..._0x37b09e};this[_0x12fda6(0x10f)]?await this[_0x12fda6(0xff)](_0x4e7f96,_0x50227b,_0x11da70,_0xb8bf63,_0x374722):await this[_0x12fda6(0xf8)](_0x4e7f96,_0x50227b,_0x11da70,_0xb8bf63);}async[_0xd11b91(0xd2)](_0x5b6772,_0x474be8,_0x12f26d,_0x58f721){const _0x47f2fb=_0xd11b91;let _0x7ad241,_0x51b2b0;return _0x474be8?(_0x7ad241=_0x47f2fb(0xf4),_0x51b2b0=_0x47f2fb(0x10d)+_0x5b6772+_0x47f2fb(0xdf)+_0x474be8):(_0x7ad241=_0x47f2fb(0xdd),_0x51b2b0=_0x5b6772),_0x47f2fb(0xec)==this[_0x47f2fb(0xd6)](_0x12f26d)?_0x47f2fb(0xf1)+_0x7ad241+_0x47f2fb(0xc3)+_0x51b2b0+_0x47f2fb(0xe9):_0x47f2fb(0xcd)+_0x7ad241+'\x0a'+_0x51b2b0+_0x47f2fb(0xd8);}[_0xd11b91(0xd6)](_0x5a2e9d){const _0x40c978=_0xd11b91;if(/^anthropic\.claude/[_0x40c978(0xe7)](_0x5a2e9d))return _0x40c978(0xee);if(/^ai21\.j2/[_0x40c978(0xe7)](_0x5a2e9d))return _0x40c978(0xd4);if(/^cohere\.command/[_0x40c978(0xe7)](_0x5a2e9d))return _0x40c978(0xd7);if(/^meta\.llama/[_0x40c978(0xe7)](_0x5a2e9d))return _0x40c978(0xec);throw new _0x4cef64(_0x1205ad(this[_0x40c978(0xf7)][_0x40c978(0xce)],_0x40c978(0xc9),_0x5a2e9d));}async[_0xd11b91(0xff)](_0x1b8dea,_0x944d18,_0x384396,_0x495ee3,_0x816b73){const _0xc7fde9=_0xd11b91,_0x9401ab={'method':_0xc7fde9(0xc2),'headers':await this[_0xc7fde9(0xfd)](this[_0xc7fde9(0xda)],_0x816b73),'body':JSON[_0xc7fde9(0x102)]({..._0x1b8dea,'model':_0x944d18,'stream':_0x384396}),'signal':this[_0xc7fde9(0x10a)][_0xc7fde9(0x100)]},_0x9d44bb=await fetch(this[_0xc7fde9(0x10f)],_0x9401ab);_0x384396?await this[_0xc7fde9(0x105)](_0x9d44bb,_0x944d18,_0x495ee3):await this[_0xc7fde9(0xf9)](_0x9d44bb,_0x944d18,_0x495ee3);}async[_0xd11b91(0xf8)](_0x114522,_0x4fd055,_0x4e7b62,_0xe28a70){const _0x545015=_0xd11b91,_0xb2ad42=new _0x28343f(this[_0x545015(0xc5)]),_0x1f0fbc={'body':JSON[_0x545015(0x102)](_0x114522),'contentType':_0x545015(0x101),'accept':_0x545015(0x101),'modelId':_0x4fd055};let _0x243a4;if(_0x4e7b62){const _0x301944=new _0x20e054(_0x1f0fbc);_0x243a4=await _0xb2ad42[_0x545015(0xf3)](_0x301944,{'abortSignal':this[_0x545015(0x10a)][_0x545015(0x100)]}),await this[_0x545015(0xe5)](_0x243a4,_0x4fd055,_0xe28a70);}else{const _0xcd3e15=new _0x34f0ed(_0x1f0fbc);_0x243a4=await _0xb2ad42[_0x545015(0xf3)](_0xcd3e15,{'abortSignal':this[_0x545015(0x10a)][_0x545015(0x100)]}),await this[_0x545015(0xf9)](_0x243a4,_0x4fd055,_0xe28a70);}}async[_0xd11b91(0xe5)](_0x412b92,_0x328e62,_0x74ab18){const _0x301cc0=_0xd11b91,_0x4215c1=_0x412b92[_0x301cc0(0xd5)],_0x412d8f=new TextDecoder(_0x301cc0(0xdc));let _0x35269c='';for await(const _0x5bcd9d of _0x4215c1)if(_0x5bcd9d[_0x301cc0(0xd9)]){const _0x4bfd09=_0x412d8f[_0x301cc0(0xfe)](_0x5bcd9d[_0x301cc0(0xd9)][_0x301cc0(0xd1)]),_0x21b1d6=JSON[_0x301cc0(0xca)](_0x4bfd09);_0x35269c+=this[_0x301cc0(0xef)](_0x21b1d6,_0x328e62),_0x74ab18(_0x35269c);}return Promise[_0x301cc0(0x104)]();}async[_0xd11b91(0x105)](_0x3dc704,_0x11e440,_0x475a7f){const _0xd1431f=_0xd11b91,_0x291caf=_0x3dc704[_0xd1431f(0xd5)],_0x145e39=new TextDecoder(_0xd1431f(0xdc)),_0x16f4b1=_0x291caf[_0xd1431f(0xfb)]();let _0x602148='',_0x12ad7d='',_0x5f959b=!0x1;for(;!_0x5f959b;){const {done:_0x18f07d,value:_0x572496}=await _0x16f4b1[_0xd1431f(0xe0)]();if(_0x5f959b=_0x18f07d,_0x5f959b)break;const _0x1c069a=(_0x602148+_0x145e39[_0xd1431f(0xfe)](_0x572496))[_0xd1431f(0xed)]('\x0a')[_0xd1431f(0xc6)](_0x4a837d=>{const _0x26f8cc=_0xd1431f;try{return _0x602148='',JSON[_0x26f8cc(0xca)](_0x4a837d);}catch{return _0x602148=_0x4a837d,null;}})[_0xd1431f(0xe4)](_0x45e30a=>null!==_0x45e30a);_0x1c069a[_0xd1431f(0xc4)]&&(_0x12ad7d+=_0x1c069a[_0xd1431f(0xc6)](_0x27aa90=>this[_0xd1431f(0xef)](_0x27aa90,_0x11e440))[_0xd1431f(0xe3)](''),_0x475a7f(_0x12ad7d));}return Promise[_0xd1431f(0x104)]();}async[_0xd11b91(0xf9)](_0x4dc83a,_0x4fb60c,_0x514c4f){const _0x8c8abe=_0xd11b91;let _0x28d9ed;return _0x28d9ed=_0x4dc83a instanceof Response?await _0x4dc83a[_0x8c8abe(0xdb)]():JSON[_0x8c8abe(0xca)](new TextDecoder(_0x8c8abe(0xdc))[_0x8c8abe(0xfe)](_0x4dc83a[_0x8c8abe(0xd5)])),(_0x514c4f(this[_0x8c8abe(0xef)](_0x28d9ed,_0x4fb60c)),Promise[_0x8c8abe(0x104)]());}[_0xd11b91(0xef)](_0x3e011e,_0x4fe64){const _0x7242d7=_0xd11b91;switch(this[_0x7242d7(0xd6)](_0x4fe64)){case _0x7242d7(0xee):return _0x3e011e[_0x7242d7(0xde)];case _0x7242d7(0xd4):return _0x3e011e[_0x7242d7(0xea)][0x0][_0x7242d7(0xf0)][_0x7242d7(0xd3)];case _0x7242d7(0xd7):return _0x3e011e[_0x7242d7(0xf6)][0x0][_0x7242d7(0xd3)];case _0x7242d7(0xec):return _0x3e011e[_0x7242d7(0xe6)];}}}
23
+ function _0x1dbe(){const _0x5821d3=['_getGeneratedText','abortController','_readAsyncIterableResponse','json','Instruction:\x0a','AI_ERROR_UNSUPPORTED_MODEL','define','config','getReader','length','get','anthropic.claude-v2','_processAWSRequest','3186813GeEeRn','_requestParameters','\x0a[/INST]','_readStreamableResponse','text','748760OhIelX','_readStaticResponse','parse','decode','196VlIUrj','POST','join','completions','utf-8','pluginName','locale','read','bedrock-2023-05-31','ai.assistant.adapter.aws.requestParameters','completion','chunk','Human:\x0a','split','4gJNFEo','_prepareRequestParameters','\x0a\x0aAssistant:','ai.assistant.adapter.aws.bedrockClientConfig','generation','editor','resolve','stringify','_bedrockClientConfig','ai21.j2','generations','application/json','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','AWSTextAdapter','map','sendRequest','getModelFamily','bytes','test','send','11iVgGfp','data','meta.llama','preparePrompt','<<SYS>>\x0a','_processProxyRequest','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','150863zxatuY','cohere.command','_prepareRequestHeaders','ai.assistant.adapter.aws.requestHeaders','181746gJoePF','_apiUrl','\x0a<</SYS>>\x0a[INST]\x0a','1444956BATMEM','6nLpYyu','220kpWFfv','3771amhnLE','signal','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','filter','ai.assistant.adapter.aws.apiUrl','anthropic.claude','_requestHeaders','body','1225235wwCaZH'];_0x1dbe=function(){return _0x5821d3;};return _0x1dbe();}const _0x81c879=_0x4f55;(function(_0x4f29e2,_0x342b94){const _0x2fada9=_0x4f55,_0x1bc215=_0x4f29e2();while(!![]){try{const _0x193f22=parseInt(_0x2fada9(0x1c9))/0x1*(parseInt(_0x2fada9(0x1ae))/0x2)+-parseInt(_0x2fada9(0x181))/0x3*(-parseInt(_0x2fada9(0x1a0))/0x4)+parseInt(_0x2fada9(0x189))/0x5*(-parseInt(_0x2fada9(0x1d1))/0x6)+parseInt(_0x2fada9(0x197))/0x7+parseInt(_0x2fada9(0x19c))/0x8+-parseInt(_0x2fada9(0x1cd))/0x9*(parseInt(_0x2fada9(0x180))/0xa)+-parseInt(_0x2fada9(0x1c2))/0xb*(-parseInt(_0x2fada9(0x1d0))/0xc);if(_0x193f22===_0x342b94)break;else _0x1bc215['push'](_0x1bc215['shift']());}catch(_0x46442f){_0x1bc215['push'](_0x1bc215['shift']());}}}(_0x1dbe,0x53ce7));import{AITextAdapter as _0x3f47f8}from'./aitextadapter.js';import{AIRequestError as _0x2fa95c}from'./aiadapter.js';function _0x4f55(_0x46e7a6,_0x26db63){const _0x1dbe98=_0x1dbe();return _0x4f55=function(_0x4f552a,_0x5c6226){_0x4f552a=_0x4f552a-0x180;let _0x4a2962=_0x1dbe98[_0x4f552a];return _0x4a2962;},_0x4f55(_0x46e7a6,_0x26db63);}import{BedrockRuntimeClient as _0x48e7f5,InvokeModelCommand as _0x556a6e,InvokeModelWithResponseStreamCommand as _0x335247}from'@aws-sdk/client-bedrock-runtime';import{getTranslation as _0x51691c}from'../utils/common-translations.js';export class AWSTextAdapter extends _0x3f47f8{[_0x81c879(0x1ce)];[_0x81c879(0x187)];[_0x81c879(0x1b6)];[_0x81c879(0x198)];static get[_0x81c879(0x1a5)](){const _0x4fa6bc=_0x81c879;return _0x4fa6bc(0x1bb);}constructor(_0x4b9ffd){const _0x34d123=_0x81c879;super(_0x4b9ffd),_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x1a9))||_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x190)](_0x34d123(0x1a9),{'model':_0x34d123(0x195),'max_tokens_to_sample':0x7d0,'temperature':0x1,'top_p':0x1,'top_k':0xfa,'anthropic_version':_0x34d123(0x1a8),'stream':!0x0}),this[_0x34d123(0x1ce)]=_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x185)),this[_0x34d123(0x1b6)]=_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x1b1)),this[_0x34d123(0x187)]=_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x1cc)),this[_0x34d123(0x198)]=_0x4b9ffd[_0x34d123(0x191)][_0x34d123(0x194)](_0x34d123(0x1a9));}async[_0x81c879(0x1bd)]({query:_0x3ed8ff,context:_0x4ace18,onData:_0x46539e,actionId:_0x2608da}){const _0x335bbb=_0x81c879,{model:_0x44dad8,stream:_0x225dbd,..._0x5cb1c2}=await this[_0x335bbb(0x1af)](this[_0x335bbb(0x198)],_0x2608da),_0x28bfbb={'prompt':await this[_0x335bbb(0x1c5)](_0x3ed8ff,_0x4ace18,_0x44dad8,_0x2608da),..._0x5cb1c2};this[_0x335bbb(0x1ce)]?await this[_0x335bbb(0x1c7)](_0x28bfbb,_0x44dad8,_0x225dbd,_0x46539e,_0x2608da):await this[_0x335bbb(0x196)](_0x28bfbb,_0x44dad8,_0x225dbd,_0x46539e);}async[_0x81c879(0x1c5)](_0x1cc2e7,_0x357f52,_0x46a31b,_0xa1d155){const _0x4c309b=_0x81c879;let _0x1f0abc,_0x35ec30;return _0x357f52?(_0x1f0abc=_0x4c309b(0x1ba),_0x35ec30=_0x4c309b(0x18e)+_0x1cc2e7+_0x4c309b(0x1c8)+_0x357f52):(_0x1f0abc=_0x4c309b(0x183),_0x35ec30=_0x1cc2e7),_0x4c309b(0x1c4)==this[_0x4c309b(0x1be)](_0x46a31b)?_0x4c309b(0x1c6)+_0x1f0abc+_0x4c309b(0x1cf)+_0x35ec30+_0x4c309b(0x199):_0x4c309b(0x1ac)+_0x1f0abc+'\x0a'+_0x35ec30+_0x4c309b(0x1b0);}[_0x81c879(0x1be)](_0x1ef42b){const _0x467f10=_0x81c879;if(/^anthropic\.claude/[_0x467f10(0x1c0)](_0x1ef42b))return _0x467f10(0x186);if(/^ai21\.j2/[_0x467f10(0x1c0)](_0x1ef42b))return _0x467f10(0x1b7);if(/^cohere\.command/[_0x467f10(0x1c0)](_0x1ef42b))return _0x467f10(0x1ca);if(/^meta\.llama/[_0x467f10(0x1c0)](_0x1ef42b))return _0x467f10(0x1c4);throw new _0x2fa95c(_0x51691c(this[_0x467f10(0x1b3)][_0x467f10(0x1a6)],_0x467f10(0x18f),_0x1ef42b));}async[_0x81c879(0x1c7)](_0x1c0ea4,_0x732452,_0x460086,_0x2d4443,_0x1673aa){const _0x2aaeeb=_0x81c879,_0xeaa7fd={'method':_0x2aaeeb(0x1a1),'headers':await this[_0x2aaeeb(0x1cb)](this[_0x2aaeeb(0x187)],_0x1673aa),'body':JSON[_0x2aaeeb(0x1b5)]({..._0x1c0ea4,'model':_0x732452,'stream':_0x460086}),'signal':this[_0x2aaeeb(0x18b)][_0x2aaeeb(0x182)]},_0x32ea06=await fetch(this[_0x2aaeeb(0x1ce)],_0xeaa7fd);_0x460086?await this[_0x2aaeeb(0x19a)](_0x32ea06,_0x732452,_0x2d4443):await this[_0x2aaeeb(0x19d)](_0x32ea06,_0x732452,_0x2d4443);}async[_0x81c879(0x196)](_0x1d769a,_0xc07038,_0x161e52,_0x2f3574){const _0x4edf4a=_0x81c879,_0x3020a7=new _0x48e7f5(this[_0x4edf4a(0x1b6)]),_0x19272a={'body':JSON[_0x4edf4a(0x1b5)](_0x1d769a),'contentType':_0x4edf4a(0x1b9),'accept':_0x4edf4a(0x1b9),'modelId':_0xc07038};let _0x45ec99;if(_0x161e52){const _0x47188d=new _0x335247(_0x19272a);_0x45ec99=await _0x3020a7[_0x4edf4a(0x1c1)](_0x47188d,{'abortSignal':this[_0x4edf4a(0x18b)][_0x4edf4a(0x182)]}),await this[_0x4edf4a(0x18c)](_0x45ec99,_0xc07038,_0x2f3574);}else{const _0x4eea63=new _0x556a6e(_0x19272a);_0x45ec99=await _0x3020a7[_0x4edf4a(0x1c1)](_0x4eea63,{'abortSignal':this[_0x4edf4a(0x18b)][_0x4edf4a(0x182)]}),await this[_0x4edf4a(0x19d)](_0x45ec99,_0xc07038,_0x2f3574);}}async[_0x81c879(0x18c)](_0x1ec761,_0x5b2b05,_0x4dec7e){const _0x3fc3e5=_0x81c879,_0x39d541=_0x1ec761[_0x3fc3e5(0x188)],_0x5c9d83=new TextDecoder(_0x3fc3e5(0x1a4));let _0x51dda7='';for await(const _0x232d29 of _0x39d541)if(_0x232d29[_0x3fc3e5(0x1ab)]){const _0x1966e=_0x5c9d83[_0x3fc3e5(0x19f)](_0x232d29[_0x3fc3e5(0x1ab)][_0x3fc3e5(0x1bf)]),_0x481603=JSON[_0x3fc3e5(0x19e)](_0x1966e);_0x51dda7+=this[_0x3fc3e5(0x18a)](_0x481603,_0x5b2b05),_0x4dec7e(_0x51dda7);}return Promise[_0x3fc3e5(0x1b4)]();}async[_0x81c879(0x19a)](_0x11a50d,_0x436e72,_0x224ab8){const _0x223364=_0x81c879,_0x344717=_0x11a50d[_0x223364(0x188)],_0x5e680a=new TextDecoder(_0x223364(0x1a4)),_0xeb9388=_0x344717[_0x223364(0x192)]();let _0x4927f4='',_0x3e56b1='',_0x3c6364=!0x1;for(;!_0x3c6364;){const {done:_0x3f3a06,value:_0xe0652d}=await _0xeb9388[_0x223364(0x1a7)]();if(_0x3c6364=_0x3f3a06,_0x3c6364)break;const _0x37cbfc=(_0x4927f4+_0x5e680a[_0x223364(0x19f)](_0xe0652d))[_0x223364(0x1ad)]('\x0a')[_0x223364(0x1bc)](_0x44d152=>{const _0x19ffce=_0x223364;try{return _0x4927f4='',JSON[_0x19ffce(0x19e)](_0x44d152);}catch{return _0x4927f4=_0x44d152,null;}})[_0x223364(0x184)](_0x1a8bd1=>null!==_0x1a8bd1);_0x37cbfc[_0x223364(0x193)]&&(_0x3e56b1+=_0x37cbfc[_0x223364(0x1bc)](_0x3201d5=>this[_0x223364(0x18a)](_0x3201d5,_0x436e72))[_0x223364(0x1a2)](''),_0x224ab8(_0x3e56b1));}return Promise[_0x223364(0x1b4)]();}async[_0x81c879(0x19d)](_0x521509,_0x137c02,_0x5b2221){const _0x18287a=_0x81c879;let _0x2bdd21;return _0x2bdd21=_0x521509 instanceof Response?await _0x521509[_0x18287a(0x18d)]():JSON[_0x18287a(0x19e)](new TextDecoder(_0x18287a(0x1a4))[_0x18287a(0x19f)](_0x521509[_0x18287a(0x188)])),(_0x5b2221(this[_0x18287a(0x18a)](_0x2bdd21,_0x137c02)),Promise[_0x18287a(0x1b4)]());}[_0x81c879(0x18a)](_0x346cd5,_0x3fb1f8){const _0x286e89=_0x81c879;switch(this[_0x286e89(0x1be)](_0x3fb1f8)){case _0x286e89(0x186):return _0x346cd5[_0x286e89(0x1aa)];case _0x286e89(0x1b7):return _0x346cd5[_0x286e89(0x1a3)][0x0][_0x286e89(0x1c3)][_0x286e89(0x19b)];case _0x286e89(0x1ca):return _0x346cd5[_0x286e89(0x1b8)][0x0][_0x286e89(0x19b)];case _0x286e89(0x1c4):return _0x346cd5[_0x286e89(0x1b2)];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2d11(){const _0x40a151=['text','content','delta','Instruction:\x0a','context_length_exceeded','json','_requestParameters','4116VqfzCV','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','pluginName','getReader','filter','ai.assistant.adapter.openAI.apiUrl','225VaLcpA','config','map','2517009BLkpGz','decode','data:\x20','message','signal','5798hFgNYE','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','POST','read','OpenAITextAdapter','26lgmvWe','sendRequest','define','body','_isBufferIncomplete','https://api.openai.com/v1/chat/completions','207720OMdawG','get','_readStaticResponse','ai.assistant.adapter.openAI.requestParameters','36xECRSP','stream','parse','[DONE]','_apiUrl','resolve','editor','AI_ERROR_MODERATION','2044WBMxbp','2037610NKfsfX','_readStreamableResponse','_requestHeaders','252goOzAQ','stringify','_prepareRequestHeaders','choices','_prepareRequestParameters','gpt-4o','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','ai.assistant.adapter.openAI.requestHeaders','_cleanUpData','Moderation','reject','replace','system','prepareMessages','includes','join','173024TrTnhd','AI_ERROR_CONTEXT_LENGTH','locale','abortController','split','user','length'];_0x2d11=function(){return _0x40a151;};return _0x2d11();}const _0x25e6c1=_0x249c;(function(_0x2364cd,_0x4f9329){const _0xac638a=_0x249c,_0x1f9e0b=_0x2364cd();while(!![]){try{const _0x4a59ab=-parseInt(_0xac638a(0x1b6))/0x1*(-parseInt(_0xac638a(0x1bb))/0x2)+-parseInt(_0xac638a(0x1c1))/0x3+parseInt(_0xac638a(0x1cd))/0x4*(parseInt(_0xac638a(0x1ae))/0x5)+-parseInt(_0xac638a(0x1d1))/0x6*(-parseInt(_0xac638a(0x1ef))/0x7)+parseInt(_0xac638a(0x1e1))/0x8*(parseInt(_0xac638a(0x1c5))/0x9)+parseInt(_0xac638a(0x1ce))/0xa+-parseInt(_0xac638a(0x1b1))/0xb;if(_0x4a59ab===_0x4f9329)break;else _0x1f9e0b['push'](_0x1f9e0b['shift']());}catch(_0x5443ee){_0x1f9e0b['push'](_0x1f9e0b['shift']());}}}(_0x2d11,0x1c24f));import{AITextAdapter as _0x18b178}from'./aitextadapter.js';import{AIRequestError as _0x29c96b}from'./aiadapter.js';function _0x249c(_0x57b5e9,_0x152b09){const _0x2d11f7=_0x2d11();return _0x249c=function(_0x249ca0,_0x3f5e76){_0x249ca0=_0x249ca0-0x1ae;let _0x210839=_0x2d11f7[_0x249ca0];return _0x210839;},_0x249c(_0x57b5e9,_0x152b09);}import{getTranslation as _0x2c0aad}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x18b178{[_0x25e6c1(0x1c9)];[_0x25e6c1(0x1d0)];[_0x25e6c1(0x1ee)];static get[_0x25e6c1(0x1f1)](){const _0x39409a=_0x25e6c1;return _0x39409a(0x1ba);}constructor(_0x89e8c9){const _0x268bb2=_0x25e6c1;super(_0x89e8c9),_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1bd)](_0x268bb2(0x1f4),_0x268bb2(0x1c0)),_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1c2)](_0x268bb2(0x1c4))||_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1bd)](_0x268bb2(0x1c4),{'model':_0x268bb2(0x1d6),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x268bb2(0x1c9)]=_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1c2)](_0x268bb2(0x1f4)),this[_0x268bb2(0x1d0)]=_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1c2)](_0x268bb2(0x1d8))||{},this[_0x268bb2(0x1ee)]=_0x89e8c9[_0x268bb2(0x1af)][_0x268bb2(0x1c2)](_0x268bb2(0x1c4));}async[_0x25e6c1(0x1bc)]({query:_0x1c7391,context:_0x372020,onData:_0x1a595f,actionId:_0x11e2b4}){const _0x4bc97e=_0x25e6c1,_0x1d4ad8=this[_0x4bc97e(0x1cb)][_0x4bc97e(0x1e3)],_0x1d7280=await this[_0x4bc97e(0x1de)](_0x1c7391,_0x372020,_0x11e2b4),_0x8f4f20=await this[_0x4bc97e(0x1d3)](this[_0x4bc97e(0x1d0)],_0x11e2b4),_0x560c94=await this[_0x4bc97e(0x1d5)](this[_0x4bc97e(0x1ee)],_0x11e2b4),_0x53f5d5={'messages':_0x1d7280,..._0x560c94},_0x5a66cf={'method':_0x4bc97e(0x1b8),'headers':_0x8f4f20,'body':JSON[_0x4bc97e(0x1d2)](_0x53f5d5),'signal':this[_0x4bc97e(0x1e4)][_0x4bc97e(0x1b5)]},_0x4cce6f=await fetch(this[_0x4bc97e(0x1c9)],_0x5a66cf);if(_0x4cce6f['ok'])return _0x560c94[_0x4bc97e(0x1c6)]?await this[_0x4bc97e(0x1cf)](_0x4cce6f,_0x1a595f):await this[_0x4bc97e(0x1c3)](_0x4cce6f,_0x1a595f),Promise[_0x4bc97e(0x1ca)]();{const _0x2e06fc=await _0x4cce6f[_0x4bc97e(0x1e8)]();return _0x2e06fc[_0x4bc97e(0x1df)](_0x4bc97e(0x1ec))?Promise[_0x4bc97e(0x1db)](new _0x29c96b(_0x2c0aad(_0x1d4ad8,_0x4bc97e(0x1e2)))):_0x2e06fc[_0x4bc97e(0x1df)](_0x4bc97e(0x1da))?Promise[_0x4bc97e(0x1db)](new _0x29c96b(_0x2c0aad(_0x1d4ad8,_0x4bc97e(0x1cc)))):Promise[_0x4bc97e(0x1db)](new Error(_0x2e06fc));}}async[_0x25e6c1(0x1de)](_0x12fe48,_0x59d35c,_0x4e8f2c){const _0x20921b=_0x25e6c1;let _0x1203f8,_0x34d281;return _0x59d35c?(_0x1203f8=_0x20921b(0x1d7),_0x34d281=_0x20921b(0x1eb)+_0x12fe48+_0x20921b(0x1f0)+_0x59d35c):(_0x1203f8=_0x20921b(0x1b7),_0x34d281=_0x12fe48),[{'role':_0x20921b(0x1dd),'content':_0x1203f8},{'role':_0x20921b(0x1e6),'content':_0x34d281}];}async[_0x25e6c1(0x1cf)](_0x32c557,_0x358f81){const _0x45e105=_0x25e6c1,_0x20d1b6=_0x32c557[_0x45e105(0x1be)][_0x45e105(0x1f2)](),_0x255cc0=new TextDecoder();let _0x52dc91='',_0x565d30='',_0x42440b='',_0x584000=!0x1;for(;!_0x584000;){const {done:_0x33d8f3,value:_0x4809a0}=await _0x20d1b6[_0x45e105(0x1b9)](),_0x4052ee=_0x52dc91+_0x255cc0[_0x45e105(0x1b2)](_0x4809a0);let _0x10f872='';_0x584000=_0x33d8f3;try{_0x10f872=this[_0x45e105(0x1d9)](_0x4052ee),_0x52dc91='';}catch{_0x52dc91=_0x4052ee;continue;}_0x565d30+=_0x10f872,!_0x584000&&this[_0x45e105(0x1bf)](_0x565d30)||_0x565d30&&(_0x42440b+=_0x565d30,_0x565d30='',_0x358f81(_0x42440b));}return Promise[_0x45e105(0x1ca)]();}async[_0x25e6c1(0x1c3)](_0x52a9fa,_0x1ac73c){const _0x467ed1=_0x25e6c1;return _0x1ac73c((await _0x52a9fa[_0x467ed1(0x1ed)]())[_0x467ed1(0x1d4)][0x0][_0x467ed1(0x1b4)][_0x467ed1(0x1e9)]),Promise[_0x467ed1(0x1ca)]();}[_0x25e6c1(0x1bf)](_0x1c5559){const _0x3a8f94=_0x25e6c1,_0x3ab3c5=_0x1c5559[_0x3a8f94(0x1e5)]('<')[_0x3a8f94(0x1e7)]!==_0x1c5559[_0x3a8f94(0x1e5)]('>')[_0x3a8f94(0x1e7)],_0x4d08c3=_0x1c5559[_0x3a8f94(0x1e7)]<0x1e;return _0x3ab3c5&&_0x4d08c3;}[_0x25e6c1(0x1d9)](_0x1694a0){const _0x462385=_0x25e6c1;return _0x1694a0[_0x462385(0x1e5)](/\n(?![^{]*\})/g)[_0x462385(0x1b0)](_0x4e6b13=>_0x4e6b13[_0x462385(0x1dc)](_0x462385(0x1b3),''))[_0x462385(0x1f3)](_0x3f66a1=>_0x3f66a1&&_0x3f66a1[_0x462385(0x1e7)]>0x0&&_0x462385(0x1c8)!==_0x3f66a1)[_0x462385(0x1b0)](_0x1e8a08=>{const _0x495dd8=_0x462385,{choices:_0x3127fb}=JSON[_0x495dd8(0x1c7)](_0x1e8a08);if(_0x3127fb[0x0]?.[_0x495dd8(0x1ea)]?.[_0x495dd8(0x1e9)])return _0x3127fb[0x0][_0x495dd8(0x1ea)][_0x495dd8(0x1e9)];})[_0x462385(0x1f3)](_0x1467b4=>_0x1467b4)[_0x462385(0x1e0)]('');}}
23
+ const _0x5d4386=_0x183e;(function(_0x4073ea,_0x5a02b6){const _0x2ab50f=_0x183e,_0x51e5c4=_0x4073ea();while(!![]){try{const _0x1873a8=parseInt(_0x2ab50f(0xfd))/0x1*(parseInt(_0x2ab50f(0xbb))/0x2)+parseInt(_0x2ab50f(0xde))/0x3*(parseInt(_0x2ab50f(0xca))/0x4)+parseInt(_0x2ab50f(0xee))/0x5+-parseInt(_0x2ab50f(0xf7))/0x6+parseInt(_0x2ab50f(0xc1))/0x7*(parseInt(_0x2ab50f(0xb7))/0x8)+parseInt(_0x2ab50f(0xe4))/0x9*(parseInt(_0x2ab50f(0xe5))/0xa)+-parseInt(_0x2ab50f(0xe9))/0xb*(parseInt(_0x2ab50f(0xd1))/0xc);if(_0x1873a8===_0x5a02b6)break;else _0x51e5c4['push'](_0x51e5c4['shift']());}catch(_0x6528aa){_0x51e5c4['push'](_0x51e5c4['shift']());}}}(_0xe75c,0x6aa81));import{AITextAdapter as _0x4c6bc6}from'./aitextadapter.js';function _0x183e(_0x5c45f9,_0x3269fe){const _0xe75c57=_0xe75c();return _0x183e=function(_0x183e52,_0x304d79){_0x183e52=_0x183e52-0xb6;let _0x5e5057=_0xe75c57[_0x183e52];return _0x5e5057;},_0x183e(_0x5c45f9,_0x3269fe);}import{AIRequestError as _0x58d34b}from'./aiadapter.js';import{getTranslation as _0x81356a}from'../utils/common-translations.js';export class OpenAITextAdapter extends _0x4c6bc6{[_0x5d4386(0xc6)];[_0x5d4386(0xd7)];[_0x5d4386(0xf8)];static get[_0x5d4386(0xd3)](){const _0x1740f1=_0x5d4386;return _0x1740f1(0xf6);}constructor(_0x133fb5){const _0x491382=_0x5d4386;super(_0x133fb5),_0x133fb5[_0x491382(0xd6)][_0x491382(0xc4)](_0x491382(0xc0),_0x491382(0xda)),_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xf5))||_0x133fb5[_0x491382(0xd6)][_0x491382(0xc4)](_0x491382(0xf5),{'model':_0x491382(0xe6),'temperature':0x1,'top_p':0x1,'stream':!0x0}),this[_0x491382(0xc6)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xc0)),this[_0x491382(0xd7)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xdd))||{},this[_0x491382(0xf8)]=_0x133fb5[_0x491382(0xd6)][_0x491382(0xbd)](_0x491382(0xf5));}async[_0x5d4386(0xe3)]({query:_0x3a6c73,context:_0x50d88b,onData:_0x108849,actionId:_0x2a567b}){const _0x1192d9=_0x5d4386,_0x59eed2=this[_0x1192d9(0xc2)][_0x1192d9(0xcf)],_0x5b73bb=await this[_0x1192d9(0xdf)](_0x3a6c73,_0x50d88b,_0x2a567b),_0x6af956=await this[_0x1192d9(0xc3)](this[_0x1192d9(0xd7)],_0x2a567b),_0x46a9c8=await this[_0x1192d9(0xce)](this[_0x1192d9(0xf8)],_0x2a567b),_0xebfbe4={'messages':_0x5b73bb,..._0x46a9c8},_0x57da21={'method':_0x1192d9(0xdb),'headers':_0x6af956,'body':JSON[_0x1192d9(0xbe)](_0xebfbe4),'signal':this[_0x1192d9(0xf4)][_0x1192d9(0xec)]},_0x2d980e=await fetch(this[_0x1192d9(0xc6)],_0x57da21);if(_0x2d980e['ok'])return _0x46a9c8[_0x1192d9(0xfc)]?await this[_0x1192d9(0xd4)](_0x2d980e,_0x108849):await this[_0x1192d9(0xb9)](_0x2d980e,_0x108849),Promise[_0x1192d9(0xf0)]();{const _0x29ccaf=await _0x2d980e[_0x1192d9(0xe1)]();return _0x29ccaf[_0x1192d9(0xd8)](_0x1192d9(0xb6))?Promise[_0x1192d9(0xc7)](new _0x58d34b(_0x81356a(_0x59eed2,_0x1192d9(0xf1)))):_0x29ccaf[_0x1192d9(0xd8)](_0x1192d9(0xf9))?Promise[_0x1192d9(0xc7)](new _0x58d34b(_0x81356a(_0x59eed2,_0x1192d9(0xbf)))):Promise[_0x1192d9(0xc7)](new Error(_0x29ccaf));}}async[_0x5d4386(0xdf)](_0x457f0c,_0x6fbba,_0x2e360a){const _0x3b8342=_0x5d4386;let _0x44f722,_0x448d7d;return _0x6fbba?(_0x44f722=_0x3b8342(0xe2),_0x448d7d=_0x3b8342(0xbc)+_0x457f0c+_0x3b8342(0xc8)+_0x6fbba):(_0x44f722=_0x3b8342(0xdc),_0x448d7d=_0x457f0c),[{'role':_0x3b8342(0xcc),'content':_0x44f722},{'role':_0x3b8342(0xb8),'content':_0x448d7d}];}async[_0x5d4386(0xd4)](_0x5aa354,_0x53fd9a){const _0x40b080=_0x5d4386,_0x1d0ca9=_0x5aa354[_0x40b080(0xfa)][_0x40b080(0xed)](),_0x4f4aef=new TextDecoder();let _0x2e3675='',_0x772c64='',_0x4d929b='',_0x45c73e=!0x1;for(;!_0x45c73e;){const {done:_0x1f65aa,value:_0x2c6f44}=await _0x1d0ca9[_0x40b080(0xe8)](),_0x1c632e=_0x2e3675+_0x4f4aef[_0x40b080(0xeb)](_0x2c6f44);let _0x305693='';_0x45c73e=_0x1f65aa;try{_0x305693=this[_0x40b080(0xf3)](_0x1c632e),_0x2e3675='';}catch{_0x2e3675=_0x1c632e;continue;}_0x772c64+=_0x305693,!_0x45c73e&&this[_0x40b080(0xea)](_0x772c64)||_0x772c64&&(_0x4d929b+=_0x772c64,_0x772c64='',_0x53fd9a(_0x4d929b));}return Promise[_0x40b080(0xf0)]();}async[_0x5d4386(0xb9)](_0x4a5a0d,_0xafc189){const _0x32d93b=_0x5d4386;return _0xafc189((await _0x4a5a0d[_0x32d93b(0xcb)]())[_0x32d93b(0xc9)][0x0][_0x32d93b(0xd0)][_0x32d93b(0xe7)]),Promise[_0x32d93b(0xf0)]();}[_0x5d4386(0xea)](_0x4fe696){const _0x3e2ee3=_0x5d4386,_0x43c5e0=_0x4fe696[_0x3e2ee3(0xd9)]('<')[_0x3e2ee3(0xe0)]!==_0x4fe696[_0x3e2ee3(0xd9)]('>')[_0x3e2ee3(0xe0)],_0x2e2f17=_0x4fe696[_0x3e2ee3(0xe0)]<0x1e;return _0x43c5e0&&_0x2e2f17;}[_0x5d4386(0xf3)](_0x792d71){const _0xed0792=_0x5d4386;return _0x792d71[_0xed0792(0xd9)](/\n(?![^{]*\})/g)[_0xed0792(0xc5)](_0x4b8e93=>_0x4b8e93[_0xed0792(0xf2)](_0xed0792(0xcd),''))[_0xed0792(0xfb)](_0x101e63=>_0x101e63&&_0x101e63[_0xed0792(0xe0)]>0x0&&_0xed0792(0xd2)!==_0x101e63)[_0xed0792(0xc5)](_0x3b604c=>{const _0x557a6e=_0xed0792,{choices:_0x213348}=JSON[_0x557a6e(0xef)](_0x3b604c);if(_0x213348[0x0]?.[_0x557a6e(0xba)]?.[_0x557a6e(0xe7)])return _0x213348[0x0][_0x557a6e(0xba)][_0x557a6e(0xe7)];})[_0xed0792(0xfb)](_0x18121f=>_0x18121f)[_0xed0792(0xd5)]('');}}function _0xe75c(){const _0x5cf7db=['system','data:\x20','_prepareRequestParameters','locale','message','14328oXLQnE','[DONE]','pluginName','_readStreamableResponse','join','config','_requestHeaders','includes','split','https://api.openai.com/v1/chat/completions','POST','Your\x20task\x20is\x20to\x20generate\x20HTML\x20content\x20accordingly\x20to\x20the\x20given\x20instruction.\x20Never\x20include\x20<img>\x20tag\x20in\x20your\x20response\x20even\x20if\x20asked\x20for.\x20Your\x20answer\x20must\x20be\x20a\x20well-structured\x20and\x20properly\x20formatted\x20HTML\x20code.\x20Answer\x20only\x20with\x20the\x20generated\x20HTML\x20content.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','ai.assistant.adapter.openAI.requestHeaders','259866dnJnbo','prepareMessages','length','text','Your\x20task\x20is\x20to\x20execute\x20the\x20instruction\x20using\x20the\x20provided\x20HTML\x20content.\x20Follow\x20the\x20instruction\x20closely.\x20Your\x20answer\x20must\x20be\x20a\x20properly\x20formatted\x20HTML\x20code.\x20Do\x20not\x20add\x20any\x20additional\x20remarks\x20or\x20notes.\x20Do\x20not\x20act\x20like\x20a\x20chatbot\x20or\x20a\x20real\x20person.','sendRequest','9ODIvbQ','8195830FTouDw','gpt-4o','content','read','25806fAcuIr','_isBufferIncomplete','decode','signal','getReader','2315560BoOVYx','parse','resolve','AI_ERROR_CONTEXT_LENGTH','replace','_cleanUpData','abortController','ai.assistant.adapter.openAI.requestParameters','OpenAITextAdapter','915726kHkhfp','_requestParameters','Moderation','body','filter','stream','357wNmORW','context_length_exceeded','6362288DSgtZC','user','_readStaticResponse','delta','4442AmmbGY','Instruction:\x0a','get','stringify','AI_ERROR_MODERATION','ai.assistant.adapter.openAI.apiUrl','7pZUWhN','editor','_prepareRequestHeaders','define','map','_apiUrl','reject','\x0aYou\x20must\x20keep\x20the\x20text\x20formatting.\x0a\x0aContent:\x0a','choices','24DfFQgX','json'];_0xe75c=function(){return _0x5cf7db;};return _0xe75c();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x40f93b=_0x5d48;(function(_0x5b7d4e,_0x59489){const _0x58193e=_0x5d48,_0x509d8e=_0x5b7d4e();while(!![]){try{const _0x7a6c7e=parseInt(_0x58193e(0xd7))/0x1+parseInt(_0x58193e(0xc9))/0x2+-parseInt(_0x58193e(0xc7))/0x3+parseInt(_0x58193e(0xae))/0x4+parseInt(_0x58193e(0x109))/0x5*(-parseInt(_0x58193e(0xec))/0x6)+parseInt(_0x58193e(0xb1))/0x7+-parseInt(_0x58193e(0xfc))/0x8*(parseInt(_0x58193e(0xfd))/0x9);if(_0x7a6c7e===_0x59489)break;else _0x509d8e['push'](_0x509d8e['shift']());}catch(_0x300d5b){_0x509d8e['push'](_0x509d8e['shift']());}}}(_0x3266,0xb9bf9));import{Plugin as _0x221c93}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x4dd9db}from'./aiassistantui.js';import{AIAssistantEditing as _0x3c4202}from'./aiassistantediting.js';function _0x3266(){const _0x4f8928=['Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','Generate\x20from\x20selection','French','Change\x20tone','casual','translateChinese','Simplified\x20Chinese','Translate','continue','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','professional','editOrReview','generate','ai.assistant.commands','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','2518460dGvsQn','makeLonger','isOfficialPlugin','9812159ANRtSK','filter','Translate\x20the\x20content\x20to\x20German\x20language.','ai.assistant.extraCommandGroups','commands','Continue','ai.assistant.preserveComments','Casual','changeTone','push','Change\x20style','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Direct','ai.assistant.removeCommands','Arabic','Professional','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','Confident','requires','Translate\x20the\x20content\x20to\x20Arabic\x20language.','friendly','2036358mYBGEa','translateHindi','222496QusZKg','Simplify\x20language','set','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','get','summarize','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','improveWriting','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','config','translateEnglish','Edit\x20or\x20review','translatePortuguese','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','704790KrDvGx','Friendly','poetic','translate','makeShorter','Poetic','changeStyle','Spanish','confident','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','business','translateArabic','includes','Journalism','AIAssistant','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Translate\x20the\x20content\x20to\x20English\x20language.','Business','locale','groupId','Hindi','6yeBaBd','concat','Legal','journalism','English','Make\x20longer','Summarize','Translate\x20the\x20content\x20to\x20Hindi\x20language.','find','Translate\x20the\x20content\x20to\x20Spanish\x20language.','translateSpanish','translateFrench','Improve\x20writing','German','forEach','Portuguese','4460504cQEqkf','9BEQiHR','Translate\x20the\x20content\x20to\x20French\x20language.','Make\x20shorter','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','define','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','pluginName','isPremiumPlugin','legal','direct','translateGerman','4251080FFOWaC','simplifyLanguage','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.'];_0x3266=function(){return _0x4f8928;};return _0x3266();}function _0x5d48(_0x2280ae,_0x1a351a){const _0x326615=_0x3266();return _0x5d48=function(_0x5d483a,_0x165d35){_0x5d483a=_0x5d483a-0xad;let _0x548d65=_0x326615[_0x5d483a];return _0x548d65;},_0x5d48(_0x2280ae,_0x1a351a);}import{getTranslation as _0x3e7aa3}from'./utils/common-translations.js';import{normalizeCommandsConfig as _0xc743dc}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x221c93{static get[_0x40f93b(0xc4)](){return[_0x4dd9db,_0x3c4202];}static get[_0x40f93b(0x104)](){const _0x3da3cc=_0x40f93b;return _0x3da3cc(0xe5);}static get[_0x40f93b(0xb0)](){return!0x0;}static get[_0x40f93b(0x105)](){return!0x0;}constructor(_0x411a58){const _0x6a3236=_0x40f93b;super(_0x411a58);const _0x33fd26=_0x411a58[_0x6a3236(0xd2)],_0x16c117=_0x411a58[_0x6a3236(0xe9)];_0x33fd26[_0x6a3236(0x101)](_0x6a3236(0xb7),!0x0),_0x33fd26[_0x6a3236(0x101)](_0x6a3236(0x11a),getDefaultAICommands(_0x16c117)),_0x33fd26[_0x6a3236(0x101)](_0x6a3236(0xb4),[]),_0x33fd26[_0x6a3236(0x101)](_0x6a3236(0xbf),[]);let _0x2e451f=_0xc743dc(_0x33fd26[_0x6a3236(0xcd)](_0x6a3236(0x11a)),_0x16c117);const _0x1e89c6=_0x33fd26[_0x6a3236(0xcd)](_0x6a3236(0xb4)),_0x1f50ed=_0x33fd26[_0x6a3236(0xcd)](_0x6a3236(0xbf));_0x1e89c6[_0x6a3236(0xfa)](_0x3e7c4d=>{const _0x2b79d5=_0x6a3236,_0x23e180=_0x2e451f[_0x2b79d5(0xf4)](_0x5eebac=>_0x5eebac[_0x2b79d5(0xea)]===_0x3e7c4d[_0x2b79d5(0xea)]);_0x23e180?_0x23e180[_0x2b79d5(0xb5)]=_0x23e180[_0x2b79d5(0xb5)][_0x2b79d5(0xed)](_0x3e7c4d[_0x2b79d5(0xb5)]):_0x2e451f[_0x2b79d5(0xba)](_0x3e7c4d);}),_0x2e451f=_0x2e451f[_0x6a3236(0xb2)](_0x30d10b=>!_0x1f50ed[_0x6a3236(0xe3)](_0x30d10b[_0x6a3236(0xea)])),_0x2e451f[_0x6a3236(0xfa)](_0x4be54e=>{const _0x5d0d23=_0x6a3236;_0x4be54e[_0x5d0d23(0xb5)]=_0x4be54e[_0x5d0d23(0xb5)][_0x5d0d23(0xb2)](_0x5b5ddb=>!_0x1f50ed[_0x5d0d23(0xe3)](_0x5b5ddb['id']));}),_0x33fd26[_0x6a3236(0xcb)](_0x6a3236(0x11a),_0x2e451f);}}export function getDefaultAICommands(_0xbdf171){const _0x6ab860=_0x40f93b;return[{'groupId':_0x6ab860(0x118),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0xd4)),'commands':[{'id':_0x6ab860(0xd0),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf8)),'prompt':_0x6ab860(0xc2)},{'id':_0x6ab860(0xdb),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xff)),'prompt':_0x6ab860(0x100)},{'id':_0x6ab860(0xaf),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf1)),'prompt':_0x6ab860(0xbc)},{'id':_0x6ab860(0x10a),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xca)),'prompt':_0x6ab860(0x102)}]},{'groupId':_0x6ab860(0x119),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0x10e)),'commands':[{'id':_0x6ab860(0xce),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf2)),'prompt':_0x6ab860(0xe0)},{'id':_0x6ab860(0x115),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xb6)),'prompt':_0x6ab860(0x116)}]},{'groupId':_0x6ab860(0xb9),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0x110)),'commands':[{'id':_0x6ab860(0x117),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xc1)),'prompt':_0x6ab860(0xcc)},{'id':_0x6ab860(0x111),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xb8)),'prompt':_0x6ab860(0xe6)},{'id':_0x6ab860(0x107),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xbe)),'prompt':_0x6ab860(0xd1)},{'id':_0x6ab860(0xdf),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xc3)),'prompt':_0x6ab860(0xad)},{'id':_0x6ab860(0xc6),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xd8)),'prompt':_0x6ab860(0x10c)}]},{'groupId':_0x6ab860(0xdd),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0xbb)),'commands':[{'id':_0x6ab860(0xe1),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xe8)),'prompt':_0x6ab860(0x10d)},{'id':_0x6ab860(0x106),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xee)),'prompt':_0x6ab860(0x10b)},{'id':_0x6ab860(0xef),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xe4)),'prompt':_0x6ab860(0xd6)},{'id':_0x6ab860(0xd9),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xdc)),'prompt':_0x6ab860(0x103)}]},{'groupId':_0x6ab860(0xda),'groupLabel':_0x3e7aa3(_0xbdf171,_0x6ab860(0x114)),'commands':[{'id':_0x6ab860(0xd3),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf0)),'prompt':_0x6ab860(0xe7)},{'id':_0x6ab860(0xf6),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xde)),'prompt':_0x6ab860(0xf5)},{'id':_0x6ab860(0xd5),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xfb)),'prompt':_0x6ab860(0xbd)},{'id':_0x6ab860(0x108),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xf9)),'prompt':_0x6ab860(0xb3)},{'id':_0x6ab860(0xf7),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0x10f)),'prompt':_0x6ab860(0xfe)},{'id':_0x6ab860(0x112),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0x113)),'prompt':_0x6ab860(0xcf)},{'id':_0x6ab860(0xc8),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xeb)),'prompt':_0x6ab860(0xf3)},{'id':_0x6ab860(0xe2),'label':_0x3e7aa3(_0xbdf171,_0x6ab860(0xc0)),'prompt':_0x6ab860(0xc5)}]}];}
23
+ const _0x1421fe=_0x1e9a;(function(_0x39503d,_0x4fb57e){const _0x1c9bad=_0x1e9a,_0x5d1b06=_0x39503d();while(!![]){try{const _0x5246a9=parseInt(_0x1c9bad(0x218))/0x1+parseInt(_0x1c9bad(0x20d))/0x2*(-parseInt(_0x1c9bad(0x23d))/0x3)+parseInt(_0x1c9bad(0x237))/0x4*(parseInt(_0x1c9bad(0x21a))/0x5)+parseInt(_0x1c9bad(0x20f))/0x6+-parseInt(_0x1c9bad(0x21d))/0x7*(-parseInt(_0x1c9bad(0x25f))/0x8)+parseInt(_0x1c9bad(0x231))/0x9+-parseInt(_0x1c9bad(0x238))/0xa*(parseInt(_0x1c9bad(0x1f9))/0xb);if(_0x5246a9===_0x4fb57e)break;else _0x5d1b06['push'](_0x5d1b06['shift']());}catch(_0x460ecf){_0x5d1b06['push'](_0x5d1b06['shift']());}}}(_0x29f9,0x34199));import{Plugin as _0x59a176}from'ckeditor5/src/core.js';import{AIAssistantUI as _0x5632f1}from'./aiassistantui.js';import{AIAssistantEditing as _0x202a4}from'./aiassistantediting.js';import{getTranslation as _0x2494ab}from'./utils/common-translations.js';function _0x29f9(){const _0x171382=['filter','Translate\x20the\x20content\x20to\x20English\x20language.','Professional','Improve\x20using\x20polished,\x20formal,\x20and\x20respectful\x20language\x20to\x20convey\x20professional\x20expertise\x20and\x20competence.','translateArabic','pluginName','162107YzgpNu','Edit\x20or\x20review','groupId','Spanish','improveWriting','translateHindi','summarize','translateFrench','Make\x20shorter','Journalism','Translate\x20the\x20content\x20to\x20Arabic\x20language.','French','Make\x20longer','Simplified\x20Chinese','poetic','locale','Hindi','push','Generate\x20from\x20selection','Portuguese','65246qWdgzg','changeTone','311064mqnkpR','AIAssistant','Arabic','Continue','config','Rewrite\x20this\x20content\x20as\x20a\x20journalist\x20using\x20engaging\x20language\x20to\x20convey\x20the\x20importance\x20of\x20the\x20information.','forEach','translateGerman','includes','184156BbNxRQ','makeShorter','5TJCRMQ','Legal','Summarize','315MbGjzs','ai.assistant.removeCommands','friendly','Remove\x20any\x20repetitive,\x20redundant,\x20or\x20non-essential\x20writing\x20in\x20this\x20content\x20without\x20changing\x20the\x20meaning\x20or\x20losing\x20any\x20key\x20information.','Change\x20tone','translateEnglish','Improve\x20this\x20content\x20by\x20using\x20descriptive\x20language\x20and\x20inserting\x20more\x20information\x20and\x20more\x20detailed\x20explanations.','Business','professional','Fix\x20spelling\x20mistakes,\x20use\x20proper\x20grammar\x20and\x20apply\x20good\x20writing\x20practices.\x20Do\x20not\x20lose\x20the\x20original\x20meaning.','English','get','makeLonger','Translate\x20the\x20content\x20to\x20Hindi\x20language.','Rewrite\x20this\x20content\x20as\x20a\x20business\x20professional\x20with\x20formal\x20language.','journalism','Casual','Improve\x20writing','Rewrite\x20this\x20content\x20as\x20a\x20poem\x20using\x20poetic\x20techniques\x20without\x20losing\x20the\x20original\x20meaning.','find','713745yxFmbS','Improve\x20using\x20direct\x20language,\x20using\x20only\x20the\x20essential\x20information.','Translate\x20the\x20content\x20to\x20Simplified\x20Chinese\x20language.','ai.assistant.extraCommandGroups','changeStyle','define','390392tsuBcg','40JpABeX','Translate','ai.assistant.preserveComments','Direct','Friendly','39wlzSpJ','translate','simplifyLanguage','Translate\x20the\x20content\x20to\x20French\x20language.','legal','confident','Simplify\x20the\x20writing\x20style\x20of\x20this\x20content\x20and\x20reduce\x20the\x20complexity,\x20so\x20that\x20the\x20content\x20is\x20easy\x20to\x20understand.','direct','set','editOrReview','Start\x20with\x20the\x20provided\x20content\x20and\x20write\x20at\x20the\x20end\x20of\x20it\x20continuing\x20this\x20topic.\x20Keep\x20the\x20added\x20part\x20short.','Summarize\x20this\x20content\x20into\x20one\x20paragraph\x20of\x20text.\x20Include\x20only\x20the\x20key\x20ideas\x20and\x20conclusions.\x20Keep\x20it\x20short.\x20Do\x20not\x20keep\x20original\x20text\x20formatting.','Confident','isOfficialPlugin','requires','generate','Improve\x20using\x20friendly,\x20comforting\x20language,\x20to\x20convey\x20understanding\x20and\x20empathy.','ai.assistant.commands','German','concat','isPremiumPlugin','commands','continue','Simplify\x20language','Improve\x20using\x20compelling,\x20optimistic\x20language\x20to\x20convey\x20confidence\x20in\x20the\x20writing.','Translate\x20the\x20content\x20to\x20Portuguese\x20language.','Poetic','Rewrite\x20this\x20content\x20as\x20a\x20legal\x20professional\x20using\x20valid\x20legal\x20terminology.','translateChinese','casual','translateSpanish','Translate\x20the\x20content\x20to\x20German\x20language.','Translate\x20the\x20content\x20to\x20Spanish\x20language.','business','50408yigaTd','translatePortuguese','Improve\x20using\x20casual,\x20informal\x20language\x20to\x20convey\x20a\x20casual\x20conversation\x20with\x20a\x20real\x20person.','Change\x20style'];_0x29f9=function(){return _0x171382;};return _0x29f9();}function _0x1e9a(_0x303255,_0x3bdbcb){const _0x29f901=_0x29f9();return _0x1e9a=function(_0x1e9a01,_0x52d8c1){_0x1e9a01=_0x1e9a01-0x1f3;let _0x1fda40=_0x29f901[_0x1e9a01];return _0x1fda40;},_0x1e9a(_0x303255,_0x3bdbcb);}import{normalizeCommandsConfig as _0x3e9c9f}from'./utils/normalizecommandsconfig.js';export class AIAssistant extends _0x59a176{static get[_0x1421fe(0x24b)](){return[_0x5632f1,_0x202a4];}static get[_0x1421fe(0x1f8)](){const _0x3fbf33=_0x1421fe;return _0x3fbf33(0x210);}static get[_0x1421fe(0x24a)](){return!0x0;}static get[_0x1421fe(0x251)](){return!0x0;}constructor(_0x46a1a5){const _0x19ee70=_0x1421fe;super(_0x46a1a5);const _0x18df9d=_0x46a1a5[_0x19ee70(0x213)],_0x567aad=_0x46a1a5[_0x19ee70(0x208)];_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x23a),!0x0),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x24e),getDefaultAICommands(_0x567aad)),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x234),[]),_0x18df9d[_0x19ee70(0x236)](_0x19ee70(0x21e),[]);let _0x57601f=_0x3e9c9f(_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x24e)),_0x567aad);const _0x1cab79=_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x234)),_0x409827=_0x18df9d[_0x19ee70(0x228)](_0x19ee70(0x21e));_0x1cab79[_0x19ee70(0x215)](_0x5bef06=>{const _0x766c6f=_0x19ee70,_0x5b0cde=_0x57601f[_0x766c6f(0x230)](_0x28eb47=>_0x28eb47[_0x766c6f(0x1fb)]===_0x5bef06[_0x766c6f(0x1fb)]);_0x5b0cde?_0x5b0cde[_0x766c6f(0x252)]=_0x5b0cde[_0x766c6f(0x252)][_0x766c6f(0x250)](_0x5bef06[_0x766c6f(0x252)]):_0x57601f[_0x766c6f(0x20a)](_0x5bef06);}),_0x57601f=_0x57601f[_0x19ee70(0x1f3)](_0x3073b5=>!_0x409827[_0x19ee70(0x217)](_0x3073b5[_0x19ee70(0x1fb)])),_0x57601f[_0x19ee70(0x215)](_0x1e1c0d=>{const _0x374295=_0x19ee70;_0x1e1c0d[_0x374295(0x252)]=_0x1e1c0d[_0x374295(0x252)][_0x374295(0x1f3)](_0x3556f1=>!_0x409827[_0x374295(0x217)](_0x3556f1['id']));}),_0x18df9d[_0x19ee70(0x245)](_0x19ee70(0x24e),_0x57601f);}}export function getDefaultAICommands(_0x37066b){const _0x4cdc37=_0x1421fe;return[{'groupId':_0x4cdc37(0x246),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x1fa)),'commands':[{'id':_0x4cdc37(0x1fd),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x22e)),'prompt':_0x4cdc37(0x226)},{'id':_0x4cdc37(0x219),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x201)),'prompt':_0x4cdc37(0x220)},{'id':_0x4cdc37(0x229),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x205)),'prompt':_0x4cdc37(0x223)},{'id':_0x4cdc37(0x23f),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x254)),'prompt':_0x4cdc37(0x243)}]},{'groupId':_0x4cdc37(0x24c),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x20b)),'commands':[{'id':_0x4cdc37(0x1ff),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x21c)),'prompt':_0x4cdc37(0x248)},{'id':_0x4cdc37(0x253),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x212)),'prompt':_0x4cdc37(0x247)}]},{'groupId':_0x4cdc37(0x20e),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x221)),'commands':[{'id':_0x4cdc37(0x225),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x1f5)),'prompt':_0x4cdc37(0x1f6)},{'id':_0x4cdc37(0x25a),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x22d)),'prompt':_0x4cdc37(0x261)},{'id':_0x4cdc37(0x244),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x23b)),'prompt':_0x4cdc37(0x232)},{'id':_0x4cdc37(0x242),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x249)),'prompt':_0x4cdc37(0x255)},{'id':_0x4cdc37(0x21f),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x23c)),'prompt':_0x4cdc37(0x24d)}]},{'groupId':_0x4cdc37(0x235),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x262)),'commands':[{'id':_0x4cdc37(0x25e),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x224)),'prompt':_0x4cdc37(0x22b)},{'id':_0x4cdc37(0x241),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x21b)),'prompt':_0x4cdc37(0x258)},{'id':_0x4cdc37(0x22c),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x202)),'prompt':_0x4cdc37(0x214)},{'id':_0x4cdc37(0x207),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x257)),'prompt':_0x4cdc37(0x22f)}]},{'groupId':_0x4cdc37(0x23e),'groupLabel':_0x2494ab(_0x37066b,_0x4cdc37(0x239)),'commands':[{'id':_0x4cdc37(0x222),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x227)),'prompt':_0x4cdc37(0x1f4)},{'id':_0x4cdc37(0x25b),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x1fc)),'prompt':_0x4cdc37(0x25d)},{'id':_0x4cdc37(0x260),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x20c)),'prompt':_0x4cdc37(0x256)},{'id':_0x4cdc37(0x216),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x24f)),'prompt':_0x4cdc37(0x25c)},{'id':_0x4cdc37(0x200),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x204)),'prompt':_0x4cdc37(0x240)},{'id':_0x4cdc37(0x259),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x206)),'prompt':_0x4cdc37(0x233)},{'id':_0x4cdc37(0x1fe),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x209)),'prompt':_0x4cdc37(0x22a)},{'id':_0x4cdc37(0x1f7),'label':_0x2494ab(_0x37066b,_0x4cdc37(0x211)),'prompt':_0x4cdc37(0x203)}]}];}