@ckeditor/ckeditor5-ai 47.2.0-alpha.4 → 47.2.0-alpha.6

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 (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1716a0=_0x3a55;function _0x3a55(_0xcd5ce7,_0x4c1bce){const _0x426857=_0x4268();return _0x3a55=function(_0x3a55a9,_0xd6864e){_0x3a55a9=_0x3a55a9-0x19c;let _0x37752e=_0x426857[_0x3a55a9];return _0x37752e;},_0x3a55(_0xcd5ce7,_0x4c1bce);}(function(_0x530d20,_0x26c426){const _0x2cef9d=_0x3a55,_0x4f2014=_0x530d20();while(!![]){try{const _0x1f5bd9=parseInt(_0x2cef9d(0x1bd))/0x1+-parseInt(_0x2cef9d(0x1b9))/0x2+-parseInt(_0x2cef9d(0x1c5))/0x3+parseInt(_0x2cef9d(0x1be))/0x4*(parseInt(_0x2cef9d(0x1ab))/0x5)+-parseInt(_0x2cef9d(0x1a3))/0x6*(-parseInt(_0x2cef9d(0x1ae))/0x7)+parseInt(_0x2cef9d(0x1ad))/0x8+-parseInt(_0x2cef9d(0x1c8))/0x9*(parseInt(_0x2cef9d(0x1bf))/0xa);if(_0x1f5bd9===_0x26c426)break;else _0x4f2014['push'](_0x4f2014['shift']());}catch(_0x2e4eb5){_0x4f2014['push'](_0x4f2014['shift']());}}}(_0x4268,0xb7125));import{CKEditorError as _0x2f81e7,EmitterMixin as _0x5b02e8,logWarning as _0x250108}from'ckeditor5/src/utils.js';import{getTranslation as _0x267301}from'../utils/common-translations.js';export class AIModels extends _0x5b02e8(){[_0x1716a0(0x1a7)];[_0x1716a0(0x1a2)];[_0x1716a0(0x1b0)];[_0x1716a0(0x1aa)]=[];constructor({connector:_0x1ea1f6,availableModels:_0x4dd215,defaultModelId:_0x25d794}){const _0x4bf9aa=_0x1716a0;super(),this[_0x4bf9aa(0x1a7)]=_0x1ea1f6,this[_0x4bf9aa(0x1a2)]=_0x4dd215,this[_0x4bf9aa(0x1b0)]=_0x25d794;}async[_0x1716a0(0x1c0)](){const _0x51f7c1=_0x1716a0;if(!this[_0x51f7c1(0x1aa)][_0x51f7c1(0x1b5)])try{const _0x3f94f6=this[_0x51f7c1(0x1a7)][_0x51f7c1(0x1a1)](),_0x262dd2=await _0x3f94f6[_0x51f7c1(0x1a6)]();this[_0x51f7c1(0x1aa)]=_0x262dd2[_0x51f7c1(0x1c4)];}catch(_0x26b2aa){throw new _0x2f81e7(_0x51f7c1(0x1b6),null,{'error':_0x26b2aa});}return[...this[_0x51f7c1(0x1aa)]];}async[_0x1716a0(0x1a9)](){const _0x2a5741=_0x1716a0,_0x529ab1=await this[_0x2a5741(0x1c0)]();return this[_0x2a5741(0x1b7)](_0x529ab1,this[_0x2a5741(0x1a2)]);}async[_0x1716a0(0x1b3)](_0x2fc7a1){const _0x5099f7=_0x1716a0,_0x2928a9=await this[_0x5099f7(0x1c0)]();if(!_0x2928a9[_0x5099f7(0x1b5)])return null;if(_0x2fc7a1){const _0x4ba269=this[_0x5099f7(0x19f)](_0x2928a9,_0x2fc7a1);if(_0x4ba269)return _0x4ba269;_0x250108(_0x5099f7(0x1a0),{'modelId':_0x2fc7a1,'fallBackModelId':this[_0x5099f7(0x1b0)]});}return this[_0x5099f7(0x19d)]();}async[_0x1716a0(0x19d)](){const _0x4c8d9=_0x1716a0,_0x355862=await this[_0x4c8d9(0x1a9)]();if(!_0x355862[_0x4c8d9(0x1b5)])return null;if(this[_0x4c8d9(0x1b0)]){const _0x1fae16=this[_0x4c8d9(0x19f)](_0x355862,this[_0x4c8d9(0x1b0)]);if(_0x1fae16)return _0x1fae16;_0x250108(_0x4c8d9(0x1af),{'defaultModelId':this[_0x4c8d9(0x1b0)],'fallBackModelId':_0x355862[0x0]['id']});}return _0x355862[0x0];}async[_0x1716a0(0x1bb)](_0x5c74e4){const _0x32ade1=_0x1716a0;return(await this[_0x32ade1(0x1a9)]())[_0x32ade1(0x19c)](_0x1a3961=>_0x1a3961[_0x32ade1(0x1c3)]===_0x5c74e4[_0x32ade1(0x1c3)]&&_0x1a3961[_0x32ade1(0x1a4)]===_0x5c74e4[_0x32ade1(0x1a4)]);}[_0x1716a0(0x1b7)](_0x55420f,_0x6623bc){const _0x5db224=_0x1716a0;let _0x4d36e2;if(_0x6623bc){_0x4d36e2=[];const _0x3df2c1=_0x5db224(0x1c1)==typeof _0x6623bc?[_0x6623bc[_0x5db224(0x1c7)]()]:_0x6623bc[_0x5db224(0x1a5)](_0x1bd845=>_0x1bd845[_0x5db224(0x1c7)]());for(const _0x2983ba of _0x3df2c1)for(const _0x355cb0 of _0x55420f)(_0x355cb0['id'][_0x5db224(0x1c7)]()===_0x2983ba||_0x355cb0[_0x5db224(0x1c3)][_0x5db224(0x1c7)]()===_0x2983ba||Oe(_0x355cb0)&&_0x5db224(0x1ac)===_0x2983ba||_0x355cb0[_0x5db224(0x1a4)][_0x5db224(0x1c7)]()===_0x2983ba||_0x355cb0['id'][_0x5db224(0x1c7)]()[_0x5db224(0x1ba)](_0x2983ba))&&_0x4d36e2[_0x5db224(0x1a8)](_0x355cb0);}else _0x4d36e2=_0x55420f;return _0x4d36e2;}[_0x1716a0(0x19f)](_0x326dc4,_0x54a28c){const _0x40d243=_0x1716a0;return _0x326dc4[_0x40d243(0x1c6)](_0x15e947=>Oe(_0x15e947)&&_0x40d243(0x1ac)===_0x54a28c?_0x15e947:_0x15e947['id']===_0x54a28c)||null;}static[_0x1716a0(0x19e)](_0x57fcb4,_0x2d7453){const _0x2a6e5d=_0x1716a0;return _0x2d7453[_0x2a6e5d(0x1a5)](_0x5521f3=>{const _0x1b184f=_0x2a6e5d;if(Oe(_0x5521f3))_0x5521f3[_0x1b184f(0x1c3)]=_0x267301(_0x57fcb4,_0x1b184f(0x1c2)),_0x5521f3[_0x1b184f(0x1b4)]=_0x267301(_0x57fcb4,_0x1b184f(0x1b2));else _0x267301(_0x57fcb4,_0x1b184f(0x1b8)+_0x5521f3['id'][_0x1b184f(0x1b1)]())[_0x1b184f(0x1ba)](_0x1b184f(0x1b8))||(_0x5521f3[_0x1b184f(0x1b4)]=_0x267301(_0x57fcb4,_0x1b184f(0x1b8)+_0x5521f3['id'][_0x1b184f(0x1b1)]()));return _0x5521f3;});}}function Oe(_0x5b0a99){const _0x43b27e=_0x1716a0;return _0x5b0a99['id'][_0x43b27e(0x1ba)](_0x43b27e(0x1bc));}function _0x4268(){const _0x4d1383=['AI_MODEL_DESCRIPTION_','2171272ZFBeKI','startsWith','isAvailable','agent','413828krOhzV','108BgNlVO','2530YYGHac','getAll','string','AI_MODEL_NAME_AUTO','name','items','4335135WtJTHx','find','toLocaleLowerCase','3114RqynBq','some','getDefault','getLocalized','_getModelById','ai-chat-model-id-unrecognized','getModels','_availableModels','1921530gohIQd','provider','map','list','_connector','push','getAvailableModels','_modelList','212055NKaMNa','auto','11911200wpjkGf','7ywDCCe','ai-chat-default-model-id-unrecognized','_defaultModelId','toUpperCase','AI_MODEL_DESCRIPTION_AUTO','getModel','description','length','ai-models-unable-to-retrieve','_filterModels'];_0x4268=function(){return _0x4d1383;};return _0x4268();}
23
+ function _0x1765(){const _0xb93a3b=['7yPihqg','1091466SqJJVi','items','_filterModels','push','24502RFVAxp','ai-models-unable-to-retrieve','auto','isAvailable','_defaultModelId','list','AI_MODEL_DESCRIPTION_','_getModelById','find','706536GaWcTk','24YmWdag','toUpperCase','map','AI_MODEL_DESCRIPTION_AUTO','provider','getAvailableModels','string','getAll','295bIrKkm','2063512odMlVZ','10oPGRTt','ai-chat-default-model-id-unrecognized','description','608644mxtVUh','_connector','length','toLocaleLowerCase','some','getDefault','startsWith','7tqjmsk','getModel','getModels','_availableModels','_modelList','name','3lsruVk','getLocalized','AI_MODEL_NAME_AUTO','ai-chat-model-id-unrecognized','agent','24018vfcFIM','126451TJXJRC'];_0x1765=function(){return _0xb93a3b;};return _0x1765();}const _0x1662d2=_0x3d4a;(function(_0x17d60f,_0x1d5411){const _0x5c2e0b=_0x3d4a,_0x35bb9f=_0x17d60f();while(!![]){try{const _0x35a370=-parseInt(_0x5c2e0b(0x1a8))/0x1*(-parseInt(_0x5c2e0b(0x1ba))/0x2)+-parseInt(_0x5c2e0b(0x1ae))/0x3*(parseInt(_0x5c2e0b(0x1d1))/0x4)+-parseInt(_0x5c2e0b(0x1cc))/0x5*(-parseInt(_0x5c2e0b(0x1b3))/0x6)+parseInt(_0x5c2e0b(0x1b5))/0x7*(-parseInt(_0x5c2e0b(0x1c3))/0x8)+parseInt(_0x5c2e0b(0x1b6))/0x9*(-parseInt(_0x5c2e0b(0x1ce))/0xa)+parseInt(_0x5c2e0b(0x1cd))/0xb+parseInt(_0x5c2e0b(0x1c4))/0xc*(-parseInt(_0x5c2e0b(0x1b4))/0xd);if(_0x35a370===_0x1d5411)break;else _0x35bb9f['push'](_0x35bb9f['shift']());}catch(_0x272440){_0x35bb9f['push'](_0x35bb9f['shift']());}}}(_0x1765,0x1f540));function _0x3d4a(_0x37f947,_0x57ce8f){const _0x1765b8=_0x1765();return _0x3d4a=function(_0x3d4a2f,_0x263dbe){_0x3d4a2f=_0x3d4a2f-0x1a8;let _0x220df4=_0x1765b8[_0x3d4a2f];return _0x220df4;},_0x3d4a(_0x37f947,_0x57ce8f);}import{CKEditorError as _0x4ae675,EmitterMixin as _0x36903a,logWarning as _0x422ec1}from'ckeditor5/src/utils.js';import{getTranslation as _0x797801}from'../utils/common-translations.js';export class AIModels extends _0x36903a(){[_0x1662d2(0x1d2)];[_0x1662d2(0x1ab)];[_0x1662d2(0x1be)];[_0x1662d2(0x1ac)]=[];constructor({connector:_0x243d4b,availableModels:_0x423f08,defaultModelId:_0x1c57ee}){const _0x165019=_0x1662d2;super(),this[_0x165019(0x1d2)]=_0x243d4b,this[_0x165019(0x1ab)]=_0x423f08,this[_0x165019(0x1be)]=_0x1c57ee;}async[_0x1662d2(0x1cb)](){const _0x1fbc4d=_0x1662d2;if(!this[_0x1fbc4d(0x1ac)][_0x1fbc4d(0x1d3)])try{const _0x16335a=this[_0x1fbc4d(0x1d2)][_0x1fbc4d(0x1aa)](),_0x2beec6=await _0x16335a[_0x1fbc4d(0x1bf)]();this[_0x1fbc4d(0x1ac)]=_0x2beec6[_0x1fbc4d(0x1b7)];}catch(_0x2bb1bc){throw new _0x4ae675(_0x1fbc4d(0x1bb),null,{'error':_0x2bb1bc});}return[...this[_0x1fbc4d(0x1ac)]];}async[_0x1662d2(0x1c9)](){const _0x2e8fb9=_0x1662d2,_0xb1440d=await this[_0x2e8fb9(0x1cb)]();return this[_0x2e8fb9(0x1b8)](_0xb1440d,this[_0x2e8fb9(0x1ab)]);}async[_0x1662d2(0x1a9)](_0xf9399b){const _0x2f7411=_0x1662d2,_0x1aeb71=await this[_0x2f7411(0x1cb)]();if(!_0x1aeb71[_0x2f7411(0x1d3)])return null;if(_0xf9399b){const _0x15e17f=this[_0x2f7411(0x1c1)](_0x1aeb71,_0xf9399b);if(_0x15e17f)return _0x15e17f;_0x422ec1(_0x2f7411(0x1b1),{'modelId':_0xf9399b,'fallBackModelId':this[_0x2f7411(0x1be)]});}return this[_0x2f7411(0x1d6)]();}async[_0x1662d2(0x1d6)](){const _0x3464e0=_0x1662d2,_0x50a22f=await this[_0x3464e0(0x1c9)]();if(!_0x50a22f[_0x3464e0(0x1d3)])return null;if(this[_0x3464e0(0x1be)]){const _0x1c46ed=this[_0x3464e0(0x1c1)](_0x50a22f,this[_0x3464e0(0x1be)]);if(_0x1c46ed)return _0x1c46ed;_0x422ec1(_0x3464e0(0x1cf),{'defaultModelId':this[_0x3464e0(0x1be)],'fallBackModelId':_0x50a22f[0x0]['id']});}return _0x50a22f[0x0];}async[_0x1662d2(0x1bd)](_0x55f41f){const _0x261679=_0x1662d2;return(await this[_0x261679(0x1c9)]())[_0x261679(0x1d5)](_0x5b4831=>_0x5b4831[_0x261679(0x1ad)]===_0x55f41f[_0x261679(0x1ad)]&&_0x5b4831[_0x261679(0x1c8)]===_0x55f41f[_0x261679(0x1c8)]);}[_0x1662d2(0x1b8)](_0x1f99ee,_0x4cf01d){const _0x3a7fa5=_0x1662d2;let _0x4a286c;if(_0x4cf01d){_0x4a286c=[];const _0x38551a=_0x3a7fa5(0x1ca)==typeof _0x4cf01d?[_0x4cf01d[_0x3a7fa5(0x1d4)]()]:_0x4cf01d[_0x3a7fa5(0x1c6)](_0x4a2947=>_0x4a2947[_0x3a7fa5(0x1d4)]());for(const _0x38d993 of _0x38551a)for(const _0x3355e8 of _0x1f99ee)(_0x3355e8['id'][_0x3a7fa5(0x1d4)]()===_0x38d993||_0x3355e8[_0x3a7fa5(0x1ad)][_0x3a7fa5(0x1d4)]()===_0x38d993||$e(_0x3355e8)&&_0x3a7fa5(0x1bc)===_0x38d993||_0x3355e8[_0x3a7fa5(0x1c8)][_0x3a7fa5(0x1d4)]()===_0x38d993||_0x3355e8['id'][_0x3a7fa5(0x1d4)]()[_0x3a7fa5(0x1d7)](_0x38d993))&&_0x4a286c[_0x3a7fa5(0x1b9)](_0x3355e8);}else _0x4a286c=_0x1f99ee;return _0x4a286c;}[_0x1662d2(0x1c1)](_0x323178,_0x46b1d3){const _0x3d7c00=_0x1662d2;return _0x323178[_0x3d7c00(0x1c2)](_0x3dbce2=>$e(_0x3dbce2)&&_0x3d7c00(0x1bc)===_0x46b1d3?_0x3dbce2:_0x3dbce2['id']===_0x46b1d3)||null;}static[_0x1662d2(0x1af)](_0x5b4932,_0x17a45e){const _0x462ad4=_0x1662d2;return _0x17a45e[_0x462ad4(0x1c6)](_0x1fae33=>{const _0x231001=_0x462ad4;if($e(_0x1fae33))_0x1fae33[_0x231001(0x1ad)]=_0x797801(_0x5b4932,_0x231001(0x1b0)),_0x1fae33[_0x231001(0x1d0)]=_0x797801(_0x5b4932,_0x231001(0x1c7));else _0x797801(_0x5b4932,_0x231001(0x1c0)+_0x1fae33['id'][_0x231001(0x1c5)]())[_0x231001(0x1d7)](_0x231001(0x1c0))||(_0x1fae33[_0x231001(0x1d0)]=_0x797801(_0x5b4932,_0x231001(0x1c0)+_0x1fae33['id'][_0x231001(0x1c5)]()));return _0x1fae33;});}}function $e(_0x1643c5){const _0x4ad46c=_0x1662d2;return _0x1643c5['id'][_0x4ad46c(0x1d7)](_0x4ad46c(0x1b2));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a6a09=_0x502e;(function(_0x12e90e,_0x5a5080){const _0x3d62a9=_0x502e,_0x2fea21=_0x12e90e();while(!![]){try{const _0x2e43a8=parseInt(_0x3d62a9(0x17a))/0x1+parseInt(_0x3d62a9(0x19b))/0x2+-parseInt(_0x3d62a9(0x159))/0x3+parseInt(_0x3d62a9(0x1a7))/0x4+parseInt(_0x3d62a9(0x18e))/0x5+parseInt(_0x3d62a9(0x18a))/0x6+-parseInt(_0x3d62a9(0x163))/0x7;if(_0x2e43a8===_0x5a5080)break;else _0x2fea21['push'](_0x2fea21['shift']());}catch(_0x6e0cb8){_0x2fea21['push'](_0x2fea21['shift']());}}}(_0x4074,0xbfbb9));import{CKEditorError as _0x18f3d3,ObservableMixin as _0x8ae443,uid as _0x5ad8e2}from'ckeditor5/src/utils.js';import{Element as _0x111c23,findAll as _0x1de8a3,getAttribute as _0x569a87,getParents as _0x4d101c,Document as _0xec67ae,parse as _0x5517ac,Text as _0x2fce5f}from'../utils/htmlparser.js';import{AIResponseParser as _0x3c9b1d}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x2e6e50}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x1b12f1}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x5e143f}from'../utils/common-translations.js';import{cloneDeep as _0x5a67e4}from'es-toolkit';export const AI_REPLY_TYPES=[_0x5a6a09(0x1a3),_0x5a6a09(0x16a),_0x5a6a09(0x15d),_0x5a6a09(0x15b)];export const AI_REPLY_TYPES_IGNORED=[_0x5a6a09(0x190)];export const AI_REPLY_TITLE_TYPE=_0x5a6a09(0x190);export class AIReply extends _0x8ae443(){['id'];[_0x5a6a09(0x160)];[_0x5a6a09(0x175)];[_0x5a6a09(0x19a)]=[];[_0x5a6a09(0x15c)]=new _0xec67ae([]);[_0x5a6a09(0x161)]=new _0xec67ae([]);[_0x5a6a09(0x16d)]=[];[_0x5a6a09(0x187)]=!0x1;[_0x5a6a09(0x182)];[_0x5a6a09(0x170)];[_0x5a6a09(0x177)];[_0x5a6a09(0x19c)];[_0x5a6a09(0x173)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x4ada3b,content:_0xac126='',isDone:_0x5e1c60=!0x1,interactionId:_0x1a6086,areActionsDisabled:_0x4b877a,documentContextContent:_0x55f320,editor:_0x36f9bf,id:_0x2eee8d}){const _0x5c8427=_0x5a6a09;super(),this['id']=_0x2eee8d||_0x5ad8e2(),this[_0x5c8427(0x160)]=_0x1a6086,this[_0x5c8427(0x175)]=_0x4ada3b,this[_0x5c8427(0x187)]=!!_0x4b877a,this[_0x5c8427(0x19c)]=_0x36f9bf,this[_0x5c8427(0x170)]=new _0x3c9b1d(),this[_0x5c8427(0x177)]=new _0x2e6e50(),this[_0x5c8427(0x182)]=_0x5517ac(_0x55f320||''),this[_0x5c8427(0x180)](_0x5c8427(0x167),_0x5e1c60),this['on'](_0x5c8427(0x16e),()=>{const _0x419b5d=_0x5c8427;this[_0x419b5d(0x191)]();}),this[_0x5c8427(0x180)](_0x5c8427(0x155),_0xac126);}[_0x5a6a09(0x174)](_0x397f73){const _0x32a7a5=_0x5a6a09;this[_0x32a7a5(0x180)](_0x32a7a5(0x155),this[_0x32a7a5(0x155)]+_0x397f73);}[_0x5a6a09(0x19e)](){const _0x585d70=_0x5a6a09;this[_0x585d70(0x167)]||(this[_0x585d70(0x180)](_0x585d70(0x167),!0x0),this[_0x585d70(0x191)]());}[_0x5a6a09(0x195)](){const _0x46319a=_0x5a6a09;this[_0x46319a(0x171)]();}[_0x5a6a09(0x192)](_0x450d6a,_0x31f37b){const _0x328456=_0x5a6a09;this[_0x328456(0x16d)][_0x450d6a][_0x328456(0x15f)]=_0x31f37b,this[_0x328456(0x198)](_0x328456(0x179),{'reply':this,'index':_0x450d6a,'state':_0x31f37b});}[_0x5a6a09(0x18f)]({showDiff:_0x585ecc,groupIndex:_0x244989}){const _0xb2ff02=_0x5a6a09;if(!this[_0xb2ff02(0x19c)])throw new _0x18f3d3(_0xb2ff02(0x18b),null,{'aiReply':this});const _0x32d554=this[_0xb2ff02(0x1a4)](_0x585ecc,_0x244989);if(_0x32d554)return _0x32d554;let _0x7d9945=[];if(void 0x0===_0x244989)_0x7d9945=this[_0xb2ff02(0x16d)];else{const _0x363259=this[_0xb2ff02(0x16d)][_0xb2ff02(0x184)](({index:_0x33fbd2})=>_0x33fbd2===_0x244989);if(!_0x363259)throw new _0x18f3d3(_0xb2ff02(0x18c),null,{'aiReply':this,'groupIndex':_0x244989});_0x7d9945=[_0x363259];}const _0x460cdc=_0x1b12f1({'editor':this[_0xb2ff02(0x19c)],'showDiff':_0x585ecc,'changeGroups':_0x7d9945,'documentContextContent':this[_0xb2ff02(0x182)]});return this[_0xb2ff02(0x17b)](_0x585ecc,_0x460cdc),_0x460cdc;}[_0x5a6a09(0x1a4)](_0x5e1942,_0x15d655){const _0x5b95e1=_0x5a6a09,_0x225a0d=_0x5e1942?_0x5b95e1(0x189):_0x5b95e1(0x194);if(!this[_0x5b95e1(0x173)][_0x225a0d][_0x5b95e1(0x181)])return null;const _0x29e111=this[_0x5b95e1(0x173)][_0x225a0d];if(void 0x0===_0x15d655)return _0x5a67e4(_0x29e111);{const _0x2023fd=_0x29e111[_0x5b95e1(0x184)](({index:_0x395b0f})=>_0x395b0f===_0x15d655);if(_0x2023fd)return[_0x5a67e4(_0x2023fd)];}return null;}[_0x5a6a09(0x17b)](_0x226b9e,_0x5bbbd6){const _0x4251cf=_0x5a6a09,_0x262c1b=_0x226b9e?_0x4251cf(0x189):_0x4251cf(0x194);_0x5bbbd6[_0x4251cf(0x19f)](_0x5c9bd6=>{const _0x388c80=_0x4251cf,_0x11fcf4=this[_0x388c80(0x173)][_0x262c1b],_0x566bfa=_0x11fcf4[_0x388c80(0x184)](({index:_0x550ab2})=>_0x550ab2===_0x5c9bd6[_0x388c80(0x178)]);if(_0x566bfa){const _0x43e060=_0x11fcf4[_0x388c80(0x157)](_0x566bfa);_0x11fcf4[_0x388c80(0x1a5)](_0x43e060,0x1,_0x5c9bd6);}else _0x11fcf4[_0x388c80(0x1a2)](_0x5c9bd6);});}[_0x5a6a09(0x191)](){const _0x413220=_0x5a6a09;if(_0x413220(0x1a3)===this[_0x413220(0x175)]){this[_0x413220(0x15c)]=this[_0x413220(0x170)][_0x413220(0x186)](this[_0x413220(0x155)]);const _0x17ea77=this[_0x413220(0x16d)];this[_0x413220(0x158)]();const _0x108ef4=this[_0x413220(0x166)](_0x17ea77,this[_0x413220(0x16d)]);(_0x108ef4[_0x413220(0x181)]||this[_0x413220(0x167)])&&(this[_0x413220(0x198)](_0x413220(0x162),this,_0x108ef4),this[_0x413220(0x173)][_0x413220(0x189)][_0x413220(0x181)]=this[_0x413220(0x173)][_0x413220(0x194)][_0x413220(0x181)]=0x0);}else this[_0x413220(0x15c)]=this[_0x413220(0x170)][_0x413220(0x156)](this[_0x413220(0x155)]),this[_0x413220(0x198)](_0x413220(0x162),this);}[_0x5a6a09(0x166)](_0x200683,_0x135769){const _0x4fd1a0=_0x5a6a09,_0x13102c=[];for(const _0x1b5bb4 of _0x135769){const _0x14208f=_0x200683[_0x1b5bb4[_0x4fd1a0(0x178)]];_0x14208f?_0x14208f[_0x4fd1a0(0x199)][_0x4fd1a0(0x181)]!==_0x1b5bb4[_0x4fd1a0(0x199)][_0x4fd1a0(0x181)]?_0x13102c[_0x4fd1a0(0x1a2)](_0x1b5bb4):_0x14208f[_0x4fd1a0(0x199)][_0x4fd1a0(0x19f)]((_0x2b6f37,_0x14eaaf)=>{const _0x1a93e3=_0x4fd1a0,_0x2cd593=_0x1b5bb4[_0x1a93e3(0x199)][_0x14eaaf];_0x2b6f37['id']!==_0x2cd593['id']&&_0x13102c[_0x1a93e3(0x1a2)](_0x1b5bb4);}):_0x13102c[_0x4fd1a0(0x1a2)](_0x1b5bb4);}return _0x13102c;}[_0x5a6a09(0x158)](){const _0x27a3c6=_0x5a6a09,_0x101079=new _0x111c23('p',{},[new _0x111c23(_0x27a3c6(0x1a0),{'style':_0x27a3c6(0x15e)},[new _0x2fce5f(_0x5e143f(this[_0x27a3c6(0x19c)][_0x27a3c6(0x16c)],_0x27a3c6(0x183)))])]),_0x585f53=this[_0x27a3c6(0x177)][_0x27a3c6(0x164)](this[_0x27a3c6(0x15c)],this[_0x27a3c6(0x182)][_0x27a3c6(0x17e)](!0x0),{'markUnstableElements':!this[_0x27a3c6(0x167)],'replaceRemovedWith':_0x101079,'cutAfterLastChange':!this[_0x27a3c6(0x167)]});if(!_0x585f53[_0x27a3c6(0x19d)][_0x27a3c6(0x181)]&&!this[_0x27a3c6(0x167)])return;this[_0x27a3c6(0x161)]=_0x585f53[_0x27a3c6(0x15c)];let _0x5c2e20=[];if(_0x1de8a3(_0x14a145=>{const _0x3d05cb=_0x27a3c6,_0x4d7017=_0x569a87(_0x14a145,_0x3d05cb(0x17c));if(!_0x4d7017||!_0x1cc961(_0x4d7017))return!0x1;const _0x5cc480=[_0x14a145,..._0x4d101c(_0x14a145)]['at'](-0x2);if(_0x14a145!=_0x5cc480){const _0x385bec=_0x569a87(_0x5cc480,_0x3d05cb(0x17c));_0x1cc961(_0x385bec)||(_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x5cc480,'id':_0x385bec,'type':_0x3d05cb(0x16b)}),_0x585f53[_0x3d05cb(0x19d)][_0x3d05cb(0x1a2)](_0x385bec));}else _0x585f53[_0x3d05cb(0x19d)][_0x3d05cb(0x172)](_0x4d7017)?_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x16b),'id':_0x4d7017}):_0x585f53[_0x3d05cb(0x1a6)][_0x3d05cb(0x172)](_0x4d7017)?_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x17d),'id':_0x4d7017,'anchorId':_0x569a87(_0x14a145[_0x3d05cb(0x169)],_0x3d05cb(0x17c))}):_0x5c2e20[_0x3d05cb(0x1a2)]({'node':_0x14a145,'type':_0x3d05cb(0x188),'id':_0x4d7017});return!0x0;},this[_0x27a3c6(0x161)]),_0x5c2e20=_0x5c2e20[_0x27a3c6(0x17f)](({node:_0x2a9b94})=>[..._0x4d101c(_0x2a9b94),_0x2a9b94][_0x27a3c6(0x196)](_0x348ecd=>!_0x569a87(_0x348ecd,_0x27a3c6(0x15a)))),0x0==_0x5c2e20[_0x27a3c6(0x181)])return;const _0x153f7b=[[_0x5c2e20[0x0]]];for(let _0x3624f9=0x1;_0x3624f9<_0x5c2e20[_0x27a3c6(0x181)];_0x3624f9++){const _0x525ab4=_0x153f7b[_0x153f7b[_0x27a3c6(0x181)]-0x1],_0x331820=_0x525ab4[_0x525ab4[_0x27a3c6(0x181)]-0x1];_0x5c2e20[_0x3624f9][_0x27a3c6(0x1a1)][_0x27a3c6(0x169)]==_0x331820[_0x27a3c6(0x1a1)]&&_0x27a3c6(0x16b)!=_0x5c2e20[_0x3624f9][_0x27a3c6(0x175)]&&_0x27a3c6(0x16b)!=_0x331820[_0x27a3c6(0x175)]?_0x525ab4[_0x27a3c6(0x1a2)](_0x5c2e20[_0x3624f9]):_0x153f7b[_0x27a3c6(0x1a2)]([_0x5c2e20[_0x3624f9]]);}for(const _0x3e9577 of _0x153f7b){const _0x473003=_0x3e9577[0x0],_0x471709=_0x3e9577[_0x3e9577[_0x27a3c6(0x181)]-0x1],_0x43a93b=_0x3bdd7f(_0x473003[_0x27a3c6(0x1a1)][_0x27a3c6(0x169)]);_0x43a93b&&_0x3e9577[_0x27a3c6(0x176)](_0x43a93b);const _0x46f7bf=_0x3bdd7f(_0x471709[_0x27a3c6(0x1a1)][_0x27a3c6(0x193)]);_0x46f7bf&&_0x3e9577[_0x27a3c6(0x1a2)](_0x46f7bf);}function _0x1cc961(_0x25b024){const _0x341648=_0x27a3c6;return _0x585f53[_0x341648(0x19d)][_0x341648(0x172)](_0x25b024)||_0x585f53[_0x341648(0x1a6)][_0x341648(0x172)](_0x25b024)||_0x585f53[_0x341648(0x16f)][_0x341648(0x172)](_0x25b024);}function _0x3bdd7f(_0x57817d){const _0x2ce1f4=_0x27a3c6;if(_0x57817d&&_0x569a87(_0x57817d,_0x2ce1f4(0x17c))&&!_0x569a87(_0x57817d,_0x2ce1f4(0x15a))){const _0x3b9d3d=_0x569a87(_0x57817d,_0x2ce1f4(0x17c));if(!_0x1cc961(_0x3b9d3d))return{'node':_0x57817d,'type':_0x2ce1f4(0x18d),'id':_0x3b9d3d};}return null;}this[_0x27a3c6(0x16d)]=_0x153f7b[_0x27a3c6(0x165)]((_0x5701f4,_0x1d363b)=>({'changes':_0x5701f4,'state':_0x27a3c6(0x168),'index':_0x1d363b}));}}function _0x502e(_0x395e94,_0x442923){const _0x40749d=_0x4074();return _0x502e=function(_0x502e8a,_0xdea561){_0x502e8a=_0x502e8a-0x155;let _0x54f79c=_0x40749d[_0x502e8a];return _0x54f79c;},_0x502e(_0x395e94,_0x442923);}export function isValidReplyType(_0x2b93d2){const _0x180d1f=_0x5a6a09;return Object[_0x180d1f(0x197)](AI_REPLY_TYPES)[_0x180d1f(0x172)](_0x2b93d2);}export function isIgnoredReplyType(_0x53e842){const _0x3dc555=_0x5a6a09;return AI_REPLY_TYPES_IGNORED[_0x3dc555(0x172)](_0x53e842);}function _0x4074(){const _0x4ab055=['find','source','parseAndNormalizeHTML','areActionsDisabled','removed','withDiff','8455974JtLhty','ai-get-editor-from-context-no-editor','ai-reply-get-content-parts-group-not-found','context','3419140ZgJxdy','getContentParts','conversation-title','onContentChange','setChangeGroupState','nextSibling','withoutDiff','destroy','every','values','fire','changes','sources','3114446MRETjZ','editor','modifiedNodeIds','done','forEach','span','node','push','modification-delta','_getCachedContentParts','splice','newNodeIds','2871988gQqNWo','content','convertMarkdownToHTML','indexOf','updateChangeGroups','2129388gYveAM','data-unstable','reasoning','parsedContent','web-search','color:\x20#808080;\x20font-style:\x20italic','state','interactionId','parsedMergedContent','replyContentUpdated','29118439xWwQlc','merge','map','_getDifferentChangeGroups','isDone','pending','previousSibling','text-delta','modified','locale','changeGroups','change:content','removedNodeIds','aiResponseParser','stopListening','includes','cachedSuggestionContentParts','appendContent','type','unshift','aiResponseApplier','index','replyChangeGroupStateUpdated','1286533xXPBCY','_setCachedContentParts','data-id','new','cloneNode','filter','set','length','documentContextContent','AI_SUGGESTION_CONTENT_PART_REMOVED'];_0x4074=function(){return _0x4ab055;};return _0x4074();}export function isReplyTitleType(_0x3d78cb){return _0x3d78cb===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x2dc516){const _0x45554c=_0x5a6a09;return _0x45554c(0x185)===_0x2dc516;}
23
+ const _0x39cbc6=_0x2431;(function(_0x26132f,_0x49f2d5){const _0x265e98=_0x2431,_0x353059=_0x26132f();while(!![]){try{const _0xf4e39c=-parseInt(_0x265e98(0x13e))/0x1+-parseInt(_0x265e98(0x11c))/0x2*(-parseInt(_0x265e98(0x100))/0x3)+-parseInt(_0x265e98(0xfa))/0x4*(parseInt(_0x265e98(0xe8))/0x5)+-parseInt(_0x265e98(0x13d))/0x6*(parseInt(_0x265e98(0x107))/0x7)+-parseInt(_0x265e98(0x136))/0x8+-parseInt(_0x265e98(0x123))/0x9+-parseInt(_0x265e98(0x104))/0xa*(-parseInt(_0x265e98(0x11e))/0xb);if(_0xf4e39c===_0x49f2d5)break;else _0x353059['push'](_0x353059['shift']());}catch(_0x37a3b8){_0x353059['push'](_0x353059['shift']());}}}(_0x23d6,0xec679));import{CKEditorError as _0x3af711,ObservableMixin as _0x258fd4,uid as _0x43b7c6}from'ckeditor5/src/utils.js';function _0x23d6(){const _0x244e4f=['cloneNode','_setCachedContentParts','AI_SUGGESTION_CONTENT_PART_REMOVED','convertMarkdownToHTML','locale','removedNodeIds','data-unstable','length','onContentChange','reasoning','16dhhqWk','parsedContent','isDone','change:content','updateChangeGroups','nextSibling','1063569ciyIJf','withDiff','changeGroups','source','33130rMHBZo','modifiedNodeIds','splice','35TwjIBx','fire','context','parseAndNormalizeHTML','replyChangeGroupStateUpdated','changes','setChangeGroupState','getContentParts','conversation-title','withoutDiff','merge','stopListening','find','unshift','span','parsedMergedContent','done','indexOf','color:\x20#808080;\x20font-style:\x20italic','type','web-search','2RFzerS','ai-reply-get-content-parts-group-not-found','20757gSNhPf','push','_getCachedContentParts','sources','content','16776594iGpyWs','editor','modification-delta','index','newNodeIds','filter','cachedSuggestionContentParts','forEach','removed','aiResponseApplier','text-delta','_getDifferentChangeGroups','documentContextContent','set','previousSibling','data-id','values','replyContentUpdated','appendContent','8166608mDZofD','pending','aiResponseParser','state','every','map','node','1141116uiOrwm','398443GsgFMl','1754470xgiwnd','includes','ai-get-editor-from-context-no-editor','areActionsDisabled','interactionId','destroy','new','modified'];_0x23d6=function(){return _0x244e4f;};return _0x23d6();}import{Element as _0x7fe83,findAll as _0x57a572,getAttribute as _0x4e627b,getParents as _0x19e3f4,Document as _0x374bbd,parse as _0x5bb99c,Text as _0x1e4bed}from'../utils/htmlparser.js';import{AIResponseParser as _0x30814e}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x214a13}from'../pipeline/airesponseapplier.js';function _0x2431(_0x2e3675,_0x3466c2){const _0x23d632=_0x23d6();return _0x2431=function(_0x2431ca,_0x3bb128){_0x2431ca=_0x2431ca-0xe8;let _0xa51258=_0x23d632[_0x2431ca];return _0xa51258;},_0x2431(_0x2e3675,_0x3466c2);}import{getSuggestionPartsFromReply as _0x165665}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x2e6abb}from'../utils/common-translations.js';import{cloneDeep as _0x546a34}from'es-toolkit';export const AI_REPLY_TYPES=[_0x39cbc6(0x125),_0x39cbc6(0x12d),_0x39cbc6(0x11b),_0x39cbc6(0xf9)];export const AI_REPLY_TYPES_IGNORED=[_0x39cbc6(0x10f)];export const AI_REPLY_TITLE_TYPE=_0x39cbc6(0x10f);export class AIReply extends _0x258fd4(){['id'];[_0x39cbc6(0xec)];[_0x39cbc6(0x11a)];[_0x39cbc6(0x121)]=[];[_0x39cbc6(0xfb)]=new _0x374bbd([]);[_0x39cbc6(0x116)]=new _0x374bbd([]);[_0x39cbc6(0x102)]=[];[_0x39cbc6(0xeb)]=!0x1;[_0x39cbc6(0x12f)];[_0x39cbc6(0x138)];[_0x39cbc6(0x12c)];[_0x39cbc6(0x124)];[_0x39cbc6(0x129)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x494d91,content:_0x5ecd55='',isDone:_0x2dd1c9=!0x1,interactionId:_0x7e160f,areActionsDisabled:_0x1b8bb4,documentContextContent:_0x232da1,editor:_0x54ccbc,id:_0x2412bb}){const _0x47a782=_0x39cbc6;super(),this['id']=_0x2412bb||_0x43b7c6(),this[_0x47a782(0xec)]=_0x7e160f,this[_0x47a782(0x11a)]=_0x494d91,this[_0x47a782(0xeb)]=!!_0x1b8bb4,this[_0x47a782(0x124)]=_0x54ccbc,this[_0x47a782(0x138)]=new _0x30814e(),this[_0x47a782(0x12c)]=new _0x214a13(),this[_0x47a782(0x12f)]=_0x5bb99c(_0x232da1||''),this[_0x47a782(0x130)](_0x47a782(0xfc),_0x2dd1c9),this['on'](_0x47a782(0xfd),()=>{const _0x2cc979=_0x47a782;this[_0x2cc979(0xf8)]();}),this[_0x47a782(0x130)](_0x47a782(0x122),_0x5ecd55);}[_0x39cbc6(0x135)](_0x4cf1ff){const _0x30c89d=_0x39cbc6;this[_0x30c89d(0x130)](_0x30c89d(0x122),this[_0x30c89d(0x122)]+_0x4cf1ff);}[_0x39cbc6(0x117)](){const _0x5ca2d9=_0x39cbc6;this[_0x5ca2d9(0xfc)]||(this[_0x5ca2d9(0x130)](_0x5ca2d9(0xfc),!0x0),this[_0x5ca2d9(0xf8)]());}[_0x39cbc6(0xed)](){const _0x44e06a=_0x39cbc6;this[_0x44e06a(0x112)]();}[_0x39cbc6(0x10d)](_0x19ecfe,_0x53abc5){const _0x45a6d4=_0x39cbc6;this[_0x45a6d4(0x102)][_0x19ecfe][_0x45a6d4(0x139)]=_0x53abc5,this[_0x45a6d4(0x108)](_0x45a6d4(0x10b),{'reply':this,'index':_0x19ecfe,'state':_0x53abc5});}[_0x39cbc6(0x10e)]({showDiff:_0x3cd617,groupIndex:_0x310e42}){const _0x59ca50=_0x39cbc6;if(!this[_0x59ca50(0x124)])throw new _0x3af711(_0x59ca50(0xea),null,{'aiReply':this});const _0x3f8249=this[_0x59ca50(0x120)](_0x3cd617,_0x310e42);if(_0x3f8249)return _0x3f8249;let _0x2bb72e=[];if(void 0x0===_0x310e42)_0x2bb72e=this[_0x59ca50(0x102)];else{const _0x6c8449=this[_0x59ca50(0x102)][_0x59ca50(0x113)](({index:_0x9a7df0})=>_0x9a7df0===_0x310e42);if(!_0x6c8449)throw new _0x3af711(_0x59ca50(0x11d),null,{'aiReply':this,'groupIndex':_0x310e42});_0x2bb72e=[_0x6c8449];}const _0xec7d22=_0x165665({'editor':this[_0x59ca50(0x124)],'showDiff':_0x3cd617,'changeGroups':_0x2bb72e,'documentContextContent':this[_0x59ca50(0x12f)]});return this[_0x59ca50(0xf1)](_0x3cd617,_0xec7d22),_0xec7d22;}[_0x39cbc6(0x120)](_0x18c8b6,_0x1c67a2){const _0x496fd7=_0x39cbc6,_0x95e288=_0x18c8b6?_0x496fd7(0x101):_0x496fd7(0x110);if(!this[_0x496fd7(0x129)][_0x95e288][_0x496fd7(0xf7)])return null;const _0x130dc7=this[_0x496fd7(0x129)][_0x95e288];if(void 0x0===_0x1c67a2)return _0x546a34(_0x130dc7);{const _0x41408f=_0x130dc7[_0x496fd7(0x113)](({index:_0x3ec3fd})=>_0x3ec3fd===_0x1c67a2);if(_0x41408f)return[_0x546a34(_0x41408f)];}return null;}[_0x39cbc6(0xf1)](_0x2e0151,_0x3e870){const _0x2fb80f=_0x39cbc6,_0x25f110=_0x2e0151?_0x2fb80f(0x101):_0x2fb80f(0x110);_0x3e870[_0x2fb80f(0x12a)](_0xf5f717=>{const _0x1965d2=_0x2fb80f,_0x263882=this[_0x1965d2(0x129)][_0x25f110],_0x554e91=_0x263882[_0x1965d2(0x113)](({index:_0x25286d})=>_0x25286d===_0xf5f717[_0x1965d2(0x126)]);if(_0x554e91){const _0x41c4d5=_0x263882[_0x1965d2(0x118)](_0x554e91);_0x263882[_0x1965d2(0x106)](_0x41c4d5,0x1,_0xf5f717);}else _0x263882[_0x1965d2(0x11f)](_0xf5f717);});}[_0x39cbc6(0xf8)](){const _0x526b8e=_0x39cbc6;if(_0x526b8e(0x125)===this[_0x526b8e(0x11a)]){this[_0x526b8e(0xfb)]=this[_0x526b8e(0x138)][_0x526b8e(0x10a)](this[_0x526b8e(0x122)]);const _0x1e1e9e=this[_0x526b8e(0x102)];this[_0x526b8e(0xfe)]();const _0x363c07=this[_0x526b8e(0x12e)](_0x1e1e9e,this[_0x526b8e(0x102)]);(_0x363c07[_0x526b8e(0xf7)]||this[_0x526b8e(0xfc)])&&(this[_0x526b8e(0x108)](_0x526b8e(0x134),this,_0x363c07),this[_0x526b8e(0x129)][_0x526b8e(0x101)][_0x526b8e(0xf7)]=this[_0x526b8e(0x129)][_0x526b8e(0x110)][_0x526b8e(0xf7)]=0x0);}else this[_0x526b8e(0xfb)]=this[_0x526b8e(0x138)][_0x526b8e(0xf3)](this[_0x526b8e(0x122)]),this[_0x526b8e(0x108)](_0x526b8e(0x134),this);}[_0x39cbc6(0x12e)](_0x5421b3,_0x1ea341){const _0x2b5240=_0x39cbc6,_0xdc9c75=[];for(const _0x595bf4 of _0x1ea341){const _0x85a6c4=_0x5421b3[_0x595bf4[_0x2b5240(0x126)]];_0x85a6c4?_0x85a6c4[_0x2b5240(0x10c)][_0x2b5240(0xf7)]!==_0x595bf4[_0x2b5240(0x10c)][_0x2b5240(0xf7)]?_0xdc9c75[_0x2b5240(0x11f)](_0x595bf4):_0x85a6c4[_0x2b5240(0x10c)][_0x2b5240(0x12a)]((_0x7f64bb,_0x366805)=>{const _0x48763b=_0x2b5240,_0x4c8f1c=_0x595bf4[_0x48763b(0x10c)][_0x366805];_0x7f64bb['id']!==_0x4c8f1c['id']&&_0xdc9c75[_0x48763b(0x11f)](_0x595bf4);}):_0xdc9c75[_0x2b5240(0x11f)](_0x595bf4);}return _0xdc9c75;}[_0x39cbc6(0xfe)](){const _0x24cf27=_0x39cbc6,_0x2d08e1=new _0x7fe83('p',{},[new _0x7fe83(_0x24cf27(0x115),{'style':_0x24cf27(0x119)},[new _0x1e4bed(_0x2e6abb(this[_0x24cf27(0x124)][_0x24cf27(0xf4)],_0x24cf27(0xf2)))])]),_0x517fcd=this[_0x24cf27(0x12c)][_0x24cf27(0x111)](this[_0x24cf27(0xfb)],this[_0x24cf27(0x12f)][_0x24cf27(0xf0)](!0x0),{'markUnstableElements':!this[_0x24cf27(0xfc)],'replaceRemovedWith':_0x2d08e1,'cutAfterLastChange':!this[_0x24cf27(0xfc)]});if(!_0x517fcd[_0x24cf27(0x105)][_0x24cf27(0xf7)]&&!this[_0x24cf27(0xfc)])return;this[_0x24cf27(0x116)]=_0x517fcd[_0x24cf27(0xfb)];let _0x116ed9=[];if(_0x57a572(_0x4a6c3f=>{const _0x1b2e9e=_0x24cf27,_0x154f17=_0x4e627b(_0x4a6c3f,_0x1b2e9e(0x132));if(!_0x154f17||!_0x4a7b5c(_0x154f17))return!0x1;const _0x2237b3=[_0x4a6c3f,..._0x19e3f4(_0x4a6c3f)]['at'](-0x2);if(_0x4a6c3f!=_0x2237b3){const _0x351bbb=_0x4e627b(_0x2237b3,_0x1b2e9e(0x132));_0x4a7b5c(_0x351bbb)||(_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x2237b3,'id':_0x351bbb,'type':_0x1b2e9e(0xef)}),_0x517fcd[_0x1b2e9e(0x105)][_0x1b2e9e(0x11f)](_0x351bbb));}else _0x517fcd[_0x1b2e9e(0x105)][_0x1b2e9e(0xe9)](_0x154f17)?_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0xef),'id':_0x154f17}):_0x517fcd[_0x1b2e9e(0x127)][_0x1b2e9e(0xe9)](_0x154f17)?_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0xee),'id':_0x154f17,'anchorId':_0x4e627b(_0x4a6c3f[_0x1b2e9e(0x131)],_0x1b2e9e(0x132))}):_0x116ed9[_0x1b2e9e(0x11f)]({'node':_0x4a6c3f,'type':_0x1b2e9e(0x12b),'id':_0x154f17});return!0x0;},this[_0x24cf27(0x116)]),_0x116ed9=_0x116ed9[_0x24cf27(0x128)](({node:_0x3a949b})=>[..._0x19e3f4(_0x3a949b),_0x3a949b][_0x24cf27(0x13a)](_0x487f73=>!_0x4e627b(_0x487f73,_0x24cf27(0xf6)))),0x0==_0x116ed9[_0x24cf27(0xf7)])return;const _0x17ddb5=[[_0x116ed9[0x0]]];for(let _0x5e3e44=0x1;_0x5e3e44<_0x116ed9[_0x24cf27(0xf7)];_0x5e3e44++){const _0x130eb1=_0x17ddb5[_0x17ddb5[_0x24cf27(0xf7)]-0x1],_0x1f54b5=_0x130eb1[_0x130eb1[_0x24cf27(0xf7)]-0x1];_0x116ed9[_0x5e3e44][_0x24cf27(0x13c)][_0x24cf27(0x131)]==_0x1f54b5[_0x24cf27(0x13c)]&&_0x24cf27(0xef)!=_0x116ed9[_0x5e3e44][_0x24cf27(0x11a)]&&_0x24cf27(0xef)!=_0x1f54b5[_0x24cf27(0x11a)]?_0x130eb1[_0x24cf27(0x11f)](_0x116ed9[_0x5e3e44]):_0x17ddb5[_0x24cf27(0x11f)]([_0x116ed9[_0x5e3e44]]);}for(const _0x224819 of _0x17ddb5){const _0x1861fc=_0x224819[0x0],_0x2dc540=_0x224819[_0x224819[_0x24cf27(0xf7)]-0x1],_0x1932c7=_0x5631ff(_0x1861fc[_0x24cf27(0x13c)][_0x24cf27(0x131)]);_0x1932c7&&_0x224819[_0x24cf27(0x114)](_0x1932c7);const _0x5ddadb=_0x5631ff(_0x2dc540[_0x24cf27(0x13c)][_0x24cf27(0xff)]);_0x5ddadb&&_0x224819[_0x24cf27(0x11f)](_0x5ddadb);}function _0x4a7b5c(_0x1a01f1){const _0x2ab5e0=_0x24cf27;return _0x517fcd[_0x2ab5e0(0x105)][_0x2ab5e0(0xe9)](_0x1a01f1)||_0x517fcd[_0x2ab5e0(0x127)][_0x2ab5e0(0xe9)](_0x1a01f1)||_0x517fcd[_0x2ab5e0(0xf5)][_0x2ab5e0(0xe9)](_0x1a01f1);}function _0x5631ff(_0x10c1ad){const _0x462ea8=_0x24cf27;if(_0x10c1ad&&_0x4e627b(_0x10c1ad,_0x462ea8(0x132))&&!_0x4e627b(_0x10c1ad,_0x462ea8(0xf6))){const _0x30afe7=_0x4e627b(_0x10c1ad,_0x462ea8(0x132));if(!_0x4a7b5c(_0x30afe7))return{'node':_0x10c1ad,'type':_0x462ea8(0x109),'id':_0x30afe7};}return null;}this[_0x24cf27(0x102)]=_0x17ddb5[_0x24cf27(0x13b)]((_0x3c81e4,_0x5d9b6b)=>({'changes':_0x3c81e4,'state':_0x24cf27(0x137),'index':_0x5d9b6b}));}}export function isValidReplyType(_0xa41bf9){const _0x57189f=_0x39cbc6;return Object[_0x57189f(0x133)](AI_REPLY_TYPES)[_0x57189f(0xe9)](_0xa41bf9);}export function isIgnoredReplyType(_0x5d823a){const _0x42bfd2=_0x39cbc6;return AI_REPLY_TYPES_IGNORED[_0x42bfd2(0xe9)](_0x5d823a);}export function isReplyTitleType(_0x302efd){return _0x302efd===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x371d32){const _0x473d5c=_0x39cbc6;return _0x473d5c(0x103)===_0x371d32;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x262abc=_0x5c6e;(function(_0x3c2ed9,_0x250aa3){const _0x5dab15=_0x5c6e,_0x11b5ff=_0x3c2ed9();while(!![]){try{const _0x223e8a=-parseInt(_0x5dab15(0xae))/0x1+-parseInt(_0x5dab15(0xcc))/0x2*(-parseInt(_0x5dab15(0xc9))/0x3)+-parseInt(_0x5dab15(0xdc))/0x4*(-parseInt(_0x5dab15(0xcb))/0x5)+parseInt(_0x5dab15(0xa7))/0x6+-parseInt(_0x5dab15(0xc2))/0x7*(-parseInt(_0x5dab15(0xe1))/0x8)+-parseInt(_0x5dab15(0xaf))/0x9+-parseInt(_0x5dab15(0xd0))/0xa;if(_0x223e8a===_0x250aa3)break;else _0x11b5ff['push'](_0x11b5ff['shift']());}catch(_0x88c145){_0x11b5ff['push'](_0x11b5ff['shift']());}}}(_0x5d08,0x6373d));import{ObservableMixin as _0x1955a3,uid as _0xa30893}from'ckeditor5/src/utils.js';function _0x5c6e(_0x2d4b11,_0xdfdf10){const _0x5d08dc=_0x5d08();return _0x5c6e=function(_0x5c6e53,_0x3329bb){_0x5c6e53=_0x5c6e53-0x9e;let _0x4f64fc=_0x5d08dc[_0x5c6e53];return _0x4f64fc;},_0x5c6e(_0x2d4b11,_0xdfdf10);}import{findAllByAttribute as _0x1906b6,findByAttribute as _0x5ccbdd,getAttribute as _0x3f505f,isComment as _0x3db73d,isTag as _0x247db1,insertElement as _0xf4a3ad,moveElement as _0x6474ba,removeElement as _0x29c261,replaceElement as _0xca1331,serialize as _0x2a7954,setAttribute as _0x2a5abd,clone as _0xbdbbd4,findAllComments as _0x1d9ad5,getParents as _0x1bd125,getNodeNestingLevel as _0x245bd4,areNodesSame as _0x565fa1,removeElementsAfter as _0x151c6c}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x1955a3(){[_0x262abc(0xda)];[_0x262abc(0xd2)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x262abc(0xad)]=new Set();constructor(_0x24dc52){const _0x3d8a52=_0x262abc;super(),this[_0x3d8a52(0xda)]=_0x24dc52||_0xa30893;}[_0x262abc(0xb1)](_0x196865,_0x340f83,_0x47ef2c){const _0x98ff92=_0x262abc,_0x20ff87=_0xbdbbd4(_0x196865);if(0x0===_0x340f83[_0x98ff92(0xbe)][_0x98ff92(0xa0)]){const _0x2bafc2=[];return _0x1906b6(_0x98ff92(0xd9),_0x98ff92(0xd3),_0x20ff87)[_0x98ff92(0xe0)](_0x1ccb66=>{const _0x30a135=_0x98ff92,_0x33ddb7=this[_0x30a135(0xda)]();_0x2a5abd(_0x1ccb66,_0x30a135(0xd9),_0x33ddb7),_0x2bafc2[_0x30a135(0xdd)](_0x33ddb7);}),this[_0x98ff92(0xc6)](_0x20ff87),{'parsedContent':_0x20ff87,'newNodeIds':_0x2bafc2,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x47ef2c&&_0x47ef2c[_0x98ff92(0xd7)]&&this[_0x98ff92(0xdb)](_0x20ff87),this[_0x98ff92(0xd2)][_0x98ff92(0xc0)]=[],this[_0x98ff92(0xd2)][_0x98ff92(0xd6)]=[],this[_0x98ff92(0xd2)][_0x98ff92(0xd5)]=[],this[_0x98ff92(0xd2)][_0x98ff92(0xb9)]=[],this[_0x98ff92(0xd2)][_0x98ff92(0xe3)]=null,this[_0x98ff92(0xad)]=new Set(_0x1906b6(_0x98ff92(0xd9),null,_0x340f83)[_0x98ff92(0xde)](_0xda865=>_0x3f505f(_0xda865,_0x98ff92(0xd9)))[_0x98ff92(0xbf)](_0xaa4846=>!!_0xaa4846));let _0x50c542=-0x1,_0x5643da=!0x1;const _0x47a03b=_0x20ff87[_0x98ff92(0xbe)],_0x3eb6af=Array[_0x98ff92(0xd4)](_0x47a03b)[_0x98ff92(0xbf)](_0x1a3989=>!(0x3===_0x1a3989[_0x98ff92(0xa9)]&&''===_0x2a7954(_0x1a3989)[_0x98ff92(0xb2)]())),_0x30e147=_0x3eb6af[_0x98ff92(0xa0)];for(let _0x4ad63a=0x0;_0x4ad63a<_0x30e147;_0x4ad63a++){const _0x52e33c=_0x3eb6af[_0x4ad63a],_0x3f40f6=_0x3eb6af[_0x4ad63a+0x1];if(this[_0x98ff92(0xd8)](_0x52e33c)){if(-0x1===_0x50c542&&(_0x50c542=_0x4ad63a),this[_0x98ff92(0xb8)](_0x52e33c),!this[_0x98ff92(0xd8)](_0x3f40f6)){const [_0x51f960,_0xd31b30]=this[_0x98ff92(0xd1)](_0x52e33c,_0x5643da,_0x340f83);if(_0x51f960){const _0xabec49=Array[_0x98ff92(0xd4)](_0x3eb6af)[_0x98ff92(0xc1)](_0x50c542,_0x4ad63a+0x1);this[_0x98ff92(0xb0)](_0x51f960,_0xabec49,_0xd31b30),_0x50c542=-0x1;}}}else{if(this[_0x98ff92(0xa3)](_0x52e33c))_0x5643da=!0x0;else{if(this[_0x98ff92(0xb3)](_0x52e33c)){const _0x256960=_0x3f505f(_0x52e33c,_0x98ff92(0xd9));if(_0x256960&&this[_0x98ff92(0xad)][_0x98ff92(0xbc)](_0x256960)){const _0xcbabcb=_0x5ccbdd(_0x98ff92(0xd9),_0x256960,_0x340f83);this[_0x98ff92(0xa5)](_0xcbabcb,_0x52e33c);}if(this[_0x98ff92(0xd2)][_0x98ff92(0xd5)][_0x98ff92(0xcf)](_0x256960)){const _0x4331a6=this[_0x98ff92(0xd2)][_0x98ff92(0xd5)][_0x98ff92(0xca)](_0x256960);this[_0x98ff92(0xd2)][_0x98ff92(0xd5)][_0x98ff92(0xdf)](_0x4331a6,0x1);}}else{if(this[_0x98ff92(0xc5)](_0x52e33c)){const _0x580556=_0x3f505f(_0x52e33c,_0x98ff92(0xd9));this[_0x98ff92(0xd2)][_0x98ff92(0xd6)][_0x98ff92(0xcf)](_0x580556)||this[_0x98ff92(0xb7)](_0x52e33c);}}}}}for(const _0x1f7616 of this[_0x98ff92(0xd2)][_0x98ff92(0xd5)]){const _0x47bef8=_0x5ccbdd(_0x98ff92(0xd9),_0x1f7616,_0x340f83);if(_0x47bef8){if(_0x47ef2c&&_0x47ef2c[_0x98ff92(0xa1)]){this[_0x98ff92(0xd2)][_0x98ff92(0xe3)]=_0x1f7616;const _0x4b1346=_0x47ef2c[_0x98ff92(0xa1)][_0x98ff92(0xa8)](!0x0);_0x2a5abd(_0x4b1346,_0x98ff92(0xd9),_0x1f7616),_0x2a5abd(_0x4b1346,_0x98ff92(0xb5),_0x98ff92(0xa4)),_0xca1331(_0x47bef8,_0x4b1346);}else _0x29c261(_0x47bef8);}}if(_0x1906b6(_0x98ff92(0x9f),null,_0x340f83)[_0x98ff92(0xe0)](_0x20b071=>{const _0x39442d=_0x98ff92,_0x5e3f04=_0x3f505f(_0x20b071,_0x39442d(0x9f)),_0xdef964=_0x5ccbdd(_0x39442d(0xd9),_0x5e3f04,_0x340f83);_0xdef964&&_0x6474ba(_0xdef964,_0x20b071);}),_0x1906b6(_0x98ff92(0xd9),_0x98ff92(0xd3),_0x340f83)[_0x98ff92(0xe0)](_0x241cb5=>{const _0x3abc3a=_0x98ff92,_0x375d6a=this[_0x3abc3a(0xc4)](_0x241cb5);_0x2a5abd(_0x241cb5,_0x3abc3a(0xd9),_0x375d6a),this[_0x3abc3a(0xd2)][_0x3abc3a(0xc0)][_0x3abc3a(0xdd)](_0x375d6a);}),this[_0x98ff92(0xc6)](_0x340f83),_0x47ef2c&&_0x47ef2c[_0x98ff92(0xd7)]&&this[_0x98ff92(0xaa)](_0x340f83,_0x47ef2c[_0x98ff92(0xc8)]||0x0),_0x47ef2c&&_0x47ef2c[_0x98ff92(0xb4)]&&this[_0x98ff92(0xd2)][_0x98ff92(0xe3)]){let _0x9f3f4b=_0x5ccbdd(_0x98ff92(0xd9),this[_0x98ff92(0xd2)][_0x98ff92(0xe3)],_0x340f83);for(;_0x9f3f4b;)_0x151c6c(_0x9f3f4b),_0x9f3f4b=_0x9f3f4b[_0x98ff92(0xc3)];}return{'parsedContent':_0x340f83,'newNodeIds':this[_0x98ff92(0xd2)][_0x98ff92(0xc0)],'modifiedNodeIds':this[_0x98ff92(0xd2)][_0x98ff92(0xd6)],'removedNodeIds':this[_0x98ff92(0xd2)][_0x98ff92(0xd5)]};}[_0x262abc(0xb0)](_0x172822,_0x106a73,_0x3d46f0){const _0x91eb9c=_0x262abc;for(const _0x28ee9f of _0x106a73){const _0x2caa29=this[_0x91eb9c(0xc4)](_0x28ee9f);_0x2a5abd(_0x28ee9f,_0x91eb9c(0xd9),_0x2caa29),this[_0x91eb9c(0xd2)][_0x91eb9c(0xc0)][_0x91eb9c(0xdd)](_0x2caa29),this[_0x91eb9c(0xd2)][_0x91eb9c(0xe3)]=_0x2caa29;}const _0x423067=_0x91eb9c(0xab)===_0x3d46f0||_0x91eb9c(0xbd)===_0x3d46f0?_0x106a73[_0x91eb9c(0xba)]():_0x106a73;for(const _0x1dd0f3 of _0x423067)_0xf4a3ad(_0x172822,_0x1dd0f3,_0x3d46f0);}[_0x262abc(0xa5)](_0x4e41be,_0x511836){const _0x2a587d=_0x262abc;if(!_0x4e41be)return;if(_0x565fa1(_0x4e41be,_0x511836))return;const _0x25bd54=this[_0x2a587d(0xc4)](_0x4e41be);_0x2a5abd(_0x511836,_0x2a587d(0xd9),_0x25bd54),this[_0x2a587d(0xd2)][_0x2a587d(0xd6)][_0x2a587d(0xdd)](_0x25bd54),this[_0x2a587d(0xd2)][_0x2a587d(0xe3)]=_0x25bd54,_0xca1331(_0x4e41be,_0x511836[_0x2a587d(0xa8)](!0x0));}[_0x262abc(0xd1)](_0x5475e2,_0x29e711,_0xe42614){const _0x72909e=_0x262abc,_0x1aa6f2=this[_0x72909e(0xce)](_0x5475e2,!0x1);if(_0x1aa6f2){const _0x44dc9f=this[_0x72909e(0xe4)](_0x1aa6f2),_0x4451a7=_0x5ccbdd(_0x72909e(0xd9),_0x44dc9f,_0xe42614);if(_0x4451a7)return[_0x4451a7,_0x72909e(0xbd)];this[_0x72909e(0xd2)][_0x72909e(0xb9)][_0x72909e(0xdd)](_0x44dc9f);}const _0x171042=this[_0x72909e(0xc7)](_0x5475e2,!0x1);if(_0x171042){const _0x57e974=this[_0x72909e(0xe4)](_0x171042),_0x25c97c=_0x5ccbdd(_0x72909e(0xd9),_0x57e974,_0xe42614);if(_0x25c97c)return[_0x25c97c,_0x72909e(0xcd)];this[_0x72909e(0xd2)][_0x72909e(0xb9)][_0x72909e(0xdd)](_0x57e974);}return _0x29e711?_0x5475e2[_0x72909e(0xa2)]?this[_0x72909e(0xe2)](_0x5475e2,_0xe42614):[_0xe42614[_0x72909e(0xbe)][_0xe42614[_0x72909e(0xbe)][_0x72909e(0xa0)]-0x1],_0x72909e(0xbd)]:[_0xe42614[_0x72909e(0xbe)][0x0],_0x72909e(0xcd)];}[_0x262abc(0xe2)](_0xdaebcc,_0xab3679){const _0x4fa37a=_0x262abc,_0x5882d5=[],_0x5789eb=this[_0x4fa37a(0xce)](_0xdaebcc,!0x0);if(_0x5789eb){const _0x383dc3=this[_0x4fa37a(0xe4)](_0x5789eb),_0x37fa2b=_0x5ccbdd(_0x4fa37a(0xd9),_0x383dc3,_0xab3679);_0x37fa2b&&_0x5882d5[_0x4fa37a(0xdd)]([_0x37fa2b,_0x4fa37a(0xbd)]);}const _0x2ff32=this[_0x4fa37a(0xc7)](_0xdaebcc,!0x0);if(_0x2ff32){const _0x2a00c2=this[_0x4fa37a(0xe4)](_0x2ff32),_0x58107a=_0x5ccbdd(_0x4fa37a(0xd9),_0x2a00c2,_0xab3679);_0x58107a&&_0x5882d5[_0x4fa37a(0xdd)]([_0x58107a,_0x4fa37a(0xcd)]);}if(_0x5882d5[_0x4fa37a(0xa0)]>0x1)return _0x245bd4(_0x5882d5[0x0][0x0])<=_0x245bd4(_0x5882d5[0x1][0x0])?_0x5882d5[0x0]:_0x5882d5[0x1];return 0x1===_0x5882d5[_0x4fa37a(0xa0)]?_0x5882d5[0x0]:[_0xab3679[_0x4fa37a(0xa6)],_0x4fa37a(0xbd)];}[_0x262abc(0xc7)](_0x32dfe4,_0x4e1721){const _0xf1adad=_0x262abc;let _0x4464ba=_0x32dfe4[_0xf1adad(0xa2)],_0x569da3=null,_0x36af3d=!0x1;for(;_0x4464ba;){if(_0x3db73d(_0x4464ba)){if(this[_0xf1adad(0xc5)](_0x4464ba)&&(_0x569da3=_0x4464ba),this[_0xf1adad(0xa3)](_0x4464ba)&&_0x4e1721&&!_0x36af3d){_0x36af3d=!0x0,_0x4464ba=_0x4464ba[_0xf1adad(0xa2)];continue;}break;}const _0x31dd4f=_0x3f505f(_0x4464ba,_0xf1adad(0xd9));if(_0x31dd4f&&_0xf1adad(0xd3)!==_0x31dd4f&&this[_0xf1adad(0xad)][_0xf1adad(0xbc)](_0x31dd4f)){_0x569da3=_0x4464ba;break;}_0x4464ba=_0x4464ba[_0xf1adad(0xa2)];}return _0x569da3;}[_0x262abc(0xce)](_0x2a7153,_0x2be60c){const _0x516b06=_0x262abc;let _0x3608cb=_0x2a7153[_0x516b06(0x9e)],_0x258e7a=null,_0x27bd52=!0x1;for(;_0x3608cb;){if(_0x3db73d(_0x3608cb)){if(this[_0x516b06(0xc5)](_0x3608cb)&&(_0x258e7a=_0x3608cb),this[_0x516b06(0xa3)](_0x3608cb)&&_0x2be60c&&!_0x27bd52){_0x27bd52=!0x0,_0x3608cb=_0x3608cb[_0x516b06(0x9e)];continue;}break;}const _0x477eec=_0x3f505f(_0x3608cb,_0x516b06(0xd9));if(_0x477eec&&_0x516b06(0xd3)!==_0x477eec&&this[_0x516b06(0xad)][_0x516b06(0xbc)](_0x477eec)){_0x258e7a=_0x3608cb;break;}_0x3608cb=_0x3608cb[_0x516b06(0x9e)];}return _0x258e7a;}[_0x262abc(0xb8)](_0x44f589){const _0x1e1e56=_0x262abc;_0x247db1(_0x44f589)&&_0x1906b6(_0x1e1e56(0xd9),null,_0x44f589)[_0x1e1e56(0xe0)](_0x330100=>{const _0x4fb672=_0x1e1e56;if(this[_0x4fb672(0xb3)](_0x330100)&&!this[_0x4fb672(0xbb)](_0x330100)){const _0x2183db=_0x3f505f(_0x330100,_0x4fb672(0xd9));_0x2a5abd(_0x330100,_0x4fb672(0x9f),_0x2183db),_0x2a5abd(_0x330100,_0x4fb672(0xd9),null);}});}[_0x262abc(0xe4)](_0x59ba5f){const _0x3255fd=_0x262abc;if(!_0x59ba5f)return null;if(_0x247db1(_0x59ba5f))return _0x3f505f(_0x59ba5f,_0x3255fd(0xd9));if(_0x3db73d(_0x59ba5f)){const _0x520674=_0x2a7954(_0x59ba5f)[_0x3255fd(0xac)](/removed[\s*-]data-id="([^"]+)"/);if(_0x520674&&_0x520674[0x1])return _0x520674[0x1];}return null;}[_0x262abc(0xb7)](_0x3d2db6){const _0x58be38=_0x262abc;if(_0x3db73d(_0x3d2db6)){const _0x3bcb8c=_0x2a7954(_0x3d2db6)[_0x58be38(0xac)](/removed[\s*-]data-id="([^"]+)"/);_0x3bcb8c&&_0x3bcb8c[0x1]&&this[_0x58be38(0xd2)][_0x58be38(0xd5)][_0x58be38(0xdd)](_0x3bcb8c[0x1]);}}[_0x262abc(0xc4)](_0x33ba2c){const _0x535566=_0x262abc;return this[_0x535566(0xb3)](_0x33ba2c)?_0x3f505f(_0x33ba2c,_0x535566(0xd9)):this[_0x535566(0xda)]();}[_0x262abc(0xc6)](_0x4cc71b){const _0xd22c9f=_0x262abc;_0x1d9ad5(_0x4cc71b)[_0xd22c9f(0xbf)](_0x385baa=>this[_0xd22c9f(0xc5)](_0x385baa)||this[_0xd22c9f(0xa3)](_0x385baa))[_0xd22c9f(0xe0)](_0x19b6f8=>{_0x29c261(_0x19b6f8);});}[_0x262abc(0xdb)](_0x2be0a8){const _0xcc6aa4=_0x262abc,_0x3caed0=_0x2be0a8[_0xcc6aa4(0xbe)],_0x180e29=_0x3caed0[_0x3caed0[_0xcc6aa4(0xa0)]-0x1];_0x180e29&&_0x247db1(_0x180e29)&&_0x2a5abd(_0x180e29,_0xcc6aa4(0xb6),_0xcc6aa4(0xa4));}[_0x262abc(0xaa)](_0x50b5f5,_0x265442){const _0x3c61db=_0x262abc,_0x40e4a8=_0x5ccbdd(_0x3c61db(0xb6),_0x3c61db(0xa4),_0x50b5f5);if(!_0x40e4a8)return;const _0x2cb80f=_0x1bd125(_0x40e4a8)[_0x3c61db(0xc1)](0x0,-0x1),_0x151326=_0x2cb80f[_0x3c61db(0xa0)];let _0x12e79b=_0x40e4a8;if(_0x151326>_0x265442){let _0x2d392f=_0x151326,_0x37c8c6=null;for(;_0x2d392f>_0x265442&&_0x2d392f>=0x0;)_0x2d392f--,_0x37c8c6=_0x2cb80f[_0x2d392f];_0x37c8c6&&(_0x12e79b=_0x37c8c6,_0x2a5abd(_0x40e4a8,_0x3c61db(0xb6),null),_0x2a5abd(_0x37c8c6,_0x3c61db(0xb6),_0x3c61db(0xa4)));}else{if(_0x151326<_0x265442){let _0x5de177=_0x151326,_0x348d31=_0x40e4a8;for(;_0x5de177<_0x265442;){const _0x5b9903=_0x348d31[_0x3c61db(0xbe)][_0x3c61db(0xbf)](_0x665eeb=>_0x247db1(_0x665eeb));if(0x0===_0x5b9903[_0x3c61db(0xa0)])break;_0x5de177++,_0x348d31=_0x5b9903[_0x5b9903[_0x3c61db(0xa0)]-0x1];}_0x348d31&&(_0x12e79b=_0x348d31,_0x2a5abd(_0x40e4a8,_0x3c61db(0xb6),null),_0x2a5abd(_0x348d31,_0x3c61db(0xb6),_0x3c61db(0xa4)));}}let _0x3baef1=_0x12e79b;for(;_0x3baef1;){for(;_0x3baef1[_0x3c61db(0xa2)];)_0x3baef1=_0x3baef1[_0x3c61db(0xa2)],_0x247db1(_0x3baef1)&&_0x2a5abd(_0x3baef1,_0x3c61db(0xb6),_0x3c61db(0xa4));_0x3baef1=_0x3baef1[_0x3c61db(0xc3)];}}[_0x262abc(0xd8)](_0x2a5856){const _0x3a0c63=_0x262abc;return Boolean(_0x3a0c63(0xd3)===_0x3f505f(_0x2a5856,_0x3a0c63(0xd9)));}[_0x262abc(0xb3)](_0x1f9e46){const _0x3fcd4f=_0x262abc;return Boolean((_0x3f505f(_0x1f9e46,_0x3fcd4f(0xd9))||'')[_0x3fcd4f(0xa0)]>0x0&&_0x3fcd4f(0xd3)!==_0x3f505f(_0x1f9e46,_0x3fcd4f(0xd9)));}[_0x262abc(0xc5)](_0x526398){const _0x58c320=_0x262abc;return!!_0x526398&&Boolean(_0x3db73d(_0x526398)&&_0x2a7954(_0x526398)[_0x58c320(0xac)](/removed[\s*-]data-id="[^"]+"/));}[_0x262abc(0xbb)](_0x1a4bb3){const _0x40da8b=_0x262abc;let _0xdfb20c=_0x1a4bb3[_0x40da8b(0xc3)];for(;_0xdfb20c;){if(_0x3f505f(_0xdfb20c,_0x40da8b(0x9f)))return!0x0;_0xdfb20c=_0xdfb20c[_0x40da8b(0xc3)];}return!0x1;}[_0x262abc(0xa3)](_0x6b2193){const _0x52aeea=_0x262abc;return Boolean(_0x3db73d(_0x6b2193)&&_0x2a7954(_0x6b2193)[_0x52aeea(0xac)](/\s*existing[\s*-](content|document)\s*/g));}}function _0x5d08(){const _0x5205b8=['data-unstable','_storeDeletedElementIds','_markWrappedElements','invalidIds','reverse','_hasWrappedParent','has','afterend','childNodes','filter','newIds','slice','14iWhAAo','parentNode','_getUid','_isDelNode','_removeSpecialComments','_findNextElementWithDataId','markUnstableElementsDepth','738141hkzIZU','indexOf','47720NJVMFi','2KQxpcl','beforebegin','_findPrevElementWithDataId','includes','3972240MuvGoe','_findReferenceNode','_touchedNodesState','new-element','from','removedIds','modifiedIds','markUnstableElements','_isNewNode','data-id','_generateUid','_markLastTagElementUnstable','236uBMNix','push','map','splice','forEach','2073752KmoeHl','_findFallbackReferenceNode','lastTouchedId','_getNodeDataId','previousSibling','data-wrapped-id','length','replaceRemovedWith','nextSibling','_isExistingContentComment','true','_replaceNode','lastChild','269040TFoXrR','cloneNode','nodeType','_markUnstableElements','afterbegin','match','_existingDataIds','294129HKSSZF','2463399wkAEPP','_insertNodes','merge','trim','_isExistingNode','cutAfterLastChange','data-removed'];_0x5d08=function(){return _0x5205b8;};return _0x5d08();}
23
+ function _0x17ca(){const _0x22ecfe=['removedIds','_findPrevElementWithDataId','_isDelNode','length','_generateUid','_isNewNode','_isExistingNode','indexOf','reverse','slice','3352344aaQRBY','_getNodeDataId','afterend','merge','parentNode','map','_findNextElementWithDataId','nextSibling','cloneNode','_removeSpecialComments','from','2qEXqRB','441443HpPRyO','data-wrapped-id','markUnstableElementsDepth','734846BjWPtT','_insertNodes','_findReferenceNode','childNodes','_findFallbackReferenceNode','match','markUnstableElements','_isExistingContentComment','9fLnnDQ','push','_markWrappedElements','has','invalidIds','trim','forEach','lastChild','newIds','_touchedNodesState','42fOiiGH','data-removed','modifiedIds','nodeType','lastTouchedId','cutAfterLastChange','data-unstable','_markUnstableElements','splice','true','_replaceNode','new-element','760024fltVVZ','_markLastTagElementUnstable','replaceRemovedWith','includes','previousSibling','843155VZVUSD','beforebegin','afterbegin','2331882vSlwnV','6397560wVDTXZ','data-id','_getUid','_existingDataIds','filter','_storeDeletedElementIds','_hasWrappedParent'];_0x17ca=function(){return _0x22ecfe;};return _0x17ca();}const _0x5d9397=_0x3f5a;(function(_0x4e8b43,_0x1fbf8e){const _0x3f16be=_0x3f5a,_0x15e4d6=_0x4e8b43();while(!![]){try{const _0x11a13c=parseInt(_0x3f16be(0x137))/0x1*(parseInt(_0x3f16be(0x136))/0x2)+parseInt(_0x3f16be(0x160))/0x3+-parseInt(_0x3f16be(0x12b))/0x4+-parseInt(_0x3f16be(0x15d))/0x5*(-parseInt(_0x3f16be(0x14c))/0x6)+-parseInt(_0x3f16be(0x13a))/0x7+parseInt(_0x3f16be(0x158))/0x8*(-parseInt(_0x3f16be(0x142))/0x9)+-parseInt(_0x3f16be(0x161))/0xa;if(_0x11a13c===_0x1fbf8e)break;else _0x15e4d6['push'](_0x15e4d6['shift']());}catch(_0x4182c5){_0x15e4d6['push'](_0x15e4d6['shift']());}}}(_0x17ca,0xb01b3));import{ObservableMixin as _0x26d810,uid as _0x1b9c51}from'ckeditor5/src/utils.js';function _0x3f5a(_0x3203c9,_0x4a4267){const _0x17ca98=_0x17ca();return _0x3f5a=function(_0x3f5a2d,_0x563f0c){_0x3f5a2d=_0x3f5a2d-0x12a;let _0x1615a5=_0x17ca98[_0x3f5a2d];return _0x1615a5;},_0x3f5a(_0x3203c9,_0x4a4267);}import{findAllByAttribute as _0x4e1af9,findByAttribute as _0x37c531,getAttribute as _0x2b31ac,isComment as _0x5c1da2,isTag as _0x83f103,insertElement as _0xda863f,moveElement as _0x34299a,removeElement as _0x545d08,replaceElement as _0x249d0a,serialize as _0x23bfe3,setAttribute as _0x9d8b9c,clone as _0x4c5cb5,findAllComments as _0x25deeb,getParents as _0x588691,getNodeNestingLevel as _0x451550,areNodesSame as _0x11e4e2,removeElementsAfter as _0x4f333d}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x26d810(){[_0x5d9397(0x16c)];[_0x5d9397(0x14b)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x5d9397(0x164)]=new Set();constructor(_0x183f35){const _0x501a10=_0x5d9397;super(),this[_0x501a10(0x16c)]=_0x183f35||_0x1b9c51;}[_0x5d9397(0x12e)](_0x5c7e4d,_0x169c58,_0x2ebbfc){const _0x53c931=_0x5d9397,_0x358f0a=_0x4c5cb5(_0x5c7e4d);if(0x0===_0x169c58[_0x53c931(0x13d)][_0x53c931(0x16b)]){const _0x2259cf=[];return _0x4e1af9(_0x53c931(0x162),_0x53c931(0x157),_0x358f0a)[_0x53c931(0x148)](_0x37d9cc=>{const _0x140dca=_0x53c931,_0x2ac511=this[_0x140dca(0x16c)]();_0x9d8b9c(_0x37d9cc,_0x140dca(0x162),_0x2ac511),_0x2259cf[_0x140dca(0x143)](_0x2ac511);}),this[_0x53c931(0x134)](_0x358f0a),{'parsedContent':_0x358f0a,'newNodeIds':_0x2259cf,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x140)]&&this[_0x53c931(0x159)](_0x358f0a),this[_0x53c931(0x14b)][_0x53c931(0x14a)]=[],this[_0x53c931(0x14b)][_0x53c931(0x14e)]=[],this[_0x53c931(0x14b)][_0x53c931(0x168)]=[],this[_0x53c931(0x14b)][_0x53c931(0x146)]=[],this[_0x53c931(0x14b)][_0x53c931(0x150)]=null,this[_0x53c931(0x164)]=new Set(_0x4e1af9(_0x53c931(0x162),null,_0x169c58)[_0x53c931(0x130)](_0x52677b=>_0x2b31ac(_0x52677b,_0x53c931(0x162)))[_0x53c931(0x165)](_0x22fc80=>!!_0x22fc80));let _0x5f2939=-0x1,_0x3103b2=!0x1;const _0x105b25=_0x358f0a[_0x53c931(0x13d)],_0x3d67f2=Array[_0x53c931(0x135)](_0x105b25)[_0x53c931(0x165)](_0x3dce55=>!(0x3===_0x3dce55[_0x53c931(0x14f)]&&''===_0x23bfe3(_0x3dce55)[_0x53c931(0x147)]())),_0x3c5030=_0x3d67f2[_0x53c931(0x16b)];for(let _0x44604e=0x0;_0x44604e<_0x3c5030;_0x44604e++){const _0x39effa=_0x3d67f2[_0x44604e],_0x4b1840=_0x3d67f2[_0x44604e+0x1];if(this[_0x53c931(0x16d)](_0x39effa)){if(-0x1===_0x5f2939&&(_0x5f2939=_0x44604e),this[_0x53c931(0x144)](_0x39effa),!this[_0x53c931(0x16d)](_0x4b1840)){const [_0x2f7977,_0x3f577d]=this[_0x53c931(0x13c)](_0x39effa,_0x3103b2,_0x169c58);if(_0x2f7977){const _0x51b4e0=Array[_0x53c931(0x135)](_0x3d67f2)[_0x53c931(0x12a)](_0x5f2939,_0x44604e+0x1);this[_0x53c931(0x13b)](_0x2f7977,_0x51b4e0,_0x3f577d),_0x5f2939=-0x1;}}}else{if(this[_0x53c931(0x141)](_0x39effa))_0x3103b2=!0x0;else{if(this[_0x53c931(0x16e)](_0x39effa)){const _0x5d31d5=_0x2b31ac(_0x39effa,_0x53c931(0x162));if(_0x5d31d5&&this[_0x53c931(0x164)][_0x53c931(0x145)](_0x5d31d5)){const _0x188f6f=_0x37c531(_0x53c931(0x162),_0x5d31d5,_0x169c58);this[_0x53c931(0x156)](_0x188f6f,_0x39effa);}if(this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x15b)](_0x5d31d5)){const _0x58da03=this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x16f)](_0x5d31d5);this[_0x53c931(0x14b)][_0x53c931(0x168)][_0x53c931(0x154)](_0x58da03,0x1);}}else{if(this[_0x53c931(0x16a)](_0x39effa)){const _0x2f972c=_0x2b31ac(_0x39effa,_0x53c931(0x162));this[_0x53c931(0x14b)][_0x53c931(0x14e)][_0x53c931(0x15b)](_0x2f972c)||this[_0x53c931(0x166)](_0x39effa);}}}}}for(const _0x139916 of this[_0x53c931(0x14b)][_0x53c931(0x168)]){const _0x1ee883=_0x37c531(_0x53c931(0x162),_0x139916,_0x169c58);if(_0x1ee883){if(_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x15a)]){this[_0x53c931(0x14b)][_0x53c931(0x150)]=_0x139916;const _0x55ac88=_0x2ebbfc[_0x53c931(0x15a)][_0x53c931(0x133)](!0x0);_0x9d8b9c(_0x55ac88,_0x53c931(0x162),_0x139916),_0x9d8b9c(_0x55ac88,_0x53c931(0x14d),_0x53c931(0x155)),_0x249d0a(_0x1ee883,_0x55ac88);}else _0x545d08(_0x1ee883);}}if(_0x4e1af9(_0x53c931(0x138),null,_0x169c58)[_0x53c931(0x148)](_0x3b431d=>{const _0x255019=_0x53c931,_0x3abc57=_0x2b31ac(_0x3b431d,_0x255019(0x138)),_0xa6f98f=_0x37c531(_0x255019(0x162),_0x3abc57,_0x169c58);_0xa6f98f&&_0x34299a(_0xa6f98f,_0x3b431d);}),_0x4e1af9(_0x53c931(0x162),_0x53c931(0x157),_0x169c58)[_0x53c931(0x148)](_0x9c96e6=>{const _0x2ad207=_0x53c931,_0x3679e1=this[_0x2ad207(0x163)](_0x9c96e6);_0x9d8b9c(_0x9c96e6,_0x2ad207(0x162),_0x3679e1),this[_0x2ad207(0x14b)][_0x2ad207(0x14a)][_0x2ad207(0x143)](_0x3679e1);}),this[_0x53c931(0x134)](_0x169c58),_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x140)]&&this[_0x53c931(0x153)](_0x169c58,_0x2ebbfc[_0x53c931(0x139)]||0x0),_0x2ebbfc&&_0x2ebbfc[_0x53c931(0x151)]&&this[_0x53c931(0x14b)][_0x53c931(0x150)]){let _0x510844=_0x37c531(_0x53c931(0x162),this[_0x53c931(0x14b)][_0x53c931(0x150)],_0x169c58);for(;_0x510844;)_0x4f333d(_0x510844),_0x510844=_0x510844[_0x53c931(0x12f)];}return{'parsedContent':_0x169c58,'newNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x14a)],'modifiedNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x14e)],'removedNodeIds':this[_0x53c931(0x14b)][_0x53c931(0x168)]};}[_0x5d9397(0x13b)](_0x3d1573,_0x3fff19,_0x1d620b){const _0x24c8da=_0x5d9397;for(const _0x439c20 of _0x3fff19){const _0x5de363=this[_0x24c8da(0x163)](_0x439c20);_0x9d8b9c(_0x439c20,_0x24c8da(0x162),_0x5de363),this[_0x24c8da(0x14b)][_0x24c8da(0x14a)][_0x24c8da(0x143)](_0x5de363),this[_0x24c8da(0x14b)][_0x24c8da(0x150)]=_0x5de363;}const _0x4c0baf=_0x24c8da(0x15f)===_0x1d620b||_0x24c8da(0x12d)===_0x1d620b?_0x3fff19[_0x24c8da(0x170)]():_0x3fff19;for(const _0x3f07f3 of _0x4c0baf)_0xda863f(_0x3d1573,_0x3f07f3,_0x1d620b);}[_0x5d9397(0x156)](_0x3d317c,_0x4a268a){const _0x53a0cf=_0x5d9397;if(!_0x3d317c)return;if(_0x11e4e2(_0x3d317c,_0x4a268a))return;const _0xcea100=this[_0x53a0cf(0x163)](_0x3d317c);_0x9d8b9c(_0x4a268a,_0x53a0cf(0x162),_0xcea100),this[_0x53a0cf(0x14b)][_0x53a0cf(0x14e)][_0x53a0cf(0x143)](_0xcea100),this[_0x53a0cf(0x14b)][_0x53a0cf(0x150)]=_0xcea100,_0x249d0a(_0x3d317c,_0x4a268a[_0x53a0cf(0x133)](!0x0));}[_0x5d9397(0x13c)](_0x347732,_0x435466,_0x397306){const _0x56d873=_0x5d9397,_0x4f6d94=this[_0x56d873(0x169)](_0x347732,!0x1);if(_0x4f6d94){const _0x3818ec=this[_0x56d873(0x12c)](_0x4f6d94),_0x4fdb9e=_0x37c531(_0x56d873(0x162),_0x3818ec,_0x397306);if(_0x4fdb9e)return[_0x4fdb9e,_0x56d873(0x12d)];this[_0x56d873(0x14b)][_0x56d873(0x146)][_0x56d873(0x143)](_0x3818ec);}const _0x3c3ba1=this[_0x56d873(0x131)](_0x347732,!0x1);if(_0x3c3ba1){const _0x433966=this[_0x56d873(0x12c)](_0x3c3ba1),_0x46eead=_0x37c531(_0x56d873(0x162),_0x433966,_0x397306);if(_0x46eead)return[_0x46eead,_0x56d873(0x15e)];this[_0x56d873(0x14b)][_0x56d873(0x146)][_0x56d873(0x143)](_0x433966);}return _0x435466?_0x347732[_0x56d873(0x132)]?this[_0x56d873(0x13e)](_0x347732,_0x397306):[_0x397306[_0x56d873(0x13d)][_0x397306[_0x56d873(0x13d)][_0x56d873(0x16b)]-0x1],_0x56d873(0x12d)]:[_0x397306[_0x56d873(0x13d)][0x0],_0x56d873(0x15e)];}[_0x5d9397(0x13e)](_0x632bee,_0x40ba33){const _0x4c3986=_0x5d9397,_0x52e975=[],_0x20055c=this[_0x4c3986(0x169)](_0x632bee,!0x0);if(_0x20055c){const _0x4add0b=this[_0x4c3986(0x12c)](_0x20055c),_0x1cd402=_0x37c531(_0x4c3986(0x162),_0x4add0b,_0x40ba33);_0x1cd402&&_0x52e975[_0x4c3986(0x143)]([_0x1cd402,_0x4c3986(0x12d)]);}const _0x22421f=this[_0x4c3986(0x131)](_0x632bee,!0x0);if(_0x22421f){const _0x538452=this[_0x4c3986(0x12c)](_0x22421f),_0x10832c=_0x37c531(_0x4c3986(0x162),_0x538452,_0x40ba33);_0x10832c&&_0x52e975[_0x4c3986(0x143)]([_0x10832c,_0x4c3986(0x15e)]);}if(_0x52e975[_0x4c3986(0x16b)]>0x1)return _0x451550(_0x52e975[0x0][0x0])<=_0x451550(_0x52e975[0x1][0x0])?_0x52e975[0x0]:_0x52e975[0x1];return 0x1===_0x52e975[_0x4c3986(0x16b)]?_0x52e975[0x0]:[_0x40ba33[_0x4c3986(0x149)],_0x4c3986(0x12d)];}[_0x5d9397(0x131)](_0x61e8cd,_0x1563ae){const _0x4502ea=_0x5d9397;let _0x333228=_0x61e8cd[_0x4502ea(0x132)],_0x199451=null,_0x54e2f4=!0x1;for(;_0x333228;){if(_0x5c1da2(_0x333228)){if(this[_0x4502ea(0x16a)](_0x333228)&&(_0x199451=_0x333228),this[_0x4502ea(0x141)](_0x333228)&&_0x1563ae&&!_0x54e2f4){_0x54e2f4=!0x0,_0x333228=_0x333228[_0x4502ea(0x132)];continue;}break;}const _0x434600=_0x2b31ac(_0x333228,_0x4502ea(0x162));if(_0x434600&&_0x4502ea(0x157)!==_0x434600&&this[_0x4502ea(0x164)][_0x4502ea(0x145)](_0x434600)){_0x199451=_0x333228;break;}_0x333228=_0x333228[_0x4502ea(0x132)];}return _0x199451;}[_0x5d9397(0x169)](_0x5b8702,_0x47d9eb){const _0x3219d6=_0x5d9397;let _0x2ce664=_0x5b8702[_0x3219d6(0x15c)],_0x247591=null,_0xb2fd09=!0x1;for(;_0x2ce664;){if(_0x5c1da2(_0x2ce664)){if(this[_0x3219d6(0x16a)](_0x2ce664)&&(_0x247591=_0x2ce664),this[_0x3219d6(0x141)](_0x2ce664)&&_0x47d9eb&&!_0xb2fd09){_0xb2fd09=!0x0,_0x2ce664=_0x2ce664[_0x3219d6(0x15c)];continue;}break;}const _0x2f5679=_0x2b31ac(_0x2ce664,_0x3219d6(0x162));if(_0x2f5679&&_0x3219d6(0x157)!==_0x2f5679&&this[_0x3219d6(0x164)][_0x3219d6(0x145)](_0x2f5679)){_0x247591=_0x2ce664;break;}_0x2ce664=_0x2ce664[_0x3219d6(0x15c)];}return _0x247591;}[_0x5d9397(0x144)](_0x28abcc){const _0x5cf8c4=_0x5d9397;_0x83f103(_0x28abcc)&&_0x4e1af9(_0x5cf8c4(0x162),null,_0x28abcc)[_0x5cf8c4(0x148)](_0x45ae4c=>{const _0x51b4c5=_0x5cf8c4;if(this[_0x51b4c5(0x16e)](_0x45ae4c)&&!this[_0x51b4c5(0x167)](_0x45ae4c)){const _0x13ada3=_0x2b31ac(_0x45ae4c,_0x51b4c5(0x162));_0x9d8b9c(_0x45ae4c,_0x51b4c5(0x138),_0x13ada3),_0x9d8b9c(_0x45ae4c,_0x51b4c5(0x162),null);}});}[_0x5d9397(0x12c)](_0x4a4cf5){const _0x183746=_0x5d9397;if(!_0x4a4cf5)return null;if(_0x83f103(_0x4a4cf5))return _0x2b31ac(_0x4a4cf5,_0x183746(0x162));if(_0x5c1da2(_0x4a4cf5)){const _0x220371=_0x23bfe3(_0x4a4cf5)[_0x183746(0x13f)](/removed[\s*-]data-id="([^"]+)"/);if(_0x220371&&_0x220371[0x1])return _0x220371[0x1];}return null;}[_0x5d9397(0x166)](_0x240678){const _0x501121=_0x5d9397;if(_0x5c1da2(_0x240678)){const _0xc4eb9e=_0x23bfe3(_0x240678)[_0x501121(0x13f)](/removed[\s*-]data-id="([^"]+)"/);_0xc4eb9e&&_0xc4eb9e[0x1]&&this[_0x501121(0x14b)][_0x501121(0x168)][_0x501121(0x143)](_0xc4eb9e[0x1]);}}[_0x5d9397(0x163)](_0x5dc97c){const _0xc4c0a8=_0x5d9397;return this[_0xc4c0a8(0x16e)](_0x5dc97c)?_0x2b31ac(_0x5dc97c,_0xc4c0a8(0x162)):this[_0xc4c0a8(0x16c)]();}[_0x5d9397(0x134)](_0xb05f1d){const _0x2d259f=_0x5d9397;_0x25deeb(_0xb05f1d)[_0x2d259f(0x165)](_0xd334c4=>this[_0x2d259f(0x16a)](_0xd334c4)||this[_0x2d259f(0x141)](_0xd334c4))[_0x2d259f(0x148)](_0x92d204=>{_0x545d08(_0x92d204);});}[_0x5d9397(0x159)](_0x5849df){const _0x235d71=_0x5d9397,_0x30e6b8=_0x5849df[_0x235d71(0x13d)],_0x3a08c3=_0x30e6b8[_0x30e6b8[_0x235d71(0x16b)]-0x1];_0x3a08c3&&_0x83f103(_0x3a08c3)&&_0x9d8b9c(_0x3a08c3,_0x235d71(0x152),_0x235d71(0x155));}[_0x5d9397(0x153)](_0x336723,_0x8dec2f){const _0xbc70c2=_0x5d9397,_0x207cb5=_0x37c531(_0xbc70c2(0x152),_0xbc70c2(0x155),_0x336723);if(!_0x207cb5)return;const _0x3e04e2=_0x588691(_0x207cb5)[_0xbc70c2(0x12a)](0x0,-0x1),_0x21e58f=_0x3e04e2[_0xbc70c2(0x16b)];let _0x10c797=_0x207cb5;if(_0x21e58f>_0x8dec2f){let _0x4f121a=_0x21e58f,_0x5eebd4=null;for(;_0x4f121a>_0x8dec2f&&_0x4f121a>=0x0;)_0x4f121a--,_0x5eebd4=_0x3e04e2[_0x4f121a];_0x5eebd4&&(_0x10c797=_0x5eebd4,_0x9d8b9c(_0x207cb5,_0xbc70c2(0x152),null),_0x9d8b9c(_0x5eebd4,_0xbc70c2(0x152),_0xbc70c2(0x155)));}else{if(_0x21e58f<_0x8dec2f){let _0xdb3160=_0x21e58f,_0x45beca=_0x207cb5;for(;_0xdb3160<_0x8dec2f;){const _0x2263cf=_0x45beca[_0xbc70c2(0x13d)][_0xbc70c2(0x165)](_0x1b1a9f=>_0x83f103(_0x1b1a9f));if(0x0===_0x2263cf[_0xbc70c2(0x16b)])break;_0xdb3160++,_0x45beca=_0x2263cf[_0x2263cf[_0xbc70c2(0x16b)]-0x1];}_0x45beca&&(_0x10c797=_0x45beca,_0x9d8b9c(_0x207cb5,_0xbc70c2(0x152),null),_0x9d8b9c(_0x45beca,_0xbc70c2(0x152),_0xbc70c2(0x155)));}}let _0xd96ce1=_0x10c797;for(;_0xd96ce1;){for(;_0xd96ce1[_0xbc70c2(0x132)];)_0xd96ce1=_0xd96ce1[_0xbc70c2(0x132)],_0x83f103(_0xd96ce1)&&_0x9d8b9c(_0xd96ce1,_0xbc70c2(0x152),_0xbc70c2(0x155));_0xd96ce1=_0xd96ce1[_0xbc70c2(0x12f)];}}[_0x5d9397(0x16d)](_0x1e9536){const _0x230e22=_0x5d9397;return Boolean(_0x230e22(0x157)===_0x2b31ac(_0x1e9536,_0x230e22(0x162)));}[_0x5d9397(0x16e)](_0x22b747){const _0x123ea4=_0x5d9397;return Boolean((_0x2b31ac(_0x22b747,_0x123ea4(0x162))||'')[_0x123ea4(0x16b)]>0x0&&_0x123ea4(0x157)!==_0x2b31ac(_0x22b747,_0x123ea4(0x162)));}[_0x5d9397(0x16a)](_0x4dc94e){const _0x206138=_0x5d9397;return!!_0x4dc94e&&Boolean(_0x5c1da2(_0x4dc94e)&&_0x23bfe3(_0x4dc94e)[_0x206138(0x13f)](/removed[\s*-]data-id="[^"]+"/));}[_0x5d9397(0x167)](_0x18347c){const _0x177421=_0x5d9397;let _0x5b42bf=_0x18347c[_0x177421(0x12f)];for(;_0x5b42bf;){if(_0x2b31ac(_0x5b42bf,_0x177421(0x138)))return!0x0;_0x5b42bf=_0x5b42bf[_0x177421(0x12f)];}return!0x1;}[_0x5d9397(0x141)](_0x1b90fc){const _0x286814=_0x5d9397;return Boolean(_0x5c1da2(_0x1b90fc)&&_0x23bfe3(_0x1b90fc)[_0x286814(0x13f)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1a7ae8=_0x4cd7;(function(_0x11536a,_0x4ac387){const _0x16f786=_0x4cd7,_0x507dac=_0x11536a();while(!![]){try{const _0x49de54=-parseInt(_0x16f786(0x1e1))/0x1+-parseInt(_0x16f786(0x1e3))/0x2*(parseInt(_0x16f786(0x1d7))/0x3)+-parseInt(_0x16f786(0x1e0))/0x4+parseInt(_0x16f786(0x1de))/0x5+-parseInt(_0x16f786(0x1d8))/0x6+parseInt(_0x16f786(0x1d6))/0x7*(-parseInt(_0x16f786(0x1e2))/0x8)+parseInt(_0x16f786(0x1e5))/0x9;if(_0x49de54===_0x4ac387)break;else _0x507dac['push'](_0x507dac['shift']());}catch(_0x10a87a){_0x507dac['push'](_0x507dac['shift']());}}}(_0x43ea,0x8c3d0));import{ObservableMixin as _0x285b72}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5696a4}from'@ckeditor/ckeditor5-markdown-gfm';function _0x43ea(){const _0x2ebe47=['convertMarkdownToHTML','2621092LlXoqz','106895yLoREE','2114968vXXUrR','95066nvvCfe','_m2html','29163303nPYBcy','</dummy>','replace','28yNUoLk','3SNQodp','6052272EnxfRE','_parseHTML','parse','<dummy>','children','parseAndNormalizeHTML','1049730atLQOe'];_0x43ea=function(){return _0x2ebe47;};return _0x43ea();}function _0x4cd7(_0x52b577,_0x11c1ce){const _0x43ea09=_0x43ea();return _0x4cd7=function(_0x4cd719,_0x5cefb1){_0x4cd719=_0x4cd719-0x1d5;let _0x540a9f=_0x43ea09[_0x4cd719];return _0x540a9f;},_0x4cd7(_0x52b577,_0x11c1ce);}import{parse as _0x5e10d0}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x285b72(){[_0x1a7ae8(0x1e4)];constructor(){const _0x5af6ce=_0x1a7ae8;super(),this[_0x5af6ce(0x1e4)]=new _0x5696a4();}[_0x1a7ae8(0x1df)](_0xa7612a){const _0x55312e=_0x1a7ae8,_0x903777=this[_0x55312e(0x1e4)][_0x55312e(0x1da)](_0xa7612a);return this[_0x55312e(0x1dd)](_0x903777);}[_0x1a7ae8(0x1dd)](_0x23538f){const _0x2e01e5=_0x1a7ae8;return this[_0x2e01e5(0x1d9)](_0x23538f);}[_0x1a7ae8(0x1d9)](_0xb71ea3){const _0x15af3b=_0x1a7ae8,_0xb21fed=_0xb71ea3[_0x15af3b(0x1d5)](/^\t+/gm,'\x20')[_0x15af3b(0x1d5)](/\n*/g,'')[_0x15af3b(0x1d5)](/\s+/g,'\x20')[_0x15af3b(0x1d5)](/<[^>]*?$/g,''),_0x5b82e6=_0x5e10d0(_0x15af3b(0x1db)+_0xb21fed+_0x15af3b(0x1e6));return _0x5b82e6[_0x15af3b(0x1dc)]=_0x5b82e6[_0x15af3b(0x1dc)][0x0][_0x15af3b(0x1dc)],_0x5b82e6;}}
23
+ const _0x511b4b=_0xe215;(function(_0x12f810,_0x1d8ec6){const _0x5b64e7=_0xe215,_0x8a0d04=_0x12f810();while(!![]){try{const _0x244cbe=-parseInt(_0x5b64e7(0x166))/0x1+-parseInt(_0x5b64e7(0x15f))/0x2*(-parseInt(_0x5b64e7(0x165))/0x3)+parseInt(_0x5b64e7(0x161))/0x4*(-parseInt(_0x5b64e7(0x160))/0x5)+-parseInt(_0x5b64e7(0x168))/0x6*(-parseInt(_0x5b64e7(0x167))/0x7)+-parseInt(_0x5b64e7(0x15e))/0x8*(parseInt(_0x5b64e7(0x16b))/0x9)+-parseInt(_0x5b64e7(0x16a))/0xa+parseInt(_0x5b64e7(0x16e))/0xb;if(_0x244cbe===_0x1d8ec6)break;else _0x8a0d04['push'](_0x8a0d04['shift']());}catch(_0x1775e8){_0x8a0d04['push'](_0x8a0d04['shift']());}}}(_0x29eb,0xe7d6b));function _0x29eb(){const _0xadd58=['convertMarkdownToHTML','<dummy>','27839416hsDdIy','parseAndNormalizeHTML','children','</dummy>','24DcSkDr','39914cUzLYA','54990ZfoEwu','124DbMbir','_m2html','replace','_parseHTML','69ulNroC','723911irnTPo','80619pjSMng','48grVxGz','parse','1773200EPcqpI','2670669tkFWUr'];_0x29eb=function(){return _0xadd58;};return _0x29eb();}import{ObservableMixin as _0x2157ae}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5624cd}from'@ckeditor/ckeditor5-markdown-gfm';function _0xe215(_0x4380d2,_0x3a45c1){const _0x29eb29=_0x29eb();return _0xe215=function(_0xe2152a,_0x212160){_0xe2152a=_0xe2152a-0x15d;let _0x1ad9d2=_0x29eb29[_0xe2152a];return _0x1ad9d2;},_0xe215(_0x4380d2,_0x3a45c1);}import{parse as _0x229bac}from'../utils/htmlparser.js';export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x2157ae(){[_0x511b4b(0x162)];constructor(){const _0xff960c=_0x511b4b;super(),this[_0xff960c(0x162)]=new _0x5624cd();}[_0x511b4b(0x16c)](_0x1c7d7d){const _0x26769d=_0x511b4b,_0x16c55f=this[_0x26769d(0x162)][_0x26769d(0x169)](_0x1c7d7d);return this[_0x26769d(0x16f)](_0x16c55f);}[_0x511b4b(0x16f)](_0x197951){const _0x37ea13=_0x511b4b;return this[_0x37ea13(0x164)](_0x197951);}[_0x511b4b(0x164)](_0x5244c4){const _0x3356a2=_0x511b4b,_0x77fc6f=_0x5244c4[_0x3356a2(0x163)](/^\t+/gm,'\x20')[_0x3356a2(0x163)](/\n*/g,'')[_0x3356a2(0x163)](/\s+/g,'\x20')[_0x3356a2(0x163)](/<[^>]*?$/g,''),_0x76aaa1=_0x229bac(_0x3356a2(0x16d)+_0x77fc6f+_0x3356a2(0x15d));return _0x76aaa1[_0x3356a2(0x170)]=_0x76aaa1[_0x3356a2(0x170)][0x0][_0x3356a2(0x170)],_0x76aaa1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2d89(){var _0x3ffc0e=['AI_DISCLAIMER_TEXT','5123250AUbFiX','ck-ai-disclaimer__content','1hCKGKG','2465320SDUArK','2114fMgirB','ck-ai-disclaimer','2489920JUmiqP','19016BxsHkt','891312nzUdKB','219lVTQvz','1409862QnMdqE','9252XOBqAe','div','setTemplate'];_0x2d89=function(){return _0x3ffc0e;};return _0x2d89();}function _0x40fd(_0x38a3d1,_0x57b187){var _0x2d8996=_0x2d89();return _0x40fd=function(_0x40fd6c,_0x2d053b){_0x40fd6c=_0x40fd6c-0xdd;var _0x1f7935=_0x2d8996[_0x40fd6c];return _0x1f7935;},_0x40fd(_0x38a3d1,_0x57b187);}(function(_0x4def67,_0x599479){var _0x47d193=_0x40fd,_0xdf0f2e=_0x4def67();while(!![]){try{var _0x23b53c=-parseInt(_0x47d193(0xe0))/0x1*(-parseInt(_0x47d193(0xe8))/0x2)+-parseInt(_0x47d193(0xe7))/0x3*(parseInt(_0x47d193(0xe9))/0x4)+parseInt(_0x47d193(0xe1))/0x5+-parseInt(_0x47d193(0xe6))/0x6+parseInt(_0x47d193(0xe2))/0x7*(-parseInt(_0x47d193(0xe5))/0x8)+parseInt(_0x47d193(0xde))/0x9+-parseInt(_0x47d193(0xe4))/0xa;if(_0x23b53c===_0x599479)break;else _0xdf0f2e['push'](_0xdf0f2e['shift']());}catch(_0x36117c){_0xdf0f2e['push'](_0xdf0f2e['shift']());}}}(_0x2d89,0x75eb6));import{View as _0x48f527}from'ckeditor5/src/ui.js';import{getTranslation as _0x2add31}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x48f527{constructor(_0x4ceb6e){var _0x17f505=_0x40fd;super(_0x4ceb6e),this[_0x17f505(0xeb)]({'tag':_0x17f505(0xea),'attributes':{'class':['ck',_0x17f505(0xe3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x17f505(0xdf)]},'children':[{'text':_0x2add31(_0x4ceb6e,_0x17f505(0xdd))}]}]});}}
23
+ (function(_0x258828,_0x474ecd){var _0x35cc09=_0x1d49,_0x10899e=_0x258828();while(!![]){try{var _0x3a47ce=-parseInt(_0x35cc09(0x137))/0x1*(-parseInt(_0x35cc09(0x135))/0x2)+-parseInt(_0x35cc09(0x12b))/0x3*(parseInt(_0x35cc09(0x133))/0x4)+parseInt(_0x35cc09(0x132))/0x5*(-parseInt(_0x35cc09(0x139))/0x6)+parseInt(_0x35cc09(0x12a))/0x7*(-parseInt(_0x35cc09(0x12d))/0x8)+parseInt(_0x35cc09(0x134))/0x9*(parseInt(_0x35cc09(0x136))/0xa)+parseInt(_0x35cc09(0x138))/0xb+parseInt(_0x35cc09(0x130))/0xc*(parseInt(_0x35cc09(0x12c))/0xd);if(_0x3a47ce===_0x474ecd)break;else _0x10899e['push'](_0x10899e['shift']());}catch(_0x2e0a1f){_0x10899e['push'](_0x10899e['shift']());}}}(_0x1cd7,0x81b1f));function _0x1cd7(){var _0x48dd4b=['setTemplate','852xOyNPP','AI_DISCLAIMER_TEXT','7795ulnehI','4PGYuCE','1971xDUedC','10gVjBFE','19090aScnAU','1086zLkQUR','2961189HUpMyB','546VtXCyQ','ck-ai-disclaimer','div','1330lETuJD','126051jXGkcz','184171DywJZJ','41408HdrLfn','ck-ai-disclaimer__content'];_0x1cd7=function(){return _0x48dd4b;};return _0x1cd7();}import{View as _0xeee6c3}from'ckeditor5/src/ui.js';import{getTranslation as _0x1aa94f}from'../../aicore/utils/common-translations.js';function _0x1d49(_0x6f0e7a,_0x1cd964){var _0x1cd7dc=_0x1cd7();return _0x1d49=function(_0x1d497e,_0x1dcdbc){_0x1d497e=_0x1d497e-0x129;var _0x5105cd=_0x1cd7dc[_0x1d497e];return _0x5105cd;},_0x1d49(_0x6f0e7a,_0x1cd964);}export class AIDisclaimerView extends _0xeee6c3{constructor(_0x57ca2e){var _0x35feba=_0x1d49;super(_0x57ca2e),this[_0x35feba(0x12f)]({'tag':_0x35feba(0x129),'attributes':{'class':['ck',_0x35feba(0x13a)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x35feba(0x12e)]},'children':[{'text':_0x1aa94f(_0x57ca2e,_0x35feba(0x131))}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1ee43e=_0x243e;(function(_0x759096,_0x424e8d){const _0x358bbd=_0x243e,_0x36c626=_0x759096();while(!![]){try{const _0xdef7b8=-parseInt(_0x358bbd(0x1a9))/0x1*(parseInt(_0x358bbd(0x1aa))/0x2)+-parseInt(_0x358bbd(0x1ae))/0x3*(-parseInt(_0x358bbd(0x1a8))/0x4)+parseInt(_0x358bbd(0x1bb))/0x5+-parseInt(_0x358bbd(0x19a))/0x6+parseInt(_0x358bbd(0x1ad))/0x7*(parseInt(_0x358bbd(0x19e))/0x8)+-parseInt(_0x358bbd(0x1c1))/0x9*(-parseInt(_0x358bbd(0x1b6))/0xa)+-parseInt(_0x358bbd(0x1a6))/0xb;if(_0xdef7b8===_0x424e8d)break;else _0x36c626['push'](_0x36c626['shift']());}catch(_0x50ff58){_0x36c626['push'](_0x36c626['shift']());}}}(_0x19c1,0x81284));function _0x243e(_0xcc3cc8,_0x6d65b3){const _0x19c17c=_0x19c1();return _0x243e=function(_0x243e79,_0x4d4944){_0x243e79=_0x243e79-0x199;let _0x5ca293=_0x19c17c[_0x243e79];return _0x5ca293;},_0x243e(_0xcc3cc8,_0x6d65b3);}import{View as _0x2e51f7}from'ckeditor5/src/ui.js';function _0x19c1(){const _0x1845e5=['72px','map','128px','8PgQLux','align','140px','fill','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','setTemplate','height','right','818037xgtTur','center','60HobRLe','803239txSqgA','2Dvzozx','class','250px','139636fawxxh','136167MyorrG','width:\x20','88px','40px','div','ck-ai-skeleton__item','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','width','100yaMezU','150px','44px','ck-ai-skeleton','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','2552450XSEJyN','100%','_createSkeletonItems',';\x20height:\x20','attributes','left','417654LXSHnv','24px','tag','1612194pvArHl'];_0x19c1=function(){return _0x1845e5;};return _0x19c1();}export class AISkeletonView extends _0x2e51f7{constructor(_0x2a76e3,_0x2a506c){const _0x3cf9aa=_0x243e;super(_0x2a76e3),this[_0x3cf9aa(0x1a3)]({'tag':_0x3cf9aa(0x1b2),'attributes':{'class':['ck',_0x3cf9aa(0x1b9)]},'children':this[_0x3cf9aa(0x1bd)](_0x2a506c)});}[_0x1ee43e(0x1bd)](_0x10aec3){const _0x4cd6c0=_0x1ee43e,_0x56fae3=['ck',_0x4cd6c0(0x1b3)];return _0x10aec3[_0x4cd6c0(0x19c)](_0x5d7119=>{const _0x343673=_0x4cd6c0;let _0xd98861='';switch(_0x5d7119[_0x343673(0x1bf)][_0x343673(0x19f)]){case _0x343673(0x1a5):_0xd98861=_0x343673(0x1a2);break;case _0x343673(0x1a7):_0xd98861=_0x343673(0x1ba);break;case _0x343673(0x1c0):_0xd98861=_0x343673(0x1b4);}return{'tag':_0x5d7119[_0x343673(0x199)],'attributes':{'class':[..._0x56fae3,_0x5d7119[_0x343673(0x1bf)][_0x343673(0x1ab)]?_0x5d7119[_0x343673(0x1bf)][_0x343673(0x1ab)]:''],'style':_0x343673(0x1af)+_0x5d7119[_0x343673(0x1bf)][_0x343673(0x1b5)]+_0x343673(0x1be)+_0x5d7119[_0x343673(0x1bf)][_0x343673(0x1a4)]+';'+_0xd98861}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x1bc),'height':_0x1ee43e(0x19b),'align':_0x1ee43e(0x1a5)}},{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x1ac),'height':_0x1ee43e(0x1b1),'align':_0x1ee43e(0x1a5)}},{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x1bc),'height':_0x1ee43e(0x1b0),'align':_0x1ee43e(0x1a5)}},{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x1b7),'height':_0x1ee43e(0x1b1),'align':_0x1ee43e(0x1a5)}},{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x1bc),'height':_0x1ee43e(0x1a0),'align':_0x1ee43e(0x1a5)}},{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x1ac),'height':_0x1ee43e(0x1b1),'align':_0x1ee43e(0x1a5)}},{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x1bc),'height':_0x1ee43e(0x1b0),'align':_0x1ee43e(0x1a5)}}],'aiHistory':ta(0x5,_0x1ee43e(0x1bc),_0x1ee43e(0x1b8),_0x1ee43e(0x1a5)),'aiChatResources':ta(0x8,_0x1ee43e(0x1bc),_0x1ee43e(0x1c2),_0x1ee43e(0x1a5)),'aiReviewChecks':[{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x19d),'height':_0x1ee43e(0x1c2),'align':_0x1ee43e(0x1c0)}},{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x1bc),'height':_0x1ee43e(0x1c2),'align':_0x1ee43e(0x1c0)}},{'tag':_0x1ee43e(0x1b2),'attributes':{'width':_0x1ee43e(0x19d),'height':_0x1ee43e(0x1c2),'align':_0x1ee43e(0x1c0)}}]};function ta(_0x38cf33,_0x4ac49a,_0x28813d,_0x2b2e4b){const _0x11b749=_0x1ee43e;return new Array(_0x38cf33)[_0x11b749(0x1a1)](null)[_0x11b749(0x19c)](()=>({'tag':_0x11b749(0x1b2),'attributes':{'width':_0x4ac49a,'height':_0x28813d,'align':_0x2b2e4b}}));}
23
+ const _0x14bb49=_0x2a86;(function(_0x2299e5,_0x2ae84a){const _0xb44c38=_0x2a86,_0x3bdd04=_0x2299e5();while(!![]){try{const _0x26c209=parseInt(_0xb44c38(0x93))/0x1*(parseInt(_0xb44c38(0x89))/0x2)+parseInt(_0xb44c38(0x8a))/0x3*(parseInt(_0xb44c38(0x80))/0x4)+parseInt(_0xb44c38(0x8d))/0x5*(-parseInt(_0xb44c38(0x9d))/0x6)+parseInt(_0xb44c38(0x99))/0x7+-parseInt(_0xb44c38(0x78))/0x8*(parseInt(_0xb44c38(0x92))/0x9)+-parseInt(_0xb44c38(0x9f))/0xa+parseInt(_0xb44c38(0x7a))/0xb;if(_0x26c209===_0x2ae84a)break;else _0x3bdd04['push'](_0x3bdd04['shift']());}catch(_0x1c8ed2){_0x3bdd04['push'](_0x3bdd04['shift']());}}}(_0x430a,0x6f1ef));import{View as _0x4319a}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x4319a{constructor(_0x3379ce,_0x4e1085){const _0x5e370b=_0x2a86;super(_0x3379ce),this[_0x5e370b(0x7c)]({'tag':_0x5e370b(0x7b),'attributes':{'class':['ck',_0x5e370b(0x8f)]},'children':this[_0x5e370b(0x94)](_0x4e1085)});}[_0x14bb49(0x94)](_0x23d4c7){const _0x1567f7=_0x14bb49,_0x506c77=['ck',_0x1567f7(0x81)];return _0x23d4c7[_0x1567f7(0x88)](_0xd0ad18=>{const _0x28f199=_0x1567f7;let _0x355d64='';switch(_0xd0ad18[_0x28f199(0x86)][_0x28f199(0x9b)]){case _0x28f199(0x9a):_0x355d64=_0x28f199(0x85);break;case _0x28f199(0x7d):_0x355d64=_0x28f199(0x79);break;case _0x28f199(0x96):_0x355d64=_0x28f199(0x8b);}return{'tag':_0xd0ad18[_0x28f199(0x95)],'attributes':{'class':[..._0x506c77,_0xd0ad18[_0x28f199(0x86)][_0x28f199(0x9e)]?_0xd0ad18[_0x28f199(0x86)][_0x28f199(0x9e)]:''],'style':_0x28f199(0x87)+_0xd0ad18[_0x28f199(0x86)][_0x28f199(0x97)]+_0x28f199(0x77)+_0xd0ad18[_0x28f199(0x86)][_0x28f199(0x7e)]+';'+_0x355d64}};});}}function _0x2a86(_0x14f7bd,_0x956176){const _0x430a81=_0x430a();return _0x2a86=function(_0x2a860c,_0x26799d){_0x2a860c=_0x2a860c-0x76;let _0x456d37=_0x430a81[_0x2a860c];return _0x456d37;},_0x2a86(_0x14f7bd,_0x956176);}function _0x430a(){const _0x145058=['tag','left','width','128px','1522871awhSGi','right','align','150px','5257884jGTOyi','class','491300UTABrM','fill',';\x20height:\x20','168xkddzB','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','3802106tTuJmY','div','setTemplate','center','height','72px','12aCoPzq','ck-ai-skeleton__item','88px','40px','100%','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','attributes','width:\x20','map','2aBQjrM','602898XqOQEC','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','140px','5toOLYO','24px','ck-ai-skeleton','250px','44px','198333pDZbRK','677275cWYSSW','_createSkeletonItems'];_0x430a=function(){return _0x145058;};return _0x430a();}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x84),'height':_0x14bb49(0x7f),'align':_0x14bb49(0x9a)}},{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x90),'height':_0x14bb49(0x83),'align':_0x14bb49(0x9a)}},{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x84),'height':_0x14bb49(0x82),'align':_0x14bb49(0x9a)}},{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x9c),'height':_0x14bb49(0x83),'align':_0x14bb49(0x9a)}},{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x84),'height':_0x14bb49(0x8c),'align':_0x14bb49(0x9a)}},{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x90),'height':_0x14bb49(0x83),'align':_0x14bb49(0x9a)}},{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x84),'height':_0x14bb49(0x82),'align':_0x14bb49(0x9a)}}],'aiHistory':ta(0x5,_0x14bb49(0x84),_0x14bb49(0x91),_0x14bb49(0x9a)),'aiChatResources':ta(0x8,_0x14bb49(0x84),_0x14bb49(0x8e),_0x14bb49(0x9a)),'aiReviewChecks':[{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x98),'height':_0x14bb49(0x8e),'align':_0x14bb49(0x96)}},{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x84),'height':_0x14bb49(0x8e),'align':_0x14bb49(0x96)}},{'tag':_0x14bb49(0x7b),'attributes':{'width':_0x14bb49(0x98),'height':_0x14bb49(0x8e),'align':_0x14bb49(0x96)}}]};function ta(_0x3aecb2,_0x3832b2,_0x309281,_0x7b5cf0){const _0x2dd9df=_0x14bb49;return new Array(_0x3aecb2)[_0x2dd9df(0x76)](null)[_0x2dd9df(0x88)](()=>({'tag':_0x2dd9df(0x7b),'attributes':{'width':_0x3832b2,'height':_0x309281,'align':_0x7b5cf0}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x9c71(){const _0x371164=['18dewKJC','extendTemplate','ck-ai-spinner_','span','382wYkVFV','163676rKeDme','56490uHkJyM','ck-ai-spinner','9ezMDHF','1876840epLQJy','9ldbHbF','11278894pyOuah','2922773opnzRz','163928PvLDhr','2018eriGjK'];_0x9c71=function(){return _0x371164;};return _0x9c71();}(function(_0x18efd5,_0x2abd36){const _0x43283c=_0x4a08,_0x155eb2=_0x18efd5();while(!![]){try{const _0x5a0428=-parseInt(_0x43283c(0x13e))/0x1*(parseInt(_0x43283c(0x148))/0x2)+parseInt(_0x43283c(0x142))/0x3*(-parseInt(_0x43283c(0x13f))/0x4)+parseInt(_0x43283c(0x140))/0x5*(-parseInt(_0x43283c(0x149))/0x6)+-parseInt(_0x43283c(0x146))/0x7+parseInt(_0x43283c(0x147))/0x8*(-parseInt(_0x43283c(0x144))/0x9)+parseInt(_0x43283c(0x143))/0xa+parseInt(_0x43283c(0x145))/0xb;if(_0x5a0428===_0x2abd36)break;else _0x155eb2['push'](_0x155eb2['shift']());}catch(_0x4e77fd){_0x155eb2['push'](_0x155eb2['shift']());}}}(_0x9c71,0x38dd7));function _0x4a08(_0x5e4a97,_0x51fa0b){const _0x9c71f5=_0x9c71();return _0x4a08=function(_0x4a08e2,_0x30b31d){_0x4a08e2=_0x4a08e2-0x13e;let _0x41732f=_0x9c71f5[_0x4a08e2];return _0x41732f;},_0x4a08(_0x5e4a97,_0x51fa0b);}import{SpinnerView as _0x4a47c3}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x4a47c3{constructor(_0x289815=void 0x0){const _0x2a705f=_0x4a08;super();const _0x246909=_0x289815?_0x2a705f(0x14b)+_0x289815:'';this[_0x2a705f(0x14a)]({'tag':_0x2a705f(0x14c),'attributes':{'class':[_0x2a705f(0x141),_0x246909]}});}}
23
+ (function(_0x553615,_0xc7b165){const _0x3dfdea=_0x15ba,_0x34d786=_0x553615();while(!![]){try{const _0x4502ef=parseInt(_0x3dfdea(0x1d1))/0x1+-parseInt(_0x3dfdea(0x1d4))/0x2*(-parseInt(_0x3dfdea(0x1c9))/0x3)+parseInt(_0x3dfdea(0x1d2))/0x4*(-parseInt(_0x3dfdea(0x1d0))/0x5)+-parseInt(_0x3dfdea(0x1cc))/0x6*(-parseInt(_0x3dfdea(0x1c7))/0x7)+parseInt(_0x3dfdea(0x1ca))/0x8+parseInt(_0x3dfdea(0x1ce))/0x9+-parseInt(_0x3dfdea(0x1cf))/0xa;if(_0x4502ef===_0xc7b165)break;else _0x34d786['push'](_0x34d786['shift']());}catch(_0x1cb61f){_0x34d786['push'](_0x34d786['shift']());}}}(_0x3600,0xd0df3));import{SpinnerView as _0x3fde16}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x3fde16{constructor(_0x2b7855=void 0x0){const _0x560ca4=_0x15ba;super();const _0x2f97be=_0x2b7855?_0x560ca4(0x1d3)+_0x2b7855:'';this[_0x560ca4(0x1c8)]({'tag':_0x560ca4(0x1cb),'attributes':{'class':[_0x560ca4(0x1cd),_0x2f97be]}});}}function _0x15ba(_0x5b2ab1,_0x553233){const _0x3600da=_0x3600();return _0x15ba=function(_0x15bae5,_0x235067){_0x15bae5=_0x15bae5-0x1c7;let _0x44f302=_0x3600da[_0x15bae5];return _0x44f302;},_0x15ba(_0x5b2ab1,_0x553233);}function _0x3600(){const _0x10795d=['391274SXuSMm','4fISjpX','ck-ai-spinner_','16qCVzTW','2821yVeMLt','extendTemplate','396993uifeeB','8099176XkAnfG','span','21738KoAeiH','ck-ai-spinner','2339496KEotAK','31267670PpTGpa','1000130NhvYiQ'];_0x3600=function(){return _0x10795d;};return _0x3600();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x407c9c=_0x1f69;(function(_0x289c00,_0xc339f1){const _0x11dc95=_0x1f69,_0x3c6167=_0x289c00();while(!![]){try{const _0x3efc3e=-parseInt(_0x11dc95(0x1bf))/0x1*(-parseInt(_0x11dc95(0x1b2))/0x2)+parseInt(_0x11dc95(0x1b4))/0x3*(parseInt(_0x11dc95(0x1bd))/0x4)+parseInt(_0x11dc95(0x1cc))/0x5*(-parseInt(_0x11dc95(0x1c4))/0x6)+-parseInt(_0x11dc95(0x1c6))/0x7+-parseInt(_0x11dc95(0x1b0))/0x8*(-parseInt(_0x11dc95(0x1a0))/0x9)+-parseInt(_0x11dc95(0x1a1))/0xa+-parseInt(_0x11dc95(0x1be))/0xb*(-parseInt(_0x11dc95(0x1cf))/0xc);if(_0x3efc3e===_0xc339f1)break;else _0x3c6167['push'](_0x3c6167['shift']());}catch(_0x36a298){_0x3c6167['push'](_0x3c6167['shift']());}}}(_0x55df,0xc2a2b));import{ButtonView as _0x31c8aa,IconView as _0x3466ce,ToolbarView as _0x357452}from'ckeditor5/src/ui.js';import{IconCheck as _0x3e273f,IconCopy as _0x313ed2,IconShowChangesOff as _0x134481,IconShowChangesOn as _0x559dff,IconThumbDown as _0x18f475,IconThumbUp as _0x9de7f2}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x580e60}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x357452{[_0x407c9c(0x1b1)];[_0x407c9c(0x1a2)];[_0x407c9c(0x19f)];[_0x407c9c(0x1a6)];[_0x407c9c(0x1c9)];constructor(_0x2ee4fb,_0x3e56f9={},_0x16ddcd){const _0x2b3f60=_0x407c9c;super(_0x2ee4fb),this[_0x2b3f60(0x1c1)](_0x2b3f60(0x1b9),!0x1),this[_0x2b3f60(0x1c9)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x3e56f9};const _0x2f9636=!(this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1a3)]||this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1ce)]||this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1ad)]||this[_0x2b3f60(0x1c9)][_0x2b3f60(0x19e)]||this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1bc)]?.[_0x2b3f60(0x1af)]);this[_0x2b3f60(0x1bb)]=_0x2f9636?_0x2b3f60(0x1b6):_0x2b3f60(0x1c8),this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1a3)]&&(this[_0x2b3f60(0x1ab)](),this[_0x2b3f60(0x1b5)][_0x2b3f60(0x1d0)](this[_0x2b3f60(0x1b1)])),this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1ce)]&&(this[_0x2b3f60(0x1c7)](_0x16ddcd),this[_0x2b3f60(0x1b5)][_0x2b3f60(0x1d0)](this[_0x2b3f60(0x1a6)])),this[_0x2b3f60(0x1cd)](),this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1ad)]&&this[_0x2b3f60(0x1b5)][_0x2b3f60(0x1d0)](this[_0x2b3f60(0x1a2)]),this[_0x2b3f60(0x1c9)][_0x2b3f60(0x19e)]&&this[_0x2b3f60(0x1b5)][_0x2b3f60(0x1d0)](this[_0x2b3f60(0x19f)]),this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1bc)]&&this[_0x2b3f60(0x1b5)][_0x2b3f60(0x1aa)](this[_0x2b3f60(0x1c9)][_0x2b3f60(0x1bc)]);}[_0x407c9c(0x1cd)](){const _0x1da247=_0x407c9c;this[_0x1da247(0x1a2)]=new _0x31c8aa(this[_0x1da247(0x1a5)]),this[_0x1da247(0x1a2)][_0x1da247(0x1c1)]({'icon':_0x9de7f2,'label':_0x580e60(this[_0x1da247(0x1a5)],_0x1da247(0x1b3)),'tooltip':!0x0}),this[_0x1da247(0x1a2)][_0x1da247(0x1c3)](_0x1da247(0x1c0))['to'](this,_0x1da247(0x1b9),_0x550db7=>!_0x550db7),this[_0x1da247(0x1a2)]['on'](_0x1da247(0x1c5),()=>{const _0x31d24b=_0x1da247;this[_0x31d24b(0x1b8)](_0x31d24b(0x19d));}),this[_0x1da247(0x19f)]=new _0x31c8aa(this[_0x1da247(0x1a5)]),this[_0x1da247(0x19f)][_0x1da247(0x1c1)]({'icon':_0x18f475,'label':_0x580e60(this[_0x1da247(0x1a5)],_0x1da247(0x1a9)),'tooltip':!0x0}),this[_0x1da247(0x19f)][_0x1da247(0x1c3)](_0x1da247(0x1c0))['to'](this,_0x1da247(0x1b9),_0x3d645a=>!_0x3d645a),this[_0x1da247(0x19f)]['on'](_0x1da247(0x1c5),()=>{const _0x42ba7f=_0x1da247;this[_0x42ba7f(0x1b8)](_0x42ba7f(0x1d1));});}[_0x407c9c(0x1ab)](){const _0x470449=_0x407c9c;this[_0x470449(0x1b1)]=new _0x31c8aa(this[_0x470449(0x1a5)]),this[_0x470449(0x1b1)][_0x470449(0x1c1)]({'icon':_0x313ed2,'label':_0x580e60(this[_0x470449(0x1a5)],_0x470449(0x1ae)),'class':_0x470449(0x1c2),'tooltip':!0x0}),this[_0x470449(0x1b1)][_0x470449(0x1c3)](_0x470449(0x1c0))['to'](this,_0x470449(0x1b9),_0x292d28=>!_0x292d28);const _0x493f06=new _0x3466ce();_0x493f06[_0x470449(0x1c1)]({'content':_0x3e273f}),_0x493f06[_0x470449(0x1cb)]({'attributes':{'class':[_0x470449(0x1ca)]}}),this[_0x470449(0x1b1)]['on'](_0x470449(0x1c5),()=>{const _0x35fb15=_0x470449;this[_0x35fb15(0x1b1)][_0x35fb15(0x1bb)]=_0x35fb15(0x1ba),setTimeout(()=>{const _0x54221f=_0x35fb15;this[_0x54221f(0x1b1)][_0x54221f(0x1bb)]=_0x54221f(0x1c2);},0x7d0);}),this[_0x470449(0x1b1)][_0x470449(0x1a4)][_0x470449(0x1d0)](_0x493f06);}[_0x407c9c(0x1c7)](_0x9c60a8){const _0x3fed7a=_0x407c9c;this[_0x3fed7a(0x1a6)]=new _0x31c8aa(this[_0x3fed7a(0x1a5)]),this[_0x3fed7a(0x1a6)][_0x3fed7a(0x1c1)]({'icon':_0x134481,'label':_0x580e60(this[_0x3fed7a(0x1a5)],_0x3fed7a(0x1b7)),'withText':_0x3fed7a(0x1a8)==this[_0x3fed7a(0x1c9)][_0x3fed7a(0x1ce)],'tooltip':_0x3fed7a(0x1a8)!=this[_0x3fed7a(0x1c9)][_0x3fed7a(0x1ce)],'isOn':_0x9c60a8}),this[_0x3fed7a(0x1a6)][_0x3fed7a(0x1c3)](_0x3fed7a(0x1c0))['to'](this,_0x3fed7a(0x1b9),_0xa22be6=>!_0xa22be6),this[_0x3fed7a(0x1a6)]['on'](_0x3fed7a(0x1c5),()=>{const _0x432826=_0x3fed7a,_0x3547ba=!this[_0x432826(0x1a6)][_0x432826(0x1a7)];this[_0x432826(0x1a6)][_0x432826(0x1c1)]({'isOn':_0x3547ba,'icon':_0x3547ba?_0x559dff:_0x134481}),this[_0x432826(0x1b8)](_0x432826(0x1ac),_0x3547ba);});}}function _0x1f69(_0x132112,_0x479971){const _0x55dfcd=_0x55df();return _0x1f69=function(_0x1f6941,_0x509ac4){_0x1f6941=_0x1f6941-0x19d;let _0x156392=_0x55dfcd[_0x1f6941];return _0x156392;},_0x1f69(_0x132112,_0x479971);}function _0x55df(){const _0x3c0d07=['_config','ck-ai-mini-toolbar-copy-button__check-mark','extendTemplate','5ZAfWac','_setupRatingButtons','showChanges','180IJGHVZ','add','dislike','like','showDislike','dislikeButton','206001iASONM','7256210mfNuhx','likeButton','showCopy','children','locale','showChangesButton','isOn','full','AI_MINI_TOOLBAR_DISLIKE','addMany','_setupCopyButton','toggleShowChanges','showLike','AI_MINI_TOOLBAR_COPY','length','344kkEbxh','copyButton','2jExWTC','AI_MINI_TOOLBAR_LIKE','54063iqCIiu','items','ck-ai-mini-toolbar\x20ck-hidden','AI_SUGGESTION_BUTTON_SHOW_CHANGES','fire','isLoading','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','class','customView','120zuqtpR','913550WaNSsB','771288SJKEXO','isEnabled','set','ck-ai-mini-toolbar-copy-button','bind','6776586mfhzxh','execute','6227312CQkNpJ','_setupShowChangesButton','ck-ai-mini-toolbar'];_0x55df=function(){return _0x3c0d07;};return _0x55df();}
23
+ const _0x3403b7=_0x4d67;function _0x4d67(_0x3f7b7f,_0xdcc028){const _0x4af751=_0x4af7();return _0x4d67=function(_0x4d673b,_0x19b2e4){_0x4d673b=_0x4d673b-0x1a1;let _0x2dd7b1=_0x4af751[_0x4d673b];return _0x2dd7b1;},_0x4d67(_0x3f7b7f,_0xdcc028);}(function(_0x5053e1,_0x282edd){const _0x658b04=_0x4d67,_0x2898ca=_0x5053e1();while(!![]){try{const _0x2c913a=-parseInt(_0x658b04(0x1cb))/0x1*(parseInt(_0x658b04(0x1cf))/0x2)+parseInt(_0x658b04(0x1b4))/0x3+parseInt(_0x658b04(0x1ac))/0x4+parseInt(_0x658b04(0x1c4))/0x5+parseInt(_0x658b04(0x1b9))/0x6*(parseInt(_0x658b04(0x1a9))/0x7)+parseInt(_0x658b04(0x1b8))/0x8*(-parseInt(_0x658b04(0x1d1))/0x9)+parseInt(_0x658b04(0x1d3))/0xa*(-parseInt(_0x658b04(0x1b1))/0xb);if(_0x2c913a===_0x282edd)break;else _0x2898ca['push'](_0x2898ca['shift']());}catch(_0x22fe5c){_0x2898ca['push'](_0x2898ca['shift']());}}}(_0x4af7,0x2afc8));import{ButtonView as _0x201841,IconView as _0x36eaf6,ToolbarView as _0x5b9c74}from'ckeditor5/src/ui.js';import{IconCheck as _0x4e337a,IconCopy as _0x3297a1,IconShowChangesOff as _0x1ccac0,IconShowChangesOn as _0x4f0b2a,IconThumbDown as _0x110847,IconThumbUp as _0x2d51ff}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x49c4e5}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x5b9c74{[_0x3403b7(0x1a7)];[_0x3403b7(0x1a3)];[_0x3403b7(0x1bb)];[_0x3403b7(0x1c2)];[_0x3403b7(0x1c1)];constructor(_0x14061d,_0x5c438a={},_0x5c4620){const _0xfdea37=_0x3403b7;super(_0x14061d),this[_0xfdea37(0x1c8)](_0xfdea37(0x1d2),!0x1),this[_0xfdea37(0x1c1)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x5c438a};const _0x5ebdd9=!(this[_0xfdea37(0x1c1)][_0xfdea37(0x1ae)]||this[_0xfdea37(0x1c1)][_0xfdea37(0x1bd)]||this[_0xfdea37(0x1c1)][_0xfdea37(0x1cc)]||this[_0xfdea37(0x1c1)][_0xfdea37(0x1a2)]||this[_0xfdea37(0x1c1)][_0xfdea37(0x1af)]?.[_0xfdea37(0x1d4)]);this[_0xfdea37(0x1a4)]=_0x5ebdd9?_0xfdea37(0x1c3):_0xfdea37(0x1be),this[_0xfdea37(0x1c1)][_0xfdea37(0x1ae)]&&(this[_0xfdea37(0x1cd)](),this[_0xfdea37(0x1ce)][_0xfdea37(0x1a1)](this[_0xfdea37(0x1a7)])),this[_0xfdea37(0x1c1)][_0xfdea37(0x1bd)]&&(this[_0xfdea37(0x1b3)](_0x5c4620),this[_0xfdea37(0x1ce)][_0xfdea37(0x1a1)](this[_0xfdea37(0x1c2)])),this[_0xfdea37(0x1a8)](),this[_0xfdea37(0x1c1)][_0xfdea37(0x1cc)]&&this[_0xfdea37(0x1ce)][_0xfdea37(0x1a1)](this[_0xfdea37(0x1a3)]),this[_0xfdea37(0x1c1)][_0xfdea37(0x1a2)]&&this[_0xfdea37(0x1ce)][_0xfdea37(0x1a1)](this[_0xfdea37(0x1bb)]),this[_0xfdea37(0x1c1)][_0xfdea37(0x1af)]&&this[_0xfdea37(0x1ce)][_0xfdea37(0x1b2)](this[_0xfdea37(0x1c1)][_0xfdea37(0x1af)]);}[_0x3403b7(0x1a8)](){const _0x2b78fc=_0x3403b7;this[_0x2b78fc(0x1a3)]=new _0x201841(this[_0x2b78fc(0x1c0)]),this[_0x2b78fc(0x1a3)][_0x2b78fc(0x1c8)]({'icon':_0x2d51ff,'label':_0x49c4e5(this[_0x2b78fc(0x1c0)],_0x2b78fc(0x1a6)),'tooltip':!0x0}),this[_0x2b78fc(0x1a3)][_0x2b78fc(0x1ad)](_0x2b78fc(0x1ca))['to'](this,_0x2b78fc(0x1d2),_0x2eefab=>!_0x2eefab),this[_0x2b78fc(0x1a3)]['on'](_0x2b78fc(0x1b0),()=>{const _0x12b1a6=_0x2b78fc;this[_0x12b1a6(0x1bc)](_0x12b1a6(0x1ba));}),this[_0x2b78fc(0x1bb)]=new _0x201841(this[_0x2b78fc(0x1c0)]),this[_0x2b78fc(0x1bb)][_0x2b78fc(0x1c8)]({'icon':_0x110847,'label':_0x49c4e5(this[_0x2b78fc(0x1c0)],_0x2b78fc(0x1b5)),'tooltip':!0x0}),this[_0x2b78fc(0x1bb)][_0x2b78fc(0x1ad)](_0x2b78fc(0x1ca))['to'](this,_0x2b78fc(0x1d2),_0x10f59a=>!_0x10f59a),this[_0x2b78fc(0x1bb)]['on'](_0x2b78fc(0x1b0),()=>{const _0x2cb236=_0x2b78fc;this[_0x2cb236(0x1bc)](_0x2cb236(0x1bf));});}[_0x3403b7(0x1cd)](){const _0x3847e2=_0x3403b7;this[_0x3847e2(0x1a7)]=new _0x201841(this[_0x3847e2(0x1c0)]),this[_0x3847e2(0x1a7)][_0x3847e2(0x1c8)]({'icon':_0x3297a1,'label':_0x49c4e5(this[_0x3847e2(0x1c0)],_0x3847e2(0x1a5)),'class':_0x3847e2(0x1b7),'tooltip':!0x0}),this[_0x3847e2(0x1a7)][_0x3847e2(0x1ad)](_0x3847e2(0x1ca))['to'](this,_0x3847e2(0x1d2),_0x317f0a=>!_0x317f0a);const _0x1beb7a=new _0x36eaf6();_0x1beb7a[_0x3847e2(0x1c8)]({'content':_0x4e337a}),_0x1beb7a[_0x3847e2(0x1c5)]({'attributes':{'class':[_0x3847e2(0x1c9)]}}),this[_0x3847e2(0x1a7)]['on'](_0x3847e2(0x1b0),()=>{const _0x2b7114=_0x3847e2;this[_0x2b7114(0x1a7)][_0x2b7114(0x1a4)]=_0x2b7114(0x1ab),setTimeout(()=>{const _0x4328a6=_0x2b7114;this[_0x4328a6(0x1a7)][_0x4328a6(0x1a4)]=_0x4328a6(0x1b7);},0x7d0);}),this[_0x3847e2(0x1a7)][_0x3847e2(0x1d0)][_0x3847e2(0x1a1)](_0x1beb7a);}[_0x3403b7(0x1b3)](_0x29c02d){const _0x46b996=_0x3403b7;this[_0x46b996(0x1c2)]=new _0x201841(this[_0x46b996(0x1c0)]),this[_0x46b996(0x1c2)][_0x46b996(0x1c8)]({'icon':_0x1ccac0,'label':_0x49c4e5(this[_0x46b996(0x1c0)],_0x46b996(0x1c7)),'withText':_0x46b996(0x1aa)==this[_0x46b996(0x1c1)][_0x46b996(0x1bd)],'tooltip':_0x46b996(0x1aa)!=this[_0x46b996(0x1c1)][_0x46b996(0x1bd)],'isOn':_0x29c02d}),this[_0x46b996(0x1c2)][_0x46b996(0x1ad)](_0x46b996(0x1ca))['to'](this,_0x46b996(0x1d2),_0xf663cc=>!_0xf663cc),this[_0x46b996(0x1c2)]['on'](_0x46b996(0x1b0),()=>{const _0xb66833=_0x46b996,_0xa00c4b=!this[_0xb66833(0x1c2)][_0xb66833(0x1b6)];this[_0xb66833(0x1c2)][_0xb66833(0x1c8)]({'isOn':_0xa00c4b,'icon':_0xa00c4b?_0x4f0b2a:_0x1ccac0}),this[_0xb66833(0x1bc)](_0xb66833(0x1c6),_0xa00c4b);});}}function _0x4af7(){const _0x415ff7=['showLike','_setupCopyButton','items','441054BGXapu','children','76293gmiuXf','isLoading','916820oDMViI','length','add','showDislike','likeButton','class','AI_MINI_TOOLBAR_COPY','AI_MINI_TOOLBAR_LIKE','copyButton','_setupRatingButtons','7EoNnbl','full','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','730116iLzoLx','bind','showCopy','customView','execute','44SNQYjm','addMany','_setupShowChangesButton','668880KkxLqk','AI_MINI_TOOLBAR_DISLIKE','isOn','ck-ai-mini-toolbar-copy-button','16xqGwJZ','1682238QmmGdh','like','dislikeButton','fire','showChanges','ck-ai-mini-toolbar','dislike','locale','_config','showChangesButton','ck-ai-mini-toolbar\x20ck-hidden','472095ZPygxf','extendTemplate','toggleShowChanges','AI_SUGGESTION_BUTTON_SHOW_CHANGES','set','ck-ai-mini-toolbar-copy-button__check-mark','isEnabled','1BanneL'];_0x4af7=function(){return _0x415ff7;};return _0x4af7();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f22cc=_0x2a3e;(function(_0xf717b0,_0xd9f91f){const _0x233717=_0x2a3e,_0x213a74=_0xf717b0();while(!![]){try{const _0x4bbff7=parseInt(_0x233717(0x16d))/0x1*(-parseInt(_0x233717(0x17e))/0x2)+-parseInt(_0x233717(0x18e))/0x3*(-parseInt(_0x233717(0x163))/0x4)+-parseInt(_0x233717(0x18f))/0x5+-parseInt(_0x233717(0x157))/0x6*(parseInt(_0x233717(0x16f))/0x7)+parseInt(_0x233717(0x183))/0x8+-parseInt(_0x233717(0x162))/0x9+-parseInt(_0x233717(0x186))/0xa*(-parseInt(_0x233717(0x16e))/0xb);if(_0x4bbff7===_0xd9f91f)break;else _0x213a74['push'](_0x213a74['shift']());}catch(_0xfe5237){_0x213a74['push'](_0x213a74['shift']());}}}(_0x4447,0xe18c2));import{View as _0x393a05}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x214e90}from'./aisuggestioncontentpartview.js';function _0x4447(){const _0x2f1488=['updateContentParts','state','hasChanges','ck-ai-suggestion__body','empty-parts-warning','addEventListener','findIndex','hasPendingParts','updateContent','queueEmptyPromise','index','warning','AI_SUGGESTION_NO_PARTS_WARNING','hasNonEmptyParts','286tRumUa','delegate','_areActionsDisabled','_children','partDefinition','5266064IsEHet','setContent','_cachedContentParts','190rJtMFp','partsCount','isVisible','_showUnchangedParts','_availableActions','createCollection','getPartView','setTemplate','49737XbAWWM','5122630ABjXOb','forEach','abort','toggleHeader','708QXLpRr','from','locale','push','first','filter','_emptyPartsWarningView','enqueue','pending','updatePartState','div','6443091OFzflz','32baBltu','length','add','ck-ai-suggestion__body__content-parts','some','set','_updateContentPartsPromiseQueue','markAsDone','AI_SUGGESTION_EMPTY_PART_WARNING','find','9013uaOnXB','2592216uHMtLS','78022obbKxw'];_0x4447=function(){return _0x2f1488;};return _0x4447();}function _0x2a3e(_0x37f74e,_0xb8a272){const _0x44471c=_0x4447();return _0x2a3e=function(_0x2a3ed1,_0x7bf4c4){_0x2a3ed1=_0x2a3ed1-0x157;let _0x356665=_0x44471c[_0x2a3ed1];return _0x356665;},_0x2a3e(_0x37f74e,_0xb8a272);}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x212d94}from'../../utils/eventnames.js';import{PromiseQueue as _0x12bc89}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x44929e}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0xec611c}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x393a05{[_0x4f22cc(0x181)];[_0x4f22cc(0x180)];[_0x4f22cc(0x189)];[_0x4f22cc(0x169)];[_0x4f22cc(0x15d)];[_0x4f22cc(0x18a)];[_0x4f22cc(0x185)]=[];constructor(_0x58d9ec,_0x545027){const _0x46e46d=_0x4f22cc;super(_0x58d9ec);const {areActionsDisabled:_0x4e16c2,showUnchangedParts:_0x1e72ea,availableActions:_0x60dad9}=_0x545027;this[_0x46e46d(0x180)]=_0x4e16c2,this[_0x46e46d(0x189)]=_0x1e72ea,this[_0x46e46d(0x18a)]=_0x60dad9,this[_0x46e46d(0x168)](_0x46e46d(0x177),!0x1),this[_0x46e46d(0x181)]=this[_0x46e46d(0x18b)](),this[_0x46e46d(0x169)]=new _0x12bc89(),this[_0x46e46d(0x15d)]=new _0x44929e({'id':_0x46e46d(0x174),'initialContent':_0xec611c(_0x58d9ec,_0x46e46d(0x16b)),'level':_0x46e46d(0x17b)}),this[_0x46e46d(0x15d)][_0x46e46d(0x188)]=!0x1,this[_0x46e46d(0x18d)]({'tag':_0x46e46d(0x161),'attributes':{'class':['ck',_0x46e46d(0x173)]},'children':[{'tag':_0x46e46d(0x161),'attributes':{'class':['ck',_0x46e46d(0x166)]},'children':this[_0x46e46d(0x181)]},this[_0x46e46d(0x15d)]]});}get[_0x4f22cc(0x187)](){const _0x146501=_0x4f22cc;return this[_0x146501(0x181)][_0x146501(0x164)];}async[_0x4f22cc(0x170)]({parts:_0x4129a0,renderingStrategy:_0x31fdb8,abortSignal:_0xed8da1}){const _0x147977=_0x4f22cc;this[_0x147977(0x181)][_0x147977(0x164)]?_0x4129a0[_0x147977(0x190)](_0x1b2b31=>{const _0x29cecf=_0x147977,_0x505071=this[_0x29cecf(0x185)][_0x29cecf(0x176)](_0x485f09=>_0x485f09[_0x29cecf(0x17a)]==_0x1b2b31[_0x29cecf(0x17a)]);-0x1===_0x505071?this[_0x29cecf(0x185)][_0x29cecf(0x15a)](_0x1b2b31):this[_0x29cecf(0x185)][_0x505071]=_0x1b2b31;}):this[_0x147977(0x185)]=_0x4129a0;for(const _0x336ab8 of _0x4129a0[_0x147977(0x15c)](_0x2ff527=>_0x2ff527[_0x147977(0x172)]))this[_0x147977(0x169)][_0x147977(0x15e)](async _0x4f4270=>{const _0xc6d9ae=_0x147977;let _0x1c3c3c=this[_0xc6d9ae(0x18c)](_0x336ab8[_0xc6d9ae(0x17a)]);_0x1c3c3c||(_0x1c3c3c=new _0x214e90(this[_0xc6d9ae(0x159)],{'part':_0x336ab8,'uiIndex':this[_0xc6d9ae(0x181)][_0xc6d9ae(0x164)]+0x1,'areActionsDisabled':this[_0xc6d9ae(0x180)],'availableActions':this[_0xc6d9ae(0x18a)]}),_0x1c3c3c[_0xc6d9ae(0x17f)](..._0x212d94)['to'](this),this[_0xc6d9ae(0x181)][_0xc6d9ae(0x165)](_0x1c3c3c),this[_0xc6d9ae(0x177)]=!0x0),0x2===this[_0xc6d9ae(0x181)][_0xc6d9ae(0x164)]&&this[_0xc6d9ae(0x181)][_0xc6d9ae(0x15b)][_0xc6d9ae(0x192)](!0x0),_0x1c3c3c[_0xc6d9ae(0x192)](this[_0xc6d9ae(0x181)][_0xc6d9ae(0x164)]>0x1),await _0x1c3c3c[_0xc6d9ae(0x178)]({'part':_0x336ab8,'renderingStrategy':_0x31fdb8,'showUnchangedParts':this[_0xc6d9ae(0x189)],'abortSignal':_0x4f4270});});return _0xed8da1?.[_0x147977(0x175)](_0x147977(0x191),()=>{const _0x10c753=_0x147977;this[_0x10c753(0x169)][_0x10c753(0x191)]();}),this[_0x147977(0x169)][_0x147977(0x179)];}[_0x4f22cc(0x160)](_0x2bfb66,_0x16f32d){const _0x3c2a9d=_0x4f22cc,_0x31c37d=this[_0x3c2a9d(0x18c)](_0x2bfb66);_0x31c37d&&(_0x31c37d[_0x3c2a9d(0x171)]=_0x16f32d),this[_0x3c2a9d(0x177)]=_0x3c2a9d(0x15f)==_0x16f32d||Array[_0x3c2a9d(0x158)](this[_0x3c2a9d(0x181)])[_0x3c2a9d(0x167)](_0x23c927=>_0x3c2a9d(0x15f)==_0x23c927[_0x3c2a9d(0x171)]);}[_0x4f22cc(0x18c)](_0x5719a3){const _0x29382a=_0x4f22cc;return this[_0x29382a(0x181)][_0x29382a(0x16c)](_0x316d39=>_0x316d39[_0x29382a(0x182)][_0x29382a(0x17a)]==_0x5719a3)??null;}[_0x4f22cc(0x16a)](){const _0x5da820=_0x4f22cc;if(!this[_0x5da820(0x189)]){const _0x1f3506=!this[_0x5da820(0x185)][_0x5da820(0x16c)](({hasChanges:_0x33890a})=>_0x33890a),_0x23805b=!!this[_0x5da820(0x185)][_0x5da820(0x16c)](({hasChanges:_0x35ddad})=>!_0x35ddad);this[_0x5da820(0x15d)][_0x5da820(0x188)]=0x0==this[_0x5da820(0x181)][_0x5da820(0x164)]||_0x23805b,_0x1f3506?this[_0x5da820(0x15d)][_0x5da820(0x184)](_0xec611c(this[_0x5da820(0x159)],_0x5da820(0x17c))):this[_0x5da820(0x15d)][_0x5da820(0x184)](_0xec611c(this[_0x5da820(0x159)],_0x5da820(0x16b)));}}get[_0x4f22cc(0x17d)](){const _0x41aa03=_0x4f22cc;return!!this[_0x41aa03(0x181)][_0x41aa03(0x16c)](_0x27f9d5=>_0x27f9d5[_0x41aa03(0x182)][_0x41aa03(0x172)]);}}
23
+ const _0x3e3f6a=_0x16ce;(function(_0x1a6177,_0xe0a47a){const _0xfe76a0=_0x16ce,_0x415c66=_0x1a6177();while(!![]){try{const _0xca0293=parseInt(_0xfe76a0(0x169))/0x1*(parseInt(_0xfe76a0(0x175))/0x2)+parseInt(_0xfe76a0(0x15a))/0x3+parseInt(_0xfe76a0(0x15c))/0x4*(-parseInt(_0xfe76a0(0x16e))/0x5)+parseInt(_0xfe76a0(0x173))/0x6+parseInt(_0xfe76a0(0x153))/0x7+parseInt(_0xfe76a0(0x15b))/0x8+-parseInt(_0xfe76a0(0x160))/0x9;if(_0xca0293===_0xe0a47a)break;else _0x415c66['push'](_0x415c66['shift']());}catch(_0x4e9f04){_0x415c66['push'](_0x415c66['shift']());}}}(_0x5bc2,0x5c9b5));import{View as _0x389f48}from'ckeditor5/src/ui.js';function _0x5bc2(){const _0x42b8b0=['set','toggleHeader','state','markAsDone','4468974gchnPN','find','239572HdjGdW','push','updateContent','add','_cachedContentParts','ck-ai-suggestion__body','from','ck-ai-suggestion__body__content-parts','pending','partsCount','locale','updateContentParts','setContent','isVisible','empty-parts-warning','getPartView','_children','_showUnchangedParts','setTemplate','queueEmptyPromise','div','partDefinition','first','findIndex','3818598FrIQsa','hasPendingParts','createCollection','warning','updatePartState','_emptyPartsWarningView','addEventListener','664995fEfRvZ','4121736ZcEOOa','366844QqiZCE','length','_areActionsDisabled','enqueue','10131453wJyXuY','filter','hasNonEmptyParts','forEach','_updateContentPartsPromiseQueue','index','AI_SUGGESTION_EMPTY_PART_WARNING','hasChanges','abort','1vgGxPs','some','AI_SUGGESTION_NO_PARTS_WARNING','_availableActions','delegate','35xkjDIX'];_0x5bc2=function(){return _0x42b8b0;};return _0x5bc2();}import{AISuggestionBodyViewContentPartView as _0x4b6fdd}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x27e35a}from'../../utils/eventnames.js';function _0x16ce(_0xa6c027,_0x360604){const _0x5bc2e9=_0x5bc2();return _0x16ce=function(_0x16ce6d,_0x18ad7d){_0x16ce6d=_0x16ce6d-0x140;let _0x130289=_0x5bc2e9[_0x16ce6d];return _0x130289;},_0x16ce(_0xa6c027,_0x360604);}import{PromiseQueue as _0x5557eb}from'../../../aichat/utils/promisequeue.js';import{AIChatFeedErrorItemView as _0x813c3a}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0xaf29c3}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x389f48{[_0x3e3f6a(0x14b)];[_0x3e3f6a(0x15e)];[_0x3e3f6a(0x14c)];[_0x3e3f6a(0x164)];[_0x3e3f6a(0x158)];[_0x3e3f6a(0x16c)];[_0x3e3f6a(0x179)]=[];constructor(_0x451fe1,_0x14605e){const _0x4920c7=_0x3e3f6a;super(_0x451fe1);const {areActionsDisabled:_0x3558e5,showUnchangedParts:_0x47d88e,availableActions:_0x5f0348}=_0x14605e;this[_0x4920c7(0x15e)]=_0x3558e5,this[_0x4920c7(0x14c)]=_0x47d88e,this[_0x4920c7(0x16c)]=_0x5f0348,this[_0x4920c7(0x16f)](_0x4920c7(0x154),!0x1),this[_0x4920c7(0x14b)]=this[_0x4920c7(0x155)](),this[_0x4920c7(0x164)]=new _0x5557eb(),this[_0x4920c7(0x158)]=new _0x813c3a({'id':_0x4920c7(0x149),'initialContent':_0xaf29c3(_0x451fe1,_0x4920c7(0x166)),'level':_0x4920c7(0x156)}),this[_0x4920c7(0x158)][_0x4920c7(0x148)]=!0x1,this[_0x4920c7(0x14d)]({'tag':_0x4920c7(0x14f),'attributes':{'class':['ck',_0x4920c7(0x140)]},'children':[{'tag':_0x4920c7(0x14f),'attributes':{'class':['ck',_0x4920c7(0x142)]},'children':this[_0x4920c7(0x14b)]},this[_0x4920c7(0x158)]]});}get[_0x3e3f6a(0x144)](){const _0xa97249=_0x3e3f6a;return this[_0xa97249(0x14b)][_0xa97249(0x15d)];}async[_0x3e3f6a(0x146)]({parts:_0xc6f1e0,renderingStrategy:_0x3529b3,abortSignal:_0x11832d}){const _0x1ca57a=_0x3e3f6a;this[_0x1ca57a(0x14b)][_0x1ca57a(0x15d)]?_0xc6f1e0[_0x1ca57a(0x163)](_0xee9352=>{const _0x1d4686=_0x1ca57a,_0x4c4dca=this[_0x1d4686(0x179)][_0x1d4686(0x152)](_0x16bebf=>_0x16bebf[_0x1d4686(0x165)]==_0xee9352[_0x1d4686(0x165)]);-0x1===_0x4c4dca?this[_0x1d4686(0x179)][_0x1d4686(0x176)](_0xee9352):this[_0x1d4686(0x179)][_0x4c4dca]=_0xee9352;}):this[_0x1ca57a(0x179)]=_0xc6f1e0;for(const _0x5b695d of _0xc6f1e0[_0x1ca57a(0x161)](_0x888c58=>_0x888c58[_0x1ca57a(0x167)]))this[_0x1ca57a(0x164)][_0x1ca57a(0x15f)](async _0x3fb209=>{const _0x50233d=_0x1ca57a;let _0x1aa893=this[_0x50233d(0x14a)](_0x5b695d[_0x50233d(0x165)]);_0x1aa893||(_0x1aa893=new _0x4b6fdd(this[_0x50233d(0x145)],{'part':_0x5b695d,'uiIndex':this[_0x50233d(0x14b)][_0x50233d(0x15d)]+0x1,'areActionsDisabled':this[_0x50233d(0x15e)],'availableActions':this[_0x50233d(0x16c)]}),_0x1aa893[_0x50233d(0x16d)](..._0x27e35a)['to'](this),this[_0x50233d(0x14b)][_0x50233d(0x178)](_0x1aa893),this[_0x50233d(0x154)]=!0x0),0x2===this[_0x50233d(0x14b)][_0x50233d(0x15d)]&&this[_0x50233d(0x14b)][_0x50233d(0x151)][_0x50233d(0x170)](!0x0),_0x1aa893[_0x50233d(0x170)](this[_0x50233d(0x14b)][_0x50233d(0x15d)]>0x1),await _0x1aa893[_0x50233d(0x177)]({'part':_0x5b695d,'renderingStrategy':_0x3529b3,'showUnchangedParts':this[_0x50233d(0x14c)],'abortSignal':_0x3fb209});});return _0x11832d?.[_0x1ca57a(0x159)](_0x1ca57a(0x168),()=>{const _0x41bdda=_0x1ca57a;this[_0x41bdda(0x164)][_0x41bdda(0x168)]();}),this[_0x1ca57a(0x164)][_0x1ca57a(0x14e)];}[_0x3e3f6a(0x157)](_0x53191f,_0x158b73){const _0x120bd7=_0x3e3f6a,_0x4c8bb3=this[_0x120bd7(0x14a)](_0x53191f);_0x4c8bb3&&(_0x4c8bb3[_0x120bd7(0x171)]=_0x158b73),this[_0x120bd7(0x154)]=_0x120bd7(0x143)==_0x158b73||Array[_0x120bd7(0x141)](this[_0x120bd7(0x14b)])[_0x120bd7(0x16a)](_0x8e3ea=>_0x120bd7(0x143)==_0x8e3ea[_0x120bd7(0x171)]);}[_0x3e3f6a(0x14a)](_0x35ac17){const _0x46571f=_0x3e3f6a;return this[_0x46571f(0x14b)][_0x46571f(0x174)](_0x576fd2=>_0x576fd2[_0x46571f(0x150)][_0x46571f(0x165)]==_0x35ac17)??null;}[_0x3e3f6a(0x172)](){const _0x53b279=_0x3e3f6a;if(!this[_0x53b279(0x14c)]){const _0x5ee69b=!this[_0x53b279(0x179)][_0x53b279(0x174)](({hasChanges:_0x211efa})=>_0x211efa),_0x47bacf=!!this[_0x53b279(0x179)][_0x53b279(0x174)](({hasChanges:_0x5550b7})=>!_0x5550b7);this[_0x53b279(0x158)][_0x53b279(0x148)]=0x0==this[_0x53b279(0x14b)][_0x53b279(0x15d)]||_0x47bacf,_0x5ee69b?this[_0x53b279(0x158)][_0x53b279(0x147)](_0xaf29c3(this[_0x53b279(0x145)],_0x53b279(0x16b))):this[_0x53b279(0x158)][_0x53b279(0x147)](_0xaf29c3(this[_0x53b279(0x145)],_0x53b279(0x166)));}}get[_0x3e3f6a(0x162)](){const _0x525fe4=_0x3e3f6a;return!!this[_0x525fe4(0x14b)][_0x525fe4(0x174)](_0x3fa0e8=>_0x3fa0e8[_0x525fe4(0x150)][_0x525fe4(0x167)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1965(){const _0x5255eb=['clearErrorState','open','items','showLoader','miniToolbarView','271536tvPyPV','createCollection','809930wMflmv','div','ck-ai-suggestion__loader-text','fire','img','updateContentParts','ck\x20ck-ai-web-source','children','423888trUYKH','637592yukzPj','headerView','389529ALTkeW','isErrorVisible','sourcesView','169506DpcEdf','textContent','ck-rounded-corners','clearLoading','AI_CHAT_IS_WRITING','delegate','isVisible','add','_createLoaderView','icon','bindTemplate','isLoaderVisible','markAsDone','ck-ai-suggestion__container','extendTemplate','AI_CHAT_GENERIC_ERROR','.ck-ai-suggestion__error-text','errorView','map','ck-ai-suggestion__error','bodyView','setLoading','showChangesToggleView','element','toggleSuggestionDisplayMode','small','setErrorState','updateSources','title','addNavigationItem','locale','ck-ai-web-sources__header','remove','set','favicon','ck-ai-web-sources','_blank','updateContent','72cJjrWU','content','ck-hidden','areChangesVisible','isEnabled','removeNavigationItem','ck-ai-suggestion__loader','bind','10941fdSohz','ck-ai-web-source__image','_createErrorView','396ktJTyl','span','querySelector','setTemplate','loaderView','hideError','ck-ai-suggestion__error-text','url','hasNonEmptyParts','toggleShowChanges','AI_CHAT_SOURCES_HEADER','hideLoader','isLoading','isShowChangesToggleVisible','showError','isOn','addMany'];_0x1965=function(){return _0x5255eb;};return _0x1965();}const _0x5e2077=_0x71b9;(function(_0x4bcc6f,_0x1dc88e){const _0x4a7167=_0x71b9,_0xcafd66=_0x4bcc6f();while(!![]){try{const _0x27fd7b=parseInt(_0x4a7167(0x172))/0x1+-parseInt(_0x4a7167(0x162))/0x2+-parseInt(_0x4a7167(0x16f))/0x3+-parseInt(_0x4a7167(0x16d))/0x4+-parseInt(_0x4a7167(0x164))/0x5+-parseInt(_0x4a7167(0x14c))/0x6*(-parseInt(_0x4a7167(0x149))/0x7)+-parseInt(_0x4a7167(0x16c))/0x8*(-parseInt(_0x4a7167(0x141))/0x9);if(_0x27fd7b===_0x1dc88e)break;else _0xcafd66['push'](_0xcafd66['shift']());}catch(_0x37af73){_0xcafd66['push'](_0xcafd66['shift']());}}}(_0x1965,0x1abf5));import{IconWeb as _0x1c1b56}from'@ckeditor/ckeditor5-icons';import{View as _0x4ac204,ButtonView as _0x587bdf,IconView as _0x43c99a}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x1499ab}from'./aiminitoolbarview.js';function _0x71b9(_0x256981,_0x539409){const _0x196527=_0x1965();return _0x71b9=function(_0x71b946,_0x3d1322){_0x71b946=_0x71b946-0x12e;let _0x50a480=_0x196527[_0x71b946];return _0x50a480;},_0x71b9(_0x256981,_0x539409);}import{AISuggestionHeaderView as _0x298bb6}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x10f90b}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3d0ebd}from'../../utils/eventnames.js';import{AISpinnerView as _0x5e5082}from'../aispinner.js';import{getTranslation as _0x3378d4}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x4ac204{[_0x5e2077(0x12f)];[_0x5e2077(0x161)];[_0x5e2077(0x16b)];[_0x5e2077(0x16e)];[_0x5e2077(0x150)];[_0x5e2077(0x183)];[_0x5e2077(0x171)];constructor(_0x230507,_0x470b32){const _0x1b01ce=_0x5e2077;super(_0x230507);const {showDiff:_0x161c21,areActionsDisabled:_0x4cb2c6,miniToolbarConfig:_0x4e5a43,hideHeader:_0x43b740,showLoader:_0x34de79,showUnchangedParts:_0x3fd61c,availableActions:_0x4112d2}=_0x470b32;this[_0x1b01ce(0x13c)](_0x1b01ce(0x144),!0x1),this[_0x1b01ce(0x13c)](_0x1b01ce(0x17d),!!_0x34de79),this[_0x1b01ce(0x13c)](_0x1b01ce(0x170),!0x1),this[_0x1b01ce(0x13c)](_0x1b01ce(0x158),!0x1),this[_0x1b01ce(0x16b)]=this[_0x1b01ce(0x163)](),_0x43b740||(this[_0x1b01ce(0x16e)]=new _0x298bb6(_0x230507,{'showDiff':_0x161c21}),this[_0x1b01ce(0x16e)]['on'](_0x1b01ce(0x155),(_0x4ef568,_0x1cd414)=>{const _0x554065=_0x1b01ce;this[_0x554065(0x144)]=_0x1cd414[_0x554065(0x15b)],this[_0x554065(0x167)](_0x554065(0x133),{'showDiff':_0x1cd414[_0x554065(0x15b)]});}),this[_0x1b01ce(0x16b)][_0x1b01ce(0x179)](this[_0x1b01ce(0x16e)])),this[_0x1b01ce(0x12f)]=new _0x10f90b(_0x230507,{'areActionsDisabled':_0x4cb2c6,'showUnchangedParts':!!_0x3fd61c,'availableActions':_0x4112d2}),this[_0x1b01ce(0x12f)][_0x1b01ce(0x177)](..._0x3d0ebd)['to'](this),this[_0x1b01ce(0x12f)][_0x1b01ce(0x180)]({'attributes':{'class':[this[_0x1b01ce(0x17c)]['if'](_0x1b01ce(0x17d),_0x1b01ce(0x143)),this[_0x1b01ce(0x17c)]['if'](_0x1b01ce(0x170),_0x1b01ce(0x143))]}}),this[_0x1b01ce(0x161)]=new _0x1499ab(_0x230507,_0x4e5a43,_0x161c21),this[_0x1b01ce(0x161)][_0x1b01ce(0x177)](..._0x3d0ebd)['to'](this),this[_0x1b01ce(0x161)]['on'](_0x1b01ce(0x155),(_0x4e90cd,_0x5b096f)=>{const _0x55222b=_0x1b01ce;this[_0x55222b(0x144)]=_0x5b096f,this[_0x55222b(0x167)](_0x55222b(0x133),{'showDiff':_0x5b096f});}),this[_0x1b01ce(0x161)][_0x1b01ce(0x148)](_0x1b01ce(0x158))['to'](this),this[_0x1b01ce(0x16b)][_0x1b01ce(0x179)](this[_0x1b01ce(0x12f)]),this[_0x1b01ce(0x16b)][_0x1b01ce(0x179)](this[_0x1b01ce(0x161)]),this[_0x1b01ce(0x171)]=new AIWebSourcesView(this[_0x1b01ce(0x139)]),this[_0x1b01ce(0x16b)][_0x1b01ce(0x179)](this[_0x1b01ce(0x171)]),_0x34de79&&(this[_0x1b01ce(0x150)]=this[_0x1b01ce(0x17a)](),this[_0x1b01ce(0x16b)][_0x1b01ce(0x179)](this[_0x1b01ce(0x150)])),this[_0x1b01ce(0x183)]=this[_0x1b01ce(0x14b)](),this[_0x1b01ce(0x16b)][_0x1b01ce(0x179)](this[_0x1b01ce(0x183)]),this[_0x1b01ce(0x14f)]({'tag':_0x1b01ce(0x165),'attributes':{'class':['ck',_0x1b01ce(0x17f),_0x1b01ce(0x174)]},'children':this[_0x1b01ce(0x16b)]});}async[_0x5e2077(0x140)](_0x497905){const _0x249b32=_0x5e2077;await this[_0x249b32(0x12f)][_0x249b32(0x169)](_0x497905);}[_0x5e2077(0x136)](_0x9efe3b){const _0x464b8a=_0x5e2077;this[_0x464b8a(0x171)][_0x464b8a(0x16b)][_0x464b8a(0x15c)](_0x9efe3b[_0x464b8a(0x184)](_0x4cf152=>new AIWebSourceView(this[_0x464b8a(0x139)],_0x4cf152))),this[_0x464b8a(0x171)][_0x464b8a(0x178)]=!0x0;}[_0x5e2077(0x160)](){const _0x188928=_0x5e2077;this[_0x188928(0x150)]&&(this[_0x188928(0x17d)]=!0x0);}[_0x5e2077(0x157)](){const _0x3d13e4=_0x5e2077;this[_0x3d13e4(0x150)]&&(this[_0x3d13e4(0x17d)]=!0x1);}[_0x5e2077(0x15a)](_0x519ce7){const _0x3dccf9=_0x5e2077;if(this[_0x3dccf9(0x183)]){const _0x521207=this[_0x3dccf9(0x183)][_0x3dccf9(0x132)]?.[_0x3dccf9(0x14e)](_0x3dccf9(0x182));_0x521207&&(_0x521207[_0x3dccf9(0x173)]=_0x519ce7),this[_0x3dccf9(0x170)]=!0x0;}}[_0x5e2077(0x151)](){const _0x5b4c72=_0x5e2077;this[_0x5b4c72(0x183)]&&(this[_0x5b4c72(0x170)]=!0x1);}[_0x5e2077(0x17e)](){const _0x31cef0=_0x5e2077;this[_0x31cef0(0x12f)][_0x31cef0(0x17e)](),this[_0x31cef0(0x16e)]&&(this[_0x31cef0(0x16e)][_0x31cef0(0x159)]=this[_0x31cef0(0x12f)][_0x31cef0(0x154)]);}[_0x5e2077(0x130)](){const _0x21bd7d=_0x5e2077;this[_0x21bd7d(0x158)]=!0x0;}[_0x5e2077(0x175)](){const _0x4af49f=_0x5e2077;this[_0x4af49f(0x158)]=!0x1;}[_0x5e2077(0x135)](){const _0x4b0c4a=_0x5e2077;this[_0x4b0c4a(0x161)]&&(this[_0x4b0c4a(0x161)][_0x4b0c4a(0x158)]=!0x0),this[_0x4b0c4a(0x16e)]?.[_0x4b0c4a(0x131)]&&(this[_0x4b0c4a(0x16e)][_0x4b0c4a(0x131)][_0x4b0c4a(0x145)]=!0x1);}[_0x5e2077(0x15d)](){const _0x57450b=_0x5e2077;this[_0x57450b(0x161)]&&(this[_0x57450b(0x161)][_0x57450b(0x158)]=!0x1),this[_0x57450b(0x16e)]?.[_0x57450b(0x131)]&&(this[_0x57450b(0x16e)][_0x57450b(0x131)][_0x57450b(0x145)]=!0x0);}[_0x5e2077(0x138)](_0x3db121){const _0x1e6723=_0x5e2077;this[_0x1e6723(0x161)][_0x1e6723(0x15f)][_0x1e6723(0x179)](_0x3db121);}[_0x5e2077(0x146)](_0x4a5341){const _0x4a16db=_0x5e2077;this[_0x4a16db(0x161)][_0x4a16db(0x15f)][_0x4a16db(0x13b)](_0x4a5341);}[_0x5e2077(0x17a)](){const _0x500523=_0x5e2077,_0x2ae386=new _0x4ac204(this[_0x500523(0x139)]),_0x13a00b=new _0x5e5082(_0x500523(0x134));_0x13a00b[_0x500523(0x178)]=!0x0;const _0x375463=new _0x4ac204(this[_0x500523(0x139)]);return _0x375463[_0x500523(0x14f)]({'tag':_0x500523(0x14d),'attributes':{'class':['ck',_0x500523(0x166)]},'children':[_0x3378d4(this[_0x500523(0x139)],_0x500523(0x176))]}),_0x2ae386[_0x500523(0x14f)]({'tag':_0x500523(0x165),'attributes':{'class':['ck',_0x500523(0x147),this[_0x500523(0x17c)]['if'](_0x500523(0x17d),_0x500523(0x143),_0x36d7a6=>!_0x36d7a6)]},'children':[_0x13a00b,_0x375463]}),_0x2ae386;}[_0x5e2077(0x14b)](){const _0x548576=_0x5e2077,_0x22d9ec=new _0x4ac204(this[_0x548576(0x139)]),_0x5b4cc5=new _0x4ac204(this[_0x548576(0x139)]);return _0x5b4cc5[_0x548576(0x14f)]({'tag':_0x548576(0x14d),'attributes':{'class':['ck',_0x548576(0x152)]},'children':[_0x3378d4(this[_0x548576(0x139)],_0x548576(0x181))]}),_0x22d9ec[_0x548576(0x14f)]({'tag':_0x548576(0x165),'attributes':{'class':['ck',_0x548576(0x12e),this[_0x548576(0x17c)]['if'](_0x548576(0x170),_0x548576(0x143),_0x34faad=>!_0x34faad)]},'children':[_0x5b4cc5]}),_0x22d9ec;}}export class AIWebSourcesView extends _0x4ac204{[_0x5e2077(0x16b)];constructor(_0x1d743f){const _0x426336=_0x5e2077;super(_0x1d743f),this[_0x426336(0x16b)]=this[_0x426336(0x163)](),this[_0x426336(0x13c)](_0x426336(0x178),!0x1),this[_0x426336(0x14f)]({'tag':_0x426336(0x165),'attributes':{'class':['ck',_0x426336(0x13e),this[_0x426336(0x17c)]['if'](_0x426336(0x178),_0x426336(0x143),_0x576852=>!_0x576852)]},'children':this[_0x426336(0x16b)]});const _0x52bc62=new _0x4ac204(this[_0x426336(0x139)]),_0x30121a=new _0x43c99a();_0x30121a[_0x426336(0x142)]=_0x1c1b56,_0x52bc62[_0x426336(0x14f)]({'tag':_0x426336(0x165),'attributes':{'class':['ck',_0x426336(0x13a)]},'children':[_0x30121a,{'tag':_0x426336(0x14d),'children':[{'text':_0x3378d4(this[_0x426336(0x139)],_0x426336(0x156))}]}]}),this[_0x426336(0x16b)][_0x426336(0x179)](_0x52bc62);}}export class AIWebSourceView extends _0x587bdf{constructor(_0x40cebc,_0x264f72){const _0x30af21=_0x5e2077;super(_0x40cebc),this[_0x30af21(0x13c)]({'label':_0x264f72[_0x30af21(0x137)],'tooltip':_0x264f72[_0x30af21(0x137)],'class':[_0x30af21(0x16a)],'withText':!0x0});const _0x322e23=this[_0x30af21(0x17c)];if(this[_0x30af21(0x180)]({'on':{'click':_0x322e23['to'](()=>{const _0x5a9656=_0x30af21;window[_0x5a9656(0x15e)](_0x264f72[_0x5a9656(0x153)],_0x5a9656(0x13f));})}}),_0x264f72[_0x30af21(0x13d)]){const _0x100959=new _0x4ac204(_0x40cebc);_0x100959[_0x30af21(0x14f)]({'tag':_0x30af21(0x168),'attributes':{'src':_0x264f72[_0x30af21(0x13d)]||_0x1c1b56,'alt':_0x264f72[_0x30af21(0x137)],'class':[_0x30af21(0x14a)]}}),this[_0x30af21(0x16b)][_0x30af21(0x179)](_0x100959);}else this[_0x30af21(0x13c)](_0x30af21(0x17b),_0x1c1b56);}}
23
+ const _0x14a9f7=_0x5afc;(function(_0x51b03a,_0x4c355b){const _0xc48542=_0x5afc,_0x5d1318=_0x51b03a();while(!![]){try{const _0x55414d=parseInt(_0xc48542(0x241))/0x1*(-parseInt(_0xc48542(0x1f7))/0x2)+parseInt(_0xc48542(0x22a))/0x3*(parseInt(_0xc48542(0x23f))/0x4)+parseInt(_0xc48542(0x22d))/0x5*(-parseInt(_0xc48542(0x209))/0x6)+parseInt(_0xc48542(0x1f4))/0x7*(parseInt(_0xc48542(0x20a))/0x8)+-parseInt(_0xc48542(0x239))/0x9*(-parseInt(_0xc48542(0x20e))/0xa)+parseInt(_0xc48542(0x204))/0xb+parseInt(_0xc48542(0x1fe))/0xc*(-parseInt(_0xc48542(0x23d))/0xd);if(_0x55414d===_0x4c355b)break;else _0x5d1318['push'](_0x5d1318['shift']());}catch(_0x2641b1){_0x5d1318['push'](_0x5d1318['shift']());}}}(_0x3d08,0x7f445));function _0x5afc(_0x3ab76e,_0x2fa241){const _0x3d082a=_0x3d08();return _0x5afc=function(_0x5afcb3,_0x433bce){_0x5afcb3=_0x5afcb3-0x1f4;let _0x178ed9=_0x3d082a[_0x5afcb3];return _0x178ed9;},_0x5afc(_0x3ab76e,_0x2fa241);}import{IconWeb as _0x1857f9}from'@ckeditor/ckeditor5-icons';import{View as _0x19090d,ButtonView as _0x48a309,IconView as _0x388fb6}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x3d8ac4}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x184d05}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x415f83}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x39dd24}from'../../utils/eventnames.js';import{AISpinnerView as _0x2542e4}from'../aispinner.js';function _0x3d08(){const _0x5076a6=['headerView','AI_CHAT_GENERIC_ERROR','removeNavigationItem','favicon','delegate','9526264MmWBAe','bindTemplate','isVisible','createCollection','querySelector','2166NVQAaQ','3728BQcydB','ck-ai-web-sources__header','ck-ai-suggestion__error','hasNonEmptyParts','198860CnpemT','updateSources','children','isLoading','loaderView','div','url','icon','fire','toggleSuggestionDisplayMode','setTemplate','add','element','errorView','addMany','ck-ai-suggestion__loader-text','clearLoading','ck-rounded-corners','open','items','_createErrorView','clearErrorState','showChangesToggleView','ck-ai-suggestion__loader','_createLoaderView','isLoaderVisible','markAsDone','isErrorVisible','657993jwTOJU','setLoading','ck-ai-web-sources','2285MeESvM','_blank','sourcesView','AI_CHAT_SOURCES_HEADER','bodyView','remove','toggleShowChanges','miniToolbarView','map','set','updateContentParts','AI_CHAT_IS_WRITING','342AscCkX','extendTemplate','img','textContent','945399XhoJxl','title','4NBDSCS','span','22793Hcjxte','showLoader','showError','bind','hideError','ck-hidden','areChangesVisible','updateContent','ck\x20ck-ai-web-source','isEnabled','setErrorState','addNavigationItem','small','ck-ai-web-source__image','3507rSrPeP','.ck-ai-suggestion__error-text','locale','58GJXgbn','isOn','ck-ai-suggestion__container','isShowChangesToggleVisible','hideLoader','ck-ai-suggestion__error-text','content','120WROcPJ'];_0x3d08=function(){return _0x5076a6;};return _0x3d08();}import{getTranslation as _0x3cec2d}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x19090d{[_0x14a9f7(0x231)];[_0x14a9f7(0x234)];[_0x14a9f7(0x210)];[_0x14a9f7(0x1ff)];[_0x14a9f7(0x212)];[_0x14a9f7(0x21b)];[_0x14a9f7(0x22f)];constructor(_0x34ce20,_0x5a805a){const _0x17b523=_0x14a9f7;super(_0x34ce20);const {showDiff:_0x500c17,areActionsDisabled:_0x18705e,miniToolbarConfig:_0x11feee,hideHeader:_0x1d9858,showLoader:_0x4e8367,showUnchangedParts:_0x391d9e,availableActions:_0x3f52ac}=_0x5a805a;this[_0x17b523(0x236)](_0x17b523(0x247),!0x1),this[_0x17b523(0x236)](_0x17b523(0x227),!!_0x4e8367),this[_0x17b523(0x236)](_0x17b523(0x229),!0x1),this[_0x17b523(0x236)](_0x17b523(0x211),!0x1),this[_0x17b523(0x210)]=this[_0x17b523(0x207)](),_0x1d9858||(this[_0x17b523(0x1ff)]=new _0x184d05(_0x34ce20,{'showDiff':_0x500c17}),this[_0x17b523(0x1ff)]['on'](_0x17b523(0x233),(_0x37e3ed,_0x33bb9b)=>{const _0x3ef83b=_0x17b523;this[_0x3ef83b(0x247)]=_0x33bb9b[_0x3ef83b(0x1f8)],this[_0x3ef83b(0x216)](_0x3ef83b(0x217),{'showDiff':_0x33bb9b[_0x3ef83b(0x1f8)]});}),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x1ff)])),this[_0x17b523(0x231)]=new _0x415f83(_0x34ce20,{'areActionsDisabled':_0x18705e,'showUnchangedParts':!!_0x391d9e,'availableActions':_0x3f52ac}),this[_0x17b523(0x231)][_0x17b523(0x203)](..._0x39dd24)['to'](this),this[_0x17b523(0x231)][_0x17b523(0x23a)]({'attributes':{'class':[this[_0x17b523(0x205)]['if'](_0x17b523(0x227),_0x17b523(0x246)),this[_0x17b523(0x205)]['if'](_0x17b523(0x229),_0x17b523(0x246))]}}),this[_0x17b523(0x234)]=new _0x3d8ac4(_0x34ce20,_0x11feee,_0x500c17),this[_0x17b523(0x234)][_0x17b523(0x203)](..._0x39dd24)['to'](this),this[_0x17b523(0x234)]['on'](_0x17b523(0x233),(_0x38ec7d,_0x2a2070)=>{const _0x222b82=_0x17b523;this[_0x222b82(0x247)]=_0x2a2070,this[_0x222b82(0x216)](_0x222b82(0x217),{'showDiff':_0x2a2070});}),this[_0x17b523(0x234)][_0x17b523(0x244)](_0x17b523(0x211))['to'](this),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x231)]),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x234)]),this[_0x17b523(0x22f)]=new AIWebSourcesView(this[_0x17b523(0x1f6)]),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x22f)]),_0x4e8367&&(this[_0x17b523(0x212)]=this[_0x17b523(0x226)](),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x212)])),this[_0x17b523(0x21b)]=this[_0x17b523(0x222)](),this[_0x17b523(0x210)][_0x17b523(0x219)](this[_0x17b523(0x21b)]),this[_0x17b523(0x218)]({'tag':_0x17b523(0x213),'attributes':{'class':['ck',_0x17b523(0x1f9),_0x17b523(0x21f)]},'children':this[_0x17b523(0x210)]});}async[_0x14a9f7(0x248)](_0x12a1fe){const _0x36b78b=_0x14a9f7;await this[_0x36b78b(0x231)][_0x36b78b(0x237)](_0x12a1fe);}[_0x14a9f7(0x20f)](_0x3f910a){const _0x262808=_0x14a9f7;this[_0x262808(0x22f)][_0x262808(0x210)][_0x262808(0x21c)](_0x3f910a[_0x262808(0x235)](_0x581fdf=>new AIWebSourceView(this[_0x262808(0x1f6)],_0x581fdf))),this[_0x262808(0x22f)][_0x262808(0x206)]=!0x0;}[_0x14a9f7(0x242)](){const _0x3ded2a=_0x14a9f7;this[_0x3ded2a(0x212)]&&(this[_0x3ded2a(0x227)]=!0x0);}[_0x14a9f7(0x1fb)](){const _0x8ff62a=_0x14a9f7;this[_0x8ff62a(0x212)]&&(this[_0x8ff62a(0x227)]=!0x1);}[_0x14a9f7(0x243)](_0x13db4f){const _0x8bf91b=_0x14a9f7;if(this[_0x8bf91b(0x21b)]){const _0x16affc=this[_0x8bf91b(0x21b)][_0x8bf91b(0x21a)]?.[_0x8bf91b(0x208)](_0x8bf91b(0x1f5));_0x16affc&&(_0x16affc[_0x8bf91b(0x23c)]=_0x13db4f),this[_0x8bf91b(0x229)]=!0x0;}}[_0x14a9f7(0x245)](){const _0x4dbafb=_0x14a9f7;this[_0x4dbafb(0x21b)]&&(this[_0x4dbafb(0x229)]=!0x1);}[_0x14a9f7(0x228)](){const _0xe8cd41=_0x14a9f7;this[_0xe8cd41(0x231)][_0xe8cd41(0x228)](),this[_0xe8cd41(0x1ff)]&&(this[_0xe8cd41(0x1ff)][_0xe8cd41(0x1fa)]=this[_0xe8cd41(0x231)][_0xe8cd41(0x20d)]);}[_0x14a9f7(0x22b)](){const _0x9aaab4=_0x14a9f7;this[_0x9aaab4(0x211)]=!0x0;}[_0x14a9f7(0x21e)](){const _0xa5f029=_0x14a9f7;this[_0xa5f029(0x211)]=!0x1;}[_0x14a9f7(0x24b)](){const _0x4609e9=_0x14a9f7;this[_0x4609e9(0x234)]&&(this[_0x4609e9(0x234)][_0x4609e9(0x211)]=!0x0),this[_0x4609e9(0x1ff)]?.[_0x4609e9(0x224)]&&(this[_0x4609e9(0x1ff)][_0x4609e9(0x224)][_0x4609e9(0x24a)]=!0x1);}[_0x14a9f7(0x223)](){const _0x80a0f0=_0x14a9f7;this[_0x80a0f0(0x234)]&&(this[_0x80a0f0(0x234)][_0x80a0f0(0x211)]=!0x1),this[_0x80a0f0(0x1ff)]?.[_0x80a0f0(0x224)]&&(this[_0x80a0f0(0x1ff)][_0x80a0f0(0x224)][_0x80a0f0(0x24a)]=!0x0);}[_0x14a9f7(0x24c)](_0x74296f){const _0x1d98fc=_0x14a9f7;this[_0x1d98fc(0x234)][_0x1d98fc(0x221)][_0x1d98fc(0x219)](_0x74296f);}[_0x14a9f7(0x201)](_0x21abbd){const _0x533305=_0x14a9f7;this[_0x533305(0x234)][_0x533305(0x221)][_0x533305(0x232)](_0x21abbd);}[_0x14a9f7(0x226)](){const _0x454249=_0x14a9f7,_0x163d4b=new _0x19090d(this[_0x454249(0x1f6)]),_0x2fd767=new _0x2542e4(_0x454249(0x24d));_0x2fd767[_0x454249(0x206)]=!0x0;const _0x3209a1=new _0x19090d(this[_0x454249(0x1f6)]);return _0x3209a1[_0x454249(0x218)]({'tag':_0x454249(0x240),'attributes':{'class':['ck',_0x454249(0x21d)]},'children':[_0x3cec2d(this[_0x454249(0x1f6)],_0x454249(0x238))]}),_0x163d4b[_0x454249(0x218)]({'tag':_0x454249(0x213),'attributes':{'class':['ck',_0x454249(0x225),this[_0x454249(0x205)]['if'](_0x454249(0x227),_0x454249(0x246),_0x592542=>!_0x592542)]},'children':[_0x2fd767,_0x3209a1]}),_0x163d4b;}[_0x14a9f7(0x222)](){const _0x10bb85=_0x14a9f7,_0x358dd5=new _0x19090d(this[_0x10bb85(0x1f6)]),_0x527064=new _0x19090d(this[_0x10bb85(0x1f6)]);return _0x527064[_0x10bb85(0x218)]({'tag':_0x10bb85(0x240),'attributes':{'class':['ck',_0x10bb85(0x1fc)]},'children':[_0x3cec2d(this[_0x10bb85(0x1f6)],_0x10bb85(0x200))]}),_0x358dd5[_0x10bb85(0x218)]({'tag':_0x10bb85(0x213),'attributes':{'class':['ck',_0x10bb85(0x20c),this[_0x10bb85(0x205)]['if'](_0x10bb85(0x229),_0x10bb85(0x246),_0xb02b16=>!_0xb02b16)]},'children':[_0x527064]}),_0x358dd5;}}export class AIWebSourcesView extends _0x19090d{[_0x14a9f7(0x210)];constructor(_0x438787){const _0xa82e91=_0x14a9f7;super(_0x438787),this[_0xa82e91(0x210)]=this[_0xa82e91(0x207)](),this[_0xa82e91(0x236)](_0xa82e91(0x206),!0x1),this[_0xa82e91(0x218)]({'tag':_0xa82e91(0x213),'attributes':{'class':['ck',_0xa82e91(0x22c),this[_0xa82e91(0x205)]['if'](_0xa82e91(0x206),_0xa82e91(0x246),_0x1950d1=>!_0x1950d1)]},'children':this[_0xa82e91(0x210)]});const _0x53c7d0=new _0x19090d(this[_0xa82e91(0x1f6)]),_0xbd6c7a=new _0x388fb6();_0xbd6c7a[_0xa82e91(0x1fd)]=_0x1857f9,_0x53c7d0[_0xa82e91(0x218)]({'tag':_0xa82e91(0x213),'attributes':{'class':['ck',_0xa82e91(0x20b)]},'children':[_0xbd6c7a,{'tag':_0xa82e91(0x240),'children':[{'text':_0x3cec2d(this[_0xa82e91(0x1f6)],_0xa82e91(0x230))}]}]}),this[_0xa82e91(0x210)][_0xa82e91(0x219)](_0x53c7d0);}}export class AIWebSourceView extends _0x48a309{constructor(_0x355747,_0x23b158){const _0x2b1faa=_0x14a9f7;super(_0x355747),this[_0x2b1faa(0x236)]({'label':_0x23b158[_0x2b1faa(0x23e)],'tooltip':_0x23b158[_0x2b1faa(0x23e)],'class':[_0x2b1faa(0x249)],'withText':!0x0});const _0x482f5c=this[_0x2b1faa(0x205)];if(this[_0x2b1faa(0x23a)]({'on':{'click':_0x482f5c['to'](()=>{const _0x129c73=_0x2b1faa;window[_0x129c73(0x220)](_0x23b158[_0x129c73(0x214)],_0x129c73(0x22e));})}}),_0x23b158[_0x2b1faa(0x202)]){const _0x5bd807=new _0x19090d(_0x355747);_0x5bd807[_0x2b1faa(0x218)]({'tag':_0x2b1faa(0x23b),'attributes':{'src':_0x23b158[_0x2b1faa(0x202)]||_0x1857f9,'alt':_0x23b158[_0x2b1faa(0x23e)],'class':[_0x2b1faa(0x24e)]}}),this[_0x2b1faa(0x210)][_0x2b1faa(0x219)](_0x5bd807);}else this[_0x2b1faa(0x236)](_0x2b1faa(0x215),_0x1857f9);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcf9e02=_0x168d;(function(_0x32035f,_0x5a8e8d){const _0x460be0=_0x168d,_0x1457aa=_0x32035f();while(!![]){try{const _0x3c8b69=parseInt(_0x460be0(0x166))/0x1+-parseInt(_0x460be0(0x165))/0x2*(parseInt(_0x460be0(0x177))/0x3)+-parseInt(_0x460be0(0x178))/0x4*(parseInt(_0x460be0(0x15d))/0x5)+parseInt(_0x460be0(0x142))/0x6*(-parseInt(_0x460be0(0x167))/0x7)+-parseInt(_0x460be0(0x144))/0x8+-parseInt(_0x460be0(0x12b))/0x9*(-parseInt(_0x460be0(0x172))/0xa)+parseInt(_0x460be0(0x16e))/0xb*(parseInt(_0x460be0(0x146))/0xc);if(_0x3c8b69===_0x5a8e8d)break;else _0x1457aa['push'](_0x1457aa['shift']());}catch(_0x3b70e4){_0x1457aa['push'](_0x1457aa['shift']());}}}(_0x3adf,0xeeb6b));import{View as _0x495a5b,IconView as _0x2af7c3,ToolbarView as _0x358dd9,ButtonView as _0x395725}from'ckeditor5/src/ui.js';function _0x3adf(){const _0x333b9c=['_toolbarView','mouseOverSuggestion','rejectSuggestion','content','toString','_iconStateRejected','ck-ai-suggestion__body__content-part_','AI_SUGGESTION_CONTENT_PART_DELETE','updateContent','push','_iconStateOutdated','accepted','extendTemplate','ck-content','20gmTbDZ','children','_iconStateAccepted','ck-reset_all-excluded','execute','change:state','add','outdated','2sAgOCz','1449770FfukYJ','2622823eLPkQE','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','contentView','animation:\x20ck-html-streamer-fade-in\x20.5s','ck-ai-suggestion__body__content-part__icon-rejected','includes','headerView','10437757oKJnKP','rejected','insertSuggestion','htmlStreamer','157610MogWPt','ck-ai-suggestion__body__content-part__icon-outdated','ck-ai-suggestion__body__content-part__icon-accepted','mouseLeaveSuggestion','innerHTML','3794973XqyKDv','1515716Kauwxk','fire','setTemplate','state','ck-ai-suggestion__body__content-part__title__label','addMany','927MFMEhU','items','span','bind','ck-ai-suggestion__body__content-part__content','AI_SUGGESTION_CONTENT_PART_REJECTED','ck-ai-suggestion__body__content-part__icon-title','ck-hidden','partDefinition','AI_SUGGESTION_CONTENT_PART_TITLE','index','has','isVisible','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','set','showChangeInText','AI_SUGGESTION_CONTENT_PART_OUTDATED','toggleHeader','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','stream','bindTemplate','delegate','div','12BrnXnz','ck-ai-suggestion__body__content-part','3704568pWFMtx','ck-ai-suggestion__body__content-part_active','24NrTBoo','remove','streaming','isEnabled','pending','element','hasChanges','ck-ai-suggestion__body__content-part__title','createCollection'];_0x3adf=function(){return _0x333b9c;};return _0x3adf();}import{IconAddComment as _0x58ff97,IconDocumentWithLoupe as _0x5b541b,IconDocumentWithCheckmark as _0x115df3,IconDocumentWithCross as _0x2c01dd,IconRemove as _0x168c81,IconThreeStars as _0x5d4b7e}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x391620}from'../../utils/htmlstreamer.js';import{getTranslation as _0x56003e}from'../../utils/common-translations.js';import{serialize as _0x3fd3d6}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x468d6c}from'../../utils/eventnames.js';function _0x168d(_0x5cd27d,_0x1f21eb){const _0x3adfb6=_0x3adf();return _0x168d=function(_0x168d5e,_0x105ac4){_0x168d5e=_0x168d5e-0x12b;let _0x36017e=_0x3adfb6[_0x168d5e];return _0x36017e;},_0x168d(_0x5cd27d,_0x1f21eb);}export class AISuggestionBodyViewContentPartView extends _0x495a5b{[_0xcf9e02(0x171)];[_0xcf9e02(0x15e)];[_0xcf9e02(0x16d)];[_0xcf9e02(0x169)];constructor(_0x25b9a1,{part:_0x3f7107,uiIndex:_0x8fc0c8,areActionsDisabled:_0x5c7360,availableActions:_0x54f3bb}){const _0x2812dd=_0xcf9e02;super(_0x25b9a1),this[_0x2812dd(0x139)](_0x2812dd(0x133),_0x3f7107),this[_0x2812dd(0x139)](_0x2812dd(0x17b),_0x2812dd(0x14a)),this[_0x2812dd(0x139)](_0x2812dd(0x137),!0x1),this[_0x2812dd(0x12e)](_0x2812dd(0x149))['to'](this,_0x2812dd(0x17b),_0x28ade3=>_0x2812dd(0x14a)==_0x28ade3&&!_0x5c7360),this[_0x2812dd(0x15e)]=this[_0x2812dd(0x14e)](),this[_0x2812dd(0x171)]=new _0x391620({'textNodeStyle':_0x2812dd(0x16a),'delay':0x14}),this[_0x2812dd(0x16d)]=new Un(_0x25b9a1,{'part':_0x3f7107,'uiIndex':_0x8fc0c8,'availableActions':_0x54f3bb}),this[_0x2812dd(0x16d)][_0x2812dd(0x12e)](_0x2812dd(0x133))['to'](this),this[_0x2812dd(0x16d)][_0x2812dd(0x12e)](_0x2812dd(0x149))['to'](this),this[_0x2812dd(0x16d)][_0x2812dd(0x12e)](_0x2812dd(0x17b))['to'](this),this[_0x2812dd(0x16d)][_0x2812dd(0x140)](..._0x468d6c)['to'](this);const _0x300b15=this[_0x2812dd(0x13f)];this[_0x2812dd(0x169)]=new _0x495a5b(),this[_0x2812dd(0x169)][_0x2812dd(0x17a)]({'tag':_0x2812dd(0x141),'attributes':{'class':['ck',_0x2812dd(0x15c),_0x2812dd(0x160),_0x2812dd(0x12f)]}}),this[_0x2812dd(0x15e)][_0x2812dd(0x17d)]([this[_0x2812dd(0x169)]]),this[_0x2812dd(0x17a)]({'tag':_0x2812dd(0x141),'attributes':{'class':['ck',_0x2812dd(0x143),_0x300b15['to'](_0x2812dd(0x17b),_0x341046=>_0x2812dd(0x155)+_0x341046),_0x300b15['to'](_0x2812dd(0x149),_0x2e63c1=>_0x2e63c1?_0x2812dd(0x145):void 0x0),_0x300b15['if'](_0x2812dd(0x137),_0x2812dd(0x132),_0x281972=>!_0x281972)]},'children':this[_0x2812dd(0x15e)],'on':{'mouseenter':_0x300b15['to'](()=>{const _0x119470=_0x2812dd;this[_0x119470(0x149)]&&this[_0x119470(0x179)](_0x119470(0x150),{'index':_0x3f7107[_0x119470(0x135)]});}),'mouseleave':_0x300b15['to'](()=>{const _0xc10e7e=_0x2812dd;this[_0xc10e7e(0x149)]&&this[_0xc10e7e(0x179)](_0xc10e7e(0x175),{'index':_0x3f7107[_0xc10e7e(0x135)]});})}});}async[_0xcf9e02(0x157)]({part:_0xcdb65a,renderingStrategy:_0x4178c0,showUnchangedParts:_0x32cbdc=!0x1,abortSignal:_0x1639da}){const _0x518d18=_0xcf9e02;this[_0x518d18(0x133)]=_0xcdb65a,this[_0x518d18(0x137)]=this[_0x518d18(0x133)][_0x518d18(0x14c)]||_0x32cbdc,this[_0x518d18(0x137)]&&(_0x518d18(0x148)===_0x4178c0?await this[_0x518d18(0x171)][_0x518d18(0x13e)]({'document':this[_0x518d18(0x133)][_0x518d18(0x152)],'targetElement':this[_0x518d18(0x169)][_0x518d18(0x14b)],'abortSignal':_0x1639da}):this[_0x518d18(0x169)][_0x518d18(0x14b)][_0x518d18(0x176)]=_0x3fd3d6(this[_0x518d18(0x133)][_0x518d18(0x152)]));}[_0xcf9e02(0x13c)](_0x4e7daa){const _0x34499=_0xcf9e02;_0x4e7daa?this[_0x34499(0x15e)][_0x34499(0x136)](this[_0x34499(0x16d)])||this[_0x34499(0x15e)][_0x34499(0x163)](this[_0x34499(0x16d)],0x0):this[_0x34499(0x15e)][_0x34499(0x136)](this[_0x34499(0x16d)])&&this[_0x34499(0x15e)][_0x34499(0x147)](this[_0x34499(0x16d)]);}}class Un extends _0x495a5b{[_0xcf9e02(0x15e)];[_0xcf9e02(0x14f)];[_0xcf9e02(0x15f)];[_0xcf9e02(0x154)];[_0xcf9e02(0x159)];constructor(_0x7c46bd,{part:_0x19a1d6,uiIndex:_0x7faac1,availableActions:_0x1da608}){const _0x14b8db=_0xcf9e02;super(_0x7c46bd),this[_0x14b8db(0x139)](_0x14b8db(0x133),_0x19a1d6),this[_0x14b8db(0x139)](_0x14b8db(0x149),!0x0),this[_0x14b8db(0x139)](_0x14b8db(0x17b),_0x14b8db(0x14a));const _0x5c1ae2=new _0x2af7c3();_0x5c1ae2[_0x14b8db(0x152)]=_0x5d4b7e,_0x5c1ae2[_0x14b8db(0x15b)]({'attributes':{'class':[_0x14b8db(0x131)]}});const _0xc98197=[];if(_0x1da608[_0x14b8db(0x16c)](_0x14b8db(0x13a))){const _0x380650=new _0x395725(_0x7c46bd);_0x380650[_0x14b8db(0x139)]({'label':_0x56003e(_0x7c46bd,_0x14b8db(0x13d)),'tooltip':!0x0,'withText':!0x1,'icon':_0x5b541b}),_0x380650[_0x14b8db(0x12e)](_0x14b8db(0x149))['to'](this),_0x380650['on'](_0x14b8db(0x161),()=>{const _0x8b30fb=_0x14b8db;this[_0x8b30fb(0x179)](_0x8b30fb(0x13a),{'index':_0x19a1d6[_0x8b30fb(0x135)]});}),_0xc98197[_0x14b8db(0x158)](_0x380650);}if(_0x1da608[_0x14b8db(0x16c)](_0x14b8db(0x170))){const _0x1e6eb6=new _0x395725(_0x7c46bd);_0x1e6eb6[_0x14b8db(0x139)]({'label':_0x56003e(_0x7c46bd,_0x14b8db(0x168)),'tooltip':!0x0,'withText':!0x1,'icon':_0x58ff97}),_0x1e6eb6[_0x14b8db(0x12e)](_0x14b8db(0x149))['to'](this),_0x1e6eb6['on'](_0x14b8db(0x161),()=>{const _0x2ee8e8=_0x14b8db;this[_0x2ee8e8(0x179)](_0x2ee8e8(0x170),{'index':_0x19a1d6[_0x2ee8e8(0x135)]});}),_0xc98197[_0x14b8db(0x158)](_0x1e6eb6);}const _0x3ddbe6=new _0x395725(_0x7c46bd);_0x3ddbe6[_0x14b8db(0x139)]({'label':_0x56003e(_0x7c46bd,_0x14b8db(0x156)),'tooltip':!0x0,'withText':!0x1,'icon':_0x168c81}),_0x3ddbe6[_0x14b8db(0x12e)](_0x14b8db(0x149))['to'](this),_0x3ddbe6['on'](_0x14b8db(0x161),()=>{const _0x2d3eec=_0x14b8db;this[_0x2d3eec(0x179)](_0x2d3eec(0x151),{'index':_0x19a1d6[_0x2d3eec(0x135)]});}),_0xc98197[_0x14b8db(0x158)](_0x3ddbe6),this[_0x14b8db(0x14f)]=new _0x358dd9(_0x7c46bd),this[_0x14b8db(0x14f)][_0x14b8db(0x12c)][_0x14b8db(0x17d)](_0xc98197),this[_0x14b8db(0x15f)]=new _0x2af7c3(),this[_0x14b8db(0x15f)][_0x14b8db(0x152)]=_0x115df3,this[_0x14b8db(0x15f)][_0x14b8db(0x15b)]({'attributes':{'class':[_0x14b8db(0x174)],'data-cke-tooltip-text':_0x56003e(_0x7c46bd,_0x14b8db(0x138)),'data-cke-tooltip-position':'n'}}),this[_0x14b8db(0x154)]=new _0x2af7c3(),this[_0x14b8db(0x154)][_0x14b8db(0x152)]=_0x2c01dd,this[_0x14b8db(0x154)][_0x14b8db(0x15b)]({'attributes':{'class':[_0x14b8db(0x16b)],'data-cke-tooltip-text':_0x56003e(_0x7c46bd,_0x14b8db(0x130)),'data-cke-tooltip-position':'n'}}),this[_0x14b8db(0x159)]=new _0x2af7c3(),this[_0x14b8db(0x159)][_0x14b8db(0x152)]=_0x2c01dd,this[_0x14b8db(0x159)][_0x14b8db(0x15b)]({'attributes':{'class':[_0x14b8db(0x173)],'data-cke-tooltip-text':_0x56003e(_0x7c46bd,_0x14b8db(0x13b)),'data-cke-tooltip-position':'n'}});const _0x483530=new _0x495a5b(_0x7c46bd);_0x483530[_0x14b8db(0x17a)]({'tag':_0x14b8db(0x12d),'attributes':{'class':['ck',_0x14b8db(0x17c)]},'children':[_0x56003e(_0x7c46bd,_0x14b8db(0x134),_0x7faac1[_0x14b8db(0x153)]())]}),this[_0x14b8db(0x15e)]=this[_0x14b8db(0x14e)](),this[_0x14b8db(0x15e)][_0x14b8db(0x17d)]([_0x5c1ae2,_0x483530,this[_0x14b8db(0x14f)]]),this[_0x14b8db(0x17a)]({'tag':_0x14b8db(0x141),'attributes':{'class':['ck',_0x14b8db(0x160),_0x14b8db(0x14d)]},'children':this[_0x14b8db(0x15e)]}),this['on'](_0x14b8db(0x162),(_0x439009,_0x1ee22b,_0x5f00f1,_0x1448ce)=>{const _0x50d0eb=_0x14b8db;switch(_0x1448ce){case _0x50d0eb(0x14a):this[_0x50d0eb(0x15e)][_0x50d0eb(0x147)](this[_0x50d0eb(0x14f)]);break;case _0x50d0eb(0x15a):this[_0x50d0eb(0x15e)][_0x50d0eb(0x147)](this[_0x50d0eb(0x15f)]);break;case _0x50d0eb(0x16f):this[_0x50d0eb(0x15e)][_0x50d0eb(0x147)](this[_0x50d0eb(0x154)]);break;case _0x50d0eb(0x164):this[_0x50d0eb(0x15e)][_0x50d0eb(0x147)](this[_0x50d0eb(0x159)]);}switch(_0x5f00f1){case _0x50d0eb(0x14a):this[_0x50d0eb(0x15e)][_0x50d0eb(0x163)](this[_0x50d0eb(0x14f)]);break;case _0x50d0eb(0x15a):this[_0x50d0eb(0x15e)][_0x50d0eb(0x163)](this[_0x50d0eb(0x15f)]);break;case _0x50d0eb(0x16f):this[_0x50d0eb(0x15e)][_0x50d0eb(0x163)](this[_0x50d0eb(0x154)]);break;case _0x50d0eb(0x164):this[_0x50d0eb(0x15e)][_0x50d0eb(0x163)](this[_0x50d0eb(0x159)]);}});}}
23
+ function _0x48e0(){const _0x3f4729=['ck-reset_all-excluded','AI_SUGGESTION_CONTENT_PART_SHOW_IN_THE_TEXT','push','accepted','setTemplate','_iconStateRejected','mouseOverSuggestion','children','span','ck-ai-suggestion__body__content-part','isEnabled','items','ck-ai-suggestion__body__content-part__icon-outdated','has','htmlStreamer','ck-ai-suggestion__body__content-part_','ck-ai-suggestion__body__content-part__title','ck-ai-suggestion__body__content-part__icon-title','ck-content','_iconStateOutdated','ck-ai-suggestion__body__content-part__icon-rejected','pending','AI_SUGGESTION_CONTENT_PART_ALREADY_APPLIED','bindTemplate','outdated','rejected','contentView','752LmeoJf','ck-ai-suggestion__body__content-part__icon-accepted','6173340PMfBFz','AI_SUGGESTION_CONTENT_PART_ADD_AS_SUGGESTION','remove','index','ck-ai-suggestion__body__content-part__title__label','7720965opqjxK','ck-hidden','224FkROSO','stream','94251kxeGVE','toggleHeader','animation:\x20ck-html-streamer-fade-in\x20.5s','updateContent','headerView','div','366435czywnZ','content','ck-ai-suggestion__body__content-part_active','showChangeInText','mouseLeaveSuggestion','delegate','65853UDriXP','set','fire','streaming','partDefinition','state','isVisible','includes','AI_SUGGESTION_CONTENT_PART_DELETE','element','AI_SUGGESTION_CONTENT_PART_REJECTED','toString','hasChanges','insertSuggestion','ck-ai-suggestion__body__content-part__content','_iconStateAccepted','createCollection','change:state','bind','AI_SUGGESTION_CONTENT_PART_OUTDATED','_toolbarView','6cijhgl','extendTemplate','rejectSuggestion','execute','innerHTML','2797292IiYkOw','addMany','AI_SUGGESTION_CONTENT_PART_TITLE','1767198eZRztJ','add'];_0x48e0=function(){return _0x3f4729;};return _0x48e0();}function _0x25f9(_0x2da208,_0x548be2){const _0x48e0ee=_0x48e0();return _0x25f9=function(_0x25f91a,_0x36678c){_0x25f91a=_0x25f91a-0x1ec;let _0x219169=_0x48e0ee[_0x25f91a];return _0x219169;},_0x25f9(_0x2da208,_0x548be2);}const _0x209e45=_0x25f9;(function(_0x282f62,_0x2b0eb6){const _0x1a651a=_0x25f9,_0x16bd65=_0x282f62();while(!![]){try{const _0x2642e3=parseInt(_0x1a651a(0x22d))/0x1+-parseInt(_0x1a651a(0x22a))/0x2+parseInt(_0x1a651a(0x204))/0x3*(-parseInt(_0x1a651a(0x202))/0x4)+parseInt(_0x1a651a(0x20a))/0x5*(-parseInt(_0x1a651a(0x225))/0x6)+parseInt(_0x1a651a(0x200))/0x7+parseInt(_0x1a651a(0x1f9))/0x8*(parseInt(_0x1a651a(0x210))/0x9)+parseInt(_0x1a651a(0x1fb))/0xa;if(_0x2642e3===_0x2b0eb6)break;else _0x16bd65['push'](_0x16bd65['shift']());}catch(_0x87d0a8){_0x16bd65['push'](_0x16bd65['shift']());}}}(_0x48e0,0xe67a8));import{View as _0x545137,IconView as _0x1211b8,ToolbarView as _0x5a626f,ButtonView as _0x412b3a}from'ckeditor5/src/ui.js';import{IconAddComment as _0x4738d9,IconDocumentWithLoupe as _0x1ddab5,IconDocumentWithCheckmark as _0x532ccd,IconDocumentWithCross as _0x982b17,IconRemove as _0x4e9222,IconThreeStars as _0x296df6}from'ckeditor5/src/icons.js';import{HTMLStreamer as _0x56546c}from'../../utils/htmlstreamer.js';import{getTranslation as _0x1e0d73}from'../../utils/common-translations.js';import{serialize as _0x57c5aa}from'../../utils/htmlparser.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x21dcba}from'../../utils/eventnames.js';export class AISuggestionBodyViewContentPartView extends _0x545137{[_0x209e45(0x1ec)];[_0x209e45(0x236)];[_0x209e45(0x208)];[_0x209e45(0x1f8)];constructor(_0x1fc886,{part:_0x99de6b,uiIndex:_0x47f077,areActionsDisabled:_0x10770b,availableActions:_0x25815a}){const _0x45fff2=_0x209e45;super(_0x1fc886),this[_0x45fff2(0x211)](_0x45fff2(0x214),_0x99de6b),this[_0x45fff2(0x211)](_0x45fff2(0x215),_0x45fff2(0x1f3)),this[_0x45fff2(0x211)](_0x45fff2(0x216),!0x1),this[_0x45fff2(0x222)](_0x45fff2(0x239))['to'](this,_0x45fff2(0x215),_0x59c1b7=>_0x45fff2(0x1f3)==_0x59c1b7&&!_0x10770b),this[_0x45fff2(0x236)]=this[_0x45fff2(0x220)](),this[_0x45fff2(0x1ec)]=new _0x56546c({'textNodeStyle':_0x45fff2(0x206),'delay':0x14}),this[_0x45fff2(0x208)]=new Bn(_0x1fc886,{'part':_0x99de6b,'uiIndex':_0x47f077,'availableActions':_0x25815a}),this[_0x45fff2(0x208)][_0x45fff2(0x222)](_0x45fff2(0x214))['to'](this),this[_0x45fff2(0x208)][_0x45fff2(0x222)](_0x45fff2(0x239))['to'](this),this[_0x45fff2(0x208)][_0x45fff2(0x222)](_0x45fff2(0x215))['to'](this),this[_0x45fff2(0x208)][_0x45fff2(0x20f)](..._0x21dcba)['to'](this);const _0x50e6e4=this[_0x45fff2(0x1f5)];this[_0x45fff2(0x1f8)]=new _0x545137(),this[_0x45fff2(0x1f8)][_0x45fff2(0x233)]({'tag':_0x45fff2(0x209),'attributes':{'class':['ck',_0x45fff2(0x1f0),_0x45fff2(0x22f),_0x45fff2(0x21e)]}}),this[_0x45fff2(0x236)][_0x45fff2(0x22b)]([this[_0x45fff2(0x1f8)]]),this[_0x45fff2(0x233)]({'tag':_0x45fff2(0x209),'attributes':{'class':['ck',_0x45fff2(0x238),_0x50e6e4['to'](_0x45fff2(0x215),_0x50776f=>_0x45fff2(0x1ed)+_0x50776f),_0x50e6e4['to'](_0x45fff2(0x239),_0x53acdd=>_0x53acdd?_0x45fff2(0x20c):void 0x0),_0x50e6e4['if'](_0x45fff2(0x216),_0x45fff2(0x201),_0x31780f=>!_0x31780f)]},'children':this[_0x45fff2(0x236)],'on':{'mouseenter':_0x50e6e4['to'](()=>{const _0x4ce05e=_0x45fff2;this[_0x4ce05e(0x239)]&&this[_0x4ce05e(0x212)](_0x4ce05e(0x235),{'index':_0x99de6b[_0x4ce05e(0x1fe)]});}),'mouseleave':_0x50e6e4['to'](()=>{const _0x1e86ac=_0x45fff2;this[_0x1e86ac(0x239)]&&this[_0x1e86ac(0x212)](_0x1e86ac(0x20e),{'index':_0x99de6b[_0x1e86ac(0x1fe)]});})}});}async[_0x209e45(0x207)]({part:_0x2aeaa1,renderingStrategy:_0x1aacce,showUnchangedParts:_0x2552f6=!0x1,abortSignal:_0x227c9e}){const _0x4a6d58=_0x209e45;this[_0x4a6d58(0x214)]=_0x2aeaa1,this[_0x4a6d58(0x216)]=this[_0x4a6d58(0x214)][_0x4a6d58(0x21c)]||_0x2552f6,this[_0x4a6d58(0x216)]&&(_0x4a6d58(0x213)===_0x1aacce?await this[_0x4a6d58(0x1ec)][_0x4a6d58(0x203)]({'document':this[_0x4a6d58(0x214)][_0x4a6d58(0x20b)],'targetElement':this[_0x4a6d58(0x1f8)][_0x4a6d58(0x219)],'abortSignal':_0x227c9e}):this[_0x4a6d58(0x1f8)][_0x4a6d58(0x219)][_0x4a6d58(0x229)]=_0x57c5aa(this[_0x4a6d58(0x214)][_0x4a6d58(0x20b)]));}[_0x209e45(0x205)](_0x422836){const _0x27309b=_0x209e45;_0x422836?this[_0x27309b(0x236)][_0x27309b(0x23c)](this[_0x27309b(0x208)])||this[_0x27309b(0x236)][_0x27309b(0x22e)](this[_0x27309b(0x208)],0x0):this[_0x27309b(0x236)][_0x27309b(0x23c)](this[_0x27309b(0x208)])&&this[_0x27309b(0x236)][_0x27309b(0x1fd)](this[_0x27309b(0x208)]);}}class Bn extends _0x545137{[_0x209e45(0x236)];[_0x209e45(0x224)];[_0x209e45(0x21f)];[_0x209e45(0x234)];[_0x209e45(0x1f1)];constructor(_0x534c85,{part:_0x3bf4b9,uiIndex:_0x4d4f44,availableActions:_0x5383c1}){const _0x2b812a=_0x209e45;super(_0x534c85),this[_0x2b812a(0x211)](_0x2b812a(0x214),_0x3bf4b9),this[_0x2b812a(0x211)](_0x2b812a(0x239),!0x0),this[_0x2b812a(0x211)](_0x2b812a(0x215),_0x2b812a(0x1f3));const _0xe685ef=new _0x1211b8();_0xe685ef[_0x2b812a(0x20b)]=_0x296df6,_0xe685ef[_0x2b812a(0x226)]({'attributes':{'class':[_0x2b812a(0x1ef)]}});const _0x1539ec=[];if(_0x5383c1[_0x2b812a(0x217)](_0x2b812a(0x20d))){const _0x38cdcf=new _0x412b3a(_0x534c85);_0x38cdcf[_0x2b812a(0x211)]({'label':_0x1e0d73(_0x534c85,_0x2b812a(0x230)),'tooltip':!0x0,'withText':!0x1,'icon':_0x1ddab5}),_0x38cdcf[_0x2b812a(0x222)](_0x2b812a(0x239))['to'](this),_0x38cdcf['on'](_0x2b812a(0x228),()=>{const _0x4eb0ed=_0x2b812a;this[_0x4eb0ed(0x212)](_0x4eb0ed(0x20d),{'index':_0x3bf4b9[_0x4eb0ed(0x1fe)]});}),_0x1539ec[_0x2b812a(0x231)](_0x38cdcf);}if(_0x5383c1[_0x2b812a(0x217)](_0x2b812a(0x21d))){const _0x57daa4=new _0x412b3a(_0x534c85);_0x57daa4[_0x2b812a(0x211)]({'label':_0x1e0d73(_0x534c85,_0x2b812a(0x1fc)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4738d9}),_0x57daa4[_0x2b812a(0x222)](_0x2b812a(0x239))['to'](this),_0x57daa4['on'](_0x2b812a(0x228),()=>{const _0x5b94bf=_0x2b812a;this[_0x5b94bf(0x212)](_0x5b94bf(0x21d),{'index':_0x3bf4b9[_0x5b94bf(0x1fe)]});}),_0x1539ec[_0x2b812a(0x231)](_0x57daa4);}const _0x22cb15=new _0x412b3a(_0x534c85);_0x22cb15[_0x2b812a(0x211)]({'label':_0x1e0d73(_0x534c85,_0x2b812a(0x218)),'tooltip':!0x0,'withText':!0x1,'icon':_0x4e9222}),_0x22cb15[_0x2b812a(0x222)](_0x2b812a(0x239))['to'](this),_0x22cb15['on'](_0x2b812a(0x228),()=>{const _0x2722c0=_0x2b812a;this[_0x2722c0(0x212)](_0x2722c0(0x227),{'index':_0x3bf4b9[_0x2722c0(0x1fe)]});}),_0x1539ec[_0x2b812a(0x231)](_0x22cb15),this[_0x2b812a(0x224)]=new _0x5a626f(_0x534c85),this[_0x2b812a(0x224)][_0x2b812a(0x23a)][_0x2b812a(0x22b)](_0x1539ec),this[_0x2b812a(0x21f)]=new _0x1211b8(),this[_0x2b812a(0x21f)][_0x2b812a(0x20b)]=_0x532ccd,this[_0x2b812a(0x21f)][_0x2b812a(0x226)]({'attributes':{'class':[_0x2b812a(0x1fa)],'data-cke-tooltip-text':_0x1e0d73(_0x534c85,_0x2b812a(0x1f4)),'data-cke-tooltip-position':'n'}}),this[_0x2b812a(0x234)]=new _0x1211b8(),this[_0x2b812a(0x234)][_0x2b812a(0x20b)]=_0x982b17,this[_0x2b812a(0x234)][_0x2b812a(0x226)]({'attributes':{'class':[_0x2b812a(0x1f2)],'data-cke-tooltip-text':_0x1e0d73(_0x534c85,_0x2b812a(0x21a)),'data-cke-tooltip-position':'n'}}),this[_0x2b812a(0x1f1)]=new _0x1211b8(),this[_0x2b812a(0x1f1)][_0x2b812a(0x20b)]=_0x982b17,this[_0x2b812a(0x1f1)][_0x2b812a(0x226)]({'attributes':{'class':[_0x2b812a(0x23b)],'data-cke-tooltip-text':_0x1e0d73(_0x534c85,_0x2b812a(0x223)),'data-cke-tooltip-position':'n'}});const _0x3e7cfe=new _0x545137(_0x534c85);_0x3e7cfe[_0x2b812a(0x233)]({'tag':_0x2b812a(0x237),'attributes':{'class':['ck',_0x2b812a(0x1ff)]},'children':[_0x1e0d73(_0x534c85,_0x2b812a(0x22c),_0x4d4f44[_0x2b812a(0x21b)]())]}),this[_0x2b812a(0x236)]=this[_0x2b812a(0x220)](),this[_0x2b812a(0x236)][_0x2b812a(0x22b)]([_0xe685ef,_0x3e7cfe,this[_0x2b812a(0x224)]]),this[_0x2b812a(0x233)]({'tag':_0x2b812a(0x209),'attributes':{'class':['ck',_0x2b812a(0x22f),_0x2b812a(0x1ee)]},'children':this[_0x2b812a(0x236)]}),this['on'](_0x2b812a(0x221),(_0x3f1ebc,_0x121ca8,_0x421471,_0x250136)=>{const _0x3dc0d9=_0x2b812a;switch(_0x250136){case _0x3dc0d9(0x1f3):this[_0x3dc0d9(0x236)][_0x3dc0d9(0x1fd)](this[_0x3dc0d9(0x224)]);break;case _0x3dc0d9(0x232):this[_0x3dc0d9(0x236)][_0x3dc0d9(0x1fd)](this[_0x3dc0d9(0x21f)]);break;case _0x3dc0d9(0x1f7):this[_0x3dc0d9(0x236)][_0x3dc0d9(0x1fd)](this[_0x3dc0d9(0x234)]);break;case _0x3dc0d9(0x1f6):this[_0x3dc0d9(0x236)][_0x3dc0d9(0x1fd)](this[_0x3dc0d9(0x1f1)]);}switch(_0x421471){case _0x3dc0d9(0x1f3):this[_0x3dc0d9(0x236)][_0x3dc0d9(0x22e)](this[_0x3dc0d9(0x224)]);break;case _0x3dc0d9(0x232):this[_0x3dc0d9(0x236)][_0x3dc0d9(0x22e)](this[_0x3dc0d9(0x21f)]);break;case _0x3dc0d9(0x1f7):this[_0x3dc0d9(0x236)][_0x3dc0d9(0x22e)](this[_0x3dc0d9(0x234)]);break;case _0x3dc0d9(0x1f6):this[_0x3dc0d9(0x236)][_0x3dc0d9(0x22e)](this[_0x3dc0d9(0x1f1)]);}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36f9f=_0xd1a1;(function(_0x12f0d4,_0x21290b){const _0x5735bb=_0xd1a1,_0x50bc67=_0x12f0d4();while(!![]){try{const _0x10eb7e=-parseInt(_0x5735bb(0x177))/0x1*(-parseInt(_0x5735bb(0x175))/0x2)+-parseInt(_0x5735bb(0x169))/0x3*(-parseInt(_0x5735bb(0x161))/0x4)+parseInt(_0x5735bb(0x16c))/0x5*(parseInt(_0x5735bb(0x15d))/0x6)+-parseInt(_0x5735bb(0x15c))/0x7+-parseInt(_0x5735bb(0x173))/0x8+parseInt(_0x5735bb(0x166))/0x9*(-parseInt(_0x5735bb(0x160))/0xa)+-parseInt(_0x5735bb(0x16d))/0xb*(-parseInt(_0x5735bb(0x15e))/0xc);if(_0x10eb7e===_0x21290b)break;else _0x50bc67['push'](_0x50bc67['shift']());}catch(_0x44ad72){_0x50bc67['push'](_0x50bc67['shift']());}}}(_0xf140,0x9e4fc));import{getTranslation as _0x28aa2c}from'../../utils/common-translations.js';import{ButtonView as _0x1ed1e2,IconView as _0x1c1ab6,View as _0x159d12}from'ckeditor5/src/ui.js';function _0xd1a1(_0x8a2643,_0x4f2b38){const _0xf1401a=_0xf140();return _0xd1a1=function(_0xd1a1ac,_0x1ac124){_0xd1a1ac=_0xd1a1ac-0x156;let _0x24a084=_0xf1401a[_0xd1a1ac];return _0x24a084;},_0xd1a1(_0x8a2643,_0x4f2b38);}import{IconDocument as _0x58a22f,IconShowChangesOff as _0x3ccdc2,IconShowChangesOn as _0x4ff04b}from'ckeditor5/src/icons.js';function _0xf140(){const _0x2d4499=['execute','render','filter','div','isVisible','showDiff','isOn','setTemplate','set','iconView','577836ZVjDwT','2013738BktzJM','22776kTDetY','showChangesToggleView','768990IZYsqT','213316XpPIwz','toggleShowChanges','span','bind','AI_SUGGESTION_BUTTON_SHOW_CHANGES','117ZoyncK','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','ck-hidden','72bMDrfJ','showHeader','AI_SUGGESTION_HEADER_TITLE','5WarHZo','3047puFndJ','icon','content','add','isShowChangesToggleVisible','fire','4163432WqmYvK','remove','219686MkaSML','children','1JZUetM','ck-ai-suggestion__header'];_0xf140=function(){return _0x2d4499;};return _0xf140();}export class AISuggestionHeaderView extends _0x159d12{[_0x36f9f(0x15f)];constructor(_0x19bbdc,_0x4c6d31){const _0x232e90=_0x36f9f;super(_0x19bbdc),this[_0x232e90(0x15a)](_0x232e90(0x171),!0x0),this[_0x232e90(0x15f)]=new ShowChangesToggleView(_0x19bbdc),this[_0x232e90(0x15f)][_0x232e90(0x15a)]({'class':_0x232e90(0x167),'label':_0x28aa2c(_0x19bbdc,_0x232e90(0x165)),'withText':!0x0}),this[_0x232e90(0x15f)][_0x232e90(0x158)]=_0x4c6d31[_0x232e90(0x157)],this[_0x232e90(0x15f)][_0x232e90(0x164)](_0x232e90(0x156))['to'](this,_0x232e90(0x171)),this[_0x232e90(0x15f)][_0x232e90(0x164)](_0x232e90(0x16e))['to'](this[_0x232e90(0x15f)],_0x232e90(0x158),_0x5da1f4=>_0x5da1f4?_0x4ff04b:_0x3ccdc2),this[_0x232e90(0x15f)]['on'](_0x232e90(0x179),()=>{const _0x2bb52f=_0x232e90;this[_0x2bb52f(0x15f)][_0x2bb52f(0x158)]=!this[_0x2bb52f(0x15f)][_0x2bb52f(0x158)],this[_0x2bb52f(0x172)](_0x2bb52f(0x162),{'isOn':this[_0x2bb52f(0x15f)][_0x2bb52f(0x158)]});});const _0x395778=new _0x1c1ab6();_0x395778[_0x232e90(0x16f)]=_0x58a22f,this[_0x232e90(0x159)]({'tag':_0x232e90(0x17c),'attributes':{'class':['ck',_0x232e90(0x178),!0x1===_0x4c6d31[_0x232e90(0x16a)]?_0x232e90(0x168):null][_0x232e90(0x17b)](Boolean)},'children':[_0x395778,{'tag':_0x232e90(0x163),'children':[_0x28aa2c(_0x19bbdc,_0x232e90(0x16b))]},this[_0x232e90(0x15f)]]});}}export class ShowChangesToggleView extends _0x1ed1e2{[_0x36f9f(0x17a)](){const _0xf0251d=_0x36f9f;super[_0xf0251d(0x17a)](),this[_0xf0251d(0x176)][_0xf0251d(0x174)](this[_0xf0251d(0x15b)]),this[_0xf0251d(0x176)][_0xf0251d(0x170)](this[_0xf0251d(0x15b)]);}}
23
+ const _0x33c64f=_0x578e;(function(_0x339650,_0x579413){const _0x5af623=_0x578e,_0x3f328e=_0x339650();while(!![]){try{const _0x2f5d42=parseInt(_0x5af623(0xa9))/0x1*(parseInt(_0x5af623(0xaf))/0x2)+-parseInt(_0x5af623(0xa5))/0x3+parseInt(_0x5af623(0xa6))/0x4+-parseInt(_0x5af623(0xb2))/0x5*(-parseInt(_0x5af623(0xa1))/0x6)+parseInt(_0x5af623(0x95))/0x7*(parseInt(_0x5af623(0x8e))/0x8)+-parseInt(_0x5af623(0x9d))/0x9*(-parseInt(_0x5af623(0xb0))/0xa)+-parseInt(_0x5af623(0xac))/0xb;if(_0x2f5d42===_0x579413)break;else _0x3f328e['push'](_0x3f328e['shift']());}catch(_0x180ac5){_0x3f328e['push'](_0x3f328e['shift']());}}}(_0xbe6a,0xa41d4));import{getTranslation as _0x1e0777}from'../../utils/common-translations.js';import{ButtonView as _0x363dc2,IconView as _0x18548e,View as _0x3701a6}from'ckeditor5/src/ui.js';function _0x578e(_0x10203a,_0x453513){const _0xbe6a00=_0xbe6a();return _0x578e=function(_0x578ea5,_0x560590){_0x578ea5=_0x578ea5-0x8d;let _0x2f6ce5=_0xbe6a00[_0x578ea5];return _0x2f6ce5;},_0x578e(_0x10203a,_0x453513);}import{IconDocument as _0x3d2088,IconShowChangesOff as _0x5dd523,IconShowChangesOn as _0x52bfcc}from'ckeditor5/src/icons.js';function _0xbe6a(){const _0x3f0a01=['children','3413gCYTOj','isVisible','bind','8918525dmFeMo','toggleShowChanges','icon','242SWhcZm','6849290EvmGXu','iconView','15TxFwBI','div','322864YTiGBY','filter','remove','fire','ck-hidden','content','set','140wsMAce','ck-ai-suggestion__header__show-changes-toggle\x20ck-ai-chat-controls-button','isOn','span','render','ck-ai-suggestion__header','AI_SUGGESTION_BUTTON_SHOW_CHANGES','AI_SUGGESTION_HEADER_TITLE','9UWtapC','execute','add','showChangesToggleView','187314nAroyp','showDiff','setTemplate','isShowChangesToggleVisible','3316503BLBINk','2359076yOUHMp','showHeader'];_0xbe6a=function(){return _0x3f0a01;};return _0xbe6a();}export class AISuggestionHeaderView extends _0x3701a6{[_0x33c64f(0xa0)];constructor(_0x47e16e,_0x4c41fd){const _0x3186fb=_0x33c64f;super(_0x47e16e),this[_0x3186fb(0x94)](_0x3186fb(0xa4),!0x0),this[_0x3186fb(0xa0)]=new ShowChangesToggleView(_0x47e16e),this[_0x3186fb(0xa0)][_0x3186fb(0x94)]({'class':_0x3186fb(0x96),'label':_0x1e0777(_0x47e16e,_0x3186fb(0x9b)),'withText':!0x0}),this[_0x3186fb(0xa0)][_0x3186fb(0x97)]=_0x4c41fd[_0x3186fb(0xa2)],this[_0x3186fb(0xa0)][_0x3186fb(0xab)](_0x3186fb(0xaa))['to'](this,_0x3186fb(0xa4)),this[_0x3186fb(0xa0)][_0x3186fb(0xab)](_0x3186fb(0xae))['to'](this[_0x3186fb(0xa0)],_0x3186fb(0x97),_0x86fc67=>_0x86fc67?_0x52bfcc:_0x5dd523),this[_0x3186fb(0xa0)]['on'](_0x3186fb(0x9e),()=>{const _0x35bbc4=_0x3186fb;this[_0x35bbc4(0xa0)][_0x35bbc4(0x97)]=!this[_0x35bbc4(0xa0)][_0x35bbc4(0x97)],this[_0x35bbc4(0x91)](_0x35bbc4(0xad),{'isOn':this[_0x35bbc4(0xa0)][_0x35bbc4(0x97)]});});const _0x17a94c=new _0x18548e();_0x17a94c[_0x3186fb(0x93)]=_0x3d2088,this[_0x3186fb(0xa3)]({'tag':_0x3186fb(0x8d),'attributes':{'class':['ck',_0x3186fb(0x9a),!0x1===_0x4c41fd[_0x3186fb(0xa7)]?_0x3186fb(0x92):null][_0x3186fb(0x8f)](Boolean)},'children':[_0x17a94c,{'tag':_0x3186fb(0x98),'children':[_0x1e0777(_0x47e16e,_0x3186fb(0x9c))]},this[_0x3186fb(0xa0)]]});}}export class ShowChangesToggleView extends _0x363dc2{[_0x33c64f(0x99)](){const _0x208c63=_0x33c64f;super[_0x208c63(0x99)](),this[_0x208c63(0xa8)][_0x208c63(0x90)](this[_0x208c63(0xb1)]),this[_0x208c63(0xa8)][_0x208c63(0x9f)](this[_0x208c63(0xb1)]);}}