@ckeditor/ckeditor5-ai 47.7.3-alpha.0 → 47.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +16 -16
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoonview.js +1 -1
  175. package/src/aichat/aichat.js +1 -1
  176. package/src/aichat/aichatballoon.js +1 -1
  177. package/src/aichat/aichatcontroller.js +1 -1
  178. package/src/aichat/aichatui.js +1 -1
  179. package/src/aichat/model/aichatcontext.d.ts +21 -14
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/ui/aichatballoonview.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  210. package/src/aichat/utils/eventnames.js +1 -1
  211. package/src/aichat/utils/promisequeue.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  222. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  223. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  224. package/src/aicore/aiconnector.js +1 -1
  225. package/src/aicore/aiediting.js +1 -1
  226. package/src/aicore/model/aicapabilities.js +1 -1
  227. package/src/aicore/model/aicontext.js +1 -1
  228. package/src/aicore/model/aiinteraction.js +1 -1
  229. package/src/aicore/model/aimodels.js +1 -1
  230. package/src/aicore/model/aireply.js +1 -1
  231. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  232. package/src/aicore/pipeline/airesponseparser.js +2 -2
  233. package/src/aicore/ui/aidisclaimerview.js +1 -1
  234. package/src/aicore/ui/aiskeleton.js +1 -1
  235. package/src/aicore/ui/aispinner.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  238. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  247. package/src/aicore/utils/common-translations.js +1 -1
  248. package/src/aicore/utils/createresizebutton.js +1 -1
  249. package/src/aicore/utils/documentposition.js +1 -1
  250. package/src/aicore/utils/documentrange.js +1 -1
  251. package/src/aicore/utils/eventnames.js +1 -1
  252. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  253. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  254. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  255. package/src/aicore/utils/htmlparser.js +1 -1
  256. package/src/aicore/utils/htmlstreamer.js +1 -1
  257. package/src/aicore/utils/scrollmanager.js +1 -1
  258. package/src/aieditorintegration/aieditorintegration.js +1 -1
  259. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  260. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  261. package/src/aiquickactions/aiquickactions.js +1 -1
  262. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  263. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  264. package/src/aiquickactions/aiquickactionsui.js +1 -1
  265. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  266. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  267. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  269. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  270. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  271. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  272. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  273. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  274. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  275. package/src/aireviewcore/aireviewcoreui.js +1 -1
  276. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  277. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  278. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  280. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  281. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  282. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  283. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  284. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  293. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  294. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  295. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  296. package/src/aireviewmode/aireviewmode.js +1 -1
  297. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  298. package/src/aireviewmode/aireviewmodeui.js +1 -1
  299. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  300. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  301. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  302. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  303. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  304. package/src/aitabs/aitabs.js +1 -1
  305. package/src/aitabs/aitabsmainview.js +1 -1
  306. package/src/aitabs/tabs/aitabsview.js +1 -1
  307. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  308. package/src/aitabs/tabs/tabpanelview.js +1 -1
  309. package/src/aitranslate/aitranslate.js +1 -1
  310. package/src/aitranslate/aitranslatecontroller.js +1 -1
  311. package/src/aitranslate/aitranslateui.js +1 -1
  312. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  313. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  314. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  315. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  316. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  317. package/src/errors.js +1 -1
  318. package/src/errorsmap.js +1 -1
  319. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51a979=_0x5934;(function(_0x367b70,_0x159439){const _0xb1da4c=_0x5934,_0x156643=_0x367b70();while(!![]){try{const _0x3e7a72=-parseInt(_0xb1da4c(0x1b1))/0x1+-parseInt(_0xb1da4c(0x1e8))/0x2+-parseInt(_0xb1da4c(0x1b4))/0x3*(-parseInt(_0xb1da4c(0x1cc))/0x4)+parseInt(_0xb1da4c(0x1ed))/0x5*(parseInt(_0xb1da4c(0x18e))/0x6)+parseInt(_0xb1da4c(0x1c1))/0x7*(-parseInt(_0xb1da4c(0x1a8))/0x8)+-parseInt(_0xb1da4c(0x1f6))/0x9*(-parseInt(_0xb1da4c(0x18a))/0xa)+parseInt(_0xb1da4c(0x19d))/0xb;if(_0x3e7a72===_0x159439)break;else _0x156643['push'](_0x156643['shift']());}catch(_0x3b9ae1){_0x156643['push'](_0x156643['shift']());}}}(_0x15ee,0xe18be));import{createParser as _0x1dad0c}from'eventsource-parser';import{ContextPlugin as _0x18a2c8}from'ckeditor5/src/core.js';function _0x5934(_0x2d1dff,_0x3b646a){const _0x15eef9=_0x15ee();return _0x5934=function(_0x59342c,_0x5d4e19){_0x59342c=_0x59342c-0x161;let _0x3e9dfa=_0x15eef9[_0x59342c];return _0x3e9dfa;},_0x5934(_0x2d1dff,_0x3b646a);}import{CKEditorError as _0x6236a7}from'ckeditor5/src/utils.js';export var AIActionsNames;function _0x15ee(){const _0x216b9e=['upsertCustomAIReviewRating','1023711wZYyAW','/ratings','stringify','1254xxroET','_getStreamReader','/messages','toString','requires','/messages/','context','executeAction','language','executeCustomAction','positiveCount','limit','length','4963PFDGTc','getReader','items','/reviews/custom/calls/','startConversation','deleteWebResource','order','/models/1?','define','status','_token','6992HGmhXl','abortController','PATCH','upsertAIChatRating','ai.serviceUrl','https://ai.cke-cs.com/v1','deleteConversation','_apiUrl','excludeEmpty','/documents/','isPremiumPlugin','_handleError','then','modificationId','data','Bearer\x20','createdAt','/conversations/','CloudServices','upsertCustomAIActionRating','PUT','releaseLock','DELETE','fix-grammar','deleteFile','/actions/custom/calls','MAKE_SHORTER','improve-writing','3332182vwTQbl','updateConversation','GET','upsertAIReviewRating','catch','2392585YuVTbf','sortBy','/documents','desc','push','decode','_decoder','signal','totalCount','23175MdjEDC','100','MAKE_TONE_FORMAL','request','/web-resources','/reviews/custom/calls','fetchConversations','/actions/system/','TRANSLATE','fetchConversationMessages','true','value','parse','pluginName','FIX_GRAMMAR','application/json','group','upsertAIActionRating','message','append','/calls','_sendApiRequest','reset','plugins','/calls/','CONTINUE','body','translate','text','ai-request-aborted','/conversations?','traceId','name','callSystemReview','ai-missing-token','/reviews/system/','make-tone-formal','statusText','fetchConversation','init','AIConnector','deleteDocument','3850ZfyYom','code','false','get','6vLLySB','AbortError','make-shorter','token','callCustomReview','/web-resources/','Content-Type','uploadUrl','make-tone-casual','continue','read','MAKE_LONGER','/files','fetchDocument','config','29823893qSuNOA','/files/','isOfficialPlugin','queryAssistant','feed','getModels','ai-request-failed','uploadDocument','uploadFile','make-longer','IMPROVE_WRITING','14648YVRjhW','/conversations','/actions/custom/calls/','attributes','json','MAKE_TONE_CASUAL','POST','file'];_0x15ee=function(){return _0x216b9e;};return _0x15ee();}!function(_0xe9e7c8){const _0x21e836=_0x5934;_0xe9e7c8[_0x21e836(0x179)]=_0x21e836(0x197),_0xe9e7c8[_0x21e836(0x16e)]=_0x21e836(0x1e3),_0xe9e7c8[_0x21e836(0x1a7)]=_0x21e836(0x1e7),_0xe9e7c8[_0x21e836(0x199)]=_0x21e836(0x1a6),_0xe9e7c8[_0x21e836(0x1e6)]=_0x21e836(0x190),_0xe9e7c8[_0x21e836(0x1ad)]=_0x21e836(0x196),_0xe9e7c8[_0x21e836(0x162)]=_0x21e836(0x184),_0xe9e7c8[_0x21e836(0x168)]=_0x21e836(0x17b);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x18a2c8{[_0x51a979(0x1d3)];[_0x51a979(0x1cb)];[_0x51a979(0x1f3)];static get[_0x51a979(0x1b8)](){const _0x169dcc=_0x51a979;return[_0x169dcc(0x1de)];}static get[_0x51a979(0x16d)](){const _0x14b70b=_0x51a979;return _0x14b70b(0x188);}static get[_0x51a979(0x19f)](){return!0x0;}static get[_0x51a979(0x1d6)](){return!0x0;}constructor(_0x1e15f3){const _0x5b12f0=_0x51a979;super(_0x1e15f3),this[_0x5b12f0(0x1ba)][_0x5b12f0(0x19c)][_0x5b12f0(0x1c9)](_0x5b12f0(0x1d0),_0x5b12f0(0x1d1)),this[_0x5b12f0(0x1d3)]=this[_0x5b12f0(0x1ba)][_0x5b12f0(0x19c)][_0x5b12f0(0x18d)](_0x5b12f0(0x1d0)),this[_0x5b12f0(0x1cb)]=null,this[_0x5b12f0(0x1f3)]=new TextDecoder();}[_0x51a979(0x187)](){const _0x17fd89=_0x51a979,_0x24aea6=this[_0x17fd89(0x1ba)][_0x17fd89(0x177)][_0x17fd89(0x18d)](_0x17fd89(0x1de));if(!_0x24aea6[_0x17fd89(0x191)])throw new _0x6236a7(_0x17fd89(0x182),this);this[_0x17fd89(0x1cb)]=_0x24aea6[_0x17fd89(0x191)];}[_0x51a979(0x1c5)](_0x3054c4,_0x4ca337){const _0x30768b=_0x51a979,_0x131f13=this[_0x30768b(0x175)](_0x30768b(0x1a9),_0x30768b(0x1ae),{'id':_0x3054c4,'group':_0x4ca337});return{'getConversation':async()=>(await _0x131f13[_0x30768b(0x163)])[_0x30768b(0x1ac)](),'abortController':_0x131f13[_0x30768b(0x1cd)]};}[_0x51a979(0x1a0)]({message:_0xb1f742,conversationId:_0x4d177c,parts:_0x5f0d41,capabilities:_0x416ab8,model:_0xebc027,attributes:_0x5d066f}){const _0x5d92b1=_0x51a979,_0x373407={'prompt':_0xb1f742,'content':_0x5f0d41,'model':_0xebc027,..._0x416ab8&&{'capabilities':_0x416ab8},..._0x5d066f&&{'attributes':_0x5d066f}},_0x1d97e3=this[_0x5d92b1(0x175)](_0x5d92b1(0x1dd)+_0x4d177c+_0x5d92b1(0x1b6),_0x5d92b1(0x1ae),_0x373407);return{'getStream':async()=>{const _0xee9b2a=_0x5d92b1,_0x2905cf=(await _0x1d97e3[_0xee9b2a(0x163)])[_0xee9b2a(0x17a)];return this[_0xee9b2a(0x1b5)](_0x2905cf);},'abortController':_0x1d97e3[_0x5d92b1(0x1cd)]};}[_0x51a979(0x1bd)]({content:_0x184cab,message:_0x15f148,model:_0x4304f8,outputFormat:_0x5daf9c}){const _0x1706d2=_0x51a979,_0x2363c9={'content':[{'type':_0x1706d2(0x17c),'content':_0x184cab}],'prompt':_0x15f148,'model':_0x4304f8,'outputFormat':_0x5daf9c},_0x23f82c=this[_0x1706d2(0x175)](_0x1706d2(0x1e5),_0x1706d2(0x1ae),_0x2363c9);return{'getStream':async()=>{const _0x1385ec=_0x1706d2,_0x517d07=(await _0x23f82c[_0x1385ec(0x163)])[_0x1385ec(0x17a)];return this[_0x1385ec(0x1b5)](_0x517d07);},'abortController':_0x23f82c[_0x1706d2(0x1cd)]};}[_0x51a979(0x1bb)]({actionName:_0x553bb3,content:_0x473237,args:_0x1e1243}){const _0x3bdd89=_0x51a979,_0x1200f6={'content':[{'type':_0x3bdd89(0x17c),'content':_0x473237}],'args':_0x1e1243},_0x1a64d9=this[_0x3bdd89(0x175)](_0x3bdd89(0x167)+_0x553bb3+_0x3bdd89(0x174),_0x3bdd89(0x1ae),_0x1200f6);return{'getStream':async()=>{const _0x4e70c8=_0x3bdd89,_0xf3c548=(await _0x1a64d9[_0x4e70c8(0x163)])[_0x4e70c8(0x17a)];return this[_0x4e70c8(0x1b5)](_0xf3c548);},'abortController':_0x1a64d9[_0x3bdd89(0x1cd)]};}[_0x51a979(0x1a5)](_0x10adb1,_0x24fe6d,_0x393f75){const _0x16483e=_0x51a979,_0x3c3c72=new FormData();_0x3c3c72[_0x16483e(0x173)](_0x16483e(0x1af),_0x24fe6d,_0x24fe6d[_0x16483e(0x180)]),_0x393f75&&_0x3c3c72[_0x16483e(0x173)](_0x16483e(0x1ab),JSON[_0x16483e(0x1b3)](_0x393f75));const _0x238460=this[_0x16483e(0x175)](_0x16483e(0x1dd)+_0x10adb1+_0x16483e(0x19a),_0x16483e(0x1ae),_0x3c3c72);return{'getId':async()=>(await _0x238460[_0x16483e(0x163)])[_0x16483e(0x1ac)](),'abortController':_0x238460[_0x16483e(0x1cd)]};}[_0x51a979(0x19b)](_0x2e04b8,_0x40d54d){const _0x3a3d8f=_0x51a979,_0xb7feb4=this[_0x3a3d8f(0x175)](_0x3a3d8f(0x1dd)+_0x2e04b8+_0x3a3d8f(0x1d5)+_0x40d54d,_0x3a3d8f(0x1ea));return{'getDocument':async()=>(await _0xb7feb4[_0x3a3d8f(0x163)])[_0x3a3d8f(0x1ac)](),'abortController':_0xb7feb4[_0x3a3d8f(0x1cd)]};}[_0x51a979(0x1a4)](_0x1c455e,_0x360c77,_0x11d58a){const _0x414791=_0x51a979,_0x57db76={'content':_0x360c77};_0x11d58a&&(_0x57db76[_0x414791(0x1ab)]=_0x11d58a);const _0x309bff=this[_0x414791(0x175)](_0x414791(0x1dd)+_0x1c455e+_0x414791(0x1ef),_0x414791(0x1ae),_0x57db76);return{'getId':async()=>(await _0x309bff[_0x414791(0x163)])[_0x414791(0x1ac)](),'abortController':_0x309bff[_0x414791(0x1cd)]};}[_0x51a979(0x166)](_0x322457,_0x36de7a={}){const _0xebd046=_0x51a979,_0x37eec6=new URLSearchParams();_0x37eec6[_0xebd046(0x173)](_0xebd046(0x170),_0x322457),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1d4),!0x1!==_0x36de7a[_0xebd046(0x1d4)]?_0xebd046(0x16a):_0xebd046(0x18c)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1bf),_0x36de7a[_0xebd046(0x1bf)]?_0x36de7a[_0xebd046(0x1bf)][_0xebd046(0x1b7)]():_0xebd046(0x161)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1ee),_0x36de7a[_0xebd046(0x1ee)]?_0x36de7a[_0xebd046(0x1ee)]:_0xebd046(0x1dc)),_0x37eec6[_0xebd046(0x173)](_0xebd046(0x1c7),_0x36de7a[_0xebd046(0x1c7)]?_0x36de7a[_0xebd046(0x1c7)]:_0xebd046(0x1f0));const _0x21c34d=this[_0xebd046(0x175)](_0xebd046(0x17e)+_0x37eec6[_0xebd046(0x1b7)](),_0xebd046(0x1ea));return{'getConversations':async()=>{const _0x25a7d5=_0xebd046,_0xcffb30=await _0x21c34d[_0x25a7d5(0x163)];return(await _0xcffb30[_0x25a7d5(0x1ac)]())[_0x25a7d5(0x1c3)];},'abortController':_0x21c34d[_0xebd046(0x1cd)]};}[_0x51a979(0x1d2)](_0x34ec75){const _0x230f80=_0x51a979,_0x38f15e=this[_0x230f80(0x175)](_0x230f80(0x1dd)+_0x34ec75,_0x230f80(0x1e2));return{'execute':async()=>{const _0x483b8c=_0x230f80;await _0x38f15e[_0x483b8c(0x163)];},'abortController':_0x38f15e[_0x230f80(0x1cd)]};}[_0x51a979(0x1e9)](_0x5171e4,_0x40e02a){const _0x12cc88=_0x51a979,_0x2f79e4=this[_0x12cc88(0x175)](_0x12cc88(0x1dd)+_0x5171e4,_0x12cc88(0x1ce),_0x40e02a);return{'getResult':async()=>(await _0x2f79e4[_0x12cc88(0x163)],_0x40e02a),'abortController':_0x2f79e4[_0x12cc88(0x1cd)]};}[_0x51a979(0x186)](_0x230bfa){const _0xbbcd55=_0x51a979,_0x571848=this[_0xbbcd55(0x175)](_0xbbcd55(0x1dd)+_0x230bfa,_0xbbcd55(0x1ea));return{'getConversation':async()=>(await _0x571848[_0xbbcd55(0x163)])[_0xbbcd55(0x1ac)](),'abortController':_0x571848[_0xbbcd55(0x1cd)]};}[_0x51a979(0x169)](_0x16385e){const _0x4b2230=_0x51a979,_0x19f277=this[_0x4b2230(0x175)](_0x4b2230(0x1dd)+_0x16385e+_0x4b2230(0x1b6),_0x4b2230(0x1ea));return{'getMessages':async()=>{const _0x37a0af=_0x4b2230,_0x2e1483=await _0x19f277[_0x37a0af(0x163)];return(await _0x2e1483[_0x37a0af(0x1ac)]())[_0x37a0af(0x1c3)];},'abortController':_0x19f277[_0x4b2230(0x1cd)]};}[_0x51a979(0x195)](_0x4bf794,_0x2a9206,_0x152465){const _0x56fe4f=_0x51a979,_0x8ad5df=this[_0x56fe4f(0x175)](_0x56fe4f(0x1dd)+_0x4bf794+_0x56fe4f(0x164),_0x56fe4f(0x1ae),{'url':_0x2a9206,'attributes':_0x152465});return{'getId':async()=>(await _0x8ad5df[_0x56fe4f(0x163)])[_0x56fe4f(0x1ac)](),'abortController':_0x8ad5df[_0x56fe4f(0x1cd)]};}[_0x51a979(0x1a2)](_0x2f8ec1='en'){const _0x5a184d=_0x51a979,_0x1008fb=new URLSearchParams();_0x1008fb[_0x5a184d(0x173)](_0x5a184d(0x1bc),_0x2f8ec1);const _0x414fc2=_0x5a184d(0x1c8)+_0x1008fb[_0x5a184d(0x1b7)](),_0x23bb57=this[_0x5a184d(0x175)](_0x414fc2,_0x5a184d(0x1ea));return{'list':async()=>await(await _0x23bb57[_0x5a184d(0x163)])[_0x5a184d(0x1ac)](),'abortController':_0x23bb57[_0x5a184d(0x1cd)]};}[_0x51a979(0x1e4)](_0x1518ca,_0x1f4cdc){const _0x1e0d78=_0x51a979,_0x3b6da3=this[_0x1e0d78(0x175)](_0x1e0d78(0x1dd)+_0x1518ca+_0x1e0d78(0x19e)+_0x1f4cdc,_0x1e0d78(0x1e2));return{'execute':async()=>{const _0x5bf3f5=_0x1e0d78;await _0x3b6da3[_0x5bf3f5(0x163)];},'abortController':_0x3b6da3[_0x1e0d78(0x1cd)]};}[_0x51a979(0x189)](_0x44f461,_0x3ca203){const _0x184450=_0x51a979,_0x1fedbd=this[_0x184450(0x175)](_0x184450(0x1dd)+_0x44f461+_0x184450(0x1d5)+_0x3ca203,_0x184450(0x1e2));return{'execute':async()=>{const _0x40f819=_0x184450;await _0x1fedbd[_0x40f819(0x163)];},'abortController':_0x1fedbd[_0x184450(0x1cd)]};}[_0x51a979(0x1c6)](_0x57fcf7,_0x286fc0){const _0x1a1dd5=_0x51a979,_0x3c9793=this[_0x1a1dd5(0x175)](_0x1a1dd5(0x1dd)+_0x57fcf7+_0x1a1dd5(0x193)+_0x286fc0,_0x1a1dd5(0x1e2));return{'execute':async()=>{const _0x48527d=_0x1a1dd5;await _0x3c9793[_0x48527d(0x163)];},'abortController':_0x3c9793[_0x1a1dd5(0x1cd)]};}[_0x51a979(0x181)]({reviewName:_0x2272bc,content:_0x2eb7eb,args:_0x4fa216}){const _0xa0a48a=_0x51a979,_0x374c8e=this[_0xa0a48a(0x175)](_0xa0a48a(0x183)+_0x2272bc+_0xa0a48a(0x174),_0xa0a48a(0x1ae),{'content':[{'type':_0xa0a48a(0x17c),'content':_0x2eb7eb}],'args':_0x4fa216});return{'getStream':async()=>{const _0x2ed169=_0xa0a48a,_0x592a6d=(await _0x374c8e[_0x2ed169(0x163)])[_0x2ed169(0x17a)];return this[_0x2ed169(0x1b5)](_0x592a6d);},'abortController':_0x374c8e[_0xa0a48a(0x1cd)]};}[_0x51a979(0x192)]({content:_0xadd4ad,prompt:_0x5b2aaf,model:_0x55f94a}){const _0x3b50c2=_0x51a979,_0x42e4fc=this[_0x3b50c2(0x175)](_0x3b50c2(0x165),_0x3b50c2(0x1ae),{'content':[{'type':_0x3b50c2(0x17c),'content':_0xadd4ad}],'prompt':_0x5b2aaf,'model':_0x55f94a});return{'getStream':async()=>{const _0x1f498a=_0x3b50c2,_0x506692=(await _0x42e4fc[_0x1f498a(0x163)])[_0x1f498a(0x17a)];return this[_0x1f498a(0x1b5)](_0x506692);},'abortController':_0x42e4fc[_0x3b50c2(0x1cd)]};}[_0x51a979(0x1cf)](_0x1f6428,_0xc9d82,_0x4dd759){const _0x4f6dbd=_0x51a979,_0x3b0746=this[_0x4f6dbd(0x175)](_0x4f6dbd(0x1dd)+_0x1f6428+_0x4f6dbd(0x1b9)+_0xc9d82+_0x4f6dbd(0x1b2),_0x4f6dbd(0x1e0),{'positiveCount':_0x4dd759[_0x4f6dbd(0x1be)],'totalCount':_0x4dd759[_0x4f6dbd(0x1f5)],'modificationId':_0x4dd759[_0x4f6dbd(0x1d9)]});return{'execute':async()=>{const _0x478fe2=_0x4f6dbd;await _0x3b0746[_0x478fe2(0x163)];},'abortController':_0x3b0746[_0x4f6dbd(0x1cd)]};}[_0x51a979(0x171)](_0x356e66,_0x35c621,_0x4a211b){const _0x7361a9=_0x51a979,_0x5eb86c=this[_0x7361a9(0x175)](_0x7361a9(0x167)+_0x356e66+_0x7361a9(0x178)+_0x35c621+_0x7361a9(0x1b2),_0x7361a9(0x1e0),{'positiveCount':_0x4a211b[_0x7361a9(0x1be)],'totalCount':_0x4a211b[_0x7361a9(0x1f5)]});return{'execute':async()=>{const _0x43986f=_0x7361a9;await _0x5eb86c[_0x43986f(0x163)];},'abortController':_0x5eb86c[_0x7361a9(0x1cd)]};}[_0x51a979(0x1df)](_0xa9ebbb,_0x2a59d2){const _0x55714a=_0x51a979,_0x1ea496=this[_0x55714a(0x175)](_0x55714a(0x1aa)+_0xa9ebbb+_0x55714a(0x1b2),_0x55714a(0x1e0),{'positiveCount':_0x2a59d2[_0x55714a(0x1be)],'totalCount':_0x2a59d2[_0x55714a(0x1f5)]});return{'execute':async()=>{const _0x21e929=_0x55714a;await _0x1ea496[_0x21e929(0x163)];},'abortController':_0x1ea496[_0x55714a(0x1cd)]};}[_0x51a979(0x1eb)](_0x5570b,_0x4a9213,_0x1ea9c5,_0x4ec3a2){const _0x57eaa5=_0x51a979,_0x13e086=this[_0x57eaa5(0x175)](_0x57eaa5(0x183)+_0x5570b+_0x57eaa5(0x178)+_0x4a9213+_0x57eaa5(0x1b2),_0x57eaa5(0x1e0),{'positiveCount':_0x1ea9c5[_0x57eaa5(0x1be)],'totalCount':_0x1ea9c5[_0x57eaa5(0x1f5)],'dataId':_0x4ec3a2});return{'execute':async()=>{const _0x3682c4=_0x57eaa5;await _0x13e086[_0x3682c4(0x163)];},'abortController':_0x13e086[_0x57eaa5(0x1cd)]};}[_0x51a979(0x1b0)](_0x4462d1,_0x3621b3,_0x11158b){const _0x3a15c=_0x51a979,_0x57d7ae=this[_0x3a15c(0x175)](_0x3a15c(0x1c4)+_0x4462d1+_0x3a15c(0x1b2),_0x3a15c(0x1e0),{'positiveCount':_0x3621b3[_0x3a15c(0x1be)],'totalCount':_0x3621b3[_0x3a15c(0x1f5)],'dataId':_0x11158b});return{'execute':async()=>{const _0x1e8a9f=_0x3a15c;await _0x57d7ae[_0x1e8a9f(0x163)];},'abortController':_0x57d7ae[_0x3a15c(0x1cd)]};}[_0x51a979(0x175)](_0x10a02e,_0x59a290,_0xc61fc6){const _0x1ed729=_0x51a979,_0x133428=new AbortController(),_0x13d4e5=_0xc61fc6 instanceof FormData,_0x172061={'Authorization':_0x1ed729(0x1db)+this[_0x1ed729(0x1cb)]?.[_0x1ed729(0x16b)]};_0xc61fc6&&!_0x13d4e5&&(_0x172061[_0x1ed729(0x194)]=_0x1ed729(0x16f));const _0x75aabc={'method':_0x59a290,'headers':_0x172061,'signal':_0x133428[_0x1ed729(0x1f4)]};return _0xc61fc6&&(_0x75aabc[_0x1ed729(0x17a)]=_0x13d4e5?_0xc61fc6:JSON[_0x1ed729(0x1b3)](_0xc61fc6)),{'request':fetch(''+this[_0x1ed729(0x1d3)]+_0x10a02e,_0x75aabc)[_0x1ed729(0x1ec)](_0x4954ed=>{const _0x3cff37=_0x1ed729;this[_0x3cff37(0x1d7)](_0x4954ed);})[_0x1ed729(0x1d8)](_0x298334=>_0x298334['ok']?_0x298334:_0x298334[_0x1ed729(0x1ac)]()[_0x1ed729(0x1d8)](_0x3b5a5b=>{const _0x5a5dcd=_0x1ed729;throw{'url':this[_0x5a5dcd(0x1d3)],'path':_0x10a02e,'method':_0x59a290,'body':_0xc61fc6,'status':(_0x298334||{})[_0x5a5dcd(0x1ca)],'statusText':(_0x298334||{})[_0x5a5dcd(0x185)],'code':_0x3b5a5b[_0x5a5dcd(0x18b)],'message':_0x3b5a5b[_0x5a5dcd(0x172)],'traceId':_0x3b5a5b[_0x5a5dcd(0x17f)]};})),'abortController':_0x133428};}async*[_0x51a979(0x1b5)](_0x5da348){const _0x2c6c41=_0x51a979,_0x3af080=[],_0x1ed799=_0x5da348[_0x2c6c41(0x1c2)](),_0x23fe86=_0x1dad0c({'onError':_0x24c3a5=>{const _0x50feea=_0x2c6c41;this[_0x50feea(0x1d7)](_0x24c3a5);},'onEvent':_0x5eebcb=>{const _0x3c3ed6=_0x2c6c41;_0x5eebcb[_0x3c3ed6(0x1da)]=JSON[_0x3c3ed6(0x16c)](_0x5eebcb[_0x3c3ed6(0x1da)]),_0x3af080[_0x3c3ed6(0x1f1)](_0x5eebcb);}});try{let _0x2658bc=!0x1;for(;!_0x2658bc;){const {done:_0x23912a,value:_0xfc45f7}=await _0x1ed799[_0x2c6c41(0x198)]();_0x23912a&&(_0x2658bc=!0x0),_0x23fe86[_0x2c6c41(0x1a1)](this[_0x2c6c41(0x1f3)][_0x2c6c41(0x1f2)](_0xfc45f7,{'stream':!0x0})),yield*_0x3af080,_0x3af080[_0x2c6c41(0x1c0)]=0x0;}}catch(_0x1ec7f7){this[_0x2c6c41(0x1d7)](_0x1ec7f7);}finally{_0x1ed799[_0x2c6c41(0x1e1)](),_0x23fe86[_0x2c6c41(0x176)]();}}[_0x51a979(0x1d7)](_0x49c020){const _0x2ceaef=_0x51a979;if(_0x49c020 instanceof _0x6236a7)throw _0x49c020;if(_0x49c020 instanceof Error&&_0x2ceaef(0x18f)===_0x49c020[_0x2ceaef(0x180)])throw new _0x6236a7(_0x2ceaef(0x17d),this,{'originalError':_0x49c020});throw new _0x6236a7(_0x2ceaef(0x1a3),this,{'originalError':_0x49c020});}}
