@ckeditor/ckeditor5-ai 47.6.1-alpha.1 → 47.6.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/LICENSE.md +0 -4
  2. package/build/ai.js +2 -1
  3. package/dist/index.js +5 -5
  4. package/dist/translations/af.js +1 -1
  5. package/dist/translations/af.umd.js +1 -1
  6. package/dist/translations/ar.js +1 -1
  7. package/dist/translations/ar.umd.js +1 -1
  8. package/dist/translations/ast.js +1 -1
  9. package/dist/translations/ast.umd.js +1 -1
  10. package/dist/translations/az.js +1 -1
  11. package/dist/translations/az.umd.js +1 -1
  12. package/dist/translations/be.js +1 -1
  13. package/dist/translations/be.umd.js +1 -1
  14. package/dist/translations/bg.js +1 -1
  15. package/dist/translations/bg.umd.js +1 -1
  16. package/dist/translations/bn.js +1 -1
  17. package/dist/translations/bn.umd.js +1 -1
  18. package/dist/translations/bs.js +1 -1
  19. package/dist/translations/bs.umd.js +1 -1
  20. package/dist/translations/ca.js +1 -1
  21. package/dist/translations/ca.umd.js +1 -1
  22. package/dist/translations/cs.js +1 -1
  23. package/dist/translations/cs.umd.js +1 -1
  24. package/dist/translations/da.js +1 -1
  25. package/dist/translations/da.umd.js +1 -1
  26. package/dist/translations/de-ch.js +1 -1
  27. package/dist/translations/de-ch.umd.js +1 -1
  28. package/dist/translations/de.js +1 -1
  29. package/dist/translations/de.umd.js +1 -1
  30. package/dist/translations/el.js +1 -1
  31. package/dist/translations/el.umd.js +1 -1
  32. package/dist/translations/en-au.js +1 -1
  33. package/dist/translations/en-au.umd.js +1 -1
  34. package/dist/translations/en-gb.js +1 -1
  35. package/dist/translations/en-gb.umd.js +1 -1
  36. package/dist/translations/en.js +1 -1
  37. package/dist/translations/en.umd.js +1 -1
  38. package/dist/translations/eo.js +1 -1
  39. package/dist/translations/eo.umd.js +1 -1
  40. package/dist/translations/es-co.js +1 -1
  41. package/dist/translations/es-co.umd.js +1 -1
  42. package/dist/translations/es.js +1 -1
  43. package/dist/translations/es.umd.js +1 -1
  44. package/dist/translations/et.js +1 -1
  45. package/dist/translations/et.umd.js +1 -1
  46. package/dist/translations/eu.js +1 -1
  47. package/dist/translations/eu.umd.js +1 -1
  48. package/dist/translations/fa.js +1 -1
  49. package/dist/translations/fa.umd.js +1 -1
  50. package/dist/translations/fi.js +1 -1
  51. package/dist/translations/fi.umd.js +1 -1
  52. package/dist/translations/fr.js +1 -1
  53. package/dist/translations/fr.umd.js +1 -1
  54. package/dist/translations/gl.js +1 -1
  55. package/dist/translations/gl.umd.js +1 -1
  56. package/dist/translations/gu.js +1 -1
  57. package/dist/translations/gu.umd.js +1 -1
  58. package/dist/translations/he.js +1 -1
  59. package/dist/translations/he.umd.js +1 -1
  60. package/dist/translations/hi.js +1 -1
  61. package/dist/translations/hi.umd.js +1 -1
  62. package/dist/translations/hr.js +1 -1
  63. package/dist/translations/hr.umd.js +1 -1
  64. package/dist/translations/hu.js +1 -1
  65. package/dist/translations/hu.umd.js +1 -1
  66. package/dist/translations/hy.js +1 -1
  67. package/dist/translations/hy.umd.js +1 -1
  68. package/dist/translations/id.js +1 -1
  69. package/dist/translations/id.umd.js +1 -1
  70. package/dist/translations/it.js +1 -1
  71. package/dist/translations/it.umd.js +1 -1
  72. package/dist/translations/ja.js +1 -1
  73. package/dist/translations/ja.umd.js +1 -1
  74. package/dist/translations/jv.js +1 -1
  75. package/dist/translations/jv.umd.js +1 -1
  76. package/dist/translations/kk.js +1 -1
  77. package/dist/translations/kk.umd.js +1 -1
  78. package/dist/translations/km.js +1 -1
  79. package/dist/translations/km.umd.js +1 -1
  80. package/dist/translations/kn.js +1 -1
  81. package/dist/translations/kn.umd.js +1 -1
  82. package/dist/translations/ko.js +1 -1
  83. package/dist/translations/ko.umd.js +1 -1
  84. package/dist/translations/ku.js +1 -1
  85. package/dist/translations/ku.umd.js +1 -1
  86. package/dist/translations/lt.js +1 -1
  87. package/dist/translations/lt.umd.js +1 -1
  88. package/dist/translations/lv.js +1 -1
  89. package/dist/translations/lv.umd.js +1 -1
  90. package/dist/translations/ms.js +1 -1
  91. package/dist/translations/ms.umd.js +1 -1
  92. package/dist/translations/nb.js +1 -1
  93. package/dist/translations/nb.umd.js +1 -1
  94. package/dist/translations/ne.js +1 -1
  95. package/dist/translations/ne.umd.js +1 -1
  96. package/dist/translations/nl.js +1 -1
  97. package/dist/translations/nl.umd.js +1 -1
  98. package/dist/translations/no.js +1 -1
  99. package/dist/translations/no.umd.js +1 -1
  100. package/dist/translations/oc.js +1 -1
  101. package/dist/translations/oc.umd.js +1 -1
  102. package/dist/translations/pl.js +1 -1
  103. package/dist/translations/pl.umd.js +1 -1
  104. package/dist/translations/pt-br.js +1 -1
  105. package/dist/translations/pt-br.umd.js +1 -1
  106. package/dist/translations/pt.js +1 -1
  107. package/dist/translations/pt.umd.js +1 -1
  108. package/dist/translations/ro.js +1 -1
  109. package/dist/translations/ro.umd.js +1 -1
  110. package/dist/translations/ru.js +1 -1
  111. package/dist/translations/ru.umd.js +1 -1
  112. package/dist/translations/si.js +1 -1
  113. package/dist/translations/si.umd.js +1 -1
  114. package/dist/translations/sk.js +1 -1
  115. package/dist/translations/sk.umd.js +1 -1
  116. package/dist/translations/sl.js +1 -1
  117. package/dist/translations/sl.umd.js +1 -1
  118. package/dist/translations/sq.js +1 -1
  119. package/dist/translations/sq.umd.js +1 -1
  120. package/dist/translations/sr-latn.js +1 -1
  121. package/dist/translations/sr-latn.umd.js +1 -1
  122. package/dist/translations/sr.js +1 -1
  123. package/dist/translations/sr.umd.js +1 -1
  124. package/dist/translations/sv.js +1 -1
  125. package/dist/translations/sv.umd.js +1 -1
  126. package/dist/translations/th.js +1 -1
  127. package/dist/translations/th.umd.js +1 -1
  128. package/dist/translations/ti.js +1 -1
  129. package/dist/translations/ti.umd.js +1 -1
  130. package/dist/translations/tk.js +1 -1
  131. package/dist/translations/tk.umd.js +1 -1
  132. package/dist/translations/tr.js +1 -1
  133. package/dist/translations/tr.umd.js +1 -1
  134. package/dist/translations/tt.js +1 -1
  135. package/dist/translations/tt.umd.js +1 -1
  136. package/dist/translations/ug.js +1 -1
  137. package/dist/translations/ug.umd.js +1 -1
  138. package/dist/translations/uk.js +1 -1
  139. package/dist/translations/uk.umd.js +1 -1
  140. package/dist/translations/ur.js +1 -1
  141. package/dist/translations/ur.umd.js +1 -1
  142. package/dist/translations/uz.js +1 -1
  143. package/dist/translations/uz.umd.js +1 -1
  144. package/dist/translations/vi.js +1 -1
  145. package/dist/translations/vi.umd.js +1 -1
  146. package/dist/translations/zh-cn.js +1 -1
  147. package/dist/translations/zh-cn.umd.js +1 -1
  148. package/dist/translations/zh.js +1 -1
  149. package/dist/translations/zh.umd.js +1 -1
  150. package/lang/contexts.json +1 -0
  151. package/package.json +15 -16
  152. package/src/aiactions/aiactions.js +1 -1
  153. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  154. package/src/aiactions/model/aiactionsreply.js +1 -1
  155. package/src/aiassistant/adapters/aiadapter.js +1 -1
  156. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  157. package/src/aiassistant/adapters/awstextadapter.d.ts +15 -156
  158. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  159. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  160. package/src/aiassistant/aiassistant.d.ts +2 -0
  161. package/src/aiassistant/aiassistant.js +1 -1
  162. package/src/aiassistant/aiassistantediting.js +1 -1
  163. package/src/aiassistant/aiassistantui.js +1 -1
  164. package/src/aiassistant/legacyerrors.js +1 -1
  165. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  166. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  167. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  168. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  169. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  170. package/src/aiassistant/ui/form/aiformview.js +1 -1
  171. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  172. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  173. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  174. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  175. package/src/aiassistant/utils/common-translations.js +1 -1
  176. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  177. package/src/aiballoon/aiballoon.js +1 -1
  178. package/src/aiballoon/ui/aiballoonview.js +1 -1
  179. package/src/aichat/aichat.js +1 -1
  180. package/src/aichat/aichatballoon.js +1 -1
  181. package/src/aichat/aichatcontroller.js +1 -1
  182. package/src/aichat/aichatui.js +1 -1
  183. package/src/aichat/model/aichatcontext.js +1 -1
  184. package/src/aichat/model/aichatconversation.js +1 -1
  185. package/src/aichat/model/aichatinteraction.js +1 -1
  186. package/src/aichat/ui/aichatballoonview.js +1 -1
  187. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  188. package/src/aichat/ui/aichatfeedview.js +1 -1
  189. package/src/aichat/ui/aichatheaderview.js +1 -1
  190. package/src/aichat/ui/aichatview.js +1 -1
  191. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  193. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  195. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  196. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  197. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  198. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  201. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  202. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  203. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedcustomelementview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  209. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  210. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  211. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  212. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  213. package/src/aichat/utils/eventnames.js +1 -1
  214. package/src/aichat/utils/promisequeue.js +1 -1
  215. package/src/aichathistory/aichathistory.js +1 -1
  216. package/src/aichathistory/aichathistorycontroller.js +1 -1
  217. package/src/aichathistory/aichathistoryui.js +1 -1
  218. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  219. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  220. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  221. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  222. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  223. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  224. package/src/aichatshortcuts/aichatshortcuts.js +1 -1
  225. package/src/aichatshortcuts/ui/aichatshortcutsview.js +1 -1
  226. package/src/aichatshortcuts/ui/aichatshortcutview.js +1 -1
  227. package/src/aicore/aiconnector.js +1 -1
  228. package/src/aicore/aiediting.js +1 -1
  229. package/src/aicore/model/aicapabilities.js +1 -1
  230. package/src/aicore/model/aicontext.js +1 -1
  231. package/src/aicore/model/aiinteraction.js +1 -1
  232. package/src/aicore/model/aimodels.js +1 -1
  233. package/src/aicore/model/aireply.js +1 -1
  234. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  235. package/src/aicore/pipeline/airesponseparser.js +2 -2
  236. package/src/aicore/ui/aidisclaimerview.js +1 -1
  237. package/src/aicore/ui/aiskeleton.js +1 -1
  238. package/src/aicore/ui/aispinner.js +1 -1
  239. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  240. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  241. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  242. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartheaderview.js +1 -1
  243. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartstateview.js +1 -1
  244. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentparttoolbarview.js +1 -1
  245. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  246. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  247. package/src/aicore/ui/suggestioncontainer/aisuggestionloaderview.js +1 -1
  248. package/src/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js +1 -1
  249. package/src/aicore/ui/suggestioncontainer/aiwebsourcesview.js +1 -1
  250. package/src/aicore/utils/common-translations.js +1 -1
  251. package/src/aicore/utils/createresizebutton.js +1 -1
  252. package/src/aicore/utils/documentposition.js +1 -1
  253. package/src/aicore/utils/documentrange.js +1 -1
  254. package/src/aicore/utils/eventnames.js +1 -1
  255. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  256. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  257. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  258. package/src/aicore/utils/htmlparser.js +1 -1
  259. package/src/aicore/utils/htmlstreamer.js +1 -1
  260. package/src/aicore/utils/scrollmanager.js +1 -1
  261. package/src/aieditorintegration/aieditorintegration.js +1 -1
  262. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  263. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  264. package/src/aiquickactions/aiquickactions.js +1 -1
  265. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  266. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  267. package/src/aiquickactions/aiquickactionsui.js +1 -1
  268. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  269. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  270. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  271. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  272. package/src/aiquickactions/ui/balloon/aiactionsballoondisclaimerview.js +1 -1
  273. package/src/aiquickactions/ui/balloon/aiactionsballoontoolbarview.js +1 -1
  274. package/src/aiquickactions/ui/balloon/aiactionsballoonview.js +1 -1
  275. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  276. package/src/aireviewcore/aireviewcorecontroller.js +1 -1
  277. package/src/aireviewcore/aireviewcoreediting.js +1 -1
  278. package/src/aireviewcore/aireviewcoreui.js +1 -1
  279. package/src/aireviewcore/model/aireviewcheck.js +1 -1
  280. package/src/aireviewcore/model/aireviewchecklist.js +1 -1
  281. package/src/aireviewcore/model/aireviewcheckresult.js +1 -1
  282. package/src/aireviewcore/model/aireviewcheckresultchange.js +1 -1
  283. package/src/aireviewcore/model/aireviewcheckrun.js +1 -1
  284. package/src/aireviewcore/model/aireviewsystemcheckrun.js +1 -1
  285. package/src/aireviewcore/ui/aireviewcoreballoonsuggestionview.js +1 -1
  286. package/src/aireviewcore/ui/aireviewcorechecklistitemresultview.js +1 -1
  287. package/src/aireviewcore/ui/aireviewcorecustomcheckview.js +1 -1
  288. package/src/aireviewcore/ui/aireviewcorefinishreviewbuttonview.js +1 -1
  289. package/src/aireviewcore/ui/aireviewcoregeneralerrorview.js +1 -1
  290. package/src/aireviewcore/ui/aireviewcorepromptinputview.js +1 -1
  291. package/src/aireviewcore/ui/aireviewcorereviewchecklistview.js +1 -1
  292. package/src/aireviewcore/ui/aireviewcorereviewcommandlistitemview.js +1 -1
  293. package/src/aireviewcore/ui/aireviewcorereviewcompletedview.js +1 -1
  294. package/src/aireviewcore/ui/aireviewcoreuicheckresultsview.js +1 -1
  295. package/src/aireviewcore/ui/aireviewcoreview.js +1 -1
  296. package/src/aireviewcore/ui/form/aireviewcoreformdropdown.js +1 -1
  297. package/src/aireviewcore/ui/form/aireviewcoreformmanager.js +1 -1
  298. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  299. package/src/aireviewmode/aireviewmode.js +1 -1
  300. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  301. package/src/aireviewmode/aireviewmodeui.js +1 -1
  302. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  303. package/src/aireviewmode/model/aireviewcheckextra.js +1 -1
  304. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  305. package/src/aireviewmode/model/aireviewextracheckrun.js +1 -1
  306. package/src/aireviewmode/model/aireviewmodechecklist.js +1 -1
  307. package/src/aitabs/aitabs.js +1 -1
  308. package/src/aitabs/aitabsmainview.js +1 -1
  309. package/src/aitabs/tabs/aitabsview.js +1 -1
  310. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  311. package/src/aitabs/tabs/tabpanelview.js +1 -1
  312. package/src/aitranslate/aitranslate.js +1 -1
  313. package/src/aitranslate/aitranslatecontroller.js +1 -1
  314. package/src/aitranslate/aitranslateui.js +1 -1
  315. package/src/aitranslate/model/aitranslatecheck.js +1 -1
  316. package/src/aitranslate/model/aitranslatechecklist.js +1 -1
  317. package/src/aitranslate/model/aitranslatecheckrun.js +1 -1
  318. package/src/aitranslate/ui/aitranslatechecklistview.js +1 -1
  319. package/src/aitranslate/ui/aitranslatecheckresultsview.js +1 -1
  320. package/src/errors.js +1 -1
  321. package/src/errorsmap.js +1 -1
  322. package/src/index.js +1 -1
  323. package/build/966.ai.js +0 -5
  324. package/build/translations/en.js +0 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x227e53=_0x89f6;function _0x4b72(){const _0x515c7a=['/reviews/system/','message','getReader','status','length','/actions/custom/calls/','8XxYKwU','GET','false','append','attributes','https://ai.cke-cs.com/v1','totalCount','CONTINUE','sortBy','POST','isPremiumPlugin','/web-resources','make-tone-formal','request','data','application/json','items','language','text','_getStreamReader','deleteFile','fetchConversations','319795HbUQQz','_token','requires','plugins','1822720Cjtpod','_apiUrl','ai.serviceUrl','deleteConversation','limit','/ratings','_sendApiRequest','fetchDocument','continue','/conversations?','json','modificationId','PATCH','/documents/','config','createdAt','push','uploadDocument','get','callCustomReview','deleteWebResource','positiveCount','DELETE','callSystemReview','26466ueNdGz','440jbgTCq','_decoder','traceId','parse','/web-resources/','group','68994dpyvDw','/messages/','order','/documents','init','upsertAIActionRating','read','1233740ruJVOY','decode','156485tIyopc','releaseLock','signal','MAKE_TONE_FORMAL','true','/reviews/custom/calls','fix-grammar','/calls/','make-tone-casual','/models/1?','Content-Type','then','/conversations/','/calls','/reviews/custom/calls/','executeCustomAction','/conversations','CloudServices','_handleError','100','AIConnector','FIX_GRAMMAR','AbortError','/messages','/files/','/actions/system/','fetchConversationMessages','upsertCustomAIReviewRating','queryAssistant','PUT','getModels','body','file','define','make-shorter','reset','excludeEmpty','value','TRANSLATE','desc','MAKE_TONE_CASUAL','uploadFile','IMPROVE_WRITING','catch','ai-request-failed','MAKE_SHORTER','context','MAKE_LONGER','statusText','42jZQZOz','upsertCustomAIActionRating','code','235251qqygds','/files','fetchConversation','make-longer','translate','updateConversation','stringify','ai-missing-token','abortController','uploadUrl','executeAction','upsertAIChatRating','pluginName','feed','ai-request-aborted','name','toString','/actions/custom/calls','token','Bearer\x20','deleteDocument','isOfficialPlugin','upsertAIReviewRating','startConversation','improve-writing'];_0x4b72=function(){return _0x515c7a;};return _0x4b72();}(function(_0x176ef1,_0x1f8fae){const _0x18d4ec=_0x89f6,_0x5dc5e1=_0x176ef1();while(!![]){try{const _0xe9c0a6=parseInt(_0x18d4ec(0xef))/0x1+parseInt(_0x18d4ec(0x10e))/0x2*(-parseInt(_0x18d4ec(0x140))/0x3)+-parseInt(_0x18d4ec(0x14e))/0x4+-parseInt(_0x18d4ec(0x124))/0x5+-parseInt(_0x18d4ec(0xec))/0x6*(-parseInt(_0x18d4ec(0x150))/0x7)+-parseInt(_0x18d4ec(0x141))/0x8*(-parseInt(_0x18d4ec(0x147))/0x9)+-parseInt(_0x18d4ec(0x128))/0xa;if(_0xe9c0a6===_0x1f8fae)break;else _0x5dc5e1['push'](_0x5dc5e1['shift']());}catch(_0x84ea04){_0x5dc5e1['push'](_0x5dc5e1['shift']());}}}(_0x4b72,0x368b4));import{createParser as _0x3f14ab}from'eventsource-parser';import{ContextPlugin as _0xe00701}from'ckeditor5/src/core.js';function _0x89f6(_0x336fc5,_0x50bb67){const _0x4b725a=_0x4b72();return _0x89f6=function(_0x89f633,_0x307625){_0x89f633=_0x89f633-0xcb;let _0x4304ec=_0x4b725a[_0x89f633];return _0x4304ec;},_0x89f6(_0x336fc5,_0x50bb67);}import{CKEditorError as _0x5c28f1}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x5e1db1){const _0x4bafd4=_0x89f6;_0x5e1db1[_0x4bafd4(0x115)]=_0x4bafd4(0x130),_0x5e1db1[_0x4bafd4(0xd0)]=_0x4bafd4(0x156),_0x5e1db1[_0x4bafd4(0xe5)]=_0x4bafd4(0x107),_0x5e1db1[_0x4bafd4(0xea)]=_0x4bafd4(0xf2),_0x5e1db1[_0x4bafd4(0xe8)]=_0x4bafd4(0xdd),_0x5e1db1[_0x4bafd4(0xe3)]=_0x4bafd4(0x158),_0x5e1db1[_0x4bafd4(0x153)]=_0x4bafd4(0x11a),_0x5e1db1[_0x4bafd4(0xe1)]=_0x4bafd4(0xf3);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0xe00701{[_0x227e53(0x129)];[_0x227e53(0x125)];[_0x227e53(0x142)];static get[_0x227e53(0x126)](){const _0x4802f2=_0x227e53;return[_0x4802f2(0xcc)];}static get[_0x227e53(0xfb)](){const _0x238046=_0x227e53;return _0x238046(0xcf);}static get[_0x227e53(0x104)](){return!0x0;}static get[_0x227e53(0x118)](){return!0x0;}constructor(_0xe6857b){const _0x4b5c1d=_0x227e53;super(_0xe6857b),this[_0x4b5c1d(0xe9)][_0x4b5c1d(0x136)][_0x4b5c1d(0xdc)](_0x4b5c1d(0x12a),_0x4b5c1d(0x113)),this[_0x4b5c1d(0x129)]=this[_0x4b5c1d(0xe9)][_0x4b5c1d(0x136)][_0x4b5c1d(0x13a)](_0x4b5c1d(0x12a)),this[_0x4b5c1d(0x125)]=null,this[_0x4b5c1d(0x142)]=new TextDecoder();}[_0x227e53(0x14b)](){const _0x4ced67=_0x227e53,_0x126a82=this[_0x4ced67(0xe9)][_0x4ced67(0x127)][_0x4ced67(0x13a)](_0x4ced67(0xcc));if(!_0x126a82[_0x4ced67(0x101)])throw new _0x5c28f1(_0x4ced67(0xf6),this);this[_0x4ced67(0x125)]=_0x126a82[_0x4ced67(0x101)];}[_0x227e53(0x106)](_0x43dc00,_0x21bd4f){const _0x511823=_0x227e53,_0x422b52=this[_0x511823(0x12e)](_0x511823(0xcb),_0x511823(0x117),{'id':_0x43dc00,'group':_0x21bd4f});return{'getConversation':async()=>(await _0x422b52[_0x511823(0x11b)])[_0x511823(0x132)](),'abortController':_0x422b52[_0x511823(0xf7)]};}[_0x227e53(0xd7)]({message:_0xd79fc4,conversationId:_0x54963f,parts:_0x22a833,capabilities:_0x5a1e7f,model:_0x220aec,attributes:_0x23d113}){const _0x292f0b=_0x227e53,_0x31db02={'prompt':_0xd79fc4,'content':_0x22a833,'model':_0x220aec,..._0x5a1e7f&&{'capabilities':_0x5a1e7f},..._0x23d113&&{'attributes':_0x23d113}},_0x13107d=this[_0x292f0b(0x12e)](_0x292f0b(0x15c)+_0x54963f+_0x292f0b(0xd2),_0x292f0b(0x117),_0x31db02);return{'getStream':async()=>{const _0x28541f=_0x292f0b,_0x34344a=(await _0x13107d[_0x28541f(0x11b)])[_0x28541f(0xda)];return this[_0x28541f(0x121)](_0x34344a);},'abortController':_0x13107d[_0x292f0b(0xf7)]};}[_0x227e53(0x15f)]({content:_0x5a20dd,message:_0x16cdc0,model:_0x225013,outputFormat:_0x2ca049}){const _0x478ed4=_0x227e53,_0x2519d5={'content':[{'type':_0x478ed4(0x120),'content':_0x5a20dd}],'prompt':_0x16cdc0,'model':_0x225013,'outputFormat':_0x2ca049},_0x295362=this[_0x478ed4(0x12e)](_0x478ed4(0x100),_0x478ed4(0x117),_0x2519d5);return{'getStream':async()=>{const _0xab8472=_0x478ed4,_0x30e6cb=(await _0x295362[_0xab8472(0x11b)])[_0xab8472(0xda)];return this[_0xab8472(0x121)](_0x30e6cb);},'abortController':_0x295362[_0x478ed4(0xf7)]};}[_0x227e53(0xf9)]({actionName:_0x2387d7,content:_0x15989d,args:_0x3c339c}){const _0x19c86d=_0x227e53,_0x2e969f={'content':[{'type':_0x19c86d(0x120),'content':_0x15989d}],'args':_0x3c339c},_0x25e17f=this[_0x19c86d(0x12e)](_0x19c86d(0xd4)+_0x2387d7+_0x19c86d(0x15d),_0x19c86d(0x117),_0x2e969f);return{'getStream':async()=>{const _0x2268db=_0x19c86d,_0x527a97=(await _0x25e17f[_0x2268db(0x11b)])[_0x2268db(0xda)];return this[_0x2268db(0x121)](_0x527a97);},'abortController':_0x25e17f[_0x19c86d(0xf7)]};}[_0x227e53(0xe4)](_0x4872ac,_0x476c70,_0xdca44e){const _0x5283d3=_0x227e53,_0xa1c5e1=new FormData();_0xa1c5e1[_0x5283d3(0x111)](_0x5283d3(0xdb),_0x476c70,_0x476c70[_0x5283d3(0xfe)]),_0xdca44e&&_0xa1c5e1[_0x5283d3(0x111)](_0x5283d3(0x112),JSON[_0x5283d3(0xf5)](_0xdca44e));const _0xf20167=this[_0x5283d3(0x12e)](_0x5283d3(0x15c)+_0x4872ac+_0x5283d3(0xf0),_0x5283d3(0x117),_0xa1c5e1);return{'getId':async()=>(await _0xf20167[_0x5283d3(0x11b)])[_0x5283d3(0x132)](),'abortController':_0xf20167[_0x5283d3(0xf7)]};}[_0x227e53(0x12f)](_0x1fd92b,_0x4b2fc2){const _0x32d7ee=_0x227e53,_0x4ab499=this[_0x32d7ee(0x12e)](_0x32d7ee(0x15c)+_0x1fd92b+_0x32d7ee(0x135)+_0x4b2fc2,_0x32d7ee(0x10f));return{'getDocument':async()=>(await _0x4ab499[_0x32d7ee(0x11b)])[_0x32d7ee(0x132)](),'abortController':_0x4ab499[_0x32d7ee(0xf7)]};}[_0x227e53(0x139)](_0x4bb388,_0x5ef53e,_0x229114){const _0x30c45d=_0x227e53,_0x30341a={'content':_0x5ef53e};_0x229114&&(_0x30341a[_0x30c45d(0x112)]=_0x229114);const _0x431974=this[_0x30c45d(0x12e)](_0x30c45d(0x15c)+_0x4bb388+_0x30c45d(0x14a),_0x30c45d(0x117),_0x30341a);return{'getId':async()=>(await _0x431974[_0x30c45d(0x11b)])[_0x30c45d(0x132)](),'abortController':_0x431974[_0x30c45d(0xf7)]};}[_0x227e53(0x123)](_0x1ce84a,_0x4438c7={}){const _0x96cc0b=_0x227e53,_0x5b6790=new URLSearchParams();_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x146),_0x1ce84a),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0xdf),!0x1!==_0x4438c7[_0x96cc0b(0xdf)]?_0x96cc0b(0x154):_0x96cc0b(0x110)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x12c),_0x4438c7[_0x96cc0b(0x12c)]?_0x4438c7[_0x96cc0b(0x12c)][_0x96cc0b(0xff)]():_0x96cc0b(0xce)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x116),_0x4438c7[_0x96cc0b(0x116)]?_0x4438c7[_0x96cc0b(0x116)]:_0x96cc0b(0x137)),_0x5b6790[_0x96cc0b(0x111)](_0x96cc0b(0x149),_0x4438c7[_0x96cc0b(0x149)]?_0x4438c7[_0x96cc0b(0x149)]:_0x96cc0b(0xe2));const _0x563929=this[_0x96cc0b(0x12e)](_0x96cc0b(0x131)+_0x5b6790[_0x96cc0b(0xff)](),_0x96cc0b(0x10f));return{'getConversations':async()=>{const _0x542189=_0x96cc0b,_0x32ed7e=await _0x563929[_0x542189(0x11b)];return(await _0x32ed7e[_0x542189(0x132)]())[_0x542189(0x11e)];},'abortController':_0x563929[_0x96cc0b(0xf7)]};}[_0x227e53(0x12b)](_0x1178d7){const _0x56fb25=_0x227e53,_0x998e02=this[_0x56fb25(0x12e)](_0x56fb25(0x15c)+_0x1178d7,_0x56fb25(0x13e));return{'execute':async()=>{const _0x288b6c=_0x56fb25;await _0x998e02[_0x288b6c(0x11b)];},'abortController':_0x998e02[_0x56fb25(0xf7)]};}[_0x227e53(0xf4)](_0x626bf4,_0x18b7c6){const _0x1c8f98=_0x227e53,_0x467764=this[_0x1c8f98(0x12e)](_0x1c8f98(0x15c)+_0x626bf4,_0x1c8f98(0x134),_0x18b7c6);return{'getResult':async()=>(await _0x467764[_0x1c8f98(0x11b)],_0x18b7c6),'abortController':_0x467764[_0x1c8f98(0xf7)]};}[_0x227e53(0xf1)](_0x5b99dd){const _0x5b9571=_0x227e53,_0x224e37=this[_0x5b9571(0x12e)](_0x5b9571(0x15c)+_0x5b99dd,_0x5b9571(0x10f));return{'getConversation':async()=>(await _0x224e37[_0x5b9571(0x11b)])[_0x5b9571(0x132)](),'abortController':_0x224e37[_0x5b9571(0xf7)]};}[_0x227e53(0xd5)](_0x4b832e){const _0x4d7fe2=_0x227e53,_0x4f6e51=this[_0x4d7fe2(0x12e)](_0x4d7fe2(0x15c)+_0x4b832e+_0x4d7fe2(0xd2),_0x4d7fe2(0x10f));return{'getMessages':async()=>{const _0x5981bd=_0x4d7fe2,_0xd8b65e=await _0x4f6e51[_0x5981bd(0x11b)];return(await _0xd8b65e[_0x5981bd(0x132)]())[_0x5981bd(0x11e)];},'abortController':_0x4f6e51[_0x4d7fe2(0xf7)]};}[_0x227e53(0xf8)](_0x53697d,_0x165152,_0x2d5b13){const _0x3c8678=_0x227e53,_0x257784=this[_0x3c8678(0x12e)](_0x3c8678(0x15c)+_0x53697d+_0x3c8678(0x119),_0x3c8678(0x117),{'url':_0x165152,'attributes':_0x2d5b13});return{'getId':async()=>(await _0x257784[_0x3c8678(0x11b)])[_0x3c8678(0x132)](),'abortController':_0x257784[_0x3c8678(0xf7)]};}[_0x227e53(0xd9)](_0x303dd8='en'){const _0x3d1c5b=_0x227e53,_0x2eac14=new URLSearchParams();_0x2eac14[_0x3d1c5b(0x111)](_0x3d1c5b(0x11f),_0x303dd8);const _0x3a3252=_0x3d1c5b(0x159)+_0x2eac14[_0x3d1c5b(0xff)](),_0x343bf8=this[_0x3d1c5b(0x12e)](_0x3a3252,_0x3d1c5b(0x10f));return{'list':async()=>await(await _0x343bf8[_0x3d1c5b(0x11b)])[_0x3d1c5b(0x132)](),'abortController':_0x343bf8[_0x3d1c5b(0xf7)]};}[_0x227e53(0x122)](_0x2b056a,_0x516e23){const _0x1411f6=_0x227e53,_0x4c5e2c=this[_0x1411f6(0x12e)](_0x1411f6(0x15c)+_0x2b056a+_0x1411f6(0xd3)+_0x516e23,_0x1411f6(0x13e));return{'execute':async()=>{const _0x24a4ed=_0x1411f6;await _0x4c5e2c[_0x24a4ed(0x11b)];},'abortController':_0x4c5e2c[_0x1411f6(0xf7)]};}[_0x227e53(0x103)](_0x330d29,_0x1deed9){const _0x2d2e14=_0x227e53,_0x24457d=this[_0x2d2e14(0x12e)](_0x2d2e14(0x15c)+_0x330d29+_0x2d2e14(0x135)+_0x1deed9,_0x2d2e14(0x13e));return{'execute':async()=>{const _0x53ad1a=_0x2d2e14;await _0x24457d[_0x53ad1a(0x11b)];},'abortController':_0x24457d[_0x2d2e14(0xf7)]};}[_0x227e53(0x13c)](_0x1e2eb3,_0x1ddf73){const _0x295c58=_0x227e53,_0x2d8509=this[_0x295c58(0x12e)](_0x295c58(0x15c)+_0x1e2eb3+_0x295c58(0x145)+_0x1ddf73,_0x295c58(0x13e));return{'execute':async()=>{const _0x5530ce=_0x295c58;await _0x2d8509[_0x5530ce(0x11b)];},'abortController':_0x2d8509[_0x295c58(0xf7)]};}[_0x227e53(0x13f)]({reviewName:_0x475faa,content:_0x5174ae,args:_0x2d014e}){const _0x582697=_0x227e53,_0x3ebe6e=this[_0x582697(0x12e)](_0x582697(0x108)+_0x475faa+_0x582697(0x15d),_0x582697(0x117),{'content':[{'type':_0x582697(0x120),'content':_0x5174ae}],'args':_0x2d014e});return{'getStream':async()=>{const _0x4ff725=_0x582697,_0x6217e5=(await _0x3ebe6e[_0x4ff725(0x11b)])[_0x4ff725(0xda)];return this[_0x4ff725(0x121)](_0x6217e5);},'abortController':_0x3ebe6e[_0x582697(0xf7)]};}[_0x227e53(0x13b)]({content:_0x24019b,prompt:_0x59f57a,model:_0xe9fe3}){const _0x2731f9=_0x227e53,_0x3d4a4d=this[_0x2731f9(0x12e)](_0x2731f9(0x155),_0x2731f9(0x117),{'content':[{'type':_0x2731f9(0x120),'content':_0x24019b}],'prompt':_0x59f57a,'model':_0xe9fe3});return{'getStream':async()=>{const _0x480960=_0x2731f9,_0x10e635=(await _0x3d4a4d[_0x480960(0x11b)])[_0x480960(0xda)];return this[_0x480960(0x121)](_0x10e635);},'abortController':_0x3d4a4d[_0x2731f9(0xf7)]};}[_0x227e53(0xfa)](_0x4fbe0b,_0x34bf2a,_0x2365ce){const _0x4821e2=_0x227e53,_0x1ff94f=this[_0x4821e2(0x12e)](_0x4821e2(0x15c)+_0x4fbe0b+_0x4821e2(0x148)+_0x34bf2a+_0x4821e2(0x12d),_0x4821e2(0xd8),{'positiveCount':_0x2365ce[_0x4821e2(0x13d)],'totalCount':_0x2365ce[_0x4821e2(0x114)],'modificationId':_0x2365ce[_0x4821e2(0x133)]});return{'execute':async()=>{const _0x3aa219=_0x4821e2;await _0x1ff94f[_0x3aa219(0x11b)];},'abortController':_0x1ff94f[_0x4821e2(0xf7)]};}[_0x227e53(0x14c)](_0xb952c0,_0x3c635f,_0x15f4cc){const _0x5080b9=_0x227e53,_0x32c1fc=this[_0x5080b9(0x12e)](_0x5080b9(0xd4)+_0xb952c0+_0x5080b9(0x157)+_0x3c635f+_0x5080b9(0x12d),_0x5080b9(0xd8),{'positiveCount':_0x15f4cc[_0x5080b9(0x13d)],'totalCount':_0x15f4cc[_0x5080b9(0x114)]});return{'execute':async()=>{const _0x4aa31b=_0x5080b9;await _0x32c1fc[_0x4aa31b(0x11b)];},'abortController':_0x32c1fc[_0x5080b9(0xf7)]};}[_0x227e53(0xed)](_0x5ba867,_0x594538){const _0x2ad985=_0x227e53,_0x4d972b=this[_0x2ad985(0x12e)](_0x2ad985(0x10d)+_0x5ba867+_0x2ad985(0x12d),_0x2ad985(0xd8),{'positiveCount':_0x594538[_0x2ad985(0x13d)],'totalCount':_0x594538[_0x2ad985(0x114)]});return{'execute':async()=>{const _0x310f1c=_0x2ad985;await _0x4d972b[_0x310f1c(0x11b)];},'abortController':_0x4d972b[_0x2ad985(0xf7)]};}[_0x227e53(0x105)](_0x4afb03,_0x5c6755,_0x5e0a84,_0x3fc77a){const _0x43222a=_0x227e53,_0x58c455=this[_0x43222a(0x12e)](_0x43222a(0x108)+_0x4afb03+_0x43222a(0x157)+_0x5c6755+_0x43222a(0x12d),_0x43222a(0xd8),{'positiveCount':_0x5e0a84[_0x43222a(0x13d)],'totalCount':_0x5e0a84[_0x43222a(0x114)],'dataId':_0x3fc77a});return{'execute':async()=>{const _0x41afbb=_0x43222a;await _0x58c455[_0x41afbb(0x11b)];},'abortController':_0x58c455[_0x43222a(0xf7)]};}[_0x227e53(0xd6)](_0x1f354c,_0x84a23a,_0x4650da){const _0x198021=_0x227e53,_0x4f1879=this[_0x198021(0x12e)](_0x198021(0x15e)+_0x1f354c+_0x198021(0x12d),_0x198021(0xd8),{'positiveCount':_0x84a23a[_0x198021(0x13d)],'totalCount':_0x84a23a[_0x198021(0x114)],'dataId':_0x4650da});return{'execute':async()=>{const _0x58c42f=_0x198021;await _0x4f1879[_0x58c42f(0x11b)];},'abortController':_0x4f1879[_0x198021(0xf7)]};}[_0x227e53(0x12e)](_0x1c81c4,_0x43c5bc,_0x44940c){const _0x7869c6=_0x227e53,_0x31231b=new AbortController(),_0x5bf620=_0x44940c instanceof FormData,_0x15e8d1={'Authorization':_0x7869c6(0x102)+this[_0x7869c6(0x125)]?.[_0x7869c6(0xe0)]};_0x44940c&&!_0x5bf620&&(_0x15e8d1[_0x7869c6(0x15a)]=_0x7869c6(0x11d));const _0x1117e3={'method':_0x43c5bc,'headers':_0x15e8d1,'signal':_0x31231b[_0x7869c6(0x152)]};return _0x44940c&&(_0x1117e3[_0x7869c6(0xda)]=_0x5bf620?_0x44940c:JSON[_0x7869c6(0xf5)](_0x44940c)),{'request':fetch(''+this[_0x7869c6(0x129)]+_0x1c81c4,_0x1117e3)[_0x7869c6(0xe6)](_0x56091b=>{const _0x1cacbb=_0x7869c6;this[_0x1cacbb(0xcd)](_0x56091b);})[_0x7869c6(0x15b)](_0x12dc54=>_0x12dc54['ok']?_0x12dc54:_0x12dc54[_0x7869c6(0x132)]()[_0x7869c6(0x15b)](_0x1207cb=>{const _0x252290=_0x7869c6;throw{'url':this[_0x252290(0x129)],'path':_0x1c81c4,'method':_0x43c5bc,'body':_0x44940c,'status':(_0x12dc54||{})[_0x252290(0x10b)],'statusText':(_0x12dc54||{})[_0x252290(0xeb)],'code':_0x1207cb[_0x252290(0xee)],'message':_0x1207cb[_0x252290(0x109)],'traceId':_0x1207cb[_0x252290(0x143)]};})),'abortController':_0x31231b};}async*[_0x227e53(0x121)](_0x28a39a){const _0x41c1d3=_0x227e53,_0x211b29=[],_0xb4604a=_0x28a39a[_0x41c1d3(0x10a)](),_0x584f21=_0x3f14ab({'onError':_0x17f5b2=>{const _0x3aae5f=_0x41c1d3;this[_0x3aae5f(0xcd)](_0x17f5b2);},'onEvent':_0x5128f5=>{const _0x143664=_0x41c1d3;_0x5128f5[_0x143664(0x11c)]=JSON[_0x143664(0x144)](_0x5128f5[_0x143664(0x11c)]),_0x211b29[_0x143664(0x138)](_0x5128f5);}});try{let _0x190120=!0x1;for(;!_0x190120;){const {done:_0x513ba9,value:_0x3724c4}=await _0xb4604a[_0x41c1d3(0x14d)]();_0x513ba9&&(_0x190120=!0x0),_0x584f21[_0x41c1d3(0xfc)](this[_0x41c1d3(0x142)][_0x41c1d3(0x14f)](_0x3724c4,{'stream':!0x0})),yield*_0x211b29,_0x211b29[_0x41c1d3(0x10c)]=0x0;}}catch(_0x5425bf){this[_0x41c1d3(0xcd)](_0x5425bf);}finally{_0xb4604a[_0x41c1d3(0x151)](),_0x584f21[_0x41c1d3(0xde)]();}}[_0x227e53(0xcd)](_0x4f6cc3){const _0x3c115a=_0x227e53;if(_0x4f6cc3 instanceof _0x5c28f1)throw _0x4f6cc3;if(_0x4f6cc3 instanceof Error&&_0x3c115a(0xd1)===_0x4f6cc3[_0x3c115a(0xfe)])throw new _0x5c28f1(_0x3c115a(0xfd),this,{'originalError':_0x4f6cc3});throw new _0x5c28f1(_0x3c115a(0xe7),this,{'originalError':_0x4f6cc3});}}
