@ckeditor/ckeditor5-ai 47.4.0-alpha.1 → 47.4.0-alpha.2

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 (292) 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/ui/aichatcontrolsview.js +1 -1
  184. package/src/aichat/ui/aichatfeedview.js +1 -1
  185. package/src/aichat/ui/aichatheaderview.js +1 -1
  186. package/src/aichat/ui/aichatview.js +1 -1
  187. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  188. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  192. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  195. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  200. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  208. package/src/aichat/utils/eventnames.js +1 -1
  209. package/src/aichat/utils/promisequeue.js +1 -1
  210. package/src/aichathistory/aichathistory.js +1 -1
  211. package/src/aichathistory/aichathistorycontroller.js +1 -1
  212. package/src/aichathistory/aichathistoryui.js +1 -1
  213. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  214. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  215. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  216. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  217. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  218. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  219. package/src/aicore/aiconnector.js +1 -1
  220. package/src/aicore/aiediting.js +1 -1
  221. package/src/aicore/model/aicapabilities.js +1 -1
  222. package/src/aicore/model/aicontext.js +1 -1
  223. package/src/aicore/model/aiinteraction.js +1 -1
  224. package/src/aicore/model/aimodels.js +1 -1
  225. package/src/aicore/model/aireply.js +1 -1
  226. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  227. package/src/aicore/pipeline/airesponseparser.js +2 -2
  228. package/src/aicore/ui/aidisclaimerview.js +1 -1
  229. package/src/aicore/ui/aiskeleton.js +1 -1
  230. package/src/aicore/ui/aispinner.js +1 -1
  231. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  232. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  236. package/src/aicore/utils/common-translations.js +1 -1
  237. package/src/aicore/utils/createresizebutton.js +1 -1
  238. package/src/aicore/utils/documentposition.js +1 -1
  239. package/src/aicore/utils/documentrange.js +1 -1
  240. package/src/aicore/utils/eventnames.js +1 -1
  241. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  242. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  243. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  244. package/src/aicore/utils/htmlparser.js +1 -1
  245. package/src/aicore/utils/htmlstreamer.js +1 -1
  246. package/src/aicore/utils/scrollmanager.js +1 -1
  247. package/src/aieditorintegration/aieditorintegration.js +1 -1
  248. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  250. package/src/aiquickactions/aiquickactions.js +1 -1
  251. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  252. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  253. package/src/aiquickactions/aiquickactionsui.js +1 -1
  254. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsfilteredlistview.js +1 -1
  258. package/src/aiquickactions/ui/dropdownmenubuttonwithhighlightview.js +1 -1
  259. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  260. package/src/aireviewmode/aireviewmode.js +1 -1
  261. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  262. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  263. package/src/aireviewmode/aireviewmodeui.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  265. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  266. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  269. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  271. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  272. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodegeneralerrorview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  281. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  282. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  283. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  284. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  285. package/src/aitabs/aitabs.js +1 -1
  286. package/src/aitabs/aitabsmainview.js +1 -1
  287. package/src/aitabs/tabs/aitabsview.js +1 -1
  288. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  289. package/src/aitabs/tabs/tabpanelview.js +1 -1
  290. package/src/errors.js +1 -1
  291. package/src/errorsmap.js +1 -1
  292. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4efff8=_0x4516;(function(_0x2652f0,_0x2dfc7d){const _0x354cac=_0x4516,_0x3eaa50=_0x2652f0();while(!![]){try{const _0x3f67e1=parseInt(_0x354cac(0x8f))/0x1+parseInt(_0x354cac(0xbb))/0x2+parseInt(_0x354cac(0xbf))/0x3+-parseInt(_0x354cac(0x9b))/0x4+parseInt(_0x354cac(0x8a))/0x5+-parseInt(_0x354cac(0xc3))/0x6*(-parseInt(_0x354cac(0xaa))/0x7)+-parseInt(_0x354cac(0xa1))/0x8;if(_0x3f67e1===_0x2dfc7d)break;else _0x3eaa50['push'](_0x3eaa50['shift']());}catch(_0x252aa8){_0x3eaa50['push'](_0x3eaa50['shift']());}}}(_0x4d8c,0x45fee));import{CKEditorError as _0x7a4a5f,EmitterMixin as _0x2788cd,uid as _0x4e9690}from'ckeditor5/src/utils.js';import{AIReply as _0x44a9ef,isIgnoredReplyType as _0x361106,isValidReplyType as _0x3eb7f6,isReplyTitleType as _0x33d767,isSourceType as _0x19edd7}from'./aireply.js';function _0x4516(_0x52e29d,_0x3b4efa){const _0x4d8c6d=_0x4d8c();return _0x4516=function(_0x4516e5,_0x77e071){_0x4516e5=_0x4516e5-0x84;let _0x19b800=_0x4d8c6d[_0x4516e5];return _0x19b800;},_0x4516(_0x52e29d,_0x3b4efa);}function _0x4d8c(){const _0x14c647=['source','forEach','setConversationTitle','_isWebSearching','web-search','done','isDestroyed','stop','getReply','messageId','908686CQdWAT','replyChangeGroupStateUpdated','push','interactionFinished','1360395QFhwcq','interactionStopped','modification-delta','message-metadata','89034spVbpT','sendRequest','currentRequest','interactionStarted','reasoningStarted','replyCreated','splice','replyContentUpdated','interactionDestroyed','editor','reasoning','2648615NBOZWA','data','stopListening','connector','actionCallId','555623VWALaH','webSearchStarted','appendContent','start','length','_isReasoning','ai-chat-interaction-error','sources','_finalizeInteraction','getDocumentContext','abortController','createReply','1565912uchzMO','event','error','webSearchFinished','action-metadata','find','14912136gppkPG','delegate','callId','getStream','isStopped','textDelta','abort','currentReply','interactionCreated','259DbpIuV','reasoningFinished','destroy','fire','replies','content','conversationTitle'];_0x4d8c=function(){return _0x14c647;};return _0x4d8c();}export const AI_MODEL_EVENT_NAMES=[_0x4efff8(0xa9),_0x4efff8(0xc6),_0x4efff8(0xc0),_0x4efff8(0xbe),_0x4efff8(0x87),_0x4efff8(0x84),_0x4efff8(0x86),_0x4efff8(0xbc),_0x4efff8(0xb3),_0x4efff8(0x90),_0x4efff8(0x9e),_0x4efff8(0xc7),_0x4efff8(0xab),_0x4efff8(0x9d)];export class AIInteraction extends _0x2788cd(){['id'];[_0x4efff8(0xae)]=[];[_0x4efff8(0xa8)];[_0x4efff8(0xba)];[_0x4efff8(0x8e)];[_0x4efff8(0xc5)];[_0x4efff8(0x8d)];[_0x4efff8(0xa5)]=!0x1;[_0x4efff8(0xb7)]=!0x1;[_0x4efff8(0x88)];[_0x4efff8(0x94)]=!0x1;[_0x4efff8(0xb4)]=!0x1;constructor({connector:_0x3a68dc,editor:_0x4835b2}){const _0x3975d0=_0x4efff8;super(),this['id']=_0x4e9690(),this[_0x3975d0(0x8d)]=_0x3a68dc,this[_0x3975d0(0xa5)]=!0x0,this[_0x3975d0(0x88)]=_0x4835b2;}async[_0x4efff8(0x92)](){const _0x315671=_0x4efff8;let _0x108ef2;const _0x524929=[];this[_0x315671(0xa5)]=!0x1;try{this[_0x315671(0xc5)]=await this[_0x315671(0xc4)](),this[_0x315671(0xad)](_0x315671(0xc6),this);const _0x81e88d=await this[_0x315671(0xc5)][_0x315671(0xa4)]();for await(const _0x8df362 of _0x81e88d){if(this[_0x315671(0xa5)])return;if(_0x315671(0x9d)===_0x8df362[_0x315671(0x9c)])return void this[_0x315671(0xad)](_0x315671(0x9d),{'error':new _0x7a4a5f(_0x315671(0x95),this)});if(_0x315671(0xc2)!==_0x8df362[_0x315671(0x9c)]){if(_0x315671(0x9f)!==_0x8df362[_0x315671(0x9c)]){if(_0x33d767(_0x8df362[_0x315671(0x9c)])&&this[_0x315671(0xb3)](_0x8df362[_0x315671(0x8b)][_0x315671(0xb0)],!0x0),_0x19edd7(_0x8df362[_0x315671(0x9c)]))_0x524929[_0x315671(0xbd)](_0x8df362[_0x315671(0x8b)][_0x315671(0xb1)]);else{if(_0x3eb7f6(_0x8df362[_0x315671(0x9c)])){if(_0x8df362[_0x315671(0x9c)]!==_0x108ef2){if(_0x108ef2=_0x8df362[_0x315671(0x9c)],_0x315671(0xb5)===_0x8df362[_0x315671(0x9c)]){this[_0x315671(0xb4)]||(this[_0x315671(0xb4)]=!0x0,this[_0x315671(0xad)](_0x315671(0x90),this));continue;}if(_0x315671(0x89)===_0x8df362[_0x315671(0x9c)]){this[_0x315671(0x94)]||(this[_0x315671(0x94)]=!0x0,this[_0x315671(0xad)](_0x315671(0xc7),this));continue;}this[_0x315671(0x94)]&&(this[_0x315671(0x94)]=!0x1,this[_0x315671(0xad)](_0x315671(0xab),this)),this[_0x315671(0xb4)]&&(this[_0x315671(0xb4)]=!0x1,this[_0x315671(0xad)](_0x315671(0x9e),this)),this[_0x315671(0xa8)]&&this[_0x315671(0xa8)][_0x315671(0xb6)](),this[_0x315671(0xa8)]=this[_0x315671(0x9a)]({'type':_0x8df362[_0x315671(0x9c)],'interactionId':this['id'],'id':_0x8df362[_0x315671(0x8b)]?.['id']}),_0x524929[_0x315671(0x93)]>0x0&&_0x315671(0xc1)===_0x8df362[_0x315671(0x9c)]&&(this[_0x315671(0xa8)][_0x315671(0x96)]=_0x524929[_0x315671(0x85)](0x0));}_0x8df362[_0x315671(0x8b)][_0x315671(0xa6)]&&this[_0x315671(0xa8)][_0x315671(0x91)](_0x8df362[_0x315671(0x8b)][_0x315671(0xa6)]);}else _0x361106(_0x8df362[_0x315671(0x9c)]);}}else this[_0x315671(0x8e)]=_0x8df362[_0x315671(0x8b)][_0x315671(0xa3)];}else this[_0x315671(0xba)]=_0x8df362[_0x315671(0x8b)][_0x315671(0xba)];}}finally{this[_0x315671(0xa5)]||(_0x524929[_0x315671(0x93)]>0x0&&(this[_0x315671(0xa8)][_0x315671(0x96)]=_0x524929[_0x315671(0x85)](0x0)),this[_0x315671(0x97)](),this[_0x315671(0xad)](_0x315671(0xbe),this));}}[_0x4efff8(0xb8)](){const _0x23d7b2=_0x4efff8;this[_0x23d7b2(0xa5)]||(this[_0x23d7b2(0x97)](),this[_0x23d7b2(0xad)](_0x23d7b2(0xc0),this));}[_0x4efff8(0xb9)](_0x44f7cc){const _0x55022e=_0x4efff8;return this[_0x55022e(0xae)][_0x55022e(0xa0)](_0x14cc20=>_0x14cc20['id']===_0x44f7cc);}[_0x4efff8(0xac)](){const _0x35fe44=_0x4efff8;this[_0x35fe44(0xb7)]||(this[_0x35fe44(0xb8)](),this[_0x35fe44(0xae)][_0x35fe44(0xb2)](_0x3ebbc7=>_0x3ebbc7[_0x35fe44(0xac)]()),this[_0x35fe44(0xae)]=[],this[_0x35fe44(0xb7)]=!0x0,this[_0x35fe44(0xad)](_0x35fe44(0x87),this),this[_0x35fe44(0x8c)]());}[_0x4efff8(0x9a)](_0x35a034){const _0x8e88da=_0x4efff8,_0x19fe8e=new _0x44a9ef({'editor':this[_0x8e88da(0x88)],'documentContextContent':this[_0x8e88da(0x98)]()?.[_0x8e88da(0xaf)],..._0x35a034});return this[_0x8e88da(0xae)][_0x8e88da(0xbd)](_0x19fe8e),_0x19fe8e[_0x8e88da(0xa2)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x8e88da(0xad)](_0x8e88da(0x84),_0x19fe8e),_0x19fe8e;}[_0x4efff8(0xb3)](_0x440992,_0x5509dc=!0x1){const _0x16233e=_0x4efff8;this[_0x16233e(0xad)](_0x16233e(0xb3),_0x440992,_0x5509dc);}[_0x4efff8(0x97)](){const _0xf250f6=_0x4efff8;this[_0xf250f6(0xa5)]=!0x0,this[_0xf250f6(0xc5)]&&this[_0xf250f6(0xc5)][_0xf250f6(0x99)][_0xf250f6(0xa7)](),this[_0xf250f6(0xa8)]&&this[_0xf250f6(0xa8)][_0xf250f6(0xb6)](),this[_0xf250f6(0xc5)]=this[_0xf250f6(0xa8)]=void 0x0;}}
