@ckeditor/ckeditor5-ai 47.1.0-alpha.1 → 47.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ai.js +1 -1
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/aiactions/aiactions.js +1 -1
- package/src/aiactions/model/aiactionsinteraction.js +1 -1
- package/src/aiactions/model/aiactionsreply.js +1 -1
- package/src/aiassistant/adapters/aiadapter.js +1 -1
- package/src/aiassistant/adapters/aitextadapter.js +1 -1
- package/src/aiassistant/adapters/awstextadapter.js +1 -1
- package/src/aiassistant/adapters/openaitextadapter.js +1 -1
- package/src/aiassistant/aiassistant.js +1 -1
- package/src/aiassistant/aiassistantediting.js +1 -1
- package/src/aiassistant/aiassistantui.js +1 -1
- package/src/aiassistant/legacyerrors.js +1 -1
- package/src/aiassistant/ui/aiassistantcontroller.js +2 -2
- package/src/aiassistant/ui/form/aiformcontentarea.js +1 -1
- package/src/aiassistant/ui/form/aiformerrorview.js +1 -1
- package/src/aiassistant/ui/form/aiformpromptview.js +1 -1
- package/src/aiassistant/ui/form/aiformtoolbarview.js +1 -1
- package/src/aiassistant/ui/form/aiformview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistitemview.js +1 -1
- package/src/aiassistant/ui/form/aihistorylistview.js +1 -1
- package/src/aiassistant/ui/form/prompthistory.js +1 -1
- package/src/aiassistant/ui/showaiassistantcommand.js +1 -1
- package/src/aiassistant/utils/common-translations.js +1 -1
- package/src/aiassistant/utils/normalizecommandsconfig.js +1 -1
- package/src/aiballoon/aiballoon.js +1 -1
- package/src/aiballoon/ui/aiballoondisclaimerview.js +1 -1
- package/src/aiballoon/ui/aiballoontoolbarview.js +1 -1
- package/src/aiballoon/ui/aiballoonview.js +1 -1
- package/src/aichat/aichat.js +1 -1
- package/src/aichat/aichatcontroller.js +1 -1
- package/src/aichat/aichatui.js +1 -1
- package/src/aichat/model/aichatcontext.js +1 -1
- package/src/aichat/model/aichatconversation.js +1 -1
- package/src/aichat/model/aichatinteraction.js +1 -1
- package/src/aichat/model/aichatmodels.js +1 -1
- package/src/aichat/ui/aichatcontrolsview.js +1 -1
- package/src/aichat/ui/aichatfeedview.js +1 -1
- package/src/aichat/ui/aichatheaderview.js +1 -1
- package/src/aichat/ui/aichatview.js +1 -1
- package/src/aichat/ui/controls/aichatchipsoverflowmanager.js +1 -1
- package/src/aichat/ui/controls/aichatcontextitembuttonview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelurlinputview.js +1 -1
- package/src/aichat/ui/controls/aichatcontextpanelview.js +1 -1
- package/src/aichat/ui/controls/aichatcontrolsloaderview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptcapabilitiesview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptinputview.js +1 -1
- package/src/aichat/ui/controls/aichatpromptsuggestionslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcelistitemview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesballoonview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourceslistview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcessearchinputview.js +1 -1
- package/src/aichat/ui/controls/resources/aichatresourcesview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedcontextchipsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeederroritemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedinteractionheaderview.js +1 -1
- package/src/aichat/ui/feed/aichatfeeditemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedreplyitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemactionsview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedsuggestionitemview.js +1 -1
- package/src/aichat/ui/feed/aichatfeedusermessageitem.js +1 -1
- package/src/aichat/utils/eventnames.js +1 -1
- package/src/aichat/utils/promisequeue.js +1 -1
- package/src/aichat/utils/scrollmanager.js +1 -1
- package/src/aichathistory/aichathistory.js +1 -1
- package/src/aichathistory/aichathistorycontroller.js +1 -1
- package/src/aichathistory/aichathistoryui.js +1 -1
- package/src/aichathistory/model/aichathistoryconversations.js +1 -1
- package/src/aichathistory/model/aichathistoryitem.js +1 -1
- package/src/aichathistory/ui/aichathistorylistitemview.js +1 -1
- package/src/aichathistory/ui/aichathistorylistview.js +1 -1
- package/src/aichathistory/ui/aichathistorysectionlistview.js +1 -1
- package/src/aichathistory/ui/aichathistoryview.js +1 -1
- package/src/aicore/aiconnector.js +1 -1
- package/src/aicore/aiediting.js +1 -1
- package/src/aicore/model/aicapabilities.js +1 -1
- package/src/aicore/model/aicontext.js +1 -1
- package/src/aicore/model/aiinteraction.js +1 -1
- package/src/aicore/model/aireply.js +1 -1
- package/src/aicore/pipeline/airesponseapplier.js +2 -2
- package/src/aicore/pipeline/airesponseparser.js +2 -2
- package/src/aicore/ui/aidisclaimerview.js +1 -1
- package/src/aicore/ui/aiskeleton.js +1 -1
- package/src/aicore/ui/aispinner.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aiminitoolbarview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionbodyview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontainerview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestioncontentpartview.js +1 -1
- package/src/aicore/ui/suggestioncontainer/aisuggestionheaderview.js +1 -1
- package/src/aicore/utils/common-translations.js +1 -1
- package/src/aicore/utils/createresizebutton.js +1 -1
- package/src/aicore/utils/documentposition.js +1 -1
- package/src/aicore/utils/documentrange.js +1 -1
- package/src/aicore/utils/eventnames.js +1 -1
- package/src/aicore/utils/geteditorfromcontext.js +1 -1
- package/src/aicore/utils/getoperationsfromreply.js +1 -1
- package/src/aicore/utils/getsuggestionpartsfromreply.js +1 -1
- package/src/aicore/utils/htmlparser.js +1 -1
- package/src/aicore/utils/htmlstreamer.js +1 -1
- package/src/aieditorintegration/aieditorintegration.js +1 -1
- package/src/aieditorintegration/aitogglebutton/aitogglebuttonui.js +1 -1
- package/src/aieditorintegration/aitogglebutton/toggleaicommand.js +1 -1
- package/src/aiquickactions/aiquickactions.js +1 -1
- package/src/aiquickactions/aiquickactionscommand.js +1 -1
- package/src/aiquickactions/aiquickactionsediting.js +1 -1
- package/src/aiquickactions/aiquickactionsui.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsbuttoncreator.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncontentview.js +1 -1
- package/src/aiquickactions/ui/aiquickactionsdropdowncreator.js +1 -1
- package/src/aireviewmode/aireviewcheckdefinitions.js +1 -1
- package/src/aireviewmode/aireviewmode.js +1 -1
- package/src/aireviewmode/aireviewmodecontroller.js +1 -1
- package/src/aireviewmode/aireviewmodeediting.js +1 -1
- package/src/aireviewmode/aireviewmodeui.js +1 -1
- package/src/aireviewmode/model/aireviewcheck.js +1 -1
- package/src/aireviewmode/model/aireviewcheckcustom.js +1 -1
- package/src/aireviewmode/model/aireviewchecklist.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresult.js +1 -1
- package/src/aireviewmode/model/aireviewcheckresultchange.js +1 -1
- package/src/aireviewmode/model/aireviewcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewcustomcheckrun.js +1 -1
- package/src/aireviewmode/model/aireviewmodels.js +1 -1
- package/src/aireviewmode/model/aireviewsystemcheckrun.js +1 -1
- package/src/aireviewmode/ui/aireviemodepromptinputview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeballoonsuggestionview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodechecklistitemresultview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodecustomcheckview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewchecklistview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcheckresultsview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcommandlistitemview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodereviewcompletedview.js +1 -1
- package/src/aireviewmode/ui/aireviewmodeview.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformdropdown.js +1 -1
- package/src/aireviewmode/ui/form/aireviewmodeformmanager.js +1 -1
- package/src/aitabs/aitabs.js +1 -1
- package/src/aitabs/aitabsmainview.js +1 -1
- package/src/aitabs/tabs/aitabsview.js +1 -1
- package/src/aitabs/tabs/tabbuttonview.js +1 -1
- package/src/aitabs/tabs/tabpanelview.js +1 -1
- package/src/errors.js +1 -1
- package/src/index.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x9b0b9b=_0x7e98;(function(_0x543868,_0x5c7126){const _0x55ce83=_0x7e98,_0x4672ce=_0x543868();while(!![]){try{const _0x14c7a9=parseInt(_0x55ce83(0x1cd))/0x1+parseInt(_0x55ce83(0x1f1))/0x2+parseInt(_0x55ce83(0xf2))/0x3*(-parseInt(_0x55ce83(0xd6))/0x4)+-parseInt(_0x55ce83(0x1b4))/0x5+parseInt(_0x55ce83(0x1c5))/0x6+-parseInt(_0x55ce83(0x1c1))/0x7*(parseInt(_0x55ce83(0x15b))/0x8)+parseInt(_0x55ce83(0x222))/0x9*(-parseInt(_0x55ce83(0x178))/0xa);if(_0x14c7a9===_0x5c7126)break;else _0x4672ce['push'](_0x4672ce['shift']());}catch(_0x2d7b69){_0x4672ce['push'](_0x4672ce['shift']());}}}(_0x2b6f,0xda0cd));import{ContextPlugin as _0x242be3,Editor as _0x5a1dd2}from'ckeditor5/src/core.js';import{CKEditorError as _0x30fa1e,logError as _0xd99304,scrollViewportToShowTarget as _0x33a9d6,uid as _0x4a61b3}from'ckeditor5/src/utils.js';import{AIConnector as _0xa160f8}from'../aicore/aiconnector.js';import{AITabs as _0x43e068}from'../aitabs/aitabs.js';import{AIChatConversation as _0x1a8029}from'./model/aichatconversation.js';import{getTranslation as _0x19ae4a}from'../aicore/utils/common-translations.js';function _0x7e98(_0x177fc2,_0x485ac4){const _0x2b6f68=_0x2b6f();return _0x7e98=function(_0x7e98a2,_0x10f2ea){_0x7e98a2=_0x7e98a2-0xd1;let _0x77ec09=_0x2b6f68[_0x7e98a2];return _0x77ec09;},_0x7e98(_0x177fc2,_0x485ac4);}import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3f37cf}from'../aicore/aiediting.js';import{AIChatModels as _0x50164e}from'./model/aichatmodels.js';import{getEditorFromContext as _0x652de9}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x581471,DATA_ID_MODEL_ATTRIBUTE as _0x21d2ae}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x1775d9}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0x371dd3,getMinimalSelection as _0x171b69,getSuggestionPartsFromReply as _0x5d6e00}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x2d44c0,_DetachOperation as _0x4b1e68}from'ckeditor5/src/engine.js';import{findOne as _0x4c173d,getAttribute as _0x57bbe4,serialize as _0x3e5089,Document as _0x2a273e,findByAttribute as _0x41407c}from'../aicore/utils/htmlparser.js';import{IconAI as _0xe41b23}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x4b29c4}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';import{AIBalloon as _0x82d960}from'../aiballoon/aiballoon.js';function _0x2b6f(){const _0xe037a3=['error','document','Disliked\x20response','AI_CHAT_UNTITLED_CONVERSATION','createConversation','ai-chat-controller-no-active-conversation','_updateReplyContent','updateFeedItemAIReplySources','setAddContextOptions','indexes','range','webSearchFinished','locale','contextItemAdded','isCurrentDocumentInContext','node','removeFeedInteraction','push','close','addDocumentToContext','getGroupId','isModelAvailable','options','Undo','reasoningFinished','source','getChild','text-delta','_aiChatUi','editing','init','isDisabled','getRoot','updateContent','setIsUploadInProgress','resources','current-document','ai-chat-source-resources-load-failed','message','updateConversationTitle','children','addContextItem','ai-chat-resource-load-failed','_getDocumentRangeForReplyChanges','replyContentUpdated','data-id','toggleLoadingSkeleton','partIndex','removeMarker','getDocumentContext','isPremiumPlugin','getPath','setLoadingMessage','Liked\x20response','3390400tjCxAz','insertSuggestion','createPositionFromPath','mouseLeaveSuggestion','activateTab','commands','sourceId','loadSourceResources','split','isCurrentDocumentInConversation','model','startConversation','uiId','7ATEUqj','toggleSuggestionDisplayMode','getChildAtOffset','setIsMaximized','10259322EJuVns','setConversationTitle','plugins','setContextItemLoading','getFirstRange','uid','toggleWebSearch','_showConversationHistory','1720456HmsmsB','type','addOperation','AI_CHAT_RESOURCE_LOAD_FAILED','editors','resourceId','updateFeedItemAIReplySuggestionPartState','_scrollToSuggestionRange','AIConnector','resizeTabs','AIChatController','dialogClosed','isOfficialPlugin','_previewedChangeGroup','_setIsMaximized','uploadProgressChanged','addFeedItemStaticMessage','getAttribute','contextSent','maxOffset','sourceResourcesLoaded','rejectSuggestion','toggleReasoning','end','interactionStarted','focusPromptInput','getRanges','domConverter','getChildren','replyCreated','updateCapabilities','dislike','_batchToChanges','Failed\x20to\x20load\x20conversation','getDocumentData','stopListening','640068iseoMG','get','remove','log','setChangeGroupState','stop','addFeedInteractionHeader','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','revert','rootName','ai-chat-context-unsupported-type','addCurrentDocumentToContext','removeSelectionFromContext','sources','getMarkersGroup','DocumentCompare','ai-chat-conversation-start-failed','addResourceToContext','getReply','Showing\x20conversation\x20history...','resize','createRange','afterInit','delete','resetConversationTitle','add','sendUserMessage','unshift','setModel','AIEditing','ai-chat-controller-mouse-over','upsertAIChatRating','open','ai-chat-missing-channel-id','parse','load','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','context','startInteraction','removeContextItem','pending','ai-chat-file-upload-failed','_removeFromContext','resourceStateChanged','populateSourceResourceBalloon','pluginName','isUploadInProgress','_aiConnector','_toggleWebSearch','216JJBDTy','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','path','resetMessageInput','from','query','removeFromContext','AITabs','interactionCreated','applyOperation','addContextOptionsChanged','400128VTodCG','showDiff','webSearchStarted','interactionId','showPrevious','_createFromRanges','resource','has','setSelectedModel','_openBalloonFor','set','_applyOperationsAsSuggestions','createPositionAt','modification-delta','indexOf','listenTo','AI_CHAT_ABORTED_MESSAGE','AI_CHAT_UNABLE_TO_START_CONVERSATION','hideFakeVisualSelection','redo','_integrateEditor','reasoningStarted','getInteractionAndReplyById','conversationInitialized','resizedTabs','undo','selectModel','_toggleReasoning','3aFaVhV','updateFeedItemAIReplySuggestionContent','isStarted','_applySuggestion','removeSelectionFromChatContext','slice','addFileToContext','getOperations','AI_BALLOON_HEADER_TITLE','ready','scrollFeedToSuggestion','ai.chat.models.defaultModelId','_handleStartConversation','lastInteraction','contextItem','contextItemLoadingEnded','cloneNode','enableControls','requires','_flushLastInteractionUI','getTransformedByOperation','interactionDestroyed','$graveyard','showNext','like','ai-chat-context-invalid-data','map','loadConversation','filter','addFeedItemAIReply','anchorId','_insertSuggestion','alignToTop','mouseOverSuggestion','root','content','markers','batch','ai-chat-url-upload-failed','addFeedItemUserMessage','contextItemRemoved','ai-chat-conversation-init-failed','getSelectionText','new','_aiEditing','handleUserInteraction','closeSourceResourceBalloon','interactionFinished','selectedModel','isLoading','static','TrackChangesEditing','isOpen','collaboration.channelId','clearPendingContextUI','isDocumentOperation','disableControls','updateResourceState','addUrlToContext','_balloonShowDiff','addSelectionToChatContext','mapper','updateFeedItemAIReplyContent','startsWith','setFeedItemRenderingStrategy','rejected','stopInteraction','modelSelected','replies','getInteraction','accepted','removed','ai-request-aborted','_aiChatModels','showChangeInText','messageId','addFeedItemError','ai.chat.models.displayedModels','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','howMany','documentContextContent','toViewRange','data','baseVersion','length','outdated','showFakeVisualSelection','streaming','state','history','_startConversationSafely','change','marker','clearConversationContextUI','find','addFilesToContext','toString','addSelectionToContext','_logError','_handleUIUserMessage','forEach','activeConversation','replyId','selection','main','12113952Qfrjar','changes','version','handleRemovedConversation','changeGroups','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','capabilitiesUpdated','updateCurrentDocumentInContext','finishInteraction','ai.chat.context','config','replyChangeGroupStateUpdated','addFeedItemAISuggestion','contextItems','AI_CHAT_GENERIC_ERROR','nextSibling','viewRangeToDom','_updateRatings','AIChatUI','view','_stopLastInteraction','start','getDiff','_removeAISelectionMarkers','abortPromptStream','setConversationContext','sourcePosition','full','AI_CHAT_CONTEXT_INVALID_DATA','235370rozRSh','isInContext','ai-conversation-','sendMessage','chat','applySuggestion'];_0x2b6f=function(){return _0xe037a3;};return _0x2b6f();}export class AIChatController extends _0x242be3{[_0x9b0b9b(0x11e)];[_0x9b0b9b(0x220)];[_0x9b0b9b(0x19a)];[_0x9b0b9b(0x13b)];[_0x9b0b9b(0x1ed)]=new Map();[_0x9b0b9b(0x1da)]=null;[_0x9b0b9b(0x12d)]=!0x1;static get[_0x9b0b9b(0x104)](){return[_0xa160f8,_0x82d960,_0x581471];}static get[_0x9b0b9b(0x21e)](){const _0x5a2a2e=_0x9b0b9b;return _0x5a2a2e(0x1d7);}static get[_0x9b0b9b(0x1d9)](){return!0x0;}static get[_0x9b0b9b(0x1b0)](){return!0x0;}[_0x9b0b9b(0x19c)](){const _0xf47f86=_0x9b0b9b;this[_0xf47f86(0x220)]=this[_0xf47f86(0x216)][_0xf47f86(0x1c7)][_0xf47f86(0x1f2)](_0xf47f86(0x1d5)),this[_0xf47f86(0x19a)]=this[_0xf47f86(0x216)][_0xf47f86(0x1c7)][_0xf47f86(0x1f2)](_0xf47f86(0x16d)),this[_0xf47f86(0x11e)]=this[_0xf47f86(0x216)][_0xf47f86(0x1c7)][_0xf47f86(0x1f2)](_0xf47f86(0x20e)),this[_0xf47f86(0x13b)]=new _0x50164e({'connector':this[_0xf47f86(0x220)],'displayedModels':this[_0xf47f86(0x216)][_0xf47f86(0x165)][_0xf47f86(0x1f2)](_0xf47f86(0x13f)),'defaultModelId':this[_0xf47f86(0x216)][_0xf47f86(0x165)][_0xf47f86(0x1f2)](_0xf47f86(0xfd))});const _0x281a5f=this[_0xf47f86(0x216)][_0xf47f86(0x1c7)][_0xf47f86(0x1f2)](_0xf47f86(0xd2));this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1bf),()=>{const _0x5bbe05=_0xf47f86;this[_0x5bbe05(0x14c)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x20b),(_0x2edb9b,_0x4d48ea)=>{const _0x5e5be9=_0xf47f86;this[_0x5e5be9(0x155)]({'userMessage':_0x4d48ea});}),this[_0xf47f86(0xe5)](_0x281a5f,_0xf47f86(0xee),(_0x5447b7,_0x2e99e6)=>{const _0x423f32=_0xf47f86;this[_0x423f32(0x1db)](_0x2e99e6);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1d6),()=>{const _0x5da2c2=_0xf47f86;_0x281a5f[_0x5da2c2(0x205)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x173),async()=>{const _0x1aea9d=_0xf47f86;await this[_0x1aea9d(0x16f)](),await this[_0x1aea9d(0x105)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x191),()=>{const _0x2f0182=_0xf47f86;this[_0x2f0182(0x157)]?.[_0x2f0182(0x1fc)](_0x19ae4a(this[_0x2f0182(0x216)][_0x2f0182(0x18a)],_0x2f0182(0x140)));}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0xf8),(_0x264de5,_0x990f7a)=>{const _0x34cf24=_0xf47f86;this[_0x34cf24(0x157)]?.[_0x34cf24(0x151)](Array[_0x34cf24(0x226)](_0x990f7a));}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x12c),(_0x129bb4,_0x1df3d1)=>{const _0x1f96fc=_0xf47f86;this[_0x1f96fc(0x157)]?.[_0x1f96fc(0x12c)](_0x1df3d1);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x202),(_0x59b930,_0x3823e9)=>{const _0x4abc18=_0xf47f86;this[_0x4abc18(0x157)]?.[_0x4abc18(0x202)](_0x3823e9[_0x4abc18(0x197)],_0x3823e9[_0x4abc18(0xdc)]);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x218),(_0x1b3415,_0x22344f)=>{const _0x1883f5=_0xf47f86;this[_0x1883f5(0x21b)](_0x22344f);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1bb),(_0xa21bcf,_0x3938af)=>{const _0x5df0af=_0xf47f86;this[_0x5df0af(0x157)]?.[_0x5df0af(0x1bb)](_0x3938af[_0x5df0af(0x1ba)],_0x3938af[_0x5df0af(0x227)],_0x3938af[_0x5df0af(0x1ca)]);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1cb),()=>{const _0x5cb443=_0xf47f86;this[_0x5cb443(0x221)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1e3),()=>{const _0x39f42b=_0xf47f86;this[_0x39f42b(0xf1)]();}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0xf0),(_0x1d2694,_0x317526)=>{const _0x5f13a6=_0xf47f86;this[_0x5f13a6(0x157)]?.[_0x5f13a6(0x20d)](_0x317526);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x10a),(_0x4cc17e,{replyId:_0x160f84})=>{const _0x5edc13=_0xf47f86;console[_0x5edc13(0x1f4)](_0x5edc13(0x1b3),_0x160f84);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1ec),(_0x149ac2,{replyId:_0x4c100d})=>{const _0x264757=_0xf47f86;console[_0x264757(0x1f4)](_0x264757(0x180),_0x4c100d);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1b5),(_0x28c9d2,_0x629f5e)=>{const _0x41bbe6=_0xf47f86;this[_0x41bbe6(0x216)][_0x41bbe6(0x1c7)][_0x41bbe6(0x1f2)](_0x82d960)[_0x41bbe6(0x190)](),this[_0x41bbe6(0x111)](_0x629f5e);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x13c),(_0x433bef,{replyId:_0x5ca117,partIndex:_0x830c0})=>{const _0x47ef7d=_0xf47f86;this[_0x47ef7d(0x12d)]=this[_0x47ef7d(0x19a)][_0x47ef7d(0xd7)],this[_0x47ef7d(0xdf)](_0x5ca117,_0x830c0);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x113),(_0x33ec48,{replyId:_0x4e231a,partIndex:_0xd73238})=>{const _0x4d960b=_0xf47f86,_0x4b130e=this[_0x4d960b(0x1a9)](_0x4e231a,_0xd73238);_0x4b130e&&_0x4d960b(0x108)!=_0x4b130e[_0x4d960b(0x188)][_0x4d960b(0x114)][_0x4d960b(0x1fa)]&&this[_0x4d960b(0x11e)][_0x4d960b(0x148)]([_0x4b130e[_0x4d960b(0x188)]],_0x4d960b(0x20f));}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1b7),()=>{const _0x5420ff=_0xf47f86;this[_0x5420ff(0x11e)][_0x5420ff(0xe8)](_0x5420ff(0x20f));}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x17d),(_0x4da3ba,_0x3e6801)=>{const _0x417776=_0xf47f86;this[_0x417776(0x216)][_0x417776(0x1c7)][_0x417776(0x1f2)](_0x82d960)[_0x417776(0x190)](),this[_0x417776(0xf5)](_0x3e6801);}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1c2),async(_0x50def6,_0x3c1d6d)=>{const _0x4a16f6=_0xf47f86,{reply:_0x4060f1}=this[_0x4a16f6(0xec)](_0x3c1d6d[_0x4a16f6(0x158)]),_0x29d381=_0x652de9(this[_0x4a16f6(0x216)]),_0x58ee35=_0x5d6e00({'editor':_0x29d381,'changeGroups':_0x4060f1[_0x4a16f6(0x15f)],'documentContextContent':_0x4060f1[_0x4a16f6(0x142)],'showDiff':_0x3c1d6d[_0x4a16f6(0xd7)]});await this[_0x4a16f6(0x19a)][_0x4a16f6(0xf3)]({'id':_0x4060f1['id'],'parts':_0x58ee35,'renderingStrategy':_0x4a16f6(0x124)});}),this[_0xf47f86(0xe5)](this[_0xf47f86(0x19a)],_0xf47f86(0x1e2),(_0x12d9af,{replyId:_0x499b4e,partIndex:_0x1a4102})=>{const _0xfc7888=_0xf47f86;this[_0xfc7888(0x1da)]?.[_0xfc7888(0x158)]==_0x499b4e&&this[_0xfc7888(0x1da)]?.[_0xfc7888(0x1ad)]==_0x1a4102&&this[_0xfc7888(0x216)][_0xfc7888(0x1c7)][_0xfc7888(0x1f2)](_0x82d960)[_0xfc7888(0x190)]();const {reply:_0x26bab9}=this[_0xfc7888(0xec)](_0x499b4e);_0x26bab9[_0xfc7888(0x1f5)](_0x1a4102,_0xfc7888(0x133)),this[_0xfc7888(0x11e)][_0xfc7888(0xe8)](_0xfc7888(0x20f));});}async[_0x9b0b9b(0x207)](){const _0x97d577=_0x9b0b9b;this[_0x97d577(0x216)]instanceof _0x5a1dd2?this[_0x97d577(0xea)](this[_0x97d577(0x216)]):this[_0x97d577(0xe5)](this[_0x97d577(0x216)][_0x97d577(0x1d1)],_0x97d577(0x20a),(_0x33e221,_0x58bcb9)=>{const _0x18336b=_0x97d577;_0x58bcb9['on'](_0x18336b(0xfb),()=>{const _0x44585a=_0x18336b;this[_0x44585a(0xea)](_0x58bcb9);});}),await this[_0x97d577(0x14c)]();}[_0x9b0b9b(0x111)](_0x5926b6){const _0x5439aa=_0x9b0b9b,_0x52af67=_0x652de9(this[_0x5439aa(0x216)]);if(!_0x52af67[_0x5439aa(0x1c7)][_0x5439aa(0xdd)](_0x5439aa(0x125)))return;const _0x15b8a0=this[_0x5439aa(0x216)][_0x5439aa(0x1c7)][_0x5439aa(0x1f2)](_0x5439aa(0x200)),{reply:_0x3d1bc4,interaction:_0x562b27}=this[_0x5439aa(0xec)](_0x5926b6[_0x5439aa(0x158)]),_0x538913=this[_0x5439aa(0x1a9)](_0x5926b6[_0x5439aa(0x158)],_0x5926b6[_0x5439aa(0x1ad)]),_0x5d4e5f=void 0x0!==_0x5926b6[_0x5439aa(0x1ad)]?[_0x3d1bc4[_0x5439aa(0x15f)][_0x5926b6[_0x5439aa(0x1ad)]]]:_0x3d1bc4[_0x5439aa(0x15f)][_0x5439aa(0x10e)](_0x5c3dcc=>_0x5439aa(0x219)==_0x5c3dcc[_0x5439aa(0x14a)]),_0x3e854b=_0x5d4e5f[_0x5439aa(0x10c)](_0x1adf1=>_0x3d1bc4[_0x5439aa(0x15f)][_0x5439aa(0xe4)](_0x1adf1));if(!_0x538913||_0x5439aa(0x108)==_0x538913[_0x5439aa(0x188)][_0x5439aa(0x114)][_0x5439aa(0x1fa)])return void _0x3e854b[_0x5439aa(0x156)](_0x5ae590=>_0x3d1bc4[_0x5439aa(0x1f5)](_0x5ae590,_0x5439aa(0x147)));_0x3e854b[_0x5439aa(0x156)](_0x127b0f=>_0x3d1bc4[_0x5439aa(0x1f5)](_0x127b0f,_0x5439aa(0x138)));const _0x4a2b15=_0x1775d9({'editor':_0x52af67,'reply':_0x3d1bc4,'interaction':_0x562b27,'groups':_0x5d4e5f,'transform':!0x0,'documentCompare':_0x15b8a0,'documentCompareOptions':{'anchor':_0x5439aa(0x15a),'markDeletions':!0x0}});let _0x3ba953;_0x538913&&this[_0x5439aa(0x1d4)](_0x538913[_0x5439aa(0x188)]),_0x52af67[_0x5439aa(0x1be)][_0x5439aa(0x14d)](_0x46c2c1=>{const _0xc36a61=_0x5439aa;_0x3ba953=_0x46c2c1[_0xc36a61(0x117)],_0x52af67[_0xc36a61(0x1c7)][_0xc36a61(0x1f2)](_0xc36a61(0x125))[_0xc36a61(0xe1)](_0x4a2b15),this[_0xc36a61(0x11e)][_0xc36a61(0xe8)](_0xc36a61(0x20f));}),this[_0x5439aa(0x1ed)][_0x5439aa(0xe0)](_0x3ba953,{'interactionId':_0x562b27['id'],'replyId':_0x3d1bc4['id'],'indexes':_0x3e854b[_0x5439aa(0xf7)]()}),this[_0x5439aa(0x16c)](_0x3d1bc4);}[_0x9b0b9b(0xf5)](_0x5039d3){const _0x24c897=_0x9b0b9b,_0x334bff=_0x652de9(this[_0x24c897(0x216)]),_0x3d3a32=this[_0x24c897(0x216)][_0x24c897(0x1c7)][_0x24c897(0x1f2)](_0x581471),{reply:_0x38947d,interaction:_0x45c9aa}=this[_0x24c897(0xec)](_0x5039d3[_0x24c897(0x158)]),_0x9b3f82=this[_0x24c897(0x1a9)](_0x5039d3[_0x24c897(0x158)],_0x5039d3[_0x24c897(0x1ad)]),_0x282ba9=void 0x0!==_0x5039d3[_0x24c897(0x1ad)]?[_0x38947d[_0x24c897(0x15f)][_0x5039d3[_0x24c897(0x1ad)]]]:_0x38947d[_0x24c897(0x15f)][_0x24c897(0x10e)](_0x425a64=>_0x24c897(0x219)==_0x425a64[_0x24c897(0x14a)]),_0x45208a=_0x282ba9[_0x24c897(0x10c)](_0x2de95c=>_0x38947d[_0x24c897(0x15f)][_0x24c897(0xe4)](_0x2de95c));if(!_0x9b3f82||_0x24c897(0x108)==_0x9b3f82[_0x24c897(0x188)][_0x24c897(0x114)][_0x24c897(0x1fa)])return void _0x45208a[_0x24c897(0x156)](_0x1b79bc=>_0x38947d[_0x24c897(0x1f5)](_0x1b79bc,_0x24c897(0x147)));_0x45208a[_0x24c897(0x156)](_0xb365b=>_0x38947d[_0x24c897(0x1f5)](_0xb365b,_0x24c897(0x138)));const _0x49bbe8=_0x1775d9({'editor':_0x334bff,'reply':_0x38947d,'interaction':_0x45c9aa,'groups':_0x282ba9,'transform':!0x0,'documentCompare':_0x3d3a32,'documentCompareOptions':{'anchor':_0x24c897(0x15a),'markDeletions':!0x1}});let _0x13b143;_0x9b3f82&&this[_0x24c897(0x1d4)](_0x9b3f82[_0x24c897(0x188)]),_0x334bff[_0x24c897(0x1be)][_0x24c897(0x14d)](_0x8213bd=>{const _0x39bd0a=_0x24c897;_0x13b143=_0x8213bd[_0x39bd0a(0x117)];for(const _0x2a8158 of _0x49bbe8)_0x2a8158[_0x39bd0a(0x145)]=_0x334bff[_0x39bd0a(0x1be)][_0x39bd0a(0x17f)][_0x39bd0a(0x15d)],_0x8213bd[_0x39bd0a(0x117)][_0x39bd0a(0x1cf)](_0x2a8158),_0x334bff[_0x39bd0a(0x1be)][_0x39bd0a(0xd4)](_0x2a8158);}),this[_0x24c897(0x1ed)][_0x24c897(0xe0)](_0x13b143,{'interactionId':_0x45c9aa['id'],'replyId':_0x38947d['id'],'indexes':_0x45208a[_0x24c897(0xf7)]()}),this[_0x24c897(0x16c)](_0x38947d);}[_0x9b0b9b(0xdf)](_0x1b22f3,_0x4b3691){const _0x53f31=_0x9b0b9b,_0x4f3097=_0x652de9(this[_0x53f31(0x216)]),_0x7e55d9=this[_0x53f31(0x1a9)](_0x1b22f3,_0x4b3691),_0x18da6f=this[_0x53f31(0x216)][_0x53f31(0x1c7)][_0x53f31(0x1f2)](_0x82d960);if(!_0x7e55d9)return void _0x18da6f[_0x53f31(0x190)]();const {range:_0x56b2ca,currentIndex:_0x3a7fab,previousIndex:_0x4fa83b,nextIndex:_0x2efc39}=_0x7e55d9;if(_0x53f31(0x108)==_0x56b2ca[_0x53f31(0x114)][_0x53f31(0x1fa)]){const {reply:_0x26f597}=this[_0x53f31(0xec)](_0x1b22f3);return _0x26f597[_0x53f31(0x1f5)](_0x3a7fab,_0x53f31(0x147)),void _0x18da6f[_0x53f31(0x190)]();}if(this[_0x53f31(0x1da)]?.[_0x53f31(0x158)]==_0x1b22f3&&this[_0x53f31(0x1da)]?.[_0x53f31(0x1ad)]==_0x3a7fab)return;this[_0x53f31(0x1da)]={'replyId':_0x1b22f3,'partIndex':_0x3a7fab};const _0x594318=new _0x4b29c4(_0x4f3097[_0x53f31(0x18a)],{'showDiff':this[_0x53f31(0x12d)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x53f31(0x176)},'hideHeader':!0x0}),{reply:_0x28c1c2}=this[_0x53f31(0xec)](_0x1b22f3),_0x5b0335=_0x5d6e00({'editor':_0x4f3097,'changeGroups':[_0x28c1c2[_0x53f31(0x15f)][_0x3a7fab]],'documentContextContent':_0x28c1c2[_0x53f31(0x142)],'showDiff':this[_0x53f31(0x12d)]});_0x594318[_0x53f31(0x19f)]({'parts':_0x5b0335,'renderingStrategy':_0x53f31(0x124)});const _0x51efad=_0x3a7fab!==_0x4fa83b;this[_0x53f31(0x1d4)](_0x56b2ca,!0x0),_0x18da6f[_0x53f31(0x211)]({'index':_0x3a7fab,'title':_0x19ae4a(this[_0x53f31(0x216)][_0x53f31(0x18a)],_0x53f31(0xfa),(_0x3a7fab+0x1)[_0x53f31(0x152)]()),'icon':_0xe41b23,'mainView':_0x594318,'showRotator':_0x51efad,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x56b2ca]}),this[_0x53f31(0x19a)][_0x53f31(0xfc)](_0x1b22f3,_0x3a7fab),this[_0x53f31(0xe5)](_0x594318,_0x53f31(0x1c2),(_0x2b8e64,{showDiff:_0xdbbc49})=>{const _0x5076be=_0x53f31;this[_0x5076be(0x12d)]=_0xdbbc49;const {reply:_0x5ca674}=this[_0x5076be(0xec)](_0x1b22f3),_0x37262b=_0x5d6e00({'editor':_0x4f3097,'changeGroups':[_0x5ca674[_0x5076be(0x15f)][_0x3a7fab]],'documentContextContent':_0x5ca674[_0x5076be(0x142)],'showDiff':_0xdbbc49});_0x594318[_0x5076be(0x19f)]({'parts':_0x37262b,'renderingStrategy':_0x5076be(0x124)});}),this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0x17d),()=>{const _0x2549fc=_0x53f31;this[_0x2549fc(0xf5)]({'replyId':_0x1b22f3,'partIndex':_0x3a7fab}),_0x51efad?this[_0x2549fc(0xdf)](_0x1b22f3,_0x2efc39):_0x18da6f[_0x2549fc(0x190)]();}),this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0x1b5),()=>{const _0x201089=_0x53f31;this[_0x201089(0x111)]({'replyId':_0x1b22f3,'partIndex':_0x3a7fab}),_0x51efad?this[_0x201089(0xdf)](_0x1b22f3,_0x2efc39):_0x18da6f[_0x201089(0x190)]();}),_0x51efad&&(this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0x109),()=>{const _0x545060=_0x53f31;this[_0x545060(0xdf)](_0x1b22f3,_0x2efc39);}),this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0xda),()=>{const _0x3a87b3=_0x53f31;this[_0x3a87b3(0xdf)](_0x1b22f3,_0x4fa83b);})),this[_0x53f31(0xe5)](_0x18da6f,_0x53f31(0x1d8),()=>{const _0x145456=_0x53f31;this[_0x145456(0x1f0)](_0x18da6f),this[_0x145456(0x1f0)](_0x594318),this[_0x145456(0x1da)]=null;});}[_0x9b0b9b(0x1a9)](_0x4da299,_0x282c9e){const _0x3982f3=_0x9b0b9b,_0x19b3a4=_0x652de9(this[_0x3982f3(0x216)]),{reply:_0x3cf7f2,interaction:_0x124d44}=this[_0x3982f3(0xec)](_0x4da299),_0x2fcc3c=_0x3cf7f2[_0x3982f3(0x15f)][_0x3982f3(0x10e)](_0x1285b6=>_0x3982f3(0x219)==_0x1285b6[_0x3982f3(0x14a)]),_0x29706a=_0x2fcc3c[_0x3982f3(0x10c)](_0x3edffd=>_0x3cf7f2[_0x3982f3(0x15f)][_0x3982f3(0xe4)](_0x3edffd));void 0x0===_0x282c9e&&(_0x282c9e=_0x29706a[0x0]);const _0x4f9bb0=_0x29706a[_0x3982f3(0xe4)](_0x282c9e);if(-0x1==_0x4f9bb0)return null;const _0x2e5ef6=0x0==_0x4f9bb0?_0x29706a[_0x29706a[_0x3982f3(0x146)]-0x1]:_0x29706a[_0x4f9bb0-0x1],_0x3b46e3=_0x4f9bb0==_0x29706a[_0x3982f3(0x146)]-0x1?_0x29706a[0x0]:_0x29706a[_0x4f9bb0+0x1],_0x527d97=_0x2fcc3c[_0x4f9bb0],_0x1ad06e=new _0x2a273e([]),_0x4ba0dc=new _0x2a273e([]);for(const _0x2af511 of _0x527d97[_0x3982f3(0x15c)])if(_0x3982f3(0x139)!=_0x2af511[_0x3982f3(0x1ce)]&&_0x4ba0dc[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x2af511[_0x3982f3(0x18d)][_0x3982f3(0x102)](!0x0)),_0x3982f3(0x11d)!=_0x2af511[_0x3982f3(0x1ce)]){const _0x9c434d=_0x4c173d(_0x5dc033=>_0x57bbe4(_0x5dc033,_0x3982f3(0x1ab))==_0x2af511['id'],_0x3cf7f2[_0x3982f3(0x142)],!0x0);_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x9c434d[_0x3982f3(0x102)](!0x0));}if(0x0==_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x146)]){if(_0x527d97[_0x3982f3(0x15c)][0x0][_0x3982f3(0x110)]){const _0x4f943c=_0x41407c(_0x3982f3(0x1ab),_0x527d97[_0x3982f3(0x15c)][0x0][_0x3982f3(0x110)],_0x3cf7f2[_0x3982f3(0x142)]);_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x20c)](_0x4f943c[_0x3982f3(0x102)](!0x0)),_0x4ba0dc[_0x3982f3(0x1a6)][_0x3982f3(0x20c)](_0x4f943c[_0x3982f3(0x102)](!0x0)),_0x4f943c[_0x3982f3(0x16a)]&&(_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x4f943c[_0x3982f3(0x16a)][_0x3982f3(0x102)](!0x0)),_0x4ba0dc[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x4f943c[_0x3982f3(0x16a)][_0x3982f3(0x102)](!0x0)));}else{const _0x42fe0c=_0x3cf7f2[_0x3982f3(0x142)][_0x3982f3(0x1a6)][0x0];if(!_0x42fe0c)return null;_0x1ad06e[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x42fe0c[_0x3982f3(0x102)](!0x0)),_0x4ba0dc[_0x3982f3(0x1a6)][_0x3982f3(0x18f)](_0x42fe0c[_0x3982f3(0x102)](!0x0));}}const _0x44bd2b=_0x124d44[_0x3982f3(0x1af)](),_0x5818d6=_0x19b3a4[_0x3982f3(0x144)][_0x3982f3(0x213)](_0x44bd2b[_0x3982f3(0x115)]),_0x4c0282=_0x3e5089(_0x1ad06e),_0x28ae71=_0x19b3a4[_0x3982f3(0x144)][_0x3982f3(0x213)](_0x4c0282),_0x1d9364=_0x19b3a4[_0x3982f3(0x144)][_0x3982f3(0x213)](_0x4c0282),_0xebb229=_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0xe2)](_0x28ae71,0x0),_0x52c322=_0x3e5089(_0x4ba0dc),_0x786ff4={'anchor':_0xebb229,'markDeletions':!0x1},_0x8956e6=_0x19b3a4[_0x3982f3(0x1c7)][_0x3982f3(0x1f2)](_0x581471)[_0x3982f3(0x171)](_0x4c0282,_0x52c322,_0x786ff4)[_0x3982f3(0xf9)]();if(!_0x8956e6[_0x3982f3(0x146)])return null;_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x14d)](_0x560e01=>{const _0x22ec6c=_0x3982f3;for(const _0x513a1a of _0x8956e6)if(_0x22ec6c(0x1f3)==_0x513a1a[_0x22ec6c(0x1ce)]){const _0x51ad4f=_0x513a1a[_0x22ec6c(0x175)],_0x2563d5=_0x513a1a[_0x22ec6c(0x141)],_0x57cc65=new _0x4b1e68(_0x51ad4f,_0x2563d5);_0x560e01[_0x22ec6c(0x117)][_0x22ec6c(0x1cf)](_0x57cc65),_0x19b3a4[_0x22ec6c(0x1be)][_0x22ec6c(0xd4)](_0x57cc65);}else _0x22ec6c(0x14e)!==_0x513a1a[_0x22ec6c(0x1ce)]&&(_0x513a1a[_0x22ec6c(0x145)]=null,_0x513a1a[_0x22ec6c(0x129)]=!0x1,_0x560e01[_0x22ec6c(0x117)][_0x22ec6c(0x1cf)](_0x513a1a),_0x19b3a4[_0x22ec6c(0x1be)][_0x22ec6c(0xd4)](_0x513a1a));});const _0x20e043=_0x171b69(_0x19b3a4,_0x8956e6,_0x28ae71);_0x371dd3(_0x19b3a4[_0x3982f3(0x1be)],_0x20e043);const _0x23cedb=_0x20e043[_0x3982f3(0x1c9)]()[_0x3982f3(0x170)][_0x3982f3(0x224)][_0x3982f3(0xf7)](),_0x559920=_0x20e043[_0x3982f3(0x1c9)]()[_0x3982f3(0x1e4)][_0x3982f3(0x224)][_0x3982f3(0xf7)](),_0x533c35=[];let _0x4b6d8d=_0x28ae71,_0x1fd734=_0x1d9364;for(let _0x453c9f=0x0;_0x453c9f<_0x559920[_0x3982f3(0x146)];_0x453c9f++){const _0x38ef78=_0x4b6d8d[_0x3982f3(0x1e0)]-_0x559920[_0x453c9f];_0x533c35[_0x453c9f]=_0x1fd734[_0x3982f3(0x1e0)]-_0x38ef78,_0x4b6d8d=_0x4b6d8d[_0x3982f3(0x1c3)](_0x559920[_0x453c9f]),_0x1fd734=_0x1fd734[_0x3982f3(0x1c3)](_0x533c35[_0x453c9f]);}const _0x30a449=_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x206)](_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x1b6)](_0x1d9364,_0x23cedb),_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x1b6)](_0x1d9364,_0x533c35)),_0x1418d7=_0x1d9364[_0x3982f3(0x198)](0x0)[_0x3982f3(0x1de)](_0x21d2ae),_0x371772=Array[_0x3982f3(0x226)](_0x5818d6[_0x3982f3(0x1e9)]())[_0x3982f3(0x150)](_0xa87234=>_0xa87234[_0x3982f3(0x1de)](_0x21d2ae)==_0x1418d7)[_0x3982f3(0x1b1)](),_0x3301e7=_0x30a449[_0x3982f3(0x170)][_0x3982f3(0x224)][_0x3982f3(0xf7)](),_0x264f55=_0x30a449[_0x3982f3(0x1e4)][_0x3982f3(0x224)][_0x3982f3(0xf7)]();_0x3301e7[0x0]=_0x371772[0x0]+_0x3301e7[0x0],_0x264f55[0x0]=_0x371772[0x0]+_0x264f55[0x0];let _0x40ec8b=_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x206)](_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x1b6)](_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x17f)][_0x3982f3(0x19e)](),_0x3301e7),_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x1b6)](_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x17f)][_0x3982f3(0x19e)](),_0x264f55));const _0x18be06=_0x19b3a4[_0x3982f3(0x1be)][_0x3982f3(0x17f)][_0x3982f3(0x14b)][_0x3982f3(0xf9)](_0x44bd2b[_0x3982f3(0x15d)]);for(const _0x597207 of _0x18be06)_0x40ec8b=_0x2d44c0[_0x3982f3(0xdb)](_0x40ec8b[_0x3982f3(0x106)](_0x597207));return{'range':_0x40ec8b,'previousIndex':_0x2e5ef6,'nextIndex':_0x3b46e3,'currentIndex':_0x282c9e};}[_0x9b0b9b(0xea)](_0x5ec951){const _0x57cbda=_0x9b0b9b;if(!_0x5ec951[_0x57cbda(0x1c7)][_0x57cbda(0xdd)](_0x57cbda(0x195)))return;const _0x3caa40=_0x5ec951[_0x57cbda(0x1b9)][_0x57cbda(0x1f2)](_0x57cbda(0xef)),_0x16c6f8=_0x5ec951[_0x57cbda(0x1b9)][_0x57cbda(0x1f2)](_0x57cbda(0xe9));this[_0x57cbda(0xe5)](_0x3caa40,_0x57cbda(0x1f9),(_0x3c0bc3,_0x9d2df9,_0x54a4ee)=>{const _0x28c189=_0x57cbda,_0x2d0671=this[_0x28c189(0x1ed)][_0x28c189(0x1f2)](_0x9d2df9);if(!_0x2d0671)return;const _0x1bd8c6=this[_0x28c189(0x157)][_0x28c189(0x137)](_0x2d0671[_0x28c189(0xd9)])[_0x28c189(0x203)](_0x2d0671[_0x28c189(0x158)]);_0x2d0671[_0x28c189(0x187)][_0x28c189(0x156)](_0x1f248c=>_0x1bd8c6[_0x28c189(0x1f5)](_0x1f248c,_0x28c189(0x219))),this[_0x28c189(0x1ed)][_0x28c189(0x208)](_0x9d2df9),this[_0x28c189(0x1ed)][_0x28c189(0xe0)](_0x54a4ee,_0x2d0671);}),this[_0x57cbda(0xe5)](_0x16c6f8,_0x57cbda(0x1f9),(_0x29ba53,_0x31c993,_0x5efb7f)=>{const _0xee0532=_0x57cbda,_0x43ed7f=this[_0xee0532(0x1ed)][_0xee0532(0x1f2)](_0x31c993);if(!_0x43ed7f)return;const _0x2f7633=this[_0xee0532(0x157)][_0xee0532(0x137)](_0x43ed7f[_0xee0532(0xd9)])[_0xee0532(0x203)](_0x43ed7f[_0xee0532(0x158)]);_0x43ed7f[_0xee0532(0x187)][_0xee0532(0x156)](_0x2e9db8=>_0x2f7633[_0xee0532(0x1f5)](_0x2e9db8,_0xee0532(0x138))),this[_0xee0532(0x1ed)][_0xee0532(0x208)](_0x31c993),this[_0xee0532(0x1ed)][_0xee0532(0xe0)](_0x5efb7f,_0x43ed7f);});}async[_0x9b0b9b(0x10d)](_0x5aa50c){const _0x40daef=_0x9b0b9b;this[_0x40daef(0x216)][_0x40daef(0x1c7)][_0x40daef(0x1f2)](_0x82d960)[_0x40daef(0x190)](),this[_0x40daef(0x19a)][_0x40daef(0x132)](_0x40daef(0x124)),this[_0x40daef(0x19a)][_0x40daef(0x1ac)](!0x0),await this[_0x40daef(0x16f)]();try{const _0x4ece92=this[_0x40daef(0x216)][_0x40daef(0x1c7)][_0x40daef(0x1f2)](_0x43e068);this[_0x40daef(0x1a5)]('\x20'),_0x4ece92[_0x40daef(0x16e)][_0x40daef(0x1b8)](_0x40daef(0x17c)),await this[_0x40daef(0x14c)](_0x5aa50c);const {sessionId:_0x4f0999}=this[_0x40daef(0x11e)][_0x40daef(0x1ef)]();await this[_0x40daef(0x157)][_0x40daef(0x214)](_0x5aa50c,_0x4f0999),this[_0x40daef(0x157)][_0x40daef(0x1bd)]()&&this[_0x40daef(0x157)][_0x40daef(0x1fc)](_0x19ae4a(this[_0x40daef(0x216)][_0x40daef(0x18a)],_0x40daef(0x140)));}catch(_0x42b1a7){console[_0x40daef(0x17e)](_0x40daef(0x1ee),_0x42b1a7);}finally{this[_0x40daef(0x19a)][_0x40daef(0x132)](_0x40daef(0x149)),this[_0x40daef(0x19a)][_0x40daef(0x1ac)](!0x1);}}[_0x9b0b9b(0x15e)](_0x25a9c6){const _0x283797=_0x9b0b9b;this[_0x283797(0x157)]['id']===_0x25a9c6&&this[_0x283797(0x14c)]();}async[_0x9b0b9b(0x12e)](){const _0x3b96fc=_0x9b0b9b,_0x572ce0=this[_0x3b96fc(0x11e)][_0x3b96fc(0x11c)]();this[_0x3b96fc(0x157)]?.[_0x3b96fc(0x153)](_0x572ce0),this[_0x3b96fc(0x157)]?.[_0x3b96fc(0x1fc)](_0x19ae4a(this[_0x3b96fc(0x216)][_0x3b96fc(0x18a)],_0x3b96fc(0x140)));}[_0x9b0b9b(0xf6)](){const _0x3b4bf2=_0x9b0b9b;this[_0x3b4bf2(0x157)]?.[_0x3b4bf2(0x1fd)]();}[_0x9b0b9b(0x1e6)](){const _0x1fba5b=_0x9b0b9b;this[_0x1fba5b(0x19a)][_0x1fba5b(0x1e6)]();}async[_0x9b0b9b(0x1bf)](){const _0x1c1f15=_0x9b0b9b;await this[_0x1c1f15(0x14c)]();}async[_0x9b0b9b(0x17b)]({message:_0x3a21fa,quickActionData:_0x43e9cc}){const _0x5cc8e7=_0x9b0b9b;await this[_0x5cc8e7(0x155)]({'userMessage':_0x3a21fa,'quickActionData':_0x43e9cc});}[_0x9b0b9b(0x192)](){const _0x3454bf=_0x9b0b9b,_0x16992b=this[_0x3454bf(0x216)][_0x3454bf(0x165)][_0x3454bf(0x1f2)](_0x3454bf(0x127));if(!_0x16992b)throw new _0x30fa1e(_0x3454bf(0x212),this);return _0x16992b;}async[_0x9b0b9b(0x14c)](_0x3a6b45){const _0x668a0b=_0x9b0b9b;try{this[_0x668a0b(0x19a)][_0x668a0b(0x103)](),await this[_0x668a0b(0xfe)](_0x3a6b45);}catch(_0x2776e3){_0xd99304(_0x668a0b(0x201),_0x2776e3),this[_0x668a0b(0x157)]=void 0x0,this[_0x668a0b(0x19a)][_0x668a0b(0x12a)]();}}async[_0x9b0b9b(0xfe)](_0x50040b){const _0x37a2c6=_0x9b0b9b,_0x1325a3=this[_0x37a2c6(0x216)][_0x37a2c6(0x1c7)][_0x37a2c6(0x1f2)](_0x82d960);let _0x191e72;_0x1325a3[_0x37a2c6(0x126)]&&_0x1325a3[_0x37a2c6(0x190)](),_0x50040b||!this[_0x37a2c6(0x157)]?_0x191e72=this[_0x37a2c6(0x216)][_0x37a2c6(0x165)][_0x37a2c6(0x1f2)](_0x37a2c6(0xfd)):this[_0x37a2c6(0x19a)][_0x37a2c6(0x193)]&&(_0x191e72=this[_0x37a2c6(0x157)][_0x37a2c6(0x122)]['id']),await this[_0x37a2c6(0x16f)]();const _0x4d0b93=this[_0x37a2c6(0x192)](),_0x29edf8=_0x50040b||_0x4a61b3();this[_0x37a2c6(0x157)]=new _0x1a8029({'connector':this[_0x37a2c6(0x220)],'chatModels':this[_0x37a2c6(0x13b)],'selectedModelId':_0x191e72,'conversationId':_0x29edf8,'group':_0x4d0b93,'getEditor':()=>_0x652de9(this[_0x37a2c6(0x216)])}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xed),(_0x30af37,_0x3b4200)=>{const _0x50fd27=_0x37a2c6;this[_0x50fd27(0x19a)][_0x50fd27(0x182)](_0x3b4200),this[_0x50fd27(0x19a)][_0x50fd27(0x225)](),this[_0x50fd27(0x19a)][_0x50fd27(0x128)](),this[_0x50fd27(0x19a)][_0x50fd27(0x14f)](),_0x50040b||(this[_0x50fd27(0x19a)][_0x50fd27(0x209)](),this[_0x50fd27(0x157)]?.[_0x50fd27(0x1fc)](_0x19ae4a(this[_0x50fd27(0x216)][_0x50fd27(0x18a)],_0x50fd27(0x140))));}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1dc),(_0x44375a,_0x2e43d9)=>{const _0x35f0c9=_0x37a2c6;this[_0x35f0c9(0x19a)][_0x35f0c9(0x1a0)](_0x2e43d9[_0x35f0c9(0x21f)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xd3),(_0x5cfe42,_0x29fed3)=>{const _0x165173=_0x37a2c6;this[_0x165173(0x19a)][_0x165173(0x119)](_0x29fed3);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xd8),()=>{const _0x388f78=_0x37a2c6;this[_0x388f78(0x19a)][_0x388f78(0x1b2)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xeb),()=>{const _0x5658b6=_0x37a2c6;this[_0x5658b6(0x19a)][_0x5658b6(0x1b2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x189),(_0x143879,_0x2da495)=>{const _0x5ae694=_0x37a2c6;this[_0x5ae694(0x19a)][_0x5ae694(0x1f7)](_0x2da495,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x196),(_0x592c34,_0x242655)=>{const _0x2a5e7e=_0x37a2c6;this[_0x2a5e7e(0x19a)][_0x2a5e7e(0x1f7)](_0x242655,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1e5),()=>{const _0x5bd149=_0x37a2c6;this[_0x5bd149(0x19a)][_0x5bd149(0x217)]();}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x121),async()=>{const _0x4a03fe=_0x37a2c6;await this[_0x4a03fe(0x19a)][_0x4a03fe(0x163)]();}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x107),(_0x24d453,_0x342653)=>{const _0x566955=_0x37a2c6;this[_0x566955(0x19a)][_0x566955(0x18e)](_0x342653['id']);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1c6),(_0x47f2b3,_0x3fa995,_0x47d81e)=>{const _0x5aa7fc=_0x37a2c6;this[_0x5aa7fc(0x1a5)](_0x3fa995,_0x47d81e);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1ea),(_0x3110ed,_0x4e6eba)=>{const _0x55d0f9=_0x37a2c6;_0x55d0f9(0x199)===_0x4e6eba[_0x55d0f9(0x1ce)]?this[_0x55d0f9(0x19a)][_0x55d0f9(0x10f)](_0x4e6eba):this[_0x55d0f9(0x19a)][_0x55d0f9(0x167)](_0x4e6eba);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1aa),async(_0x101ec4,_0x55554d,_0x355ae3)=>{const _0x3c45ce=_0x37a2c6;await this[_0x3c45ce(0x184)]({'reply':_0x55554d,'changeGroups':_0x355ae3});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x166),(_0x26bcd3,{reply:_0x536ef1,index:_0x4a0e33,state:_0x388c14})=>{const _0x9205=_0x37a2c6;this[_0x9205(0x19a)][_0x9205(0x1d3)]({'id':_0x536ef1['id'],'index':_0x4a0e33,'state':_0x388c14});}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x18b),(_0x21284b,_0x3cbab7)=>{const _0xb65771=_0x37a2c6;if(this[_0xb65771(0x19a)][_0xb65771(0x1a7)](_0x3cbab7[_0xb65771(0x100)],_0x3cbab7[_0xb65771(0x123)]),_0xb65771(0x159)===_0x3cbab7[_0xb65771(0x100)][_0xb65771(0x1ce)]){const _0x22f275=[..._0x652de9(this[_0xb65771(0x216)])[_0xb65771(0x1be)][_0xb65771(0x17f)][_0xb65771(0x159)][_0xb65771(0x1e7)]()];this[_0xb65771(0x11e)][_0xb65771(0x148)](_0x22f275,_0xb65771(0x17a)+this[_0xb65771(0x157)]?.['id']);}}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x11a),(_0x106732,_0x5497b4)=>{const _0xa547d8=_0x37a2c6;this[_0xa547d8(0x19a)][_0xa547d8(0x218)](_0x5497b4[_0xa547d8(0x1c0)]),_0xa547d8(0x1a2)==_0x5497b4[_0xa547d8(0x1c0)]&&this[_0xa547d8(0xf6)](),_0xa547d8(0x159)===_0x5497b4[_0xa547d8(0x1ce)]&&this[_0xa547d8(0x11e)][_0xa547d8(0xe8)](_0xa547d8(0x17a)+this[_0xa547d8(0x157)]?.['id']);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x101),(_0x2bc266,_0x3e239e)=>{const _0x129455=_0x37a2c6;this[_0x129455(0x19a)][_0x129455(0x1c8)](_0x3e239e[_0x129455(0x100)][_0x129455(0x1c0)],_0x3e239e[_0x129455(0x123)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1df),(_0x2a2cbf,_0x2767d3)=>{const _0x250bfa=_0x37a2c6;this[_0x250bfa(0x19a)][_0x250bfa(0x174)](_0x2767d3[_0x250bfa(0x168)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0xd5),(_0x36055b,_0x58f863)=>{const _0x150062=_0x37a2c6;this[_0x150062(0x19a)][_0x150062(0x186)](_0x58f863[_0x150062(0x194)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x1e1),(_0x5e4135,_0x12ac1e)=>{const _0x354ad6=_0x37a2c6;this[_0x354ad6(0x19a)][_0x354ad6(0x21d)](_0x12ac1e[_0x354ad6(0x1ba)],_0x12ac1e[_0x354ad6(0x197)],_0x12ac1e[_0x354ad6(0x1a1)],_0x12ac1e[_0x354ad6(0x1ca)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x21c),(_0x2361bb,_0x5ef8aa)=>{const _0xb86b60=_0x37a2c6;this[_0xb86b60(0x19a)][_0xb86b60(0x12b)](_0x5ef8aa[_0xb86b60(0x1ba)],_0x5ef8aa[_0xb86b60(0x1d2)],_0x5ef8aa[_0xb86b60(0x179)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x161),(_0x20fc93,_0x409c0c)=>{const _0x1f0cec=_0x37a2c6;this[_0x1f0cec(0x19a)][_0x1f0cec(0x1eb)](_0x409c0c);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x135),(_0x5c3b98,_0x25094e)=>{const _0x141732=_0x37a2c6;this[_0x141732(0x19a)][_0x141732(0xde)](_0x25094e[_0x141732(0x122)],_0x25094e[_0x141732(0x19d)]);}),this[_0x37a2c6(0x157)]['on'](_0x37a2c6(0x17e),(_0xa5b21d,{error:_0x2a5062,interactionId:_0x67b7eb,fileName:_0x1a60a5,url:_0x5d37cb,sourceId:_0x5d9280,sourceLabel:_0x47bf4c})=>{const _0x48b664=_0x37a2c6,_0x3f14bb=_0x67b7eb?_0x67b7eb+':'+_0x4a61b3():_0x4a61b3();_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x13a))?this[_0x48b664(0x19a)][_0x48b664(0x1dd)]({'staticMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0xe6)),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x11b))||_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x201))?(this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0xe7)),'id':_0x3f14bb}),this[_0x48b664(0x154)](_0x2a5062)):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x21a))?this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x160),_0x1a60a5),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x118))?this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x223),_0x5d37cb),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x10b))?this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x177)),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x1fb))?this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x1f8)),'id':_0x3f14bb}):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x1a3))?(_0x5d9280&&this[_0x48b664(0x19a)][_0x48b664(0x120)](_0x5d9280),this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x215),_0x47bf4c||_0x48b664(0x197)),'id':_0x3f14bb}),this[_0x48b664(0x154)](_0x2a5062)):_0x2a5062[_0x48b664(0x1a4)][_0x48b664(0x131)](_0x48b664(0x1a8))?(this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x1d0)),'id':_0x3f14bb}),this[_0x48b664(0x154)](_0x2a5062)):(this[_0x48b664(0x19a)][_0x48b664(0x13e)]({'errorMessage':_0x19ae4a(this[_0x48b664(0x216)][_0x48b664(0x18a)],_0x48b664(0x169)),'id':_0x3f14bb}),this[_0x48b664(0x154)](_0x2a5062));}),await this[_0x37a2c6(0x157)][_0x37a2c6(0x19c)](this[_0x37a2c6(0x216)][_0x37a2c6(0x165)][_0x37a2c6(0x1f2)](_0x37a2c6(0x164))),_0x50040b||await this[_0x37a2c6(0x157)][_0x37a2c6(0x170)]();}async[_0x9b0b9b(0x155)]({userMessage:_0x241391,quickActionData:_0x13a09f}){const _0x472784=_0x9b0b9b;if(!this[_0x472784(0x157)])throw new _0x30fa1e(_0x472784(0x183));this[_0x472784(0x157)][_0x472784(0x18c)]()&&await this[_0x472784(0x157)][_0x472784(0x162)](this[_0x472784(0x11e)][_0x472784(0x1ef)]()),this[_0x472784(0x157)]['id']&&this[_0x472784(0x157)][_0x472784(0xf4)]&&await this[_0x472784(0x157)][_0x472784(0x11f)]({'userMessage':_0x241391,'quickActionData':_0x13a09f}),this[_0x472784(0x172)]();}[_0x9b0b9b(0x172)](){const _0x2d487b=_0x9b0b9b,_0xf97b6f=_0x652de9(this[_0x2d487b(0x216)])[_0x2d487b(0x1be)],_0xc2056d=Array[_0x2d487b(0x226)](_0xf97b6f[_0x2d487b(0x116)][_0x2d487b(0x1ff)](_0x3f37cf));_0xf97b6f[_0x2d487b(0x14d)](_0x348107=>{const _0x1f1ef9=_0x2d487b;_0xc2056d[_0x1f1ef9(0x156)](_0x9e45a2=>_0x348107[_0x1f1ef9(0x1ae)](_0x9e45a2));});}[_0x9b0b9b(0x1cc)](){const _0x48da9e=_0x9b0b9b;console[_0x48da9e(0x1f4)](_0x48da9e(0x204));}[_0x9b0b9b(0x1db)](_0x47a94e){const _0x67ebab=_0x9b0b9b;this[_0x67ebab(0x19a)][_0x67ebab(0x1c4)](_0x47a94e);}[_0x9b0b9b(0x154)](_0x432ec3){const _0x593453=_0x9b0b9b;_0xd99304(_0x432ec3[_0x593453(0x1a4)]);}[_0x9b0b9b(0x21b)](_0x57eec0){const _0x4c1d90=_0x9b0b9b;this[_0x4c1d90(0x157)]?.[_0x4c1d90(0xd1)](_0x57eec0);}[_0x9b0b9b(0x221)](){const _0x3c81ba=_0x9b0b9b;this[_0x3c81ba(0x157)]?.[_0x3c81ba(0x1cb)]();}[_0x9b0b9b(0xf1)](){const _0x291815=_0x9b0b9b;this[_0x291815(0x157)]?.[_0x291815(0x1e3)]();}[_0x9b0b9b(0xec)](_0x226f1b){const _0xbcf59d=_0x9b0b9b,[_0x1464a7,_0x19dffd]=_0x226f1b[_0xbcf59d(0x1bc)](':'),_0xb8f470=this[_0xbcf59d(0x157)][_0xbcf59d(0x137)](_0x1464a7),_0x447c34=_0xb8f470[_0xbcf59d(0x203)](_0x19dffd);return{'interaction':_0xb8f470,'reply':_0x447c34};}[_0x9b0b9b(0x1d4)](_0x5f06a8,_0x17e948=!0x1){const _0x4fd99f=_0x9b0b9b,_0x47299e=_0x652de9(this[_0x4fd99f(0x216)]),_0x5efa9c={'target':_0x47299e[_0x4fd99f(0x19b)][_0x4fd99f(0x16e)][_0x4fd99f(0x1e8)][_0x4fd99f(0x16b)](_0x47299e[_0x4fd99f(0x19b)][_0x4fd99f(0x12f)][_0x4fd99f(0x143)](_0x5f06a8)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x17e948};_0x17e948&&(_0x5efa9c[_0x4fd99f(0x112)]=!0x0),_0x33a9d6(_0x5efa9c);}[_0x9b0b9b(0x1a5)](_0x3d0a14,_0x42b438=!0x1){const _0x3a9645=_0x9b0b9b;this[_0x3a9645(0x19a)][_0x3a9645(0x1c6)](_0x3d0a14||_0x19ae4a(this[_0x3a9645(0x216)][_0x3a9645(0x18a)],_0x3a9645(0x181)),_0x42b438);}async[_0x9b0b9b(0x184)]({reply:_0x312fb8,changeGroups:_0x18ca17,renderingStrategy:_0x1f561d}){const _0x47571e=_0x9b0b9b,{id:_0x33cbcd,isDone:_0xb38812,type:_0x40adb8,parsedContent:_0x288e46}=_0x312fb8;if(_0x47571e(0xe3)===_0x40adb8){const _0x2ed284=_0x652de9(this[_0x47571e(0x216)]),_0x4b1fa1=_0x5d6e00({'editor':_0x2ed284,'showDiff':this[_0x47571e(0x19a)][_0x47571e(0xd7)],'changeGroups':_0x18ca17,'documentContextContent':_0x312fb8[_0x47571e(0x142)]});await this[_0x47571e(0x19a)][_0x47571e(0xf3)]({'id':_0x33cbcd,'parts':_0x4b1fa1,'renderingStrategy':_0x1f561d,'isDone':_0xb38812});}else _0x47571e(0x199)===_0x40adb8&&await this[_0x47571e(0x19a)][_0x47571e(0x130)]({'id':_0x33cbcd,'parsedContent':_0x288e46,'renderingStrategy':_0x1f561d,'isDone':_0xb38812});_0xb38812&&_0x312fb8[_0x47571e(0x1fe)][_0x47571e(0x146)]>0x0&&this[_0x47571e(0x19a)][_0x47571e(0x185)](_0x33cbcd,_0x312fb8[_0x47571e(0x1fe)]);}async[_0x9b0b9b(0x16f)](){const _0x5b7af7=_0x9b0b9b,_0x944079=this[_0x5b7af7(0x157)]?.[_0x5b7af7(0xff)];_0x944079&&(_0x944079[_0x5b7af7(0x1f6)](),this[_0x5b7af7(0x19a)][_0x5b7af7(0x134)](_0x944079));}async[_0x9b0b9b(0x105)](){const _0x27890f=_0x9b0b9b,_0x23a164=this[_0x27890f(0x157)]?.[_0x27890f(0xff)];if(_0x23a164){for await(const _0x5b5cfc of _0x23a164[_0x27890f(0x136)])await this[_0x27890f(0x184)]({'reply':_0x5b5cfc,'changeGroups':_0x5b5cfc[_0x27890f(0x15f)],'renderingStrategy':_0x27890f(0x124)});}}[_0x9b0b9b(0x16c)](_0x50be0c){const _0x406ba3=_0x9b0b9b,_0x2f1018={'positiveCount':_0x50be0c[_0x406ba3(0x15f)][_0x406ba3(0x10e)](_0x37fef5=>_0x406ba3(0x138)===_0x37fef5[_0x406ba3(0x14a)])[_0x406ba3(0x146)],'totalCount':_0x50be0c[_0x406ba3(0x15f)][_0x406ba3(0x146)]},_0x3e02da=this[_0x406ba3(0x157)][_0x406ba3(0x137)](_0x50be0c[_0x406ba3(0xd9)])[_0x406ba3(0x13d)];this[_0x406ba3(0x220)][_0x406ba3(0x210)](this[_0x406ba3(0x157)]['id'],_0x3e02da,_0x2f1018);}}
|
|
23
|
+
const _0x2c4a56=_0x2432;(function(_0x368909,_0xf1c8f1){const _0x44197c=_0x2432,_0x25bca5=_0x368909();while(!![]){try{const _0x2bec96=-parseInt(_0x44197c(0x26b))/0x1+parseInt(_0x44197c(0x2b4))/0x2*(parseInt(_0x44197c(0x2a2))/0x3)+-parseInt(_0x44197c(0x28c))/0x4*(parseInt(_0x44197c(0x25d))/0x5)+-parseInt(_0x44197c(0x228))/0x6*(parseInt(_0x44197c(0x226))/0x7)+-parseInt(_0x44197c(0x203))/0x8*(parseInt(_0x44197c(0x219))/0x9)+-parseInt(_0x44197c(0x23d))/0xa+-parseInt(_0x44197c(0x27e))/0xb*(-parseInt(_0x44197c(0x227))/0xc);if(_0x2bec96===_0xf1c8f1)break;else _0x25bca5['push'](_0x25bca5['shift']());}catch(_0x3a4ee2){_0x25bca5['push'](_0x25bca5['shift']());}}}(_0x5d6c,0x4daef));import{ContextPlugin as _0x21d8ed,Editor as _0x27a92a}from'ckeditor5/src/core.js';import{CKEditorError as _0x13f2ac,logError as _0xbcf11b,scrollViewportToShowTarget as _0x59c6ad,uid as _0x38bd85}from'ckeditor5/src/utils.js';import{AIConnector as _0x2d2c2e}from'../aicore/aiconnector.js';import{AITabs as _0x44b1ea}from'../aitabs/aitabs.js';import{AIChatConversation as _0x2f446f}from'./model/aichatconversation.js';import{getTranslation as _0x1523b1}from'../aicore/utils/common-translations.js';import{AI_VISUAL_SELECTION_MARKER_NAME as _0x3a377a}from'../aicore/aiediting.js';import{AIChatModels as _0x291dd3}from'./model/aichatmodels.js';import{getEditorFromContext as _0x40cd09}from'../aicore/utils/geteditorfromcontext.js';import{DocumentCompare as _0x4fad48,DATA_ID_MODEL_ATTRIBUTE as _0x144524}from'@ckeditor/ckeditor5-collaboration-core';import{getOperationsFromReply as _0x44190b}from'../aicore/utils/getoperationsfromreply.js';import{expandSelectionWithContext as _0xee9603,getMinimalSelection as _0x31f8ce,getSuggestionPartsFromReply as _0x2b2350}from'../aicore/utils/getsuggestionpartsfromreply.js';import{ModelRange as _0x5bf0a5,_DetachOperation as _0xf7d8c}from'ckeditor5/src/engine.js';import{findOne as _0x37f9bf,getAttribute as _0x366774,serialize as _0x1007e6,Document as _0x3d00cc,findByAttribute as _0xa2728e}from'../aicore/utils/htmlparser.js';import{IconAI as _0x5e93f1}from'@ckeditor/ckeditor5-icons';import{AISuggestionContainerView as _0x5e61a5}from'../aicore/ui/suggestioncontainer/aisuggestioncontainerview.js';function _0x2432(_0x3bbebe,_0x46e960){const _0x5d6c83=_0x5d6c();return _0x2432=function(_0x243239,_0x3ae7fd){_0x243239=_0x243239-0x1b0;let _0x424ab3=_0x5d6c83[_0x243239];return _0x424ab3;},_0x2432(_0x3bbebe,_0x46e960);}import{AIBalloon as _0x48b72c}from'../aiballoon/aiballoon.js';export class AIChatController extends _0x21d8ed{[_0x2c4a56(0x1ce)];[_0x2c4a56(0x1f2)];[_0x2c4a56(0x2b3)];[_0x2c4a56(0x295)];[_0x2c4a56(0x205)]=new Map();[_0x2c4a56(0x207)]=null;[_0x2c4a56(0x25e)]=!0x1;static get[_0x2c4a56(0x244)](){return[_0x2d2c2e,_0x48b72c,_0x4fad48];}static get[_0x2c4a56(0x1bc)](){const _0x31ec0d=_0x2c4a56;return _0x31ec0d(0x2d2);}static get[_0x2c4a56(0x2ec)](){return!0x0;}static get[_0x2c4a56(0x2d9)](){return!0x0;}[_0x2c4a56(0x1e5)](){const _0x412031=_0x2c4a56;this[_0x412031(0x1f2)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x26c)),this[_0x412031(0x2b3)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x1c4)),this[_0x412031(0x1ce)]=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x300)),this[_0x412031(0x295)]=new _0x291dd3({'connector':this[_0x412031(0x1f2)],'displayedModels':this[_0x412031(0x2fa)][_0x412031(0x2c3)][_0x412031(0x1b3)](_0x412031(0x2a0)),'defaultModelId':this[_0x412031(0x2fa)][_0x412031(0x2c3)][_0x412031(0x1b3)](_0x412031(0x1fa))});const _0x3bb6e0=this[_0x412031(0x2fa)][_0x412031(0x2e3)][_0x412031(0x1b3)](_0x412031(0x242));this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1e9),()=>{const _0x41acfb=_0x412031;this[_0x41acfb(0x2f2)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x301),(_0x5ca84f,_0x2e9506)=>{const _0x179279=_0x412031;this[_0x179279(0x212)]({'userMessage':_0x2e9506});}),this[_0x412031(0x21e)](_0x3bb6e0,_0x412031(0x277),(_0x24df47,_0x4c9818)=>{const _0x1d5167=_0x412031;this[_0x1d5167(0x257)](_0x4c9818);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x25c),()=>{const _0x2c36f5=_0x412031;_0x3bb6e0[_0x2c36f5(0x2ac)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x239),async()=>{const _0x371696=_0x412031;await this[_0x371696(0x1c9)](),await this[_0x371696(0x1e2)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2e9),()=>{const _0x2bff2f=_0x412031;this[_0x2bff2f(0x267)]?.[_0x2bff2f(0x304)](_0x1523b1(this[_0x2bff2f(0x2fa)][_0x2bff2f(0x284)],_0x2bff2f(0x2f8)));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2b1),(_0x4c5014,_0x2b52fb)=>{const _0x391932=_0x412031;this[_0x391932(0x267)]?.[_0x391932(0x2de)](Array[_0x391932(0x1ea)](_0x2b52fb));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x225),(_0x5a4696,_0x1df7ee)=>{const _0x546783=_0x412031;this[_0x546783(0x267)]?.[_0x546783(0x225)](_0x1df7ee);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x232),(_0x155d98,_0x387bf0)=>{const _0xba6fe5=_0x412031;this[_0xba6fe5(0x267)]?.[_0xba6fe5(0x232)](_0x387bf0[_0xba6fe5(0x1e0)],_0x387bf0[_0xba6fe5(0x303)]);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x246),(_0x42549d,_0x599a6f)=>{const _0x11f621=_0x412031;this[_0x11f621(0x24b)](_0x599a6f);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1c7),(_0x35db47,_0x2257f6)=>{const _0x131c53=_0x412031;this[_0x131c53(0x267)]?.[_0x131c53(0x1c7)](_0x2257f6[_0x131c53(0x298)],_0x2257f6[_0x131c53(0x29c)],_0x2257f6[_0x131c53(0x1c0)]);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x1d3),()=>{const _0x430e30=_0x412031;this[_0x430e30(0x2b5)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x27b),()=>{const _0x18e06a=_0x412031;this[_0x18e06a(0x2a9)]();}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2f1),(_0x22db90,_0x7c2f74)=>{const _0x231ab1=_0x412031;this[_0x231ab1(0x267)]?.[_0x231ab1(0x1d6)](_0x7c2f74);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x305),(_0x5aa41f,{replyId:_0x2abb08})=>{const _0x4d058a=_0x412031;console[_0x4d058a(0x23b)](_0x4d058a(0x204),_0x2abb08);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2c4),(_0x4eab41,{replyId:_0x1f3bc2})=>{const _0x4ded23=_0x412031;console[_0x4ded23(0x23b)](_0x4ded23(0x27f),_0x1f3bc2);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x241),(_0x537ba8,_0xa8af17)=>{const _0x4e3b3a=_0x412031;this[_0x4e3b3a(0x2fa)][_0x4e3b3a(0x2e3)][_0x4e3b3a(0x1b3)](_0x48b72c)[_0x4e3b3a(0x2e5)](),this[_0x4e3b3a(0x280)](_0xa8af17);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2d3),(_0x1bb8c6,{replyId:_0x3d8cf4,partIndex:_0x4007e1})=>{const _0x584b40=_0x412031;this[_0x584b40(0x25e)]=this[_0x584b40(0x2b3)][_0x584b40(0x1ec)],this[_0x584b40(0x278)](_0x3d8cf4,_0x4007e1);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x2ed),(_0x54ad76,{replyId:_0xfd2e78,partIndex:_0x2a7013})=>{const _0x268dfa=_0x412031,_0x2628e5=this[_0x268dfa(0x1fb)](_0xfd2e78,_0x2a7013);_0x2628e5&&_0x268dfa(0x290)!=_0x2628e5[_0x268dfa(0x2ad)][_0x268dfa(0x2cf)][_0x268dfa(0x2d4)]&&this[_0x268dfa(0x1ce)][_0x268dfa(0x2dc)]([_0x2628e5[_0x268dfa(0x2ad)]],_0x268dfa(0x23a));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x283),()=>{const _0x52e978=_0x412031;this[_0x52e978(0x1ce)][_0x52e978(0x306)](_0x52e978(0x23a));}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x221),(_0x14c549,_0x3f462a)=>{const _0x1f1368=_0x412031;this[_0x1f1368(0x2fa)][_0x1f1368(0x2e3)][_0x1f1368(0x1b3)](_0x48b72c)[_0x1f1368(0x2e5)](),this[_0x1f1368(0x1b9)](_0x3f462a);}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x297),async(_0x4fbd38,_0x3369f1)=>{const _0x312c24=_0x412031,{reply:_0x1d49bb}=this[_0x312c24(0x206)](_0x3369f1[_0x312c24(0x2d0)]),_0x589337=_0x40cd09(this[_0x312c24(0x2fa)]),_0x43a9dd=_0x2b2350({'editor':_0x589337,'changeGroups':_0x1d49bb[_0x312c24(0x2df)],'documentContextContent':_0x1d49bb[_0x312c24(0x25a)],'showDiff':_0x3369f1[_0x312c24(0x1ec)]});await this[_0x312c24(0x2b3)][_0x312c24(0x1c1)]({'id':_0x1d49bb['id'],'parts':_0x43a9dd,'renderingStrategy':_0x312c24(0x288)});}),this[_0x412031(0x21e)](this[_0x412031(0x2b3)],_0x412031(0x224),(_0x452063,{replyId:_0x1fa3b8,partIndex:_0x2a276c})=>{const _0x328d8f=_0x412031;this[_0x328d8f(0x207)]?.[_0x328d8f(0x2d0)]==_0x1fa3b8&&this[_0x328d8f(0x207)]?.[_0x328d8f(0x208)]==_0x2a276c&&this[_0x328d8f(0x2fa)][_0x328d8f(0x2e3)][_0x328d8f(0x1b3)](_0x48b72c)[_0x328d8f(0x2e5)]();const {reply:_0x4503d3}=this[_0x328d8f(0x206)](_0x1fa3b8);_0x4503d3[_0x328d8f(0x27a)](_0x2a276c,_0x328d8f(0x287)),this[_0x328d8f(0x1ce)][_0x328d8f(0x306)](_0x328d8f(0x23a));});}async[_0x2c4a56(0x234)](){const _0x584531=_0x2c4a56;this[_0x584531(0x2fa)]instanceof _0x27a92a?this[_0x584531(0x265)](this[_0x584531(0x2fa)]):this[_0x584531(0x21e)](this[_0x584531(0x2fa)][_0x584531(0x2ee)],_0x584531(0x255),(_0x349cd1,_0x1a8e7d)=>{const _0x287529=_0x584531;_0x1a8e7d['on'](_0x287529(0x24a),()=>{const _0x13e355=_0x287529;this[_0x13e355(0x265)](_0x1a8e7d);});}),await this[_0x584531(0x2f2)]();}[_0x2c4a56(0x280)](_0x17faf9){const _0xd488ee=_0x2c4a56,_0x48952b=_0x40cd09(this[_0xd488ee(0x2fa)]);if(!_0x48952b[_0xd488ee(0x2e3)][_0xd488ee(0x26f)](_0xd488ee(0x2aa)))return;const _0x2de736=this[_0xd488ee(0x2fa)][_0xd488ee(0x2e3)][_0xd488ee(0x1b3)](_0xd488ee(0x26d)),{reply:_0x1221f1,interaction:_0x5d420d}=this[_0xd488ee(0x206)](_0x17faf9[_0xd488ee(0x2d0)]),_0x2c9bae=this[_0xd488ee(0x1fb)](_0x17faf9[_0xd488ee(0x2d0)],_0x17faf9[_0xd488ee(0x208)]),_0x325bc2=void 0x0!==_0x17faf9[_0xd488ee(0x208)]?[_0x1221f1[_0xd488ee(0x2df)][_0x17faf9[_0xd488ee(0x208)]]]:_0x1221f1[_0xd488ee(0x2df)][_0xd488ee(0x1f3)](_0x1b705b=>_0xd488ee(0x1bb)==_0x1b705b[_0xd488ee(0x26a)]),_0x49ffa1=_0x325bc2[_0xd488ee(0x23e)](_0x4b1cc0=>_0x1221f1[_0xd488ee(0x2df)][_0xd488ee(0x1e3)](_0x4b1cc0));if(!_0x2c9bae||_0xd488ee(0x290)==_0x2c9bae[_0xd488ee(0x2ad)][_0xd488ee(0x2cf)][_0xd488ee(0x2d4)])return void _0x49ffa1[_0xd488ee(0x264)](_0x25f9f7=>_0x1221f1[_0xd488ee(0x27a)](_0x25f9f7,_0xd488ee(0x229)));_0x49ffa1[_0xd488ee(0x264)](_0x99de46=>_0x1221f1[_0xd488ee(0x27a)](_0x99de46,_0xd488ee(0x275)));const _0x340900=_0x44190b({'editor':_0x48952b,'reply':_0x1221f1,'interaction':_0x5d420d,'groups':_0x325bc2,'transform':!0x0,'documentCompare':_0x2de736,'documentCompareOptions':{'anchor':_0xd488ee(0x1e7),'markDeletions':!0x0}});let _0x519e0d;_0x2c9bae&&this[_0xd488ee(0x22a)](_0x2c9bae[_0xd488ee(0x2ad)]),_0x48952b[_0xd488ee(0x1f5)][_0xd488ee(0x29e)](_0x381829=>{const _0x18c6fc=_0xd488ee;_0x519e0d=_0x381829[_0x18c6fc(0x22e)],_0x48952b[_0x18c6fc(0x2e3)][_0x18c6fc(0x1b3)](_0x18c6fc(0x2aa))[_0x18c6fc(0x254)](_0x340900),this[_0x18c6fc(0x1ce)][_0x18c6fc(0x306)](_0x18c6fc(0x23a));}),this[_0xd488ee(0x205)][_0xd488ee(0x279)](_0x519e0d,{'interactionId':_0x5d420d['id'],'replyId':_0x1221f1['id'],'indexes':_0x49ffa1[_0xd488ee(0x23c)]()}),this[_0xd488ee(0x276)](_0x1221f1);}[_0x2c4a56(0x1b9)](_0x283218){const _0x4d2ace=_0x2c4a56,_0x198fae=_0x40cd09(this[_0x4d2ace(0x2fa)]),_0x41b8a3=this[_0x4d2ace(0x2fa)][_0x4d2ace(0x2e3)][_0x4d2ace(0x1b3)](_0x4fad48),{reply:_0x29334b,interaction:_0x5c53a7}=this[_0x4d2ace(0x206)](_0x283218[_0x4d2ace(0x2d0)]),_0x306661=this[_0x4d2ace(0x1fb)](_0x283218[_0x4d2ace(0x2d0)],_0x283218[_0x4d2ace(0x208)]),_0xc51f0a=void 0x0!==_0x283218[_0x4d2ace(0x208)]?[_0x29334b[_0x4d2ace(0x2df)][_0x283218[_0x4d2ace(0x208)]]]:_0x29334b[_0x4d2ace(0x2df)][_0x4d2ace(0x1f3)](_0x481fd0=>_0x4d2ace(0x1bb)==_0x481fd0[_0x4d2ace(0x26a)]),_0x41649c=_0xc51f0a[_0x4d2ace(0x23e)](_0x19e4e5=>_0x29334b[_0x4d2ace(0x2df)][_0x4d2ace(0x1e3)](_0x19e4e5));if(!_0x306661||_0x4d2ace(0x290)==_0x306661[_0x4d2ace(0x2ad)][_0x4d2ace(0x2cf)][_0x4d2ace(0x2d4)])return void _0x41649c[_0x4d2ace(0x264)](_0x5dea67=>_0x29334b[_0x4d2ace(0x27a)](_0x5dea67,_0x4d2ace(0x229)));_0x41649c[_0x4d2ace(0x264)](_0x1977b5=>_0x29334b[_0x4d2ace(0x27a)](_0x1977b5,_0x4d2ace(0x275)));const _0x42b283=_0x44190b({'editor':_0x198fae,'reply':_0x29334b,'interaction':_0x5c53a7,'groups':_0xc51f0a,'transform':!0x0,'documentCompare':_0x41b8a3,'documentCompareOptions':{'anchor':_0x4d2ace(0x1e7),'markDeletions':!0x1}});let _0x13f20a;_0x306661&&this[_0x4d2ace(0x22a)](_0x306661[_0x4d2ace(0x2ad)]),_0x198fae[_0x4d2ace(0x1f5)][_0x4d2ace(0x29e)](_0x5f149c=>{const _0x1c0400=_0x4d2ace;_0x13f20a=_0x5f149c[_0x1c0400(0x22e)];for(const _0x3e34ca of _0x42b283)_0x3e34ca[_0x1c0400(0x202)]=_0x198fae[_0x1c0400(0x1f5)][_0x1c0400(0x2a3)][_0x1c0400(0x2e6)],_0x5f149c[_0x1c0400(0x22e)][_0x1c0400(0x299)](_0x3e34ca),_0x198fae[_0x1c0400(0x1f5)][_0x1c0400(0x286)](_0x3e34ca);}),this[_0x4d2ace(0x205)][_0x4d2ace(0x279)](_0x13f20a,{'interactionId':_0x5c53a7['id'],'replyId':_0x29334b['id'],'indexes':_0x41649c[_0x4d2ace(0x23c)]()}),this[_0x4d2ace(0x276)](_0x29334b);}[_0x2c4a56(0x278)](_0x3cb7a5,_0xbfb1be){const _0x1526a6=_0x2c4a56,_0x1c9cfd=_0x40cd09(this[_0x1526a6(0x2fa)]),_0x302654=this[_0x1526a6(0x1fb)](_0x3cb7a5,_0xbfb1be),_0x2e5239=this[_0x1526a6(0x2fa)][_0x1526a6(0x2e3)][_0x1526a6(0x1b3)](_0x48b72c);if(!_0x302654)return void _0x2e5239[_0x1526a6(0x2e5)]();const {range:_0x3507d4,currentIndex:_0x2c248a,previousIndex:_0x45747e,nextIndex:_0x497460}=_0x302654;if(_0x1526a6(0x290)==_0x3507d4[_0x1526a6(0x2cf)][_0x1526a6(0x2d4)]){const {reply:_0x36c463}=this[_0x1526a6(0x206)](_0x3cb7a5);return _0x36c463[_0x1526a6(0x27a)](_0x2c248a,_0x1526a6(0x229)),void _0x2e5239[_0x1526a6(0x2e5)]();}if(this[_0x1526a6(0x207)]?.[_0x1526a6(0x2d0)]==_0x3cb7a5&&this[_0x1526a6(0x207)]?.[_0x1526a6(0x208)]==_0x2c248a)return;this[_0x1526a6(0x207)]={'replyId':_0x3cb7a5,'partIndex':_0x2c248a};const _0xc16f5e=new _0x5e61a5(_0x1c9cfd[_0x1526a6(0x284)],{'showDiff':this[_0x1526a6(0x25e)],'areActionsDisabled':!0x1,'miniToolbarConfig':{'showChanges':_0x1526a6(0x248)},'hideHeader':!0x0}),{reply:_0x5ba0de}=this[_0x1526a6(0x206)](_0x3cb7a5),_0x4b0efa=_0x2b2350({'editor':_0x1c9cfd,'changeGroups':[_0x5ba0de[_0x1526a6(0x2df)][_0x2c248a]],'documentContextContent':_0x5ba0de[_0x1526a6(0x25a)],'showDiff':this[_0x1526a6(0x25e)]});_0xc16f5e[_0x1526a6(0x231)]({'parts':_0x4b0efa,'renderingStrategy':_0x1526a6(0x288)});const _0x1d5d5f=_0x2c248a!==_0x45747e;this[_0x1526a6(0x22a)](_0x3507d4,!0x0),_0x2e5239[_0x1526a6(0x2d6)]({'index':_0x2c248a,'title':_0x1523b1(this[_0x1526a6(0x2fa)][_0x1526a6(0x284)],_0x1526a6(0x292),(_0x2c248a+0x1)[_0x1526a6(0x2dd)]()),'icon':_0x5e93f1,'mainView':_0xc16f5e,'showRotator':_0x1d5d5f,'showApplyButton':!0x0,'showSuggestButton':!0x0,'ranges':[_0x3507d4]}),this[_0x1526a6(0x2b3)][_0x1526a6(0x1f8)](_0x3cb7a5,_0x2c248a),this[_0x1526a6(0x21e)](_0xc16f5e,_0x1526a6(0x297),(_0x17e29e,{showDiff:_0x2ed248})=>{const _0x14cdf2=_0x1526a6;this[_0x14cdf2(0x25e)]=_0x2ed248;const {reply:_0x42afa2}=this[_0x14cdf2(0x206)](_0x3cb7a5),_0x4355b0=_0x2b2350({'editor':_0x1c9cfd,'changeGroups':[_0x42afa2[_0x14cdf2(0x2df)][_0x2c248a]],'documentContextContent':_0x42afa2[_0x14cdf2(0x25a)],'showDiff':_0x2ed248});_0xc16f5e[_0x14cdf2(0x231)]({'parts':_0x4355b0,'renderingStrategy':_0x14cdf2(0x288)});}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x221),()=>{const _0x1ea9d8=_0x1526a6;this[_0x1ea9d8(0x1b9)]({'replyId':_0x3cb7a5,'partIndex':_0x2c248a}),_0x1d5d5f?this[_0x1ea9d8(0x278)](_0x3cb7a5,_0x497460):_0x2e5239[_0x1ea9d8(0x2e5)]();}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x241),()=>{const _0x1f1158=_0x1526a6;this[_0x1f1158(0x280)]({'replyId':_0x3cb7a5,'partIndex':_0x2c248a}),_0x1d5d5f?this[_0x1f1158(0x278)](_0x3cb7a5,_0x497460):_0x2e5239[_0x1f1158(0x2e5)]();}),_0x1d5d5f&&(this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x2bc),()=>{const _0x35f78b=_0x1526a6;this[_0x35f78b(0x278)](_0x3cb7a5,_0x497460);}),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x2ba),()=>{const _0x236a33=_0x1526a6;this[_0x236a33(0x278)](_0x3cb7a5,_0x45747e);})),this[_0x1526a6(0x21e)](_0x2e5239,_0x1526a6(0x247),()=>{const _0x34fe3b=_0x1526a6;this[_0x34fe3b(0x2c1)](_0x2e5239),this[_0x34fe3b(0x2c1)](_0xc16f5e),this[_0x34fe3b(0x207)]=null;});}[_0x2c4a56(0x1fb)](_0x2c9baa,_0x573c24){const _0x3b964f=_0x2c4a56,_0x34f13d=_0x40cd09(this[_0x3b964f(0x2fa)]),{reply:_0x14c031,interaction:_0x51408a}=this[_0x3b964f(0x206)](_0x2c9baa),_0x34997e=_0x14c031[_0x3b964f(0x2df)][_0x3b964f(0x1f3)](_0xd21e85=>_0x3b964f(0x1bb)==_0xd21e85[_0x3b964f(0x26a)]),_0x10b880=_0x34997e[_0x3b964f(0x23e)](_0x139a30=>_0x14c031[_0x3b964f(0x2df)][_0x3b964f(0x1e3)](_0x139a30));void 0x0===_0x573c24&&(_0x573c24=_0x10b880[0x0]);const _0x567ce0=_0x10b880[_0x3b964f(0x1e3)](_0x573c24);if(-0x1==_0x567ce0)return null;const _0x113c59=0x0==_0x567ce0?_0x10b880[_0x10b880[_0x3b964f(0x1f0)]-0x1]:_0x10b880[_0x567ce0-0x1],_0xf72e3c=_0x567ce0==_0x10b880[_0x3b964f(0x1f0)]-0x1?_0x10b880[0x0]:_0x10b880[_0x567ce0+0x1],_0x58e215=_0x34997e[_0x567ce0],_0x1c8f2c=new _0x3d00cc([]),_0xb98c17=new _0x3d00cc([]);for(const _0x544504 of _0x58e215[_0x3b964f(0x1b4)])if(_0x3b964f(0x2b2)!=_0x544504[_0x3b964f(0x2b9)]&&_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x544504[_0x3b964f(0x1cd)][_0x3b964f(0x20c)](!0x0)),_0x3b964f(0x27c)!=_0x544504[_0x3b964f(0x2b9)]){const _0x49bdf6=_0x37f9bf(_0x4a244d=>_0x366774(_0x4a244d,_0x3b964f(0x2f3))==_0x544504['id'],_0x14c031[_0x3b964f(0x25a)],!0x0);_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x49bdf6[_0x3b964f(0x20c)](!0x0));}if(0x0==_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x1f0)]){if(_0x58e215[_0x3b964f(0x1b4)][0x0][_0x3b964f(0x2ff)]){const _0x241e01=_0xa2728e(_0x3b964f(0x2f3),_0x58e215[_0x3b964f(0x1b4)][0x0][_0x3b964f(0x2ff)],_0x14c031[_0x3b964f(0x25a)]);_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x294)](_0x241e01[_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x294)](_0x241e01[_0x3b964f(0x20c)](!0x0)),_0x241e01[_0x3b964f(0x2fb)]&&(_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x241e01[_0x3b964f(0x2fb)][_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x241e01[_0x3b964f(0x2fb)][_0x3b964f(0x20c)](!0x0)));}else{const _0x5ab2a2=_0x14c031[_0x3b964f(0x25a)][_0x3b964f(0x235)][0x0];if(!_0x5ab2a2)return null;_0x1c8f2c[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x5ab2a2[_0x3b964f(0x20c)](!0x0)),_0xb98c17[_0x3b964f(0x235)][_0x3b964f(0x22f)](_0x5ab2a2[_0x3b964f(0x20c)](!0x0));}}const _0x50b363=_0x51408a[_0x3b964f(0x2bd)](),_0x3f5e2a=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x50b363[_0x3b964f(0x1b8)]),_0x8d4862=_0x1007e6(_0x1c8f2c),_0x5da925=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x8d4862),_0x153af4=_0x34f13d[_0x3b964f(0x217)][_0x3b964f(0x2cd)](_0x8d4862),_0x52a5f2=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x1ca)](_0x5da925,0x0),_0x9b2790=_0x1007e6(_0xb98c17),_0x2a4414={'anchor':_0x52a5f2,'markDeletions':!0x1},_0x963b2f=_0x34f13d[_0x3b964f(0x2e3)][_0x3b964f(0x1b3)](_0x4fad48)[_0x3b964f(0x2e1)](_0x8d4862,_0x9b2790,_0x2a4414)[_0x3b964f(0x1fc)]();if(!_0x963b2f[_0x3b964f(0x1f0)])return null;_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x29e)](_0x515d7d=>{const _0x38e6bb=_0x3b964f;for(const _0x49ed5a of _0x963b2f)if(_0x38e6bb(0x2c7)==_0x49ed5a[_0x38e6bb(0x2b9)]){const _0x3e66d1=_0x49ed5a[_0x38e6bb(0x249)],_0x2d83a9=_0x49ed5a[_0x38e6bb(0x245)],_0x5f1495=new _0xf7d8c(_0x3e66d1,_0x2d83a9);_0x515d7d[_0x38e6bb(0x22e)][_0x38e6bb(0x299)](_0x5f1495),_0x34f13d[_0x38e6bb(0x1f5)][_0x38e6bb(0x286)](_0x5f1495);}else _0x38e6bb(0x2b0)!==_0x49ed5a[_0x38e6bb(0x2b9)]&&(_0x49ed5a[_0x38e6bb(0x202)]=null,_0x49ed5a[_0x38e6bb(0x1d4)]=!0x1,_0x515d7d[_0x38e6bb(0x22e)][_0x38e6bb(0x299)](_0x49ed5a),_0x34f13d[_0x38e6bb(0x1f5)][_0x38e6bb(0x286)](_0x49ed5a));});const _0xfd6ffa=_0x31f8ce(_0x34f13d,_0x963b2f,_0x5da925);_0xee9603(_0x34f13d[_0x3b964f(0x1f5)],_0xfd6ffa);const _0x3eee37=_0xfd6ffa[_0x3b964f(0x291)]()[_0x3b964f(0x237)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x176a52=_0xfd6ffa[_0x3b964f(0x291)]()[_0x3b964f(0x282)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x3ddd8d=[];let _0x4e72e9=_0x5da925,_0x18a0c7=_0x153af4;for(let _0x163192=0x0;_0x163192<_0x176a52[_0x3b964f(0x1f0)];_0x163192++){const _0x2af8b3=_0x4e72e9[_0x3b964f(0x269)]-_0x176a52[_0x163192];_0x3ddd8d[_0x163192]=_0x18a0c7[_0x3b964f(0x269)]-_0x2af8b3,_0x4e72e9=_0x4e72e9[_0x3b964f(0x2f5)](_0x176a52[_0x163192]),_0x18a0c7=_0x18a0c7[_0x3b964f(0x2f5)](_0x3ddd8d[_0x163192]);}const _0x2df56c=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2ea)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x153af4,_0x3eee37),_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x153af4,_0x3ddd8d)),_0x2e7c9c=_0x153af4[_0x3b964f(0x1ed)](0x0)[_0x3b964f(0x28d)](_0x144524),_0xe853e8=Array[_0x3b964f(0x1ea)](_0x3f5e2a[_0x3b964f(0x1ef)]())[_0x3b964f(0x1b5)](_0x1a9fb4=>_0x1a9fb4[_0x3b964f(0x28d)](_0x144524)==_0x2e7c9c)[_0x3b964f(0x2a8)](),_0x491fe2=_0x2df56c[_0x3b964f(0x237)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)](),_0x9fd9e8=_0x2df56c[_0x3b964f(0x282)][_0x3b964f(0x1bd)][_0x3b964f(0x23c)]();_0x491fe2[0x0]=_0xe853e8[0x0]+_0x491fe2[0x0],_0x9fd9e8[0x0]=_0xe853e8[0x0]+_0x9fd9e8[0x0];let _0x462e24=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2ea)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2bf)](),_0x491fe2),_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x210)](_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2bf)](),_0x9fd9e8));const _0x568d22=_0x34f13d[_0x3b964f(0x1f5)][_0x3b964f(0x2a3)][_0x3b964f(0x2c9)][_0x3b964f(0x1fc)](_0x50b363[_0x3b964f(0x2e6)]);for(const _0x416790 of _0x568d22)_0x462e24=_0x5bf0a5[_0x3b964f(0x1d2)](_0x462e24[_0x3b964f(0x2b7)](_0x416790));return{'range':_0x462e24,'previousIndex':_0x113c59,'nextIndex':_0xf72e3c,'currentIndex':_0x573c24};}[_0x2c4a56(0x265)](_0x394039){const _0x42a918=_0x2c4a56;if(!_0x394039[_0x42a918(0x2e3)][_0x42a918(0x26f)](_0x42a918(0x1dc)))return;const _0x170d7d=_0x394039[_0x42a918(0x1b1)][_0x42a918(0x1b3)](_0x42a918(0x2eb)),_0x1c9387=_0x394039[_0x42a918(0x1b1)][_0x42a918(0x1b3)](_0x42a918(0x25b));this[_0x42a918(0x21e)](_0x170d7d,_0x42a918(0x1cc),(_0x31aa69,_0x6789d5,_0x382254)=>{const _0x366479=_0x42a918,_0x1d5b99=this[_0x366479(0x205)][_0x366479(0x1b3)](_0x6789d5);if(!_0x1d5b99)return;const _0xd3c447=this[_0x366479(0x267)][_0x366479(0x2fd)](_0x1d5b99[_0x366479(0x1f9)])[_0x366479(0x2b6)](_0x1d5b99[_0x366479(0x2d0)]);_0x1d5b99[_0x366479(0x2be)][_0x366479(0x264)](_0x477bee=>_0xd3c447[_0x366479(0x27a)](_0x477bee,_0x366479(0x1bb))),this[_0x366479(0x205)][_0x366479(0x1e4)](_0x6789d5),this[_0x366479(0x205)][_0x366479(0x279)](_0x382254,_0x1d5b99);}),this[_0x42a918(0x21e)](_0x1c9387,_0x42a918(0x1cc),(_0x22e83c,_0x42a5c1,_0x2a12aa)=>{const _0x32d4a2=_0x42a918,_0x595244=this[_0x32d4a2(0x205)][_0x32d4a2(0x1b3)](_0x42a5c1);if(!_0x595244)return;const _0x52ae83=this[_0x32d4a2(0x267)][_0x32d4a2(0x2fd)](_0x595244[_0x32d4a2(0x1f9)])[_0x32d4a2(0x2b6)](_0x595244[_0x32d4a2(0x2d0)]);_0x595244[_0x32d4a2(0x2be)][_0x32d4a2(0x264)](_0x3607b8=>_0x52ae83[_0x32d4a2(0x27a)](_0x3607b8,_0x32d4a2(0x275))),this[_0x32d4a2(0x205)][_0x32d4a2(0x1e4)](_0x42a5c1),this[_0x32d4a2(0x205)][_0x32d4a2(0x279)](_0x2a12aa,_0x595244);});}async[_0x2c4a56(0x218)](_0x53c82e){const _0x33de7d=_0x2c4a56;this[_0x33de7d(0x2fa)][_0x33de7d(0x2e3)][_0x33de7d(0x1b3)](_0x48b72c)[_0x33de7d(0x2e5)](),this[_0x33de7d(0x2b3)][_0x33de7d(0x243)](_0x33de7d(0x288)),this[_0x33de7d(0x2b3)][_0x33de7d(0x2ae)](!0x0),await this[_0x33de7d(0x1c9)]();try{const _0xe727b6=this[_0x33de7d(0x2fa)][_0x33de7d(0x2e3)][_0x33de7d(0x1b3)](_0x44b1ea);this[_0x33de7d(0x27d)]('\x20'),_0xe727b6[_0x33de7d(0x2c2)][_0x33de7d(0x268)](_0x33de7d(0x214)),await this[_0x33de7d(0x2f2)](_0x53c82e);const {sessionId:_0x243da1}=this[_0x33de7d(0x1ce)][_0x33de7d(0x259)]();await this[_0x33de7d(0x267)][_0x33de7d(0x209)](_0x53c82e,_0x243da1),this[_0x33de7d(0x267)][_0x33de7d(0x23f)]()&&this[_0x33de7d(0x267)][_0x33de7d(0x304)](_0x1523b1(this[_0x33de7d(0x2fa)][_0x33de7d(0x284)],_0x33de7d(0x2f8)));}catch(_0x3836e4){console[_0x33de7d(0x2f9)](_0x33de7d(0x2ca),_0x3836e4);}finally{this[_0x33de7d(0x2b3)][_0x33de7d(0x243)](_0x33de7d(0x1d9)),this[_0x33de7d(0x2b3)][_0x33de7d(0x2ae)](!0x1);}}[_0x2c4a56(0x2f4)](_0x27c728){const _0x27d88b=_0x2c4a56;this[_0x27d88b(0x267)]['id']===_0x27c728&&this[_0x27d88b(0x2f2)]();}async[_0x2c4a56(0x1b0)](){const _0xd68cb9=_0x2c4a56,_0x38f9af=this[_0xd68cb9(0x1ce)][_0xd68cb9(0x2b8)]();this[_0xd68cb9(0x267)]?.[_0xd68cb9(0x22c)](_0x38f9af),this[_0xd68cb9(0x267)]?.[_0xd68cb9(0x304)](_0x1523b1(this[_0xd68cb9(0x2fa)][_0xd68cb9(0x284)],_0xd68cb9(0x2f8)));}[_0x2c4a56(0x1df)](){const _0x46002d=_0x2c4a56;this[_0x46002d(0x267)]?.[_0x46002d(0x1ee)]();}[_0x2c4a56(0x2fc)](){const _0x5f3656=_0x2c4a56;this[_0x5f3656(0x2b3)][_0x5f3656(0x2fc)]();}async[_0x2c4a56(0x1e9)](){const _0x2ae599=_0x2c4a56;await this[_0x2ae599(0x2f2)]();}async[_0x2c4a56(0x20e)]({message:_0x39785f,quickActionData:_0x1b09c8}){const _0x273ac4=_0x2c4a56;await this[_0x273ac4(0x212)]({'userMessage':_0x39785f,'quickActionData':_0x1b09c8});}[_0x2c4a56(0x20a)](){const _0x1042ff=_0x2c4a56,_0x52f641=this[_0x1042ff(0x2fa)][_0x1042ff(0x2c3)][_0x1042ff(0x1b3)](_0x1042ff(0x296));if(!_0x52f641)throw new _0x13f2ac(_0x1042ff(0x211),this);return _0x52f641;}async[_0x2c4a56(0x2f2)](_0xc8e3ff){const _0x39cb70=_0x2c4a56;try{this[_0x39cb70(0x2b3)][_0x39cb70(0x21b)](),await this[_0x39cb70(0x236)](_0xc8e3ff);}catch(_0x28bf19){_0xbcf11b(_0x39cb70(0x24f),_0x28bf19),this[_0x39cb70(0x267)]=void 0x0,this[_0x39cb70(0x2b3)][_0x39cb70(0x2c8)]();}}async[_0x2c4a56(0x236)](_0xf483ae){const _0x10b41c=_0x2c4a56,_0x814a4a=this[_0x10b41c(0x2fa)][_0x10b41c(0x2e3)][_0x10b41c(0x1b3)](_0x48b72c);let _0x2e5d4a;_0x814a4a[_0x10b41c(0x2d5)]&&_0x814a4a[_0x10b41c(0x2e5)](),_0xf483ae||!this[_0x10b41c(0x267)]?_0x2e5d4a=this[_0x10b41c(0x2fa)][_0x10b41c(0x2c3)][_0x10b41c(0x1b3)](_0x10b41c(0x1fa)):this[_0x10b41c(0x2b3)][_0x10b41c(0x2cb)]&&(_0x2e5d4a=this[_0x10b41c(0x267)][_0x10b41c(0x2f7)]['id']),await this[_0x10b41c(0x1c9)]();const _0x12e6a0=this[_0x10b41c(0x20a)](),_0x6198ac=_0xf483ae||_0x38bd85();this[_0x10b41c(0x267)]=new _0x2f446f({'connector':this[_0x10b41c(0x1f2)],'chatModels':this[_0x10b41c(0x295)],'selectedModelId':_0x2e5d4a,'conversationId':_0x6198ac,'group':_0x12e6a0,'getEditor':()=>_0x40cd09(this[_0x10b41c(0x2fa)])}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1dd),(_0x384115,_0x3399da)=>{const _0x7e1548=_0x10b41c;this[_0x7e1548(0x2b3)][_0x7e1548(0x274)](_0x3399da),this[_0x7e1548(0x2b3)][_0x7e1548(0x250)](),this[_0x7e1548(0x2b3)][_0x7e1548(0x25f)](),this[_0x7e1548(0x2b3)][_0x7e1548(0x261)](),_0xf483ae||(this[_0x7e1548(0x2b3)][_0x7e1548(0x2f6)](),this[_0x7e1548(0x267)]?.[_0x7e1548(0x304)](_0x1523b1(this[_0x7e1548(0x2fa)][_0x7e1548(0x284)],_0x7e1548(0x2f8))));}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2ab),(_0x321a5d,_0x48f06e)=>{const _0x26107e=_0x10b41c;this[_0x26107e(0x2b3)][_0x26107e(0x24c)](_0x48f06e[_0x26107e(0x220)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2c6),(_0x59d1be,_0x2b6480)=>{const _0x220ef8=_0x10b41c;this[_0x220ef8(0x2b3)][_0x220ef8(0x1f7)](_0x2b6480);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x272),()=>{const _0x291bb7=_0x10b41c;this[_0x291bb7(0x2b3)][_0x291bb7(0x1c2)]({'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x240),()=>{const _0x2dc194=_0x10b41c;this[_0x2dc194(0x2b3)][_0x2dc194(0x1c2)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x271),(_0x37948d,_0x4a4402)=>{const _0x4fca44=_0x10b41c;this[_0x4fca44(0x2b3)][_0x4fca44(0x21f)](_0x4a4402,{'isWebSearchEnabled':!0x0,'isReasoningEnabled':!0x1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1be),(_0x255ad8,_0x26630d)=>{const _0x8aa71=_0x10b41c;this[_0x8aa71(0x2b3)][_0x8aa71(0x21f)](_0x26630d,{'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x0});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x238),()=>{const _0x9165b3=_0x10b41c;this[_0x9165b3(0x2b3)][_0x9165b3(0x1de)]();}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2d8),async()=>{const _0x477bb8=_0x10b41c;await this[_0x477bb8(0x2b3)][_0x477bb8(0x302)]();}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1f1),(_0x18ab4f,_0xe7dce5)=>{const _0x4bcdc1=_0x10b41c;this[_0x4bcdc1(0x2b3)][_0x4bcdc1(0x1cb)](_0xe7dce5['id']);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x201),(_0xc45bf1,_0x2e09a4,_0x9922a2)=>{const _0x316c64=_0x10b41c;this[_0x316c64(0x27d)](_0x2e09a4,_0x9922a2);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1e6),(_0x598ee5,_0x7daf68)=>{const _0x2d83ac=_0x10b41c;_0x2d83ac(0x263)===_0x7daf68[_0x2d83ac(0x2b9)]?this[_0x2d83ac(0x2b3)][_0x2d83ac(0x20b)](_0x7daf68):this[_0x2d83ac(0x2b3)][_0x2d83ac(0x1c5)](_0x7daf68);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x20f),async(_0x1fd8c9,_0x44243a,_0x3fd7f1)=>{const _0x4faedd=_0x10b41c;await this[_0x4faedd(0x28b)]({'reply':_0x44243a,'changeGroups':_0x3fd7f1});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x233),(_0x5462e7,{reply:_0x2cf2d8,index:_0x4bff0c,state:_0x446f30})=>{const _0x4ea1b9=_0x10b41c;this[_0x4ea1b9(0x2b3)][_0x4ea1b9(0x289)]({'id':_0x2cf2d8['id'],'index':_0x4bff0c,'state':_0x446f30});}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2e0),(_0x512ebd,_0x51784d)=>{const _0x1984a3=_0x10b41c;if(this[_0x1984a3(0x2b3)][_0x1984a3(0x2ce)](_0x51784d[_0x1984a3(0x262)],_0x51784d[_0x1984a3(0x2f0)]),_0x1984a3(0x273)===_0x51784d[_0x1984a3(0x262)][_0x1984a3(0x2b9)]){const _0x4096ff=[..._0x40cd09(this[_0x1984a3(0x2fa)])[_0x1984a3(0x1f5)][_0x1984a3(0x2a3)][_0x1984a3(0x273)][_0x1984a3(0x1d1)]()];this[_0x1984a3(0x1ce)][_0x1984a3(0x2dc)](_0x4096ff,_0x1984a3(0x21d)+this[_0x1984a3(0x267)]?.['id']);}}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x266),(_0x35abbe,_0x2c6643)=>{const _0x35df4b=_0x10b41c;this[_0x35df4b(0x2b3)][_0x35df4b(0x246)](_0x2c6643[_0x35df4b(0x281)]),_0x35df4b(0x1c6)==_0x2c6643[_0x35df4b(0x281)]&&this[_0x35df4b(0x1df)](),_0x35df4b(0x273)===_0x2c6643[_0x35df4b(0x2b9)]&&this[_0x35df4b(0x1ce)][_0x35df4b(0x306)](_0x35df4b(0x21d)+this[_0x35df4b(0x267)]?.['id']);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x308),(_0x134942,_0x463dee)=>{const _0x1df380=_0x10b41c;this[_0x1df380(0x2b3)][_0x1df380(0x260)](_0x463dee[_0x1df380(0x262)][_0x1df380(0x281)],_0x463dee[_0x1df380(0x2f0)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x28a),(_0x595b7f,_0x4aabb9)=>{const _0x40882f=_0x10b41c;this[_0x40882f(0x2b3)][_0x40882f(0x2e2)](_0x4aabb9[_0x40882f(0x1f6)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1fd),(_0xcf881f,_0x20af4d)=>{const _0x1a9908=_0x10b41c;this[_0x1a9908(0x2b3)][_0x1a9908(0x1eb)](_0x20af4d[_0x1a9908(0x2cc)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1f4),(_0x23341b,_0x4075bf)=>{const _0x1b1eee=_0x10b41c;this[_0x1b1eee(0x2b3)][_0x1b1eee(0x256)](_0x4075bf[_0x1b1eee(0x298)],_0x4075bf[_0x1b1eee(0x1e0)],_0x4075bf[_0x1b1eee(0x2c5)],_0x4075bf[_0x1b1eee(0x1c0)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x1c8),(_0x339239,_0x3cc2b3)=>{const _0x18aa06=_0x10b41c;this[_0x18aa06(0x2b3)][_0x18aa06(0x1bf)](_0x3cc2b3[_0x18aa06(0x298)],_0x3cc2b3[_0x18aa06(0x2a5)],_0x3cc2b3[_0x18aa06(0x2a4)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x223),(_0x30cfec,_0x5a9d51)=>{const _0x5a3812=_0x10b41c;this[_0x5a3812(0x2b3)][_0x5a3812(0x20d)](_0x5a9d51);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x285),(_0x2ccba9,_0xe449ff)=>{const _0x3a754d=_0x10b41c;this[_0x3a754d(0x2b3)][_0x3a754d(0x1d8)](_0xe449ff[_0x3a754d(0x2f7)],_0xe449ff[_0x3a754d(0x216)]);}),this[_0x10b41c(0x267)]['on'](_0x10b41c(0x2f9),(_0x1a9f30,{error:_0x5cbc06,interactionId:_0x5d40de,fileName:_0x47acdc,url:_0xd56a21,sourceId:_0x48ef32,sourceLabel:_0x391208})=>{const _0x48e496=_0x10b41c,_0x3d15a4=_0x5d40de?_0x5d40de+':'+_0x38bd85():_0x38bd85();_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x29f))?this[_0x48e496(0x2b3)][_0x48e496(0x1d0)]({'staticMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x1d5)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x2e7))||_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x24f))?(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2d7)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x258))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x28e),_0x47acdc),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x1db))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2fe),_0xd56a21),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x307))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x24d)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x2a1))?this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x253)),'id':_0x3d15a4}):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x26e))?(_0x48ef32&&this[_0x48e496(0x2b3)][_0x48e496(0x2bb)](_0x48ef32),this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2ef),_0x391208||_0x48e496(0x1e0)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):_0x5cbc06[_0x48e496(0x29a)][_0x48e496(0x252)](_0x48e496(0x24e))?(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x2db)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06)):(this[_0x48e496(0x2b3)][_0x48e496(0x1cf)]({'errorMessage':_0x1523b1(this[_0x48e496(0x2fa)][_0x48e496(0x284)],_0x48e496(0x1fe)),'id':_0x3d15a4}),this[_0x48e496(0x2e4)](_0x5cbc06));}),await this[_0x10b41c(0x267)][_0x10b41c(0x1e5)](this[_0x10b41c(0x2fa)][_0x10b41c(0x2c3)][_0x10b41c(0x1b3)](_0x10b41c(0x1b7))),_0xf483ae||await this[_0x10b41c(0x267)][_0x10b41c(0x237)]();}async[_0x2c4a56(0x212)]({userMessage:_0x420648,quickActionData:_0x7ec0d}){const _0xe3a38c=_0x2c4a56;if(!this[_0xe3a38c(0x267)])throw new _0x13f2ac(_0xe3a38c(0x28f));this[_0xe3a38c(0x267)][_0xe3a38c(0x21c)]()&&await this[_0xe3a38c(0x267)][_0xe3a38c(0x22b)](this[_0xe3a38c(0x1ce)][_0xe3a38c(0x259)]()),this[_0xe3a38c(0x267)]['id']&&this[_0xe3a38c(0x267)][_0xe3a38c(0x293)]&&await this[_0xe3a38c(0x267)][_0xe3a38c(0x22d)]({'userMessage':_0x420648,'quickActionData':_0x7ec0d}),this[_0xe3a38c(0x2d1)]();}[_0x2c4a56(0x2d1)](){const _0xae9582=_0x2c4a56,_0x1a6f55=_0x40cd09(this[_0xae9582(0x2fa)])[_0xae9582(0x1f5)],_0x22e596=Array[_0xae9582(0x1ea)](_0x1a6f55[_0xae9582(0x2c0)][_0xae9582(0x222)](_0x3a377a));_0x1a6f55[_0xae9582(0x29e)](_0x5e2541=>{const _0x8fd253=_0xae9582;_0x22e596[_0x8fd253(0x264)](_0x23ec37=>_0x5e2541[_0x8fd253(0x29d)](_0x23ec37));});}[_0x2c4a56(0x1e8)](){const _0x535e53=_0x2c4a56;console[_0x535e53(0x23b)](_0x535e53(0x230));}[_0x2c4a56(0x257)](_0x5b8dab){const _0x3b53b9=_0x2c4a56;this[_0x3b53b9(0x2b3)][_0x3b53b9(0x1c3)](_0x5b8dab);}[_0x2c4a56(0x2e4)](_0x167251){const _0x18f637=_0x2c4a56;_0xbcf11b(_0x167251[_0x18f637(0x29a)]);}[_0x2c4a56(0x24b)](_0x1c6a61){const _0x33be45=_0x2c4a56;this[_0x33be45(0x267)]?.[_0x33be45(0x1d7)](_0x1c6a61);}[_0x2c4a56(0x2b5)](){const _0x1bde47=_0x2c4a56;this[_0x1bde47(0x267)]?.[_0x1bde47(0x1d3)]();}[_0x2c4a56(0x2a9)](){const _0x4d971d=_0x2c4a56;this[_0x4d971d(0x267)]?.[_0x4d971d(0x27b)]();}[_0x2c4a56(0x206)](_0x2aaf40){const _0x3de75b=_0x2c4a56,[_0x342ee7,_0x18f512]=_0x2aaf40[_0x3de75b(0x1b6)](':'),_0x272283=this[_0x3de75b(0x267)][_0x3de75b(0x2fd)](_0x342ee7),_0x47a4cc=_0x272283[_0x3de75b(0x2b6)](_0x18f512);return{'interaction':_0x272283,'reply':_0x47a4cc};}[_0x2c4a56(0x22a)](_0x2a8dfc,_0x28bc19=!0x1){const _0x527121=_0x2c4a56,_0x3dd663=_0x40cd09(this[_0x527121(0x2fa)]),_0x3085a8={'target':_0x3dd663[_0x527121(0x1b2)][_0x527121(0x2c2)][_0x527121(0x21a)][_0x527121(0x2da)](_0x3dd663[_0x527121(0x1b2)][_0x527121(0x2a6)][_0x527121(0x29b)](_0x2a8dfc)),'viewportOffset':{'top':0x96,'left':0x0,'bottom':0x32,'right':0x0},'ancestorOffset':0x14,'alignToTop':_0x28bc19};_0x28bc19&&(_0x3085a8[_0x527121(0x215)]=!0x0),_0x59c6ad(_0x3085a8);}[_0x2c4a56(0x27d)](_0x30f391,_0x1ef6d9=!0x1){const _0x3f82a0=_0x2c4a56;this[_0x3f82a0(0x2b3)][_0x3f82a0(0x201)](_0x30f391||_0x1523b1(this[_0x3f82a0(0x2fa)][_0x3f82a0(0x284)],_0x3f82a0(0x1ff)),_0x1ef6d9);}async[_0x2c4a56(0x28b)]({reply:_0x218b65,changeGroups:_0x592f38,renderingStrategy:_0x420936}){const _0x24e052=_0x2c4a56,{id:_0x9a0c77,isDone:_0x1a5e52,type:_0x388c9c,parsedContent:_0x369217}=_0x218b65;if(_0x24e052(0x213)===_0x388c9c){const _0x480c57=_0x40cd09(this[_0x24e052(0x2fa)]),_0x1aa1a3=_0x2b2350({'editor':_0x480c57,'showDiff':this[_0x24e052(0x2b3)][_0x24e052(0x1ec)],'changeGroups':_0x592f38,'documentContextContent':_0x218b65[_0x24e052(0x25a)]});await this[_0x24e052(0x2b3)][_0x24e052(0x1c1)]({'id':_0x9a0c77,'parts':_0x1aa1a3,'renderingStrategy':_0x420936,'isDone':_0x1a5e52});}else _0x24e052(0x263)===_0x388c9c&&await this[_0x24e052(0x2b3)][_0x24e052(0x1e1)]({'id':_0x9a0c77,'parsedContent':_0x369217,'renderingStrategy':_0x420936,'isDone':_0x1a5e52});_0x1a5e52&&_0x218b65[_0x24e052(0x1ba)][_0x24e052(0x1f0)]>0x0&&this[_0x24e052(0x2b3)][_0x24e052(0x251)](_0x9a0c77,_0x218b65[_0x24e052(0x1ba)]);}async[_0x2c4a56(0x1c9)](){const _0x2c97f4=_0x2c4a56,_0x1296ce=this[_0x2c97f4(0x267)]?.[_0x2c97f4(0x270)];_0x1296ce&&(_0x1296ce[_0x2c97f4(0x2e8)](),this[_0x2c97f4(0x2b3)][_0x2c97f4(0x2af)](_0x1296ce));}async[_0x2c4a56(0x1e2)](){const _0x5444ff=_0x2c4a56,_0x4bb465=this[_0x5444ff(0x267)]?.[_0x5444ff(0x270)];if(_0x4bb465){for await(const _0x4b8f0d of _0x4bb465[_0x5444ff(0x2a7)])await this[_0x5444ff(0x28b)]({'reply':_0x4b8f0d,'changeGroups':_0x4b8f0d[_0x5444ff(0x2df)],'renderingStrategy':_0x5444ff(0x288)});}}[_0x2c4a56(0x276)](_0x398468){const _0x1aa8d0=_0x2c4a56,_0x3cde4d={'positiveCount':_0x398468[_0x1aa8d0(0x2df)][_0x1aa8d0(0x1f3)](_0xedf94a=>_0x1aa8d0(0x275)===_0xedf94a[_0x1aa8d0(0x26a)])[_0x1aa8d0(0x1f0)],'totalCount':_0x398468[_0x1aa8d0(0x2df)][_0x1aa8d0(0x1f0)]},_0x472ce9=this[_0x1aa8d0(0x267)][_0x1aa8d0(0x2fd)](_0x398468[_0x1aa8d0(0x1f9)])[_0x1aa8d0(0x1da)];this[_0x1aa8d0(0x1f2)][_0x1aa8d0(0x200)](this[_0x1aa8d0(0x267)]['id'],_0x472ce9,_0x3cde4d);}}function _0x5d6c(){const _0x288cf1=['AI_CHAT_GENERIC_ERROR','AI_CHAT_UNTITLED_CONVERSATION','upsertAIChatRating','setConversationTitle','baseVersion','88KasHXK','Liked\x20response','_batchToChanges','getInteractionAndReplyById','_previewedChangeGroup','partIndex','load','getGroupId','addFeedItemAIReply','cloneNode','updateCapabilities','sendMessage','replyContentUpdated','createPositionFromPath','ai-chat-missing-channel-id','_handleUIUserMessage','modification-delta','chat','alignToTop','isDisabled','data','loadConversation','323667VrWxWu','domConverter','enableControls','isCurrentDocumentInContext','ai-conversation-','listenTo','addFeedInteractionHeader','isUploadInProgress','applySuggestion','getMarkersGroup','capabilitiesUpdated','rejectSuggestion','addUrlToContext','7VFhjcX','492ZFeMwM','3533826iFgtdl','outdated','_scrollToSuggestionRange','updateCurrentDocumentInContext','addSelectionToContext','handleUserInteraction','batch','push','Showing\x20conversation\x20history...','updateContent','addResourceToContext','replyChangeGroupStateUpdated','afterInit','children','_handleStartConversation','start','interactionStarted','abortPromptStream','ai-chat-controller-mouse-over','log','slice','1296010FmCamu','map','isCurrentDocumentInConversation','reasoningStarted','insertSuggestion','AITabs','setFeedItemRenderingStrategy','requires','howMany','removeContextItem','dialogClosed','full','sourcePosition','ready','_removeFromContext','setIsUploadInProgress','AI_CHAT_CONTEXT_INVALID_DATA','ai-chat-resource-load-failed','ai-chat-conversation-start-failed','resetMessageInput','updateFeedItemAIReplySources','startsWith','AI_CHAT_CONTEXT_UNSUPPORTED_TYPE','_applyOperationsAsSuggestions','add','populateSourceResourceBalloon','_setIsMaximized','ai-chat-file-upload-failed','getDocumentData','documentContextContent','redo','resizeTabs','240275JlCiWR','_balloonShowDiff','clearPendingContextUI','setContextItemLoading','clearConversationContextUI','contextItem','text-delta','forEach','_integrateEditor','contextItemRemoved','activeConversation','activateTab','maxOffset','state','48580hVKHUg','AIConnector','DocumentCompare','ai-chat-source-resources-load-failed','has','lastInteraction','webSearchFinished','webSearchStarted','selection','createConversation','accepted','_updateRatings','resizedTabs','_openBalloonFor','set','setChangeGroupState','toggleReasoning','new','updateConversationTitle','264308dDsgrN','Disliked\x20response','_insertSuggestion','uiId','end','mouseLeaveSuggestion','locale','modelSelected','applyOperation','rejected','static','updateFeedItemAIReplySuggestionPartState','contextSent','_updateReplyContent','4uAFbti','getAttribute','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_FILE','ai-chat-controller-no-active-conversation','$graveyard','getFirstRange','AI_BALLOON_HEADER_TITLE','isStarted','unshift','_aiChatModels','collaboration.channelId','toggleSuggestionDisplayMode','sourceId','addOperation','message','toViewRange','query','removeMarker','change','ai-request-aborted','ai.chat.models.displayedModels','ai-chat-context-unsupported-type','3PogMVy','document','isInContext','resourceId','mapper','replies','getPath','_toggleReasoning','TrackChangesEditing','uploadProgressChanged','resize','range','toggleLoadingSkeleton','stopInteraction','marker','addFileToContext','removed','_aiChatUi','1087686kBWMBG','_toggleWebSearch','getReply','getTransformedByOperation','getSelectionText','type','showPrevious','closeSourceResourceBalloon','showNext','getDocumentContext','indexes','getRoot','markers','stopListening','view','config','dislike','resources','interactionCreated','remove','disableControls','history','Failed\x20to\x20load\x20conversation','isModelAvailable','options','parse','addContextItem','root','replyId','_removeAISelectionMarkers','AIChatController','showChangeInText','rootName','isOpen','open','AI_CHAT_UNABLE_TO_START_CONVERSATION','interactionFinished','isPremiumPlugin','viewRangeToDom','AI_CHAT_RESOURCE_LOAD_FAILED','showFakeVisualSelection','toString','addFilesToContext','changeGroups','contextItemAdded','getDiff','setConversationContext','plugins','_logError','close','version','ai-chat-conversation-init-failed','stop','addDocumentToContext','createRange','undo','isOfficialPlugin','mouseOverSuggestion','editors','AI_CHAT_CONTEXT_UNABLE_TO_LOAD_RESOURCES','isLoading','selectModel','_startConversationSafely','data-id','handleRemovedConversation','getChildAtOffset','resetConversationTitle','selectedModel','AI_CHAT_CONTEXT_CURRENT_DOCUMENT','error','context','nextSibling','focusPromptInput','getInteraction','AI_CHAT_CONTEXT_UNABLE_TO_UPLOAD_URL','anchorId','AIEditing','sendUserMessage','finishInteraction','resource','addCurrentDocumentToContext','like','hideFakeVisualSelection','ai-chat-context-invalid-data','contextItemLoadingEnded','addSelectionToChatContext','commands','editing','get','changes','find','split','ai.chat.context','content','_applySuggestion','sources','pending','pluginName','path','reasoningFinished','updateResourceState','uid','updateFeedItemAIReplySuggestionContent','setLoadingMessage','setIsMaximized','AIChatUI','addFeedItemAISuggestion','current-document','loadSourceResources','resourceStateChanged','_stopLastInteraction','createPositionAt','removeFeedInteraction','revert','node','_aiEditing','addFeedItemError','addFeedItemStaticMessage','getRanges','_createFromRanges','toggleWebSearch','isDocumentOperation','AI_CHAT_ABORTED_MESSAGE','setModel','removeFromContext','setSelectedModel','streaming','messageId','ai-chat-url-upload-failed','Undo','conversationInitialized','startInteraction','removeSelectionFromChatContext','source','updateFeedItemAIReplyContent','_flushLastInteractionUI','indexOf','delete','init','replyCreated','main','_showConversationHistory','startConversation','from','setAddContextOptions','showDiff','getChild','removeSelectionFromContext','getChildren','length','interactionDestroyed','_aiConnector','filter','sourceResourcesLoaded','model','contextItems','addFeedItemUserMessage','scrollFeedToSuggestion','interactionId','ai.chat.models.defaultModelId','_getDocumentRangeForReplyChanges','getOperations','addContextOptionsChanged'];_0x5d6c=function(){return _0x288cf1;};return _0x5d6c();}
|
package/src/aichat/aichatui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x8335a5=_0xfb73;(function(_0x4c3fcb,_0x3b55d6){const _0x1eabc5=_0xfb73,_0x17ebfe=_0x4c3fcb();while(!![]){try{const _0x2195ed=-parseInt(_0x1eabc5(0x18b))/0x1*(parseInt(_0x1eabc5(0x1ae))/0x2)+parseInt(_0x1eabc5(0x1aa))/0x3+parseInt(_0x1eabc5(0x1d5))/0x4+-parseInt(_0x1eabc5(0x182))/0x5+-parseInt(_0x1eabc5(0x17b))/0x6*(parseInt(_0x1eabc5(0x1ef))/0x7)+parseInt(_0x1eabc5(0x1ba))/0x8+parseInt(_0x1eabc5(0x1b7))/0x9*(parseInt(_0x1eabc5(0x1e0))/0xa);if(_0x2195ed===_0x3b55d6)break;else _0x17ebfe['push'](_0x17ebfe['shift']());}catch(_0x92e46e){_0x17ebfe['push'](_0x17ebfe['shift']());}}}(_0x10fe,0x88bf9));import{ContextPlugin as _0x2fe490}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x34a077}from'ckeditor5/src/utils.js';import{AIChatView as _0x314bd8}from'./ui/aichatview.js';import{AITabs as _0x445f08}from'../aitabs/aitabs.js';import{getTranslation as _0x5d54c6}from'../aicore/utils/common-translations.js';function _0xfb73(_0x4ff307,_0x35930d){const _0x10fe4e=_0x10fe();return _0xfb73=function(_0xfb7343,_0xa0b90a){_0xfb7343=_0xfb7343-0x179;let _0x5daae1=_0x10fe4e[_0xfb7343];return _0x5daae1;},_0xfb73(_0x4ff307,_0x35930d);}import{IconAIChat as _0x1583eb}from'ckeditor5/src/icons.js';import{AIChatFeedInteractionHeaderView as _0x3c9dd0}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x34f880}from'./utils/promisequeue.js';function _0x10fe(){const _0x73012=['chatHeader','destroy','setReasoning','addFeedItemUserMessage','showResizeButton','filter','trackChanges','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','updateFeedInteractionHeader','conversation-start','queueEmptyPromise','addFeedItemAIReply','setLoadingMessage','error-message','availableModels','ai-reply','from','setAddContextOptions','3560564nxScui','removeContextItem','setConversationTitle','showDiff','scrollToSuggestion','get','requires','ai.chat.models.modelSelectorAlwaysVisible','setIsMaximized','isBusy','addContextItem','10XHZjET','disableControls','updateCapabilities','updateFeedItemAIReplySuggestionContent','isVisible','isPremiumPlugin','<p>','AIChatUI','addTab','isWebSearchEnabled','abort','isReasoningEnabled','clear','_animateConversationTitle','areActionsDisabled','658679PASpCi','enableModelSelector','isDone','pluginName','enqueue','markItemAsDone','removeFeedInteraction','children','config','addFeedInteractionHeader','AITabs','isDisabled','stopInteraction','resetConversationTitle','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','stopAutoScroll','user-message','chatControls','contextItems','getItemIds','resetMessageInput','AI_CHAT_WELCOME_MESSAGE','toggleLoadingSkeleton','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','displayedPrompt','values','clearPendingContextUI','updateSuggestionPartState','value','scrollFeedToSuggestion','toggleSuggestionDisplayMode','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','addFeedItemError','interactionId','plugins','startsWith','isMaximized','setModelList','startInteraction','updateSuggestionItem','_getLoadingMessage','_view','ai-suggestion-reply','setInputPlaceholder','isLoading','isPending','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','6uURYPC','setWebSearch','addItem','userMessage','locale','createConversation','updateFeedItemAIReplySuggestionPartState','4660655fLdwtJ','_getInputPlaceholder','disableModelSelector','context','enableControls','_isTrackChangesCommandValueBound','startAutoScroll','feedItemRenderingStrategy','commands','452xhMnKF','chatFeed','ai.availableReplyActions','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','markFeedItemAsDone','options','updateFeedItemAIReplyContent','_interactionPromiseResolver','isOfficialPlugin','closeSourceResourceBalloon','setSelectedModel','quickActionData','setContextItemLoading','populateSourceResourceBalloon','capabilities','clearConversationContextUI','AI_CHAT_HEADING','label','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','focusPromptInput','isModelAvailable','finishInteraction','updateWebSources','setModel','delegate','addFeedItemAISuggestion','_promiseQueue','length','</p>','renderingStrategy','remove','553503vSEBpe','forEach','find','streaming','3622ZWPYiL','updateFeedItemAIReplySources','chat','last','removeItem','_titleAnimationInterval','then','setConversationContext','setIsUploadInProgress','7432119OZSmiR','isTrackChangesOn','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','4035904LFSHDt','set','addFeedItemStaticMessage','bind','updateReplyItem','interaction-header','updateResourceState','view','setFeedItemRenderingStrategy'];_0x10fe=function(){return _0x73012;};return _0x10fe();}import{AI_CHAT_UI_EVENT_NAMES as _0x52ff38}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x5a994f}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x2fe490{static get[_0x8335a5(0x1db)](){return[_0x445f08];}[_0x8335a5(0x218)];static get[_0x8335a5(0x1f2)](){const _0x1043a7=_0x8335a5;return _0x1043a7(0x1e7);}static get[_0x8335a5(0x193)](){return!0x0;}static get[_0x8335a5(0x1e5)](){return!0x0;}[_0x8335a5(0x189)]=_0x8335a5(0x1ad);[_0x8335a5(0x1d8)]=!0x0;[_0x8335a5(0x1a5)];[_0x8335a5(0x192)];[_0x8335a5(0x1b3)]=void 0x0;[_0x8335a5(0x187)]=!0x1;constructor(_0x3dccc2){const _0x445fc0=_0x8335a5;super(_0x3dccc2);const _0x12fd09=this[_0x445fc0(0x185)][_0x445fc0(0x211)][_0x445fc0(0x1da)](_0x445fc0(0x1f9));this[_0x445fc0(0x1bb)](_0x445fc0(0x1de),!0x1),this[_0x445fc0(0x1a5)]=new _0x34f880(),this[_0x445fc0(0x218)]=new _0x314bd8(this[_0x445fc0(0x185)][_0x445fc0(0x17f)],_0x12fd09[_0x445fc0(0x1c7)]),this[_0x445fc0(0x218)][_0x445fc0(0x1a3)](..._0x52ff38)['to'](this),this[_0x445fc0(0x218)]['on'](_0x445fc0(0x20d),(_0x400555,{showDiff:_0x5675e9})=>{const _0x53248e=_0x445fc0;this[_0x53248e(0x1d8)]=_0x5675e9;}),_0x12fd09[_0x445fc0(0x1c1)][_0x445fc0(0x1e8)]({'id':_0x445fc0(0x1b0),'buttonLabel':_0x5d54c6(this[_0x445fc0(0x185)][_0x445fc0(0x17f)],_0x445fc0(0x19b)),'buttonIcon':_0x1583eb,'order':0x0,'content':this[_0x445fc0(0x218)]}),this[_0x445fc0(0x218)][_0x445fc0(0x200)][_0x445fc0(0x1bd)](_0x445fc0(0x21b))['to'](this,_0x445fc0(0x1de),_0x40c7d5=>_0x40c7d5),this[_0x445fc0(0x218)][_0x445fc0(0x18c)][_0x445fc0(0x1bd)](_0x445fc0(0x179))['to'](this,_0x445fc0(0x1de),_0x45671a=>_0x45671a),this[_0x445fc0(0x218)][_0x445fc0(0x200)][_0x445fc0(0x21a)](this[_0x445fc0(0x183)]()),this[_0x445fc0(0x1bd)](_0x445fc0(0x19f))['to'](this[_0x445fc0(0x218)][_0x445fc0(0x200)],_0x445fc0(0x19f));}[_0x8335a5(0x1c4)](){const _0x3c2901=_0x8335a5;super[_0x3c2901(0x1c4)](),this[_0x3c2901(0x1b3)]&&clearInterval(this[_0x3c2901(0x1b3)]);}[_0x8335a5(0x180)](_0x190e0b){const _0x419135=_0x8335a5;this[_0x419135(0x218)][_0x419135(0x18c)][_0x419135(0x1ec)](),this[_0x419135(0x218)][_0x419135(0x200)][_0x419135(0x1f0)](),this[_0x419135(0x218)][_0x419135(0x200)][_0x419135(0x214)](_0x190e0b[_0x419135(0x1d1)],!this[_0x419135(0x185)][_0x419135(0x1f7)][_0x419135(0x1da)](_0x419135(0x1dc))),this[_0x419135(0x1bc)]({'id':_0x419135(0x1cc),'staticMessage':_0x5d54c6(this[_0x419135(0x185)][_0x419135(0x17f)],_0x419135(0x204))});}[_0x8335a5(0x1bc)]({id:_0x5c8e13,staticMessage:_0x34ae5e}){const _0x2e8dda=_0x8335a5;this[_0x2e8dda(0x218)][_0x2e8dda(0x18c)][_0x2e8dda(0x17d)](_0x2e8dda(0x1d2),{'id':_0x5c8e13,'initialContent':_0x2e8dda(0x1e6)+_0x34ae5e+_0x2e8dda(0x1a7)});}[_0x8335a5(0x1c6)](_0x39067f){const _0x32212b=_0x8335a5,_0x935db3=_0x39067f[_0x32212b(0x196)]?.[_0x32212b(0x207)]||_0x39067f[_0x32212b(0x17e)];this[_0x32212b(0x218)][_0x32212b(0x18c)][_0x32212b(0x17d)](_0x32212b(0x1ff),{'contextItems':Array[_0x32212b(0x1d3)](_0x39067f[_0x32212b(0x201)][_0x32212b(0x208)]()),'initialContent':_0x32212b(0x1e6)+_0x935db3+_0x32212b(0x1a7),'id':_0x39067f['id']});}[_0x8335a5(0x20f)]({errorMessage:_0x253060,id:_0x4c281a}){const _0x57af3c=_0x8335a5;this[_0x57af3c(0x218)][_0x57af3c(0x18c)][_0x57af3c(0x17d)](_0x57af3c(0x1d0),{'initialContent':_0x57af3c(0x1e6)+_0x253060+_0x57af3c(0x1a7),'id':_0x4c281a});}[_0x8335a5(0x1ce)](_0x58e923){const _0x2a6ca0=_0x8335a5;return this[_0x2a6ca0(0x1a5)][_0x2a6ca0(0x1f3)](async()=>{const _0x2c3cb1=_0x2a6ca0;this[_0x2c3cb1(0x218)][_0x2c3cb1(0x18c)][_0x2c3cb1(0x17d)](_0x2c3cb1(0x1d2),{'id':_0x58e923[_0x2c3cb1(0x210)]+':'+_0x58e923['id']}),this[_0x2c3cb1(0x1cf)](null);});}async[_0x8335a5(0x1a4)](_0x3a0fe6){const _0x37bf7e=_0x8335a5,_0x3887e2=_0x5a994f(this[_0x37bf7e(0x185)]);if(_0x3887e2){const _0x558508=_0x3887e2[_0x37bf7e(0x18a)][_0x37bf7e(0x1da)](_0x37bf7e(0x1c9));_0x558508&&!this[_0x37bf7e(0x187)]&&(this[_0x37bf7e(0x187)]=!0x0,this[_0x37bf7e(0x218)][_0x37bf7e(0x18c)][_0x37bf7e(0x1bd)](_0x37bf7e(0x1b8))['to'](_0x558508,_0x37bf7e(0x20b)));}return this[_0x37bf7e(0x1a5)][_0x37bf7e(0x1f3)](async()=>{const _0x24ce96=_0x37bf7e;this[_0x24ce96(0x218)][_0x24ce96(0x18c)][_0x24ce96(0x17d)](_0x24ce96(0x219),{'id':_0x3a0fe6[_0x24ce96(0x210)]+':'+_0x3a0fe6['id'],'areActionsDisabled':_0x3a0fe6[_0x24ce96(0x1ee)],'showDiff':this[_0x24ce96(0x1d8)],'dropdownConfig':this[_0x24ce96(0x185)][_0x24ce96(0x1f7)][_0x24ce96(0x1da)](_0x24ce96(0x18d))}),this[_0x24ce96(0x1cf)](null);});}[_0x8335a5(0x1f8)](_0x3b61fe,_0x1c41d4){const _0x4c7ea8=_0x8335a5,_0x2226a7=this[_0x4c7ea8(0x218)][_0x4c7ea8(0x18c)][_0x4c7ea8(0x1f6)][_0x4c7ea8(0x1b1)];if(_0x2226a7 instanceof _0x3c9dd0)return this[_0x4c7ea8(0x218)][_0x4c7ea8(0x18c)][_0x4c7ea8(0x1f6)][_0x4c7ea8(0x1a9)](_0x2226a7),void this[_0x4c7ea8(0x218)][_0x4c7ea8(0x18c)][_0x4c7ea8(0x17d)](_0x4c7ea8(0x1bf),{'id':_0x3b61fe['id'],'capabilities':{'isWebSearchEnabled':_0x2226a7[_0x4c7ea8(0x199)][_0x4c7ea8(0x1e9)]||_0x1c41d4[_0x4c7ea8(0x1e9)],'isReasoningEnabled':_0x2226a7[_0x4c7ea8(0x199)][_0x4c7ea8(0x1eb)]||_0x1c41d4[_0x4c7ea8(0x1eb)]}});this[_0x4c7ea8(0x218)][_0x4c7ea8(0x18c)][_0x4c7ea8(0x17d)](_0x4c7ea8(0x1bf),{'id':_0x3b61fe['id'],'capabilities':_0x1c41d4});}[_0x8335a5(0x1cb)](_0x3353be){const _0x1c18da=_0x8335a5,_0x48a7e0=this[_0x1c18da(0x218)][_0x1c18da(0x18c)][_0x1c18da(0x1f6)][_0x1c18da(0x1ac)](_0x6262de=>_0x6262de[_0x1c18da(0x190)]['id']==_0x3353be['id']&&_0x6262de instanceof _0x3c9dd0);_0x48a7e0&&_0x48a7e0[_0x1c18da(0x1bb)](_0x1c18da(0x1e4),_0x3353be[_0x1c18da(0x1e4)]);}async[_0x8335a5(0x191)](_0x605ab){const _0x5a7615=_0x8335a5,_0x4ce29f=_0x605ab[_0x5a7615(0x1a8)]||this[_0x5a7615(0x189)];return this[_0x5a7615(0x1a5)][_0x5a7615(0x1f3)](async _0x285628=>{const _0x3e5d0b=_0x5a7615;await this[_0x3e5d0b(0x218)][_0x3e5d0b(0x18c)][_0x3e5d0b(0x1be)]({..._0x605ab,'abortSignal':_0x285628,'renderingStrategy':_0x4ce29f}),_0x605ab[_0x3e5d0b(0x1f1)]&&this[_0x3e5d0b(0x18f)](_0x605ab['id']);});}[_0x8335a5(0x1af)](_0x11fd6b,_0x4878a2){const _0x4efeba=_0x8335a5;this[_0x4efeba(0x218)][_0x4efeba(0x18c)][_0x4efeba(0x1a1)](_0x11fd6b,_0x4878a2);}async[_0x8335a5(0x1e3)](_0x5d8fd8){const _0x5101e8=_0x8335a5,_0x49a5a8=_0x5d8fd8[_0x5101e8(0x1a8)]||this[_0x5101e8(0x189)];return this[_0x5101e8(0x1a5)][_0x5101e8(0x1f3)](async _0x504512=>{const _0x50c911=_0x5101e8;await this[_0x50c911(0x218)][_0x50c911(0x18c)][_0x50c911(0x216)]({..._0x5d8fd8,'abortSignal':_0x504512,'renderingStrategy':_0x49a5a8}),_0x5d8fd8[_0x50c911(0x1f1)]&&this[_0x50c911(0x18f)](_0x5d8fd8['id']);});}[_0x8335a5(0x181)](_0x2f43c5){const _0x5a0b92=_0x8335a5;this[_0x5a0b92(0x218)][_0x5a0b92(0x18c)][_0x5a0b92(0x20a)](_0x2f43c5);}[_0x8335a5(0x18f)](_0x3e16ae){const _0x59cc11=_0x8335a5;this[_0x59cc11(0x218)][_0x59cc11(0x18c)][_0x59cc11(0x1f4)](_0x3e16ae);}[_0x8335a5(0x1f5)](_0x407cbc){const _0x81393f=_0x8335a5;this[_0x81393f(0x218)][_0x81393f(0x18c)][_0x81393f(0x202)]()[_0x81393f(0x1c8)](_0x412760=>_0x412760[_0x81393f(0x212)](_0x407cbc))[_0x81393f(0x1ab)](_0x557a73=>this[_0x81393f(0x218)][_0x81393f(0x18c)][_0x81393f(0x1b2)](_0x557a73));}[_0x8335a5(0x215)](){const _0x38cd6f=_0x8335a5;this[_0x38cd6f(0x1cf)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x38cd6f(0x218)][_0x38cd6f(0x200)][_0x38cd6f(0x184)](!this[_0x38cd6f(0x185)][_0x38cd6f(0x1f7)][_0x38cd6f(0x1da)](_0x38cd6f(0x1dc))),this[_0x38cd6f(0x1de)]=!0x0,this[_0x38cd6f(0x218)][_0x38cd6f(0x18c)][_0x38cd6f(0x188)]();}[_0x8335a5(0x1fb)](_0x402836){const _0x130209=_0x8335a5;this[_0x130209(0x1a5)][_0x130209(0x1ea)](),this[_0x130209(0x218)][_0x130209(0x18c)][_0x130209(0x202)]()[_0x130209(0x1c8)](_0x3a610c=>_0x3a610c[_0x130209(0x212)](_0x402836['id']))[_0x130209(0x1ab)](_0x247469=>this[_0x130209(0x18f)](_0x247469)),this[_0x130209(0x1de)]=!0x1,this[_0x130209(0x218)][_0x130209(0x18c)][_0x130209(0x1fe)]();}async[_0x8335a5(0x1a0)](){const _0x1df4d2=_0x8335a5;return this[_0x1df4d2(0x1a5)][_0x1df4d2(0x1cd)][_0x1df4d2(0x1b4)](()=>{const _0x27271a=_0x1df4d2;this[_0x27271a(0x1de)]=!0x1,this[_0x27271a(0x218)][_0x27271a(0x18c)][_0x27271a(0x1fe)]();});}[_0x8335a5(0x1df)](_0x26052b,_0x3522f6){const _0x1590b7=_0x8335a5;this[_0x1590b7(0x218)][_0x1590b7(0x200)][_0x1590b7(0x1df)](_0x26052b,_0x3522f6);}[_0x8335a5(0x1d6)](_0x3c3491){const _0x1caeac=_0x8335a5;this[_0x1caeac(0x218)][_0x1caeac(0x200)][_0x1caeac(0x1d6)](_0x3c3491);}[_0x8335a5(0x197)](_0x36be1d,_0x2b63c1){const _0x936a35=_0x8335a5;this[_0x936a35(0x218)][_0x936a35(0x200)][_0x936a35(0x197)](_0x36be1d,_0x2b63c1);}[_0x8335a5(0x1b6)](_0x527e86){const _0x53d8ab=_0x8335a5;this[_0x53d8ab(0x218)][_0x53d8ab(0x200)][_0x53d8ab(0x1b6)](_0x527e86);}[_0x8335a5(0x1b5)](_0xbb230d){const _0x5a947a=_0x8335a5;this[_0x5a947a(0x218)][_0x5a947a(0x200)][_0x5a947a(0x1b5)](_0xbb230d);}[_0x8335a5(0x209)](){const _0x319bfe=_0x8335a5;this[_0x319bfe(0x218)][_0x319bfe(0x200)][_0x319bfe(0x209)]();}[_0x8335a5(0x19a)](){const _0x1c6a86=_0x8335a5;this[_0x1c6a86(0x218)][_0x1c6a86(0x200)][_0x1c6a86(0x19a)]();}[_0x8335a5(0x1c0)](_0x5d065a,_0x4666fb,_0x1c0df1){const _0x3bc747=_0x8335a5;this[_0x3bc747(0x218)][_0x3bc747(0x200)][_0x3bc747(0x1c0)](_0x5d065a,_0x4666fb,_0x1c0df1);}[_0x8335a5(0x203)](){const _0x53d446=_0x8335a5;this[_0x53d446(0x218)][_0x53d446(0x200)][_0x53d446(0x203)](),this[_0x53d446(0x218)][_0x53d446(0x200)][_0x53d446(0x21a)](this[_0x53d446(0x183)]());}[_0x8335a5(0x1d4)](_0xab27df){const _0xf5b3ab=_0x8335a5;this[_0xf5b3ab(0x218)][_0xf5b3ab(0x200)][_0xf5b3ab(0x1d4)](_0xab27df);}[_0x8335a5(0x1e2)](_0x358f2d){const _0x534106=_0x8335a5;this[_0x534106(0x218)][_0x534106(0x200)][_0x534106(0x17c)](_0x358f2d[_0x534106(0x1e9)]),this[_0x534106(0x218)][_0x534106(0x200)][_0x534106(0x1c5)](_0x358f2d[_0x534106(0x1eb)]),this[_0x534106(0x218)][_0x534106(0x200)][_0x534106(0x21a)](this[_0x534106(0x183)](_0x358f2d));}[_0x8335a5(0x195)](_0x38b56d,_0x61e6cc){const _0x586148=_0x8335a5;this[_0x586148(0x218)][_0x586148(0x200)][_0x586148(0x1a2)](_0x38b56d),_0x61e6cc&&this[_0x586148(0x218)][_0x586148(0x200)][_0x586148(0x184)](!0x1);}[_0x8335a5(0x1c2)](_0x471fc4){const _0xf7b249=_0x8335a5;this[_0xf7b249(0x189)]=_0x471fc4;}[_0x8335a5(0x205)](_0x5b39e5){const _0x13ec81=_0x8335a5;this[_0x13ec81(0x218)][_0x13ec81(0x18c)][_0x13ec81(0x205)](_0x5b39e5);}[_0x8335a5(0x1fc)](){const _0x439f8e=_0x8335a5;this[_0x439f8e(0x1d7)](_0x5d54c6(this[_0x439f8e(0x185)][_0x439f8e(0x17f)],_0x439f8e(0x19b)));}[_0x8335a5(0x1d7)](_0x57abe9,_0x4d7e99=!0x1){const _0x1692d7=_0x8335a5;if(_0x4d7e99&&!_0x34a077()&&_0x57abe9[_0x1692d7(0x1a6)])return this[_0x1692d7(0x218)][_0x1692d7(0x1c3)][_0x1692d7(0x19c)]='',void this[_0x1692d7(0x1ed)](_0x57abe9);this[_0x1692d7(0x218)][_0x1692d7(0x1c3)][_0x1692d7(0x19c)]=_0x57abe9;}[_0x8335a5(0x1cf)](_0x9c3bac){const _0x2b658c=_0x8335a5,_0x47d639=this[_0x2b658c(0x217)](_0x9c3bac);this[_0x2b658c(0x218)][_0x2b658c(0x18c)][_0x2b658c(0x1cf)](_0x47d639);}[_0x8335a5(0x1ed)](_0xa0e11d){const _0x2e3c4c=_0x8335a5;let _0x4c2e1d=0x0;clearInterval(this[_0x2e3c4c(0x1b3)]),this[_0x2e3c4c(0x1b3)]=setInterval(()=>{const _0x28abbf=_0x2e3c4c;this[_0x28abbf(0x218)][_0x28abbf(0x1c3)][_0x28abbf(0x19c)]=this[_0x28abbf(0x218)][_0x28abbf(0x1c3)][_0x28abbf(0x19c)]+_0xa0e11d[_0x4c2e1d],_0x4c2e1d++,_0x4c2e1d===_0xa0e11d[_0x28abbf(0x1a6)]&&clearInterval(this[_0x28abbf(0x1b3)]);},0x1e);}[_0x8335a5(0x1dd)](_0x1dccab){const _0x4e4afa=_0x8335a5;this[_0x4e4afa(0x218)][_0x4e4afa(0x1c3)][_0x4e4afa(0x213)]=_0x1dccab;}[_0x8335a5(0x217)](_0x58e0f0){const _0x3cd335=_0x8335a5;return _0x58e0f0?_0x58e0f0[_0x3cd335(0x1e9)]&&_0x58e0f0[_0x3cd335(0x1eb)]?_0x5d54c6(this[_0x3cd335(0x185)][_0x3cd335(0x17f)],_0x3cd335(0x19d)):_0x58e0f0[_0x3cd335(0x1e9)]?_0x5d54c6(this[_0x3cd335(0x185)][_0x3cd335(0x17f)],_0x3cd335(0x1fd)):_0x58e0f0[_0x3cd335(0x1eb)]?_0x5d54c6(this[_0x3cd335(0x185)][_0x3cd335(0x17f)],_0x3cd335(0x17a)):_0x5d54c6(this[_0x3cd335(0x185)][_0x3cd335(0x17f)],_0x3cd335(0x1ca)):'';}[_0x8335a5(0x183)](_0x4c3bdb){const _0x4fe9ce=_0x8335a5;return _0x4c3bdb?_0x4c3bdb[_0x4fe9ce(0x1e9)]&&_0x4c3bdb[_0x4fe9ce(0x1eb)]?_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x206)):_0x4c3bdb[_0x4fe9ce(0x1e9)]?_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x1b9)):_0x4c3bdb[_0x4fe9ce(0x1eb)]?_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x20e)):_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x18e)):_0x5d54c6(this[_0x4fe9ce(0x185)][_0x4fe9ce(0x17f)],_0x4fe9ce(0x18e));}[_0x8335a5(0x198)](_0x5bd901,_0x182478,_0x5ba364,_0x49f5bc){const _0x20b03a=_0x8335a5;this[_0x20b03a(0x218)][_0x20b03a(0x198)](_0x5bd901,_0x182478,_0x5ba364,_0x49f5bc);}[_0x8335a5(0x194)](_0x1df26b){const _0x57c2cf=_0x8335a5;this[_0x57c2cf(0x218)][_0x57c2cf(0x194)](_0x1df26b);}[_0x8335a5(0x19e)](){const _0x31bfee=_0x8335a5;this[_0x31bfee(0x218)][_0x31bfee(0x200)][_0x31bfee(0x19e)]();}[_0x8335a5(0x20c)](_0x252b94,_0x35911a){const _0x215b6d=_0x8335a5;this[_0x215b6d(0x218)][_0x215b6d(0x18c)][_0x215b6d(0x1d9)](_0x252b94,_0x35911a);}[_0x8335a5(0x1e1)](){const _0x14ea8d=_0x8335a5;this[_0x14ea8d(0x218)][_0x14ea8d(0x200)][_0x14ea8d(0x1fa)]=!0x0;}[_0x8335a5(0x186)](){const _0x5cc749=_0x8335a5;this[_0x5cc749(0x218)][_0x5cc749(0x200)][_0x5cc749(0x1fa)]=!0x1;}}
|
|
23
|
+
const _0xa384c0=_0x1b70;(function(_0x5e1099,_0x1a57a4){const _0xaa5233=_0x1b70,_0x3460ed=_0x5e1099();while(!![]){try{const _0x2872fc=parseInt(_0xaa5233(0x215))/0x1*(-parseInt(_0xaa5233(0x1d9))/0x2)+-parseInt(_0xaa5233(0x25f))/0x3+parseInt(_0xaa5233(0x230))/0x4*(parseInt(_0xaa5233(0x1df))/0x5)+-parseInt(_0xaa5233(0x212))/0x6+parseInt(_0xaa5233(0x1c5))/0x7+-parseInt(_0xaa5233(0x264))/0x8*(parseInt(_0xaa5233(0x205))/0x9)+-parseInt(_0xaa5233(0x242))/0xa*(-parseInt(_0xaa5233(0x1f8))/0xb);if(_0x2872fc===_0x1a57a4)break;else _0x3460ed['push'](_0x3460ed['shift']());}catch(_0x4b73c0){_0x3460ed['push'](_0x3460ed['shift']());}}}(_0x44f0,0xc146d));import{ContextPlugin as _0x3d32e1}from'ckeditor5/src/core.js';import{_isMotionReduced as _0x461e7a}from'ckeditor5/src/utils.js';import{AIChatView as _0x20a1a8}from'./ui/aichatview.js';import{AITabs as _0x529d51}from'../aitabs/aitabs.js';import{getTranslation as _0x5aef7e}from'../aicore/utils/common-translations.js';import{IconAIChat as _0x384bbe}from'ckeditor5/src/icons.js';function _0x44f0(){const _0x49e6c0=['startAutoScroll','setIsUploadInProgress','streaming','803224RXvybp','setSelectedModel','stopAutoScroll','isDone','stopInteraction','1489985OEcTbi','addFeedItemAISuggestion','updateFeedInteractionHeader','setIsMaximized','populateSourceResourceBalloon','ai-suggestion-reply','setModelList','plugins','pluginName','startsWith','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH','conversation-start','length','updateFeedItemAIReplySuggestionPartState','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH_REASONING','feedItemRenderingStrategy','user-message','ai-reply','AIChatUI','AI_CHAT_WELCOME_MESSAGE','315346GORzZi','setModel','clearPendingContextUI','addTab','children','abort','145cgYAmh','setConversationTitle','AI_CHAT_FEED_LOADING_MESSAGE_REGULAR','_interactionPromiseResolver','interactionId','destroy','addItem','filter','availableModels','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REGULAR','isMaximized','userMessage','isWebSearchEnabled','toggleSuggestionDisplayMode','addContextItem','setLoadingMessage','chatFeed','updateReplyItem','removeFeedInteraction','</p>','_animateConversationTitle','disableControls','AI_CHAT_FEED_LOADING_MESSAGE_REASONING','quickActionData','markItemAsDone','11MokrTV','markFeedItemAsDone','updateFeedItemAIReplyContent','addFeedItemUserMessage','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_REASONING','_getInputPlaceholder','_isTrackChangesCommandValueBound','resetConversationTitle','areActionsDisabled','then','_view','isVisible','setConversationContext','135cMhfVX','isOfficialPlugin','closeSourceResourceBalloon','showResizeButton','enableModelSelector','_titleAnimationInterval','removeItem','queueEmptyPromise','values','AI_CHAT_FEED_LOADING_MESSAGE_WEBSEARCH_REASONING','addFeedInteractionHeader','setReasoning','chat','3804132EVWPQG','config','getItemIds','1sQwXxq','addFeedItemAIReply','removeContextItem','updateSuggestionItem','startInteraction','_getLoadingMessage','scrollToSuggestion','showDiff','_promiseQueue','clearConversationContextUI','context','isModelAvailable','updateCapabilities','commands','enqueue','find','setContextItemLoading','setFeedItemRenderingStrategy','focusPromptInput','from','error-message','<p>','AI_CHAT_PROMPT_INPUT_PLACEHOLDER_WEBSEARCH','bind','enableControls','clear','isDisabled','118596EgaBVB','trackChanges','label','setInputPlaceholder','renderingStrategy','locale','AITabs','value','interaction-header','updateSuggestionPartState','set','toggleLoadingSkeleton','disableModelSelector','updateFeedItemAIReplySuggestionContent','createConversation','view','get','ai.availableReplyActions','22509230HzMwCS','setAddContextOptions','remove','updateResourceState','isLoading','updateFeedItemAIReplySources','delegate','requires','forEach','isBusy','last','options','chatControls','finishInteraction','setWebSearch','displayedPrompt','isPending','contextItems','isReasoningEnabled','chatHeader','scrollFeedToSuggestion','addFeedItemStaticMessage','AI_CHAT_HEADING','resetMessageInput','addFeedItemError','updateWebSources','capabilities','isTrackChangesOn','isPremiumPlugin','702594JByJUK','ai.chat.models.modelSelectorAlwaysVisible'];_0x44f0=function(){return _0x49e6c0;};return _0x44f0();}function _0x1b70(_0x199757,_0x8dbd43){const _0x44f0ee=_0x44f0();return _0x1b70=function(_0x1b70dc,_0x378e11){_0x1b70dc=_0x1b70dc-0x1c2;let _0x2a425b=_0x44f0ee[_0x1b70dc];return _0x2a425b;},_0x1b70(_0x199757,_0x8dbd43);}import{AIChatFeedInteractionHeaderView as _0x5d9f77}from'./ui/feed/aichatfeedinteractionheaderview.js';import{PromiseQueue as _0x387e61}from'./utils/promisequeue.js';import{AI_CHAT_UI_EVENT_NAMES as _0x3f54a5}from'./utils/eventnames.js';import'../../theme/aichat/aichat.css';import{getEditorFromContext as _0x19ab48}from'../aicore/utils/geteditorfromcontext.js';export class AIChatUI extends _0x3d32e1{static get[_0xa384c0(0x249)](){return[_0x529d51];}[_0xa384c0(0x202)];static get[_0xa384c0(0x1cd)](){const _0x36b7df=_0xa384c0;return _0x36b7df(0x1d7);}static get[_0xa384c0(0x206)](){return!0x0;}static get[_0xa384c0(0x25e)](){return!0x0;}[_0xa384c0(0x1d4)]=_0xa384c0(0x263);[_0xa384c0(0x21c)]=!0x0;[_0xa384c0(0x21d)];[_0xa384c0(0x1e2)];[_0xa384c0(0x20a)]=void 0x0;[_0xa384c0(0x1fe)]=!0x1;constructor(_0x3d71f0){const _0x516d30=_0xa384c0;super(_0x3d71f0);const _0x476ea5=this[_0x516d30(0x21f)][_0x516d30(0x1cc)][_0x516d30(0x240)](_0x516d30(0x236));this[_0x516d30(0x23a)](_0x516d30(0x24b),!0x1),this[_0x516d30(0x21d)]=new _0x387e61(),this[_0x516d30(0x202)]=new _0x20a1a8(this[_0x516d30(0x21f)][_0x516d30(0x235)],_0x476ea5[_0x516d30(0x208)]),this[_0x516d30(0x202)][_0x516d30(0x248)](..._0x3f54a5)['to'](this),this[_0x516d30(0x202)]['on'](_0x516d30(0x1ec),(_0xdffe85,{showDiff:_0x3abb0a})=>{const _0xcc08c5=_0x516d30;this[_0xcc08c5(0x21c)]=_0x3abb0a;}),_0x476ea5[_0x516d30(0x23f)][_0x516d30(0x1dc)]({'id':_0x516d30(0x211),'buttonLabel':_0x5aef7e(this[_0x516d30(0x21f)][_0x516d30(0x235)],_0x516d30(0x258)),'buttonIcon':_0x384bbe,'order':0x0,'content':this[_0x516d30(0x202)]}),this[_0x516d30(0x202)][_0x516d30(0x24e)][_0x516d30(0x22c)](_0x516d30(0x246))['to'](this,_0x516d30(0x24b),_0x9e7fc2=>_0x9e7fc2),this[_0x516d30(0x202)][_0x516d30(0x1ef)][_0x516d30(0x22c)](_0x516d30(0x252))['to'](this,_0x516d30(0x24b),_0x5ea0b9=>_0x5ea0b9),this[_0x516d30(0x202)][_0x516d30(0x24e)][_0x516d30(0x233)](this[_0x516d30(0x1fd)]()),this[_0x516d30(0x22c)](_0x516d30(0x220))['to'](this[_0x516d30(0x202)][_0x516d30(0x24e)],_0x516d30(0x220));}[_0xa384c0(0x1e4)](){const _0x53e3ca=_0xa384c0;super[_0x53e3ca(0x1e4)](),this[_0x53e3ca(0x20a)]&&clearInterval(this[_0x53e3ca(0x20a)]);}[_0xa384c0(0x23e)](_0x184093){const _0x4ea481=_0xa384c0;this[_0x4ea481(0x202)][_0x4ea481(0x1ef)][_0x4ea481(0x22e)](),this[_0x4ea481(0x202)][_0x4ea481(0x24e)][_0x4ea481(0x209)](),this[_0x4ea481(0x202)][_0x4ea481(0x24e)][_0x4ea481(0x1cb)](_0x184093[_0x4ea481(0x1e7)],!this[_0x4ea481(0x21f)][_0x4ea481(0x213)][_0x4ea481(0x240)](_0x4ea481(0x260))),this[_0x4ea481(0x257)]({'id':_0x4ea481(0x1d0),'staticMessage':_0x5aef7e(this[_0x4ea481(0x21f)][_0x4ea481(0x235)],_0x4ea481(0x1d8))});}[_0xa384c0(0x257)]({id:_0x33f49d,staticMessage:_0xb5e5ed}){const _0xbf7c67=_0xa384c0;this[_0xbf7c67(0x202)][_0xbf7c67(0x1ef)][_0xbf7c67(0x1e5)](_0xbf7c67(0x1d6),{'id':_0x33f49d,'initialContent':_0xbf7c67(0x22a)+_0xb5e5ed+_0xbf7c67(0x1f2)});}[_0xa384c0(0x1fb)](_0x310aec){const _0x493e93=_0xa384c0,_0x52879c=_0x310aec[_0x493e93(0x1f6)]?.[_0x493e93(0x251)]||_0x310aec[_0x493e93(0x1ea)];this[_0x493e93(0x202)][_0x493e93(0x1ef)][_0x493e93(0x1e5)](_0x493e93(0x1d5),{'contextItems':Array[_0x493e93(0x228)](_0x310aec[_0x493e93(0x253)][_0x493e93(0x20d)]()),'initialContent':_0x493e93(0x22a)+_0x52879c+_0x493e93(0x1f2),'id':_0x310aec['id']});}[_0xa384c0(0x25a)]({errorMessage:_0x3a8f6b,id:_0x26cdd5}){const _0x5e3760=_0xa384c0;this[_0x5e3760(0x202)][_0x5e3760(0x1ef)][_0x5e3760(0x1e5)](_0x5e3760(0x229),{'initialContent':_0x5e3760(0x22a)+_0x3a8f6b+_0x5e3760(0x1f2),'id':_0x26cdd5});}[_0xa384c0(0x216)](_0x1abcbf){const _0x4f7e8b=_0xa384c0;return this[_0x4f7e8b(0x21d)][_0x4f7e8b(0x223)](async()=>{const _0x268ece=_0x4f7e8b;this[_0x268ece(0x202)][_0x268ece(0x1ef)][_0x268ece(0x1e5)](_0x268ece(0x1d6),{'id':_0x1abcbf[_0x268ece(0x1e3)]+':'+_0x1abcbf['id']}),this[_0x268ece(0x1ee)](null);});}async[_0xa384c0(0x1c6)](_0x595ac5){const _0x157ef6=_0xa384c0,_0x946b8e=_0x19ab48(this[_0x157ef6(0x21f)]);if(_0x946b8e){const _0x413ab9=_0x946b8e[_0x157ef6(0x222)][_0x157ef6(0x240)](_0x157ef6(0x231));_0x413ab9&&!this[_0x157ef6(0x1fe)]&&(this[_0x157ef6(0x1fe)]=!0x0,this[_0x157ef6(0x202)][_0x157ef6(0x1ef)][_0x157ef6(0x22c)](_0x157ef6(0x25d))['to'](_0x413ab9,_0x157ef6(0x237)));}return this[_0x157ef6(0x21d)][_0x157ef6(0x223)](async()=>{const _0x15c6a3=_0x157ef6;this[_0x15c6a3(0x202)][_0x15c6a3(0x1ef)][_0x15c6a3(0x1e5)](_0x15c6a3(0x1ca),{'id':_0x595ac5[_0x15c6a3(0x1e3)]+':'+_0x595ac5['id'],'areActionsDisabled':_0x595ac5[_0x15c6a3(0x200)],'showDiff':this[_0x15c6a3(0x21c)],'dropdownConfig':this[_0x15c6a3(0x21f)][_0x15c6a3(0x213)][_0x15c6a3(0x240)](_0x15c6a3(0x241))}),this[_0x15c6a3(0x1ee)](null);});}[_0xa384c0(0x20f)](_0x3ed2a7,_0x39be7d){const _0xd05749=_0xa384c0,_0x35f6af=this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1dd)][_0xd05749(0x24c)];if(_0x35f6af instanceof _0x5d9f77)return this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1dd)][_0xd05749(0x244)](_0x35f6af),void this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1e5)](_0xd05749(0x238),{'id':_0x3ed2a7['id'],'capabilities':{'isWebSearchEnabled':_0x35f6af[_0xd05749(0x25c)][_0xd05749(0x1eb)]||_0x39be7d[_0xd05749(0x1eb)],'isReasoningEnabled':_0x35f6af[_0xd05749(0x25c)][_0xd05749(0x254)]||_0x39be7d[_0xd05749(0x254)]}});this[_0xd05749(0x202)][_0xd05749(0x1ef)][_0xd05749(0x1e5)](_0xd05749(0x238),{'id':_0x3ed2a7['id'],'capabilities':_0x39be7d});}[_0xa384c0(0x1c7)](_0xf9a825){const _0x47a5bb=_0xa384c0,_0x35df38=this[_0x47a5bb(0x202)][_0x47a5bb(0x1ef)][_0x47a5bb(0x1dd)][_0x47a5bb(0x224)](_0x44c1b2=>_0x44c1b2[_0x47a5bb(0x24d)]['id']==_0xf9a825['id']&&_0x44c1b2 instanceof _0x5d9f77);_0x35df38&&_0x35df38[_0x47a5bb(0x23a)](_0x47a5bb(0x203),_0xf9a825[_0x47a5bb(0x203)]);}async[_0xa384c0(0x1fa)](_0x69e857){const _0x4bbec8=_0xa384c0,_0x536b7c=_0x69e857[_0x4bbec8(0x234)]||this[_0x4bbec8(0x1d4)];return this[_0x4bbec8(0x21d)][_0x4bbec8(0x223)](async _0x2ad151=>{const _0x464f22=_0x4bbec8;await this[_0x464f22(0x202)][_0x464f22(0x1ef)][_0x464f22(0x1f0)]({..._0x69e857,'abortSignal':_0x2ad151,'renderingStrategy':_0x536b7c}),_0x69e857[_0x464f22(0x1c3)]&&this[_0x464f22(0x1f9)](_0x69e857['id']);});}[_0xa384c0(0x247)](_0x1ee557,_0x557e35){const _0x5f2209=_0xa384c0;this[_0x5f2209(0x202)][_0x5f2209(0x1ef)][_0x5f2209(0x25b)](_0x1ee557,_0x557e35);}async[_0xa384c0(0x23d)](_0x45e9b5){const _0x405d04=_0xa384c0,_0x247857=_0x45e9b5[_0x405d04(0x234)]||this[_0x405d04(0x1d4)];return this[_0x405d04(0x21d)][_0x405d04(0x223)](async _0x1814eb=>{const _0x35f168=_0x405d04;await this[_0x35f168(0x202)][_0x35f168(0x1ef)][_0x35f168(0x218)]({..._0x45e9b5,'abortSignal':_0x1814eb,'renderingStrategy':_0x247857}),_0x45e9b5[_0x35f168(0x1c3)]&&this[_0x35f168(0x1f9)](_0x45e9b5['id']);});}[_0xa384c0(0x1d2)](_0x5bfa12){const _0x530ae1=_0xa384c0;this[_0x530ae1(0x202)][_0x530ae1(0x1ef)][_0x530ae1(0x239)](_0x5bfa12);}[_0xa384c0(0x1f9)](_0x15aae8){const _0x1e5879=_0xa384c0;this[_0x1e5879(0x202)][_0x1e5879(0x1ef)][_0x1e5879(0x1f7)](_0x15aae8);}[_0xa384c0(0x1f1)](_0x2b9361){const _0x591596=_0xa384c0;this[_0x591596(0x202)][_0x591596(0x1ef)][_0x591596(0x214)]()[_0x591596(0x1e6)](_0x2700d1=>_0x2700d1[_0x591596(0x1ce)](_0x2b9361))[_0x591596(0x24a)](_0x5478e6=>this[_0x591596(0x202)][_0x591596(0x1ef)][_0x591596(0x20b)](_0x5478e6));}[_0xa384c0(0x219)](){const _0x2f9f6e=_0xa384c0;this[_0x2f9f6e(0x1ee)]({'isWebSearchEnabled':!0x1,'isReasoningEnabled':!0x1}),this[_0x2f9f6e(0x202)][_0x2f9f6e(0x24e)][_0x2f9f6e(0x23c)](!this[_0x2f9f6e(0x21f)][_0x2f9f6e(0x213)][_0x2f9f6e(0x240)](_0x2f9f6e(0x260))),this[_0x2f9f6e(0x24b)]=!0x0,this[_0x2f9f6e(0x202)][_0x2f9f6e(0x1ef)][_0x2f9f6e(0x261)]();}[_0xa384c0(0x1c4)](_0x5145c2){const _0x49a667=_0xa384c0;this[_0x49a667(0x21d)][_0x49a667(0x1de)](),this[_0x49a667(0x202)][_0x49a667(0x1ef)][_0x49a667(0x214)]()[_0x49a667(0x1e6)](_0x547947=>_0x547947[_0x49a667(0x1ce)](_0x5145c2['id']))[_0x49a667(0x24a)](_0x5d3266=>this[_0x49a667(0x1f9)](_0x5d3266)),this[_0x49a667(0x24b)]=!0x1,this[_0x49a667(0x202)][_0x49a667(0x1ef)][_0x49a667(0x1c2)]();}async[_0xa384c0(0x24f)](){const _0x49deba=_0xa384c0;return this[_0x49deba(0x21d)][_0x49deba(0x20c)][_0x49deba(0x201)](()=>{const _0x5763e3=_0x49deba;this[_0x5763e3(0x24b)]=!0x1,this[_0x5763e3(0x202)][_0x5763e3(0x1ef)][_0x5763e3(0x1c2)]();});}[_0xa384c0(0x1ed)](_0x5b26cd,_0x1475ed){const _0x337758=_0xa384c0;this[_0x337758(0x202)][_0x337758(0x24e)][_0x337758(0x1ed)](_0x5b26cd,_0x1475ed);}[_0xa384c0(0x217)](_0x2c1c0d){const _0xef920=_0xa384c0;this[_0xef920(0x202)][_0xef920(0x24e)][_0xef920(0x217)](_0x2c1c0d);}[_0xa384c0(0x225)](_0x5e8c7d,_0x1c90bd){const _0x527044=_0xa384c0;this[_0x527044(0x202)][_0x527044(0x24e)][_0x527044(0x225)](_0x5e8c7d,_0x1c90bd);}[_0xa384c0(0x262)](_0xafb41d){const _0x129391=_0xa384c0;this[_0x129391(0x202)][_0x129391(0x24e)][_0x129391(0x262)](_0xafb41d);}[_0xa384c0(0x204)](_0x5cb66f){const _0x50198d=_0xa384c0;this[_0x50198d(0x202)][_0x50198d(0x24e)][_0x50198d(0x204)](_0x5cb66f);}[_0xa384c0(0x1db)](){const _0x2a9c5f=_0xa384c0;this[_0x2a9c5f(0x202)][_0x2a9c5f(0x24e)][_0x2a9c5f(0x1db)]();}[_0xa384c0(0x21e)](){const _0x494b68=_0xa384c0;this[_0x494b68(0x202)][_0x494b68(0x24e)][_0x494b68(0x21e)]();}[_0xa384c0(0x245)](_0x294a49,_0xb3402d,_0x3e9572){const _0x5a5a9a=_0xa384c0;this[_0x5a5a9a(0x202)][_0x5a5a9a(0x24e)][_0x5a5a9a(0x245)](_0x294a49,_0xb3402d,_0x3e9572);}[_0xa384c0(0x259)](){const _0x11a8db=_0xa384c0;this[_0x11a8db(0x202)][_0x11a8db(0x24e)][_0x11a8db(0x259)](),this[_0x11a8db(0x202)][_0x11a8db(0x24e)][_0x11a8db(0x233)](this[_0x11a8db(0x1fd)]());}[_0xa384c0(0x243)](_0x1b5a1d){const _0x1fbecc=_0xa384c0;this[_0x1fbecc(0x202)][_0x1fbecc(0x24e)][_0x1fbecc(0x243)](_0x1b5a1d);}[_0xa384c0(0x221)](_0x3cfdae){const _0x1383d3=_0xa384c0;this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x250)](_0x3cfdae[_0x1383d3(0x1eb)]),this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x210)](_0x3cfdae[_0x1383d3(0x254)]),this[_0x1383d3(0x202)][_0x1383d3(0x24e)][_0x1383d3(0x233)](this[_0x1383d3(0x1fd)](_0x3cfdae));}[_0xa384c0(0x265)](_0x4d1cc5,_0x2442cb){const _0x5e2a15=_0xa384c0;this[_0x5e2a15(0x202)][_0x5e2a15(0x24e)][_0x5e2a15(0x1da)](_0x4d1cc5),_0x2442cb&&this[_0x5e2a15(0x202)][_0x5e2a15(0x24e)][_0x5e2a15(0x23c)](!0x1);}[_0xa384c0(0x226)](_0x11eb77){const _0x5be38d=_0xa384c0;this[_0x5be38d(0x1d4)]=_0x11eb77;}[_0xa384c0(0x23b)](_0x4d5c20){const _0xa38563=_0xa384c0;this[_0xa38563(0x202)][_0xa38563(0x1ef)][_0xa38563(0x23b)](_0x4d5c20);}[_0xa384c0(0x1ff)](){const _0x553e2e=_0xa384c0;this[_0x553e2e(0x1e0)](_0x5aef7e(this[_0x553e2e(0x21f)][_0x553e2e(0x235)],_0x553e2e(0x258)));}[_0xa384c0(0x1e0)](_0x1dcf48,_0x4acaa6=!0x1){const _0x4424f5=_0xa384c0;if(_0x4acaa6&&!_0x461e7a()&&_0x1dcf48[_0x4424f5(0x1d1)])return this[_0x4424f5(0x202)][_0x4424f5(0x255)][_0x4424f5(0x232)]='',void this[_0x4424f5(0x1f3)](_0x1dcf48);this[_0x4424f5(0x202)][_0x4424f5(0x255)][_0x4424f5(0x232)]=_0x1dcf48;}[_0xa384c0(0x1ee)](_0x1bdc0c){const _0x325507=_0xa384c0,_0x389615=this[_0x325507(0x21a)](_0x1bdc0c);this[_0x325507(0x202)][_0x325507(0x1ef)][_0x325507(0x1ee)](_0x389615);}[_0xa384c0(0x1f3)](_0x3d6976){const _0x3f3dc0=_0xa384c0;let _0x5bc9f5=0x0;clearInterval(this[_0x3f3dc0(0x20a)]),this[_0x3f3dc0(0x20a)]=setInterval(()=>{const _0x37dbcf=_0x3f3dc0;this[_0x37dbcf(0x202)][_0x37dbcf(0x255)][_0x37dbcf(0x232)]=this[_0x37dbcf(0x202)][_0x37dbcf(0x255)][_0x37dbcf(0x232)]+_0x3d6976[_0x5bc9f5],_0x5bc9f5++,_0x5bc9f5===_0x3d6976[_0x37dbcf(0x1d1)]&&clearInterval(this[_0x37dbcf(0x20a)]);},0x1e);}[_0xa384c0(0x1c8)](_0x3fd256){const _0x414b36=_0xa384c0;this[_0x414b36(0x202)][_0x414b36(0x255)][_0x414b36(0x1e9)]=_0x3fd256;}[_0xa384c0(0x21a)](_0x2727c5){const _0x4eb208=_0xa384c0;return _0x2727c5?_0x2727c5[_0x4eb208(0x1eb)]&&_0x2727c5[_0x4eb208(0x254)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x20e)):_0x2727c5[_0x4eb208(0x1eb)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1cf)):_0x2727c5[_0x4eb208(0x254)]?_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1f5)):_0x5aef7e(this[_0x4eb208(0x21f)][_0x4eb208(0x235)],_0x4eb208(0x1e1)):'';}[_0xa384c0(0x1fd)](_0x2c4955){const _0x51280c=_0xa384c0;return _0x2c4955?_0x2c4955[_0x51280c(0x1eb)]&&_0x2c4955[_0x51280c(0x254)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1d3)):_0x2c4955[_0x51280c(0x1eb)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x22b)):_0x2c4955[_0x51280c(0x254)]?_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1fc)):_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1e8)):_0x5aef7e(this[_0x51280c(0x21f)][_0x51280c(0x235)],_0x51280c(0x1e8));}[_0xa384c0(0x1c9)](_0x4b5db7,_0x515ef0,_0x5cb129,_0x51fd7c){const _0x4af56e=_0xa384c0;this[_0x4af56e(0x202)][_0x4af56e(0x1c9)](_0x4b5db7,_0x515ef0,_0x5cb129,_0x51fd7c);}[_0xa384c0(0x207)](_0x53350b){const _0x5cc757=_0xa384c0;this[_0x5cc757(0x202)][_0x5cc757(0x207)](_0x53350b);}[_0xa384c0(0x227)](){const _0xd1abf6=_0xa384c0;this[_0xd1abf6(0x202)][_0xd1abf6(0x24e)][_0xd1abf6(0x227)]();}[_0xa384c0(0x256)](_0x25c9e2,_0x16b46e){const _0x204a90=_0xa384c0;this[_0x204a90(0x202)][_0x204a90(0x1ef)][_0x204a90(0x21b)](_0x25c9e2,_0x16b46e);}[_0xa384c0(0x1f4)](){const _0x51bcad=_0xa384c0;this[_0x51bcad(0x202)][_0x51bcad(0x24e)][_0x51bcad(0x22f)]=!0x0;}[_0xa384c0(0x22d)](){const _0x1e12df=_0xa384c0;this[_0x1e12df(0x202)][_0x1e12df(0x24e)][_0x1e12df(0x22f)]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x20f763=_0xdd66;(function(_0x125a9d,_0x232b69){const _0xfe7315=_0xdd66,_0x4bc08d=_0x125a9d();while(!![]){try{const _0x52c3ff=-parseInt(_0xfe7315(0x20b))/0x1*(-parseInt(_0xfe7315(0x21c))/0x2)+-parseInt(_0xfe7315(0x21b))/0x3*(parseInt(_0xfe7315(0x1ca))/0x4)+parseInt(_0xfe7315(0x1f6))/0x5*(-parseInt(_0xfe7315(0x1df))/0x6)+parseInt(_0xfe7315(0x1aa))/0x7*(parseInt(_0xfe7315(0x1a6))/0x8)+-parseInt(_0xfe7315(0x1cd))/0x9+parseInt(_0xfe7315(0x215))/0xa+parseInt(_0xfe7315(0x1a5))/0xb*(parseInt(_0xfe7315(0x1bd))/0xc);if(_0x52c3ff===_0x232b69)break;else _0x4bc08d['push'](_0x4bc08d['shift']());}catch(_0x5151b4){_0x4bc08d['push'](_0x4bc08d['shift']());}}}(_0x3608,0xa502b));function _0xdd66(_0x4974c1,_0x2d5e7b){const _0x3608a3=_0x3608();return _0xdd66=function(_0xdd66c6,_0xbad6c2){_0xdd66c6=_0xdd66c6-0x192;let _0x42d478=_0x3608a3[_0xdd66c6];return _0x42d478;},_0xdd66(_0x4974c1,_0x2d5e7b);}import{CKEditorError as _0x4e2aee,ObservableMixin as _0x36deb1,uid as _0x216130}from'ckeditor5/src/utils.js';import{AIContextItemType as _0x76a394,AIContextTextResourceType as _0x175f0d}from'../../aicore/model/aicontext.js';import{escape as _0x492ac8}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x20f763(0x20c),_0x20f763(0x207),_0x20f763(0x209),_0x20f763(0x1c9),_0x20f763(0x1c0),_0x20f763(0x1d4),_0x20f763(0x1a3),_0x20f763(0x1b7),_0x20f763(0x1e6)];function _0x3608(){const _0x303a11=['isReadOnly','contextSent','8MlMLzz','addCurrentDocumentToContext','updateCurrentDocument','12058074cerEPR','_finishUploadOperation','isInContext','start','files','file-','document','addContextOptionsChanged','getPendingContextItems','abort','length','text/markdown','find','name','uploadFile','_config','filter','getSentContextItems','6942828OnqBXp','fetchDocument','string','_toggleAddCurrentDocumentOptionVisibility','addUrlToContext','removeFromContext','_addContextOptionsState','uploadProgressChanged','_startUploadOperation','_ongoingUploads','addToConversationContext','_removeContextItem','urls','text/plain','push','getId','object','_getCustomSourcesInitialState','getResources','FILE','map','url','_updateResourceInContextState','5JyNiYU','URL','data','_ongoingUploadOperations','size','getData','_finishContextItemLoading','values','isCurrentDocumentInContext','isHidden','uploadUrl','Current\x20document','hidden','resourceId','addResourceToContext','ai-chat-source-not-found','ai-chat-context-invalid-data','contextItemRemoved','resources','contextItemLoadingEnded','addFilesToContext','48249GnypHM','contextItemAdded','files-','forEach','clearPendingContextItems','get','_setAddContextOptionsDefaultState','url-','enabled','isCurrentDocumentInConversation','10962220gUOAzh','sources','init','end','addSelectionToContext','ai-request-aborted','1562262fizeUo','22nZJRDd','uploadDocument','populateFromMessage','TEXT','MARKDOWN','_ownerId','ai-chat-document-upload-failed','abortController','DOCUMENT','removeSelectionFromContext','content','ai-chat-source-resources-load-failed','ai-chat-resource-load-failed','selection','_pendingContextItems','uiId','attributes','_addContextItem','startsWith','_findSourceIdsByResourceId','object\x20with\x20content\x20and\x20type\x20properties','current-document','ai-chat-url-upload-failed','sourceResourcesLoaded','SELECTION','21632897pyguOC','8KnXPLJ','type','text/html','has','4345089owQPhU','_conversationContextItems','_createContextItemFromContent','from','sessionId','_addToConversationContextItem','stack','isSelectionInContext','_isResourceInContext','set','_connector','message','label','resourceStateChanged','_convertTextResourceToFile','all','ai-chat-resource-no-data','delete','getDocument','12npdNKv','mapContextItemsToRequestData','HTML','error','loadSourceResources','version','ai-chat-file-upload-failed','_mapContextItemToRequestData','ai-chat-context-unsupported-type','File','fire'];_0x3608=function(){return _0x303a11;};return _0x3608();}export class AIChatContext extends _0x36deb1(){[_0x20f763(0x1b4)];[_0x20f763(0x1dc)];[_0x20f763(0x221)];constructor({connector:_0x1c9df1,config:_0x4fec29,ownerId:_0x368d9f}){const _0x1f6487=_0x20f763;super(),this[_0x1f6487(0x1b4)]=_0x1c9df1,this[_0x1f6487(0x1dc)]=_0x4fec29,this[_0x1f6487(0x221)]=_0x368d9f;}[_0x20f763(0x217)](){const _0x24f335=_0x20f763;this[_0x24f335(0x19a)]=new Map(),this[_0x24f335(0x1ab)]=new Map(),this[_0x24f335(0x1e8)]=new Map(),this[_0x24f335(0x1f9)]=new Map(),this[_0x24f335(0x211)]();}[_0x20f763(0x1d5)](){const _0x314953=_0x20f763;return this[_0x314953(0x19a)];}async[_0x20f763(0x21e)](_0x15fabc){const _0x3845f8=_0x20f763,_0x341257=await this[_0x3845f8(0x1ac)](_0x15fabc);return this[_0x3845f8(0x1af)](_0x341257),_0x3845f8(0x1a1)===_0x341257[_0x3845f8(0x19b)]&&this[_0x3845f8(0x1e2)](),_0x341257;}async[_0x20f763(0x1ac)](_0x509ff0){const _0xb290f3=_0x20f763;if(_0x509ff0[_0xb290f3(0x1a7)]===_0x76a394[_0xb290f3(0x194)]){const _0x5a9993=await this[_0xb290f3(0x1b4)][_0xb290f3(0x1e0)](this[_0xb290f3(0x221)],_0x509ff0['id'])[_0xb290f3(0x1bc)]();return{'id':_0xb290f3(0x1a1),'uiId':_0xb290f3(0x1a1),'label':_0xb290f3(0x201),'type':_0x509ff0[_0xb290f3(0x1a7)],'content':_0x5a9993[_0xb290f3(0x196)],'hidden':this[_0xb290f3(0x1ab)][_0xb290f3(0x1a9)](_0xb290f3(0x1a1)),'version':_0x5a9993[_0xb290f3(0x19c)]?.[_0xb290f3(0x1c2)],'sessionId':_0x5a9993[_0xb290f3(0x19c)]?.[_0xb290f3(0x1ae)]};}return{'id':_0x509ff0['id'],'uiId':_0x509ff0['id'],'label':_0x509ff0[_0xb290f3(0x19c)]?.[_0xb290f3(0x1b6)]||_0x509ff0[_0xb290f3(0x1da)]||_0x509ff0[_0xb290f3(0x1f4)]||_0x509ff0['id'],'type':_0x509ff0[_0xb290f3(0x1a7)],..._0x509ff0?.[_0xb290f3(0x19c)]?.[_0xb290f3(0x203)]?{'resourceId':_0x509ff0[_0xb290f3(0x19c)]?.[_0xb290f3(0x203)]}:{}};}[_0x20f763(0x1de)](){const _0x47f563=_0x20f763;return new Map(this[_0x47f563(0x1ab)]);}[_0x20f763(0x1e4)](_0x5bcf13){const _0x5489c7=_0x20f763,_0x31ddd0=this[_0x5489c7(0x19a)][_0x5489c7(0x210)](_0x5bcf13);_0x31ddd0?.[_0x5489c7(0x1c8)]||this[_0x5489c7(0x1ea)](_0x5bcf13);}[_0x20f763(0x20f)](){const _0x298930=_0x20f763;if(0x0===this[_0x298930(0x19a)][_0x298930(0x1fa)])return;for(const _0x179099 of this[_0x298930(0x19a)][_0x298930(0x1fd)]())this[_0x298930(0x1ea)](_0x179099[_0x298930(0x19b)]);const _0x3bc52c=this[_0x298930(0x1ab)][_0x298930(0x210)](_0x298930(0x1a1))||this[_0x298930(0x19a)][_0x298930(0x210)](_0x298930(0x1a1));_0x3bc52c&&this[_0x298930(0x19d)]({..._0x3bc52c,'isReadOnly':!0x0,'hidden':!0x0});}[_0x20f763(0x1e9)](_0x4a1964){const _0x1046b8=_0x20f763;for(const _0x125004 of _0x4a1964[_0x1046b8(0x1fd)]())this[_0x1046b8(0x1af)](_0x125004);this[_0x1046b8(0x20f)](),this[_0x1046b8(0x1c7)](_0x1046b8(0x1c9),{'contextItems':Array[_0x1046b8(0x1ad)](this[_0x1046b8(0x1de)]()[_0x1046b8(0x1fd)]())});}[_0x20f763(0x1fe)](){const _0xb0bc83=_0x20f763;return this[_0xb0bc83(0x19a)][_0xb0bc83(0x1a9)](_0xb0bc83(0x1a1));}[_0x20f763(0x1b1)](){const _0x175c7d=_0x20f763;return this[_0x175c7d(0x19a)][_0x175c7d(0x1a9)](_0x175c7d(0x199));}[_0x20f763(0x214)](){const _0x439d28=_0x20f763;return this[_0x439d28(0x1ab)][_0x439d28(0x1a9)](_0x439d28(0x1a1));}static[_0x20f763(0x1be)](_0x4f5cfc){const _0x3d9790=_0x20f763;return Array[_0x3d9790(0x1ad)](_0x4f5cfc[_0x3d9790(0x1fd)]())[_0x3d9790(0x1f3)](_0x4dc6be=>this[_0x3d9790(0x1c4)](_0x4dc6be))[_0x3d9790(0x1dd)](_0x2f97fb=>null!==_0x2f97fb);}async[_0x20f763(0x20a)](_0x44abaf,_0xefb90e,_0x2c19da=_0x76a394[_0x20f763(0x1f2)]){const _0x5278ac=_0x20f763,_0x268683=_0x5278ac(0x20d)+_0x216130();this[_0x5278ac(0x1e7)](_0x268683);try{await Promise[_0x5278ac(0x1b9)](_0x44abaf[_0x5278ac(0x1f3)](async _0x74770d=>{const _0xd2fc99=_0x5278ac,_0x385534=_0xd2fc99(0x1d2)+_0x216130(),_0x1f6250=_0x492ac8(_0x74770d[_0xd2fc99(0x1da)]);try{this[_0xd2fc99(0x19d)]({'type':_0x2c19da,'label':_0xefb90e?.[_0xd2fc99(0x1b6)]||_0x1f6250,'uiId':_0x385534,'resourceId':_0xefb90e?.[_0xd2fc99(0x203)]},!0x0);const _0x5e131b=this[_0xd2fc99(0x1b4)][_0xd2fc99(0x1db)](this[_0xd2fc99(0x221)],_0x74770d,_0xefb90e);this[_0xd2fc99(0x1e8)][_0xd2fc99(0x1b3)](_0x385534,_0x5e131b[_0xd2fc99(0x193)]);const {id:_0x1fa9ba}=await _0x5e131b[_0xd2fc99(0x1ee)]();this[_0xd2fc99(0x1e8)][_0xd2fc99(0x1bb)](_0x385534),this[_0xd2fc99(0x1fc)]({'type':_0x2c19da,'id':_0x1fa9ba,'label':_0xefb90e?.[_0xd2fc99(0x1b6)]||_0x1f6250,'uiId':_0x385534,'resourceId':_0xefb90e?.[_0xd2fc99(0x203)]},!0x1);}catch(_0x2a7caf){this[_0xd2fc99(0x1e8)][_0xd2fc99(0x1bb)](_0x385534);if(!_0x2a7caf[_0xd2fc99(0x1b5)][_0xd2fc99(0x19e)](_0xd2fc99(0x21a))){const _0x5de56a=new _0x4e2aee(_0xd2fc99(0x1c3),null,{'fileName':_0x1f6250});_0x5de56a[_0xd2fc99(0x1b0)]=_0x2a7caf[_0xd2fc99(0x1b0)],this[_0xd2fc99(0x1c7)](_0xd2fc99(0x1c0),{'error':_0x5de56a,'fileName':_0x1f6250});}this[_0xd2fc99(0x1ea)](_0x385534);}}));}finally{this[_0x5278ac(0x1ce)](_0x268683);}}[_0x20f763(0x1cb)](_0x43cd40){const _0x7c690f=_0x20f763;if(this[_0x7c690f(0x1fe)]())return;const _0x5394cd={'type':_0x76a394[_0x7c690f(0x194)],'uiId':_0x7c690f(0x1a1),'label':_0x43cd40,'isReadOnly':this[_0x7c690f(0x1ab)][_0x7c690f(0x1a9)](_0x7c690f(0x1a1)),'hidden':this[_0x7c690f(0x1ab)][_0x7c690f(0x1a9)](_0x7c690f(0x1a1))};this[_0x7c690f(0x19d)](_0x5394cd);}async[_0x20f763(0x1cc)](_0x25df5e,_0x255743,_0x211035,_0x571a29){const _0x3d9e07=_0x20f763,_0x3c6e7f=this[_0x3d9e07(0x19a)][_0x3d9e07(0x210)](_0x3d9e07(0x1a1));if(_0x3c6e7f&&_0x25df5e){_0x3c6e7f[_0x3d9e07(0x199)]=_0x571a29?_0x571a29[_0x3d9e07(0x1f3)](_0x430b9a=>({'start':_0x430b9a[_0x3d9e07(0x1d0)],'end':_0x430b9a[_0x3d9e07(0x218)]})):[];try{if(_0x3c6e7f[_0x3d9e07(0x1c2)]===_0x255743)return;const {id:_0x43cab8}=await this[_0x3d9e07(0x1b4)][_0x3d9e07(0x21d)](this[_0x3d9e07(0x221)],_0x25df5e,{'version':_0x255743,'sessionId':_0x211035})[_0x3d9e07(0x1ee)]();_0x3c6e7f['id']=_0x43cab8,_0x3c6e7f[_0x3d9e07(0x196)]=_0x25df5e,_0x3c6e7f[_0x3d9e07(0x1c2)]=_0x255743,_0x3c6e7f[_0x3d9e07(0x1ae)]=_0x211035;}catch(_0x174f02){const _0x5d2cbc=new _0x4e2aee(_0x3d9e07(0x192),null);_0x5d2cbc[_0x3d9e07(0x1b0)]=_0x174f02[_0x3d9e07(0x1b0)],this[_0x3d9e07(0x1c7)](_0x3d9e07(0x1c0),{'error':_0x5d2cbc});}}}[_0x20f763(0x219)](_0x102b08){const _0x5e611d=_0x20f763;this[_0x5e611d(0x19d)]({'type':_0x76a394[_0x5e611d(0x1a4)],'label':_0x102b08,'uiId':_0x5e611d(0x199),'content':_0x102b08});}[_0x20f763(0x195)](){const _0x384fc1=_0x20f763;this[_0x384fc1(0x1ea)](_0x384fc1(0x199));}async[_0x20f763(0x1e3)](_0x5a9117,_0x5e21db){const _0x5a67c7=_0x20f763,_0x1c956f=_0x5a67c7(0x212)+_0x216130();this[_0x5a67c7(0x1e7)](_0x1c956f);const _0x59e731=_0x5a67c7(0x212)+_0x216130();try{this[_0x5a67c7(0x19d)]({'type':_0x76a394[_0x5a67c7(0x1f7)],'label':_0x5e21db?.[_0x5a67c7(0x1b6)]||_0x5a9117,'uiId':_0x59e731,'resourceId':_0x5e21db?.[_0x5a67c7(0x203)]},!0x0);const _0x10e939=this[_0x5a67c7(0x1b4)][_0x5a67c7(0x200)](this[_0x5a67c7(0x221)],_0x5a9117,_0x5e21db);this[_0x5a67c7(0x1e8)][_0x5a67c7(0x1b3)](_0x59e731,_0x10e939[_0x5a67c7(0x193)]);const {id:_0x4b9266}=await _0x10e939[_0x5a67c7(0x1ee)]();this[_0x5a67c7(0x1e8)][_0x5a67c7(0x1bb)](_0x59e731),this[_0x5a67c7(0x1fc)]({'type':_0x76a394[_0x5a67c7(0x1f7)],'id':_0x4b9266,'label':_0x5e21db?.[_0x5a67c7(0x1b6)]||_0x5a9117,'uiId':_0x59e731,'resourceId':_0x5e21db?.[_0x5a67c7(0x203)]},!0x1);}catch(_0x228724){this[_0x5a67c7(0x1e8)][_0x5a67c7(0x1bb)](_0x59e731),(_0x228724[_0x5a67c7(0x1b5)][_0x5a67c7(0x19e)](_0x5a67c7(0x21a))||this[_0x5a67c7(0x1c7)](_0x5a67c7(0x1c0),{'error':new _0x4e2aee(_0x5a67c7(0x1a2),this,{'url':_0x5a9117,'originalError':_0x228724}),'url':_0x5a9117}),this[_0x5a67c7(0x1ea)](_0x59e731));}finally{this[_0x5a67c7(0x1ce)](_0x1c956f);}}async[_0x20f763(0x1c1)](_0x4d5734,_0x446e0b,_0x4726e4){const _0x10e373=_0x20f763,_0x27fe96=this[_0x10e373(0x1e5)][_0x10e373(0x216)][_0x10e373(0x1d9)](_0x274b98=>_0x274b98['id']===_0x4d5734);if(!_0x27fe96)return this[_0x10e373(0x1c7)](_0x10e373(0x1c0),{'error':new _0x4e2aee(_0x10e373(0x205),this,{'sourceId':_0x4d5734}),'sourceId':_0x4d5734}),[];try{const _0x166905=(await _0x27fe96[_0x10e373(0x1f1)](_0x446e0b))[_0x10e373(0x1f3)](_0x17e3bc=>{const _0x45f637=_0x10e373,_0x3287bc=this[_0x45f637(0x1b2)](_0x17e3bc['id']);return{..._0x17e3bc,'isInContext':_0x3287bc};});return _0x27fe96[_0x10e373(0x208)]=_0x166905,this[_0x10e373(0x1c7)](_0x10e373(0x1a3),{'sourceId':_0x4d5734,'source':_0x27fe96,'resources':_0x166905,'uid':_0x4726e4}),_0x166905;}catch(_0x16c917){return this[_0x10e373(0x1c7)](_0x10e373(0x1c0),{'error':new _0x4e2aee(_0x10e373(0x197),this,{'sourceId':_0x4d5734,'originalError':_0x16c917}),'sourceId':_0x4d5734,'sourceLabel':_0x27fe96[_0x10e373(0x1b6)]}),[];}}async[_0x20f763(0x204)](_0x1b0b34,_0x54c9eb){const _0x24bdc9=_0x20f763;if(this[_0x24bdc9(0x1b2)](_0x54c9eb['id']))return;let _0x4e9d03=_0x54c9eb[_0x24bdc9(0x1f8)];if(!_0x4e9d03&&_0x1b0b34[_0x24bdc9(0x1fb)])try{_0x4e9d03=await _0x1b0b34[_0x24bdc9(0x1fb)](_0x54c9eb['id']);}catch(_0x2ee2a3){return void this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x198),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'originalError':_0x2ee2a3}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});}if(_0x4e9d03)switch(_0x54c9eb[_0x24bdc9(0x1a7)]){case _0x76a394[_0x24bdc9(0x1f7)]:if(_0x24bdc9(0x1e1)!=typeof _0x4e9d03)return void this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x206),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'expectedType':_0x24bdc9(0x1e1),'actualType':typeof _0x4e9d03}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});await this[_0x24bdc9(0x1e3)](_0x4e9d03,{'label':_0x54c9eb[_0x24bdc9(0x1b6)],'resourceId':_0x54c9eb['id']});break;case _0x76a394[_0x24bdc9(0x1f2)]:if(!(_0x4e9d03 instanceof File))return void this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x206),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'expectedType':_0x24bdc9(0x1c6),'actualType':typeof _0x4e9d03}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});await this[_0x24bdc9(0x20a)]([_0x4e9d03],{'label':_0x54c9eb[_0x24bdc9(0x1b6)],'resourceId':_0x54c9eb['id']});break;case _0x76a394[_0x24bdc9(0x21f)]:if(_0x24bdc9(0x1ef)!=typeof _0x4e9d03||!(_0x24bdc9(0x196)in _0x4e9d03)||!(_0x24bdc9(0x1a7)in _0x4e9d03))return void this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x206),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'expectedType':_0x24bdc9(0x1a0),'actualType':typeof _0x4e9d03}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});_0x4e9d03=AIChatContext[_0x24bdc9(0x1b8)](_0x4e9d03,_0x54c9eb[_0x24bdc9(0x1b6)]),await this[_0x24bdc9(0x20a)]([_0x4e9d03],{'label':_0x54c9eb[_0x24bdc9(0x1b6)],'resourceId':_0x54c9eb['id']},_0x76a394[_0x24bdc9(0x21f)]);break;default:this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x1c5),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id'],'resourceType':_0x54c9eb[_0x24bdc9(0x1a7)]}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});}else this[_0x24bdc9(0x1c7)](_0x24bdc9(0x1c0),{'error':new _0x4e2aee(_0x24bdc9(0x1ba),this,{'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']}),'resourceId':_0x54c9eb['id'],'sourceId':_0x1b0b34['id']});}static[_0x20f763(0x1b8)](_0xf02425,_0x43487e){const _0xcdb80b=_0x20f763;switch(_0xf02425[_0xcdb80b(0x1a7)]){case _0x175f0d[_0xcdb80b(0x220)]:return new File([_0xf02425[_0xcdb80b(0x196)]],_0x43487e,{'type':_0xcdb80b(0x1d8)});case _0x175f0d[_0xcdb80b(0x1bf)]:return new File([_0xf02425[_0xcdb80b(0x196)]],_0x43487e,{'type':_0xcdb80b(0x1a8)});default:return new File([_0xf02425[_0xcdb80b(0x196)]],_0x43487e,{'type':_0xcdb80b(0x1ec)});}}static[_0x20f763(0x1c4)](_0x600f1c){const _0x5d6cc9=_0x20f763;switch(_0x600f1c[_0x5d6cc9(0x1a7)]){case _0x76a394[_0x5d6cc9(0x1f2)]:return{'type':_0x76a394[_0x5d6cc9(0x1f2)],'id':_0x600f1c['id']};case _0x76a394[_0x5d6cc9(0x1f7)]:return{'type':_0x76a394[_0x5d6cc9(0x1f7)],'id':_0x600f1c['id']};case _0x76a394[_0x5d6cc9(0x194)]:return{'type':_0x76a394[_0x5d6cc9(0x194)],'id':_0x600f1c['id'],..._0x600f1c[_0x5d6cc9(0x199)]?.[_0x5d6cc9(0x1d7)]&&{'selection':_0x600f1c[_0x5d6cc9(0x199)]}};case _0x76a394[_0x5d6cc9(0x21f)]:return{'type':_0x76a394[_0x5d6cc9(0x1f2)],'id':_0x600f1c['id']};default:return null;}}[_0x20f763(0x19d)](_0x4682c6,_0x423a77=!0x1){const _0x111ec2=_0x20f763;if(this[_0x111ec2(0x19a)][_0x111ec2(0x1b3)](_0x4682c6[_0x111ec2(0x19b)],_0x4682c6),_0x4682c6[_0x111ec2(0x202)]||this[_0x111ec2(0x1c7)](_0x111ec2(0x20c),{'contextItem':_0x4682c6,'isLoading':_0x423a77}),_0x111ec2(0x1a1)===_0x4682c6[_0x111ec2(0x19b)]&&this[_0x111ec2(0x1e2)](),_0x4682c6[_0x111ec2(0x203)]){const _0x5f3588=this[_0x111ec2(0x19f)](_0x4682c6[_0x111ec2(0x203)]);_0x5f3588&&_0x5f3588[_0x111ec2(0x20e)](_0x86aa10=>{const _0x212883=_0x111ec2;this[_0x212883(0x1f5)](_0x86aa10,_0x4682c6[_0x212883(0x203)],!0x0);});}}[_0x20f763(0x1ea)](_0x504920){const _0xc54fa9=_0x20f763,_0x504247=this[_0xc54fa9(0x19a)][_0xc54fa9(0x210)](_0x504920),_0x5c3426=this[_0xc54fa9(0x1e8)][_0xc54fa9(0x210)](_0x504920);if(_0x5c3426&&(_0x5c3426[_0xc54fa9(0x1d6)](),this[_0xc54fa9(0x1e8)][_0xc54fa9(0x1bb)](_0x504920)),_0x504247?.[_0xc54fa9(0x203)]){const _0x5845f9=this[_0xc54fa9(0x19f)](_0x504247[_0xc54fa9(0x203)]);_0x5845f9&&_0x5845f9[_0xc54fa9(0x20e)](_0x180369=>{const _0xa41336=_0xc54fa9;this[_0xa41336(0x1f5)](_0x180369,_0x504247[_0xa41336(0x203)],!0x1);});}this[_0xc54fa9(0x19a)][_0xc54fa9(0x1bb)](_0x504920),this[_0xc54fa9(0x1c7)](_0xc54fa9(0x207),{'uiId':_0x504920,'type':_0x504247?.[_0xc54fa9(0x1a7)]}),_0xc54fa9(0x1a1)===_0x504920&&this[_0xc54fa9(0x1e2)]();}[_0x20f763(0x1fc)](_0x19b54e,_0x5c9338){const _0x18a547=_0x20f763;if(this[_0x18a547(0x19a)][_0x18a547(0x1a9)](_0x19b54e[_0x18a547(0x19b)])&&(this[_0x18a547(0x19a)][_0x18a547(0x1b3)](_0x19b54e[_0x18a547(0x19b)],_0x19b54e),this[_0x18a547(0x1c7)](_0x18a547(0x209),{'contextItem':_0x19b54e,'isLoading':_0x5c9338}),_0x19b54e[_0x18a547(0x203)])){const _0x4e3372=this[_0x18a547(0x19f)](_0x19b54e[_0x18a547(0x203)]);_0x4e3372&&_0x4e3372[_0x18a547(0x20e)](_0x1effc8=>{const _0x367473=_0x18a547;this[_0x367473(0x1f5)](_0x1effc8,_0x19b54e[_0x367473(0x203)],!0x0);});}}[_0x20f763(0x1af)](_0x4cf319){const _0x2c5cfb=_0x20f763;this[_0x2c5cfb(0x1ab)][_0x2c5cfb(0x1b3)](_0x4cf319[_0x2c5cfb(0x19b)],_0x4cf319);}[_0x20f763(0x211)](){const _0x3c8e16=_0x20f763;this[_0x3c8e16(0x1e5)]={'document':{'enabled':!0x1!==this[_0x3c8e16(0x1dc)]?.[_0x3c8e16(0x1d3)]?.[_0x3c8e16(0x213)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x3c8e16(0x1dc)]?.[_0x3c8e16(0x1eb)]?.[_0x3c8e16(0x213)]},'files':{'enabled':!0x1!==this[_0x3c8e16(0x1dc)]?.[_0x3c8e16(0x1d1)]?.[_0x3c8e16(0x213)]},'sources':this[_0x3c8e16(0x1f0)]()},this[_0x3c8e16(0x1c7)](_0x3c8e16(0x1d4),{'options':this[_0x3c8e16(0x1e5)]});}[_0x20f763(0x1f0)](){const _0xe35ae2=_0x20f763;return this[_0xe35ae2(0x1dc)]?.[_0xe35ae2(0x216)]?.[_0xe35ae2(0x1f3)](_0x234ee4=>({..._0x234ee4,'resources':[]}))??[];}[_0x20f763(0x1e2)](){const _0x223430=_0x20f763,_0xe7fd03=this[_0x223430(0x1fe)]()||this[_0x223430(0x214)]();this[_0x223430(0x1e5)][_0x223430(0x1d3)][_0x223430(0x1ff)]=_0xe7fd03,this[_0x223430(0x1c7)](_0x223430(0x1d4),{'options':this[_0x223430(0x1e5)]});}[_0x20f763(0x1b2)](_0x4a0f8c){const _0x311f65=_0x20f763;for(const _0x4201b0 of this[_0x311f65(0x19a)][_0x311f65(0x1fd)]())if(_0x4201b0[_0x311f65(0x203)]===_0x4a0f8c)return!0x0;for(const _0x4059f3 of this[_0x311f65(0x1ab)][_0x311f65(0x1fd)]())if(_0x4059f3[_0x311f65(0x203)]===_0x4a0f8c)return!0x0;return!0x1;}[_0x20f763(0x19f)](_0x23cad8){const _0x62ce04=_0x20f763,_0x3edafd=[];for(const _0x1469e9 of this[_0x62ce04(0x1e5)][_0x62ce04(0x216)]){_0x1469e9[_0x62ce04(0x208)][_0x62ce04(0x1d9)](_0x1fcf54=>_0x1fcf54['id']===_0x23cad8)&&_0x3edafd[_0x62ce04(0x1ed)](_0x1469e9['id']);}return 0x0===_0x3edafd[_0x62ce04(0x1d7)]?null:_0x3edafd;}[_0x20f763(0x1f5)](_0x2a3d5a,_0x71a2c4,_0x28d450){const _0x518651=_0x20f763,_0x37ea38=this[_0x518651(0x1e5)][_0x518651(0x216)][_0x518651(0x1d9)](_0x44c15e=>_0x44c15e['id']===_0x2a3d5a);if(!_0x37ea38)return;const _0x3aa023=_0x37ea38[_0x518651(0x208)][_0x518651(0x1d9)](_0x4f44e8=>_0x4f44e8['id']===_0x71a2c4);_0x3aa023&&(_0x3aa023[_0x518651(0x1cf)]=_0x28d450,this[_0x518651(0x1c7)](_0x518651(0x1b7),{'sourceId':_0x2a3d5a,'resourceId':_0x71a2c4,'isInContext':_0x28d450}));}[_0x20f763(0x1e7)](_0xddc8b){const _0x187bc2=_0x20f763;this[_0x187bc2(0x1f9)][_0x187bc2(0x1b3)](_0xddc8b,!0x0),this[_0x187bc2(0x1f9)][_0x187bc2(0x1fa)]&&this[_0x187bc2(0x1c7)](_0x187bc2(0x1e6),{'isUploadInProgress':!0x0});}[_0x20f763(0x1ce)](_0x2ef94d){const _0x3f949b=_0x20f763;this[_0x3f949b(0x1f9)][_0x3f949b(0x1bb)](_0x2ef94d),0x0===this[_0x3f949b(0x1f9)][_0x3f949b(0x1fa)]&&this[_0x3f949b(0x1c7)](_0x3f949b(0x1e6),{'isUploadInProgress':!0x1});}}
|
|
23
|
+
const _0x3f905d=_0x3d21;(function(_0xf8b4fa,_0x18f096){const _0x3febc2=_0x3d21,_0x564ea7=_0xf8b4fa();while(!![]){try{const _0x1259d2=-parseInt(_0x3febc2(0x17f))/0x1+parseInt(_0x3febc2(0x189))/0x2+parseInt(_0x3febc2(0x1a4))/0x3+parseInt(_0x3febc2(0x181))/0x4+-parseInt(_0x3febc2(0x198))/0x5*(parseInt(_0x3febc2(0x186))/0x6)+parseInt(_0x3febc2(0x1b0))/0x7+-parseInt(_0x3febc2(0x185))/0x8;if(_0x1259d2===_0x18f096)break;else _0x564ea7['push'](_0x564ea7['shift']());}catch(_0x4bc397){_0x564ea7['push'](_0x564ea7['shift']());}}}(_0x7f3a,0x628dc));import{CKEditorError as _0x6ff7d9,ObservableMixin as _0xc05edb,uid as _0x48b52e}from'ckeditor5/src/utils.js';function _0x3d21(_0x7613af,_0x324e4c){const _0x7f3a7e=_0x7f3a();return _0x3d21=function(_0x3d219c,_0x5c7af1){_0x3d219c=_0x3d219c-0x15e;let _0x53ca84=_0x7f3a7e[_0x3d219c];return _0x53ca84;},_0x3d21(_0x7613af,_0x324e4c);}function _0x7f3a(){const _0x322c3b=['message','isCurrentDocumentInContext','addFilesToContext','filter','fetchDocument','length','ai-chat-resource-no-data','getId','getSentContextItems','ai-chat-resource-load-failed','push','enabled','map','files','set','uploadUrl','name','isHidden','uiId','FILE','addResourceToContext','Current\x20document','uploadFile','_config','uploadDocument','_finishUploadOperation','_pendingContextItems','sourceResourcesLoaded','ai-chat-source-not-found','url-','from','clearPendingContextItems','TEXT','delete','type','getDocument','HTML','mapContextItemsToRequestData','contextItemLoadingEnded','size','end','has','_addToConversationContextItem','populateFromMessage','_removeContextItem','_setAddContextOptionsDefaultState','text/html','text/plain','ai-chat-context-invalid-data','_addContextItem','version','updateCurrentDocument','SELECTION','stack','_updateResourceInContextState','_createContextItemFromContent','abort','startsWith','all','addContextOptionsChanged','resources','get','sources','label','ai-request-aborted','forEach','ai-chat-source-resources-load-failed','63880uxQynE','isReadOnly','1835596qOHmOJ','_ongoingUploads','urls','uploadProgressChanged','12210544aiMIpu','60aXFzkM','files-','values','714666aHeckn','File','addToConversationContext','sessionId','addSelectionToContext','object\x20with\x20content\x20and\x20type\x20properties','fire','selection','isInContext','_conversationContextItems','URL','_startUploadOperation','contextItemAdded','_finishContextItemLoading','attributes','94745uSJdcm','getResources','getPendingContextItems','isSelectionInContext','_convertTextResourceToFile','_toggleAddCurrentDocumentOptionVisibility','object','contextSent','_ownerId','content','_mapContextItemToRequestData','removeSelectionFromContext','1795788OPYpMi','start','string','url','contextItemRemoved','_addContextOptionsState','data','_getCustomSourcesInitialState','isCurrentDocumentInConversation','hidden','abortController','loadSourceResources','5379752cHIPOk','_isResourceInContext','resourceId','getData','ai-chat-file-upload-failed','current-document','file-','_findSourceIdsByResourceId','error','resourceStateChanged','_connector','addUrlToContext','text/markdown','_ongoingUploadOperations','ai-chat-context-unsupported-type','ai-chat-url-upload-failed','addCurrentDocumentToContext','document','init','removeFromContext','ai-chat-document-upload-failed','find','DOCUMENT','MARKDOWN'];_0x7f3a=function(){return _0x322c3b;};return _0x7f3a();}import{AIContextItemType as _0x2f6bc3,AIContextTextResourceType as _0x59b10e}from'../../aicore/model/aicontext.js';import{escape as _0x2860e7}from'es-toolkit/compat';export const AI_CONTEXT_MODEL_EVENT_NAMES=[_0x3f905d(0x195),_0x3f905d(0x1a8),_0x3f905d(0x162),_0x3f905d(0x19f),_0x3f905d(0x1b8),_0x3f905d(0x177),_0x3f905d(0x1e3),_0x3f905d(0x1b9),_0x3f905d(0x184)];export class AIChatContext extends _0xc05edb(){[_0x3f905d(0x1ba)];[_0x3f905d(0x1df)];[_0x3f905d(0x1a0)];constructor({connector:_0x3b6b7b,config:_0x201f4b,ownerId:_0x44ef58}){const _0x59ebe3=_0x3f905d;super(),this[_0x59ebe3(0x1ba)]=_0x3b6b7b,this[_0x59ebe3(0x1df)]=_0x201f4b,this[_0x59ebe3(0x1a0)]=_0x44ef58;}[_0x3f905d(0x1c2)](){const _0x42b00e=_0x3f905d;this[_0x42b00e(0x1e2)]=new Map(),this[_0x42b00e(0x192)]=new Map(),this[_0x42b00e(0x182)]=new Map(),this[_0x42b00e(0x1bd)]=new Map(),this[_0x42b00e(0x169)]();}[_0x3f905d(0x19a)](){const _0x5246f6=_0x3f905d;return this[_0x5246f6(0x1e2)];}async[_0x3f905d(0x167)](_0x5a9824){const _0x3a1400=_0x3f905d,_0x44c2c5=await this[_0x3a1400(0x173)](_0x5a9824);return this[_0x3a1400(0x166)](_0x44c2c5),_0x3a1400(0x1b5)===_0x44c2c5[_0x3a1400(0x1da)]&&this[_0x3a1400(0x19d)](),_0x44c2c5;}async[_0x3f905d(0x173)](_0x5cec0e){const _0x5a415f=_0x3f905d;if(_0x5cec0e[_0x5a415f(0x15e)]===_0x2f6bc3[_0x5a415f(0x1c6)]){const _0x4ffa20=await this[_0x5a415f(0x1ba)][_0x5a415f(0x1cc)](this[_0x5a415f(0x1a0)],_0x5cec0e['id'])[_0x5a415f(0x15f)]();return{'id':_0x5a415f(0x1b5),'uiId':_0x5a415f(0x1b5),'label':_0x5a415f(0x1dd),'type':_0x5cec0e[_0x5a415f(0x15e)],'content':_0x4ffa20[_0x5a415f(0x1a1)],'hidden':this[_0x5a415f(0x192)][_0x5a415f(0x165)](_0x5a415f(0x1b5)),'version':_0x4ffa20[_0x5a415f(0x197)]?.[_0x5a415f(0x16e)],'sessionId':_0x4ffa20[_0x5a415f(0x197)]?.[_0x5a415f(0x18c)]};}return{'id':_0x5cec0e['id'],'uiId':_0x5cec0e['id'],'label':_0x5cec0e[_0x5a415f(0x197)]?.[_0x5a415f(0x17b)]||_0x5cec0e[_0x5a415f(0x1d8)]||_0x5cec0e[_0x5a415f(0x1a7)]||_0x5cec0e['id'],'type':_0x5cec0e[_0x5a415f(0x15e)],..._0x5cec0e?.[_0x5a415f(0x197)]?.[_0x5a415f(0x1b2)]?{'resourceId':_0x5cec0e[_0x5a415f(0x197)]?.[_0x5a415f(0x1b2)]}:{}};}[_0x3f905d(0x1d0)](){const _0x33f743=_0x3f905d;return new Map(this[_0x33f743(0x192)]);}[_0x3f905d(0x1c3)](_0xe7bfa3){const _0x5d9719=_0x3f905d,_0x57e081=this[_0x5d9719(0x1e2)][_0x5d9719(0x179)](_0xe7bfa3);_0x57e081?.[_0x5d9719(0x180)]||this[_0x5d9719(0x168)](_0xe7bfa3);}[_0x3f905d(0x1e7)](){const _0x5a4a4b=_0x3f905d;if(0x0===this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x163)])return;for(const _0x137ebc of this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x188)]())this[_0x5a4a4b(0x168)](_0x137ebc[_0x5a4a4b(0x1da)]);const _0x39cca0=this[_0x5a4a4b(0x192)][_0x5a4a4b(0x179)](_0x5a4a4b(0x1b5))||this[_0x5a4a4b(0x1e2)][_0x5a4a4b(0x179)](_0x5a4a4b(0x1b5));_0x39cca0&&this[_0x5a4a4b(0x16d)]({..._0x39cca0,'isReadOnly':!0x0,'hidden':!0x0});}[_0x3f905d(0x18b)](_0x59ead7){const _0x2dd530=_0x3f905d;for(const _0x1abf6 of _0x59ead7[_0x2dd530(0x188)]())this[_0x2dd530(0x166)](_0x1abf6);this[_0x2dd530(0x1e7)](),this[_0x2dd530(0x18f)](_0x2dd530(0x19f),{'contextItems':Array[_0x2dd530(0x1e6)](this[_0x2dd530(0x1d0)]()[_0x2dd530(0x188)]())});}[_0x3f905d(0x1c9)](){const _0x3ec319=_0x3f905d;return this[_0x3ec319(0x1e2)][_0x3ec319(0x165)](_0x3ec319(0x1b5));}[_0x3f905d(0x19b)](){const _0x1545fa=_0x3f905d;return this[_0x1545fa(0x1e2)][_0x1545fa(0x165)](_0x1545fa(0x190));}[_0x3f905d(0x1ac)](){const _0x2bd453=_0x3f905d;return this[_0x2bd453(0x192)][_0x2bd453(0x165)](_0x2bd453(0x1b5));}static[_0x3f905d(0x161)](_0x5661dc){const _0x47be00=_0x3f905d;return Array[_0x47be00(0x1e6)](_0x5661dc[_0x47be00(0x188)]())[_0x47be00(0x1d4)](_0x4647ef=>this[_0x47be00(0x1a2)](_0x4647ef))[_0x47be00(0x1cb)](_0x2712a7=>null!==_0x2712a7);}async[_0x3f905d(0x1ca)](_0x3df38a,_0x49802d,_0x1f089e=_0x2f6bc3[_0x3f905d(0x1db)]){const _0x53e15a=_0x3f905d,_0x42dc33=_0x53e15a(0x187)+_0x48b52e();this[_0x53e15a(0x194)](_0x42dc33);try{await Promise[_0x53e15a(0x176)](_0x3df38a[_0x53e15a(0x1d4)](async _0x3a8599=>{const _0xa4d109=_0x53e15a,_0x1a207a=_0xa4d109(0x1b6)+_0x48b52e(),_0x4885c9=_0x2860e7(_0x3a8599[_0xa4d109(0x1d8)]);try{this[_0xa4d109(0x16d)]({'type':_0x1f089e,'label':_0x49802d?.[_0xa4d109(0x17b)]||_0x4885c9,'uiId':_0x1a207a,'resourceId':_0x49802d?.[_0xa4d109(0x1b2)]},!0x0);const _0x4569ca=this[_0xa4d109(0x1ba)][_0xa4d109(0x1de)](this[_0xa4d109(0x1a0)],_0x3a8599,_0x49802d);this[_0xa4d109(0x182)][_0xa4d109(0x1d6)](_0x1a207a,_0x4569ca[_0xa4d109(0x1ae)]);const {id:_0x41c8c2}=await _0x4569ca[_0xa4d109(0x1cf)]();this[_0xa4d109(0x182)][_0xa4d109(0x1e9)](_0x1a207a),this[_0xa4d109(0x196)]({'type':_0x1f089e,'id':_0x41c8c2,'label':_0x49802d?.[_0xa4d109(0x17b)]||_0x4885c9,'uiId':_0x1a207a,'resourceId':_0x49802d?.[_0xa4d109(0x1b2)]},!0x1);}catch(_0x2232e9){this[_0xa4d109(0x182)][_0xa4d109(0x1e9)](_0x1a207a);if(!_0x2232e9[_0xa4d109(0x1c8)][_0xa4d109(0x175)](_0xa4d109(0x17c))){const _0x2996ab=new _0x6ff7d9(_0xa4d109(0x1b4),null,{'fileName':_0x4885c9});_0x2996ab[_0xa4d109(0x171)]=_0x2232e9[_0xa4d109(0x171)],this[_0xa4d109(0x18f)](_0xa4d109(0x1b8),{'error':_0x2996ab,'fileName':_0x4885c9});}this[_0xa4d109(0x168)](_0x1a207a);}}));}finally{this[_0x53e15a(0x1e1)](_0x42dc33);}}[_0x3f905d(0x1c0)](_0x2d4764){const _0x4f91bb=_0x3f905d;if(this[_0x4f91bb(0x1c9)]())return;const _0x1b9520={'type':_0x2f6bc3[_0x4f91bb(0x1c6)],'uiId':_0x4f91bb(0x1b5),'label':_0x2d4764,'isReadOnly':this[_0x4f91bb(0x192)][_0x4f91bb(0x165)](_0x4f91bb(0x1b5)),'hidden':this[_0x4f91bb(0x192)][_0x4f91bb(0x165)](_0x4f91bb(0x1b5))};this[_0x4f91bb(0x16d)](_0x1b9520);}async[_0x3f905d(0x16f)](_0x87c00,_0x4bb9ae,_0x1cb4f1,_0x4c7407){const _0x7aa733=_0x3f905d,_0x53d3ab=this[_0x7aa733(0x1e2)][_0x7aa733(0x179)](_0x7aa733(0x1b5));if(_0x53d3ab&&_0x87c00){_0x53d3ab[_0x7aa733(0x190)]=_0x4c7407?_0x4c7407[_0x7aa733(0x1d4)](_0x2b83ee=>({'start':_0x2b83ee[_0x7aa733(0x1a5)],'end':_0x2b83ee[_0x7aa733(0x164)]})):[];try{if(_0x53d3ab[_0x7aa733(0x16e)]===_0x4bb9ae)return;const {id:_0x4c3035}=await this[_0x7aa733(0x1ba)][_0x7aa733(0x1e0)](this[_0x7aa733(0x1a0)],_0x87c00,{'version':_0x4bb9ae,'sessionId':_0x1cb4f1})[_0x7aa733(0x1cf)]();_0x53d3ab['id']=_0x4c3035,_0x53d3ab[_0x7aa733(0x1a1)]=_0x87c00,_0x53d3ab[_0x7aa733(0x16e)]=_0x4bb9ae,_0x53d3ab[_0x7aa733(0x18c)]=_0x1cb4f1;}catch(_0x3e0c17){const _0x40fefa=new _0x6ff7d9(_0x7aa733(0x1c4),null);_0x40fefa[_0x7aa733(0x171)]=_0x3e0c17[_0x7aa733(0x171)],this[_0x7aa733(0x18f)](_0x7aa733(0x1b8),{'error':_0x40fefa});}}}[_0x3f905d(0x18d)](_0x4d0136){const _0x54e387=_0x3f905d;this[_0x54e387(0x16d)]({'type':_0x2f6bc3[_0x54e387(0x170)],'label':_0x4d0136,'uiId':_0x54e387(0x190),'content':_0x4d0136});}[_0x3f905d(0x1a3)](){const _0x2136b0=_0x3f905d;this[_0x2136b0(0x168)](_0x2136b0(0x190));}async[_0x3f905d(0x1bb)](_0x2175f1,_0x543768){const _0x19818d=_0x3f905d,_0xc1cfb5=_0x19818d(0x1e5)+_0x48b52e();this[_0x19818d(0x194)](_0xc1cfb5);const _0x54fd18=_0x19818d(0x1e5)+_0x48b52e();try{this[_0x19818d(0x16d)]({'type':_0x2f6bc3[_0x19818d(0x193)],'label':_0x543768?.[_0x19818d(0x17b)]||_0x2175f1,'uiId':_0x54fd18,'resourceId':_0x543768?.[_0x19818d(0x1b2)]},!0x0);const _0x27632e=this[_0x19818d(0x1ba)][_0x19818d(0x1d7)](this[_0x19818d(0x1a0)],_0x2175f1,_0x543768);this[_0x19818d(0x182)][_0x19818d(0x1d6)](_0x54fd18,_0x27632e[_0x19818d(0x1ae)]);const {id:_0x1d77ca}=await _0x27632e[_0x19818d(0x1cf)]();this[_0x19818d(0x182)][_0x19818d(0x1e9)](_0x54fd18),this[_0x19818d(0x196)]({'type':_0x2f6bc3[_0x19818d(0x193)],'id':_0x1d77ca,'label':_0x543768?.[_0x19818d(0x17b)]||_0x2175f1,'uiId':_0x54fd18,'resourceId':_0x543768?.[_0x19818d(0x1b2)]},!0x1);}catch(_0x5b40d5){this[_0x19818d(0x182)][_0x19818d(0x1e9)](_0x54fd18),(_0x5b40d5[_0x19818d(0x1c8)][_0x19818d(0x175)](_0x19818d(0x17c))||this[_0x19818d(0x18f)](_0x19818d(0x1b8),{'error':new _0x6ff7d9(_0x19818d(0x1bf),this,{'url':_0x2175f1,'originalError':_0x5b40d5}),'url':_0x2175f1}),this[_0x19818d(0x168)](_0x54fd18));}finally{this[_0x19818d(0x1e1)](_0xc1cfb5);}}async[_0x3f905d(0x1af)](_0x2fc0ed,_0x30ee0b,_0x3aefee){const _0x491962=_0x3f905d,_0x5bbe94=this[_0x491962(0x1a9)][_0x491962(0x17a)][_0x491962(0x1c5)](_0x66af4f=>_0x66af4f['id']===_0x2fc0ed);if(!_0x5bbe94)return this[_0x491962(0x18f)](_0x491962(0x1b8),{'error':new _0x6ff7d9(_0x491962(0x1e4),this,{'sourceId':_0x2fc0ed}),'sourceId':_0x2fc0ed}),[];try{const _0x53e974=(await _0x5bbe94[_0x491962(0x199)](_0x30ee0b))[_0x491962(0x1d4)](_0x2773f1=>{const _0x31689d=_0x491962,_0x2687df=this[_0x31689d(0x1b1)](_0x2773f1['id']);return{..._0x2773f1,'isInContext':_0x2687df};});return _0x5bbe94[_0x491962(0x178)]=_0x53e974,this[_0x491962(0x18f)](_0x491962(0x1e3),{'sourceId':_0x2fc0ed,'source':_0x5bbe94,'resources':_0x53e974,'uid':_0x3aefee}),_0x53e974;}catch(_0x1b6d1f){return this[_0x491962(0x18f)](_0x491962(0x1b8),{'error':new _0x6ff7d9(_0x491962(0x17e),this,{'sourceId':_0x2fc0ed,'originalError':_0x1b6d1f}),'sourceId':_0x2fc0ed,'sourceLabel':_0x5bbe94[_0x491962(0x17b)]}),[];}}async[_0x3f905d(0x1dc)](_0x3cd34b,_0x1a9e77){const _0x1ca901=_0x3f905d;if(this[_0x1ca901(0x1b1)](_0x1a9e77['id']))return;let _0x1aebe5=_0x1a9e77[_0x1ca901(0x1aa)];if(!_0x1aebe5&&_0x3cd34b[_0x1ca901(0x1b3)])try{_0x1aebe5=await _0x3cd34b[_0x1ca901(0x1b3)](_0x1a9e77['id']);}catch(_0x375ef){return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1d1),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'originalError':_0x375ef}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}if(_0x1aebe5)switch(_0x1a9e77[_0x1ca901(0x15e)]){case _0x2f6bc3[_0x1ca901(0x193)]:if(_0x1ca901(0x1a6)!=typeof _0x1aebe5)return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x1a6),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});await this[_0x1ca901(0x1bb)](_0x1aebe5,{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']});break;case _0x2f6bc3[_0x1ca901(0x1db)]:if(!(_0x1aebe5 instanceof File))return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x18a),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});await this[_0x1ca901(0x1ca)]([_0x1aebe5],{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']});break;case _0x2f6bc3[_0x1ca901(0x1e8)]:if(_0x1ca901(0x19e)!=typeof _0x1aebe5||!(_0x1ca901(0x1a1)in _0x1aebe5)||!(_0x1ca901(0x15e)in _0x1aebe5))return void this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x16c),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'expectedType':_0x1ca901(0x18e),'actualType':typeof _0x1aebe5}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});_0x1aebe5=AIChatContext[_0x1ca901(0x19c)](_0x1aebe5,_0x1a9e77[_0x1ca901(0x17b)]),await this[_0x1ca901(0x1ca)]([_0x1aebe5],{'label':_0x1a9e77[_0x1ca901(0x17b)],'resourceId':_0x1a9e77['id']},_0x2f6bc3[_0x1ca901(0x1e8)]);break;default:this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1be),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id'],'resourceType':_0x1a9e77[_0x1ca901(0x15e)]}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}else this[_0x1ca901(0x18f)](_0x1ca901(0x1b8),{'error':new _0x6ff7d9(_0x1ca901(0x1ce),this,{'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']}),'resourceId':_0x1a9e77['id'],'sourceId':_0x3cd34b['id']});}static[_0x3f905d(0x19c)](_0x2c39fd,_0xbee453){const _0x426fac=_0x3f905d;switch(_0x2c39fd[_0x426fac(0x15e)]){case _0x59b10e[_0x426fac(0x1c7)]:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x1bc)});case _0x59b10e[_0x426fac(0x160)]:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x16a)});default:return new File([_0x2c39fd[_0x426fac(0x1a1)]],_0xbee453,{'type':_0x426fac(0x16b)});}}static[_0x3f905d(0x1a2)](_0x3ebb4b){const _0x109206=_0x3f905d;switch(_0x3ebb4b[_0x109206(0x15e)]){case _0x2f6bc3[_0x109206(0x1db)]:return{'type':_0x2f6bc3[_0x109206(0x1db)],'id':_0x3ebb4b['id']};case _0x2f6bc3[_0x109206(0x193)]:return{'type':_0x2f6bc3[_0x109206(0x193)],'id':_0x3ebb4b['id']};case _0x2f6bc3[_0x109206(0x1c6)]:return{'type':_0x2f6bc3[_0x109206(0x1c6)],'id':_0x3ebb4b['id'],..._0x3ebb4b[_0x109206(0x190)]?.[_0x109206(0x1cd)]&&{'selection':_0x3ebb4b[_0x109206(0x190)]}};case _0x2f6bc3[_0x109206(0x1e8)]:return{'type':_0x2f6bc3[_0x109206(0x1db)],'id':_0x3ebb4b['id']};default:return null;}}[_0x3f905d(0x16d)](_0x3c1f15,_0x5b4a04=!0x1){const _0x4fc5f7=_0x3f905d;if(this[_0x4fc5f7(0x1e2)][_0x4fc5f7(0x1d6)](_0x3c1f15[_0x4fc5f7(0x1da)],_0x3c1f15),_0x3c1f15[_0x4fc5f7(0x1ad)]||this[_0x4fc5f7(0x18f)](_0x4fc5f7(0x195),{'contextItem':_0x3c1f15,'isLoading':_0x5b4a04}),_0x4fc5f7(0x1b5)===_0x3c1f15[_0x4fc5f7(0x1da)]&&this[_0x4fc5f7(0x19d)](),_0x3c1f15[_0x4fc5f7(0x1b2)]){const _0x4639cf=this[_0x4fc5f7(0x1b7)](_0x3c1f15[_0x4fc5f7(0x1b2)]);_0x4639cf&&_0x4639cf[_0x4fc5f7(0x17d)](_0x340657=>{const _0xaa620a=_0x4fc5f7;this[_0xaa620a(0x172)](_0x340657,_0x3c1f15[_0xaa620a(0x1b2)],!0x0);});}}[_0x3f905d(0x168)](_0x26dbd4){const _0x41aed3=_0x3f905d,_0x5a2db0=this[_0x41aed3(0x1e2)][_0x41aed3(0x179)](_0x26dbd4),_0x54736f=this[_0x41aed3(0x182)][_0x41aed3(0x179)](_0x26dbd4);if(_0x54736f&&(_0x54736f[_0x41aed3(0x174)](),this[_0x41aed3(0x182)][_0x41aed3(0x1e9)](_0x26dbd4)),_0x5a2db0?.[_0x41aed3(0x1b2)]){const _0x539a0e=this[_0x41aed3(0x1b7)](_0x5a2db0[_0x41aed3(0x1b2)]);_0x539a0e&&_0x539a0e[_0x41aed3(0x17d)](_0x5ac443=>{const _0x2d7169=_0x41aed3;this[_0x2d7169(0x172)](_0x5ac443,_0x5a2db0[_0x2d7169(0x1b2)],!0x1);});}this[_0x41aed3(0x1e2)][_0x41aed3(0x1e9)](_0x26dbd4),this[_0x41aed3(0x18f)](_0x41aed3(0x1a8),{'uiId':_0x26dbd4,'type':_0x5a2db0?.[_0x41aed3(0x15e)]}),_0x41aed3(0x1b5)===_0x26dbd4&&this[_0x41aed3(0x19d)]();}[_0x3f905d(0x196)](_0x194ffe,_0x5f4347){const _0x5772ee=_0x3f905d;if(this[_0x5772ee(0x1e2)][_0x5772ee(0x165)](_0x194ffe[_0x5772ee(0x1da)])&&(this[_0x5772ee(0x1e2)][_0x5772ee(0x1d6)](_0x194ffe[_0x5772ee(0x1da)],_0x194ffe),this[_0x5772ee(0x18f)](_0x5772ee(0x162),{'contextItem':_0x194ffe,'isLoading':_0x5f4347}),_0x194ffe[_0x5772ee(0x1b2)])){const _0x1b18a5=this[_0x5772ee(0x1b7)](_0x194ffe[_0x5772ee(0x1b2)]);_0x1b18a5&&_0x1b18a5[_0x5772ee(0x17d)](_0x5c4929=>{const _0x4b5ff2=_0x5772ee;this[_0x4b5ff2(0x172)](_0x5c4929,_0x194ffe[_0x4b5ff2(0x1b2)],!0x0);});}}[_0x3f905d(0x166)](_0x5c7e01){const _0x3a8c79=_0x3f905d;this[_0x3a8c79(0x192)][_0x3a8c79(0x1d6)](_0x5c7e01[_0x3a8c79(0x1da)],_0x5c7e01);}[_0x3f905d(0x169)](){const _0x99081f=_0x3f905d;this[_0x99081f(0x1a9)]={'document':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x1c1)]?.[_0x99081f(0x1d3)],'isHidden':!0x1},'urls':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x183)]?.[_0x99081f(0x1d3)]},'files':{'enabled':!0x1!==this[_0x99081f(0x1df)]?.[_0x99081f(0x1d5)]?.[_0x99081f(0x1d3)]},'sources':this[_0x99081f(0x1ab)]()},this[_0x99081f(0x18f)](_0x99081f(0x177),{'options':this[_0x99081f(0x1a9)]});}[_0x3f905d(0x1ab)](){const _0x1ea756=_0x3f905d;return this[_0x1ea756(0x1df)]?.[_0x1ea756(0x17a)]?.[_0x1ea756(0x1d4)](_0xed4b86=>({..._0xed4b86,'resources':[]}))??[];}[_0x3f905d(0x19d)](){const _0x36a3fc=_0x3f905d,_0x2adfd1=this[_0x36a3fc(0x1c9)]()||this[_0x36a3fc(0x1ac)]();this[_0x36a3fc(0x1a9)][_0x36a3fc(0x1c1)][_0x36a3fc(0x1d9)]=_0x2adfd1,this[_0x36a3fc(0x18f)](_0x36a3fc(0x177),{'options':this[_0x36a3fc(0x1a9)]});}[_0x3f905d(0x1b1)](_0x5af946){const _0x36f18e=_0x3f905d;for(const _0x3381de of this[_0x36f18e(0x1e2)][_0x36f18e(0x188)]())if(_0x3381de[_0x36f18e(0x1b2)]===_0x5af946)return!0x0;for(const _0x3efb89 of this[_0x36f18e(0x192)][_0x36f18e(0x188)]())if(_0x3efb89[_0x36f18e(0x1b2)]===_0x5af946)return!0x0;return!0x1;}[_0x3f905d(0x1b7)](_0x3a45d8){const _0x5b890b=_0x3f905d,_0x4e61e6=[];for(const _0x1cf325 of this[_0x5b890b(0x1a9)][_0x5b890b(0x17a)]){_0x1cf325[_0x5b890b(0x178)][_0x5b890b(0x1c5)](_0x56c611=>_0x56c611['id']===_0x3a45d8)&&_0x4e61e6[_0x5b890b(0x1d2)](_0x1cf325['id']);}return 0x0===_0x4e61e6[_0x5b890b(0x1cd)]?null:_0x4e61e6;}[_0x3f905d(0x172)](_0x2c83b3,_0x177b92,_0x207fc0){const _0x71f066=_0x3f905d,_0x41d0b8=this[_0x71f066(0x1a9)][_0x71f066(0x17a)][_0x71f066(0x1c5)](_0x267504=>_0x267504['id']===_0x2c83b3);if(!_0x41d0b8)return;const _0x4f68ef=_0x41d0b8[_0x71f066(0x178)][_0x71f066(0x1c5)](_0x295144=>_0x295144['id']===_0x177b92);_0x4f68ef&&(_0x4f68ef[_0x71f066(0x191)]=_0x207fc0,this[_0x71f066(0x18f)](_0x71f066(0x1b9),{'sourceId':_0x2c83b3,'resourceId':_0x177b92,'isInContext':_0x207fc0}));}[_0x3f905d(0x194)](_0x1c0c50){const _0x34c056=_0x3f905d;this[_0x34c056(0x1bd)][_0x34c056(0x1d6)](_0x1c0c50,!0x0),this[_0x34c056(0x1bd)][_0x34c056(0x163)]&&this[_0x34c056(0x18f)](_0x34c056(0x184),{'isUploadInProgress':!0x0});}[_0x3f905d(0x1e1)](_0x516a7b){const _0x23bf43=_0x3f905d;this[_0x23bf43(0x1bd)][_0x23bf43(0x1e9)](_0x516a7b),0x0===this[_0x23bf43(0x1bd)][_0x23bf43(0x163)]&&this[_0x23bf43(0x18f)](_0x23bf43(0x184),{'isUploadInProgress':!0x1});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x564161=_0x17a9;(function(_0x3fd439,_0x367d41){const _0x39a8e5=_0x17a9,_0x5e57c9=_0x3fd439();while(!![]){try{const _0x3624ab=parseInt(_0x39a8e5(0xdc))/0x1+parseInt(_0x39a8e5(0x10a))/0x2+parseInt(_0x39a8e5(0xac))/0x3*(parseInt(_0x39a8e5(0x10c))/0x4)+-parseInt(_0x39a8e5(0x118))/0x5+-parseInt(_0x39a8e5(0x109))/0x6*(-parseInt(_0x39a8e5(0xdd))/0x7)+-parseInt(_0x39a8e5(0xad))/0x8+parseInt(_0x39a8e5(0xc3))/0x9;if(_0x3624ab===_0x367d41)break;else _0x5e57c9['push'](_0x5e57c9['shift']());}catch(_0x10cc2c){_0x5e57c9['push'](_0x5e57c9['shift']());}}}(_0x1cba,0x96e3d));import{CKEditorError as _0x331d28,EmitterMixin as _0x38ba43,logWarning as _0x1ff566}from'ckeditor5/src/utils.js';function _0x17a9(_0x558ff4,_0x168baf){const _0x1cba7b=_0x1cba();return _0x17a9=function(_0x17a922,_0x54bf01){_0x17a922=_0x17a922-0xa7;let _0x836eb7=_0x1cba7b[_0x17a922];return _0x836eb7;},_0x17a9(_0x558ff4,_0x168baf);}import{AI_MODEL_EVENT_NAMES as _0x1a4548}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x31df35,AI_CONTEXT_MODEL_EVENT_NAMES as _0x250af1}from'./aichatcontext.js';import{AICapabilities as _0x3e5c6b,CAPABILITIES_MODEL_EVENT_NAMES as _0x239143}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x5218f7}from'./aichatinteraction.js';function _0x1cba(){const _0x117421=['options','isCurrentDocumentInContext','content','_processMessagesToInteractions','interactionCreated','fetchConversation','createReply','5940685rreCCG','selectedModel','chatContext','startConversation','model','removeFromContext','87DSqoAF','6986120BVxfQB','ai-chat-conversation-start-failed','text','updateCurrentDocument','splice','createInteraction','user','length','addFilesToContext','isCurrentDocumentInConversation','connector','reset','getConversation','_extractContextItems','handleUserInteraction','push','selectedModelId','modification-delta','ai-chat-conversation-start-no-model-selected','group','sessionId','chatModels','2370285eFZETb','appendContent','getAll','isStarted','getInteraction','toggleReasoning','ai-chat-conversation-init-from-id-failed','getEditor','getDocumentContext','removeSelectionFromContext','getMessages','currentInteraction','updateCurrentDocumentInContext','setConversationTitle','prompt','load','removeInteraction','type','destroy','toggleWebSearch','ai-chat-conversation-already-started','addUrlToContext','start','getCapabilitiesConfig','stop','777073ZhfmSx','1860145yjUDpK','isAvailable','text-delta','modelSelected','ai-chat-handle-user-interaction-already-in-progress','assistant','title','fetchConversationMessages','capabilities','chatCapabilities','role','reasoning','conversationStarted','contextItems','fire','message','ai-chat-handle-user-conversation-not-initialized','currentReply','set','addToConversationContext','ai-chat-conversation-set-model-not-available','conversationId','addCurrentDocumentToContext','addSelectionToContext','getPendingContextItems','stack','getModel','setModel','getCurrentDocumentContext','error','toLowerCase','delegate','loadSourceResources','interactions','addResourceToContext','conversationInitialized','quickActionData','getAvailableModels','isSelectionInContext','attributes','ai-chat-conversation-set-model-null','lastInteraction','webSearch','ai-chat-conversation-init-failed','6WhjjvT','2210686RKJBKZ','init','36956ZATnZD','find','hasOwn','indexOf','populateFromMessage'];_0x1cba=function(){return _0x117421;};return _0x1cba();}export class AIChatConversation extends _0x38ba43(){['id'];[_0x564161(0xc6)]=!0x1;[_0x564161(0xfe)]=[];[_0x564161(0xce)];[_0x564161(0xa7)];[_0x564161(0xb7)];[_0x564161(0x111)];constructor(_0x4b0c06){const _0x116793=_0x564161;super(),this[_0x116793(0x111)]=_0x4b0c06,this[_0x116793(0xb7)]=_0x4b0c06[_0x116793(0xb7)],this[_0x116793(0xc2)]=_0x4b0c06[_0x116793(0xc2)],this['id']=_0x4b0c06[_0x116793(0xf2)];}async[_0x564161(0x10b)](_0xed46b2){const _0x36d669=_0x564161;try{this[_0x36d669(0xa8)]=new _0x31df35({'connector':this[_0x36d669(0xb7)],'config':_0xed46b2,'ownerId':this['id']}),this[_0x36d669(0xa8)][_0x36d669(0xfc)](..._0x250af1)['to'](this),this[_0x36d669(0xa8)][_0x36d669(0x10b)](),this[_0x36d669(0xe6)]=new _0x3e5c6b(),this[_0x36d669(0xe6)][_0x36d669(0xfc)](..._0x239143)['to'](this),this[_0x36d669(0xe6)][_0x36d669(0x10b)]();const _0x40889d=await this[_0x36d669(0xc2)][_0x36d669(0x102)]();this[_0x36d669(0xeb)](_0x36d669(0x100),{'availableModels':_0x40889d});const _0x312e54=await this[_0x36d669(0xc2)][_0x36d669(0xf7)](this[_0x36d669(0x111)][_0x36d669(0xbd)]);_0x312e54&&await this[_0x36d669(0xf8)](_0x312e54);}catch(_0x30f775){const _0x1e8825=new _0x331d28(_0x36d669(0x108),null,{'message':_0x30f775[_0x36d669(0xec)]});_0x1e8825[_0x36d669(0xf6)]=_0x30f775[_0x36d669(0xf6)],this[_0x36d669(0xeb)](_0x36d669(0xfa),{'error':_0x1e8825});}}async[_0x564161(0xd9)](){const _0x42c27d=_0x564161;if(this[_0x42c27d(0xc6)])throw new _0x331d28(_0x42c27d(0xd7),null,{'conversation':this});if(!this[_0x42c27d(0xa7)])throw new _0x331d28(_0x42c27d(0xbf),null,{'conversation':this});try{const {id:_0xefc66d}=await this[_0x42c27d(0xb7)][_0x42c27d(0xa9)](this['id'],this[_0x42c27d(0x111)][_0x42c27d(0xc0)])[_0x42c27d(0xb9)]();this['id']=_0xefc66d,this[_0x42c27d(0xc6)]=!0x0,this[_0x42c27d(0xeb)](_0x42c27d(0xe9),{'conversationId':this['id'],'selectedModel':this[_0x42c27d(0xa7)]});}catch(_0xbf6366){const _0x50f32b=new _0x331d28(_0x42c27d(0xae),null,{'message':_0xbf6366[_0x42c27d(0xec)]});_0x50f32b[_0x42c27d(0xf6)]=_0xbf6366[_0x42c27d(0xf6)],this[_0x42c27d(0xeb)](_0x42c27d(0xfa),{'error':_0x50f32b});}}async[_0x564161(0xd2)](_0x32118b,_0x22e269){const _0x2168dd=_0x564161;try{const _0xd843d7=await this[_0x2168dd(0xb7)][_0x2168dd(0x116)](_0x32118b)[_0x2168dd(0xb9)](),_0x5dc57f=await this[_0x2168dd(0xb7)][_0x2168dd(0xe4)](_0x32118b)[_0x2168dd(0xcd)](),_0x277a01=_0x5dc57f[0x0][_0x2168dd(0xaa)];this[_0x2168dd(0xc6)]=!0x0,this['id']=_0xd843d7['id'],_0x2168dd(0xe3)in _0xd843d7?this[_0x2168dd(0xeb)](_0x2168dd(0xd0),_0xd843d7[_0x2168dd(0xe3)],!0x0):this[_0x2168dd(0xeb)](_0x2168dd(0xd0),'',!0x0);const _0x56e75b=(await this[_0x2168dd(0xc2)][_0x2168dd(0xc5)]())[_0x2168dd(0x10d)](_0x4bd88f=>_0x4bd88f['id'][_0x2168dd(0xfb)]()===_0x277a01[_0x2168dd(0xfb)]());return this[_0x2168dd(0xa7)]=_0x56e75b,this[_0x2168dd(0xeb)](_0x2168dd(0xe0),{'selectedModel':_0x56e75b,'isDisabled':!0x0}),await this[_0x2168dd(0x114)](_0x5dc57f,_0x22e269,_0x277a01),this[_0x2168dd(0xce)]=void 0x0,this;}catch(_0x64359f){const _0x3fa1a2=new _0x331d28(_0x2168dd(0xc9),null,{'message':_0x64359f[_0x2168dd(0xec)],'conversationId':_0x32118b});throw _0x3fa1a2[_0x2168dd(0xf6)]=_0x64359f[_0x2168dd(0xf6)],this[_0x2168dd(0xeb)](_0x2168dd(0xfa),{'error':_0x3fa1a2}),_0x3fa1a2;}}async[_0x564161(0x114)](_0x3a176c,_0x23ae56,_0x24f95e){const _0x2b44c1=_0x564161;let _0x297919;for(const _0x171022 of _0x3a176c)if(_0x2b44c1(0xb3)===_0x171022[_0x2b44c1(0xe7)]){const _0xa77591=await this[_0x2b44c1(0xba)](_0x171022),_0x4d75c0={'isReasoningEnabled':Object[_0x2b44c1(0x10e)](_0x171022[_0x2b44c1(0xe5)],_0x2b44c1(0xe8)),'isWebSearchEnabled':Object[_0x2b44c1(0x10e)](_0x171022[_0x2b44c1(0xe5)],_0x2b44c1(0x107))};_0x297919=this[_0x2b44c1(0xb2)]({'userMessage':_0x171022[_0x2b44c1(0xd1)],'contextItems':_0xa77591,'capabilities':_0x4d75c0,'modelId':_0x24f95e,'quickActionData':_0x171022[_0x2b44c1(0x104)]?.[_0x2b44c1(0x101)]}),this[_0x2b44c1(0xce)]=_0x297919,this[_0x2b44c1(0xa8)][_0x2b44c1(0xf0)](this[_0x2b44c1(0xce)][_0x2b44c1(0xea)]);}else{if(_0x2b44c1(0xe2)===_0x171022[_0x2b44c1(0xe7)]&&_0x297919)for(const _0x44c569 of _0x171022[_0x2b44c1(0x113)]){const _0x4fc57e=_0x2b44c1(0xaf)===_0x44c569[_0x2b44c1(0xd4)]?_0x2b44c1(0xdf):_0x2b44c1(0xbe),_0x51ad9a=_0x297919[_0x2b44c1(0xcb)]()?.[_0x2b44c1(0xc1)]!==_0x23ae56;_0x297919[_0x2b44c1(0xee)]=_0x297919[_0x2b44c1(0x117)]({'type':_0x4fc57e,'isDone':!0x0,'interactionId':_0x297919['id'],'areActionsDisabled':_0x51ad9a}),_0x297919[_0x2b44c1(0xee)][_0x2b44c1(0xc4)](_0x44c569[_0x2b44c1(0x113)]);}}}async[_0x564161(0xba)](_0x12a40f){const _0x388f49=_0x564161,_0x264321=new Map();if(!_0x12a40f[_0x388f49(0x113)])return _0x264321;for(const _0x163b95 of _0x12a40f[_0x388f49(0x113)]){const _0xdb229f=await this[_0x388f49(0xa8)][_0x388f49(0x110)](_0x163b95);_0xdb229f&&_0x264321[_0x388f49(0xef)](_0xdb229f['id'],_0xdb229f);}return _0x264321;}async[_0x564161(0xbb)]({userMessage:_0x8a44b4,quickActionData:_0xecd4ae}){const _0x45f005=_0x564161;if(!this[_0x45f005(0xc6)])throw new _0x331d28(_0x45f005(0xed),null,{'conversation':this});if(this[_0x45f005(0xce)])throw new _0x331d28(_0x45f005(0xe1),null,{'conversation':this});try{const _0xbf6313=this[_0x45f005(0xa8)][_0x45f005(0xf5)](),_0x1b151a=this[_0x45f005(0xe6)][_0x45f005(0xda)](),_0x2e6d11=this[_0x45f005(0xa7)]['id'];this[_0x45f005(0xce)]=this[_0x45f005(0xb2)]({'userMessage':_0x8a44b4,'contextItems':_0xbf6313,'capabilities':_0x1b151a,'modelId':_0x2e6d11,'quickActionData':_0xecd4ae}),await this[_0x45f005(0xce)][_0x45f005(0xd9)](),this[_0x45f005(0xa8)][_0x45f005(0xf0)](this[_0x45f005(0xce)][_0x45f005(0xea)]);}catch(_0x3d8e57){this[_0x45f005(0xeb)](_0x45f005(0xfa),{'interactionId':this[_0x45f005(0xce)]?this[_0x45f005(0xce)]['id']:void 0x0,'error':_0x3d8e57});}finally{this[_0x45f005(0xce)]?.[_0x45f005(0xdb)](),this[_0x45f005(0xce)]=void 0x0;}}[_0x564161(0xb2)]({userMessage:_0xfc20ee,contextItems:_0x5f6a9d,capabilities:_0xed42ad,modelId:_0x8a6b,quickActionData:_0x3d34b5}){const _0x2b8e5d=_0x564161,_0x429a28=new _0x5218f7({'userMessage':_0xfc20ee,'contextItems':_0x5f6a9d,'capabilities':_0xed42ad,'conversationId':this['id'],'connector':this[_0x2b8e5d(0xb7)],'editor':this[_0x2b8e5d(0x111)][_0x2b8e5d(0xca)]&&this[_0x2b8e5d(0x111)][_0x2b8e5d(0xca)](),'model':_0x8a6b,'quickActionData':_0x3d34b5});return _0x429a28[_0x2b8e5d(0xfc)](..._0x1a4548)['to'](this),this[_0x2b8e5d(0xfe)][_0x2b8e5d(0xbc)](_0x429a28),this[_0x2b8e5d(0xeb)](_0x2b8e5d(0x115),_0x429a28),_0x429a28;}[_0x564161(0xc7)](_0x5e9064){const _0x539ab4=_0x564161;return this[_0x539ab4(0xfe)][_0x539ab4(0x10d)](_0x2c9fe2=>_0x2c9fe2['id']===_0x5e9064);}[_0x564161(0xd3)](_0x301014){const _0x5622ff=_0x564161,_0x77f4b0=this[_0x5622ff(0xc7)](_0x301014);_0x77f4b0&&(_0x77f4b0[_0x5622ff(0xd5)](),this[_0x5622ff(0xfe)][_0x5622ff(0xb1)](this[_0x5622ff(0xfe)][_0x5622ff(0x10f)](_0x77f4b0),0x1));}get[_0x564161(0x106)](){const _0x4717c2=_0x564161;return this[_0x4717c2(0xfe)][this[_0x4717c2(0xfe)][_0x4717c2(0xb4)]-0x1];}[_0x564161(0xf3)](_0x45bbe6){const _0x1fd483=_0x564161;this[_0x1fd483(0xa8)][_0x1fd483(0xf3)](_0x45bbe6);}async[_0x564161(0xcf)]({content:_0x3245d4,version:_0x2f0ef7,sessionId:_0x10cafd,selections:_0x5119fd}){const _0x2c17b7=_0x564161;await this[_0x2c17b7(0xa8)][_0x2c17b7(0xb0)](_0x3245d4,_0x2f0ef7,_0x10cafd,_0x5119fd);}[_0x564161(0xf9)](){const _0x118621=_0x564161;return this[_0x118621(0xce)]?.[_0x118621(0xcb)]()?.[_0x118621(0x113)]||'';}[_0x564161(0xf4)](_0x3253ee){const _0xe483d1=_0x564161;this[_0xe483d1(0xa8)][_0xe483d1(0xf4)](_0x3253ee);}[_0x564161(0xcc)](){const _0x32c9f5=_0x564161;this[_0x32c9f5(0xa8)][_0x32c9f5(0xcc)]();}[_0x564161(0xb5)](_0x5776b0){const _0x3c1b9d=_0x564161;this[_0x3c1b9d(0xa8)][_0x3c1b9d(0xb5)](_0x5776b0);}[_0x564161(0xd8)](_0x50fbd9){const _0x2ffe59=_0x564161;this[_0x2ffe59(0xa8)][_0x2ffe59(0xd8)](_0x50fbd9);}[_0x564161(0xff)](_0x16462e,_0x1b89ff){const _0x45f670=_0x564161;this[_0x45f670(0xa8)][_0x45f670(0xff)](_0x16462e,_0x1b89ff);}[_0x564161(0xfd)](_0x301b0f,_0x36e6b9,_0x3e8027){const _0x5373fe=_0x564161;return this[_0x5373fe(0xa8)][_0x5373fe(0xfd)](_0x301b0f,_0x36e6b9,_0x3e8027);}[_0x564161(0xab)](_0x46245d){const _0x462a8e=_0x564161;this[_0x462a8e(0xa8)][_0x462a8e(0xab)](_0x46245d);}[_0x564161(0xd6)](){const _0x50a67e=_0x564161;this[_0x50a67e(0xe6)][_0x50a67e(0xd6)]();}[_0x564161(0xc8)](){const _0x2de1aa=_0x564161;this[_0x2de1aa(0xe6)][_0x2de1aa(0xc8)]();}[_0x564161(0x112)](){const _0x14cc66=_0x564161;return this[_0x14cc66(0xa8)][_0x14cc66(0x112)]();}[_0x564161(0xb6)](){const _0xf24002=_0x564161;return this[_0xf24002(0xa8)][_0xf24002(0xb6)]();}[_0x564161(0x103)](){const _0x53bf12=_0x564161;return this[_0x53bf12(0xa8)][_0x53bf12(0x103)]();}async[_0x564161(0xf8)](_0x37164e){const _0x586edf=_0x564161;_0x37164e?!0x1===await this[_0x586edf(0xc2)][_0x586edf(0xde)](_0x37164e)&&(_0x1ff566(_0x586edf(0xf1),{'conversation':this,'model':_0x37164e}),_0x37164e=(await this[_0x586edf(0xc2)][_0x586edf(0x102)]())[0x0]):(_0x1ff566(_0x586edf(0x105),{'conversation':this}),_0x37164e=(await this[_0x586edf(0xc2)][_0x586edf(0x102)]())[0x0]),_0x37164e['id']!==this[_0x586edf(0xa7)]?.['id']&&(this[_0x586edf(0xa7)]=_0x37164e,this[_0x586edf(0xe6)][_0x586edf(0xb8)](),this[_0x586edf(0xeb)](_0x586edf(0xe0),{'selectedModel':_0x37164e}));}}
|
|
23
|
+
const _0x3d8b17=_0x7e14;(function(_0x9f2140,_0x2a6829){const _0x40baaa=_0x7e14,_0x2fd8f1=_0x9f2140();while(!![]){try{const _0x141d9e=parseInt(_0x40baaa(0x18c))/0x1+parseInt(_0x40baaa(0x1b9))/0x2+-parseInt(_0x40baaa(0x1b2))/0x3*(parseInt(_0x40baaa(0x17d))/0x4)+-parseInt(_0x40baaa(0x19a))/0x5+-parseInt(_0x40baaa(0x189))/0x6*(parseInt(_0x40baaa(0x161))/0x7)+-parseInt(_0x40baaa(0x177))/0x8+parseInt(_0x40baaa(0x1aa))/0x9*(parseInt(_0x40baaa(0x15e))/0xa);if(_0x141d9e===_0x2a6829)break;else _0x2fd8f1['push'](_0x2fd8f1['shift']());}catch(_0x3b4eb3){_0x2fd8f1['push'](_0x2fd8f1['shift']());}}}(_0x50b5,0xbf467));function _0x50b5(){const _0x4de6f8=['updateCurrentDocument','isCurrentDocumentInContext','getConversation','modification-delta','destroy','3763730zDzJkO','sessionId','ai-chat-conversation-already-started','7ApVdRh','reset','startConversation','error','getAll','getInteraction','getDocumentContext','hasOwn','contextItems','chatCapabilities','model','_extractContextItems','attributes','isAvailable','lastInteraction','selectedModel','interactions','getCapabilitiesConfig','ai-chat-conversation-init-from-id-failed','ai-chat-handle-user-conversation-not-initialized','_processMessagesToInteractions','addFilesToContext','12489240xfEKkC','fire','group','indexOf','conversationInitialized','addUrlToContext','3988888wsyySR','conversationStarted','addSelectionToContext','getAvailableModels','ai-chat-conversation-set-model-null','createReply','removeInteraction','ai-chat-conversation-set-model-not-available','addResourceToContext','options','reasoning','text','5786448ETQuLt','ai-chat-conversation-start-failed','modelSelected','472397aUwLXN','stop','content','webSearch','getEditor','ai-chat-conversation-init-failed','delegate','getPendingContextItems','conversationId','message','appendContent','addToConversationContext','find','prompt','5632320XlGEPD','toggleWebSearch','isStarted','currentInteraction','loadSourceResources','ai-chat-handle-user-interaction-already-in-progress','toLowerCase','interactionCreated','currentReply','removeSelectionFromContext','createInteraction','init','quickActionData','capabilities','user','toggleReasoning','117hqVSGO','push','role','title','connector','set','isSelectionInContext','type','3kfqjYP','length','chatContext','load','isCurrentDocumentInConversation','updateCurrentDocumentInContext','text-delta','134932mXxBug','getCurrentDocumentContext','setModel','stack','chatModels','assistant','getModel','fetchConversationMessages','removeFromContext','selectedModelId','splice','ai-chat-conversation-start-no-model-selected','handleUserInteraction','getMessages','setConversationTitle','start','populateFromMessage','fetchConversation','addCurrentDocumentToContext'];_0x50b5=function(){return _0x4de6f8;};return _0x50b5();}import{CKEditorError as _0x5cd399,EmitterMixin as _0x4ccff6,logWarning as _0x4c944b}from'ckeditor5/src/utils.js';import{AI_MODEL_EVENT_NAMES as _0x4b5fbe}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x31de19,AI_CONTEXT_MODEL_EVENT_NAMES as _0x8b9e8b}from'./aichatcontext.js';function _0x7e14(_0x19fbe8,_0x7e7b06){const _0x50b520=_0x50b5();return _0x7e14=function(_0x7e14e7,_0x4ed6ee){_0x7e14e7=_0x7e14e7-0x147;let _0x39d9fd=_0x50b520[_0x7e14e7];return _0x39d9fd;},_0x7e14(_0x19fbe8,_0x7e7b06);}import{AICapabilities as _0x1f24d1,CAPABILITIES_MODEL_EVENT_NAMES as _0x5b0eb5}from'../../aicore/model/aicapabilities.js';import{AIChatInteraction as _0x111896}from'./aichatinteraction.js';export class AIChatConversation extends _0x4ccff6(){['id'];[_0x3d8b17(0x19c)]=!0x1;[_0x3d8b17(0x171)]=[];[_0x3d8b17(0x19d)];[_0x3d8b17(0x170)];[_0x3d8b17(0x1ae)];[_0x3d8b17(0x186)];constructor(_0x530b0f){const _0x4ac02a=_0x3d8b17;super(),this[_0x4ac02a(0x186)]=_0x530b0f,this[_0x4ac02a(0x1ae)]=_0x530b0f[_0x4ac02a(0x1ae)],this[_0x4ac02a(0x14a)]=_0x530b0f[_0x4ac02a(0x14a)],this['id']=_0x530b0f[_0x4ac02a(0x194)];}async[_0x3d8b17(0x1a5)](_0x16b680){const _0x1b6bea=_0x3d8b17;try{this[_0x1b6bea(0x1b4)]=new _0x31de19({'connector':this[_0x1b6bea(0x1ae)],'config':_0x16b680,'ownerId':this['id']}),this[_0x1b6bea(0x1b4)][_0x1b6bea(0x192)](..._0x8b9e8b)['to'](this),this[_0x1b6bea(0x1b4)][_0x1b6bea(0x1a5)](),this[_0x1b6bea(0x16a)]=new _0x1f24d1(),this[_0x1b6bea(0x16a)][_0x1b6bea(0x192)](..._0x5b0eb5)['to'](this),this[_0x1b6bea(0x16a)][_0x1b6bea(0x1a5)]();const _0x2c2c5b=await this[_0x1b6bea(0x14a)][_0x1b6bea(0x180)]();this[_0x1b6bea(0x178)](_0x1b6bea(0x17b),{'availableModels':_0x2c2c5b});const _0x25fc41=await this[_0x1b6bea(0x14a)][_0x1b6bea(0x14c)](this[_0x1b6bea(0x186)][_0x1b6bea(0x14f)]);_0x25fc41&&await this[_0x1b6bea(0x148)](_0x25fc41);}catch(_0x443ec2){const _0x4e0f8c=new _0x5cd399(_0x1b6bea(0x191),null,{'message':_0x443ec2[_0x1b6bea(0x195)]});_0x4e0f8c[_0x1b6bea(0x149)]=_0x443ec2[_0x1b6bea(0x149)],this[_0x1b6bea(0x178)](_0x1b6bea(0x164),{'error':_0x4e0f8c});}}async[_0x3d8b17(0x155)](){const _0x5865d5=_0x3d8b17;if(this[_0x5865d5(0x19c)])throw new _0x5cd399(_0x5865d5(0x160),null,{'conversation':this});if(!this[_0x5865d5(0x170)])throw new _0x5cd399(_0x5865d5(0x151),null,{'conversation':this});try{const {id:_0x3fbd63}=await this[_0x5865d5(0x1ae)][_0x5865d5(0x163)](this['id'],this[_0x5865d5(0x186)][_0x5865d5(0x179)])[_0x5865d5(0x15b)]();this['id']=_0x3fbd63,this[_0x5865d5(0x19c)]=!0x0,this[_0x5865d5(0x178)](_0x5865d5(0x17e),{'conversationId':this['id'],'selectedModel':this[_0x5865d5(0x170)]});}catch(_0x22f4a1){const _0x3476d6=new _0x5cd399(_0x5865d5(0x18a),null,{'message':_0x22f4a1[_0x5865d5(0x195)]});_0x3476d6[_0x5865d5(0x149)]=_0x22f4a1[_0x5865d5(0x149)],this[_0x5865d5(0x178)](_0x5865d5(0x164),{'error':_0x3476d6});}}async[_0x3d8b17(0x1b5)](_0x24df5c,_0x2e77e9){const _0x345c31=_0x3d8b17;try{const _0x3c8dfc=await this[_0x345c31(0x1ae)][_0x345c31(0x157)](_0x24df5c)[_0x345c31(0x15b)](),_0x3bfa42=await this[_0x345c31(0x1ae)][_0x345c31(0x14d)](_0x24df5c)[_0x345c31(0x153)](),_0x45ab4a=_0x3bfa42[0x0][_0x345c31(0x16b)];this[_0x345c31(0x19c)]=!0x0,this['id']=_0x3c8dfc['id'],_0x345c31(0x1ad)in _0x3c8dfc?this[_0x345c31(0x178)](_0x345c31(0x154),_0x3c8dfc[_0x345c31(0x1ad)],!0x0):this[_0x345c31(0x178)](_0x345c31(0x154),'',!0x0);const _0x4d7892=(await this[_0x345c31(0x14a)][_0x345c31(0x165)]())[_0x345c31(0x198)](_0x39ca9a=>_0x39ca9a['id'][_0x345c31(0x1a0)]()===_0x45ab4a[_0x345c31(0x1a0)]());return this[_0x345c31(0x170)]=_0x4d7892,this[_0x345c31(0x178)](_0x345c31(0x18b),{'selectedModel':_0x4d7892,'isDisabled':!0x0}),await this[_0x345c31(0x175)](_0x3bfa42,_0x2e77e9,_0x45ab4a),this[_0x345c31(0x19d)]=void 0x0,this;}catch(_0x4a4d42){const _0x133d11=new _0x5cd399(_0x345c31(0x173),null,{'message':_0x4a4d42[_0x345c31(0x195)],'conversationId':_0x24df5c});throw _0x133d11[_0x345c31(0x149)]=_0x4a4d42[_0x345c31(0x149)],this[_0x345c31(0x178)](_0x345c31(0x164),{'error':_0x133d11}),_0x133d11;}}async[_0x3d8b17(0x175)](_0x5c76b8,_0x4929ea,_0x267c2c){const _0x5d4ffb=_0x3d8b17;let _0x202122;for(const _0x39d162 of _0x5c76b8)if(_0x5d4ffb(0x1a8)===_0x39d162[_0x5d4ffb(0x1ac)]){const _0x4f1e05=await this[_0x5d4ffb(0x16c)](_0x39d162),_0x38fbdd={'isReasoningEnabled':Object[_0x5d4ffb(0x168)](_0x39d162[_0x5d4ffb(0x1a7)],_0x5d4ffb(0x187)),'isWebSearchEnabled':Object[_0x5d4ffb(0x168)](_0x39d162[_0x5d4ffb(0x1a7)],_0x5d4ffb(0x18f))};_0x202122=this[_0x5d4ffb(0x1a4)]({'userMessage':_0x39d162[_0x5d4ffb(0x199)],'contextItems':_0x4f1e05,'capabilities':_0x38fbdd,'modelId':_0x267c2c,'quickActionData':_0x39d162[_0x5d4ffb(0x16d)]?.[_0x5d4ffb(0x1a6)]}),this[_0x5d4ffb(0x19d)]=_0x202122,this[_0x5d4ffb(0x1b4)][_0x5d4ffb(0x197)](this[_0x5d4ffb(0x19d)][_0x5d4ffb(0x169)]);}else{if(_0x5d4ffb(0x14b)===_0x39d162[_0x5d4ffb(0x1ac)]&&_0x202122)for(const _0x21e6cc of _0x39d162[_0x5d4ffb(0x18e)]){const _0x468299=_0x5d4ffb(0x188)===_0x21e6cc[_0x5d4ffb(0x1b1)]?_0x5d4ffb(0x1b8):_0x5d4ffb(0x15c),_0x274bfb=_0x202122[_0x5d4ffb(0x167)]()?.[_0x5d4ffb(0x15f)]!==_0x4929ea;_0x202122[_0x5d4ffb(0x1a2)]=_0x202122[_0x5d4ffb(0x182)]({'type':_0x468299,'isDone':!0x0,'interactionId':_0x202122['id'],'areActionsDisabled':_0x274bfb}),_0x202122[_0x5d4ffb(0x1a2)][_0x5d4ffb(0x196)](_0x21e6cc[_0x5d4ffb(0x18e)]);}}}async[_0x3d8b17(0x16c)](_0x2a36be){const _0x5949fb=_0x3d8b17,_0x2248ab=new Map();if(!_0x2a36be[_0x5949fb(0x18e)])return _0x2248ab;for(const _0x13bc13 of _0x2a36be[_0x5949fb(0x18e)]){const _0x123321=await this[_0x5949fb(0x1b4)][_0x5949fb(0x156)](_0x13bc13);_0x123321&&_0x2248ab[_0x5949fb(0x1af)](_0x123321['id'],_0x123321);}return _0x2248ab;}async[_0x3d8b17(0x152)]({userMessage:_0x18d782,quickActionData:_0x39c718}){const _0x5024b4=_0x3d8b17;if(!this[_0x5024b4(0x19c)])throw new _0x5cd399(_0x5024b4(0x174),null,{'conversation':this});if(this[_0x5024b4(0x19d)])throw new _0x5cd399(_0x5024b4(0x19f),null,{'conversation':this});try{const _0x1b0a41=this[_0x5024b4(0x1b4)][_0x5024b4(0x193)](),_0x473d15=this[_0x5024b4(0x16a)][_0x5024b4(0x172)](),_0x48d51c=this[_0x5024b4(0x170)]['id'];this[_0x5024b4(0x19d)]=this[_0x5024b4(0x1a4)]({'userMessage':_0x18d782,'contextItems':_0x1b0a41,'capabilities':_0x473d15,'modelId':_0x48d51c,'quickActionData':_0x39c718}),await this[_0x5024b4(0x19d)][_0x5024b4(0x155)](),this[_0x5024b4(0x1b4)][_0x5024b4(0x197)](this[_0x5024b4(0x19d)][_0x5024b4(0x169)]);}catch(_0xf05fc5){this[_0x5024b4(0x178)](_0x5024b4(0x164),{'interactionId':this[_0x5024b4(0x19d)]?this[_0x5024b4(0x19d)]['id']:void 0x0,'error':_0xf05fc5});}finally{this[_0x5024b4(0x19d)]?.[_0x5024b4(0x18d)](),this[_0x5024b4(0x19d)]=void 0x0;}}[_0x3d8b17(0x1a4)]({userMessage:_0x782412,contextItems:_0x586aed,capabilities:_0x531c49,modelId:_0x523ddc,quickActionData:_0x475e31}){const _0x52011b=_0x3d8b17,_0x303b67=new _0x111896({'userMessage':_0x782412,'contextItems':_0x586aed,'capabilities':_0x531c49,'conversationId':this['id'],'connector':this[_0x52011b(0x1ae)],'editor':this[_0x52011b(0x186)][_0x52011b(0x190)]&&this[_0x52011b(0x186)][_0x52011b(0x190)](),'model':_0x523ddc,'quickActionData':_0x475e31});return _0x303b67[_0x52011b(0x192)](..._0x4b5fbe)['to'](this),this[_0x52011b(0x171)][_0x52011b(0x1ab)](_0x303b67),this[_0x52011b(0x178)](_0x52011b(0x1a1),_0x303b67),_0x303b67;}[_0x3d8b17(0x166)](_0x527be4){const _0x42d38a=_0x3d8b17;return this[_0x42d38a(0x171)][_0x42d38a(0x198)](_0x56a59b=>_0x56a59b['id']===_0x527be4);}[_0x3d8b17(0x183)](_0x5a42f2){const _0x5e79f8=_0x3d8b17,_0x55fc1a=this[_0x5e79f8(0x166)](_0x5a42f2);_0x55fc1a&&(_0x55fc1a[_0x5e79f8(0x15d)](),this[_0x5e79f8(0x171)][_0x5e79f8(0x150)](this[_0x5e79f8(0x171)][_0x5e79f8(0x17a)](_0x55fc1a),0x1));}get[_0x3d8b17(0x16f)](){const _0x1fbc8e=_0x3d8b17;return this[_0x1fbc8e(0x171)][this[_0x1fbc8e(0x171)][_0x1fbc8e(0x1b3)]-0x1];}[_0x3d8b17(0x158)](_0x17f94d){const _0x2c37f8=_0x3d8b17;this[_0x2c37f8(0x1b4)][_0x2c37f8(0x158)](_0x17f94d);}async[_0x3d8b17(0x1b7)]({content:_0x36b959,version:_0x58b395,sessionId:_0x584c71,selections:_0x4681fe}){const _0x9ee41a=_0x3d8b17;await this[_0x9ee41a(0x1b4)][_0x9ee41a(0x159)](_0x36b959,_0x58b395,_0x584c71,_0x4681fe);}[_0x3d8b17(0x147)](){const _0xc1b83b=_0x3d8b17;return this[_0xc1b83b(0x19d)]?.[_0xc1b83b(0x167)]()?.[_0xc1b83b(0x18e)]||'';}[_0x3d8b17(0x17f)](_0x14b905){const _0x2ec0eb=_0x3d8b17;this[_0x2ec0eb(0x1b4)][_0x2ec0eb(0x17f)](_0x14b905);}[_0x3d8b17(0x1a3)](){const _0x43b5f9=_0x3d8b17;this[_0x43b5f9(0x1b4)][_0x43b5f9(0x1a3)]();}[_0x3d8b17(0x176)](_0x3422ef){const _0x425e63=_0x3d8b17;this[_0x425e63(0x1b4)][_0x425e63(0x176)](_0x3422ef);}[_0x3d8b17(0x17c)](_0x37ec73){const _0x17d899=_0x3d8b17;this[_0x17d899(0x1b4)][_0x17d899(0x17c)](_0x37ec73);}[_0x3d8b17(0x185)](_0x15be05,_0x383728){const _0x18e68a=_0x3d8b17;this[_0x18e68a(0x1b4)][_0x18e68a(0x185)](_0x15be05,_0x383728);}[_0x3d8b17(0x19e)](_0x2c27c6,_0x4afe9c,_0x3fee95){const _0xa7980a=_0x3d8b17;return this[_0xa7980a(0x1b4)][_0xa7980a(0x19e)](_0x2c27c6,_0x4afe9c,_0x3fee95);}[_0x3d8b17(0x14e)](_0x216de7){const _0x5ee816=_0x3d8b17;this[_0x5ee816(0x1b4)][_0x5ee816(0x14e)](_0x216de7);}[_0x3d8b17(0x19b)](){const _0x5be922=_0x3d8b17;this[_0x5be922(0x16a)][_0x5be922(0x19b)]();}[_0x3d8b17(0x1a9)](){const _0x562973=_0x3d8b17;this[_0x562973(0x16a)][_0x562973(0x1a9)]();}[_0x3d8b17(0x15a)](){const _0xc27dc0=_0x3d8b17;return this[_0xc27dc0(0x1b4)][_0xc27dc0(0x15a)]();}[_0x3d8b17(0x1b6)](){const _0x2c99ba=_0x3d8b17;return this[_0x2c99ba(0x1b4)][_0x2c99ba(0x1b6)]();}[_0x3d8b17(0x1b0)](){const _0x51e7d3=_0x3d8b17;return this[_0x51e7d3(0x1b4)][_0x51e7d3(0x1b0)]();}async[_0x3d8b17(0x148)](_0x10f5be){const _0xd154db=_0x3d8b17;_0x10f5be?!0x1===await this[_0xd154db(0x14a)][_0xd154db(0x16e)](_0x10f5be)&&(_0x4c944b(_0xd154db(0x184),{'conversation':this,'model':_0x10f5be}),_0x10f5be=(await this[_0xd154db(0x14a)][_0xd154db(0x180)]())[0x0]):(_0x4c944b(_0xd154db(0x181),{'conversation':this}),_0x10f5be=(await this[_0xd154db(0x14a)][_0xd154db(0x180)]())[0x0]),_0x10f5be['id']!==this[_0xd154db(0x170)]?.['id']&&(this[_0xd154db(0x170)]=_0x10f5be,this[_0xd154db(0x16a)][_0xd154db(0x162)](),this[_0xd154db(0x178)](_0xd154db(0x18b),{'selectedModel':_0x10f5be}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
var _0x205777=_0x4ae5;function _0x3a9e(){var _0xb7d563=['queryAssistant','mapContextItemsToRequestData','2959380zNuvwn','conversationId','sendRequest','current-document','quickActionData','contextItems','capabilities','433650aniTuR','get','getCapabilitiesRequestData','738594GRjSOe','2514RXaIVX','537HOKjSV','connector','16637710MjsvTe','165328WkDVrQ','getDocumentContext','model','userMessage','634QDEZLP','273kwUEWp','7880vqAhUh'];_0x3a9e=function(){return _0xb7d563;};return _0x3a9e();}function _0x4ae5(_0x384667,_0x325797){var _0x3a9ed5=_0x3a9e();return _0x4ae5=function(_0x4ae585,_0x350d67){_0x4ae585=_0x4ae585-0x178;var _0x2fc83d=_0x3a9ed5[_0x4ae585];return _0x2fc83d;},_0x4ae5(_0x384667,_0x325797);}(function(_0x281007,_0x9032df){var _0x2ec7ac=_0x4ae5,_0x264fa5=_0x281007();while(!![]){try{var _0x2cc064=-parseInt(_0x2ec7ac(0x17d))/0x1+-parseInt(_0x2ec7ac(0x189))/0x2*(-parseInt(_0x2ec7ac(0x182))/0x3)+-parseInt(_0x2ec7ac(0x18e))/0x4+parseInt(_0x2ec7ac(0x18b))/0x5*(parseInt(_0x2ec7ac(0x181))/0x6)+-parseInt(_0x2ec7ac(0x18a))/0x7*(parseInt(_0x2ec7ac(0x185))/0x8)+parseInt(_0x2ec7ac(0x180))/0x9+parseInt(_0x2ec7ac(0x184))/0xa;if(_0x2cc064===_0x9032df)break;else _0x264fa5['push'](_0x264fa5['shift']());}catch(_0x255902){_0x264fa5['push'](_0x264fa5['shift']());}}}(_0x3a9e,0x7607f));import{AICapabilities as _0xa67426}from'../../aicore/model/aicapabilities.js';import{AIInteraction as _0x4be0fd}from'../../aicore/model/aiinteraction.js';import{AIChatContext as _0x57ebc4}from'./aichatcontext.js';export class AIChatInteraction extends _0x4be0fd{[_0x205777(0x188)];[_0x205777(0x18f)];[_0x205777(0x17b)]=new Map();[_0x205777(0x187)];[_0x205777(0x17a)];constructor(_0x402985){var _0x481f25=_0x205777;super(_0x402985),this[_0x481f25(0x18f)]=_0x402985[_0x481f25(0x18f)],this[_0x481f25(0x17b)]=_0x402985[_0x481f25(0x17b)],this[_0x481f25(0x17c)]=_0x402985[_0x481f25(0x17c)],this[_0x481f25(0x188)]=_0x402985[_0x481f25(0x188)],this[_0x481f25(0x187)]=_0x402985[_0x481f25(0x187)],this[_0x481f25(0x17a)]=_0x402985[_0x481f25(0x17a)];}async[_0x205777(0x178)](){var _0x2a4ce6=_0x205777;return this[_0x2a4ce6(0x183)][_0x2a4ce6(0x18c)]({'message':this[_0x2a4ce6(0x188)],'conversationId':this[_0x2a4ce6(0x18f)],'parts':_0x57ebc4[_0x2a4ce6(0x18d)](this[_0x2a4ce6(0x17b)]),'capabilities':_0xa67426[_0x2a4ce6(0x17f)](this[_0x2a4ce6(0x17c)]),'model':this[_0x2a4ce6(0x187)],'quickActionData':this[_0x2a4ce6(0x17a)]});}[_0x205777(0x186)](){var _0x188ad3=_0x205777;return this[_0x188ad3(0x17b)][_0x188ad3(0x17e)](_0x188ad3(0x179));}}
|