23
+ function _0x17ed(){const _0x488a98=['2691543aMVzHW','message','uploadFile','upsertAIChatRating','stringify','getModels','/calls/','/reviews/custom/calls','translate','/conversations/','upsertCustomAIReviewRating','Content-Type','AbortError','/files/','code','make-longer','ai-request-failed','body','POST','parse','callSystemReview','group','4034560JasABJ','1695076cfNyUe','decode','name','deleteWebResource','fetchConversations','/models/1?','positiveCount','config','token','10szhXcj','upsertAIActionRating','statusText','_decoder','get','modificationId','continue','/files','requires','CloudServices','desc','isOfficialPlugin','ai-request-aborted','/web-resources','deleteFile','fix-grammar','toString','ai.serviceUrl','length','AIConnector','/ratings','context','/documents/','/reviews/system/','ai-missing-token','sortBy','catch','push','PUT','2305830wZvBaI','DELETE','init','/web-resources/','7829776FxNETV','application/json','/calls','true','releaseLock','abortController','read','https://ai.cke-cs.com/v1','_apiUrl','totalCount','value','executeCustomAction','TRANSLATE','upsertAIReviewRating','request','limit','items','attributes','createdAt','fetchDocument','/actions/system/','status','plugins','/actions/custom/calls/','define','_getStreamReader','isPremiumPlugin','updateConversation','file','/conversations?','traceId','CONTINUE','/messages','MAKE_LONGER','MAKE_SHORTER','make-tone-casual','text','uploadDocument','MAKE_TONE_FORMAL','executeAction','uploadUrl','IMPROVE_WRITING','/reviews/custom/calls/','FIX_GRAMMAR','upsertCustomAIActionRating','make-shorter','callCustomReview','_sendApiRequest','pluginName','21021219QdEJCR','fetchConversation','/actions/custom/calls','/documents','deleteDocument','startConversation','data','getReader','queryAssistant','then','order','/messages/','reset','json','_token','100','feed','append','/conversations','7pJuzhl','false','Bearer\x20','1vrbivr','language','PATCH','MAKE_TONE_CASUAL','signal','deleteConversation','fetchConversationMessages','improve-writing','excludeEmpty','1422366KADsIQ','GET','make-tone-formal','_handleError'];_0x17ed=function(){return _0x488a98;};return _0x17ed();}function _0xa1f8(_0x326371,_0x15b5df){const _0x17ed99=_0x17ed();return _0xa1f8=function(_0xa1f84d,_0x2fc761){_0xa1f84d=_0xa1f84d-0x1f4;let _0xad2218=_0x17ed99[_0xa1f84d];return _0xad2218;},_0xa1f8(_0x326371,_0x15b5df);}const _0x154e2e=_0xa1f8;(function(_0xb0c680,_0x27d4a7){const _0x231eff=_0xa1f8,_0xb264af=_0xb0c680();while(!![]){try{const _0x1faba3=parseInt(_0x231eff(0x208))/0x1*(-parseInt(_0x231eff(0x22c))/0x2)+parseInt(_0x231eff(0x215))/0x3+-parseInt(_0x231eff(0x22b))/0x4+parseInt(_0x231eff(0x252))/0x5+-parseInt(_0x231eff(0x211))/0x6+parseInt(_0x231eff(0x205))/0x7*(-parseInt(_0x231eff(0x256))/0x8)+-parseInt(_0x231eff(0x287))/0x9*(-parseInt(_0x231eff(0x235))/0xa);if(_0x1faba3===_0x27d4a7)break;else _0xb264af['push'](_0xb264af['shift']());}catch(_0x2dbc86){_0xb264af['push'](_0xb264af['shift']());}}}(_0x17ed,0x97dfd));import{createParser as _0xfdb986}from'eventsource-parser';import{ContextPlugin as _0x2f73e6}from'ckeditor5/src/core.js';import{CKEditorError as _0x56ce13}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x534215){const _0x41cfc4=_0xa1f8;_0x534215[_0x41cfc4(0x275)]=_0x41cfc4(0x23b),_0x534215[_0x41cfc4(0x281)]=_0x41cfc4(0x244),_0x534215[_0x41cfc4(0x27f)]=_0x41cfc4(0x20f),_0x534215[_0x41cfc4(0x277)]=_0x41cfc4(0x224),_0x534215[_0x41cfc4(0x278)]=_0x41cfc4(0x283),_0x534215[_0x41cfc4(0x20b)]=_0x41cfc4(0x279),_0x534215[_0x41cfc4(0x27c)]=_0x41cfc4(0x213),_0x534215[_0x41cfc4(0x262)]=_0x41cfc4(0x21d);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x2f73e6{[_0x154e2e(0x25e)];[_0x154e2e(0x200)];[_0x154e2e(0x238)];static get[_0x154e2e(0x23d)](){const _0xb36f2e=_0x154e2e;return[_0xb36f2e(0x23e)];}static get[_0x154e2e(0x286)](){const _0x3bf294=_0x154e2e;return _0x3bf294(0x248);}static get[_0x154e2e(0x240)](){return!0x0;}static get[_0x154e2e(0x270)](){return!0x0;}constructor(_0x2b238b){const _0x1e8068=_0x154e2e;super(_0x2b238b),this[_0x1e8068(0x24a)][_0x1e8068(0x233)][_0x1e8068(0x26e)](_0x1e8068(0x246),_0x1e8068(0x25d)),this[_0x1e8068(0x25e)]=this[_0x1e8068(0x24a)][_0x1e8068(0x233)][_0x1e8068(0x239)](_0x1e8068(0x246)),this[_0x1e8068(0x200)]=null,this[_0x1e8068(0x238)]=new TextDecoder();}[_0x154e2e(0x254)](){const _0x3ac557=_0x154e2e,_0x2dbec8=this[_0x3ac557(0x24a)][_0x3ac557(0x26c)][_0x3ac557(0x239)](_0x3ac557(0x23e));if(!_0x2dbec8[_0x3ac557(0x234)])throw new _0x56ce13(_0x3ac557(0x24d),this);this[_0x3ac557(0x200)]=_0x2dbec8[_0x3ac557(0x234)];}[_0x154e2e(0x1f7)](_0x274c44,_0x475c79){const _0x989b27=_0x154e2e,_0x50b915=this[_0x989b27(0x285)](_0x989b27(0x204),_0x989b27(0x227),{'id':_0x274c44,'group':_0x475c79});return{'getConversation':async()=>(await _0x50b915[_0x989b27(0x264)])[_0x989b27(0x1ff)](),'abortController':_0x50b915[_0x989b27(0x25b)]};}[_0x154e2e(0x1fa)]({message:_0x3afd9e,conversationId:_0x6cfdbd,parts:_0x3647b8,capabilities:_0x41a195,model:_0x778316,attributes:_0x59fdcb}){const _0x1eb729=_0x154e2e,_0x516deb={'prompt':_0x3afd9e,'content':_0x3647b8,'model':_0x778316,..._0x41a195&&{'capabilities':_0x41a195},..._0x59fdcb&&{'attributes':_0x59fdcb}},_0x1e5aff=this[_0x1eb729(0x285)](_0x1eb729(0x21e)+_0x6cfdbd+_0x1eb729(0x276),_0x1eb729(0x227),_0x516deb);return{'getStream':async()=>{const _0xb7706a=_0x1eb729,_0x3373e5=(await _0x1e5aff[_0xb7706a(0x264)])[_0xb7706a(0x226)];return this[_0xb7706a(0x26f)](_0x3373e5);},'abortController':_0x1e5aff[_0x1eb729(0x25b)]};}[_0x154e2e(0x261)]({content:_0x1ab38e,message:_0x427217,model:_0xb163b7,outputFormat:_0x151b89}){const _0x54ad2c=_0x154e2e,_0x1a4975={'content':[{'type':_0x54ad2c(0x27a),'content':_0x1ab38e}],'prompt':_0x427217,'model':_0xb163b7,'outputFormat':_0x151b89},_0x305f24=this[_0x54ad2c(0x285)](_0x54ad2c(0x1f4),_0x54ad2c(0x227),_0x1a4975);return{'getStream':async()=>{const _0x345cb8=_0x54ad2c,_0x5c6a04=(await _0x305f24[_0x345cb8(0x264)])[_0x345cb8(0x226)];return this[_0x345cb8(0x26f)](_0x5c6a04);},'abortController':_0x305f24[_0x54ad2c(0x25b)]};}[_0x154e2e(0x27d)]({actionName:_0x4ec561,content:_0xf0389f,args:_0x523110}){const _0x30d78e=_0x154e2e,_0x67523c={'content':[{'type':_0x30d78e(0x27a),'content':_0xf0389f}],'args':_0x523110},_0x5318fa=this[_0x30d78e(0x285)](_0x30d78e(0x26a)+_0x4ec561+_0x30d78e(0x258),_0x30d78e(0x227),_0x67523c);return{'getStream':async()=>{const _0x560240=_0x30d78e,_0x48bf2c=(await _0x5318fa[_0x560240(0x264)])[_0x560240(0x226)];return this[_0x560240(0x26f)](_0x48bf2c);},'abortController':_0x5318fa[_0x30d78e(0x25b)]};}[_0x154e2e(0x217)](_0x3202fd,_0x5380cd,_0x3b3aa4){const _0x311c1e=_0x154e2e,_0x2bb3f6=new FormData();_0x2bb3f6[_0x311c1e(0x203)](_0x311c1e(0x272),_0x5380cd,_0x5380cd[_0x311c1e(0x22e)]),_0x3b3aa4&&_0x2bb3f6[_0x311c1e(0x203)](_0x311c1e(0x267),JSON[_0x311c1e(0x219)](_0x3b3aa4));const _0x45d76a=this[_0x311c1e(0x285)](_0x311c1e(0x21e)+_0x3202fd+_0x311c1e(0x23c),_0x311c1e(0x227),_0x2bb3f6);return{'getId':async()=>(await _0x45d76a[_0x311c1e(0x264)])[_0x311c1e(0x1ff)](),'abortController':_0x45d76a[_0x311c1e(0x25b)]};}[_0x154e2e(0x269)](_0xf41bef,_0x133232){const _0x36f3a1=_0x154e2e,_0x29ddcf=this[_0x36f3a1(0x285)](_0x36f3a1(0x21e)+_0xf41bef+_0x36f3a1(0x24b)+_0x133232,_0x36f3a1(0x212));return{'getDocument':async()=>(await _0x29ddcf[_0x36f3a1(0x264)])[_0x36f3a1(0x1ff)](),'abortController':_0x29ddcf[_0x36f3a1(0x25b)]};}[_0x154e2e(0x27b)](_0x7dabbe,_0x510e9c,_0x5ed297){const _0xd59166=_0x154e2e,_0x8094a8={'content':_0x510e9c};_0x5ed297&&(_0x8094a8[_0xd59166(0x267)]=_0x5ed297);const _0x2186e1=this[_0xd59166(0x285)](_0xd59166(0x21e)+_0x7dabbe+_0xd59166(0x1f5),_0xd59166(0x227),_0x8094a8);return{'getId':async()=>(await _0x2186e1[_0xd59166(0x264)])[_0xd59166(0x1ff)](),'abortController':_0x2186e1[_0xd59166(0x25b)]};}[_0x154e2e(0x230)](_0x16cd57,_0x3ec070={}){const _0x3c0535=_0x154e2e,_0x5c0e55=new URLSearchParams();_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x22a),_0x16cd57),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x210),!0x1!==_0x3ec070[_0x3c0535(0x210)]?_0x3c0535(0x259):_0x3c0535(0x206)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x265),_0x3ec070[_0x3c0535(0x265)]?_0x3ec070[_0x3c0535(0x265)][_0x3c0535(0x245)]():_0x3c0535(0x201)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x24e),_0x3ec070[_0x3c0535(0x24e)]?_0x3ec070[_0x3c0535(0x24e)]:_0x3c0535(0x268)),_0x5c0e55[_0x3c0535(0x203)](_0x3c0535(0x1fc),_0x3ec070[_0x3c0535(0x1fc)]?_0x3ec070[_0x3c0535(0x1fc)]:_0x3c0535(0x23f));const _0x5b1af6=this[_0x3c0535(0x285)](_0x3c0535(0x273)+_0x5c0e55[_0x3c0535(0x245)](),_0x3c0535(0x212));return{'getConversations':async()=>{const _0x339527=_0x3c0535,_0x1676b1=await _0x5b1af6[_0x339527(0x264)];return(await _0x1676b1[_0x339527(0x1ff)]())[_0x339527(0x266)];},'abortController':_0x5b1af6[_0x3c0535(0x25b)]};}[_0x154e2e(0x20d)](_0x2b457a){const _0x42cfd4=_0x154e2e,_0x512c67=this[_0x42cfd4(0x285)](_0x42cfd4(0x21e)+_0x2b457a,_0x42cfd4(0x253));return{'execute':async()=>{const _0x55591e=_0x42cfd4;await _0x512c67[_0x55591e(0x264)];},'abortController':_0x512c67[_0x42cfd4(0x25b)]};}[_0x154e2e(0x271)](_0x3d09f8,_0x3cc869){const _0x401c68=_0x154e2e,_0x2a9c8c=this[_0x401c68(0x285)](_0x401c68(0x21e)+_0x3d09f8,_0x401c68(0x20a),_0x3cc869);return{'getResult':async()=>(await _0x2a9c8c[_0x401c68(0x264)],_0x3cc869),'abortController':_0x2a9c8c[_0x401c68(0x25b)]};}[_0x154e2e(0x288)](_0x35f639){const _0x1706a1=_0x154e2e,_0x49fffa=this[_0x1706a1(0x285)](_0x1706a1(0x21e)+_0x35f639,_0x1706a1(0x212));return{'getConversation':async()=>(await _0x49fffa[_0x1706a1(0x264)])[_0x1706a1(0x1ff)](),'abortController':_0x49fffa[_0x1706a1(0x25b)]};}[_0x154e2e(0x20e)](_0x2503eb){const _0x5c472d=_0x154e2e,_0x23300c=this[_0x5c472d(0x285)](_0x5c472d(0x21e)+_0x2503eb+_0x5c472d(0x276),_0x5c472d(0x212));return{'getMessages':async()=>{const _0x45d74d=_0x5c472d,_0x12640e=await _0x23300c[_0x45d74d(0x264)];return(await _0x12640e[_0x45d74d(0x1ff)]())[_0x45d74d(0x266)];},'abortController':_0x23300c[_0x5c472d(0x25b)]};}[_0x154e2e(0x27e)](_0x575bd0,_0xd0c50b,_0x46a3df){const _0x58fab9=_0x154e2e,_0x4551f1=this[_0x58fab9(0x285)](_0x58fab9(0x21e)+_0x575bd0+_0x58fab9(0x242),_0x58fab9(0x227),{'url':_0xd0c50b,'attributes':_0x46a3df});return{'getId':async()=>(await _0x4551f1[_0x58fab9(0x264)])[_0x58fab9(0x1ff)](),'abortController':_0x4551f1[_0x58fab9(0x25b)]};}[_0x154e2e(0x21a)](_0x36a8e9='en'){const _0x2b501c=_0x154e2e,_0x30ddba=new URLSearchParams();_0x30ddba[_0x2b501c(0x203)](_0x2b501c(0x209),_0x36a8e9);const _0x5242c2=_0x2b501c(0x231)+_0x30ddba[_0x2b501c(0x245)](),_0x4f57db=this[_0x2b501c(0x285)](_0x5242c2,_0x2b501c(0x212));return{'list':async()=>await(await _0x4f57db[_0x2b501c(0x264)])[_0x2b501c(0x1ff)](),'abortController':_0x4f57db[_0x2b501c(0x25b)]};}[_0x154e2e(0x243)](_0x19b999,_0x5e0cf0){const _0x42e097=_0x154e2e,_0x159a0f=this[_0x42e097(0x285)](_0x42e097(0x21e)+_0x19b999+_0x42e097(0x222)+_0x5e0cf0,_0x42e097(0x253));return{'execute':async()=>{const _0xbabfbe=_0x42e097;await _0x159a0f[_0xbabfbe(0x264)];},'abortController':_0x159a0f[_0x42e097(0x25b)]};}[_0x154e2e(0x1f6)](_0x276349,_0x553741){const _0x571a93=_0x154e2e,_0x366472=this[_0x571a93(0x285)](_0x571a93(0x21e)+_0x276349+_0x571a93(0x24b)+_0x553741,_0x571a93(0x253));return{'execute':async()=>{const _0x28917e=_0x571a93;await _0x366472[_0x28917e(0x264)];},'abortController':_0x366472[_0x571a93(0x25b)]};}[_0x154e2e(0x22f)](_0x292405,_0x233ab1){const _0x26869e=_0x154e2e,_0x2601e1=this[_0x26869e(0x285)](_0x26869e(0x21e)+_0x292405+_0x26869e(0x255)+_0x233ab1,_0x26869e(0x253));return{'execute':async()=>{const _0x2d89d0=_0x26869e;await _0x2601e1[_0x2d89d0(0x264)];},'abortController':_0x2601e1[_0x26869e(0x25b)]};}[_0x154e2e(0x229)]({reviewName:_0x27799d,content:_0x1a26d9,args:_0x1dc6d0}){const _0x588f9a=_0x154e2e,_0x4c0053=this[_0x588f9a(0x285)](_0x588f9a(0x24c)+_0x27799d+_0x588f9a(0x258),_0x588f9a(0x227),{'content':[{'type':_0x588f9a(0x27a),'content':_0x1a26d9}],'args':_0x1dc6d0});return{'getStream':async()=>{const _0x3762cc=_0x588f9a,_0x1fa777=(await _0x4c0053[_0x3762cc(0x264)])[_0x3762cc(0x226)];return this[_0x3762cc(0x26f)](_0x1fa777);},'abortController':_0x4c0053[_0x588f9a(0x25b)]};}[_0x154e2e(0x284)]({content:_0x3943d1,prompt:_0x320363,model:_0x1bafda}){const _0x175c3f=_0x154e2e,_0x5544cd=this[_0x175c3f(0x285)](_0x175c3f(0x21c),_0x175c3f(0x227),{'content':[{'type':_0x175c3f(0x27a),'content':_0x3943d1}],'prompt':_0x320363,'model':_0x1bafda});return{'getStream':async()=>{const _0x3a73eb=_0x175c3f,_0x3e99ff=(await _0x5544cd[_0x3a73eb(0x264)])[_0x3a73eb(0x226)];return this[_0x3a73eb(0x26f)](_0x3e99ff);},'abortController':_0x5544cd[_0x175c3f(0x25b)]};}[_0x154e2e(0x218)](_0x437661,_0x36e880,_0x558799){const _0x5ba0c0=_0x154e2e,_0x475add=this[_0x5ba0c0(0x285)](_0x5ba0c0(0x21e)+_0x437661+_0x5ba0c0(0x1fd)+_0x36e880+_0x5ba0c0(0x249),_0x5ba0c0(0x251),{'positiveCount':_0x558799[_0x5ba0c0(0x232)],'totalCount':_0x558799[_0x5ba0c0(0x25f)],'modificationId':_0x558799[_0x5ba0c0(0x23a)]});return{'execute':async()=>{const _0x4cd14d=_0x5ba0c0;await _0x475add[_0x4cd14d(0x264)];},'abortController':_0x475add[_0x5ba0c0(0x25b)]};}[_0x154e2e(0x236)](_0x596123,_0x5718a9,_0x2a6b56){const _0xac99cf=_0x154e2e,_0x805895=this[_0xac99cf(0x285)](_0xac99cf(0x26a)+_0x596123+_0xac99cf(0x21b)+_0x5718a9+_0xac99cf(0x249),_0xac99cf(0x251),{'positiveCount':_0x2a6b56[_0xac99cf(0x232)],'totalCount':_0x2a6b56[_0xac99cf(0x25f)]});return{'execute':async()=>{const _0x438081=_0xac99cf;await _0x805895[_0x438081(0x264)];},'abortController':_0x805895[_0xac99cf(0x25b)]};}[_0x154e2e(0x282)](_0x4af965,_0x5b7918){const _0x4b04ed=_0x154e2e,_0x2dd047=this[_0x4b04ed(0x285)](_0x4b04ed(0x26d)+_0x4af965+_0x4b04ed(0x249),_0x4b04ed(0x251),{'positiveCount':_0x5b7918[_0x4b04ed(0x232)],'totalCount':_0x5b7918[_0x4b04ed(0x25f)]});return{'execute':async()=>{const _0x491195=_0x4b04ed;await _0x2dd047[_0x491195(0x264)];},'abortController':_0x2dd047[_0x4b04ed(0x25b)]};}[_0x154e2e(0x263)](_0x4be34d,_0x61a5,_0x5ece10,_0x448bd2){const _0x4dbb54=_0x154e2e,_0x1cf003=this[_0x4dbb54(0x285)](_0x4dbb54(0x24c)+_0x4be34d+_0x4dbb54(0x21b)+_0x61a5+_0x4dbb54(0x249),_0x4dbb54(0x251),{'positiveCount':_0x5ece10[_0x4dbb54(0x232)],'totalCount':_0x5ece10[_0x4dbb54(0x25f)],'dataId':_0x448bd2});return{'execute':async()=>{const _0x10b3be=_0x4dbb54;await _0x1cf003[_0x10b3be(0x264)];},'abortController':_0x1cf003[_0x4dbb54(0x25b)]};}[_0x154e2e(0x21f)](_0x1db5d8,_0x47f9d2,_0x5dd5a3){const _0x28f298=_0x154e2e,_0x3a5fc5=this[_0x28f298(0x285)](_0x28f298(0x280)+_0x1db5d8+_0x28f298(0x249),_0x28f298(0x251),{'positiveCount':_0x47f9d2[_0x28f298(0x232)],'totalCount':_0x47f9d2[_0x28f298(0x25f)],'dataId':_0x5dd5a3});return{'execute':async()=>{const _0x116f0f=_0x28f298;await _0x3a5fc5[_0x116f0f(0x264)];},'abortController':_0x3a5fc5[_0x28f298(0x25b)]};}[_0x154e2e(0x285)](_0x57e241,_0x202620,_0x946d89){const _0x38fc4f=_0x154e2e,_0x15a158=new AbortController(),_0x1638ff=_0x946d89 instanceof FormData,_0x3a6982={'Authorization':_0x38fc4f(0x207)+this[_0x38fc4f(0x200)]?.[_0x38fc4f(0x260)]};_0x946d89&&!_0x1638ff&&(_0x3a6982[_0x38fc4f(0x220)]=_0x38fc4f(0x257));const _0x31e777={'method':_0x202620,'headers':_0x3a6982,'signal':_0x15a158[_0x38fc4f(0x20c)]};return _0x946d89&&(_0x31e777[_0x38fc4f(0x226)]=_0x1638ff?_0x946d89:JSON[_0x38fc4f(0x219)](_0x946d89)),{'request':fetch(''+this[_0x38fc4f(0x25e)]+_0x57e241,_0x31e777)[_0x38fc4f(0x24f)](_0x50382f=>{const _0x1fd4be=_0x38fc4f;this[_0x1fd4be(0x214)](_0x50382f);})[_0x38fc4f(0x1fb)](_0x4a4bfd=>_0x4a4bfd['ok']?_0x4a4bfd:_0x4a4bfd[_0x38fc4f(0x1ff)]()[_0x38fc4f(0x1fb)](_0x26247f=>{const _0x30df26=_0x38fc4f;throw{'url':this[_0x30df26(0x25e)],'path':_0x57e241,'method':_0x202620,'body':_0x946d89,'status':(_0x4a4bfd||{})[_0x30df26(0x26b)],'statusText':(_0x4a4bfd||{})[_0x30df26(0x237)],'code':_0x26247f[_0x30df26(0x223)],'message':_0x26247f[_0x30df26(0x216)],'traceId':_0x26247f[_0x30df26(0x274)]};})),'abortController':_0x15a158};}async*[_0x154e2e(0x26f)](_0x1c7365){const _0xc92c0e=_0x154e2e,_0x4fe31c=[],_0x3ceec7=_0x1c7365[_0xc92c0e(0x1f9)](),_0x2b3634=_0xfdb986({'onError':_0x3888e5=>{const _0x6f288c=_0xc92c0e;this[_0x6f288c(0x214)](_0x3888e5);},'onEvent':_0x43e38e=>{const _0x3ba50c=_0xc92c0e;_0x43e38e[_0x3ba50c(0x1f8)]=JSON[_0x3ba50c(0x228)](_0x43e38e[_0x3ba50c(0x1f8)]),_0x4fe31c[_0x3ba50c(0x250)](_0x43e38e);}});try{let _0x5cb5cb=!0x1;for(;!_0x5cb5cb;){const {done:_0x862ed4,value:_0xe13df3}=await _0x3ceec7[_0xc92c0e(0x25c)]();_0x862ed4&&(_0x5cb5cb=!0x0),_0x2b3634[_0xc92c0e(0x202)](this[_0xc92c0e(0x238)][_0xc92c0e(0x22d)](_0xe13df3,{'stream':!0x0})),yield*_0x4fe31c,_0x4fe31c[_0xc92c0e(0x247)]=0x0;}}catch(_0x29e1f6){this[_0xc92c0e(0x214)](_0x29e1f6);}finally{_0x3ceec7[_0xc92c0e(0x25a)](),_0x2b3634[_0xc92c0e(0x1fe)]();}}[_0x154e2e(0x214)](_0x50fff0){const _0x43841f=_0x154e2e;if(_0x50fff0 instanceof _0x56ce13)throw _0x50fff0;if(_0x50fff0 instanceof Error&&_0x43841f(0x221)===_0x50fff0[_0x43841f(0x22e)])throw new _0x56ce13(_0x43841f(0x241),this,{'originalError':_0x50fff0});throw new _0x56ce13(_0x43841f(0x225),this,{'originalError':_0x50fff0});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2140a2=_0x4606;(function(_0x1636a5,_0x1acc24){const _0x2452fa=_0x4606,_0x3355bb=_0x1636a5();while(!![]){try{const _0x1b5e21=parseInt(_0x2452fa(0x128))/0x1*(-parseInt(_0x2452fa(0x103))/0x2)+-parseInt(_0x2452fa(0x146))/0x3*(parseInt(_0x2452fa(0xf8))/0x4)+parseInt(_0x2452fa(0xea))/0x5*(parseInt(_0x2452fa(0xe6))/0x6)+parseInt(_0x2452fa(0x105))/0x7*(-parseInt(_0x2452fa(0x114))/0x8)+-parseInt(_0x2452fa(0x107))/0x9*(-parseInt(_0x2452fa(0x140))/0xa)+parseInt(_0x2452fa(0x14d))/0xb*(parseInt(_0x2452fa(0x136))/0xc)+parseInt(_0x2452fa(0xe2))/0xd;if(_0x1b5e21===_0x1acc24)break;else _0x3355bb['push'](_0x3355bb['shift']());}catch(_0x250632){_0x3355bb['push'](_0x3355bb['shift']());}}}(_0x527d,0x71114));function _0x527d(){const _0xab0d19=['_outputDataProcessor','locale','removeAllRanges','getRanges','viewToDom','trim','processor','isBefore',':end></','ck-fake-ai-selection','data','70840CzwXCO','from','join','markerToHighlight','has','name','toView','domConverter',':start></','listenTo','createRange','42pzudur','modelToDataWithIds','763imyoDb','element','27AJRCwQ','change','afterInit','isOfficialPlugin','start','random','hideFakeVisualSelection','add','_sessionId','showFakeVisualSelection','conversion','getDocumentData','getRoot','10328hMzDwR','fromCharCode',':end>','getLastMatchingPosition','$textProxy','_setOutputDataProcessor','schema','_getMarkersInDocumentOrder','pluginName','for','RealTimeCollaborationClient','createUIElement','ready','isAfter','get','substring','setAttribute','dataDowncast','plugins','getItems','21117gweycm','floor','ai-selection:','push','selection','markers',':start>','isAtEnd','_integrateEditor','getSelectionText','getSelection','_nextDataId','ai-selection','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','20652FriyJM','sessionId','document','view','editingDowncast','_getDocumentDataStringFromView','sort','getMarkersGroup','editors','getStart','146810NHUlhd','_setDataIdsOnChildren','removeMarker','version','addMarker','isContent','57ZrLmPl','htmlWriter','getChildren','model','editing','markerToElement','AIEditing','693tTBROP','define','ck-ai-assistant-ui_theme','_displayedFakeSelectionId','_displayedFakeSelectionLocked','length','ai.models.showModelSelector','config','isPremiumPlugin','markerName','isOpening','convertAiChatSelectionMarker','10390068iAzuPH','end','indexOf','data-id','12owglXA','containerElement','getHtml','toData','1080220IhrDgC','emptyElement','context'];_0x527d=function(){return _0xab0d19;};return _0x527d();}import{ViewDowncastWriter as _0x191f16}from'ckeditor5/src/engine.js';import{ContextPlugin as _0xd18856,Editor as _0x12f6c0}from'ckeditor5/src/core.js';import{uid as _0x181d39}from'ckeditor5/src/utils.js';import{getTranslation as _0x9edf5a}from'./utils/common-translations.js';function _0x4606(_0x5c73b6,_0x272e88){const _0x527d34=_0x527d();return _0x4606=function(_0x460662,_0x4d3a14){_0x460662=_0x460662-0xdc;let _0x1c997a=_0x527d34[_0x460662];return _0x1c997a;},_0x4606(_0x5c73b6,_0x272e88);}import{getEditorFromContext as _0xc5624a}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x2140a2(0x134);export class AIEditing extends _0xd18856{constructor(_0x1f21fc){const _0x599002=_0x2140a2;super(_0x1f21fc),this[_0x599002(0xec)][_0x599002(0xdd)][_0x599002(0x14e)](_0x599002(0xdc),!0x0);}[_0x2140a2(0xed)];[_0x2140a2(0x150)]=null;[_0x2140a2(0x151)]=!0x1;[_0x2140a2(0x10f)];static get[_0x2140a2(0x11c)](){const _0x449c37=_0x2140a2;return _0x449c37(0x14c);}static get[_0x2140a2(0x10a)](){return!0x0;}static get[_0x2140a2(0xde)](){return!0x0;}get[_0x2140a2(0x137)](){const _0x2e413d=_0x2140a2;if(!this[_0x2e413d(0x10f)]){const _0x117f9a=_0xc5624a(this[_0x2e413d(0xec)]),_0x31416a=_0x117f9a[_0x2e413d(0x126)][_0x2e413d(0xfc)](_0x2e413d(0x11e))&&_0x117f9a[_0x2e413d(0x126)][_0x2e413d(0x122)](_0x2e413d(0x11e))[_0x2e413d(0x137)];this[_0x2e413d(0x10f)]=_0x31416a||_0x181d39();}return this[_0x2e413d(0x10f)];}async[_0x2140a2(0x112)](){const _0x4df8eb=_0x2140a2,_0x3ad20d=_0xc5624a(this[_0x4df8eb(0xec)]),_0x3acd7b=_0x3ad20d[_0x4df8eb(0x149)],_0x33bc9e=_0x3ad20d[_0x4df8eb(0xf7)][_0x4df8eb(0xfe)](_0x3acd7b[_0x4df8eb(0x138)][_0x4df8eb(0x113)](),{'convertAiChatSelectionMarker':!0x0}),_0x2fe2c6=new _0x191f16(_0x3ad20d[_0x4df8eb(0x14a)][_0x4df8eb(0x139)][_0x4df8eb(0x138)]);this[_0x4df8eb(0x141)](_0x33bc9e,_0x2fe2c6);let _0x497045=await this[_0x4df8eb(0x13b)](_0x33bc9e);const _0x7e7d2d=this[_0x4df8eb(0x11b)](),_0xb81eef=[];for(const _0x34298a of _0x7e7d2d){const _0x5e2e6c='<'+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x100)+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x12e),_0x2125a3=_0x497045[_0x4df8eb(0xe4)](_0x5e2e6c);_0x497045=_0x497045[_0x4df8eb(0x123)](0x0,_0x2125a3)+_0x497045[_0x4df8eb(0x123)](_0x2125a3+_0x5e2e6c[_0x4df8eb(0x152)]);const _0x2faf2a='<'+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0xf5)+_0x34298a[_0x4df8eb(0xfd)]+_0x4df8eb(0x116),_0x4a37ea=_0x497045[_0x4df8eb(0xe4)](_0x2faf2a);_0x497045=_0x497045[_0x4df8eb(0x123)](0x0,_0x4a37ea)+_0x497045[_0x4df8eb(0x123)](_0x4a37ea+_0x2faf2a[_0x4df8eb(0x152)]),_0xb81eef[_0x4df8eb(0x12b)]({'markerName':_0x34298a[_0x4df8eb(0xfd)],'start':_0x2125a3,'end':_0x4a37ea,'htmlFragment':_0x497045[_0x4df8eb(0x123)](_0x2125a3,_0x4a37ea)});}return{'content':_0x497045,'version':_0x3ad20d[_0x4df8eb(0x149)][_0x4df8eb(0x138)][_0x4df8eb(0x143)],'sessionId':this[_0x4df8eb(0x137)],'selections':_0xb81eef};}async[_0x2140a2(0x109)](){const _0x1a5f4e=_0x2140a2;this[_0x1a5f4e(0xec)]instanceof _0x12f6c0?this[_0x1a5f4e(0x130)](this[_0x1a5f4e(0xec)]):this[_0x1a5f4e(0x101)](this[_0x1a5f4e(0xec)][_0x1a5f4e(0x13e)],_0x1a5f4e(0x10e),(_0x435287,_0x3cca8b)=>{const _0x901174=_0x1a5f4e;_0x3cca8b['on'](_0x901174(0x120),()=>{const _0x14dad5=_0x901174;this[_0x14dad5(0x130)](_0x3cca8b);});});}[_0x2140a2(0x119)](_0x3641a8){const _0x21b207=_0x2140a2;this[_0x21b207(0xed)]=_0x3641a8;}async[_0x2140a2(0x13b)](_0x18547c){const _0x5b97e6=_0x2140a2;let _0x2e269;const _0x134040=_0xc5624a(this[_0x5b97e6(0xec)]);if(this[_0x5b97e6(0xed)]){const _0x1930f1=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0xff)][_0x5b97e6(0xf1)](_0x18547c),_0x411ac2=await this[_0x5b97e6(0xed)](_0x1930f1);_0x2e269=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0x147)][_0x5b97e6(0xe8)](_0x411ac2);}else _0x2e269=_0x134040[_0x5b97e6(0xf7)][_0x5b97e6(0xf3)][_0x5b97e6(0xe9)](_0x18547c);return _0x2e269;}[_0x2140a2(0x130)](_0x5e013a){const _0xc810cd=_0x2140a2;_0x5e013a[_0xc810cd(0x111)][_0xc810cd(0x11d)](_0xc810cd(0x13a))[_0xc810cd(0xfb)]({'model':_0xc810cd(0x134),'view':{'classes':[_0xc810cd(0xf6),_0xc810cd(0x14f)],'priority':0xc}}),_0x5e013a[_0xc810cd(0x111)][_0xc810cd(0x11d)](_0xc810cd(0x125))[_0xc810cd(0x14b)]({'model':_0xc810cd(0x134),'view':(_0x26576d,{writer:_0x4bc31c,options:_0x4b4abd})=>_0x4b4abd[_0xc810cd(0xe1)]?_0x4bc31c[_0xc810cd(0x11f)](_0x26576d[_0xc810cd(0xdf)]+':'+(_0x26576d[_0xc810cd(0xe0)]?_0xc810cd(0x10b):_0xc810cd(0xe3))):null});}[_0x2140a2(0x110)](_0x35234f,_0x34d66b,_0x319b2f=!0x1,_0x357a13=!0x1){const _0x1c949a=_0x2140a2;if(this[_0x1c949a(0x151)]&&!_0x357a13)return!0x1;const _0x40eeb7=_0xc5624a(this[_0x1c949a(0xec)])[_0x1c949a(0x149)];return _0x40eeb7[_0x1c949a(0x108)](_0x334a03=>{const _0x1638d7=_0x1c949a;this[_0x1638d7(0x150)]&&this[_0x1638d7(0x10d)](this[_0x1638d7(0x150)]),this[_0x1638d7(0x150)]=_0x34d66b,this[_0x1638d7(0x151)]=_0x319b2f;let _0x924c91=0x0;for(let _0x4e3546 of _0x35234f){const _0x39e0b3=_0x1638d7(0x12a)+_0x924c91;if(_0x4e3546[_0x1638d7(0x10b)][_0x1638d7(0x12f)]){const _0x866d3=_0x4e3546[_0x1638d7(0x10b)][_0x1638d7(0x117)](({item:_0x3286f3})=>!_0x40eeb7[_0x1638d7(0x11a)][_0x1638d7(0x145)](_0x3286f3),{'boundaries':_0x4e3546});_0x4e3546=_0x334a03[_0x1638d7(0x102)](_0x866d3,_0x4e3546[_0x1638d7(0xe3)]);}_0x334a03[_0x1638d7(0x144)](_0x39e0b3,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x4e3546}),_0x924c91++;}}),window[_0x1c949a(0x132)]()?.[_0x1c949a(0xef)](),!0x0;}[_0x2140a2(0x10d)](_0x5cd7af){const _0x21f909=_0x2140a2;if(this[_0x21f909(0x150)]!=_0x5cd7af)return!0x1;this[_0x21f909(0x150)]=null,this[_0x21f909(0x151)]=!0x1;const _0x237026=_0xc5624a(this[_0x21f909(0xec)]),_0x1afa91=_0x237026[_0x21f909(0x149)][_0x21f909(0x12d)][_0x21f909(0x13d)](_0x21f909(0x134));return _0x237026[_0x21f909(0x149)][_0x21f909(0x108)](_0x16fb68=>{const _0x683690=_0x21f909;for(const _0x33bbc3 of _0x1afa91)_0x16fb68[_0x683690(0x142)](_0x33bbc3);}),!0x0;}async[_0x2140a2(0x104)](_0x233113){const _0x51435f=_0x2140a2,_0x13896d=_0xc5624a(this[_0x51435f(0xec)]),_0x29c6aa=_0x13896d[_0x51435f(0xf7)][_0x51435f(0xfe)](_0x233113),_0x554a94=new _0x191f16(_0x13896d[_0x51435f(0x14a)][_0x51435f(0x139)][_0x51435f(0x138)]);return this[_0x51435f(0x141)](_0x29c6aa,_0x554a94),this[_0x51435f(0x13b)](_0x29c6aa);}[_0x2140a2(0x141)](_0x13fb5b,_0x1100af){const _0x268bf6=_0x2140a2;let _0x4ec1cf=!0x1;const _0x304ecf=new Set();for(const _0x4295db of _0x13fb5b[_0x268bf6(0x148)]()){const _0x4f59af=_0x4295db['is'](_0x268bf6(0xeb))||_0x4295db['is'](_0x268bf6(0xe7));if(!_0x4295db['is'](_0x268bf6(0x106)))continue;(this[_0x268bf6(0x141)](_0x4295db,_0x1100af)||_0x4f59af)&&(_0x1100af[_0x268bf6(0x124)](_0x268bf6(0xe5),this[_0x268bf6(0x133)](_0x304ecf),_0x4295db),_0x4ec1cf=!0x0);}return _0x4ec1cf;}[_0x2140a2(0x133)](_0x32669a){const _0xb12ae1=_0x2140a2;let _0x4feb8d;do{_0x4feb8d='';for(let _0x587297=0x0;_0x587297<0x4;_0x587297++)_0x4feb8d+=String[_0xb12ae1(0x115)](0x61+Math[_0xb12ae1(0x129)](0x1a*Math[_0xb12ae1(0x10c)]()));}while(_0x32669a[_0xb12ae1(0xfc)](_0x4feb8d));return _0x32669a[_0xb12ae1(0x10e)](_0x4feb8d),_0x4feb8d;}[_0x2140a2(0x131)](){const _0x2f7754=_0x2140a2,{model:_0x597007}=_0xc5624a(this[_0x2f7754(0xec)]),_0x126cbf=_0x597007[_0x2f7754(0x138)][_0x2f7754(0x12c)],_0x167473=[];for(const _0x591c96 of _0x126cbf[_0x2f7754(0xf0)]())for(const _0x52e764 of _0x591c96[_0x2f7754(0x127)]())_0x52e764['is'](_0x2f7754(0x118))?_0x167473[_0x2f7754(0x12b)](_0x52e764[_0x2f7754(0xf7)]):_0x52e764['is'](_0x2f7754(0x106))&&_0x167473[_0x2f7754(0x152)]>0x0&&'\x20'!==_0x167473[_0x167473[_0x2f7754(0x152)]-0x1]&&_0x167473[_0x2f7754(0x12b)]('\x20');return _0x167473[_0x2f7754(0x152)]?'\x22'+_0x167473[_0x2f7754(0xfa)]('')[_0x2f7754(0xf2)]()+'\x22':_0x9edf5a(this[_0x2f7754(0xec)][_0x2f7754(0xee)],_0x2f7754(0x135));}[_0x2140a2(0x11b)](){const _0x385eec=_0x2140a2,_0x32506b=_0xc5624a(this[_0x385eec(0xec)])[_0x385eec(0x149)];return Array[_0x385eec(0xf9)](_0x32506b[_0x385eec(0x12d)][_0x385eec(0x13d)](_0x385eec(0x134)))[_0x385eec(0x13c)]((_0x8eb46a,_0x33e0ef)=>_0x8eb46a[_0x385eec(0x13f)]()[_0x385eec(0xf4)](_0x33e0ef[_0x385eec(0x13f)]())?-0x1:_0x8eb46a[_0x385eec(0x13f)]()[_0x385eec(0x121)](_0x33e0ef[_0x385eec(0x13f)]())?0x1:0x0);}}
23
+ function _0x5dfc(_0x4b9380,_0x20fb3e){const _0x377b6c=_0x377b();return _0x5dfc=function(_0x5dfcb4,_0x465d3d){_0x5dfcb4=_0x5dfcb4-0x84;let _0x3d41fd=_0x377b6c[_0x5dfcb4];return _0x3d41fd;},_0x5dfc(_0x4b9380,_0x20fb3e);}function _0x377b(){const _0x43d72f=['dataDowncast','listenTo','_setOutputDataProcessor','hideFakeVisualSelection',':end>','sort','1206110NmzwxH','getRanges','domConverter','editors','removeMarker','getRoot','_integrateEditor',':start>','_displayedFakeSelectionLocked','210056SbXTKI','define','createUIElement','change','isAfter','floor','_getMarkersInDocumentOrder','context','element','end','ck-fake-ai-selection','getHtml','processor','ai-selection:','getStart','isPremiumPlugin','getSelectionText','editingDowncast','containerElement','63meHsnD','afterInit','setAttribute','fromCharCode','15540904hStbDI','createRange','addMarker','from','RealTimeCollaborationClient','getChildren','start','126ZeSUAj','convertAiChatSelectionMarker','isOfficialPlugin','_sessionId','isContent','conversion','document','pluginName','version','plugins','locale','name','127447HYSejN','trim','ck-ai-assistant-ui_theme','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','_displayedFakeSelectionId','getMarkersGroup','indexOf','getItems','push','modelToDataWithIds','AIEditing',':start></','isOpening','804294xvlggU','ready','_getDocumentDataStringFromView','for','config','selection','sessionId','random','data','data-id','markerToHighlight','markerToElement','viewToDom','$textProxy','ai-selection','22pGnnHR','markers','getDocumentData','model','_nextDataId','emptyElement','htmlWriter','126632cGatju','isAtEnd','getLastMatchingPosition',':end></','toView','toData','join','getSelection','markerName','ai.models.showModelSelector','_outputDataProcessor','isBefore','editing','schema','8588005aqyMKf','showFakeVisualSelection','_setDataIdsOnChildren','length','removeAllRanges','add','has','substring','view','get','153LjYbOz'];_0x377b=function(){return _0x43d72f;};return _0x377b();}const _0x39239a=_0x5dfc;(function(_0x31e1ec,_0x1e4134){const _0x2dfd12=_0x5dfc,_0x50daef=_0x31e1ec();while(!![]){try{const _0x33fd6a=-parseInt(_0x2dfd12(0xbc))/0x1*(parseInt(_0x2dfd12(0xd8))/0x2)+-parseInt(_0x2dfd12(0xf7))/0x3*(-parseInt(_0x2dfd12(0xdf))/0x4)+parseInt(_0x2dfd12(0xed))/0x5+parseInt(_0x2dfd12(0xc9))/0x6*(-parseInt(_0x2dfd12(0xa5))/0x7)+parseInt(_0x2dfd12(0xa9))/0x8+parseInt(_0x2dfd12(0xb0))/0x9*(-parseInt(_0x2dfd12(0x89))/0xa)+parseInt(_0x2dfd12(0x92))/0xb;if(_0x33fd6a===_0x1e4134)break;else _0x50daef['push'](_0x50daef['shift']());}catch(_0x20bffe){_0x50daef['push'](_0x50daef['shift']());}}}(_0x377b,0xf365c));import{ViewDowncastWriter as _0x1351c0}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x5c5bdb,Editor as _0x47c8de}from'ckeditor5/src/core.js';import{uid as _0x88b5b9}from'ckeditor5/src/utils.js';import{getTranslation as _0x321fbf}from'./utils/common-translations.js';import{getEditorFromContext as _0x5e54e0}from'./utils/geteditorfromcontext.js';export const AI_VISUAL_SELECTION_MARKER_NAME=_0x39239a(0xd7);export class AIEditing extends _0x5c5bdb{constructor(_0x55197d){const _0x455f47=_0x39239a;super(_0x55197d),this[_0x455f47(0x99)][_0x455f47(0xcd)][_0x455f47(0x93)](_0x455f47(0xe8),!0x0);}[_0x39239a(0xe9)];[_0x39239a(0xc0)]=null;[_0x39239a(0x91)]=!0x1;[_0x39239a(0xb3)];static get[_0x39239a(0xb7)](){const _0x5490c4=_0x39239a;return _0x5490c4(0xc6);}static get[_0x39239a(0xb2)](){return!0x0;}static get[_0x39239a(0xa1)](){return!0x0;}get[_0x39239a(0xcf)](){const _0x25b444=_0x39239a;if(!this[_0x25b444(0xb3)]){const _0x3044ab=_0x5e54e0(this[_0x25b444(0x99)]),_0x3e94f5=_0x3044ab[_0x25b444(0xb9)][_0x25b444(0xf3)](_0x25b444(0xad))&&_0x3044ab[_0x25b444(0xb9)][_0x25b444(0xf6)](_0x25b444(0xad))[_0x25b444(0xcf)];this[_0x25b444(0xb3)]=_0x3e94f5||_0x88b5b9();}return this[_0x25b444(0xb3)];}async[_0x39239a(0xda)](){const _0x5be55b=_0x39239a,_0xa372e2=_0x5e54e0(this[_0x5be55b(0x99)]),_0x4ffb8e=_0xa372e2[_0x5be55b(0xdb)],_0x4ef907=_0xa372e2[_0x5be55b(0xd1)][_0x5be55b(0xe3)](_0x4ffb8e[_0x5be55b(0xb6)][_0x5be55b(0x8e)](),{'convertAiChatSelectionMarker':!0x0}),_0x11821e=new _0x1351c0(_0xa372e2[_0x5be55b(0xeb)][_0x5be55b(0xf5)][_0x5be55b(0xb6)]);this[_0x5be55b(0xef)](_0x4ef907,_0x11821e);let _0x1603b6=await this[_0x5be55b(0xcb)](_0x4ef907);const _0x198832=this[_0x5be55b(0x98)](),_0x3da300=[];for(const _0x338592 of _0x198832){const _0x1bd2db='<'+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0xc7)+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0x90),_0x8710c=_0x1603b6[_0x5be55b(0xc2)](_0x1bd2db);_0x1603b6=_0x1603b6[_0x5be55b(0xf4)](0x0,_0x8710c)+_0x1603b6[_0x5be55b(0xf4)](_0x8710c+_0x1bd2db[_0x5be55b(0xf0)]);const _0x357532='<'+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0xe2)+_0x338592[_0x5be55b(0xbb)]+_0x5be55b(0x87),_0xa9d843=_0x1603b6[_0x5be55b(0xc2)](_0x357532);_0x1603b6=_0x1603b6[_0x5be55b(0xf4)](0x0,_0xa9d843)+_0x1603b6[_0x5be55b(0xf4)](_0xa9d843+_0x357532[_0x5be55b(0xf0)]),_0x3da300[_0x5be55b(0xc4)]({'markerName':_0x338592[_0x5be55b(0xbb)],'start':_0x8710c,'end':_0xa9d843,'htmlFragment':_0x1603b6[_0x5be55b(0xf4)](_0x8710c,_0xa9d843)});}return{'content':_0x1603b6,'version':_0xa372e2[_0x5be55b(0xdb)][_0x5be55b(0xb6)][_0x5be55b(0xb8)],'sessionId':this[_0x5be55b(0xcf)],'selections':_0x3da300};}async[_0x39239a(0xa6)](){const _0x4d9fe7=_0x39239a;this[_0x4d9fe7(0x99)]instanceof _0x47c8de?this[_0x4d9fe7(0x8f)](this[_0x4d9fe7(0x99)]):this[_0x4d9fe7(0x84)](this[_0x4d9fe7(0x99)][_0x4d9fe7(0x8c)],_0x4d9fe7(0xf2),(_0x2d1f06,_0xc674a5)=>{const _0x3ab765=_0x4d9fe7;_0xc674a5['on'](_0x3ab765(0xca),()=>{const _0x44db7e=_0x3ab765;this[_0x44db7e(0x8f)](_0xc674a5);});});}[_0x39239a(0x85)](_0x1b6a02){const _0x1ff05f=_0x39239a;this[_0x1ff05f(0xe9)]=_0x1b6a02;}async[_0x39239a(0xcb)](_0xd9e583){const _0x584b87=_0x39239a;let _0x33e1b8;const _0x143fa4=_0x5e54e0(this[_0x584b87(0x99)]);if(this[_0x584b87(0xe9)]){const _0x33ddf0=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0x8b)][_0x584b87(0xd5)](_0xd9e583),_0x59bb39=await this[_0x584b87(0xe9)](_0x33ddf0);_0x33e1b8=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0xde)][_0x584b87(0x9d)](_0x59bb39);}else _0x33e1b8=_0x143fa4[_0x584b87(0xd1)][_0x584b87(0x9e)][_0x584b87(0xe4)](_0xd9e583);return _0x33e1b8;}[_0x39239a(0x8f)](_0x7e0407){const _0x39d589=_0x39239a;_0x7e0407[_0x39d589(0xb5)][_0x39d589(0xcc)](_0x39d589(0xa3))[_0x39d589(0xd3)]({'model':_0x39d589(0xd7),'view':{'classes':[_0x39d589(0x9c),_0x39d589(0xbe)],'priority':0xc}}),_0x7e0407[_0x39d589(0xb5)][_0x39d589(0xcc)](_0x39d589(0xf8))[_0x39d589(0xd4)]({'model':_0x39d589(0xd7),'view':(_0x15b342,{writer:_0x4a4565,options:_0x546754})=>_0x546754[_0x39d589(0xb1)]?_0x4a4565[_0x39d589(0x94)](_0x15b342[_0x39d589(0xe7)]+':'+(_0x15b342[_0x39d589(0xc8)]?_0x39d589(0xaf):_0x39d589(0x9b))):null});}[_0x39239a(0xee)](_0x1d850d,_0x894e8,_0x32d06c=!0x1,_0xf406db=!0x1){const _0x18659f=_0x39239a;if(this[_0x18659f(0x91)]&&!_0xf406db)return!0x1;const _0x583db4=_0x5e54e0(this[_0x18659f(0x99)])[_0x18659f(0xdb)];return _0x583db4[_0x18659f(0x95)](_0x509a83=>{const _0x6bb344=_0x18659f;this[_0x6bb344(0xc0)]&&this[_0x6bb344(0x86)](this[_0x6bb344(0xc0)]),this[_0x6bb344(0xc0)]=_0x894e8,this[_0x6bb344(0x91)]=_0x32d06c;let _0x13f91c=0x0;for(let _0x242f31 of _0x1d850d){const _0x1a6ef1=_0x6bb344(0x9f)+_0x13f91c;if(_0x242f31[_0x6bb344(0xaf)][_0x6bb344(0xe0)]){const _0x49a3d2=_0x242f31[_0x6bb344(0xaf)][_0x6bb344(0xe1)](({item:_0x184b47})=>!_0x583db4[_0x6bb344(0xec)][_0x6bb344(0xb4)](_0x184b47),{'boundaries':_0x242f31});_0x242f31=_0x509a83[_0x6bb344(0xaa)](_0x49a3d2,_0x242f31[_0x6bb344(0x9b)]);}_0x509a83[_0x6bb344(0xab)](_0x1a6ef1,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x242f31}),_0x13f91c++;}}),window[_0x18659f(0xe6)]()?.[_0x18659f(0xf1)](),!0x0;}[_0x39239a(0x86)](_0x20bb57){const _0x4c72b5=_0x39239a;if(this[_0x4c72b5(0xc0)]!=_0x20bb57)return!0x1;this[_0x4c72b5(0xc0)]=null,this[_0x4c72b5(0x91)]=!0x1;const _0x100552=_0x5e54e0(this[_0x4c72b5(0x99)]),_0x1ec321=_0x100552[_0x4c72b5(0xdb)][_0x4c72b5(0xd9)][_0x4c72b5(0xc1)](_0x4c72b5(0xd7));return _0x100552[_0x4c72b5(0xdb)][_0x4c72b5(0x95)](_0x45f0c4=>{const _0xaf86c1=_0x4c72b5;for(const _0x1554a7 of _0x1ec321)_0x45f0c4[_0xaf86c1(0x8d)](_0x1554a7);}),!0x0;}async[_0x39239a(0xc5)](_0x237d5a){const _0x2508da=_0x39239a,_0x5b0b80=_0x5e54e0(this[_0x2508da(0x99)]),_0x4b705c=_0x5b0b80[_0x2508da(0xd1)][_0x2508da(0xe3)](_0x237d5a),_0x427fca=new _0x1351c0(_0x5b0b80[_0x2508da(0xeb)][_0x2508da(0xf5)][_0x2508da(0xb6)]);return this[_0x2508da(0xef)](_0x4b705c,_0x427fca),this[_0x2508da(0xcb)](_0x4b705c);}[_0x39239a(0xef)](_0x5a39fd,_0x2954f8){const _0x91697b=_0x39239a;let _0x5587ef=!0x1;const _0x56b8e6=new Set();for(const _0x1e4c65 of _0x5a39fd[_0x91697b(0xae)]()){const _0x20f542=_0x1e4c65['is'](_0x91697b(0xdd))||_0x1e4c65['is'](_0x91697b(0xa4));if(!_0x1e4c65['is'](_0x91697b(0x9a)))continue;(this[_0x91697b(0xef)](_0x1e4c65,_0x2954f8)||_0x20f542)&&(_0x2954f8[_0x91697b(0xa7)](_0x91697b(0xd2),this[_0x91697b(0xdc)](_0x56b8e6),_0x1e4c65),_0x5587ef=!0x0);}return _0x5587ef;}[_0x39239a(0xdc)](_0x1b2ad6){const _0x1355f2=_0x39239a;let _0x161de0;do{_0x161de0='';for(let _0x277135=0x0;_0x277135<0x4;_0x277135++)_0x161de0+=String[_0x1355f2(0xa8)](0x61+Math[_0x1355f2(0x97)](0x1a*Math[_0x1355f2(0xd0)]()));}while(_0x1b2ad6[_0x1355f2(0xf3)](_0x161de0));return _0x1b2ad6[_0x1355f2(0xf2)](_0x161de0),_0x161de0;}[_0x39239a(0xa2)](){const _0x128be4=_0x39239a,{model:_0x4f802f}=_0x5e54e0(this[_0x128be4(0x99)]),_0x523b90=_0x4f802f[_0x128be4(0xb6)][_0x128be4(0xce)],_0x27d6d2=[];for(const _0x45a394 of _0x523b90[_0x128be4(0x8a)]())for(const _0x27bc09 of _0x45a394[_0x128be4(0xc3)]())_0x27bc09['is'](_0x128be4(0xd6))?_0x27d6d2[_0x128be4(0xc4)](_0x27bc09[_0x128be4(0xd1)]):_0x27bc09['is'](_0x128be4(0x9a))&&_0x27d6d2[_0x128be4(0xf0)]>0x0&&'\x20'!==_0x27d6d2[_0x27d6d2[_0x128be4(0xf0)]-0x1]&&_0x27d6d2[_0x128be4(0xc4)]('\x20');return _0x27d6d2[_0x128be4(0xf0)]?'\x22'+_0x27d6d2[_0x128be4(0xe5)]('')[_0x128be4(0xbd)]()+'\x22':_0x321fbf(this[_0x128be4(0x99)][_0x128be4(0xba)],_0x128be4(0xbf));}[_0x39239a(0x98)](){const _0x52a151=_0x39239a,_0xed43ed=_0x5e54e0(this[_0x52a151(0x99)])[_0x52a151(0xdb)];return Array[_0x52a151(0xac)](_0xed43ed[_0x52a151(0xd9)][_0x52a151(0xc1)](_0x52a151(0xd7)))[_0x52a151(0x88)]((_0x12789e,_0x4bcd78)=>_0x12789e[_0x52a151(0xa0)]()[_0x52a151(0xea)](_0x4bcd78[_0x52a151(0xa0)]())?-0x1:_0x12789e[_0x52a151(0xa0)]()[_0x52a151(0x96)](_0x4bcd78[_0x52a151(0xa0)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2131(){const _0x2c92dc=['webSearch','23252cxOybE','setWebSearch','63bFlCrY','reasoning','738822ZHAnUT','capabilitiesUpdated','getCapabilitiesConfig','setReasoning','isReasoningEnabled','toggleReasoning','_isReasoningEnabled','4566654XBHycz','3924uGCrjr','fire','576590ExESyg','init','toggleWebSearch','4914049iWpMdd','1389486KgJUDf','getCapabilitiesRequestData','reset','4532AooCRS','8DWWjoQ','5wllrlA','isWebSearchEnabled','_isWebSearchEnabled','27yBKzvA'];_0x2131=function(){return _0x2c92dc;};return _0x2131();}const _0x324fab=_0x3ef3;(function(_0x114b8b,_0x4d23c3){const _0x37aaa2=_0x3ef3,_0x2081ef=_0x114b8b();while(!![]){try{const _0x2a7e58=-parseInt(_0x37aaa2(0xf4))/0x1+parseInt(_0x37aaa2(0xe6))/0x2+parseInt(_0x37aaa2(0xee))/0x3*(-parseInt(_0x37aaa2(0xf0))/0x4)+-parseInt(_0x37aaa2(0xeb))/0x5*(parseInt(_0x37aaa2(0xfb))/0x6)+parseInt(_0x37aaa2(0xe5))/0x7*(parseInt(_0x37aaa2(0xea))/0x8)+-parseInt(_0x37aaa2(0xf2))/0x9*(-parseInt(_0x37aaa2(0xe2))/0xa)+-parseInt(_0x37aaa2(0xe9))/0xb*(-parseInt(_0x37aaa2(0xfc))/0xc);if(_0x2a7e58===_0x4d23c3)break;else _0x2081ef['push'](_0x2081ef['shift']());}catch(_0x18a106){_0x2081ef['push'](_0x2081ef['shift']());}}}(_0x2131,0x5d777));function _0x3ef3(_0x52fb84,_0xb7358d){const _0x2131f5=_0x2131();return _0x3ef3=function(_0x3ef324,_0x7f2728){_0x3ef324=_0x3ef324-0xe1;let _0x520b1b=_0x2131f5[_0x3ef324];return _0x520b1b;},_0x3ef3(_0x52fb84,_0xb7358d);}import{EmitterMixin as _0xe08f0b}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x324fab(0xf5)];export class AICapabilities extends _0xe08f0b(){[_0x324fab(0xed)];[_0x324fab(0xfa)];constructor(){const _0x2fe609=_0x324fab;super(),this[_0x2fe609(0xed)]=!0x1,this[_0x2fe609(0xfa)]=!0x1;}[_0x324fab(0xe3)](){const _0x4415c0=_0x324fab;this[_0x4415c0(0xe8)]();}[_0x324fab(0xe8)](){const _0x2c8324=_0x324fab;this[_0x2c8324(0xf1)](!0x1),this[_0x2c8324(0xf7)](!0x1);}[_0x324fab(0xf6)](){const _0x2fcf38=_0x324fab;return{'isWebSearchEnabled':this[_0x2fcf38(0xed)],'isReasoningEnabled':this[_0x2fcf38(0xfa)]};}static[_0x324fab(0xe7)](_0x1ea9f9){const _0xe5d559=_0x324fab,_0x42faf2={};return _0x1ea9f9&&_0x1ea9f9[_0xe5d559(0xec)]&&(_0x42faf2[_0xe5d559(0xef)]={}),_0x1ea9f9&&_0x1ea9f9[_0xe5d559(0xf8)]&&(_0x42faf2[_0xe5d559(0xf3)]={}),_0x42faf2;}[_0x324fab(0xe4)](){const _0x185df8=_0x324fab;this[_0x185df8(0xf1)](!this[_0x185df8(0xed)]);}[_0x324fab(0xf9)](){const _0x409995=_0x324fab;this[_0x409995(0xf7)](!this[_0x409995(0xfa)]);}[_0x324fab(0xf1)](_0x339ac9){const _0x71602f=_0x324fab;_0x339ac9!==this[_0x71602f(0xed)]&&(this[_0x71602f(0xed)]=_0x339ac9,this[_0x71602f(0xe1)](_0x71602f(0xf5),this[_0x71602f(0xf6)]()));}[_0x324fab(0xf7)](_0x16ce18){const _0x5446d5=_0x324fab;_0x16ce18!==this[_0x5446d5(0xfa)]&&(this[_0x5446d5(0xfa)]=_0x16ce18,this[_0x5446d5(0xe1)](_0x5446d5(0xf5),this[_0x5446d5(0xf6)]()));}}
23
+ const _0x1a4eb3=_0x1a8e;(function(_0xe2c442,_0x359022){const _0x367e80=_0x1a8e,_0x1df28a=_0xe2c442();while(!![]){try{const _0x2c4f0c=-parseInt(_0x367e80(0xa1))/0x1*(parseInt(_0x367e80(0xa0))/0x2)+-parseInt(_0x367e80(0xa4))/0x3+parseInt(_0x367e80(0xa8))/0x4*(parseInt(_0x367e80(0x98))/0x5)+-parseInt(_0x367e80(0x9e))/0x6*(parseInt(_0x367e80(0x97))/0x7)+parseInt(_0x367e80(0xa7))/0x8+-parseInt(_0x367e80(0xa2))/0x9+parseInt(_0x367e80(0xb0))/0xa;if(_0x2c4f0c===_0x359022)break;else _0x1df28a['push'](_0x1df28a['shift']());}catch(_0x1c5fc3){_0x1df28a['push'](_0x1df28a['shift']());}}}(_0x1bf5,0x20c1e));import{EmitterMixin as _0x446f6f}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x1a4eb3(0xa3)];function _0x1a8e(_0x2489a0,_0x4bb36a){const _0x1bf576=_0x1bf5();return _0x1a8e=function(_0x1a8ea0,_0x4a4515){_0x1a8ea0=_0x1a8ea0-0x97;let _0x4b67bb=_0x1bf576[_0x1a8ea0];return _0x4b67bb;},_0x1a8e(_0x2489a0,_0x4bb36a);}export class AICapabilities extends _0x446f6f(){[_0x1a4eb3(0xad)];[_0x1a4eb3(0x99)];constructor(){const _0x2e4749=_0x1a4eb3;super(),this[_0x2e4749(0xad)]=!0x1,this[_0x2e4749(0x99)]=!0x1;}[_0x1a4eb3(0x9c)](){const _0x2b4b95=_0x1a4eb3;this[_0x2b4b95(0xae)]();}[_0x1a4eb3(0xae)](){const _0x468c4f=_0x1a4eb3;this[_0x468c4f(0x9b)](!0x1),this[_0x468c4f(0x9f)](!0x1);}[_0x1a4eb3(0xac)](){const _0x14aeae=_0x1a4eb3;return{'isWebSearchEnabled':this[_0x14aeae(0xad)],'isReasoningEnabled':this[_0x14aeae(0x99)]};}static[_0x1a4eb3(0x9d)](_0x3c77d2){const _0x40441f=_0x1a4eb3,_0xa09794={};return _0x3c77d2&&_0x3c77d2[_0x40441f(0xaf)]&&(_0xa09794[_0x40441f(0xaa)]={}),_0x3c77d2&&_0x3c77d2[_0x40441f(0xa6)]&&(_0xa09794[_0x40441f(0xa9)]={}),_0xa09794;}[_0x1a4eb3(0x9a)](){const _0xc384bd=_0x1a4eb3;this[_0xc384bd(0x9b)](!this[_0xc384bd(0xad)]);}[_0x1a4eb3(0xa5)](){const _0x262a09=_0x1a4eb3;this[_0x262a09(0x9f)](!this[_0x262a09(0x99)]);}[_0x1a4eb3(0x9b)](_0x52c3d3){const _0x5909bf=_0x1a4eb3;_0x52c3d3!==this[_0x5909bf(0xad)]&&(this[_0x5909bf(0xad)]=_0x52c3d3,this[_0x5909bf(0xab)](_0x5909bf(0xa3),this[_0x5909bf(0xac)]()));}[_0x1a4eb3(0x9f)](_0x569896){const _0x1d2b09=_0x1a4eb3;_0x569896!==this[_0x1d2b09(0x99)]&&(this[_0x1d2b09(0x99)]=_0x569896,this[_0x1d2b09(0xab)](_0x1d2b09(0xa3),this[_0x1d2b09(0xac)]()));}}function _0x1bf5(){const _0x20e135=['toggleReasoning','isReasoningEnabled','513216fwhoak','6976Ozqkbk','reasoning','webSearch','fire','getCapabilitiesConfig','_isWebSearchEnabled','reset','isWebSearchEnabled','4111470pqpVnr','15736RabGxi','465fBvRqp','_isReasoningEnabled','toggleWebSearch','setWebSearch','init','getCapabilitiesRequestData','594GdJghn','setReasoning','16182LPtLRe','11CIfxtp','1089738wZOaUE','capabilitiesUpdated','212046bgXwBg'];_0x1bf5=function(){return _0x20e135;};return _0x1bf5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x55d246,_0x2cf435){var _0x4b2b53=_0x5542,_0x793766=_0x55d246();while(!![]){try{var _0x515481=-parseInt(_0x4b2b53(0x10d))/0x1*(-parseInt(_0x4b2b53(0x114))/0x2)+-parseInt(_0x4b2b53(0x100))/0x3*(parseInt(_0x4b2b53(0x118))/0x4)+-parseInt(_0x4b2b53(0x11a))/0x5+-parseInt(_0x4b2b53(0x112))/0x6*(-parseInt(_0x4b2b53(0x117))/0x7)+-parseInt(_0x4b2b53(0x105))/0x8*(parseInt(_0x4b2b53(0x113))/0x9)+parseInt(_0x4b2b53(0x116))/0xa*(parseInt(_0x4b2b53(0x119))/0xb)+parseInt(_0x4b2b53(0xfe))/0xc*(parseInt(_0x4b2b53(0x110))/0xd);if(_0x515481===_0x2cf435)break;else _0x793766['push'](_0x793766['shift']());}catch(_0x36f25b){_0x793766['push'](_0x793766['shift']());}}}(_0x54e4,0x3f169));export var AIContextItemType;!function(_0x87e3b9){var _0x5c88b6=_0x5542;_0x87e3b9[_0x5c88b6(0x115)]=_0x5c88b6(0x106),_0x87e3b9[_0x5c88b6(0x10f)]=_0x5c88b6(0x102),_0x87e3b9[_0x5c88b6(0x10c)]=_0x5c88b6(0x104),_0x87e3b9[_0x5c88b6(0x10e)]=_0x5c88b6(0x10b),_0x87e3b9[_0x5c88b6(0x10a)]=_0x5c88b6(0x107),_0x87e3b9[_0x5c88b6(0x101)]=_0x5c88b6(0x108);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;function _0x5542(_0x15574d,_0x2022dc){var _0x54e48c=_0x54e4();return _0x5542=function(_0x554265,_0x24f95d){_0x554265=_0x554265-0xfe;var _0x23d03f=_0x54e48c[_0x554265];return _0x23d03f;},_0x5542(_0x15574d,_0x2022dc);}function _0x54e4(){var _0x29d35c=['51317uwwmUk','11624ViPtRz','385gTaZpn','2547070IfCRCr','9571332tlqxzd','HTML','501LnMBzu','SELECTION','file','MARKDOWN','document','82864gSLsmw','mcp-tool-context','text','selection','markdown','TEXT','web-resource','DOCUMENT','5712eWtQyN','URL','FILE','13ShfspA','html','186oDFVaW','207VJvvkK','122LdPZgg','TOOL','33730xVGOCb'];_0x54e4=function(){return _0x29d35c;};return _0x54e4();}!function(_0x22e5c5){var _0x46cba=_0x5542;_0x22e5c5[_0x46cba(0x10a)]=_0x46cba(0x107),_0x22e5c5[_0x46cba(0x103)]=_0x46cba(0x109),_0x22e5c5[_0x46cba(0xff)]=_0x46cba(0x111);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0xcbadcc,_0x232657){var _0x5eb05c=_0x2d5f,_0x59a72b=_0xcbadcc();while(!![]){try{var _0x2b2113=parseInt(_0x5eb05c(0x1ba))/0x1*(-parseInt(_0x5eb05c(0x1b5))/0x2)+-parseInt(_0x5eb05c(0x1bb))/0x3*(parseInt(_0x5eb05c(0x1bc))/0x4)+-parseInt(_0x5eb05c(0x1b2))/0x5+-parseInt(_0x5eb05c(0x1b9))/0x6+parseInt(_0x5eb05c(0x1c2))/0x7+parseInt(_0x5eb05c(0x1c5))/0x8*(parseInt(_0x5eb05c(0x1b4))/0x9)+parseInt(_0x5eb05c(0x1c9))/0xa;if(_0x2b2113===_0x232657)break;else _0x59a72b['push'](_0x59a72b['shift']());}catch(_0x401dfa){_0x59a72b['push'](_0x59a72b['shift']());}}}(_0x11f7,0x3c748));export var AIContextItemType;!function(_0x49430c){var _0x5104ca=_0x2d5f;_0x49430c[_0x5104ca(0x1c0)]=_0x5104ca(0x1be),_0x49430c[_0x5104ca(0x1c6)]=_0x5104ca(0x1c4),_0x49430c[_0x5104ca(0x1b8)]=_0x5104ca(0x1bf),_0x49430c[_0x5104ca(0x1ca)]=_0x5104ca(0x1bd),_0x49430c[_0x5104ca(0x1c7)]=_0x5104ca(0x1b1),_0x49430c[_0x5104ca(0x1b7)]=_0x5104ca(0x1c8);}(AIContextItemType||(AIContextItemType={}));function _0x11f7(){var _0x38dcd9=['HTML','9LkmPPg','3768ovWsnq','MARKDOWN','SELECTION','DOCUMENT','1439172jVnzuL','3NhDLHc','198444ZxIkje','4VzLmpS','web-resource','mcp-tool-context','document','TOOL','markdown','2985164llrFtc','html','file','3576744hOkKTu','FILE','TEXT','selection','1201950DomDvO','URL','text','2172270EWqtOQ'];_0x11f7=function(){return _0x38dcd9;};return _0x11f7();}function _0x2d5f(_0x489cd4,_0x4fe16d){var _0x11f753=_0x11f7();return _0x2d5f=function(_0x2d5f42,_0x35658b){_0x2d5f42=_0x2d5f42-0x1b1;var _0x61493=_0x11f753[_0x2d5f42];return _0x61493;},_0x2d5f(_0x489cd4,_0x4fe16d);}export var AIContextTextResourceType;!function(_0x3d802c){var _0x2514d8=_0x2d5f;_0x3d802c[_0x2514d8(0x1c7)]=_0x2514d8(0x1b1),_0x3d802c[_0x2514d8(0x1b6)]=_0x2514d8(0x1c1),_0x3d802c[_0x2514d8(0x1b3)]=_0x2514d8(0x1c3);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x518241=_0x5d74;function _0x5d74(_0x569abc,_0x16b16f){const _0x76ee3c=_0x76ee();return _0x5d74=function(_0x5d74ea,_0x235e1a){_0x5d74ea=_0x5d74ea-0x1db;let _0xfd9b2b=_0x76ee3c[_0x5d74ea];return _0xfd9b2b;},_0x5d74(_0x569abc,_0x16b16f);}(function(_0x51bf6a,_0x5a9e64){const _0x5a2446=_0x5d74,_0x3784a3=_0x51bf6a();while(!![]){try{const _0x540c88=parseInt(_0x5a2446(0x1e5))/0x1*(-parseInt(_0x5a2446(0x217))/0x2)+-parseInt(_0x5a2446(0x208))/0x3*(parseInt(_0x5a2446(0x224))/0x4)+parseInt(_0x5a2446(0x215))/0x5+-parseInt(_0x5a2446(0x1fb))/0x6+-parseInt(_0x5a2446(0x221))/0x7+parseInt(_0x5a2446(0x218))/0x8*(-parseInt(_0x5a2446(0x203))/0x9)+parseInt(_0x5a2446(0x1fc))/0xa*(parseInt(_0x5a2446(0x225))/0xb);if(_0x540c88===_0x5a9e64)break;else _0x3784a3['push'](_0x3784a3['shift']());}catch(_0x36c566){_0x3784a3['push'](_0x3784a3['shift']());}}}(_0x76ee,0xafc13));function _0x76ee(){const _0x37c72e=['ai-chat-interaction-error','messageId','toolDataReceived','push','interactionCreated','modification','replyContentUpdated','mcp-tool-notification','action-metadata','replies','resetReasoningState','actionCallId','2725215PAAoOS','fire','2BEIKBD','9374024krprcx','getDocumentContext','interactionFinished','currentReply','reasoningFinished','conversationTitle','data','interactionDestroyed','interactionStopped','2512055bxHKIJ','toolName','message-metadata','248KtHVNj','33919413lpfKGz','getStream','_isWebSearching','reasoningStarted','abort','start','currentRequest','mcp-tool-result','connector','modification-delta','isStopped','stopListening','find','error','editor','replyCreated','web-search','webSearchStarted','attributes','notification','destroy','length','sources','reasoning','91007cWFVIU','parse','text','event','webSearchFinished','done','createReply','_handleToolResultData','abortController','resetWebSearchState','setConversationTitle','_handleToolNotificationData','source','getReply','_isReasoning','replyChangeGroupStateUpdated','type','interactionStarted','splice','textDelta','_finalizeInteraction','content','209004txOyth','10QEXmTS','stop','callId','text-delta','isDestroyed','appendContent','delegate','9pkyEem','forEach','result','sendRequest','conversation-title','60594BkHLZc'];_0x76ee=function(){return _0x37c72e;};return _0x76ee();}import{CKEditorError as _0x12d68a,EmitterMixin as _0x28100d,uid as _0x24e4b5}from'ckeditor5/src/utils.js';import{AIReply as _0x57a8bc}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x518241(0x20d),_0x518241(0x1f6),_0x518241(0x220),_0x518241(0x21a),_0x518241(0x21f),_0x518241(0x1dc),_0x518241(0x20f),_0x518241(0x1f4),_0x518241(0x1ef),_0x518241(0x1de),_0x518241(0x1e9),_0x518241(0x228),_0x518241(0x21c),_0x518241(0x20b),_0x518241(0x232)];export class AIInteraction extends _0x28100d(){['id'];[_0x518241(0x212)]=[];[_0x518241(0x21b)];[_0x518241(0x20a)];[_0x518241(0x214)];[_0x518241(0x22b)];[_0x518241(0x22d)];[_0x518241(0x22f)]=!0x1;[_0x518241(0x200)]=!0x1;[_0x518241(0x1db)];[_0x518241(0x1f3)]=!0x1;[_0x518241(0x227)]=!0x1;constructor({connector:_0x59d421,editor:_0x2e5440}){const _0x3337cb=_0x518241;super(),this['id']=_0x24e4b5(),this[_0x3337cb(0x22d)]=_0x59d421,this[_0x3337cb(0x22f)]=!0x0,this[_0x3337cb(0x1db)]=_0x2e5440;}async[_0x518241(0x22a)](){const _0x4bbf66=_0x518241,_0x253158=[];let _0x948757,_0x22e00c,_0x2d1ba0;this[_0x4bbf66(0x22f)]=!0x1;try{this[_0x4bbf66(0x22b)]=await this[_0x4bbf66(0x206)](),this[_0x4bbf66(0x216)](_0x4bbf66(0x1f6),this);const _0x14630d=await this[_0x4bbf66(0x22b)][_0x4bbf66(0x226)]();for await(const _0x390807 of _0x14630d){if(this[_0x4bbf66(0x22f)])return;if(_0x4bbf66(0x232)==_0x390807[_0x4bbf66(0x1e8)])return void this[_0x4bbf66(0x216)](_0x4bbf66(0x232),{'error':new _0x12d68a(_0x4bbf66(0x209),this)});switch(_0x390807[_0x4bbf66(0x1e8)]){case _0x4bbf66(0x223):this[_0x4bbf66(0x20a)]=_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x20a)];break;case _0x4bbf66(0x211):this[_0x4bbf66(0x214)]=_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1fe)];break;case _0x4bbf66(0x207):this[_0x4bbf66(0x1ef)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x21d)],!0x0);break;case _0x4bbf66(0x1f1):_0x253158[_0x4bbf66(0x20c)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1f1)]);break;case _0x4bbf66(0x1dd):this[_0x4bbf66(0x227)]||(this[_0x4bbf66(0x227)]=!0x0,this[_0x4bbf66(0x216)](_0x4bbf66(0x1de),this));break;case _0x4bbf66(0x1e4):this[_0x4bbf66(0x1f3)]||(this[_0x4bbf66(0x1f3)]=!0x0,this[_0x4bbf66(0x216)](_0x4bbf66(0x228),this));break;case _0x4bbf66(0x22e):case _0x4bbf66(0x1ff):this[_0x4bbf66(0x213)](),this[_0x4bbf66(0x1ee)](),_0x948757=_0x4bbf66(0x22e)==_0x390807[_0x4bbf66(0x1e8)]?_0x4bbf66(0x20e):_0x4bbf66(0x1e7),_0x22e00c=_0x4bbf66(0x22e)==_0x390807[_0x4bbf66(0x1e8)]?_0x390807[_0x4bbf66(0x21e)]['id']:void 0x0,this[_0x4bbf66(0x21b)]&&this[_0x4bbf66(0x21b)][_0x4bbf66(0x1f5)]!=_0x948757&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1ea)](),this[_0x4bbf66(0x21b)]=void 0x0),this[_0x4bbf66(0x21b)]||(this[_0x4bbf66(0x21b)]=this[_0x4bbf66(0x1eb)]({'type':_0x948757,'interactionId':this['id'],'id':_0x22e00c}),_0x4bbf66(0x20e)==_0x948757&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1e3)]=_0x253158[_0x4bbf66(0x1f7)](0x0))),this[_0x4bbf66(0x21b)][_0x4bbf66(0x201)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x1f8)]);break;case _0x4bbf66(0x22c):_0x2d1ba0=JSON[_0x4bbf66(0x1e6)](_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x205)]),this[_0x4bbf66(0x1ec)]({'toolName':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x222)],'data':_0x2d1ba0[_0x4bbf66(0x21e)],'attributes':_0x2d1ba0[_0x4bbf66(0x1df)]});break;case _0x4bbf66(0x210):this[_0x4bbf66(0x1f0)]({'toolName':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x222)],'data':_0x390807[_0x4bbf66(0x21e)][_0x4bbf66(0x21e)]});}}}finally{this[_0x4bbf66(0x22f)]||(this[_0x4bbf66(0x21b)]&&_0x253158[_0x4bbf66(0x1e2)]>0x0&&(this[_0x4bbf66(0x21b)][_0x4bbf66(0x1e3)]=_0x253158[_0x4bbf66(0x1f7)](0x0)),this[_0x4bbf66(0x1f9)](),this[_0x4bbf66(0x216)](_0x4bbf66(0x21a),this));}}[_0x518241(0x1fd)](){const _0x44ad1f=_0x518241;this[_0x44ad1f(0x22f)]||(this[_0x44ad1f(0x1f9)](),this[_0x44ad1f(0x216)](_0x44ad1f(0x220),this));}[_0x518241(0x1f2)](_0x57a7af){const _0x5d6c77=_0x518241;return this[_0x5d6c77(0x212)][_0x5d6c77(0x231)](_0x4e01c0=>_0x4e01c0['id']===_0x57a7af);}[_0x518241(0x1e1)](){const _0x1c31b9=_0x518241;this[_0x1c31b9(0x200)]||(this[_0x1c31b9(0x1fd)](),this[_0x1c31b9(0x212)][_0x1c31b9(0x204)](_0x4d3541=>_0x4d3541[_0x1c31b9(0x1e1)]()),this[_0x1c31b9(0x212)]=[],this[_0x1c31b9(0x200)]=!0x0,this[_0x1c31b9(0x216)](_0x1c31b9(0x21f),this),this[_0x1c31b9(0x230)]());}[_0x518241(0x1eb)](_0xe93452){const _0x5b862e=_0x518241,_0x57292f=new _0x57a8bc({'editor':this[_0x5b862e(0x1db)],'documentContextContent':this[_0x5b862e(0x219)]()?.[_0x5b862e(0x1fa)],..._0xe93452});return this[_0x5b862e(0x212)][_0x5b862e(0x20c)](_0x57292f),_0x57292f[_0x5b862e(0x202)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x5b862e(0x216)](_0x5b862e(0x1dc),_0x57292f),_0x57292f;}[_0x518241(0x1ef)](_0x27df6e,_0x6a5022=!0x1){const _0x12f056=_0x518241;this[_0x12f056(0x216)](_0x12f056(0x1ef),_0x27df6e,_0x6a5022);}[_0x518241(0x1ee)](){const _0x3a5a56=_0x518241;this[_0x3a5a56(0x227)]&&(this[_0x3a5a56(0x227)]=!0x1,this[_0x3a5a56(0x216)](_0x3a5a56(0x1e9),this));}[_0x518241(0x213)](){const _0x5e4527=_0x518241;this[_0x5e4527(0x1f3)]&&(this[_0x5e4527(0x1f3)]=!0x1,this[_0x5e4527(0x216)](_0x5e4527(0x21c),this));}[_0x518241(0x1ec)](_0x534ae0){const _0x127778=_0x518241;this[_0x127778(0x216)](_0x127778(0x20b),{'type':_0x127778(0x205),'toolName':_0x534ae0[_0x127778(0x222)],'data':structuredClone(_0x534ae0[_0x127778(0x21e)]||{}),'attributes':structuredClone(_0x534ae0[_0x127778(0x1df)]||{})},this);}[_0x518241(0x1f0)](_0x1b312c){const _0x4c6aff=_0x518241;this[_0x4c6aff(0x216)](_0x4c6aff(0x20b),{'type':_0x4c6aff(0x1e0),'toolName':_0x1b312c[_0x4c6aff(0x222)],'data':structuredClone(_0x1b312c[_0x4c6aff(0x21e)])},this);}[_0x518241(0x1f9)](){const _0x1fe623=_0x518241;this[_0x1fe623(0x22f)]=!0x0,this[_0x1fe623(0x22b)]&&this[_0x1fe623(0x22b)][_0x1fe623(0x1ed)][_0x1fe623(0x229)](),this[_0x1fe623(0x21b)]&&this[_0x1fe623(0x21b)][_0x1fe623(0x1ea)](),this[_0x1fe623(0x22b)]=this[_0x1fe623(0x21b)]=void 0x0;}}
23
+ const _0x258f13=_0x4c70;function _0x4c70(_0x49dc75,_0x50c8fb){const _0x352aa3=_0x352a();return _0x4c70=function(_0x4c70c6,_0x1d0437){_0x4c70c6=_0x4c70c6-0xc5;let _0x5966ab=_0x352aa3[_0x4c70c6];return _0x5966ab;},_0x4c70(_0x49dc75,_0x50c8fb);}(function(_0x3eeaac,_0x399316){const _0x32dbb6=_0x4c70,_0x3b4ff0=_0x3eeaac();while(!![]){try{const _0x3280ae=-parseInt(_0x32dbb6(0x10d))/0x1*(parseInt(_0x32dbb6(0xe7))/0x2)+-parseInt(_0x32dbb6(0xfc))/0x3*(-parseInt(_0x32dbb6(0x102))/0x4)+-parseInt(_0x32dbb6(0xd5))/0x5+parseInt(_0x32dbb6(0xde))/0x6*(-parseInt(_0x32dbb6(0xf9))/0x7)+-parseInt(_0x32dbb6(0xd9))/0x8+-parseInt(_0x32dbb6(0xd0))/0x9+parseInt(_0x32dbb6(0xd4))/0xa;if(_0x3280ae===_0x399316)break;else _0x3b4ff0['push'](_0x3b4ff0['shift']());}catch(_0x5087c9){_0x3b4ff0['push'](_0x3b4ff0['shift']());}}}(_0x352a,0xb7949));function _0x352a(){const _0xd6854b=['sendRequest','start','messageId','attributes','toolDataReceived','parse','connector','mcp-tool-result','error','210620dHuxdj','data','content','interactionDestroyed','find','abort','editor','reasoningFinished','isStopped','interactionCreated','_isWebSearching','reasoningStarted','toolName','notification','_handleToolResultData','forEach','webSearchFinished','destroy','conversation-title','getDocumentContext','stop','stopListening','message-metadata','push','result','text-delta','3351339mfWsFy','interactionStopped','isDestroyed','action-metadata','13669610FPHoxr','1095690joQvZn','replyContentUpdated','webSearchStarted','currentRequest','8299272eHhxhU','text','splice','fire','modification','46356fEyxJi','actionCallId','_handleToolNotificationData','resetWebSearchState','abortController','_finalizeInteraction','callId','source','reasoning','2yPRsvU','resetReasoningState','event','interactionFinished','modification-delta','length','setConversationTitle','web-search','delegate','appendContent','type','done','sources','getStream','replyChangeGroupStateUpdated','conversationTitle','replies','currentReply','77wSKYrI','ai-chat-interaction-error','textDelta','1329aeSLmA','replyCreated','mcp-tool-notification','getReply','_isReasoning','createReply','11824rkWHvS','interactionStarted'];_0x352a=function(){return _0xd6854b;};return _0x352a();}import{CKEditorError as _0xee183e,EmitterMixin as _0x1a2161,uid as _0xca30e0}from'ckeditor5/src/utils.js';import{AIReply as _0x3a470c}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x258f13(0x116),_0x258f13(0x103),_0x258f13(0xd1),_0x258f13(0xea),_0x258f13(0x110),_0x258f13(0xfd),_0x258f13(0xd6),_0x258f13(0xf5),_0x258f13(0xed),_0x258f13(0xd7),_0x258f13(0xc6),_0x258f13(0x118),_0x258f13(0x114),_0x258f13(0x108),_0x258f13(0x10c)];export class AIInteraction extends _0x1a2161(){['id'];[_0x258f13(0xf7)]=[];[_0x258f13(0xf8)];[_0x258f13(0x106)];[_0x258f13(0xdf)];[_0x258f13(0xd8)];[_0x258f13(0x10a)];[_0x258f13(0x115)]=!0x1;[_0x258f13(0xd2)]=!0x1;[_0x258f13(0x113)];[_0x258f13(0x100)]=!0x1;[_0x258f13(0x117)]=!0x1;constructor({connector:_0x51abf9,editor:_0x65cb61}){const _0x5e276b=_0x258f13;super(),this['id']=_0xca30e0(),this[_0x5e276b(0x10a)]=_0x51abf9,this[_0x5e276b(0x115)]=!0x0,this[_0x5e276b(0x113)]=_0x65cb61;}async[_0x258f13(0x105)](){const _0x4b1932=_0x258f13,_0x812df3=[];let _0x3eb8a1,_0x4c7d9b,_0x44832e;this[_0x4b1932(0x115)]=!0x1;try{this[_0x4b1932(0xd8)]=await this[_0x4b1932(0x104)](),this[_0x4b1932(0xdc)](_0x4b1932(0x103),this);const _0x2733be=await this[_0x4b1932(0xd8)][_0x4b1932(0xf4)]();for await(const _0x52e30d of _0x2733be){if(this[_0x4b1932(0x115)])return;if(_0x4b1932(0x10c)==_0x52e30d[_0x4b1932(0xe9)])return void this[_0x4b1932(0xdc)](_0x4b1932(0x10c),{'error':new _0xee183e(_0x4b1932(0xfa),this)});switch(_0x52e30d[_0x4b1932(0xe9)]){case _0x4b1932(0xcc):this[_0x4b1932(0x106)]=_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x106)];break;case _0x4b1932(0xd3):this[_0x4b1932(0xdf)]=_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xe4)];break;case _0x4b1932(0xc8):this[_0x4b1932(0xed)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xf6)],!0x0);break;case _0x4b1932(0xe5):_0x812df3[_0x4b1932(0xcd)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xe5)]);break;case _0x4b1932(0xee):this[_0x4b1932(0x117)]||(this[_0x4b1932(0x117)]=!0x0,this[_0x4b1932(0xdc)](_0x4b1932(0xd7),this));break;case _0x4b1932(0xe6):this[_0x4b1932(0x100)]||(this[_0x4b1932(0x100)]=!0x0,this[_0x4b1932(0xdc)](_0x4b1932(0x118),this));break;case _0x4b1932(0xeb):case _0x4b1932(0xcf):this[_0x4b1932(0xe8)](),this[_0x4b1932(0xe1)](),_0x3eb8a1=_0x4b1932(0xeb)==_0x52e30d[_0x4b1932(0xe9)]?_0x4b1932(0xdd):_0x4b1932(0xda),_0x4c7d9b=_0x4b1932(0xeb)==_0x52e30d[_0x4b1932(0xe9)]?_0x52e30d[_0x4b1932(0x10e)]['id']:void 0x0,this[_0x4b1932(0xf8)]&&this[_0x4b1932(0xf8)][_0x4b1932(0xf1)]!=_0x3eb8a1&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf2)](),this[_0x4b1932(0xf8)]=void 0x0),this[_0x4b1932(0xf8)]||(this[_0x4b1932(0xf8)]=this[_0x4b1932(0x101)]({'type':_0x3eb8a1,'interactionId':this['id'],'id':_0x4c7d9b}),_0x4b1932(0xdd)==_0x3eb8a1&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf3)]=_0x812df3[_0x4b1932(0xdb)](0x0))),this[_0x4b1932(0xf8)][_0x4b1932(0xf0)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xfb)]);break;case _0x4b1932(0x10b):_0x44832e=JSON[_0x4b1932(0x109)](_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0xce)]),this[_0x4b1932(0x11b)]({'toolName':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x119)],'data':_0x44832e[_0x4b1932(0x10e)],'attributes':_0x44832e[_0x4b1932(0x107)]});break;case _0x4b1932(0xfe):this[_0x4b1932(0xe0)]({'toolName':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x119)],'data':_0x52e30d[_0x4b1932(0x10e)][_0x4b1932(0x10e)]});}}}finally{this[_0x4b1932(0x115)]||(this[_0x4b1932(0xf8)]&&_0x812df3[_0x4b1932(0xec)]>0x0&&(this[_0x4b1932(0xf8)][_0x4b1932(0xf3)]=_0x812df3[_0x4b1932(0xdb)](0x0)),this[_0x4b1932(0xe3)](),this[_0x4b1932(0xdc)](_0x4b1932(0xea),this));}}[_0x258f13(0xca)](){const _0x1f0c24=_0x258f13;this[_0x1f0c24(0x115)]||(this[_0x1f0c24(0xe3)](),this[_0x1f0c24(0xdc)](_0x1f0c24(0xd1),this));}[_0x258f13(0xff)](_0xd04daa){const _0xfbe221=_0x258f13;return this[_0xfbe221(0xf7)][_0xfbe221(0x111)](_0x55dc92=>_0x55dc92['id']===_0xd04daa);}[_0x258f13(0xc7)](){const _0x10347b=_0x258f13;this[_0x10347b(0xd2)]||(this[_0x10347b(0xca)](),this[_0x10347b(0xf7)][_0x10347b(0xc5)](_0x861183=>_0x861183[_0x10347b(0xc7)]()),this[_0x10347b(0xf7)]=[],this[_0x10347b(0xd2)]=!0x0,this[_0x10347b(0xdc)](_0x10347b(0x110),this),this[_0x10347b(0xcb)]());}[_0x258f13(0x101)](_0x50f9dd){const _0x2739a4=_0x258f13,_0x2b75df=new _0x3a470c({'editor':this[_0x2739a4(0x113)],'documentContextContent':this[_0x2739a4(0xc9)]()?.[_0x2739a4(0x10f)],..._0x50f9dd});return this[_0x2739a4(0xf7)][_0x2739a4(0xcd)](_0x2b75df),_0x2b75df[_0x2739a4(0xef)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2739a4(0xdc)](_0x2739a4(0xfd),_0x2b75df),_0x2b75df;}[_0x258f13(0xed)](_0x15d84e,_0x1d2c48=!0x1){const _0x4236af=_0x258f13;this[_0x4236af(0xdc)](_0x4236af(0xed),_0x15d84e,_0x1d2c48);}[_0x258f13(0xe1)](){const _0x30b503=_0x258f13;this[_0x30b503(0x117)]&&(this[_0x30b503(0x117)]=!0x1,this[_0x30b503(0xdc)](_0x30b503(0xc6),this));}[_0x258f13(0xe8)](){const _0x1e8f79=_0x258f13;this[_0x1e8f79(0x100)]&&(this[_0x1e8f79(0x100)]=!0x1,this[_0x1e8f79(0xdc)](_0x1e8f79(0x114),this));}[_0x258f13(0x11b)](_0x3141f3){const _0x572509=_0x258f13;this[_0x572509(0xdc)](_0x572509(0x108),{'type':_0x572509(0xce),'toolName':_0x3141f3[_0x572509(0x119)],'data':structuredClone(_0x3141f3[_0x572509(0x10e)]||{}),'attributes':structuredClone(_0x3141f3[_0x572509(0x107)]||{})},this);}[_0x258f13(0xe0)](_0x1b9734){const _0x548262=_0x258f13;this[_0x548262(0xdc)](_0x548262(0x108),{'type':_0x548262(0x11a),'toolName':_0x1b9734[_0x548262(0x119)],'data':structuredClone(_0x1b9734[_0x548262(0x10e)])},this);}[_0x258f13(0xe3)](){const _0x144db4=_0x258f13;this[_0x144db4(0x115)]=!0x0,this[_0x144db4(0xd8)]&&this[_0x144db4(0xd8)][_0x144db4(0xe2)][_0x144db4(0x112)](),this[_0x144db4(0xf8)]&&this[_0x144db4(0xf8)][_0x144db4(0xf2)](),this[_0x144db4(0xd8)]=this[_0x144db4(0xf8)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eeed0=_0x5d78;(function(_0x2e6185,_0x8d9fcc){const _0x415ae8=_0x5d78,_0x489887=_0x2e6185();while(!![]){try{const _0x798bed=parseInt(_0x415ae8(0xc7))/0x1*(parseInt(_0x415ae8(0xd2))/0x2)+-parseInt(_0x415ae8(0xec))/0x3+-parseInt(_0x415ae8(0xdd))/0x4*(parseInt(_0x415ae8(0xc9))/0x5)+parseInt(_0x415ae8(0xce))/0x6*(parseInt(_0x415ae8(0xcf))/0x7)+-parseInt(_0x415ae8(0xe5))/0x8+-parseInt(_0x415ae8(0xc6))/0x9+parseInt(_0x415ae8(0xe2))/0xa*(parseInt(_0x415ae8(0xd1))/0xb);if(_0x798bed===_0x8d9fcc)break;else _0x489887['push'](_0x489887['shift']());}catch(_0x4d587d){_0x489887['push'](_0x489887['shift']());}}}(_0x1ea6,0x735b6));import{EmitterMixin as _0x1a0fad,logWarning as _0x25c552,logError as _0x324518}from'ckeditor5/src/utils.js';function _0x5d78(_0x2e6ad7,_0x497fac){const _0x1ea693=_0x1ea6();return _0x5d78=function(_0x5d7840,_0x13def7){_0x5d7840=_0x5d7840-0xbb;let _0x4a481d=_0x1ea693[_0x5d7840];return _0x4a481d;},_0x5d78(_0x2e6ad7,_0x497fac);}import{getTranslation as _0xdde8ff}from'../utils/common-translations.js';export class AIModels extends _0x1a0fad(){[_0x4eeed0(0xef)];[_0x4eeed0(0xc3)];[_0x4eeed0(0xd8)];[_0x4eeed0(0xbb)]=[];[_0x4eeed0(0xe9)]=null;constructor({connector:_0xbe3591,config:_0x3fdc88,locale:_0x56fd50}){const _0x22bd1b=_0x4eeed0;super(),this[_0x22bd1b(0xef)]=_0xbe3591,this[_0x22bd1b(0xc3)]=_0x3fdc88,this[_0x22bd1b(0xd8)]=_0x56fd50;}get[_0x4eeed0(0xc0)](){const _0x5750fe=_0x4eeed0;return this[_0x5750fe(0xc3)]?.[_0x5750fe(0xd6)];}get[_0x4eeed0(0xed)](){const _0x2a1daf=_0x4eeed0;return this[_0x2a1daf(0xc3)]?.[_0x2a1daf(0xe7)];}async[_0x4eeed0(0xcc)](){const _0x2347ab=_0x4eeed0;return this[_0x2347ab(0xe9)]||(this[_0x2347ab(0xe9)]=this[_0x2347ab(0xc1)]()),this[_0x2347ab(0xe9)];}async[_0x4eeed0(0xee)](){const _0x24bf23=_0x4eeed0,_0xf74d0a=await this[_0x24bf23(0xcc)]();let _0x3850e0;return _0x3850e0=this[_0x24bf23(0xc0)]?this[_0x24bf23(0xe0)](_0xf74d0a,this[_0x24bf23(0xc0)]):_0xf74d0a[_0x24bf23(0xe6)](_0x7417d2=>_0x7417d2[_0x24bf23(0xd4)]),_0x3850e0;}async[_0x4eeed0(0xc2)](_0x36075f){const _0x36e99d=_0x4eeed0,_0x410dc8=await this[_0x36e99d(0xcc)]();if(!_0x410dc8[_0x36e99d(0xca)])return null;if(_0x36075f){const _0x39d82c=this[_0x36e99d(0xbf)](_0x410dc8,_0x36075f);if(_0x39d82c)return _0x39d82c;_0x25c552(_0x36e99d(0xe4),{'modelId':_0x36075f,'fallBackModelId':this[_0x36e99d(0xed)]});}return this[_0x36e99d(0xbe)]();}async[_0x4eeed0(0xbe)](){const _0xf0c4ee=_0x4eeed0,_0x47df07=await this[_0xf0c4ee(0xee)]();if(!_0x47df07[_0xf0c4ee(0xca)])return null;if(this[_0xf0c4ee(0xed)]){const _0x78e8a7=this[_0xf0c4ee(0xbf)](_0x47df07,this[_0xf0c4ee(0xed)]);if(_0x78e8a7)return _0x78e8a7;_0x25c552(_0xf0c4ee(0xde),{'defaultModelId':this[_0xf0c4ee(0xed)],'fallBackModelId':_0x47df07[0x0]['id']});}return _0x47df07[0x0];}async[_0x4eeed0(0xe3)](_0x5cb8d4){const _0x14503e=_0x4eeed0;return(await this[_0x14503e(0xee)]())[_0x14503e(0xd3)](_0x52368a=>_0x52368a[_0x14503e(0xbc)]===_0x5cb8d4[_0x14503e(0xbc)]&&_0x52368a[_0x14503e(0xe8)]===_0x5cb8d4[_0x14503e(0xe8)]);}async[_0x4eeed0(0xc1)](){const _0xd8a65b=_0x4eeed0;if(!this[_0xd8a65b(0xbb)][_0xd8a65b(0xca)])try{const _0x5eb086=this[_0xd8a65b(0xd8)][_0xd8a65b(0xdc)]||'en',_0x24fbb3=this[_0xd8a65b(0xef)][_0xd8a65b(0xdf)](_0x5eb086),_0x86d1a6=await _0x24fbb3[_0xd8a65b(0xc8)]();this[_0xd8a65b(0xbb)]=_0x86d1a6[_0xd8a65b(0xcb)][_0xd8a65b(0xda)](_0xe1ea9f=>qi(_0xe1ea9f)?{..._0xe1ea9f,'name':_0xdde8ff(this[_0xd8a65b(0xd8)],_0xd8a65b(0xcd))}:_0xe1ea9f);}catch(_0x3c59ad){throw _0x324518(_0xd8a65b(0xdb),{'error':_0x3c59ad}),_0x3c59ad;}return[...this[_0xd8a65b(0xbb)]];}[_0x4eeed0(0xe0)](_0x19113e,_0x2fac6b){const _0x2b1318=_0x4eeed0;let _0xc8d44c;if(_0x2fac6b){_0xc8d44c=[];const _0x5d2aa7=new Set(),_0x530aaa=_0x2b1318(0xd7)==typeof _0x2fac6b?[_0x2fac6b[_0x2b1318(0xea)]()]:_0x2fac6b[_0x2b1318(0xda)](_0x5d408f=>_0x5d408f[_0x2b1318(0xea)]());for(const _0x541098 of _0x530aaa)for(const _0x86ec90 of _0x19113e)!_0x5d2aa7[_0x2b1318(0xd0)](_0x86ec90['id'])&&this[_0x2b1318(0xc4)](_0x86ec90,_0x541098)&&(_0xc8d44c[_0x2b1318(0xbd)](_0x86ec90),_0x5d2aa7[_0x2b1318(0xeb)](_0x86ec90['id']));}else _0xc8d44c=_0x19113e;return _0xc8d44c;}[_0x4eeed0(0xc4)](_0xe30c0d,_0x1c2437){const _0xd7439b=_0x4eeed0,_0x2fa9e9=_0xe30c0d['id'][_0xd7439b(0xea)](),_0x5f49e1=_0xe30c0d[_0xd7439b(0xbc)][_0xd7439b(0xea)](),_0x49f724=_0xe30c0d[_0xd7439b(0xe8)][_0xd7439b(0xea)]();return _0x2fa9e9===_0x1c2437||_0x5f49e1===_0x1c2437||qi(_0xe30c0d)&&_0xd7439b(0xe1)===_0x1c2437||_0x49f724===_0x1c2437||_0x2fa9e9[_0xd7439b(0xd9)](_0x1c2437);}[_0x4eeed0(0xbf)](_0x47c227,_0x10a911){const _0x40a4c3=_0x4eeed0;return _0x47c227[_0x40a4c3(0xd5)](_0x24f753=>qi(_0x24f753)&&_0x40a4c3(0xe1)===_0x10a911?_0x24f753:_0x24f753['id']===_0x10a911)||null;}}function _0x1ea6(){const _0x8dad27=['push','getDefault','_getModelById','_availableModels','_retrieveModels','getModel','_config','_isMatchingFilter','agent','3368205wSBiZW','6898yPWTcY','list','10aNTaYm','length','items','getAll','AI_MODEL_NAME_AUTO','873870BmcVLi','35lUiBVy','has','15747545FwFlEq','158kHXBIR','some','recommended','find','displayedModels','string','_locale','startsWith','map','ai-models-unable-to-retrieve','uiLanguage','455276TRJFiZ','ai-chat-default-model-id-unrecognized','getModels','_filterModels','auto','10iWBofA','isAvailable','ai-chat-model-id-unrecognized','6470048tuXLzX','filter','defaultModelId','provider','_modelsRequest','toLocaleLowerCase','add','2464863WdrlnL','_defaultModelId','getAvailableModels','_connector','_modelList','name'];_0x1ea6=function(){return _0x8dad27;};return _0x1ea6();}function qi(_0x42ee43){const _0x3fdf40=_0x4eeed0;return _0x42ee43['id'][_0x3fdf40(0xd9)](_0x3fdf40(0xc5));}
23
+ const _0x58f1c2=_0xd0a2;(function(_0xa71ec,_0x7c50ed){const _0x40d4ae=_0xd0a2,_0x593597=_0xa71ec();while(!![]){try{const _0x1211d9=parseInt(_0x40d4ae(0x8f))/0x1+parseInt(_0x40d4ae(0x7e))/0x2+-parseInt(_0x40d4ae(0x7d))/0x3+parseInt(_0x40d4ae(0x67))/0x4+parseInt(_0x40d4ae(0x8c))/0x5*(-parseInt(_0x40d4ae(0x85))/0x6)+-parseInt(_0x40d4ae(0x8a))/0x7*(-parseInt(_0x40d4ae(0x86))/0x8)+-parseInt(_0x40d4ae(0x65))/0x9;if(_0x1211d9===_0x7c50ed)break;else _0x593597['push'](_0x593597['shift']());}catch(_0x13dfc7){_0x593597['push'](_0x593597['shift']());}}}(_0x5a08,0x51cac));function _0xd0a2(_0x282e41,_0x4b69e2){const _0x5a0852=_0x5a08();return _0xd0a2=function(_0xd0a25e,_0x1e6175){_0xd0a25e=_0xd0a25e-0x65;let _0x5cfc53=_0x5a0852[_0xd0a25e];return _0x5cfc53;},_0xd0a2(_0x282e41,_0x4b69e2);}import{EmitterMixin as _0x5afee6,logWarning as _0x56f134,logError as _0x523e96}from'ckeditor5/src/utils.js';import{getTranslation as _0x40972f}from'../utils/common-translations.js';function _0x5a08(){const _0x314ab1=['AI_MODEL_NAME_AUTO','isAvailable','749UXjRTn','startsWith','791085wCzjSM','agent','_isMatchingFilter','374628hJWTdY','getModel','getDefault','length','_modelList','ai-chat-model-id-unrecognized','ai-models-unable-to-retrieve','recommended','toLocaleLowerCase','3698010QWYutz','name','1450688mIqLPC','items','_locale','_retrieveModels','_modelsRequest','some','getAvailableModels','find','_availableModels','string','provider','defaultModelId','_connector','push','add','displayedModels','has','getAll','filter','_config','ai-chat-default-model-id-unrecognized','_getModelById','805254fYfSTU','761492bufjJH','getModels','_filterModels','uiLanguage','list','map','auto','12wEwzWK','15904gAFxIt','_defaultModelId'];_0x5a08=function(){return _0x314ab1;};return _0x5a08();}export class AIModels extends _0x5afee6(){[_0x58f1c2(0x73)];[_0x58f1c2(0x7a)];[_0x58f1c2(0x69)];[_0x58f1c2(0x93)]=[];[_0x58f1c2(0x6b)]=null;constructor({connector:_0x2ed283,config:_0x2024bf,locale:_0x8486b4}){const _0x1ea99b=_0x58f1c2;super(),this[_0x1ea99b(0x73)]=_0x2ed283,this[_0x1ea99b(0x7a)]=_0x2024bf,this[_0x1ea99b(0x69)]=_0x8486b4;}get[_0x58f1c2(0x6f)](){const _0x501950=_0x58f1c2;return this[_0x501950(0x7a)]?.[_0x501950(0x76)];}get[_0x58f1c2(0x87)](){const _0x2bfc91=_0x58f1c2;return this[_0x2bfc91(0x7a)]?.[_0x2bfc91(0x72)];}async[_0x58f1c2(0x78)](){const _0x182826=_0x58f1c2;return this[_0x182826(0x6b)]||(this[_0x182826(0x6b)]=this[_0x182826(0x6a)]()),this[_0x182826(0x6b)];}async[_0x58f1c2(0x6d)](){const _0x58e290=_0x58f1c2,_0x1411eb=await this[_0x58e290(0x78)]();let _0x3913d2;return _0x3913d2=this[_0x58e290(0x6f)]?this[_0x58e290(0x80)](_0x1411eb,this[_0x58e290(0x6f)]):_0x1411eb[_0x58e290(0x79)](_0x37c68b=>_0x37c68b[_0x58e290(0x96)]),_0x3913d2;}async[_0x58f1c2(0x90)](_0x3a1427){const _0x240b61=_0x58f1c2,_0x55410a=await this[_0x240b61(0x78)]();if(!_0x55410a[_0x240b61(0x92)])return null;if(_0x3a1427){const _0x12937e=this[_0x240b61(0x7c)](_0x55410a,_0x3a1427);if(_0x12937e)return _0x12937e;_0x56f134(_0x240b61(0x94),{'modelId':_0x3a1427,'fallBackModelId':this[_0x240b61(0x87)]});}return this[_0x240b61(0x91)]();}async[_0x58f1c2(0x91)](){const _0x1be782=_0x58f1c2,_0xc8129a=await this[_0x1be782(0x6d)]();if(!_0xc8129a[_0x1be782(0x92)])return null;if(this[_0x1be782(0x87)]){const _0x50827c=this[_0x1be782(0x7c)](_0xc8129a,this[_0x1be782(0x87)]);if(_0x50827c)return _0x50827c;_0x56f134(_0x1be782(0x7b),{'defaultModelId':this[_0x1be782(0x87)],'fallBackModelId':_0xc8129a[0x0]['id']});}return _0xc8129a[0x0];}async[_0x58f1c2(0x89)](_0x2e362){const _0x2c869d=_0x58f1c2;return(await this[_0x2c869d(0x6d)]())[_0x2c869d(0x6c)](_0x312dac=>_0x312dac[_0x2c869d(0x66)]===_0x2e362[_0x2c869d(0x66)]&&_0x312dac[_0x2c869d(0x71)]===_0x2e362[_0x2c869d(0x71)]);}async[_0x58f1c2(0x6a)](){const _0x838fa0=_0x58f1c2;if(!this[_0x838fa0(0x93)][_0x838fa0(0x92)])try{const _0x31e4c4=this[_0x838fa0(0x69)][_0x838fa0(0x81)]||'en',_0x4ab14e=this[_0x838fa0(0x73)][_0x838fa0(0x7f)](_0x31e4c4),_0x25809c=await _0x4ab14e[_0x838fa0(0x82)]();this[_0x838fa0(0x93)]=_0x25809c[_0x838fa0(0x68)][_0x838fa0(0x83)](_0x411c2a=>Bi(_0x411c2a)?{..._0x411c2a,'name':_0x40972f(this[_0x838fa0(0x69)],_0x838fa0(0x88))}:_0x411c2a);}catch(_0x3be836){throw _0x523e96(_0x838fa0(0x95),{'error':_0x3be836}),_0x3be836;}return[...this[_0x838fa0(0x93)]];}[_0x58f1c2(0x80)](_0x848977,_0x8057d5){const _0x3b2cfc=_0x58f1c2;let _0x288da9;if(_0x8057d5){_0x288da9=[];const _0x15bcc6=new Set(),_0x5377cc=_0x3b2cfc(0x70)==typeof _0x8057d5?[_0x8057d5[_0x3b2cfc(0x97)]()]:_0x8057d5[_0x3b2cfc(0x83)](_0x256563=>_0x256563[_0x3b2cfc(0x97)]());for(const _0x576236 of _0x5377cc)for(const _0x14ac7f of _0x848977)!_0x15bcc6[_0x3b2cfc(0x77)](_0x14ac7f['id'])&&this[_0x3b2cfc(0x8e)](_0x14ac7f,_0x576236)&&(_0x288da9[_0x3b2cfc(0x74)](_0x14ac7f),_0x15bcc6[_0x3b2cfc(0x75)](_0x14ac7f['id']));}else _0x288da9=_0x848977;return _0x288da9;}[_0x58f1c2(0x8e)](_0x3dee41,_0x223b42){const _0x32f0ce=_0x58f1c2,_0x17cb4c=_0x3dee41['id'][_0x32f0ce(0x97)](),_0x3596ff=_0x3dee41[_0x32f0ce(0x66)][_0x32f0ce(0x97)](),_0x178933=_0x3dee41[_0x32f0ce(0x71)][_0x32f0ce(0x97)]();return _0x17cb4c===_0x223b42||_0x3596ff===_0x223b42||Bi(_0x3dee41)&&_0x32f0ce(0x84)===_0x223b42||_0x178933===_0x223b42||_0x17cb4c[_0x32f0ce(0x8b)](_0x223b42);}[_0x58f1c2(0x7c)](_0x4083d9,_0x36a718){const _0x416dfc=_0x58f1c2;return _0x4083d9[_0x416dfc(0x6e)](_0x41438a=>Bi(_0x41438a)&&_0x416dfc(0x84)===_0x36a718?_0x41438a:_0x41438a['id']===_0x36a718)||null;}}function Bi(_0x4c587e){const _0x36cf7a=_0x58f1c2;return _0x4c587e['id'][_0x36cf7a(0x8b)](_0x36cf7a(0x8d));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4134(_0x20d0c0,_0xcd8de3){const _0x25e3ed=_0x25e3();return _0x4134=function(_0x4134b3,_0x46ef21){_0x4134b3=_0x4134b3-0x1b5;let _0x4f4db5=_0x25e3ed[_0x4134b3];return _0x4f4db5;},_0x4134(_0x20d0c0,_0xcd8de3);}function _0x25e3(){const _0x38b76b=['data-id','aiResponseParser','modified','forEach','removedNodeIds','cloneNode','node','updateChangeGroups','aiResponseApplier','replyContentUpdated','interactionId','stopListening','3687093HBkNMD','destroy','documentContextContent','parseAndNormalizeHTML','change:content','find','_getDifferentChangeGroups','_getCachedContentParts','content','_setCachedContentParts','withoutDiff','areActionsDisabled','context','4VstlwC','editor','682595rskGJA','modification','convertMarkdownToHTML','ai-reply-get-content-parts-group-not-found','withDiff','new','filter','3440511tRjoTv','done','changes','type','length','splice','pending','fire','index','data-unstable','isDone','includes','cachedSuggestionContentParts','1908480fnwAly','appendContent','push','328936fKwvPm','color:\x20#808080;\x20font-style:\x20italic','parsedContent','newNodeIds','onContentChange','changeGroups','8zRDFeh','previousSibling','indexOf','ai-get-editor-from-context-no-editor','8YeFaRC','locale','modifiedNodeIds','removed','AI_SUGGESTION_CONTENT_PART_REMOVED','merge','nextSibling','state','every','parsedMergedContent','replyChangeGroupStateUpdated','map','unshift','getContentParts','set','sources','span','setChangeGroupState','24127510FOFXGR','8826552EGGcNB'];_0x25e3=function(){return _0x38b76b;};return _0x25e3();}const _0x350e68=_0x4134;(function(_0x11fc89,_0x2f6d7e){const _0x30aaa7=_0x4134,_0x11d494=_0x11fc89();while(!![]){try{const _0x45804f=-parseInt(_0x30aaa7(0x1bd))/0x1*(parseInt(_0x30aaa7(0x1b7))/0x2)+parseInt(_0x30aaa7(0x1f7))/0x3+-parseInt(_0x30aaa7(0x1ee))/0x4*(parseInt(_0x30aaa7(0x1f0))/0x5)+parseInt(_0x30aaa7(0x204))/0x6+parseInt(_0x30aaa7(0x1d4))/0x7*(-parseInt(_0x30aaa7(0x1c1))/0x8)+-parseInt(_0x30aaa7(0x1e1))/0x9+parseInt(_0x30aaa7(0x1d3))/0xa;if(_0x45804f===_0x2f6d7e)break;else _0x11d494['push'](_0x11d494['shift']());}catch(_0x536a10){_0x11d494['push'](_0x11d494['shift']());}}}(_0x25e3,0xb8468));import{CKEditorError as _0x58e79b,ObservableMixin as _0x1aec81,uid as _0x469dd7}from'ckeditor5/src/utils.js';import{Element as _0x1a62d7,findAll as _0x50cefe,getAttribute as _0x1d2b5b,getParents as _0x2b02c1,Document as _0x26ed87,parse as _0x45b6bd,Text as _0x5a6d8f}from'../utils/htmlparser.js';import{AIResponseParser as _0x3959cc}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x34f150}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x366ac0}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5a0f9e}from'../utils/common-translations.js';import{cloneDeep as _0x3ae04d}from'es-toolkit';export class AIReply extends _0x1aec81(){['id'];[_0x350e68(0x1df)];[_0x350e68(0x1fa)];[_0x350e68(0x1d0)]=[];[_0x350e68(0x1b9)]=new _0x26ed87([]);[_0x350e68(0x1ca)]=new _0x26ed87([]);[_0x350e68(0x1bc)]=[];[_0x350e68(0x1ec)]=!0x1;[_0x350e68(0x1e3)];[_0x350e68(0x1d6)];[_0x350e68(0x1dd)];[_0x350e68(0x1ef)];[_0x350e68(0x203)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x2155f1,content:_0x44c888='',isDone:_0x23d2dd=!0x1,interactionId:_0x52a7a7,areActionsDisabled:_0x5e9397,documentContextContent:_0x42e8b0,editor:_0x39cf63,id:_0x3b4e5d}){const _0x4f851d=_0x350e68;super(),this['id']=_0x3b4e5d||_0x469dd7(),this[_0x4f851d(0x1df)]=_0x52a7a7,this[_0x4f851d(0x1fa)]=_0x2155f1,this[_0x4f851d(0x1ec)]=!!_0x5e9397,this[_0x4f851d(0x1ef)]=_0x39cf63,this[_0x4f851d(0x1d6)]=new _0x3959cc(),this[_0x4f851d(0x1dd)]=new _0x34f150(),this[_0x4f851d(0x1e3)]=_0x45b6bd(_0x42e8b0||''),this[_0x4f851d(0x1cf)](_0x4f851d(0x201),_0x23d2dd),this['on'](_0x4f851d(0x1e5),()=>{const _0x22638e=_0x4f851d;this[_0x22638e(0x1bb)]();}),this[_0x4f851d(0x1cf)](_0x4f851d(0x1e9),_0x44c888);}[_0x350e68(0x1b5)](_0x3954d1){const _0x194f93=_0x350e68;this[_0x194f93(0x1cf)](_0x194f93(0x1e9),this[_0x194f93(0x1e9)]+_0x3954d1);}[_0x350e68(0x1f8)](){const _0x4623c9=_0x350e68;this[_0x4623c9(0x201)]||(this[_0x4623c9(0x1cf)](_0x4623c9(0x201),!0x0),this[_0x4623c9(0x1bb)]());}[_0x350e68(0x1e2)](){const _0x1d6a6f=_0x350e68;this[_0x1d6a6f(0x1e0)]();}[_0x350e68(0x1d2)](_0x16caba,_0x60a045){const _0x813ecc=_0x350e68;this[_0x813ecc(0x1bc)][_0x16caba][_0x813ecc(0x1c8)]=_0x60a045,this[_0x813ecc(0x1fe)](_0x813ecc(0x1cb),{'reply':this,'index':_0x16caba,'state':_0x60a045});}[_0x350e68(0x1ce)]({showDiff:_0x49d965,groupIndex:_0x13d144}){const _0x1e4797=_0x350e68;if(!this[_0x1e4797(0x1ef)])throw new _0x58e79b(_0x1e4797(0x1c0),null,{'aiReply':this});const _0x54f314=this[_0x1e4797(0x1e8)](_0x49d965,_0x13d144);if(_0x54f314)return _0x54f314;let _0x46a1ba=[];if(void 0x0===_0x13d144)_0x46a1ba=this[_0x1e4797(0x1bc)];else{const _0x47ab23=this[_0x1e4797(0x1bc)][_0x1e4797(0x1e6)](({index:_0xc474b4})=>_0xc474b4===_0x13d144);if(!_0x47ab23)throw new _0x58e79b(_0x1e4797(0x1f3),null,{'aiReply':this,'groupIndex':_0x13d144});_0x46a1ba=[_0x47ab23];}const _0x4484a4=_0x366ac0({'editor':this[_0x1e4797(0x1ef)],'showDiff':_0x49d965,'changeGroups':_0x46a1ba,'documentContextContent':this[_0x1e4797(0x1e3)]});return this[_0x1e4797(0x1ea)](_0x49d965,_0x4484a4),_0x4484a4;}[_0x350e68(0x1e8)](_0x132b2e,_0x599b78){const _0x521937=_0x350e68,_0x4f637c=_0x132b2e?_0x521937(0x1f4):_0x521937(0x1eb);if(!this[_0x521937(0x203)][_0x4f637c][_0x521937(0x1fb)])return null;const _0x408e6c=this[_0x521937(0x203)][_0x4f637c];if(void 0x0===_0x599b78)return _0x408e6c[_0x521937(0x1fb)]>0x0&&_0x408e6c[_0x521937(0x1fb)]!==this[_0x521937(0x1bc)][_0x521937(0x1fb)]?(this[_0x521937(0x1ea)](_0x132b2e,null),null):_0x3ae04d(_0x408e6c);{const _0x1dfc00=_0x408e6c[_0x521937(0x1e6)](({index:_0x57e47a})=>_0x57e47a===_0x599b78);if(_0x1dfc00)return[_0x3ae04d(_0x1dfc00)];}return null;}[_0x350e68(0x1ea)](_0x48b242,_0x1a6f19){const _0x5d6744=_0x350e68,_0x2fb2f0=_0x48b242?_0x5d6744(0x1f4):_0x5d6744(0x1eb);_0x1a6f19?_0x1a6f19[_0x5d6744(0x1d8)](_0x62277a=>{const _0x4a4452=_0x5d6744,_0x50109b=this[_0x4a4452(0x203)][_0x2fb2f0],_0x326fb7=_0x50109b[_0x4a4452(0x1e6)](({index:_0x2c4682})=>_0x2c4682===_0x62277a[_0x4a4452(0x1ff)]);if(_0x326fb7){const _0x1c3f24=_0x50109b[_0x4a4452(0x1bf)](_0x326fb7);_0x50109b[_0x4a4452(0x1fc)](_0x1c3f24,0x1,_0x62277a);}else _0x50109b[_0x4a4452(0x1b6)](_0x62277a);}):this[_0x5d6744(0x203)][_0x2fb2f0][_0x5d6744(0x1fb)]=0x0;}[_0x350e68(0x1bb)](){const _0x5e8028=_0x350e68;if(_0x5e8028(0x1f1)===this[_0x5e8028(0x1fa)]){this[_0x5e8028(0x1b9)]=this[_0x5e8028(0x1d6)][_0x5e8028(0x1e4)](this[_0x5e8028(0x1e9)]);const _0x3dbbab=this[_0x5e8028(0x1bc)];this[_0x5e8028(0x1dc)]();const _0x3f7562=this[_0x5e8028(0x1e7)](_0x3dbbab,this[_0x5e8028(0x1bc)]);(_0x3f7562[_0x5e8028(0x1fb)]||this[_0x5e8028(0x201)])&&(this[_0x5e8028(0x1fe)](_0x5e8028(0x1de),this,_0x3f7562),this[_0x5e8028(0x203)][_0x5e8028(0x1f4)][_0x5e8028(0x1fb)]=this[_0x5e8028(0x203)][_0x5e8028(0x1eb)][_0x5e8028(0x1fb)]=0x0);}else this[_0x5e8028(0x1b9)]=this[_0x5e8028(0x1d6)][_0x5e8028(0x1f2)](this[_0x5e8028(0x1e9)]),this[_0x5e8028(0x1fe)](_0x5e8028(0x1de),this);}[_0x350e68(0x1e7)](_0x3b326e,_0xfce96e){const _0x4f532a=_0x350e68,_0x262dfc=[];for(const _0x18d746 of _0xfce96e){const _0x56e2bc=_0x3b326e[_0x18d746[_0x4f532a(0x1ff)]];_0x56e2bc?_0x56e2bc[_0x4f532a(0x1f9)][_0x4f532a(0x1fb)]!==_0x18d746[_0x4f532a(0x1f9)][_0x4f532a(0x1fb)]?_0x262dfc[_0x4f532a(0x1b6)](_0x18d746):_0x56e2bc[_0x4f532a(0x1f9)][_0x4f532a(0x1d8)]((_0x1e0d22,_0x2930b0)=>{const _0x3c5f7c=_0x4f532a,_0x3f0e33=_0x18d746[_0x3c5f7c(0x1f9)][_0x2930b0];_0x1e0d22['id']!==_0x3f0e33['id']&&_0x262dfc[_0x3c5f7c(0x1b6)](_0x18d746);}):_0x262dfc[_0x4f532a(0x1b6)](_0x18d746);}return _0x262dfc;}[_0x350e68(0x1dc)](){const _0x386378=_0x350e68,_0xd24b91=new _0x1a62d7('p',{},[new _0x1a62d7(_0x386378(0x1d1),{'style':_0x386378(0x1b8)},[new _0x5a6d8f(_0x5a0f9e(this[_0x386378(0x1ef)][_0x386378(0x1c2)],_0x386378(0x1c5)))])]),_0x44b568=this[_0x386378(0x1dd)][_0x386378(0x1c6)](this[_0x386378(0x1b9)],this[_0x386378(0x1e3)][_0x386378(0x1da)](!0x0),{'markUnstableElements':!this[_0x386378(0x201)],'replaceRemovedWith':_0xd24b91,'cutAfterLastChange':!this[_0x386378(0x201)]});if(!_0x44b568[_0x386378(0x1c3)][_0x386378(0x1fb)]&&!this[_0x386378(0x201)])return;this[_0x386378(0x1ca)]=_0x44b568[_0x386378(0x1b9)];let _0x4b3be8=[];if(_0x50cefe(_0x34787b=>{const _0x522d47=_0x386378,_0x3a19fd=_0x1d2b5b(_0x34787b,_0x522d47(0x1d5));if(!_0x3a19fd||!_0x297427(_0x3a19fd))return!0x1;const _0x3c3634=[_0x34787b,..._0x2b02c1(_0x34787b)]['at'](-0x2);if(_0x34787b!=_0x3c3634){const _0x4ce784=_0x1d2b5b(_0x3c3634,_0x522d47(0x1d5));_0x297427(_0x4ce784)||(_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x3c3634,'id':_0x4ce784,'type':_0x522d47(0x1d7)}),_0x44b568[_0x522d47(0x1c3)][_0x522d47(0x1b6)](_0x4ce784));}else _0x44b568[_0x522d47(0x1c3)][_0x522d47(0x202)](_0x3a19fd)?_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1d7),'id':_0x3a19fd}):_0x44b568[_0x522d47(0x1ba)][_0x522d47(0x202)](_0x3a19fd)?_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1f5),'id':_0x3a19fd,'anchorId':_0x1d2b5b(_0x34787b[_0x522d47(0x1be)],_0x522d47(0x1d5))}):_0x4b3be8[_0x522d47(0x1b6)]({'node':_0x34787b,'type':_0x522d47(0x1c4),'id':_0x3a19fd});return!0x0;},this[_0x386378(0x1ca)]),_0x4b3be8=_0x4b3be8[_0x386378(0x1f6)](({node:_0xec23f8})=>[..._0x2b02c1(_0xec23f8),_0xec23f8][_0x386378(0x1c9)](_0x3f9355=>!_0x1d2b5b(_0x3f9355,_0x386378(0x200)))),0x0==_0x4b3be8[_0x386378(0x1fb)])return;const _0x365e8a=[[_0x4b3be8[0x0]]];for(let _0x1f7908=0x1;_0x1f7908<_0x4b3be8[_0x386378(0x1fb)];_0x1f7908++){const _0x3d7e36=_0x365e8a[_0x365e8a[_0x386378(0x1fb)]-0x1],_0xf74894=_0x3d7e36[_0x3d7e36[_0x386378(0x1fb)]-0x1];_0x4b3be8[_0x1f7908][_0x386378(0x1db)][_0x386378(0x1be)]==_0xf74894[_0x386378(0x1db)]&&_0x386378(0x1d7)!=_0x4b3be8[_0x1f7908][_0x386378(0x1fa)]&&_0x386378(0x1d7)!=_0xf74894[_0x386378(0x1fa)]?_0x3d7e36[_0x386378(0x1b6)](_0x4b3be8[_0x1f7908]):_0x365e8a[_0x386378(0x1b6)]([_0x4b3be8[_0x1f7908]]);}for(const _0x1b087f of _0x365e8a){const _0x4d826c=_0x1b087f[0x0],_0x2839d9=_0x1b087f[_0x1b087f[_0x386378(0x1fb)]-0x1],_0x1dafae=_0x344324(_0x4d826c[_0x386378(0x1db)][_0x386378(0x1be)]);_0x1dafae&&_0x1b087f[_0x386378(0x1cd)](_0x1dafae);const _0x14d12b=_0x344324(_0x2839d9[_0x386378(0x1db)][_0x386378(0x1c7)]);_0x14d12b&&_0x1b087f[_0x386378(0x1b6)](_0x14d12b);}function _0x297427(_0x4530ae){const _0x459e08=_0x386378;return _0x44b568[_0x459e08(0x1c3)][_0x459e08(0x202)](_0x4530ae)||_0x44b568[_0x459e08(0x1ba)][_0x459e08(0x202)](_0x4530ae)||_0x44b568[_0x459e08(0x1d9)][_0x459e08(0x202)](_0x4530ae);}function _0x344324(_0x4ba44f){const _0x360ecb=_0x386378;if(_0x4ba44f&&_0x1d2b5b(_0x4ba44f,_0x360ecb(0x1d5))&&!_0x1d2b5b(_0x4ba44f,_0x360ecb(0x200))){const _0x37969=_0x1d2b5b(_0x4ba44f,_0x360ecb(0x1d5));if(!_0x297427(_0x37969))return{'node':_0x4ba44f,'type':_0x360ecb(0x1ed),'id':_0x37969};}return null;}this[_0x386378(0x1bc)]=_0x365e8a[_0x386378(0x1cc)]((_0x279341,_0x1d4b18)=>({'changes':_0x279341,'state':_0x386378(0x1fd),'index':_0x1d4b18}));}}
23
+ const _0x1521d7=_0xe07f;function _0xe07f(_0x5d572e,_0x3b5437){const _0x1c7a0a=_0x1c7a();return _0xe07f=function(_0xe07f4a,_0x37ad4){_0xe07f4a=_0xe07f4a-0x1af;let _0x10ee1d=_0x1c7a0a[_0xe07f4a];return _0x10ee1d;},_0xe07f(_0x5d572e,_0x3b5437);}function _0x1c7a(){const _0x3d089f=['filter','span','content','modified','cachedSuggestionContentParts','locale','fire','index','AI_SUGGESTION_CONTENT_PART_REMOVED','parsedMergedContent','splice','indexOf','interactionId','setChangeGroupState','958752udYXzC','sources','ai-get-editor-from-context-no-editor','withDiff','state','replyContentUpdated','set','cloneNode','context','603752bOcCgq','includes','replyChangeGroupStateUpdated','_getCachedContentParts','142823bxzWus','onContentChange','parsedContent','newNodeIds','node','done','_setCachedContentParts','type','isDone','every','data-id','areActionsDisabled','nextSibling','pending','getContentParts','_getDifferentChangeGroups','aiResponseApplier','611242DZPPTe','850808fMhWnx','forEach','data-unstable','3nEhkks','unshift','merge','removedNodeIds','changeGroups','10DUxhUn','modification','aiResponseParser','length','modifiedNodeIds','236724VhCsdl','ai-reply-get-content-parts-group-not-found','changes','map','appendContent','previousSibling','withoutDiff','7674876TJbxcU','convertMarkdownToHTML','find','destroy','5REQXZT','removed','14qIeEaC','updateChangeGroups','push','documentContextContent','new','parseAndNormalizeHTML','color:\x20#808080;\x20font-style:\x20italic','editor','change:content','stopListening'];_0x1c7a=function(){return _0x3d089f;};return _0x1c7a();}(function(_0x2ac0d5,_0x2d9886){const _0x273635=_0xe07f,_0x2f5afb=_0x2ac0d5();while(!![]){try{const _0x7c5556=parseInt(_0x273635(0x1d5))/0x1+parseInt(_0x273635(0x1e6))/0x2+parseInt(_0x273635(0x1ea))/0x3*(parseInt(_0x273635(0x1e7))/0x4)+-parseInt(_0x273635(0x1ff))/0x5*(parseInt(_0x273635(0x1f4))/0x6)+-parseInt(_0x273635(0x1b0))/0x7*(-parseInt(_0x273635(0x1d1))/0x8)+-parseInt(_0x273635(0x1c8))/0x9*(-parseInt(_0x273635(0x1ef))/0xa)+-parseInt(_0x273635(0x1fb))/0xb;if(_0x7c5556===_0x2d9886)break;else _0x2f5afb['push'](_0x2f5afb['shift']());}catch(_0x545940){_0x2f5afb['push'](_0x2f5afb['shift']());}}}(_0x1c7a,0x2c4c2));import{CKEditorError as _0x172f69,ObservableMixin as _0x53be14,uid as _0x3b5248}from'ckeditor5/src/utils.js';import{Element as _0x5cc01c,findAll as _0x4b4d08,getAttribute as _0xb17580,getParents as _0x55b6da,Document as _0x59cf5c,parse as _0x3e9c84,Text as _0x2a05a9}from'../utils/htmlparser.js';import{AIResponseParser as _0x99baab}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x3294f7}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x12996c}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x458dfe}from'../utils/common-translations.js';import{cloneDeep as _0x4efaf6}from'es-toolkit';export class AIReply extends _0x53be14(){['id'];[_0x1521d7(0x1c6)];[_0x1521d7(0x1dc)];[_0x1521d7(0x1c9)]=[];[_0x1521d7(0x1d7)]=new _0x59cf5c([]);[_0x1521d7(0x1c3)]=new _0x59cf5c([]);[_0x1521d7(0x1ee)]=[];[_0x1521d7(0x1e0)]=!0x1;[_0x1521d7(0x1b3)];[_0x1521d7(0x1f1)];[_0x1521d7(0x1e5)];[_0x1521d7(0x1b7)];[_0x1521d7(0x1be)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x10d45b,content:_0x57e73d='',isDone:_0x51bee3=!0x1,interactionId:_0x4b91a0,areActionsDisabled:_0xd5b441,documentContextContent:_0x32cc4a,editor:_0xeebda1,id:_0x4e0db7}){const _0x599072=_0x1521d7;super(),this['id']=_0x4e0db7||_0x3b5248(),this[_0x599072(0x1c6)]=_0x4b91a0,this[_0x599072(0x1dc)]=_0x10d45b,this[_0x599072(0x1e0)]=!!_0xd5b441,this[_0x599072(0x1b7)]=_0xeebda1,this[_0x599072(0x1f1)]=new _0x99baab(),this[_0x599072(0x1e5)]=new _0x3294f7(),this[_0x599072(0x1b3)]=_0x3e9c84(_0x32cc4a||''),this[_0x599072(0x1ce)](_0x599072(0x1dd),_0x51bee3),this['on'](_0x599072(0x1b8),()=>{const _0x4b7536=_0x599072;this[_0x4b7536(0x1d6)]();}),this[_0x599072(0x1ce)](_0x599072(0x1bc),_0x57e73d);}[_0x1521d7(0x1f8)](_0x26f454){const _0x5a029a=_0x1521d7;this[_0x5a029a(0x1ce)](_0x5a029a(0x1bc),this[_0x5a029a(0x1bc)]+_0x26f454);}[_0x1521d7(0x1da)](){const _0x5e8640=_0x1521d7;this[_0x5e8640(0x1dd)]||(this[_0x5e8640(0x1ce)](_0x5e8640(0x1dd),!0x0),this[_0x5e8640(0x1d6)]());}[_0x1521d7(0x1fe)](){const _0x10f6e9=_0x1521d7;this[_0x10f6e9(0x1b9)]();}[_0x1521d7(0x1c7)](_0x5ba590,_0x2364e9){const _0x4c87e6=_0x1521d7;this[_0x4c87e6(0x1ee)][_0x5ba590][_0x4c87e6(0x1cc)]=_0x2364e9,this[_0x4c87e6(0x1c0)](_0x4c87e6(0x1d3),{'reply':this,'index':_0x5ba590,'state':_0x2364e9});}[_0x1521d7(0x1e3)]({showDiff:_0x32c8c5,groupIndex:_0x50da68}){const _0x14819c=_0x1521d7;if(!this[_0x14819c(0x1b7)])throw new _0x172f69(_0x14819c(0x1ca),null,{'aiReply':this});const _0x31fa13=this[_0x14819c(0x1d4)](_0x32c8c5,_0x50da68);if(_0x31fa13)return _0x31fa13;let _0x5b13cd=[];if(void 0x0===_0x50da68)_0x5b13cd=this[_0x14819c(0x1ee)];else{const _0x16c34d=this[_0x14819c(0x1ee)][_0x14819c(0x1fd)](({index:_0x485a9e})=>_0x485a9e===_0x50da68);if(!_0x16c34d)throw new _0x172f69(_0x14819c(0x1f5),null,{'aiReply':this,'groupIndex':_0x50da68});_0x5b13cd=[_0x16c34d];}const _0x272236=_0x12996c({'editor':this[_0x14819c(0x1b7)],'showDiff':_0x32c8c5,'changeGroups':_0x5b13cd,'documentContextContent':this[_0x14819c(0x1b3)]});return this[_0x14819c(0x1db)](_0x32c8c5,_0x272236),_0x272236;}[_0x1521d7(0x1d4)](_0x1aaa59,_0x2b57e2){const _0x206c36=_0x1521d7,_0x55565b=_0x1aaa59?_0x206c36(0x1cb):_0x206c36(0x1fa);if(!this[_0x206c36(0x1be)][_0x55565b][_0x206c36(0x1f2)])return null;const _0x5072f5=this[_0x206c36(0x1be)][_0x55565b];if(void 0x0===_0x2b57e2)return _0x5072f5[_0x206c36(0x1f2)]>0x0&&_0x5072f5[_0x206c36(0x1f2)]!==this[_0x206c36(0x1ee)][_0x206c36(0x1f2)]?(this[_0x206c36(0x1db)](_0x1aaa59,null),null):_0x4efaf6(_0x5072f5);{const _0x46104a=_0x5072f5[_0x206c36(0x1fd)](({index:_0x47705b})=>_0x47705b===_0x2b57e2);if(_0x46104a)return[_0x4efaf6(_0x46104a)];}return null;}[_0x1521d7(0x1db)](_0xed5d2e,_0x2526df){const _0x477b8a=_0x1521d7,_0x1e6c69=_0xed5d2e?_0x477b8a(0x1cb):_0x477b8a(0x1fa);_0x2526df?_0x2526df[_0x477b8a(0x1e8)](_0x42d338=>{const _0xe9926c=_0x477b8a,_0x2ae695=this[_0xe9926c(0x1be)][_0x1e6c69],_0x5575e5=_0x2ae695[_0xe9926c(0x1fd)](({index:_0x3a3c63})=>_0x3a3c63===_0x42d338[_0xe9926c(0x1c1)]);if(_0x5575e5){const _0x3dc125=_0x2ae695[_0xe9926c(0x1c5)](_0x5575e5);_0x2ae695[_0xe9926c(0x1c4)](_0x3dc125,0x1,_0x42d338);}else _0x2ae695[_0xe9926c(0x1b2)](_0x42d338);}):this[_0x477b8a(0x1be)][_0x1e6c69][_0x477b8a(0x1f2)]=0x0;}[_0x1521d7(0x1d6)](){const _0x467d49=_0x1521d7;if(_0x467d49(0x1f0)===this[_0x467d49(0x1dc)]){this[_0x467d49(0x1d7)]=this[_0x467d49(0x1f1)][_0x467d49(0x1b5)](this[_0x467d49(0x1bc)]);const _0x588dda=this[_0x467d49(0x1ee)];this[_0x467d49(0x1b1)]();const _0x42a0ad=this[_0x467d49(0x1e4)](_0x588dda,this[_0x467d49(0x1ee)]);(_0x42a0ad[_0x467d49(0x1f2)]||this[_0x467d49(0x1dd)])&&(this[_0x467d49(0x1c0)](_0x467d49(0x1cd),this,_0x42a0ad),this[_0x467d49(0x1be)][_0x467d49(0x1cb)][_0x467d49(0x1f2)]=this[_0x467d49(0x1be)][_0x467d49(0x1fa)][_0x467d49(0x1f2)]=0x0);}else this[_0x467d49(0x1d7)]=this[_0x467d49(0x1f1)][_0x467d49(0x1fc)](this[_0x467d49(0x1bc)]),this[_0x467d49(0x1c0)](_0x467d49(0x1cd),this);}[_0x1521d7(0x1e4)](_0x102aa2,_0x3c2059){const _0x44c8b7=_0x1521d7,_0x39caf6=[];for(const _0x3b9923 of _0x3c2059){const _0x3b9de3=_0x102aa2[_0x3b9923[_0x44c8b7(0x1c1)]];_0x3b9de3?_0x3b9de3[_0x44c8b7(0x1f6)][_0x44c8b7(0x1f2)]!==_0x3b9923[_0x44c8b7(0x1f6)][_0x44c8b7(0x1f2)]?_0x39caf6[_0x44c8b7(0x1b2)](_0x3b9923):_0x3b9de3[_0x44c8b7(0x1f6)][_0x44c8b7(0x1e8)]((_0x2469cf,_0x4b6eda)=>{const _0x4ce3e4=_0x44c8b7,_0x38fc4b=_0x3b9923[_0x4ce3e4(0x1f6)][_0x4b6eda];_0x2469cf['id']!==_0x38fc4b['id']&&_0x39caf6[_0x4ce3e4(0x1b2)](_0x3b9923);}):_0x39caf6[_0x44c8b7(0x1b2)](_0x3b9923);}return _0x39caf6;}[_0x1521d7(0x1b1)](){const _0x54ed4a=_0x1521d7,_0x3cf3f8=new _0x5cc01c('p',{},[new _0x5cc01c(_0x54ed4a(0x1bb),{'style':_0x54ed4a(0x1b6)},[new _0x2a05a9(_0x458dfe(this[_0x54ed4a(0x1b7)][_0x54ed4a(0x1bf)],_0x54ed4a(0x1c2)))])]),_0x24e1e5=this[_0x54ed4a(0x1e5)][_0x54ed4a(0x1ec)](this[_0x54ed4a(0x1d7)],this[_0x54ed4a(0x1b3)][_0x54ed4a(0x1cf)](!0x0),{'markUnstableElements':!this[_0x54ed4a(0x1dd)],'replaceRemovedWith':_0x3cf3f8,'cutAfterLastChange':!this[_0x54ed4a(0x1dd)]});if(!_0x24e1e5[_0x54ed4a(0x1f3)][_0x54ed4a(0x1f2)]&&!this[_0x54ed4a(0x1dd)])return;this[_0x54ed4a(0x1c3)]=_0x24e1e5[_0x54ed4a(0x1d7)];let _0x30ba45=[];if(_0x4b4d08(_0x220d03=>{const _0x391779=_0x54ed4a,_0xe9b4ff=_0xb17580(_0x220d03,_0x391779(0x1df));if(!_0xe9b4ff||!_0x3b7164(_0xe9b4ff))return!0x1;const _0x11a54e=[_0x220d03,..._0x55b6da(_0x220d03)]['at'](-0x2);if(_0x220d03!=_0x11a54e){const _0x2c40bf=_0xb17580(_0x11a54e,_0x391779(0x1df));_0x3b7164(_0x2c40bf)||(_0x30ba45[_0x391779(0x1b2)]({'node':_0x11a54e,'id':_0x2c40bf,'type':_0x391779(0x1bd)}),_0x24e1e5[_0x391779(0x1f3)][_0x391779(0x1b2)](_0x2c40bf));}else _0x24e1e5[_0x391779(0x1f3)][_0x391779(0x1d2)](_0xe9b4ff)?_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1bd),'id':_0xe9b4ff}):_0x24e1e5[_0x391779(0x1d8)][_0x391779(0x1d2)](_0xe9b4ff)?_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1b4),'id':_0xe9b4ff,'anchorId':_0xb17580(_0x220d03[_0x391779(0x1f9)],_0x391779(0x1df))}):_0x30ba45[_0x391779(0x1b2)]({'node':_0x220d03,'type':_0x391779(0x1af),'id':_0xe9b4ff});return!0x0;},this[_0x54ed4a(0x1c3)]),_0x30ba45=_0x30ba45[_0x54ed4a(0x1ba)](({node:_0x5a5f20})=>[..._0x55b6da(_0x5a5f20),_0x5a5f20][_0x54ed4a(0x1de)](_0x2e1cd0=>!_0xb17580(_0x2e1cd0,_0x54ed4a(0x1e9)))),0x0==_0x30ba45[_0x54ed4a(0x1f2)])return;const _0x2ad93e=[[_0x30ba45[0x0]]];for(let _0x5a328d=0x1;_0x5a328d<_0x30ba45[_0x54ed4a(0x1f2)];_0x5a328d++){const _0x2b26fb=_0x2ad93e[_0x2ad93e[_0x54ed4a(0x1f2)]-0x1],_0x37a625=_0x2b26fb[_0x2b26fb[_0x54ed4a(0x1f2)]-0x1];_0x30ba45[_0x5a328d][_0x54ed4a(0x1d9)][_0x54ed4a(0x1f9)]==_0x37a625[_0x54ed4a(0x1d9)]&&_0x54ed4a(0x1bd)!=_0x30ba45[_0x5a328d][_0x54ed4a(0x1dc)]&&_0x54ed4a(0x1bd)!=_0x37a625[_0x54ed4a(0x1dc)]?_0x2b26fb[_0x54ed4a(0x1b2)](_0x30ba45[_0x5a328d]):_0x2ad93e[_0x54ed4a(0x1b2)]([_0x30ba45[_0x5a328d]]);}for(const _0x58f603 of _0x2ad93e){const _0x56b664=_0x58f603[0x0],_0x45a887=_0x58f603[_0x58f603[_0x54ed4a(0x1f2)]-0x1],_0x34f4b2=_0x2ee11d(_0x56b664[_0x54ed4a(0x1d9)][_0x54ed4a(0x1f9)]);_0x34f4b2&&_0x58f603[_0x54ed4a(0x1eb)](_0x34f4b2);const _0x135769=_0x2ee11d(_0x45a887[_0x54ed4a(0x1d9)][_0x54ed4a(0x1e1)]);_0x135769&&_0x58f603[_0x54ed4a(0x1b2)](_0x135769);}function _0x3b7164(_0x254b26){const _0x10e821=_0x54ed4a;return _0x24e1e5[_0x10e821(0x1f3)][_0x10e821(0x1d2)](_0x254b26)||_0x24e1e5[_0x10e821(0x1d8)][_0x10e821(0x1d2)](_0x254b26)||_0x24e1e5[_0x10e821(0x1ed)][_0x10e821(0x1d2)](_0x254b26);}function _0x2ee11d(_0x195cda){const _0x41d381=_0x54ed4a;if(_0x195cda&&_0xb17580(_0x195cda,_0x41d381(0x1df))&&!_0xb17580(_0x195cda,_0x41d381(0x1e9))){const _0xc9d68c=_0xb17580(_0x195cda,_0x41d381(0x1df));if(!_0x3b7164(_0xc9d68c))return{'node':_0x195cda,'type':_0x41d381(0x1d0),'id':_0xc9d68c};}return null;}this[_0x54ed4a(0x1ee)]=_0x2ad93e[_0x54ed4a(0x1f7)]((_0x15ad8f,_0x110336)=>({'changes':_0x15ad8f,'state':_0x54ed4a(0x1e2),'index':_0x110336}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49de9f=_0x3dcc;(function(_0x2060ef,_0x277ae7){const _0x15d233=_0x3dcc,_0x360f51=_0x2060ef();while(!![]){try{const _0x2e7a0b=parseInt(_0x15d233(0x13d))/0x1+-parseInt(_0x15d233(0x14f))/0x2+-parseInt(_0x15d233(0x14e))/0x3*(-parseInt(_0x15d233(0x126))/0x4)+parseInt(_0x15d233(0x160))/0x5*(parseInt(_0x15d233(0x149))/0x6)+parseInt(_0x15d233(0x14c))/0x7+-parseInt(_0x15d233(0x142))/0x8*(parseInt(_0x15d233(0x159))/0x9)+-parseInt(_0x15d233(0x162))/0xa;if(_0x2e7a0b===_0x277ae7)break;else _0x360f51['push'](_0x360f51['shift']());}catch(_0x1b108d){_0x360f51['push'](_0x360f51['shift']());}}}(_0x6f44,0x3d03f));function _0x3dcc(_0xc31514,_0x1cb50f){const _0x6f44e=_0x6f44();return _0x3dcc=function(_0x3dcc54,_0x1a8e81){_0x3dcc54=_0x3dcc54-0x122;let _0x24535a=_0x6f44e[_0x3dcc54];return _0x24535a;},_0x3dcc(_0xc31514,_0x1cb50f);}function _0x6f44(){const _0x18c10f=['lastChild','invalidIds','_findReferenceNode','474868dCpjBh','_markLastTagElementUnstable','data-unstable','_replaceNode','includes','45040FRehFB','push','_getUid','match','data-id','_removeSpecialComments','_findFallbackReferenceNode','1860WujYVY','_isExistingNode','new-element','1080037WdxfiX','filter','492bBIQyy','952088vVyNzU','parentNode','_storeDeletedElementIds','_existingDataIds','cutAfterLastChange','beforebegin','data-wrapped-id','nextSibling','_isDelNode','length','369KWsMju','previousSibling','forEach','_isExistingContentComment','cloneNode','merge','afterbegin','4895YSnnSr','_findPrevElementWithDataId','4535880qWuBze','true','_markWrappedElements','nodeType','_insertNodes','childNodes','afterend','from','_hasWrappedParent','data-removed','_getNodeDataId','11652WOkFhJ','splice','_markUnstableElements','lastTouchedId','trim','modifiedIds','map','reverse','replaceRemovedWith','_findNextElementWithDataId','_touchedNodesState','removedIds','slice','markUnstableElements','_isNewNode','_generateUid','indexOf','newIds','has','markUnstableElementsDepth'];_0x6f44=function(){return _0x18c10f;};return _0x6f44();}import{ObservableMixin as _0x4fad73,uid as _0xd1e83}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x4d5921,findByAttribute as _0x15c23b,getAttribute as _0x98a456,isComment as _0x231838,isTag as _0x343f03,insertElement as _0xdfb5d1,moveElement as _0x234818,removeElement as _0xf2ba7a,replaceElement as _0x4f87b9,serialize as _0x51cff2,setAttribute as _0x1a99a6,clone as _0x241e4c,findAllComments as _0x11492b,getParents as _0x57e71e,getNodeNestingLevel as _0x5701b4,areNodesSame as _0x22b989,removeElementsAfter as _0x2af53e}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x4fad73(){[_0x49de9f(0x135)];[_0x49de9f(0x130)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x49de9f(0x152)]=new Set();constructor(_0x1ccc9e){const _0xddb038=_0x49de9f;super(),this[_0xddb038(0x135)]=_0x1ccc9e||_0xd1e83;}[_0x49de9f(0x15e)](_0x84caa3,_0x54286f,_0x5b79f9){const _0x302b0e=_0x49de9f,_0x4550ae=_0x241e4c(_0x84caa3);if(0x0===_0x54286f[_0x302b0e(0x167)][_0x302b0e(0x158)]){const _0x1e9b4f=[];return _0x4d5921(_0x302b0e(0x146),_0x302b0e(0x14b),_0x4550ae)[_0x302b0e(0x15b)](_0x39d96d=>{const _0x2efcda=_0x302b0e,_0x77d337=this[_0x2efcda(0x135)]();_0x1a99a6(_0x39d96d,_0x2efcda(0x146),_0x77d337),_0x1e9b4f[_0x2efcda(0x143)](_0x77d337);}),this[_0x302b0e(0x147)](_0x4550ae),{'parsedContent':_0x4550ae,'newNodeIds':_0x1e9b4f,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x5b79f9&&_0x5b79f9[_0x302b0e(0x133)]&&this[_0x302b0e(0x13e)](_0x4550ae),this[_0x302b0e(0x130)][_0x302b0e(0x137)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x12b)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x131)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x13b)]=[],this[_0x302b0e(0x130)][_0x302b0e(0x129)]=null,this[_0x302b0e(0x152)]=new Set(_0x4d5921(_0x302b0e(0x146),null,_0x54286f)[_0x302b0e(0x12c)](_0x172f51=>_0x98a456(_0x172f51,_0x302b0e(0x146)))[_0x302b0e(0x14d)](_0x502099=>!!_0x502099));let _0x217b41=-0x1,_0x4cfe9b=!0x1;const _0x1897fb=_0x4550ae[_0x302b0e(0x167)],_0x3f6aea=Array[_0x302b0e(0x122)](_0x1897fb)[_0x302b0e(0x14d)](_0x5f4016=>!(0x3===_0x5f4016[_0x302b0e(0x165)]&&''===_0x51cff2(_0x5f4016)[_0x302b0e(0x12a)]())),_0x1e7a27=_0x3f6aea[_0x302b0e(0x158)];for(let _0x4745dd=0x0;_0x4745dd<_0x1e7a27;_0x4745dd++){const _0xd9d6f9=_0x3f6aea[_0x4745dd],_0x1f8b66=_0x3f6aea[_0x4745dd+0x1];if(this[_0x302b0e(0x134)](_0xd9d6f9)){if(-0x1===_0x217b41&&(_0x217b41=_0x4745dd),this[_0x302b0e(0x164)](_0xd9d6f9),!this[_0x302b0e(0x134)](_0x1f8b66)){const [_0x4e1a3c,_0x3c6fba]=this[_0x302b0e(0x13c)](_0xd9d6f9,_0x4cfe9b,_0x54286f);if(_0x4e1a3c){const _0x1e5a11=Array[_0x302b0e(0x122)](_0x3f6aea)[_0x302b0e(0x132)](_0x217b41,_0x4745dd+0x1);this[_0x302b0e(0x166)](_0x4e1a3c,_0x1e5a11,_0x3c6fba),_0x217b41=-0x1;}}}else{if(this[_0x302b0e(0x15c)](_0xd9d6f9))_0x4cfe9b=!0x0;else{if(this[_0x302b0e(0x14a)](_0xd9d6f9)){const _0x1ad965=_0x98a456(_0xd9d6f9,_0x302b0e(0x146));if(_0x1ad965&&this[_0x302b0e(0x152)][_0x302b0e(0x138)](_0x1ad965)){const _0x286072=_0x15c23b(_0x302b0e(0x146),_0x1ad965,_0x54286f);this[_0x302b0e(0x140)](_0x286072,_0xd9d6f9);}if(this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x141)](_0x1ad965)){const _0x1921e9=this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x136)](_0x1ad965);this[_0x302b0e(0x130)][_0x302b0e(0x131)][_0x302b0e(0x127)](_0x1921e9,0x1);}}else{if(this[_0x302b0e(0x157)](_0xd9d6f9)){const _0x3e61a8=_0x98a456(_0xd9d6f9,_0x302b0e(0x146));this[_0x302b0e(0x130)][_0x302b0e(0x12b)][_0x302b0e(0x141)](_0x3e61a8)||this[_0x302b0e(0x151)](_0xd9d6f9);}}}}}for(const _0x373bb0 of this[_0x302b0e(0x130)][_0x302b0e(0x131)]){const _0x290c97=_0x15c23b(_0x302b0e(0x146),_0x373bb0,_0x54286f);if(_0x290c97){if(_0x5b79f9&&_0x5b79f9[_0x302b0e(0x12e)]){this[_0x302b0e(0x130)][_0x302b0e(0x129)]=_0x373bb0;const _0xcd1138=_0x5b79f9[_0x302b0e(0x12e)][_0x302b0e(0x15d)](!0x0);_0x1a99a6(_0xcd1138,_0x302b0e(0x146),_0x373bb0),_0x1a99a6(_0xcd1138,_0x302b0e(0x124),_0x302b0e(0x163)),_0x4f87b9(_0x290c97,_0xcd1138);}else _0xf2ba7a(_0x290c97);}}if(_0x4d5921(_0x302b0e(0x155),null,_0x54286f)[_0x302b0e(0x15b)](_0x387477=>{const _0x534066=_0x302b0e,_0x5906e5=_0x98a456(_0x387477,_0x534066(0x155)),_0x4774b3=_0x15c23b(_0x534066(0x146),_0x5906e5,_0x54286f);_0x4774b3&&_0x234818(_0x4774b3,_0x387477);}),_0x4d5921(_0x302b0e(0x146),_0x302b0e(0x14b),_0x54286f)[_0x302b0e(0x15b)](_0x7ce45f=>{const _0x9ab5d3=_0x302b0e,_0x329cad=this[_0x9ab5d3(0x144)](_0x7ce45f);_0x1a99a6(_0x7ce45f,_0x9ab5d3(0x146),_0x329cad),this[_0x9ab5d3(0x130)][_0x9ab5d3(0x137)][_0x9ab5d3(0x143)](_0x329cad);}),this[_0x302b0e(0x147)](_0x54286f),_0x5b79f9&&_0x5b79f9[_0x302b0e(0x133)]&&this[_0x302b0e(0x128)](_0x54286f,_0x5b79f9[_0x302b0e(0x139)]||0x0),_0x5b79f9&&_0x5b79f9[_0x302b0e(0x153)]&&this[_0x302b0e(0x130)][_0x302b0e(0x129)]){let _0x14c602=_0x15c23b(_0x302b0e(0x146),this[_0x302b0e(0x130)][_0x302b0e(0x129)],_0x54286f);for(;_0x14c602;)_0x2af53e(_0x14c602),_0x14c602=_0x14c602[_0x302b0e(0x150)];}return{'parsedContent':_0x54286f,'newNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x137)],'modifiedNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x12b)],'removedNodeIds':this[_0x302b0e(0x130)][_0x302b0e(0x131)]};}[_0x49de9f(0x166)](_0x5cd1a0,_0x1a01b2,_0x359d2d){const _0x3035c8=_0x49de9f;for(const _0x1f2fc8 of _0x1a01b2){const _0x3d3f78=this[_0x3035c8(0x144)](_0x1f2fc8);_0x1a99a6(_0x1f2fc8,_0x3035c8(0x146),_0x3d3f78),this[_0x3035c8(0x130)][_0x3035c8(0x137)][_0x3035c8(0x143)](_0x3d3f78),this[_0x3035c8(0x130)][_0x3035c8(0x129)]=_0x3d3f78;}const _0x199b22=_0x3035c8(0x15f)===_0x359d2d||_0x3035c8(0x168)===_0x359d2d?_0x1a01b2[_0x3035c8(0x12d)]():_0x1a01b2;for(const _0x6a451 of _0x199b22)_0xdfb5d1(_0x5cd1a0,_0x6a451,_0x359d2d);}[_0x49de9f(0x140)](_0x4b3da1,_0x1cfc53){const _0x24c148=_0x49de9f;if(!_0x4b3da1)return;if(_0x22b989(_0x4b3da1,_0x1cfc53))return;const _0x4789fa=this[_0x24c148(0x144)](_0x4b3da1);_0x1a99a6(_0x1cfc53,_0x24c148(0x146),_0x4789fa),this[_0x24c148(0x130)][_0x24c148(0x12b)][_0x24c148(0x143)](_0x4789fa),this[_0x24c148(0x130)][_0x24c148(0x129)]=_0x4789fa,_0x4f87b9(_0x4b3da1,_0x1cfc53[_0x24c148(0x15d)](!0x0));}[_0x49de9f(0x13c)](_0x9d224d,_0x2fe52b,_0x65f623){const _0x1a7fc3=_0x49de9f,_0xb6fe03=this[_0x1a7fc3(0x161)](_0x9d224d,!0x1);if(_0xb6fe03){const _0x1c0cac=this[_0x1a7fc3(0x125)](_0xb6fe03),_0x74bbf1=_0x15c23b(_0x1a7fc3(0x146),_0x1c0cac,_0x65f623);if(_0x74bbf1)return[_0x74bbf1,_0x1a7fc3(0x168)];this[_0x1a7fc3(0x130)][_0x1a7fc3(0x13b)][_0x1a7fc3(0x143)](_0x1c0cac);}const _0x18f002=this[_0x1a7fc3(0x12f)](_0x9d224d,!0x1);if(_0x18f002){const _0xc13d5c=this[_0x1a7fc3(0x125)](_0x18f002),_0x3af45c=_0x15c23b(_0x1a7fc3(0x146),_0xc13d5c,_0x65f623);if(_0x3af45c)return[_0x3af45c,_0x1a7fc3(0x154)];this[_0x1a7fc3(0x130)][_0x1a7fc3(0x13b)][_0x1a7fc3(0x143)](_0xc13d5c);}return _0x2fe52b?_0x9d224d[_0x1a7fc3(0x156)]?this[_0x1a7fc3(0x148)](_0x9d224d,_0x65f623):[_0x65f623[_0x1a7fc3(0x167)][_0x65f623[_0x1a7fc3(0x167)][_0x1a7fc3(0x158)]-0x1],_0x1a7fc3(0x168)]:[_0x65f623[_0x1a7fc3(0x167)][0x0],_0x1a7fc3(0x154)];}[_0x49de9f(0x148)](_0x19e8dc,_0x35d606){const _0x23dc2f=_0x49de9f,_0xd6d705=[],_0x4f730a=this[_0x23dc2f(0x161)](_0x19e8dc,!0x0);if(_0x4f730a){const _0x1e8449=this[_0x23dc2f(0x125)](_0x4f730a),_0x29b456=_0x15c23b(_0x23dc2f(0x146),_0x1e8449,_0x35d606);_0x29b456&&_0xd6d705[_0x23dc2f(0x143)]([_0x29b456,_0x23dc2f(0x168)]);}const _0x1ab793=this[_0x23dc2f(0x12f)](_0x19e8dc,!0x0);if(_0x1ab793){const _0x521043=this[_0x23dc2f(0x125)](_0x1ab793),_0x2e4a27=_0x15c23b(_0x23dc2f(0x146),_0x521043,_0x35d606);_0x2e4a27&&_0xd6d705[_0x23dc2f(0x143)]([_0x2e4a27,_0x23dc2f(0x154)]);}if(_0xd6d705[_0x23dc2f(0x158)]>0x1)return _0x5701b4(_0xd6d705[0x0][0x0])<=_0x5701b4(_0xd6d705[0x1][0x0])?_0xd6d705[0x0]:_0xd6d705[0x1];return 0x1===_0xd6d705[_0x23dc2f(0x158)]?_0xd6d705[0x0]:[_0x35d606[_0x23dc2f(0x13a)],_0x23dc2f(0x168)];}[_0x49de9f(0x12f)](_0x834852,_0x139ba4){const _0x45b58f=_0x49de9f;let _0x5b2907=_0x834852[_0x45b58f(0x156)],_0x58e1c8=null,_0x364ed2=!0x1;for(;_0x5b2907;){if(_0x231838(_0x5b2907)){if(this[_0x45b58f(0x157)](_0x5b2907)&&(_0x58e1c8=_0x5b2907),this[_0x45b58f(0x15c)](_0x5b2907)&&_0x139ba4&&!_0x364ed2){_0x364ed2=!0x0,_0x5b2907=_0x5b2907[_0x45b58f(0x156)];continue;}break;}const _0x3b1e56=_0x98a456(_0x5b2907,_0x45b58f(0x146));if(_0x3b1e56&&_0x45b58f(0x14b)!==_0x3b1e56&&this[_0x45b58f(0x152)][_0x45b58f(0x138)](_0x3b1e56)){_0x58e1c8=_0x5b2907;break;}_0x5b2907=_0x5b2907[_0x45b58f(0x156)];}return _0x58e1c8;}[_0x49de9f(0x161)](_0x36e56f,_0x5aaf06){const _0x544385=_0x49de9f;let _0x5725e9=_0x36e56f[_0x544385(0x15a)],_0x378a88=null,_0x3f04fd=!0x1;for(;_0x5725e9;){if(_0x231838(_0x5725e9)){if(this[_0x544385(0x157)](_0x5725e9)&&(_0x378a88=_0x5725e9),this[_0x544385(0x15c)](_0x5725e9)&&_0x5aaf06&&!_0x3f04fd){_0x3f04fd=!0x0,_0x5725e9=_0x5725e9[_0x544385(0x15a)];continue;}break;}const _0x222df0=_0x98a456(_0x5725e9,_0x544385(0x146));if(_0x222df0&&_0x544385(0x14b)!==_0x222df0&&this[_0x544385(0x152)][_0x544385(0x138)](_0x222df0)){_0x378a88=_0x5725e9;break;}_0x5725e9=_0x5725e9[_0x544385(0x15a)];}return _0x378a88;}[_0x49de9f(0x164)](_0x4f7d2d){const _0x5f4d12=_0x49de9f;_0x343f03(_0x4f7d2d)&&_0x4d5921(_0x5f4d12(0x146),null,_0x4f7d2d)[_0x5f4d12(0x15b)](_0x4eb481=>{const _0x16c7fc=_0x5f4d12;if(this[_0x16c7fc(0x14a)](_0x4eb481)&&!this[_0x16c7fc(0x123)](_0x4eb481)){const _0x44963b=_0x98a456(_0x4eb481,_0x16c7fc(0x146));_0x1a99a6(_0x4eb481,_0x16c7fc(0x155),_0x44963b),_0x1a99a6(_0x4eb481,_0x16c7fc(0x146),null);}});}[_0x49de9f(0x125)](_0x4b3e2c){const _0x208824=_0x49de9f;if(!_0x4b3e2c)return null;if(_0x343f03(_0x4b3e2c))return _0x98a456(_0x4b3e2c,_0x208824(0x146));if(_0x231838(_0x4b3e2c)){const _0x4e8177=_0x51cff2(_0x4b3e2c)[_0x208824(0x145)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4e8177&&_0x4e8177[0x1])return _0x4e8177[0x1];}return null;}[_0x49de9f(0x151)](_0x254d8d){const _0x5f2242=_0x49de9f;if(_0x231838(_0x254d8d)){const _0x5ebcfd=_0x51cff2(_0x254d8d)[_0x5f2242(0x145)](/removed[\s*-]data-id="([^"]+)"/);_0x5ebcfd&&_0x5ebcfd[0x1]&&this[_0x5f2242(0x130)][_0x5f2242(0x131)][_0x5f2242(0x143)](_0x5ebcfd[0x1]);}}[_0x49de9f(0x144)](_0xcc149e){const _0x52fd92=_0x49de9f;return this[_0x52fd92(0x14a)](_0xcc149e)?_0x98a456(_0xcc149e,_0x52fd92(0x146)):this[_0x52fd92(0x135)]();}[_0x49de9f(0x147)](_0x1b41ba){const _0x5b228d=_0x49de9f;_0x11492b(_0x1b41ba)[_0x5b228d(0x14d)](_0xb8756=>this[_0x5b228d(0x157)](_0xb8756)||this[_0x5b228d(0x15c)](_0xb8756))[_0x5b228d(0x15b)](_0x844e12=>{_0xf2ba7a(_0x844e12);});}[_0x49de9f(0x13e)](_0x7da7e1){const _0x31d14b=_0x49de9f,_0x431af4=_0x7da7e1[_0x31d14b(0x167)],_0x289a96=_0x431af4[_0x431af4[_0x31d14b(0x158)]-0x1];_0x289a96&&_0x343f03(_0x289a96)&&_0x1a99a6(_0x289a96,_0x31d14b(0x13f),_0x31d14b(0x163));}[_0x49de9f(0x128)](_0x20feeb,_0x42c382){const _0x15e4fc=_0x49de9f,_0x36514f=_0x15c23b(_0x15e4fc(0x13f),_0x15e4fc(0x163),_0x20feeb);if(!_0x36514f)return;const _0x2e1f99=_0x57e71e(_0x36514f)[_0x15e4fc(0x132)](0x0,-0x1),_0x3a66fa=_0x2e1f99[_0x15e4fc(0x158)];let _0x188488=_0x36514f;if(_0x3a66fa>_0x42c382){let _0x1ddf0f=_0x3a66fa,_0x158bf2=null;for(;_0x1ddf0f>_0x42c382&&_0x1ddf0f>=0x0;)_0x1ddf0f--,_0x158bf2=_0x2e1f99[_0x1ddf0f];_0x158bf2&&(_0x188488=_0x158bf2,_0x1a99a6(_0x36514f,_0x15e4fc(0x13f),null),_0x1a99a6(_0x158bf2,_0x15e4fc(0x13f),_0x15e4fc(0x163)));}else{if(_0x3a66fa<_0x42c382){let _0x49a5d4=_0x3a66fa,_0x12ca37=_0x36514f;for(;_0x49a5d4<_0x42c382;){const _0x551fc3=_0x12ca37[_0x15e4fc(0x167)][_0x15e4fc(0x14d)](_0x458b4b=>_0x343f03(_0x458b4b));if(0x0===_0x551fc3[_0x15e4fc(0x158)])break;_0x49a5d4++,_0x12ca37=_0x551fc3[_0x551fc3[_0x15e4fc(0x158)]-0x1];}_0x12ca37&&(_0x188488=_0x12ca37,_0x1a99a6(_0x36514f,_0x15e4fc(0x13f),null),_0x1a99a6(_0x12ca37,_0x15e4fc(0x13f),_0x15e4fc(0x163)));}}let _0x1adffc=_0x188488;for(;_0x1adffc;){for(;_0x1adffc[_0x15e4fc(0x156)];)_0x1adffc=_0x1adffc[_0x15e4fc(0x156)],_0x343f03(_0x1adffc)&&_0x1a99a6(_0x1adffc,_0x15e4fc(0x13f),_0x15e4fc(0x163));_0x1adffc=_0x1adffc[_0x15e4fc(0x150)];}}[_0x49de9f(0x134)](_0x1bc481){const _0x54115c=_0x49de9f;return Boolean(_0x54115c(0x14b)===_0x98a456(_0x1bc481,_0x54115c(0x146)));}[_0x49de9f(0x14a)](_0x350441){const _0x5db1cb=_0x49de9f;return Boolean((_0x98a456(_0x350441,_0x5db1cb(0x146))||'')[_0x5db1cb(0x158)]>0x0&&_0x5db1cb(0x14b)!==_0x98a456(_0x350441,_0x5db1cb(0x146)));}[_0x49de9f(0x157)](_0x19d386){const _0xeae8c=_0x49de9f;return!!_0x19d386&&Boolean(_0x231838(_0x19d386)&&_0x51cff2(_0x19d386)[_0xeae8c(0x145)](/removed[\s*-]data-id="[^"]+"/));}[_0x49de9f(0x123)](_0x58a877){const _0xb44196=_0x49de9f;let _0x35baae=_0x58a877[_0xb44196(0x150)];for(;_0x35baae;){if(_0x98a456(_0x35baae,_0xb44196(0x155)))return!0x0;_0x35baae=_0x35baae[_0xb44196(0x150)];}return!0x1;}[_0x49de9f(0x15c)](_0x223e07){const _0x371b20=_0x49de9f;return Boolean(_0x231838(_0x223e07)&&_0x51cff2(_0x223e07)[_0x371b20(0x145)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x16ae73=_0x5498;function _0x124a(){const _0x367d22=['true','modifiedIds','data-removed','_findReferenceNode','beforebegin','filter','_existingDataIds','_getNodeDataId','1945072xBQoET','3315HYVUCj','lastTouchedId','20751DPUYbR','_markLastTagElementUnstable','childNodes','has','_removeSpecialComments','366kUDAeM','length','nodeType','_insertNodes','_isDelNode','_markUnstableElements','lastChild','merge','_storeDeletedElementIds','data-id','data-unstable','_generateUid','previousSibling','369xkcYtK','7858pOewsL','push','cloneNode','splice','_findNextElementWithDataId','_getUid','_findFallbackReferenceNode','replaceRemovedWith','markUnstableElements','_isExistingContentComment','121NplCKD','_markWrappedElements','slice','trim','_findPrevElementWithDataId','indexOf','3660937bbjsip','from','_isNewNode','4553364jdhYrM','_replaceNode','128WspvfJ','newIds','10347890xkReAc','markUnstableElementsDepth','_hasWrappedParent','invalidIds','data-wrapped-id','9rmfwDK','afterend','removedIds','includes','match','nextSibling','reverse','cutAfterLastChange','new-element','_isExistingNode','forEach','parentNode','_touchedNodesState','map','afterbegin'];_0x124a=function(){return _0x367d22;};return _0x124a();}function _0x5498(_0x4153be,_0x2b0324){const _0x124ad6=_0x124a();return _0x5498=function(_0x5498da,_0x1f893f){_0x5498da=_0x5498da-0x14f;let _0x1a8620=_0x124ad6[_0x5498da];return _0x1a8620;},_0x5498(_0x4153be,_0x2b0324);}(function(_0x4ecb6d,_0x256c45){const _0x1a1ef2=_0x5498,_0x9ad81=_0x4ecb6d();while(!![]){try{const _0x441bc7=parseInt(_0x1a1ef2(0x150))/0x1*(-parseInt(_0x1a1ef2(0x151))/0x2)+-parseInt(_0x1a1ef2(0x187))/0x3*(parseInt(_0x1a1ef2(0x166))/0x4)+-parseInt(_0x1a1ef2(0x185))/0x5*(-parseInt(_0x1a1ef2(0x18c))/0x6)+-parseInt(_0x1a1ef2(0x161))/0x7+-parseInt(_0x1a1ef2(0x184))/0x8+parseInt(_0x1a1ef2(0x16d))/0x9*(-parseInt(_0x1a1ef2(0x168))/0xa)+parseInt(_0x1a1ef2(0x15b))/0xb*(parseInt(_0x1a1ef2(0x164))/0xc);if(_0x441bc7===_0x256c45)break;else _0x9ad81['push'](_0x9ad81['shift']());}catch(_0x3f7071){_0x9ad81['push'](_0x9ad81['shift']());}}}(_0x124a,0xb539d));import{ObservableMixin as _0x2fb7b7,uid as _0xa3cecd}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x1db090,findByAttribute as _0xd64e85,getAttribute as _0x4aed98,isComment as _0x4e0228,isTag as _0x5b5e63,insertElement as _0x489f1a,moveElement as _0x4db1c6,removeElement as _0x241d31,replaceElement as _0xc610b3,serialize as _0x39ad13,setAttribute as _0x3eecdc,clone as _0x3b3dbb,findAllComments as _0x3ea2e7,getParents as _0x3edac3,getNodeNestingLevel as _0x3c93d2,areNodesSame as _0x115362,removeElementsAfter as _0x7264fc}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x2fb7b7(){[_0x16ae73(0x197)];[_0x16ae73(0x179)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x16ae73(0x182)]=new Set();constructor(_0x438c80){const _0x5b58c3=_0x16ae73;super(),this[_0x5b58c3(0x197)]=_0x438c80||_0xa3cecd;}[_0x16ae73(0x193)](_0x5c30a8,_0x32555f,_0x116f98){const _0x3960b2=_0x16ae73,_0x5d7e89=_0x3b3dbb(_0x5c30a8);if(0x0===_0x32555f[_0x3960b2(0x189)][_0x3960b2(0x18d)]){const _0x850980=[];return _0x1db090(_0x3960b2(0x195),_0x3960b2(0x175),_0x5d7e89)[_0x3960b2(0x177)](_0x5c987d=>{const _0x527650=_0x3960b2,_0x2de28e=this[_0x527650(0x197)]();_0x3eecdc(_0x5c987d,_0x527650(0x195),_0x2de28e),_0x850980[_0x527650(0x152)](_0x2de28e);}),this[_0x3960b2(0x18b)](_0x5d7e89),{'parsedContent':_0x5d7e89,'newNodeIds':_0x850980,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x116f98&&_0x116f98[_0x3960b2(0x159)]&&this[_0x3960b2(0x188)](_0x5d7e89),this[_0x3960b2(0x179)][_0x3960b2(0x167)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x17d)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x16f)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x16b)]=[],this[_0x3960b2(0x179)][_0x3960b2(0x186)]=null,this[_0x3960b2(0x182)]=new Set(_0x1db090(_0x3960b2(0x195),null,_0x32555f)[_0x3960b2(0x17a)](_0x47acff=>_0x4aed98(_0x47acff,_0x3960b2(0x195)))[_0x3960b2(0x181)](_0x50bd0e=>!!_0x50bd0e));let _0x46db53=-0x1,_0x2108ac=!0x1;const _0x462e10=_0x5d7e89[_0x3960b2(0x189)],_0x4b63d8=Array[_0x3960b2(0x162)](_0x462e10)[_0x3960b2(0x181)](_0x419d14=>!(0x3===_0x419d14[_0x3960b2(0x18e)]&&''===_0x39ad13(_0x419d14)[_0x3960b2(0x15e)]())),_0x55dbc0=_0x4b63d8[_0x3960b2(0x18d)];for(let _0x4cecc8=0x0;_0x4cecc8<_0x55dbc0;_0x4cecc8++){const _0x104177=_0x4b63d8[_0x4cecc8],_0x4a0ee4=_0x4b63d8[_0x4cecc8+0x1];if(this[_0x3960b2(0x163)](_0x104177)){if(-0x1===_0x46db53&&(_0x46db53=_0x4cecc8),this[_0x3960b2(0x15c)](_0x104177),!this[_0x3960b2(0x163)](_0x4a0ee4)){const [_0x4036ab,_0x2eac47]=this[_0x3960b2(0x17f)](_0x104177,_0x2108ac,_0x32555f);if(_0x4036ab){const _0x19dd63=Array[_0x3960b2(0x162)](_0x4b63d8)[_0x3960b2(0x15d)](_0x46db53,_0x4cecc8+0x1);this[_0x3960b2(0x18f)](_0x4036ab,_0x19dd63,_0x2eac47),_0x46db53=-0x1;}}}else{if(this[_0x3960b2(0x15a)](_0x104177))_0x2108ac=!0x0;else{if(this[_0x3960b2(0x176)](_0x104177)){const _0x3ced36=_0x4aed98(_0x104177,_0x3960b2(0x195));if(_0x3ced36&&this[_0x3960b2(0x182)][_0x3960b2(0x18a)](_0x3ced36)){const _0xadd098=_0xd64e85(_0x3960b2(0x195),_0x3ced36,_0x32555f);this[_0x3960b2(0x165)](_0xadd098,_0x104177);}if(this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x170)](_0x3ced36)){const _0x14afde=this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x160)](_0x3ced36);this[_0x3960b2(0x179)][_0x3960b2(0x16f)][_0x3960b2(0x154)](_0x14afde,0x1);}}else{if(this[_0x3960b2(0x190)](_0x104177)){const _0x1d711f=_0x4aed98(_0x104177,_0x3960b2(0x195));this[_0x3960b2(0x179)][_0x3960b2(0x17d)][_0x3960b2(0x170)](_0x1d711f)||this[_0x3960b2(0x194)](_0x104177);}}}}}for(const _0x165491 of this[_0x3960b2(0x179)][_0x3960b2(0x16f)]){const _0x27a559=_0xd64e85(_0x3960b2(0x195),_0x165491,_0x32555f);if(_0x27a559){if(_0x116f98&&_0x116f98[_0x3960b2(0x158)]){this[_0x3960b2(0x179)][_0x3960b2(0x186)]=_0x165491;const _0x8e4e36=_0x116f98[_0x3960b2(0x158)][_0x3960b2(0x153)](!0x0);_0x3eecdc(_0x8e4e36,_0x3960b2(0x195),_0x165491),_0x3eecdc(_0x8e4e36,_0x3960b2(0x17e),_0x3960b2(0x17c)),_0xc610b3(_0x27a559,_0x8e4e36);}else _0x241d31(_0x27a559);}}if(_0x1db090(_0x3960b2(0x16c),null,_0x32555f)[_0x3960b2(0x177)](_0x12fd09=>{const _0x39d984=_0x3960b2,_0x569bbc=_0x4aed98(_0x12fd09,_0x39d984(0x16c)),_0xb3a0fb=_0xd64e85(_0x39d984(0x195),_0x569bbc,_0x32555f);_0xb3a0fb&&_0x4db1c6(_0xb3a0fb,_0x12fd09);}),_0x1db090(_0x3960b2(0x195),_0x3960b2(0x175),_0x32555f)[_0x3960b2(0x177)](_0x5e0691=>{const _0x544651=_0x3960b2,_0x3d1212=this[_0x544651(0x156)](_0x5e0691);_0x3eecdc(_0x5e0691,_0x544651(0x195),_0x3d1212),this[_0x544651(0x179)][_0x544651(0x167)][_0x544651(0x152)](_0x3d1212);}),this[_0x3960b2(0x18b)](_0x32555f),_0x116f98&&_0x116f98[_0x3960b2(0x159)]&&this[_0x3960b2(0x191)](_0x32555f,_0x116f98[_0x3960b2(0x169)]||0x0),_0x116f98&&_0x116f98[_0x3960b2(0x174)]&&this[_0x3960b2(0x179)][_0x3960b2(0x186)]){let _0x2405dc=_0xd64e85(_0x3960b2(0x195),this[_0x3960b2(0x179)][_0x3960b2(0x186)],_0x32555f);for(;_0x2405dc;)_0x7264fc(_0x2405dc),_0x2405dc=_0x2405dc[_0x3960b2(0x178)];}return{'parsedContent':_0x32555f,'newNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x167)],'modifiedNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x17d)],'removedNodeIds':this[_0x3960b2(0x179)][_0x3960b2(0x16f)]};}[_0x16ae73(0x18f)](_0x11a2cd,_0x3e1b28,_0x1d3160){const _0xe24716=_0x16ae73;for(const _0x33c802 of _0x3e1b28){const _0x45db86=this[_0xe24716(0x156)](_0x33c802);_0x3eecdc(_0x33c802,_0xe24716(0x195),_0x45db86),this[_0xe24716(0x179)][_0xe24716(0x167)][_0xe24716(0x152)](_0x45db86),this[_0xe24716(0x179)][_0xe24716(0x186)]=_0x45db86;}const _0x49e36b=_0xe24716(0x17b)===_0x1d3160||_0xe24716(0x16e)===_0x1d3160?_0x3e1b28[_0xe24716(0x173)]():_0x3e1b28;for(const _0x293c02 of _0x49e36b)_0x489f1a(_0x11a2cd,_0x293c02,_0x1d3160);}[_0x16ae73(0x165)](_0x51bb94,_0x2092e4){const _0x19af58=_0x16ae73;if(!_0x51bb94)return;if(_0x115362(_0x51bb94,_0x2092e4))return;const _0x5a9769=this[_0x19af58(0x156)](_0x51bb94);_0x3eecdc(_0x2092e4,_0x19af58(0x195),_0x5a9769),this[_0x19af58(0x179)][_0x19af58(0x17d)][_0x19af58(0x152)](_0x5a9769),this[_0x19af58(0x179)][_0x19af58(0x186)]=_0x5a9769,_0xc610b3(_0x51bb94,_0x2092e4[_0x19af58(0x153)](!0x0));}[_0x16ae73(0x17f)](_0x28b5dc,_0x7d1492,_0x4d79f1){const _0x3a2db4=_0x16ae73,_0xf63332=this[_0x3a2db4(0x15f)](_0x28b5dc,!0x1);if(_0xf63332){const _0x132c55=this[_0x3a2db4(0x183)](_0xf63332),_0x1f7233=_0xd64e85(_0x3a2db4(0x195),_0x132c55,_0x4d79f1);if(_0x1f7233)return[_0x1f7233,_0x3a2db4(0x16e)];this[_0x3a2db4(0x179)][_0x3a2db4(0x16b)][_0x3a2db4(0x152)](_0x132c55);}const _0x127169=this[_0x3a2db4(0x155)](_0x28b5dc,!0x1);if(_0x127169){const _0x41d2fc=this[_0x3a2db4(0x183)](_0x127169),_0x5603fe=_0xd64e85(_0x3a2db4(0x195),_0x41d2fc,_0x4d79f1);if(_0x5603fe)return[_0x5603fe,_0x3a2db4(0x180)];this[_0x3a2db4(0x179)][_0x3a2db4(0x16b)][_0x3a2db4(0x152)](_0x41d2fc);}return _0x7d1492?_0x28b5dc[_0x3a2db4(0x172)]?this[_0x3a2db4(0x157)](_0x28b5dc,_0x4d79f1):[_0x4d79f1[_0x3a2db4(0x189)][_0x4d79f1[_0x3a2db4(0x189)][_0x3a2db4(0x18d)]-0x1],_0x3a2db4(0x16e)]:[_0x4d79f1[_0x3a2db4(0x189)][0x0],_0x3a2db4(0x180)];}[_0x16ae73(0x157)](_0x5bb14c,_0x38f296){const _0x115b37=_0x16ae73,_0x57927a=[],_0x2eb799=this[_0x115b37(0x15f)](_0x5bb14c,!0x0);if(_0x2eb799){const _0x3d528f=this[_0x115b37(0x183)](_0x2eb799),_0x1d8096=_0xd64e85(_0x115b37(0x195),_0x3d528f,_0x38f296);_0x1d8096&&_0x57927a[_0x115b37(0x152)]([_0x1d8096,_0x115b37(0x16e)]);}const _0x38d36a=this[_0x115b37(0x155)](_0x5bb14c,!0x0);if(_0x38d36a){const _0x5b3f37=this[_0x115b37(0x183)](_0x38d36a),_0xbf08c5=_0xd64e85(_0x115b37(0x195),_0x5b3f37,_0x38f296);_0xbf08c5&&_0x57927a[_0x115b37(0x152)]([_0xbf08c5,_0x115b37(0x180)]);}if(_0x57927a[_0x115b37(0x18d)]>0x1)return _0x3c93d2(_0x57927a[0x0][0x0])<=_0x3c93d2(_0x57927a[0x1][0x0])?_0x57927a[0x0]:_0x57927a[0x1];return 0x1===_0x57927a[_0x115b37(0x18d)]?_0x57927a[0x0]:[_0x38f296[_0x115b37(0x192)],_0x115b37(0x16e)];}[_0x16ae73(0x155)](_0x3f8dda,_0x2321a6){const _0x1b7a67=_0x16ae73;let _0x1ba1b2=_0x3f8dda[_0x1b7a67(0x172)],_0xe06345=null,_0xebecf5=!0x1;for(;_0x1ba1b2;){if(_0x4e0228(_0x1ba1b2)){if(this[_0x1b7a67(0x190)](_0x1ba1b2)&&(_0xe06345=_0x1ba1b2),this[_0x1b7a67(0x15a)](_0x1ba1b2)&&_0x2321a6&&!_0xebecf5){_0xebecf5=!0x0,_0x1ba1b2=_0x1ba1b2[_0x1b7a67(0x172)];continue;}break;}const _0x2d09fe=_0x4aed98(_0x1ba1b2,_0x1b7a67(0x195));if(_0x2d09fe&&_0x1b7a67(0x175)!==_0x2d09fe&&this[_0x1b7a67(0x182)][_0x1b7a67(0x18a)](_0x2d09fe)){_0xe06345=_0x1ba1b2;break;}_0x1ba1b2=_0x1ba1b2[_0x1b7a67(0x172)];}return _0xe06345;}[_0x16ae73(0x15f)](_0x58caf1,_0x522429){const _0x44830c=_0x16ae73;let _0x4be296=_0x58caf1[_0x44830c(0x14f)],_0xcc4f5=null,_0x5a6d90=!0x1;for(;_0x4be296;){if(_0x4e0228(_0x4be296)){if(this[_0x44830c(0x190)](_0x4be296)&&(_0xcc4f5=_0x4be296),this[_0x44830c(0x15a)](_0x4be296)&&_0x522429&&!_0x5a6d90){_0x5a6d90=!0x0,_0x4be296=_0x4be296[_0x44830c(0x14f)];continue;}break;}const _0x140a75=_0x4aed98(_0x4be296,_0x44830c(0x195));if(_0x140a75&&_0x44830c(0x175)!==_0x140a75&&this[_0x44830c(0x182)][_0x44830c(0x18a)](_0x140a75)){_0xcc4f5=_0x4be296;break;}_0x4be296=_0x4be296[_0x44830c(0x14f)];}return _0xcc4f5;}[_0x16ae73(0x15c)](_0x28cb1b){const _0x283f9b=_0x16ae73;_0x5b5e63(_0x28cb1b)&&_0x1db090(_0x283f9b(0x195),null,_0x28cb1b)[_0x283f9b(0x177)](_0x7ec391=>{const _0xccf810=_0x283f9b;if(this[_0xccf810(0x176)](_0x7ec391)&&!this[_0xccf810(0x16a)](_0x7ec391)){const _0x472a78=_0x4aed98(_0x7ec391,_0xccf810(0x195));_0x3eecdc(_0x7ec391,_0xccf810(0x16c),_0x472a78),_0x3eecdc(_0x7ec391,_0xccf810(0x195),null);}});}[_0x16ae73(0x183)](_0xa181ce){const _0x5d7c2c=_0x16ae73;if(!_0xa181ce)return null;if(_0x5b5e63(_0xa181ce))return _0x4aed98(_0xa181ce,_0x5d7c2c(0x195));if(_0x4e0228(_0xa181ce)){const _0x552bb5=_0x39ad13(_0xa181ce)[_0x5d7c2c(0x171)](/removed[\s*-]data-id="([^"]+)"/);if(_0x552bb5&&_0x552bb5[0x1])return _0x552bb5[0x1];}return null;}[_0x16ae73(0x194)](_0x1f5a0f){const _0x42eec0=_0x16ae73;if(_0x4e0228(_0x1f5a0f)){const _0x3d0fb7=_0x39ad13(_0x1f5a0f)[_0x42eec0(0x171)](/removed[\s*-]data-id="([^"]+)"/);_0x3d0fb7&&_0x3d0fb7[0x1]&&this[_0x42eec0(0x179)][_0x42eec0(0x16f)][_0x42eec0(0x152)](_0x3d0fb7[0x1]);}}[_0x16ae73(0x156)](_0x178f13){const _0x295ae5=_0x16ae73;return this[_0x295ae5(0x176)](_0x178f13)?_0x4aed98(_0x178f13,_0x295ae5(0x195)):this[_0x295ae5(0x197)]();}[_0x16ae73(0x18b)](_0x3d3abe){const _0x1fff19=_0x16ae73;_0x3ea2e7(_0x3d3abe)[_0x1fff19(0x181)](_0x27804e=>this[_0x1fff19(0x190)](_0x27804e)||this[_0x1fff19(0x15a)](_0x27804e))[_0x1fff19(0x177)](_0x293654=>{_0x241d31(_0x293654);});}[_0x16ae73(0x188)](_0x5862c6){const _0x5576b8=_0x16ae73,_0x2e2c87=_0x5862c6[_0x5576b8(0x189)],_0xc26eff=_0x2e2c87[_0x2e2c87[_0x5576b8(0x18d)]-0x1];_0xc26eff&&_0x5b5e63(_0xc26eff)&&_0x3eecdc(_0xc26eff,_0x5576b8(0x196),_0x5576b8(0x17c));}[_0x16ae73(0x191)](_0x3fa28a,_0x5a7787){const _0x58ed8b=_0x16ae73,_0x41c086=_0xd64e85(_0x58ed8b(0x196),_0x58ed8b(0x17c),_0x3fa28a);if(!_0x41c086)return;const _0x1ae804=_0x3edac3(_0x41c086)[_0x58ed8b(0x15d)](0x0,-0x1),_0x506cb4=_0x1ae804[_0x58ed8b(0x18d)];let _0x480721=_0x41c086;if(_0x506cb4>_0x5a7787){let _0x2270bb=_0x506cb4,_0x5f1bb3=null;for(;_0x2270bb>_0x5a7787&&_0x2270bb>=0x0;)_0x2270bb--,_0x5f1bb3=_0x1ae804[_0x2270bb];_0x5f1bb3&&(_0x480721=_0x5f1bb3,_0x3eecdc(_0x41c086,_0x58ed8b(0x196),null),_0x3eecdc(_0x5f1bb3,_0x58ed8b(0x196),_0x58ed8b(0x17c)));}else{if(_0x506cb4<_0x5a7787){let _0x55500b=_0x506cb4,_0x197568=_0x41c086;for(;_0x55500b<_0x5a7787;){const _0x187095=_0x197568[_0x58ed8b(0x189)][_0x58ed8b(0x181)](_0x2c2e99=>_0x5b5e63(_0x2c2e99));if(0x0===_0x187095[_0x58ed8b(0x18d)])break;_0x55500b++,_0x197568=_0x187095[_0x187095[_0x58ed8b(0x18d)]-0x1];}_0x197568&&(_0x480721=_0x197568,_0x3eecdc(_0x41c086,_0x58ed8b(0x196),null),_0x3eecdc(_0x197568,_0x58ed8b(0x196),_0x58ed8b(0x17c)));}}let _0x595e81=_0x480721;for(;_0x595e81;){for(;_0x595e81[_0x58ed8b(0x172)];)_0x595e81=_0x595e81[_0x58ed8b(0x172)],_0x5b5e63(_0x595e81)&&_0x3eecdc(_0x595e81,_0x58ed8b(0x196),_0x58ed8b(0x17c));_0x595e81=_0x595e81[_0x58ed8b(0x178)];}}[_0x16ae73(0x163)](_0x26383f){const _0x3db992=_0x16ae73;return Boolean(_0x3db992(0x175)===_0x4aed98(_0x26383f,_0x3db992(0x195)));}[_0x16ae73(0x176)](_0x5c78a9){const _0x3d00e1=_0x16ae73;return Boolean((_0x4aed98(_0x5c78a9,_0x3d00e1(0x195))||'')[_0x3d00e1(0x18d)]>0x0&&_0x3d00e1(0x175)!==_0x4aed98(_0x5c78a9,_0x3d00e1(0x195)));}[_0x16ae73(0x190)](_0x4df5f0){const _0x220454=_0x16ae73;return!!_0x4df5f0&&Boolean(_0x4e0228(_0x4df5f0)&&_0x39ad13(_0x4df5f0)[_0x220454(0x171)](/removed[\s*-]data-id="[^"]+"/));}[_0x16ae73(0x16a)](_0x631bb6){const _0x56c260=_0x16ae73;let _0x23945a=_0x631bb6[_0x56c260(0x178)];for(;_0x23945a;){if(_0x4aed98(_0x23945a,_0x56c260(0x16c)))return!0x0;_0x23945a=_0x23945a[_0x56c260(0x178)];}return!0x1;}[_0x16ae73(0x15a)](_0x46827a){const _0x20a865=_0x16ae73;return Boolean(_0x4e0228(_0x46827a)&&_0x39ad13(_0x46827a)[_0x20a865(0x171)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bd912=_0x522e;function _0x522e(_0x54f3c6,_0x3c423f){const _0x250808=_0x2508();return _0x522e=function(_0x522e89,_0x22080f){_0x522e89=_0x522e89-0x108;let _0x37bb8c=_0x250808[_0x522e89];return _0x37bb8c;},_0x522e(_0x54f3c6,_0x3c423f);}(function(_0x44dfac,_0x3e0f8c){const _0x53d726=_0x522e,_0x5357c6=_0x44dfac();while(!![]){try{const _0x153bc7=-parseInt(_0x53d726(0x112))/0x1*(-parseInt(_0x53d726(0x116))/0x2)+parseInt(_0x53d726(0x113))/0x3*(parseInt(_0x53d726(0x11c))/0x4)+parseInt(_0x53d726(0x110))/0x5*(-parseInt(_0x53d726(0x10e))/0x6)+parseInt(_0x53d726(0x10b))/0x7*(parseInt(_0x53d726(0x119))/0x8)+parseInt(_0x53d726(0x10a))/0x9+parseInt(_0x53d726(0x118))/0xa*(parseInt(_0x53d726(0x117))/0xb)+-parseInt(_0x53d726(0x10f))/0xc;if(_0x153bc7===_0x3e0f8c)break;else _0x5357c6['push'](_0x5357c6['shift']());}catch(_0x55bf3c){_0x5357c6['push'](_0x5357c6['shift']());}}}(_0x2508,0x48077));import{ObservableMixin as _0x2e69a2}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x3d978d}from'@ckeditor/ckeditor5-markdown-gfm';function _0x2508(){const _0x285029=['22018068bTCXAs','131725ImjKff','</dummy>','576553isFPiI','875994sUZmNG','parseAndNormalizeHTML','children','2jojwDr','4057471NGFhzP','10sQCGTV','968bEzFXB','_parseHTML','<dummy>','8dgwAhr','convertMarkdownToHTML','replace','1442853JfBTpx','28511nnMndY','_m2html','parse','12NMCmIw'];_0x2508=function(){return _0x285029;};return _0x2508();}import{parse as _0x29d5f4}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x2e69a2(){[_0x4bd912(0x10c)];constructor(){const _0x310ef0=_0x4bd912;super(),this[_0x310ef0(0x10c)]=new _0x3d978d();}[_0x4bd912(0x108)](_0xc64d46){const _0x2edff0=_0x4bd912,_0x57b5e7=this[_0x2edff0(0x10c)][_0x2edff0(0x10d)](_0xc64d46);return this[_0x2edff0(0x114)](_0x57b5e7);}[_0x4bd912(0x114)](_0x5eb30f){const _0x5c3c65=_0x4bd912;return this[_0x5c3c65(0x11a)](_0x5eb30f);}[_0x4bd912(0x11a)](_0x4154a9){const _0x5c40f3=_0x4bd912,_0x5cd324=_0x4154a9[_0x5c40f3(0x109)](/^\t+/gm,'\x20')[_0x5c40f3(0x109)](/\n*/g,'')[_0x5c40f3(0x109)](/\s+/g,'\x20')[_0x5c40f3(0x109)](/<[^>]*?$/g,''),_0x520cb3=_0x29d5f4(_0x5c40f3(0x11b)+_0x5cd324+_0x5c40f3(0x111));return _0x520cb3[_0x5c40f3(0x115)]=_0x520cb3[_0x5c40f3(0x115)][0x0][_0x5c40f3(0x115)],_0x520cb3;}}
23
+ const _0x5739dd=_0x10af;(function(_0x2b2f1f,_0xcb0f98){const _0x5a118f=_0x10af,_0x2308c3=_0x2b2f1f();while(!![]){try{const _0x4e24b1=-parseInt(_0x5a118f(0x1fd))/0x1*(parseInt(_0x5a118f(0x1ef))/0x2)+parseInt(_0x5a118f(0x1fb))/0x3*(-parseInt(_0x5a118f(0x1fa))/0x4)+-parseInt(_0x5a118f(0x1f1))/0x5*(parseInt(_0x5a118f(0x1ea))/0x6)+-parseInt(_0x5a118f(0x1ee))/0x7+-parseInt(_0x5a118f(0x1fc))/0x8*(-parseInt(_0x5a118f(0x1ed))/0x9)+parseInt(_0x5a118f(0x1f4))/0xa+parseInt(_0x5a118f(0x1f3))/0xb*(parseInt(_0x5a118f(0x1f5))/0xc);if(_0x4e24b1===_0xcb0f98)break;else _0x2308c3['push'](_0x2308c3['shift']());}catch(_0x1a3cce){_0x2308c3['push'](_0x2308c3['shift']());}}}(_0x46c0,0xe2308));import{ObservableMixin as _0x28f684}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5a8958}from'@ckeditor/ckeditor5-markdown-gfm';function _0x46c0(){const _0xc73d4a=['6236RBYgzF','convertMarkdownToHTML','50UeOtLm','parseAndNormalizeHTML','38195773XaxEqU','12563750FMkhGZ','12JaKxJU','<dummy>','children','replace','parse','16pkzOxV','1355622egaCks','10771560bvFkhR','512uxLfvH','_parseHTML','818316rgaRlv','</dummy>','_m2html','9VqPQdh','2666433PjNWPm'];_0x46c0=function(){return _0xc73d4a;};return _0x46c0();}import{parse as _0x31074e}from'../utils/htmlparser.js';function _0x10af(_0x580ff8,_0x11cc18){const _0x46c0a3=_0x46c0();return _0x10af=function(_0x10afd4,_0x505275){_0x10afd4=_0x10afd4-0x1e9;let _0x6893b8=_0x46c0a3[_0x10afd4];return _0x6893b8;},_0x10af(_0x580ff8,_0x11cc18);}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x28f684(){[_0x5739dd(0x1ec)];constructor(){const _0x3ff1db=_0x5739dd;super(),this[_0x3ff1db(0x1ec)]=new _0x5a8958();}[_0x5739dd(0x1f0)](_0xe80293){const _0x2153ce=_0x5739dd,_0x22fbdc=this[_0x2153ce(0x1ec)][_0x2153ce(0x1f9)](_0xe80293);return this[_0x2153ce(0x1f2)](_0x22fbdc);}[_0x5739dd(0x1f2)](_0x494226){const _0x390cfb=_0x5739dd;return this[_0x390cfb(0x1e9)](_0x494226);}[_0x5739dd(0x1e9)](_0x503260){const _0x48a509=_0x5739dd,_0x2ee483=_0x503260[_0x48a509(0x1f8)](/^\t+/gm,'\x20')[_0x48a509(0x1f8)](/\n*/g,'')[_0x48a509(0x1f8)](/\s+/g,'\x20')[_0x48a509(0x1f8)](/<[^>]*?$/g,''),_0x1451c4=_0x31074e(_0x48a509(0x1f6)+_0x2ee483+_0x48a509(0x1eb));return _0x1451c4[_0x48a509(0x1f7)]=_0x1451c4[_0x48a509(0x1f7)][0x0][_0x48a509(0x1f7)],_0x1451c4;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x48fbc4,_0x37cdc7){var _0x5af0b7=_0x5b24,_0x5d1a06=_0x48fbc4();while(!![]){try{var _0x4f711b=parseInt(_0x5af0b7(0x90))/0x1*(-parseInt(_0x5af0b7(0x9b))/0x2)+parseInt(_0x5af0b7(0x99))/0x3*(-parseInt(_0x5af0b7(0x8e))/0x4)+-parseInt(_0x5af0b7(0x9a))/0x5*(parseInt(_0x5af0b7(0x94))/0x6)+-parseInt(_0x5af0b7(0x93))/0x7*(-parseInt(_0x5af0b7(0x95))/0x8)+-parseInt(_0x5af0b7(0x92))/0x9*(parseInt(_0x5af0b7(0x96))/0xa)+-parseInt(_0x5af0b7(0x97))/0xb+parseInt(_0x5af0b7(0x9c))/0xc;if(_0x4f711b===_0x37cdc7)break;else _0x5d1a06['push'](_0x5d1a06['shift']());}catch(_0x208684){_0x5d1a06['push'](_0x5d1a06['shift']());}}}(_0x4130,0x7f16f));function _0x5b24(_0x2dfb45,_0x54ed2b){var _0x413029=_0x4130();return _0x5b24=function(_0x5b2488,_0x47e0df){_0x5b2488=_0x5b2488-0x8c;var _0x4f671c=_0x413029[_0x5b2488];return _0x4f671c;},_0x5b24(_0x2dfb45,_0x54ed2b);}import{View as _0x395fb2}from'ckeditor5/src/ui.js';import{getTranslation as _0xe2a369}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x4130(){var _0x2ab90c=['ck-ai-disclaimer__content','ck-ai-disclaimer','3748uVwUKW','AI_DISCLAIMER_TEXT','1eGeETO','setTemplate','1293867poOVuJ','8197NkOqto','1645626iKhYQK','464bCSwwn','50AxASjH','8816599RJmMuq','div','336kCbWwW','5WJIHVC','686974LHjvkO','32348004qiosmQ'];_0x4130=function(){return _0x2ab90c;};return _0x4130();}export class AIDisclaimerView extends _0x395fb2{constructor(_0x2ae66c){var _0x3544d2=_0x5b24;super(_0x2ae66c),this[_0x3544d2(0x91)]({'tag':_0x3544d2(0x98),'attributes':{'class':['ck',_0x3544d2(0x8d)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x3544d2(0x8c)]},'children':[{'text':_0xe2a369(_0x2ae66c,_0x3544d2(0x8f))}]}]});}}
23
+ (function(_0x251111,_0x592ab3){var _0x512166=_0xa747,_0x5d85be=_0x251111();while(!![]){try{var _0x4b90e9=parseInt(_0x512166(0x1ac))/0x1+-parseInt(_0x512166(0x1b1))/0x2*(-parseInt(_0x512166(0x1ab))/0x3)+parseInt(_0x512166(0x1b3))/0x4*(parseInt(_0x512166(0x1b0))/0x5)+parseInt(_0x512166(0x1b2))/0x6+parseInt(_0x512166(0x1a9))/0x7+parseInt(_0x512166(0x1ad))/0x8*(parseInt(_0x512166(0x1a4))/0x9)+-parseInt(_0x512166(0x1aa))/0xa*(parseInt(_0x512166(0x1a6))/0xb);if(_0x4b90e9===_0x592ab3)break;else _0x5d85be['push'](_0x5d85be['shift']());}catch(_0x1fb6b9){_0x5d85be['push'](_0x5d85be['shift']());}}}(_0x4d3a,0xb5e27));function _0xa747(_0x481f1b,_0x1aec44){var _0x4d3a9a=_0x4d3a();return _0xa747=function(_0xa74773,_0x1d63dc){_0xa74773=_0xa74773-0x1a4;var _0x40269d=_0x4d3a9a[_0xa74773];return _0x40269d;},_0xa747(_0x481f1b,_0x1aec44);}function _0x4d3a(){var _0x5d3bd4=['ck-ai-disclaimer','3091599vLyrRF','10moXHWn','87hwcbek','1231506HaaVgW','8vccnPQ','AI_DISCLAIMER_TEXT','div','442980IGixKl','69634FVdcto','5894328tPwhMV','28AJnItx','12605877PbBqOX','setTemplate','54351770pqmvSM','ck-ai-disclaimer__content'];_0x4d3a=function(){return _0x5d3bd4;};return _0x4d3a();}import{View as _0xcf0c07}from'ckeditor5/src/ui.js';import{getTranslation as _0x441712}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0xcf0c07{constructor(_0x516fe7){var _0x4c31fb=_0xa747;super(_0x516fe7),this[_0x4c31fb(0x1a5)]({'tag':_0x4c31fb(0x1af),'attributes':{'class':['ck',_0x4c31fb(0x1a8)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4c31fb(0x1a7)]},'children':[{'text':_0x441712(_0x516fe7,_0x4c31fb(0x1ae))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x22afbc=_0x458c;(function(_0x574d6a,_0x3e3194){const _0x2a6eaf=_0x458c,_0x309dd7=_0x574d6a();while(!![]){try{const _0x35acee=-parseInt(_0x2a6eaf(0x1fa))/0x1*(-parseInt(_0x2a6eaf(0x1d8))/0x2)+parseInt(_0x2a6eaf(0x1ed))/0x3*(parseInt(_0x2a6eaf(0x1e4))/0x4)+parseInt(_0x2a6eaf(0x1d0))/0x5*(parseInt(_0x2a6eaf(0x1e8))/0x6)+-parseInt(_0x2a6eaf(0x1d4))/0x7+-parseInt(_0x2a6eaf(0x1f4))/0x8*(-parseInt(_0x2a6eaf(0x1d1))/0x9)+parseInt(_0x2a6eaf(0x1ef))/0xa*(-parseInt(_0x2a6eaf(0x1f9))/0xb)+parseInt(_0x2a6eaf(0x1e9))/0xc*(-parseInt(_0x2a6eaf(0x1d6))/0xd);if(_0x35acee===_0x3e3194)break;else _0x309dd7['push'](_0x309dd7['shift']());}catch(_0x20f8c3){_0x309dd7['push'](_0x309dd7['shift']());}}}(_0x2fb7,0x60ade));import{View as _0x2607ff}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x2607ff{constructor(_0xb9b290,_0x1471f8){const _0x2a0479=_0x458c;super(_0xb9b290),this[_0x2a0479(0x1e2)]({'tag':_0x2a0479(0x1ee),'attributes':{'class':['ck',_0x2a0479(0x1d2)]},'children':this[_0x2a0479(0x1e0)](_0x1471f8)});}[_0x22afbc(0x1e0)](_0x4f65e2){const _0x37ae50=_0x22afbc,_0x4e84a6=['ck',_0x37ae50(0x1f3)];return _0x4f65e2[_0x37ae50(0x1e1)](_0x4a7de=>{const _0x29b881=_0x37ae50;let _0x1cbfad='';switch(_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1de)]){case _0x29b881(0x1f5):_0x1cbfad=_0x29b881(0x1e5);break;case _0x29b881(0x1f7):_0x1cbfad=_0x29b881(0x1fb);break;case _0x29b881(0x1d7):_0x1cbfad=_0x29b881(0x1dd);}return{'tag':_0x4a7de[_0x29b881(0x1f1)],'attributes':{'class':[..._0x4e84a6,_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1e3)]?_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1e3)]:''],'style':_0x29b881(0x1eb)+_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1ea)]+_0x29b881(0x1ec)+_0x4a7de[_0x29b881(0x1f2)][_0x29b881(0x1db)]+';'+_0x1cbfad}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1d5),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1d9),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f8),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e6),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f6),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1d9),'height':_0x22afbc(0x1f0),'align':_0x22afbc(0x1f5)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1f8),'align':_0x22afbc(0x1f5)}}],'aiHistory':ta(0x5,_0x22afbc(0x1e7),_0x22afbc(0x1d3),_0x22afbc(0x1f5)),'aiChatResources':ta(0x8,_0x22afbc(0x1e7),_0x22afbc(0x1da),_0x22afbc(0x1f5)),'aiReviewChecks':[{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1df),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1e7),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}},{'tag':_0x22afbc(0x1ee),'attributes':{'width':_0x22afbc(0x1df),'height':_0x22afbc(0x1da),'align':_0x22afbc(0x1d7)}}]};function ta(_0x5ac1bd,_0x2929de,_0x3067d7,_0x330042){const _0x31ad54=_0x22afbc;return new Array(_0x5ac1bd)[_0x31ad54(0x1dc)](null)[_0x31ad54(0x1e1)](()=>({'tag':_0x31ad54(0x1ee),'attributes':{'width':_0x2929de,'height':_0x3067d7,'align':_0x330042}}));}function _0x458c(_0xe26a4d,_0xa49569){const _0x2fb717=_0x2fb7();return _0x458c=function(_0x458cf5,_0x25783a){_0x458cf5=_0x458cf5-0x1d0;let _0x332d8a=_0x2fb717[_0x458cf5];return _0x332d8a;},_0x458c(_0xe26a4d,_0xa49569);}function _0x2fb7(){const _0xc32e1c=['72px','5394519wqCNMV','left','1197802pUIfTb','250px','24px','height','fill','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','align','128px','_createSkeletonItems','map','setTemplate','class','4pFiWks','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','150px','100%','6ebDzVw','12UIIKaH','width','width:\x20',';\x20height:\x20','1698882zJiteG','div','4250KbTpDj','40px','tag','attributes','ck-ai-skeleton__item','32nqXnjd','right','140px','center','88px','19459hzBGBN','1VPhnCd','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','1007375TjXGaR','522999tDMaCZ','ck-ai-skeleton','44px','254296NAiulA'];_0x2fb7=function(){return _0xc32e1c;};return _0x2fb7();}
23
+ const _0x15fc4c=_0x4b03;(function(_0x5ada3c,_0x11aedf){const _0x10d8b0=_0x4b03,_0x3ba531=_0x5ada3c();while(!![]){try{const _0x113b8b=parseInt(_0x10d8b0(0x160))/0x1*(-parseInt(_0x10d8b0(0x14d))/0x2)+-parseInt(_0x10d8b0(0x164))/0x3*(parseInt(_0x10d8b0(0x16f))/0x4)+-parseInt(_0x10d8b0(0x148))/0x5*(parseInt(_0x10d8b0(0x153))/0x6)+-parseInt(_0x10d8b0(0x14b))/0x7+-parseInt(_0x10d8b0(0x147))/0x8*(-parseInt(_0x10d8b0(0x14a))/0x9)+parseInt(_0x10d8b0(0x155))/0xa+parseInt(_0x10d8b0(0x157))/0xb*(parseInt(_0x10d8b0(0x168))/0xc);if(_0x113b8b===_0x11aedf)break;else _0x3ba531['push'](_0x3ba531['shift']());}catch(_0x50cf26){_0x3ba531['push'](_0x3ba531['shift']());}}}(_0xe7e8,0xcd038));import{View as _0x1f2df5}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';function _0xe7e8(){const _0x1aba5e=['height','100%','5190630KYhsqz','width','7087570FoYXKx','40px','11ZrdJjC','ck-ai-skeleton__item','24px','div',';\x20height:\x20','128px','72px','align','tag','778130ZMvpwp','44px','140px','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','60603XkCLEt','right','150px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','15153396hkeFDV','ck-ai-skeleton','width:\x20','center','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','left','24ceCNCX','250px','fill','15064gwnitd','5oWVlqs','_createSkeletonItems','6291nXEOfm','4785060fovAeO','88px','2tcsfNb','attributes','setTemplate','map'];_0xe7e8=function(){return _0x1aba5e;};return _0xe7e8();}export class AISkeletonView extends _0x1f2df5{constructor(_0x783832,_0x54c268){const _0xaa634f=_0x4b03;super(_0x783832),this[_0xaa634f(0x14f)]({'tag':_0xaa634f(0x15a),'attributes':{'class':['ck',_0xaa634f(0x169)]},'children':this[_0xaa634f(0x149)](_0x54c268)});}[_0x15fc4c(0x149)](_0x1f8619){const _0x2951ba=_0x15fc4c,_0x31b630=['ck',_0x2951ba(0x158)];return _0x1f8619[_0x2951ba(0x150)](_0x4106dd=>{const _0x158eea=_0x2951ba;let _0x3a0048='';switch(_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x15e)]){case _0x158eea(0x165):_0x3a0048=_0x158eea(0x167);break;case _0x158eea(0x16b):_0x3a0048=_0x158eea(0x16d);break;case _0x158eea(0x16e):_0x3a0048=_0x158eea(0x163);}return{'tag':_0x4106dd[_0x158eea(0x15f)],'attributes':{'class':[..._0x31b630,_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x16c)]?_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x16c)]:''],'style':_0x158eea(0x16a)+_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x154)]+_0x158eea(0x15b)+_0x4106dd[_0x158eea(0x14e)][_0x158eea(0x151)]+';'+_0x3a0048}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x15d),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x170),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x14c),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x166),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x162),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x170),'height':_0x15fc4c(0x156),'align':_0x15fc4c(0x165)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x14c),'align':_0x15fc4c(0x165)}}],'aiHistory':ta(0x5,_0x15fc4c(0x152),_0x15fc4c(0x161),_0x15fc4c(0x165)),'aiChatResources':ta(0x8,_0x15fc4c(0x152),_0x15fc4c(0x159),_0x15fc4c(0x165)),'aiReviewChecks':[{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x15c),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x152),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}},{'tag':_0x15fc4c(0x15a),'attributes':{'width':_0x15fc4c(0x15c),'height':_0x15fc4c(0x159),'align':_0x15fc4c(0x16e)}}]};function _0x4b03(_0x44ceeb,_0x58cfd9){const _0xe7e8a0=_0xe7e8();return _0x4b03=function(_0x4b0331,_0x2e1421){_0x4b0331=_0x4b0331-0x146;let _0x26bc7e=_0xe7e8a0[_0x4b0331];return _0x26bc7e;},_0x4b03(_0x44ceeb,_0x58cfd9);}function ta(_0x222327,_0x5f59e3,_0x3ac0bb,_0x531202){const _0xc25ce4=_0x15fc4c;return new Array(_0x222327)[_0xc25ce4(0x146)](null)[_0xc25ce4(0x150)](()=>({'tag':_0xc25ce4(0x15a),'attributes':{'width':_0x5f59e3,'height':_0x3ac0bb,'align':_0x531202}}));}