@ckeditor/ckeditor5-ai 47.2.0-alpha.2 → 47.2.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/build/ai.js +1 -1
  2. package/dist/index.js +5 -5
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +15 -15
  150. package/src/aiactions/aiactions.js +1 -1
  151. package/src/aiactions/model/aiactionsinteraction.js +1 -1
  152. package/src/aiactions/model/aiactionsreply.js +1 -1
  153. package/src/aiassistant/adapters/aiadapter.js +1 -1
  154. package/src/aiassistant/adapters/aitextadapter.js +1 -1
  155. package/src/aiassistant/adapters/awstextadapter.js +1 -1
  156. package/src/aiassistant/adapters/openaitextadapter.js +1 -1
  157. package/src/aiassistant/aiassistant.js +1 -1
  158. package/src/aiassistant/aiassistantediting.js +1 -1
  159. package/src/aiassistant/aiassistantui.js +1 -1
  160. package/src/aiassistant/legacyerrors.js +1 -1
  161. package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
  162. package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
  163. package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
  164. package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
  165. package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
  166. package/src/aiassistant/ui/form/aiformview.js +1 -1
  167. package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
  168. package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
  169. package/src/aiassistant/ui/form/prompthistory.js +1 -1
  170. package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
  171. package/src/aiassistant/utils/common-translations.js +1 -1
  172. package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
  173. package/src/aiballoon/aiballoon.js +1 -1
  174. package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
  175. package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
  176. package/src/aiballoon/ui/aiballoonview.js +1 -1
  177. package/src/aichat/aichat.js +1 -1
  178. package/src/aichat/aichatcontroller.js +1 -1
  179. package/src/aichat/aichatui.js +1 -1
  180. package/src/aichat/model/aichatcontext.js +1 -1
  181. package/src/aichat/model/aichatconversation.js +1 -1
  182. package/src/aichat/model/aichatinteraction.js +1 -1
  183. package/src/aichat/model/aichatmodels.js +1 -1
  184. package/src/aichat/ui/aichatcontrolsview.js +1 -1
  185. package/src/aichat/ui/aichatfeedview.js +1 -1
  186. package/src/aichat/ui/aichatheaderview.js +1 -1
  187. package/src/aichat/ui/aichatview.js +1 -1
  188. package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
  189. package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
  190. package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
  191. package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
  192. package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
  193. package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
  194. package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
  195. package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
  196. package/src/aichat/ui/controls/resources/aichatcontextresourceslistview.js +1 -1
  197. package/src/aichat/ui/controls/resources/aichatcontextresourcesview.js +1 -1
  198. package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
  199. package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
  200. package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
  201. package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
  202. package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
  203. package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
  204. package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
  205. package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
  206. package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
  207. package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
  208. package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
  209. package/src/aichat/utils/eventnames.js +1 -1
  210. package/src/aichat/utils/promisequeue.js +1 -1
  211. package/src/aichat/utils/scrollmanager.js +1 -1
  212. package/src/aichathistory/aichathistory.js +1 -1
  213. package/src/aichathistory/aichathistorycontroller.js +1 -1
  214. package/src/aichathistory/aichathistoryui.js +1 -1
  215. package/src/aichathistory/model/aichathistoryconversations.js +1 -1
  216. package/src/aichathistory/model/aichathistoryitem.js +1 -1
  217. package/src/aichathistory/ui/aichathistorylistitemview.js +2 -2
  218. package/src/aichathistory/ui/aichathistorylistview.js +1 -1
  219. package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
  220. package/src/aichathistory/ui/aichathistoryview.js +1 -1
  221. package/src/aicore/aiconnector.js +1 -1
  222. package/src/aicore/aiediting.js +1 -1
  223. package/src/aicore/model/aicapabilities.js +1 -1
  224. package/src/aicore/model/aicontext.js +1 -1
  225. package/src/aicore/model/aiinteraction.js +1 -1
  226. package/src/aicore/model/aimodels.js +1 -1
  227. package/src/aicore/model/aireply.js +1 -1
  228. package/src/aicore/pipeline/airesponseapplier.js +2 -2
  229. package/src/aicore/pipeline/airesponseparser.js +2 -2
  230. package/src/aicore/ui/aidisclaimerview.js +1 -1
  231. package/src/aicore/ui/aiskeleton.js +1 -1
  232. package/src/aicore/ui/aispinner.js +1 -1
  233. package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
  234. package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
  235. package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
  236. package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
  237. package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
  238. package/src/aicore/utils/common-translations.js +1 -1
  239. package/src/aicore/utils/createresizebutton.js +1 -1
  240. package/src/aicore/utils/documentposition.js +1 -1
  241. package/src/aicore/utils/documentrange.js +1 -1
  242. package/src/aicore/utils/eventnames.js +1 -1
  243. package/src/aicore/utils/geteditorfromcontext.js +1 -1
  244. package/src/aicore/utils/getoperationsfromreply.js +1 -1
  245. package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
  246. package/src/aicore/utils/htmlparser.js +1 -1
  247. package/src/aicore/utils/htmlstreamer.js +1 -1
  248. package/src/aieditorintegration/aieditorintegration.js +1 -1
  249. package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
  250. package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
  251. package/src/aiquickactions/aiquickactions.js +1 -1
  252. package/src/aiquickactions/aiquickactionscommand.js +1 -1
  253. package/src/aiquickactions/aiquickactionsediting.js +1 -1
  254. package/src/aiquickactions/aiquickactionsui.js +1 -1
  255. package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
  256. package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
  257. package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
  258. package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
  259. package/src/aireviewmode/aireviewmode.js +1 -1
  260. package/src/aireviewmode/aireviewmodecontroller.js +1 -1
  261. package/src/aireviewmode/aireviewmodeediting.js +1 -1
  262. package/src/aireviewmode/aireviewmodeui.js +1 -1
  263. package/src/aireviewmode/model/aireviewcheck.js +1 -1
  264. package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
  265. package/src/aireviewmode/model/aireviewchecklist.js +1 -1
  266. package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
  267. package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
  268. package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
  269. package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
  270. package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
  271. package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
  272. package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
  273. package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
  274. package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
  275. package/src/aireviewmode/ui/aireviewmodefinishreviewbuttonview.js +1 -1
  276. package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
  277. package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
  278. package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
  279. package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
  280. package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
  281. package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
  282. package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
  283. package/src/aitabs/aitabs.js +1 -1
  284. package/src/aitabs/aitabsmainview.js +1 -1
  285. package/src/aitabs/tabs/aitabsview.js +1 -1
  286. package/src/aitabs/tabs/tabbuttonview.js +1 -1
  287. package/src/aitabs/tabs/tabpanelview.js +1 -1
  288. package/src/errors.js +1 -1
  289. package/src/index.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x249f1b=_0x1a9e;function _0x301b(){const _0xb6e314=['_createContextItemFromContent','contextItemRemoved','sources','all','3353567gktfXB','delete','URL','ai-chat-document-upload-failed','getPendingContextItems','_pendingContextItems','HTML','removeFromContext','20bxyBmc','clearPendingContextItems','document','1079kztPzB','addSelectionToContext','label','_getCustomSourcesInitialState','SELECTION','ai-request-aborted','string','1368izPQVJ','addFilesToContext','name','isCurrentDocumentInContext','error','size','text/plain','_finishContextItemLoading','url-','type','isReadOnly','_ongoingUploadOperations','_isResourceInContext','ai-chat-source-not-found','getSentContextItems','files-','ai-chat-resource-no-data','content','uploadDocument','21012eAxdTH','object\x20with\x20content\x20and\x20type\x20properties','ai-chat-context-unsupported-type','contextItemAdded','TEXT','ai-chat-resource-load-failed','_removeContextItem','File','map','has','2417UXbYXO','urls','forEach','1181196XrCCTv','addContextOptionsChanged','populateFromMessage','ai-chat-url-upload-failed','isInContext','MARKDOWN','Current\x20document','isCurrentDocumentInConversation','32200mUbtln','fetchDocument','get','current-document','uploadFile','_conversationContextItems','resourceStateChanged','selection','uploadProgressChanged','abort','file-','addCurrentDocumentToContext','_connector','contextSent','_finishUploadOperation','length','uploadUrl','init','hidden','FILE','_config','addToConversationContext','_convertTextResourceToFile','text/markdown','abortController','_findSourceIdsByResourceId','enabled','addResourceToContext','8obLxVQ','text/html','version','_updateResourceInContextState','values','sessionId','end','_ownerId','getId','start','420IvzQNR','862twniqj','stack','getResources','set','files','push','_addContextOptionsState','isSelectionInContext','resources','_addContextItem','uiId','_toggleAddCurrentDocumentOptionVisibility','DOCUMENT','filter','data','url','updateCurrentDocument','object','ai-chat-file-upload-failed','find','ai-chat-source-resources-load-failed','sourceResourcesLoaded','mapContextItemsToRequestData','contextItemLoadingEnded','addUrlToContext','fire','loadSourceResources','attributes','60270eouCAU','isHidden','_addToConversationContextItem','getDocument','startsWith','_mapContextItemToRequestData','removeSelectionFromContext','12705341GTYHuj','resourceId','from','_startUploadOperation','getData','ai-chat-context-invalid-data','_setAddContextOptionsDefaultState','_ongoingUploads','message'];_0x301b=function(){return _0xb6e314;};return _0x301b();}(function(_0x498d56,_0xa41bfb){const _0x1b14dd=_0x1a9e,_0x23ed5e=_0x498d56();while(!![]){try{const _0x36aafe=parseInt(_0x1b14dd(0x21e))/0x1*(-parseInt(_0x1b14dd(0x250))/0x2)+parseInt(_0x1b14dd(0x24f))/0x3*(parseInt(_0x1b14dd(0x229))/0x4)+parseInt(_0x1b14dd(0x1f7))/0x5*(parseInt(_0x1b14dd(0x221))/0x6)+parseInt(_0x1b14dd(0x1ef))/0x7*(-parseInt(_0x1b14dd(0x245))/0x8)+-parseInt(_0x1b14dd(0x201))/0x9*(parseInt(_0x1b14dd(0x26c))/0xa)+parseInt(_0x1b14dd(0x273))/0xb+-parseInt(_0x1b14dd(0x214))/0xc*(-parseInt(_0x1b14dd(0x1fa))/0xd);if(_0x36aafe===_0xa41bfb)break;else _0x23ed5e['push'](_0x23ed5e['shift']());}catch(_0x3d8387){_0x23ed5e['push'](_0x23ed5e['shift']());}}}(_0x301b,0xbdebc));import{CKEditorError as _0x59e32b,ObservableMixin as _0x132ae2,uid as _0x439105}from'ckeditor5/src/utils.js';function _0x1a9e(_0x568072,_0x779178){const _0x301bb8=_0x301b();return _0x1a9e=function(_0x1a9e01,_0x4dc1d9){_0x1a9e01=_0x1a9e01-0x1e6;let _0x2394b3=_0x301bb8[_0x1a9e01];return _0x2394b3;},_0x1a9e(_0x568072,_0x779178);}import{AIContextItemType as _0x417156,AIContextTextResourceType as _0x24355c}from'../../aicore/model/aicontext.js';import{escape as _0x3ac15e}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x249f1b(0x217),_0x249f1b(0x1ec),_0x249f1b(0x267),_0x249f1b(0x236),_0x249f1b(0x205),_0x249f1b(0x222),_0x249f1b(0x265),_0x249f1b(0x22f),_0x249f1b(0x231)];export class AIChatContext extends _0x132ae2(){[_0x249f1b(0x235)];[_0x249f1b(0x23d)];[_0x249f1b(0x24c)];constructor({connector:_0xc70215,config:_0x3fb860,ownerId:_0x29fad7}){const _0x16e99e=_0x249f1b;super(),this[_0x16e99e(0x235)]=_0xc70215,this[_0x16e99e(0x23d)]=_0x3fb860,this[_0x16e99e(0x24c)]=_0x29fad7;}[_0x249f1b(0x23a)](){const _0x778090=_0x249f1b;this[_0x778090(0x1f4)]=new Map(),this[_0x778090(0x22e)]=new Map(),this[_0x778090(0x1e9)]=new Map(),this[_0x778090(0x20c)]=new Map(),this[_0x778090(0x1e8)]();}[_0x249f1b(0x1f3)](){const _0x1ee019=_0x249f1b;return this[_0x1ee019(0x1f4)];}async[_0x249f1b(0x223)](_0x1bd257){const _0x549108=_0x249f1b,_0x5a3396=await this[_0x549108(0x1eb)](_0x1bd257);return this[_0x549108(0x26e)](_0x5a3396),_0x549108(0x22c)===_0x5a3396[_0x549108(0x25a)]&&this[_0x549108(0x25b)](),_0x5a3396;}async[_0x249f1b(0x1eb)](_0x1acece){const _0x3e3f53=_0x249f1b;if(_0x1acece[_0x3e3f53(0x20a)]===_0x417156[_0x3e3f53(0x25c)]){const _0x41a1a8=await this[_0x3e3f53(0x235)][_0x3e3f53(0x22a)](this[_0x3e3f53(0x24c)],_0x1acece['id'])[_0x3e3f53(0x26f)]();return{'id':_0x3e3f53(0x22c),'uiId':_0x3e3f53(0x22c),'label':_0x3e3f53(0x227),'type':_0x1acece[_0x3e3f53(0x20a)],'content':_0x41a1a8[_0x3e3f53(0x212)],'hidden':this[_0x3e3f53(0x22e)][_0x3e3f53(0x21d)](_0x3e3f53(0x22c)),'version':_0x41a1a8[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x247)],'sessionId':_0x41a1a8[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x24a)]};}return{'id':_0x1acece['id'],'uiId':_0x1acece['id'],'label':_0x1acece[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x1fc)]||_0x1acece[_0x3e3f53(0x203)]||_0x1acece[_0x3e3f53(0x25f)]||_0x1acece['id'],'type':_0x1acece[_0x3e3f53(0x20a)],..._0x1acece?.[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x274)]?{'resourceId':_0x1acece[_0x3e3f53(0x26b)]?.[_0x3e3f53(0x274)]}:{}};}[_0x249f1b(0x20f)](){const _0x169407=_0x249f1b;return new Map(this[_0x169407(0x22e)]);}[_0x249f1b(0x1f6)](_0x56fe7e){const _0x3f8ec6=_0x249f1b,_0x411afe=this[_0x3f8ec6(0x1f4)][_0x3f8ec6(0x22b)](_0x56fe7e);_0x411afe?.[_0x3f8ec6(0x20b)]||this[_0x3f8ec6(0x21a)](_0x56fe7e);}[_0x249f1b(0x1f8)](){const _0x2ca890=_0x249f1b;if(0x0===this[_0x2ca890(0x1f4)][_0x2ca890(0x206)])return;for(const _0x33a096 of this[_0x2ca890(0x1f4)][_0x2ca890(0x249)]())this[_0x2ca890(0x21a)](_0x33a096[_0x2ca890(0x25a)]);const _0x269f37=this[_0x2ca890(0x22e)][_0x2ca890(0x22b)](_0x2ca890(0x22c))||this[_0x2ca890(0x1f4)][_0x2ca890(0x22b)](_0x2ca890(0x22c));_0x269f37&&this[_0x2ca890(0x259)]({..._0x269f37,'isReadOnly':!0x0,'hidden':!0x0});}[_0x249f1b(0x23e)](_0x89f98e){const _0x50b7ac=_0x249f1b;for(const _0x105b93 of _0x89f98e[_0x50b7ac(0x249)]())this[_0x50b7ac(0x26e)](_0x105b93);this[_0x50b7ac(0x1f8)](),this[_0x50b7ac(0x269)](_0x50b7ac(0x236),{'contextItems':Array[_0x50b7ac(0x275)](this[_0x50b7ac(0x20f)]()[_0x50b7ac(0x249)]())});}[_0x249f1b(0x204)](){const _0x4766a8=_0x249f1b;return this[_0x4766a8(0x1f4)][_0x4766a8(0x21d)](_0x4766a8(0x22c));}[_0x249f1b(0x257)](){const _0xc4e7cd=_0x249f1b;return this[_0xc4e7cd(0x1f4)][_0xc4e7cd(0x21d)](_0xc4e7cd(0x230));}[_0x249f1b(0x228)](){const _0x988659=_0x249f1b;return this[_0x988659(0x22e)][_0x988659(0x21d)](_0x988659(0x22c));}static[_0x249f1b(0x266)](_0x1b51cf){const _0x658d90=_0x249f1b;return Array[_0x658d90(0x275)](_0x1b51cf[_0x658d90(0x249)]())[_0x658d90(0x21c)](_0x3f98aa=>this[_0x658d90(0x271)](_0x3f98aa))[_0x658d90(0x25d)](_0xade571=>null!==_0xade571);}async[_0x249f1b(0x202)](_0x43a6f9,_0x171085,_0x4a3b0d=_0x417156[_0x249f1b(0x23c)]){const _0x4a00ea=_0x249f1b,_0x11d728=_0x4a00ea(0x210)+_0x439105();this[_0x4a00ea(0x276)](_0x11d728);try{await Promise[_0x4a00ea(0x1ee)](_0x43a6f9[_0x4a00ea(0x21c)](async _0x27ddf8=>{const _0x141a20=_0x4a00ea,_0x4f6fa2=_0x141a20(0x233)+_0x439105(),_0x500f07=_0x3ac15e(_0x27ddf8[_0x141a20(0x203)]);try{this[_0x141a20(0x259)]({'type':_0x4a3b0d,'label':_0x171085?.[_0x141a20(0x1fc)]||_0x500f07,'uiId':_0x4f6fa2,'resourceId':_0x171085?.[_0x141a20(0x274)]},!0x0);const _0x5a728b=this[_0x141a20(0x235)][_0x141a20(0x22d)](this[_0x141a20(0x24c)],_0x27ddf8,_0x171085);this[_0x141a20(0x1e9)][_0x141a20(0x253)](_0x4f6fa2,_0x5a728b[_0x141a20(0x241)]);const {id:_0x1f1e3c}=await _0x5a728b[_0x141a20(0x24d)]();this[_0x141a20(0x1e9)][_0x141a20(0x1f0)](_0x4f6fa2),this[_0x141a20(0x208)]({'type':_0x4a3b0d,'id':_0x1f1e3c,'label':_0x171085?.[_0x141a20(0x1fc)]||_0x500f07,'uiId':_0x4f6fa2,'resourceId':_0x171085?.[_0x141a20(0x274)]},!0x1);}catch(_0x3c8165){this[_0x141a20(0x1e9)][_0x141a20(0x1f0)](_0x4f6fa2);if(!_0x3c8165[_0x141a20(0x1ea)][_0x141a20(0x270)](_0x141a20(0x1ff))){const _0x1741d9=new _0x59e32b(_0x141a20(0x262),null,{'fileName':_0x500f07});_0x1741d9[_0x141a20(0x251)]=_0x3c8165[_0x141a20(0x251)],this[_0x141a20(0x269)](_0x141a20(0x205),{'error':_0x1741d9,'fileName':_0x500f07});}this[_0x141a20(0x21a)](_0x4f6fa2);}}));}finally{this[_0x4a00ea(0x237)](_0x11d728);}}[_0x249f1b(0x234)](_0x28412b){const _0x1fa38d=_0x249f1b;if(this[_0x1fa38d(0x204)]())return;const _0x2b84f1={'type':_0x417156[_0x1fa38d(0x25c)],'uiId':_0x1fa38d(0x22c),'label':_0x28412b,'isReadOnly':this[_0x1fa38d(0x22e)][_0x1fa38d(0x21d)](_0x1fa38d(0x22c)),'hidden':this[_0x1fa38d(0x22e)][_0x1fa38d(0x21d)](_0x1fa38d(0x22c))};this[_0x1fa38d(0x259)](_0x2b84f1);}async[_0x249f1b(0x260)](_0x3533ac,_0x5ebe4b,_0x21b334,_0x323030){const _0x4ba8e0=_0x249f1b,_0x27efec=this[_0x4ba8e0(0x1f4)][_0x4ba8e0(0x22b)](_0x4ba8e0(0x22c));if(_0x27efec&&_0x3533ac){_0x27efec[_0x4ba8e0(0x230)]=_0x323030?_0x323030[_0x4ba8e0(0x21c)](_0xd2a2ec=>({'start':_0xd2a2ec[_0x4ba8e0(0x24e)],'end':_0xd2a2ec[_0x4ba8e0(0x24b)]})):[];try{if(_0x27efec[_0x4ba8e0(0x247)]===_0x5ebe4b)return;const {id:_0x31889c}=await this[_0x4ba8e0(0x235)][_0x4ba8e0(0x213)](this[_0x4ba8e0(0x24c)],_0x3533ac,{'version':_0x5ebe4b,'sessionId':_0x21b334})[_0x4ba8e0(0x24d)]();_0x27efec['id']=_0x31889c,_0x27efec[_0x4ba8e0(0x212)]=_0x3533ac,_0x27efec[_0x4ba8e0(0x247)]=_0x5ebe4b,_0x27efec[_0x4ba8e0(0x24a)]=_0x21b334;}catch(_0x56f275){const _0x2887d0=new _0x59e32b(_0x4ba8e0(0x1f2),null);_0x2887d0[_0x4ba8e0(0x251)]=_0x56f275[_0x4ba8e0(0x251)],this[_0x4ba8e0(0x269)](_0x4ba8e0(0x205),{'error':_0x2887d0});}}}[_0x249f1b(0x1fb)](_0x50f0c8){const _0x38f676=_0x249f1b;this[_0x38f676(0x259)]({'type':_0x417156[_0x38f676(0x1fe)],'label':_0x50f0c8,'uiId':_0x38f676(0x230),'content':_0x50f0c8});}[_0x249f1b(0x272)](){const _0x49a423=_0x249f1b;this[_0x49a423(0x21a)](_0x49a423(0x230));}async[_0x249f1b(0x268)](_0x2c86d9,_0x2a6cde){const _0x1c3dc9=_0x249f1b,_0x1b85e3=_0x1c3dc9(0x209)+_0x439105();this[_0x1c3dc9(0x276)](_0x1b85e3);const _0x3e1ccd=_0x1c3dc9(0x209)+_0x439105();try{this[_0x1c3dc9(0x259)]({'type':_0x417156[_0x1c3dc9(0x1f1)],'label':_0x2a6cde?.[_0x1c3dc9(0x1fc)]||_0x2c86d9,'uiId':_0x3e1ccd,'resourceId':_0x2a6cde?.[_0x1c3dc9(0x274)]},!0x0);const _0x325586=this[_0x1c3dc9(0x235)][_0x1c3dc9(0x239)](this[_0x1c3dc9(0x24c)],_0x2c86d9,_0x2a6cde);this[_0x1c3dc9(0x1e9)][_0x1c3dc9(0x253)](_0x3e1ccd,_0x325586[_0x1c3dc9(0x241)]);const {id:_0x40c2c4}=await _0x325586[_0x1c3dc9(0x24d)]();this[_0x1c3dc9(0x1e9)][_0x1c3dc9(0x1f0)](_0x3e1ccd),this[_0x1c3dc9(0x208)]({'type':_0x417156[_0x1c3dc9(0x1f1)],'id':_0x40c2c4,'label':_0x2a6cde?.[_0x1c3dc9(0x1fc)]||_0x2c86d9,'uiId':_0x3e1ccd,'resourceId':_0x2a6cde?.[_0x1c3dc9(0x274)]},!0x1);}catch(_0x3cf346){this[_0x1c3dc9(0x1e9)][_0x1c3dc9(0x1f0)](_0x3e1ccd),(_0x3cf346[_0x1c3dc9(0x1ea)][_0x1c3dc9(0x270)](_0x1c3dc9(0x1ff))||this[_0x1c3dc9(0x269)](_0x1c3dc9(0x205),{'error':new _0x59e32b(_0x1c3dc9(0x224),this,{'url':_0x2c86d9,'originalError':_0x3cf346}),'url':_0x2c86d9}),this[_0x1c3dc9(0x21a)](_0x3e1ccd));}finally{this[_0x1c3dc9(0x237)](_0x1b85e3);}}async[_0x249f1b(0x26a)](_0x4ec595,_0x294f81,_0x514400){const _0x4ba85f=_0x249f1b,_0x79385c=this[_0x4ba85f(0x256)][_0x4ba85f(0x1ed)][_0x4ba85f(0x263)](_0x22dd99=>_0x22dd99['id']===_0x4ec595);if(!_0x79385c)return this[_0x4ba85f(0x269)](_0x4ba85f(0x205),{'error':new _0x59e32b(_0x4ba85f(0x20e),this,{'sourceId':_0x4ec595}),'sourceId':_0x4ec595}),[];try{const _0x14063e=(await _0x79385c[_0x4ba85f(0x252)](_0x294f81))[_0x4ba85f(0x21c)](_0xec45ce=>{const _0x783061=_0x4ba85f,_0x394805=this[_0x783061(0x20d)](_0xec45ce['id']);return{..._0xec45ce,'isInContext':_0x394805};});return _0x79385c[_0x4ba85f(0x258)]=_0x14063e,this[_0x4ba85f(0x269)](_0x4ba85f(0x265),{'sourceId':_0x4ec595,'source':_0x79385c,'resources':_0x14063e,'uid':_0x514400}),_0x14063e;}catch(_0x20f7c0){return this[_0x4ba85f(0x269)](_0x4ba85f(0x205),{'error':new _0x59e32b(_0x4ba85f(0x264),this,{'sourceId':_0x4ec595,'originalError':_0x20f7c0}),'sourceId':_0x4ec595,'sourceLabel':_0x79385c[_0x4ba85f(0x1fc)]}),[];}}async[_0x249f1b(0x244)](_0x500f0b,_0x12c470){const _0x427184=_0x249f1b;if(this[_0x427184(0x20d)](_0x12c470['id']))return;let _0x44eb9b=_0x12c470[_0x427184(0x25e)];if(!_0x44eb9b&&_0x500f0b[_0x427184(0x1e6)])try{_0x44eb9b=await _0x500f0b[_0x427184(0x1e6)](_0x12c470['id']);}catch(_0x44fa02){return void this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x219),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'originalError':_0x44fa02}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});}if(_0x44eb9b)switch(_0x12c470[_0x427184(0x20a)]){case _0x417156[_0x427184(0x1f1)]:if(_0x427184(0x200)!=typeof _0x44eb9b)return void this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x1e7),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'expectedType':_0x427184(0x200),'actualType':typeof _0x44eb9b}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});await this[_0x427184(0x268)](_0x44eb9b,{'label':_0x12c470[_0x427184(0x1fc)],'resourceId':_0x12c470['id']});break;case _0x417156[_0x427184(0x23c)]:if(!(_0x44eb9b instanceof File))return void this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x1e7),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'expectedType':_0x427184(0x21b),'actualType':typeof _0x44eb9b}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});await this[_0x427184(0x202)]([_0x44eb9b],{'label':_0x12c470[_0x427184(0x1fc)],'resourceId':_0x12c470['id']});break;case _0x417156[_0x427184(0x218)]:if(_0x427184(0x261)!=typeof _0x44eb9b||!(_0x427184(0x212)in _0x44eb9b)||!(_0x427184(0x20a)in _0x44eb9b))return void this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x1e7),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'expectedType':_0x427184(0x215),'actualType':typeof _0x44eb9b}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});_0x44eb9b=AIChatContext[_0x427184(0x23f)](_0x44eb9b,_0x12c470[_0x427184(0x1fc)]),await this[_0x427184(0x202)]([_0x44eb9b],{'label':_0x12c470[_0x427184(0x1fc)],'resourceId':_0x12c470['id']},_0x417156[_0x427184(0x218)]);break;default:this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x216),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id'],'resourceType':_0x12c470[_0x427184(0x20a)]}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});}else this[_0x427184(0x269)](_0x427184(0x205),{'error':new _0x59e32b(_0x427184(0x211),this,{'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']}),'resourceId':_0x12c470['id'],'sourceId':_0x500f0b['id']});}static[_0x249f1b(0x23f)](_0x4fdf6a,_0x17dab2){const _0x592fe3=_0x249f1b;switch(_0x4fdf6a[_0x592fe3(0x20a)]){case _0x24355c[_0x592fe3(0x226)]:return new File([_0x4fdf6a[_0x592fe3(0x212)]],_0x17dab2,{'type':_0x592fe3(0x240)});case _0x24355c[_0x592fe3(0x1f5)]:return new File([_0x4fdf6a[_0x592fe3(0x212)]],_0x17dab2,{'type':_0x592fe3(0x246)});default:return new File([_0x4fdf6a[_0x592fe3(0x212)]],_0x17dab2,{'type':_0x592fe3(0x207)});}}static[_0x249f1b(0x271)](_0x2b8268){const _0x57c286=_0x249f1b;switch(_0x2b8268[_0x57c286(0x20a)]){case _0x417156[_0x57c286(0x23c)]:return{'type':_0x417156[_0x57c286(0x23c)],'id':_0x2b8268['id']};case _0x417156[_0x57c286(0x1f1)]:return{'type':_0x417156[_0x57c286(0x1f1)],'id':_0x2b8268['id']};case _0x417156[_0x57c286(0x25c)]:return{'type':_0x417156[_0x57c286(0x25c)],'id':_0x2b8268['id'],..._0x2b8268[_0x57c286(0x230)]?.[_0x57c286(0x238)]&&{'selection':_0x2b8268[_0x57c286(0x230)]}};case _0x417156[_0x57c286(0x218)]:return{'type':_0x417156[_0x57c286(0x23c)],'id':_0x2b8268['id']};default:return null;}}[_0x249f1b(0x259)](_0x475599,_0x249645=!0x1){const _0x3df63d=_0x249f1b;if(this[_0x3df63d(0x1f4)][_0x3df63d(0x253)](_0x475599[_0x3df63d(0x25a)],_0x475599),_0x475599[_0x3df63d(0x23b)]||this[_0x3df63d(0x269)](_0x3df63d(0x217),{'contextItem':_0x475599,'isLoading':_0x249645}),_0x3df63d(0x22c)===_0x475599[_0x3df63d(0x25a)]&&this[_0x3df63d(0x25b)](),_0x475599[_0x3df63d(0x274)]){const _0x5cb4f9=this[_0x3df63d(0x242)](_0x475599[_0x3df63d(0x274)]);_0x5cb4f9&&_0x5cb4f9[_0x3df63d(0x220)](_0x56e17b=>{const _0x5509c3=_0x3df63d;this[_0x5509c3(0x248)](_0x56e17b,_0x475599[_0x5509c3(0x274)],!0x0);});}}[_0x249f1b(0x21a)](_0x3df38e){const _0x363b18=_0x249f1b,_0x4bb5fe=this[_0x363b18(0x1f4)][_0x363b18(0x22b)](_0x3df38e),_0x2d52b9=this[_0x363b18(0x1e9)][_0x363b18(0x22b)](_0x3df38e);if(_0x2d52b9&&(_0x2d52b9[_0x363b18(0x232)](),this[_0x363b18(0x1e9)][_0x363b18(0x1f0)](_0x3df38e)),_0x4bb5fe?.[_0x363b18(0x274)]){const _0xce35b3=this[_0x363b18(0x242)](_0x4bb5fe[_0x363b18(0x274)]);_0xce35b3&&_0xce35b3[_0x363b18(0x220)](_0xec422=>{const _0x4a7805=_0x363b18;this[_0x4a7805(0x248)](_0xec422,_0x4bb5fe[_0x4a7805(0x274)],!0x1);});}this[_0x363b18(0x1f4)][_0x363b18(0x1f0)](_0x3df38e),this[_0x363b18(0x269)](_0x363b18(0x1ec),{'uiId':_0x3df38e,'type':_0x4bb5fe?.[_0x363b18(0x20a)]}),_0x363b18(0x22c)===_0x3df38e&&this[_0x363b18(0x25b)]();}[_0x249f1b(0x208)](_0x15c24f,_0x1a6735){const _0x46d373=_0x249f1b;if(this[_0x46d373(0x1f4)][_0x46d373(0x21d)](_0x15c24f[_0x46d373(0x25a)])&&(this[_0x46d373(0x1f4)][_0x46d373(0x253)](_0x15c24f[_0x46d373(0x25a)],_0x15c24f),this[_0x46d373(0x269)](_0x46d373(0x267),{'contextItem':_0x15c24f,'isLoading':_0x1a6735}),_0x15c24f[_0x46d373(0x274)])){const _0x2e6baa=this[_0x46d373(0x242)](_0x15c24f[_0x46d373(0x274)]);_0x2e6baa&&_0x2e6baa[_0x46d373(0x220)](_0x4a7528=>{const _0x1e2f3b=_0x46d373;this[_0x1e2f3b(0x248)](_0x4a7528,_0x15c24f[_0x1e2f3b(0x274)],!0x0);});}}[_0x249f1b(0x26e)](_0x1b027a){const _0x5c5f7b=_0x249f1b;this[_0x5c5f7b(0x22e)][_0x5c5f7b(0x253)](_0x1b027a[_0x5c5f7b(0x25a)],_0x1b027a);}[_0x249f1b(0x1e8)](){const _0x505b2a=_0x249f1b;this[_0x505b2a(0x256)]={'document':{'enabled':!0x1!==this[_0x505b2a(0x23d)]?.[_0x505b2a(0x1f9)]?.[_0x505b2a(0x243)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x505b2a(0x23d)]?.[_0x505b2a(0x21f)]?.[_0x505b2a(0x243)]},'files':{'enabled':!0x1!==this[_0x505b2a(0x23d)]?.[_0x505b2a(0x254)]?.[_0x505b2a(0x243)]},'sources':this[_0x505b2a(0x1fd)]()},this[_0x505b2a(0x269)](_0x505b2a(0x222),{'options':this[_0x505b2a(0x256)]});}[_0x249f1b(0x1fd)](){const _0x35fac5=_0x249f1b;return this[_0x35fac5(0x23d)]?.[_0x35fac5(0x1ed)]?.[_0x35fac5(0x21c)](_0x5ed404=>({..._0x5ed404,'resources':[]}))??[];}[_0x249f1b(0x25b)](){const _0xe6e5=_0x249f1b,_0x4253c4=this[_0xe6e5(0x204)]()||this[_0xe6e5(0x228)]();this[_0xe6e5(0x256)][_0xe6e5(0x1f9)][_0xe6e5(0x26d)]=_0x4253c4,this[_0xe6e5(0x269)](_0xe6e5(0x222),{'options':this[_0xe6e5(0x256)]});}[_0x249f1b(0x20d)](_0x5c5aa9){const _0x1e3571=_0x249f1b;for(const _0x13c8ef of this[_0x1e3571(0x1f4)][_0x1e3571(0x249)]())if(_0x13c8ef[_0x1e3571(0x274)]===_0x5c5aa9)return!0x0;for(const _0x5ba8cb of this[_0x1e3571(0x22e)][_0x1e3571(0x249)]())if(_0x5ba8cb[_0x1e3571(0x274)]===_0x5c5aa9)return!0x0;return!0x1;}[_0x249f1b(0x242)](_0x103255){const _0x146f72=_0x249f1b,_0x5e7a7c=[];for(const _0x41a0f3 of this[_0x146f72(0x256)][_0x146f72(0x1ed)]){_0x41a0f3[_0x146f72(0x258)][_0x146f72(0x263)](_0x44bd7e=>_0x44bd7e['id']===_0x103255)&&_0x5e7a7c[_0x146f72(0x255)](_0x41a0f3['id']);}return 0x0===_0x5e7a7c[_0x146f72(0x238)]?null:_0x5e7a7c;}[_0x249f1b(0x248)](_0x2323ee,_0x332df3,_0x493fa5){const _0x139fa3=_0x249f1b,_0x3d3b88=this[_0x139fa3(0x256)][_0x139fa3(0x1ed)][_0x139fa3(0x263)](_0x402855=>_0x402855['id']===_0x2323ee);if(!_0x3d3b88)return;const _0x86e419=_0x3d3b88[_0x139fa3(0x258)][_0x139fa3(0x263)](_0x4e73c2=>_0x4e73c2['id']===_0x332df3);_0x86e419&&(_0x86e419[_0x139fa3(0x225)]=_0x493fa5,this[_0x139fa3(0x269)](_0x139fa3(0x22f),{'sourceId':_0x2323ee,'resourceId':_0x332df3,'isInContext':_0x493fa5}));}[_0x249f1b(0x276)](_0x1ba656){const _0x43f358=_0x249f1b;this[_0x43f358(0x20c)][_0x43f358(0x253)](_0x1ba656,!0x0),this[_0x43f358(0x20c)][_0x43f358(0x206)]&&this[_0x43f358(0x269)](_0x43f358(0x231),{'isUploadInProgress':!0x0});}[_0x249f1b(0x237)](_0x3633b3){const _0x36787a=_0x249f1b;this[_0x36787a(0x20c)][_0x36787a(0x1f0)](_0x3633b3),0x0===this[_0x36787a(0x20c)][_0x36787a(0x206)]&&this[_0x36787a(0x269)](_0x36787a(0x231),{'isUploadInProgress':!0x1});}}