23
+ function _0x292b(){const _0x440485=['TRANSLATE','598YLsxoj','100','3510mOIKeA','deleteFile','translate','make-shorter','920028evYnsK','read','context','/models/1?','order','deleteDocument','isOfficialPlugin','uploadDocument','make-tone-formal','upsertCustomAIReviewRating','/reviews/custom/calls/','75449FMeKoD','define','deleteWebResource','30ZwJmXa','ai.serviceUrl','fetchConversationMessages','CloudServices','AIConnector','get','MAKE_LONGER','executeCustomAction','stringify','improve-writing','language','group','init','signal','MAKE_TONE_CASUAL','/actions/system/','20LYHNoN','_sendApiRequest','status','/calls','_decoder','Content-Type','getReader','callSystemReview','fix-grammar','/web-resources/','deleteConversation','1079qILJTu','statusText','make-tone-casual','fetchConversations','sortBy','plugins','application/json','feed','abortController','POST','AbortError','/conversations','body','/actions/custom/calls/','true','Bearer\x20','/messages/','_getStreamReader','isPremiumPlugin','FIX_GRAMMAR','reset','/documents/','decode','/web-resources','continue','token','getModels','upsertAIActionRating','pluginName','/ratings','limit','startConversation','DELETE','traceId','_handleError','config','text','requires','1040oKEJeN','releaseLock','_apiUrl','145012slcCuO','executeAction','/conversations?','/reviews/system/','PATCH','items','/calls/','positiveCount','false','GET','message','/documents','upsertAIChatRating','name','excludeEmpty','value','MAKE_TONE_FORMAL','IMPROVE_WRITING','ai-request-aborted','fetchDocument','catch','937116smXKOl','ai-request-failed','_token','updateConversation','then','callCustomReview','6161197IsYNkh','996JmEVLe','createdAt','data','fetchConversation','code','append','/files/','upsertAIReviewRating','8tpsLbz','json','queryAssistant','/messages','upsertCustomAIActionRating','push','9BLUJaH','modificationId','length','totalCount','parse','attributes','CONTINUE','ai-missing-token','/actions/custom/calls','file','https://ai.cke-cs.com/v1','request','/reviews/custom/calls','/files','uploadUrl','toString','make-longer','PUT','MAKE_SHORTER','uploadFile','/conversations/','desc'];_0x292b=function(){return _0x440485;};return _0x292b();}const _0xd681c3=_0x4c55;(function(_0x14b57c,_0x24b406){const _0x3560fd=_0x4c55,_0x1dc981=_0x14b57c();while(!![]){try{const _0x5b16fe=parseInt(_0x3560fd(0x18a))/0x1*(-parseInt(_0x3560fd(0x1df))/0x2)+parseInt(_0x3560fd(0x20c))/0x3*(parseInt(_0x3560fd(0x190))/0x4)+-parseInt(_0x3560fd(0x1ae))/0x5*(-parseInt(_0x3560fd(0x1f7))/0x6)+parseInt(_0x3560fd(0x1fd))/0x7*(parseInt(_0x3560fd(0x206))/0x8)+parseInt(_0x3560fd(0x18c))/0x9*(parseInt(_0x3560fd(0x19e))/0xa)+-parseInt(_0x3560fd(0x19b))/0xb*(parseInt(_0x3560fd(0x1fe))/0xc)+-parseInt(_0x3560fd(0x1b9))/0xd*(parseInt(_0x3560fd(0x1e2))/0xe);if(_0x5b16fe===_0x24b406)break;else _0x1dc981['push'](_0x1dc981['shift']());}catch(_0x4c78d7){_0x1dc981['push'](_0x1dc981['shift']());}}}(_0x292b,0x6f5c7));import{createParser as _0x4de6fe}from'eventsource-parser';function _0x4c55(_0x3cc971,_0x58128b){const _0x292b4c=_0x292b();return _0x4c55=function(_0x4c5536,_0x161c61){_0x4c5536=_0x4c5536-0x177;let _0x54e223=_0x292b4c[_0x4c5536];return _0x54e223;},_0x4c55(_0x3cc971,_0x58128b);}import{ContextPlugin as _0x5632a7}from'ckeditor5/src/core.js';import{CKEditorError as _0x3cbcb0}from'ckeditor5/src/utils.js';export var AIActionsNames;!function(_0x4689cc){const _0x223452=_0x4c55;_0x4689cc[_0x223452(0x179)]=_0x223452(0x1d1),_0x4689cc[_0x223452(0x1cc)]=_0x223452(0x1b6),_0x4689cc[_0x223452(0x1f3)]=_0x223452(0x1a7),_0x4689cc[_0x223452(0x1a4)]=_0x223452(0x183),_0x4689cc[_0x223452(0x185)]=_0x223452(0x18f),_0x4689cc[_0x223452(0x1ac)]=_0x223452(0x1bb),_0x4689cc[_0x223452(0x1f2)]=_0x223452(0x198),_0x4689cc[_0x223452(0x189)]=_0x223452(0x18e);}(AIActionsNames||(AIActionsNames={}));export class AIConnector extends _0x5632a7{[_0xd681c3(0x1e1)];[_0xd681c3(0x1f9)];[_0xd681c3(0x1b2)];static get[_0xd681c3(0x1de)](){const _0x8d21ad=_0xd681c3;return[_0x8d21ad(0x1a1)];}static get[_0xd681c3(0x1d5)](){const _0x52a864=_0xd681c3;return _0x52a864(0x1a2);}static get[_0xd681c3(0x196)](){return!0x0;}static get[_0xd681c3(0x1cb)](){return!0x0;}constructor(_0x5b53c2){const _0x3e7cb6=_0xd681c3;super(_0x5b53c2),this[_0x3e7cb6(0x192)][_0x3e7cb6(0x1dc)][_0x3e7cb6(0x19c)](_0x3e7cb6(0x19f),_0x3e7cb6(0x17d)),this[_0x3e7cb6(0x1e1)]=this[_0x3e7cb6(0x192)][_0x3e7cb6(0x1dc)][_0x3e7cb6(0x1a3)](_0x3e7cb6(0x19f)),this[_0x3e7cb6(0x1f9)]=null,this[_0x3e7cb6(0x1b2)]=new TextDecoder();}[_0xd681c3(0x1aa)](){const _0x46a7c7=_0xd681c3,_0x4abca8=this[_0x46a7c7(0x192)][_0x46a7c7(0x1be)][_0x46a7c7(0x1a3)](_0x46a7c7(0x1a1));if(!_0x4abca8[_0x46a7c7(0x1d2)])throw new _0x3cbcb0(_0x46a7c7(0x17a),this);this[_0x46a7c7(0x1f9)]=_0x4abca8[_0x46a7c7(0x1d2)];}[_0xd681c3(0x1d8)](_0x280281,_0x5a2ba0){const _0xec6770=_0xd681c3,_0x138f22=this[_0xec6770(0x1af)](_0xec6770(0x1c4),_0xec6770(0x1c2),{'id':_0x280281,'group':_0x5a2ba0});return{'getConversation':async()=>(await _0x138f22[_0xec6770(0x17e)])[_0xec6770(0x207)](),'abortController':_0x138f22[_0xec6770(0x1c1)]};}[_0xd681c3(0x208)]({message:_0x50d37e,conversationId:_0x333d16,parts:_0x2be468,capabilities:_0x362a50,model:_0x595335,attributes:_0x5ca000}){const _0x45a477=_0xd681c3,_0x321931={'prompt':_0x50d37e,'content':_0x2be468,'model':_0x595335,..._0x362a50&&{'capabilities':_0x362a50},..._0x5ca000&&{'attributes':_0x5ca000}},_0x2940cb=this[_0x45a477(0x1af)](_0x45a477(0x187)+_0x333d16+_0x45a477(0x209),_0x45a477(0x1c2),_0x321931);return{'getStream':async()=>{const _0x36b625=_0x45a477,_0x3b6325=(await _0x2940cb[_0x36b625(0x17e)])[_0x36b625(0x1c5)];return this[_0x36b625(0x1ca)](_0x3b6325);},'abortController':_0x2940cb[_0x45a477(0x1c1)]};}[_0xd681c3(0x1a5)]({content:_0x4553e7,message:_0x5cfda7,model:_0x4702ce,outputFormat:_0xc44bfc}){const _0x3d48b4=_0xd681c3,_0x28caa6={'content':[{'type':_0x3d48b4(0x1dd),'content':_0x4553e7}],'prompt':_0x5cfda7,'model':_0x4702ce,'outputFormat':_0xc44bfc},_0x4de253=this[_0x3d48b4(0x1af)](_0x3d48b4(0x17b),_0x3d48b4(0x1c2),_0x28caa6);return{'getStream':async()=>{const _0x797455=_0x3d48b4,_0x265b8a=(await _0x4de253[_0x797455(0x17e)])[_0x797455(0x1c5)];return this[_0x797455(0x1ca)](_0x265b8a);},'abortController':_0x4de253[_0x3d48b4(0x1c1)]};}[_0xd681c3(0x1e3)]({actionName:_0x3a060b,content:_0x52decf,args:_0x9cc9b}){const _0x1ede75=_0xd681c3,_0x2de082={'content':[{'type':_0x1ede75(0x1dd),'content':_0x52decf}],'args':_0x9cc9b},_0x5151db=this[_0x1ede75(0x1af)](_0x1ede75(0x1ad)+_0x3a060b+_0x1ede75(0x1b1),_0x1ede75(0x1c2),_0x2de082);return{'getStream':async()=>{const _0x1f4268=_0x1ede75,_0x174085=(await _0x5151db[_0x1f4268(0x17e)])[_0x1f4268(0x1c5)];return this[_0x1f4268(0x1ca)](_0x174085);},'abortController':_0x5151db[_0x1ede75(0x1c1)]};}[_0xd681c3(0x186)](_0x168b7c,_0x138b24,_0x4bbaa9){const _0x469975=_0xd681c3,_0x49179b=new FormData();_0x49179b[_0x469975(0x203)](_0x469975(0x17c),_0x138b24,_0x138b24[_0x469975(0x1ef)]),_0x4bbaa9&&_0x49179b[_0x469975(0x203)](_0x469975(0x178),JSON[_0x469975(0x1a6)](_0x4bbaa9));const _0x5bbda3=this[_0x469975(0x1af)](_0x469975(0x187)+_0x168b7c+_0x469975(0x180),_0x469975(0x1c2),_0x49179b);return{'getId':async()=>(await _0x5bbda3[_0x469975(0x17e)])[_0x469975(0x207)](),'abortController':_0x5bbda3[_0x469975(0x1c1)]};}[_0xd681c3(0x1f5)](_0x3752d9,_0x331322){const _0x268dd9=_0xd681c3,_0x4e5b24=this[_0x268dd9(0x1af)](_0x268dd9(0x187)+_0x3752d9+_0x268dd9(0x1ce)+_0x331322,_0x268dd9(0x1eb));return{'getDocument':async()=>(await _0x4e5b24[_0x268dd9(0x17e)])[_0x268dd9(0x207)](),'abortController':_0x4e5b24[_0x268dd9(0x1c1)]};}[_0xd681c3(0x197)](_0x27f98a,_0x11e377,_0x2d17b0){const _0x202220=_0xd681c3,_0x53175f={'content':_0x11e377};_0x2d17b0&&(_0x53175f[_0x202220(0x178)]=_0x2d17b0);const _0x53db12=this[_0x202220(0x1af)](_0x202220(0x187)+_0x27f98a+_0x202220(0x1ed),_0x202220(0x1c2),_0x53175f);return{'getId':async()=>(await _0x53db12[_0x202220(0x17e)])[_0x202220(0x207)](),'abortController':_0x53db12[_0x202220(0x1c1)]};}[_0xd681c3(0x1bc)](_0x24a854,_0x13f8aa={}){const _0x220a6b=_0xd681c3,_0x997d70=new URLSearchParams();_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1a9),_0x24a854),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1f0),!0x1!==_0x13f8aa[_0x220a6b(0x1f0)]?_0x220a6b(0x1c7):_0x220a6b(0x1ea)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1d7),_0x13f8aa[_0x220a6b(0x1d7)]?_0x13f8aa[_0x220a6b(0x1d7)][_0x220a6b(0x182)]():_0x220a6b(0x18b)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x1bd),_0x13f8aa[_0x220a6b(0x1bd)]?_0x13f8aa[_0x220a6b(0x1bd)]:_0x220a6b(0x1ff)),_0x997d70[_0x220a6b(0x203)](_0x220a6b(0x194),_0x13f8aa[_0x220a6b(0x194)]?_0x13f8aa[_0x220a6b(0x194)]:_0x220a6b(0x188));const _0x276f01=this[_0x220a6b(0x1af)](_0x220a6b(0x1e4)+_0x997d70[_0x220a6b(0x182)](),_0x220a6b(0x1eb));return{'getConversations':async()=>{const _0x21844e=_0x220a6b,_0x4cabbd=await _0x276f01[_0x21844e(0x17e)];return(await _0x4cabbd[_0x21844e(0x207)]())[_0x21844e(0x1e7)];},'abortController':_0x276f01[_0x220a6b(0x1c1)]};}[_0xd681c3(0x1b8)](_0x39255b){const _0x1e6502=_0xd681c3,_0x17e3aa=this[_0x1e6502(0x1af)](_0x1e6502(0x187)+_0x39255b,_0x1e6502(0x1d9));return{'execute':async()=>{const _0x27ab29=_0x1e6502;await _0x17e3aa[_0x27ab29(0x17e)];},'abortController':_0x17e3aa[_0x1e6502(0x1c1)]};}[_0xd681c3(0x1fa)](_0x4b0112,_0x50f6c9){const _0x45522f=_0xd681c3,_0x455502=this[_0x45522f(0x1af)](_0x45522f(0x187)+_0x4b0112,_0x45522f(0x1e6),_0x50f6c9);return{'getResult':async()=>(await _0x455502[_0x45522f(0x17e)],_0x50f6c9),'abortController':_0x455502[_0x45522f(0x1c1)]};}[_0xd681c3(0x201)](_0x344d1a){const _0xa38735=_0xd681c3,_0x10d438=this[_0xa38735(0x1af)](_0xa38735(0x187)+_0x344d1a,_0xa38735(0x1eb));return{'getConversation':async()=>(await _0x10d438[_0xa38735(0x17e)])[_0xa38735(0x207)](),'abortController':_0x10d438[_0xa38735(0x1c1)]};}[_0xd681c3(0x1a0)](_0x1e6ddc){const _0x4d8cd2=_0xd681c3,_0x42d180=this[_0x4d8cd2(0x1af)](_0x4d8cd2(0x187)+_0x1e6ddc+_0x4d8cd2(0x209),_0x4d8cd2(0x1eb));return{'getMessages':async()=>{const _0x251e91=_0x4d8cd2,_0x3599ed=await _0x42d180[_0x251e91(0x17e)];return(await _0x3599ed[_0x251e91(0x207)]())[_0x251e91(0x1e7)];},'abortController':_0x42d180[_0x4d8cd2(0x1c1)]};}[_0xd681c3(0x181)](_0x1701aa,_0x1222ee,_0x24371d){const _0x52e29c=_0xd681c3,_0x27984b=this[_0x52e29c(0x1af)](_0x52e29c(0x187)+_0x1701aa+_0x52e29c(0x1d0),_0x52e29c(0x1c2),{'url':_0x1222ee,'attributes':_0x24371d});return{'getId':async()=>(await _0x27984b[_0x52e29c(0x17e)])[_0x52e29c(0x207)](),'abortController':_0x27984b[_0x52e29c(0x1c1)]};}[_0xd681c3(0x1d3)](_0x543b6a='en'){const _0xca4124=_0xd681c3,_0x1916bd=new URLSearchParams();_0x1916bd[_0xca4124(0x203)](_0xca4124(0x1a8),_0x543b6a);const _0x47ab7a=_0xca4124(0x193)+_0x1916bd[_0xca4124(0x182)](),_0x146e44=this[_0xca4124(0x1af)](_0x47ab7a,_0xca4124(0x1eb));return{'list':async()=>await(await _0x146e44[_0xca4124(0x17e)])[_0xca4124(0x207)](),'abortController':_0x146e44[_0xca4124(0x1c1)]};}[_0xd681c3(0x18d)](_0x3528a9,_0x395c32){const _0x1a4d8c=_0xd681c3,_0x330249=this[_0x1a4d8c(0x1af)](_0x1a4d8c(0x187)+_0x3528a9+_0x1a4d8c(0x204)+_0x395c32,_0x1a4d8c(0x1d9));return{'execute':async()=>{const _0xc6c52f=_0x1a4d8c;await _0x330249[_0xc6c52f(0x17e)];},'abortController':_0x330249[_0x1a4d8c(0x1c1)]};}[_0xd681c3(0x195)](_0x54dfe3,_0x5a8ca0){const _0xf1c837=_0xd681c3,_0x9448f3=this[_0xf1c837(0x1af)](_0xf1c837(0x187)+_0x54dfe3+_0xf1c837(0x1ce)+_0x5a8ca0,_0xf1c837(0x1d9));return{'execute':async()=>{const _0x437f59=_0xf1c837;await _0x9448f3[_0x437f59(0x17e)];},'abortController':_0x9448f3[_0xf1c837(0x1c1)]};}[_0xd681c3(0x19d)](_0x2df782,_0x572be4){const _0x1adebb=_0xd681c3,_0x2b6f26=this[_0x1adebb(0x1af)](_0x1adebb(0x187)+_0x2df782+_0x1adebb(0x1b7)+_0x572be4,_0x1adebb(0x1d9));return{'execute':async()=>{const _0xdce191=_0x1adebb;await _0x2b6f26[_0xdce191(0x17e)];},'abortController':_0x2b6f26[_0x1adebb(0x1c1)]};}[_0xd681c3(0x1b5)]({reviewName:_0x3f7a90,content:_0x24300b,args:_0x1cd835}){const _0x385b42=_0xd681c3,_0x3dfae1=this[_0x385b42(0x1af)](_0x385b42(0x1e5)+_0x3f7a90+_0x385b42(0x1b1),_0x385b42(0x1c2),{'content':[{'type':_0x385b42(0x1dd),'content':_0x24300b}],'args':_0x1cd835});return{'getStream':async()=>{const _0x3c43b3=_0x385b42,_0x2a9f88=(await _0x3dfae1[_0x3c43b3(0x17e)])[_0x3c43b3(0x1c5)];return this[_0x3c43b3(0x1ca)](_0x2a9f88);},'abortController':_0x3dfae1[_0x385b42(0x1c1)]};}[_0xd681c3(0x1fc)]({content:_0x3cd056,prompt:_0x55ccb1,model:_0x2124e3}){const _0x1afb56=_0xd681c3,_0x50e423=this[_0x1afb56(0x1af)](_0x1afb56(0x17f),_0x1afb56(0x1c2),{'content':[{'type':_0x1afb56(0x1dd),'content':_0x3cd056}],'prompt':_0x55ccb1,'model':_0x2124e3});return{'getStream':async()=>{const _0x56fa21=_0x1afb56,_0x35e9e9=(await _0x50e423[_0x56fa21(0x17e)])[_0x56fa21(0x1c5)];return this[_0x56fa21(0x1ca)](_0x35e9e9);},'abortController':_0x50e423[_0x1afb56(0x1c1)]};}[_0xd681c3(0x1ee)](_0x395c05,_0x280102,_0x118266){const _0x2bc7fe=_0xd681c3,_0x3370db=this[_0x2bc7fe(0x1af)](_0x2bc7fe(0x187)+_0x395c05+_0x2bc7fe(0x1c9)+_0x280102+_0x2bc7fe(0x1d6),_0x2bc7fe(0x184),{'positiveCount':_0x118266[_0x2bc7fe(0x1e9)],'totalCount':_0x118266[_0x2bc7fe(0x20f)],'modificationId':_0x118266[_0x2bc7fe(0x20d)]});return{'execute':async()=>{const _0x285d3f=_0x2bc7fe;await _0x3370db[_0x285d3f(0x17e)];},'abortController':_0x3370db[_0x2bc7fe(0x1c1)]};}[_0xd681c3(0x1d4)](_0x49a63c,_0x3403f9,_0x43273e){const _0x37440b=_0xd681c3,_0x3561de=this[_0x37440b(0x1af)](_0x37440b(0x1ad)+_0x49a63c+_0x37440b(0x1e8)+_0x3403f9+_0x37440b(0x1d6),_0x37440b(0x184),{'positiveCount':_0x43273e[_0x37440b(0x1e9)],'totalCount':_0x43273e[_0x37440b(0x20f)]});return{'execute':async()=>{const _0x3b9d22=_0x37440b;await _0x3561de[_0x3b9d22(0x17e)];},'abortController':_0x3561de[_0x37440b(0x1c1)]};}[_0xd681c3(0x20a)](_0x589956,_0x4d1a11){const _0x56987a=_0xd681c3,_0x599f33=this[_0x56987a(0x1af)](_0x56987a(0x1c6)+_0x589956+_0x56987a(0x1d6),_0x56987a(0x184),{'positiveCount':_0x4d1a11[_0x56987a(0x1e9)],'totalCount':_0x4d1a11[_0x56987a(0x20f)]});return{'execute':async()=>{const _0x160278=_0x56987a;await _0x599f33[_0x160278(0x17e)];},'abortController':_0x599f33[_0x56987a(0x1c1)]};}[_0xd681c3(0x205)](_0x3e0d46,_0x1e6dfd,_0x24f9a1,_0x11ab6f){const _0xff3d5=_0xd681c3,_0x3ec49d=this[_0xff3d5(0x1af)](_0xff3d5(0x1e5)+_0x3e0d46+_0xff3d5(0x1e8)+_0x1e6dfd+_0xff3d5(0x1d6),_0xff3d5(0x184),{'positiveCount':_0x24f9a1[_0xff3d5(0x1e9)],'totalCount':_0x24f9a1[_0xff3d5(0x20f)],'dataId':_0x11ab6f});return{'execute':async()=>{const _0x275afb=_0xff3d5;await _0x3ec49d[_0x275afb(0x17e)];},'abortController':_0x3ec49d[_0xff3d5(0x1c1)]};}[_0xd681c3(0x199)](_0x3dab0c,_0x112ffb,_0x1f04bc){const _0x451114=_0xd681c3,_0x112c06=this[_0x451114(0x1af)](_0x451114(0x19a)+_0x3dab0c+_0x451114(0x1d6),_0x451114(0x184),{'positiveCount':_0x112ffb[_0x451114(0x1e9)],'totalCount':_0x112ffb[_0x451114(0x20f)],'dataId':_0x1f04bc});return{'execute':async()=>{const _0xa6a409=_0x451114;await _0x112c06[_0xa6a409(0x17e)];},'abortController':_0x112c06[_0x451114(0x1c1)]};}[_0xd681c3(0x1af)](_0x43fa3b,_0x1e882b,_0x5438fb){const _0x4cc704=_0xd681c3,_0x55edd5=new AbortController(),_0x19fb1f=_0x5438fb instanceof FormData,_0x14141c={'Authorization':_0x4cc704(0x1c8)+this[_0x4cc704(0x1f9)]?.[_0x4cc704(0x1f1)]};_0x5438fb&&!_0x19fb1f&&(_0x14141c[_0x4cc704(0x1b3)]=_0x4cc704(0x1bf));const _0x17eac2={'method':_0x1e882b,'headers':_0x14141c,'signal':_0x55edd5[_0x4cc704(0x1ab)]};return _0x5438fb&&(_0x17eac2[_0x4cc704(0x1c5)]=_0x19fb1f?_0x5438fb:JSON[_0x4cc704(0x1a6)](_0x5438fb)),{'request':fetch(''+this[_0x4cc704(0x1e1)]+_0x43fa3b,_0x17eac2)[_0x4cc704(0x1f6)](_0x2adbbe=>{const _0x22d920=_0x4cc704;this[_0x22d920(0x1db)](_0x2adbbe);})[_0x4cc704(0x1fb)](_0x2e0806=>_0x2e0806['ok']?_0x2e0806:_0x2e0806[_0x4cc704(0x207)]()[_0x4cc704(0x1fb)](_0x1bd44a=>{const _0x54336f=_0x4cc704;throw{'url':this[_0x54336f(0x1e1)],'path':_0x43fa3b,'method':_0x1e882b,'body':_0x5438fb,'status':(_0x2e0806||{})[_0x54336f(0x1b0)],'statusText':(_0x2e0806||{})[_0x54336f(0x1ba)],'code':_0x1bd44a[_0x54336f(0x202)],'message':_0x1bd44a[_0x54336f(0x1ec)],'traceId':_0x1bd44a[_0x54336f(0x1da)]};})),'abortController':_0x55edd5};}async*[_0xd681c3(0x1ca)](_0x18cd70){const _0x116997=_0xd681c3,_0x4eced1=[],_0x47fc5b=_0x18cd70[_0x116997(0x1b4)](),_0x19dab4=_0x4de6fe({'onError':_0x1d4a29=>{const _0x19816e=_0x116997;this[_0x19816e(0x1db)](_0x1d4a29);},'onEvent':_0x32113e=>{const _0x326d80=_0x116997;_0x32113e[_0x326d80(0x200)]=JSON[_0x326d80(0x177)](_0x32113e[_0x326d80(0x200)]),_0x4eced1[_0x326d80(0x20b)](_0x32113e);}});try{let _0x301408=!0x1;for(;!_0x301408;){const {done:_0x462233,value:_0x2de7e8}=await _0x47fc5b[_0x116997(0x191)]();_0x462233&&(_0x301408=!0x0),_0x19dab4[_0x116997(0x1c0)](this[_0x116997(0x1b2)][_0x116997(0x1cf)](_0x2de7e8,{'stream':!0x0})),yield*_0x4eced1,_0x4eced1[_0x116997(0x20e)]=0x0;}}catch(_0x50e3e4){this[_0x116997(0x1db)](_0x50e3e4);}finally{_0x47fc5b[_0x116997(0x1e0)](),_0x19dab4[_0x116997(0x1cd)]();}}[_0xd681c3(0x1db)](_0x321fc4){const _0x4af087=_0xd681c3;if(_0x321fc4 instanceof _0x3cbcb0)throw _0x321fc4;if(_0x321fc4 instanceof Error&&_0x4af087(0x1c3)===_0x321fc4[_0x4af087(0x1ef)])throw new _0x3cbcb0(_0x4af087(0x1f4),this,{'originalError':_0x321fc4});throw new _0x3cbcb0(_0x4af087(0x1f8),this,{'originalError':_0x321fc4});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1732(){const _0x49792e=['markerToElement','1720216SHxqKc','domConverter','name','ck-fake-ai-selection','toData','setAttribute','2090200vQMbVJ','editingDowncast','emptyElement','removeAllRanges','hideFakeVisualSelection','getDocumentData','2941070dwkfSp','schema','isPremiumPlugin','ai-selection:','ai-selection','change',':start>','ready','join',':end></','editors','removeMarker','for','containerElement',':start></','length','2PmhXGp','getChildren','document','get','data','_outputDataProcessor','listenTo','start','view','from','afterInit','dataDowncast','addMarker','substring','config','markerToHighlight','modelToDataWithIds','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','createUIElement','context','_nextDataId','_displayedFakeSelectionId','model','conversion','editing','element','showFakeVisualSelection','AIEditing','isBefore','getRoot','35njtnDM','plugins','toView','processor',':end>','sessionId','random','getLastMatchingPosition','getSelection','3sbPYMx','data-id','RealTimeCollaborationClient','_setDataIdsOnChildren','_displayedFakeSelectionLocked','784588CgMlRU','$textProxy','isOpening','_getDocumentDataStringFromView','_getMarkersInDocumentOrder','add','fromCharCode','211014ArDrHj','viewToDom','getRanges','_sessionId','9agTgsl','isAfter','push','isOfficialPlugin','indexOf','_setOutputDataProcessor','createRange','getMarkersGroup','getStart','isAtEnd','define','isContent','trim','1815726njElYq','82333MuNXTL','getHtml','markers','selection','markerName','end','getItems','pluginName','_integrateEditor','floor','htmlWriter','sort','has','ck-ai-assistant-ui_theme','convertAiChatSelectionMarker','ai.models.showModelSelector','version','getSelectionText','locale'];_0x1732=function(){return _0x49792e;};return _0x1732();}const _0x53cdb6=_0x3f81;(function(_0x506e2f,_0x7228b3){const _0xf55da4=_0x3f81,_0x3e1f9e=_0x506e2f();while(!![]){try{const _0x1df96c=-parseInt(_0xf55da4(0x1ca))/0x1*(-parseInt(_0xf55da4(0x1fa))/0x2)+parseInt(_0xf55da4(0x1ac))/0x3*(-parseInt(_0xf55da4(0x1b1))/0x4)+parseInt(_0xf55da4(0x1a3))/0x5*(parseInt(_0xf55da4(0x1b8))/0x6)+parseInt(_0xf55da4(0x1e4))/0x7+-parseInt(_0xf55da4(0x1de))/0x8*(-parseInt(_0xf55da4(0x1bc))/0x9)+-parseInt(_0xf55da4(0x1ea))/0xa+-parseInt(_0xf55da4(0x1c9))/0xb;if(_0x1df96c===_0x7228b3)break;else _0x3e1f9e['push'](_0x3e1f9e['shift']());}catch(_0x464552){_0x3e1f9e['push'](_0x3e1f9e['shift']());}}}(_0x1732,0x2d9c7));import{ViewDowncastWriter as _0x5488a2}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x21be80,Editor as _0x14cf1c}from'ckeditor5/src/core.js';import{uid as _0x18e2e4}from'ckeditor5/src/utils.js';import{getTranslation as _0x262bcb}from'./utils/common-translations.js';import{getEditorFromContext as _0x492105}from'./utils/geteditorfromcontext.js';function _0x3f81(_0x43deaa,_0x1b69b5){const _0x173234=_0x1732();return _0x3f81=function(_0x3f8149,_0x3ee1b1){_0x3f8149=_0x3f8149-0x196;let _0x570715=_0x173234[_0x3f8149];return _0x570715;},_0x3f81(_0x43deaa,_0x1b69b5);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x53cdb6(0x1ee);export class AIEditing extends _0x21be80{constructor(_0x24b0e2){const _0x585953=_0x53cdb6;super(_0x24b0e2),this[_0x585953(0x198)][_0x585953(0x208)][_0x585953(0x1c6)](_0x585953(0x1d9),!0x0);}[_0x53cdb6(0x1ff)];[_0x53cdb6(0x19a)]=null;[_0x53cdb6(0x1b0)]=!0x1;[_0x53cdb6(0x1bb)];static get[_0x53cdb6(0x1d1)](){const _0xfb9dd0=_0x53cdb6;return _0xfb9dd0(0x1a0);}static get[_0x53cdb6(0x1bf)](){return!0x0;}static get[_0x53cdb6(0x1ec)](){return!0x0;}get[_0x53cdb6(0x1a8)](){const _0xc11d93=_0x53cdb6;if(!this[_0xc11d93(0x1bb)]){const _0x5bf3ae=_0x492105(this[_0xc11d93(0x198)]),_0x470115=_0x5bf3ae[_0xc11d93(0x1a4)][_0xc11d93(0x1d6)](_0xc11d93(0x1ae))&&_0x5bf3ae[_0xc11d93(0x1a4)][_0xc11d93(0x1fd)](_0xc11d93(0x1ae))[_0xc11d93(0x1a8)];this[_0xc11d93(0x1bb)]=_0x470115||_0x18e2e4();}return this[_0xc11d93(0x1bb)];}async[_0x53cdb6(0x1e9)](){const _0x4a8fa8=_0x53cdb6,_0x18725f=_0x492105(this[_0x4a8fa8(0x198)]),_0x37776d=_0x18725f[_0x4a8fa8(0x19b)],_0x24e7c2=_0x18725f[_0x4a8fa8(0x1fe)][_0x4a8fa8(0x1a5)](_0x37776d[_0x4a8fa8(0x1fc)][_0x4a8fa8(0x1a2)](),{'convertAiChatSelectionMarker':!0x0}),_0x128d8d=new _0x5488a2(_0x18725f[_0x4a8fa8(0x19d)][_0x4a8fa8(0x202)][_0x4a8fa8(0x1fc)]);this[_0x4a8fa8(0x1af)](_0x24e7c2,_0x128d8d);let _0x575b98=await this[_0x4a8fa8(0x1b4)](_0x24e7c2);const _0xf965db=this[_0x4a8fa8(0x1b5)](),_0x45304a=[];for(const _0x24880 of _0xf965db){const _0xe6812d='<'+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f8)+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f0),_0x489d9c=_0x575b98[_0x4a8fa8(0x1c0)](_0xe6812d);_0x575b98=_0x575b98[_0x4a8fa8(0x207)](0x0,_0x489d9c)+_0x575b98[_0x4a8fa8(0x207)](_0x489d9c+_0xe6812d[_0x4a8fa8(0x1f9)]);const _0x234474='<'+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1f3)+_0x24880[_0x4a8fa8(0x1e0)]+_0x4a8fa8(0x1a7),_0x30bde6=_0x575b98[_0x4a8fa8(0x1c0)](_0x234474);_0x575b98=_0x575b98[_0x4a8fa8(0x207)](0x0,_0x30bde6)+_0x575b98[_0x4a8fa8(0x207)](_0x30bde6+_0x234474[_0x4a8fa8(0x1f9)]),_0x45304a[_0x4a8fa8(0x1be)]({'markerName':_0x24880[_0x4a8fa8(0x1e0)],'start':_0x489d9c,'end':_0x30bde6,'htmlFragment':_0x575b98[_0x4a8fa8(0x207)](_0x489d9c,_0x30bde6)});}return{'content':_0x575b98,'version':_0x18725f[_0x4a8fa8(0x19b)][_0x4a8fa8(0x1fc)][_0x4a8fa8(0x1da)],'sessionId':this[_0x4a8fa8(0x1a8)],'selections':_0x45304a};}async[_0x53cdb6(0x204)](){const _0x409692=_0x53cdb6;this[_0x409692(0x198)]instanceof _0x14cf1c?this[_0x409692(0x1d2)](this[_0x409692(0x198)]):this[_0x409692(0x200)](this[_0x409692(0x198)][_0x409692(0x1f4)],_0x409692(0x1b6),(_0xab1cb2,_0x42b415)=>{const _0x599eb8=_0x409692;_0x42b415['on'](_0x599eb8(0x1f1),()=>{const _0x252fc9=_0x599eb8;this[_0x252fc9(0x1d2)](_0x42b415);});});}[_0x53cdb6(0x1c1)](_0x3edc16){const _0x225fd4=_0x53cdb6;this[_0x225fd4(0x1ff)]=_0x3edc16;}async[_0x53cdb6(0x1b4)](_0x23d161){const _0x2b383b=_0x53cdb6;let _0x170d39;const _0x3c6935=_0x492105(this[_0x2b383b(0x198)]);if(this[_0x2b383b(0x1ff)]){const _0x4e4fe2=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1df)][_0x2b383b(0x1b9)](_0x23d161),_0xfdbc6d=await this[_0x2b383b(0x1ff)](_0x4e4fe2);_0x170d39=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1d4)][_0x2b383b(0x1cb)](_0xfdbc6d);}else _0x170d39=_0x3c6935[_0x2b383b(0x1fe)][_0x2b383b(0x1a6)][_0x2b383b(0x1e2)](_0x23d161);return _0x170d39;}[_0x53cdb6(0x1d2)](_0x32739e){const _0x30c5a3=_0x53cdb6;_0x32739e[_0x30c5a3(0x19c)][_0x30c5a3(0x1f6)](_0x30c5a3(0x1e5))[_0x30c5a3(0x209)]({'model':_0x30c5a3(0x1ee),'view':{'classes':[_0x30c5a3(0x1e1),_0x30c5a3(0x1d7)],'priority':0xc}}),_0x32739e[_0x30c5a3(0x19c)][_0x30c5a3(0x1f6)](_0x30c5a3(0x205))[_0x30c5a3(0x1dd)]({'model':_0x30c5a3(0x1ee),'view':(_0xc4799b,{writer:_0x2232d6,options:_0x1cea82})=>_0x1cea82[_0x30c5a3(0x1d8)]?_0x2232d6[_0x30c5a3(0x197)](_0xc4799b[_0x30c5a3(0x1ce)]+':'+(_0xc4799b[_0x30c5a3(0x1b3)]?_0x30c5a3(0x201):_0x30c5a3(0x1cf))):null});}[_0x53cdb6(0x19f)](_0x38294d,_0x374f41,_0x8d9426=!0x1,_0x51984a=!0x1){const _0x3ce67b=_0x53cdb6;if(this[_0x3ce67b(0x1b0)]&&!_0x51984a)return!0x1;const _0x3551d3=_0x492105(this[_0x3ce67b(0x198)])[_0x3ce67b(0x19b)];return _0x3551d3[_0x3ce67b(0x1ef)](_0xfeceaf=>{const _0x2f66fd=_0x3ce67b;this[_0x2f66fd(0x19a)]&&this[_0x2f66fd(0x1e8)](this[_0x2f66fd(0x19a)]),this[_0x2f66fd(0x19a)]=_0x374f41,this[_0x2f66fd(0x1b0)]=_0x8d9426;let _0x4e2112=0x0;for(let _0x2a5de1 of _0x38294d){const _0x16aab9=_0x2f66fd(0x1ed)+_0x4e2112;if(_0x2a5de1[_0x2f66fd(0x201)][_0x2f66fd(0x1c5)]){const _0x11f917=_0x2a5de1[_0x2f66fd(0x201)][_0x2f66fd(0x1aa)](({item:_0xe46b2d})=>!_0x3551d3[_0x2f66fd(0x1eb)][_0x2f66fd(0x1c7)](_0xe46b2d),{'boundaries':_0x2a5de1});_0x2a5de1=_0xfeceaf[_0x2f66fd(0x1c2)](_0x11f917,_0x2a5de1[_0x2f66fd(0x1cf)]);}_0xfeceaf[_0x2f66fd(0x206)](_0x16aab9,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x2a5de1}),_0x4e2112++;}}),window[_0x3ce67b(0x1ab)]()?.[_0x3ce67b(0x1e7)](),!0x0;}[_0x53cdb6(0x1e8)](_0x4b552b){const _0x260f98=_0x53cdb6;if(this[_0x260f98(0x19a)]!=_0x4b552b)return!0x1;this[_0x260f98(0x19a)]=null,this[_0x260f98(0x1b0)]=!0x1;const _0x15e3be=_0x492105(this[_0x260f98(0x198)]),_0x34dda7=_0x15e3be[_0x260f98(0x19b)][_0x260f98(0x1cc)][_0x260f98(0x1c3)](_0x260f98(0x1ee));return _0x15e3be[_0x260f98(0x19b)][_0x260f98(0x1ef)](_0x3f3480=>{const _0x3fab0c=_0x260f98;for(const _0x15207a of _0x34dda7)_0x3f3480[_0x3fab0c(0x1f5)](_0x15207a);}),!0x0;}async[_0x53cdb6(0x20a)](_0x2da7f2){const _0x5b0d9d=_0x53cdb6,_0x268a7b=_0x492105(this[_0x5b0d9d(0x198)]),_0x135546=_0x268a7b[_0x5b0d9d(0x1fe)][_0x5b0d9d(0x1a5)](_0x2da7f2),_0x515f03=new _0x5488a2(_0x268a7b[_0x5b0d9d(0x19d)][_0x5b0d9d(0x202)][_0x5b0d9d(0x1fc)]);return this[_0x5b0d9d(0x1af)](_0x135546,_0x515f03),this[_0x5b0d9d(0x1b4)](_0x135546);}[_0x53cdb6(0x1af)](_0x1bfbbd,_0x1406c8){const _0x13df5f=_0x53cdb6;let _0xf45669=!0x1;const _0x4cb53f=new Set();for(const _0x1133ec of _0x1bfbbd[_0x13df5f(0x1fb)]()){const _0x5b9a9f=_0x1133ec['is'](_0x13df5f(0x1e6))||_0x1133ec['is'](_0x13df5f(0x1f7));if(!_0x1133ec['is'](_0x13df5f(0x19e)))continue;(this[_0x13df5f(0x1af)](_0x1133ec,_0x1406c8)||_0x5b9a9f)&&(_0x1406c8[_0x13df5f(0x1e3)](_0x13df5f(0x1ad),this[_0x13df5f(0x199)](_0x4cb53f),_0x1133ec),_0xf45669=!0x0);}return _0xf45669;}[_0x53cdb6(0x199)](_0x381b73){const _0x40f3f6=_0x53cdb6;let _0x4531df;do{_0x4531df='';for(let _0x16173a=0x0;_0x16173a<0x4;_0x16173a++)_0x4531df+=String[_0x40f3f6(0x1b7)](0x61+Math[_0x40f3f6(0x1d3)](0x1a*Math[_0x40f3f6(0x1a9)]()));}while(_0x381b73[_0x40f3f6(0x1d6)](_0x4531df));return _0x381b73[_0x40f3f6(0x1b6)](_0x4531df),_0x4531df;}[_0x53cdb6(0x1db)](){const _0x536874=_0x53cdb6,{model:_0x154733}=_0x492105(this[_0x536874(0x198)]),_0x29b758=_0x154733[_0x536874(0x1fc)][_0x536874(0x1cd)],_0x392add=[];for(const _0x2fb28b of _0x29b758[_0x536874(0x1ba)]())for(const _0x3e2b49 of _0x2fb28b[_0x536874(0x1d0)]())_0x3e2b49['is'](_0x536874(0x1b2))?_0x392add[_0x536874(0x1be)](_0x3e2b49[_0x536874(0x1fe)]):_0x3e2b49['is'](_0x536874(0x19e))&&_0x392add[_0x536874(0x1f9)]>0x0&&'\x20'!==_0x392add[_0x392add[_0x536874(0x1f9)]-0x1]&&_0x392add[_0x536874(0x1be)]('\x20');return _0x392add[_0x536874(0x1f9)]?'\x22'+_0x392add[_0x536874(0x1f2)]('')[_0x536874(0x1c8)]()+'\x22':_0x262bcb(this[_0x536874(0x198)][_0x536874(0x1dc)],_0x536874(0x196));}[_0x53cdb6(0x1b5)](){const _0x1dc3d8=_0x53cdb6,_0x1a4306=_0x492105(this[_0x1dc3d8(0x198)])[_0x1dc3d8(0x19b)];return Array[_0x1dc3d8(0x203)](_0x1a4306[_0x1dc3d8(0x1cc)][_0x1dc3d8(0x1c3)](_0x1dc3d8(0x1ee)))[_0x1dc3d8(0x1d5)]((_0x55f5cc,_0x2964b0)=>_0x55f5cc[_0x1dc3d8(0x1c4)]()[_0x1dc3d8(0x1a1)](_0x2964b0[_0x1dc3d8(0x1c4)]())?-0x1:_0x55f5cc[_0x1dc3d8(0x1c4)]()[_0x1dc3d8(0x1bd)](_0x2964b0[_0x1dc3d8(0x1c4)]())?0x1:0x0);}}
23
+ const _0x139837=_0x1c08;(function(_0x116235,_0x38b643){const _0xf4d3aa=_0x1c08,_0x97aac5=_0x116235();while(!![]){try{const _0x2d5672=-parseInt(_0xf4d3aa(0x1aa))/0x1*(parseInt(_0xf4d3aa(0x19d))/0x2)+parseInt(_0xf4d3aa(0x1a2))/0x3+parseInt(_0xf4d3aa(0x191))/0x4*(-parseInt(_0xf4d3aa(0x1bb))/0x5)+parseInt(_0xf4d3aa(0x163))/0x6*(-parseInt(_0xf4d3aa(0x172))/0x7)+parseInt(_0xf4d3aa(0x174))/0x8+-parseInt(_0xf4d3aa(0x193))/0x9+parseInt(_0xf4d3aa(0x14d))/0xa*(parseInt(_0xf4d3aa(0x1b2))/0xb);if(_0x2d5672===_0x38b643)break;else _0x97aac5['push'](_0x97aac5['shift']());}catch(_0xd34755){_0x97aac5['push'](_0x97aac5['shift']());}}}(_0x546d,0x7967a));import{ViewDowncastWriter as _0x361f4e}from'ckeditor5/src/engine.js';import{ContextPlugin as _0x4fa588,Editor as _0x47ee1a}from'ckeditor5/src/core.js';import{uid as _0x363d4e}from'ckeditor5/src/utils.js';import{getTranslation as _0x235986}from'./utils/common-translations.js';import{getEditorFromContext as _0x994390}from'./utils/geteditorfromcontext.js';function _0x1c08(_0x34ebb6,_0x1c76c8){const _0x546d19=_0x546d();return _0x1c08=function(_0x1c080d,_0x18f9bc){_0x1c080d=_0x1c080d-0x148;let _0x55383b=_0x546d19[_0x1c080d];return _0x55383b;},_0x1c08(_0x34ebb6,_0x1c76c8);}export const AI_VISUAL_SELECTION_MARKER_NAME=_0x139837(0x15c);function _0x546d(){const _0x3b2991=[':start>','emptyElement','_displayedFakeSelectionLocked','define','getDocumentData','createUIElement','getSelectionText','htmlWriter','createRange','removeAllRanges',':end></','random','ai-selection','_setOutputDataProcessor','locale','_setDataIdsOnChildren','getMarkersGroup','AI_CHAT_CONTEXT_DOCUMENT_SELECTION_LABEL','conversion','3344658eUPzfr','markerToHighlight','isPremiumPlugin',':end>','ai-selection:','getItems','hideFakeVisualSelection','plugins','markerToElement','removeMarker','toView','addMarker','indexOf','floor','pluginName','7vvYCYS','substring','492976hCdFQT','element','dataDowncast','start','ai.models.showModelSelector','for','getChildren','version','trim','ck-ai-assistant-ui_theme','has','selection','editingDowncast','name','data-id','convertAiChatSelectionMarker','getSelection',':start></','getRanges','editors','_getMarkersInDocumentOrder','model','get','_integrateEditor','editing','sessionId','_nextDataId','markerName','fromCharCode','302572WTZEfl','isAfter','3063987sbVkcv','context','isBefore','view','markers','getRoot','AIEditing','afterInit','join','processor','2WsGTNu','getStart','getHtml','length','isAtEnd','2508423QNJwuT','document','config','end','getLastMatchingPosition','isOpening','containerElement','isContent','949731zvXwYz','ready','change','_displayedFakeSelectionId','setAttribute','_getDocumentDataStringFromView','_outputDataProcessor','toData','11vUGNnC','$textProxy','isOfficialPlugin','sort','viewToDom','push','from','ck-fake-ai-selection','schema','25wWNPrP','_sessionId','modelToDataWithIds','data','RealTimeCollaborationClient','listenTo','showFakeVisualSelection','18253430ihSbsq','add','domConverter'];_0x546d=function(){return _0x3b2991;};return _0x546d();}export class AIEditing extends _0x4fa588{constructor(_0x54bd22){const _0x129aa7=_0x139837;super(_0x54bd22),this[_0x129aa7(0x194)][_0x129aa7(0x1a4)][_0x129aa7(0x153)](_0x129aa7(0x178),!0x0);}[_0x139837(0x1b0)];[_0x139837(0x1ad)]=null;[_0x139837(0x152)]=!0x1;[_0x139837(0x1bc)];static get[_0x139837(0x171)](){const _0x180b53=_0x139837;return _0x180b53(0x199);}static get[_0x139837(0x1b4)](){return!0x0;}static get[_0x139837(0x165)](){return!0x0;}get[_0x139837(0x18d)](){const _0x317191=_0x139837;if(!this[_0x317191(0x1bc)]){const _0x401a99=_0x994390(this[_0x317191(0x194)]),_0x102d36=_0x401a99[_0x317191(0x16a)][_0x317191(0x17e)](_0x317191(0x14a))&&_0x401a99[_0x317191(0x16a)][_0x317191(0x18a)](_0x317191(0x14a))[_0x317191(0x18d)];this[_0x317191(0x1bc)]=_0x102d36||_0x363d4e();}return this[_0x317191(0x1bc)];}async[_0x139837(0x154)](){const _0x31e862=_0x139837,_0x10cb2e=_0x994390(this[_0x31e862(0x194)]),_0x3c9c1a=_0x10cb2e[_0x31e862(0x189)],_0x348525=_0x10cb2e[_0x31e862(0x149)][_0x31e862(0x16d)](_0x3c9c1a[_0x31e862(0x1a3)][_0x31e862(0x198)](),{'convertAiChatSelectionMarker':!0x0}),_0x89fcd3=new _0x361f4e(_0x10cb2e[_0x31e862(0x18c)][_0x31e862(0x196)][_0x31e862(0x1a3)]);this[_0x31e862(0x15f)](_0x348525,_0x89fcd3);let _0x30971f=await this[_0x31e862(0x1af)](_0x348525);const _0x156046=this[_0x31e862(0x188)](),_0x11e0ec=[];for(const _0x44c5ff of _0x156046){const _0x3c50d7='<'+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x185)+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x150),_0x1476ef=_0x30971f[_0x31e862(0x16f)](_0x3c50d7);_0x30971f=_0x30971f[_0x31e862(0x173)](0x0,_0x1476ef)+_0x30971f[_0x31e862(0x173)](_0x1476ef+_0x3c50d7[_0x31e862(0x1a0)]);const _0x429eef='<'+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x15a)+_0x44c5ff[_0x31e862(0x181)]+_0x31e862(0x166),_0x115dfe=_0x30971f[_0x31e862(0x16f)](_0x429eef);_0x30971f=_0x30971f[_0x31e862(0x173)](0x0,_0x115dfe)+_0x30971f[_0x31e862(0x173)](_0x115dfe+_0x429eef[_0x31e862(0x1a0)]),_0x11e0ec[_0x31e862(0x1b7)]({'markerName':_0x44c5ff[_0x31e862(0x181)],'start':_0x1476ef,'end':_0x115dfe,'htmlFragment':_0x30971f[_0x31e862(0x173)](_0x1476ef,_0x115dfe)});}return{'content':_0x30971f,'version':_0x10cb2e[_0x31e862(0x189)][_0x31e862(0x1a3)][_0x31e862(0x17b)],'sessionId':this[_0x31e862(0x18d)],'selections':_0x11e0ec};}async[_0x139837(0x19a)](){const _0x1f07a7=_0x139837;this[_0x1f07a7(0x194)]instanceof _0x47ee1a?this[_0x1f07a7(0x18b)](this[_0x1f07a7(0x194)]):this[_0x1f07a7(0x14b)](this[_0x1f07a7(0x194)][_0x1f07a7(0x187)],_0x1f07a7(0x14e),(_0x18be0f,_0x577237)=>{const _0x3f5d74=_0x1f07a7;_0x577237['on'](_0x3f5d74(0x1ab),()=>{const _0x1053ae=_0x3f5d74;this[_0x1053ae(0x18b)](_0x577237);});});}[_0x139837(0x15d)](_0x3c0041){const _0x4eee29=_0x139837;this[_0x4eee29(0x1b0)]=_0x3c0041;}async[_0x139837(0x1af)](_0x2307a9){const _0x966ae6=_0x139837;let _0x3e89a0;const _0x49dc10=_0x994390(this[_0x966ae6(0x194)]);if(this[_0x966ae6(0x1b0)]){const _0x36cad0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x14f)][_0x966ae6(0x1b6)](_0x2307a9),_0x4cfe50=await this[_0x966ae6(0x1b0)](_0x36cad0);_0x3e89a0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x157)][_0x966ae6(0x19f)](_0x4cfe50);}else _0x3e89a0=_0x49dc10[_0x966ae6(0x149)][_0x966ae6(0x19c)][_0x966ae6(0x1b1)](_0x2307a9);return _0x3e89a0;}[_0x139837(0x18b)](_0x3d8beb){const _0x2308c8=_0x139837;_0x3d8beb[_0x2308c8(0x162)][_0x2308c8(0x179)](_0x2308c8(0x180))[_0x2308c8(0x164)]({'model':_0x2308c8(0x15c),'view':{'classes':[_0x2308c8(0x1b9),_0x2308c8(0x17d)],'priority':0xc}}),_0x3d8beb[_0x2308c8(0x162)][_0x2308c8(0x179)](_0x2308c8(0x176))[_0x2308c8(0x16b)]({'model':_0x2308c8(0x15c),'view':(_0x46edd2,{writer:_0x403e2d,options:_0x1ac786})=>_0x1ac786[_0x2308c8(0x183)]?_0x403e2d[_0x2308c8(0x155)](_0x46edd2[_0x2308c8(0x18f)]+':'+(_0x46edd2[_0x2308c8(0x1a7)]?_0x2308c8(0x177):_0x2308c8(0x1a5))):null});}[_0x139837(0x14c)](_0xbee05c,_0x3264df,_0x2a6175=!0x1,_0x1fa893=!0x1){const _0x34e0b7=_0x139837;if(this[_0x34e0b7(0x152)]&&!_0x1fa893)return!0x1;const _0x55d243=_0x994390(this[_0x34e0b7(0x194)])[_0x34e0b7(0x189)];return _0x55d243[_0x34e0b7(0x1ac)](_0x5ec5eb=>{const _0x35823c=_0x34e0b7;this[_0x35823c(0x1ad)]&&this[_0x35823c(0x169)](this[_0x35823c(0x1ad)]),this[_0x35823c(0x1ad)]=_0x3264df,this[_0x35823c(0x152)]=_0x2a6175;let _0x2de15f=0x0;for(let _0x6e74e5 of _0xbee05c){const _0xf2efd4=_0x35823c(0x167)+_0x2de15f;if(_0x6e74e5[_0x35823c(0x177)][_0x35823c(0x1a1)]){const _0x5c0e57=_0x6e74e5[_0x35823c(0x177)][_0x35823c(0x1a6)](({item:_0x314071})=>!_0x55d243[_0x35823c(0x1ba)][_0x35823c(0x1a9)](_0x314071),{'boundaries':_0x6e74e5});_0x6e74e5=_0x5ec5eb[_0x35823c(0x158)](_0x5c0e57,_0x6e74e5[_0x35823c(0x1a5)]);}_0x5ec5eb[_0x35823c(0x16e)](_0xf2efd4,{'usingOperation':!0x1,'affectsData':!0x1,'range':_0x6e74e5}),_0x2de15f++;}}),window[_0x34e0b7(0x184)]()?.[_0x34e0b7(0x159)](),!0x0;}[_0x139837(0x169)](_0x4093c8){const _0x4ffd05=_0x139837;if(this[_0x4ffd05(0x1ad)]!=_0x4093c8)return!0x1;this[_0x4ffd05(0x1ad)]=null,this[_0x4ffd05(0x152)]=!0x1;const _0x55350e=_0x994390(this[_0x4ffd05(0x194)]),_0x1e693b=_0x55350e[_0x4ffd05(0x189)][_0x4ffd05(0x197)][_0x4ffd05(0x160)](_0x4ffd05(0x15c));return _0x55350e[_0x4ffd05(0x189)][_0x4ffd05(0x1ac)](_0x98c6c6=>{const _0xc25753=_0x4ffd05;for(const _0x36012c of _0x1e693b)_0x98c6c6[_0xc25753(0x16c)](_0x36012c);}),!0x0;}async[_0x139837(0x148)](_0x3cee41){const _0x14403e=_0x139837,_0x2db814=_0x994390(this[_0x14403e(0x194)]),_0x257684=_0x2db814[_0x14403e(0x149)][_0x14403e(0x16d)](_0x3cee41),_0x1776ca=new _0x361f4e(_0x2db814[_0x14403e(0x18c)][_0x14403e(0x196)][_0x14403e(0x1a3)]);return this[_0x14403e(0x15f)](_0x257684,_0x1776ca),this[_0x14403e(0x1af)](_0x257684);}[_0x139837(0x15f)](_0x6aba61,_0x5e0e7c){const _0xe332cf=_0x139837;let _0x1aae74=!0x1;const _0x5e6abd=new Set();for(const _0x24c9f9 of _0x6aba61[_0xe332cf(0x17a)]()){const _0x1b166b=_0x24c9f9['is'](_0xe332cf(0x151))||_0x24c9f9['is'](_0xe332cf(0x1a8));if(!_0x24c9f9['is'](_0xe332cf(0x175)))continue;(this[_0xe332cf(0x15f)](_0x24c9f9,_0x5e0e7c)||_0x1b166b)&&(_0x5e0e7c[_0xe332cf(0x1ae)](_0xe332cf(0x182),this[_0xe332cf(0x18e)](_0x5e6abd),_0x24c9f9),_0x1aae74=!0x0);}return _0x1aae74;}[_0x139837(0x18e)](_0xdcbc5f){const _0x54ceaf=_0x139837;let _0x59a799;do{_0x59a799='';for(let _0x46e3d8=0x0;_0x46e3d8<0x4;_0x46e3d8++)_0x59a799+=String[_0x54ceaf(0x190)](0x61+Math[_0x54ceaf(0x170)](0x1a*Math[_0x54ceaf(0x15b)]()));}while(_0xdcbc5f[_0x54ceaf(0x17e)](_0x59a799));return _0xdcbc5f[_0x54ceaf(0x14e)](_0x59a799),_0x59a799;}[_0x139837(0x156)](){const _0x1963e5=_0x139837,{model:_0x566eb0}=_0x994390(this[_0x1963e5(0x194)]),_0xe3fb87=_0x566eb0[_0x1963e5(0x1a3)][_0x1963e5(0x17f)],_0x44f2fc=[];for(const _0x4e67cd of _0xe3fb87[_0x1963e5(0x186)]())for(const _0x4f393b of _0x4e67cd[_0x1963e5(0x168)]())_0x4f393b['is'](_0x1963e5(0x1b3))?_0x44f2fc[_0x1963e5(0x1b7)](_0x4f393b[_0x1963e5(0x149)]):_0x4f393b['is'](_0x1963e5(0x175))&&_0x44f2fc[_0x1963e5(0x1a0)]>0x0&&'\x20'!==_0x44f2fc[_0x44f2fc[_0x1963e5(0x1a0)]-0x1]&&_0x44f2fc[_0x1963e5(0x1b7)]('\x20');return _0x44f2fc[_0x1963e5(0x1a0)]?'\x22'+_0x44f2fc[_0x1963e5(0x19b)]('')[_0x1963e5(0x17c)]()+'\x22':_0x235986(this[_0x1963e5(0x194)][_0x1963e5(0x15e)],_0x1963e5(0x161));}[_0x139837(0x188)](){const _0x4d95dc=_0x139837,_0x19b372=_0x994390(this[_0x4d95dc(0x194)])[_0x4d95dc(0x189)];return Array[_0x4d95dc(0x1b8)](_0x19b372[_0x4d95dc(0x197)][_0x4d95dc(0x160)](_0x4d95dc(0x15c)))[_0x4d95dc(0x1b5)]((_0x23da8c,_0x41b1f6)=>_0x23da8c[_0x4d95dc(0x19e)]()[_0x4d95dc(0x195)](_0x41b1f6[_0x4d95dc(0x19e)]())?-0x1:_0x23da8c[_0x4d95dc(0x19e)]()[_0x4d95dc(0x192)](_0x41b1f6[_0x4d95dc(0x19e)]())?0x1:0x0);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4bdda1=_0x5167;function _0x2485(){const _0x4067ef=['isWebSearchEnabled','497042rczxML','40sRdsvJ','186809zozZYc','8998692ySKAae','getCapabilitiesRequestData','toggleReasoning','11oiFCYZ','webSearch','874998emOnkE','473322PHZSbb','_isReasoningEnabled','_isWebSearchEnabled','getCapabilitiesConfig','toggleWebSearch','isReasoningEnabled','fire','init','1YqTbqL','reasoning','88umtbVn','reset','502494zjKPwk','setWebSearch','37705muxffx','setReasoning','20mApvLX','capabilitiesUpdated'];_0x2485=function(){return _0x4067ef;};return _0x2485();}(function(_0x374d60,_0x370f29){const _0xc64b2=_0x5167,_0x34d2b0=_0x374d60();while(!![]){try{const _0x5764a6=parseInt(_0xc64b2(0x1a4))/0x1*(parseInt(_0xc64b2(0x193))/0x2)+-parseInt(_0xc64b2(0x19c))/0x3+-parseInt(_0xc64b2(0x194))/0x4*(parseInt(_0xc64b2(0x1aa))/0x5)+-parseInt(_0xc64b2(0x1a8))/0x6+-parseInt(_0xc64b2(0x195))/0x7*(parseInt(_0xc64b2(0x1a6))/0x8)+-parseInt(_0xc64b2(0x19b))/0x9*(parseInt(_0xc64b2(0x1ac))/0xa)+parseInt(_0xc64b2(0x199))/0xb*(parseInt(_0xc64b2(0x196))/0xc);if(_0x5764a6===_0x370f29)break;else _0x34d2b0['push'](_0x34d2b0['shift']());}catch(_0x5043a7){_0x34d2b0['push'](_0x34d2b0['shift']());}}}(_0x2485,0x2f3c6));function _0x5167(_0x21f76c,_0x34eb8b){const _0x24859a=_0x2485();return _0x5167=function(_0x516744,_0x594aeb){_0x516744=_0x516744-0x191;let _0x52ffa7=_0x24859a[_0x516744];return _0x52ffa7;},_0x5167(_0x21f76c,_0x34eb8b);}import{EmitterMixin as _0x54d3c8}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x4bdda1(0x191)];export class AICapabilities extends _0x54d3c8(){[_0x4bdda1(0x19e)];[_0x4bdda1(0x19d)];constructor(){const _0x9a3ae4=_0x4bdda1;super(),this[_0x9a3ae4(0x19e)]=!0x1,this[_0x9a3ae4(0x19d)]=!0x1;}[_0x4bdda1(0x1a3)](){const _0x11089f=_0x4bdda1;this[_0x11089f(0x1a7)]();}[_0x4bdda1(0x1a7)](){const _0x3f83fb=_0x4bdda1;this[_0x3f83fb(0x1a9)](!0x1),this[_0x3f83fb(0x1ab)](!0x1);}[_0x4bdda1(0x19f)](){const _0x1437b6=_0x4bdda1;return{'isWebSearchEnabled':this[_0x1437b6(0x19e)],'isReasoningEnabled':this[_0x1437b6(0x19d)]};}static[_0x4bdda1(0x197)](_0x2a789d){const _0x3db61e=_0x4bdda1,_0x149981={};return _0x2a789d&&_0x2a789d[_0x3db61e(0x192)]&&(_0x149981[_0x3db61e(0x19a)]={}),_0x2a789d&&_0x2a789d[_0x3db61e(0x1a1)]&&(_0x149981[_0x3db61e(0x1a5)]={}),_0x149981;}[_0x4bdda1(0x1a0)](){const _0x17df53=_0x4bdda1;this[_0x17df53(0x1a9)](!this[_0x17df53(0x19e)]);}[_0x4bdda1(0x198)](){const _0x33ad47=_0x4bdda1;this[_0x33ad47(0x1ab)](!this[_0x33ad47(0x19d)]);}[_0x4bdda1(0x1a9)](_0x240d1e){const _0x2e3025=_0x4bdda1;_0x240d1e!==this[_0x2e3025(0x19e)]&&(this[_0x2e3025(0x19e)]=_0x240d1e,this[_0x2e3025(0x1a2)](_0x2e3025(0x191),this[_0x2e3025(0x19f)]()));}[_0x4bdda1(0x1ab)](_0x1a8001){const _0x50bf19=_0x4bdda1;_0x1a8001!==this[_0x50bf19(0x19d)]&&(this[_0x50bf19(0x19d)]=_0x1a8001,this[_0x50bf19(0x1a2)](_0x50bf19(0x191),this[_0x50bf19(0x19f)]()));}}
23
+ const _0x2d5c78=_0x17e7;function _0x5d80(){const _0x26584f=['497640agJpPm','_isWebSearchEnabled','setReasoning','7GEcTcn','3408108tHFNgJ','webSearch','2129205VbScwp','reset','isReasoningEnabled','isWebSearchEnabled','48jsWeMa','304GpnGsj','toggleWebSearch','105530JPIgti','reasoning','setWebSearch','4LUPQzN','1900120sAhkMX','getCapabilitiesRequestData','init','capabilitiesUpdated','7526016VMQzTc','2012HuOqMi','fire','toggleReasoning','_isReasoningEnabled','getCapabilitiesConfig'];_0x5d80=function(){return _0x26584f;};return _0x5d80();}(function(_0x15a9d6,_0x34be7d){const _0x45e81b=_0x17e7,_0x2e5406=_0x15a9d6();while(!![]){try{const _0x1269f9=parseInt(_0x45e81b(0xcc))/0x1*(parseInt(_0x45e81b(0xd7))/0x2)+parseInt(_0x45e81b(0xc7))/0x3*(parseInt(_0x45e81b(0xd1))/0x4)+parseInt(_0x45e81b(0xdc))/0x5*(parseInt(_0x45e81b(0xcb))/0x6)+-parseInt(_0x45e81b(0xdf))/0x7*(parseInt(_0x45e81b(0xd2))/0x8)+-parseInt(_0x45e81b(0xd6))/0x9+parseInt(_0x45e81b(0xce))/0xa+-parseInt(_0x45e81b(0xc5))/0xb;if(_0x1269f9===_0x34be7d)break;else _0x2e5406['push'](_0x2e5406['shift']());}catch(_0x58304e){_0x2e5406['push'](_0x2e5406['shift']());}}}(_0x5d80,0x6b1f1));function _0x17e7(_0x5e7d34,_0x3abf66){const _0x5d805d=_0x5d80();return _0x17e7=function(_0x17e7f5,_0x362102){_0x17e7f5=_0x17e7f5-0xc5;let _0x1b681f=_0x5d805d[_0x17e7f5];return _0x1b681f;},_0x17e7(_0x5e7d34,_0x3abf66);}import{EmitterMixin as _0x410872}from'ckeditor5/src/utils.js';export const CAPABILITIES_MODEL_EVENT_NAMES=[_0x2d5c78(0xd5)];export class AICapabilities extends _0x410872(){[_0x2d5c78(0xdd)];[_0x2d5c78(0xda)];constructor(){const _0x32923a=_0x2d5c78;super(),this[_0x32923a(0xdd)]=!0x1,this[_0x32923a(0xda)]=!0x1;}[_0x2d5c78(0xd4)](){const _0x452a68=_0x2d5c78;this[_0x452a68(0xc8)]();}[_0x2d5c78(0xc8)](){const _0x2ec9c3=_0x2d5c78;this[_0x2ec9c3(0xd0)](!0x1),this[_0x2ec9c3(0xde)](!0x1);}[_0x2d5c78(0xdb)](){const _0x1968ac=_0x2d5c78;return{'isWebSearchEnabled':this[_0x1968ac(0xdd)],'isReasoningEnabled':this[_0x1968ac(0xda)]};}static[_0x2d5c78(0xd3)](_0x399644){const _0x55a3dd=_0x2d5c78,_0x179755={};return _0x399644&&_0x399644[_0x55a3dd(0xca)]&&(_0x179755[_0x55a3dd(0xc6)]={}),_0x399644&&_0x399644[_0x55a3dd(0xc9)]&&(_0x179755[_0x55a3dd(0xcf)]={}),_0x179755;}[_0x2d5c78(0xcd)](){const _0x2224f9=_0x2d5c78;this[_0x2224f9(0xd0)](!this[_0x2224f9(0xdd)]);}[_0x2d5c78(0xd9)](){const _0x523509=_0x2d5c78;this[_0x523509(0xde)](!this[_0x523509(0xda)]);}[_0x2d5c78(0xd0)](_0x14c922){const _0x4fa4b0=_0x2d5c78;_0x14c922!==this[_0x4fa4b0(0xdd)]&&(this[_0x4fa4b0(0xdd)]=_0x14c922,this[_0x4fa4b0(0xd8)](_0x4fa4b0(0xd5),this[_0x4fa4b0(0xdb)]()));}[_0x2d5c78(0xde)](_0x227c05){const _0xe89e72=_0x2d5c78;_0x227c05!==this[_0xe89e72(0xda)]&&(this[_0xe89e72(0xda)]=_0x227c05,this[_0xe89e72(0xd8)](_0xe89e72(0xd5),this[_0xe89e72(0xdb)]()));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x124ba6,_0x2091ed){var _0x54c129=_0x4533,_0x2ad893=_0x124ba6();while(!![]){try{var _0x488be7=parseInt(_0x54c129(0xc4))/0x1*(-parseInt(_0x54c129(0xd1))/0x2)+-parseInt(_0x54c129(0xd7))/0x3+-parseInt(_0x54c129(0xc2))/0x4*(-parseInt(_0x54c129(0xc9))/0x5)+-parseInt(_0x54c129(0xcf))/0x6+-parseInt(_0x54c129(0xd2))/0x7+-parseInt(_0x54c129(0xcb))/0x8+parseInt(_0x54c129(0xca))/0x9;if(_0x488be7===_0x2091ed)break;else _0x2ad893['push'](_0x2ad893['shift']());}catch(_0x317ea8){_0x2ad893['push'](_0x2ad893['shift']());}}}(_0x4114,0xb14bf));export var AIContextItemType;!function(_0x4006af){var _0x9c494f=_0x4533;_0x4006af[_0x9c494f(0xd0)]=_0x9c494f(0xda),_0x4006af[_0x9c494f(0xc8)]=_0x9c494f(0xce),_0x4006af[_0x9c494f(0xc6)]=_0x9c494f(0xc5),_0x4006af[_0x9c494f(0xc3)]=_0x9c494f(0xd6),_0x4006af[_0x9c494f(0xd3)]=_0x9c494f(0xd4),_0x4006af[_0x9c494f(0xc7)]=_0x9c494f(0xcd);}(AIContextItemType||(AIContextItemType={}));function _0x4114(){var _0x5eb5ec=['html','MARKDOWN','mcp-tool-context','33484maGQAL','URL','6846HmQucV','document','DOCUMENT','SELECTION','FILE','165JXTHYn','45178740pLztkU','5035296rGEPGB','markdown','selection','file','7649814auoRDc','TOOL','202ssuZCw','9423834ZlRkdm','TEXT','text','HTML','web-resource','1883421GGRTju'];_0x4114=function(){return _0x5eb5ec;};return _0x4114();}function _0x4533(_0x42f267,_0x3a798d){var _0x4114b1=_0x4114();return _0x4533=function(_0x4533ee,_0x583c1f){_0x4533ee=_0x4533ee-0xc2;var _0x913994=_0x4114b1[_0x4533ee];return _0x913994;},_0x4533(_0x42f267,_0x3a798d);}export var AIContextTextResourceType;!function(_0x3d2d6f){var _0x99051d=_0x4533;_0x3d2d6f[_0x99051d(0xd3)]=_0x99051d(0xd4),_0x3d2d6f[_0x99051d(0xd9)]=_0x99051d(0xcc),_0x3d2d6f[_0x99051d(0xd5)]=_0x99051d(0xd8);}(AIContextTextResourceType||(AIContextTextResourceType={}));
23
+ (function(_0x5bb641,_0x55aeac){var _0xc8860=_0x283d,_0x4fb8f1=_0x5bb641();while(!![]){try{var _0x2d4f68=parseInt(_0xc8860(0x17d))/0x1+parseInt(_0xc8860(0x188))/0x2+parseInt(_0xc8860(0x172))/0x3+parseInt(_0xc8860(0x17b))/0x4*(-parseInt(_0xc8860(0x187))/0x5)+parseInt(_0xc8860(0x183))/0x6*(parseInt(_0xc8860(0x186))/0x7)+-parseInt(_0xc8860(0x180))/0x8*(-parseInt(_0xc8860(0x17e))/0x9)+-parseInt(_0xc8860(0x189))/0xa;if(_0x2d4f68===_0x55aeac)break;else _0x4fb8f1['push'](_0x4fb8f1['shift']());}catch(_0x4b2f86){_0x4fb8f1['push'](_0x4fb8f1['shift']());}}}(_0x44c1,0x3f52b));export var AIContextItemType;function _0x283d(_0x5b976a,_0x2c071e){var _0x44c11b=_0x44c1();return _0x283d=function(_0x283d96,_0xae9095){_0x283d96=_0x283d96-0x170;var _0x2aa29b=_0x44c11b[_0x283d96];return _0x2aa29b;},_0x283d(_0x5b976a,_0x2c071e);}function _0x44c1(){var _0x104922=['130816YhwLTE','296345VYWWVk','16912VAuJYn','5760790gvsdJe','DOCUMENT','markdown','199020VTmNll','HTML','URL','MARKDOWN','text','document','html','web-resource','TOOL','4aNiuTA','SELECTION','273697lHFRnj','60822UeYJCL','FILE','536cDnVlV','selection','file','30ehGjta','mcp-tool-context','TEXT'];_0x44c1=function(){return _0x104922;};return _0x44c1();}!function(_0x5f3947){var _0x12b75b=_0x283d;_0x5f3947[_0x12b75b(0x17a)]=_0x12b75b(0x184),_0x5f3947[_0x12b75b(0x17f)]=_0x12b75b(0x182),_0x5f3947[_0x12b75b(0x170)]=_0x12b75b(0x177),_0x5f3947[_0x12b75b(0x174)]=_0x12b75b(0x179),_0x5f3947[_0x12b75b(0x185)]=_0x12b75b(0x176),_0x5f3947[_0x12b75b(0x17c)]=_0x12b75b(0x181);}(AIContextItemType||(AIContextItemType={}));export var AIContextTextResourceType;!function(_0x119559){var _0xf8f54e=_0x283d;_0x119559[_0xf8f54e(0x185)]=_0xf8f54e(0x176),_0x119559[_0xf8f54e(0x175)]=_0xf8f54e(0x171),_0x119559[_0xf8f54e(0x173)]=_0xf8f54e(0x178);}(AIContextTextResourceType||(AIContextTextResourceType={}));
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e27c4=_0x188e;(function(_0x3c144f,_0x451bc4){const _0x285525=_0x188e,_0xd43caf=_0x3c144f();while(!![]){try{const _0x4c236a=parseInt(_0x285525(0x1b5))/0x1+parseInt(_0x285525(0x1f1))/0x2*(-parseInt(_0x285525(0x1f8))/0x3)+-parseInt(_0x285525(0x1e7))/0x4*(-parseInt(_0x285525(0x1e1))/0x5)+-parseInt(_0x285525(0x1e4))/0x6+parseInt(_0x285525(0x1cc))/0x7*(parseInt(_0x285525(0x1b7))/0x8)+parseInt(_0x285525(0x1fd))/0x9+-parseInt(_0x285525(0x1e8))/0xa*(parseInt(_0x285525(0x1d9))/0xb);if(_0x4c236a===_0x451bc4)break;else _0xd43caf['push'](_0xd43caf['shift']());}catch(_0x8d65ef){_0xd43caf['push'](_0xd43caf['shift']());}}}(_0x21a2,0x2b8d0));import{CKEditorError as _0x2c2eab,EmitterMixin as _0x4c236c,uid as _0x3d419e}from'ckeditor5/src/utils.js';import{AIReply as _0xc35efc}from'./aireply.js';function _0x188e(_0x4768b7,_0x3ad3b1){const _0x21a2eb=_0x21a2();return _0x188e=function(_0x188e52,_0x5c0031){_0x188e52=_0x188e52-0x1b3;let _0xba8ef7=_0x21a2eb[_0x188e52];return _0xba8ef7;},_0x188e(_0x4768b7,_0x3ad3b1);}export const AI_MODEL_EVENT_NAMES=[_0x5e27c4(0x1ba),_0x5e27c4(0x1d5),_0x5e27c4(0x1bf),_0x5e27c4(0x1ea),_0x5e27c4(0x1d1),_0x5e27c4(0x1cb),_0x5e27c4(0x1ca),_0x5e27c4(0x200),_0x5e27c4(0x1c8),_0x5e27c4(0x1ef),_0x5e27c4(0x1d3),_0x5e27c4(0x1fe),_0x5e27c4(0x201),_0x5e27c4(0x1b3),_0x5e27c4(0x1b4)];export class AIInteraction extends _0x4c236c(){['id'];[_0x5e27c4(0x1c5)]=[];[_0x5e27c4(0x1e9)];[_0x5e27c4(0x204)];[_0x5e27c4(0x203)];[_0x5e27c4(0x1df)];[_0x5e27c4(0x1cf)];[_0x5e27c4(0x202)]=!0x1;[_0x5e27c4(0x1d2)]=!0x1;[_0x5e27c4(0x1ee)];[_0x5e27c4(0x206)]=!0x1;[_0x5e27c4(0x1f5)]=!0x1;constructor({connector:_0x2c01cd,editor:_0x279071}){const _0x5ac3cf=_0x5e27c4;super(),this['id']=_0x3d419e(),this[_0x5ac3cf(0x1cf)]=_0x2c01cd,this[_0x5ac3cf(0x202)]=!0x0,this[_0x5ac3cf(0x1ee)]=_0x279071;}async[_0x5e27c4(0x1d0)](){const _0x5ee6f5=_0x5e27c4,_0x1b925b=[];let _0x4b3fdf,_0x4018ed,_0x16783d;this[_0x5ee6f5(0x202)]=!0x1;try{this[_0x5ee6f5(0x1df)]=await this[_0x5ee6f5(0x1db)](),this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1d5),this);const _0x2ddb0d=await this[_0x5ee6f5(0x1df)][_0x5ee6f5(0x1ed)]();for await(const _0x57e1c9 of _0x2ddb0d){if(this[_0x5ee6f5(0x202)])return;if(_0x5ee6f5(0x1b4)==_0x57e1c9[_0x5ee6f5(0x1e2)])return void this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1b4),{'error':new _0x2c2eab(_0x5ee6f5(0x20a),this)});switch(_0x57e1c9[_0x5ee6f5(0x1e2)]){case _0x5ee6f5(0x207):this[_0x5ee6f5(0x204)]=_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x204)];break;case _0x5ee6f5(0x1bb):this[_0x5ee6f5(0x203)]=_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1cd)];break;case _0x5ee6f5(0x1bd):this[_0x5ee6f5(0x1c8)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1c9)],!0x0);break;case _0x5ee6f5(0x1c4):_0x1b925b[_0x5ee6f5(0x1be)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1c4)]);break;case _0x5ee6f5(0x1e0):this[_0x5ee6f5(0x1f5)]||(this[_0x5ee6f5(0x1f5)]=!0x0,this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1ef),this));break;case _0x5ee6f5(0x1d8):this[_0x5ee6f5(0x206)]||(this[_0x5ee6f5(0x206)]=!0x0,this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1fe),this));break;case _0x5ee6f5(0x1f0):case _0x5ee6f5(0x1c7):this[_0x5ee6f5(0x1d4)](),this[_0x5ee6f5(0x1de)](),_0x4b3fdf=_0x5ee6f5(0x1f0)==_0x57e1c9[_0x5ee6f5(0x1e2)]?_0x5ee6f5(0x1ce):_0x5ee6f5(0x1b6),_0x4018ed=_0x5ee6f5(0x1f0)==_0x57e1c9[_0x5ee6f5(0x1e2)]?_0x57e1c9[_0x5ee6f5(0x1e5)]['id']:void 0x0,this[_0x5ee6f5(0x1e9)]&&this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1d6)]!=_0x4b3fdf&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1c3)](),this[_0x5ee6f5(0x1e9)]=void 0x0),this[_0x5ee6f5(0x1e9)]||(this[_0x5ee6f5(0x1e9)]=this[_0x5ee6f5(0x1bc)]({'type':_0x4b3fdf,'interactionId':this['id'],'id':_0x4018ed}),_0x5ee6f5(0x1ce)==_0x4b3fdf&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1b9)]=_0x1b925b[_0x5ee6f5(0x1b8)](0x0))),this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1c2)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1fa)]);break;case _0x5ee6f5(0x1dc):_0x16783d=JSON[_0x5ee6f5(0x1e3)](_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x208)]),this[_0x5ee6f5(0x1fb)]({'toolName':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1d7)],'data':_0x16783d[_0x5ee6f5(0x1e5)],'attributes':_0x16783d[_0x5ee6f5(0x1c0)]});break;case _0x5ee6f5(0x1f3):this[_0x5ee6f5(0x209)]({'toolName':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1d7)],'data':_0x57e1c9[_0x5ee6f5(0x1e5)][_0x5ee6f5(0x1e5)]});}}}finally{this[_0x5ee6f5(0x202)]||(this[_0x5ee6f5(0x1e9)]&&_0x1b925b[_0x5ee6f5(0x1f9)]>0x0&&(this[_0x5ee6f5(0x1e9)][_0x5ee6f5(0x1b9)]=_0x1b925b[_0x5ee6f5(0x1b8)](0x0)),this[_0x5ee6f5(0x1c1)](),this[_0x5ee6f5(0x1ec)](_0x5ee6f5(0x1ea),this));}}[_0x5e27c4(0x1ff)](){const _0x28636d=_0x5e27c4;this[_0x28636d(0x202)]||(this[_0x28636d(0x1c1)](),this[_0x28636d(0x1ec)](_0x28636d(0x1bf),this));}[_0x5e27c4(0x1dd)](_0x287a23){const _0x55103d=_0x5e27c4;return this[_0x55103d(0x1c5)][_0x55103d(0x1c6)](_0x1a66ad=>_0x1a66ad['id']===_0x287a23);}[_0x5e27c4(0x1e6)](){const _0x26a98a=_0x5e27c4;this[_0x26a98a(0x1d2)]||(this[_0x26a98a(0x1ff)](),this[_0x26a98a(0x1c5)][_0x26a98a(0x1f6)](_0x4c765b=>_0x4c765b[_0x26a98a(0x1e6)]()),this[_0x26a98a(0x1c5)]=[],this[_0x26a98a(0x1d2)]=!0x0,this[_0x26a98a(0x1ec)](_0x26a98a(0x1d1),this),this[_0x26a98a(0x1eb)]());}[_0x5e27c4(0x1bc)](_0x19f395){const _0x2f206e=_0x5e27c4,_0x2fefe4=new _0xc35efc({'editor':this[_0x2f206e(0x1ee)],'documentContextContent':this[_0x2f206e(0x1fc)]()?.[_0x2f206e(0x205)],..._0x19f395});return this[_0x2f206e(0x1c5)][_0x2f206e(0x1be)](_0x2fefe4),_0x2fefe4[_0x2f206e(0x1f4)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x2f206e(0x1ec)](_0x2f206e(0x1cb),_0x2fefe4),_0x2fefe4;}[_0x5e27c4(0x1c8)](_0x176206,_0x44223d=!0x1){const _0xd4fb25=_0x5e27c4;this[_0xd4fb25(0x1ec)](_0xd4fb25(0x1c8),_0x176206,_0x44223d);}[_0x5e27c4(0x1de)](){const _0x120886=_0x5e27c4;this[_0x120886(0x1f5)]&&(this[_0x120886(0x1f5)]=!0x1,this[_0x120886(0x1ec)](_0x120886(0x1d3),this));}[_0x5e27c4(0x1d4)](){const _0x353e1b=_0x5e27c4;this[_0x353e1b(0x206)]&&(this[_0x353e1b(0x206)]=!0x1,this[_0x353e1b(0x1ec)](_0x353e1b(0x201),this));}[_0x5e27c4(0x1fb)](_0x32a06e){const _0x4cdcc5=_0x5e27c4;this[_0x4cdcc5(0x1ec)](_0x4cdcc5(0x1b3),{'type':_0x4cdcc5(0x208),'toolName':_0x32a06e[_0x4cdcc5(0x1d7)],'data':structuredClone(_0x32a06e[_0x4cdcc5(0x1e5)]||{}),'attributes':structuredClone(_0x32a06e[_0x4cdcc5(0x1c0)]||{})},this);}[_0x5e27c4(0x209)](_0x312f09){const _0x1dec14=_0x5e27c4;this[_0x1dec14(0x1ec)](_0x1dec14(0x1b3),{'type':_0x1dec14(0x1da),'toolName':_0x312f09[_0x1dec14(0x1d7)],'data':structuredClone(_0x312f09[_0x1dec14(0x1e5)])},this);}[_0x5e27c4(0x1c1)](){const _0x1502cd=_0x5e27c4;this[_0x1502cd(0x202)]=!0x0,this[_0x1502cd(0x1df)]&&this[_0x1502cd(0x1df)][_0x1502cd(0x1f7)][_0x1502cd(0x1f2)](),this[_0x1502cd(0x1e9)]&&this[_0x1502cd(0x1e9)][_0x1502cd(0x1c3)](),this[_0x1502cd(0x1df)]=this[_0x1502cd(0x1e9)]=void 0x0;}}function _0x21a2(){const _0x2b665a=['interactionDestroyed','isDestroyed','webSearchFinished','resetReasoningState','interactionStarted','type','toolName','reasoning','385xBJvsU','notification','sendRequest','mcp-tool-result','getReply','resetWebSearchState','currentRequest','web-search','813465UwlBEs','event','parse','1189092SpKHAj','data','destroy','4TpyZwl','39740qutpqf','currentReply','interactionFinished','stopListening','fire','getStream','editor','webSearchStarted','modification-delta','44ZrCbEO','abort','mcp-tool-notification','delegate','_isWebSearching','forEach','abortController','21393LlapZC','length','textDelta','_handleToolResultData','getDocumentContext','354978dewukS','reasoningStarted','stop','replyChangeGroupStateUpdated','reasoningFinished','isStopped','actionCallId','messageId','content','_isReasoning','message-metadata','result','_handleToolNotificationData','ai-chat-interaction-error','toolDataReceived','error','171251RxYubL','text','149576xLfbDL','splice','sources','interactionCreated','action-metadata','createReply','conversation-title','push','interactionStopped','attributes','_finalizeInteraction','appendContent','done','source','replies','find','text-delta','setConversationTitle','conversationTitle','replyContentUpdated','replyCreated','112kJhdpN','callId','modification','connector','start'];_0x21a2=function(){return _0x2b665a;};return _0x21a2();}
23
+ const _0x17c210=_0x4cb6;(function(_0x4bf623,_0xbf9b98){const _0xfaa132=_0x4cb6,_0x184e77=_0x4bf623();while(!![]){try{const _0x53b843=parseInt(_0xfaa132(0x15b))/0x1+parseInt(_0xfaa132(0x14a))/0x2+parseInt(_0xfaa132(0x139))/0x3+parseInt(_0xfaa132(0x120))/0x4*(-parseInt(_0xfaa132(0x14c))/0x5)+parseInt(_0xfaa132(0x155))/0x6*(parseInt(_0xfaa132(0x148))/0x7)+parseInt(_0xfaa132(0x165))/0x8+-parseInt(_0xfaa132(0x11e))/0x9;if(_0x53b843===_0xbf9b98)break;else _0x184e77['push'](_0x184e77['shift']());}catch(_0x27f9f3){_0x184e77['push'](_0x184e77['shift']());}}}(_0x16e5,0x6db9d));import{CKEditorError as _0x9b5873,EmitterMixin as _0x5da514,uid as _0x49c332}from'ckeditor5/src/utils.js';import{AIReply as _0x46cefb}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x17c210(0x12f),_0x17c210(0x117),_0x17c210(0x121),_0x17c210(0x12e),_0x17c210(0x140),_0x17c210(0x13c),_0x17c210(0x146),_0x17c210(0x129),_0x17c210(0x11c),_0x17c210(0x112),_0x17c210(0x162),_0x17c210(0x15e),_0x17c210(0x127),_0x17c210(0x131),_0x17c210(0x128)];export class AIInteraction extends _0x5da514(){['id'];[_0x17c210(0x125)]=[];[_0x17c210(0x142)];[_0x17c210(0x158)];[_0x17c210(0x138)];[_0x17c210(0x123)];[_0x17c210(0x141)];[_0x17c210(0x12c)]=!0x1;[_0x17c210(0x126)]=!0x1;[_0x17c210(0x15f)];[_0x17c210(0x163)]=!0x1;[_0x17c210(0x113)]=!0x1;constructor({connector:_0x2bfa09,editor:_0xad0338}){const _0x230c85=_0x17c210;super(),this['id']=_0x49c332(),this[_0x230c85(0x141)]=_0x2bfa09,this[_0x230c85(0x12c)]=!0x0,this[_0x230c85(0x15f)]=_0xad0338;}async[_0x17c210(0x13d)](){const _0x1e008f=_0x17c210,_0xcd8a29=[];let _0x50617c,_0xe3ffa4,_0x497844;this[_0x1e008f(0x12c)]=!0x1;try{this[_0x1e008f(0x123)]=await this[_0x1e008f(0x150)](),this[_0x1e008f(0x159)](_0x1e008f(0x117),this);const _0xb7b48c=await this[_0x1e008f(0x123)][_0x1e008f(0x11a)]();for await(const _0x46b96e of _0xb7b48c){if(this[_0x1e008f(0x12c)])return;if(_0x1e008f(0x128)==_0x46b96e[_0x1e008f(0x12a)])return void this[_0x1e008f(0x159)](_0x1e008f(0x128),{'error':new _0x9b5873(_0x1e008f(0x135),this)});switch(_0x46b96e[_0x1e008f(0x12a)]){case _0x1e008f(0x14d):this[_0x1e008f(0x158)]=_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x158)];break;case _0x1e008f(0x114):this[_0x1e008f(0x138)]=_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x13a)];break;case _0x1e008f(0x156):this[_0x1e008f(0x11c)](_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x134)],!0x0);break;case _0x1e008f(0x145):_0xcd8a29[_0x1e008f(0x14f)](_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x145)]);break;case _0x1e008f(0x153):this[_0x1e008f(0x113)]||(this[_0x1e008f(0x113)]=!0x0,this[_0x1e008f(0x159)](_0x1e008f(0x112),this));break;case _0x1e008f(0x137):this[_0x1e008f(0x163)]||(this[_0x1e008f(0x163)]=!0x0,this[_0x1e008f(0x159)](_0x1e008f(0x15e),this));break;case _0x1e008f(0x11f):case _0x1e008f(0x144):this[_0x1e008f(0x14e)](),this[_0x1e008f(0x12d)](),_0x50617c=_0x1e008f(0x11f)==_0x46b96e[_0x1e008f(0x12a)]?_0x1e008f(0x12b):_0x1e008f(0x161),_0xe3ffa4=_0x1e008f(0x11f)==_0x46b96e[_0x1e008f(0x12a)]?_0x46b96e[_0x1e008f(0x152)]['id']:void 0x0,this[_0x1e008f(0x142)]&&this[_0x1e008f(0x142)][_0x1e008f(0x130)]!=_0x50617c&&(this[_0x1e008f(0x142)][_0x1e008f(0x13f)](),this[_0x1e008f(0x142)]=void 0x0),this[_0x1e008f(0x142)]||(this[_0x1e008f(0x142)]=this[_0x1e008f(0x118)]({'type':_0x50617c,'interactionId':this['id'],'id':_0xe3ffa4}),_0x1e008f(0x12b)==_0x50617c&&(this[_0x1e008f(0x142)][_0x1e008f(0x11b)]=_0xcd8a29[_0x1e008f(0x13b)](0x0))),this[_0x1e008f(0x142)][_0x1e008f(0x13e)](_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x167)]);break;case _0x1e008f(0x115):_0x497844=JSON[_0x1e008f(0x157)](_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x160)]),this[_0x1e008f(0x143)]({'toolName':_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x164)],'data':_0x497844[_0x1e008f(0x152)],'attributes':_0x497844[_0x1e008f(0x15c)]});break;case _0x1e008f(0x132):this[_0x1e008f(0x15d)]({'toolName':_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x164)],'data':_0x46b96e[_0x1e008f(0x152)][_0x1e008f(0x152)]});}}}finally{this[_0x1e008f(0x12c)]||(this[_0x1e008f(0x142)]&&_0xcd8a29[_0x1e008f(0x136)]>0x0&&(this[_0x1e008f(0x142)][_0x1e008f(0x11b)]=_0xcd8a29[_0x1e008f(0x13b)](0x0)),this[_0x1e008f(0x149)](),this[_0x1e008f(0x159)](_0x1e008f(0x12e),this));}}[_0x17c210(0x11d)](){const _0x7096af=_0x17c210;this[_0x7096af(0x12c)]||(this[_0x7096af(0x149)](),this[_0x7096af(0x159)](_0x7096af(0x121),this));}[_0x17c210(0x14b)](_0x40a97c){const _0x34b4e2=_0x17c210;return this[_0x34b4e2(0x125)][_0x34b4e2(0x166)](_0x326063=>_0x326063['id']===_0x40a97c);}[_0x17c210(0x116)](){const _0x2a222b=_0x17c210;this[_0x2a222b(0x126)]||(this[_0x2a222b(0x11d)](),this[_0x2a222b(0x125)][_0x2a222b(0x15a)](_0x19b9f2=>_0x19b9f2[_0x2a222b(0x116)]()),this[_0x2a222b(0x125)]=[],this[_0x2a222b(0x126)]=!0x0,this[_0x2a222b(0x159)](_0x2a222b(0x140),this),this[_0x2a222b(0x122)]());}[_0x17c210(0x118)](_0xb17758){const _0x1c1600=_0x17c210,_0x3bd835=new _0x46cefb({'editor':this[_0x1c1600(0x15f)],'documentContextContent':this[_0x1c1600(0x124)]()?.[_0x1c1600(0x133)],..._0xb17758});return this[_0x1c1600(0x125)][_0x1c1600(0x14f)](_0x3bd835),_0x3bd835[_0x1c1600(0x154)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x1c1600(0x159)](_0x1c1600(0x13c),_0x3bd835),_0x3bd835;}[_0x17c210(0x11c)](_0x3dc945,_0x102e86=!0x1){const _0x51046d=_0x17c210;this[_0x51046d(0x159)](_0x51046d(0x11c),_0x3dc945,_0x102e86);}[_0x17c210(0x12d)](){const _0x5bbbc8=_0x17c210;this[_0x5bbbc8(0x113)]&&(this[_0x5bbbc8(0x113)]=!0x1,this[_0x5bbbc8(0x159)](_0x5bbbc8(0x162),this));}[_0x17c210(0x14e)](){const _0x2dfe4b=_0x17c210;this[_0x2dfe4b(0x163)]&&(this[_0x2dfe4b(0x163)]=!0x1,this[_0x2dfe4b(0x159)](_0x2dfe4b(0x127),this));}[_0x17c210(0x143)](_0x545927){const _0x1b9149=_0x17c210;this[_0x1b9149(0x159)](_0x1b9149(0x131),{'type':_0x1b9149(0x160),'toolName':_0x545927[_0x1b9149(0x164)],'data':structuredClone(_0x545927[_0x1b9149(0x152)]||{}),'attributes':structuredClone(_0x545927[_0x1b9149(0x15c)]||{})},this);}[_0x17c210(0x15d)](_0x1bc1e3){const _0x230468=_0x17c210;this[_0x230468(0x159)](_0x230468(0x131),{'type':_0x230468(0x151),'toolName':_0x1bc1e3[_0x230468(0x164)],'data':structuredClone(_0x1bc1e3[_0x230468(0x152)])},this);}[_0x17c210(0x149)](){const _0x5f1d02=_0x17c210;this[_0x5f1d02(0x12c)]=!0x0,this[_0x5f1d02(0x123)]&&this[_0x5f1d02(0x123)][_0x5f1d02(0x147)][_0x5f1d02(0x119)](),this[_0x5f1d02(0x142)]&&this[_0x5f1d02(0x142)][_0x5f1d02(0x13f)](),this[_0x5f1d02(0x123)]=this[_0x5f1d02(0x142)]=void 0x0;}}function _0x4cb6(_0x1e6393,_0x1fa53d){const _0x16e562=_0x16e5();return _0x4cb6=function(_0x4cb6dd,_0x3b9cab){_0x4cb6dd=_0x4cb6dd-0x112;let _0x1f05e8=_0x16e562[_0x4cb6dd];return _0x1f05e8;},_0x4cb6(_0x1e6393,_0x1fa53d);}function _0x16e5(){const _0x787683=['createReply','abort','getStream','sources','setConversationTitle','stop','6137784yDGJaE','modification-delta','4eDDIJU','interactionStopped','stopListening','currentRequest','getDocumentContext','replies','isDestroyed','reasoningFinished','error','replyChangeGroupStateUpdated','event','modification','isStopped','resetWebSearchState','interactionFinished','interactionCreated','type','toolDataReceived','mcp-tool-notification','content','conversationTitle','ai-chat-interaction-error','length','reasoning','actionCallId','573330oVcnYn','callId','splice','replyCreated','start','appendContent','done','interactionDestroyed','connector','currentReply','_handleToolResultData','text-delta','source','replyContentUpdated','abortController','1137031aioLjv','_finalizeInteraction','40602VXQkUs','getReply','1602655PKDNLP','message-metadata','resetReasoningState','push','sendRequest','notification','data','web-search','delegate','6FDxKeU','conversation-title','parse','messageId','fire','forEach','304173onbUBZ','attributes','_handleToolNotificationData','reasoningStarted','editor','result','text','webSearchFinished','_isReasoning','toolName','6191416GMgLDE','find','textDelta','webSearchStarted','_isWebSearching','action-metadata','mcp-tool-result','destroy','interactionStarted'];_0x16e5=function(){return _0x787683;};return _0x16e5();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3e1474=_0x4eb1;(function(_0x49c212,_0x12aecb){const _0x1970ed=_0x4eb1,_0x2c4d5f=_0x49c212();while(!![]){try{const _0x5159e8=parseInt(_0x1970ed(0xb1))/0x1+-parseInt(_0x1970ed(0x84))/0x2+parseInt(_0x1970ed(0xad))/0x3*(parseInt(_0x1970ed(0xae))/0x4)+parseInt(_0x1970ed(0xac))/0x5*(parseInt(_0x1970ed(0xaf))/0x6)+-parseInt(_0x1970ed(0x87))/0x7+-parseInt(_0x1970ed(0x8e))/0x8*(parseInt(_0x1970ed(0x92))/0x9)+parseInt(_0x1970ed(0xa4))/0xa;if(_0x5159e8===_0x12aecb)break;else _0x2c4d5f['push'](_0x2c4d5f['shift']());}catch(_0x1f2e1c){_0x2c4d5f['push'](_0x2c4d5f['shift']());}}}(_0x4244,0xcbf7b));import{EmitterMixin as _0x8ae52b,logWarning as _0x2b3481,logError as _0x32010}from'ckeditor5/src/utils.js';function _0x4eb1(_0x63e96d,_0x5c3526){const _0x424434=_0x4244();return _0x4eb1=function(_0x4eb181,_0x3cb6f0){_0x4eb181=_0x4eb181-0x83;let _0x1b44f6=_0x424434[_0x4eb181];return _0x1b44f6;},_0x4eb1(_0x63e96d,_0x5c3526);}function _0x4244(){const _0x5c525d=['_defaultModelId','441CEguxA','uiLanguage','ai-chat-model-id-unrecognized','_locale','push','some','isAvailable','ai-chat-default-model-id-unrecognized','displayedModels','getAvailableModels','getAll','name','_getModelById','auto','AI_MODEL_NAME_AUTO','toLocaleLowerCase','_connector','filter','1986250FSFbJw','provider','has','startsWith','defaultModelId','recommended','map','_filterModels','4535MXQftL','3PnkZSb','2920784pHdomn','3708MQaKLY','string','652997jcQtLT','ai-models-unable-to-retrieve','_availableModels','_modelsRequest','_config','agent','items','1510488zqGBZa','list','length','428799YQYNzg','getModel','getDefault','_isMatchingFilter','_retrieveModels','getModels','_modelList','80064woyvBw','find','add'];_0x4244=function(){return _0x5c525d;};return _0x4244();}import{getTranslation as _0x5034eb}from'../utils/common-translations.js';export class AIModels extends _0x8ae52b(){[_0x3e1474(0xa2)];[_0x3e1474(0xb5)];[_0x3e1474(0x95)];[_0x3e1474(0x8d)]=[];[_0x3e1474(0xb4)]=null;constructor({connector:_0x525576,config:_0x1f8352,locale:_0x118504}){const _0x457ff7=_0x3e1474;super(),this[_0x457ff7(0xa2)]=_0x525576,this[_0x457ff7(0xb5)]=_0x1f8352,this[_0x457ff7(0x95)]=_0x118504;}get[_0x3e1474(0xb3)](){const _0x180c0f=_0x3e1474;return this[_0x180c0f(0xb5)]?.[_0x180c0f(0x9a)];}get[_0x3e1474(0x91)](){const _0x2dbd4c=_0x3e1474;return this[_0x2dbd4c(0xb5)]?.[_0x2dbd4c(0xa8)];}async[_0x3e1474(0x9c)](){const _0x3903fe=_0x3e1474;return this[_0x3903fe(0xb4)]||(this[_0x3903fe(0xb4)]=this[_0x3903fe(0x8b)]()),this[_0x3903fe(0xb4)];}async[_0x3e1474(0x9b)](){const _0x14e093=_0x3e1474,_0x336e45=await this[_0x14e093(0x9c)]();let _0x32f407;return _0x32f407=this[_0x14e093(0xb3)]?this[_0x14e093(0xab)](_0x336e45,this[_0x14e093(0xb3)]):_0x336e45[_0x14e093(0xa3)](_0x47b7ba=>_0x47b7ba[_0x14e093(0xa9)]),_0x32f407;}async[_0x3e1474(0x88)](_0xb206af){const _0x2da6f6=_0x3e1474,_0x5ec812=await this[_0x2da6f6(0x9c)]();if(!_0x5ec812[_0x2da6f6(0x86)])return null;if(_0xb206af){const _0x2eff47=this[_0x2da6f6(0x9e)](_0x5ec812,_0xb206af);if(_0x2eff47)return _0x2eff47;_0x2b3481(_0x2da6f6(0x94),{'modelId':_0xb206af,'fallBackModelId':this[_0x2da6f6(0x91)]});}return this[_0x2da6f6(0x89)]();}async[_0x3e1474(0x89)](){const _0x39cd9d=_0x3e1474,_0x52f166=await this[_0x39cd9d(0x9b)]();if(!_0x52f166[_0x39cd9d(0x86)])return null;if(this[_0x39cd9d(0x91)]){const _0x498df2=this[_0x39cd9d(0x9e)](_0x52f166,this[_0x39cd9d(0x91)]);if(_0x498df2)return _0x498df2;_0x2b3481(_0x39cd9d(0x99),{'defaultModelId':this[_0x39cd9d(0x91)],'fallBackModelId':_0x52f166[0x0]['id']});}return _0x52f166[0x0];}async[_0x3e1474(0x98)](_0x2f2ac3){const _0xe1bb04=_0x3e1474;return(await this[_0xe1bb04(0x9b)]())[_0xe1bb04(0x97)](_0x53671a=>_0x53671a[_0xe1bb04(0x9d)]===_0x2f2ac3[_0xe1bb04(0x9d)]&&_0x53671a[_0xe1bb04(0xa5)]===_0x2f2ac3[_0xe1bb04(0xa5)]);}async[_0x3e1474(0x8b)](){const _0x40ace5=_0x3e1474;if(!this[_0x40ace5(0x8d)][_0x40ace5(0x86)])try{const _0x47a0e7=this[_0x40ace5(0x95)][_0x40ace5(0x93)]||'en',_0x2f0c2c=this[_0x40ace5(0xa2)][_0x40ace5(0x8c)](_0x47a0e7),_0x286e53=await _0x2f0c2c[_0x40ace5(0x85)]();this[_0x40ace5(0x8d)]=_0x286e53[_0x40ace5(0x83)][_0x40ace5(0xaa)](_0x31f1ac=>Bi(_0x31f1ac)?{..._0x31f1ac,'name':_0x5034eb(this[_0x40ace5(0x95)],_0x40ace5(0xa0))}:_0x31f1ac);}catch(_0x49982f){throw _0x32010(_0x40ace5(0xb2),{'error':_0x49982f}),_0x49982f;}return[...this[_0x40ace5(0x8d)]];}[_0x3e1474(0xab)](_0x2d5bd7,_0x3b1c5f){const _0x2337d6=_0x3e1474;let _0xadb57;if(_0x3b1c5f){_0xadb57=[];const _0x203e94=new Set(),_0x1af89c=_0x2337d6(0xb0)==typeof _0x3b1c5f?[_0x3b1c5f[_0x2337d6(0xa1)]()]:_0x3b1c5f[_0x2337d6(0xaa)](_0x493621=>_0x493621[_0x2337d6(0xa1)]());for(const _0x1ae9a3 of _0x1af89c)for(const _0x215bb1 of _0x2d5bd7)!_0x203e94[_0x2337d6(0xa6)](_0x215bb1['id'])&&this[_0x2337d6(0x8a)](_0x215bb1,_0x1ae9a3)&&(_0xadb57[_0x2337d6(0x96)](_0x215bb1),_0x203e94[_0x2337d6(0x90)](_0x215bb1['id']));}else _0xadb57=_0x2d5bd7;return _0xadb57;}[_0x3e1474(0x8a)](_0x3ee309,_0x59257e){const _0x2cbbe5=_0x3e1474,_0x3f861d=_0x3ee309['id'][_0x2cbbe5(0xa1)](),_0x33ec4a=_0x3ee309[_0x2cbbe5(0x9d)][_0x2cbbe5(0xa1)](),_0x35cfbc=_0x3ee309[_0x2cbbe5(0xa5)][_0x2cbbe5(0xa1)]();return _0x3f861d===_0x59257e||_0x33ec4a===_0x59257e||Bi(_0x3ee309)&&_0x2cbbe5(0x9f)===_0x59257e||_0x35cfbc===_0x59257e||_0x3f861d[_0x2cbbe5(0xa7)](_0x59257e);}[_0x3e1474(0x9e)](_0x1c78a7,_0x2877e7){const _0x5385d8=_0x3e1474;return _0x1c78a7[_0x5385d8(0x8f)](_0x466322=>Bi(_0x466322)&&_0x5385d8(0x9f)===_0x2877e7?_0x466322:_0x466322['id']===_0x2877e7)||null;}}function Bi(_0x55dbb5){const _0x178513=_0x3e1474;return _0x55dbb5['id'][_0x178513(0xa7)](_0x178513(0xb6));}
23
+ function _0x3b5b(){const _0x4cfa1b=['_modelList','some','_connector','_getModelById','has','list','getDefault','getAll','isAvailable','1962771GIJoDj','string','_locale','ai-models-unable-to-retrieve','defaultModelId','getAvailableModels','auto','agent','map','getModels','items','add','find','_isMatchingFilter','push','_filterModels','ai-chat-default-model-id-unrecognized','1171044fKcTUc','1307020nbaWue','displayedModels','_modelsRequest','50exmUtG','uiLanguage','64vcfexF','4712561tMTUVv','AI_MODEL_NAME_AUTO','provider','startsWith','toLocaleLowerCase','5346144GLecwA','97821CZBQNh','6781iNShfd','_defaultModelId','6vQKysz','recommended','name','_config','length','_retrieveModels','ai-chat-model-id-unrecognized','_availableModels','getModel','filter'];_0x3b5b=function(){return _0x4cfa1b;};return _0x3b5b();}const _0x34ec23=_0x28f3;function _0x28f3(_0x56c0a6,_0x8c4f2c){const _0x3b5b6f=_0x3b5b();return _0x28f3=function(_0x28f376,_0x5b840){_0x28f376=_0x28f376-0x15e;let _0x1858e7=_0x3b5b6f[_0x28f376];return _0x1858e7;},_0x28f3(_0x56c0a6,_0x8c4f2c);}(function(_0x5eb32e,_0x44f99f){const _0x5725c6=_0x28f3,_0x5dabdb=_0x5eb32e();while(!![]){try{const _0x4e0ada=-parseInt(_0x5725c6(0x177))/0x1*(-parseInt(_0x5725c6(0x16f))/0x2)+parseInt(_0x5725c6(0x18c))/0x3+-parseInt(_0x5725c6(0x169))/0x4+-parseInt(_0x5725c6(0x16a))/0x5+-parseInt(_0x5725c6(0x179))/0x6*(parseInt(_0x5725c6(0x170))/0x7)+parseInt(_0x5725c6(0x175))/0x8+parseInt(_0x5725c6(0x176))/0x9*(parseInt(_0x5725c6(0x16d))/0xa);if(_0x4e0ada===_0x44f99f)break;else _0x5dabdb['push'](_0x5dabdb['shift']());}catch(_0xff9d83){_0x5dabdb['push'](_0x5dabdb['shift']());}}}(_0x3b5b,0x5978a));import{EmitterMixin as _0x10952c,logWarning as _0x41d001,logError as _0x8a7e5a}from'ckeditor5/src/utils.js';import{getTranslation as _0x1a8c54}from'../utils/common-translations.js';export class AIModels extends _0x10952c(){[_0x34ec23(0x185)];[_0x34ec23(0x17c)];[_0x34ec23(0x18e)];[_0x34ec23(0x183)]=[];[_0x34ec23(0x16c)]=null;constructor({connector:_0x3e4fc6,config:_0x4e1a2f,locale:_0x3d70ca}){const _0x1c6df1=_0x34ec23;super(),this[_0x1c6df1(0x185)]=_0x3e4fc6,this[_0x1c6df1(0x17c)]=_0x4e1a2f,this[_0x1c6df1(0x18e)]=_0x3d70ca;}get[_0x34ec23(0x180)](){const _0xe6003f=_0x34ec23;return this[_0xe6003f(0x17c)]?.[_0xe6003f(0x16b)];}get[_0x34ec23(0x178)](){const _0x546868=_0x34ec23;return this[_0x546868(0x17c)]?.[_0x546868(0x190)];}async[_0x34ec23(0x18a)](){const _0x54cd55=_0x34ec23;return this[_0x54cd55(0x16c)]||(this[_0x54cd55(0x16c)]=this[_0x54cd55(0x17e)]()),this[_0x54cd55(0x16c)];}async[_0x34ec23(0x191)](){const _0x5c4a54=_0x34ec23,_0x1ad05a=await this[_0x5c4a54(0x18a)]();let _0x4f0744;return _0x4f0744=this[_0x5c4a54(0x180)]?this[_0x5c4a54(0x167)](_0x1ad05a,this[_0x5c4a54(0x180)]):_0x1ad05a[_0x5c4a54(0x182)](_0x1227d0=>_0x1227d0[_0x5c4a54(0x17a)]),_0x4f0744;}async[_0x34ec23(0x181)](_0x40bf67){const _0x2a9f96=_0x34ec23,_0x40e75b=await this[_0x2a9f96(0x18a)]();if(!_0x40e75b[_0x2a9f96(0x17d)])return null;if(_0x40bf67){const _0x1b84fe=this[_0x2a9f96(0x186)](_0x40e75b,_0x40bf67);if(_0x1b84fe)return _0x1b84fe;_0x41d001(_0x2a9f96(0x17f),{'modelId':_0x40bf67,'fallBackModelId':this[_0x2a9f96(0x178)]});}return this[_0x2a9f96(0x189)]();}async[_0x34ec23(0x189)](){const _0x40a421=_0x34ec23,_0x1b13e4=await this[_0x40a421(0x191)]();if(!_0x1b13e4[_0x40a421(0x17d)])return null;if(this[_0x40a421(0x178)]){const _0xb56d6e=this[_0x40a421(0x186)](_0x1b13e4,this[_0x40a421(0x178)]);if(_0xb56d6e)return _0xb56d6e;_0x41d001(_0x40a421(0x168),{'defaultModelId':this[_0x40a421(0x178)],'fallBackModelId':_0x1b13e4[0x0]['id']});}return _0x1b13e4[0x0];}async[_0x34ec23(0x18b)](_0x71d9ec){const _0x11f4ce=_0x34ec23;return(await this[_0x11f4ce(0x191)]())[_0x11f4ce(0x184)](_0x303fac=>_0x303fac[_0x11f4ce(0x17b)]===_0x71d9ec[_0x11f4ce(0x17b)]&&_0x303fac[_0x11f4ce(0x172)]===_0x71d9ec[_0x11f4ce(0x172)]);}async[_0x34ec23(0x17e)](){const _0x120d80=_0x34ec23;if(!this[_0x120d80(0x183)][_0x120d80(0x17d)])try{const _0x3f4c0b=this[_0x120d80(0x18e)][_0x120d80(0x16e)]||'en',_0x9f5b3e=this[_0x120d80(0x185)][_0x120d80(0x161)](_0x3f4c0b),_0x725bab=await _0x9f5b3e[_0x120d80(0x188)]();this[_0x120d80(0x183)]=_0x725bab[_0x120d80(0x162)][_0x120d80(0x160)](_0x4f2e51=>Mi(_0x4f2e51)?{..._0x4f2e51,'name':_0x1a8c54(this[_0x120d80(0x18e)],_0x120d80(0x171))}:_0x4f2e51);}catch(_0x1cc20d){throw _0x8a7e5a(_0x120d80(0x18f),{'error':_0x1cc20d}),_0x1cc20d;}return[...this[_0x120d80(0x183)]];}[_0x34ec23(0x167)](_0x53317e,_0x558721){const _0x2fa21c=_0x34ec23;let _0x191753;if(_0x558721){_0x191753=[];const _0x67f6b1=new Set(),_0x47122d=_0x2fa21c(0x18d)==typeof _0x558721?[_0x558721[_0x2fa21c(0x174)]()]:_0x558721[_0x2fa21c(0x160)](_0x6e03ef=>_0x6e03ef[_0x2fa21c(0x174)]());for(const _0x342aa8 of _0x47122d)for(const _0x290724 of _0x53317e)!_0x67f6b1[_0x2fa21c(0x187)](_0x290724['id'])&&this[_0x2fa21c(0x165)](_0x290724,_0x342aa8)&&(_0x191753[_0x2fa21c(0x166)](_0x290724),_0x67f6b1[_0x2fa21c(0x163)](_0x290724['id']));}else _0x191753=_0x53317e;return _0x191753;}[_0x34ec23(0x165)](_0x5b1a47,_0x323c44){const _0x493d15=_0x34ec23,_0x3e2cf0=_0x5b1a47['id'][_0x493d15(0x174)](),_0x3b765f=_0x5b1a47[_0x493d15(0x17b)][_0x493d15(0x174)](),_0x5d87d4=_0x5b1a47[_0x493d15(0x172)][_0x493d15(0x174)]();return _0x3e2cf0===_0x323c44||_0x3b765f===_0x323c44||Mi(_0x5b1a47)&&_0x493d15(0x15e)===_0x323c44||_0x5d87d4===_0x323c44||_0x3e2cf0[_0x493d15(0x173)](_0x323c44);}[_0x34ec23(0x186)](_0x358d1b,_0x29b922){const _0x3858be=_0x34ec23;return _0x358d1b[_0x3858be(0x164)](_0x1eef51=>Mi(_0x1eef51)&&_0x3858be(0x15e)===_0x29b922?_0x1eef51:_0x1eef51['id']===_0x29b922)||null;}}function Mi(_0x6b58bd){const _0x4ce994=_0x34ec23;return _0x6b58bd['id'][_0x4ce994(0x173)](_0x4ce994(0x15f));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3f3c5e=_0x246c;function _0x3cfa(){const _0x4d6509=['isDone','parsedMergedContent','data-unstable','unshift','onContentChange','new','node','withoutDiff','sources','removedNodeIds','AI_SUGGESTION_CONTENT_PART_REMOVED','21qgdyRY','aiResponseParser','removed','replyContentUpdated','nextSibling','modified','_setCachedContentParts','583561HTZLps','convertMarkdownToHTML','destroy','172151ULiVOY','push','1166952eMjHNW','replyChangeGroupStateUpdated','1xsDCXM','pending','228hkaPRs','27BhwWUl','stopListening','includes','ai-get-editor-from-context-no-editor','newNodeIds','type','previousSibling','_getCachedContentParts','186RdTyRT','appendContent','splice','set','modifiedNodeIds','_getDifferentChangeGroups','updateChangeGroups','state','5420680DJXtrR','setChangeGroupState','span','done','233296ixECSl','getContentParts','filter','editor','withDiff','areActionsDisabled','modification','cachedSuggestionContentParts','find','merge','changeGroups','color:\x20#808080;\x20font-style:\x20italic','1068618VHmJId','parseAndNormalizeHTML','fire','map','every','parsedContent','change:content','3511210KMgGgX','cloneNode','interactionId','context','index','forEach','length','data-id','documentContextContent','indexOf','ai-reply-get-content-parts-group-not-found','content','changes','locale','aiResponseApplier'];_0x3cfa=function(){return _0x4d6509;};return _0x3cfa();}(function(_0x110d4a,_0x3cb37d){const _0x26c7dc=_0x246c,_0x147297=_0x110d4a();while(!![]){try{const _0x42077b=parseInt(_0x26c7dc(0x15c))/0x1*(-parseInt(_0x26c7dc(0x17f))/0x2)+-parseInt(_0x26c7dc(0x14e))/0x3*(parseInt(_0x26c7dc(0x173))/0x4)+parseInt(_0x26c7dc(0x134))/0x5+parseInt(_0x26c7dc(0x167))/0x6*(parseInt(_0x26c7dc(0x158))/0x7)+-parseInt(_0x26c7dc(0x15a))/0x8*(-parseInt(_0x26c7dc(0x15f))/0x9)+parseInt(_0x26c7dc(0x16f))/0xa+parseInt(_0x26c7dc(0x155))/0xb*(-parseInt(_0x26c7dc(0x15e))/0xc);if(_0x42077b===_0x3cb37d)break;else _0x147297['push'](_0x147297['shift']());}catch(_0x2a15c7){_0x147297['push'](_0x147297['shift']());}}}(_0x3cfa,0x788ba));import{CKEditorError as _0x4b9070,ObservableMixin as _0x1042f,uid as _0x3dafb0}from'ckeditor5/src/utils.js';import{Element as _0x4a26ec,findAll as _0x186b09,getAttribute as _0x483d82,getParents as _0x5e6e0d,Document as _0x55b9cd,parse as _0x53569b,Text as _0x1caeaa}from'../utils/htmlparser.js';import{AIResponseParser as _0x3b60a9}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x48ccda}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x28883a}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0xc21a9e}from'../utils/common-translations.js';function _0x246c(_0x3dfa37,_0x5de6f8){const _0x3cfab7=_0x3cfa();return _0x246c=function(_0x246cf3,_0x4ba954){_0x246cf3=_0x246cf3-0x133;let _0x4f9ba1=_0x3cfab7[_0x246cf3];return _0x4f9ba1;},_0x246c(_0x3dfa37,_0x5de6f8);}import{cloneDeep as _0x3b335f}from'es-toolkit';export class AIReply extends _0x1042f(){['id'];[_0x3f3c5e(0x136)];[_0x3f3c5e(0x164)];[_0x3f3c5e(0x14b)]=[];[_0x3f3c5e(0x184)]=new _0x55b9cd([]);[_0x3f3c5e(0x144)]=new _0x55b9cd([]);[_0x3f3c5e(0x17d)]=[];[_0x3f3c5e(0x178)]=!0x1;[_0x3f3c5e(0x13c)];[_0x3f3c5e(0x14f)];[_0x3f3c5e(0x142)];[_0x3f3c5e(0x176)];[_0x3f3c5e(0x17a)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x1b1d28,content:_0x40ff8c='',isDone:_0x490daa=!0x1,interactionId:_0x43c8de,areActionsDisabled:_0x3a5e1b,documentContextContent:_0x4dc144,editor:_0x1f8f8e,id:_0x2c56b4}){const _0x3ddc67=_0x3f3c5e;super(),this['id']=_0x2c56b4||_0x3dafb0(),this[_0x3ddc67(0x136)]=_0x43c8de,this[_0x3ddc67(0x164)]=_0x1b1d28,this[_0x3ddc67(0x178)]=!!_0x3a5e1b,this[_0x3ddc67(0x176)]=_0x1f8f8e,this[_0x3ddc67(0x14f)]=new _0x3b60a9(),this[_0x3ddc67(0x142)]=new _0x48ccda(),this[_0x3ddc67(0x13c)]=_0x53569b(_0x4dc144||''),this[_0x3ddc67(0x16a)](_0x3ddc67(0x143),_0x490daa),this['on'](_0x3ddc67(0x133),()=>{const _0x2f79be=_0x3ddc67;this[_0x2f79be(0x147)]();}),this[_0x3ddc67(0x16a)](_0x3ddc67(0x13f),_0x40ff8c);}[_0x3f3c5e(0x168)](_0x45943b){const _0x5c6c62=_0x3f3c5e;this[_0x5c6c62(0x16a)](_0x5c6c62(0x13f),this[_0x5c6c62(0x13f)]+_0x45943b);}[_0x3f3c5e(0x172)](){const _0x3e8cf6=_0x3f3c5e;this[_0x3e8cf6(0x143)]||(this[_0x3e8cf6(0x16a)](_0x3e8cf6(0x143),!0x0),this[_0x3e8cf6(0x147)]());}[_0x3f3c5e(0x157)](){const _0x4d6d19=_0x3f3c5e;this[_0x4d6d19(0x160)]();}[_0x3f3c5e(0x170)](_0x2420fa,_0x247869){const _0x31bd53=_0x3f3c5e;this[_0x31bd53(0x17d)][_0x2420fa][_0x31bd53(0x16e)]=_0x247869,this[_0x31bd53(0x181)](_0x31bd53(0x15b),{'reply':this,'index':_0x2420fa,'state':_0x247869});}[_0x3f3c5e(0x174)]({showDiff:_0x4810d2,groupIndex:_0x1cf941}){const _0x33b15a=_0x3f3c5e;if(!this[_0x33b15a(0x176)])throw new _0x4b9070(_0x33b15a(0x162),null,{'aiReply':this});const _0x412f0e=this[_0x33b15a(0x166)](_0x4810d2,_0x1cf941);if(_0x412f0e)return _0x412f0e;let _0x2b2659=[];if(void 0x0===_0x1cf941)_0x2b2659=this[_0x33b15a(0x17d)];else{const _0x5763c2=this[_0x33b15a(0x17d)][_0x33b15a(0x17b)](({index:_0x45df68})=>_0x45df68===_0x1cf941);if(!_0x5763c2)throw new _0x4b9070(_0x33b15a(0x13e),null,{'aiReply':this,'groupIndex':_0x1cf941});_0x2b2659=[_0x5763c2];}const _0x458b78=_0x28883a({'editor':this[_0x33b15a(0x176)],'showDiff':_0x4810d2,'changeGroups':_0x2b2659,'documentContextContent':this[_0x33b15a(0x13c)]});return this[_0x33b15a(0x154)](_0x4810d2,_0x458b78),_0x458b78;}[_0x3f3c5e(0x166)](_0x7fe51c,_0x46e518){const _0x3df08d=_0x3f3c5e,_0x28b65=_0x7fe51c?_0x3df08d(0x177):_0x3df08d(0x14a);if(!this[_0x3df08d(0x17a)][_0x28b65][_0x3df08d(0x13a)])return null;const _0x28e6fa=this[_0x3df08d(0x17a)][_0x28b65];if(void 0x0===_0x46e518)return _0x28e6fa[_0x3df08d(0x13a)]>0x0&&_0x28e6fa[_0x3df08d(0x13a)]!==this[_0x3df08d(0x17d)][_0x3df08d(0x13a)]?(this[_0x3df08d(0x154)](_0x7fe51c,null),null):_0x3b335f(_0x28e6fa);{const _0x2dae3f=_0x28e6fa[_0x3df08d(0x17b)](({index:_0x1dc2cc})=>_0x1dc2cc===_0x46e518);if(_0x2dae3f)return[_0x3b335f(_0x2dae3f)];}return null;}[_0x3f3c5e(0x154)](_0x2e1b7d,_0x4de874){const _0x26cd5d=_0x3f3c5e,_0x5da61d=_0x2e1b7d?_0x26cd5d(0x177):_0x26cd5d(0x14a);_0x4de874?_0x4de874[_0x26cd5d(0x139)](_0xfe1e9d=>{const _0x19a953=_0x26cd5d,_0xfac68d=this[_0x19a953(0x17a)][_0x5da61d],_0x333b3e=_0xfac68d[_0x19a953(0x17b)](({index:_0x139aa6})=>_0x139aa6===_0xfe1e9d[_0x19a953(0x138)]);if(_0x333b3e){const _0x2feca0=_0xfac68d[_0x19a953(0x13d)](_0x333b3e);_0xfac68d[_0x19a953(0x169)](_0x2feca0,0x1,_0xfe1e9d);}else _0xfac68d[_0x19a953(0x159)](_0xfe1e9d);}):this[_0x26cd5d(0x17a)][_0x5da61d][_0x26cd5d(0x13a)]=0x0;}[_0x3f3c5e(0x147)](){const _0x160c85=_0x3f3c5e;if(_0x160c85(0x179)===this[_0x160c85(0x164)]){this[_0x160c85(0x184)]=this[_0x160c85(0x14f)][_0x160c85(0x180)](this[_0x160c85(0x13f)]);const _0x3e4b2d=this[_0x160c85(0x17d)];this[_0x160c85(0x16d)]();const _0x2c6630=this[_0x160c85(0x16c)](_0x3e4b2d,this[_0x160c85(0x17d)]);(_0x2c6630[_0x160c85(0x13a)]||this[_0x160c85(0x143)])&&(this[_0x160c85(0x181)](_0x160c85(0x151),this,_0x2c6630),this[_0x160c85(0x17a)][_0x160c85(0x177)][_0x160c85(0x13a)]=this[_0x160c85(0x17a)][_0x160c85(0x14a)][_0x160c85(0x13a)]=0x0);}else this[_0x160c85(0x184)]=this[_0x160c85(0x14f)][_0x160c85(0x156)](this[_0x160c85(0x13f)]),this[_0x160c85(0x181)](_0x160c85(0x151),this);}[_0x3f3c5e(0x16c)](_0x4db447,_0x353a7b){const _0x453998=_0x3f3c5e,_0x273b96=[];for(const _0x227401 of _0x353a7b){const _0x46f63d=_0x4db447[_0x227401[_0x453998(0x138)]];_0x46f63d?_0x46f63d[_0x453998(0x140)][_0x453998(0x13a)]!==_0x227401[_0x453998(0x140)][_0x453998(0x13a)]?_0x273b96[_0x453998(0x159)](_0x227401):_0x46f63d[_0x453998(0x140)][_0x453998(0x139)]((_0x7b5275,_0x4b1cbb)=>{const _0x40de04=_0x453998,_0x39144f=_0x227401[_0x40de04(0x140)][_0x4b1cbb];_0x7b5275['id']!==_0x39144f['id']&&_0x273b96[_0x40de04(0x159)](_0x227401);}):_0x273b96[_0x453998(0x159)](_0x227401);}return _0x273b96;}[_0x3f3c5e(0x16d)](){const _0x3dec09=_0x3f3c5e,_0x1b053e=new _0x4a26ec('p',{},[new _0x4a26ec(_0x3dec09(0x171),{'style':_0x3dec09(0x17e)},[new _0x1caeaa(_0xc21a9e(this[_0x3dec09(0x176)][_0x3dec09(0x141)],_0x3dec09(0x14d)))])]),_0x210aff=this[_0x3dec09(0x142)][_0x3dec09(0x17c)](this[_0x3dec09(0x184)],this[_0x3dec09(0x13c)][_0x3dec09(0x135)](!0x0),{'markUnstableElements':!this[_0x3dec09(0x143)],'replaceRemovedWith':_0x1b053e,'cutAfterLastChange':!this[_0x3dec09(0x143)]});if(!_0x210aff[_0x3dec09(0x16b)][_0x3dec09(0x13a)]&&!this[_0x3dec09(0x143)])return;this[_0x3dec09(0x144)]=_0x210aff[_0x3dec09(0x184)];let _0x1684e2=[];if(_0x186b09(_0x4136fe=>{const _0x3a024f=_0x3dec09,_0x48e098=_0x483d82(_0x4136fe,_0x3a024f(0x13b));if(!_0x48e098||!_0xc1c46(_0x48e098))return!0x1;const _0x4b67db=[_0x4136fe,..._0x5e6e0d(_0x4136fe)]['at'](-0x2);if(_0x4136fe!=_0x4b67db){const _0x412c39=_0x483d82(_0x4b67db,_0x3a024f(0x13b));_0xc1c46(_0x412c39)||(_0x1684e2[_0x3a024f(0x159)]({'node':_0x4b67db,'id':_0x412c39,'type':_0x3a024f(0x153)}),_0x210aff[_0x3a024f(0x16b)][_0x3a024f(0x159)](_0x412c39));}else _0x210aff[_0x3a024f(0x16b)][_0x3a024f(0x161)](_0x48e098)?_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x153),'id':_0x48e098}):_0x210aff[_0x3a024f(0x163)][_0x3a024f(0x161)](_0x48e098)?_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x148),'id':_0x48e098,'anchorId':_0x483d82(_0x4136fe[_0x3a024f(0x165)],_0x3a024f(0x13b))}):_0x1684e2[_0x3a024f(0x159)]({'node':_0x4136fe,'type':_0x3a024f(0x150),'id':_0x48e098});return!0x0;},this[_0x3dec09(0x144)]),_0x1684e2=_0x1684e2[_0x3dec09(0x175)](({node:_0x24e7ab})=>[..._0x5e6e0d(_0x24e7ab),_0x24e7ab][_0x3dec09(0x183)](_0x37aa4d=>!_0x483d82(_0x37aa4d,_0x3dec09(0x145)))),0x0==_0x1684e2[_0x3dec09(0x13a)])return;const _0x8fe940=[[_0x1684e2[0x0]]];for(let _0x6a8059=0x1;_0x6a8059<_0x1684e2[_0x3dec09(0x13a)];_0x6a8059++){const _0x5d83fb=_0x8fe940[_0x8fe940[_0x3dec09(0x13a)]-0x1],_0x285eba=_0x5d83fb[_0x5d83fb[_0x3dec09(0x13a)]-0x1];_0x1684e2[_0x6a8059][_0x3dec09(0x149)][_0x3dec09(0x165)]==_0x285eba[_0x3dec09(0x149)]&&_0x3dec09(0x153)!=_0x1684e2[_0x6a8059][_0x3dec09(0x164)]&&_0x3dec09(0x153)!=_0x285eba[_0x3dec09(0x164)]?_0x5d83fb[_0x3dec09(0x159)](_0x1684e2[_0x6a8059]):_0x8fe940[_0x3dec09(0x159)]([_0x1684e2[_0x6a8059]]);}for(const _0xe89dac of _0x8fe940){const _0x3e079e=_0xe89dac[0x0],_0x5ad157=_0xe89dac[_0xe89dac[_0x3dec09(0x13a)]-0x1],_0x5d1947=_0x2cf2b9(_0x3e079e[_0x3dec09(0x149)][_0x3dec09(0x165)]);_0x5d1947&&_0xe89dac[_0x3dec09(0x146)](_0x5d1947);const _0x25e5e1=_0x2cf2b9(_0x5ad157[_0x3dec09(0x149)][_0x3dec09(0x152)]);_0x25e5e1&&_0xe89dac[_0x3dec09(0x159)](_0x25e5e1);}function _0xc1c46(_0x444052){const _0x24a0a4=_0x3dec09;return _0x210aff[_0x24a0a4(0x16b)][_0x24a0a4(0x161)](_0x444052)||_0x210aff[_0x24a0a4(0x163)][_0x24a0a4(0x161)](_0x444052)||_0x210aff[_0x24a0a4(0x14c)][_0x24a0a4(0x161)](_0x444052);}function _0x2cf2b9(_0x459abf){const _0x4d5bd6=_0x3dec09;if(_0x459abf&&_0x483d82(_0x459abf,_0x4d5bd6(0x13b))&&!_0x483d82(_0x459abf,_0x4d5bd6(0x145))){const _0x38e06d=_0x483d82(_0x459abf,_0x4d5bd6(0x13b));if(!_0xc1c46(_0x38e06d))return{'node':_0x459abf,'type':_0x4d5bd6(0x137),'id':_0x38e06d};}return null;}this[_0x3dec09(0x17d)]=_0x8fe940[_0x3dec09(0x182)]((_0x290f95,_0x4ee8c5)=>({'changes':_0x290f95,'state':_0x3dec09(0x15d),'index':_0x4ee8c5}));}}
23
+ const _0x4d5b1c=_0x2f9d;(function(_0x5901f2,_0x2000ae){const _0x5e4c6a=_0x2f9d,_0x455000=_0x5901f2();while(!![]){try{const _0x523246=-parseInt(_0x5e4c6a(0x1ae))/0x1*(-parseInt(_0x5e4c6a(0x190))/0x2)+-parseInt(_0x5e4c6a(0x1c9))/0x3+-parseInt(_0x5e4c6a(0x18d))/0x4*(-parseInt(_0x5e4c6a(0x1c2))/0x5)+parseInt(_0x5e4c6a(0x1ce))/0x6*(-parseInt(_0x5e4c6a(0x1bc))/0x7)+parseInt(_0x5e4c6a(0x196))/0x8*(-parseInt(_0x5e4c6a(0x1b5))/0x9)+parseInt(_0x5e4c6a(0x1c4))/0xa*(parseInt(_0x5e4c6a(0x19d))/0xb)+-parseInt(_0x5e4c6a(0x184))/0xc*(-parseInt(_0x5e4c6a(0x1bb))/0xd);if(_0x523246===_0x2000ae)break;else _0x455000['push'](_0x455000['shift']());}catch(_0xaf12e3){_0x455000['push'](_0x455000['shift']());}}}(_0x441c,0x9174f));import{CKEditorError as _0x69dba,ObservableMixin as _0x3e332e,uid as _0x41558e}from'ckeditor5/src/utils.js';import{Element as _0x32d893,findAll as _0xdecbc3,getAttribute as _0x341a39,getParents as _0x2cc929,Document as _0x56f944,parse as _0x37a537,Text as _0x19d853}from'../utils/htmlparser.js';import{AIResponseParser as _0x1aaa8f}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x45faf0}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x552929}from'../utils/getsuggestionpartsfromreply.js';function _0x441c(){const _0x3f75b2=['updateChangeGroups','withoutDiff','map','changes','modified','1518BgprCd','setChangeGroupState','newNodeIds','editor','every','AI_SUGGESTION_CONTENT_PART_REMOVED','convertMarkdownToHTML','set','change:content','context','filter','includes','_getCachedContentParts','removedNodeIds','documentContextContent','aiResponseParser','parseAndNormalizeHTML','838YXkTYF','isDone','find','previousSibling','modifiedNodeIds','withDiff','locale','9mjvEEc','indexOf','new','done','splice','destroy','525031lRfUvV','7eDjLks','push','merge','node','replyContentUpdated','appendContent','10jCIYEB','fire','79510KNarQl','ai-get-editor-from-context-no-editor','data-id','changeGroups','interactionId','2283168CNxjLD','ai-reply-get-content-parts-group-not-found','aiResponseApplier','_setCachedContentParts','cloneNode','2873634kGwHgK','forEach','modification','removed','sources','content','length','areActionsDisabled','parsedMergedContent','276QHatoO','state','getContentParts','type','parsedContent','onContentChange','index','unshift','stopListening','1688268OFIvPV','nextSibling','color:\x20#808080;\x20font-style:\x20italic','190CIndmF','cachedSuggestionContentParts','span','replyChangeGroupStateUpdated','_getDifferentChangeGroups','data-unstable','8912776QnedeQ','pending'];_0x441c=function(){return _0x3f75b2;};return _0x441c();}function _0x2f9d(_0x568d67,_0x41c642){const _0x441cc9=_0x441c();return _0x2f9d=function(_0x2f9de4,_0x1063db){_0x2f9de4=_0x2f9de4-0x17d;let _0x4fa8dc=_0x441cc9[_0x2f9de4];return _0x4fa8dc;},_0x2f9d(_0x568d67,_0x41c642);}import{getTranslation as _0x93bbad}from'../utils/common-translations.js';import{cloneDeep as _0xdda41}from'es-toolkit';export class AIReply extends _0x3e332e(){['id'];[_0x4d5b1c(0x1c8)];[_0x4d5b1c(0x187)];[_0x4d5b1c(0x17f)]=[];[_0x4d5b1c(0x188)]=new _0x56f944([]);[_0x4d5b1c(0x183)]=new _0x56f944([]);[_0x4d5b1c(0x1c7)]=[];[_0x4d5b1c(0x182)]=!0x1;[_0x4d5b1c(0x1ab)];[_0x4d5b1c(0x1ac)];[_0x4d5b1c(0x1cb)];[_0x4d5b1c(0x1a0)];[_0x4d5b1c(0x191)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x2015e4,content:_0x1b4ce9='',isDone:_0x3d8e8f=!0x1,interactionId:_0x1bb853,areActionsDisabled:_0x3459c6,documentContextContent:_0x533453,editor:_0x5e9f07,id:_0x4d7b15}){const _0x30e3ca=_0x4d5b1c;super(),this['id']=_0x4d7b15||_0x41558e(),this[_0x30e3ca(0x1c8)]=_0x1bb853,this[_0x30e3ca(0x187)]=_0x2015e4,this[_0x30e3ca(0x182)]=!!_0x3459c6,this[_0x30e3ca(0x1a0)]=_0x5e9f07,this[_0x30e3ca(0x1ac)]=new _0x1aaa8f(),this[_0x30e3ca(0x1cb)]=new _0x45faf0(),this[_0x30e3ca(0x1ab)]=_0x37a537(_0x533453||''),this[_0x30e3ca(0x1a4)](_0x30e3ca(0x1af),_0x3d8e8f),this['on'](_0x30e3ca(0x1a5),()=>{const _0x1d2b44=_0x30e3ca;this[_0x1d2b44(0x189)]();}),this[_0x30e3ca(0x1a4)](_0x30e3ca(0x180),_0x1b4ce9);}[_0x4d5b1c(0x1c1)](_0x1b0245){const _0x4d9e43=_0x4d5b1c;this[_0x4d9e43(0x1a4)](_0x4d9e43(0x180),this[_0x4d9e43(0x180)]+_0x1b0245);}[_0x4d5b1c(0x1b8)](){const _0x15e493=_0x4d5b1c;this[_0x15e493(0x1af)]||(this[_0x15e493(0x1a4)](_0x15e493(0x1af),!0x0),this[_0x15e493(0x189)]());}[_0x4d5b1c(0x1ba)](){const _0x4fc714=_0x4d5b1c;this[_0x4fc714(0x18c)]();}[_0x4d5b1c(0x19e)](_0xbf97b0,_0x2373f8){const _0xd337b4=_0x4d5b1c;this[_0xd337b4(0x1c7)][_0xbf97b0][_0xd337b4(0x185)]=_0x2373f8,this[_0xd337b4(0x1c3)](_0xd337b4(0x193),{'reply':this,'index':_0xbf97b0,'state':_0x2373f8});}[_0x4d5b1c(0x186)]({showDiff:_0x58f9c0,groupIndex:_0x5c8c45}){const _0x4636fd=_0x4d5b1c;if(!this[_0x4636fd(0x1a0)])throw new _0x69dba(_0x4636fd(0x1c5),null,{'aiReply':this});const _0x52e3e3=this[_0x4636fd(0x1a9)](_0x58f9c0,_0x5c8c45);if(_0x52e3e3)return _0x52e3e3;let _0x165322=[];if(void 0x0===_0x5c8c45)_0x165322=this[_0x4636fd(0x1c7)];else{const _0x40d3cc=this[_0x4636fd(0x1c7)][_0x4636fd(0x1b0)](({index:_0x2e033e})=>_0x2e033e===_0x5c8c45);if(!_0x40d3cc)throw new _0x69dba(_0x4636fd(0x1ca),null,{'aiReply':this,'groupIndex':_0x5c8c45});_0x165322=[_0x40d3cc];}const _0x1ac291=_0x552929({'editor':this[_0x4636fd(0x1a0)],'showDiff':_0x58f9c0,'changeGroups':_0x165322,'documentContextContent':this[_0x4636fd(0x1ab)]});return this[_0x4636fd(0x1cc)](_0x58f9c0,_0x1ac291),_0x1ac291;}[_0x4d5b1c(0x1a9)](_0x3bb2a8,_0x3a44ce){const _0x5ef897=_0x4d5b1c,_0x3b5663=_0x3bb2a8?_0x5ef897(0x1b3):_0x5ef897(0x199);if(!this[_0x5ef897(0x191)][_0x3b5663][_0x5ef897(0x181)])return null;const _0x2d942e=this[_0x5ef897(0x191)][_0x3b5663];if(void 0x0===_0x3a44ce)return _0x2d942e[_0x5ef897(0x181)]>0x0&&_0x2d942e[_0x5ef897(0x181)]!==this[_0x5ef897(0x1c7)][_0x5ef897(0x181)]?(this[_0x5ef897(0x1cc)](_0x3bb2a8,null),null):_0xdda41(_0x2d942e);{const _0x385cf2=_0x2d942e[_0x5ef897(0x1b0)](({index:_0x47024c})=>_0x47024c===_0x3a44ce);if(_0x385cf2)return[_0xdda41(_0x385cf2)];}return null;}[_0x4d5b1c(0x1cc)](_0x31488d,_0x5139b1){const _0x1d9641=_0x4d5b1c,_0x2fe619=_0x31488d?_0x1d9641(0x1b3):_0x1d9641(0x199);_0x5139b1?_0x5139b1[_0x1d9641(0x1cf)](_0xdb09e6=>{const _0x4ad6df=_0x1d9641,_0xd950d1=this[_0x4ad6df(0x191)][_0x2fe619],_0x20bfbb=_0xd950d1[_0x4ad6df(0x1b0)](({index:_0x4bb910})=>_0x4bb910===_0xdb09e6[_0x4ad6df(0x18a)]);if(_0x20bfbb){const _0x1e4cec=_0xd950d1[_0x4ad6df(0x1b6)](_0x20bfbb);_0xd950d1[_0x4ad6df(0x1b9)](_0x1e4cec,0x1,_0xdb09e6);}else _0xd950d1[_0x4ad6df(0x1bd)](_0xdb09e6);}):this[_0x1d9641(0x191)][_0x2fe619][_0x1d9641(0x181)]=0x0;}[_0x4d5b1c(0x189)](){const _0x416022=_0x4d5b1c;if(_0x416022(0x17d)===this[_0x416022(0x187)]){this[_0x416022(0x188)]=this[_0x416022(0x1ac)][_0x416022(0x1ad)](this[_0x416022(0x180)]);const _0x557707=this[_0x416022(0x1c7)];this[_0x416022(0x198)]();const _0x2f26a4=this[_0x416022(0x194)](_0x557707,this[_0x416022(0x1c7)]);(_0x2f26a4[_0x416022(0x181)]||this[_0x416022(0x1af)])&&(this[_0x416022(0x1c3)](_0x416022(0x1c0),this,_0x2f26a4),this[_0x416022(0x191)][_0x416022(0x1b3)][_0x416022(0x181)]=this[_0x416022(0x191)][_0x416022(0x199)][_0x416022(0x181)]=0x0);}else this[_0x416022(0x188)]=this[_0x416022(0x1ac)][_0x416022(0x1a3)](this[_0x416022(0x180)]),this[_0x416022(0x1c3)](_0x416022(0x1c0),this);}[_0x4d5b1c(0x194)](_0x32eaed,_0x275ca8){const _0xbc8508=_0x4d5b1c,_0x567efc=[];for(const _0x3ea424 of _0x275ca8){const _0x327c80=_0x32eaed[_0x3ea424[_0xbc8508(0x18a)]];_0x327c80?_0x327c80[_0xbc8508(0x19b)][_0xbc8508(0x181)]!==_0x3ea424[_0xbc8508(0x19b)][_0xbc8508(0x181)]?_0x567efc[_0xbc8508(0x1bd)](_0x3ea424):_0x327c80[_0xbc8508(0x19b)][_0xbc8508(0x1cf)]((_0x44d310,_0x1444cd)=>{const _0x21ecc6=_0xbc8508,_0x34470a=_0x3ea424[_0x21ecc6(0x19b)][_0x1444cd];_0x44d310['id']!==_0x34470a['id']&&_0x567efc[_0x21ecc6(0x1bd)](_0x3ea424);}):_0x567efc[_0xbc8508(0x1bd)](_0x3ea424);}return _0x567efc;}[_0x4d5b1c(0x198)](){const _0x41ad3f=_0x4d5b1c,_0x4aee95=new _0x32d893('p',{},[new _0x32d893(_0x41ad3f(0x192),{'style':_0x41ad3f(0x18f)},[new _0x19d853(_0x93bbad(this[_0x41ad3f(0x1a0)][_0x41ad3f(0x1b4)],_0x41ad3f(0x1a2)))])]),_0x49cdac=this[_0x41ad3f(0x1cb)][_0x41ad3f(0x1be)](this[_0x41ad3f(0x188)],this[_0x41ad3f(0x1ab)][_0x41ad3f(0x1cd)](!0x0),{'markUnstableElements':!this[_0x41ad3f(0x1af)],'replaceRemovedWith':_0x4aee95,'cutAfterLastChange':!this[_0x41ad3f(0x1af)]});if(!_0x49cdac[_0x41ad3f(0x1b2)][_0x41ad3f(0x181)]&&!this[_0x41ad3f(0x1af)])return;this[_0x41ad3f(0x183)]=_0x49cdac[_0x41ad3f(0x188)];let _0x496bad=[];if(_0xdecbc3(_0x3651ea=>{const _0x2f4ebb=_0x41ad3f,_0x2a4d01=_0x341a39(_0x3651ea,_0x2f4ebb(0x1c6));if(!_0x2a4d01||!_0x349663(_0x2a4d01))return!0x1;const _0x29e34b=[_0x3651ea,..._0x2cc929(_0x3651ea)]['at'](-0x2);if(_0x3651ea!=_0x29e34b){const _0x338213=_0x341a39(_0x29e34b,_0x2f4ebb(0x1c6));_0x349663(_0x338213)||(_0x496bad[_0x2f4ebb(0x1bd)]({'node':_0x29e34b,'id':_0x338213,'type':_0x2f4ebb(0x19c)}),_0x49cdac[_0x2f4ebb(0x1b2)][_0x2f4ebb(0x1bd)](_0x338213));}else _0x49cdac[_0x2f4ebb(0x1b2)][_0x2f4ebb(0x1a8)](_0x2a4d01)?_0x496bad[_0x2f4ebb(0x1bd)]({'node':_0x3651ea,'type':_0x2f4ebb(0x19c),'id':_0x2a4d01}):_0x49cdac[_0x2f4ebb(0x19f)][_0x2f4ebb(0x1a8)](_0x2a4d01)?_0x496bad[_0x2f4ebb(0x1bd)]({'node':_0x3651ea,'type':_0x2f4ebb(0x1b7),'id':_0x2a4d01,'anchorId':_0x341a39(_0x3651ea[_0x2f4ebb(0x1b1)],_0x2f4ebb(0x1c6))}):_0x496bad[_0x2f4ebb(0x1bd)]({'node':_0x3651ea,'type':_0x2f4ebb(0x17e),'id':_0x2a4d01});return!0x0;},this[_0x41ad3f(0x183)]),_0x496bad=_0x496bad[_0x41ad3f(0x1a7)](({node:_0x43d8f4})=>[..._0x2cc929(_0x43d8f4),_0x43d8f4][_0x41ad3f(0x1a1)](_0x5456c6=>!_0x341a39(_0x5456c6,_0x41ad3f(0x195)))),0x0==_0x496bad[_0x41ad3f(0x181)])return;const _0x14f94b=[[_0x496bad[0x0]]];for(let _0x53d9e8=0x1;_0x53d9e8<_0x496bad[_0x41ad3f(0x181)];_0x53d9e8++){const _0x3c5234=_0x14f94b[_0x14f94b[_0x41ad3f(0x181)]-0x1],_0x3de1a7=_0x3c5234[_0x3c5234[_0x41ad3f(0x181)]-0x1];_0x496bad[_0x53d9e8][_0x41ad3f(0x1bf)][_0x41ad3f(0x1b1)]==_0x3de1a7[_0x41ad3f(0x1bf)]&&_0x41ad3f(0x19c)!=_0x496bad[_0x53d9e8][_0x41ad3f(0x187)]&&_0x41ad3f(0x19c)!=_0x3de1a7[_0x41ad3f(0x187)]?_0x3c5234[_0x41ad3f(0x1bd)](_0x496bad[_0x53d9e8]):_0x14f94b[_0x41ad3f(0x1bd)]([_0x496bad[_0x53d9e8]]);}for(const _0x122b17 of _0x14f94b){const _0x429bad=_0x122b17[0x0],_0x1e3da7=_0x122b17[_0x122b17[_0x41ad3f(0x181)]-0x1],_0x15cdea=_0x4d9479(_0x429bad[_0x41ad3f(0x1bf)][_0x41ad3f(0x1b1)]);_0x15cdea&&_0x122b17[_0x41ad3f(0x18b)](_0x15cdea);const _0xd8a5ba=_0x4d9479(_0x1e3da7[_0x41ad3f(0x1bf)][_0x41ad3f(0x18e)]);_0xd8a5ba&&_0x122b17[_0x41ad3f(0x1bd)](_0xd8a5ba);}function _0x349663(_0x391ee9){const _0x240473=_0x41ad3f;return _0x49cdac[_0x240473(0x1b2)][_0x240473(0x1a8)](_0x391ee9)||_0x49cdac[_0x240473(0x19f)][_0x240473(0x1a8)](_0x391ee9)||_0x49cdac[_0x240473(0x1aa)][_0x240473(0x1a8)](_0x391ee9);}function _0x4d9479(_0x24649f){const _0x15c1d1=_0x41ad3f;if(_0x24649f&&_0x341a39(_0x24649f,_0x15c1d1(0x1c6))&&!_0x341a39(_0x24649f,_0x15c1d1(0x195))){const _0x1e5b01=_0x341a39(_0x24649f,_0x15c1d1(0x1c6));if(!_0x349663(_0x1e5b01))return{'node':_0x24649f,'type':_0x15c1d1(0x1a6),'id':_0x1e5b01};}return null;}this[_0x41ad3f(0x1c7)]=_0x14f94b[_0x41ad3f(0x19a)]((_0x49ec4e,_0x8f68dc)=>({'changes':_0x49ec4e,'state':_0x41ad3f(0x197),'index':_0x8f68dc}));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4e90(){const _0x3ea4a8=['580305BGDEWI','from','indexOf','70910REtZKX','has','afterbegin','removedIds','_existingDataIds','_findReferenceNode','nodeType','_removeSpecialComments','lastTouchedId','reverse','map','newIds','_storeDeletedElementIds','lastChild','afterend','88EYatbT','_isExistingContentComment','_insertNodes','2341768bABczZ','_isDelNode','290VgINMP','length','filter','trim','replaceRemovedWith','data-wrapped-id','data-id','data-removed','forEach','beforebegin','modifiedIds','invalidIds','previousSibling','merge','push','cloneNode','true','new-element','_markUnstableElements','_generateUid','slice','_markWrappedElements','2701965NyCjjK','markUnstableElementsDepth','_isNewNode','markUnstableElements','_isExistingNode','cutAfterLastChange','_findFallbackReferenceNode','_findNextElementWithDataId','_replaceNode','nextSibling','_getUid','205590yjORYl','6TAzNJo','childNodes','_getNodeDataId','parentNode','_touchedNodesState','_markLastTagElementUnstable','match','splice','_hasWrappedParent','includes','135xFVeTO','2772RJUJxb','583212QMxiPi','_findPrevElementWithDataId','data-unstable'];_0x4e90=function(){return _0x3ea4a8;};return _0x4e90();}const _0x16daf5=_0x3ac4;(function(_0xf7c5e2,_0x37fd3f){const _0x2c1b75=_0x3ac4,_0x458320=_0xf7c5e2();while(!![]){try{const _0x1924f7=-parseInt(_0x2c1b75(0x1a4))/0x1+parseInt(_0x2c1b75(0x176))/0x2*(parseInt(_0x2c1b75(0x1a3))/0x3)+parseInt(_0x2c1b75(0x174))/0x4+-parseInt(_0x2c1b75(0x18c))/0x5*(-parseInt(_0x2c1b75(0x198))/0x6)+-parseInt(_0x2c1b75(0x162))/0x7*(parseInt(_0x2c1b75(0x171))/0x8)+parseInt(_0x2c1b75(0x1a2))/0x9*(-parseInt(_0x2c1b75(0x197))/0xa)+parseInt(_0x2c1b75(0x1a7))/0xb;if(_0x1924f7===_0x37fd3f)break;else _0x458320['push'](_0x458320['shift']());}catch(_0x453571){_0x458320['push'](_0x458320['shift']());}}}(_0x4e90,0x4b927));function _0x3ac4(_0x1f68be,_0x5380c8){const _0x4e9064=_0x4e90();return _0x3ac4=function(_0x3ac411,_0xaba6ac){_0x3ac411=_0x3ac411-0x162;let _0x8bbb5d=_0x4e9064[_0x3ac411];return _0x8bbb5d;},_0x3ac4(_0x1f68be,_0x5380c8);}import{ObservableMixin as _0x271b49,uid as _0x5ba894}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x468233,findByAttribute as _0x2fc38a,getAttribute as _0x566cf2,isComment as _0x45031a,isTag as _0x9f611,insertElement as _0x4b8d1e,moveElement as _0x1753bb,removeElement as _0x22bddd,replaceElement as _0x1e64bd,serialize as _0x100daa,setAttribute as _0x56d77e,clone as _0x272f6e,findAllComments as _0x4fede5,getParents as _0x36ec9f,getNodeNestingLevel as _0x4fdf7d,areNodesSame as _0x462f9d,removeElementsAfter as _0x2902ae}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x271b49(){[_0x16daf5(0x189)];[_0x16daf5(0x19c)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x16daf5(0x166)]=new Set();constructor(_0x26dba6){const _0x43ae56=_0x16daf5;super(),this[_0x43ae56(0x189)]=_0x26dba6||_0x5ba894;}[_0x16daf5(0x183)](_0x1fbdc9,_0xe80f5f,_0xbb8f55){const _0x226510=_0x16daf5,_0xeea8ef=_0x272f6e(_0x1fbdc9);if(0x0===_0xe80f5f[_0x226510(0x199)][_0x226510(0x177)]){const _0x5468b8=[];return _0x468233(_0x226510(0x17c),_0x226510(0x187),_0xeea8ef)[_0x226510(0x17e)](_0x31cdc9=>{const _0x1acb5f=_0x226510,_0x407c6e=this[_0x1acb5f(0x189)]();_0x56d77e(_0x31cdc9,_0x1acb5f(0x17c),_0x407c6e),_0x5468b8[_0x1acb5f(0x184)](_0x407c6e);}),this[_0x226510(0x169)](_0xeea8ef),{'parsedContent':_0xeea8ef,'newNodeIds':_0x5468b8,'modifiedNodeIds':[],'removedNodeIds':[]};}_0xbb8f55&&_0xbb8f55[_0x226510(0x18f)]&&this[_0x226510(0x19d)](_0xeea8ef),this[_0x226510(0x19c)][_0x226510(0x16d)]=[],this[_0x226510(0x19c)][_0x226510(0x180)]=[],this[_0x226510(0x19c)][_0x226510(0x165)]=[],this[_0x226510(0x19c)][_0x226510(0x181)]=[],this[_0x226510(0x19c)][_0x226510(0x16a)]=null,this[_0x226510(0x166)]=new Set(_0x468233(_0x226510(0x17c),null,_0xe80f5f)[_0x226510(0x16c)](_0x5c047f=>_0x566cf2(_0x5c047f,_0x226510(0x17c)))[_0x226510(0x178)](_0x1559a9=>!!_0x1559a9));let _0x2193b8=-0x1,_0x2ec707=!0x1;const _0x398733=_0xeea8ef[_0x226510(0x199)],_0x3a6289=Array[_0x226510(0x1a8)](_0x398733)[_0x226510(0x178)](_0x2a918c=>!(0x3===_0x2a918c[_0x226510(0x168)]&&''===_0x100daa(_0x2a918c)[_0x226510(0x179)]())),_0x4e2f79=_0x3a6289[_0x226510(0x177)];for(let _0x100a38=0x0;_0x100a38<_0x4e2f79;_0x100a38++){const _0x45d0a3=_0x3a6289[_0x100a38],_0x5ae024=_0x3a6289[_0x100a38+0x1];if(this[_0x226510(0x18e)](_0x45d0a3)){if(-0x1===_0x2193b8&&(_0x2193b8=_0x100a38),this[_0x226510(0x18b)](_0x45d0a3),!this[_0x226510(0x18e)](_0x5ae024)){const [_0xe764f4,_0x2a9caa]=this[_0x226510(0x167)](_0x45d0a3,_0x2ec707,_0xe80f5f);if(_0xe764f4){const _0x2d38ed=Array[_0x226510(0x1a8)](_0x3a6289)[_0x226510(0x18a)](_0x2193b8,_0x100a38+0x1);this[_0x226510(0x173)](_0xe764f4,_0x2d38ed,_0x2a9caa),_0x2193b8=-0x1;}}}else{if(this[_0x226510(0x172)](_0x45d0a3))_0x2ec707=!0x0;else{if(this[_0x226510(0x190)](_0x45d0a3)){const _0x41cfcf=_0x566cf2(_0x45d0a3,_0x226510(0x17c));if(_0x41cfcf&&this[_0x226510(0x166)][_0x226510(0x163)](_0x41cfcf)){const _0x36398d=_0x2fc38a(_0x226510(0x17c),_0x41cfcf,_0xe80f5f);this[_0x226510(0x194)](_0x36398d,_0x45d0a3);}if(this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x1a1)](_0x41cfcf)){const _0x2e2eec=this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x1a9)](_0x41cfcf);this[_0x226510(0x19c)][_0x226510(0x165)][_0x226510(0x19f)](_0x2e2eec,0x1);}}else{if(this[_0x226510(0x175)](_0x45d0a3)){const _0x22cac1=_0x566cf2(_0x45d0a3,_0x226510(0x17c));this[_0x226510(0x19c)][_0x226510(0x180)][_0x226510(0x1a1)](_0x22cac1)||this[_0x226510(0x16e)](_0x45d0a3);}}}}}for(const _0x2127fd of this[_0x226510(0x19c)][_0x226510(0x165)]){const _0x51728c=_0x2fc38a(_0x226510(0x17c),_0x2127fd,_0xe80f5f);if(_0x51728c){if(_0xbb8f55&&_0xbb8f55[_0x226510(0x17a)]){this[_0x226510(0x19c)][_0x226510(0x16a)]=_0x2127fd;const _0xf1182b=_0xbb8f55[_0x226510(0x17a)][_0x226510(0x185)](!0x0);_0x56d77e(_0xf1182b,_0x226510(0x17c),_0x2127fd),_0x56d77e(_0xf1182b,_0x226510(0x17d),_0x226510(0x186)),_0x1e64bd(_0x51728c,_0xf1182b);}else _0x22bddd(_0x51728c);}}if(_0x468233(_0x226510(0x17b),null,_0xe80f5f)[_0x226510(0x17e)](_0x3e9969=>{const _0xb454c7=_0x226510,_0x48e3be=_0x566cf2(_0x3e9969,_0xb454c7(0x17b)),_0x29a315=_0x2fc38a(_0xb454c7(0x17c),_0x48e3be,_0xe80f5f);_0x29a315&&_0x1753bb(_0x29a315,_0x3e9969);}),_0x468233(_0x226510(0x17c),_0x226510(0x187),_0xe80f5f)[_0x226510(0x17e)](_0xd203fc=>{const _0x3c003d=_0x226510,_0x1b40ee=this[_0x3c003d(0x196)](_0xd203fc);_0x56d77e(_0xd203fc,_0x3c003d(0x17c),_0x1b40ee),this[_0x3c003d(0x19c)][_0x3c003d(0x16d)][_0x3c003d(0x184)](_0x1b40ee);}),this[_0x226510(0x169)](_0xe80f5f),_0xbb8f55&&_0xbb8f55[_0x226510(0x18f)]&&this[_0x226510(0x188)](_0xe80f5f,_0xbb8f55[_0x226510(0x18d)]||0x0),_0xbb8f55&&_0xbb8f55[_0x226510(0x191)]&&this[_0x226510(0x19c)][_0x226510(0x16a)]){let _0x9fc0b8=_0x2fc38a(_0x226510(0x17c),this[_0x226510(0x19c)][_0x226510(0x16a)],_0xe80f5f);for(;_0x9fc0b8;)_0x2902ae(_0x9fc0b8),_0x9fc0b8=_0x9fc0b8[_0x226510(0x19b)];}return{'parsedContent':_0xe80f5f,'newNodeIds':this[_0x226510(0x19c)][_0x226510(0x16d)],'modifiedNodeIds':this[_0x226510(0x19c)][_0x226510(0x180)],'removedNodeIds':this[_0x226510(0x19c)][_0x226510(0x165)]};}[_0x16daf5(0x173)](_0xfabf32,_0x346f26,_0x1023a1){const _0x36c53a=_0x16daf5;for(const _0x55a712 of _0x346f26){const _0x56d324=this[_0x36c53a(0x196)](_0x55a712);_0x56d77e(_0x55a712,_0x36c53a(0x17c),_0x56d324),this[_0x36c53a(0x19c)][_0x36c53a(0x16d)][_0x36c53a(0x184)](_0x56d324),this[_0x36c53a(0x19c)][_0x36c53a(0x16a)]=_0x56d324;}const _0x35d7ec=_0x36c53a(0x164)===_0x1023a1||_0x36c53a(0x170)===_0x1023a1?_0x346f26[_0x36c53a(0x16b)]():_0x346f26;for(const _0x2a19c6 of _0x35d7ec)_0x4b8d1e(_0xfabf32,_0x2a19c6,_0x1023a1);}[_0x16daf5(0x194)](_0x4f59c5,_0x4d1860){const _0x3e9e92=_0x16daf5;if(!_0x4f59c5)return;if(_0x462f9d(_0x4f59c5,_0x4d1860))return;const _0x43d52d=this[_0x3e9e92(0x196)](_0x4f59c5);_0x56d77e(_0x4d1860,_0x3e9e92(0x17c),_0x43d52d),this[_0x3e9e92(0x19c)][_0x3e9e92(0x180)][_0x3e9e92(0x184)](_0x43d52d),this[_0x3e9e92(0x19c)][_0x3e9e92(0x16a)]=_0x43d52d,_0x1e64bd(_0x4f59c5,_0x4d1860[_0x3e9e92(0x185)](!0x0));}[_0x16daf5(0x167)](_0x20541d,_0x34cf1f,_0x57a2df){const _0x37a233=_0x16daf5,_0x44f9f9=this[_0x37a233(0x1a5)](_0x20541d,!0x1);if(_0x44f9f9){const _0x372b1d=this[_0x37a233(0x19a)](_0x44f9f9),_0x1d658a=_0x2fc38a(_0x37a233(0x17c),_0x372b1d,_0x57a2df);if(_0x1d658a)return[_0x1d658a,_0x37a233(0x170)];this[_0x37a233(0x19c)][_0x37a233(0x181)][_0x37a233(0x184)](_0x372b1d);}const _0x38bb16=this[_0x37a233(0x193)](_0x20541d,!0x1);if(_0x38bb16){const _0x4bcefc=this[_0x37a233(0x19a)](_0x38bb16),_0x221995=_0x2fc38a(_0x37a233(0x17c),_0x4bcefc,_0x57a2df);if(_0x221995)return[_0x221995,_0x37a233(0x17f)];this[_0x37a233(0x19c)][_0x37a233(0x181)][_0x37a233(0x184)](_0x4bcefc);}return _0x34cf1f?_0x20541d[_0x37a233(0x195)]?this[_0x37a233(0x192)](_0x20541d,_0x57a2df):[_0x57a2df[_0x37a233(0x199)][_0x57a2df[_0x37a233(0x199)][_0x37a233(0x177)]-0x1],_0x37a233(0x170)]:[_0x57a2df[_0x37a233(0x199)][0x0],_0x37a233(0x17f)];}[_0x16daf5(0x192)](_0x2efec1,_0xfaa64b){const _0x5b377b=_0x16daf5,_0xdedb7b=[],_0x17b70d=this[_0x5b377b(0x1a5)](_0x2efec1,!0x0);if(_0x17b70d){const _0x4934d6=this[_0x5b377b(0x19a)](_0x17b70d),_0x212740=_0x2fc38a(_0x5b377b(0x17c),_0x4934d6,_0xfaa64b);_0x212740&&_0xdedb7b[_0x5b377b(0x184)]([_0x212740,_0x5b377b(0x170)]);}const _0x4460c7=this[_0x5b377b(0x193)](_0x2efec1,!0x0);if(_0x4460c7){const _0x5b79f6=this[_0x5b377b(0x19a)](_0x4460c7),_0x4dc418=_0x2fc38a(_0x5b377b(0x17c),_0x5b79f6,_0xfaa64b);_0x4dc418&&_0xdedb7b[_0x5b377b(0x184)]([_0x4dc418,_0x5b377b(0x17f)]);}if(_0xdedb7b[_0x5b377b(0x177)]>0x1)return _0x4fdf7d(_0xdedb7b[0x0][0x0])<=_0x4fdf7d(_0xdedb7b[0x1][0x0])?_0xdedb7b[0x0]:_0xdedb7b[0x1];return 0x1===_0xdedb7b[_0x5b377b(0x177)]?_0xdedb7b[0x0]:[_0xfaa64b[_0x5b377b(0x16f)],_0x5b377b(0x170)];}[_0x16daf5(0x193)](_0x3a1285,_0x543414){const _0x2a1c31=_0x16daf5;let _0x1e130b=_0x3a1285[_0x2a1c31(0x195)],_0x3fec03=null,_0x386242=!0x1;for(;_0x1e130b;){if(_0x45031a(_0x1e130b)){if(this[_0x2a1c31(0x175)](_0x1e130b)&&(_0x3fec03=_0x1e130b),this[_0x2a1c31(0x172)](_0x1e130b)&&_0x543414&&!_0x386242){_0x386242=!0x0,_0x1e130b=_0x1e130b[_0x2a1c31(0x195)];continue;}break;}const _0x3937ca=_0x566cf2(_0x1e130b,_0x2a1c31(0x17c));if(_0x3937ca&&_0x2a1c31(0x187)!==_0x3937ca&&this[_0x2a1c31(0x166)][_0x2a1c31(0x163)](_0x3937ca)){_0x3fec03=_0x1e130b;break;}_0x1e130b=_0x1e130b[_0x2a1c31(0x195)];}return _0x3fec03;}[_0x16daf5(0x1a5)](_0x1b01a0,_0x18de76){const _0x294fa1=_0x16daf5;let _0xb15b02=_0x1b01a0[_0x294fa1(0x182)],_0x89a5d1=null,_0x1939cb=!0x1;for(;_0xb15b02;){if(_0x45031a(_0xb15b02)){if(this[_0x294fa1(0x175)](_0xb15b02)&&(_0x89a5d1=_0xb15b02),this[_0x294fa1(0x172)](_0xb15b02)&&_0x18de76&&!_0x1939cb){_0x1939cb=!0x0,_0xb15b02=_0xb15b02[_0x294fa1(0x182)];continue;}break;}const _0x51f547=_0x566cf2(_0xb15b02,_0x294fa1(0x17c));if(_0x51f547&&_0x294fa1(0x187)!==_0x51f547&&this[_0x294fa1(0x166)][_0x294fa1(0x163)](_0x51f547)){_0x89a5d1=_0xb15b02;break;}_0xb15b02=_0xb15b02[_0x294fa1(0x182)];}return _0x89a5d1;}[_0x16daf5(0x18b)](_0x487658){const _0x37676e=_0x16daf5;_0x9f611(_0x487658)&&_0x468233(_0x37676e(0x17c),null,_0x487658)[_0x37676e(0x17e)](_0x175adb=>{const _0x3fde66=_0x37676e;if(this[_0x3fde66(0x190)](_0x175adb)&&!this[_0x3fde66(0x1a0)](_0x175adb)){const _0x12abd3=_0x566cf2(_0x175adb,_0x3fde66(0x17c));_0x56d77e(_0x175adb,_0x3fde66(0x17b),_0x12abd3),_0x56d77e(_0x175adb,_0x3fde66(0x17c),null);}});}[_0x16daf5(0x19a)](_0x59b37d){const _0x2ebdde=_0x16daf5;if(!_0x59b37d)return null;if(_0x9f611(_0x59b37d))return _0x566cf2(_0x59b37d,_0x2ebdde(0x17c));if(_0x45031a(_0x59b37d)){const _0x509875=_0x100daa(_0x59b37d)[_0x2ebdde(0x19e)](/removed[\s*-]data-id="([^"]+)"/);if(_0x509875&&_0x509875[0x1])return _0x509875[0x1];}return null;}[_0x16daf5(0x16e)](_0x96f80d){const _0x38bd12=_0x16daf5;if(_0x45031a(_0x96f80d)){const _0x204a4d=_0x100daa(_0x96f80d)[_0x38bd12(0x19e)](/removed[\s*-]data-id="([^"]+)"/);_0x204a4d&&_0x204a4d[0x1]&&this[_0x38bd12(0x19c)][_0x38bd12(0x165)][_0x38bd12(0x184)](_0x204a4d[0x1]);}}[_0x16daf5(0x196)](_0x36843d){const _0x1b07b8=_0x16daf5;return this[_0x1b07b8(0x190)](_0x36843d)?_0x566cf2(_0x36843d,_0x1b07b8(0x17c)):this[_0x1b07b8(0x189)]();}[_0x16daf5(0x169)](_0x3aaf1c){const _0x16049d=_0x16daf5;_0x4fede5(_0x3aaf1c)[_0x16049d(0x178)](_0x5a20f9=>this[_0x16049d(0x175)](_0x5a20f9)||this[_0x16049d(0x172)](_0x5a20f9))[_0x16049d(0x17e)](_0x587e29=>{_0x22bddd(_0x587e29);});}[_0x16daf5(0x19d)](_0x2142b9){const _0x446e2d=_0x16daf5,_0x3ea291=_0x2142b9[_0x446e2d(0x199)],_0x100952=_0x3ea291[_0x3ea291[_0x446e2d(0x177)]-0x1];_0x100952&&_0x9f611(_0x100952)&&_0x56d77e(_0x100952,_0x446e2d(0x1a6),_0x446e2d(0x186));}[_0x16daf5(0x188)](_0x43bd76,_0x550840){const _0x53d8ea=_0x16daf5,_0x1e94c7=_0x2fc38a(_0x53d8ea(0x1a6),_0x53d8ea(0x186),_0x43bd76);if(!_0x1e94c7)return;const _0x39d4e9=_0x36ec9f(_0x1e94c7)[_0x53d8ea(0x18a)](0x0,-0x1),_0x2ac50d=_0x39d4e9[_0x53d8ea(0x177)];let _0x130c73=_0x1e94c7;if(_0x2ac50d>_0x550840){let _0x598373=_0x2ac50d,_0x1f3c71=null;for(;_0x598373>_0x550840&&_0x598373>=0x0;)_0x598373--,_0x1f3c71=_0x39d4e9[_0x598373];_0x1f3c71&&(_0x130c73=_0x1f3c71,_0x56d77e(_0x1e94c7,_0x53d8ea(0x1a6),null),_0x56d77e(_0x1f3c71,_0x53d8ea(0x1a6),_0x53d8ea(0x186)));}else{if(_0x2ac50d<_0x550840){let _0x2a995b=_0x2ac50d,_0x2c876d=_0x1e94c7;for(;_0x2a995b<_0x550840;){const _0x5a3eac=_0x2c876d[_0x53d8ea(0x199)][_0x53d8ea(0x178)](_0x26ae79=>_0x9f611(_0x26ae79));if(0x0===_0x5a3eac[_0x53d8ea(0x177)])break;_0x2a995b++,_0x2c876d=_0x5a3eac[_0x5a3eac[_0x53d8ea(0x177)]-0x1];}_0x2c876d&&(_0x130c73=_0x2c876d,_0x56d77e(_0x1e94c7,_0x53d8ea(0x1a6),null),_0x56d77e(_0x2c876d,_0x53d8ea(0x1a6),_0x53d8ea(0x186)));}}let _0x3a0bb9=_0x130c73;for(;_0x3a0bb9;){for(;_0x3a0bb9[_0x53d8ea(0x195)];)_0x3a0bb9=_0x3a0bb9[_0x53d8ea(0x195)],_0x9f611(_0x3a0bb9)&&_0x56d77e(_0x3a0bb9,_0x53d8ea(0x1a6),_0x53d8ea(0x186));_0x3a0bb9=_0x3a0bb9[_0x53d8ea(0x19b)];}}[_0x16daf5(0x18e)](_0x42817a){const _0xd97ec2=_0x16daf5;return Boolean(_0xd97ec2(0x187)===_0x566cf2(_0x42817a,_0xd97ec2(0x17c)));}[_0x16daf5(0x190)](_0x2a570b){const _0x5c2a66=_0x16daf5;return Boolean((_0x566cf2(_0x2a570b,_0x5c2a66(0x17c))||'')[_0x5c2a66(0x177)]>0x0&&_0x5c2a66(0x187)!==_0x566cf2(_0x2a570b,_0x5c2a66(0x17c)));}[_0x16daf5(0x175)](_0x126b55){const _0x44234e=_0x16daf5;return!!_0x126b55&&Boolean(_0x45031a(_0x126b55)&&_0x100daa(_0x126b55)[_0x44234e(0x19e)](/removed[\s*-]data-id="[^"]+"/));}[_0x16daf5(0x1a0)](_0x5e6659){const _0x5cf905=_0x16daf5;let _0x364637=_0x5e6659[_0x5cf905(0x19b)];for(;_0x364637;){if(_0x566cf2(_0x364637,_0x5cf905(0x17b)))return!0x0;_0x364637=_0x364637[_0x5cf905(0x19b)];}return!0x1;}[_0x16daf5(0x172)](_0x212c81){const _0x5c536=_0x16daf5;return Boolean(_0x45031a(_0x212c81)&&_0x100daa(_0x212c81)[_0x5c536(0x19e)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ const _0x420e15=_0x1bee;(function(_0x1c4a89,_0x3164d9){const _0x479d13=_0x1bee,_0x18577c=_0x1c4a89();while(!![]){try{const _0x47fb61=-parseInt(_0x479d13(0x19a))/0x1+parseInt(_0x479d13(0x18d))/0x2*(parseInt(_0x479d13(0x1b2))/0x3)+parseInt(_0x479d13(0x1b5))/0x4+-parseInt(_0x479d13(0x1be))/0x5+parseInt(_0x479d13(0x192))/0x6+parseInt(_0x479d13(0x19c))/0x7+parseInt(_0x479d13(0x1b0))/0x8*(parseInt(_0x479d13(0x1a3))/0x9);if(_0x47fb61===_0x3164d9)break;else _0x18577c['push'](_0x18577c['shift']());}catch(_0x5e76b7){_0x18577c['push'](_0x18577c['shift']());}}}(_0x4f4d,0xa9be2));function _0x1bee(_0x326e2b,_0x34314a){const _0x4f4dfd=_0x4f4d();return _0x1bee=function(_0x1bee5e,_0x4efa2e){_0x1bee5e=_0x1bee5e-0x188;let _0x1e78bf=_0x4f4dfd[_0x1bee5e];return _0x1e78bf;},_0x1bee(_0x326e2b,_0x34314a);}import{ObservableMixin as _0x7fc3ff,uid as _0x418eeb}from'ckeditor5/src/utils.js';function _0x4f4d(){const _0x43ee1c=['lastTouchedId','_findNextElementWithDataId','afterbegin','_touchedNodesState','_replaceNode','112598VJdvNn','parentNode','_storeDeletedElementIds','newIds','forEach','2161656SCBrqk','markUnstableElementsDepth','_markUnstableElements','afterend','includes','match','_generateUid','splice','935899JzRcrN','replaceRemovedWith','824208RctElf','removedIds','merge','previousSibling','_isDelNode','_existingDataIds','_findFallbackReferenceNode','661293GOZQXa','_findReferenceNode','markUnstableElements','indexOf','_findPrevElementWithDataId','_isExistingNode','_hasWrappedParent','from','_markWrappedElements','_insertNodes','push','true','slice','24rWCnmO','lastChild','45bVyLCX','_isExistingContentComment','beforebegin','3973580qHOXoj','invalidIds','data-unstable','data-wrapped-id','data-removed','nextSibling','length','_getNodeDataId','childNodes','4525830GxNIvw','new-element','map','trim','_getUid','data-id','nodeType','_markLastTagElementUnstable','cutAfterLastChange','_isNewNode','_removeSpecialComments','cloneNode','has','reverse','filter','modifiedIds'];_0x4f4d=function(){return _0x43ee1c;};return _0x4f4d();}import{findAllByAttribute as _0x223374,findByAttribute as _0x50016e,getAttribute as _0x57e206,isComment as _0x210596,isTag as _0x8e6afe,insertElement as _0x2df6db,moveElement as _0x3f4977,removeElement as _0x1a9613,replaceElement as _0x260f97,serialize as _0x5dfc79,setAttribute as _0x16b2d5,clone as _0x1d3472,findAllComments as _0x191ff8,getParents as _0x1d32e6,getNodeNestingLevel as _0x5d6191,areNodesSame as _0x1a4ece,removeElementsAfter as _0x51fe75}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x7fc3ff(){[_0x420e15(0x198)];[_0x420e15(0x18b)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x420e15(0x1a1)]=new Set();constructor(_0x325520){const _0x4ecba1=_0x420e15;super(),this[_0x4ecba1(0x198)]=_0x325520||_0x418eeb;}[_0x420e15(0x19e)](_0xd01d91,_0x1ac0a4,_0x145f66){const _0x4cbd64=_0x420e15,_0x54d2e0=_0x1d3472(_0xd01d91);if(0x0===_0x1ac0a4[_0x4cbd64(0x1bd)][_0x4cbd64(0x1bb)]){const _0x52eb45=[];return _0x223374(_0x4cbd64(0x1c3),_0x4cbd64(0x1bf),_0x54d2e0)[_0x4cbd64(0x191)](_0x64a831=>{const _0x3505d5=_0x4cbd64,_0x253e01=this[_0x3505d5(0x198)]();_0x16b2d5(_0x64a831,_0x3505d5(0x1c3),_0x253e01),_0x52eb45[_0x3505d5(0x1ad)](_0x253e01);}),this[_0x4cbd64(0x1c8)](_0x54d2e0),{'parsedContent':_0x54d2e0,'newNodeIds':_0x52eb45,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x145f66&&_0x145f66[_0x4cbd64(0x1a5)]&&this[_0x4cbd64(0x1c5)](_0x54d2e0),this[_0x4cbd64(0x18b)][_0x4cbd64(0x190)]=[],this[_0x4cbd64(0x18b)][_0x4cbd64(0x1cd)]=[],this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)]=[],this[_0x4cbd64(0x18b)][_0x4cbd64(0x1b6)]=[],this[_0x4cbd64(0x18b)][_0x4cbd64(0x188)]=null,this[_0x4cbd64(0x1a1)]=new Set(_0x223374(_0x4cbd64(0x1c3),null,_0x1ac0a4)[_0x4cbd64(0x1c0)](_0x168b35=>_0x57e206(_0x168b35,_0x4cbd64(0x1c3)))[_0x4cbd64(0x1cc)](_0x14c88b=>!!_0x14c88b));let _0x29c0f5=-0x1,_0x469104=!0x1;const _0x360e20=_0x54d2e0[_0x4cbd64(0x1bd)],_0xe402af=Array[_0x4cbd64(0x1aa)](_0x360e20)[_0x4cbd64(0x1cc)](_0x3d19a0=>!(0x3===_0x3d19a0[_0x4cbd64(0x1c4)]&&''===_0x5dfc79(_0x3d19a0)[_0x4cbd64(0x1c1)]())),_0x1cb069=_0xe402af[_0x4cbd64(0x1bb)];for(let _0x593517=0x0;_0x593517<_0x1cb069;_0x593517++){const _0x2b4492=_0xe402af[_0x593517],_0x368f26=_0xe402af[_0x593517+0x1];if(this[_0x4cbd64(0x1c7)](_0x2b4492)){if(-0x1===_0x29c0f5&&(_0x29c0f5=_0x593517),this[_0x4cbd64(0x1ab)](_0x2b4492),!this[_0x4cbd64(0x1c7)](_0x368f26)){const [_0x54fdc4,_0x20200b]=this[_0x4cbd64(0x1a4)](_0x2b4492,_0x469104,_0x1ac0a4);if(_0x54fdc4){const _0x4bfb8e=Array[_0x4cbd64(0x1aa)](_0xe402af)[_0x4cbd64(0x1af)](_0x29c0f5,_0x593517+0x1);this[_0x4cbd64(0x1ac)](_0x54fdc4,_0x4bfb8e,_0x20200b),_0x29c0f5=-0x1;}}}else{if(this[_0x4cbd64(0x1b3)](_0x2b4492))_0x469104=!0x0;else{if(this[_0x4cbd64(0x1a8)](_0x2b4492)){const _0x5d64a3=_0x57e206(_0x2b4492,_0x4cbd64(0x1c3));if(_0x5d64a3&&this[_0x4cbd64(0x1a1)][_0x4cbd64(0x1ca)](_0x5d64a3)){const _0x4fb7ee=_0x50016e(_0x4cbd64(0x1c3),_0x5d64a3,_0x1ac0a4);this[_0x4cbd64(0x18c)](_0x4fb7ee,_0x2b4492);}if(this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)][_0x4cbd64(0x196)](_0x5d64a3)){const _0x3fb2d3=this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)][_0x4cbd64(0x1a6)](_0x5d64a3);this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)][_0x4cbd64(0x199)](_0x3fb2d3,0x1);}}else{if(this[_0x4cbd64(0x1a0)](_0x2b4492)){const _0x5367dd=_0x57e206(_0x2b4492,_0x4cbd64(0x1c3));this[_0x4cbd64(0x18b)][_0x4cbd64(0x1cd)][_0x4cbd64(0x196)](_0x5367dd)||this[_0x4cbd64(0x18f)](_0x2b4492);}}}}}for(const _0x1be8b7 of this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)]){const _0x3109fe=_0x50016e(_0x4cbd64(0x1c3),_0x1be8b7,_0x1ac0a4);if(_0x3109fe){if(_0x145f66&&_0x145f66[_0x4cbd64(0x19b)]){this[_0x4cbd64(0x18b)][_0x4cbd64(0x188)]=_0x1be8b7;const _0x57961c=_0x145f66[_0x4cbd64(0x19b)][_0x4cbd64(0x1c9)](!0x0);_0x16b2d5(_0x57961c,_0x4cbd64(0x1c3),_0x1be8b7),_0x16b2d5(_0x57961c,_0x4cbd64(0x1b9),_0x4cbd64(0x1ae)),_0x260f97(_0x3109fe,_0x57961c);}else _0x1a9613(_0x3109fe);}}if(_0x223374(_0x4cbd64(0x1b8),null,_0x1ac0a4)[_0x4cbd64(0x191)](_0x302b99=>{const _0x5b8d32=_0x4cbd64,_0x14f4e6=_0x57e206(_0x302b99,_0x5b8d32(0x1b8)),_0x1531b2=_0x50016e(_0x5b8d32(0x1c3),_0x14f4e6,_0x1ac0a4);_0x1531b2&&_0x3f4977(_0x1531b2,_0x302b99);}),_0x223374(_0x4cbd64(0x1c3),_0x4cbd64(0x1bf),_0x1ac0a4)[_0x4cbd64(0x191)](_0x419d2e=>{const _0x5c4bc3=_0x4cbd64,_0x4466d2=this[_0x5c4bc3(0x1c2)](_0x419d2e);_0x16b2d5(_0x419d2e,_0x5c4bc3(0x1c3),_0x4466d2),this[_0x5c4bc3(0x18b)][_0x5c4bc3(0x190)][_0x5c4bc3(0x1ad)](_0x4466d2);}),this[_0x4cbd64(0x1c8)](_0x1ac0a4),_0x145f66&&_0x145f66[_0x4cbd64(0x1a5)]&&this[_0x4cbd64(0x194)](_0x1ac0a4,_0x145f66[_0x4cbd64(0x193)]||0x0),_0x145f66&&_0x145f66[_0x4cbd64(0x1c6)]&&this[_0x4cbd64(0x18b)][_0x4cbd64(0x188)]){let _0x267a6b=_0x50016e(_0x4cbd64(0x1c3),this[_0x4cbd64(0x18b)][_0x4cbd64(0x188)],_0x1ac0a4);for(;_0x267a6b;)_0x51fe75(_0x267a6b),_0x267a6b=_0x267a6b[_0x4cbd64(0x18e)];}return{'parsedContent':_0x1ac0a4,'newNodeIds':this[_0x4cbd64(0x18b)][_0x4cbd64(0x190)],'modifiedNodeIds':this[_0x4cbd64(0x18b)][_0x4cbd64(0x1cd)],'removedNodeIds':this[_0x4cbd64(0x18b)][_0x4cbd64(0x19d)]};}[_0x420e15(0x1ac)](_0x263456,_0xd69eb3,_0x863f6b){const _0x515530=_0x420e15;for(const _0x184d59 of _0xd69eb3){const _0x26a081=this[_0x515530(0x1c2)](_0x184d59);_0x16b2d5(_0x184d59,_0x515530(0x1c3),_0x26a081),this[_0x515530(0x18b)][_0x515530(0x190)][_0x515530(0x1ad)](_0x26a081),this[_0x515530(0x18b)][_0x515530(0x188)]=_0x26a081;}const _0x116668=_0x515530(0x18a)===_0x863f6b||_0x515530(0x195)===_0x863f6b?_0xd69eb3[_0x515530(0x1cb)]():_0xd69eb3;for(const _0x40f6bc of _0x116668)_0x2df6db(_0x263456,_0x40f6bc,_0x863f6b);}[_0x420e15(0x18c)](_0x25c3ac,_0x38fe70){const _0x454a37=_0x420e15;if(!_0x25c3ac)return;if(_0x1a4ece(_0x25c3ac,_0x38fe70))return;const _0x1c678e=this[_0x454a37(0x1c2)](_0x25c3ac);_0x16b2d5(_0x38fe70,_0x454a37(0x1c3),_0x1c678e),this[_0x454a37(0x18b)][_0x454a37(0x1cd)][_0x454a37(0x1ad)](_0x1c678e),this[_0x454a37(0x18b)][_0x454a37(0x188)]=_0x1c678e,_0x260f97(_0x25c3ac,_0x38fe70[_0x454a37(0x1c9)](!0x0));}[_0x420e15(0x1a4)](_0x47d703,_0xcbd309,_0x576a03){const _0x233c8c=_0x420e15,_0x2f3f14=this[_0x233c8c(0x1a7)](_0x47d703,!0x1);if(_0x2f3f14){const _0x1b9244=this[_0x233c8c(0x1bc)](_0x2f3f14),_0x1d7326=_0x50016e(_0x233c8c(0x1c3),_0x1b9244,_0x576a03);if(_0x1d7326)return[_0x1d7326,_0x233c8c(0x195)];this[_0x233c8c(0x18b)][_0x233c8c(0x1b6)][_0x233c8c(0x1ad)](_0x1b9244);}const _0x1c6eb0=this[_0x233c8c(0x189)](_0x47d703,!0x1);if(_0x1c6eb0){const _0x461c12=this[_0x233c8c(0x1bc)](_0x1c6eb0),_0x5b165e=_0x50016e(_0x233c8c(0x1c3),_0x461c12,_0x576a03);if(_0x5b165e)return[_0x5b165e,_0x233c8c(0x1b4)];this[_0x233c8c(0x18b)][_0x233c8c(0x1b6)][_0x233c8c(0x1ad)](_0x461c12);}return _0xcbd309?_0x47d703[_0x233c8c(0x1ba)]?this[_0x233c8c(0x1a2)](_0x47d703,_0x576a03):[_0x576a03[_0x233c8c(0x1bd)][_0x576a03[_0x233c8c(0x1bd)][_0x233c8c(0x1bb)]-0x1],_0x233c8c(0x195)]:[_0x576a03[_0x233c8c(0x1bd)][0x0],_0x233c8c(0x1b4)];}[_0x420e15(0x1a2)](_0x4a111f,_0x2e9476){const _0x2e084e=_0x420e15,_0x543158=[],_0x4a0e3b=this[_0x2e084e(0x1a7)](_0x4a111f,!0x0);if(_0x4a0e3b){const _0x22c37c=this[_0x2e084e(0x1bc)](_0x4a0e3b),_0x22fa70=_0x50016e(_0x2e084e(0x1c3),_0x22c37c,_0x2e9476);_0x22fa70&&_0x543158[_0x2e084e(0x1ad)]([_0x22fa70,_0x2e084e(0x195)]);}const _0x3e2444=this[_0x2e084e(0x189)](_0x4a111f,!0x0);if(_0x3e2444){const _0x52710d=this[_0x2e084e(0x1bc)](_0x3e2444),_0x57e0cd=_0x50016e(_0x2e084e(0x1c3),_0x52710d,_0x2e9476);_0x57e0cd&&_0x543158[_0x2e084e(0x1ad)]([_0x57e0cd,_0x2e084e(0x1b4)]);}if(_0x543158[_0x2e084e(0x1bb)]>0x1)return _0x5d6191(_0x543158[0x0][0x0])<=_0x5d6191(_0x543158[0x1][0x0])?_0x543158[0x0]:_0x543158[0x1];return 0x1===_0x543158[_0x2e084e(0x1bb)]?_0x543158[0x0]:[_0x2e9476[_0x2e084e(0x1b1)],_0x2e084e(0x195)];}[_0x420e15(0x189)](_0x444ad8,_0x5a318b){const _0x24d596=_0x420e15;let _0x4b64ad=_0x444ad8[_0x24d596(0x1ba)],_0x3d7349=null,_0x2b76fa=!0x1;for(;_0x4b64ad;){if(_0x210596(_0x4b64ad)){if(this[_0x24d596(0x1a0)](_0x4b64ad)&&(_0x3d7349=_0x4b64ad),this[_0x24d596(0x1b3)](_0x4b64ad)&&_0x5a318b&&!_0x2b76fa){_0x2b76fa=!0x0,_0x4b64ad=_0x4b64ad[_0x24d596(0x1ba)];continue;}break;}const _0x361168=_0x57e206(_0x4b64ad,_0x24d596(0x1c3));if(_0x361168&&_0x24d596(0x1bf)!==_0x361168&&this[_0x24d596(0x1a1)][_0x24d596(0x1ca)](_0x361168)){_0x3d7349=_0x4b64ad;break;}_0x4b64ad=_0x4b64ad[_0x24d596(0x1ba)];}return _0x3d7349;}[_0x420e15(0x1a7)](_0x107214,_0x14da61){const _0xf7edea=_0x420e15;let _0x803db0=_0x107214[_0xf7edea(0x19f)],_0x3b8dd4=null,_0x2568a5=!0x1;for(;_0x803db0;){if(_0x210596(_0x803db0)){if(this[_0xf7edea(0x1a0)](_0x803db0)&&(_0x3b8dd4=_0x803db0),this[_0xf7edea(0x1b3)](_0x803db0)&&_0x14da61&&!_0x2568a5){_0x2568a5=!0x0,_0x803db0=_0x803db0[_0xf7edea(0x19f)];continue;}break;}const _0x49d32c=_0x57e206(_0x803db0,_0xf7edea(0x1c3));if(_0x49d32c&&_0xf7edea(0x1bf)!==_0x49d32c&&this[_0xf7edea(0x1a1)][_0xf7edea(0x1ca)](_0x49d32c)){_0x3b8dd4=_0x803db0;break;}_0x803db0=_0x803db0[_0xf7edea(0x19f)];}return _0x3b8dd4;}[_0x420e15(0x1ab)](_0x441886){const _0x2ff83f=_0x420e15;_0x8e6afe(_0x441886)&&_0x223374(_0x2ff83f(0x1c3),null,_0x441886)[_0x2ff83f(0x191)](_0x4b14e6=>{const _0x462603=_0x2ff83f;if(this[_0x462603(0x1a8)](_0x4b14e6)&&!this[_0x462603(0x1a9)](_0x4b14e6)){const _0x4cde9f=_0x57e206(_0x4b14e6,_0x462603(0x1c3));_0x16b2d5(_0x4b14e6,_0x462603(0x1b8),_0x4cde9f),_0x16b2d5(_0x4b14e6,_0x462603(0x1c3),null);}});}[_0x420e15(0x1bc)](_0x208da8){const _0x3fedbe=_0x420e15;if(!_0x208da8)return null;if(_0x8e6afe(_0x208da8))return _0x57e206(_0x208da8,_0x3fedbe(0x1c3));if(_0x210596(_0x208da8)){const _0x2ea232=_0x5dfc79(_0x208da8)[_0x3fedbe(0x197)](/removed[\s*-]data-id="([^"]+)"/);if(_0x2ea232&&_0x2ea232[0x1])return _0x2ea232[0x1];}return null;}[_0x420e15(0x18f)](_0x5dd1d3){const _0x5adfb9=_0x420e15;if(_0x210596(_0x5dd1d3)){const _0x1e67ea=_0x5dfc79(_0x5dd1d3)[_0x5adfb9(0x197)](/removed[\s*-]data-id="([^"]+)"/);_0x1e67ea&&_0x1e67ea[0x1]&&this[_0x5adfb9(0x18b)][_0x5adfb9(0x19d)][_0x5adfb9(0x1ad)](_0x1e67ea[0x1]);}}[_0x420e15(0x1c2)](_0x1c4802){const _0x1a27db=_0x420e15;return this[_0x1a27db(0x1a8)](_0x1c4802)?_0x57e206(_0x1c4802,_0x1a27db(0x1c3)):this[_0x1a27db(0x198)]();}[_0x420e15(0x1c8)](_0x95379a){const _0x346c33=_0x420e15;_0x191ff8(_0x95379a)[_0x346c33(0x1cc)](_0x5093ae=>this[_0x346c33(0x1a0)](_0x5093ae)||this[_0x346c33(0x1b3)](_0x5093ae))[_0x346c33(0x191)](_0x276634=>{_0x1a9613(_0x276634);});}[_0x420e15(0x1c5)](_0x2c3319){const _0x2032f5=_0x420e15,_0xa150d0=_0x2c3319[_0x2032f5(0x1bd)],_0x258c07=_0xa150d0[_0xa150d0[_0x2032f5(0x1bb)]-0x1];_0x258c07&&_0x8e6afe(_0x258c07)&&_0x16b2d5(_0x258c07,_0x2032f5(0x1b7),_0x2032f5(0x1ae));}[_0x420e15(0x194)](_0x26635e,_0x807e20){const _0x57cf6d=_0x420e15,_0x354e6c=_0x50016e(_0x57cf6d(0x1b7),_0x57cf6d(0x1ae),_0x26635e);if(!_0x354e6c)return;const _0x15313f=_0x1d32e6(_0x354e6c)[_0x57cf6d(0x1af)](0x0,-0x1),_0x43b3da=_0x15313f[_0x57cf6d(0x1bb)];let _0x248c99=_0x354e6c;if(_0x43b3da>_0x807e20){let _0x274f2a=_0x43b3da,_0x23a40d=null;for(;_0x274f2a>_0x807e20&&_0x274f2a>=0x0;)_0x274f2a--,_0x23a40d=_0x15313f[_0x274f2a];_0x23a40d&&(_0x248c99=_0x23a40d,_0x16b2d5(_0x354e6c,_0x57cf6d(0x1b7),null),_0x16b2d5(_0x23a40d,_0x57cf6d(0x1b7),_0x57cf6d(0x1ae)));}else{if(_0x43b3da<_0x807e20){let _0x250303=_0x43b3da,_0x3a8ed7=_0x354e6c;for(;_0x250303<_0x807e20;){const _0x17c601=_0x3a8ed7[_0x57cf6d(0x1bd)][_0x57cf6d(0x1cc)](_0x17d715=>_0x8e6afe(_0x17d715));if(0x0===_0x17c601[_0x57cf6d(0x1bb)])break;_0x250303++,_0x3a8ed7=_0x17c601[_0x17c601[_0x57cf6d(0x1bb)]-0x1];}_0x3a8ed7&&(_0x248c99=_0x3a8ed7,_0x16b2d5(_0x354e6c,_0x57cf6d(0x1b7),null),_0x16b2d5(_0x3a8ed7,_0x57cf6d(0x1b7),_0x57cf6d(0x1ae)));}}let _0x102d64=_0x248c99;for(;_0x102d64;){for(;_0x102d64[_0x57cf6d(0x1ba)];)_0x102d64=_0x102d64[_0x57cf6d(0x1ba)],_0x8e6afe(_0x102d64)&&_0x16b2d5(_0x102d64,_0x57cf6d(0x1b7),_0x57cf6d(0x1ae));_0x102d64=_0x102d64[_0x57cf6d(0x18e)];}}[_0x420e15(0x1c7)](_0x398905){const _0x451579=_0x420e15;return Boolean(_0x451579(0x1bf)===_0x57e206(_0x398905,_0x451579(0x1c3)));}[_0x420e15(0x1a8)](_0x28be7f){const _0x4d0777=_0x420e15;return Boolean((_0x57e206(_0x28be7f,_0x4d0777(0x1c3))||'')[_0x4d0777(0x1bb)]>0x0&&_0x4d0777(0x1bf)!==_0x57e206(_0x28be7f,_0x4d0777(0x1c3)));}[_0x420e15(0x1a0)](_0x58fbba){const _0x3ef9c2=_0x420e15;return!!_0x58fbba&&Boolean(_0x210596(_0x58fbba)&&_0x5dfc79(_0x58fbba)[_0x3ef9c2(0x197)](/removed[\s*-]data-id="[^"]+"/));}[_0x420e15(0x1a9)](_0xe8c5cd){const _0x5c0cad=_0x420e15;let _0x29d165=_0xe8c5cd[_0x5c0cad(0x18e)];for(;_0x29d165;){if(_0x57e206(_0x29d165,_0x5c0cad(0x1b8)))return!0x0;_0x29d165=_0x29d165[_0x5c0cad(0x18e)];}return!0x1;}[_0x420e15(0x1b3)](_0x2a28ca){const _0x45a87b=_0x420e15;return Boolean(_0x210596(_0x2a28ca)&&_0x5dfc79(_0x2a28ca)[_0x45a87b(0x197)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e8044=_0x1df4;(function(_0x2335d3,_0x195d19){const _0x2d6b3c=_0x1df4,_0x5be61d=_0x2335d3();while(!![]){try{const _0x4a91c5=parseInt(_0x2d6b3c(0x7d))/0x1+parseInt(_0x2d6b3c(0x71))/0x2*(parseInt(_0x2d6b3c(0x78))/0x3)+parseInt(_0x2d6b3c(0x74))/0x4+-parseInt(_0x2d6b3c(0x7e))/0x5+-parseInt(_0x2d6b3c(0x7a))/0x6+-parseInt(_0x2d6b3c(0x70))/0x7+parseInt(_0x2d6b3c(0x75))/0x8;if(_0x4a91c5===_0x195d19)break;else _0x5be61d['push'](_0x5be61d['shift']());}catch(_0x25310b){_0x5be61d['push'](_0x5be61d['shift']());}}}(_0x4fde,0x97da9));import{ObservableMixin as _0xf53dee}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x1fb8ce}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0xe27b66}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0xf53dee(){[_0x1e8044(0x76)];constructor(){const _0x36473a=_0x1e8044;super(),this[_0x36473a(0x76)]=new _0x1fb8ce();}[_0x1e8044(0x72)](_0x21c6f4){const _0xd7d2e1=_0x1e8044,_0x55cbcc=this[_0xd7d2e1(0x76)][_0xd7d2e1(0x7c)](_0x21c6f4);return this[_0xd7d2e1(0x6f)](_0x55cbcc);}[_0x1e8044(0x6f)](_0x5eff52){const _0xf29a72=_0x1e8044;return this[_0xf29a72(0x79)](_0x5eff52);}[_0x1e8044(0x79)](_0x62f004){const _0x431bcf=_0x1e8044,_0x5abab3=_0x62f004[_0x431bcf(0x77)](/^\t+/gm,'\x20')[_0x431bcf(0x77)](/\n*/g,'')[_0x431bcf(0x77)](/\s+/g,'\x20')[_0x431bcf(0x77)](/<[^>]*?$/g,''),_0x2bcfff=_0xe27b66(_0x431bcf(0x7b)+_0x5abab3+_0x431bcf(0x73));return _0x2bcfff[_0x431bcf(0x6e)]=_0x2bcfff[_0x431bcf(0x6e)][0x0][_0x431bcf(0x6e)],_0x2bcfff;}}function _0x1df4(_0x1c0752,_0x3985c5){const _0x4fdeb3=_0x4fde();return _0x1df4=function(_0x1df4bb,_0x155533){_0x1df4bb=_0x1df4bb-0x6e;let _0x5a8811=_0x4fdeb3[_0x1df4bb];return _0x5a8811;},_0x1df4(_0x1c0752,_0x3985c5);}function _0x4fde(){const _0x5175d0=['convertMarkdownToHTML','</dummy>','3215544xFccBz','12109808tnHzGC','_m2html','replace','411918GpOBwi','_parseHTML','3793512ntgOzi','<dummy>','parse','1174025JQBFPO','6133565wawbXw','children','parseAndNormalizeHTML','8035895yqsZdz','2ezFsvR'];_0x4fde=function(){return _0x5175d0;};return _0x4fde();}
23
+ const _0x30eeec=_0x26b7;(function(_0x55f49f,_0x8fb4c0){const _0x3f2ef5=_0x26b7,_0x5d6436=_0x55f49f();while(!![]){try{const _0x14cb39=-parseInt(_0x3f2ef5(0x7f))/0x1+-parseInt(_0x3f2ef5(0x71))/0x2+parseInt(_0x3f2ef5(0x78))/0x3*(parseInt(_0x3f2ef5(0x80))/0x4)+parseInt(_0x3f2ef5(0x83))/0x5+parseInt(_0x3f2ef5(0x75))/0x6+-parseInt(_0x3f2ef5(0x82))/0x7*(parseInt(_0x3f2ef5(0x76))/0x8)+parseInt(_0x3f2ef5(0x81))/0x9*(-parseInt(_0x3f2ef5(0x7d))/0xa);if(_0x14cb39===_0x8fb4c0)break;else _0x5d6436['push'](_0x5d6436['shift']());}catch(_0xba881d){_0x5d6436['push'](_0x5d6436['shift']());}}}(_0x2009,0xc996b));import{ObservableMixin as _0x5397b5}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x1a185d}from'@ckeditor/ckeditor5-markdown-gfm';function _0x26b7(_0x4017d3,_0x20b364){const _0x20096=_0x2009();return _0x26b7=function(_0x26b797,_0x2dc3cf){_0x26b797=_0x26b797-0x71;let _0x2ee512=_0x20096[_0x26b797];return _0x2ee512;},_0x26b7(_0x4017d3,_0x20b364);}import{parse as _0x4f5613}from'../utils/htmlparser.js';function _0x2009(){const _0x445f98=['957978XFsHCD','352UHuDQU','_m2html','1624251hZHchy','parseAndNormalizeHTML','convertMarkdownToHTML','parse','replace','4610AmnGcX','children','168732QsxXNk','8GebwQn','1737AruTuc','44107BsjZxk','4978805AJdpYS','1755204sUlcZR','<dummy>','</dummy>','_parseHTML'];_0x2009=function(){return _0x445f98;};return _0x2009();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x5397b5(){[_0x30eeec(0x77)];constructor(){const _0x55d3d9=_0x30eeec;super(),this[_0x55d3d9(0x77)]=new _0x1a185d();}[_0x30eeec(0x7a)](_0x4a1332){const _0x3bf290=_0x30eeec,_0x66314c=this[_0x3bf290(0x77)][_0x3bf290(0x7b)](_0x4a1332);return this[_0x3bf290(0x79)](_0x66314c);}[_0x30eeec(0x79)](_0x44262a){const _0x32e16f=_0x30eeec;return this[_0x32e16f(0x74)](_0x44262a);}[_0x30eeec(0x74)](_0x1627a4){const _0x6072c2=_0x30eeec,_0x43a51b=_0x1627a4[_0x6072c2(0x7c)](/^\t+/gm,'\x20')[_0x6072c2(0x7c)](/\n*/g,'')[_0x6072c2(0x7c)](/\s+/g,'\x20')[_0x6072c2(0x7c)](/<[^>]*?$/g,''),_0x429311=_0x4f5613(_0x6072c2(0x72)+_0x43a51b+_0x6072c2(0x73));return _0x429311[_0x6072c2(0x7e)]=_0x429311[_0x6072c2(0x7e)][0x0][_0x6072c2(0x7e)],_0x429311;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x44ca(_0x47f071,_0x4ca3d4){var _0x45d48c=_0x45d4();return _0x44ca=function(_0x44ca37,_0x37ba5a){_0x44ca37=_0x44ca37-0x173;var _0x13a51a=_0x45d48c[_0x44ca37];return _0x13a51a;},_0x44ca(_0x47f071,_0x4ca3d4);}(function(_0x4be96a,_0x142a68){var _0x52c40d=_0x44ca,_0x4a1f6e=_0x4be96a();while(!![]){try{var _0x5df8a9=-parseInt(_0x52c40d(0x175))/0x1*(parseInt(_0x52c40d(0x178))/0x2)+parseInt(_0x52c40d(0x17c))/0x3*(parseInt(_0x52c40d(0x177))/0x4)+-parseInt(_0x52c40d(0x174))/0x5+parseInt(_0x52c40d(0x17e))/0x6*(parseInt(_0x52c40d(0x181))/0x7)+-parseInt(_0x52c40d(0x173))/0x8+parseInt(_0x52c40d(0x17f))/0x9+parseInt(_0x52c40d(0x180))/0xa;if(_0x5df8a9===_0x142a68)break;else _0x4a1f6e['push'](_0x4a1f6e['shift']());}catch(_0x14439c){_0x4a1f6e['push'](_0x4a1f6e['shift']());}}}(_0x45d4,0x66a0b));import{View as _0x41f6df}from'ckeditor5/src/ui.js';import{getTranslation as _0x41eebe}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';export class AIDisclaimerView extends _0x41f6df{constructor(_0x4a6db3){var _0x31cf88=_0x44ca;super(_0x4a6db3),this[_0x31cf88(0x17b)]({'tag':_0x31cf88(0x17a),'attributes':{'class':['ck',_0x31cf88(0x179)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x31cf88(0x176)]},'children':[{'text':_0x41eebe(_0x4a6db3,_0x31cf88(0x17d))}]}]});}}function _0x45d4(){var _0x1767ac=['1767EXoRej','AI_DISCLAIMER_TEXT','5502WOBGbQ','4073661EwhsgP','2435490TodxiZ','2149UMCYHe','3668296gSSCcU','1984065wNWKDj','11hUdXvz','ck-ai-disclaimer__content','2980FHyhTc','25598JVTKXA','ck-ai-disclaimer','div','setTemplate'];_0x45d4=function(){return _0x1767ac;};return _0x45d4();}
23
+ function _0x3f99(_0xbf465f,_0x388e0d){var _0x2bf15a=_0x2bf1();return _0x3f99=function(_0x3f9904,_0x5eddcb){_0x3f9904=_0x3f9904-0x126;var _0x496106=_0x2bf15a[_0x3f9904];return _0x496106;},_0x3f99(_0xbf465f,_0x388e0d);}(function(_0x308ad4,_0x18b2b9){var _0x3de81d=_0x3f99,_0x2271b0=_0x308ad4();while(!![]){try{var _0x25a7e4=-parseInt(_0x3de81d(0x131))/0x1+parseInt(_0x3de81d(0x132))/0x2*(parseInt(_0x3de81d(0x12b))/0x3)+parseInt(_0x3de81d(0x12a))/0x4+-parseInt(_0x3de81d(0x128))/0x5*(parseInt(_0x3de81d(0x126))/0x6)+-parseInt(_0x3de81d(0x127))/0x7+parseInt(_0x3de81d(0x12e))/0x8+parseInt(_0x3de81d(0x134))/0x9*(parseInt(_0x3de81d(0x129))/0xa);if(_0x25a7e4===_0x18b2b9)break;else _0x2271b0['push'](_0x2271b0['shift']());}catch(_0x4864d5){_0x2271b0['push'](_0x2271b0['shift']());}}}(_0x2bf1,0x973fd));import{View as _0x58c63e}from'ckeditor5/src/ui.js';import{getTranslation as _0x1727a6}from'../../aicore/utils/common-translations.js';import'../../../theme/common/aidisclaimer.css';function _0x2bf1(){var _0x226bb9=['25710vxUTwy','3318520tzBRyz','3489iYEhbc','ck-ai-disclaimer__content','div','3215584OwkWCX','AI_DISCLAIMER_TEXT','ck-ai-disclaimer','906666zTtRyX','24uOgDml','setTemplate','6669kPcUlF','520008wPvvSr','7124502hFPxcL','35vujjTk'];_0x2bf1=function(){return _0x226bb9;};return _0x2bf1();}export class AIDisclaimerView extends _0x58c63e{constructor(_0x19f422){var _0x192a32=_0x3f99;super(_0x19f422),this[_0x192a32(0x133)]({'tag':_0x192a32(0x12d),'attributes':{'class':['ck',_0x192a32(0x130)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x192a32(0x12c)]},'children':[{'text':_0x1727a6(_0x19f422,_0x192a32(0x12f))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1013(){const _0x4f65c8=['attributes','align','ck-ai-skeleton__item','right','tag','setTemplate','height','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','140px','width:\x20','fill','1178520VAGKGQ','100%',';\x20height:\x20','24px','594313eAxmsH','div','13923cvBomg','_createSkeletonItems','1713387jIlQcF','left','944zKurqg','128px','72px','ck-ai-skeleton','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','center','width','map','class','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','250px','150px','1555440avcgrt','95TSlOYn','117788ZkZRDM','44px','88px','40px','2878281zcoZhO'];_0x1013=function(){return _0x4f65c8;};return _0x1013();}const _0x4beae0=_0x3efc;(function(_0x4c2088,_0x59feca){const _0x303de5=_0x3efc,_0x45f9d4=_0x4c2088();while(!![]){try{const _0x8a4185=-parseInt(_0x303de5(0x1d9))/0x1+parseInt(_0x303de5(0x1eb))/0x2+-parseInt(_0x303de5(0x1dd))/0x3+parseInt(_0x303de5(0x1ed))/0x4*(parseInt(_0x303de5(0x1ec))/0x5)+-parseInt(_0x303de5(0x1d5))/0x6+parseInt(_0x303de5(0x1f1))/0x7+parseInt(_0x303de5(0x1df))/0x8*(parseInt(_0x303de5(0x1db))/0x9);if(_0x8a4185===_0x59feca)break;else _0x45f9d4['push'](_0x45f9d4['shift']());}catch(_0x45454e){_0x45f9d4['push'](_0x45f9d4['shift']());}}}(_0x1013,0x8aef8));function _0x3efc(_0x334a51,_0x3df900){const _0x101360=_0x1013();return _0x3efc=function(_0x3efcfe,_0x2b716d){_0x3efcfe=_0x3efcfe-0x1ce;let _0x1cc1fa=_0x101360[_0x3efcfe];return _0x1cc1fa;},_0x3efc(_0x334a51,_0x3df900);}import{View as _0x246ae3}from'ckeditor5/src/ui.js';import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x246ae3{constructor(_0x50b543,_0x4e7172){const _0x3df0e5=_0x3efc;super(_0x50b543),this[_0x3df0e5(0x1cf)]({'tag':_0x3df0e5(0x1da),'attributes':{'class':['ck',_0x3df0e5(0x1e2)]},'children':this[_0x3df0e5(0x1dc)](_0x4e7172)});}[_0x4beae0(0x1dc)](_0x116681){const _0x439fdb=_0x4beae0,_0x112dc6=['ck',_0x439fdb(0x1f4)];return _0x116681[_0x439fdb(0x1e6)](_0x395919=>{const _0x4810e6=_0x439fdb;let _0x545576='';switch(_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1f3)]){case _0x4810e6(0x1f5):_0x545576=_0x4810e6(0x1e3);break;case _0x4810e6(0x1e4):_0x545576=_0x4810e6(0x1e8);break;case _0x4810e6(0x1de):_0x545576=_0x4810e6(0x1d1);}return{'tag':_0x395919[_0x4810e6(0x1ce)],'attributes':{'class':[..._0x112dc6,_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e7)]?_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e7)]:''],'style':_0x4810e6(0x1d3)+_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1e5)]+_0x4810e6(0x1d7)+_0x395919[_0x4810e6(0x1f2)][_0x4810e6(0x1d0)]+';'+_0x545576}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1e1),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e9),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1ef),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1ea),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1d2),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e9),'height':_0x4beae0(0x1f0),'align':_0x4beae0(0x1f5)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1ef),'align':_0x4beae0(0x1f5)}}],'aiHistory':ta(0x5,_0x4beae0(0x1d6),_0x4beae0(0x1ee),_0x4beae0(0x1f5)),'aiChatResources':ta(0x8,_0x4beae0(0x1d6),_0x4beae0(0x1d8),_0x4beae0(0x1f5)),'aiReviewChecks':[{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e0),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1d6),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}},{'tag':_0x4beae0(0x1da),'attributes':{'width':_0x4beae0(0x1e0),'height':_0x4beae0(0x1d8),'align':_0x4beae0(0x1de)}}]};function ta(_0x332e08,_0x245b03,_0x43224b,_0x28fb0c){const _0x3c4d3e=_0x4beae0;return new Array(_0x332e08)[_0x3c4d3e(0x1d4)](null)[_0x3c4d3e(0x1e6)](()=>({'tag':_0x3c4d3e(0x1da),'attributes':{'width':_0x245b03,'height':_0x43224b,'align':_0x28fb0c}}));}
23
+ const _0x2420f4=_0x5852;(function(_0x18d6e7,_0x234896){const _0x1286c9=_0x5852,_0x421c17=_0x18d6e7();while(!![]){try{const _0x2c6fc9=parseInt(_0x1286c9(0x151))/0x1*(-parseInt(_0x1286c9(0x139))/0x2)+parseInt(_0x1286c9(0x13c))/0x3*(-parseInt(_0x1286c9(0x137))/0x4)+-parseInt(_0x1286c9(0x13b))/0x5*(-parseInt(_0x1286c9(0x13e))/0x6)+parseInt(_0x1286c9(0x148))/0x7+parseInt(_0x1286c9(0x15d))/0x8+parseInt(_0x1286c9(0x15c))/0x9+-parseInt(_0x1286c9(0x154))/0xa*(parseInt(_0x1286c9(0x150))/0xb);if(_0x2c6fc9===_0x234896)break;else _0x421c17['push'](_0x421c17['shift']());}catch(_0x14cf3f){_0x421c17['push'](_0x421c17['shift']());}}}(_0x102c,0x679f0));import{View as _0x4ab263}from'ckeditor5/src/ui.js';function _0x102c(){const _0x48ed59=['44px','24px','128px','attributes','height','148183WsRzDZ','40px','div','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','_createSkeletonItems','ck-ai-skeleton__item','tag',';\x20height:\x20','250162iSlzcR','9DBuWvl','right','88px','110VDPpfA','map','100%','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','left','class','ck-ai-skeleton','center','1765026UFVJdm','5718584HAlHGp','width','250px','150px','504YhowPf','width:\x20','102062igWRHr','72px','3688855wwZqjy','12762WRMKph','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','6TNliTC','align','140px','setTemplate','fill'];_0x102c=function(){return _0x48ed59;};return _0x102c();}function _0x5852(_0x243aa9,_0x273ca0){const _0x102cd0=_0x102c();return _0x5852=function(_0x5852e4,_0x2784e6){_0x5852e4=_0x5852e4-0x135;let _0x31b76c=_0x102cd0[_0x5852e4];return _0x31b76c;},_0x5852(_0x243aa9,_0x273ca0);}import'../../../theme/common/aiskeleton.css';export class AISkeletonView extends _0x4ab263{constructor(_0x2a1814,_0x5c7941){const _0x2dd715=_0x5852;super(_0x2a1814),this[_0x2dd715(0x141)]({'tag':_0x2dd715(0x14a),'attributes':{'class':['ck',_0x2dd715(0x15a)]},'children':this[_0x2dd715(0x14c)](_0x5c7941)});}[_0x2420f4(0x14c)](_0x5cceda){const _0x14a348=_0x2420f4,_0xc407a2=['ck',_0x14a348(0x14d)];return _0x5cceda[_0x14a348(0x155)](_0x3a7b33=>{const _0x385678=_0x14a348;let _0x12a90c='';switch(_0x3a7b33[_0x385678(0x146)][_0x385678(0x13f)]){case _0x385678(0x152):_0x12a90c=_0x385678(0x14b);break;case _0x385678(0x15b):_0x12a90c=_0x385678(0x13d);break;case _0x385678(0x158):_0x12a90c=_0x385678(0x157);}return{'tag':_0x3a7b33[_0x385678(0x14e)],'attributes':{'class':[..._0xc407a2,_0x3a7b33[_0x385678(0x146)][_0x385678(0x159)]?_0x3a7b33[_0x385678(0x146)][_0x385678(0x159)]:''],'style':_0x385678(0x138)+_0x3a7b33[_0x385678(0x146)][_0x385678(0x15e)]+_0x385678(0x14f)+_0x3a7b33[_0x385678(0x146)][_0x385678(0x147)]+';'+_0x12a90c}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x156),'height':_0x2420f4(0x13a),'align':_0x2420f4(0x152)}},{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x135),'height':_0x2420f4(0x149),'align':_0x2420f4(0x152)}},{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x156),'height':_0x2420f4(0x153),'align':_0x2420f4(0x152)}},{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x136),'height':_0x2420f4(0x149),'align':_0x2420f4(0x152)}},{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x156),'height':_0x2420f4(0x140),'align':_0x2420f4(0x152)}},{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x135),'height':_0x2420f4(0x149),'align':_0x2420f4(0x152)}},{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x156),'height':_0x2420f4(0x153),'align':_0x2420f4(0x152)}}],'aiHistory':$i(0x5,_0x2420f4(0x156),_0x2420f4(0x143),_0x2420f4(0x152)),'aiChatResources':$i(0x8,_0x2420f4(0x156),_0x2420f4(0x144),_0x2420f4(0x152)),'aiReviewChecks':[{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x145),'height':_0x2420f4(0x144),'align':_0x2420f4(0x158)}},{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x156),'height':_0x2420f4(0x144),'align':_0x2420f4(0x158)}},{'tag':_0x2420f4(0x14a),'attributes':{'width':_0x2420f4(0x145),'height':_0x2420f4(0x144),'align':_0x2420f4(0x158)}}]};function $i(_0x5db973,_0x6d926,_0x4f655c,_0x2a2f94){const _0x4cef49=_0x2420f4;return new Array(_0x5db973)[_0x4cef49(0x142)](null)[_0x4cef49(0x155)](()=>({'tag':_0x4cef49(0x14a),'attributes':{'width':_0x6d926,'height':_0x4f655c,'align':_0x2a2f94}}));}