23
+ const _0x306904=_0x1f95;(function(_0x3630af,_0x483f33){const _0x1b90cd=_0x1f95,_0x20bacd=_0x3630af();while(!![]){try{const _0x43e7e6=parseInt(_0x1b90cd(0x17a))/0x1+parseInt(_0x1b90cd(0x187))/0x2+parseInt(_0x1b90cd(0x18b))/0x3*(parseInt(_0x1b90cd(0x1ad))/0x4)+parseInt(_0x1b90cd(0x18c))/0x5*(-parseInt(_0x1b90cd(0x1aa))/0x6)+parseInt(_0x1b90cd(0x19d))/0x7*(parseInt(_0x1b90cd(0x1a6))/0x8)+parseInt(_0x1b90cd(0x1a1))/0x9+-parseInt(_0x1b90cd(0x1a4))/0xa;if(_0x43e7e6===_0x483f33)break;else _0x20bacd['push'](_0x20bacd['shift']());}catch(_0x5d4bba){_0x20bacd['push'](_0x20bacd['shift']());}}}(_0x472f,0x30edc));function _0x1f95(_0x77c93c,_0x5c700a){const _0x472f81=_0x472f();return _0x1f95=function(_0x1f95a2,_0x14f94d){_0x1f95a2=_0x1f95a2-0x178;let _0xa97cb8=_0x472f81[_0x1f95a2];return _0xa97cb8;},_0x1f95(_0x77c93c,_0x5c700a);}import{CKEditorError as _0x50eb47,EmitterMixin as _0x3b24ec,uid as _0x5927be}from'ckeditor5/src/utils.js';import{AIReply as _0x2417f7,isIgnoredReplyType as _0x3d689,isValidReplyType as _0x4a1b62,isReplyTitleType as _0x1658f5,isSourceType as _0x5819ab}from'./aireply.js';export const AI_MODEL_EVENT_NAMES=[_0x306904(0x198),_0x306904(0x191),_0x306904(0x1ab),_0x306904(0x1a7),_0x306904(0x18d),_0x306904(0x1a5),_0x306904(0x1bd),_0x306904(0x1b0),_0x306904(0x178),_0x306904(0x1b1),_0x306904(0x194),_0x306904(0x195),_0x306904(0x1af),_0x306904(0x1ac)];function _0x472f(){const _0x5a0e0c=['messageId','delegate','1449ojzWFC','abortController','replies','3903040JaTcxR','replyCreated','40ZAdvav','interactionFinished','find','isStopped','330ZFXqbh','interactionStopped','error','72ONadrL','length','reasoningFinished','replyChangeGroupStateUpdated','webSearchStarted','source','sendRequest','getDocumentContext','appendContent','stopListening','action-metadata','getReply','currentRequest','callId','currentReply','data','replyContentUpdated','setConversationTitle','textDelta','216662UltIsk','sources','destroy','done','actionCallId','_isReasoning','reasoning','content','connector','message-metadata','_isWebSearching','fire','push','621044Ungzki','isDestroyed','_finalizeInteraction','editor','57126KVQXDr','29065BYKjoU','interactionDestroyed','abort','start','web-search','interactionStarted','createReply','getStream','webSearchFinished','reasoningStarted','ai-chat-interaction-error','event','interactionCreated','conversationTitle','forEach','modification-delta','splice','56462SASczT','stop'];_0x472f=function(){return _0x5a0e0c;};return _0x472f();}export class AIInteraction extends _0x3b24ec(){['id'];[_0x306904(0x1a3)]=[];[_0x306904(0x1bb)];[_0x306904(0x19f)];[_0x306904(0x17e)];[_0x306904(0x1b9)];[_0x306904(0x182)];[_0x306904(0x1a9)]=!0x1;[_0x306904(0x188)]=!0x1;[_0x306904(0x18a)];[_0x306904(0x17f)]=!0x1;[_0x306904(0x184)]=!0x1;constructor({connector:_0xfa3797,editor:_0x3f7781}){const _0x13e42d=_0x306904;super(),this['id']=_0x5927be(),this[_0x13e42d(0x182)]=_0xfa3797,this[_0x13e42d(0x1a9)]=!0x0,this[_0x13e42d(0x18a)]=_0x3f7781;}async[_0x306904(0x18f)](){const _0x41cf66=_0x306904;let _0x2fe158;const _0x1a458f=[];this[_0x41cf66(0x1a9)]=!0x1;try{this[_0x41cf66(0x1b9)]=await this[_0x41cf66(0x1b3)](),this[_0x41cf66(0x185)](_0x41cf66(0x191),this);const _0x57fdcb=await this[_0x41cf66(0x1b9)][_0x41cf66(0x193)]();for await(const _0x29cde0 of _0x57fdcb){if(this[_0x41cf66(0x1a9)])return;if(_0x41cf66(0x1ac)===_0x29cde0[_0x41cf66(0x197)])return void this[_0x41cf66(0x185)](_0x41cf66(0x1ac),{'error':new _0x50eb47(_0x41cf66(0x196),this)});if(_0x41cf66(0x183)!==_0x29cde0[_0x41cf66(0x197)]){if(_0x41cf66(0x1b7)!==_0x29cde0[_0x41cf66(0x197)]){if(_0x1658f5(_0x29cde0[_0x41cf66(0x197)])&&this[_0x41cf66(0x178)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x199)],!0x0),_0x5819ab(_0x29cde0[_0x41cf66(0x197)]))_0x1a458f[_0x41cf66(0x186)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x1b2)]);else{if(_0x4a1b62(_0x29cde0[_0x41cf66(0x197)])){if(_0x29cde0[_0x41cf66(0x197)]!==_0x2fe158){if(_0x2fe158=_0x29cde0[_0x41cf66(0x197)],_0x41cf66(0x190)===_0x29cde0[_0x41cf66(0x197)]){this[_0x41cf66(0x184)]||(this[_0x41cf66(0x184)]=!0x0,this[_0x41cf66(0x185)](_0x41cf66(0x1b1),this));continue;}if(_0x41cf66(0x180)===_0x29cde0[_0x41cf66(0x197)]){this[_0x41cf66(0x17f)]||(this[_0x41cf66(0x17f)]=!0x0,this[_0x41cf66(0x185)](_0x41cf66(0x195),this));continue;}this[_0x41cf66(0x17f)]&&(this[_0x41cf66(0x17f)]=!0x1,this[_0x41cf66(0x185)](_0x41cf66(0x1af),this)),this[_0x41cf66(0x184)]&&(this[_0x41cf66(0x184)]=!0x1,this[_0x41cf66(0x185)](_0x41cf66(0x194),this)),this[_0x41cf66(0x1bb)]&&this[_0x41cf66(0x1bb)][_0x41cf66(0x17d)](),this[_0x41cf66(0x1bb)]=this[_0x41cf66(0x192)]({'type':_0x29cde0[_0x41cf66(0x197)],'interactionId':this['id'],'id':_0x29cde0[_0x41cf66(0x1bc)]?.['id']}),_0x1a458f[_0x41cf66(0x1ae)]>0x0&&_0x41cf66(0x19b)===_0x29cde0[_0x41cf66(0x197)]&&(this[_0x41cf66(0x1bb)][_0x41cf66(0x17b)]=_0x1a458f[_0x41cf66(0x19c)](0x0));}_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x179)]&&this[_0x41cf66(0x1bb)][_0x41cf66(0x1b5)](_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x179)]);}else _0x3d689(_0x29cde0[_0x41cf66(0x197)]);}}else this[_0x41cf66(0x17e)]=_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x1ba)];}else this[_0x41cf66(0x19f)]=_0x29cde0[_0x41cf66(0x1bc)][_0x41cf66(0x19f)];}}finally{this[_0x41cf66(0x1a9)]||(_0x1a458f[_0x41cf66(0x1ae)]>0x0&&(this[_0x41cf66(0x1bb)][_0x41cf66(0x17b)]=_0x1a458f[_0x41cf66(0x19c)](0x0)),this[_0x41cf66(0x189)](),this[_0x41cf66(0x185)](_0x41cf66(0x1a7),this));}}[_0x306904(0x19e)](){const _0x58d47e=_0x306904;this[_0x58d47e(0x1a9)]||(this[_0x58d47e(0x189)](),this[_0x58d47e(0x185)](_0x58d47e(0x1ab),this));}[_0x306904(0x1b8)](_0x1f6c9d){const _0x328fa4=_0x306904;return this[_0x328fa4(0x1a3)][_0x328fa4(0x1a8)](_0xa3fb=>_0xa3fb['id']===_0x1f6c9d);}[_0x306904(0x17c)](){const _0x58adc4=_0x306904;this[_0x58adc4(0x188)]||(this[_0x58adc4(0x19e)](),this[_0x58adc4(0x1a3)][_0x58adc4(0x19a)](_0x1bfac0=>_0x1bfac0[_0x58adc4(0x17c)]()),this[_0x58adc4(0x1a3)]=[],this[_0x58adc4(0x188)]=!0x0,this[_0x58adc4(0x185)](_0x58adc4(0x18d),this),this[_0x58adc4(0x1b6)]());}[_0x306904(0x192)](_0x311a6f){const _0x259c7b=_0x306904,_0x15a5e1=new _0x2417f7({'editor':this[_0x259c7b(0x18a)],'documentContextContent':this[_0x259c7b(0x1b4)]()?.[_0x259c7b(0x181)],..._0x311a6f});return this[_0x259c7b(0x1a3)][_0x259c7b(0x186)](_0x15a5e1),_0x15a5e1[_0x259c7b(0x1a0)](...AI_MODEL_EVENT_NAMES)['to'](this),this[_0x259c7b(0x185)](_0x259c7b(0x1a5),_0x15a5e1),_0x15a5e1;}[_0x306904(0x178)](_0x11de92,_0xc78851=!0x1){const _0x20ab12=_0x306904;this[_0x20ab12(0x185)](_0x20ab12(0x178),_0x11de92,_0xc78851);}[_0x306904(0x189)](){const _0x58e02a=_0x306904;this[_0x58e02a(0x1a9)]=!0x0,this[_0x58e02a(0x1b9)]&&this[_0x58e02a(0x1b9)][_0x58e02a(0x1a2)][_0x58e02a(0x18e)](),this[_0x58e02a(0x1bb)]&&this[_0x58e02a(0x1bb)][_0x58e02a(0x17d)](),this[_0x58e02a(0x1b9)]=this[_0x58e02a(0x1bb)]=void 0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b067d=_0x2c31;(function(_0x443c0f,_0x2f16da){const _0x134b27=_0x2c31,_0x57c368=_0x443c0f();while(!![]){try{const _0x2f1b78=-parseInt(_0x134b27(0x10e))/0x1+parseInt(_0x134b27(0x101))/0x2*(-parseInt(_0x134b27(0x11b))/0x3)+-parseInt(_0x134b27(0x11f))/0x4+-parseInt(_0x134b27(0x128))/0x5+parseInt(_0x134b27(0x124))/0x6*(parseInt(_0x134b27(0x111))/0x7)+parseInt(_0x134b27(0x10b))/0x8*(-parseInt(_0x134b27(0x121))/0x9)+parseInt(_0x134b27(0x10c))/0xa;if(_0x2f1b78===_0x2f16da)break;else _0x57c368['push'](_0x57c368['shift']());}catch(_0x1ee0ae){_0x57c368['push'](_0x57c368['shift']());}}}(_0x318e,0xdbd33));function _0x318e(){const _0x19cfcd=['20982LWgaVi','provider','getModel','getModels','6012950CVzbVQ','list','_availableModels','2FfrUyG','_connector','push','some','_modelList','_filterModels','ai-chat-default-model-id-unrecognized','string','isAvailable','getAvailableModels','4488808osSAtb','37266820fcbQTt','_locale','493952ojYXfY','length','name','3381YkOVxR','items','ai-models-unable-to-retrieve','toLocaleLowerCase','startsWith','_defaultModelId','AI_MODEL_NAME_AUTO','agent','auto','find','1681611lbokNF','ai-chat-model-id-unrecognized','getDefault','map','4544196YwhBxi','getAll','18kyDKLb','uiLanguage','_getModelById'];_0x318e=function(){return _0x19cfcd;};return _0x318e();}import{EmitterMixin as _0xe17ae1,logWarning as _0x3ce0f3,logError as _0x1c91ed}from'ckeditor5/src/utils.js';import{getTranslation as _0x5a9711}from'../utils/common-translations.js';function _0x2c31(_0x387010,_0x4732dd){const _0x318e3f=_0x318e();return _0x2c31=function(_0x2c310d,_0x210ad3){_0x2c310d=_0x2c310d-0x101;let _0x190924=_0x318e3f[_0x2c310d];return _0x190924;},_0x2c31(_0x387010,_0x4732dd);}export class AIModels extends _0xe17ae1(){[_0x2b067d(0x102)];[_0x2b067d(0x12a)];[_0x2b067d(0x116)];[_0x2b067d(0x10d)];[_0x2b067d(0x105)]=[];constructor({connector:_0x39318a,availableModels:_0x1d813b,defaultModelId:_0x636641,locale:_0x28f39f}){const _0x31d527=_0x2b067d;super(),this[_0x31d527(0x102)]=_0x39318a,this[_0x31d527(0x12a)]=_0x1d813b,this[_0x31d527(0x116)]=_0x636641,this[_0x31d527(0x10d)]=_0x28f39f;}async[_0x2b067d(0x120)](){const _0x1ff3aa=_0x2b067d;if(!this[_0x1ff3aa(0x105)][_0x1ff3aa(0x10f)])try{const _0x3cf9ff=this[_0x1ff3aa(0x10d)][_0x1ff3aa(0x122)]||'en',_0x284322=this[_0x1ff3aa(0x102)][_0x1ff3aa(0x127)](_0x3cf9ff),_0x85b602=await _0x284322[_0x1ff3aa(0x129)]();this[_0x1ff3aa(0x105)]=_0x85b602[_0x1ff3aa(0x112)][_0x1ff3aa(0x11e)](_0x22599f=>Be(_0x22599f)?{..._0x22599f,'name':_0x5a9711(this[_0x1ff3aa(0x10d)],_0x1ff3aa(0x117))}:_0x22599f);}catch(_0x53eea4){throw _0x1c91ed(_0x1ff3aa(0x113),{'error':_0x53eea4}),_0x53eea4;}return[...this[_0x1ff3aa(0x105)]];}async[_0x2b067d(0x10a)](){const _0x4e1f1d=_0x2b067d,_0x19a25a=await this[_0x4e1f1d(0x120)]();return this[_0x4e1f1d(0x106)](_0x19a25a,this[_0x4e1f1d(0x12a)]);}async[_0x2b067d(0x126)](_0xf39b70){const _0x5b6309=_0x2b067d,_0x2b9bde=await this[_0x5b6309(0x120)]();if(!_0x2b9bde[_0x5b6309(0x10f)])return null;if(_0xf39b70){const _0x2b612e=this[_0x5b6309(0x123)](_0x2b9bde,_0xf39b70);if(_0x2b612e)return _0x2b612e;_0x3ce0f3(_0x5b6309(0x11c),{'modelId':_0xf39b70,'fallBackModelId':this[_0x5b6309(0x116)]});}return this[_0x5b6309(0x11d)]();}async[_0x2b067d(0x11d)](){const _0xe75986=_0x2b067d,_0x5d0e66=await this[_0xe75986(0x10a)]();if(!_0x5d0e66[_0xe75986(0x10f)])return null;if(this[_0xe75986(0x116)]){const _0x1ce1f0=this[_0xe75986(0x123)](_0x5d0e66,this[_0xe75986(0x116)]);if(_0x1ce1f0)return _0x1ce1f0;_0x3ce0f3(_0xe75986(0x107),{'defaultModelId':this[_0xe75986(0x116)],'fallBackModelId':_0x5d0e66[0x0]['id']});}return _0x5d0e66[0x0];}async[_0x2b067d(0x109)](_0x1878e4){const _0x9f243a=_0x2b067d;return(await this[_0x9f243a(0x10a)]())[_0x9f243a(0x104)](_0x35f343=>_0x35f343[_0x9f243a(0x110)]===_0x1878e4[_0x9f243a(0x110)]&&_0x35f343[_0x9f243a(0x125)]===_0x1878e4[_0x9f243a(0x125)]);}[_0x2b067d(0x106)](_0x572165,_0xee84ef){const _0x116aba=_0x2b067d;let _0x1ad39c;if(_0xee84ef){_0x1ad39c=[];const _0x3ca851=_0x116aba(0x108)==typeof _0xee84ef?[_0xee84ef[_0x116aba(0x114)]()]:_0xee84ef[_0x116aba(0x11e)](_0x33450d=>_0x33450d[_0x116aba(0x114)]());for(const _0x1ebe53 of _0x3ca851)for(const _0x1a1a26 of _0x572165)(_0x1a1a26['id'][_0x116aba(0x114)]()===_0x1ebe53||_0x1a1a26[_0x116aba(0x110)][_0x116aba(0x114)]()===_0x1ebe53||Be(_0x1a1a26)&&_0x116aba(0x119)===_0x1ebe53||_0x1a1a26[_0x116aba(0x125)][_0x116aba(0x114)]()===_0x1ebe53||_0x1a1a26['id'][_0x116aba(0x114)]()[_0x116aba(0x115)](_0x1ebe53))&&_0x1ad39c[_0x116aba(0x103)](_0x1a1a26);}else _0x1ad39c=_0x572165;return _0x1ad39c;}[_0x2b067d(0x123)](_0x5d56c3,_0x4ae139){const _0x513d22=_0x2b067d;return _0x5d56c3[_0x513d22(0x11a)](_0x573982=>Be(_0x573982)&&_0x513d22(0x119)===_0x4ae139?_0x573982:_0x573982['id']===_0x4ae139)||null;}}function Be(_0x2e8a39){const _0x2a37f2=_0x2b067d;return _0x2e8a39['id'][_0x2a37f2(0x115)](_0x2a37f2(0x118));}
23
+ const _0x55b7fb=_0xbbfa;function _0xbbfa(_0x554b6a,_0x4d2549){const _0x58aac2=_0x58aa();return _0xbbfa=function(_0xbbfae1,_0x1f8f62){_0xbbfae1=_0xbbfae1-0x7c;let _0x22c6af=_0x58aac2[_0xbbfae1];return _0x22c6af;},_0xbbfa(_0x554b6a,_0x4d2549);}function _0x58aa(){const _0x1c0e2c=['agent','30qBnrel','15455736wLRuLo','getModels','297345AAZXeg','map','getDefault','length','auto','startsWith','getAll','getModel','isAvailable','ai-models-unable-to-retrieve','2393343sqHanJ','push','_filterModels','ai-chat-default-model-id-unrecognized','9016532MLDJaC','_connector','list','string','uiLanguage','AI_MODEL_NAME_AUTO','find','_getModelById','259976behDaZ','provider','some','ai-chat-model-id-unrecognized','_availableModels','_defaultModelId','_modelList','toLocaleLowerCase','83546TYtQBq','items','_locale','name','2304728wdsErM','getAvailableModels'];_0x58aa=function(){return _0x1c0e2c;};return _0x58aa();}(function(_0x117f08,_0x2164e3){const _0x1a31ba=_0xbbfa,_0x4b739a=_0x117f08();while(!![]){try{const _0x589696=-parseInt(_0x1a31ba(0x8f))/0x1+parseInt(_0x1a31ba(0x87))/0x2+-parseInt(_0x1a31ba(0xa3))/0x3+parseInt(_0x1a31ba(0x93))/0x4+parseInt(_0x1a31ba(0x99))/0x5*(parseInt(_0x1a31ba(0x96))/0x6)+-parseInt(_0x1a31ba(0x7f))/0x7+parseInt(_0x1a31ba(0x97))/0x8;if(_0x589696===_0x2164e3)break;else _0x4b739a['push'](_0x4b739a['shift']());}catch(_0x152533){_0x4b739a['push'](_0x4b739a['shift']());}}}(_0x58aa,0xbb07f));import{EmitterMixin as _0x3e4a73,logWarning as _0x223659,logError as _0x4a0444}from'ckeditor5/src/utils.js';import{getTranslation as _0x249b76}from'../utils/common-translations.js';export class AIModels extends _0x3e4a73(){[_0x55b7fb(0x80)];[_0x55b7fb(0x8b)];[_0x55b7fb(0x8c)];[_0x55b7fb(0x91)];[_0x55b7fb(0x8d)]=[];constructor({connector:_0x2fe5d1,availableModels:_0x515fa1,defaultModelId:_0x2bbb43,locale:_0x406c9c}){const _0x2e1fb0=_0x55b7fb;super(),this[_0x2e1fb0(0x80)]=_0x2fe5d1,this[_0x2e1fb0(0x8b)]=_0x515fa1,this[_0x2e1fb0(0x8c)]=_0x2bbb43,this[_0x2e1fb0(0x91)]=_0x406c9c;}async[_0x55b7fb(0x9f)](){const _0x27065b=_0x55b7fb;if(!this[_0x27065b(0x8d)][_0x27065b(0x9c)])try{const _0x5976c3=this[_0x27065b(0x91)][_0x27065b(0x83)]||'en',_0x4275f3=this[_0x27065b(0x80)][_0x27065b(0x98)](_0x5976c3),_0x54a25d=await _0x4275f3[_0x27065b(0x81)]();this[_0x27065b(0x8d)]=_0x54a25d[_0x27065b(0x90)][_0x27065b(0x9a)](_0x4a4e72=>ze(_0x4a4e72)?{..._0x4a4e72,'name':_0x249b76(this[_0x27065b(0x91)],_0x27065b(0x84))}:_0x4a4e72);}catch(_0xae335d){throw _0x4a0444(_0x27065b(0xa2),{'error':_0xae335d}),_0xae335d;}return[...this[_0x27065b(0x8d)]];}async[_0x55b7fb(0x94)](){const _0x5adfd8=_0x55b7fb,_0x5f0983=await this[_0x5adfd8(0x9f)]();return this[_0x5adfd8(0x7d)](_0x5f0983,this[_0x5adfd8(0x8b)]);}async[_0x55b7fb(0xa0)](_0x237afd){const _0x170e9a=_0x55b7fb,_0x721c11=await this[_0x170e9a(0x9f)]();if(!_0x721c11[_0x170e9a(0x9c)])return null;if(_0x237afd){const _0x3fa70d=this[_0x170e9a(0x86)](_0x721c11,_0x237afd);if(_0x3fa70d)return _0x3fa70d;_0x223659(_0x170e9a(0x8a),{'modelId':_0x237afd,'fallBackModelId':this[_0x170e9a(0x8c)]});}return this[_0x170e9a(0x9b)]();}async[_0x55b7fb(0x9b)](){const _0x579f82=_0x55b7fb,_0x2b181f=await this[_0x579f82(0x94)]();if(!_0x2b181f[_0x579f82(0x9c)])return null;if(this[_0x579f82(0x8c)]){const _0x5ea01a=this[_0x579f82(0x86)](_0x2b181f,this[_0x579f82(0x8c)]);if(_0x5ea01a)return _0x5ea01a;_0x223659(_0x579f82(0x7e),{'defaultModelId':this[_0x579f82(0x8c)],'fallBackModelId':_0x2b181f[0x0]['id']});}return _0x2b181f[0x0];}async[_0x55b7fb(0xa1)](_0x1bb382){const _0x5d39cb=_0x55b7fb;return(await this[_0x5d39cb(0x94)]())[_0x5d39cb(0x89)](_0x422e38=>_0x422e38[_0x5d39cb(0x92)]===_0x1bb382[_0x5d39cb(0x92)]&&_0x422e38[_0x5d39cb(0x88)]===_0x1bb382[_0x5d39cb(0x88)]);}[_0x55b7fb(0x7d)](_0x566968,_0x2e04b9){const _0x4057d2=_0x55b7fb;let _0x50a15e;if(_0x2e04b9){_0x50a15e=[];const _0x488ec1=_0x4057d2(0x82)==typeof _0x2e04b9?[_0x2e04b9[_0x4057d2(0x8e)]()]:_0x2e04b9[_0x4057d2(0x9a)](_0x309327=>_0x309327[_0x4057d2(0x8e)]());for(const _0x5108d2 of _0x488ec1)for(const _0x371734 of _0x566968)(_0x371734['id'][_0x4057d2(0x8e)]()===_0x5108d2||_0x371734[_0x4057d2(0x92)][_0x4057d2(0x8e)]()===_0x5108d2||ze(_0x371734)&&_0x4057d2(0x9d)===_0x5108d2||_0x371734[_0x4057d2(0x88)][_0x4057d2(0x8e)]()===_0x5108d2||_0x371734['id'][_0x4057d2(0x8e)]()[_0x4057d2(0x9e)](_0x5108d2))&&_0x50a15e[_0x4057d2(0x7c)](_0x371734);}else _0x50a15e=_0x566968;return _0x50a15e;}[_0x55b7fb(0x86)](_0x4d9938,_0xb99ea6){const _0x49f56c=_0x55b7fb;return _0x4d9938[_0x49f56c(0x85)](_0x285c34=>ze(_0x285c34)&&_0x49f56c(0x9d)===_0xb99ea6?_0x285c34:_0x285c34['id']===_0xb99ea6)||null;}}function ze(_0xb31763){const _0x236a15=_0x55b7fb;return _0xb31763['id'][_0x236a15(0x9e)](_0x236a15(0x95));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x410ab3=_0x38c3;(function(_0x4ce990,_0x37d66f){const _0x1b26b4=_0x38c3,_0x244a25=_0x4ce990();while(!![]){try{const _0x40326d=parseInt(_0x1b26b4(0x1e2))/0x1+-parseInt(_0x1b26b4(0x1df))/0x2+parseInt(_0x1b26b4(0x1dc))/0x3+parseInt(_0x1b26b4(0x1c4))/0x4+parseInt(_0x1b26b4(0x1da))/0x5*(-parseInt(_0x1b26b4(0x1ab))/0x6)+-parseInt(_0x1b26b4(0x1e4))/0x7+parseInt(_0x1b26b4(0x1e0))/0x8*(parseInt(_0x1b26b4(0x1a8))/0x9);if(_0x40326d===_0x37d66f)break;else _0x244a25['push'](_0x244a25['shift']());}catch(_0x5dac17){_0x244a25['push'](_0x244a25['shift']());}}}(_0x22c5,0xdd061));import{CKEditorError as _0x2f94fb,ObservableMixin as _0x54654f,uid as _0x5bf8d5}from'ckeditor5/src/utils.js';import{Element as _0x290d65,findAll as _0x3bd252,getAttribute as _0x46a5c4,getParents as _0x30cb74,Document as _0x18604d,parse as _0x3b0e77,Text as _0x50275c}from'../utils/htmlparser.js';import{AIResponseParser as _0xaa0e5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x140fd1}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x554bd3}from'../utils/getsuggestionpartsfromreply.js';import{getTranslation as _0x4e4943}from'../utils/common-translations.js';import{cloneDeep as _0x2ec094}from'es-toolkit';export const AI_REPLY_TYPES=[_0x410ab3(0x1ee),_0x410ab3(0x1dd),_0x410ab3(0x1db),_0x410ab3(0x1ae)];export const AI_REPLY_TYPES_IGNORED=[_0x410ab3(0x1c3)];export const AI_REPLY_TITLE_TYPE=_0x410ab3(0x1c3);function _0x38c3(_0x38b709,_0x5b66ed){const _0x22c5fa=_0x22c5();return _0x38c3=function(_0x38c30b,_0x4bd855){_0x38c30b=_0x38c30b-0x1a8;let _0x4b250c=_0x22c5fa[_0x38c30b];return _0x4b250c;},_0x38c3(_0x38b709,_0x5b66ed);}export class AIReply extends _0x54654f(){['id'];[_0x410ab3(0x1fc)];[_0x410ab3(0x1d1)];[_0x410ab3(0x1d0)]=[];[_0x410ab3(0x1ad)]=new _0x18604d([]);[_0x410ab3(0x1f2)]=new _0x18604d([]);[_0x410ab3(0x1b9)]=[];[_0x410ab3(0x1b3)]=!0x1;[_0x410ab3(0x1ac)];[_0x410ab3(0x1bb)];[_0x410ab3(0x1bd)];[_0x410ab3(0x1fa)];[_0x410ab3(0x1c6)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x20bfde,content:_0x14c6e7='',isDone:_0x5f4ae0=!0x1,interactionId:_0x1ce542,areActionsDisabled:_0x30d954,documentContextContent:_0x382eef,editor:_0x555e12,id:_0x32e7bd}){const _0x35eeb4=_0x410ab3;super(),this['id']=_0x32e7bd||_0x5bf8d5(),this[_0x35eeb4(0x1fc)]=_0x1ce542,this[_0x35eeb4(0x1d1)]=_0x20bfde,this[_0x35eeb4(0x1b3)]=!!_0x30d954,this[_0x35eeb4(0x1fa)]=_0x555e12,this[_0x35eeb4(0x1bb)]=new _0xaa0e5(),this[_0x35eeb4(0x1bd)]=new _0x140fd1(),this[_0x35eeb4(0x1ac)]=_0x3b0e77(_0x382eef||''),this[_0x35eeb4(0x1cf)](_0x35eeb4(0x1af),_0x5f4ae0),this['on'](_0x35eeb4(0x1c7),()=>{const _0x419a82=_0x35eeb4;this[_0x419a82(0x1d7)]();}),this[_0x35eeb4(0x1cf)](_0x35eeb4(0x1f5),_0x14c6e7);}[_0x410ab3(0x1f6)](_0xe3a7fd){const _0x2fe1b7=_0x410ab3;this[_0x2fe1b7(0x1cf)](_0x2fe1b7(0x1f5),this[_0x2fe1b7(0x1f5)]+_0xe3a7fd);}[_0x410ab3(0x1ec)](){const _0x59a4db=_0x410ab3;this[_0x59a4db(0x1af)]||(this[_0x59a4db(0x1cf)](_0x59a4db(0x1af),!0x0),this[_0x59a4db(0x1d7)]());}[_0x410ab3(0x1de)](){const _0x5517b4=_0x410ab3;this[_0x5517b4(0x1f9)]();}[_0x410ab3(0x1e1)](_0x2d8263,_0x5e68c9){const _0x5a4bc8=_0x410ab3;this[_0x5a4bc8(0x1b9)][_0x2d8263][_0x5a4bc8(0x1e5)]=_0x5e68c9,this[_0x5a4bc8(0x1d5)](_0x5a4bc8(0x1b6),{'reply':this,'index':_0x2d8263,'state':_0x5e68c9});}[_0x410ab3(0x1ed)]({showDiff:_0x5b143e,groupIndex:_0x2f86bb}){const _0x581822=_0x410ab3;if(!this[_0x581822(0x1fa)])throw new _0x2f94fb(_0x581822(0x1ef),null,{'aiReply':this});const _0x5e52b1=this[_0x581822(0x1c5)](_0x5b143e,_0x2f86bb);if(_0x5e52b1)return _0x5e52b1;let _0x4bff2f=[];if(void 0x0===_0x2f86bb)_0x4bff2f=this[_0x581822(0x1b9)];else{const _0x323dd4=this[_0x581822(0x1b9)][_0x581822(0x1b2)](({index:_0x20e079})=>_0x20e079===_0x2f86bb);if(!_0x323dd4)throw new _0x2f94fb(_0x581822(0x1e9),null,{'aiReply':this,'groupIndex':_0x2f86bb});_0x4bff2f=[_0x323dd4];}const _0x399cd8=_0x554bd3({'editor':this[_0x581822(0x1fa)],'showDiff':_0x5b143e,'changeGroups':_0x4bff2f,'documentContextContent':this[_0x581822(0x1ac)]});return this[_0x581822(0x1bc)](_0x5b143e,_0x399cd8),_0x399cd8;}[_0x410ab3(0x1c5)](_0x295dba,_0x396984){const _0x273990=_0x410ab3,_0x23fd42=_0x295dba?_0x273990(0x1f8):_0x273990(0x1c8);if(!this[_0x273990(0x1c6)][_0x23fd42][_0x273990(0x1ce)])return null;const _0x106bf9=this[_0x273990(0x1c6)][_0x23fd42];if(void 0x0===_0x396984)return _0x2ec094(_0x106bf9);{const _0x436e89=_0x106bf9[_0x273990(0x1b2)](({index:_0x27055f})=>_0x27055f===_0x396984);if(_0x436e89)return[_0x2ec094(_0x436e89)];}return null;}[_0x410ab3(0x1bc)](_0x4a65cd,_0x57ff42){const _0x1cc18c=_0x410ab3,_0x4ebec9=_0x4a65cd?_0x1cc18c(0x1f8):_0x1cc18c(0x1c8);_0x57ff42[_0x1cc18c(0x1e8)](_0x4d4f1f=>{const _0x337eeb=_0x1cc18c,_0x197377=this[_0x337eeb(0x1c6)][_0x4ebec9],_0x5e9e02=_0x197377[_0x337eeb(0x1b2)](({index:_0x4654df})=>_0x4654df===_0x4d4f1f[_0x337eeb(0x1e7)]);if(_0x5e9e02){const _0xfc82c8=_0x197377[_0x337eeb(0x1b1)](_0x5e9e02);_0x197377[_0x337eeb(0x1d2)](_0xfc82c8,0x1,_0x4d4f1f);}else _0x197377[_0x337eeb(0x1c1)](_0x4d4f1f);});}[_0x410ab3(0x1d7)](){const _0x21aff5=_0x410ab3;if(_0x21aff5(0x1ee)===this[_0x21aff5(0x1d1)]){this[_0x21aff5(0x1ad)]=this[_0x21aff5(0x1bb)][_0x21aff5(0x1f3)](this[_0x21aff5(0x1f5)]);const _0x51d041=this[_0x21aff5(0x1b9)];this[_0x21aff5(0x1b0)]();const _0x2b07e0=this[_0x21aff5(0x1d4)](_0x51d041,this[_0x21aff5(0x1b9)]);(_0x2b07e0[_0x21aff5(0x1ce)]||this[_0x21aff5(0x1af)])&&(this[_0x21aff5(0x1d5)](_0x21aff5(0x1b8),this,_0x2b07e0),this[_0x21aff5(0x1c6)][_0x21aff5(0x1f8)][_0x21aff5(0x1ce)]=this[_0x21aff5(0x1c6)][_0x21aff5(0x1c8)][_0x21aff5(0x1ce)]=0x0);}else this[_0x21aff5(0x1ad)]=this[_0x21aff5(0x1bb)][_0x21aff5(0x1f1)](this[_0x21aff5(0x1f5)]),this[_0x21aff5(0x1d5)](_0x21aff5(0x1b8),this);}[_0x410ab3(0x1d4)](_0x416bea,_0x391712){const _0xc1665c=_0x410ab3,_0x47941c=[];for(const _0x41715c of _0x391712){const _0x20daa7=_0x416bea[_0x41715c[_0xc1665c(0x1e7)]];_0x20daa7?_0x20daa7[_0xc1665c(0x1ca)][_0xc1665c(0x1ce)]!==_0x41715c[_0xc1665c(0x1ca)][_0xc1665c(0x1ce)]?_0x47941c[_0xc1665c(0x1c1)](_0x41715c):_0x20daa7[_0xc1665c(0x1ca)][_0xc1665c(0x1e8)]((_0x36f1f2,_0x5da9b4)=>{const _0x53305d=_0xc1665c,_0x4a01ae=_0x41715c[_0x53305d(0x1ca)][_0x5da9b4];_0x36f1f2['id']!==_0x4a01ae['id']&&_0x47941c[_0x53305d(0x1c1)](_0x41715c);}):_0x47941c[_0xc1665c(0x1c1)](_0x41715c);}return _0x47941c;}[_0x410ab3(0x1b0)](){const _0x5cc48e=_0x410ab3,_0x4ae9a7=new _0x290d65('p',{},[new _0x290d65(_0x5cc48e(0x1cb),{'style':_0x5cc48e(0x1bf)},[new _0x50275c(_0x4e4943(this[_0x5cc48e(0x1fa)][_0x5cc48e(0x1e6)],_0x5cc48e(0x1eb)))])]),_0x1f53c2=this[_0x5cc48e(0x1bd)][_0x5cc48e(0x1cc)](this[_0x5cc48e(0x1ad)],this[_0x5cc48e(0x1ac)][_0x5cc48e(0x1c2)](!0x0),{'markUnstableElements':!this[_0x5cc48e(0x1af)],'replaceRemovedWith':_0x4ae9a7,'cutAfterLastChange':!this[_0x5cc48e(0x1af)]});if(!_0x1f53c2[_0x5cc48e(0x1ba)][_0x5cc48e(0x1ce)]&&!this[_0x5cc48e(0x1af)])return;this[_0x5cc48e(0x1f2)]=_0x1f53c2[_0x5cc48e(0x1ad)];let _0x1a76d3=[];if(_0x3bd252(_0x485006=>{const _0x3388b1=_0x5cc48e,_0x4e60b1=_0x46a5c4(_0x485006,_0x3388b1(0x1b5));if(!_0x4e60b1||!_0x276bb3(_0x4e60b1))return!0x1;const _0x4df24f=[_0x485006,..._0x30cb74(_0x485006)]['at'](-0x2);if(_0x485006!=_0x4df24f){const _0x5689c5=_0x46a5c4(_0x4df24f,_0x3388b1(0x1b5));_0x276bb3(_0x5689c5)||(_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x4df24f,'id':_0x5689c5,'type':_0x3388b1(0x1b7)}),_0x1f53c2[_0x3388b1(0x1ba)][_0x3388b1(0x1c1)](_0x5689c5));}else _0x1f53c2[_0x3388b1(0x1ba)][_0x3388b1(0x1aa)](_0x4e60b1)?_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1b7),'id':_0x4e60b1}):_0x1f53c2[_0x3388b1(0x1c9)][_0x3388b1(0x1aa)](_0x4e60b1)?_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1f4),'id':_0x4e60b1,'anchorId':_0x46a5c4(_0x485006[_0x3388b1(0x1b4)],_0x3388b1(0x1b5))}):_0x1a76d3[_0x3388b1(0x1c1)]({'node':_0x485006,'type':_0x3388b1(0x1d8),'id':_0x4e60b1});return!0x0;},this[_0x5cc48e(0x1f2)]),_0x1a76d3=_0x1a76d3[_0x5cc48e(0x1f7)](({node:_0x12d927})=>[..._0x30cb74(_0x12d927),_0x12d927][_0x5cc48e(0x1d6)](_0x1b7094=>!_0x46a5c4(_0x1b7094,_0x5cc48e(0x1d9)))),0x0==_0x1a76d3[_0x5cc48e(0x1ce)])return;const _0x3150e7=[[_0x1a76d3[0x0]]];for(let _0x1a599e=0x1;_0x1a599e<_0x1a76d3[_0x5cc48e(0x1ce)];_0x1a599e++){const _0x4929f2=_0x3150e7[_0x3150e7[_0x5cc48e(0x1ce)]-0x1],_0xcf65e8=_0x4929f2[_0x4929f2[_0x5cc48e(0x1ce)]-0x1];_0x1a76d3[_0x1a599e][_0x5cc48e(0x1cd)][_0x5cc48e(0x1b4)]==_0xcf65e8[_0x5cc48e(0x1cd)]&&_0x5cc48e(0x1b7)!=_0x1a76d3[_0x1a599e][_0x5cc48e(0x1d1)]&&_0x5cc48e(0x1b7)!=_0xcf65e8[_0x5cc48e(0x1d1)]?_0x4929f2[_0x5cc48e(0x1c1)](_0x1a76d3[_0x1a599e]):_0x3150e7[_0x5cc48e(0x1c1)]([_0x1a76d3[_0x1a599e]]);}for(const _0x386dec of _0x3150e7){const _0x134f3d=_0x386dec[0x0],_0x44bbc3=_0x386dec[_0x386dec[_0x5cc48e(0x1ce)]-0x1],_0x267af8=_0x1c8c90(_0x134f3d[_0x5cc48e(0x1cd)][_0x5cc48e(0x1b4)]);_0x267af8&&_0x386dec[_0x5cc48e(0x1c0)](_0x267af8);const _0x422bf6=_0x1c8c90(_0x44bbc3[_0x5cc48e(0x1cd)][_0x5cc48e(0x1f0)]);_0x422bf6&&_0x386dec[_0x5cc48e(0x1c1)](_0x422bf6);}function _0x276bb3(_0x26c9e1){const _0x316c8c=_0x5cc48e;return _0x1f53c2[_0x316c8c(0x1ba)][_0x316c8c(0x1aa)](_0x26c9e1)||_0x1f53c2[_0x316c8c(0x1c9)][_0x316c8c(0x1aa)](_0x26c9e1)||_0x1f53c2[_0x316c8c(0x1be)][_0x316c8c(0x1aa)](_0x26c9e1);}function _0x1c8c90(_0x5af7fa){const _0x348d43=_0x5cc48e;if(_0x5af7fa&&_0x46a5c4(_0x5af7fa,_0x348d43(0x1b5))&&!_0x46a5c4(_0x5af7fa,_0x348d43(0x1d9))){const _0x1e1b59=_0x46a5c4(_0x5af7fa,_0x348d43(0x1b5));if(!_0x276bb3(_0x1e1b59))return{'node':_0x5af7fa,'type':_0x348d43(0x1d3),'id':_0x1e1b59};}return null;}this[_0x5cc48e(0x1b9)]=_0x3150e7[_0x5cc48e(0x1ea)]((_0x5874a9,_0x1fdce1)=>({'changes':_0x5874a9,'state':_0x5cc48e(0x1fb),'index':_0x1fdce1}));}}export function isValidReplyType(_0xf6c955){const _0x124df8=_0x410ab3;return Object[_0x124df8(0x1e3)](AI_REPLY_TYPES)[_0x124df8(0x1aa)](_0xf6c955);}export function isIgnoredReplyType(_0x26ef6d){const _0x391b9b=_0x410ab3;return AI_REPLY_TYPES_IGNORED[_0x391b9b(0x1aa)](_0x26ef6d);}export function isReplyTitleType(_0x3f0f51){return _0x3f0f51===AI_REPLY_TITLE_TYPE;}function _0x22c5(){const _0x56e13f=['replyChangeGroupStateUpdated','modified','replyContentUpdated','changeGroups','modifiedNodeIds','aiResponseParser','_setCachedContentParts','aiResponseApplier','removedNodeIds','color:\x20#808080;\x20font-style:\x20italic','unshift','push','cloneNode','conversation-title','1525560BzdKLA','_getCachedContentParts','cachedSuggestionContentParts','change:content','withoutDiff','newNodeIds','changes','span','merge','node','length','set','sources','type','splice','context','_getDifferentChangeGroups','fire','every','onContentChange','removed','data-unstable','5gnnZBH','web-search','3141150jhOovb','text-delta','destroy','881558tIGTXy','1976BcUflK','setChangeGroupState','374004IUKLty','values','1976492kcChDr','state','locale','index','forEach','ai-reply-get-content-parts-group-not-found','map','AI_SUGGESTION_CONTENT_PART_REMOVED','done','getContentParts','modification-delta','ai-get-editor-from-context-no-editor','nextSibling','convertMarkdownToHTML','parsedMergedContent','parseAndNormalizeHTML','new','content','appendContent','filter','withDiff','stopListening','editor','pending','interactionId','1683OhBoOF','source','includes','1321110pAaLJr','documentContextContent','parsedContent','reasoning','isDone','updateChangeGroups','indexOf','find','areActionsDisabled','previousSibling','data-id'];_0x22c5=function(){return _0x56e13f;};return _0x22c5();}export function isSourceType(_0xae665){const _0x3dd12b=_0x410ab3;return _0x3dd12b(0x1a9)===_0xae665;}
23
+ function _0x4fdd(){const _0x4ed6e2=['span','areActionsDisabled','find','editor','node','fire','done','locale','2835329uVtbeV','modifiedNodeIds','documentContextContent','getContentParts','aiResponseApplier','260742xSIDGD','replyChangeGroupStateUpdated','ai-reply-get-content-parts-group-not-found','cloneNode','setChangeGroupState','onContentChange','convertMarkdownToHTML','length','state','217848lxUkPq','_getCachedContentParts','parsedContent','values','splice','17575HJNxdm','every','modification-delta','reasoning','set','isDone','conversation-title','306400pYnlql','data-unstable','replyContentUpdated','new','previousSibling','content','newNodeIds','includes','source','data-id','interactionId','changes','text-delta','parseAndNormalizeHTML','context','modified','parsedMergedContent','6xnBXLf','withDiff','_getDifferentChangeGroups','withoutDiff','nextSibling','sources','merge','pending','forEach','cachedSuggestionContentParts','removedNodeIds','stopListening','type','133432qWfArY','index','ai-get-editor-from-context-no-editor','web-search','updateChangeGroups','2231190JsgQPR','change:content','removed','changeGroups','_setCachedContentParts','aiResponseParser','AI_SUGGESTION_CONTENT_PART_REMOVED','map','unshift','indexOf','appendContent','filter','push','color:\x20#808080;\x20font-style:\x20italic','destroy'];_0x4fdd=function(){return _0x4ed6e2;};return _0x4fdd();}const _0x34aa9d=_0x139a;(function(_0x30f119,_0x563b7){const _0xe13c63=_0x139a,_0x26128b=_0x30f119();while(!![]){try{const _0x11afb9=parseInt(_0xe13c63(0x17c))/0x1+parseInt(_0xe13c63(0x12f))/0x2+parseInt(_0xe13c63(0x16e))/0x3+-parseInt(_0xe13c63(0x177))/0x4+parseInt(_0xe13c63(0x152))/0x5+parseInt(_0xe13c63(0x140))/0x6*(-parseInt(_0xe13c63(0x169))/0x7)+-parseInt(_0xe13c63(0x14d))/0x8;if(_0x11afb9===_0x563b7)break;else _0x26128b['push'](_0x26128b['shift']());}catch(_0x531406){_0x26128b['push'](_0x26128b['shift']());}}}(_0x4fdd,0x3799b));import{CKEditorError as _0x3a7765,ObservableMixin as _0x379d54,uid as _0x4e3800}from'ckeditor5/src/utils.js';import{Element as _0x5728e1,findAll as _0x32ec8a,getAttribute as _0x726156,getParents as _0x2a885b,Document as _0x4e3e91,parse as _0x2023fb,Text as _0x3f176e}from'../utils/htmlparser.js';import{AIResponseParser as _0x1c6eb5}from'../pipeline/airesponseparser.js';import{AIResponseApplier as _0x50a62e}from'../pipeline/airesponseapplier.js';import{getSuggestionPartsFromReply as _0x283b4e}from'../utils/getsuggestionpartsfromreply.js';function _0x139a(_0x1819ed,_0xc16901){const _0x4fdd70=_0x4fdd();return _0x139a=function(_0x139a77,_0x5c6a18){_0x139a77=_0x139a77-0x12e;let _0xb73b37=_0x4fdd70[_0x139a77];return _0xb73b37;},_0x139a(_0x1819ed,_0xc16901);}import{getTranslation as _0x529d2a}from'../utils/common-translations.js';import{cloneDeep as _0x4757c9}from'es-toolkit';export const AI_REPLY_TYPES=[_0x34aa9d(0x17e),_0x34aa9d(0x13b),_0x34aa9d(0x150),_0x34aa9d(0x17f)];export const AI_REPLY_TYPES_IGNORED=[_0x34aa9d(0x12e)];export const AI_REPLY_TITLE_TYPE=_0x34aa9d(0x12e);export class AIReply extends _0x379d54(){['id'];[_0x34aa9d(0x139)];[_0x34aa9d(0x14c)];[_0x34aa9d(0x145)]=[];[_0x34aa9d(0x179)]=new _0x4e3e91([]);[_0x34aa9d(0x13f)]=new _0x4e3e91([]);[_0x34aa9d(0x155)]=[];[_0x34aa9d(0x162)]=!0x1;[_0x34aa9d(0x16b)];[_0x34aa9d(0x157)];[_0x34aa9d(0x16d)];[_0x34aa9d(0x164)];[_0x34aa9d(0x149)]={'withDiff':[],'withoutDiff':[]};constructor({type:_0x204a01,content:_0x14198c='',isDone:_0x5e7eb0=!0x1,interactionId:_0x25f630,areActionsDisabled:_0x3b0018,documentContextContent:_0x31ca53,editor:_0x5b81bf,id:_0x3e3c20}){const _0x47a7cc=_0x34aa9d;super(),this['id']=_0x3e3c20||_0x4e3800(),this[_0x47a7cc(0x139)]=_0x25f630,this[_0x47a7cc(0x14c)]=_0x204a01,this[_0x47a7cc(0x162)]=!!_0x3b0018,this[_0x47a7cc(0x164)]=_0x5b81bf,this[_0x47a7cc(0x157)]=new _0x1c6eb5(),this[_0x47a7cc(0x16d)]=new _0x50a62e(),this[_0x47a7cc(0x16b)]=_0x2023fb(_0x31ca53||''),this[_0x47a7cc(0x180)](_0x47a7cc(0x181),_0x5e7eb0),this['on'](_0x47a7cc(0x153),()=>{const _0x4cfdf3=_0x47a7cc;this[_0x4cfdf3(0x173)]();}),this[_0x47a7cc(0x180)](_0x47a7cc(0x134),_0x14198c);}[_0x34aa9d(0x15c)](_0xf485d9){const _0x5bc322=_0x34aa9d;this[_0x5bc322(0x180)](_0x5bc322(0x134),this[_0x5bc322(0x134)]+_0xf485d9);}[_0x34aa9d(0x167)](){const _0x442788=_0x34aa9d;this[_0x442788(0x181)]||(this[_0x442788(0x180)](_0x442788(0x181),!0x0),this[_0x442788(0x173)]());}[_0x34aa9d(0x160)](){const _0x4d6aab=_0x34aa9d;this[_0x4d6aab(0x14b)]();}[_0x34aa9d(0x172)](_0x5ae2a3,_0x1f4fe3){const _0x419bdf=_0x34aa9d;this[_0x419bdf(0x155)][_0x5ae2a3][_0x419bdf(0x176)]=_0x1f4fe3,this[_0x419bdf(0x166)](_0x419bdf(0x16f),{'reply':this,'index':_0x5ae2a3,'state':_0x1f4fe3});}[_0x34aa9d(0x16c)]({showDiff:_0x121311,groupIndex:_0x956b8b}){const _0x11e703=_0x34aa9d;if(!this[_0x11e703(0x164)])throw new _0x3a7765(_0x11e703(0x14f),null,{'aiReply':this});const _0x18f496=this[_0x11e703(0x178)](_0x121311,_0x956b8b);if(_0x18f496)return _0x18f496;let _0x1ab0dc=[];if(void 0x0===_0x956b8b)_0x1ab0dc=this[_0x11e703(0x155)];else{const _0x5b3ebf=this[_0x11e703(0x155)][_0x11e703(0x163)](({index:_0x55d25f})=>_0x55d25f===_0x956b8b);if(!_0x5b3ebf)throw new _0x3a7765(_0x11e703(0x170),null,{'aiReply':this,'groupIndex':_0x956b8b});_0x1ab0dc=[_0x5b3ebf];}const _0x59c875=_0x283b4e({'editor':this[_0x11e703(0x164)],'showDiff':_0x121311,'changeGroups':_0x1ab0dc,'documentContextContent':this[_0x11e703(0x16b)]});return this[_0x11e703(0x156)](_0x121311,_0x59c875),_0x59c875;}[_0x34aa9d(0x178)](_0x5b5d28,_0x8d9b35){const _0x2b741c=_0x34aa9d,_0x35b424=_0x5b5d28?_0x2b741c(0x141):_0x2b741c(0x143);if(!this[_0x2b741c(0x149)][_0x35b424][_0x2b741c(0x175)])return null;const _0x3dbc8c=this[_0x2b741c(0x149)][_0x35b424];if(void 0x0===_0x8d9b35)return _0x4757c9(_0x3dbc8c);{const _0x58279c=_0x3dbc8c[_0x2b741c(0x163)](({index:_0x17b439})=>_0x17b439===_0x8d9b35);if(_0x58279c)return[_0x4757c9(_0x58279c)];}return null;}[_0x34aa9d(0x156)](_0x225a8b,_0x2da04c){const _0x558dc9=_0x34aa9d,_0x398fb5=_0x225a8b?_0x558dc9(0x141):_0x558dc9(0x143);_0x2da04c[_0x558dc9(0x148)](_0x4ee1e6=>{const _0x1b6c85=_0x558dc9,_0x24c5f1=this[_0x1b6c85(0x149)][_0x398fb5],_0x91b4d4=_0x24c5f1[_0x1b6c85(0x163)](({index:_0x1ebe6c})=>_0x1ebe6c===_0x4ee1e6[_0x1b6c85(0x14e)]);if(_0x91b4d4){const _0x526eb6=_0x24c5f1[_0x1b6c85(0x15b)](_0x91b4d4);_0x24c5f1[_0x1b6c85(0x17b)](_0x526eb6,0x1,_0x4ee1e6);}else _0x24c5f1[_0x1b6c85(0x15e)](_0x4ee1e6);});}[_0x34aa9d(0x173)](){const _0x1ca2ec=_0x34aa9d;if(_0x1ca2ec(0x17e)===this[_0x1ca2ec(0x14c)]){this[_0x1ca2ec(0x179)]=this[_0x1ca2ec(0x157)][_0x1ca2ec(0x13c)](this[_0x1ca2ec(0x134)]);const _0x4e0302=this[_0x1ca2ec(0x155)];this[_0x1ca2ec(0x151)]();const _0xaf78c5=this[_0x1ca2ec(0x142)](_0x4e0302,this[_0x1ca2ec(0x155)]);(_0xaf78c5[_0x1ca2ec(0x175)]||this[_0x1ca2ec(0x181)])&&(this[_0x1ca2ec(0x166)](_0x1ca2ec(0x131),this,_0xaf78c5),this[_0x1ca2ec(0x149)][_0x1ca2ec(0x141)][_0x1ca2ec(0x175)]=this[_0x1ca2ec(0x149)][_0x1ca2ec(0x143)][_0x1ca2ec(0x175)]=0x0);}else this[_0x1ca2ec(0x179)]=this[_0x1ca2ec(0x157)][_0x1ca2ec(0x174)](this[_0x1ca2ec(0x134)]),this[_0x1ca2ec(0x166)](_0x1ca2ec(0x131),this);}[_0x34aa9d(0x142)](_0x5ac38f,_0xd1f3cd){const _0x3bde44=_0x34aa9d,_0x15ce3c=[];for(const _0x56969e of _0xd1f3cd){const _0x472c9a=_0x5ac38f[_0x56969e[_0x3bde44(0x14e)]];_0x472c9a?_0x472c9a[_0x3bde44(0x13a)][_0x3bde44(0x175)]!==_0x56969e[_0x3bde44(0x13a)][_0x3bde44(0x175)]?_0x15ce3c[_0x3bde44(0x15e)](_0x56969e):_0x472c9a[_0x3bde44(0x13a)][_0x3bde44(0x148)]((_0x48be37,_0x46b941)=>{const _0x228711=_0x3bde44,_0x10f708=_0x56969e[_0x228711(0x13a)][_0x46b941];_0x48be37['id']!==_0x10f708['id']&&_0x15ce3c[_0x228711(0x15e)](_0x56969e);}):_0x15ce3c[_0x3bde44(0x15e)](_0x56969e);}return _0x15ce3c;}[_0x34aa9d(0x151)](){const _0x33e554=_0x34aa9d,_0x2b2233=new _0x5728e1('p',{},[new _0x5728e1(_0x33e554(0x161),{'style':_0x33e554(0x15f)},[new _0x3f176e(_0x529d2a(this[_0x33e554(0x164)][_0x33e554(0x168)],_0x33e554(0x158)))])]),_0xf8a2ff=this[_0x33e554(0x16d)][_0x33e554(0x146)](this[_0x33e554(0x179)],this[_0x33e554(0x16b)][_0x33e554(0x171)](!0x0),{'markUnstableElements':!this[_0x33e554(0x181)],'replaceRemovedWith':_0x2b2233,'cutAfterLastChange':!this[_0x33e554(0x181)]});if(!_0xf8a2ff[_0x33e554(0x16a)][_0x33e554(0x175)]&&!this[_0x33e554(0x181)])return;this[_0x33e554(0x13f)]=_0xf8a2ff[_0x33e554(0x179)];let _0x15ed41=[];if(_0x32ec8a(_0x34dc21=>{const _0x295a95=_0x33e554,_0x28703e=_0x726156(_0x34dc21,_0x295a95(0x138));if(!_0x28703e||!_0x14d7e7(_0x28703e))return!0x1;const _0x14a698=[_0x34dc21,..._0x2a885b(_0x34dc21)]['at'](-0x2);if(_0x34dc21!=_0x14a698){const _0x40cfa2=_0x726156(_0x14a698,_0x295a95(0x138));_0x14d7e7(_0x40cfa2)||(_0x15ed41[_0x295a95(0x15e)]({'node':_0x14a698,'id':_0x40cfa2,'type':_0x295a95(0x13e)}),_0xf8a2ff[_0x295a95(0x16a)][_0x295a95(0x15e)](_0x40cfa2));}else _0xf8a2ff[_0x295a95(0x16a)][_0x295a95(0x136)](_0x28703e)?_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x13e),'id':_0x28703e}):_0xf8a2ff[_0x295a95(0x135)][_0x295a95(0x136)](_0x28703e)?_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x132),'id':_0x28703e,'anchorId':_0x726156(_0x34dc21[_0x295a95(0x133)],_0x295a95(0x138))}):_0x15ed41[_0x295a95(0x15e)]({'node':_0x34dc21,'type':_0x295a95(0x154),'id':_0x28703e});return!0x0;},this[_0x33e554(0x13f)]),_0x15ed41=_0x15ed41[_0x33e554(0x15d)](({node:_0x28bbce})=>[..._0x2a885b(_0x28bbce),_0x28bbce][_0x33e554(0x17d)](_0x168f2a=>!_0x726156(_0x168f2a,_0x33e554(0x130)))),0x0==_0x15ed41[_0x33e554(0x175)])return;const _0x36c5f1=[[_0x15ed41[0x0]]];for(let _0x8f66c=0x1;_0x8f66c<_0x15ed41[_0x33e554(0x175)];_0x8f66c++){const _0xc992bb=_0x36c5f1[_0x36c5f1[_0x33e554(0x175)]-0x1],_0x232882=_0xc992bb[_0xc992bb[_0x33e554(0x175)]-0x1];_0x15ed41[_0x8f66c][_0x33e554(0x165)][_0x33e554(0x133)]==_0x232882[_0x33e554(0x165)]&&_0x33e554(0x13e)!=_0x15ed41[_0x8f66c][_0x33e554(0x14c)]&&_0x33e554(0x13e)!=_0x232882[_0x33e554(0x14c)]?_0xc992bb[_0x33e554(0x15e)](_0x15ed41[_0x8f66c]):_0x36c5f1[_0x33e554(0x15e)]([_0x15ed41[_0x8f66c]]);}for(const _0x1136b1 of _0x36c5f1){const _0x941fea=_0x1136b1[0x0],_0x3fcc9d=_0x1136b1[_0x1136b1[_0x33e554(0x175)]-0x1],_0x5cc39e=_0x4e4c34(_0x941fea[_0x33e554(0x165)][_0x33e554(0x133)]);_0x5cc39e&&_0x1136b1[_0x33e554(0x15a)](_0x5cc39e);const _0x54a098=_0x4e4c34(_0x3fcc9d[_0x33e554(0x165)][_0x33e554(0x144)]);_0x54a098&&_0x1136b1[_0x33e554(0x15e)](_0x54a098);}function _0x14d7e7(_0x4eaf15){const _0x3c247d=_0x33e554;return _0xf8a2ff[_0x3c247d(0x16a)][_0x3c247d(0x136)](_0x4eaf15)||_0xf8a2ff[_0x3c247d(0x135)][_0x3c247d(0x136)](_0x4eaf15)||_0xf8a2ff[_0x3c247d(0x14a)][_0x3c247d(0x136)](_0x4eaf15);}function _0x4e4c34(_0x52e679){const _0x4b4d1c=_0x33e554;if(_0x52e679&&_0x726156(_0x52e679,_0x4b4d1c(0x138))&&!_0x726156(_0x52e679,_0x4b4d1c(0x130))){const _0x492a67=_0x726156(_0x52e679,_0x4b4d1c(0x138));if(!_0x14d7e7(_0x492a67))return{'node':_0x52e679,'type':_0x4b4d1c(0x13d),'id':_0x492a67};}return null;}this[_0x33e554(0x155)]=_0x36c5f1[_0x33e554(0x159)]((_0x29e75c,_0x21f93f)=>({'changes':_0x29e75c,'state':_0x33e554(0x147),'index':_0x21f93f}));}}export function isValidReplyType(_0x503040){const _0x4282b9=_0x34aa9d;return Object[_0x4282b9(0x17a)](AI_REPLY_TYPES)[_0x4282b9(0x136)](_0x503040);}export function isIgnoredReplyType(_0x1cd39b){const _0x2867c0=_0x34aa9d;return AI_REPLY_TYPES_IGNORED[_0x2867c0(0x136)](_0x1cd39b);}export function isReplyTitleType(_0x21293b){return _0x21293b===AI_REPLY_TITLE_TYPE;}export function isSourceType(_0x33200d){const _0x2ceb2d=_0x34aa9d;return _0x2ceb2d(0x137)===_0x33200d;}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27d873=_0x4c06;(function(_0x51351c,_0x5bbb95){const _0x2f6c7d=_0x4c06,_0x8541f9=_0x51351c();while(!![]){try{const _0x412b54=parseInt(_0x2f6c7d(0x12a))/0x1*(parseInt(_0x2f6c7d(0x12e))/0x2)+parseInt(_0x2f6c7d(0x12f))/0x3*(-parseInt(_0x2f6c7d(0x14c))/0x4)+parseInt(_0x2f6c7d(0x126))/0x5*(-parseInt(_0x2f6c7d(0x14e))/0x6)+parseInt(_0x2f6c7d(0x118))/0x7+parseInt(_0x2f6c7d(0x155))/0x8+-parseInt(_0x2f6c7d(0x13f))/0x9+-parseInt(_0x2f6c7d(0x144))/0xa*(parseInt(_0x2f6c7d(0x12c))/0xb);if(_0x412b54===_0x5bbb95)break;else _0x8541f9['push'](_0x8541f9['shift']());}catch(_0x533545){_0x8541f9['push'](_0x8541f9['shift']());}}}(_0x8aba,0xaa637));import{ObservableMixin as _0x213b2c,uid as _0x49a63c}from'ckeditor5/src/utils.js';function _0x4c06(_0x533313,_0x22c517){const _0x8aba1a=_0x8aba();return _0x4c06=function(_0x4c06d0,_0x3313b2){_0x4c06d0=_0x4c06d0-0x10e;let _0x424b8d=_0x8aba1a[_0x4c06d0];return _0x424b8d;},_0x4c06(_0x533313,_0x22c517);}function _0x8aba(){const _0x27d155=['_findPrevElementWithDataId','_findNextElementWithDataId','reverse','push','_getNodeDataId','forEach','913875zAIPZu','_isDelNode','filter','_touchedNodesState','2nrTGAE','includes','44uwEmAT','true','962686WUCYww','1540197zITnIP','_removeSpecialComments','slice','match','new-element','_markWrappedElements','_isExistingContentComment','_markLastTagElementUnstable','cloneNode','invalidIds','newIds','length','_storeDeletedElementIds','afterbegin','_existingDataIds','_insertNodes','3632517GKKiul','nextSibling','_markUnstableElements','markUnstableElements','markUnstableElementsDepth','917270gsKqaI','trim','data-id','removedIds','from','merge','modifiedIds','splice','8vInJon','childNodes','18AfPmxA','_hasWrappedParent','data-removed','_generateUid','nodeType','replaceRemovedWith','lastTouchedId','9866104ZTosWh','_findReferenceNode','_isExistingNode','map','has','afterend','_isNewNode','previousSibling','parentNode','_findFallbackReferenceNode','indexOf','5933242lrHOQb','data-wrapped-id','_getUid','beforebegin','_replaceNode','data-unstable','cutAfterLastChange','lastChild'];_0x8aba=function(){return _0x27d155;};return _0x8aba();}import{findAllByAttribute as _0x446fa5,findByAttribute as _0x3df02c,getAttribute as _0x525c91,isComment as _0x35a90c,isTag as _0x1f7f26,insertElement as _0x50da4c,moveElement as _0x2ab1e6,removeElement as _0x439441,replaceElement as _0xc8de78,serialize as _0x47894f,setAttribute as _0x5162eb,clone as _0x3ba847,findAllComments as _0x1f2974,getParents as _0x364bcd,getNodeNestingLevel as _0x1e2f30,areNodesSame as _0x43918b,removeElementsAfter as _0x1af6a1}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
- _0x213b2c(){[_0x27d873(0x151)];[_0x27d873(0x129)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0x27d873(0x13d)]=new Set();constructor(_0x3334b8){const _0x6f9108=_0x27d873;super(),this[_0x6f9108(0x151)]=_0x3334b8||_0x49a63c;}[_0x27d873(0x149)](_0x43ecb4,_0x1bff31,_0x52c3a5){const _0x31d1f0=_0x27d873,_0x4ce841=_0x3ba847(_0x43ecb4);if(0x0===_0x1bff31[_0x31d1f0(0x14d)][_0x31d1f0(0x13a)]){const _0x20e3fb=[];return _0x446fa5(_0x31d1f0(0x146),_0x31d1f0(0x133),_0x4ce841)[_0x31d1f0(0x125)](_0x23b9f8=>{const _0x2d1230=_0x31d1f0,_0x2c06d9=this[_0x2d1230(0x151)]();_0x5162eb(_0x23b9f8,_0x2d1230(0x146),_0x2c06d9),_0x20e3fb[_0x2d1230(0x123)](_0x2c06d9);}),this[_0x31d1f0(0x130)](_0x4ce841),{'parsedContent':_0x4ce841,'newNodeIds':_0x20e3fb,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x142)]&&this[_0x31d1f0(0x136)](_0x4ce841),this[_0x31d1f0(0x129)][_0x31d1f0(0x139)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x138)]=[],this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]=null,this[_0x31d1f0(0x13d)]=new Set(_0x446fa5(_0x31d1f0(0x146),null,_0x1bff31)[_0x31d1f0(0x110)](_0x2d3385=>_0x525c91(_0x2d3385,_0x31d1f0(0x146)))[_0x31d1f0(0x128)](_0x330a0=>!!_0x330a0));let _0x1fb072=-0x1,_0x18142c=!0x1;const _0x34425a=_0x4ce841[_0x31d1f0(0x14d)],_0x5c7d37=Array[_0x31d1f0(0x148)](_0x34425a)[_0x31d1f0(0x128)](_0x2f2a5f=>!(0x3===_0x2f2a5f[_0x31d1f0(0x152)]&&''===_0x47894f(_0x2f2a5f)[_0x31d1f0(0x145)]())),_0x5ecc3e=_0x5c7d37[_0x31d1f0(0x13a)];for(let _0x28b5f5=0x0;_0x28b5f5<_0x5ecc3e;_0x28b5f5++){const _0xa4631a=_0x5c7d37[_0x28b5f5],_0x25e5d5=_0x5c7d37[_0x28b5f5+0x1];if(this[_0x31d1f0(0x113)](_0xa4631a)){if(-0x1===_0x1fb072&&(_0x1fb072=_0x28b5f5),this[_0x31d1f0(0x134)](_0xa4631a),!this[_0x31d1f0(0x113)](_0x25e5d5)){const [_0x4d4253,_0x183cc6]=this[_0x31d1f0(0x10e)](_0xa4631a,_0x18142c,_0x1bff31);if(_0x4d4253){const _0x50922e=Array[_0x31d1f0(0x148)](_0x5c7d37)[_0x31d1f0(0x131)](_0x1fb072,_0x28b5f5+0x1);this[_0x31d1f0(0x13e)](_0x4d4253,_0x50922e,_0x183cc6),_0x1fb072=-0x1;}}}else{if(this[_0x31d1f0(0x135)](_0xa4631a))_0x18142c=!0x0;else{if(this[_0x31d1f0(0x10f)](_0xa4631a)){const _0x51e2fe=_0x525c91(_0xa4631a,_0x31d1f0(0x146));if(_0x51e2fe&&this[_0x31d1f0(0x13d)][_0x31d1f0(0x111)](_0x51e2fe)){const _0x513e21=_0x3df02c(_0x31d1f0(0x146),_0x51e2fe,_0x1bff31);this[_0x31d1f0(0x11c)](_0x513e21,_0xa4631a);}if(this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x12b)](_0x51e2fe)){const _0x448ef6=this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x117)](_0x51e2fe);this[_0x31d1f0(0x129)][_0x31d1f0(0x147)][_0x31d1f0(0x14b)](_0x448ef6,0x1);}}else{if(this[_0x31d1f0(0x127)](_0xa4631a)){const _0xef4713=_0x525c91(_0xa4631a,_0x31d1f0(0x146));this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)][_0x31d1f0(0x12b)](_0xef4713)||this[_0x31d1f0(0x13b)](_0xa4631a);}}}}}for(const _0x28a84b of this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]){const _0x3e9142=_0x3df02c(_0x31d1f0(0x146),_0x28a84b,_0x1bff31);if(_0x3e9142){if(_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x153)]){this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]=_0x28a84b;const _0x2f12d9=_0x52c3a5[_0x31d1f0(0x153)][_0x31d1f0(0x137)](!0x0);_0x5162eb(_0x2f12d9,_0x31d1f0(0x146),_0x28a84b),_0x5162eb(_0x2f12d9,_0x31d1f0(0x150),_0x31d1f0(0x12d)),_0xc8de78(_0x3e9142,_0x2f12d9);}else _0x439441(_0x3e9142);}}if(_0x446fa5(_0x31d1f0(0x119),null,_0x1bff31)[_0x31d1f0(0x125)](_0x12cce5=>{const _0x9c0be9=_0x31d1f0,_0x42ca80=_0x525c91(_0x12cce5,_0x9c0be9(0x119)),_0x14e54a=_0x3df02c(_0x9c0be9(0x146),_0x42ca80,_0x1bff31);_0x14e54a&&_0x2ab1e6(_0x14e54a,_0x12cce5);}),_0x446fa5(_0x31d1f0(0x146),_0x31d1f0(0x133),_0x1bff31)[_0x31d1f0(0x125)](_0x38dbe0=>{const _0x10619f=_0x31d1f0,_0xc0b3b3=this[_0x10619f(0x11a)](_0x38dbe0);_0x5162eb(_0x38dbe0,_0x10619f(0x146),_0xc0b3b3),this[_0x10619f(0x129)][_0x10619f(0x139)][_0x10619f(0x123)](_0xc0b3b3);}),this[_0x31d1f0(0x130)](_0x1bff31),_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x142)]&&this[_0x31d1f0(0x141)](_0x1bff31,_0x52c3a5[_0x31d1f0(0x143)]||0x0),_0x52c3a5&&_0x52c3a5[_0x31d1f0(0x11e)]&&this[_0x31d1f0(0x129)][_0x31d1f0(0x154)]){let _0x4a678a=_0x3df02c(_0x31d1f0(0x146),this[_0x31d1f0(0x129)][_0x31d1f0(0x154)],_0x1bff31);for(;_0x4a678a;)_0x1af6a1(_0x4a678a),_0x4a678a=_0x4a678a[_0x31d1f0(0x115)];}return{'parsedContent':_0x1bff31,'newNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x139)],'modifiedNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x14a)],'removedNodeIds':this[_0x31d1f0(0x129)][_0x31d1f0(0x147)]};}[_0x27d873(0x13e)](_0x3d9d02,_0x345405,_0x35e6c2){const _0x4da595=_0x27d873;for(const _0xfaf1d6 of _0x345405){const _0x19cf1f=this[_0x4da595(0x11a)](_0xfaf1d6);_0x5162eb(_0xfaf1d6,_0x4da595(0x146),_0x19cf1f),this[_0x4da595(0x129)][_0x4da595(0x139)][_0x4da595(0x123)](_0x19cf1f),this[_0x4da595(0x129)][_0x4da595(0x154)]=_0x19cf1f;}const _0x5aa42b=_0x4da595(0x13c)===_0x35e6c2||_0x4da595(0x112)===_0x35e6c2?_0x345405[_0x4da595(0x122)]():_0x345405;for(const _0x59368e of _0x5aa42b)_0x50da4c(_0x3d9d02,_0x59368e,_0x35e6c2);}[_0x27d873(0x11c)](_0x7341b5,_0x1ddc45){const _0x3d2f74=_0x27d873;if(!_0x7341b5)return;if(_0x43918b(_0x7341b5,_0x1ddc45))return;const _0x1d9f56=this[_0x3d2f74(0x11a)](_0x7341b5);_0x5162eb(_0x1ddc45,_0x3d2f74(0x146),_0x1d9f56),this[_0x3d2f74(0x129)][_0x3d2f74(0x14a)][_0x3d2f74(0x123)](_0x1d9f56),this[_0x3d2f74(0x129)][_0x3d2f74(0x154)]=_0x1d9f56,_0xc8de78(_0x7341b5,_0x1ddc45[_0x3d2f74(0x137)](!0x0));}[_0x27d873(0x10e)](_0x37efa3,_0x30b2e8,_0xe43a48){const _0x2004d9=_0x27d873,_0xd14895=this[_0x2004d9(0x120)](_0x37efa3,!0x1);if(_0xd14895){const _0x18290b=this[_0x2004d9(0x124)](_0xd14895),_0x27a60c=_0x3df02c(_0x2004d9(0x146),_0x18290b,_0xe43a48);if(_0x27a60c)return[_0x27a60c,_0x2004d9(0x112)];this[_0x2004d9(0x129)][_0x2004d9(0x138)][_0x2004d9(0x123)](_0x18290b);}const _0x5c9ea7=this[_0x2004d9(0x121)](_0x37efa3,!0x1);if(_0x5c9ea7){const _0x2a6ddf=this[_0x2004d9(0x124)](_0x5c9ea7),_0x5cb79a=_0x3df02c(_0x2004d9(0x146),_0x2a6ddf,_0xe43a48);if(_0x5cb79a)return[_0x5cb79a,_0x2004d9(0x11b)];this[_0x2004d9(0x129)][_0x2004d9(0x138)][_0x2004d9(0x123)](_0x2a6ddf);}return _0x30b2e8?_0x37efa3[_0x2004d9(0x140)]?this[_0x2004d9(0x116)](_0x37efa3,_0xe43a48):[_0xe43a48[_0x2004d9(0x14d)][_0xe43a48[_0x2004d9(0x14d)][_0x2004d9(0x13a)]-0x1],_0x2004d9(0x112)]:[_0xe43a48[_0x2004d9(0x14d)][0x0],_0x2004d9(0x11b)];}[_0x27d873(0x116)](_0x148143,_0xd3a266){const _0x156e9e=_0x27d873,_0x3ada10=[],_0x452474=this[_0x156e9e(0x120)](_0x148143,!0x0);if(_0x452474){const _0x276321=this[_0x156e9e(0x124)](_0x452474),_0x468edd=_0x3df02c(_0x156e9e(0x146),_0x276321,_0xd3a266);_0x468edd&&_0x3ada10[_0x156e9e(0x123)]([_0x468edd,_0x156e9e(0x112)]);}const _0x281d8d=this[_0x156e9e(0x121)](_0x148143,!0x0);if(_0x281d8d){const _0x198a70=this[_0x156e9e(0x124)](_0x281d8d),_0x208257=_0x3df02c(_0x156e9e(0x146),_0x198a70,_0xd3a266);_0x208257&&_0x3ada10[_0x156e9e(0x123)]([_0x208257,_0x156e9e(0x11b)]);}if(_0x3ada10[_0x156e9e(0x13a)]>0x1)return _0x1e2f30(_0x3ada10[0x0][0x0])<=_0x1e2f30(_0x3ada10[0x1][0x0])?_0x3ada10[0x0]:_0x3ada10[0x1];return 0x1===_0x3ada10[_0x156e9e(0x13a)]?_0x3ada10[0x0]:[_0xd3a266[_0x156e9e(0x11f)],_0x156e9e(0x112)];}[_0x27d873(0x121)](_0x2f8eca,_0x5770ab){const _0x169d48=_0x27d873;let _0x25c383=_0x2f8eca[_0x169d48(0x140)],_0x628f49=null,_0x33d5be=!0x1;for(;_0x25c383;){if(_0x35a90c(_0x25c383)){if(this[_0x169d48(0x127)](_0x25c383)&&(_0x628f49=_0x25c383),this[_0x169d48(0x135)](_0x25c383)&&_0x5770ab&&!_0x33d5be){_0x33d5be=!0x0,_0x25c383=_0x25c383[_0x169d48(0x140)];continue;}break;}const _0x1f4c3f=_0x525c91(_0x25c383,_0x169d48(0x146));if(_0x1f4c3f&&_0x169d48(0x133)!==_0x1f4c3f&&this[_0x169d48(0x13d)][_0x169d48(0x111)](_0x1f4c3f)){_0x628f49=_0x25c383;break;}_0x25c383=_0x25c383[_0x169d48(0x140)];}return _0x628f49;}[_0x27d873(0x120)](_0x2604de,_0x10683d){const _0xf5f40d=_0x27d873;let _0x4e1853=_0x2604de[_0xf5f40d(0x114)],_0x2c385d=null,_0x4e4501=!0x1;for(;_0x4e1853;){if(_0x35a90c(_0x4e1853)){if(this[_0xf5f40d(0x127)](_0x4e1853)&&(_0x2c385d=_0x4e1853),this[_0xf5f40d(0x135)](_0x4e1853)&&_0x10683d&&!_0x4e4501){_0x4e4501=!0x0,_0x4e1853=_0x4e1853[_0xf5f40d(0x114)];continue;}break;}const _0x3b83f6=_0x525c91(_0x4e1853,_0xf5f40d(0x146));if(_0x3b83f6&&_0xf5f40d(0x133)!==_0x3b83f6&&this[_0xf5f40d(0x13d)][_0xf5f40d(0x111)](_0x3b83f6)){_0x2c385d=_0x4e1853;break;}_0x4e1853=_0x4e1853[_0xf5f40d(0x114)];}return _0x2c385d;}[_0x27d873(0x134)](_0x3a5428){const _0x14144c=_0x27d873;_0x1f7f26(_0x3a5428)&&_0x446fa5(_0x14144c(0x146),null,_0x3a5428)[_0x14144c(0x125)](_0x272788=>{const _0x48f097=_0x14144c;if(this[_0x48f097(0x10f)](_0x272788)&&!this[_0x48f097(0x14f)](_0x272788)){const _0xf25c3a=_0x525c91(_0x272788,_0x48f097(0x146));_0x5162eb(_0x272788,_0x48f097(0x119),_0xf25c3a),_0x5162eb(_0x272788,_0x48f097(0x146),null);}});}[_0x27d873(0x124)](_0x5768c9){const _0x4101b8=_0x27d873;if(!_0x5768c9)return null;if(_0x1f7f26(_0x5768c9))return _0x525c91(_0x5768c9,_0x4101b8(0x146));if(_0x35a90c(_0x5768c9)){const _0x4f9a8b=_0x47894f(_0x5768c9)[_0x4101b8(0x132)](/removed[\s*-]data-id="([^"]+)"/);if(_0x4f9a8b&&_0x4f9a8b[0x1])return _0x4f9a8b[0x1];}return null;}[_0x27d873(0x13b)](_0xa41e40){const _0x4561fb=_0x27d873;if(_0x35a90c(_0xa41e40)){const _0x9eb67c=_0x47894f(_0xa41e40)[_0x4561fb(0x132)](/removed[\s*-]data-id="([^"]+)"/);_0x9eb67c&&_0x9eb67c[0x1]&&this[_0x4561fb(0x129)][_0x4561fb(0x147)][_0x4561fb(0x123)](_0x9eb67c[0x1]);}}[_0x27d873(0x11a)](_0xd6705c){const _0x262be5=_0x27d873;return this[_0x262be5(0x10f)](_0xd6705c)?_0x525c91(_0xd6705c,_0x262be5(0x146)):this[_0x262be5(0x151)]();}[_0x27d873(0x130)](_0x4d64db){const _0x169c0e=_0x27d873;_0x1f2974(_0x4d64db)[_0x169c0e(0x128)](_0x4d3416=>this[_0x169c0e(0x127)](_0x4d3416)||this[_0x169c0e(0x135)](_0x4d3416))[_0x169c0e(0x125)](_0x31f3d0=>{_0x439441(_0x31f3d0);});}[_0x27d873(0x136)](_0x312159){const _0xa93a4f=_0x27d873,_0x5c37b0=_0x312159[_0xa93a4f(0x14d)],_0x347199=_0x5c37b0[_0x5c37b0[_0xa93a4f(0x13a)]-0x1];_0x347199&&_0x1f7f26(_0x347199)&&_0x5162eb(_0x347199,_0xa93a4f(0x11d),_0xa93a4f(0x12d));}[_0x27d873(0x141)](_0xa3f65c,_0xc9d81e){const _0x16de38=_0x27d873,_0x2d61c3=_0x3df02c(_0x16de38(0x11d),_0x16de38(0x12d),_0xa3f65c);if(!_0x2d61c3)return;const _0x3efb19=_0x364bcd(_0x2d61c3)[_0x16de38(0x131)](0x0,-0x1),_0xd58dd2=_0x3efb19[_0x16de38(0x13a)];let _0x3f126b=_0x2d61c3;if(_0xd58dd2>_0xc9d81e){let _0x32bd47=_0xd58dd2,_0x187589=null;for(;_0x32bd47>_0xc9d81e&&_0x32bd47>=0x0;)_0x32bd47--,_0x187589=_0x3efb19[_0x32bd47];_0x187589&&(_0x3f126b=_0x187589,_0x5162eb(_0x2d61c3,_0x16de38(0x11d),null),_0x5162eb(_0x187589,_0x16de38(0x11d),_0x16de38(0x12d)));}else{if(_0xd58dd2<_0xc9d81e){let _0x4b0b20=_0xd58dd2,_0xb6b55=_0x2d61c3;for(;_0x4b0b20<_0xc9d81e;){const _0x13a7ed=_0xb6b55[_0x16de38(0x14d)][_0x16de38(0x128)](_0x19e2fc=>_0x1f7f26(_0x19e2fc));if(0x0===_0x13a7ed[_0x16de38(0x13a)])break;_0x4b0b20++,_0xb6b55=_0x13a7ed[_0x13a7ed[_0x16de38(0x13a)]-0x1];}_0xb6b55&&(_0x3f126b=_0xb6b55,_0x5162eb(_0x2d61c3,_0x16de38(0x11d),null),_0x5162eb(_0xb6b55,_0x16de38(0x11d),_0x16de38(0x12d)));}}let _0x270dd6=_0x3f126b;for(;_0x270dd6;){for(;_0x270dd6[_0x16de38(0x140)];)_0x270dd6=_0x270dd6[_0x16de38(0x140)],_0x1f7f26(_0x270dd6)&&_0x5162eb(_0x270dd6,_0x16de38(0x11d),_0x16de38(0x12d));_0x270dd6=_0x270dd6[_0x16de38(0x115)];}}[_0x27d873(0x113)](_0x5c5e58){const _0x2ebc95=_0x27d873;return Boolean(_0x2ebc95(0x133)===_0x525c91(_0x5c5e58,_0x2ebc95(0x146)));}[_0x27d873(0x10f)](_0xf173a4){const _0x54f335=_0x27d873;return Boolean((_0x525c91(_0xf173a4,_0x54f335(0x146))||'')[_0x54f335(0x13a)]>0x0&&_0x54f335(0x133)!==_0x525c91(_0xf173a4,_0x54f335(0x146)));}[_0x27d873(0x127)](_0x1ac6cc){const _0x1d3fcd=_0x27d873;return!!_0x1ac6cc&&Boolean(_0x35a90c(_0x1ac6cc)&&_0x47894f(_0x1ac6cc)[_0x1d3fcd(0x132)](/removed[\s*-]data-id="[^"]+"/));}[_0x27d873(0x14f)](_0x8f2d48){const _0x53dfc9=_0x27d873;let _0x2e9eed=_0x8f2d48[_0x53dfc9(0x115)];for(;_0x2e9eed;){if(_0x525c91(_0x2e9eed,_0x53dfc9(0x119)))return!0x0;_0x2e9eed=_0x2e9eed[_0x53dfc9(0x115)];}return!0x1;}[_0x27d873(0x135)](_0x404944){const _0x3c8310=_0x27d873;return Boolean(_0x35a90c(_0x404944)&&_0x47894f(_0x404944)[_0x3c8310(0x132)](/\s*existing[\s*-](content|document)\s*/g));}}
23
+ function _0x53aa(_0x2274d2,_0x422aa0){const _0x3f8a92=_0x3f8a();return _0x53aa=function(_0x53aab3,_0x11fbfb){_0x53aab3=_0x53aab3-0xd1;let _0x3fc47f=_0x3f8a92[_0x53aab3];return _0x3fc47f;},_0x53aa(_0x2274d2,_0x422aa0);}function _0x3f8a(){const _0x586948=['12SUmNjv','7829000uyMcAN','previousSibling','data-unstable','8450071XxewfB','_markWrappedElements','data-removed','_existingDataIds','_generateUid','4429707oKzKYP','length','markUnstableElements','childNodes','_getNodeDataId','_markLastTagElementUnstable','new-element','includes','markUnstableElementsDepth','_isDelNode','_findNextElementWithDataId','_getUid','lastTouchedId','nodeType','3956900SoiFVm','has','_findFallbackReferenceNode','_isExistingContentComment','_touchedNodesState','replaceRemovedWith','merge','forEach','parentNode','reverse','trim','map','splice','74138RMRetE','newIds','slice','_isNewNode','removedIds','_insertNodes','_findPrevElementWithDataId','697380RzUUnw','afterbegin','_markUnstableElements','push','filter','_storeDeletedElementIds','27144225ejaFbX','cloneNode','cutAfterLastChange','afterend','true','19SMaYHk','_findReferenceNode','_removeSpecialComments','_hasWrappedParent','_replaceNode','indexOf','invalidIds','lastChild','modifiedIds','data-wrapped-id','nextSibling','from','data-id','_isExistingNode','match','beforebegin'];_0x3f8a=function(){return _0x586948;};return _0x3f8a();}const _0xa22a5b=_0x53aa;(function(_0x3eb6d4,_0x16e4b1){const _0x5bd760=_0x53aa,_0x43449e=_0x3eb6d4();while(!![]){try{const _0xb1a8ea=parseInt(_0x5bd760(0x10f))/0x1*(parseInt(_0x5bd760(0xfd))/0x2)+-parseInt(_0x5bd760(0xe2))/0x3+-parseInt(_0x5bd760(0xf0))/0x4+-parseInt(_0x5bd760(0x104))/0x5*(parseInt(_0x5bd760(0xd9))/0x6)+-parseInt(_0x5bd760(0xdd))/0x7+parseInt(_0x5bd760(0xda))/0x8+parseInt(_0x5bd760(0x10a))/0x9;if(_0xb1a8ea===_0x16e4b1)break;else _0x43449e['push'](_0x43449e['shift']());}catch(_0x52d12f){_0x43449e['push'](_0x43449e['shift']());}}}(_0x3f8a,0xb6636));import{ObservableMixin as _0x490767,uid as _0x7dcf7b}from'ckeditor5/src/utils.js';import{findAllByAttribute as _0x115cec,findByAttribute as _0x1c323b,getAttribute as _0x2946a5,isComment as _0x382de5,isTag as _0x3ecd8b,insertElement as _0x30f484,moveElement as _0x47b18b,removeElement as _0x3b07f4,replaceElement as _0x558d5d,serialize as _0x3f0e33,setAttribute as _0x10261f,clone as _0x49bbac,findAllComments as _0x12afb2,getParents as _0x51bd01,getNodeNestingLevel as _0x1dbfa5,areNodesSame as _0x138cb6,removeElementsAfter as _0x4d89bf}from'../utils/htmlparser.js';export class AIResponseApplier extends/* #__PURE__ -- @preserve */
24
+ _0x490767(){[_0xa22a5b(0xe1)];[_0xa22a5b(0xf4)]={'newIds':[],'modifiedIds':[],'removedIds':[],'invalidIds':[],'lastTouchedId':null};[_0xa22a5b(0xe0)]=new Set();constructor(_0x58b109){const _0x342a66=_0xa22a5b;super(),this[_0x342a66(0xe1)]=_0x58b109||_0x7dcf7b;}[_0xa22a5b(0xf6)](_0x490dce,_0x5ae247,_0x3c16e2){const _0x4bbf83=_0xa22a5b,_0x179318=_0x49bbac(_0x490dce);if(0x0===_0x5ae247[_0x4bbf83(0xe5)][_0x4bbf83(0xe3)]){const _0x51f110=[];return _0x115cec(_0x4bbf83(0xd5),_0x4bbf83(0xe8),_0x179318)[_0x4bbf83(0xf7)](_0x21c979=>{const _0x1c33bc=_0x4bbf83,_0x18881a=this[_0x1c33bc(0xe1)]();_0x10261f(_0x21c979,_0x1c33bc(0xd5),_0x18881a),_0x51f110[_0x1c33bc(0x107)](_0x18881a);}),this[_0x4bbf83(0x111)](_0x179318),{'parsedContent':_0x179318,'newNodeIds':_0x51f110,'modifiedNodeIds':[],'removedNodeIds':[]};}_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xe4)]&&this[_0x4bbf83(0xe7)](_0x179318),this[_0x4bbf83(0xf4)][_0x4bbf83(0xfe)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0x115)]=[],this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]=null,this[_0x4bbf83(0xe0)]=new Set(_0x115cec(_0x4bbf83(0xd5),null,_0x5ae247)[_0x4bbf83(0xfb)](_0x387b9e=>_0x2946a5(_0x387b9e,_0x4bbf83(0xd5)))[_0x4bbf83(0x108)](_0x4469eb=>!!_0x4469eb));let _0x177788=-0x1,_0x10bfb3=!0x1;const _0x2b4137=_0x179318[_0x4bbf83(0xe5)],_0x4bf22c=Array[_0x4bbf83(0xd4)](_0x2b4137)[_0x4bbf83(0x108)](_0x1c15bb=>!(0x3===_0x1c15bb[_0x4bbf83(0xef)]&&''===_0x3f0e33(_0x1c15bb)[_0x4bbf83(0xfa)]())),_0x18a477=_0x4bf22c[_0x4bbf83(0xe3)];for(let _0x50f75c=0x0;_0x50f75c<_0x18a477;_0x50f75c++){const _0xd352da=_0x4bf22c[_0x50f75c],_0x14ced5=_0x4bf22c[_0x50f75c+0x1];if(this[_0x4bbf83(0x100)](_0xd352da)){if(-0x1===_0x177788&&(_0x177788=_0x50f75c),this[_0x4bbf83(0xde)](_0xd352da),!this[_0x4bbf83(0x100)](_0x14ced5)){const [_0xb54e33,_0x2c3a19]=this[_0x4bbf83(0x110)](_0xd352da,_0x10bfb3,_0x5ae247);if(_0xb54e33){const _0x2a529f=Array[_0x4bbf83(0xd4)](_0x4bf22c)[_0x4bbf83(0xff)](_0x177788,_0x50f75c+0x1);this[_0x4bbf83(0x102)](_0xb54e33,_0x2a529f,_0x2c3a19),_0x177788=-0x1;}}}else{if(this[_0x4bbf83(0xf3)](_0xd352da))_0x10bfb3=!0x0;else{if(this[_0x4bbf83(0xd6)](_0xd352da)){const _0x5236f3=_0x2946a5(_0xd352da,_0x4bbf83(0xd5));if(_0x5236f3&&this[_0x4bbf83(0xe0)][_0x4bbf83(0xf1)](_0x5236f3)){const _0x384d18=_0x1c323b(_0x4bbf83(0xd5),_0x5236f3,_0x5ae247);this[_0x4bbf83(0x113)](_0x384d18,_0xd352da);}if(this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0xe9)](_0x5236f3)){const _0xd6d8e8=this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0x114)](_0x5236f3);this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)][_0x4bbf83(0xfc)](_0xd6d8e8,0x1);}}else{if(this[_0x4bbf83(0xeb)](_0xd352da)){const _0xdbb8cb=_0x2946a5(_0xd352da,_0x4bbf83(0xd5));this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)][_0x4bbf83(0xe9)](_0xdbb8cb)||this[_0x4bbf83(0x109)](_0xd352da);}}}}}for(const _0x587721 of this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]){const _0x5a78a9=_0x1c323b(_0x4bbf83(0xd5),_0x587721,_0x5ae247);if(_0x5a78a9){if(_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xf5)]){this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]=_0x587721;const _0x175c90=_0x3c16e2[_0x4bbf83(0xf5)][_0x4bbf83(0x10b)](!0x0);_0x10261f(_0x175c90,_0x4bbf83(0xd5),_0x587721),_0x10261f(_0x175c90,_0x4bbf83(0xdf),_0x4bbf83(0x10e)),_0x558d5d(_0x5a78a9,_0x175c90);}else _0x3b07f4(_0x5a78a9);}}if(_0x115cec(_0x4bbf83(0xd2),null,_0x5ae247)[_0x4bbf83(0xf7)](_0x382f01=>{const _0x905d08=_0x4bbf83,_0x2f52ee=_0x2946a5(_0x382f01,_0x905d08(0xd2)),_0x2e2c08=_0x1c323b(_0x905d08(0xd5),_0x2f52ee,_0x5ae247);_0x2e2c08&&_0x47b18b(_0x2e2c08,_0x382f01);}),_0x115cec(_0x4bbf83(0xd5),_0x4bbf83(0xe8),_0x5ae247)[_0x4bbf83(0xf7)](_0x330c67=>{const _0x4d79f4=_0x4bbf83,_0x52ff50=this[_0x4d79f4(0xed)](_0x330c67);_0x10261f(_0x330c67,_0x4d79f4(0xd5),_0x52ff50),this[_0x4d79f4(0xf4)][_0x4d79f4(0xfe)][_0x4d79f4(0x107)](_0x52ff50);}),this[_0x4bbf83(0x111)](_0x5ae247),_0x3c16e2&&_0x3c16e2[_0x4bbf83(0xe4)]&&this[_0x4bbf83(0x106)](_0x5ae247,_0x3c16e2[_0x4bbf83(0xea)]||0x0),_0x3c16e2&&_0x3c16e2[_0x4bbf83(0x10c)]&&this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)]){let _0x59a869=_0x1c323b(_0x4bbf83(0xd5),this[_0x4bbf83(0xf4)][_0x4bbf83(0xee)],_0x5ae247);for(;_0x59a869;)_0x4d89bf(_0x59a869),_0x59a869=_0x59a869[_0x4bbf83(0xf8)];}return{'parsedContent':_0x5ae247,'newNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0xfe)],'modifiedNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0xd1)],'removedNodeIds':this[_0x4bbf83(0xf4)][_0x4bbf83(0x101)]};}[_0xa22a5b(0x102)](_0x6c6579,_0x35baac,_0x4dde69){const _0x5bb32c=_0xa22a5b;for(const _0x29538a of _0x35baac){const _0x19d83b=this[_0x5bb32c(0xed)](_0x29538a);_0x10261f(_0x29538a,_0x5bb32c(0xd5),_0x19d83b),this[_0x5bb32c(0xf4)][_0x5bb32c(0xfe)][_0x5bb32c(0x107)](_0x19d83b),this[_0x5bb32c(0xf4)][_0x5bb32c(0xee)]=_0x19d83b;}const _0x2f1eff=_0x5bb32c(0x105)===_0x4dde69||_0x5bb32c(0x10d)===_0x4dde69?_0x35baac[_0x5bb32c(0xf9)]():_0x35baac;for(const _0x42a73d of _0x2f1eff)_0x30f484(_0x6c6579,_0x42a73d,_0x4dde69);}[_0xa22a5b(0x113)](_0x275061,_0x129644){const _0x51baa3=_0xa22a5b;if(!_0x275061)return;if(_0x138cb6(_0x275061,_0x129644))return;const _0x2e6535=this[_0x51baa3(0xed)](_0x275061);_0x10261f(_0x129644,_0x51baa3(0xd5),_0x2e6535),this[_0x51baa3(0xf4)][_0x51baa3(0xd1)][_0x51baa3(0x107)](_0x2e6535),this[_0x51baa3(0xf4)][_0x51baa3(0xee)]=_0x2e6535,_0x558d5d(_0x275061,_0x129644[_0x51baa3(0x10b)](!0x0));}[_0xa22a5b(0x110)](_0x1522ec,_0x52c129,_0x2481c0){const _0x55975e=_0xa22a5b,_0x5d836e=this[_0x55975e(0x103)](_0x1522ec,!0x1);if(_0x5d836e){const _0x22fc22=this[_0x55975e(0xe6)](_0x5d836e),_0x284420=_0x1c323b(_0x55975e(0xd5),_0x22fc22,_0x2481c0);if(_0x284420)return[_0x284420,_0x55975e(0x10d)];this[_0x55975e(0xf4)][_0x55975e(0x115)][_0x55975e(0x107)](_0x22fc22);}const _0x52cd80=this[_0x55975e(0xec)](_0x1522ec,!0x1);if(_0x52cd80){const _0x258c07=this[_0x55975e(0xe6)](_0x52cd80),_0x5abec6=_0x1c323b(_0x55975e(0xd5),_0x258c07,_0x2481c0);if(_0x5abec6)return[_0x5abec6,_0x55975e(0xd8)];this[_0x55975e(0xf4)][_0x55975e(0x115)][_0x55975e(0x107)](_0x258c07);}return _0x52c129?_0x1522ec[_0x55975e(0xd3)]?this[_0x55975e(0xf2)](_0x1522ec,_0x2481c0):[_0x2481c0[_0x55975e(0xe5)][_0x2481c0[_0x55975e(0xe5)][_0x55975e(0xe3)]-0x1],_0x55975e(0x10d)]:[_0x2481c0[_0x55975e(0xe5)][0x0],_0x55975e(0xd8)];}[_0xa22a5b(0xf2)](_0x5e0c9f,_0x391cd5){const _0x4c58fb=_0xa22a5b,_0x1e5dec=[],_0x4a956b=this[_0x4c58fb(0x103)](_0x5e0c9f,!0x0);if(_0x4a956b){const _0x5cbd86=this[_0x4c58fb(0xe6)](_0x4a956b),_0x11eb9f=_0x1c323b(_0x4c58fb(0xd5),_0x5cbd86,_0x391cd5);_0x11eb9f&&_0x1e5dec[_0x4c58fb(0x107)]([_0x11eb9f,_0x4c58fb(0x10d)]);}const _0x411958=this[_0x4c58fb(0xec)](_0x5e0c9f,!0x0);if(_0x411958){const _0x7764da=this[_0x4c58fb(0xe6)](_0x411958),_0x18245a=_0x1c323b(_0x4c58fb(0xd5),_0x7764da,_0x391cd5);_0x18245a&&_0x1e5dec[_0x4c58fb(0x107)]([_0x18245a,_0x4c58fb(0xd8)]);}if(_0x1e5dec[_0x4c58fb(0xe3)]>0x1)return _0x1dbfa5(_0x1e5dec[0x0][0x0])<=_0x1dbfa5(_0x1e5dec[0x1][0x0])?_0x1e5dec[0x0]:_0x1e5dec[0x1];return 0x1===_0x1e5dec[_0x4c58fb(0xe3)]?_0x1e5dec[0x0]:[_0x391cd5[_0x4c58fb(0x116)],_0x4c58fb(0x10d)];}[_0xa22a5b(0xec)](_0x28f726,_0x15c3d1){const _0x36f2ca=_0xa22a5b;let _0x17b31d=_0x28f726[_0x36f2ca(0xd3)],_0x569d0e=null,_0x12d9a3=!0x1;for(;_0x17b31d;){if(_0x382de5(_0x17b31d)){if(this[_0x36f2ca(0xeb)](_0x17b31d)&&(_0x569d0e=_0x17b31d),this[_0x36f2ca(0xf3)](_0x17b31d)&&_0x15c3d1&&!_0x12d9a3){_0x12d9a3=!0x0,_0x17b31d=_0x17b31d[_0x36f2ca(0xd3)];continue;}break;}const _0xfce0dd=_0x2946a5(_0x17b31d,_0x36f2ca(0xd5));if(_0xfce0dd&&_0x36f2ca(0xe8)!==_0xfce0dd&&this[_0x36f2ca(0xe0)][_0x36f2ca(0xf1)](_0xfce0dd)){_0x569d0e=_0x17b31d;break;}_0x17b31d=_0x17b31d[_0x36f2ca(0xd3)];}return _0x569d0e;}[_0xa22a5b(0x103)](_0x959158,_0x42b730){const _0x20f3c7=_0xa22a5b;let _0x2330f5=_0x959158[_0x20f3c7(0xdb)],_0x524425=null,_0xb54807=!0x1;for(;_0x2330f5;){if(_0x382de5(_0x2330f5)){if(this[_0x20f3c7(0xeb)](_0x2330f5)&&(_0x524425=_0x2330f5),this[_0x20f3c7(0xf3)](_0x2330f5)&&_0x42b730&&!_0xb54807){_0xb54807=!0x0,_0x2330f5=_0x2330f5[_0x20f3c7(0xdb)];continue;}break;}const _0x78a01=_0x2946a5(_0x2330f5,_0x20f3c7(0xd5));if(_0x78a01&&_0x20f3c7(0xe8)!==_0x78a01&&this[_0x20f3c7(0xe0)][_0x20f3c7(0xf1)](_0x78a01)){_0x524425=_0x2330f5;break;}_0x2330f5=_0x2330f5[_0x20f3c7(0xdb)];}return _0x524425;}[_0xa22a5b(0xde)](_0x5dc72f){const _0x53b41b=_0xa22a5b;_0x3ecd8b(_0x5dc72f)&&_0x115cec(_0x53b41b(0xd5),null,_0x5dc72f)[_0x53b41b(0xf7)](_0x431d7e=>{const _0x407507=_0x53b41b;if(this[_0x407507(0xd6)](_0x431d7e)&&!this[_0x407507(0x112)](_0x431d7e)){const _0x1332ca=_0x2946a5(_0x431d7e,_0x407507(0xd5));_0x10261f(_0x431d7e,_0x407507(0xd2),_0x1332ca),_0x10261f(_0x431d7e,_0x407507(0xd5),null);}});}[_0xa22a5b(0xe6)](_0x4f4e9b){const _0x21469=_0xa22a5b;if(!_0x4f4e9b)return null;if(_0x3ecd8b(_0x4f4e9b))return _0x2946a5(_0x4f4e9b,_0x21469(0xd5));if(_0x382de5(_0x4f4e9b)){const _0x46ad58=_0x3f0e33(_0x4f4e9b)[_0x21469(0xd7)](/removed[\s*-]data-id="([^"]+)"/);if(_0x46ad58&&_0x46ad58[0x1])return _0x46ad58[0x1];}return null;}[_0xa22a5b(0x109)](_0x65d643){const _0x2e0b28=_0xa22a5b;if(_0x382de5(_0x65d643)){const _0x2dcfce=_0x3f0e33(_0x65d643)[_0x2e0b28(0xd7)](/removed[\s*-]data-id="([^"]+)"/);_0x2dcfce&&_0x2dcfce[0x1]&&this[_0x2e0b28(0xf4)][_0x2e0b28(0x101)][_0x2e0b28(0x107)](_0x2dcfce[0x1]);}}[_0xa22a5b(0xed)](_0x2c448f){const _0x2982f4=_0xa22a5b;return this[_0x2982f4(0xd6)](_0x2c448f)?_0x2946a5(_0x2c448f,_0x2982f4(0xd5)):this[_0x2982f4(0xe1)]();}[_0xa22a5b(0x111)](_0x47a7b6){const _0x54f61f=_0xa22a5b;_0x12afb2(_0x47a7b6)[_0x54f61f(0x108)](_0x40a913=>this[_0x54f61f(0xeb)](_0x40a913)||this[_0x54f61f(0xf3)](_0x40a913))[_0x54f61f(0xf7)](_0x5b43ab=>{_0x3b07f4(_0x5b43ab);});}[_0xa22a5b(0xe7)](_0x198a93){const _0x590241=_0xa22a5b,_0x55771f=_0x198a93[_0x590241(0xe5)],_0x4e867d=_0x55771f[_0x55771f[_0x590241(0xe3)]-0x1];_0x4e867d&&_0x3ecd8b(_0x4e867d)&&_0x10261f(_0x4e867d,_0x590241(0xdc),_0x590241(0x10e));}[_0xa22a5b(0x106)](_0x3aca38,_0x607ad5){const _0x3b4d36=_0xa22a5b,_0x1436a0=_0x1c323b(_0x3b4d36(0xdc),_0x3b4d36(0x10e),_0x3aca38);if(!_0x1436a0)return;const _0x39bb70=_0x51bd01(_0x1436a0)[_0x3b4d36(0xff)](0x0,-0x1),_0x48bcaa=_0x39bb70[_0x3b4d36(0xe3)];let _0x36d20c=_0x1436a0;if(_0x48bcaa>_0x607ad5){let _0x3cfb16=_0x48bcaa,_0x21005a=null;for(;_0x3cfb16>_0x607ad5&&_0x3cfb16>=0x0;)_0x3cfb16--,_0x21005a=_0x39bb70[_0x3cfb16];_0x21005a&&(_0x36d20c=_0x21005a,_0x10261f(_0x1436a0,_0x3b4d36(0xdc),null),_0x10261f(_0x21005a,_0x3b4d36(0xdc),_0x3b4d36(0x10e)));}else{if(_0x48bcaa<_0x607ad5){let _0x358d85=_0x48bcaa,_0x914add=_0x1436a0;for(;_0x358d85<_0x607ad5;){const _0x5dcdff=_0x914add[_0x3b4d36(0xe5)][_0x3b4d36(0x108)](_0x7b725b=>_0x3ecd8b(_0x7b725b));if(0x0===_0x5dcdff[_0x3b4d36(0xe3)])break;_0x358d85++,_0x914add=_0x5dcdff[_0x5dcdff[_0x3b4d36(0xe3)]-0x1];}_0x914add&&(_0x36d20c=_0x914add,_0x10261f(_0x1436a0,_0x3b4d36(0xdc),null),_0x10261f(_0x914add,_0x3b4d36(0xdc),_0x3b4d36(0x10e)));}}let _0x52750f=_0x36d20c;for(;_0x52750f;){for(;_0x52750f[_0x3b4d36(0xd3)];)_0x52750f=_0x52750f[_0x3b4d36(0xd3)],_0x3ecd8b(_0x52750f)&&_0x10261f(_0x52750f,_0x3b4d36(0xdc),_0x3b4d36(0x10e));_0x52750f=_0x52750f[_0x3b4d36(0xf8)];}}[_0xa22a5b(0x100)](_0x433cda){const _0x3ad879=_0xa22a5b;return Boolean(_0x3ad879(0xe8)===_0x2946a5(_0x433cda,_0x3ad879(0xd5)));}[_0xa22a5b(0xd6)](_0x3d5b9d){const _0x584166=_0xa22a5b;return Boolean((_0x2946a5(_0x3d5b9d,_0x584166(0xd5))||'')[_0x584166(0xe3)]>0x0&&_0x584166(0xe8)!==_0x2946a5(_0x3d5b9d,_0x584166(0xd5)));}[_0xa22a5b(0xeb)](_0x3c4835){const _0x4cdc2c=_0xa22a5b;return!!_0x3c4835&&Boolean(_0x382de5(_0x3c4835)&&_0x3f0e33(_0x3c4835)[_0x4cdc2c(0xd7)](/removed[\s*-]data-id="[^"]+"/));}[_0xa22a5b(0x112)](_0xfa9151){const _0xdc09a=_0xa22a5b;let _0x7e4161=_0xfa9151[_0xdc09a(0xf8)];for(;_0x7e4161;){if(_0x2946a5(_0x7e4161,_0xdc09a(0xd2)))return!0x0;_0x7e4161=_0x7e4161[_0xdc09a(0xf8)];}return!0x1;}[_0xa22a5b(0xf3)](_0x5aae87){const _0x100f5e=_0xa22a5b;return Boolean(_0x382de5(_0x5aae87)&&_0x3f0e33(_0x5aae87)[_0x100f5e(0xd7)](/\s*existing[\s*-](content|document)\s*/g));}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d539e=_0x3ba8;(function(_0x44504f,_0x5a3943){const _0x558acc=_0x3ba8,_0x4fa238=_0x44504f();while(!![]){try{const _0x4e3d69=-parseInt(_0x558acc(0x18f))/0x1*(-parseInt(_0x558acc(0x18b))/0x2)+parseInt(_0x558acc(0x198))/0x3+-parseInt(_0x558acc(0x197))/0x4+-parseInt(_0x558acc(0x195))/0x5+-parseInt(_0x558acc(0x18d))/0x6*(parseInt(_0x558acc(0x189))/0x7)+-parseInt(_0x558acc(0x190))/0x8*(-parseInt(_0x558acc(0x194))/0x9)+parseInt(_0x558acc(0x18a))/0xa;if(_0x4e3d69===_0x5a3943)break;else _0x4fa238['push'](_0x4fa238['shift']());}catch(_0x485a05){_0x4fa238['push'](_0x4fa238['shift']());}}}(_0x5619,0x89601));function _0x3ba8(_0x3bdbf2,_0x2cd50b){const _0x5619b3=_0x5619();return _0x3ba8=function(_0x3ba835,_0x48dcb2){_0x3ba835=_0x3ba835-0x188;let _0x58e53e=_0x5619b3[_0x3ba835];return _0x58e53e;},_0x3ba8(_0x3bdbf2,_0x2cd50b);}import{ObservableMixin as _0x2cc92b}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x5d0b3b}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x1a7986}from'../utils/htmlparser.js';function _0x5619(){const _0x18ffd7=['8vRVzOj','</dummy>','children','_m2html','1041327NkZDIh','2428985MRTHmz','parse','3473316jMXAmM','3161562gIDPwb','<dummy>','convertMarkdownToHTML','_parseHTML','98gpxWTD','6542200scOgCb','5604VgrSUu','replace','376824XkbOMF','parseAndNormalizeHTML','347oAcolH'];_0x5619=function(){return _0x18ffd7;};return _0x5619();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
- _0x2cc92b(){[_0x4d539e(0x193)];constructor(){const _0x876ccf=_0x4d539e;super(),this[_0x876ccf(0x193)]=new _0x5d0b3b();}[_0x4d539e(0x19a)](_0x49769d){const _0x149de7=_0x4d539e,_0x5bef65=this[_0x149de7(0x193)][_0x149de7(0x196)](_0x49769d);return this[_0x149de7(0x18e)](_0x5bef65);}[_0x4d539e(0x18e)](_0x169c7b){const _0x1d9cec=_0x4d539e;return this[_0x1d9cec(0x188)](_0x169c7b);}[_0x4d539e(0x188)](_0x5b6e18){const _0x4f0a81=_0x4d539e,_0x21a56e=_0x5b6e18[_0x4f0a81(0x18c)](/^\t+/gm,'\x20')[_0x4f0a81(0x18c)](/\n*/g,'')[_0x4f0a81(0x18c)](/\s+/g,'\x20')[_0x4f0a81(0x18c)](/<[^>]*?$/g,''),_0x425256=_0x1a7986(_0x4f0a81(0x199)+_0x21a56e+_0x4f0a81(0x191));return _0x425256[_0x4f0a81(0x192)]=_0x425256[_0x4f0a81(0x192)][0x0][_0x4f0a81(0x192)],_0x425256;}}
23
+ const _0x64a5ec=_0x51e2;(function(_0x354d25,_0x5d6167){const _0x246c99=_0x51e2,_0x519747=_0x354d25();while(!![]){try{const _0x2e87a6=-parseInt(_0x246c99(0x16d))/0x1*(-parseInt(_0x246c99(0x16b))/0x2)+parseInt(_0x246c99(0x163))/0x3*(-parseInt(_0x246c99(0x177))/0x4)+-parseInt(_0x246c99(0x175))/0x5*(-parseInt(_0x246c99(0x173))/0x6)+-parseInt(_0x246c99(0x165))/0x7*(-parseInt(_0x246c99(0x167))/0x8)+parseInt(_0x246c99(0x166))/0x9+parseInt(_0x246c99(0x174))/0xa*(parseInt(_0x246c99(0x171))/0xb)+-parseInt(_0x246c99(0x16f))/0xc;if(_0x2e87a6===_0x5d6167)break;else _0x519747['push'](_0x519747['shift']());}catch(_0x247945){_0x519747['push'](_0x519747['shift']());}}}(_0x294d,0x343df));function _0x51e2(_0x8d61b7,_0x5096f6){const _0x294dc0=_0x294d();return _0x51e2=function(_0x51e2c6,_0x1e10b0){_0x51e2c6=_0x51e2c6-0x163;let _0x3e36d9=_0x294dc0[_0x51e2c6];return _0x3e36d9;},_0x51e2(_0x8d61b7,_0x5096f6);}import{ObservableMixin as _0x47ca7d}from'ckeditor5/src/utils.js';import{MarkdownGfmMdToHtml as _0x2f3919}from'@ckeditor/ckeditor5-markdown-gfm';import{parse as _0x7486a6}from'../utils/htmlparser.js';function _0x294d(){const _0x4dd219=['460SmTzyD','_parseHTML','52NavLgg','78114JBkFyi','children','1799dEnuAz','1041480afSQYh','11496cHLdMI','<dummy>','convertMarkdownToHTML','_m2html','34978Xvpgfl','parse','9ZJEvkB','parseAndNormalizeHTML','7899216vtprrI','replace','2027377MzMhjc','</dummy>','25044uQbYgx','10UICPZz'];_0x294d=function(){return _0x4dd219;};return _0x294d();}export class AIResponseParser extends/* #__PURE__ -- @preserve */
24
+ _0x47ca7d(){[_0x64a5ec(0x16a)];constructor(){const _0x333d57=_0x64a5ec;super(),this[_0x333d57(0x16a)]=new _0x2f3919();}[_0x64a5ec(0x169)](_0x4b7486){const _0x2f0433=_0x64a5ec,_0x5774b0=this[_0x2f0433(0x16a)][_0x2f0433(0x16c)](_0x4b7486);return this[_0x2f0433(0x16e)](_0x5774b0);}[_0x64a5ec(0x16e)](_0x2c6616){const _0x39c9f8=_0x64a5ec;return this[_0x39c9f8(0x176)](_0x2c6616);}[_0x64a5ec(0x176)](_0x557363){const _0x2402d8=_0x64a5ec,_0x1e416b=_0x557363[_0x2402d8(0x170)](/^\t+/gm,'\x20')[_0x2402d8(0x170)](/\n*/g,'')[_0x2402d8(0x170)](/\s+/g,'\x20')[_0x2402d8(0x170)](/<[^>]*?$/g,''),_0x10403f=_0x7486a6(_0x2402d8(0x168)+_0x1e416b+_0x2402d8(0x172));return _0x10403f[_0x2402d8(0x164)]=_0x10403f[_0x2402d8(0x164)][0x0][_0x2402d8(0x164)],_0x10403f;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2ded57,_0x18c046){var _0x5d5369=_0x3919,_0x399878=_0x2ded57();while(!![]){try{var _0x4dc73d=-parseInt(_0x5d5369(0xf9))/0x1*(parseInt(_0x5d5369(0xff))/0x2)+parseInt(_0x5d5369(0xf8))/0x3+-parseInt(_0x5d5369(0xfb))/0x4+parseInt(_0x5d5369(0xf3))/0x5*(-parseInt(_0x5d5369(0xf7))/0x6)+-parseInt(_0x5d5369(0x100))/0x7*(parseInt(_0x5d5369(0xf4))/0x8)+parseInt(_0x5d5369(0xfa))/0x9*(parseInt(_0x5d5369(0xfe))/0xa)+parseInt(_0x5d5369(0xfd))/0xb;if(_0x4dc73d===_0x18c046)break;else _0x399878['push'](_0x399878['shift']());}catch(_0x31369e){_0x399878['push'](_0x399878['shift']());}}}(_0xdd96,0x8ee6e));import{View as _0xbc72cd}from'ckeditor5/src/ui.js';import{getTranslation as _0x5cd472}from'../../aicore/utils/common-translations.js';function _0x3919(_0x1ab5a4,_0x75cbe9){var _0xdd9674=_0xdd96();return _0x3919=function(_0x391941,_0xaafada){_0x391941=_0x391941-0xf2;var _0x4989b6=_0xdd9674[_0x391941];return _0x4989b6;},_0x3919(_0x1ab5a4,_0x75cbe9);}function _0xdd96(){var _0x193de0=['30663083IBKEUq','70FcQFGd','264AxMZAB','5388446AiuNxI','div','AI_DISCLAIMER_TEXT','20ujLVyz','8AMVveE','setTemplate','ck-ai-disclaimer__content','863592CVQVZu','1173246aymngl','2966egiDOr','352953ArtYsY','4523240ODyAha','ck-ai-disclaimer'];_0xdd96=function(){return _0x193de0;};return _0xdd96();}export class AIDisclaimerView extends _0xbc72cd{constructor(_0x49da6b){var _0x316cb3=_0x3919;super(_0x49da6b),this[_0x316cb3(0xf5)]({'tag':_0x316cb3(0x101),'attributes':{'class':['ck',_0x316cb3(0xfc)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x316cb3(0xf6)]},'children':[{'text':_0x5cd472(_0x49da6b,_0x316cb3(0xf2))}]}]});}}
23
+ function _0x1253(_0x4b2c24,_0x5cb17e){var _0x44ac9a=_0x44ac();return _0x1253=function(_0x125335,_0x306e4c){_0x125335=_0x125335-0x1a8;var _0x4a500d=_0x44ac9a[_0x125335];return _0x4a500d;},_0x1253(_0x4b2c24,_0x5cb17e);}(function(_0x31f910,_0xf520cd){var _0x5a78e9=_0x1253,_0x1f6a6f=_0x31f910();while(!![]){try{var _0x2cd0f3=parseInt(_0x5a78e9(0x1ac))/0x1*(-parseInt(_0x5a78e9(0x1b0))/0x2)+parseInt(_0x5a78e9(0x1b5))/0x3+parseInt(_0x5a78e9(0x1b4))/0x4+parseInt(_0x5a78e9(0x1a9))/0x5*(parseInt(_0x5a78e9(0x1b6))/0x6)+-parseInt(_0x5a78e9(0x1a8))/0x7+parseInt(_0x5a78e9(0x1b1))/0x8*(parseInt(_0x5a78e9(0x1ae))/0x9)+-parseInt(_0x5a78e9(0x1af))/0xa;if(_0x2cd0f3===_0xf520cd)break;else _0x1f6a6f['push'](_0x1f6a6f['shift']());}catch(_0x2bd5e2){_0x1f6a6f['push'](_0x1f6a6f['shift']());}}}(_0x44ac,0x2b145));import{View as _0x4f0c32}from'ckeditor5/src/ui.js';import{getTranslation as _0x585c5e}from'../../aicore/utils/common-translations.js';export class AIDisclaimerView extends _0x4f0c32{constructor(_0x3237d3){var _0x4fa570=_0x1253;super(_0x3237d3),this[_0x4fa570(0x1aa)]({'tag':_0x4fa570(0x1b2),'attributes':{'class':['ck',_0x4fa570(0x1b3)]},'children':[{'tag':'p','attributes':{'class':['ck',_0x4fa570(0x1ab)]},'children':[{'text':_0x585c5e(_0x3237d3,_0x4fa570(0x1ad))}]}]});}}function _0x44ac(){var _0x8ae2ae=['120qqaNmU','div','ck-ai-disclaimer','914512ZrUtRL','785868gbfXTV','733602pQsDRb','2122568wlVVPE','10EiBErh','setTemplate','ck-ai-disclaimer__content','53084HVlgrA','AI_DISCLAIMER_TEXT','201807DbNmle','4325340qmDXac','6VIHGBx'];_0x44ac=function(){return _0x8ae2ae;};return _0x44ac();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d84fe=_0x4b50;(function(_0x199848,_0x41ec31){const _0x4a006c=_0x4b50,_0x5abfc1=_0x199848();while(!![]){try{const _0xb9ed65=-parseInt(_0x4a006c(0xe2))/0x1*(parseInt(_0x4a006c(0xc6))/0x2)+parseInt(_0x4a006c(0xd3))/0x3*(-parseInt(_0x4a006c(0xc8))/0x4)+parseInt(_0x4a006c(0xd7))/0x5+parseInt(_0x4a006c(0xdc))/0x6+-parseInt(_0x4a006c(0xdd))/0x7+-parseInt(_0x4a006c(0xd5))/0x8+parseInt(_0x4a006c(0xcf))/0x9;if(_0xb9ed65===_0x41ec31)break;else _0x5abfc1['push'](_0x5abfc1['shift']());}catch(_0x610fea){_0x5abfc1['push'](_0x5abfc1['shift']());}}}(_0x7c7d,0x3419f));import{View as _0x43fea4}from'ckeditor5/src/ui.js';function _0x4b50(_0x3daae5,_0x4537e9){const _0x7c7d2c=_0x7c7d();return _0x4b50=function(_0x4b503b,_0x4cbd4d){_0x4b503b=_0x4b503b-0xc1;let _0x44ba37=_0x7c7d2c[_0x4b503b];return _0x44ba37;},_0x4b50(_0x3daae5,_0x4537e9);}function _0x7c7d(){const _0x36116c=['1173864veiPgD','2456069qODilq','72px','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','left','100%','218921wAHwJO','44px','setTemplate','88px','150px','24px','250px','ck-ai-skeleton__item','attributes','center','height','div','2hsZjHh','right','66532mIQNwj','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','_createSkeletonItems','tag','140px','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','map','10045854RqyaTG',';\x20height:\x20','128px','width:\x20','51CYUGWJ','width','2055024jLvybV','40px','54920YgqKNT','ck-ai-skeleton','fill','class','align'];_0x7c7d=function(){return _0x36116c;};return _0x7c7d();}export class AISkeletonView extends _0x43fea4{constructor(_0xc7a0e4,_0x2f5ea8){const _0x34b5ad=_0x4b50;super(_0xc7a0e4),this[_0x34b5ad(0xe4)]({'tag':_0x34b5ad(0xc5),'attributes':{'class':['ck',_0x34b5ad(0xd8)]},'children':this[_0x34b5ad(0xca)](_0x2f5ea8)});}[_0x4d84fe(0xca)](_0xfee46f){const _0x478064=_0x4d84fe,_0x5468f5=['ck',_0x478064(0xc1)];return _0xfee46f[_0x478064(0xce)](_0xf3bbc0=>{const _0x3da108=_0x478064;let _0x5377c5='';switch(_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xdb)]){case _0x3da108(0xc7):_0x5377c5=_0x3da108(0xcd);break;case _0x3da108(0xc3):_0x5377c5=_0x3da108(0xdf);break;case _0x3da108(0xe0):_0x5377c5=_0x3da108(0xc9);}return{'tag':_0xf3bbc0[_0x3da108(0xcb)],'attributes':{'class':[..._0x5468f5,_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xda)]?_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xda)]:''],'style':_0x3da108(0xd2)+_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xd4)]+_0x3da108(0xd0)+_0xf3bbc0[_0x3da108(0xc2)][_0x3da108(0xc4)]+';'+_0x5377c5}};});}}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xde),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe8),'height':_0x4d84fe(0xd6),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xe5),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe6),'height':_0x4d84fe(0xd6),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xcc),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe8),'height':_0x4d84fe(0xd6),'align':_0x4d84fe(0xc7)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xe5),'align':_0x4d84fe(0xc7)}}],'aiHistory':ta(0x5,_0x4d84fe(0xe1),_0x4d84fe(0xe3),_0x4d84fe(0xc7)),'aiChatResources':ta(0x8,_0x4d84fe(0xe1),_0x4d84fe(0xe7),_0x4d84fe(0xc7)),'aiReviewChecks':[{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xd1),'height':_0x4d84fe(0xe7),'align':_0x4d84fe(0xe0)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xe1),'height':_0x4d84fe(0xe7),'align':_0x4d84fe(0xe0)}},{'tag':_0x4d84fe(0xc5),'attributes':{'width':_0x4d84fe(0xd1),'height':_0x4d84fe(0xe7),'align':_0x4d84fe(0xe0)}}]};function ta(_0x5ea904,_0x5eb169,_0x331ae5,_0x5d9a44){const _0x28f566=_0x4d84fe;return new Array(_0x5ea904)[_0x28f566(0xd9)](null)[_0x28f566(0xce)](()=>({'tag':_0x28f566(0xc5),'attributes':{'width':_0x5eb169,'height':_0x331ae5,'align':_0x5d9a44}}));}
23
+ const _0x3393b3=_0x3f91;(function(_0x539b62,_0x57e8fe){const _0x206cd9=_0x3f91,_0x1a27e1=_0x539b62();while(!![]){try{const _0x17a1dd=-parseInt(_0x206cd9(0x11c))/0x1+-parseInt(_0x206cd9(0x11a))/0x2+parseInt(_0x206cd9(0x113))/0x3*(-parseInt(_0x206cd9(0x12d))/0x4)+parseInt(_0x206cd9(0x10f))/0x5*(-parseInt(_0x206cd9(0x12b))/0x6)+parseInt(_0x206cd9(0x10a))/0x7*(-parseInt(_0x206cd9(0x10c))/0x8)+-parseInt(_0x206cd9(0x111))/0x9+parseInt(_0x206cd9(0x12c))/0xa*(parseInt(_0x206cd9(0x130))/0xb);if(_0x17a1dd===_0x57e8fe)break;else _0x1a27e1['push'](_0x1a27e1['shift']());}catch(_0x5db242){_0x1a27e1['push'](_0x1a27e1['shift']());}}}(_0x2b16,0x2902b));import{View as _0x30e207}from'ckeditor5/src/ui.js';export class AISkeletonView extends _0x30e207{constructor(_0x1f4dc5,_0x437219){const _0x72be6e=_0x3f91;super(_0x1f4dc5),this[_0x72be6e(0x118)]({'tag':_0x72be6e(0x11d),'attributes':{'class':['ck',_0x72be6e(0x127)]},'children':this[_0x72be6e(0x11b)](_0x437219)});}[_0x3393b3(0x11b)](_0x444b91){const _0x4378d9=_0x3393b3,_0x3dfc3d=['ck',_0x4378d9(0x125)];return _0x444b91[_0x4378d9(0x12a)](_0x1fd294=>{const _0x1b7a7a=_0x4378d9;let _0x22329d='';switch(_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x11e)]){case _0x1b7a7a(0x133):_0x22329d=_0x1b7a7a(0x112);break;case _0x1b7a7a(0x121):_0x22329d=_0x1b7a7a(0x131);break;case _0x1b7a7a(0x128):_0x22329d=_0x1b7a7a(0x11f);}return{'tag':_0x1fd294[_0x1b7a7a(0x124)],'attributes':{'class':[..._0x3dfc3d,_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x116)]?_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x116)]:''],'style':_0x1b7a7a(0x12e)+_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x126)]+_0x1b7a7a(0x12f)+_0x1fd294[_0x1b7a7a(0x10b)][_0x1b7a7a(0x117)]+';'+_0x22329d}};});}}function _0x2b16(){const _0x3f4e25=['map','6VQWEVF','115630MWYZAQ','756cKtGIo','width:\x20',';\x20height:\x20','1463BnnasE','margin-left:\x20auto;\x20margin-right:\x20auto;\x20text-align:\x20center;','88px','right','7CRpAGR','attributes','1938760pYyDWQ','128px','72px','1616445iHGaOR','250px','2404728CYeCGw','margin-left:\x20auto;\x20margin-right:\x200;\x20text-align:\x20right;','2280FRNyiV','24px','140px','class','height','setTemplate','44px','572212DOFQBO','_createSkeletonItems','107328dVHEnC','div','align','margin-left:\x200;\x20margin-right:\x20auto;\x20text-align:\x20left;','150px','center','100%','fill','tag','ck-ai-skeleton__item','width','ck-ai-skeleton','left','40px'];_0x2b16=function(){return _0x3f4e25;};return _0x2b16();}function _0x3f91(_0x5682e8,_0x2319f7){const _0x2b16dd=_0x2b16();return _0x3f91=function(_0x3f9140,_0x3f463e){_0x3f9140=_0x3f9140-0x10a;let _0x4d691b=_0x2b16dd[_0x3f9140];return _0x4d691b;},_0x3f91(_0x5682e8,_0x2319f7);}export const SKELETON_DEFINITIONS={'aiFeed':[{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x10e),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x110),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x132),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x120),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x115),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x110),'height':_0x3393b3(0x129),'align':_0x3393b3(0x133)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x132),'align':_0x3393b3(0x133)}}],'aiHistory':ta(0x5,_0x3393b3(0x122),_0x3393b3(0x119),_0x3393b3(0x133)),'aiChatResources':ta(0x8,_0x3393b3(0x122),_0x3393b3(0x114),_0x3393b3(0x133)),'aiReviewChecks':[{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x10d),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x122),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}},{'tag':_0x3393b3(0x11d),'attributes':{'width':_0x3393b3(0x10d),'height':_0x3393b3(0x114),'align':_0x3393b3(0x128)}}]};function ta(_0x4d8605,_0x16a61b,_0x1f1a21,_0xc1cd4e){const _0x406358=_0x3393b3;return new Array(_0x4d8605)[_0x406358(0x123)](null)[_0x406358(0x12a)](()=>({'tag':_0x406358(0x11d),'attributes':{'width':_0x16a61b,'height':_0x1f1a21,'align':_0xc1cd4e}}));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1cd0(_0x1a8aec,_0x184b47){const _0x41d0f1=_0x41d0();return _0x1cd0=function(_0x1cd08b,_0x10791a){_0x1cd08b=_0x1cd08b-0xc9;let _0x2efd2e=_0x41d0f1[_0x1cd08b];return _0x2efd2e;},_0x1cd0(_0x1a8aec,_0x184b47);}(function(_0x6a802d,_0xdd78a5){const _0x278872=_0x1cd0,_0x98582b=_0x6a802d();while(!![]){try{const _0x4d0c25=-parseInt(_0x278872(0xd0))/0x1*(-parseInt(_0x278872(0xd3))/0x2)+parseInt(_0x278872(0xcd))/0x3+parseInt(_0x278872(0xca))/0x4+parseInt(_0x278872(0xcb))/0x5*(parseInt(_0x278872(0xce))/0x6)+-parseInt(_0x278872(0xcf))/0x7+parseInt(_0x278872(0xd5))/0x8+-parseInt(_0x278872(0xc9))/0x9;if(_0x4d0c25===_0xdd78a5)break;else _0x98582b['push'](_0x98582b['shift']());}catch(_0x70965c){_0x98582b['push'](_0x98582b['shift']());}}}(_0x41d0,0xa0570));function _0x41d0(){const _0x18e7a4=['ck-ai-spinner','7384QBTAOl','8867961xpbKnm','4547532sqSgSW','265HfhXVt','extendTemplate','1260012ASCvQe','20940uUaZaG','1009939onQXMd','21789lYokhz','span','ck-ai-spinner_','4tArUfE'];_0x41d0=function(){return _0x18e7a4;};return _0x41d0();}import{SpinnerView as _0x38a7de}from'ckeditor5/src/ui.js';export class AISpinnerView extends _0x38a7de{constructor(_0x40b9cd=void 0x0){const _0x53c45c=_0x1cd0;super();const _0xae3162=_0x40b9cd?_0x53c45c(0xd2)+_0x40b9cd:'';this[_0x53c45c(0xcc)]({'tag':_0x53c45c(0xd1),'attributes':{'class':[_0x53c45c(0xd4),_0xae3162]}});}}
23
+ function _0x44b3(_0x2314c5,_0x41d668){const _0x509cdb=_0x509c();return _0x44b3=function(_0x44b3eb,_0x17abb9){_0x44b3eb=_0x44b3eb-0x19a;let _0xcae72c=_0x509cdb[_0x44b3eb];return _0xcae72c;},_0x44b3(_0x2314c5,_0x41d668);}(function(_0x393138,_0x54da2d){const _0x4aa19f=_0x44b3,_0x3bcaab=_0x393138();while(!![]){try{const _0xc5de45=-parseInt(_0x4aa19f(0x1a6))/0x1*(-parseInt(_0x4aa19f(0x19a))/0x2)+parseInt(_0x4aa19f(0x1a2))/0x3*(-parseInt(_0x4aa19f(0x1a8))/0x4)+parseInt(_0x4aa19f(0x19e))/0x5*(-parseInt(_0x4aa19f(0x19b))/0x6)+parseInt(_0x4aa19f(0x1a7))/0x7*(parseInt(_0x4aa19f(0x1a9))/0x8)+-parseInt(_0x4aa19f(0x19f))/0x9+-parseInt(_0x4aa19f(0x19c))/0xa*(parseInt(_0x4aa19f(0x1a0))/0xb)+parseInt(_0x4aa19f(0x1a5))/0xc;if(_0xc5de45===_0x54da2d)break;else _0x3bcaab['push'](_0x3bcaab['shift']());}catch(_0x5cb9a2){_0x3bcaab['push'](_0x3bcaab['shift']());}}}(_0x509c,0xb7e20));import{SpinnerView as _0x3ba110}from'ckeditor5/src/ui.js';function _0x509c(){const _0xf997cf=['20907804TEaopL','1OGgrgt','126UYrrsc','106844wUXVSA','159096HeJPyR','434046glHBwB','207168Nndoiz','6454010ZJVBLF','extendTemplate','110DMunJF','951147kpJoHD','11ojWoDM','ck-ai-spinner','6UyJRhL','span','ck-ai-spinner_'];_0x509c=function(){return _0xf997cf;};return _0x509c();}export class AISpinnerView extends _0x3ba110{constructor(_0x48efc9=void 0x0){const _0xf55904=_0x44b3;super();const _0x385012=_0x48efc9?_0xf55904(0x1a4)+_0x48efc9:'';this[_0xf55904(0x19d)]({'tag':_0xf55904(0x1a3),'attributes':{'class':[_0xf55904(0x1a1),_0x385012]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x45b8(_0x4c95ae,_0x764fe1){const _0x54df91=_0x54df();return _0x45b8=function(_0x45b875,_0x4c7160){_0x45b875=_0x45b875-0xd4;let _0x1b5b8f=_0x54df91[_0x45b875];return _0x1b5b8f;},_0x45b8(_0x4c95ae,_0x764fe1);}const _0x3ba4a1=_0x45b8;function _0x54df(){const _0x4f83e3=['_setupRatingButtons','toggleShowChanges','_setupShowChangesButton','AI_MINI_TOOLBAR_DISLIKE','extendTemplate','AI_SUGGESTION_BUTTON_SHOW_CHANGES','777872yjGWZg','AI_MINI_TOOLBAR_LIKE','ck-ai-mini-toolbar-copy-button__check-mark','ck-ai-mini-toolbar','like','copyButton','class','addMany','ck-ai-mini-toolbar-copy-button','_setupCopyButton','_config','items','195768KmHXfK','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','locale','full','showCopy','showDislike','505kkaHpK','AI_MINI_TOOLBAR_COPY','bind','11725uZCMBk','likeButton','dislike','ck-ai-mini-toolbar\x20ck-hidden','438645pdneXn','2QhwhEl','showChanges','isLoading','50DrCuai','dislikeButton','4812YHMCjW','isEnabled','fire','set','children','showLike','808sdKuoX','showChangesButton','942rSUHRk','customView','execute','284992IfbVoe','isOn','737RZYfoZ','length','add'];_0x54df=function(){return _0x4f83e3;};return _0x54df();}(function(_0x2f18e0,_0x5368fb){const _0x54dbc4=_0x45b8,_0x366304=_0x2f18e0();while(!![]){try{const _0x522900=parseInt(_0x54dbc4(0x106))/0x1+-parseInt(_0x54dbc4(0xf6))/0x2*(-parseInt(_0x54dbc4(0xf5))/0x3)+parseInt(_0x54dbc4(0x101))/0x4*(parseInt(_0x54dbc4(0xee))/0x5)+-parseInt(_0x54dbc4(0x103))/0x6*(parseInt(_0x54dbc4(0xf1))/0x7)+parseInt(_0x54dbc4(0xdc))/0x8+-parseInt(_0x54dbc4(0xe8))/0x9*(parseInt(_0x54dbc4(0xf9))/0xa)+parseInt(_0x54dbc4(0x108))/0xb*(-parseInt(_0x54dbc4(0xfb))/0xc);if(_0x522900===_0x5368fb)break;else _0x366304['push'](_0x366304['shift']());}catch(_0x1d2c5f){_0x366304['push'](_0x366304['shift']());}}}(_0x54df,0x24ae1));import{ButtonView as _0x4ebd06,IconView as _0x12a960,ToolbarView as _0x20e121}from'ckeditor5/src/ui.js';import{IconCheck as _0x329a53,IconCopy as _0x32e420,IconShowChangesOff as _0x25864e,IconShowChangesOn as _0x16ab3b,IconThumbDown as _0x3186aa,IconThumbUp as _0x1f8fda}from'@ckeditor/ckeditor5-icons';import{getTranslation as _0x5ca314}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x20e121{[_0x3ba4a1(0xe1)];[_0x3ba4a1(0xf2)];[_0x3ba4a1(0xfa)];[_0x3ba4a1(0x102)];[_0x3ba4a1(0xe6)];constructor(_0x533808,_0xfa52ea={},_0x830ea8){const _0x372be6=_0x3ba4a1;super(_0x533808),this[_0x372be6(0xfe)](_0x372be6(0xf8),!0x1),this[_0x372be6(0xe6)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0xfa52ea};const _0x275eef=!(this[_0x372be6(0xe6)][_0x372be6(0xec)]||this[_0x372be6(0xe6)][_0x372be6(0xf7)]||this[_0x372be6(0xe6)][_0x372be6(0x100)]||this[_0x372be6(0xe6)][_0x372be6(0xed)]||this[_0x372be6(0xe6)][_0x372be6(0x104)]?.[_0x372be6(0xd4)]);this[_0x372be6(0xe2)]=_0x275eef?_0x372be6(0xf4):_0x372be6(0xdf),this[_0x372be6(0xe6)][_0x372be6(0xec)]&&(this[_0x372be6(0xe5)](),this[_0x372be6(0xe7)][_0x372be6(0xd5)](this[_0x372be6(0xe1)])),this[_0x372be6(0xe6)][_0x372be6(0xf7)]&&(this[_0x372be6(0xd8)](_0x830ea8),this[_0x372be6(0xe7)][_0x372be6(0xd5)](this[_0x372be6(0x102)])),this[_0x372be6(0xd6)](),this[_0x372be6(0xe6)][_0x372be6(0x100)]&&this[_0x372be6(0xe7)][_0x372be6(0xd5)](this[_0x372be6(0xf2)]),this[_0x372be6(0xe6)][_0x372be6(0xed)]&&this[_0x372be6(0xe7)][_0x372be6(0xd5)](this[_0x372be6(0xfa)]),this[_0x372be6(0xe6)][_0x372be6(0x104)]&&this[_0x372be6(0xe7)][_0x372be6(0xe3)](this[_0x372be6(0xe6)][_0x372be6(0x104)]);}[_0x3ba4a1(0xd6)](){const _0x384ec5=_0x3ba4a1;this[_0x384ec5(0xf2)]=new _0x4ebd06(this[_0x384ec5(0xea)]),this[_0x384ec5(0xf2)][_0x384ec5(0xfe)]({'icon':_0x1f8fda,'label':_0x5ca314(this[_0x384ec5(0xea)],_0x384ec5(0xdd)),'tooltip':!0x0}),this[_0x384ec5(0xf2)][_0x384ec5(0xf0)](_0x384ec5(0xfc))['to'](this,_0x384ec5(0xf8),_0x22d66b=>!_0x22d66b),this[_0x384ec5(0xf2)]['on'](_0x384ec5(0x105),()=>{const _0x5d76d0=_0x384ec5;this[_0x5d76d0(0xfd)](_0x5d76d0(0xe0));}),this[_0x384ec5(0xfa)]=new _0x4ebd06(this[_0x384ec5(0xea)]),this[_0x384ec5(0xfa)][_0x384ec5(0xfe)]({'icon':_0x3186aa,'label':_0x5ca314(this[_0x384ec5(0xea)],_0x384ec5(0xd9)),'tooltip':!0x0}),this[_0x384ec5(0xfa)][_0x384ec5(0xf0)](_0x384ec5(0xfc))['to'](this,_0x384ec5(0xf8),_0x549f2b=>!_0x549f2b),this[_0x384ec5(0xfa)]['on'](_0x384ec5(0x105),()=>{const _0x3e2d4f=_0x384ec5;this[_0x3e2d4f(0xfd)](_0x3e2d4f(0xf3));});}[_0x3ba4a1(0xe5)](){const _0x563df7=_0x3ba4a1;this[_0x563df7(0xe1)]=new _0x4ebd06(this[_0x563df7(0xea)]),this[_0x563df7(0xe1)][_0x563df7(0xfe)]({'icon':_0x32e420,'label':_0x5ca314(this[_0x563df7(0xea)],_0x563df7(0xef)),'class':_0x563df7(0xe4),'tooltip':!0x0}),this[_0x563df7(0xe1)][_0x563df7(0xf0)](_0x563df7(0xfc))['to'](this,_0x563df7(0xf8),_0x23cc77=>!_0x23cc77);const _0x8193f1=new _0x12a960();_0x8193f1[_0x563df7(0xfe)]({'content':_0x329a53}),_0x8193f1[_0x563df7(0xda)]({'attributes':{'class':[_0x563df7(0xde)]}}),this[_0x563df7(0xe1)]['on'](_0x563df7(0x105),()=>{const _0x1f4cc0=_0x563df7;this[_0x1f4cc0(0xe1)][_0x1f4cc0(0xe2)]=_0x1f4cc0(0xe9),setTimeout(()=>{const _0x4e9f0c=_0x1f4cc0;this[_0x4e9f0c(0xe1)][_0x4e9f0c(0xe2)]=_0x4e9f0c(0xe4);},0x7d0);}),this[_0x563df7(0xe1)][_0x563df7(0xff)][_0x563df7(0xd5)](_0x8193f1);}[_0x3ba4a1(0xd8)](_0x2ad2dc){const _0x4ee66d=_0x3ba4a1;this[_0x4ee66d(0x102)]=new _0x4ebd06(this[_0x4ee66d(0xea)]),this[_0x4ee66d(0x102)][_0x4ee66d(0xfe)]({'icon':_0x25864e,'label':_0x5ca314(this[_0x4ee66d(0xea)],_0x4ee66d(0xdb)),'withText':_0x4ee66d(0xeb)==this[_0x4ee66d(0xe6)][_0x4ee66d(0xf7)],'tooltip':_0x4ee66d(0xeb)!=this[_0x4ee66d(0xe6)][_0x4ee66d(0xf7)],'isOn':_0x2ad2dc}),this[_0x4ee66d(0x102)][_0x4ee66d(0xf0)](_0x4ee66d(0xfc))['to'](this,_0x4ee66d(0xf8),_0x221548=>!_0x221548),this[_0x4ee66d(0x102)]['on'](_0x4ee66d(0x105),()=>{const _0x5ef2fd=_0x4ee66d,_0x36788a=!this[_0x5ef2fd(0x102)][_0x5ef2fd(0x107)];this[_0x5ef2fd(0x102)][_0x5ef2fd(0xfe)]({'isOn':_0x36788a,'icon':_0x36788a?_0x16ab3b:_0x25864e}),this[_0x5ef2fd(0xfd)](_0x5ef2fd(0xd7),_0x36788a);});}}
23
+ const _0x483a9e=_0x548f;(function(_0x3481ad,_0x2e9da2){const _0x56f4e5=_0x548f,_0x550a13=_0x3481ad();while(!![]){try{const _0xa55ac5=parseInt(_0x56f4e5(0x156))/0x1*(parseInt(_0x56f4e5(0x16f))/0x2)+parseInt(_0x56f4e5(0x14a))/0x3+parseInt(_0x56f4e5(0x163))/0x4*(parseInt(_0x56f4e5(0x151))/0x5)+parseInt(_0x56f4e5(0x157))/0x6*(-parseInt(_0x56f4e5(0x15f))/0x7)+parseInt(_0x56f4e5(0x164))/0x8*(-parseInt(_0x56f4e5(0x14f))/0x9)+-parseInt(_0x56f4e5(0x13e))/0xa*(-parseInt(_0x56f4e5(0x143))/0xb)+parseInt(_0x56f4e5(0x16a))/0xc*(-parseInt(_0x56f4e5(0x167))/0xd);if(_0xa55ac5===_0x2e9da2)break;else _0x550a13['push'](_0x550a13['shift']());}catch(_0x5ae968){_0x550a13['push'](_0x550a13['shift']());}}}(_0x4da3,0x4bb82));import{ButtonView as _0x2861ce,IconView as _0x5792a3,ToolbarView as _0x1a50c9}from'ckeditor5/src/ui.js';function _0x548f(_0x1e507d,_0x5a70a1){const _0x4da3ab=_0x4da3();return _0x548f=function(_0x548f4c,_0x4c9c19){_0x548f4c=_0x548f4c-0x13e;let _0x32c7b7=_0x4da3ab[_0x548f4c];return _0x32c7b7;},_0x548f(_0x1e507d,_0x5a70a1);}import{IconCheck as _0x2ad410,IconCopy as _0xb8034d,IconShowChangesOff as _0x2b5637,IconShowChangesOn as _0x95678e,IconThumbDown as _0x115cc9,IconThumbUp as _0x57a8dd}from'@ckeditor/ckeditor5-icons';function _0x4da3(){const _0x35aac1=['addMany','AI_MINI_TOOLBAR_LIKE','1352INHaQG','showLike','ck-ai-mini-toolbar-copy-button__check-mark','16980dhappI','dislike','dislikeButton','showChangesButton','ck-ai-mini-toolbar-copy-button\x20ck-ai-mini-toolbar-copy-button_copied','814598VuItRC','ck-ai-mini-toolbar','_setupShowChangesButton','extendTemplate','items','40OqDAOP','isLoading','showCopy','AI_MINI_TOOLBAR_COPY','full','392029LHrUgS','fire','like','ck-ai-mini-toolbar\x20ck-hidden','ck-ai-mini-toolbar-copy-button','children','length','1610880NWvKYH','AI_MINI_TOOLBAR_DISLIKE','locale','_setupRatingButtons','class','650682SpqNJm','likeButton','1005595fcjZGN','toggleShowChanges','execute','set','customView','1yPCpFJ','3156qdCuLn','showDislike','add','_config','isEnabled','AI_SUGGESTION_BUTTON_SHOW_CHANGES','copyButton','_setupCopyButton','4319pUdlCO','bind','showChanges','isOn','4WevogL','56lYMRtO'];_0x4da3=function(){return _0x35aac1;};return _0x4da3();}import{getTranslation as _0x3b1760}from'../../utils/common-translations.js';export class AIMiniToolbarView extends _0x1a50c9{[_0x483a9e(0x15d)];[_0x483a9e(0x150)];[_0x483a9e(0x16c)];[_0x483a9e(0x16d)];[_0x483a9e(0x15a)];constructor(_0x59ae65,_0x46223a={},_0x12e42e){const _0x566d5d=_0x483a9e;super(_0x59ae65),this[_0x566d5d(0x154)](_0x566d5d(0x13f),!0x1),this[_0x566d5d(0x15a)]={'showCopy':!0x1,'showLike':!0x1,'showDislike':!0x1,..._0x46223a};const _0x246087=!(this[_0x566d5d(0x15a)][_0x566d5d(0x140)]||this[_0x566d5d(0x15a)][_0x566d5d(0x161)]||this[_0x566d5d(0x15a)][_0x566d5d(0x168)]||this[_0x566d5d(0x15a)][_0x566d5d(0x158)]||this[_0x566d5d(0x15a)][_0x566d5d(0x155)]?.[_0x566d5d(0x149)]);this[_0x566d5d(0x14e)]=_0x246087?_0x566d5d(0x146):_0x566d5d(0x170),this[_0x566d5d(0x15a)][_0x566d5d(0x140)]&&(this[_0x566d5d(0x15e)](),this[_0x566d5d(0x173)][_0x566d5d(0x159)](this[_0x566d5d(0x15d)])),this[_0x566d5d(0x15a)][_0x566d5d(0x161)]&&(this[_0x566d5d(0x171)](_0x12e42e),this[_0x566d5d(0x173)][_0x566d5d(0x159)](this[_0x566d5d(0x16d)])),this[_0x566d5d(0x14d)](),this[_0x566d5d(0x15a)][_0x566d5d(0x168)]&&this[_0x566d5d(0x173)][_0x566d5d(0x159)](this[_0x566d5d(0x150)]),this[_0x566d5d(0x15a)][_0x566d5d(0x158)]&&this[_0x566d5d(0x173)][_0x566d5d(0x159)](this[_0x566d5d(0x16c)]),this[_0x566d5d(0x15a)][_0x566d5d(0x155)]&&this[_0x566d5d(0x173)][_0x566d5d(0x165)](this[_0x566d5d(0x15a)][_0x566d5d(0x155)]);}[_0x483a9e(0x14d)](){const _0x195173=_0x483a9e;this[_0x195173(0x150)]=new _0x2861ce(this[_0x195173(0x14c)]),this[_0x195173(0x150)][_0x195173(0x154)]({'icon':_0x57a8dd,'label':_0x3b1760(this[_0x195173(0x14c)],_0x195173(0x166)),'tooltip':!0x0}),this[_0x195173(0x150)][_0x195173(0x160)](_0x195173(0x15b))['to'](this,_0x195173(0x13f),_0x3b383c=>!_0x3b383c),this[_0x195173(0x150)]['on'](_0x195173(0x153),()=>{const _0x3a82fe=_0x195173;this[_0x3a82fe(0x144)](_0x3a82fe(0x145));}),this[_0x195173(0x16c)]=new _0x2861ce(this[_0x195173(0x14c)]),this[_0x195173(0x16c)][_0x195173(0x154)]({'icon':_0x115cc9,'label':_0x3b1760(this[_0x195173(0x14c)],_0x195173(0x14b)),'tooltip':!0x0}),this[_0x195173(0x16c)][_0x195173(0x160)](_0x195173(0x15b))['to'](this,_0x195173(0x13f),_0x648a0e=>!_0x648a0e),this[_0x195173(0x16c)]['on'](_0x195173(0x153),()=>{const _0x320044=_0x195173;this[_0x320044(0x144)](_0x320044(0x16b));});}[_0x483a9e(0x15e)](){const _0x1c1aa8=_0x483a9e;this[_0x1c1aa8(0x15d)]=new _0x2861ce(this[_0x1c1aa8(0x14c)]),this[_0x1c1aa8(0x15d)][_0x1c1aa8(0x154)]({'icon':_0xb8034d,'label':_0x3b1760(this[_0x1c1aa8(0x14c)],_0x1c1aa8(0x141)),'class':_0x1c1aa8(0x147),'tooltip':!0x0}),this[_0x1c1aa8(0x15d)][_0x1c1aa8(0x160)](_0x1c1aa8(0x15b))['to'](this,_0x1c1aa8(0x13f),_0x24831a=>!_0x24831a);const _0x38b8f0=new _0x5792a3();_0x38b8f0[_0x1c1aa8(0x154)]({'content':_0x2ad410}),_0x38b8f0[_0x1c1aa8(0x172)]({'attributes':{'class':[_0x1c1aa8(0x169)]}}),this[_0x1c1aa8(0x15d)]['on'](_0x1c1aa8(0x153),()=>{const _0x39589d=_0x1c1aa8;this[_0x39589d(0x15d)][_0x39589d(0x14e)]=_0x39589d(0x16e),setTimeout(()=>{const _0x28f1df=_0x39589d;this[_0x28f1df(0x15d)][_0x28f1df(0x14e)]=_0x28f1df(0x147);},0x7d0);}),this[_0x1c1aa8(0x15d)][_0x1c1aa8(0x148)][_0x1c1aa8(0x159)](_0x38b8f0);}[_0x483a9e(0x171)](_0x503fdf){const _0x2d1dfa=_0x483a9e;this[_0x2d1dfa(0x16d)]=new _0x2861ce(this[_0x2d1dfa(0x14c)]),this[_0x2d1dfa(0x16d)][_0x2d1dfa(0x154)]({'icon':_0x2b5637,'label':_0x3b1760(this[_0x2d1dfa(0x14c)],_0x2d1dfa(0x15c)),'withText':_0x2d1dfa(0x142)==this[_0x2d1dfa(0x15a)][_0x2d1dfa(0x161)],'tooltip':_0x2d1dfa(0x142)!=this[_0x2d1dfa(0x15a)][_0x2d1dfa(0x161)],'isOn':_0x503fdf}),this[_0x2d1dfa(0x16d)][_0x2d1dfa(0x160)](_0x2d1dfa(0x15b))['to'](this,_0x2d1dfa(0x13f),_0x180c41=>!_0x180c41),this[_0x2d1dfa(0x16d)]['on'](_0x2d1dfa(0x153),()=>{const _0x4f1f56=_0x2d1dfa,_0x31338d=!this[_0x4f1f56(0x16d)][_0x4f1f56(0x162)];this[_0x4f1f56(0x16d)][_0x4f1f56(0x154)]({'isOn':_0x31338d,'icon':_0x31338d?_0x95678e:_0x2b5637}),this[_0x4f1f56(0x144)](_0x4f1f56(0x152),_0x31338d);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb80de=_0x3115;(function(_0x4a188f,_0x2afb82){const _0x124af8=_0x3115,_0x546e63=_0x4a188f();while(!![]){try{const _0x204db0=-parseInt(_0x124af8(0x8d))/0x1+-parseInt(_0x124af8(0xb2))/0x2*(parseInt(_0x124af8(0x91))/0x3)+parseInt(_0x124af8(0x95))/0x4+-parseInt(_0x124af8(0xbe))/0x5*(parseInt(_0x124af8(0xbc))/0x6)+parseInt(_0x124af8(0xa8))/0x7*(-parseInt(_0x124af8(0x96))/0x8)+parseInt(_0x124af8(0x98))/0x9*(parseInt(_0x124af8(0x8b))/0xa)+parseInt(_0x124af8(0xaf))/0xb;if(_0x204db0===_0x2afb82)break;else _0x546e63['push'](_0x546e63['shift']());}catch(_0x4a1bb0){_0x546e63['push'](_0x546e63['shift']());}}}(_0x5cf3,0xaa63d));import{View as _0x4c2a9c}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x5a70ea}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0xdd764b}from'../../utils/eventnames.js';import{PromiseQueue as _0x3b27c1}from'../../../aichat/utils/promisequeue.js';function _0x5cf3(){const _0x27b49f=['queueEmptyPromise','AI_SUGGESTION_NO_PARTS_WARNING','toggleHeader','1525258hUFvSi','setTemplate','ck-ai-suggestion__body__content-parts','updateContent','getPartView','enqueue','_cachedContentParts','17798132oKkonl','push','pending','18542IqLpAX','_areActionsDisabled','index','hasChanges','from','first','markAsDone','length','isVisible','forEach','32478MzuZZa','hasNonEmptyParts','325sbtqYY','setContent','hasPendingParts','filter','_availableActions','empty-parts-warning','updateContentParts','_showUnchangedParts','warning','10llWyar','_emptyPartsWarningView','1292182kCfqVd','_updateContentPartsPromiseQueue','findIndex','abort','96GXTkNw','updatePartState','div','add','4807628lNbSKn','8JzTLiX','createCollection','329319KReFlM','state','delegate','set','find','some','locale','_children','addEventListener','partsCount','ck-ai-suggestion__body','AI_SUGGESTION_EMPTY_PART_WARNING','partDefinition'];_0x5cf3=function(){return _0x27b49f;};return _0x5cf3();}import{AIChatFeedErrorItemView as _0x655a9d}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x299179}from'../../utils/common-translations.js';function _0x3115(_0x4ac938,_0x51ae4e){const _0x5cf3b5=_0x5cf3();return _0x3115=function(_0x311557,_0xd8f579){_0x311557=_0x311557-0x87;let _0x13752c=_0x5cf3b5[_0x311557];return _0x13752c;},_0x3115(_0x4ac938,_0x51ae4e);}export class AISuggestionBodyView extends _0x4c2a9c{[_0xb80de(0x9f)];[_0xb80de(0xb3)];[_0xb80de(0x89)];[_0xb80de(0x8e)];[_0xb80de(0x8c)];[_0xb80de(0xc2)];[_0xb80de(0xae)]=[];constructor(_0x263dd5,_0x373217){const _0x2ebc67=_0xb80de;super(_0x263dd5);const {areActionsDisabled:_0x164071,showUnchangedParts:_0xc1eb1,availableActions:_0xe48eca}=_0x373217;this[_0x2ebc67(0xb3)]=_0x164071,this[_0x2ebc67(0x89)]=_0xc1eb1,this[_0x2ebc67(0xc2)]=_0xe48eca,this[_0x2ebc67(0x9b)](_0x2ebc67(0xc0),!0x1),this[_0x2ebc67(0x9f)]=this[_0x2ebc67(0x97)](),this[_0x2ebc67(0x8e)]=new _0x3b27c1(),this[_0x2ebc67(0x8c)]=new _0x655a9d({'id':_0x2ebc67(0x87),'initialContent':_0x299179(_0x263dd5,_0x2ebc67(0xa3)),'level':_0x2ebc67(0x8a)}),this[_0x2ebc67(0x8c)][_0x2ebc67(0xba)]=!0x1,this[_0x2ebc67(0xa9)]({'tag':_0x2ebc67(0x93),'attributes':{'class':['ck',_0x2ebc67(0xa2)]},'children':[{'tag':_0x2ebc67(0x93),'attributes':{'class':['ck',_0x2ebc67(0xaa)]},'children':this[_0x2ebc67(0x9f)]},this[_0x2ebc67(0x8c)]]});}get[_0xb80de(0xa1)](){const _0x551729=_0xb80de;return this[_0x551729(0x9f)][_0x551729(0xb9)];}async[_0xb80de(0x88)]({parts:_0x3d1093,renderingStrategy:_0x11a046,abortSignal:_0x40dfff}){const _0x9881da=_0xb80de;this[_0x9881da(0x9f)][_0x9881da(0xb9)]?_0x3d1093[_0x9881da(0xbb)](_0x301b=>{const _0x252dbf=_0x9881da,_0x3f634f=this[_0x252dbf(0xae)][_0x252dbf(0x8f)](_0x1fa4b2=>_0x1fa4b2[_0x252dbf(0xb4)]==_0x301b[_0x252dbf(0xb4)]);-0x1===_0x3f634f?this[_0x252dbf(0xae)][_0x252dbf(0xb0)](_0x301b):this[_0x252dbf(0xae)][_0x3f634f]=_0x301b;}):this[_0x9881da(0xae)]=_0x3d1093;for(const _0x4deae2 of _0x3d1093[_0x9881da(0xc1)](_0x41a691=>_0x41a691[_0x9881da(0xb5)]))this[_0x9881da(0x8e)][_0x9881da(0xad)](async _0x59509a=>{const _0x226ccb=_0x9881da;let _0x37d2df=this[_0x226ccb(0xac)](_0x4deae2[_0x226ccb(0xb4)]);_0x37d2df||(_0x37d2df=new _0x5a70ea(this[_0x226ccb(0x9e)],{'part':_0x4deae2,'uiIndex':this[_0x226ccb(0x9f)][_0x226ccb(0xb9)]+0x1,'areActionsDisabled':this[_0x226ccb(0xb3)],'availableActions':this[_0x226ccb(0xc2)]}),_0x37d2df[_0x226ccb(0x9a)](..._0xdd764b)['to'](this),this[_0x226ccb(0x9f)][_0x226ccb(0x94)](_0x37d2df),this[_0x226ccb(0xc0)]=!0x0),0x2===this[_0x226ccb(0x9f)][_0x226ccb(0xb9)]&&this[_0x226ccb(0x9f)][_0x226ccb(0xb7)][_0x226ccb(0xa7)](!0x0),_0x37d2df[_0x226ccb(0xa7)](this[_0x226ccb(0x9f)][_0x226ccb(0xb9)]>0x1),await _0x37d2df[_0x226ccb(0xab)]({'part':_0x4deae2,'renderingStrategy':_0x11a046,'showUnchangedParts':this[_0x226ccb(0x89)],'abortSignal':_0x59509a});});return _0x40dfff?.[_0x9881da(0xa0)](_0x9881da(0x90),()=>{const _0x4f71b4=_0x9881da;this[_0x4f71b4(0x8e)][_0x4f71b4(0x90)]();}),this[_0x9881da(0x8e)][_0x9881da(0xa5)];}[_0xb80de(0x92)](_0x3266cc,_0x534b74){const _0x587391=_0xb80de,_0x543178=this[_0x587391(0xac)](_0x3266cc);_0x543178&&(_0x543178[_0x587391(0x99)]=_0x534b74),this[_0x587391(0xc0)]=_0x587391(0xb1)==_0x534b74||Array[_0x587391(0xb6)](this[_0x587391(0x9f)])[_0x587391(0x9d)](_0x3cbff1=>_0x587391(0xb1)==_0x3cbff1[_0x587391(0x99)]);}[_0xb80de(0xac)](_0x47cdd1){const _0x3dcf1f=_0xb80de;return this[_0x3dcf1f(0x9f)][_0x3dcf1f(0x9c)](_0x345886=>_0x345886[_0x3dcf1f(0xa4)][_0x3dcf1f(0xb4)]==_0x47cdd1)??null;}[_0xb80de(0xb8)](){const _0x490ac2=_0xb80de;if(!this[_0x490ac2(0x89)]){const _0x1c1c9e=!this[_0x490ac2(0xae)][_0x490ac2(0x9c)](({hasChanges:_0x443024})=>_0x443024),_0x2a0b93=!!this[_0x490ac2(0xae)][_0x490ac2(0x9c)](({hasChanges:_0x46a77d})=>!_0x46a77d);this[_0x490ac2(0x8c)][_0x490ac2(0xba)]=0x0==this[_0x490ac2(0x9f)][_0x490ac2(0xb9)]||_0x2a0b93,_0x1c1c9e?this[_0x490ac2(0x8c)][_0x490ac2(0xbf)](_0x299179(this[_0x490ac2(0x9e)],_0x490ac2(0xa6))):this[_0x490ac2(0x8c)][_0x490ac2(0xbf)](_0x299179(this[_0x490ac2(0x9e)],_0x490ac2(0xa3)));}}get[_0xb80de(0xbd)](){const _0x4c0539=_0xb80de;return!!this[_0x4c0539(0x9f)][_0x4c0539(0x9c)](_0x30c746=>_0x30c746[_0x4c0539(0xa4)][_0x4c0539(0xb5)]);}}
23
+ const _0x44dd83=_0x1b05;(function(_0x42fd9b,_0x4f2dc9){const _0x1305ce=_0x1b05,_0x10906c=_0x42fd9b();while(!![]){try{const _0x432b25=-parseInt(_0x1305ce(0x113))/0x1+parseInt(_0x1305ce(0x107))/0x2*(parseInt(_0x1305ce(0x12e))/0x3)+-parseInt(_0x1305ce(0x125))/0x4+parseInt(_0x1305ce(0x115))/0x5*(parseInt(_0x1305ce(0x104))/0x6)+parseInt(_0x1305ce(0x12f))/0x7+-parseInt(_0x1305ce(0x123))/0x8+-parseInt(_0x1305ce(0x103))/0x9;if(_0x432b25===_0x4f2dc9)break;else _0x10906c['push'](_0x10906c['shift']());}catch(_0x309be6){_0x10906c['push'](_0x10906c['shift']());}}}(_0x143c,0x259a6));import{View as _0x5a3cfe}from'ckeditor5/src/ui.js';import{AISuggestionBodyViewContentPartView as _0x2b2e1c}from'./aisuggestioncontentpartview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x3ba0bd}from'../../utils/eventnames.js';function _0x1b05(_0x4c4a1d,_0x2f98d0){const _0x143c69=_0x143c();return _0x1b05=function(_0x1b05e2,_0x10df65){_0x1b05e2=_0x1b05e2-0xf8;let _0x1a55f2=_0x143c69[_0x1b05e2];return _0x1a55f2;},_0x1b05(_0x4c4a1d,_0x2f98d0);}import{PromiseQueue as _0x3a5be6}from'../../../aichat/utils/promisequeue.js';function _0x143c(){const _0x22d7d9=['enqueue','div','from','AI_SUGGESTION_NO_PARTS_WARNING','updatePartState','delegate','setContent','locale','pending','157233wFZrjT','first','9985UTRmJs','state','updateContentParts','ck-ai-suggestion__body','isVisible','hasPendingParts','forEach','findIndex','createCollection','warning','partsCount','empty-parts-warning','push','filter','694864FotQoI','add','118164wGMPnd','AI_SUGGESTION_EMPTY_PART_WARNING','_updateContentPartsPromiseQueue','hasChanges','markAsDone','length','find','_cachedContentParts','abort','3zSlmBk','549486ovPoUt','addEventListener','setTemplate','updateContent','partDefinition','some','set','queueEmptyPromise','index','_emptyPartsWarningView','_children','_availableActions','getPartView','_areActionsDisabled','1762740FXChzX','804EmAvwQ','_showUnchangedParts','toggleHeader','554836YGICAs','hasNonEmptyParts','ck-ai-suggestion__body__content-parts'];_0x143c=function(){return _0x22d7d9;};return _0x143c();}import{AIChatFeedErrorItemView as _0x25d0c6}from'../../../aichat/ui/feed/aichatfeederroritemview.js';import{getTranslation as _0x438eae}from'../../utils/common-translations.js';export class AISuggestionBodyView extends _0x5a3cfe{[_0x44dd83(0xff)];[_0x44dd83(0x102)];[_0x44dd83(0x105)];[_0x44dd83(0x127)];[_0x44dd83(0xfe)];[_0x44dd83(0x100)];[_0x44dd83(0x12c)]=[];constructor(_0x1589cc,_0x2b8612){const _0x1a490c=_0x44dd83;super(_0x1589cc);const {areActionsDisabled:_0x3326a2,showUnchangedParts:_0xa36741,availableActions:_0x510f1a}=_0x2b8612;this[_0x1a490c(0x102)]=_0x3326a2,this[_0x1a490c(0x105)]=_0xa36741,this[_0x1a490c(0x100)]=_0x510f1a,this[_0x1a490c(0xfb)](_0x1a490c(0x11a),!0x1),this[_0x1a490c(0xff)]=this[_0x1a490c(0x11d)](),this[_0x1a490c(0x127)]=new _0x3a5be6(),this[_0x1a490c(0xfe)]=new _0x25d0c6({'id':_0x1a490c(0x120),'initialContent':_0x438eae(_0x1589cc,_0x1a490c(0x126)),'level':_0x1a490c(0x11e)}),this[_0x1a490c(0xfe)][_0x1a490c(0x119)]=!0x1,this[_0x1a490c(0x131)]({'tag':_0x1a490c(0x10b),'attributes':{'class':['ck',_0x1a490c(0x118)]},'children':[{'tag':_0x1a490c(0x10b),'attributes':{'class':['ck',_0x1a490c(0x109)]},'children':this[_0x1a490c(0xff)]},this[_0x1a490c(0xfe)]]});}get[_0x44dd83(0x11f)](){const _0x4659a9=_0x44dd83;return this[_0x4659a9(0xff)][_0x4659a9(0x12a)];}async[_0x44dd83(0x117)]({parts:_0x33d5a8,renderingStrategy:_0x32728d,abortSignal:_0x4e190d}){const _0x12d356=_0x44dd83;this[_0x12d356(0xff)][_0x12d356(0x12a)]?_0x33d5a8[_0x12d356(0x11b)](_0x25db2c=>{const _0x51816b=_0x12d356,_0x4d508a=this[_0x51816b(0x12c)][_0x51816b(0x11c)](_0x5b40d8=>_0x5b40d8[_0x51816b(0xfd)]==_0x25db2c[_0x51816b(0xfd)]);-0x1===_0x4d508a?this[_0x51816b(0x12c)][_0x51816b(0x121)](_0x25db2c):this[_0x51816b(0x12c)][_0x4d508a]=_0x25db2c;}):this[_0x12d356(0x12c)]=_0x33d5a8;for(const _0x51811a of _0x33d5a8[_0x12d356(0x122)](_0x4378a3=>_0x4378a3[_0x12d356(0x128)]))this[_0x12d356(0x127)][_0x12d356(0x10a)](async _0x53f320=>{const _0x31f7c=_0x12d356;let _0x3f4b83=this[_0x31f7c(0x101)](_0x51811a[_0x31f7c(0xfd)]);_0x3f4b83||(_0x3f4b83=new _0x2b2e1c(this[_0x31f7c(0x111)],{'part':_0x51811a,'uiIndex':this[_0x31f7c(0xff)][_0x31f7c(0x12a)]+0x1,'areActionsDisabled':this[_0x31f7c(0x102)],'availableActions':this[_0x31f7c(0x100)]}),_0x3f4b83[_0x31f7c(0x10f)](..._0x3ba0bd)['to'](this),this[_0x31f7c(0xff)][_0x31f7c(0x124)](_0x3f4b83),this[_0x31f7c(0x11a)]=!0x0),0x2===this[_0x31f7c(0xff)][_0x31f7c(0x12a)]&&this[_0x31f7c(0xff)][_0x31f7c(0x114)][_0x31f7c(0x106)](!0x0),_0x3f4b83[_0x31f7c(0x106)](this[_0x31f7c(0xff)][_0x31f7c(0x12a)]>0x1),await _0x3f4b83[_0x31f7c(0xf8)]({'part':_0x51811a,'renderingStrategy':_0x32728d,'showUnchangedParts':this[_0x31f7c(0x105)],'abortSignal':_0x53f320});});return _0x4e190d?.[_0x12d356(0x130)](_0x12d356(0x12d),()=>{const _0x35cd95=_0x12d356;this[_0x35cd95(0x127)][_0x35cd95(0x12d)]();}),this[_0x12d356(0x127)][_0x12d356(0xfc)];}[_0x44dd83(0x10e)](_0x3f38b4,_0x4e5d36){const _0x288e98=_0x44dd83,_0xd05718=this[_0x288e98(0x101)](_0x3f38b4);_0xd05718&&(_0xd05718[_0x288e98(0x116)]=_0x4e5d36),this[_0x288e98(0x11a)]=_0x288e98(0x112)==_0x4e5d36||Array[_0x288e98(0x10c)](this[_0x288e98(0xff)])[_0x288e98(0xfa)](_0x4d1f99=>_0x288e98(0x112)==_0x4d1f99[_0x288e98(0x116)]);}[_0x44dd83(0x101)](_0x20db2c){const _0x5d4433=_0x44dd83;return this[_0x5d4433(0xff)][_0x5d4433(0x12b)](_0x19ae0f=>_0x19ae0f[_0x5d4433(0xf9)][_0x5d4433(0xfd)]==_0x20db2c)??null;}[_0x44dd83(0x129)](){const _0x537e51=_0x44dd83;if(!this[_0x537e51(0x105)]){const _0x4a7d6f=!this[_0x537e51(0x12c)][_0x537e51(0x12b)](({hasChanges:_0x205aca})=>_0x205aca),_0x462ab8=!!this[_0x537e51(0x12c)][_0x537e51(0x12b)](({hasChanges:_0x44a836})=>!_0x44a836);this[_0x537e51(0xfe)][_0x537e51(0x119)]=0x0==this[_0x537e51(0xff)][_0x537e51(0x12a)]||_0x462ab8,_0x4a7d6f?this[_0x537e51(0xfe)][_0x537e51(0x110)](_0x438eae(this[_0x537e51(0x111)],_0x537e51(0x10d))):this[_0x537e51(0xfe)][_0x537e51(0x110)](_0x438eae(this[_0x537e51(0x111)],_0x537e51(0x126)));}}get[_0x44dd83(0x108)](){const _0x4cbdf9=_0x44dd83;return!!this[_0x4cbdf9(0xff)][_0x4cbdf9(0x12b)](_0x150426=>_0x150426[_0x4cbdf9(0xf9)][_0x4cbdf9(0x128)]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1d3684=_0x25c6;(function(_0x236c0d,_0x3d8261){const _0x2ad62f=_0x25c6,_0x13c6c6=_0x236c0d();while(!![]){try{const _0x1137c6=-parseInt(_0x2ad62f(0x19c))/0x1*(parseInt(_0x2ad62f(0x1af))/0x2)+-parseInt(_0x2ad62f(0x1bc))/0x3*(parseInt(_0x2ad62f(0x167))/0x4)+parseInt(_0x2ad62f(0x1b5))/0x5+parseInt(_0x2ad62f(0x198))/0x6+parseInt(_0x2ad62f(0x18c))/0x7+parseInt(_0x2ad62f(0x1cf))/0x8*(parseInt(_0x2ad62f(0x193))/0x9)+parseInt(_0x2ad62f(0x1a5))/0xa*(-parseInt(_0x2ad62f(0x1a8))/0xb);if(_0x1137c6===_0x3d8261)break;else _0x13c6c6['push'](_0x13c6c6['shift']());}catch(_0x4c35c1){_0x13c6c6['push'](_0x13c6c6['shift']());}}}(_0x2bf8,0xa6005));import{IconWeb as _0x49604f}from'@ckeditor/ckeditor5-icons';import{View as _0x4b1f82,ButtonView as _0x484747,IconView as _0x5a91f0,BalloonPanelView as _0x29fd10}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0xcba3ce}from'./aiminitoolbarview.js';function _0x25c6(_0x16d63e,_0x55103b){const _0x2bf877=_0x2bf8();return _0x25c6=function(_0x25c680,_0xa01b9e){_0x25c680=_0x25c680-0x167;let _0x5b5963=_0x2bf877[_0x25c680];return _0x5b5963;},_0x25c6(_0x16d63e,_0x55103b);}import{AISuggestionHeaderView as _0x525c01}from'./aisuggestionheaderview.js';import{AISuggestionBodyView as _0x4ef097}from'./aisuggestionbodyview.js';function _0x2bf8(){const _0x4f1596=['ck-ai-web-source__tooltip','showError','children','span','isOn','loaderView','bind','showLoader','setErrorState','bodyView','...','_showTooltip','img','content','ck-ai-web-source__tooltip-title','hideError','updateContentParts','title','isLoaderVisible','items','push','remove','clearLoading','delegate','textContent','isVisible','ck-ai-suggestion__container','ck-ai-web-source__image','pin','errorView','ck-ai-web-sources__header','4871244bDpQdr','areChangesVisible','toggleSuggestionDisplayMode','_createErrorView','open','ck-ai-web-source__tooltip-image','createCollection','2169QrpXqV','substring','AI_CHAT_IS_WRITING','removeNavigationItem','clear','7710582SsBhxR','_setupBalloonPanel','hostname','.ck-ai-chat','2101dnGvvg','ck-hidden','ck-ai-web-sources','hide','northArrowSouth','length','addNavigationItem','balloonPanelView','extendTemplate','9210VvnCSU','headerView','element','8206SQqJbE','updateContent','ck-ai-suggestion__loader-text','setTemplate','ck\x20ck-ai-web-source','ck-ai-web-source__tooltip-url','isShowChangesToggleVisible','158mwmLmT','bindTemplate','ck-ai-suggestion__error-text','icon','map','ck-ai-suggestion__error','372115GWSPyB','show','hasNonEmptyParts','bodyCollection','favicon','ck-ai-web-source__tooltip-balloon','miniToolbarView','687NqEkCq','toggleShowChanges','set','_createTooltipContentView','northArrowSouthEast','querySelector','addMany','AI_CHAT_SOURCES_HEADER','_updateTooltipContent','add','markAsDone','isEnabled','AI_CHAT_GENERIC_ERROR','hideLoader','fire','small','div','ck-rounded-corners','defaultPositions','26360XlqoxM','url','sourcesView','clearErrorState','_bodyCollection','.ck-ai-suggestion__error-text','_blank','isErrorVisible','source','_hideTooltip','isLoading','ck-ai-web-source__tooltip-row','northArrowSouthWest','setLoading','_createLoaderView','ck-ai-suggestion__loader','22996obMZsR','destroy','updateSources','get','locale','showChangesToggleView'];_0x2bf8=function(){return _0x4f1596;};return _0x2bf8();}import{AI_SUGGESTION_UI_EVENT_NAMES as _0x2952b0}from'../../utils/eventnames.js';import{AISpinnerView as _0x143ac7}from'../aispinner.js';import{getTranslation as _0x5d5644}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x4b1f82{[_0x1d3684(0x176)];[_0x1d3684(0x1bb)];[_0x1d3684(0x16f)];[_0x1d3684(0x1a6)];[_0x1d3684(0x172)];[_0x1d3684(0x18a)];[_0x1d3684(0x1d1)];[_0x1d3684(0x1d3)];constructor(_0x524cc7,_0x4a8bfb,_0xeb92b7){const _0xc5aa7c=_0x1d3684;super(_0x524cc7),this[_0xc5aa7c(0x1d3)]=_0xeb92b7;const {showDiff:_0x4cc562,areActionsDisabled:_0x3401c5,miniToolbarConfig:_0x42a5fe,hideHeader:_0x2a2248,showLoader:_0x45f9b9,showUnchangedParts:_0x2a8a35,availableActions:_0x139cee}=_0x4a8bfb;this[_0xc5aa7c(0x1be)](_0xc5aa7c(0x18d),!0x1),this[_0xc5aa7c(0x1be)](_0xc5aa7c(0x17f),!!_0x45f9b9),this[_0xc5aa7c(0x1be)](_0xc5aa7c(0x1d6),!0x1),this[_0xc5aa7c(0x1be)](_0xc5aa7c(0x1d9),!0x1),this[_0xc5aa7c(0x16f)]=this[_0xc5aa7c(0x192)](),_0x2a2248||(this[_0xc5aa7c(0x1a6)]=new _0x525c01(_0x524cc7,{'showDiff':_0x4cc562}),this[_0xc5aa7c(0x1a6)]['on'](_0xc5aa7c(0x1bd),(_0x807bbf,_0x3ed805)=>{const _0x261bb7=_0xc5aa7c;this[_0x261bb7(0x18d)]=_0x3ed805[_0x261bb7(0x171)],this[_0x261bb7(0x1ca)](_0x261bb7(0x18e),{'showDiff':_0x3ed805[_0x261bb7(0x171)]});}),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x1a6)])),this[_0xc5aa7c(0x176)]=new _0x4ef097(_0x524cc7,{'areActionsDisabled':_0x3401c5,'showUnchangedParts':!!_0x2a8a35,'availableActions':_0x139cee}),this[_0xc5aa7c(0x176)][_0xc5aa7c(0x184)](..._0x2952b0)['to'](this),this[_0xc5aa7c(0x176)][_0xc5aa7c(0x1a4)]({'attributes':{'class':[this[_0xc5aa7c(0x1b0)]['if'](_0xc5aa7c(0x17f),_0xc5aa7c(0x19d)),this[_0xc5aa7c(0x1b0)]['if'](_0xc5aa7c(0x1d6),_0xc5aa7c(0x19d))]}}),this[_0xc5aa7c(0x1bb)]=new _0xcba3ce(_0x524cc7,_0x42a5fe,_0x4cc562),this[_0xc5aa7c(0x1bb)][_0xc5aa7c(0x184)](..._0x2952b0)['to'](this),this[_0xc5aa7c(0x1bb)]['on'](_0xc5aa7c(0x1bd),(_0x20c6eb,_0x8fd3e4)=>{const _0x5a202c=_0xc5aa7c;this[_0x5a202c(0x18d)]=_0x8fd3e4,this[_0x5a202c(0x1ca)](_0x5a202c(0x18e),{'showDiff':_0x8fd3e4});}),this[_0xc5aa7c(0x1bb)][_0xc5aa7c(0x173)](_0xc5aa7c(0x1d9))['to'](this),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x176)]),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x1bb)]),this[_0xc5aa7c(0x1d1)]=new AIWebSourcesView(this[_0xc5aa7c(0x16b)],this[_0xc5aa7c(0x1d3)]),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x1d1)]),_0x45f9b9&&(this[_0xc5aa7c(0x172)]=this[_0xc5aa7c(0x1dd)](),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x172)])),this[_0xc5aa7c(0x18a)]=this[_0xc5aa7c(0x18f)](),this[_0xc5aa7c(0x16f)][_0xc5aa7c(0x1c5)](this[_0xc5aa7c(0x18a)]),this[_0xc5aa7c(0x1ab)]({'tag':_0xc5aa7c(0x1cc),'attributes':{'class':['ck',_0xc5aa7c(0x187),_0xc5aa7c(0x1cd)]},'children':this[_0xc5aa7c(0x16f)]});}async[_0x1d3684(0x1a9)](_0x17f38e){const _0x46f5e4=_0x1d3684;await this[_0x46f5e4(0x176)][_0x46f5e4(0x17d)](_0x17f38e);}[_0x1d3684(0x169)](_0x51c234){const _0x12f4d8=_0x1d3684,_0x1c66d0=this[_0x12f4d8(0x1d1)],_0x32a41=_0x1c66d0[_0x12f4d8(0x1a3)];_0x1c66d0[_0x12f4d8(0x16f)][_0x12f4d8(0x1c2)](_0x51c234[_0x12f4d8(0x1b3)](_0x422df2=>new AIWebSourceView(this[_0x12f4d8(0x16b)],_0x422df2,_0x32a41))),_0x1c66d0[_0x12f4d8(0x186)]=!0x0;}[_0x1d3684(0x174)](){const _0x1db32a=_0x1d3684;this[_0x1db32a(0x172)]&&(this[_0x1db32a(0x17f)]=!0x0);}[_0x1d3684(0x1c9)](){const _0x1dc858=_0x1d3684;this[_0x1dc858(0x172)]&&(this[_0x1dc858(0x17f)]=!0x1);}[_0x1d3684(0x16e)](_0xb41406){const _0x3129bc=_0x1d3684;if(this[_0x3129bc(0x18a)]){const _0x40c200=this[_0x3129bc(0x18a)][_0x3129bc(0x1a7)]?.[_0x3129bc(0x1c1)](_0x3129bc(0x1d4));_0x40c200&&(_0x40c200[_0x3129bc(0x185)]=_0xb41406),this[_0x3129bc(0x1d6)]=!0x0;}}[_0x1d3684(0x17c)](){const _0x280624=_0x1d3684;this[_0x280624(0x18a)]&&(this[_0x280624(0x1d6)]=!0x1);}[_0x1d3684(0x1c6)](){const _0x3b2fc0=_0x1d3684;this[_0x3b2fc0(0x176)][_0x3b2fc0(0x1c6)](),this[_0x3b2fc0(0x1a6)]&&(this[_0x3b2fc0(0x1a6)][_0x3b2fc0(0x1ae)]=this[_0x3b2fc0(0x176)][_0x3b2fc0(0x1b7)]);}[_0x1d3684(0x1dc)](){const _0x1da45a=_0x1d3684;this[_0x1da45a(0x1d9)]=!0x0;}[_0x1d3684(0x183)](){const _0x30db6b=_0x1d3684;this[_0x30db6b(0x1d9)]=!0x1;}[_0x1d3684(0x175)](){const _0x27dc58=_0x1d3684;this[_0x27dc58(0x1bb)]&&(this[_0x27dc58(0x1bb)][_0x27dc58(0x1d9)]=!0x0),this[_0x27dc58(0x1a6)]?.[_0x27dc58(0x16c)]&&(this[_0x27dc58(0x1a6)][_0x27dc58(0x16c)][_0x27dc58(0x1c7)]=!0x1);}[_0x1d3684(0x1d2)](){const _0x824432=_0x1d3684;this[_0x824432(0x1bb)]&&(this[_0x824432(0x1bb)][_0x824432(0x1d9)]=!0x1),this[_0x824432(0x1a6)]?.[_0x824432(0x16c)]&&(this[_0x824432(0x1a6)][_0x824432(0x16c)][_0x824432(0x1c7)]=!0x0);}[_0x1d3684(0x1a2)](_0x3e24f8){const _0x484c84=_0x1d3684;this[_0x484c84(0x1bb)][_0x484c84(0x180)][_0x484c84(0x1c5)](_0x3e24f8);}[_0x1d3684(0x196)](_0x42b817){const _0x5b326e=_0x1d3684;this[_0x5b326e(0x1bb)][_0x5b326e(0x180)][_0x5b326e(0x182)](_0x42b817);}[_0x1d3684(0x1dd)](){const _0x6ac4eb=_0x1d3684,_0x4f2a27=new _0x4b1f82(this[_0x6ac4eb(0x16b)]),_0x3391f3=new _0x143ac7(_0x6ac4eb(0x1cb));_0x3391f3[_0x6ac4eb(0x186)]=!0x0;const _0x50f23a=new _0x4b1f82(this[_0x6ac4eb(0x16b)]);return _0x50f23a[_0x6ac4eb(0x1ab)]({'tag':_0x6ac4eb(0x170),'attributes':{'class':['ck',_0x6ac4eb(0x1aa)]},'children':[_0x5d5644(this[_0x6ac4eb(0x16b)],_0x6ac4eb(0x195))]}),_0x4f2a27[_0x6ac4eb(0x1ab)]({'tag':_0x6ac4eb(0x1cc),'attributes':{'class':['ck',_0x6ac4eb(0x1de),this[_0x6ac4eb(0x1b0)]['if'](_0x6ac4eb(0x17f),_0x6ac4eb(0x19d),_0x52e3e8=>!_0x52e3e8)]},'children':[_0x3391f3,_0x50f23a]}),_0x4f2a27;}[_0x1d3684(0x18f)](){const _0x44b6e8=_0x1d3684,_0x2ea770=new _0x4b1f82(this[_0x44b6e8(0x16b)]),_0x4c11b1=new _0x4b1f82(this[_0x44b6e8(0x16b)]);return _0x4c11b1[_0x44b6e8(0x1ab)]({'tag':_0x44b6e8(0x170),'attributes':{'class':['ck',_0x44b6e8(0x1b1)]},'children':[_0x5d5644(this[_0x44b6e8(0x16b)],_0x44b6e8(0x1c8))]}),_0x2ea770[_0x44b6e8(0x1ab)]({'tag':_0x44b6e8(0x1cc),'attributes':{'class':['ck',_0x44b6e8(0x1b4),this[_0x44b6e8(0x1b0)]['if'](_0x44b6e8(0x1d6),_0x44b6e8(0x19d),_0x20489c=>!_0x20489c)]},'children':[_0x4c11b1]}),_0x2ea770;}}export class AIWebSourcesView extends _0x4b1f82{[_0x1d3684(0x16f)];[_0x1d3684(0x1a3)];[_0x1d3684(0x1b8)];constructor(_0x593f24,_0x39d3e8){const _0x4c0ec2=_0x1d3684;super(_0x593f24),this[_0x4c0ec2(0x1b8)]=_0x39d3e8,this[_0x4c0ec2(0x16f)]=this[_0x4c0ec2(0x192)](),this[_0x4c0ec2(0x1be)](_0x4c0ec2(0x186),!0x1),this[_0x4c0ec2(0x1ab)]({'tag':_0x4c0ec2(0x1cc),'attributes':{'class':['ck',_0x4c0ec2(0x19e),this[_0x4c0ec2(0x1b0)]['if'](_0x4c0ec2(0x186),_0x4c0ec2(0x19d),_0x417898=>!_0x417898)]},'children':this[_0x4c0ec2(0x16f)]});const _0x17ec0d=new _0x4b1f82(this[_0x4c0ec2(0x16b)]),_0x216c30=new _0x5a91f0();_0x216c30[_0x4c0ec2(0x17a)]=_0x49604f,_0x17ec0d[_0x4c0ec2(0x1ab)]({'tag':_0x4c0ec2(0x1cc),'attributes':{'class':['ck',_0x4c0ec2(0x18b)]},'children':[_0x216c30,{'tag':_0x4c0ec2(0x170),'children':[{'text':_0x5d5644(this[_0x4c0ec2(0x16b)],_0x4c0ec2(0x1c3))}]}]}),this[_0x4c0ec2(0x16f)][_0x4c0ec2(0x1c5)](_0x17ec0d),this[_0x4c0ec2(0x199)](_0x593f24);}[_0x1d3684(0x199)](_0x4150e3){const _0x568e28=_0x1d3684;this[_0x568e28(0x1a3)]=new _0x29fd10(_0x4150e3),this[_0x568e28(0x1a3)][_0x568e28(0x1a4)]({'attributes':{'class':[_0x568e28(0x1ba)]}}),this[_0x568e28(0x1b8)][_0x568e28(0x1c5)](this[_0x568e28(0x1a3)]);}}export class AIWebSourceView extends _0x484747{[_0x1d3684(0x1a3)];[_0x1d3684(0x1d7)];constructor(_0x1705c0,_0x19a434,_0x2d775d){const _0x2d26d5=_0x1d3684;super(_0x1705c0),this[_0x2d26d5(0x1d7)]=_0x19a434,this[_0x2d26d5(0x1a3)]=_0x2d775d,this[_0x2d26d5(0x1be)]({'label':_0x19a434[_0x2d26d5(0x17e)],'class':[_0x2d26d5(0x1ac)],'withText':!0x0});const _0xd125ad=this[_0x2d26d5(0x1b0)];if(this[_0x2d26d5(0x1a4)]({'on':{'click':_0xd125ad['to'](()=>{const _0x50da89=_0x2d26d5;window[_0x50da89(0x190)](_0x19a434[_0x50da89(0x1d0)],_0x50da89(0x1d5));}),'mouseenter':_0xd125ad['to'](()=>{const _0x41f74b=_0x2d26d5;this[_0x41f74b(0x178)]();}),'mouseleave':_0xd125ad['to'](()=>{const _0x260e4e=_0x2d26d5;this[_0x260e4e(0x1d8)]();})}}),_0x19a434[_0x2d26d5(0x1b9)]){const _0x1fd606=new _0x4b1f82(_0x1705c0);_0x1fd606[_0x2d26d5(0x1ab)]({'tag':_0x2d26d5(0x179),'attributes':{'src':_0x19a434[_0x2d26d5(0x1b9)]||_0x49604f,'alt':_0x19a434[_0x2d26d5(0x17e)],'class':[_0x2d26d5(0x188)]}}),this[_0x2d26d5(0x16f)][_0x2d26d5(0x1c5)](_0x1fd606);}else this[_0x2d26d5(0x1be)](_0x2d26d5(0x1b2),_0x49604f);}[_0x1d3684(0x1bf)](_0x563c75,_0x38046f){const _0x446906=_0x1d3684,_0x438bdc=new _0x4b1f82(_0x563c75),_0x50c59d=[];let _0xc43971;_0x38046f?.[_0x446906(0x1b9)]?(_0xc43971=new _0x4b1f82(_0x563c75),_0xc43971[_0x446906(0x1ab)]({'tag':_0x446906(0x179),'attributes':{'src':_0x38046f[_0x446906(0x1b9)],'alt':_0x38046f[_0x446906(0x17e)],'class':[_0x446906(0x191)]}})):(_0xc43971=new _0x5a91f0(),_0xc43971[_0x446906(0x17a)]=_0x49604f,_0xc43971[_0x446906(0x1a4)]({'attributes':{'alt':_0x38046f[_0x446906(0x17e)],'class':[_0x446906(0x191)]}})),_0x50c59d[_0x446906(0x181)](_0xc43971);const _0x2b9de7=new _0x4b1f82(_0x563c75);_0x2b9de7[_0x446906(0x1ab)]({'tag':'a','attributes':{'class':[_0x446906(0x1ad)],'href':_0x38046f[_0x446906(0x1d0)]},'children':[{'text':new URL(_0x38046f[_0x446906(0x1d0)])?.[_0x446906(0x19a)]}]}),_0x50c59d[_0x446906(0x181)](_0x2b9de7);const _0x5306ab=new _0x4b1f82(_0x563c75);_0x5306ab[_0x446906(0x1ab)]({'tag':_0x446906(0x1cc),'attributes':{'class':[_0x446906(0x1da)]},'children':_0x50c59d});const _0x149c1d=new _0x4b1f82(_0x563c75);return _0x149c1d[_0x446906(0x1ab)]({'tag':_0x446906(0x170),'attributes':{'class':[_0x446906(0x1da),_0x446906(0x17b)]},'children':[{'text':_0x38046f[_0x446906(0x17e)][_0x446906(0x1a1)]>0x190?_0x38046f[_0x446906(0x17e)][_0x446906(0x194)](0x0,0x190)+_0x446906(0x177):_0x38046f[_0x446906(0x17e)]}]}),_0x438bdc[_0x446906(0x1ab)]({'tag':_0x446906(0x1cc),'attributes':{'class':['ck',_0x446906(0x16d)]},'children':[_0x5306ab,_0x149c1d]}),_0x438bdc;}[_0x1d3684(0x178)](){const _0x17c95a=_0x1d3684;this[_0x17c95a(0x1c4)](),this[_0x17c95a(0x1a3)][_0x17c95a(0x189)]({'target':this[_0x17c95a(0x1a7)],'positions':[_0x29fd10[_0x17c95a(0x1ce)][_0x17c95a(0x1a0)],_0x29fd10[_0x17c95a(0x1ce)][_0x17c95a(0x1db)],_0x29fd10[_0x17c95a(0x1ce)][_0x17c95a(0x1c0)]],'limiter':document[_0x17c95a(0x1c1)](_0x17c95a(0x19b))}),this[_0x17c95a(0x1a3)][_0x17c95a(0x1b6)]();}[_0x1d3684(0x1d8)](){const _0xab6863=_0x1d3684;this[_0xab6863(0x1a3)][_0xab6863(0x19f)]();}[_0x1d3684(0x1c4)](){const _0x48cbe3=_0x1d3684;this[_0x48cbe3(0x1a3)][_0x48cbe3(0x17a)][_0x48cbe3(0x16a)](0x0)?.[_0x48cbe3(0x168)](),this[_0x48cbe3(0x1a3)][_0x48cbe3(0x17a)][_0x48cbe3(0x197)]();const _0xd879d2=this[_0x48cbe3(0x1bf)](this[_0x48cbe3(0x16b)],this[_0x48cbe3(0x1d7)]);this[_0x48cbe3(0x1a3)][_0x48cbe3(0x17a)][_0x48cbe3(0x1c5)](_0xd879d2);}}
23
+ const _0x5ad021=_0x1ec9;(function(_0x15b99a,_0x504263){const _0x4571fd=_0x1ec9,_0x13746b=_0x15b99a();while(!![]){try{const _0x4edf34=parseInt(_0x4571fd(0x7a))/0x1*(-parseInt(_0x4571fd(0xd2))/0x2)+parseInt(_0x4571fd(0xb8))/0x3+-parseInt(_0x4571fd(0x7d))/0x4+parseInt(_0x4571fd(0xa5))/0x5+-parseInt(_0x4571fd(0x98))/0x6+parseInt(_0x4571fd(0xde))/0x7*(-parseInt(_0x4571fd(0x9a))/0x8)+parseInt(_0x4571fd(0x7f))/0x9*(parseInt(_0x4571fd(0xcd))/0xa);if(_0x4edf34===_0x504263)break;else _0x13746b['push'](_0x13746b['shift']());}catch(_0x127b63){_0x13746b['push'](_0x13746b['shift']());}}}(_0x7eec,0x2b5d5));import{IconWeb as _0x46da96}from'@ckeditor/ckeditor5-icons';import{View as _0x39c6ec,ButtonView as _0x539371,IconView as _0x139c82,BalloonPanelView as _0x56d45b}from'ckeditor5/src/ui.js';import{AIMiniToolbarView as _0x5a8379}from'./aiminitoolbarview.js';import{AISuggestionHeaderView as _0x125293}from'./aisuggestionheaderview.js';function _0x1ec9(_0x9dea1e,_0xb18431){const _0x7eec35=_0x7eec();return _0x1ec9=function(_0x1ec99a,_0x401953){_0x1ec99a=_0x1ec99a-0x6a;let _0x1cb10b=_0x7eec35[_0x1ec99a];return _0x1cb10b;},_0x1ec9(_0x9dea1e,_0xb18431);}import{AISuggestionBodyView as _0x13b5a2}from'./aisuggestionbodyview.js';import{AI_SUGGESTION_UI_EVENT_NAMES as _0x432706}from'../../utils/eventnames.js';import{AISpinnerView as _0x461891}from'../aispinner.js';import{getTranslation as _0x1b69e0}from'../../utils/common-translations.js';export class AISuggestionContainerView extends _0x39c6ec{[_0x5ad021(0x9b)];[_0x5ad021(0x9e)];[_0x5ad021(0x6c)];[_0x5ad021(0x93)];[_0x5ad021(0x95)];[_0x5ad021(0xca)];[_0x5ad021(0xd5)];[_0x5ad021(0xbd)];constructor(_0x5d33f0,_0x2c5fd4,_0x5f3782){const _0x1f42ca=_0x5ad021;super(_0x5d33f0),this[_0x1f42ca(0xbd)]=_0x5f3782;const {showDiff:_0x37c409,areActionsDisabled:_0x54e29a,miniToolbarConfig:_0x204197,hideHeader:_0x339e11,showLoader:_0x4f7816,showUnchangedParts:_0x23e317,availableActions:_0x565591}=_0x2c5fd4;this[_0x1f42ca(0xb0)](_0x1f42ca(0xa1),!0x1),this[_0x1f42ca(0xb0)](_0x1f42ca(0xb4),!!_0x4f7816),this[_0x1f42ca(0xb0)](_0x1f42ca(0xac),!0x1),this[_0x1f42ca(0xb0)](_0x1f42ca(0x88),!0x1),this[_0x1f42ca(0x6c)]=this[_0x1f42ca(0x82)](),_0x339e11||(this[_0x1f42ca(0x93)]=new _0x125293(_0x5d33f0,{'showDiff':_0x37c409}),this[_0x1f42ca(0x93)]['on'](_0x1f42ca(0x90),(_0x36c9df,_0x2dc4fc)=>{const _0x358257=_0x1f42ca;this[_0x358257(0xa1)]=_0x2dc4fc[_0x358257(0xc2)],this[_0x358257(0xb9)](_0x358257(0x6e),{'showDiff':_0x2dc4fc[_0x358257(0xc2)]});}),this[_0x1f42ca(0x6c)][_0x1f42ca(0xb5)](this[_0x1f42ca(0x93)])),this[_0x1f42ca(0x9b)]=new _0x13b5a2(_0x5d33f0,{'areActionsDisabled':_0x54e29a,'showUnchangedParts':!!_0x23e317,'availableActions':_0x565591}),this[_0x1f42ca(0x9b)][_0x1f42ca(0x74)](..._0x432706)['to'](this),this[_0x1f42ca(0x9b)][_0x1f42ca(0x7b)]({'attributes':{'class':[this[_0x1f42ca(0x6b)]['if'](_0x1f42ca(0xb4),_0x1f42ca(0xb6)),this[_0x1f42ca(0x6b)]['if'](_0x1f42ca(0xac),_0x1f42ca(0xb6))]}}),this[_0x1f42ca(0x9e)]=new _0x5a8379(_0x5d33f0,_0x204197,_0x37c409),this[_0x1f42ca(0x9e)][_0x1f42ca(0x74)](..._0x432706)['to'](this),this[_0x1f42ca(0x9e)]['on'](_0x1f42ca(0x90),(_0x756911,_0x4759bf)=>{const _0x4e358e=_0x1f42ca;this[_0x4e358e(0xa1)]=_0x4759bf,this[_0x4e358e(0xb9)](_0x4e358e(0x6e),{'showDiff':_0x4759bf});}),this[_0x1f42ca(0x9e)][_0x1f42ca(0xd3)](_0x1f42ca(0x88))['to'](this),this[_0x1f42ca(0x6c)][_0x1f42ca(0xb5)](this[_0x1f42ca(0x9b)]),this[_0x1f42ca(0x6c)][_0x1f42ca(0xb5)](this[_0x1f42ca(0x9e)]),this[_0x1f42ca(0xd5)]=new AIWebSourcesView(this[_0x1f42ca(0xdb)],this[_0x1f42ca(0xbd)]),this[_0x1f42ca(0x6c)][_0x1f42ca(0xb5)](this[_0x1f42ca(0xd5)]),_0x4f7816&&(this[_0x1f42ca(0x95)]=this[_0x1f42ca(0xa7)](),this[_0x1f42ca(0x6c)][_0x1f42ca(0xb5)](this[_0x1f42ca(0x95)])),this[_0x1f42ca(0xca)]=this[_0x1f42ca(0xbb)](),this[_0x1f42ca(0x6c)][_0x1f42ca(0xb5)](this[_0x1f42ca(0xca)]),this[_0x1f42ca(0xc8)]({'tag':_0x1f42ca(0x8b),'attributes':{'class':['ck',_0x1f42ca(0xdc),_0x1f42ca(0xda)]},'children':this[_0x1f42ca(0x6c)]});}async[_0x5ad021(0xb1)](_0x5443b5){const _0x36f3aa=_0x5ad021;await this[_0x36f3aa(0x9b)][_0x36f3aa(0x84)](_0x5443b5);}[_0x5ad021(0x70)](_0x5407bf){const _0x3a933e=_0x5ad021,_0x55c501=this[_0x3a933e(0xd5)],_0x1a4907=_0x55c501[_0x3a933e(0x75)];_0x55c501[_0x3a933e(0x6c)][_0x3a933e(0x7e)](_0x5407bf[_0x3a933e(0x80)](_0x482e81=>new AIWebSourceView(this[_0x3a933e(0xdb)],_0x482e81,_0x1a4907))),_0x55c501[_0x3a933e(0xaa)]=!0x0;}[_0x5ad021(0xa9)](){const _0x175864=_0x5ad021;this[_0x175864(0x95)]&&(this[_0x175864(0xb4)]=!0x0);}[_0x5ad021(0x86)](){const _0xb695e3=_0x5ad021;this[_0xb695e3(0x95)]&&(this[_0xb695e3(0xb4)]=!0x1);}[_0x5ad021(0x76)](_0x5b3b88){const _0x361e26=_0x5ad021;if(this[_0x361e26(0xca)]){const _0x254db8=this[_0x361e26(0xca)][_0x361e26(0x89)]?.[_0x361e26(0xc4)](_0x361e26(0xab));_0x254db8&&(_0x254db8[_0x361e26(0xbf)]=_0x5b3b88),this[_0x361e26(0xac)]=!0x0;}}[_0x5ad021(0xc5)](){const _0x18b40a=_0x5ad021;this[_0x18b40a(0xca)]&&(this[_0x18b40a(0xac)]=!0x1);}[_0x5ad021(0x9c)](){const _0x53bc7c=_0x5ad021;this[_0x53bc7c(0x9b)][_0x53bc7c(0x9c)](),this[_0x53bc7c(0x93)]&&(this[_0x53bc7c(0x93)][_0x53bc7c(0x8f)]=this[_0x53bc7c(0x9b)][_0x53bc7c(0x87)]);}[_0x5ad021(0xa8)](){const _0x196af8=_0x5ad021;this[_0x196af8(0x88)]=!0x0;}[_0x5ad021(0xa3)](){const _0x296add=_0x5ad021;this[_0x296add(0x88)]=!0x1;}[_0x5ad021(0x8c)](){const _0x56fc64=_0x5ad021;this[_0x56fc64(0x9e)]&&(this[_0x56fc64(0x9e)][_0x56fc64(0x88)]=!0x0),this[_0x56fc64(0x93)]?.[_0x56fc64(0x8a)]&&(this[_0x56fc64(0x93)][_0x56fc64(0x8a)][_0x56fc64(0x7c)]=!0x1);}[_0x5ad021(0xb2)](){const _0x35c87b=_0x5ad021;this[_0x35c87b(0x9e)]&&(this[_0x35c87b(0x9e)][_0x35c87b(0x88)]=!0x1),this[_0x35c87b(0x93)]?.[_0x35c87b(0x8a)]&&(this[_0x35c87b(0x93)][_0x35c87b(0x8a)][_0x35c87b(0x7c)]=!0x0);}[_0x5ad021(0x81)](_0x1fba90){const _0x595152=_0x5ad021;this[_0x595152(0x9e)][_0x595152(0xdf)][_0x595152(0xb5)](_0x1fba90);}[_0x5ad021(0x94)](_0x595614){const _0x7f754f=_0x5ad021;this[_0x7f754f(0x9e)][_0x7f754f(0xdf)][_0x7f754f(0x8d)](_0x595614);}[_0x5ad021(0xa7)](){const _0x511d44=_0x5ad021,_0x2a2b17=new _0x39c6ec(this[_0x511d44(0xdb)]),_0x37f79f=new _0x461891(_0x511d44(0x91));_0x37f79f[_0x511d44(0xaa)]=!0x0;const _0x2a825c=new _0x39c6ec(this[_0x511d44(0xdb)]);return _0x2a825c[_0x511d44(0xc8)]({'tag':_0x511d44(0xc7),'attributes':{'class':['ck',_0x511d44(0xdd)]},'children':[_0x1b69e0(this[_0x511d44(0xdb)],_0x511d44(0xa2))]}),_0x2a2b17[_0x511d44(0xc8)]({'tag':_0x511d44(0x8b),'attributes':{'class':['ck',_0x511d44(0xc9),this[_0x511d44(0x6b)]['if'](_0x511d44(0xb4),_0x511d44(0xb6),_0x11b0c1=>!_0x11b0c1)]},'children':[_0x37f79f,_0x2a825c]}),_0x2a2b17;}[_0x5ad021(0xbb)](){const _0x53270d=_0x5ad021,_0xdfe7e5=new _0x39c6ec(this[_0x53270d(0xdb)]),_0x2012a1=new _0x39c6ec(this[_0x53270d(0xdb)]);return _0x2012a1[_0x53270d(0xc8)]({'tag':_0x53270d(0xc7),'attributes':{'class':['ck',_0x53270d(0xba)]},'children':[_0x1b69e0(this[_0x53270d(0xdb)],_0x53270d(0xc1))]}),_0xdfe7e5[_0x53270d(0xc8)]({'tag':_0x53270d(0x8b),'attributes':{'class':['ck',_0x53270d(0xad),this[_0x53270d(0x6b)]['if'](_0x53270d(0xac),_0x53270d(0xb6),_0x5d8816=>!_0x5d8816)]},'children':[_0x2012a1]}),_0xdfe7e5;}}export class AIWebSourcesView extends _0x39c6ec{[_0x5ad021(0x6c)];[_0x5ad021(0x75)];[_0x5ad021(0x77)];constructor(_0x267def,_0x4d074a){const _0x832f48=_0x5ad021;super(_0x267def),this[_0x832f48(0x77)]=_0x4d074a,this[_0x832f48(0x6c)]=this[_0x832f48(0x82)](),this[_0x832f48(0xb0)](_0x832f48(0xaa),!0x1),this[_0x832f48(0xc8)]({'tag':_0x832f48(0x8b),'attributes':{'class':['ck',_0x832f48(0xc6),this[_0x832f48(0x6b)]['if'](_0x832f48(0xaa),_0x832f48(0xb6),_0x21cf42=>!_0x21cf42)]},'children':this[_0x832f48(0x6c)]});const _0x25f242=new _0x39c6ec(this[_0x832f48(0xdb)]),_0x12eaad=new _0x139c82();_0x12eaad[_0x832f48(0x96)]=_0x46da96,_0x25f242[_0x832f48(0xc8)]({'tag':_0x832f48(0x8b),'attributes':{'class':['ck',_0x832f48(0xd4)]},'children':[_0x12eaad,{'tag':_0x832f48(0xc7),'children':[{'text':_0x1b69e0(this[_0x832f48(0xdb)],_0x832f48(0x9d))}]}]}),this[_0x832f48(0x6c)][_0x832f48(0xb5)](_0x25f242),this[_0x832f48(0xe0)](_0x267def);}[_0x5ad021(0xe0)](_0x717051){const _0xf3cb2d=_0x5ad021;this[_0xf3cb2d(0x75)]=new _0x56d45b(_0x717051),this[_0xf3cb2d(0x75)][_0xf3cb2d(0x7b)]({'attributes':{'class':[_0xf3cb2d(0xcf)]}}),this[_0xf3cb2d(0x77)][_0xf3cb2d(0xb5)](this[_0xf3cb2d(0x75)]);}}export class AIWebSourceView extends _0x539371{[_0x5ad021(0x75)];[_0x5ad021(0x78)];constructor(_0x8df61b,_0x23be21,_0x4cdbd9){const _0x23ad62=_0x5ad021;super(_0x8df61b),this[_0x23ad62(0x78)]=_0x23be21,this[_0x23ad62(0x75)]=_0x4cdbd9,this[_0x23ad62(0xb0)]({'label':_0x23be21[_0x23ad62(0xd1)],'class':[_0x23ad62(0xc0)],'withText':!0x0});const _0x456cf9=this[_0x23ad62(0x6b)];if(this[_0x23ad62(0x7b)]({'on':{'click':_0x456cf9['to'](()=>{const _0x32d75e=_0x23ad62;window[_0x32d75e(0xa0)](_0x23be21[_0x32d75e(0x8e)],_0x32d75e(0xbc));}),'mouseenter':_0x456cf9['to'](()=>{const _0x441ea8=_0x23ad62;this[_0x441ea8(0xd8)]();}),'mouseleave':_0x456cf9['to'](()=>{const _0x499f43=_0x23ad62;this[_0x499f43(0xce)]();})}}),_0x23be21[_0x23ad62(0xd0)]){const _0x2a9182=new _0x39c6ec(_0x8df61b);_0x2a9182[_0x23ad62(0xc8)]({'tag':_0x23ad62(0xd7),'attributes':{'src':_0x23be21[_0x23ad62(0xd0)]||_0x46da96,'alt':_0x23be21[_0x23ad62(0xd1)],'class':[_0x23ad62(0xbe)]}}),this[_0x23ad62(0x6c)][_0x23ad62(0xb5)](_0x2a9182);}else this[_0x23ad62(0xb0)](_0x23ad62(0xd9),_0x46da96);}[_0x5ad021(0xa4)](_0xe1f80f,_0x18bd55){const _0xf1d851=_0x5ad021,_0x34f340=new _0x39c6ec(_0xe1f80f),_0x1bd790=[];let _0x4e1f7b;_0x18bd55?.[_0xf1d851(0xd0)]?(_0x4e1f7b=new _0x39c6ec(_0xe1f80f),_0x4e1f7b[_0xf1d851(0xc8)]({'tag':_0xf1d851(0xd7),'attributes':{'src':_0x18bd55[_0xf1d851(0xd0)],'alt':_0x18bd55[_0xf1d851(0xd1)],'class':[_0xf1d851(0x92)]}})):(_0x4e1f7b=new _0x139c82(),_0x4e1f7b[_0xf1d851(0x96)]=_0x46da96,_0x4e1f7b[_0xf1d851(0x7b)]({'attributes':{'alt':_0x18bd55[_0xf1d851(0xd1)],'class':[_0xf1d851(0x92)]}})),_0x1bd790[_0xf1d851(0xb3)](_0x4e1f7b);const _0xce0486=new _0x39c6ec(_0xe1f80f);_0xce0486[_0xf1d851(0xc8)]({'tag':'a','attributes':{'class':[_0xf1d851(0x9f)],'href':_0x18bd55[_0xf1d851(0x8e)]},'children':[{'text':new URL(_0x18bd55[_0xf1d851(0x8e)])?.[_0xf1d851(0xb7)]}]}),_0x1bd790[_0xf1d851(0xb3)](_0xce0486);const _0x303ac4=new _0x39c6ec(_0xe1f80f);_0x303ac4[_0xf1d851(0xc8)]({'tag':_0xf1d851(0x8b),'attributes':{'class':[_0xf1d851(0xd6)]},'children':_0x1bd790});const _0x2f794a=new _0x39c6ec(_0xe1f80f);return _0x2f794a[_0xf1d851(0xc8)]({'tag':_0xf1d851(0xc7),'attributes':{'class':[_0xf1d851(0xd6),_0xf1d851(0x72)]},'children':[{'text':_0x18bd55[_0xf1d851(0xd1)][_0xf1d851(0x73)]>0x190?_0x18bd55[_0xf1d851(0xd1)][_0xf1d851(0x71)](0x0,0x190)+_0xf1d851(0xc3):_0x18bd55[_0xf1d851(0xd1)]}]}),_0x34f340[_0xf1d851(0xc8)]({'tag':_0xf1d851(0x8b),'attributes':{'class':['ck',_0xf1d851(0xcb)]},'children':[_0x303ac4,_0x2f794a]}),_0x34f340;}[_0x5ad021(0xd8)](){const _0x5b9b9c=_0x5ad021;this[_0x5b9b9c(0x6f)](),this[_0x5b9b9c(0x75)][_0x5b9b9c(0xa6)]({'target':this[_0x5b9b9c(0x89)],'positions':[_0x56d45b[_0x5b9b9c(0xae)][_0x5b9b9c(0x6d)],_0x56d45b[_0x5b9b9c(0xae)][_0x5b9b9c(0xcc)],_0x56d45b[_0x5b9b9c(0xae)][_0x5b9b9c(0x6a)]],'limiter':document[_0x5b9b9c(0xc4)](_0x5b9b9c(0xaf))}),this[_0x5b9b9c(0x75)][_0x5b9b9c(0x79)]();}[_0x5ad021(0xce)](){const _0x2a91b2=_0x5ad021;this[_0x2a91b2(0x75)][_0x2a91b2(0x97)]();}[_0x5ad021(0x6f)](){const _0x3fe208=_0x5ad021;this[_0x3fe208(0x75)][_0x3fe208(0x96)][_0x3fe208(0x99)](0x0)?.[_0x3fe208(0x85)](),this[_0x3fe208(0x75)][_0x3fe208(0x96)][_0x3fe208(0x83)]();const _0xe12d49=this[_0x3fe208(0xa4)](this[_0x3fe208(0xdb)],this[_0x3fe208(0x78)]);this[_0x3fe208(0x75)][_0x3fe208(0x96)][_0x3fe208(0xb5)](_0xe12d49);}}function _0x7eec(){const _0x19d8d3=['isEnabled','11604OZEHYN','addMany','27UDYHCe','map','addNavigationItem','createCollection','clear','updateContentParts','destroy','hideLoader','hasNonEmptyParts','isLoading','element','showChangesToggleView','div','setErrorState','remove','url','isShowChangesToggleVisible','toggleShowChanges','small','ck-ai-web-source__tooltip-image','headerView','removeNavigationItem','loaderView','content','hide','594288nJIbNg','get','784968zBNRhy','bodyView','markAsDone','AI_CHAT_SOURCES_HEADER','miniToolbarView','ck-ai-web-source__tooltip-url','open','areChangesVisible','AI_CHAT_IS_WRITING','clearLoading','_createTooltipContentView','413935VnJLSX','pin','_createLoaderView','setLoading','showLoader','isVisible','.ck-ai-suggestion__error-text','isErrorVisible','ck-ai-suggestion__error','defaultPositions','.ck-ai-chat','set','updateContent','clearErrorState','push','isLoaderVisible','add','ck-hidden','hostname','765642lOvDqp','fire','ck-ai-suggestion__error-text','_createErrorView','_blank','_bodyCollection','ck-ai-web-source__image','textContent','ck\x20ck-ai-web-source','AI_CHAT_GENERIC_ERROR','isOn','...','querySelector','hideError','ck-ai-web-sources','span','setTemplate','ck-ai-suggestion__loader','errorView','ck-ai-web-source__tooltip','northArrowSouthWest','1928110WfEGSL','_hideTooltip','ck-ai-web-source__tooltip-balloon','favicon','title','6UNwngp','bind','ck-ai-web-sources__header','sourcesView','ck-ai-web-source__tooltip-row','img','_showTooltip','icon','ck-rounded-corners','locale','ck-ai-suggestion__container','ck-ai-suggestion__loader-text','21UNPajC','items','_setupBalloonPanel','northArrowSouthEast','bindTemplate','children','northArrowSouth','toggleSuggestionDisplayMode','_updateTooltipContent','updateSources','substring','ck-ai-web-source__tooltip-title','length','delegate','balloonPanelView','showError','bodyCollection','source','show','114167LFkmYL','extendTemplate'];_0x7eec=function(){return _0x19d8d3;};return _0x7eec();}