23
+ function _0x2ec3(_0x433b10,_0x4499fe){const _0x3daedb=_0x3dae();return _0x2ec3=function(_0x2ec3f2,_0x3273be){_0x2ec3f2=_0x2ec3f2-0x18e;let _0x2b041a=_0x3daedb[_0x2ec3f2];return _0x2b041a;},_0x2ec3(_0x433b10,_0x4499fe);}const _0x453b6d=_0x2ec3;(function(_0x522e03,_0x3d5405){const _0x447386=_0x2ec3,_0x425b08=_0x522e03();while(!![]){try{const _0x260df9=-parseInt(_0x447386(0x1f6))/0x1*(-parseInt(_0x447386(0x1fe))/0x2)+parseInt(_0x447386(0x1e8))/0x3+-parseInt(_0x447386(0x1b9))/0x4*(-parseInt(_0x447386(0x1a3))/0x5)+-parseInt(_0x447386(0x192))/0x6+-parseInt(_0x447386(0x1e6))/0x7*(parseInt(_0x447386(0x201))/0x8)+parseInt(_0x447386(0x1ec))/0x9*(-parseInt(_0x447386(0x214))/0xa)+-parseInt(_0x447386(0x1db))/0xb*(parseInt(_0x447386(0x209))/0xc);if(_0x260df9===_0x3d5405)break;else _0x425b08['push'](_0x425b08['shift']());}catch(_0x382016){_0x425b08['push'](_0x425b08['shift']());}}}(_0x3dae,0x8142b));import{CKEditorError as _0x5a252e,ObservableMixin as _0x2c3e1b,uid as _0x5c3674}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x209a0c,AIContextTextResourceType as _0xf7701a}from'../../aicore/model/aicontext.js';import{escape as _0x437800}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x453b6d(0x19c),_0x453b6d(0x1e7),_0x453b6d(0x1fc),_0x453b6d(0x1c2),_0x453b6d(0x1f7),_0x453b6d(0x19a),_0x453b6d(0x1ea),_0x453b6d(0x1c6),_0x453b6d(0x1eb)];export class AIChatContext extends _0x2c3e1b(){[_0x453b6d(0x1d8)];[_0x453b6d(0x18f)];[_0x453b6d(0x1a1)];constructor({connector:_0x4c9fb5,config:_0x266dcb,ownerId:_0x1f431d}){const _0x253bb0=_0x453b6d;super(),this[_0x253bb0(0x1d8)]=_0x4c9fb5,this[_0x253bb0(0x18f)]=_0x266dcb,this[_0x253bb0(0x1a1)]=_0x1f431d;}[_0x453b6d(0x20e)](){const _0x48dfb9=_0x453b6d;this[_0x48dfb9(0x1c8)]=new Map(),this[_0x48dfb9(0x202)]=new Map(),this[_0x48dfb9(0x1f2)]=new Map(),this[_0x48dfb9(0x1fd)]=new Map(),this[_0x48dfb9(0x1d2)]();}[_0x453b6d(0x20f)](){const _0x424095=_0x453b6d;return this[_0x424095(0x1c8)];}async[_0x453b6d(0x19d)](_0x12923d){const _0x1d3d49=_0x453b6d,_0x10db1b=await this[_0x1d3d49(0x1ab)](_0x12923d);return this[_0x1d3d49(0x197)](_0x10db1b),_0x1d3d49(0x1c5)===_0x10db1b[_0x1d3d49(0x193)]&&this[_0x1d3d49(0x1d7)](),_0x10db1b;}async[_0x453b6d(0x1ab)](_0x4f0b24){const _0x4d2e82=_0x453b6d;if(_0x4f0b24[_0x4d2e82(0x213)]===_0x209a0c[_0x4d2e82(0x20d)]){const _0x52c14f=await this[_0x4d2e82(0x1d8)][_0x4d2e82(0x1ca)](this[_0x4d2e82(0x1a1)],_0x4f0b24['id'])[_0x4d2e82(0x1e1)]();return{'id':_0x4d2e82(0x1c5),'uiId':_0x4d2e82(0x1c5),'label':_0x4d2e82(0x1c1),'type':_0x4f0b24[_0x4d2e82(0x213)],'content':_0x52c14f[_0x4d2e82(0x1e2)],'hidden':this[_0x4d2e82(0x202)][_0x4d2e82(0x1bd)](_0x4d2e82(0x1c5)),'version':_0x52c14f[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x18e)],'sessionId':_0x52c14f[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x1a9)]};}return{'id':_0x4f0b24['id'],'uiId':_0x4f0b24['id'],'label':_0x4f0b24[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x191)]||_0x4f0b24[_0x4d2e82(0x204)]||_0x4f0b24[_0x4d2e82(0x210)]||_0x4f0b24['id'],'type':_0x4f0b24[_0x4d2e82(0x213)],..._0x4f0b24?.[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x1b3)]?{'resourceId':_0x4f0b24[_0x4d2e82(0x1d4)]?.[_0x4d2e82(0x1b3)]}:{}};}[_0x453b6d(0x1e3)](){const _0x18e8a2=_0x453b6d;return new Map(this[_0x18e8a2(0x202)]);}[_0x453b6d(0x1e9)](_0x4c8d14){const _0x430c84=_0x453b6d,_0xf68a8e=this[_0x430c84(0x1c8)][_0x430c84(0x203)](_0x4c8d14);_0xf68a8e?.[_0x430c84(0x211)]||this[_0x430c84(0x21d)](_0x4c8d14);}[_0x453b6d(0x207)](){const _0x24d7a8=_0x453b6d;if(0x0===this[_0x24d7a8(0x1c8)][_0x24d7a8(0x1ff)])return;for(const _0x65c889 of this[_0x24d7a8(0x1c8)][_0x24d7a8(0x1cc)]())this[_0x24d7a8(0x21d)](_0x65c889[_0x24d7a8(0x193)]);const _0x828bd1=this[_0x24d7a8(0x202)][_0x24d7a8(0x203)](_0x24d7a8(0x1c5))||this[_0x24d7a8(0x1c8)][_0x24d7a8(0x203)](_0x24d7a8(0x1c5));_0x828bd1&&this[_0x24d7a8(0x1dc)]({..._0x828bd1,'isReadOnly':!0x0,'hidden':!0x0});}[_0x453b6d(0x1a8)](_0x4291c7){const _0xb72b9b=_0x453b6d;for(const _0x3d980b of _0x4291c7[_0xb72b9b(0x1cc)]())this[_0xb72b9b(0x197)](_0x3d980b);this[_0xb72b9b(0x207)](),this[_0xb72b9b(0x1b2)](_0xb72b9b(0x1c2),{'contextItems':Array[_0xb72b9b(0x1b7)](this[_0xb72b9b(0x1e3)]()[_0xb72b9b(0x1cc)]())});}[_0x453b6d(0x194)](){const _0x58b56d=_0x453b6d;return this[_0x58b56d(0x1c8)][_0x58b56d(0x1bd)](_0x58b56d(0x1c5));}[_0x453b6d(0x1d3)](){const _0x255a5a=_0x453b6d;return this[_0x255a5a(0x1c8)][_0x255a5a(0x1bd)](_0x255a5a(0x1de));}[_0x453b6d(0x1f1)](){const _0x3cfbd7=_0x453b6d;return this[_0x3cfbd7(0x202)][_0x3cfbd7(0x1bd)](_0x3cfbd7(0x1c5));}static[_0x453b6d(0x1ef)](_0x158b66){const _0x192326=_0x453b6d;return Array[_0x192326(0x1b7)](_0x158b66[_0x192326(0x1cc)]())[_0x192326(0x19f)](_0x502ce3=>this[_0x192326(0x198)](_0x502ce3))[_0x192326(0x217)](_0x48df45=>null!==_0x48df45);}async[_0x453b6d(0x1d0)](_0x177145,_0x596a89,_0x2889cf=_0x209a0c[_0x453b6d(0x1dd)]){const _0x2af0f3=_0x453b6d,_0xf388f2=_0x2af0f3(0x219)+_0x5c3674();this[_0x2af0f3(0x1b8)](_0xf388f2);try{await Promise[_0x2af0f3(0x1a0)](_0x177145[_0x2af0f3(0x19f)](async _0x4a8e36=>{const _0x27a0d6=_0x2af0f3,_0x3c8705=_0x27a0d6(0x1c7)+_0x5c3674(),_0x693db8=_0x437800(_0x4a8e36[_0x27a0d6(0x204)]);try{this[_0x27a0d6(0x1dc)]({'type':_0x2889cf,'label':_0x596a89?.[_0x27a0d6(0x191)]||_0x693db8,'uiId':_0x3c8705,'resourceId':_0x596a89?.[_0x27a0d6(0x1b3)]},!0x0);const _0x20416c=this[_0x27a0d6(0x1d8)][_0x27a0d6(0x1ce)](this[_0x27a0d6(0x1a1)],_0x4a8e36,_0x596a89);this[_0x27a0d6(0x1f2)][_0x27a0d6(0x20a)](_0x3c8705,_0x20416c[_0x27a0d6(0x1ba)]);const {id:_0x19201d}=await _0x20416c[_0x27a0d6(0x1a2)]();this[_0x27a0d6(0x1f2)][_0x27a0d6(0x1f8)](_0x3c8705),this[_0x27a0d6(0x218)]({'type':_0x2889cf,'id':_0x19201d,'label':_0x596a89?.[_0x27a0d6(0x191)]||_0x693db8,'uiId':_0x3c8705,'resourceId':_0x596a89?.[_0x27a0d6(0x1b3)]},!0x1);}catch(_0x2c14b4){this[_0x27a0d6(0x1f2)][_0x27a0d6(0x1f8)](_0x3c8705);if(!_0x2c14b4[_0x27a0d6(0x1ae)][_0x27a0d6(0x206)](_0x27a0d6(0x1da))){const _0x41d3c6=new _0x5a252e(_0x27a0d6(0x1a4),null,{'fileName':_0x693db8});_0x41d3c6[_0x27a0d6(0x20b)]=_0x2c14b4[_0x27a0d6(0x20b)],this[_0x27a0d6(0x1b2)](_0x27a0d6(0x1f7),{'error':_0x41d3c6,'fileName':_0x693db8});}this[_0x27a0d6(0x21d)](_0x3c8705);}}));}finally{this[_0x2af0f3(0x1d6)](_0xf388f2);}}[_0x453b6d(0x205)](_0x26926c){const _0x358d92=_0x453b6d;if(this[_0x358d92(0x194)]())return;const _0x403d30={'type':_0x209a0c[_0x358d92(0x20d)],'uiId':_0x358d92(0x1c5),'label':_0x26926c,'isReadOnly':this[_0x358d92(0x202)][_0x358d92(0x1bd)](_0x358d92(0x1c5)),'hidden':this[_0x358d92(0x202)][_0x358d92(0x1bd)](_0x358d92(0x1c5))};this[_0x358d92(0x1dc)](_0x403d30);}async[_0x453b6d(0x1d1)](_0x5d817d,_0x10e3e8,_0x9d6972,_0x84bf02){const _0x42f332=_0x453b6d,_0x47c9f2=this[_0x42f332(0x1c8)][_0x42f332(0x203)](_0x42f332(0x1c5));if(_0x47c9f2&&_0x5d817d){_0x47c9f2[_0x42f332(0x1de)]=_0x84bf02?_0x84bf02[_0x42f332(0x19f)](_0x13c174=>({'start':_0x13c174[_0x42f332(0x19e)],'end':_0x13c174[_0x42f332(0x1bc)]})):[];try{if(_0x47c9f2[_0x42f332(0x18e)]===_0x10e3e8)return;const {id:_0x4226e9}=await this[_0x42f332(0x1d8)][_0x42f332(0x1b0)](this[_0x42f332(0x1a1)],_0x5d817d,{'version':_0x10e3e8,'sessionId':_0x9d6972})[_0x42f332(0x1a2)]();_0x47c9f2['id']=_0x4226e9,_0x47c9f2[_0x42f332(0x1e2)]=_0x5d817d,_0x47c9f2[_0x42f332(0x18e)]=_0x10e3e8,_0x47c9f2[_0x42f332(0x1a9)]=_0x9d6972;}catch(_0x546b72){const _0x20254f=new _0x5a252e(_0x42f332(0x21c),null);_0x20254f[_0x42f332(0x20b)]=_0x546b72[_0x42f332(0x20b)],this[_0x42f332(0x1b2)](_0x42f332(0x1f7),{'error':_0x20254f});}}}[_0x453b6d(0x196)](_0x11b0fb){const _0x5aee3d=_0x453b6d;this[_0x5aee3d(0x1dc)]({'type':_0x209a0c[_0x5aee3d(0x1af)],'label':_0x11b0fb,'uiId':_0x5aee3d(0x1de),'content':_0x11b0fb});}[_0x453b6d(0x1e4)](){const _0x59a1d0=_0x453b6d;this[_0x59a1d0(0x21d)](_0x59a1d0(0x1de));}async[_0x453b6d(0x1e5)](_0x454c21,_0x3ee8be){const _0x437405=_0x453b6d,_0x2dc46e=_0x437405(0x1b6)+_0x5c3674();this[_0x437405(0x1b8)](_0x2dc46e);const _0xbedb2=_0x437405(0x1b6)+_0x5c3674();try{this[_0x437405(0x1dc)]({'type':_0x209a0c[_0x437405(0x1ed)],'label':_0x3ee8be?.[_0x437405(0x191)]||_0x454c21,'uiId':_0xbedb2,'resourceId':_0x3ee8be?.[_0x437405(0x1b3)]},!0x0);const _0x12ad45=this[_0x437405(0x1d8)][_0x437405(0x1b4)](this[_0x437405(0x1a1)],_0x454c21,_0x3ee8be);this[_0x437405(0x1f2)][_0x437405(0x20a)](_0xbedb2,_0x12ad45[_0x437405(0x1ba)]);const {id:_0x25a91b}=await _0x12ad45[_0x437405(0x1a2)]();this[_0x437405(0x1f2)][_0x437405(0x1f8)](_0xbedb2),this[_0x437405(0x218)]({'type':_0x209a0c[_0x437405(0x1ed)],'id':_0x25a91b,'label':_0x3ee8be?.[_0x437405(0x191)]||_0x454c21,'uiId':_0xbedb2,'resourceId':_0x3ee8be?.[_0x437405(0x1b3)]},!0x1);}catch(_0x169dbb){this[_0x437405(0x1f2)][_0x437405(0x1f8)](_0xbedb2),(_0x169dbb[_0x437405(0x1ae)][_0x437405(0x206)](_0x437405(0x1da))||this[_0x437405(0x1b2)](_0x437405(0x1f7),{'error':new _0x5a252e(_0x437405(0x1f3),this,{'url':_0x454c21,'originalError':_0x169dbb}),'url':_0x454c21}),this[_0x437405(0x21d)](_0xbedb2));}finally{this[_0x437405(0x1d6)](_0x2dc46e);}}async[_0x453b6d(0x1bb)](_0x1604a4,_0x4a4ac2,_0x4851aa){const _0x1e3a10=_0x453b6d,_0x1582ac=this[_0x1e3a10(0x1aa)][_0x1e3a10(0x1ad)][_0x1e3a10(0x1df)](_0x1adf97=>_0x1adf97['id']===_0x1604a4);if(!_0x1582ac)return this[_0x1e3a10(0x1b2)](_0x1e3a10(0x1f7),{'error':new _0x5a252e(_0x1e3a10(0x1fb),this,{'sourceId':_0x1604a4}),'sourceId':_0x1604a4}),[];try{const _0x1ed7a9=(await _0x1582ac[_0x1e3a10(0x199)](_0x4a4ac2))[_0x1e3a10(0x19f)](_0xcdb581=>{const _0xb11d81=_0x1e3a10,_0x14f395=this[_0xb11d81(0x1f4)](_0xcdb581['id']);return{..._0xcdb581,'isInContext':_0x14f395};});return _0x1582ac[_0x1e3a10(0x1b1)]=_0x1ed7a9,this[_0x1e3a10(0x1b2)](_0x1e3a10(0x1ea),{'sourceId':_0x1604a4,'source':_0x1582ac,'resources':_0x1ed7a9,'uid':_0x4851aa}),_0x1ed7a9;}catch(_0x29f82c){return this[_0x1e3a10(0x1b2)](_0x1e3a10(0x1f7),{'error':new _0x5a252e(_0x1e3a10(0x1c9),this,{'sourceId':_0x1604a4,'originalError':_0x29f82c}),'sourceId':_0x1604a4,'sourceLabel':_0x1582ac[_0x1e3a10(0x191)]}),[];}}async[_0x453b6d(0x1a6)](_0x179aea,_0x48f1c0){const _0x168e78=_0x453b6d;if(this[_0x168e78(0x1f4)](_0x48f1c0['id']))return;let _0x126cd4=_0x48f1c0[_0x168e78(0x1bf)];if(!_0x126cd4&&_0x179aea[_0x168e78(0x1f0)])try{_0x126cd4=await _0x179aea[_0x168e78(0x1f0)](_0x48f1c0['id']);}catch(_0x3eb077){return void this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1f5),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'originalError':_0x3eb077}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});}if(_0x126cd4)switch(_0x48f1c0[_0x168e78(0x213)]){case _0x209a0c[_0x168e78(0x1ed)]:if(_0x168e78(0x212)!=typeof _0x126cd4)return void this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1ee),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'expectedType':_0x168e78(0x212),'actualType':typeof _0x126cd4}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});await this[_0x168e78(0x1e5)](_0x126cd4,{'label':_0x48f1c0[_0x168e78(0x191)],'resourceId':_0x48f1c0['id']});break;case _0x209a0c[_0x168e78(0x1dd)]:if(!(_0x126cd4 instanceof File))return void this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1ee),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'expectedType':_0x168e78(0x1c0),'actualType':typeof _0x126cd4}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});await this[_0x168e78(0x1d0)]([_0x126cd4],{'label':_0x48f1c0[_0x168e78(0x191)],'resourceId':_0x48f1c0['id']});break;case _0x209a0c[_0x168e78(0x208)]:if(_0x168e78(0x216)!=typeof _0x126cd4||!(_0x168e78(0x1e2)in _0x126cd4)||!(_0x168e78(0x213)in _0x126cd4))return void this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1ee),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'expectedType':_0x168e78(0x1a5),'actualType':typeof _0x126cd4}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});_0x126cd4=AIChatContext[_0x168e78(0x20c)](_0x126cd4,_0x48f1c0[_0x168e78(0x191)]),await this[_0x168e78(0x1d0)]([_0x126cd4],{'label':_0x48f1c0[_0x168e78(0x191)],'resourceId':_0x48f1c0['id']},_0x209a0c[_0x168e78(0x208)]);break;default:this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1f9),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id'],'resourceType':_0x48f1c0[_0x168e78(0x213)]}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});}else this[_0x168e78(0x1b2)](_0x168e78(0x1f7),{'error':new _0x5a252e(_0x168e78(0x1cf),this,{'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']}),'resourceId':_0x48f1c0['id'],'sourceId':_0x179aea['id']});}static[_0x453b6d(0x20c)](_0x1b4b92,_0x53e095){const _0x2df4de=_0x453b6d;switch(_0x1b4b92[_0x2df4de(0x213)]){case _0xf7701a[_0x2df4de(0x21a)]:return new File([_0x1b4b92[_0x2df4de(0x1e2)]],_0x53e095,{'type':_0x2df4de(0x1cb)});case _0xf7701a[_0x2df4de(0x1ac)]:return new File([_0x1b4b92[_0x2df4de(0x1e2)]],_0x53e095,{'type':_0x2df4de(0x1c3)});default:return new File([_0x1b4b92[_0x2df4de(0x1e2)]],_0x53e095,{'type':_0x2df4de(0x1be)});}}static[_0x453b6d(0x198)](_0x385ba7){const _0x26c7f8=_0x453b6d;switch(_0x385ba7[_0x26c7f8(0x213)]){case _0x209a0c[_0x26c7f8(0x1dd)]:return{'type':_0x209a0c[_0x26c7f8(0x1dd)],'id':_0x385ba7['id']};case _0x209a0c[_0x26c7f8(0x1ed)]:return{'type':_0x209a0c[_0x26c7f8(0x1ed)],'id':_0x385ba7['id']};case _0x209a0c[_0x26c7f8(0x20d)]:return{'type':_0x209a0c[_0x26c7f8(0x20d)],'id':_0x385ba7['id'],..._0x385ba7[_0x26c7f8(0x1de)]?.[_0x26c7f8(0x200)]&&{'selection':_0x385ba7[_0x26c7f8(0x1de)]}};case _0x209a0c[_0x26c7f8(0x208)]:return{'type':_0x209a0c[_0x26c7f8(0x1dd)],'id':_0x385ba7['id']};default:return null;}}[_0x453b6d(0x1dc)](_0x3f29b7,_0x52f336=!0x1){const _0x5a1faf=_0x453b6d;if(this[_0x5a1faf(0x1c8)][_0x5a1faf(0x20a)](_0x3f29b7[_0x5a1faf(0x193)],_0x3f29b7),_0x3f29b7[_0x5a1faf(0x1e0)]||this[_0x5a1faf(0x1b2)](_0x5a1faf(0x19c),{'contextItem':_0x3f29b7,'isLoading':_0x52f336}),_0x5a1faf(0x1c5)===_0x3f29b7[_0x5a1faf(0x193)]&&this[_0x5a1faf(0x1d7)](),_0x3f29b7[_0x5a1faf(0x1b3)]){const _0x131672=this[_0x5a1faf(0x1a7)](_0x3f29b7[_0x5a1faf(0x1b3)]);_0x131672&&_0x131672[_0x5a1faf(0x19b)](_0x4c0d8f=>{const _0x492764=_0x5a1faf;this[_0x492764(0x215)](_0x4c0d8f,_0x3f29b7[_0x492764(0x1b3)],!0x0);});}}[_0x453b6d(0x21d)](_0x24014e){const _0x57614b=_0x453b6d,_0x53b4da=this[_0x57614b(0x1c8)][_0x57614b(0x203)](_0x24014e),_0x4eae77=this[_0x57614b(0x1f2)][_0x57614b(0x203)](_0x24014e);if(_0x4eae77&&(_0x4eae77[_0x57614b(0x1b5)](),this[_0x57614b(0x1f2)][_0x57614b(0x1f8)](_0x24014e)),_0x53b4da?.[_0x57614b(0x1b3)]){const _0x30dd92=this[_0x57614b(0x1a7)](_0x53b4da[_0x57614b(0x1b3)]);_0x30dd92&&_0x30dd92[_0x57614b(0x19b)](_0xa89ee2=>{const _0x415a5b=_0x57614b;this[_0x415a5b(0x215)](_0xa89ee2,_0x53b4da[_0x415a5b(0x1b3)],!0x1);});}this[_0x57614b(0x1c8)][_0x57614b(0x1f8)](_0x24014e),this[_0x57614b(0x1b2)](_0x57614b(0x1e7),{'uiId':_0x24014e,'type':_0x53b4da?.[_0x57614b(0x213)]}),_0x57614b(0x1c5)===_0x24014e&&this[_0x57614b(0x1d7)]();}[_0x453b6d(0x218)](_0x45badc,_0x141b71){const _0x5096e9=_0x453b6d;if(this[_0x5096e9(0x1c8)][_0x5096e9(0x1bd)](_0x45badc[_0x5096e9(0x193)])&&(this[_0x5096e9(0x1c8)][_0x5096e9(0x20a)](_0x45badc[_0x5096e9(0x193)],_0x45badc),this[_0x5096e9(0x1b2)](_0x5096e9(0x1fc),{'contextItem':_0x45badc,'isLoading':_0x141b71}),_0x45badc[_0x5096e9(0x1b3)])){const _0x4dbc8c=this[_0x5096e9(0x1a7)](_0x45badc[_0x5096e9(0x1b3)]);_0x4dbc8c&&_0x4dbc8c[_0x5096e9(0x19b)](_0x1ba508=>{const _0x46e7d6=_0x5096e9;this[_0x46e7d6(0x215)](_0x1ba508,_0x45badc[_0x46e7d6(0x1b3)],!0x0);});}}[_0x453b6d(0x197)](_0x26ea88){const _0x40b8eb=_0x453b6d;this[_0x40b8eb(0x202)][_0x40b8eb(0x20a)](_0x26ea88[_0x40b8eb(0x193)],_0x26ea88);}[_0x453b6d(0x1d2)](){const _0x39e461=_0x453b6d;this[_0x39e461(0x1aa)]={'document':{'enabled':!0x1!==this[_0x39e461(0x18f)]?.[_0x39e461(0x195)]?.[_0x39e461(0x1cd)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x39e461(0x18f)]?.[_0x39e461(0x1fa)]?.[_0x39e461(0x1cd)]},'files':{'enabled':!0x1!==this[_0x39e461(0x18f)]?.[_0x39e461(0x1c4)]?.[_0x39e461(0x1cd)]},'sources':this[_0x39e461(0x190)]()},this[_0x39e461(0x1b2)](_0x39e461(0x19a),{'options':this[_0x39e461(0x1aa)]});}[_0x453b6d(0x190)](){const _0x22b458=_0x453b6d;return this[_0x22b458(0x18f)]?.[_0x22b458(0x1ad)]?.[_0x22b458(0x19f)](_0x2428e3=>({..._0x2428e3,'resources':[]}))??[];}[_0x453b6d(0x1d7)](){const _0x4b9a31=_0x453b6d,_0x55bd3c=this[_0x4b9a31(0x194)]()||this[_0x4b9a31(0x1f1)]();this[_0x4b9a31(0x1aa)][_0x4b9a31(0x195)][_0x4b9a31(0x21b)]=_0x55bd3c,this[_0x4b9a31(0x1b2)](_0x4b9a31(0x19a),{'options':this[_0x4b9a31(0x1aa)]});}[_0x453b6d(0x1f4)](_0x441d94){const _0x626b24=_0x453b6d;for(const _0x82af46 of this[_0x626b24(0x1c8)][_0x626b24(0x1cc)]())if(_0x82af46[_0x626b24(0x1b3)]===_0x441d94)return!0x0;for(const _0x411cf4 of this[_0x626b24(0x202)][_0x626b24(0x1cc)]())if(_0x411cf4[_0x626b24(0x1b3)]===_0x441d94)return!0x0;return!0x1;}[_0x453b6d(0x1a7)](_0x4c4951){const _0x104ce4=_0x453b6d,_0x58452e=[];for(const _0x349aaf of this[_0x104ce4(0x1aa)][_0x104ce4(0x1ad)]){_0x349aaf[_0x104ce4(0x1b1)][_0x104ce4(0x1df)](_0x11e4ff=>_0x11e4ff['id']===_0x4c4951)&&_0x58452e[_0x104ce4(0x1d9)](_0x349aaf['id']);}return 0x0===_0x58452e[_0x104ce4(0x200)]?null:_0x58452e;}[_0x453b6d(0x215)](_0x45c26e,_0x1ca956,_0x3703ef){const _0x4f333e=_0x453b6d,_0x42592d=this[_0x4f333e(0x1aa)][_0x4f333e(0x1ad)][_0x4f333e(0x1df)](_0x3a67e2=>_0x3a67e2['id']===_0x45c26e);if(!_0x42592d)return;const _0x11e1f3=_0x42592d[_0x4f333e(0x1b1)][_0x4f333e(0x1df)](_0xde2d91=>_0xde2d91['id']===_0x1ca956);_0x11e1f3&&(_0x11e1f3[_0x4f333e(0x1d5)]=_0x3703ef,this[_0x4f333e(0x1b2)](_0x4f333e(0x1c6),{'sourceId':_0x45c26e,'resourceId':_0x1ca956,'isInContext':_0x3703ef}));}[_0x453b6d(0x1b8)](_0x125127){const _0x27bec3=_0x453b6d;this[_0x27bec3(0x1fd)][_0x27bec3(0x20a)](_0x125127,!0x0),this[_0x27bec3(0x1fd)][_0x27bec3(0x1ff)]&&this[_0x27bec3(0x1b2)](_0x27bec3(0x1eb),{'isUploadInProgress':!0x0});}[_0x453b6d(0x1d6)](_0xef9e9b){const _0x3b10d6=_0x453b6d;this[_0x3b10d6(0x1fd)][_0x3b10d6(0x1f8)](_0xef9e9b),0x0===this[_0x3b10d6(0x1fd)][_0x3b10d6(0x1ff)]&&this[_0x3b10d6(0x1b2)](_0x3b10d6(0x1eb),{'isUploadInProgress':!0x1});}}function _0x3dae(){const _0x505867=['resourceStateChanged','file-','_pendingContextItems','ai-chat-source-resources-load-failed','fetchDocument','text/markdown','values','enabled','uploadFile','ai-chat-resource-no-data','addFilesToContext','updateCurrentDocument','_setAddContextOptionsDefaultState','isSelectionInContext','attributes','isInContext','_finishUploadOperation','_toggleAddCurrentDocumentOptionVisibility','_connector','push','ai-request-aborted','6645144PTvTMz','_addContextItem','FILE','selection','find','hidden','getDocument','content','getSentContextItems','removeSelectionFromContext','addUrlToContext','14kAxXYT','contextItemRemoved','1703292PpVXDu','removeFromContext','sourceResourcesLoaded','uploadProgressChanged','2394KAOkmq','URL','ai-chat-context-invalid-data','mapContextItemsToRequestData','getData','isCurrentDocumentInConversation','_ongoingUploads','ai-chat-url-upload-failed','_isResourceInContext','ai-chat-resource-load-failed','44570heHedu','error','delete','ai-chat-context-unsupported-type','urls','ai-chat-source-not-found','contextItemLoadingEnded','_ongoingUploadOperations','34edyevy','size','length','1576016BBymUY','_conversationContextItems','get','name','addCurrentDocumentToContext','startsWith','clearPendingContextItems','TEXT','12eAzyxt','set','stack','_convertTextResourceToFile','DOCUMENT','init','getPendingContextItems','url','isReadOnly','string','type','12500andKbe','_updateResourceInContextState','object','filter','_finishContextItemLoading','files-','MARKDOWN','isHidden','ai-chat-document-upload-failed','_removeContextItem','version','_config','_getCustomSourcesInitialState','label','1433862IXUJkz','uiId','isCurrentDocumentInContext','document','addSelectionToContext','_addToConversationContextItem','_mapContextItemToRequestData','getResources','addContextOptionsChanged','forEach','contextItemAdded','populateFromMessage','start','map','all','_ownerId','getId','7705CbuHLV','ai-chat-file-upload-failed','object\x20with\x20content\x20and\x20type\x20properties','addResourceToContext','_findSourceIdsByResourceId','addToConversationContext','sessionId','_addContextOptionsState','_createContextItemFromContent','HTML','sources','message','SELECTION','uploadDocument','resources','fire','resourceId','uploadUrl','abort','url-','from','_startUploadOperation','2008qGLtdp','abortController','loadSourceResources','end','has','text/plain','data','File','Current\x20document','contextSent','text/html','files','current-document'];_0x3dae=function(){return _0x505867;};return _0x3dae();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12b1f1=_0x235a;(function(_0xcd6798,_0x102177){const _0x42f1ec=_0x235a,_0xb45ea1=_0xcd6798();while(!![]){try{const _0x54e50e=parseInt(_0x42f1ec(0x1d5))/0x1*(-parseInt(_0x42f1ec(0x1de))/0x2)+parseInt(_0x42f1ec(0x1b4))/0x3*(-parseInt(_0x42f1ec(0x1bf))/0x4)+-parseInt(_0x42f1ec(0x183))/0x5+-parseInt(_0x42f1ec(0x1a6))/0x6*(parseInt(_0x42f1ec(0x18c))/0x7)+parseInt(_0x42f1ec(0x181))/0x8*(-parseInt(_0x42f1ec(0x1be))/0x9)+parseInt(_0x42f1ec(0x1ab))/0xa+parseInt(_0x42f1ec(0x185))/0xb*(parseInt(_0x42f1ec(0x1ad))/0xc);if(_0x54e50e===_0x102177)break;else _0xb45ea1['push'](_0xb45ea1['shift']());}catch(_0x5c0e67){_0xb45ea1['push'](_0xb45ea1['shift']());}}}(_0x31eb,0xe1a44));function _0x235a(_0x47536f,_0x4ff6e9){const _0x31ebb7=_0x31eb();return _0x235a=function(_0x235ae0,_0x2cd857){_0x235ae0=_0x235ae0-0x173;let _0x45f854=_0x31ebb7[_0x235ae0];return _0x45f854;},_0x235a(_0x47536f,_0x4ff6e9);}import{CKEditorError as _0x1d7654,EmitterMixin as _0x5c4628,logWarning as _0x1df096}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x37fe85}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x21d9d0,AI_CONTEXT_MODEL_EVENT_NAMES as _0x53d05f}from'./aichatcontext.js';function _0x31eb(){const _0x588339=['1285yHTrJP','removeSelectionFromContext','connector','addCurrentDocumentToContext','start','stop','reset','updateCurrentDocumentInContext','removeInteraction','818CFvuSl','ai-chat-conversation-start-failed','assistant','content','ai-chat-conversation-already-started','model','ai-chat-conversation-set-model-null','getCapabilitiesConfig','addFilesToContext','group','appendContent','ai-chat-conversation-init-failed','user','sessionId','selectedModel','length','hasOwn','interactionCreated','chatCapabilities','startConversation','prompt','isCurrentDocumentInContext','getAll','chatContext','20616LIiksX','interactions','6880050grOyZB','fetchConversationMessages','49993394KCqXtW','find','setModel','handleUserInteraction','getModel','role','reasoning','3703BhPxDf','set','selectedModelId','removeFromContext','fire','_extractContextItems','stack','toLowerCase','ai-chat-handle-user-interaction-already-in-progress','contextItems','options','isStarted','chatModels','getCurrentDocumentContext','updateCurrentDocument','_processMessagesToInteractions','getPendingContextItems','quickActionData','currentReply','modelSelected','isAvailable','capabilities','currentInteraction','load','fetchConversation','message','14106gfwdMY','isSelectionInContext','init','title','delegate','5062140kVQsxa','addSelectionToContext','12OfeoGr','ai-chat-conversation-start-no-model-selected','addUrlToContext','conversationStarted','getAvailableModels','indexOf','getMessages','169476mlqhLN','ai-chat-handle-user-conversation-not-initialized','error','conversationInitialized','push','ai-chat-conversation-init-from-id-failed','attributes','conversationId','type','getConversation','666QuxBcI','56ZoZxiu','setConversationTitle','toggleWebSearch','getEditor','destroy','isCurrentDocumentInConversation','addResourceToContext','loadSourceResources','ai-chat-conversation-set-model-not-available','getDocumentContext','text-delta','createReply','text','createInteraction','toggleReasoning','getInteraction','addToConversationContext','populateFromMessage','modification-delta','webSearch','lastInteraction','splice'];_0x31eb=function(){return _0x588339;};return _0x31eb();}import{AICapabilities as _0xfa8207,CAPABILITIES_MODEL_EVENT_NAMES as _0x51b5af}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5d92ec}from'./aichatinteraction.js';export class AIChatConversation extends _0x5c4628(){['id'];[_0x12b1f1(0x197)]=!0x1;[_0x12b1f1(0x182)]=[];[_0x12b1f1(0x1a2)];[_0x12b1f1(0x177)];[_0x12b1f1(0x1d7)];[_0x12b1f1(0x196)];constructor(_0x14477e){const _0x17c79b=_0x12b1f1;super(),this[_0x17c79b(0x196)]=_0x14477e,this[_0x17c79b(0x1d7)]=_0x14477e[_0x17c79b(0x1d7)],this[_0x17c79b(0x198)]=_0x14477e[_0x17c79b(0x198)],this['id']=_0x14477e[_0x17c79b(0x1bb)];}async[_0x12b1f1(0x1a8)](_0x23e6df){const _0x1ffc41=_0x12b1f1;try{this[_0x1ffc41(0x180)]=new _0x21d9d0({'connector':this[_0x1ffc41(0x1d7)],'config':_0x23e6df,'ownerId':this['id']}),this[_0x1ffc41(0x180)][_0x1ffc41(0x1aa)](..._0x53d05f)['to'](this),this[_0x1ffc41(0x180)][_0x1ffc41(0x1a8)](),this[_0x1ffc41(0x17b)]=new _0xfa8207(),this[_0x1ffc41(0x17b)][_0x1ffc41(0x1aa)](..._0x51b5af)['to'](this),this[_0x1ffc41(0x17b)][_0x1ffc41(0x1a8)]();const _0x3876ff=await this[_0x1ffc41(0x198)][_0x1ffc41(0x1b1)]();this[_0x1ffc41(0x190)](_0x1ffc41(0x1b7),{'availableModels':_0x3876ff});const _0x418af4=await this[_0x1ffc41(0x198)][_0x1ffc41(0x189)](this[_0x1ffc41(0x196)][_0x1ffc41(0x18e)]);_0x418af4&&await this[_0x1ffc41(0x187)](_0x418af4);}catch(_0x4d3715){const _0x25abc0=new _0x1d7654(_0x1ffc41(0x174),null,{'message':_0x4d3715[_0x1ffc41(0x1a5)]});_0x25abc0[_0x1ffc41(0x192)]=_0x4d3715[_0x1ffc41(0x192)],this[_0x1ffc41(0x190)](_0x1ffc41(0x1b6),{'error':_0x25abc0});}}async[_0x12b1f1(0x1d9)](){const _0x12058b=_0x12b1f1;if(this[_0x12058b(0x197)])throw new _0x1d7654(_0x12058b(0x1e2),null,{'conversation':this});if(!this[_0x12058b(0x177)])throw new _0x1d7654(_0x12058b(0x1ae),null,{'conversation':this});try{const {id:_0x192d39}=await this[_0x12058b(0x1d7)][_0x12058b(0x17c)](this['id'],this[_0x12058b(0x196)][_0x12058b(0x1e7)])[_0x12058b(0x1bd)]();this['id']=_0x192d39,this[_0x12058b(0x197)]=!0x0,this[_0x12058b(0x190)](_0x12058b(0x1b0),{'conversationId':this['id'],'selectedModel':this[_0x12058b(0x177)]});}catch(_0x4c2973){const _0x774d4d=new _0x1d7654(_0x12058b(0x1df),null,{'message':_0x4c2973[_0x12058b(0x1a5)]});_0x774d4d[_0x12058b(0x192)]=_0x4c2973[_0x12058b(0x192)],this[_0x12058b(0x190)](_0x12058b(0x1b6),{'error':_0x774d4d});}}async[_0x12b1f1(0x1a3)](_0x4bc703,_0x378d46){const _0x49c932=_0x12b1f1;try{const _0x50ea92=await this[_0x49c932(0x1d7)][_0x49c932(0x1a4)](_0x4bc703)[_0x49c932(0x1bd)](),_0x1a2247=await this[_0x49c932(0x1d7)][_0x49c932(0x184)](_0x4bc703)[_0x49c932(0x1b3)](),_0x324ccd=_0x1a2247[0x0][_0x49c932(0x1e3)];this[_0x49c932(0x197)]=!0x0,this['id']=_0x50ea92['id'],_0x49c932(0x1a9)in _0x50ea92?this[_0x49c932(0x190)](_0x49c932(0x1c0),_0x50ea92[_0x49c932(0x1a9)],!0x0):this[_0x49c932(0x190)](_0x49c932(0x1c0),'',!0x0);const _0x85127e=(await this[_0x49c932(0x198)][_0x49c932(0x17f)]())[_0x49c932(0x186)](_0x29687c=>_0x29687c['id'][_0x49c932(0x193)]()===_0x324ccd[_0x49c932(0x193)]());return this[_0x49c932(0x177)]=_0x85127e,this[_0x49c932(0x190)](_0x49c932(0x19f),{'selectedModel':_0x85127e,'isDisabled':!0x0}),await this[_0x49c932(0x19b)](_0x1a2247,_0x378d46,_0x324ccd),this[_0x49c932(0x1a2)]=void 0x0,this;}catch(_0x95469d){const _0x3170c5=new _0x1d7654(_0x49c932(0x1b9),null,{'message':_0x95469d[_0x49c932(0x1a5)],'conversationId':_0x4bc703});throw _0x3170c5[_0x49c932(0x192)]=_0x95469d[_0x49c932(0x192)],this[_0x49c932(0x190)](_0x49c932(0x1b6),{'error':_0x3170c5}),_0x3170c5;}}async[_0x12b1f1(0x19b)](_0x5b416a,_0x44d4a3,_0x41245f){const _0x4ef4e0=_0x12b1f1;let _0x41c478;for(const _0x4c20f2 of _0x5b416a)if(_0x4ef4e0(0x175)===_0x4c20f2[_0x4ef4e0(0x18a)]){const _0x35a588=await this[_0x4ef4e0(0x191)](_0x4c20f2),_0x34b2f6={'isReasoningEnabled':Object[_0x4ef4e0(0x179)](_0x4c20f2[_0x4ef4e0(0x1a1)],_0x4ef4e0(0x18b)),'isWebSearchEnabled':Object[_0x4ef4e0(0x179)](_0x4c20f2[_0x4ef4e0(0x1a1)],_0x4ef4e0(0x1d2))};_0x41c478=this[_0x4ef4e0(0x1cc)]({'userMessage':_0x4c20f2[_0x4ef4e0(0x17d)],'contextItems':_0x35a588,'capabilities':_0x34b2f6,'modelId':_0x41245f,'quickActionData':_0x4c20f2[_0x4ef4e0(0x1ba)]?.[_0x4ef4e0(0x19d)]}),this[_0x4ef4e0(0x1a2)]=_0x41c478,this[_0x4ef4e0(0x180)][_0x4ef4e0(0x1cf)](this[_0x4ef4e0(0x1a2)][_0x4ef4e0(0x195)]);}else{if(_0x4ef4e0(0x1e0)===_0x4c20f2[_0x4ef4e0(0x18a)]&&_0x41c478)for(const _0x1998a5 of _0x4c20f2[_0x4ef4e0(0x1e1)]){const _0x204536=_0x4ef4e0(0x1cb)===_0x1998a5[_0x4ef4e0(0x1bc)]?_0x4ef4e0(0x1c9):_0x4ef4e0(0x1d1),_0x181322=_0x41c478[_0x4ef4e0(0x1c8)]()?.[_0x4ef4e0(0x176)]!==_0x44d4a3;_0x41c478[_0x4ef4e0(0x19e)]=_0x41c478[_0x4ef4e0(0x1ca)]({'type':_0x204536,'isDone':!0x0,'interactionId':_0x41c478['id'],'areActionsDisabled':_0x181322}),_0x41c478[_0x4ef4e0(0x19e)][_0x4ef4e0(0x173)](_0x1998a5[_0x4ef4e0(0x1e1)]);}}}async[_0x12b1f1(0x191)](_0x54dab4){const _0x3495ee=_0x12b1f1,_0x3819eb=new Map();if(!_0x54dab4[_0x3495ee(0x1e1)])return _0x3819eb;for(const _0x4b6abf of _0x54dab4[_0x3495ee(0x1e1)]){const _0x311b49=await this[_0x3495ee(0x180)][_0x3495ee(0x1d0)](_0x4b6abf);_0x311b49&&_0x3819eb[_0x3495ee(0x18d)](_0x311b49['id'],_0x311b49);}return _0x3819eb;}async[_0x12b1f1(0x188)]({userMessage:_0x39a686,quickActionData:_0x5d2b4d}){const _0x525757=_0x12b1f1;if(!this[_0x525757(0x197)])throw new _0x1d7654(_0x525757(0x1b5),null,{'conversation':this});if(this[_0x525757(0x1a2)])throw new _0x1d7654(_0x525757(0x194),null,{'conversation':this});try{const _0x282844=this[_0x525757(0x180)][_0x525757(0x19c)](),_0x1ce29d=this[_0x525757(0x17b)][_0x525757(0x1e5)](),_0x4cc7a9=this[_0x525757(0x177)]['id'];this[_0x525757(0x1a2)]=this[_0x525757(0x1cc)]({'userMessage':_0x39a686,'contextItems':_0x282844,'capabilities':_0x1ce29d,'modelId':_0x4cc7a9,'quickActionData':_0x5d2b4d}),await this[_0x525757(0x1a2)][_0x525757(0x1d9)](),this[_0x525757(0x180)][_0x525757(0x1cf)](this[_0x525757(0x1a2)][_0x525757(0x195)]);}catch(_0x247f5d){this[_0x525757(0x190)](_0x525757(0x1b6),{'interactionId':this[_0x525757(0x1a2)]?this[_0x525757(0x1a2)]['id']:void 0x0,'error':_0x247f5d});}finally{this[_0x525757(0x1a2)]?.[_0x525757(0x1da)](),this[_0x525757(0x1a2)]=void 0x0;}}[_0x12b1f1(0x1cc)]({userMessage:_0x12fee4,contextItems:_0x5b4834,capabilities:_0x33ad84,modelId:_0x39c234,quickActionData:_0x479e9a}){const _0x58ab8e=_0x12b1f1,_0xdd33f8=new _0x5d92ec({'userMessage':_0x12fee4,'contextItems':_0x5b4834,'capabilities':_0x33ad84,'conversationId':this['id'],'connector':this[_0x58ab8e(0x1d7)],'editor':this[_0x58ab8e(0x196)][_0x58ab8e(0x1c2)]&&this[_0x58ab8e(0x196)][_0x58ab8e(0x1c2)](),'model':_0x39c234,'quickActionData':_0x479e9a});return _0xdd33f8[_0x58ab8e(0x1aa)](..._0x37fe85)['to'](this),this[_0x58ab8e(0x182)][_0x58ab8e(0x1b8)](_0xdd33f8),this[_0x58ab8e(0x190)](_0x58ab8e(0x17a),_0xdd33f8),_0xdd33f8;}[_0x12b1f1(0x1ce)](_0xb06d0){const _0x4a1791=_0x12b1f1;return this[_0x4a1791(0x182)][_0x4a1791(0x186)](_0x3e888b=>_0x3e888b['id']===_0xb06d0);}[_0x12b1f1(0x1dd)](_0x12bba0){const _0x2459a5=_0x12b1f1,_0x5de35e=this[_0x2459a5(0x1ce)](_0x12bba0);_0x5de35e&&(_0x5de35e[_0x2459a5(0x1c3)](),this[_0x2459a5(0x182)][_0x2459a5(0x1d4)](this[_0x2459a5(0x182)][_0x2459a5(0x1b2)](_0x5de35e),0x1));}get[_0x12b1f1(0x1d3)](){const _0x48e17a=_0x12b1f1;return this[_0x48e17a(0x182)][this[_0x48e17a(0x182)][_0x48e17a(0x178)]-0x1];}[_0x12b1f1(0x1d8)](_0xd191e1){const _0x115e11=_0x12b1f1;this[_0x115e11(0x180)][_0x115e11(0x1d8)](_0xd191e1);}async[_0x12b1f1(0x1dc)]({content:_0xa67006,version:_0xb000dd,sessionId:_0x371353,selections:_0x425a0a}){const _0x4ee9dd=_0x12b1f1;await this[_0x4ee9dd(0x180)][_0x4ee9dd(0x19a)](_0xa67006,_0xb000dd,_0x371353,_0x425a0a);}[_0x12b1f1(0x199)](){const _0x95a2b8=_0x12b1f1;return this[_0x95a2b8(0x1a2)]?.[_0x95a2b8(0x1c8)]()?.[_0x95a2b8(0x1e1)]||'';}[_0x12b1f1(0x1ac)](_0x50869d){const _0x320c5e=_0x12b1f1;this[_0x320c5e(0x180)][_0x320c5e(0x1ac)](_0x50869d);}[_0x12b1f1(0x1d6)](){const _0x59d869=_0x12b1f1;this[_0x59d869(0x180)][_0x59d869(0x1d6)]();}[_0x12b1f1(0x1e6)](_0x5bd63e){const _0x2b0da4=_0x12b1f1;this[_0x2b0da4(0x180)][_0x2b0da4(0x1e6)](_0x5bd63e);}[_0x12b1f1(0x1af)](_0x41646c){const _0x129f22=_0x12b1f1;this[_0x129f22(0x180)][_0x129f22(0x1af)](_0x41646c);}[_0x12b1f1(0x1c5)](_0x5f0115,_0x1e2b5e){const _0x3b04f2=_0x12b1f1;this[_0x3b04f2(0x180)][_0x3b04f2(0x1c5)](_0x5f0115,_0x1e2b5e);}[_0x12b1f1(0x1c6)](_0x39a6f0,_0x5c6a11,_0x541762){const _0x10ce2c=_0x12b1f1;return this[_0x10ce2c(0x180)][_0x10ce2c(0x1c6)](_0x39a6f0,_0x5c6a11,_0x541762);}[_0x12b1f1(0x18f)](_0x2c8472){const _0x19da5b=_0x12b1f1;this[_0x19da5b(0x180)][_0x19da5b(0x18f)](_0x2c8472);}[_0x12b1f1(0x1c1)](){const _0xe5e7a7=_0x12b1f1;this[_0xe5e7a7(0x17b)][_0xe5e7a7(0x1c1)]();}[_0x12b1f1(0x1cd)](){const _0x21cae8=_0x12b1f1;this[_0x21cae8(0x17b)][_0x21cae8(0x1cd)]();}[_0x12b1f1(0x17e)](){const _0x3bb11e=_0x12b1f1;return this[_0x3bb11e(0x180)][_0x3bb11e(0x17e)]();}[_0x12b1f1(0x1c4)](){const _0x5c0668=_0x12b1f1;return this[_0x5c0668(0x180)][_0x5c0668(0x1c4)]();}[_0x12b1f1(0x1a7)](){const _0x3f2238=_0x12b1f1;return this[_0x3f2238(0x180)][_0x3f2238(0x1a7)]();}async[_0x12b1f1(0x187)](_0x51b57d){const _0x513e9a=_0x12b1f1;_0x51b57d?!0x1===await this[_0x513e9a(0x198)][_0x513e9a(0x1a0)](_0x51b57d)&&(_0x1df096(_0x513e9a(0x1c7),{'conversation':this,'model':_0x51b57d}),_0x51b57d=(await this[_0x513e9a(0x198)][_0x513e9a(0x1b1)]())[0x0]):(_0x1df096(_0x513e9a(0x1e4),{'conversation':this}),_0x51b57d=(await this[_0x513e9a(0x198)][_0x513e9a(0x1b1)]())[0x0]),_0x51b57d['id']!==this[_0x513e9a(0x177)]?.['id']&&(this[_0x513e9a(0x177)]=_0x51b57d,this[_0x513e9a(0x17b)][_0x513e9a(0x1db)](),this[_0x513e9a(0x190)](_0x513e9a(0x19f),{'selectedModel':_0x51b57d}));}}
23
+ const _0x10b59d=_0x30ee;(function(_0x5b248a,_0xf72f46){const _0x4d8b7f=_0x30ee,_0x313f06=_0x5b248a();while(!![]){try{const _0x399641=parseInt(_0x4d8b7f(0x188))/0x1+-parseInt(_0x4d8b7f(0x191))/0x2*(-parseInt(_0x4d8b7f(0x1ad))/0x3)+parseInt(_0x4d8b7f(0x18a))/0x4*(parseInt(_0x4d8b7f(0x18d))/0x5)+parseInt(_0x4d8b7f(0x189))/0x6*(-parseInt(_0x4d8b7f(0x1b0))/0x7)+-parseInt(_0x4d8b7f(0x1ab))/0x8+parseInt(_0x4d8b7f(0x1cd))/0x9*(-parseInt(_0x4d8b7f(0x1f2))/0xa)+parseInt(_0x4d8b7f(0x1a0))/0xb;if(_0x399641===_0xf72f46)break;else _0x313f06['push'](_0x313f06['shift']());}catch(_0x380791){_0x313f06['push'](_0x313f06['shift']());}}}(_0x4fea,0x8f8b6));function _0x30ee(_0x2168e9,_0x1a7f72){const _0x4fea50=_0x4fea();return _0x30ee=function(_0x30eec0,_0x322dbc){_0x30eec0=_0x30eec0-0x181;let _0x4d1a71=_0x4fea50[_0x30eec0];return _0x4d1a71;},_0x30ee(_0x2168e9,_0x1a7f72);}import{CKEditorError as _0x2c60c8,EmitterMixin as _0xa0818c,logWarning as _0x307623}from'ckeditor5/src/utils.js';function _0x4fea(){const _0x15488c=['getInteraction','start','createInteraction','addToConversationContext','interactions','490259zREhgC','253554Wscoaa','8NTUVtR','_processMessagesToInteractions','splice','1853405krmcAm','connector','length','set','2UoBlAq','stack','isAvailable','prompt','chatCapabilities','appendContent','init','addUrlToContext','contextItems','isCurrentDocumentInConversation','user','removeSelectionFromContext','chatModels','lastInteraction','ai-chat-handle-user-conversation-not-initialized','7990257HCLFjI','content','setModel','isCurrentDocumentInContext','updateCurrentDocument','chatContext','capabilities','modification-delta','conversationInitialized','reasoning','options','8183792xCOtAm','type','2259567AHMbOx','getCurrentDocumentContext','removeFromContext','7TkxGrV','load','addSelectionToContext','ai-chat-conversation-init-failed','error','ai-chat-conversation-set-model-not-available','reset','currentInteraction','removeInteraction','ai-chat-conversation-set-model-null','getEditor','conversationStarted','startConversation','addCurrentDocumentToContext','role','getCapabilitiesConfig','attributes','assistant','currentReply','interactionCreated','getModel','fetchConversationMessages','ai-chat-conversation-init-from-id-failed','handleUserInteraction','toLowerCase','webSearch','sessionId','toggleReasoning','loadSourceResources','18XzWLpR','ai-chat-handle-user-interaction-already-in-progress','indexOf','text-delta','toggleWebSearch','getAvailableModels','setConversationTitle','isSelectionInContext','push','ai-chat-conversation-already-started','populateFromMessage','fetchConversation','getPendingContextItems','delegate','message','getAll','_extractContextItems','destroy','getDocumentContext','getConversation','modelSelected','title','conversationId','addResourceToContext','fire','model','find','isStarted','createReply','selectedModel','addFilesToContext','ai-chat-conversation-start-no-model-selected','group','selectedModelId','quickActionData','hasOwn','ai-chat-conversation-start-failed','5290030SgYXSp','stop','text','getMessages','updateCurrentDocumentInContext'];_0x4fea=function(){return _0x15488c;};return _0x4fea();}import{AI_MODEL_EVENT_NAMES as _0x1dbe0e}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x4f0a99,AI_CONTEXT_MODEL_EVENT_NAMES as _0x20f1d2}from'./aichatcontext.js';import{AICapabilities as _0x3a5d2b,CAPABILITIES_MODEL_EVENT_NAMES as _0x2f8447}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x4a0e78}from'./aichatinteraction.js';export class AIChatConversation extends _0xa0818c(){['id'];[_0x10b59d(0x1e8)]=!0x1;[_0x10b59d(0x187)]=[];[_0x10b59d(0x1b7)];[_0x10b59d(0x1ea)];[_0x10b59d(0x18e)];[_0x10b59d(0x1aa)];constructor(_0x4e09fc){const _0xd53eb2=_0x10b59d;super(),this[_0xd53eb2(0x1aa)]=_0x4e09fc,this[_0xd53eb2(0x18e)]=_0x4e09fc[_0xd53eb2(0x18e)],this[_0xd53eb2(0x19d)]=_0x4e09fc[_0xd53eb2(0x19d)],this['id']=_0x4e09fc[_0xd53eb2(0x1e3)];}async[_0x10b59d(0x197)](_0x113c7a){const _0x1ca0de=_0x10b59d;try{this[_0x1ca0de(0x1a5)]=new _0x4f0a99({'connector':this[_0x1ca0de(0x18e)],'config':_0x113c7a,'ownerId':this['id']}),this[_0x1ca0de(0x1a5)][_0x1ca0de(0x1da)](..._0x20f1d2)['to'](this),this[_0x1ca0de(0x1a5)][_0x1ca0de(0x197)](),this[_0x1ca0de(0x195)]=new _0x3a5d2b(),this[_0x1ca0de(0x195)][_0x1ca0de(0x1da)](..._0x2f8447)['to'](this),this[_0x1ca0de(0x195)][_0x1ca0de(0x197)]();const _0x44d768=await this[_0x1ca0de(0x19d)][_0x1ca0de(0x1d2)]();this[_0x1ca0de(0x1e5)](_0x1ca0de(0x1a8),{'availableModels':_0x44d768});const _0x271046=await this[_0x1ca0de(0x19d)][_0x1ca0de(0x1c4)](this[_0x1ca0de(0x1aa)][_0x1ca0de(0x1ee)]);_0x271046&&await this[_0x1ca0de(0x1a2)](_0x271046);}catch(_0x3d5e5a){const _0x114c75=new _0x2c60c8(_0x1ca0de(0x1b3),null,{'message':_0x3d5e5a[_0x1ca0de(0x1db)]});_0x114c75[_0x1ca0de(0x192)]=_0x3d5e5a[_0x1ca0de(0x192)],this[_0x1ca0de(0x1e5)](_0x1ca0de(0x1b4),{'error':_0x114c75});}}async[_0x10b59d(0x184)](){const _0x4049=_0x10b59d;if(this[_0x4049(0x1e8)])throw new _0x2c60c8(_0x4049(0x1d6),null,{'conversation':this});if(!this[_0x4049(0x1ea)])throw new _0x2c60c8(_0x4049(0x1ec),null,{'conversation':this});try{const {id:_0x24fcba}=await this[_0x4049(0x18e)][_0x4049(0x1bc)](this['id'],this[_0x4049(0x1aa)][_0x4049(0x1ed)])[_0x4049(0x1e0)]();this['id']=_0x24fcba,this[_0x4049(0x1e8)]=!0x0,this[_0x4049(0x1e5)](_0x4049(0x1bb),{'conversationId':this['id'],'selectedModel':this[_0x4049(0x1ea)]});}catch(_0x5f586a){const _0x230afc=new _0x2c60c8(_0x4049(0x1f1),null,{'message':_0x5f586a[_0x4049(0x1db)]});_0x230afc[_0x4049(0x192)]=_0x5f586a[_0x4049(0x192)],this[_0x4049(0x1e5)](_0x4049(0x1b4),{'error':_0x230afc});}}async[_0x10b59d(0x1b1)](_0x308a48,_0x18bb7a){const _0x4d95c6=_0x10b59d;try{const _0x3a7651=await this[_0x4d95c6(0x18e)][_0x4d95c6(0x1d8)](_0x308a48)[_0x4d95c6(0x1e0)](),_0x498168=await this[_0x4d95c6(0x18e)][_0x4d95c6(0x1c5)](_0x308a48)[_0x4d95c6(0x181)](),_0xf27d77=_0x498168[0x0][_0x4d95c6(0x1e6)];this[_0x4d95c6(0x1e8)]=!0x0,this['id']=_0x3a7651['id'],_0x4d95c6(0x1e2)in _0x3a7651?this[_0x4d95c6(0x1e5)](_0x4d95c6(0x1d3),_0x3a7651[_0x4d95c6(0x1e2)],!0x0):this[_0x4d95c6(0x1e5)](_0x4d95c6(0x1d3),'',!0x0);const _0x386cea=(await this[_0x4d95c6(0x19d)][_0x4d95c6(0x1dc)]())[_0x4d95c6(0x1e7)](_0x147074=>_0x147074['id'][_0x4d95c6(0x1c8)]()===_0xf27d77[_0x4d95c6(0x1c8)]());return this[_0x4d95c6(0x1ea)]=_0x386cea,this[_0x4d95c6(0x1e5)](_0x4d95c6(0x1e1),{'selectedModel':_0x386cea,'isDisabled':!0x0}),await this[_0x4d95c6(0x18b)](_0x498168,_0x18bb7a,_0xf27d77),this[_0x4d95c6(0x1b7)]=void 0x0,this;}catch(_0x206358){const _0x566b11=new _0x2c60c8(_0x4d95c6(0x1c6),null,{'message':_0x206358[_0x4d95c6(0x1db)],'conversationId':_0x308a48});throw _0x566b11[_0x4d95c6(0x192)]=_0x206358[_0x4d95c6(0x192)],this[_0x4d95c6(0x1e5)](_0x4d95c6(0x1b4),{'error':_0x566b11}),_0x566b11;}}async[_0x10b59d(0x18b)](_0x389a6a,_0x3b3374,_0x16e9f7){const _0x2b77cc=_0x10b59d;let _0x54f235;for(const _0x149c7f of _0x389a6a)if(_0x2b77cc(0x19b)===_0x149c7f[_0x2b77cc(0x1be)]){const _0x68c37d=await this[_0x2b77cc(0x1dd)](_0x149c7f),_0x35d076={'isReasoningEnabled':Object[_0x2b77cc(0x1f0)](_0x149c7f[_0x2b77cc(0x1a6)],_0x2b77cc(0x1a9)),'isWebSearchEnabled':Object[_0x2b77cc(0x1f0)](_0x149c7f[_0x2b77cc(0x1a6)],_0x2b77cc(0x1c9))};_0x54f235=this[_0x2b77cc(0x185)]({'userMessage':_0x149c7f[_0x2b77cc(0x194)],'contextItems':_0x68c37d,'capabilities':_0x35d076,'modelId':_0x16e9f7,'quickActionData':_0x149c7f[_0x2b77cc(0x1c0)]?.[_0x2b77cc(0x1ef)]}),this[_0x2b77cc(0x1b7)]=_0x54f235,this[_0x2b77cc(0x1a5)][_0x2b77cc(0x186)](this[_0x2b77cc(0x1b7)][_0x2b77cc(0x199)]);}else{if(_0x2b77cc(0x1c1)===_0x149c7f[_0x2b77cc(0x1be)]&&_0x54f235)for(const _0x25bd47 of _0x149c7f[_0x2b77cc(0x1a1)]){const _0x19143b=_0x2b77cc(0x1f4)===_0x25bd47[_0x2b77cc(0x1ac)]?_0x2b77cc(0x1d0):_0x2b77cc(0x1a7),_0x282310=_0x54f235[_0x2b77cc(0x1df)]()?.[_0x2b77cc(0x1ca)]!==_0x3b3374;_0x54f235[_0x2b77cc(0x1c2)]=_0x54f235[_0x2b77cc(0x1e9)]({'type':_0x19143b,'isDone':!0x0,'interactionId':_0x54f235['id'],'areActionsDisabled':_0x282310}),_0x54f235[_0x2b77cc(0x1c2)][_0x2b77cc(0x196)](_0x25bd47[_0x2b77cc(0x1a1)]);}}}async[_0x10b59d(0x1dd)](_0x4b1b6e){const _0xf98e8f=_0x10b59d,_0x158f69=new Map();if(!_0x4b1b6e[_0xf98e8f(0x1a1)])return _0x158f69;for(const _0xc6bb64 of _0x4b1b6e[_0xf98e8f(0x1a1)]){const _0x2be008=await this[_0xf98e8f(0x1a5)][_0xf98e8f(0x1d7)](_0xc6bb64);_0x2be008&&_0x158f69[_0xf98e8f(0x190)](_0x2be008['id'],_0x2be008);}return _0x158f69;}async[_0x10b59d(0x1c7)]({userMessage:_0x4b37f8,quickActionData:_0x2f4b96}){const _0x3de978=_0x10b59d;if(!this[_0x3de978(0x1e8)])throw new _0x2c60c8(_0x3de978(0x19f),null,{'conversation':this});if(this[_0x3de978(0x1b7)])throw new _0x2c60c8(_0x3de978(0x1ce),null,{'conversation':this});try{const _0x2e0dc1=this[_0x3de978(0x1a5)][_0x3de978(0x1d9)](),_0x41c132=this[_0x3de978(0x195)][_0x3de978(0x1bf)](),_0x346856=this[_0x3de978(0x1ea)]['id'];this[_0x3de978(0x1b7)]=this[_0x3de978(0x185)]({'userMessage':_0x4b37f8,'contextItems':_0x2e0dc1,'capabilities':_0x41c132,'modelId':_0x346856,'quickActionData':_0x2f4b96}),await this[_0x3de978(0x1b7)][_0x3de978(0x184)](),this[_0x3de978(0x1a5)][_0x3de978(0x186)](this[_0x3de978(0x1b7)][_0x3de978(0x199)]);}catch(_0x2c6c90){this[_0x3de978(0x1e5)](_0x3de978(0x1b4),{'interactionId':this[_0x3de978(0x1b7)]?this[_0x3de978(0x1b7)]['id']:void 0x0,'error':_0x2c6c90});}finally{this[_0x3de978(0x1b7)]?.[_0x3de978(0x1f3)](),this[_0x3de978(0x1b7)]=void 0x0;}}[_0x10b59d(0x185)]({userMessage:_0x3e96d5,contextItems:_0x9be780,capabilities:_0xd01c39,modelId:_0x2ac113,quickActionData:_0x2e9473}){const _0x1c4b93=_0x10b59d,_0xe6ea82=new _0x4a0e78({'userMessage':_0x3e96d5,'contextItems':_0x9be780,'capabilities':_0xd01c39,'conversationId':this['id'],'connector':this[_0x1c4b93(0x18e)],'editor':this[_0x1c4b93(0x1aa)][_0x1c4b93(0x1ba)]&&this[_0x1c4b93(0x1aa)][_0x1c4b93(0x1ba)](),'model':_0x2ac113,'quickActionData':_0x2e9473});return _0xe6ea82[_0x1c4b93(0x1da)](..._0x1dbe0e)['to'](this),this[_0x1c4b93(0x187)][_0x1c4b93(0x1d5)](_0xe6ea82),this[_0x1c4b93(0x1e5)](_0x1c4b93(0x1c3),_0xe6ea82),_0xe6ea82;}[_0x10b59d(0x183)](_0x21a9d6){const _0x4670e2=_0x10b59d;return this[_0x4670e2(0x187)][_0x4670e2(0x1e7)](_0x555f8d=>_0x555f8d['id']===_0x21a9d6);}[_0x10b59d(0x1b8)](_0x1eff6a){const _0x4b4406=_0x10b59d,_0x64fa3c=this[_0x4b4406(0x183)](_0x1eff6a);_0x64fa3c&&(_0x64fa3c[_0x4b4406(0x1de)](),this[_0x4b4406(0x187)][_0x4b4406(0x18c)](this[_0x4b4406(0x187)][_0x4b4406(0x1cf)](_0x64fa3c),0x1));}get[_0x10b59d(0x19e)](){const _0x453069=_0x10b59d;return this[_0x453069(0x187)][this[_0x453069(0x187)][_0x453069(0x18f)]-0x1];}[_0x10b59d(0x1bd)](_0x3844a2){const _0x4d9541=_0x10b59d;this[_0x4d9541(0x1a5)][_0x4d9541(0x1bd)](_0x3844a2);}async[_0x10b59d(0x182)]({content:_0x5ec104,version:_0x22c3a4,sessionId:_0x16f783,selections:_0x10de68}){const _0x401ebb=_0x10b59d;await this[_0x401ebb(0x1a5)][_0x401ebb(0x1a4)](_0x5ec104,_0x22c3a4,_0x16f783,_0x10de68);}[_0x10b59d(0x1ae)](){const _0xbe2dd0=_0x10b59d;return this[_0xbe2dd0(0x1b7)]?.[_0xbe2dd0(0x1df)]()?.[_0xbe2dd0(0x1a1)]||'';}[_0x10b59d(0x1b2)](_0x16aa5d){const _0x4b0b64=_0x10b59d;this[_0x4b0b64(0x1a5)][_0x4b0b64(0x1b2)](_0x16aa5d);}[_0x10b59d(0x19c)](){const _0x42d9db=_0x10b59d;this[_0x42d9db(0x1a5)][_0x42d9db(0x19c)]();}[_0x10b59d(0x1eb)](_0x25a1fa){const _0x3cebd1=_0x10b59d;this[_0x3cebd1(0x1a5)][_0x3cebd1(0x1eb)](_0x25a1fa);}[_0x10b59d(0x198)](_0x2caf56){const _0x1137b5=_0x10b59d;this[_0x1137b5(0x1a5)][_0x1137b5(0x198)](_0x2caf56);}[_0x10b59d(0x1e4)](_0x3644cb,_0x2c25d2){const _0xcf97aa=_0x10b59d;this[_0xcf97aa(0x1a5)][_0xcf97aa(0x1e4)](_0x3644cb,_0x2c25d2);}[_0x10b59d(0x1cc)](_0x5540fc,_0x21f806,_0x2f8e7d){const _0xfbec71=_0x10b59d;return this[_0xfbec71(0x1a5)][_0xfbec71(0x1cc)](_0x5540fc,_0x21f806,_0x2f8e7d);}[_0x10b59d(0x1af)](_0x2cb1c8){const _0x1a8501=_0x10b59d;this[_0x1a8501(0x1a5)][_0x1a8501(0x1af)](_0x2cb1c8);}[_0x10b59d(0x1d1)](){const _0x9b2e77=_0x10b59d;this[_0x9b2e77(0x195)][_0x9b2e77(0x1d1)]();}[_0x10b59d(0x1cb)](){const _0x2842b1=_0x10b59d;this[_0x2842b1(0x195)][_0x2842b1(0x1cb)]();}[_0x10b59d(0x1a3)](){const _0x415206=_0x10b59d;return this[_0x415206(0x1a5)][_0x415206(0x1a3)]();}[_0x10b59d(0x19a)](){const _0x54dcba=_0x10b59d;return this[_0x54dcba(0x1a5)][_0x54dcba(0x19a)]();}[_0x10b59d(0x1d4)](){const _0x3f4ba3=_0x10b59d;return this[_0x3f4ba3(0x1a5)][_0x3f4ba3(0x1d4)]();}async[_0x10b59d(0x1a2)](_0x49ac73){const _0x20c863=_0x10b59d;_0x49ac73?!0x1===await this[_0x20c863(0x19d)][_0x20c863(0x193)](_0x49ac73)&&(_0x307623(_0x20c863(0x1b5),{'conversation':this,'model':_0x49ac73}),_0x49ac73=(await this[_0x20c863(0x19d)][_0x20c863(0x1d2)]())[0x0]):(_0x307623(_0x20c863(0x1b9),{'conversation':this}),_0x49ac73=(await this[_0x20c863(0x19d)][_0x20c863(0x1d2)]())[0x0]),_0x49ac73['id']!==this[_0x20c863(0x1ea)]?.['id']&&(this[_0x20c863(0x1ea)]=_0x49ac73,this[_0x20c863(0x195)][_0x20c863(0x1b6)](),this[_0x20c863(0x1e5)](_0x20c863(0x1e1),{'selectedModel':_0x49ac73}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2a1f99=_0x37c0;(function(_0x80cc6f,_0x45b346){var _0x29bd2b=_0x37c0,_0x37a873=_0x80cc6f();while(!![]){try{var _0x1fa11a=-parseInt(_0x29bd2b(0x172))/0x1+-parseInt(_0x29bd2b(0x179))/0x2*(-parseInt(_0x29bd2b(0x185))/0x3)+-parseInt(_0x29bd2b(0x17c))/0x4*(parseInt(_0x29bd2b(0x17b))/0x5)+parseInt(_0x29bd2b(0x175))/0x6+-parseInt(_0x29bd2b(0x17a))/0x7+parseInt(_0x29bd2b(0x173))/0x8+parseInt(_0x29bd2b(0x178))/0x9*(-parseInt(_0x29bd2b(0x181))/0xa);if(_0x1fa11a===_0x45b346)break;else _0x37a873['push'](_0x37a873['shift']());}catch(_0x20b387){_0x37a873['push'](_0x37a873['shift']());}}}(_0x50ff,0xf0bc2));import{AICapabilities as _0x58edab}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x5914ae}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x22dca3}from'./aichatcontext.js';function _0x37c0(_0x14e2dd,_0x59cc49){var _0x50ffdc=_0x50ff();return _0x37c0=function(_0x37c0d3,_0x4f21be){_0x37c0d3=_0x37c0d3-0x170;var _0x373dec=_0x50ffdc[_0x37c0d3];return _0x373dec;},_0x37c0(_0x14e2dd,_0x59cc49);}export class AIChatInteraction extends _0x5914ae{[_0x2a1f99(0x187)];[_0x2a1f99(0x174)];[_0x2a1f99(0x176)]=new Map();[_0x2a1f99(0x171)];[_0x2a1f99(0x17d)];constructor(_0x37e0bc){var _0x2e28be=_0x2a1f99;super(_0x37e0bc),this[_0x2e28be(0x174)]=_0x37e0bc[_0x2e28be(0x174)],this[_0x2e28be(0x176)]=_0x37e0bc[_0x2e28be(0x176)],this[_0x2e28be(0x186)]=_0x37e0bc[_0x2e28be(0x186)],this[_0x2e28be(0x187)]=_0x37e0bc[_0x2e28be(0x187)],this[_0x2e28be(0x171)]=_0x37e0bc[_0x2e28be(0x171)],this[_0x2e28be(0x17d)]=_0x37e0bc[_0x2e28be(0x17d)];}async[_0x2a1f99(0x182)](){var _0x2d7814=_0x2a1f99;return this[_0x2d7814(0x170)][_0x2d7814(0x177)]({'message':this[_0x2d7814(0x187)],'conversationId':this[_0x2d7814(0x174)],'parts':_0x22dca3[_0x2d7814(0x17f)](this[_0x2d7814(0x176)]),'capabilities':_0x58edab[_0x2d7814(0x183)](this[_0x2d7814(0x186)]),'model':this[_0x2d7814(0x171)],'quickActionData':this[_0x2d7814(0x17d)]});}[_0x2a1f99(0x17e)](){var _0x413d1c=_0x2a1f99;return this[_0x413d1c(0x176)][_0x413d1c(0x184)](_0x413d1c(0x180));}}function _0x50ff(){var _0x45637d=['model','91587jqgiPT','10808808wCFiAZ','conversationId','8566782jPGvCI','contextItems','queryAssistant','18wBzNQH','3072398RIDuEz','6137628znueVk','53590zUbjZu','484RsZhcX','quickActionData','getDocumentContext','mapContextItemsToRequestData','current-document','5318890RSiScB','sendRequest','getCapabilitiesRequestData','get','3CAsyFD','capabilities','userMessage','connector'];_0x50ff=function(){return _0x45637d;};return _0x50ff();}
23
+ var _0x198813=_0x2b39;(function(_0x4a16a9,_0x3c89a9){var _0x1846a6=_0x2b39,_0x7eb6d0=_0x4a16a9();while(!![]){try{var _0x155542=parseInt(_0x1846a6(0x1ac))/0x1+parseInt(_0x1846a6(0x1b8))/0x2+parseInt(_0x1846a6(0x1af))/0x3*(-parseInt(_0x1846a6(0x1b0))/0x4)+-parseInt(_0x1846a6(0x1b7))/0x5+-parseInt(_0x1846a6(0x1b4))/0x6*(parseInt(_0x1846a6(0x1b9))/0x7)+parseInt(_0x1846a6(0x1b6))/0x8*(-parseInt(_0x1846a6(0x1b2))/0x9)+parseInt(_0x1846a6(0x1bb))/0xa;if(_0x155542===_0x3c89a9)break;else _0x7eb6d0['push'](_0x7eb6d0['shift']());}catch(_0x1ca3bc){_0x7eb6d0['push'](_0x7eb6d0['shift']());}}}(_0x1da2,0x2caed));function _0x2b39(_0x5b13fc,_0x55cdea){var _0x1da281=_0x1da2();return _0x2b39=function(_0x2b391e,_0x5263d0){_0x2b391e=_0x2b391e-0x1ab;var _0x30b5b2=_0x1da281[_0x2b391e];return _0x30b5b2;},_0x2b39(_0x5b13fc,_0x55cdea);}import{AICapabilities as _0x85eb}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x3ac3f6}from'../../aicore/model/aiinteraction.js';function _0x1da2(){var _0x4aea1a=['connector','getDocumentContext','187837uoRPIL','getCapabilitiesRequestData','userMessage','205680WBMFWW','4EKRRKU','contextItems','619002ziEsZc','get','324xFAEvH','queryAssistant','24jbpkID','1755620JYFtHZ','574012SgCwMY','22323hkXcTS','sendRequest','5064020GxFZjb','quickActionData','current-document','mapContextItemsToRequestData','model','conversationId','capabilities'];_0x1da2=function(){return _0x4aea1a;};return _0x1da2();}import{AIChatContext as _0x13de9a}from'./aichatcontext.js';export class AIChatInteraction extends _0x3ac3f6{[_0x198813(0x1ae)];[_0x198813(0x1c0)];[_0x198813(0x1b1)]=new Map();[_0x198813(0x1bf)];[_0x198813(0x1bc)];constructor(_0x1c423d){var _0x12d148=_0x198813;super(_0x1c423d),this[_0x12d148(0x1c0)]=_0x1c423d[_0x12d148(0x1c0)],this[_0x12d148(0x1b1)]=_0x1c423d[_0x12d148(0x1b1)],this[_0x12d148(0x1c1)]=_0x1c423d[_0x12d148(0x1c1)],this[_0x12d148(0x1ae)]=_0x1c423d[_0x12d148(0x1ae)],this[_0x12d148(0x1bf)]=_0x1c423d[_0x12d148(0x1bf)],this[_0x12d148(0x1bc)]=_0x1c423d[_0x12d148(0x1bc)];}async[_0x198813(0x1ba)](){var _0x1526e9=_0x198813;return this[_0x1526e9(0x1c2)][_0x1526e9(0x1b5)]({'message':this[_0x1526e9(0x1ae)],'conversationId':this[_0x1526e9(0x1c0)],'parts':_0x13de9a[_0x1526e9(0x1be)](this[_0x1526e9(0x1b1)]),'capabilities':_0x85eb[_0x1526e9(0x1ad)](this[_0x1526e9(0x1c1)]),'model':this[_0x1526e9(0x1bf)],'quickActionData':this[_0x1526e9(0x1bc)]});}[_0x198813(0x1ab)](){var _0x278366=_0x198813;return this[_0x278366(0x1b1)][_0x278366(0x1b3)](_0x278366(0x1bd));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b279b=_0x2ed9;function _0x1547(){const _0x40f4b3=['3gWYXct','filter','getAll','values','84gZciCo','sort','13892090HxlfjJ','1147835TfQoqx','6164816TXsSCh','capabilities','5763231BLeTsi','109256vwMWbq','enabled','8399544iBHGuR','555232PQWrGD','length','12oOLdeT'];_0x1547=function(){return _0x40f4b3;};return _0x1547();}(function(_0x44b7dd,_0x4ec08a){const _0x138620=_0x2ed9,_0x243f3c=_0x44b7dd();while(!![]){try{const _0x413cd0=-parseInt(_0x138620(0x15d))/0x1*(-parseInt(_0x138620(0x15a))/0x2)+-parseInt(_0x138620(0x161))/0x3*(parseInt(_0x138620(0x157))/0x4)+parseInt(_0x138620(0x153))/0x5*(-parseInt(_0x138620(0x15c))/0x6)+-parseInt(_0x138620(0x154))/0x7+parseInt(_0x138620(0x159))/0x8+-parseInt(_0x138620(0x156))/0x9+parseInt(_0x138620(0x163))/0xa;if(_0x413cd0===_0x4ec08a)break;else _0x243f3c['push'](_0x243f3c['shift']());}catch(_0x113629){_0x243f3c['push'](_0x243f3c['shift']());}}}(_0x1547,0x80ab3));import{AIModels as _0x189048}from'../../aicore/model/aimodels.js';function _0x2ed9(_0xdbca87,_0x2f692a){const _0x1547a1=_0x1547();return _0x2ed9=function(_0x2ed984,_0xa4b08c){_0x2ed984=_0x2ed984-0x153;let _0x45ec49=_0x1547a1[_0x2ed984];return _0x45ec49;},_0x2ed9(_0xdbca87,_0x2f692a);}export class AIChatModels extends _0x189048{async[_0x5b279b(0x15f)](){const _0x531f80=_0x5b279b;return(await super[_0x531f80(0x15f)]())[_0x531f80(0x162)]((_0x4b2fb7,_0x5a35a4)=>{const _0x2cbb7a=_0x531f80,_0x428f24=Object[_0x2cbb7a(0x160)](_0x4b2fb7[_0x2cbb7a(0x155)])[_0x2cbb7a(0x15e)](_0x22f76d=>_0x22f76d[_0x2cbb7a(0x158)])[_0x2cbb7a(0x15b)];return Object[_0x2cbb7a(0x160)](_0x5a35a4[_0x2cbb7a(0x155)])[_0x2cbb7a(0x15e)](_0x271d30=>_0x271d30[_0x2cbb7a(0x158)])[_0x2cbb7a(0x15b)]-_0x428f24;});}}
23
+ function _0xf86c(_0x13711d,_0x13febf){const _0x2175d4=_0x2175();return _0xf86c=function(_0xf86c2,_0x17dbf7){_0xf86c2=_0xf86c2-0xda;let _0x2742ee=_0x2175d4[_0xf86c2];return _0x2742ee;},_0xf86c(_0x13711d,_0x13febf);}const _0xa62ea1=_0xf86c;(function(_0x19c3e4,_0x3284d6){const _0x3eaca3=_0xf86c,_0x470435=_0x19c3e4();while(!![]){try{const _0x319a7e=-parseInt(_0x3eaca3(0xe4))/0x1*(parseInt(_0x3eaca3(0xda))/0x2)+-parseInt(_0x3eaca3(0xe6))/0x3+-parseInt(_0x3eaca3(0xe1))/0x4+-parseInt(_0x3eaca3(0xe7))/0x5+-parseInt(_0x3eaca3(0xe5))/0x6+-parseInt(_0x3eaca3(0xde))/0x7*(parseInt(_0x3eaca3(0xdf))/0x8)+parseInt(_0x3eaca3(0xe2))/0x9;if(_0x319a7e===_0x3284d6)break;else _0x470435['push'](_0x470435['shift']());}catch(_0x5d801a){_0x470435['push'](_0x470435['shift']());}}}(_0x2175,0x54ee1));import{AIModels as _0x265d58}from'../../aicore/model/aimodels.js';export class AIChatModels extends _0x265d58{async[_0xa62ea1(0xe3)](){const _0x5a63a7=_0xa62ea1;return(await super[_0x5a63a7(0xe3)]())[_0x5a63a7(0xdb)]((_0x41cbb2,_0x36ab02)=>{const _0x312533=_0x5a63a7,_0x3b356=Object[_0x312533(0xdd)](_0x41cbb2[_0x312533(0xe8)])[_0x312533(0xe0)](_0x58d6cd=>_0x58d6cd[_0x312533(0xe9)])[_0x312533(0xdc)];return Object[_0x312533(0xdd)](_0x36ab02[_0x312533(0xe8)])[_0x312533(0xe0)](_0x4f5666=>_0x4f5666[_0x312533(0xe9)])[_0x312533(0xdc)]-_0x3b356;});}}function _0x2175(){const _0x3d4161=['capabilities','enabled','16TGTBKe','sort','length','values','8351DMrBvH','3800UvvuAt','filter','730792obKhwr','23440365vatEyp','getAll','27578HxtiAL','1356144MjPvSN','1264314YXNlpS','3195765uyHplm'];_0x2175=function(){return _0x3d4161;};return _0x2175();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2191e9=_0x3668;(function(_0x2770df,_0x45d836){const _0x3b2e1c=_0x3668,_0x3f3323=_0x2770df();while(!![]){try{const _0x57b653=parseInt(_0x3b2e1c(0x1fe))/0x1+parseInt(_0x3b2e1c(0x1f4))/0x2+-parseInt(_0x3b2e1c(0x1e7))/0x3*(parseInt(_0x3b2e1c(0x1d7))/0x4)+parseInt(_0x3b2e1c(0x1c9))/0x5*(-parseInt(_0x3b2e1c(0x20a))/0x6)+-parseInt(_0x3b2e1c(0x1cf))/0x7*(-parseInt(_0x3b2e1c(0x1f6))/0x8)+-parseInt(_0x3b2e1c(0x1c3))/0x9*(parseInt(_0x3b2e1c(0x20c))/0xa)+parseInt(_0x3b2e1c(0x1d0))/0xb;if(_0x57b653===_0x45d836)break;else _0x3f3323['push'](_0x3f3323['shift']());}catch(_0x5bef06){_0x3f3323['push'](_0x3f3323['shift']());}}}(_0xfbdf,0xe4a02));function _0x3668(_0x4448ad,_0x8a57ba){const _0xfbdf53=_0xfbdf();return _0x3668=function(_0x366891,_0x3ee34f){_0x366891=_0x366891-0x1bd;let _0x261682=_0xfbdf53[_0x366891];return _0x261682;},_0x3668(_0x4448ad,_0x8a57ba);}import{ButtonView as _0x225c57,clickOutsideHandler as _0x238204,View as _0x346b5e}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x310838}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x597998}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x330832,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x5ce09a}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x41c445}from'./controls/aichatcontrolsloaderview.js';function _0xfbdf(){const _0x13ef8e=['_displayedModels','_createPromptCapabilitiesView','startConversation','_shouldRestorePromptInputFocus','focus','399HplCfW','5221447zVHjmT','setModelList','_promptInputView','_handlePromptInputFocus','element','setTemplate','delegate','856DcqQlP','isDisabled','setConversationContext','disableModelSelector','bindTemplate','execute','_createModelUnavailableMessageView','_createPromptInputView','_modelUnavailableMessageView','enableModelSelector','toggleWebSearch','startsWith','isLoading','reset','div','locale','6609LdpVvJ','toggleReasoning','updateResourceState','setWebSearch','ck-ai-chat-controls-disabled','ck-ai-chat-controls','_contextPanelView','clearConversationContextUI','populateSourceResourceBalloon','setPlaceholderText','_promptCapabilitiesView','set','clearPendingContextUI','3052918vrDIUs','form','23608dUWTaF','closeSourceResourceBalloon','_createContextPanelView','_loaderView','selectModel','addContextButtonView','clearCurrentContextItems','clearConversationContextItems','603758dVnQXN','low','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','setIsUploadInProgress','ck-ai-chat-controls__start-new-chat-button','abortPromptStream','ck-hidden','ck-ai-chat-controls-model-unavailable-message','setModel','isModelAvailable','setReasoning','find','185346gxrNwk','change:isLoading','220BbGfGY','agent','setContextItemLoading','bodyCollection','focusPromptInput','setInputPlaceholder','_createLoaderView','contextResourcesSearchInputVisibleFrom','sendUserMessage','470034JJLfaF','resetMessageInput','removeContextItem','setAddContextOptions','addContextItem','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON','35gpjgUv'];_0xfbdf=function(){return _0x13ef8e;};return _0xfbdf();}import{getTranslation as _0x38b99d}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x346b5e{[_0x2191e9(0x1ca)]=[];[_0x2191e9(0x1ed)];[_0x2191e9(0x1d2)];[_0x2191e9(0x1f1)];[_0x2191e9(0x1f9)];[_0x2191e9(0x1df)];[_0x2191e9(0x1cd)];constructor(_0x43a4c6,_0x5d2925){const _0x42728d=_0x2191e9;super(_0x43a4c6),this[_0x42728d(0x1ed)]=this[_0x42728d(0x1f8)](_0x43a4c6,{'bodyCollection':_0x5d2925[_0x42728d(0x1bd)],'searchInputVisibleFrom':_0x5d2925[_0x42728d(0x1c1)]}),this[_0x42728d(0x1d2)]=this[_0x42728d(0x1de)](_0x43a4c6),this[_0x42728d(0x1f1)]=this[_0x42728d(0x1cb)](_0x43a4c6),this[_0x42728d(0x1f9)]=this[_0x42728d(0x1c0)](_0x43a4c6),this[_0x42728d(0x1df)]=this[_0x42728d(0x1dd)](_0x43a4c6),this[_0x42728d(0x1cd)]=!0x1,this[_0x42728d(0x1d2)][_0x42728d(0x1d6)](_0x42728d(0x1c2))['to'](this),this[_0x42728d(0x1f9)][_0x42728d(0x1d6)](_0x42728d(0x203))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1e1))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1e8))['to'](this),this[_0x42728d(0x1f1)][_0x42728d(0x1d6)](_0x42728d(0x1fa))['to'](this),this[_0x42728d(0x1ed)][_0x42728d(0x1d6)](..._0x5ce09a)['to'](this),this[_0x42728d(0x1f2)](_0x42728d(0x207),!0x0),this[_0x42728d(0x1f2)](_0x42728d(0x1d8),!0x1);const _0x4c1517=this[_0x42728d(0x1db)];this[_0x42728d(0x1d5)]({'tag':_0x42728d(0x1f5),'attributes':{'class':['ck',_0x42728d(0x1ec),_0x4c1517['if'](_0x42728d(0x1d8),_0x42728d(0x1eb))]},'children':[{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x1e3),_0x42728d(0x204),_0x166fa0=>_0x166fa0||!this[_0x42728d(0x207)]),_0x4c1517['if'](_0x42728d(0x207),_0x42728d(0x204),_0x4b304e=>!_0x4b304e||this[_0x42728d(0x1e3)])]},'children':[this[_0x42728d(0x1ed)],this[_0x42728d(0x1d2)],this[_0x42728d(0x1f1)]]},{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x1e3),_0x42728d(0x204),_0x46fe0a=>!_0x46fe0a)]},'children':[this[_0x42728d(0x1f9)]]},{'tag':_0x42728d(0x1e5),'attributes':{'class':[_0x4c1517['if'](_0x42728d(0x207),_0x42728d(0x204),_0x10a3fa=>_0x10a3fa)]},'children':[this[_0x42728d(0x1df)]]}]}),_0x238204({'emitter':this[_0x42728d(0x1d2)],'activator':()=>this[_0x42728d(0x1e3)],'contextElements':()=>[this[_0x42728d(0x1d4)]],'callback':()=>{const _0x29547e=_0x42728d;this[_0x29547e(0x1cd)]=!0x1;}}),this['on'](_0x42728d(0x20b),this[_0x42728d(0x1d3)],{'priority':_0x42728d(0x1ff)});}[_0x2191e9(0x1f8)](_0x5edd92,_0x5ebb35){return new _0x330832(_0x5edd92,_0x5ebb35);}[_0x2191e9(0x1de)](_0x554dce){const _0x1f5641=_0x2191e9;return new _0x310838(_0x554dce,this[_0x1f5641(0x1ed)][_0x1f5641(0x1fb)]);}[_0x2191e9(0x1cb)](_0x4b69ab){return new _0x597998(_0x4b69ab);}[_0x2191e9(0x1c0)](_0xd68f38){return new _0x41c445(_0xd68f38);}[_0x2191e9(0x1dd)](_0x5e206c){const _0x2ce635=_0x2191e9,_0x4d711a=new hs(_0x5e206c);return _0x4d711a[_0x2ce635(0x1d6)](_0x2ce635(0x1cc))['to'](this),_0x4d711a;}[_0x2191e9(0x1d3)](_0x251ab2,_0x3f3f60,_0x157516){const _0x206eb5=_0x2191e9;_0x157516?this[_0x206eb5(0x1cd)]=!0x0:this[_0x206eb5(0x1cd)]&&this[_0x206eb5(0x1d2)][_0x206eb5(0x1ce)]();}[_0x2191e9(0x1c7)](_0x19d369,_0x2d5141){const _0x24175a=_0x2191e9;this[_0x24175a(0x1ed)][_0x24175a(0x1c7)](_0x19d369,_0x2d5141);}[_0x2191e9(0x1c5)](_0x263f9d){const _0x4a6646=_0x2191e9;this[_0x4a6646(0x1ed)][_0x4a6646(0x1c5)](_0x263f9d);}[_0x2191e9(0x20e)](_0x599c2e,_0x1985ac){const _0x147338=_0x2191e9;this[_0x147338(0x1ed)][_0x147338(0x20e)](_0x599c2e,_0x1985ac);}[_0x2191e9(0x201)](_0x2d4434){const _0x403af9=_0x2191e9;this[_0x403af9(0x1d2)][_0x403af9(0x201)](_0x2d4434);}[_0x2191e9(0x1d9)](_0x28ada7){const _0x5e7c17=_0x2191e9;this[_0x5e7c17(0x1ed)][_0x5e7c17(0x1d9)](_0x28ada7);}[_0x2191e9(0x1f3)](){const _0x88a80d=_0x2191e9;this[_0x88a80d(0x1ed)][_0x88a80d(0x1fc)]();}[_0x2191e9(0x1ee)](){const _0x3113cc=_0x2191e9;this[_0x3113cc(0x1ed)][_0x3113cc(0x1fd)]();}[_0x2191e9(0x1e9)](_0x277665,_0xe2e284,_0x5b80d8){const _0x428238=_0x2191e9;this[_0x428238(0x1ed)][_0x428238(0x1e9)](_0x277665,_0xe2e284,_0x5b80d8);}[_0x2191e9(0x1ea)](_0x4debd0){const _0x491ea5=_0x2191e9;this[_0x491ea5(0x1f1)][_0x491ea5(0x1ea)](_0x4debd0);}[_0x2191e9(0x208)](_0x56ac61){const _0x546d9e=_0x2191e9;this[_0x546d9e(0x1f1)][_0x546d9e(0x208)](_0x56ac61);}[_0x2191e9(0x1c4)](){const _0x118e3d=_0x2191e9;this[_0x118e3d(0x1d2)][_0x118e3d(0x1e4)]();}[_0x2191e9(0x1c6)](_0x5dcb88){const _0x5b3ea0=_0x2191e9;this[_0x5b3ea0(0x1ed)][_0x5b3ea0(0x1c6)](_0x5dcb88);}[_0x2191e9(0x1bf)](_0x252c36){const _0x3d4adf=_0x2191e9;this[_0x3d4adf(0x1d2)][_0x3d4adf(0x1f0)](_0x252c36);}[_0x2191e9(0x1d1)](_0xd0b991,_0xad7348){const _0x4ca2f7=_0x2191e9;this[_0x4ca2f7(0x1ca)]=_0xd0b991,this[_0x4ca2f7(0x1f1)][_0x4ca2f7(0x1d1)](_0xd0b991,_0xad7348);}[_0x2191e9(0x206)](_0x4eed17){const _0x43cb57=_0x2191e9;(_0x4eed17?this[_0x43cb57(0x1ca)][_0x43cb57(0x209)](_0x1d4d91=>_0x1d4d91['id']===_0x4eed17['id']):null)?(this[_0x43cb57(0x207)]=!0x0,this[_0x43cb57(0x1f1)][_0x43cb57(0x206)](_0x4eed17)):_0x4eed17?.['id'][_0x43cb57(0x1e2)](_0x43cb57(0x20d))?(this[_0x43cb57(0x207)]=!0x0,this[_0x43cb57(0x1f1)][_0x43cb57(0x206)](this[_0x43cb57(0x1ca)][0x0])):this[_0x43cb57(0x207)]=!0x1;}[_0x2191e9(0x1e0)](){const _0x448a83=_0x2191e9;this[_0x448a83(0x1f1)][_0x448a83(0x1e0)]();}[_0x2191e9(0x1da)](_0x3a24ee){const _0x4ec9fa=_0x2191e9;this[_0x4ec9fa(0x1f1)][_0x4ec9fa(0x1da)](_0x3a24ee);}[_0x2191e9(0x1ef)](_0x3c4693,_0x146fa8,_0x16e9f3,_0x50b77b){const _0x159aa0=_0x2191e9;this[_0x159aa0(0x1ed)][_0x159aa0(0x1ef)](_0x3c4693,_0x146fa8,_0x16e9f3,_0x50b77b);}[_0x2191e9(0x1f7)](_0x2c2a35){const _0x37e4ac=_0x2191e9;this[_0x37e4ac(0x1ed)][_0x37e4ac(0x1f7)](_0x2c2a35);}[_0x2191e9(0x1be)](){const _0x4c18cf=_0x2191e9;this[_0x4c18cf(0x1d2)][_0x4c18cf(0x1ce)]();}}class hs extends _0x346b5e{constructor(_0x270860){const _0x330873=_0x2191e9;super(_0x270860);const _0x326f28=new _0x225c57(_0x270860);_0x326f28[_0x330873(0x1f2)]({'label':_0x38b99d(this[_0x330873(0x1e6)],_0x330873(0x1c8)),'withText':!0x0,'class':[_0x330873(0x202)],'tooltip':''}),_0x326f28[_0x330873(0x1d6)](_0x330873(0x1dc))['to'](this,_0x330873(0x1cc)),this[_0x330873(0x1d5)]({'tag':_0x330873(0x1e5),'attributes':{'class':['ck',_0x330873(0x205)]},'children':[{'tag':'p','children':[{'text':_0x38b99d(this[_0x330873(0x1e6)],_0x330873(0x200))+'\x20'},_0x326f28]}]});}}
23
+ function _0x5391(){const _0x5bd7d0=['toggleReasoning','isLoading','focusPromptInput','change:isLoading','3219342vjDBjX','setConversationContext','_loaderView','removeContextItem','startsWith','_createLoaderView','setWebSearch','populateSourceResourceBalloon','setReasoning','setIsUploadInProgress','bodyCollection','addContextItem','sendUserMessage','setModelList','div','1770688jythVe','ck-hidden','agent','15149034wTEKCU','closeSourceResourceBalloon','reset','isDisabled','263469qfLcyR','bindTemplate','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_TEXT','ck-ai-chat-controls-disabled','startConversation','5mTDSbz','addContextButtonView','clearPendingContextUI','ck-ai-chat-controls-model-unavailable-message','setPlaceholderText','isModelAvailable','setTemplate','_shouldRestorePromptInputFocus','setAddContextOptions','toggleWebSearch','ck-ai-chat-controls__start-new-chat-button','enableModelSelector','delegate','disableModelSelector','_handlePromptInputFocus','set','44wJIRcI','form','1163944tqyNVr','_createContextPanelView','resetMessageInput','updateResourceState','ck-ai-chat-controls','setContextItemLoading','abortPromptStream','_createPromptCapabilitiesView','_promptCapabilitiesView','setModel','execute','clearCurrentContextItems','find','setInputPlaceholder','_contextPanelView','_modelUnavailableMessageView','_promptInputView','_displayedModels','_createModelUnavailableMessageView','locale','7220962CajUvZ','572242RPGbME','focus','_createPromptInputView','contextResourcesSearchInputVisibleFrom','low','clearConversationContextItems','selectModel','clearConversationContextUI','element','AI_CHAT_MODEL_UNAVAILABLE_MESSAGE_BUTTON'];_0x5391=function(){return _0x5bd7d0;};return _0x5391();}const _0x5bb4e2=_0x56b0;(function(_0x499199,_0x1b6562){const _0x4f9b63=_0x56b0,_0x5d7809=_0x499199();while(!![]){try{const _0x3d3e74=-parseInt(_0x4f9b63(0x12f))/0x1+parseInt(_0x4f9b63(0x16a))/0x2+parseInt(_0x4f9b63(0x153))/0x3*(parseInt(_0x4f9b63(0x168))/0x4)+-parseInt(_0x4f9b63(0x158))/0x5*(-parseInt(_0x4f9b63(0x13d))/0x6)+parseInt(_0x4f9b63(0x12e))/0x7+-parseInt(_0x4f9b63(0x14c))/0x8+-parseInt(_0x4f9b63(0x14f))/0x9;if(_0x3d3e74===_0x1b6562)break;else _0x5d7809['push'](_0x5d7809['shift']());}catch(_0x5ad054){_0x5d7809['push'](_0x5d7809['shift']());}}}(_0x5391,0x9c170));function _0x56b0(_0x28aae9,_0x382d78){const _0x53914d=_0x5391();return _0x56b0=function(_0x56b04a,_0x25c5ef){_0x56b04a=_0x56b04a-0x126;let _0x52b17e=_0x53914d[_0x56b04a];return _0x52b17e;},_0x56b0(_0x28aae9,_0x382d78);}import{ButtonView as _0x1190cf,clickOutsideHandler as _0x45b606,View as _0x512720}from'ckeditor5/src/ui.js';import{AIChatPromptInputView as _0x4a3120}from'./controls/aichatpromptinputview.js';import{AIChatPromptCapabilitiesView as _0x5ee37e}from'./controls/aichatpromptcapabilitiesview.js';import{AIChatContextPanelView as _0x4a1895,CONTEXT_PANEL_VIEW_EVENT_NAMES as _0x19ba2e}from'./controls/aichatcontextpanelview.js';import{AIChatControlsLoaderView as _0x4548a1}from'./controls/aichatcontrolsloaderview.js';import{getTranslation as _0x1efd25}from'../../aicore/utils/common-translations.js';export class AIChatControlsView extends _0x512720{[_0x5bb4e2(0x12b)]=[];[_0x5bb4e2(0x128)];[_0x5bb4e2(0x12a)];[_0x5bb4e2(0x172)];[_0x5bb4e2(0x13f)];[_0x5bb4e2(0x129)];[_0x5bb4e2(0x15f)];constructor(_0x2c2875,_0x37663f){const _0x408f53=_0x5bb4e2;super(_0x2c2875),this[_0x408f53(0x128)]=this[_0x408f53(0x16b)](_0x2c2875,{'bodyCollection':_0x37663f[_0x408f53(0x147)],'searchInputVisibleFrom':_0x37663f[_0x408f53(0x132)]}),this[_0x408f53(0x12a)]=this[_0x408f53(0x131)](_0x2c2875),this[_0x408f53(0x172)]=this[_0x408f53(0x171)](_0x2c2875),this[_0x408f53(0x13f)]=this[_0x408f53(0x142)](_0x2c2875),this[_0x408f53(0x129)]=this[_0x408f53(0x12c)](_0x2c2875),this[_0x408f53(0x15f)]=!0x1,this[_0x408f53(0x12a)][_0x408f53(0x164)](_0x408f53(0x149))['to'](this),this[_0x408f53(0x13f)][_0x408f53(0x164)](_0x408f53(0x170))['to'](this),this[_0x408f53(0x172)][_0x408f53(0x164)](_0x408f53(0x161))['to'](this),this[_0x408f53(0x172)][_0x408f53(0x164)](_0x408f53(0x139))['to'](this),this[_0x408f53(0x172)][_0x408f53(0x164)](_0x408f53(0x135))['to'](this),this[_0x408f53(0x128)][_0x408f53(0x164)](..._0x19ba2e)['to'](this),this[_0x408f53(0x167)](_0x408f53(0x15d),!0x0),this[_0x408f53(0x167)](_0x408f53(0x152),!0x1);const _0x5db284=this[_0x408f53(0x154)];this[_0x408f53(0x15e)]({'tag':_0x408f53(0x169),'attributes':{'class':['ck',_0x408f53(0x16e),_0x5db284['if'](_0x408f53(0x152),_0x408f53(0x156))]},'children':[{'tag':_0x408f53(0x14b),'attributes':{'class':[_0x5db284['if'](_0x408f53(0x13a),_0x408f53(0x14d),_0x11aa6c=>_0x11aa6c||!this[_0x408f53(0x15d)]),_0x5db284['if'](_0x408f53(0x15d),_0x408f53(0x14d),_0x2f0c34=>!_0x2f0c34||this[_0x408f53(0x13a)])]},'children':[this[_0x408f53(0x128)],this[_0x408f53(0x12a)],this[_0x408f53(0x172)]]},{'tag':_0x408f53(0x14b),'attributes':{'class':[_0x5db284['if'](_0x408f53(0x13a),_0x408f53(0x14d),_0x15e553=>!_0x15e553)]},'children':[this[_0x408f53(0x13f)]]},{'tag':_0x408f53(0x14b),'attributes':{'class':[_0x5db284['if'](_0x408f53(0x15d),_0x408f53(0x14d),_0x436d76=>_0x436d76)]},'children':[this[_0x408f53(0x129)]]}]}),_0x45b606({'emitter':this[_0x408f53(0x12a)],'activator':()=>this[_0x408f53(0x13a)],'contextElements':()=>[this[_0x408f53(0x137)]],'callback':()=>{const _0x51d6df=_0x408f53;this[_0x51d6df(0x15f)]=!0x1;}}),this['on'](_0x408f53(0x13c),this[_0x408f53(0x166)],{'priority':_0x408f53(0x133)});}[_0x5bb4e2(0x16b)](_0x450036,_0x5c2668){return new _0x4a1895(_0x450036,_0x5c2668);}[_0x5bb4e2(0x131)](_0x46021d){const _0x5646a6=_0x5bb4e2;return new _0x4a3120(_0x46021d,this[_0x5646a6(0x128)][_0x5646a6(0x159)]);}[_0x5bb4e2(0x171)](_0x293180){return new _0x5ee37e(_0x293180);}[_0x5bb4e2(0x142)](_0x19a561){return new _0x4548a1(_0x19a561);}[_0x5bb4e2(0x12c)](_0x13bcfb){const _0x72dadd=_0x5bb4e2,_0x15de7f=new gs(_0x13bcfb);return _0x15de7f[_0x72dadd(0x164)](_0x72dadd(0x157))['to'](this),_0x15de7f;}[_0x5bb4e2(0x166)](_0x41787a,_0xcdbe88,_0x4eccf9){const _0x5aa976=_0x5bb4e2;_0x4eccf9?this[_0x5aa976(0x15f)]=!0x0:this[_0x5aa976(0x15f)]&&this[_0x5aa976(0x12a)][_0x5aa976(0x130)]();}[_0x5bb4e2(0x148)](_0x55950e,_0x3fbde4){const _0x21c2aa=_0x5bb4e2;this[_0x21c2aa(0x128)][_0x21c2aa(0x148)](_0x55950e,_0x3fbde4);}[_0x5bb4e2(0x140)](_0x210104){const _0x59c203=_0x5bb4e2;this[_0x59c203(0x128)][_0x59c203(0x140)](_0x210104);}[_0x5bb4e2(0x16f)](_0x213046,_0x106585){const _0x53579e=_0x5bb4e2;this[_0x53579e(0x128)][_0x53579e(0x16f)](_0x213046,_0x106585);}[_0x5bb4e2(0x146)](_0x113218){const _0x2aa550=_0x5bb4e2;this[_0x2aa550(0x12a)][_0x2aa550(0x146)](_0x113218);}[_0x5bb4e2(0x13e)](_0x2f1fdd){const _0x11719c=_0x5bb4e2;this[_0x11719c(0x128)][_0x11719c(0x13e)](_0x2f1fdd);}[_0x5bb4e2(0x15a)](){const _0x53900a=_0x5bb4e2;this[_0x53900a(0x128)][_0x53900a(0x175)]();}[_0x5bb4e2(0x136)](){const _0x4fd104=_0x5bb4e2;this[_0x4fd104(0x128)][_0x4fd104(0x134)]();}[_0x5bb4e2(0x16d)](_0x180119,_0x23142b,_0x52666a){const _0x30a24e=_0x5bb4e2;this[_0x30a24e(0x128)][_0x30a24e(0x16d)](_0x180119,_0x23142b,_0x52666a);}[_0x5bb4e2(0x143)](_0x3a3cf0){const _0x369392=_0x5bb4e2;this[_0x369392(0x172)][_0x369392(0x143)](_0x3a3cf0);}[_0x5bb4e2(0x145)](_0x3cd451){const _0x22e1ab=_0x5bb4e2;this[_0x22e1ab(0x172)][_0x22e1ab(0x145)](_0x3cd451);}[_0x5bb4e2(0x16c)](){const _0x2128e2=_0x5bb4e2;this[_0x2128e2(0x12a)][_0x2128e2(0x151)]();}[_0x5bb4e2(0x160)](_0x134ebe){const _0x4fad88=_0x5bb4e2;this[_0x4fad88(0x128)][_0x4fad88(0x160)](_0x134ebe);}[_0x5bb4e2(0x127)](_0x2645aa){const _0x10e971=_0x5bb4e2;this[_0x10e971(0x12a)][_0x10e971(0x15c)](_0x2645aa);}[_0x5bb4e2(0x14a)](_0x116264,_0x40d48d){const _0x3fc326=_0x5bb4e2;this[_0x3fc326(0x12b)]=_0x116264,this[_0x3fc326(0x172)][_0x3fc326(0x14a)](_0x116264,_0x40d48d);}[_0x5bb4e2(0x173)](_0x1d01a8){const _0x16d629=_0x5bb4e2;(_0x1d01a8?this[_0x16d629(0x12b)][_0x16d629(0x126)](_0x59636d=>_0x59636d['id']===_0x1d01a8['id']):null)?(this[_0x16d629(0x15d)]=!0x0,this[_0x16d629(0x172)][_0x16d629(0x173)](_0x1d01a8)):_0x1d01a8?.['id'][_0x16d629(0x141)](_0x16d629(0x14e))?(this[_0x16d629(0x15d)]=!0x0,this[_0x16d629(0x172)][_0x16d629(0x173)](this[_0x16d629(0x12b)][0x0])):this[_0x16d629(0x15d)]=!0x1;}[_0x5bb4e2(0x163)](){const _0x4babf9=_0x5bb4e2;this[_0x4babf9(0x172)][_0x4babf9(0x163)]();}[_0x5bb4e2(0x165)](_0x20f3be){const _0x315c02=_0x5bb4e2;this[_0x315c02(0x172)][_0x315c02(0x165)](_0x20f3be);}[_0x5bb4e2(0x144)](_0x4dff09,_0x618a0f,_0x1190e9,_0x139d6c){const _0x27ac9e=_0x5bb4e2;this[_0x27ac9e(0x128)][_0x27ac9e(0x144)](_0x4dff09,_0x618a0f,_0x1190e9,_0x139d6c);}[_0x5bb4e2(0x150)](_0x4fac90){const _0x562768=_0x5bb4e2;this[_0x562768(0x128)][_0x562768(0x150)](_0x4fac90);}[_0x5bb4e2(0x13b)](){const _0x449020=_0x5bb4e2;this[_0x449020(0x12a)][_0x449020(0x130)]();}}class gs extends _0x512720{constructor(_0xd51fef){const _0x1dc37f=_0x5bb4e2;super(_0xd51fef);const _0x11f910=new _0x1190cf(_0xd51fef);_0x11f910[_0x1dc37f(0x167)]({'label':_0x1efd25(this[_0x1dc37f(0x12d)],_0x1dc37f(0x138)),'withText':!0x0,'class':[_0x1dc37f(0x162)],'tooltip':''}),_0x11f910[_0x1dc37f(0x164)](_0x1dc37f(0x174))['to'](this,_0x1dc37f(0x157)),this[_0x1dc37f(0x15e)]({'tag':_0x1dc37f(0x14b),'attributes':{'class':['ck',_0x1dc37f(0x15b)]},'children':[{'tag':'p','children':[{'text':_0x1efd25(this[_0x1dc37f(0x12d)],_0x1dc37f(0x155))+'\x20'},_0x11f910]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x48efcc=_0x43d7;(function(_0x395bde,_0x484f92){const _0x43d0ee=_0x43d7,_0x1c23c5=_0x395bde();while(!![]){try{const _0x100edf=parseInt(_0x43d0ee(0x1c8))/0x1*(parseInt(_0x43d0ee(0x188))/0x2)+-parseInt(_0x43d0ee(0x1a4))/0x3*(parseInt(_0x43d0ee(0x1bc))/0x4)+parseInt(_0x43d0ee(0x1be))/0x5*(-parseInt(_0x43d0ee(0x1d5))/0x6)+parseInt(_0x43d0ee(0x185))/0x7*(parseInt(_0x43d0ee(0x1cb))/0x8)+parseInt(_0x43d0ee(0x1b6))/0x9+parseInt(_0x43d0ee(0x1a6))/0xa*(parseInt(_0x43d0ee(0x1c7))/0xb)+-parseInt(_0x43d0ee(0x1aa))/0xc;if(_0x100edf===_0x484f92)break;else _0x1c23c5['push'](_0x1c23c5['shift']());}catch(_0xa4b7f2){_0x1c23c5['push'](_0x1c23c5['shift']());}}}(_0x8b54,0x7c39f));import{CKEditorError as _0x199efa,logWarning as _0x2dcd6e,scrollViewportToShowTarget as _0x3dd167}from'ckeditor5/src/utils.js';import{View as _0xbd012f}from'ckeditor5/src/ui.js';function _0x8b54(){const _0x16c1f2=['updateSuggestionItem','loadingMessage','bind','element','removeItem','destroy','3638022foQUpw','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','ck-ai-chat__loader-text','5500719TTaQBo','addItem','ai-chat-feed-view-item-not-found','916862sQovWI','isVisible','ck-hidden','markAsDone','span','add','markItemAsDone','aiFeed','_bodyCollection','isTrackChangesOn','bindTemplate','ai-suggestion-reply','isPending','updatePartState','includes','stopAutoScroll','user-message','start','ck-ai-chat__loader','set','render','getItemIds','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','ck-ai-chat__feed__items','_createFeedItems','clear','_createLoaderChildren','createCollection','314277fXlBGh','ck-ai-chat__feed','10uTQgeH','map','_setupTemplate','isLoadingSkeletonVisible','14051340nJVVGa','toggleLoadingSkeleton','getItemById','scrollToSuggestion','options','ai-reply','find','updateReplyItem','updateWebSources','ai-chat-feed-view-item-not-a-reply-item','remove','delegate','4935312mSXXfl','startAutoScroll','setTemplate','_createTemplateChildren','getPartView','locale','28nzjQZI','updateContent','5OFPKoz','interaction-header','div','stop','ai-chat-feed-view-item-not-a-suggestion-item','updateSuggestionPartState','_createFeedLoader','_createSkeletonLoader','scrollManager','8452169rIbMpm','2CqEsVS','setLoadingMessage','extendTemplate','8pylGMO','children','updateSources','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item'];_0x8b54=function(){return _0x16c1f2;};return _0x8b54();}import{AI_CHAT_UI_EVENT_NAMES as _0x4ea93b}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x429358}from'./feed/aichatfeedsuggestionitemview.js';function _0x43d7(_0x1fe658,_0x1d1561){const _0x8b544a=_0x8b54();return _0x43d7=function(_0x43d7a2,_0x4dae05){_0x43d7a2=_0x43d7a2-0x183;let _0x383504=_0x8b544a[_0x43d7a2];return _0x383504;},_0x43d7(_0x1fe658,_0x1d1561);}import{AIChatFeedReplyItemView as _0x5a2e6d}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x255f72}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0xd2c814}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x4e4e21}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x54087a}from'../utils/scrollmanager.js';import{AISkeletonView as _0x5213d4,SKELETON_DEFINITIONS as _0x57b683}from'../../aicore/ui/aiskeleton.js';import{AISpinnerView as _0x2ec7a9}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0xbd012f{[_0x48efcc(0x1cc)];[_0x48efcc(0x1c6)];[_0x48efcc(0x190)];constructor(_0x1ebf85,_0x4be37c){const _0x4fb7a1=_0x48efcc;super(_0x1ebf85),this[_0x4fb7a1(0x190)]=_0x4be37c,this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x194),!0x1),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x1d0),''),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x1a9),!0x1),this[_0x4fb7a1(0x19b)](_0x4fb7a1(0x191),!0x1),this[_0x4fb7a1(0x1cc)]=this[_0x4fb7a1(0x1a3)](),this[_0x4fb7a1(0x1cc)][_0x4fb7a1(0x1b5)](..._0x4ea93b)['to'](this),this[_0x4fb7a1(0x1a8)]();}[_0x48efcc(0x19c)](){const _0x595e18=_0x48efcc;super[_0x595e18(0x19c)](),this[_0x595e18(0x1c6)]=new _0x54087a(this[_0x595e18(0x1d2)]);}[_0x48efcc(0x1d4)](){const _0x124ae0=_0x48efcc;super[_0x124ae0(0x1d4)](),this[_0x124ae0(0x1c6)][_0x124ae0(0x1d4)]();}[_0x48efcc(0x1a1)](){const _0x40fe07=_0x48efcc;this[_0x40fe07(0x1cc)][_0x40fe07(0x1a1)]();}[_0x48efcc(0x186)](_0x296616,_0x4d987d){const _0x24b63e=_0x48efcc;let _0x30bec0;_0x24b63e(0x1af)===_0x296616?_0x30bec0=new _0x5a2e6d(this[_0x24b63e(0x1bb)],_0x4d987d):_0x24b63e(0x193)===_0x296616?(_0x30bec0=new _0x429358(this[_0x24b63e(0x1bb)],_0x4d987d),_0x30bec0[_0x24b63e(0x1d1)](_0x24b63e(0x191))['to'](this,_0x24b63e(0x191))):_0x30bec0=_0x24b63e(0x198)===_0x296616?new _0x255f72(this[_0x24b63e(0x1bb)],_0x4d987d,this[_0x24b63e(0x190)]):_0x24b63e(0x1bf)===_0x296616?new _0x4e4e21(this[_0x24b63e(0x1bb)],_0x4d987d):new _0xd2c814(_0x4d987d),this[_0x24b63e(0x1cc)][_0x24b63e(0x18d)](_0x30bec0);}async[_0x48efcc(0x1b1)]({id:_0x15668c,parsedContent:_0x14f5fe,renderingStrategy:_0x398def,abortSignal:_0x2d1e40}){const _0xc16dd8=_0x48efcc,_0x40fd2a=this[_0xc16dd8(0x1ac)](_0x15668c);if(!(_0x40fd2a instanceof _0x5a2e6d))throw new _0x199efa(_0xc16dd8(0x1b3),null,{'itemView':_0x40fd2a,'id':_0x15668c,'parsedContent':_0x14f5fe});await _0x40fd2a[_0xc16dd8(0x1bd)]({'parsedContent':_0x14f5fe,'renderingStrategy':_0x398def,'abortSignal':_0x2d1e40});}async[_0x48efcc(0x1b2)](_0x2ad25c,_0x48ffa9){const _0x1a70d2=_0x48efcc,_0x59bd30=this[_0x1a70d2(0x1ac)](_0x2ad25c);if(_0x59bd30 instanceof _0x429358)_0x59bd30[_0x1a70d2(0x1cd)](_0x48ffa9);else{if(!(_0x59bd30 instanceof _0x5a2e6d))throw new _0x199efa(_0x1a70d2(0x183),null,{'itemView':_0x59bd30,'id':_0x2ad25c,'sources':_0x48ffa9});_0x59bd30[_0x1a70d2(0x1cd)](_0x48ffa9);}}async[_0x48efcc(0x1cf)]({id:_0x29558d,parts:_0x37dd29,renderingStrategy:_0x364148,abortSignal:_0x5aa74c}){const _0x2051b1=_0x48efcc,_0x286a7a=this[_0x2051b1(0x1ac)](_0x29558d);if(!(_0x286a7a instanceof _0x429358))throw new _0x199efa(_0x2051b1(0x1c2),null,{'itemView':_0x286a7a,'id':_0x29558d,'parts':_0x37dd29});await _0x286a7a[_0x2051b1(0x1bd)]({'parts':_0x37dd29,'renderingStrategy':_0x364148,'abortSignal':_0x5aa74c});}[_0x48efcc(0x1c3)]({id:_0x59645e,index:_0x2ad5e7,state:_0x243f4c}){const _0x1c0bce=_0x48efcc,_0x24e551=this[_0x1c0bce(0x1ac)](_0x59645e);if(!(_0x24e551 instanceof _0x429358))throw new _0x199efa(_0x1c0bce(0x1c2),this,{'id':_0x59645e});_0x24e551[_0x1c0bce(0x195)](_0x2ad5e7,_0x243f4c);}[_0x48efcc(0x18e)](_0x30adc5){const _0x3e6437=_0x48efcc;this[_0x3e6437(0x1ac)](_0x30adc5)[_0x3e6437(0x18b)]();}[_0x48efcc(0x19d)](){const _0x3117b9=_0x48efcc;return this[_0x3117b9(0x1cc)][_0x3117b9(0x1a7)](_0x528816=>_0x528816[_0x3117b9(0x1ae)]['id']);}[_0x48efcc(0x1d3)](_0x3bbb96){const _0x3daf6e=_0x48efcc;this[_0x3daf6e(0x1cc)][_0x3daf6e(0x1b4)](this[_0x3daf6e(0x1ac)](_0x3bbb96));}[_0x48efcc(0x1ad)](_0x50f6a6,_0x3add48){const _0x5c266b=_0x48efcc,_0x2614a6=this[_0x5c266b(0x1ac)](_0x50f6a6);if(!(_0x2614a6 instanceof _0x429358))return void _0x2dcd6e(_0x5c266b(0x1ce),{'replyId':_0x50f6a6,'partIndex':_0x3add48});const _0x8688ec=_0x2614a6[_0x5c266b(0x1ba)](_0x3add48);_0x8688ec?_0x3dd167({'target':_0x8688ec[_0x5c266b(0x1d2)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x2dcd6e(_0x5c266b(0x19e),{'replyId':_0x50f6a6,'partIndex':_0x3add48});}[_0x48efcc(0x1a8)](){const _0x4704bf=_0x48efcc;this[_0x4704bf(0x1b8)]({'tag':_0x4704bf(0x1c0),'attributes':{'class':['ck',_0x4704bf(0x1a5)]},'children':this[_0x4704bf(0x1b9)]()});}[_0x48efcc(0x1b9)](){const _0xdd12b4=_0x48efcc,_0x1d0311=this[_0xdd12b4(0x1c5)]();return[this[_0xdd12b4(0x1a0)](),_0x1d0311,this[_0xdd12b4(0x1c4)]()];}[_0x48efcc(0x1c5)](){const _0x4dcc57=_0x48efcc,_0x38c976=new _0x5213d4(this[_0x4dcc57(0x1bb)],_0x57b683[_0x4dcc57(0x18f)]);return _0x38c976[_0x4dcc57(0x1ca)]({'attributes':{'class':[this[_0x4dcc57(0x192)]['if'](_0x4dcc57(0x1a9),_0x4dcc57(0x18a),_0x18c7d5=>!_0x18c7d5)]}}),_0x38c976;}[_0x48efcc(0x1a0)](){const _0x2da9c2=_0x48efcc,_0x2b01d3=new _0xbd012f(this[_0x2da9c2(0x1bb)]);return _0x2b01d3[_0x2da9c2(0x1b8)]({'tag':_0x2da9c2(0x1c0),'attributes':{'class':['ck',_0x2da9c2(0x19f),this[_0x2da9c2(0x192)]['if'](_0x2da9c2(0x1a9),_0x2da9c2(0x18a))]},'children':this[_0x2da9c2(0x1cc)]}),_0x2b01d3;}[_0x48efcc(0x1c4)](){const _0x435bf8=_0x48efcc,_0x3d118c=new _0xbd012f(this[_0x435bf8(0x1bb)]);return _0x3d118c[_0x435bf8(0x1b8)]({'tag':_0x435bf8(0x1c0),'attributes':{'class':['ck',_0x435bf8(0x19a),this[_0x435bf8(0x192)]['if'](_0x435bf8(0x194),_0x435bf8(0x18a),_0x288e9e=>!_0x288e9e)]},'children':this[_0x435bf8(0x1a2)]()}),_0x3d118c;}[_0x48efcc(0x1a2)](){const _0x33c328=_0x48efcc,_0x28aea3=new _0x2ec7a9();return _0x28aea3[_0x33c328(0x189)]=!0x0,[_0x28aea3,{'tag':_0x33c328(0x18c),'attributes':{'class':['ck',_0x33c328(0x184)]},'children':[{'text':this[_0x33c328(0x192)]['to'](_0x33c328(0x1d0))}]}];}[_0x48efcc(0x1ac)](_0x5b953f){const _0xf3817c=_0x48efcc,_0x4a8664=this[_0xf3817c(0x1cc)][_0xf3817c(0x1b0)](_0x39fe00=>_0x39fe00[_0xf3817c(0x1ae)]['id'][_0xf3817c(0x196)](_0x5b953f));if(!_0x4a8664)throw new _0x199efa(_0xf3817c(0x187),this,{'id':_0x5b953f});return _0x4a8664;}[_0x48efcc(0x1c9)](_0x954166){const _0x359df4=_0x48efcc;this[_0x359df4(0x19b)](_0x359df4(0x1d0),_0x954166);}[_0x48efcc(0x1ab)](_0x15736f){const _0x211918=_0x48efcc;this[_0x211918(0x19b)](_0x211918(0x1a9),_0x15736f);}[_0x48efcc(0x1b7)](){const _0x1eaca3=_0x48efcc;this[_0x1eaca3(0x1c6)][_0x1eaca3(0x199)]();}[_0x48efcc(0x197)](){const _0x5b6293=_0x48efcc;this[_0x5b6293(0x1c6)][_0x5b6293(0x1c1)]();}}
23
+ const _0x41ba10=_0x2e1a;(function(_0x55cd11,_0x4da3df){const _0x12dda4=_0x2e1a,_0x549d7d=_0x55cd11();while(!![]){try{const _0x2f255c=-parseInt(_0x12dda4(0x137))/0x1*(-parseInt(_0x12dda4(0x149))/0x2)+parseInt(_0x12dda4(0x13a))/0x3+-parseInt(_0x12dda4(0x118))/0x4+parseInt(_0x12dda4(0x14b))/0x5*(parseInt(_0x12dda4(0x14f))/0x6)+-parseInt(_0x12dda4(0x107))/0x7*(parseInt(_0x12dda4(0x142))/0x8)+-parseInt(_0x12dda4(0x133))/0x9*(parseInt(_0x12dda4(0x14e))/0xa)+-parseInt(_0x12dda4(0x13c))/0xb;if(_0x2f255c===_0x4da3df)break;else _0x549d7d['push'](_0x549d7d['shift']());}catch(_0x1adeb8){_0x549d7d['push'](_0x549d7d['shift']());}}}(_0x39a0,0xd021c));function _0x39a0(){const _0x430c64=['extendTemplate','isLoadingSkeletonVisible','ai-chat-feed-view-item-not-found','map','setTemplate','destroy','updateContent','ck-hidden','clear','start','markAsDone','_createFeedItems','div','aiFeed','1753668VsAvzJ','ai-reply','interaction-header','span','89esPVAG','delegate','ai-chat-feed-view-item-not-a-suggestion-or-reply-item','4376154UleDNy','addItem','17781467nDUFaw','removeItem','_createSkeletonLoader','_createFeedLoader','_setupTemplate','user-message','4602424aymfTi','ck-ai-chat__loader','set','ck-ai-chat-feed-view-scroll-to-suggestion-invalid-item','updateSuggestionItem','markItemAsDone','remove','17230JWkRFL','updateSources','4715EObVgU','ck-ai-chat-feed-view-scroll-to-suggestion-part-view-not-found','locale','20ZprVnJ','9840oitSBp','options','isPending','updateSuggestionPartState','ai-chat-feed-view-item-not-a-suggestion-item','updateWebSources','find','bindTemplate','ck-ai-chat__feed__items','startAutoScroll','7KURKQQ','getItemIds','scrollToSuggestion','getItemById','_createTemplateChildren','setLoadingMessage','scrollManager','updatePartState','render','stopAutoScroll','isTrackChangesOn','ck-ai-chat__loader-text','isVisible','getPartView','ai-chat-feed-view-item-not-a-reply-item','bind','_createLoaderChildren','1351844BKtKwO','includes','createCollection','_bodyCollection','loadingMessage','toggleLoadingSkeleton','element','children','add','updateReplyItem','stop','ck-ai-chat__feed','ai-suggestion-reply'];_0x39a0=function(){return _0x430c64;};return _0x39a0();}import{CKEditorError as _0x1b6116,logWarning as _0x4b9416,scrollViewportToShowTarget as _0x1a8ba5}from'ckeditor5/src/utils.js';import{View as _0x12a8a1}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x125173}from'../utils/eventnames.js';import{AIChatFeedSuggestionItemView as _0x4d23fc}from'./feed/aichatfeedsuggestionitemview.js';import{AIChatFeedReplyItemView as _0x1eb8cd}from'./feed/aichatfeedreplyitemview.js';import{AIChatFeedUserMessageItemView as _0x105067}from'./feed/aichatfeedusermessageitem.js';import{AIChatFeedErrorItemView as _0x15ba44}from'./feed/aichatfeederroritemview.js';import{AIChatFeedInteractionHeaderView as _0x83b32e}from'./feed/aichatfeedinteractionheaderview.js';import{ScrollManager as _0x43b11d}from'../utils/scrollmanager.js';import{AISkeletonView as _0x4ce2e7,SKELETON_DEFINITIONS as _0x5c4277}from'../../aicore/ui/aiskeleton.js';function _0x2e1a(_0x1c4c03,_0x34d914){const _0x39a08f=_0x39a0();return _0x2e1a=function(_0x2e1a26,_0x445f6a){_0x2e1a26=_0x2e1a26-0x103;let _0x598bed=_0x39a08f[_0x2e1a26];return _0x598bed;},_0x2e1a(_0x1c4c03,_0x34d914);}import{AISpinnerView as _0x15cd35}from'../../aicore/ui/aispinner.js';export class AIChatFeedView extends _0x12a8a1{[_0x41ba10(0x11f)];[_0x41ba10(0x10d)];[_0x41ba10(0x11b)];constructor(_0x4409f8,_0x82d280){const _0xe7de78=_0x41ba10;super(_0x4409f8),this[_0xe7de78(0x11b)]=_0x82d280,this[_0xe7de78(0x144)](_0xe7de78(0x151),!0x1),this[_0xe7de78(0x144)](_0xe7de78(0x11c),''),this[_0xe7de78(0x144)](_0xe7de78(0x126),!0x1),this[_0xe7de78(0x144)](_0xe7de78(0x111),!0x1),this[_0xe7de78(0x11f)]=this[_0xe7de78(0x11a)](),this[_0xe7de78(0x11f)][_0xe7de78(0x138)](..._0x125173)['to'](this),this[_0xe7de78(0x140)]();}[_0x41ba10(0x10f)](){const _0x5bdcb5=_0x41ba10;super[_0x5bdcb5(0x10f)](),this[_0x5bdcb5(0x10d)]=new _0x43b11d(this[_0x5bdcb5(0x11e)]);}[_0x41ba10(0x12a)](){const _0x34bffc=_0x41ba10;super[_0x34bffc(0x12a)](),this[_0x34bffc(0x10d)][_0x34bffc(0x12a)]();}[_0x41ba10(0x12d)](){const _0x75e1b7=_0x41ba10;this[_0x75e1b7(0x11f)][_0x75e1b7(0x12d)]();}[_0x41ba10(0x13b)](_0x30fe06,_0x1287f1){const _0x4941bb=_0x41ba10;let _0x19846d;_0x4941bb(0x134)===_0x30fe06?_0x19846d=new _0x1eb8cd(this[_0x4941bb(0x14d)],_0x1287f1):_0x4941bb(0x124)===_0x30fe06?(_0x19846d=new _0x4d23fc(this[_0x4941bb(0x14d)],_0x1287f1),_0x19846d[_0x4941bb(0x116)](_0x4941bb(0x111))['to'](this,_0x4941bb(0x111))):_0x19846d=_0x4941bb(0x141)===_0x30fe06?new _0x105067(this[_0x4941bb(0x14d)],_0x1287f1,this[_0x4941bb(0x11b)]):_0x4941bb(0x135)===_0x30fe06?new _0x83b32e(this[_0x4941bb(0x14d)],_0x1287f1):new _0x15ba44(_0x1287f1),this[_0x4941bb(0x11f)][_0x4941bb(0x120)](_0x19846d);}async[_0x41ba10(0x121)]({id:_0x1225ba,parsedContent:_0x32cc66,renderingStrategy:_0x21d61a,abortSignal:_0x3764cc}){const _0x1c6845=_0x41ba10,_0x1e6827=this[_0x1c6845(0x10a)](_0x1225ba);if(!(_0x1e6827 instanceof _0x1eb8cd))throw new _0x1b6116(_0x1c6845(0x115),null,{'itemView':_0x1e6827,'id':_0x1225ba,'parsedContent':_0x32cc66});await _0x1e6827[_0x1c6845(0x12b)]({'parsedContent':_0x32cc66,'renderingStrategy':_0x21d61a,'abortSignal':_0x3764cc});}async[_0x41ba10(0x154)](_0x131d51,_0x5ab919){const _0x401a4d=_0x41ba10,_0x47339d=this[_0x401a4d(0x10a)](_0x131d51);if(_0x47339d instanceof _0x4d23fc)_0x47339d[_0x401a4d(0x14a)](_0x5ab919);else{if(!(_0x47339d instanceof _0x1eb8cd))throw new _0x1b6116(_0x401a4d(0x139),null,{'itemView':_0x47339d,'id':_0x131d51,'sources':_0x5ab919});_0x47339d[_0x401a4d(0x14a)](_0x5ab919);}}async[_0x41ba10(0x146)]({id:_0x16ee74,parts:_0x20afd1,renderingStrategy:_0x26a362,abortSignal:_0x30fc43}){const _0x2f48b0=_0x41ba10,_0x593dcd=this[_0x2f48b0(0x10a)](_0x16ee74);if(!(_0x593dcd instanceof _0x4d23fc))throw new _0x1b6116(_0x2f48b0(0x153),null,{'itemView':_0x593dcd,'id':_0x16ee74,'parts':_0x20afd1});await _0x593dcd[_0x2f48b0(0x12b)]({'parts':_0x20afd1,'renderingStrategy':_0x26a362,'abortSignal':_0x30fc43});}[_0x41ba10(0x152)]({id:_0x40be1a,index:_0x3a69e9,state:_0x1ff6eb}){const _0x1f6834=_0x41ba10,_0x2d4342=this[_0x1f6834(0x10a)](_0x40be1a);if(!(_0x2d4342 instanceof _0x4d23fc))throw new _0x1b6116(_0x1f6834(0x153),this,{'id':_0x40be1a});_0x2d4342[_0x1f6834(0x10e)](_0x3a69e9,_0x1ff6eb);}[_0x41ba10(0x147)](_0x1e06e7){const _0x48a673=_0x41ba10;this[_0x48a673(0x10a)](_0x1e06e7)[_0x48a673(0x12f)]();}[_0x41ba10(0x108)](){const _0x3e9c96=_0x41ba10;return this[_0x3e9c96(0x11f)][_0x3e9c96(0x128)](_0x5f1dc0=>_0x5f1dc0[_0x3e9c96(0x150)]['id']);}[_0x41ba10(0x13d)](_0x1d86c1){const _0x132b67=_0x41ba10;this[_0x132b67(0x11f)][_0x132b67(0x148)](this[_0x132b67(0x10a)](_0x1d86c1));}[_0x41ba10(0x109)](_0x35997a,_0xc5389e){const _0x3248c0=_0x41ba10,_0x3c3ec1=this[_0x3248c0(0x10a)](_0x35997a);if(!(_0x3c3ec1 instanceof _0x4d23fc))return void _0x4b9416(_0x3248c0(0x145),{'replyId':_0x35997a,'partIndex':_0xc5389e});const _0x67e328=_0x3c3ec1[_0x3248c0(0x114)](_0xc5389e);_0x67e328?_0x1a8ba5({'target':_0x67e328[_0x3248c0(0x11e)],'ancestorOffset':0x14,'alignToTop':!0x0,'forceScroll':!0x0}):_0x4b9416(_0x3248c0(0x14c),{'replyId':_0x35997a,'partIndex':_0xc5389e});}[_0x41ba10(0x140)](){const _0x3599e7=_0x41ba10;this[_0x3599e7(0x129)]({'tag':_0x3599e7(0x131),'attributes':{'class':['ck',_0x3599e7(0x123)]},'children':this[_0x3599e7(0x10b)]()});}[_0x41ba10(0x10b)](){const _0x4b4763=_0x41ba10,_0x4560d9=this[_0x4b4763(0x13e)]();return[this[_0x4b4763(0x130)](),_0x4560d9,this[_0x4b4763(0x13f)]()];}[_0x41ba10(0x13e)](){const _0x2d704a=_0x41ba10,_0x4517a3=new _0x4ce2e7(this[_0x2d704a(0x14d)],_0x5c4277[_0x2d704a(0x132)]);return _0x4517a3[_0x2d704a(0x125)]({'attributes':{'class':[this[_0x2d704a(0x104)]['if'](_0x2d704a(0x126),_0x2d704a(0x12c),_0x159697=>!_0x159697)]}}),_0x4517a3;}[_0x41ba10(0x130)](){const _0x4e924b=_0x41ba10,_0x5ab376=new _0x12a8a1(this[_0x4e924b(0x14d)]);return _0x5ab376[_0x4e924b(0x129)]({'tag':_0x4e924b(0x131),'attributes':{'class':['ck',_0x4e924b(0x105),this[_0x4e924b(0x104)]['if'](_0x4e924b(0x126),_0x4e924b(0x12c))]},'children':this[_0x4e924b(0x11f)]}),_0x5ab376;}[_0x41ba10(0x13f)](){const _0x487a13=_0x41ba10,_0xdfc592=new _0x12a8a1(this[_0x487a13(0x14d)]);return _0xdfc592[_0x487a13(0x129)]({'tag':_0x487a13(0x131),'attributes':{'class':['ck',_0x487a13(0x143),this[_0x487a13(0x104)]['if'](_0x487a13(0x151),_0x487a13(0x12c),_0x48c8f9=>!_0x48c8f9)]},'children':this[_0x487a13(0x117)]()}),_0xdfc592;}[_0x41ba10(0x117)](){const _0x25df19=_0x41ba10,_0xae35be=new _0x15cd35();return _0xae35be[_0x25df19(0x113)]=!0x0,[_0xae35be,{'tag':_0x25df19(0x136),'attributes':{'class':['ck',_0x25df19(0x112)]},'children':[{'text':this[_0x25df19(0x104)]['to'](_0x25df19(0x11c))}]}];}[_0x41ba10(0x10a)](_0x4094c8){const _0x36cdb3=_0x41ba10,_0x1f6b42=this[_0x36cdb3(0x11f)][_0x36cdb3(0x103)](_0xe4cbd4=>_0xe4cbd4[_0x36cdb3(0x150)]['id'][_0x36cdb3(0x119)](_0x4094c8));if(!_0x1f6b42)throw new _0x1b6116(_0x36cdb3(0x127),this,{'id':_0x4094c8});return _0x1f6b42;}[_0x41ba10(0x10c)](_0x2a69ba){const _0x5afb73=_0x41ba10;this[_0x5afb73(0x144)](_0x5afb73(0x11c),_0x2a69ba);}[_0x41ba10(0x11d)](_0x57ae90){const _0x5a7951=_0x41ba10;this[_0x5a7951(0x144)](_0x5a7951(0x126),_0x57ae90);}[_0x41ba10(0x106)](){const _0x80875d=_0x41ba10;this[_0x80875d(0x10d)][_0x80875d(0x12e)]();}[_0x41ba10(0x110)](){const _0x4d37c6=_0x41ba10;this[_0x4d37c6(0x10d)][_0x4d37c6(0x122)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b6339=_0x543b;(function(_0x4c9b6e,_0x5b3e7c){const _0x4094b9=_0x543b,_0x336feb=_0x4c9b6e();while(!![]){try{const _0x136df1=parseInt(_0x4094b9(0x103))/0x1+parseInt(_0x4094b9(0x10a))/0x2+parseInt(_0x4094b9(0x109))/0x3+parseInt(_0x4094b9(0x107))/0x4+-parseInt(_0x4094b9(0xfd))/0x5*(parseInt(_0x4094b9(0x10c))/0x6)+parseInt(_0x4094b9(0xfa))/0x7+-parseInt(_0x4094b9(0x100))/0x8*(parseInt(_0x4094b9(0x10e))/0x9);if(_0x136df1===_0x5b3e7c)break;else _0x336feb['push'](_0x336feb['shift']());}catch(_0x1244c3){_0x336feb['push'](_0x336feb['shift']());}}}(_0x354a,0x5963c));function _0x354a(){const _0x5bee33=['20eDCAvx','AI_CHAT_LABEL_NEW_CHAT','resizeButton','31256zNPptY','conversationStartButton','set','539191cjrzBE','_createStartConversationButton','children','isMaximized','186600aMiYZu','add','902319BkMJNd','47508aoJOXR','startConversation','232794rxNRcZ','ck-ai-chat__start-conversation','1611hYpOng','execute','locale','AI_CHAT_HEADING','2172247IDMXuL','fire','ck-ai-header\x20ck-ai-header_chat'];_0x354a=function(){return _0x5bee33;};return _0x354a();}import{ButtonView as _0x54b6fd,FormHeaderView as _0x179c8c}from'ckeditor5/src/ui.js';import{IconPlus as _0x41cbf5,IconAIChat as _0x59a93a}from'ckeditor5/src/icons.js';function _0x543b(_0x6fd5b1,_0x77f58d){const _0x354ab2=_0x354a();return _0x543b=function(_0x543b8a,_0x5a2289){_0x543b8a=_0x543b8a-0xf8;let _0x45fec5=_0x354ab2[_0x543b8a];return _0x45fec5;},_0x543b(_0x6fd5b1,_0x77f58d);}import{getTranslation as _0x5d5a2a}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x24caf4}from'../../aicore/utils/createresizebutton.js';export class AIChatHeaderView extends _0x179c8c{[_0x4b6339(0x101)];[_0x4b6339(0xff)];constructor(_0x4619ec,_0x398070){const _0x1162fc=_0x4b6339;super(_0x4619ec,{'label':_0x5d5a2a(_0x4619ec,_0x1162fc(0xf9)),'class':_0x1162fc(0xfc),'icon':_0x59a93a}),this[_0x1162fc(0x102)](_0x1162fc(0x106),!0x1),this[_0x1162fc(0x101)]=this[_0x1162fc(0x104)](_0x4619ec),this[_0x1162fc(0x105)][_0x1162fc(0x108)](this[_0x1162fc(0x101)]),_0x398070&&(this[_0x1162fc(0xff)]=_0x24caf4(_0x4619ec,this),this[_0x1162fc(0x105)][_0x1162fc(0x108)](this[_0x1162fc(0xff)]));}[_0x4b6339(0x104)](_0x3e9121){const _0x4f2a36=_0x4b6339,_0x580709=new _0x54b6fd(_0x3e9121);return _0x580709[_0x4f2a36(0x102)]({'label':_0x5d5a2a(this[_0x4f2a36(0xf8)],_0x4f2a36(0xfe)),'withText':!0x0,'icon':_0x41cbf5,'class':_0x4f2a36(0x10d)}),_0x580709['on'](_0x4f2a36(0x10f),()=>{const _0x3d575f=_0x4f2a36;this[_0x3d575f(0xfb)](_0x3d575f(0x10b));}),_0x580709;}}
23
+ const _0x3225f0=_0xa418;(function(_0x1196ef,_0x15039e){const _0x4d2ea6=_0xa418,_0x5aff61=_0x1196ef();while(!![]){try{const _0x545149=-parseInt(_0x4d2ea6(0xf1))/0x1+-parseInt(_0x4d2ea6(0xeb))/0x2+parseInt(_0x4d2ea6(0xea))/0x3*(parseInt(_0x4d2ea6(0xf2))/0x4)+parseInt(_0x4d2ea6(0xe0))/0x5+-parseInt(_0x4d2ea6(0xe8))/0x6*(parseInt(_0x4d2ea6(0xe2))/0x7)+parseInt(_0x4d2ea6(0xf4))/0x8*(parseInt(_0x4d2ea6(0xed))/0x9)+parseInt(_0x4d2ea6(0xf7))/0xa;if(_0x545149===_0x15039e)break;else _0x5aff61['push'](_0x5aff61['shift']());}catch(_0x1ee4ea){_0x5aff61['push'](_0x5aff61['shift']());}}}(_0x439c,0x7af16));function _0x439c(){const _0x11d2f7=['resizeButton','startConversation','fire','42OScWlx','set','141EPSozU','814772wRWAYZ','isMaximized','8469837xMYJBO','ck-ai-chat__start-conversation','_createStartConversationButton','conversationStartButton','702105LemsXs','31260YtJaTj','AI_CHAT_HEADING','8oLliRk','add','AI_CHAT_LABEL_NEW_CHAT','6056930wANROM','children','865665dBAhRv','locale','474159iDIiJL','ck-ai-header\x20ck-ai-header_chat','execute'];_0x439c=function(){return _0x11d2f7;};return _0x439c();}import{ButtonView as _0x2a0eed,FormHeaderView as _0x54720c}from'ckeditor5/src/ui.js';import{IconPlus as _0x3e99a5,IconAIChat as _0x168672}from'ckeditor5/src/icons.js';import{getTranslation as _0x64d84b}from'../../aicore/utils/common-translations.js';import{createResizeButton as _0x47d9b2}from'../../aicore/utils/createresizebutton.js';function _0xa418(_0x31e5b6,_0x1e6d7a){const _0x439cb=_0x439c();return _0xa418=function(_0xa418bc,_0x2cc227){_0xa418bc=_0xa418bc-0xdf;let _0x14dfc0=_0x439cb[_0xa418bc];return _0x14dfc0;},_0xa418(_0x31e5b6,_0x1e6d7a);}export class AIChatHeaderView extends _0x54720c{[_0x3225f0(0xf0)];[_0x3225f0(0xe5)];constructor(_0x585dfd,_0x152e1a){const _0x3c2d9a=_0x3225f0;super(_0x585dfd,{'label':_0x64d84b(_0x585dfd,_0x3c2d9a(0xf3)),'class':_0x3c2d9a(0xe3),'icon':_0x168672}),this[_0x3c2d9a(0xe9)](_0x3c2d9a(0xec),!0x1),this[_0x3c2d9a(0xf0)]=this[_0x3c2d9a(0xef)](_0x585dfd),this[_0x3c2d9a(0xdf)][_0x3c2d9a(0xf5)](this[_0x3c2d9a(0xf0)]),_0x152e1a&&(this[_0x3c2d9a(0xe5)]=_0x47d9b2(_0x585dfd,this),this[_0x3c2d9a(0xdf)][_0x3c2d9a(0xf5)](this[_0x3c2d9a(0xe5)]));}[_0x3225f0(0xef)](_0x4d03d4){const _0x7a0a3f=_0x3225f0,_0x4680a0=new _0x2a0eed(_0x4d03d4);return _0x4680a0[_0x7a0a3f(0xe9)]({'label':_0x64d84b(this[_0x7a0a3f(0xe1)],_0x7a0a3f(0xf6)),'withText':!0x0,'icon':_0x3e99a5,'class':_0x7a0a3f(0xee)}),_0x4680a0['on'](_0x7a0a3f(0xe4),()=>{const _0x160998=_0x7a0a3f;this[_0x160998(0xe7)](_0x160998(0xe6));}),_0x4680a0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2ab5d4=_0x2047;(function(_0x45d78e,_0x15743e){var _0xb20ee7=_0x2047,_0x46eb9a=_0x45d78e();while(!![]){try{var _0x57ad1e=parseInt(_0xb20ee7(0x171))/0x1+-parseInt(_0xb20ee7(0x166))/0x2*(parseInt(_0xb20ee7(0x16b))/0x3)+parseInt(_0xb20ee7(0x174))/0x4+parseInt(_0xb20ee7(0x17c))/0x5+parseInt(_0xb20ee7(0x16f))/0x6+-parseInt(_0xb20ee7(0x17a))/0x7*(-parseInt(_0xb20ee7(0x180))/0x8)+-parseInt(_0xb20ee7(0x16c))/0x9*(parseInt(_0xb20ee7(0x17b))/0xa);if(_0x57ad1e===_0x15743e)break;else _0x46eb9a['push'](_0x46eb9a['shift']());}catch(_0x3d588f){_0x46eb9a['push'](_0x46eb9a['shift']());}}}(_0x2ec9,0x7a0ff));import{View as _0x35dcb1,BodyCollection as _0x254a50}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1ada4b}from'../utils/eventnames.js';function _0x2ec9(){var _0x32bb9c=['355973wHDCqg','destroy','contextResourcesSearchInputVisibleFrom','2412492EVupAk','uiLanguageDirection','div','showResizeButton','attachToDom','chatHeader','65177TplYNc','9829280kBSisq','3543770MrXkah','populateSourceResourceBalloon','detachFromDom','ck-rounded-corners','408uNZUhF','ck-ai-chat','chatDisclaimer','514084tCMYMn','_bodyCollection','chatControls','setTemplate','ck-reset_all','9iAeilH','9AGdybV','chatFeed','delegate','667860MwYawf','closeSourceResourceBalloon'];_0x2ec9=function(){return _0x32bb9c;};return _0x2ec9();}import{AIChatFeedView as _0x25d76c}from'./aichatfeedview.js';import{AIChatControlsView as _0x2a08de}from'./aichatcontrolsview.js';import{AIChatHeaderView as _0x5b7bf1}from'./aichatheaderview.js';function _0x2047(_0x524118,_0x15ea06){var _0x2ec988=_0x2ec9();return _0x2047=function(_0x2047e3,_0x5231d3){_0x2047e3=_0x2047e3-0x165;var _0x4e2049=_0x2ec988[_0x2047e3];return _0x4e2049;},_0x2047(_0x524118,_0x15ea06);}import{AIDisclaimerView as _0x32499b}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x35dcb1{[_0x2ab5d4(0x179)];[_0x2ab5d4(0x16d)];[_0x2ab5d4(0x168)];[_0x2ab5d4(0x165)];[_0x2ab5d4(0x167)];constructor(_0x5edb8b,_0x43a9bf){var _0x3cb740=_0x2ab5d4;super(_0x5edb8b),this[_0x3cb740(0x167)]=new _0x254a50(_0x5edb8b),this[_0x3cb740(0x167)][_0x3cb740(0x178)](),this[_0x3cb740(0x179)]=new _0x5b7bf1(_0x5edb8b,_0x43a9bf[_0x3cb740(0x177)]),this[_0x3cb740(0x179)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x16d)]=new _0x25d76c(_0x5edb8b,this[_0x3cb740(0x167)]),this[_0x3cb740(0x16d)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x168)]=new _0x2a08de(_0x5edb8b,{'bodyCollection':this[_0x3cb740(0x167)],'contextResourcesSearchInputVisibleFrom':_0x43a9bf[_0x3cb740(0x173)]}),this[_0x3cb740(0x168)][_0x3cb740(0x16e)](..._0x1ada4b)['to'](this),this[_0x3cb740(0x165)]=new _0x32499b(_0x5edb8b),this[_0x3cb740(0x169)]({'tag':_0x3cb740(0x176),'attributes':{'class':['ck',_0x3cb740(0x16a),_0x3cb740(0x181),_0x3cb740(0x17f)],'dir':_0x5edb8b[_0x3cb740(0x175)]},'children':[this[_0x3cb740(0x179)],this[_0x3cb740(0x16d)],this[_0x3cb740(0x168)],this[_0x3cb740(0x165)]]});}[_0x2ab5d4(0x17d)](_0x2f2cd7,_0x12854e,_0xbd1347,_0x17af76){var _0x55b854=_0x2ab5d4;this[_0x55b854(0x168)][_0x55b854(0x17d)](_0x2f2cd7,_0x12854e,_0xbd1347,_0x17af76);}[_0x2ab5d4(0x170)](_0x168d26){var _0x77e799=_0x2ab5d4;this[_0x77e799(0x168)][_0x77e799(0x170)](_0x168d26);}[_0x2ab5d4(0x172)](){var _0x11205f=_0x2ab5d4;this[_0x11205f(0x167)][_0x11205f(0x17e)](),super[_0x11205f(0x172)]();}}
23
+ var _0x19a2dc=_0x43b7;(function(_0x232053,_0x2eec9d){var _0x6c4fa9=_0x43b7,_0x241256=_0x232053();while(!![]){try{var _0x6623ff=parseInt(_0x6c4fa9(0xd5))/0x1+parseInt(_0x6c4fa9(0xda))/0x2+parseInt(_0x6c4fa9(0xc4))/0x3*(-parseInt(_0x6c4fa9(0xd8))/0x4)+parseInt(_0x6c4fa9(0xdb))/0x5+-parseInt(_0x6c4fa9(0xc5))/0x6+parseInt(_0x6c4fa9(0xd1))/0x7*(-parseInt(_0x6c4fa9(0xca))/0x8)+-parseInt(_0x6c4fa9(0xcc))/0x9;if(_0x6623ff===_0x2eec9d)break;else _0x241256['push'](_0x241256['shift']());}catch(_0x2d0e1a){_0x241256['push'](_0x241256['shift']());}}}(_0x559a,0xc1b49));import{View as _0x22da13,BodyCollection as _0x31e6a6}from'ckeditor5/src/ui.js';import{AI_CHAT_UI_EVENT_NAMES as _0x1df0fa}from'../utils/eventnames.js';import{AIChatFeedView as _0x1b9685}from'./aichatfeedview.js';function _0x559a(){var _0x2d0e45=['attachToDom','destroy','233152cCNqxv','_bodyCollection','5115393vYCMdh','chatDisclaimer','div','setTemplate','ck-reset_all','28ugudnS','chatFeed','chatControls','showResizeButton','828356dxnrzN','detachFromDom','populateSourceResourceBalloon','58228wrkLTg','contextResourcesSearchInputVisibleFrom','2039102KhDTtM','178070PZwjQF','ck-rounded-corners','closeSourceResourceBalloon','delegate','uiLanguageDirection','39wpykmL','1295460rSungb','ck-ai-chat','chatHeader'];_0x559a=function(){return _0x2d0e45;};return _0x559a();}import{AIChatControlsView as _0x4fd109}from'./aichatcontrolsview.js';function _0x43b7(_0x298533,_0x5b10ba){var _0x559ae0=_0x559a();return _0x43b7=function(_0x43b72c,_0x2cf9b6){_0x43b72c=_0x43b72c-0xc2;var _0x4fe5df=_0x559ae0[_0x43b72c];return _0x4fe5df;},_0x43b7(_0x298533,_0x5b10ba);}import{AIChatHeaderView as _0x2293b3}from'./aichatheaderview.js';import{AIDisclaimerView as _0x13f0bb}from'../../aicore/ui/aidisclaimerview.js';export class AIChatView extends _0x22da13{[_0x19a2dc(0xc7)];[_0x19a2dc(0xd2)];[_0x19a2dc(0xd3)];[_0x19a2dc(0xcd)];[_0x19a2dc(0xcb)];constructor(_0x59b44d,_0xeb3186){var _0x51af4d=_0x19a2dc;super(_0x59b44d),this[_0x51af4d(0xcb)]=new _0x31e6a6(_0x59b44d),this[_0x51af4d(0xcb)][_0x51af4d(0xc8)](),this[_0x51af4d(0xc7)]=new _0x2293b3(_0x59b44d,_0xeb3186[_0x51af4d(0xd4)]),this[_0x51af4d(0xc7)][_0x51af4d(0xc2)](..._0x1df0fa)['to'](this),this[_0x51af4d(0xd2)]=new _0x1b9685(_0x59b44d,this[_0x51af4d(0xcb)]),this[_0x51af4d(0xd2)][_0x51af4d(0xc2)](..._0x1df0fa)['to'](this),this[_0x51af4d(0xd3)]=new _0x4fd109(_0x59b44d,{'bodyCollection':this[_0x51af4d(0xcb)],'contextResourcesSearchInputVisibleFrom':_0xeb3186[_0x51af4d(0xd9)]}),this[_0x51af4d(0xd3)][_0x51af4d(0xc2)](..._0x1df0fa)['to'](this),this[_0x51af4d(0xcd)]=new _0x13f0bb(_0x59b44d),this[_0x51af4d(0xcf)]({'tag':_0x51af4d(0xce),'attributes':{'class':['ck',_0x51af4d(0xd0),_0x51af4d(0xc6),_0x51af4d(0xdc)],'dir':_0x59b44d[_0x51af4d(0xc3)]},'children':[this[_0x51af4d(0xc7)],this[_0x51af4d(0xd2)],this[_0x51af4d(0xd3)],this[_0x51af4d(0xcd)]]});}[_0x19a2dc(0xd7)](_0x4a902a,_0x598c62,_0x364b48,_0x2cd466){var _0xf19426=_0x19a2dc;this[_0xf19426(0xd3)][_0xf19426(0xd7)](_0x4a902a,_0x598c62,_0x364b48,_0x2cd466);}[_0x19a2dc(0xdd)](_0x274bbb){var _0x114616=_0x19a2dc;this[_0x114616(0xd3)][_0x114616(0xdd)](_0x274bbb);}[_0x19a2dc(0xc9)](){var _0x116f53=_0x19a2dc;this[_0x116f53(0xcb)][_0x116f53(0xd6)](),super[_0x116f53(0xc9)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18d4d3=_0x1803;(function(_0x1ad999,_0x2d01fb){const _0x2a5cad=_0x1803,_0x1e58ba=_0x1ad999();while(!![]){try{const _0x143990=parseInt(_0x2a5cad(0x14e))/0x1+-parseInt(_0x2a5cad(0x10e))/0x2+-parseInt(_0x2a5cad(0x14f))/0x3+parseInt(_0x2a5cad(0xf0))/0x4+parseInt(_0x2a5cad(0xfb))/0x5+-parseInt(_0x2a5cad(0x12f))/0x6+-parseInt(_0x2a5cad(0xdd))/0x7*(parseInt(_0x2a5cad(0xf8))/0x8);if(_0x143990===_0x2d01fb)break;else _0x1e58ba['push'](_0x1e58ba['shift']());}catch(_0x30cb9e){_0x1e58ba['push'](_0x1e58ba['shift']());}}}(_0x268a,0xdafea));function _0x1803(_0x303be1,_0x3e8944){const _0x268a78=_0x268a();return _0x1803=function(_0x180346,_0x32d9d1){_0x180346=_0x180346-0xc7;let _0x283512=_0x268a78[_0x180346];return _0x283512;},_0x1803(_0x303be1,_0x3e8944);}import{View as _0x1fe215,BalloonPanelView as _0x6c617b,ButtonView as _0xa2b03e,clickOutsideHandler as _0x54ce94}from'ckeditor5/src/ui.js';import{Collection as _0x2a609c}from'ckeditor5/src/utils.js';const ln={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x18d4d3(0x133);export class AIChatChipsOverflowManager{[_0x18d4d3(0xf7)];[_0x18d4d3(0x154)];[_0x18d4d3(0xfd)];[_0x18d4d3(0x125)];[_0x18d4d3(0xf5)]=null;[_0x18d4d3(0xfa)]=null;[_0x18d4d3(0x129)]=null;[_0x18d4d3(0xf1)];[_0x18d4d3(0x144)]=null;[_0x18d4d3(0x118)]=null;[_0x18d4d3(0xe0)]=!0x1;constructor(_0x33b01e,_0x3d0b79,_0x4abfaf,_0x12b8c4,_0x48d367){const _0x2d6546=_0x18d4d3;this[_0x2d6546(0xf7)]=_0x33b01e,this[_0x2d6546(0xfd)]=_0x3d0b79,this[_0x2d6546(0x154)]={...ln,..._0x4abfaf,'cssClasses':{'controlsButton':'','calculationContainer':_0x2d6546(0x13c),..._0x4abfaf[_0x2d6546(0x111)]}},this[_0x2d6546(0x125)]=new _0x2a609c(),this[_0x2d6546(0xf1)]=_0x12b8c4,this[_0x2d6546(0x144)]=_0x48d367||null;}[_0x18d4d3(0xf2)](_0x4f0b7c){const _0x30e26c=_0x18d4d3;this[_0x30e26c(0x118)]&&(this[_0x30e26c(0x118)][_0x30e26c(0x142)](),this[_0x30e26c(0x118)]=null),this[_0x30e26c(0x129)]=_0x4f0b7c,this[_0x30e26c(0x115)]();}get[_0x18d4d3(0xcc)](){const _0x1f745c=_0x18d4d3;return this[_0x1f745c(0xf5)];}get[_0x18d4d3(0x114)](){const _0x1eefc3=_0x18d4d3;return this[_0x1eefc3(0x125)];}[_0x18d4d3(0xcd)](){requestAnimationFrame(()=>{const _0x53493e=_0x1803;this[_0x53493e(0xcb)]();});}[_0x18d4d3(0x137)](){const _0x501522=_0x18d4d3;this[_0x501522(0xf5)]&&this[_0x501522(0xfa)]&&(this[_0x501522(0x105)](),this[_0x501522(0xf5)][_0x501522(0xce)]=!0x0,this[_0x501522(0xfa)][_0x501522(0x123)](),this[_0x501522(0xfa)][_0x501522(0x158)]({'target':this[_0x501522(0xf5)][_0x501522(0xc9)],'limiter':document[_0x501522(0x102)](_0x501522(0xf3))}));}[_0x18d4d3(0x10c)](){const _0x1e7cef=_0x18d4d3;this[_0x1e7cef(0xf5)]&&this[_0x1e7cef(0xfa)]&&(this[_0x1e7cef(0xf5)][_0x1e7cef(0xce)]=!0x1,this[_0x1e7cef(0xfa)][_0x1e7cef(0x122)]());}[_0x18d4d3(0x136)](){const _0x336f18=_0x18d4d3;this[_0x336f18(0x125)][_0x336f18(0x136)](),this[_0x336f18(0x10c)](),this[_0x336f18(0x121)](),this[_0x336f18(0xf5)]&&(this[_0x336f18(0xf5)][_0x336f18(0x146)]=''),this[_0x336f18(0xfa)]&&this[_0x336f18(0xfa)][_0x336f18(0xed)][_0x336f18(0x136)]();}[_0x18d4d3(0x120)](){const _0x3a5a79=_0x18d4d3;this[_0x3a5a79(0x118)]&&(this[_0x3a5a79(0x118)][_0x3a5a79(0x142)](),this[_0x3a5a79(0x118)]=null),this[_0x3a5a79(0xf5)]&&(this[_0x3a5a79(0xf5)][_0x3a5a79(0x120)](),this[_0x3a5a79(0xf5)]=null),this[_0x3a5a79(0xfa)]&&(this[_0x3a5a79(0xfa)][_0x3a5a79(0x120)](),this[_0x3a5a79(0xfa)]=null);}[_0x18d4d3(0xcb)](){const _0x4dc455=_0x18d4d3;if(!this[_0x4dc455(0x129)])return;if(!this[_0x4dc455(0x119)]())return void(this[_0x4dc455(0xe0)]=!0x0);this[_0x4dc455(0xe0)]=!0x1;const _0x12de43=[...this[_0x4dc455(0xfd)],...this[_0x4dc455(0x125)]],_0x12d187=this[_0x4dc455(0x14b)](),_0x2fbcf1=this[_0x4dc455(0x139)](_0x12d187,_0x12de43),_0x4f7e28=_0x12d187[_0x4dc455(0x13b)];_0x4f7e28&&this[_0x4dc455(0x12e)](_0x4f7e28),_0x12d187[_0x4dc455(0xd4)](),this[_0x4dc455(0x14d)](_0x12de43,_0x2fbcf1);}[_0x18d4d3(0x107)](){const _0x3b78c7=_0x18d4d3;this[_0x3b78c7(0xf5)]=this[_0x3b78c7(0x14c)](),this[_0x3b78c7(0xfa)]=this[_0x3b78c7(0xf6)](),this[_0x3b78c7(0xf5)][_0x3b78c7(0x13f)](),this[_0x3b78c7(0x129)][_0x3b78c7(0x11f)](this[_0x3b78c7(0xf5)][_0x3b78c7(0xc9)]),this[_0x3b78c7(0xf5)]['on'](_0x3b78c7(0xd1),()=>{const _0x4cbd13=_0x3b78c7;this[_0x4cbd13(0x109)]();}),_0x54ce94({'emitter':this[_0x3b78c7(0xfa)],'contextElements':[this[_0x3b78c7(0xfa)][_0x3b78c7(0xc9)],this[_0x3b78c7(0xf5)][_0x3b78c7(0xc9)]],'callback':()=>this[_0x3b78c7(0x10c)](),'activator':()=>this[_0x3b78c7(0xf5)][_0x3b78c7(0xce)]});}[_0x18d4d3(0x14c)](){const _0x1e635a=_0x18d4d3,_0x42eac9=new _0xa2b03e(this[_0x1e635a(0xf7)]);_0x42eac9[_0x1e635a(0xe7)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x108e18=[this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0x13a)]];return this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0xd2)]&&_0x108e18[_0x1e635a(0xd8)](this[_0x1e635a(0x154)][_0x1e635a(0x111)][_0x1e635a(0xd2)]),_0x42eac9[_0x1e635a(0xc8)]({'attributes':{'class':_0x108e18}}),_0x42eac9;}[_0x18d4d3(0xf6)](){const _0x4f28da=_0x18d4d3,_0x30cc38=new _0x6c617b(this[_0x4f28da(0xf7)]);return _0x30cc38[_0x4f28da(0xc8)]({'attributes':{'class':this[_0x4f28da(0x154)][_0x4f28da(0x111)][_0x4f28da(0x150)]}}),this[_0x4f28da(0xf1)][_0x4f28da(0x126)](_0x30cc38),_0x30cc38;}[_0x18d4d3(0x105)](){const _0x32f19b=_0x18d4d3;if(this[_0x32f19b(0xfa)]&&(this[_0x32f19b(0xfa)][_0x32f19b(0xed)][_0x32f19b(0x136)](),this[_0x32f19b(0x125)][_0x32f19b(0xe3)]>0x0)){this[_0x32f19b(0x125)][_0x32f19b(0xf9)](_0x22d941=>{const _0x2899d8=_0x32f19b;_0x22d941[_0x2899d8(0xe1)]();});const _0xfa192e=new _0x1fe215(this[_0x32f19b(0xf7)]);_0xfa192e[_0x32f19b(0x149)]({'tag':_0x32f19b(0xdc),'attributes':{'class':this[_0x32f19b(0x154)][_0x32f19b(0x111)][_0x32f19b(0xff)]},'children':this[_0x32f19b(0x125)]}),this[_0x32f19b(0xfa)][_0x32f19b(0xed)][_0x32f19b(0x126)](_0xfa192e);}}[_0x18d4d3(0x109)](){const _0x384bb0=_0x18d4d3;this[_0x384bb0(0xf5)][_0x384bb0(0xce)]?this[_0x384bb0(0x10c)]():this[_0x384bb0(0x137)]();}[_0x18d4d3(0x121)](){const _0xe09c15=_0x18d4d3,_0x3b06f2=this[_0xe09c15(0x125)][_0xe09c15(0xe3)]>0x0;this[_0xe09c15(0xf5)]?.[_0xe09c15(0xc9)]&&(this[_0xe09c15(0xf5)][_0xe09c15(0xc9)][_0xe09c15(0x11e)][_0xe09c15(0x157)]=_0x3b06f2?'':_0xe09c15(0xf4));}[_0x18d4d3(0xd3)](){const _0x3c17f2=_0x18d4d3;this[_0x3c17f2(0xf5)]?.[_0x3c17f2(0xce)]&&this[_0x3c17f2(0xfa)]?.[_0x3c17f2(0x143)]&&this[_0x3c17f2(0xf5)][_0x3c17f2(0xc9)]&&this[_0x3c17f2(0xfa)][_0x3c17f2(0x158)]({'target':this[_0x3c17f2(0xf5)][_0x3c17f2(0xc9)],'limiter':document[_0x3c17f2(0x102)](_0x3c17f2(0xf3))});}[_0x18d4d3(0x10b)](_0x462f6a){const _0x3a315d=_0x18d4d3,_0x5c2ad4=this[_0x3a315d(0x129)]?.[_0x3a315d(0x13d)][_0x3a315d(0x131)]()||_0x3a315d(0xdc),_0x40694a=this[_0x3a315d(0x129)]?.[_0x3a315d(0x14a)];if(_0x40694a){const _0x238b06=_0x40694a[0x0]||'',_0x306c11=_0x462f6a[_0x3a315d(0x102)]('.'+_0x238b06),_0x131bee=_0x462f6a[_0x3a315d(0x102)](_0x5c2ad4);return _0x306c11||_0x131bee||_0x462f6a;}return _0x462f6a[_0x3a315d(0x102)](_0x5c2ad4)||_0x462f6a;}[_0x18d4d3(0xee)](){const _0x8e22ee=_0x18d4d3,_0x560b70=this[_0x8e22ee(0x144)]?.[_0x8e22ee(0xc9)]||this[_0x8e22ee(0x129)];if(!_0x560b70)return an;const _0x1a6914=window[_0x8e22ee(0x106)](_0x560b70)[_0x8e22ee(0xe6)];if(_0x8e22ee(0x10d)===_0x1a6914||_0x8e22ee(0x101)===_0x1a6914||!_0x1a6914){const _0x4cbe8a=_0x560b70[_0x8e22ee(0x138)];if(_0x4cbe8a){const _0x372e39=window[_0x8e22ee(0x106)](_0x4cbe8a);return _0x8e22ee(0x10d)!==_0x372e39[_0x8e22ee(0xe6)]?_0x372e39[_0x8e22ee(0xe6)]:an;}return an;}return _0x1a6914;}[_0x18d4d3(0xd5)](_0x311e17,_0x1ce3c6){const _0x474260=_0x18d4d3;this[_0x474260(0x154)][_0x474260(0x111)][_0x474260(0xe9)]&&_0x311e17[_0x474260(0x14a)][_0x474260(0x126)](this[_0x474260(0x154)][_0x474260(0x111)][_0x474260(0xe9)]),_0x311e17[_0x474260(0x11e)][_0x474260(0xe6)]=_0x1ce3c6,_0x311e17[_0x474260(0x11e)][_0x474260(0x132)]=_0x474260(0x153),_0x311e17[_0x474260(0x11e)][_0x474260(0x156)]=_0x474260(0xef),_0x311e17[_0x474260(0x11e)][_0x474260(0xe4)]=_0x474260(0xef),_0x311e17[_0x474260(0x11e)][_0x474260(0x148)]='0',_0x311e17[_0x474260(0x11e)][_0x474260(0x11d)]=_0x474260(0xf4),_0x311e17[_0x474260(0x11e)][_0x474260(0xd7)]='-1',_0x311e17[_0x474260(0x11e)][_0x474260(0xde)]=_0x474260(0x10f),_0x311e17[_0x474260(0x11e)][_0x474260(0x157)]=_0x474260(0xea),_0x311e17[_0x474260(0x11e)][_0x474260(0x147)]=_0x474260(0xec);}[_0x18d4d3(0x12e)](_0x3a43f7){const _0x2172bc=_0x18d4d3;_0x3a43f7[_0x2172bc(0xf9)](({element:_0x33b16f,originalDisplay:_0x452472,originalVisibility:_0x29f507})=>{const _0x2f4213=_0x2172bc;_0x33b16f[_0x2f4213(0x11e)][_0x2f4213(0x157)]=_0x452472,_0x33b16f[_0x2f4213(0x11e)][_0x2f4213(0xde)]=_0x29f507;});}[_0x18d4d3(0xd9)](_0x51a303){const _0x38e0a4=_0x18d4d3,_0x39a773=[];let _0x5f8b45=_0x51a303;for(;_0x5f8b45&&_0x5f8b45!==document[_0x38e0a4(0xd0)];){const _0x4b272c=window[_0x38e0a4(0x106)](_0x5f8b45);_0x38e0a4(0xf4)!==_0x4b272c[_0x38e0a4(0x157)]&&_0x38e0a4(0xe2)!==_0x4b272c[_0x38e0a4(0xde)]||(_0x39a773[_0x38e0a4(0xd8)]({'element':_0x5f8b45,'originalDisplay':_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0x157)],'originalVisibility':_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0xde)]}),_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0x157)]=_0x38e0a4(0x12c),_0x5f8b45[_0x38e0a4(0x11e)][_0x38e0a4(0xde)]=_0x38e0a4(0x100)),_0x5f8b45=_0x5f8b45[_0x38e0a4(0x138)];}return _0x39a773;}[_0x18d4d3(0x108)](){const _0x3c0c28=_0x18d4d3;let _0x57e2a2,_0xa9adfb;return this[_0x3c0c28(0x144)]?.[_0x3c0c28(0xc9)]?(_0x57e2a2=this[_0x3c0c28(0x144)][_0x3c0c28(0xc9)][_0x3c0c28(0xe8)](!0x0),_0xa9adfb=this[_0x3c0c28(0x10b)](_0x57e2a2)):(_0x57e2a2=document[_0x3c0c28(0x151)](_0x3c0c28(0xdc)),_0xa9adfb=_0x57e2a2),{'calculationContainer':_0x57e2a2,'targetContainer':_0xa9adfb};}[_0x18d4d3(0x14b)](){const _0x172055=_0x18d4d3,{calculationContainer:_0x31c197,targetContainer:_0x40acff}=this[_0x172055(0x108)](),_0x40334f=this[_0x172055(0xee)]();this[_0x172055(0xd5)](_0x31c197,_0x40334f);const _0x178745=this[_0x172055(0x144)]?.[_0x172055(0xc9)]||this[_0x172055(0x129)],_0x2a257c=_0x178745?.[_0x172055(0x138)];_0x2a257c?_0x2a257c[_0x172055(0x11f)](_0x31c197):document[_0x172055(0xd0)][_0x172055(0x11f)](_0x31c197),_0x31c197[_0x172055(0x11b)]=_0x40acff;const _0xfbc5f8=this[_0x172055(0xd9)](_0x2a257c||null);return _0x31c197[_0x172055(0xe5)],_0x31c197[_0x172055(0x13b)]=_0xfbc5f8,_0x31c197;}[_0x18d4d3(0x139)](_0x1cb982,_0x297519){const _0x33a090=_0x18d4d3,_0x4827c2=_0x1cb982[_0x33a090(0x11b)]||_0x1cb982,_0x3b9e1d=[],{rowCount:_0x53d626}=this[_0x33a090(0x112)](_0x4827c2,_0x297519);if(_0x53d626<=this[_0x33a090(0x154)][_0x33a090(0xfe)])return _0x3b9e1d;const _0x35a344=_0x297519[_0x33a090(0x10a)]();for(;_0x35a344[_0x33a090(0xe3)]>0x0;){if(this[_0x33a090(0xdf)](_0x1cb982,_0x4827c2,_0x35a344)){const _0x11d17f=_0x297519[_0x33a090(0xeb)](_0x594d89=>!_0x35a344[_0x33a090(0x12a)](_0x594d89));_0x3b9e1d[_0x33a090(0xd8)](..._0x11d17f);break;}if(!_0x35a344[_0x33a090(0x104)]())break;}return _0x3b9e1d;}[_0x18d4d3(0x112)](_0x5f1cb3,_0x1cb74d){const _0x4620f5=_0x18d4d3;_0x5f1cb3[_0x4620f5(0xc7)]='',_0x1cb74d[_0x4620f5(0xf9)](_0x19895e=>{const _0x4d5dbe=_0x4620f5;if(_0x19895e[_0x4d5dbe(0xc9)]){const _0x424158=_0x19895e[_0x4d5dbe(0xc9)][_0x4d5dbe(0xe8)](!0x0);_0x5f1cb3[_0x4d5dbe(0x11f)](_0x424158);}}),_0x5f1cb3[_0x4620f5(0xe5)];const _0x4bb687=_0x5f1cb3[_0x4620f5(0xd6)],_0x25bd2f=[];return Array[_0x4620f5(0x128)](_0x4bb687)[_0x4620f5(0xf9)](_0x2e908f=>{const _0x4f32bd=_0x4620f5,_0x39987c=_0x2e908f[_0x4f32bd(0x11a)]()[_0x4f32bd(0x156)];_0x25bd2f[_0x4f32bd(0x113)](_0x5e85b8=>Math[_0x4f32bd(0x124)](_0x5e85b8-_0x39987c)<this[_0x4f32bd(0x154)][_0x4f32bd(0xda)])||_0x25bd2f[_0x4f32bd(0xd8)](_0x39987c);}),{'rowCount':_0x25bd2f[_0x4620f5(0xe3)]};}[_0x18d4d3(0x141)](){const _0x30381c=_0x18d4d3,_0x3154f1=document[_0x30381c(0x151)](_0x30381c(0x12d));return _0x3154f1[_0x30381c(0x103)]=this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0x13a)],this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0xd2)]&&_0x3154f1[_0x30381c(0x14a)][_0x30381c(0x126)](this[_0x30381c(0x154)][_0x30381c(0x111)][_0x30381c(0xd2)]),_0x3154f1[_0x30381c(0x11c)]=_0x30381c(0x116),_0x3154f1;}[_0x18d4d3(0xdf)](_0x14d513,_0x5529ec,_0xa85ea){const _0x234df7=_0x18d4d3;this[_0x234df7(0x112)](_0x5529ec,_0xa85ea);const _0x5de48e=this[_0x234df7(0x141)]();_0x14d513[_0x234df7(0x11f)](_0x5de48e),_0x14d513[_0x234df7(0xe5)];const _0x1ca824=[..._0x5529ec[_0x234df7(0xd6)],_0x5de48e],_0x2cf134=[];_0x1ca824[_0x234df7(0xf9)](_0xb8d4af=>{const _0x218c68=_0x234df7,_0x6333bd=_0xb8d4af[_0x218c68(0x11a)]()[_0x218c68(0x156)];_0x2cf134[_0x218c68(0x113)](_0x44c925=>Math[_0x218c68(0x124)](_0x44c925-_0x6333bd)<this[_0x218c68(0x154)][_0x218c68(0xda)])||_0x2cf134[_0x218c68(0xd8)](_0x6333bd);});const _0x2e620e=_0x2cf134[_0x234df7(0xe3)];return _0x5de48e[_0x234df7(0xd4)](),_0x2e620e<=this[_0x234df7(0x154)][_0x234df7(0xfe)];}[_0x18d4d3(0xcf)](_0x1dc469,_0x42e501){const _0x4716f2=_0x18d4d3;this[_0x4716f2(0xfd)][_0x4716f2(0x136)](),this[_0x4716f2(0x125)][_0x4716f2(0x136)](),_0x1dc469[_0x4716f2(0xf9)](_0x1133f5=>{const _0x14c861=_0x4716f2;_0x42e501[_0x14c861(0x12a)](_0x1133f5)?this[_0x14c861(0x125)][_0x14c861(0x126)](_0x1133f5):this[_0x14c861(0xfd)][_0x14c861(0x126)](_0x1133f5);});}[_0x18d4d3(0x134)](_0x1d2d45){const _0x1fa218=_0x18d4d3;if(_0x1d2d45>0x0&&!this[_0x1fa218(0xf5)]&&this[_0x1fa218(0x107)](),_0x1d2d45>0x0&&this[_0x1fa218(0xf5)]){const _0x265157=''+this[_0x1fa218(0x154)][_0x1fa218(0x155)]+(_0x1d2d45<0x63?_0x1d2d45:'99');this[_0x1fa218(0xf5)][_0x1fa218(0x146)]=_0x265157;}this[_0x1fa218(0x105)](),this[_0x1fa218(0x121)](),this[_0x1fa218(0xd3)]();}[_0x18d4d3(0x14d)](_0x20f6d5,_0x42b7c4){const _0x479186=_0x18d4d3;this[_0x479186(0xcf)](_0x20f6d5,_0x42b7c4),this[_0x479186(0x134)](_0x42b7c4[_0x479186(0xe3)]);}[_0x18d4d3(0x115)](){const _0x2336fe=_0x18d4d3;this[_0x2336fe(0x129)]&&_0x2336fe(0x117)!=typeof IntersectionObserver&&(this[_0x2336fe(0x118)]=new IntersectionObserver(_0x32c222=>{const _0x33f960=_0x2336fe;_0x32c222[0x0][_0x33f960(0x110)]&&this[_0x33f960(0xe0)]&&requestAnimationFrame(()=>{const _0x29d744=_0x33f960;this[_0x29d744(0xcb)]();});},{'threshold':0.01,'rootMargin':_0x2336fe(0xfc)}),this[_0x2336fe(0x118)][_0x2336fe(0x135)](this[_0x2336fe(0x129)]));}[_0x18d4d3(0x119)](){const _0x3a47c0=_0x18d4d3;if(!this[_0x3a47c0(0x129)])return!0x1;if(!this[_0x3a47c0(0x129)][_0x3a47c0(0x152)])return!0x1;const _0x938e4=this[_0x3a47c0(0x129)][_0x3a47c0(0x11a)]();if(0x0===_0x938e4[_0x3a47c0(0xe6)]||0x0===_0x938e4[_0x3a47c0(0x12b)])return!0x1;const _0x2ae012=window[_0x3a47c0(0x127)]||document[_0x3a47c0(0x13e)][_0x3a47c0(0x130)],_0x1be7a1=window[_0x3a47c0(0xca)]||document[_0x3a47c0(0x13e)][_0x3a47c0(0x140)],_0x833768=0xc8;return _0x938e4[_0x3a47c0(0xdb)]>=-0xc8&&_0x938e4[_0x3a47c0(0x156)]<=_0x2ae012+_0x833768&&_0x938e4[_0x3a47c0(0x145)]>=-0xc8&&_0x938e4[_0x3a47c0(0xe4)]<=_0x1be7a1+_0x833768;}}function _0x268a(){const _0x4220d3=['_targetContainer','textContent','pointerEvents','style','appendChild','destroy','_updateShowMoreButtonVisibility','hide','show','abs','_overflowChips','add','innerHeight','from','_containerElement','includes','height','block','button','_restoreAncestorVisibility','397614TPluBw','clientHeight','toLowerCase','position','300px','_updateOverflowUI','observe','clear','showBalloonPanel','parentElement','_calculateOverflowInContainer','showMoreButton','_ancestorsToRestore','ck-calculation-container','tagName','documentElement','render','clientWidth','_createMockButton','disconnect','isVisible','_parentView','right','label','boxSizing','opacity','setTemplate','classList','_createCalculationContainer','_createShowMoreButtonView','_applyOverflowResults','1762840LkeMIG','1316982XHLFSy','showMoreBalloon','createElement','isConnected','absolute','_config','showMoreLabelPrefix','top','display','pin','innerHTML','extendTemplate','element','innerWidth','_checkAndHandleOverflow','showMoreButtonView','reorganizeChips','isOn','_distributeChips','body','execute','controlsButton','_repinBalloonPanel','remove','_applyCalculationStyles','children','zIndex','push','_makeAncestorsVisible','rowDetectionTolerance','bottom','div','54453oRGljz','visibility','_testButtonFit','_pendingCalculation','disableAnimationOnEnter','hidden','length','left','offsetWidth','width','set','cloneNode','calculationContainer','block\x20!important','filter','border-box','content','_calculateContainerWidth','-9999px','6631884xubhJc','_bodyCollection','setContainerElement','.ck-ai-chat','none','_showMoreButtonView','_createShowMoreBalloonPanelView','_locale','1864mwIjDO','forEach','_showMoreBalloonPanelView','5603710HoUbrJ','50px','_visibleChips','maxVisibleRows','overflowContainer','visible','0px','querySelector','className','pop','_updateBalloonContent','getComputedStyle','_createShowMoreButton','_createContainerElements','_handleShowMoreButtonClick','slice','_findTargetContainer','hideBalloonPanel','auto','2653562AtUzgO','visible\x20!important','isIntersecting','cssClasses','_renderChipsAndCountRows','some','overflowChips','_setupVisibilityObserver','+\x201','undefined','_intersectionObserver','_isContainerVisible','getBoundingClientRect'];_0x268a=function(){return _0x4220d3;};return _0x268a();}
23
+ function _0x6a7c(){const _0x46fe2a=['isIntersecting','textContent','cloneNode','651626ftOSgG','top','1730456IDZnGe','.ck-ai-chat','className','_showMoreButtonView','offsetWidth','undefined','show','hideBalloonPanel','showMoreButton','height','right','_ancestorsToRestore','children','_visibleChips','_locale','remove','from','createElement','_createShowMoreButton','50px','7074473nYkNXm','rowDetectionTolerance','button','+\x201','opacity','_restoreAncestorVisibility','disableAnimationOnEnter','querySelector','_config','innerWidth','_overflowChips','isConnected','element','none','showBalloonPanel','setContainerElement','appendChild','position','set','some','abs','_createCalculationContainer','boxSizing','hidden','getBoundingClientRect','left','overflowContainer','display','2LWLUJG','_showMoreBalloonPanelView','_repinBalloonPanel','calculationContainer','_createShowMoreButtonView','_isContainerVisible','visible\x20!important','label','-9999px','slice','forEach','overflowChips','tagName','style','auto','_createMockButton','innerHeight','div','isOn','_containerElement','_updateOverflowUI','border-box','_calculateOverflowInContainer','bottom','_makeAncestorsVisible','documentElement','absolute','innerHTML','visibility','8572304CUYNJo','_findTargetContainer','ck-calculation-container','6GuWnDv','execute','showMoreButtonView','body','_createShowMoreBalloonPanelView','block\x20!important','maxVisibleRows','visible','observe','4494685QQvQEj','destroy','_pendingCalculation','filter','controlsButton','_setupVisibilityObserver','isVisible','_bodyCollection','_applyOverflowResults','content','width','pin','clientWidth','showMoreBalloon','_testButtonFit','pointerEvents','cssClasses','zIndex','clientHeight','10438776UbWbRT','classList','includes','pop','300px','clear','_parentView','add','0px','_checkAndHandleOverflow','_distributeChips','disconnect','extendTemplate','_targetContainer','push','_renderChipsAndCountRows','reorganizeChips','length','_updateShowMoreButtonVisibility','parentElement','_calculateContainerWidth','_handleShowMoreButtonClick','block','_applyCalculationStyles','1005219QZxDKV','_updateBalloonContent','setTemplate','toLowerCase','getComputedStyle','showMoreLabelPrefix','hide','render','_intersectionObserver','_createContainerElements'];_0x6a7c=function(){return _0x46fe2a;};return _0x6a7c();}const _0x38503=_0x592c;function _0x592c(_0x19b6ce,_0x3b87c4){const _0x6a7ccd=_0x6a7c();return _0x592c=function(_0x592ce7,_0x323ef7){_0x592ce7=_0x592ce7-0x8a;let _0x2e98ee=_0x6a7ccd[_0x592ce7];return _0x2e98ee;},_0x592c(_0x19b6ce,_0x3b87c4);}(function(_0xd72239,_0x504d44){const _0x447b85=_0x592c,_0x2eab9e=_0xd72239();while(!![]){try{const _0x45d804=parseInt(_0x447b85(0xb8))/0x1*(parseInt(_0x447b85(0xea))/0x2)+parseInt(_0x447b85(0xab))/0x3+-parseInt(_0x447b85(0xba))/0x4+-parseInt(_0x447b85(0x113))/0x5*(parseInt(_0x447b85(0x10a))/0x6)+parseInt(_0x447b85(0xce))/0x7+parseInt(_0x447b85(0x107))/0x8+-parseInt(_0x447b85(0x93))/0x9;if(_0x45d804===_0x504d44)break;else _0x2eab9e['push'](_0x2eab9e['shift']());}catch(_0x11ec51){_0x2eab9e['push'](_0x2eab9e['shift']());}}}(_0x6a7c,0x8cfb5));import{View as _0x5377ab,BalloonPanelView as _0x59f8e9,ButtonView as _0x156a6f,clickOutsideHandler as _0x926c49}from'ckeditor5/src/ui.js';import{Collection as _0x5806e6}from'ckeditor5/src/utils.js';const hn={'maxVisibleRows':0x2,'rowDetectionTolerance':0x5,'showMoreLabelPrefix':'+\x20','viewportOffset':{'top':0x64,'bottom':0xa}},an=_0x38503(0x97);export class AIChatChipsOverflowManager{[_0x38503(0xc8)];[_0x38503(0xd6)];[_0x38503(0xc7)];[_0x38503(0xd8)];[_0x38503(0xbd)]=null;[_0x38503(0xeb)]=null;[_0x38503(0xfd)]=null;[_0x38503(0x11a)];[_0x38503(0x99)]=null;[_0x38503(0xb3)]=null;[_0x38503(0x115)]=!0x1;constructor(_0x5dfd99,_0x5738d9,_0x2c09df,_0x58106b,_0x4a3e24){const _0x368122=_0x38503;this[_0x368122(0xc8)]=_0x5dfd99,this[_0x368122(0xc7)]=_0x5738d9,this[_0x368122(0xd6)]={...hn,..._0x2c09df,'cssClasses':{'controlsButton':'','calculationContainer':_0x368122(0x109),..._0x2c09df[_0x368122(0x90)]}},this[_0x368122(0xd8)]=new _0x5806e6(),this[_0x368122(0x11a)]=_0x58106b,this[_0x368122(0x99)]=_0x4a3e24||null;}[_0x38503(0xdd)](_0x28e1b9){const _0x482f83=_0x38503;this[_0x482f83(0xb3)]&&(this[_0x482f83(0xb3)][_0x482f83(0x9e)](),this[_0x482f83(0xb3)]=null),this[_0x482f83(0xfd)]=_0x28e1b9,this[_0x482f83(0x118)]();}get[_0x38503(0x10c)](){const _0x10b904=_0x38503;return this[_0x10b904(0xbd)];}get[_0x38503(0xf5)](){const _0x7049c6=_0x38503;return this[_0x7049c6(0xd8)];}[_0x38503(0xa3)](){requestAnimationFrame(()=>{const _0x337bff=_0x592c;this[_0x337bff(0x9c)]();});}[_0x38503(0xdc)](){const _0x80b734=_0x38503;this[_0x80b734(0xbd)]&&this[_0x80b734(0xeb)]&&(this[_0x80b734(0xac)](),this[_0x80b734(0xbd)][_0x80b734(0xfc)]=!0x0,this[_0x80b734(0xeb)][_0x80b734(0xc0)](),this[_0x80b734(0xeb)][_0x80b734(0x8b)]({'target':this[_0x80b734(0xbd)][_0x80b734(0xda)],'limiter':document[_0x80b734(0xd5)](_0x80b734(0xbb))}));}[_0x38503(0xc1)](){const _0xaf2e5b=_0x38503;this[_0xaf2e5b(0xbd)]&&this[_0xaf2e5b(0xeb)]&&(this[_0xaf2e5b(0xbd)][_0xaf2e5b(0xfc)]=!0x1,this[_0xaf2e5b(0xeb)][_0xaf2e5b(0xb1)]());}[_0x38503(0x98)](){const _0x23c54e=_0x38503;this[_0x23c54e(0xd8)][_0x23c54e(0x98)](),this[_0x23c54e(0xc1)](),this[_0x23c54e(0xa5)](),this[_0x23c54e(0xbd)]&&(this[_0x23c54e(0xbd)][_0x23c54e(0xf1)]=''),this[_0x23c54e(0xeb)]&&this[_0x23c54e(0xeb)][_0x23c54e(0x11c)][_0x23c54e(0x98)]();}[_0x38503(0x114)](){const _0x4d7f9b=_0x38503;this[_0x4d7f9b(0xb3)]&&(this[_0x4d7f9b(0xb3)][_0x4d7f9b(0x9e)](),this[_0x4d7f9b(0xb3)]=null),this[_0x4d7f9b(0xbd)]&&(this[_0x4d7f9b(0xbd)][_0x4d7f9b(0x114)](),this[_0x4d7f9b(0xbd)]=null),this[_0x4d7f9b(0xeb)]&&(this[_0x4d7f9b(0xeb)][_0x4d7f9b(0x114)](),this[_0x4d7f9b(0xeb)]=null);}[_0x38503(0x9c)](){const _0x22a4e9=_0x38503;if(!this[_0x22a4e9(0xfd)])return;if(!this[_0x22a4e9(0xef)]())return void(this[_0x22a4e9(0x115)]=!0x0);this[_0x22a4e9(0x115)]=!0x1;const _0x27c638=[...this[_0x22a4e9(0xc7)],...this[_0x22a4e9(0xd8)]],_0x290542=this[_0x22a4e9(0xe3)](),_0xbda151=this[_0x22a4e9(0x100)](_0x290542,_0x27c638),_0x144a97=_0x290542[_0x22a4e9(0xc5)];_0x144a97&&this[_0x22a4e9(0xd3)](_0x144a97),_0x290542[_0x22a4e9(0xc9)](),this[_0x22a4e9(0x11b)](_0x27c638,_0xbda151);}[_0x38503(0xcc)](){const _0x1b8641=_0x38503;this[_0x1b8641(0xbd)]=this[_0x1b8641(0xee)](),this[_0x1b8641(0xeb)]=this[_0x1b8641(0x10e)](),this[_0x1b8641(0xbd)][_0x1b8641(0xb2)](),this[_0x1b8641(0xfd)][_0x1b8641(0xde)](this[_0x1b8641(0xbd)][_0x1b8641(0xda)]),this[_0x1b8641(0xbd)]['on'](_0x1b8641(0x10b),()=>{const _0x5a2955=_0x1b8641;this[_0x5a2955(0xa8)]();}),_0x926c49({'emitter':this[_0x1b8641(0xeb)],'contextElements':[this[_0x1b8641(0xeb)][_0x1b8641(0xda)],this[_0x1b8641(0xbd)][_0x1b8641(0xda)]],'callback':()=>this[_0x1b8641(0xc1)](),'activator':()=>this[_0x1b8641(0xbd)][_0x1b8641(0xfc)]});}[_0x38503(0xee)](){const _0x12ee40=_0x38503,_0x4c4897=new _0x156a6f(this[_0x12ee40(0xc8)]);_0x4c4897[_0x12ee40(0xe0)]({'label':'','withText':!0x0,'isToggleable':!0x0});const _0x1b1d67=[this[_0x12ee40(0xd6)][_0x12ee40(0x90)][_0x12ee40(0xc2)]];return this[_0x12ee40(0xd6)][_0x12ee40(0x90)][_0x12ee40(0x117)]&&_0x1b1d67[_0x12ee40(0xa1)](this[_0x12ee40(0xd6)][_0x12ee40(0x90)][_0x12ee40(0x117)]),_0x4c4897[_0x12ee40(0x9f)]({'attributes':{'class':_0x1b1d67}}),_0x4c4897;}[_0x38503(0x10e)](){const _0x13d059=_0x38503,_0x1653e9=new _0x59f8e9(this[_0x13d059(0xc8)]);return _0x1653e9[_0x13d059(0x9f)]({'attributes':{'class':this[_0x13d059(0xd6)][_0x13d059(0x90)][_0x13d059(0x8d)]}}),this[_0x13d059(0x11a)][_0x13d059(0x9a)](_0x1653e9),_0x1653e9;}[_0x38503(0xac)](){const _0x51bda4=_0x38503;if(this[_0x51bda4(0xeb)]&&(this[_0x51bda4(0xeb)][_0x51bda4(0x11c)][_0x51bda4(0x98)](),this[_0x51bda4(0xd8)][_0x51bda4(0xa4)]>0x0)){this[_0x51bda4(0xd8)][_0x51bda4(0xf4)](_0x4abc89=>{const _0x1b6855=_0x51bda4;_0x4abc89[_0x1b6855(0xd4)]();});const _0x2af5b4=new _0x5377ab(this[_0x51bda4(0xc8)]);_0x2af5b4[_0x51bda4(0xad)]({'tag':_0x51bda4(0xfb),'attributes':{'class':this[_0x51bda4(0xd6)][_0x51bda4(0x90)][_0x51bda4(0xe8)]},'children':this[_0x51bda4(0xd8)]}),this[_0x51bda4(0xeb)][_0x51bda4(0x11c)][_0x51bda4(0x9a)](_0x2af5b4);}}[_0x38503(0xa8)](){const _0x2c1eaa=_0x38503;this[_0x2c1eaa(0xbd)][_0x2c1eaa(0xfc)]?this[_0x2c1eaa(0xc1)]():this[_0x2c1eaa(0xdc)]();}[_0x38503(0xa5)](){const _0x9a5055=_0x38503,_0x49a26e=this[_0x9a5055(0xd8)][_0x9a5055(0xa4)]>0x0;this[_0x9a5055(0xbd)]?.[_0x9a5055(0xda)]&&(this[_0x9a5055(0xbd)][_0x9a5055(0xda)][_0x9a5055(0xf7)][_0x9a5055(0xe9)]=_0x49a26e?'':_0x9a5055(0xdb));}[_0x38503(0xec)](){const _0x57299b=_0x38503;this[_0x57299b(0xbd)]?.[_0x57299b(0xfc)]&&this[_0x57299b(0xeb)]?.[_0x57299b(0x119)]&&this[_0x57299b(0xbd)][_0x57299b(0xda)]&&this[_0x57299b(0xeb)][_0x57299b(0x8b)]({'target':this[_0x57299b(0xbd)][_0x57299b(0xda)],'limiter':document[_0x57299b(0xd5)](_0x57299b(0xbb))});}[_0x38503(0x108)](_0x4a6789){const _0x4073bb=_0x38503,_0x27cfb0=this[_0x4073bb(0xfd)]?.[_0x4073bb(0xf6)][_0x4073bb(0xae)]()||_0x4073bb(0xfb),_0x4ae70e=this[_0x4073bb(0xfd)]?.[_0x4073bb(0x94)];if(_0x4ae70e){const _0x15c5b6=_0x4ae70e[0x0]||'',_0x137039=_0x4a6789[_0x4073bb(0xd5)]('.'+_0x15c5b6),_0xa1c2d0=_0x4a6789[_0x4073bb(0xd5)](_0x27cfb0);return _0x137039||_0xa1c2d0||_0x4a6789;}return _0x4a6789[_0x4073bb(0xd5)](_0x27cfb0)||_0x4a6789;}[_0x38503(0xa7)](){const _0x224982=_0x38503,_0x52ca1d=this[_0x224982(0x99)]?.[_0x224982(0xda)]||this[_0x224982(0xfd)];if(!_0x52ca1d)return an;const _0x2c67eb=window[_0x224982(0xaf)](_0x52ca1d)[_0x224982(0x8a)];if(_0x224982(0xf8)===_0x2c67eb||_0x224982(0x9b)===_0x2c67eb||!_0x2c67eb){const _0x59868a=_0x52ca1d[_0x224982(0xa6)];if(_0x59868a){const _0x148aa3=window[_0x224982(0xaf)](_0x59868a);return _0x224982(0xf8)!==_0x148aa3[_0x224982(0x8a)]?_0x148aa3[_0x224982(0x8a)]:an;}return an;}return _0x2c67eb;}[_0x38503(0xaa)](_0x2e4ded,_0x1d75ba){const _0x2102e8=_0x38503;this[_0x2102e8(0xd6)][_0x2102e8(0x90)][_0x2102e8(0xed)]&&_0x2e4ded[_0x2102e8(0x94)][_0x2102e8(0x9a)](this[_0x2102e8(0xd6)][_0x2102e8(0x90)][_0x2102e8(0xed)]),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0x8a)]=_0x1d75ba,_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xdf)]=_0x2102e8(0x104),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xb9)]=_0x2102e8(0xf2),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xe7)]=_0x2102e8(0xf2),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xd2)]='0',_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0x8f)]=_0x2102e8(0xdb),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0x91)]='-1',_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0x106)]=_0x2102e8(0xf0),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xe9)]=_0x2102e8(0x10f),_0x2e4ded[_0x2102e8(0xf7)][_0x2102e8(0xe4)]=_0x2102e8(0xff);}[_0x38503(0xd3)](_0x47b32d){const _0x15d41c=_0x38503;_0x47b32d[_0x15d41c(0xf4)](({element:_0x29224f,originalDisplay:_0x39d422,originalVisibility:_0x29e9df})=>{const _0x17f5bb=_0x15d41c;_0x29224f[_0x17f5bb(0xf7)][_0x17f5bb(0xe9)]=_0x39d422,_0x29224f[_0x17f5bb(0xf7)][_0x17f5bb(0x106)]=_0x29e9df;});}[_0x38503(0x102)](_0x49cd7e){const _0x6b5255=_0x38503,_0x58e672=[];let _0x769c97=_0x49cd7e;for(;_0x769c97&&_0x769c97!==document[_0x6b5255(0x10d)];){const _0x280902=window[_0x6b5255(0xaf)](_0x769c97);_0x6b5255(0xdb)!==_0x280902[_0x6b5255(0xe9)]&&_0x6b5255(0xe5)!==_0x280902[_0x6b5255(0x106)]||(_0x58e672[_0x6b5255(0xa1)]({'element':_0x769c97,'originalDisplay':_0x769c97[_0x6b5255(0xf7)][_0x6b5255(0xe9)],'originalVisibility':_0x769c97[_0x6b5255(0xf7)][_0x6b5255(0x106)]}),_0x769c97[_0x6b5255(0xf7)][_0x6b5255(0xe9)]=_0x6b5255(0xa9),_0x769c97[_0x6b5255(0xf7)][_0x6b5255(0x106)]=_0x6b5255(0x111)),_0x769c97=_0x769c97[_0x6b5255(0xa6)];}return _0x58e672;}[_0x38503(0xb4)](){const _0x3c908a=_0x38503;let _0x107073,_0x13af11;return this[_0x3c908a(0x99)]?.[_0x3c908a(0xda)]?(_0x107073=this[_0x3c908a(0x99)][_0x3c908a(0xda)][_0x3c908a(0xb7)](!0x0),_0x13af11=this[_0x3c908a(0x108)](_0x107073)):(_0x107073=document[_0x3c908a(0xcb)](_0x3c908a(0xfb)),_0x13af11=_0x107073),{'calculationContainer':_0x107073,'targetContainer':_0x13af11};}[_0x38503(0xe3)](){const _0x488171=_0x38503,{calculationContainer:_0x34936f,targetContainer:_0x36969d}=this[_0x488171(0xb4)](),_0x4486a5=this[_0x488171(0xa7)]();this[_0x488171(0xaa)](_0x34936f,_0x4486a5);const _0x283f7f=this[_0x488171(0x99)]?.[_0x488171(0xda)]||this[_0x488171(0xfd)],_0x37bba8=_0x283f7f?.[_0x488171(0xa6)];_0x37bba8?_0x37bba8[_0x488171(0xde)](_0x34936f):document[_0x488171(0x10d)][_0x488171(0xde)](_0x34936f),_0x34936f[_0x488171(0xa0)]=_0x36969d;const _0xf95928=this[_0x488171(0x102)](_0x37bba8||null);return _0x34936f[_0x488171(0xbe)],_0x34936f[_0x488171(0xc5)]=_0xf95928,_0x34936f;}[_0x38503(0x100)](_0x28b33c,_0x2b061e){const _0x1bd27a=_0x38503,_0x1de97f=_0x28b33c[_0x1bd27a(0xa0)]||_0x28b33c,_0x100547=[],{rowCount:_0x46aac2}=this[_0x1bd27a(0xa2)](_0x1de97f,_0x2b061e);if(_0x46aac2<=this[_0x1bd27a(0xd6)][_0x1bd27a(0x110)])return _0x100547;const _0x31b999=_0x2b061e[_0x1bd27a(0xf3)]();for(;_0x31b999[_0x1bd27a(0xa4)]>0x0;){if(this[_0x1bd27a(0x8e)](_0x28b33c,_0x1de97f,_0x31b999)){const _0xe51370=_0x2b061e[_0x1bd27a(0x116)](_0x4cd1a5=>!_0x31b999[_0x1bd27a(0x95)](_0x4cd1a5));_0x100547[_0x1bd27a(0xa1)](..._0xe51370);break;}if(!_0x31b999[_0x1bd27a(0x96)]())break;}return _0x100547;}[_0x38503(0xa2)](_0x584b61,_0x5e2cbc){const _0x2d686a=_0x38503;_0x584b61[_0x2d686a(0x105)]='',_0x5e2cbc[_0x2d686a(0xf4)](_0x1ae15b=>{const _0x250593=_0x2d686a;if(_0x1ae15b[_0x250593(0xda)]){const _0x481275=_0x1ae15b[_0x250593(0xda)][_0x250593(0xb7)](!0x0);_0x584b61[_0x250593(0xde)](_0x481275);}}),_0x584b61[_0x2d686a(0xbe)];const _0xe5e956=_0x584b61[_0x2d686a(0xc6)],_0x339c10=[];return Array[_0x2d686a(0xca)](_0xe5e956)[_0x2d686a(0xf4)](_0x1e02ab=>{const _0x431e80=_0x2d686a,_0x53e372=_0x1e02ab[_0x431e80(0xe6)]()[_0x431e80(0xb9)];_0x339c10[_0x431e80(0xe1)](_0x5d4240=>Math[_0x431e80(0xe2)](_0x5d4240-_0x53e372)<this[_0x431e80(0xd6)][_0x431e80(0xcf)])||_0x339c10[_0x431e80(0xa1)](_0x53e372);}),{'rowCount':_0x339c10[_0x2d686a(0xa4)]};}[_0x38503(0xf9)](){const _0x325abc=_0x38503,_0x2e84d2=document[_0x325abc(0xcb)](_0x325abc(0xd0));return _0x2e84d2[_0x325abc(0xbc)]=this[_0x325abc(0xd6)][_0x325abc(0x90)][_0x325abc(0xc2)],this[_0x325abc(0xd6)][_0x325abc(0x90)][_0x325abc(0x117)]&&_0x2e84d2[_0x325abc(0x94)][_0x325abc(0x9a)](this[_0x325abc(0xd6)][_0x325abc(0x90)][_0x325abc(0x117)]),_0x2e84d2[_0x325abc(0xb6)]=_0x325abc(0xd1),_0x2e84d2;}[_0x38503(0x8e)](_0x29cae3,_0x403a2c,_0x2251f6){const _0x1ee8cc=_0x38503;this[_0x1ee8cc(0xa2)](_0x403a2c,_0x2251f6);const _0x368873=this[_0x1ee8cc(0xf9)]();_0x29cae3[_0x1ee8cc(0xde)](_0x368873),_0x29cae3[_0x1ee8cc(0xbe)];const _0x1e0271=[..._0x403a2c[_0x1ee8cc(0xc6)],_0x368873],_0x30d2d0=[];_0x1e0271[_0x1ee8cc(0xf4)](_0x106fb8=>{const _0x3430ee=_0x1ee8cc,_0x2e8312=_0x106fb8[_0x3430ee(0xe6)]()[_0x3430ee(0xb9)];_0x30d2d0[_0x3430ee(0xe1)](_0x5934b8=>Math[_0x3430ee(0xe2)](_0x5934b8-_0x2e8312)<this[_0x3430ee(0xd6)][_0x3430ee(0xcf)])||_0x30d2d0[_0x3430ee(0xa1)](_0x2e8312);});const _0x11c614=_0x30d2d0[_0x1ee8cc(0xa4)];return _0x368873[_0x1ee8cc(0xc9)](),_0x11c614<=this[_0x1ee8cc(0xd6)][_0x1ee8cc(0x110)];}[_0x38503(0x9d)](_0x1e550c,_0x21e522){const _0x4c947b=_0x38503;this[_0x4c947b(0xc7)][_0x4c947b(0x98)](),this[_0x4c947b(0xd8)][_0x4c947b(0x98)](),_0x1e550c[_0x4c947b(0xf4)](_0x361d3a=>{const _0x1b68fa=_0x4c947b;_0x21e522[_0x1b68fa(0x95)](_0x361d3a)?this[_0x1b68fa(0xd8)][_0x1b68fa(0x9a)](_0x361d3a):this[_0x1b68fa(0xc7)][_0x1b68fa(0x9a)](_0x361d3a);});}[_0x38503(0xfe)](_0xb2f2fb){const _0x2b8f2b=_0x38503;if(_0xb2f2fb>0x0&&!this[_0x2b8f2b(0xbd)]&&this[_0x2b8f2b(0xcc)](),_0xb2f2fb>0x0&&this[_0x2b8f2b(0xbd)]){const _0x23b82c=''+this[_0x2b8f2b(0xd6)][_0x2b8f2b(0xb0)]+(_0xb2f2fb<0x63?_0xb2f2fb:'99');this[_0x2b8f2b(0xbd)][_0x2b8f2b(0xf1)]=_0x23b82c;}this[_0x2b8f2b(0xac)](),this[_0x2b8f2b(0xa5)](),this[_0x2b8f2b(0xec)]();}[_0x38503(0x11b)](_0xd70e2b,_0x4b12ba){const _0x40d3da=_0x38503;this[_0x40d3da(0x9d)](_0xd70e2b,_0x4b12ba),this[_0x40d3da(0xfe)](_0x4b12ba[_0x40d3da(0xa4)]);}[_0x38503(0x118)](){const _0x45d8d1=_0x38503;this[_0x45d8d1(0xfd)]&&_0x45d8d1(0xbf)!=typeof IntersectionObserver&&(this[_0x45d8d1(0xb3)]=new IntersectionObserver(_0x78553f=>{const _0x181ea9=_0x45d8d1;_0x78553f[0x0][_0x181ea9(0xb5)]&&this[_0x181ea9(0x115)]&&requestAnimationFrame(()=>{const _0x3aab5a=_0x181ea9;this[_0x3aab5a(0x9c)]();});},{'threshold':0.01,'rootMargin':_0x45d8d1(0xcd)}),this[_0x45d8d1(0xb3)][_0x45d8d1(0x112)](this[_0x45d8d1(0xfd)]));}[_0x38503(0xef)](){const _0x4968a3=_0x38503;if(!this[_0x4968a3(0xfd)])return!0x1;if(!this[_0x4968a3(0xfd)][_0x4968a3(0xd9)])return!0x1;const _0x9f7a72=this[_0x4968a3(0xfd)][_0x4968a3(0xe6)]();if(0x0===_0x9f7a72[_0x4968a3(0x8a)]||0x0===_0x9f7a72[_0x4968a3(0xc3)])return!0x1;const _0x292ea5=window[_0x4968a3(0xfa)]||document[_0x4968a3(0x103)][_0x4968a3(0x92)],_0x3fbe0c=window[_0x4968a3(0xd7)]||document[_0x4968a3(0x103)][_0x4968a3(0x8c)],_0x2072ff=0xc8;return _0x9f7a72[_0x4968a3(0x101)]>=-0xc8&&_0x9f7a72[_0x4968a3(0xb9)]<=_0x292ea5+_0x2072ff&&_0x9f7a72[_0x4968a3(0xc4)]>=-0xc8&&_0x9f7a72[_0x4968a3(0xe7)]<=_0x3fbe0c+_0x2072ff;}}